@lucern/sdk 1.0.29 → 1.0.31

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 (191) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/accessControl.d.ts +31 -31
  3. package/dist/accessControl.js +1 -0
  4. package/dist/adminClient.d.ts +74 -74
  5. package/dist/adminClient.js +38 -30
  6. package/dist/{answersClient.d.ts → answers-client.d.ts} +1 -1
  7. package/dist/{answersClient.js → answers-client.js} +2 -2
  8. package/dist/audience/index.d.ts +12 -12
  9. package/dist/{audiencesClient.d.ts → audiences-client.d.ts} +1 -1
  10. package/dist/audiences-client.js +107 -0
  11. package/dist/{auditClient.d.ts → audit-client.d.ts} +2 -3
  12. package/dist/{auditClient.js → audit-client.js} +8 -7
  13. package/dist/authContext.d.ts +26 -26
  14. package/dist/authDeviceClient.d.ts +11 -11
  15. package/dist/authDeviceClient.js +4 -6
  16. package/dist/beliefs/index.d.ts +56 -28
  17. package/dist/beliefs/index.js +2 -1
  18. package/dist/beliefsClient.d.ts +71 -63
  19. package/dist/beliefsClient.js +90 -67
  20. package/dist/{boundaryClientSurface.d.ts → boundary-client-surface.d.ts} +4 -4
  21. package/dist/{boundaryClientSurface.js → boundary-client-surface.js} +9 -7
  22. package/dist/client-assembly-types.d.ts +219 -0
  23. package/dist/client-assembly-types.js +2 -0
  24. package/dist/{clientConfig.d.ts → client-config.d.ts} +16 -32
  25. package/dist/client-config.js +2 -0
  26. package/dist/{clientEvidenceCompat.d.ts → client-evidence-compat.d.ts} +24 -24
  27. package/dist/{clientEvidenceCompat.js → client-evidence-compat.js} +2 -2
  28. package/dist/client.d.ts +1906 -352
  29. package/dist/client.js +34 -30
  30. package/dist/clientGraphNamespaces.d.ts +35 -25
  31. package/dist/clientGraphNamespaces.js +11 -5
  32. package/dist/clientHelpers.js +8 -5
  33. package/dist/clientKnowledgeNamespaces.d.ts +124 -84
  34. package/dist/clientKnowledgeNamespaces.js +35 -34
  35. package/dist/clientLocalHelpers.d.ts +81 -52
  36. package/dist/clientLocalHelpers.js +193 -43
  37. package/dist/clientPlatformNamespaces.d.ts +1541 -150
  38. package/dist/clientPlatformNamespaces.js +10 -5
  39. package/dist/clientRuntime.d.ts +1 -1
  40. package/dist/clientRuntime.js +1 -1
  41. package/dist/clientWorkflowNamespaces.d.ts +211 -97
  42. package/dist/clientWorkflowNamespaces.js +22 -19
  43. package/dist/contextClient.d.ts +2 -2
  44. package/dist/contextClient.js +79 -50
  45. package/dist/contextFacade.d.ts +1 -1
  46. package/dist/contextFacade.js +2 -0
  47. package/dist/contextPackCompiler.d.ts +52 -52
  48. package/dist/contextPackCompiler.js +192 -122
  49. package/dist/contextPackPolicy.d.ts +22 -22
  50. package/dist/contextPackPolicy.js +21 -9
  51. package/dist/contextPackSchema.d.ts +3 -3
  52. package/dist/contextPackSchema.js +1 -0
  53. package/dist/contextTypes.d.ts +155 -155
  54. package/dist/contracts/api-enums.contract.js +2 -11
  55. package/dist/contracts/auth-session.contract.d.ts +16 -16
  56. package/dist/contracts/auth-session.contract.js +3 -2
  57. package/dist/contracts/context-pack.contract.d.ts +216 -216
  58. package/dist/contracts/contextPack.js +2 -0
  59. package/dist/contracts/index.d.ts +1 -1
  60. package/dist/contracts/index.js +2 -1
  61. package/dist/contracts/lens-filter.contract.d.ts +8 -8
  62. package/dist/contracts/lens-filter.contract.js +10 -10
  63. package/dist/contracts/lens-workflow.contract.d.ts +32 -32
  64. package/dist/contracts/lens-workflow.contract.js +2 -1
  65. package/dist/contracts/lensFilter.js +2 -0
  66. package/dist/contracts/lensWorkflow.js +2 -0
  67. package/dist/contracts/mcpTools.d.ts +19 -19
  68. package/dist/contracts/mcpTools.js +3 -1
  69. package/dist/contracts/prompt.contract.d.ts +12 -12
  70. package/dist/contracts/prompt.js +1 -0
  71. package/dist/contracts/sdk-tools.contract.js +1 -0
  72. package/dist/contracts/sdkTools.js +2 -0
  73. package/dist/contracts/tool-contracts.js +1 -0
  74. package/dist/contracts/workflow-runtime.contract.d.ts +45 -45
  75. package/dist/contracts/workflow-runtime.contract.js +1 -5
  76. package/dist/contracts/workflowRuntime.js +2 -0
  77. package/dist/contradictions/index.d.ts +8 -8
  78. package/dist/contradictions/index.js +1 -0
  79. package/dist/control-plane.d.ts +10 -10
  80. package/dist/control-plane.js +2 -2
  81. package/dist/controlObjectOwnership.d.ts +11 -11
  82. package/dist/controlObjectOwnership.js +1 -0
  83. package/dist/coreClient.d.ts +51 -51
  84. package/dist/coreClient.js +269 -101
  85. package/dist/customTools.d.ts +19 -19
  86. package/dist/customTools.js +4 -2
  87. package/dist/decisions/index.d.ts +18 -18
  88. package/dist/decisions/index.js +1 -0
  89. package/dist/decisionsClient.d.ts +4 -4
  90. package/dist/decisionsClient.js +36 -27
  91. package/dist/edges/index.d.ts +20 -18
  92. package/dist/edges/index.js +1 -0
  93. package/dist/embeddingsClient.d.ts +29 -29
  94. package/dist/embeddingsClient.js +15 -8
  95. package/dist/eventingClient.d.ts +27 -27
  96. package/dist/eventingClient.js +10 -5
  97. package/dist/events.d.ts +83 -83
  98. package/dist/events.js +19 -15
  99. package/dist/eventsCore.d.ts +7 -7
  100. package/dist/eventsCore.js +11 -10
  101. package/dist/evidence/index.d.ts +23 -21
  102. package/dist/evidence/index.js +1 -0
  103. package/dist/evidenceClient.d.ts +23 -23
  104. package/dist/evidenceClient.js +10 -6
  105. package/dist/facade/context.d.ts +9 -9
  106. package/dist/facade/context.js +67 -41
  107. package/dist/functionSurface.js +2 -0
  108. package/dist/functionSurfaceClient.js +2 -0
  109. package/dist/gatewayFacades.d.ts +215 -215
  110. package/dist/gatewayFacades.factories.d.ts +23 -44
  111. package/dist/gatewayFacades.factories.js +63 -62
  112. package/dist/gatewayFacades.js +31 -32
  113. package/dist/graphAnalysisClient.d.ts +60 -60
  114. package/dist/graphAnalysisClient.js +19 -18
  115. package/dist/graphClient.d.ts +34 -34
  116. package/dist/graphClient.js +56 -35
  117. package/dist/graphIntel.js +2 -0
  118. package/dist/graphIntelligence.d.ts +2 -2
  119. package/dist/graphIntelligence.js +1 -1
  120. package/dist/graphRecommendationsClient.d.ts +24 -24
  121. package/dist/graphRecommendationsClient.js +12 -7
  122. package/dist/graphStateClassifierClient.d.ts +13 -13
  123. package/dist/graphStateClassifierClient.js +10 -5
  124. package/dist/harnessClient.d.ts +61 -61
  125. package/dist/harnessClient.js +44 -31
  126. package/dist/identityClient.d.ts +33 -59
  127. package/dist/identityClient.js +126 -98
  128. package/dist/index.d.ts +20 -20
  129. package/dist/index.js +20 -19
  130. package/dist/infisicalRuntime.d.ts +11 -11
  131. package/dist/infisicalRuntime.js +20 -14
  132. package/dist/jobsClient.d.ts +28 -28
  133. package/dist/jobsClient.js +6 -3
  134. package/dist/learningClient.js +13 -8
  135. package/dist/lenses/index.d.ts +124 -28
  136. package/dist/lenses/index.js +1 -0
  137. package/dist/mcpClient.d.ts +1 -1
  138. package/dist/mcpClient.js +3 -3
  139. package/dist/modelRuntimeClient.d.ts +27 -27
  140. package/dist/modelRuntimeClient.js +10 -5
  141. package/dist/nodes/index.d.ts +9 -9
  142. package/dist/nodes/index.js +1 -0
  143. package/dist/ontologies/index.d.ts +68 -22
  144. package/dist/ontologies/index.js +1 -0
  145. package/dist/ontologyClient.js +24 -17
  146. package/dist/ontologyLinksClient.d.ts +35 -35
  147. package/dist/ontologyLinksClient.js +9 -6
  148. package/dist/opinion.d.ts +3 -3
  149. package/dist/opinion.js +12 -5
  150. package/dist/orgGraphSearchClient.d.ts +39 -39
  151. package/dist/orgGraphSearchClient.js +22 -13
  152. package/dist/packsClient.d.ts +1 -1
  153. package/dist/packsClient.js +28 -19
  154. package/dist/policyClient.d.ts +79 -68
  155. package/dist/policyClient.js +18 -12
  156. package/dist/proof-attestation.json +1 -1
  157. package/dist/questions/index.d.ts +38 -27
  158. package/dist/questions/index.js +1 -0
  159. package/dist/realtime/index.d.ts +3 -3
  160. package/dist/realtime/index.js +1 -0
  161. package/dist/realtime/refs.d.ts +2 -2
  162. package/dist/{reportsClient.d.ts → reports-client.d.ts} +2 -2
  163. package/dist/{reportsClient.js → reports-client.js} +19 -13
  164. package/dist/{schemaClient.d.ts → schema-client.d.ts} +2 -3
  165. package/dist/{schemaClient.js → schema-client.js} +14 -11
  166. package/dist/sdkSurface.d.ts +12 -12
  167. package/dist/sdkSurface.js +14 -10
  168. package/dist/secrets.d.ts +1 -1
  169. package/dist/secrets.js +2 -1
  170. package/dist/{sourcesClient.d.ts → sources-client.d.ts} +8 -9
  171. package/dist/{sourcesClient.js → sources-client.js} +4 -5
  172. package/dist/{telemetryClient.d.ts → telemetry-client.d.ts} +14 -14
  173. package/dist/{telemetryClient.js → telemetry-client.js} +6 -4
  174. package/dist/toolRegistryClient.d.ts +46 -46
  175. package/dist/toolRegistryClient.js +22 -11
  176. package/dist/topics/index.d.ts +23 -23
  177. package/dist/topics/index.js +2 -1
  178. package/dist/topicsClient.d.ts +6 -6
  179. package/dist/topicsClient.js +29 -18
  180. package/dist/types.d.ts +356 -355
  181. package/dist/version.d.ts +1 -1
  182. package/dist/version.js +1 -1
  183. package/dist/workflowClient.d.ts +36 -35
  184. package/dist/workflowClient.js +88 -60
  185. package/dist/worktrees/index.d.ts +118 -32
  186. package/dist/worktrees/index.js +2 -1
  187. package/package.json +45 -5
  188. package/dist/audiencesClient.js +0 -115
  189. package/dist/clientAssemblyTypes.d.ts +0 -33
  190. package/dist/clientAssemblyTypes.js +0 -2
  191. package/dist/clientConfig.js +0 -2
@@ -22,37 +22,37 @@ export type SearchResult = GatewayList & {
22
22
  beliefs?: GatewayRecord[];
23
23
  results?: GatewayRecord[];
24
24
  };
25
- export type GraphNeighborhoodInput = {
25
+ export interface GraphNeighborhoodInput {
26
26
  globalId?: string;
27
27
  globalIds?: string | string[];
28
28
  maxDepth?: number;
29
- };
30
- export type GraphTraverseInput = {
31
- startNode: string;
29
+ }
30
+ export interface GraphTraverseInput {
32
31
  direction?: string;
33
32
  maxDepth?: number;
33
+ startNode: string;
34
34
  topicId?: string;
35
- };
36
- export type GraphAnalyzeInput = {
37
- topicId?: string;
38
- metric?: GraphAnalyticsMetric;
35
+ }
36
+ export interface GraphAnalyzeInput {
39
37
  limit?: number;
40
- };
41
- export type GraphBiasInput = {
38
+ metric?: GraphAnalyticsMetric;
42
39
  topicId?: string;
43
- threshold?: number;
40
+ }
41
+ export interface GraphBiasInput {
44
42
  limit?: number;
45
- };
46
- export type GraphGapsInput = {
43
+ threshold?: number;
47
44
  topicId?: string;
45
+ }
46
+ export interface GraphGapsInput {
48
47
  minConfidence?: number;
49
- };
50
- export type GraphFalsifyInput = {
51
48
  topicId?: string;
49
+ }
50
+ export interface GraphFalsifyInput {
52
51
  beliefId?: string;
53
52
  beliefIds?: string[];
54
53
  minConfidence?: number;
55
- };
54
+ topicId?: string;
55
+ }
56
56
  export type EventsListResult = GatewayList & {
57
57
  events?: GatewayRecord[];
58
58
  };
@@ -79,82 +79,75 @@ export type EvidenceCreateResult = GatewayRecord & {
79
79
  export type EvidenceLinkResult = GatewayRecord & {
80
80
  edgeId?: string;
81
81
  };
82
- export type BeliefCreateInput = {
83
- topicId?: string;
84
- text: string;
82
+ export interface BeliefCreateInput {
85
83
  baseRate?: number;
86
- rationale?: string;
87
- worktreeId?: string;
84
+ beliefType?: string;
85
+ metadata?: JsonObject;
88
86
  pillar?: string;
87
+ predictionMeta?: JsonObject;
88
+ rationale?: string;
89
+ reversibility?: string;
89
90
  sourceBeliefIds?: string[];
90
91
  sourceType?: string;
91
- beliefType?: string;
92
- reversibility?: string;
93
- predictionMeta?: JsonObject;
94
- metadata?: JsonObject;
95
- };
96
- export type BeliefsListQuery = {
92
+ text: string;
97
93
  topicId?: string;
98
- status?: string;
99
94
  worktreeId?: string;
100
- minConfidence?: number;
101
- limit?: number;
95
+ }
96
+ export interface BeliefsListQuery {
102
97
  cursor?: string;
103
- };
104
- export type BeliefRefineInput = {
105
- text: string;
98
+ limit?: number;
99
+ minConfidence?: number;
100
+ status?: string;
101
+ topicId?: string;
102
+ worktreeId?: string;
103
+ }
104
+ export interface BeliefRefineInput {
106
105
  rationale?: string;
107
- };
108
- export type BeliefForkInput = {
109
106
  text: string;
110
- forkReason: "refinement" | "contradiction_response" | "scope_change" | "confidence_collapse";
107
+ }
108
+ export interface BeliefForkInput {
111
109
  forkMode?: "supersede" | "branch";
110
+ forkReason: "refinement" | "contradiction_response" | "scope_change" | "confidence_collapse";
111
+ rationale?: string;
112
+ text: string;
112
113
  triggeringEvidenceId: string;
114
+ }
115
+ export interface BeliefArchiveInput {
113
116
  rationale?: string;
114
- };
115
- export type BeliefArchiveInput = {
116
117
  reason?: string;
117
- rationale?: string;
118
- };
118
+ }
119
119
  export type BeliefContractInput = GatewayRecord;
120
- export type BeliefBisectInput = {
120
+ export interface BeliefBisectInput {
121
121
  expectedDirection: "overconfident" | "underconfident";
122
122
  timeRange?: {
123
123
  start: number;
124
124
  end: number;
125
125
  };
126
- };
127
- export type EdgeCreateInput = {
128
- sourceId: string;
129
- targetId: string;
130
- edgeType: string;
131
- topicId?: string;
126
+ }
127
+ export interface EdgeCreateInput {
132
128
  confidence?: number;
133
- weight?: number;
134
129
  context?: string;
130
+ edgeType: string;
135
131
  reasoning?: string;
136
132
  reasoningMethod?: string;
137
- };
138
- export type EdgeListQuery = {
139
- sourceId?: string;
133
+ sourceId: string;
134
+ targetId: string;
135
+ topicId?: string;
136
+ weight?: number;
137
+ }
138
+ export interface EdgeListQuery {
139
+ cursor?: string;
140
140
  edgeType?: string;
141
141
  limit?: number;
142
- cursor?: string;
143
- };
144
- export type EdgeTraverseInput = {
145
- startNode: string;
142
+ sourceId?: string;
143
+ }
144
+ export interface EdgeTraverseInput {
146
145
  direction?: string;
147
146
  maxDepth?: number;
147
+ startNode: string;
148
148
  topicId?: string;
149
- };
150
- export type EvidenceCreateInput = {
151
- topicId?: string;
152
- text: string;
153
- source?: string;
154
- targetId?: string;
155
- weight?: number;
156
- evidenceRelation?: "supports" | "contradicts";
157
- confidence?: number;
149
+ }
150
+ export interface EvidenceCreateInput {
158
151
  beliefRelations?: Array<{
159
152
  beliefId?: string;
160
153
  beliefNodeId?: string;
@@ -165,152 +158,139 @@ export type EvidenceCreateInput = {
165
158
  weight?: number;
166
159
  rationale?: string;
167
160
  }>;
168
- rationale: string;
169
- metadata?: JsonObject;
170
- title?: string;
161
+ confidence?: number;
171
162
  content?: string;
172
163
  contentType?: string;
173
- kind?: string;
174
- tags?: string[];
175
- sourceUrl?: string;
176
- externalSourceUrl?: string;
177
- sourceType?: string;
164
+ evidenceRelation?: "supports" | "contradicts";
178
165
  externalSourceType?: string;
179
- sourceQuestionId?: string;
180
- methodology?: string;
166
+ externalSourceUrl?: string;
181
167
  informationAsymmetry?: string;
182
- sourceQuality?: "primary" | "analyzed" | "secondary" | "tertiary" | "unknown";
168
+ kind?: string;
169
+ metadata?: JsonObject;
170
+ methodology?: string;
171
+ rationale: string;
172
+ source?: string;
183
173
  sourceDescription?: string;
184
- };
185
- export type EvidenceListQuery = {
186
- topicId?: string;
174
+ sourceQuality?: "primary" | "analyzed" | "secondary" | "tertiary" | "unknown";
175
+ sourceQuestionId?: string;
176
+ sourceType?: string;
177
+ sourceUrl?: string;
178
+ tags?: string[];
187
179
  targetId?: string;
180
+ text: string;
181
+ title?: string;
182
+ topicId?: string;
183
+ weight?: number;
184
+ }
185
+ export interface EvidenceListQuery {
186
+ cursor?: string;
188
187
  limit?: number;
188
+ targetId?: string;
189
+ topicId?: string;
190
+ }
191
+ export interface EvidenceSearchInput {
189
192
  cursor?: string;
190
- };
191
- export type EvidenceSearchInput = {
193
+ limit?: number;
194
+ methodology?: string;
192
195
  q: string;
193
- topicId?: string;
194
196
  targetId?: string;
195
- methodology?: string;
196
- limit?: number;
197
- cursor?: string;
198
- };
199
- export type EvidenceLinkInput = {
197
+ topicId?: string;
198
+ }
199
+ export interface EvidenceLinkInput {
200
+ confidence?: number;
200
201
  evidenceId: string;
202
+ evidenceRelation?: "supports" | "contradicts";
203
+ rationale?: string;
201
204
  targetId: string;
202
205
  targetType?: "belief" | "question";
203
206
  weight?: number;
204
- evidenceRelation?: "supports" | "contradicts";
205
- confidence?: number;
206
- rationale?: string;
207
- };
208
- export type QuestionsListQuery = {
209
- topicId?: string;
210
- status?: string;
211
- priority?: string;
212
- worktreeId?: string;
213
- limit?: number;
207
+ }
208
+ export interface QuestionsListQuery {
214
209
  cursor?: string;
215
- };
216
- export type QuestionCreateInput = {
217
- topicId?: string;
218
- text: string;
210
+ limit?: number;
219
211
  priority?: string;
212
+ status?: string;
213
+ topicId?: string;
214
+ worktreeId?: string;
215
+ }
216
+ export interface QuestionCreateInput {
220
217
  linkedBeliefId?: string;
221
218
  metadata?: JsonObject;
222
- };
223
- export type QuestionAnswerInput = {
219
+ priority?: string;
224
220
  text: string;
221
+ topicId?: string;
222
+ }
223
+ export interface QuestionAnswerInput {
225
224
  confidence?: string;
226
225
  evidenceIds?: string[];
227
226
  rationale?: string;
228
- };
229
- export type QuestionRefineInput = {
230
- text?: string;
227
+ text: string;
228
+ }
229
+ export interface QuestionRefineInput {
230
+ linkedWorktreeId?: string;
231
231
  question?: string;
232
232
  rationale?: string;
233
- linkedWorktreeId?: string;
234
- };
235
- export type QuestionArchiveInput = {
233
+ text?: string;
234
+ }
235
+ export interface QuestionArchiveInput {
236
+ rationale?: string;
236
237
  reason?: string;
238
+ }
239
+ export interface QuestionStatusInput {
237
240
  rationale?: string;
238
- };
239
- export type QuestionStatusInput = {
240
241
  status: string;
241
- rationale?: string;
242
- };
243
- export type SearchQueryInput = {
242
+ }
243
+ export interface SearchQueryInput {
244
+ cursor?: string;
245
+ limit?: number;
246
+ minConfidence?: number;
244
247
  q?: string;
245
248
  query?: string;
246
- topicId?: string;
247
- types?: string[];
248
249
  status?: string;
249
- minConfidence?: number;
250
- limit?: number;
251
- cursor?: string;
252
- };
253
- export type TaskCreateInput = {
254
250
  topicId?: string;
255
- title: string;
251
+ types?: string[];
252
+ }
253
+ export interface TaskCreateInput {
256
254
  description?: string;
257
- taskType?: string;
258
- priority?: string;
259
255
  linkedBeliefId?: string;
260
256
  linkedQuestionId?: string;
261
257
  linkedWorktreeId?: string;
262
- };
263
- export type TaskUpdateInput = {
264
- id: string;
265
- title?: string;
266
- description?: string;
267
258
  priority?: string;
268
- status?: string;
259
+ taskType?: string;
260
+ title: string;
261
+ topicId?: string;
262
+ }
263
+ export interface TaskUpdateInput {
269
264
  assigneeId?: string;
270
265
  blockedReason?: string;
266
+ description?: string;
267
+ id: string;
271
268
  linkedBeliefId?: string;
272
269
  linkedQuestionId?: string;
273
270
  linkedWorktreeId?: string;
274
271
  metadata?: JsonObject;
275
- };
276
- export type TaskCompleteInput = {
272
+ priority?: string;
273
+ status?: string;
274
+ title?: string;
275
+ }
276
+ export interface TaskCompleteInput {
277
277
  id: string;
278
278
  outputSummary: string;
279
- };
280
- export type TaskListQuery = {
281
- topicId?: string;
282
- worktreeId?: string;
283
- status?: string;
279
+ }
280
+ export interface TaskListQuery {
284
281
  limit?: number;
285
- };
286
- export type WorktreeCreateInput = {
287
- title: string;
282
+ status?: string;
288
283
  topicId?: string;
289
- objective?: string;
290
- hypothesis?: string;
291
- rationale?: string;
292
- worktreeType?: string;
293
- startDate?: number;
294
- endDate?: number;
295
- durationWeeks?: number;
296
- confidenceImpact?: "high" | "medium" | "low";
284
+ worktreeId?: string;
285
+ }
286
+ export interface WorktreeCreateInput {
287
+ autoFixPolicy?: unknown;
288
+ autoShape?: boolean;
297
289
  beliefFocus?: string;
298
290
  beliefIds?: string[];
299
- targetBeliefIds?: string[];
300
- targetQuestionIds?: string[];
301
- keyQuestions?: Array<{
302
- question: string;
303
- status?: "open" | "answered" | "forked";
304
- answer?: string;
305
- answerConfidence?: "high" | "medium" | "low";
306
- linkedQuestionId?: string;
307
- }>;
308
- evidenceSignals?: Array<{
309
- signal: string;
310
- collected?: boolean;
311
- progress?: string;
312
- notes?: string;
313
- }>;
291
+ blocks?: string[];
292
+ campaign?: number;
293
+ confidenceImpact?: "high" | "medium" | "low";
314
294
  decisionGate?: {
315
295
  goCriteria: string[];
316
296
  noGoSignals: string[];
@@ -319,98 +299,118 @@ export type WorktreeCreateInput = {
319
299
  decidedAt?: number;
320
300
  decidedBy?: string;
321
301
  };
322
- goCriteria?: string[];
323
- noGoSignals?: string[];
324
- autoShape?: boolean;
302
+ dependsOn?: string[];
325
303
  domainPackId?: string;
326
- campaign?: number;
304
+ durationWeeks?: number;
305
+ endDate?: number;
306
+ evidenceSignals?: Array<{
307
+ signal: string;
308
+ collected?: boolean;
309
+ progress?: string;
310
+ notes?: string;
311
+ }>;
312
+ gate?: string;
313
+ goCriteria?: string[];
314
+ hypothesis?: string;
315
+ keyQuestions?: Array<{
316
+ question: string;
317
+ status?: "open" | "answered" | "forked";
318
+ answer?: string;
319
+ answerConfidence?: "high" | "medium" | "low";
320
+ linkedQuestionId?: string;
321
+ }>;
327
322
  lane?: string;
328
323
  laneOrderInCampaign?: number;
324
+ lastReconciledAt?: number;
325
+ lensId?: string;
326
+ noGoSignals?: string[];
327
+ objective?: string;
329
328
  orderInLane?: number;
330
- dependsOn?: string[];
331
- blocks?: string[];
332
- gate?: string;
333
329
  proofArtifacts?: unknown[];
330
+ rationale?: string;
334
331
  staffingHint?: string;
335
- lastReconciledAt?: number;
336
- autoFixPolicy?: unknown;
337
- lensId?: string;
338
- };
339
- export type WorktreeListQuery = {
332
+ startDate?: number;
333
+ targetBeliefIds?: string[];
334
+ targetQuestionIds?: string[];
335
+ title: string;
340
336
  topicId?: string;
341
- status?: string;
337
+ worktreeType?: string;
338
+ }
339
+ export interface WorktreeListQuery {
340
+ campaign?: number;
342
341
  groupBy?: "campaign" | "lane" | "flat";
343
342
  lane?: string;
344
- campaign?: number;
345
343
  limit?: number;
346
- };
347
- export type WorktreeActivateInput = {
348
- id: string;
349
- };
350
- export type WorktreeUpdateInput = {
344
+ status?: string;
345
+ topicId?: string;
346
+ }
347
+ export interface WorktreeActivateInput {
351
348
  id: string;
352
- objective?: string;
353
- hypothesis?: string;
354
- rationale?: string;
349
+ }
350
+ export interface WorktreeUpdateInput {
351
+ additionalTopicIds?: string[];
352
+ autoFixPolicy?: unknown;
353
+ blocks?: string[];
355
354
  campaign?: number;
355
+ dependsOn?: string[];
356
+ gate?: string;
357
+ hypothesis?: string;
358
+ id: string;
356
359
  lane?: string;
357
360
  laneOrderInCampaign?: number;
361
+ lastReconciledAt?: number;
362
+ lensId?: string;
363
+ objective?: string;
358
364
  orderInLane?: number;
359
- dependsOn?: string[];
360
- blocks?: string[];
361
- gate?: string;
362
- status?: string;
363
- topicId?: string;
364
- additionalTopicIds?: string[];
365
365
  proofArtifacts?: unknown[];
366
+ rationale?: string;
366
367
  staffingHint?: string;
367
- lastReconciledAt?: number;
368
- autoFixPolicy?: unknown;
369
- lensId?: string;
370
- };
371
- export type WorktreeMergeInput = {
368
+ status?: string;
369
+ topicId?: string;
370
+ }
371
+ export interface WorktreeMergeInput {
372
372
  id: string;
373
- summary?: string;
374
373
  outcomes: Array<string | {
375
374
  beliefId: string;
376
375
  confidence: number;
377
376
  rationale: string;
378
377
  }>;
379
- };
380
- export type WorktreeTargetsInput = {
381
- id: string;
378
+ summary?: string;
379
+ }
380
+ export interface WorktreeTargetsInput {
382
381
  addBeliefIds?: string[];
383
382
  addQuestionIds?: string[];
383
+ id: string;
384
384
  removeBeliefIds?: string[];
385
385
  removeQuestionIds?: string[];
386
- };
387
- export type OntologyListInput = {
386
+ }
387
+ export interface OntologyListInput {
388
+ status?: string;
388
389
  tenantId?: string;
389
390
  tier?: string;
390
- status?: string;
391
- };
391
+ }
392
392
  export type OntologyMatchInput = GatewayRecord;
393
393
  export type WebhookCreateInput = GatewayRecord;
394
394
  export type WebhookUpdateInput = GatewayRecord;
395
- export type WebhookListQuery = {
395
+ export interface WebhookListQuery {
396
396
  topicId?: string;
397
- };
398
- export type WebhookTestInput = {
397
+ }
398
+ export interface WebhookTestInput {
399
399
  topicId?: string;
400
- };
401
- export type WebhookDeliveriesQuery = {
400
+ }
401
+ export interface WebhookDeliveriesQuery {
402
402
  limit?: number;
403
- };
404
- export type EventsListQuery = {
405
- topicId?: string;
403
+ }
404
+ export interface EventsListQuery {
406
405
  after?: string;
407
- types?: string[];
408
- startTime?: number;
409
406
  endTime?: number;
410
407
  limit?: number;
411
- };
408
+ startTime?: number;
409
+ topicId?: string;
410
+ types?: string[];
411
+ }
412
412
  export type ReplayEventsInput = GatewayRecord;
413
- export { createBeliefsFacade, createContradictionsFacade, createEdgesFacade, createEvidenceFacade, createEventsFacade, createGraphFacade, createIdentityFacade, createOntologiesFacade, createQuestionsFacade } from "./gatewayFacades.factories";
413
+ export { createBeliefsFacade, createContradictionsFacade, createEdgesFacade, createEventsFacade, createEvidenceFacade, createGraphFacade, createIdentityFacade, createOntologiesFacade, createQuestionsFacade, } from "./gatewayFacades.factories";
414
414
  export declare function createSearchFacade(config?: GatewayClientConfig): {
415
415
  query(input: SearchQueryInput): Promise<PlatformGatewaySuccess<SearchResult>>;
416
416
  };
@@ -1,6 +1,6 @@
1
1
  import { type GatewayClientConfig, type PlatformGatewaySuccess } from "./coreClient";
2
+ import type { BeliefArchiveInput, BeliefBisectInput, BeliefContractInput, BeliefCreateInput, BeliefForkInput, BeliefRecord, BeliefRefineInput, BeliefsLineageResult, BeliefsListQuery, BeliefsListResult, ContradictionsListResult, EdgeCreateInput, EdgeListQuery, EdgeTraverseInput, EventsListQuery, EventsListResult, EvidenceCreateInput, EvidenceCreateResult, EvidenceLinkInput, EvidenceLinkResult, EvidenceListQuery, EvidenceSearchInput, GatewayList, GatewayRecord, GraphFalsifyInput, GraphNeighborhoodInput, OntologyMatchInput, QuestionAnswerInput, QuestionArchiveInput, QuestionCreateInput, QuestionRefineInput, QuestionStatusInput, QuestionsListQuery, QuestionsListResult, ReplayEventsInput } from "./gatewayFacades";
2
3
  import { type OntologyBindingInput } from "./ontologyClient";
3
- import type { BeliefArchiveInput, BeliefBisectInput, BeliefContractInput, BeliefCreateInput, BeliefForkInput, BeliefRecord, BeliefsLineageResult, BeliefsListQuery, BeliefsListResult, BeliefRefineInput, ContradictionsListResult, EdgeCreateInput, EdgeListQuery, EdgeTraverseInput, EvidenceCreateInput, EvidenceCreateResult, EvidenceListQuery, EvidenceLinkInput, EvidenceLinkResult, EvidenceSearchInput, EventsListQuery, EventsListResult, GatewayList, GatewayRecord, GraphFalsifyInput, GraphNeighborhoodInput, OntologyMatchInput, QuestionAnswerInput, QuestionArchiveInput, QuestionCreateInput, QuestionRefineInput, QuestionStatusInput, QuestionsListQuery, QuestionsListResult, ReplayEventsInput } from "./gatewayFacades";
4
4
  export declare function createBeliefsFacade(config?: GatewayClientConfig): {
5
5
  create(input: BeliefCreateInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<BeliefRecord>>;
6
6
  get(id: string): Promise<PlatformGatewaySuccess<BeliefRecord>>;
@@ -111,58 +111,37 @@ export declare function createGraphFacade(config?: GatewayClientConfig): {
111
111
  gaps: (query: import("./graphClient").GapsInput) => Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
112
112
  };
113
113
  export declare function createIdentityFacade(config?: GatewayClientConfig): {
114
- whoami(): Promise<PlatformGatewaySuccess<{
115
- principalId: string;
116
- principalType: "user" | "group" | "human" | "service" | "agent" | "external_viewer";
117
- clerkId: string | undefined;
118
- tenantId: string | null;
119
- workspaceId: string | null;
120
- scopes: string[];
121
- roles: string[];
122
- groupIds: string[];
123
- permittedToolNames: string[];
124
- permittedPackKeys: string[];
125
- principalStatus: string | undefined;
126
- tenantStatus: string | undefined;
127
- workspaceStatus: string | undefined;
114
+ whoami(): Promise<{
115
+ authMode?: string;
116
+ clerkId?: string;
117
+ delegatedBy?: string;
118
+ expiresAt?: number;
119
+ groupIds?: string[];
128
120
  isPlatformAdmin: boolean;
129
121
  isTenantAdmin: boolean;
130
122
  isWorkspaceAdmin: boolean;
131
- permit: {
123
+ permit?: {
132
124
  subject: string;
133
125
  tenant: string;
134
126
  workspace?: string;
135
- } | undefined;
136
- authMode: string | undefined;
137
- sessionId: string | undefined;
138
- delegatedBy: string | undefined;
139
- expiresAt: number | undefined;
140
- }> & {
127
+ };
128
+ permittedPackKeys?: string[];
129
+ permittedToolNames?: string[];
141
130
  principalId: string;
142
- principalType: "user" | "group" | "human" | "service" | "agent" | "external_viewer";
143
- clerkId: string | undefined;
131
+ principalStatus?: string;
132
+ principalType: "user" | "human" | "service" | "group" | "external_viewer" | "agent";
133
+ roles: string[];
134
+ scopes: string[];
135
+ sessionId?: string;
144
136
  tenantId: string | null;
137
+ tenantStatus?: string;
145
138
  workspaceId: string | null;
146
- scopes: string[];
147
- roles: string[];
148
- groupIds: string[];
149
- permittedToolNames: string[];
150
- permittedPackKeys: string[];
151
- principalStatus: string | undefined;
152
- tenantStatus: string | undefined;
153
- workspaceStatus: string | undefined;
154
- isPlatformAdmin: boolean;
155
- isTenantAdmin: boolean;
156
- isWorkspaceAdmin: boolean;
157
- permit: {
158
- subject: string;
159
- tenant: string;
160
- workspace?: string;
161
- } | undefined;
162
- authMode: string | undefined;
163
- sessionId: string | undefined;
164
- delegatedBy: string | undefined;
165
- expiresAt: number | undefined;
139
+ workspaceStatus?: string;
140
+ correlationId: string;
141
+ data: import("./types").SdkPrincipalContext;
142
+ idempotentReplay: boolean;
143
+ policyTraceId: string | null;
144
+ success: true;
166
145
  }>;
167
146
  };
168
147
  export declare function createOntologiesFacade(config?: GatewayClientConfig): {