@lucern/sdk 1.0.28 → 1.0.30
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.
- package/CHANGELOG.md +15 -0
- package/dist/accessControl.d.ts +31 -31
- package/dist/accessControl.js +1 -0
- package/dist/adminClient.d.ts +74 -74
- package/dist/adminClient.js +38 -30
- package/dist/{answersClient.d.ts → answers-client.d.ts} +1 -1
- package/dist/{answersClient.js → answers-client.js} +2 -2
- package/dist/audience/index.d.ts +12 -12
- package/dist/{audiencesClient.d.ts → audiences-client.d.ts} +1 -1
- package/dist/audiences-client.js +107 -0
- package/dist/{auditClient.d.ts → audit-client.d.ts} +2 -3
- package/dist/{auditClient.js → audit-client.js} +8 -7
- package/dist/authContext.d.ts +26 -26
- package/dist/authDeviceClient.d.ts +11 -11
- package/dist/authDeviceClient.js +4 -6
- package/dist/beliefs/index.d.ts +56 -28
- package/dist/beliefs/index.js +2 -1
- package/dist/beliefsClient.d.ts +71 -63
- package/dist/beliefsClient.js +90 -67
- package/dist/{boundaryClientSurface.d.ts → boundary-client-surface.d.ts} +4 -4
- package/dist/{boundaryClientSurface.js → boundary-client-surface.js} +9 -7
- package/dist/client-assembly-types.d.ts +219 -0
- package/dist/client-assembly-types.js +2 -0
- package/dist/{clientConfig.d.ts → client-config.d.ts} +16 -32
- package/dist/client-config.js +2 -0
- package/dist/{clientEvidenceCompat.d.ts → client-evidence-compat.d.ts} +24 -24
- package/dist/{clientEvidenceCompat.js → client-evidence-compat.js} +2 -2
- package/dist/client.d.ts +1906 -352
- package/dist/client.js +34 -30
- package/dist/clientGraphNamespaces.d.ts +35 -25
- package/dist/clientGraphNamespaces.js +11 -5
- package/dist/clientHelpers.js +8 -5
- package/dist/clientKnowledgeNamespaces.d.ts +124 -84
- package/dist/clientKnowledgeNamespaces.js +35 -34
- package/dist/clientLocalHelpers.d.ts +81 -52
- package/dist/clientLocalHelpers.js +193 -43
- package/dist/clientPlatformNamespaces.d.ts +1541 -150
- package/dist/clientPlatformNamespaces.js +10 -5
- package/dist/clientRuntime.d.ts +1 -1
- package/dist/clientRuntime.js +1 -1
- package/dist/clientWorkflowNamespaces.d.ts +211 -97
- package/dist/clientWorkflowNamespaces.js +22 -19
- package/dist/contextClient.d.ts +2 -2
- package/dist/contextClient.js +79 -50
- package/dist/contextFacade.d.ts +1 -1
- package/dist/contextFacade.js +2 -0
- package/dist/contextPackCompiler.d.ts +52 -52
- package/dist/contextPackCompiler.js +192 -122
- package/dist/contextPackPolicy.d.ts +22 -22
- package/dist/contextPackPolicy.js +21 -9
- package/dist/contextPackSchema.d.ts +3 -3
- package/dist/contextPackSchema.js +1 -0
- package/dist/contextTypes.d.ts +155 -155
- package/dist/contracts/api-enums.contract.js +2 -11
- package/dist/contracts/auth-session.contract.d.ts +16 -16
- package/dist/contracts/auth-session.contract.js +3 -2
- package/dist/contracts/context-pack.contract.d.ts +216 -216
- package/dist/contracts/contextPack.js +2 -0
- package/dist/contracts/index.d.ts +1 -1
- package/dist/contracts/index.js +2 -1
- package/dist/contracts/lens-filter.contract.d.ts +8 -8
- package/dist/contracts/lens-filter.contract.js +10 -10
- package/dist/contracts/lens-workflow.contract.d.ts +32 -32
- package/dist/contracts/lens-workflow.contract.js +2 -1
- package/dist/contracts/lensFilter.js +2 -0
- package/dist/contracts/lensWorkflow.js +2 -0
- package/dist/contracts/mcpTools.d.ts +19 -19
- package/dist/contracts/mcpTools.js +3 -1
- package/dist/contracts/prompt.contract.d.ts +12 -12
- package/dist/contracts/prompt.js +1 -0
- package/dist/contracts/sdk-tools.contract.js +1 -0
- package/dist/contracts/sdkTools.js +2 -0
- package/dist/contracts/tool-contracts.js +1 -0
- package/dist/contracts/workflow-runtime.contract.d.ts +45 -45
- package/dist/contracts/workflow-runtime.contract.js +1 -5
- package/dist/contracts/workflowRuntime.js +2 -0
- package/dist/contradictions/index.d.ts +8 -8
- package/dist/contradictions/index.js +1 -0
- package/dist/control-plane.d.ts +10 -10
- package/dist/control-plane.js +2 -2
- package/dist/controlObjectOwnership.d.ts +11 -11
- package/dist/controlObjectOwnership.js +1 -0
- package/dist/coreClient.d.ts +51 -51
- package/dist/coreClient.js +269 -101
- package/dist/customTools.d.ts +19 -19
- package/dist/customTools.js +4 -2
- package/dist/decisions/index.d.ts +18 -18
- package/dist/decisions/index.js +1 -0
- package/dist/decisionsClient.d.ts +4 -4
- package/dist/decisionsClient.js +36 -27
- package/dist/edges/index.d.ts +20 -18
- package/dist/edges/index.js +1 -0
- package/dist/embeddingsClient.d.ts +29 -29
- package/dist/embeddingsClient.js +15 -8
- package/dist/eventingClient.d.ts +27 -27
- package/dist/eventingClient.js +10 -5
- package/dist/events.d.ts +83 -83
- package/dist/events.js +19 -15
- package/dist/eventsCore.d.ts +7 -7
- package/dist/eventsCore.js +11 -10
- package/dist/evidence/index.d.ts +23 -21
- package/dist/evidence/index.js +1 -0
- package/dist/evidenceClient.d.ts +23 -23
- package/dist/evidenceClient.js +10 -6
- package/dist/facade/context.d.ts +9 -9
- package/dist/facade/context.js +67 -41
- package/dist/functionSurface.js +2 -0
- package/dist/functionSurfaceClient.js +2 -0
- package/dist/gatewayFacades.d.ts +215 -215
- package/dist/gatewayFacades.factories.d.ts +23 -44
- package/dist/gatewayFacades.factories.js +63 -62
- package/dist/gatewayFacades.js +31 -32
- package/dist/graphAnalysisClient.d.ts +60 -60
- package/dist/graphAnalysisClient.js +19 -18
- package/dist/graphClient.d.ts +34 -34
- package/dist/graphClient.js +56 -35
- package/dist/graphIntel.js +2 -0
- package/dist/graphIntelligence.d.ts +2 -2
- package/dist/graphIntelligence.js +1 -1
- package/dist/graphRecommendationsClient.d.ts +24 -24
- package/dist/graphRecommendationsClient.js +12 -7
- package/dist/graphStateClassifierClient.d.ts +13 -13
- package/dist/graphStateClassifierClient.js +10 -5
- package/dist/harnessClient.d.ts +61 -61
- package/dist/harnessClient.js +44 -31
- package/dist/identityClient.d.ts +33 -59
- package/dist/identityClient.js +126 -98
- package/dist/index.d.ts +20 -20
- package/dist/index.js +20 -19
- package/dist/infisicalRuntime.d.ts +11 -11
- package/dist/infisicalRuntime.js +20 -14
- package/dist/jobsClient.d.ts +28 -28
- package/dist/jobsClient.js +6 -3
- package/dist/learningClient.js +13 -8
- package/dist/lenses/index.d.ts +124 -28
- package/dist/lenses/index.js +1 -0
- package/dist/mcpClient.d.ts +1 -1
- package/dist/mcpClient.js +3 -3
- package/dist/modelRuntimeClient.d.ts +27 -27
- package/dist/modelRuntimeClient.js +10 -5
- package/dist/nodes/index.d.ts +9 -9
- package/dist/nodes/index.js +1 -0
- package/dist/ontologies/index.d.ts +68 -22
- package/dist/ontologies/index.js +1 -0
- package/dist/ontologyClient.js +24 -17
- package/dist/ontologyLinksClient.d.ts +35 -35
- package/dist/ontologyLinksClient.js +9 -6
- package/dist/opinion.d.ts +3 -3
- package/dist/opinion.js +12 -5
- package/dist/orgGraphSearchClient.d.ts +39 -39
- package/dist/orgGraphSearchClient.js +22 -13
- package/dist/packsClient.d.ts +1 -1
- package/dist/packsClient.js +28 -19
- package/dist/policyClient.d.ts +79 -68
- package/dist/policyClient.js +18 -12
- package/dist/proof-attestation.json +1 -1
- package/dist/questions/index.d.ts +38 -27
- package/dist/questions/index.js +1 -0
- package/dist/realtime/index.d.ts +3 -3
- package/dist/realtime/index.js +1 -0
- package/dist/realtime/refs.d.ts +2 -2
- package/dist/{reportsClient.d.ts → reports-client.d.ts} +2 -2
- package/dist/{reportsClient.js → reports-client.js} +19 -13
- package/dist/{schemaClient.d.ts → schema-client.d.ts} +2 -3
- package/dist/{schemaClient.js → schema-client.js} +14 -11
- package/dist/sdkSurface.d.ts +12 -12
- package/dist/sdkSurface.js +14 -10
- package/dist/secrets.d.ts +1 -1
- package/dist/secrets.js +2 -1
- package/dist/{sourcesClient.d.ts → sources-client.d.ts} +8 -9
- package/dist/{sourcesClient.js → sources-client.js} +4 -5
- package/dist/{telemetryClient.d.ts → telemetry-client.d.ts} +14 -14
- package/dist/{telemetryClient.js → telemetry-client.js} +6 -4
- package/dist/toolRegistryClient.d.ts +46 -46
- package/dist/toolRegistryClient.js +22 -11
- package/dist/topics/index.d.ts +23 -23
- package/dist/topics/index.js +2 -1
- package/dist/topicsClient.d.ts +6 -6
- package/dist/topicsClient.js +29 -18
- package/dist/types.d.ts +356 -355
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/workflowClient.d.ts +36 -35
- package/dist/workflowClient.js +88 -60
- package/dist/worktrees/index.d.ts +118 -32
- package/dist/worktrees/index.js +2 -1
- package/package.json +45 -5
- package/dist/audiencesClient.js +0 -115
- package/dist/clientAssemblyTypes.d.ts +0 -33
- package/dist/clientAssemblyTypes.js +0 -2
- package/dist/clientConfig.js +0 -2
package/dist/gatewayFacades.d.ts
CHANGED
|
@@ -22,37 +22,37 @@ export type SearchResult = GatewayList & {
|
|
|
22
22
|
beliefs?: GatewayRecord[];
|
|
23
23
|
results?: GatewayRecord[];
|
|
24
24
|
};
|
|
25
|
-
export
|
|
25
|
+
export interface GraphNeighborhoodInput {
|
|
26
26
|
globalId?: string;
|
|
27
27
|
globalIds?: string | string[];
|
|
28
28
|
maxDepth?: number;
|
|
29
|
-
}
|
|
30
|
-
export
|
|
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
|
|
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
|
-
|
|
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
|
|
83
|
-
topicId?: string;
|
|
84
|
-
text: string;
|
|
82
|
+
export interface BeliefCreateInput {
|
|
85
83
|
baseRate?: number;
|
|
86
|
-
|
|
87
|
-
|
|
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
|
-
|
|
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
|
-
|
|
101
|
-
|
|
95
|
+
}
|
|
96
|
+
export interface BeliefsListQuery {
|
|
102
97
|
cursor?: string;
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
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
|
-
|
|
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
|
-
|
|
118
|
-
};
|
|
118
|
+
}
|
|
119
119
|
export type BeliefContractInput = GatewayRecord;
|
|
120
|
-
export
|
|
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
|
|
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
|
-
|
|
139
|
-
|
|
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
|
-
|
|
143
|
-
}
|
|
144
|
-
export
|
|
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
|
|
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
|
-
|
|
169
|
-
metadata?: JsonObject;
|
|
170
|
-
title?: string;
|
|
161
|
+
confidence?: number;
|
|
171
162
|
content?: string;
|
|
172
163
|
contentType?: string;
|
|
173
|
-
|
|
174
|
-
tags?: string[];
|
|
175
|
-
sourceUrl?: string;
|
|
176
|
-
externalSourceUrl?: string;
|
|
177
|
-
sourceType?: string;
|
|
164
|
+
evidenceRelation?: "supports" | "contradicts";
|
|
178
165
|
externalSourceType?: string;
|
|
179
|
-
|
|
180
|
-
methodology?: string;
|
|
166
|
+
externalSourceUrl?: string;
|
|
181
167
|
informationAsymmetry?: string;
|
|
182
|
-
|
|
168
|
+
kind?: string;
|
|
169
|
+
metadata?: JsonObject;
|
|
170
|
+
methodology?: string;
|
|
171
|
+
rationale: string;
|
|
172
|
+
source?: string;
|
|
183
173
|
sourceDescription?: string;
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
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
|
-
|
|
193
|
+
limit?: number;
|
|
194
|
+
methodology?: string;
|
|
192
195
|
q: string;
|
|
193
|
-
topicId?: string;
|
|
194
196
|
targetId?: string;
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
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
|
-
|
|
205
|
-
|
|
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
|
-
|
|
230
|
-
|
|
227
|
+
text: string;
|
|
228
|
+
}
|
|
229
|
+
export interface QuestionRefineInput {
|
|
230
|
+
linkedWorktreeId?: string;
|
|
231
231
|
question?: string;
|
|
232
232
|
rationale?: string;
|
|
233
|
-
|
|
234
|
-
}
|
|
235
|
-
export
|
|
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
|
-
|
|
242
|
-
|
|
243
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
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
|
-
|
|
300
|
-
|
|
301
|
-
|
|
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
|
-
|
|
323
|
-
noGoSignals?: string[];
|
|
324
|
-
autoShape?: boolean;
|
|
302
|
+
dependsOn?: string[];
|
|
325
303
|
domainPackId?: string;
|
|
326
|
-
|
|
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
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
export type WorktreeListQuery = {
|
|
332
|
+
startDate?: number;
|
|
333
|
+
targetBeliefIds?: string[];
|
|
334
|
+
targetQuestionIds?: string[];
|
|
335
|
+
title: string;
|
|
340
336
|
topicId?: string;
|
|
341
|
-
|
|
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
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
export type WorktreeUpdateInput = {
|
|
344
|
+
status?: string;
|
|
345
|
+
topicId?: string;
|
|
346
|
+
}
|
|
347
|
+
export interface WorktreeActivateInput {
|
|
351
348
|
id: string;
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
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
|
-
|
|
368
|
-
|
|
369
|
-
|
|
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
|
-
|
|
381
|
-
|
|
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
|
|
386
|
+
}
|
|
387
|
+
export interface OntologyListInput {
|
|
388
|
+
status?: string;
|
|
388
389
|
tenantId?: string;
|
|
389
390
|
tier?: string;
|
|
390
|
-
|
|
391
|
-
};
|
|
391
|
+
}
|
|
392
392
|
export type OntologyMatchInput = GatewayRecord;
|
|
393
393
|
export type WebhookCreateInput = GatewayRecord;
|
|
394
394
|
export type WebhookUpdateInput = GatewayRecord;
|
|
395
|
-
export
|
|
395
|
+
export interface WebhookListQuery {
|
|
396
396
|
topicId?: string;
|
|
397
|
-
}
|
|
398
|
-
export
|
|
397
|
+
}
|
|
398
|
+
export interface WebhookTestInput {
|
|
399
399
|
topicId?: string;
|
|
400
|
-
}
|
|
401
|
-
export
|
|
400
|
+
}
|
|
401
|
+
export interface WebhookDeliveriesQuery {
|
|
402
402
|
limit?: number;
|
|
403
|
-
}
|
|
404
|
-
export
|
|
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,
|
|
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<
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
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
|
-
}
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
delegatedBy: string | undefined;
|
|
139
|
-
expiresAt: number | undefined;
|
|
140
|
-
}> & {
|
|
127
|
+
};
|
|
128
|
+
permittedPackKeys?: string[];
|
|
129
|
+
permittedToolNames?: string[];
|
|
141
130
|
principalId: string;
|
|
142
|
-
|
|
143
|
-
|
|
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
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
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): {
|