@automate.ax/api-contract 0.142.0 → 0.143.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
@@ -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_IMAGE_MODEL_ID, DEFAULT_GATEWAY_MODEL_ID, DEFAULT_ACTION_MAX_ATTEMPTS, MAX_ACTION_ATTEMPTS, actionReplaySafetySchema, automationInvocationInputSchema, automationInvocationOutputSchema, automationInvocationScheduleSchema, generationInputSchema, generationResultSchema, imageGenerationInputSchema, imageGenerationCompletionSchema, imageGenerationResultSchema, platformImageGenerationInputSchema, platformImageGenerationStartSchema, hashSignalCoordinatorConfiguration, runtimeContract, type GenerationInput, type GenerationResult, 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 { 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, publicOrganizationOutputSchema, } from "./org.js";
10
+ export { activeSubscriptionOutputSchema, createdInvitationOutputSchema, organizationDetailsOutputSchema, organizationInvitationOutputSchema, organizationMemberOutputSchema, organizationProjectOutputSchema, organizationRoleSchema, organizationRoles, organizationSummaryOutputSchema, proBillingPeriodSchema, publicOrganizationOutputSchema, type ProBillingPeriod, } 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";
@@ -1365,6 +1365,11 @@ export declare const firstPartyContract: {
1365
1365
  url: import("zod").ZodURL;
1366
1366
  }, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
1367
1367
  createEmbeddedCheckout: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
1368
+ billingPeriod: import("zod").ZodDefault<import("zod").ZodEnum<{
1369
+ monthly: "monthly";
1370
+ quarterly: "quarterly";
1371
+ annual: "annual";
1372
+ }>>;
1368
1373
  organizationId: import("zod").ZodString;
1369
1374
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
1370
1375
  clientSecret: import("zod").ZodString;
@@ -7689,6 +7694,11 @@ export declare const contract: {
7689
7694
  url: import("zod").ZodURL;
7690
7695
  }, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
7691
7696
  createEmbeddedCheckout: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
7697
+ billingPeriod: import("zod").ZodDefault<import("zod").ZodEnum<{
7698
+ monthly: "monthly";
7699
+ quarterly: "quarterly";
7700
+ annual: "annual";
7701
+ }>>;
7692
7702
  organizationId: import("zod").ZodString;
7693
7703
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
7694
7704
  clientSecret: import("zod").ZodString;
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_IMAGE_MODEL_ID, DEFAULT_GATEWAY_MODEL_ID, DEFAULT_ACTION_MAX_ATTEMPTS, MAX_ACTION_ATTEMPTS, actionReplaySafetySchema, automationInvocationInputSchema, automationInvocationOutputSchema, automationInvocationScheduleSchema, 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, publicOrganizationOutputSchema, } from "./org.js";
20
+ export { activeSubscriptionOutputSchema, createdInvitationOutputSchema, organizationDetailsOutputSchema, organizationInvitationOutputSchema, organizationMemberOutputSchema, organizationProjectOutputSchema, organizationRoleSchema, organizationRoles, organizationSummaryOutputSchema, proBillingPeriodSchema, 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,6 +4,12 @@ export declare const organizationRoleSchema: z.ZodEnum<{
4
4
  member: "member";
5
5
  admin: "admin";
6
6
  }>;
7
+ export declare const proBillingPeriodSchema: z.ZodEnum<{
8
+ monthly: "monthly";
9
+ quarterly: "quarterly";
10
+ annual: "annual";
11
+ }>;
12
+ export type ProBillingPeriod = z.infer<typeof proBillingPeriodSchema>;
7
13
  export { organizationRoles };
8
14
  export declare const publicOrganizationOutputSchema: z.ZodObject<{
9
15
  id: z.ZodString;
@@ -176,6 +182,11 @@ export declare const orgContract: {
176
182
  url: z.ZodURL;
177
183
  }, z.core.$strip>, Record<never, never>, Record<never, never>>;
178
184
  createEmbeddedCheckout: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
185
+ billingPeriod: z.ZodDefault<z.ZodEnum<{
186
+ monthly: "monthly";
187
+ quarterly: "quarterly";
188
+ annual: "annual";
189
+ }>>;
179
190
  organizationId: z.ZodString;
180
191
  }, z.core.$strip>, z.ZodObject<{
181
192
  clientSecret: z.ZodString;
package/dist/org.js CHANGED
@@ -3,6 +3,7 @@ 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
7
  export { organizationRoles };
7
8
  export const publicOrganizationOutputSchema = z.object({
8
9
  id: z.string(),
@@ -86,7 +87,10 @@ export const orgContract = {
86
87
  .input(z.object({ organizationId: z.string() }))
87
88
  .output(z.object({ url: z.url() })),
88
89
  createEmbeddedCheckout: oc
89
- .input(z.object({ organizationId: z.string() }))
90
+ .input(z.object({
91
+ billingPeriod: proBillingPeriodSchema.default("monthly"),
92
+ organizationId: z.string(),
93
+ }))
90
94
  .output(z.object({
91
95
  clientSecret: z.string().min(1),
92
96
  publishableKey: z.string().min(1),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@automate.ax/api-contract",
3
- "version": "0.142.0",
3
+ "version": "0.143.0",
4
4
  "description": "Public oRPC contract for the Automate.ax API.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -31,8 +31,8 @@
31
31
  },
32
32
  "dependencies": {
33
33
  "@ai-sdk/gateway": "4.0.46",
34
- "@automate.ax/codec": "0.142.0",
35
- "@automate.ax/integration-contracts": "0.142.0",
34
+ "@automate.ax/codec": "0.143.0",
35
+ "@automate.ax/integration-contracts": "0.143.0",
36
36
  "@orpc/contract": "1.15.0",
37
37
  "fast-json-stable-stringify": "^2.1.0",
38
38
  "zod": "^4.3.6"
package/src/index.ts CHANGED
@@ -97,7 +97,9 @@ export {
97
97
  organizationRoleSchema,
98
98
  organizationRoles,
99
99
  organizationSummaryOutputSchema,
100
+ proBillingPeriodSchema,
100
101
  publicOrganizationOutputSchema,
102
+ type ProBillingPeriod,
101
103
  } from "./org"
102
104
  export { projectOutputSchema } from "./project"
103
105
  export {
package/src/org.ts CHANGED
@@ -8,6 +8,8 @@ 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
13
 
12
14
  export { organizationRoles }
13
15
 
@@ -102,7 +104,12 @@ export const orgContract = {
102
104
  .input(z.object({ organizationId: z.string() }))
103
105
  .output(z.object({ url: z.url() })),
104
106
  createEmbeddedCheckout: oc
105
- .input(z.object({ organizationId: z.string() }))
107
+ .input(
108
+ z.object({
109
+ billingPeriod: proBillingPeriodSchema.default("monthly"),
110
+ organizationId: z.string(),
111
+ }),
112
+ )
106
113
  .output(
107
114
  z.object({
108
115
  clientSecret: z.string().min(1),