@stacklink/sdk 0.6.3 → 0.6.4
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/compatibility.json +1 -1
- package/dist/src/domain/bot-contract.d.ts +642 -642
- package/dist/src/domain/memory-contract.d.ts +1389 -985
- package/dist/src/domain/memory-contract.d.ts.map +1 -1
- package/dist/src/domain/memory-contract.js +85 -9
- package/dist/src/domain/memory-contract.js.map +1 -1
- package/dist/src/domain/platform-approval-contract.d.ts +36 -36
- package/dist/src/domain/workflow-contract.d.ts +16035 -9481
- package/dist/src/domain/workflow-contract.d.ts.map +1 -1
- package/dist/src/domain/workflow-contract.js +23 -2
- package/dist/src/domain/workflow-contract.js.map +1 -1
- package/dist/src/sdk/index.d.ts +9 -9
- package/dist/src/sdk/index.d.ts.map +1 -1
- package/dist/src/sdk/index.js +3 -3
- package/dist/src/sdk/index.js.map +1 -1
- package/dist/src/sdk/memory-lifecycle.d.ts +1 -4
- package/dist/src/sdk/memory-lifecycle.d.ts.map +1 -1
- package/dist/src/sdk/memory-lifecycle.js +2 -7
- package/dist/src/sdk/memory-lifecycle.js.map +1 -1
- package/package.json +1 -1
|
@@ -12,12 +12,12 @@ export declare const approvalActorSchema: z.ZodObject<{
|
|
|
12
12
|
id: z.ZodString;
|
|
13
13
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
14
14
|
}, "strict", z.ZodTypeAny, {
|
|
15
|
+
kind: "dashboard_user" | "customer" | "external" | "api_key" | "mcp_grant";
|
|
15
16
|
id: string;
|
|
16
|
-
kind: "customer" | "dashboard_user" | "external" | "api_key" | "mcp_grant";
|
|
17
17
|
tenantId?: string | undefined;
|
|
18
18
|
}, {
|
|
19
|
+
kind: "dashboard_user" | "customer" | "external" | "api_key" | "mcp_grant";
|
|
19
20
|
id: string;
|
|
20
|
-
kind: "customer" | "dashboard_user" | "external" | "api_key" | "mcp_grant";
|
|
21
21
|
tenantId?: string | undefined;
|
|
22
22
|
}>;
|
|
23
23
|
export type ApprovalActor = z.infer<typeof approvalActorSchema>;
|
|
@@ -29,12 +29,12 @@ export declare const approvalRequirementSchema: z.ZodObject<{
|
|
|
29
29
|
id: z.ZodString;
|
|
30
30
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
31
31
|
}, "strict", z.ZodTypeAny, {
|
|
32
|
+
kind: "dashboard_user" | "customer" | "external" | "api_key" | "mcp_grant";
|
|
32
33
|
id: string;
|
|
33
|
-
kind: "customer" | "dashboard_user" | "external" | "api_key" | "mcp_grant";
|
|
34
34
|
tenantId?: string | undefined;
|
|
35
35
|
}, {
|
|
36
|
+
kind: "dashboard_user" | "customer" | "external" | "api_key" | "mcp_grant";
|
|
36
37
|
id: string;
|
|
37
|
-
kind: "customer" | "dashboard_user" | "external" | "api_key" | "mcp_grant";
|
|
38
38
|
tenantId?: string | undefined;
|
|
39
39
|
}>>>;
|
|
40
40
|
decidedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
@@ -42,23 +42,23 @@ export declare const approvalRequirementSchema: z.ZodObject<{
|
|
|
42
42
|
}, "strict", z.ZodTypeAny, {
|
|
43
43
|
status: "pending" | "approved" | "denied";
|
|
44
44
|
kind: "customer" | "company";
|
|
45
|
+
reason: string | null;
|
|
45
46
|
actor: {
|
|
47
|
+
kind: "dashboard_user" | "customer" | "external" | "api_key" | "mcp_grant";
|
|
46
48
|
id: string;
|
|
47
|
-
kind: "customer" | "dashboard_user" | "external" | "api_key" | "mcp_grant";
|
|
48
49
|
tenantId?: string | undefined;
|
|
49
50
|
} | null;
|
|
50
51
|
decidedAt: string | null;
|
|
51
|
-
reason: string | null;
|
|
52
52
|
}, {
|
|
53
53
|
status: "pending" | "approved" | "denied";
|
|
54
54
|
kind: "customer" | "company";
|
|
55
|
+
reason?: string | null | undefined;
|
|
55
56
|
actor?: {
|
|
57
|
+
kind: "dashboard_user" | "customer" | "external" | "api_key" | "mcp_grant";
|
|
56
58
|
id: string;
|
|
57
|
-
kind: "customer" | "dashboard_user" | "external" | "api_key" | "mcp_grant";
|
|
58
59
|
tenantId?: string | undefined;
|
|
59
60
|
} | null | undefined;
|
|
60
61
|
decidedAt?: string | null | undefined;
|
|
61
|
-
reason?: string | null | undefined;
|
|
62
62
|
}>;
|
|
63
63
|
export type ApprovalRequirement = z.infer<typeof approvalRequirementSchema>;
|
|
64
64
|
export declare const approvalDecisionSchema: z.ZodObject<{
|
|
@@ -67,13 +67,13 @@ export declare const approvalDecisionSchema: z.ZodObject<{
|
|
|
67
67
|
expectedRevision: z.ZodNumber;
|
|
68
68
|
reason: z.ZodOptional<z.ZodString>;
|
|
69
69
|
}, "strict", z.ZodTypeAny, {
|
|
70
|
-
requirement: "customer" | "company";
|
|
71
70
|
decision: "approve" | "decline";
|
|
71
|
+
requirement: "customer" | "company";
|
|
72
72
|
expectedRevision: number;
|
|
73
73
|
reason?: string | undefined;
|
|
74
74
|
}, {
|
|
75
|
-
requirement: "customer" | "company";
|
|
76
75
|
decision: "approve" | "decline";
|
|
76
|
+
requirement: "customer" | "company";
|
|
77
77
|
expectedRevision: number;
|
|
78
78
|
reason?: string | undefined;
|
|
79
79
|
}>;
|
|
@@ -212,7 +212,6 @@ export declare const toolkitApprovalUpdateSchema: z.ZodObject<{
|
|
|
212
212
|
tools?: Record<string, "allow" | "ask" | "off"> | undefined;
|
|
213
213
|
}>>;
|
|
214
214
|
}, "strict", z.ZodTypeAny, {
|
|
215
|
-
revision: number;
|
|
216
215
|
policy: {
|
|
217
216
|
defaults: {
|
|
218
217
|
r: "allow" | "ask" | "off";
|
|
@@ -221,8 +220,8 @@ export declare const toolkitApprovalUpdateSchema: z.ZodObject<{
|
|
|
221
220
|
};
|
|
222
221
|
tools: Record<string, "allow" | "ask" | "off">;
|
|
223
222
|
} | null;
|
|
224
|
-
}, {
|
|
225
223
|
revision: number;
|
|
224
|
+
}, {
|
|
226
225
|
policy: {
|
|
227
226
|
defaults: {
|
|
228
227
|
r: "allow" | "ask" | "off";
|
|
@@ -231,6 +230,7 @@ export declare const toolkitApprovalUpdateSchema: z.ZodObject<{
|
|
|
231
230
|
};
|
|
232
231
|
tools?: Record<string, "allow" | "ask" | "off"> | undefined;
|
|
233
232
|
} | null;
|
|
233
|
+
revision: number;
|
|
234
234
|
}>;
|
|
235
235
|
export declare const approvalSettingsSchema: z.ZodEffects<z.ZodObject<{
|
|
236
236
|
revision: z.ZodNumber;
|
|
@@ -335,10 +335,10 @@ export declare const approvalGrantSchema: z.ZodEffects<z.ZodObject<{
|
|
|
335
335
|
pointer: string;
|
|
336
336
|
}>, "many">>;
|
|
337
337
|
}, "strict", z.ZodTypeAny, {
|
|
338
|
-
kind: "
|
|
338
|
+
kind: "dashboard_user" | "customer" | "external";
|
|
339
339
|
tenantId: string | null;
|
|
340
|
-
subjectId: string;
|
|
341
340
|
name: string;
|
|
341
|
+
subjectId: string;
|
|
342
342
|
toolKeys: string[];
|
|
343
343
|
accountIds: string[];
|
|
344
344
|
resources: {
|
|
@@ -347,11 +347,11 @@ export declare const approvalGrantSchema: z.ZodEffects<z.ZodObject<{
|
|
|
347
347
|
}[];
|
|
348
348
|
id?: string | undefined;
|
|
349
349
|
}, {
|
|
350
|
-
kind: "
|
|
351
|
-
subjectId: string;
|
|
350
|
+
kind: "dashboard_user" | "customer" | "external";
|
|
352
351
|
name: string;
|
|
353
|
-
|
|
352
|
+
subjectId: string;
|
|
354
353
|
tenantId?: string | null | undefined;
|
|
354
|
+
id?: string | undefined;
|
|
355
355
|
toolKeys?: string[] | undefined;
|
|
356
356
|
accountIds?: string[] | undefined;
|
|
357
357
|
resources?: {
|
|
@@ -359,10 +359,10 @@ export declare const approvalGrantSchema: z.ZodEffects<z.ZodObject<{
|
|
|
359
359
|
pointer: string;
|
|
360
360
|
}[] | undefined;
|
|
361
361
|
}>, {
|
|
362
|
-
kind: "
|
|
362
|
+
kind: "dashboard_user" | "customer" | "external";
|
|
363
363
|
tenantId: string | null;
|
|
364
|
-
subjectId: string;
|
|
365
364
|
name: string;
|
|
365
|
+
subjectId: string;
|
|
366
366
|
toolKeys: string[];
|
|
367
367
|
accountIds: string[];
|
|
368
368
|
resources: {
|
|
@@ -371,11 +371,11 @@ export declare const approvalGrantSchema: z.ZodEffects<z.ZodObject<{
|
|
|
371
371
|
}[];
|
|
372
372
|
id?: string | undefined;
|
|
373
373
|
}, {
|
|
374
|
-
kind: "
|
|
375
|
-
subjectId: string;
|
|
374
|
+
kind: "dashboard_user" | "customer" | "external";
|
|
376
375
|
name: string;
|
|
377
|
-
|
|
376
|
+
subjectId: string;
|
|
378
377
|
tenantId?: string | null | undefined;
|
|
378
|
+
id?: string | undefined;
|
|
379
379
|
toolKeys?: string[] | undefined;
|
|
380
380
|
accountIds?: string[] | undefined;
|
|
381
381
|
resources?: {
|
|
@@ -401,8 +401,8 @@ export declare const customerApprovalGrantSchema: z.ZodObject<{
|
|
|
401
401
|
pointer: string;
|
|
402
402
|
}>, "many">;
|
|
403
403
|
}, "strict", z.ZodTypeAny, {
|
|
404
|
-
revision: number;
|
|
405
404
|
name: string;
|
|
405
|
+
revision: number;
|
|
406
406
|
toolKeys: string[];
|
|
407
407
|
accountIds: string[];
|
|
408
408
|
resources: {
|
|
@@ -410,8 +410,8 @@ export declare const customerApprovalGrantSchema: z.ZodObject<{
|
|
|
410
410
|
pointer: string;
|
|
411
411
|
}[];
|
|
412
412
|
}, {
|
|
413
|
-
revision: number;
|
|
414
413
|
name: string;
|
|
414
|
+
revision: number;
|
|
415
415
|
toolKeys: string[];
|
|
416
416
|
resources: {
|
|
417
417
|
value: string | number | boolean;
|
|
@@ -448,16 +448,16 @@ export declare const approvalIdentitySchema: z.ZodObject<{
|
|
|
448
448
|
externalId: z.ZodString;
|
|
449
449
|
tenantExternalId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
450
450
|
}, "strict", z.ZodTypeAny, {
|
|
451
|
+
externalId: string;
|
|
452
|
+
channel: "email" | "slack" | "teams" | "whatsapp";
|
|
451
453
|
accountId: string;
|
|
452
454
|
grantId: string;
|
|
453
|
-
channel: "email" | "slack" | "teams" | "whatsapp";
|
|
454
|
-
externalId: string;
|
|
455
455
|
tenantExternalId: string | null;
|
|
456
456
|
}, {
|
|
457
|
+
externalId: string;
|
|
458
|
+
channel: "email" | "slack" | "teams" | "whatsapp";
|
|
457
459
|
accountId: string;
|
|
458
460
|
grantId: string;
|
|
459
|
-
channel: "email" | "slack" | "teams" | "whatsapp";
|
|
460
|
-
externalId: string;
|
|
461
461
|
tenantExternalId?: string | null | undefined;
|
|
462
462
|
}>;
|
|
463
463
|
export declare const approvalListSchema: z.ZodObject<{
|
|
@@ -472,27 +472,27 @@ export declare const approvalListSchema: z.ZodObject<{
|
|
|
472
472
|
expiringSoon: z.ZodOptional<z.ZodEffects<z.ZodEnum<["true", "false"]>, boolean, "true" | "false">>;
|
|
473
473
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
474
474
|
}, "strip", z.ZodTypeAny, {
|
|
475
|
-
view: "inbox" | "history";
|
|
476
|
-
outcome: "failed" | "expired" | "approved" | "denied" | "cancelled" | "unknown" | "all";
|
|
477
475
|
limit: number;
|
|
476
|
+
view: "inbox" | "history";
|
|
477
|
+
outcome: "failed" | "expired" | "unknown" | "all" | "approved" | "denied" | "cancelled";
|
|
478
478
|
source?: "workbench" | "bot" | "studio" | "sdk" | "mcp" | undefined;
|
|
479
|
-
sourceId?: string | undefined;
|
|
480
479
|
sessionId?: string | undefined;
|
|
480
|
+
cursor?: string | undefined;
|
|
481
|
+
sourceId?: string | undefined;
|
|
481
482
|
sessionIds?: string[] | undefined;
|
|
482
483
|
search?: string | undefined;
|
|
483
|
-
cursor?: string | undefined;
|
|
484
484
|
expiringSoon?: boolean | undefined;
|
|
485
485
|
}, {
|
|
486
486
|
source?: "workbench" | "bot" | "studio" | "sdk" | "mcp" | undefined;
|
|
487
|
+
sessionId?: string | undefined;
|
|
488
|
+
limit?: number | undefined;
|
|
489
|
+
cursor?: string | undefined;
|
|
487
490
|
view?: "inbox" | "history" | undefined;
|
|
488
|
-
outcome?: "failed" | "expired" | "
|
|
491
|
+
outcome?: "failed" | "expired" | "unknown" | "all" | "approved" | "denied" | "cancelled" | undefined;
|
|
489
492
|
sourceId?: string | undefined;
|
|
490
|
-
sessionId?: string | undefined;
|
|
491
493
|
sessionIds?: unknown;
|
|
492
494
|
search?: string | undefined;
|
|
493
|
-
cursor?: string | undefined;
|
|
494
495
|
expiringSoon?: "true" | "false" | undefined;
|
|
495
|
-
limit?: number | undefined;
|
|
496
496
|
}>;
|
|
497
497
|
export type ApprovalListQuery = z.infer<typeof approvalListSchema>;
|
|
498
498
|
export type ApprovalDeliveryStatus = 'queued' | 'sending' | 'sent' | 'delivered' | 'failed' | 'cancelled' | 'unknown';
|