@automate.ax/api-contract 0.7.0 → 0.7.1
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/README.md +2 -1
- package/dist/deployment.d.ts +0 -5
- package/dist/deployment.js +0 -7
- package/dist/index.d.ts +677 -51
- package/dist/index.js +53 -5
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
# `@automate.ax/api-contract`
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Shared oRPC procedure contracts for the Automate.ax API. The public contract
|
|
4
|
+
used by `@automate.ax/client` excludes first-party and runtime procedures.
|
|
4
5
|
|
|
5
6
|
Most applications should install `@automate.ax/client` instead.
|
package/dist/deployment.d.ts
CHANGED
|
@@ -11,10 +11,6 @@ export declare const deploymentTriggerInfoSchema: z.ZodObject<{
|
|
|
11
11
|
}, z.core.$strip>;
|
|
12
12
|
export type DeploymentTriggerInfo = z.infer<typeof deploymentTriggerInfoSchema>;
|
|
13
13
|
export declare const deploymentContract: {
|
|
14
|
-
cancel: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
15
|
-
deploymentId: z.ZodString;
|
|
16
|
-
projectId: z.ZodString;
|
|
17
|
-
}, z.core.$strip>, z.ZodVoid, Record<never, never>, Record<never, never>>;
|
|
18
14
|
create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
19
15
|
artifact: z.ZodCustom<Blob, Blob>;
|
|
20
16
|
manifest: z.ZodArray<z.ZodObject<{
|
|
@@ -63,7 +59,6 @@ export declare const deploymentContract: {
|
|
|
63
59
|
publishing: "publishing";
|
|
64
60
|
succeeded: "succeeded";
|
|
65
61
|
failed: "failed";
|
|
66
|
-
cancelled: "cancelled";
|
|
67
62
|
}>;
|
|
68
63
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
69
64
|
};
|
package/dist/deployment.js
CHANGED
|
@@ -13,12 +13,6 @@ export const deploymentTriggerInfoSchema = z.object({
|
|
|
13
13
|
type: z.string(),
|
|
14
14
|
});
|
|
15
15
|
export const deploymentContract = {
|
|
16
|
-
cancel: oc
|
|
17
|
-
.input(z.object({
|
|
18
|
-
deploymentId: z.string(),
|
|
19
|
-
projectId: z.string(),
|
|
20
|
-
}))
|
|
21
|
-
.output(z.void()),
|
|
22
16
|
create: oc
|
|
23
17
|
.input(z.object({
|
|
24
18
|
artifact: z.instanceof(Blob),
|
|
@@ -90,7 +84,6 @@ export const deploymentContract = {
|
|
|
90
84
|
"publishing",
|
|
91
85
|
"succeeded",
|
|
92
86
|
"failed",
|
|
93
|
-
"cancelled",
|
|
94
87
|
]),
|
|
95
88
|
})),
|
|
96
89
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
export { AUTOMATION_SDK_VERSION, deploymentTriggerInfoSchema, type DeploymentTriggerInfo, } from "./deployment.js";
|
|
2
|
+
export { runtimeContract } from "./runtime.js";
|
|
2
3
|
export { createdOrganizationApiKeyOutputSchema, organizationApiKeyOutputSchema, } from "./api-key.js";
|
|
3
4
|
export { integrationServiceManifestSchema, type IntegrationServiceManifest, } from "./authorization.js";
|
|
4
5
|
export { activeSubscriptionOutputSchema, createdInvitationOutputSchema, organizationDetailsOutputSchema, organizationInvitationOutputSchema, organizationMemberOutputSchema, organizationProjectOutputSchema, organizationRoleSchema, organizationSummaryOutputSchema, publicOrganizationOutputSchema, } from "./org.js";
|
|
5
6
|
export { projectOutputSchema, projectWithOrganizationOutputSchema, } from "./project.js";
|
|
6
7
|
export { reasonableNameSchema } from "./schemas.js";
|
|
7
8
|
export { userOutputSchema } from "./auth.js";
|
|
8
|
-
|
|
9
|
+
/** Procedures exposed by the public Node client and OpenAPI document. */
|
|
10
|
+
export declare const publicContract: {
|
|
9
11
|
apiKey: {
|
|
10
12
|
create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
11
13
|
organizationId: import("zod").ZodString;
|
|
@@ -46,6 +48,202 @@ export declare const contract: {
|
|
|
46
48
|
expiresAt: import("zod").ZodNullable<import("zod").ZodDate>;
|
|
47
49
|
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
48
50
|
};
|
|
51
|
+
org: {
|
|
52
|
+
create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
53
|
+
name: import("zod").ZodString;
|
|
54
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
55
|
+
id: import("zod").ZodString;
|
|
56
|
+
name: import("zod").ZodString;
|
|
57
|
+
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
58
|
+
delete: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
59
|
+
organizationId: import("zod").ZodString;
|
|
60
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
|
|
61
|
+
get: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
62
|
+
organizationId: import("zod").ZodString;
|
|
63
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
64
|
+
id: import("zod").ZodString;
|
|
65
|
+
name: import("zod").ZodString;
|
|
66
|
+
logo: import("zod").ZodNullable<import("zod").ZodString>;
|
|
67
|
+
metadata: import("zod").ZodNullable<import("zod").ZodString>;
|
|
68
|
+
createdAt: import("zod").ZodDate;
|
|
69
|
+
role: import("zod").ZodEnum<{
|
|
70
|
+
member: "member";
|
|
71
|
+
admin: "admin";
|
|
72
|
+
owner: "owner";
|
|
73
|
+
}>;
|
|
74
|
+
memberCount: import("zod").ZodNumber;
|
|
75
|
+
pendingInvitationCount: import("zod").ZodNumber;
|
|
76
|
+
projectCount: import("zod").ZodNumber;
|
|
77
|
+
activeSubscription: import("zod").ZodNullable<import("zod").ZodObject<{
|
|
78
|
+
id: import("zod").ZodString;
|
|
79
|
+
plan: import("zod").ZodString;
|
|
80
|
+
status: import("zod").ZodString;
|
|
81
|
+
periodEnd: import("zod").ZodNullable<import("zod").ZodDate>;
|
|
82
|
+
cancelAtPeriodEnd: import("zod").ZodBoolean;
|
|
83
|
+
}, import("zod/v4/core").$strip>>;
|
|
84
|
+
plan: import("zod").ZodEnum<{
|
|
85
|
+
free: "free";
|
|
86
|
+
pro: "pro";
|
|
87
|
+
enterprise: "enterprise";
|
|
88
|
+
}>;
|
|
89
|
+
limits: import("zod").ZodObject<{
|
|
90
|
+
projects: import("zod").ZodNumber;
|
|
91
|
+
seats: import("zod").ZodNumber;
|
|
92
|
+
}, import("zod/v4/core").$strip>;
|
|
93
|
+
members: import("zod").ZodArray<import("zod").ZodObject<{
|
|
94
|
+
id: import("zod").ZodString;
|
|
95
|
+
userId: import("zod").ZodString;
|
|
96
|
+
role: import("zod").ZodEnum<{
|
|
97
|
+
member: "member";
|
|
98
|
+
admin: "admin";
|
|
99
|
+
owner: "owner";
|
|
100
|
+
}>;
|
|
101
|
+
createdAt: import("zod").ZodDate;
|
|
102
|
+
email: import("zod").ZodEmail;
|
|
103
|
+
name: import("zod").ZodString;
|
|
104
|
+
image: import("zod").ZodNullable<import("zod").ZodString>;
|
|
105
|
+
}, import("zod/v4/core").$strip>>;
|
|
106
|
+
invitations: import("zod").ZodArray<import("zod").ZodObject<{
|
|
107
|
+
id: import("zod").ZodString;
|
|
108
|
+
email: import("zod").ZodEmail;
|
|
109
|
+
role: import("zod").ZodNullable<import("zod").ZodEnum<{
|
|
110
|
+
member: "member";
|
|
111
|
+
admin: "admin";
|
|
112
|
+
owner: "owner";
|
|
113
|
+
}>>;
|
|
114
|
+
status: import("zod").ZodString;
|
|
115
|
+
createdAt: import("zod").ZodDate;
|
|
116
|
+
expiresAt: import("zod").ZodDate;
|
|
117
|
+
}, import("zod/v4/core").$strip>>;
|
|
118
|
+
projects: import("zod").ZodArray<import("zod").ZodObject<{
|
|
119
|
+
id: import("zod").ZodString;
|
|
120
|
+
name: import("zod").ZodString;
|
|
121
|
+
createdAt: import("zod").ZodDate;
|
|
122
|
+
}, import("zod/v4/core").$strip>>;
|
|
123
|
+
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
124
|
+
invite: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
125
|
+
organizationId: import("zod").ZodString;
|
|
126
|
+
email: import("zod").ZodEmail;
|
|
127
|
+
role: import("zod").ZodDefault<import("zod").ZodEnum<{
|
|
128
|
+
member: "member";
|
|
129
|
+
admin: "admin";
|
|
130
|
+
owner: "owner";
|
|
131
|
+
}>>;
|
|
132
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
133
|
+
id: import("zod").ZodString;
|
|
134
|
+
email: import("zod").ZodEmail;
|
|
135
|
+
role: import("zod").ZodNullable<import("zod").ZodEnum<{
|
|
136
|
+
member: "member";
|
|
137
|
+
admin: "admin";
|
|
138
|
+
owner: "owner";
|
|
139
|
+
}>>;
|
|
140
|
+
status: import("zod").ZodString;
|
|
141
|
+
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
142
|
+
leave: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
143
|
+
organizationId: import("zod").ZodString;
|
|
144
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
|
|
145
|
+
list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodDefault<import("zod").ZodObject<{
|
|
146
|
+
query: import("zod").ZodOptional<import("zod").ZodString>;
|
|
147
|
+
}, import("zod/v4/core").$strip>>, import("zod").ZodArray<import("zod").ZodObject<{
|
|
148
|
+
id: import("zod").ZodString;
|
|
149
|
+
name: import("zod").ZodString;
|
|
150
|
+
logo: import("zod").ZodNullable<import("zod").ZodString>;
|
|
151
|
+
metadata: import("zod").ZodNullable<import("zod").ZodString>;
|
|
152
|
+
createdAt: import("zod").ZodDate;
|
|
153
|
+
role: import("zod").ZodEnum<{
|
|
154
|
+
member: "member";
|
|
155
|
+
admin: "admin";
|
|
156
|
+
owner: "owner";
|
|
157
|
+
}>;
|
|
158
|
+
memberCount: import("zod").ZodNumber;
|
|
159
|
+
pendingInvitationCount: import("zod").ZodNumber;
|
|
160
|
+
projectCount: import("zod").ZodNumber;
|
|
161
|
+
activeSubscription: import("zod").ZodNullable<import("zod").ZodObject<{
|
|
162
|
+
id: import("zod").ZodString;
|
|
163
|
+
plan: import("zod").ZodString;
|
|
164
|
+
status: import("zod").ZodString;
|
|
165
|
+
periodEnd: import("zod").ZodNullable<import("zod").ZodDate>;
|
|
166
|
+
cancelAtPeriodEnd: import("zod").ZodBoolean;
|
|
167
|
+
}, import("zod/v4/core").$strip>>;
|
|
168
|
+
plan: import("zod").ZodEnum<{
|
|
169
|
+
free: "free";
|
|
170
|
+
pro: "pro";
|
|
171
|
+
enterprise: "enterprise";
|
|
172
|
+
}>;
|
|
173
|
+
limits: import("zod").ZodObject<{
|
|
174
|
+
projects: import("zod").ZodNumber;
|
|
175
|
+
seats: import("zod").ZodNumber;
|
|
176
|
+
}, import("zod/v4/core").$strip>;
|
|
177
|
+
}, import("zod/v4/core").$strip>>, Record<never, never>, Record<never, never>>;
|
|
178
|
+
remove: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
179
|
+
organizationId: import("zod").ZodString;
|
|
180
|
+
memberIdOrEmail: import("zod").ZodString;
|
|
181
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
|
|
182
|
+
update: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
183
|
+
organizationId: import("zod").ZodString;
|
|
184
|
+
name: import("zod").ZodString;
|
|
185
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
|
|
186
|
+
};
|
|
187
|
+
project: {
|
|
188
|
+
create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
189
|
+
organizationId: import("zod").ZodString;
|
|
190
|
+
name: import("zod").ZodString;
|
|
191
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
192
|
+
id: import("zod").ZodString;
|
|
193
|
+
name: import("zod").ZodString;
|
|
194
|
+
organizationId: import("zod").ZodString;
|
|
195
|
+
createdAt: import("zod").ZodDate;
|
|
196
|
+
createdBy: import("zod").ZodNullable<import("zod").ZodString>;
|
|
197
|
+
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
198
|
+
delete: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
199
|
+
projectId: import("zod").ZodString;
|
|
200
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
|
|
201
|
+
get: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
202
|
+
projectId: import("zod").ZodString;
|
|
203
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
204
|
+
id: import("zod").ZodString;
|
|
205
|
+
name: import("zod").ZodString;
|
|
206
|
+
organizationId: import("zod").ZodString;
|
|
207
|
+
createdAt: import("zod").ZodDate;
|
|
208
|
+
createdBy: import("zod").ZodNullable<import("zod").ZodString>;
|
|
209
|
+
org: import("zod").ZodObject<{
|
|
210
|
+
id: import("zod").ZodString;
|
|
211
|
+
name: import("zod").ZodString;
|
|
212
|
+
}, import("zod/v4/core").$strip>;
|
|
213
|
+
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
214
|
+
list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodOptional<import("zod").ZodObject<{
|
|
215
|
+
organizationId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
216
|
+
query: import("zod").ZodOptional<import("zod").ZodString>;
|
|
217
|
+
}, import("zod/v4/core").$strip>>, import("zod").ZodArray<import("zod").ZodObject<{
|
|
218
|
+
id: import("zod").ZodString;
|
|
219
|
+
name: import("zod").ZodString;
|
|
220
|
+
organizationId: import("zod").ZodString;
|
|
221
|
+
createdAt: import("zod").ZodDate;
|
|
222
|
+
createdBy: import("zod").ZodNullable<import("zod").ZodString>;
|
|
223
|
+
org: import("zod").ZodObject<{
|
|
224
|
+
id: import("zod").ZodString;
|
|
225
|
+
name: import("zod").ZodString;
|
|
226
|
+
}, import("zod/v4/core").$strip>;
|
|
227
|
+
}, import("zod/v4/core").$strip>>, Record<never, never>, Record<never, never>>;
|
|
228
|
+
update: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
229
|
+
projectId: import("zod").ZodString;
|
|
230
|
+
name: import("zod").ZodString;
|
|
231
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
|
|
232
|
+
};
|
|
233
|
+
session: {
|
|
234
|
+
me: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, import("zod").ZodObject<{
|
|
235
|
+
id: import("zod").ZodString;
|
|
236
|
+
name: import("zod").ZodString;
|
|
237
|
+
email: import("zod").ZodEmail;
|
|
238
|
+
emailVerified: import("zod").ZodBoolean;
|
|
239
|
+
image: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
240
|
+
createdAt: import("zod").ZodDate;
|
|
241
|
+
updatedAt: import("zod").ZodDate;
|
|
242
|
+
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
243
|
+
};
|
|
244
|
+
};
|
|
245
|
+
/** Procedures used by first-party control-plane clients. */
|
|
246
|
+
export declare const firstPartyContract: {
|
|
49
247
|
authorization: {
|
|
50
248
|
beginConnection: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
51
249
|
binding: import("zod").ZodString;
|
|
@@ -54,9 +252,6 @@ export declare const contract: {
|
|
|
54
252
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
55
253
|
url: import("zod").ZodURL;
|
|
56
254
|
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
57
|
-
callback: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
58
|
-
serviceId: import("zod").ZodString;
|
|
59
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodString, Record<never, never>, Record<never, never>>;
|
|
60
255
|
get: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
61
256
|
deploymentId: import("zod").ZodString;
|
|
62
257
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
@@ -133,23 +328,19 @@ export declare const contract: {
|
|
|
133
328
|
id: import("zod").ZodString;
|
|
134
329
|
}, import("zod/v4/core").$strip>>;
|
|
135
330
|
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
136
|
-
|
|
331
|
+
selectAccount: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
332
|
+
accountId: import("zod").ZodString;
|
|
137
333
|
binding: import("zod").ZodString;
|
|
138
|
-
data: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean]>>;
|
|
139
334
|
deploymentId: import("zod").ZodString;
|
|
140
|
-
serviceId: import("zod").ZodString;
|
|
141
335
|
}, import("zod/v4/core").$strip>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
|
|
142
|
-
|
|
143
|
-
accountId: import("zod").ZodString;
|
|
336
|
+
submitCredentials: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
144
337
|
binding: import("zod").ZodString;
|
|
338
|
+
data: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean]>>;
|
|
145
339
|
deploymentId: import("zod").ZodString;
|
|
340
|
+
serviceId: import("zod").ZodString;
|
|
146
341
|
}, import("zod/v4/core").$strip>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
|
|
147
342
|
};
|
|
148
343
|
deployment: {
|
|
149
|
-
cancel: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
150
|
-
deploymentId: import("zod").ZodString;
|
|
151
|
-
projectId: import("zod").ZodString;
|
|
152
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
|
|
153
344
|
create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
154
345
|
artifact: import("zod").ZodCustom<Blob, Blob>;
|
|
155
346
|
manifest: import("zod").ZodArray<import("zod").ZodObject<{
|
|
@@ -198,35 +389,9 @@ export declare const contract: {
|
|
|
198
389
|
publishing: "publishing";
|
|
199
390
|
succeeded: "succeeded";
|
|
200
391
|
failed: "failed";
|
|
201
|
-
cancelled: "cancelled";
|
|
202
392
|
}>;
|
|
203
393
|
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
204
394
|
};
|
|
205
|
-
events: {
|
|
206
|
-
gmailPush: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
207
|
-
message: import("zod").ZodObject<{
|
|
208
|
-
data: import("zod").ZodString;
|
|
209
|
-
messageId: import("zod").ZodString;
|
|
210
|
-
}, import("zod/v4/core").$strip>;
|
|
211
|
-
subscription: import("zod").ZodLiteral<"projects/opkitty/subscriptions/automate-ax-gmail-push">;
|
|
212
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
|
|
213
|
-
googleFormsPush: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
214
|
-
message: import("zod").ZodObject<{
|
|
215
|
-
attributes: import("zod").ZodObject<{
|
|
216
|
-
eventType: import("zod").ZodEnum<{
|
|
217
|
-
SCHEMA: "SCHEMA";
|
|
218
|
-
RESPONSES: "RESPONSES";
|
|
219
|
-
}>;
|
|
220
|
-
formId: import("zod").ZodString;
|
|
221
|
-
watchId: import("zod").ZodString;
|
|
222
|
-
}, import("zod/v4/core").$strip>;
|
|
223
|
-
messageId: import("zod").ZodString;
|
|
224
|
-
publishTime: import("zod").ZodISODateTime;
|
|
225
|
-
}, import("zod/v4/core").$strip>;
|
|
226
|
-
subscription: import("zod").ZodLiteral<"projects/opkitty/subscriptions/automate-ax-google-forms-push">;
|
|
227
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
|
|
228
|
-
googleCalendarPush: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodVoid, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
|
|
229
|
-
};
|
|
230
395
|
org: {
|
|
231
396
|
canInvite: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
232
397
|
organizationId: import("zod").ZodString;
|
|
@@ -380,10 +545,12 @@ export declare const contract: {
|
|
|
380
545
|
createdAt: import("zod").ZodDate;
|
|
381
546
|
createdBy: import("zod").ZodNullable<import("zod").ZodString>;
|
|
382
547
|
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
548
|
+
delete: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
549
|
+
projectId: import("zod").ZodString;
|
|
550
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
|
|
551
|
+
get: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
552
|
+
projectId: import("zod").ZodString;
|
|
553
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
387
554
|
id: import("zod").ZodString;
|
|
388
555
|
name: import("zod").ZodString;
|
|
389
556
|
organizationId: import("zod").ZodString;
|
|
@@ -393,10 +560,11 @@ export declare const contract: {
|
|
|
393
560
|
id: import("zod").ZodString;
|
|
394
561
|
name: import("zod").ZodString;
|
|
395
562
|
}, import("zod/v4/core").$strip>;
|
|
396
|
-
}, import("zod/v4/core").$strip
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
563
|
+
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
564
|
+
list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodOptional<import("zod").ZodObject<{
|
|
565
|
+
organizationId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
566
|
+
query: import("zod").ZodOptional<import("zod").ZodString>;
|
|
567
|
+
}, import("zod/v4/core").$strip>>, import("zod").ZodArray<import("zod").ZodObject<{
|
|
400
568
|
id: import("zod").ZodString;
|
|
401
569
|
name: import("zod").ZodString;
|
|
402
570
|
organizationId: import("zod").ZodString;
|
|
@@ -406,14 +574,192 @@ export declare const contract: {
|
|
|
406
574
|
id: import("zod").ZodString;
|
|
407
575
|
name: import("zod").ZodString;
|
|
408
576
|
}, import("zod/v4/core").$strip>;
|
|
409
|
-
}, import("zod/v4/core").$strip
|
|
577
|
+
}, import("zod/v4/core").$strip>>, Record<never, never>, Record<never, never>>;
|
|
410
578
|
update: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
411
579
|
projectId: import("zod").ZodString;
|
|
412
580
|
name: import("zod").ZodString;
|
|
413
581
|
}, import("zod/v4/core").$strip>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
|
|
582
|
+
};
|
|
583
|
+
session: {
|
|
584
|
+
linkDeviceSession: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
585
|
+
newAccessToken: import("zod").ZodString;
|
|
586
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
|
|
587
|
+
me: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, import("zod").ZodObject<{
|
|
588
|
+
id: import("zod").ZodString;
|
|
589
|
+
name: import("zod").ZodString;
|
|
590
|
+
email: import("zod").ZodEmail;
|
|
591
|
+
emailVerified: import("zod").ZodBoolean;
|
|
592
|
+
image: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
593
|
+
createdAt: import("zod").ZodDate;
|
|
594
|
+
updatedAt: import("zod").ZodDate;
|
|
595
|
+
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
596
|
+
};
|
|
597
|
+
apiKey: {
|
|
598
|
+
create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
599
|
+
organizationId: import("zod").ZodString;
|
|
600
|
+
name: import("zod").ZodString;
|
|
601
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
602
|
+
id: import("zod").ZodString;
|
|
603
|
+
name: import("zod").ZodNullable<import("zod").ZodString>;
|
|
604
|
+
start: import("zod").ZodNullable<import("zod").ZodString>;
|
|
605
|
+
createdAt: import("zod").ZodDate;
|
|
606
|
+
updatedAt: import("zod").ZodDate;
|
|
607
|
+
expiresAt: import("zod").ZodNullable<import("zod").ZodDate>;
|
|
608
|
+
key: import("zod").ZodString;
|
|
609
|
+
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
414
610
|
delete: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
415
|
-
|
|
611
|
+
keyId: import("zod").ZodString;
|
|
612
|
+
organizationId: import("zod").ZodString;
|
|
613
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
|
|
614
|
+
list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
615
|
+
organizationId: import("zod").ZodString;
|
|
616
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodArray<import("zod").ZodObject<{
|
|
617
|
+
id: import("zod").ZodString;
|
|
618
|
+
name: import("zod").ZodNullable<import("zod").ZodString>;
|
|
619
|
+
start: import("zod").ZodNullable<import("zod").ZodString>;
|
|
620
|
+
createdAt: import("zod").ZodDate;
|
|
621
|
+
updatedAt: import("zod").ZodDate;
|
|
622
|
+
expiresAt: import("zod").ZodNullable<import("zod").ZodDate>;
|
|
623
|
+
}, import("zod/v4/core").$strip>>, Record<never, never>, Record<never, never>>;
|
|
624
|
+
update: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
625
|
+
keyId: import("zod").ZodString;
|
|
626
|
+
name: import("zod").ZodString;
|
|
627
|
+
organizationId: import("zod").ZodString;
|
|
628
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
629
|
+
id: import("zod").ZodString;
|
|
630
|
+
name: import("zod").ZodNullable<import("zod").ZodString>;
|
|
631
|
+
start: import("zod").ZodNullable<import("zod").ZodString>;
|
|
632
|
+
createdAt: import("zod").ZodDate;
|
|
633
|
+
updatedAt: import("zod").ZodDate;
|
|
634
|
+
expiresAt: import("zod").ZodNullable<import("zod").ZodDate>;
|
|
635
|
+
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
636
|
+
};
|
|
637
|
+
};
|
|
638
|
+
/** Complete contract implemented by the API service. */
|
|
639
|
+
export declare const contract: {
|
|
640
|
+
authorization: {
|
|
641
|
+
callback: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
642
|
+
serviceId: import("zod").ZodString;
|
|
643
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodString, Record<never, never>, Record<never, never>>;
|
|
644
|
+
beginConnection: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
645
|
+
binding: import("zod").ZodString;
|
|
646
|
+
deploymentId: import("zod").ZodString;
|
|
647
|
+
serviceId: import("zod").ZodString;
|
|
648
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
649
|
+
url: import("zod").ZodURL;
|
|
650
|
+
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
651
|
+
get: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
652
|
+
deploymentId: import("zod").ZodString;
|
|
653
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
654
|
+
accounts: import("zod").ZodArray<import("zod").ZodObject<{
|
|
655
|
+
checkedAt: import("zod").ZodNullable<import("zod").ZodDate>;
|
|
656
|
+
error: import("zod").ZodNullable<import("zod").ZodObject<{
|
|
657
|
+
code: import("zod").ZodString;
|
|
658
|
+
message: import("zod").ZodString;
|
|
659
|
+
}, import("zod/v4/core").$strip>>;
|
|
660
|
+
id: import("zod").ZodString;
|
|
661
|
+
label: import("zod").ZodString;
|
|
662
|
+
scopes: import("zod").ZodArray<import("zod").ZodString>;
|
|
663
|
+
serviceId: import("zod").ZodString;
|
|
664
|
+
serviceSub: import("zod").ZodString;
|
|
665
|
+
}, import("zod/v4/core").$strip>>;
|
|
666
|
+
requirements: import("zod").ZodArray<import("zod").ZodObject<{
|
|
667
|
+
accountId: import("zod").ZodNullable<import("zod").ZodString>;
|
|
668
|
+
binding: import("zod").ZodString;
|
|
669
|
+
eligibleAccountIds: import("zod").ZodArray<import("zod").ZodString>;
|
|
670
|
+
minimalScopes: import("zod").ZodArray<import("zod").ZodString>;
|
|
671
|
+
requiredScopes: import("zod").ZodArray<import("zod").ZodType<string | {
|
|
672
|
+
requirements: (string | /*elided*/ any)[];
|
|
673
|
+
type: "and" | "or";
|
|
674
|
+
}, unknown, import("zod/v4/core").$ZodTypeInternals<string | {
|
|
675
|
+
requirements: (string | /*elided*/ any)[];
|
|
676
|
+
type: "and" | "or";
|
|
677
|
+
}, unknown>>>;
|
|
678
|
+
satisfied: import("zod").ZodBoolean;
|
|
679
|
+
serviceId: import("zod").ZodString;
|
|
680
|
+
}, import("zod/v4/core").$strip>>;
|
|
681
|
+
services: import("zod").ZodArray<import("zod").ZodObject<{
|
|
682
|
+
connection: import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
683
|
+
type: import("zod").ZodLiteral<"redirect">;
|
|
684
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
685
|
+
fields: import("zod").ZodArray<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
686
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
687
|
+
label: import("zod").ZodString;
|
|
688
|
+
name: import("zod").ZodString;
|
|
689
|
+
required: import("zod").ZodBoolean;
|
|
690
|
+
default: import("zod").ZodOptional<import("zod").ZodString>;
|
|
691
|
+
input: import("zod").ZodEnum<{
|
|
692
|
+
email: "email";
|
|
693
|
+
text: "text";
|
|
694
|
+
url: "url";
|
|
695
|
+
}>;
|
|
696
|
+
placeholder: import("zod").ZodOptional<import("zod").ZodString>;
|
|
697
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
698
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
699
|
+
label: import("zod").ZodString;
|
|
700
|
+
name: import("zod").ZodString;
|
|
701
|
+
required: import("zod").ZodBoolean;
|
|
702
|
+
input: import("zod").ZodLiteral<"password">;
|
|
703
|
+
placeholder: import("zod").ZodOptional<import("zod").ZodString>;
|
|
704
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
705
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
706
|
+
label: import("zod").ZodString;
|
|
707
|
+
name: import("zod").ZodString;
|
|
708
|
+
required: import("zod").ZodBoolean;
|
|
709
|
+
default: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
710
|
+
input: import("zod").ZodLiteral<"number">;
|
|
711
|
+
placeholder: import("zod").ZodOptional<import("zod").ZodString>;
|
|
712
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
713
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
714
|
+
label: import("zod").ZodString;
|
|
715
|
+
name: import("zod").ZodString;
|
|
716
|
+
required: import("zod").ZodBoolean;
|
|
717
|
+
default: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
718
|
+
input: import("zod").ZodLiteral<"boolean">;
|
|
719
|
+
}, import("zod/v4/core").$strip>], "input">>;
|
|
720
|
+
type: import("zod").ZodLiteral<"form">;
|
|
721
|
+
}, import("zod/v4/core").$strip>], "type">;
|
|
722
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
723
|
+
name: import("zod").ZodString;
|
|
724
|
+
id: import("zod").ZodString;
|
|
725
|
+
}, import("zod/v4/core").$strip>>;
|
|
726
|
+
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
727
|
+
selectAccount: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
728
|
+
accountId: import("zod").ZodString;
|
|
729
|
+
binding: import("zod").ZodString;
|
|
730
|
+
deploymentId: import("zod").ZodString;
|
|
731
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
|
|
732
|
+
submitCredentials: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
733
|
+
binding: import("zod").ZodString;
|
|
734
|
+
data: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean]>>;
|
|
735
|
+
deploymentId: import("zod").ZodString;
|
|
736
|
+
serviceId: import("zod").ZodString;
|
|
737
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
|
|
738
|
+
};
|
|
739
|
+
events: {
|
|
740
|
+
gmailPush: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
741
|
+
message: import("zod").ZodObject<{
|
|
742
|
+
data: import("zod").ZodString;
|
|
743
|
+
messageId: import("zod").ZodString;
|
|
744
|
+
}, import("zod/v4/core").$strip>;
|
|
745
|
+
subscription: import("zod").ZodLiteral<"projects/opkitty/subscriptions/automate-ax-gmail-push">;
|
|
746
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
|
|
747
|
+
googleFormsPush: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
748
|
+
message: import("zod").ZodObject<{
|
|
749
|
+
attributes: import("zod").ZodObject<{
|
|
750
|
+
eventType: import("zod").ZodEnum<{
|
|
751
|
+
SCHEMA: "SCHEMA";
|
|
752
|
+
RESPONSES: "RESPONSES";
|
|
753
|
+
}>;
|
|
754
|
+
formId: import("zod").ZodString;
|
|
755
|
+
watchId: import("zod").ZodString;
|
|
756
|
+
}, import("zod/v4/core").$strip>;
|
|
757
|
+
messageId: import("zod").ZodString;
|
|
758
|
+
publishTime: import("zod").ZodISODateTime;
|
|
759
|
+
}, import("zod/v4/core").$strip>;
|
|
760
|
+
subscription: import("zod").ZodLiteral<"projects/opkitty/subscriptions/automate-ax-google-forms-push">;
|
|
416
761
|
}, import("zod/v4/core").$strip>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
|
|
762
|
+
googleCalendarPush: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodVoid, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
|
|
417
763
|
};
|
|
418
764
|
runtime: {
|
|
419
765
|
commit: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
@@ -485,7 +831,250 @@ export declare const contract: {
|
|
|
485
831
|
id: import("zod").ZodNullable<import("zod").ZodString>;
|
|
486
832
|
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
487
833
|
};
|
|
834
|
+
deployment: {
|
|
835
|
+
create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
836
|
+
artifact: import("zod").ZodCustom<Blob, Blob>;
|
|
837
|
+
manifest: import("zod").ZodArray<import("zod").ZodObject<{
|
|
838
|
+
entrypoint: import("zod").ZodString;
|
|
839
|
+
identityKey: import("zod").ZodString;
|
|
840
|
+
}, import("zod/v4/core").$strip>>;
|
|
841
|
+
mode: import("zod").ZodEnum<{
|
|
842
|
+
reconcile: "reconcile";
|
|
843
|
+
upsert: "upsert";
|
|
844
|
+
}>;
|
|
845
|
+
projectId: import("zod").ZodString;
|
|
846
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
847
|
+
id: import("zod").ZodString;
|
|
848
|
+
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
849
|
+
get: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
850
|
+
deploymentId: import("zod").ZodString;
|
|
851
|
+
projectId: import("zod").ZodString;
|
|
852
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
853
|
+
automations: import("zod").ZodArray<import("zod").ZodObject<{
|
|
854
|
+
description: import("zod").ZodString;
|
|
855
|
+
identityKey: import("zod").ZodString;
|
|
856
|
+
triggers: import("zod").ZodArray<import("zod").ZodObject<{
|
|
857
|
+
details: import("zod").ZodArray<import("zod").ZodObject<{
|
|
858
|
+
label: import("zod").ZodString;
|
|
859
|
+
value: import("zod").ZodString;
|
|
860
|
+
}, import("zod/v4/core").$strip>>;
|
|
861
|
+
name: import("zod").ZodString;
|
|
862
|
+
type: import("zod").ZodString;
|
|
863
|
+
}, import("zod/v4/core").$strip>>;
|
|
864
|
+
}, import("zod/v4/core").$strip>>;
|
|
865
|
+
id: import("zod").ZodString;
|
|
866
|
+
job: import("zod").ZodNullable<import("zod").ZodObject<{
|
|
867
|
+
attempts: import("zod").ZodNumber;
|
|
868
|
+
error: import("zod").ZodNullable<import("zod").ZodString>;
|
|
869
|
+
maxAttempts: import("zod").ZodNumber;
|
|
870
|
+
nextRunAt: import("zod").ZodDate;
|
|
871
|
+
}, import("zod/v4/core").$strip>>;
|
|
872
|
+
project: import("zod").ZodObject<{
|
|
873
|
+
id: import("zod").ZodString;
|
|
874
|
+
name: import("zod").ZodString;
|
|
875
|
+
}, import("zod/v4/core").$strip>;
|
|
876
|
+
status: import("zod").ZodEnum<{
|
|
877
|
+
planning: "planning";
|
|
878
|
+
awaiting_authorization: "awaiting_authorization";
|
|
879
|
+
configuring: "configuring";
|
|
880
|
+
publishing: "publishing";
|
|
881
|
+
succeeded: "succeeded";
|
|
882
|
+
failed: "failed";
|
|
883
|
+
}>;
|
|
884
|
+
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
885
|
+
};
|
|
886
|
+
org: {
|
|
887
|
+
canInvite: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
888
|
+
organizationId: import("zod").ZodString;
|
|
889
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodBoolean, Record<never, never>, Record<never, never>>;
|
|
890
|
+
create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
891
|
+
name: import("zod").ZodString;
|
|
892
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
893
|
+
id: import("zod").ZodString;
|
|
894
|
+
name: import("zod").ZodString;
|
|
895
|
+
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
896
|
+
delete: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
897
|
+
organizationId: import("zod").ZodString;
|
|
898
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
|
|
899
|
+
get: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
900
|
+
organizationId: import("zod").ZodString;
|
|
901
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
902
|
+
id: import("zod").ZodString;
|
|
903
|
+
name: import("zod").ZodString;
|
|
904
|
+
logo: import("zod").ZodNullable<import("zod").ZodString>;
|
|
905
|
+
metadata: import("zod").ZodNullable<import("zod").ZodString>;
|
|
906
|
+
createdAt: import("zod").ZodDate;
|
|
907
|
+
role: import("zod").ZodEnum<{
|
|
908
|
+
member: "member";
|
|
909
|
+
admin: "admin";
|
|
910
|
+
owner: "owner";
|
|
911
|
+
}>;
|
|
912
|
+
memberCount: import("zod").ZodNumber;
|
|
913
|
+
pendingInvitationCount: import("zod").ZodNumber;
|
|
914
|
+
projectCount: import("zod").ZodNumber;
|
|
915
|
+
activeSubscription: import("zod").ZodNullable<import("zod").ZodObject<{
|
|
916
|
+
id: import("zod").ZodString;
|
|
917
|
+
plan: import("zod").ZodString;
|
|
918
|
+
status: import("zod").ZodString;
|
|
919
|
+
periodEnd: import("zod").ZodNullable<import("zod").ZodDate>;
|
|
920
|
+
cancelAtPeriodEnd: import("zod").ZodBoolean;
|
|
921
|
+
}, import("zod/v4/core").$strip>>;
|
|
922
|
+
plan: import("zod").ZodEnum<{
|
|
923
|
+
free: "free";
|
|
924
|
+
pro: "pro";
|
|
925
|
+
enterprise: "enterprise";
|
|
926
|
+
}>;
|
|
927
|
+
limits: import("zod").ZodObject<{
|
|
928
|
+
projects: import("zod").ZodNumber;
|
|
929
|
+
seats: import("zod").ZodNumber;
|
|
930
|
+
}, import("zod/v4/core").$strip>;
|
|
931
|
+
members: import("zod").ZodArray<import("zod").ZodObject<{
|
|
932
|
+
id: import("zod").ZodString;
|
|
933
|
+
userId: import("zod").ZodString;
|
|
934
|
+
role: import("zod").ZodEnum<{
|
|
935
|
+
member: "member";
|
|
936
|
+
admin: "admin";
|
|
937
|
+
owner: "owner";
|
|
938
|
+
}>;
|
|
939
|
+
createdAt: import("zod").ZodDate;
|
|
940
|
+
email: import("zod").ZodEmail;
|
|
941
|
+
name: import("zod").ZodString;
|
|
942
|
+
image: import("zod").ZodNullable<import("zod").ZodString>;
|
|
943
|
+
}, import("zod/v4/core").$strip>>;
|
|
944
|
+
invitations: import("zod").ZodArray<import("zod").ZodObject<{
|
|
945
|
+
id: import("zod").ZodString;
|
|
946
|
+
email: import("zod").ZodEmail;
|
|
947
|
+
role: import("zod").ZodNullable<import("zod").ZodEnum<{
|
|
948
|
+
member: "member";
|
|
949
|
+
admin: "admin";
|
|
950
|
+
owner: "owner";
|
|
951
|
+
}>>;
|
|
952
|
+
status: import("zod").ZodString;
|
|
953
|
+
createdAt: import("zod").ZodDate;
|
|
954
|
+
expiresAt: import("zod").ZodDate;
|
|
955
|
+
}, import("zod/v4/core").$strip>>;
|
|
956
|
+
projects: import("zod").ZodArray<import("zod").ZodObject<{
|
|
957
|
+
id: import("zod").ZodString;
|
|
958
|
+
name: import("zod").ZodString;
|
|
959
|
+
createdAt: import("zod").ZodDate;
|
|
960
|
+
}, import("zod/v4/core").$strip>>;
|
|
961
|
+
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
962
|
+
invite: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
963
|
+
organizationId: import("zod").ZodString;
|
|
964
|
+
email: import("zod").ZodEmail;
|
|
965
|
+
role: import("zod").ZodDefault<import("zod").ZodEnum<{
|
|
966
|
+
member: "member";
|
|
967
|
+
admin: "admin";
|
|
968
|
+
owner: "owner";
|
|
969
|
+
}>>;
|
|
970
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
971
|
+
id: import("zod").ZodString;
|
|
972
|
+
email: import("zod").ZodEmail;
|
|
973
|
+
role: import("zod").ZodNullable<import("zod").ZodEnum<{
|
|
974
|
+
member: "member";
|
|
975
|
+
admin: "admin";
|
|
976
|
+
owner: "owner";
|
|
977
|
+
}>>;
|
|
978
|
+
status: import("zod").ZodString;
|
|
979
|
+
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
980
|
+
leave: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
981
|
+
organizationId: import("zod").ZodString;
|
|
982
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
|
|
983
|
+
list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodDefault<import("zod").ZodObject<{
|
|
984
|
+
query: import("zod").ZodOptional<import("zod").ZodString>;
|
|
985
|
+
}, import("zod/v4/core").$strip>>, import("zod").ZodArray<import("zod").ZodObject<{
|
|
986
|
+
id: import("zod").ZodString;
|
|
987
|
+
name: import("zod").ZodString;
|
|
988
|
+
logo: import("zod").ZodNullable<import("zod").ZodString>;
|
|
989
|
+
metadata: import("zod").ZodNullable<import("zod").ZodString>;
|
|
990
|
+
createdAt: import("zod").ZodDate;
|
|
991
|
+
role: import("zod").ZodEnum<{
|
|
992
|
+
member: "member";
|
|
993
|
+
admin: "admin";
|
|
994
|
+
owner: "owner";
|
|
995
|
+
}>;
|
|
996
|
+
memberCount: import("zod").ZodNumber;
|
|
997
|
+
pendingInvitationCount: import("zod").ZodNumber;
|
|
998
|
+
projectCount: import("zod").ZodNumber;
|
|
999
|
+
activeSubscription: import("zod").ZodNullable<import("zod").ZodObject<{
|
|
1000
|
+
id: import("zod").ZodString;
|
|
1001
|
+
plan: import("zod").ZodString;
|
|
1002
|
+
status: import("zod").ZodString;
|
|
1003
|
+
periodEnd: import("zod").ZodNullable<import("zod").ZodDate>;
|
|
1004
|
+
cancelAtPeriodEnd: import("zod").ZodBoolean;
|
|
1005
|
+
}, import("zod/v4/core").$strip>>;
|
|
1006
|
+
plan: import("zod").ZodEnum<{
|
|
1007
|
+
free: "free";
|
|
1008
|
+
pro: "pro";
|
|
1009
|
+
enterprise: "enterprise";
|
|
1010
|
+
}>;
|
|
1011
|
+
limits: import("zod").ZodObject<{
|
|
1012
|
+
projects: import("zod").ZodNumber;
|
|
1013
|
+
seats: import("zod").ZodNumber;
|
|
1014
|
+
}, import("zod/v4/core").$strip>;
|
|
1015
|
+
}, import("zod/v4/core").$strip>>, Record<never, never>, Record<never, never>>;
|
|
1016
|
+
remove: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
1017
|
+
organizationId: import("zod").ZodString;
|
|
1018
|
+
memberIdOrEmail: import("zod").ZodString;
|
|
1019
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
|
|
1020
|
+
update: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
1021
|
+
organizationId: import("zod").ZodString;
|
|
1022
|
+
name: import("zod").ZodString;
|
|
1023
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
|
|
1024
|
+
};
|
|
1025
|
+
project: {
|
|
1026
|
+
canCreate: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
1027
|
+
organizationId: import("zod").ZodString;
|
|
1028
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodBoolean, Record<never, never>, Record<never, never>>;
|
|
1029
|
+
create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
1030
|
+
organizationId: import("zod").ZodString;
|
|
1031
|
+
name: import("zod").ZodString;
|
|
1032
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1033
|
+
id: import("zod").ZodString;
|
|
1034
|
+
name: import("zod").ZodString;
|
|
1035
|
+
organizationId: import("zod").ZodString;
|
|
1036
|
+
createdAt: import("zod").ZodDate;
|
|
1037
|
+
createdBy: import("zod").ZodNullable<import("zod").ZodString>;
|
|
1038
|
+
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
1039
|
+
delete: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
1040
|
+
projectId: import("zod").ZodString;
|
|
1041
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
|
|
1042
|
+
get: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
1043
|
+
projectId: import("zod").ZodString;
|
|
1044
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1045
|
+
id: import("zod").ZodString;
|
|
1046
|
+
name: import("zod").ZodString;
|
|
1047
|
+
organizationId: import("zod").ZodString;
|
|
1048
|
+
createdAt: import("zod").ZodDate;
|
|
1049
|
+
createdBy: import("zod").ZodNullable<import("zod").ZodString>;
|
|
1050
|
+
org: import("zod").ZodObject<{
|
|
1051
|
+
id: import("zod").ZodString;
|
|
1052
|
+
name: import("zod").ZodString;
|
|
1053
|
+
}, import("zod/v4/core").$strip>;
|
|
1054
|
+
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
1055
|
+
list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1056
|
+
organizationId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1057
|
+
query: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1058
|
+
}, import("zod/v4/core").$strip>>, import("zod").ZodArray<import("zod").ZodObject<{
|
|
1059
|
+
id: import("zod").ZodString;
|
|
1060
|
+
name: import("zod").ZodString;
|
|
1061
|
+
organizationId: import("zod").ZodString;
|
|
1062
|
+
createdAt: import("zod").ZodDate;
|
|
1063
|
+
createdBy: import("zod").ZodNullable<import("zod").ZodString>;
|
|
1064
|
+
org: import("zod").ZodObject<{
|
|
1065
|
+
id: import("zod").ZodString;
|
|
1066
|
+
name: import("zod").ZodString;
|
|
1067
|
+
}, import("zod/v4/core").$strip>;
|
|
1068
|
+
}, import("zod/v4/core").$strip>>, Record<never, never>, Record<never, never>>;
|
|
1069
|
+
update: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
1070
|
+
projectId: import("zod").ZodString;
|
|
1071
|
+
name: import("zod").ZodString;
|
|
1072
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
|
|
1073
|
+
};
|
|
488
1074
|
session: {
|
|
1075
|
+
linkDeviceSession: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
1076
|
+
newAccessToken: import("zod").ZodString;
|
|
1077
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
|
|
489
1078
|
me: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, import("zod").ZodObject<{
|
|
490
1079
|
id: import("zod").ZodString;
|
|
491
1080
|
name: import("zod").ZodString;
|
|
@@ -495,8 +1084,45 @@ export declare const contract: {
|
|
|
495
1084
|
createdAt: import("zod").ZodDate;
|
|
496
1085
|
updatedAt: import("zod").ZodDate;
|
|
497
1086
|
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
498
|
-
|
|
499
|
-
|
|
1087
|
+
};
|
|
1088
|
+
apiKey: {
|
|
1089
|
+
create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
1090
|
+
organizationId: import("zod").ZodString;
|
|
1091
|
+
name: import("zod").ZodString;
|
|
1092
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1093
|
+
id: import("zod").ZodString;
|
|
1094
|
+
name: import("zod").ZodNullable<import("zod").ZodString>;
|
|
1095
|
+
start: import("zod").ZodNullable<import("zod").ZodString>;
|
|
1096
|
+
createdAt: import("zod").ZodDate;
|
|
1097
|
+
updatedAt: import("zod").ZodDate;
|
|
1098
|
+
expiresAt: import("zod").ZodNullable<import("zod").ZodDate>;
|
|
1099
|
+
key: import("zod").ZodString;
|
|
1100
|
+
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
1101
|
+
delete: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
1102
|
+
keyId: import("zod").ZodString;
|
|
1103
|
+
organizationId: import("zod").ZodString;
|
|
500
1104
|
}, import("zod/v4/core").$strip>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
|
|
1105
|
+
list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
1106
|
+
organizationId: import("zod").ZodString;
|
|
1107
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodArray<import("zod").ZodObject<{
|
|
1108
|
+
id: import("zod").ZodString;
|
|
1109
|
+
name: import("zod").ZodNullable<import("zod").ZodString>;
|
|
1110
|
+
start: import("zod").ZodNullable<import("zod").ZodString>;
|
|
1111
|
+
createdAt: import("zod").ZodDate;
|
|
1112
|
+
updatedAt: import("zod").ZodDate;
|
|
1113
|
+
expiresAt: import("zod").ZodNullable<import("zod").ZodDate>;
|
|
1114
|
+
}, import("zod/v4/core").$strip>>, Record<never, never>, Record<never, never>>;
|
|
1115
|
+
update: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
1116
|
+
keyId: import("zod").ZodString;
|
|
1117
|
+
name: import("zod").ZodString;
|
|
1118
|
+
organizationId: import("zod").ZodString;
|
|
1119
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1120
|
+
id: import("zod").ZodString;
|
|
1121
|
+
name: import("zod").ZodNullable<import("zod").ZodString>;
|
|
1122
|
+
start: import("zod").ZodNullable<import("zod").ZodString>;
|
|
1123
|
+
createdAt: import("zod").ZodDate;
|
|
1124
|
+
updatedAt: import("zod").ZodDate;
|
|
1125
|
+
expiresAt: import("zod").ZodNullable<import("zod").ZodDate>;
|
|
1126
|
+
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
501
1127
|
};
|
|
502
1128
|
};
|
package/dist/index.js
CHANGED
|
@@ -7,19 +7,67 @@ import { orgContract } from "./org.js";
|
|
|
7
7
|
import { projectContract } from "./project.js";
|
|
8
8
|
import { runtimeContract } from "./runtime.js";
|
|
9
9
|
export { AUTOMATION_SDK_VERSION, deploymentTriggerInfoSchema, } from "./deployment.js";
|
|
10
|
+
export { runtimeContract } from "./runtime.js";
|
|
10
11
|
export { createdOrganizationApiKeyOutputSchema, organizationApiKeyOutputSchema, } from "./api-key.js";
|
|
11
12
|
export { integrationServiceManifestSchema, } from "./authorization.js";
|
|
12
13
|
export { activeSubscriptionOutputSchema, createdInvitationOutputSchema, organizationDetailsOutputSchema, organizationInvitationOutputSchema, organizationMemberOutputSchema, organizationProjectOutputSchema, organizationRoleSchema, organizationSummaryOutputSchema, publicOrganizationOutputSchema, } from "./org.js";
|
|
13
14
|
export { projectOutputSchema, projectWithOrganizationOutputSchema, } from "./project.js";
|
|
14
15
|
export { reasonableNameSchema } from "./schemas.js";
|
|
15
16
|
export { userOutputSchema } from "./auth.js";
|
|
16
|
-
|
|
17
|
+
/** Procedures exposed by the public Node client and OpenAPI document. */
|
|
18
|
+
export const publicContract = {
|
|
17
19
|
apiKey: apiKeyContract,
|
|
18
|
-
|
|
20
|
+
org: {
|
|
21
|
+
create: orgContract.create,
|
|
22
|
+
delete: orgContract.delete,
|
|
23
|
+
get: orgContract.get,
|
|
24
|
+
invite: orgContract.invite,
|
|
25
|
+
leave: orgContract.leave,
|
|
26
|
+
list: orgContract.list,
|
|
27
|
+
remove: orgContract.remove,
|
|
28
|
+
update: orgContract.update,
|
|
29
|
+
},
|
|
30
|
+
project: {
|
|
31
|
+
create: projectContract.create,
|
|
32
|
+
delete: projectContract.delete,
|
|
33
|
+
get: projectContract.get,
|
|
34
|
+
list: projectContract.list,
|
|
35
|
+
update: projectContract.update,
|
|
36
|
+
},
|
|
37
|
+
session: {
|
|
38
|
+
me: authContract.me,
|
|
39
|
+
},
|
|
40
|
+
};
|
|
41
|
+
/** Procedures used by first-party control-plane clients. */
|
|
42
|
+
export const firstPartyContract = {
|
|
43
|
+
...publicContract,
|
|
44
|
+
authorization: {
|
|
45
|
+
beginConnection: authorizationContract.beginConnection,
|
|
46
|
+
get: authorizationContract.get,
|
|
47
|
+
selectAccount: authorizationContract.selectAccount,
|
|
48
|
+
submitCredentials: authorizationContract.submitCredentials,
|
|
49
|
+
},
|
|
19
50
|
deployment: deploymentContract,
|
|
51
|
+
org: {
|
|
52
|
+
...publicContract.org,
|
|
53
|
+
canInvite: orgContract.canInvite,
|
|
54
|
+
},
|
|
55
|
+
project: {
|
|
56
|
+
...publicContract.project,
|
|
57
|
+
canCreate: projectContract.canCreate,
|
|
58
|
+
},
|
|
59
|
+
session: {
|
|
60
|
+
...publicContract.session,
|
|
61
|
+
linkDeviceSession: authContract.linkDeviceSession,
|
|
62
|
+
},
|
|
63
|
+
};
|
|
64
|
+
/** Complete contract implemented by the API service. */
|
|
65
|
+
export const contract = {
|
|
66
|
+
...firstPartyContract,
|
|
67
|
+
authorization: {
|
|
68
|
+
...firstPartyContract.authorization,
|
|
69
|
+
callback: authorizationContract.callback,
|
|
70
|
+
},
|
|
20
71
|
events: eventsContract,
|
|
21
|
-
org: orgContract,
|
|
22
|
-
project: projectContract,
|
|
23
72
|
runtime: runtimeContract,
|
|
24
|
-
session: authContract,
|
|
25
73
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@automate.ax/api-contract",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.1",
|
|
4
4
|
"description": "Public oRPC contract for the Automate.ax API.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"cjs": false
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@automate.ax/codec": "0.7.
|
|
26
|
+
"@automate.ax/codec": "0.7.1",
|
|
27
27
|
"@orpc/contract": "1.13.14",
|
|
28
28
|
"zod": "^4.3.6"
|
|
29
29
|
},
|