@lucern/sdk 0.3.0-alpha.3 → 0.3.0-alpha.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (136) hide show
  1. package/README.md +47 -0
  2. package/dist/adminClient.js +4 -3
  3. package/dist/adminClient.js.map +1 -1
  4. package/dist/answersClient.js +4 -3
  5. package/dist/answersClient.js.map +1 -1
  6. package/dist/audiencesClient.js +4 -3
  7. package/dist/audiencesClient.js.map +1 -1
  8. package/dist/auditClient.js +4 -3
  9. package/dist/auditClient.js.map +1 -1
  10. package/dist/authContext.js +4 -3
  11. package/dist/authContext.js.map +1 -1
  12. package/dist/beliefs/index.d.ts +3 -1
  13. package/dist/beliefs/index.js +333 -7
  14. package/dist/beliefs/index.js.map +1 -1
  15. package/dist/beliefsClient.js +4 -3
  16. package/dist/beliefsClient.js.map +1 -1
  17. package/dist/client.d.ts +2981 -40
  18. package/dist/client.js +333 -7
  19. package/dist/client.js.map +1 -1
  20. package/dist/contextClient.js +4 -3
  21. package/dist/contextClient.js.map +1 -1
  22. package/dist/contracts/api-enums.contract.d.ts +1 -1
  23. package/dist/contracts/api-enums.contract.js.map +1 -1
  24. package/dist/contracts/index.js.map +1 -1
  25. package/dist/contradictions/index.d.ts +3 -1
  26. package/dist/contradictions/index.js +333 -7
  27. package/dist/contradictions/index.js.map +1 -1
  28. package/dist/coreClient.js +4 -3
  29. package/dist/coreClient.js.map +1 -1
  30. package/dist/decisions/index.d.ts +3 -1
  31. package/dist/decisions/index.js +333 -7
  32. package/dist/decisions/index.js.map +1 -1
  33. package/dist/decisionsClient.js +4 -3
  34. package/dist/decisionsClient.js.map +1 -1
  35. package/dist/edges/index.d.ts +3 -1
  36. package/dist/edges/index.js +333 -7
  37. package/dist/edges/index.js.map +1 -1
  38. package/dist/embeddingsClient.js +4 -3
  39. package/dist/embeddingsClient.js.map +1 -1
  40. package/dist/eventingClient.js +4 -3
  41. package/dist/eventingClient.js.map +1 -1
  42. package/dist/eventsCore.js +4 -3
  43. package/dist/eventsCore.js.map +1 -1
  44. package/dist/evidence/index.d.ts +3 -1
  45. package/dist/evidence/index.js +333 -7
  46. package/dist/evidence/index.js.map +1 -1
  47. package/dist/evidenceClient.js +4 -3
  48. package/dist/evidenceClient.js.map +1 -1
  49. package/dist/functionSurface.d.ts +129 -0
  50. package/dist/functionSurface.js +1118 -0
  51. package/dist/functionSurface.js.map +1 -0
  52. package/dist/functionSurfaceClient.d.ts +8 -0
  53. package/dist/functionSurfaceClient.js +1118 -0
  54. package/dist/functionSurfaceClient.js.map +1 -0
  55. package/dist/gatewayFacades.d.ts +34 -1
  56. package/dist/gatewayFacades.js +4 -3
  57. package/dist/gatewayFacades.js.map +1 -1
  58. package/dist/graphAnalysisClient.d.ts +53 -1
  59. package/dist/graphAnalysisClient.js +31 -4
  60. package/dist/graphAnalysisClient.js.map +1 -1
  61. package/dist/graphClient.js +4 -3
  62. package/dist/graphClient.js.map +1 -1
  63. package/dist/graphIntel.d.ts +3 -0
  64. package/dist/graphIntel.js +3 -0
  65. package/dist/graphIntel.js.map +1 -0
  66. package/dist/graphIntelligence.d.ts +2 -0
  67. package/dist/graphIntelligence.js +47 -0
  68. package/dist/graphIntelligence.js.map +1 -0
  69. package/dist/graphRecommendationsClient.js +4 -3
  70. package/dist/graphRecommendationsClient.js.map +1 -1
  71. package/dist/graphStateClassifierClient.js +4 -3
  72. package/dist/graphStateClassifierClient.js.map +1 -1
  73. package/dist/harnessClient.js +4 -3
  74. package/dist/harnessClient.js.map +1 -1
  75. package/dist/identityClient.js +4 -3
  76. package/dist/identityClient.js.map +1 -1
  77. package/dist/index.d.ts +8 -3
  78. package/dist/index.js +670 -8
  79. package/dist/index.js.map +1 -1
  80. package/dist/infisicalRuntime.d.ts +42 -0
  81. package/dist/infisicalRuntime.js +291 -0
  82. package/dist/infisicalRuntime.js.map +1 -0
  83. package/dist/jobsClient.js +4 -3
  84. package/dist/jobsClient.js.map +1 -1
  85. package/dist/learningClient.js +4 -3
  86. package/dist/learningClient.js.map +1 -1
  87. package/dist/lenses/index.d.ts +28 -2
  88. package/dist/lenses/index.js +333 -7
  89. package/dist/lenses/index.js.map +1 -1
  90. package/dist/mcpClient.js +4 -3
  91. package/dist/mcpClient.js.map +1 -1
  92. package/dist/modelRuntimeClient.js +4 -3
  93. package/dist/modelRuntimeClient.js.map +1 -1
  94. package/dist/nodes/index.d.ts +21 -1
  95. package/dist/nodes/index.js +333 -7
  96. package/dist/nodes/index.js.map +1 -1
  97. package/dist/ontologies/index.d.ts +3 -1
  98. package/dist/ontologies/index.js +333 -7
  99. package/dist/ontologies/index.js.map +1 -1
  100. package/dist/ontologyClient.js +4 -3
  101. package/dist/ontologyClient.js.map +1 -1
  102. package/dist/ontologyLinksClient.js +4 -3
  103. package/dist/ontologyLinksClient.js.map +1 -1
  104. package/dist/orgGraphSearchClient.js +4 -3
  105. package/dist/orgGraphSearchClient.js.map +1 -1
  106. package/dist/packRuntime.d.ts +2 -1
  107. package/dist/packsClient.js +4 -3
  108. package/dist/packsClient.js.map +1 -1
  109. package/dist/policyClient.js +4 -3
  110. package/dist/policyClient.js.map +1 -1
  111. package/dist/questions/index.d.ts +3 -1
  112. package/dist/questions/index.js +333 -7
  113. package/dist/questions/index.js.map +1 -1
  114. package/dist/reportsClient.js +4 -3
  115. package/dist/reportsClient.js.map +1 -1
  116. package/dist/schemaClient.js +4 -3
  117. package/dist/schemaClient.js.map +1 -1
  118. package/dist/sourcesClient.js +4 -3
  119. package/dist/sourcesClient.js.map +1 -1
  120. package/dist/telemetryClient.js +4 -3
  121. package/dist/telemetryClient.js.map +1 -1
  122. package/dist/toolRegistryClient.js +4 -3
  123. package/dist/toolRegistryClient.js.map +1 -1
  124. package/dist/topics/index.d.ts +3 -1
  125. package/dist/topics/index.js +333 -7
  126. package/dist/topics/index.js.map +1 -1
  127. package/dist/topicsClient.js +4 -3
  128. package/dist/topicsClient.js.map +1 -1
  129. package/dist/workflowClient.d.ts +41 -7
  130. package/dist/workflowClient.js +4 -3
  131. package/dist/workflowClient.js.map +1 -1
  132. package/dist/worktrees/index.d.ts +29 -3
  133. package/dist/worktrees/index.js +333 -7
  134. package/dist/worktrees/index.js.map +1 -1
  135. package/package.json +12 -3
  136. package/dist/client-EiG9nJOY.d.ts +0 -2911
@@ -1,2911 +0,0 @@
1
- import { AudiencesClientConfig, AudienceRegistryInput, AudienceGrantInput, AudienceGrantRevokeInput } from './audiencesClient.js';
2
- import { SchemaClientConfig, SchemaPackInstallInput, SchemaEntitlementInput } from './schemaClient.js';
3
- import { HarnessClientConfig, HarnessAgentWriteInput, HarnessInvokeManagedAgentInput, HarnessToolWriteInput, HarnessExecuteToolInput, HarnessExecuteToolResult, HarnessStartRunInput, HarnessRunReportInput, HarnessCompleteRunInput } from './harnessClient.js';
4
- import { AdminClientConfig, TenantApiKeyRecord, TenantVaultSecretRecord, TenantConfigRecord, TenantModelRoutingSnapshot } from './adminClient.js';
5
- import { ControlObjectOwnershipContract } from './controlObjectOwnership.js';
6
- import { BeliefsClientConfig, ModulateConfidenceInput, OpinionHistoryEntry, CreateBeliefInput, RefineBeliefInput, ModulateConfidenceOpinionInput, ForkBeliefInput, UpdateBeliefStatusInput, UpdateBeliefRationaleInput, LinkBeliefsInput, UnlinkBeliefEvidenceInput, UpdateBeliefCriticalityInput, BatchUpdateBeliefCriticalityInput, ReassignBeliefsTopicInput } from './beliefsClient.js';
7
- import { DeviceCodeInput, DeviceCodeResponse, DeviceTokenResponse } from './authDeviceClient.js';
8
- import { McpBootstrapSessionInput, McpBootstrapSessionResponse, McpCheckWritePolicyInput, McpCheckWritePolicyResponse, McpBeginBuildSessionInput, McpBeginBuildSessionResponse, McpEvaluateEngineeringContractInput, McpContractEvaluationResponse, McpEvaluateResearchContractInput } from './mcpClient.js';
9
- import { IdentityClientConfig, PolicyEvaluationInput, PolicyDecisionRecord, RecordPolicyDecisionInput, PutTenantSecretReferenceInput, TenantSecretReference, ClerkUserSearchResult, TenantIdentityScope, TenantIdentityConfigRecord, UpdateTenantConfigInput, TenantIntegrationRecord, UpsertTenantIntegrationInput } from './identityClient.js';
10
- import { PacksClientConfig, PackInstallInput, PackEnableInput, PackDisableInput, PackEntitlementInput, PackUninstallInput, PackUpgradeInput } from './packsClient.js';
11
- import { CustomToolRegistration, RegisteredCustomTool } from './customTools.js';
12
- import { ToolRegistryClientConfig, ToolRegistryQuery, ToolCatalogEntry, UpsertCoreToolsInput, SetPackToolsStatusInput, CreateToolAclInput, ToolAclRecord, DeleteToolAclInput, RegisterCustomToolInput } from './toolRegistryClient.js';
13
- import { TelemetryClientConfig, LogSystemEventInput, LogToolCallsBatchInput, RecordEpistemicAuditInput, RecordTelemetryPolicyDecisionInput, StartTelemetryRunInput, TelemetryRunRecord, FinishTelemetryRunInput, TelemetryScope } from './telemetryClient.js';
14
- import { JobsClientConfig, EnqueueJobInput, JobRecord, JobsScope, ClaimJobInput, UpdateJobStatusInput, RetryJobInput, RecordJobRunStartInput, JobRunRecord, RecordJobRunFinishInput } from './jobsClient.js';
15
- import { ModelRuntimeClientConfig, ModelRuntimeScope, ModelRegistryRecord, ModelFunctionSlot, ResolveModelSlotInput, UpdateModelSlotConfigInput } from './modelRuntimeClient.js';
16
- import { GraphStateClassifierClientConfig, ClassifyNodeInput, GraphStateClassification, ClassifyTopicInput, ListGraphStateClassificationsInput, RecordGraphStateClassificationInput } from './graphStateClassifierClient.js';
17
- import { OntologyLinksClientConfig, OntologyLinkWriteInput, OntologyLinkRecord, ListOntologyLinksForNodeInput, UpdateOntologyLinkStatusInput } from './ontologyLinksClient.js';
18
- import { OrgGraphSearchClientConfig, OrgGraphSearchInput, OrgGraphSearchResponse, GetOrgGraphNodeInput, OrgGraphSearchResult, ListOrgGraphByProvenanceInput, ListPublishedFromWorkspaceInput } from './orgGraphSearchClient.js';
19
- import { GraphRecommendationsClientConfig, GraphRecommendationListInput, GraphRecommendationRecord, MarkGraphRecommendationStatusInput } from './graphRecommendationsClient.js';
20
- import { GraphAnalysisClientConfig, SaveGraphAnalysisInput, GraphAnalysisRecord, ListGraphAnalysesInput, GetLatestGraphAnalysisInput, SaveGraphSuggestionsInput, GraphAnalysisSuggestionsResponse, UpdateGraphSuggestionStatusInput, GraphAnalysisSuggestion, ListGraphSuggestionsInput, ListGraphChangesInput, ComputeOrRequestGraphAnalysisInput } from './graphAnalysisClient.js';
21
- import { EmbeddingsClientConfig, GetEmbeddingsByNodeIdsInput, EmbeddingRecord, ListMissingEmbeddingsInput, MissingEmbeddingCandidate, VectorSearchByTopicInput, VectorSearchMatch, MarkEmbeddingBackfillQueuedInput } from './embeddingsClient.js';
22
- import { PolicyClientConfig, PermissionDecision, PermissionKind, WritePolicyRecord, WritePolicyCreateInput, WritePolicyUpdateInput, TenantPolicyRecord, TenantPolicyPermission } from './policyClient.js';
23
- import { GatewayClientConfig, PlatformGatewaySuccess, GatewayScope } from './coreClient.js';
24
- import { OntologyClientConfig, OntologyBindingInput, OntologyDefinitionInput, OntologyDefinitionUpdateInput, OntologyVersionInput } from './ontologyClient.js';
25
- import { CompileContextInput, PublicCompiledContext } from './contextTypes.js';
26
- import { TopicsClientConfig, TopicListInput, TopicCreateInput, TopicUpdateInput, TopicTreeQuery, TopicCoverageQuery, TopicBulkCreateInput } from './topicsClient.js';
27
- import { AnswersClientConfig } from './answersClient.js';
28
- import { AuditClientConfig } from './auditClient.js';
29
- import { JsonObject, ListResult, PlatformSourceRecord, PlatformGraphNode, PlatformGraphEdge, GraphNeighborhoodResponse, JsonArray, RecordJudgmentResponse, ListJudgmentsResponse, GetJudgmentResponse, RecordJudgmentOutcomeResponse, JudgmentReadinessResponse, JudgmentCalibrationResponse, PendingJudgmentOutcomeRecord, JudgmentTransitionAuditIntegrityResponse, TopicIdentifierInput, WorkflowBranchRecord, WorkflowLensRecord, WorkflowLensBindingRecord, WorkflowWorktreeRecord, ListWorktreesResponse, PushWorktreeResponse, OpenPullRequestResponse, TopicListResponse, TopicRecord, TopicTreeResponse, TopicCoverageResponse, PlatformBeliefRecord, ModulateConfidenceResponse, ForkBeliefResponse, DeleteEdgeResponse, GraphPathResponse, GraphAnalyticsResponse, MergeWorktreeResponse, ListTopicsResponse, SwitchTopicContextResponse, CreateTaskResponse, CompleteTaskResponse, UpdateTaskResponse, ReportTemplatesResponse, ReportWithSectionsResponse } from './types.js';
30
- import { ContextClientConfig } from './contextClient.js';
31
- import { LensPromptTemplateReference, LensWorkflowTemplate, LensTaskTemplate } from './contracts/lens-workflow.contract.js';
32
- import { DecisionsClientConfig, RecordJudgmentInput, ListJudgmentsInput, RecordJudgmentOutcomeInput, GetJudgmentCalibrationInput, ListPendingJudgmentOutcomeReviewInput, GetJudgmentTransitionAuditIntegrityInput } from './decisionsClient.js';
33
- import { EvidenceClientConfig, EvidenceClassificationRequestConfig, ClassifyEvidenceResult, ClassifyEvidenceBatchItem, ClassifyEvidenceBatchResult } from './evidenceClient.js';
34
- import { EventingClientConfig, RecordEventInput, EventingRecord, EventingScope, EventingWebhookRecord, EnqueueDeliveryInput, EventingDeliveryRecord, RecordDeliveryAttemptInput, UpdateDeliveryStatusInput } from './eventingClient.js';
35
- import { GraphClientConfig, ListNodesInput, GetNodeInput, CreateNodeInput, UpdateNodeInput, BatchCreateNodesInput, SupersedeNodeInput, VerifyNodeInput, HardDeleteNodeInput, CreateEdgeInput, NeighborhoodInput, QueryNodesInput, ListEdgesInput, QueryEdgesInput, DeleteEdgeInput, TraverseInput, AnalyzeInput, BiasInput, GapsInput, SearchInput, PathInput, AnalyticsInput } from './graphClient.js';
36
- import { LearningClientConfig } from './learningClient.js';
37
- import { ReportsClientConfig } from './reportsClient.js';
38
- import { SourcesClientConfig, UpsertSourceSpec } from './sourcesClient.js';
39
- import { WorkflowClientConfig, WorkflowLensPerspectiveType, WorkflowLensStatus, AddWorktreeInput, WorkflowWorktreeStatus, UpdateWorktreeTargetsInput, MergeInput, CreateTaskInput, CompleteTaskInput, UpdateTaskInput, WorkflowBranchStatus, CompleteWorktreeInput, AdvanceWorktreePhaseInput, SetWorktreePhaseInput, PatchWorktreeStateInput, BulkCreateWorktreesInput, ListTopicsInput, SwitchTopicContextInput } from './workflowClient.js';
40
-
41
- type FunctionSurfaceClientConfig = GatewayClientConfig;
42
- type FunctionSurfaceInput = JsonObject;
43
- type FunctionSurfaceResult<T = unknown> = Promise<PlatformGatewaySuccess<T>>;
44
- declare const FUNCTION_SURFACE_METHOD_PATHS: readonly ["answers.answerQuestion", "answers.createAnswer", "answers.getAnswer", "beliefs.archiveBelief", "beliefs.bisectConfidence", "beliefs.createBelief", "beliefs.forkBelief", "beliefs.getBelief", "beliefs.getConfidenceHistory", "beliefs.listBeliefs", "beliefs.modulateConfidence", "beliefs.refineBelief", "beliefs.searchBeliefs", "bootstrap.generateSessionHandoff", "coding.getChangeHistory", "coding.getCodeContext", "coding.getFailureLog", "coding.recordAttempt", "context.analyzeTopicDensity", "context.applyAutoBranching", "context.compileContext", "context.discover", "context.discoverEntityConnections", "context.getLatticeCoverage", "context.recordScopeLearning", "context.seedBeliefLattice", "context.triggerBeliefReview", "contracts.createEpistemicContract", "contracts.evaluateContract", "contracts.getContractStatus", "contradictions.flagContradiction", "coordination.broadcastMessage", "coordination.claimFiles", "coordination.endSession", "coordination.getAgentInbox", "coordination.heartbeatSession", "coordination.listActiveSessions", "coordination.registerSession", "coordination.sendAgentMessage", "edges.createEdge", "edges.queryLineage", "evidence.addEvidence", "evidence.createEvidence", "evidence.getEvidence", "evidence.linkEvidence", "evidence.linkEvidenceToBelief", "evidence.linkEvidenceToQuestion", "evidence.listEvidence", "evidence.searchEvidence", "graph.detectConfirmationBias", "graph.findContradictions", "graph.getGraphGaps", "graph.getGraphNeighborhood", "graph.getGraphStructureAnalysis", "graph.getTopicCoverage", "graph.traceEntityImpact", "graph.traverseGraph", "identity.checkPermission", "identity.filterByPermission", "identity.whoami", "judgments.getAuditTrail", "judgments.recordJudgment", "lenses.applyLensToTopic", "lenses.createLens", "lenses.listLenses", "lenses.removeLensFromTopic", "observations.getObservationContext", "observations.ingestObservation", "ontologies.applyOntology", "ontologies.archiveOntology", "ontologies.createOntology", "ontologies.createOntologyVersion", "ontologies.deprecateOntologyVersion", "ontologies.getOntology", "ontologies.listOntologies", "ontologies.matchEntityType", "ontologies.publishOntologyVersion", "ontologies.resolveEffectiveOntology", "ontologies.updateOntology", "policy.manageWritePolicy", "questions.archiveQuestion", "questions.createQuestion", "questions.findMissingQuestions", "questions.getFalsificationQuestions", "questions.getHighPriorityQuestions", "questions.getQuestion", "questions.listQuestions", "questions.refineQuestion", "questions.updateQuestionStatus", "tasks.completeTask", "tasks.createTask", "tasks.listTasks", "tasks.updateTask", "topics.createTopic", "topics.getTopic", "topics.getTopicTree", "topics.listTopics", "topics.updateTopic", "worktrees.activateWorktree", "worktrees.addWorktree", "worktrees.listAllWorktrees", "worktrees.listCampaigns", "worktrees.listWorktrees", "worktrees.merge", "worktrees.openPullRequest", "worktrees.pipelineSnapshot", "worktrees.push", "worktrees.updateWorktreeMetadata", "worktrees.updateWorktreeTargets"];
45
- declare function createFunctionSurfaceClient(config?: FunctionSurfaceClientConfig): {
46
- sessionId: string;
47
- activateWorktree(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
48
- addEvidence(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
49
- addWorktree(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
50
- analyzeTopicDensity(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
51
- answerQuestion(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
52
- applyAutoBranching(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
53
- applyLensToTopic(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
54
- applyOntology(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
55
- archiveBelief(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
56
- archiveOntology(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
57
- archiveQuestion(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
58
- bisectConfidence(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
59
- broadcastMessage(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
60
- checkPermission(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
61
- claimFiles(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
62
- compileContext(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
63
- completeTask(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
64
- createAnswer(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
65
- createBelief(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
66
- createEdge(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
67
- createEpistemicContract(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
68
- createEvidence(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
69
- createLens(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
70
- createOntology(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
71
- createOntologyVersion(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
72
- createQuestion(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
73
- createTask(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
74
- createTopic(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
75
- deprecateOntologyVersion(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
76
- detectConfirmationBias(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
77
- discover(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
78
- discoverEntityConnections(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
79
- endSession(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
80
- evaluateContract(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
81
- filterByPermission(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
82
- findContradictions(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
83
- findMissingQuestions(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
84
- flagContradiction(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
85
- forkBelief(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
86
- generateSessionHandoff(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
87
- getAgentInbox(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
88
- getAnswer(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
89
- getAuditTrail(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
90
- getBelief(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
91
- getChangeHistory(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
92
- getCodeContext(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
93
- getConfidenceHistory(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
94
- getContractStatus(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
95
- getEvidence(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
96
- getFailureLog(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
97
- getFalsificationQuestions(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
98
- getGraphGaps(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
99
- getGraphNeighborhood(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
100
- getGraphStructureAnalysis(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
101
- getHighPriorityQuestions(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
102
- getLatticeCoverage(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
103
- getObservationContext(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
104
- getOntology(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
105
- getQuestion(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
106
- getTopic(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
107
- getTopicCoverage(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
108
- getTopicTree(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
109
- heartbeatSession(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
110
- whoami(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
111
- ingestObservation(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
112
- linkEvidence(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
113
- linkEvidenceToBelief(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
114
- linkEvidenceToQuestion(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
115
- listActiveSessions(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
116
- listAllWorktrees(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
117
- listBeliefs(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
118
- listCampaigns(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
119
- listEvidence(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
120
- listLenses(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
121
- listOntologies(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
122
- listQuestions(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
123
- listTasks(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
124
- listTopics(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
125
- listWorktrees(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
126
- manageWritePolicy(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
127
- matchEntityType(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
128
- merge(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
129
- modulateConfidence(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
130
- openPullRequest(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
131
- pipelineSnapshot(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
132
- publishOntologyVersion(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
133
- push(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
134
- queryLineage(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
135
- recordAttempt(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
136
- recordJudgment(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
137
- recordScopeLearning(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
138
- refineBelief(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
139
- refineQuestion(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
140
- registerSession(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
141
- removeLensFromTopic(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
142
- resolveEffectiveOntology(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
143
- searchBeliefs(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
144
- searchEvidence(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
145
- seedBeliefLattice(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
146
- sendAgentMessage(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
147
- traceEntityImpact(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
148
- traverseGraph(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
149
- triggerBeliefReview(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
150
- updateOntology(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
151
- updateQuestionStatus(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
152
- updateTask(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
153
- updateTopic(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
154
- updateWorktreeMetadata(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
155
- updateWorktreeTargets(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
156
- };
157
-
158
- type ClientConfig = BeliefsClientConfig | SourcesClientConfig | GraphClientConfig | DecisionsClientConfig | AnswersClientConfig | ContextClientConfig | WorkflowClientConfig | AuditClientConfig | AdminClientConfig | EvidenceClientConfig | EmbeddingsClientConfig | EventingClientConfig | GraphAnalysisClientConfig | GraphRecommendationsClientConfig | GraphStateClassifierClientConfig | IdentityClientConfig | JobsClientConfig | ModelRuntimeClientConfig | OntologyLinksClientConfig | OrgGraphSearchClientConfig | PolicyClientConfig | PacksClientConfig | ReportsClientConfig | LearningClientConfig | TelemetryClientConfig | ToolRegistryClientConfig | FunctionSurfaceClientConfig | OntologyClientConfig | HarnessClientConfig | SchemaClientConfig | AudiencesClientConfig | TopicsClientConfig;
159
- type CustomToolInput = JsonObject;
160
- type CustomToolInvoker = (input?: CustomToolInput) => Promise<unknown>;
161
- type CustomToolNamespace = Record<string, CustomToolInvoker>;
162
- type GatewayDataEnvelope<T extends Record<string, unknown>> = PlatformGatewaySuccess<T> & T;
163
- type BeliefsCompatCreateInput = {
164
- topicId?: string;
165
- text?: string;
166
- canonicalText?: string;
167
- formulation?: string;
168
- rationale?: string;
169
- worktreeId?: string;
170
- pillar?: string;
171
- baseRate?: number;
172
- sourceBeliefIds?: string[];
173
- sourceType?: string;
174
- beliefType?: string;
175
- reversibility?: string;
176
- predictionMeta?: JsonObject;
177
- metadata?: JsonObject;
178
- };
179
- type BeliefsCompatForkInput = {
180
- text?: string;
181
- newFormulation?: string;
182
- formulation?: string;
183
- forkReason?: "refinement" | "contradiction_response" | "scope_change" | "confidence_collapse" | "manual";
184
- rationale?: string;
185
- };
186
- type BeliefsCompatUpdateConfidenceInput = ModulateConfidenceInput;
187
- /**
188
- * Configuration for the high-level Lucern SDK client.
189
- *
190
- * At minimum, provide `apiKey` and `baseUrl`. The SDK handles
191
- * authentication, retries, and idempotency automatically.
192
- */
193
- type LucernClientConfig = ClientConfig & {
194
- /** API key for authenticating with the Lucern platform. */
195
- apiKey?: string;
196
- /**
197
- * Optional Clerk JWT for per-user identity and RBAC.
198
- * When present, the SDK operates in user-scoped mode with
199
- * pack-aware tool filtering. When absent, operates in agent mode.
200
- */
201
- /** Lucern platform session token for interactive/user-scoped requests. */
202
- userToken?: string;
203
- /**
204
- * Optional pack key for auto-install convenience.
205
- * When set, the SDK will call `packs.install()` on first use
206
- * to ensure the pack is available in the workspace.
207
- */
208
- packKey?: string;
209
- /** Target environment. Defaults to production if not specified. */
210
- environment?: "sandbox" | "production";
211
- };
212
- /**
213
- * Create the high-level Lucern SDK client with all domain namespaces.
214
- *
215
- * @param config - Client configuration with API key, base URL, and optional settings.
216
- * @returns The Lucern client with namespaced methods for beliefs, topics, evidence, decisions, and more.
217
- */
218
- declare function createLucernClient(config?: LucernClientConfig): {
219
- config: LucernClientConfig;
220
- version: string;
221
- search(query: string, options?: {
222
- topicId?: string;
223
- types?: string[];
224
- status?: string;
225
- minConfidence?: number;
226
- limit?: number;
227
- cursor?: string;
228
- }): Promise<GatewayDataEnvelope<{
229
- [x: string]: unknown;
230
- } & {
231
- cursor?: string;
232
- total?: number;
233
- } & {
234
- beliefs?: {
235
- [x: string]: unknown;
236
- }[];
237
- results?: {
238
- [x: string]: unknown;
239
- }[];
240
- }>>;
241
- events: {
242
- list(query?: Parameters<(query?: {
243
- topicId?: string;
244
- after?: string;
245
- types?: string[];
246
- startTime?: number;
247
- endTime?: number;
248
- limit?: number;
249
- }) => Promise<PlatformGatewaySuccess<{
250
- [x: string]: unknown;
251
- } & {
252
- cursor?: string;
253
- total?: number;
254
- } & {
255
- events?: {
256
- [x: string]: unknown;
257
- }[];
258
- }>>>[0]): Promise<GatewayDataEnvelope<{
259
- [x: string]: unknown;
260
- } & {
261
- cursor?: string;
262
- total?: number;
263
- } & {
264
- events?: {
265
- [x: string]: unknown;
266
- }[];
267
- }>>;
268
- replay(input: Parameters<(input: {
269
- [x: string]: unknown;
270
- }, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<{
271
- [x: string]: unknown;
272
- }>>>[0]): Promise<GatewayDataEnvelope<{
273
- [x: string]: unknown;
274
- }>>;
275
- recordEvent: (input: RecordEventInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<EventingRecord>>;
276
- listEvents: (input: EventingScope) => Promise<PlatformGatewaySuccess<ListResult<EventingRecord, "events">>>;
277
- listWebhooks: (input: EventingScope) => Promise<PlatformGatewaySuccess<ListResult<EventingWebhookRecord, "webhooks">>>;
278
- enqueueDelivery: (input: EnqueueDeliveryInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<EventingDeliveryRecord>>;
279
- recordDeliveryAttempt: (input: RecordDeliveryAttemptInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<EventingDeliveryRecord>>;
280
- updateDeliveryStatus: (input: UpdateDeliveryStatusInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<EventingDeliveryRecord>>;
281
- };
282
- beliefs: {
283
- create(input: BeliefsCompatCreateInput): Promise<GatewayDataEnvelope<{
284
- [x: string]: unknown;
285
- } & {
286
- id?: string;
287
- beliefId?: string;
288
- nodeId?: string;
289
- }>>;
290
- get(nodeId: string): Promise<GatewayDataEnvelope<{
291
- [x: string]: unknown;
292
- } & {
293
- id?: string;
294
- beliefId?: string;
295
- nodeId?: string;
296
- }>>;
297
- refine(nodeId: string, textOrInput: string | {
298
- text: string;
299
- rationale?: string;
300
- }, rationale?: string): Promise<GatewayDataEnvelope<{
301
- [x: string]: unknown;
302
- } & {
303
- id?: string;
304
- beliefId?: string;
305
- nodeId?: string;
306
- }>>;
307
- updateConfidence(nodeId: string, input: BeliefsCompatUpdateConfidenceInput): Promise<GatewayDataEnvelope<{
308
- [x: string]: unknown;
309
- }>>;
310
- modulateConfidence(nodeId: string, input: BeliefsCompatUpdateConfidenceInput): Promise<GatewayDataEnvelope<{
311
- [x: string]: unknown;
312
- }>>;
313
- updateStatus(input: Parameters<(input: {
314
- id?: string;
315
- nodeId?: string;
316
- beliefId?: string;
317
- status: "active" | "superseded" | "archived";
318
- reason?: string;
319
- }, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<{
320
- [x: string]: unknown;
321
- }>>>[0], idempotencyKey?: string): Promise<GatewayDataEnvelope<{
322
- [x: string]: unknown;
323
- }>>;
324
- updateRationale(input: Parameters<(input: {
325
- id?: string;
326
- nodeId?: string;
327
- beliefId?: string;
328
- rationale?: string;
329
- }, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<{
330
- [x: string]: unknown;
331
- }>>>[0], idempotencyKey?: string): Promise<GatewayDataEnvelope<{
332
- [x: string]: unknown;
333
- }>>;
334
- linkBeliefs(input: Parameters<(input: {
335
- fromNodeId: string;
336
- toNodeId: string;
337
- edgeType: string;
338
- weight?: number;
339
- context?: string;
340
- }, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<{
341
- [x: string]: unknown;
342
- }>>>[0], idempotencyKey?: string): Promise<GatewayDataEnvelope<{
343
- [x: string]: unknown;
344
- }>>;
345
- unlinkEvidence(input: Parameters<(input: {
346
- beliefNodeId?: string;
347
- beliefId?: string;
348
- insightId?: string;
349
- evidenceId?: string;
350
- }, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<{
351
- [x: string]: unknown;
352
- }>>>[0], idempotencyKey?: string): Promise<GatewayDataEnvelope<{
353
- [x: string]: unknown;
354
- }>>;
355
- updateCriticality(input: Parameters<(input: {
356
- id?: string;
357
- nodeId?: string;
358
- beliefId?: string;
359
- criticality: string;
360
- }, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<{
361
- [x: string]: unknown;
362
- }>>>[0], idempotencyKey?: string): Promise<GatewayDataEnvelope<{
363
- [x: string]: unknown;
364
- }>>;
365
- batchUpdateCriticality(input: Parameters<(input: {
366
- updates: {
367
- [x: string]: unknown;
368
- }[];
369
- }, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<{
370
- [x: string]: unknown;
371
- }>>>[0], idempotencyKey?: string): Promise<GatewayDataEnvelope<{
372
- [x: string]: unknown;
373
- }>>;
374
- reassignTopic(input: Parameters<(input: {
375
- beliefNodeIds?: string[];
376
- beliefIds?: string[];
377
- targetTopicId: string;
378
- reason?: string;
379
- }, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<{
380
- [x: string]: unknown;
381
- }>>>[0], idempotencyKey?: string): Promise<GatewayDataEnvelope<{
382
- [x: string]: unknown;
383
- }>>;
384
- fork(nodeId: string, input: BeliefsCompatForkInput): Promise<GatewayDataEnvelope<{
385
- [x: string]: unknown;
386
- } & {
387
- id?: string;
388
- beliefId?: string;
389
- nodeId?: string;
390
- }>>;
391
- archive(nodeId: string, input?: string | {
392
- reason?: string;
393
- rationale?: string;
394
- }): Promise<GatewayDataEnvelope<{
395
- [x: string]: unknown;
396
- }>>;
397
- list(args: {
398
- topicId?: string;
399
- worktreeId?: string;
400
- status?: string;
401
- minConfidence?: number;
402
- limit?: number;
403
- cursor?: string;
404
- }): Promise<GatewayDataEnvelope<{
405
- [x: string]: unknown;
406
- } & {
407
- cursor?: string;
408
- total?: number;
409
- } & {
410
- beliefs?: ({
411
- [x: string]: unknown;
412
- } & {
413
- id?: string;
414
- beliefId?: string;
415
- nodeId?: string;
416
- })[];
417
- }>>;
418
- search: (args: {
419
- query: string;
420
- topicId?: string;
421
- status?: string;
422
- minConfidence?: number;
423
- limit?: number;
424
- }) => Promise<{
425
- results: Record<string, unknown>[];
426
- }>;
427
- lineage(nodeId: string): Promise<GatewayDataEnvelope<{
428
- [x: string]: unknown;
429
- } & {
430
- beliefId?: string;
431
- lineage?: {
432
- [x: string]: unknown;
433
- }[];
434
- }>>;
435
- confidenceHistory(nodeId: string): Promise<GatewayDataEnvelope<{
436
- [x: string]: unknown;
437
- }>>;
438
- opinionHistory(nodeId: string): Promise<OpinionHistoryEntry[]>;
439
- createContract(nodeId: string, input: Parameters<(id: string, input: {
440
- [x: string]: unknown;
441
- }, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<{
442
- [x: string]: unknown;
443
- }>>>[1]): Promise<GatewayDataEnvelope<{
444
- [x: string]: unknown;
445
- }>>;
446
- bisect(nodeId: string, input: Parameters<(id: string, input: {
447
- expectedDirection: "overconfident" | "underconfident";
448
- timeRange?: {
449
- start: number;
450
- end: number;
451
- };
452
- }, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<{
453
- [x: string]: unknown;
454
- }>>>[1]): Promise<GatewayDataEnvelope<{
455
- [x: string]: unknown;
456
- }>>;
457
- };
458
- webhooks: {
459
- create(input: Parameters<(input: {
460
- [x: string]: unknown;
461
- }, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<{
462
- [x: string]: unknown;
463
- }>>>[0]): Promise<GatewayDataEnvelope<{
464
- [x: string]: unknown;
465
- }>>;
466
- list(query?: Parameters<(query?: {
467
- topicId?: string;
468
- }) => Promise<PlatformGatewaySuccess<{
469
- [x: string]: unknown;
470
- } & {
471
- cursor?: string;
472
- total?: number;
473
- } & {
474
- webhooks?: {
475
- [x: string]: unknown;
476
- }[];
477
- }>>>[0]): Promise<GatewayDataEnvelope<{
478
- [x: string]: unknown;
479
- } & {
480
- cursor?: string;
481
- total?: number;
482
- } & {
483
- webhooks?: {
484
- [x: string]: unknown;
485
- }[];
486
- }>>;
487
- get(id: string): Promise<GatewayDataEnvelope<{
488
- [x: string]: unknown;
489
- }>>;
490
- update(id: string, input: Parameters<(id: string, input: {
491
- [x: string]: unknown;
492
- }, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<{
493
- [x: string]: unknown;
494
- }>>>[1]): Promise<GatewayDataEnvelope<{
495
- [x: string]: unknown;
496
- }>>;
497
- delete(id: string): Promise<GatewayDataEnvelope<{
498
- [x: string]: unknown;
499
- }>>;
500
- test(id: string, input?: Parameters<(id: string, input?: {
501
- topicId?: string;
502
- }, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<{
503
- [x: string]: unknown;
504
- }>>>[1]): Promise<GatewayDataEnvelope<{
505
- [x: string]: unknown;
506
- }>>;
507
- deliveries(id: string, query?: Parameters<(id: string, query?: {
508
- limit?: number;
509
- }) => Promise<PlatformGatewaySuccess<{
510
- [x: string]: unknown;
511
- }>>>[1]): Promise<GatewayDataEnvelope<{
512
- [x: string]: unknown;
513
- }>>;
514
- health(id: string): Promise<GatewayDataEnvelope<{
515
- [x: string]: unknown;
516
- }>>;
517
- };
518
- edges: {
519
- create(args: {
520
- sourceId: string;
521
- targetId: string;
522
- edgeType: string;
523
- topicId?: string;
524
- confidence?: number;
525
- weight?: number;
526
- context?: string;
527
- reasoning?: string;
528
- }): Promise<GatewayDataEnvelope<{
529
- [x: string]: unknown;
530
- }>>;
531
- update(input: Parameters<(input: {
532
- edgeId: string;
533
- weight?: number;
534
- confidence?: number;
535
- context?: string;
536
- derivationType?: string;
537
- }, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<{
538
- [x: string]: unknown;
539
- }>>>[0], idempotencyKey?: string): Promise<GatewayDataEnvelope<{
540
- [x: string]: unknown;
541
- }>>;
542
- remove(input: Parameters<(input: {
543
- edgeId: string;
544
- }, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<{
545
- [x: string]: unknown;
546
- }>>>[0], idempotencyKey?: string): Promise<GatewayDataEnvelope<{
547
- [x: string]: unknown;
548
- }>>;
549
- removeBetween(input: Parameters<(input: {
550
- fromNodeId: string;
551
- toNodeId: string;
552
- edgeType?: string;
553
- }, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<{
554
- [x: string]: unknown;
555
- }>>>[0], idempotencyKey?: string): Promise<GatewayDataEnvelope<{
556
- [x: string]: unknown;
557
- }>>;
558
- batchCreate(input: Parameters<(input: {
559
- edges: {
560
- [x: string]: unknown;
561
- }[];
562
- skipLayerValidation?: boolean;
563
- }, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<{
564
- [x: string]: unknown;
565
- }>>>[0], idempotencyKey?: string): Promise<GatewayDataEnvelope<{
566
- [x: string]: unknown;
567
- }>>;
568
- delete(input: Parameters<(input: {
569
- edgeIds: string[];
570
- }, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<{
571
- [x: string]: unknown;
572
- }>>>[0], idempotencyKey?: string): Promise<GatewayDataEnvelope<{
573
- [x: string]: unknown;
574
- }>>;
575
- list(args: {
576
- sourceId: string;
577
- edgeType?: string;
578
- limit?: number;
579
- cursor?: string;
580
- }): Promise<GatewayDataEnvelope<{
581
- [x: string]: unknown;
582
- } & {
583
- cursor?: string;
584
- total?: number;
585
- }>>;
586
- traverse(args: {
587
- startNode: string;
588
- direction?: string;
589
- maxDepth?: number;
590
- topicId?: string;
591
- }): Promise<GatewayDataEnvelope<{
592
- [x: string]: unknown;
593
- }>>;
594
- };
595
- evidence: {
596
- create(args: {
597
- text?: string;
598
- canonicalText?: string;
599
- topicId?: string;
600
- source?: string;
601
- sourceUrl?: string;
602
- targetId?: string;
603
- weight?: number;
604
- metadata?: JsonObject;
605
- title?: string;
606
- content?: string;
607
- contentType?: string;
608
- kind?: string;
609
- supports?: {
610
- nodeId: string;
611
- weight: number;
612
- reasoning?: string;
613
- };
614
- }): Promise<GatewayDataEnvelope<{
615
- [x: string]: unknown;
616
- } & {
617
- id?: string;
618
- }>>;
619
- add: (args: {
620
- text?: string;
621
- canonicalText?: string;
622
- topicId?: string;
623
- source?: string;
624
- sourceUrl?: string;
625
- targetId?: string;
626
- weight?: number;
627
- metadata?: JsonObject;
628
- title?: string;
629
- content?: string;
630
- contentType?: string;
631
- kind?: string;
632
- rationale?: string;
633
- supports?: {
634
- nodeId: string;
635
- weight: number;
636
- reasoning?: string;
637
- };
638
- }) => Promise<{
639
- [x: string]: unknown;
640
- } & {
641
- id?: string;
642
- }>;
643
- get(evidenceId: string): Promise<GatewayDataEnvelope<{
644
- [x: string]: unknown;
645
- }>>;
646
- list(args: {
647
- topicId?: string;
648
- targetId?: string;
649
- limit?: number;
650
- cursor?: string;
651
- }): Promise<GatewayDataEnvelope<{
652
- [x: string]: unknown;
653
- } & {
654
- cursor?: string;
655
- total?: number;
656
- }>>;
657
- search(args: {
658
- q?: string;
659
- query?: string;
660
- topicId?: string;
661
- targetId?: string;
662
- methodology?: string;
663
- limit?: number;
664
- cursor?: string;
665
- }): Promise<GatewayDataEnvelope<{
666
- [x: string]: unknown;
667
- } & {
668
- cursor?: string;
669
- total?: number;
670
- }>>;
671
- link(args: {
672
- evidenceId: string;
673
- targetId?: string;
674
- beliefId?: string;
675
- questionId?: string;
676
- targetType?: "belief" | "question" | string;
677
- weight?: number;
678
- rationale?: string;
679
- }): Promise<GatewayDataEnvelope<{
680
- [x: string]: unknown;
681
- } & {
682
- edgeId?: string;
683
- }>>;
684
- linkToBelief(args: {
685
- evidenceId: string;
686
- beliefId: string;
687
- weight: number;
688
- rationale?: string;
689
- }): Promise<{
690
- beliefId: string;
691
- edgeId?: string;
692
- }>;
693
- classifyEvidence(beliefId: string, evidenceId: string, config?: Parameters<(beliefId: string, evidenceId: string, classificationConfig?: EvidenceClassificationRequestConfig, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<ClassifyEvidenceResult>>>[2], idempotencyKey?: string): Promise<GatewayDataEnvelope<ClassifyEvidenceResult>>;
694
- classifyEvidenceBatch(beliefId: string, evidence: Parameters<(beliefId: string, evidence: ClassifyEvidenceBatchItem[], classificationConfig?: EvidenceClassificationRequestConfig, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<ClassifyEvidenceBatchResult>>>[1], config?: Parameters<(beliefId: string, evidence: ClassifyEvidenceBatchItem[], classificationConfig?: EvidenceClassificationRequestConfig, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<ClassifyEvidenceBatchResult>>>[2], idempotencyKey?: string): Promise<GatewayDataEnvelope<ClassifyEvidenceBatchResult>>;
695
- updateStatus(input: Parameters<(input: {
696
- [x: string]: unknown;
697
- }, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<{
698
- [x: string]: unknown;
699
- }>>>[0], idempotencyKey?: string): Promise<GatewayDataEnvelope<{
700
- [x: string]: unknown;
701
- }>>;
702
- update(input: Parameters<(input: {
703
- [x: string]: unknown;
704
- }, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<{
705
- [x: string]: unknown;
706
- }>>>[0], idempotencyKey?: string): Promise<GatewayDataEnvelope<{
707
- [x: string]: unknown;
708
- }>>;
709
- flagIncorrect(input: Parameters<(input: {
710
- [x: string]: unknown;
711
- }, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<{
712
- [x: string]: unknown;
713
- }>>>[0], idempotencyKey?: string): Promise<GatewayDataEnvelope<{
714
- [x: string]: unknown;
715
- }>>;
716
- remove(input: Parameters<(input: {
717
- [x: string]: unknown;
718
- }, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<{
719
- [x: string]: unknown;
720
- }>>>[0], idempotencyKey?: string): Promise<GatewayDataEnvelope<{
721
- [x: string]: unknown;
722
- }>>;
723
- updateVerificationStatus(input: Parameters<(input: {
724
- [x: string]: unknown;
725
- }, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<{
726
- [x: string]: unknown;
727
- }>>>[0], idempotencyKey?: string): Promise<GatewayDataEnvelope<{
728
- [x: string]: unknown;
729
- }>>;
730
- };
731
- sources: {
732
- upsert(input: Parameters<(spec: UpsertSourceSpec, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<PlatformSourceRecord>>>[0], idempotencyKey?: Parameters<(spec: UpsertSourceSpec, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<PlatformSourceRecord>>>[1]): Promise<GatewayDataEnvelope<PlatformSourceRecord>>;
733
- get(sourceId: string): Promise<GatewayDataEnvelope<PlatformSourceRecord>>;
734
- };
735
- questions: {
736
- create(args: {
737
- text: string;
738
- topicId?: string;
739
- priority?: string;
740
- linkedBeliefId?: string;
741
- metadata?: JsonObject;
742
- }): Promise<GatewayDataEnvelope<{
743
- [x: string]: unknown;
744
- }>>;
745
- get(questionId: string): Promise<GatewayDataEnvelope<{
746
- [x: string]: unknown;
747
- }>>;
748
- refine(questionId: string, text: string, refinementReason?: string): Promise<GatewayDataEnvelope<{
749
- [x: string]: unknown;
750
- }>>;
751
- list(args: {
752
- topicId?: string;
753
- status?: string;
754
- priority?: string;
755
- worktreeId?: string;
756
- limit?: number;
757
- cursor?: string;
758
- }): Promise<GatewayDataEnvelope<{
759
- [x: string]: unknown;
760
- } & {
761
- cursor?: string;
762
- total?: number;
763
- } & {
764
- questions?: Array<{
765
- [x: string]: unknown;
766
- } & {
767
- priority?: string;
768
- }>;
769
- }>>;
770
- updateStatus(questionId: string, status: string, rationale?: string): Promise<GatewayDataEnvelope<{
771
- [x: string]: unknown;
772
- }>>;
773
- batchCreate(input: Parameters<(input: {
774
- [x: string]: unknown;
775
- }, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<{
776
- [x: string]: unknown;
777
- }>>>[0], idempotencyKey?: string): Promise<GatewayDataEnvelope<{
778
- [x: string]: unknown;
779
- }>>;
780
- add(input: Parameters<(input: {
781
- [x: string]: unknown;
782
- }, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<{
783
- [x: string]: unknown;
784
- }>>>[0], idempotencyKey?: string): Promise<GatewayDataEnvelope<{
785
- [x: string]: unknown;
786
- }>>;
787
- updatePriority(input: Parameters<(input: {
788
- [x: string]: unknown;
789
- }, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<{
790
- [x: string]: unknown;
791
- }>>>[0], idempotencyKey?: string): Promise<GatewayDataEnvelope<{
792
- [x: string]: unknown;
793
- }>>;
794
- advanceToConviction(input: Parameters<(input: {
795
- [x: string]: unknown;
796
- }, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<{
797
- [x: string]: unknown;
798
- }>>>[0], idempotencyKey?: string): Promise<GatewayDataEnvelope<{
799
- [x: string]: unknown;
800
- }>>;
801
- updateConviction(input: Parameters<(input: {
802
- [x: string]: unknown;
803
- }, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<{
804
- [x: string]: unknown;
805
- }>>>[0], idempotencyKey?: string): Promise<GatewayDataEnvelope<{
806
- [x: string]: unknown;
807
- }>>;
808
- finalizeConviction(input: Parameters<(input: {
809
- [x: string]: unknown;
810
- }, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<{
811
- [x: string]: unknown;
812
- }>>>[0], idempotencyKey?: string): Promise<GatewayDataEnvelope<{
813
- [x: string]: unknown;
814
- }>>;
815
- update(input: Parameters<(input: {
816
- [x: string]: unknown;
817
- }, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<{
818
- [x: string]: unknown;
819
- }>>>[0], idempotencyKey?: string): Promise<GatewayDataEnvelope<{
820
- [x: string]: unknown;
821
- }>>;
822
- delete(input: Parameters<(input: {
823
- [x: string]: unknown;
824
- }, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<{
825
- [x: string]: unknown;
826
- }>>>[0], idempotencyKey?: string): Promise<GatewayDataEnvelope<{
827
- [x: string]: unknown;
828
- }>>;
829
- answer(questionId: string, input: {
830
- text: string;
831
- confidence?: string;
832
- evidenceIds?: string[];
833
- rationale?: string;
834
- }): Promise<GatewayDataEnvelope<{
835
- [x: string]: unknown;
836
- }>>;
837
- archive(questionId: string, reason?: string): Promise<GatewayDataEnvelope<{
838
- [x: string]: unknown;
839
- }>>;
840
- linkEvidence(args: {
841
- evidenceId: string;
842
- questionId: string;
843
- relevance?: number;
844
- weight?: number;
845
- rationale?: string;
846
- }): Promise<{
847
- questionId: string;
848
- relevance: number | undefined;
849
- edgeId?: string;
850
- }>;
851
- getHighPriority(args: {
852
- topicId?: string;
853
- limit?: number;
854
- includeAnswered?: boolean;
855
- }): Promise<{
856
- questions: ({
857
- priority?: string;
858
- } & Record<string, unknown>)[];
859
- }>;
860
- findMissing(args: {
861
- topicId?: string;
862
- minConfidence?: number;
863
- }): Promise<GatewayDataEnvelope<Record<string, unknown>>>;
864
- };
865
- graph: {
866
- nodes: {
867
- list(query: Parameters<(query: ListNodesInput) => Promise<PlatformGatewaySuccess<ListResult<PlatformGraphNode, "nodes">>>>[0]): Promise<PlatformGatewaySuccess<ListResult<PlatformGraphNode, "nodes">>>;
868
- get(input: string | Parameters<(query: GetNodeInput) => Promise<PlatformGatewaySuccess<PlatformGraphNode>>>[0]): Promise<PlatformGatewaySuccess<PlatformGraphNode>>;
869
- create(input: Parameters<(input: CreateNodeInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<PlatformGraphNode>>>[0], idempotencyKey?: string): Promise<PlatformGatewaySuccess<PlatformGraphNode>>;
870
- update(input: Parameters<(input: UpdateNodeInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<PlatformGraphNode>>>[0], idempotencyKey?: string): Promise<PlatformGatewaySuccess<PlatformGraphNode>>;
871
- batchCreate(input: Parameters<(input: BatchCreateNodesInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<Record<string, unknown>>>>[0], idempotencyKey?: string): Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
872
- supersede(input: Parameters<(input: SupersedeNodeInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<Record<string, unknown>>>>[0], idempotencyKey?: string): Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
873
- verify(input: Parameters<(input: VerifyNodeInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<Record<string, unknown>>>>[0], idempotencyKey?: string): Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
874
- hardDelete(input: Parameters<(input: HardDeleteNodeInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<Record<string, unknown>>>>[0], idempotencyKey?: string): Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
875
- };
876
- createEdge(input: Parameters<(input: CreateEdgeInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<PlatformGraphEdge>>>[0]): Promise<PlatformGatewaySuccess<PlatformGraphEdge>>;
877
- neighborhood(args: Parameters<(query: NeighborhoodInput) => Promise<PlatformGatewaySuccess<GraphNeighborhoodResponse>>>[0]): Promise<GatewayDataEnvelope<GraphNeighborhoodResponse>>;
878
- queryLineage: (nodeId: string, depth?: number) => Promise<{
879
- chain: {
880
- nodeId: {};
881
- relation: string;
882
- }[];
883
- forkTree: {
884
- nodeId: string;
885
- parentCount: number;
886
- childCount: number;
887
- children: never[];
888
- };
889
- depth: number;
890
- beliefId: string | undefined;
891
- lineage: {
892
- [x: string]: unknown;
893
- }[];
894
- }>;
895
- getConfidenceHistory: (nodeId: string) => Promise<GatewayDataEnvelope<{
896
- [x: string]: unknown;
897
- }>>;
898
- getOpinionHistory: (nodeId: string) => Promise<OpinionHistoryEntry[]>;
899
- getAuditTrail: (nodeId: string, limit?: number) => Promise<{
900
- entries: {
901
- action: string;
902
- actor: string;
903
- timestamp: number;
904
- rationale: string;
905
- before: string | number | boolean | JsonObject | JsonArray | null;
906
- after: string | number | boolean | JsonObject | JsonArray | null;
907
- }[];
908
- }>;
909
- traverse(args: {
910
- startNode: string;
911
- direction?: string;
912
- maxDepth?: number;
913
- topicId?: string;
914
- }): Promise<GatewayDataEnvelope<Record<string, unknown>>>;
915
- analyze(args: {
916
- topicId?: string;
917
- limit?: number;
918
- metric?: string;
919
- }): Promise<GatewayDataEnvelope<Record<string, unknown>>>;
920
- bias(args: {
921
- topicId?: string;
922
- threshold?: number;
923
- limit?: number;
924
- }): Promise<GatewayDataEnvelope<Record<string, unknown>>>;
925
- gaps(args: {
926
- topicId?: string;
927
- minConfidence?: number;
928
- }): Promise<GatewayDataEnvelope<Record<string, unknown>>>;
929
- falsify(args: {
930
- topicId?: string;
931
- beliefId?: string;
932
- beliefIds?: string[];
933
- minConfidence?: number;
934
- }): Promise<GatewayDataEnvelope<{
935
- [x: string]: unknown;
936
- }>>;
937
- traceEntityImpact(args: {
938
- nodeId: string;
939
- topicId?: string;
940
- }): Promise<GatewayDataEnvelope<Record<string, unknown>>>;
941
- searchBeliefs: (args: {
942
- query: string;
943
- topicId?: string;
944
- status?: string;
945
- minConfidence?: number;
946
- limit?: number;
947
- }) => Promise<{
948
- results: Record<string, unknown>[];
949
- }>;
950
- findContradictions: (args: {
951
- topicId?: string;
952
- nodeId?: string;
953
- status?: string;
954
- }) => Promise<{
955
- contradictions: {
956
- beliefA: string;
957
- beliefB: string;
958
- description: string;
959
- severity: string;
960
- status: string;
961
- defeatType: string;
962
- }[];
963
- }>;
964
- bisectConfidence: (nodeId: string, args: {
965
- expectedDirection: "overconfident" | "underconfident";
966
- }) => Promise<GatewayDataEnvelope<{
967
- [x: string]: unknown;
968
- }>>;
969
- listBeliefs: (args: {
970
- topicId?: string;
971
- worktreeId?: string;
972
- status?: string;
973
- minConfidence?: number;
974
- limit?: number;
975
- cursor?: string;
976
- }) => Promise<({
977
- [x: string]: unknown;
978
- } & {
979
- id?: string;
980
- beliefId?: string;
981
- nodeId?: string;
982
- })[]>;
983
- detectConfirmationBias(topicId: string, threshold?: number): Promise<{
984
- topicId: string;
985
- threshold: number;
986
- success: true;
987
- data: Record<string, unknown>;
988
- correlationId: string;
989
- policyTraceId: string | null;
990
- idempotentReplay: boolean;
991
- }>;
992
- getStructureAnalysis(topicId: string): Promise<{
993
- topicId: string;
994
- success: true;
995
- data: Record<string, unknown>;
996
- correlationId: string;
997
- policyTraceId: string | null;
998
- idempotentReplay: boolean;
999
- }>;
1000
- getFalsificationQuestions(topicId: string, beliefIds?: string[]): Promise<{
1001
- topicId: string;
1002
- questions: unknown;
1003
- }>;
1004
- };
1005
- judgments: {
1006
- create(input: RecordJudgmentInput): Promise<PlatformGatewaySuccess<RecordJudgmentResponse>>;
1007
- record(input: RecordJudgmentInput): Promise<PlatformGatewaySuccess<RecordJudgmentResponse>>;
1008
- list(query: Parameters<(query: ListJudgmentsInput) => Promise<PlatformGatewaySuccess<ListJudgmentsResponse>>>[0]): Promise<PlatformGatewaySuccess<ListJudgmentsResponse>>;
1009
- get(judgmentId: string): Promise<PlatformGatewaySuccess<GetJudgmentResponse>>;
1010
- recordOutcome(judgmentId: string, input: Parameters<(judgmentId: string, input: RecordJudgmentOutcomeInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<RecordJudgmentOutcomeResponse>>>[1]): Promise<PlatformGatewaySuccess<RecordJudgmentOutcomeResponse>>;
1011
- updateOutcome(judgmentId: string, input: Parameters<(judgmentId: string, input: RecordJudgmentOutcomeInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<RecordJudgmentOutcomeResponse>>>[1]): Promise<PlatformGatewaySuccess<RecordJudgmentOutcomeResponse>>;
1012
- readiness(topicId: string): Promise<PlatformGatewaySuccess<JudgmentReadinessResponse>>;
1013
- calibration(topicId: string): Promise<PlatformGatewaySuccess<JudgmentCalibrationResponse>>;
1014
- pendingOutcomeReview(topicId: string): Promise<PlatformGatewaySuccess<ListResult<PendingJudgmentOutcomeRecord, "reviews">>>;
1015
- transitionAuditIntegrity(args: {
1016
- topicId?: string;
1017
- judgmentId?: string;
1018
- includePassing?: boolean;
1019
- }): Promise<PlatformGatewaySuccess<JudgmentTransitionAuditIntegrityResponse>>;
1020
- };
1021
- worktrees: {
1022
- createBranch(input: Parameters<(input: {
1023
- name: string;
1024
- topicId?: string;
1025
- description?: string;
1026
- metadata?: JsonObject;
1027
- } & TopicIdentifierInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<WorkflowBranchRecord>>>[0]): Promise<PlatformGatewaySuccess<WorkflowBranchRecord>>;
1028
- createLens(input: Parameters<(input: {
1029
- name: string;
1030
- workspaceId?: string;
1031
- topicId?: string;
1032
- description?: string;
1033
- perspectiveType: WorkflowLensPerspectiveType;
1034
- promptTemplates?: LensPromptTemplateReference[];
1035
- workflowTemplates?: LensWorkflowTemplate[];
1036
- taskTemplates?: LensTaskTemplate[];
1037
- filterCriteria?: JsonObject;
1038
- } & TopicIdentifierInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<WorkflowLensRecord>>>[0]): Promise<PlatformGatewaySuccess<WorkflowLensRecord>>;
1039
- listLenses(query: Parameters<(query: {
1040
- workspaceId?: string;
1041
- topicId?: string;
1042
- status?: WorkflowLensStatus;
1043
- perspectiveType?: WorkflowLensPerspectiveType;
1044
- } & TopicIdentifierInput) => Promise<PlatformGatewaySuccess<ListResult<WorkflowLensRecord, "lenses">>>>[0]): Promise<PlatformGatewaySuccess<ListResult<WorkflowLensRecord, "lenses">>>;
1045
- applyLensToTopic(input: Parameters<(input: {
1046
- lensId: string;
1047
- topicId?: string;
1048
- metadata?: JsonObject;
1049
- } & TopicIdentifierInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<WorkflowLensBindingRecord>>>[0]): Promise<PlatformGatewaySuccess<WorkflowLensBindingRecord>>;
1050
- removeLensFromTopic(input: Parameters<(input: {
1051
- lensId: string;
1052
- topicId?: string;
1053
- } & TopicIdentifierInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<WorkflowLensBindingRecord>>>[0]): Promise<PlatformGatewaySuccess<WorkflowLensBindingRecord>>;
1054
- create(input: AddWorktreeInput): Promise<PlatformGatewaySuccess<{
1055
- [x: string]: unknown;
1056
- }>>;
1057
- add(input: AddWorktreeInput): Promise<PlatformGatewaySuccess<{
1058
- [x: string]: unknown;
1059
- }>>;
1060
- list(query: Parameters<(query: {
1061
- topicId?: string;
1062
- branchId?: string;
1063
- status?: WorkflowWorktreeStatus;
1064
- groupBy?: "campaign" | "lane" | "flat";
1065
- lane?: string;
1066
- campaign?: number;
1067
- limit?: number;
1068
- } & TopicIdentifierInput) => Promise<PlatformGatewaySuccess<ListResult<WorkflowWorktreeRecord, "worktrees">>>>[0]): Promise<PlatformGatewaySuccess<{
1069
- [x: string]: unknown;
1070
- } & {
1071
- cursor?: string;
1072
- total?: number;
1073
- } & {
1074
- worktrees?: {
1075
- [x: string]: unknown;
1076
- }[];
1077
- }>>;
1078
- activate(worktreeId: string): Promise<PlatformGatewaySuccess<{
1079
- [x: string]: unknown;
1080
- }>>;
1081
- updateMetadata(input: FunctionSurfaceInput): Promise<PlatformGatewaySuccess<{
1082
- [x: string]: unknown;
1083
- }>>;
1084
- update(input: FunctionSurfaceInput): Promise<PlatformGatewaySuccess<{
1085
- [x: string]: unknown;
1086
- }>>;
1087
- updateTargets(input: Parameters<(input: UpdateWorktreeTargetsInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<WorkflowWorktreeRecord>>>[0]): Promise<PlatformGatewaySuccess<{
1088
- [x: string]: unknown;
1089
- }>>;
1090
- listAll(query?: Parameters<(query?: {
1091
- status?: WorkflowWorktreeStatus;
1092
- groupBy?: "campaign" | "lane" | "flat";
1093
- lane?: string;
1094
- campaign?: number;
1095
- limit?: number;
1096
- }) => Promise<PlatformGatewaySuccess<ListWorktreesResponse>>>[0]): Promise<PlatformGatewaySuccess<ListWorktreesResponse>>;
1097
- merge(worktreeId: string, input: MergeInput): Promise<PlatformGatewaySuccess<{
1098
- [x: string]: unknown;
1099
- }>>;
1100
- push(worktreeId: string, input: Parameters<(worktreeId: string, input: {
1101
- targetContext: string;
1102
- beliefIds?: string[];
1103
- metadata?: JsonObject;
1104
- }, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<PushWorktreeResponse>>>[1]): Promise<PlatformGatewaySuccess<PushWorktreeResponse>>;
1105
- openPullRequest(worktreeId: string, input: Parameters<(worktreeId: string, input: {
1106
- summary: string;
1107
- reviewers?: string[];
1108
- status?: "pending_review" | "changes_requested" | "approved" | "blocked";
1109
- }, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<OpenPullRequestResponse>>>[1]): Promise<PlatformGatewaySuccess<OpenPullRequestResponse>>;
1110
- pipelineSnapshot(topicId: string): FunctionSurfaceResult<unknown>;
1111
- complete(input: Parameters<(input: {
1112
- worktreeId: string;
1113
- keyFindings?: string[];
1114
- decisionsReached?: string[];
1115
- nextSteps?: string[];
1116
- }, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<{
1117
- [x: string]: unknown;
1118
- }>>>[0], idempotencyKey?: string): Promise<PlatformGatewaySuccess<{
1119
- [x: string]: unknown;
1120
- }>>;
1121
- advancePhase(worktreeId: string, idempotencyKey?: string): Promise<PlatformGatewaySuccess<{
1122
- [x: string]: unknown;
1123
- }>>;
1124
- setPhase(worktreeId: string, phase: string, idempotencyKey?: string): Promise<PlatformGatewaySuccess<{
1125
- [x: string]: unknown;
1126
- }>>;
1127
- patchState(input: Parameters<(input: {
1128
- worktreeId: string;
1129
- patch: {
1130
- [x: string]: unknown;
1131
- };
1132
- }, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<{
1133
- [x: string]: unknown;
1134
- }>>>[0], idempotencyKey?: string): Promise<PlatformGatewaySuccess<{
1135
- [x: string]: unknown;
1136
- }>>;
1137
- bulkCreate(input: Parameters<(input: {
1138
- worktrees: unknown[];
1139
- }, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<{
1140
- [x: string]: unknown;
1141
- }>>>[0], idempotencyKey?: string): Promise<PlatformGatewaySuccess<{
1142
- [x: string]: unknown;
1143
- }>>;
1144
- };
1145
- context: {
1146
- listTopics(query?: Parameters<(query?: TopicListInput) => Promise<PlatformGatewaySuccess<TopicListResponse>>>[0]): Promise<PlatformGatewaySuccess<TopicListResponse>>;
1147
- compile(topicId: string, input?: Parameters<(topicId: string, input?: CompileContextInput) => Promise<PlatformGatewaySuccess<PublicCompiledContext>>>[1]): Promise<PlatformGatewaySuccess<PublicCompiledContext>>;
1148
- recordScopeLearning(input: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
1149
- discover(input: FunctionSurfaceInput): Promise<GatewayDataEnvelope<Record<string, unknown>>>;
1150
- analyzeTopicDensity(input: FunctionSurfaceInput): FunctionSurfaceResult<unknown>;
1151
- applyAutoBranching(input: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
1152
- seedBeliefLattice(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
1153
- getLatticeCoverage(input?: FunctionSurfaceInput): FunctionSurfaceResult<unknown>;
1154
- matchEntityType(input: FunctionSurfaceInput): Promise<GatewayDataEnvelope<{
1155
- [x: string]: unknown;
1156
- }>>;
1157
- discoverEntityConnections(input: FunctionSurfaceInput): Promise<GatewayDataEnvelope<Record<string, unknown>>>;
1158
- triggerBeliefReview(input: FunctionSurfaceInput): Promise<GatewayDataEnvelope<Record<string, unknown>>>;
1159
- };
1160
- tasks: {
1161
- create(input: CreateTaskInput): Promise<PlatformGatewaySuccess<{
1162
- [x: string]: unknown;
1163
- }>>;
1164
- complete(taskId: string, input: CompleteTaskInput): Promise<PlatformGatewaySuccess<{
1165
- [x: string]: unknown;
1166
- }>>;
1167
- update(taskId: string, input: UpdateTaskInput): Promise<PlatformGatewaySuccess<{
1168
- [x: string]: unknown;
1169
- }>>;
1170
- list(input: FunctionSurfaceInput): Promise<PlatformGatewaySuccess<{
1171
- [x: string]: unknown;
1172
- } & {
1173
- cursor?: string;
1174
- total?: number;
1175
- } & {
1176
- tasks?: {
1177
- [x: string]: unknown;
1178
- }[];
1179
- }>>;
1180
- };
1181
- topics: {
1182
- list(input?: Parameters<(query?: TopicListInput) => Promise<PlatformGatewaySuccess<TopicListResponse>>>[0]): Promise<PlatformGatewaySuccess<TopicListResponse>>;
1183
- get(topicId: string): Promise<PlatformGatewaySuccess<TopicRecord>>;
1184
- create(input: Parameters<(input: TopicCreateInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<TopicRecord>>>[0]): Promise<PlatformGatewaySuccess<TopicRecord>>;
1185
- update(topicId: string, input: Parameters<(topicId: string, input: TopicUpdateInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<TopicRecord>>>[1]): Promise<PlatformGatewaySuccess<TopicRecord>>;
1186
- tree(topicId: string, query?: Parameters<(topicId: string, query?: TopicTreeQuery) => Promise<PlatformGatewaySuccess<TopicTreeResponse>>>[1]): Promise<PlatformGatewaySuccess<TopicTreeResponse>>;
1187
- getTree(input: {
1188
- rootId: string;
1189
- maxDepth?: number;
1190
- }): Promise<PlatformGatewaySuccess<TopicTreeResponse>>;
1191
- coverage(topicId: string, query?: Parameters<(topicId: string, query?: TopicCoverageQuery) => Promise<PlatformGatewaySuccess<TopicCoverageResponse>>>[1]): Promise<PlatformGatewaySuccess<TopicCoverageResponse>>;
1192
- remove(topicId: string, idempotencyKey?: string): Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
1193
- bulkCreate(input: Parameters<(input: TopicBulkCreateInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<Record<string, unknown>>>>[0], idempotencyKey?: string): Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
1194
- };
1195
- answers: {
1196
- create(input: FunctionSurfaceInput): Promise<PlatformGatewaySuccess<{
1197
- [x: string]: unknown;
1198
- }>>;
1199
- get(input: FunctionSurfaceInput): Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
1200
- };
1201
- contradictions: {
1202
- flag(args: {
1203
- beliefA: string;
1204
- beliefB: string;
1205
- description: string;
1206
- topicId?: string;
1207
- severity?: string;
1208
- defeatType?: string;
1209
- }): Promise<GatewayDataEnvelope<{
1210
- [x: string]: unknown;
1211
- }>>;
1212
- list(args: {
1213
- topicId?: string;
1214
- status?: string;
1215
- limit?: number;
1216
- cursor?: string;
1217
- }): Promise<GatewayDataEnvelope<{
1218
- [x: string]: unknown;
1219
- } & {
1220
- cursor?: string;
1221
- total?: number;
1222
- } & {
1223
- contradictions?: {
1224
- [x: string]: unknown;
1225
- }[];
1226
- }>>;
1227
- get(contradictionId: string): Promise<GatewayDataEnvelope<{
1228
- [x: string]: unknown;
1229
- }>>;
1230
- find: (args: {
1231
- topicId?: string;
1232
- nodeId?: string;
1233
- status?: string;
1234
- }) => Promise<{
1235
- contradictions: {
1236
- beliefA: string;
1237
- beliefB: string;
1238
- description: string;
1239
- severity: string;
1240
- status: string;
1241
- defeatType: string;
1242
- }[];
1243
- }>;
1244
- };
1245
- ontologies: {
1246
- list(input?: {
1247
- tenantId?: string;
1248
- tier?: string;
1249
- status?: string;
1250
- }): Promise<GatewayDataEnvelope<{
1251
- ontologies: any[];
1252
- total: number;
1253
- items: any[];
1254
- definitions: any[];
1255
- }>>;
1256
- get(ontologyId: string): Promise<GatewayDataEnvelope<{
1257
- [x: string]: unknown;
1258
- }>>;
1259
- bind(input: Parameters<(input: OntologyBindingInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<{
1260
- [x: string]: unknown;
1261
- }>>>[0], idempotencyKey?: Parameters<(input: OntologyBindingInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<{
1262
- [x: string]: unknown;
1263
- }>>>[1]): Promise<GatewayDataEnvelope<{
1264
- [x: string]: unknown;
1265
- }>>;
1266
- match(input: Parameters<(input: {
1267
- [x: string]: unknown;
1268
- }, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<{
1269
- [x: string]: unknown;
1270
- }>>>[0], idempotencyKey?: Parameters<(input: {
1271
- [x: string]: unknown;
1272
- }, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<{
1273
- [x: string]: unknown;
1274
- }>>>[1]): Promise<GatewayDataEnvelope<{
1275
- [x: string]: unknown;
1276
- }>>;
1277
- create(input: FunctionSurfaceInput): Promise<PlatformGatewaySuccess<Record<string, unknown>> & Record<string, unknown>>;
1278
- update(input: FunctionSurfaceInput): Promise<PlatformGatewaySuccess<Record<string, unknown>> & Record<string, unknown>>;
1279
- archive(input: FunctionSurfaceInput): Promise<PlatformGatewaySuccess<Record<string, unknown>> & Record<string, unknown>>;
1280
- createVersion(input: FunctionSurfaceInput): Promise<PlatformGatewaySuccess<Record<string, unknown>> & Record<string, unknown>>;
1281
- publishVersion(input: FunctionSurfaceInput): Promise<GatewayDataEnvelope<Record<string, unknown>>>;
1282
- publishOntologyVersion(input: FunctionSurfaceInput): Promise<GatewayDataEnvelope<Record<string, unknown>>>;
1283
- deprecateVersion(input: FunctionSurfaceInput): Promise<GatewayDataEnvelope<Record<string, unknown>>>;
1284
- deprecateOntologyVersion(input: FunctionSurfaceInput): Promise<GatewayDataEnvelope<Record<string, unknown>>>;
1285
- resolveEffective(input: FunctionSurfaceInput): Promise<GatewayDataEnvelope<Record<string, unknown>>>;
1286
- resolveEffectiveOntology(input: FunctionSurfaceInput): Promise<GatewayDataEnvelope<Record<string, unknown>>>;
1287
- raw: {
1288
- list(filters?: GatewayScope & {
1289
- tenantId?: string;
1290
- tier?: string;
1291
- status?: string;
1292
- }): Promise<PlatformGatewaySuccess<{
1293
- ontologies: any[];
1294
- total: number;
1295
- items: any[];
1296
- definitions: any[];
1297
- }>>;
1298
- get(id: string): Promise<PlatformGatewaySuccess<unknown>>;
1299
- bind(input: OntologyBindingInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
1300
- listDefinitions(filters?: GatewayScope & {
1301
- tenantId?: string;
1302
- tier?: string;
1303
- status?: string;
1304
- }): Promise<PlatformGatewaySuccess<{
1305
- ontologies: any[];
1306
- total: number;
1307
- items: any[];
1308
- definitions: any[];
1309
- }>>;
1310
- getDefinition(id: string): Promise<PlatformGatewaySuccess<unknown>>;
1311
- createDefinition(input: OntologyDefinitionInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
1312
- updateDefinition(id: string, input: OntologyDefinitionUpdateInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
1313
- archiveDefinition(id: string, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
1314
- listVersions(ontologyId: string, filters?: GatewayScope & {
1315
- status?: string;
1316
- }): Promise<PlatformGatewaySuccess<ListResult<any, "versions">>>;
1317
- createVersion(ontologyId: string, input: OntologyVersionInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
1318
- publishVersion(ontologyId: string, versionId: string, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
1319
- deprecateVersion(ontologyId: string, versionId: string, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
1320
- listTopics(ontologyId: string): Promise<PlatformGatewaySuccess<ListResult<any, "topics">>>;
1321
- listTopicsByOntology(ontologyId: string): Promise<PlatformGatewaySuccess<ListResult<any, "topics">>>;
1322
- };
1323
- };
1324
- coordination: {
1325
- registerSession(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
1326
- heartbeatSession(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
1327
- endSession(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
1328
- listActiveSessions(input?: FunctionSurfaceInput): FunctionSurfaceResult<unknown>;
1329
- sendAgentMessage(input: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
1330
- broadcastMessage(input: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
1331
- getInbox(input?: FunctionSurfaceInput): FunctionSurfaceResult<unknown>;
1332
- getAgentInbox(input?: FunctionSurfaceInput): FunctionSurfaceResult<unknown>;
1333
- claimFiles(input: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
1334
- };
1335
- policy: {
1336
- checkPermission(input: FunctionSurfaceInput): Promise<PlatformGatewaySuccess<PermissionDecision>>;
1337
- listAccessibleTopics(input?: Parameters<(query?: GatewayScope & {
1338
- permission?: PermissionKind;
1339
- includeShared?: boolean;
1340
- principal?: string;
1341
- principalId?: string;
1342
- limit?: number;
1343
- }) => Promise<{
1344
- data: {
1345
- permission: PermissionKind;
1346
- topics: {
1347
- [key: string]: unknown;
1348
- topicId?: string;
1349
- name?: string;
1350
- type?: string;
1351
- isOwner?: boolean;
1352
- }[];
1353
- total: number;
1354
- deniedTopics: {
1355
- topicId: string;
1356
- reasonCode: string;
1357
- }[];
1358
- };
1359
- success: true;
1360
- correlationId: string;
1361
- policyTraceId: string | null;
1362
- idempotentReplay: boolean;
1363
- }>>[0]): Promise<{
1364
- data: {
1365
- permission: PermissionKind;
1366
- topics: {
1367
- [key: string]: unknown;
1368
- topicId?: string;
1369
- name?: string;
1370
- type?: string;
1371
- isOwner?: boolean;
1372
- }[];
1373
- total: number;
1374
- deniedTopics: {
1375
- topicId: string;
1376
- reasonCode: string;
1377
- }[];
1378
- };
1379
- success: true;
1380
- correlationId: string;
1381
- policyTraceId: string | null;
1382
- idempotentReplay: boolean;
1383
- }>;
1384
- filterByPermission(input: FunctionSurfaceInput): Promise<{
1385
- success: boolean;
1386
- data: {
1387
- permission: PermissionKind;
1388
- allowedTopicIds: string[];
1389
- deniedTopics: {
1390
- topicId: string;
1391
- reasonCode: string;
1392
- }[];
1393
- count: number;
1394
- };
1395
- }>;
1396
- manageWritePolicy(input: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
1397
- raw: {
1398
- listDecisions(query?: GatewayScope & {
1399
- action?: string;
1400
- decision?: string;
1401
- traceId?: string;
1402
- principalId?: string;
1403
- topicId?: string;
1404
- limit?: number;
1405
- }): Promise<PlatformGatewaySuccess<ListResult<any, "decisions">>>;
1406
- grant(input: GatewayScope & {
1407
- topicId: string;
1408
- permission: PermissionKind;
1409
- principal?: string;
1410
- principalId?: string;
1411
- groupId?: string;
1412
- beliefClusterId?: string;
1413
- expiresAt?: number;
1414
- }, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
1415
- revoke(input: GatewayScope & {
1416
- topicId: string;
1417
- principal?: string;
1418
- principalId?: string;
1419
- groupId?: string;
1420
- beliefClusterId?: string;
1421
- }, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
1422
- listWritePolicies(query?: GatewayScope & {
1423
- topicId?: string;
1424
- role?: string;
1425
- toolCategory?: string;
1426
- enabled?: boolean;
1427
- }): Promise<{
1428
- data: {
1429
- policies: WritePolicyRecord[];
1430
- };
1431
- success: true;
1432
- correlationId: string;
1433
- policyTraceId: string | null;
1434
- idempotentReplay: boolean;
1435
- }>;
1436
- createWritePolicy(input: WritePolicyCreateInput, idempotencyKey?: string): Promise<{
1437
- data: {
1438
- id: string | undefined;
1439
- created: boolean;
1440
- policy: WritePolicyRecord | null;
1441
- };
1442
- success: true;
1443
- correlationId: string;
1444
- policyTraceId: string | null;
1445
- idempotentReplay: boolean;
1446
- }>;
1447
- updateWritePolicy(id: string, input: WritePolicyUpdateInput, idempotencyKey?: string): Promise<{
1448
- data: {
1449
- id: string | undefined;
1450
- updated: boolean;
1451
- policy: WritePolicyRecord | null;
1452
- };
1453
- success: true;
1454
- correlationId: string;
1455
- policyTraceId: string | null;
1456
- idempotentReplay: boolean;
1457
- }>;
1458
- deleteWritePolicy(id: string, scope?: GatewayScope, idempotencyKey?: string): Promise<PlatformGatewaySuccess<{
1459
- id?: string;
1460
- deleted?: boolean;
1461
- }>>;
1462
- listRolePolicies(query?: GatewayScope): Promise<{
1463
- data: {
1464
- policies: TenantPolicyRecord[];
1465
- };
1466
- success: true;
1467
- correlationId: string;
1468
- policyTraceId: string | null;
1469
- idempotentReplay: boolean;
1470
- }>;
1471
- createRolePolicy(input: GatewayScope & {
1472
- roleName: string;
1473
- description?: string;
1474
- permissions: TenantPolicyPermission[];
1475
- groupBindings?: string[];
1476
- }, idempotencyKey?: string): Promise<{
1477
- data: {
1478
- policy: TenantPolicyRecord | null;
1479
- };
1480
- success: true;
1481
- correlationId: string;
1482
- policyTraceId: string | null;
1483
- idempotentReplay: boolean;
1484
- }>;
1485
- updateRolePolicy(id: string, input: GatewayScope & {
1486
- roleName: string;
1487
- description?: string;
1488
- permissions: TenantPolicyPermission[];
1489
- groupBindings?: string[];
1490
- }, idempotencyKey?: string): Promise<{
1491
- data: {
1492
- policy: TenantPolicyRecord | null;
1493
- };
1494
- success: true;
1495
- correlationId: string;
1496
- policyTraceId: string | null;
1497
- idempotentReplay: boolean;
1498
- }>;
1499
- deleteRolePolicy(id: string, scope?: GatewayScope, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
1500
- checkPermission(query: GatewayScope & {
1501
- topicId?: string;
1502
- permission?: PermissionKind;
1503
- principal?: string;
1504
- principalId?: string;
1505
- beliefClusterId?: string;
1506
- }): Promise<PlatformGatewaySuccess<PermissionDecision>>;
1507
- listAccessibleTopics(query?: GatewayScope & {
1508
- permission?: PermissionKind;
1509
- includeShared?: boolean;
1510
- principal?: string;
1511
- principalId?: string;
1512
- limit?: number;
1513
- }): Promise<{
1514
- data: {
1515
- permission: PermissionKind;
1516
- topics: {
1517
- [key: string]: unknown;
1518
- topicId?: string;
1519
- name?: string;
1520
- type?: string;
1521
- isOwner?: boolean;
1522
- }[];
1523
- total: number;
1524
- deniedTopics: {
1525
- topicId: string;
1526
- reasonCode: string;
1527
- }[];
1528
- };
1529
- success: true;
1530
- correlationId: string;
1531
- policyTraceId: string | null;
1532
- idempotentReplay: boolean;
1533
- }>;
1534
- filterByPermission(input: GatewayScope & {
1535
- topicIds?: string[];
1536
- permission?: PermissionKind;
1537
- principal?: string;
1538
- principalId?: string;
1539
- }): Promise<{
1540
- success: boolean;
1541
- data: {
1542
- permission: PermissionKind;
1543
- allowedTopicIds: string[];
1544
- deniedTopics: {
1545
- topicId: string;
1546
- reasonCode: string;
1547
- }[];
1548
- count: number;
1549
- };
1550
- }>;
1551
- };
1552
- };
1553
- observations: {
1554
- ingest(input: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
1555
- ingestObservation(input: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
1556
- getContext(input: FunctionSurfaceInput): FunctionSurfaceResult<unknown>;
1557
- getObservationContext(input: FunctionSurfaceInput): FunctionSurfaceResult<unknown>;
1558
- };
1559
- coding: {
1560
- getCodeContext(input: FunctionSurfaceInput): FunctionSurfaceResult<unknown>;
1561
- getChangeHistory(input: FunctionSurfaceInput): FunctionSurfaceResult<unknown>;
1562
- recordAttempt(input: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
1563
- getFailureLog(input: FunctionSurfaceInput): FunctionSurfaceResult<unknown>;
1564
- };
1565
- contracts: {
1566
- create(input: FunctionSurfaceInput): Promise<GatewayDataEnvelope<Record<string, unknown>>>;
1567
- createEpistemicContract(input: FunctionSurfaceInput): Promise<GatewayDataEnvelope<Record<string, unknown>>>;
1568
- list(input?: {
1569
- beliefNodeId?: string;
1570
- contractId?: string;
1571
- status?: string;
1572
- }): Promise<GatewayDataEnvelope<Record<string, unknown>>>;
1573
- evaluate(input: FunctionSurfaceInput): Promise<GatewayDataEnvelope<Record<string, unknown>>>;
1574
- evaluateContract(input: FunctionSurfaceInput): Promise<GatewayDataEnvelope<Record<string, unknown>>>;
1575
- getStatus(input: FunctionSurfaceInput): Promise<GatewayDataEnvelope<Record<string, unknown>>>;
1576
- getContractStatus(input: FunctionSurfaceInput): Promise<GatewayDataEnvelope<Record<string, unknown>>>;
1577
- };
1578
- bootstrap: {
1579
- generateSessionHandoff(input: FunctionSurfaceInput): FunctionSurfaceResult<unknown>;
1580
- };
1581
- embeddings: {
1582
- getByNodeIds(input: GetEmbeddingsByNodeIdsInput): Promise<PlatformGatewaySuccess<ListResult<EmbeddingRecord, "embeddings">>>;
1583
- listMissingForTopic(input: ListMissingEmbeddingsInput): Promise<PlatformGatewaySuccess<ListResult<MissingEmbeddingCandidate, "nodes">>>;
1584
- vectorSearchByTopic(input: VectorSearchByTopicInput): Promise<PlatformGatewaySuccess<ListResult<VectorSearchMatch, "results">>>;
1585
- markEmbeddingBackfillQueued(input: MarkEmbeddingBackfillQueuedInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<{
1586
- queued: number;
1587
- topicId: string;
1588
- workspaceId: string;
1589
- nodeIds: string[];
1590
- }>>;
1591
- };
1592
- graphAnalysis: {
1593
- saveAnalysis(input: SaveGraphAnalysisInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<GraphAnalysisRecord>>;
1594
- listAnalyses(input: ListGraphAnalysesInput): Promise<PlatformGatewaySuccess<ListResult<any, "analyses">>>;
1595
- getLatestAnalysis(input: GetLatestGraphAnalysisInput): Promise<PlatformGatewaySuccess<GraphAnalysisRecord>>;
1596
- saveSuggestions(input: SaveGraphSuggestionsInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<GraphAnalysisSuggestionsResponse>>;
1597
- updateSuggestionStatus(input: UpdateGraphSuggestionStatusInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<GraphAnalysisSuggestion>>;
1598
- listSuggestions(input: ListGraphSuggestionsInput): Promise<PlatformGatewaySuccess<ListResult<any, "suggestions">>>;
1599
- listGraphChanges(input: ListGraphChangesInput): Promise<PlatformGatewaySuccess<ListResult<any, "changes">>>;
1600
- computeOrRequestAnalysis(input: ComputeOrRequestGraphAnalysisInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<GraphAnalysisRecord>>;
1601
- };
1602
- graphRecommendations: {
1603
- listForTopic(input: GraphRecommendationListInput): Promise<PlatformGatewaySuccess<ListResult<any, "recommendations">>>;
1604
- getRecommendation(recommendationId: string): Promise<PlatformGatewaySuccess<GraphRecommendationRecord>>;
1605
- markRecommendationStatus(input: MarkGraphRecommendationStatusInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<GraphRecommendationRecord>>;
1606
- };
1607
- orgGraphSearch: {
1608
- search(input: OrgGraphSearchInput): Promise<PlatformGatewaySuccess<OrgGraphSearchResponse>>;
1609
- getNode(input: GetOrgGraphNodeInput): Promise<PlatformGatewaySuccess<OrgGraphSearchResult>>;
1610
- listByProvenance(input: ListOrgGraphByProvenanceInput): Promise<PlatformGatewaySuccess<OrgGraphSearchResponse>>;
1611
- listPublishedFromWorkspace(input: ListPublishedFromWorkspaceInput): Promise<PlatformGatewaySuccess<OrgGraphSearchResponse>>;
1612
- };
1613
- ontologyLinks: {
1614
- createLink(input: OntologyLinkWriteInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<OntologyLinkRecord>>;
1615
- upsertLink(input: OntologyLinkWriteInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<OntologyLinkRecord>>;
1616
- listLinksForNode(input: ListOntologyLinksForNodeInput): Promise<PlatformGatewaySuccess<ListResult<OntologyLinkRecord, "links">>>;
1617
- updateLinkStatus(input: UpdateOntologyLinkStatusInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<OntologyLinkRecord>>;
1618
- };
1619
- graphStateClassifier: {
1620
- classifyNode(input: ClassifyNodeInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<GraphStateClassification>>;
1621
- classifyTopic(input: ClassifyTopicInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<ListResult<GraphStateClassification, "classifications">>>;
1622
- listClassifications(input: ListGraphStateClassificationsInput): Promise<PlatformGatewaySuccess<ListResult<GraphStateClassification, "classifications">>>;
1623
- recordClassification(input: RecordGraphStateClassificationInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<GraphStateClassification>>;
1624
- };
1625
- modelRuntime: {
1626
- listModels(input: ModelRuntimeScope): Promise<PlatformGatewaySuccess<ListResult<ModelRegistryRecord, "models">>>;
1627
- getModel(input: ModelRuntimeScope & {
1628
- modelId: string;
1629
- }): Promise<PlatformGatewaySuccess<ModelRegistryRecord>>;
1630
- listFunctionSlots(input: ModelRuntimeScope & {
1631
- functionName?: string;
1632
- }): Promise<PlatformGatewaySuccess<ListResult<ModelFunctionSlot, "slots">>>;
1633
- resolveSlot(input: ResolveModelSlotInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<ModelFunctionSlot>>;
1634
- updateSlotConfig(input: UpdateModelSlotConfigInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<ModelFunctionSlot>>;
1635
- };
1636
- jobs: {
1637
- enqueue(input: EnqueueJobInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<JobRecord>>;
1638
- list(input: JobsScope): Promise<PlatformGatewaySuccess<ListResult<JobRecord, "jobs">>>;
1639
- claim(input: ClaimJobInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<JobRecord>>;
1640
- updateStatus(input: UpdateJobStatusInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<JobRecord>>;
1641
- retry(input: RetryJobInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<JobRecord>>;
1642
- recordRunStart(input: RecordJobRunStartInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<JobRunRecord>>;
1643
- recordRunFinish(input: RecordJobRunFinishInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<JobRunRecord>>;
1644
- };
1645
- telemetry: {
1646
- logSystemEvent(input: LogSystemEventInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<{
1647
- eventId?: string;
1648
- recorded: boolean;
1649
- }>>;
1650
- logToolCallsBatch(input: LogToolCallsBatchInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<{
1651
- recorded: number;
1652
- }>>;
1653
- recordEpistemicAudit(input: RecordEpistemicAuditInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<{
1654
- auditId?: string;
1655
- recorded: boolean;
1656
- }>>;
1657
- recordPolicyDecision(input: RecordTelemetryPolicyDecisionInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<{
1658
- decisionId?: string;
1659
- recorded: boolean;
1660
- }>>;
1661
- startRun(input: StartTelemetryRunInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<TelemetryRunRecord>>;
1662
- finishRun(input: FinishTelemetryRunInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<TelemetryRunRecord>>;
1663
- listRuns(input: TelemetryScope): Promise<PlatformGatewaySuccess<ListResult<TelemetryRunRecord, "runs">>>;
1664
- };
1665
- tools: {
1666
- listCatalog: (input: ToolRegistryQuery) => Promise<PlatformGatewaySuccess<ListResult<ToolCatalogEntry, "tools">>>;
1667
- listExecutable: (input: ToolRegistryQuery) => Promise<PlatformGatewaySuccess<ListResult<ToolCatalogEntry, "tools">>>;
1668
- listEffectiveTools: (input: ToolRegistryQuery) => Promise<PlatformGatewaySuccess<ListResult<ToolCatalogEntry, "tools">>>;
1669
- upsertCoreTools: (input: UpsertCoreToolsInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<ListResult<ToolCatalogEntry, "tools">>>;
1670
- setPackToolsStatus: (input: SetPackToolsStatusInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<ListResult<ToolCatalogEntry, "tools">>>;
1671
- createAcl: (input: CreateToolAclInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<ToolAclRecord>>;
1672
- deleteAcl: (input: DeleteToolAclInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<{
1673
- aclId: string;
1674
- deleted: boolean;
1675
- }>>;
1676
- registerCustomTool: (input: RegisterCustomToolInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<ToolCatalogEntry>>;
1677
- register(registration: CustomToolRegistration): RegisteredCustomTool;
1678
- unregister(fullName: string): boolean;
1679
- list(): RegisteredCustomTool[];
1680
- clear(): void;
1681
- invoke(name: string, input?: CustomToolInput): Promise<unknown>;
1682
- namespace(namespace: string): CustomToolNamespace;
1683
- };
1684
- packs: {
1685
- /**
1686
- * Ensure the configured packKey is installed.
1687
- * No-op if no packKey was provided or if the pack is already installed.
1688
- * Called automatically on first API use when packKey is set.
1689
- */
1690
- ensurePack: () => Promise<void>;
1691
- /**
1692
- * Check if the configured pack has been installed in this session.
1693
- */
1694
- readonly isInstalled: boolean;
1695
- listCatalog(): Promise<PlatformGatewaySuccess<ListResult<any, "catalog">>>;
1696
- catalog(): Promise<PlatformGatewaySuccess<ListResult<any, "catalog">>>;
1697
- listStates(scope?: Parameters<(query?: GatewayScope) => Promise<PlatformGatewaySuccess<ListResult<any, "states">>>>[0]): Promise<PlatformGatewaySuccess<ListResult<any, "states">>>;
1698
- states(scope?: Parameters<(query?: GatewayScope) => Promise<PlatformGatewaySuccess<ListResult<any, "states">>>>[0]): Promise<PlatformGatewaySuccess<ListResult<any, "states">>>;
1699
- install(input: Parameters<(input: PackInstallInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<unknown>>>[0]): Promise<PlatformGatewaySuccess<unknown>>;
1700
- enable(input: Parameters<(input: PackEnableInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<unknown>>>[0]): Promise<PlatformGatewaySuccess<unknown>>;
1701
- disable(input: Parameters<(input: PackDisableInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<unknown>>>[0]): Promise<PlatformGatewaySuccess<unknown>>;
1702
- };
1703
- nodes: {
1704
- list(query: Parameters<(query: ListNodesInput) => Promise<PlatformGatewaySuccess<ListResult<PlatformGraphNode, "nodes">>>>[0]): Promise<PlatformGatewaySuccess<ListResult<PlatformGraphNode, "nodes">>>;
1705
- get(input: string | Parameters<(query: GetNodeInput) => Promise<PlatformGatewaySuccess<PlatformGraphNode>>>[0]): Promise<PlatformGatewaySuccess<PlatformGraphNode>>;
1706
- create(input: Parameters<(input: CreateNodeInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<PlatformGraphNode>>>[0], idempotencyKey?: string): Promise<PlatformGatewaySuccess<PlatformGraphNode>>;
1707
- update(input: Parameters<(input: UpdateNodeInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<PlatformGraphNode>>>[0], idempotencyKey?: string): Promise<PlatformGatewaySuccess<PlatformGraphNode>>;
1708
- batchCreate(input: Parameters<(input: BatchCreateNodesInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<Record<string, unknown>>>>[0], idempotencyKey?: string): Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
1709
- supersede(input: Parameters<(input: SupersedeNodeInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<Record<string, unknown>>>>[0], idempotencyKey?: string): Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
1710
- verify(input: Parameters<(input: VerifyNodeInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<Record<string, unknown>>>>[0], idempotencyKey?: string): Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
1711
- hardDelete(input: Parameters<(input: HardDeleteNodeInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<Record<string, unknown>>>>[0], idempotencyKey?: string): Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
1712
- };
1713
- identity: {
1714
- evaluatePolicy: (input: PolicyEvaluationInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<PolicyDecisionRecord>>;
1715
- recordPolicyDecision: (input: RecordPolicyDecisionInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<PolicyDecisionRecord>>;
1716
- putSecretReference: (input: PutTenantSecretReferenceInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<TenantSecretReference>>;
1717
- createPrincipal: (input: GatewayScope & {
1718
- principalId: string;
1719
- principalType: "user" | "group" | "service" | "external_viewer";
1720
- clerkId?: string;
1721
- email?: string;
1722
- displayName?: string;
1723
- status?: "active" | "invited" | "suspended" | "disabled" | "revoked";
1724
- metadata?: JsonObject;
1725
- }, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<unknown>>;
1726
- updatePrincipal: (input: GatewayScope & {
1727
- principalId: string;
1728
- principalType: "user" | "group" | "service" | "external_viewer";
1729
- clerkId?: string;
1730
- email?: string;
1731
- displayName?: string;
1732
- status?: "active" | "invited" | "suspended" | "disabled" | "revoked";
1733
- metadata?: JsonObject;
1734
- }, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<unknown>>;
1735
- raw: {
1736
- whoami(): Promise<PlatformGatewaySuccess<{
1737
- principalId: string;
1738
- principalType: "human" | "service" | "agent" | "user" | "group" | "external_viewer";
1739
- tenantId: string | null;
1740
- workspaceId: string | null;
1741
- scopes: string[];
1742
- roles: string[];
1743
- isPlatformAdmin: boolean;
1744
- isTenantAdmin: boolean;
1745
- isWorkspaceAdmin: boolean;
1746
- authMode: string | undefined;
1747
- sessionId: string | undefined;
1748
- delegatedBy: string | undefined;
1749
- expiresAt: number | undefined;
1750
- }>>;
1751
- listPrincipals(query?: GatewayScope & {
1752
- status?: string;
1753
- principalType?: string;
1754
- query?: string;
1755
- limit?: number;
1756
- }): Promise<PlatformGatewaySuccess<ListResult<any, "principals">>>;
1757
- createPrincipal(input: GatewayScope & {
1758
- principalId: string;
1759
- principalType: "user" | "group" | "service" | "external_viewer";
1760
- clerkId?: string;
1761
- email?: string;
1762
- displayName?: string;
1763
- status?: "active" | "invited" | "suspended" | "disabled" | "revoked";
1764
- metadata?: JsonObject;
1765
- }, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
1766
- updatePrincipal(input: GatewayScope & {
1767
- principalId: string;
1768
- principalType: "user" | "group" | "service" | "external_viewer";
1769
- clerkId?: string;
1770
- email?: string;
1771
- displayName?: string;
1772
- status?: "active" | "invited" | "suspended" | "disabled" | "revoked";
1773
- metadata?: JsonObject;
1774
- }, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
1775
- upsertPrincipal(input: GatewayScope & {
1776
- principalId: string;
1777
- principalType: "user" | "group" | "service" | "external_viewer";
1778
- clerkId?: string;
1779
- email?: string;
1780
- displayName?: string;
1781
- status?: "active" | "invited" | "suspended" | "disabled" | "revoked";
1782
- metadata?: JsonObject;
1783
- }, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
1784
- listKeys(query?: GatewayScope & {
1785
- principalId?: string;
1786
- status?: string;
1787
- limit?: number;
1788
- }): Promise<PlatformGatewaySuccess<ListResult<any, "keys">>>;
1789
- createKey(input: GatewayScope & {
1790
- principalId: string;
1791
- keyId?: string;
1792
- token?: string;
1793
- scopes?: string[];
1794
- environment?: "sandbox" | "production";
1795
- expiresInDays?: number;
1796
- rateLimitTier?: "free" | "developer" | "partner";
1797
- metadata?: JsonObject;
1798
- }, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
1799
- rotateKey(keyId: string, input?: {
1800
- replacementKeyId?: string;
1801
- replacementToken?: string;
1802
- replacementExpiresInDays?: number;
1803
- gracePeriodHours?: number;
1804
- }, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
1805
- deleteKey(keyId: string, input?: {
1806
- reason?: string;
1807
- }, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
1808
- revokeKey(keyId: string, input?: {
1809
- reason?: string;
1810
- }, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
1811
- searchClerkUsers(q: string): Promise<PlatformGatewaySuccess<ClerkUserSearchResult[]>>;
1812
- getTenantConfig(input: TenantIdentityScope): Promise<PlatformGatewaySuccess<TenantIdentityConfigRecord>>;
1813
- updateTenantConfig(input: UpdateTenantConfigInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<TenantIdentityConfigRecord>>;
1814
- listIntegrations(input: TenantIdentityScope): Promise<PlatformGatewaySuccess<ListResult<TenantIntegrationRecord, "integrations">>>;
1815
- upsertIntegration(input: UpsertTenantIntegrationInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<TenantIntegrationRecord>>;
1816
- listSecrets(input: TenantIdentityScope): Promise<PlatformGatewaySuccess<ListResult<TenantSecretReference, "secrets">>>;
1817
- putSecretReference(input: PutTenantSecretReferenceInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<TenantSecretReference>>;
1818
- evaluatePolicy(input: PolicyEvaluationInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<PolicyDecisionRecord>>;
1819
- recordPolicyDecision(input: RecordPolicyDecisionInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<PolicyDecisionRecord>>;
1820
- };
1821
- whoami(): Promise<PlatformGatewaySuccess<{
1822
- principalId: string;
1823
- principalType: "human" | "service" | "agent" | "user" | "group" | "external_viewer";
1824
- tenantId: string | null;
1825
- workspaceId: string | null;
1826
- scopes: string[];
1827
- roles: string[];
1828
- isPlatformAdmin: boolean;
1829
- isTenantAdmin: boolean;
1830
- isWorkspaceAdmin: boolean;
1831
- authMode: string | undefined;
1832
- sessionId: string | undefined;
1833
- delegatedBy: string | undefined;
1834
- expiresAt: number | undefined;
1835
- }> & {
1836
- principalId: string;
1837
- principalType: "human" | "service" | "agent" | "user" | "group" | "external_viewer";
1838
- tenantId: string | null;
1839
- workspaceId: string | null;
1840
- scopes: string[];
1841
- roles: string[];
1842
- isPlatformAdmin: boolean;
1843
- isTenantAdmin: boolean;
1844
- isWorkspaceAdmin: boolean;
1845
- authMode: string | undefined;
1846
- sessionId: string | undefined;
1847
- delegatedBy: string | undefined;
1848
- expiresAt: number | undefined;
1849
- }>;
1850
- };
1851
- mcp: {
1852
- bootstrapSession(input?: Parameters<(input?: McpBootstrapSessionInput) => Promise<McpBootstrapSessionResponse>>[0]): Promise<McpBootstrapSessionResponse>;
1853
- checkWritePolicy(input: Parameters<(input: McpCheckWritePolicyInput) => Promise<McpCheckWritePolicyResponse>>[0]): Promise<McpCheckWritePolicyResponse>;
1854
- beginBuildSession(input: Parameters<(input: McpBeginBuildSessionInput) => Promise<McpBeginBuildSessionResponse>>[0]): Promise<McpBeginBuildSessionResponse>;
1855
- evaluateEngineeringContract(input: Parameters<(input: McpEvaluateEngineeringContractInput) => Promise<McpContractEvaluationResponse>>[0]): Promise<McpContractEvaluationResponse>;
1856
- evaluateResearchContract(input: Parameters<(input: McpEvaluateResearchContractInput) => Promise<McpContractEvaluationResponse>>[0]): Promise<McpContractEvaluationResponse>;
1857
- };
1858
- auth: {
1859
- device: {
1860
- createCode(input?: DeviceCodeInput): Promise<DeviceCodeResponse>;
1861
- pollToken(deviceCode: string): Promise<DeviceTokenResponse>;
1862
- };
1863
- };
1864
- custom: CustomToolNamespace;
1865
- extensions: Record<string, CustomToolNamespace>;
1866
- raw: {
1867
- beliefs: {
1868
- createBelief(input: CreateBeliefInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<PlatformBeliefRecord>>;
1869
- refineBelief(beliefId: string, input: RefineBeliefInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<PlatformBeliefRecord>>;
1870
- modulateConfidence: (beliefId: string, input: ModulateConfidenceOpinionInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<ModulateConfidenceResponse>>;
1871
- getOpinionHistory(beliefId: string): Promise<OpinionHistoryEntry[]>;
1872
- getConfidenceHistory(beliefId: string): Promise<OpinionHistoryEntry[]>;
1873
- forkBelief(beliefId: string, input: ForkBeliefInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<ForkBeliefResponse>>;
1874
- updateBeliefStatus(input: UpdateBeliefStatusInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
1875
- updateBeliefRationale(input: UpdateBeliefRationaleInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
1876
- linkBeliefs(input: LinkBeliefsInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
1877
- unlinkBeliefEvidence(input: UnlinkBeliefEvidenceInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
1878
- updateBeliefCriticality(input: UpdateBeliefCriticalityInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
1879
- batchUpdateBeliefCriticality(input: BatchUpdateBeliefCriticalityInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
1880
- reassignBeliefsTopic(input: ReassignBeliefsTopicInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
1881
- };
1882
- sources: {
1883
- upsert(spec: UpsertSourceSpec, idempotencyKey?: string): Promise<PlatformGatewaySuccess<PlatformSourceRecord>>;
1884
- get(sourceId: string): Promise<PlatformGatewaySuccess<PlatformSourceRecord>>;
1885
- };
1886
- evidence: {
1887
- classifyEvidence(beliefId: string, evidenceId: string, classificationConfig?: EvidenceClassificationRequestConfig, idempotencyKey?: string): Promise<PlatformGatewaySuccess<ClassifyEvidenceResult>>;
1888
- classifyEvidenceBatch(beliefId: string, evidence: ClassifyEvidenceBatchItem[], classificationConfig?: EvidenceClassificationRequestConfig, idempotencyKey?: string): Promise<PlatformGatewaySuccess<ClassifyEvidenceBatchResult>>;
1889
- };
1890
- embeddings: {
1891
- getByNodeIds(input: GetEmbeddingsByNodeIdsInput): Promise<PlatformGatewaySuccess<ListResult<EmbeddingRecord, "embeddings">>>;
1892
- listMissingForTopic(input: ListMissingEmbeddingsInput): Promise<PlatformGatewaySuccess<ListResult<MissingEmbeddingCandidate, "nodes">>>;
1893
- vectorSearchByTopic(input: VectorSearchByTopicInput): Promise<PlatformGatewaySuccess<ListResult<VectorSearchMatch, "results">>>;
1894
- markEmbeddingBackfillQueued(input: MarkEmbeddingBackfillQueuedInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<{
1895
- queued: number;
1896
- topicId: string;
1897
- workspaceId: string;
1898
- nodeIds: string[];
1899
- }>>;
1900
- };
1901
- eventing: {
1902
- recordEvent(input: RecordEventInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<EventingRecord>>;
1903
- listEvents(input: EventingScope): Promise<PlatformGatewaySuccess<ListResult<EventingRecord, "events">>>;
1904
- listWebhooks(input: EventingScope): Promise<PlatformGatewaySuccess<ListResult<EventingWebhookRecord, "webhooks">>>;
1905
- enqueueDelivery(input: EnqueueDeliveryInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<EventingDeliveryRecord>>;
1906
- recordDeliveryAttempt(input: RecordDeliveryAttemptInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<EventingDeliveryRecord>>;
1907
- updateDeliveryStatus(input: UpdateDeliveryStatusInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<EventingDeliveryRecord>>;
1908
- };
1909
- graph: {
1910
- listNodes(query: ListNodesInput): Promise<PlatformGatewaySuccess<ListResult<PlatformGraphNode, "nodes">>>;
1911
- queryNodes(query: QueryNodesInput): Promise<PlatformGatewaySuccess<ListResult<PlatformGraphNode, "nodes">>>;
1912
- getNode(query: GetNodeInput): Promise<PlatformGatewaySuccess<PlatformGraphNode>>;
1913
- createNode(input: CreateNodeInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<PlatformGraphNode>>;
1914
- updateNode(input: UpdateNodeInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<PlatformGraphNode>>;
1915
- batchCreateNodes(input: BatchCreateNodesInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
1916
- supersedeNode(input: SupersedeNodeInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
1917
- verifyNode(input: VerifyNodeInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
1918
- hardDeleteNode(input: HardDeleteNodeInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
1919
- listEdges(query: ListEdgesInput): Promise<PlatformGatewaySuccess<ListResult<PlatformGraphEdge, "edges">>>;
1920
- queryEdges(query: QueryEdgesInput): Promise<PlatformGatewaySuccess<ListResult<PlatformGraphEdge, "edges">>>;
1921
- createEdge(input: CreateEdgeInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<PlatformGraphEdge>>;
1922
- deleteEdge(query: DeleteEdgeInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<DeleteEdgeResponse>>;
1923
- neighborhood(query: NeighborhoodInput): Promise<PlatformGatewaySuccess<GraphNeighborhoodResponse>>;
1924
- traverse(query: TraverseInput): Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
1925
- analyze(query?: AnalyzeInput): Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
1926
- bias(query?: BiasInput): Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
1927
- gaps(query: GapsInput): Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
1928
- search(query: SearchInput): Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
1929
- getNeighborhood(query: NeighborhoodInput): Promise<PlatformGatewaySuccess<GraphNeighborhoodResponse>>;
1930
- getPath(query: PathInput): Promise<PlatformGatewaySuccess<GraphPathResponse>>;
1931
- getAnalytics(query?: AnalyticsInput): Promise<PlatformGatewaySuccess<GraphAnalyticsResponse>>;
1932
- };
1933
- graphAnalysis: {
1934
- saveAnalysis(input: SaveGraphAnalysisInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<GraphAnalysisRecord>>;
1935
- listAnalyses(input: ListGraphAnalysesInput): Promise<PlatformGatewaySuccess<ListResult<any, "analyses">>>;
1936
- getLatestAnalysis(input: GetLatestGraphAnalysisInput): Promise<PlatformGatewaySuccess<GraphAnalysisRecord>>;
1937
- saveSuggestions(input: SaveGraphSuggestionsInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<GraphAnalysisSuggestionsResponse>>;
1938
- updateSuggestionStatus(input: UpdateGraphSuggestionStatusInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<GraphAnalysisSuggestion>>;
1939
- listSuggestions(input: ListGraphSuggestionsInput): Promise<PlatformGatewaySuccess<ListResult<any, "suggestions">>>;
1940
- listGraphChanges(input: ListGraphChangesInput): Promise<PlatformGatewaySuccess<ListResult<any, "changes">>>;
1941
- computeOrRequestAnalysis(input: ComputeOrRequestGraphAnalysisInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<GraphAnalysisRecord>>;
1942
- };
1943
- graphRecommendations: {
1944
- listForTopic(input: GraphRecommendationListInput): Promise<PlatformGatewaySuccess<ListResult<any, "recommendations">>>;
1945
- getRecommendation(recommendationId: string): Promise<PlatformGatewaySuccess<GraphRecommendationRecord>>;
1946
- markRecommendationStatus(input: MarkGraphRecommendationStatusInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<GraphRecommendationRecord>>;
1947
- };
1948
- graphStateClassifier: {
1949
- classifyNode(input: ClassifyNodeInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<GraphStateClassification>>;
1950
- classifyTopic(input: ClassifyTopicInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<ListResult<GraphStateClassification, "classifications">>>;
1951
- listClassifications(input: ListGraphStateClassificationsInput): Promise<PlatformGatewaySuccess<ListResult<GraphStateClassification, "classifications">>>;
1952
- recordClassification(input: RecordGraphStateClassificationInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<GraphStateClassification>>;
1953
- };
1954
- decisions: {
1955
- listJudgments(query: ListJudgmentsInput): Promise<PlatformGatewaySuccess<ListJudgmentsResponse>>;
1956
- getJudgment(judgmentId: string): Promise<PlatformGatewaySuccess<GetJudgmentResponse>>;
1957
- getJudgmentReadiness(query: {
1958
- topicId?: string;
1959
- } & TopicIdentifierInput): Promise<PlatformGatewaySuccess<JudgmentReadinessResponse>>;
1960
- getJudgmentCalibration(query: GetJudgmentCalibrationInput): Promise<PlatformGatewaySuccess<JudgmentCalibrationResponse>>;
1961
- listPendingOutcomeReviews(query: ListPendingJudgmentOutcomeReviewInput): Promise<PlatformGatewaySuccess<ListResult<PendingJudgmentOutcomeRecord, "reviews">>>;
1962
- listPendingJudgmentOutcomeReview(query: ListPendingJudgmentOutcomeReviewInput): Promise<PlatformGatewaySuccess<ListResult<PendingJudgmentOutcomeRecord, "reviews">>>;
1963
- getJudgmentTransitionAuditIntegrity(query: GetJudgmentTransitionAuditIntegrityInput): Promise<PlatformGatewaySuccess<JudgmentTransitionAuditIntegrityResponse>>;
1964
- createJudgment(input: RecordJudgmentInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<RecordJudgmentResponse>>;
1965
- recordJudgment(input: RecordJudgmentInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<RecordJudgmentResponse>>;
1966
- updateJudgmentOutcome(judgmentId: string, input: RecordJudgmentOutcomeInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<RecordJudgmentOutcomeResponse>>;
1967
- recordJudgmentOutcome(judgmentId: string, input: RecordJudgmentOutcomeInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<RecordJudgmentOutcomeResponse>>;
1968
- };
1969
- workflow: {
1970
- listBranches(query: {
1971
- topicId?: string;
1972
- status?: WorkflowBranchStatus;
1973
- limit?: number;
1974
- } & TopicIdentifierInput): Promise<PlatformGatewaySuccess<ListResult<WorkflowBranchRecord, "branches">>>;
1975
- createBranch(input: {
1976
- name: string;
1977
- topicId?: string;
1978
- description?: string;
1979
- metadata?: JsonObject;
1980
- } & TopicIdentifierInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<WorkflowBranchRecord>>;
1981
- listLenses(query: {
1982
- workspaceId?: string;
1983
- topicId?: string;
1984
- status?: WorkflowLensStatus;
1985
- perspectiveType?: WorkflowLensPerspectiveType;
1986
- } & TopicIdentifierInput): Promise<PlatformGatewaySuccess<ListResult<WorkflowLensRecord, "lenses">>>;
1987
- createLens(input: {
1988
- name: string;
1989
- workspaceId?: string;
1990
- topicId?: string;
1991
- description?: string;
1992
- perspectiveType: WorkflowLensPerspectiveType;
1993
- promptTemplates?: LensPromptTemplateReference[];
1994
- workflowTemplates?: LensWorkflowTemplate[];
1995
- taskTemplates?: LensTaskTemplate[];
1996
- filterCriteria?: JsonObject;
1997
- } & TopicIdentifierInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<WorkflowLensRecord>>;
1998
- applyLensToTopic(input: {
1999
- lensId: string;
2000
- topicId?: string;
2001
- metadata?: JsonObject;
2002
- } & TopicIdentifierInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<WorkflowLensBindingRecord>>;
2003
- removeLensFromTopic(input: {
2004
- lensId: string;
2005
- topicId?: string;
2006
- } & TopicIdentifierInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<WorkflowLensBindingRecord>>;
2007
- listWorktrees(query: {
2008
- topicId?: string;
2009
- branchId?: string;
2010
- status?: WorkflowWorktreeStatus;
2011
- groupBy?: "campaign" | "lane" | "flat";
2012
- lane?: string;
2013
- campaign?: number;
2014
- limit?: number;
2015
- } & TopicIdentifierInput): Promise<PlatformGatewaySuccess<ListResult<WorkflowWorktreeRecord, "worktrees">>>;
2016
- listAllWorktrees(query?: {
2017
- status?: WorkflowWorktreeStatus;
2018
- groupBy?: "campaign" | "lane" | "flat";
2019
- lane?: string;
2020
- campaign?: number;
2021
- limit?: number;
2022
- }): Promise<PlatformGatewaySuccess<ListWorktreesResponse>>;
2023
- listCampaigns(query?: {
2024
- topicId?: string;
2025
- status?: WorkflowWorktreeStatus;
2026
- limit?: number;
2027
- } & TopicIdentifierInput): Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
2028
- createWorktree(input: AddWorktreeInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<WorkflowWorktreeRecord>>;
2029
- addWorktree(input: AddWorktreeInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<WorkflowWorktreeRecord>>;
2030
- merge(worktreeId: string, input: MergeInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<MergeWorktreeResponse>>;
2031
- activateWorktree(worktreeId: string, idempotencyKey?: string): Promise<PlatformGatewaySuccess<WorkflowWorktreeRecord>>;
2032
- updateWorktreeTargets(input: UpdateWorktreeTargetsInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<WorkflowWorktreeRecord>>;
2033
- completeWorktree(input: CompleteWorktreeInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
2034
- advanceWorktreePhase(input: AdvanceWorktreePhaseInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
2035
- setWorktreePhase(input: SetWorktreePhaseInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
2036
- patchWorktreeState(input: PatchWorktreeStateInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
2037
- bulkCreateWorktrees(input: BulkCreateWorktreesInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
2038
- openPullRequest(worktreeId: string, input: {
2039
- summary: string;
2040
- reviewers?: string[];
2041
- status?: "pending_review" | "changes_requested" | "approved" | "blocked";
2042
- }, idempotencyKey?: string): Promise<PlatformGatewaySuccess<OpenPullRequestResponse>>;
2043
- push(worktreeId: string, input: {
2044
- targetContext: string;
2045
- beliefIds?: string[];
2046
- metadata?: JsonObject;
2047
- }, idempotencyKey?: string): Promise<PlatformGatewaySuccess<PushWorktreeResponse>>;
2048
- listTopics(query?: ListTopicsInput): Promise<PlatformGatewaySuccess<ListTopicsResponse>>;
2049
- switchTopicContext(input: SwitchTopicContextInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<SwitchTopicContextResponse>>;
2050
- createTask(input: CreateTaskInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<CreateTaskResponse>>;
2051
- completeTask(taskId: string, input: CompleteTaskInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<CompleteTaskResponse>>;
2052
- updateTask(taskId: string, input: UpdateTaskInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<UpdateTaskResponse>>;
2053
- createPillar(input: {
2054
- name: string;
2055
- topicId?: string;
2056
- description?: string;
2057
- metadata?: JsonObject;
2058
- } & TopicIdentifierInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<WorkflowBranchRecord>>;
2059
- createSprint(input: {
2060
- title: string;
2061
- topicId?: string;
2062
- branchId?: string;
2063
- hypothesis?: string;
2064
- beliefIds?: string[];
2065
- } & TopicIdentifierInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<WorkflowWorktreeRecord>>;
2066
- completeSprint(worktreeId: string, input: MergeInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<MergeWorktreeResponse>>;
2067
- requestReview(worktreeId: string, input: {
2068
- summary: string;
2069
- reviewers?: string[];
2070
- status?: "pending_review" | "changes_requested" | "approved" | "blocked";
2071
- }, idempotencyKey?: string): Promise<PlatformGatewaySuccess<OpenPullRequestResponse>>;
2072
- publishFindings(worktreeId: string, input: {
2073
- targetContext: string;
2074
- beliefIds?: string[];
2075
- metadata?: JsonObject;
2076
- }, idempotencyKey?: string): Promise<PlatformGatewaySuccess<PushWorktreeResponse>>;
2077
- };
2078
- audit: {
2079
- listEvents(query?: GatewayScope & {
2080
- action?: string;
2081
- decision?: string;
2082
- traceId?: string;
2083
- principalId?: string;
2084
- topicId?: string;
2085
- limit?: number;
2086
- } & TopicIdentifierInput): Promise<PlatformGatewaySuccess<ListResult<any, "events">>>;
2087
- };
2088
- authDevice: {
2089
- createDeviceCode(input?: DeviceCodeInput): Promise<DeviceCodeResponse>;
2090
- pollDeviceToken(deviceCode: string): Promise<DeviceTokenResponse>;
2091
- };
2092
- admin: {
2093
- listTenants(query?: {
2094
- status?: "provisioning" | "active" | "disabled" | "suspended" | "archived";
2095
- limit?: number;
2096
- }): Promise<PlatformGatewaySuccess<ListResult<any, "tenants">>>;
2097
- createTenant(input: {
2098
- key: string;
2099
- slug?: string;
2100
- name: string;
2101
- tier?: "free" | "developer" | "team" | "enterprise";
2102
- status?: "provisioning" | "active" | "disabled" | "suspended" | "archived";
2103
- ownerClerkId?: string;
2104
- ownerEmail?: string;
2105
- lucernDeploymentUrl?: string;
2106
- appDeploymentUrl?: string;
2107
- metadata?: JsonObject;
2108
- }, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
2109
- getControlObjectOwnership(): Promise<PlatformGatewaySuccess<ControlObjectOwnershipContract>>;
2110
- getControlObjectOwnershipContract(): Promise<PlatformGatewaySuccess<ControlObjectOwnershipContract>>;
2111
- listWorkspaces(query?: GatewayScope & {
2112
- status?: "active" | "archived";
2113
- limit?: number;
2114
- }): Promise<PlatformGatewaySuccess<ListResult<any, "workspaces">>>;
2115
- createWorkspace(input: GatewayScope & {
2116
- workspaceId?: string;
2117
- key?: string;
2118
- slug?: string;
2119
- name?: string;
2120
- status?: "active" | "archived";
2121
- defaultProjectVisibility?: "private" | "team" | "firm" | "external" | "public";
2122
- restore?: boolean;
2123
- metadata?: JsonObject;
2124
- }, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
2125
- listMemberships(query?: GatewayScope & {
2126
- principalId?: string;
2127
- status?: "active" | "invited" | "revoked" | "expired";
2128
- role?: "platform_admin" | "tenant_admin" | "workspace_admin" | "editor" | "viewer" | "auditor" | "service_agent";
2129
- limit?: number;
2130
- }): Promise<PlatformGatewaySuccess<ListResult<any, "memberships">>>;
2131
- createMembership(input: GatewayScope & {
2132
- membershipId?: string;
2133
- principalId: string;
2134
- role: "platform_admin" | "tenant_admin" | "workspace_admin" | "editor" | "viewer" | "auditor" | "service_agent";
2135
- status?: "active" | "invited" | "revoked" | "expired";
2136
- source?: "bootstrap" | "manual" | "sync" | "sso" | "api" | "scim" | "invitation";
2137
- }, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
2138
- updateMembership(input: GatewayScope & {
2139
- membershipId?: string;
2140
- principalId: string;
2141
- role: "platform_admin" | "tenant_admin" | "workspace_admin" | "editor" | "viewer" | "auditor" | "service_agent";
2142
- status?: "active" | "invited" | "revoked" | "expired";
2143
- source?: "bootstrap" | "manual" | "sync" | "sso" | "api" | "scim" | "invitation";
2144
- }, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
2145
- upsertMembership(input: GatewayScope & {
2146
- membershipId?: string;
2147
- principalId: string;
2148
- role: "platform_admin" | "tenant_admin" | "workspace_admin" | "editor" | "viewer" | "auditor" | "service_agent";
2149
- status?: "active" | "invited" | "revoked" | "expired";
2150
- source?: "bootstrap" | "manual" | "sync" | "sso" | "api" | "scim" | "invitation";
2151
- }, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
2152
- listTenantApiKeys(scope: GatewayScope & {
2153
- status?: "active" | "revoked" | "expired";
2154
- }): Promise<{
2155
- data: {
2156
- keys: TenantApiKeyRecord[];
2157
- };
2158
- success: true;
2159
- correlationId: string;
2160
- policyTraceId: string | null;
2161
- idempotentReplay: boolean;
2162
- }>;
2163
- createTenantApiKey(input: GatewayScope & {
2164
- label?: string;
2165
- scopes: string[];
2166
- expiresAt?: number;
2167
- }, idempotencyKey?: string): Promise<{
2168
- data: {
2169
- key: TenantApiKeyRecord | null;
2170
- plaintextKey: string | undefined;
2171
- };
2172
- success: true;
2173
- correlationId: string;
2174
- policyTraceId: string | null;
2175
- idempotentReplay: boolean;
2176
- }>;
2177
- revokeTenantApiKey(keyId: string, input?: GatewayScope & {
2178
- reason?: string;
2179
- }, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
2180
- listTenantVaultSecrets(scope: GatewayScope): Promise<{
2181
- data: {
2182
- secrets: TenantVaultSecretRecord[];
2183
- };
2184
- success: true;
2185
- correlationId: string;
2186
- policyTraceId: string | null;
2187
- idempotentReplay: boolean;
2188
- }>;
2189
- createTenantVaultSecret(input: GatewayScope & {
2190
- name: string;
2191
- description?: string;
2192
- value: string;
2193
- }, idempotencyKey?: string): Promise<{
2194
- data: {
2195
- secret: TenantVaultSecretRecord | null;
2196
- };
2197
- success: true;
2198
- correlationId: string;
2199
- policyTraceId: string | null;
2200
- idempotentReplay: boolean;
2201
- }>;
2202
- updateTenantVaultSecret(secretId: string, input: GatewayScope & {
2203
- name: string;
2204
- description?: string;
2205
- value?: string;
2206
- }, idempotencyKey?: string): Promise<{
2207
- data: {
2208
- secret: TenantVaultSecretRecord | null;
2209
- };
2210
- success: true;
2211
- correlationId: string;
2212
- policyTraceId: string | null;
2213
- idempotentReplay: boolean;
2214
- }>;
2215
- deleteTenantVaultSecret(secretId: string, scope: GatewayScope, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
2216
- listTenantSecrets(scope: GatewayScope & {
2217
- providerId?: string;
2218
- status?: "active" | "revoked";
2219
- }): Promise<PlatformGatewaySuccess<unknown>>;
2220
- upsertTenantSecret(input: GatewayScope & {
2221
- providerId: string;
2222
- apiKey: string;
2223
- label?: string;
2224
- modelSlotIds?: string[];
2225
- passThroughOnly?: boolean;
2226
- metadata?: JsonObject;
2227
- }, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
2228
- revokeTenantSecret(secretRef: string, input: GatewayScope & {
2229
- reason?: string;
2230
- }, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
2231
- getTenantConfig(scope: GatewayScope & {
2232
- tenantId: string;
2233
- }): Promise<PlatformGatewaySuccess<TenantConfigRecord>>;
2234
- getTenantModelRouting(scope: GatewayScope & {
2235
- tenantId: string;
2236
- }): Promise<PlatformGatewaySuccess<TenantModelRoutingSnapshot>>;
2237
- upsertTenantConfig(input: GatewayScope & Omit<TenantConfigRecord, "updatedAt" | "updatedBy">, idempotencyKey?: string): Promise<PlatformGatewaySuccess<TenantConfigRecord>>;
2238
- listGroups(scope?: GatewayScope & {
2239
- limit?: number;
2240
- }): Promise<PlatformGatewaySuccess<unknown>>;
2241
- createGroup(input: GatewayScope & {
2242
- name: string;
2243
- groupKey?: string;
2244
- groupType?: string;
2245
- description?: string;
2246
- }, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
2247
- updateGroup(groupId: string, input: GatewayScope & {
2248
- name?: string;
2249
- description?: string;
2250
- workspaceId?: string;
2251
- clearWorkspaceId?: boolean;
2252
- }, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
2253
- deleteGroup(groupId: string, input?: GatewayScope, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
2254
- listGroupMembers(query: GatewayScope & {
2255
- groupId: string;
2256
- }): Promise<PlatformGatewaySuccess<unknown>>;
2257
- addGroupMember(input: GatewayScope & {
2258
- groupId: string;
2259
- principalId: string;
2260
- }, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
2261
- removeGroupMember(input: GatewayScope & {
2262
- groupId: string;
2263
- principalId: string;
2264
- }, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
2265
- listPackGroupAssignments(query?: GatewayScope & {
2266
- groupId?: string;
2267
- status?: string;
2268
- }): Promise<PlatformGatewaySuccess<unknown>>;
2269
- assignPackToGroup(input: GatewayScope & {
2270
- groupId: string;
2271
- packKey: string;
2272
- packVersion?: string;
2273
- }, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
2274
- removePackFromGroup(input: GatewayScope & {
2275
- groupId: string;
2276
- packKey: string;
2277
- }, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
2278
- };
2279
- identity: {
2280
- whoami(): Promise<PlatformGatewaySuccess<{
2281
- principalId: string;
2282
- principalType: "human" | "service" | "agent" | "user" | "group" | "external_viewer";
2283
- tenantId: string | null;
2284
- workspaceId: string | null;
2285
- scopes: string[];
2286
- roles: string[];
2287
- isPlatformAdmin: boolean;
2288
- isTenantAdmin: boolean;
2289
- isWorkspaceAdmin: boolean;
2290
- authMode: string | undefined;
2291
- sessionId: string | undefined;
2292
- delegatedBy: string | undefined;
2293
- expiresAt: number | undefined;
2294
- }>>;
2295
- listPrincipals(query?: GatewayScope & {
2296
- status?: string;
2297
- principalType?: string;
2298
- query?: string;
2299
- limit?: number;
2300
- }): Promise<PlatformGatewaySuccess<ListResult<any, "principals">>>;
2301
- createPrincipal(input: GatewayScope & {
2302
- principalId: string;
2303
- principalType: "user" | "group" | "service" | "external_viewer";
2304
- clerkId?: string;
2305
- email?: string;
2306
- displayName?: string;
2307
- status?: "active" | "invited" | "suspended" | "disabled" | "revoked";
2308
- metadata?: JsonObject;
2309
- }, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
2310
- updatePrincipal(input: GatewayScope & {
2311
- principalId: string;
2312
- principalType: "user" | "group" | "service" | "external_viewer";
2313
- clerkId?: string;
2314
- email?: string;
2315
- displayName?: string;
2316
- status?: "active" | "invited" | "suspended" | "disabled" | "revoked";
2317
- metadata?: JsonObject;
2318
- }, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
2319
- upsertPrincipal(input: GatewayScope & {
2320
- principalId: string;
2321
- principalType: "user" | "group" | "service" | "external_viewer";
2322
- clerkId?: string;
2323
- email?: string;
2324
- displayName?: string;
2325
- status?: "active" | "invited" | "suspended" | "disabled" | "revoked";
2326
- metadata?: JsonObject;
2327
- }, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
2328
- listKeys(query?: GatewayScope & {
2329
- principalId?: string;
2330
- status?: string;
2331
- limit?: number;
2332
- }): Promise<PlatformGatewaySuccess<ListResult<any, "keys">>>;
2333
- createKey(input: GatewayScope & {
2334
- principalId: string;
2335
- keyId?: string;
2336
- token?: string;
2337
- scopes?: string[];
2338
- environment?: "sandbox" | "production";
2339
- expiresInDays?: number;
2340
- rateLimitTier?: "free" | "developer" | "partner";
2341
- metadata?: JsonObject;
2342
- }, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
2343
- rotateKey(keyId: string, input?: {
2344
- replacementKeyId?: string;
2345
- replacementToken?: string;
2346
- replacementExpiresInDays?: number;
2347
- gracePeriodHours?: number;
2348
- }, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
2349
- deleteKey(keyId: string, input?: {
2350
- reason?: string;
2351
- }, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
2352
- revokeKey(keyId: string, input?: {
2353
- reason?: string;
2354
- }, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
2355
- searchClerkUsers(q: string): Promise<PlatformGatewaySuccess<ClerkUserSearchResult[]>>;
2356
- getTenantConfig(input: TenantIdentityScope): Promise<PlatformGatewaySuccess<TenantIdentityConfigRecord>>;
2357
- updateTenantConfig(input: UpdateTenantConfigInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<TenantIdentityConfigRecord>>;
2358
- listIntegrations(input: TenantIdentityScope): Promise<PlatformGatewaySuccess<ListResult<TenantIntegrationRecord, "integrations">>>;
2359
- upsertIntegration(input: UpsertTenantIntegrationInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<TenantIntegrationRecord>>;
2360
- listSecrets(input: TenantIdentityScope): Promise<PlatformGatewaySuccess<ListResult<TenantSecretReference, "secrets">>>;
2361
- putSecretReference(input: PutTenantSecretReferenceInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<TenantSecretReference>>;
2362
- evaluatePolicy(input: PolicyEvaluationInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<PolicyDecisionRecord>>;
2363
- recordPolicyDecision(input: RecordPolicyDecisionInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<PolicyDecisionRecord>>;
2364
- };
2365
- policy: {
2366
- listDecisions(query?: GatewayScope & {
2367
- action?: string;
2368
- decision?: string;
2369
- traceId?: string;
2370
- principalId?: string;
2371
- topicId?: string;
2372
- limit?: number;
2373
- }): Promise<PlatformGatewaySuccess<ListResult<any, "decisions">>>;
2374
- grant(input: GatewayScope & {
2375
- topicId: string;
2376
- permission: PermissionKind;
2377
- principal?: string;
2378
- principalId?: string;
2379
- groupId?: string;
2380
- beliefClusterId?: string;
2381
- expiresAt?: number;
2382
- }, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
2383
- revoke(input: GatewayScope & {
2384
- topicId: string;
2385
- principal?: string;
2386
- principalId?: string;
2387
- groupId?: string;
2388
- beliefClusterId?: string;
2389
- }, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
2390
- listWritePolicies(query?: GatewayScope & {
2391
- topicId?: string;
2392
- role?: string;
2393
- toolCategory?: string;
2394
- enabled?: boolean;
2395
- }): Promise<{
2396
- data: {
2397
- policies: WritePolicyRecord[];
2398
- };
2399
- success: true;
2400
- correlationId: string;
2401
- policyTraceId: string | null;
2402
- idempotentReplay: boolean;
2403
- }>;
2404
- createWritePolicy(input: WritePolicyCreateInput, idempotencyKey?: string): Promise<{
2405
- data: {
2406
- id: string | undefined;
2407
- created: boolean;
2408
- policy: WritePolicyRecord | null;
2409
- };
2410
- success: true;
2411
- correlationId: string;
2412
- policyTraceId: string | null;
2413
- idempotentReplay: boolean;
2414
- }>;
2415
- updateWritePolicy(id: string, input: WritePolicyUpdateInput, idempotencyKey?: string): Promise<{
2416
- data: {
2417
- id: string | undefined;
2418
- updated: boolean;
2419
- policy: WritePolicyRecord | null;
2420
- };
2421
- success: true;
2422
- correlationId: string;
2423
- policyTraceId: string | null;
2424
- idempotentReplay: boolean;
2425
- }>;
2426
- deleteWritePolicy(id: string, scope?: GatewayScope, idempotencyKey?: string): Promise<PlatformGatewaySuccess<{
2427
- id?: string;
2428
- deleted?: boolean;
2429
- }>>;
2430
- listRolePolicies(query?: GatewayScope): Promise<{
2431
- data: {
2432
- policies: TenantPolicyRecord[];
2433
- };
2434
- success: true;
2435
- correlationId: string;
2436
- policyTraceId: string | null;
2437
- idempotentReplay: boolean;
2438
- }>;
2439
- createRolePolicy(input: GatewayScope & {
2440
- roleName: string;
2441
- description?: string;
2442
- permissions: TenantPolicyPermission[];
2443
- groupBindings?: string[];
2444
- }, idempotencyKey?: string): Promise<{
2445
- data: {
2446
- policy: TenantPolicyRecord | null;
2447
- };
2448
- success: true;
2449
- correlationId: string;
2450
- policyTraceId: string | null;
2451
- idempotentReplay: boolean;
2452
- }>;
2453
- updateRolePolicy(id: string, input: GatewayScope & {
2454
- roleName: string;
2455
- description?: string;
2456
- permissions: TenantPolicyPermission[];
2457
- groupBindings?: string[];
2458
- }, idempotencyKey?: string): Promise<{
2459
- data: {
2460
- policy: TenantPolicyRecord | null;
2461
- };
2462
- success: true;
2463
- correlationId: string;
2464
- policyTraceId: string | null;
2465
- idempotentReplay: boolean;
2466
- }>;
2467
- deleteRolePolicy(id: string, scope?: GatewayScope, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
2468
- checkPermission(query: GatewayScope & {
2469
- topicId?: string;
2470
- permission?: PermissionKind;
2471
- principal?: string;
2472
- principalId?: string;
2473
- beliefClusterId?: string;
2474
- }): Promise<PlatformGatewaySuccess<PermissionDecision>>;
2475
- listAccessibleTopics(query?: GatewayScope & {
2476
- permission?: PermissionKind;
2477
- includeShared?: boolean;
2478
- principal?: string;
2479
- principalId?: string;
2480
- limit?: number;
2481
- }): Promise<{
2482
- data: {
2483
- permission: PermissionKind;
2484
- topics: {
2485
- [key: string]: unknown;
2486
- topicId?: string;
2487
- name?: string;
2488
- type?: string;
2489
- isOwner?: boolean;
2490
- }[];
2491
- total: number;
2492
- deniedTopics: {
2493
- topicId: string;
2494
- reasonCode: string;
2495
- }[];
2496
- };
2497
- success: true;
2498
- correlationId: string;
2499
- policyTraceId: string | null;
2500
- idempotentReplay: boolean;
2501
- }>;
2502
- filterByPermission(input: GatewayScope & {
2503
- topicIds?: string[];
2504
- permission?: PermissionKind;
2505
- principal?: string;
2506
- principalId?: string;
2507
- }): Promise<{
2508
- success: boolean;
2509
- data: {
2510
- permission: PermissionKind;
2511
- allowedTopicIds: string[];
2512
- deniedTopics: {
2513
- topicId: string;
2514
- reasonCode: string;
2515
- }[];
2516
- count: number;
2517
- };
2518
- }>;
2519
- };
2520
- answers: {
2521
- get(questionId: string): Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
2522
- };
2523
- ontology: {
2524
- list(filters?: GatewayScope & {
2525
- tenantId?: string;
2526
- tier?: string;
2527
- status?: string;
2528
- }): Promise<PlatformGatewaySuccess<{
2529
- ontologies: any[];
2530
- total: number;
2531
- items: any[];
2532
- definitions: any[];
2533
- }>>;
2534
- get(id: string): Promise<PlatformGatewaySuccess<unknown>>;
2535
- bind(input: OntologyBindingInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
2536
- listDefinitions(filters?: GatewayScope & {
2537
- tenantId?: string;
2538
- tier?: string;
2539
- status?: string;
2540
- }): Promise<PlatformGatewaySuccess<{
2541
- ontologies: any[];
2542
- total: number;
2543
- items: any[];
2544
- definitions: any[];
2545
- }>>;
2546
- getDefinition(id: string): Promise<PlatformGatewaySuccess<unknown>>;
2547
- createDefinition(input: OntologyDefinitionInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
2548
- updateDefinition(id: string, input: OntologyDefinitionUpdateInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
2549
- archiveDefinition(id: string, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
2550
- listVersions(ontologyId: string, filters?: GatewayScope & {
2551
- status?: string;
2552
- }): Promise<PlatformGatewaySuccess<ListResult<any, "versions">>>;
2553
- createVersion(ontologyId: string, input: OntologyVersionInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
2554
- publishVersion(ontologyId: string, versionId: string, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
2555
- deprecateVersion(ontologyId: string, versionId: string, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
2556
- listTopics(ontologyId: string): Promise<PlatformGatewaySuccess<ListResult<any, "topics">>>;
2557
- listTopicsByOntology(ontologyId: string): Promise<PlatformGatewaySuccess<ListResult<any, "topics">>>;
2558
- };
2559
- ontologyLinks: {
2560
- createLink(input: OntologyLinkWriteInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<OntologyLinkRecord>>;
2561
- upsertLink(input: OntologyLinkWriteInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<OntologyLinkRecord>>;
2562
- listLinksForNode(input: ListOntologyLinksForNodeInput): Promise<PlatformGatewaySuccess<ListResult<OntologyLinkRecord, "links">>>;
2563
- updateLinkStatus(input: UpdateOntologyLinkStatusInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<OntologyLinkRecord>>;
2564
- };
2565
- orgGraphSearch: {
2566
- search(input: OrgGraphSearchInput): Promise<PlatformGatewaySuccess<OrgGraphSearchResponse>>;
2567
- getNode(input: GetOrgGraphNodeInput): Promise<PlatformGatewaySuccess<OrgGraphSearchResult>>;
2568
- listByProvenance(input: ListOrgGraphByProvenanceInput): Promise<PlatformGatewaySuccess<OrgGraphSearchResponse>>;
2569
- listPublishedFromWorkspace(input: ListPublishedFromWorkspaceInput): Promise<PlatformGatewaySuccess<OrgGraphSearchResponse>>;
2570
- };
2571
- functionSurface: {
2572
- sessionId: string;
2573
- activateWorktree(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2574
- addEvidence(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2575
- addWorktree(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2576
- analyzeTopicDensity(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2577
- answerQuestion(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2578
- applyAutoBranching(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2579
- applyLensToTopic(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2580
- applyOntology(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2581
- archiveBelief(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2582
- archiveOntology(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2583
- archiveQuestion(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2584
- bisectConfidence(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2585
- broadcastMessage(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2586
- checkPermission(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2587
- claimFiles(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2588
- compileContext(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2589
- completeTask(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2590
- createAnswer(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2591
- createBelief(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2592
- createEdge(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2593
- createEpistemicContract(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2594
- createEvidence(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2595
- createLens(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2596
- createOntology(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2597
- createOntologyVersion(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2598
- createQuestion(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2599
- createTask(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2600
- createTopic(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2601
- deprecateOntologyVersion(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2602
- detectConfirmationBias(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2603
- discover(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2604
- discoverEntityConnections(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2605
- endSession(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2606
- evaluateContract(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2607
- filterByPermission(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2608
- findContradictions(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2609
- findMissingQuestions(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2610
- flagContradiction(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2611
- forkBelief(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2612
- generateSessionHandoff(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2613
- getAgentInbox(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2614
- getAnswer(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2615
- getAuditTrail(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2616
- getBelief(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2617
- getChangeHistory(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2618
- getCodeContext(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2619
- getConfidenceHistory(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2620
- getContractStatus(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2621
- getEvidence(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2622
- getFailureLog(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2623
- getFalsificationQuestions(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2624
- getGraphGaps(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2625
- getGraphNeighborhood(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2626
- getGraphStructureAnalysis(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2627
- getHighPriorityQuestions(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2628
- getLatticeCoverage(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2629
- getObservationContext(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2630
- getOntology(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2631
- getQuestion(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2632
- getTopic(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2633
- getTopicCoverage(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2634
- getTopicTree(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2635
- heartbeatSession(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2636
- whoami(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2637
- ingestObservation(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2638
- linkEvidence(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2639
- linkEvidenceToBelief(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2640
- linkEvidenceToQuestion(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2641
- listActiveSessions(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2642
- listAllWorktrees(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2643
- listBeliefs(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2644
- listCampaigns(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2645
- listEvidence(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2646
- listLenses(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2647
- listOntologies(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2648
- listQuestions(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2649
- listTasks(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2650
- listTopics(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2651
- listWorktrees(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2652
- manageWritePolicy(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2653
- matchEntityType(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2654
- merge(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2655
- modulateConfidence(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2656
- openPullRequest(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2657
- pipelineSnapshot(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2658
- publishOntologyVersion(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2659
- push(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2660
- queryLineage(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2661
- recordAttempt(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2662
- recordJudgment(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2663
- recordScopeLearning(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2664
- refineBelief(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2665
- refineQuestion(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2666
- registerSession(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2667
- removeLensFromTopic(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2668
- resolveEffectiveOntology(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2669
- searchBeliefs(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2670
- searchEvidence(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2671
- seedBeliefLattice(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2672
- sendAgentMessage(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2673
- traceEntityImpact(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2674
- traverseGraph(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2675
- triggerBeliefReview(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2676
- updateOntology(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2677
- updateQuestionStatus(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2678
- updateTask(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2679
- updateTopic(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2680
- updateWorktreeMetadata(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2681
- updateWorktreeTargets(input?: FunctionSurfaceInput, idempotencyKey?: string): FunctionSurfaceResult<unknown>;
2682
- };
2683
- toolRegistry: {
2684
- listCatalog(input: ToolRegistryQuery): Promise<PlatformGatewaySuccess<ListResult<ToolCatalogEntry, "tools">>>;
2685
- listExecutable(input: ToolRegistryQuery): Promise<PlatformGatewaySuccess<ListResult<ToolCatalogEntry, "tools">>>;
2686
- listEffectiveTools(input: ToolRegistryQuery): Promise<PlatformGatewaySuccess<ListResult<ToolCatalogEntry, "tools">>>;
2687
- upsertCoreTools(input: UpsertCoreToolsInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<ListResult<ToolCatalogEntry, "tools">>>;
2688
- setPackToolsStatus(input: SetPackToolsStatusInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<ListResult<ToolCatalogEntry, "tools">>>;
2689
- createAcl(input: CreateToolAclInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<ToolAclRecord>>;
2690
- deleteAcl(input: DeleteToolAclInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<{
2691
- aclId: string;
2692
- deleted: boolean;
2693
- }>>;
2694
- registerCustomTool(input: RegisterCustomToolInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<ToolCatalogEntry>>;
2695
- };
2696
- modelRuntime: {
2697
- listModels(input: ModelRuntimeScope): Promise<PlatformGatewaySuccess<ListResult<ModelRegistryRecord, "models">>>;
2698
- getModel(input: ModelRuntimeScope & {
2699
- modelId: string;
2700
- }): Promise<PlatformGatewaySuccess<ModelRegistryRecord>>;
2701
- listFunctionSlots(input: ModelRuntimeScope & {
2702
- functionName?: string;
2703
- }): Promise<PlatformGatewaySuccess<ListResult<ModelFunctionSlot, "slots">>>;
2704
- resolveSlot(input: ResolveModelSlotInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<ModelFunctionSlot>>;
2705
- updateSlotConfig(input: UpdateModelSlotConfigInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<ModelFunctionSlot>>;
2706
- };
2707
- packs: {
2708
- listCatalog(): Promise<PlatformGatewaySuccess<ListResult<any, "catalog">>>;
2709
- getCatalog(): Promise<PlatformGatewaySuccess<ListResult<any, "catalog">>>;
2710
- getDiscoveryCatalog(): Promise<PlatformGatewaySuccess<unknown>>;
2711
- getDiscoveryDetail(packKey: string): Promise<PlatformGatewaySuccess<unknown>>;
2712
- listStates(query?: GatewayScope): Promise<PlatformGatewaySuccess<ListResult<any, "states">>>;
2713
- getStates(query?: GatewayScope): Promise<PlatformGatewaySuccess<ListResult<any, "states">>>;
2714
- getHealth(packKey: string, query?: GatewayScope): Promise<PlatformGatewaySuccess<unknown>>;
2715
- listTelemetry(query?: GatewayScope & {
2716
- lookbackHours?: number;
2717
- limit?: number;
2718
- }): Promise<PlatformGatewaySuccess<ListResult<any, "telemetry">>>;
2719
- getTelemetry(query?: GatewayScope & {
2720
- lookbackHours?: number;
2721
- limit?: number;
2722
- }): Promise<PlatformGatewaySuccess<ListResult<any, "telemetry">>>;
2723
- createEntitlement(input: PackEntitlementInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
2724
- updateEntitlement(input: PackEntitlementInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
2725
- upsertEntitlement(input: PackEntitlementInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
2726
- install(input: PackInstallInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
2727
- enable(input: PackEnableInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
2728
- disable(input: PackDisableInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
2729
- uninstall(input: PackUninstallInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
2730
- upgrade(input: PackUpgradeInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
2731
- };
2732
- reports: {
2733
- listTemplates(args?: {
2734
- slug?: string;
2735
- }): Promise<PlatformGatewaySuccess<ReportTemplatesResponse>>;
2736
- getTemplates(args?: {
2737
- slug?: string;
2738
- }): Promise<PlatformGatewaySuccess<ReportTemplatesResponse>>;
2739
- listReports(input: TopicIdentifierInput, args?: {
2740
- summary?: boolean;
2741
- }): Promise<PlatformGatewaySuccess<ListResult<any, "reports">>>;
2742
- getReport(reportId: string): Promise<PlatformGatewaySuccess<ReportWithSectionsResponse>>;
2743
- };
2744
- learning: {
2745
- listRecentExecutions(args?: {
2746
- namespace?: string;
2747
- topicId?: string;
2748
- audienceMode?: string;
2749
- success?: boolean;
2750
- limit?: number;
2751
- } & TopicIdentifierInput): Promise<PlatformGatewaySuccess<ListResult<any, "executions">>>;
2752
- getRecentExecutions(args?: {
2753
- namespace?: string;
2754
- topicId?: string;
2755
- audienceMode?: string;
2756
- success?: boolean;
2757
- limit?: number;
2758
- } & TopicIdentifierInput): Promise<PlatformGatewaySuccess<ListResult<any, "executions">>>;
2759
- getExecutionStats(args?: {
2760
- namespace?: string;
2761
- topicId?: string;
2762
- audienceMode?: string;
2763
- hours?: number;
2764
- } & TopicIdentifierInput): Promise<PlatformGatewaySuccess<unknown>>;
2765
- };
2766
- mcp: {
2767
- bootstrapSession(input?: McpBootstrapSessionInput): Promise<McpBootstrapSessionResponse>;
2768
- checkWritePolicy(input: McpCheckWritePolicyInput): Promise<McpCheckWritePolicyResponse>;
2769
- beginBuildSession(input: McpBeginBuildSessionInput): Promise<McpBeginBuildSessionResponse>;
2770
- evaluateEngineeringContract(input: McpEvaluateEngineeringContractInput): Promise<McpContractEvaluationResponse>;
2771
- evaluateResearchContract(input: McpEvaluateResearchContractInput): Promise<McpContractEvaluationResponse>;
2772
- };
2773
- jobs: {
2774
- enqueue(input: EnqueueJobInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<JobRecord>>;
2775
- list(input: JobsScope): Promise<PlatformGatewaySuccess<ListResult<JobRecord, "jobs">>>;
2776
- claim(input: ClaimJobInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<JobRecord>>;
2777
- updateStatus(input: UpdateJobStatusInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<JobRecord>>;
2778
- retry(input: RetryJobInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<JobRecord>>;
2779
- recordRunStart(input: RecordJobRunStartInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<JobRunRecord>>;
2780
- recordRunFinish(input: RecordJobRunFinishInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<JobRunRecord>>;
2781
- };
2782
- telemetry: {
2783
- logSystemEvent(input: LogSystemEventInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<{
2784
- eventId?: string;
2785
- recorded: boolean;
2786
- }>>;
2787
- logToolCallsBatch(input: LogToolCallsBatchInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<{
2788
- recorded: number;
2789
- }>>;
2790
- recordEpistemicAudit(input: RecordEpistemicAuditInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<{
2791
- auditId?: string;
2792
- recorded: boolean;
2793
- }>>;
2794
- recordPolicyDecision(input: RecordTelemetryPolicyDecisionInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<{
2795
- decisionId?: string;
2796
- recorded: boolean;
2797
- }>>;
2798
- startRun(input: StartTelemetryRunInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<TelemetryRunRecord>>;
2799
- finishRun(input: FinishTelemetryRunInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<TelemetryRunRecord>>;
2800
- listRuns(input: TelemetryScope): Promise<PlatformGatewaySuccess<ListResult<TelemetryRunRecord, "runs">>>;
2801
- };
2802
- harness: {
2803
- listAgentDefinitions(scope?: GatewayScope & {
2804
- status?: string;
2805
- limit?: number;
2806
- cursor?: string;
2807
- }): Promise<PlatformGatewaySuccess<ListResult<any, "agents">>>;
2808
- getAgentDefinition(agentId: string, scope?: GatewayScope): Promise<PlatformGatewaySuccess<unknown>>;
2809
- createAgentDefinition(input: HarnessAgentWriteInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
2810
- registerAgentDefinition(input: HarnessAgentWriteInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
2811
- updateAgentDefinition(agentId: string, input: HarnessAgentWriteInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
2812
- invokeManagedAgentDefinition(agentId: string, input: Omit<HarnessInvokeManagedAgentInput, "agentDefinitionId">, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
2813
- listAgentRuns(agentId: string, scope?: GatewayScope & {
2814
- status?: string;
2815
- limit?: number;
2816
- cursor?: string;
2817
- }): Promise<PlatformGatewaySuccess<ListResult<any, "runs">>>;
2818
- listRunsForAgent(agentId: string, scope?: GatewayScope & {
2819
- status?: string;
2820
- limit?: number;
2821
- cursor?: string;
2822
- }): Promise<PlatformGatewaySuccess<ListResult<any, "runs">>>;
2823
- listToolDefinitions(scope?: GatewayScope & {
2824
- status?: string;
2825
- limit?: number;
2826
- cursor?: string;
2827
- gateClassification?: string;
2828
- }): Promise<PlatformGatewaySuccess<ListResult<any, "tools">>>;
2829
- getToolDefinition(toolId: string, scope?: GatewayScope): Promise<PlatformGatewaySuccess<unknown>>;
2830
- createToolDefinition(input: HarnessToolWriteInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
2831
- registerToolDefinition(input: HarnessToolWriteInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
2832
- updateToolDefinition(toolId: string, input: HarnessToolWriteInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
2833
- executeToolDefinition(toolId: string, input?: HarnessExecuteToolInput): Promise<PlatformGatewaySuccess<HarnessExecuteToolResult>>;
2834
- listRunEntries(scope?: GatewayScope & {
2835
- status?: string;
2836
- limit?: number;
2837
- cursor?: string;
2838
- }): Promise<PlatformGatewaySuccess<ListResult<any, "runs">>>;
2839
- listRunLedgerEntries(scope?: GatewayScope & {
2840
- status?: string;
2841
- limit?: number;
2842
- cursor?: string;
2843
- }): Promise<PlatformGatewaySuccess<ListResult<any, "runs">>>;
2844
- startHarnessRun(input: HarnessStartRunInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
2845
- getRunLedgerEntry(runId: string): Promise<PlatformGatewaySuccess<unknown>>;
2846
- reportHarnessRunEvent(runId: string, input: HarnessRunReportInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
2847
- heartbeatHarnessRun(runId: string, input: {
2848
- reportingToken: string;
2849
- }, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
2850
- completeHarnessRun(runId: string, input: HarnessCompleteRunInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
2851
- listPromptResolutions(query?: {
2852
- runId?: string;
2853
- promptName?: string;
2854
- limit?: number;
2855
- }): Promise<PlatformGatewaySuccess<ListResult<any, "prompts">>>;
2856
- getScopeTaxonomy(): Promise<PlatformGatewaySuccess<unknown>>;
2857
- };
2858
- schema: {
2859
- listPacks(scope?: GatewayScope): Promise<PlatformGatewaySuccess<ListResult<any, "packs">>>;
2860
- installPack(input: SchemaPackInstallInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
2861
- getPack(packId: string, scope?: GatewayScope): Promise<PlatformGatewaySuccess<unknown>>;
2862
- listEntitlements(scope?: GatewayScope & {
2863
- packKey?: string;
2864
- }): Promise<PlatformGatewaySuccess<ListResult<any, "entitlements">>>;
2865
- createEntitlement(input: SchemaEntitlementInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
2866
- updateEntitlement(input: SchemaEntitlementInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
2867
- upsertEntitlement(input: SchemaEntitlementInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
2868
- };
2869
- audiences: {
2870
- listRegistry(query?: GatewayScope & {
2871
- effective?: boolean;
2872
- status?: "active" | "disabled" | "archived";
2873
- }): Promise<PlatformGatewaySuccess<ListResult<any, "registryEntries">>>;
2874
- getRegistry(query?: GatewayScope & {
2875
- effective?: boolean;
2876
- status?: "active" | "disabled" | "archived";
2877
- }): Promise<PlatformGatewaySuccess<ListResult<any, "registryEntries">>>;
2878
- createRegistryEntry(input: AudienceRegistryInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
2879
- updateRegistryEntry(input: AudienceRegistryInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
2880
- upsertRegistry(input: AudienceRegistryInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
2881
- listGrants(query?: GatewayScope & {
2882
- audienceKey?: string;
2883
- principalId?: string;
2884
- groupId?: string;
2885
- status?: "active" | "revoked" | "expired";
2886
- }): Promise<PlatformGatewaySuccess<ListResult<any, "grants">>>;
2887
- getGrants(query?: GatewayScope & {
2888
- audienceKey?: string;
2889
- principalId?: string;
2890
- groupId?: string;
2891
- status?: "active" | "revoked" | "expired";
2892
- }): Promise<PlatformGatewaySuccess<ListResult<any, "grants">>>;
2893
- createGrant(input: AudienceGrantInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
2894
- grant(input: AudienceGrantInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
2895
- deleteGrant(input: AudienceGrantRevokeInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
2896
- revokeGrant(input: AudienceGrantRevokeInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
2897
- };
2898
- topics: {
2899
- list(query?: TopicListInput): Promise<PlatformGatewaySuccess<TopicListResponse>>;
2900
- get(topicId: string): Promise<PlatformGatewaySuccess<TopicRecord>>;
2901
- create(input: TopicCreateInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<TopicRecord>>;
2902
- update(topicId: string, input: TopicUpdateInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<TopicRecord>>;
2903
- getTree(topicId: string, query?: TopicTreeQuery): Promise<PlatformGatewaySuccess<TopicTreeResponse>>;
2904
- getCoverage(topicId: string, query?: TopicCoverageQuery): Promise<PlatformGatewaySuccess<TopicCoverageResponse>>;
2905
- remove(topicId: string, idempotencyKey?: string): Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
2906
- bulkCreate(input: TopicBulkCreateInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
2907
- };
2908
- };
2909
- };
2910
-
2911
- export { type FunctionSurfaceClientConfig as F, type LucernClientConfig as L, type FunctionSurfaceInput as a, type FunctionSurfaceResult as b, createLucernClient as c, FUNCTION_SURFACE_METHOD_PATHS as d, createFunctionSurfaceClient as e };