@lucern/sdk 1.0.30 → 1.0.32
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 +9 -0
- package/dist/adminClient.d.ts +16 -16
- package/dist/boundary-client-surface.d.ts +0 -2
- package/dist/boundary-client-surface.js +1 -2
- package/dist/client-evidence-compat.js +1 -1
- package/dist/client.d.ts +1635 -1636
- package/dist/clientHelpers.d.ts +0 -1
- package/dist/clientHelpers.js +1 -1
- package/dist/clientKnowledgeNamespaces.js +2 -2
- package/dist/clientLocalHelpers.d.ts +3 -3
- package/dist/clientPlatformNamespaces.d.ts +97 -97
- package/dist/clientWorkflowNamespaces.d.ts +3 -4
- package/dist/clientWorkflowNamespaces.js +1 -1
- package/dist/contracts/mcpTools.js +1 -1
- package/dist/gatewayFacades.factories.d.ts +1 -1
- package/dist/graphAnalysisClient.d.ts +0 -2
- package/dist/graphAnalysisClient.js +1 -1
- package/dist/graphRecommendationsClient.d.ts +1 -3
- package/dist/graphRecommendationsClient.js +1 -2
- package/dist/lenses/index.d.ts +0 -1
- package/dist/ontologies/index.d.ts +4 -4
- package/dist/ontologyClient.d.ts +2 -2
- package/dist/policyClient.d.ts +24 -24
- package/dist/proof-attestation.json +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/worktrees/index.d.ts +0 -1
- package/package.json +5 -5
package/dist/clientHelpers.d.ts
CHANGED
|
@@ -27,7 +27,6 @@ export declare function requireTopicId(args: {
|
|
|
27
27
|
}): string;
|
|
28
28
|
export declare function requireTopicOrProjectId(args: {
|
|
29
29
|
topicId?: string;
|
|
30
|
-
projectId?: string;
|
|
31
30
|
}): string;
|
|
32
31
|
export declare function matchesAuditNodeReference(value: unknown, nodeId: string): boolean;
|
|
33
32
|
export declare function requireText(args: {
|
package/dist/clientHelpers.js
CHANGED
|
@@ -53,7 +53,7 @@ export function requireTopicId(args) {
|
|
|
53
53
|
return topicId;
|
|
54
54
|
}
|
|
55
55
|
export function requireTopicOrProjectId(args) {
|
|
56
|
-
const topicId = args.topicId?.trim() ||
|
|
56
|
+
const topicId = args.topicId?.trim() || undefined;
|
|
57
57
|
if (!topicId) {
|
|
58
58
|
throw new Error("topicId is required");
|
|
59
59
|
}
|
|
@@ -291,7 +291,7 @@ export function createClientKnowledgeNamespaces(ctx) {
|
|
|
291
291
|
rationale: args.rationale,
|
|
292
292
|
})
|
|
293
293
|
.then((response) => ({
|
|
294
|
-
...
|
|
294
|
+
...response.data,
|
|
295
295
|
beliefId: args.beliefId,
|
|
296
296
|
}));
|
|
297
297
|
},
|
|
@@ -454,7 +454,7 @@ export function createClientKnowledgeNamespaces(ctx) {
|
|
|
454
454
|
rationale: args.rationale,
|
|
455
455
|
})
|
|
456
456
|
.then((response) => ({
|
|
457
|
-
...
|
|
457
|
+
...response.data,
|
|
458
458
|
questionId: args.questionId,
|
|
459
459
|
relevance: weight,
|
|
460
460
|
}));
|
|
@@ -58,8 +58,8 @@ export declare function createClientLocalHelpers(ctx: ClientLocalHelperContext):
|
|
|
58
58
|
actor: string;
|
|
59
59
|
timestamp: number;
|
|
60
60
|
rationale: string;
|
|
61
|
-
before: string | number | boolean |
|
|
62
|
-
after: string | number | boolean |
|
|
61
|
+
before: string | number | boolean | import("./types").JsonArray | JsonObject | null;
|
|
62
|
+
after: string | number | boolean | import("./types").JsonArray | JsonObject | null;
|
|
63
63
|
}[];
|
|
64
64
|
}>;
|
|
65
65
|
getConfidenceHistory: (nodeId: string) => Promise<import("./client-config").GatewayDataEnvelope<import("./gatewayFacades").GatewayRecord>>;
|
|
@@ -109,11 +109,11 @@ export declare function createClientLocalHelpers(ctx: ClientLocalHelperContext):
|
|
|
109
109
|
hardDelete: (input: import("./graphClient").HardDeleteNodeInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
|
|
110
110
|
};
|
|
111
111
|
ontologyLinksNamespace: {
|
|
112
|
-
resolveThemeSource(input: JsonObject): Promise<import("./client-config").GatewayDataEnvelope<Record<string, unknown>>>;
|
|
113
112
|
createLink(input: import("./ontologyLinksClient").OntologyLinkWriteInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<import("./ontologyLinksClient").OntologyLinkRecord>>;
|
|
114
113
|
upsertLink(input: import("./ontologyLinksClient").OntologyLinkWriteInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<import("./ontologyLinksClient").OntologyLinkRecord>>;
|
|
115
114
|
listLinksForNode(input: import("./ontologyLinksClient").ListOntologyLinksForNodeInput): Promise<PlatformGatewaySuccess<import("./types").ListResult<import("./ontologyLinksClient").OntologyLinkRecord, "links">>>;
|
|
116
115
|
updateLinkStatus(input: import("./ontologyLinksClient").UpdateOntologyLinkStatusInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<import("./ontologyLinksClient").OntologyLinkRecord>>;
|
|
116
|
+
resolveThemeSource(input: JsonObject): Promise<import("./client-config").GatewayDataEnvelope<Record<string, unknown>>>;
|
|
117
117
|
};
|
|
118
118
|
publicationNamespace: {
|
|
119
119
|
create(input: JsonObject, idempotencyKey?: string): Promise<import("./client-config").GatewayDataEnvelope<Record<string, unknown>>>;
|
|
@@ -23,6 +23,10 @@ export declare function createClientPlatformNamespaces(ctx: ClientNamespaceConte
|
|
|
23
23
|
principalId?: string;
|
|
24
24
|
limit?: number;
|
|
25
25
|
}) => Promise<{
|
|
26
|
+
correlationId: string;
|
|
27
|
+
idempotentReplay: boolean;
|
|
28
|
+
policyTraceId: string | null;
|
|
29
|
+
success: true;
|
|
26
30
|
data: {
|
|
27
31
|
permission: import("./policyClient").PermissionKind;
|
|
28
32
|
topics: import("./policyClient").PolicyTopicRecord[];
|
|
@@ -32,11 +36,11 @@ export declare function createClientPlatformNamespaces(ctx: ClientNamespaceConte
|
|
|
32
36
|
reasonCode: string;
|
|
33
37
|
}[];
|
|
34
38
|
};
|
|
39
|
+
}>>[0]): Promise<{
|
|
35
40
|
correlationId: string;
|
|
36
41
|
idempotentReplay: boolean;
|
|
37
42
|
policyTraceId: string | null;
|
|
38
43
|
success: true;
|
|
39
|
-
}>>[0]): Promise<{
|
|
40
44
|
data: {
|
|
41
45
|
permission: import("./policyClient").PermissionKind;
|
|
42
46
|
topics: import("./policyClient").PolicyTopicRecord[];
|
|
@@ -46,10 +50,6 @@ export declare function createClientPlatformNamespaces(ctx: ClientNamespaceConte
|
|
|
46
50
|
reasonCode: string;
|
|
47
51
|
}[];
|
|
48
52
|
};
|
|
49
|
-
correlationId: string;
|
|
50
|
-
idempotentReplay: boolean;
|
|
51
|
-
policyTraceId: string | null;
|
|
52
|
-
success: true;
|
|
53
53
|
}>;
|
|
54
54
|
filterByPermission(input: FunctionSurfaceInput): Promise<{
|
|
55
55
|
success: true;
|
|
@@ -88,48 +88,48 @@ export declare function createClientPlatformNamespaces(ctx: ClientNamespaceConte
|
|
|
88
88
|
toolCategory?: string;
|
|
89
89
|
enabled?: boolean;
|
|
90
90
|
}): Promise<{
|
|
91
|
+
correlationId: string;
|
|
92
|
+
idempotentReplay: boolean;
|
|
93
|
+
policyTraceId: string | null;
|
|
94
|
+
success: true;
|
|
91
95
|
data: {
|
|
92
96
|
policies: import("./policyClient").WritePolicyRecord[];
|
|
93
97
|
};
|
|
98
|
+
}>;
|
|
99
|
+
createWritePolicy(input: import("./policyClient").WritePolicyCreateInput, idempotencyKey?: string): Promise<{
|
|
94
100
|
correlationId: string;
|
|
95
101
|
idempotentReplay: boolean;
|
|
96
102
|
policyTraceId: string | null;
|
|
97
103
|
success: true;
|
|
98
|
-
}>;
|
|
99
|
-
createWritePolicy(input: import("./policyClient").WritePolicyCreateInput, idempotencyKey?: string): Promise<{
|
|
100
104
|
data: {
|
|
101
105
|
id: string | undefined;
|
|
102
106
|
created: boolean;
|
|
103
107
|
policy: import("./policyClient").WritePolicyRecord | null;
|
|
104
108
|
};
|
|
109
|
+
}>;
|
|
110
|
+
updateWritePolicy(id: string, input: import("./policyClient").WritePolicyUpdateInput, idempotencyKey?: string): Promise<{
|
|
105
111
|
correlationId: string;
|
|
106
112
|
idempotentReplay: boolean;
|
|
107
113
|
policyTraceId: string | null;
|
|
108
114
|
success: true;
|
|
109
|
-
}>;
|
|
110
|
-
updateWritePolicy(id: string, input: import("./policyClient").WritePolicyUpdateInput, idempotencyKey?: string): Promise<{
|
|
111
115
|
data: {
|
|
112
116
|
id: string | undefined;
|
|
113
117
|
updated: boolean;
|
|
114
118
|
policy: import("./policyClient").WritePolicyRecord | null;
|
|
115
119
|
};
|
|
116
|
-
correlationId: string;
|
|
117
|
-
idempotentReplay: boolean;
|
|
118
|
-
policyTraceId: string | null;
|
|
119
|
-
success: true;
|
|
120
120
|
}>;
|
|
121
121
|
deleteWritePolicy(id: string, scope?: import("./coreClient").GatewayScope, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<{
|
|
122
122
|
id?: string;
|
|
123
123
|
deleted?: boolean;
|
|
124
124
|
}>>;
|
|
125
125
|
listRolePolicies(query?: import("./coreClient").GatewayScope): Promise<{
|
|
126
|
-
data: {
|
|
127
|
-
policies: import("./policyClient").TenantPolicyRecord[];
|
|
128
|
-
};
|
|
129
126
|
correlationId: string;
|
|
130
127
|
idempotentReplay: boolean;
|
|
131
128
|
policyTraceId: string | null;
|
|
132
129
|
success: true;
|
|
130
|
+
data: {
|
|
131
|
+
policies: import("./policyClient").TenantPolicyRecord[];
|
|
132
|
+
};
|
|
133
133
|
}>;
|
|
134
134
|
createRolePolicy(input: import("./coreClient").GatewayScope & import("./policyClient").TenantPolicyClassificationFields & {
|
|
135
135
|
roleName: string;
|
|
@@ -137,13 +137,13 @@ export declare function createClientPlatformNamespaces(ctx: ClientNamespaceConte
|
|
|
137
137
|
permissions: import("./policyClient").TenantPolicyPermission[];
|
|
138
138
|
groupBindings?: string[];
|
|
139
139
|
}, idempotencyKey?: string): Promise<{
|
|
140
|
-
data: {
|
|
141
|
-
policy: import("./policyClient").TenantPolicyRecord | null;
|
|
142
|
-
};
|
|
143
140
|
correlationId: string;
|
|
144
141
|
idempotentReplay: boolean;
|
|
145
142
|
policyTraceId: string | null;
|
|
146
143
|
success: true;
|
|
144
|
+
data: {
|
|
145
|
+
policy: import("./policyClient").TenantPolicyRecord | null;
|
|
146
|
+
};
|
|
147
147
|
}>;
|
|
148
148
|
updateRolePolicy(id: string, input: import("./coreClient").GatewayScope & import("./policyClient").TenantPolicyClassificationFields & {
|
|
149
149
|
roleName: string;
|
|
@@ -151,13 +151,13 @@ export declare function createClientPlatformNamespaces(ctx: ClientNamespaceConte
|
|
|
151
151
|
permissions: import("./policyClient").TenantPolicyPermission[];
|
|
152
152
|
groupBindings?: string[];
|
|
153
153
|
}, idempotencyKey?: string): Promise<{
|
|
154
|
-
data: {
|
|
155
|
-
policy: import("./policyClient").TenantPolicyRecord | null;
|
|
156
|
-
};
|
|
157
154
|
correlationId: string;
|
|
158
155
|
idempotentReplay: boolean;
|
|
159
156
|
policyTraceId: string | null;
|
|
160
157
|
success: true;
|
|
158
|
+
data: {
|
|
159
|
+
policy: import("./policyClient").TenantPolicyRecord | null;
|
|
160
|
+
};
|
|
161
161
|
}>;
|
|
162
162
|
deleteRolePolicy(id: string, scope?: import("./coreClient").GatewayScope, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
163
163
|
checkPermission(query: import("./coreClient").GatewayScope & {
|
|
@@ -174,6 +174,10 @@ export declare function createClientPlatformNamespaces(ctx: ClientNamespaceConte
|
|
|
174
174
|
principalId?: string;
|
|
175
175
|
limit?: number;
|
|
176
176
|
}): Promise<{
|
|
177
|
+
correlationId: string;
|
|
178
|
+
idempotentReplay: boolean;
|
|
179
|
+
policyTraceId: string | null;
|
|
180
|
+
success: true;
|
|
177
181
|
data: {
|
|
178
182
|
permission: import("./policyClient").PermissionKind;
|
|
179
183
|
topics: import("./policyClient").PolicyTopicRecord[];
|
|
@@ -183,10 +187,6 @@ export declare function createClientPlatformNamespaces(ctx: ClientNamespaceConte
|
|
|
183
187
|
reasonCode: string;
|
|
184
188
|
}[];
|
|
185
189
|
};
|
|
186
|
-
correlationId: string;
|
|
187
|
-
idempotentReplay: boolean;
|
|
188
|
-
policyTraceId: string | null;
|
|
189
|
-
success: true;
|
|
190
190
|
}>;
|
|
191
191
|
filterByPermission(input: import("./coreClient").GatewayScope & {
|
|
192
192
|
topicIds?: string[];
|
|
@@ -375,6 +375,38 @@ export declare function createClientPlatformNamespaces(ctx: ClientNamespaceConte
|
|
|
375
375
|
};
|
|
376
376
|
};
|
|
377
377
|
identity: {
|
|
378
|
+
whoami(): Promise<{
|
|
379
|
+
authMode?: string;
|
|
380
|
+
clerkId?: string;
|
|
381
|
+
delegatedBy?: string;
|
|
382
|
+
expiresAt?: number;
|
|
383
|
+
groupIds?: string[];
|
|
384
|
+
isPlatformAdmin: boolean;
|
|
385
|
+
isTenantAdmin: boolean;
|
|
386
|
+
isWorkspaceAdmin: boolean;
|
|
387
|
+
permit?: {
|
|
388
|
+
subject: string;
|
|
389
|
+
tenant: string;
|
|
390
|
+
workspace?: string;
|
|
391
|
+
};
|
|
392
|
+
permittedPackKeys?: string[];
|
|
393
|
+
permittedToolNames?: string[];
|
|
394
|
+
principalId: string;
|
|
395
|
+
principalStatus?: string;
|
|
396
|
+
principalType: "user" | "human" | "service" | "group" | "external_viewer" | "agent";
|
|
397
|
+
roles: string[];
|
|
398
|
+
scopes: string[];
|
|
399
|
+
sessionId?: string;
|
|
400
|
+
tenantId: string | null;
|
|
401
|
+
tenantStatus?: string;
|
|
402
|
+
workspaceId: string | null;
|
|
403
|
+
workspaceStatus?: string;
|
|
404
|
+
correlationId: string;
|
|
405
|
+
data: import("./types").SdkPrincipalContext;
|
|
406
|
+
idempotentReplay: boolean;
|
|
407
|
+
policyTraceId: string | null;
|
|
408
|
+
success: true;
|
|
409
|
+
}>;
|
|
378
410
|
access: {
|
|
379
411
|
normalizePrincipal: typeof import("./accessControl").normalizeCanonicalPrincipalIdentity;
|
|
380
412
|
checkAccess: (input: import("./accessControl").RequireAccessInput, idempotencyKey?: string) => Promise<import("./accessControl").AccessCheckResult>;
|
|
@@ -476,38 +508,6 @@ export declare function createClientPlatformNamespaces(ctx: ClientNamespaceConte
|
|
|
476
508
|
evaluatePolicy(input: import("./identityClient").PolicyEvaluationInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<import("./identityClient").PolicyDecisionRecord>>;
|
|
477
509
|
recordPolicyDecision(input: import("./identityClient").RecordPolicyDecisionInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<import("./identityClient").PolicyDecisionRecord>>;
|
|
478
510
|
};
|
|
479
|
-
whoami(): Promise<{
|
|
480
|
-
authMode?: string;
|
|
481
|
-
clerkId?: string;
|
|
482
|
-
delegatedBy?: string;
|
|
483
|
-
expiresAt?: number;
|
|
484
|
-
groupIds?: string[];
|
|
485
|
-
isPlatformAdmin: boolean;
|
|
486
|
-
isTenantAdmin: boolean;
|
|
487
|
-
isWorkspaceAdmin: boolean;
|
|
488
|
-
permit?: {
|
|
489
|
-
subject: string;
|
|
490
|
-
tenant: string;
|
|
491
|
-
workspace?: string;
|
|
492
|
-
};
|
|
493
|
-
permittedPackKeys?: string[];
|
|
494
|
-
permittedToolNames?: string[];
|
|
495
|
-
principalId: string;
|
|
496
|
-
principalStatus?: string;
|
|
497
|
-
principalType: "user" | "human" | "service" | "group" | "external_viewer" | "agent";
|
|
498
|
-
roles: string[];
|
|
499
|
-
scopes: string[];
|
|
500
|
-
sessionId?: string;
|
|
501
|
-
tenantId: string | null;
|
|
502
|
-
tenantStatus?: string;
|
|
503
|
-
workspaceId: string | null;
|
|
504
|
-
workspaceStatus?: string;
|
|
505
|
-
correlationId: string;
|
|
506
|
-
data: import("./types").SdkPrincipalContext;
|
|
507
|
-
idempotentReplay: boolean;
|
|
508
|
-
policyTraceId: string | null;
|
|
509
|
-
success: true;
|
|
510
|
-
}>;
|
|
511
511
|
};
|
|
512
512
|
mcp: {
|
|
513
513
|
bootstrapSession: (input?: import("./mcpClient").McpBootstrapSessionInput) => Promise<import("./mcpClient").McpBootstrapSessionResponse>;
|
|
@@ -811,65 +811,65 @@ export declare function createClientPlatformNamespaces(ctx: ClientNamespaceConte
|
|
|
811
811
|
listTenantApiKeys(scope: import("./coreClient").GatewayScope & {
|
|
812
812
|
status?: "active" | "revoked" | "expired";
|
|
813
813
|
}): Promise<{
|
|
814
|
-
data: {
|
|
815
|
-
keys: import("./adminClient").TenantApiKeyRecord[];
|
|
816
|
-
};
|
|
817
814
|
correlationId: string;
|
|
818
815
|
idempotentReplay: boolean;
|
|
819
816
|
policyTraceId: string | null;
|
|
820
817
|
success: true;
|
|
818
|
+
data: {
|
|
819
|
+
keys: import("./adminClient").TenantApiKeyRecord[];
|
|
820
|
+
};
|
|
821
821
|
}>;
|
|
822
822
|
createTenantApiKey(input: import("./coreClient").GatewayScope & {
|
|
823
823
|
label?: string;
|
|
824
824
|
scopes: string[];
|
|
825
825
|
expiresAt?: number;
|
|
826
826
|
}, idempotencyKey?: string): Promise<{
|
|
827
|
-
data: {
|
|
828
|
-
key: import("./adminClient").TenantApiKeyRecord | null;
|
|
829
|
-
plaintextKey: string | undefined;
|
|
830
|
-
};
|
|
831
827
|
correlationId: string;
|
|
832
828
|
idempotentReplay: boolean;
|
|
833
829
|
policyTraceId: string | null;
|
|
834
830
|
success: true;
|
|
831
|
+
data: {
|
|
832
|
+
key: import("./adminClient").TenantApiKeyRecord | null;
|
|
833
|
+
plaintextKey: string | undefined;
|
|
834
|
+
};
|
|
835
835
|
}>;
|
|
836
836
|
revokeTenantApiKey(keyId: string, input?: import("./coreClient").GatewayScope & {
|
|
837
837
|
reason?: string;
|
|
838
838
|
}, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
839
839
|
listTenantVaultSecrets(scope: import("./coreClient").GatewayScope): Promise<{
|
|
840
|
-
data: {
|
|
841
|
-
secrets: import("./adminClient").TenantVaultSecretRecord[];
|
|
842
|
-
};
|
|
843
840
|
correlationId: string;
|
|
844
841
|
idempotentReplay: boolean;
|
|
845
842
|
policyTraceId: string | null;
|
|
846
843
|
success: true;
|
|
844
|
+
data: {
|
|
845
|
+
secrets: import("./adminClient").TenantVaultSecretRecord[];
|
|
846
|
+
};
|
|
847
847
|
}>;
|
|
848
848
|
createTenantVaultSecret(input: import("./coreClient").GatewayScope & {
|
|
849
849
|
name: string;
|
|
850
850
|
description?: string;
|
|
851
851
|
value: string;
|
|
852
852
|
}, idempotencyKey?: string): Promise<{
|
|
853
|
-
data: {
|
|
854
|
-
secret: import("./adminClient").TenantVaultSecretRecord | null;
|
|
855
|
-
};
|
|
856
853
|
correlationId: string;
|
|
857
854
|
idempotentReplay: boolean;
|
|
858
855
|
policyTraceId: string | null;
|
|
859
856
|
success: true;
|
|
857
|
+
data: {
|
|
858
|
+
secret: import("./adminClient").TenantVaultSecretRecord | null;
|
|
859
|
+
};
|
|
860
860
|
}>;
|
|
861
861
|
updateTenantVaultSecret(secretId: string, input: import("./coreClient").GatewayScope & {
|
|
862
862
|
name: string;
|
|
863
863
|
description?: string;
|
|
864
864
|
value?: string;
|
|
865
865
|
}, idempotencyKey?: string): Promise<{
|
|
866
|
-
data: {
|
|
867
|
-
secret: import("./adminClient").TenantVaultSecretRecord | null;
|
|
868
|
-
};
|
|
869
866
|
correlationId: string;
|
|
870
867
|
idempotentReplay: boolean;
|
|
871
868
|
policyTraceId: string | null;
|
|
872
869
|
success: true;
|
|
870
|
+
data: {
|
|
871
|
+
secret: import("./adminClient").TenantVaultSecretRecord | null;
|
|
872
|
+
};
|
|
873
873
|
}>;
|
|
874
874
|
deleteTenantVaultSecret(secretId: string, scope: import("./coreClient").GatewayScope, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
875
875
|
listTenantSecrets(scope: import("./coreClient").GatewayScope & {
|
|
@@ -1039,48 +1039,48 @@ export declare function createClientPlatformNamespaces(ctx: ClientNamespaceConte
|
|
|
1039
1039
|
toolCategory?: string;
|
|
1040
1040
|
enabled?: boolean;
|
|
1041
1041
|
}): Promise<{
|
|
1042
|
+
correlationId: string;
|
|
1043
|
+
idempotentReplay: boolean;
|
|
1044
|
+
policyTraceId: string | null;
|
|
1045
|
+
success: true;
|
|
1042
1046
|
data: {
|
|
1043
1047
|
policies: import("./policyClient").WritePolicyRecord[];
|
|
1044
1048
|
};
|
|
1049
|
+
}>;
|
|
1050
|
+
createWritePolicy(input: import("./policyClient").WritePolicyCreateInput, idempotencyKey?: string): Promise<{
|
|
1045
1051
|
correlationId: string;
|
|
1046
1052
|
idempotentReplay: boolean;
|
|
1047
1053
|
policyTraceId: string | null;
|
|
1048
1054
|
success: true;
|
|
1049
|
-
}>;
|
|
1050
|
-
createWritePolicy(input: import("./policyClient").WritePolicyCreateInput, idempotencyKey?: string): Promise<{
|
|
1051
1055
|
data: {
|
|
1052
1056
|
id: string | undefined;
|
|
1053
1057
|
created: boolean;
|
|
1054
1058
|
policy: import("./policyClient").WritePolicyRecord | null;
|
|
1055
1059
|
};
|
|
1060
|
+
}>;
|
|
1061
|
+
updateWritePolicy(id: string, input: import("./policyClient").WritePolicyUpdateInput, idempotencyKey?: string): Promise<{
|
|
1056
1062
|
correlationId: string;
|
|
1057
1063
|
idempotentReplay: boolean;
|
|
1058
1064
|
policyTraceId: string | null;
|
|
1059
1065
|
success: true;
|
|
1060
|
-
}>;
|
|
1061
|
-
updateWritePolicy(id: string, input: import("./policyClient").WritePolicyUpdateInput, idempotencyKey?: string): Promise<{
|
|
1062
1066
|
data: {
|
|
1063
1067
|
id: string | undefined;
|
|
1064
1068
|
updated: boolean;
|
|
1065
1069
|
policy: import("./policyClient").WritePolicyRecord | null;
|
|
1066
1070
|
};
|
|
1067
|
-
correlationId: string;
|
|
1068
|
-
idempotentReplay: boolean;
|
|
1069
|
-
policyTraceId: string | null;
|
|
1070
|
-
success: true;
|
|
1071
1071
|
}>;
|
|
1072
1072
|
deleteWritePolicy(id: string, scope?: import("./coreClient").GatewayScope, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<{
|
|
1073
1073
|
id?: string;
|
|
1074
1074
|
deleted?: boolean;
|
|
1075
1075
|
}>>;
|
|
1076
1076
|
listRolePolicies(query?: import("./coreClient").GatewayScope): Promise<{
|
|
1077
|
-
data: {
|
|
1078
|
-
policies: import("./policyClient").TenantPolicyRecord[];
|
|
1079
|
-
};
|
|
1080
1077
|
correlationId: string;
|
|
1081
1078
|
idempotentReplay: boolean;
|
|
1082
1079
|
policyTraceId: string | null;
|
|
1083
1080
|
success: true;
|
|
1081
|
+
data: {
|
|
1082
|
+
policies: import("./policyClient").TenantPolicyRecord[];
|
|
1083
|
+
};
|
|
1084
1084
|
}>;
|
|
1085
1085
|
createRolePolicy(input: import("./coreClient").GatewayScope & import("./policyClient").TenantPolicyClassificationFields & {
|
|
1086
1086
|
roleName: string;
|
|
@@ -1088,13 +1088,13 @@ export declare function createClientPlatformNamespaces(ctx: ClientNamespaceConte
|
|
|
1088
1088
|
permissions: import("./policyClient").TenantPolicyPermission[];
|
|
1089
1089
|
groupBindings?: string[];
|
|
1090
1090
|
}, idempotencyKey?: string): Promise<{
|
|
1091
|
-
data: {
|
|
1092
|
-
policy: import("./policyClient").TenantPolicyRecord | null;
|
|
1093
|
-
};
|
|
1094
1091
|
correlationId: string;
|
|
1095
1092
|
idempotentReplay: boolean;
|
|
1096
1093
|
policyTraceId: string | null;
|
|
1097
1094
|
success: true;
|
|
1095
|
+
data: {
|
|
1096
|
+
policy: import("./policyClient").TenantPolicyRecord | null;
|
|
1097
|
+
};
|
|
1098
1098
|
}>;
|
|
1099
1099
|
updateRolePolicy(id: string, input: import("./coreClient").GatewayScope & import("./policyClient").TenantPolicyClassificationFields & {
|
|
1100
1100
|
roleName: string;
|
|
@@ -1102,13 +1102,13 @@ export declare function createClientPlatformNamespaces(ctx: ClientNamespaceConte
|
|
|
1102
1102
|
permissions: import("./policyClient").TenantPolicyPermission[];
|
|
1103
1103
|
groupBindings?: string[];
|
|
1104
1104
|
}, idempotencyKey?: string): Promise<{
|
|
1105
|
-
data: {
|
|
1106
|
-
policy: import("./policyClient").TenantPolicyRecord | null;
|
|
1107
|
-
};
|
|
1108
1105
|
correlationId: string;
|
|
1109
1106
|
idempotentReplay: boolean;
|
|
1110
1107
|
policyTraceId: string | null;
|
|
1111
1108
|
success: true;
|
|
1109
|
+
data: {
|
|
1110
|
+
policy: import("./policyClient").TenantPolicyRecord | null;
|
|
1111
|
+
};
|
|
1112
1112
|
}>;
|
|
1113
1113
|
deleteRolePolicy(id: string, scope?: import("./coreClient").GatewayScope, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
1114
1114
|
checkPermission(query: import("./coreClient").GatewayScope & {
|
|
@@ -1125,6 +1125,10 @@ export declare function createClientPlatformNamespaces(ctx: ClientNamespaceConte
|
|
|
1125
1125
|
principalId?: string;
|
|
1126
1126
|
limit?: number;
|
|
1127
1127
|
}): Promise<{
|
|
1128
|
+
correlationId: string;
|
|
1129
|
+
idempotentReplay: boolean;
|
|
1130
|
+
policyTraceId: string | null;
|
|
1131
|
+
success: true;
|
|
1128
1132
|
data: {
|
|
1129
1133
|
permission: import("./policyClient").PermissionKind;
|
|
1130
1134
|
topics: import("./policyClient").PolicyTopicRecord[];
|
|
@@ -1134,10 +1138,6 @@ export declare function createClientPlatformNamespaces(ctx: ClientNamespaceConte
|
|
|
1134
1138
|
reasonCode: string;
|
|
1135
1139
|
}[];
|
|
1136
1140
|
};
|
|
1137
|
-
correlationId: string;
|
|
1138
|
-
idempotentReplay: boolean;
|
|
1139
|
-
policyTraceId: string | null;
|
|
1140
|
-
success: true;
|
|
1141
1141
|
}>;
|
|
1142
1142
|
filterByPermission(input: import("./coreClient").GatewayScope & {
|
|
1143
1143
|
topicIds?: string[];
|
|
@@ -1158,9 +1158,9 @@ export declare function createClientPlatformNamespaces(ctx: ClientNamespaceConte
|
|
|
1158
1158
|
tier?: string;
|
|
1159
1159
|
status?: string;
|
|
1160
1160
|
}): Promise<import("./coreClient").PlatformGatewaySuccess<{
|
|
1161
|
+
items: unknown[];
|
|
1161
1162
|
ontologies: unknown[];
|
|
1162
1163
|
total: number;
|
|
1163
|
-
items: unknown[];
|
|
1164
1164
|
definitions: unknown[];
|
|
1165
1165
|
}>>;
|
|
1166
1166
|
get(id: string): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
@@ -1181,9 +1181,9 @@ export declare function createClientPlatformNamespaces(ctx: ClientNamespaceConte
|
|
|
1181
1181
|
tier?: string;
|
|
1182
1182
|
status?: string;
|
|
1183
1183
|
}) => Promise<import("./coreClient").PlatformGatewaySuccess<{
|
|
1184
|
+
items: unknown[];
|
|
1184
1185
|
ontologies: unknown[];
|
|
1185
1186
|
total: number;
|
|
1186
|
-
items: unknown[];
|
|
1187
1187
|
definitions: unknown[];
|
|
1188
1188
|
}>>;
|
|
1189
1189
|
getDefinition: (id: string) => Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
@@ -88,7 +88,6 @@ export declare function createClientWorkflowNamespaces(ctx: ClientNamespaceConte
|
|
|
88
88
|
findByPairedSprint(input: {
|
|
89
89
|
sprintId: string;
|
|
90
90
|
topicId?: string;
|
|
91
|
-
projectId?: string;
|
|
92
91
|
limit?: number;
|
|
93
92
|
}): Promise<import("./client-config").GatewayDataEnvelope<Record<string, unknown>>>;
|
|
94
93
|
activate(worktreeId: string): Promise<import("./coreClient").PlatformGatewaySuccess<import("./gatewayFacades").GatewayRecord>>;
|
|
@@ -207,9 +206,9 @@ export declare function createClientWorkflowNamespaces(ctx: ClientNamespaceConte
|
|
|
207
206
|
tier?: string;
|
|
208
207
|
status?: string;
|
|
209
208
|
}): Promise<import("./client-config").GatewayDataEnvelope<{
|
|
209
|
+
items: unknown[];
|
|
210
210
|
ontologies: unknown[];
|
|
211
211
|
total: number;
|
|
212
|
-
items: unknown[];
|
|
213
212
|
definitions: unknown[];
|
|
214
213
|
}>>;
|
|
215
214
|
get(ontologyId: string): Promise<import("./client-config").GatewayDataEnvelope<import("./gatewayFacades").GatewayRecord>>;
|
|
@@ -231,9 +230,9 @@ export declare function createClientWorkflowNamespaces(ctx: ClientNamespaceConte
|
|
|
231
230
|
tier?: string;
|
|
232
231
|
status?: string;
|
|
233
232
|
}): Promise<import("./coreClient").PlatformGatewaySuccess<{
|
|
233
|
+
items: unknown[];
|
|
234
234
|
ontologies: unknown[];
|
|
235
235
|
total: number;
|
|
236
|
-
items: unknown[];
|
|
237
236
|
definitions: unknown[];
|
|
238
237
|
}>>;
|
|
239
238
|
get(id: string): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
@@ -254,9 +253,9 @@ export declare function createClientWorkflowNamespaces(ctx: ClientNamespaceConte
|
|
|
254
253
|
tier?: string;
|
|
255
254
|
status?: string;
|
|
256
255
|
}) => Promise<import("./coreClient").PlatformGatewaySuccess<{
|
|
256
|
+
items: unknown[];
|
|
257
257
|
ontologies: unknown[];
|
|
258
258
|
total: number;
|
|
259
|
-
items: unknown[];
|
|
260
259
|
definitions: unknown[];
|
|
261
260
|
}>>;
|
|
262
261
|
getDefinition: (id: string) => Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
@@ -163,7 +163,7 @@ export function createClientWorkflowNamespaces(ctx) {
|
|
|
163
163
|
.request({
|
|
164
164
|
path: `/api/platform/v1/worktrees/paired-sprint${sdkQueryString({
|
|
165
165
|
sprintId: input.sprintId,
|
|
166
|
-
topicId: input.topicId
|
|
166
|
+
topicId: input.topicId,
|
|
167
167
|
limit: input.limit,
|
|
168
168
|
})}`,
|
|
169
169
|
})
|
|
@@ -23,7 +23,7 @@ function decorateMcpToolContract(toolName, contract) {
|
|
|
23
23
|
export function buildMcpToolContracts(options = {}) {
|
|
24
24
|
const merged = {
|
|
25
25
|
...MCP_TOOL_CONTRACTS,
|
|
26
|
-
...
|
|
26
|
+
...options.extensions,
|
|
27
27
|
};
|
|
28
28
|
return Object.fromEntries(Object.entries(merged).flatMap(([toolName, contract]) => {
|
|
29
29
|
const decorated = decorateMcpToolContract(toolName, contract);
|
|
@@ -154,9 +154,9 @@ export declare function createOntologiesFacade(config?: GatewayClientConfig): {
|
|
|
154
154
|
tier?: string;
|
|
155
155
|
status?: string;
|
|
156
156
|
}) => Promise<PlatformGatewaySuccess<{
|
|
157
|
+
items: unknown[];
|
|
157
158
|
ontologies: unknown[];
|
|
158
159
|
total: number;
|
|
159
|
-
items: unknown[];
|
|
160
160
|
definitions: unknown[];
|
|
161
161
|
}>>;
|
|
162
162
|
};
|
|
@@ -58,8 +58,6 @@ export interface GraphAnalysisChangeRecord {
|
|
|
58
58
|
workspaceId?: string;
|
|
59
59
|
}
|
|
60
60
|
export interface TopicProjectAliasInput {
|
|
61
|
-
/** @deprecated Use topicId. */
|
|
62
|
-
projectId?: string;
|
|
63
61
|
topicId?: string;
|
|
64
62
|
}
|
|
65
63
|
export type SaveGraphAnalysisInput = TopicProjectAliasInput & {
|
|
@@ -32,7 +32,7 @@ export const GRAPH_ANALYSIS_COMPUTE_FIELDS = [
|
|
|
32
32
|
"metadata",
|
|
33
33
|
];
|
|
34
34
|
function readTopicId(input) {
|
|
35
|
-
return input.topicId?.trim() ||
|
|
35
|
+
return input.topicId?.trim() || undefined;
|
|
36
36
|
}
|
|
37
37
|
function requireTopicId(input) {
|
|
38
38
|
const topicId = readTopicId(input);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type GatewayClientConfig } from "./coreClient";
|
|
2
2
|
import type { JsonObject, ListResult } from "./types";
|
|
3
3
|
export type GraphRecommendationsClientConfig = GatewayClientConfig;
|
|
4
|
-
export declare const GRAPH_RECOMMENDATION_FIELDS: readonly ["topicId", "
|
|
4
|
+
export declare const GRAPH_RECOMMENDATION_FIELDS: readonly ["topicId", "workspaceId", "limit", "cursor", "status", "findingId", "actionType", "targetNodeIds", "priority", "rationale", "healthScore", "metadata"];
|
|
5
5
|
export type GraphRecommendationStatus = "open" | "accepted" | "dismissed" | "applied" | "superseded";
|
|
6
6
|
export type GraphRecommendationPriority = "P0" | "P1" | "P2" | "P3" | "critical" | "high" | "medium" | "low";
|
|
7
7
|
export interface GraphRecommendationRecord {
|
|
@@ -27,8 +27,6 @@ export interface GraphRecommendationListInput {
|
|
|
27
27
|
limit?: number;
|
|
28
28
|
metadata?: JsonObject;
|
|
29
29
|
priority?: GraphRecommendationPriority | string;
|
|
30
|
-
/** @deprecated Use topicId. */
|
|
31
|
-
projectId?: string;
|
|
32
30
|
status?: GraphRecommendationStatus;
|
|
33
31
|
targetNodeIds?: string[];
|
|
34
32
|
topicId?: string;
|
|
@@ -3,7 +3,6 @@ import { createGatewayRequestClient, randomIdempotencyKey, toQueryString, } from
|
|
|
3
3
|
import { createListResult, mapGatewayData } from "./sdkSurface.js";
|
|
4
4
|
export const GRAPH_RECOMMENDATION_FIELDS = [
|
|
5
5
|
"topicId",
|
|
6
|
-
"projectId",
|
|
7
6
|
"workspaceId",
|
|
8
7
|
"limit",
|
|
9
8
|
"cursor",
|
|
@@ -17,7 +16,7 @@ export const GRAPH_RECOMMENDATION_FIELDS = [
|
|
|
17
16
|
"metadata",
|
|
18
17
|
];
|
|
19
18
|
function readTopicId(input) {
|
|
20
|
-
return input.topicId?.trim() ||
|
|
19
|
+
return input.topicId?.trim() || undefined;
|
|
21
20
|
}
|
|
22
21
|
function requireTopicId(input) {
|
|
23
22
|
const topicId = readTopicId(input);
|
package/dist/lenses/index.d.ts
CHANGED
|
@@ -89,7 +89,6 @@ export declare function createLensesClient(config?: LensesClientConfig): {
|
|
|
89
89
|
findByPairedSprint(input: {
|
|
90
90
|
sprintId: string;
|
|
91
91
|
topicId?: string;
|
|
92
|
-
projectId?: string;
|
|
93
92
|
limit?: number;
|
|
94
93
|
}): Promise<import("../client-config").GatewayDataEnvelope<Record<string, unknown>>>;
|
|
95
94
|
activate(worktreeId: string): Promise<import("..").PlatformGatewaySuccess<import("../gatewayFacades").GatewayRecord>>;
|