@workwae/sdk 0.1.0-alpha.5 → 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/models.d.ts +0 -6
- 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 +645 -1582
- package/contract/scheduling/routes.d.ts +32 -81
- package/contract/send/models.d.ts +21 -0
- package/contract/send/routes.d.ts +81 -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,5 +1,5 @@
|
|
|
1
1
|
export declare const connectSessions: {
|
|
2
|
-
create: import("@orpc/contract").
|
|
2
|
+
create: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<import("zod").ZodObject<{
|
|
3
3
|
redirectUri: import("zod").ZodOptional<import("zod").ZodURL>;
|
|
4
4
|
providers: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodEnum<{
|
|
5
5
|
google: "google";
|
|
@@ -53,7 +53,7 @@ export declare const connectSessions: {
|
|
|
53
53
|
id: import("zod").ZodUUID;
|
|
54
54
|
url: import("zod").ZodURL;
|
|
55
55
|
expiresAt: import("zod").ZodPreprocess<import("zod").ZodDate, Date>;
|
|
56
|
-
}, import("zod/v4/core").$strip>,
|
|
56
|
+
}, import("zod/v4/core").$strip>, Omit<import("../errors.js").DeclaredErrors<{
|
|
57
57
|
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
58
58
|
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
59
59
|
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
@@ -70,59 +70,47 @@ export declare const connectSessions: {
|
|
|
70
70
|
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
71
71
|
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
72
72
|
readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
|
|
73
|
-
}
|
|
73
|
+
}>, "account_mismatch" | "unknown_oauth_app" | "oauth_app_mismatch" | "google_imap_requires_own_app" | "plan_module_unavailable" | "billing_past_due" | "mcp_key_limit" | "plan_limit_storage" | "storage_unavailable" | "mail_permissions_unsupported" | "unknown_account" | "redirect_uri_not_allowed" | "org_connection_account" | "shared_mailbox_account"> & {
|
|
74
74
|
account_mismatch: {
|
|
75
|
-
status: 409;
|
|
76
75
|
message: string;
|
|
77
76
|
};
|
|
78
77
|
unknown_oauth_app: {
|
|
79
|
-
status: 422;
|
|
80
78
|
message: string;
|
|
81
79
|
};
|
|
82
80
|
oauth_app_mismatch: {
|
|
83
|
-
status: 400;
|
|
84
81
|
message: string;
|
|
85
82
|
};
|
|
86
83
|
google_imap_requires_own_app: {
|
|
87
|
-
status: 400;
|
|
88
84
|
message: string;
|
|
89
85
|
};
|
|
90
86
|
mcp_key_limit: {
|
|
91
|
-
status: 409;
|
|
92
87
|
message: string;
|
|
93
88
|
};
|
|
94
89
|
plan_module_unavailable: {
|
|
95
|
-
status: 403;
|
|
96
90
|
message: string;
|
|
97
91
|
};
|
|
98
92
|
plan_limit_storage: import("../errors.js").DeclaredError<"plan_limit_storage">;
|
|
99
93
|
storage_unavailable: {
|
|
100
|
-
status: 400;
|
|
101
94
|
message: string;
|
|
102
95
|
};
|
|
103
96
|
billing_past_due: {
|
|
104
|
-
status: 402;
|
|
105
97
|
message: string;
|
|
106
98
|
};
|
|
107
99
|
mail_permissions_unsupported: {
|
|
108
|
-
status: 400;
|
|
109
100
|
message: string;
|
|
110
101
|
};
|
|
111
102
|
unknown_account: import("../errors.js").DeclaredError<"unknown_account">;
|
|
112
103
|
redirect_uri_not_allowed: {
|
|
113
|
-
status: 400;
|
|
114
104
|
message: string;
|
|
115
105
|
};
|
|
116
106
|
org_connection_account: {
|
|
117
|
-
status: 400;
|
|
118
107
|
message: string;
|
|
119
108
|
};
|
|
120
109
|
shared_mailbox_account: {
|
|
121
|
-
status: 400;
|
|
122
110
|
message: string;
|
|
123
111
|
};
|
|
124
|
-
}
|
|
125
|
-
get: import("@orpc/contract").
|
|
112
|
+
}>;
|
|
113
|
+
get: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<import("zod").ZodObject<{
|
|
126
114
|
sessionId: import("zod").ZodUUID;
|
|
127
115
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
128
116
|
id: import("zod").ZodUUID;
|
|
@@ -190,7 +178,7 @@ export declare const connectSessions: {
|
|
|
190
178
|
}>>;
|
|
191
179
|
expiresAt: import("zod").ZodPreprocess<import("zod").ZodDate, Date>;
|
|
192
180
|
createdAt: import("zod").ZodPreprocess<import("zod").ZodDate, Date>;
|
|
193
|
-
}, import("zod/v4/core").$strip>,
|
|
181
|
+
}, import("zod/v4/core").$strip>, Omit<import("../errors.js").DeclaredErrors<{
|
|
194
182
|
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
195
183
|
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
196
184
|
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
@@ -207,12 +195,12 @@ export declare const connectSessions: {
|
|
|
207
195
|
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
208
196
|
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
209
197
|
readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
|
|
210
|
-
}
|
|
198
|
+
}>, "connect_session_not_found"> & import("../errors.js").DeclaredErrors<{
|
|
211
199
|
readonly connect_session_not_found: "No session has this id (or token).";
|
|
212
|
-
}
|
|
200
|
+
}>>;
|
|
213
201
|
};
|
|
214
202
|
export declare const oauthAuthorizations: {
|
|
215
|
-
create: import("@orpc/contract").
|
|
203
|
+
create: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<import("zod").ZodObject<{
|
|
216
204
|
provider: import("zod").ZodEnum<{
|
|
217
205
|
google: "google";
|
|
218
206
|
microsoft: "microsoft";
|
|
@@ -250,7 +238,7 @@ export declare const oauthAuthorizations: {
|
|
|
250
238
|
}, import("zod/v4/core").$strip>>;
|
|
251
239
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
252
240
|
authorizeUrl: import("zod").ZodURL;
|
|
253
|
-
}, import("zod/v4/core").$strip>,
|
|
241
|
+
}, import("zod/v4/core").$strip>, Omit<import("../errors.js").DeclaredErrors<{
|
|
254
242
|
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
255
243
|
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
256
244
|
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
@@ -267,73 +255,58 @@ export declare const oauthAuthorizations: {
|
|
|
267
255
|
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
268
256
|
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
269
257
|
readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
|
|
270
|
-
}
|
|
258
|
+
}>, "provider_not_configured" | "account_mismatch" | "unknown_oauth_app" | "oauth_app_mismatch" | "oauth_app_secret_unreadable" | "google_imap_requires_own_app" | "connect_domain_inactive" | "plan_module_unavailable" | "connect_grants_nothing" | "billing_past_due" | "plan_limit_storage" | "storage_unavailable" | "mail_permissions_unsupported" | "unknown_account" | "redirect_uri_not_allowed" | "org_connection_account" | "shared_mailbox_account"> & {
|
|
271
259
|
account_mismatch: {
|
|
272
|
-
status: 409;
|
|
273
260
|
message: string;
|
|
274
261
|
};
|
|
275
262
|
google_imap_requires_own_app: {
|
|
276
|
-
status: 400;
|
|
277
263
|
message: string;
|
|
278
264
|
};
|
|
279
265
|
connect_domain_inactive: {
|
|
280
|
-
status: 409;
|
|
281
266
|
message: string;
|
|
282
267
|
};
|
|
283
268
|
connect_grants_nothing: {
|
|
284
|
-
status: 400;
|
|
285
269
|
message: string;
|
|
286
270
|
};
|
|
287
271
|
provider_not_configured: {
|
|
288
|
-
status: 400;
|
|
289
272
|
message: string;
|
|
290
273
|
};
|
|
291
274
|
unknown_oauth_app: {
|
|
292
|
-
status: 422;
|
|
293
275
|
message: string;
|
|
294
276
|
};
|
|
295
277
|
oauth_app_mismatch: {
|
|
296
|
-
status: 400;
|
|
297
278
|
message: string;
|
|
298
279
|
};
|
|
299
280
|
oauth_app_secret_unreadable: {
|
|
300
|
-
status: 400;
|
|
301
281
|
message: string;
|
|
302
282
|
};
|
|
303
283
|
plan_module_unavailable: {
|
|
304
|
-
status: 403;
|
|
305
284
|
message: string;
|
|
306
285
|
};
|
|
307
286
|
plan_limit_storage: import("../errors.js").DeclaredError<"plan_limit_storage">;
|
|
308
287
|
storage_unavailable: {
|
|
309
|
-
status: 400;
|
|
310
288
|
message: string;
|
|
311
289
|
};
|
|
312
290
|
billing_past_due: {
|
|
313
|
-
status: 402;
|
|
314
291
|
message: string;
|
|
315
292
|
};
|
|
316
293
|
mail_permissions_unsupported: {
|
|
317
|
-
status: 400;
|
|
318
294
|
message: string;
|
|
319
295
|
};
|
|
320
296
|
unknown_account: import("../errors.js").DeclaredError<"unknown_account">;
|
|
321
297
|
redirect_uri_not_allowed: {
|
|
322
|
-
status: 400;
|
|
323
298
|
message: string;
|
|
324
299
|
};
|
|
325
300
|
org_connection_account: {
|
|
326
|
-
status: 400;
|
|
327
301
|
message: string;
|
|
328
302
|
};
|
|
329
303
|
shared_mailbox_account: {
|
|
330
|
-
status: 400;
|
|
331
304
|
message: string;
|
|
332
305
|
};
|
|
333
|
-
}
|
|
306
|
+
}>;
|
|
334
307
|
};
|
|
335
308
|
export declare const hostedConnectSessions: {
|
|
336
|
-
get: import("@orpc/contract").
|
|
309
|
+
get: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<import("zod").ZodObject<{
|
|
337
310
|
token: import("zod").ZodString;
|
|
338
311
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
339
312
|
tenantName: import("zod").ZodString;
|
|
@@ -361,7 +334,7 @@ export declare const hostedConnectSessions: {
|
|
|
361
334
|
}, import("zod/v4/core").$strip>;
|
|
362
335
|
loginHint: import("zod").ZodNullable<import("zod").ZodString>;
|
|
363
336
|
expiresAt: import("zod").ZodPreprocess<import("zod").ZodDate, Date>;
|
|
364
|
-
}, import("zod/v4/core").$strip>,
|
|
337
|
+
}, import("zod/v4/core").$strip>, Omit<import("../errors.js").DeclaredErrors<{
|
|
365
338
|
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
366
339
|
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
367
340
|
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
@@ -378,10 +351,10 @@ export declare const hostedConnectSessions: {
|
|
|
378
351
|
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
379
352
|
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
380
353
|
readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
|
|
381
|
-
}
|
|
354
|
+
}>, "connect_session_not_found"> & import("../errors.js").DeclaredErrors<{
|
|
382
355
|
readonly connect_session_not_found: "No session has this id (or token).";
|
|
383
|
-
}
|
|
384
|
-
createImapAccount: import("@orpc/contract").
|
|
356
|
+
}>>;
|
|
357
|
+
createImapAccount: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<import("zod").ZodObject<{
|
|
385
358
|
token: import("zod").ZodString;
|
|
386
359
|
email: import("zod").ZodEmail;
|
|
387
360
|
displayName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -416,7 +389,7 @@ export declare const hostedConnectSessions: {
|
|
|
416
389
|
}, import("zod/v4/core").$strip>>;
|
|
417
390
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
418
391
|
redirectUrl: import("zod").ZodURL;
|
|
419
|
-
}, import("zod/v4/core").$strip>,
|
|
392
|
+
}, import("zod/v4/core").$strip>, Omit<import("../errors.js").DeclaredErrors<{
|
|
420
393
|
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
421
394
|
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
422
395
|
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
@@ -433,77 +406,60 @@ export declare const hostedConnectSessions: {
|
|
|
433
406
|
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
434
407
|
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
435
408
|
readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
|
|
436
|
-
}
|
|
409
|
+
}>, "session_used" | "session_expired" | "provider_not_allowed" | "provider_unavailable" | "account_exists" | "account_mismatch" | "account_not_found" | "provider_throttled" | "autodiscovery_failed" | "password_required" | "dav_discovery_failed" | "login_failed" | "server_not_allowed" | "plaintext_not_allowed" | "not_dav_server" | "connect_session_not_found" | "redirect_uri_not_allowed"> & {
|
|
437
410
|
account_exists: {
|
|
438
|
-
status: 409;
|
|
439
411
|
message: string;
|
|
440
412
|
};
|
|
441
413
|
account_mismatch: {
|
|
442
|
-
status: 409;
|
|
443
414
|
message: string;
|
|
444
415
|
};
|
|
445
416
|
account_not_found: {
|
|
446
|
-
status: 404;
|
|
447
417
|
message: string;
|
|
448
418
|
};
|
|
449
419
|
password_required: {
|
|
450
|
-
status: 400;
|
|
451
420
|
message: string;
|
|
452
421
|
};
|
|
453
422
|
provider_unavailable: {
|
|
454
|
-
status: 502;
|
|
455
423
|
message: string;
|
|
456
424
|
};
|
|
457
425
|
provider_throttled: {
|
|
458
|
-
status: 429;
|
|
459
426
|
message: string;
|
|
460
427
|
};
|
|
461
428
|
dav_discovery_failed: {
|
|
462
|
-
status: 400;
|
|
463
429
|
message: string;
|
|
464
430
|
};
|
|
465
431
|
not_dav_server: {
|
|
466
|
-
status: 400;
|
|
467
432
|
message: string;
|
|
468
433
|
};
|
|
469
434
|
autodiscovery_failed: {
|
|
470
|
-
status: 422;
|
|
471
435
|
message: string;
|
|
472
436
|
};
|
|
473
437
|
login_failed: {
|
|
474
|
-
status: 400;
|
|
475
438
|
message: string;
|
|
476
439
|
};
|
|
477
440
|
server_not_allowed: {
|
|
478
|
-
status: 400;
|
|
479
441
|
message: string;
|
|
480
442
|
};
|
|
481
443
|
plaintext_not_allowed: {
|
|
482
|
-
status: 400;
|
|
483
444
|
message: string;
|
|
484
445
|
};
|
|
485
446
|
session_used: {
|
|
486
|
-
status: 409;
|
|
487
447
|
message: string;
|
|
488
448
|
};
|
|
489
449
|
session_expired: {
|
|
490
|
-
status: 400;
|
|
491
450
|
message: string;
|
|
492
451
|
};
|
|
493
452
|
provider_not_allowed: {
|
|
494
|
-
status: 400;
|
|
495
453
|
message: string;
|
|
496
454
|
};
|
|
497
455
|
redirect_uri_not_allowed: {
|
|
498
|
-
status: 400;
|
|
499
456
|
message: string;
|
|
500
457
|
};
|
|
501
458
|
connect_session_not_found: {
|
|
502
|
-
status: 404;
|
|
503
459
|
message: string;
|
|
504
460
|
};
|
|
505
|
-
}
|
|
506
|
-
autoconfig: import("@orpc/contract").
|
|
461
|
+
}>;
|
|
462
|
+
autoconfig: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<import("zod").ZodObject<{
|
|
507
463
|
token: import("zod").ZodString;
|
|
508
464
|
email: import("zod").ZodEmail;
|
|
509
465
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
@@ -547,7 +503,7 @@ export declare const hostedConnectSessions: {
|
|
|
547
503
|
calendarUrl: import("zod").ZodNullable<import("zod").ZodString>;
|
|
548
504
|
contactsUrl: import("zod").ZodNullable<import("zod").ZodString>;
|
|
549
505
|
}, import("zod/v4/core").$strip>>;
|
|
550
|
-
}, import("zod/v4/core").$strip>,
|
|
506
|
+
}, import("zod/v4/core").$strip>, Omit<import("../errors.js").DeclaredErrors<{
|
|
551
507
|
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
552
508
|
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
553
509
|
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
@@ -564,30 +520,24 @@ export declare const hostedConnectSessions: {
|
|
|
564
520
|
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
565
521
|
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
566
522
|
readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
|
|
567
|
-
}
|
|
523
|
+
}>, "session_used" | "session_expired" | "provider_not_allowed" | "autodiscovery_failed" | "connect_session_not_found" | "redirect_uri_not_allowed"> & {
|
|
568
524
|
autodiscovery_failed: {
|
|
569
|
-
status: 422;
|
|
570
525
|
message: string;
|
|
571
526
|
};
|
|
572
527
|
session_used: {
|
|
573
|
-
status: 409;
|
|
574
528
|
message: string;
|
|
575
529
|
};
|
|
576
530
|
session_expired: {
|
|
577
|
-
status: 400;
|
|
578
531
|
message: string;
|
|
579
532
|
};
|
|
580
533
|
provider_not_allowed: {
|
|
581
|
-
status: 400;
|
|
582
534
|
message: string;
|
|
583
535
|
};
|
|
584
536
|
redirect_uri_not_allowed: {
|
|
585
|
-
status: 400;
|
|
586
537
|
message: string;
|
|
587
538
|
};
|
|
588
539
|
connect_session_not_found: {
|
|
589
|
-
status: 404;
|
|
590
540
|
message: string;
|
|
591
541
|
};
|
|
592
|
-
}
|
|
542
|
+
}>;
|
|
593
543
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
2
|
export declare const connectDomain: {
|
|
3
|
-
get: import("@orpc/contract").
|
|
3
|
+
get: import("@orpc/contract").ProcedureContractBuilderWithOutput<z.ZodObject<{
|
|
4
4
|
hostname: z.ZodString;
|
|
5
5
|
status: z.ZodEnum<{
|
|
6
6
|
active: "active";
|
|
@@ -20,7 +20,7 @@ export declare const connectDomain: {
|
|
|
20
20
|
error: z.ZodNullable<z.ZodString>;
|
|
21
21
|
activatedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
22
22
|
createdAt: z.ZodPreprocess<z.ZodDate, Date>;
|
|
23
|
-
}, z.core.$strip>,
|
|
23
|
+
}, z.core.$strip>, Omit<import("../errors.js").DeclaredErrors<{
|
|
24
24
|
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
25
25
|
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
26
26
|
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
@@ -37,17 +37,15 @@ export declare const connectDomain: {
|
|
|
37
37
|
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
38
38
|
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
39
39
|
readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
|
|
40
|
-
}
|
|
40
|
+
}>, "connect_domain_unavailable" | "connect_domain_not_found"> & {
|
|
41
41
|
connect_domain_not_found: {
|
|
42
|
-
status: 404;
|
|
43
42
|
message: string;
|
|
44
43
|
};
|
|
45
44
|
connect_domain_unavailable: {
|
|
46
|
-
status: 400;
|
|
47
45
|
message: string;
|
|
48
46
|
};
|
|
49
|
-
}
|
|
50
|
-
set: import("@orpc/contract").
|
|
47
|
+
}>;
|
|
48
|
+
set: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
|
|
51
49
|
hostname: z.ZodString;
|
|
52
50
|
}, z.core.$strip>, z.ZodObject<{
|
|
53
51
|
hostname: z.ZodString;
|
|
@@ -69,7 +67,7 @@ export declare const connectDomain: {
|
|
|
69
67
|
error: z.ZodNullable<z.ZodString>;
|
|
70
68
|
activatedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
71
69
|
createdAt: z.ZodPreprocess<z.ZodDate, Date>;
|
|
72
|
-
}, z.core.$strip>,
|
|
70
|
+
}, z.core.$strip>, Omit<import("../errors.js").DeclaredErrors<{
|
|
73
71
|
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
74
72
|
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
75
73
|
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
@@ -86,29 +84,24 @@ export declare const connectDomain: {
|
|
|
86
84
|
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
87
85
|
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
88
86
|
readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
|
|
89
|
-
}
|
|
87
|
+
}>, "connect_domain_unavailable" | "connect_domain_not_allowed" | "connect_domain_taken" | "connect_domain_in_use" | "connect_domain_edge_unavailable"> & {
|
|
90
88
|
connect_domain_not_allowed: {
|
|
91
|
-
status: 400;
|
|
92
89
|
message: string;
|
|
93
90
|
};
|
|
94
91
|
connect_domain_taken: {
|
|
95
|
-
status: 409;
|
|
96
92
|
message: string;
|
|
97
93
|
};
|
|
98
94
|
connect_domain_in_use: {
|
|
99
|
-
status: 409;
|
|
100
95
|
message: string;
|
|
101
96
|
};
|
|
102
97
|
connect_domain_edge_unavailable: {
|
|
103
|
-
status: 502;
|
|
104
98
|
message: string;
|
|
105
99
|
};
|
|
106
100
|
connect_domain_unavailable: {
|
|
107
|
-
status: 400;
|
|
108
101
|
message: string;
|
|
109
102
|
};
|
|
110
|
-
}
|
|
111
|
-
delete: import("@orpc/contract").
|
|
103
|
+
}>;
|
|
104
|
+
delete: import("@orpc/contract").ProcedureContractBuilderWithOutput<z.ZodVoid, Omit<import("../errors.js").DeclaredErrors<{
|
|
112
105
|
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
113
106
|
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
114
107
|
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
@@ -125,25 +118,21 @@ export declare const connectDomain: {
|
|
|
125
118
|
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
126
119
|
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
127
120
|
readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
|
|
128
|
-
}
|
|
121
|
+
}>, "connect_domain_unavailable" | "connect_domain_not_found" | "connect_domain_in_use" | "connect_domain_edge_unavailable"> & {
|
|
129
122
|
connect_domain_in_use: {
|
|
130
|
-
status: 409;
|
|
131
123
|
message: string;
|
|
132
124
|
};
|
|
133
125
|
connect_domain_edge_unavailable: {
|
|
134
|
-
status: 502;
|
|
135
126
|
message: string;
|
|
136
127
|
};
|
|
137
128
|
connect_domain_not_found: {
|
|
138
|
-
status: 404;
|
|
139
129
|
message: string;
|
|
140
130
|
};
|
|
141
131
|
connect_domain_unavailable: {
|
|
142
|
-
status: 400;
|
|
143
132
|
message: string;
|
|
144
133
|
};
|
|
145
|
-
}
|
|
146
|
-
refresh: import("@orpc/contract").
|
|
134
|
+
}>;
|
|
135
|
+
refresh: import("@orpc/contract").ProcedureContractBuilderWithOutput<z.ZodObject<{
|
|
147
136
|
hostname: z.ZodString;
|
|
148
137
|
status: z.ZodEnum<{
|
|
149
138
|
active: "active";
|
|
@@ -163,7 +152,7 @@ export declare const connectDomain: {
|
|
|
163
152
|
error: z.ZodNullable<z.ZodString>;
|
|
164
153
|
activatedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
165
154
|
createdAt: z.ZodPreprocess<z.ZodDate, Date>;
|
|
166
|
-
}, z.core.$strip>,
|
|
155
|
+
}, z.core.$strip>, Omit<import("../errors.js").DeclaredErrors<{
|
|
167
156
|
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
168
157
|
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
169
158
|
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
@@ -180,18 +169,15 @@ export declare const connectDomain: {
|
|
|
180
169
|
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
181
170
|
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
182
171
|
readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
|
|
183
|
-
}
|
|
172
|
+
}>, "connect_domain_unavailable" | "connect_domain_not_found" | "connect_domain_edge_unavailable"> & {
|
|
184
173
|
connect_domain_edge_unavailable: {
|
|
185
|
-
status: 502;
|
|
186
174
|
message: string;
|
|
187
175
|
};
|
|
188
176
|
connect_domain_not_found: {
|
|
189
|
-
status: 404;
|
|
190
177
|
message: string;
|
|
191
178
|
};
|
|
192
179
|
connect_domain_unavailable: {
|
|
193
|
-
status: 400;
|
|
194
180
|
message: string;
|
|
195
181
|
};
|
|
196
|
-
}
|
|
182
|
+
}>;
|
|
197
183
|
};
|