@automate.ax/api-contract 0.98.0 → 0.99.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/deployment.js +1 -1
- package/dist/events/resend.js +1 -1
- package/dist/execution-data.d.ts +5 -118
- package/dist/execution-data.js +3 -24
- package/dist/index.d.ts +10 -100
- package/dist/index.js +1 -1
- package/package.json +3 -3
- package/src/deployment.ts +1 -1
- package/src/events/resend.ts +1 -1
- package/src/execution-data.ts +5 -41
- package/src/index.ts +0 -3
package/dist/deployment.js
CHANGED
|
@@ -90,7 +90,7 @@ export const deploymentContract = {
|
|
|
90
90
|
path: "/deployments/{deploymentId}",
|
|
91
91
|
operationId: "cancelDeployment",
|
|
92
92
|
summary: "Cancel deployment",
|
|
93
|
-
description: "Cancels a deployment that is planning, awaiting authorization, or configuring.",
|
|
93
|
+
description: "Cancels a deployment that is planning, awaiting authorization, or configuring. Repeated cancellation of an already cancelled deployment succeeds without another effect.",
|
|
94
94
|
successStatus: 204,
|
|
95
95
|
tags: ["Deployments"],
|
|
96
96
|
})
|
package/dist/events/resend.js
CHANGED
|
@@ -9,7 +9,7 @@ export const resendEventsContract = {
|
|
|
9
9
|
summary: "Receive a Resend event",
|
|
10
10
|
description: "Receives and authenticates callbacks delivered by Resend webhooks.",
|
|
11
11
|
tags: ["Events"],
|
|
12
|
-
successStatus:
|
|
12
|
+
successStatus: 200,
|
|
13
13
|
})
|
|
14
14
|
.input(z.looseObject({ sourceId: z.string() }))
|
|
15
15
|
.output(z.void()),
|
package/dist/execution-data.d.ts
CHANGED
|
@@ -1,27 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const EXECUTION_DATASET_VERSION = 9;
|
|
3
|
-
/** @deprecated Retained until execution dataset version 8 clients are retired. */
|
|
4
|
-
export declare const LEGACY_TRACE_SPANS_EXECUTION_DATASET_RESOURCE: "trace-spans";
|
|
5
|
-
/** @deprecated Use `currentExecutionDatasetResourceSchema`. */
|
|
6
3
|
export declare const executionDatasetResourceSchema: z.ZodEnum<{
|
|
7
|
-
automations: "automations";
|
|
8
|
-
projects: "projects";
|
|
9
|
-
events: "events";
|
|
10
|
-
actions: "actions";
|
|
11
|
-
outputs: "outputs";
|
|
12
|
-
"trace-spans": "trace-spans";
|
|
13
|
-
"automation-invocations": "automation-invocations";
|
|
14
|
-
contexts: "contexts";
|
|
15
|
-
"context-parents": "context-parents";
|
|
16
|
-
"event-links": "event-links";
|
|
17
|
-
"action-attempts": "action-attempts";
|
|
18
|
-
"signal-invocations": "signal-invocations";
|
|
19
|
-
"signal-coordinators": "signal-coordinators";
|
|
20
|
-
"signal-offers": "signal-offers";
|
|
21
|
-
"signal-decisions": "signal-decisions";
|
|
22
|
-
logs: "logs";
|
|
23
|
-
}>;
|
|
24
|
-
export declare const currentExecutionDatasetResourceSchema: z.ZodEnum<{
|
|
25
4
|
automations: "automations";
|
|
26
5
|
projects: "projects";
|
|
27
6
|
events: "events";
|
|
@@ -44,14 +23,9 @@ export declare const executionDatasetScopeSchema: z.ZodObject<{
|
|
|
44
23
|
since: z.ZodNullable<z.ZodISODateTime>;
|
|
45
24
|
}, z.core.$strip>;
|
|
46
25
|
export declare const executionDatasetProfileIdSchema: z.ZodString;
|
|
47
|
-
export declare const
|
|
26
|
+
export declare const executionDatasetManifestSchema: z.ZodObject<{
|
|
48
27
|
consistency: z.ZodLiteral<"eventual">;
|
|
49
28
|
profileId: z.ZodString;
|
|
50
|
-
scope: z.ZodObject<{
|
|
51
|
-
organizationId: z.ZodNullable<z.ZodString>;
|
|
52
|
-
projectId: z.ZodNullable<z.ZodString>;
|
|
53
|
-
since: z.ZodNullable<z.ZodISODateTime>;
|
|
54
|
-
}, z.core.$strip>;
|
|
55
29
|
resources: z.ZodArray<z.ZodObject<{
|
|
56
30
|
name: z.ZodEnum<{
|
|
57
31
|
automations: "automations";
|
|
@@ -73,85 +47,23 @@ export declare const currentExecutionDatasetManifestSchema: z.ZodObject<{
|
|
|
73
47
|
url: z.ZodURL;
|
|
74
48
|
}, z.core.$strip>>;
|
|
75
49
|
schemaVersion: z.ZodLiteral<9>;
|
|
76
|
-
}, z.core.$strip>;
|
|
77
|
-
export declare const executionDatasetManifestSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
78
|
-
consistency: z.ZodLiteral<"eventual">;
|
|
79
|
-
profileId: z.ZodString;
|
|
80
|
-
scope: z.ZodObject<{
|
|
81
|
-
organizationId: z.ZodNullable<z.ZodString>;
|
|
82
|
-
projectId: z.ZodNullable<z.ZodString>;
|
|
83
|
-
since: z.ZodNullable<z.ZodISODateTime>;
|
|
84
|
-
}, z.core.$strip>;
|
|
85
|
-
resources: z.ZodArray<z.ZodObject<{
|
|
86
|
-
name: z.ZodEnum<{
|
|
87
|
-
automations: "automations";
|
|
88
|
-
projects: "projects";
|
|
89
|
-
events: "events";
|
|
90
|
-
actions: "actions";
|
|
91
|
-
outputs: "outputs";
|
|
92
|
-
"trace-spans": "trace-spans";
|
|
93
|
-
"automation-invocations": "automation-invocations";
|
|
94
|
-
contexts: "contexts";
|
|
95
|
-
"context-parents": "context-parents";
|
|
96
|
-
"event-links": "event-links";
|
|
97
|
-
"action-attempts": "action-attempts";
|
|
98
|
-
"signal-invocations": "signal-invocations";
|
|
99
|
-
"signal-coordinators": "signal-coordinators";
|
|
100
|
-
"signal-offers": "signal-offers";
|
|
101
|
-
"signal-decisions": "signal-decisions";
|
|
102
|
-
logs: "logs";
|
|
103
|
-
}>;
|
|
104
|
-
url: z.ZodURL;
|
|
105
|
-
}, z.core.$strip>>;
|
|
106
|
-
schemaVersion: z.ZodLiteral<8>;
|
|
107
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
108
|
-
consistency: z.ZodLiteral<"eventual">;
|
|
109
|
-
profileId: z.ZodString;
|
|
110
50
|
scope: z.ZodObject<{
|
|
111
51
|
organizationId: z.ZodNullable<z.ZodString>;
|
|
112
52
|
projectId: z.ZodNullable<z.ZodString>;
|
|
113
53
|
since: z.ZodNullable<z.ZodISODateTime>;
|
|
114
54
|
}, z.core.$strip>;
|
|
115
|
-
|
|
116
|
-
name: z.ZodEnum<{
|
|
117
|
-
automations: "automations";
|
|
118
|
-
projects: "projects";
|
|
119
|
-
events: "events";
|
|
120
|
-
actions: "actions";
|
|
121
|
-
outputs: "outputs";
|
|
122
|
-
"automation-invocations": "automation-invocations";
|
|
123
|
-
contexts: "contexts";
|
|
124
|
-
"context-parents": "context-parents";
|
|
125
|
-
"event-links": "event-links";
|
|
126
|
-
"action-attempts": "action-attempts";
|
|
127
|
-
"signal-invocations": "signal-invocations";
|
|
128
|
-
"signal-coordinators": "signal-coordinators";
|
|
129
|
-
"signal-offers": "signal-offers";
|
|
130
|
-
"signal-decisions": "signal-decisions";
|
|
131
|
-
logs: "logs";
|
|
132
|
-
}>;
|
|
133
|
-
url: z.ZodURL;
|
|
134
|
-
}, z.core.$strip>>;
|
|
135
|
-
schemaVersion: z.ZodLiteral<9>;
|
|
136
|
-
}, z.core.$strip>], "schemaVersion">;
|
|
55
|
+
}, z.core.$strip>;
|
|
137
56
|
export type ExecutionDatasetManifest = z.infer<typeof executionDatasetManifestSchema>;
|
|
138
|
-
/** @deprecated Use `CurrentExecutionDatasetResource`. */
|
|
139
57
|
export type ExecutionDatasetResource = z.infer<typeof executionDatasetResourceSchema>;
|
|
140
|
-
export type CurrentExecutionDatasetResource = z.infer<typeof currentExecutionDatasetResourceSchema>;
|
|
141
58
|
export type ExecutionDatasetScope = z.infer<typeof executionDatasetScopeSchema>;
|
|
142
59
|
export declare const executionDataContract: {
|
|
143
60
|
manifest: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
144
61
|
organizationId: z.ZodOptional<z.ZodString>;
|
|
145
62
|
projectId: z.ZodOptional<z.ZodString>;
|
|
146
63
|
since: z.ZodOptional<z.ZodISODateTime>;
|
|
147
|
-
}, z.core.$strip>, z.
|
|
64
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
148
65
|
consistency: z.ZodLiteral<"eventual">;
|
|
149
66
|
profileId: z.ZodString;
|
|
150
|
-
scope: z.ZodObject<{
|
|
151
|
-
organizationId: z.ZodNullable<z.ZodString>;
|
|
152
|
-
projectId: z.ZodNullable<z.ZodString>;
|
|
153
|
-
since: z.ZodNullable<z.ZodISODateTime>;
|
|
154
|
-
}, z.core.$strip>;
|
|
155
67
|
resources: z.ZodArray<z.ZodObject<{
|
|
156
68
|
name: z.ZodEnum<{
|
|
157
69
|
automations: "automations";
|
|
@@ -159,7 +71,6 @@ export declare const executionDataContract: {
|
|
|
159
71
|
events: "events";
|
|
160
72
|
actions: "actions";
|
|
161
73
|
outputs: "outputs";
|
|
162
|
-
"trace-spans": "trace-spans";
|
|
163
74
|
"automation-invocations": "automation-invocations";
|
|
164
75
|
contexts: "contexts";
|
|
165
76
|
"context-parents": "context-parents";
|
|
@@ -173,35 +84,11 @@ export declare const executionDataContract: {
|
|
|
173
84
|
}>;
|
|
174
85
|
url: z.ZodURL;
|
|
175
86
|
}, z.core.$strip>>;
|
|
176
|
-
schemaVersion: z.ZodLiteral<
|
|
177
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
178
|
-
consistency: z.ZodLiteral<"eventual">;
|
|
179
|
-
profileId: z.ZodString;
|
|
87
|
+
schemaVersion: z.ZodLiteral<9>;
|
|
180
88
|
scope: z.ZodObject<{
|
|
181
89
|
organizationId: z.ZodNullable<z.ZodString>;
|
|
182
90
|
projectId: z.ZodNullable<z.ZodString>;
|
|
183
91
|
since: z.ZodNullable<z.ZodISODateTime>;
|
|
184
92
|
}, z.core.$strip>;
|
|
185
|
-
|
|
186
|
-
name: z.ZodEnum<{
|
|
187
|
-
automations: "automations";
|
|
188
|
-
projects: "projects";
|
|
189
|
-
events: "events";
|
|
190
|
-
actions: "actions";
|
|
191
|
-
outputs: "outputs";
|
|
192
|
-
"automation-invocations": "automation-invocations";
|
|
193
|
-
contexts: "contexts";
|
|
194
|
-
"context-parents": "context-parents";
|
|
195
|
-
"event-links": "event-links";
|
|
196
|
-
"action-attempts": "action-attempts";
|
|
197
|
-
"signal-invocations": "signal-invocations";
|
|
198
|
-
"signal-coordinators": "signal-coordinators";
|
|
199
|
-
"signal-offers": "signal-offers";
|
|
200
|
-
"signal-decisions": "signal-decisions";
|
|
201
|
-
logs: "logs";
|
|
202
|
-
}>;
|
|
203
|
-
url: z.ZodURL;
|
|
204
|
-
}, z.core.$strip>>;
|
|
205
|
-
schemaVersion: z.ZodLiteral<9>;
|
|
206
|
-
}, z.core.$strip>], "schemaVersion">, Record<never, never>, Record<never, never>>;
|
|
93
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
207
94
|
};
|
package/dist/execution-data.js
CHANGED
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
import { oc } from "@orpc/contract";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
export const EXECUTION_DATASET_VERSION = 9;
|
|
4
|
-
/** @deprecated Retained until execution dataset version 8 clients are retired. */
|
|
5
|
-
const LEGACY_EXECUTION_DATASET_VERSION = 8;
|
|
6
|
-
/** @deprecated Retained until execution dataset version 8 clients are retired. */
|
|
7
|
-
export const LEGACY_TRACE_SPANS_EXECUTION_DATASET_RESOURCE = "trace-spans";
|
|
8
|
-
/** @deprecated Use `currentExecutionDatasetResourceSchema`. */
|
|
9
4
|
export const executionDatasetResourceSchema = z.enum([
|
|
10
5
|
"projects",
|
|
11
6
|
"automations",
|
|
@@ -22,10 +17,6 @@ export const executionDatasetResourceSchema = z.enum([
|
|
|
22
17
|
"signal-decisions",
|
|
23
18
|
"logs",
|
|
24
19
|
"outputs",
|
|
25
|
-
LEGACY_TRACE_SPANS_EXECUTION_DATASET_RESOURCE,
|
|
26
|
-
]);
|
|
27
|
-
export const currentExecutionDatasetResourceSchema = executionDatasetResourceSchema.exclude([
|
|
28
|
-
LEGACY_TRACE_SPANS_EXECUTION_DATASET_RESOURCE,
|
|
29
20
|
]);
|
|
30
21
|
export const executionDatasetScopeSchema = z.object({
|
|
31
22
|
organizationId: z.string().nullable(),
|
|
@@ -35,27 +26,15 @@ export const executionDatasetScopeSchema = z.object({
|
|
|
35
26
|
export const executionDatasetProfileIdSchema = z
|
|
36
27
|
.string()
|
|
37
28
|
.regex(/^[A-Za-z0-9_-]{24}$/, "Execution dataset profile IDs must be 24 base64url characters.");
|
|
38
|
-
|
|
39
|
-
const executionDatasetManifestBaseSchema = z.object({
|
|
29
|
+
export const executionDatasetManifestSchema = z.object({
|
|
40
30
|
consistency: z.literal("eventual"),
|
|
41
31
|
profileId: executionDatasetProfileIdSchema,
|
|
42
|
-
scope: executionDatasetScopeSchema,
|
|
43
|
-
});
|
|
44
|
-
export const currentExecutionDatasetManifestSchema = executionDatasetManifestBaseSchema.extend({
|
|
45
32
|
resources: z
|
|
46
|
-
.object({ name:
|
|
33
|
+
.object({ name: executionDatasetResourceSchema, url: z.url() })
|
|
47
34
|
.array(),
|
|
48
35
|
schemaVersion: z.literal(EXECUTION_DATASET_VERSION),
|
|
36
|
+
scope: executionDatasetScopeSchema,
|
|
49
37
|
});
|
|
50
|
-
export const executionDatasetManifestSchema = z.discriminatedUnion("schemaVersion", [
|
|
51
|
-
executionDatasetManifestBaseSchema.extend({
|
|
52
|
-
resources: z
|
|
53
|
-
.object({ name: executionDatasetResourceSchema, url: z.url() })
|
|
54
|
-
.array(),
|
|
55
|
-
schemaVersion: z.literal(LEGACY_EXECUTION_DATASET_VERSION),
|
|
56
|
-
}),
|
|
57
|
-
currentExecutionDatasetManifestSchema,
|
|
58
|
-
]);
|
|
59
38
|
export const executionDataContract = {
|
|
60
39
|
manifest: oc
|
|
61
40
|
.route({
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { automationExecutionStatusSchema, automationOutputSchema, } from "./automation.js";
|
|
2
|
-
export { EXECUTION_DATASET_VERSION,
|
|
2
|
+
export { EXECUTION_DATASET_VERSION, executionDatasetManifestSchema, executionDatasetProfileIdSchema, executionDatasetResourceSchema, executionDatasetScopeSchema, type ExecutionDatasetManifest, type ExecutionDatasetResource, type ExecutionDatasetScope, executionDataContract, } from "./execution-data.js";
|
|
3
3
|
export { AUTOMATION_SDK_VERSION, deploymentOutputSchema, deploymentStatusSchema, } from "./deployment.js";
|
|
4
4
|
export { AUTOMATION_RUNTIME_PROTOCOL_VERSION } from "./runtime-protocol.js";
|
|
5
5
|
export { AUTOMATION_ERROR_CAUSE_DEPTH, automationErrorSchema, type AutomationErrorValue, } from "./errors.js";
|
|
@@ -666,14 +666,9 @@ export declare const publicContract: {
|
|
|
666
666
|
organizationId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
667
667
|
projectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
668
668
|
since: import("zod").ZodOptional<import("zod").ZodISODateTime>;
|
|
669
|
-
}, import("zod/v4/core").$strip>, import("zod").
|
|
669
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
670
670
|
consistency: import("zod").ZodLiteral<"eventual">;
|
|
671
671
|
profileId: import("zod").ZodString;
|
|
672
|
-
scope: import("zod").ZodObject<{
|
|
673
|
-
organizationId: import("zod").ZodNullable<import("zod").ZodString>;
|
|
674
|
-
projectId: import("zod").ZodNullable<import("zod").ZodString>;
|
|
675
|
-
since: import("zod").ZodNullable<import("zod").ZodISODateTime>;
|
|
676
|
-
}, import("zod/v4/core").$strip>;
|
|
677
672
|
resources: import("zod").ZodArray<import("zod").ZodObject<{
|
|
678
673
|
name: import("zod").ZodEnum<{
|
|
679
674
|
automations: "automations";
|
|
@@ -681,7 +676,6 @@ export declare const publicContract: {
|
|
|
681
676
|
events: "events";
|
|
682
677
|
actions: "actions";
|
|
683
678
|
outputs: "outputs";
|
|
684
|
-
"trace-spans": "trace-spans";
|
|
685
679
|
"automation-invocations": "automation-invocations";
|
|
686
680
|
contexts: "contexts";
|
|
687
681
|
"context-parents": "context-parents";
|
|
@@ -695,37 +689,13 @@ export declare const publicContract: {
|
|
|
695
689
|
}>;
|
|
696
690
|
url: import("zod").ZodURL;
|
|
697
691
|
}, import("zod/v4/core").$strip>>;
|
|
698
|
-
schemaVersion: import("zod").ZodLiteral<
|
|
699
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
700
|
-
consistency: import("zod").ZodLiteral<"eventual">;
|
|
701
|
-
profileId: import("zod").ZodString;
|
|
692
|
+
schemaVersion: import("zod").ZodLiteral<9>;
|
|
702
693
|
scope: import("zod").ZodObject<{
|
|
703
694
|
organizationId: import("zod").ZodNullable<import("zod").ZodString>;
|
|
704
695
|
projectId: import("zod").ZodNullable<import("zod").ZodString>;
|
|
705
696
|
since: import("zod").ZodNullable<import("zod").ZodISODateTime>;
|
|
706
697
|
}, import("zod/v4/core").$strip>;
|
|
707
|
-
|
|
708
|
-
name: import("zod").ZodEnum<{
|
|
709
|
-
automations: "automations";
|
|
710
|
-
projects: "projects";
|
|
711
|
-
events: "events";
|
|
712
|
-
actions: "actions";
|
|
713
|
-
outputs: "outputs";
|
|
714
|
-
"automation-invocations": "automation-invocations";
|
|
715
|
-
contexts: "contexts";
|
|
716
|
-
"context-parents": "context-parents";
|
|
717
|
-
"event-links": "event-links";
|
|
718
|
-
"action-attempts": "action-attempts";
|
|
719
|
-
"signal-invocations": "signal-invocations";
|
|
720
|
-
"signal-coordinators": "signal-coordinators";
|
|
721
|
-
"signal-offers": "signal-offers";
|
|
722
|
-
"signal-decisions": "signal-decisions";
|
|
723
|
-
logs: "logs";
|
|
724
|
-
}>;
|
|
725
|
-
url: import("zod").ZodURL;
|
|
726
|
-
}, import("zod/v4/core").$strip>>;
|
|
727
|
-
schemaVersion: import("zod").ZodLiteral<9>;
|
|
728
|
-
}, import("zod/v4/core").$strip>], "schemaVersion">, Record<never, never>, Record<never, never>>;
|
|
698
|
+
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
729
699
|
};
|
|
730
700
|
org: {
|
|
731
701
|
create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
@@ -2051,14 +2021,9 @@ export declare const firstPartyContract: {
|
|
|
2051
2021
|
organizationId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2052
2022
|
projectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2053
2023
|
since: import("zod").ZodOptional<import("zod").ZodISODateTime>;
|
|
2054
|
-
}, import("zod/v4/core").$strip>, import("zod").
|
|
2024
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
2055
2025
|
consistency: import("zod").ZodLiteral<"eventual">;
|
|
2056
2026
|
profileId: import("zod").ZodString;
|
|
2057
|
-
scope: import("zod").ZodObject<{
|
|
2058
|
-
organizationId: import("zod").ZodNullable<import("zod").ZodString>;
|
|
2059
|
-
projectId: import("zod").ZodNullable<import("zod").ZodString>;
|
|
2060
|
-
since: import("zod").ZodNullable<import("zod").ZodISODateTime>;
|
|
2061
|
-
}, import("zod/v4/core").$strip>;
|
|
2062
2027
|
resources: import("zod").ZodArray<import("zod").ZodObject<{
|
|
2063
2028
|
name: import("zod").ZodEnum<{
|
|
2064
2029
|
automations: "automations";
|
|
@@ -2066,7 +2031,6 @@ export declare const firstPartyContract: {
|
|
|
2066
2031
|
events: "events";
|
|
2067
2032
|
actions: "actions";
|
|
2068
2033
|
outputs: "outputs";
|
|
2069
|
-
"trace-spans": "trace-spans";
|
|
2070
2034
|
"automation-invocations": "automation-invocations";
|
|
2071
2035
|
contexts: "contexts";
|
|
2072
2036
|
"context-parents": "context-parents";
|
|
@@ -2080,37 +2044,13 @@ export declare const firstPartyContract: {
|
|
|
2080
2044
|
}>;
|
|
2081
2045
|
url: import("zod").ZodURL;
|
|
2082
2046
|
}, import("zod/v4/core").$strip>>;
|
|
2083
|
-
schemaVersion: import("zod").ZodLiteral<
|
|
2084
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
2085
|
-
consistency: import("zod").ZodLiteral<"eventual">;
|
|
2086
|
-
profileId: import("zod").ZodString;
|
|
2047
|
+
schemaVersion: import("zod").ZodLiteral<9>;
|
|
2087
2048
|
scope: import("zod").ZodObject<{
|
|
2088
2049
|
organizationId: import("zod").ZodNullable<import("zod").ZodString>;
|
|
2089
2050
|
projectId: import("zod").ZodNullable<import("zod").ZodString>;
|
|
2090
2051
|
since: import("zod").ZodNullable<import("zod").ZodISODateTime>;
|
|
2091
2052
|
}, import("zod/v4/core").$strip>;
|
|
2092
|
-
|
|
2093
|
-
name: import("zod").ZodEnum<{
|
|
2094
|
-
automations: "automations";
|
|
2095
|
-
projects: "projects";
|
|
2096
|
-
events: "events";
|
|
2097
|
-
actions: "actions";
|
|
2098
|
-
outputs: "outputs";
|
|
2099
|
-
"automation-invocations": "automation-invocations";
|
|
2100
|
-
contexts: "contexts";
|
|
2101
|
-
"context-parents": "context-parents";
|
|
2102
|
-
"event-links": "event-links";
|
|
2103
|
-
"action-attempts": "action-attempts";
|
|
2104
|
-
"signal-invocations": "signal-invocations";
|
|
2105
|
-
"signal-coordinators": "signal-coordinators";
|
|
2106
|
-
"signal-offers": "signal-offers";
|
|
2107
|
-
"signal-decisions": "signal-decisions";
|
|
2108
|
-
logs: "logs";
|
|
2109
|
-
}>;
|
|
2110
|
-
url: import("zod").ZodURL;
|
|
2111
|
-
}, import("zod/v4/core").$strip>>;
|
|
2112
|
-
schemaVersion: import("zod").ZodLiteral<9>;
|
|
2113
|
-
}, import("zod/v4/core").$strip>], "schemaVersion">, Record<never, never>, Record<never, never>>;
|
|
2053
|
+
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
2114
2054
|
};
|
|
2115
2055
|
};
|
|
2116
2056
|
/** Complete contract implemented by the API service. */
|
|
@@ -6041,14 +5981,9 @@ export declare const contract: {
|
|
|
6041
5981
|
organizationId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
6042
5982
|
projectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
6043
5983
|
since: import("zod").ZodOptional<import("zod").ZodISODateTime>;
|
|
6044
|
-
}, import("zod/v4/core").$strip>, import("zod").
|
|
5984
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
6045
5985
|
consistency: import("zod").ZodLiteral<"eventual">;
|
|
6046
5986
|
profileId: import("zod").ZodString;
|
|
6047
|
-
scope: import("zod").ZodObject<{
|
|
6048
|
-
organizationId: import("zod").ZodNullable<import("zod").ZodString>;
|
|
6049
|
-
projectId: import("zod").ZodNullable<import("zod").ZodString>;
|
|
6050
|
-
since: import("zod").ZodNullable<import("zod").ZodISODateTime>;
|
|
6051
|
-
}, import("zod/v4/core").$strip>;
|
|
6052
5987
|
resources: import("zod").ZodArray<import("zod").ZodObject<{
|
|
6053
5988
|
name: import("zod").ZodEnum<{
|
|
6054
5989
|
automations: "automations";
|
|
@@ -6056,7 +5991,6 @@ export declare const contract: {
|
|
|
6056
5991
|
events: "events";
|
|
6057
5992
|
actions: "actions";
|
|
6058
5993
|
outputs: "outputs";
|
|
6059
|
-
"trace-spans": "trace-spans";
|
|
6060
5994
|
"automation-invocations": "automation-invocations";
|
|
6061
5995
|
contexts: "contexts";
|
|
6062
5996
|
"context-parents": "context-parents";
|
|
@@ -6070,36 +6004,12 @@ export declare const contract: {
|
|
|
6070
6004
|
}>;
|
|
6071
6005
|
url: import("zod").ZodURL;
|
|
6072
6006
|
}, import("zod/v4/core").$strip>>;
|
|
6073
|
-
schemaVersion: import("zod").ZodLiteral<
|
|
6074
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
6075
|
-
consistency: import("zod").ZodLiteral<"eventual">;
|
|
6076
|
-
profileId: import("zod").ZodString;
|
|
6007
|
+
schemaVersion: import("zod").ZodLiteral<9>;
|
|
6077
6008
|
scope: import("zod").ZodObject<{
|
|
6078
6009
|
organizationId: import("zod").ZodNullable<import("zod").ZodString>;
|
|
6079
6010
|
projectId: import("zod").ZodNullable<import("zod").ZodString>;
|
|
6080
6011
|
since: import("zod").ZodNullable<import("zod").ZodISODateTime>;
|
|
6081
6012
|
}, import("zod/v4/core").$strip>;
|
|
6082
|
-
|
|
6083
|
-
name: import("zod").ZodEnum<{
|
|
6084
|
-
automations: "automations";
|
|
6085
|
-
projects: "projects";
|
|
6086
|
-
events: "events";
|
|
6087
|
-
actions: "actions";
|
|
6088
|
-
outputs: "outputs";
|
|
6089
|
-
"automation-invocations": "automation-invocations";
|
|
6090
|
-
contexts: "contexts";
|
|
6091
|
-
"context-parents": "context-parents";
|
|
6092
|
-
"event-links": "event-links";
|
|
6093
|
-
"action-attempts": "action-attempts";
|
|
6094
|
-
"signal-invocations": "signal-invocations";
|
|
6095
|
-
"signal-coordinators": "signal-coordinators";
|
|
6096
|
-
"signal-offers": "signal-offers";
|
|
6097
|
-
"signal-decisions": "signal-decisions";
|
|
6098
|
-
logs: "logs";
|
|
6099
|
-
}>;
|
|
6100
|
-
url: import("zod").ZodURL;
|
|
6101
|
-
}, import("zod/v4/core").$strip>>;
|
|
6102
|
-
schemaVersion: import("zod").ZodLiteral<9>;
|
|
6103
|
-
}, import("zod/v4/core").$strip>], "schemaVersion">, Record<never, never>, Record<never, never>>;
|
|
6013
|
+
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
6104
6014
|
};
|
|
6105
6015
|
};
|
package/dist/index.js
CHANGED
|
@@ -10,7 +10,7 @@ import { orgContract } from "./org.js";
|
|
|
10
10
|
import { projectContract } from "./project.js";
|
|
11
11
|
import { runtimeContract } from "./runtime.js";
|
|
12
12
|
export { automationExecutionStatusSchema, automationOutputSchema, } from "./automation.js";
|
|
13
|
-
export { EXECUTION_DATASET_VERSION,
|
|
13
|
+
export { EXECUTION_DATASET_VERSION, executionDatasetManifestSchema, executionDatasetProfileIdSchema, executionDatasetResourceSchema, executionDatasetScopeSchema, executionDataContract, } from "./execution-data.js";
|
|
14
14
|
export { AUTOMATION_SDK_VERSION, deploymentOutputSchema, deploymentStatusSchema, } from "./deployment.js";
|
|
15
15
|
export { AUTOMATION_RUNTIME_PROTOCOL_VERSION } from "./runtime-protocol.js";
|
|
16
16
|
export { AUTOMATION_ERROR_CAUSE_DEPTH, automationErrorSchema, } from "./errors.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@automate.ax/api-contract",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.99.0",
|
|
4
4
|
"description": "Public oRPC contract for the Automate.ax API.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@ai-sdk/gateway": "4.0.46",
|
|
34
|
-
"@automate.ax/codec": "0.
|
|
35
|
-
"@automate.ax/integration-contracts": "0.
|
|
34
|
+
"@automate.ax/codec": "0.99.0",
|
|
35
|
+
"@automate.ax/integration-contracts": "0.99.0",
|
|
36
36
|
"@orpc/contract": "1.15.0",
|
|
37
37
|
"fast-json-stable-stringify": "^2.1.0",
|
|
38
38
|
"zod": "^4.3.6"
|
package/src/deployment.ts
CHANGED
|
@@ -99,7 +99,7 @@ export const deploymentContract = {
|
|
|
99
99
|
operationId: "cancelDeployment",
|
|
100
100
|
summary: "Cancel deployment",
|
|
101
101
|
description:
|
|
102
|
-
"Cancels a deployment that is planning, awaiting authorization, or configuring.",
|
|
102
|
+
"Cancels a deployment that is planning, awaiting authorization, or configuring. Repeated cancellation of an already cancelled deployment succeeds without another effect.",
|
|
103
103
|
successStatus: 204,
|
|
104
104
|
tags: ["Deployments"],
|
|
105
105
|
})
|
package/src/events/resend.ts
CHANGED
|
@@ -11,7 +11,7 @@ export const resendEventsContract = {
|
|
|
11
11
|
description:
|
|
12
12
|
"Receives and authenticates callbacks delivered by Resend webhooks.",
|
|
13
13
|
tags: ["Events"],
|
|
14
|
-
successStatus:
|
|
14
|
+
successStatus: 200,
|
|
15
15
|
})
|
|
16
16
|
.input(z.looseObject({ sourceId: z.string() }))
|
|
17
17
|
.output(z.void()),
|
package/src/execution-data.ts
CHANGED
|
@@ -3,14 +3,6 @@ import { z } from "zod"
|
|
|
3
3
|
|
|
4
4
|
export const EXECUTION_DATASET_VERSION = 9
|
|
5
5
|
|
|
6
|
-
/** @deprecated Retained until execution dataset version 8 clients are retired. */
|
|
7
|
-
const LEGACY_EXECUTION_DATASET_VERSION = 8
|
|
8
|
-
|
|
9
|
-
/** @deprecated Retained until execution dataset version 8 clients are retired. */
|
|
10
|
-
export const LEGACY_TRACE_SPANS_EXECUTION_DATASET_RESOURCE =
|
|
11
|
-
"trace-spans" as const
|
|
12
|
-
|
|
13
|
-
/** @deprecated Use `currentExecutionDatasetResourceSchema`. */
|
|
14
6
|
export const executionDatasetResourceSchema = z.enum([
|
|
15
7
|
"projects",
|
|
16
8
|
"automations",
|
|
@@ -27,14 +19,8 @@ export const executionDatasetResourceSchema = z.enum([
|
|
|
27
19
|
"signal-decisions",
|
|
28
20
|
"logs",
|
|
29
21
|
"outputs",
|
|
30
|
-
LEGACY_TRACE_SPANS_EXECUTION_DATASET_RESOURCE,
|
|
31
22
|
])
|
|
32
23
|
|
|
33
|
-
export const currentExecutionDatasetResourceSchema =
|
|
34
|
-
executionDatasetResourceSchema.exclude([
|
|
35
|
-
LEGACY_TRACE_SPANS_EXECUTION_DATASET_RESOURCE,
|
|
36
|
-
])
|
|
37
|
-
|
|
38
24
|
export const executionDatasetScopeSchema = z.object({
|
|
39
25
|
organizationId: z.string().nullable(),
|
|
40
26
|
projectId: z.string().nullable(),
|
|
@@ -48,45 +34,23 @@ export const executionDatasetProfileIdSchema = z
|
|
|
48
34
|
"Execution dataset profile IDs must be 24 base64url characters.",
|
|
49
35
|
)
|
|
50
36
|
|
|
51
|
-
|
|
52
|
-
const executionDatasetManifestBaseSchema = z.object({
|
|
37
|
+
export const executionDatasetManifestSchema = z.object({
|
|
53
38
|
consistency: z.literal("eventual"),
|
|
54
39
|
profileId: executionDatasetProfileIdSchema,
|
|
40
|
+
resources: z
|
|
41
|
+
.object({ name: executionDatasetResourceSchema, url: z.url() })
|
|
42
|
+
.array(),
|
|
43
|
+
schemaVersion: z.literal(EXECUTION_DATASET_VERSION),
|
|
55
44
|
scope: executionDatasetScopeSchema,
|
|
56
45
|
})
|
|
57
46
|
|
|
58
|
-
export const currentExecutionDatasetManifestSchema =
|
|
59
|
-
executionDatasetManifestBaseSchema.extend({
|
|
60
|
-
resources: z
|
|
61
|
-
.object({ name: currentExecutionDatasetResourceSchema, url: z.url() })
|
|
62
|
-
.array(),
|
|
63
|
-
schemaVersion: z.literal(EXECUTION_DATASET_VERSION),
|
|
64
|
-
})
|
|
65
|
-
|
|
66
|
-
export const executionDatasetManifestSchema = z.discriminatedUnion(
|
|
67
|
-
"schemaVersion",
|
|
68
|
-
[
|
|
69
|
-
executionDatasetManifestBaseSchema.extend({
|
|
70
|
-
resources: z
|
|
71
|
-
.object({ name: executionDatasetResourceSchema, url: z.url() })
|
|
72
|
-
.array(),
|
|
73
|
-
schemaVersion: z.literal(LEGACY_EXECUTION_DATASET_VERSION),
|
|
74
|
-
}),
|
|
75
|
-
currentExecutionDatasetManifestSchema,
|
|
76
|
-
],
|
|
77
|
-
)
|
|
78
|
-
|
|
79
47
|
export type ExecutionDatasetManifest = z.infer<
|
|
80
48
|
typeof executionDatasetManifestSchema
|
|
81
49
|
>
|
|
82
50
|
|
|
83
|
-
/** @deprecated Use `CurrentExecutionDatasetResource`. */
|
|
84
51
|
export type ExecutionDatasetResource = z.infer<
|
|
85
52
|
typeof executionDatasetResourceSchema
|
|
86
53
|
>
|
|
87
|
-
export type CurrentExecutionDatasetResource = z.infer<
|
|
88
|
-
typeof currentExecutionDatasetResourceSchema
|
|
89
|
-
>
|
|
90
54
|
export type ExecutionDatasetScope = z.infer<typeof executionDatasetScopeSchema>
|
|
91
55
|
|
|
92
56
|
export const executionDataContract = {
|
package/src/index.ts
CHANGED
|
@@ -16,15 +16,12 @@ export {
|
|
|
16
16
|
} from "./automation"
|
|
17
17
|
export {
|
|
18
18
|
EXECUTION_DATASET_VERSION,
|
|
19
|
-
currentExecutionDatasetManifestSchema,
|
|
20
|
-
currentExecutionDatasetResourceSchema,
|
|
21
19
|
executionDatasetManifestSchema,
|
|
22
20
|
executionDatasetProfileIdSchema,
|
|
23
21
|
executionDatasetResourceSchema,
|
|
24
22
|
executionDatasetScopeSchema,
|
|
25
23
|
type ExecutionDatasetManifest,
|
|
26
24
|
type ExecutionDatasetResource,
|
|
27
|
-
type CurrentExecutionDatasetResource,
|
|
28
25
|
type ExecutionDatasetScope,
|
|
29
26
|
executionDataContract,
|
|
30
27
|
} from "./execution-data"
|