@automate.ax/api-contract 0.51.0 → 0.53.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 +14 -2
- package/dist/index.js +1 -0
- package/dist/org.d.ts +6 -0
- package/dist/org.js +6 -0
- package/dist/runtime.d.ts +2 -2
- package/dist/runtime.js +2 -2
- package/package.json +2 -2
- package/src/index.ts +1 -0
- package/src/org.ts +8 -0
- package/src/runtime.ts +2 -2
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;
|
|
@@ -1156,12 +1162,12 @@ export declare const contract: {
|
|
|
1156
1162
|
eventDependencyIds: import("zod").ZodArray<import("zod").ZodString>;
|
|
1157
1163
|
signalDependencyIds: import("zod").ZodArray<import("zod").ZodString>;
|
|
1158
1164
|
slot: import("zod").ZodNumber;
|
|
1159
|
-
continueFrom: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1160
1165
|
key: import("zod").ZodOptional<import("zod").ZodCustom<import("@automate.ax/codec").Encodable, import("@automate.ax/codec").Encodable>>;
|
|
1166
|
+
order: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
1161
1167
|
outcomeSeq: import("zod").ZodNumber;
|
|
1162
1168
|
streamName: import("zod").ZodString;
|
|
1163
1169
|
streamNames: import("zod").ZodArray<import("zod").ZodString>;
|
|
1164
|
-
|
|
1170
|
+
ttl: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>>;
|
|
1165
1171
|
}, import("zod/v4/core").$strip>>>;
|
|
1166
1172
|
settled: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
1167
1173
|
signalInvocations: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
@@ -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/dist/runtime.d.ts
CHANGED
|
@@ -228,12 +228,12 @@ export declare const runtimeContract: {
|
|
|
228
228
|
eventDependencyIds: z.ZodArray<z.ZodString>;
|
|
229
229
|
signalDependencyIds: z.ZodArray<z.ZodString>;
|
|
230
230
|
slot: z.ZodNumber;
|
|
231
|
-
continueFrom: z.ZodOptional<z.ZodString>;
|
|
232
231
|
key: z.ZodOptional<z.ZodCustom<import("@automate.ax/codec").Encodable, import("@automate.ax/codec").Encodable>>;
|
|
232
|
+
order: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
233
233
|
outcomeSeq: z.ZodNumber;
|
|
234
234
|
streamName: z.ZodString;
|
|
235
235
|
streamNames: z.ZodArray<z.ZodString>;
|
|
236
|
-
|
|
236
|
+
ttl: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
237
237
|
}, z.core.$strip>>>;
|
|
238
238
|
settled: z.ZodDefault<z.ZodBoolean>;
|
|
239
239
|
signalInvocations: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
package/dist/runtime.js
CHANGED
|
@@ -112,12 +112,12 @@ const SIGNAL_INVOCATION_DEPENDENCIES_SCHEMA = z.object({
|
|
|
112
112
|
slot: z.number().int().nonnegative(),
|
|
113
113
|
});
|
|
114
114
|
const CORRELATION_ENTRY_SCHEMA = SIGNAL_INVOCATION_DEPENDENCIES_SCHEMA.extend({
|
|
115
|
-
continueFrom: z.string().min(1).optional(),
|
|
116
115
|
key: encodableSchema,
|
|
116
|
+
order: z.string().min(1).array().min(2).optional(),
|
|
117
117
|
outcomeSeq: OUTCOME_SEQUENCE_SCHEMA,
|
|
118
118
|
streamName: z.string().min(1),
|
|
119
119
|
streamNames: z.string().min(1).array().min(2),
|
|
120
|
-
|
|
120
|
+
ttl: z.union([z.string().min(1), z.number().nonnegative()]).optional(),
|
|
121
121
|
});
|
|
122
122
|
const SIGNAL_INVOCATION_SCHEMA = z.union([
|
|
123
123
|
SIGNAL_INVOCATION_DEPENDENCIES_SCHEMA.extend({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@automate.ax/api-contract",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.53.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.53.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",
|
package/src/runtime.ts
CHANGED
|
@@ -129,12 +129,12 @@ const SIGNAL_INVOCATION_DEPENDENCIES_SCHEMA = z.object({
|
|
|
129
129
|
})
|
|
130
130
|
|
|
131
131
|
const CORRELATION_ENTRY_SCHEMA = SIGNAL_INVOCATION_DEPENDENCIES_SCHEMA.extend({
|
|
132
|
-
continueFrom: z.string().min(1).optional(),
|
|
133
132
|
key: encodableSchema,
|
|
133
|
+
order: z.string().min(1).array().min(2).optional(),
|
|
134
134
|
outcomeSeq: OUTCOME_SEQUENCE_SCHEMA,
|
|
135
135
|
streamName: z.string().min(1),
|
|
136
136
|
streamNames: z.string().min(1).array().min(2),
|
|
137
|
-
|
|
137
|
+
ttl: z.union([z.string().min(1), z.number().nonnegative()]).optional(),
|
|
138
138
|
})
|
|
139
139
|
|
|
140
140
|
const SIGNAL_INVOCATION_SCHEMA = z.union([
|