@automate.ax/api-contract 0.50.3 → 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/account.d.ts +0 -51
- package/dist/account.js +0 -4
- package/dist/authorization.d.ts +0 -204
- package/dist/authorization.js +0 -62
- package/dist/index.d.ts +12 -315
- package/dist/index.js +1 -2
- package/dist/org.d.ts +6 -0
- package/dist/org.js +6 -0
- package/package.json +2 -2
- package/src/account.ts +0 -4
- package/src/authorization.ts +0 -80
- package/src/index.ts +1 -7
- package/src/org.ts +8 -0
package/dist/account.d.ts
CHANGED
|
@@ -55,57 +55,6 @@ export declare const accountContract: {
|
|
|
55
55
|
serviceId: z.ZodString;
|
|
56
56
|
serviceSub: z.ZodString;
|
|
57
57
|
}, z.core.$strip>>;
|
|
58
|
-
services: z.ZodArray<z.ZodObject<{
|
|
59
|
-
connections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
60
|
-
description: z.ZodOptional<z.ZodString>;
|
|
61
|
-
id: z.ZodString;
|
|
62
|
-
name: z.ZodString;
|
|
63
|
-
type: z.ZodLiteral<"redirect">;
|
|
64
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
65
|
-
description: z.ZodOptional<z.ZodString>;
|
|
66
|
-
fields: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
67
|
-
description: z.ZodOptional<z.ZodString>;
|
|
68
|
-
label: z.ZodString;
|
|
69
|
-
name: z.ZodString;
|
|
70
|
-
required: z.ZodBoolean;
|
|
71
|
-
default: z.ZodOptional<z.ZodString>;
|
|
72
|
-
input: z.ZodEnum<{
|
|
73
|
-
email: "email";
|
|
74
|
-
text: "text";
|
|
75
|
-
url: "url";
|
|
76
|
-
}>;
|
|
77
|
-
placeholder: z.ZodOptional<z.ZodString>;
|
|
78
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
79
|
-
description: z.ZodOptional<z.ZodString>;
|
|
80
|
-
label: z.ZodString;
|
|
81
|
-
name: z.ZodString;
|
|
82
|
-
required: z.ZodBoolean;
|
|
83
|
-
input: z.ZodLiteral<"password">;
|
|
84
|
-
placeholder: z.ZodOptional<z.ZodString>;
|
|
85
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
86
|
-
description: z.ZodOptional<z.ZodString>;
|
|
87
|
-
label: z.ZodString;
|
|
88
|
-
name: z.ZodString;
|
|
89
|
-
required: z.ZodBoolean;
|
|
90
|
-
default: z.ZodOptional<z.ZodNumber>;
|
|
91
|
-
input: z.ZodLiteral<"number">;
|
|
92
|
-
placeholder: z.ZodOptional<z.ZodString>;
|
|
93
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
94
|
-
description: z.ZodOptional<z.ZodString>;
|
|
95
|
-
label: z.ZodString;
|
|
96
|
-
name: z.ZodString;
|
|
97
|
-
required: z.ZodBoolean;
|
|
98
|
-
default: z.ZodOptional<z.ZodBoolean>;
|
|
99
|
-
input: z.ZodLiteral<"boolean">;
|
|
100
|
-
}, z.core.$strip>], "input">>;
|
|
101
|
-
id: z.ZodString;
|
|
102
|
-
name: z.ZodString;
|
|
103
|
-
type: z.ZodLiteral<"form">;
|
|
104
|
-
}, z.core.$strip>], "type">>;
|
|
105
|
-
description: z.ZodOptional<z.ZodString>;
|
|
106
|
-
name: z.ZodString;
|
|
107
|
-
id: z.ZodString;
|
|
108
|
-
}, z.core.$strip>>;
|
|
109
58
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
110
59
|
submitCredentials: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
111
60
|
connectionId: z.ZodString;
|
package/dist/account.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { oc } from "@orpc/contract";
|
|
2
2
|
import { z } from "zod";
|
|
3
|
-
import { integrationServiceManifestSchema } from "./authorization.js";
|
|
4
3
|
export const integrationAccountOutputSchema = z.object({
|
|
5
4
|
checkedAt: z.date().nullable(),
|
|
6
5
|
connectionId: z.string().min(1),
|
|
@@ -43,9 +42,6 @@ export const accountContract = {
|
|
|
43
42
|
.output(z.object({ txid: z.number().int().nonnegative() })),
|
|
44
43
|
get: oc.input(z.object({ organizationId: z.string() })).output(z.object({
|
|
45
44
|
accounts: integrationAccountOutputSchema.array(),
|
|
46
|
-
services: integrationServiceManifestSchema
|
|
47
|
-
.extend({ id: z.string().min(1) })
|
|
48
|
-
.array(),
|
|
49
45
|
})),
|
|
50
46
|
submitCredentials: oc
|
|
51
47
|
.input(z.object({
|
package/dist/authorization.d.ts
CHANGED
|
@@ -1,102 +1,4 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const integrationConnectionManifestSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3
|
-
description: z.ZodOptional<z.ZodString>;
|
|
4
|
-
id: z.ZodString;
|
|
5
|
-
name: z.ZodString;
|
|
6
|
-
type: z.ZodLiteral<"redirect">;
|
|
7
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
8
|
-
description: z.ZodOptional<z.ZodString>;
|
|
9
|
-
fields: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
10
|
-
description: z.ZodOptional<z.ZodString>;
|
|
11
|
-
label: z.ZodString;
|
|
12
|
-
name: z.ZodString;
|
|
13
|
-
required: z.ZodBoolean;
|
|
14
|
-
default: z.ZodOptional<z.ZodString>;
|
|
15
|
-
input: z.ZodEnum<{
|
|
16
|
-
email: "email";
|
|
17
|
-
text: "text";
|
|
18
|
-
url: "url";
|
|
19
|
-
}>;
|
|
20
|
-
placeholder: z.ZodOptional<z.ZodString>;
|
|
21
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
22
|
-
description: z.ZodOptional<z.ZodString>;
|
|
23
|
-
label: z.ZodString;
|
|
24
|
-
name: z.ZodString;
|
|
25
|
-
required: z.ZodBoolean;
|
|
26
|
-
input: z.ZodLiteral<"password">;
|
|
27
|
-
placeholder: z.ZodOptional<z.ZodString>;
|
|
28
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
29
|
-
description: z.ZodOptional<z.ZodString>;
|
|
30
|
-
label: z.ZodString;
|
|
31
|
-
name: z.ZodString;
|
|
32
|
-
required: z.ZodBoolean;
|
|
33
|
-
default: z.ZodOptional<z.ZodNumber>;
|
|
34
|
-
input: z.ZodLiteral<"number">;
|
|
35
|
-
placeholder: z.ZodOptional<z.ZodString>;
|
|
36
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
37
|
-
description: z.ZodOptional<z.ZodString>;
|
|
38
|
-
label: z.ZodString;
|
|
39
|
-
name: z.ZodString;
|
|
40
|
-
required: z.ZodBoolean;
|
|
41
|
-
default: z.ZodOptional<z.ZodBoolean>;
|
|
42
|
-
input: z.ZodLiteral<"boolean">;
|
|
43
|
-
}, z.core.$strip>], "input">>;
|
|
44
|
-
id: z.ZodString;
|
|
45
|
-
name: z.ZodString;
|
|
46
|
-
type: z.ZodLiteral<"form">;
|
|
47
|
-
}, z.core.$strip>], "type">;
|
|
48
|
-
export declare const integrationServiceManifestSchema: z.ZodObject<{
|
|
49
|
-
connections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
50
|
-
description: z.ZodOptional<z.ZodString>;
|
|
51
|
-
id: z.ZodString;
|
|
52
|
-
name: z.ZodString;
|
|
53
|
-
type: z.ZodLiteral<"redirect">;
|
|
54
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
55
|
-
description: z.ZodOptional<z.ZodString>;
|
|
56
|
-
fields: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
57
|
-
description: z.ZodOptional<z.ZodString>;
|
|
58
|
-
label: z.ZodString;
|
|
59
|
-
name: z.ZodString;
|
|
60
|
-
required: z.ZodBoolean;
|
|
61
|
-
default: z.ZodOptional<z.ZodString>;
|
|
62
|
-
input: z.ZodEnum<{
|
|
63
|
-
email: "email";
|
|
64
|
-
text: "text";
|
|
65
|
-
url: "url";
|
|
66
|
-
}>;
|
|
67
|
-
placeholder: z.ZodOptional<z.ZodString>;
|
|
68
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
69
|
-
description: z.ZodOptional<z.ZodString>;
|
|
70
|
-
label: z.ZodString;
|
|
71
|
-
name: z.ZodString;
|
|
72
|
-
required: z.ZodBoolean;
|
|
73
|
-
input: z.ZodLiteral<"password">;
|
|
74
|
-
placeholder: z.ZodOptional<z.ZodString>;
|
|
75
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
76
|
-
description: z.ZodOptional<z.ZodString>;
|
|
77
|
-
label: z.ZodString;
|
|
78
|
-
name: z.ZodString;
|
|
79
|
-
required: z.ZodBoolean;
|
|
80
|
-
default: z.ZodOptional<z.ZodNumber>;
|
|
81
|
-
input: z.ZodLiteral<"number">;
|
|
82
|
-
placeholder: z.ZodOptional<z.ZodString>;
|
|
83
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
84
|
-
description: z.ZodOptional<z.ZodString>;
|
|
85
|
-
label: z.ZodString;
|
|
86
|
-
name: z.ZodString;
|
|
87
|
-
required: z.ZodBoolean;
|
|
88
|
-
default: z.ZodOptional<z.ZodBoolean>;
|
|
89
|
-
input: z.ZodLiteral<"boolean">;
|
|
90
|
-
}, z.core.$strip>], "input">>;
|
|
91
|
-
id: z.ZodString;
|
|
92
|
-
name: z.ZodString;
|
|
93
|
-
type: z.ZodLiteral<"form">;
|
|
94
|
-
}, z.core.$strip>], "type">>;
|
|
95
|
-
description: z.ZodOptional<z.ZodString>;
|
|
96
|
-
name: z.ZodString;
|
|
97
|
-
}, z.core.$strip>;
|
|
98
|
-
export type IntegrationServiceManifest = z.infer<typeof integrationServiceManifestSchema>;
|
|
99
|
-
export type IntegrationConnectionManifest = z.infer<typeof integrationConnectionManifestSchema>;
|
|
100
2
|
type ScopeRequirement = string | {
|
|
101
3
|
requirements: ScopeRequirement[];
|
|
102
4
|
type: "and" | "or";
|
|
@@ -145,112 +47,6 @@ export declare const authorizationContract: {
|
|
|
145
47
|
satisfied: z.ZodBoolean;
|
|
146
48
|
serviceId: z.ZodString;
|
|
147
49
|
}, z.core.$strip>>;
|
|
148
|
-
services: z.ZodArray<z.ZodObject<{
|
|
149
|
-
connections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
150
|
-
description: z.ZodOptional<z.ZodString>;
|
|
151
|
-
id: z.ZodString;
|
|
152
|
-
name: z.ZodString;
|
|
153
|
-
type: z.ZodLiteral<"redirect">;
|
|
154
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
155
|
-
description: z.ZodOptional<z.ZodString>;
|
|
156
|
-
fields: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
157
|
-
description: z.ZodOptional<z.ZodString>;
|
|
158
|
-
label: z.ZodString;
|
|
159
|
-
name: z.ZodString;
|
|
160
|
-
required: z.ZodBoolean;
|
|
161
|
-
default: z.ZodOptional<z.ZodString>;
|
|
162
|
-
input: z.ZodEnum<{
|
|
163
|
-
email: "email";
|
|
164
|
-
text: "text";
|
|
165
|
-
url: "url";
|
|
166
|
-
}>;
|
|
167
|
-
placeholder: z.ZodOptional<z.ZodString>;
|
|
168
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
169
|
-
description: z.ZodOptional<z.ZodString>;
|
|
170
|
-
label: z.ZodString;
|
|
171
|
-
name: z.ZodString;
|
|
172
|
-
required: z.ZodBoolean;
|
|
173
|
-
input: z.ZodLiteral<"password">;
|
|
174
|
-
placeholder: z.ZodOptional<z.ZodString>;
|
|
175
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
176
|
-
description: z.ZodOptional<z.ZodString>;
|
|
177
|
-
label: z.ZodString;
|
|
178
|
-
name: z.ZodString;
|
|
179
|
-
required: z.ZodBoolean;
|
|
180
|
-
default: z.ZodOptional<z.ZodNumber>;
|
|
181
|
-
input: z.ZodLiteral<"number">;
|
|
182
|
-
placeholder: z.ZodOptional<z.ZodString>;
|
|
183
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
184
|
-
description: z.ZodOptional<z.ZodString>;
|
|
185
|
-
label: z.ZodString;
|
|
186
|
-
name: z.ZodString;
|
|
187
|
-
required: z.ZodBoolean;
|
|
188
|
-
default: z.ZodOptional<z.ZodBoolean>;
|
|
189
|
-
input: z.ZodLiteral<"boolean">;
|
|
190
|
-
}, z.core.$strip>], "input">>;
|
|
191
|
-
id: z.ZodString;
|
|
192
|
-
name: z.ZodString;
|
|
193
|
-
type: z.ZodLiteral<"form">;
|
|
194
|
-
}, z.core.$strip>], "type">>;
|
|
195
|
-
description: z.ZodOptional<z.ZodString>;
|
|
196
|
-
name: z.ZodString;
|
|
197
|
-
id: z.ZodString;
|
|
198
|
-
}, z.core.$strip>>;
|
|
199
|
-
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
200
|
-
getServices: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
201
|
-
projectId: z.ZodString;
|
|
202
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
203
|
-
services: z.ZodArray<z.ZodObject<{
|
|
204
|
-
connections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
205
|
-
description: z.ZodOptional<z.ZodString>;
|
|
206
|
-
id: z.ZodString;
|
|
207
|
-
name: z.ZodString;
|
|
208
|
-
type: z.ZodLiteral<"redirect">;
|
|
209
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
210
|
-
description: z.ZodOptional<z.ZodString>;
|
|
211
|
-
fields: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
212
|
-
description: z.ZodOptional<z.ZodString>;
|
|
213
|
-
label: z.ZodString;
|
|
214
|
-
name: z.ZodString;
|
|
215
|
-
required: z.ZodBoolean;
|
|
216
|
-
default: z.ZodOptional<z.ZodString>;
|
|
217
|
-
input: z.ZodEnum<{
|
|
218
|
-
email: "email";
|
|
219
|
-
text: "text";
|
|
220
|
-
url: "url";
|
|
221
|
-
}>;
|
|
222
|
-
placeholder: z.ZodOptional<z.ZodString>;
|
|
223
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
224
|
-
description: z.ZodOptional<z.ZodString>;
|
|
225
|
-
label: z.ZodString;
|
|
226
|
-
name: z.ZodString;
|
|
227
|
-
required: z.ZodBoolean;
|
|
228
|
-
input: z.ZodLiteral<"password">;
|
|
229
|
-
placeholder: z.ZodOptional<z.ZodString>;
|
|
230
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
231
|
-
description: z.ZodOptional<z.ZodString>;
|
|
232
|
-
label: z.ZodString;
|
|
233
|
-
name: z.ZodString;
|
|
234
|
-
required: z.ZodBoolean;
|
|
235
|
-
default: z.ZodOptional<z.ZodNumber>;
|
|
236
|
-
input: z.ZodLiteral<"number">;
|
|
237
|
-
placeholder: z.ZodOptional<z.ZodString>;
|
|
238
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
239
|
-
description: z.ZodOptional<z.ZodString>;
|
|
240
|
-
label: z.ZodString;
|
|
241
|
-
name: z.ZodString;
|
|
242
|
-
required: z.ZodBoolean;
|
|
243
|
-
default: z.ZodOptional<z.ZodBoolean>;
|
|
244
|
-
input: z.ZodLiteral<"boolean">;
|
|
245
|
-
}, z.core.$strip>], "input">>;
|
|
246
|
-
id: z.ZodString;
|
|
247
|
-
name: z.ZodString;
|
|
248
|
-
type: z.ZodLiteral<"form">;
|
|
249
|
-
}, z.core.$strip>], "type">>;
|
|
250
|
-
description: z.ZodOptional<z.ZodString>;
|
|
251
|
-
name: z.ZodString;
|
|
252
|
-
id: z.ZodString;
|
|
253
|
-
}, z.core.$strip>>;
|
|
254
50
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
255
51
|
submitCredentials: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
256
52
|
binding: z.ZodString;
|
package/dist/authorization.js
CHANGED
|
@@ -1,51 +1,5 @@
|
|
|
1
1
|
import { oc } from "@orpc/contract";
|
|
2
2
|
import { z } from "zod";
|
|
3
|
-
const integrationFormFieldBaseSchema = z.object({
|
|
4
|
-
description: z.string().optional(),
|
|
5
|
-
label: z.string().min(1),
|
|
6
|
-
name: z.string().min(1),
|
|
7
|
-
required: z.boolean(),
|
|
8
|
-
});
|
|
9
|
-
const INTEGRATION_FORM_FIELD_SCHEMA = z.discriminatedUnion("input", [
|
|
10
|
-
integrationFormFieldBaseSchema.extend({
|
|
11
|
-
default: z.string().optional(),
|
|
12
|
-
input: z.enum(["email", "text", "url"]),
|
|
13
|
-
placeholder: z.string().optional(),
|
|
14
|
-
}),
|
|
15
|
-
integrationFormFieldBaseSchema.extend({
|
|
16
|
-
input: z.literal("password"),
|
|
17
|
-
placeholder: z.string().optional(),
|
|
18
|
-
}),
|
|
19
|
-
integrationFormFieldBaseSchema.extend({
|
|
20
|
-
default: z.number().optional(),
|
|
21
|
-
input: z.literal("number"),
|
|
22
|
-
placeholder: z.string().optional(),
|
|
23
|
-
}),
|
|
24
|
-
integrationFormFieldBaseSchema.extend({
|
|
25
|
-
default: z.boolean().optional(),
|
|
26
|
-
input: z.literal("boolean"),
|
|
27
|
-
}),
|
|
28
|
-
]);
|
|
29
|
-
export const integrationConnectionManifestSchema = z.discriminatedUnion("type", [
|
|
30
|
-
z.object({
|
|
31
|
-
description: z.string().optional(),
|
|
32
|
-
id: z.string().min(1),
|
|
33
|
-
name: z.string().min(1),
|
|
34
|
-
type: z.literal("redirect"),
|
|
35
|
-
}),
|
|
36
|
-
z.object({
|
|
37
|
-
description: z.string().optional(),
|
|
38
|
-
fields: INTEGRATION_FORM_FIELD_SCHEMA.array().min(1),
|
|
39
|
-
id: z.string().min(1),
|
|
40
|
-
name: z.string().min(1),
|
|
41
|
-
type: z.literal("form"),
|
|
42
|
-
}),
|
|
43
|
-
]);
|
|
44
|
-
export const integrationServiceManifestSchema = z.object({
|
|
45
|
-
connections: integrationConnectionManifestSchema.array().min(1),
|
|
46
|
-
description: z.string().optional(),
|
|
47
|
-
name: z.string().min(1),
|
|
48
|
-
});
|
|
49
3
|
const SCOPE_REQUIREMENT_SCHEMA = z.lazy(() => z.union([
|
|
50
4
|
z.string(),
|
|
51
5
|
z.strictObject({
|
|
@@ -117,22 +71,6 @@ export const authorizationContract = {
|
|
|
117
71
|
serviceId: z.string().min(1),
|
|
118
72
|
})
|
|
119
73
|
.array(),
|
|
120
|
-
services: integrationServiceManifestSchema
|
|
121
|
-
.extend({
|
|
122
|
-
id: z.string().min(1),
|
|
123
|
-
})
|
|
124
|
-
.array(),
|
|
125
|
-
})),
|
|
126
|
-
getServices: oc
|
|
127
|
-
.input(z.object({
|
|
128
|
-
projectId: z.string(),
|
|
129
|
-
}))
|
|
130
|
-
.output(z.object({
|
|
131
|
-
services: integrationServiceManifestSchema
|
|
132
|
-
.extend({
|
|
133
|
-
id: z.string().min(1),
|
|
134
|
-
})
|
|
135
|
-
.array(),
|
|
136
74
|
})),
|
|
137
75
|
submitCredentials: oc
|
|
138
76
|
.input(z.object({
|
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,6 @@ export { integrationAccountOutputSchema } from "./account.js";
|
|
|
4
4
|
export { AUTOMATION_INVOCATION_DEFAULT_ENTRYPOINT, AUTOMATION_INVOCATION_RESERVED_ENTRYPOINT_PREFIX, DEFAULT_GATEWAY_MODEL_ID, automationInvocationInputSchema, automationInvocationOutputSchema, automationInvocationScheduleSchema, generationInputSchema, generationResultSchema, runtimeContract, type GenerationInput, type GenerationResult, type RuntimeGenerationInput, } from "./runtime.js";
|
|
5
5
|
export type { GatewayModelId } from "@ai-sdk/gateway";
|
|
6
6
|
export { createdOrganizationApiKeyOutputSchema, organizationApiKeyOutputSchema, } from "./api-key.js";
|
|
7
|
-
export { integrationConnectionManifestSchema, integrationServiceManifestSchema, type IntegrationConnectionManifest, type IntegrationServiceManifest, } from "./authorization.js";
|
|
8
7
|
export { activeSubscriptionOutputSchema, createdInvitationOutputSchema, organizationDetailsOutputSchema, organizationInvitationOutputSchema, organizationMemberOutputSchema, organizationPhoneNumberOutputSchema, organizationProjectOutputSchema, organizationRoleSchema, organizationSummaryOutputSchema, publicOrganizationOutputSchema, } from "./org.js";
|
|
9
8
|
export { projectOutputSchema } from "./project.js";
|
|
10
9
|
export { e164PhoneNumberSchema, reasonableNameSchema } from "./schemas.js";
|
|
@@ -346,57 +345,6 @@ export declare const firstPartyContract: {
|
|
|
346
345
|
serviceId: import("zod").ZodString;
|
|
347
346
|
serviceSub: import("zod").ZodString;
|
|
348
347
|
}, import("zod/v4/core").$strip>>;
|
|
349
|
-
services: import("zod").ZodArray<import("zod").ZodObject<{
|
|
350
|
-
connections: import("zod").ZodArray<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
351
|
-
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
352
|
-
id: import("zod").ZodString;
|
|
353
|
-
name: import("zod").ZodString;
|
|
354
|
-
type: import("zod").ZodLiteral<"redirect">;
|
|
355
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
356
|
-
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
357
|
-
fields: import("zod").ZodArray<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
358
|
-
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
359
|
-
label: import("zod").ZodString;
|
|
360
|
-
name: import("zod").ZodString;
|
|
361
|
-
required: import("zod").ZodBoolean;
|
|
362
|
-
default: import("zod").ZodOptional<import("zod").ZodString>;
|
|
363
|
-
input: import("zod").ZodEnum<{
|
|
364
|
-
email: "email";
|
|
365
|
-
text: "text";
|
|
366
|
-
url: "url";
|
|
367
|
-
}>;
|
|
368
|
-
placeholder: import("zod").ZodOptional<import("zod").ZodString>;
|
|
369
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
370
|
-
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
371
|
-
label: import("zod").ZodString;
|
|
372
|
-
name: import("zod").ZodString;
|
|
373
|
-
required: import("zod").ZodBoolean;
|
|
374
|
-
input: import("zod").ZodLiteral<"password">;
|
|
375
|
-
placeholder: import("zod").ZodOptional<import("zod").ZodString>;
|
|
376
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
377
|
-
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
378
|
-
label: import("zod").ZodString;
|
|
379
|
-
name: import("zod").ZodString;
|
|
380
|
-
required: import("zod").ZodBoolean;
|
|
381
|
-
default: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
382
|
-
input: import("zod").ZodLiteral<"number">;
|
|
383
|
-
placeholder: import("zod").ZodOptional<import("zod").ZodString>;
|
|
384
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
385
|
-
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
386
|
-
label: import("zod").ZodString;
|
|
387
|
-
name: import("zod").ZodString;
|
|
388
|
-
required: import("zod").ZodBoolean;
|
|
389
|
-
default: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
390
|
-
input: import("zod").ZodLiteral<"boolean">;
|
|
391
|
-
}, import("zod/v4/core").$strip>], "input">>;
|
|
392
|
-
id: import("zod").ZodString;
|
|
393
|
-
name: import("zod").ZodString;
|
|
394
|
-
type: import("zod").ZodLiteral<"form">;
|
|
395
|
-
}, import("zod/v4/core").$strip>], "type">>;
|
|
396
|
-
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
397
|
-
name: import("zod").ZodString;
|
|
398
|
-
id: import("zod").ZodString;
|
|
399
|
-
}, import("zod/v4/core").$strip>>;
|
|
400
348
|
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
401
349
|
submitCredentials: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
402
350
|
connectionId: import("zod").ZodString;
|
|
@@ -548,112 +496,6 @@ export declare const firstPartyContract: {
|
|
|
548
496
|
satisfied: import("zod").ZodBoolean;
|
|
549
497
|
serviceId: import("zod").ZodString;
|
|
550
498
|
}, import("zod/v4/core").$strip>>;
|
|
551
|
-
services: import("zod").ZodArray<import("zod").ZodObject<{
|
|
552
|
-
connections: import("zod").ZodArray<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
553
|
-
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
554
|
-
id: import("zod").ZodString;
|
|
555
|
-
name: import("zod").ZodString;
|
|
556
|
-
type: import("zod").ZodLiteral<"redirect">;
|
|
557
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
558
|
-
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
559
|
-
fields: import("zod").ZodArray<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
560
|
-
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
561
|
-
label: import("zod").ZodString;
|
|
562
|
-
name: import("zod").ZodString;
|
|
563
|
-
required: import("zod").ZodBoolean;
|
|
564
|
-
default: import("zod").ZodOptional<import("zod").ZodString>;
|
|
565
|
-
input: import("zod").ZodEnum<{
|
|
566
|
-
email: "email";
|
|
567
|
-
text: "text";
|
|
568
|
-
url: "url";
|
|
569
|
-
}>;
|
|
570
|
-
placeholder: import("zod").ZodOptional<import("zod").ZodString>;
|
|
571
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
572
|
-
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
573
|
-
label: import("zod").ZodString;
|
|
574
|
-
name: import("zod").ZodString;
|
|
575
|
-
required: import("zod").ZodBoolean;
|
|
576
|
-
input: import("zod").ZodLiteral<"password">;
|
|
577
|
-
placeholder: import("zod").ZodOptional<import("zod").ZodString>;
|
|
578
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
579
|
-
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
580
|
-
label: import("zod").ZodString;
|
|
581
|
-
name: import("zod").ZodString;
|
|
582
|
-
required: import("zod").ZodBoolean;
|
|
583
|
-
default: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
584
|
-
input: import("zod").ZodLiteral<"number">;
|
|
585
|
-
placeholder: import("zod").ZodOptional<import("zod").ZodString>;
|
|
586
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
587
|
-
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
588
|
-
label: import("zod").ZodString;
|
|
589
|
-
name: import("zod").ZodString;
|
|
590
|
-
required: import("zod").ZodBoolean;
|
|
591
|
-
default: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
592
|
-
input: import("zod").ZodLiteral<"boolean">;
|
|
593
|
-
}, import("zod/v4/core").$strip>], "input">>;
|
|
594
|
-
id: import("zod").ZodString;
|
|
595
|
-
name: import("zod").ZodString;
|
|
596
|
-
type: import("zod").ZodLiteral<"form">;
|
|
597
|
-
}, import("zod/v4/core").$strip>], "type">>;
|
|
598
|
-
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
599
|
-
name: import("zod").ZodString;
|
|
600
|
-
id: import("zod").ZodString;
|
|
601
|
-
}, import("zod/v4/core").$strip>>;
|
|
602
|
-
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
603
|
-
getServices: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
604
|
-
projectId: import("zod").ZodString;
|
|
605
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
606
|
-
services: import("zod").ZodArray<import("zod").ZodObject<{
|
|
607
|
-
connections: import("zod").ZodArray<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
608
|
-
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
609
|
-
id: import("zod").ZodString;
|
|
610
|
-
name: import("zod").ZodString;
|
|
611
|
-
type: import("zod").ZodLiteral<"redirect">;
|
|
612
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
613
|
-
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
614
|
-
fields: import("zod").ZodArray<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
615
|
-
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
616
|
-
label: import("zod").ZodString;
|
|
617
|
-
name: import("zod").ZodString;
|
|
618
|
-
required: import("zod").ZodBoolean;
|
|
619
|
-
default: import("zod").ZodOptional<import("zod").ZodString>;
|
|
620
|
-
input: import("zod").ZodEnum<{
|
|
621
|
-
email: "email";
|
|
622
|
-
text: "text";
|
|
623
|
-
url: "url";
|
|
624
|
-
}>;
|
|
625
|
-
placeholder: import("zod").ZodOptional<import("zod").ZodString>;
|
|
626
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
627
|
-
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
628
|
-
label: import("zod").ZodString;
|
|
629
|
-
name: import("zod").ZodString;
|
|
630
|
-
required: import("zod").ZodBoolean;
|
|
631
|
-
input: import("zod").ZodLiteral<"password">;
|
|
632
|
-
placeholder: import("zod").ZodOptional<import("zod").ZodString>;
|
|
633
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
634
|
-
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
635
|
-
label: import("zod").ZodString;
|
|
636
|
-
name: import("zod").ZodString;
|
|
637
|
-
required: import("zod").ZodBoolean;
|
|
638
|
-
default: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
639
|
-
input: import("zod").ZodLiteral<"number">;
|
|
640
|
-
placeholder: import("zod").ZodOptional<import("zod").ZodString>;
|
|
641
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
642
|
-
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
643
|
-
label: import("zod").ZodString;
|
|
644
|
-
name: import("zod").ZodString;
|
|
645
|
-
required: import("zod").ZodBoolean;
|
|
646
|
-
default: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
647
|
-
input: import("zod").ZodLiteral<"boolean">;
|
|
648
|
-
}, import("zod/v4/core").$strip>], "input">>;
|
|
649
|
-
id: import("zod").ZodString;
|
|
650
|
-
name: import("zod").ZodString;
|
|
651
|
-
type: import("zod").ZodLiteral<"form">;
|
|
652
|
-
}, import("zod/v4/core").$strip>], "type">>;
|
|
653
|
-
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
654
|
-
name: import("zod").ZodString;
|
|
655
|
-
id: import("zod").ZodString;
|
|
656
|
-
}, import("zod/v4/core").$strip>>;
|
|
657
499
|
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
658
500
|
selectAccount: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
659
501
|
accountId: import("zod").ZodString;
|
|
@@ -797,6 +639,12 @@ export declare const firstPartyContract: {
|
|
|
797
639
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
798
640
|
url: import("zod").ZodURL;
|
|
799
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>>;
|
|
800
648
|
removePhoneNumber: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
801
649
|
organizationId: import("zod").ZodString;
|
|
802
650
|
phoneNumberId: import("zod").ZodString;
|
|
@@ -1157,112 +1005,6 @@ export declare const contract: {
|
|
|
1157
1005
|
satisfied: import("zod").ZodBoolean;
|
|
1158
1006
|
serviceId: import("zod").ZodString;
|
|
1159
1007
|
}, import("zod/v4/core").$strip>>;
|
|
1160
|
-
services: import("zod").ZodArray<import("zod").ZodObject<{
|
|
1161
|
-
connections: import("zod").ZodArray<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
1162
|
-
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1163
|
-
id: import("zod").ZodString;
|
|
1164
|
-
name: import("zod").ZodString;
|
|
1165
|
-
type: import("zod").ZodLiteral<"redirect">;
|
|
1166
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1167
|
-
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1168
|
-
fields: import("zod").ZodArray<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
1169
|
-
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1170
|
-
label: import("zod").ZodString;
|
|
1171
|
-
name: import("zod").ZodString;
|
|
1172
|
-
required: import("zod").ZodBoolean;
|
|
1173
|
-
default: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1174
|
-
input: import("zod").ZodEnum<{
|
|
1175
|
-
email: "email";
|
|
1176
|
-
text: "text";
|
|
1177
|
-
url: "url";
|
|
1178
|
-
}>;
|
|
1179
|
-
placeholder: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1180
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1181
|
-
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1182
|
-
label: import("zod").ZodString;
|
|
1183
|
-
name: import("zod").ZodString;
|
|
1184
|
-
required: import("zod").ZodBoolean;
|
|
1185
|
-
input: import("zod").ZodLiteral<"password">;
|
|
1186
|
-
placeholder: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1187
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1188
|
-
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1189
|
-
label: import("zod").ZodString;
|
|
1190
|
-
name: import("zod").ZodString;
|
|
1191
|
-
required: import("zod").ZodBoolean;
|
|
1192
|
-
default: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1193
|
-
input: import("zod").ZodLiteral<"number">;
|
|
1194
|
-
placeholder: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1195
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1196
|
-
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1197
|
-
label: import("zod").ZodString;
|
|
1198
|
-
name: import("zod").ZodString;
|
|
1199
|
-
required: import("zod").ZodBoolean;
|
|
1200
|
-
default: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
1201
|
-
input: import("zod").ZodLiteral<"boolean">;
|
|
1202
|
-
}, import("zod/v4/core").$strip>], "input">>;
|
|
1203
|
-
id: import("zod").ZodString;
|
|
1204
|
-
name: import("zod").ZodString;
|
|
1205
|
-
type: import("zod").ZodLiteral<"form">;
|
|
1206
|
-
}, import("zod/v4/core").$strip>], "type">>;
|
|
1207
|
-
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1208
|
-
name: import("zod").ZodString;
|
|
1209
|
-
id: import("zod").ZodString;
|
|
1210
|
-
}, import("zod/v4/core").$strip>>;
|
|
1211
|
-
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
1212
|
-
getServices: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
1213
|
-
projectId: import("zod").ZodString;
|
|
1214
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1215
|
-
services: import("zod").ZodArray<import("zod").ZodObject<{
|
|
1216
|
-
connections: import("zod").ZodArray<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
1217
|
-
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1218
|
-
id: import("zod").ZodString;
|
|
1219
|
-
name: import("zod").ZodString;
|
|
1220
|
-
type: import("zod").ZodLiteral<"redirect">;
|
|
1221
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1222
|
-
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1223
|
-
fields: import("zod").ZodArray<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
1224
|
-
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1225
|
-
label: import("zod").ZodString;
|
|
1226
|
-
name: import("zod").ZodString;
|
|
1227
|
-
required: import("zod").ZodBoolean;
|
|
1228
|
-
default: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1229
|
-
input: import("zod").ZodEnum<{
|
|
1230
|
-
email: "email";
|
|
1231
|
-
text: "text";
|
|
1232
|
-
url: "url";
|
|
1233
|
-
}>;
|
|
1234
|
-
placeholder: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1235
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1236
|
-
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1237
|
-
label: import("zod").ZodString;
|
|
1238
|
-
name: import("zod").ZodString;
|
|
1239
|
-
required: import("zod").ZodBoolean;
|
|
1240
|
-
input: import("zod").ZodLiteral<"password">;
|
|
1241
|
-
placeholder: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1242
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1243
|
-
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1244
|
-
label: import("zod").ZodString;
|
|
1245
|
-
name: import("zod").ZodString;
|
|
1246
|
-
required: import("zod").ZodBoolean;
|
|
1247
|
-
default: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1248
|
-
input: import("zod").ZodLiteral<"number">;
|
|
1249
|
-
placeholder: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1250
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1251
|
-
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1252
|
-
label: import("zod").ZodString;
|
|
1253
|
-
name: import("zod").ZodString;
|
|
1254
|
-
required: import("zod").ZodBoolean;
|
|
1255
|
-
default: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
1256
|
-
input: import("zod").ZodLiteral<"boolean">;
|
|
1257
|
-
}, import("zod/v4/core").$strip>], "input">>;
|
|
1258
|
-
id: import("zod").ZodString;
|
|
1259
|
-
name: import("zod").ZodString;
|
|
1260
|
-
type: import("zod").ZodLiteral<"form">;
|
|
1261
|
-
}, import("zod/v4/core").$strip>], "type">>;
|
|
1262
|
-
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1263
|
-
name: import("zod").ZodString;
|
|
1264
|
-
id: import("zod").ZodString;
|
|
1265
|
-
}, import("zod/v4/core").$strip>>;
|
|
1266
1008
|
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
1267
1009
|
selectAccount: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
1268
1010
|
accountId: import("zod").ZodString;
|
|
@@ -1939,57 +1681,6 @@ export declare const contract: {
|
|
|
1939
1681
|
serviceId: import("zod").ZodString;
|
|
1940
1682
|
serviceSub: import("zod").ZodString;
|
|
1941
1683
|
}, import("zod/v4/core").$strip>>;
|
|
1942
|
-
services: import("zod").ZodArray<import("zod").ZodObject<{
|
|
1943
|
-
connections: import("zod").ZodArray<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
1944
|
-
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1945
|
-
id: import("zod").ZodString;
|
|
1946
|
-
name: import("zod").ZodString;
|
|
1947
|
-
type: import("zod").ZodLiteral<"redirect">;
|
|
1948
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1949
|
-
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1950
|
-
fields: import("zod").ZodArray<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
1951
|
-
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1952
|
-
label: import("zod").ZodString;
|
|
1953
|
-
name: import("zod").ZodString;
|
|
1954
|
-
required: import("zod").ZodBoolean;
|
|
1955
|
-
default: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1956
|
-
input: import("zod").ZodEnum<{
|
|
1957
|
-
email: "email";
|
|
1958
|
-
text: "text";
|
|
1959
|
-
url: "url";
|
|
1960
|
-
}>;
|
|
1961
|
-
placeholder: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1962
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1963
|
-
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1964
|
-
label: import("zod").ZodString;
|
|
1965
|
-
name: import("zod").ZodString;
|
|
1966
|
-
required: import("zod").ZodBoolean;
|
|
1967
|
-
input: import("zod").ZodLiteral<"password">;
|
|
1968
|
-
placeholder: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1969
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1970
|
-
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1971
|
-
label: import("zod").ZodString;
|
|
1972
|
-
name: import("zod").ZodString;
|
|
1973
|
-
required: import("zod").ZodBoolean;
|
|
1974
|
-
default: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1975
|
-
input: import("zod").ZodLiteral<"number">;
|
|
1976
|
-
placeholder: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1977
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1978
|
-
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1979
|
-
label: import("zod").ZodString;
|
|
1980
|
-
name: import("zod").ZodString;
|
|
1981
|
-
required: import("zod").ZodBoolean;
|
|
1982
|
-
default: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
1983
|
-
input: import("zod").ZodLiteral<"boolean">;
|
|
1984
|
-
}, import("zod/v4/core").$strip>], "input">>;
|
|
1985
|
-
id: import("zod").ZodString;
|
|
1986
|
-
name: import("zod").ZodString;
|
|
1987
|
-
type: import("zod").ZodLiteral<"form">;
|
|
1988
|
-
}, import("zod/v4/core").$strip>], "type">>;
|
|
1989
|
-
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1990
|
-
name: import("zod").ZodString;
|
|
1991
|
-
id: import("zod").ZodString;
|
|
1992
|
-
}, import("zod/v4/core").$strip>>;
|
|
1993
1684
|
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
1994
1685
|
submitCredentials: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
1995
1686
|
connectionId: import("zod").ZodString;
|
|
@@ -2227,6 +1918,12 @@ export declare const contract: {
|
|
|
2227
1918
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
2228
1919
|
url: import("zod").ZodURL;
|
|
2229
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>>;
|
|
2230
1927
|
removePhoneNumber: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
2231
1928
|
organizationId: import("zod").ZodString;
|
|
2232
1929
|
phoneNumberId: import("zod").ZodString;
|
package/dist/index.js
CHANGED
|
@@ -13,7 +13,6 @@ export { AUTOMATION_SDK_VERSION, deploymentTriggerInfoSchema, getHttpTriggerEndp
|
|
|
13
13
|
export { integrationAccountOutputSchema } from "./account.js";
|
|
14
14
|
export { AUTOMATION_INVOCATION_DEFAULT_ENTRYPOINT, AUTOMATION_INVOCATION_RESERVED_ENTRYPOINT_PREFIX, DEFAULT_GATEWAY_MODEL_ID, automationInvocationInputSchema, automationInvocationOutputSchema, automationInvocationScheduleSchema, generationInputSchema, generationResultSchema, runtimeContract, } from "./runtime.js";
|
|
15
15
|
export { createdOrganizationApiKeyOutputSchema, organizationApiKeyOutputSchema, } from "./api-key.js";
|
|
16
|
-
export { integrationConnectionManifestSchema, integrationServiceManifestSchema, } from "./authorization.js";
|
|
17
16
|
export { activeSubscriptionOutputSchema, createdInvitationOutputSchema, organizationDetailsOutputSchema, organizationInvitationOutputSchema, organizationMemberOutputSchema, organizationPhoneNumberOutputSchema, organizationProjectOutputSchema, organizationRoleSchema, organizationSummaryOutputSchema, publicOrganizationOutputSchema, } from "./org.js";
|
|
18
17
|
export { projectOutputSchema } from "./project.js";
|
|
19
18
|
export { e164PhoneNumberSchema, reasonableNameSchema } from "./schemas.js";
|
|
@@ -51,7 +50,6 @@ export const firstPartyContract = {
|
|
|
51
50
|
authorization: {
|
|
52
51
|
beginConnection: authorizationContract.beginConnection,
|
|
53
52
|
get: authorizationContract.get,
|
|
54
|
-
getServices: authorizationContract.getServices,
|
|
55
53
|
selectAccount: authorizationContract.selectAccount,
|
|
56
54
|
submitCredentials: authorizationContract.submitCredentials,
|
|
57
55
|
},
|
|
@@ -61,6 +59,7 @@ export const firstPartyContract = {
|
|
|
61
59
|
canInvite: orgContract.canInvite,
|
|
62
60
|
createBillingPortal: orgContract.createBillingPortal,
|
|
63
61
|
createCheckout: orgContract.createCheckout,
|
|
62
|
+
createEmbeddedCheckout: orgContract.createEmbeddedCheckout,
|
|
64
63
|
removePhoneNumber: orgContract.removePhoneNumber,
|
|
65
64
|
requestPhoneNumberVerification: orgContract.requestPhoneNumberVerification,
|
|
66
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/account.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { oc } from "@orpc/contract"
|
|
2
2
|
import { z } from "zod"
|
|
3
|
-
import { integrationServiceManifestSchema } from "./authorization"
|
|
4
3
|
|
|
5
4
|
export const integrationAccountOutputSchema = z.object({
|
|
6
5
|
checkedAt: z.date().nullable(),
|
|
@@ -54,9 +53,6 @@ export const accountContract = {
|
|
|
54
53
|
get: oc.input(z.object({ organizationId: z.string() })).output(
|
|
55
54
|
z.object({
|
|
56
55
|
accounts: integrationAccountOutputSchema.array(),
|
|
57
|
-
services: integrationServiceManifestSchema
|
|
58
|
-
.extend({ id: z.string().min(1) })
|
|
59
|
-
.array(),
|
|
60
56
|
}),
|
|
61
57
|
),
|
|
62
58
|
submitCredentials: oc
|
package/src/authorization.ts
CHANGED
|
@@ -1,66 +1,6 @@
|
|
|
1
1
|
import { oc } from "@orpc/contract"
|
|
2
2
|
import { z } from "zod"
|
|
3
3
|
|
|
4
|
-
const integrationFormFieldBaseSchema = z.object({
|
|
5
|
-
description: z.string().optional(),
|
|
6
|
-
label: z.string().min(1),
|
|
7
|
-
name: z.string().min(1),
|
|
8
|
-
required: z.boolean(),
|
|
9
|
-
})
|
|
10
|
-
|
|
11
|
-
const INTEGRATION_FORM_FIELD_SCHEMA = z.discriminatedUnion("input", [
|
|
12
|
-
integrationFormFieldBaseSchema.extend({
|
|
13
|
-
default: z.string().optional(),
|
|
14
|
-
input: z.enum(["email", "text", "url"]),
|
|
15
|
-
placeholder: z.string().optional(),
|
|
16
|
-
}),
|
|
17
|
-
integrationFormFieldBaseSchema.extend({
|
|
18
|
-
input: z.literal("password"),
|
|
19
|
-
placeholder: z.string().optional(),
|
|
20
|
-
}),
|
|
21
|
-
integrationFormFieldBaseSchema.extend({
|
|
22
|
-
default: z.number().optional(),
|
|
23
|
-
input: z.literal("number"),
|
|
24
|
-
placeholder: z.string().optional(),
|
|
25
|
-
}),
|
|
26
|
-
integrationFormFieldBaseSchema.extend({
|
|
27
|
-
default: z.boolean().optional(),
|
|
28
|
-
input: z.literal("boolean"),
|
|
29
|
-
}),
|
|
30
|
-
])
|
|
31
|
-
|
|
32
|
-
export const integrationConnectionManifestSchema = z.discriminatedUnion(
|
|
33
|
-
"type",
|
|
34
|
-
[
|
|
35
|
-
z.object({
|
|
36
|
-
description: z.string().optional(),
|
|
37
|
-
id: z.string().min(1),
|
|
38
|
-
name: z.string().min(1),
|
|
39
|
-
type: z.literal("redirect"),
|
|
40
|
-
}),
|
|
41
|
-
z.object({
|
|
42
|
-
description: z.string().optional(),
|
|
43
|
-
fields: INTEGRATION_FORM_FIELD_SCHEMA.array().min(1),
|
|
44
|
-
id: z.string().min(1),
|
|
45
|
-
name: z.string().min(1),
|
|
46
|
-
type: z.literal("form"),
|
|
47
|
-
}),
|
|
48
|
-
],
|
|
49
|
-
)
|
|
50
|
-
|
|
51
|
-
export const integrationServiceManifestSchema = z.object({
|
|
52
|
-
connections: integrationConnectionManifestSchema.array().min(1),
|
|
53
|
-
description: z.string().optional(),
|
|
54
|
-
name: z.string().min(1),
|
|
55
|
-
})
|
|
56
|
-
|
|
57
|
-
export type IntegrationServiceManifest = z.infer<
|
|
58
|
-
typeof integrationServiceManifestSchema
|
|
59
|
-
>
|
|
60
|
-
export type IntegrationConnectionManifest = z.infer<
|
|
61
|
-
typeof integrationConnectionManifestSchema
|
|
62
|
-
>
|
|
63
|
-
|
|
64
4
|
type ScopeRequirement =
|
|
65
5
|
| string
|
|
66
6
|
| {
|
|
@@ -148,26 +88,6 @@ export const authorizationContract = {
|
|
|
148
88
|
serviceId: z.string().min(1),
|
|
149
89
|
})
|
|
150
90
|
.array(),
|
|
151
|
-
services: integrationServiceManifestSchema
|
|
152
|
-
.extend({
|
|
153
|
-
id: z.string().min(1),
|
|
154
|
-
})
|
|
155
|
-
.array(),
|
|
156
|
-
}),
|
|
157
|
-
),
|
|
158
|
-
getServices: oc
|
|
159
|
-
.input(
|
|
160
|
-
z.object({
|
|
161
|
-
projectId: z.string(),
|
|
162
|
-
}),
|
|
163
|
-
)
|
|
164
|
-
.output(
|
|
165
|
-
z.object({
|
|
166
|
-
services: integrationServiceManifestSchema
|
|
167
|
-
.extend({
|
|
168
|
-
id: z.string().min(1),
|
|
169
|
-
})
|
|
170
|
-
.array(),
|
|
171
91
|
}),
|
|
172
92
|
),
|
|
173
93
|
submitCredentials: oc
|
package/src/index.ts
CHANGED
|
@@ -39,12 +39,6 @@ export {
|
|
|
39
39
|
createdOrganizationApiKeyOutputSchema,
|
|
40
40
|
organizationApiKeyOutputSchema,
|
|
41
41
|
} from "./api-key"
|
|
42
|
-
export {
|
|
43
|
-
integrationConnectionManifestSchema,
|
|
44
|
-
integrationServiceManifestSchema,
|
|
45
|
-
type IntegrationConnectionManifest,
|
|
46
|
-
type IntegrationServiceManifest,
|
|
47
|
-
} from "./authorization"
|
|
48
42
|
export {
|
|
49
43
|
activeSubscriptionOutputSchema,
|
|
50
44
|
createdInvitationOutputSchema,
|
|
@@ -100,7 +94,6 @@ export const firstPartyContract = {
|
|
|
100
94
|
authorization: {
|
|
101
95
|
beginConnection: authorizationContract.beginConnection,
|
|
102
96
|
get: authorizationContract.get,
|
|
103
|
-
getServices: authorizationContract.getServices,
|
|
104
97
|
selectAccount: authorizationContract.selectAccount,
|
|
105
98
|
submitCredentials: authorizationContract.submitCredentials,
|
|
106
99
|
},
|
|
@@ -110,6 +103,7 @@ export const firstPartyContract = {
|
|
|
110
103
|
canInvite: orgContract.canInvite,
|
|
111
104
|
createBillingPortal: orgContract.createBillingPortal,
|
|
112
105
|
createCheckout: orgContract.createCheckout,
|
|
106
|
+
createEmbeddedCheckout: orgContract.createEmbeddedCheckout,
|
|
113
107
|
removePhoneNumber: orgContract.removePhoneNumber,
|
|
114
108
|
requestPhoneNumberVerification: orgContract.requestPhoneNumberVerification,
|
|
115
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",
|