/** Version 1 inspection wire contract. Keep Cloud's protocol.ts byte-identical. */ export declare const INSPECTION_VERSION = 1; export declare const INSPECTION_AUDIENCE = "paperclip-customer-success/v1"; export declare const INSPECTION_PERMIT_TYPE = "paperclip-inspection+jwt"; export declare const INSPECTION_HEADER = "x-paperclip-cloud-inspection"; export declare const CHALLENGE_DOMAIN = "paperclip-customer-success-challenge/v1\n"; export declare const MAX_INSPECTION_BYTES: number; export declare const MAX_INSPECTION_ROWS = 100; export declare const INSPECTION_RESOURCES: readonly ["companies", "goals", "users", "memberships", "permissions", "agents", "agentIdentities", "agentInstructions", "agentConfigRevisions", "tasks", "comments", "documents", "documentRevisions", "taskDocuments", "interactions", "approvals", "approvalComments", "decisions", "routines", "routineTriggers", "routineRuns", "routineRevisions", "routineDocuments", "projects", "projectWorkspaces", "projectMemberships", "skills", "skillVersions", "skillSources", "runs", "runEvents", "traceMetadata", "activity", "costs", "workProducts", "artifacts", "attachments", "connections", "connectionInstalls", "connectionGrants", "connectionGrantMembers", "connectionCatalog", "toolProfiles", "toolProfileEntries", "agentMemberships", "agentCommentary", "skillPolicies", "projectGoals", "labels", "taskLabels", "taskRelations", "taskApprovals", "documentMemberships", "documentThreads", "documentComments", "threads"]; export type InspectionResource = (typeof INSPECTION_RESOURCES)[number]; export interface InspectionQuery { operation: "list" | "get" | "instructions.file" | "skills.file" | "runs.log" | "files.list" | "files.read" | "files.download" | "assets.content"; resource?: InspectionResource; companyId?: string; resourceId?: string; parentId?: string; path?: string; versionId?: string; limit?: number; offset?: number; range?: { start: number; end: number; }; context?: { projectId?: string; workspaceId?: string; workspace?: "auto" | "execution" | "project"; }; } export interface RunAuthority { version: 1; instanceId: string; companyId: string; agentId: string; runId: string; keyId: string; active: true; } export interface InspectionPermit { v: 1; iss: "paperclip-cloud"; aud: typeof INSPECTION_AUDIENCE; sub: string; jti: string; iat: number; exp: number; bindingVersion: number; grantId: string; requestId: string; agentId: string; keyId: string; runId: string; query: InspectionQuery; } export declare function canonicalJson(value: unknown): string; export declare function parseInspectionQuery(value: unknown): InspectionQuery; //# sourceMappingURL=customer-success.d.ts.map