@automate.ax/api-contract 0.86.2 → 0.87.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/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/automation.d.ts
CHANGED
|
@@ -128,7 +128,7 @@ export declare const automationContract: {
|
|
|
128
128
|
hasOutput: z.ZodBoolean;
|
|
129
129
|
id: z.ZodString;
|
|
130
130
|
name: z.ZodString;
|
|
131
|
-
output: z.ZodOptional<z.ZodCustom<import("@automate.ax/codec").
|
|
131
|
+
output: z.ZodOptional<z.ZodCustom<import("@automate.ax/codec/rpc").CodecEnvelope, import("@automate.ax/codec/rpc").CodecEnvelope>>;
|
|
132
132
|
outputSensitivity: z.ZodOptional<z.ZodNullable<z.ZodCustom<import("@automate.ax/codec").SensitivityMask, import("@automate.ax/codec").SensitivityMask>>>;
|
|
133
133
|
slot: z.ZodNumber;
|
|
134
134
|
status: z.ZodEnum<{
|
|
@@ -141,13 +141,13 @@ export declare const automationContract: {
|
|
|
141
141
|
events: z.ZodArray<z.ZodObject<{
|
|
142
142
|
createdAt: z.ZodDate;
|
|
143
143
|
id: z.ZodString;
|
|
144
|
-
payload: z.
|
|
144
|
+
payload: z.ZodCustom<import("@automate.ax/codec/rpc").CodecEnvelope, import("@automate.ax/codec/rpc").CodecEnvelope>;
|
|
145
145
|
type: z.ZodString;
|
|
146
146
|
}, z.core.$strip>>;
|
|
147
147
|
outputs: z.ZodArray<z.ZodObject<{
|
|
148
148
|
actionInvocationId: z.ZodString;
|
|
149
149
|
createdAt: z.ZodDate;
|
|
150
|
-
data: z.
|
|
150
|
+
data: z.ZodCustom<import("@automate.ax/codec/rpc").CodecEnvelope, import("@automate.ax/codec/rpc").CodecEnvelope>;
|
|
151
151
|
id: z.ZodString;
|
|
152
152
|
sensitivity: z.ZodOptional<z.ZodNullable<z.ZodCustom<import("@automate.ax/codec").SensitivityMask, import("@automate.ax/codec").SensitivityMask>>>;
|
|
153
153
|
outputIndex: z.ZodNumber;
|
package/dist/automation.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { codecEnvelopeSchema } from "@automate.ax/codec/rpc";
|
|
2
2
|
import { sensitivityMaskSchema } from "./runtime.js";
|
|
3
3
|
import { oc } from "@orpc/contract";
|
|
4
4
|
import * as z from "zod";
|
|
@@ -86,7 +86,7 @@ export const automationContract = {
|
|
|
86
86
|
hasOutput: z.boolean(),
|
|
87
87
|
id: z.string(),
|
|
88
88
|
name: z.string(),
|
|
89
|
-
output:
|
|
89
|
+
output: codecEnvelopeSchema.optional(),
|
|
90
90
|
outputSensitivity: sensitivityMaskSchema.nullable().optional(),
|
|
91
91
|
slot: z.number().int().nonnegative(),
|
|
92
92
|
status: z.enum(["pending", "succeeded", "skipped", "failed"]),
|
|
@@ -96,7 +96,7 @@ export const automationContract = {
|
|
|
96
96
|
.object({
|
|
97
97
|
createdAt: z.date(),
|
|
98
98
|
id: z.string(),
|
|
99
|
-
payload:
|
|
99
|
+
payload: codecEnvelopeSchema,
|
|
100
100
|
type: z.string(),
|
|
101
101
|
})
|
|
102
102
|
.array(),
|
|
@@ -104,7 +104,7 @@ export const automationContract = {
|
|
|
104
104
|
.object({
|
|
105
105
|
actionInvocationId: z.string(),
|
|
106
106
|
createdAt: z.date(),
|
|
107
|
-
data:
|
|
107
|
+
data: codecEnvelopeSchema,
|
|
108
108
|
id: z.string(),
|
|
109
109
|
sensitivity: sensitivityMaskSchema.nullable().optional(),
|
|
110
110
|
outputIndex: z.number().int().nonnegative(),
|
package/dist/deployment.d.ts
CHANGED
|
@@ -113,7 +113,7 @@ export declare const deploymentContract: {
|
|
|
113
113
|
UNSUPPORTED_RUNTIME_PROTOCOL: {
|
|
114
114
|
readonly data: z.ZodObject<{
|
|
115
115
|
receivedVersion: z.ZodNullable<z.ZodNumber>;
|
|
116
|
-
supportedVersion: z.ZodLiteral<
|
|
116
|
+
supportedVersion: z.ZodLiteral<2>;
|
|
117
117
|
}, z.core.$strip>;
|
|
118
118
|
readonly message: "The automation bundle uses an unsupported runtime protocol.";
|
|
119
119
|
readonly status: 400;
|
|
@@ -289,7 +289,7 @@ export declare const deploymentContract: {
|
|
|
289
289
|
UNSUPPORTED_RUNTIME_PROTOCOL: {
|
|
290
290
|
readonly data: z.ZodObject<{
|
|
291
291
|
receivedVersion: z.ZodNullable<z.ZodNumber>;
|
|
292
|
-
supportedVersion: z.ZodLiteral<
|
|
292
|
+
supportedVersion: z.ZodLiteral<2>;
|
|
293
293
|
}, z.core.$strip>;
|
|
294
294
|
readonly message: "The automation bundle uses an unsupported runtime protocol.";
|
|
295
295
|
readonly status: 400;
|
package/dist/index.d.ts
CHANGED
|
@@ -654,7 +654,7 @@ export declare const publicContract: {
|
|
|
654
654
|
UNSUPPORTED_RUNTIME_PROTOCOL: {
|
|
655
655
|
readonly data: import("zod").ZodObject<{
|
|
656
656
|
receivedVersion: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
657
|
-
supportedVersion: import("zod").ZodLiteral<
|
|
657
|
+
supportedVersion: import("zod").ZodLiteral<2>;
|
|
658
658
|
}, import("zod/v4/core").$strip>;
|
|
659
659
|
readonly message: "The automation bundle uses an unsupported runtime protocol.";
|
|
660
660
|
readonly status: 400;
|
|
@@ -980,7 +980,7 @@ export declare const firstPartyContract: {
|
|
|
980
980
|
hasOutput: import("zod").ZodBoolean;
|
|
981
981
|
id: import("zod").ZodString;
|
|
982
982
|
name: import("zod").ZodString;
|
|
983
|
-
output: import("zod").ZodOptional<import("zod").ZodCustom<import("@automate.ax/codec").
|
|
983
|
+
output: import("zod").ZodOptional<import("zod").ZodCustom<import("@automate.ax/codec/rpc").CodecEnvelope, import("@automate.ax/codec/rpc").CodecEnvelope>>;
|
|
984
984
|
outputSensitivity: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodCustom<import("@automate.ax/codec").SensitivityMask, import("@automate.ax/codec").SensitivityMask>>>;
|
|
985
985
|
slot: import("zod").ZodNumber;
|
|
986
986
|
status: import("zod").ZodEnum<{
|
|
@@ -993,13 +993,13 @@ export declare const firstPartyContract: {
|
|
|
993
993
|
events: import("zod").ZodArray<import("zod").ZodObject<{
|
|
994
994
|
createdAt: import("zod").ZodDate;
|
|
995
995
|
id: import("zod").ZodString;
|
|
996
|
-
payload: import("zod").
|
|
996
|
+
payload: import("zod").ZodCustom<import("@automate.ax/codec/rpc").CodecEnvelope, import("@automate.ax/codec/rpc").CodecEnvelope>;
|
|
997
997
|
type: import("zod").ZodString;
|
|
998
998
|
}, import("zod/v4/core").$strip>>;
|
|
999
999
|
outputs: import("zod").ZodArray<import("zod").ZodObject<{
|
|
1000
1000
|
actionInvocationId: import("zod").ZodString;
|
|
1001
1001
|
createdAt: import("zod").ZodDate;
|
|
1002
|
-
data: import("zod").
|
|
1002
|
+
data: import("zod").ZodCustom<import("@automate.ax/codec/rpc").CodecEnvelope, import("@automate.ax/codec/rpc").CodecEnvelope>;
|
|
1003
1003
|
id: import("zod").ZodString;
|
|
1004
1004
|
sensitivity: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodCustom<import("@automate.ax/codec").SensitivityMask, import("@automate.ax/codec").SensitivityMask>>>;
|
|
1005
1005
|
outputIndex: import("zod").ZodNumber;
|
|
@@ -1252,7 +1252,7 @@ export declare const firstPartyContract: {
|
|
|
1252
1252
|
UNSUPPORTED_RUNTIME_PROTOCOL: {
|
|
1253
1253
|
readonly data: import("zod").ZodObject<{
|
|
1254
1254
|
receivedVersion: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
1255
|
-
supportedVersion: import("zod").ZodLiteral<
|
|
1255
|
+
supportedVersion: import("zod").ZodLiteral<2>;
|
|
1256
1256
|
}, import("zod/v4/core").$strip>;
|
|
1257
1257
|
readonly message: "The automation bundle uses an unsupported runtime protocol.";
|
|
1258
1258
|
readonly status: 400;
|
|
@@ -1428,7 +1428,7 @@ export declare const firstPartyContract: {
|
|
|
1428
1428
|
UNSUPPORTED_RUNTIME_PROTOCOL: {
|
|
1429
1429
|
readonly data: import("zod").ZodObject<{
|
|
1430
1430
|
receivedVersion: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
1431
|
-
supportedVersion: import("zod").ZodLiteral<
|
|
1431
|
+
supportedVersion: import("zod").ZodLiteral<2>;
|
|
1432
1432
|
}, import("zod/v4/core").$strip>;
|
|
1433
1433
|
readonly message: "The automation bundle uses an unsupported runtime protocol.";
|
|
1434
1434
|
readonly status: 400;
|
|
@@ -2381,7 +2381,7 @@ export declare const contract: {
|
|
|
2381
2381
|
roots: import("zod").ZodArray<import("zod").ZodNumber>;
|
|
2382
2382
|
}, import("zod/v4/core").$strip>>;
|
|
2383
2383
|
count: import("zod").ZodNumber;
|
|
2384
|
-
key: import("zod").
|
|
2384
|
+
key: import("zod").ZodCustom<import("@automate.ax/codec/rpc").CodecEnvelope, import("@automate.ax/codec/rpc").CodecEnvelope>;
|
|
2385
2385
|
outcomeSeq: import("zod").ZodNumber;
|
|
2386
2386
|
policy: import("zod").ZodLiteral<"collect">;
|
|
2387
2387
|
position: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
@@ -2415,7 +2415,7 @@ export declare const contract: {
|
|
|
2415
2415
|
}, import("zod/v4/core").$strip>], "type">>;
|
|
2416
2416
|
roots: import("zod").ZodArray<import("zod").ZodNumber>;
|
|
2417
2417
|
}, import("zod/v4/core").$strip>>;
|
|
2418
|
-
key: import("zod").
|
|
2418
|
+
key: import("zod").ZodCustom<import("@automate.ax/codec/rpc").CodecEnvelope, import("@automate.ax/codec/rpc").CodecEnvelope>;
|
|
2419
2419
|
ordered: import("zod").ZodBoolean;
|
|
2420
2420
|
outcomeSeq: import("zod").ZodNumber;
|
|
2421
2421
|
policy: import("zod").ZodLiteral<"correlate">;
|
|
@@ -2475,7 +2475,7 @@ export declare const contract: {
|
|
|
2475
2475
|
}, import("zod/v4/core").$strip>], "type">>;
|
|
2476
2476
|
roots: import("zod").ZodArray<import("zod").ZodNumber>;
|
|
2477
2477
|
}, import("zod/v4/core").$strip>>;
|
|
2478
|
-
key: import("zod").
|
|
2478
|
+
key: import("zod").ZodCustom<import("@automate.ax/codec/rpc").CodecEnvelope, import("@automate.ax/codec/rpc").CodecEnvelope>;
|
|
2479
2479
|
maxBurstDuration: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>>;
|
|
2480
2480
|
minGap: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>>;
|
|
2481
2481
|
minQuietPeriod: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>>;
|
|
@@ -2727,7 +2727,7 @@ export declare const contract: {
|
|
|
2727
2727
|
failure: import("zod").ZodType<import("./errors").AutomationErrorValue, import("./errors").AutomationErrorValue, import("zod/v4/core").$ZodTypeInternals<import("./errors").AutomationErrorValue, import("./errors").AutomationErrorValue>>;
|
|
2728
2728
|
status: import("zod").ZodLiteral<"failed">;
|
|
2729
2729
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
2730
|
-
output: import("zod").
|
|
2730
|
+
output: import("zod").ZodCustom<import("@automate.ax/codec/rpc").CodecEnvelope, import("@automate.ax/codec/rpc").CodecEnvelope>;
|
|
2731
2731
|
status: import("zod").ZodLiteral<"succeeded">;
|
|
2732
2732
|
}, import("zod/v4/core").$strip>]>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
|
|
2733
2733
|
completeTraceSpan: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodIntersection<import("zod").ZodObject<{
|
|
@@ -2790,6 +2790,7 @@ export declare const contract: {
|
|
|
2790
2790
|
schema: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodJSONSchema>;
|
|
2791
2791
|
}, import("zod/v4/core").$strip>>;
|
|
2792
2792
|
}, import("zod/v4/core").$strip>]>, import("zod").ZodObject<{
|
|
2793
|
+
text: import("zod").ZodString;
|
|
2793
2794
|
finishReason: import("zod").ZodEnum<{
|
|
2794
2795
|
error: "error";
|
|
2795
2796
|
length: "length";
|
|
@@ -2798,8 +2799,6 @@ export declare const contract: {
|
|
|
2798
2799
|
"content-filter": "content-filter";
|
|
2799
2800
|
"tool-calls": "tool-calls";
|
|
2800
2801
|
}>;
|
|
2801
|
-
output: import("zod").ZodOptional<import("zod").ZodCustom<import("@automate.ax/codec").Encodable, import("@automate.ax/codec").Encodable>>;
|
|
2802
|
-
providerMetadata: import("zod").ZodOptional<import("zod").ZodCustom<import("@automate.ax/codec").Encodable, import("@automate.ax/codec").Encodable>>;
|
|
2803
2802
|
rawFinishReason: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2804
2803
|
reasoningText: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2805
2804
|
response: import("zod").ZodObject<{
|
|
@@ -2808,22 +2807,6 @@ export declare const contract: {
|
|
|
2808
2807
|
modelId: import("zod").ZodString;
|
|
2809
2808
|
timestamp: import("zod").ZodISODateTime;
|
|
2810
2809
|
}, import("zod/v4/core").$strip>;
|
|
2811
|
-
text: import("zod").ZodString;
|
|
2812
|
-
usage: import("zod").ZodObject<{
|
|
2813
|
-
inputTokenDetails: import("zod").ZodObject<{
|
|
2814
|
-
cacheReadTokens: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
2815
|
-
cacheWriteTokens: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
2816
|
-
noCacheTokens: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
2817
|
-
}, import("zod/v4/core").$strip>;
|
|
2818
|
-
inputTokens: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
2819
|
-
outputTokenDetails: import("zod").ZodObject<{
|
|
2820
|
-
reasoningTokens: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
2821
|
-
textTokens: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
2822
|
-
}, import("zod/v4/core").$strip>;
|
|
2823
|
-
outputTokens: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
2824
|
-
raw: import("zod").ZodOptional<import("zod").ZodCustom<import("@automate.ax/codec").Encodable, import("@automate.ax/codec").Encodable>>;
|
|
2825
|
-
totalTokens: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
2826
|
-
}, import("zod/v4/core").$strip>;
|
|
2827
2810
|
warnings: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
2828
2811
|
details: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2829
2812
|
feature: import("zod").ZodString;
|
|
@@ -2840,23 +2823,36 @@ export declare const contract: {
|
|
|
2840
2823
|
message: import("zod").ZodString;
|
|
2841
2824
|
type: import("zod").ZodLiteral<"other">;
|
|
2842
2825
|
}, import("zod/v4/core").$strip>], "type">>>;
|
|
2826
|
+
output: import("zod").ZodCustom<import("@automate.ax/codec/rpc").CodecEnvelope, import("@automate.ax/codec/rpc").CodecEnvelope>;
|
|
2827
|
+
providerMetadata: import("zod").ZodCustom<import("@automate.ax/codec/rpc").CodecEnvelope, import("@automate.ax/codec/rpc").CodecEnvelope>;
|
|
2828
|
+
usage: import("zod").ZodObject<{
|
|
2829
|
+
inputTokenDetails: import("zod").ZodObject<{
|
|
2830
|
+
cacheReadTokens: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
2831
|
+
cacheWriteTokens: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
2832
|
+
noCacheTokens: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
2833
|
+
}, import("zod/v4/core").$strip>;
|
|
2834
|
+
inputTokens: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
2835
|
+
outputTokenDetails: import("zod").ZodObject<{
|
|
2836
|
+
reasoningTokens: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
2837
|
+
textTokens: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
2838
|
+
}, import("zod/v4/core").$strip>;
|
|
2839
|
+
outputTokens: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
2840
|
+
totalTokens: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
2841
|
+
raw: import("zod").ZodCustom<import("@automate.ax/codec/rpc").CodecEnvelope, import("@automate.ax/codec/rpc").CodecEnvelope>;
|
|
2842
|
+
}, import("zod/v4/core").$strip>;
|
|
2843
2843
|
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
2844
2844
|
startImageGeneration: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
2845
|
-
|
|
2846
|
-
headers: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
|
|
2847
|
-
maxImagesPerCall: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
2848
|
-
maxRetries: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
2845
|
+
entrypoint: import("zod").ZodString;
|
|
2849
2846
|
model: import("zod").ZodDefault<import("zod").ZodCustom<import("@ai-sdk/gateway").GatewayImageModelId, import("@ai-sdk/gateway").GatewayImageModelId>>;
|
|
2850
|
-
|
|
2851
|
-
prompt: import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodObject<{
|
|
2852
|
-
images: import("zod").ZodArray<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>, import("zod").ZodCustom<ArrayBuffer, ArrayBuffer>, import("zod").ZodCustom<Blob, Blob>]>>;
|
|
2853
|
-
mask: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>, import("zod").ZodCustom<ArrayBuffer, ArrayBuffer>, import("zod").ZodCustom<Blob, Blob>]>>;
|
|
2854
|
-
text: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2855
|
-
}, import("zod/v4/core").$strip>]>;
|
|
2847
|
+
maxRetries: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
2856
2848
|
providerOptions: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodJSONSchema>>>;
|
|
2857
2849
|
seed: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
2850
|
+
headers: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
|
|
2851
|
+
aspectRatio: import("zod").ZodOptional<import("zod").ZodCustom<`${number}:${number}`, `${number}:${number}`>>;
|
|
2852
|
+
maxImagesPerCall: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
2853
|
+
n: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
2858
2854
|
size: import("zod").ZodOptional<import("zod").ZodCustom<`${number}x${number}`, `${number}x${number}`>>;
|
|
2859
|
-
|
|
2855
|
+
prompt: import("zod").ZodCustom<import("@automate.ax/codec/rpc").CodecEnvelope, import("@automate.ax/codec/rpc").CodecEnvelope>;
|
|
2860
2856
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
2861
2857
|
key: import("zod").ZodString;
|
|
2862
2858
|
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
@@ -2865,7 +2861,7 @@ export declare const contract: {
|
|
|
2865
2861
|
}, import("zod/v4/core").$strip>, import("zod").ZodString, Record<never, never>, Record<never, never>>;
|
|
2866
2862
|
invokeAutomation: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodIntersection<import("zod").ZodIntersection<import("zod").ZodObject<{
|
|
2867
2863
|
entrypoint: import("zod").ZodDefault<import("zod").ZodString>;
|
|
2868
|
-
payload: import("zod").
|
|
2864
|
+
payload: import("zod").ZodCustom<import("@automate.ax/codec/rpc").CodecEnvelope, import("@automate.ax/codec/rpc").CodecEnvelope>;
|
|
2869
2865
|
}, import("zod/v4/core").$strip>, import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
2870
2866
|
automationId: import("zod").ZodString;
|
|
2871
2867
|
automationName: import("zod").ZodOptional<import("zod").ZodNever>;
|
|
@@ -3232,7 +3228,7 @@ export declare const contract: {
|
|
|
3232
3228
|
scopePath: import("zod").ZodArray<import("zod").ZodNumber>;
|
|
3233
3229
|
slot: import("zod").ZodNumber;
|
|
3234
3230
|
timestamp: import("zod").ZodDate;
|
|
3235
|
-
output: import("zod").
|
|
3231
|
+
output: import("zod").ZodCustom<import("@automate.ax/codec/rpc").CodecEnvelope, import("@automate.ax/codec/rpc").CodecEnvelope>;
|
|
3236
3232
|
outputSensitivity: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodCustom<import("@automate.ax/codec").SensitivityMask, import("@automate.ax/codec").SensitivityMask>>>;
|
|
3237
3233
|
status: import("zod").ZodLiteral<"succeeded">;
|
|
3238
3234
|
}, import("zod/v4/core").$strip>]>>;
|
|
@@ -3275,7 +3271,7 @@ export declare const contract: {
|
|
|
3275
3271
|
automationEventId: import("zod").ZodString;
|
|
3276
3272
|
contextId: import("zod").ZodString;
|
|
3277
3273
|
outcomeSeq: import("zod").ZodNumber;
|
|
3278
|
-
payload: import("zod").
|
|
3274
|
+
payload: import("zod").ZodCustom<import("@automate.ax/codec/rpc").CodecEnvelope, import("@automate.ax/codec/rpc").CodecEnvelope>;
|
|
3279
3275
|
scopePath: import("zod").ZodArray<import("zod").ZodNumber>;
|
|
3280
3276
|
slot: import("zod").ZodNumber;
|
|
3281
3277
|
timestamp: import("zod").ZodDate;
|
|
@@ -3312,7 +3308,7 @@ export declare const contract: {
|
|
|
3312
3308
|
signalInvocationId: import("zod").ZodString;
|
|
3313
3309
|
slot: import("zod").ZodNumber;
|
|
3314
3310
|
timestamp: import("zod").ZodDate;
|
|
3315
|
-
output: import("zod").ZodOptional<import("zod").
|
|
3311
|
+
output: import("zod").ZodOptional<import("zod").ZodCustom<import("@automate.ax/codec/rpc").CodecEnvelope, import("@automate.ax/codec/rpc").CodecEnvelope>>;
|
|
3316
3312
|
selectedIndex: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
3317
3313
|
status: import("zod").ZodLiteral<"succeeded">;
|
|
3318
3314
|
}, import("zod/v4/core").$strip>]>>;
|
|
@@ -3372,7 +3368,7 @@ export declare const contract: {
|
|
|
3372
3368
|
scopePath: import("zod").ZodArray<import("zod").ZodNumber>;
|
|
3373
3369
|
slot: import("zod").ZodNumber;
|
|
3374
3370
|
timestamp: import("zod").ZodDate;
|
|
3375
|
-
output: import("zod").
|
|
3371
|
+
output: import("zod").ZodCustom<import("@automate.ax/codec/rpc").CodecEnvelope, import("@automate.ax/codec/rpc").CodecEnvelope>;
|
|
3376
3372
|
outputSensitivity: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodCustom<import("@automate.ax/codec").SensitivityMask, import("@automate.ax/codec").SensitivityMask>>>;
|
|
3377
3373
|
status: import("zod").ZodLiteral<"succeeded">;
|
|
3378
3374
|
}, import("zod/v4/core").$strip>]>>;
|
|
@@ -3415,7 +3411,7 @@ export declare const contract: {
|
|
|
3415
3411
|
automationEventId: import("zod").ZodString;
|
|
3416
3412
|
contextId: import("zod").ZodString;
|
|
3417
3413
|
outcomeSeq: import("zod").ZodNumber;
|
|
3418
|
-
payload: import("zod").
|
|
3414
|
+
payload: import("zod").ZodCustom<import("@automate.ax/codec/rpc").CodecEnvelope, import("@automate.ax/codec/rpc").CodecEnvelope>;
|
|
3419
3415
|
scopePath: import("zod").ZodArray<import("zod").ZodNumber>;
|
|
3420
3416
|
slot: import("zod").ZodNumber;
|
|
3421
3417
|
timestamp: import("zod").ZodDate;
|
|
@@ -3452,7 +3448,7 @@ export declare const contract: {
|
|
|
3452
3448
|
signalInvocationId: import("zod").ZodString;
|
|
3453
3449
|
slot: import("zod").ZodNumber;
|
|
3454
3450
|
timestamp: import("zod").ZodDate;
|
|
3455
|
-
output: import("zod").ZodOptional<import("zod").
|
|
3451
|
+
output: import("zod").ZodOptional<import("zod").ZodCustom<import("@automate.ax/codec/rpc").CodecEnvelope, import("@automate.ax/codec/rpc").CodecEnvelope>>;
|
|
3456
3452
|
selectedIndex: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
3457
3453
|
status: import("zod").ZodLiteral<"succeeded">;
|
|
3458
3454
|
}, import("zod/v4/core").$strip>]>>;
|
|
@@ -3467,14 +3463,14 @@ export declare const contract: {
|
|
|
3467
3463
|
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
3468
3464
|
sendOutput: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
3469
3465
|
output: import("zod").ZodObject<{
|
|
3470
|
-
data: import("zod").
|
|
3466
|
+
data: import("zod").ZodCustom<import("@automate.ax/codec/rpc").CodecEnvelope, import("@automate.ax/codec/rpc").CodecEnvelope>;
|
|
3471
3467
|
type: import("zod").ZodString;
|
|
3472
3468
|
}, import("zod/v4/core").$strip>;
|
|
3473
3469
|
outputIndex: import("zod").ZodNumber;
|
|
3474
3470
|
sensitivity: import("zod").ZodOptional<import("zod").ZodCustom<import("@automate.ax/codec").SensitivityMask, import("@automate.ax/codec").SensitivityMask>>;
|
|
3475
3471
|
}, import("zod/v4/core").$strip>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
|
|
3476
3472
|
sendLog: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
3477
|
-
fields: import("zod").ZodOptional<import("zod").
|
|
3473
|
+
fields: import("zod").ZodOptional<import("zod").ZodCustom<import("@automate.ax/codec/rpc").CodecEnvelope, import("@automate.ax/codec/rpc").CodecEnvelope>>;
|
|
3478
3474
|
level: import("zod").ZodEnum<{
|
|
3479
3475
|
error: "error";
|
|
3480
3476
|
debug: "debug";
|
|
@@ -3488,7 +3484,7 @@ export declare const contract: {
|
|
|
3488
3484
|
timestamp: import("zod").ZodDate;
|
|
3489
3485
|
}, import("zod/v4/core").$strip>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
|
|
3490
3486
|
startTraceSpan: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
3491
|
-
attributes: import("zod").ZodOptional<import("zod").
|
|
3487
|
+
attributes: import("zod").ZodOptional<import("zod").ZodCustom<import("@automate.ax/codec/rpc").CodecEnvelope, import("@automate.ax/codec/rpc").CodecEnvelope>>;
|
|
3492
3488
|
name: import("zod").ZodString;
|
|
3493
3489
|
sensitivity: import("zod").ZodOptional<import("zod").ZodCustom<import("@automate.ax/codec").SensitivityMask, import("@automate.ax/codec").SensitivityMask>>;
|
|
3494
3490
|
parentSpanIndex: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
@@ -3538,7 +3534,7 @@ export declare const contract: {
|
|
|
3538
3534
|
hasOutput: import("zod").ZodBoolean;
|
|
3539
3535
|
id: import("zod").ZodString;
|
|
3540
3536
|
name: import("zod").ZodString;
|
|
3541
|
-
output: import("zod").ZodOptional<import("zod").ZodCustom<import("@automate.ax/codec").
|
|
3537
|
+
output: import("zod").ZodOptional<import("zod").ZodCustom<import("@automate.ax/codec/rpc").CodecEnvelope, import("@automate.ax/codec/rpc").CodecEnvelope>>;
|
|
3542
3538
|
outputSensitivity: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodCustom<import("@automate.ax/codec").SensitivityMask, import("@automate.ax/codec").SensitivityMask>>>;
|
|
3543
3539
|
slot: import("zod").ZodNumber;
|
|
3544
3540
|
status: import("zod").ZodEnum<{
|
|
@@ -3551,13 +3547,13 @@ export declare const contract: {
|
|
|
3551
3547
|
events: import("zod").ZodArray<import("zod").ZodObject<{
|
|
3552
3548
|
createdAt: import("zod").ZodDate;
|
|
3553
3549
|
id: import("zod").ZodString;
|
|
3554
|
-
payload: import("zod").
|
|
3550
|
+
payload: import("zod").ZodCustom<import("@automate.ax/codec/rpc").CodecEnvelope, import("@automate.ax/codec/rpc").CodecEnvelope>;
|
|
3555
3551
|
type: import("zod").ZodString;
|
|
3556
3552
|
}, import("zod/v4/core").$strip>>;
|
|
3557
3553
|
outputs: import("zod").ZodArray<import("zod").ZodObject<{
|
|
3558
3554
|
actionInvocationId: import("zod").ZodString;
|
|
3559
3555
|
createdAt: import("zod").ZodDate;
|
|
3560
|
-
data: import("zod").
|
|
3556
|
+
data: import("zod").ZodCustom<import("@automate.ax/codec/rpc").CodecEnvelope, import("@automate.ax/codec/rpc").CodecEnvelope>;
|
|
3561
3557
|
id: import("zod").ZodString;
|
|
3562
3558
|
sensitivity: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodCustom<import("@automate.ax/codec").SensitivityMask, import("@automate.ax/codec").SensitivityMask>>>;
|
|
3563
3559
|
outputIndex: import("zod").ZodNumber;
|
|
@@ -3746,7 +3742,7 @@ export declare const contract: {
|
|
|
3746
3742
|
UNSUPPORTED_RUNTIME_PROTOCOL: {
|
|
3747
3743
|
readonly data: import("zod").ZodObject<{
|
|
3748
3744
|
receivedVersion: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
3749
|
-
supportedVersion: import("zod").ZodLiteral<
|
|
3745
|
+
supportedVersion: import("zod").ZodLiteral<2>;
|
|
3750
3746
|
}, import("zod/v4/core").$strip>;
|
|
3751
3747
|
readonly message: "The automation bundle uses an unsupported runtime protocol.";
|
|
3752
3748
|
readonly status: 400;
|
|
@@ -3922,7 +3918,7 @@ export declare const contract: {
|
|
|
3922
3918
|
UNSUPPORTED_RUNTIME_PROTOCOL: {
|
|
3923
3919
|
readonly data: import("zod").ZodObject<{
|
|
3924
3920
|
receivedVersion: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
3925
|
-
supportedVersion: import("zod").ZodLiteral<
|
|
3921
|
+
supportedVersion: import("zod").ZodLiteral<2>;
|
|
3926
3922
|
}, import("zod/v4/core").$strip>;
|
|
3927
3923
|
readonly message: "The automation bundle uses an unsupported runtime protocol.";
|
|
3928
3924
|
readonly status: 400;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** Runtime protocol required by newly built automation bundles. */
|
|
2
|
-
export declare const AUTOMATION_RUNTIME_PROTOCOL_VERSION =
|
|
2
|
+
export declare const AUTOMATION_RUNTIME_PROTOCOL_VERSION = 2;
|
package/dist/runtime-protocol.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** Runtime protocol required by newly built automation bundles. */
|
|
2
|
-
export const AUTOMATION_RUNTIME_PROTOCOL_VERSION =
|
|
2
|
+
export const AUTOMATION_RUNTIME_PROTOCOL_VERSION = 2;
|