@automate.ax/api-contract 0.87.0 → 0.87.2
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/automation.d.ts +3 -3
- package/dist/automation.js +4 -4
- package/dist/deployment.d.ts +2 -2
- package/dist/index.d.ts +50 -54
- package/dist/runtime-protocol.d.ts +1 -1
- package/dist/runtime-protocol.js +1 -1
- package/dist/runtime.d.ts +627 -53
- package/dist/runtime.js +148 -63
- package/package.json +3 -3
- package/src/automation.ts +4 -4
- package/src/runtime-protocol.ts +1 -1
- package/src/runtime.ts +278 -162
package/dist/runtime.d.ts
CHANGED
|
@@ -15,18 +15,9 @@ export declare const AUTOMATION_LOG_MAX_ENTRIES = 1000;
|
|
|
15
15
|
export declare const AUTOMATION_TRACE_MAX_SPANS = 250;
|
|
16
16
|
export declare const AUTOMATION_OBSERVABILITY_MAX_FIELDS = 64;
|
|
17
17
|
export declare const AUTOMATION_OBSERVABILITY_MAX_ENCODED_BYTES: number;
|
|
18
|
-
/** Preserves Blob media types while oRPC carries the bytes as multipart data. */
|
|
19
|
-
export declare const runtimeBlobJsonSerializer: {
|
|
20
|
-
type: number;
|
|
21
|
-
condition: (value: unknown) => boolean;
|
|
22
|
-
serialize(value: Blob): {
|
|
23
|
-
transportValue: Blob;
|
|
24
|
-
type: string;
|
|
25
|
-
};
|
|
26
|
-
deserialize(value: unknown): Blob;
|
|
27
|
-
};
|
|
28
18
|
export declare const AUTOMATION_LOG_MAX_MESSAGE_LENGTH = 16384;
|
|
29
19
|
export declare const AUTOMATION_TRACE_MAX_NAME_LENGTH = 256;
|
|
20
|
+
export declare const runtimeObservabilityFieldsSchema: z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodCustom<import("@automate.ax/codec").Encodable, import("@automate.ax/codec").Encodable>>>;
|
|
30
21
|
/** Runtime-validated structural policy for author-visible value projection. */
|
|
31
22
|
export declare const sensitivityMaskSchema: z.ZodCustom<SensitivityMask, SensitivityMask>;
|
|
32
23
|
/** Immediate or mutually exclusive absolute/relative invocation timing. */
|
|
@@ -336,6 +327,577 @@ declare const COORDINATION_OFFER_SCHEMA: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
336
327
|
}, z.core.$strip>]>]>;
|
|
337
328
|
/** One validated durable coordination offer sent by the automation runtime. */
|
|
338
329
|
export type RuntimeCoordinationOffer = z.output<typeof COORDINATION_OFFER_SCHEMA>;
|
|
330
|
+
declare const RUNTIME_VALUE_CONTEXT_SCHEMA: z.ZodObject<{
|
|
331
|
+
actionOutputs: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
332
|
+
actionInvocationId: z.ZodString;
|
|
333
|
+
contextId: z.ZodString;
|
|
334
|
+
scopePath: z.ZodArray<z.ZodNumber>;
|
|
335
|
+
slot: z.ZodNumber;
|
|
336
|
+
timestamp: z.ZodDate;
|
|
337
|
+
outcomeSeq: z.ZodNumber;
|
|
338
|
+
status: z.ZodLiteral<"failed">;
|
|
339
|
+
failure: z.ZodType<import("./errors").AutomationErrorValue, import("./errors").AutomationErrorValue, z.core.$ZodTypeInternals<import("./errors").AutomationErrorValue, import("./errors").AutomationErrorValue>>;
|
|
340
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
341
|
+
actionInvocationId: z.ZodString;
|
|
342
|
+
contextId: z.ZodString;
|
|
343
|
+
outcomeSeq: z.ZodNumber;
|
|
344
|
+
scopePath: z.ZodArray<z.ZodNumber>;
|
|
345
|
+
slot: z.ZodNumber;
|
|
346
|
+
timestamp: z.ZodDate;
|
|
347
|
+
reason: z.ZodLiteral<"closed-dependency">;
|
|
348
|
+
status: z.ZodLiteral<"skipped">;
|
|
349
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
350
|
+
actionInvocationId: z.ZodString;
|
|
351
|
+
contextId: z.ZodString;
|
|
352
|
+
outcomeSeq: z.ZodNumber;
|
|
353
|
+
scopePath: z.ZodArray<z.ZodNumber>;
|
|
354
|
+
slot: z.ZodNumber;
|
|
355
|
+
timestamp: z.ZodDate;
|
|
356
|
+
failure: z.ZodType<import("./errors").AutomationErrorValue, import("./errors").AutomationErrorValue, z.core.$ZodTypeInternals<import("./errors").AutomationErrorValue, import("./errors").AutomationErrorValue>>;
|
|
357
|
+
reason: z.ZodLiteral<"failed-dependency">;
|
|
358
|
+
status: z.ZodLiteral<"skipped">;
|
|
359
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
360
|
+
actionInvocationId: z.ZodString;
|
|
361
|
+
contextId: z.ZodString;
|
|
362
|
+
outcomeSeq: z.ZodNumber;
|
|
363
|
+
scopePath: z.ZodArray<z.ZodNumber>;
|
|
364
|
+
slot: z.ZodNumber;
|
|
365
|
+
timestamp: z.ZodDate;
|
|
366
|
+
output: z.ZodOptional<z.ZodCustom<import("@automate.ax/codec").Encodable, import("@automate.ax/codec").Encodable>>;
|
|
367
|
+
outputSensitivity: z.ZodOptional<z.ZodNullable<z.ZodCustom<SensitivityMask, SensitivityMask>>>;
|
|
368
|
+
status: z.ZodLiteral<"succeeded">;
|
|
369
|
+
}, z.core.$strip>]>>;
|
|
370
|
+
coordinationSelections: z.ZodArray<z.ZodObject<{
|
|
371
|
+
items: z.ZodArray<z.ZodObject<{
|
|
372
|
+
actionDependencyIds: z.ZodArray<z.ZodString>;
|
|
373
|
+
derivation: z.ZodNullable<z.ZodObject<{
|
|
374
|
+
nodes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
375
|
+
id: z.ZodString;
|
|
376
|
+
source: z.ZodEnum<{
|
|
377
|
+
action: "action";
|
|
378
|
+
event: "event";
|
|
379
|
+
signal: "signal";
|
|
380
|
+
}>;
|
|
381
|
+
type: z.ZodLiteral<"source">;
|
|
382
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
383
|
+
inputs: z.ZodArray<z.ZodNumber>;
|
|
384
|
+
property: z.ZodString;
|
|
385
|
+
type: z.ZodLiteral<"property">;
|
|
386
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
387
|
+
inputs: z.ZodArray<z.ZodNumber>;
|
|
388
|
+
type: z.ZodLiteral<"transform">;
|
|
389
|
+
}, z.core.$strip>], "type">>;
|
|
390
|
+
roots: z.ZodArray<z.ZodNumber>;
|
|
391
|
+
}, z.core.$strip>>;
|
|
392
|
+
eventDependencyIds: z.ZodArray<z.ZodString>;
|
|
393
|
+
signalDependencyIds: z.ZodArray<z.ZodString>;
|
|
394
|
+
contextId: z.ZodString;
|
|
395
|
+
}, z.core.$strip>>;
|
|
396
|
+
signalInvocationId: z.ZodString;
|
|
397
|
+
}, z.core.$strip>>;
|
|
398
|
+
contextId: z.ZodString;
|
|
399
|
+
contextParents: z.ZodArray<z.ZodObject<{
|
|
400
|
+
contextId: z.ZodString;
|
|
401
|
+
isPrimary: z.ZodBoolean;
|
|
402
|
+
parentContextId: z.ZodString;
|
|
403
|
+
position: z.ZodNumber;
|
|
404
|
+
}, z.core.$strip>>;
|
|
405
|
+
events: z.ZodArray<z.ZodObject<{
|
|
406
|
+
automationEventId: z.ZodString;
|
|
407
|
+
contextId: z.ZodString;
|
|
408
|
+
outcomeSeq: z.ZodNumber;
|
|
409
|
+
payload: z.ZodOptional<z.ZodCustom<import("@automate.ax/codec").Encodable, import("@automate.ax/codec").Encodable>>;
|
|
410
|
+
scopePath: z.ZodArray<z.ZodNumber>;
|
|
411
|
+
slot: z.ZodNumber;
|
|
412
|
+
timestamp: z.ZodDate;
|
|
413
|
+
}, z.core.$strip>>;
|
|
414
|
+
signalOutputs: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
415
|
+
contextId: z.ZodString;
|
|
416
|
+
outcomeSeq: z.ZodNumber;
|
|
417
|
+
scopePath: z.ZodArray<z.ZodNumber>;
|
|
418
|
+
signalInvocationId: z.ZodString;
|
|
419
|
+
slot: z.ZodNumber;
|
|
420
|
+
timestamp: z.ZodDate;
|
|
421
|
+
status: z.ZodLiteral<"open">;
|
|
422
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
423
|
+
contextId: z.ZodString;
|
|
424
|
+
outcomeSeq: z.ZodNumber;
|
|
425
|
+
scopePath: z.ZodArray<z.ZodNumber>;
|
|
426
|
+
signalInvocationId: z.ZodString;
|
|
427
|
+
slot: z.ZodNumber;
|
|
428
|
+
timestamp: z.ZodDate;
|
|
429
|
+
status: z.ZodLiteral<"closed">;
|
|
430
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
431
|
+
contextId: z.ZodString;
|
|
432
|
+
outcomeSeq: z.ZodNumber;
|
|
433
|
+
scopePath: z.ZodArray<z.ZodNumber>;
|
|
434
|
+
signalInvocationId: z.ZodString;
|
|
435
|
+
slot: z.ZodNumber;
|
|
436
|
+
timestamp: z.ZodDate;
|
|
437
|
+
failure: z.ZodType<import("./errors").AutomationErrorValue, import("./errors").AutomationErrorValue, z.core.$ZodTypeInternals<import("./errors").AutomationErrorValue, import("./errors").AutomationErrorValue>>;
|
|
438
|
+
status: z.ZodLiteral<"failed">;
|
|
439
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
440
|
+
contextId: z.ZodString;
|
|
441
|
+
outcomeSeq: z.ZodNumber;
|
|
442
|
+
scopePath: z.ZodArray<z.ZodNumber>;
|
|
443
|
+
signalInvocationId: z.ZodString;
|
|
444
|
+
slot: z.ZodNumber;
|
|
445
|
+
timestamp: z.ZodDate;
|
|
446
|
+
output: z.ZodOptional<z.ZodOptional<z.ZodCustom<import("@automate.ax/codec").Encodable, import("@automate.ax/codec").Encodable>>>;
|
|
447
|
+
selectedIndex: z.ZodOptional<z.ZodNumber>;
|
|
448
|
+
status: z.ZodLiteral<"succeeded">;
|
|
449
|
+
}, z.core.$strip>]>>;
|
|
450
|
+
}, z.core.$strip>;
|
|
451
|
+
/** Durable values resolved by one runtime traversal. */
|
|
452
|
+
export type RuntimeValueContext = z.output<typeof RUNTIME_VALUE_CONTEXT_SCHEMA>;
|
|
453
|
+
declare const RUNTIME_RUN_CONTEXT_SCHEMA: z.ZodObject<{
|
|
454
|
+
actions: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
455
|
+
actionDependencyIds: z.ZodArray<z.ZodString>;
|
|
456
|
+
derivation: z.ZodNullable<z.ZodObject<{
|
|
457
|
+
nodes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
458
|
+
id: z.ZodString;
|
|
459
|
+
source: z.ZodEnum<{
|
|
460
|
+
action: "action";
|
|
461
|
+
event: "event";
|
|
462
|
+
signal: "signal";
|
|
463
|
+
}>;
|
|
464
|
+
type: z.ZodLiteral<"source">;
|
|
465
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
466
|
+
inputs: z.ZodArray<z.ZodNumber>;
|
|
467
|
+
property: z.ZodString;
|
|
468
|
+
type: z.ZodLiteral<"property">;
|
|
469
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
470
|
+
inputs: z.ZodArray<z.ZodNumber>;
|
|
471
|
+
type: z.ZodLiteral<"transform">;
|
|
472
|
+
}, z.core.$strip>], "type">>;
|
|
473
|
+
roots: z.ZodArray<z.ZodNumber>;
|
|
474
|
+
}, z.core.$strip>>;
|
|
475
|
+
description: z.ZodNullable<z.ZodString>;
|
|
476
|
+
eventDependencyIds: z.ZodArray<z.ZodString>;
|
|
477
|
+
inputHash: z.ZodString;
|
|
478
|
+
name: z.ZodString;
|
|
479
|
+
outputSensitivity: z.ZodOptional<z.ZodNullable<z.ZodCustom<SensitivityMask, SensitivityMask>>>;
|
|
480
|
+
scopePath: z.ZodArray<z.ZodNumber>;
|
|
481
|
+
signalDependencyIds: z.ZodArray<z.ZodString>;
|
|
482
|
+
slot: z.ZodNumber;
|
|
483
|
+
actionInvocationId: z.ZodString;
|
|
484
|
+
contextId: z.ZodString;
|
|
485
|
+
status: z.ZodLiteral<"pending">;
|
|
486
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
487
|
+
actionDependencyIds: z.ZodArray<z.ZodString>;
|
|
488
|
+
derivation: z.ZodNullable<z.ZodObject<{
|
|
489
|
+
nodes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
490
|
+
id: z.ZodString;
|
|
491
|
+
source: z.ZodEnum<{
|
|
492
|
+
action: "action";
|
|
493
|
+
event: "event";
|
|
494
|
+
signal: "signal";
|
|
495
|
+
}>;
|
|
496
|
+
type: z.ZodLiteral<"source">;
|
|
497
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
498
|
+
inputs: z.ZodArray<z.ZodNumber>;
|
|
499
|
+
property: z.ZodString;
|
|
500
|
+
type: z.ZodLiteral<"property">;
|
|
501
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
502
|
+
inputs: z.ZodArray<z.ZodNumber>;
|
|
503
|
+
type: z.ZodLiteral<"transform">;
|
|
504
|
+
}, z.core.$strip>], "type">>;
|
|
505
|
+
roots: z.ZodArray<z.ZodNumber>;
|
|
506
|
+
}, z.core.$strip>>;
|
|
507
|
+
description: z.ZodNullable<z.ZodString>;
|
|
508
|
+
eventDependencyIds: z.ZodArray<z.ZodString>;
|
|
509
|
+
inputHash: z.ZodString;
|
|
510
|
+
name: z.ZodString;
|
|
511
|
+
outputSensitivity: z.ZodOptional<z.ZodNullable<z.ZodCustom<SensitivityMask, SensitivityMask>>>;
|
|
512
|
+
scopePath: z.ZodArray<z.ZodNumber>;
|
|
513
|
+
signalDependencyIds: z.ZodArray<z.ZodString>;
|
|
514
|
+
slot: z.ZodNumber;
|
|
515
|
+
actionInvocationId: z.ZodString;
|
|
516
|
+
contextId: z.ZodString;
|
|
517
|
+
failure: z.ZodType<import("./errors").AutomationErrorValue, import("./errors").AutomationErrorValue, z.core.$ZodTypeInternals<import("./errors").AutomationErrorValue, import("./errors").AutomationErrorValue>>;
|
|
518
|
+
outcomeSeq: z.ZodNumber;
|
|
519
|
+
status: z.ZodLiteral<"failed">;
|
|
520
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
521
|
+
actionDependencyIds: z.ZodArray<z.ZodString>;
|
|
522
|
+
derivation: z.ZodNullable<z.ZodObject<{
|
|
523
|
+
nodes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
524
|
+
id: z.ZodString;
|
|
525
|
+
source: z.ZodEnum<{
|
|
526
|
+
action: "action";
|
|
527
|
+
event: "event";
|
|
528
|
+
signal: "signal";
|
|
529
|
+
}>;
|
|
530
|
+
type: z.ZodLiteral<"source">;
|
|
531
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
532
|
+
inputs: z.ZodArray<z.ZodNumber>;
|
|
533
|
+
property: z.ZodString;
|
|
534
|
+
type: z.ZodLiteral<"property">;
|
|
535
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
536
|
+
inputs: z.ZodArray<z.ZodNumber>;
|
|
537
|
+
type: z.ZodLiteral<"transform">;
|
|
538
|
+
}, z.core.$strip>], "type">>;
|
|
539
|
+
roots: z.ZodArray<z.ZodNumber>;
|
|
540
|
+
}, z.core.$strip>>;
|
|
541
|
+
description: z.ZodNullable<z.ZodString>;
|
|
542
|
+
eventDependencyIds: z.ZodArray<z.ZodString>;
|
|
543
|
+
inputHash: z.ZodString;
|
|
544
|
+
name: z.ZodString;
|
|
545
|
+
outputSensitivity: z.ZodOptional<z.ZodNullable<z.ZodCustom<SensitivityMask, SensitivityMask>>>;
|
|
546
|
+
scopePath: z.ZodArray<z.ZodNumber>;
|
|
547
|
+
signalDependencyIds: z.ZodArray<z.ZodString>;
|
|
548
|
+
slot: z.ZodNumber;
|
|
549
|
+
actionInvocationId: z.ZodString;
|
|
550
|
+
contextId: z.ZodString;
|
|
551
|
+
outcomeSeq: z.ZodNumber;
|
|
552
|
+
reason: z.ZodLiteral<"closed-dependency">;
|
|
553
|
+
status: z.ZodLiteral<"skipped">;
|
|
554
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
555
|
+
actionDependencyIds: z.ZodArray<z.ZodString>;
|
|
556
|
+
derivation: z.ZodNullable<z.ZodObject<{
|
|
557
|
+
nodes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
558
|
+
id: z.ZodString;
|
|
559
|
+
source: z.ZodEnum<{
|
|
560
|
+
action: "action";
|
|
561
|
+
event: "event";
|
|
562
|
+
signal: "signal";
|
|
563
|
+
}>;
|
|
564
|
+
type: z.ZodLiteral<"source">;
|
|
565
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
566
|
+
inputs: z.ZodArray<z.ZodNumber>;
|
|
567
|
+
property: z.ZodString;
|
|
568
|
+
type: z.ZodLiteral<"property">;
|
|
569
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
570
|
+
inputs: z.ZodArray<z.ZodNumber>;
|
|
571
|
+
type: z.ZodLiteral<"transform">;
|
|
572
|
+
}, z.core.$strip>], "type">>;
|
|
573
|
+
roots: z.ZodArray<z.ZodNumber>;
|
|
574
|
+
}, z.core.$strip>>;
|
|
575
|
+
description: z.ZodNullable<z.ZodString>;
|
|
576
|
+
eventDependencyIds: z.ZodArray<z.ZodString>;
|
|
577
|
+
inputHash: z.ZodString;
|
|
578
|
+
name: z.ZodString;
|
|
579
|
+
outputSensitivity: z.ZodOptional<z.ZodNullable<z.ZodCustom<SensitivityMask, SensitivityMask>>>;
|
|
580
|
+
scopePath: z.ZodArray<z.ZodNumber>;
|
|
581
|
+
signalDependencyIds: z.ZodArray<z.ZodString>;
|
|
582
|
+
slot: z.ZodNumber;
|
|
583
|
+
actionInvocationId: z.ZodString;
|
|
584
|
+
contextId: z.ZodString;
|
|
585
|
+
failure: z.ZodType<import("./errors").AutomationErrorValue, import("./errors").AutomationErrorValue, z.core.$ZodTypeInternals<import("./errors").AutomationErrorValue, import("./errors").AutomationErrorValue>>;
|
|
586
|
+
outcomeSeq: z.ZodNumber;
|
|
587
|
+
reason: z.ZodLiteral<"failed-dependency">;
|
|
588
|
+
status: z.ZodLiteral<"skipped">;
|
|
589
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
590
|
+
actionDependencyIds: z.ZodArray<z.ZodString>;
|
|
591
|
+
derivation: z.ZodNullable<z.ZodObject<{
|
|
592
|
+
nodes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
593
|
+
id: z.ZodString;
|
|
594
|
+
source: z.ZodEnum<{
|
|
595
|
+
action: "action";
|
|
596
|
+
event: "event";
|
|
597
|
+
signal: "signal";
|
|
598
|
+
}>;
|
|
599
|
+
type: z.ZodLiteral<"source">;
|
|
600
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
601
|
+
inputs: z.ZodArray<z.ZodNumber>;
|
|
602
|
+
property: z.ZodString;
|
|
603
|
+
type: z.ZodLiteral<"property">;
|
|
604
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
605
|
+
inputs: z.ZodArray<z.ZodNumber>;
|
|
606
|
+
type: z.ZodLiteral<"transform">;
|
|
607
|
+
}, z.core.$strip>], "type">>;
|
|
608
|
+
roots: z.ZodArray<z.ZodNumber>;
|
|
609
|
+
}, z.core.$strip>>;
|
|
610
|
+
description: z.ZodNullable<z.ZodString>;
|
|
611
|
+
eventDependencyIds: z.ZodArray<z.ZodString>;
|
|
612
|
+
inputHash: z.ZodString;
|
|
613
|
+
name: z.ZodString;
|
|
614
|
+
outputSensitivity: z.ZodOptional<z.ZodNullable<z.ZodCustom<SensitivityMask, SensitivityMask>>>;
|
|
615
|
+
scopePath: z.ZodArray<z.ZodNumber>;
|
|
616
|
+
signalDependencyIds: z.ZodArray<z.ZodString>;
|
|
617
|
+
slot: z.ZodNumber;
|
|
618
|
+
actionInvocationId: z.ZodString;
|
|
619
|
+
contextId: z.ZodString;
|
|
620
|
+
outcomeSeq: z.ZodNumber;
|
|
621
|
+
status: z.ZodLiteral<"succeeded">;
|
|
622
|
+
}, z.core.$strip>]>>;
|
|
623
|
+
contextId: z.ZodString;
|
|
624
|
+
contextParents: z.ZodArray<z.ZodObject<{
|
|
625
|
+
contextId: z.ZodString;
|
|
626
|
+
isPrimary: z.ZodBoolean;
|
|
627
|
+
parentContextId: z.ZodString;
|
|
628
|
+
position: z.ZodNumber;
|
|
629
|
+
}, z.core.$strip>>;
|
|
630
|
+
events: z.ZodArray<z.ZodObject<{
|
|
631
|
+
automationEventId: z.ZodString;
|
|
632
|
+
contextId: z.ZodString;
|
|
633
|
+
outcomeSeq: z.ZodNumber;
|
|
634
|
+
scopePath: z.ZodArray<z.ZodNumber>;
|
|
635
|
+
slot: z.ZodNumber;
|
|
636
|
+
}, z.core.$strip>>;
|
|
637
|
+
signalOutputs: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
638
|
+
actionDependencyIds: z.ZodArray<z.ZodString>;
|
|
639
|
+
eventDependencyIds: z.ZodArray<z.ZodString>;
|
|
640
|
+
scopePath: z.ZodArray<z.ZodNumber>;
|
|
641
|
+
signalDependencyIds: z.ZodArray<z.ZodString>;
|
|
642
|
+
slot: z.ZodNumber;
|
|
643
|
+
derivation: z.ZodNullable<z.ZodObject<{
|
|
644
|
+
nodes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
645
|
+
id: z.ZodString;
|
|
646
|
+
source: z.ZodEnum<{
|
|
647
|
+
action: "action";
|
|
648
|
+
event: "event";
|
|
649
|
+
signal: "signal";
|
|
650
|
+
}>;
|
|
651
|
+
type: z.ZodLiteral<"source">;
|
|
652
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
653
|
+
inputs: z.ZodArray<z.ZodNumber>;
|
|
654
|
+
property: z.ZodString;
|
|
655
|
+
type: z.ZodLiteral<"property">;
|
|
656
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
657
|
+
inputs: z.ZodArray<z.ZodNumber>;
|
|
658
|
+
type: z.ZodLiteral<"transform">;
|
|
659
|
+
}, z.core.$strip>], "type">>;
|
|
660
|
+
roots: z.ZodArray<z.ZodNumber>;
|
|
661
|
+
}, z.core.$strip>>;
|
|
662
|
+
coordinatorConfigurationHash: z.ZodOptional<z.ZodString>;
|
|
663
|
+
contextId: z.ZodString;
|
|
664
|
+
outcomeSeq: z.ZodNumber;
|
|
665
|
+
signalInvocationId: z.ZodString;
|
|
666
|
+
status: z.ZodLiteral<"open">;
|
|
667
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
668
|
+
actionDependencyIds: z.ZodArray<z.ZodString>;
|
|
669
|
+
eventDependencyIds: z.ZodArray<z.ZodString>;
|
|
670
|
+
scopePath: z.ZodArray<z.ZodNumber>;
|
|
671
|
+
signalDependencyIds: z.ZodArray<z.ZodString>;
|
|
672
|
+
slot: z.ZodNumber;
|
|
673
|
+
derivation: z.ZodNullable<z.ZodObject<{
|
|
674
|
+
nodes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
675
|
+
id: z.ZodString;
|
|
676
|
+
source: z.ZodEnum<{
|
|
677
|
+
action: "action";
|
|
678
|
+
event: "event";
|
|
679
|
+
signal: "signal";
|
|
680
|
+
}>;
|
|
681
|
+
type: z.ZodLiteral<"source">;
|
|
682
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
683
|
+
inputs: z.ZodArray<z.ZodNumber>;
|
|
684
|
+
property: z.ZodString;
|
|
685
|
+
type: z.ZodLiteral<"property">;
|
|
686
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
687
|
+
inputs: z.ZodArray<z.ZodNumber>;
|
|
688
|
+
type: z.ZodLiteral<"transform">;
|
|
689
|
+
}, z.core.$strip>], "type">>;
|
|
690
|
+
roots: z.ZodArray<z.ZodNumber>;
|
|
691
|
+
}, z.core.$strip>>;
|
|
692
|
+
coordinatorConfigurationHash: z.ZodOptional<z.ZodString>;
|
|
693
|
+
contextId: z.ZodString;
|
|
694
|
+
outcomeSeq: z.ZodNumber;
|
|
695
|
+
signalInvocationId: z.ZodString;
|
|
696
|
+
status: z.ZodLiteral<"closed">;
|
|
697
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
698
|
+
actionDependencyIds: z.ZodArray<z.ZodString>;
|
|
699
|
+
eventDependencyIds: z.ZodArray<z.ZodString>;
|
|
700
|
+
scopePath: z.ZodArray<z.ZodNumber>;
|
|
701
|
+
signalDependencyIds: z.ZodArray<z.ZodString>;
|
|
702
|
+
slot: z.ZodNumber;
|
|
703
|
+
derivation: z.ZodNullable<z.ZodObject<{
|
|
704
|
+
nodes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
705
|
+
id: z.ZodString;
|
|
706
|
+
source: z.ZodEnum<{
|
|
707
|
+
action: "action";
|
|
708
|
+
event: "event";
|
|
709
|
+
signal: "signal";
|
|
710
|
+
}>;
|
|
711
|
+
type: z.ZodLiteral<"source">;
|
|
712
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
713
|
+
inputs: z.ZodArray<z.ZodNumber>;
|
|
714
|
+
property: z.ZodString;
|
|
715
|
+
type: z.ZodLiteral<"property">;
|
|
716
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
717
|
+
inputs: z.ZodArray<z.ZodNumber>;
|
|
718
|
+
type: z.ZodLiteral<"transform">;
|
|
719
|
+
}, z.core.$strip>], "type">>;
|
|
720
|
+
roots: z.ZodArray<z.ZodNumber>;
|
|
721
|
+
}, z.core.$strip>>;
|
|
722
|
+
coordinatorConfigurationHash: z.ZodOptional<z.ZodString>;
|
|
723
|
+
contextId: z.ZodString;
|
|
724
|
+
outcomeSeq: z.ZodNumber;
|
|
725
|
+
signalInvocationId: z.ZodString;
|
|
726
|
+
failure: z.ZodType<import("./errors").AutomationErrorValue, import("./errors").AutomationErrorValue, z.core.$ZodTypeInternals<import("./errors").AutomationErrorValue, import("./errors").AutomationErrorValue>>;
|
|
727
|
+
status: z.ZodLiteral<"failed">;
|
|
728
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
729
|
+
actionDependencyIds: z.ZodArray<z.ZodString>;
|
|
730
|
+
eventDependencyIds: z.ZodArray<z.ZodString>;
|
|
731
|
+
scopePath: z.ZodArray<z.ZodNumber>;
|
|
732
|
+
signalDependencyIds: z.ZodArray<z.ZodString>;
|
|
733
|
+
slot: z.ZodNumber;
|
|
734
|
+
derivation: z.ZodNullable<z.ZodObject<{
|
|
735
|
+
nodes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
736
|
+
id: z.ZodString;
|
|
737
|
+
source: z.ZodEnum<{
|
|
738
|
+
action: "action";
|
|
739
|
+
event: "event";
|
|
740
|
+
signal: "signal";
|
|
741
|
+
}>;
|
|
742
|
+
type: z.ZodLiteral<"source">;
|
|
743
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
744
|
+
inputs: z.ZodArray<z.ZodNumber>;
|
|
745
|
+
property: z.ZodString;
|
|
746
|
+
type: z.ZodLiteral<"property">;
|
|
747
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
748
|
+
inputs: z.ZodArray<z.ZodNumber>;
|
|
749
|
+
type: z.ZodLiteral<"transform">;
|
|
750
|
+
}, z.core.$strip>], "type">>;
|
|
751
|
+
roots: z.ZodArray<z.ZodNumber>;
|
|
752
|
+
}, z.core.$strip>>;
|
|
753
|
+
coordinatorConfigurationHash: z.ZodOptional<z.ZodString>;
|
|
754
|
+
contextId: z.ZodString;
|
|
755
|
+
outcomeSeq: z.ZodNumber;
|
|
756
|
+
signalInvocationId: z.ZodString;
|
|
757
|
+
selectedIndex: z.ZodOptional<z.ZodNumber>;
|
|
758
|
+
status: z.ZodLiteral<"succeeded">;
|
|
759
|
+
}, z.core.$strip>]>>;
|
|
760
|
+
}, z.core.$strip>;
|
|
761
|
+
/** Durable frontier and declarations loaded for one runtime traversal. */
|
|
762
|
+
export type RuntimeRunContext = z.output<typeof RUNTIME_RUN_CONTEXT_SCHEMA>;
|
|
763
|
+
declare const TARGET_ACTION_SCHEMA: z.ZodUnion<readonly [z.ZodObject<{
|
|
764
|
+
context: z.ZodObject<{
|
|
765
|
+
actionOutputs: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
766
|
+
actionInvocationId: z.ZodString;
|
|
767
|
+
contextId: z.ZodString;
|
|
768
|
+
scopePath: z.ZodArray<z.ZodNumber>;
|
|
769
|
+
slot: z.ZodNumber;
|
|
770
|
+
timestamp: z.ZodDate;
|
|
771
|
+
outcomeSeq: z.ZodNumber;
|
|
772
|
+
status: z.ZodLiteral<"failed">;
|
|
773
|
+
failure: z.ZodType<import("./errors").AutomationErrorValue, import("./errors").AutomationErrorValue, z.core.$ZodTypeInternals<import("./errors").AutomationErrorValue, import("./errors").AutomationErrorValue>>;
|
|
774
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
775
|
+
actionInvocationId: z.ZodString;
|
|
776
|
+
contextId: z.ZodString;
|
|
777
|
+
outcomeSeq: z.ZodNumber;
|
|
778
|
+
scopePath: z.ZodArray<z.ZodNumber>;
|
|
779
|
+
slot: z.ZodNumber;
|
|
780
|
+
timestamp: z.ZodDate;
|
|
781
|
+
reason: z.ZodLiteral<"closed-dependency">;
|
|
782
|
+
status: z.ZodLiteral<"skipped">;
|
|
783
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
784
|
+
actionInvocationId: z.ZodString;
|
|
785
|
+
contextId: z.ZodString;
|
|
786
|
+
outcomeSeq: z.ZodNumber;
|
|
787
|
+
scopePath: z.ZodArray<z.ZodNumber>;
|
|
788
|
+
slot: z.ZodNumber;
|
|
789
|
+
timestamp: z.ZodDate;
|
|
790
|
+
failure: z.ZodType<import("./errors").AutomationErrorValue, import("./errors").AutomationErrorValue, z.core.$ZodTypeInternals<import("./errors").AutomationErrorValue, import("./errors").AutomationErrorValue>>;
|
|
791
|
+
reason: z.ZodLiteral<"failed-dependency">;
|
|
792
|
+
status: z.ZodLiteral<"skipped">;
|
|
793
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
794
|
+
actionInvocationId: z.ZodString;
|
|
795
|
+
contextId: z.ZodString;
|
|
796
|
+
outcomeSeq: z.ZodNumber;
|
|
797
|
+
scopePath: z.ZodArray<z.ZodNumber>;
|
|
798
|
+
slot: z.ZodNumber;
|
|
799
|
+
timestamp: z.ZodDate;
|
|
800
|
+
output: z.ZodOptional<z.ZodCustom<import("@automate.ax/codec").Encodable, import("@automate.ax/codec").Encodable>>;
|
|
801
|
+
outputSensitivity: z.ZodOptional<z.ZodNullable<z.ZodCustom<SensitivityMask, SensitivityMask>>>;
|
|
802
|
+
status: z.ZodLiteral<"succeeded">;
|
|
803
|
+
}, z.core.$strip>]>>;
|
|
804
|
+
coordinationSelections: z.ZodArray<z.ZodObject<{
|
|
805
|
+
items: z.ZodArray<z.ZodObject<{
|
|
806
|
+
actionDependencyIds: z.ZodArray<z.ZodString>;
|
|
807
|
+
derivation: z.ZodNullable<z.ZodObject<{
|
|
808
|
+
nodes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
809
|
+
id: z.ZodString;
|
|
810
|
+
source: z.ZodEnum<{
|
|
811
|
+
action: "action";
|
|
812
|
+
event: "event";
|
|
813
|
+
signal: "signal";
|
|
814
|
+
}>;
|
|
815
|
+
type: z.ZodLiteral<"source">;
|
|
816
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
817
|
+
inputs: z.ZodArray<z.ZodNumber>;
|
|
818
|
+
property: z.ZodString;
|
|
819
|
+
type: z.ZodLiteral<"property">;
|
|
820
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
821
|
+
inputs: z.ZodArray<z.ZodNumber>;
|
|
822
|
+
type: z.ZodLiteral<"transform">;
|
|
823
|
+
}, z.core.$strip>], "type">>;
|
|
824
|
+
roots: z.ZodArray<z.ZodNumber>;
|
|
825
|
+
}, z.core.$strip>>;
|
|
826
|
+
eventDependencyIds: z.ZodArray<z.ZodString>;
|
|
827
|
+
signalDependencyIds: z.ZodArray<z.ZodString>;
|
|
828
|
+
contextId: z.ZodString;
|
|
829
|
+
}, z.core.$strip>>;
|
|
830
|
+
signalInvocationId: z.ZodString;
|
|
831
|
+
}, z.core.$strip>>;
|
|
832
|
+
contextId: z.ZodString;
|
|
833
|
+
contextParents: z.ZodArray<z.ZodObject<{
|
|
834
|
+
contextId: z.ZodString;
|
|
835
|
+
isPrimary: z.ZodBoolean;
|
|
836
|
+
parentContextId: z.ZodString;
|
|
837
|
+
position: z.ZodNumber;
|
|
838
|
+
}, z.core.$strip>>;
|
|
839
|
+
events: z.ZodArray<z.ZodObject<{
|
|
840
|
+
automationEventId: z.ZodString;
|
|
841
|
+
contextId: z.ZodString;
|
|
842
|
+
outcomeSeq: z.ZodNumber;
|
|
843
|
+
payload: z.ZodOptional<z.ZodCustom<import("@automate.ax/codec").Encodable, import("@automate.ax/codec").Encodable>>;
|
|
844
|
+
scopePath: z.ZodArray<z.ZodNumber>;
|
|
845
|
+
slot: z.ZodNumber;
|
|
846
|
+
timestamp: z.ZodDate;
|
|
847
|
+
}, z.core.$strip>>;
|
|
848
|
+
signalOutputs: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
849
|
+
contextId: z.ZodString;
|
|
850
|
+
outcomeSeq: z.ZodNumber;
|
|
851
|
+
scopePath: z.ZodArray<z.ZodNumber>;
|
|
852
|
+
signalInvocationId: z.ZodString;
|
|
853
|
+
slot: z.ZodNumber;
|
|
854
|
+
timestamp: z.ZodDate;
|
|
855
|
+
status: z.ZodLiteral<"open">;
|
|
856
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
857
|
+
contextId: z.ZodString;
|
|
858
|
+
outcomeSeq: z.ZodNumber;
|
|
859
|
+
scopePath: z.ZodArray<z.ZodNumber>;
|
|
860
|
+
signalInvocationId: z.ZodString;
|
|
861
|
+
slot: z.ZodNumber;
|
|
862
|
+
timestamp: z.ZodDate;
|
|
863
|
+
status: z.ZodLiteral<"closed">;
|
|
864
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
865
|
+
contextId: z.ZodString;
|
|
866
|
+
outcomeSeq: z.ZodNumber;
|
|
867
|
+
scopePath: z.ZodArray<z.ZodNumber>;
|
|
868
|
+
signalInvocationId: z.ZodString;
|
|
869
|
+
slot: z.ZodNumber;
|
|
870
|
+
timestamp: z.ZodDate;
|
|
871
|
+
failure: z.ZodType<import("./errors").AutomationErrorValue, import("./errors").AutomationErrorValue, z.core.$ZodTypeInternals<import("./errors").AutomationErrorValue, import("./errors").AutomationErrorValue>>;
|
|
872
|
+
status: z.ZodLiteral<"failed">;
|
|
873
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
874
|
+
contextId: z.ZodString;
|
|
875
|
+
outcomeSeq: z.ZodNumber;
|
|
876
|
+
scopePath: z.ZodArray<z.ZodNumber>;
|
|
877
|
+
signalInvocationId: z.ZodString;
|
|
878
|
+
slot: z.ZodNumber;
|
|
879
|
+
timestamp: z.ZodDate;
|
|
880
|
+
output: z.ZodOptional<z.ZodOptional<z.ZodCustom<import("@automate.ax/codec").Encodable, import("@automate.ax/codec").Encodable>>>;
|
|
881
|
+
selectedIndex: z.ZodOptional<z.ZodNumber>;
|
|
882
|
+
status: z.ZodLiteral<"succeeded">;
|
|
883
|
+
}, z.core.$strip>]>>;
|
|
884
|
+
}, z.core.$strip>;
|
|
885
|
+
id: z.ZodString;
|
|
886
|
+
scopePath: z.ZodArray<z.ZodNumber>;
|
|
887
|
+
slot: z.ZodNumber;
|
|
888
|
+
status: z.ZodLiteral<"pending">;
|
|
889
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
890
|
+
id: z.ZodString;
|
|
891
|
+
scopePath: z.ZodArray<z.ZodNumber>;
|
|
892
|
+
slot: z.ZodNumber;
|
|
893
|
+
status: z.ZodEnum<{
|
|
894
|
+
succeeded: "succeeded";
|
|
895
|
+
failed: "failed";
|
|
896
|
+
skipped: "skipped";
|
|
897
|
+
}>;
|
|
898
|
+
}, z.core.$strip>]>;
|
|
899
|
+
/** Optional action targeted by one runtime execution. */
|
|
900
|
+
export type RuntimeTargetAction = z.output<typeof TARGET_ACTION_SCHEMA>;
|
|
339
901
|
/** Shared text-generation options accepted by the built-in generate action. */
|
|
340
902
|
export declare const generationInputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
341
903
|
frequencyPenalty: z.ZodOptional<z.ZodNumber>;
|
|
@@ -603,6 +1165,22 @@ export type ImageGenerationInput = z.output<typeof imageGenerationInputSchema>;
|
|
|
603
1165
|
export type ImageGenerationResult = z.output<typeof imageGenerationResultSchema>;
|
|
604
1166
|
export type ImageGenerationCompletion = z.output<typeof imageGenerationCompletionSchema>;
|
|
605
1167
|
export type PlatformImageGenerationInput = z.output<typeof platformImageGenerationInputSchema>;
|
|
1168
|
+
declare const ACTION_COMPLETION_SCHEMA: z.ZodUnion<readonly [z.ZodObject<{
|
|
1169
|
+
reason: z.ZodLiteral<"closed-dependency">;
|
|
1170
|
+
status: z.ZodLiteral<"skipped">;
|
|
1171
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1172
|
+
failure: z.ZodType<import("./errors").AutomationErrorValue, import("./errors").AutomationErrorValue, z.core.$ZodTypeInternals<import("./errors").AutomationErrorValue, import("./errors").AutomationErrorValue>>;
|
|
1173
|
+
reason: z.ZodLiteral<"failed-dependency">;
|
|
1174
|
+
status: z.ZodLiteral<"skipped">;
|
|
1175
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1176
|
+
failure: z.ZodType<import("./errors").AutomationErrorValue, import("./errors").AutomationErrorValue, z.core.$ZodTypeInternals<import("./errors").AutomationErrorValue, import("./errors").AutomationErrorValue>>;
|
|
1177
|
+
status: z.ZodLiteral<"failed">;
|
|
1178
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1179
|
+
output: z.ZodOptional<z.ZodCustom<import("@automate.ax/codec").Encodable, import("@automate.ax/codec").Encodable>>;
|
|
1180
|
+
status: z.ZodLiteral<"succeeded">;
|
|
1181
|
+
}, z.core.$strip>]>;
|
|
1182
|
+
/** Terminal action result produced inside an automation runtime. */
|
|
1183
|
+
export type RuntimeActionCompletion = z.output<typeof ACTION_COMPLETION_SCHEMA>;
|
|
606
1184
|
/**
|
|
607
1185
|
* Hashes one coordinator definition exactly as the runtime stores it.
|
|
608
1186
|
*
|
|
@@ -732,7 +1310,7 @@ export declare const runtimeContract: {
|
|
|
732
1310
|
roots: z.ZodArray<z.ZodNumber>;
|
|
733
1311
|
}, z.core.$strip>>;
|
|
734
1312
|
count: z.ZodNumber;
|
|
735
|
-
key: z.
|
|
1313
|
+
key: z.ZodCustom<import("@automate.ax/codec/rpc").CodecEnvelope, import("@automate.ax/codec/rpc").CodecEnvelope>;
|
|
736
1314
|
outcomeSeq: z.ZodNumber;
|
|
737
1315
|
policy: z.ZodLiteral<"collect">;
|
|
738
1316
|
position: z.ZodOptional<z.ZodNumber>;
|
|
@@ -766,7 +1344,7 @@ export declare const runtimeContract: {
|
|
|
766
1344
|
}, z.core.$strip>], "type">>;
|
|
767
1345
|
roots: z.ZodArray<z.ZodNumber>;
|
|
768
1346
|
}, z.core.$strip>>;
|
|
769
|
-
key: z.
|
|
1347
|
+
key: z.ZodCustom<import("@automate.ax/codec/rpc").CodecEnvelope, import("@automate.ax/codec/rpc").CodecEnvelope>;
|
|
770
1348
|
ordered: z.ZodBoolean;
|
|
771
1349
|
outcomeSeq: z.ZodNumber;
|
|
772
1350
|
policy: z.ZodLiteral<"correlate">;
|
|
@@ -826,7 +1404,7 @@ export declare const runtimeContract: {
|
|
|
826
1404
|
}, z.core.$strip>], "type">>;
|
|
827
1405
|
roots: z.ZodArray<z.ZodNumber>;
|
|
828
1406
|
}, z.core.$strip>>;
|
|
829
|
-
key: z.
|
|
1407
|
+
key: z.ZodCustom<import("@automate.ax/codec/rpc").CodecEnvelope, import("@automate.ax/codec/rpc").CodecEnvelope>;
|
|
830
1408
|
maxBurstDuration: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
831
1409
|
minGap: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
832
1410
|
minQuietPeriod: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
@@ -1078,7 +1656,7 @@ export declare const runtimeContract: {
|
|
|
1078
1656
|
failure: z.ZodType<import("./errors").AutomationErrorValue, import("./errors").AutomationErrorValue, z.core.$ZodTypeInternals<import("./errors").AutomationErrorValue, import("./errors").AutomationErrorValue>>;
|
|
1079
1657
|
status: z.ZodLiteral<"failed">;
|
|
1080
1658
|
}, z.core.$strip>, z.ZodObject<{
|
|
1081
|
-
output: z.
|
|
1659
|
+
output: z.ZodCustom<import("@automate.ax/codec/rpc").CodecEnvelope, import("@automate.ax/codec/rpc").CodecEnvelope>;
|
|
1082
1660
|
status: z.ZodLiteral<"succeeded">;
|
|
1083
1661
|
}, z.core.$strip>]>, z.ZodVoid, Record<never, never>, Record<never, never>>;
|
|
1084
1662
|
completeTraceSpan: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodIntersection<z.ZodObject<{
|
|
@@ -1141,6 +1719,7 @@ export declare const runtimeContract: {
|
|
|
1141
1719
|
schema: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
|
|
1142
1720
|
}, z.core.$strip>>;
|
|
1143
1721
|
}, z.core.$strip>]>, z.ZodObject<{
|
|
1722
|
+
text: z.ZodString;
|
|
1144
1723
|
finishReason: z.ZodEnum<{
|
|
1145
1724
|
error: "error";
|
|
1146
1725
|
length: "length";
|
|
@@ -1149,8 +1728,6 @@ export declare const runtimeContract: {
|
|
|
1149
1728
|
"content-filter": "content-filter";
|
|
1150
1729
|
"tool-calls": "tool-calls";
|
|
1151
1730
|
}>;
|
|
1152
|
-
output: z.ZodOptional<z.ZodCustom<import("@automate.ax/codec").Encodable, import("@automate.ax/codec").Encodable>>;
|
|
1153
|
-
providerMetadata: z.ZodOptional<z.ZodCustom<import("@automate.ax/codec").Encodable, import("@automate.ax/codec").Encodable>>;
|
|
1154
1731
|
rawFinishReason: z.ZodOptional<z.ZodString>;
|
|
1155
1732
|
reasoningText: z.ZodOptional<z.ZodString>;
|
|
1156
1733
|
response: z.ZodObject<{
|
|
@@ -1159,22 +1736,6 @@ export declare const runtimeContract: {
|
|
|
1159
1736
|
modelId: z.ZodString;
|
|
1160
1737
|
timestamp: z.ZodISODateTime;
|
|
1161
1738
|
}, z.core.$strip>;
|
|
1162
|
-
text: z.ZodString;
|
|
1163
|
-
usage: z.ZodObject<{
|
|
1164
|
-
inputTokenDetails: z.ZodObject<{
|
|
1165
|
-
cacheReadTokens: z.ZodOptional<z.ZodNumber>;
|
|
1166
|
-
cacheWriteTokens: z.ZodOptional<z.ZodNumber>;
|
|
1167
|
-
noCacheTokens: z.ZodOptional<z.ZodNumber>;
|
|
1168
|
-
}, z.core.$strip>;
|
|
1169
|
-
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
1170
|
-
outputTokenDetails: z.ZodObject<{
|
|
1171
|
-
reasoningTokens: z.ZodOptional<z.ZodNumber>;
|
|
1172
|
-
textTokens: z.ZodOptional<z.ZodNumber>;
|
|
1173
|
-
}, z.core.$strip>;
|
|
1174
|
-
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
1175
|
-
raw: z.ZodOptional<z.ZodCustom<import("@automate.ax/codec").Encodable, import("@automate.ax/codec").Encodable>>;
|
|
1176
|
-
totalTokens: z.ZodOptional<z.ZodNumber>;
|
|
1177
|
-
}, z.core.$strip>;
|
|
1178
1739
|
warnings: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1179
1740
|
details: z.ZodOptional<z.ZodString>;
|
|
1180
1741
|
feature: z.ZodString;
|
|
@@ -1191,23 +1752,36 @@ export declare const runtimeContract: {
|
|
|
1191
1752
|
message: z.ZodString;
|
|
1192
1753
|
type: z.ZodLiteral<"other">;
|
|
1193
1754
|
}, z.core.$strip>], "type">>>;
|
|
1755
|
+
output: z.ZodCustom<import("@automate.ax/codec/rpc").CodecEnvelope, import("@automate.ax/codec/rpc").CodecEnvelope>;
|
|
1756
|
+
providerMetadata: z.ZodCustom<import("@automate.ax/codec/rpc").CodecEnvelope, import("@automate.ax/codec/rpc").CodecEnvelope>;
|
|
1757
|
+
usage: z.ZodObject<{
|
|
1758
|
+
inputTokenDetails: z.ZodObject<{
|
|
1759
|
+
cacheReadTokens: z.ZodOptional<z.ZodNumber>;
|
|
1760
|
+
cacheWriteTokens: z.ZodOptional<z.ZodNumber>;
|
|
1761
|
+
noCacheTokens: z.ZodOptional<z.ZodNumber>;
|
|
1762
|
+
}, z.core.$strip>;
|
|
1763
|
+
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
1764
|
+
outputTokenDetails: z.ZodObject<{
|
|
1765
|
+
reasoningTokens: z.ZodOptional<z.ZodNumber>;
|
|
1766
|
+
textTokens: z.ZodOptional<z.ZodNumber>;
|
|
1767
|
+
}, z.core.$strip>;
|
|
1768
|
+
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
1769
|
+
totalTokens: z.ZodOptional<z.ZodNumber>;
|
|
1770
|
+
raw: z.ZodCustom<import("@automate.ax/codec/rpc").CodecEnvelope, import("@automate.ax/codec/rpc").CodecEnvelope>;
|
|
1771
|
+
}, z.core.$strip>;
|
|
1194
1772
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1195
1773
|
startImageGeneration: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1196
|
-
|
|
1197
|
-
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1198
|
-
maxImagesPerCall: z.ZodOptional<z.ZodNumber>;
|
|
1199
|
-
maxRetries: z.ZodOptional<z.ZodNumber>;
|
|
1774
|
+
entrypoint: z.ZodString;
|
|
1200
1775
|
model: z.ZodDefault<z.ZodCustom<GatewayImageModelId, GatewayImageModelId>>;
|
|
1201
|
-
|
|
1202
|
-
prompt: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1203
|
-
images: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>, z.ZodCustom<ArrayBuffer, ArrayBuffer>, z.ZodCustom<Blob, Blob>]>>;
|
|
1204
|
-
mask: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>, z.ZodCustom<ArrayBuffer, ArrayBuffer>, z.ZodCustom<Blob, Blob>]>>;
|
|
1205
|
-
text: z.ZodOptional<z.ZodString>;
|
|
1206
|
-
}, z.core.$strip>]>;
|
|
1776
|
+
maxRetries: z.ZodOptional<z.ZodNumber>;
|
|
1207
1777
|
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodJSONSchema>>>;
|
|
1208
1778
|
seed: z.ZodOptional<z.ZodNumber>;
|
|
1779
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1780
|
+
aspectRatio: z.ZodOptional<z.ZodCustom<`${number}:${number}`, `${number}:${number}`>>;
|
|
1781
|
+
maxImagesPerCall: z.ZodOptional<z.ZodNumber>;
|
|
1782
|
+
n: z.ZodOptional<z.ZodNumber>;
|
|
1209
1783
|
size: z.ZodOptional<z.ZodCustom<`${number}x${number}`, `${number}x${number}`>>;
|
|
1210
|
-
|
|
1784
|
+
prompt: z.ZodCustom<import("@automate.ax/codec/rpc").CodecEnvelope, import("@automate.ax/codec/rpc").CodecEnvelope>;
|
|
1211
1785
|
}, z.core.$strip>, z.ZodObject<{
|
|
1212
1786
|
key: z.ZodString;
|
|
1213
1787
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
@@ -1216,7 +1790,7 @@ export declare const runtimeContract: {
|
|
|
1216
1790
|
}, z.core.$strip>, z.ZodString, Record<never, never>, Record<never, never>>;
|
|
1217
1791
|
invokeAutomation: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
|
|
1218
1792
|
entrypoint: z.ZodDefault<z.ZodString>;
|
|
1219
|
-
payload: z.
|
|
1793
|
+
payload: z.ZodCustom<import("@automate.ax/codec/rpc").CodecEnvelope, import("@automate.ax/codec/rpc").CodecEnvelope>;
|
|
1220
1794
|
}, z.core.$strip>, z.ZodUnion<readonly [z.ZodObject<{
|
|
1221
1795
|
automationId: z.ZodString;
|
|
1222
1796
|
automationName: z.ZodOptional<z.ZodNever>;
|
|
@@ -1583,7 +2157,7 @@ export declare const runtimeContract: {
|
|
|
1583
2157
|
scopePath: z.ZodArray<z.ZodNumber>;
|
|
1584
2158
|
slot: z.ZodNumber;
|
|
1585
2159
|
timestamp: z.ZodDate;
|
|
1586
|
-
output: z.
|
|
2160
|
+
output: z.ZodCustom<import("@automate.ax/codec/rpc").CodecEnvelope, import("@automate.ax/codec/rpc").CodecEnvelope>;
|
|
1587
2161
|
outputSensitivity: z.ZodOptional<z.ZodNullable<z.ZodCustom<SensitivityMask, SensitivityMask>>>;
|
|
1588
2162
|
status: z.ZodLiteral<"succeeded">;
|
|
1589
2163
|
}, z.core.$strip>]>>;
|
|
@@ -1626,7 +2200,7 @@ export declare const runtimeContract: {
|
|
|
1626
2200
|
automationEventId: z.ZodString;
|
|
1627
2201
|
contextId: z.ZodString;
|
|
1628
2202
|
outcomeSeq: z.ZodNumber;
|
|
1629
|
-
payload: z.
|
|
2203
|
+
payload: z.ZodCustom<import("@automate.ax/codec/rpc").CodecEnvelope, import("@automate.ax/codec/rpc").CodecEnvelope>;
|
|
1630
2204
|
scopePath: z.ZodArray<z.ZodNumber>;
|
|
1631
2205
|
slot: z.ZodNumber;
|
|
1632
2206
|
timestamp: z.ZodDate;
|
|
@@ -1663,7 +2237,7 @@ export declare const runtimeContract: {
|
|
|
1663
2237
|
signalInvocationId: z.ZodString;
|
|
1664
2238
|
slot: z.ZodNumber;
|
|
1665
2239
|
timestamp: z.ZodDate;
|
|
1666
|
-
output: z.ZodOptional<z.
|
|
2240
|
+
output: z.ZodOptional<z.ZodCustom<import("@automate.ax/codec/rpc").CodecEnvelope, import("@automate.ax/codec/rpc").CodecEnvelope>>;
|
|
1667
2241
|
selectedIndex: z.ZodOptional<z.ZodNumber>;
|
|
1668
2242
|
status: z.ZodLiteral<"succeeded">;
|
|
1669
2243
|
}, z.core.$strip>]>>;
|
|
@@ -1723,7 +2297,7 @@ export declare const runtimeContract: {
|
|
|
1723
2297
|
scopePath: z.ZodArray<z.ZodNumber>;
|
|
1724
2298
|
slot: z.ZodNumber;
|
|
1725
2299
|
timestamp: z.ZodDate;
|
|
1726
|
-
output: z.
|
|
2300
|
+
output: z.ZodCustom<import("@automate.ax/codec/rpc").CodecEnvelope, import("@automate.ax/codec/rpc").CodecEnvelope>;
|
|
1727
2301
|
outputSensitivity: z.ZodOptional<z.ZodNullable<z.ZodCustom<SensitivityMask, SensitivityMask>>>;
|
|
1728
2302
|
status: z.ZodLiteral<"succeeded">;
|
|
1729
2303
|
}, z.core.$strip>]>>;
|
|
@@ -1766,7 +2340,7 @@ export declare const runtimeContract: {
|
|
|
1766
2340
|
automationEventId: z.ZodString;
|
|
1767
2341
|
contextId: z.ZodString;
|
|
1768
2342
|
outcomeSeq: z.ZodNumber;
|
|
1769
|
-
payload: z.
|
|
2343
|
+
payload: z.ZodCustom<import("@automate.ax/codec/rpc").CodecEnvelope, import("@automate.ax/codec/rpc").CodecEnvelope>;
|
|
1770
2344
|
scopePath: z.ZodArray<z.ZodNumber>;
|
|
1771
2345
|
slot: z.ZodNumber;
|
|
1772
2346
|
timestamp: z.ZodDate;
|
|
@@ -1803,7 +2377,7 @@ export declare const runtimeContract: {
|
|
|
1803
2377
|
signalInvocationId: z.ZodString;
|
|
1804
2378
|
slot: z.ZodNumber;
|
|
1805
2379
|
timestamp: z.ZodDate;
|
|
1806
|
-
output: z.ZodOptional<z.
|
|
2380
|
+
output: z.ZodOptional<z.ZodCustom<import("@automate.ax/codec/rpc").CodecEnvelope, import("@automate.ax/codec/rpc").CodecEnvelope>>;
|
|
1807
2381
|
selectedIndex: z.ZodOptional<z.ZodNumber>;
|
|
1808
2382
|
status: z.ZodLiteral<"succeeded">;
|
|
1809
2383
|
}, z.core.$strip>]>>;
|
|
@@ -1818,14 +2392,14 @@ export declare const runtimeContract: {
|
|
|
1818
2392
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1819
2393
|
sendOutput: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1820
2394
|
output: z.ZodObject<{
|
|
1821
|
-
data: z.
|
|
2395
|
+
data: z.ZodCustom<import("@automate.ax/codec/rpc").CodecEnvelope, import("@automate.ax/codec/rpc").CodecEnvelope>;
|
|
1822
2396
|
type: z.ZodString;
|
|
1823
2397
|
}, z.core.$strip>;
|
|
1824
2398
|
outputIndex: z.ZodNumber;
|
|
1825
2399
|
sensitivity: z.ZodOptional<z.ZodCustom<SensitivityMask, SensitivityMask>>;
|
|
1826
2400
|
}, z.core.$strip>, z.ZodVoid, Record<never, never>, Record<never, never>>;
|
|
1827
2401
|
sendLog: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1828
|
-
fields: z.ZodOptional<z.
|
|
2402
|
+
fields: z.ZodOptional<z.ZodCustom<import("@automate.ax/codec/rpc").CodecEnvelope, import("@automate.ax/codec/rpc").CodecEnvelope>>;
|
|
1829
2403
|
level: z.ZodEnum<{
|
|
1830
2404
|
error: "error";
|
|
1831
2405
|
debug: "debug";
|
|
@@ -1839,7 +2413,7 @@ export declare const runtimeContract: {
|
|
|
1839
2413
|
timestamp: z.ZodDate;
|
|
1840
2414
|
}, z.core.$strip>, z.ZodVoid, Record<never, never>, Record<never, never>>;
|
|
1841
2415
|
startTraceSpan: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1842
|
-
attributes: z.ZodOptional<z.
|
|
2416
|
+
attributes: z.ZodOptional<z.ZodCustom<import("@automate.ax/codec/rpc").CodecEnvelope, import("@automate.ax/codec/rpc").CodecEnvelope>>;
|
|
1843
2417
|
name: z.ZodString;
|
|
1844
2418
|
sensitivity: z.ZodOptional<z.ZodCustom<SensitivityMask, SensitivityMask>>;
|
|
1845
2419
|
parentSpanIndex: z.ZodOptional<z.ZodNumber>;
|