@workwae/sdk 0.1.0-alpha.6 → 0.1.0-alpha.7
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/client.d.ts +2 -2
- package/contract/accounts/routes.d.ts +40 -96
- package/contract/ai/routes.d.ts +4 -19
- package/contract/audit-log/routes.d.ts +4 -6
- package/contract/calendar/routes.d.ts +48 -248
- package/contract/connect/routes.d.ts +24 -74
- package/contract/connect-domain/routes.d.ts +15 -29
- package/contract/contacts/routes.d.ts +28 -102
- package/contract/email-validation/routes.d.ts +8 -8
- package/contract/errors.d.ts +4 -8
- package/contract/events/routes.d.ts +4 -4
- package/contract/exports/routes.d.ts +20 -28
- package/contract/identities/routes.d.ts +24 -51
- package/contract/mail/routes.d.ts +44 -201
- package/contract/mcp-keys/routes.d.ts +12 -16
- package/contract/meetings/routes.d.ts +36 -60
- package/contract/oauth-apps/routes.d.ts +15 -25
- package/contract/org-connections/routes.d.ts +43 -104
- package/contract/primitives.d.ts +7 -4
- package/contract/reasons.d.ts +0 -1
- package/contract/router.d.ts +620 -1582
- package/contract/scheduling/routes.d.ts +32 -81
- package/contract/send/routes.d.ts +56 -209
- package/contract/settings/routes.d.ts +7 -9
- package/contract/suppressions/routes.d.ts +48 -50
- package/contract/templates/routes.d.ts +30 -37
- package/contract/threads/routes.d.ts +16 -56
- package/contract/tracking-domain/routes.d.ts +15 -28
- package/contract/usage/routes.d.ts +4 -4
- package/contract/webhooks/routes.d.ts +43 -66
- package/errors.d.ts +2 -0
- package/index.js +1 -1
- package/package.json +4 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
2
|
export declare const mcpKeys: {
|
|
3
|
-
create: import("@orpc/contract").
|
|
3
|
+
create: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
|
|
4
4
|
accountId: z.ZodUUID;
|
|
5
5
|
name: z.ZodDefault<z.ZodString>;
|
|
6
6
|
scopes: z.ZodArray<z.ZodEnum<{
|
|
@@ -44,7 +44,7 @@ export declare const mcpKeys: {
|
|
|
44
44
|
}, z.core.$strip>>;
|
|
45
45
|
key: z.ZodString;
|
|
46
46
|
mcpUrl: z.ZodURL;
|
|
47
|
-
}, z.core.$strip>,
|
|
47
|
+
}, z.core.$strip>, Omit<import("../errors.js").DeclaredErrors<{
|
|
48
48
|
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
49
49
|
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
50
50
|
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
@@ -61,17 +61,15 @@ export declare const mcpKeys: {
|
|
|
61
61
|
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
62
62
|
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
63
63
|
readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
|
|
64
|
-
}
|
|
64
|
+
}>, "account_not_found" | "mcp_key_limit"> & {
|
|
65
65
|
mcp_key_limit: {
|
|
66
|
-
status: 409;
|
|
67
66
|
message: string;
|
|
68
67
|
};
|
|
69
68
|
account_not_found: {
|
|
70
|
-
status: 404;
|
|
71
69
|
message: string;
|
|
72
70
|
};
|
|
73
|
-
}
|
|
74
|
-
list: import("@orpc/contract").
|
|
71
|
+
}>;
|
|
72
|
+
list: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
|
|
75
73
|
accountId: z.ZodUUID;
|
|
76
74
|
}, z.core.$strip>, z.ZodObject<{
|
|
77
75
|
items: z.ZodArray<z.ZodObject<{
|
|
@@ -98,7 +96,7 @@ export declare const mcpKeys: {
|
|
|
98
96
|
externalRecipientConfirmation: z.ZodOptional<z.ZodBoolean>;
|
|
99
97
|
}, z.core.$strip>>;
|
|
100
98
|
}, z.core.$strip>>;
|
|
101
|
-
}, z.core.$strip>,
|
|
99
|
+
}, z.core.$strip>, Omit<import("../errors.js").DeclaredErrors<{
|
|
102
100
|
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
103
101
|
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
104
102
|
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
@@ -115,13 +113,13 @@ export declare const mcpKeys: {
|
|
|
115
113
|
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
116
114
|
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
117
115
|
readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
|
|
118
|
-
}
|
|
116
|
+
}>, "account_not_found"> & import("../errors.js").DeclaredErrors<{
|
|
119
117
|
readonly account_not_found: "The account does not exist, or the caller is an account token for another account.";
|
|
120
|
-
}
|
|
121
|
-
delete: import("@orpc/contract").
|
|
118
|
+
}>>;
|
|
119
|
+
delete: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
|
|
122
120
|
accountId: z.ZodUUID;
|
|
123
121
|
keyId: z.ZodUUID;
|
|
124
|
-
}, z.core.$strip>, z.ZodVoid,
|
|
122
|
+
}, z.core.$strip>, z.ZodVoid, Omit<import("../errors.js").DeclaredErrors<{
|
|
125
123
|
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
126
124
|
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
127
125
|
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
@@ -138,14 +136,12 @@ export declare const mcpKeys: {
|
|
|
138
136
|
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
139
137
|
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
140
138
|
readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
|
|
141
|
-
}
|
|
139
|
+
}>, "account_not_found" | "mcp_key_not_found"> & {
|
|
142
140
|
mcp_key_not_found: {
|
|
143
|
-
status: 404;
|
|
144
141
|
message: string;
|
|
145
142
|
};
|
|
146
143
|
account_not_found: {
|
|
147
|
-
status: 404;
|
|
148
144
|
message: string;
|
|
149
145
|
};
|
|
150
|
-
}
|
|
146
|
+
}>;
|
|
151
147
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
2
|
export declare const meetingApps: {
|
|
3
|
-
list: import("@orpc/contract").
|
|
3
|
+
list: import("@orpc/contract").ProcedureContractBuilderWithOutput<z.ZodObject<{
|
|
4
4
|
items: z.ZodArray<z.ZodObject<{
|
|
5
5
|
id: z.ZodUUID;
|
|
6
6
|
kind: z.ZodEnum<{
|
|
@@ -28,7 +28,7 @@ export declare const meetingApps: {
|
|
|
28
28
|
redirectUri: z.ZodNullable<z.ZodString>;
|
|
29
29
|
createdAt: z.ZodPreprocess<z.ZodDate, Date>;
|
|
30
30
|
}, z.core.$strip>>;
|
|
31
|
-
}, z.core.$strip>,
|
|
31
|
+
}, z.core.$strip>, Omit<import("../errors.js").DeclaredErrors<{
|
|
32
32
|
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
33
33
|
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
34
34
|
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
@@ -45,10 +45,10 @@ export declare const meetingApps: {
|
|
|
45
45
|
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
46
46
|
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
47
47
|
readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
|
|
48
|
-
}
|
|
48
|
+
}>, "plan_module_unavailable"> & import("../errors.js").DeclaredErrors<{
|
|
49
49
|
readonly plan_module_unavailable: `The tenant's plan does not include ${string}.`;
|
|
50
|
-
}
|
|
51
|
-
create: import("@orpc/contract").
|
|
50
|
+
}>>;
|
|
51
|
+
create: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodDiscriminatedUnion<[
|
|
52
52
|
z.ZodObject<{
|
|
53
53
|
kind: z.ZodLiteral<"zoom_oauth">;
|
|
54
54
|
name: z.ZodString;
|
|
@@ -105,7 +105,7 @@ export declare const meetingApps: {
|
|
|
105
105
|
useConnectDomain: z.ZodBoolean;
|
|
106
106
|
redirectUri: z.ZodNullable<z.ZodString>;
|
|
107
107
|
createdAt: z.ZodPreprocess<z.ZodDate, Date>;
|
|
108
|
-
}, z.core.$strip>,
|
|
108
|
+
}, z.core.$strip>, Omit<import("../errors.js").DeclaredErrors<{
|
|
109
109
|
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
110
110
|
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
111
111
|
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
@@ -122,25 +122,21 @@ export declare const meetingApps: {
|
|
|
122
122
|
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
123
123
|
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
124
124
|
readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
|
|
125
|
-
}
|
|
125
|
+
}>, "connect_domain_inactive" | "plan_module_unavailable" | "connect_domain_unsupported" | "meeting_app_exists"> & {
|
|
126
126
|
meeting_app_exists: {
|
|
127
|
-
status: 409;
|
|
128
127
|
message: string;
|
|
129
128
|
};
|
|
130
129
|
connect_domain_inactive: {
|
|
131
|
-
status: 409;
|
|
132
130
|
message: string;
|
|
133
131
|
};
|
|
134
132
|
connect_domain_unsupported: {
|
|
135
|
-
status: 400;
|
|
136
133
|
message: string;
|
|
137
134
|
};
|
|
138
135
|
plan_module_unavailable: {
|
|
139
|
-
status: 403;
|
|
140
136
|
message: string;
|
|
141
137
|
};
|
|
142
|
-
}
|
|
143
|
-
update: import("@orpc/contract").
|
|
138
|
+
}>;
|
|
139
|
+
update: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
|
|
144
140
|
appId: z.ZodUUID;
|
|
145
141
|
useConnectDomain: z.ZodOptional<z.ZodBoolean>;
|
|
146
142
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -169,7 +165,7 @@ export declare const meetingApps: {
|
|
|
169
165
|
useConnectDomain: z.ZodBoolean;
|
|
170
166
|
redirectUri: z.ZodNullable<z.ZodString>;
|
|
171
167
|
createdAt: z.ZodPreprocess<z.ZodDate, Date>;
|
|
172
|
-
}, z.core.$strip>,
|
|
168
|
+
}, z.core.$strip>, Omit<import("../errors.js").DeclaredErrors<{
|
|
173
169
|
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
174
170
|
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
175
171
|
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
@@ -186,25 +182,21 @@ export declare const meetingApps: {
|
|
|
186
182
|
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
187
183
|
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
188
184
|
readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
|
|
189
|
-
}
|
|
185
|
+
}>, "connect_domain_inactive" | "plan_module_unavailable" | "connect_domain_unsupported" | "meeting_app_not_found"> & {
|
|
190
186
|
connect_domain_inactive: {
|
|
191
|
-
status: 409;
|
|
192
187
|
message: string;
|
|
193
188
|
};
|
|
194
189
|
connect_domain_unsupported: {
|
|
195
|
-
status: 400;
|
|
196
190
|
message: string;
|
|
197
191
|
};
|
|
198
192
|
meeting_app_not_found: {
|
|
199
|
-
status: 404;
|
|
200
193
|
message: string;
|
|
201
194
|
};
|
|
202
195
|
plan_module_unavailable: {
|
|
203
|
-
status: 403;
|
|
204
196
|
message: string;
|
|
205
197
|
};
|
|
206
|
-
}
|
|
207
|
-
test: import("@orpc/contract").
|
|
198
|
+
}>;
|
|
199
|
+
test: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
|
|
208
200
|
appId: z.ZodUUID;
|
|
209
201
|
user: z.ZodOptional<z.ZodEmail>;
|
|
210
202
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -240,7 +232,7 @@ export declare const meetingApps: {
|
|
|
240
232
|
isOk: z.ZodBoolean;
|
|
241
233
|
detail: z.ZodString;
|
|
242
234
|
}, z.core.$strip>>;
|
|
243
|
-
}, z.core.$strip>,
|
|
235
|
+
}, z.core.$strip>, Omit<import("../errors.js").DeclaredErrors<{
|
|
244
236
|
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
245
237
|
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
246
238
|
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
@@ -257,23 +249,20 @@ export declare const meetingApps: {
|
|
|
257
249
|
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
258
250
|
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
259
251
|
readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
|
|
260
|
-
}
|
|
252
|
+
}>, "plan_module_unavailable" | "meeting_app_not_found" | "not_testable"> & {
|
|
261
253
|
not_testable: {
|
|
262
|
-
status: 400;
|
|
263
254
|
message: string;
|
|
264
255
|
};
|
|
265
256
|
meeting_app_not_found: {
|
|
266
|
-
status: 404;
|
|
267
257
|
message: string;
|
|
268
258
|
};
|
|
269
259
|
plan_module_unavailable: {
|
|
270
|
-
status: 403;
|
|
271
260
|
message: string;
|
|
272
261
|
};
|
|
273
|
-
}
|
|
274
|
-
delete: import("@orpc/contract").
|
|
262
|
+
}>;
|
|
263
|
+
delete: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
|
|
275
264
|
appId: z.ZodUUID;
|
|
276
|
-
}, z.core.$strip>, z.ZodVoid,
|
|
265
|
+
}, z.core.$strip>, z.ZodVoid, Omit<import("../errors.js").DeclaredErrors<{
|
|
277
266
|
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
278
267
|
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
279
268
|
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
@@ -290,19 +279,17 @@ export declare const meetingApps: {
|
|
|
290
279
|
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
291
280
|
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
292
281
|
readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
|
|
293
|
-
}
|
|
282
|
+
}>, "meeting_app_not_found" | "meeting_app_in_use"> & {
|
|
294
283
|
meeting_app_in_use: {
|
|
295
|
-
status: 409;
|
|
296
284
|
message: string;
|
|
297
285
|
};
|
|
298
286
|
meeting_app_not_found: {
|
|
299
|
-
status: 404;
|
|
300
287
|
message: string;
|
|
301
288
|
};
|
|
302
|
-
}
|
|
289
|
+
}>;
|
|
303
290
|
};
|
|
304
291
|
export declare const meetingConnections: {
|
|
305
|
-
list: import("@orpc/contract").
|
|
292
|
+
list: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
|
|
306
293
|
accountId: z.ZodUUID;
|
|
307
294
|
}, z.core.$strip>, z.ZodObject<{
|
|
308
295
|
items: z.ZodArray<z.ZodObject<{
|
|
@@ -321,7 +308,7 @@ export declare const meetingConnections: {
|
|
|
321
308
|
createdAt: z.ZodPreprocess<z.ZodDate, Date>;
|
|
322
309
|
updatedAt: z.ZodPreprocess<z.ZodDate, Date>;
|
|
323
310
|
}, z.core.$strip>>;
|
|
324
|
-
}, z.core.$strip>,
|
|
311
|
+
}, z.core.$strip>, Omit<import("../errors.js").DeclaredErrors<{
|
|
325
312
|
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
326
313
|
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
327
314
|
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
@@ -338,23 +325,21 @@ export declare const meetingConnections: {
|
|
|
338
325
|
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
339
326
|
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
340
327
|
readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
|
|
341
|
-
}
|
|
328
|
+
}>, "account_not_found" | "plan_module_unavailable"> & {
|
|
342
329
|
account_not_found: {
|
|
343
|
-
status: 404;
|
|
344
330
|
message: string;
|
|
345
331
|
};
|
|
346
332
|
plan_module_unavailable: {
|
|
347
|
-
status: 403;
|
|
348
333
|
message: string;
|
|
349
334
|
};
|
|
350
|
-
}
|
|
351
|
-
delete: import("@orpc/contract").
|
|
335
|
+
}>;
|
|
336
|
+
delete: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
|
|
352
337
|
accountId: z.ZodUUID;
|
|
353
338
|
service: z.ZodEnum<{
|
|
354
339
|
zoom: "zoom";
|
|
355
340
|
webex: "webex";
|
|
356
341
|
}>;
|
|
357
|
-
}, z.core.$strip>, z.ZodVoid,
|
|
342
|
+
}, z.core.$strip>, z.ZodVoid, Omit<import("../errors.js").DeclaredErrors<{
|
|
358
343
|
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
359
344
|
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
360
345
|
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
@@ -371,19 +356,17 @@ export declare const meetingConnections: {
|
|
|
371
356
|
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
372
357
|
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
373
358
|
readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
|
|
374
|
-
}
|
|
359
|
+
}>, "account_not_found" | "meeting_connection_not_found"> & {
|
|
375
360
|
meeting_connection_not_found: {
|
|
376
|
-
status: 404;
|
|
377
361
|
message: string;
|
|
378
362
|
};
|
|
379
363
|
account_not_found: {
|
|
380
|
-
status: 404;
|
|
381
364
|
message: string;
|
|
382
365
|
};
|
|
383
|
-
}
|
|
366
|
+
}>;
|
|
384
367
|
};
|
|
385
368
|
export declare const meetingConnectSessions: {
|
|
386
|
-
create: import("@orpc/contract").
|
|
369
|
+
create: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
|
|
387
370
|
accountId: z.ZodUUID;
|
|
388
371
|
service: z.ZodEnum<{
|
|
389
372
|
zoom: "zoom";
|
|
@@ -397,7 +380,7 @@ export declare const meetingConnectSessions: {
|
|
|
397
380
|
id: z.ZodUUID;
|
|
398
381
|
url: z.ZodURL;
|
|
399
382
|
expiresAt: z.ZodPreprocess<z.ZodDate, Date>;
|
|
400
|
-
}, z.core.$strip>,
|
|
383
|
+
}, z.core.$strip>, Omit<import("../errors.js").DeclaredErrors<{
|
|
401
384
|
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
402
385
|
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
403
386
|
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
@@ -414,39 +397,32 @@ export declare const meetingConnectSessions: {
|
|
|
414
397
|
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
415
398
|
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
416
399
|
readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
|
|
417
|
-
}
|
|
400
|
+
}>, "provider_not_configured" | "account_not_found" | "unknown_meeting_app" | "meeting_app_mismatch" | "meeting_app_secret_unreadable" | "plan_module_unavailable" | "redirect_uri_not_allowed"> & {
|
|
418
401
|
provider_not_configured: {
|
|
419
|
-
status: 400;
|
|
420
402
|
message: string;
|
|
421
403
|
};
|
|
422
404
|
unknown_meeting_app: {
|
|
423
|
-
status: 422;
|
|
424
405
|
message: string;
|
|
425
406
|
};
|
|
426
407
|
meeting_app_mismatch: {
|
|
427
|
-
status: 400;
|
|
428
408
|
message: string;
|
|
429
409
|
};
|
|
430
410
|
meeting_app_secret_unreadable: {
|
|
431
|
-
status: 400;
|
|
432
411
|
message: string;
|
|
433
412
|
};
|
|
434
413
|
redirect_uri_not_allowed: {
|
|
435
|
-
status: 400;
|
|
436
414
|
message: string;
|
|
437
415
|
};
|
|
438
416
|
account_not_found: {
|
|
439
|
-
status: 404;
|
|
440
417
|
message: string;
|
|
441
418
|
};
|
|
442
419
|
plan_module_unavailable: {
|
|
443
|
-
status: 403;
|
|
444
420
|
message: string;
|
|
445
421
|
};
|
|
446
|
-
}
|
|
422
|
+
}>;
|
|
447
423
|
};
|
|
448
424
|
export declare const hostedMeetingConnectSessions: {
|
|
449
|
-
get: import("@orpc/contract").
|
|
425
|
+
get: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
|
|
450
426
|
token: z.ZodString;
|
|
451
427
|
}, z.core.$strip>, z.ZodObject<{
|
|
452
428
|
tenantName: z.ZodString;
|
|
@@ -461,7 +437,7 @@ export declare const hostedMeetingConnectSessions: {
|
|
|
461
437
|
failed: "failed";
|
|
462
438
|
}>;
|
|
463
439
|
expiresAt: z.ZodPreprocess<z.ZodDate, Date>;
|
|
464
|
-
}, z.core.$strip>,
|
|
440
|
+
}, z.core.$strip>, Omit<import("../errors.js").DeclaredErrors<{
|
|
465
441
|
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
466
442
|
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
467
443
|
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
@@ -478,7 +454,7 @@ export declare const hostedMeetingConnectSessions: {
|
|
|
478
454
|
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
479
455
|
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
480
456
|
readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
|
|
481
|
-
}
|
|
457
|
+
}>, "meeting_connect_session_not_found"> & import("../errors.js").DeclaredErrors<{
|
|
482
458
|
readonly meeting_connect_session_not_found: "No session has this token, or its account no longer exists.";
|
|
483
|
-
}
|
|
459
|
+
}>>;
|
|
484
460
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
2
|
export declare const oauthApps: {
|
|
3
|
-
list: import("@orpc/contract").
|
|
3
|
+
list: import("@orpc/contract").ProcedureContractBuilderWithOutput<z.ZodObject<{
|
|
4
4
|
items: z.ZodArray<z.ZodObject<{
|
|
5
5
|
id: z.ZodUUID;
|
|
6
6
|
provider: z.ZodEnum<{
|
|
@@ -25,7 +25,7 @@ export declare const oauthApps: {
|
|
|
25
25
|
gmailPushEndpoint: z.ZodNullable<z.ZodURL>;
|
|
26
26
|
createdAt: z.ZodPreprocess<z.ZodDate, Date>;
|
|
27
27
|
}, z.core.$strip>>;
|
|
28
|
-
}, z.core.$strip>, import("
|
|
28
|
+
}, z.core.$strip>, import("../errors.js").DeclaredErrors<{
|
|
29
29
|
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
30
30
|
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
31
31
|
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
@@ -42,8 +42,8 @@ export declare const oauthApps: {
|
|
|
42
42
|
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
43
43
|
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
44
44
|
readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
|
|
45
|
-
}
|
|
46
|
-
create: import("@orpc/contract").
|
|
45
|
+
}>>;
|
|
46
|
+
create: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
|
|
47
47
|
provider: z.ZodEnum<{
|
|
48
48
|
google: "google";
|
|
49
49
|
microsoft: "microsoft";
|
|
@@ -82,7 +82,7 @@ export declare const oauthApps: {
|
|
|
82
82
|
}, z.core.$strip>>;
|
|
83
83
|
gmailPushEndpoint: z.ZodNullable<z.ZodURL>;
|
|
84
84
|
createdAt: z.ZodPreprocess<z.ZodDate, Date>;
|
|
85
|
-
}, z.core.$strip>,
|
|
85
|
+
}, z.core.$strip>, Omit<import("../errors.js").DeclaredErrors<{
|
|
86
86
|
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
87
87
|
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
88
88
|
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
@@ -99,21 +99,18 @@ export declare const oauthApps: {
|
|
|
99
99
|
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
100
100
|
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
101
101
|
readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
|
|
102
|
-
}
|
|
102
|
+
}>, "connect_domain_inactive" | "cloud_required" | "not_microsoft"> & {
|
|
103
103
|
cloud_required: {
|
|
104
|
-
status: 400;
|
|
105
104
|
message: string;
|
|
106
105
|
};
|
|
107
106
|
not_microsoft: {
|
|
108
|
-
status: 400;
|
|
109
107
|
message: string;
|
|
110
108
|
};
|
|
111
109
|
connect_domain_inactive: {
|
|
112
|
-
status: 409;
|
|
113
110
|
message: string;
|
|
114
111
|
};
|
|
115
|
-
}
|
|
116
|
-
update: import("@orpc/contract").
|
|
112
|
+
}>;
|
|
113
|
+
update: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
|
|
117
114
|
appId: z.ZodUUID;
|
|
118
115
|
name: z.ZodOptional<z.ZodString>;
|
|
119
116
|
clientSecret: z.ZodOptional<z.ZodString>;
|
|
@@ -146,7 +143,7 @@ export declare const oauthApps: {
|
|
|
146
143
|
}, z.core.$strip>>;
|
|
147
144
|
gmailPushEndpoint: z.ZodNullable<z.ZodURL>;
|
|
148
145
|
createdAt: z.ZodPreprocess<z.ZodDate, Date>;
|
|
149
|
-
}, z.core.$strip>,
|
|
146
|
+
}, z.core.$strip>, Omit<import("../errors.js").DeclaredErrors<{
|
|
150
147
|
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
151
148
|
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
152
149
|
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
@@ -163,31 +160,26 @@ export declare const oauthApps: {
|
|
|
163
160
|
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
164
161
|
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
165
162
|
readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
|
|
166
|
-
}
|
|
163
|
+
}>, "connect_domain_inactive" | "oauth_app_not_found" | "gmail_push_unsupported" | "push_unavailable" | "not_microsoft"> & {
|
|
167
164
|
gmail_push_unsupported: {
|
|
168
|
-
status: 400;
|
|
169
165
|
message: string;
|
|
170
166
|
};
|
|
171
167
|
push_unavailable: {
|
|
172
|
-
status: 400;
|
|
173
168
|
message: string;
|
|
174
169
|
};
|
|
175
170
|
not_microsoft: {
|
|
176
|
-
status: 400;
|
|
177
171
|
message: string;
|
|
178
172
|
};
|
|
179
173
|
connect_domain_inactive: {
|
|
180
|
-
status: 409;
|
|
181
174
|
message: string;
|
|
182
175
|
};
|
|
183
176
|
oauth_app_not_found: {
|
|
184
|
-
status: 404;
|
|
185
177
|
message: string;
|
|
186
178
|
};
|
|
187
|
-
}
|
|
188
|
-
delete: import("@orpc/contract").
|
|
179
|
+
}>;
|
|
180
|
+
delete: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
|
|
189
181
|
appId: z.ZodUUID;
|
|
190
|
-
}, z.core.$strip>, z.ZodVoid,
|
|
182
|
+
}, z.core.$strip>, z.ZodVoid, Omit<import("../errors.js").DeclaredErrors<{
|
|
191
183
|
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
192
184
|
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
193
185
|
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
@@ -204,14 +196,12 @@ export declare const oauthApps: {
|
|
|
204
196
|
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
205
197
|
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
206
198
|
readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
|
|
207
|
-
}
|
|
199
|
+
}>, "oauth_app_not_found" | "oauth_app_in_use"> & {
|
|
208
200
|
oauth_app_in_use: {
|
|
209
|
-
status: 409;
|
|
210
201
|
message: string;
|
|
211
202
|
};
|
|
212
203
|
oauth_app_not_found: {
|
|
213
|
-
status: 404;
|
|
214
204
|
message: string;
|
|
215
205
|
};
|
|
216
|
-
}
|
|
206
|
+
}>;
|
|
217
207
|
};
|