@anchrd/colab-sdk 0.1.63 → 0.1.64
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/actions/actions.d.ts +150 -15
- package/dist/operators/operators.d.ts +4 -0
- package/dist/operators/operators.js +3 -0
- package/dist/processes/processes.d.ts +95 -4
- package/dist/processes/processes.js +10 -2
- package/dist/sdk.d.ts +1 -1
- package/dist/sdk.js +1 -1
- package/package.json +1 -1
|
@@ -349,11 +349,6 @@ export declare const ActionItem: z.ZodObject<{
|
|
|
349
349
|
runId: z.ZodTemplateLiteral<`run_${string}`>;
|
|
350
350
|
}, z.core.$strip>>>;
|
|
351
351
|
role: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
352
|
-
process: z.ZodObject<{
|
|
353
|
-
processId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
354
|
-
name: z.ZodString;
|
|
355
|
-
version: z.ZodNumber;
|
|
356
|
-
}, z.core.$strip>;
|
|
357
352
|
step: z.ZodObject<{
|
|
358
353
|
stepId: z.ZodTemplateLiteral<`step_${string}`>;
|
|
359
354
|
name: z.ZodString;
|
|
@@ -397,6 +392,56 @@ export declare const ActionItem: z.ZodObject<{
|
|
|
397
392
|
name: z.ZodNullable<z.ZodString>;
|
|
398
393
|
when: z.ZodString;
|
|
399
394
|
}, z.core.$strip>>;
|
|
395
|
+
process: z.ZodObject<{
|
|
396
|
+
processId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
397
|
+
name: z.ZodString;
|
|
398
|
+
version: z.ZodNumber;
|
|
399
|
+
}, z.core.$strip>;
|
|
400
|
+
candidates: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
401
|
+
step: z.ZodObject<{
|
|
402
|
+
stepId: z.ZodTemplateLiteral<`step_${string}`>;
|
|
403
|
+
name: z.ZodString;
|
|
404
|
+
}, z.core.$strip>;
|
|
405
|
+
action: z.ZodObject<{
|
|
406
|
+
actionId: z.ZodTemplateLiteral<`action_${string}`>;
|
|
407
|
+
name: z.ZodString;
|
|
408
|
+
instruction: z.ZodString;
|
|
409
|
+
}, z.core.$strip>;
|
|
410
|
+
start: z.ZodObject<{
|
|
411
|
+
index: z.ZodNumber;
|
|
412
|
+
place: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
413
|
+
kind: z.ZodLiteral<"task">;
|
|
414
|
+
boardId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
415
|
+
columnId: z.ZodTemplateLiteral<`column_${string}`>;
|
|
416
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
417
|
+
kind: z.ZodLiteral<"goal">;
|
|
418
|
+
goalId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
419
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
420
|
+
kind: z.ZodLiteral<"mention">;
|
|
421
|
+
nodeId: z.ZodOptional<z.ZodTemplateLiteral<`node_${string}`>>;
|
|
422
|
+
}, z.core.$strict>], "kind">;
|
|
423
|
+
name: z.ZodNullable<z.ZodString>;
|
|
424
|
+
when: z.ZodString;
|
|
425
|
+
}, z.core.$strip>;
|
|
426
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
427
|
+
name: z.ZodString;
|
|
428
|
+
nodes: z.ZodArray<z.ZodObject<{
|
|
429
|
+
nodeId: z.ZodNullable<z.ZodTemplateLiteral<`node_${string}`>>;
|
|
430
|
+
kind: z.ZodNullable<z.ZodString>;
|
|
431
|
+
name: z.ZodNullable<z.ZodString>;
|
|
432
|
+
description: z.ZodNullable<z.ZodString>;
|
|
433
|
+
}, z.core.$strip>>;
|
|
434
|
+
}, z.core.$strip>>;
|
|
435
|
+
connections: z.ZodArray<z.ZodObject<{
|
|
436
|
+
to: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
|
|
437
|
+
actionId: z.ZodTemplateLiteral<`action_${string}`>;
|
|
438
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
439
|
+
processId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
440
|
+
}, z.core.$strict>]>>;
|
|
441
|
+
name: z.ZodNullable<z.ZodString>;
|
|
442
|
+
when: z.ZodString;
|
|
443
|
+
}, z.core.$strip>>;
|
|
444
|
+
}, z.core.$strip>>>;
|
|
400
445
|
run: z.ZodNullable<z.ZodObject<{
|
|
401
446
|
runId: z.ZodTemplateLiteral<`run_${string}`>;
|
|
402
447
|
startedAt: z.ZodISODateTime;
|
|
@@ -981,11 +1026,6 @@ export declare const ActionRow: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
981
1026
|
runId: z.ZodTemplateLiteral<`run_${string}`>;
|
|
982
1027
|
}, z.core.$strip>>>;
|
|
983
1028
|
role: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
984
|
-
process: z.ZodObject<{
|
|
985
|
-
processId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
986
|
-
name: z.ZodString;
|
|
987
|
-
version: z.ZodNumber;
|
|
988
|
-
}, z.core.$strip>;
|
|
989
1029
|
step: z.ZodObject<{
|
|
990
1030
|
stepId: z.ZodTemplateLiteral<`step_${string}`>;
|
|
991
1031
|
name: z.ZodString;
|
|
@@ -1029,6 +1069,56 @@ export declare const ActionRow: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1029
1069
|
name: z.ZodNullable<z.ZodString>;
|
|
1030
1070
|
when: z.ZodString;
|
|
1031
1071
|
}, z.core.$strip>>;
|
|
1072
|
+
process: z.ZodObject<{
|
|
1073
|
+
processId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
1074
|
+
name: z.ZodString;
|
|
1075
|
+
version: z.ZodNumber;
|
|
1076
|
+
}, z.core.$strip>;
|
|
1077
|
+
candidates: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1078
|
+
step: z.ZodObject<{
|
|
1079
|
+
stepId: z.ZodTemplateLiteral<`step_${string}`>;
|
|
1080
|
+
name: z.ZodString;
|
|
1081
|
+
}, z.core.$strip>;
|
|
1082
|
+
action: z.ZodObject<{
|
|
1083
|
+
actionId: z.ZodTemplateLiteral<`action_${string}`>;
|
|
1084
|
+
name: z.ZodString;
|
|
1085
|
+
instruction: z.ZodString;
|
|
1086
|
+
}, z.core.$strip>;
|
|
1087
|
+
start: z.ZodObject<{
|
|
1088
|
+
index: z.ZodNumber;
|
|
1089
|
+
place: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1090
|
+
kind: z.ZodLiteral<"task">;
|
|
1091
|
+
boardId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
1092
|
+
columnId: z.ZodTemplateLiteral<`column_${string}`>;
|
|
1093
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1094
|
+
kind: z.ZodLiteral<"goal">;
|
|
1095
|
+
goalId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
1096
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1097
|
+
kind: z.ZodLiteral<"mention">;
|
|
1098
|
+
nodeId: z.ZodOptional<z.ZodTemplateLiteral<`node_${string}`>>;
|
|
1099
|
+
}, z.core.$strict>], "kind">;
|
|
1100
|
+
name: z.ZodNullable<z.ZodString>;
|
|
1101
|
+
when: z.ZodString;
|
|
1102
|
+
}, z.core.$strip>;
|
|
1103
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
1104
|
+
name: z.ZodString;
|
|
1105
|
+
nodes: z.ZodArray<z.ZodObject<{
|
|
1106
|
+
nodeId: z.ZodNullable<z.ZodTemplateLiteral<`node_${string}`>>;
|
|
1107
|
+
kind: z.ZodNullable<z.ZodString>;
|
|
1108
|
+
name: z.ZodNullable<z.ZodString>;
|
|
1109
|
+
description: z.ZodNullable<z.ZodString>;
|
|
1110
|
+
}, z.core.$strip>>;
|
|
1111
|
+
}, z.core.$strip>>;
|
|
1112
|
+
connections: z.ZodArray<z.ZodObject<{
|
|
1113
|
+
to: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
|
|
1114
|
+
actionId: z.ZodTemplateLiteral<`action_${string}`>;
|
|
1115
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1116
|
+
processId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
1117
|
+
}, z.core.$strict>]>>;
|
|
1118
|
+
name: z.ZodNullable<z.ZodString>;
|
|
1119
|
+
when: z.ZodString;
|
|
1120
|
+
}, z.core.$strip>>;
|
|
1121
|
+
}, z.core.$strip>>>;
|
|
1032
1122
|
run: z.ZodNullable<z.ZodObject<{
|
|
1033
1123
|
runId: z.ZodTemplateLiteral<`run_${string}`>;
|
|
1034
1124
|
startedAt: z.ZodISODateTime;
|
|
@@ -1366,11 +1456,6 @@ export declare const ActionList: z.ZodObject<{
|
|
|
1366
1456
|
runId: z.ZodTemplateLiteral<`run_${string}`>;
|
|
1367
1457
|
}, z.core.$strip>>>;
|
|
1368
1458
|
role: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1369
|
-
process: z.ZodObject<{
|
|
1370
|
-
processId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
1371
|
-
name: z.ZodString;
|
|
1372
|
-
version: z.ZodNumber;
|
|
1373
|
-
}, z.core.$strip>;
|
|
1374
1459
|
step: z.ZodObject<{
|
|
1375
1460
|
stepId: z.ZodTemplateLiteral<`step_${string}`>;
|
|
1376
1461
|
name: z.ZodString;
|
|
@@ -1414,6 +1499,56 @@ export declare const ActionList: z.ZodObject<{
|
|
|
1414
1499
|
name: z.ZodNullable<z.ZodString>;
|
|
1415
1500
|
when: z.ZodString;
|
|
1416
1501
|
}, z.core.$strip>>;
|
|
1502
|
+
process: z.ZodObject<{
|
|
1503
|
+
processId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
1504
|
+
name: z.ZodString;
|
|
1505
|
+
version: z.ZodNumber;
|
|
1506
|
+
}, z.core.$strip>;
|
|
1507
|
+
candidates: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1508
|
+
step: z.ZodObject<{
|
|
1509
|
+
stepId: z.ZodTemplateLiteral<`step_${string}`>;
|
|
1510
|
+
name: z.ZodString;
|
|
1511
|
+
}, z.core.$strip>;
|
|
1512
|
+
action: z.ZodObject<{
|
|
1513
|
+
actionId: z.ZodTemplateLiteral<`action_${string}`>;
|
|
1514
|
+
name: z.ZodString;
|
|
1515
|
+
instruction: z.ZodString;
|
|
1516
|
+
}, z.core.$strip>;
|
|
1517
|
+
start: z.ZodObject<{
|
|
1518
|
+
index: z.ZodNumber;
|
|
1519
|
+
place: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1520
|
+
kind: z.ZodLiteral<"task">;
|
|
1521
|
+
boardId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
1522
|
+
columnId: z.ZodTemplateLiteral<`column_${string}`>;
|
|
1523
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1524
|
+
kind: z.ZodLiteral<"goal">;
|
|
1525
|
+
goalId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
1526
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1527
|
+
kind: z.ZodLiteral<"mention">;
|
|
1528
|
+
nodeId: z.ZodOptional<z.ZodTemplateLiteral<`node_${string}`>>;
|
|
1529
|
+
}, z.core.$strict>], "kind">;
|
|
1530
|
+
name: z.ZodNullable<z.ZodString>;
|
|
1531
|
+
when: z.ZodString;
|
|
1532
|
+
}, z.core.$strip>;
|
|
1533
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
1534
|
+
name: z.ZodString;
|
|
1535
|
+
nodes: z.ZodArray<z.ZodObject<{
|
|
1536
|
+
nodeId: z.ZodNullable<z.ZodTemplateLiteral<`node_${string}`>>;
|
|
1537
|
+
kind: z.ZodNullable<z.ZodString>;
|
|
1538
|
+
name: z.ZodNullable<z.ZodString>;
|
|
1539
|
+
description: z.ZodNullable<z.ZodString>;
|
|
1540
|
+
}, z.core.$strip>>;
|
|
1541
|
+
}, z.core.$strip>>;
|
|
1542
|
+
connections: z.ZodArray<z.ZodObject<{
|
|
1543
|
+
to: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
|
|
1544
|
+
actionId: z.ZodTemplateLiteral<`action_${string}`>;
|
|
1545
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1546
|
+
processId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
1547
|
+
}, z.core.$strict>]>>;
|
|
1548
|
+
name: z.ZodNullable<z.ZodString>;
|
|
1549
|
+
when: z.ZodString;
|
|
1550
|
+
}, z.core.$strip>>;
|
|
1551
|
+
}, z.core.$strip>>>;
|
|
1417
1552
|
run: z.ZodNullable<z.ZodObject<{
|
|
1418
1553
|
runId: z.ZodTemplateLiteral<`run_${string}`>;
|
|
1419
1554
|
startedAt: z.ZodISODateTime;
|
|
@@ -2091,6 +2091,7 @@ export declare const ClosureLine: z.ZodObject<{
|
|
|
2091
2091
|
reported: z.ZodBoolean;
|
|
2092
2092
|
processId: z.ZodOptional<z.ZodNullable<z.ZodTemplateLiteral<`node_${string}`>>>;
|
|
2093
2093
|
actionId: z.ZodOptional<z.ZodNullable<z.ZodTemplateLiteral<`action_${string}`>>>;
|
|
2094
|
+
candidates: z.ZodOptional<z.ZodArray<z.ZodTemplateLiteral<`action_${string}`>>>;
|
|
2094
2095
|
standing: z.ZodOptional<z.ZodLiteral<true>>;
|
|
2095
2096
|
outside: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2096
2097
|
nodeId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
@@ -2273,6 +2274,7 @@ export declare const OperatorRun: z.ZodObject<{
|
|
|
2273
2274
|
reported: z.ZodBoolean;
|
|
2274
2275
|
processId: z.ZodOptional<z.ZodNullable<z.ZodTemplateLiteral<`node_${string}`>>>;
|
|
2275
2276
|
actionId: z.ZodOptional<z.ZodNullable<z.ZodTemplateLiteral<`action_${string}`>>>;
|
|
2277
|
+
candidates: z.ZodOptional<z.ZodArray<z.ZodTemplateLiteral<`action_${string}`>>>;
|
|
2276
2278
|
standing: z.ZodOptional<z.ZodLiteral<true>>;
|
|
2277
2279
|
outside: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2278
2280
|
nodeId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
@@ -2455,6 +2457,7 @@ export declare const RunCompleteAnswer: z.ZodObject<{
|
|
|
2455
2457
|
reported: z.ZodBoolean;
|
|
2456
2458
|
processId: z.ZodOptional<z.ZodNullable<z.ZodTemplateLiteral<`node_${string}`>>>;
|
|
2457
2459
|
actionId: z.ZodOptional<z.ZodNullable<z.ZodTemplateLiteral<`action_${string}`>>>;
|
|
2460
|
+
candidates: z.ZodOptional<z.ZodArray<z.ZodTemplateLiteral<`action_${string}`>>>;
|
|
2458
2461
|
standing: z.ZodOptional<z.ZodLiteral<true>>;
|
|
2459
2462
|
outside: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2460
2463
|
nodeId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
@@ -2841,6 +2844,7 @@ export declare const OperatorRunList: z.ZodObject<{
|
|
|
2841
2844
|
reported: z.ZodBoolean;
|
|
2842
2845
|
processId: z.ZodOptional<z.ZodNullable<z.ZodTemplateLiteral<`node_${string}`>>>;
|
|
2843
2846
|
actionId: z.ZodOptional<z.ZodNullable<z.ZodTemplateLiteral<`action_${string}`>>>;
|
|
2847
|
+
candidates: z.ZodOptional<z.ZodArray<z.ZodTemplateLiteral<`action_${string}`>>>;
|
|
2844
2848
|
standing: z.ZodOptional<z.ZodLiteral<true>>;
|
|
2845
2849
|
outside: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2846
2850
|
nodeId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
@@ -1048,6 +1048,9 @@ export const ClosureLine = z.object({
|
|
|
1048
1048
|
// or null where it carried none.
|
|
1049
1049
|
processId: NodeId.nullable().optional(),
|
|
1050
1050
|
actionId: idSchema("action").nullable().optional(),
|
|
1051
|
+
// Where several actions of the process met the row's start (#1337): every candidate, `actionId`
|
|
1052
|
+
// first; the run chose among them, so each counts as inside. Absent where one action met it.
|
|
1053
|
+
candidates: z.array(idSchema("action")).optional(),
|
|
1051
1054
|
// A card that stood in the Operator's Actions already when its run before started (#1338): it did
|
|
1052
1055
|
// not wake this run, so the closure asks for it only once the run wrote it or reported a line for
|
|
1053
1056
|
// it. Absent on every other line.
|
|
@@ -1724,12 +1724,53 @@ export declare const ProcessRoleRun: z.ZodObject<{
|
|
|
1724
1724
|
}, z.core.$strip>>;
|
|
1725
1725
|
}, z.core.$strip>;
|
|
1726
1726
|
export type ProcessRoleRun = z.infer<typeof ProcessRoleRun>;
|
|
1727
|
-
export declare const
|
|
1728
|
-
|
|
1729
|
-
|
|
1727
|
+
export declare const ProcessRoleCandidate: z.ZodObject<{
|
|
1728
|
+
step: z.ZodObject<{
|
|
1729
|
+
stepId: z.ZodTemplateLiteral<`step_${string}`>;
|
|
1730
1730
|
name: z.ZodString;
|
|
1731
|
-
version: z.ZodNumber;
|
|
1732
1731
|
}, z.core.$strip>;
|
|
1732
|
+
action: z.ZodObject<{
|
|
1733
|
+
actionId: z.ZodTemplateLiteral<`action_${string}`>;
|
|
1734
|
+
name: z.ZodString;
|
|
1735
|
+
instruction: z.ZodString;
|
|
1736
|
+
}, z.core.$strip>;
|
|
1737
|
+
start: z.ZodObject<{
|
|
1738
|
+
index: z.ZodNumber;
|
|
1739
|
+
place: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1740
|
+
kind: z.ZodLiteral<"task">;
|
|
1741
|
+
boardId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
1742
|
+
columnId: z.ZodTemplateLiteral<`column_${string}`>;
|
|
1743
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1744
|
+
kind: z.ZodLiteral<"goal">;
|
|
1745
|
+
goalId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
1746
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1747
|
+
kind: z.ZodLiteral<"mention">;
|
|
1748
|
+
nodeId: z.ZodOptional<z.ZodTemplateLiteral<`node_${string}`>>;
|
|
1749
|
+
}, z.core.$strict>], "kind">;
|
|
1750
|
+
name: z.ZodNullable<z.ZodString>;
|
|
1751
|
+
when: z.ZodString;
|
|
1752
|
+
}, z.core.$strip>;
|
|
1753
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
1754
|
+
name: z.ZodString;
|
|
1755
|
+
nodes: z.ZodArray<z.ZodObject<{
|
|
1756
|
+
nodeId: z.ZodNullable<z.ZodTemplateLiteral<`node_${string}`>>;
|
|
1757
|
+
kind: z.ZodNullable<z.ZodString>;
|
|
1758
|
+
name: z.ZodNullable<z.ZodString>;
|
|
1759
|
+
description: z.ZodNullable<z.ZodString>;
|
|
1760
|
+
}, z.core.$strip>>;
|
|
1761
|
+
}, z.core.$strip>>;
|
|
1762
|
+
connections: z.ZodArray<z.ZodObject<{
|
|
1763
|
+
to: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
|
|
1764
|
+
actionId: z.ZodTemplateLiteral<`action_${string}`>;
|
|
1765
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1766
|
+
processId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
1767
|
+
}, z.core.$strict>]>>;
|
|
1768
|
+
name: z.ZodNullable<z.ZodString>;
|
|
1769
|
+
when: z.ZodString;
|
|
1770
|
+
}, z.core.$strip>>;
|
|
1771
|
+
}, z.core.$strip>;
|
|
1772
|
+
export type ProcessRoleCandidate = z.infer<typeof ProcessRoleCandidate>;
|
|
1773
|
+
export declare const ProcessRole: z.ZodObject<{
|
|
1733
1774
|
step: z.ZodObject<{
|
|
1734
1775
|
stepId: z.ZodTemplateLiteral<`step_${string}`>;
|
|
1735
1776
|
name: z.ZodString;
|
|
@@ -1773,6 +1814,56 @@ export declare const ProcessRole: z.ZodObject<{
|
|
|
1773
1814
|
name: z.ZodNullable<z.ZodString>;
|
|
1774
1815
|
when: z.ZodString;
|
|
1775
1816
|
}, z.core.$strip>>;
|
|
1817
|
+
process: z.ZodObject<{
|
|
1818
|
+
processId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
1819
|
+
name: z.ZodString;
|
|
1820
|
+
version: z.ZodNumber;
|
|
1821
|
+
}, z.core.$strip>;
|
|
1822
|
+
candidates: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1823
|
+
step: z.ZodObject<{
|
|
1824
|
+
stepId: z.ZodTemplateLiteral<`step_${string}`>;
|
|
1825
|
+
name: z.ZodString;
|
|
1826
|
+
}, z.core.$strip>;
|
|
1827
|
+
action: z.ZodObject<{
|
|
1828
|
+
actionId: z.ZodTemplateLiteral<`action_${string}`>;
|
|
1829
|
+
name: z.ZodString;
|
|
1830
|
+
instruction: z.ZodString;
|
|
1831
|
+
}, z.core.$strip>;
|
|
1832
|
+
start: z.ZodObject<{
|
|
1833
|
+
index: z.ZodNumber;
|
|
1834
|
+
place: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1835
|
+
kind: z.ZodLiteral<"task">;
|
|
1836
|
+
boardId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
1837
|
+
columnId: z.ZodTemplateLiteral<`column_${string}`>;
|
|
1838
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1839
|
+
kind: z.ZodLiteral<"goal">;
|
|
1840
|
+
goalId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
1841
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1842
|
+
kind: z.ZodLiteral<"mention">;
|
|
1843
|
+
nodeId: z.ZodOptional<z.ZodTemplateLiteral<`node_${string}`>>;
|
|
1844
|
+
}, z.core.$strict>], "kind">;
|
|
1845
|
+
name: z.ZodNullable<z.ZodString>;
|
|
1846
|
+
when: z.ZodString;
|
|
1847
|
+
}, z.core.$strip>;
|
|
1848
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
1849
|
+
name: z.ZodString;
|
|
1850
|
+
nodes: z.ZodArray<z.ZodObject<{
|
|
1851
|
+
nodeId: z.ZodNullable<z.ZodTemplateLiteral<`node_${string}`>>;
|
|
1852
|
+
kind: z.ZodNullable<z.ZodString>;
|
|
1853
|
+
name: z.ZodNullable<z.ZodString>;
|
|
1854
|
+
description: z.ZodNullable<z.ZodString>;
|
|
1855
|
+
}, z.core.$strip>>;
|
|
1856
|
+
}, z.core.$strip>>;
|
|
1857
|
+
connections: z.ZodArray<z.ZodObject<{
|
|
1858
|
+
to: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
|
|
1859
|
+
actionId: z.ZodTemplateLiteral<`action_${string}`>;
|
|
1860
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1861
|
+
processId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
1862
|
+
}, z.core.$strict>]>>;
|
|
1863
|
+
name: z.ZodNullable<z.ZodString>;
|
|
1864
|
+
when: z.ZodString;
|
|
1865
|
+
}, z.core.$strip>>;
|
|
1866
|
+
}, z.core.$strip>>>;
|
|
1776
1867
|
run: z.ZodNullable<z.ZodObject<{
|
|
1777
1868
|
runId: z.ZodTemplateLiteral<`run_${string}`>;
|
|
1778
1869
|
startedAt: z.ZodISODateTime;
|
|
@@ -307,8 +307,9 @@ export const ProcessRoleRun = z.object({
|
|
|
307
307
|
start: ProcessRunStart,
|
|
308
308
|
done: z.array(ProcessRunDone),
|
|
309
309
|
});
|
|
310
|
-
|
|
311
|
-
|
|
310
|
+
// One action of the actor whose start the row's way meets: its step, instruction, the start with its
|
|
311
|
+
// Wann, its own steps with their nodes and its connections.
|
|
312
|
+
export const ProcessRoleCandidate = z.object({
|
|
312
313
|
step: z.object({ stepId: ProcessStepId, name: z.string() }),
|
|
313
314
|
action: z.object({ actionId: ProcessActionId, name: z.string(), instruction: z.string() }),
|
|
314
315
|
// The start that woke the row, with its Wann (E291); `index` is its place among the action's starts.
|
|
@@ -336,6 +337,13 @@ export const ProcessRole = z.object({
|
|
|
336
337
|
name: z.string().nullable(),
|
|
337
338
|
when: z.string(),
|
|
338
339
|
})),
|
|
340
|
+
});
|
|
341
|
+
// The role: the first action in the order of the steps whose start the way meets. Where several
|
|
342
|
+
// actions of the actor in the process meet it (#1337, E296), `candidates` names every one of
|
|
343
|
+
// them in that order, the first included, and the actor chooses by their Wann; absent where one does.
|
|
344
|
+
export const ProcessRole = ProcessRoleCandidate.extend({
|
|
345
|
+
process: z.object({ processId: ProcessId, name: z.string(), version: z.number().int() }),
|
|
346
|
+
candidates: z.array(ProcessRoleCandidate).optional(),
|
|
339
347
|
// Null where no run holds this wake yet: an action that is no entry, outside every run.
|
|
340
348
|
run: ProcessRoleRun.nullable(),
|
|
341
349
|
});
|
package/dist/sdk.d.ts
CHANGED
|
@@ -43,7 +43,7 @@ export { ChangeTrigger, ClosureCause, ClosureFound, ClosureKind, ClosureLine, Cl
|
|
|
43
43
|
export { Currency, CurrencyRate, currencies, Organisation, OrganisationGetInput, OrganisationUpdateInput, } from "./organisation/organisation.js";
|
|
44
44
|
export { PageDetail, PageGetInput, PageHead, PageHeading, PageId, PageList, PageListInput, PageSummary, } from "./pages/pages.js";
|
|
45
45
|
export { AgentName, gatewayAgentsMax, IdempotencyKey, PlanSubstep, planEvidenceMax, Rev, } from "./primitives/primitives.js";
|
|
46
|
-
export { ProcessAction, ProcessActionId, ProcessActionStep, ProcessActor, ProcessArchiveInput, ProcessConnection, ProcessConnectionTarget, ProcessContent, ProcessContentInput, ProcessCreateInput, ProcessDetail, ProcessFinding, ProcessFindingCode, ProcessFindingPlace, ProcessGetInput, ProcessId, ProcessLinked, type ProcessLinkedOval, ProcessNew, type ProcessNewOval, ProcessNode, ProcessNodeKind, ProcessOval, ProcessPlacement, ProcessPublishInput, ProcessRestoreInput, ProcessRole, ProcessRoleRun, ProcessRun, ProcessRunCreateInput, ProcessRunDetail, ProcessRunDone, ProcessRunEntry, ProcessRunGetInput, ProcessRunId, ProcessRunList, ProcessRunListInput, ProcessRunStart, ProcessRunStatus, ProcessStart, ProcessStartPlace, ProcessStep, ProcessStepId, ProcessUpdateInput, ProcessVersionContent, processFindingCodes, processLimits, processNodeKinds, processPlacements, processRunEntryStatuses, processRunStatuses, processStartKinds, } from "./processes/processes.js";
|
|
46
|
+
export { ProcessAction, ProcessActionId, ProcessActionStep, ProcessActor, ProcessArchiveInput, ProcessConnection, ProcessConnectionTarget, ProcessContent, ProcessContentInput, ProcessCreateInput, ProcessDetail, ProcessFinding, ProcessFindingCode, ProcessFindingPlace, ProcessGetInput, ProcessId, ProcessLinked, type ProcessLinkedOval, ProcessNew, type ProcessNewOval, ProcessNode, ProcessNodeKind, ProcessOval, ProcessPlacement, ProcessPublishInput, ProcessRestoreInput, ProcessRole, ProcessRoleCandidate, ProcessRoleRun, ProcessRun, ProcessRunCreateInput, ProcessRunDetail, ProcessRunDone, ProcessRunEntry, ProcessRunGetInput, ProcessRunId, ProcessRunList, ProcessRunListInput, ProcessRunStart, ProcessRunStatus, ProcessStart, ProcessStartPlace, ProcessStep, ProcessStepId, ProcessUpdateInput, ProcessVersionContent, processFindingCodes, processLimits, processNodeKinds, processPlacements, processRunEntryStatuses, processRunStatuses, processStartKinds, } from "./processes/processes.js";
|
|
47
47
|
export { Locale, locales, Name, ProfileImageResponse, ProfileUpdateInput, profileImageMaxBytes, profileImageTypes, Theme, TimeZone, themes, } from "./profile/profile.js";
|
|
48
48
|
export { offersSignIn, Provider, ProviderId, ProviderList, ProviderListInput, ProviderRemoveInput, ProviderSource, ProviderTest, ProviderTestInput, ProviderUpdateInput, providerEndpoints, providerIds, SignInProviderId, SignInProviders, signInProviderIds, } from "./providers/providers.js";
|
|
49
49
|
export { GrantChange, PermissionsResponse, RightPath, RightTree, Role, RoleArchiveInput, RoleCreateInput, RoleDetail, RoleGetInput, RoleGrantCreateInput, RoleGrantRevokeInput, RoleId, RoleList, RoleListInput, RoleRestoreInput, RoleUpdateInput, } from "./roles/roles.js";
|
package/dist/sdk.js
CHANGED
|
@@ -46,7 +46,7 @@ export { ChangeTrigger, ClosureCause, ClosureFound, ClosureKind, ClosureLine, Cl
|
|
|
46
46
|
export { Currency, CurrencyRate, currencies, Organisation, OrganisationGetInput, OrganisationUpdateInput, } from "./organisation/organisation.js";
|
|
47
47
|
export { PageDetail, PageGetInput, PageHead, PageHeading, PageId, PageList, PageListInput, PageSummary, } from "./pages/pages.js";
|
|
48
48
|
export { AgentName, gatewayAgentsMax, IdempotencyKey, PlanSubstep, planEvidenceMax, Rev, } from "./primitives/primitives.js";
|
|
49
|
-
export { ProcessAction, ProcessActionId, ProcessActionStep, ProcessActor, ProcessArchiveInput, ProcessConnection, ProcessConnectionTarget, ProcessContent, ProcessContentInput, ProcessCreateInput, ProcessDetail, ProcessFinding, ProcessFindingCode, ProcessFindingPlace, ProcessGetInput, ProcessId, ProcessLinked, ProcessNew, ProcessNode, ProcessNodeKind, ProcessOval, ProcessPlacement, ProcessPublishInput, ProcessRestoreInput, ProcessRole, ProcessRoleRun, ProcessRun, ProcessRunCreateInput, ProcessRunDetail, ProcessRunDone, ProcessRunEntry, ProcessRunGetInput, ProcessRunId, ProcessRunList, ProcessRunListInput, ProcessRunStart, ProcessRunStatus, ProcessStart, ProcessStartPlace, ProcessStep, ProcessStepId, ProcessUpdateInput, ProcessVersionContent, processFindingCodes, processLimits, processNodeKinds, processPlacements, processRunEntryStatuses, processRunStatuses, processStartKinds, } from "./processes/processes.js";
|
|
49
|
+
export { ProcessAction, ProcessActionId, ProcessActionStep, ProcessActor, ProcessArchiveInput, ProcessConnection, ProcessConnectionTarget, ProcessContent, ProcessContentInput, ProcessCreateInput, ProcessDetail, ProcessFinding, ProcessFindingCode, ProcessFindingPlace, ProcessGetInput, ProcessId, ProcessLinked, ProcessNew, ProcessNode, ProcessNodeKind, ProcessOval, ProcessPlacement, ProcessPublishInput, ProcessRestoreInput, ProcessRole, ProcessRoleCandidate, ProcessRoleRun, ProcessRun, ProcessRunCreateInput, ProcessRunDetail, ProcessRunDone, ProcessRunEntry, ProcessRunGetInput, ProcessRunId, ProcessRunList, ProcessRunListInput, ProcessRunStart, ProcessRunStatus, ProcessStart, ProcessStartPlace, ProcessStep, ProcessStepId, ProcessUpdateInput, ProcessVersionContent, processFindingCodes, processLimits, processNodeKinds, processPlacements, processRunEntryStatuses, processRunStatuses, processStartKinds, } from "./processes/processes.js";
|
|
50
50
|
export { Locale, locales, Name, ProfileImageResponse, ProfileUpdateInput, profileImageMaxBytes, profileImageTypes, Theme, TimeZone, themes, } from "./profile/profile.js";
|
|
51
51
|
export { offersSignIn, Provider, ProviderId, ProviderList, ProviderListInput, ProviderRemoveInput, ProviderSource, ProviderTest, ProviderTestInput, ProviderUpdateInput, providerEndpoints, providerIds, SignInProviderId, SignInProviders, signInProviderIds, } from "./providers/providers.js";
|
|
52
52
|
export { GrantChange, PermissionsResponse, RightPath, RightTree, Role, RoleArchiveInput, RoleCreateInput, RoleDetail, RoleGetInput, RoleGrantCreateInput, RoleGrantRevokeInput, RoleId, RoleList, RoleListInput, RoleRestoreInput, RoleUpdateInput, } from "./roles/roles.js";
|
package/package.json
CHANGED