@automate.ax/api-contract 0.160.0 → 0.161.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 CHANGED
@@ -61,7 +61,8 @@ export declare const integrationServiceOutputSchema: z.ZodObject<{
61
61
  name: z.ZodString;
62
62
  requiredPlan: z.ZodEnum<{
63
63
  free: "free";
64
- pro: "pro";
64
+ starter: "starter";
65
+ growth: "growth";
65
66
  }>;
66
67
  preferredConnectionMethodId: z.ZodOptional<z.ZodString>;
67
68
  }, z.core.$strip>;
@@ -187,7 +188,8 @@ export declare const accountContract: {
187
188
  label: z.ZodString;
188
189
  requiredPlan: z.ZodEnum<{
189
190
  free: "free";
190
- pro: "pro";
191
+ starter: "starter";
192
+ growth: "growth";
191
193
  }>;
192
194
  serviceId: z.ZodString;
193
195
  serviceName: z.ZodString;
@@ -367,7 +369,8 @@ export declare const accountContract: {
367
369
  name: z.ZodString;
368
370
  requiredPlan: z.ZodEnum<{
369
371
  free: "free";
370
- pro: "pro";
372
+ starter: "starter";
373
+ growth: "growth";
371
374
  }>;
372
375
  preferredConnectionMethodId: z.ZodOptional<z.ZodString>;
373
376
  }, z.core.$strip>>, Record<never, never>, Record<never, never>>;
package/dist/account.js CHANGED
@@ -67,7 +67,7 @@ export const integrationServiceOutputSchema = z.object({
67
67
  icon: z.string().optional(),
68
68
  id: z.string(),
69
69
  name: z.string(),
70
- requiredPlan: z.enum(["free", "pro"]),
70
+ requiredPlan: z.enum(["free", "starter", "growth"]),
71
71
  preferredConnectionMethodId: z.string().optional(),
72
72
  });
73
73
  export const integrationAccountRevocationOutputSchema = z.object({
@@ -171,7 +171,7 @@ export const accountContract = {
171
171
  .output(z.object({
172
172
  expiresAt: z.date(),
173
173
  label: z.string(),
174
- requiredPlan: z.enum(["free", "pro"]),
174
+ requiredPlan: z.enum(["free", "starter", "growth"]),
175
175
  serviceId: z.string(),
176
176
  serviceName: z.string(),
177
177
  serviceSub: z.string(),
package/dist/index.d.ts CHANGED
@@ -7,7 +7,7 @@ export { integrationAccountOutputSchema, integrationAccountRevocationImpactOutpu
7
7
  export { AUTOMATION_INVOCATION_DEFAULT_ENTRYPOINT, AUTOMATION_INVOCATION_RESERVED_ENTRYPOINT_PREFIX, AUTOMATION_IMAGE_GENERATION_ENTRYPOINT_PREFIX, AUTOMATION_LOG_MAX_ENTRIES, AUTOMATION_LOG_MAX_MESSAGE_LENGTH, AUTOMATION_OBSERVABILITY_MAX_ENCODED_BYTES, AUTOMATION_OBSERVABILITY_MAX_FIELDS, DEFAULT_GATEWAY_EVALUATION_MODEL_ID, DEFAULT_GATEWAY_IMAGE_MODEL_ID, DEFAULT_GATEWAY_MODEL_ID, DEFAULT_ACTION_MAX_ATTEMPTS, MAX_ACTION_ATTEMPTS, actionReplaySafetySchema, automationInvocationInputSchema, automationInvocationOutputSchema, automationInvocationScheduleSchema, evaluationInputSchema, evaluationResultSchema, generationInputSchema, generationResultSchema, imageGenerationInputSchema, imageGenerationCompletionSchema, imageGenerationResultSchema, platformImageGenerationInputSchema, platformImageGenerationStartSchema, hashSignalCoordinatorConfiguration, runtimeContract, type GenerationInput, type GenerationResult, type EvaluationInput, type EvaluationResult, type ImageGenerationInput, type ImageGenerationCompletion, type ImageGenerationResult, type PlatformImageGenerationInput, type RuntimeGenerationInput, type RuntimeCoordinationOffer, type ActionReplaySafety, type RuntimeActionAttemptCompletion, type RuntimeActionAttemptStart, } from "./runtime.js";
8
8
  export type { GatewayEvaluationModelId, GatewayImageModelId, GatewayModelId, } from "@ai-sdk/gateway";
9
9
  export { createdOrganizationApiKeyOutputSchema, organizationApiKeyOutputSchema, } from "./api-key.js";
10
- export { activeSubscriptionOutputSchema, createdInvitationOutputSchema, organizationDetailsOutputSchema, organizationInvitationOutputSchema, organizationMemberOutputSchema, organizationProjectOutputSchema, organizationRoleSchema, organizationRoles, organizationSummaryOutputSchema, proBillingPeriodSchema, publicOrganizationOutputSchema, type ProBillingPeriod, } from "./org.js";
10
+ export { activeSubscriptionOutputSchema, createdInvitationOutputSchema, organizationDetailsOutputSchema, organizationInvitationOutputSchema, organizationMemberOutputSchema, organizationProjectOutputSchema, organizationRoleSchema, organizationRoles, organizationSummaryOutputSchema, billingPeriodSchema, paidBillingPlanSchema, publicOrganizationOutputSchema, type BillingPeriod, type PaidBillingPlan, } from "./org.js";
11
11
  export { projectOutputSchema } from "./project.js";
12
12
  export { cursorPageInfoSchema, cursorPageOutputSchema, cursorPaginationInputSchema, reasonableNameSchema, } from "./schemas.js";
13
13
  export { userOutputSchema } from "./auth.js";
@@ -22,7 +22,8 @@ export declare const publicContract: {
22
22
  label: import("zod").ZodString;
23
23
  requiredPlan: import("zod").ZodEnum<{
24
24
  free: "free";
25
- pro: "pro";
25
+ starter: "starter";
26
+ growth: "growth";
26
27
  }>;
27
28
  serviceId: import("zod").ZodString;
28
29
  serviceName: import("zod").ZodString;
@@ -202,7 +203,8 @@ export declare const publicContract: {
202
203
  name: import("zod").ZodString;
203
204
  requiredPlan: import("zod").ZodEnum<{
204
205
  free: "free";
205
- pro: "pro";
206
+ starter: "starter";
207
+ growth: "growth";
206
208
  }>;
207
209
  preferredConnectionMethodId: import("zod").ZodOptional<import("zod").ZodString>;
208
210
  }, import("zod/v4/core").$strip>>, Record<never, never>, Record<never, never>>;
@@ -1434,6 +1436,8 @@ export declare const publicContract: {
1434
1436
  executionRetentionDays: import("zod").ZodNumber;
1435
1437
  plan: import("zod").ZodEnum<{
1436
1438
  free: "free";
1439
+ starter: "starter";
1440
+ growth: "growth";
1437
1441
  pro: "pro";
1438
1442
  enterprise: "enterprise";
1439
1443
  }>;
@@ -1529,6 +1533,8 @@ export declare const publicContract: {
1529
1533
  executionRetentionDays: import("zod").ZodNumber;
1530
1534
  plan: import("zod").ZodEnum<{
1531
1535
  free: "free";
1536
+ starter: "starter";
1537
+ growth: "growth";
1532
1538
  pro: "pro";
1533
1539
  enterprise: "enterprise";
1534
1540
  }>;
@@ -2539,7 +2545,12 @@ export declare const firstPartyContract: {
2539
2545
  quarterly: "quarterly";
2540
2546
  annual: "annual";
2541
2547
  }>>;
2548
+ confirmImmediateChange: import("zod").ZodDefault<import("zod").ZodBoolean>;
2542
2549
  organizationId: import("zod").ZodString;
2550
+ plan: import("zod").ZodDefault<import("zod").ZodEnum<{
2551
+ starter: "starter";
2552
+ growth: "growth";
2553
+ }>>;
2543
2554
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
2544
2555
  url: import("zod").ZodURL;
2545
2556
  }, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
@@ -2580,6 +2591,8 @@ export declare const firstPartyContract: {
2580
2591
  executionRetentionDays: import("zod").ZodNumber;
2581
2592
  plan: import("zod").ZodEnum<{
2582
2593
  free: "free";
2594
+ starter: "starter";
2595
+ growth: "growth";
2583
2596
  pro: "pro";
2584
2597
  enterprise: "enterprise";
2585
2598
  }>;
@@ -2675,6 +2688,8 @@ export declare const firstPartyContract: {
2675
2688
  executionRetentionDays: import("zod").ZodNumber;
2676
2689
  plan: import("zod").ZodEnum<{
2677
2690
  free: "free";
2691
+ starter: "starter";
2692
+ growth: "growth";
2678
2693
  pro: "pro";
2679
2694
  enterprise: "enterprise";
2680
2695
  }>;
@@ -2813,7 +2828,8 @@ export declare const firstPartyContract: {
2813
2828
  label: import("zod").ZodString;
2814
2829
  requiredPlan: import("zod").ZodEnum<{
2815
2830
  free: "free";
2816
- pro: "pro";
2831
+ starter: "starter";
2832
+ growth: "growth";
2817
2833
  }>;
2818
2834
  serviceId: import("zod").ZodString;
2819
2835
  serviceName: import("zod").ZodString;
@@ -2993,7 +3009,8 @@ export declare const firstPartyContract: {
2993
3009
  name: import("zod").ZodString;
2994
3010
  requiredPlan: import("zod").ZodEnum<{
2995
3011
  free: "free";
2996
- pro: "pro";
3012
+ starter: "starter";
3013
+ growth: "growth";
2997
3014
  }>;
2998
3015
  preferredConnectionMethodId: import("zod").ZodOptional<import("zod").ZodString>;
2999
3016
  }, import("zod/v4/core").$strip>>, Record<never, never>, Record<never, never>>;
@@ -10235,7 +10252,12 @@ export declare const contract: {
10235
10252
  quarterly: "quarterly";
10236
10253
  annual: "annual";
10237
10254
  }>>;
10255
+ confirmImmediateChange: import("zod").ZodDefault<import("zod").ZodBoolean>;
10238
10256
  organizationId: import("zod").ZodString;
10257
+ plan: import("zod").ZodDefault<import("zod").ZodEnum<{
10258
+ starter: "starter";
10259
+ growth: "growth";
10260
+ }>>;
10239
10261
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
10240
10262
  url: import("zod").ZodURL;
10241
10263
  }, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
@@ -10276,6 +10298,8 @@ export declare const contract: {
10276
10298
  executionRetentionDays: import("zod").ZodNumber;
10277
10299
  plan: import("zod").ZodEnum<{
10278
10300
  free: "free";
10301
+ starter: "starter";
10302
+ growth: "growth";
10279
10303
  pro: "pro";
10280
10304
  enterprise: "enterprise";
10281
10305
  }>;
@@ -10371,6 +10395,8 @@ export declare const contract: {
10371
10395
  executionRetentionDays: import("zod").ZodNumber;
10372
10396
  plan: import("zod").ZodEnum<{
10373
10397
  free: "free";
10398
+ starter: "starter";
10399
+ growth: "growth";
10374
10400
  pro: "pro";
10375
10401
  enterprise: "enterprise";
10376
10402
  }>;
@@ -10509,7 +10535,8 @@ export declare const contract: {
10509
10535
  label: import("zod").ZodString;
10510
10536
  requiredPlan: import("zod").ZodEnum<{
10511
10537
  free: "free";
10512
- pro: "pro";
10538
+ starter: "starter";
10539
+ growth: "growth";
10513
10540
  }>;
10514
10541
  serviceId: import("zod").ZodString;
10515
10542
  serviceName: import("zod").ZodString;
@@ -10689,7 +10716,8 @@ export declare const contract: {
10689
10716
  name: import("zod").ZodString;
10690
10717
  requiredPlan: import("zod").ZodEnum<{
10691
10718
  free: "free";
10692
- pro: "pro";
10719
+ starter: "starter";
10720
+ growth: "growth";
10693
10721
  }>;
10694
10722
  preferredConnectionMethodId: import("zod").ZodOptional<import("zod").ZodString>;
10695
10723
  }, import("zod/v4/core").$strip>>, Record<never, never>, Record<never, never>>;
package/dist/index.js CHANGED
@@ -17,7 +17,7 @@ export { AUTOMATION_ERROR_CAUSE_DEPTH, automationErrorSchema, } from "./errors.j
17
17
  export { integrationAccountOutputSchema, integrationAccountRevocationImpactOutputSchema, integrationAccountRevocationOutputSchema, integrationServiceOutputSchema, } from "./account.js";
18
18
  export { AUTOMATION_INVOCATION_DEFAULT_ENTRYPOINT, AUTOMATION_INVOCATION_RESERVED_ENTRYPOINT_PREFIX, AUTOMATION_IMAGE_GENERATION_ENTRYPOINT_PREFIX, AUTOMATION_LOG_MAX_ENTRIES, AUTOMATION_LOG_MAX_MESSAGE_LENGTH, AUTOMATION_OBSERVABILITY_MAX_ENCODED_BYTES, AUTOMATION_OBSERVABILITY_MAX_FIELDS, DEFAULT_GATEWAY_EVALUATION_MODEL_ID, DEFAULT_GATEWAY_IMAGE_MODEL_ID, DEFAULT_GATEWAY_MODEL_ID, DEFAULT_ACTION_MAX_ATTEMPTS, MAX_ACTION_ATTEMPTS, actionReplaySafetySchema, automationInvocationInputSchema, automationInvocationOutputSchema, automationInvocationScheduleSchema, evaluationInputSchema, evaluationResultSchema, generationInputSchema, generationResultSchema, imageGenerationInputSchema, imageGenerationCompletionSchema, imageGenerationResultSchema, platformImageGenerationInputSchema, platformImageGenerationStartSchema, hashSignalCoordinatorConfiguration, runtimeContract, } from "./runtime.js";
19
19
  export { createdOrganizationApiKeyOutputSchema, organizationApiKeyOutputSchema, } from "./api-key.js";
20
- export { activeSubscriptionOutputSchema, createdInvitationOutputSchema, organizationDetailsOutputSchema, organizationInvitationOutputSchema, organizationMemberOutputSchema, organizationProjectOutputSchema, organizationRoleSchema, organizationRoles, organizationSummaryOutputSchema, proBillingPeriodSchema, publicOrganizationOutputSchema, } from "./org.js";
20
+ export { activeSubscriptionOutputSchema, createdInvitationOutputSchema, organizationDetailsOutputSchema, organizationInvitationOutputSchema, organizationMemberOutputSchema, organizationProjectOutputSchema, organizationRoleSchema, organizationRoles, organizationSummaryOutputSchema, billingPeriodSchema, paidBillingPlanSchema, publicOrganizationOutputSchema, } from "./org.js";
21
21
  export { projectOutputSchema } from "./project.js";
22
22
  export { cursorPageInfoSchema, cursorPageOutputSchema, cursorPaginationInputSchema, reasonableNameSchema, } from "./schemas.js";
23
23
  export { userOutputSchema } from "./auth.js";
package/dist/org.d.ts CHANGED
@@ -4,12 +4,17 @@ export declare const organizationRoleSchema: z.ZodEnum<{
4
4
  member: "member";
5
5
  admin: "admin";
6
6
  }>;
7
- export declare const proBillingPeriodSchema: z.ZodEnum<{
7
+ export declare const billingPeriodSchema: z.ZodEnum<{
8
8
  monthly: "monthly";
9
9
  quarterly: "quarterly";
10
10
  annual: "annual";
11
11
  }>;
12
- export type ProBillingPeriod = z.infer<typeof proBillingPeriodSchema>;
12
+ export type BillingPeriod = z.infer<typeof billingPeriodSchema>;
13
+ export declare const paidBillingPlanSchema: z.ZodEnum<{
14
+ starter: "starter";
15
+ growth: "growth";
16
+ }>;
17
+ export type PaidBillingPlan = z.infer<typeof paidBillingPlanSchema>;
13
18
  export { organizationRoles };
14
19
  export declare const publicOrganizationOutputSchema: z.ZodObject<{
15
20
  id: z.ZodString;
@@ -45,6 +50,8 @@ export declare const organizationSummaryOutputSchema: z.ZodObject<{
45
50
  executionRetentionDays: z.ZodNumber;
46
51
  plan: z.ZodEnum<{
47
52
  free: "free";
53
+ starter: "starter";
54
+ growth: "growth";
48
55
  pro: "pro";
49
56
  enterprise: "enterprise";
50
57
  }>;
@@ -115,6 +122,8 @@ export declare const organizationDetailsOutputSchema: z.ZodObject<{
115
122
  executionRetentionDays: z.ZodNumber;
116
123
  plan: z.ZodEnum<{
117
124
  free: "free";
125
+ starter: "starter";
126
+ growth: "growth";
118
127
  pro: "pro";
119
128
  enterprise: "enterprise";
120
129
  }>;
@@ -186,7 +195,12 @@ export declare const orgContract: {
186
195
  quarterly: "quarterly";
187
196
  annual: "annual";
188
197
  }>>;
198
+ confirmImmediateChange: z.ZodDefault<z.ZodBoolean>;
189
199
  organizationId: z.ZodString;
200
+ plan: z.ZodDefault<z.ZodEnum<{
201
+ starter: "starter";
202
+ growth: "growth";
203
+ }>>;
190
204
  }, z.core.$strip>, z.ZodObject<{
191
205
  url: z.ZodURL;
192
206
  }, z.core.$strip>, Record<never, never>, Record<never, never>>;
@@ -227,6 +241,8 @@ export declare const orgContract: {
227
241
  executionRetentionDays: z.ZodNumber;
228
242
  plan: z.ZodEnum<{
229
243
  free: "free";
244
+ starter: "starter";
245
+ growth: "growth";
230
246
  pro: "pro";
231
247
  enterprise: "enterprise";
232
248
  }>;
@@ -322,6 +338,8 @@ export declare const orgContract: {
322
338
  executionRetentionDays: z.ZodNumber;
323
339
  plan: z.ZodEnum<{
324
340
  free: "free";
341
+ starter: "starter";
342
+ growth: "growth";
325
343
  pro: "pro";
326
344
  enterprise: "enterprise";
327
345
  }>;
package/dist/org.js CHANGED
@@ -3,7 +3,8 @@ import * as z from "zod";
3
3
  import { cursorPageOutputSchema, cursorPaginationInputSchema, reasonableNameSchema, } from "./schemas.js";
4
4
  import { organizationRoles } from "./permissions.js";
5
5
  export const organizationRoleSchema = z.enum(organizationRoles);
6
- export const proBillingPeriodSchema = z.enum(["monthly", "quarterly", "annual"]);
6
+ export const billingPeriodSchema = z.enum(["monthly", "quarterly", "annual"]);
7
+ export const paidBillingPlanSchema = z.enum(["starter", "growth"]);
7
8
  export { organizationRoles };
8
9
  export const publicOrganizationOutputSchema = z.object({
9
10
  id: z.string(),
@@ -28,7 +29,7 @@ export const organizationSummaryOutputSchema = z.object({
28
29
  projectCount: z.number(),
29
30
  activeSubscription: activeSubscriptionOutputSchema.nullable(),
30
31
  executionRetentionDays: z.number().int().positive(),
31
- plan: z.enum(["free", "pro", "enterprise"]),
32
+ plan: z.enum(["free", "pro", "starter", "growth", "enterprise"]),
32
33
  limits: z.object({
33
34
  aiSpendUsd: z.number(),
34
35
  automationRuntimeMinutes: z.number(),
@@ -87,8 +88,10 @@ export const orgContract = {
87
88
  .output(z.object({ url: z.url() })),
88
89
  createCheckout: oc
89
90
  .input(z.object({
90
- billingPeriod: proBillingPeriodSchema.default("monthly"),
91
+ billingPeriod: billingPeriodSchema.default("monthly"),
92
+ confirmImmediateChange: z.boolean().default(false),
91
93
  organizationId: z.string(),
94
+ plan: paidBillingPlanSchema.default("starter"),
92
95
  }))
93
96
  .output(z.object({ url: z.url() })),
94
97
  create: oc
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@automate.ax/api-contract",
3
- "version": "0.160.0",
3
+ "version": "0.161.0",
4
4
  "description": "Public oRPC contract for the Automate.ax API.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -31,9 +31,9 @@
31
31
  },
32
32
  "dependencies": {
33
33
  "@ai-sdk/gateway": "4.0.87",
34
- "@automate.ax/catalog": "0.160.0",
35
- "@automate.ax/codec": "0.160.0",
36
- "@automate.ax/integration-contracts": "0.160.0",
34
+ "@automate.ax/catalog": "0.161.0",
35
+ "@automate.ax/codec": "0.161.0",
36
+ "@automate.ax/integration-contracts": "0.161.0",
37
37
  "@orpc/contract": "1.15.0",
38
38
  "fast-json-stable-stringify": "^2.1.0",
39
39
  "zod": "^4.3.6"
package/src/account.ts CHANGED
@@ -69,7 +69,7 @@ export const integrationServiceOutputSchema = z.object({
69
69
  icon: z.string().optional(),
70
70
  id: z.string(),
71
71
  name: z.string(),
72
- requiredPlan: z.enum(["free", "pro"]),
72
+ requiredPlan: z.enum(["free", "starter", "growth"]),
73
73
  preferredConnectionMethodId: z.string().optional(),
74
74
  })
75
75
 
@@ -181,7 +181,7 @@ export const accountContract = {
181
181
  z.object({
182
182
  expiresAt: z.date(),
183
183
  label: z.string(),
184
- requiredPlan: z.enum(["free", "pro"]),
184
+ requiredPlan: z.enum(["free", "starter", "growth"]),
185
185
  serviceId: z.string(),
186
186
  serviceName: z.string(),
187
187
  serviceSub: z.string(),
package/src/index.ts CHANGED
@@ -106,9 +106,11 @@ export {
106
106
  organizationRoleSchema,
107
107
  organizationRoles,
108
108
  organizationSummaryOutputSchema,
109
- proBillingPeriodSchema,
109
+ billingPeriodSchema,
110
+ paidBillingPlanSchema,
110
111
  publicOrganizationOutputSchema,
111
- type ProBillingPeriod,
112
+ type BillingPeriod,
113
+ type PaidBillingPlan,
112
114
  } from "./org"
113
115
  export { projectOutputSchema } from "./project"
114
116
  export {
package/src/org.ts CHANGED
@@ -8,8 +8,10 @@ import {
8
8
  import { organizationRoles } from "./permissions"
9
9
 
10
10
  export const organizationRoleSchema = z.enum(organizationRoles)
11
- export const proBillingPeriodSchema = z.enum(["monthly", "quarterly", "annual"])
12
- export type ProBillingPeriod = z.infer<typeof proBillingPeriodSchema>
11
+ export const billingPeriodSchema = z.enum(["monthly", "quarterly", "annual"])
12
+ export type BillingPeriod = z.infer<typeof billingPeriodSchema>
13
+ export const paidBillingPlanSchema = z.enum(["starter", "growth"])
14
+ export type PaidBillingPlan = z.infer<typeof paidBillingPlanSchema>
13
15
 
14
16
  export { organizationRoles }
15
17
 
@@ -38,7 +40,7 @@ export const organizationSummaryOutputSchema = z.object({
38
40
  projectCount: z.number(),
39
41
  activeSubscription: activeSubscriptionOutputSchema.nullable(),
40
42
  executionRetentionDays: z.number().int().positive(),
41
- plan: z.enum(["free", "pro", "enterprise"]),
43
+ plan: z.enum(["free", "pro", "starter", "growth", "enterprise"]),
42
44
  limits: z.object({
43
45
  aiSpendUsd: z.number(),
44
46
  automationRuntimeMinutes: z.number(),
@@ -105,8 +107,10 @@ export const orgContract = {
105
107
  createCheckout: oc
106
108
  .input(
107
109
  z.object({
108
- billingPeriod: proBillingPeriodSchema.default("monthly"),
110
+ billingPeriod: billingPeriodSchema.default("monthly"),
111
+ confirmImmediateChange: z.boolean().default(false),
109
112
  organizationId: z.string(),
113
+ plan: paidBillingPlanSchema.default("starter"),
110
114
  }),
111
115
  )
112
116
  .output(z.object({ url: z.url() })),