@automate.ax/api-contract 0.45.0 → 0.47.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/automation.d.ts +1 -1
- package/dist/automation.js +1 -1
- package/dist/index.d.ts +397 -36
- package/dist/index.js +5 -2
- package/dist/org.d.ts +46 -0
- package/dist/org.js +64 -1
- package/dist/runtime.d.ts +326 -32
- package/dist/runtime.js +213 -71
- package/dist/schemas.d.ts +2 -0
- package/dist/schemas.js +5 -0
- package/package.json +2 -2
- package/src/automation.ts +1 -1
- package/src/index.ts +5 -1
- package/src/org.ts +76 -1
- package/src/runtime.ts +233 -73
- package/src/schemas.ts +6 -0
package/dist/index.js
CHANGED
|
@@ -14,9 +14,9 @@ export { integrationAccountOutputSchema } from "./account.js";
|
|
|
14
14
|
export { DEFAULT_GATEWAY_MODEL_ID, generationInputSchema, generationResultSchema, runtimeContract, } from "./runtime.js";
|
|
15
15
|
export { createdOrganizationApiKeyOutputSchema, organizationApiKeyOutputSchema, } from "./api-key.js";
|
|
16
16
|
export { integrationConnectionManifestSchema, integrationServiceManifestSchema, } from "./authorization.js";
|
|
17
|
-
export { activeSubscriptionOutputSchema, createdInvitationOutputSchema, organizationDetailsOutputSchema, organizationInvitationOutputSchema, organizationMemberOutputSchema, organizationProjectOutputSchema, organizationRoleSchema, organizationSummaryOutputSchema, publicOrganizationOutputSchema, } from "./org.js";
|
|
17
|
+
export { activeSubscriptionOutputSchema, createdInvitationOutputSchema, organizationDetailsOutputSchema, organizationInvitationOutputSchema, organizationMemberOutputSchema, organizationPhoneNumberOutputSchema, organizationProjectOutputSchema, organizationRoleSchema, organizationSummaryOutputSchema, publicOrganizationOutputSchema, } from "./org.js";
|
|
18
18
|
export { projectOutputSchema } from "./project.js";
|
|
19
|
-
export { reasonableNameSchema } from "./schemas.js";
|
|
19
|
+
export { e164PhoneNumberSchema, reasonableNameSchema } from "./schemas.js";
|
|
20
20
|
export { userOutputSchema } from "./auth.js";
|
|
21
21
|
export { managementPermissionStatement, managementRolePermissions, organizationApiKeyPermissions, } from "./permissions.js";
|
|
22
22
|
/** Procedures exposed by the public Node client and OpenAPI document. */
|
|
@@ -60,6 +60,9 @@ export const firstPartyContract = {
|
|
|
60
60
|
canInvite: orgContract.canInvite,
|
|
61
61
|
createBillingPortal: orgContract.createBillingPortal,
|
|
62
62
|
createCheckout: orgContract.createCheckout,
|
|
63
|
+
removePhoneNumber: orgContract.removePhoneNumber,
|
|
64
|
+
requestPhoneNumberVerification: orgContract.requestPhoneNumberVerification,
|
|
65
|
+
verifyPhoneNumber: orgContract.verifyPhoneNumber,
|
|
63
66
|
},
|
|
64
67
|
project: {
|
|
65
68
|
...publicContract.project,
|
package/dist/org.d.ts
CHANGED
|
@@ -46,12 +46,21 @@ export declare const organizationSummaryOutputSchema: z.ZodObject<{
|
|
|
46
46
|
emailRecipients: z.ZodNumber;
|
|
47
47
|
projects: z.ZodNumber;
|
|
48
48
|
seats: z.ZodNumber;
|
|
49
|
+
smsSegments: z.ZodNumber;
|
|
49
50
|
}, z.core.$strip>;
|
|
50
51
|
usage: z.ZodObject<{
|
|
51
52
|
aiSpendUsd: z.ZodNumber;
|
|
52
53
|
emailRecipients: z.ZodNumber;
|
|
54
|
+
smsSegments: z.ZodNumber;
|
|
53
55
|
}, z.core.$strip>;
|
|
54
56
|
}, z.core.$strip>;
|
|
57
|
+
export declare const organizationPhoneNumberOutputSchema: z.ZodObject<{
|
|
58
|
+
id: z.ZodString;
|
|
59
|
+
phoneNumber: z.ZodString;
|
|
60
|
+
createdAt: z.ZodDate;
|
|
61
|
+
verifiedAt: z.ZodNullable<z.ZodDate>;
|
|
62
|
+
consentedAt: z.ZodNullable<z.ZodDate>;
|
|
63
|
+
}, z.core.$strip>;
|
|
55
64
|
export declare const organizationMemberOutputSchema: z.ZodObject<{
|
|
56
65
|
id: z.ZodString;
|
|
57
66
|
userId: z.ZodString;
|
|
@@ -113,10 +122,12 @@ export declare const organizationDetailsOutputSchema: z.ZodObject<{
|
|
|
113
122
|
emailRecipients: z.ZodNumber;
|
|
114
123
|
projects: z.ZodNumber;
|
|
115
124
|
seats: z.ZodNumber;
|
|
125
|
+
smsSegments: z.ZodNumber;
|
|
116
126
|
}, z.core.$strip>;
|
|
117
127
|
usage: z.ZodObject<{
|
|
118
128
|
aiSpendUsd: z.ZodNumber;
|
|
119
129
|
emailRecipients: z.ZodNumber;
|
|
130
|
+
smsSegments: z.ZodNumber;
|
|
120
131
|
}, z.core.$strip>;
|
|
121
132
|
members: z.ZodArray<z.ZodObject<{
|
|
122
133
|
id: z.ZodString;
|
|
@@ -143,6 +154,13 @@ export declare const organizationDetailsOutputSchema: z.ZodObject<{
|
|
|
143
154
|
createdAt: z.ZodDate;
|
|
144
155
|
expiresAt: z.ZodDate;
|
|
145
156
|
}, z.core.$strip>>;
|
|
157
|
+
phoneNumbers: z.ZodArray<z.ZodObject<{
|
|
158
|
+
id: z.ZodString;
|
|
159
|
+
phoneNumber: z.ZodString;
|
|
160
|
+
createdAt: z.ZodDate;
|
|
161
|
+
verifiedAt: z.ZodNullable<z.ZodDate>;
|
|
162
|
+
consentedAt: z.ZodNullable<z.ZodDate>;
|
|
163
|
+
}, z.core.$strip>>;
|
|
146
164
|
projects: z.ZodArray<z.ZodObject<{
|
|
147
165
|
id: z.ZodString;
|
|
148
166
|
name: z.ZodString;
|
|
@@ -215,10 +233,12 @@ export declare const orgContract: {
|
|
|
215
233
|
emailRecipients: z.ZodNumber;
|
|
216
234
|
projects: z.ZodNumber;
|
|
217
235
|
seats: z.ZodNumber;
|
|
236
|
+
smsSegments: z.ZodNumber;
|
|
218
237
|
}, z.core.$strip>;
|
|
219
238
|
usage: z.ZodObject<{
|
|
220
239
|
aiSpendUsd: z.ZodNumber;
|
|
221
240
|
emailRecipients: z.ZodNumber;
|
|
241
|
+
smsSegments: z.ZodNumber;
|
|
222
242
|
}, z.core.$strip>;
|
|
223
243
|
members: z.ZodArray<z.ZodObject<{
|
|
224
244
|
id: z.ZodString;
|
|
@@ -245,6 +265,13 @@ export declare const orgContract: {
|
|
|
245
265
|
createdAt: z.ZodDate;
|
|
246
266
|
expiresAt: z.ZodDate;
|
|
247
267
|
}, z.core.$strip>>;
|
|
268
|
+
phoneNumbers: z.ZodArray<z.ZodObject<{
|
|
269
|
+
id: z.ZodString;
|
|
270
|
+
phoneNumber: z.ZodString;
|
|
271
|
+
createdAt: z.ZodDate;
|
|
272
|
+
verifiedAt: z.ZodNullable<z.ZodDate>;
|
|
273
|
+
consentedAt: z.ZodNullable<z.ZodDate>;
|
|
274
|
+
}, z.core.$strip>>;
|
|
248
275
|
projects: z.ZodArray<z.ZodObject<{
|
|
249
276
|
id: z.ZodString;
|
|
250
277
|
name: z.ZodString;
|
|
@@ -305,18 +332,37 @@ export declare const orgContract: {
|
|
|
305
332
|
emailRecipients: z.ZodNumber;
|
|
306
333
|
projects: z.ZodNumber;
|
|
307
334
|
seats: z.ZodNumber;
|
|
335
|
+
smsSegments: z.ZodNumber;
|
|
308
336
|
}, z.core.$strip>;
|
|
309
337
|
usage: z.ZodObject<{
|
|
310
338
|
aiSpendUsd: z.ZodNumber;
|
|
311
339
|
emailRecipients: z.ZodNumber;
|
|
340
|
+
smsSegments: z.ZodNumber;
|
|
312
341
|
}, z.core.$strip>;
|
|
313
342
|
}, z.core.$strip>>, Record<never, never>, Record<never, never>>;
|
|
314
343
|
remove: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
315
344
|
organizationId: z.ZodString;
|
|
316
345
|
memberIdOrEmail: z.ZodString;
|
|
317
346
|
}, z.core.$strip>, z.ZodVoid, Record<never, never>, Record<never, never>>;
|
|
347
|
+
removePhoneNumber: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
348
|
+
organizationId: z.ZodString;
|
|
349
|
+
phoneNumberId: z.ZodString;
|
|
350
|
+
}, z.core.$strip>, z.ZodVoid, Record<never, never>, Record<never, never>>;
|
|
351
|
+
requestPhoneNumberVerification: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
352
|
+
organizationId: z.ZodString;
|
|
353
|
+
phoneNumber: z.ZodString;
|
|
354
|
+
smsConsent: z.ZodLiteral<true>;
|
|
355
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
356
|
+
expiresAt: z.ZodDate;
|
|
357
|
+
phoneNumberId: z.ZodString;
|
|
358
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
318
359
|
update: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
319
360
|
organizationId: z.ZodString;
|
|
320
361
|
name: z.ZodString;
|
|
321
362
|
}, z.core.$strip>, z.ZodVoid, Record<never, never>, Record<never, never>>;
|
|
363
|
+
verifyPhoneNumber: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
364
|
+
organizationId: z.ZodString;
|
|
365
|
+
phoneNumberId: z.ZodString;
|
|
366
|
+
code: z.ZodString;
|
|
367
|
+
}, z.core.$strip>, z.ZodVoid, Record<never, never>, Record<never, never>>;
|
|
322
368
|
};
|
package/dist/org.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { oc } from "@orpc/contract";
|
|
2
2
|
import { z } from "zod";
|
|
3
|
-
import { reasonableNameSchema } from "./schemas.js";
|
|
3
|
+
import { e164PhoneNumberSchema, reasonableNameSchema } from "./schemas.js";
|
|
4
4
|
export const organizationRoleSchema = z.enum(["member", "admin", "owner"]);
|
|
5
5
|
export const publicOrganizationOutputSchema = z.object({
|
|
6
6
|
id: z.string(),
|
|
@@ -30,12 +30,21 @@ export const organizationSummaryOutputSchema = z.object({
|
|
|
30
30
|
emailRecipients: z.number(),
|
|
31
31
|
projects: z.number(),
|
|
32
32
|
seats: z.number(),
|
|
33
|
+
smsSegments: z.number(),
|
|
33
34
|
}),
|
|
34
35
|
usage: z.object({
|
|
35
36
|
aiSpendUsd: z.number(),
|
|
36
37
|
emailRecipients: z.number(),
|
|
38
|
+
smsSegments: z.number(),
|
|
37
39
|
}),
|
|
38
40
|
});
|
|
41
|
+
export const organizationPhoneNumberOutputSchema = z.object({
|
|
42
|
+
id: z.string(),
|
|
43
|
+
phoneNumber: e164PhoneNumberSchema,
|
|
44
|
+
createdAt: z.date(),
|
|
45
|
+
verifiedAt: z.date().nullable(),
|
|
46
|
+
consentedAt: z.date().nullable(),
|
|
47
|
+
});
|
|
39
48
|
export const organizationMemberOutputSchema = z.object({
|
|
40
49
|
id: z.string(),
|
|
41
50
|
userId: z.string(),
|
|
@@ -61,6 +70,7 @@ export const organizationProjectOutputSchema = z.object({
|
|
|
61
70
|
export const organizationDetailsOutputSchema = organizationSummaryOutputSchema.extend({
|
|
62
71
|
members: organizationMemberOutputSchema.array(),
|
|
63
72
|
invitations: organizationInvitationOutputSchema.array(),
|
|
73
|
+
phoneNumbers: organizationPhoneNumberOutputSchema.array(),
|
|
64
74
|
projects: organizationProjectOutputSchema.array(),
|
|
65
75
|
});
|
|
66
76
|
export const createdInvitationOutputSchema = z.object({
|
|
@@ -174,6 +184,40 @@ export const orgContract = {
|
|
|
174
184
|
memberIdOrEmail: z.string().min(1),
|
|
175
185
|
}))
|
|
176
186
|
.output(z.void()),
|
|
187
|
+
removePhoneNumber: oc
|
|
188
|
+
.route({
|
|
189
|
+
method: "DELETE",
|
|
190
|
+
path: "/organizations/{organizationId}/phone-numbers/{phoneNumberId}",
|
|
191
|
+
operationId: "removeOrganizationPhoneNumber",
|
|
192
|
+
summary: "Remove organization phone number",
|
|
193
|
+
description: "Removes an organization SMS destination and its verification and consent state.",
|
|
194
|
+
tags: ["Organizations"],
|
|
195
|
+
successStatus: 204,
|
|
196
|
+
})
|
|
197
|
+
.input(z.object({
|
|
198
|
+
organizationId: z.string(),
|
|
199
|
+
phoneNumberId: z.string(),
|
|
200
|
+
}))
|
|
201
|
+
.output(z.void()),
|
|
202
|
+
requestPhoneNumberVerification: oc
|
|
203
|
+
.route({
|
|
204
|
+
method: "POST",
|
|
205
|
+
path: "/organizations/{organizationId}/phone-numbers/verifications",
|
|
206
|
+
operationId: "requestOrganizationPhoneNumberVerification",
|
|
207
|
+
summary: "Request organization phone verification",
|
|
208
|
+
description: "Sends a verification code after the caller explicitly consents to organization automation SMS alerts.",
|
|
209
|
+
tags: ["Organizations"],
|
|
210
|
+
successStatus: 201,
|
|
211
|
+
})
|
|
212
|
+
.input(z.object({
|
|
213
|
+
organizationId: z.string(),
|
|
214
|
+
phoneNumber: e164PhoneNumberSchema,
|
|
215
|
+
smsConsent: z.literal(true),
|
|
216
|
+
}))
|
|
217
|
+
.output(z.object({
|
|
218
|
+
expiresAt: z.date(),
|
|
219
|
+
phoneNumberId: z.string(),
|
|
220
|
+
})),
|
|
177
221
|
update: oc
|
|
178
222
|
.route({
|
|
179
223
|
method: "PATCH",
|
|
@@ -189,4 +233,23 @@ export const orgContract = {
|
|
|
189
233
|
name: reasonableNameSchema,
|
|
190
234
|
}))
|
|
191
235
|
.output(z.void()),
|
|
236
|
+
verifyPhoneNumber: oc
|
|
237
|
+
.route({
|
|
238
|
+
method: "POST",
|
|
239
|
+
path: "/organizations/{organizationId}/phone-numbers/{phoneNumberId}/verification",
|
|
240
|
+
operationId: "verifyOrganizationPhoneNumber",
|
|
241
|
+
summary: "Verify organization phone number",
|
|
242
|
+
description: "Verifies possession of an organization SMS destination and activates its recorded consent.",
|
|
243
|
+
tags: ["Organizations"],
|
|
244
|
+
successStatus: 204,
|
|
245
|
+
})
|
|
246
|
+
.input(z.object({
|
|
247
|
+
organizationId: z.string(),
|
|
248
|
+
phoneNumberId: z.string(),
|
|
249
|
+
code: z
|
|
250
|
+
.string()
|
|
251
|
+
.trim()
|
|
252
|
+
.regex(/^\d{6}$/),
|
|
253
|
+
}))
|
|
254
|
+
.output(z.void()),
|
|
192
255
|
};
|
package/dist/runtime.d.ts
CHANGED
|
@@ -153,17 +153,89 @@ declare const RUNTIME_GENERATION_INPUT_SCHEMA: z.ZodUnion<readonly [z.ZodObject<
|
|
|
153
153
|
export type RuntimeGenerationInput = z.output<typeof RUNTIME_GENERATION_INPUT_SCHEMA>;
|
|
154
154
|
export declare const runtimeContract: {
|
|
155
155
|
commit: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
156
|
-
actionInvocations: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
156
|
+
actionInvocations: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
157
157
|
actionDependencyIds: z.ZodArray<z.ZodString>;
|
|
158
158
|
description: z.ZodNullable<z.ZodString>;
|
|
159
159
|
eventDependencyIds: z.ZodArray<z.ZodString>;
|
|
160
160
|
inputHash: z.ZodString;
|
|
161
161
|
name: z.ZodString;
|
|
162
|
+
signalDependencyIds: z.ZodArray<z.ZodString>;
|
|
162
163
|
slot: z.ZodNumber;
|
|
164
|
+
status: z.ZodLiteral<"pending">;
|
|
165
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
166
|
+
actionDependencyIds: z.ZodArray<z.ZodString>;
|
|
167
|
+
description: z.ZodNullable<z.ZodString>;
|
|
168
|
+
eventDependencyIds: z.ZodArray<z.ZodString>;
|
|
169
|
+
inputHash: z.ZodString;
|
|
170
|
+
name: z.ZodString;
|
|
171
|
+
signalDependencyIds: z.ZodArray<z.ZodString>;
|
|
172
|
+
slot: z.ZodNumber;
|
|
173
|
+
reason: z.ZodLiteral<"closed-dependency">;
|
|
174
|
+
status: z.ZodLiteral<"skipped">;
|
|
175
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
176
|
+
actionDependencyIds: z.ZodArray<z.ZodString>;
|
|
177
|
+
description: z.ZodNullable<z.ZodString>;
|
|
178
|
+
eventDependencyIds: z.ZodArray<z.ZodString>;
|
|
179
|
+
inputHash: z.ZodString;
|
|
180
|
+
name: z.ZodString;
|
|
181
|
+
signalDependencyIds: z.ZodArray<z.ZodString>;
|
|
182
|
+
slot: z.ZodNumber;
|
|
183
|
+
failure: z.ZodObject<{
|
|
184
|
+
message: z.ZodString;
|
|
185
|
+
name: z.ZodString;
|
|
186
|
+
}, z.core.$strip>;
|
|
187
|
+
reason: z.ZodLiteral<"failed-dependency">;
|
|
188
|
+
status: z.ZodLiteral<"skipped">;
|
|
189
|
+
}, z.core.$strip>]>>>;
|
|
190
|
+
correlationEntries: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
191
|
+
actionDependencyIds: z.ZodArray<z.ZodString>;
|
|
192
|
+
eventDependencyIds: z.ZodArray<z.ZodString>;
|
|
193
|
+
signalDependencyIds: z.ZodArray<z.ZodString>;
|
|
194
|
+
slot: z.ZodNumber;
|
|
195
|
+
key: z.ZodOptional<z.ZodCustom<import("@automate.ax/codec").Encodable, import("@automate.ax/codec").Encodable>>;
|
|
196
|
+
outcomeSeq: z.ZodNumber;
|
|
197
|
+
streamName: z.ZodString;
|
|
198
|
+
streamNames: z.ZodArray<z.ZodString>;
|
|
199
|
+
value: z.ZodOptional<z.ZodCustom<import("@automate.ax/codec").Encodable, import("@automate.ax/codec").Encodable>>;
|
|
163
200
|
}, z.core.$strip>>>;
|
|
201
|
+
settled: z.ZodDefault<z.ZodBoolean>;
|
|
202
|
+
signalInvocations: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
203
|
+
actionDependencyIds: z.ZodArray<z.ZodString>;
|
|
204
|
+
eventDependencyIds: z.ZodArray<z.ZodString>;
|
|
205
|
+
signalDependencyIds: z.ZodArray<z.ZodString>;
|
|
206
|
+
slot: z.ZodNumber;
|
|
207
|
+
outcomeSeq: z.ZodOptional<z.ZodNumber>;
|
|
208
|
+
status: z.ZodLiteral<"closed">;
|
|
209
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
210
|
+
actionDependencyIds: z.ZodArray<z.ZodString>;
|
|
211
|
+
eventDependencyIds: z.ZodArray<z.ZodString>;
|
|
212
|
+
signalDependencyIds: z.ZodArray<z.ZodString>;
|
|
213
|
+
slot: z.ZodNumber;
|
|
214
|
+
failure: z.ZodObject<{
|
|
215
|
+
message: z.ZodString;
|
|
216
|
+
name: z.ZodString;
|
|
217
|
+
}, z.core.$strip>;
|
|
218
|
+
status: z.ZodLiteral<"failed">;
|
|
219
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
220
|
+
actionDependencyIds: z.ZodArray<z.ZodString>;
|
|
221
|
+
eventDependencyIds: z.ZodArray<z.ZodString>;
|
|
222
|
+
signalDependencyIds: z.ZodArray<z.ZodString>;
|
|
223
|
+
slot: z.ZodNumber;
|
|
224
|
+
outcomeSeq: z.ZodOptional<z.ZodNumber>;
|
|
225
|
+
selectedIndex: z.ZodOptional<z.ZodNumber>;
|
|
226
|
+
status: z.ZodLiteral<"open">;
|
|
227
|
+
}, z.core.$strip>]>>>;
|
|
164
228
|
}, z.core.$strip>, z.ZodVoid, Record<never, never>, Record<never, never>>;
|
|
165
|
-
|
|
166
|
-
|
|
229
|
+
completeAction: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodUnion<readonly [z.ZodObject<{
|
|
230
|
+
reason: z.ZodLiteral<"closed-dependency">;
|
|
231
|
+
status: z.ZodLiteral<"skipped">;
|
|
232
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
233
|
+
failure: z.ZodObject<{
|
|
234
|
+
message: z.ZodString;
|
|
235
|
+
name: z.ZodString;
|
|
236
|
+
}, z.core.$strip>;
|
|
237
|
+
reason: z.ZodLiteral<"failed-dependency">;
|
|
238
|
+
status: z.ZodLiteral<"skipped">;
|
|
167
239
|
}, z.core.$strip>, z.ZodObject<{
|
|
168
240
|
failure: z.ZodObject<{
|
|
169
241
|
message: z.ZodString;
|
|
@@ -173,7 +245,7 @@ export declare const runtimeContract: {
|
|
|
173
245
|
}, z.core.$strip>, z.ZodObject<{
|
|
174
246
|
output: z.ZodOptional<z.ZodCustom<import("@automate.ax/codec").Encodable, import("@automate.ax/codec").Encodable>>;
|
|
175
247
|
status: z.ZodLiteral<"succeeded">;
|
|
176
|
-
}, z.core.$strip>]
|
|
248
|
+
}, z.core.$strip>]>, z.ZodVoid, Record<never, never>, Record<never, never>>;
|
|
177
249
|
generate: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodUnion<readonly [z.ZodObject<{
|
|
178
250
|
frequencyPenalty: z.ZodOptional<z.ZodNumber>;
|
|
179
251
|
instructions: z.ZodOptional<z.ZodString>;
|
|
@@ -276,57 +348,272 @@ export declare const runtimeContract: {
|
|
|
276
348
|
type: z.ZodLiteral<"other">;
|
|
277
349
|
}, z.core.$strip>], "type">>>;
|
|
278
350
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
279
|
-
|
|
351
|
+
load: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
|
|
280
352
|
context: z.ZodObject<{
|
|
281
|
-
|
|
282
|
-
|
|
353
|
+
actions: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
354
|
+
actionDependencyIds: z.ZodArray<z.ZodString>;
|
|
355
|
+
description: z.ZodNullable<z.ZodString>;
|
|
356
|
+
eventDependencyIds: z.ZodArray<z.ZodString>;
|
|
357
|
+
inputHash: z.ZodString;
|
|
358
|
+
name: z.ZodString;
|
|
359
|
+
signalDependencyIds: z.ZodArray<z.ZodString>;
|
|
283
360
|
slot: z.ZodNumber;
|
|
284
|
-
|
|
361
|
+
actionInvocationId: z.ZodString;
|
|
362
|
+
status: z.ZodLiteral<"pending">;
|
|
285
363
|
}, z.core.$strip>, z.ZodObject<{
|
|
364
|
+
actionDependencyIds: z.ZodArray<z.ZodString>;
|
|
365
|
+
description: z.ZodNullable<z.ZodString>;
|
|
366
|
+
eventDependencyIds: z.ZodArray<z.ZodString>;
|
|
367
|
+
inputHash: z.ZodString;
|
|
368
|
+
name: z.ZodString;
|
|
369
|
+
signalDependencyIds: z.ZodArray<z.ZodString>;
|
|
370
|
+
slot: z.ZodNumber;
|
|
286
371
|
actionInvocationId: z.ZodString;
|
|
287
372
|
failure: z.ZodObject<{
|
|
288
373
|
message: z.ZodString;
|
|
289
374
|
name: z.ZodString;
|
|
290
375
|
}, z.core.$strip>;
|
|
291
|
-
|
|
376
|
+
outcomeSeq: z.ZodNumber;
|
|
292
377
|
status: z.ZodLiteral<"failed">;
|
|
293
378
|
}, z.core.$strip>, z.ZodObject<{
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
events: z.ZodArray<z.ZodObject<{
|
|
301
|
-
automationEventId: z.ZodString;
|
|
302
|
-
payload: z.ZodOptional<z.ZodCustom<import("@automate.ax/codec").Encodable, import("@automate.ax/codec").Encodable>>;
|
|
379
|
+
actionDependencyIds: z.ZodArray<z.ZodString>;
|
|
380
|
+
description: z.ZodNullable<z.ZodString>;
|
|
381
|
+
eventDependencyIds: z.ZodArray<z.ZodString>;
|
|
382
|
+
inputHash: z.ZodString;
|
|
383
|
+
name: z.ZodString;
|
|
384
|
+
signalDependencyIds: z.ZodArray<z.ZodString>;
|
|
303
385
|
slot: z.ZodNumber;
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
nextBatch: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
|
|
310
|
-
context: z.ZodObject<{
|
|
311
|
-
actionOutputs: z.ZodArray<z.ZodObject<{
|
|
386
|
+
actionInvocationId: z.ZodString;
|
|
387
|
+
outcomeSeq: z.ZodNumber;
|
|
388
|
+
reason: z.ZodLiteral<"closed-dependency">;
|
|
389
|
+
status: z.ZodLiteral<"skipped">;
|
|
390
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
312
391
|
actionDependencyIds: z.ZodArray<z.ZodString>;
|
|
392
|
+
description: z.ZodNullable<z.ZodString>;
|
|
393
|
+
eventDependencyIds: z.ZodArray<z.ZodString>;
|
|
394
|
+
inputHash: z.ZodString;
|
|
395
|
+
name: z.ZodString;
|
|
396
|
+
signalDependencyIds: z.ZodArray<z.ZodString>;
|
|
397
|
+
slot: z.ZodNumber;
|
|
313
398
|
actionInvocationId: z.ZodString;
|
|
399
|
+
failure: z.ZodObject<{
|
|
400
|
+
message: z.ZodString;
|
|
401
|
+
name: z.ZodString;
|
|
402
|
+
}, z.core.$strip>;
|
|
403
|
+
outcomeSeq: z.ZodNumber;
|
|
404
|
+
reason: z.ZodLiteral<"failed-dependency">;
|
|
405
|
+
status: z.ZodLiteral<"skipped">;
|
|
406
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
407
|
+
actionDependencyIds: z.ZodArray<z.ZodString>;
|
|
408
|
+
description: z.ZodNullable<z.ZodString>;
|
|
314
409
|
eventDependencyIds: z.ZodArray<z.ZodString>;
|
|
315
410
|
inputHash: z.ZodString;
|
|
316
411
|
name: z.ZodString;
|
|
412
|
+
signalDependencyIds: z.ZodArray<z.ZodString>;
|
|
317
413
|
slot: z.ZodNumber;
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
}>;
|
|
323
|
-
}, z.core.$strip>>;
|
|
414
|
+
actionInvocationId: z.ZodString;
|
|
415
|
+
outcomeSeq: z.ZodNumber;
|
|
416
|
+
status: z.ZodLiteral<"succeeded">;
|
|
417
|
+
}, z.core.$strip>]>>;
|
|
324
418
|
contextId: z.ZodString;
|
|
325
419
|
events: z.ZodArray<z.ZodObject<{
|
|
326
420
|
automationEventId: z.ZodString;
|
|
421
|
+
outcomeSeq: z.ZodNumber;
|
|
327
422
|
slot: z.ZodNumber;
|
|
328
423
|
}, z.core.$strip>>;
|
|
424
|
+
signalOutputs: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
425
|
+
actionDependencyIds: z.ZodArray<z.ZodString>;
|
|
426
|
+
eventDependencyIds: z.ZodArray<z.ZodString>;
|
|
427
|
+
signalDependencyIds: z.ZodArray<z.ZodString>;
|
|
428
|
+
slot: z.ZodNumber;
|
|
429
|
+
outcomeSeq: z.ZodNumber;
|
|
430
|
+
signalInvocationId: z.ZodString;
|
|
431
|
+
selectedIndex: z.ZodOptional<z.ZodNumber>;
|
|
432
|
+
status: z.ZodLiteral<"open">;
|
|
433
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
434
|
+
actionDependencyIds: z.ZodArray<z.ZodString>;
|
|
435
|
+
eventDependencyIds: z.ZodArray<z.ZodString>;
|
|
436
|
+
signalDependencyIds: z.ZodArray<z.ZodString>;
|
|
437
|
+
slot: z.ZodNumber;
|
|
438
|
+
outcomeSeq: z.ZodNumber;
|
|
439
|
+
signalInvocationId: z.ZodString;
|
|
440
|
+
status: z.ZodLiteral<"closed">;
|
|
441
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
442
|
+
actionDependencyIds: z.ZodArray<z.ZodString>;
|
|
443
|
+
eventDependencyIds: z.ZodArray<z.ZodString>;
|
|
444
|
+
signalDependencyIds: z.ZodArray<z.ZodString>;
|
|
445
|
+
slot: z.ZodNumber;
|
|
446
|
+
outcomeSeq: z.ZodNumber;
|
|
447
|
+
signalInvocationId: z.ZodString;
|
|
448
|
+
failure: z.ZodObject<{
|
|
449
|
+
message: z.ZodString;
|
|
450
|
+
name: z.ZodString;
|
|
451
|
+
}, z.core.$strip>;
|
|
452
|
+
status: z.ZodLiteral<"failed">;
|
|
453
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
454
|
+
actionDependencyIds: z.ZodArray<z.ZodString>;
|
|
455
|
+
eventDependencyIds: z.ZodArray<z.ZodString>;
|
|
456
|
+
signalDependencyIds: z.ZodArray<z.ZodString>;
|
|
457
|
+
slot: z.ZodNumber;
|
|
458
|
+
outcomeSeq: z.ZodNumber;
|
|
459
|
+
signalInvocationId: z.ZodString;
|
|
460
|
+
status: z.ZodLiteral<"succeeded">;
|
|
461
|
+
}, z.core.$strip>]>>;
|
|
329
462
|
}, z.core.$strip>;
|
|
463
|
+
finalAttempt: z.ZodBoolean;
|
|
464
|
+
targetAction: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
465
|
+
context: z.ZodObject<{
|
|
466
|
+
actionOutputs: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
467
|
+
actionInvocationId: z.ZodString;
|
|
468
|
+
outcomeSeq: z.ZodNumber;
|
|
469
|
+
slot: z.ZodNumber;
|
|
470
|
+
status: z.ZodLiteral<"failed">;
|
|
471
|
+
failure: z.ZodObject<{
|
|
472
|
+
message: z.ZodString;
|
|
473
|
+
name: z.ZodString;
|
|
474
|
+
}, z.core.$strip>;
|
|
475
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
476
|
+
actionInvocationId: z.ZodString;
|
|
477
|
+
outcomeSeq: z.ZodNumber;
|
|
478
|
+
reason: z.ZodLiteral<"closed-dependency">;
|
|
479
|
+
slot: z.ZodNumber;
|
|
480
|
+
status: z.ZodLiteral<"skipped">;
|
|
481
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
482
|
+
actionInvocationId: z.ZodString;
|
|
483
|
+
failure: z.ZodObject<{
|
|
484
|
+
message: z.ZodString;
|
|
485
|
+
name: z.ZodString;
|
|
486
|
+
}, z.core.$strip>;
|
|
487
|
+
outcomeSeq: z.ZodNumber;
|
|
488
|
+
reason: z.ZodLiteral<"failed-dependency">;
|
|
489
|
+
slot: z.ZodNumber;
|
|
490
|
+
status: z.ZodLiteral<"skipped">;
|
|
491
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
492
|
+
actionInvocationId: z.ZodString;
|
|
493
|
+
outcomeSeq: z.ZodNumber;
|
|
494
|
+
output: z.ZodOptional<z.ZodCustom<import("@automate.ax/codec").Encodable, import("@automate.ax/codec").Encodable>>;
|
|
495
|
+
slot: z.ZodNumber;
|
|
496
|
+
status: z.ZodLiteral<"succeeded">;
|
|
497
|
+
}, z.core.$strip>]>>;
|
|
498
|
+
contextId: z.ZodString;
|
|
499
|
+
events: z.ZodArray<z.ZodObject<{
|
|
500
|
+
automationEventId: z.ZodString;
|
|
501
|
+
outcomeSeq: z.ZodNumber;
|
|
502
|
+
payload: z.ZodOptional<z.ZodCustom<import("@automate.ax/codec").Encodable, import("@automate.ax/codec").Encodable>>;
|
|
503
|
+
slot: z.ZodNumber;
|
|
504
|
+
}, z.core.$strip>>;
|
|
505
|
+
signalOutputs: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
506
|
+
outcomeSeq: z.ZodNumber;
|
|
507
|
+
signalInvocationId: z.ZodString;
|
|
508
|
+
slot: z.ZodNumber;
|
|
509
|
+
selectedIndex: z.ZodOptional<z.ZodNumber>;
|
|
510
|
+
status: z.ZodLiteral<"open">;
|
|
511
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
512
|
+
outcomeSeq: z.ZodNumber;
|
|
513
|
+
signalInvocationId: z.ZodString;
|
|
514
|
+
slot: z.ZodNumber;
|
|
515
|
+
status: z.ZodLiteral<"closed">;
|
|
516
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
517
|
+
outcomeSeq: z.ZodNumber;
|
|
518
|
+
signalInvocationId: z.ZodString;
|
|
519
|
+
slot: z.ZodNumber;
|
|
520
|
+
failure: z.ZodObject<{
|
|
521
|
+
message: z.ZodString;
|
|
522
|
+
name: z.ZodString;
|
|
523
|
+
}, z.core.$strip>;
|
|
524
|
+
status: z.ZodLiteral<"failed">;
|
|
525
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
526
|
+
outcomeSeq: z.ZodNumber;
|
|
527
|
+
signalInvocationId: z.ZodString;
|
|
528
|
+
slot: z.ZodNumber;
|
|
529
|
+
output: z.ZodOptional<z.ZodCustom<import("@automate.ax/codec").Encodable, import("@automate.ax/codec").Encodable>>;
|
|
530
|
+
status: z.ZodLiteral<"succeeded">;
|
|
531
|
+
}, z.core.$strip>]>>;
|
|
532
|
+
}, z.core.$strip>;
|
|
533
|
+
id: z.ZodString;
|
|
534
|
+
slot: z.ZodNumber;
|
|
535
|
+
status: z.ZodLiteral<"pending">;
|
|
536
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
537
|
+
id: z.ZodString;
|
|
538
|
+
slot: z.ZodNumber;
|
|
539
|
+
status: z.ZodEnum<{
|
|
540
|
+
succeeded: "succeeded";
|
|
541
|
+
failed: "failed";
|
|
542
|
+
skipped: "skipped";
|
|
543
|
+
}>;
|
|
544
|
+
}, z.core.$strip>]>>;
|
|
545
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
546
|
+
loadValues: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
547
|
+
actionDependencyIds: z.ZodArray<z.ZodString>;
|
|
548
|
+
eventDependencyIds: z.ZodArray<z.ZodString>;
|
|
549
|
+
signalDependencyIds: z.ZodArray<z.ZodString>;
|
|
550
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
551
|
+
actionOutputs: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
552
|
+
actionInvocationId: z.ZodString;
|
|
553
|
+
outcomeSeq: z.ZodNumber;
|
|
554
|
+
slot: z.ZodNumber;
|
|
555
|
+
status: z.ZodLiteral<"failed">;
|
|
556
|
+
failure: z.ZodObject<{
|
|
557
|
+
message: z.ZodString;
|
|
558
|
+
name: z.ZodString;
|
|
559
|
+
}, z.core.$strip>;
|
|
560
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
561
|
+
actionInvocationId: z.ZodString;
|
|
562
|
+
outcomeSeq: z.ZodNumber;
|
|
563
|
+
reason: z.ZodLiteral<"closed-dependency">;
|
|
564
|
+
slot: z.ZodNumber;
|
|
565
|
+
status: z.ZodLiteral<"skipped">;
|
|
566
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
567
|
+
actionInvocationId: z.ZodString;
|
|
568
|
+
failure: z.ZodObject<{
|
|
569
|
+
message: z.ZodString;
|
|
570
|
+
name: z.ZodString;
|
|
571
|
+
}, z.core.$strip>;
|
|
572
|
+
outcomeSeq: z.ZodNumber;
|
|
573
|
+
reason: z.ZodLiteral<"failed-dependency">;
|
|
574
|
+
slot: z.ZodNumber;
|
|
575
|
+
status: z.ZodLiteral<"skipped">;
|
|
576
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
577
|
+
actionInvocationId: z.ZodString;
|
|
578
|
+
outcomeSeq: z.ZodNumber;
|
|
579
|
+
output: z.ZodOptional<z.ZodCustom<import("@automate.ax/codec").Encodable, import("@automate.ax/codec").Encodable>>;
|
|
580
|
+
slot: z.ZodNumber;
|
|
581
|
+
status: z.ZodLiteral<"succeeded">;
|
|
582
|
+
}, z.core.$strip>]>>;
|
|
583
|
+
contextId: z.ZodString;
|
|
584
|
+
events: z.ZodArray<z.ZodObject<{
|
|
585
|
+
automationEventId: z.ZodString;
|
|
586
|
+
outcomeSeq: z.ZodNumber;
|
|
587
|
+
payload: z.ZodOptional<z.ZodCustom<import("@automate.ax/codec").Encodable, import("@automate.ax/codec").Encodable>>;
|
|
588
|
+
slot: z.ZodNumber;
|
|
589
|
+
}, z.core.$strip>>;
|
|
590
|
+
signalOutputs: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
591
|
+
outcomeSeq: z.ZodNumber;
|
|
592
|
+
signalInvocationId: z.ZodString;
|
|
593
|
+
slot: z.ZodNumber;
|
|
594
|
+
selectedIndex: z.ZodOptional<z.ZodNumber>;
|
|
595
|
+
status: z.ZodLiteral<"open">;
|
|
596
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
597
|
+
outcomeSeq: z.ZodNumber;
|
|
598
|
+
signalInvocationId: z.ZodString;
|
|
599
|
+
slot: z.ZodNumber;
|
|
600
|
+
status: z.ZodLiteral<"closed">;
|
|
601
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
602
|
+
outcomeSeq: z.ZodNumber;
|
|
603
|
+
signalInvocationId: z.ZodString;
|
|
604
|
+
slot: z.ZodNumber;
|
|
605
|
+
failure: z.ZodObject<{
|
|
606
|
+
message: z.ZodString;
|
|
607
|
+
name: z.ZodString;
|
|
608
|
+
}, z.core.$strip>;
|
|
609
|
+
status: z.ZodLiteral<"failed">;
|
|
610
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
611
|
+
outcomeSeq: z.ZodNumber;
|
|
612
|
+
signalInvocationId: z.ZodString;
|
|
613
|
+
slot: z.ZodNumber;
|
|
614
|
+
output: z.ZodOptional<z.ZodCustom<import("@automate.ax/codec").Encodable, import("@automate.ax/codec").Encodable>>;
|
|
615
|
+
status: z.ZodLiteral<"succeeded">;
|
|
616
|
+
}, z.core.$strip>]>>;
|
|
330
617
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
331
618
|
resolveAccountInput: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
332
619
|
binding: z.ZodString;
|
|
@@ -350,5 +637,12 @@ export declare const runtimeContract: {
|
|
|
350
637
|
}, z.core.$strip>, z.ZodObject<{
|
|
351
638
|
id: z.ZodNullable<z.ZodString>;
|
|
352
639
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
640
|
+
sendSms: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
641
|
+
deliveryIndex: z.ZodDefault<z.ZodNumber>;
|
|
642
|
+
text: z.ZodString;
|
|
643
|
+
to: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"*">]>>;
|
|
644
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
645
|
+
ids: z.ZodArray<z.ZodString>;
|
|
646
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
353
647
|
};
|
|
354
648
|
export {};
|