@n8n/api-types 1.38.0 → 1.38.1
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/dist/agents/agent-interaction.schema.d.ts +7 -0
- package/dist/agents/sub-agent.schema.d.ts +1 -1
- package/dist/build.tsbuildinfo +1 -1
- package/dist/dto/instance-ai/instance-ai-confirm-request.dto.d.ts +14 -0
- package/dist/dto/instance-ai/instance-ai-confirm-request.dto.js +5 -0
- package/dist/dto/instance-ai/instance-ai-confirm-request.dto.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +8 -5
- package/dist/index.js.map +1 -1
- package/dist/schemas/agent-run-reducer.js +2 -23
- package/dist/schemas/agent-run-reducer.js.map +1 -1
- package/dist/schemas/instance-ai.schema.d.ts +112 -28
- package/dist/schemas/instance-ai.schema.js +30 -3
- package/dist/schemas/instance-ai.schema.js.map +1 -1
- package/package.json +4 -4
|
@@ -9,6 +9,7 @@ export type InstanceAiCredits = {
|
|
|
9
9
|
export declare const AI_GATEWAY_MANAGED_TAG = "__AI_GATEWAY_MANAGED__";
|
|
10
10
|
export declare function buildRunWorkflowSessionGrantKey(workflowId: string): string;
|
|
11
11
|
export declare function buildUpdateWorkflowSessionGrantKey(workflowId: string): string;
|
|
12
|
+
export declare function buildCredentialDestinationGrantKey(workflowId: string, origin: string): string;
|
|
12
13
|
export declare function buildDataTablesSessionGrantKey(action: string): string;
|
|
13
14
|
export declare function buildSetupSkipGrantKey(subject: string): string;
|
|
14
15
|
export declare function parseSetupSkipGrants(keys: ReadonlySet<string>): Set<string>;
|
|
@@ -314,6 +315,7 @@ export declare const credentialSetupHintSchema: z.ZodObject<{
|
|
|
314
315
|
testUrl: z.ZodOptional<z.ZodString>;
|
|
315
316
|
acceptedStatusCodes: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
316
317
|
serviceHost: z.ZodOptional<z.ZodString>;
|
|
318
|
+
serviceOrigin: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
317
319
|
}, "strip", z.ZodTypeAny, {
|
|
318
320
|
template: {
|
|
319
321
|
headers?: Record<string, string> | undefined;
|
|
@@ -332,6 +334,7 @@ export declare const credentialSetupHintSchema: z.ZodObject<{
|
|
|
332
334
|
testUrl?: string | undefined;
|
|
333
335
|
acceptedStatusCodes?: number[] | undefined;
|
|
334
336
|
serviceHost?: string | undefined;
|
|
337
|
+
serviceOrigin?: string | undefined;
|
|
335
338
|
}, {
|
|
336
339
|
template: {
|
|
337
340
|
headers?: Record<string, string> | undefined;
|
|
@@ -350,6 +353,7 @@ export declare const credentialSetupHintSchema: z.ZodObject<{
|
|
|
350
353
|
testUrl?: string | undefined;
|
|
351
354
|
acceptedStatusCodes?: number[] | undefined;
|
|
352
355
|
serviceHost?: string | undefined;
|
|
356
|
+
serviceOrigin?: string | undefined;
|
|
353
357
|
}>;
|
|
354
358
|
export type InstanceAiCredentialSetupHint = z.infer<typeof credentialSetupHintSchema>;
|
|
355
359
|
export declare const credentialRequestSchema: z.ZodObject<{
|
|
@@ -404,6 +408,7 @@ export declare const credentialRequestSchema: z.ZodObject<{
|
|
|
404
408
|
testUrl: z.ZodOptional<z.ZodString>;
|
|
405
409
|
acceptedStatusCodes: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
406
410
|
serviceHost: z.ZodOptional<z.ZodString>;
|
|
411
|
+
serviceOrigin: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
407
412
|
}, "strip", z.ZodTypeAny, {
|
|
408
413
|
template: {
|
|
409
414
|
headers?: Record<string, string> | undefined;
|
|
@@ -422,6 +427,7 @@ export declare const credentialRequestSchema: z.ZodObject<{
|
|
|
422
427
|
testUrl?: string | undefined;
|
|
423
428
|
acceptedStatusCodes?: number[] | undefined;
|
|
424
429
|
serviceHost?: string | undefined;
|
|
430
|
+
serviceOrigin?: string | undefined;
|
|
425
431
|
}, {
|
|
426
432
|
template: {
|
|
427
433
|
headers?: Record<string, string> | undefined;
|
|
@@ -440,6 +446,7 @@ export declare const credentialRequestSchema: z.ZodObject<{
|
|
|
440
446
|
testUrl?: string | undefined;
|
|
441
447
|
acceptedStatusCodes?: number[] | undefined;
|
|
442
448
|
serviceHost?: string | undefined;
|
|
449
|
+
serviceOrigin?: string | undefined;
|
|
443
450
|
}>>;
|
|
444
451
|
preferNew: z.ZodOptional<z.ZodBoolean>;
|
|
445
452
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -468,6 +475,7 @@ export declare const credentialRequestSchema: z.ZodObject<{
|
|
|
468
475
|
testUrl?: string | undefined;
|
|
469
476
|
acceptedStatusCodes?: number[] | undefined;
|
|
470
477
|
serviceHost?: string | undefined;
|
|
478
|
+
serviceOrigin?: string | undefined;
|
|
471
479
|
} | undefined;
|
|
472
480
|
preferNew?: boolean | undefined;
|
|
473
481
|
}, {
|
|
@@ -496,6 +504,7 @@ export declare const credentialRequestSchema: z.ZodObject<{
|
|
|
496
504
|
testUrl?: string | undefined;
|
|
497
505
|
acceptedStatusCodes?: number[] | undefined;
|
|
498
506
|
serviceHost?: string | undefined;
|
|
507
|
+
serviceOrigin?: string | undefined;
|
|
499
508
|
} | undefined;
|
|
500
509
|
preferNew?: boolean | undefined;
|
|
501
510
|
}>;
|
|
@@ -508,6 +517,26 @@ export declare const credentialFlowSchema: z.ZodObject<{
|
|
|
508
517
|
stage: "finalize" | "generic";
|
|
509
518
|
}>;
|
|
510
519
|
export type InstanceAiCredentialFlow = z.infer<typeof credentialFlowSchema>;
|
|
520
|
+
export declare const credentialDestinationSchema: z.ZodObject<{
|
|
521
|
+
origin: z.ZodEffects<z.ZodString, string, string>;
|
|
522
|
+
nodeNames: z.ZodArray<z.ZodString, "many">;
|
|
523
|
+
}, "strip", z.ZodTypeAny, {
|
|
524
|
+
origin: string;
|
|
525
|
+
nodeNames: string[];
|
|
526
|
+
}, {
|
|
527
|
+
origin: string;
|
|
528
|
+
nodeNames: string[];
|
|
529
|
+
}>;
|
|
530
|
+
export type InstanceAiCredentialDestination = z.infer<typeof credentialDestinationSchema>;
|
|
531
|
+
export declare const credentialDestinationDecisionSchema: z.ZodObject<Pick<{
|
|
532
|
+
origin: z.ZodEffects<z.ZodString, string, string>;
|
|
533
|
+
nodeNames: z.ZodArray<z.ZodString, "many">;
|
|
534
|
+
}, "origin">, "strip", z.ZodTypeAny, {
|
|
535
|
+
origin: string;
|
|
536
|
+
}, {
|
|
537
|
+
origin: string;
|
|
538
|
+
}>;
|
|
539
|
+
export type InstanceAiCredentialDestinationDecision = z.infer<typeof credentialDestinationDecisionSchema>;
|
|
511
540
|
export declare const workflowSetupNodeSchema: z.ZodObject<{
|
|
512
541
|
node: z.ZodObject<{
|
|
513
542
|
name: z.ZodString;
|
|
@@ -618,6 +647,7 @@ export declare const workflowSetupNodeSchema: z.ZodObject<{
|
|
|
618
647
|
testUrl: z.ZodOptional<z.ZodString>;
|
|
619
648
|
acceptedStatusCodes: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
620
649
|
serviceHost: z.ZodOptional<z.ZodString>;
|
|
650
|
+
serviceOrigin: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
621
651
|
}, "strip", z.ZodTypeAny, {
|
|
622
652
|
template: {
|
|
623
653
|
headers?: Record<string, string> | undefined;
|
|
@@ -636,6 +666,7 @@ export declare const workflowSetupNodeSchema: z.ZodObject<{
|
|
|
636
666
|
testUrl?: string | undefined;
|
|
637
667
|
acceptedStatusCodes?: number[] | undefined;
|
|
638
668
|
serviceHost?: string | undefined;
|
|
669
|
+
serviceOrigin?: string | undefined;
|
|
639
670
|
}, {
|
|
640
671
|
template: {
|
|
641
672
|
headers?: Record<string, string> | undefined;
|
|
@@ -654,6 +685,7 @@ export declare const workflowSetupNodeSchema: z.ZodObject<{
|
|
|
654
685
|
testUrl?: string | undefined;
|
|
655
686
|
acceptedStatusCodes?: number[] | undefined;
|
|
656
687
|
serviceHost?: string | undefined;
|
|
688
|
+
serviceOrigin?: string | undefined;
|
|
657
689
|
}>>;
|
|
658
690
|
isTrigger: z.ZodBoolean;
|
|
659
691
|
isFirstTrigger: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -776,6 +808,7 @@ export declare const workflowSetupNodeSchema: z.ZodObject<{
|
|
|
776
808
|
testUrl?: string | undefined;
|
|
777
809
|
acceptedStatusCodes?: number[] | undefined;
|
|
778
810
|
serviceHost?: string | undefined;
|
|
811
|
+
serviceOrigin?: string | undefined;
|
|
779
812
|
} | undefined;
|
|
780
813
|
isTrigger: boolean;
|
|
781
814
|
isFirstTrigger?: boolean | undefined;
|
|
@@ -850,6 +883,7 @@ export declare const workflowSetupNodeSchema: z.ZodObject<{
|
|
|
850
883
|
testUrl?: string | undefined;
|
|
851
884
|
acceptedStatusCodes?: number[] | undefined;
|
|
852
885
|
serviceHost?: string | undefined;
|
|
886
|
+
serviceOrigin?: string | undefined;
|
|
853
887
|
} | undefined;
|
|
854
888
|
isTrigger: boolean;
|
|
855
889
|
isFirstTrigger?: boolean | undefined;
|
|
@@ -1164,6 +1198,7 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
|
|
|
1164
1198
|
testUrl: z.ZodOptional<z.ZodString>;
|
|
1165
1199
|
acceptedStatusCodes: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
1166
1200
|
serviceHost: z.ZodOptional<z.ZodString>;
|
|
1201
|
+
serviceOrigin: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
1167
1202
|
}, "strip", z.ZodTypeAny, {
|
|
1168
1203
|
template: {
|
|
1169
1204
|
headers?: Record<string, string> | undefined;
|
|
@@ -1182,6 +1217,7 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
|
|
|
1182
1217
|
testUrl?: string | undefined;
|
|
1183
1218
|
acceptedStatusCodes?: number[] | undefined;
|
|
1184
1219
|
serviceHost?: string | undefined;
|
|
1220
|
+
serviceOrigin?: string | undefined;
|
|
1185
1221
|
}, {
|
|
1186
1222
|
template: {
|
|
1187
1223
|
headers?: Record<string, string> | undefined;
|
|
@@ -1200,6 +1236,7 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
|
|
|
1200
1236
|
testUrl?: string | undefined;
|
|
1201
1237
|
acceptedStatusCodes?: number[] | undefined;
|
|
1202
1238
|
serviceHost?: string | undefined;
|
|
1239
|
+
serviceOrigin?: string | undefined;
|
|
1203
1240
|
}>>;
|
|
1204
1241
|
preferNew: z.ZodOptional<z.ZodBoolean>;
|
|
1205
1242
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1228,6 +1265,7 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
|
|
|
1228
1265
|
testUrl?: string | undefined;
|
|
1229
1266
|
acceptedStatusCodes?: number[] | undefined;
|
|
1230
1267
|
serviceHost?: string | undefined;
|
|
1268
|
+
serviceOrigin?: string | undefined;
|
|
1231
1269
|
} | undefined;
|
|
1232
1270
|
preferNew?: boolean | undefined;
|
|
1233
1271
|
}, {
|
|
@@ -1256,6 +1294,7 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
|
|
|
1256
1294
|
testUrl?: string | undefined;
|
|
1257
1295
|
acceptedStatusCodes?: number[] | undefined;
|
|
1258
1296
|
serviceHost?: string | undefined;
|
|
1297
|
+
serviceOrigin?: string | undefined;
|
|
1259
1298
|
} | undefined;
|
|
1260
1299
|
preferNew?: boolean | undefined;
|
|
1261
1300
|
}>, "many">>;
|
|
@@ -1363,6 +1402,16 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
|
|
|
1363
1402
|
}, {
|
|
1364
1403
|
stage: "finalize" | "generic";
|
|
1365
1404
|
}>>;
|
|
1405
|
+
credentialDestination: z.ZodOptional<z.ZodObject<{
|
|
1406
|
+
origin: z.ZodEffects<z.ZodString, string, string>;
|
|
1407
|
+
nodeNames: z.ZodArray<z.ZodString, "many">;
|
|
1408
|
+
}, "strip", z.ZodTypeAny, {
|
|
1409
|
+
origin: string;
|
|
1410
|
+
nodeNames: string[];
|
|
1411
|
+
}, {
|
|
1412
|
+
origin: string;
|
|
1413
|
+
nodeNames: string[];
|
|
1414
|
+
}>>;
|
|
1366
1415
|
setupRequests: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1367
1416
|
node: z.ZodObject<{
|
|
1368
1417
|
name: z.ZodString;
|
|
@@ -1473,6 +1522,7 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
|
|
|
1473
1522
|
testUrl: z.ZodOptional<z.ZodString>;
|
|
1474
1523
|
acceptedStatusCodes: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
1475
1524
|
serviceHost: z.ZodOptional<z.ZodString>;
|
|
1525
|
+
serviceOrigin: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
1476
1526
|
}, "strip", z.ZodTypeAny, {
|
|
1477
1527
|
template: {
|
|
1478
1528
|
headers?: Record<string, string> | undefined;
|
|
@@ -1491,6 +1541,7 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
|
|
|
1491
1541
|
testUrl?: string | undefined;
|
|
1492
1542
|
acceptedStatusCodes?: number[] | undefined;
|
|
1493
1543
|
serviceHost?: string | undefined;
|
|
1544
|
+
serviceOrigin?: string | undefined;
|
|
1494
1545
|
}, {
|
|
1495
1546
|
template: {
|
|
1496
1547
|
headers?: Record<string, string> | undefined;
|
|
@@ -1509,6 +1560,7 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
|
|
|
1509
1560
|
testUrl?: string | undefined;
|
|
1510
1561
|
acceptedStatusCodes?: number[] | undefined;
|
|
1511
1562
|
serviceHost?: string | undefined;
|
|
1563
|
+
serviceOrigin?: string | undefined;
|
|
1512
1564
|
}>>;
|
|
1513
1565
|
isTrigger: z.ZodBoolean;
|
|
1514
1566
|
isFirstTrigger: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1631,6 +1683,7 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
|
|
|
1631
1683
|
testUrl?: string | undefined;
|
|
1632
1684
|
acceptedStatusCodes?: number[] | undefined;
|
|
1633
1685
|
serviceHost?: string | undefined;
|
|
1686
|
+
serviceOrigin?: string | undefined;
|
|
1634
1687
|
} | undefined;
|
|
1635
1688
|
isTrigger: boolean;
|
|
1636
1689
|
isFirstTrigger?: boolean | undefined;
|
|
@@ -1705,6 +1758,7 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
|
|
|
1705
1758
|
testUrl?: string | undefined;
|
|
1706
1759
|
acceptedStatusCodes?: number[] | undefined;
|
|
1707
1760
|
serviceHost?: string | undefined;
|
|
1761
|
+
serviceOrigin?: string | undefined;
|
|
1708
1762
|
} | undefined;
|
|
1709
1763
|
isTrigger: boolean;
|
|
1710
1764
|
isFirstTrigger?: boolean | undefined;
|
|
@@ -1839,6 +1893,7 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
|
|
|
1839
1893
|
testUrl?: string | undefined;
|
|
1840
1894
|
acceptedStatusCodes?: number[] | undefined;
|
|
1841
1895
|
serviceHost?: string | undefined;
|
|
1896
|
+
serviceOrigin?: string | undefined;
|
|
1842
1897
|
} | undefined;
|
|
1843
1898
|
preferNew?: boolean | undefined;
|
|
1844
1899
|
}[] | undefined;
|
|
@@ -1880,6 +1935,10 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
|
|
|
1880
1935
|
credentialFlow?: {
|
|
1881
1936
|
stage: "finalize" | "generic";
|
|
1882
1937
|
} | undefined;
|
|
1938
|
+
credentialDestination?: {
|
|
1939
|
+
origin: string;
|
|
1940
|
+
nodeNames: string[];
|
|
1941
|
+
} | undefined;
|
|
1883
1942
|
setupRequests?: {
|
|
1884
1943
|
node: {
|
|
1885
1944
|
name: string;
|
|
@@ -1920,6 +1979,7 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
|
|
|
1920
1979
|
testUrl?: string | undefined;
|
|
1921
1980
|
acceptedStatusCodes?: number[] | undefined;
|
|
1922
1981
|
serviceHost?: string | undefined;
|
|
1982
|
+
serviceOrigin?: string | undefined;
|
|
1923
1983
|
} | undefined;
|
|
1924
1984
|
isTrigger: boolean;
|
|
1925
1985
|
isFirstTrigger?: boolean | undefined;
|
|
@@ -2013,6 +2073,7 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
|
|
|
2013
2073
|
testUrl?: string | undefined;
|
|
2014
2074
|
acceptedStatusCodes?: number[] | undefined;
|
|
2015
2075
|
serviceHost?: string | undefined;
|
|
2076
|
+
serviceOrigin?: string | undefined;
|
|
2016
2077
|
} | undefined;
|
|
2017
2078
|
preferNew?: boolean | undefined;
|
|
2018
2079
|
}[] | undefined;
|
|
@@ -2054,6 +2115,10 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
|
|
|
2054
2115
|
credentialFlow?: {
|
|
2055
2116
|
stage: "finalize" | "generic";
|
|
2056
2117
|
} | undefined;
|
|
2118
|
+
credentialDestination?: {
|
|
2119
|
+
origin: string;
|
|
2120
|
+
nodeNames: string[];
|
|
2121
|
+
} | undefined;
|
|
2057
2122
|
setupRequests?: {
|
|
2058
2123
|
node: {
|
|
2059
2124
|
name: string;
|
|
@@ -2094,6 +2159,7 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
|
|
|
2094
2159
|
testUrl?: string | undefined;
|
|
2095
2160
|
acceptedStatusCodes?: number[] | undefined;
|
|
2096
2161
|
serviceHost?: string | undefined;
|
|
2162
|
+
serviceOrigin?: string | undefined;
|
|
2097
2163
|
} | undefined;
|
|
2098
2164
|
isTrigger: boolean;
|
|
2099
2165
|
isFirstTrigger?: boolean | undefined;
|
|
@@ -3592,6 +3658,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
3592
3658
|
testUrl: z.ZodOptional<z.ZodString>;
|
|
3593
3659
|
acceptedStatusCodes: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
3594
3660
|
serviceHost: z.ZodOptional<z.ZodString>;
|
|
3661
|
+
serviceOrigin: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
3595
3662
|
}, "strip", z.ZodTypeAny, {
|
|
3596
3663
|
template: {
|
|
3597
3664
|
headers?: Record<string, string> | undefined;
|
|
@@ -3610,6 +3677,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
3610
3677
|
testUrl?: string | undefined;
|
|
3611
3678
|
acceptedStatusCodes?: number[] | undefined;
|
|
3612
3679
|
serviceHost?: string | undefined;
|
|
3680
|
+
serviceOrigin?: string | undefined;
|
|
3613
3681
|
}, {
|
|
3614
3682
|
template: {
|
|
3615
3683
|
headers?: Record<string, string> | undefined;
|
|
@@ -3628,6 +3696,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
3628
3696
|
testUrl?: string | undefined;
|
|
3629
3697
|
acceptedStatusCodes?: number[] | undefined;
|
|
3630
3698
|
serviceHost?: string | undefined;
|
|
3699
|
+
serviceOrigin?: string | undefined;
|
|
3631
3700
|
}>>;
|
|
3632
3701
|
preferNew: z.ZodOptional<z.ZodBoolean>;
|
|
3633
3702
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -3656,6 +3725,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
3656
3725
|
testUrl?: string | undefined;
|
|
3657
3726
|
acceptedStatusCodes?: number[] | undefined;
|
|
3658
3727
|
serviceHost?: string | undefined;
|
|
3728
|
+
serviceOrigin?: string | undefined;
|
|
3659
3729
|
} | undefined;
|
|
3660
3730
|
preferNew?: boolean | undefined;
|
|
3661
3731
|
}, {
|
|
@@ -3684,6 +3754,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
3684
3754
|
testUrl?: string | undefined;
|
|
3685
3755
|
acceptedStatusCodes?: number[] | undefined;
|
|
3686
3756
|
serviceHost?: string | undefined;
|
|
3757
|
+
serviceOrigin?: string | undefined;
|
|
3687
3758
|
} | undefined;
|
|
3688
3759
|
preferNew?: boolean | undefined;
|
|
3689
3760
|
}>, "many">>;
|
|
@@ -3791,6 +3862,16 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
3791
3862
|
}, {
|
|
3792
3863
|
stage: "finalize" | "generic";
|
|
3793
3864
|
}>>;
|
|
3865
|
+
credentialDestination: z.ZodOptional<z.ZodObject<{
|
|
3866
|
+
origin: z.ZodEffects<z.ZodString, string, string>;
|
|
3867
|
+
nodeNames: z.ZodArray<z.ZodString, "many">;
|
|
3868
|
+
}, "strip", z.ZodTypeAny, {
|
|
3869
|
+
origin: string;
|
|
3870
|
+
nodeNames: string[];
|
|
3871
|
+
}, {
|
|
3872
|
+
origin: string;
|
|
3873
|
+
nodeNames: string[];
|
|
3874
|
+
}>>;
|
|
3794
3875
|
setupRequests: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3795
3876
|
node: z.ZodObject<{
|
|
3796
3877
|
name: z.ZodString;
|
|
@@ -3901,6 +3982,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
3901
3982
|
testUrl: z.ZodOptional<z.ZodString>;
|
|
3902
3983
|
acceptedStatusCodes: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
3903
3984
|
serviceHost: z.ZodOptional<z.ZodString>;
|
|
3985
|
+
serviceOrigin: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
3904
3986
|
}, "strip", z.ZodTypeAny, {
|
|
3905
3987
|
template: {
|
|
3906
3988
|
headers?: Record<string, string> | undefined;
|
|
@@ -3919,6 +4001,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
3919
4001
|
testUrl?: string | undefined;
|
|
3920
4002
|
acceptedStatusCodes?: number[] | undefined;
|
|
3921
4003
|
serviceHost?: string | undefined;
|
|
4004
|
+
serviceOrigin?: string | undefined;
|
|
3922
4005
|
}, {
|
|
3923
4006
|
template: {
|
|
3924
4007
|
headers?: Record<string, string> | undefined;
|
|
@@ -3937,6 +4020,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
3937
4020
|
testUrl?: string | undefined;
|
|
3938
4021
|
acceptedStatusCodes?: number[] | undefined;
|
|
3939
4022
|
serviceHost?: string | undefined;
|
|
4023
|
+
serviceOrigin?: string | undefined;
|
|
3940
4024
|
}>>;
|
|
3941
4025
|
isTrigger: z.ZodBoolean;
|
|
3942
4026
|
isFirstTrigger: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -4059,6 +4143,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
4059
4143
|
testUrl?: string | undefined;
|
|
4060
4144
|
acceptedStatusCodes?: number[] | undefined;
|
|
4061
4145
|
serviceHost?: string | undefined;
|
|
4146
|
+
serviceOrigin?: string | undefined;
|
|
4062
4147
|
} | undefined;
|
|
4063
4148
|
isTrigger: boolean;
|
|
4064
4149
|
isFirstTrigger?: boolean | undefined;
|
|
@@ -4133,6 +4218,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
4133
4218
|
testUrl?: string | undefined;
|
|
4134
4219
|
acceptedStatusCodes?: number[] | undefined;
|
|
4135
4220
|
serviceHost?: string | undefined;
|
|
4221
|
+
serviceOrigin?: string | undefined;
|
|
4136
4222
|
} | undefined;
|
|
4137
4223
|
isTrigger: boolean;
|
|
4138
4224
|
isFirstTrigger?: boolean | undefined;
|
|
@@ -4267,6 +4353,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
4267
4353
|
testUrl?: string | undefined;
|
|
4268
4354
|
acceptedStatusCodes?: number[] | undefined;
|
|
4269
4355
|
serviceHost?: string | undefined;
|
|
4356
|
+
serviceOrigin?: string | undefined;
|
|
4270
4357
|
} | undefined;
|
|
4271
4358
|
preferNew?: boolean | undefined;
|
|
4272
4359
|
}[] | undefined;
|
|
@@ -4308,6 +4395,10 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
4308
4395
|
credentialFlow?: {
|
|
4309
4396
|
stage: "finalize" | "generic";
|
|
4310
4397
|
} | undefined;
|
|
4398
|
+
credentialDestination?: {
|
|
4399
|
+
origin: string;
|
|
4400
|
+
nodeNames: string[];
|
|
4401
|
+
} | undefined;
|
|
4311
4402
|
setupRequests?: {
|
|
4312
4403
|
node: {
|
|
4313
4404
|
name: string;
|
|
@@ -4348,6 +4439,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
4348
4439
|
testUrl?: string | undefined;
|
|
4349
4440
|
acceptedStatusCodes?: number[] | undefined;
|
|
4350
4441
|
serviceHost?: string | undefined;
|
|
4442
|
+
serviceOrigin?: string | undefined;
|
|
4351
4443
|
} | undefined;
|
|
4352
4444
|
isTrigger: boolean;
|
|
4353
4445
|
isFirstTrigger?: boolean | undefined;
|
|
@@ -4441,6 +4533,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
4441
4533
|
testUrl?: string | undefined;
|
|
4442
4534
|
acceptedStatusCodes?: number[] | undefined;
|
|
4443
4535
|
serviceHost?: string | undefined;
|
|
4536
|
+
serviceOrigin?: string | undefined;
|
|
4444
4537
|
} | undefined;
|
|
4445
4538
|
preferNew?: boolean | undefined;
|
|
4446
4539
|
}[] | undefined;
|
|
@@ -4482,6 +4575,10 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
4482
4575
|
credentialFlow?: {
|
|
4483
4576
|
stage: "finalize" | "generic";
|
|
4484
4577
|
} | undefined;
|
|
4578
|
+
credentialDestination?: {
|
|
4579
|
+
origin: string;
|
|
4580
|
+
nodeNames: string[];
|
|
4581
|
+
} | undefined;
|
|
4485
4582
|
setupRequests?: {
|
|
4486
4583
|
node: {
|
|
4487
4584
|
name: string;
|
|
@@ -4522,6 +4619,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
4522
4619
|
testUrl?: string | undefined;
|
|
4523
4620
|
acceptedStatusCodes?: number[] | undefined;
|
|
4524
4621
|
serviceHost?: string | undefined;
|
|
4622
|
+
serviceOrigin?: string | undefined;
|
|
4525
4623
|
} | undefined;
|
|
4526
4624
|
isTrigger: boolean;
|
|
4527
4625
|
isFirstTrigger?: boolean | undefined;
|
|
@@ -4623,6 +4721,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
4623
4721
|
testUrl?: string | undefined;
|
|
4624
4722
|
acceptedStatusCodes?: number[] | undefined;
|
|
4625
4723
|
serviceHost?: string | undefined;
|
|
4724
|
+
serviceOrigin?: string | undefined;
|
|
4626
4725
|
} | undefined;
|
|
4627
4726
|
preferNew?: boolean | undefined;
|
|
4628
4727
|
}[] | undefined;
|
|
@@ -4664,6 +4763,10 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
4664
4763
|
credentialFlow?: {
|
|
4665
4764
|
stage: "finalize" | "generic";
|
|
4666
4765
|
} | undefined;
|
|
4766
|
+
credentialDestination?: {
|
|
4767
|
+
origin: string;
|
|
4768
|
+
nodeNames: string[];
|
|
4769
|
+
} | undefined;
|
|
4667
4770
|
setupRequests?: {
|
|
4668
4771
|
node: {
|
|
4669
4772
|
name: string;
|
|
@@ -4704,6 +4807,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
4704
4807
|
testUrl?: string | undefined;
|
|
4705
4808
|
acceptedStatusCodes?: number[] | undefined;
|
|
4706
4809
|
serviceHost?: string | undefined;
|
|
4810
|
+
serviceOrigin?: string | undefined;
|
|
4707
4811
|
} | undefined;
|
|
4708
4812
|
isTrigger: boolean;
|
|
4709
4813
|
isFirstTrigger?: boolean | undefined;
|
|
@@ -4805,6 +4909,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
4805
4909
|
testUrl?: string | undefined;
|
|
4806
4910
|
acceptedStatusCodes?: number[] | undefined;
|
|
4807
4911
|
serviceHost?: string | undefined;
|
|
4912
|
+
serviceOrigin?: string | undefined;
|
|
4808
4913
|
} | undefined;
|
|
4809
4914
|
preferNew?: boolean | undefined;
|
|
4810
4915
|
}[] | undefined;
|
|
@@ -4846,6 +4951,10 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
4846
4951
|
credentialFlow?: {
|
|
4847
4952
|
stage: "finalize" | "generic";
|
|
4848
4953
|
} | undefined;
|
|
4954
|
+
credentialDestination?: {
|
|
4955
|
+
origin: string;
|
|
4956
|
+
nodeNames: string[];
|
|
4957
|
+
} | undefined;
|
|
4849
4958
|
setupRequests?: {
|
|
4850
4959
|
node: {
|
|
4851
4960
|
name: string;
|
|
@@ -4886,6 +4995,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
4886
4995
|
testUrl?: string | undefined;
|
|
4887
4996
|
acceptedStatusCodes?: number[] | undefined;
|
|
4888
4997
|
serviceHost?: string | undefined;
|
|
4998
|
+
serviceOrigin?: string | undefined;
|
|
4889
4999
|
} | undefined;
|
|
4890
5000
|
isTrigger: boolean;
|
|
4891
5001
|
isFirstTrigger?: boolean | undefined;
|
|
@@ -6338,35 +6448,9 @@ export declare class InstanceAiThreadMessagesQuery extends InstanceAiThreadMessa
|
|
|
6338
6448
|
export interface InstanceAiSendMessageResponse {
|
|
6339
6449
|
runId: string;
|
|
6340
6450
|
}
|
|
6341
|
-
export
|
|
6342
|
-
requestId: string;
|
|
6343
|
-
inputThreadId?: string;
|
|
6344
|
-
severity: InstanceAiConfirmationSeverity;
|
|
6345
|
-
message: string;
|
|
6346
|
-
targetApproval?: InstanceAiTargetApproval;
|
|
6347
|
-
credentialRequests?: InstanceAiCredentialRequest[];
|
|
6348
|
-
requireUserSelection?: boolean;
|
|
6349
|
-
projectId?: string;
|
|
6350
|
-
inputType?: 'approval' | 'text' | 'questions' | 'plan-review' | 'resource-decision' | 'continue';
|
|
6351
|
-
domainAccess?: DomainAccessMeta;
|
|
6352
|
-
webSearch?: WebSearchMeta;
|
|
6353
|
-
credentialFlow?: InstanceAiCredentialFlow;
|
|
6354
|
-
setupRequests?: InstanceAiWorkflowSetupNode[];
|
|
6355
|
-
workflowId?: string;
|
|
6356
|
-
planItems?: PlannedTaskArg[];
|
|
6357
|
-
questions?: Array<{
|
|
6358
|
-
id: string;
|
|
6359
|
-
question: string;
|
|
6360
|
-
type: 'single' | 'multi' | 'text';
|
|
6361
|
-
options?: string[];
|
|
6362
|
-
}>;
|
|
6363
|
-
introMessage?: string;
|
|
6364
|
-
tasks?: TaskList;
|
|
6365
|
-
resourceDecision?: GatewayConfirmationRequiredPayload;
|
|
6366
|
-
channelConfig?: InstanceAiChannelConfig;
|
|
6367
|
-
mcpConnectRequest?: InstanceAiMcpConnectRequest;
|
|
6451
|
+
export type InstanceAiConfirmation = Omit<InstanceAiConfirmationRequestPayload, 'toolCallId' | 'toolName' | 'args'> & {
|
|
6368
6452
|
expired?: boolean;
|
|
6369
|
-
}
|
|
6453
|
+
};
|
|
6370
6454
|
export interface InstanceAiToolCallState {
|
|
6371
6455
|
toolCallId: string;
|
|
6372
6456
|
toolName: string;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.InstanceAiEvalSeedDataTableRowsRequest = exports.InstanceAiEvalRestoreThreadRequest = exports.instanceAiEvalSeedAgentSchema = exports.instanceAiEvalSeedDataTableSchema = exports.InstanceAiEvalCredentialAllowlistRequest = exports.InstanceAiEvalAgentExecutionRequest = exports.InstanceAiEvalExecutionRequest = exports.CANVAS_NODE_CONTEXT_FLAG = exports.INSTANCE_AI_MCP_CONNECTIONS_ENABLED_VARIANT = exports.INSTANCE_AI_MCP_CONNECTIONS_FLAG = exports.CONFIG_EVALUATIONS_ENABLED_VARIANT = exports.CONFIG_EVALUATIONS_FLAG = exports.EVAL_VENDOR_SDK_INTERCEPTION_FLAG = exports.InstanceAiUserPreferencesUpdateRequest = exports.InstanceAiVerifySearchRequest = void 0;
|
|
3
|
+
exports.confirmationRequestPayloadSchema = exports.instanceAiTargetApprovalSchema = exports.confirmationInputTypeSchema = exports.mcpConnectResumeSchema = exports.mcpConnectRequestSchema = exports.mcpConnectServerSchema = exports.channelConfigSchema = exports.gatewayConfirmationRequiredPayloadSchema = exports.gatewayConfirmationRequiredWirePayloadSchema = exports.instanceGatewayResourceDecisionSchema = exports.GATEWAY_CONFIRMATION_REQUIRED_PREFIX = exports.plannedTaskArgSchema = exports.taskListSchema = exports.taskItemSchema = exports.workflowSetupNodeSchema = exports.credentialDestinationDecisionSchema = exports.credentialDestinationSchema = exports.credentialFlowSchema = exports.credentialRequestSchema = exports.credentialSetupHintSchema = exports.credentialPlaceholderDefSchema = exports.shouldAutoResolveCredential = exports.GENERIC_AUTH_CREDENTIAL_TYPES = exports.TEMPLATED_CUSTOM_AUTH_CREDENTIAL_TYPE = exports.toolErrorPayloadSchema = exports.toolResultPayloadSchema = exports.toolInputStartPayloadSchema = exports.toolCallPayloadSchema = exports.reasoningDeltaPayloadSchema = exports.textDeltaPayloadSchema = exports.agentCompletedPayloadSchema = exports.agentSpawnedPayloadSchema = exports.agentSpawnedTargetResourceSchema = exports.runFinishPayloadSchema = exports.runStartPayloadSchema = exports.UNSAFE_OBJECT_KEYS = exports.webSearchMetaSchema = exports.domainAccessMetaSchema = exports.domainAccessActionSchema = exports.instanceAiAgentKindSchema = exports.instanceAiAgentStatusSchema = exports.instanceAiApprovalResumeSchema = exports.instanceAiConfirmationSeveritySchema = exports.instanceAiRunStatusSchema = exports.INSTANCE_AI_EPHEMERAL_EVENT_TYPES = exports.instanceAiEventTypeSchema = exports.WEB_SEARCH_GRANT_KEY = exports.FETCH_URL_ALLOW_ALL_GRANT_KEY = exports.AI_GATEWAY_MANAGED_TAG = exports.UNLIMITED_CREDITS = void 0;
|
|
4
|
+
exports.instanceAiVerificationFailureSchema = exports.InstanceAiAdminSettingsUpdateRequest = exports.instanceAiConnectionSchema = exports.INSTANCE_AI_CATALOG_PROVIDERS = exports.INSTANCE_AI_SEARCH_CREDENTIAL_TYPES = exports.INSTANCE_AI_MODEL_CREDENTIAL_TYPES = exports.instanceAiSandboxProviderSchema = exports.DEFAULT_INSTANCE_AI_PERMISSIONS = exports.INSTANCE_AI_MEMORY_TASK_WAIT_TIMEOUT_MS = exports.InstanceAiThreadMessagesQuery = exports.INSTANCE_AI_THREAD_MESSAGES_MAX_PAGE = exports.INSTANCE_AI_THREAD_MESSAGES_MAX_LIMIT = exports.INSTANCE_AI_THREAD_MESSAGES_DEFAULT_LIMIT = exports.InstanceAiEventsQuery = exports.InstanceAiGatewayEventsQuery = exports.instanceAiGatewayKeySchema = exports.InstanceAiEnsureThreadRequest = exports.INSTANCE_AI_THREAD_ORIGINS = exports.INSTANCE_AI_THREAD_SOURCE_FALLBACK = exports.INSTANCE_AI_THREAD_SOURCES = exports.InstanceAiCorrectTaskRequest = exports.InstanceAiSendMessageRequest = exports.instanceAiHandoffContextSchema = exports.instanceAiAgentPreviewHandoffContextSchema = exports.instanceAiCredentialHandoffContextSchema = exports.instanceAiAttachmentSchema = exports.instanceAiResourceAttachmentSchema = exports.instanceAiNodesAttachmentSchema = exports.instanceAiAgentAttachmentSchema = exports.instanceAiWorkflowAttachmentSchema = exports.instanceAiFileAttachmentSchema = exports.MAX_TOTAL_ATTACHMENT_DECODED_BYTES = exports.MAX_ATTACHMENT_DECODED_BYTES = exports.MAX_TOTAL_ATTACHMENT_BASE64_BYTES = exports.MAX_ATTACHMENT_BASE64_BYTES = exports.instanceAiEventSchema = exports.threadTitleUpdatedPayloadSchema = exports.tasksUpdatePayloadSchema = exports.InstanceAiFilesystemResponseDto = exports.filesystemRequestPayloadSchema = exports.InstanceAiGatewayCreateCredentialDto = exports.InstanceAiGatewayCapabilitiesDto = exports.toolCategorySchema = exports.mcpToolCallResultSchema = exports.mcpToolCallRequestSchema = exports.mcpToolSchema = exports.mcpToolAnnotationsSchema = exports.errorPayloadSchema = exports.INSTANCE_AI_ERROR_CODES = exports.statusPayloadSchema = void 0;
|
|
5
|
+
exports.InstanceAiEvalSeedDataTableRowsRequest = exports.InstanceAiEvalRestoreThreadRequest = exports.instanceAiEvalSeedAgentSchema = exports.instanceAiEvalSeedDataTableSchema = exports.InstanceAiEvalCredentialAllowlistRequest = exports.InstanceAiEvalAgentExecutionRequest = exports.InstanceAiEvalExecutionRequest = exports.CANVAS_NODE_CONTEXT_FLAG = exports.INSTANCE_AI_MCP_CONNECTIONS_ENABLED_VARIANT = exports.INSTANCE_AI_MCP_CONNECTIONS_FLAG = exports.CONFIG_EVALUATIONS_ENABLED_VARIANT = exports.CONFIG_EVALUATIONS_FLAG = exports.EVAL_VENDOR_SDK_INTERCEPTION_FLAG = exports.InstanceAiUserPreferencesUpdateRequest = exports.InstanceAiVerifySearchRequest = exports.InstanceAiVerifySandboxRequest = exports.InstanceAiVerifyModelRequest = void 0;
|
|
6
6
|
exports.buildRunWorkflowSessionGrantKey = buildRunWorkflowSessionGrantKey;
|
|
7
7
|
exports.buildUpdateWorkflowSessionGrantKey = buildUpdateWorkflowSessionGrantKey;
|
|
8
|
+
exports.buildCredentialDestinationGrantKey = buildCredentialDestinationGrantKey;
|
|
8
9
|
exports.buildDataTablesSessionGrantKey = buildDataTablesSessionGrantKey;
|
|
9
10
|
exports.buildSetupSkipGrantKey = buildSetupSkipGrantKey;
|
|
10
11
|
exports.parseSetupSkipGrants = parseSetupSkipGrants;
|
|
@@ -35,6 +36,9 @@ function buildRunWorkflowSessionGrantKey(workflowId) {
|
|
|
35
36
|
function buildUpdateWorkflowSessionGrantKey(workflowId) {
|
|
36
37
|
return `workflows:update:${workflowId}`;
|
|
37
38
|
}
|
|
39
|
+
function buildCredentialDestinationGrantKey(workflowId, origin) {
|
|
40
|
+
return `credential-destination:${encodeURIComponent(workflowId)}:${encodeURIComponent(origin)}`;
|
|
41
|
+
}
|
|
38
42
|
function buildDataTablesSessionGrantKey(action) {
|
|
39
43
|
return `data-tables:${action}`;
|
|
40
44
|
}
|
|
@@ -215,6 +219,18 @@ exports.credentialPlaceholderDefSchema = zod_1.z.object({
|
|
|
215
219
|
type: zod_1.z.enum(['password', 'plain']).optional(),
|
|
216
220
|
optional: zod_1.z.boolean().optional(),
|
|
217
221
|
});
|
|
222
|
+
const exactHttpOriginSchema = zod_1.z
|
|
223
|
+
.string()
|
|
224
|
+
.max(300)
|
|
225
|
+
.refine((value) => {
|
|
226
|
+
try {
|
|
227
|
+
const url = new URL(value);
|
|
228
|
+
return ['http:', 'https:'].includes(url.protocol) && url.origin === value;
|
|
229
|
+
}
|
|
230
|
+
catch {
|
|
231
|
+
return false;
|
|
232
|
+
}
|
|
233
|
+
}, 'Expected an exact HTTP origin');
|
|
218
234
|
exports.credentialSetupHintSchema = zod_1.z.object({
|
|
219
235
|
template: zod_1.z.object({
|
|
220
236
|
headers: zod_1.z.record(zod_1.z.string()).optional(),
|
|
@@ -227,6 +243,7 @@ exports.credentialSetupHintSchema = zod_1.z.object({
|
|
|
227
243
|
testUrl: zod_1.z.string().optional(),
|
|
228
244
|
acceptedStatusCodes: zod_1.z.array(zod_1.z.number().int()).max(10).optional(),
|
|
229
245
|
serviceHost: zod_1.z.string().optional(),
|
|
246
|
+
serviceOrigin: exactHttpOriginSchema.optional(),
|
|
230
247
|
});
|
|
231
248
|
exports.credentialRequestSchema = zod_1.z.object({
|
|
232
249
|
credentialType: zod_1.z.string(),
|
|
@@ -239,6 +256,13 @@ exports.credentialRequestSchema = zod_1.z.object({
|
|
|
239
256
|
exports.credentialFlowSchema = zod_1.z.object({
|
|
240
257
|
stage: zod_1.z.enum(['generic', 'finalize']),
|
|
241
258
|
});
|
|
259
|
+
exports.credentialDestinationSchema = zod_1.z.object({
|
|
260
|
+
origin: exactHttpOriginSchema,
|
|
261
|
+
nodeNames: zod_1.z.array(zod_1.z.string().trim().min(1).max(255)).min(1),
|
|
262
|
+
});
|
|
263
|
+
exports.credentialDestinationDecisionSchema = exports.credentialDestinationSchema.pick({
|
|
264
|
+
origin: true,
|
|
265
|
+
});
|
|
242
266
|
exports.workflowSetupNodeSchema = zod_1.z.object({
|
|
243
267
|
node: zod_1.z.object({
|
|
244
268
|
name: zod_1.z.string(),
|
|
@@ -430,6 +454,9 @@ exports.confirmationRequestPayloadSchema = zod_1.z.object({
|
|
|
430
454
|
credentialFlow: exports.credentialFlowSchema
|
|
431
455
|
.optional()
|
|
432
456
|
.describe('Credential flow stage — finalize renders post-verification credential picker with different copy'),
|
|
457
|
+
credentialDestination: exports.credentialDestinationSchema
|
|
458
|
+
.optional()
|
|
459
|
+
.describe('Exact destination that must be approved before a workflow credential setup card opens'),
|
|
433
460
|
setupRequests: zod_1.z
|
|
434
461
|
.array(exports.workflowSetupNodeSchema)
|
|
435
462
|
.optional()
|