@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,6 +1,6 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
2
|
export declare const threads: {
|
|
3
|
-
list: import("@orpc/contract").
|
|
3
|
+
list: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
|
|
4
4
|
accountId: z.ZodUUID;
|
|
5
5
|
mailboxId: z.ZodOptional<z.ZodUUID>;
|
|
6
6
|
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
@@ -24,7 +24,7 @@ export declare const threads: {
|
|
|
24
24
|
lastMessageAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
25
25
|
}, z.core.$strip>>;
|
|
26
26
|
nextCursor: z.ZodNullable<z.ZodString>;
|
|
27
|
-
}, z.core.$strip>,
|
|
27
|
+
}, z.core.$strip>, Omit<import("../errors.js").DeclaredErrors<{
|
|
28
28
|
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
29
29
|
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
30
30
|
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
@@ -41,26 +41,22 @@ export declare const threads: {
|
|
|
41
41
|
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
42
42
|
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
43
43
|
readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
|
|
44
|
-
}
|
|
44
|
+
}>, "account_not_found" | "plan_module_unavailable" | "invalid_cursor" | "mail_disabled" | "unknown_mailbox"> & {
|
|
45
45
|
unknown_mailbox: import("../errors.js").DeclaredError<"unknown_mailbox">;
|
|
46
46
|
invalid_cursor: {
|
|
47
|
-
status: 400;
|
|
48
47
|
message: string;
|
|
49
48
|
};
|
|
50
49
|
mail_disabled: {
|
|
51
|
-
status: 409;
|
|
52
50
|
message: string;
|
|
53
51
|
};
|
|
54
52
|
account_not_found: {
|
|
55
|
-
status: 404;
|
|
56
53
|
message: string;
|
|
57
54
|
};
|
|
58
55
|
plan_module_unavailable: {
|
|
59
|
-
status: 403;
|
|
60
56
|
message: string;
|
|
61
57
|
};
|
|
62
|
-
}
|
|
63
|
-
get: import("@orpc/contract").
|
|
58
|
+
}>;
|
|
59
|
+
get: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
|
|
64
60
|
accountId: z.ZodUUID;
|
|
65
61
|
threadId: z.ZodString;
|
|
66
62
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -119,7 +115,7 @@ export declare const threads: {
|
|
|
119
115
|
inReplyTo: z.ZodNullable<z.ZodString>;
|
|
120
116
|
references: z.ZodArray<z.ZodString>;
|
|
121
117
|
}, z.core.$strip>>;
|
|
122
|
-
}, z.core.$strip>,
|
|
118
|
+
}, z.core.$strip>, Omit<import("../errors.js").DeclaredErrors<{
|
|
123
119
|
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
124
120
|
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
125
121
|
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
@@ -136,25 +132,21 @@ export declare const threads: {
|
|
|
136
132
|
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
137
133
|
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
138
134
|
readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
|
|
139
|
-
}
|
|
135
|
+
}>, "account_not_found" | "plan_module_unavailable" | "mail_disabled" | "thread_not_found"> & {
|
|
140
136
|
thread_not_found: {
|
|
141
|
-
status: 404;
|
|
142
137
|
message: string;
|
|
143
138
|
};
|
|
144
139
|
mail_disabled: {
|
|
145
|
-
status: 409;
|
|
146
140
|
message: string;
|
|
147
141
|
};
|
|
148
142
|
account_not_found: {
|
|
149
|
-
status: 404;
|
|
150
143
|
message: string;
|
|
151
144
|
};
|
|
152
145
|
plan_module_unavailable: {
|
|
153
|
-
status: 403;
|
|
154
146
|
message: string;
|
|
155
147
|
};
|
|
156
|
-
}
|
|
157
|
-
update: import("@orpc/contract").
|
|
148
|
+
}>;
|
|
149
|
+
update: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
|
|
158
150
|
accountId: z.ZodUUID;
|
|
159
151
|
threadId: z.ZodString;
|
|
160
152
|
isRead: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -215,7 +207,7 @@ export declare const threads: {
|
|
|
215
207
|
inReplyTo: z.ZodNullable<z.ZodString>;
|
|
216
208
|
references: z.ZodArray<z.ZodString>;
|
|
217
209
|
}, z.core.$strip>>;
|
|
218
|
-
}, z.core.$strip>,
|
|
210
|
+
}, z.core.$strip>, Omit<import("../errors.js").DeclaredErrors<{
|
|
219
211
|
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
220
212
|
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
221
213
|
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
@@ -232,77 +224,61 @@ export declare const threads: {
|
|
|
232
224
|
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
233
225
|
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
234
226
|
readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
|
|
235
|
-
}
|
|
227
|
+
}>, "provider_unavailable" | "account_not_found" | "plan_module_unavailable" | "account_paused" | "account_disabled" | "account_reauth_required" | "account_misconfigured" | "mail_disabled" | "mail_permission_missing" | "provider_not_found" | "provider_throttled" | "provider_forbidden" | "provider_conflict" | "provider_unsupported" | "provider_rejected" | "unknown_mailbox" | "thread_not_found"> & {
|
|
236
228
|
unknown_mailbox: import("../errors.js").DeclaredError<"unknown_mailbox">;
|
|
237
229
|
provider_not_found: {
|
|
238
|
-
status: 404;
|
|
239
230
|
message: string;
|
|
240
231
|
};
|
|
241
232
|
provider_forbidden: {
|
|
242
|
-
status: 403;
|
|
243
233
|
message: string;
|
|
244
234
|
};
|
|
245
235
|
provider_conflict: {
|
|
246
|
-
status: 409;
|
|
247
236
|
message: string;
|
|
248
237
|
};
|
|
249
238
|
provider_unsupported: {
|
|
250
|
-
status: 400;
|
|
251
239
|
message: string;
|
|
252
240
|
};
|
|
253
241
|
provider_rejected: {
|
|
254
|
-
status: 400;
|
|
255
242
|
message: string;
|
|
256
243
|
};
|
|
257
244
|
provider_unavailable: {
|
|
258
|
-
status: 502;
|
|
259
245
|
message: string;
|
|
260
246
|
};
|
|
261
247
|
provider_throttled: {
|
|
262
|
-
status: 429;
|
|
263
248
|
message: string;
|
|
264
249
|
};
|
|
265
250
|
account_paused: {
|
|
266
|
-
status: 409;
|
|
267
251
|
message: string;
|
|
268
252
|
};
|
|
269
253
|
account_disabled: {
|
|
270
|
-
status: 409;
|
|
271
254
|
message: string;
|
|
272
255
|
};
|
|
273
256
|
account_reauth_required: {
|
|
274
|
-
status: 409;
|
|
275
257
|
message: string;
|
|
276
258
|
};
|
|
277
259
|
account_misconfigured: {
|
|
278
|
-
status: 409;
|
|
279
260
|
message: string;
|
|
280
261
|
};
|
|
281
262
|
thread_not_found: {
|
|
282
|
-
status: 404;
|
|
283
263
|
message: string;
|
|
284
264
|
};
|
|
285
265
|
mail_permission_missing: {
|
|
286
|
-
status: 409;
|
|
287
266
|
message: string;
|
|
288
267
|
};
|
|
289
268
|
mail_disabled: {
|
|
290
|
-
status: 409;
|
|
291
269
|
message: string;
|
|
292
270
|
};
|
|
293
271
|
account_not_found: {
|
|
294
|
-
status: 404;
|
|
295
272
|
message: string;
|
|
296
273
|
};
|
|
297
274
|
plan_module_unavailable: {
|
|
298
|
-
status: 403;
|
|
299
275
|
message: string;
|
|
300
276
|
};
|
|
301
|
-
}
|
|
302
|
-
delete: import("@orpc/contract").
|
|
277
|
+
}>;
|
|
278
|
+
delete: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
|
|
303
279
|
accountId: z.ZodUUID;
|
|
304
280
|
threadId: z.ZodString;
|
|
305
|
-
}, z.core.$strip>, z.ZodVoid,
|
|
281
|
+
}, z.core.$strip>, z.ZodVoid, Omit<import("../errors.js").DeclaredErrors<{
|
|
306
282
|
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
307
283
|
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
308
284
|
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
@@ -319,70 +295,54 @@ export declare const threads: {
|
|
|
319
295
|
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
320
296
|
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
321
297
|
readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
|
|
322
|
-
}
|
|
298
|
+
}>, "provider_unavailable" | "account_not_found" | "plan_module_unavailable" | "account_paused" | "account_disabled" | "account_reauth_required" | "account_misconfigured" | "mail_disabled" | "mail_permission_missing" | "provider_not_found" | "provider_throttled" | "provider_forbidden" | "provider_conflict" | "provider_unsupported" | "provider_rejected" | "thread_not_found"> & {
|
|
323
299
|
provider_not_found: {
|
|
324
|
-
status: 404;
|
|
325
300
|
message: string;
|
|
326
301
|
};
|
|
327
302
|
provider_forbidden: {
|
|
328
|
-
status: 403;
|
|
329
303
|
message: string;
|
|
330
304
|
};
|
|
331
305
|
provider_conflict: {
|
|
332
|
-
status: 409;
|
|
333
306
|
message: string;
|
|
334
307
|
};
|
|
335
308
|
provider_unsupported: {
|
|
336
|
-
status: 400;
|
|
337
309
|
message: string;
|
|
338
310
|
};
|
|
339
311
|
provider_rejected: {
|
|
340
|
-
status: 400;
|
|
341
312
|
message: string;
|
|
342
313
|
};
|
|
343
314
|
provider_unavailable: {
|
|
344
|
-
status: 502;
|
|
345
315
|
message: string;
|
|
346
316
|
};
|
|
347
317
|
provider_throttled: {
|
|
348
|
-
status: 429;
|
|
349
318
|
message: string;
|
|
350
319
|
};
|
|
351
320
|
account_paused: {
|
|
352
|
-
status: 409;
|
|
353
321
|
message: string;
|
|
354
322
|
};
|
|
355
323
|
account_disabled: {
|
|
356
|
-
status: 409;
|
|
357
324
|
message: string;
|
|
358
325
|
};
|
|
359
326
|
account_reauth_required: {
|
|
360
|
-
status: 409;
|
|
361
327
|
message: string;
|
|
362
328
|
};
|
|
363
329
|
account_misconfigured: {
|
|
364
|
-
status: 409;
|
|
365
330
|
message: string;
|
|
366
331
|
};
|
|
367
332
|
thread_not_found: {
|
|
368
|
-
status: 404;
|
|
369
333
|
message: string;
|
|
370
334
|
};
|
|
371
335
|
mail_permission_missing: {
|
|
372
|
-
status: 409;
|
|
373
336
|
message: string;
|
|
374
337
|
};
|
|
375
338
|
mail_disabled: {
|
|
376
|
-
status: 409;
|
|
377
339
|
message: string;
|
|
378
340
|
};
|
|
379
341
|
account_not_found: {
|
|
380
|
-
status: 404;
|
|
381
342
|
message: string;
|
|
382
343
|
};
|
|
383
344
|
plan_module_unavailable: {
|
|
384
|
-
status: 403;
|
|
385
345
|
message: string;
|
|
386
346
|
};
|
|
387
|
-
}
|
|
347
|
+
}>;
|
|
388
348
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
2
|
export declare const trackingDomain: {
|
|
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 trackingDomain: {
|
|
|
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 trackingDomain: {
|
|
|
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
|
+
}>, "tracking_domain_unavailable" | "tracking_domain_not_found"> & {
|
|
41
41
|
tracking_domain_not_found: {
|
|
42
|
-
status: 404;
|
|
43
42
|
message: string;
|
|
44
43
|
};
|
|
45
44
|
tracking_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 trackingDomain: {
|
|
|
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 trackingDomain: {
|
|
|
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
|
+
}>, "plan_module_unavailable" | "tracking_domain_unavailable" | "tracking_domain_not_allowed" | "tracking_domain_taken" | "tracking_domain_edge_unavailable"> & {
|
|
90
88
|
tracking_domain_not_allowed: {
|
|
91
|
-
status: 400;
|
|
92
89
|
message: string;
|
|
93
90
|
};
|
|
94
91
|
tracking_domain_taken: {
|
|
95
|
-
status: 409;
|
|
96
92
|
message: string;
|
|
97
93
|
};
|
|
98
94
|
plan_module_unavailable: {
|
|
99
|
-
status: 403;
|
|
100
95
|
message: string;
|
|
101
96
|
};
|
|
102
97
|
tracking_domain_edge_unavailable: {
|
|
103
|
-
status: 502;
|
|
104
98
|
message: string;
|
|
105
99
|
};
|
|
106
100
|
tracking_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,21 +118,18 @@ export declare const trackingDomain: {
|
|
|
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
|
+
}>, "tracking_domain_unavailable" | "tracking_domain_not_found" | "tracking_domain_edge_unavailable"> & {
|
|
129
122
|
tracking_domain_edge_unavailable: {
|
|
130
|
-
status: 502;
|
|
131
123
|
message: string;
|
|
132
124
|
};
|
|
133
125
|
tracking_domain_not_found: {
|
|
134
|
-
status: 404;
|
|
135
126
|
message: string;
|
|
136
127
|
};
|
|
137
128
|
tracking_domain_unavailable: {
|
|
138
|
-
status: 400;
|
|
139
129
|
message: string;
|
|
140
130
|
};
|
|
141
|
-
}
|
|
142
|
-
refresh: import("@orpc/contract").
|
|
131
|
+
}>;
|
|
132
|
+
refresh: import("@orpc/contract").ProcedureContractBuilderWithOutput<z.ZodObject<{
|
|
143
133
|
hostname: z.ZodString;
|
|
144
134
|
status: z.ZodEnum<{
|
|
145
135
|
active: "active";
|
|
@@ -159,7 +149,7 @@ export declare const trackingDomain: {
|
|
|
159
149
|
error: z.ZodNullable<z.ZodString>;
|
|
160
150
|
activatedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
161
151
|
createdAt: z.ZodPreprocess<z.ZodDate, Date>;
|
|
162
|
-
}, z.core.$strip>,
|
|
152
|
+
}, z.core.$strip>, Omit<import("../errors.js").DeclaredErrors<{
|
|
163
153
|
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
164
154
|
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
165
155
|
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
@@ -176,18 +166,15 @@ export declare const trackingDomain: {
|
|
|
176
166
|
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
177
167
|
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
178
168
|
readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
|
|
179
|
-
}
|
|
169
|
+
}>, "tracking_domain_unavailable" | "tracking_domain_not_found" | "tracking_domain_edge_unavailable"> & {
|
|
180
170
|
tracking_domain_edge_unavailable: {
|
|
181
|
-
status: 502;
|
|
182
171
|
message: string;
|
|
183
172
|
};
|
|
184
173
|
tracking_domain_not_found: {
|
|
185
|
-
status: 404;
|
|
186
174
|
message: string;
|
|
187
175
|
};
|
|
188
176
|
tracking_domain_unavailable: {
|
|
189
|
-
status: 400;
|
|
190
177
|
message: string;
|
|
191
178
|
};
|
|
192
|
-
}
|
|
179
|
+
}>;
|
|
193
180
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const usage: {
|
|
2
|
-
get: import("@orpc/contract").
|
|
2
|
+
get: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<import("zod").ZodObject<{
|
|
3
3
|
from: import("zod").ZodOptional<import("zod").ZodISODate>;
|
|
4
4
|
to: import("zod").ZodOptional<import("zod").ZodISODate>;
|
|
5
5
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
@@ -86,7 +86,7 @@ export declare const usage: {
|
|
|
86
86
|
end: import("zod").ZodPreprocess<import("zod").ZodDate, Date>;
|
|
87
87
|
firstDay: import("zod").ZodISODate;
|
|
88
88
|
}, import("zod/v4/core").$strip>>;
|
|
89
|
-
}, import("zod/v4/core").$strip>,
|
|
89
|
+
}, import("zod/v4/core").$strip>, Omit<import("../errors.js").DeclaredErrors<{
|
|
90
90
|
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
91
91
|
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
92
92
|
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
@@ -103,7 +103,7 @@ export declare const usage: {
|
|
|
103
103
|
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
104
104
|
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
105
105
|
readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
|
|
106
|
-
}
|
|
106
|
+
}>, "invalid_range"> & import("../errors.js").DeclaredErrors<{
|
|
107
107
|
readonly invalid_range: "from is after to (or after today, with to left out), or the range spans more than 366 days.";
|
|
108
|
-
}
|
|
108
|
+
}>>;
|
|
109
109
|
};
|