@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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export function createClientPlatformNamespaces(ctx) {
|
|
2
|
-
const { accessControlClient,
|
|
2
|
+
const { accessControlClient, adminClient, answersClient, auditClient, authDeviceClient, audiencesClient, beliefsClient, clearRegisteredCustomTools, controlPlaneClient, createContractCompat, decisionsClient, embeddingsClient, ensurePack, evaluateContractCompat, eventingClient, evidenceClient, extensionNamespaces, functionSurfaceClient, getContractStatusCompat, getCustomNamespace, getPackInstalled, graphAnalysisClient, graphClient, graphRecommendationsClient, graphStateClassifierClient, harnessClient, identityClient, identityFacade, invokeCustomTool, jobsClient, learningClient, listContractsCompat, listRegisteredCustomTools, mcpClient, modelRuntimeClient, nodesNamespace, ontologyClient, ontologyLinksClient, ontologyLinksNamespace, orgGraphSearchClient, packsClient, policyClient, publicationNamespace, registerCustomTool, reportsClient, resolveCustomToolFullName, schemaClient, sourcesClient, telemetryClient, toolRegistryClient, topicsClient, unregisterCustomTool, workflowClient, } = ctx;
|
|
3
3
|
return {
|
|
4
4
|
coordination: {
|
|
5
5
|
registerSession: functionSurfaceClient.registerSession,
|
|
@@ -20,7 +20,9 @@ export function createClientPlatformNamespaces(ctx) {
|
|
|
20
20
|
? input.permission
|
|
21
21
|
: undefined,
|
|
22
22
|
principal: typeof input.principal === "string" ? input.principal : undefined,
|
|
23
|
-
principalId: typeof input.principalId === "string"
|
|
23
|
+
principalId: typeof input.principalId === "string"
|
|
24
|
+
? input.principalId
|
|
25
|
+
: undefined,
|
|
24
26
|
beliefClusterId: typeof input.beliefClusterId === "string"
|
|
25
27
|
? input.beliefClusterId
|
|
26
28
|
: undefined,
|
|
@@ -35,7 +37,9 @@ export function createClientPlatformNamespaces(ctx) {
|
|
|
35
37
|
? input.includeShared
|
|
36
38
|
: undefined,
|
|
37
39
|
principal: typeof input.principal === "string" ? input.principal : undefined,
|
|
38
|
-
principalId: typeof input.principalId === "string"
|
|
40
|
+
principalId: typeof input.principalId === "string"
|
|
41
|
+
? input.principalId
|
|
42
|
+
: undefined,
|
|
39
43
|
limit: typeof input.limit === "number" ? input.limit : undefined,
|
|
40
44
|
});
|
|
41
45
|
},
|
|
@@ -48,7 +52,9 @@ export function createClientPlatformNamespaces(ctx) {
|
|
|
48
52
|
? input.permission
|
|
49
53
|
: undefined,
|
|
50
54
|
principal: typeof input.principal === "string" ? input.principal : undefined,
|
|
51
|
-
principalId: typeof input.principalId === "string"
|
|
55
|
+
principalId: typeof input.principalId === "string"
|
|
56
|
+
? input.principalId
|
|
57
|
+
: undefined,
|
|
52
58
|
});
|
|
53
59
|
},
|
|
54
60
|
compileCapabilitySlice(input, idempotencyKey) {
|
|
@@ -167,7 +173,6 @@ export function createClientPlatformNamespaces(ctx) {
|
|
|
167
173
|
raw: controlPlaneClient,
|
|
168
174
|
},
|
|
169
175
|
identity: {
|
|
170
|
-
whoami: identityFacade.whoami,
|
|
171
176
|
...identityFacade,
|
|
172
177
|
access: accessControlClient,
|
|
173
178
|
resolveInteractivePrincipal: identityClient.resolveInteractivePrincipal,
|
package/dist/clientRuntime.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import type { GatewayDataEnvelope, LucernClientConfig } from "./client-config";
|
|
1
2
|
import type { GatewayClientConfig, PlatformGatewaySuccess } from "./coreClient";
|
|
2
|
-
import type { GatewayDataEnvelope, LucernClientConfig } from "./clientConfig";
|
|
3
3
|
export declare function toGatewayConfig(config: LucernClientConfig): GatewayClientConfig;
|
|
4
4
|
export declare function exposeGatewayData<T>(response: PlatformGatewaySuccess<T>): GatewayDataEnvelope<T>;
|
|
5
5
|
//# sourceMappingURL=clientRuntime.d.ts.map
|
package/dist/clientRuntime.js
CHANGED
|
@@ -22,7 +22,7 @@ export function toGatewayConfig(config) {
|
|
|
22
22
|
export function exposeGatewayData(response) {
|
|
23
23
|
const data = response.data;
|
|
24
24
|
if (data !== null && typeof data === "object" && !Array.isArray(data)) {
|
|
25
|
-
return
|
|
25
|
+
return { ...response, ...data };
|
|
26
26
|
}
|
|
27
27
|
return { ...response };
|
|
28
28
|
}
|
|
@@ -1,114 +1,187 @@
|
|
|
1
|
-
import type { ClientNamespaceContext } from "./
|
|
1
|
+
import type { ClientNamespaceContext } from "./client-assembly-types";
|
|
2
2
|
import type { FunctionSurfaceInput } from "./generated/functionSurface";
|
|
3
3
|
import type { JsonObject } from "./types";
|
|
4
4
|
import type { AddWorktreeInput, CompleteTaskInput, CreateTaskInput, MergeInput, UpdateTaskInput } from "./workflowClient";
|
|
5
5
|
export declare function createClientWorkflowNamespaces(ctx: ClientNamespaceContext): {
|
|
6
6
|
judgments: {
|
|
7
|
-
create:
|
|
8
|
-
record:
|
|
9
|
-
list:
|
|
10
|
-
get:
|
|
11
|
-
recordOutcome:
|
|
12
|
-
updateOutcome:
|
|
13
|
-
readiness(topicId: string):
|
|
14
|
-
calibration(topicId: string):
|
|
15
|
-
pendingOutcomeReview(topicId: string):
|
|
7
|
+
create: (input: import("./decisionsClient").RecordJudgmentInput, idempotencyKey?: string) => Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").RecordJudgmentResponse>>;
|
|
8
|
+
record: (input: import("./decisionsClient").RecordJudgmentInput, idempotencyKey?: string) => Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").RecordJudgmentResponse>>;
|
|
9
|
+
list: (query: import("./decisionsClient").ListJudgmentsInput) => Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").ListJudgmentsResponse>>;
|
|
10
|
+
get: (judgmentId: string) => Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").GetJudgmentResponse>>;
|
|
11
|
+
recordOutcome: (judgmentId: string, input: import("./decisionsClient").RecordJudgmentOutcomeInput, idempotencyKey?: string) => Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").RecordJudgmentOutcomeResponse>>;
|
|
12
|
+
updateOutcome: (judgmentId: string, input: import("./decisionsClient").RecordJudgmentOutcomeInput, idempotencyKey?: string) => Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").RecordJudgmentOutcomeResponse>>;
|
|
13
|
+
readiness(topicId: string): Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").JudgmentReadinessResponse>>;
|
|
14
|
+
calibration(topicId: string): Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").JudgmentCalibrationResponse>>;
|
|
15
|
+
pendingOutcomeReview(topicId: string): Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").ListResult<import("./types").PendingJudgmentOutcomeRecord, "reviews">>>;
|
|
16
16
|
transitionAuditIntegrity(args: {
|
|
17
17
|
topicId?: string;
|
|
18
18
|
judgmentId?: string;
|
|
19
19
|
includePassing?: boolean;
|
|
20
|
-
}):
|
|
20
|
+
}): Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").JudgmentTransitionAuditIntegrityResponse>>;
|
|
21
21
|
};
|
|
22
22
|
decisions: {
|
|
23
|
-
create:
|
|
24
|
-
record:
|
|
25
|
-
list:
|
|
26
|
-
get:
|
|
27
|
-
recordOutcome:
|
|
28
|
-
lessons(decisionId: string, input: JsonObject, idempotencyKey?: string): Promise<
|
|
29
|
-
archive(decisionId: string, input?: JsonObject, idempotencyKey?: string): Promise<
|
|
30
|
-
readiness(topicId: string):
|
|
31
|
-
calibration(topicId: string):
|
|
32
|
-
pendingOutcomeReview(topicId: string):
|
|
23
|
+
create: (input: import("./decisionsClient").RecordJudgmentInput, idempotencyKey?: string) => Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").RecordJudgmentResponse>>;
|
|
24
|
+
record: (input: import("./decisionsClient").RecordJudgmentInput, idempotencyKey?: string) => Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").RecordJudgmentResponse>>;
|
|
25
|
+
list: (query: import("./decisionsClient").ListJudgmentsInput) => Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").ListJudgmentsResponse>>;
|
|
26
|
+
get: (judgmentId: string) => Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").GetJudgmentResponse>>;
|
|
27
|
+
recordOutcome: (judgmentId: string, input: import("./decisionsClient").RecordJudgmentOutcomeInput, idempotencyKey?: string) => Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").RecordJudgmentOutcomeResponse>>;
|
|
28
|
+
lessons(decisionId: string, input: JsonObject, idempotencyKey?: string): Promise<import("./client-config").GatewayDataEnvelope<Record<string, unknown>>>;
|
|
29
|
+
archive(decisionId: string, input?: JsonObject, idempotencyKey?: string): Promise<import("./client-config").GatewayDataEnvelope<Record<string, unknown>>>;
|
|
30
|
+
readiness(topicId: string): Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").JudgmentReadinessResponse>>;
|
|
31
|
+
calibration(topicId: string): Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").JudgmentCalibrationResponse>>;
|
|
32
|
+
pendingOutcomeReview(topicId: string): Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").ListResult<import("./types").PendingJudgmentOutcomeRecord, "reviews">>>;
|
|
33
33
|
};
|
|
34
34
|
worktrees: {
|
|
35
|
-
createBranch: (
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
35
|
+
createBranch: (input: {
|
|
36
|
+
name: string;
|
|
37
|
+
topicId?: string;
|
|
38
|
+
description?: string;
|
|
39
|
+
metadata?: JsonObject;
|
|
40
|
+
} & import("./types").TopicIdentifierInput, idempotencyKey?: string) => Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").WorkflowBranchRecord>>;
|
|
41
|
+
createLens: (input: {
|
|
42
|
+
name: string;
|
|
43
|
+
workspaceId?: string;
|
|
44
|
+
topicId?: string;
|
|
45
|
+
description?: string;
|
|
46
|
+
perspectiveType: import("./workflowClient").WorkflowLensPerspectiveType;
|
|
47
|
+
promptTemplates?: import(".").LensPromptTemplateReference[];
|
|
48
|
+
workflowTemplates?: import(".").LensWorkflowTemplate[];
|
|
49
|
+
taskTemplates?: import(".").LensTaskTemplate[];
|
|
50
|
+
questionTemplates?: import(".").LensQuestionTemplate[];
|
|
51
|
+
filterCriteria?: JsonObject;
|
|
52
|
+
} & import("./types").TopicIdentifierInput, idempotencyKey?: string) => Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").WorkflowLensRecord>>;
|
|
53
|
+
listLenses: (query: {
|
|
54
|
+
workspaceId?: string;
|
|
55
|
+
topicId?: string;
|
|
56
|
+
status?: import("./workflowClient").WorkflowLensStatus;
|
|
57
|
+
perspectiveType?: import("./workflowClient").WorkflowLensPerspectiveType;
|
|
58
|
+
} & import("./types").TopicIdentifierInput) => Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").ListResult<import("./types").WorkflowLensRecord, "lenses">>>;
|
|
59
|
+
applyLensToTopic: (input: {
|
|
60
|
+
lensId: string;
|
|
61
|
+
topicId?: string;
|
|
62
|
+
metadata?: JsonObject;
|
|
63
|
+
} & import("./types").TopicIdentifierInput, idempotencyKey?: string) => Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").WorkflowLensBindingRecord>>;
|
|
64
|
+
removeLensFromTopic: (input: {
|
|
65
|
+
lensId: string;
|
|
66
|
+
topicId?: string;
|
|
67
|
+
} & import("./types").TopicIdentifierInput, idempotencyKey?: string) => Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").WorkflowLensBindingRecord>>;
|
|
68
|
+
create(input: AddWorktreeInput): Promise<import("./coreClient").PlatformGatewaySuccess<import("./gatewayFacades").GatewayRecord>>;
|
|
69
|
+
add(input: AddWorktreeInput): Promise<import("./coreClient").PlatformGatewaySuccess<import("./gatewayFacades").GatewayRecord>>;
|
|
70
|
+
list(query: Parameters<(query: {
|
|
71
|
+
topicId?: string;
|
|
72
|
+
branchId?: string;
|
|
73
|
+
status?: import("./workflowClient").WorkflowWorktreeStatus;
|
|
74
|
+
groupBy?: "campaign" | "lane" | "flat";
|
|
75
|
+
lane?: string;
|
|
76
|
+
campaign?: number;
|
|
77
|
+
limit?: number;
|
|
78
|
+
} & import("./types").TopicIdentifierInput) => Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").ListResult<import("./types").WorkflowWorktreeRecord, "worktrees">>>>[0]): Promise<import("./coreClient").PlatformGatewaySuccess<import("./gatewayFacades").WorktreesListResult>>;
|
|
79
|
+
listByTopic(query: Parameters<(query: {
|
|
80
|
+
topicId?: string;
|
|
81
|
+
branchId?: string;
|
|
82
|
+
status?: import("./workflowClient").WorkflowWorktreeStatus;
|
|
83
|
+
groupBy?: "campaign" | "lane" | "flat";
|
|
84
|
+
lane?: string;
|
|
85
|
+
campaign?: number;
|
|
86
|
+
limit?: number;
|
|
87
|
+
} & import("./types").TopicIdentifierInput) => Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").ListResult<import("./types").WorkflowWorktreeRecord, "worktrees">>>>[0]): Promise<import("./coreClient").PlatformGatewaySuccess<import("./gatewayFacades").WorktreesListResult>>;
|
|
44
88
|
findByPairedSprint(input: {
|
|
45
89
|
sprintId: string;
|
|
46
90
|
topicId?: string;
|
|
47
91
|
projectId?: string;
|
|
48
92
|
limit?: number;
|
|
49
|
-
}): Promise<
|
|
50
|
-
activate(worktreeId: string):
|
|
51
|
-
updateMetadata(input: FunctionSurfaceInput):
|
|
52
|
-
update(input: FunctionSurfaceInput):
|
|
53
|
-
updateTargets(input: Parameters<(
|
|
54
|
-
listAll: (
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
93
|
+
}): Promise<import("./client-config").GatewayDataEnvelope<Record<string, unknown>>>;
|
|
94
|
+
activate(worktreeId: string): Promise<import("./coreClient").PlatformGatewaySuccess<import("./gatewayFacades").GatewayRecord>>;
|
|
95
|
+
updateMetadata(input: FunctionSurfaceInput): Promise<import("./coreClient").PlatformGatewaySuccess<import("./gatewayFacades").GatewayRecord>>;
|
|
96
|
+
update(input: FunctionSurfaceInput): Promise<import("./coreClient").PlatformGatewaySuccess<import("./gatewayFacades").GatewayRecord>>;
|
|
97
|
+
updateTargets(input: Parameters<(input: import("./workflowClient").UpdateWorktreeTargetsInput, idempotencyKey?: string) => Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").WorkflowWorktreeRecord>>>[0]): Promise<import("./coreClient").PlatformGatewaySuccess<import("./gatewayFacades").GatewayRecord>>;
|
|
98
|
+
listAll: (query?: {
|
|
99
|
+
status?: import("./workflowClient").WorkflowWorktreeStatus;
|
|
100
|
+
groupBy?: "campaign" | "lane" | "flat";
|
|
101
|
+
lane?: string;
|
|
102
|
+
campaign?: number;
|
|
103
|
+
limit?: number;
|
|
104
|
+
}) => Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").ListWorktreesResponse>>;
|
|
105
|
+
listCampaigns: (query?: {
|
|
106
|
+
topicId?: string;
|
|
107
|
+
status?: import("./workflowClient").WorkflowWorktreeStatus;
|
|
108
|
+
limit?: number;
|
|
109
|
+
} & import("./types").TopicIdentifierInput) => Promise<import("./coreClient").PlatformGatewaySuccess<Record<string, unknown>>>;
|
|
110
|
+
merge(worktreeId: string, input: MergeInput): Promise<import("./coreClient").PlatformGatewaySuccess<import("./gatewayFacades").GatewayRecord>>;
|
|
111
|
+
push: (worktreeId: string, input: {
|
|
112
|
+
targetContext: string;
|
|
113
|
+
beliefIds?: string[];
|
|
114
|
+
metadata?: JsonObject;
|
|
115
|
+
}, idempotencyKey?: string) => Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").PushWorktreeResponse>>;
|
|
116
|
+
openPullRequest: (worktreeId: string, input: {
|
|
117
|
+
summary: string;
|
|
118
|
+
reviewers?: string[];
|
|
119
|
+
status?: "pending_review" | "changes_requested" | "approved" | "blocked";
|
|
120
|
+
}, idempotencyKey?: string) => Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").OpenPullRequestResponse>>;
|
|
121
|
+
pipelineSnapshot(topicId: string): import("./functionSurface").FunctionSurfaceResult<unknown>;
|
|
122
|
+
complete: (input: {
|
|
123
|
+
worktreeId: string;
|
|
124
|
+
keyFindings?: string[];
|
|
125
|
+
decisionsReached?: string[];
|
|
126
|
+
nextSteps?: string[];
|
|
127
|
+
}, idempotencyKey?: string) => Promise<import("./coreClient").PlatformGatewaySuccess<import("./gatewayFacades").GatewayRecord>>;
|
|
128
|
+
advancePhase(worktreeId: string, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<import("./gatewayFacades").GatewayRecord>>;
|
|
129
|
+
setPhase(worktreeId: string, phase: string, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<import("./gatewayFacades").GatewayRecord>>;
|
|
130
|
+
patchState: (input: {
|
|
131
|
+
worktreeId: string;
|
|
132
|
+
patch: import("./gatewayFacades").GatewayRecord;
|
|
133
|
+
}, idempotencyKey?: string) => Promise<import("./coreClient").PlatformGatewaySuccess<import("./gatewayFacades").GatewayRecord>>;
|
|
134
|
+
bulkCreate: (input: {
|
|
135
|
+
worktrees: unknown[];
|
|
136
|
+
}, idempotencyKey?: string) => Promise<import("./coreClient").PlatformGatewaySuccess<import("./gatewayFacades").GatewayRecord>>;
|
|
64
137
|
};
|
|
65
138
|
context: {
|
|
66
|
-
listTopics(query?: Parameters<(
|
|
67
|
-
compile:
|
|
68
|
-
recordScopeLearning:
|
|
69
|
-
discover(input: FunctionSurfaceInput):
|
|
70
|
-
analyzeTopicDensity:
|
|
71
|
-
applyAutoBranching:
|
|
72
|
-
seedBeliefLattice:
|
|
73
|
-
getLatticeCoverage:
|
|
74
|
-
matchEntityType(input: FunctionSurfaceInput):
|
|
75
|
-
discoverEntityConnections(input: FunctionSurfaceInput):
|
|
76
|
-
triggerBeliefReview(input: FunctionSurfaceInput):
|
|
139
|
+
listTopics(query?: Parameters<(query?: import("./topicsClient").TopicListInput) => Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").TopicListResponse>>>[0]): Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").TopicListResponse>>;
|
|
140
|
+
compile: (topicIdOrInput?: string | import("./contextTypes").CompileContextInput, input?: import("./contextTypes").CompileContextInput) => Promise<import("./coreClient").PlatformGatewaySuccess<import("./contextTypes").PublicCompiledContext>>;
|
|
141
|
+
recordScopeLearning: (input?: FunctionSurfaceInput, idempotencyKey?: string) => import("./functionSurface").FunctionSurfaceResult<unknown>;
|
|
142
|
+
discover(input: FunctionSurfaceInput): Promise<import("./coreClient").PlatformGatewaySuccess<Record<string, unknown>> & Record<string, unknown>>;
|
|
143
|
+
analyzeTopicDensity: (input?: FunctionSurfaceInput, idempotencyKey?: string) => import("./functionSurface").FunctionSurfaceResult<unknown>;
|
|
144
|
+
applyAutoBranching: (input?: FunctionSurfaceInput, idempotencyKey?: string) => import("./functionSurface").FunctionSurfaceResult<unknown>;
|
|
145
|
+
seedBeliefLattice: (input?: FunctionSurfaceInput, idempotencyKey?: string) => import("./functionSurface").FunctionSurfaceResult<unknown>;
|
|
146
|
+
getLatticeCoverage: (input?: FunctionSurfaceInput, idempotencyKey?: string) => import("./functionSurface").FunctionSurfaceResult<unknown>;
|
|
147
|
+
matchEntityType(input: FunctionSurfaceInput): Promise<import("./client-config").GatewayDataEnvelope<import("./gatewayFacades").GatewayRecord>>;
|
|
148
|
+
discoverEntityConnections(input: FunctionSurfaceInput): Promise<import("./coreClient").PlatformGatewaySuccess<Record<string, unknown>> & Record<string, unknown>>;
|
|
149
|
+
triggerBeliefReview(input: FunctionSurfaceInput): Promise<import("./coreClient").PlatformGatewaySuccess<Record<string, unknown>> & Record<string, unknown>>;
|
|
77
150
|
};
|
|
78
151
|
tasks: {
|
|
79
|
-
create(input: CreateTaskInput):
|
|
80
|
-
complete(taskId: string, input: CompleteTaskInput):
|
|
81
|
-
update(taskId: string, input: UpdateTaskInput):
|
|
82
|
-
list(input: FunctionSurfaceInput):
|
|
152
|
+
create(input: CreateTaskInput): Promise<import("./coreClient").PlatformGatewaySuccess<import("./gatewayFacades").GatewayRecord>>;
|
|
153
|
+
complete(taskId: string, input: CompleteTaskInput): Promise<import("./coreClient").PlatformGatewaySuccess<import("./gatewayFacades").GatewayRecord>>;
|
|
154
|
+
update(taskId: string, input: UpdateTaskInput): Promise<import("./coreClient").PlatformGatewaySuccess<import("./gatewayFacades").GatewayRecord>>;
|
|
155
|
+
list(input: FunctionSurfaceInput): Promise<import("./coreClient").PlatformGatewaySuccess<import("./gatewayFacades").TaskListResult>>;
|
|
83
156
|
listByTopic(input: FunctionSurfaceInput & {
|
|
84
157
|
topicId?: string;
|
|
85
|
-
}):
|
|
158
|
+
}): Promise<import("./coreClient").PlatformGatewaySuccess<import("./gatewayFacades").TaskListResult>>;
|
|
86
159
|
listByWorktree(input: FunctionSurfaceInput & {
|
|
87
160
|
worktreeId: string;
|
|
88
|
-
}):
|
|
89
|
-
linkChat(taskId: string, input: JsonObject, idempotencyKey?: string): Promise<
|
|
161
|
+
}): Promise<import("./coreClient").PlatformGatewaySuccess<import("./gatewayFacades").TaskListResult>>;
|
|
162
|
+
linkChat(taskId: string, input: JsonObject, idempotencyKey?: string): Promise<import("./client-config").GatewayDataEnvelope<Record<string, unknown>>>;
|
|
90
163
|
};
|
|
91
164
|
topics: {
|
|
92
|
-
list(input?: Parameters<(
|
|
93
|
-
get: (
|
|
94
|
-
create(input: Parameters<(
|
|
95
|
-
update(topicId: string, input: Parameters<(
|
|
96
|
-
tree(topicId: string, query?: Parameters<(
|
|
165
|
+
list(input?: Parameters<(query?: import("./topicsClient").TopicListInput) => Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").TopicListResponse>>>[0]): Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").TopicListResponse>>;
|
|
166
|
+
get: (topicId: string) => Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").TopicRecord>>;
|
|
167
|
+
create(input: Parameters<(input: import("./topicsClient").TopicCreateInput, idempotencyKey?: string) => Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").TopicRecord>>>[0]): Promise<import("./client-config").GatewayDataEnvelope<unknown>>;
|
|
168
|
+
update(topicId: string, input: Parameters<(topicId: string, input: import("./topicsClient").TopicUpdateInput, idempotencyKey?: string) => Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").TopicRecord>>>[1]): Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").TopicRecord>>;
|
|
169
|
+
tree(topicId: string, query?: Parameters<(topicId: string, query?: import("./topicsClient").TopicTreeQuery) => Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").TopicTreeResponse>>>[1]): Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").TopicTreeResponse>>;
|
|
97
170
|
getTree(input: {
|
|
98
171
|
rootId: string;
|
|
99
172
|
maxDepth?: number;
|
|
100
|
-
}):
|
|
101
|
-
coverage(topicId: string, query?: Parameters<(
|
|
102
|
-
remove: (
|
|
103
|
-
bulkCreate: (
|
|
104
|
-
materializeGraph(input?: FunctionSurfaceInput, idempotencyKey?: string):
|
|
105
|
-
materializeTopicGraph(input?: FunctionSurfaceInput, idempotencyKey?: string):
|
|
106
|
-
graphSpine(input?: FunctionSurfaceInput):
|
|
107
|
-
getTopicGraphSpine(input?: FunctionSurfaceInput):
|
|
173
|
+
}): Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").TopicTreeResponse>>;
|
|
174
|
+
coverage(topicId: string, query?: Parameters<(topicId: string, query?: import("./topicsClient").TopicCoverageQuery) => Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").TopicCoverageResponse>>>[1]): Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").TopicCoverageResponse>>;
|
|
175
|
+
remove: (topicId: string, idempotencyKey?: string) => Promise<import("./coreClient").PlatformGatewaySuccess<Record<string, unknown>>>;
|
|
176
|
+
bulkCreate: (input: import("./topicsClient").TopicBulkCreateInput, idempotencyKey?: string) => Promise<import("./coreClient").PlatformGatewaySuccess<Record<string, unknown>>>;
|
|
177
|
+
materializeGraph(input?: FunctionSurfaceInput, idempotencyKey?: string): Promise<import("./client-config").GatewayDataEnvelope<unknown>>;
|
|
178
|
+
materializeTopicGraph(input?: FunctionSurfaceInput, idempotencyKey?: string): Promise<import("./client-config").GatewayDataEnvelope<unknown>>;
|
|
179
|
+
graphSpine(input?: FunctionSurfaceInput): Promise<import("./client-config").GatewayDataEnvelope<unknown>>;
|
|
180
|
+
getTopicGraphSpine(input?: FunctionSurfaceInput): Promise<import("./client-config").GatewayDataEnvelope<unknown>>;
|
|
108
181
|
};
|
|
109
182
|
answers: {
|
|
110
|
-
create(input: FunctionSurfaceInput):
|
|
111
|
-
get(input: FunctionSurfaceInput):
|
|
183
|
+
create(input: FunctionSurfaceInput): Promise<import("./coreClient").PlatformGatewaySuccess<import("./gatewayFacades").GatewayRecord>>;
|
|
184
|
+
get(input: FunctionSurfaceInput): Promise<import("./coreClient").PlatformGatewaySuccess<Record<string, unknown>>>;
|
|
112
185
|
};
|
|
113
186
|
contradictions: {
|
|
114
187
|
flag(args: {
|
|
@@ -118,36 +191,77 @@ export declare function createClientWorkflowNamespaces(ctx: ClientNamespaceConte
|
|
|
118
191
|
topicId?: string;
|
|
119
192
|
severity?: string;
|
|
120
193
|
defeatType?: string;
|
|
121
|
-
}):
|
|
194
|
+
}): Promise<import("./client-config").GatewayDataEnvelope<import("./gatewayFacades").GatewayRecord>>;
|
|
122
195
|
list(args: {
|
|
123
196
|
topicId?: string;
|
|
124
197
|
status?: string;
|
|
125
198
|
limit?: number;
|
|
126
199
|
cursor?: string;
|
|
127
|
-
}):
|
|
128
|
-
get(contradictionId: string):
|
|
129
|
-
find:
|
|
200
|
+
}): Promise<import("./client-config").GatewayDataEnvelope<import("./gatewayFacades").ContradictionsListResult>>;
|
|
201
|
+
get(contradictionId: string): Promise<import("./client-config").GatewayDataEnvelope<import("./gatewayFacades").GatewayRecord>>;
|
|
202
|
+
find: (args_0: JsonObject) => Promise<import("./coreClient").PlatformGatewaySuccess<Record<string, unknown>> & Record<string, unknown>>;
|
|
130
203
|
};
|
|
131
204
|
ontologies: {
|
|
132
205
|
list(input?: {
|
|
133
206
|
tenantId?: string;
|
|
134
207
|
tier?: string;
|
|
135
208
|
status?: string;
|
|
136
|
-
}):
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
209
|
+
}): Promise<import("./client-config").GatewayDataEnvelope<{
|
|
210
|
+
ontologies: unknown[];
|
|
211
|
+
total: number;
|
|
212
|
+
items: unknown[];
|
|
213
|
+
definitions: unknown[];
|
|
214
|
+
}>>;
|
|
215
|
+
get(ontologyId: string): Promise<import("./client-config").GatewayDataEnvelope<import("./gatewayFacades").GatewayRecord>>;
|
|
216
|
+
bind(input: Parameters<(input: import("./ontologyClient").OntologyBindingInput, idempotencyKey?: string) => Promise<import("./coreClient").PlatformGatewaySuccess<import("./gatewayFacades").GatewayRecord>>>[0], idempotencyKey?: Parameters<(input: import("./ontologyClient").OntologyBindingInput, idempotencyKey?: string) => Promise<import("./coreClient").PlatformGatewaySuccess<import("./gatewayFacades").GatewayRecord>>>[1]): Promise<import("./client-config").GatewayDataEnvelope<import("./gatewayFacades").GatewayRecord>>;
|
|
217
|
+
match(input: Parameters<(input: import("./gatewayFacades").OntologyMatchInput, idempotencyKey?: string) => Promise<import("./coreClient").PlatformGatewaySuccess<import("./gatewayFacades").GatewayRecord>>>[0], idempotencyKey?: Parameters<(input: import("./gatewayFacades").OntologyMatchInput, idempotencyKey?: string) => Promise<import("./coreClient").PlatformGatewaySuccess<import("./gatewayFacades").GatewayRecord>>>[1]): Promise<import("./client-config").GatewayDataEnvelope<import("./gatewayFacades").GatewayRecord>>;
|
|
218
|
+
create(input: FunctionSurfaceInput): Promise<import("./coreClient").PlatformGatewaySuccess<Record<string, unknown>> & Record<string, unknown>>;
|
|
219
|
+
update(input: FunctionSurfaceInput): Promise<import("./coreClient").PlatformGatewaySuccess<Record<string, unknown>> & Record<string, unknown>>;
|
|
220
|
+
archive(input: FunctionSurfaceInput): Promise<import("./coreClient").PlatformGatewaySuccess<Record<string, unknown>> & Record<string, unknown>>;
|
|
221
|
+
createVersion(input: FunctionSurfaceInput): Promise<import("./coreClient").PlatformGatewaySuccess<Record<string, unknown>> & Record<string, unknown>>;
|
|
222
|
+
publishVersion(input: FunctionSurfaceInput): Promise<import("./coreClient").PlatformGatewaySuccess<Record<string, unknown>> & Record<string, unknown>>;
|
|
223
|
+
publishOntologyVersion(input: FunctionSurfaceInput): Promise<import("./coreClient").PlatformGatewaySuccess<Record<string, unknown>> & Record<string, unknown>>;
|
|
224
|
+
deprecateVersion(input: FunctionSurfaceInput): Promise<import("./coreClient").PlatformGatewaySuccess<Record<string, unknown>> & Record<string, unknown>>;
|
|
225
|
+
deprecateOntologyVersion(input: FunctionSurfaceInput): Promise<import("./coreClient").PlatformGatewaySuccess<Record<string, unknown>> & Record<string, unknown>>;
|
|
226
|
+
resolveEffective(input: FunctionSurfaceInput): Promise<import("./coreClient").PlatformGatewaySuccess<Record<string, unknown>> & Record<string, unknown>>;
|
|
227
|
+
resolveEffectiveOntology(input: FunctionSurfaceInput): Promise<import("./coreClient").PlatformGatewaySuccess<Record<string, unknown>> & Record<string, unknown>>;
|
|
228
|
+
raw: {
|
|
229
|
+
list(filters?: import("./coreClient").GatewayScope & {
|
|
230
|
+
tenantId?: string;
|
|
231
|
+
tier?: string;
|
|
232
|
+
status?: string;
|
|
233
|
+
}): Promise<import("./coreClient").PlatformGatewaySuccess<{
|
|
234
|
+
ontologies: unknown[];
|
|
235
|
+
total: number;
|
|
236
|
+
items: unknown[];
|
|
237
|
+
definitions: unknown[];
|
|
238
|
+
}>>;
|
|
239
|
+
get(id: string): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
240
|
+
bind(input: import("./ontologyClient").OntologyBindingInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
241
|
+
createDefinition(input: import("./ontologyClient").OntologyDefinitionInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
242
|
+
updateDefinition(id: string, input: import("./ontologyClient").OntologyDefinitionUpdateInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
243
|
+
archiveDefinition(id: string, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
244
|
+
listVersions(ontologyId: string, filters?: import("./coreClient").GatewayScope & {
|
|
245
|
+
status?: string;
|
|
246
|
+
}): Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").ListResult<unknown, "versions">>>;
|
|
247
|
+
createVersion(ontologyId: string, input: import("./ontologyClient").OntologyVersionInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
248
|
+
publishVersion(ontologyId: string, versionId: string, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
249
|
+
deprecateVersion(ontologyId: string, versionId: string, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
250
|
+
listTopics(ontologyId: string): Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").ListResult<any, "topics">>>;
|
|
251
|
+
} & {
|
|
252
|
+
listDefinitions: (filters?: import("./coreClient").GatewayScope & {
|
|
253
|
+
tenantId?: string;
|
|
254
|
+
tier?: string;
|
|
255
|
+
status?: string;
|
|
256
|
+
}) => Promise<import("./coreClient").PlatformGatewaySuccess<{
|
|
257
|
+
ontologies: unknown[];
|
|
258
|
+
total: number;
|
|
259
|
+
items: unknown[];
|
|
260
|
+
definitions: unknown[];
|
|
261
|
+
}>>;
|
|
262
|
+
getDefinition: (id: string) => Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
263
|
+
listTopicsByOntology: (ontologyId: string) => Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").ListResult<any, "topics">>>;
|
|
264
|
+
};
|
|
151
265
|
};
|
|
152
266
|
};
|
|
153
267
|
//# sourceMappingURL=clientWorkflowNamespaces.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export function createClientWorkflowNamespaces(ctx) {
|
|
2
|
-
const {
|
|
2
|
+
const { answersClient, archiveOntologyCompat, contextClient, contradictionsFacade, createOntologyCompat, createOntologyVersionCompat, decisionsClient, deprecateOntologyVersionCompat, discoverEntityConnections, discoverTopics, exposeGatewayData, findContradictions, functionSurfaceClient, gateway, ontologiesFacade, ontologyClient, publishOntologyVersionCompat, questionsFacade, randomIdempotencyKey, requireTopicId, resolveEffectiveOntologyCompat, resolveTopicId, sdkQueryString, tasksFacade, topicsClient, topicsFacade, triggerBeliefReview, updateOntologyCompat, workflowClient, worktreesFacade, } = ctx;
|
|
3
3
|
return {
|
|
4
4
|
judgments: {
|
|
5
5
|
create: decisionsClient.createJudgment,
|
|
@@ -181,9 +181,7 @@ export function createClientWorkflowNamespaces(ctx) {
|
|
|
181
181
|
: undefined;
|
|
182
182
|
return worktreesFacade.update({
|
|
183
183
|
id: typeof input.worktreeId === "string" ? input.worktreeId : "",
|
|
184
|
-
hypothesis: typeof input.hypothesis === "string"
|
|
185
|
-
? input.hypothesis
|
|
186
|
-
: undefined,
|
|
184
|
+
hypothesis: typeof input.hypothesis === "string" ? input.hypothesis : undefined,
|
|
187
185
|
campaign: typeof input.campaign === "number" ? input.campaign : undefined,
|
|
188
186
|
lane: typeof input.lane === "string" ? input.lane : undefined,
|
|
189
187
|
laneOrderInCampaign: typeof input.laneOrderInCampaign === "number"
|
|
@@ -206,9 +204,7 @@ export function createClientWorkflowNamespaces(ctx) {
|
|
|
206
204
|
: undefined;
|
|
207
205
|
return worktreesFacade.update({
|
|
208
206
|
id: typeof input.worktreeId === "string" ? input.worktreeId : "",
|
|
209
|
-
hypothesis: typeof input.hypothesis === "string"
|
|
210
|
-
? input.hypothesis
|
|
211
|
-
: undefined,
|
|
207
|
+
hypothesis: typeof input.hypothesis === "string" ? input.hypothesis : undefined,
|
|
212
208
|
campaign: typeof input.campaign === "number" ? input.campaign : undefined,
|
|
213
209
|
lane: typeof input.lane === "string" ? input.lane : undefined,
|
|
214
210
|
laneOrderInCampaign: typeof input.laneOrderInCampaign === "number"
|
|
@@ -232,6 +228,7 @@ export function createClientWorkflowNamespaces(ctx) {
|
|
|
232
228
|
});
|
|
233
229
|
},
|
|
234
230
|
listAll: workflowClient.listAllWorktrees,
|
|
231
|
+
listCampaigns: workflowClient.listCampaigns,
|
|
235
232
|
merge(worktreeId, input) {
|
|
236
233
|
return worktreesFacade.merge({
|
|
237
234
|
id: worktreeId,
|
|
@@ -316,13 +313,16 @@ export function createClientWorkflowNamespaces(ctx) {
|
|
|
316
313
|
});
|
|
317
314
|
},
|
|
318
315
|
list(input) {
|
|
316
|
+
let worktreeId;
|
|
317
|
+
if (typeof input.worktreeId === "string") {
|
|
318
|
+
worktreeId = input.worktreeId;
|
|
319
|
+
}
|
|
320
|
+
else if (typeof input.linkedWorktreeId === "string") {
|
|
321
|
+
worktreeId = input.linkedWorktreeId;
|
|
322
|
+
}
|
|
319
323
|
return tasksFacade.list({
|
|
320
324
|
topicId: resolveTopicId(input),
|
|
321
|
-
worktreeId
|
|
322
|
-
? input.worktreeId
|
|
323
|
-
: typeof input.linkedWorktreeId === "string"
|
|
324
|
-
? input.linkedWorktreeId
|
|
325
|
-
: undefined,
|
|
325
|
+
worktreeId,
|
|
326
326
|
status: typeof input.status === "string" ? input.status : undefined,
|
|
327
327
|
limit: typeof input.limit === "number" ? input.limit : undefined,
|
|
328
328
|
});
|
|
@@ -364,8 +364,9 @@ export function createClientWorkflowNamespaces(ctx) {
|
|
|
364
364
|
},
|
|
365
365
|
get: topicsFacade.get,
|
|
366
366
|
create(input) {
|
|
367
|
+
const topicInput = { ...input };
|
|
367
368
|
return functionSurfaceClient
|
|
368
|
-
.createTopic(
|
|
369
|
+
.createTopic(topicInput)
|
|
369
370
|
.then(exposeGatewayData);
|
|
370
371
|
},
|
|
371
372
|
update(topicId, input) {
|
|
@@ -473,7 +474,9 @@ export function createClientWorkflowNamespaces(ctx) {
|
|
|
473
474
|
.then(exposeGatewayData);
|
|
474
475
|
},
|
|
475
476
|
get(contradictionId) {
|
|
476
|
-
return contradictionsFacade
|
|
477
|
+
return contradictionsFacade
|
|
478
|
+
.get(contradictionId)
|
|
479
|
+
.then(exposeGatewayData);
|
|
477
480
|
},
|
|
478
481
|
find: findContradictions,
|
|
479
482
|
},
|
|
@@ -482,17 +485,17 @@ export function createClientWorkflowNamespaces(ctx) {
|
|
|
482
485
|
return ontologiesFacade.list(input).then(exposeGatewayData);
|
|
483
486
|
},
|
|
484
487
|
get(ontologyId) {
|
|
485
|
-
return ontologiesFacade
|
|
486
|
-
.get(ontologyId)
|
|
487
|
-
.then((response) => exposeGatewayData(response));
|
|
488
|
+
return ontologiesFacade.get(ontologyId).then(exposeGatewayData);
|
|
488
489
|
},
|
|
489
490
|
bind(input, idempotencyKey) {
|
|
490
491
|
return ontologiesFacade
|
|
491
492
|
.bind(input, idempotencyKey)
|
|
492
|
-
.then(
|
|
493
|
+
.then(exposeGatewayData);
|
|
493
494
|
},
|
|
494
495
|
match(input, idempotencyKey) {
|
|
495
|
-
return ontologiesFacade
|
|
496
|
+
return ontologiesFacade
|
|
497
|
+
.match(input, idempotencyKey)
|
|
498
|
+
.then(exposeGatewayData);
|
|
496
499
|
},
|
|
497
500
|
create(input) {
|
|
498
501
|
return createOntologyCompat(input);
|
package/dist/contextClient.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type GatewayClientConfig } from "./coreClient";
|
|
2
1
|
import type { CompileContextInput, GetCampaignContextInput, PublicCampaignContext, PublicCompiledContext } from "./contextTypes";
|
|
2
|
+
import { type GatewayClientConfig } from "./coreClient";
|
|
3
3
|
/** Configuration for the context client. */
|
|
4
4
|
export type ContextClientConfig = GatewayClientConfig;
|
|
5
5
|
/** Alias for the compiled context payload returned by the gateway. */
|
|
@@ -21,5 +21,5 @@ export declare function createContextClient(config?: ContextClientConfig): {
|
|
|
21
21
|
compileByQuery(input?: CompileContextInput): Promise<import("./coreClient").PlatformGatewaySuccess<PublicCompiledContext>>;
|
|
22
22
|
getCampaignContext(input: GetCampaignContextInput): Promise<import("./coreClient").PlatformGatewaySuccess<PublicCampaignContext>>;
|
|
23
23
|
};
|
|
24
|
-
export type { CampaignContextPurpose, CompileContextInput, ContextHeartbeatIntent, GetCampaignContextInput,
|
|
24
|
+
export type { CampaignContextPurpose, CompileContextInput, ContextHeartbeatIntent, GetCampaignContextInput, PublicCampaignContext, PublicCompiledContext, PublicContextHeartbeatReceipt, } from "./contextTypes";
|
|
25
25
|
//# sourceMappingURL=contextClient.d.ts.map
|