import { J as Json, S as SdkModule } from '../../module-Bq-w9Ws5.cjs'; import 'graphql-request'; type ExportJobStatus = 'CANCELLED' | 'COMPLETED' | 'CREATED' | 'DELETED' | 'EXPIRED' | 'FAILED' | 'QUEUED' | 'RUNNING'; type ExportFormat = 'CSV' | 'JSON'; type ExportArchiveFormat = 'ZIP'; type ExportScope = 'INDIVIDUAL' | 'ORG_ADMIN' | 'WORKSPACE_ADMIN'; type ExportSortField = 'CREATED_AT' | 'NAME' | 'STATUS' | 'TOTAL_SIZE_BYTES' | 'UPDATED_AT'; type ExportSortDirection = 'ASC' | 'DESC'; interface ExportContextInput { workspaceId?: string; userId?: string; projectId?: string; appId?: string; custom?: Json; } interface ExportPart { id: string; jobId: string; partNumber: number; fileName: string; fileId?: string | null; sizeBytes: string; checksum?: string | null; entityTypes: string[]; downloadUrl?: string | null; downloadExpiresAt?: string | null; context?: Json; createdAt: string; updatedAt: string; } interface ExportJob { id: string; workspaceId: string; tenantId?: string | null; name: string; description?: string | null; status: ExportJobStatus; format: ExportFormat; archiveFormat: ExportArchiveFormat; exportScope: ExportScope; organizationId?: string | null; targetWorkspaceIds: string[]; entityTypes: string[]; entityFilters?: Json; dateRangeStart?: string | null; dateRangeEnd?: string | null; includeMedia: boolean; includeMetadata: boolean; chunkSizeBytes: string; templateId?: string | null; progress: number; totalEntities: number; processedEntities: number; totalSizeBytes: string; errorMessage?: string | null; errorCode?: string | null; downloadUrl?: string | null; downloadExpiresAt?: string | null; archiveFileId?: string | null; startedAt?: string | null; completedAt?: string | null; expiresAt?: string | null; parts: ExportPart[]; template?: ExportTemplate | null; context?: Json; createdBy: string; onBehalfOf?: string | null; updatedBy?: string | null; createdAt: string; updatedAt: string; } interface ExportJobConnection { edges: Array<{ cursor: string; node: ExportJob; }>; pageInfo: { hasNextPage: boolean; hasPreviousPage: boolean; startCursor?: string | null; endCursor?: string | null; }; totalCount: number; } interface ExportTemplate { id: string; workspaceId: string; tenantId?: string | null; name: string; description?: string | null; entityTypes: string[]; entityFilters?: Json; format: ExportFormat; includeMedia: boolean; includeMetadata: boolean; isDefault: boolean; context?: Json; createdBy: string; onBehalfOf?: string | null; updatedBy?: string | null; createdAt: string; updatedAt: string; } interface ExportTemplateConnection { edges: Array<{ cursor: string; node: ExportTemplate; }>; pageInfo: { hasNextPage: boolean; hasPreviousPage: boolean; startCursor?: string | null; endCursor?: string | null; }; totalCount: number; } interface CreateExportJobInput { name: string; description?: string; exportScope?: ExportScope; organizationId?: string; entityTypes: string[]; entityFilters?: Json; dateRangeStart?: string; dateRangeEnd?: string; format?: ExportFormat; includeMedia?: boolean; includeMetadata?: boolean; templateId?: string; context?: ExportContextInput; } interface ExportJobFilterInput { status?: ExportJobStatus[]; format?: ExportFormat; entityTypes?: string[]; dateFrom?: string; dateTo?: string; search?: string; context?: ExportContextInput; } interface ExportPaginationInput { first?: number; after?: string; last?: number; before?: string; sortBy?: ExportSortField; sortDirection?: ExportSortDirection; } interface CreateExportTemplateInput { name: string; description?: string; entityTypes: string[]; entityFilters?: Json; format?: ExportFormat; includeMedia?: boolean; includeMetadata?: boolean; context?: ExportContextInput; } interface UpdateExportTemplateInput { name?: string; description?: string; entityTypes?: string[]; entityFilters?: Json; format?: ExportFormat; includeMedia?: boolean; includeMetadata?: boolean; isDefault?: boolean; context?: ExportContextInput; } interface ExportAvailableEntity { entityType: string; displayName: string; description?: string | null; enabled: boolean; supportsDateRange: boolean; supportsMediaExport: boolean; estimatedSize?: string | null; } interface ExportAvailableEntityConnection { edges: Array<{ cursor: string; node: ExportAvailableEntity; }>; pageInfo: { hasNextPage: boolean; hasPreviousPage: boolean; startCursor?: string | null; endCursor?: string | null; }; totalCount: number; } interface JobsApi { list(context: ExportContextInput, filter?: ExportJobFilterInput, pagination?: ExportPaginationInput): Promise; get(id: string, context?: ExportContextInput): Promise; create(input: CreateExportJobInput, context?: ExportContextInput): Promise; cancel(id: string, context?: ExportContextInput): Promise; delete(id: string, context?: ExportContextInput): Promise; retry(id: string, context?: ExportContextInput): Promise; subscribeProgress(jobId: string): AsyncIterable; } interface TemplatesApi { list(context: ExportContextInput, pagination?: ExportPaginationInput): Promise; get(id: string, context?: ExportContextInput): Promise; create(input: CreateExportTemplateInput, context?: ExportContextInput): Promise; update(id: string, input: UpdateExportTemplateInput, context?: ExportContextInput): Promise; delete(id: string, context?: ExportContextInput): Promise; } interface EntitiesApi { list(context: ExportContextInput, pagination?: ExportPaginationInput): Promise; } interface PartsApi { get(id: string, context?: ExportContextInput): Promise; } interface ExportApi { jobs: JobsApi; templates: TemplatesApi; entities: EntitiesApi; parts: PartsApi; download(jobId: string, context?: ExportContextInput): Promise; } declare const exportModule: SdkModule; export { type CreateExportJobInput, type CreateExportTemplateInput, type EntitiesApi, type ExportApi, type ExportArchiveFormat, type ExportAvailableEntity, type ExportAvailableEntityConnection, type ExportContextInput, type ExportFormat, type ExportJob, type ExportJobConnection, type ExportJobFilterInput, type ExportJobStatus, type ExportPaginationInput, type ExportPart, type ExportScope, type ExportSortDirection, type ExportSortField, type ExportTemplate, type ExportTemplateConnection, type JobsApi, type PartsApi, type TemplatesApi, type UpdateExportTemplateInput, exportModule as default };