export type SandboxHubData = { type?: string | null; parentHubId?: number; }; type User = { userId: number; firstName: string; lastName: string; gdprDeleted?: boolean; removed?: boolean; deactivated?: boolean; }; type TaskError = { message: string; in: string; code: string; subCategory: string; context: { missingScopes: Array; }; }; type MutationError = { message: string; portableKey: string; subResource: { type: string; key: string; }; standardError: { status: string; id: string; category: string; subCategory: { [key: string]: string; }; message: string; errors: Array; context: { additionalProp1: Array; additionalProp2: Array; additionalProp3: Array; }; links: { additionalProp1: string; additionalProp2: string; additionalProp3: string; }; }; }; type SyncMutationData = { numRequests: number; numSuccesses: number; errors: Array; mutationErrors: Array; }; export type CompositeSyncTask = { id: string; parentHubId: number; sandboxHubId: number; fromHubId: number; toHubId: number; command: string; type: string; status: string; result: string; sandboxType: string; requestedAt: string; requestedByUserId: number; requestedByUser: User; startedAt: string; completedAt: string; error: MutationError; creates: SyncMutationData; updates: SyncMutationData; deletes: SyncMutationData; diffSummary: string; portableKeys: Array; }; export type SyncTask = { id: string; parentHubId: number; sandboxHubId: number; fromHubId: number; toHubId: number; command: string; status: string; result: string; sandboxType: string; requestedAt: string; requestedByUserId: number; requestedByUser: User; startedAt: string; completedAt: string; tasks: Array; }; export type Sandbox = { sandboxHubId: number; parentHubId: number; createdAt: string; updatedAt?: string | null; archivedAt?: string | null; type: string; archived: boolean; name: string; domain: string; createdByUser: User; updatedByUser?: User | null; lastSync?: SyncTask; currentUserHasAccess?: boolean; currentUserHasSuperAdminAccess?: boolean; requestAccessFrom?: User | null; superAdminsInSandbox?: number; }; export declare const SandboxVersioning: { readonly V1: "V1"; readonly V2: "V2"; }; export declare const SandboxStatus: { readonly PENDING: "PENDING"; readonly READY: "READY"; readonly FAILED: "FAILED"; }; export type SandboxVersion = keyof typeof SandboxVersioning; export type V2SandboxStatus = keyof typeof SandboxStatus; export type V2Sandbox = { sandboxHubId: number; parentHubId: number; name: string; version: SandboxVersion; type: string; status: V2SandboxStatus; createdAt: string; createdByUser: User; currentUserHasAccess?: boolean; currentUserHasSuperAdminAccess?: boolean; superAdminsInSandbox?: number; requestAccessFrom?: User | null; updatedAt?: string; updatedByUser?: User | null; }; /** * @deprecated This type is deprecated and will be removed in the next major release. */ export type SandboxResponse = { sandbox: Sandbox; personalAccessKey: string; }; export type Usage = { STANDARD: { used: number; available: number; limit: number; }; DEVELOPER: { used: number; available: number; limit: number; }; }; export type SandboxUsageLimitsResponse = { usage: Usage; }; export type TaskRequestData = { type: string; }; export type InitiateSyncResponse = { links: { status: string; }; sync: SyncTask; id: string; }; export type SandboxType = { name: string; dependsOn: Array; pushToProductionEnabled: boolean; isBeta: boolean; diffEnabled: boolean; groupType: string; syncMandatory: boolean; }; /** * @deprecated This type is deprecated and will be removed in the next major release. */ export type FetchTypesResponse = { results: Array; }; export type SandboxPersonalAccessKey = { personalAccessKey: { encodedOAuthRefreshToken: string; oauthAccessToken: string; }; }; export {};