@lucern/sdk 0.3.0-alpha.16 → 0.3.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +0 -8
- package/README.md +4 -110
- package/dist/adminClient.d.ts +8 -10
- package/dist/adminClient.js +39 -260
- package/dist/adminClient.js.map +1 -1
- package/dist/answersClient.d.ts +0 -2
- package/dist/answersClient.js +11 -239
- package/dist/answersClient.js.map +1 -1
- package/dist/audience/index.d.ts +1 -2
- package/dist/audience/index.js +3 -1
- package/dist/audience/index.js.map +1 -1
- package/dist/audiencesClient.d.ts +16 -18
- package/dist/audiencesClient.js +90 -315
- package/dist/audiencesClient.js.map +1 -1
- package/dist/auditClient.d.ts +0 -2
- package/dist/auditClient.js +15 -245
- package/dist/auditClient.js.map +1 -1
- package/dist/beliefs/index.d.ts +5 -27
- package/dist/beliefs/index.js +1177 -3842
- package/dist/beliefs/index.js.map +1 -1
- package/dist/beliefsClient.d.ts +2 -4
- package/dist/beliefsClient.js +26 -248
- package/dist/beliefsClient.js.map +1 -1
- package/dist/client-B6aWUUwp.d.ts +2552 -0
- package/dist/client.d.ts +27 -3041
- package/dist/client.js +1177 -3842
- package/dist/client.js.map +1 -1
- package/dist/contextClient.d.ts +3 -6
- package/dist/contextClient.js +30 -270
- package/dist/contextClient.js.map +1 -1
- package/dist/contextFacade.js +16 -25
- package/dist/contextFacade.js.map +1 -1
- package/dist/contextPackCompiler.js +30 -19
- package/dist/contextPackCompiler.js.map +1 -1
- package/dist/contextPackPolicy.js +17 -7
- package/dist/contextPackPolicy.js.map +1 -1
- package/dist/contextTypes.d.ts +0 -2
- package/dist/contracts/api-enums.contract.d.ts +2 -2
- package/dist/contracts/api-enums.contract.js +1 -6
- package/dist/contracts/api-enums.contract.js.map +1 -1
- package/dist/contracts/auth-session.contract.d.ts +1 -1
- package/dist/contracts/auth-session.contract.js +1 -13
- package/dist/contracts/auth-session.contract.js.map +1 -1
- package/dist/contracts/index.d.ts +0 -1
- package/dist/contracts/index.js +6 -133
- package/dist/contracts/index.js.map +1 -1
- package/dist/contracts/lens-filter.contract.js +3 -4
- package/dist/contracts/lens-filter.contract.js.map +1 -1
- package/dist/contracts/lens-workflow.contract.js +3 -4
- package/dist/contracts/lens-workflow.contract.js.map +1 -1
- package/dist/contracts/lensFilter.js +3 -4
- package/dist/contracts/lensFilter.js.map +1 -1
- package/dist/contracts/lensWorkflow.js +3 -4
- package/dist/contracts/lensWorkflow.js.map +1 -1
- package/dist/contracts/mcpTools.d.ts +1 -46
- package/dist/contracts/mcpTools.js +0 -108
- package/dist/contracts/mcpTools.js.map +1 -1
- package/dist/contradictions/index.d.ts +4 -26
- package/dist/contradictions/index.js +1177 -3842
- package/dist/contradictions/index.js.map +1 -1
- package/dist/coreClient.d.ts +2 -28
- package/dist/coreClient.js +14 -240
- package/dist/coreClient.js.map +1 -1
- package/dist/decisions/index.d.ts +14 -36
- package/dist/decisions/index.js +1177 -3842
- package/dist/decisions/index.js.map +1 -1
- package/dist/decisionsClient.d.ts +12 -6
- package/dist/decisionsClient.js +37 -253
- package/dist/decisionsClient.js.map +1 -1
- package/dist/edges/index.d.ts +87 -49
- package/dist/edges/index.js +1177 -3842
- package/dist/edges/index.js.map +1 -1
- package/dist/events.js +3 -6
- package/dist/events.js.map +1 -1
- package/dist/eventsCore.d.ts +1 -3
- package/dist/eventsCore.js +14 -240
- package/dist/eventsCore.js.map +1 -1
- package/dist/evidence/index.d.ts +4 -26
- package/dist/evidence/index.js +1177 -3842
- package/dist/evidence/index.js.map +1 -1
- package/dist/evidenceClient.d.ts +0 -2
- package/dist/evidenceClient.js +14 -240
- package/dist/evidenceClient.js.map +1 -1
- package/dist/facade/context.d.ts +1 -2
- package/dist/facade/context.js +16 -25
- package/dist/facade/context.js.map +1 -1
- package/dist/gatewayFacades.d.ts +46 -90
- package/dist/gatewayFacades.js +128 -609
- package/dist/gatewayFacades.js.map +1 -1
- package/dist/graphClient.d.ts +13 -8
- package/dist/graphClient.js +45 -262
- package/dist/graphClient.js.map +1 -1
- package/dist/harnessClient.d.ts +24 -15
- package/dist/harnessClient.js +42 -253
- package/dist/harnessClient.js.map +1 -1
- package/dist/identityClient.d.ts +11 -115
- package/dist/identityClient.js +33 -555
- package/dist/identityClient.js.map +1 -1
- package/dist/index.d.ts +6 -32
- package/dist/index.js +2580 -5825
- package/dist/index.js.map +1 -1
- package/dist/learningClient.d.ts +6 -8
- package/dist/learningClient.js +44 -270
- package/dist/learningClient.js.map +1 -1
- package/dist/lenses/index.d.ts +38 -78
- package/dist/lenses/index.js +1177 -3842
- package/dist/lenses/index.js.map +1 -1
- package/dist/nodes/index.d.ts +21 -65
- package/dist/nodes/index.js +1177 -3842
- package/dist/nodes/index.js.map +1 -1
- package/dist/ontologies/index.d.ts +32 -55
- package/dist/ontologies/index.js +1177 -3842
- package/dist/ontologies/index.js.map +1 -1
- package/dist/ontologyClient.d.ts +25 -19
- package/dist/ontologyClient.js +40 -276
- package/dist/ontologyClient.js.map +1 -1
- package/dist/packsClient.d.ts +23 -11
- package/dist/packsClient.js +46 -252
- package/dist/packsClient.js.map +1 -1
- package/dist/policyClient.d.ts +10 -13
- package/dist/policyClient.js +25 -261
- package/dist/policyClient.js.map +1 -1
- package/dist/questions/index.d.ts +4 -26
- package/dist/questions/index.js +1177 -3842
- package/dist/questions/index.js.map +1 -1
- package/dist/realtime/index.d.ts +1 -1
- package/dist/reportsClient.d.ts +7 -9
- package/dist/reportsClient.js +53 -299
- package/dist/reportsClient.js.map +1 -1
- package/dist/schemaClient.d.ts +3 -5
- package/dist/schemaClient.js +29 -253
- package/dist/schemaClient.js.map +1 -1
- package/dist/sdkSurface.d.ts +3 -8
- package/dist/sdkSurface.js +6 -10
- package/dist/sdkSurface.js.map +1 -1
- package/dist/sourcesClient.d.ts +0 -2
- package/dist/sourcesClient.js +14 -240
- package/dist/sourcesClient.js.map +1 -1
- package/dist/topics/index.d.ts +9 -37
- package/dist/topics/index.js +1177 -3844
- package/dist/topics/index.js.map +1 -1
- package/dist/topicsClient.d.ts +0 -4
- package/dist/topicsClient.js +24 -255
- package/dist/topicsClient.js.map +1 -1
- package/dist/types.d.ts +0 -17
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/version.js.map +1 -1
- package/dist/workflowClient.d.ts +40 -60
- package/dist/workflowClient.js +58 -261
- package/dist/workflowClient.js.map +1 -1
- package/dist/worktrees/index.d.ts +33 -71
- package/dist/worktrees/index.js +1177 -3842
- package/dist/worktrees/index.js.map +1 -1
- package/package.json +3 -17
- package/dist/accessControl.d.ts +0 -79
- package/dist/accessControl.js +0 -1270
- package/dist/accessControl.js.map +0 -1
- package/dist/authContext.d.ts +0 -56
- package/dist/authContext.js +0 -170
- package/dist/authContext.js.map +0 -1
- package/dist/authDeviceClient.d.ts +0 -49
- package/dist/authDeviceClient.js +0 -121
- package/dist/authDeviceClient.js.map +0 -1
- package/dist/boundaryClientSurface.d.ts +0 -20
- package/dist/boundaryClientSurface.js +0 -73
- package/dist/boundaryClientSurface.js.map +0 -1
- package/dist/clientHelpers.d.ts +0 -48
- package/dist/clientHelpers.js +0 -137
- package/dist/clientHelpers.js.map +0 -1
- package/dist/control-plane.d.ts +0 -69
- package/dist/control-plane.js +0 -674
- package/dist/control-plane.js.map +0 -1
- package/dist/embeddingsClient.d.ts +0 -106
- package/dist/embeddingsClient.js +0 -749
- package/dist/embeddingsClient.js.map +0 -1
- package/dist/eventingClient.d.ts +0 -96
- package/dist/eventingClient.js +0 -746
- package/dist/eventingClient.js.map +0 -1
- package/dist/functionSurface.d.ts +0 -144
- package/dist/functionSurface.js +0 -1227
- package/dist/functionSurface.js.map +0 -1
- package/dist/functionSurfaceClient.d.ts +0 -8
- package/dist/functionSurfaceClient.js +0 -1227
- package/dist/functionSurfaceClient.js.map +0 -1
- package/dist/graphAnalysisClient.d.ts +0 -192
- package/dist/graphAnalysisClient.js +0 -817
- package/dist/graphAnalysisClient.js.map +0 -1
- package/dist/graphIntel.d.ts +0 -4
- package/dist/graphIntel.js +0 -3
- package/dist/graphIntel.js.map +0 -1
- package/dist/graphIntelligence.d.ts +0 -2
- package/dist/graphIntelligence.js +0 -47
- package/dist/graphIntelligence.js.map +0 -1
- package/dist/graphRecommendationsClient.d.ts +0 -56
- package/dist/graphRecommendationsClient.js +0 -682
- package/dist/graphRecommendationsClient.js.map +0 -1
- package/dist/graphStateClassifierClient.d.ts +0 -73
- package/dist/graphStateClassifierClient.js +0 -734
- package/dist/graphStateClassifierClient.js.map +0 -1
- package/dist/infisicalRuntime.d.ts +0 -43
- package/dist/infisicalRuntime.js +0 -346
- package/dist/infisicalRuntime.js.map +0 -1
- package/dist/jobsClient.d.ts +0 -98
- package/dist/jobsClient.js +0 -744
- package/dist/jobsClient.js.map +0 -1
- package/dist/mcpClient.d.ts +0 -28
- package/dist/mcpClient.js +0 -687
- package/dist/mcpClient.js.map +0 -1
- package/dist/modelRuntimeClient.d.ts +0 -72
- package/dist/modelRuntimeClient.js +0 -722
- package/dist/modelRuntimeClient.js.map +0 -1
- package/dist/ontologyLinksClient.d.ts +0 -71
- package/dist/ontologyLinksClient.js +0 -715
- package/dist/ontologyLinksClient.js.map +0 -1
- package/dist/orgGraphSearchClient.d.ts +0 -85
- package/dist/orgGraphSearchClient.js +0 -690
- package/dist/orgGraphSearchClient.js.map +0 -1
- package/dist/secrets.d.ts +0 -1
- package/dist/secrets.js +0 -3
- package/dist/secrets.js.map +0 -1
- package/dist/telemetryClient.d.ts +0 -94
- package/dist/telemetryClient.js +0 -759
- package/dist/telemetryClient.js.map +0 -1
- package/dist/toolRegistryClient.d.ts +0 -115
- package/dist/toolRegistryClient.js +0 -785
- package/dist/toolRegistryClient.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/facade/context.ts"],"names":[],"mappings":";AAgBA,SAAS,YAAY,KAAA,EAAoC;AACvD,EAAA,OAAO,OAAO,KAAA,KAAU,QAAA,IAAY,K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AAA,IAAI,SAAA,EAAW;AACb,IAAA,OAAA,CAAQ,SAAA,GAAY,SAAA;AAAA,EACtB;AAEA,EAAA,IACE,KAAA,CAAM,QAAQ,KAAA,CAAM,mBAAmB,KACvC,KAAA,CAAM,mBAAA,CAAoB,SAAS,CAAA,EACnC;AACA,IAAA,OAAA,CAAQ,sBAAsB,KAAA,CAAM,mBAAA;AAAA,EACtC;AAEA,EAAA,OAAO;AAAA,IACL,IAAA,EAAM,kCAAA;AAAA,IACN,MAAA,EAAQ,MAAA;AAAA,IACR,IAAA,EAAM;AAAA,GACR;AACF;AAEO,SAAS,oBAAoB,MAAA,EAA6B;AAC/D,EAAA,OAAO;AAAA,IACL,OAAA,CAAQ,OAAA,EAAiB,KAAA,GAA6B,EAAC,EAAG;AACxD,MAAA,MAAM,OAAA,GAAU,0BAAA,CAA2B,OAAA,EAAS,KAAK,CAAA;AACzD,MAAA,OAAO,MAAA,CAAO,SAAA,CAAU,OAAA,CAA+B,OAAO,CAAA;AAAA,IAChE;AAAA,GACF;AACF","file":"context.js","sourcesContent":["import type { CompileContextInput, PublicCompiledContext } from \"../contextTypes\";\n\nexport type ContextClientRequest = {\n path: \"/api/platform/v1/context/compile\";\n method: \"POST\";\n body: Record<string, unknown>;\n};\n\nexport type ContextFacadeTransport = {\n request<T>(request: ContextClientRequest): Promise<T>;\n};\n\nexport type ContextFacadeConfig = {\n transport: ContextFacadeTransport;\n};\n\nfunction cleanString(value: unknown): string | undefined {\n return typeof value === \"string\" && value.trim().length > 0\n ? value.trim()\n : undefined;\n}\n\nfunction cleanNumber(value: unknown): number | undefined {\n return typeof value === \"number\" && Number.isFinite(value) ? value : undefined;\n}\n\nfunction cleanBoolean(value: unknown): boolean | undefined {\n return typeof value === \"boolean\" ? value : undefined;\n}\n\nfunction buildCompileContextRequest(\n topicId: string,\n input: CompileContextInput = {}\n): ContextClientRequest {\n const payload: Record<string, unknown> = { topicId };\n\n const query = cleanString(input.query);\n if (query) {\n payload.query = query;\n }\n\n const budget = cleanNumber(input.budget) ?? cleanNumber(input.tokenBudget);\n if (budget !== undefined) {\n payload.budget = budget;\n }\n\n const ranking = cleanString(input.ranking) ?? cleanString(input.rankingProfile);\n if (ranking) {\n payload.ranking = ranking;\n }\n\n const limit = cleanNumber(input.limit);\n if (limit !== undefined) {\n payload.limit = limit;\n }\n\n const maxDepth = cleanNumber(input.maxDepth);\n if (maxDepth !== undefined) {\n payload.maxDepth = maxDepth;\n }\n\n const includeEntities = cleanBoolean(input.includeEntities);\n if (includeEntities !== undefined) {\n payload.includeEntities = includeEntities;\n }\n\n const mode = cleanString(input.mode);\n if (mode) {\n payload.mode = mode;\n }\n\n const includeFailures = cleanBoolean(input.includeFailures);\n if (includeFailures !== undefined) {\n payload.includeFailures = includeFailures;\n }\n\n const worktreeId = cleanString(input.worktreeId);\n if (worktreeId) {\n payload.worktreeId = worktreeId;\n }\n\n const sessionId = cleanString(input.sessionId);\n if (sessionId) {\n payload.sessionId = sessionId;\n }\n\n if (\n Array.isArray(input.packWeightOverrides) &&\n input.packWeightOverrides.length > 0\n ) {\n payload.packWeightOverrides = input.packWeightOverrides;\n }\n\n return {\n path: \"/api/platform/v1/context/compile\",\n method: \"POST\",\n body: payload,\n };\n}\n\nexport function createContextFacade(config: ContextFacadeConfig) {\n return {\n compile(topicId: string, input: CompileContextInput = {}) {\n const request = buildCompileContextRequest(topicId, input);\n return config.transport.request<PublicCompiledContext>(request);\n },\n };\n}\n\nexport type { CompileContextInput, PublicCompiledContext };\n"]}
|
package/dist/gatewayFacades.d.ts
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { GatewayClientConfig, PlatformGatewaySuccess
|
|
3
|
-
import { TraverseInput, AnalyzeInput, BiasInput, GapsInput } from './graphClient.js';
|
|
4
|
-
import { JsonObject, GraphNeighborhoodResponse, TopicRecord, TopicListResponse, TopicTreeResponse, TopicCoverageResponse } from './types.js';
|
|
1
|
+
import { JsonObject, GraphNeighborhoodResponse, GraphAnalyticsMetric, TopicRecord, TopicListResponse, TopicTreeResponse, TopicCoverageResponse } from './types.js';
|
|
2
|
+
import { GatewayClientConfig, PlatformGatewaySuccess } from './coreClient.js';
|
|
5
3
|
import { ModulateConfidenceInput } from './beliefsClient.js';
|
|
6
4
|
import { OntologyBindingInput } from './ontologyClient.js';
|
|
7
|
-
import './
|
|
8
|
-
import './contracts/auth-session.contract.js';
|
|
5
|
+
import { TopicCreateInput, TopicListInput, TopicUpdateInput, TopicTreeQuery, TopicCoverageQuery, TopicBulkCreateInput } from './topicsClient.js';
|
|
9
6
|
import './contracts/workflow-runtime.contract.js';
|
|
10
7
|
import './contracts/lens-workflow.contract.js';
|
|
11
8
|
import './contracts/lens-filter.contract.js';
|
|
@@ -37,6 +34,26 @@ type GraphNeighborhoodInput = {
|
|
|
37
34
|
globalIds?: string | string[];
|
|
38
35
|
maxDepth?: number;
|
|
39
36
|
};
|
|
37
|
+
type GraphTraverseInput = {
|
|
38
|
+
startNode: string;
|
|
39
|
+
direction?: string;
|
|
40
|
+
maxDepth?: number;
|
|
41
|
+
topicId?: string;
|
|
42
|
+
};
|
|
43
|
+
type GraphAnalyzeInput = {
|
|
44
|
+
topicId?: string;
|
|
45
|
+
metric?: GraphAnalyticsMetric;
|
|
46
|
+
limit?: number;
|
|
47
|
+
};
|
|
48
|
+
type GraphBiasInput = {
|
|
49
|
+
topicId?: string;
|
|
50
|
+
threshold?: number;
|
|
51
|
+
limit?: number;
|
|
52
|
+
};
|
|
53
|
+
type GraphGapsInput = {
|
|
54
|
+
topicId?: string;
|
|
55
|
+
minConfidence?: number;
|
|
56
|
+
};
|
|
40
57
|
type GraphFalsifyInput = {
|
|
41
58
|
topicId?: string;
|
|
42
59
|
beliefId?: string;
|
|
@@ -122,7 +139,6 @@ type EdgeCreateInput = {
|
|
|
122
139
|
weight?: number;
|
|
123
140
|
context?: string;
|
|
124
141
|
reasoning?: string;
|
|
125
|
-
reasoningMethod?: string;
|
|
126
142
|
};
|
|
127
143
|
type EdgeListQuery = {
|
|
128
144
|
sourceId?: string;
|
|
@@ -229,8 +245,6 @@ type TaskUpdateInput = {
|
|
|
229
245
|
description?: string;
|
|
230
246
|
priority?: string;
|
|
231
247
|
status?: string;
|
|
232
|
-
assigneeId?: string;
|
|
233
|
-
blockedReason?: string;
|
|
234
248
|
linkedBeliefId?: string;
|
|
235
249
|
linkedQuestionId?: string;
|
|
236
250
|
linkedWorktreeId?: string;
|
|
@@ -251,39 +265,7 @@ type WorktreeCreateInput = {
|
|
|
251
265
|
topicId?: string;
|
|
252
266
|
objective?: string;
|
|
253
267
|
hypothesis?: string;
|
|
254
|
-
rationale?: string;
|
|
255
|
-
worktreeType?: string;
|
|
256
|
-
startDate?: number;
|
|
257
|
-
endDate?: number;
|
|
258
|
-
durationWeeks?: number;
|
|
259
|
-
confidenceImpact?: "high" | "medium" | "low";
|
|
260
|
-
beliefFocus?: string;
|
|
261
268
|
beliefIds?: string[];
|
|
262
|
-
targetBeliefIds?: string[];
|
|
263
|
-
targetQuestionIds?: string[];
|
|
264
|
-
keyQuestions?: Array<{
|
|
265
|
-
question: string;
|
|
266
|
-
status?: "open" | "answered" | "forked";
|
|
267
|
-
answer?: string;
|
|
268
|
-
answerConfidence?: "high" | "medium" | "low";
|
|
269
|
-
linkedQuestionId?: string;
|
|
270
|
-
}>;
|
|
271
|
-
evidenceSignals?: Array<{
|
|
272
|
-
signal: string;
|
|
273
|
-
collected?: boolean;
|
|
274
|
-
progress?: string;
|
|
275
|
-
notes?: string;
|
|
276
|
-
}>;
|
|
277
|
-
decisionGate?: {
|
|
278
|
-
goCriteria: string[];
|
|
279
|
-
noGoSignals: string[];
|
|
280
|
-
verdict?: "go" | "no_go" | "pivot" | "pending";
|
|
281
|
-
verdictRationale?: string;
|
|
282
|
-
decidedAt?: number;
|
|
283
|
-
decidedBy?: string;
|
|
284
|
-
};
|
|
285
|
-
goCriteria?: string[];
|
|
286
|
-
noGoSignals?: string[];
|
|
287
269
|
autoShape?: boolean;
|
|
288
270
|
domainPackId?: string;
|
|
289
271
|
campaign?: number;
|
|
@@ -297,7 +279,6 @@ type WorktreeCreateInput = {
|
|
|
297
279
|
staffingHint?: string;
|
|
298
280
|
lastReconciledAt?: number;
|
|
299
281
|
autoFixPolicy?: unknown;
|
|
300
|
-
lensId?: string;
|
|
301
282
|
};
|
|
302
283
|
type WorktreeListQuery = {
|
|
303
284
|
topicId?: string;
|
|
@@ -334,7 +315,7 @@ type WorktreeUpdateInput = {
|
|
|
334
315
|
type WorktreeMergeInput = {
|
|
335
316
|
id: string;
|
|
336
317
|
summary?: string;
|
|
337
|
-
outcomes: Array<
|
|
318
|
+
outcomes: Array<{
|
|
338
319
|
beliefId: string;
|
|
339
320
|
confidence: number;
|
|
340
321
|
rationale: string;
|
|
@@ -347,6 +328,11 @@ type WorktreeTargetsInput = {
|
|
|
347
328
|
removeBeliefIds?: string[];
|
|
348
329
|
removeQuestionIds?: string[];
|
|
349
330
|
};
|
|
331
|
+
type OntologyListInput = {
|
|
332
|
+
tenantId?: string;
|
|
333
|
+
tier?: string;
|
|
334
|
+
status?: string;
|
|
335
|
+
};
|
|
350
336
|
type OntologyMatchInput = GatewayRecord;
|
|
351
337
|
type WebhookCreateInput = GatewayRecord;
|
|
352
338
|
type WebhookUpdateInput = GatewayRecord;
|
|
@@ -478,62 +464,37 @@ declare function createEventsFacade(config?: GatewayClientConfig): {
|
|
|
478
464
|
};
|
|
479
465
|
declare function createGraphFacade(config?: GatewayClientConfig): {
|
|
480
466
|
neighborhood(input: GraphNeighborhoodInput): Promise<PlatformGatewaySuccess<GraphNeighborhoodResponse>>;
|
|
467
|
+
traverse(input: GraphTraverseInput): Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
|
|
468
|
+
analyze(input?: GraphAnalyzeInput): Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
|
|
469
|
+
bias(input?: GraphBiasInput): Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
|
|
470
|
+
gaps(input: GraphGapsInput): Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
|
|
481
471
|
falsify(input: GraphFalsifyInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<GatewayRecord>>;
|
|
482
|
-
} & {
|
|
483
|
-
traverse: (query: TraverseInput) => Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
|
|
484
|
-
analyze: (query?: AnalyzeInput) => Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
|
|
485
|
-
bias: (query?: BiasInput) => Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
|
|
486
|
-
gaps: (query: GapsInput) => Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
|
|
487
472
|
};
|
|
488
473
|
declare function createIdentityFacade(config?: GatewayClientConfig): {
|
|
489
474
|
whoami(): Promise<PlatformGatewaySuccess<{
|
|
490
475
|
principalId: string;
|
|
491
|
-
principalType: "
|
|
492
|
-
clerkId: string | undefined;
|
|
476
|
+
principalType: "user" | "human" | "service" | "group" | "external_viewer" | "agent";
|
|
493
477
|
tenantId: string | null;
|
|
494
478
|
workspaceId: string | null;
|
|
495
479
|
scopes: string[];
|
|
496
480
|
roles: string[];
|
|
497
|
-
groupIds: string[];
|
|
498
|
-
permittedToolNames: string[];
|
|
499
|
-
permittedPackKeys: string[];
|
|
500
|
-
principalStatus: string | undefined;
|
|
501
|
-
tenantStatus: string | undefined;
|
|
502
|
-
workspaceStatus: string | undefined;
|
|
503
481
|
isPlatformAdmin: boolean;
|
|
504
482
|
isTenantAdmin: boolean;
|
|
505
483
|
isWorkspaceAdmin: boolean;
|
|
506
|
-
permit: {
|
|
507
|
-
subject: string;
|
|
508
|
-
tenant: string;
|
|
509
|
-
workspace?: string;
|
|
510
|
-
} | undefined;
|
|
511
484
|
authMode: string | undefined;
|
|
512
485
|
sessionId: string | undefined;
|
|
513
486
|
delegatedBy: string | undefined;
|
|
514
487
|
expiresAt: number | undefined;
|
|
515
488
|
}> & {
|
|
516
489
|
principalId: string;
|
|
517
|
-
principalType: "
|
|
518
|
-
clerkId: string | undefined;
|
|
490
|
+
principalType: "user" | "human" | "service" | "group" | "external_viewer" | "agent";
|
|
519
491
|
tenantId: string | null;
|
|
520
492
|
workspaceId: string | null;
|
|
521
493
|
scopes: string[];
|
|
522
494
|
roles: string[];
|
|
523
|
-
groupIds: string[];
|
|
524
|
-
permittedToolNames: string[];
|
|
525
|
-
permittedPackKeys: string[];
|
|
526
|
-
principalStatus: string | undefined;
|
|
527
|
-
tenantStatus: string | undefined;
|
|
528
|
-
workspaceStatus: string | undefined;
|
|
529
495
|
isPlatformAdmin: boolean;
|
|
530
496
|
isTenantAdmin: boolean;
|
|
531
497
|
isWorkspaceAdmin: boolean;
|
|
532
|
-
permit: {
|
|
533
|
-
subject: string;
|
|
534
|
-
tenant: string;
|
|
535
|
-
workspace?: string;
|
|
536
|
-
} | undefined;
|
|
537
498
|
authMode: string | undefined;
|
|
538
499
|
sessionId: string | undefined;
|
|
539
500
|
delegatedBy: string | undefined;
|
|
@@ -542,19 +503,14 @@ declare function createIdentityFacade(config?: GatewayClientConfig): {
|
|
|
542
503
|
};
|
|
543
504
|
declare function createOntologiesFacade(config?: GatewayClientConfig): {
|
|
544
505
|
get(id: string): Promise<PlatformGatewaySuccess<GatewayRecord>>;
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
} & {
|
|
548
|
-
list: (filters?: GatewayScope & {
|
|
549
|
-
tenantId?: string;
|
|
550
|
-
tier?: string;
|
|
551
|
-
status?: string;
|
|
552
|
-
}) => Promise<PlatformGatewaySuccess<{
|
|
553
|
-
ontologies: unknown[];
|
|
506
|
+
list(query?: OntologyListInput): Promise<PlatformGatewaySuccess<{
|
|
507
|
+
ontologies: any[];
|
|
554
508
|
total: number;
|
|
555
|
-
items:
|
|
556
|
-
definitions:
|
|
509
|
+
items: any[];
|
|
510
|
+
definitions: any[];
|
|
557
511
|
}>>;
|
|
512
|
+
bind(input: OntologyBindingInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<GatewayRecord>>;
|
|
513
|
+
match(input: OntologyMatchInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<GatewayRecord>>;
|
|
558
514
|
};
|
|
559
515
|
declare function createQuestionsFacade(config?: GatewayClientConfig): {
|
|
560
516
|
create(input: QuestionCreateInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<GatewayRecord>>;
|
|
@@ -583,9 +539,9 @@ declare function createTasksFacade(config?: GatewayClientConfig): {
|
|
|
583
539
|
list(query: TaskListQuery): Promise<PlatformGatewaySuccess<TaskListResult>>;
|
|
584
540
|
};
|
|
585
541
|
declare function createTopicsFacade(config?: GatewayClientConfig): {
|
|
586
|
-
create
|
|
587
|
-
get
|
|
588
|
-
list
|
|
542
|
+
create(input: TopicCreateInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<TopicRecord>>;
|
|
543
|
+
get(id: string): Promise<PlatformGatewaySuccess<TopicRecord>>;
|
|
544
|
+
list(query?: TopicListInput): Promise<PlatformGatewaySuccess<TopicListResponse>>;
|
|
589
545
|
update(input: TopicUpdateInput & {
|
|
590
546
|
id: string;
|
|
591
547
|
}, idempotencyKey?: string): Promise<PlatformGatewaySuccess<TopicRecord>>;
|
|
@@ -595,8 +551,8 @@ declare function createTopicsFacade(config?: GatewayClientConfig): {
|
|
|
595
551
|
coverage(input: TopicCoverageQuery & {
|
|
596
552
|
id: string;
|
|
597
553
|
}): Promise<PlatformGatewaySuccess<TopicCoverageResponse>>;
|
|
598
|
-
remove
|
|
599
|
-
bulkCreate
|
|
554
|
+
remove(id: string, idempotencyKey?: string): Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
|
|
555
|
+
bulkCreate(input: TopicBulkCreateInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
|
|
600
556
|
};
|
|
601
557
|
declare function createWebhooksFacade(config?: GatewayClientConfig): {
|
|
602
558
|
create(input: WebhookCreateInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<GatewayRecord>>;
|