@lucern/sdk 1.0.29 → 1.0.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -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,47 +1,133 @@
|
|
|
1
1
|
import { type LucernClientConfig } from "../client";
|
|
2
|
-
export * as worktreeContracts from "@lucern/contracts/worktrees/v1";
|
|
3
2
|
export * as methodSchemas from "@lucern/contracts/sdk-methods.contract";
|
|
4
3
|
export * as toolSchemas from "@lucern/contracts/tool-contracts";
|
|
4
|
+
export * as worktreeContracts from "@lucern/contracts/worktrees/v1";
|
|
5
5
|
export type WorktreesClientConfig = LucernClientConfig;
|
|
6
6
|
export type WorktreesClient = ReturnType<typeof createWorktreesClient>;
|
|
7
7
|
export declare function createWorktreesClient(config?: WorktreesClientConfig): {
|
|
8
|
-
createWorktree: (input: import("..").AddWorktreeInput) =>
|
|
9
|
-
listWorktrees: (query: Parameters<(
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
8
|
+
createWorktree: (input: import("..").AddWorktreeInput) => Promise<import("..").PlatformGatewaySuccess<import("../gatewayFacades").GatewayRecord>>;
|
|
9
|
+
listWorktrees: (query: Parameters<(query: {
|
|
10
|
+
topicId?: string;
|
|
11
|
+
branchId?: string;
|
|
12
|
+
status?: import("..").WorkflowWorktreeStatus;
|
|
13
|
+
groupBy?: "campaign" | "lane" | "flat";
|
|
14
|
+
lane?: string;
|
|
15
|
+
campaign?: number;
|
|
16
|
+
limit?: number;
|
|
17
|
+
} & import("..").TopicIdentifierInput) => Promise<import("..").PlatformGatewaySuccess<import("..").ListResult<import("..").WorkflowWorktreeRecord, "worktrees">>>>[0]) => Promise<import("..").PlatformGatewaySuccess<import("../gatewayFacades").WorktreesListResult>>;
|
|
18
|
+
activateWorktree: (worktreeId: string) => Promise<import("..").PlatformGatewaySuccess<import("../gatewayFacades").GatewayRecord>>;
|
|
19
|
+
updateWorktreeMetadata: (input: import("..").FunctionSurfaceInput) => Promise<import("..").PlatformGatewaySuccess<import("../gatewayFacades").GatewayRecord>>;
|
|
20
|
+
updateWorktreeTargets: (input: Parameters<(input: import("..").UpdateWorktreeTargetsInput, idempotencyKey?: string) => Promise<import("..").PlatformGatewaySuccess<import("..").WorkflowWorktreeRecord>>>[0]) => Promise<import("..").PlatformGatewaySuccess<import("../gatewayFacades").GatewayRecord>>;
|
|
21
|
+
mergeWorktree: (worktreeId: string, input: import("..").MergeInput) => Promise<import("..").PlatformGatewaySuccess<import("../gatewayFacades").GatewayRecord>>;
|
|
22
|
+
completeWorktree: (input: {
|
|
23
|
+
worktreeId: string;
|
|
24
|
+
keyFindings?: string[];
|
|
25
|
+
decisionsReached?: string[];
|
|
26
|
+
nextSteps?: string[];
|
|
27
|
+
}, idempotencyKey?: string) => Promise<import("..").PlatformGatewaySuccess<import("../gatewayFacades").GatewayRecord>>;
|
|
15
28
|
raw: {
|
|
16
|
-
createBranch: (
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
29
|
+
createBranch: (input: {
|
|
30
|
+
name: string;
|
|
31
|
+
topicId?: string;
|
|
32
|
+
description?: string;
|
|
33
|
+
metadata?: import("..").JsonObject;
|
|
34
|
+
} & import("..").TopicIdentifierInput, idempotencyKey?: string) => Promise<import("..").PlatformGatewaySuccess<import("..").WorkflowBranchRecord>>;
|
|
35
|
+
createLens: (input: {
|
|
36
|
+
name: string;
|
|
37
|
+
workspaceId?: string;
|
|
38
|
+
topicId?: string;
|
|
39
|
+
description?: string;
|
|
40
|
+
perspectiveType: import("..").WorkflowLensPerspectiveType;
|
|
41
|
+
promptTemplates?: import("..").LensPromptTemplateReference[];
|
|
42
|
+
workflowTemplates?: import("..").LensWorkflowTemplate[];
|
|
43
|
+
taskTemplates?: import("..").LensTaskTemplate[];
|
|
44
|
+
questionTemplates?: import("..").LensQuestionTemplate[];
|
|
45
|
+
filterCriteria?: import("..").JsonObject;
|
|
46
|
+
} & import("..").TopicIdentifierInput, idempotencyKey?: string) => Promise<import("..").PlatformGatewaySuccess<import("..").WorkflowLensRecord>>;
|
|
47
|
+
listLenses: (query: {
|
|
48
|
+
workspaceId?: string;
|
|
49
|
+
topicId?: string;
|
|
50
|
+
status?: import("..").WorkflowLensStatus;
|
|
51
|
+
perspectiveType?: import("..").WorkflowLensPerspectiveType;
|
|
52
|
+
} & import("..").TopicIdentifierInput) => Promise<import("..").PlatformGatewaySuccess<import("..").ListResult<import("..").WorkflowLensRecord, "lenses">>>;
|
|
53
|
+
applyLensToTopic: (input: {
|
|
54
|
+
lensId: string;
|
|
55
|
+
topicId?: string;
|
|
56
|
+
metadata?: import("..").JsonObject;
|
|
57
|
+
} & import("..").TopicIdentifierInput, idempotencyKey?: string) => Promise<import("..").PlatformGatewaySuccess<import("..").WorkflowLensBindingRecord>>;
|
|
58
|
+
removeLensFromTopic: (input: {
|
|
59
|
+
lensId: string;
|
|
60
|
+
topicId?: string;
|
|
61
|
+
} & import("..").TopicIdentifierInput, idempotencyKey?: string) => Promise<import("..").PlatformGatewaySuccess<import("..").WorkflowLensBindingRecord>>;
|
|
62
|
+
create(input: import("..").AddWorktreeInput): Promise<import("..").PlatformGatewaySuccess<import("../gatewayFacades").GatewayRecord>>;
|
|
63
|
+
add(input: import("..").AddWorktreeInput): Promise<import("..").PlatformGatewaySuccess<import("../gatewayFacades").GatewayRecord>>;
|
|
64
|
+
list(query: Parameters<(query: {
|
|
65
|
+
topicId?: string;
|
|
66
|
+
branchId?: string;
|
|
67
|
+
status?: import("..").WorkflowWorktreeStatus;
|
|
68
|
+
groupBy?: "campaign" | "lane" | "flat";
|
|
69
|
+
lane?: string;
|
|
70
|
+
campaign?: number;
|
|
71
|
+
limit?: number;
|
|
72
|
+
} & import("..").TopicIdentifierInput) => Promise<import("..").PlatformGatewaySuccess<import("..").ListResult<import("..").WorkflowWorktreeRecord, "worktrees">>>>[0]): Promise<import("..").PlatformGatewaySuccess<import("../gatewayFacades").WorktreesListResult>>;
|
|
73
|
+
listByTopic(query: Parameters<(query: {
|
|
74
|
+
topicId?: string;
|
|
75
|
+
branchId?: string;
|
|
76
|
+
status?: import("..").WorkflowWorktreeStatus;
|
|
77
|
+
groupBy?: "campaign" | "lane" | "flat";
|
|
78
|
+
lane?: string;
|
|
79
|
+
campaign?: number;
|
|
80
|
+
limit?: number;
|
|
81
|
+
} & import("..").TopicIdentifierInput) => Promise<import("..").PlatformGatewaySuccess<import("..").ListResult<import("..").WorkflowWorktreeRecord, "worktrees">>>>[0]): Promise<import("..").PlatformGatewaySuccess<import("../gatewayFacades").WorktreesListResult>>;
|
|
25
82
|
findByPairedSprint(input: {
|
|
26
83
|
sprintId: string;
|
|
27
84
|
topicId?: string;
|
|
28
85
|
projectId?: string;
|
|
29
86
|
limit?: number;
|
|
30
|
-
}): Promise<
|
|
31
|
-
activate(worktreeId: string):
|
|
32
|
-
updateMetadata(input: import("..").FunctionSurfaceInput):
|
|
33
|
-
update(input: import("..").FunctionSurfaceInput):
|
|
34
|
-
updateTargets(input: Parameters<(
|
|
35
|
-
listAll: (
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
87
|
+
}): Promise<import("../client-config").GatewayDataEnvelope<Record<string, unknown>>>;
|
|
88
|
+
activate(worktreeId: string): Promise<import("..").PlatformGatewaySuccess<import("../gatewayFacades").GatewayRecord>>;
|
|
89
|
+
updateMetadata(input: import("..").FunctionSurfaceInput): Promise<import("..").PlatformGatewaySuccess<import("../gatewayFacades").GatewayRecord>>;
|
|
90
|
+
update(input: import("..").FunctionSurfaceInput): Promise<import("..").PlatformGatewaySuccess<import("../gatewayFacades").GatewayRecord>>;
|
|
91
|
+
updateTargets(input: Parameters<(input: import("..").UpdateWorktreeTargetsInput, idempotencyKey?: string) => Promise<import("..").PlatformGatewaySuccess<import("..").WorkflowWorktreeRecord>>>[0]): Promise<import("..").PlatformGatewaySuccess<import("../gatewayFacades").GatewayRecord>>;
|
|
92
|
+
listAll: (query?: {
|
|
93
|
+
status?: import("..").WorkflowWorktreeStatus;
|
|
94
|
+
groupBy?: "campaign" | "lane" | "flat";
|
|
95
|
+
lane?: string;
|
|
96
|
+
campaign?: number;
|
|
97
|
+
limit?: number;
|
|
98
|
+
}) => Promise<import("..").PlatformGatewaySuccess<import("..").ListWorktreesResponse>>;
|
|
99
|
+
listCampaigns: (query?: {
|
|
100
|
+
topicId?: string;
|
|
101
|
+
status?: import("..").WorkflowWorktreeStatus;
|
|
102
|
+
limit?: number;
|
|
103
|
+
} & import("..").TopicIdentifierInput) => Promise<import("..").PlatformGatewaySuccess<Record<string, unknown>>>;
|
|
104
|
+
merge(worktreeId: string, input: import("..").MergeInput): Promise<import("..").PlatformGatewaySuccess<import("../gatewayFacades").GatewayRecord>>;
|
|
105
|
+
push: (worktreeId: string, input: {
|
|
106
|
+
targetContext: string;
|
|
107
|
+
beliefIds?: string[];
|
|
108
|
+
metadata?: import("..").JsonObject;
|
|
109
|
+
}, idempotencyKey?: string) => Promise<import("..").PlatformGatewaySuccess<import("..").PushWorktreeResponse>>;
|
|
110
|
+
openPullRequest: (worktreeId: string, input: {
|
|
111
|
+
summary: string;
|
|
112
|
+
reviewers?: string[];
|
|
113
|
+
status?: "pending_review" | "changes_requested" | "approved" | "blocked";
|
|
114
|
+
}, idempotencyKey?: string) => Promise<import("..").PlatformGatewaySuccess<import("..").OpenPullRequestResponse>>;
|
|
115
|
+
pipelineSnapshot(topicId: string): import("..").FunctionSurfaceResult<unknown>;
|
|
116
|
+
complete: (input: {
|
|
117
|
+
worktreeId: string;
|
|
118
|
+
keyFindings?: string[];
|
|
119
|
+
decisionsReached?: string[];
|
|
120
|
+
nextSteps?: string[];
|
|
121
|
+
}, idempotencyKey?: string) => Promise<import("..").PlatformGatewaySuccess<import("../gatewayFacades").GatewayRecord>>;
|
|
122
|
+
advancePhase(worktreeId: string, idempotencyKey?: string): Promise<import("..").PlatformGatewaySuccess<import("../gatewayFacades").GatewayRecord>>;
|
|
123
|
+
setPhase(worktreeId: string, phase: string, idempotencyKey?: string): Promise<import("..").PlatformGatewaySuccess<import("../gatewayFacades").GatewayRecord>>;
|
|
124
|
+
patchState: (input: {
|
|
125
|
+
worktreeId: string;
|
|
126
|
+
patch: import("../gatewayFacades").GatewayRecord;
|
|
127
|
+
}, idempotencyKey?: string) => Promise<import("..").PlatformGatewaySuccess<import("../gatewayFacades").GatewayRecord>>;
|
|
128
|
+
bulkCreate: (input: {
|
|
129
|
+
worktrees: unknown[];
|
|
130
|
+
}, idempotencyKey?: string) => Promise<import("..").PlatformGatewaySuccess<import("../gatewayFacades").GatewayRecord>>;
|
|
45
131
|
};
|
|
46
132
|
};
|
|
47
133
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/worktrees/index.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
// biome-ignore-all lint/performance/noBarrelFile: This file is an @lucern/sdk public import ABI / package subpath compatibility surface; the facade/barrel export is intentional.
|
|
1
2
|
import { createLucernClient } from "../client.js";
|
|
2
|
-
export * as worktreeContracts from "@lucern/contracts/worktrees/v1";
|
|
3
3
|
export * as methodSchemas from "@lucern/contracts/sdk-methods.contract";
|
|
4
4
|
export * as toolSchemas from "@lucern/contracts/tool-contracts";
|
|
5
|
+
export * as worktreeContracts from "@lucern/contracts/worktrees/v1";
|
|
5
6
|
export function createWorktreesClient(config = {}) {
|
|
6
7
|
const worktrees = createLucernClient(config).worktrees;
|
|
7
8
|
return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lucern/sdk",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.31",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -26,6 +26,18 @@
|
|
|
26
26
|
"types": "./dist/beliefs/index.d.ts",
|
|
27
27
|
"import": "./dist/beliefs/index.js"
|
|
28
28
|
},
|
|
29
|
+
"./answersClient": {
|
|
30
|
+
"types": "./dist/answers-client.d.ts",
|
|
31
|
+
"import": "./dist/answers-client.js"
|
|
32
|
+
},
|
|
33
|
+
"./audiencesClient": {
|
|
34
|
+
"types": "./dist/audiences-client.d.ts",
|
|
35
|
+
"import": "./dist/audiences-client.js"
|
|
36
|
+
},
|
|
37
|
+
"./auditClient": {
|
|
38
|
+
"types": "./dist/audit-client.d.ts",
|
|
39
|
+
"import": "./dist/audit-client.js"
|
|
40
|
+
},
|
|
29
41
|
"./beliefs/lifecycle": {
|
|
30
42
|
"types": "./dist/beliefs/lifecycle.d.ts",
|
|
31
43
|
"import": "./dist/beliefs/lifecycle.js"
|
|
@@ -90,6 +102,14 @@
|
|
|
90
102
|
"types": "./dist/realtime/refs.d.ts",
|
|
91
103
|
"import": "./dist/realtime/refs.js"
|
|
92
104
|
},
|
|
105
|
+
"./reportsClient": {
|
|
106
|
+
"types": "./dist/reports-client.d.ts",
|
|
107
|
+
"import": "./dist/reports-client.js"
|
|
108
|
+
},
|
|
109
|
+
"./schemaClient": {
|
|
110
|
+
"types": "./dist/schema-client.d.ts",
|
|
111
|
+
"import": "./dist/schema-client.js"
|
|
112
|
+
},
|
|
93
113
|
"./contracts/*": {
|
|
94
114
|
"types": "./dist/contracts/*.d.ts",
|
|
95
115
|
"import": "./dist/contracts/*.js"
|
|
@@ -105,6 +125,26 @@
|
|
|
105
125
|
"./*": {
|
|
106
126
|
"types": "./dist/*.d.ts",
|
|
107
127
|
"import": "./dist/*.js"
|
|
128
|
+
},
|
|
129
|
+
"./sourcesClient": {
|
|
130
|
+
"types": "./dist/sources-client.d.ts",
|
|
131
|
+
"import": "./dist/sources-client.js"
|
|
132
|
+
},
|
|
133
|
+
"./telemetryClient": {
|
|
134
|
+
"types": "./dist/telemetry-client.d.ts",
|
|
135
|
+
"import": "./dist/telemetry-client.js"
|
|
136
|
+
},
|
|
137
|
+
"./clientAssemblyTypes": {
|
|
138
|
+
"types": "./dist/client-assembly-types.d.ts",
|
|
139
|
+
"import": "./dist/client-assembly-types.js"
|
|
140
|
+
},
|
|
141
|
+
"./clientConfig": {
|
|
142
|
+
"types": "./dist/client-config.d.ts",
|
|
143
|
+
"import": "./dist/client-config.js"
|
|
144
|
+
},
|
|
145
|
+
"./boundaryClientSurface": {
|
|
146
|
+
"types": "./dist/boundary-client-surface.d.ts",
|
|
147
|
+
"import": "./dist/boundary-client-surface.js"
|
|
108
148
|
}
|
|
109
149
|
},
|
|
110
150
|
"scripts": {
|
|
@@ -113,10 +153,10 @@
|
|
|
113
153
|
"typecheck": "tsc --project tsconfig.typecheck.json --noEmit"
|
|
114
154
|
},
|
|
115
155
|
"dependencies": {
|
|
116
|
-
"@lucern/contracts": "1.0.
|
|
117
|
-
"@lucern/reasoning-kernel": "1.0.
|
|
118
|
-
"@lucern/secrets": "1.0.
|
|
119
|
-
"@lucern/transport-core": "1.0.
|
|
156
|
+
"@lucern/contracts": "1.0.31",
|
|
157
|
+
"@lucern/reasoning-kernel": "1.0.31",
|
|
158
|
+
"@lucern/secrets": "1.0.31",
|
|
159
|
+
"@lucern/transport-core": "1.0.31",
|
|
120
160
|
"effect": "^3.21.2",
|
|
121
161
|
"zod": "^3.25.76"
|
|
122
162
|
},
|
package/dist/audiencesClient.js
DELETED
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
import { createGatewayRequestClient, randomIdempotencyKey, toQueryString, } from "./coreClient.js";
|
|
2
|
-
import { createListResult, mapGatewayData } from "./sdkSurface.js";
|
|
3
|
-
/**
|
|
4
|
-
* Create the audiences client for registry entries and grants.
|
|
5
|
-
* @param config - Gateway transport configuration.
|
|
6
|
-
* @returns An object with methods to manage audience registry entries and grants.
|
|
7
|
-
*/
|
|
8
|
-
export function createAudiencesClient(config = {}) {
|
|
9
|
-
const gateway = createGatewayRequestClient(config);
|
|
10
|
-
const listRegistry = async (query = {}) => {
|
|
11
|
-
return gateway
|
|
12
|
-
.request({
|
|
13
|
-
path: `/api/platform/v1/audiences/registry${toQueryString({
|
|
14
|
-
...query,
|
|
15
|
-
effective: typeof query.effective === "boolean"
|
|
16
|
-
? query.effective
|
|
17
|
-
? "true"
|
|
18
|
-
: "false"
|
|
19
|
-
: undefined,
|
|
20
|
-
status: query.status,
|
|
21
|
-
})}`,
|
|
22
|
-
})
|
|
23
|
-
.then((response) => mapGatewayData(response, (data) => createListResult(Array.isArray(data) ? data : [], "registryEntries")));
|
|
24
|
-
};
|
|
25
|
-
const createRegistryEntry = async (input, idempotencyKey) => {
|
|
26
|
-
return gateway.request({
|
|
27
|
-
path: "/api/platform/v1/audiences/registry",
|
|
28
|
-
method: "POST",
|
|
29
|
-
body: input,
|
|
30
|
-
idempotencyKey: idempotencyKey ?? randomIdempotencyKey(),
|
|
31
|
-
});
|
|
32
|
-
};
|
|
33
|
-
const updateRegistryEntry = createRegistryEntry;
|
|
34
|
-
const upsertRegistry = createRegistryEntry;
|
|
35
|
-
const getRegistry = listRegistry;
|
|
36
|
-
const listGrants = async (query = {}) => {
|
|
37
|
-
return gateway
|
|
38
|
-
.request({
|
|
39
|
-
path: `/api/platform/v1/audiences/grants${toQueryString({
|
|
40
|
-
...query,
|
|
41
|
-
audienceKey: query.audienceKey,
|
|
42
|
-
principalId: query.principalId,
|
|
43
|
-
groupId: query.groupId,
|
|
44
|
-
status: query.status,
|
|
45
|
-
})}`,
|
|
46
|
-
})
|
|
47
|
-
.then((response) => mapGatewayData(response, (data) => createListResult(Array.isArray(data) ? data : [], "grants")));
|
|
48
|
-
};
|
|
49
|
-
const createGrant = async (input, idempotencyKey) => {
|
|
50
|
-
return gateway.request({
|
|
51
|
-
path: "/api/platform/v1/audiences/grants",
|
|
52
|
-
method: "POST",
|
|
53
|
-
body: input,
|
|
54
|
-
idempotencyKey: idempotencyKey ?? randomIdempotencyKey(),
|
|
55
|
-
});
|
|
56
|
-
};
|
|
57
|
-
const getGrants = listGrants;
|
|
58
|
-
const grant = createGrant;
|
|
59
|
-
const deleteGrant = async (input, idempotencyKey) => {
|
|
60
|
-
return gateway.request({
|
|
61
|
-
path: "/api/platform/v1/audiences/grants/revoke",
|
|
62
|
-
method: "POST",
|
|
63
|
-
body: input,
|
|
64
|
-
idempotencyKey: idempotencyKey ?? randomIdempotencyKey(),
|
|
65
|
-
});
|
|
66
|
-
};
|
|
67
|
-
const revokeGrant = deleteGrant;
|
|
68
|
-
return {
|
|
69
|
-
/**
|
|
70
|
-
* List audience registry entries.
|
|
71
|
-
*/
|
|
72
|
-
listRegistry,
|
|
73
|
-
/**
|
|
74
|
-
* @deprecated Use listRegistry.
|
|
75
|
-
*/
|
|
76
|
-
getRegistry,
|
|
77
|
-
/**
|
|
78
|
-
* Create an audience registry entry.
|
|
79
|
-
*/
|
|
80
|
-
createRegistryEntry,
|
|
81
|
-
/**
|
|
82
|
-
* Update an audience registry entry.
|
|
83
|
-
*/
|
|
84
|
-
updateRegistryEntry,
|
|
85
|
-
/**
|
|
86
|
-
* @deprecated Use createRegistryEntry or updateRegistryEntry.
|
|
87
|
-
*/
|
|
88
|
-
upsertRegistry,
|
|
89
|
-
/**
|
|
90
|
-
* List audience grants.
|
|
91
|
-
*/
|
|
92
|
-
listGrants,
|
|
93
|
-
/**
|
|
94
|
-
* @deprecated Use listGrants.
|
|
95
|
-
*/
|
|
96
|
-
getGrants,
|
|
97
|
-
/**
|
|
98
|
-
* Create an audience grant.
|
|
99
|
-
*/
|
|
100
|
-
createGrant,
|
|
101
|
-
/**
|
|
102
|
-
* @deprecated Use createGrant.
|
|
103
|
-
*/
|
|
104
|
-
grant,
|
|
105
|
-
/**
|
|
106
|
-
* Delete an audience grant by revoking it.
|
|
107
|
-
*/
|
|
108
|
-
deleteGrant,
|
|
109
|
-
/**
|
|
110
|
-
* @deprecated Use deleteGrant.
|
|
111
|
-
*/
|
|
112
|
-
revokeGrant,
|
|
113
|
-
};
|
|
114
|
-
}
|
|
115
|
-
//# sourceMappingURL=audiencesClient.js.map
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
type AnyFunction = (...args: any[]) => any;
|
|
2
|
-
type AnyClient = Record<string, AnyFunction> & {
|
|
3
|
-
create: AnyFunction;
|
|
4
|
-
link: AnyFunction;
|
|
5
|
-
};
|
|
6
|
-
export type ClientNamespaceContext = Record<string, any> & {
|
|
7
|
-
exposeGatewayData: <T = unknown>(response: any) => any;
|
|
8
|
-
gateway: {
|
|
9
|
-
request: <T = unknown>(input: any) => Promise<any>;
|
|
10
|
-
};
|
|
11
|
-
customNamespaceCache: Map<string, any>;
|
|
12
|
-
graphClient: AnyClient;
|
|
13
|
-
topicsClient: AnyClient;
|
|
14
|
-
workflowClient: AnyClient;
|
|
15
|
-
webhooksFacade: AnyClient;
|
|
16
|
-
beliefsFacade: AnyClient;
|
|
17
|
-
questionsFacade: AnyClient;
|
|
18
|
-
evidenceFacade: AnyClient;
|
|
19
|
-
eventsFacade: AnyClient;
|
|
20
|
-
edgesFacade: AnyClient;
|
|
21
|
-
topicsFacade: AnyClient;
|
|
22
|
-
worktreesFacade: AnyClient;
|
|
23
|
-
ontologiesFacade: AnyClient;
|
|
24
|
-
ontologyLinksClient: AnyClient;
|
|
25
|
-
ontologyLinksNamespace: Record<string, AnyFunction>;
|
|
26
|
-
policyClient: AnyClient;
|
|
27
|
-
packsClient: AnyClient;
|
|
28
|
-
identityFacade: Record<string, any>;
|
|
29
|
-
publicationNamespace: Record<string, AnyFunction>;
|
|
30
|
-
nodesNamespace: Record<string, any>;
|
|
31
|
-
};
|
|
32
|
-
export {};
|
|
33
|
-
//# sourceMappingURL=clientAssemblyTypes.d.ts.map
|
package/dist/clientConfig.js
DELETED