@automate.ax/api-contract 0.75.0 → 0.77.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/account.d.ts +373 -8
- package/dist/account.js +245 -14
- package/dist/api-key.d.ts +17 -9
- package/dist/api-key.js +4 -4
- package/dist/auth.d.ts +1 -1
- package/dist/auth.js +1 -1
- package/dist/authorization.d.ts +5 -5
- package/dist/authorization.js +21 -5
- package/dist/automation.d.ts +171 -6
- package/dist/automation.js +83 -3
- package/dist/deployment.d.ts +166 -10
- package/dist/deployment.js +113 -44
- package/dist/errors.d.ts +1 -1
- package/dist/errors.js +1 -1
- package/dist/events/airtable.d.ts +1 -1
- package/dist/events/airtable.js +1 -1
- package/dist/events/asana.d.ts +1 -1
- package/dist/events/asana.js +1 -1
- package/dist/events/brevo.d.ts +1 -1
- package/dist/events/brevo.js +1 -1
- package/dist/events/github.d.ts +1 -1
- package/dist/events/github.js +1 -1
- package/dist/events/gmail.d.ts +1 -1
- package/dist/events/gmail.js +1 -1
- package/dist/events/google-calendar.d.ts +1 -1
- package/dist/events/google-calendar.js +1 -1
- package/dist/events/google-forms.d.ts +1 -1
- package/dist/events/google-forms.js +1 -1
- package/dist/events/google-meet.d.ts +20 -0
- package/dist/events/google-meet.js +38 -0
- package/dist/events/index.d.ts +17 -0
- package/dist/events/index.js +2 -0
- package/dist/events/linear.d.ts +1 -1
- package/dist/events/linear.js +1 -1
- package/dist/events/mailhook.d.ts +1 -1
- package/dist/events/mailhook.js +1 -1
- package/dist/events/microsoft.d.ts +1 -1
- package/dist/events/microsoft.js +1 -1
- package/dist/events/resend.d.ts +1 -1
- package/dist/events/resend.js +1 -1
- package/dist/events/slack.d.ts +1 -1
- package/dist/events/slack.js +1 -1
- package/dist/events/trello.d.ts +1 -1
- package/dist/events/trello.js +1 -1
- package/dist/events/vercel.d.ts +1 -1
- package/dist/events/vercel.js +1 -1
- package/dist/events/whatsapp.d.ts +1 -1
- package/dist/events/whatsapp.js +1 -1
- package/dist/execution-data.d.ts +90 -0
- package/dist/execution-data.js +53 -0
- package/dist/index.d.ts +2022 -392
- package/dist/index.js +30 -9
- package/dist/org.d.ts +44 -36
- package/dist/org.js +6 -6
- package/dist/project.d.ts +24 -16
- package/dist/project.js +6 -6
- package/dist/runtime.d.ts +38 -3
- package/dist/runtime.js +54 -2
- package/dist/schemas.d.ts +21 -1
- package/dist/schemas.js +20 -1
- package/package.json +17 -6
- package/src/account.ts +263 -18
- package/src/api-key.ts +8 -4
- package/src/auth.ts +1 -1
- package/src/authorization.ts +23 -5
- package/src/automation.ts +90 -3
- package/src/deployment.ts +119 -44
- package/src/errors.ts +1 -1
- package/src/events/airtable.ts +1 -1
- package/src/events/asana.ts +1 -1
- package/src/events/brevo.ts +1 -1
- package/src/events/github.ts +1 -1
- package/src/events/gmail.ts +1 -1
- package/src/events/google-calendar.ts +1 -1
- package/src/events/google-forms.ts +1 -1
- package/src/events/google-meet.ts +48 -0
- package/src/events/index.ts +2 -0
- package/src/events/linear.ts +1 -1
- package/src/events/mailhook.ts +1 -1
- package/src/events/microsoft.ts +1 -1
- package/src/events/resend.ts +1 -1
- package/src/events/slack.ts +1 -1
- package/src/events/trello.ts +1 -1
- package/src/events/vercel.ts +1 -1
- package/src/events/whatsapp.ts +1 -1
- package/src/execution-data.ts +69 -0
- package/src/index.ts +61 -8
- package/src/org.ts +10 -6
- package/src/project.ts +10 -6
- package/src/runtime.ts +68 -2
- package/src/schemas.ts +23 -1
package/dist/automation.d.ts
CHANGED
|
@@ -1,10 +1,112 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
export declare const automationOutputSchema: z.ZodObject<{
|
|
3
|
+
accountBindings: z.ZodArray<z.ZodObject<{
|
|
4
|
+
account: z.ZodNullable<z.ZodObject<{
|
|
5
|
+
checkedAt: z.ZodNullable<z.ZodDate>;
|
|
6
|
+
connectionMethodId: z.ZodString;
|
|
7
|
+
error: z.ZodNullable<z.ZodObject<{
|
|
8
|
+
code: z.ZodString;
|
|
9
|
+
message: z.ZodString;
|
|
10
|
+
}, z.core.$strip>>;
|
|
11
|
+
id: z.ZodString;
|
|
12
|
+
label: z.ZodString;
|
|
13
|
+
scopes: z.ZodArray<z.ZodString>;
|
|
14
|
+
serviceId: z.ZodString;
|
|
15
|
+
serviceSub: z.ZodString;
|
|
16
|
+
}, z.core.$strip>>;
|
|
17
|
+
binding: z.ZodString;
|
|
18
|
+
serviceId: z.ZodString;
|
|
19
|
+
}, z.core.$strip>>;
|
|
20
|
+
activeDeploymentId: z.ZodString;
|
|
21
|
+
createdAt: z.ZodDate;
|
|
22
|
+
description: z.ZodString;
|
|
23
|
+
enabled: z.ZodBoolean;
|
|
24
|
+
id: z.ZodString;
|
|
25
|
+
identityKey: z.ZodString;
|
|
26
|
+
project: z.ZodObject<{
|
|
27
|
+
id: z.ZodString;
|
|
28
|
+
name: z.ZodString;
|
|
29
|
+
organization: z.ZodObject<{
|
|
30
|
+
id: z.ZodString;
|
|
31
|
+
name: z.ZodString;
|
|
32
|
+
}, z.core.$strip>;
|
|
33
|
+
}, z.core.$strip>;
|
|
34
|
+
triggers: z.ZodArray<z.ZodObject<{
|
|
35
|
+
details: z.ZodArray<z.ZodObject<{
|
|
36
|
+
copyable: z.ZodOptional<z.ZodBoolean>;
|
|
37
|
+
value: z.ZodString;
|
|
38
|
+
label: z.ZodString;
|
|
39
|
+
}, z.core.$strip>>;
|
|
40
|
+
hookSlot: z.ZodNumber;
|
|
41
|
+
id: z.ZodString;
|
|
42
|
+
name: z.ZodString;
|
|
43
|
+
primary: z.ZodOptional<z.ZodObject<{
|
|
44
|
+
copyable: z.ZodOptional<z.ZodBoolean>;
|
|
45
|
+
value: z.ZodString;
|
|
46
|
+
}, z.core.$strip>>;
|
|
47
|
+
scopePath: z.ZodArray<z.ZodNumber>;
|
|
48
|
+
type: z.ZodString;
|
|
49
|
+
}, z.core.$strip>>;
|
|
50
|
+
updatedAt: z.ZodDate;
|
|
51
|
+
}, z.core.$strip>;
|
|
2
52
|
export declare const automationExecutionStatusSchema: z.ZodEnum<{
|
|
3
53
|
failed: "failed";
|
|
4
54
|
running: "running";
|
|
5
|
-
|
|
55
|
+
settled: "settled";
|
|
6
56
|
}>;
|
|
7
57
|
export declare const automationContract: {
|
|
58
|
+
get: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
59
|
+
automationId: z.ZodString;
|
|
60
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
61
|
+
accountBindings: z.ZodArray<z.ZodObject<{
|
|
62
|
+
account: z.ZodNullable<z.ZodObject<{
|
|
63
|
+
checkedAt: z.ZodNullable<z.ZodDate>;
|
|
64
|
+
connectionMethodId: z.ZodString;
|
|
65
|
+
error: z.ZodNullable<z.ZodObject<{
|
|
66
|
+
code: z.ZodString;
|
|
67
|
+
message: z.ZodString;
|
|
68
|
+
}, z.core.$strip>>;
|
|
69
|
+
id: z.ZodString;
|
|
70
|
+
label: z.ZodString;
|
|
71
|
+
scopes: z.ZodArray<z.ZodString>;
|
|
72
|
+
serviceId: z.ZodString;
|
|
73
|
+
serviceSub: z.ZodString;
|
|
74
|
+
}, z.core.$strip>>;
|
|
75
|
+
binding: z.ZodString;
|
|
76
|
+
serviceId: z.ZodString;
|
|
77
|
+
}, z.core.$strip>>;
|
|
78
|
+
activeDeploymentId: z.ZodString;
|
|
79
|
+
createdAt: z.ZodDate;
|
|
80
|
+
description: z.ZodString;
|
|
81
|
+
enabled: z.ZodBoolean;
|
|
82
|
+
id: z.ZodString;
|
|
83
|
+
identityKey: z.ZodString;
|
|
84
|
+
project: z.ZodObject<{
|
|
85
|
+
id: z.ZodString;
|
|
86
|
+
name: z.ZodString;
|
|
87
|
+
organization: z.ZodObject<{
|
|
88
|
+
id: z.ZodString;
|
|
89
|
+
name: z.ZodString;
|
|
90
|
+
}, z.core.$strip>;
|
|
91
|
+
}, z.core.$strip>;
|
|
92
|
+
triggers: z.ZodArray<z.ZodObject<{
|
|
93
|
+
details: z.ZodArray<z.ZodObject<{
|
|
94
|
+
copyable: z.ZodOptional<z.ZodBoolean>;
|
|
95
|
+
value: z.ZodString;
|
|
96
|
+
label: z.ZodString;
|
|
97
|
+
}, z.core.$strip>>;
|
|
98
|
+
hookSlot: z.ZodNumber;
|
|
99
|
+
id: z.ZodString;
|
|
100
|
+
name: z.ZodString;
|
|
101
|
+
primary: z.ZodOptional<z.ZodObject<{
|
|
102
|
+
copyable: z.ZodOptional<z.ZodBoolean>;
|
|
103
|
+
value: z.ZodString;
|
|
104
|
+
}, z.core.$strip>>;
|
|
105
|
+
scopePath: z.ZodArray<z.ZodNumber>;
|
|
106
|
+
type: z.ZodString;
|
|
107
|
+
}, z.core.$strip>>;
|
|
108
|
+
updatedAt: z.ZodDate;
|
|
109
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
8
110
|
getExecution: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
9
111
|
automationId: z.ZodString;
|
|
10
112
|
executionId: z.ZodString;
|
|
@@ -13,11 +115,11 @@ export declare const automationContract: {
|
|
|
13
115
|
status: z.ZodEnum<{
|
|
14
116
|
failed: "failed";
|
|
15
117
|
running: "running";
|
|
16
|
-
|
|
118
|
+
settled: "settled";
|
|
17
119
|
}>;
|
|
18
|
-
completedAt: z.ZodNullable<z.ZodDate>;
|
|
19
120
|
createdAt: z.ZodDate;
|
|
20
121
|
failure: z.ZodNullable<z.ZodType<import("./errors").AutomationErrorValue, import("./errors").AutomationErrorValue, z.core.$ZodTypeInternals<import("./errors").AutomationErrorValue, import("./errors").AutomationErrorValue>>>;
|
|
122
|
+
settledAt: z.ZodNullable<z.ZodDate>;
|
|
21
123
|
actions: z.ZodArray<z.ZodObject<{
|
|
22
124
|
completedAt: z.ZodNullable<z.ZodDate>;
|
|
23
125
|
createdAt: z.ZodDate;
|
|
@@ -50,19 +152,82 @@ export declare const automationContract: {
|
|
|
50
152
|
type: z.ZodString;
|
|
51
153
|
}, z.core.$strip>>;
|
|
52
154
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
155
|
+
list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodPrefault<z.ZodObject<{
|
|
156
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
157
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
158
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
159
|
+
organizationId: z.ZodOptional<z.ZodString>;
|
|
160
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
161
|
+
query: z.ZodOptional<z.ZodString>;
|
|
162
|
+
}, z.core.$strip>>, z.ZodObject<{
|
|
163
|
+
items: z.ZodArray<z.ZodObject<{
|
|
164
|
+
accountBindings: z.ZodArray<z.ZodObject<{
|
|
165
|
+
account: z.ZodNullable<z.ZodObject<{
|
|
166
|
+
checkedAt: z.ZodNullable<z.ZodDate>;
|
|
167
|
+
connectionMethodId: z.ZodString;
|
|
168
|
+
error: z.ZodNullable<z.ZodObject<{
|
|
169
|
+
code: z.ZodString;
|
|
170
|
+
message: z.ZodString;
|
|
171
|
+
}, z.core.$strip>>;
|
|
172
|
+
id: z.ZodString;
|
|
173
|
+
label: z.ZodString;
|
|
174
|
+
scopes: z.ZodArray<z.ZodString>;
|
|
175
|
+
serviceId: z.ZodString;
|
|
176
|
+
serviceSub: z.ZodString;
|
|
177
|
+
}, z.core.$strip>>;
|
|
178
|
+
binding: z.ZodString;
|
|
179
|
+
serviceId: z.ZodString;
|
|
180
|
+
}, z.core.$strip>>;
|
|
181
|
+
activeDeploymentId: z.ZodString;
|
|
182
|
+
createdAt: z.ZodDate;
|
|
183
|
+
description: z.ZodString;
|
|
184
|
+
enabled: z.ZodBoolean;
|
|
185
|
+
id: z.ZodString;
|
|
186
|
+
identityKey: z.ZodString;
|
|
187
|
+
project: z.ZodObject<{
|
|
188
|
+
id: z.ZodString;
|
|
189
|
+
name: z.ZodString;
|
|
190
|
+
organization: z.ZodObject<{
|
|
191
|
+
id: z.ZodString;
|
|
192
|
+
name: z.ZodString;
|
|
193
|
+
}, z.core.$strip>;
|
|
194
|
+
}, z.core.$strip>;
|
|
195
|
+
triggers: z.ZodArray<z.ZodObject<{
|
|
196
|
+
details: z.ZodArray<z.ZodObject<{
|
|
197
|
+
copyable: z.ZodOptional<z.ZodBoolean>;
|
|
198
|
+
value: z.ZodString;
|
|
199
|
+
label: z.ZodString;
|
|
200
|
+
}, z.core.$strip>>;
|
|
201
|
+
hookSlot: z.ZodNumber;
|
|
202
|
+
id: z.ZodString;
|
|
203
|
+
name: z.ZodString;
|
|
204
|
+
primary: z.ZodOptional<z.ZodObject<{
|
|
205
|
+
copyable: z.ZodOptional<z.ZodBoolean>;
|
|
206
|
+
value: z.ZodString;
|
|
207
|
+
}, z.core.$strip>>;
|
|
208
|
+
scopePath: z.ZodArray<z.ZodNumber>;
|
|
209
|
+
type: z.ZodString;
|
|
210
|
+
}, z.core.$strip>>;
|
|
211
|
+
updatedAt: z.ZodDate;
|
|
212
|
+
}, z.core.$strip>>;
|
|
213
|
+
pageInfo: z.ZodObject<{
|
|
214
|
+
hasMore: z.ZodBoolean;
|
|
215
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
216
|
+
}, z.core.$strip>;
|
|
217
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
53
218
|
listExecutions: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
54
219
|
automationId: z.ZodString;
|
|
55
220
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
56
221
|
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
57
|
-
completedAt: z.ZodNullable<z.ZodDate>;
|
|
58
222
|
createdAt: z.ZodDate;
|
|
59
223
|
eventTypes: z.ZodArray<z.ZodString>;
|
|
60
224
|
failure: z.ZodNullable<z.ZodType<import("./errors").AutomationErrorValue, import("./errors").AutomationErrorValue, z.core.$ZodTypeInternals<import("./errors").AutomationErrorValue, import("./errors").AutomationErrorValue>>>;
|
|
61
225
|
id: z.ZodString;
|
|
226
|
+
settledAt: z.ZodNullable<z.ZodDate>;
|
|
62
227
|
status: z.ZodEnum<{
|
|
63
228
|
failed: "failed";
|
|
64
229
|
running: "running";
|
|
65
|
-
|
|
230
|
+
settled: "settled";
|
|
66
231
|
}>;
|
|
67
232
|
}, z.core.$strip>>, Record<never, never>, Record<never, never>>;
|
|
68
233
|
update: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
package/dist/automation.js
CHANGED
|
@@ -1,21 +1,75 @@
|
|
|
1
1
|
import { encodableSchema } from "@automate.ax/codec";
|
|
2
2
|
import { oc } from "@orpc/contract";
|
|
3
|
-
import
|
|
3
|
+
import * as z from "zod";
|
|
4
|
+
import { integrationAccountBindingOutputSchema } from "./account.js";
|
|
4
5
|
import { automationErrorSchema } from "./errors.js";
|
|
6
|
+
import { cursorPageOutputSchema, cursorPaginationInputSchema } from "./schemas.js";
|
|
7
|
+
const TRIGGER_PRESENTATION_VALUE_SCHEMA = z.object({
|
|
8
|
+
copyable: z.boolean().optional(),
|
|
9
|
+
value: z.string(),
|
|
10
|
+
});
|
|
11
|
+
export const automationOutputSchema = z.object({
|
|
12
|
+
accountBindings: z
|
|
13
|
+
.object({
|
|
14
|
+
account: integrationAccountBindingOutputSchema.nullable(),
|
|
15
|
+
binding: z.string(),
|
|
16
|
+
serviceId: z.string(),
|
|
17
|
+
})
|
|
18
|
+
.array(),
|
|
19
|
+
activeDeploymentId: z.string(),
|
|
20
|
+
createdAt: z.date(),
|
|
21
|
+
description: z.string(),
|
|
22
|
+
enabled: z.boolean(),
|
|
23
|
+
id: z.string(),
|
|
24
|
+
identityKey: z.string(),
|
|
25
|
+
project: z.object({
|
|
26
|
+
id: z.string(),
|
|
27
|
+
name: z.string(),
|
|
28
|
+
organization: z.object({
|
|
29
|
+
id: z.string(),
|
|
30
|
+
name: z.string(),
|
|
31
|
+
}),
|
|
32
|
+
}),
|
|
33
|
+
triggers: z
|
|
34
|
+
.object({
|
|
35
|
+
details: TRIGGER_PRESENTATION_VALUE_SCHEMA.extend({
|
|
36
|
+
label: z.string(),
|
|
37
|
+
}).array(),
|
|
38
|
+
hookSlot: z.number().int().nonnegative(),
|
|
39
|
+
id: z.string(),
|
|
40
|
+
name: z.string(),
|
|
41
|
+
primary: TRIGGER_PRESENTATION_VALUE_SCHEMA.optional(),
|
|
42
|
+
scopePath: z.number().int().nonnegative().array(),
|
|
43
|
+
type: z.string(),
|
|
44
|
+
})
|
|
45
|
+
.array(),
|
|
46
|
+
updatedAt: z.date(),
|
|
47
|
+
});
|
|
5
48
|
export const automationExecutionStatusSchema = z.enum([
|
|
6
49
|
"running",
|
|
7
|
-
"
|
|
50
|
+
"settled",
|
|
8
51
|
"failed",
|
|
9
52
|
]);
|
|
10
53
|
const EXECUTION_SUMMARY_SCHEMA = z.object({
|
|
11
|
-
completedAt: z.date().nullable(),
|
|
12
54
|
createdAt: z.date(),
|
|
13
55
|
eventTypes: z.string().array(),
|
|
14
56
|
failure: automationErrorSchema.nullable(),
|
|
15
57
|
id: z.string(),
|
|
58
|
+
settledAt: z.date().nullable(),
|
|
16
59
|
status: automationExecutionStatusSchema,
|
|
17
60
|
});
|
|
18
61
|
export const automationContract = {
|
|
62
|
+
get: oc
|
|
63
|
+
.route({
|
|
64
|
+
method: "GET",
|
|
65
|
+
path: "/automations/{automationId}",
|
|
66
|
+
operationId: "getAutomation",
|
|
67
|
+
summary: "Get automation",
|
|
68
|
+
description: "Returns an active automation with its triggers and integration account bindings.",
|
|
69
|
+
tags: ["Automations"],
|
|
70
|
+
})
|
|
71
|
+
.input(z.object({ automationId: z.string() }))
|
|
72
|
+
.output(automationOutputSchema),
|
|
19
73
|
getExecution: oc
|
|
20
74
|
.input(z.object({
|
|
21
75
|
automationId: z.string(),
|
|
@@ -55,6 +109,24 @@ export const automationContract = {
|
|
|
55
109
|
})
|
|
56
110
|
.array(),
|
|
57
111
|
})),
|
|
112
|
+
list: oc
|
|
113
|
+
.route({
|
|
114
|
+
method: "GET",
|
|
115
|
+
path: "/automations",
|
|
116
|
+
operationId: "listAutomations",
|
|
117
|
+
summary: "List automations",
|
|
118
|
+
description: "Lists active automations visible to the caller, optionally filtered by organization, project, state, or query.",
|
|
119
|
+
tags: ["Automations"],
|
|
120
|
+
})
|
|
121
|
+
.input(cursorPaginationInputSchema
|
|
122
|
+
.extend({
|
|
123
|
+
enabled: z.boolean().optional(),
|
|
124
|
+
organizationId: z.string().optional(),
|
|
125
|
+
projectId: z.string().optional(),
|
|
126
|
+
query: z.string().min(1).optional(),
|
|
127
|
+
})
|
|
128
|
+
.prefault({}))
|
|
129
|
+
.output(cursorPageOutputSchema(automationOutputSchema)),
|
|
58
130
|
listExecutions: oc
|
|
59
131
|
.input(z.object({
|
|
60
132
|
automationId: z.string(),
|
|
@@ -62,6 +134,14 @@ export const automationContract = {
|
|
|
62
134
|
}))
|
|
63
135
|
.output(EXECUTION_SUMMARY_SCHEMA.array()),
|
|
64
136
|
update: oc
|
|
137
|
+
.route({
|
|
138
|
+
method: "PATCH",
|
|
139
|
+
path: "/automations/{automationId}",
|
|
140
|
+
operationId: "updateAutomation",
|
|
141
|
+
summary: "Update automation",
|
|
142
|
+
description: "Enables or disables an automation. Requires project:update.",
|
|
143
|
+
tags: ["Automations"],
|
|
144
|
+
})
|
|
65
145
|
.input(z.object({
|
|
66
146
|
automationId: z.string(),
|
|
67
147
|
enabled: z.boolean(),
|
package/dist/deployment.d.ts
CHANGED
|
@@ -1,6 +1,73 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as z from "zod";
|
|
2
2
|
/** SDK compatibility version used to select the immutable runtime image. */
|
|
3
3
|
export declare const AUTOMATION_SDK_VERSION = "2";
|
|
4
|
+
export declare const deploymentStatusSchema: z.ZodEnum<{
|
|
5
|
+
succeeded: "succeeded";
|
|
6
|
+
failed: "failed";
|
|
7
|
+
awaiting_authorization: "awaiting_authorization";
|
|
8
|
+
configuring: "configuring";
|
|
9
|
+
publishing: "publishing";
|
|
10
|
+
planning: "planning";
|
|
11
|
+
cancelled: "cancelled";
|
|
12
|
+
}>;
|
|
13
|
+
export declare const deploymentOutputSchema: z.ZodObject<{
|
|
14
|
+
authorization: z.ZodNullable<z.ZodObject<{
|
|
15
|
+
requirements: z.ZodArray<z.ZodObject<{
|
|
16
|
+
binding: z.ZodString;
|
|
17
|
+
satisfied: z.ZodBoolean;
|
|
18
|
+
serviceId: z.ZodString;
|
|
19
|
+
}, z.core.$strip>>;
|
|
20
|
+
url: z.ZodURL;
|
|
21
|
+
}, z.core.$strip>>;
|
|
22
|
+
automations: z.ZodArray<z.ZodObject<{
|
|
23
|
+
description: z.ZodString;
|
|
24
|
+
id: z.ZodString;
|
|
25
|
+
identityKey: z.ZodString;
|
|
26
|
+
scopes: z.ZodArray<z.ZodObject<{
|
|
27
|
+
name: z.ZodOptional<z.ZodString>;
|
|
28
|
+
path: z.ZodArray<z.ZodNumber>;
|
|
29
|
+
presentation: z.ZodEnum<{
|
|
30
|
+
collapsed: "collapsed";
|
|
31
|
+
expanded: "expanded";
|
|
32
|
+
hidden: "hidden";
|
|
33
|
+
}>;
|
|
34
|
+
}, z.core.$strip>>;
|
|
35
|
+
subscriptions: z.ZodArray<z.ZodObject<{
|
|
36
|
+
config: z.ZodJSONSchema;
|
|
37
|
+
eventType: z.ZodString;
|
|
38
|
+
hookSlot: z.ZodNumber;
|
|
39
|
+
scopePath: z.ZodDefault<z.ZodArray<z.ZodNumber>>;
|
|
40
|
+
}, z.core.$strip>>;
|
|
41
|
+
}, z.core.$strip>>;
|
|
42
|
+
createdAt: z.ZodDate;
|
|
43
|
+
failure: z.ZodNullable<z.ZodObject<{
|
|
44
|
+
message: z.ZodString;
|
|
45
|
+
}, z.core.$strip>>;
|
|
46
|
+
id: z.ZodString;
|
|
47
|
+
git: z.ZodNullable<z.ZodObject<{
|
|
48
|
+
commitSha: z.ZodString;
|
|
49
|
+
dirty: z.ZodBoolean;
|
|
50
|
+
projectPath: z.ZodString;
|
|
51
|
+
repositoryUrl: z.ZodString;
|
|
52
|
+
}, z.core.$strip>>;
|
|
53
|
+
project: z.ZodObject<{
|
|
54
|
+
id: z.ZodString;
|
|
55
|
+
name: z.ZodString;
|
|
56
|
+
organization: z.ZodObject<{
|
|
57
|
+
id: z.ZodString;
|
|
58
|
+
name: z.ZodString;
|
|
59
|
+
}, z.core.$strip>;
|
|
60
|
+
}, z.core.$strip>;
|
|
61
|
+
status: z.ZodEnum<{
|
|
62
|
+
succeeded: "succeeded";
|
|
63
|
+
failed: "failed";
|
|
64
|
+
awaiting_authorization: "awaiting_authorization";
|
|
65
|
+
configuring: "configuring";
|
|
66
|
+
publishing: "publishing";
|
|
67
|
+
planning: "planning";
|
|
68
|
+
cancelled: "cancelled";
|
|
69
|
+
}>;
|
|
70
|
+
}, z.core.$strip>;
|
|
4
71
|
export declare const deploymentContract: {
|
|
5
72
|
cancel: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
6
73
|
deploymentId: z.ZodString;
|
|
@@ -32,10 +99,10 @@ export declare const deploymentContract: {
|
|
|
32
99
|
status: z.ZodEnum<{
|
|
33
100
|
succeeded: "succeeded";
|
|
34
101
|
failed: "failed";
|
|
35
|
-
planning: "planning";
|
|
36
102
|
awaiting_authorization: "awaiting_authorization";
|
|
37
103
|
configuring: "configuring";
|
|
38
104
|
publishing: "publishing";
|
|
105
|
+
planning: "planning";
|
|
39
106
|
cancelled: "cancelled";
|
|
40
107
|
}>;
|
|
41
108
|
}, z.core.$strip>;
|
|
@@ -46,6 +113,14 @@ export declare const deploymentContract: {
|
|
|
46
113
|
get: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
47
114
|
deploymentId: z.ZodString;
|
|
48
115
|
}, z.core.$strip>, z.ZodObject<{
|
|
116
|
+
authorization: z.ZodNullable<z.ZodObject<{
|
|
117
|
+
requirements: z.ZodArray<z.ZodObject<{
|
|
118
|
+
binding: z.ZodString;
|
|
119
|
+
satisfied: z.ZodBoolean;
|
|
120
|
+
serviceId: z.ZodString;
|
|
121
|
+
}, z.core.$strip>>;
|
|
122
|
+
url: z.ZodURL;
|
|
123
|
+
}, z.core.$strip>>;
|
|
49
124
|
automations: z.ZodArray<z.ZodObject<{
|
|
50
125
|
description: z.ZodString;
|
|
51
126
|
id: z.ZodString;
|
|
@@ -67,6 +142,9 @@ export declare const deploymentContract: {
|
|
|
67
142
|
}, z.core.$strip>>;
|
|
68
143
|
}, z.core.$strip>>;
|
|
69
144
|
createdAt: z.ZodDate;
|
|
145
|
+
failure: z.ZodNullable<z.ZodObject<{
|
|
146
|
+
message: z.ZodString;
|
|
147
|
+
}, z.core.$strip>>;
|
|
70
148
|
id: z.ZodString;
|
|
71
149
|
git: z.ZodNullable<z.ZodObject<{
|
|
72
150
|
commitSha: z.ZodString;
|
|
@@ -74,26 +152,104 @@ export declare const deploymentContract: {
|
|
|
74
152
|
projectPath: z.ZodString;
|
|
75
153
|
repositoryUrl: z.ZodString;
|
|
76
154
|
}, z.core.$strip>>;
|
|
77
|
-
job: z.ZodNullable<z.ZodObject<{
|
|
78
|
-
attempts: z.ZodNumber;
|
|
79
|
-
error: z.ZodNullable<z.ZodString>;
|
|
80
|
-
maxAttempts: z.ZodNumber;
|
|
81
|
-
nextRunAt: z.ZodDate;
|
|
82
|
-
}, z.core.$strip>>;
|
|
83
155
|
project: z.ZodObject<{
|
|
84
156
|
id: z.ZodString;
|
|
85
157
|
name: z.ZodString;
|
|
158
|
+
organization: z.ZodObject<{
|
|
159
|
+
id: z.ZodString;
|
|
160
|
+
name: z.ZodString;
|
|
161
|
+
}, z.core.$strip>;
|
|
86
162
|
}, z.core.$strip>;
|
|
87
163
|
status: z.ZodEnum<{
|
|
88
164
|
succeeded: "succeeded";
|
|
89
165
|
failed: "failed";
|
|
90
|
-
planning: "planning";
|
|
91
166
|
awaiting_authorization: "awaiting_authorization";
|
|
92
167
|
configuring: "configuring";
|
|
93
168
|
publishing: "publishing";
|
|
169
|
+
planning: "planning";
|
|
94
170
|
cancelled: "cancelled";
|
|
95
171
|
}>;
|
|
96
172
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
173
|
+
list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodPrefault<z.ZodObject<{
|
|
174
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
175
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
176
|
+
organizationId: z.ZodOptional<z.ZodString>;
|
|
177
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
178
|
+
since: z.ZodOptional<z.ZodDate>;
|
|
179
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
180
|
+
succeeded: "succeeded";
|
|
181
|
+
failed: "failed";
|
|
182
|
+
awaiting_authorization: "awaiting_authorization";
|
|
183
|
+
configuring: "configuring";
|
|
184
|
+
publishing: "publishing";
|
|
185
|
+
planning: "planning";
|
|
186
|
+
cancelled: "cancelled";
|
|
187
|
+
}>>;
|
|
188
|
+
until: z.ZodOptional<z.ZodDate>;
|
|
189
|
+
}, z.core.$strip>>, z.ZodObject<{
|
|
190
|
+
items: z.ZodArray<z.ZodObject<{
|
|
191
|
+
authorization: z.ZodNullable<z.ZodObject<{
|
|
192
|
+
requirements: z.ZodArray<z.ZodObject<{
|
|
193
|
+
binding: z.ZodString;
|
|
194
|
+
satisfied: z.ZodBoolean;
|
|
195
|
+
serviceId: z.ZodString;
|
|
196
|
+
}, z.core.$strip>>;
|
|
197
|
+
url: z.ZodURL;
|
|
198
|
+
}, z.core.$strip>>;
|
|
199
|
+
automations: z.ZodArray<z.ZodObject<{
|
|
200
|
+
description: z.ZodString;
|
|
201
|
+
id: z.ZodString;
|
|
202
|
+
identityKey: z.ZodString;
|
|
203
|
+
scopes: z.ZodArray<z.ZodObject<{
|
|
204
|
+
name: z.ZodOptional<z.ZodString>;
|
|
205
|
+
path: z.ZodArray<z.ZodNumber>;
|
|
206
|
+
presentation: z.ZodEnum<{
|
|
207
|
+
collapsed: "collapsed";
|
|
208
|
+
expanded: "expanded";
|
|
209
|
+
hidden: "hidden";
|
|
210
|
+
}>;
|
|
211
|
+
}, z.core.$strip>>;
|
|
212
|
+
subscriptions: z.ZodArray<z.ZodObject<{
|
|
213
|
+
config: z.ZodJSONSchema;
|
|
214
|
+
eventType: z.ZodString;
|
|
215
|
+
hookSlot: z.ZodNumber;
|
|
216
|
+
scopePath: z.ZodDefault<z.ZodArray<z.ZodNumber>>;
|
|
217
|
+
}, z.core.$strip>>;
|
|
218
|
+
}, z.core.$strip>>;
|
|
219
|
+
createdAt: z.ZodDate;
|
|
220
|
+
failure: z.ZodNullable<z.ZodObject<{
|
|
221
|
+
message: z.ZodString;
|
|
222
|
+
}, z.core.$strip>>;
|
|
223
|
+
id: z.ZodString;
|
|
224
|
+
git: z.ZodNullable<z.ZodObject<{
|
|
225
|
+
commitSha: z.ZodString;
|
|
226
|
+
dirty: z.ZodBoolean;
|
|
227
|
+
projectPath: z.ZodString;
|
|
228
|
+
repositoryUrl: z.ZodString;
|
|
229
|
+
}, z.core.$strip>>;
|
|
230
|
+
project: z.ZodObject<{
|
|
231
|
+
id: z.ZodString;
|
|
232
|
+
name: z.ZodString;
|
|
233
|
+
organization: z.ZodObject<{
|
|
234
|
+
id: z.ZodString;
|
|
235
|
+
name: z.ZodString;
|
|
236
|
+
}, z.core.$strip>;
|
|
237
|
+
}, z.core.$strip>;
|
|
238
|
+
status: z.ZodEnum<{
|
|
239
|
+
succeeded: "succeeded";
|
|
240
|
+
failed: "failed";
|
|
241
|
+
awaiting_authorization: "awaiting_authorization";
|
|
242
|
+
configuring: "configuring";
|
|
243
|
+
publishing: "publishing";
|
|
244
|
+
planning: "planning";
|
|
245
|
+
cancelled: "cancelled";
|
|
246
|
+
}>;
|
|
247
|
+
}, z.core.$strip>>;
|
|
248
|
+
pageInfo: z.ZodObject<{
|
|
249
|
+
hasMore: z.ZodBoolean;
|
|
250
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
251
|
+
}, z.core.$strip>;
|
|
252
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
97
253
|
redeploy: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
98
254
|
bindings: z.ZodArray<z.ZodObject<{
|
|
99
255
|
accountId: z.ZodString;
|
|
@@ -111,10 +267,10 @@ export declare const deploymentContract: {
|
|
|
111
267
|
status: z.ZodEnum<{
|
|
112
268
|
succeeded: "succeeded";
|
|
113
269
|
failed: "failed";
|
|
114
|
-
planning: "planning";
|
|
115
270
|
awaiting_authorization: "awaiting_authorization";
|
|
116
271
|
configuring: "configuring";
|
|
117
272
|
publishing: "publishing";
|
|
273
|
+
planning: "planning";
|
|
118
274
|
cancelled: "cancelled";
|
|
119
275
|
}>;
|
|
120
276
|
}, z.core.$strip>;
|