import type { OnboardingCallAgenda, OnboardingCallReadiness } from "../lib/onboardingCallContract.js"; import type { OnboardingEvidenceReceipt } from "../lib/onboardingCallEvidence.js"; import { type NotionTransport } from "../lib/notionCompleteBlockTree.js"; import { type PublicRevisionVerifier } from "../lib/publicRevisionVerifier.js"; export type OnboardingCallMode = "prepare" | "finalize"; export type OnboardingCallRecoveryStatus = "created_unpublished" | "prepared_internal_public_stale" | "confirmed_internal_public_stale" | "public_verification_blocked" | "interrupted_append" | "interrupted_authenticated_proof" | "interrupted_retire" | "interrupted_final_read"; export interface AdminOnboardingCallInput { mode: OnboardingCallMode; clientName: string; engagementId: string; clientFolderId: string; workspaceId: string; senderId: string; agenda: OnboardingCallAgenda; evidenceReceipts?: OnboardingEvidenceReceipt[]; transcriptObservations?: Array>; legacyPageUrl?: string; } export interface AdminOnboardingCallResult { ok: boolean; pageId?: string; publicUrl?: string; lifecycle?: "prepared" | "confirmed"; visibleRevision?: string; readiness?: OnboardingCallReadiness; handoffMarkdown?: string; binding: { clientName: string; engagementId: string; clientFolderId: string; workspaceId: string; senderId: string; }; recoveryStatus?: OnboardingCallRecoveryStatus; errorCode?: string; publisherDiagnostic?: { status?: number; backend?: string; code?: string; reason?: string; }; publicDiagnostic?: { status: string; reason?: string; publicUrl: string; observations: Array<{ url?: string; extractionState?: string; initialCookieCount?: number; requestCookieHeaderPresent?: boolean; navigationError?: string; }>; }; } export interface OnboardingCallDependencies { notion: NotionTransport; publicVerifier: PublicRevisionVerifier; publishPage(input: { pageId: string; notionUrl: string; expectedPublicUrl?: string; }): Promise<{ ok: boolean; publicUrl?: string; workspace?: string; diagnostic?: AdminOnboardingCallResult["publisherDiagnostic"]; }>; statePath: string; now?: () => string; expectedPublisherWorkspace?: string; testFaultAt?: string; } export declare const onboardingCallToolDefinitions: { name: string; description: string; inputSchema: { type: "object"; additionalProperties: boolean; properties: { mode: { type: string; enum: string[]; }; clientName: { type: string; minLength: number; }; engagementId: { type: string; minLength: number; }; clientFolderId: { type: string; minLength: number; }; workspaceId: { type: string; minLength: number; }; senderId: { type: string; minLength: number; }; agenda: { type: string; additionalProperties: boolean; }; evidenceReceipts: { type: string; items: { type: string; additionalProperties: boolean; }; }; transcriptObservations: { type: string; items: { type: string; additionalProperties: boolean; }; }; legacyPageUrl: { type: string; }; }; required: string[]; }; }[]; export declare function adminOnboardingCall(input: AdminOnboardingCallInput, dependencies?: OnboardingCallDependencies): Promise;