@lucern/sdk 1.0.10 → 1.0.12
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 +6 -0
- package/README.md +35 -0
- package/dist/.generated +2 -0
- package/dist/accessControl.d.ts +19 -26
- package/dist/accessControl.js +195 -1423
- package/dist/adminClient.d.ts +52 -59
- package/dist/adminClient.js +364 -1142
- package/dist/answersClient.d.ts +5 -14
- package/dist/answersClient.js +19 -737
- package/dist/audience/index.d.ts +18 -18
- package/dist/audience/index.js +87 -90
- package/dist/audiencesClient.d.ts +19 -27
- package/dist/audiencesClient.js +107 -868
- package/dist/auditClient.d.ts +8 -15
- package/dist/auditClient.js +18 -791
- package/dist/authContext.d.ts +11 -16
- package/dist/authContext.js +122 -154
- package/dist/authDeviceClient.d.ts +8 -17
- package/dist/authDeviceClient.js +113 -102
- package/dist/beliefs/index.d.ts +15 -67
- package/dist/beliefs/index.js +17 -10172
- package/dist/beliefs/lifecycle.d.ts +10 -11
- package/dist/beliefs/lifecycle.js +78 -80
- package/dist/beliefsClient.d.ts +26 -32
- package/dist/beliefsClient.js +250 -990
- package/dist/boundaryClientSurface.d.ts +11 -16
- package/dist/boundaryClientSurface.js +49 -68
- package/dist/client.d.ts +73 -112
- package/dist/client.js +232 -10146
- package/dist/clientAssemblyTypes.d.ts +3 -3
- package/dist/clientAssemblyTypes.js +1 -2
- package/dist/clientConfig.d.ts +45 -59
- package/dist/clientConfig.js +1 -2
- package/dist/clientEvidenceCompat.d.ts +7 -14
- package/dist/clientEvidenceCompat.js +50 -64
- package/dist/clientGraphNamespaces.d.ts +3 -5
- package/dist/clientGraphNamespaces.js +170 -245
- package/dist/clientHelpers.d.ts +20 -25
- package/dist/clientHelpers.js +104 -127
- package/dist/clientKnowledgeNamespaces.d.ts +6 -53
- package/dist/clientKnowledgeNamespaces.js +502 -506
- package/dist/clientLocalHelpers.d.ts +11 -56
- package/dist/clientLocalHelpers.js +503 -732
- package/dist/clientPlatformNamespaces.d.ts +14 -53
- package/dist/clientPlatformNamespaces.js +229 -314
- package/dist/clientRuntime.d.ts +5 -53
- package/dist/clientRuntime.js +26 -30
- package/dist/clientWorkflowNamespaces.d.ts +6 -15
- package/dist/clientWorkflowNamespaces.js +529 -596
- package/dist/contextClient.d.ts +9 -17
- package/dist/contextClient.js +92 -805
- package/dist/contextFacade.d.ts +11 -2
- package/dist/contextFacade.js +10 -81
- package/dist/contextPackCompiler.d.ts +10 -11
- package/dist/contextPackCompiler.js +494 -1040
- package/dist/contextPackPolicy.d.ts +14 -15
- package/dist/contextPackPolicy.js +227 -305
- package/dist/contextPackSchema.d.ts +3 -3
- package/dist/contextPackSchema.js +169 -176
- package/dist/contextTypes.d.ts +14 -15
- package/dist/contextTypes.js +1 -2
- package/dist/contracts/api-enums.contract.d.ts +29 -30
- package/dist/contracts/api-enums.contract.js +162 -88
- package/dist/contracts/auth-session.contract.d.ts +13 -14
- package/dist/contracts/auth-session.contract.js +55 -52
- package/dist/contracts/context-pack.contract.d.ts +54 -55
- package/dist/contracts/context-pack.contract.js +160 -88
- package/dist/contracts/contextPack.d.ts +2 -1
- package/dist/contracts/contextPack.js +1 -97
- package/dist/contracts/index.d.ts +11 -12
- package/dist/contracts/index.js +10 -854
- package/dist/contracts/lens-filter.contract.d.ts +9 -10
- package/dist/contracts/lens-filter.contract.js +82 -58
- package/dist/contracts/lens-workflow.contract.d.ts +21 -23
- package/dist/contracts/lens-workflow.contract.js +48 -117
- package/dist/contracts/lensFilter.d.ts +2 -1
- package/dist/contracts/lensFilter.js +1 -71
- package/dist/contracts/lensWorkflow.d.ts +2 -2
- package/dist/contracts/lensWorkflow.js +1 -123
- package/dist/contracts/mcpTools.d.ts +16 -18
- package/dist/contracts/mcpTools.js +89 -123
- package/dist/contracts/prompt.contract.d.ts +4 -5
- package/dist/contracts/prompt.contract.js +23 -10
- package/dist/contracts/prompt.d.ts +2 -1
- package/dist/contracts/prompt.js +1 -11
- package/dist/contracts/sdk-tools.contract.d.ts +2 -1
- package/dist/contracts/sdk-tools.contract.js +1 -2
- package/dist/contracts/sdkTools.d.ts +2 -1
- package/dist/contracts/sdkTools.js +1 -26
- package/dist/contracts/tool-contracts.d.ts +2 -1
- package/dist/contracts/tool-contracts.js +1 -2
- package/dist/contracts/workflow-runtime.contract.d.ts +45 -46
- package/dist/contracts/workflow-runtime.contract.js +241 -228
- package/dist/contracts/workflowRuntime.d.ts +2 -1
- package/dist/contracts/workflowRuntime.js +1 -244
- package/dist/contradictions/index.d.ts +8 -60
- package/dist/contradictions/index.js +11 -10166
- package/dist/control-plane.d.ts +17 -24
- package/dist/control-plane.js +124 -840
- package/dist/controlObjectOwnership.d.ts +19 -20
- package/dist/controlObjectOwnership.js +207 -201
- package/dist/coreClient.d.ts +23 -28
- package/dist/coreClient.js +567 -692
- package/dist/customTools.d.ts +17 -21
- package/dist/customTools.js +221 -221
- package/dist/decisions/index.d.ts +7 -58
- package/dist/decisions/index.js +14 -10168
- package/dist/decisionsClient.d.ts +25 -32
- package/dist/decisionsClient.js +113 -913
- package/dist/domainContext.d.ts +2 -1
- package/dist/domainContext.js +1 -2
- package/dist/edges/index.d.ts +21 -73
- package/dist/edges/index.js +12 -10167
- package/dist/embeddingsClient.d.ts +22 -30
- package/dist/embeddingsClient.js +73 -922
- package/dist/eventingClient.d.ts +23 -31
- package/dist/eventingClient.js +89 -918
- package/dist/events.d.ts +48 -49
- package/dist/events.js +257 -241
- package/dist/eventsCore.d.ts +20 -29
- package/dist/eventsCore.js +86 -830
- package/dist/evidence/index.d.ts +9 -60
- package/dist/evidence/index.js +13 -10167
- package/dist/evidenceClient.d.ts +13 -22
- package/dist/evidenceClient.js +34 -751
- package/dist/facade/context.d.ts +7 -8
- package/dist/facade/context.js +73 -72
- package/dist/functionSurface.d.ts +2 -156
- package/dist/functionSurface.js +1 -1460
- package/dist/functionSurfaceClient.d.ts +2 -9
- package/dist/functionSurfaceClient.js +1 -1460
- package/dist/gatewayFacades.d.ts +79 -296
- package/dist/gatewayFacades.factories.d.ts +209 -14
- package/dist/gatewayFacades.factories.js +561 -2227
- package/dist/gatewayFacades.js +284 -2627
- package/dist/generated/functionSurface.d.ts +149 -0
- package/dist/generated/functionSurface.js +749 -0
- package/dist/graphAnalysisClient.d.ts +41 -49
- package/dist/graphAnalysisClient.js +185 -974
- package/dist/graphClient.d.ts +53 -60
- package/dist/graphClient.js +219 -1090
- package/dist/graphIntel.d.ts +2 -4
- package/dist/graphIntel.js +1 -2
- package/dist/graphIntelligence.d.ts +4 -2
- package/dist/graphIntelligence.js +2 -46
- package/dist/graphRecommendationsClient.d.ts +15 -23
- package/dist/graphRecommendationsClient.js +70 -849
- package/dist/graphStateClassifierClient.d.ts +17 -25
- package/dist/graphStateClassifierClient.js +67 -908
- package/dist/harnessClient.d.ts +40 -47
- package/dist/harnessClient.js +198 -993
- package/dist/identityClient.d.ts +25 -33
- package/dist/identityClient.js +245 -1186
- package/dist/index.d.ts +73 -69
- package/dist/index.js +72 -13304
- package/dist/infisicalRuntime.d.ts +12 -14
- package/dist/infisicalRuntime.js +290 -297
- package/dist/jobsClient.d.ts +24 -32
- package/dist/jobsClient.js +101 -916
- package/dist/learningClient.d.ts +8 -16
- package/dist/learningClient.js +45 -809
- package/dist/lenses/index.d.ts +13 -65
- package/dist/lenses/index.js +11 -10166
- package/dist/mcpClient.d.ts +14 -23
- package/dist/mcpClient.js +115 -856
- package/dist/modelRuntimeClient.d.ts +18 -26
- package/dist/modelRuntimeClient.js +74 -894
- package/dist/nodes/index.d.ts +7 -58
- package/dist/nodes/index.js +14 -10168
- package/dist/ontologies/index.d.ts +21 -73
- package/dist/ontologies/index.js +14 -10169
- package/dist/ontologyClient.d.ts +23 -31
- package/dist/ontologyClient.js +138 -924
- package/dist/ontologyLinksClient.d.ts +16 -24
- package/dist/ontologyLinksClient.js +76 -886
- package/dist/opinion.d.ts +5 -6
- package/dist/opinion.js +21 -25
- package/dist/orgGraphSearchClient.d.ts +19 -27
- package/dist/orgGraphSearchClient.js +89 -857
- package/dist/packRuntime.d.ts +2 -2
- package/dist/packRuntime.js +1 -2
- package/dist/packsClient.d.ts +30 -37
- package/dist/packsClient.js +131 -906
- package/dist/policyClient.d.ts +21 -29
- package/dist/policyClient.js +267 -1026
- package/dist/proof-attestation.json +1 -1
- package/dist/questions/index.d.ts +9 -60
- package/dist/questions/index.js +15 -10169
- package/dist/realtime/index.d.ts +20 -16
- package/dist/realtime/index.js +30 -19
- package/dist/realtime/refs.d.ts +4 -6
- package/dist/realtime/refs.js +12 -7
- package/dist/realtime-refs.d.ts +1 -0
- package/dist/realtime-refs.js +1 -0
- package/dist/realtime.d.ts +1 -0
- package/dist/realtime.js +1 -0
- package/dist/reportsClient.d.ts +10 -19
- package/dist/reportsClient.js +48 -836
- package/dist/schemaClient.d.ts +16 -23
- package/dist/schemaClient.js +62 -832
- package/dist/sdkSurface.d.ts +18 -25
- package/dist/sdkSurface.js +135 -106
- package/dist/secrets.d.ts +2 -1
- package/dist/secrets.js +1 -2
- package/dist/sourcesClient.d.ts +11 -18
- package/dist/sourcesClient.js +18 -741
- package/dist/telemetryClient.d.ts +22 -30
- package/dist/telemetryClient.js +107 -931
- package/dist/toolRegistryClient.d.ts +27 -35
- package/dist/toolRegistryClient.js +116 -954
- package/dist/topics/index.d.ts +13 -64
- package/dist/topics/index.js +15 -10169
- package/dist/topicsClient.d.ts +19 -27
- package/dist/topicsClient.js +106 -894
- package/dist/types.d.ts +84 -87
- package/dist/types.js +1 -2
- package/dist/version.d.ts +2 -3
- package/dist/version.js +2 -5
- package/dist/workflowClient.d.ts +60 -65
- package/dist/workflowClient.js +343 -1219
- package/dist/worktrees/index.d.ts +16 -68
- package/dist/worktrees/index.js +14 -10169
- package/package.json +6 -6
- package/dist/accessControl.js.map +0 -1
- package/dist/adminClient.js.map +0 -1
- package/dist/answersClient.js.map +0 -1
- package/dist/audience/index.js.map +0 -1
- package/dist/audiencesClient.js.map +0 -1
- package/dist/auditClient.js.map +0 -1
- package/dist/authContext.js.map +0 -1
- package/dist/authDeviceClient.js.map +0 -1
- package/dist/beliefs/index.js.map +0 -1
- package/dist/beliefs/lifecycle.js.map +0 -1
- package/dist/beliefsClient.js.map +0 -1
- package/dist/boundaryClientSurface.js.map +0 -1
- package/dist/client.js.map +0 -1
- package/dist/clientAssemblyTypes.js.map +0 -1
- package/dist/clientConfig.js.map +0 -1
- package/dist/clientEvidenceCompat.js.map +0 -1
- package/dist/clientGraphNamespaces.js.map +0 -1
- package/dist/clientHelpers.js.map +0 -1
- package/dist/clientKnowledgeNamespaces.js.map +0 -1
- package/dist/clientLocalHelpers.js.map +0 -1
- package/dist/clientPlatformNamespaces.js.map +0 -1
- package/dist/clientRuntime.js.map +0 -1
- package/dist/clientWorkflowNamespaces.js.map +0 -1
- package/dist/contextClient.js.map +0 -1
- package/dist/contextFacade.js.map +0 -1
- package/dist/contextPackCompiler.js.map +0 -1
- package/dist/contextPackPolicy.js.map +0 -1
- package/dist/contextPackSchema.js.map +0 -1
- package/dist/contextTypes.js.map +0 -1
- package/dist/contracts/api-enums.contract.js.map +0 -1
- package/dist/contracts/auth-session.contract.js.map +0 -1
- package/dist/contracts/context-pack.contract.js.map +0 -1
- package/dist/contracts/contextPack.js.map +0 -1
- package/dist/contracts/index.js.map +0 -1
- package/dist/contracts/lens-filter.contract.js.map +0 -1
- package/dist/contracts/lens-workflow.contract.js.map +0 -1
- package/dist/contracts/lensFilter.js.map +0 -1
- package/dist/contracts/lensWorkflow.js.map +0 -1
- package/dist/contracts/mcpTools.js.map +0 -1
- package/dist/contracts/prompt.contract.js.map +0 -1
- package/dist/contracts/prompt.js.map +0 -1
- package/dist/contracts/sdk-tools.contract.js.map +0 -1
- package/dist/contracts/sdkTools.js.map +0 -1
- package/dist/contracts/tool-contracts.js.map +0 -1
- package/dist/contracts/workflow-runtime.contract.js.map +0 -1
- package/dist/contracts/workflowRuntime.js.map +0 -1
- package/dist/contradictions/index.js.map +0 -1
- package/dist/control-plane.js.map +0 -1
- package/dist/controlObjectOwnership.js.map +0 -1
- package/dist/coreClient.js.map +0 -1
- package/dist/customTools.js.map +0 -1
- package/dist/decisions/index.js.map +0 -1
- package/dist/decisionsClient.js.map +0 -1
- package/dist/domainContext.js.map +0 -1
- package/dist/edges/index.js.map +0 -1
- package/dist/embeddingsClient.js.map +0 -1
- package/dist/eventingClient.js.map +0 -1
- package/dist/events.js.map +0 -1
- package/dist/eventsCore.js.map +0 -1
- package/dist/evidence/index.js.map +0 -1
- package/dist/evidenceClient.js.map +0 -1
- package/dist/facade/context.js.map +0 -1
- package/dist/functionSurface.js.map +0 -1
- package/dist/functionSurfaceClient.js.map +0 -1
- package/dist/gatewayFacades.factories.js.map +0 -1
- package/dist/gatewayFacades.js.map +0 -1
- package/dist/graphAnalysisClient.js.map +0 -1
- package/dist/graphClient.js.map +0 -1
- package/dist/graphIntel.js.map +0 -1
- package/dist/graphIntelligence.js.map +0 -1
- package/dist/graphRecommendationsClient.js.map +0 -1
- package/dist/graphStateClassifierClient.js.map +0 -1
- package/dist/harnessClient.js.map +0 -1
- package/dist/identityClient.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/infisicalRuntime.js.map +0 -1
- package/dist/jobsClient.js.map +0 -1
- package/dist/learningClient.js.map +0 -1
- package/dist/lenses/index.js.map +0 -1
- package/dist/mcpClient.js.map +0 -1
- package/dist/modelRuntimeClient.js.map +0 -1
- package/dist/nodes/index.js.map +0 -1
- package/dist/ontologies/index.js.map +0 -1
- package/dist/ontologyClient.js.map +0 -1
- package/dist/ontologyLinksClient.js.map +0 -1
- package/dist/opinion.js.map +0 -1
- package/dist/orgGraphSearchClient.js.map +0 -1
- package/dist/packRuntime.js.map +0 -1
- package/dist/packsClient.js.map +0 -1
- package/dist/policyClient.js.map +0 -1
- package/dist/questions/index.js.map +0 -1
- package/dist/realtime/index.js.map +0 -1
- package/dist/realtime/refs.js.map +0 -1
- package/dist/reportsClient.js.map +0 -1
- package/dist/schemaClient.js.map +0 -1
- package/dist/sdk-tools.contract-B4c1Zr1o.d.ts +0 -22
- package/dist/sdkSurface.js.map +0 -1
- package/dist/secrets.js.map +0 -1
- package/dist/sourcesClient.js.map +0 -1
- package/dist/telemetryClient.js.map +0 -1
- package/dist/tool-contracts-BUiL9P6z.d.ts +0 -22
- package/dist/toolRegistryClient.js.map +0 -1
- package/dist/topics/index.js.map +0 -1
- package/dist/topicsClient.js.map +0 -1
- package/dist/types.js.map +0 -1
- package/dist/version.js.map +0 -1
- package/dist/workflowClient.js.map +0 -1
- package/dist/worktrees/index.js.map +0 -1
|
@@ -1,598 +1,531 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
(
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
topicId: resolveTopicId(args),
|
|
531
|
-
severity: args.severity,
|
|
532
|
-
defeatType: args.defeatType
|
|
533
|
-
}).then(exposeGatewayData);
|
|
534
|
-
},
|
|
535
|
-
list(args) {
|
|
536
|
-
return contradictionsFacade.list({
|
|
537
|
-
topicId: requireTopicId(args),
|
|
538
|
-
status: args.status,
|
|
539
|
-
limit: args.limit,
|
|
540
|
-
cursor: args.cursor
|
|
541
|
-
}).then(exposeGatewayData);
|
|
542
|
-
},
|
|
543
|
-
get(contradictionId) {
|
|
544
|
-
return contradictionsFacade.get(contradictionId).then(exposeGatewayData);
|
|
545
|
-
},
|
|
546
|
-
find: findContradictions
|
|
547
|
-
},
|
|
548
|
-
ontologies: {
|
|
549
|
-
list(input = {}) {
|
|
550
|
-
return ontologiesFacade.list(input).then(exposeGatewayData);
|
|
551
|
-
},
|
|
552
|
-
get(ontologyId) {
|
|
553
|
-
return ontologiesFacade.get(ontologyId).then((response) => exposeGatewayData(response));
|
|
554
|
-
},
|
|
555
|
-
bind(input, idempotencyKey) {
|
|
556
|
-
return ontologiesFacade.bind(input, idempotencyKey).then((response) => exposeGatewayData(response));
|
|
557
|
-
},
|
|
558
|
-
match(input, idempotencyKey) {
|
|
559
|
-
return ontologiesFacade.match(input, idempotencyKey).then(exposeGatewayData);
|
|
560
|
-
},
|
|
561
|
-
create(input) {
|
|
562
|
-
return createOntologyCompat(input);
|
|
563
|
-
},
|
|
564
|
-
update(input) {
|
|
565
|
-
return updateOntologyCompat(input);
|
|
566
|
-
},
|
|
567
|
-
archive(input) {
|
|
568
|
-
return archiveOntologyCompat(input);
|
|
569
|
-
},
|
|
570
|
-
createVersion(input) {
|
|
571
|
-
return createOntologyVersionCompat(input);
|
|
572
|
-
},
|
|
573
|
-
publishVersion(input) {
|
|
574
|
-
return publishOntologyVersionCompat(input);
|
|
575
|
-
},
|
|
576
|
-
publishOntologyVersion(input) {
|
|
577
|
-
return publishOntologyVersionCompat(input);
|
|
578
|
-
},
|
|
579
|
-
deprecateVersion(input) {
|
|
580
|
-
return deprecateOntologyVersionCompat(input);
|
|
581
|
-
},
|
|
582
|
-
deprecateOntologyVersion(input) {
|
|
583
|
-
return deprecateOntologyVersionCompat(input);
|
|
584
|
-
},
|
|
585
|
-
resolveEffective(input) {
|
|
586
|
-
return resolveEffectiveOntologyCompat(input);
|
|
587
|
-
},
|
|
588
|
-
resolveEffectiveOntology(input) {
|
|
589
|
-
return resolveEffectiveOntologyCompat(input);
|
|
590
|
-
},
|
|
591
|
-
raw: ontologyClient
|
|
592
|
-
}
|
|
593
|
-
};
|
|
1
|
+
export function createClientWorkflowNamespaces(ctx) {
|
|
2
|
+
const { accessControlClient, addEvidence, adminClient, answersClient, archiveOntologyCompat, auditClient, authDeviceClient, beliefsClient, beliefsFacade, bisectConfidence, buildBeliefsArchivePayload, buildBeliefsRefinePayload, clearRegisteredCustomTools, config, contextClient, contradictionsFacade, controlPlaneClient, createContractCompat, createEvidence, createOntologyCompat, createOntologyVersionCompat, decisionsClient, deprecateOntologyVersionCompat, discoverEntityConnections, discoverTopics, edgesFacade, embeddingsClient, ensurePack, evaluateContractCompat, eventingClient, eventsFacade, evidenceClient, evidenceFacade, exposeGatewayData, extensionNamespaces, findContradictions, functionSurfaceClient, gateway, getAuditTrail, getConfidenceHistory, getContractStatusCompat, getCustomNamespace, getOpinionHistory, getPackInstalled, graphAnalysisClient, graphClient, graphFacade, graphRecommendationsClient, graphStateClassifierClient, harnessClient, identityClient, identityFacade, invokeCustomTool, jobsClient, learningClient, listBeliefs, listContractsCompat, listRegisteredCustomTools, mcpClient, modelRuntimeClient, nodesNamespace, ontologiesFacade, ontologyClient, ontologyLinksClient, ontologyLinksNamespace, orgGraphSearchClient, packsClient, policyClient, publicationNamespace, publishOntologyVersionCompat, questionsFacade, queryLineage, randomIdempotencyKey, registerCustomTool, reportsClient, requireBaseRate, requireText, requireTopicId, requireTopicOrProjectId, resolveCustomToolFullName, resolveEffectiveOntologyCompat, resolveTopicId, schemaClient, sdkQueryString, searchBeliefs, sourcesClient, tasksFacade, telemetryClient, toolRegistryClient, topicsClient, topicsFacade, traceEntityImpactCompat, triggerBeliefReview, unregisterCustomTool, updateOntologyCompat, webhooksFacade, workflowClient, worktreesFacade, } = ctx;
|
|
3
|
+
return {
|
|
4
|
+
judgments: {
|
|
5
|
+
create: decisionsClient.createJudgment,
|
|
6
|
+
record: decisionsClient.recordJudgment,
|
|
7
|
+
list: decisionsClient.listJudgments,
|
|
8
|
+
get: decisionsClient.getJudgment,
|
|
9
|
+
recordOutcome: decisionsClient.recordJudgmentOutcome,
|
|
10
|
+
updateOutcome: decisionsClient.updateJudgmentOutcome,
|
|
11
|
+
readiness(topicId) {
|
|
12
|
+
return decisionsClient.getJudgmentReadiness({ topicId });
|
|
13
|
+
},
|
|
14
|
+
calibration(topicId) {
|
|
15
|
+
return decisionsClient.getJudgmentCalibration({ topicId });
|
|
16
|
+
},
|
|
17
|
+
pendingOutcomeReview(topicId) {
|
|
18
|
+
return decisionsClient.listPendingJudgmentOutcomeReview({ topicId });
|
|
19
|
+
},
|
|
20
|
+
transitionAuditIntegrity(args) {
|
|
21
|
+
return decisionsClient.getJudgmentTransitionAuditIntegrity({
|
|
22
|
+
...args,
|
|
23
|
+
topicId: requireTopicId(args),
|
|
24
|
+
});
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
decisions: {
|
|
28
|
+
create: decisionsClient.createJudgment,
|
|
29
|
+
record: decisionsClient.recordJudgment,
|
|
30
|
+
list: decisionsClient.listJudgments,
|
|
31
|
+
get: decisionsClient.getJudgment,
|
|
32
|
+
recordOutcome: decisionsClient.recordJudgmentOutcome,
|
|
33
|
+
lessons(decisionId, input, idempotencyKey) {
|
|
34
|
+
return gateway
|
|
35
|
+
.request({
|
|
36
|
+
path: `/api/platform/v1/decisions/${encodeURIComponent(decisionId)}/lessons`,
|
|
37
|
+
method: "POST",
|
|
38
|
+
body: input,
|
|
39
|
+
idempotencyKey: idempotencyKey ?? randomIdempotencyKey(),
|
|
40
|
+
})
|
|
41
|
+
.then(exposeGatewayData);
|
|
42
|
+
},
|
|
43
|
+
archive(decisionId, input = {}, idempotencyKey) {
|
|
44
|
+
return gateway
|
|
45
|
+
.request({
|
|
46
|
+
path: `/api/platform/v1/decisions/${encodeURIComponent(decisionId)}/archive`,
|
|
47
|
+
method: "POST",
|
|
48
|
+
body: input,
|
|
49
|
+
idempotencyKey: idempotencyKey ?? randomIdempotencyKey(),
|
|
50
|
+
})
|
|
51
|
+
.then(exposeGatewayData);
|
|
52
|
+
},
|
|
53
|
+
readiness(topicId) {
|
|
54
|
+
return decisionsClient.getJudgmentReadiness({ topicId });
|
|
55
|
+
},
|
|
56
|
+
calibration(topicId) {
|
|
57
|
+
return decisionsClient.getJudgmentCalibration({ topicId });
|
|
58
|
+
},
|
|
59
|
+
pendingOutcomeReview(topicId) {
|
|
60
|
+
return decisionsClient.listPendingJudgmentOutcomeReview({ topicId });
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
worktrees: {
|
|
64
|
+
createBranch: workflowClient.createBranch,
|
|
65
|
+
createLens: workflowClient.createLens,
|
|
66
|
+
listLenses: workflowClient.listLenses,
|
|
67
|
+
applyLensToTopic: workflowClient.applyLensToTopic,
|
|
68
|
+
removeLensFromTopic: workflowClient.removeLensFromTopic,
|
|
69
|
+
create(input) {
|
|
70
|
+
return worktreesFacade.create({
|
|
71
|
+
title: input.title,
|
|
72
|
+
topicId: requireTopicId(input),
|
|
73
|
+
objective: input.objective,
|
|
74
|
+
hypothesis: input.hypothesis,
|
|
75
|
+
rationale: input.rationale,
|
|
76
|
+
worktreeType: input.worktreeType,
|
|
77
|
+
startDate: input.startDate,
|
|
78
|
+
endDate: input.endDate,
|
|
79
|
+
durationWeeks: input.durationWeeks,
|
|
80
|
+
confidenceImpact: input.confidenceImpact,
|
|
81
|
+
beliefFocus: input.beliefFocus,
|
|
82
|
+
beliefIds: input.beliefIds,
|
|
83
|
+
targetBeliefIds: input.targetBeliefIds,
|
|
84
|
+
targetQuestionIds: input.targetQuestionIds,
|
|
85
|
+
keyQuestions: input.keyQuestions,
|
|
86
|
+
evidenceSignals: input.evidenceSignals,
|
|
87
|
+
decisionGate: input.decisionGate,
|
|
88
|
+
goCriteria: input.goCriteria,
|
|
89
|
+
noGoSignals: input.noGoSignals,
|
|
90
|
+
autoShape: input.autoShape,
|
|
91
|
+
domainPackId: input.domainPackId,
|
|
92
|
+
campaign: input.campaign,
|
|
93
|
+
lane: input.lane,
|
|
94
|
+
laneOrderInCampaign: input.laneOrderInCampaign,
|
|
95
|
+
orderInLane: input.orderInLane,
|
|
96
|
+
dependsOn: input.dependsOn,
|
|
97
|
+
blocks: input.blocks,
|
|
98
|
+
gate: input.gate,
|
|
99
|
+
proofArtifacts: input.proofArtifacts,
|
|
100
|
+
staffingHint: typeof input.staffingHint === "string"
|
|
101
|
+
? input.staffingHint
|
|
102
|
+
: undefined,
|
|
103
|
+
lastReconciledAt: input.lastReconciledAt,
|
|
104
|
+
autoFixPolicy: input.autoFixPolicy,
|
|
105
|
+
lensId: input.lensId,
|
|
106
|
+
});
|
|
107
|
+
},
|
|
108
|
+
add(input) {
|
|
109
|
+
return worktreesFacade.create({
|
|
110
|
+
title: input.title,
|
|
111
|
+
topicId: requireTopicId(input),
|
|
112
|
+
objective: input.objective,
|
|
113
|
+
hypothesis: input.hypothesis,
|
|
114
|
+
rationale: input.rationale,
|
|
115
|
+
worktreeType: input.worktreeType,
|
|
116
|
+
startDate: input.startDate,
|
|
117
|
+
endDate: input.endDate,
|
|
118
|
+
durationWeeks: input.durationWeeks,
|
|
119
|
+
confidenceImpact: input.confidenceImpact,
|
|
120
|
+
beliefFocus: input.beliefFocus,
|
|
121
|
+
beliefIds: input.beliefIds,
|
|
122
|
+
targetBeliefIds: input.targetBeliefIds,
|
|
123
|
+
targetQuestionIds: input.targetQuestionIds,
|
|
124
|
+
keyQuestions: input.keyQuestions,
|
|
125
|
+
evidenceSignals: input.evidenceSignals,
|
|
126
|
+
decisionGate: input.decisionGate,
|
|
127
|
+
goCriteria: input.goCriteria,
|
|
128
|
+
noGoSignals: input.noGoSignals,
|
|
129
|
+
autoShape: input.autoShape,
|
|
130
|
+
domainPackId: input.domainPackId,
|
|
131
|
+
campaign: input.campaign,
|
|
132
|
+
lane: input.lane,
|
|
133
|
+
laneOrderInCampaign: input.laneOrderInCampaign,
|
|
134
|
+
orderInLane: input.orderInLane,
|
|
135
|
+
dependsOn: input.dependsOn,
|
|
136
|
+
blocks: input.blocks,
|
|
137
|
+
gate: input.gate,
|
|
138
|
+
proofArtifacts: input.proofArtifacts,
|
|
139
|
+
staffingHint: typeof input.staffingHint === "string"
|
|
140
|
+
? input.staffingHint
|
|
141
|
+
: undefined,
|
|
142
|
+
lastReconciledAt: input.lastReconciledAt,
|
|
143
|
+
autoFixPolicy: input.autoFixPolicy,
|
|
144
|
+
lensId: input.lensId,
|
|
145
|
+
});
|
|
146
|
+
},
|
|
147
|
+
list(query) {
|
|
148
|
+
return worktreesFacade.list({
|
|
149
|
+
topicId: requireTopicId(query),
|
|
150
|
+
status: query.status,
|
|
151
|
+
limit: query.limit,
|
|
152
|
+
});
|
|
153
|
+
},
|
|
154
|
+
listByTopic(query) {
|
|
155
|
+
return worktreesFacade.list({
|
|
156
|
+
topicId: requireTopicId(query),
|
|
157
|
+
status: query.status,
|
|
158
|
+
limit: query.limit,
|
|
159
|
+
});
|
|
160
|
+
},
|
|
161
|
+
findByPairedSprint(input) {
|
|
162
|
+
return gateway
|
|
163
|
+
.request({
|
|
164
|
+
path: `/api/platform/v1/worktrees/paired-sprint${sdkQueryString({
|
|
165
|
+
sprintId: input.sprintId,
|
|
166
|
+
topicId: input.topicId ?? input.projectId,
|
|
167
|
+
limit: input.limit,
|
|
168
|
+
})}`,
|
|
169
|
+
})
|
|
170
|
+
.then(exposeGatewayData);
|
|
171
|
+
},
|
|
172
|
+
activate(worktreeId) {
|
|
173
|
+
return worktreesFacade.activate({ id: worktreeId });
|
|
174
|
+
},
|
|
175
|
+
updateMetadata(input) {
|
|
176
|
+
const dependsOn = Array.isArray(input.dependsOn)
|
|
177
|
+
? input.dependsOn.filter((value) => typeof value === "string")
|
|
178
|
+
: undefined;
|
|
179
|
+
const blocks = Array.isArray(input.blocks)
|
|
180
|
+
? input.blocks.filter((value) => typeof value === "string")
|
|
181
|
+
: undefined;
|
|
182
|
+
return worktreesFacade.update({
|
|
183
|
+
id: typeof input.worktreeId === "string" ? input.worktreeId : "",
|
|
184
|
+
hypothesis: typeof input.hypothesis === "string"
|
|
185
|
+
? input.hypothesis
|
|
186
|
+
: undefined,
|
|
187
|
+
campaign: typeof input.campaign === "number" ? input.campaign : undefined,
|
|
188
|
+
lane: typeof input.lane === "string" ? input.lane : undefined,
|
|
189
|
+
laneOrderInCampaign: typeof input.laneOrderInCampaign === "number"
|
|
190
|
+
? input.laneOrderInCampaign
|
|
191
|
+
: undefined,
|
|
192
|
+
orderInLane: typeof input.orderInLane === "number"
|
|
193
|
+
? input.orderInLane
|
|
194
|
+
: undefined,
|
|
195
|
+
dependsOn,
|
|
196
|
+
blocks,
|
|
197
|
+
gate: typeof input.gate === "string" ? input.gate : undefined,
|
|
198
|
+
});
|
|
199
|
+
},
|
|
200
|
+
update(input) {
|
|
201
|
+
const dependsOn = Array.isArray(input.dependsOn)
|
|
202
|
+
? input.dependsOn.filter((value) => typeof value === "string")
|
|
203
|
+
: undefined;
|
|
204
|
+
const blocks = Array.isArray(input.blocks)
|
|
205
|
+
? input.blocks.filter((value) => typeof value === "string")
|
|
206
|
+
: undefined;
|
|
207
|
+
return worktreesFacade.update({
|
|
208
|
+
id: typeof input.worktreeId === "string" ? input.worktreeId : "",
|
|
209
|
+
hypothesis: typeof input.hypothesis === "string"
|
|
210
|
+
? input.hypothesis
|
|
211
|
+
: undefined,
|
|
212
|
+
campaign: typeof input.campaign === "number" ? input.campaign : undefined,
|
|
213
|
+
lane: typeof input.lane === "string" ? input.lane : undefined,
|
|
214
|
+
laneOrderInCampaign: typeof input.laneOrderInCampaign === "number"
|
|
215
|
+
? input.laneOrderInCampaign
|
|
216
|
+
: undefined,
|
|
217
|
+
orderInLane: typeof input.orderInLane === "number"
|
|
218
|
+
? input.orderInLane
|
|
219
|
+
: undefined,
|
|
220
|
+
dependsOn,
|
|
221
|
+
blocks,
|
|
222
|
+
gate: typeof input.gate === "string" ? input.gate : undefined,
|
|
223
|
+
});
|
|
224
|
+
},
|
|
225
|
+
updateTargets(input) {
|
|
226
|
+
return worktreesFacade.updateTargets({
|
|
227
|
+
id: input.worktreeId,
|
|
228
|
+
addBeliefIds: input.addBeliefIds,
|
|
229
|
+
addQuestionIds: input.addQuestionIds,
|
|
230
|
+
removeBeliefIds: input.removeBeliefIds,
|
|
231
|
+
removeQuestionIds: input.removeQuestionIds,
|
|
232
|
+
});
|
|
233
|
+
},
|
|
234
|
+
listAll: workflowClient.listAllWorktrees,
|
|
235
|
+
merge(worktreeId, input) {
|
|
236
|
+
return worktreesFacade.merge({
|
|
237
|
+
id: worktreeId,
|
|
238
|
+
outcomes: input.outcomes,
|
|
239
|
+
summary: input.summary,
|
|
240
|
+
});
|
|
241
|
+
},
|
|
242
|
+
push: workflowClient.push,
|
|
243
|
+
openPullRequest: workflowClient.openPullRequest,
|
|
244
|
+
pipelineSnapshot(topicId) {
|
|
245
|
+
return functionSurfaceClient.pipelineSnapshot({ topicId });
|
|
246
|
+
},
|
|
247
|
+
complete: worktreesFacade.complete,
|
|
248
|
+
advancePhase(worktreeId, idempotencyKey) {
|
|
249
|
+
return worktreesFacade.advancePhase({ worktreeId }, idempotencyKey);
|
|
250
|
+
},
|
|
251
|
+
setPhase(worktreeId, phase, idempotencyKey) {
|
|
252
|
+
return worktreesFacade.setPhase({ worktreeId, phase }, idempotencyKey);
|
|
253
|
+
},
|
|
254
|
+
patchState: worktreesFacade.patchState,
|
|
255
|
+
bulkCreate: worktreesFacade.bulkCreate,
|
|
256
|
+
},
|
|
257
|
+
context: {
|
|
258
|
+
listTopics(query = {}) {
|
|
259
|
+
return topicsFacade.list({
|
|
260
|
+
ontologyId: query.ontologyId,
|
|
261
|
+
parentTopicId: query.parentTopicId,
|
|
262
|
+
status: query.status,
|
|
263
|
+
type: query.type,
|
|
264
|
+
});
|
|
265
|
+
},
|
|
266
|
+
compile: contextClient.compile,
|
|
267
|
+
recordScopeLearning: functionSurfaceClient.recordScopeLearning,
|
|
268
|
+
discover(input) {
|
|
269
|
+
return discoverTopics(input);
|
|
270
|
+
},
|
|
271
|
+
analyzeTopicDensity: functionSurfaceClient.analyzeTopicDensity,
|
|
272
|
+
applyAutoBranching: functionSurfaceClient.applyAutoBranching,
|
|
273
|
+
seedBeliefLattice: functionSurfaceClient.seedBeliefLattice,
|
|
274
|
+
getLatticeCoverage: functionSurfaceClient.getLatticeCoverage,
|
|
275
|
+
matchEntityType(input) {
|
|
276
|
+
return ontologiesFacade
|
|
277
|
+
.match(input)
|
|
278
|
+
.then(exposeGatewayData);
|
|
279
|
+
},
|
|
280
|
+
discoverEntityConnections(input) {
|
|
281
|
+
return discoverEntityConnections(input);
|
|
282
|
+
},
|
|
283
|
+
triggerBeliefReview(input) {
|
|
284
|
+
return triggerBeliefReview(input);
|
|
285
|
+
},
|
|
286
|
+
},
|
|
287
|
+
tasks: {
|
|
288
|
+
create(input) {
|
|
289
|
+
return tasksFacade.create({
|
|
290
|
+
topicId: resolveTopicId(input),
|
|
291
|
+
title: input.title,
|
|
292
|
+
description: input.description,
|
|
293
|
+
taskType: input.taskType,
|
|
294
|
+
priority: input.priority,
|
|
295
|
+
linkedBeliefId: input.linkedBeliefId,
|
|
296
|
+
linkedQuestionId: input.linkedQuestionId,
|
|
297
|
+
linkedWorktreeId: input.linkedWorktreeId,
|
|
298
|
+
});
|
|
299
|
+
},
|
|
300
|
+
complete(taskId, input) {
|
|
301
|
+
return tasksFacade.complete({
|
|
302
|
+
id: taskId,
|
|
303
|
+
outputSummary: input.outputSummary,
|
|
304
|
+
});
|
|
305
|
+
},
|
|
306
|
+
update(taskId, input) {
|
|
307
|
+
return tasksFacade.update({
|
|
308
|
+
id: taskId,
|
|
309
|
+
title: input.title,
|
|
310
|
+
description: input.description,
|
|
311
|
+
priority: input.priority,
|
|
312
|
+
status: input.status,
|
|
313
|
+
linkedBeliefId: input.linkedBeliefId,
|
|
314
|
+
linkedQuestionId: input.linkedQuestionId,
|
|
315
|
+
linkedWorktreeId: input.linkedWorktreeId,
|
|
316
|
+
});
|
|
317
|
+
},
|
|
318
|
+
list(input) {
|
|
319
|
+
return tasksFacade.list({
|
|
320
|
+
topicId: resolveTopicId(input),
|
|
321
|
+
worktreeId: typeof input.worktreeId === "string"
|
|
322
|
+
? input.worktreeId
|
|
323
|
+
: typeof input.linkedWorktreeId === "string"
|
|
324
|
+
? input.linkedWorktreeId
|
|
325
|
+
: undefined,
|
|
326
|
+
status: typeof input.status === "string" ? input.status : undefined,
|
|
327
|
+
limit: typeof input.limit === "number" ? input.limit : undefined,
|
|
328
|
+
});
|
|
329
|
+
},
|
|
330
|
+
listByTopic(input) {
|
|
331
|
+
return tasksFacade.list({
|
|
332
|
+
topicId: requireTopicId(input),
|
|
333
|
+
status: typeof input.status === "string" ? input.status : undefined,
|
|
334
|
+
limit: typeof input.limit === "number" ? input.limit : undefined,
|
|
335
|
+
});
|
|
336
|
+
},
|
|
337
|
+
listByWorktree(input) {
|
|
338
|
+
return tasksFacade.list({
|
|
339
|
+
topicId: typeof input.topicId === "string" ? input.topicId : undefined,
|
|
340
|
+
worktreeId: input.worktreeId,
|
|
341
|
+
status: typeof input.status === "string" ? input.status : undefined,
|
|
342
|
+
limit: typeof input.limit === "number" ? input.limit : undefined,
|
|
343
|
+
});
|
|
344
|
+
},
|
|
345
|
+
linkChat(taskId, input, idempotencyKey) {
|
|
346
|
+
return gateway
|
|
347
|
+
.request({
|
|
348
|
+
path: `/api/platform/v1/tasks/${encodeURIComponent(taskId)}/link-chat`,
|
|
349
|
+
method: "POST",
|
|
350
|
+
body: input,
|
|
351
|
+
idempotencyKey: idempotencyKey ?? randomIdempotencyKey(),
|
|
352
|
+
})
|
|
353
|
+
.then(exposeGatewayData);
|
|
354
|
+
},
|
|
355
|
+
},
|
|
356
|
+
topics: {
|
|
357
|
+
list(input = {}) {
|
|
358
|
+
return topicsFacade.list({
|
|
359
|
+
ontologyId: input.ontologyId,
|
|
360
|
+
parentTopicId: input.parentTopicId,
|
|
361
|
+
status: input.status,
|
|
362
|
+
type: input.type,
|
|
363
|
+
});
|
|
364
|
+
},
|
|
365
|
+
get: topicsFacade.get,
|
|
366
|
+
create(input) {
|
|
367
|
+
return functionSurfaceClient
|
|
368
|
+
.createTopic(input)
|
|
369
|
+
.then(exposeGatewayData);
|
|
370
|
+
},
|
|
371
|
+
update(topicId, input) {
|
|
372
|
+
return topicsFacade.update({
|
|
373
|
+
id: topicId,
|
|
374
|
+
name: input.name,
|
|
375
|
+
description: input.description,
|
|
376
|
+
type: input.type,
|
|
377
|
+
ontologyId: input.ontologyId,
|
|
378
|
+
clearOntologyId: input.clearOntologyId,
|
|
379
|
+
status: input.status,
|
|
380
|
+
visibility: input.visibility,
|
|
381
|
+
});
|
|
382
|
+
},
|
|
383
|
+
tree(topicId, query = {}) {
|
|
384
|
+
return topicsFacade.tree({
|
|
385
|
+
id: topicId,
|
|
386
|
+
maxDepth: query.maxDepth,
|
|
387
|
+
});
|
|
388
|
+
},
|
|
389
|
+
getTree(input) {
|
|
390
|
+
return topicsFacade.tree({
|
|
391
|
+
id: input.rootId,
|
|
392
|
+
maxDepth: input.maxDepth,
|
|
393
|
+
});
|
|
394
|
+
},
|
|
395
|
+
coverage(topicId, query = {}) {
|
|
396
|
+
return topicsFacade.coverage({
|
|
397
|
+
id: topicId,
|
|
398
|
+
includeDescendants: query.includeDescendants,
|
|
399
|
+
maxDepth: query.maxDepth,
|
|
400
|
+
});
|
|
401
|
+
},
|
|
402
|
+
remove: topicsFacade.remove,
|
|
403
|
+
bulkCreate: topicsFacade.bulkCreate,
|
|
404
|
+
materializeGraph(input = {}, idempotencyKey) {
|
|
405
|
+
return functionSurfaceClient
|
|
406
|
+
.materializeTopicGraph(input, idempotencyKey)
|
|
407
|
+
.then(exposeGatewayData);
|
|
408
|
+
},
|
|
409
|
+
materializeTopicGraph(input = {}, idempotencyKey) {
|
|
410
|
+
return functionSurfaceClient
|
|
411
|
+
.materializeTopicGraph(input, idempotencyKey)
|
|
412
|
+
.then(exposeGatewayData);
|
|
413
|
+
},
|
|
414
|
+
graphSpine(input = {}) {
|
|
415
|
+
return functionSurfaceClient
|
|
416
|
+
.getTopicGraphSpine(input)
|
|
417
|
+
.then(exposeGatewayData);
|
|
418
|
+
},
|
|
419
|
+
getTopicGraphSpine(input = {}) {
|
|
420
|
+
return functionSurfaceClient
|
|
421
|
+
.getTopicGraphSpine(input)
|
|
422
|
+
.then(exposeGatewayData);
|
|
423
|
+
},
|
|
424
|
+
},
|
|
425
|
+
answers: {
|
|
426
|
+
create(input) {
|
|
427
|
+
const questionId = typeof input.questionNodeId === "string" ? input.questionNodeId : "";
|
|
428
|
+
if (!questionId) {
|
|
429
|
+
throw new Error("questionNodeId is required");
|
|
430
|
+
}
|
|
431
|
+
const text = typeof input.answerText === "string" ? input.answerText : "";
|
|
432
|
+
if (!text) {
|
|
433
|
+
throw new Error("answerText is required");
|
|
434
|
+
}
|
|
435
|
+
const confidence = input.confidence === "moderate" ? "medium" : input.confidence;
|
|
436
|
+
return questionsFacade.answer(questionId, {
|
|
437
|
+
text,
|
|
438
|
+
confidence: typeof confidence === "string" ? confidence : undefined,
|
|
439
|
+
evidenceIds: Array.isArray(input.evidenceNodeIds)
|
|
440
|
+
? input.evidenceNodeIds.filter((value) => typeof value === "string")
|
|
441
|
+
: undefined,
|
|
442
|
+
});
|
|
443
|
+
},
|
|
444
|
+
get(input) {
|
|
445
|
+
const questionId = typeof input.questionNodeId === "string" ? input.questionNodeId : "";
|
|
446
|
+
if (!questionId) {
|
|
447
|
+
throw new Error("questionNodeId is required");
|
|
448
|
+
}
|
|
449
|
+
return answersClient.get(questionId);
|
|
450
|
+
},
|
|
451
|
+
},
|
|
452
|
+
contradictions: {
|
|
453
|
+
flag(args) {
|
|
454
|
+
return contradictionsFacade
|
|
455
|
+
.flag({
|
|
456
|
+
beliefA: args.beliefA,
|
|
457
|
+
beliefB: args.beliefB,
|
|
458
|
+
description: args.description,
|
|
459
|
+
topicId: resolveTopicId(args),
|
|
460
|
+
severity: args.severity,
|
|
461
|
+
defeatType: args.defeatType,
|
|
462
|
+
})
|
|
463
|
+
.then(exposeGatewayData);
|
|
464
|
+
},
|
|
465
|
+
list(args) {
|
|
466
|
+
return contradictionsFacade
|
|
467
|
+
.list({
|
|
468
|
+
topicId: requireTopicId(args),
|
|
469
|
+
status: args.status,
|
|
470
|
+
limit: args.limit,
|
|
471
|
+
cursor: args.cursor,
|
|
472
|
+
})
|
|
473
|
+
.then(exposeGatewayData);
|
|
474
|
+
},
|
|
475
|
+
get(contradictionId) {
|
|
476
|
+
return contradictionsFacade.get(contradictionId).then(exposeGatewayData);
|
|
477
|
+
},
|
|
478
|
+
find: findContradictions,
|
|
479
|
+
},
|
|
480
|
+
ontologies: {
|
|
481
|
+
list(input = {}) {
|
|
482
|
+
return ontologiesFacade.list(input).then(exposeGatewayData);
|
|
483
|
+
},
|
|
484
|
+
get(ontologyId) {
|
|
485
|
+
return ontologiesFacade
|
|
486
|
+
.get(ontologyId)
|
|
487
|
+
.then((response) => exposeGatewayData(response));
|
|
488
|
+
},
|
|
489
|
+
bind(input, idempotencyKey) {
|
|
490
|
+
return ontologiesFacade
|
|
491
|
+
.bind(input, idempotencyKey)
|
|
492
|
+
.then((response) => exposeGatewayData(response));
|
|
493
|
+
},
|
|
494
|
+
match(input, idempotencyKey) {
|
|
495
|
+
return ontologiesFacade.match(input, idempotencyKey).then(exposeGatewayData);
|
|
496
|
+
},
|
|
497
|
+
create(input) {
|
|
498
|
+
return createOntologyCompat(input);
|
|
499
|
+
},
|
|
500
|
+
update(input) {
|
|
501
|
+
return updateOntologyCompat(input);
|
|
502
|
+
},
|
|
503
|
+
archive(input) {
|
|
504
|
+
return archiveOntologyCompat(input);
|
|
505
|
+
},
|
|
506
|
+
createVersion(input) {
|
|
507
|
+
return createOntologyVersionCompat(input);
|
|
508
|
+
},
|
|
509
|
+
publishVersion(input) {
|
|
510
|
+
return publishOntologyVersionCompat(input);
|
|
511
|
+
},
|
|
512
|
+
publishOntologyVersion(input) {
|
|
513
|
+
return publishOntologyVersionCompat(input);
|
|
514
|
+
},
|
|
515
|
+
deprecateVersion(input) {
|
|
516
|
+
return deprecateOntologyVersionCompat(input);
|
|
517
|
+
},
|
|
518
|
+
deprecateOntologyVersion(input) {
|
|
519
|
+
return deprecateOntologyVersionCompat(input);
|
|
520
|
+
},
|
|
521
|
+
resolveEffective(input) {
|
|
522
|
+
return resolveEffectiveOntologyCompat(input);
|
|
523
|
+
},
|
|
524
|
+
resolveEffectiveOntology(input) {
|
|
525
|
+
return resolveEffectiveOntologyCompat(input);
|
|
526
|
+
},
|
|
527
|
+
raw: ontologyClient,
|
|
528
|
+
},
|
|
529
|
+
};
|
|
594
530
|
}
|
|
595
|
-
|
|
596
|
-
export { createClientWorkflowNamespaces };
|
|
597
|
-
//# sourceMappingURL=clientWorkflowNamespaces.js.map
|
|
598
531
|
//# sourceMappingURL=clientWorkflowNamespaces.js.map
|