@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.
@@ -1,5 +1,5 @@
1
1
  export declare const settings: {
2
- get: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, import("zod").ZodObject<{
2
+ get: import("@orpc/contract").ProcedureContractBuilderWithOutput<import("zod").ZodObject<{
3
3
  bodyStorage: import("zod").ZodEnum<{
4
4
  none: "none";
5
5
  cache: "cache";
@@ -36,7 +36,7 @@ export declare const settings: {
36
36
  dailySendLimit: import("zod").ZodNullable<import("zod").ZodNumber>;
37
37
  externalRecipientConfirmation: import("zod").ZodBoolean;
38
38
  }, import("zod/v4/core").$strip>;
39
- }, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
39
+ }, import("zod/v4/core").$strip>, import("../errors.js").DeclaredErrors<{
40
40
  readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
41
41
  readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
42
42
  readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
@@ -53,8 +53,8 @@ export declare const settings: {
53
53
  readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
54
54
  readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
55
55
  readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
56
- }>>, Record<never, never>>;
57
- update: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
56
+ }>>;
57
+ update: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<import("zod").ZodObject<{
58
58
  bodyStorage: import("zod").ZodOptional<import("zod").ZodEnum<{
59
59
  none: "none";
60
60
  cache: "cache";
@@ -128,7 +128,7 @@ export declare const settings: {
128
128
  dailySendLimit: import("zod").ZodNullable<import("zod").ZodNumber>;
129
129
  externalRecipientConfirmation: import("zod").ZodBoolean;
130
130
  }, import("zod/v4/core").$strip>;
131
- }, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
131
+ }, import("zod/v4/core").$strip>, Omit<import("../errors.js").DeclaredErrors<{
132
132
  readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
133
133
  readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
134
134
  readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
@@ -145,18 +145,16 @@ export declare const settings: {
145
145
  readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
146
146
  readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
147
147
  readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
148
- }>>, {
148
+ }>, "plan_limit_accounts" | "plan_required" | "spend_cap_reached" | "plan_limit_storage" | "storage_unavailable" | "redirect_uri_not_allowed"> & {
149
149
  redirect_uri_not_allowed: {
150
- status: 400;
151
150
  message: string;
152
151
  };
153
152
  plan_limit_storage: import("../errors.js").DeclaredError<"plan_limit_storage">;
154
153
  storage_unavailable: {
155
- status: 400;
156
154
  message: string;
157
155
  };
158
156
  plan_limit_accounts: import("../errors.js").DeclaredError<"plan_limit_accounts">;
159
157
  plan_required: import("../errors.js").DeclaredError<"plan_required">;
160
158
  spend_cap_reached: import("../errors.js").DeclaredError<"spend_cap_reached">;
161
- }>, Record<never, never>>;
159
+ }>;
162
160
  };
@@ -1,6 +1,6 @@
1
1
  import * as z from "zod";
2
2
  export declare const suppressions: {
3
- list: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
3
+ list: import("@orpc/contract").ProcedureContractBuilderWithOutput<z.ZodObject<{
4
4
  items: z.ZodArray<z.ZodObject<{
5
5
  id: z.ZodString;
6
6
  name: z.ZodString;
@@ -17,7 +17,7 @@ export declare const suppressions: {
17
17
  }, z.core.$strip>;
18
18
  createdAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
19
19
  }, z.core.$strip>>;
20
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
20
+ }, z.core.$strip>, Omit<import("../errors.js").DeclaredErrors<{
21
21
  readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
22
22
  readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
23
23
  readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
@@ -34,10 +34,10 @@ export declare const suppressions: {
34
34
  readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
35
35
  readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
36
36
  readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
37
- }>>, import("../errors.js").DeclaredErrors<{
37
+ }>, "plan_module_unavailable"> & import("../errors.js").DeclaredErrors<{
38
38
  readonly plan_module_unavailable: `The tenant's plan does not include ${string}.`;
39
- }>>, Record<never, never>>;
40
- create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
39
+ }>>;
40
+ create: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
41
41
  id: z.ZodString;
42
42
  name: z.ZodString;
43
43
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -56,7 +56,7 @@ export declare const suppressions: {
56
56
  invalid: z.ZodNumber;
57
57
  }, z.core.$strip>;
58
58
  createdAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
59
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
59
+ }, z.core.$strip>, Omit<Omit<import("../errors.js").DeclaredErrors<{
60
60
  readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
61
61
  readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
62
62
  readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
@@ -73,12 +73,12 @@ export declare const suppressions: {
73
73
  readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
74
74
  readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
75
75
  readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
76
- }>>, import("../errors.js").DeclaredErrors<{
76
+ }>, "plan_module_unavailable"> & import("../errors.js").DeclaredErrors<{
77
77
  readonly plan_module_unavailable: `The tenant's plan does not include ${string}.`;
78
- }>>, import("../errors.js").DeclaredErrors<{
78
+ }>, "suppression_list_exists"> & import("../errors.js").DeclaredErrors<{
79
79
  readonly suppression_list_exists: "A list with that id exists.";
80
- }>>, Record<never, never>>;
81
- update: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
80
+ }>>;
81
+ update: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
82
82
  listId: z.ZodString;
83
83
  name: z.ZodOptional<z.ZodString>;
84
84
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -97,7 +97,7 @@ export declare const suppressions: {
97
97
  invalid: z.ZodNumber;
98
98
  }, z.core.$strip>;
99
99
  createdAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
100
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
100
+ }, z.core.$strip>, Omit<Omit<import("../errors.js").DeclaredErrors<{
101
101
  readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
102
102
  readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
103
103
  readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
@@ -114,12 +114,12 @@ export declare const suppressions: {
114
114
  readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
115
115
  readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
116
116
  readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
117
- }>>, import("../errors.js").DeclaredErrors<{
117
+ }>, "plan_module_unavailable"> & import("../errors.js").DeclaredErrors<{
118
118
  readonly plan_module_unavailable: `The tenant's plan does not include ${string}.`;
119
- }>>, import("../errors.js").DeclaredErrors<{
119
+ }>, "suppression_list_not_found"> & import("../errors.js").DeclaredErrors<{
120
120
  readonly suppression_list_not_found: "The list does not exist (the global list has none to change).";
121
- }>>, Record<never, never>>;
122
- delete: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
121
+ }>>;
122
+ delete: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
123
123
  params: z.ZodObject<{
124
124
  listId: z.ZodString;
125
125
  }, z.core.$strip>;
@@ -132,7 +132,7 @@ export declare const suppressions: {
132
132
  }>
133
133
  ]>, z.ZodTransform<boolean, boolean | "true" | "false">>>;
134
134
  }, z.core.$strip>;
135
- }, z.core.$strip>, z.ZodVoid, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
135
+ }, z.core.$strip>, z.ZodVoid, Omit<Omit<import("../errors.js").DeclaredErrors<{
136
136
  readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
137
137
  readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
138
138
  readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
@@ -149,20 +149,18 @@ export declare const suppressions: {
149
149
  readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
150
150
  readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
151
151
  readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
152
- }>>, import("../errors.js").DeclaredErrors<{
152
+ }>, "plan_module_unavailable"> & import("../errors.js").DeclaredErrors<{
153
153
  readonly plan_module_unavailable: `The tenant's plan does not include ${string}.`;
154
- }>>, {
154
+ }>, "suppression_list_not_found" | "suppression_list_not_empty"> & {
155
155
  suppression_list_not_empty: {
156
- status: 409;
157
156
  message: string;
158
157
  };
159
158
  suppression_list_not_found: {
160
- status: 404;
161
159
  message: string;
162
160
  };
163
- }>, Record<never, never>>;
161
+ }>;
164
162
  entries: {
165
- list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
163
+ list: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
166
164
  listId: z.ZodString;
167
165
  limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
168
166
  cursor: z.ZodOptional<z.ZodString>;
@@ -192,7 +190,7 @@ export declare const suppressions: {
192
190
  createdAt: z.ZodPreprocess<z.ZodDate, Date>;
193
191
  }, z.core.$strip>>;
194
192
  nextCursor: z.ZodNullable<z.ZodString>;
195
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
193
+ }, z.core.$strip>, Omit<Omit<import("../errors.js").DeclaredErrors<{
196
194
  readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
197
195
  readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
198
196
  readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
@@ -209,19 +207,19 @@ export declare const suppressions: {
209
207
  readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
210
208
  readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
211
209
  readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
212
- }>>, import("../errors.js").DeclaredErrors<{
210
+ }>, "plan_module_unavailable"> & import("../errors.js").DeclaredErrors<{
213
211
  readonly plan_module_unavailable: `The tenant's plan does not include ${string}.`;
214
- }>>, import("../errors.js").DeclaredErrors<{
212
+ }>, "invalid_cursor"> & import("../errors.js").DeclaredErrors<{
215
213
  readonly invalid_cursor: "The cursor is not one this list issued.";
216
- }>>, Record<never, never>>;
217
- add: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
214
+ }>>;
215
+ add: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
218
216
  listId: z.ZodString;
219
217
  addresses: z.ZodArray<z.ZodEmail>;
220
218
  reason: z.ZodOptional<z.ZodString>;
221
219
  }, z.core.$strip>, z.ZodObject<{
222
220
  added: z.ZodNumber;
223
221
  alreadyListed: z.ZodNumber;
224
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
222
+ }, z.core.$strip>, Omit<import("../errors.js").DeclaredErrors<{
225
223
  readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
226
224
  readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
227
225
  readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
@@ -238,13 +236,13 @@ export declare const suppressions: {
238
236
  readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
239
237
  readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
240
238
  readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
241
- }>>, import("../errors.js").DeclaredErrors<{
239
+ }>, "plan_module_unavailable"> & import("../errors.js").DeclaredErrors<{
242
240
  readonly plan_module_unavailable: `The tenant's plan does not include ${string}.`;
243
- }>>, Record<never, never>>;
244
- remove: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
241
+ }>>;
242
+ remove: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
245
243
  listId: z.ZodString;
246
244
  address: z.ZodString;
247
- }, z.core.$strip>, z.ZodVoid, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
245
+ }, z.core.$strip>, z.ZodVoid, Omit<Omit<import("../errors.js").DeclaredErrors<{
248
246
  readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
249
247
  readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
250
248
  readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
@@ -261,15 +259,15 @@ export declare const suppressions: {
261
259
  readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
262
260
  readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
263
261
  readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
264
- }>>, import("../errors.js").DeclaredErrors<{
262
+ }>, "plan_module_unavailable"> & import("../errors.js").DeclaredErrors<{
265
263
  readonly plan_module_unavailable: `The tenant's plan does not include ${string}.`;
266
- }>>, import("../errors.js").DeclaredErrors<{
264
+ }>, "suppression_entry_not_found"> & import("../errors.js").DeclaredErrors<{
267
265
  readonly suppression_entry_not_found: "The address is not on the list.";
268
- }>>, Record<never, never>>;
266
+ }>>;
269
267
  };
270
268
  };
271
269
  export declare const suppressionReviews: {
272
- list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
270
+ list: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
273
271
  limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
274
272
  cursor: z.ZodOptional<z.ZodString>;
275
273
  listId: z.ZodOptional<z.ZodString>;
@@ -290,7 +288,7 @@ export declare const suppressionReviews: {
290
288
  createdAt: z.ZodPreprocess<z.ZodDate, Date>;
291
289
  }, z.core.$strip>>;
292
290
  nextCursor: z.ZodNullable<z.ZodString>;
293
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
291
+ }, z.core.$strip>, Omit<Omit<import("../errors.js").DeclaredErrors<{
294
292
  readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
295
293
  readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
296
294
  readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
@@ -307,16 +305,16 @@ export declare const suppressionReviews: {
307
305
  readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
308
306
  readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
309
307
  readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
310
- }>>, import("../errors.js").DeclaredErrors<{
308
+ }>, "plan_module_unavailable"> & import("../errors.js").DeclaredErrors<{
311
309
  readonly plan_module_unavailable: `The tenant's plan does not include ${string}.`;
312
- }>>, import("../errors.js").DeclaredErrors<{
310
+ }>, "invalid_cursor"> & import("../errors.js").DeclaredErrors<{
313
311
  readonly invalid_cursor: "The cursor is not one this list issued.";
314
- }>>, Record<never, never>>;
315
- approve: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
312
+ }>>;
313
+ approve: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
316
314
  reviewId: z.ZodUUID;
317
315
  }, z.core.$strip>, z.ZodObject<{
318
316
  added: z.ZodBoolean;
319
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
317
+ }, z.core.$strip>, Omit<Omit<import("../errors.js").DeclaredErrors<{
320
318
  readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
321
319
  readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
322
320
  readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
@@ -333,14 +331,14 @@ export declare const suppressionReviews: {
333
331
  readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
334
332
  readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
335
333
  readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
336
- }>>, import("../errors.js").DeclaredErrors<{
334
+ }>, "plan_module_unavailable"> & import("../errors.js").DeclaredErrors<{
337
335
  readonly plan_module_unavailable: `The tenant's plan does not include ${string}.`;
338
- }>>, import("../errors.js").DeclaredErrors<{
336
+ }>, "suppression_review_not_found"> & import("../errors.js").DeclaredErrors<{
339
337
  readonly suppression_review_not_found: "The review does not exist.";
340
- }>>, Record<never, never>>;
341
- dismiss: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
338
+ }>>;
339
+ dismiss: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
342
340
  reviewId: z.ZodUUID;
343
- }, z.core.$strip>, z.ZodVoid, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
341
+ }, z.core.$strip>, z.ZodVoid, Omit<Omit<import("../errors.js").DeclaredErrors<{
344
342
  readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
345
343
  readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
346
344
  readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
@@ -357,9 +355,9 @@ export declare const suppressionReviews: {
357
355
  readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
358
356
  readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
359
357
  readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
360
- }>>, import("../errors.js").DeclaredErrors<{
358
+ }>, "plan_module_unavailable"> & import("../errors.js").DeclaredErrors<{
361
359
  readonly plan_module_unavailable: `The tenant's plan does not include ${string}.`;
362
- }>>, import("../errors.js").DeclaredErrors<{
360
+ }>, "suppression_review_not_found"> & import("../errors.js").DeclaredErrors<{
363
361
  readonly suppression_review_not_found: "The review does not exist.";
364
- }>>, Record<never, never>>;
362
+ }>>;
365
363
  };
@@ -1,6 +1,6 @@
1
1
  import * as z from "zod";
2
2
  export declare const templates: {
3
- list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
3
+ list: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
4
4
  accountId: z.ZodOptional<z.ZodUUID>;
5
5
  usableBy: z.ZodOptional<z.ZodUUID>;
6
6
  name: z.ZodOptional<z.ZodString>;
@@ -22,7 +22,7 @@ export declare const templates: {
22
22
  updatedAt: z.ZodPreprocess<z.ZodDate, Date>;
23
23
  }, z.core.$strip>>;
24
24
  nextCursor: z.ZodNullable<z.ZodString>;
25
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
25
+ }, z.core.$strip>, Omit<Omit<import("../errors.js").DeclaredErrors<{
26
26
  readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
27
27
  readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
28
28
  readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
@@ -39,12 +39,12 @@ export declare const templates: {
39
39
  readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
40
40
  readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
41
41
  readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
42
- }>>, import("../errors.js").DeclaredErrors<{
42
+ }>, "plan_module_unavailable"> & import("../errors.js").DeclaredErrors<{
43
43
  readonly plan_module_unavailable: `The tenant's plan does not include ${string}.`;
44
- }>>, import("../errors.js").DeclaredErrors<{
44
+ }>, "invalid_cursor"> & import("../errors.js").DeclaredErrors<{
45
45
  readonly invalid_cursor: "The cursor is not one this list issued.";
46
- }>>, Record<never, never>>;
47
- get: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
46
+ }>>;
47
+ get: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
48
48
  templateId: z.ZodUUID;
49
49
  }, z.core.$strip>, z.ZodObject<{
50
50
  id: z.ZodUUID;
@@ -66,7 +66,7 @@ export declare const templates: {
66
66
  markdown: "markdown";
67
67
  html: "html";
68
68
  }>;
69
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
69
+ }, z.core.$strip>, Omit<Omit<import("../errors.js").DeclaredErrors<{
70
70
  readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
71
71
  readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
72
72
  readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
@@ -83,12 +83,12 @@ export declare const templates: {
83
83
  readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
84
84
  readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
85
85
  readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
86
- }>>, import("../errors.js").DeclaredErrors<{
86
+ }>, "plan_module_unavailable"> & import("../errors.js").DeclaredErrors<{
87
87
  readonly plan_module_unavailable: `The tenant's plan does not include ${string}.`;
88
- }>>, import("../errors.js").DeclaredErrors<{
88
+ }>, "template_not_found"> & import("../errors.js").DeclaredErrors<{
89
89
  readonly template_not_found: "The template does not exist.";
90
- }>>, Record<never, never>>;
91
- create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
90
+ }>>;
91
+ create: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
92
92
  accountId: z.ZodOptional<z.ZodUUID>;
93
93
  name: z.ZodString;
94
94
  description: z.ZodOptional<z.ZodString>;
@@ -125,7 +125,7 @@ export declare const templates: {
125
125
  markdown: "markdown";
126
126
  html: "html";
127
127
  }>;
128
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
128
+ }, z.core.$strip>, Omit<Omit<import("../errors.js").DeclaredErrors<{
129
129
  readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
130
130
  readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
131
131
  readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
@@ -142,17 +142,16 @@ export declare const templates: {
142
142
  readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
143
143
  readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
144
144
  readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
145
- }>>, import("../errors.js").DeclaredErrors<{
145
+ }>, "plan_module_unavailable"> & import("../errors.js").DeclaredErrors<{
146
146
  readonly plan_module_unavailable: `The tenant's plan does not include ${string}.`;
147
- }>>, {
147
+ }>, "unknown_account" | "invalid_template" | "template_name_taken"> & {
148
148
  template_name_taken: {
149
- status: 409;
150
149
  message: string;
151
150
  };
152
151
  unknown_account: import("../errors.js").DeclaredError<"unknown_account">;
153
152
  invalid_template: import("../errors.js").DeclaredError<"invalid_template">;
154
- }>, Record<never, never>>;
155
- update: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
153
+ }>;
154
+ update: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
156
155
  templateId: z.ZodUUID;
157
156
  name: z.ZodOptional<z.ZodString>;
158
157
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -189,7 +188,7 @@ export declare const templates: {
189
188
  markdown: "markdown";
190
189
  html: "html";
191
190
  }>;
192
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
191
+ }, z.core.$strip>, Omit<Omit<import("../errors.js").DeclaredErrors<{
193
192
  readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
194
193
  readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
195
194
  readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
@@ -206,22 +205,20 @@ export declare const templates: {
206
205
  readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
207
206
  readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
208
207
  readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
209
- }>>, import("../errors.js").DeclaredErrors<{
208
+ }>, "plan_module_unavailable"> & import("../errors.js").DeclaredErrors<{
210
209
  readonly plan_module_unavailable: `The tenant's plan does not include ${string}.`;
211
- }>>, {
210
+ }>, "template_not_found" | "invalid_template" | "template_name_taken"> & {
212
211
  template_name_taken: {
213
- status: 409;
214
212
  message: string;
215
213
  };
216
214
  invalid_template: import("../errors.js").DeclaredError<"invalid_template">;
217
215
  template_not_found: {
218
- status: 404;
219
216
  message: string;
220
217
  };
221
- }>, Record<never, never>>;
222
- delete: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
218
+ }>;
219
+ delete: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
223
220
  templateId: z.ZodUUID;
224
- }, z.core.$strip>, z.ZodVoid, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
221
+ }, z.core.$strip>, z.ZodVoid, Omit<Omit<import("../errors.js").DeclaredErrors<{
225
222
  readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
226
223
  readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
227
224
  readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
@@ -238,14 +235,14 @@ export declare const templates: {
238
235
  readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
239
236
  readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
240
237
  readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
241
- }>>, import("../errors.js").DeclaredErrors<{
238
+ }>, "plan_module_unavailable"> & import("../errors.js").DeclaredErrors<{
242
239
  readonly plan_module_unavailable: `The tenant's plan does not include ${string}.`;
243
- }>>, import("../errors.js").DeclaredErrors<{
240
+ }>, "template_not_found"> & import("../errors.js").DeclaredErrors<{
244
241
  readonly template_not_found: "The template does not exist.";
245
- }>>, Record<never, never>>;
242
+ }>>;
246
243
  };
247
244
  export declare const templateRenders: {
248
- create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
245
+ create: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
249
246
  templateId: z.ZodOptional<z.ZodUUID>;
250
247
  accountId: z.ZodOptional<z.ZodUUID>;
251
248
  subject: z.ZodOptional<z.ZodString>;
@@ -262,7 +259,7 @@ export declare const templateRenders: {
262
259
  html: z.ZodNullable<z.ZodString>;
263
260
  text: z.ZodNullable<z.ZodString>;
264
261
  previewText: z.ZodNullable<z.ZodString>;
265
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
262
+ }, z.core.$strip>, Omit<Omit<import("../errors.js").DeclaredErrors<{
266
263
  readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
267
264
  readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
268
265
  readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
@@ -279,27 +276,23 @@ export declare const templateRenders: {
279
276
  readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
280
277
  readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
281
278
  readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
282
- }>>, import("../errors.js").DeclaredErrors<{
279
+ }>, "plan_module_unavailable"> & import("../errors.js").DeclaredErrors<{
283
280
  readonly plan_module_unavailable: `The tenant's plan does not include ${string}.`;
284
- }>>, {
281
+ }>, "template_and_inline_fields" | "unknown_account" | "unknown_template" | "invalid_template" | "template_account_mismatch" | "template_render_failed" | "params_too_large"> & {
285
282
  template_and_inline_fields: {
286
- status: 400;
287
283
  message: string;
288
284
  };
289
285
  unknown_template: {
290
- status: 422;
291
286
  message: string;
292
287
  };
293
288
  template_account_mismatch: {
294
- status: 400;
295
289
  message: string;
296
290
  };
297
291
  template_render_failed: import("../errors.js").DeclaredError<"template_render_failed">;
298
292
  params_too_large: {
299
- status: 400;
300
293
  message: string;
301
294
  };
302
295
  unknown_account: import("../errors.js").DeclaredError<"unknown_account">;
303
296
  invalid_template: import("../errors.js").DeclaredError<"invalid_template">;
304
- }>, Record<never, never>>;
297
+ }>;
305
298
  };