@automate.ax/api-contract 0.79.1 → 0.81.0
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/index.d.ts +67 -55
- package/dist/runtime.d.ts +90 -66
- package/dist/runtime.js +14 -31
- package/package.json +2 -2
- package/src/runtime.ts +14 -37
package/dist/index.d.ts
CHANGED
|
@@ -2208,13 +2208,13 @@ export declare const contract: {
|
|
|
2208
2208
|
};
|
|
2209
2209
|
runtime: {
|
|
2210
2210
|
commit: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
2211
|
-
actionInvocations: import("zod").
|
|
2211
|
+
actionInvocations: import("zod").ZodArray<import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
2212
2212
|
actionDependencyIds: import("zod").ZodArray<import("zod").ZodString>;
|
|
2213
2213
|
description: import("zod").ZodNullable<import("zod").ZodString>;
|
|
2214
2214
|
eventDependencyIds: import("zod").ZodArray<import("zod").ZodString>;
|
|
2215
2215
|
inputHash: import("zod").ZodString;
|
|
2216
2216
|
name: import("zod").ZodString;
|
|
2217
|
-
scopePath: import("zod").
|
|
2217
|
+
scopePath: import("zod").ZodArray<import("zod").ZodNumber>;
|
|
2218
2218
|
signalDependencyIds: import("zod").ZodArray<import("zod").ZodString>;
|
|
2219
2219
|
slot: import("zod").ZodNumber;
|
|
2220
2220
|
status: import("zod").ZodLiteral<"pending">;
|
|
@@ -2224,7 +2224,7 @@ export declare const contract: {
|
|
|
2224
2224
|
eventDependencyIds: import("zod").ZodArray<import("zod").ZodString>;
|
|
2225
2225
|
inputHash: import("zod").ZodString;
|
|
2226
2226
|
name: import("zod").ZodString;
|
|
2227
|
-
scopePath: import("zod").
|
|
2227
|
+
scopePath: import("zod").ZodArray<import("zod").ZodNumber>;
|
|
2228
2228
|
signalDependencyIds: import("zod").ZodArray<import("zod").ZodString>;
|
|
2229
2229
|
slot: import("zod").ZodNumber;
|
|
2230
2230
|
reason: import("zod").ZodLiteral<"closed-dependency">;
|
|
@@ -2235,17 +2235,17 @@ export declare const contract: {
|
|
|
2235
2235
|
eventDependencyIds: import("zod").ZodArray<import("zod").ZodString>;
|
|
2236
2236
|
inputHash: import("zod").ZodString;
|
|
2237
2237
|
name: import("zod").ZodString;
|
|
2238
|
-
scopePath: import("zod").
|
|
2238
|
+
scopePath: import("zod").ZodArray<import("zod").ZodNumber>;
|
|
2239
2239
|
signalDependencyIds: import("zod").ZodArray<import("zod").ZodString>;
|
|
2240
2240
|
slot: import("zod").ZodNumber;
|
|
2241
2241
|
failure: import("zod").ZodType<import("./errors").AutomationErrorValue, import("./errors").AutomationErrorValue, import("zod/v4/core").$ZodTypeInternals<import("./errors").AutomationErrorValue, import("./errors").AutomationErrorValue>>;
|
|
2242
2242
|
reason: import("zod").ZodLiteral<"failed-dependency">;
|
|
2243
2243
|
status: import("zod").ZodLiteral<"skipped">;
|
|
2244
|
-
}, import("zod/v4/core").$strip>]
|
|
2245
|
-
coordinationOffers: import("zod").
|
|
2244
|
+
}, import("zod/v4/core").$strip>]>>;
|
|
2245
|
+
coordinationOffers: import("zod").ZodArray<import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
2246
2246
|
actionDependencyIds: import("zod").ZodArray<import("zod").ZodString>;
|
|
2247
2247
|
eventDependencyIds: import("zod").ZodArray<import("zod").ZodString>;
|
|
2248
|
-
scopePath: import("zod").
|
|
2248
|
+
scopePath: import("zod").ZodArray<import("zod").ZodNumber>;
|
|
2249
2249
|
signalDependencyIds: import("zod").ZodArray<import("zod").ZodString>;
|
|
2250
2250
|
slot: import("zod").ZodNumber;
|
|
2251
2251
|
count: import("zod").ZodNumber;
|
|
@@ -2261,7 +2261,7 @@ export declare const contract: {
|
|
|
2261
2261
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
2262
2262
|
actionDependencyIds: import("zod").ZodArray<import("zod").ZodString>;
|
|
2263
2263
|
eventDependencyIds: import("zod").ZodArray<import("zod").ZodString>;
|
|
2264
|
-
scopePath: import("zod").
|
|
2264
|
+
scopePath: import("zod").ZodArray<import("zod").ZodNumber>;
|
|
2265
2265
|
signalDependencyIds: import("zod").ZodArray<import("zod").ZodString>;
|
|
2266
2266
|
slot: import("zod").ZodNumber;
|
|
2267
2267
|
key: import("zod").ZodOptional<import("zod").ZodCustom<import("@automate.ax/codec").Encodable, import("@automate.ax/codec").Encodable>>;
|
|
@@ -2274,7 +2274,7 @@ export declare const contract: {
|
|
|
2274
2274
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
2275
2275
|
actionDependencyIds: import("zod").ZodArray<import("zod").ZodString>;
|
|
2276
2276
|
eventDependencyIds: import("zod").ZodArray<import("zod").ZodString>;
|
|
2277
|
-
scopePath: import("zod").
|
|
2277
|
+
scopePath: import("zod").ZodArray<import("zod").ZodNumber>;
|
|
2278
2278
|
signalDependencyIds: import("zod").ZodArray<import("zod").ZodString>;
|
|
2279
2279
|
slot: import("zod").ZodNumber;
|
|
2280
2280
|
count: import("zod").ZodNumber;
|
|
@@ -2283,7 +2283,7 @@ export declare const contract: {
|
|
|
2283
2283
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
2284
2284
|
actionDependencyIds: import("zod").ZodArray<import("zod").ZodString>;
|
|
2285
2285
|
eventDependencyIds: import("zod").ZodArray<import("zod").ZodString>;
|
|
2286
|
-
scopePath: import("zod").
|
|
2286
|
+
scopePath: import("zod").ZodArray<import("zod").ZodNumber>;
|
|
2287
2287
|
signalDependencyIds: import("zod").ZodArray<import("zod").ZodString>;
|
|
2288
2288
|
slot: import("zod").ZodNumber;
|
|
2289
2289
|
key: import("zod").ZodOptional<import("zod").ZodCustom<import("@automate.ax/codec").Encodable, import("@automate.ax/codec").Encodable>>;
|
|
@@ -2311,46 +2311,58 @@ export declare const contract: {
|
|
|
2311
2311
|
}, import("zod/v4/core").$strip>, import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
2312
2312
|
actionDependencyIds: import("zod").ZodArray<import("zod").ZodString>;
|
|
2313
2313
|
eventDependencyIds: import("zod").ZodArray<import("zod").ZodString>;
|
|
2314
|
-
scopePath: import("zod").
|
|
2314
|
+
scopePath: import("zod").ZodArray<import("zod").ZodNumber>;
|
|
2315
2315
|
signalDependencyIds: import("zod").ZodArray<import("zod").ZodString>;
|
|
2316
2316
|
slot: import("zod").ZodNumber;
|
|
2317
|
+
cohortActionDependencyIds: import("zod").ZodArray<import("zod").ZodString>;
|
|
2318
|
+
cohortEventDependencyIds: import("zod").ZodArray<import("zod").ZodString>;
|
|
2319
|
+
cohortOrigins: import("zod").ZodArray<import("zod").ZodString>;
|
|
2320
|
+
cohortSignalDependencyIds: import("zod").ZodArray<import("zod").ZodString>;
|
|
2317
2321
|
inputOrigins: import("zod").ZodArray<import("zod").ZodArray<import("zod").ZodString>>;
|
|
2318
2322
|
outcomeSeq: import("zod").ZodNumber;
|
|
2319
2323
|
policy: import("zod").ZodLiteral<"race">;
|
|
2320
|
-
scopeOrigins: import("zod").
|
|
2324
|
+
scopeOrigins: import("zod").ZodArray<import("zod").ZodString>;
|
|
2321
2325
|
selectedIndex: import("zod").ZodNumber;
|
|
2322
2326
|
status: import("zod").ZodLiteral<"closed">;
|
|
2323
2327
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
2324
2328
|
actionDependencyIds: import("zod").ZodArray<import("zod").ZodString>;
|
|
2325
2329
|
eventDependencyIds: import("zod").ZodArray<import("zod").ZodString>;
|
|
2326
|
-
scopePath: import("zod").
|
|
2330
|
+
scopePath: import("zod").ZodArray<import("zod").ZodNumber>;
|
|
2327
2331
|
signalDependencyIds: import("zod").ZodArray<import("zod").ZodString>;
|
|
2328
2332
|
slot: import("zod").ZodNumber;
|
|
2333
|
+
cohortActionDependencyIds: import("zod").ZodArray<import("zod").ZodString>;
|
|
2334
|
+
cohortEventDependencyIds: import("zod").ZodArray<import("zod").ZodString>;
|
|
2335
|
+
cohortOrigins: import("zod").ZodArray<import("zod").ZodString>;
|
|
2336
|
+
cohortSignalDependencyIds: import("zod").ZodArray<import("zod").ZodString>;
|
|
2329
2337
|
inputOrigins: import("zod").ZodArray<import("zod").ZodArray<import("zod").ZodString>>;
|
|
2330
2338
|
outcomeSeq: import("zod").ZodNumber;
|
|
2331
2339
|
policy: import("zod").ZodLiteral<"race">;
|
|
2332
|
-
scopeOrigins: import("zod").
|
|
2340
|
+
scopeOrigins: import("zod").ZodArray<import("zod").ZodString>;
|
|
2333
2341
|
selectedIndex: import("zod").ZodNumber;
|
|
2334
2342
|
failure: import("zod").ZodType<import("./errors").AutomationErrorValue, import("./errors").AutomationErrorValue, import("zod/v4/core").$ZodTypeInternals<import("./errors").AutomationErrorValue, import("./errors").AutomationErrorValue>>;
|
|
2335
2343
|
status: import("zod").ZodLiteral<"failed">;
|
|
2336
2344
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
2337
2345
|
actionDependencyIds: import("zod").ZodArray<import("zod").ZodString>;
|
|
2338
2346
|
eventDependencyIds: import("zod").ZodArray<import("zod").ZodString>;
|
|
2339
|
-
scopePath: import("zod").
|
|
2347
|
+
scopePath: import("zod").ZodArray<import("zod").ZodNumber>;
|
|
2340
2348
|
signalDependencyIds: import("zod").ZodArray<import("zod").ZodString>;
|
|
2341
2349
|
slot: import("zod").ZodNumber;
|
|
2350
|
+
cohortActionDependencyIds: import("zod").ZodArray<import("zod").ZodString>;
|
|
2351
|
+
cohortEventDependencyIds: import("zod").ZodArray<import("zod").ZodString>;
|
|
2352
|
+
cohortOrigins: import("zod").ZodArray<import("zod").ZodString>;
|
|
2353
|
+
cohortSignalDependencyIds: import("zod").ZodArray<import("zod").ZodString>;
|
|
2342
2354
|
inputOrigins: import("zod").ZodArray<import("zod").ZodArray<import("zod").ZodString>>;
|
|
2343
2355
|
outcomeSeq: import("zod").ZodNumber;
|
|
2344
2356
|
policy: import("zod").ZodLiteral<"race">;
|
|
2345
|
-
scopeOrigins: import("zod").
|
|
2357
|
+
scopeOrigins: import("zod").ZodArray<import("zod").ZodString>;
|
|
2346
2358
|
selectedIndex: import("zod").ZodNumber;
|
|
2347
2359
|
status: import("zod").ZodLiteral<"succeeded">;
|
|
2348
|
-
}, import("zod/v4/core").$strip>]>]
|
|
2349
|
-
settled: import("zod").
|
|
2350
|
-
signalInvocations: import("zod").
|
|
2360
|
+
}, import("zod/v4/core").$strip>]>]>>;
|
|
2361
|
+
settled: import("zod").ZodBoolean;
|
|
2362
|
+
signalInvocations: import("zod").ZodArray<import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
2351
2363
|
actionDependencyIds: import("zod").ZodArray<import("zod").ZodString>;
|
|
2352
2364
|
eventDependencyIds: import("zod").ZodArray<import("zod").ZodString>;
|
|
2353
|
-
scopePath: import("zod").
|
|
2365
|
+
scopePath: import("zod").ZodArray<import("zod").ZodNumber>;
|
|
2354
2366
|
signalDependencyIds: import("zod").ZodArray<import("zod").ZodString>;
|
|
2355
2367
|
slot: import("zod").ZodNumber;
|
|
2356
2368
|
outcomeSeq: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
@@ -2358,7 +2370,7 @@ export declare const contract: {
|
|
|
2358
2370
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
2359
2371
|
actionDependencyIds: import("zod").ZodArray<import("zod").ZodString>;
|
|
2360
2372
|
eventDependencyIds: import("zod").ZodArray<import("zod").ZodString>;
|
|
2361
|
-
scopePath: import("zod").
|
|
2373
|
+
scopePath: import("zod").ZodArray<import("zod").ZodNumber>;
|
|
2362
2374
|
signalDependencyIds: import("zod").ZodArray<import("zod").ZodString>;
|
|
2363
2375
|
slot: import("zod").ZodNumber;
|
|
2364
2376
|
failure: import("zod").ZodType<import("./errors").AutomationErrorValue, import("./errors").AutomationErrorValue, import("zod/v4/core").$ZodTypeInternals<import("./errors").AutomationErrorValue, import("./errors").AutomationErrorValue>>;
|
|
@@ -2366,7 +2378,7 @@ export declare const contract: {
|
|
|
2366
2378
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
2367
2379
|
actionDependencyIds: import("zod").ZodArray<import("zod").ZodString>;
|
|
2368
2380
|
eventDependencyIds: import("zod").ZodArray<import("zod").ZodString>;
|
|
2369
|
-
scopePath: import("zod").
|
|
2381
|
+
scopePath: import("zod").ZodArray<import("zod").ZodNumber>;
|
|
2370
2382
|
signalDependencyIds: import("zod").ZodArray<import("zod").ZodString>;
|
|
2371
2383
|
slot: import("zod").ZodNumber;
|
|
2372
2384
|
outcomeSeq: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
@@ -2374,13 +2386,13 @@ export declare const contract: {
|
|
|
2374
2386
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
2375
2387
|
actionDependencyIds: import("zod").ZodArray<import("zod").ZodString>;
|
|
2376
2388
|
eventDependencyIds: import("zod").ZodArray<import("zod").ZodString>;
|
|
2377
|
-
scopePath: import("zod").
|
|
2389
|
+
scopePath: import("zod").ZodArray<import("zod").ZodNumber>;
|
|
2378
2390
|
signalDependencyIds: import("zod").ZodArray<import("zod").ZodString>;
|
|
2379
2391
|
slot: import("zod").ZodNumber;
|
|
2380
2392
|
outcomeSeq: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
2381
2393
|
selectedIndex: import("zod").ZodNumber;
|
|
2382
2394
|
status: import("zod").ZodLiteral<"succeeded">;
|
|
2383
|
-
}, import("zod/v4/core").$strip>]
|
|
2395
|
+
}, import("zod/v4/core").$strip>]>>;
|
|
2384
2396
|
}, import("zod/v4/core").$strip>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
|
|
2385
2397
|
completeAction: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
2386
2398
|
reason: import("zod").ZodLiteral<"closed-dependency">;
|
|
@@ -2507,7 +2519,7 @@ export declare const contract: {
|
|
|
2507
2519
|
type: import("zod").ZodLiteral<"other">;
|
|
2508
2520
|
}, import("zod/v4/core").$strip>], "type">>>;
|
|
2509
2521
|
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
2510
|
-
|
|
2522
|
+
createCallbackToken: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
2511
2523
|
endpointKey: import("zod").ZodString;
|
|
2512
2524
|
}, import("zod/v4/core").$strip>, import("zod").ZodString, Record<never, never>, Record<never, never>>;
|
|
2513
2525
|
invokeAutomation: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodIntersection<import("zod").ZodIntersection<import("zod").ZodObject<{
|
|
@@ -2540,7 +2552,7 @@ export declare const contract: {
|
|
|
2540
2552
|
eventDependencyIds: import("zod").ZodArray<import("zod").ZodString>;
|
|
2541
2553
|
inputHash: import("zod").ZodString;
|
|
2542
2554
|
name: import("zod").ZodString;
|
|
2543
|
-
scopePath: import("zod").
|
|
2555
|
+
scopePath: import("zod").ZodArray<import("zod").ZodNumber>;
|
|
2544
2556
|
signalDependencyIds: import("zod").ZodArray<import("zod").ZodString>;
|
|
2545
2557
|
slot: import("zod").ZodNumber;
|
|
2546
2558
|
actionInvocationId: import("zod").ZodString;
|
|
@@ -2552,7 +2564,7 @@ export declare const contract: {
|
|
|
2552
2564
|
eventDependencyIds: import("zod").ZodArray<import("zod").ZodString>;
|
|
2553
2565
|
inputHash: import("zod").ZodString;
|
|
2554
2566
|
name: import("zod").ZodString;
|
|
2555
|
-
scopePath: import("zod").
|
|
2567
|
+
scopePath: import("zod").ZodArray<import("zod").ZodNumber>;
|
|
2556
2568
|
signalDependencyIds: import("zod").ZodArray<import("zod").ZodString>;
|
|
2557
2569
|
slot: import("zod").ZodNumber;
|
|
2558
2570
|
actionInvocationId: import("zod").ZodString;
|
|
@@ -2566,7 +2578,7 @@ export declare const contract: {
|
|
|
2566
2578
|
eventDependencyIds: import("zod").ZodArray<import("zod").ZodString>;
|
|
2567
2579
|
inputHash: import("zod").ZodString;
|
|
2568
2580
|
name: import("zod").ZodString;
|
|
2569
|
-
scopePath: import("zod").
|
|
2581
|
+
scopePath: import("zod").ZodArray<import("zod").ZodNumber>;
|
|
2570
2582
|
signalDependencyIds: import("zod").ZodArray<import("zod").ZodString>;
|
|
2571
2583
|
slot: import("zod").ZodNumber;
|
|
2572
2584
|
actionInvocationId: import("zod").ZodString;
|
|
@@ -2580,7 +2592,7 @@ export declare const contract: {
|
|
|
2580
2592
|
eventDependencyIds: import("zod").ZodArray<import("zod").ZodString>;
|
|
2581
2593
|
inputHash: import("zod").ZodString;
|
|
2582
2594
|
name: import("zod").ZodString;
|
|
2583
|
-
scopePath: import("zod").
|
|
2595
|
+
scopePath: import("zod").ZodArray<import("zod").ZodNumber>;
|
|
2584
2596
|
signalDependencyIds: import("zod").ZodArray<import("zod").ZodString>;
|
|
2585
2597
|
slot: import("zod").ZodNumber;
|
|
2586
2598
|
actionInvocationId: import("zod").ZodString;
|
|
@@ -2595,7 +2607,7 @@ export declare const contract: {
|
|
|
2595
2607
|
eventDependencyIds: import("zod").ZodArray<import("zod").ZodString>;
|
|
2596
2608
|
inputHash: import("zod").ZodString;
|
|
2597
2609
|
name: import("zod").ZodString;
|
|
2598
|
-
scopePath: import("zod").
|
|
2610
|
+
scopePath: import("zod").ZodArray<import("zod").ZodNumber>;
|
|
2599
2611
|
signalDependencyIds: import("zod").ZodArray<import("zod").ZodString>;
|
|
2600
2612
|
slot: import("zod").ZodNumber;
|
|
2601
2613
|
actionInvocationId: import("zod").ZodString;
|
|
@@ -2614,13 +2626,13 @@ export declare const contract: {
|
|
|
2614
2626
|
automationEventId: import("zod").ZodString;
|
|
2615
2627
|
contextId: import("zod").ZodString;
|
|
2616
2628
|
outcomeSeq: import("zod").ZodNumber;
|
|
2617
|
-
scopePath: import("zod").
|
|
2629
|
+
scopePath: import("zod").ZodArray<import("zod").ZodNumber>;
|
|
2618
2630
|
slot: import("zod").ZodNumber;
|
|
2619
2631
|
}, import("zod/v4/core").$strip>>;
|
|
2620
2632
|
signalOutputs: import("zod").ZodArray<import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
2621
2633
|
actionDependencyIds: import("zod").ZodArray<import("zod").ZodString>;
|
|
2622
2634
|
eventDependencyIds: import("zod").ZodArray<import("zod").ZodString>;
|
|
2623
|
-
scopePath: import("zod").
|
|
2635
|
+
scopePath: import("zod").ZodArray<import("zod").ZodNumber>;
|
|
2624
2636
|
signalDependencyIds: import("zod").ZodArray<import("zod").ZodString>;
|
|
2625
2637
|
slot: import("zod").ZodNumber;
|
|
2626
2638
|
coordinatorConfigurationHash: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -2631,7 +2643,7 @@ export declare const contract: {
|
|
|
2631
2643
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
2632
2644
|
actionDependencyIds: import("zod").ZodArray<import("zod").ZodString>;
|
|
2633
2645
|
eventDependencyIds: import("zod").ZodArray<import("zod").ZodString>;
|
|
2634
|
-
scopePath: import("zod").
|
|
2646
|
+
scopePath: import("zod").ZodArray<import("zod").ZodNumber>;
|
|
2635
2647
|
signalDependencyIds: import("zod").ZodArray<import("zod").ZodString>;
|
|
2636
2648
|
slot: import("zod").ZodNumber;
|
|
2637
2649
|
coordinatorConfigurationHash: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -2642,7 +2654,7 @@ export declare const contract: {
|
|
|
2642
2654
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
2643
2655
|
actionDependencyIds: import("zod").ZodArray<import("zod").ZodString>;
|
|
2644
2656
|
eventDependencyIds: import("zod").ZodArray<import("zod").ZodString>;
|
|
2645
|
-
scopePath: import("zod").
|
|
2657
|
+
scopePath: import("zod").ZodArray<import("zod").ZodNumber>;
|
|
2646
2658
|
signalDependencyIds: import("zod").ZodArray<import("zod").ZodString>;
|
|
2647
2659
|
slot: import("zod").ZodNumber;
|
|
2648
2660
|
coordinatorConfigurationHash: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -2654,7 +2666,7 @@ export declare const contract: {
|
|
|
2654
2666
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
2655
2667
|
actionDependencyIds: import("zod").ZodArray<import("zod").ZodString>;
|
|
2656
2668
|
eventDependencyIds: import("zod").ZodArray<import("zod").ZodString>;
|
|
2657
|
-
scopePath: import("zod").
|
|
2669
|
+
scopePath: import("zod").ZodArray<import("zod").ZodNumber>;
|
|
2658
2670
|
signalDependencyIds: import("zod").ZodArray<import("zod").ZodString>;
|
|
2659
2671
|
slot: import("zod").ZodNumber;
|
|
2660
2672
|
coordinatorConfigurationHash: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -2671,7 +2683,7 @@ export declare const contract: {
|
|
|
2671
2683
|
actionOutputs: import("zod").ZodArray<import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
2672
2684
|
actionInvocationId: import("zod").ZodString;
|
|
2673
2685
|
contextId: import("zod").ZodString;
|
|
2674
|
-
scopePath: import("zod").
|
|
2686
|
+
scopePath: import("zod").ZodArray<import("zod").ZodNumber>;
|
|
2675
2687
|
slot: import("zod").ZodNumber;
|
|
2676
2688
|
timestamp: import("zod").ZodDate;
|
|
2677
2689
|
outcomeSeq: import("zod").ZodNumber;
|
|
@@ -2681,7 +2693,7 @@ export declare const contract: {
|
|
|
2681
2693
|
actionInvocationId: import("zod").ZodString;
|
|
2682
2694
|
contextId: import("zod").ZodString;
|
|
2683
2695
|
outcomeSeq: import("zod").ZodNumber;
|
|
2684
|
-
scopePath: import("zod").
|
|
2696
|
+
scopePath: import("zod").ZodArray<import("zod").ZodNumber>;
|
|
2685
2697
|
slot: import("zod").ZodNumber;
|
|
2686
2698
|
timestamp: import("zod").ZodDate;
|
|
2687
2699
|
reason: import("zod").ZodLiteral<"closed-dependency">;
|
|
@@ -2690,7 +2702,7 @@ export declare const contract: {
|
|
|
2690
2702
|
actionInvocationId: import("zod").ZodString;
|
|
2691
2703
|
contextId: import("zod").ZodString;
|
|
2692
2704
|
outcomeSeq: import("zod").ZodNumber;
|
|
2693
|
-
scopePath: import("zod").
|
|
2705
|
+
scopePath: import("zod").ZodArray<import("zod").ZodNumber>;
|
|
2694
2706
|
slot: import("zod").ZodNumber;
|
|
2695
2707
|
timestamp: import("zod").ZodDate;
|
|
2696
2708
|
failure: import("zod").ZodType<import("./errors").AutomationErrorValue, import("./errors").AutomationErrorValue, import("zod/v4/core").$ZodTypeInternals<import("./errors").AutomationErrorValue, import("./errors").AutomationErrorValue>>;
|
|
@@ -2700,7 +2712,7 @@ export declare const contract: {
|
|
|
2700
2712
|
actionInvocationId: import("zod").ZodString;
|
|
2701
2713
|
contextId: import("zod").ZodString;
|
|
2702
2714
|
outcomeSeq: import("zod").ZodNumber;
|
|
2703
|
-
scopePath: import("zod").
|
|
2715
|
+
scopePath: import("zod").ZodArray<import("zod").ZodNumber>;
|
|
2704
2716
|
slot: import("zod").ZodNumber;
|
|
2705
2717
|
timestamp: import("zod").ZodDate;
|
|
2706
2718
|
output: import("zod").ZodOptional<import("zod").ZodCustom<import("@automate.ax/codec").Encodable, import("@automate.ax/codec").Encodable>>;
|
|
@@ -2727,14 +2739,14 @@ export declare const contract: {
|
|
|
2727
2739
|
contextId: import("zod").ZodString;
|
|
2728
2740
|
outcomeSeq: import("zod").ZodNumber;
|
|
2729
2741
|
payload: import("zod").ZodOptional<import("zod").ZodCustom<import("@automate.ax/codec").Encodable, import("@automate.ax/codec").Encodable>>;
|
|
2730
|
-
scopePath: import("zod").
|
|
2742
|
+
scopePath: import("zod").ZodArray<import("zod").ZodNumber>;
|
|
2731
2743
|
slot: import("zod").ZodNumber;
|
|
2732
2744
|
timestamp: import("zod").ZodDate;
|
|
2733
2745
|
}, import("zod/v4/core").$strip>>;
|
|
2734
2746
|
signalOutputs: import("zod").ZodArray<import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
2735
2747
|
contextId: import("zod").ZodString;
|
|
2736
2748
|
outcomeSeq: import("zod").ZodNumber;
|
|
2737
|
-
scopePath: import("zod").
|
|
2749
|
+
scopePath: import("zod").ZodArray<import("zod").ZodNumber>;
|
|
2738
2750
|
signalInvocationId: import("zod").ZodString;
|
|
2739
2751
|
slot: import("zod").ZodNumber;
|
|
2740
2752
|
timestamp: import("zod").ZodDate;
|
|
@@ -2742,7 +2754,7 @@ export declare const contract: {
|
|
|
2742
2754
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
2743
2755
|
contextId: import("zod").ZodString;
|
|
2744
2756
|
outcomeSeq: import("zod").ZodNumber;
|
|
2745
|
-
scopePath: import("zod").
|
|
2757
|
+
scopePath: import("zod").ZodArray<import("zod").ZodNumber>;
|
|
2746
2758
|
signalInvocationId: import("zod").ZodString;
|
|
2747
2759
|
slot: import("zod").ZodNumber;
|
|
2748
2760
|
timestamp: import("zod").ZodDate;
|
|
@@ -2750,7 +2762,7 @@ export declare const contract: {
|
|
|
2750
2762
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
2751
2763
|
contextId: import("zod").ZodString;
|
|
2752
2764
|
outcomeSeq: import("zod").ZodNumber;
|
|
2753
|
-
scopePath: import("zod").
|
|
2765
|
+
scopePath: import("zod").ZodArray<import("zod").ZodNumber>;
|
|
2754
2766
|
signalInvocationId: import("zod").ZodString;
|
|
2755
2767
|
slot: import("zod").ZodNumber;
|
|
2756
2768
|
timestamp: import("zod").ZodDate;
|
|
@@ -2759,7 +2771,7 @@ export declare const contract: {
|
|
|
2759
2771
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
2760
2772
|
contextId: import("zod").ZodString;
|
|
2761
2773
|
outcomeSeq: import("zod").ZodNumber;
|
|
2762
|
-
scopePath: import("zod").
|
|
2774
|
+
scopePath: import("zod").ZodArray<import("zod").ZodNumber>;
|
|
2763
2775
|
signalInvocationId: import("zod").ZodString;
|
|
2764
2776
|
slot: import("zod").ZodNumber;
|
|
2765
2777
|
timestamp: import("zod").ZodDate;
|
|
@@ -2769,12 +2781,12 @@ export declare const contract: {
|
|
|
2769
2781
|
}, import("zod/v4/core").$strip>]>>;
|
|
2770
2782
|
}, import("zod/v4/core").$strip>;
|
|
2771
2783
|
id: import("zod").ZodString;
|
|
2772
|
-
scopePath: import("zod").
|
|
2784
|
+
scopePath: import("zod").ZodArray<import("zod").ZodNumber>;
|
|
2773
2785
|
slot: import("zod").ZodNumber;
|
|
2774
2786
|
status: import("zod").ZodLiteral<"pending">;
|
|
2775
2787
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
2776
2788
|
id: import("zod").ZodString;
|
|
2777
|
-
scopePath: import("zod").
|
|
2789
|
+
scopePath: import("zod").ZodArray<import("zod").ZodNumber>;
|
|
2778
2790
|
slot: import("zod").ZodNumber;
|
|
2779
2791
|
status: import("zod").ZodEnum<{
|
|
2780
2792
|
succeeded: "succeeded";
|
|
@@ -2791,7 +2803,7 @@ export declare const contract: {
|
|
|
2791
2803
|
actionOutputs: import("zod").ZodArray<import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
2792
2804
|
actionInvocationId: import("zod").ZodString;
|
|
2793
2805
|
contextId: import("zod").ZodString;
|
|
2794
|
-
scopePath: import("zod").
|
|
2806
|
+
scopePath: import("zod").ZodArray<import("zod").ZodNumber>;
|
|
2795
2807
|
slot: import("zod").ZodNumber;
|
|
2796
2808
|
timestamp: import("zod").ZodDate;
|
|
2797
2809
|
outcomeSeq: import("zod").ZodNumber;
|
|
@@ -2801,7 +2813,7 @@ export declare const contract: {
|
|
|
2801
2813
|
actionInvocationId: import("zod").ZodString;
|
|
2802
2814
|
contextId: import("zod").ZodString;
|
|
2803
2815
|
outcomeSeq: import("zod").ZodNumber;
|
|
2804
|
-
scopePath: import("zod").
|
|
2816
|
+
scopePath: import("zod").ZodArray<import("zod").ZodNumber>;
|
|
2805
2817
|
slot: import("zod").ZodNumber;
|
|
2806
2818
|
timestamp: import("zod").ZodDate;
|
|
2807
2819
|
reason: import("zod").ZodLiteral<"closed-dependency">;
|
|
@@ -2810,7 +2822,7 @@ export declare const contract: {
|
|
|
2810
2822
|
actionInvocationId: import("zod").ZodString;
|
|
2811
2823
|
contextId: import("zod").ZodString;
|
|
2812
2824
|
outcomeSeq: import("zod").ZodNumber;
|
|
2813
|
-
scopePath: import("zod").
|
|
2825
|
+
scopePath: import("zod").ZodArray<import("zod").ZodNumber>;
|
|
2814
2826
|
slot: import("zod").ZodNumber;
|
|
2815
2827
|
timestamp: import("zod").ZodDate;
|
|
2816
2828
|
failure: import("zod").ZodType<import("./errors").AutomationErrorValue, import("./errors").AutomationErrorValue, import("zod/v4/core").$ZodTypeInternals<import("./errors").AutomationErrorValue, import("./errors").AutomationErrorValue>>;
|
|
@@ -2820,7 +2832,7 @@ export declare const contract: {
|
|
|
2820
2832
|
actionInvocationId: import("zod").ZodString;
|
|
2821
2833
|
contextId: import("zod").ZodString;
|
|
2822
2834
|
outcomeSeq: import("zod").ZodNumber;
|
|
2823
|
-
scopePath: import("zod").
|
|
2835
|
+
scopePath: import("zod").ZodArray<import("zod").ZodNumber>;
|
|
2824
2836
|
slot: import("zod").ZodNumber;
|
|
2825
2837
|
timestamp: import("zod").ZodDate;
|
|
2826
2838
|
output: import("zod").ZodOptional<import("zod").ZodCustom<import("@automate.ax/codec").Encodable, import("@automate.ax/codec").Encodable>>;
|
|
@@ -2847,14 +2859,14 @@ export declare const contract: {
|
|
|
2847
2859
|
contextId: import("zod").ZodString;
|
|
2848
2860
|
outcomeSeq: import("zod").ZodNumber;
|
|
2849
2861
|
payload: import("zod").ZodOptional<import("zod").ZodCustom<import("@automate.ax/codec").Encodable, import("@automate.ax/codec").Encodable>>;
|
|
2850
|
-
scopePath: import("zod").
|
|
2862
|
+
scopePath: import("zod").ZodArray<import("zod").ZodNumber>;
|
|
2851
2863
|
slot: import("zod").ZodNumber;
|
|
2852
2864
|
timestamp: import("zod").ZodDate;
|
|
2853
2865
|
}, import("zod/v4/core").$strip>>;
|
|
2854
2866
|
signalOutputs: import("zod").ZodArray<import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
2855
2867
|
contextId: import("zod").ZodString;
|
|
2856
2868
|
outcomeSeq: import("zod").ZodNumber;
|
|
2857
|
-
scopePath: import("zod").
|
|
2869
|
+
scopePath: import("zod").ZodArray<import("zod").ZodNumber>;
|
|
2858
2870
|
signalInvocationId: import("zod").ZodString;
|
|
2859
2871
|
slot: import("zod").ZodNumber;
|
|
2860
2872
|
timestamp: import("zod").ZodDate;
|
|
@@ -2862,7 +2874,7 @@ export declare const contract: {
|
|
|
2862
2874
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
2863
2875
|
contextId: import("zod").ZodString;
|
|
2864
2876
|
outcomeSeq: import("zod").ZodNumber;
|
|
2865
|
-
scopePath: import("zod").
|
|
2877
|
+
scopePath: import("zod").ZodArray<import("zod").ZodNumber>;
|
|
2866
2878
|
signalInvocationId: import("zod").ZodString;
|
|
2867
2879
|
slot: import("zod").ZodNumber;
|
|
2868
2880
|
timestamp: import("zod").ZodDate;
|
|
@@ -2870,7 +2882,7 @@ export declare const contract: {
|
|
|
2870
2882
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
2871
2883
|
contextId: import("zod").ZodString;
|
|
2872
2884
|
outcomeSeq: import("zod").ZodNumber;
|
|
2873
|
-
scopePath: import("zod").
|
|
2885
|
+
scopePath: import("zod").ZodArray<import("zod").ZodNumber>;
|
|
2874
2886
|
signalInvocationId: import("zod").ZodString;
|
|
2875
2887
|
slot: import("zod").ZodNumber;
|
|
2876
2888
|
timestamp: import("zod").ZodDate;
|
|
@@ -2879,7 +2891,7 @@ export declare const contract: {
|
|
|
2879
2891
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
2880
2892
|
contextId: import("zod").ZodString;
|
|
2881
2893
|
outcomeSeq: import("zod").ZodNumber;
|
|
2882
|
-
scopePath: import("zod").
|
|
2894
|
+
scopePath: import("zod").ZodArray<import("zod").ZodNumber>;
|
|
2883
2895
|
signalInvocationId: import("zod").ZodString;
|
|
2884
2896
|
slot: import("zod").ZodNumber;
|
|
2885
2897
|
timestamp: import("zod").ZodDate;
|
package/dist/runtime.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export type { GatewayModelId } from "@ai-sdk/gateway";
|
|
|
5
5
|
export declare const DEFAULT_GATEWAY_MODEL_ID = "openai/gpt-4.1-nano";
|
|
6
6
|
export declare const AUTOMATION_INVOCATION_DEFAULT_ENTRYPOINT = "default";
|
|
7
7
|
export declare const AUTOMATION_INVOCATION_RESERVED_ENTRYPOINT_PREFIX = "__$";
|
|
8
|
-
export declare const
|
|
8
|
+
export declare const CALLBACK_PROTECTION_QUERY_PARAMETER = "_axCallback";
|
|
9
9
|
export declare const AUTOMATION_LOG_MAX_ENTRIES = 1000;
|
|
10
10
|
export declare const AUTOMATION_TRACE_MAX_SPANS = 250;
|
|
11
11
|
export declare const AUTOMATION_OBSERVABILITY_MAX_FIELDS = 64;
|
|
@@ -49,7 +49,7 @@ export declare const automationInvocationInputSchema: z.ZodIntersection<z.ZodInt
|
|
|
49
49
|
declare const COORDINATION_OFFER_SCHEMA: z.ZodUnion<readonly [z.ZodObject<{
|
|
50
50
|
actionDependencyIds: z.ZodArray<z.ZodString>;
|
|
51
51
|
eventDependencyIds: z.ZodArray<z.ZodString>;
|
|
52
|
-
scopePath: z.
|
|
52
|
+
scopePath: z.ZodArray<z.ZodNumber>;
|
|
53
53
|
signalDependencyIds: z.ZodArray<z.ZodString>;
|
|
54
54
|
slot: z.ZodNumber;
|
|
55
55
|
count: z.ZodNumber;
|
|
@@ -65,7 +65,7 @@ declare const COORDINATION_OFFER_SCHEMA: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
65
65
|
}, z.core.$strip>, z.ZodObject<{
|
|
66
66
|
actionDependencyIds: z.ZodArray<z.ZodString>;
|
|
67
67
|
eventDependencyIds: z.ZodArray<z.ZodString>;
|
|
68
|
-
scopePath: z.
|
|
68
|
+
scopePath: z.ZodArray<z.ZodNumber>;
|
|
69
69
|
signalDependencyIds: z.ZodArray<z.ZodString>;
|
|
70
70
|
slot: z.ZodNumber;
|
|
71
71
|
key: z.ZodOptional<z.ZodCustom<import("@automate.ax/codec").Encodable, import("@automate.ax/codec").Encodable>>;
|
|
@@ -78,7 +78,7 @@ declare const COORDINATION_OFFER_SCHEMA: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
78
78
|
}, z.core.$strip>, z.ZodObject<{
|
|
79
79
|
actionDependencyIds: z.ZodArray<z.ZodString>;
|
|
80
80
|
eventDependencyIds: z.ZodArray<z.ZodString>;
|
|
81
|
-
scopePath: z.
|
|
81
|
+
scopePath: z.ZodArray<z.ZodNumber>;
|
|
82
82
|
signalDependencyIds: z.ZodArray<z.ZodString>;
|
|
83
83
|
slot: z.ZodNumber;
|
|
84
84
|
count: z.ZodNumber;
|
|
@@ -87,7 +87,7 @@ declare const COORDINATION_OFFER_SCHEMA: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
87
87
|
}, z.core.$strip>, z.ZodObject<{
|
|
88
88
|
actionDependencyIds: z.ZodArray<z.ZodString>;
|
|
89
89
|
eventDependencyIds: z.ZodArray<z.ZodString>;
|
|
90
|
-
scopePath: z.
|
|
90
|
+
scopePath: z.ZodArray<z.ZodNumber>;
|
|
91
91
|
signalDependencyIds: z.ZodArray<z.ZodString>;
|
|
92
92
|
slot: z.ZodNumber;
|
|
93
93
|
key: z.ZodOptional<z.ZodCustom<import("@automate.ax/codec").Encodable, import("@automate.ax/codec").Encodable>>;
|
|
@@ -115,38 +115,50 @@ declare const COORDINATION_OFFER_SCHEMA: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
115
115
|
}, z.core.$strip>, z.ZodUnion<readonly [z.ZodObject<{
|
|
116
116
|
actionDependencyIds: z.ZodArray<z.ZodString>;
|
|
117
117
|
eventDependencyIds: z.ZodArray<z.ZodString>;
|
|
118
|
-
scopePath: z.
|
|
118
|
+
scopePath: z.ZodArray<z.ZodNumber>;
|
|
119
119
|
signalDependencyIds: z.ZodArray<z.ZodString>;
|
|
120
120
|
slot: z.ZodNumber;
|
|
121
|
+
cohortActionDependencyIds: z.ZodArray<z.ZodString>;
|
|
122
|
+
cohortEventDependencyIds: z.ZodArray<z.ZodString>;
|
|
123
|
+
cohortOrigins: z.ZodArray<z.ZodString>;
|
|
124
|
+
cohortSignalDependencyIds: z.ZodArray<z.ZodString>;
|
|
121
125
|
inputOrigins: z.ZodArray<z.ZodArray<z.ZodString>>;
|
|
122
126
|
outcomeSeq: z.ZodNumber;
|
|
123
127
|
policy: z.ZodLiteral<"race">;
|
|
124
|
-
scopeOrigins: z.
|
|
128
|
+
scopeOrigins: z.ZodArray<z.ZodString>;
|
|
125
129
|
selectedIndex: z.ZodNumber;
|
|
126
130
|
status: z.ZodLiteral<"closed">;
|
|
127
131
|
}, z.core.$strip>, z.ZodObject<{
|
|
128
132
|
actionDependencyIds: z.ZodArray<z.ZodString>;
|
|
129
133
|
eventDependencyIds: z.ZodArray<z.ZodString>;
|
|
130
|
-
scopePath: z.
|
|
134
|
+
scopePath: z.ZodArray<z.ZodNumber>;
|
|
131
135
|
signalDependencyIds: z.ZodArray<z.ZodString>;
|
|
132
136
|
slot: z.ZodNumber;
|
|
137
|
+
cohortActionDependencyIds: z.ZodArray<z.ZodString>;
|
|
138
|
+
cohortEventDependencyIds: z.ZodArray<z.ZodString>;
|
|
139
|
+
cohortOrigins: z.ZodArray<z.ZodString>;
|
|
140
|
+
cohortSignalDependencyIds: z.ZodArray<z.ZodString>;
|
|
133
141
|
inputOrigins: z.ZodArray<z.ZodArray<z.ZodString>>;
|
|
134
142
|
outcomeSeq: z.ZodNumber;
|
|
135
143
|
policy: z.ZodLiteral<"race">;
|
|
136
|
-
scopeOrigins: z.
|
|
144
|
+
scopeOrigins: z.ZodArray<z.ZodString>;
|
|
137
145
|
selectedIndex: z.ZodNumber;
|
|
138
146
|
failure: z.ZodType<import("./errors").AutomationErrorValue, import("./errors").AutomationErrorValue, z.core.$ZodTypeInternals<import("./errors").AutomationErrorValue, import("./errors").AutomationErrorValue>>;
|
|
139
147
|
status: z.ZodLiteral<"failed">;
|
|
140
148
|
}, z.core.$strip>, z.ZodObject<{
|
|
141
149
|
actionDependencyIds: z.ZodArray<z.ZodString>;
|
|
142
150
|
eventDependencyIds: z.ZodArray<z.ZodString>;
|
|
143
|
-
scopePath: z.
|
|
151
|
+
scopePath: z.ZodArray<z.ZodNumber>;
|
|
144
152
|
signalDependencyIds: z.ZodArray<z.ZodString>;
|
|
145
153
|
slot: z.ZodNumber;
|
|
154
|
+
cohortActionDependencyIds: z.ZodArray<z.ZodString>;
|
|
155
|
+
cohortEventDependencyIds: z.ZodArray<z.ZodString>;
|
|
156
|
+
cohortOrigins: z.ZodArray<z.ZodString>;
|
|
157
|
+
cohortSignalDependencyIds: z.ZodArray<z.ZodString>;
|
|
146
158
|
inputOrigins: z.ZodArray<z.ZodArray<z.ZodString>>;
|
|
147
159
|
outcomeSeq: z.ZodNumber;
|
|
148
160
|
policy: z.ZodLiteral<"race">;
|
|
149
|
-
scopeOrigins: z.
|
|
161
|
+
scopeOrigins: z.ZodArray<z.ZodString>;
|
|
150
162
|
selectedIndex: z.ZodNumber;
|
|
151
163
|
status: z.ZodLiteral<"succeeded">;
|
|
152
164
|
}, z.core.$strip>]>]>;
|
|
@@ -310,13 +322,13 @@ export type RuntimeGenerationInput = z.output<typeof RUNTIME_GENERATION_INPUT_SC
|
|
|
310
322
|
export declare function hashSignalCoordinatorConfiguration(definition: unknown, primaryPosition?: "first" | "last"): Promise<string>;
|
|
311
323
|
export declare const runtimeContract: {
|
|
312
324
|
commit: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
313
|
-
actionInvocations: z.
|
|
325
|
+
actionInvocations: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
314
326
|
actionDependencyIds: z.ZodArray<z.ZodString>;
|
|
315
327
|
description: z.ZodNullable<z.ZodString>;
|
|
316
328
|
eventDependencyIds: z.ZodArray<z.ZodString>;
|
|
317
329
|
inputHash: z.ZodString;
|
|
318
330
|
name: z.ZodString;
|
|
319
|
-
scopePath: z.
|
|
331
|
+
scopePath: z.ZodArray<z.ZodNumber>;
|
|
320
332
|
signalDependencyIds: z.ZodArray<z.ZodString>;
|
|
321
333
|
slot: z.ZodNumber;
|
|
322
334
|
status: z.ZodLiteral<"pending">;
|
|
@@ -326,7 +338,7 @@ export declare const runtimeContract: {
|
|
|
326
338
|
eventDependencyIds: z.ZodArray<z.ZodString>;
|
|
327
339
|
inputHash: z.ZodString;
|
|
328
340
|
name: z.ZodString;
|
|
329
|
-
scopePath: z.
|
|
341
|
+
scopePath: z.ZodArray<z.ZodNumber>;
|
|
330
342
|
signalDependencyIds: z.ZodArray<z.ZodString>;
|
|
331
343
|
slot: z.ZodNumber;
|
|
332
344
|
reason: z.ZodLiteral<"closed-dependency">;
|
|
@@ -337,17 +349,17 @@ export declare const runtimeContract: {
|
|
|
337
349
|
eventDependencyIds: z.ZodArray<z.ZodString>;
|
|
338
350
|
inputHash: z.ZodString;
|
|
339
351
|
name: z.ZodString;
|
|
340
|
-
scopePath: z.
|
|
352
|
+
scopePath: z.ZodArray<z.ZodNumber>;
|
|
341
353
|
signalDependencyIds: z.ZodArray<z.ZodString>;
|
|
342
354
|
slot: z.ZodNumber;
|
|
343
355
|
failure: z.ZodType<import("./errors").AutomationErrorValue, import("./errors").AutomationErrorValue, z.core.$ZodTypeInternals<import("./errors").AutomationErrorValue, import("./errors").AutomationErrorValue>>;
|
|
344
356
|
reason: z.ZodLiteral<"failed-dependency">;
|
|
345
357
|
status: z.ZodLiteral<"skipped">;
|
|
346
|
-
}, z.core.$strip>]
|
|
347
|
-
coordinationOffers: z.
|
|
358
|
+
}, z.core.$strip>]>>;
|
|
359
|
+
coordinationOffers: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
348
360
|
actionDependencyIds: z.ZodArray<z.ZodString>;
|
|
349
361
|
eventDependencyIds: z.ZodArray<z.ZodString>;
|
|
350
|
-
scopePath: z.
|
|
362
|
+
scopePath: z.ZodArray<z.ZodNumber>;
|
|
351
363
|
signalDependencyIds: z.ZodArray<z.ZodString>;
|
|
352
364
|
slot: z.ZodNumber;
|
|
353
365
|
count: z.ZodNumber;
|
|
@@ -363,7 +375,7 @@ export declare const runtimeContract: {
|
|
|
363
375
|
}, z.core.$strip>, z.ZodObject<{
|
|
364
376
|
actionDependencyIds: z.ZodArray<z.ZodString>;
|
|
365
377
|
eventDependencyIds: z.ZodArray<z.ZodString>;
|
|
366
|
-
scopePath: z.
|
|
378
|
+
scopePath: z.ZodArray<z.ZodNumber>;
|
|
367
379
|
signalDependencyIds: z.ZodArray<z.ZodString>;
|
|
368
380
|
slot: z.ZodNumber;
|
|
369
381
|
key: z.ZodOptional<z.ZodCustom<import("@automate.ax/codec").Encodable, import("@automate.ax/codec").Encodable>>;
|
|
@@ -376,7 +388,7 @@ export declare const runtimeContract: {
|
|
|
376
388
|
}, z.core.$strip>, z.ZodObject<{
|
|
377
389
|
actionDependencyIds: z.ZodArray<z.ZodString>;
|
|
378
390
|
eventDependencyIds: z.ZodArray<z.ZodString>;
|
|
379
|
-
scopePath: z.
|
|
391
|
+
scopePath: z.ZodArray<z.ZodNumber>;
|
|
380
392
|
signalDependencyIds: z.ZodArray<z.ZodString>;
|
|
381
393
|
slot: z.ZodNumber;
|
|
382
394
|
count: z.ZodNumber;
|
|
@@ -385,7 +397,7 @@ export declare const runtimeContract: {
|
|
|
385
397
|
}, z.core.$strip>, z.ZodObject<{
|
|
386
398
|
actionDependencyIds: z.ZodArray<z.ZodString>;
|
|
387
399
|
eventDependencyIds: z.ZodArray<z.ZodString>;
|
|
388
|
-
scopePath: z.
|
|
400
|
+
scopePath: z.ZodArray<z.ZodNumber>;
|
|
389
401
|
signalDependencyIds: z.ZodArray<z.ZodString>;
|
|
390
402
|
slot: z.ZodNumber;
|
|
391
403
|
key: z.ZodOptional<z.ZodCustom<import("@automate.ax/codec").Encodable, import("@automate.ax/codec").Encodable>>;
|
|
@@ -413,46 +425,58 @@ export declare const runtimeContract: {
|
|
|
413
425
|
}, z.core.$strip>, z.ZodUnion<readonly [z.ZodObject<{
|
|
414
426
|
actionDependencyIds: z.ZodArray<z.ZodString>;
|
|
415
427
|
eventDependencyIds: z.ZodArray<z.ZodString>;
|
|
416
|
-
scopePath: z.
|
|
428
|
+
scopePath: z.ZodArray<z.ZodNumber>;
|
|
417
429
|
signalDependencyIds: z.ZodArray<z.ZodString>;
|
|
418
430
|
slot: z.ZodNumber;
|
|
431
|
+
cohortActionDependencyIds: z.ZodArray<z.ZodString>;
|
|
432
|
+
cohortEventDependencyIds: z.ZodArray<z.ZodString>;
|
|
433
|
+
cohortOrigins: z.ZodArray<z.ZodString>;
|
|
434
|
+
cohortSignalDependencyIds: z.ZodArray<z.ZodString>;
|
|
419
435
|
inputOrigins: z.ZodArray<z.ZodArray<z.ZodString>>;
|
|
420
436
|
outcomeSeq: z.ZodNumber;
|
|
421
437
|
policy: z.ZodLiteral<"race">;
|
|
422
|
-
scopeOrigins: z.
|
|
438
|
+
scopeOrigins: z.ZodArray<z.ZodString>;
|
|
423
439
|
selectedIndex: z.ZodNumber;
|
|
424
440
|
status: z.ZodLiteral<"closed">;
|
|
425
441
|
}, z.core.$strip>, z.ZodObject<{
|
|
426
442
|
actionDependencyIds: z.ZodArray<z.ZodString>;
|
|
427
443
|
eventDependencyIds: z.ZodArray<z.ZodString>;
|
|
428
|
-
scopePath: z.
|
|
444
|
+
scopePath: z.ZodArray<z.ZodNumber>;
|
|
429
445
|
signalDependencyIds: z.ZodArray<z.ZodString>;
|
|
430
446
|
slot: z.ZodNumber;
|
|
447
|
+
cohortActionDependencyIds: z.ZodArray<z.ZodString>;
|
|
448
|
+
cohortEventDependencyIds: z.ZodArray<z.ZodString>;
|
|
449
|
+
cohortOrigins: z.ZodArray<z.ZodString>;
|
|
450
|
+
cohortSignalDependencyIds: z.ZodArray<z.ZodString>;
|
|
431
451
|
inputOrigins: z.ZodArray<z.ZodArray<z.ZodString>>;
|
|
432
452
|
outcomeSeq: z.ZodNumber;
|
|
433
453
|
policy: z.ZodLiteral<"race">;
|
|
434
|
-
scopeOrigins: z.
|
|
454
|
+
scopeOrigins: z.ZodArray<z.ZodString>;
|
|
435
455
|
selectedIndex: z.ZodNumber;
|
|
436
456
|
failure: z.ZodType<import("./errors").AutomationErrorValue, import("./errors").AutomationErrorValue, z.core.$ZodTypeInternals<import("./errors").AutomationErrorValue, import("./errors").AutomationErrorValue>>;
|
|
437
457
|
status: z.ZodLiteral<"failed">;
|
|
438
458
|
}, z.core.$strip>, z.ZodObject<{
|
|
439
459
|
actionDependencyIds: z.ZodArray<z.ZodString>;
|
|
440
460
|
eventDependencyIds: z.ZodArray<z.ZodString>;
|
|
441
|
-
scopePath: z.
|
|
461
|
+
scopePath: z.ZodArray<z.ZodNumber>;
|
|
442
462
|
signalDependencyIds: z.ZodArray<z.ZodString>;
|
|
443
463
|
slot: z.ZodNumber;
|
|
464
|
+
cohortActionDependencyIds: z.ZodArray<z.ZodString>;
|
|
465
|
+
cohortEventDependencyIds: z.ZodArray<z.ZodString>;
|
|
466
|
+
cohortOrigins: z.ZodArray<z.ZodString>;
|
|
467
|
+
cohortSignalDependencyIds: z.ZodArray<z.ZodString>;
|
|
444
468
|
inputOrigins: z.ZodArray<z.ZodArray<z.ZodString>>;
|
|
445
469
|
outcomeSeq: z.ZodNumber;
|
|
446
470
|
policy: z.ZodLiteral<"race">;
|
|
447
|
-
scopeOrigins: z.
|
|
471
|
+
scopeOrigins: z.ZodArray<z.ZodString>;
|
|
448
472
|
selectedIndex: z.ZodNumber;
|
|
449
473
|
status: z.ZodLiteral<"succeeded">;
|
|
450
|
-
}, z.core.$strip>]>]
|
|
451
|
-
settled: z.
|
|
452
|
-
signalInvocations: z.
|
|
474
|
+
}, z.core.$strip>]>]>>;
|
|
475
|
+
settled: z.ZodBoolean;
|
|
476
|
+
signalInvocations: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
453
477
|
actionDependencyIds: z.ZodArray<z.ZodString>;
|
|
454
478
|
eventDependencyIds: z.ZodArray<z.ZodString>;
|
|
455
|
-
scopePath: z.
|
|
479
|
+
scopePath: z.ZodArray<z.ZodNumber>;
|
|
456
480
|
signalDependencyIds: z.ZodArray<z.ZodString>;
|
|
457
481
|
slot: z.ZodNumber;
|
|
458
482
|
outcomeSeq: z.ZodOptional<z.ZodNumber>;
|
|
@@ -460,7 +484,7 @@ export declare const runtimeContract: {
|
|
|
460
484
|
}, z.core.$strip>, z.ZodObject<{
|
|
461
485
|
actionDependencyIds: z.ZodArray<z.ZodString>;
|
|
462
486
|
eventDependencyIds: z.ZodArray<z.ZodString>;
|
|
463
|
-
scopePath: z.
|
|
487
|
+
scopePath: z.ZodArray<z.ZodNumber>;
|
|
464
488
|
signalDependencyIds: z.ZodArray<z.ZodString>;
|
|
465
489
|
slot: z.ZodNumber;
|
|
466
490
|
failure: z.ZodType<import("./errors").AutomationErrorValue, import("./errors").AutomationErrorValue, z.core.$ZodTypeInternals<import("./errors").AutomationErrorValue, import("./errors").AutomationErrorValue>>;
|
|
@@ -468,7 +492,7 @@ export declare const runtimeContract: {
|
|
|
468
492
|
}, z.core.$strip>, z.ZodObject<{
|
|
469
493
|
actionDependencyIds: z.ZodArray<z.ZodString>;
|
|
470
494
|
eventDependencyIds: z.ZodArray<z.ZodString>;
|
|
471
|
-
scopePath: z.
|
|
495
|
+
scopePath: z.ZodArray<z.ZodNumber>;
|
|
472
496
|
signalDependencyIds: z.ZodArray<z.ZodString>;
|
|
473
497
|
slot: z.ZodNumber;
|
|
474
498
|
outcomeSeq: z.ZodOptional<z.ZodNumber>;
|
|
@@ -476,13 +500,13 @@ export declare const runtimeContract: {
|
|
|
476
500
|
}, z.core.$strip>, z.ZodObject<{
|
|
477
501
|
actionDependencyIds: z.ZodArray<z.ZodString>;
|
|
478
502
|
eventDependencyIds: z.ZodArray<z.ZodString>;
|
|
479
|
-
scopePath: z.
|
|
503
|
+
scopePath: z.ZodArray<z.ZodNumber>;
|
|
480
504
|
signalDependencyIds: z.ZodArray<z.ZodString>;
|
|
481
505
|
slot: z.ZodNumber;
|
|
482
506
|
outcomeSeq: z.ZodOptional<z.ZodNumber>;
|
|
483
507
|
selectedIndex: z.ZodNumber;
|
|
484
508
|
status: z.ZodLiteral<"succeeded">;
|
|
485
|
-
}, z.core.$strip>]
|
|
509
|
+
}, z.core.$strip>]>>;
|
|
486
510
|
}, z.core.$strip>, z.ZodVoid, Record<never, never>, Record<never, never>>;
|
|
487
511
|
completeAction: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodUnion<readonly [z.ZodObject<{
|
|
488
512
|
reason: z.ZodLiteral<"closed-dependency">;
|
|
@@ -609,7 +633,7 @@ export declare const runtimeContract: {
|
|
|
609
633
|
type: z.ZodLiteral<"other">;
|
|
610
634
|
}, z.core.$strip>], "type">>>;
|
|
611
635
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
612
|
-
|
|
636
|
+
createCallbackToken: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
613
637
|
endpointKey: z.ZodString;
|
|
614
638
|
}, z.core.$strip>, z.ZodString, Record<never, never>, Record<never, never>>;
|
|
615
639
|
invokeAutomation: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
|
|
@@ -642,7 +666,7 @@ export declare const runtimeContract: {
|
|
|
642
666
|
eventDependencyIds: z.ZodArray<z.ZodString>;
|
|
643
667
|
inputHash: z.ZodString;
|
|
644
668
|
name: z.ZodString;
|
|
645
|
-
scopePath: z.
|
|
669
|
+
scopePath: z.ZodArray<z.ZodNumber>;
|
|
646
670
|
signalDependencyIds: z.ZodArray<z.ZodString>;
|
|
647
671
|
slot: z.ZodNumber;
|
|
648
672
|
actionInvocationId: z.ZodString;
|
|
@@ -654,7 +678,7 @@ export declare const runtimeContract: {
|
|
|
654
678
|
eventDependencyIds: z.ZodArray<z.ZodString>;
|
|
655
679
|
inputHash: z.ZodString;
|
|
656
680
|
name: z.ZodString;
|
|
657
|
-
scopePath: z.
|
|
681
|
+
scopePath: z.ZodArray<z.ZodNumber>;
|
|
658
682
|
signalDependencyIds: z.ZodArray<z.ZodString>;
|
|
659
683
|
slot: z.ZodNumber;
|
|
660
684
|
actionInvocationId: z.ZodString;
|
|
@@ -668,7 +692,7 @@ export declare const runtimeContract: {
|
|
|
668
692
|
eventDependencyIds: z.ZodArray<z.ZodString>;
|
|
669
693
|
inputHash: z.ZodString;
|
|
670
694
|
name: z.ZodString;
|
|
671
|
-
scopePath: z.
|
|
695
|
+
scopePath: z.ZodArray<z.ZodNumber>;
|
|
672
696
|
signalDependencyIds: z.ZodArray<z.ZodString>;
|
|
673
697
|
slot: z.ZodNumber;
|
|
674
698
|
actionInvocationId: z.ZodString;
|
|
@@ -682,7 +706,7 @@ export declare const runtimeContract: {
|
|
|
682
706
|
eventDependencyIds: z.ZodArray<z.ZodString>;
|
|
683
707
|
inputHash: z.ZodString;
|
|
684
708
|
name: z.ZodString;
|
|
685
|
-
scopePath: z.
|
|
709
|
+
scopePath: z.ZodArray<z.ZodNumber>;
|
|
686
710
|
signalDependencyIds: z.ZodArray<z.ZodString>;
|
|
687
711
|
slot: z.ZodNumber;
|
|
688
712
|
actionInvocationId: z.ZodString;
|
|
@@ -697,7 +721,7 @@ export declare const runtimeContract: {
|
|
|
697
721
|
eventDependencyIds: z.ZodArray<z.ZodString>;
|
|
698
722
|
inputHash: z.ZodString;
|
|
699
723
|
name: z.ZodString;
|
|
700
|
-
scopePath: z.
|
|
724
|
+
scopePath: z.ZodArray<z.ZodNumber>;
|
|
701
725
|
signalDependencyIds: z.ZodArray<z.ZodString>;
|
|
702
726
|
slot: z.ZodNumber;
|
|
703
727
|
actionInvocationId: z.ZodString;
|
|
@@ -716,13 +740,13 @@ export declare const runtimeContract: {
|
|
|
716
740
|
automationEventId: z.ZodString;
|
|
717
741
|
contextId: z.ZodString;
|
|
718
742
|
outcomeSeq: z.ZodNumber;
|
|
719
|
-
scopePath: z.
|
|
743
|
+
scopePath: z.ZodArray<z.ZodNumber>;
|
|
720
744
|
slot: z.ZodNumber;
|
|
721
745
|
}, z.core.$strip>>;
|
|
722
746
|
signalOutputs: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
723
747
|
actionDependencyIds: z.ZodArray<z.ZodString>;
|
|
724
748
|
eventDependencyIds: z.ZodArray<z.ZodString>;
|
|
725
|
-
scopePath: z.
|
|
749
|
+
scopePath: z.ZodArray<z.ZodNumber>;
|
|
726
750
|
signalDependencyIds: z.ZodArray<z.ZodString>;
|
|
727
751
|
slot: z.ZodNumber;
|
|
728
752
|
coordinatorConfigurationHash: z.ZodOptional<z.ZodString>;
|
|
@@ -733,7 +757,7 @@ export declare const runtimeContract: {
|
|
|
733
757
|
}, z.core.$strip>, z.ZodObject<{
|
|
734
758
|
actionDependencyIds: z.ZodArray<z.ZodString>;
|
|
735
759
|
eventDependencyIds: z.ZodArray<z.ZodString>;
|
|
736
|
-
scopePath: z.
|
|
760
|
+
scopePath: z.ZodArray<z.ZodNumber>;
|
|
737
761
|
signalDependencyIds: z.ZodArray<z.ZodString>;
|
|
738
762
|
slot: z.ZodNumber;
|
|
739
763
|
coordinatorConfigurationHash: z.ZodOptional<z.ZodString>;
|
|
@@ -744,7 +768,7 @@ export declare const runtimeContract: {
|
|
|
744
768
|
}, z.core.$strip>, z.ZodObject<{
|
|
745
769
|
actionDependencyIds: z.ZodArray<z.ZodString>;
|
|
746
770
|
eventDependencyIds: z.ZodArray<z.ZodString>;
|
|
747
|
-
scopePath: z.
|
|
771
|
+
scopePath: z.ZodArray<z.ZodNumber>;
|
|
748
772
|
signalDependencyIds: z.ZodArray<z.ZodString>;
|
|
749
773
|
slot: z.ZodNumber;
|
|
750
774
|
coordinatorConfigurationHash: z.ZodOptional<z.ZodString>;
|
|
@@ -756,7 +780,7 @@ export declare const runtimeContract: {
|
|
|
756
780
|
}, z.core.$strip>, z.ZodObject<{
|
|
757
781
|
actionDependencyIds: z.ZodArray<z.ZodString>;
|
|
758
782
|
eventDependencyIds: z.ZodArray<z.ZodString>;
|
|
759
|
-
scopePath: z.
|
|
783
|
+
scopePath: z.ZodArray<z.ZodNumber>;
|
|
760
784
|
signalDependencyIds: z.ZodArray<z.ZodString>;
|
|
761
785
|
slot: z.ZodNumber;
|
|
762
786
|
coordinatorConfigurationHash: z.ZodOptional<z.ZodString>;
|
|
@@ -773,7 +797,7 @@ export declare const runtimeContract: {
|
|
|
773
797
|
actionOutputs: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
774
798
|
actionInvocationId: z.ZodString;
|
|
775
799
|
contextId: z.ZodString;
|
|
776
|
-
scopePath: z.
|
|
800
|
+
scopePath: z.ZodArray<z.ZodNumber>;
|
|
777
801
|
slot: z.ZodNumber;
|
|
778
802
|
timestamp: z.ZodDate;
|
|
779
803
|
outcomeSeq: z.ZodNumber;
|
|
@@ -783,7 +807,7 @@ export declare const runtimeContract: {
|
|
|
783
807
|
actionInvocationId: z.ZodString;
|
|
784
808
|
contextId: z.ZodString;
|
|
785
809
|
outcomeSeq: z.ZodNumber;
|
|
786
|
-
scopePath: z.
|
|
810
|
+
scopePath: z.ZodArray<z.ZodNumber>;
|
|
787
811
|
slot: z.ZodNumber;
|
|
788
812
|
timestamp: z.ZodDate;
|
|
789
813
|
reason: z.ZodLiteral<"closed-dependency">;
|
|
@@ -792,7 +816,7 @@ export declare const runtimeContract: {
|
|
|
792
816
|
actionInvocationId: z.ZodString;
|
|
793
817
|
contextId: z.ZodString;
|
|
794
818
|
outcomeSeq: z.ZodNumber;
|
|
795
|
-
scopePath: z.
|
|
819
|
+
scopePath: z.ZodArray<z.ZodNumber>;
|
|
796
820
|
slot: z.ZodNumber;
|
|
797
821
|
timestamp: z.ZodDate;
|
|
798
822
|
failure: z.ZodType<import("./errors").AutomationErrorValue, import("./errors").AutomationErrorValue, z.core.$ZodTypeInternals<import("./errors").AutomationErrorValue, import("./errors").AutomationErrorValue>>;
|
|
@@ -802,7 +826,7 @@ export declare const runtimeContract: {
|
|
|
802
826
|
actionInvocationId: z.ZodString;
|
|
803
827
|
contextId: z.ZodString;
|
|
804
828
|
outcomeSeq: z.ZodNumber;
|
|
805
|
-
scopePath: z.
|
|
829
|
+
scopePath: z.ZodArray<z.ZodNumber>;
|
|
806
830
|
slot: z.ZodNumber;
|
|
807
831
|
timestamp: z.ZodDate;
|
|
808
832
|
output: z.ZodOptional<z.ZodCustom<import("@automate.ax/codec").Encodable, import("@automate.ax/codec").Encodable>>;
|
|
@@ -829,14 +853,14 @@ export declare const runtimeContract: {
|
|
|
829
853
|
contextId: z.ZodString;
|
|
830
854
|
outcomeSeq: z.ZodNumber;
|
|
831
855
|
payload: z.ZodOptional<z.ZodCustom<import("@automate.ax/codec").Encodable, import("@automate.ax/codec").Encodable>>;
|
|
832
|
-
scopePath: z.
|
|
856
|
+
scopePath: z.ZodArray<z.ZodNumber>;
|
|
833
857
|
slot: z.ZodNumber;
|
|
834
858
|
timestamp: z.ZodDate;
|
|
835
859
|
}, z.core.$strip>>;
|
|
836
860
|
signalOutputs: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
837
861
|
contextId: z.ZodString;
|
|
838
862
|
outcomeSeq: z.ZodNumber;
|
|
839
|
-
scopePath: z.
|
|
863
|
+
scopePath: z.ZodArray<z.ZodNumber>;
|
|
840
864
|
signalInvocationId: z.ZodString;
|
|
841
865
|
slot: z.ZodNumber;
|
|
842
866
|
timestamp: z.ZodDate;
|
|
@@ -844,7 +868,7 @@ export declare const runtimeContract: {
|
|
|
844
868
|
}, z.core.$strip>, z.ZodObject<{
|
|
845
869
|
contextId: z.ZodString;
|
|
846
870
|
outcomeSeq: z.ZodNumber;
|
|
847
|
-
scopePath: z.
|
|
871
|
+
scopePath: z.ZodArray<z.ZodNumber>;
|
|
848
872
|
signalInvocationId: z.ZodString;
|
|
849
873
|
slot: z.ZodNumber;
|
|
850
874
|
timestamp: z.ZodDate;
|
|
@@ -852,7 +876,7 @@ export declare const runtimeContract: {
|
|
|
852
876
|
}, z.core.$strip>, z.ZodObject<{
|
|
853
877
|
contextId: z.ZodString;
|
|
854
878
|
outcomeSeq: z.ZodNumber;
|
|
855
|
-
scopePath: z.
|
|
879
|
+
scopePath: z.ZodArray<z.ZodNumber>;
|
|
856
880
|
signalInvocationId: z.ZodString;
|
|
857
881
|
slot: z.ZodNumber;
|
|
858
882
|
timestamp: z.ZodDate;
|
|
@@ -861,7 +885,7 @@ export declare const runtimeContract: {
|
|
|
861
885
|
}, z.core.$strip>, z.ZodObject<{
|
|
862
886
|
contextId: z.ZodString;
|
|
863
887
|
outcomeSeq: z.ZodNumber;
|
|
864
|
-
scopePath: z.
|
|
888
|
+
scopePath: z.ZodArray<z.ZodNumber>;
|
|
865
889
|
signalInvocationId: z.ZodString;
|
|
866
890
|
slot: z.ZodNumber;
|
|
867
891
|
timestamp: z.ZodDate;
|
|
@@ -871,12 +895,12 @@ export declare const runtimeContract: {
|
|
|
871
895
|
}, z.core.$strip>]>>;
|
|
872
896
|
}, z.core.$strip>;
|
|
873
897
|
id: z.ZodString;
|
|
874
|
-
scopePath: z.
|
|
898
|
+
scopePath: z.ZodArray<z.ZodNumber>;
|
|
875
899
|
slot: z.ZodNumber;
|
|
876
900
|
status: z.ZodLiteral<"pending">;
|
|
877
901
|
}, z.core.$strip>, z.ZodObject<{
|
|
878
902
|
id: z.ZodString;
|
|
879
|
-
scopePath: z.
|
|
903
|
+
scopePath: z.ZodArray<z.ZodNumber>;
|
|
880
904
|
slot: z.ZodNumber;
|
|
881
905
|
status: z.ZodEnum<{
|
|
882
906
|
succeeded: "succeeded";
|
|
@@ -893,7 +917,7 @@ export declare const runtimeContract: {
|
|
|
893
917
|
actionOutputs: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
894
918
|
actionInvocationId: z.ZodString;
|
|
895
919
|
contextId: z.ZodString;
|
|
896
|
-
scopePath: z.
|
|
920
|
+
scopePath: z.ZodArray<z.ZodNumber>;
|
|
897
921
|
slot: z.ZodNumber;
|
|
898
922
|
timestamp: z.ZodDate;
|
|
899
923
|
outcomeSeq: z.ZodNumber;
|
|
@@ -903,7 +927,7 @@ export declare const runtimeContract: {
|
|
|
903
927
|
actionInvocationId: z.ZodString;
|
|
904
928
|
contextId: z.ZodString;
|
|
905
929
|
outcomeSeq: z.ZodNumber;
|
|
906
|
-
scopePath: z.
|
|
930
|
+
scopePath: z.ZodArray<z.ZodNumber>;
|
|
907
931
|
slot: z.ZodNumber;
|
|
908
932
|
timestamp: z.ZodDate;
|
|
909
933
|
reason: z.ZodLiteral<"closed-dependency">;
|
|
@@ -912,7 +936,7 @@ export declare const runtimeContract: {
|
|
|
912
936
|
actionInvocationId: z.ZodString;
|
|
913
937
|
contextId: z.ZodString;
|
|
914
938
|
outcomeSeq: z.ZodNumber;
|
|
915
|
-
scopePath: z.
|
|
939
|
+
scopePath: z.ZodArray<z.ZodNumber>;
|
|
916
940
|
slot: z.ZodNumber;
|
|
917
941
|
timestamp: z.ZodDate;
|
|
918
942
|
failure: z.ZodType<import("./errors").AutomationErrorValue, import("./errors").AutomationErrorValue, z.core.$ZodTypeInternals<import("./errors").AutomationErrorValue, import("./errors").AutomationErrorValue>>;
|
|
@@ -922,7 +946,7 @@ export declare const runtimeContract: {
|
|
|
922
946
|
actionInvocationId: z.ZodString;
|
|
923
947
|
contextId: z.ZodString;
|
|
924
948
|
outcomeSeq: z.ZodNumber;
|
|
925
|
-
scopePath: z.
|
|
949
|
+
scopePath: z.ZodArray<z.ZodNumber>;
|
|
926
950
|
slot: z.ZodNumber;
|
|
927
951
|
timestamp: z.ZodDate;
|
|
928
952
|
output: z.ZodOptional<z.ZodCustom<import("@automate.ax/codec").Encodable, import("@automate.ax/codec").Encodable>>;
|
|
@@ -949,14 +973,14 @@ export declare const runtimeContract: {
|
|
|
949
973
|
contextId: z.ZodString;
|
|
950
974
|
outcomeSeq: z.ZodNumber;
|
|
951
975
|
payload: z.ZodOptional<z.ZodCustom<import("@automate.ax/codec").Encodable, import("@automate.ax/codec").Encodable>>;
|
|
952
|
-
scopePath: z.
|
|
976
|
+
scopePath: z.ZodArray<z.ZodNumber>;
|
|
953
977
|
slot: z.ZodNumber;
|
|
954
978
|
timestamp: z.ZodDate;
|
|
955
979
|
}, z.core.$strip>>;
|
|
956
980
|
signalOutputs: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
957
981
|
contextId: z.ZodString;
|
|
958
982
|
outcomeSeq: z.ZodNumber;
|
|
959
|
-
scopePath: z.
|
|
983
|
+
scopePath: z.ZodArray<z.ZodNumber>;
|
|
960
984
|
signalInvocationId: z.ZodString;
|
|
961
985
|
slot: z.ZodNumber;
|
|
962
986
|
timestamp: z.ZodDate;
|
|
@@ -964,7 +988,7 @@ export declare const runtimeContract: {
|
|
|
964
988
|
}, z.core.$strip>, z.ZodObject<{
|
|
965
989
|
contextId: z.ZodString;
|
|
966
990
|
outcomeSeq: z.ZodNumber;
|
|
967
|
-
scopePath: z.
|
|
991
|
+
scopePath: z.ZodArray<z.ZodNumber>;
|
|
968
992
|
signalInvocationId: z.ZodString;
|
|
969
993
|
slot: z.ZodNumber;
|
|
970
994
|
timestamp: z.ZodDate;
|
|
@@ -972,7 +996,7 @@ export declare const runtimeContract: {
|
|
|
972
996
|
}, z.core.$strip>, z.ZodObject<{
|
|
973
997
|
contextId: z.ZodString;
|
|
974
998
|
outcomeSeq: z.ZodNumber;
|
|
975
|
-
scopePath: z.
|
|
999
|
+
scopePath: z.ZodArray<z.ZodNumber>;
|
|
976
1000
|
signalInvocationId: z.ZodString;
|
|
977
1001
|
slot: z.ZodNumber;
|
|
978
1002
|
timestamp: z.ZodDate;
|
|
@@ -981,7 +1005,7 @@ export declare const runtimeContract: {
|
|
|
981
1005
|
}, z.core.$strip>, z.ZodObject<{
|
|
982
1006
|
contextId: z.ZodString;
|
|
983
1007
|
outcomeSeq: z.ZodNumber;
|
|
984
|
-
scopePath: z.
|
|
1008
|
+
scopePath: z.ZodArray<z.ZodNumber>;
|
|
985
1009
|
signalInvocationId: z.ZodString;
|
|
986
1010
|
slot: z.ZodNumber;
|
|
987
1011
|
timestamp: z.ZodDate;
|
package/dist/runtime.js
CHANGED
|
@@ -7,7 +7,7 @@ import { automationErrorSchema } from "./errors.js";
|
|
|
7
7
|
export const DEFAULT_GATEWAY_MODEL_ID = "openai/gpt-4.1-nano";
|
|
8
8
|
export const AUTOMATION_INVOCATION_DEFAULT_ENTRYPOINT = "default";
|
|
9
9
|
export const AUTOMATION_INVOCATION_RESERVED_ENTRYPOINT_PREFIX = "__$";
|
|
10
|
-
export const
|
|
10
|
+
export const CALLBACK_PROTECTION_QUERY_PARAMETER = "_axCallback";
|
|
11
11
|
export const AUTOMATION_LOG_MAX_ENTRIES = 1_000;
|
|
12
12
|
export const AUTOMATION_TRACE_MAX_SPANS = 250;
|
|
13
13
|
export const AUTOMATION_OBSERVABILITY_MAX_FIELDS = 64;
|
|
@@ -15,12 +15,7 @@ export const AUTOMATION_OBSERVABILITY_MAX_ENCODED_BYTES = 64 * 1_024;
|
|
|
15
15
|
export const AUTOMATION_LOG_MAX_MESSAGE_LENGTH = 16_384;
|
|
16
16
|
export const AUTOMATION_TRACE_MAX_NAME_LENGTH = 256;
|
|
17
17
|
const OUTCOME_SEQUENCE_SCHEMA = z.number().int().positive();
|
|
18
|
-
const HOOK_SCOPE_PATH_SCHEMA = z
|
|
19
|
-
.number()
|
|
20
|
-
.int()
|
|
21
|
-
.nonnegative()
|
|
22
|
-
.array()
|
|
23
|
-
.default([]);
|
|
18
|
+
const HOOK_SCOPE_PATH_SCHEMA = z.number().int().nonnegative().array();
|
|
24
19
|
const OBSERVABILITY_FIELDS_SCHEMA = z
|
|
25
20
|
.record(z.string().min(1).max(128), encodableSchema)
|
|
26
21
|
.refine((fields) => Object.keys(fields).length <= AUTOMATION_OBSERVABILITY_MAX_FIELDS, `Observability fields may contain at most ${AUTOMATION_OBSERVABILITY_MAX_FIELDS} entries.`);
|
|
@@ -253,10 +248,14 @@ const FUNNEL_OFFER_SCHEMA = SIGNAL_INVOCATION_DEPENDENCIES_SCHEMA.extend({
|
|
|
253
248
|
}
|
|
254
249
|
});
|
|
255
250
|
const RACE_OFFER_BASE_SCHEMA = SIGNAL_INVOCATION_DEPENDENCIES_SCHEMA.extend({
|
|
251
|
+
cohortActionDependencyIds: z.string().array(),
|
|
252
|
+
cohortEventDependencyIds: z.string().array(),
|
|
253
|
+
cohortOrigins: z.string().array(),
|
|
254
|
+
cohortSignalDependencyIds: z.string().array(),
|
|
256
255
|
inputOrigins: z.string().array().array().min(2),
|
|
257
256
|
outcomeSeq: OUTCOME_SEQUENCE_SCHEMA,
|
|
258
257
|
policy: z.literal("race"),
|
|
259
|
-
scopeOrigins: z.string().array()
|
|
258
|
+
scopeOrigins: z.string().array(),
|
|
260
259
|
selectedIndex: z.number().int().nonnegative(),
|
|
261
260
|
});
|
|
262
261
|
const RACE_OFFER_SCHEMA = z
|
|
@@ -550,25 +549,9 @@ const RUNTIME_GENERATION_INPUT_SCHEMA = z.union([
|
|
|
550
549
|
* @param primaryPosition - Optional inherited-parent precedence.
|
|
551
550
|
*/
|
|
552
551
|
export async function hashSignalCoordinatorConfiguration(definition, primaryPosition) {
|
|
553
|
-
const definitionEntries = typeof definition === "object" &&
|
|
554
|
-
definition !== null &&
|
|
555
|
-
!Array.isArray(definition)
|
|
556
|
-
? Object.entries(definition)
|
|
557
|
-
: undefined;
|
|
558
|
-
const policy = definitionEntries?.find(([key]) => key === "policy")?.[1];
|
|
559
|
-
// Existing coordinators were hashed with `strategy` and implicit primary
|
|
560
|
-
// positions for race and fan-out. Preserve that identity while the runtime
|
|
561
|
-
// uses the clearer policy vocabulary and no longer overloads primary state.
|
|
562
|
-
const persistedDefinition = definitionEntries
|
|
563
|
-
? Object.fromEntries(definitionEntries.map(([key, value]) => [
|
|
564
|
-
key === "policy" ? "strategy" : key,
|
|
565
|
-
value,
|
|
566
|
-
]))
|
|
567
|
-
: definition;
|
|
568
552
|
return await sha256Base64Url(stableStringify({
|
|
569
|
-
definitionHash: await sha256Base64Url(stableStringify(
|
|
570
|
-
primaryPosition: primaryPosition ??
|
|
571
|
-
(policy === "fanout" || policy === "race" ? "first" : null),
|
|
553
|
+
definitionHash: await sha256Base64Url(stableStringify(definition)),
|
|
554
|
+
primaryPosition: primaryPosition ?? null,
|
|
572
555
|
}));
|
|
573
556
|
}
|
|
574
557
|
/**
|
|
@@ -585,10 +568,10 @@ async function sha256Base64Url(value) {
|
|
|
585
568
|
export const runtimeContract = {
|
|
586
569
|
commit: oc
|
|
587
570
|
.input(z.object({
|
|
588
|
-
actionInvocations: ACTION_INVOCATION_SCHEMA.array()
|
|
589
|
-
coordinationOffers: COORDINATION_OFFER_SCHEMA.array()
|
|
590
|
-
settled: z.boolean()
|
|
591
|
-
signalInvocations: SIGNAL_INVOCATION_SCHEMA.array()
|
|
571
|
+
actionInvocations: ACTION_INVOCATION_SCHEMA.array(),
|
|
572
|
+
coordinationOffers: COORDINATION_OFFER_SCHEMA.array(),
|
|
573
|
+
settled: z.boolean(),
|
|
574
|
+
signalInvocations: SIGNAL_INVOCATION_SCHEMA.array(),
|
|
592
575
|
}))
|
|
593
576
|
.output(z.void()),
|
|
594
577
|
completeAction: oc
|
|
@@ -629,7 +612,7 @@ export const runtimeContract = {
|
|
|
629
612
|
generate: oc
|
|
630
613
|
.input(RUNTIME_GENERATION_INPUT_SCHEMA)
|
|
631
614
|
.output(generationResultSchema),
|
|
632
|
-
|
|
615
|
+
createCallbackToken: oc
|
|
633
616
|
.input(z.object({ endpointKey: z.string().min(1) }))
|
|
634
617
|
.output(z.string()),
|
|
635
618
|
invokeAutomation: oc
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@automate.ax/api-contract",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.81.0",
|
|
4
4
|
"description": "Public oRPC contract for the Automate.ax API.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@ai-sdk/gateway": "^4.0.46",
|
|
33
|
-
"@automate.ax/codec": "0.
|
|
33
|
+
"@automate.ax/codec": "0.81.0",
|
|
34
34
|
"@orpc/contract": "1.15.0",
|
|
35
35
|
"fast-json-stable-stringify": "^2.1.0",
|
|
36
36
|
"zod": "^4.3.6"
|
package/src/runtime.ts
CHANGED
|
@@ -12,7 +12,7 @@ export const DEFAULT_GATEWAY_MODEL_ID =
|
|
|
12
12
|
"openai/gpt-4.1-nano" satisfies GatewayModelId
|
|
13
13
|
export const AUTOMATION_INVOCATION_DEFAULT_ENTRYPOINT = "default"
|
|
14
14
|
export const AUTOMATION_INVOCATION_RESERVED_ENTRYPOINT_PREFIX = "__$"
|
|
15
|
-
export const
|
|
15
|
+
export const CALLBACK_PROTECTION_QUERY_PARAMETER = "_axCallback"
|
|
16
16
|
export const AUTOMATION_LOG_MAX_ENTRIES = 1_000
|
|
17
17
|
export const AUTOMATION_TRACE_MAX_SPANS = 250
|
|
18
18
|
export const AUTOMATION_OBSERVABILITY_MAX_FIELDS = 64
|
|
@@ -21,12 +21,7 @@ export const AUTOMATION_LOG_MAX_MESSAGE_LENGTH = 16_384
|
|
|
21
21
|
export const AUTOMATION_TRACE_MAX_NAME_LENGTH = 256
|
|
22
22
|
|
|
23
23
|
const OUTCOME_SEQUENCE_SCHEMA = z.number().int().positive()
|
|
24
|
-
const HOOK_SCOPE_PATH_SCHEMA = z
|
|
25
|
-
.number()
|
|
26
|
-
.int()
|
|
27
|
-
.nonnegative()
|
|
28
|
-
.array()
|
|
29
|
-
.default([])
|
|
24
|
+
const HOOK_SCOPE_PATH_SCHEMA = z.number().int().nonnegative().array()
|
|
30
25
|
const OBSERVABILITY_FIELDS_SCHEMA = z
|
|
31
26
|
.record(z.string().min(1).max(128), encodableSchema)
|
|
32
27
|
.refine(
|
|
@@ -286,10 +281,14 @@ const FUNNEL_OFFER_SCHEMA = SIGNAL_INVOCATION_DEPENDENCIES_SCHEMA.extend({
|
|
|
286
281
|
})
|
|
287
282
|
|
|
288
283
|
const RACE_OFFER_BASE_SCHEMA = SIGNAL_INVOCATION_DEPENDENCIES_SCHEMA.extend({
|
|
284
|
+
cohortActionDependencyIds: z.string().array(),
|
|
285
|
+
cohortEventDependencyIds: z.string().array(),
|
|
286
|
+
cohortOrigins: z.string().array(),
|
|
287
|
+
cohortSignalDependencyIds: z.string().array(),
|
|
289
288
|
inputOrigins: z.string().array().array().min(2),
|
|
290
289
|
outcomeSeq: OUTCOME_SEQUENCE_SCHEMA,
|
|
291
290
|
policy: z.literal("race"),
|
|
292
|
-
scopeOrigins: z.string().array()
|
|
291
|
+
scopeOrigins: z.string().array(),
|
|
293
292
|
selectedIndex: z.number().int().nonnegative(),
|
|
294
293
|
})
|
|
295
294
|
|
|
@@ -627,32 +626,10 @@ export async function hashSignalCoordinatorConfiguration(
|
|
|
627
626
|
definition: unknown,
|
|
628
627
|
primaryPosition?: "first" | "last",
|
|
629
628
|
) {
|
|
630
|
-
const definitionEntries =
|
|
631
|
-
typeof definition === "object" &&
|
|
632
|
-
definition !== null &&
|
|
633
|
-
!Array.isArray(definition)
|
|
634
|
-
? Object.entries(definition)
|
|
635
|
-
: undefined
|
|
636
|
-
const policy = definitionEntries?.find(([key]) => key === "policy")?.[1]
|
|
637
|
-
// Existing coordinators were hashed with `strategy` and implicit primary
|
|
638
|
-
// positions for race and fan-out. Preserve that identity while the runtime
|
|
639
|
-
// uses the clearer policy vocabulary and no longer overloads primary state.
|
|
640
|
-
const persistedDefinition = definitionEntries
|
|
641
|
-
? Object.fromEntries(
|
|
642
|
-
definitionEntries.map(([key, value]) => [
|
|
643
|
-
key === "policy" ? "strategy" : key,
|
|
644
|
-
value,
|
|
645
|
-
]),
|
|
646
|
-
)
|
|
647
|
-
: definition
|
|
648
629
|
return await sha256Base64Url(
|
|
649
630
|
stableStringify({
|
|
650
|
-
definitionHash: await sha256Base64Url(
|
|
651
|
-
|
|
652
|
-
),
|
|
653
|
-
primaryPosition:
|
|
654
|
-
primaryPosition ??
|
|
655
|
-
(policy === "fanout" || policy === "race" ? "first" : null),
|
|
631
|
+
definitionHash: await sha256Base64Url(stableStringify(definition)),
|
|
632
|
+
primaryPosition: primaryPosition ?? null,
|
|
656
633
|
}),
|
|
657
634
|
)
|
|
658
635
|
}
|
|
@@ -679,10 +656,10 @@ export const runtimeContract = {
|
|
|
679
656
|
commit: oc
|
|
680
657
|
.input(
|
|
681
658
|
z.object({
|
|
682
|
-
actionInvocations: ACTION_INVOCATION_SCHEMA.array()
|
|
683
|
-
coordinationOffers: COORDINATION_OFFER_SCHEMA.array()
|
|
684
|
-
settled: z.boolean()
|
|
685
|
-
signalInvocations: SIGNAL_INVOCATION_SCHEMA.array()
|
|
659
|
+
actionInvocations: ACTION_INVOCATION_SCHEMA.array(),
|
|
660
|
+
coordinationOffers: COORDINATION_OFFER_SCHEMA.array(),
|
|
661
|
+
settled: z.boolean(),
|
|
662
|
+
signalInvocations: SIGNAL_INVOCATION_SCHEMA.array(),
|
|
686
663
|
}),
|
|
687
664
|
)
|
|
688
665
|
.output(z.void()),
|
|
@@ -730,7 +707,7 @@ export const runtimeContract = {
|
|
|
730
707
|
generate: oc
|
|
731
708
|
.input(RUNTIME_GENERATION_INPUT_SCHEMA)
|
|
732
709
|
.output(generationResultSchema),
|
|
733
|
-
|
|
710
|
+
createCallbackToken: oc
|
|
734
711
|
.input(z.object({ endpointKey: z.string().min(1) }))
|
|
735
712
|
.output(z.string()),
|
|
736
713
|
invokeAutomation: oc
|