@automate.ax/api-contract 0.51.0 → 0.52.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 +12 -0
- package/dist/index.js +1 -0
- package/dist/org.d.ts +6 -0
- package/dist/org.js +6 -0
- package/package.json +2 -2
- package/src/index.ts +1 -0
- package/src/org.ts +8 -0
package/dist/index.d.ts
CHANGED
|
@@ -639,6 +639,12 @@ export declare const firstPartyContract: {
|
|
|
639
639
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
640
640
|
url: import("zod").ZodURL;
|
|
641
641
|
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
642
|
+
createEmbeddedCheckout: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
643
|
+
organizationId: import("zod").ZodString;
|
|
644
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
645
|
+
clientSecret: import("zod").ZodString;
|
|
646
|
+
publishableKey: import("zod").ZodString;
|
|
647
|
+
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
642
648
|
removePhoneNumber: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
643
649
|
organizationId: import("zod").ZodString;
|
|
644
650
|
phoneNumberId: import("zod").ZodString;
|
|
@@ -1912,6 +1918,12 @@ export declare const contract: {
|
|
|
1912
1918
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1913
1919
|
url: import("zod").ZodURL;
|
|
1914
1920
|
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
1921
|
+
createEmbeddedCheckout: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
1922
|
+
organizationId: import("zod").ZodString;
|
|
1923
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1924
|
+
clientSecret: import("zod").ZodString;
|
|
1925
|
+
publishableKey: import("zod").ZodString;
|
|
1926
|
+
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
1915
1927
|
removePhoneNumber: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
1916
1928
|
organizationId: import("zod").ZodString;
|
|
1917
1929
|
phoneNumberId: import("zod").ZodString;
|
package/dist/index.js
CHANGED
|
@@ -59,6 +59,7 @@ export const firstPartyContract = {
|
|
|
59
59
|
canInvite: orgContract.canInvite,
|
|
60
60
|
createBillingPortal: orgContract.createBillingPortal,
|
|
61
61
|
createCheckout: orgContract.createCheckout,
|
|
62
|
+
createEmbeddedCheckout: orgContract.createEmbeddedCheckout,
|
|
62
63
|
removePhoneNumber: orgContract.removePhoneNumber,
|
|
63
64
|
requestPhoneNumberVerification: orgContract.requestPhoneNumberVerification,
|
|
64
65
|
verifyPhoneNumber: orgContract.verifyPhoneNumber,
|
package/dist/org.d.ts
CHANGED
|
@@ -191,6 +191,12 @@ export declare const orgContract: {
|
|
|
191
191
|
}, z.core.$strip>, z.ZodObject<{
|
|
192
192
|
url: z.ZodURL;
|
|
193
193
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
194
|
+
createEmbeddedCheckout: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
195
|
+
organizationId: z.ZodString;
|
|
196
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
197
|
+
clientSecret: z.ZodString;
|
|
198
|
+
publishableKey: z.ZodString;
|
|
199
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
194
200
|
create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
195
201
|
id: z.ZodOptional<z.ZodString>;
|
|
196
202
|
name: z.ZodString;
|
package/dist/org.js
CHANGED
|
@@ -89,6 +89,12 @@ export const orgContract = {
|
|
|
89
89
|
createCheckout: oc
|
|
90
90
|
.input(z.object({ organizationId: z.string() }))
|
|
91
91
|
.output(z.object({ url: z.url() })),
|
|
92
|
+
createEmbeddedCheckout: oc
|
|
93
|
+
.input(z.object({ organizationId: z.string() }))
|
|
94
|
+
.output(z.object({
|
|
95
|
+
clientSecret: z.string().min(1),
|
|
96
|
+
publishableKey: z.string().min(1),
|
|
97
|
+
})),
|
|
92
98
|
create: oc
|
|
93
99
|
.route({
|
|
94
100
|
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.52.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.
|
|
31
|
+
"@automate.ax/codec": "0.52.0",
|
|
32
32
|
"@orpc/contract": "1.15.0",
|
|
33
33
|
"zod": "^4.3.6"
|
|
34
34
|
},
|
package/src/index.ts
CHANGED
|
@@ -103,6 +103,7 @@ export const firstPartyContract = {
|
|
|
103
103
|
canInvite: orgContract.canInvite,
|
|
104
104
|
createBillingPortal: orgContract.createBillingPortal,
|
|
105
105
|
createCheckout: orgContract.createCheckout,
|
|
106
|
+
createEmbeddedCheckout: orgContract.createEmbeddedCheckout,
|
|
106
107
|
removePhoneNumber: orgContract.removePhoneNumber,
|
|
107
108
|
requestPhoneNumberVerification: orgContract.requestPhoneNumberVerification,
|
|
108
109
|
verifyPhoneNumber: orgContract.verifyPhoneNumber,
|
package/src/org.ts
CHANGED
|
@@ -101,6 +101,14 @@ export const orgContract = {
|
|
|
101
101
|
createCheckout: oc
|
|
102
102
|
.input(z.object({ organizationId: z.string() }))
|
|
103
103
|
.output(z.object({ url: z.url() })),
|
|
104
|
+
createEmbeddedCheckout: oc
|
|
105
|
+
.input(z.object({ organizationId: z.string() }))
|
|
106
|
+
.output(
|
|
107
|
+
z.object({
|
|
108
|
+
clientSecret: z.string().min(1),
|
|
109
|
+
publishableKey: z.string().min(1),
|
|
110
|
+
}),
|
|
111
|
+
),
|
|
104
112
|
create: oc
|
|
105
113
|
.route({
|
|
106
114
|
method: "POST",
|