@automate.ax/api-contract 0.156.0 → 0.157.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 +8 -0
- package/dist/account.js +1 -0
- package/dist/index.d.ts +14 -14
- package/dist/index.js +0 -1
- package/dist/org.d.ts +1 -7
- package/dist/org.js +1 -7
- package/package.json +4 -4
- package/src/account.ts +1 -0
- package/src/index.ts +0 -1
- package/src/org.ts +1 -9
package/dist/account.d.ts
CHANGED
|
@@ -59,6 +59,10 @@ export declare const integrationServiceOutputSchema: z.ZodObject<{
|
|
|
59
59
|
icon: z.ZodOptional<z.ZodString>;
|
|
60
60
|
id: z.ZodString;
|
|
61
61
|
name: z.ZodString;
|
|
62
|
+
requiredPlan: z.ZodEnum<{
|
|
63
|
+
free: "free";
|
|
64
|
+
pro: "pro";
|
|
65
|
+
}>;
|
|
62
66
|
preferredConnectionMethodId: z.ZodOptional<z.ZodString>;
|
|
63
67
|
}, z.core.$strip>;
|
|
64
68
|
export declare const integrationAccountRevocationOutputSchema: z.ZodObject<{
|
|
@@ -341,6 +345,10 @@ export declare const accountContract: {
|
|
|
341
345
|
icon: z.ZodOptional<z.ZodString>;
|
|
342
346
|
id: z.ZodString;
|
|
343
347
|
name: z.ZodString;
|
|
348
|
+
requiredPlan: z.ZodEnum<{
|
|
349
|
+
free: "free";
|
|
350
|
+
pro: "pro";
|
|
351
|
+
}>;
|
|
344
352
|
preferredConnectionMethodId: z.ZodOptional<z.ZodString>;
|
|
345
353
|
}, z.core.$strip>>, Record<never, never>, Record<never, never>>;
|
|
346
354
|
revocationImpact: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
package/dist/account.js
CHANGED
|
@@ -67,6 +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
71
|
preferredConnectionMethodId: z.string().optional(),
|
|
71
72
|
});
|
|
72
73
|
export const integrationAccountRevocationOutputSchema = z.object({
|
package/dist/index.d.ts
CHANGED
|
@@ -180,6 +180,10 @@ export declare const publicContract: {
|
|
|
180
180
|
icon: import("zod").ZodOptional<import("zod").ZodString>;
|
|
181
181
|
id: import("zod").ZodString;
|
|
182
182
|
name: import("zod").ZodString;
|
|
183
|
+
requiredPlan: import("zod").ZodEnum<{
|
|
184
|
+
free: "free";
|
|
185
|
+
pro: "pro";
|
|
186
|
+
}>;
|
|
183
187
|
preferredConnectionMethodId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
184
188
|
}, import("zod/v4/core").$strip>>, Record<never, never>, Record<never, never>>;
|
|
185
189
|
revocationImpact: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
@@ -2510,11 +2514,6 @@ export declare const firstPartyContract: {
|
|
|
2510
2514
|
url: import("zod").ZodURL;
|
|
2511
2515
|
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
2512
2516
|
createCheckout: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
2513
|
-
organizationId: import("zod").ZodString;
|
|
2514
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
2515
|
-
url: import("zod").ZodURL;
|
|
2516
|
-
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
2517
|
-
createEmbeddedCheckout: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
2518
2517
|
billingPeriod: import("zod").ZodDefault<import("zod").ZodEnum<{
|
|
2519
2518
|
monthly: "monthly";
|
|
2520
2519
|
quarterly: "quarterly";
|
|
@@ -2522,8 +2521,7 @@ export declare const firstPartyContract: {
|
|
|
2522
2521
|
}>>;
|
|
2523
2522
|
organizationId: import("zod").ZodString;
|
|
2524
2523
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
2525
|
-
|
|
2526
|
-
publishableKey: import("zod").ZodString;
|
|
2524
|
+
url: import("zod").ZodURL;
|
|
2527
2525
|
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
2528
2526
|
create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
2529
2527
|
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -2953,6 +2951,10 @@ export declare const firstPartyContract: {
|
|
|
2953
2951
|
icon: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2954
2952
|
id: import("zod").ZodString;
|
|
2955
2953
|
name: import("zod").ZodString;
|
|
2954
|
+
requiredPlan: import("zod").ZodEnum<{
|
|
2955
|
+
free: "free";
|
|
2956
|
+
pro: "pro";
|
|
2957
|
+
}>;
|
|
2956
2958
|
preferredConnectionMethodId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2957
2959
|
}, import("zod/v4/core").$strip>>, Record<never, never>, Record<never, never>>;
|
|
2958
2960
|
revocationImpact: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
@@ -10117,11 +10119,6 @@ export declare const contract: {
|
|
|
10117
10119
|
url: import("zod").ZodURL;
|
|
10118
10120
|
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
10119
10121
|
createCheckout: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
10120
|
-
organizationId: import("zod").ZodString;
|
|
10121
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
10122
|
-
url: import("zod").ZodURL;
|
|
10123
|
-
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
10124
|
-
createEmbeddedCheckout: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
10125
10122
|
billingPeriod: import("zod").ZodDefault<import("zod").ZodEnum<{
|
|
10126
10123
|
monthly: "monthly";
|
|
10127
10124
|
quarterly: "quarterly";
|
|
@@ -10129,8 +10126,7 @@ export declare const contract: {
|
|
|
10129
10126
|
}>>;
|
|
10130
10127
|
organizationId: import("zod").ZodString;
|
|
10131
10128
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
10132
|
-
|
|
10133
|
-
publishableKey: import("zod").ZodString;
|
|
10129
|
+
url: import("zod").ZodURL;
|
|
10134
10130
|
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
10135
10131
|
create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
10136
10132
|
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -10560,6 +10556,10 @@ export declare const contract: {
|
|
|
10560
10556
|
icon: import("zod").ZodOptional<import("zod").ZodString>;
|
|
10561
10557
|
id: import("zod").ZodString;
|
|
10562
10558
|
name: import("zod").ZodString;
|
|
10559
|
+
requiredPlan: import("zod").ZodEnum<{
|
|
10560
|
+
free: "free";
|
|
10561
|
+
pro: "pro";
|
|
10562
|
+
}>;
|
|
10563
10563
|
preferredConnectionMethodId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
10564
10564
|
}, import("zod/v4/core").$strip>>, Record<never, never>, Record<never, never>>;
|
|
10565
10565
|
revocationImpact: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
package/dist/index.js
CHANGED
|
@@ -82,7 +82,6 @@ export const firstPartyContract = {
|
|
|
82
82
|
canInvite: orgContract.canInvite,
|
|
83
83
|
createBillingPortal: orgContract.createBillingPortal,
|
|
84
84
|
createCheckout: orgContract.createCheckout,
|
|
85
|
-
createEmbeddedCheckout: orgContract.createEmbeddedCheckout,
|
|
86
85
|
},
|
|
87
86
|
project: {
|
|
88
87
|
...publicContract.project,
|
package/dist/org.d.ts
CHANGED
|
@@ -181,11 +181,6 @@ export declare const orgContract: {
|
|
|
181
181
|
url: z.ZodURL;
|
|
182
182
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
183
183
|
createCheckout: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
184
|
-
organizationId: z.ZodString;
|
|
185
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
186
|
-
url: z.ZodURL;
|
|
187
|
-
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
188
|
-
createEmbeddedCheckout: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
189
184
|
billingPeriod: z.ZodDefault<z.ZodEnum<{
|
|
190
185
|
monthly: "monthly";
|
|
191
186
|
quarterly: "quarterly";
|
|
@@ -193,8 +188,7 @@ export declare const orgContract: {
|
|
|
193
188
|
}>>;
|
|
194
189
|
organizationId: z.ZodString;
|
|
195
190
|
}, z.core.$strip>, z.ZodObject<{
|
|
196
|
-
|
|
197
|
-
publishableKey: z.ZodString;
|
|
191
|
+
url: z.ZodURL;
|
|
198
192
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
199
193
|
create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
200
194
|
id: z.ZodOptional<z.ZodString>;
|
package/dist/org.js
CHANGED
|
@@ -86,17 +86,11 @@ export const orgContract = {
|
|
|
86
86
|
.input(z.object({ organizationId: z.string() }))
|
|
87
87
|
.output(z.object({ url: z.url() })),
|
|
88
88
|
createCheckout: oc
|
|
89
|
-
.input(z.object({ organizationId: z.string() }))
|
|
90
|
-
.output(z.object({ url: z.url() })),
|
|
91
|
-
createEmbeddedCheckout: oc
|
|
92
89
|
.input(z.object({
|
|
93
90
|
billingPeriod: proBillingPeriodSchema.default("monthly"),
|
|
94
91
|
organizationId: z.string(),
|
|
95
92
|
}))
|
|
96
|
-
.output(z.object({
|
|
97
|
-
clientSecret: z.string().min(1),
|
|
98
|
-
publishableKey: z.string().min(1),
|
|
99
|
-
})),
|
|
93
|
+
.output(z.object({ url: z.url() })),
|
|
100
94
|
create: oc
|
|
101
95
|
.route({
|
|
102
96
|
method: "POST",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@automate.ax/api-contract",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.157.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.46",
|
|
34
|
-
"@automate.ax/catalog": "0.
|
|
35
|
-
"@automate.ax/codec": "0.
|
|
36
|
-
"@automate.ax/integration-contracts": "0.
|
|
34
|
+
"@automate.ax/catalog": "0.157.0",
|
|
35
|
+
"@automate.ax/codec": "0.157.0",
|
|
36
|
+
"@automate.ax/integration-contracts": "0.157.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
package/src/index.ts
CHANGED
|
@@ -177,7 +177,6 @@ export const firstPartyContract = {
|
|
|
177
177
|
canInvite: orgContract.canInvite,
|
|
178
178
|
createBillingPortal: orgContract.createBillingPortal,
|
|
179
179
|
createCheckout: orgContract.createCheckout,
|
|
180
|
-
createEmbeddedCheckout: orgContract.createEmbeddedCheckout,
|
|
181
180
|
},
|
|
182
181
|
project: {
|
|
183
182
|
...publicContract.project,
|
package/src/org.ts
CHANGED
|
@@ -103,21 +103,13 @@ export const orgContract = {
|
|
|
103
103
|
.input(z.object({ organizationId: z.string() }))
|
|
104
104
|
.output(z.object({ url: z.url() })),
|
|
105
105
|
createCheckout: oc
|
|
106
|
-
.input(z.object({ organizationId: z.string() }))
|
|
107
|
-
.output(z.object({ url: z.url() })),
|
|
108
|
-
createEmbeddedCheckout: oc
|
|
109
106
|
.input(
|
|
110
107
|
z.object({
|
|
111
108
|
billingPeriod: proBillingPeriodSchema.default("monthly"),
|
|
112
109
|
organizationId: z.string(),
|
|
113
110
|
}),
|
|
114
111
|
)
|
|
115
|
-
.output(
|
|
116
|
-
z.object({
|
|
117
|
-
clientSecret: z.string().min(1),
|
|
118
|
-
publishableKey: z.string().min(1),
|
|
119
|
-
}),
|
|
120
|
-
),
|
|
112
|
+
.output(z.object({ url: z.url() })),
|
|
121
113
|
create: oc
|
|
122
114
|
.route({
|
|
123
115
|
method: "POST",
|