@lucern/sdk 0.2.0-alpha.1

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 (105) hide show
  1. package/README.md +97 -0
  2. package/dist/index.js +8980 -0
  3. package/dist/index.js.map +1 -0
  4. package/dist/lucern/contracts/src/auth-session.contract.d.ts +53 -0
  5. package/dist/lucern/contracts/src/context-pack.contract.d.ts +494 -0
  6. package/dist/lucern/contracts/src/lens-filter.contract.d.ts +70 -0
  7. package/dist/lucern/contracts/src/lens-workflow.contract.d.ts +84 -0
  8. package/dist/lucern/contracts/src/mcp-tools.contract.d.ts +151 -0
  9. package/dist/lucern/contracts/src/workflow-runtime.contract.d.ts +161 -0
  10. package/dist/lucern/mcp-server/src/context-pack-policy.d.ts +119 -0
  11. package/dist/lucern/mcp-server/src/context-pack-schema.d.ts +18 -0
  12. package/dist/lucern/modules/graph-primitives/src/ontology-matching.d.ts +78 -0
  13. package/dist/lucern/modules/graph-primitives/src/text-matching.d.ts +53 -0
  14. package/dist/lucern/packages/client-core/src/beliefs.d.ts +30 -0
  15. package/dist/lucern/packages/client-core/src/context.d.ts +29 -0
  16. package/dist/lucern/packages/client-core/src/contradictions.d.ts +11 -0
  17. package/dist/lucern/packages/client-core/src/edges.d.ts +11 -0
  18. package/dist/lucern/packages/client-core/src/events.d.ts +9 -0
  19. package/dist/lucern/packages/client-core/src/evidence.d.ts +21 -0
  20. package/dist/lucern/packages/client-core/src/graph.d.ts +17 -0
  21. package/dist/lucern/packages/client-core/src/identity.d.ts +7 -0
  22. package/dist/lucern/packages/client-core/src/ids.d.ts +7 -0
  23. package/dist/lucern/packages/client-core/src/ontologies.d.ts +13 -0
  24. package/dist/lucern/packages/client-core/src/questions.d.ts +39 -0
  25. package/dist/lucern/packages/client-core/src/search.d.ts +7 -0
  26. package/dist/lucern/packages/client-core/src/tasks.d.ts +13 -0
  27. package/dist/lucern/packages/client-core/src/topics.d.ts +17 -0
  28. package/dist/lucern/packages/client-core/src/webhooks.d.ts +35 -0
  29. package/dist/lucern/packages/client-core/src/worktrees.d.ts +17 -0
  30. package/dist/lucern/packages/domain-beliefs/src/beliefs.d.ts +283 -0
  31. package/dist/lucern/packages/domain-beliefs/src/index.d.ts +1 -0
  32. package/dist/lucern/packages/domain-context/src/compile.d.ts +11 -0
  33. package/dist/lucern/packages/domain-context/src/context-pack-compiler.d.ts +101 -0
  34. package/dist/lucern/packages/domain-context/src/index.d.ts +4 -0
  35. package/dist/lucern/packages/domain-context/src/ports.d.ts +58 -0
  36. package/dist/lucern/packages/domain-context/src/public-types.d.ts +1 -0
  37. package/dist/lucern/packages/domain-edges/src/contradictions.d.ts +59 -0
  38. package/dist/lucern/packages/domain-edges/src/edges.d.ts +91 -0
  39. package/dist/lucern/packages/domain-edges/src/index.d.ts +2 -0
  40. package/dist/lucern/packages/domain-evidence/src/evidence.d.ts +115 -0
  41. package/dist/lucern/packages/domain-evidence/src/index.d.ts +1 -0
  42. package/dist/lucern/packages/domain-graph/src/graph.d.ts +150 -0
  43. package/dist/lucern/packages/domain-identity/src/index.d.ts +1 -0
  44. package/dist/lucern/packages/domain-identity/src/whoami.d.ts +13 -0
  45. package/dist/lucern/packages/domain-ontologies/src/ontologies.d.ts +123 -0
  46. package/dist/lucern/packages/domain-questions/src/index.d.ts +1 -0
  47. package/dist/lucern/packages/domain-questions/src/questions.d.ts +147 -0
  48. package/dist/lucern/packages/domain-search/src/search.d.ts +97 -0
  49. package/dist/lucern/packages/domain-tasks/src/index.d.ts +1 -0
  50. package/dist/lucern/packages/domain-tasks/src/tasks.d.ts +102 -0
  51. package/dist/lucern/packages/domain-topics/src/index.d.ts +1 -0
  52. package/dist/lucern/packages/domain-topics/src/topics.d.ts +147 -0
  53. package/dist/lucern/packages/domain-worktrees/src/index.d.ts +1 -0
  54. package/dist/lucern/packages/domain-worktrees/src/worktrees.d.ts +185 -0
  55. package/dist/lucern/packages/events/src/index.d.ts +4 -0
  56. package/dist/lucern/packages/events/src/matching.d.ts +3 -0
  57. package/dist/lucern/packages/events/src/outbox.d.ts +15 -0
  58. package/dist/lucern/packages/events/src/types.d.ts +151 -0
  59. package/dist/lucern/packages/events/src/webhooks.d.ts +9 -0
  60. package/dist/lucern/packages/sdk-typescript/src/facade/beliefs.d.ts +15 -0
  61. package/dist/lucern/packages/sdk-typescript/src/facade/context.d.ts +12 -0
  62. package/dist/lucern/packages/sdk-typescript/src/facade/contradictions.d.ts +7 -0
  63. package/dist/lucern/packages/sdk-typescript/src/facade/edges.d.ts +7 -0
  64. package/dist/lucern/packages/sdk-typescript/src/facade/events.d.ts +6 -0
  65. package/dist/lucern/packages/sdk-typescript/src/facade/evidence.d.ts +21 -0
  66. package/dist/lucern/packages/sdk-typescript/src/facade/graph.d.ts +10 -0
  67. package/dist/lucern/packages/sdk-typescript/src/facade/identity.d.ts +5 -0
  68. package/dist/lucern/packages/sdk-typescript/src/facade/ontologies.d.ts +8 -0
  69. package/dist/lucern/packages/sdk-typescript/src/facade/questions.d.ts +39 -0
  70. package/dist/lucern/packages/sdk-typescript/src/facade/search.d.ts +5 -0
  71. package/dist/lucern/packages/sdk-typescript/src/facade/tasks.d.ts +8 -0
  72. package/dist/lucern/packages/sdk-typescript/src/facade/topics.d.ts +10 -0
  73. package/dist/lucern/packages/sdk-typescript/src/facade/webhooks.d.ts +16 -0
  74. package/dist/lucern/packages/sdk-typescript/src/facade/worktrees.d.ts +10 -0
  75. package/dist/lucern/packages/sdk-typescript/src/index.d.ts +28 -0
  76. package/dist/packages/sdk/src/adminClient.d.ts +89 -0
  77. package/dist/packages/sdk/src/answersClient.d.ts +5 -0
  78. package/dist/packages/sdk/src/audiencesClient.d.ts +87 -0
  79. package/dist/packages/sdk/src/auditClient.d.ts +23 -0
  80. package/dist/packages/sdk/src/beliefsClient.d.ts +54 -0
  81. package/dist/packages/sdk/src/client.d.ts +1610 -0
  82. package/dist/packages/sdk/src/contextClient.d.ts +9 -0
  83. package/dist/packages/sdk/src/contracts/api-enums.contract.d.ts +58 -0
  84. package/dist/packages/sdk/src/controlObjectOwnership.d.ts +293 -0
  85. package/dist/packages/sdk/src/coreClient.d.ts +120 -0
  86. package/dist/packages/sdk/src/customTools.d.ts +65 -0
  87. package/dist/packages/sdk/src/decisionsClient.d.ts +110 -0
  88. package/dist/packages/sdk/src/graphClient.d.ts +209 -0
  89. package/dist/packages/sdk/src/harnessClient.d.ts +222 -0
  90. package/dist/packages/sdk/src/identityClient.d.ts +104 -0
  91. package/dist/packages/sdk/src/index.d.ts +28 -0
  92. package/dist/packages/sdk/src/learningClient.d.ts +43 -0
  93. package/dist/packages/sdk/src/mcpParityClient.d.ts +68 -0
  94. package/dist/packages/sdk/src/mcpParitySurface.d.ts +8 -0
  95. package/dist/packages/sdk/src/ontologyClient.d.ts +115 -0
  96. package/dist/packages/sdk/src/packsClient.d.ts +101 -0
  97. package/dist/packages/sdk/src/policyClient.d.ts +204 -0
  98. package/dist/packages/sdk/src/reportsClient.d.ts +31 -0
  99. package/dist/packages/sdk/src/schemaClient.d.ts +54 -0
  100. package/dist/packages/sdk/src/sdkSurface.d.ts +56 -0
  101. package/dist/packages/sdk/src/topicsClient.d.ts +45 -0
  102. package/dist/packages/sdk/src/types.d.ts +489 -0
  103. package/dist/packages/sdk/src/version.d.ts +2 -0
  104. package/dist/packages/sdk/src/workflowClient.d.ts +274 -0
  105. package/package.json +56 -0
@@ -0,0 +1,1610 @@
1
+ import { type AdminClientConfig } from "./adminClient";
2
+ import { type AnswersClientConfig } from "./answersClient";
3
+ import { type AudiencesClientConfig } from "./audiencesClient";
4
+ import { type AuditClientConfig } from "./auditClient";
5
+ import { type BeliefsClientConfig } from "./beliefsClient";
6
+ import { type PlatformGatewaySuccess } from "./coreClient";
7
+ import { type CustomToolRegistration } from "./customTools";
8
+ import { type DecisionsClientConfig, type RecordJudgmentInput } from "./decisionsClient";
9
+ import { type ContextClientConfig } from "./contextClient";
10
+ import { type GraphClientConfig } from "./graphClient";
11
+ import { type HarnessClientConfig } from "./harnessClient";
12
+ import { type IdentityClientConfig } from "./identityClient";
13
+ import { type LearningClientConfig } from "./learningClient";
14
+ import { type McpParityClientConfig } from "./mcpParityClient";
15
+ import { type OntologyClientConfig } from "./ontologyClient";
16
+ import { type PacksClientConfig } from "./packsClient";
17
+ import { type PolicyClientConfig } from "./policyClient";
18
+ import { type ReportsClientConfig } from "./reportsClient";
19
+ import { type SchemaClientConfig } from "./schemaClient";
20
+ import { type TopicsClientConfig } from "./topicsClient";
21
+ import type { JsonObject, PlatformGraphEdge, PlatformGraphNode } from "./types";
22
+ import { type AddWorktreeInput, type CompleteTaskInput, type CreateTaskInput, type MergeInput, type UpdateTaskInput, type WorkflowClientConfig } from "./workflowClient";
23
+ type ClientConfig = BeliefsClientConfig | GraphClientConfig | DecisionsClientConfig | AnswersClientConfig | ContextClientConfig | WorkflowClientConfig | AuditClientConfig | AdminClientConfig | IdentityClientConfig | PolicyClientConfig | PacksClientConfig | ReportsClientConfig | LearningClientConfig | McpParityClientConfig | OntologyClientConfig | HarnessClientConfig | SchemaClientConfig | AudiencesClientConfig | TopicsClientConfig;
24
+ type CustomToolInput = JsonObject;
25
+ type CustomToolInvoker = (input?: CustomToolInput) => Promise<unknown>;
26
+ type CustomToolNamespace = Record<string, CustomToolInvoker>;
27
+ type GatewayDataEnvelope<T extends Record<string, unknown>> = PlatformGatewaySuccess<T> & T;
28
+ type BeliefsCompatCreateInput = {
29
+ topicId?: string;
30
+ projectId?: string;
31
+ text?: string;
32
+ canonicalText?: string;
33
+ formulation?: string;
34
+ rationale?: string;
35
+ worktreeId?: string;
36
+ pillar?: string;
37
+ sourceBeliefIds?: string[];
38
+ sourceType?: string;
39
+ beliefType?: string;
40
+ reversibility?: string;
41
+ predictionMeta?: JsonObject;
42
+ metadata?: JsonObject;
43
+ };
44
+ type BeliefsCompatForkInput = {
45
+ text?: string;
46
+ newFormulation?: string;
47
+ formulation?: string;
48
+ forkReason?: "refinement" | "contradiction_response" | "scope_change" | "confidence_collapse" | "manual";
49
+ rationale?: string;
50
+ };
51
+ type BeliefsCompatUpdateConfidenceInput = {
52
+ confidence: number;
53
+ trigger?: "evidence_added" | "evidence_removed" | "contradiction_detected" | "contradiction_resolved" | "manual" | "decay" | "agent_assessment" | "merge_outcome" | "sprint_outcome" | "sprint_completed" | "worktree_outcome" | "worktree_completed";
54
+ rationale: string;
55
+ certainty?: number;
56
+ maxInlinePropagationTargets?: number;
57
+ };
58
+ export type LucernClientConfig = ClientConfig & {
59
+ apiKey?: string;
60
+ /**
61
+ * Optional Clerk JWT for per-user identity and RBAC.
62
+ * When present, the SDK operates in user-scoped mode with
63
+ * pack-aware tool filtering. When absent, operates in agent mode.
64
+ */
65
+ userToken?: string;
66
+ /**
67
+ * Optional pack key for auto-install convenience.
68
+ * When set, the SDK will call `packs.install()` on first use
69
+ * to ensure the pack is available in the workspace.
70
+ */
71
+ packKey?: string;
72
+ environment?: "sandbox" | "production";
73
+ };
74
+ /**
75
+ * Create the high-level Lucern SDK facade.
76
+ */
77
+ export declare function createLucernClient(config?: LucernClientConfig): {
78
+ config: LucernClientConfig;
79
+ version: string;
80
+ search(query: string, options?: {
81
+ topicId?: string;
82
+ projectId?: string;
83
+ types?: string[];
84
+ status?: string;
85
+ minConfidence?: number;
86
+ limit?: number;
87
+ cursor?: string;
88
+ }): Promise<GatewayDataEnvelope<import("@/lucern/packages/domain-search/src/search").SearchResponse>>;
89
+ events: {
90
+ list(query?: Parameters<(query: Parameters<(query?: import("@/lucern/packages/events/src/types").EventListQuery) => Promise<import("@/lucern/packages/client-core/src/events").EventsListResponse>>[0]) => Promise<import("@/lucern/packages/client-core/src/events").EventsListResponse>>[0]): Promise<GatewayDataEnvelope<import("@/lucern/packages/events/src/types").EventListResult>>;
91
+ replay(input: Parameters<(input: Parameters<(input: import("@/lucern/packages/events/src/types").ReplayEventsInput, idempotencyKey?: string) => Promise<import("@/lucern/packages/client-core/src/events").EventsReplayResponse>>[0], idempotencyKey?: Parameters<(input: import("@/lucern/packages/events/src/types").ReplayEventsInput, idempotencyKey?: string) => Promise<import("@/lucern/packages/client-core/src/events").EventsReplayResponse>>[1]) => Promise<import("@/lucern/packages/client-core/src/events").EventsReplayResponse>>[0]): Promise<GatewayDataEnvelope<import("@/lucern/packages/events/src/types").ReplayEventsResult>>;
92
+ };
93
+ beliefs: {
94
+ create(input: BeliefsCompatCreateInput): Promise<GatewayDataEnvelope<import("@/lucern/packages/domain-beliefs/src/beliefs").BeliefRecord>>;
95
+ get(nodeId: string): Promise<GatewayDataEnvelope<import("@/lucern/packages/domain-beliefs/src/beliefs").BeliefRecord>>;
96
+ refine(nodeId: string, textOrInput: string | {
97
+ text: string;
98
+ rationale?: string;
99
+ }, rationale?: string): Promise<GatewayDataEnvelope<import("@/lucern/packages/domain-beliefs/src/beliefs").BeliefRecord>>;
100
+ updateConfidence(nodeId: string, input: BeliefsCompatUpdateConfidenceInput): Promise<GatewayDataEnvelope<import("@/lucern/packages/domain-beliefs/src/beliefs").BeliefConfidenceUpdateResult>>;
101
+ modulateConfidence(nodeId: string, input: BeliefsCompatUpdateConfidenceInput): Promise<GatewayDataEnvelope<import("@/lucern/packages/domain-beliefs/src/beliefs").BeliefConfidenceUpdateResult>>;
102
+ fork(nodeId: string, input: BeliefsCompatForkInput): Promise<GatewayDataEnvelope<import("@/lucern/packages/domain-beliefs/src/beliefs").BeliefRecord & {
103
+ parentBeliefId: string;
104
+ forkReason: string;
105
+ }>>;
106
+ archive(nodeId: string, input?: string | {
107
+ reason?: string;
108
+ rationale?: string;
109
+ }): Promise<GatewayDataEnvelope<import("@/lucern/packages/domain-beliefs/src/beliefs").BeliefArchiveResult>>;
110
+ list(args: {
111
+ topicId?: string;
112
+ projectId?: string;
113
+ worktreeId?: string;
114
+ status?: string;
115
+ minConfidence?: number;
116
+ limit?: number;
117
+ cursor?: string;
118
+ }): Promise<GatewayDataEnvelope<import("@/lucern/packages/domain-beliefs/src/beliefs").BeliefListResult>>;
119
+ search: (args: {
120
+ query: string;
121
+ topicId?: string;
122
+ projectId?: string;
123
+ status?: string;
124
+ minConfidence?: number;
125
+ limit?: number;
126
+ }) => Promise<{
127
+ results: Record<string, unknown>[];
128
+ }>;
129
+ lineage(nodeId: string): Promise<GatewayDataEnvelope<import("@/lucern/packages/domain-beliefs/src/beliefs").BeliefLineageResult>>;
130
+ confidenceHistory(nodeId: string): Promise<GatewayDataEnvelope<import("@/lucern/packages/domain-beliefs/src/beliefs").BeliefConfidenceHistoryResult>>;
131
+ createContract(nodeId: string, input: Parameters<(id: string, input: Parameters<(id: string, input: import("@/lucern/packages/domain-beliefs/src/beliefs").BeliefContractCreateInput, idempotencyKey?: string) => Promise<import("@/lucern/packages/client-core/src/beliefs").BeliefsCreateContractResponse>>[1], idempotencyKey?: Parameters<(id: string, input: import("@/lucern/packages/domain-beliefs/src/beliefs").BeliefContractCreateInput, idempotencyKey?: string) => Promise<import("@/lucern/packages/client-core/src/beliefs").BeliefsCreateContractResponse>>[2]) => Promise<import("@/lucern/packages/client-core/src/beliefs").BeliefsCreateContractResponse>>[1]): Promise<GatewayDataEnvelope<import("@/lucern/packages/domain-beliefs/src/beliefs").BeliefContractCreateResult>>;
132
+ bisect(nodeId: string, input: Parameters<(id: string, input: Parameters<(id: string, input: Omit<import("@/lucern/packages/domain-beliefs/src/beliefs").BisectBeliefConfidenceInput, "id">, idempotencyKey?: string) => Promise<import("@/lucern/packages/client-core/src/beliefs").BeliefsBisectResponse>>[1], idempotencyKey?: Parameters<(id: string, input: Omit<import("@/lucern/packages/domain-beliefs/src/beliefs").BisectBeliefConfidenceInput, "id">, idempotencyKey?: string) => Promise<import("@/lucern/packages/client-core/src/beliefs").BeliefsBisectResponse>>[2]) => Promise<import("@/lucern/packages/client-core/src/beliefs").BeliefsBisectResponse>>[1]): Promise<GatewayDataEnvelope<import("@/lucern/packages/domain-beliefs/src/beliefs").BeliefBisectResult>>;
133
+ };
134
+ webhooks: {
135
+ create(input: Parameters<(input: Parameters<(input: import("@/lucern/packages/events/src/types").WebhookCreateInput, idempotencyKey?: string) => Promise<import("@/lucern/packages/client-core/src/webhooks").WebhooksCreateResponse>>[0], idempotencyKey?: Parameters<(input: import("@/lucern/packages/events/src/types").WebhookCreateInput, idempotencyKey?: string) => Promise<import("@/lucern/packages/client-core/src/webhooks").WebhooksCreateResponse>>[1]) => Promise<import("@/lucern/packages/client-core/src/webhooks").WebhooksCreateResponse>>[0]): Promise<GatewayDataEnvelope<import("@/lucern/packages/events/src/types").WebhookRecord>>;
136
+ list(query?: Parameters<(query?: Parameters<(query?: import("@/lucern/packages/client-core/src/webhooks").WebhookListQuery) => Promise<import("@/lucern/packages/client-core/src/webhooks").WebhooksListResponse>>[0]) => Promise<import("@/lucern/packages/client-core/src/webhooks").WebhooksListResponse>>[0]): Promise<GatewayDataEnvelope<{
137
+ webhooks: import("@/lucern/packages/events/src/types").WebhookRecord[];
138
+ }>>;
139
+ get(id: string): Promise<GatewayDataEnvelope<import("@/lucern/packages/events/src/types").WebhookRecord>>;
140
+ update(id: string, input: Parameters<(id: string, input: Parameters<(id: string, input: import("@/lucern/packages/events/src/types").WebhookUpdateInput, idempotencyKey?: string) => Promise<import("@/lucern/packages/client-core/src/webhooks").WebhooksUpdateResponse>>[1], idempotencyKey?: Parameters<(id: string, input: import("@/lucern/packages/events/src/types").WebhookUpdateInput, idempotencyKey?: string) => Promise<import("@/lucern/packages/client-core/src/webhooks").WebhooksUpdateResponse>>[2]) => Promise<import("@/lucern/packages/client-core/src/webhooks").WebhooksUpdateResponse>>[1]): Promise<GatewayDataEnvelope<import("@/lucern/packages/events/src/types").WebhookRecord>>;
141
+ delete(id: string): Promise<GatewayDataEnvelope<import("@/lucern/packages/client-core/src/webhooks").WebhookDeleteResult>>;
142
+ test(id: string, input?: Parameters<(id: string, input?: Parameters<(id: string, input?: {
143
+ topicId?: string;
144
+ }, idempotencyKey?: string) => Promise<import("@/lucern/packages/client-core/src/webhooks").WebhooksTestResponse>>[1], idempotencyKey?: Parameters<(id: string, input?: {
145
+ topicId?: string;
146
+ }, idempotencyKey?: string) => Promise<import("@/lucern/packages/client-core/src/webhooks").WebhooksTestResponse>>[2]) => Promise<import("@/lucern/packages/client-core/src/webhooks").WebhooksTestResponse>>[1]): Promise<GatewayDataEnvelope<import("@/lucern/packages/events/src/types").WebhookTestResult>>;
147
+ deliveries(id: string, query?: Parameters<(id: string, query?: Parameters<(id: string, query?: import("@/lucern/packages/client-core/src/webhooks").WebhookDeliveriesQuery) => Promise<import("@/lucern/packages/client-core/src/webhooks").WebhooksDeliveriesResponse>>[1]) => Promise<import("@/lucern/packages/client-core/src/webhooks").WebhooksDeliveriesResponse>>[1]): Promise<GatewayDataEnvelope<import("@/lucern/packages/events/src/types").WebhookDeliveriesResult>>;
148
+ health(id: string): Promise<GatewayDataEnvelope<import("@/lucern/packages/events/src/types").WebhookHealthResult>>;
149
+ };
150
+ edges: {
151
+ create(args: {
152
+ sourceId: string;
153
+ targetId: string;
154
+ edgeType: string;
155
+ topicId?: string;
156
+ projectId?: string;
157
+ confidence?: number;
158
+ weight?: number;
159
+ context?: string;
160
+ reasoning?: string;
161
+ }): Promise<GatewayDataEnvelope<import("@/lucern/packages/domain-edges/src/edges").EdgeRecord>>;
162
+ list(args: {
163
+ sourceId: string;
164
+ edgeType?: string;
165
+ limit?: number;
166
+ cursor?: string;
167
+ }): Promise<GatewayDataEnvelope<import("@/lucern/packages/domain-edges/src/edges").EdgeListResult>>;
168
+ traverse(args: {
169
+ startNode: string;
170
+ direction?: string;
171
+ maxDepth?: number;
172
+ topicId?: string;
173
+ projectId?: string;
174
+ }): Promise<GatewayDataEnvelope<import("@/lucern/packages/domain-edges/src/edges").EdgeTraversalResult>>;
175
+ };
176
+ evidence: {
177
+ create(args: {
178
+ text?: string;
179
+ canonicalText?: string;
180
+ topicId?: string;
181
+ projectId?: string;
182
+ source?: string;
183
+ sourceUrl?: string;
184
+ targetId?: string;
185
+ weight?: number;
186
+ metadata?: JsonObject;
187
+ title?: string;
188
+ content?: string;
189
+ contentType?: string;
190
+ kind?: string;
191
+ supports?: {
192
+ nodeId: string;
193
+ weight: number;
194
+ reasoning?: string;
195
+ };
196
+ }): Promise<GatewayDataEnvelope<import("@/lucern/packages/domain-evidence/src/evidence").EvidenceRecord>>;
197
+ add: (args: {
198
+ text?: string;
199
+ canonicalText?: string;
200
+ topicId?: string;
201
+ projectId?: string;
202
+ source?: string;
203
+ sourceUrl?: string;
204
+ targetId?: string;
205
+ weight?: number;
206
+ metadata?: JsonObject;
207
+ title?: string;
208
+ content?: string;
209
+ contentType?: string;
210
+ kind?: string;
211
+ supports?: {
212
+ nodeId: string;
213
+ weight: number;
214
+ reasoning?: string;
215
+ };
216
+ }) => Promise<import("@/lucern/packages/domain-evidence/src/evidence").EvidenceRecord | {
217
+ edgeId: string;
218
+ id: string;
219
+ nodeId: string;
220
+ evidenceId: string;
221
+ globalId?: string;
222
+ topicId?: string;
223
+ text: string;
224
+ title?: string;
225
+ kind?: string;
226
+ source?: string;
227
+ sourceType?: string;
228
+ externalSourceType?: string;
229
+ status?: string;
230
+ relation?: "supports" | "contradicts" | "neutral";
231
+ confidence?: number;
232
+ linkedBeliefId?: string;
233
+ linkedQuestionId?: string;
234
+ createdAt?: number;
235
+ updatedAt?: number;
236
+ metadata?: Record<string, unknown>;
237
+ }>;
238
+ get(evidenceId: string): Promise<GatewayDataEnvelope<import("@/lucern/packages/domain-evidence/src/evidence").EvidenceRecord>>;
239
+ list(args: {
240
+ topicId?: string;
241
+ projectId?: string;
242
+ targetId?: string;
243
+ limit?: number;
244
+ cursor?: string;
245
+ }): Promise<GatewayDataEnvelope<import("@/lucern/packages/domain-evidence/src/evidence").EvidenceListResult>>;
246
+ search(args: {
247
+ q?: string;
248
+ query?: string;
249
+ topicId?: string;
250
+ projectId?: string;
251
+ targetId?: string;
252
+ methodology?: string;
253
+ limit?: number;
254
+ cursor?: string;
255
+ }): Promise<GatewayDataEnvelope<import("@/lucern/packages/domain-evidence/src/evidence").EvidenceSearchPage>>;
256
+ link(args: {
257
+ evidenceId: string;
258
+ targetId?: string;
259
+ beliefId?: string;
260
+ questionId?: string;
261
+ targetType?: "belief" | "question" | string;
262
+ weight?: number;
263
+ rationale?: string;
264
+ }): Promise<GatewayDataEnvelope<import("@/lucern/packages/domain-evidence/src/evidence").LinkEvidenceResult>>;
265
+ linkToBelief(args: {
266
+ evidenceId: string;
267
+ beliefId: string;
268
+ weight: number;
269
+ rationale?: string;
270
+ }): Promise<{
271
+ beliefId: string;
272
+ edgeId: string;
273
+ evidenceId: string;
274
+ targetId: string;
275
+ targetType: import("@/lucern/packages/domain-evidence/src/evidence").EvidenceTargetType;
276
+ weight: number;
277
+ questionId?: string;
278
+ }>;
279
+ };
280
+ questions: {
281
+ create(args: {
282
+ text: string;
283
+ topicId?: string;
284
+ projectId?: string;
285
+ priority?: string;
286
+ linkedBeliefId?: string;
287
+ metadata?: JsonObject;
288
+ }): Promise<GatewayDataEnvelope<import("@/lucern/packages/domain-questions/src/questions").QuestionRecord>>;
289
+ get(questionId: string): Promise<GatewayDataEnvelope<import("@/lucern/packages/domain-questions/src/questions").QuestionRecord>>;
290
+ refine(questionId: string, text: string, refinementReason?: string): Promise<GatewayDataEnvelope<import("@/lucern/packages/domain-questions/src/questions").QuestionRecord & {
291
+ previousText: string;
292
+ updatedText: string;
293
+ }>>;
294
+ list(args: {
295
+ topicId?: string;
296
+ projectId?: string;
297
+ status?: string;
298
+ priority?: string;
299
+ worktreeId?: string;
300
+ limit?: number;
301
+ cursor?: string;
302
+ }): Promise<GatewayDataEnvelope<import("@/lucern/packages/domain-questions/src/questions").QuestionListResult>>;
303
+ updateStatus(questionId: string, status: string, rationale?: string): Promise<GatewayDataEnvelope<import("@/lucern/packages/domain-questions/src/questions").QuestionRecord & {
304
+ previousStatus: string;
305
+ newStatus: string;
306
+ }>>;
307
+ answer(questionId: string, input: {
308
+ text: string;
309
+ confidence?: string;
310
+ evidenceIds?: string[];
311
+ rationale?: string;
312
+ }): Promise<GatewayDataEnvelope<import("@/lucern/packages/domain-questions/src/questions").QuestionAnswerResult>>;
313
+ archive(questionId: string, reason?: string): Promise<GatewayDataEnvelope<import("@/lucern/packages/domain-questions/src/questions").QuestionArchiveResult>>;
314
+ linkEvidence(args: {
315
+ evidenceId: string;
316
+ questionId: string;
317
+ relevance?: number;
318
+ weight?: number;
319
+ rationale?: string;
320
+ }): Promise<{
321
+ questionId: string;
322
+ relevance: number | undefined;
323
+ edgeId: string;
324
+ evidenceId: string;
325
+ targetId: string;
326
+ targetType: import("@/lucern/packages/domain-evidence/src/evidence").EvidenceTargetType;
327
+ weight: number;
328
+ beliefId?: string;
329
+ }>;
330
+ getHighPriority(args: {
331
+ topicId?: string;
332
+ projectId?: string;
333
+ limit?: number;
334
+ includeAnswered?: boolean;
335
+ }): Promise<{
336
+ questions: import("@/lucern/packages/domain-questions/src/questions").QuestionRecord[];
337
+ }>;
338
+ findMissing(args: {
339
+ topicId?: string;
340
+ projectId?: string;
341
+ minConfidence?: number;
342
+ }): Promise<GatewayDataEnvelope<import("@/lucern/packages/domain-graph/src/graph").GraphGapsResult>>;
343
+ };
344
+ graph: {
345
+ createEdge(input: Parameters<(input: import("./graphClient").CreateEdgeInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<PlatformGraphEdge>>>[0]): Promise<PlatformGatewaySuccess<PlatformGraphEdge>>;
346
+ neighborhood(args: Parameters<(query: import("./graphClient").NeighborhoodInput) => Promise<PlatformGatewaySuccess<import("./types").GraphNeighborhoodResponse>>>[0]): Promise<GatewayDataEnvelope<import("@/lucern/packages/domain-graph/src/graph").GraphNeighborhoodResult>>;
347
+ queryLineage: (nodeId: string, depth?: number) => Promise<{
348
+ chain: {
349
+ nodeId: string;
350
+ relation: string;
351
+ }[];
352
+ forkTree: {
353
+ nodeId: string;
354
+ parentCount: number;
355
+ childCount: number;
356
+ children: never[];
357
+ };
358
+ depth: number;
359
+ beliefId: string;
360
+ lineage: import("@/lucern/packages/domain-beliefs/src/beliefs").BeliefLineageEntry[];
361
+ }>;
362
+ getConfidenceHistory: (nodeId: string) => Promise<GatewayDataEnvelope<import("@/lucern/packages/domain-beliefs/src/beliefs").BeliefConfidenceHistoryResult>>;
363
+ getAuditTrail: (nodeId: string, limit?: number) => Promise<{
364
+ entries: {
365
+ action: string;
366
+ actor: string;
367
+ timestamp: number;
368
+ rationale: string;
369
+ before: string | number | boolean | import("./types").JsonArray | JsonObject | null;
370
+ after: string | number | boolean | import("./types").JsonArray | JsonObject | null;
371
+ }[];
372
+ }>;
373
+ traverse(args: {
374
+ startNode: string;
375
+ direction?: string;
376
+ maxDepth?: number;
377
+ topicId?: string;
378
+ projectId?: string;
379
+ }): Promise<GatewayDataEnvelope<import("@/lucern/packages/domain-graph/src/graph").GraphTraverseResult>>;
380
+ analyze(args: {
381
+ topicId?: string;
382
+ projectId?: string;
383
+ limit?: number;
384
+ metric?: string;
385
+ }): Promise<GatewayDataEnvelope<import("@/lucern/packages/domain-graph/src/graph").GraphAnalyzeResult>>;
386
+ bias(args: {
387
+ topicId?: string;
388
+ projectId?: string;
389
+ threshold?: number;
390
+ limit?: number;
391
+ }): Promise<GatewayDataEnvelope<import("@/lucern/packages/domain-graph/src/graph").GraphBiasResult>>;
392
+ gaps(args: {
393
+ topicId?: string;
394
+ projectId?: string;
395
+ minConfidence?: number;
396
+ }): Promise<GatewayDataEnvelope<import("@/lucern/packages/domain-graph/src/graph").GraphGapsResult>>;
397
+ falsify(args: {
398
+ topicId?: string;
399
+ projectId?: string;
400
+ beliefId?: string;
401
+ beliefIds?: string[];
402
+ minConfidence?: number;
403
+ }): Promise<GatewayDataEnvelope<import("@/lucern/packages/domain-graph/src/graph").GraphFalsifyResult>>;
404
+ traceEntityImpact(args: {
405
+ nodeId: string;
406
+ topicId?: string;
407
+ projectId?: string;
408
+ }): Promise<GatewayDataEnvelope<Record<string, unknown>>>;
409
+ searchBeliefs: (args: {
410
+ query: string;
411
+ topicId?: string;
412
+ projectId?: string;
413
+ status?: string;
414
+ minConfidence?: number;
415
+ limit?: number;
416
+ }) => Promise<{
417
+ results: Record<string, unknown>[];
418
+ }>;
419
+ findContradictions: (args: {
420
+ topicId?: string;
421
+ projectId?: string;
422
+ nodeId?: string;
423
+ status?: string;
424
+ }) => Promise<{
425
+ contradictions: {
426
+ beliefA: string;
427
+ beliefB: string;
428
+ description: string;
429
+ severity: string;
430
+ status: string;
431
+ defeatType: string;
432
+ }[];
433
+ }>;
434
+ bisectConfidence: (nodeId: string, args: {
435
+ expectedDirection: "overconfident" | "underconfident";
436
+ }) => Promise<GatewayDataEnvelope<import("@/lucern/packages/domain-beliefs/src/beliefs").BeliefBisectResult>>;
437
+ listBeliefs: (args: {
438
+ topicId?: string;
439
+ projectId?: string;
440
+ worktreeId?: string;
441
+ status?: string;
442
+ minConfidence?: number;
443
+ limit?: number;
444
+ cursor?: string;
445
+ }) => Promise<import("@/lucern/packages/domain-beliefs/src/beliefs").BeliefRecord[]>;
446
+ detectConfirmationBias(topicId: string, threshold?: number, projectId?: string): Promise<{
447
+ topicId: string;
448
+ projectId: string;
449
+ threshold: number;
450
+ success: true;
451
+ data: import("@/lucern/packages/domain-graph/src/graph").GraphBiasResult;
452
+ correlationId: string;
453
+ policyTraceId: string | null;
454
+ idempotentReplay: boolean;
455
+ metric: "confirmation_bias";
456
+ beliefs: import("@/lucern/packages/domain-graph/src/graph").GraphBiasBelief[];
457
+ payload: Record<string, unknown>;
458
+ }>;
459
+ getStructureAnalysis(topicId: string, projectId?: string): Promise<{
460
+ topicId: string;
461
+ projectId: string;
462
+ success: true;
463
+ data: import("@/lucern/packages/domain-graph/src/graph").GraphAnalyzeResult;
464
+ correlationId: string;
465
+ policyTraceId: string | null;
466
+ idempotentReplay: boolean;
467
+ metric: string;
468
+ payload: Record<string, unknown>;
469
+ }>;
470
+ getFalsificationQuestions(topicId: string, beliefIds?: string[], projectId?: string): Promise<{
471
+ topicId: string;
472
+ projectId: string;
473
+ questions: import("@/lucern/packages/domain-graph/src/graph").GraphFalsificationQuestion[];
474
+ }>;
475
+ };
476
+ judgments: {
477
+ create(input: RecordJudgmentInput): Promise<PlatformGatewaySuccess<import("./types").RecordJudgmentResponse>>;
478
+ record(input: RecordJudgmentInput): Promise<PlatformGatewaySuccess<import("./types").RecordJudgmentResponse>>;
479
+ list(query: Parameters<(query: import("./decisionsClient").ListJudgmentsInput) => Promise<PlatformGatewaySuccess<import("./types").ListJudgmentsResponse>>>[0]): Promise<PlatformGatewaySuccess<import("./types").ListJudgmentsResponse>>;
480
+ get(judgmentId: string): Promise<PlatformGatewaySuccess<import("./types").GetJudgmentResponse>>;
481
+ recordOutcome(judgmentId: string, input: Parameters<(judgmentId: string, input: import("./decisionsClient").RecordJudgmentOutcomeInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<import("./types").RecordJudgmentOutcomeResponse>>>[1]): Promise<PlatformGatewaySuccess<import("./types").RecordJudgmentOutcomeResponse>>;
482
+ updateOutcome(judgmentId: string, input: Parameters<(judgmentId: string, input: import("./decisionsClient").RecordJudgmentOutcomeInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<import("./types").RecordJudgmentOutcomeResponse>>>[1]): Promise<PlatformGatewaySuccess<import("./types").RecordJudgmentOutcomeResponse>>;
483
+ readiness(topicId: string, projectId?: string): Promise<PlatformGatewaySuccess<import("./types").JudgmentReadinessResponse>>;
484
+ calibration(topicId: string, projectId?: string): Promise<PlatformGatewaySuccess<import("./types").JudgmentCalibrationResponse>>;
485
+ pendingOutcomeReview(topicId: string, projectId?: string): Promise<PlatformGatewaySuccess<import("./types").ListResult<import("./types").PendingJudgmentOutcomeRecord, "reviews">>>;
486
+ transitionAuditIntegrity(args: {
487
+ topicId?: string;
488
+ projectId?: string;
489
+ judgmentId?: string;
490
+ includePassing?: boolean;
491
+ }): Promise<PlatformGatewaySuccess<import("./types").JudgmentTransitionAuditIntegrityResponse>>;
492
+ };
493
+ worktrees: {
494
+ createBranch(input: Parameters<(input: {
495
+ name: string;
496
+ topicId?: string;
497
+ projectId?: string;
498
+ description?: string;
499
+ metadata?: JsonObject;
500
+ } & import("./types").TopicIdentifierInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<import("./types").WorkflowBranchRecord>>>[0]): Promise<PlatformGatewaySuccess<import("./types").WorkflowBranchRecord>>;
501
+ createLens(input: Parameters<(input: {
502
+ name: string;
503
+ workspaceId?: string;
504
+ topicId?: string;
505
+ projectId?: string;
506
+ description?: string;
507
+ perspectiveType: import("./workflowClient").WorkflowLensPerspectiveType;
508
+ promptTemplates?: import("@/lucern/contracts/lens-workflow.contract").LensPromptTemplateReference[];
509
+ workflowTemplates?: import("@/lucern/contracts/lens-workflow.contract").LensWorkflowTemplate[];
510
+ taskTemplates?: import("@/lucern/contracts/lens-workflow.contract").LensTaskTemplate[];
511
+ filterCriteria?: JsonObject;
512
+ } & import("./types").TopicIdentifierInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<import("./types").WorkflowLensRecord>>>[0]): Promise<PlatformGatewaySuccess<import("./types").WorkflowLensRecord>>;
513
+ listLenses(query: Parameters<(query: {
514
+ workspaceId?: string;
515
+ topicId?: string;
516
+ projectId?: string;
517
+ status?: import("./workflowClient").WorkflowLensStatus;
518
+ perspectiveType?: import("./workflowClient").WorkflowLensPerspectiveType;
519
+ } & import("./types").TopicIdentifierInput) => Promise<PlatformGatewaySuccess<import("./types").ListResult<import("./types").WorkflowLensRecord, "lenses">>>>[0]): Promise<PlatformGatewaySuccess<import("./types").ListResult<import("./types").WorkflowLensRecord, "lenses">>>;
520
+ applyLensToTopic(input: Parameters<(input: {
521
+ lensId: string;
522
+ topicId?: string;
523
+ projectId?: string;
524
+ metadata?: JsonObject;
525
+ } & import("./types").TopicIdentifierInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<import("./types").WorkflowLensBindingRecord>>>[0]): Promise<PlatformGatewaySuccess<import("./types").WorkflowLensBindingRecord>>;
526
+ removeLensFromTopic(input: Parameters<(input: {
527
+ lensId: string;
528
+ topicId?: string;
529
+ projectId?: string;
530
+ } & import("./types").TopicIdentifierInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<import("./types").WorkflowLensBindingRecord>>>[0]): Promise<PlatformGatewaySuccess<import("./types").WorkflowLensBindingRecord>>;
531
+ create(input: AddWorktreeInput): Promise<import("@/lucern/packages/client-core/src/worktrees").WorktreesCreateResponse>;
532
+ add(input: AddWorktreeInput): Promise<import("@/lucern/packages/client-core/src/worktrees").WorktreesCreateResponse>;
533
+ list(query: Parameters<(query: {
534
+ topicId?: string;
535
+ projectId?: string;
536
+ branchId?: string;
537
+ status?: import("./workflowClient").WorkflowWorktreeStatus;
538
+ track?: string;
539
+ executionBand?: number;
540
+ limit?: number;
541
+ } & import("./types").TopicIdentifierInput) => Promise<PlatformGatewaySuccess<import("./types").ListResult<import("./types").WorkflowWorktreeRecord, "worktrees">>>>[0]): Promise<import("@/lucern/packages/client-core/src/worktrees").WorktreesListResponse>;
542
+ activate(worktreeId: string): Promise<import("@/lucern/packages/client-core/src/worktrees").WorktreesActivateResponse>;
543
+ updateMetadata(input: Parameters<(args: JsonObject, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<unknown>>>[0]): Promise<import("@/lucern/packages/client-core/src/worktrees").WorktreesUpdateResponse>;
544
+ update(input: Parameters<(args: JsonObject, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<unknown>>>[0]): Promise<import("@/lucern/packages/client-core/src/worktrees").WorktreesUpdateResponse>;
545
+ updateTargets(input: Parameters<(input: import("./workflowClient").UpdateWorktreeTargetsInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<import("./types").WorkflowWorktreeRecord>>>[0]): Promise<import("@/lucern/packages/client-core/src/worktrees").WorktreesTargetsResponse>;
546
+ listAll(query?: Parameters<(query?: {
547
+ status?: import("./workflowClient").WorkflowWorktreeStatus;
548
+ track?: string;
549
+ executionBand?: number;
550
+ limit?: number;
551
+ }) => Promise<PlatformGatewaySuccess<import("./types").ListWorktreesResponse>>>[0]): Promise<PlatformGatewaySuccess<import("./types").ListWorktreesResponse>>;
552
+ merge(worktreeId: string, input: MergeInput): Promise<import("@/lucern/packages/client-core/src/worktrees").WorktreesMergeResponse>;
553
+ push(worktreeId: string, input: Parameters<(worktreeId: string, input: {
554
+ targetContext: string;
555
+ beliefIds?: string[];
556
+ metadata?: JsonObject;
557
+ }, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<import("./types").PushWorktreeResponse>>>[1]): Promise<PlatformGatewaySuccess<import("./types").PushWorktreeResponse>>;
558
+ openPullRequest(worktreeId: string, input: Parameters<(worktreeId: string, input: {
559
+ summary: string;
560
+ reviewers?: string[];
561
+ status?: "pending_review" | "changes_requested" | "approved" | "blocked";
562
+ }, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<import("./types").OpenPullRequestResponse>>>[1]): Promise<PlatformGatewaySuccess<import("./types").OpenPullRequestResponse>>;
563
+ pipelineSnapshot(topicId: string): Promise<PlatformGatewaySuccess<unknown>>;
564
+ };
565
+ context: {
566
+ listTopics(query?: Parameters<(query?: import("./topicsClient").TopicListInput) => Promise<PlatformGatewaySuccess<import("./types").TopicListResponse>>>[0]): Promise<import("@/lucern/packages/client-core/src/topics").TopicsListResponse>;
567
+ compile(topicId: string, input?: Parameters<(topicId: string, input?: import("@/lucern/packages/client-core/src/context").CompileContextInput) => Promise<PlatformGatewaySuccess<import("@/lucern/contracts/context-pack.contract").PublicCompiledContext>>>[1]): Promise<PlatformGatewaySuccess<import("@/lucern/contracts/context-pack.contract").PublicCompiledContext>>;
568
+ recordScopeLearning(input: Parameters<(args: JsonObject, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<unknown>>>[0]): Promise<PlatformGatewaySuccess<unknown>>;
569
+ discover(input: Parameters<(args: JsonObject) => Promise<PlatformGatewaySuccess<unknown>>>[0]): Promise<GatewayDataEnvelope<Record<string, unknown>>>;
570
+ analyzeTopicDensity(input: Parameters<(args: JsonObject) => Promise<PlatformGatewaySuccess<unknown>>>[0]): Promise<PlatformGatewaySuccess<unknown>>;
571
+ applyAutoBranching(input: Parameters<(args: JsonObject, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<unknown>>>[0]): Promise<PlatformGatewaySuccess<unknown>>;
572
+ seedBeliefLattice(input?: Parameters<(args?: JsonObject, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<unknown>>>[0]): Promise<PlatformGatewaySuccess<unknown>>;
573
+ getLatticeCoverage(input?: Parameters<(args?: JsonObject) => Promise<PlatformGatewaySuccess<unknown>>>[0]): Promise<PlatformGatewaySuccess<unknown>>;
574
+ matchEntityType(input: Parameters<(args: JsonObject) => Promise<PlatformGatewaySuccess<unknown>>>[0]): Promise<GatewayDataEnvelope<import("@/lucern/packages/domain-ontologies/src/ontologies").OntologyMatchResult>>;
575
+ discoverEntityConnections(input: Parameters<(args: JsonObject) => Promise<PlatformGatewaySuccess<unknown>>>[0]): Promise<GatewayDataEnvelope<Record<string, unknown>>>;
576
+ triggerBeliefReview(input: Parameters<(args: JsonObject, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<unknown>>>[0]): Promise<GatewayDataEnvelope<Record<string, unknown>>>;
577
+ };
578
+ tasks: {
579
+ create(input: CreateTaskInput): Promise<import("@/lucern/packages/client-core/src/tasks").TasksCreateResponse>;
580
+ complete(taskId: string, input: CompleteTaskInput): Promise<import("@/lucern/packages/client-core/src/tasks").TasksCompleteResponse>;
581
+ update(taskId: string, input: UpdateTaskInput): Promise<import("@/lucern/packages/client-core/src/tasks").TasksUpdateResponse>;
582
+ list(input: Parameters<(args: JsonObject) => Promise<PlatformGatewaySuccess<unknown>>>[0]): Promise<import("@/lucern/packages/client-core/src/tasks").TasksListResponse>;
583
+ };
584
+ topics: {
585
+ list(input?: Parameters<(query?: import("./topicsClient").TopicListInput) => Promise<PlatformGatewaySuccess<import("./types").TopicListResponse>>>[0]): Promise<import("@/lucern/packages/client-core/src/topics").TopicsListResponse>;
586
+ get(topicId: string): Promise<import("@/lucern/packages/client-core/src/topics").TopicsGetResponse>;
587
+ create(input: Parameters<(input: import("./topicsClient").TopicCreateInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<import("./types").TopicRecord>>>[0]): Promise<import("@/lucern/packages/client-core/src/topics").TopicsCreateResponse>;
588
+ update(topicId: string, input: Parameters<(topicId: string, input: import("./topicsClient").TopicUpdateInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<import("./types").TopicRecord>>>[1]): Promise<import("@/lucern/packages/client-core/src/topics").TopicsUpdateResponse>;
589
+ tree(topicId: string, query?: Parameters<(topicId: string, query?: import("./topicsClient").TopicTreeQuery) => Promise<PlatformGatewaySuccess<import("./types").TopicTreeResponse>>>[1]): Promise<import("@/lucern/packages/client-core/src/topics").TopicsTreeResponse>;
590
+ getTree(input: {
591
+ rootId: string;
592
+ maxDepth?: number;
593
+ }): Promise<import("@/lucern/packages/client-core/src/topics").TopicsTreeResponse>;
594
+ coverage(topicId: string, query?: Parameters<(topicId: string, query?: import("./topicsClient").TopicCoverageQuery) => Promise<PlatformGatewaySuccess<import("./types").TopicCoverageResponse>>>[1]): Promise<import("@/lucern/packages/client-core/src/topics").TopicsCoverageResponse>;
595
+ };
596
+ answers: {
597
+ create(input: Parameters<(args: JsonObject, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<unknown>>>[0]): Promise<import("@/lucern/packages/client-core/src/questions").QuestionsAnswerResponse>;
598
+ get(input: Parameters<(args: JsonObject) => Promise<PlatformGatewaySuccess<unknown>>>[0]): Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
599
+ };
600
+ contradictions: {
601
+ flag(args: {
602
+ beliefA: string;
603
+ beliefB: string;
604
+ description: string;
605
+ topicId?: string;
606
+ projectId?: string;
607
+ severity?: string;
608
+ defeatType?: string;
609
+ }): Promise<GatewayDataEnvelope<import("@/lucern/packages/domain-edges/src/contradictions").ContradictionRecord>>;
610
+ list(args: {
611
+ topicId?: string;
612
+ projectId?: string;
613
+ status?: string;
614
+ limit?: number;
615
+ cursor?: string;
616
+ }): Promise<GatewayDataEnvelope<import("@/lucern/packages/domain-edges/src/contradictions").ContradictionListResult>>;
617
+ get(contradictionId: string): Promise<GatewayDataEnvelope<import("@/lucern/packages/domain-edges/src/contradictions").ContradictionRecord>>;
618
+ find: (args: {
619
+ topicId?: string;
620
+ projectId?: string;
621
+ nodeId?: string;
622
+ status?: string;
623
+ }) => Promise<{
624
+ contradictions: {
625
+ beliefA: string;
626
+ beliefB: string;
627
+ description: string;
628
+ severity: string;
629
+ status: string;
630
+ defeatType: string;
631
+ }[];
632
+ }>;
633
+ };
634
+ ontologies: {
635
+ list(input?: {
636
+ tenantId?: string;
637
+ tier?: string;
638
+ status?: string;
639
+ }): Promise<GatewayDataEnvelope<import("@/lucern/packages/domain-ontologies/src/ontologies").OntologyListResult>>;
640
+ get(ontologyId: string): Promise<GatewayDataEnvelope<import("@/lucern/packages/domain-ontologies/src/ontologies").OntologyRecord>>;
641
+ bind(input: Parameters<(input: Parameters<(input: import("@/lucern/packages/domain-ontologies/src/ontologies").BindOntologyInput, idempotencyKey?: string) => Promise<import("@/lucern/packages/client-core/src/ontologies").OntologiesBindResponse>>[0], idempotencyKey?: Parameters<(input: import("@/lucern/packages/domain-ontologies/src/ontologies").BindOntologyInput, idempotencyKey?: string) => Promise<import("@/lucern/packages/client-core/src/ontologies").OntologiesBindResponse>>[1]) => Promise<import("@/lucern/packages/client-core/src/ontologies").OntologiesBindResponse>>[0], idempotencyKey?: Parameters<(input: Parameters<(input: import("@/lucern/packages/domain-ontologies/src/ontologies").BindOntologyInput, idempotencyKey?: string) => Promise<import("@/lucern/packages/client-core/src/ontologies").OntologiesBindResponse>>[0], idempotencyKey?: Parameters<(input: import("@/lucern/packages/domain-ontologies/src/ontologies").BindOntologyInput, idempotencyKey?: string) => Promise<import("@/lucern/packages/client-core/src/ontologies").OntologiesBindResponse>>[1]) => Promise<import("@/lucern/packages/client-core/src/ontologies").OntologiesBindResponse>>[1]): Promise<GatewayDataEnvelope<import("@/lucern/packages/domain-ontologies/src/ontologies").OntologyBindingResult>>;
642
+ match(input: Parameters<(input: Parameters<(input: import("@/lucern/packages/domain-ontologies/src/ontologies").OntologyMatchInput, idempotencyKey?: string) => Promise<import("@/lucern/packages/client-core/src/ontologies").OntologiesMatchResponse>>[0], idempotencyKey?: Parameters<(input: import("@/lucern/packages/domain-ontologies/src/ontologies").OntologyMatchInput, idempotencyKey?: string) => Promise<import("@/lucern/packages/client-core/src/ontologies").OntologiesMatchResponse>>[1]) => Promise<import("@/lucern/packages/client-core/src/ontologies").OntologiesMatchResponse>>[0], idempotencyKey?: Parameters<(input: Parameters<(input: import("@/lucern/packages/domain-ontologies/src/ontologies").OntologyMatchInput, idempotencyKey?: string) => Promise<import("@/lucern/packages/client-core/src/ontologies").OntologiesMatchResponse>>[0], idempotencyKey?: Parameters<(input: import("@/lucern/packages/domain-ontologies/src/ontologies").OntologyMatchInput, idempotencyKey?: string) => Promise<import("@/lucern/packages/client-core/src/ontologies").OntologiesMatchResponse>>[1]) => Promise<import("@/lucern/packages/client-core/src/ontologies").OntologiesMatchResponse>>[1]): Promise<GatewayDataEnvelope<import("@/lucern/packages/domain-ontologies/src/ontologies").OntologyMatchResult>>;
643
+ create(input: Parameters<(args: JsonObject, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<unknown>>>[0]): Promise<PlatformGatewaySuccess<Record<string, unknown>> & Record<string, unknown>>;
644
+ update(input: Parameters<(args: JsonObject, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<unknown>>>[0]): Promise<PlatformGatewaySuccess<Record<string, unknown>> & Record<string, unknown>>;
645
+ archive(input: Parameters<(args: JsonObject, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<unknown>>>[0]): Promise<PlatformGatewaySuccess<Record<string, unknown>> & Record<string, unknown>>;
646
+ createVersion(input: Parameters<(args: JsonObject, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<unknown>>>[0]): Promise<PlatformGatewaySuccess<Record<string, unknown>> & Record<string, unknown>>;
647
+ publishVersion(input: Parameters<(args: JsonObject, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<unknown>>>[0]): Promise<GatewayDataEnvelope<Record<string, unknown>>>;
648
+ deprecateVersion(input: Parameters<(args: JsonObject, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<unknown>>>[0]): Promise<GatewayDataEnvelope<Record<string, unknown>>>;
649
+ resolveEffective(input: Parameters<(args: JsonObject) => Promise<PlatformGatewaySuccess<unknown>>>[0]): Promise<GatewayDataEnvelope<Record<string, unknown>>>;
650
+ raw: {
651
+ list(filters?: import("./coreClient").GatewayScope & {
652
+ tenantId?: string;
653
+ tier?: string;
654
+ status?: string;
655
+ }): Promise<PlatformGatewaySuccess<{
656
+ ontologies: any[];
657
+ total: number;
658
+ items: any[];
659
+ definitions: any[];
660
+ }>>;
661
+ get(id: string): Promise<PlatformGatewaySuccess<unknown>>;
662
+ bind(input: import("./ontologyClient").OntologyBindingInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
663
+ listDefinitions(filters?: import("./coreClient").GatewayScope & {
664
+ tenantId?: string;
665
+ tier?: string;
666
+ status?: string;
667
+ }): Promise<PlatformGatewaySuccess<{
668
+ ontologies: any[];
669
+ total: number;
670
+ items: any[];
671
+ definitions: any[];
672
+ }>>;
673
+ getDefinition(id: string): Promise<PlatformGatewaySuccess<unknown>>;
674
+ createDefinition(input: import("./ontologyClient").OntologyDefinitionInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
675
+ updateDefinition(id: string, input: import("./ontologyClient").OntologyDefinitionUpdateInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
676
+ archiveDefinition(id: string, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
677
+ listVersions(ontologyId: string, filters?: import("./coreClient").GatewayScope & {
678
+ status?: string;
679
+ }): Promise<PlatformGatewaySuccess<import("./types").ListResult<any, "versions">>>;
680
+ createVersion(ontologyId: string, input: import("./ontologyClient").OntologyVersionInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
681
+ publishVersion(ontologyId: string, versionId: string, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
682
+ deprecateVersion(ontologyId: string, versionId: string, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
683
+ listTopics(ontologyId: string): Promise<PlatformGatewaySuccess<import("./types").ListResult<any, "topics">>>;
684
+ listTopicsByOntology(ontologyId: string): Promise<PlatformGatewaySuccess<import("./types").ListResult<any, "topics">>>;
685
+ };
686
+ };
687
+ coordination: {
688
+ registerSession(input?: Parameters<(args?: JsonObject, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<unknown>>>[0]): Promise<PlatformGatewaySuccess<unknown>>;
689
+ heartbeatSession(input?: Parameters<(args?: JsonObject, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<unknown>>>[0]): Promise<PlatformGatewaySuccess<unknown>>;
690
+ endSession(input?: Parameters<(args?: JsonObject, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<unknown>>>[0]): Promise<PlatformGatewaySuccess<unknown>>;
691
+ listActiveSessions(input?: Parameters<(args?: JsonObject) => Promise<PlatformGatewaySuccess<unknown>>>[0]): Promise<PlatformGatewaySuccess<unknown>>;
692
+ sendAgentMessage(input: Parameters<(args: JsonObject, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<unknown>>>[0]): Promise<PlatformGatewaySuccess<unknown>>;
693
+ broadcastMessage(input: Parameters<(args: JsonObject, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<unknown>>>[0]): Promise<PlatformGatewaySuccess<unknown>>;
694
+ getInbox(input?: Parameters<(args?: JsonObject) => Promise<PlatformGatewaySuccess<unknown>>>[0]): Promise<PlatformGatewaySuccess<unknown>>;
695
+ claimFiles(input: Parameters<(args: JsonObject, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<unknown>>>[0]): Promise<PlatformGatewaySuccess<unknown>>;
696
+ };
697
+ policy: {
698
+ checkPermission(input: Parameters<(args: JsonObject) => Promise<PlatformGatewaySuccess<unknown>>>[0]): Promise<PlatformGatewaySuccess<import("./policyClient").PermissionDecision>>;
699
+ listAccessibleTopics(input?: Parameters<(query?: import("./coreClient").GatewayScope & {
700
+ permission?: import("./policyClient").PermissionKind;
701
+ includeShared?: boolean;
702
+ principal?: string;
703
+ principalId?: string;
704
+ limit?: number;
705
+ }) => Promise<{
706
+ data: {
707
+ permission: import("./policyClient").PermissionKind;
708
+ topics: {
709
+ [key: string]: unknown;
710
+ topicId?: string;
711
+ name?: string;
712
+ type?: string;
713
+ isOwner?: boolean;
714
+ }[];
715
+ total: number;
716
+ deniedTopics: {
717
+ topicId: string;
718
+ reasonCode: string;
719
+ }[];
720
+ };
721
+ success: true;
722
+ correlationId: string;
723
+ policyTraceId: string | null;
724
+ idempotentReplay: boolean;
725
+ }>>[0]): Promise<{
726
+ data: {
727
+ permission: import("./policyClient").PermissionKind;
728
+ topics: {
729
+ [key: string]: unknown;
730
+ topicId?: string;
731
+ name?: string;
732
+ type?: string;
733
+ isOwner?: boolean;
734
+ }[];
735
+ total: number;
736
+ deniedTopics: {
737
+ topicId: string;
738
+ reasonCode: string;
739
+ }[];
740
+ };
741
+ success: true;
742
+ correlationId: string;
743
+ policyTraceId: string | null;
744
+ idempotentReplay: boolean;
745
+ }>;
746
+ filterByPermission(input: Parameters<(args: JsonObject) => Promise<PlatformGatewaySuccess<unknown>>>[0]): Promise<{
747
+ success: boolean;
748
+ data: {
749
+ permission: import("./policyClient").PermissionKind;
750
+ allowedTopicIds: string[];
751
+ deniedTopics: {
752
+ topicId: string;
753
+ reasonCode: string;
754
+ }[];
755
+ count: number;
756
+ };
757
+ }>;
758
+ manageWritePolicy(input: Parameters<(args: JsonObject, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<unknown>>>[0]): Promise<PlatformGatewaySuccess<unknown>>;
759
+ raw: {
760
+ listDecisions(query?: import("./coreClient").GatewayScope & {
761
+ action?: string;
762
+ decision?: string;
763
+ traceId?: string;
764
+ principalId?: string;
765
+ topicId?: string;
766
+ limit?: number;
767
+ }): Promise<PlatformGatewaySuccess<import("./types").ListResult<any, "decisions">>>;
768
+ grant(input: import("./coreClient").GatewayScope & {
769
+ topicId: string;
770
+ permission: import("./policyClient").PermissionKind;
771
+ principal?: string;
772
+ principalId?: string;
773
+ groupId?: string;
774
+ beliefClusterId?: string;
775
+ expiresAt?: number;
776
+ }, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
777
+ revoke(input: import("./coreClient").GatewayScope & {
778
+ topicId: string;
779
+ principal?: string;
780
+ principalId?: string;
781
+ groupId?: string;
782
+ beliefClusterId?: string;
783
+ }, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
784
+ listWritePolicies(query?: import("./coreClient").GatewayScope & {
785
+ topicId?: string;
786
+ role?: string;
787
+ toolCategory?: string;
788
+ enabled?: boolean;
789
+ }): Promise<{
790
+ data: {
791
+ policies: import("./policyClient").WritePolicyRecord[];
792
+ };
793
+ success: true;
794
+ correlationId: string;
795
+ policyTraceId: string | null;
796
+ idempotentReplay: boolean;
797
+ }>;
798
+ createWritePolicy(input: import("./policyClient").WritePolicyCreateInput, idempotencyKey?: string): Promise<{
799
+ data: {
800
+ id: string | undefined;
801
+ created: boolean;
802
+ policy: import("./policyClient").WritePolicyRecord | null;
803
+ };
804
+ success: true;
805
+ correlationId: string;
806
+ policyTraceId: string | null;
807
+ idempotentReplay: boolean;
808
+ }>;
809
+ updateWritePolicy(id: string, input: import("./policyClient").WritePolicyUpdateInput, idempotencyKey?: string): Promise<{
810
+ data: {
811
+ id: string | undefined;
812
+ updated: boolean;
813
+ policy: import("./policyClient").WritePolicyRecord | null;
814
+ };
815
+ success: true;
816
+ correlationId: string;
817
+ policyTraceId: string | null;
818
+ idempotentReplay: boolean;
819
+ }>;
820
+ deleteWritePolicy(id: string, scope?: import("./coreClient").GatewayScope, idempotencyKey?: string): Promise<PlatformGatewaySuccess<{
821
+ id?: string;
822
+ deleted?: boolean;
823
+ }>>;
824
+ checkPermission(query: import("./coreClient").GatewayScope & {
825
+ topicId?: string;
826
+ permission?: import("./policyClient").PermissionKind;
827
+ principal?: string;
828
+ principalId?: string;
829
+ beliefClusterId?: string;
830
+ }): Promise<PlatformGatewaySuccess<import("./policyClient").PermissionDecision>>;
831
+ listAccessibleTopics(query?: import("./coreClient").GatewayScope & {
832
+ permission?: import("./policyClient").PermissionKind;
833
+ includeShared?: boolean;
834
+ principal?: string;
835
+ principalId?: string;
836
+ limit?: number;
837
+ }): Promise<{
838
+ data: {
839
+ permission: import("./policyClient").PermissionKind;
840
+ topics: {
841
+ [key: string]: unknown;
842
+ topicId?: string;
843
+ name?: string;
844
+ type?: string;
845
+ isOwner?: boolean;
846
+ }[];
847
+ total: number;
848
+ deniedTopics: {
849
+ topicId: string;
850
+ reasonCode: string;
851
+ }[];
852
+ };
853
+ success: true;
854
+ correlationId: string;
855
+ policyTraceId: string | null;
856
+ idempotentReplay: boolean;
857
+ }>;
858
+ filterByPermission(input: import("./coreClient").GatewayScope & {
859
+ topicIds?: string[];
860
+ permission?: import("./policyClient").PermissionKind;
861
+ principal?: string;
862
+ principalId?: string;
863
+ }): Promise<{
864
+ success: boolean;
865
+ data: {
866
+ permission: import("./policyClient").PermissionKind;
867
+ allowedTopicIds: string[];
868
+ deniedTopics: {
869
+ topicId: string;
870
+ reasonCode: string;
871
+ }[];
872
+ count: number;
873
+ };
874
+ }>;
875
+ };
876
+ };
877
+ observations: {
878
+ ingest(input: Parameters<(args: JsonObject, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<unknown>>>[0]): Promise<PlatformGatewaySuccess<unknown>>;
879
+ getContext(input: Parameters<(args: JsonObject) => Promise<PlatformGatewaySuccess<unknown>>>[0]): Promise<PlatformGatewaySuccess<unknown>>;
880
+ };
881
+ coding: {
882
+ getCodeContext(input: Parameters<(args: JsonObject) => Promise<PlatformGatewaySuccess<unknown>>>[0]): Promise<PlatformGatewaySuccess<unknown>>;
883
+ getChangeHistory(input: Parameters<(args: JsonObject) => Promise<PlatformGatewaySuccess<unknown>>>[0]): Promise<PlatformGatewaySuccess<unknown>>;
884
+ recordAttempt(input: Parameters<(args: JsonObject, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<unknown>>>[0]): Promise<PlatformGatewaySuccess<unknown>>;
885
+ getFailureLog(input: Parameters<(args: JsonObject) => Promise<PlatformGatewaySuccess<unknown>>>[0]): Promise<PlatformGatewaySuccess<unknown>>;
886
+ };
887
+ contracts: {
888
+ create(input: Parameters<(args: JsonObject, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<unknown>>>[0]): Promise<GatewayDataEnvelope<Record<string, unknown>>>;
889
+ evaluate(input: Parameters<(args: JsonObject, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<unknown>>>[0]): Promise<GatewayDataEnvelope<Record<string, unknown>>>;
890
+ getStatus(input: Parameters<(args: JsonObject) => Promise<PlatformGatewaySuccess<unknown>>>[0]): Promise<GatewayDataEnvelope<Record<string, unknown>>>;
891
+ };
892
+ bootstrap: {
893
+ generateSessionHandoff(input: Parameters<(args: JsonObject) => Promise<PlatformGatewaySuccess<unknown>>>[0]): Promise<PlatformGatewaySuccess<unknown>>;
894
+ };
895
+ research: {
896
+ searchSources(args: {
897
+ query: string;
898
+ topicId?: string;
899
+ projectId?: string;
900
+ sources?: string[];
901
+ }): Promise<{
902
+ results: {
903
+ title: string;
904
+ url: string;
905
+ snippet: string;
906
+ relevanceScore: number;
907
+ suggestedEvidence: string;
908
+ }[];
909
+ }>;
910
+ executeDeepResearch(args: {
911
+ query: string;
912
+ topicId?: string;
913
+ projectId?: string;
914
+ depth?: "quick" | "standard" | "deep";
915
+ }): Promise<{
916
+ report: {
917
+ summary: string;
918
+ findings: {
919
+ title: string;
920
+ summary: string;
921
+ sourceUrl: string;
922
+ }[];
923
+ sources: {
924
+ title: string;
925
+ url: string;
926
+ }[];
927
+ linkedEvidence: never[];
928
+ linkedQuestions: never[];
929
+ };
930
+ }>;
931
+ };
932
+ tools: {
933
+ register(registration: CustomToolRegistration): import("./customTools").RegisteredCustomTool;
934
+ unregister(fullName: string): boolean;
935
+ list(): import("./customTools").RegisteredCustomTool[];
936
+ clear(): void;
937
+ invoke(name: string, input?: CustomToolInput): Promise<unknown>;
938
+ namespace(namespace: string): CustomToolNamespace;
939
+ };
940
+ packs: {
941
+ /**
942
+ * Ensure the configured packKey is installed.
943
+ * No-op if no packKey was provided or if the pack is already installed.
944
+ * Called automatically on first API use when packKey is set.
945
+ */
946
+ ensurePack: () => Promise<void>;
947
+ /**
948
+ * Check if the configured pack has been installed in this session.
949
+ */
950
+ readonly isInstalled: boolean;
951
+ listCatalog(): Promise<PlatformGatewaySuccess<import("./types").ListResult<any, "catalog">>>;
952
+ catalog(): Promise<PlatformGatewaySuccess<import("./types").ListResult<any, "catalog">>>;
953
+ listStates(scope?: Parameters<(query?: import("./coreClient").GatewayScope) => Promise<PlatformGatewaySuccess<import("./types").ListResult<any, "states">>>>[0]): Promise<PlatformGatewaySuccess<import("./types").ListResult<any, "states">>>;
954
+ states(scope?: Parameters<(query?: import("./coreClient").GatewayScope) => Promise<PlatformGatewaySuccess<import("./types").ListResult<any, "states">>>>[0]): Promise<PlatformGatewaySuccess<import("./types").ListResult<any, "states">>>;
955
+ install(input: Parameters<(input: import("./packsClient").PackInstallInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<unknown>>>[0]): Promise<PlatformGatewaySuccess<unknown>>;
956
+ enable(input: Parameters<(input: import("./packsClient").PackEnableInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<unknown>>>[0]): Promise<PlatformGatewaySuccess<unknown>>;
957
+ disable(input: Parameters<(input: import("./packsClient").PackDisableInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<unknown>>>[0]): Promise<PlatformGatewaySuccess<unknown>>;
958
+ };
959
+ identity: {
960
+ whoami(): Promise<import("@/lucern/packages/client-core/src/identity").IdentityWhoamiResponse>;
961
+ };
962
+ custom: CustomToolNamespace;
963
+ extensions: Record<string, CustomToolNamespace>;
964
+ raw: {
965
+ beliefs: {
966
+ createBelief(input: import("./beliefsClient").CreateBeliefInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<import("./types").PlatformBeliefRecord>>;
967
+ modulateConfidence(beliefId: string, input: import("./beliefsClient").ModulateConfidenceInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<import("./types").ModulateConfidenceResponse>>;
968
+ forkBelief(beliefId: string, input: import("./beliefsClient").ForkBeliefInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<import("./types").ForkBeliefResponse>>;
969
+ };
970
+ graph: {
971
+ listNodes(query: import("./graphClient").ListNodesInput): Promise<PlatformGatewaySuccess<import("./types").ListResult<PlatformGraphNode, "nodes">>>;
972
+ queryNodes(query: import("./graphClient").QueryNodesInput): Promise<PlatformGatewaySuccess<import("./types").ListResult<PlatformGraphNode, "nodes">>>;
973
+ createNode(input: import("./graphClient").CreateNodeInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<PlatformGraphNode>>;
974
+ updateNode(input: import("./graphClient").UpdateNodeInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<PlatformGraphNode>>;
975
+ listEdges(query: import("./graphClient").ListEdgesInput): Promise<PlatformGatewaySuccess<import("./types").ListResult<PlatformGraphEdge, "edges">>>;
976
+ queryEdges(query: import("./graphClient").QueryEdgesInput): Promise<PlatformGatewaySuccess<import("./types").ListResult<PlatformGraphEdge, "edges">>>;
977
+ createEdge(input: import("./graphClient").CreateEdgeInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<PlatformGraphEdge>>;
978
+ deleteEdge(query: import("./graphClient").DeleteEdgeInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<import("./types").DeleteEdgeResponse>>;
979
+ neighborhood(query: import("./graphClient").NeighborhoodInput): Promise<PlatformGatewaySuccess<import("./types").GraphNeighborhoodResponse>>;
980
+ traverse(query: import("./graphClient").TraverseInput): Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
981
+ analyze(query?: import("./graphClient").AnalyzeInput): Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
982
+ bias(query?: import("./graphClient").BiasInput): Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
983
+ gaps(query: import("./graphClient").GapsInput): Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
984
+ search(query: import("./graphClient").SearchInput): Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
985
+ getNeighborhood(query: import("./graphClient").NeighborhoodInput): Promise<PlatformGatewaySuccess<import("./types").GraphNeighborhoodResponse>>;
986
+ getPath(query: import("./graphClient").PathInput): Promise<PlatformGatewaySuccess<import("./types").GraphPathResponse>>;
987
+ getAnalytics(query?: import("./graphClient").AnalyticsInput): Promise<PlatformGatewaySuccess<import("./types").GraphAnalyticsResponse>>;
988
+ };
989
+ decisions: {
990
+ listJudgments(query: import("./decisionsClient").ListJudgmentsInput): Promise<PlatformGatewaySuccess<import("./types").ListJudgmentsResponse>>;
991
+ getJudgment(judgmentId: string): Promise<PlatformGatewaySuccess<import("./types").GetJudgmentResponse>>;
992
+ getJudgmentReadiness(query: {
993
+ topicId?: string;
994
+ projectId?: string;
995
+ } & import("./types").TopicIdentifierInput): Promise<PlatformGatewaySuccess<import("./types").JudgmentReadinessResponse>>;
996
+ getJudgmentCalibration(query: import("./decisionsClient").GetJudgmentCalibrationInput): Promise<PlatformGatewaySuccess<import("./types").JudgmentCalibrationResponse>>;
997
+ listPendingOutcomeReviews(query: import("./decisionsClient").ListPendingJudgmentOutcomeReviewInput): Promise<PlatformGatewaySuccess<import("./types").ListResult<import("./types").PendingJudgmentOutcomeRecord, "reviews">>>;
998
+ listPendingJudgmentOutcomeReview(query: import("./decisionsClient").ListPendingJudgmentOutcomeReviewInput): Promise<PlatformGatewaySuccess<import("./types").ListResult<import("./types").PendingJudgmentOutcomeRecord, "reviews">>>;
999
+ getJudgmentTransitionAuditIntegrity(query: import("./decisionsClient").GetJudgmentTransitionAuditIntegrityInput): Promise<PlatformGatewaySuccess<import("./types").JudgmentTransitionAuditIntegrityResponse>>;
1000
+ createJudgment(input: RecordJudgmentInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<import("./types").RecordJudgmentResponse>>;
1001
+ recordJudgment(input: RecordJudgmentInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<import("./types").RecordJudgmentResponse>>;
1002
+ updateJudgmentOutcome(judgmentId: string, input: import("./decisionsClient").RecordJudgmentOutcomeInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<import("./types").RecordJudgmentOutcomeResponse>>;
1003
+ recordJudgmentOutcome(judgmentId: string, input: import("./decisionsClient").RecordJudgmentOutcomeInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<import("./types").RecordJudgmentOutcomeResponse>>;
1004
+ };
1005
+ workflow: {
1006
+ listBranches(query: {
1007
+ topicId?: string;
1008
+ projectId?: string;
1009
+ status?: import("./workflowClient").WorkflowBranchStatus;
1010
+ limit?: number;
1011
+ } & import("./types").TopicIdentifierInput): Promise<PlatformGatewaySuccess<import("./types").ListResult<import("./types").WorkflowBranchRecord, "branches">>>;
1012
+ createBranch(input: {
1013
+ name: string;
1014
+ topicId?: string;
1015
+ projectId?: string;
1016
+ description?: string;
1017
+ metadata?: JsonObject;
1018
+ } & import("./types").TopicIdentifierInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<import("./types").WorkflowBranchRecord>>;
1019
+ listLenses(query: {
1020
+ workspaceId?: string;
1021
+ topicId?: string;
1022
+ projectId?: string;
1023
+ status?: import("./workflowClient").WorkflowLensStatus;
1024
+ perspectiveType?: import("./workflowClient").WorkflowLensPerspectiveType;
1025
+ } & import("./types").TopicIdentifierInput): Promise<PlatformGatewaySuccess<import("./types").ListResult<import("./types").WorkflowLensRecord, "lenses">>>;
1026
+ createLens(input: {
1027
+ name: string;
1028
+ workspaceId?: string;
1029
+ topicId?: string;
1030
+ projectId?: string;
1031
+ description?: string;
1032
+ perspectiveType: import("./workflowClient").WorkflowLensPerspectiveType;
1033
+ promptTemplates?: import("@/lucern/contracts/lens-workflow.contract").LensPromptTemplateReference[];
1034
+ workflowTemplates?: import("@/lucern/contracts/lens-workflow.contract").LensWorkflowTemplate[];
1035
+ taskTemplates?: import("@/lucern/contracts/lens-workflow.contract").LensTaskTemplate[];
1036
+ filterCriteria?: JsonObject;
1037
+ } & import("./types").TopicIdentifierInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<import("./types").WorkflowLensRecord>>;
1038
+ applyLensToTopic(input: {
1039
+ lensId: string;
1040
+ topicId?: string;
1041
+ projectId?: string;
1042
+ metadata?: JsonObject;
1043
+ } & import("./types").TopicIdentifierInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<import("./types").WorkflowLensBindingRecord>>;
1044
+ removeLensFromTopic(input: {
1045
+ lensId: string;
1046
+ topicId?: string;
1047
+ projectId?: string;
1048
+ } & import("./types").TopicIdentifierInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<import("./types").WorkflowLensBindingRecord>>;
1049
+ listWorktrees(query: {
1050
+ topicId?: string;
1051
+ projectId?: string;
1052
+ branchId?: string;
1053
+ status?: import("./workflowClient").WorkflowWorktreeStatus;
1054
+ track?: string;
1055
+ executionBand?: number;
1056
+ limit?: number;
1057
+ } & import("./types").TopicIdentifierInput): Promise<PlatformGatewaySuccess<import("./types").ListResult<import("./types").WorkflowWorktreeRecord, "worktrees">>>;
1058
+ listAllWorktrees(query?: {
1059
+ status?: import("./workflowClient").WorkflowWorktreeStatus;
1060
+ track?: string;
1061
+ executionBand?: number;
1062
+ limit?: number;
1063
+ }): Promise<PlatformGatewaySuccess<import("./types").ListWorktreesResponse>>;
1064
+ createWorktree(input: AddWorktreeInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<import("./types").WorkflowWorktreeRecord>>;
1065
+ addWorktree(input: AddWorktreeInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<import("./types").WorkflowWorktreeRecord>>;
1066
+ merge(worktreeId: string, input: MergeInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<import("./types").MergeWorktreeResponse>>;
1067
+ activateWorktree(worktreeId: string, idempotencyKey?: string): Promise<PlatformGatewaySuccess<import("./types").WorkflowWorktreeRecord>>;
1068
+ updateWorktreeTargets(input: import("./workflowClient").UpdateWorktreeTargetsInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<import("./types").WorkflowWorktreeRecord>>;
1069
+ openPullRequest(worktreeId: string, input: {
1070
+ summary: string;
1071
+ reviewers?: string[];
1072
+ status?: "pending_review" | "changes_requested" | "approved" | "blocked";
1073
+ }, idempotencyKey?: string): Promise<PlatformGatewaySuccess<import("./types").OpenPullRequestResponse>>;
1074
+ push(worktreeId: string, input: {
1075
+ targetContext: string;
1076
+ beliefIds?: string[];
1077
+ metadata?: JsonObject;
1078
+ }, idempotencyKey?: string): Promise<PlatformGatewaySuccess<import("./types").PushWorktreeResponse>>;
1079
+ listTopics(query?: import("./workflowClient").ListTopicsInput): Promise<PlatformGatewaySuccess<import("./types").ListTopicsResponse>>;
1080
+ switchTopicContext(input: import("./workflowClient").SwitchTopicContextInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<import("./types").SwitchTopicContextResponse>>;
1081
+ createTask(input: CreateTaskInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<import("./types").CreateTaskResponse>>;
1082
+ completeTask(taskId: string, input: CompleteTaskInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<import("./types").CompleteTaskResponse>>;
1083
+ updateTask(taskId: string, input: UpdateTaskInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<import("./types").UpdateTaskResponse>>;
1084
+ createPillar(input: {
1085
+ name: string;
1086
+ topicId?: string;
1087
+ projectId?: string;
1088
+ description?: string;
1089
+ metadata?: JsonObject;
1090
+ } & import("./types").TopicIdentifierInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<import("./types").WorkflowBranchRecord>>;
1091
+ createSprint(input: {
1092
+ title: string;
1093
+ topicId?: string;
1094
+ projectId?: string;
1095
+ branchId?: string;
1096
+ hypothesis?: string;
1097
+ beliefIds?: string[];
1098
+ } & import("./types").TopicIdentifierInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<import("./types").WorkflowWorktreeRecord>>;
1099
+ completeSprint(worktreeId: string, input: MergeInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<import("./types").MergeWorktreeResponse>>;
1100
+ requestReview(worktreeId: string, input: {
1101
+ summary: string;
1102
+ reviewers?: string[];
1103
+ status?: "pending_review" | "changes_requested" | "approved" | "blocked";
1104
+ }, idempotencyKey?: string): Promise<PlatformGatewaySuccess<import("./types").OpenPullRequestResponse>>;
1105
+ publishFindings(worktreeId: string, input: {
1106
+ targetContext: string;
1107
+ beliefIds?: string[];
1108
+ metadata?: JsonObject;
1109
+ }, idempotencyKey?: string): Promise<PlatformGatewaySuccess<import("./types").PushWorktreeResponse>>;
1110
+ };
1111
+ audit: {
1112
+ listEvents(query?: import("./coreClient").GatewayScope & {
1113
+ action?: string;
1114
+ decision?: string;
1115
+ traceId?: string;
1116
+ principalId?: string;
1117
+ topicId?: string;
1118
+ projectId?: string;
1119
+ limit?: number;
1120
+ } & import("./types").TopicIdentifierInput): Promise<PlatformGatewaySuccess<import("./types").ListResult<any, "events">>>;
1121
+ };
1122
+ admin: {
1123
+ listTenants(query?: {
1124
+ status?: "active" | "disabled" | "archived";
1125
+ limit?: number;
1126
+ }): Promise<PlatformGatewaySuccess<import("./types").ListResult<any, "tenants">>>;
1127
+ createTenant(input: {
1128
+ key: string;
1129
+ slug?: string;
1130
+ name: string;
1131
+ status?: "active" | "disabled" | "archived";
1132
+ metadata?: JsonObject;
1133
+ }, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
1134
+ getControlObjectOwnership(): Promise<PlatformGatewaySuccess<import("./controlObjectOwnership").ControlObjectOwnershipContract>>;
1135
+ getControlObjectOwnershipContract(): Promise<PlatformGatewaySuccess<import("./controlObjectOwnership").ControlObjectOwnershipContract>>;
1136
+ listWorkspaces(query?: import("./coreClient").GatewayScope & {
1137
+ status?: "active" | "archived";
1138
+ limit?: number;
1139
+ }): Promise<PlatformGatewaySuccess<import("./types").ListResult<any, "workspaces">>>;
1140
+ createWorkspace(input: import("./coreClient").GatewayScope & {
1141
+ key: string;
1142
+ slug?: string;
1143
+ name: string;
1144
+ status?: "active" | "archived";
1145
+ defaultProjectVisibility?: "private" | "firm" | "public";
1146
+ metadata?: JsonObject;
1147
+ }, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
1148
+ listMemberships(query?: import("./coreClient").GatewayScope & {
1149
+ principalId?: string;
1150
+ status?: "active" | "revoked" | "expired";
1151
+ limit?: number;
1152
+ }): Promise<PlatformGatewaySuccess<import("./types").ListResult<any, "memberships">>>;
1153
+ createMembership(input: import("./coreClient").GatewayScope & {
1154
+ principalId: string;
1155
+ role: "platform_admin" | "tenant_admin" | "workspace_admin" | "editor" | "viewer" | "auditor" | "service_agent";
1156
+ status?: "active" | "revoked" | "expired";
1157
+ source?: "bootstrap" | "manual" | "sync" | "invitation";
1158
+ }, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
1159
+ updateMembership(input: import("./coreClient").GatewayScope & {
1160
+ principalId: string;
1161
+ role: "platform_admin" | "tenant_admin" | "workspace_admin" | "editor" | "viewer" | "auditor" | "service_agent";
1162
+ status?: "active" | "revoked" | "expired";
1163
+ source?: "bootstrap" | "manual" | "sync" | "invitation";
1164
+ }, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
1165
+ upsertMembership(input: import("./coreClient").GatewayScope & {
1166
+ principalId: string;
1167
+ role: "platform_admin" | "tenant_admin" | "workspace_admin" | "editor" | "viewer" | "auditor" | "service_agent";
1168
+ status?: "active" | "revoked" | "expired";
1169
+ source?: "bootstrap" | "manual" | "sync" | "invitation";
1170
+ }, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
1171
+ };
1172
+ identity: {
1173
+ whoami(): Promise<import("@/lucern/packages/client-core/src/identity").IdentityWhoamiResponse>;
1174
+ listPrincipals(query?: import("./coreClient").GatewayScope & {
1175
+ status?: string;
1176
+ principalType?: string;
1177
+ query?: string;
1178
+ limit?: number;
1179
+ }): Promise<PlatformGatewaySuccess<import("./types").ListResult<any, "principals">>>;
1180
+ createPrincipal(input: import("./coreClient").GatewayScope & {
1181
+ principalId: string;
1182
+ principalType: "user" | "group" | "service" | "external_viewer";
1183
+ clerkId?: string;
1184
+ email?: string;
1185
+ displayName?: string;
1186
+ status?: "active" | "disabled" | "revoked";
1187
+ metadata?: JsonObject;
1188
+ }, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
1189
+ updatePrincipal(input: import("./coreClient").GatewayScope & {
1190
+ principalId: string;
1191
+ principalType: "user" | "group" | "service" | "external_viewer";
1192
+ clerkId?: string;
1193
+ email?: string;
1194
+ displayName?: string;
1195
+ status?: "active" | "disabled" | "revoked";
1196
+ metadata?: JsonObject;
1197
+ }, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
1198
+ upsertPrincipal(input: import("./coreClient").GatewayScope & {
1199
+ principalId: string;
1200
+ principalType: "user" | "group" | "service" | "external_viewer";
1201
+ clerkId?: string;
1202
+ email?: string;
1203
+ displayName?: string;
1204
+ status?: "active" | "disabled" | "revoked";
1205
+ metadata?: JsonObject;
1206
+ }, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
1207
+ listKeys(query?: import("./coreClient").GatewayScope & {
1208
+ principalId?: string;
1209
+ status?: string;
1210
+ limit?: number;
1211
+ }): Promise<PlatformGatewaySuccess<import("./types").ListResult<any, "keys">>>;
1212
+ createKey(input: import("./coreClient").GatewayScope & {
1213
+ principalId: string;
1214
+ keyId?: string;
1215
+ token?: string;
1216
+ scopes?: string[];
1217
+ environment?: "sandbox" | "production";
1218
+ expiresInDays?: number;
1219
+ rateLimitTier?: "free" | "developer" | "partner";
1220
+ metadata?: JsonObject;
1221
+ }, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
1222
+ rotateKey(keyId: string, input?: {
1223
+ replacementKeyId?: string;
1224
+ replacementToken?: string;
1225
+ replacementExpiresInDays?: number;
1226
+ gracePeriodHours?: number;
1227
+ }, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
1228
+ deleteKey(keyId: string, input?: {
1229
+ reason?: string;
1230
+ }, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
1231
+ revokeKey(keyId: string, input?: {
1232
+ reason?: string;
1233
+ }, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
1234
+ };
1235
+ policy: {
1236
+ listDecisions(query?: import("./coreClient").GatewayScope & {
1237
+ action?: string;
1238
+ decision?: string;
1239
+ traceId?: string;
1240
+ principalId?: string;
1241
+ topicId?: string;
1242
+ limit?: number;
1243
+ }): Promise<PlatformGatewaySuccess<import("./types").ListResult<any, "decisions">>>;
1244
+ grant(input: import("./coreClient").GatewayScope & {
1245
+ topicId: string;
1246
+ permission: import("./policyClient").PermissionKind;
1247
+ principal?: string;
1248
+ principalId?: string;
1249
+ groupId?: string;
1250
+ beliefClusterId?: string;
1251
+ expiresAt?: number;
1252
+ }, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
1253
+ revoke(input: import("./coreClient").GatewayScope & {
1254
+ topicId: string;
1255
+ principal?: string;
1256
+ principalId?: string;
1257
+ groupId?: string;
1258
+ beliefClusterId?: string;
1259
+ }, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
1260
+ listWritePolicies(query?: import("./coreClient").GatewayScope & {
1261
+ topicId?: string;
1262
+ role?: string;
1263
+ toolCategory?: string;
1264
+ enabled?: boolean;
1265
+ }): Promise<{
1266
+ data: {
1267
+ policies: import("./policyClient").WritePolicyRecord[];
1268
+ };
1269
+ success: true;
1270
+ correlationId: string;
1271
+ policyTraceId: string | null;
1272
+ idempotentReplay: boolean;
1273
+ }>;
1274
+ createWritePolicy(input: import("./policyClient").WritePolicyCreateInput, idempotencyKey?: string): Promise<{
1275
+ data: {
1276
+ id: string | undefined;
1277
+ created: boolean;
1278
+ policy: import("./policyClient").WritePolicyRecord | null;
1279
+ };
1280
+ success: true;
1281
+ correlationId: string;
1282
+ policyTraceId: string | null;
1283
+ idempotentReplay: boolean;
1284
+ }>;
1285
+ updateWritePolicy(id: string, input: import("./policyClient").WritePolicyUpdateInput, idempotencyKey?: string): Promise<{
1286
+ data: {
1287
+ id: string | undefined;
1288
+ updated: boolean;
1289
+ policy: import("./policyClient").WritePolicyRecord | null;
1290
+ };
1291
+ success: true;
1292
+ correlationId: string;
1293
+ policyTraceId: string | null;
1294
+ idempotentReplay: boolean;
1295
+ }>;
1296
+ deleteWritePolicy(id: string, scope?: import("./coreClient").GatewayScope, idempotencyKey?: string): Promise<PlatformGatewaySuccess<{
1297
+ id?: string;
1298
+ deleted?: boolean;
1299
+ }>>;
1300
+ checkPermission(query: import("./coreClient").GatewayScope & {
1301
+ topicId?: string;
1302
+ permission?: import("./policyClient").PermissionKind;
1303
+ principal?: string;
1304
+ principalId?: string;
1305
+ beliefClusterId?: string;
1306
+ }): Promise<PlatformGatewaySuccess<import("./policyClient").PermissionDecision>>;
1307
+ listAccessibleTopics(query?: import("./coreClient").GatewayScope & {
1308
+ permission?: import("./policyClient").PermissionKind;
1309
+ includeShared?: boolean;
1310
+ principal?: string;
1311
+ principalId?: string;
1312
+ limit?: number;
1313
+ }): Promise<{
1314
+ data: {
1315
+ permission: import("./policyClient").PermissionKind;
1316
+ topics: {
1317
+ [key: string]: unknown;
1318
+ topicId?: string;
1319
+ name?: string;
1320
+ type?: string;
1321
+ isOwner?: boolean;
1322
+ }[];
1323
+ total: number;
1324
+ deniedTopics: {
1325
+ topicId: string;
1326
+ reasonCode: string;
1327
+ }[];
1328
+ };
1329
+ success: true;
1330
+ correlationId: string;
1331
+ policyTraceId: string | null;
1332
+ idempotentReplay: boolean;
1333
+ }>;
1334
+ filterByPermission(input: import("./coreClient").GatewayScope & {
1335
+ topicIds?: string[];
1336
+ permission?: import("./policyClient").PermissionKind;
1337
+ principal?: string;
1338
+ principalId?: string;
1339
+ }): Promise<{
1340
+ success: boolean;
1341
+ data: {
1342
+ permission: import("./policyClient").PermissionKind;
1343
+ allowedTopicIds: string[];
1344
+ deniedTopics: {
1345
+ topicId: string;
1346
+ reasonCode: string;
1347
+ }[];
1348
+ count: number;
1349
+ };
1350
+ }>;
1351
+ };
1352
+ answers: {
1353
+ get(questionId: string): Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
1354
+ };
1355
+ ontology: {
1356
+ list(filters?: import("./coreClient").GatewayScope & {
1357
+ tenantId?: string;
1358
+ tier?: string;
1359
+ status?: string;
1360
+ }): Promise<PlatformGatewaySuccess<{
1361
+ ontologies: any[];
1362
+ total: number;
1363
+ items: any[];
1364
+ definitions: any[];
1365
+ }>>;
1366
+ get(id: string): Promise<PlatformGatewaySuccess<unknown>>;
1367
+ bind(input: import("./ontologyClient").OntologyBindingInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
1368
+ listDefinitions(filters?: import("./coreClient").GatewayScope & {
1369
+ tenantId?: string;
1370
+ tier?: string;
1371
+ status?: string;
1372
+ }): Promise<PlatformGatewaySuccess<{
1373
+ ontologies: any[];
1374
+ total: number;
1375
+ items: any[];
1376
+ definitions: any[];
1377
+ }>>;
1378
+ getDefinition(id: string): Promise<PlatformGatewaySuccess<unknown>>;
1379
+ createDefinition(input: import("./ontologyClient").OntologyDefinitionInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
1380
+ updateDefinition(id: string, input: import("./ontologyClient").OntologyDefinitionUpdateInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
1381
+ archiveDefinition(id: string, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
1382
+ listVersions(ontologyId: string, filters?: import("./coreClient").GatewayScope & {
1383
+ status?: string;
1384
+ }): Promise<PlatformGatewaySuccess<import("./types").ListResult<any, "versions">>>;
1385
+ createVersion(ontologyId: string, input: import("./ontologyClient").OntologyVersionInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
1386
+ publishVersion(ontologyId: string, versionId: string, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
1387
+ deprecateVersion(ontologyId: string, versionId: string, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
1388
+ listTopics(ontologyId: string): Promise<PlatformGatewaySuccess<import("./types").ListResult<any, "topics">>>;
1389
+ listTopicsByOntology(ontologyId: string): Promise<PlatformGatewaySuccess<import("./types").ListResult<any, "topics">>>;
1390
+ };
1391
+ mcpParity: {
1392
+ sessionId: `${string}-${string}-${string}-${string}-${string}`;
1393
+ listTopics(args?: JsonObject): Promise<PlatformGatewaySuccess<unknown>>;
1394
+ createTopic(args: JsonObject, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
1395
+ getTopic(args: JsonObject): Promise<PlatformGatewaySuccess<unknown>>;
1396
+ getTopicTree(args: JsonObject): Promise<PlatformGatewaySuccess<unknown>>;
1397
+ activateWorktree(args: JsonObject, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
1398
+ updateWorktreeMetadata(args: JsonObject, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
1399
+ updateWorktreeTargets(args: JsonObject, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
1400
+ listAllWorktrees(args?: JsonObject): Promise<PlatformGatewaySuccess<unknown>>;
1401
+ pipelineSnapshot(args: JsonObject): Promise<PlatformGatewaySuccess<unknown>>;
1402
+ recordScopeLearning(args: JsonObject, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
1403
+ discover(args: JsonObject): Promise<PlatformGatewaySuccess<unknown>>;
1404
+ analyzeTopicDensity(args: JsonObject): Promise<PlatformGatewaySuccess<unknown>>;
1405
+ applyAutoBranching(args: JsonObject, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
1406
+ seedBeliefLattice(args?: JsonObject, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
1407
+ getLatticeCoverage(args?: JsonObject): Promise<PlatformGatewaySuccess<unknown>>;
1408
+ matchEntityType(args: JsonObject): Promise<PlatformGatewaySuccess<unknown>>;
1409
+ discoverEntityConnections(args: JsonObject): Promise<PlatformGatewaySuccess<unknown>>;
1410
+ triggerBeliefReview(args: JsonObject, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
1411
+ listOntologies(args?: JsonObject): Promise<PlatformGatewaySuccess<unknown>>;
1412
+ getOntology(args: JsonObject): Promise<PlatformGatewaySuccess<unknown>>;
1413
+ applyOntology(args: JsonObject, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
1414
+ createOntology(args: JsonObject, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
1415
+ updateOntology(args: JsonObject, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
1416
+ archiveOntology(args: JsonObject, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
1417
+ createOntologyVersion(args: JsonObject, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
1418
+ publishOntologyVersion(args: JsonObject, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
1419
+ deprecateOntologyVersion(args: JsonObject, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
1420
+ resolveEffectiveOntology(args: JsonObject): Promise<PlatformGatewaySuccess<unknown>>;
1421
+ registerSession(args?: JsonObject, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
1422
+ heartbeatSession(args?: JsonObject, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
1423
+ endSession(args?: JsonObject, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
1424
+ listActiveSessions(args?: JsonObject): Promise<PlatformGatewaySuccess<unknown>>;
1425
+ sendAgentMessage(args: JsonObject, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
1426
+ broadcastMessage(args: JsonObject, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
1427
+ getAgentInbox(args?: JsonObject): Promise<PlatformGatewaySuccess<unknown>>;
1428
+ claimFiles(args: JsonObject, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
1429
+ listTasks(args: JsonObject): Promise<PlatformGatewaySuccess<unknown>>;
1430
+ createAnswer(args: JsonObject, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
1431
+ getAnswer(args: JsonObject): Promise<PlatformGatewaySuccess<unknown>>;
1432
+ flagContradiction(args: JsonObject, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
1433
+ ingestObservation(args: JsonObject, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
1434
+ getObservationContext(args: JsonObject): Promise<PlatformGatewaySuccess<unknown>>;
1435
+ getCodeContext(args: JsonObject): Promise<PlatformGatewaySuccess<unknown>>;
1436
+ getChangeHistory(args: JsonObject): Promise<PlatformGatewaySuccess<unknown>>;
1437
+ recordAttempt(args: JsonObject, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
1438
+ getFailureLog(args: JsonObject): Promise<PlatformGatewaySuccess<unknown>>;
1439
+ createEpistemicContract(args: JsonObject, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
1440
+ evaluateContract(args: JsonObject, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
1441
+ getContractStatus(args: JsonObject): Promise<PlatformGatewaySuccess<unknown>>;
1442
+ checkPermission(args: JsonObject): Promise<PlatformGatewaySuccess<unknown>>;
1443
+ filterByPermission(args: JsonObject): Promise<PlatformGatewaySuccess<unknown>>;
1444
+ manageWritePolicy(args: JsonObject, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
1445
+ generateSessionHandoff(args: JsonObject): Promise<PlatformGatewaySuccess<unknown>>;
1446
+ };
1447
+ packs: {
1448
+ listCatalog(): Promise<PlatformGatewaySuccess<import("./types").ListResult<any, "catalog">>>;
1449
+ getCatalog(): Promise<PlatformGatewaySuccess<import("./types").ListResult<any, "catalog">>>;
1450
+ listStates(query?: import("./coreClient").GatewayScope): Promise<PlatformGatewaySuccess<import("./types").ListResult<any, "states">>>;
1451
+ getStates(query?: import("./coreClient").GatewayScope): Promise<PlatformGatewaySuccess<import("./types").ListResult<any, "states">>>;
1452
+ getHealth(packKey: string, query?: import("./coreClient").GatewayScope): Promise<PlatformGatewaySuccess<unknown>>;
1453
+ listTelemetry(query?: import("./coreClient").GatewayScope & {
1454
+ lookbackHours?: number;
1455
+ limit?: number;
1456
+ }): Promise<PlatformGatewaySuccess<import("./types").ListResult<any, "telemetry">>>;
1457
+ getTelemetry(query?: import("./coreClient").GatewayScope & {
1458
+ lookbackHours?: number;
1459
+ limit?: number;
1460
+ }): Promise<PlatformGatewaySuccess<import("./types").ListResult<any, "telemetry">>>;
1461
+ createEntitlement(input: import("./packsClient").PackEntitlementInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
1462
+ updateEntitlement(input: import("./packsClient").PackEntitlementInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
1463
+ upsertEntitlement(input: import("./packsClient").PackEntitlementInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
1464
+ install(input: import("./packsClient").PackInstallInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
1465
+ enable(input: import("./packsClient").PackEnableInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
1466
+ disable(input: import("./packsClient").PackDisableInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
1467
+ upgrade(input: import("./packsClient").PackUpgradeInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
1468
+ };
1469
+ reports: {
1470
+ listTemplates(args?: {
1471
+ slug?: string;
1472
+ }): Promise<PlatformGatewaySuccess<import("./types").ReportTemplatesResponse>>;
1473
+ getTemplates(args?: {
1474
+ slug?: string;
1475
+ }): Promise<PlatformGatewaySuccess<import("./types").ReportTemplatesResponse>>;
1476
+ listReports(input: import("./types").TopicIdentifierInput, args?: {
1477
+ summary?: boolean;
1478
+ }): Promise<PlatformGatewaySuccess<import("./types").ListResult<any, "reports">>>;
1479
+ getReport(reportId: string): Promise<PlatformGatewaySuccess<import("./types").ReportWithSectionsResponse>>;
1480
+ };
1481
+ learning: {
1482
+ listRecentExecutions(args?: {
1483
+ namespace?: string;
1484
+ topicId?: string;
1485
+ projectId?: string;
1486
+ audienceMode?: string;
1487
+ success?: boolean;
1488
+ limit?: number;
1489
+ } & import("./types").TopicIdentifierInput): Promise<PlatformGatewaySuccess<import("./types").ListResult<any, "executions">>>;
1490
+ getRecentExecutions(args?: {
1491
+ namespace?: string;
1492
+ topicId?: string;
1493
+ projectId?: string;
1494
+ audienceMode?: string;
1495
+ success?: boolean;
1496
+ limit?: number;
1497
+ } & import("./types").TopicIdentifierInput): Promise<PlatformGatewaySuccess<import("./types").ListResult<any, "executions">>>;
1498
+ getExecutionStats(args?: {
1499
+ namespace?: string;
1500
+ topicId?: string;
1501
+ projectId?: string;
1502
+ audienceMode?: string;
1503
+ hours?: number;
1504
+ } & import("./types").TopicIdentifierInput): Promise<PlatformGatewaySuccess<unknown>>;
1505
+ };
1506
+ harness: {
1507
+ listAgentDefinitions(scope?: import("./coreClient").GatewayScope & {
1508
+ status?: string;
1509
+ limit?: number;
1510
+ cursor?: string;
1511
+ }): Promise<PlatformGatewaySuccess<import("./types").ListResult<any, "agents">>>;
1512
+ getAgentDefinition(agentId: string, scope?: import("./coreClient").GatewayScope): Promise<PlatformGatewaySuccess<unknown>>;
1513
+ createAgentDefinition(input: import("./harnessClient").HarnessAgentWriteInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
1514
+ registerAgentDefinition(input: import("./harnessClient").HarnessAgentWriteInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
1515
+ updateAgentDefinition(agentId: string, input: import("./harnessClient").HarnessAgentWriteInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
1516
+ listAgentRuns(agentId: string, scope?: import("./coreClient").GatewayScope & {
1517
+ status?: string;
1518
+ limit?: number;
1519
+ cursor?: string;
1520
+ }): Promise<PlatformGatewaySuccess<import("./types").ListResult<any, "runs">>>;
1521
+ listRunsForAgent(agentId: string, scope?: import("./coreClient").GatewayScope & {
1522
+ status?: string;
1523
+ limit?: number;
1524
+ cursor?: string;
1525
+ }): Promise<PlatformGatewaySuccess<import("./types").ListResult<any, "runs">>>;
1526
+ listToolDefinitions(scope?: import("./coreClient").GatewayScope & {
1527
+ status?: string;
1528
+ limit?: number;
1529
+ cursor?: string;
1530
+ gateClassification?: string;
1531
+ }): Promise<PlatformGatewaySuccess<import("./types").ListResult<any, "tools">>>;
1532
+ getToolDefinition(toolId: string, scope?: import("./coreClient").GatewayScope): Promise<PlatformGatewaySuccess<unknown>>;
1533
+ createToolDefinition(input: import("./harnessClient").HarnessToolWriteInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
1534
+ registerToolDefinition(input: import("./harnessClient").HarnessToolWriteInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
1535
+ updateToolDefinition(toolId: string, input: import("./harnessClient").HarnessToolWriteInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
1536
+ listRunEntries(scope?: import("./coreClient").GatewayScope & {
1537
+ status?: string;
1538
+ limit?: number;
1539
+ cursor?: string;
1540
+ }): Promise<PlatformGatewaySuccess<import("./types").ListResult<any, "runs">>>;
1541
+ listRunLedgerEntries(scope?: import("./coreClient").GatewayScope & {
1542
+ status?: string;
1543
+ limit?: number;
1544
+ cursor?: string;
1545
+ }): Promise<PlatformGatewaySuccess<import("./types").ListResult<any, "runs">>>;
1546
+ startHarnessRun(input: import("./harnessClient").HarnessStartRunInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
1547
+ getRunLedgerEntry(runId: string): Promise<PlatformGatewaySuccess<unknown>>;
1548
+ reportHarnessRunEvent(runId: string, input: import("./harnessClient").HarnessRunReportInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
1549
+ heartbeatHarnessRun(runId: string, input: {
1550
+ reportingToken: string;
1551
+ }, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
1552
+ completeHarnessRun(runId: string, input: import("./harnessClient").HarnessCompleteRunInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
1553
+ listPromptResolutions(query?: {
1554
+ runId?: string;
1555
+ promptName?: string;
1556
+ limit?: number;
1557
+ }): Promise<PlatformGatewaySuccess<import("./types").ListResult<any, "prompts">>>;
1558
+ getScopeTaxonomy(): Promise<PlatformGatewaySuccess<unknown>>;
1559
+ };
1560
+ schema: {
1561
+ listPacks(scope?: import("./coreClient").GatewayScope): Promise<PlatformGatewaySuccess<import("./types").ListResult<any, "packs">>>;
1562
+ installPack(input: import("./schemaClient").SchemaPackInstallInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
1563
+ getPack(packId: string, scope?: import("./coreClient").GatewayScope): Promise<PlatformGatewaySuccess<unknown>>;
1564
+ listEntitlements(scope?: import("./coreClient").GatewayScope & {
1565
+ packKey?: string;
1566
+ }): Promise<PlatformGatewaySuccess<import("./types").ListResult<any, "entitlements">>>;
1567
+ createEntitlement(input: import("./schemaClient").SchemaEntitlementInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
1568
+ updateEntitlement(input: import("./schemaClient").SchemaEntitlementInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
1569
+ upsertEntitlement(input: import("./schemaClient").SchemaEntitlementInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
1570
+ };
1571
+ audiences: {
1572
+ listRegistry(query?: import("./coreClient").GatewayScope & {
1573
+ effective?: boolean;
1574
+ status?: "active" | "disabled" | "archived";
1575
+ }): Promise<PlatformGatewaySuccess<import("./types").ListResult<any, "registryEntries">>>;
1576
+ getRegistry(query?: import("./coreClient").GatewayScope & {
1577
+ effective?: boolean;
1578
+ status?: "active" | "disabled" | "archived";
1579
+ }): Promise<PlatformGatewaySuccess<import("./types").ListResult<any, "registryEntries">>>;
1580
+ createRegistryEntry(input: import("./audiencesClient").AudienceRegistryInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
1581
+ updateRegistryEntry(input: import("./audiencesClient").AudienceRegistryInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
1582
+ upsertRegistry(input: import("./audiencesClient").AudienceRegistryInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
1583
+ listGrants(query?: import("./coreClient").GatewayScope & {
1584
+ audienceKey?: string;
1585
+ principalId?: string;
1586
+ groupId?: string;
1587
+ status?: "active" | "revoked" | "expired";
1588
+ }): Promise<PlatformGatewaySuccess<import("./types").ListResult<any, "grants">>>;
1589
+ getGrants(query?: import("./coreClient").GatewayScope & {
1590
+ audienceKey?: string;
1591
+ principalId?: string;
1592
+ groupId?: string;
1593
+ status?: "active" | "revoked" | "expired";
1594
+ }): Promise<PlatformGatewaySuccess<import("./types").ListResult<any, "grants">>>;
1595
+ createGrant(input: import("./audiencesClient").AudienceGrantInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
1596
+ grant(input: import("./audiencesClient").AudienceGrantInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
1597
+ deleteGrant(input: import("./audiencesClient").AudienceGrantRevokeInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
1598
+ revokeGrant(input: import("./audiencesClient").AudienceGrantRevokeInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
1599
+ };
1600
+ topics: {
1601
+ list(query?: import("./topicsClient").TopicListInput): Promise<PlatformGatewaySuccess<import("./types").TopicListResponse>>;
1602
+ get(topicId: string): Promise<PlatformGatewaySuccess<import("./types").TopicRecord>>;
1603
+ create(input: import("./topicsClient").TopicCreateInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<import("./types").TopicRecord>>;
1604
+ update(topicId: string, input: import("./topicsClient").TopicUpdateInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<import("./types").TopicRecord>>;
1605
+ getTree(topicId: string, query?: import("./topicsClient").TopicTreeQuery): Promise<PlatformGatewaySuccess<import("./types").TopicTreeResponse>>;
1606
+ getCoverage(topicId: string, query?: import("./topicsClient").TopicCoverageQuery): Promise<PlatformGatewaySuccess<import("./types").TopicCoverageResponse>>;
1607
+ };
1608
+ };
1609
+ };
1610
+ export {};