@automate.ax/api-contract 0.53.0 → 0.54.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -4,9 +4,9 @@ export { integrationAccountOutputSchema } from "./account.js";
4
4
  export { AUTOMATION_INVOCATION_DEFAULT_ENTRYPOINT, AUTOMATION_INVOCATION_RESERVED_ENTRYPOINT_PREFIX, DEFAULT_GATEWAY_MODEL_ID, automationInvocationInputSchema, automationInvocationOutputSchema, automationInvocationScheduleSchema, generationInputSchema, generationResultSchema, runtimeContract, type GenerationInput, type GenerationResult, type RuntimeGenerationInput, } from "./runtime.js";
5
5
  export type { GatewayModelId } from "@ai-sdk/gateway";
6
6
  export { createdOrganizationApiKeyOutputSchema, organizationApiKeyOutputSchema, } from "./api-key.js";
7
- export { activeSubscriptionOutputSchema, createdInvitationOutputSchema, organizationDetailsOutputSchema, organizationInvitationOutputSchema, organizationMemberOutputSchema, organizationPhoneNumberOutputSchema, organizationProjectOutputSchema, organizationRoleSchema, organizationSummaryOutputSchema, publicOrganizationOutputSchema, } from "./org.js";
7
+ export { activeSubscriptionOutputSchema, createdInvitationOutputSchema, organizationDetailsOutputSchema, organizationInvitationOutputSchema, organizationMemberOutputSchema, organizationProjectOutputSchema, organizationRoleSchema, organizationSummaryOutputSchema, publicOrganizationOutputSchema, } from "./org.js";
8
8
  export { projectOutputSchema } from "./project.js";
9
- export { e164PhoneNumberSchema, reasonableNameSchema } from "./schemas.js";
9
+ export { reasonableNameSchema } from "./schemas.js";
10
10
  export { userOutputSchema } from "./auth.js";
11
11
  export { managementPermissionStatement, managementRolePermissions, organizationApiKeyPermissions, type ManagementPermission, } from "./permissions.js";
12
12
  /** Procedures exposed by the public Node client and OpenAPI document. */
@@ -97,12 +97,10 @@ export declare const publicContract: {
97
97
  emailRecipients: import("zod").ZodNumber;
98
98
  projects: import("zod").ZodNumber;
99
99
  seats: import("zod").ZodNumber;
100
- smsSegments: import("zod").ZodNumber;
101
100
  }, import("zod/v4/core").$strip>;
102
101
  usage: import("zod").ZodObject<{
103
102
  aiSpendUsd: import("zod").ZodNumber;
104
103
  emailRecipients: import("zod").ZodNumber;
105
- smsSegments: import("zod").ZodNumber;
106
104
  }, import("zod/v4/core").$strip>;
107
105
  members: import("zod").ZodArray<import("zod").ZodObject<{
108
106
  id: import("zod").ZodString;
@@ -129,13 +127,6 @@ export declare const publicContract: {
129
127
  createdAt: import("zod").ZodDate;
130
128
  expiresAt: import("zod").ZodDate;
131
129
  }, import("zod/v4/core").$strip>>;
132
- phoneNumbers: import("zod").ZodArray<import("zod").ZodObject<{
133
- id: import("zod").ZodString;
134
- phoneNumber: import("zod").ZodString;
135
- createdAt: import("zod").ZodDate;
136
- verifiedAt: import("zod").ZodNullable<import("zod").ZodDate>;
137
- consentedAt: import("zod").ZodNullable<import("zod").ZodDate>;
138
- }, import("zod/v4/core").$strip>>;
139
130
  projects: import("zod").ZodArray<import("zod").ZodObject<{
140
131
  id: import("zod").ZodString;
141
132
  name: import("zod").ZodString;
@@ -197,12 +188,10 @@ export declare const publicContract: {
197
188
  emailRecipients: import("zod").ZodNumber;
198
189
  projects: import("zod").ZodNumber;
199
190
  seats: import("zod").ZodNumber;
200
- smsSegments: import("zod").ZodNumber;
201
191
  }, import("zod/v4/core").$strip>;
202
192
  usage: import("zod").ZodObject<{
203
193
  aiSpendUsd: import("zod").ZodNumber;
204
194
  emailRecipients: import("zod").ZodNumber;
205
- smsSegments: import("zod").ZodNumber;
206
195
  }, import("zod/v4/core").$strip>;
207
196
  }, import("zod/v4/core").$strip>>, Record<never, never>, Record<never, never>>;
208
197
  remove: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
@@ -645,23 +634,6 @@ export declare const firstPartyContract: {
645
634
  clientSecret: import("zod").ZodString;
646
635
  publishableKey: import("zod").ZodString;
647
636
  }, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
648
- removePhoneNumber: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
649
- organizationId: import("zod").ZodString;
650
- phoneNumberId: import("zod").ZodString;
651
- }, import("zod/v4/core").$strip>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
652
- requestPhoneNumberVerification: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
653
- organizationId: import("zod").ZodString;
654
- phoneNumber: import("zod").ZodString;
655
- smsConsent: import("zod").ZodLiteral<true>;
656
- }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
657
- expiresAt: import("zod").ZodDate;
658
- phoneNumberId: import("zod").ZodString;
659
- }, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
660
- verifyPhoneNumber: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
661
- organizationId: import("zod").ZodString;
662
- phoneNumberId: import("zod").ZodString;
663
- code: import("zod").ZodString;
664
- }, import("zod/v4/core").$strip>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
665
637
  create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
666
638
  id: import("zod").ZodOptional<import("zod").ZodString>;
667
639
  name: import("zod").ZodString;
@@ -707,12 +679,10 @@ export declare const firstPartyContract: {
707
679
  emailRecipients: import("zod").ZodNumber;
708
680
  projects: import("zod").ZodNumber;
709
681
  seats: import("zod").ZodNumber;
710
- smsSegments: import("zod").ZodNumber;
711
682
  }, import("zod/v4/core").$strip>;
712
683
  usage: import("zod").ZodObject<{
713
684
  aiSpendUsd: import("zod").ZodNumber;
714
685
  emailRecipients: import("zod").ZodNumber;
715
- smsSegments: import("zod").ZodNumber;
716
686
  }, import("zod/v4/core").$strip>;
717
687
  members: import("zod").ZodArray<import("zod").ZodObject<{
718
688
  id: import("zod").ZodString;
@@ -739,13 +709,6 @@ export declare const firstPartyContract: {
739
709
  createdAt: import("zod").ZodDate;
740
710
  expiresAt: import("zod").ZodDate;
741
711
  }, import("zod/v4/core").$strip>>;
742
- phoneNumbers: import("zod").ZodArray<import("zod").ZodObject<{
743
- id: import("zod").ZodString;
744
- phoneNumber: import("zod").ZodString;
745
- createdAt: import("zod").ZodDate;
746
- verifiedAt: import("zod").ZodNullable<import("zod").ZodDate>;
747
- consentedAt: import("zod").ZodNullable<import("zod").ZodDate>;
748
- }, import("zod/v4/core").$strip>>;
749
712
  projects: import("zod").ZodArray<import("zod").ZodObject<{
750
713
  id: import("zod").ZodString;
751
714
  name: import("zod").ZodString;
@@ -807,12 +770,10 @@ export declare const firstPartyContract: {
807
770
  emailRecipients: import("zod").ZodNumber;
808
771
  projects: import("zod").ZodNumber;
809
772
  seats: import("zod").ZodNumber;
810
- smsSegments: import("zod").ZodNumber;
811
773
  }, import("zod/v4/core").$strip>;
812
774
  usage: import("zod").ZodObject<{
813
775
  aiSpendUsd: import("zod").ZodNumber;
814
776
  emailRecipients: import("zod").ZodNumber;
815
- smsSegments: import("zod").ZodNumber;
816
777
  }, import("zod/v4/core").$strip>;
817
778
  }, import("zod/v4/core").$strip>>, Record<never, never>, Record<never, never>>;
818
779
  remove: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
@@ -1630,13 +1591,6 @@ export declare const contract: {
1630
1591
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
1631
1592
  id: import("zod").ZodNullable<import("zod").ZodString>;
1632
1593
  }, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
1633
- sendSms: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
1634
- deliveryIndex: import("zod").ZodDefault<import("zod").ZodNumber>;
1635
- text: import("zod").ZodString;
1636
- to: import("zod").ZodDefault<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodLiteral<"*">]>>;
1637
- }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
1638
- ids: import("zod").ZodArray<import("zod").ZodString>;
1639
- }, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
1640
1594
  };
1641
1595
  account: {
1642
1596
  beginConnection: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
@@ -1924,23 +1878,6 @@ export declare const contract: {
1924
1878
  clientSecret: import("zod").ZodString;
1925
1879
  publishableKey: import("zod").ZodString;
1926
1880
  }, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
1927
- removePhoneNumber: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
1928
- organizationId: import("zod").ZodString;
1929
- phoneNumberId: import("zod").ZodString;
1930
- }, import("zod/v4/core").$strip>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
1931
- requestPhoneNumberVerification: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
1932
- organizationId: import("zod").ZodString;
1933
- phoneNumber: import("zod").ZodString;
1934
- smsConsent: import("zod").ZodLiteral<true>;
1935
- }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
1936
- expiresAt: import("zod").ZodDate;
1937
- phoneNumberId: import("zod").ZodString;
1938
- }, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
1939
- verifyPhoneNumber: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
1940
- organizationId: import("zod").ZodString;
1941
- phoneNumberId: import("zod").ZodString;
1942
- code: import("zod").ZodString;
1943
- }, import("zod/v4/core").$strip>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
1944
1881
  create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
1945
1882
  id: import("zod").ZodOptional<import("zod").ZodString>;
1946
1883
  name: import("zod").ZodString;
@@ -1986,12 +1923,10 @@ export declare const contract: {
1986
1923
  emailRecipients: import("zod").ZodNumber;
1987
1924
  projects: import("zod").ZodNumber;
1988
1925
  seats: import("zod").ZodNumber;
1989
- smsSegments: import("zod").ZodNumber;
1990
1926
  }, import("zod/v4/core").$strip>;
1991
1927
  usage: import("zod").ZodObject<{
1992
1928
  aiSpendUsd: import("zod").ZodNumber;
1993
1929
  emailRecipients: import("zod").ZodNumber;
1994
- smsSegments: import("zod").ZodNumber;
1995
1930
  }, import("zod/v4/core").$strip>;
1996
1931
  members: import("zod").ZodArray<import("zod").ZodObject<{
1997
1932
  id: import("zod").ZodString;
@@ -2018,13 +1953,6 @@ export declare const contract: {
2018
1953
  createdAt: import("zod").ZodDate;
2019
1954
  expiresAt: import("zod").ZodDate;
2020
1955
  }, import("zod/v4/core").$strip>>;
2021
- phoneNumbers: import("zod").ZodArray<import("zod").ZodObject<{
2022
- id: import("zod").ZodString;
2023
- phoneNumber: import("zod").ZodString;
2024
- createdAt: import("zod").ZodDate;
2025
- verifiedAt: import("zod").ZodNullable<import("zod").ZodDate>;
2026
- consentedAt: import("zod").ZodNullable<import("zod").ZodDate>;
2027
- }, import("zod/v4/core").$strip>>;
2028
1956
  projects: import("zod").ZodArray<import("zod").ZodObject<{
2029
1957
  id: import("zod").ZodString;
2030
1958
  name: import("zod").ZodString;
@@ -2086,12 +2014,10 @@ export declare const contract: {
2086
2014
  emailRecipients: import("zod").ZodNumber;
2087
2015
  projects: import("zod").ZodNumber;
2088
2016
  seats: import("zod").ZodNumber;
2089
- smsSegments: import("zod").ZodNumber;
2090
2017
  }, import("zod/v4/core").$strip>;
2091
2018
  usage: import("zod").ZodObject<{
2092
2019
  aiSpendUsd: import("zod").ZodNumber;
2093
2020
  emailRecipients: import("zod").ZodNumber;
2094
- smsSegments: import("zod").ZodNumber;
2095
2021
  }, import("zod/v4/core").$strip>;
2096
2022
  }, import("zod/v4/core").$strip>>, Record<never, never>, Record<never, never>>;
2097
2023
  remove: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
package/dist/index.js CHANGED
@@ -13,9 +13,9 @@ export { AUTOMATION_SDK_VERSION, deploymentTriggerInfoSchema, getHttpTriggerEndp
13
13
  export { integrationAccountOutputSchema } from "./account.js";
14
14
  export { AUTOMATION_INVOCATION_DEFAULT_ENTRYPOINT, AUTOMATION_INVOCATION_RESERVED_ENTRYPOINT_PREFIX, DEFAULT_GATEWAY_MODEL_ID, automationInvocationInputSchema, automationInvocationOutputSchema, automationInvocationScheduleSchema, generationInputSchema, generationResultSchema, runtimeContract, } from "./runtime.js";
15
15
  export { createdOrganizationApiKeyOutputSchema, organizationApiKeyOutputSchema, } from "./api-key.js";
16
- export { activeSubscriptionOutputSchema, createdInvitationOutputSchema, organizationDetailsOutputSchema, organizationInvitationOutputSchema, organizationMemberOutputSchema, organizationPhoneNumberOutputSchema, organizationProjectOutputSchema, organizationRoleSchema, organizationSummaryOutputSchema, publicOrganizationOutputSchema, } from "./org.js";
16
+ export { activeSubscriptionOutputSchema, createdInvitationOutputSchema, organizationDetailsOutputSchema, organizationInvitationOutputSchema, organizationMemberOutputSchema, organizationProjectOutputSchema, organizationRoleSchema, organizationSummaryOutputSchema, publicOrganizationOutputSchema, } from "./org.js";
17
17
  export { projectOutputSchema } from "./project.js";
18
- export { e164PhoneNumberSchema, reasonableNameSchema } from "./schemas.js";
18
+ export { reasonableNameSchema } from "./schemas.js";
19
19
  export { userOutputSchema } from "./auth.js";
20
20
  export { managementPermissionStatement, managementRolePermissions, organizationApiKeyPermissions, } from "./permissions.js";
21
21
  /** Procedures exposed by the public Node client and OpenAPI document. */
@@ -60,9 +60,6 @@ export const firstPartyContract = {
60
60
  createBillingPortal: orgContract.createBillingPortal,
61
61
  createCheckout: orgContract.createCheckout,
62
62
  createEmbeddedCheckout: orgContract.createEmbeddedCheckout,
63
- removePhoneNumber: orgContract.removePhoneNumber,
64
- requestPhoneNumberVerification: orgContract.requestPhoneNumberVerification,
65
- verifyPhoneNumber: orgContract.verifyPhoneNumber,
66
63
  },
67
64
  project: {
68
65
  ...publicContract.project,
package/dist/org.d.ts CHANGED
@@ -46,21 +46,12 @@ 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;
50
49
  }, z.core.$strip>;
51
50
  usage: z.ZodObject<{
52
51
  aiSpendUsd: z.ZodNumber;
53
52
  emailRecipients: z.ZodNumber;
54
- smsSegments: z.ZodNumber;
55
53
  }, z.core.$strip>;
56
54
  }, 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>;
64
55
  export declare const organizationMemberOutputSchema: z.ZodObject<{
65
56
  id: z.ZodString;
66
57
  userId: z.ZodString;
@@ -122,12 +113,10 @@ export declare const organizationDetailsOutputSchema: z.ZodObject<{
122
113
  emailRecipients: z.ZodNumber;
123
114
  projects: z.ZodNumber;
124
115
  seats: z.ZodNumber;
125
- smsSegments: z.ZodNumber;
126
116
  }, z.core.$strip>;
127
117
  usage: z.ZodObject<{
128
118
  aiSpendUsd: z.ZodNumber;
129
119
  emailRecipients: z.ZodNumber;
130
- smsSegments: z.ZodNumber;
131
120
  }, z.core.$strip>;
132
121
  members: z.ZodArray<z.ZodObject<{
133
122
  id: z.ZodString;
@@ -154,13 +143,6 @@ export declare const organizationDetailsOutputSchema: z.ZodObject<{
154
143
  createdAt: z.ZodDate;
155
144
  expiresAt: z.ZodDate;
156
145
  }, 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>>;
164
146
  projects: z.ZodArray<z.ZodObject<{
165
147
  id: z.ZodString;
166
148
  name: z.ZodString;
@@ -242,12 +224,10 @@ export declare const orgContract: {
242
224
  emailRecipients: z.ZodNumber;
243
225
  projects: z.ZodNumber;
244
226
  seats: z.ZodNumber;
245
- smsSegments: z.ZodNumber;
246
227
  }, z.core.$strip>;
247
228
  usage: z.ZodObject<{
248
229
  aiSpendUsd: z.ZodNumber;
249
230
  emailRecipients: z.ZodNumber;
250
- smsSegments: z.ZodNumber;
251
231
  }, z.core.$strip>;
252
232
  members: z.ZodArray<z.ZodObject<{
253
233
  id: z.ZodString;
@@ -274,13 +254,6 @@ export declare const orgContract: {
274
254
  createdAt: z.ZodDate;
275
255
  expiresAt: z.ZodDate;
276
256
  }, z.core.$strip>>;
277
- phoneNumbers: z.ZodArray<z.ZodObject<{
278
- id: z.ZodString;
279
- phoneNumber: z.ZodString;
280
- createdAt: z.ZodDate;
281
- verifiedAt: z.ZodNullable<z.ZodDate>;
282
- consentedAt: z.ZodNullable<z.ZodDate>;
283
- }, z.core.$strip>>;
284
257
  projects: z.ZodArray<z.ZodObject<{
285
258
  id: z.ZodString;
286
259
  name: z.ZodString;
@@ -342,37 +315,18 @@ export declare const orgContract: {
342
315
  emailRecipients: z.ZodNumber;
343
316
  projects: z.ZodNumber;
344
317
  seats: z.ZodNumber;
345
- smsSegments: z.ZodNumber;
346
318
  }, z.core.$strip>;
347
319
  usage: z.ZodObject<{
348
320
  aiSpendUsd: z.ZodNumber;
349
321
  emailRecipients: z.ZodNumber;
350
- smsSegments: z.ZodNumber;
351
322
  }, z.core.$strip>;
352
323
  }, z.core.$strip>>, Record<never, never>, Record<never, never>>;
353
324
  remove: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
354
325
  organizationId: z.ZodString;
355
326
  memberIdOrEmail: z.ZodString;
356
327
  }, z.core.$strip>, z.ZodVoid, Record<never, never>, Record<never, never>>;
357
- removePhoneNumber: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
358
- organizationId: z.ZodString;
359
- phoneNumberId: z.ZodString;
360
- }, z.core.$strip>, z.ZodVoid, Record<never, never>, Record<never, never>>;
361
- requestPhoneNumberVerification: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
362
- organizationId: z.ZodString;
363
- phoneNumber: z.ZodString;
364
- smsConsent: z.ZodLiteral<true>;
365
- }, z.core.$strip>, z.ZodObject<{
366
- expiresAt: z.ZodDate;
367
- phoneNumberId: z.ZodString;
368
- }, z.core.$strip>, Record<never, never>, Record<never, never>>;
369
328
  update: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
370
329
  organizationId: z.ZodString;
371
330
  name: z.ZodString;
372
331
  }, z.core.$strip>, z.ZodVoid, Record<never, never>, Record<never, never>>;
373
- verifyPhoneNumber: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
374
- organizationId: z.ZodString;
375
- phoneNumberId: z.ZodString;
376
- code: z.ZodString;
377
- }, z.core.$strip>, z.ZodVoid, Record<never, never>, Record<never, never>>;
378
332
  };
package/dist/org.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { oc } from "@orpc/contract";
2
2
  import { z } from "zod";
3
- import { e164PhoneNumberSchema, reasonableNameSchema } from "./schemas.js";
3
+ import { 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,21 +30,12 @@ export const organizationSummaryOutputSchema = z.object({
30
30
  emailRecipients: z.number(),
31
31
  projects: z.number(),
32
32
  seats: z.number(),
33
- smsSegments: z.number(),
34
33
  }),
35
34
  usage: z.object({
36
35
  aiSpendUsd: z.number(),
37
36
  emailRecipients: z.number(),
38
- smsSegments: z.number(),
39
37
  }),
40
38
  });
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
- });
48
39
  export const organizationMemberOutputSchema = z.object({
49
40
  id: z.string(),
50
41
  userId: z.string(),
@@ -70,7 +61,6 @@ export const organizationProjectOutputSchema = z.object({
70
61
  export const organizationDetailsOutputSchema = organizationSummaryOutputSchema.extend({
71
62
  members: organizationMemberOutputSchema.array(),
72
63
  invitations: organizationInvitationOutputSchema.array(),
73
- phoneNumbers: organizationPhoneNumberOutputSchema.array(),
74
64
  projects: organizationProjectOutputSchema.array(),
75
65
  });
76
66
  export const createdInvitationOutputSchema = z.object({
@@ -193,40 +183,6 @@ export const orgContract = {
193
183
  memberIdOrEmail: z.string().min(1),
194
184
  }))
195
185
  .output(z.void()),
196
- removePhoneNumber: oc
197
- .route({
198
- method: "DELETE",
199
- path: "/organizations/{organizationId}/phone-numbers/{phoneNumberId}",
200
- operationId: "removeOrganizationPhoneNumber",
201
- summary: "Remove organization phone number",
202
- description: "Removes an organization SMS destination and its verification and consent state.",
203
- tags: ["Organizations"],
204
- successStatus: 204,
205
- })
206
- .input(z.object({
207
- organizationId: z.string(),
208
- phoneNumberId: z.string(),
209
- }))
210
- .output(z.void()),
211
- requestPhoneNumberVerification: oc
212
- .route({
213
- method: "POST",
214
- path: "/organizations/{organizationId}/phone-numbers/verifications",
215
- operationId: "requestOrganizationPhoneNumberVerification",
216
- summary: "Request organization phone verification",
217
- description: "Sends a verification code after the caller explicitly consents to organization automation SMS alerts.",
218
- tags: ["Organizations"],
219
- successStatus: 201,
220
- })
221
- .input(z.object({
222
- organizationId: z.string(),
223
- phoneNumber: e164PhoneNumberSchema,
224
- smsConsent: z.literal(true),
225
- }))
226
- .output(z.object({
227
- expiresAt: z.date(),
228
- phoneNumberId: z.string(),
229
- })),
230
186
  update: oc
231
187
  .route({
232
188
  method: "PATCH",
@@ -242,23 +198,4 @@ export const orgContract = {
242
198
  name: reasonableNameSchema,
243
199
  }))
244
200
  .output(z.void()),
245
- verifyPhoneNumber: oc
246
- .route({
247
- method: "POST",
248
- path: "/organizations/{organizationId}/phone-numbers/{phoneNumberId}/verification",
249
- operationId: "verifyOrganizationPhoneNumber",
250
- summary: "Verify organization phone number",
251
- description: "Verifies possession of an organization SMS destination and activates its recorded consent.",
252
- tags: ["Organizations"],
253
- successStatus: 204,
254
- })
255
- .input(z.object({
256
- organizationId: z.string(),
257
- phoneNumberId: z.string(),
258
- code: z
259
- .string()
260
- .trim()
261
- .regex(/^\d{6}$/),
262
- }))
263
- .output(z.void()),
264
201
  };
package/dist/runtime.d.ts CHANGED
@@ -696,12 +696,5 @@ export declare const runtimeContract: {
696
696
  }, z.core.$strip>, z.ZodObject<{
697
697
  id: z.ZodNullable<z.ZodString>;
698
698
  }, z.core.$strip>, Record<never, never>, Record<never, never>>;
699
- sendSms: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
700
- deliveryIndex: z.ZodDefault<z.ZodNumber>;
701
- text: z.ZodString;
702
- to: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"*">]>>;
703
- }, z.core.$strip>, z.ZodObject<{
704
- ids: z.ZodArray<z.ZodString>;
705
- }, z.core.$strip>, Record<never, never>, Record<never, never>>;
706
699
  };
707
700
  export {};
package/dist/runtime.js CHANGED
@@ -1,7 +1,6 @@
1
1
  import { encodableSchema } from "@automate.ax/codec";
2
2
  import { oc } from "@orpc/contract";
3
3
  import { z } from "zod";
4
- import { e164PhoneNumberSchema } from "./schemas.js";
5
4
  /** Default model used by the platform Vercel AI Gateway account. */
6
5
  export const DEFAULT_GATEWAY_MODEL_ID = "openai/gpt-4.1-nano";
7
6
  export const AUTOMATION_INVOCATION_DEFAULT_ENTRYPOINT = "default";
@@ -426,13 +425,4 @@ export const runtimeContract = {
426
425
  .output(z.object({
427
426
  id: z.string().nullable(),
428
427
  })),
429
- sendSms: oc
430
- .input(z.object({
431
- deliveryIndex: z.number().int().nonnegative().default(0),
432
- text: z.string().trim().min(1).max(1_000),
433
- to: z.union([e164PhoneNumberSchema, z.literal("*")]).default("*"),
434
- }))
435
- .output(z.object({
436
- ids: z.string().array(),
437
- })),
438
428
  };
package/dist/schemas.d.ts CHANGED
@@ -1,4 +1,2 @@
1
1
  import { z } from "zod";
2
2
  export declare const reasonableNameSchema: z.ZodString;
3
- /** Canonical E.164 phone number accepted by SMS boundaries. */
4
- export declare const e164PhoneNumberSchema: z.ZodString;
package/dist/schemas.js CHANGED
@@ -1,7 +1,2 @@
1
1
  import { z } from "zod";
2
2
  export const reasonableNameSchema = z.string().min(1).max(255).trim();
3
- /** Canonical E.164 phone number accepted by SMS boundaries. */
4
- export const e164PhoneNumberSchema = z
5
- .string()
6
- .trim()
7
- .regex(/^\+[1-9]\d{1,14}$/, "Use an E.164 phone number such as +12065550123.");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@automate.ax/api-contract",
3
- "version": "0.53.0",
3
+ "version": "0.54.0",
4
4
  "description": "Public oRPC contract for the Automate.ax API.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -28,7 +28,7 @@
28
28
  },
29
29
  "dependencies": {
30
30
  "@ai-sdk/gateway": "^4.0.46",
31
- "@automate.ax/codec": "0.53.0",
31
+ "@automate.ax/codec": "0.54.0",
32
32
  "@orpc/contract": "1.15.0",
33
33
  "zod": "^4.3.6"
34
34
  },
package/src/index.ts CHANGED
@@ -45,14 +45,13 @@ export {
45
45
  organizationDetailsOutputSchema,
46
46
  organizationInvitationOutputSchema,
47
47
  organizationMemberOutputSchema,
48
- organizationPhoneNumberOutputSchema,
49
48
  organizationProjectOutputSchema,
50
49
  organizationRoleSchema,
51
50
  organizationSummaryOutputSchema,
52
51
  publicOrganizationOutputSchema,
53
52
  } from "./org"
54
53
  export { projectOutputSchema } from "./project"
55
- export { e164PhoneNumberSchema, reasonableNameSchema } from "./schemas"
54
+ export { reasonableNameSchema } from "./schemas"
56
55
  export { userOutputSchema } from "./auth"
57
56
  export {
58
57
  managementPermissionStatement,
@@ -104,9 +103,6 @@ export const firstPartyContract = {
104
103
  createBillingPortal: orgContract.createBillingPortal,
105
104
  createCheckout: orgContract.createCheckout,
106
105
  createEmbeddedCheckout: orgContract.createEmbeddedCheckout,
107
- removePhoneNumber: orgContract.removePhoneNumber,
108
- requestPhoneNumberVerification: orgContract.requestPhoneNumberVerification,
109
- verifyPhoneNumber: orgContract.verifyPhoneNumber,
110
106
  },
111
107
  project: {
112
108
  ...publicContract.project,
package/src/org.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { oc } from "@orpc/contract"
2
2
  import { z } from "zod"
3
- import { e164PhoneNumberSchema, reasonableNameSchema } from "./schemas"
3
+ import { reasonableNameSchema } from "./schemas"
4
4
 
5
5
  export const organizationRoleSchema = z.enum(["member", "admin", "owner"])
6
6
 
@@ -34,23 +34,13 @@ export const organizationSummaryOutputSchema = z.object({
34
34
  emailRecipients: z.number(),
35
35
  projects: z.number(),
36
36
  seats: z.number(),
37
- smsSegments: z.number(),
38
37
  }),
39
38
  usage: z.object({
40
39
  aiSpendUsd: z.number(),
41
40
  emailRecipients: z.number(),
42
- smsSegments: z.number(),
43
41
  }),
44
42
  })
45
43
 
46
- export const organizationPhoneNumberOutputSchema = z.object({
47
- id: z.string(),
48
- phoneNumber: e164PhoneNumberSchema,
49
- createdAt: z.date(),
50
- verifiedAt: z.date().nullable(),
51
- consentedAt: z.date().nullable(),
52
- })
53
-
54
44
  export const organizationMemberOutputSchema = z.object({
55
45
  id: z.string(),
56
46
  userId: z.string(),
@@ -80,7 +70,6 @@ export const organizationDetailsOutputSchema =
80
70
  organizationSummaryOutputSchema.extend({
81
71
  members: organizationMemberOutputSchema.array(),
82
72
  invitations: organizationInvitationOutputSchema.array(),
83
- phoneNumbers: organizationPhoneNumberOutputSchema.array(),
84
73
  projects: organizationProjectOutputSchema.array(),
85
74
  })
86
75
 
@@ -221,48 +210,6 @@ export const orgContract = {
221
210
  }),
222
211
  )
223
212
  .output(z.void()),
224
- removePhoneNumber: oc
225
- .route({
226
- method: "DELETE",
227
- path: "/organizations/{organizationId}/phone-numbers/{phoneNumberId}",
228
- operationId: "removeOrganizationPhoneNumber",
229
- summary: "Remove organization phone number",
230
- description:
231
- "Removes an organization SMS destination and its verification and consent state.",
232
- tags: ["Organizations"],
233
- successStatus: 204,
234
- })
235
- .input(
236
- z.object({
237
- organizationId: z.string(),
238
- phoneNumberId: z.string(),
239
- }),
240
- )
241
- .output(z.void()),
242
- requestPhoneNumberVerification: oc
243
- .route({
244
- method: "POST",
245
- path: "/organizations/{organizationId}/phone-numbers/verifications",
246
- operationId: "requestOrganizationPhoneNumberVerification",
247
- summary: "Request organization phone verification",
248
- description:
249
- "Sends a verification code after the caller explicitly consents to organization automation SMS alerts.",
250
- tags: ["Organizations"],
251
- successStatus: 201,
252
- })
253
- .input(
254
- z.object({
255
- organizationId: z.string(),
256
- phoneNumber: e164PhoneNumberSchema,
257
- smsConsent: z.literal(true),
258
- }),
259
- )
260
- .output(
261
- z.object({
262
- expiresAt: z.date(),
263
- phoneNumberId: z.string(),
264
- }),
265
- ),
266
213
  update: oc
267
214
  .route({
268
215
  method: "PATCH",
@@ -280,26 +227,4 @@ export const orgContract = {
280
227
  }),
281
228
  )
282
229
  .output(z.void()),
283
- verifyPhoneNumber: oc
284
- .route({
285
- method: "POST",
286
- path: "/organizations/{organizationId}/phone-numbers/{phoneNumberId}/verification",
287
- operationId: "verifyOrganizationPhoneNumber",
288
- summary: "Verify organization phone number",
289
- description:
290
- "Verifies possession of an organization SMS destination and activates its recorded consent.",
291
- tags: ["Organizations"],
292
- successStatus: 204,
293
- })
294
- .input(
295
- z.object({
296
- organizationId: z.string(),
297
- phoneNumberId: z.string(),
298
- code: z
299
- .string()
300
- .trim()
301
- .regex(/^\d{6}$/),
302
- }),
303
- )
304
- .output(z.void()),
305
230
  }
package/src/runtime.ts CHANGED
@@ -2,7 +2,6 @@ import { encodableSchema } from "@automate.ax/codec"
2
2
  import type { GatewayModelId } from "@ai-sdk/gateway"
3
3
  import { oc } from "@orpc/contract"
4
4
  import { z } from "zod"
5
- import { e164PhoneNumberSchema } from "./schemas"
6
5
 
7
6
  /** Default model used by the platform Vercel AI Gateway account. */
8
7
  export const DEFAULT_GATEWAY_MODEL_ID =
@@ -490,17 +489,4 @@ export const runtimeContract = {
490
489
  id: z.string().nullable(),
491
490
  }),
492
491
  ),
493
- sendSms: oc
494
- .input(
495
- z.object({
496
- deliveryIndex: z.number().int().nonnegative().default(0),
497
- text: z.string().trim().min(1).max(1_000),
498
- to: z.union([e164PhoneNumberSchema, z.literal("*")]).default("*"),
499
- }),
500
- )
501
- .output(
502
- z.object({
503
- ids: z.string().array(),
504
- }),
505
- ),
506
492
  }
package/src/schemas.ts CHANGED
@@ -1,9 +1,3 @@
1
1
  import { z } from "zod"
2
2
 
3
3
  export const reasonableNameSchema = z.string().min(1).max(255).trim()
4
-
5
- /** Canonical E.164 phone number accepted by SMS boundaries. */
6
- export const e164PhoneNumberSchema = z
7
- .string()
8
- .trim()
9
- .regex(/^\+[1-9]\d{1,14}$/, "Use an E.164 phone number such as +12065550123.")