identity-provisioning/attio-deprovision-authority-refresh
@sarj-ai/workspace-sync/identity-provisioning/attio-deprovision-authority-refresh ยท Source
import { type AttioDeprovisionAuthoritySnapshotStorePort } from "./attio-deprovision-authority-snapshot-store.ts";export interface AttioDeprovisionAuthorityRefreshPorts { captureAttio(): Promise<unknown>; captureGoogle(): Promise<unknown>; store: AttioDeprovisionAuthoritySnapshotStorePort;}export type AttioDeprovisionAuthorityRefreshErrorComponent = "attio-capture" | "google-capture";export type AttioDeprovisionAuthorityRefreshErrorCode = "source-invalid" | "source-unavailable";export declare class AttioDeprovisionAuthorityRefreshError extends Error { readonly code: AttioDeprovisionAuthorityRefreshErrorCode; readonly component: AttioDeprovisionAuthorityRefreshErrorComponent; constructor(options: { component: AttioDeprovisionAuthorityRefreshErrorComponent; code: AttioDeprovisionAuthorityRefreshErrorCode; cause?: unknown; });}export interface AttioDeprovisionAuthorityRefreshResult { readonly capturedAt: string; readonly deletedUsers: number; readonly scimStatus: "available" | "payment-required"; readonly scimUsers: number; readonly users: number; readonly workspaceMembers: number;}export declare function refreshAttioDeprovisionAuthoritySnapshot(ports: AttioDeprovisionAuthorityRefreshPorts): Promise<AttioDeprovisionAuthorityRefreshResult>;