@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
package/dist/policyClient.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
// biome-ignore-all lint/style/useFilenamingConvention: This file is an @lucern/sdk public import ABI / package subpath compatibility surface; the camelCase filename is intentional.
|
|
2
|
+
import { createGatewayRequestClient, randomIdempotencyKey, toQueryString, } from "./coreClient.js";
|
|
2
3
|
import { createListResult, mapGatewayData } from "./sdkSurface.js";
|
|
3
|
-
export { LucernApiError };
|
|
4
4
|
function asTopicArray(data) {
|
|
5
5
|
if (Array.isArray(data)) {
|
|
6
6
|
return data.filter((row) => Boolean(row) && typeof row === "object");
|
|
@@ -54,15 +54,17 @@ export function createPolicyClient(config = {}) {
|
|
|
54
54
|
/**
|
|
55
55
|
* List policy decisions in the current scope.
|
|
56
56
|
*/
|
|
57
|
-
|
|
58
|
-
return gateway
|
|
57
|
+
listDecisions(query = {}) {
|
|
58
|
+
return gateway
|
|
59
|
+
.request({
|
|
59
60
|
path: `/api/platform/v1/policy/decisions${toQueryString(query)}`,
|
|
60
|
-
})
|
|
61
|
+
})
|
|
62
|
+
.then((response) => mapGatewayData(response, (data) => createListResult(Array.isArray(data) ? data : [], "decisions")));
|
|
61
63
|
},
|
|
62
64
|
/**
|
|
63
65
|
* Create a permission grant.
|
|
64
66
|
*/
|
|
65
|
-
|
|
67
|
+
grant(input, idempotencyKey) {
|
|
66
68
|
return gateway.request({
|
|
67
69
|
path: "/api/platform/v1/policy/grant",
|
|
68
70
|
method: "POST",
|
|
@@ -73,7 +75,7 @@ export function createPolicyClient(config = {}) {
|
|
|
73
75
|
/**
|
|
74
76
|
* Delete a permission grant by revoking it.
|
|
75
77
|
*/
|
|
76
|
-
|
|
78
|
+
revoke(input, idempotencyKey) {
|
|
77
79
|
return gateway.request({
|
|
78
80
|
path: "/api/platform/v1/policy/revoke",
|
|
79
81
|
method: "POST",
|
|
@@ -111,7 +113,9 @@ export function createPolicyClient(config = {}) {
|
|
|
111
113
|
return {
|
|
112
114
|
...response,
|
|
113
115
|
data: {
|
|
114
|
-
id: typeof response.data?.id === "string"
|
|
116
|
+
id: typeof response.data?.id === "string"
|
|
117
|
+
? response.data.id
|
|
118
|
+
: undefined,
|
|
115
119
|
created: response.data?.created === true,
|
|
116
120
|
policy: asWritePolicyRecord(response.data?.policy),
|
|
117
121
|
},
|
|
@@ -130,7 +134,9 @@ export function createPolicyClient(config = {}) {
|
|
|
130
134
|
return {
|
|
131
135
|
...response,
|
|
132
136
|
data: {
|
|
133
|
-
id: typeof response.data?.id === "string"
|
|
137
|
+
id: typeof response.data?.id === "string"
|
|
138
|
+
? response.data.id
|
|
139
|
+
: undefined,
|
|
134
140
|
updated: response.data?.updated === true,
|
|
135
141
|
policy: asWritePolicyRecord(response.data?.policy),
|
|
136
142
|
},
|
|
@@ -139,7 +145,7 @@ export function createPolicyClient(config = {}) {
|
|
|
139
145
|
/**
|
|
140
146
|
* Delete a write policy rule by identifier.
|
|
141
147
|
*/
|
|
142
|
-
|
|
148
|
+
deleteWritePolicy(id, scope = {}, idempotencyKey) {
|
|
143
149
|
return gateway.request({
|
|
144
150
|
path: `/api/platform/v1/policy/write-policies/${encodeURIComponent(id)}${toQueryString(scope)}`,
|
|
145
151
|
method: "DELETE",
|
|
@@ -197,7 +203,7 @@ export function createPolicyClient(config = {}) {
|
|
|
197
203
|
/**
|
|
198
204
|
* Delete a tenant role policy by identifier.
|
|
199
205
|
*/
|
|
200
|
-
|
|
206
|
+
deleteRolePolicy(id, scope = {}, idempotencyKey) {
|
|
201
207
|
return gateway.request({
|
|
202
208
|
path: `/api/platform/v1/policy/roles/${encodeURIComponent(id)}${toQueryString(scope)}`,
|
|
203
209
|
method: "DELETE",
|
|
@@ -207,7 +213,7 @@ export function createPolicyClient(config = {}) {
|
|
|
207
213
|
/**
|
|
208
214
|
* Check a permission decision for a topic or project scope.
|
|
209
215
|
*/
|
|
210
|
-
|
|
216
|
+
checkPermission(query) {
|
|
211
217
|
if (!query.topicId) {
|
|
212
218
|
throw new Error("topicId is required");
|
|
213
219
|
}
|
|
@@ -10,8 +10,8 @@ export declare function createQuestionsClient(config?: QuestionsClientConfig): {
|
|
|
10
10
|
priority?: string;
|
|
11
11
|
linkedBeliefId?: string;
|
|
12
12
|
metadata?: import("..").JsonObject;
|
|
13
|
-
}) =>
|
|
14
|
-
getQuestion: (questionId: string) =>
|
|
13
|
+
}) => Promise<import("../client-config").GatewayDataEnvelope<import("../gatewayFacades").GatewayRecord>>;
|
|
14
|
+
getQuestion: (questionId: string) => Promise<import("../client-config").GatewayDataEnvelope<import("../gatewayFacades").GatewayRecord>>;
|
|
15
15
|
listQuestions: (args: {
|
|
16
16
|
topicId?: string;
|
|
17
17
|
status?: string;
|
|
@@ -19,30 +19,34 @@ export declare function createQuestionsClient(config?: QuestionsClientConfig): {
|
|
|
19
19
|
worktreeId?: string;
|
|
20
20
|
limit?: number;
|
|
21
21
|
cursor?: string;
|
|
22
|
-
}) =>
|
|
22
|
+
}) => Promise<import("../client-config").GatewayDataEnvelope<import("../gatewayFacades").QuestionsListResult>>;
|
|
23
23
|
answerQuestion: (questionId: string, input: {
|
|
24
24
|
text: string;
|
|
25
25
|
confidence?: string;
|
|
26
26
|
evidenceIds?: string[];
|
|
27
27
|
rationale?: string;
|
|
28
|
-
}) =>
|
|
28
|
+
}) => Promise<import("../client-config").GatewayDataEnvelope<import("../gatewayFacades").GatewayRecord>>;
|
|
29
29
|
refineQuestion: (questionId: string, input: string | {
|
|
30
30
|
text?: string;
|
|
31
31
|
question?: string;
|
|
32
32
|
rationale?: string;
|
|
33
33
|
linkedWorktreeId?: string;
|
|
34
|
-
}, refinementReason?: string) =>
|
|
35
|
-
updateQuestionStatus: (questionId: string, status: string, rationale?: string) =>
|
|
36
|
-
archiveQuestion: (questionId: string, reason?: string) =>
|
|
34
|
+
}, refinementReason?: string) => Promise<import("../client-config").GatewayDataEnvelope<import("../gatewayFacades").GatewayRecord>>;
|
|
35
|
+
updateQuestionStatus: (questionId: string, status: string, rationale?: string) => Promise<import("../client-config").GatewayDataEnvelope<import("../gatewayFacades").GatewayRecord>>;
|
|
36
|
+
archiveQuestion: (questionId: string, reason?: string) => Promise<import("../client-config").GatewayDataEnvelope<import("../gatewayFacades").GatewayRecord>>;
|
|
37
37
|
getHighPriorityQuestions: (args: {
|
|
38
38
|
topicId?: string;
|
|
39
39
|
limit?: number;
|
|
40
40
|
includeAnswered?: boolean;
|
|
41
|
-
}) =>
|
|
41
|
+
}) => Promise<{
|
|
42
|
+
questions: ({
|
|
43
|
+
priority?: string;
|
|
44
|
+
} & Record<string, unknown>)[];
|
|
45
|
+
}>;
|
|
42
46
|
findMissingQuestions: (args: {
|
|
43
47
|
topicId?: string;
|
|
44
48
|
minConfidence?: number;
|
|
45
|
-
}) => Promise<
|
|
49
|
+
}) => Promise<import("../client-config").GatewayDataEnvelope<Record<string, unknown>>>;
|
|
46
50
|
raw: {
|
|
47
51
|
create(args: {
|
|
48
52
|
text: string;
|
|
@@ -50,14 +54,14 @@ export declare function createQuestionsClient(config?: QuestionsClientConfig): {
|
|
|
50
54
|
priority?: string;
|
|
51
55
|
linkedBeliefId?: string;
|
|
52
56
|
metadata?: import("..").JsonObject;
|
|
53
|
-
}):
|
|
54
|
-
get(questionId: string):
|
|
57
|
+
}): Promise<import("../client-config").GatewayDataEnvelope<import("../gatewayFacades").GatewayRecord>>;
|
|
58
|
+
get(questionId: string): Promise<import("../client-config").GatewayDataEnvelope<import("../gatewayFacades").GatewayRecord>>;
|
|
55
59
|
refine(questionId: string, input: string | {
|
|
56
60
|
text?: string;
|
|
57
61
|
question?: string;
|
|
58
62
|
rationale?: string;
|
|
59
63
|
linkedWorktreeId?: string;
|
|
60
|
-
}, refinementReason?: string):
|
|
64
|
+
}, refinementReason?: string): Promise<import("../client-config").GatewayDataEnvelope<import("../gatewayFacades").GatewayRecord>>;
|
|
61
65
|
list(args: {
|
|
62
66
|
topicId?: string;
|
|
63
67
|
status?: string;
|
|
@@ -65,39 +69,46 @@ export declare function createQuestionsClient(config?: QuestionsClientConfig): {
|
|
|
65
69
|
worktreeId?: string;
|
|
66
70
|
limit?: number;
|
|
67
71
|
cursor?: string;
|
|
68
|
-
}):
|
|
69
|
-
updateStatus(questionId: string, status: string, rationale?: string):
|
|
70
|
-
batchCreate(input: Parameters<(
|
|
71
|
-
add(input: Parameters<(
|
|
72
|
-
updatePriority(input: Parameters<(
|
|
73
|
-
advanceToConviction(input: Parameters<(
|
|
74
|
-
updateConviction(input: Parameters<(
|
|
75
|
-
finalizeConviction(input: Parameters<(
|
|
76
|
-
update(input: Parameters<(
|
|
77
|
-
delete(input: Parameters<(
|
|
72
|
+
}): Promise<import("../client-config").GatewayDataEnvelope<import("../gatewayFacades").QuestionsListResult>>;
|
|
73
|
+
updateStatus(questionId: string, status: string, rationale?: string): Promise<import("../client-config").GatewayDataEnvelope<import("../gatewayFacades").GatewayRecord>>;
|
|
74
|
+
batchCreate(input: Parameters<(input: import("../gatewayFacades").GatewayRecord, idempotencyKey?: string) => Promise<import("..").PlatformGatewaySuccess<import("../gatewayFacades").GatewayRecord>>>[0], idempotencyKey?: string): Promise<import("../client-config").GatewayDataEnvelope<import("../gatewayFacades").GatewayRecord>>;
|
|
75
|
+
add(input: Parameters<(input: import("../gatewayFacades").GatewayRecord, idempotencyKey?: string) => Promise<import("..").PlatformGatewaySuccess<import("../gatewayFacades").GatewayRecord>>>[0], idempotencyKey?: string): Promise<import("../client-config").GatewayDataEnvelope<import("../gatewayFacades").GatewayRecord>>;
|
|
76
|
+
updatePriority(input: Parameters<(input: import("../gatewayFacades").GatewayRecord, idempotencyKey?: string) => Promise<import("..").PlatformGatewaySuccess<import("../gatewayFacades").GatewayRecord>>>[0], idempotencyKey?: string): Promise<import("../client-config").GatewayDataEnvelope<import("../gatewayFacades").GatewayRecord>>;
|
|
77
|
+
advanceToConviction(input: Parameters<(input: import("../gatewayFacades").GatewayRecord, idempotencyKey?: string) => Promise<import("..").PlatformGatewaySuccess<import("../gatewayFacades").GatewayRecord>>>[0], idempotencyKey?: string): Promise<import("../client-config").GatewayDataEnvelope<import("../gatewayFacades").GatewayRecord>>;
|
|
78
|
+
updateConviction(input: Parameters<(input: import("../gatewayFacades").GatewayRecord, idempotencyKey?: string) => Promise<import("..").PlatformGatewaySuccess<import("../gatewayFacades").GatewayRecord>>>[0], idempotencyKey?: string): Promise<import("../client-config").GatewayDataEnvelope<import("../gatewayFacades").GatewayRecord>>;
|
|
79
|
+
finalizeConviction(input: Parameters<(input: import("../gatewayFacades").GatewayRecord, idempotencyKey?: string) => Promise<import("..").PlatformGatewaySuccess<import("../gatewayFacades").GatewayRecord>>>[0], idempotencyKey?: string): Promise<import("../client-config").GatewayDataEnvelope<import("../gatewayFacades").GatewayRecord>>;
|
|
80
|
+
update(input: Parameters<(input: import("../gatewayFacades").GatewayRecord, idempotencyKey?: string) => Promise<import("..").PlatformGatewaySuccess<import("../gatewayFacades").GatewayRecord>>>[0], idempotencyKey?: string): Promise<import("../client-config").GatewayDataEnvelope<import("../gatewayFacades").GatewayRecord>>;
|
|
81
|
+
delete(input: Parameters<(input: import("../gatewayFacades").GatewayRecord, idempotencyKey?: string) => Promise<import("..").PlatformGatewaySuccess<import("../gatewayFacades").GatewayRecord>>>[0], idempotencyKey?: string): Promise<import("../client-config").GatewayDataEnvelope<import("../gatewayFacades").GatewayRecord>>;
|
|
78
82
|
answer(questionId: string, input: {
|
|
79
83
|
text: string;
|
|
80
84
|
confidence?: string;
|
|
81
85
|
evidenceIds?: string[];
|
|
82
86
|
rationale?: string;
|
|
83
|
-
}):
|
|
84
|
-
archive(questionId: string, reason?: string):
|
|
87
|
+
}): Promise<import("../client-config").GatewayDataEnvelope<import("../gatewayFacades").GatewayRecord>>;
|
|
88
|
+
archive(questionId: string, reason?: string): Promise<import("../client-config").GatewayDataEnvelope<import("../gatewayFacades").GatewayRecord>>;
|
|
85
89
|
linkEvidence(args: {
|
|
86
90
|
evidenceId: string;
|
|
87
91
|
questionId: string;
|
|
88
92
|
relevance?: number;
|
|
89
93
|
weight?: number;
|
|
90
94
|
rationale?: string;
|
|
91
|
-
}):
|
|
95
|
+
}): Promise<{
|
|
96
|
+
questionId: string;
|
|
97
|
+
relevance: number | undefined;
|
|
98
|
+
}>;
|
|
92
99
|
getHighPriority(args: {
|
|
93
100
|
topicId?: string;
|
|
94
101
|
limit?: number;
|
|
95
102
|
includeAnswered?: boolean;
|
|
96
|
-
}):
|
|
103
|
+
}): Promise<{
|
|
104
|
+
questions: ({
|
|
105
|
+
priority?: string;
|
|
106
|
+
} & Record<string, unknown>)[];
|
|
107
|
+
}>;
|
|
97
108
|
findMissing(args: {
|
|
98
109
|
topicId?: string;
|
|
99
110
|
minConfidence?: number;
|
|
100
|
-
}): Promise<
|
|
111
|
+
}): Promise<import("../client-config").GatewayDataEnvelope<Record<string, unknown>>>;
|
|
101
112
|
};
|
|
102
113
|
};
|
|
103
114
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/questions/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
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
3
|
export * as questionsContracts from "@lucern/contracts/questions/v1";
|
|
3
4
|
export * as toolSchemas from "@lucern/contracts/tool-contracts";
|
package/dist/realtime/index.d.ts
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { ConvexHttpClient } from "convex/browser";
|
|
2
|
-
import type { ConvexReactClientOptions
|
|
2
|
+
import type { ConvexReactClientOptions } from "convex/react";
|
|
3
3
|
import { ConvexReactClient, useAction, useConvex, useMutation, useQuery } from "convex/react";
|
|
4
|
+
export type LucernConvexReactClientOptions = ConvexReactClientOptions;
|
|
4
5
|
/**
|
|
5
6
|
* Re-export the server-safe ref surface so existing client consumers keep a
|
|
6
7
|
* single import site. Server code must import from `@lucern/sdk/realtime/refs`
|
|
7
8
|
* instead, because this module statically pulls in `convex/react` which is
|
|
8
9
|
* incompatible with the Next.js Edge runtime React shim.
|
|
9
10
|
*/
|
|
10
|
-
export {
|
|
11
|
+
export { type AnyApi, platformApi } from "./refs";
|
|
11
12
|
/**
|
|
12
13
|
* Opt-in realtime hook surface. These preserve native Convex semantics while
|
|
13
14
|
* moving the transport boundary behind an SDK subpath export.
|
|
@@ -29,5 +30,4 @@ export declare function createLucernRealtimeClient(address: string, options?: Lu
|
|
|
29
30
|
* does not import `convex/browser` directly.
|
|
30
31
|
*/
|
|
31
32
|
export declare function createLucernHttpClient(address: string): LucernHttpClient;
|
|
32
|
-
export type { LucernConvexReactClientOptions };
|
|
33
33
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/realtime/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
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 { ConvexHttpClient } from "convex/browser";
|
|
2
3
|
import { ConvexReactClient, useAction, useConvex, useMutation, useQuery, } from "convex/react";
|
|
3
4
|
/**
|
package/dist/realtime/refs.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { AnyApi } from "convex/server";
|
|
2
2
|
/**
|
|
3
3
|
* Server-safe realtime ref surface.
|
|
4
4
|
*
|
|
@@ -10,5 +10,5 @@ import { type AnyApi } from "convex/server";
|
|
|
10
10
|
* Client consumers should continue importing from `@lucern/sdk/realtime`.
|
|
11
11
|
*/
|
|
12
12
|
export declare const platformApi: AnyApi;
|
|
13
|
-
export type { AnyApi };
|
|
13
|
+
export type { AnyApi } from "convex/server";
|
|
14
14
|
//# sourceMappingURL=refs.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type GatewayClientConfig } from "./coreClient";
|
|
2
|
-
import type {
|
|
2
|
+
import type { ReportTemplatesResponse, ReportWithSectionsResponse, TopicIdentifierInput } from "./types";
|
|
3
3
|
/** Configuration for the reports client. */
|
|
4
4
|
export type ReportsClientConfig = GatewayClientConfig;
|
|
5
5
|
export type { ProjectReportsResponse, ReportTemplatesResponse, ReportWithSectionsResponse, } from "./types";
|
|
@@ -32,4 +32,4 @@ export declare function createReportsClient(config?: ReportsClientConfig): {
|
|
|
32
32
|
*/
|
|
33
33
|
getReport: (reportId: string) => Promise<import("./coreClient").PlatformGatewaySuccess<ReportWithSectionsResponse>>;
|
|
34
34
|
};
|
|
35
|
-
//# sourceMappingURL=
|
|
35
|
+
//# sourceMappingURL=reports-client.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createGatewayRequestClient, toQueryString, } from "./coreClient.js";
|
|
2
|
-
import { asListItems, createListResult, mapGatewayData, resolveTopicId } from "./sdkSurface.js";
|
|
2
|
+
import { asListItems, createListResult, mapGatewayData, resolveTopicId, } from "./sdkSurface.js";
|
|
3
3
|
/**
|
|
4
4
|
* Create the reports client for report templates and generated reports.
|
|
5
5
|
* @param config - Gateway transport configuration.
|
|
@@ -7,30 +7,36 @@ import { asListItems, createListResult, mapGatewayData, resolveTopicId } from ".
|
|
|
7
7
|
*/
|
|
8
8
|
export function createReportsClient(config = {}) {
|
|
9
9
|
const gateway = createGatewayRequestClient(config);
|
|
10
|
-
const listTemplates =
|
|
10
|
+
const listTemplates = (args = {}) => gateway
|
|
11
|
+
.request({
|
|
11
12
|
path: `/api/platform/v1/reports/templates${toQueryString({
|
|
12
13
|
slug: args.slug,
|
|
13
14
|
})}`,
|
|
14
|
-
})
|
|
15
|
+
})
|
|
16
|
+
.then((response) => mapGatewayData(response, (data) => {
|
|
15
17
|
const rows = asListItems(data, "templates");
|
|
16
18
|
return createListResult(rows, "templates");
|
|
17
19
|
}));
|
|
18
|
-
const
|
|
20
|
+
const serializeSummary = (value) => {
|
|
21
|
+
if (typeof value !== "boolean") {
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
return value ? "true" : "false";
|
|
25
|
+
};
|
|
26
|
+
const listReports = (input, args = {}) => {
|
|
19
27
|
const topicId = resolveTopicId(input);
|
|
20
28
|
if (!topicId) {
|
|
21
29
|
throw new Error("topicId is required");
|
|
22
30
|
}
|
|
23
|
-
return gateway
|
|
31
|
+
return gateway
|
|
32
|
+
.request({
|
|
24
33
|
path: `/api/platform/v1/reports/topics/${encodeURIComponent(topicId)}${toQueryString({
|
|
25
|
-
summary:
|
|
26
|
-
? args.summary
|
|
27
|
-
? "true"
|
|
28
|
-
: "false"
|
|
29
|
-
: undefined,
|
|
34
|
+
summary: serializeSummary(args.summary),
|
|
30
35
|
})}`,
|
|
31
|
-
})
|
|
36
|
+
})
|
|
37
|
+
.then((response) => mapGatewayData(response, (data) => createListResult(Array.isArray(data) ? data : [], "reports")));
|
|
32
38
|
};
|
|
33
|
-
const getReport =
|
|
39
|
+
const getReport = (reportId) => gateway.request({
|
|
34
40
|
path: `/api/platform/v1/reports/${encodeURIComponent(reportId)}`,
|
|
35
41
|
});
|
|
36
42
|
return {
|
|
@@ -52,4 +58,4 @@ export function createReportsClient(config = {}) {
|
|
|
52
58
|
getReport,
|
|
53
59
|
};
|
|
54
60
|
}
|
|
55
|
-
//# sourceMappingURL=
|
|
61
|
+
//# sourceMappingURL=reports-client.js.map
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { type GatewayClientConfig, type GatewayScope
|
|
1
|
+
import { type GatewayClientConfig, type GatewayScope } from "./coreClient";
|
|
2
2
|
import type { JsonObject } from "./types";
|
|
3
|
-
export { LucernApiError };
|
|
4
3
|
export type { GatewayScope, PlatformGatewaySuccess } from "./coreClient";
|
|
5
4
|
/** Configuration for the schema client. */
|
|
6
5
|
export type SchemaClientConfig = GatewayClientConfig;
|
|
@@ -57,4 +56,4 @@ export declare function createSchemaClient(config?: SchemaClientConfig): {
|
|
|
57
56
|
*/
|
|
58
57
|
upsertEntitlement: (input: SchemaEntitlementInput, idempotencyKey?: string) => Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
59
58
|
};
|
|
60
|
-
//# sourceMappingURL=
|
|
59
|
+
//# sourceMappingURL=schema-client.d.ts.map
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { createGatewayRequestClient,
|
|
1
|
+
import { createGatewayRequestClient, randomIdempotencyKey, toQueryString, } from "./coreClient.js";
|
|
2
2
|
import { createListResult, mapGatewayData } from "./sdkSurface.js";
|
|
3
|
-
export { LucernApiError };
|
|
4
3
|
/**
|
|
5
4
|
* Create the schema client for pack catalog and entitlement operations.
|
|
6
5
|
* @param config - Gateway transport configuration.
|
|
@@ -18,15 +17,17 @@ export function createSchemaClient(config = {}) {
|
|
|
18
17
|
/**
|
|
19
18
|
* List schema packs.
|
|
20
19
|
*/
|
|
21
|
-
|
|
22
|
-
return gateway
|
|
20
|
+
listPacks(scope = {}) {
|
|
21
|
+
return gateway
|
|
22
|
+
.request({
|
|
23
23
|
path: `/api/platform/v1/schema/packs${toQueryString(scope)}`,
|
|
24
|
-
})
|
|
24
|
+
})
|
|
25
|
+
.then((response) => mapGatewayData(response, (data) => createListResult(Array.isArray(data) ? data : [], "packs")));
|
|
25
26
|
},
|
|
26
27
|
/**
|
|
27
28
|
* Install a schema pack.
|
|
28
29
|
*/
|
|
29
|
-
|
|
30
|
+
installPack(input, idempotencyKey) {
|
|
30
31
|
return gateway.request({
|
|
31
32
|
path: "/api/platform/v1/schema/packs",
|
|
32
33
|
method: "POST",
|
|
@@ -37,7 +38,7 @@ export function createSchemaClient(config = {}) {
|
|
|
37
38
|
/**
|
|
38
39
|
* Get a schema pack by identifier.
|
|
39
40
|
*/
|
|
40
|
-
|
|
41
|
+
getPack(packId, scope = {}) {
|
|
41
42
|
return gateway.request({
|
|
42
43
|
path: `/api/platform/v1/schema/packs/${encodeURIComponent(packId)}${toQueryString(scope)}`,
|
|
43
44
|
});
|
|
@@ -45,10 +46,12 @@ export function createSchemaClient(config = {}) {
|
|
|
45
46
|
/**
|
|
46
47
|
* List schema entitlements.
|
|
47
48
|
*/
|
|
48
|
-
|
|
49
|
-
return gateway
|
|
49
|
+
listEntitlements(scope = {}) {
|
|
50
|
+
return gateway
|
|
51
|
+
.request({
|
|
50
52
|
path: `/api/platform/v1/schema/entitlements${toQueryString(scope)}`,
|
|
51
|
-
})
|
|
53
|
+
})
|
|
54
|
+
.then((response) => mapGatewayData(response, (data) => createListResult(Array.isArray(data) ? data : [], "entitlements")));
|
|
52
55
|
},
|
|
53
56
|
/**
|
|
54
57
|
* Create a schema entitlement.
|
|
@@ -64,4 +67,4 @@ export function createSchemaClient(config = {}) {
|
|
|
64
67
|
upsertEntitlement: createEntitlement,
|
|
65
68
|
};
|
|
66
69
|
}
|
|
67
|
-
//# sourceMappingURL=
|
|
70
|
+
//# sourceMappingURL=schema-client.js.map
|
package/dist/sdkSurface.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import type { PlatformGatewaySuccess } from "./coreClient";
|
|
2
2
|
import type { JsonObject, ListResult } from "./types";
|
|
3
|
-
|
|
4
|
-
topicId?: string;
|
|
3
|
+
interface TopicScopedValue {
|
|
5
4
|
topicGlobalId?: string;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
topicId?: string;
|
|
6
|
+
}
|
|
7
|
+
interface TextScopedValue {
|
|
9
8
|
canonicalText?: string;
|
|
10
|
-
|
|
9
|
+
text?: string;
|
|
10
|
+
}
|
|
11
11
|
type AnyRecord = Record<string, unknown>;
|
|
12
12
|
export declare function isRecord(value: unknown): value is AnyRecord;
|
|
13
13
|
export declare function asRecord(value: unknown): AnyRecord;
|
|
@@ -23,24 +23,24 @@ export declare function resolveText(value: TextScopedValue): string | undefined;
|
|
|
23
23
|
/**
|
|
24
24
|
* Attach the topicId to a record.
|
|
25
25
|
*/
|
|
26
|
-
export declare function withTopicAlias<T extends
|
|
26
|
+
export declare function withTopicAlias<T extends object>(value: T): T;
|
|
27
27
|
/**
|
|
28
28
|
* Attach the text/canonicalText alias pair to a record.
|
|
29
29
|
*/
|
|
30
|
-
export declare function withTextAlias<T extends
|
|
30
|
+
export declare function withTextAlias<T extends object>(value: T): T;
|
|
31
31
|
/**
|
|
32
32
|
* Attach topic and text aliases to SDK node-like records.
|
|
33
33
|
*/
|
|
34
|
-
export declare function withSdkAliases<T extends
|
|
34
|
+
export declare function withSdkAliases<T extends object>(value: T): T;
|
|
35
35
|
/**
|
|
36
36
|
* Normalize a belief/question/evidence write payload to the canonical gateway shape.
|
|
37
37
|
*/
|
|
38
|
-
export declare function normalizeNodeWriteInput<T extends
|
|
38
|
+
export declare function normalizeNodeWriteInput<T extends object>(value: T): JsonObject;
|
|
39
39
|
export declare const normalizeNodeVerificationStatus: typeof normalizeVerificationStatus;
|
|
40
40
|
/**
|
|
41
41
|
* Build a topic-aware query object.
|
|
42
42
|
*/
|
|
43
|
-
export declare function normalizeTopicQuery<T extends
|
|
43
|
+
export declare function normalizeTopicQuery<T extends object>(value: T): JsonObject;
|
|
44
44
|
/**
|
|
45
45
|
* Extract list items from array or list-envelope payloads.
|
|
46
46
|
*/
|
|
@@ -56,6 +56,6 @@ export declare function mapGatewayData<T, U>(response: PlatformGatewaySuccess<T>
|
|
|
56
56
|
/**
|
|
57
57
|
* Apply SDK aliases across all items in a list-like payload.
|
|
58
58
|
*/
|
|
59
|
-
export declare function mapAliasedList<TItem extends
|
|
59
|
+
export declare function mapAliasedList<TItem extends object, LegacyKey extends string>(data: unknown, legacyKey?: LegacyKey): ListResult<TItem, LegacyKey>;
|
|
60
60
|
export {};
|
|
61
61
|
//# sourceMappingURL=sdkSurface.d.ts.map
|
package/dist/sdkSurface.js
CHANGED
|
@@ -12,7 +12,7 @@ function cleanString(value) {
|
|
|
12
12
|
function normalizeVerificationStatus(value) {
|
|
13
13
|
const status = cleanString(value);
|
|
14
14
|
if (!status) {
|
|
15
|
-
return
|
|
15
|
+
return;
|
|
16
16
|
}
|
|
17
17
|
if (status === "verified") {
|
|
18
18
|
return "human_verified";
|
|
@@ -41,7 +41,8 @@ export function resolveText(value) {
|
|
|
41
41
|
* Attach the topicId to a record.
|
|
42
42
|
*/
|
|
43
43
|
export function withTopicAlias(value) {
|
|
44
|
-
const
|
|
44
|
+
const record = value;
|
|
45
|
+
const topicId = cleanString(record.topicId) ?? undefined;
|
|
45
46
|
if (!topicId) {
|
|
46
47
|
return value;
|
|
47
48
|
}
|
|
@@ -51,7 +52,8 @@ export function withTopicAlias(value) {
|
|
|
51
52
|
* Attach the text/canonicalText alias pair to a record.
|
|
52
53
|
*/
|
|
53
54
|
export function withTextAlias(value) {
|
|
54
|
-
const
|
|
55
|
+
const record = value;
|
|
56
|
+
const text = cleanString(record.text) ?? cleanString(record.canonicalText) ?? undefined;
|
|
55
57
|
if (!text) {
|
|
56
58
|
return value;
|
|
57
59
|
}
|
|
@@ -67,10 +69,11 @@ export function withSdkAliases(value) {
|
|
|
67
69
|
* Normalize a belief/question/evidence write payload to the canonical gateway shape.
|
|
68
70
|
*/
|
|
69
71
|
export function normalizeNodeWriteInput(value) {
|
|
70
|
-
const
|
|
71
|
-
const
|
|
72
|
-
const
|
|
73
|
-
const
|
|
72
|
+
const record = value;
|
|
73
|
+
const topicId = resolveTopicId(record);
|
|
74
|
+
const text = resolveText(record);
|
|
75
|
+
const verificationStatus = normalizeVerificationStatus(record.verificationStatus);
|
|
76
|
+
const next = { ...record };
|
|
74
77
|
if (topicId) {
|
|
75
78
|
next.topicId = topicId;
|
|
76
79
|
if (!cleanString(next.topicGlobalId)) {
|
|
@@ -91,11 +94,12 @@ export const normalizeNodeVerificationStatus = normalizeVerificationStatus;
|
|
|
91
94
|
* Build a topic-aware query object.
|
|
92
95
|
*/
|
|
93
96
|
export function normalizeTopicQuery(value) {
|
|
94
|
-
const
|
|
97
|
+
const record = value;
|
|
98
|
+
const topicId = cleanString(record.topicId);
|
|
95
99
|
if (!topicId) {
|
|
96
|
-
return
|
|
100
|
+
return { ...record };
|
|
97
101
|
}
|
|
98
|
-
return { ...
|
|
102
|
+
return { ...record, topicId };
|
|
99
103
|
}
|
|
100
104
|
/**
|
|
101
105
|
* Extract list items from array or list-envelope payloads.
|
package/dist/secrets.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { type BrokeredSecretLeaseRef, type BrokeredSecretRequest, type BrokeredSecretResolverOptions, type BrokeredSecretResolverResult, type McProxyBindingRef, requestBrokeredInfisicalSecret, resolveInfisicalSecretFromBinding, type SecretBootstrapOptions, type SecretBrokerClient, SecretResolverError, type SecretResolverErrorCode, type SecretResolverFetch, type SecretResolverOptions, type SecretResolverResult, } from "@lucern/secrets";
|
|
2
2
|
//# sourceMappingURL=secrets.d.ts.map
|
package/dist/secrets.js
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
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.
|
|
2
|
+
export { requestBrokeredInfisicalSecret, resolveInfisicalSecretFromBinding, SecretResolverError, } from "@lucern/secrets";
|
|
2
3
|
//# sourceMappingURL=secrets.js.map
|
|
@@ -1,20 +1,19 @@
|
|
|
1
|
-
import { type GatewayClientConfig
|
|
1
|
+
import { type GatewayClientConfig } from "./coreClient";
|
|
2
2
|
import type { JsonObject } from "./types";
|
|
3
|
-
export { LucernApiError };
|
|
4
3
|
export type { PlatformGatewaySuccess } from "./coreClient";
|
|
5
4
|
export type { GetSourceResponse, UpsertSourceResponse } from "./types";
|
|
6
5
|
export type SourcesClientConfig = GatewayClientConfig;
|
|
7
|
-
export
|
|
8
|
-
|
|
9
|
-
sha?: string;
|
|
6
|
+
export interface UpsertSourceSpec {
|
|
7
|
+
capturedAt?: number;
|
|
10
8
|
kind: string;
|
|
9
|
+
metadata?: JsonObject;
|
|
10
|
+
sha?: string;
|
|
11
11
|
title?: string;
|
|
12
|
-
capturedAt?: number;
|
|
13
12
|
topicId?: string;
|
|
14
|
-
|
|
15
|
-
}
|
|
13
|
+
url?: string;
|
|
14
|
+
}
|
|
16
15
|
export declare function createSourcesClient(config?: SourcesClientConfig): {
|
|
17
16
|
upsert(spec: UpsertSourceSpec, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").PlatformSourceRecord>>;
|
|
18
17
|
get(sourceId: string): Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").PlatformSourceRecord>>;
|
|
19
18
|
};
|
|
20
|
-
//# sourceMappingURL=
|
|
19
|
+
//# sourceMappingURL=sources-client.d.ts.map
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { createGatewayRequestClient,
|
|
2
|
-
export { LucernApiError };
|
|
1
|
+
import { createGatewayRequestClient, randomIdempotencyKey, } from "./coreClient.js";
|
|
3
2
|
export function createSourcesClient(config = {}) {
|
|
4
3
|
const gateway = createGatewayRequestClient(config);
|
|
5
4
|
return {
|
|
6
|
-
|
|
5
|
+
upsert(spec, idempotencyKey = randomIdempotencyKey()) {
|
|
7
6
|
return gateway.request({
|
|
8
7
|
path: "/api/platform/v1/sources/upsert",
|
|
9
8
|
method: "POST",
|
|
@@ -11,11 +10,11 @@ export function createSourcesClient(config = {}) {
|
|
|
11
10
|
idempotencyKey,
|
|
12
11
|
});
|
|
13
12
|
},
|
|
14
|
-
|
|
13
|
+
get(sourceId) {
|
|
15
14
|
return gateway.request({
|
|
16
15
|
path: `/api/platform/v1/sources/${encodeURIComponent(sourceId)}`,
|
|
17
16
|
});
|
|
18
17
|
},
|
|
19
18
|
};
|
|
20
19
|
}
|
|
21
|
-
//# sourceMappingURL=
|
|
20
|
+
//# sourceMappingURL=sources-client.js.map
|