@automate.ax/api-contract 0.56.1 → 0.57.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/api-key.d.ts +0 -2
- package/dist/api-key.js +3 -7
- package/dist/automation.d.ts +6 -2
- package/dist/automation.js +8 -2
- package/dist/deployment.d.ts +10 -2
- package/dist/deployment.js +10 -12
- package/dist/index.d.ts +92 -40
- package/dist/runtime.d.ts +60 -26
- package/dist/runtime.js +43 -20
- package/package.json +2 -2
- package/src/api-key.ts +3 -9
- package/src/automation.ts +12 -2
- package/src/deployment.ts +41 -47
- package/src/runtime.ts +45 -21
package/dist/runtime.d.ts
CHANGED
|
@@ -195,6 +195,7 @@ export declare const runtimeContract: {
|
|
|
195
195
|
eventDependencyIds: z.ZodArray<z.ZodString>;
|
|
196
196
|
inputHash: z.ZodString;
|
|
197
197
|
name: z.ZodString;
|
|
198
|
+
scopePath: z.ZodDefault<z.ZodArray<z.ZodNumber>>;
|
|
198
199
|
signalDependencyIds: z.ZodArray<z.ZodString>;
|
|
199
200
|
slot: z.ZodNumber;
|
|
200
201
|
status: z.ZodLiteral<"pending">;
|
|
@@ -204,6 +205,7 @@ export declare const runtimeContract: {
|
|
|
204
205
|
eventDependencyIds: z.ZodArray<z.ZodString>;
|
|
205
206
|
inputHash: z.ZodString;
|
|
206
207
|
name: z.ZodString;
|
|
208
|
+
scopePath: z.ZodDefault<z.ZodArray<z.ZodNumber>>;
|
|
207
209
|
signalDependencyIds: z.ZodArray<z.ZodString>;
|
|
208
210
|
slot: z.ZodNumber;
|
|
209
211
|
reason: z.ZodLiteral<"closed-dependency">;
|
|
@@ -214,6 +216,7 @@ export declare const runtimeContract: {
|
|
|
214
216
|
eventDependencyIds: z.ZodArray<z.ZodString>;
|
|
215
217
|
inputHash: z.ZodString;
|
|
216
218
|
name: z.ZodString;
|
|
219
|
+
scopePath: z.ZodDefault<z.ZodArray<z.ZodNumber>>;
|
|
217
220
|
signalDependencyIds: z.ZodArray<z.ZodString>;
|
|
218
221
|
slot: z.ZodNumber;
|
|
219
222
|
failure: z.ZodObject<{
|
|
@@ -223,39 +226,55 @@ export declare const runtimeContract: {
|
|
|
223
226
|
reason: z.ZodLiteral<"failed-dependency">;
|
|
224
227
|
status: z.ZodLiteral<"skipped">;
|
|
225
228
|
}, z.core.$strip>]>>>;
|
|
226
|
-
|
|
229
|
+
coordinationOffers: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
227
230
|
actionDependencyIds: z.ZodArray<z.ZodString>;
|
|
228
231
|
eventDependencyIds: z.ZodArray<z.ZodString>;
|
|
232
|
+
scopePath: z.ZodDefault<z.ZodArray<z.ZodNumber>>;
|
|
229
233
|
signalDependencyIds: z.ZodArray<z.ZodString>;
|
|
230
234
|
slot: z.ZodNumber;
|
|
231
235
|
count: z.ZodNumber;
|
|
232
236
|
key: z.ZodOptional<z.ZodCustom<import("@automate.ax/codec").Encodable, import("@automate.ax/codec").Encodable>>;
|
|
233
237
|
outcomeSeq: z.ZodNumber;
|
|
238
|
+
policy: z.ZodLiteral<"collect">;
|
|
234
239
|
primaryPosition: z.ZodEnum<{
|
|
235
240
|
first: "first";
|
|
236
241
|
last: "last";
|
|
237
242
|
}>;
|
|
238
243
|
ttl: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
239
|
-
|
|
240
|
-
parameterEventDependencyIds: z.ZodArray<z.ZodString>;
|
|
241
|
-
parameterSignalDependencyIds: z.ZodArray<z.ZodString>;
|
|
242
|
-
}, z.core.$strip>>>;
|
|
243
|
-
correlationEntries: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
244
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
244
245
|
actionDependencyIds: z.ZodArray<z.ZodString>;
|
|
245
246
|
eventDependencyIds: z.ZodArray<z.ZodString>;
|
|
247
|
+
scopePath: z.ZodDefault<z.ZodArray<z.ZodNumber>>;
|
|
246
248
|
signalDependencyIds: z.ZodArray<z.ZodString>;
|
|
247
249
|
slot: z.ZodNumber;
|
|
248
250
|
key: z.ZodOptional<z.ZodCustom<import("@automate.ax/codec").Encodable, import("@automate.ax/codec").Encodable>>;
|
|
249
251
|
order: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
250
252
|
outcomeSeq: z.ZodNumber;
|
|
253
|
+
policy: z.ZodLiteral<"correlate">;
|
|
251
254
|
streamName: z.ZodString;
|
|
252
255
|
streamNames: z.ZodArray<z.ZodString>;
|
|
253
256
|
ttl: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
254
|
-
}, z.core.$strip
|
|
257
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
258
|
+
actionDependencyIds: z.ZodArray<z.ZodString>;
|
|
259
|
+
eventDependencyIds: z.ZodArray<z.ZodString>;
|
|
260
|
+
scopePath: z.ZodDefault<z.ZodArray<z.ZodNumber>>;
|
|
261
|
+
signalDependencyIds: z.ZodArray<z.ZodString>;
|
|
262
|
+
slot: z.ZodNumber;
|
|
263
|
+
duration: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
264
|
+
key: z.ZodOptional<z.ZodCustom<import("@automate.ax/codec").Encodable, import("@automate.ax/codec").Encodable>>;
|
|
265
|
+
outcomeSeq: z.ZodNumber;
|
|
266
|
+
policy: z.ZodLiteral<"window">;
|
|
267
|
+
primaryPosition: z.ZodEnum<{
|
|
268
|
+
first: "first";
|
|
269
|
+
last: "last";
|
|
270
|
+
}>;
|
|
271
|
+
ttl: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
272
|
+
}, z.core.$strip>]>>>;
|
|
255
273
|
settled: z.ZodDefault<z.ZodBoolean>;
|
|
256
274
|
signalInvocations: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
257
275
|
actionDependencyIds: z.ZodArray<z.ZodString>;
|
|
258
276
|
eventDependencyIds: z.ZodArray<z.ZodString>;
|
|
277
|
+
scopePath: z.ZodDefault<z.ZodArray<z.ZodNumber>>;
|
|
259
278
|
signalDependencyIds: z.ZodArray<z.ZodString>;
|
|
260
279
|
slot: z.ZodNumber;
|
|
261
280
|
outcomeSeq: z.ZodOptional<z.ZodNumber>;
|
|
@@ -263,6 +282,7 @@ export declare const runtimeContract: {
|
|
|
263
282
|
}, z.core.$strip>, z.ZodObject<{
|
|
264
283
|
actionDependencyIds: z.ZodArray<z.ZodString>;
|
|
265
284
|
eventDependencyIds: z.ZodArray<z.ZodString>;
|
|
285
|
+
scopePath: z.ZodDefault<z.ZodArray<z.ZodNumber>>;
|
|
266
286
|
signalDependencyIds: z.ZodArray<z.ZodString>;
|
|
267
287
|
slot: z.ZodNumber;
|
|
268
288
|
failure: z.ZodObject<{
|
|
@@ -273,29 +293,13 @@ export declare const runtimeContract: {
|
|
|
273
293
|
}, z.core.$strip>, z.ZodObject<{
|
|
274
294
|
actionDependencyIds: z.ZodArray<z.ZodString>;
|
|
275
295
|
eventDependencyIds: z.ZodArray<z.ZodString>;
|
|
296
|
+
scopePath: z.ZodDefault<z.ZodArray<z.ZodNumber>>;
|
|
276
297
|
signalDependencyIds: z.ZodArray<z.ZodString>;
|
|
277
298
|
slot: z.ZodNumber;
|
|
278
299
|
outcomeSeq: z.ZodOptional<z.ZodNumber>;
|
|
279
300
|
selectedIndex: z.ZodOptional<z.ZodNumber>;
|
|
280
301
|
status: z.ZodLiteral<"open">;
|
|
281
302
|
}, z.core.$strip>]>>>;
|
|
282
|
-
windowEntries: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
283
|
-
actionDependencyIds: z.ZodArray<z.ZodString>;
|
|
284
|
-
eventDependencyIds: z.ZodArray<z.ZodString>;
|
|
285
|
-
signalDependencyIds: z.ZodArray<z.ZodString>;
|
|
286
|
-
slot: z.ZodNumber;
|
|
287
|
-
duration: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
288
|
-
key: z.ZodOptional<z.ZodCustom<import("@automate.ax/codec").Encodable, import("@automate.ax/codec").Encodable>>;
|
|
289
|
-
outcomeSeq: z.ZodNumber;
|
|
290
|
-
primaryPosition: z.ZodEnum<{
|
|
291
|
-
first: "first";
|
|
292
|
-
last: "last";
|
|
293
|
-
}>;
|
|
294
|
-
ttl: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
295
|
-
parameterActionDependencyIds: z.ZodArray<z.ZodString>;
|
|
296
|
-
parameterEventDependencyIds: z.ZodArray<z.ZodString>;
|
|
297
|
-
parameterSignalDependencyIds: z.ZodArray<z.ZodString>;
|
|
298
|
-
}, z.core.$strip>>>;
|
|
299
303
|
}, z.core.$strip>, z.ZodVoid, Record<never, never>, Record<never, never>>;
|
|
300
304
|
completeAction: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodUnion<readonly [z.ZodObject<{
|
|
301
305
|
reason: z.ZodLiteral<"closed-dependency">;
|
|
@@ -449,6 +453,7 @@ export declare const runtimeContract: {
|
|
|
449
453
|
eventDependencyIds: z.ZodArray<z.ZodString>;
|
|
450
454
|
inputHash: z.ZodString;
|
|
451
455
|
name: z.ZodString;
|
|
456
|
+
scopePath: z.ZodDefault<z.ZodArray<z.ZodNumber>>;
|
|
452
457
|
signalDependencyIds: z.ZodArray<z.ZodString>;
|
|
453
458
|
slot: z.ZodNumber;
|
|
454
459
|
actionInvocationId: z.ZodString;
|
|
@@ -460,6 +465,7 @@ export declare const runtimeContract: {
|
|
|
460
465
|
eventDependencyIds: z.ZodArray<z.ZodString>;
|
|
461
466
|
inputHash: z.ZodString;
|
|
462
467
|
name: z.ZodString;
|
|
468
|
+
scopePath: z.ZodDefault<z.ZodArray<z.ZodNumber>>;
|
|
463
469
|
signalDependencyIds: z.ZodArray<z.ZodString>;
|
|
464
470
|
slot: z.ZodNumber;
|
|
465
471
|
actionInvocationId: z.ZodString;
|
|
@@ -476,6 +482,7 @@ export declare const runtimeContract: {
|
|
|
476
482
|
eventDependencyIds: z.ZodArray<z.ZodString>;
|
|
477
483
|
inputHash: z.ZodString;
|
|
478
484
|
name: z.ZodString;
|
|
485
|
+
scopePath: z.ZodDefault<z.ZodArray<z.ZodNumber>>;
|
|
479
486
|
signalDependencyIds: z.ZodArray<z.ZodString>;
|
|
480
487
|
slot: z.ZodNumber;
|
|
481
488
|
actionInvocationId: z.ZodString;
|
|
@@ -489,6 +496,7 @@ export declare const runtimeContract: {
|
|
|
489
496
|
eventDependencyIds: z.ZodArray<z.ZodString>;
|
|
490
497
|
inputHash: z.ZodString;
|
|
491
498
|
name: z.ZodString;
|
|
499
|
+
scopePath: z.ZodDefault<z.ZodArray<z.ZodNumber>>;
|
|
492
500
|
signalDependencyIds: z.ZodArray<z.ZodString>;
|
|
493
501
|
slot: z.ZodNumber;
|
|
494
502
|
actionInvocationId: z.ZodString;
|
|
@@ -506,6 +514,7 @@ export declare const runtimeContract: {
|
|
|
506
514
|
eventDependencyIds: z.ZodArray<z.ZodString>;
|
|
507
515
|
inputHash: z.ZodString;
|
|
508
516
|
name: z.ZodString;
|
|
517
|
+
scopePath: z.ZodDefault<z.ZodArray<z.ZodNumber>>;
|
|
509
518
|
signalDependencyIds: z.ZodArray<z.ZodString>;
|
|
510
519
|
slot: z.ZodNumber;
|
|
511
520
|
actionInvocationId: z.ZodString;
|
|
@@ -524,11 +533,13 @@ export declare const runtimeContract: {
|
|
|
524
533
|
automationEventId: z.ZodString;
|
|
525
534
|
contextId: z.ZodString;
|
|
526
535
|
outcomeSeq: z.ZodNumber;
|
|
536
|
+
scopePath: z.ZodDefault<z.ZodArray<z.ZodNumber>>;
|
|
527
537
|
slot: z.ZodNumber;
|
|
528
538
|
}, z.core.$strip>>;
|
|
529
539
|
signalOutputs: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
530
540
|
actionDependencyIds: z.ZodArray<z.ZodString>;
|
|
531
541
|
eventDependencyIds: z.ZodArray<z.ZodString>;
|
|
542
|
+
scopePath: z.ZodDefault<z.ZodArray<z.ZodNumber>>;
|
|
532
543
|
signalDependencyIds: z.ZodArray<z.ZodString>;
|
|
533
544
|
slot: z.ZodNumber;
|
|
534
545
|
contextId: z.ZodString;
|
|
@@ -539,6 +550,7 @@ export declare const runtimeContract: {
|
|
|
539
550
|
}, z.core.$strip>, z.ZodObject<{
|
|
540
551
|
actionDependencyIds: z.ZodArray<z.ZodString>;
|
|
541
552
|
eventDependencyIds: z.ZodArray<z.ZodString>;
|
|
553
|
+
scopePath: z.ZodDefault<z.ZodArray<z.ZodNumber>>;
|
|
542
554
|
signalDependencyIds: z.ZodArray<z.ZodString>;
|
|
543
555
|
slot: z.ZodNumber;
|
|
544
556
|
contextId: z.ZodString;
|
|
@@ -548,6 +560,7 @@ export declare const runtimeContract: {
|
|
|
548
560
|
}, z.core.$strip>, z.ZodObject<{
|
|
549
561
|
actionDependencyIds: z.ZodArray<z.ZodString>;
|
|
550
562
|
eventDependencyIds: z.ZodArray<z.ZodString>;
|
|
563
|
+
scopePath: z.ZodDefault<z.ZodArray<z.ZodNumber>>;
|
|
551
564
|
signalDependencyIds: z.ZodArray<z.ZodString>;
|
|
552
565
|
slot: z.ZodNumber;
|
|
553
566
|
contextId: z.ZodString;
|
|
@@ -561,6 +574,7 @@ export declare const runtimeContract: {
|
|
|
561
574
|
}, z.core.$strip>, z.ZodObject<{
|
|
562
575
|
actionDependencyIds: z.ZodArray<z.ZodString>;
|
|
563
576
|
eventDependencyIds: z.ZodArray<z.ZodString>;
|
|
577
|
+
scopePath: z.ZodDefault<z.ZodArray<z.ZodNumber>>;
|
|
564
578
|
signalDependencyIds: z.ZodArray<z.ZodString>;
|
|
565
579
|
slot: z.ZodNumber;
|
|
566
580
|
contextId: z.ZodString;
|
|
@@ -575,6 +589,7 @@ export declare const runtimeContract: {
|
|
|
575
589
|
actionOutputs: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
576
590
|
actionInvocationId: z.ZodString;
|
|
577
591
|
contextId: z.ZodString;
|
|
592
|
+
scopePath: z.ZodDefault<z.ZodArray<z.ZodNumber>>;
|
|
578
593
|
slot: z.ZodNumber;
|
|
579
594
|
outcomeSeq: z.ZodNumber;
|
|
580
595
|
status: z.ZodLiteral<"failed">;
|
|
@@ -586,6 +601,7 @@ export declare const runtimeContract: {
|
|
|
586
601
|
actionInvocationId: z.ZodString;
|
|
587
602
|
contextId: z.ZodString;
|
|
588
603
|
outcomeSeq: z.ZodNumber;
|
|
604
|
+
scopePath: z.ZodDefault<z.ZodArray<z.ZodNumber>>;
|
|
589
605
|
slot: z.ZodNumber;
|
|
590
606
|
reason: z.ZodLiteral<"closed-dependency">;
|
|
591
607
|
status: z.ZodLiteral<"skipped">;
|
|
@@ -593,6 +609,7 @@ export declare const runtimeContract: {
|
|
|
593
609
|
actionInvocationId: z.ZodString;
|
|
594
610
|
contextId: z.ZodString;
|
|
595
611
|
outcomeSeq: z.ZodNumber;
|
|
612
|
+
scopePath: z.ZodDefault<z.ZodArray<z.ZodNumber>>;
|
|
596
613
|
slot: z.ZodNumber;
|
|
597
614
|
failure: z.ZodObject<{
|
|
598
615
|
message: z.ZodString;
|
|
@@ -604,11 +621,12 @@ export declare const runtimeContract: {
|
|
|
604
621
|
actionInvocationId: z.ZodString;
|
|
605
622
|
contextId: z.ZodString;
|
|
606
623
|
outcomeSeq: z.ZodNumber;
|
|
624
|
+
scopePath: z.ZodDefault<z.ZodArray<z.ZodNumber>>;
|
|
607
625
|
slot: z.ZodNumber;
|
|
608
626
|
output: z.ZodOptional<z.ZodCustom<import("@automate.ax/codec").Encodable, import("@automate.ax/codec").Encodable>>;
|
|
609
627
|
status: z.ZodLiteral<"succeeded">;
|
|
610
628
|
}, z.core.$strip>]>>;
|
|
611
|
-
|
|
629
|
+
coordinationSelections: z.ZodArray<z.ZodObject<{
|
|
612
630
|
items: z.ZodArray<z.ZodObject<{
|
|
613
631
|
actionDependencyIds: z.ZodArray<z.ZodString>;
|
|
614
632
|
eventDependencyIds: z.ZodArray<z.ZodString>;
|
|
@@ -629,11 +647,13 @@ export declare const runtimeContract: {
|
|
|
629
647
|
contextId: z.ZodString;
|
|
630
648
|
outcomeSeq: z.ZodNumber;
|
|
631
649
|
payload: z.ZodOptional<z.ZodCustom<import("@automate.ax/codec").Encodable, import("@automate.ax/codec").Encodable>>;
|
|
650
|
+
scopePath: z.ZodDefault<z.ZodArray<z.ZodNumber>>;
|
|
632
651
|
slot: z.ZodNumber;
|
|
633
652
|
}, z.core.$strip>>;
|
|
634
653
|
signalOutputs: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
635
654
|
contextId: z.ZodString;
|
|
636
655
|
outcomeSeq: z.ZodNumber;
|
|
656
|
+
scopePath: z.ZodDefault<z.ZodArray<z.ZodNumber>>;
|
|
637
657
|
signalInvocationId: z.ZodString;
|
|
638
658
|
slot: z.ZodNumber;
|
|
639
659
|
selectedIndex: z.ZodOptional<z.ZodNumber>;
|
|
@@ -641,12 +661,14 @@ export declare const runtimeContract: {
|
|
|
641
661
|
}, z.core.$strip>, z.ZodObject<{
|
|
642
662
|
contextId: z.ZodString;
|
|
643
663
|
outcomeSeq: z.ZodNumber;
|
|
664
|
+
scopePath: z.ZodDefault<z.ZodArray<z.ZodNumber>>;
|
|
644
665
|
signalInvocationId: z.ZodString;
|
|
645
666
|
slot: z.ZodNumber;
|
|
646
667
|
status: z.ZodLiteral<"closed">;
|
|
647
668
|
}, z.core.$strip>, z.ZodObject<{
|
|
648
669
|
contextId: z.ZodString;
|
|
649
670
|
outcomeSeq: z.ZodNumber;
|
|
671
|
+
scopePath: z.ZodDefault<z.ZodArray<z.ZodNumber>>;
|
|
650
672
|
signalInvocationId: z.ZodString;
|
|
651
673
|
slot: z.ZodNumber;
|
|
652
674
|
failure: z.ZodObject<{
|
|
@@ -657,6 +679,7 @@ export declare const runtimeContract: {
|
|
|
657
679
|
}, z.core.$strip>, z.ZodObject<{
|
|
658
680
|
contextId: z.ZodString;
|
|
659
681
|
outcomeSeq: z.ZodNumber;
|
|
682
|
+
scopePath: z.ZodDefault<z.ZodArray<z.ZodNumber>>;
|
|
660
683
|
signalInvocationId: z.ZodString;
|
|
661
684
|
slot: z.ZodNumber;
|
|
662
685
|
output: z.ZodOptional<z.ZodCustom<import("@automate.ax/codec").Encodable, import("@automate.ax/codec").Encodable>>;
|
|
@@ -664,10 +687,12 @@ export declare const runtimeContract: {
|
|
|
664
687
|
}, z.core.$strip>]>>;
|
|
665
688
|
}, z.core.$strip>;
|
|
666
689
|
id: z.ZodString;
|
|
690
|
+
scopePath: z.ZodDefault<z.ZodArray<z.ZodNumber>>;
|
|
667
691
|
slot: z.ZodNumber;
|
|
668
692
|
status: z.ZodLiteral<"pending">;
|
|
669
693
|
}, z.core.$strip>, z.ZodObject<{
|
|
670
694
|
id: z.ZodString;
|
|
695
|
+
scopePath: z.ZodDefault<z.ZodArray<z.ZodNumber>>;
|
|
671
696
|
slot: z.ZodNumber;
|
|
672
697
|
status: z.ZodEnum<{
|
|
673
698
|
succeeded: "succeeded";
|
|
@@ -684,6 +709,7 @@ export declare const runtimeContract: {
|
|
|
684
709
|
actionOutputs: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
685
710
|
actionInvocationId: z.ZodString;
|
|
686
711
|
contextId: z.ZodString;
|
|
712
|
+
scopePath: z.ZodDefault<z.ZodArray<z.ZodNumber>>;
|
|
687
713
|
slot: z.ZodNumber;
|
|
688
714
|
outcomeSeq: z.ZodNumber;
|
|
689
715
|
status: z.ZodLiteral<"failed">;
|
|
@@ -695,6 +721,7 @@ export declare const runtimeContract: {
|
|
|
695
721
|
actionInvocationId: z.ZodString;
|
|
696
722
|
contextId: z.ZodString;
|
|
697
723
|
outcomeSeq: z.ZodNumber;
|
|
724
|
+
scopePath: z.ZodDefault<z.ZodArray<z.ZodNumber>>;
|
|
698
725
|
slot: z.ZodNumber;
|
|
699
726
|
reason: z.ZodLiteral<"closed-dependency">;
|
|
700
727
|
status: z.ZodLiteral<"skipped">;
|
|
@@ -702,6 +729,7 @@ export declare const runtimeContract: {
|
|
|
702
729
|
actionInvocationId: z.ZodString;
|
|
703
730
|
contextId: z.ZodString;
|
|
704
731
|
outcomeSeq: z.ZodNumber;
|
|
732
|
+
scopePath: z.ZodDefault<z.ZodArray<z.ZodNumber>>;
|
|
705
733
|
slot: z.ZodNumber;
|
|
706
734
|
failure: z.ZodObject<{
|
|
707
735
|
message: z.ZodString;
|
|
@@ -713,11 +741,12 @@ export declare const runtimeContract: {
|
|
|
713
741
|
actionInvocationId: z.ZodString;
|
|
714
742
|
contextId: z.ZodString;
|
|
715
743
|
outcomeSeq: z.ZodNumber;
|
|
744
|
+
scopePath: z.ZodDefault<z.ZodArray<z.ZodNumber>>;
|
|
716
745
|
slot: z.ZodNumber;
|
|
717
746
|
output: z.ZodOptional<z.ZodCustom<import("@automate.ax/codec").Encodable, import("@automate.ax/codec").Encodable>>;
|
|
718
747
|
status: z.ZodLiteral<"succeeded">;
|
|
719
748
|
}, z.core.$strip>]>>;
|
|
720
|
-
|
|
749
|
+
coordinationSelections: z.ZodArray<z.ZodObject<{
|
|
721
750
|
items: z.ZodArray<z.ZodObject<{
|
|
722
751
|
actionDependencyIds: z.ZodArray<z.ZodString>;
|
|
723
752
|
eventDependencyIds: z.ZodArray<z.ZodString>;
|
|
@@ -738,11 +767,13 @@ export declare const runtimeContract: {
|
|
|
738
767
|
contextId: z.ZodString;
|
|
739
768
|
outcomeSeq: z.ZodNumber;
|
|
740
769
|
payload: z.ZodOptional<z.ZodCustom<import("@automate.ax/codec").Encodable, import("@automate.ax/codec").Encodable>>;
|
|
770
|
+
scopePath: z.ZodDefault<z.ZodArray<z.ZodNumber>>;
|
|
741
771
|
slot: z.ZodNumber;
|
|
742
772
|
}, z.core.$strip>>;
|
|
743
773
|
signalOutputs: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
744
774
|
contextId: z.ZodString;
|
|
745
775
|
outcomeSeq: z.ZodNumber;
|
|
776
|
+
scopePath: z.ZodDefault<z.ZodArray<z.ZodNumber>>;
|
|
746
777
|
signalInvocationId: z.ZodString;
|
|
747
778
|
slot: z.ZodNumber;
|
|
748
779
|
selectedIndex: z.ZodOptional<z.ZodNumber>;
|
|
@@ -750,12 +781,14 @@ export declare const runtimeContract: {
|
|
|
750
781
|
}, z.core.$strip>, z.ZodObject<{
|
|
751
782
|
contextId: z.ZodString;
|
|
752
783
|
outcomeSeq: z.ZodNumber;
|
|
784
|
+
scopePath: z.ZodDefault<z.ZodArray<z.ZodNumber>>;
|
|
753
785
|
signalInvocationId: z.ZodString;
|
|
754
786
|
slot: z.ZodNumber;
|
|
755
787
|
status: z.ZodLiteral<"closed">;
|
|
756
788
|
}, z.core.$strip>, z.ZodObject<{
|
|
757
789
|
contextId: z.ZodString;
|
|
758
790
|
outcomeSeq: z.ZodNumber;
|
|
791
|
+
scopePath: z.ZodDefault<z.ZodArray<z.ZodNumber>>;
|
|
759
792
|
signalInvocationId: z.ZodString;
|
|
760
793
|
slot: z.ZodNumber;
|
|
761
794
|
failure: z.ZodObject<{
|
|
@@ -766,6 +799,7 @@ export declare const runtimeContract: {
|
|
|
766
799
|
}, z.core.$strip>, z.ZodObject<{
|
|
767
800
|
contextId: z.ZodString;
|
|
768
801
|
outcomeSeq: z.ZodNumber;
|
|
802
|
+
scopePath: z.ZodDefault<z.ZodArray<z.ZodNumber>>;
|
|
769
803
|
signalInvocationId: z.ZodString;
|
|
770
804
|
slot: z.ZodNumber;
|
|
771
805
|
output: z.ZodOptional<z.ZodCustom<import("@automate.ax/codec").Encodable, import("@automate.ax/codec").Encodable>>;
|
package/dist/runtime.js
CHANGED
|
@@ -10,6 +10,12 @@ const SIGNAL_FAILURE_SCHEMA = z.object({
|
|
|
10
10
|
name: z.string(),
|
|
11
11
|
});
|
|
12
12
|
const OUTCOME_SEQUENCE_SCHEMA = z.number().int().positive();
|
|
13
|
+
const HOOK_SCOPE_PATH_SCHEMA = z
|
|
14
|
+
.number()
|
|
15
|
+
.int()
|
|
16
|
+
.nonnegative()
|
|
17
|
+
.array()
|
|
18
|
+
.default([]);
|
|
13
19
|
const AUTOMATION_INVOCATION_RUN_AT_SCHEMA = z.union([
|
|
14
20
|
z.date(),
|
|
15
21
|
z.string().min(1),
|
|
@@ -63,6 +69,7 @@ const ACTION_INVOCATION_BASE_SCHEMA = z.object({
|
|
|
63
69
|
eventDependencyIds: z.string().array(),
|
|
64
70
|
inputHash: z.string(),
|
|
65
71
|
name: z.string(),
|
|
72
|
+
scopePath: HOOK_SCOPE_PATH_SCHEMA,
|
|
66
73
|
signalDependencyIds: z.string().array(),
|
|
67
74
|
slot: z.number().int().nonnegative(),
|
|
68
75
|
});
|
|
@@ -108,15 +115,11 @@ const ACTION_RUN_INVOCATION_SCHEMA = z.union([
|
|
|
108
115
|
const SIGNAL_INVOCATION_DEPENDENCIES_SCHEMA = z.object({
|
|
109
116
|
actionDependencyIds: z.string().array(),
|
|
110
117
|
eventDependencyIds: z.string().array(),
|
|
118
|
+
scopePath: HOOK_SCOPE_PATH_SCHEMA,
|
|
111
119
|
signalDependencyIds: z.string().array(),
|
|
112
120
|
slot: z.number().int().nonnegative(),
|
|
113
121
|
});
|
|
114
|
-
const
|
|
115
|
-
parameterActionDependencyIds: z.string().array(),
|
|
116
|
-
parameterEventDependencyIds: z.string().array(),
|
|
117
|
-
parameterSignalDependencyIds: z.string().array(),
|
|
118
|
-
});
|
|
119
|
-
const BUFFER_PRIMARY_POSITION_SCHEMA = z.enum(["first", "last"]);
|
|
122
|
+
const COORDINATION_PRIMARY_POSITION_SCHEMA = z.enum(["first", "last"]);
|
|
120
123
|
const CORRELATION_STREAM_NAMES_SCHEMA = z
|
|
121
124
|
.string()
|
|
122
125
|
.min(1)
|
|
@@ -125,10 +128,11 @@ const CORRELATION_STREAM_NAMES_SCHEMA = z
|
|
|
125
128
|
.refine((names) => new Set(names).size === names.length, {
|
|
126
129
|
message: "Correlation stream names must be unique.",
|
|
127
130
|
});
|
|
128
|
-
const
|
|
131
|
+
const CORRELATION_OFFER_SCHEMA = SIGNAL_INVOCATION_DEPENDENCIES_SCHEMA.extend({
|
|
129
132
|
key: encodableSchema,
|
|
130
133
|
order: CORRELATION_STREAM_NAMES_SCHEMA.optional(),
|
|
131
134
|
outcomeSeq: OUTCOME_SEQUENCE_SCHEMA,
|
|
135
|
+
policy: z.literal("correlate"),
|
|
132
136
|
streamName: z.string().min(1),
|
|
133
137
|
streamNames: CORRELATION_STREAM_NAMES_SCHEMA,
|
|
134
138
|
ttl: z.union([z.string().min(1), z.number().nonnegative()]).optional(),
|
|
@@ -150,20 +154,22 @@ const CORRELATION_ENTRY_SCHEMA = SIGNAL_INVOCATION_DEPENDENCIES_SCHEMA.extend({
|
|
|
150
154
|
});
|
|
151
155
|
}
|
|
152
156
|
});
|
|
153
|
-
const
|
|
157
|
+
const COLLECTION_OFFER_SCHEMA = SIGNAL_INVOCATION_DEPENDENCIES_SCHEMA.extend({
|
|
154
158
|
count: z.number().int().positive(),
|
|
155
159
|
key: encodableSchema,
|
|
156
160
|
outcomeSeq: OUTCOME_SEQUENCE_SCHEMA,
|
|
157
|
-
|
|
161
|
+
policy: z.literal("collect"),
|
|
162
|
+
primaryPosition: COORDINATION_PRIMARY_POSITION_SCHEMA,
|
|
158
163
|
ttl: z.union([z.string().min(1), z.number().nonnegative()]).optional(),
|
|
159
|
-
})
|
|
160
|
-
const
|
|
164
|
+
});
|
|
165
|
+
const WINDOW_OFFER_SCHEMA = SIGNAL_INVOCATION_DEPENDENCIES_SCHEMA.extend({
|
|
161
166
|
duration: z.union([z.string().min(1), z.number().nonnegative()]),
|
|
162
167
|
key: encodableSchema,
|
|
163
168
|
outcomeSeq: OUTCOME_SEQUENCE_SCHEMA,
|
|
164
|
-
|
|
169
|
+
policy: z.literal("window"),
|
|
170
|
+
primaryPosition: COORDINATION_PRIMARY_POSITION_SCHEMA,
|
|
165
171
|
ttl: z.union([z.string().min(1), z.number().nonnegative()]).optional(),
|
|
166
|
-
})
|
|
172
|
+
});
|
|
167
173
|
const SIGNAL_INVOCATION_SCHEMA = z.union([
|
|
168
174
|
SIGNAL_INVOCATION_DEPENDENCIES_SCHEMA.extend({
|
|
169
175
|
outcomeSeq: OUTCOME_SEQUENCE_SCHEMA.optional(),
|
|
@@ -200,6 +206,7 @@ const ACTION_VALUE_OUTCOME_BASE_SCHEMA = z.object({
|
|
|
200
206
|
actionInvocationId: z.string(),
|
|
201
207
|
contextId: z.string(),
|
|
202
208
|
outcomeSeq: OUTCOME_SEQUENCE_SCHEMA,
|
|
209
|
+
scopePath: HOOK_SCOPE_PATH_SCHEMA,
|
|
203
210
|
slot: z.number().int(),
|
|
204
211
|
});
|
|
205
212
|
const ACTION_VALUE_OUTCOME_SCHEMA = z.union([
|
|
@@ -225,6 +232,7 @@ const ACTION_VALUE_OUTCOME_SCHEMA = z.union([
|
|
|
225
232
|
const SIGNAL_VALUE_OUTCOME_BASE_SCHEMA = z.object({
|
|
226
233
|
contextId: z.string(),
|
|
227
234
|
outcomeSeq: OUTCOME_SEQUENCE_SCHEMA,
|
|
235
|
+
scopePath: HOOK_SCOPE_PATH_SCHEMA,
|
|
228
236
|
signalInvocationId: z.string(),
|
|
229
237
|
slot: z.number().int(),
|
|
230
238
|
});
|
|
@@ -234,8 +242,11 @@ const RUNTIME_CONTEXT_PARENT_SCHEMA = z.object({
|
|
|
234
242
|
parentContextId: z.string(),
|
|
235
243
|
position: z.number().int().nonnegative(),
|
|
236
244
|
});
|
|
237
|
-
const
|
|
238
|
-
items: SIGNAL_INVOCATION_DEPENDENCIES_SCHEMA.omit({
|
|
245
|
+
const COORDINATION_SELECTION_SCHEMA = z.object({
|
|
246
|
+
items: SIGNAL_INVOCATION_DEPENDENCIES_SCHEMA.omit({
|
|
247
|
+
scopePath: true,
|
|
248
|
+
slot: true,
|
|
249
|
+
})
|
|
239
250
|
.extend({ contextId: z.string() })
|
|
240
251
|
.array(),
|
|
241
252
|
signalInvocationId: z.string(),
|
|
@@ -257,7 +268,7 @@ const SIGNAL_VALUE_OUTCOME_SCHEMA = z.union([
|
|
|
257
268
|
]);
|
|
258
269
|
const RUNTIME_VALUE_CONTEXT_SCHEMA = z.object({
|
|
259
270
|
actionOutputs: ACTION_VALUE_OUTCOME_SCHEMA.array(),
|
|
260
|
-
|
|
271
|
+
coordinationSelections: COORDINATION_SELECTION_SCHEMA.array(),
|
|
261
272
|
contextId: z.string(),
|
|
262
273
|
contextParents: RUNTIME_CONTEXT_PARENT_SCHEMA.array(),
|
|
263
274
|
events: z
|
|
@@ -266,6 +277,7 @@ const RUNTIME_VALUE_CONTEXT_SCHEMA = z.object({
|
|
|
266
277
|
contextId: z.string(),
|
|
267
278
|
outcomeSeq: OUTCOME_SEQUENCE_SCHEMA,
|
|
268
279
|
payload: encodableSchema,
|
|
280
|
+
scopePath: HOOK_SCOPE_PATH_SCHEMA,
|
|
269
281
|
slot: z.number().int(),
|
|
270
282
|
})
|
|
271
283
|
.array(),
|
|
@@ -280,6 +292,7 @@ const RUNTIME_RUN_CONTEXT_SCHEMA = z.object({
|
|
|
280
292
|
automationEventId: z.string(),
|
|
281
293
|
contextId: z.string(),
|
|
282
294
|
outcomeSeq: OUTCOME_SEQUENCE_SCHEMA,
|
|
295
|
+
scopePath: HOOK_SCOPE_PATH_SCHEMA,
|
|
283
296
|
slot: z.number().int(),
|
|
284
297
|
})
|
|
285
298
|
.array(),
|
|
@@ -289,11 +302,13 @@ const TARGET_ACTION_SCHEMA = z.union([
|
|
|
289
302
|
z.object({
|
|
290
303
|
context: RUNTIME_VALUE_CONTEXT_SCHEMA,
|
|
291
304
|
id: z.string(),
|
|
305
|
+
scopePath: HOOK_SCOPE_PATH_SCHEMA,
|
|
292
306
|
slot: z.number().int(),
|
|
293
307
|
status: z.literal("pending"),
|
|
294
308
|
}),
|
|
295
309
|
z.object({
|
|
296
310
|
id: z.string(),
|
|
311
|
+
scopePath: HOOK_SCOPE_PATH_SCHEMA,
|
|
297
312
|
slot: z.number().int(),
|
|
298
313
|
status: z.enum(["failed", "skipped", "succeeded"]),
|
|
299
314
|
}),
|
|
@@ -417,11 +432,16 @@ export const runtimeContract = {
|
|
|
417
432
|
commit: oc
|
|
418
433
|
.input(z.object({
|
|
419
434
|
actionInvocations: ACTION_INVOCATION_SCHEMA.array().default([]),
|
|
420
|
-
|
|
421
|
-
|
|
435
|
+
coordinationOffers: z
|
|
436
|
+
.union([
|
|
437
|
+
COLLECTION_OFFER_SCHEMA,
|
|
438
|
+
CORRELATION_OFFER_SCHEMA,
|
|
439
|
+
WINDOW_OFFER_SCHEMA,
|
|
440
|
+
])
|
|
441
|
+
.array()
|
|
442
|
+
.default([]),
|
|
422
443
|
settled: z.boolean().default(true),
|
|
423
444
|
signalInvocations: SIGNAL_INVOCATION_SCHEMA.array().default([]),
|
|
424
|
-
windowEntries: WINDOW_ENTRY_SCHEMA.array().default([]),
|
|
425
445
|
}))
|
|
426
446
|
.output(z.void()),
|
|
427
447
|
completeAction: oc
|
|
@@ -457,7 +477,10 @@ export const runtimeContract = {
|
|
|
457
477
|
targetAction: TARGET_ACTION_SCHEMA.optional(),
|
|
458
478
|
})),
|
|
459
479
|
loadValues: oc
|
|
460
|
-
.input(SIGNAL_INVOCATION_DEPENDENCIES_SCHEMA.omit({
|
|
480
|
+
.input(SIGNAL_INVOCATION_DEPENDENCIES_SCHEMA.omit({
|
|
481
|
+
scopePath: true,
|
|
482
|
+
slot: true,
|
|
483
|
+
}))
|
|
461
484
|
.output(RUNTIME_VALUE_CONTEXT_SCHEMA),
|
|
462
485
|
resolveAccountInput: oc
|
|
463
486
|
.input(z.strictObject({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@automate.ax/api-contract",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.57.1",
|
|
4
4
|
"description": "Public oRPC contract for the Automate.ax API.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@ai-sdk/gateway": "^4.0.46",
|
|
31
|
-
"@automate.ax/codec": "0.
|
|
31
|
+
"@automate.ax/codec": "0.57.1",
|
|
32
32
|
"@orpc/contract": "1.15.0",
|
|
33
33
|
"zod": "^4.3.6"
|
|
34
34
|
},
|
package/src/api-key.ts
CHANGED
|
@@ -39,7 +39,7 @@ export const apiKeyContract = {
|
|
|
39
39
|
delete: oc
|
|
40
40
|
.route({
|
|
41
41
|
method: "DELETE",
|
|
42
|
-
path: "/
|
|
42
|
+
path: "/api-keys/{keyId}",
|
|
43
43
|
operationId: "deleteOrganizationApiKey",
|
|
44
44
|
summary: "Delete organization API key",
|
|
45
45
|
description:
|
|
@@ -47,12 +47,7 @@ export const apiKeyContract = {
|
|
|
47
47
|
successStatus: 204,
|
|
48
48
|
tags: ["API Keys"],
|
|
49
49
|
})
|
|
50
|
-
.input(
|
|
51
|
-
z.object({
|
|
52
|
-
keyId: z.string(),
|
|
53
|
-
organizationId: z.string(),
|
|
54
|
-
}),
|
|
55
|
-
)
|
|
50
|
+
.input(z.object({ keyId: z.string() }))
|
|
56
51
|
.output(z.void()),
|
|
57
52
|
list: oc
|
|
58
53
|
.route({
|
|
@@ -69,7 +64,7 @@ export const apiKeyContract = {
|
|
|
69
64
|
update: oc
|
|
70
65
|
.route({
|
|
71
66
|
method: "PATCH",
|
|
72
|
-
path: "/
|
|
67
|
+
path: "/api-keys/{keyId}",
|
|
73
68
|
operationId: "updateOrganizationApiKey",
|
|
74
69
|
summary: "Update organization API key",
|
|
75
70
|
description:
|
|
@@ -80,7 +75,6 @@ export const apiKeyContract = {
|
|
|
80
75
|
z.object({
|
|
81
76
|
keyId: z.string(),
|
|
82
77
|
name: reasonableNameSchema,
|
|
83
|
-
organizationId: z.string(),
|
|
84
78
|
}),
|
|
85
79
|
)
|
|
86
80
|
.output(organizationApiKeyOutputSchema),
|
package/src/automation.ts
CHANGED
|
@@ -28,7 +28,6 @@ export const automationContract = {
|
|
|
28
28
|
z.object({
|
|
29
29
|
automationId: z.string(),
|
|
30
30
|
executionId: z.string(),
|
|
31
|
-
projectId: z.string(),
|
|
32
31
|
}),
|
|
33
32
|
)
|
|
34
33
|
.output(
|
|
@@ -72,8 +71,19 @@ export const automationContract = {
|
|
|
72
71
|
z.object({
|
|
73
72
|
automationId: z.string(),
|
|
74
73
|
limit: z.number().int().min(1).max(100).default(50),
|
|
75
|
-
projectId: z.string(),
|
|
76
74
|
}),
|
|
77
75
|
)
|
|
78
76
|
.output(EXECUTION_SUMMARY_SCHEMA.array()),
|
|
77
|
+
update: oc
|
|
78
|
+
.input(
|
|
79
|
+
z.object({
|
|
80
|
+
automationId: z.string(),
|
|
81
|
+
enabled: z.boolean(),
|
|
82
|
+
}),
|
|
83
|
+
)
|
|
84
|
+
.output(
|
|
85
|
+
z.object({
|
|
86
|
+
txid: z.number().int().nonnegative(),
|
|
87
|
+
}),
|
|
88
|
+
),
|
|
79
89
|
}
|