@lucern/sdk 0.3.0-alpha.17 → 0.3.0-alpha.2

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