import { CommitType, ExportViewMode, type AssignmentDto, type OCSFAuditEvent, type AuditLogDto, type AuditLogEntity, type FactDto, type FactListQuery, type GetPublicOrganizationSummaryResponseBody, type IHomepageApplicationV2Dto } from "@superblocksteam/shared"; import type { ComponentEvent, LocalGitRepoState, SuperblocksResourceType } from "@superblocksteam/util"; import type { ApplicationGitConfig, ChatHistoryResponse, AuditEventsAggregateFilters, AuditEventsAggregateResponse, CreateApplicationResult, CreateRbacAssignmentsRequest, BillingUsageLimitsResponse, BillingUsageRecordsResponse, DailyUsageRow, FolderMutationPayload, FolderSummary, GitFreshToken, IntegrationDetail, IntegrationMutationPayload, IntegrationSummary, PlanSummary, PushApiWithCommitConfig, PushMultiPageApplicationWithCommitConfig, SyncRequest, SyncResponse, UpdateOrgBillingUsageLimitRequest, UpdateRbacAssignmentRequest, UpdateUserBillingUsageLimitRequest, UsageRecordRow } from "./client.js"; import { FeatureFlags } from "./flag.js"; import type { DeploymentHistoryEntryDto, UserMeDto } from "./types/index.js"; export * from "./errors.js"; export declare class SuperblocksSdk { token: string; superblocksBaseUrl: string; cliVersion: string; constructor(accessToken: string, superblocksBaseUrl: string, cliVersion: string); getFeatureFlagsForCurrentUser(): Promise; getFeatureFlagsForUser(user: UserMeDto): FeatureFlags; getApplicationGitConfig(applicationId: string): Promise; getGitFreshToken(host: string, applicationId: string): Promise; fetchApplication({ applicationId, branch, headers, viewMode, skipSigningVerification, }: { applicationId: string; branch?: string; headers?: Record; viewMode?: ExportViewMode; skipSigningVerification?: boolean; }): Promise; fetchApplicationBranches(applicationId: string, headers?: {}): Promise<{ branches: { name: string; isDefault: boolean; }[]; } | undefined>; fetchTypedApplication({ applicationId, branch, headers, viewMode, commitId, skipSigningVerification, keepOriginalNotFoundError, }: { applicationId: string; branch: string; headers?: Record; viewMode?: ExportViewMode; commitId?: string; skipSigningVerification?: boolean; keepOriginalNotFoundError?: boolean; }): Promise; fetchApplicationCommits({ applicationId, branch, commitType, headers, limit, offset, }: { applicationId: string; branch: string; commitType?: CommitType; headers?: Record; limit?: number; offset?: number; }): Promise; fetchApiCommits({ apiId, branch, headers, limit, offset, }: { apiId: string; branch: string; headers?: Record; limit?: number; offset?: number; }): Promise; fetchApplications(headers?: Record): Promise; fetchRbacAssignments(resourceType: string, resourceId: string): Promise; createRbacAssignments(payload: CreateRbacAssignmentsRequest): Promise; updateRbacAssignment(assignmentRecordId: string, payload: UpdateRbacAssignmentRequest): Promise; deleteRbacAssignment(assignmentRecordId: string): Promise; fetchAuditLogs(filters: { startTime: string; endTime: string; entityType?: number; auditEntityId?: string; auditEntityType?: number; status?: string; deployed?: boolean; triggeredBy?: string[]; }): Promise; fetchAuditEvents(filters: { timeStart: string; timeEnd: string; activityId?: number; actor?: string; applicationId?: string; classUid?: number; cursor?: string; limit?: number; resourceId?: string; resourceType?: string; search?: string; severity?: number; status?: number; }): Promise<{ events: OCSFAuditEvent[]; next_cursor: string | null; }>; fetchChatHistory(params: { applicationId: string; userId?: string; limit?: number; cursor?: string; }): Promise; fetchEditorChatHistory(params: { applicationId: string; limit?: number; cursor?: string; }): Promise; fetchAuditEventsAggregate(filters: AuditEventsAggregateFilters): Promise; fetchAuditEntities(): Promise; fetchFacts(query?: FactListQuery): Promise; fetchFact(factId: string): Promise; fetchIntegrations(filters?: { kind?: string[]; slug?: string[]; }): Promise; fetchIntegrationById(integrationId: string): Promise; createIntegration(payload: IntegrationMutationPayload): Promise; updateIntegration(integrationId: string, payload: IntegrationMutationPayload): Promise; deleteIntegration(integrationId: string): Promise; fetchFolders(): Promise; createFolder(payload: FolderMutationPayload): Promise; updateFolder(folderId: string, payload: FolderMutationPayload): Promise; deleteFolder(folderId: string): Promise; fetchApi({ apiId, branch, viewMode, commitId, skipSigningVerification, }: { apiId: string; viewMode?: ExportViewMode; branch?: string; commitId?: string; skipSigningVerification?: boolean; }): Promise; fetchApis(): Promise; validateGitSetup(resourceId: string, resourceType: SuperblocksResourceType, event: ComponentEvent, localGitRepoState: LocalGitRepoState, injectedHeaders?: Record): Promise<{ branchName: string | null; }>; fetchCurrentUser(): Promise; fetchOrganizationSummary(organizationId: string): Promise; pushApplication({ applicationId, applicationConfig, branch, headers, }: { applicationId: string; applicationConfig: PushMultiPageApplicationWithCommitConfig; branch: string; headers?: Record; }): Promise; pushApplicationCodeMode({ applicationId, localDirectoryPath, branch, commitId, commitMessage, forcePush, gitState, skipCommit, }: { applicationId: string; localDirectoryPath: string; branch: string; commitId: string; commitMessage: string; forcePush?: boolean; gitState: LocalGitRepoState; skipCommit?: boolean; }): Promise<{ commitId: string; } | { updated: Date; } | undefined>; pushApi({ apiId, apiConfig, branch, headers, }: { apiId: string; apiConfig: PushApiWithCommitConfig; branch: string; headers?: Record; }): Promise<{ commitId: string; } | { updated: Date; } | undefined>; dbfsGetApplication({ applicationId, branch, localDirectoryPath, }: { applicationId: string; branch?: string; localDirectoryPath: string; }): Promise; dbfsGetDirectoryByHash({ hash, localDirectoryPath, }: { hash: string; localDirectoryPath: string; }): Promise; dbfsPutApplication({ applicationId, branch, localDirectoryPath, }: { applicationId: string; branch?: string; localDirectoryPath: string; }): Promise; dbfsUploadDirectory({ localDirectoryPath, }: { localDirectoryPath: string; }): Promise; dbfsGetApplicationDirectoryHash({ applicationId, branch, commitId, silent, }: { applicationId: string; branch?: string; commitId?: string; silent?: boolean; }): Promise; dbfsList({ hash }: { hash: string; }): Promise; dbfsCat({ hash }: { hash: string; }): Promise; hashLocalDirectory(localDirectoryPath: string): Promise<{ hash: string; contents: import("@superblocksteam/shared").DirectoryEntry[]; }>; createApplication({ name, organizationId, codeMode, templateName, folderId, }: { name: string; organizationId: string; codeMode?: boolean; templateName?: string; folderId?: string; }): Promise; deployApplication(applicationId: string, commitId?: string): Promise; undeployApplication(applicationId: string, message?: string): Promise<{ success: boolean; }>; fetchApplicationDeployments(applicationId: string): Promise; deployApi(apiId: string, commitId?: string): Promise; fetchBillingUsageDaily(startDate: string, endDate: string): Promise; fetchBillingUsageRecords(startDate: string, endDate: string): Promise; fetchBillingUsageRecordsResponse(startDate: string, endDate: string): Promise; fetchBillingPlanSummary(): Promise; fetchBillingUsageLimits(): Promise; updateUserBillingUsageLimit(input: UpdateUserBillingUsageLimitRequest): Promise<{ success: boolean; }>; updateOrgBillingUsageLimit(input: UpdateOrgBillingUsageLimitRequest): Promise<{ success: boolean; }>; sync({ applicationId, payload, }: { applicationId: string; payload: SyncRequest; }): Promise; } //# sourceMappingURL=sdk.d.ts.map