identity-provisioning/attio-deprovision-authority-capture
@sarj-ai/workspace-sync/identity-provisioning/attio-deprovision-authority-capture ยท Source
import { z } from "zod";import { type RetryOptions } from "../org-sync/http.ts";export declare const AttioWorkspaceMemberSchema: z.ZodReadonly<z.ZodObject<{ accessLevel: z.ZodEnum<{ admin: "admin"; member: "member"; suspended: "suspended"; }>; emailAddress: z.ZodPipe<z.ZodString, z.ZodEmail>; id: z.ZodReadonly<z.ZodObject<{ workspaceId: z.core.$ZodBranded<z.ZodUUID, "AttioWorkspaceId", "out">; workspaceMemberId: z.core.$ZodBranded<z.ZodUUID, "AttioUserId", "out">; }, z.core.$strict>>;}, z.core.$strict>>;export declare const AttioScimUserSchema: z.ZodReadonly<z.ZodObject<{ active: z.ZodBoolean; appRole: z.ZodOptional<z.ZodEnum<{ admin: "admin"; member: "member"; }>>; emails: z.ZodReadonly<z.ZodArray<z.ZodObject<{ primary: z.ZodBoolean; value: z.ZodPipe<z.ZodString, z.ZodEmail>; }, z.core.$strict>>>; id: z.core.$ZodBranded<z.ZodUUID, "AttioUserId", "out">; lastModified: z.ZodISODateTime; userName: z.ZodPipe<z.ZodString, z.ZodEmail>;}, z.core.$strict>>;export declare const AttioDeprovisionAuthoritySchema: z.ZodReadonly<z.ZodObject<{ capturedAt: z.ZodISODateTime; complete: z.ZodLiteral<true>; scimStatus: z.ZodEnum<{ available: "available"; "payment-required": "payment-required"; }>; scimUsers: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{ active: z.ZodBoolean; appRole: z.ZodOptional<z.ZodEnum<{ admin: "admin"; member: "member"; }>>; emails: z.ZodReadonly<z.ZodArray<z.ZodObject<{ primary: z.ZodBoolean; value: z.ZodPipe<z.ZodString, z.ZodEmail>; }, z.core.$strict>>>; id: z.core.$ZodBranded<z.ZodUUID, "AttioUserId", "out">; lastModified: z.ZodISODateTime; userName: z.ZodPipe<z.ZodString, z.ZodEmail>; }, z.core.$strict>>>>; token: z.ZodReadonly<z.ZodObject<{ scopes: z.ZodReadonly<z.ZodTuple<[z.ZodLiteral<"user_management:read">], null>>; workspaceId: z.core.$ZodBranded<z.ZodUUID, "AttioWorkspaceId", "out">; }, z.core.$strict>>; workspaceMembers: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{ accessLevel: z.ZodEnum<{ admin: "admin"; member: "member"; suspended: "suspended"; }>; emailAddress: z.ZodPipe<z.ZodString, z.ZodEmail>; id: z.ZodReadonly<z.ZodObject<{ workspaceId: z.core.$ZodBranded<z.ZodUUID, "AttioWorkspaceId", "out">; workspaceMemberId: z.core.$ZodBranded<z.ZodUUID, "AttioUserId", "out">; }, z.core.$strict>>; }, z.core.$strict>>>>;}, z.core.$strict>>;export type AttioDeprovisionAuthority = z.output<typeof AttioDeprovisionAuthoritySchema>;export type AttioDeprovisionAuthorityCaptureErrorCode = "configuration-invalid" | "deadline-exceeded" | "response-oversized" | "scim-duplicate-user-id" | "scim-page-limit-exceeded" | "scim-pagination-invalid" | "scope-mismatch" | "source-http" | "source-invalid" | "source-unavailable" | "token-inactive" | "workspace-member-duplicate-id" | "workspace-mismatch";export type AttioDeprovisionAuthorityCaptureErrorComponent = "configuration" | "scim-users" | "token-metadata" | "workspace-members";export declare class AttioDeprovisionAuthorityCaptureError extends Error { readonly code: AttioDeprovisionAuthorityCaptureErrorCode; readonly component: AttioDeprovisionAuthorityCaptureErrorComponent; readonly status: number | undefined; constructor(component: AttioDeprovisionAuthorityCaptureErrorComponent, code: AttioDeprovisionAuthorityCaptureErrorCode, options?: ErrorOptions & { readonly status?: number; });}export interface AttioDeprovisionAuthorityCaptureOptions { readonly apiKey: string; readonly expectedWorkspaceId: string; readonly fetchImpl?: typeof fetch; readonly maxPages?: number; readonly now?: () => Date; readonly random?: RetryOptions["random"]; readonly sleep?: RetryOptions["sleep"];}export interface AttioDeprovisionAuthorityCapturePort { capture(deadlineAt?: number, runId?: string): Promise<AttioDeprovisionAuthority>;}/** Captures one complete, tenant-pinned, read-only Attio identity authority snapshot. */export declare class AttioDeprovisionAuthorityCapture implements AttioDeprovisionAuthorityCapturePort { #private; constructor(options: AttioDeprovisionAuthorityCaptureOptions); capture(deadlineAt?: number, runId?: string): Promise<AttioDeprovisionAuthority>;}