@workwae/sdk 0.0.0-stage → 0.1.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/README.md +233 -2
  2. package/client.d.ts +36 -0
  3. package/contract/accounts/models.d.ts +726 -0
  4. package/contract/accounts/routes.d.ts +1318 -0
  5. package/contract/ai/models.d.ts +30 -0
  6. package/contract/ai/routes.d.ts +89 -0
  7. package/contract/audit-log/models.d.ts +107 -0
  8. package/contract/audit-log/routes.d.ts +72 -0
  9. package/contract/calendar/models.d.ts +837 -0
  10. package/contract/calendar/routes.d.ts +1299 -0
  11. package/contract/connect/models.d.ts +272 -0
  12. package/contract/connect/routes.d.ts +531 -0
  13. package/contract/contacts/models.d.ts +269 -0
  14. package/contract/contacts/routes.d.ts +634 -0
  15. package/contract/errors.d.ts +108 -0
  16. package/contract/events/models.d.ts +2364 -0
  17. package/contract/events/routes.d.ts +107 -0
  18. package/contract/exports/models.d.ts +67 -0
  19. package/contract/exports/routes.d.ts +196 -0
  20. package/contract/identities/models.d.ts +100 -0
  21. package/contract/identities/routes.d.ts +249 -0
  22. package/contract/limits.d.ts +170 -0
  23. package/contract/mail/models.d.ts +528 -0
  24. package/contract/mail/routes.d.ts +749 -0
  25. package/contract/meetings/models.d.ts +232 -0
  26. package/contract/meetings/routes.d.ts +386 -0
  27. package/contract/oauth-apps/models.d.ts +92 -0
  28. package/contract/oauth-apps/routes.d.ts +187 -0
  29. package/contract/org-connections/models.d.ts +383 -0
  30. package/contract/org-connections/routes.d.ts +830 -0
  31. package/contract/primitives.d.ts +140 -0
  32. package/contract/public.d.ts +26 -0
  33. package/contract/reasons.d.ts +711 -0
  34. package/contract/router.d.ts +9773 -0
  35. package/contract/send/models.d.ts +750 -0
  36. package/contract/send/routes.d.ts +1239 -0
  37. package/contract/settings/models.d.ts +103 -0
  38. package/contract/settings/routes.d.ts +110 -0
  39. package/contract/suppressions/models.d.ts +231 -0
  40. package/contract/suppressions/routes.d.ts +317 -0
  41. package/contract/templates/models.d.ts +169 -0
  42. package/contract/templates/routes.d.ts +281 -0
  43. package/contract/threads/models.d.ts +117 -0
  44. package/contract/threads/routes.d.ts +336 -0
  45. package/contract/usage/models.d.ts +213 -0
  46. package/contract/usage/routes.d.ts +81 -0
  47. package/contract/webhooks/models.d.ts +879 -0
  48. package/contract/webhooks/routes.d.ts +839 -0
  49. package/contract/webhooks/signing.d.ts +35 -0
  50. package/errors.d.ts +15 -0
  51. package/index.d.ts +6 -0
  52. package/index.js +4334 -0
  53. package/index.js.map +59 -0
  54. package/package.json +45 -4
  55. package/pagination.d.ts +40 -0
  56. package/webhooks.d.ts +28 -0
@@ -0,0 +1,103 @@
1
+ import * as z from "zod";
2
+ export declare const BodyStorage: z.ZodEnum<{
3
+ none: "none";
4
+ cache: "cache";
5
+ full: "full";
6
+ }>;
7
+ export type BodyStorage = z.infer<typeof BodyStorage>;
8
+ /** null syncWindowDays = full mailbox history. */
9
+ export declare const EffectiveSettings: z.ZodObject<{
10
+ bodyStorage: z.ZodEnum<{
11
+ none: "none";
12
+ cache: "cache";
13
+ full: "full";
14
+ }>;
15
+ syncWindowDays: z.ZodNullable<z.ZodNumber>;
16
+ calendarEnabled: z.ZodBoolean;
17
+ contactsEnabled: z.ZodBoolean;
18
+ undoSendSeconds: z.ZodNumber;
19
+ trackOpens: z.ZodBoolean;
20
+ trackClicks: z.ZodBoolean;
21
+ trackingHoneypot: z.ZodBoolean;
22
+ }, z.core.$strip>;
23
+ export type EffectiveSettings = z.infer<typeof EffectiveSettings>;
24
+ /** Keys present override the tenant default; absent keys inherit it. */
25
+ export declare const SettingsOverride: z.ZodObject<{
26
+ bodyStorage: z.ZodOptional<z.ZodEnum<{
27
+ none: "none";
28
+ cache: "cache";
29
+ full: "full";
30
+ }>>;
31
+ syncWindowDays: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
32
+ calendarEnabled: z.ZodOptional<z.ZodBoolean>;
33
+ contactsEnabled: z.ZodOptional<z.ZodBoolean>;
34
+ undoSendSeconds: z.ZodOptional<z.ZodNumber>;
35
+ trackOpens: z.ZodOptional<z.ZodBoolean>;
36
+ trackClicks: z.ZodOptional<z.ZodBoolean>;
37
+ trackingHoneypot: z.ZodOptional<z.ZodBoolean>;
38
+ }, z.core.$strip>;
39
+ export type SettingsOverride = z.infer<typeof SettingsOverride>;
40
+ /**
41
+ * Why `uri` cannot go on the redirect URI allowlist, or null when it can: entries are absolute
42
+ * https URLs, plain http only for local development hosts.
43
+ */
44
+ export declare function redirectUriProblem(uri: string): string | null;
45
+ /** off: detected opt-outs are ignored; review: AI-classified replies wait in
46
+ * GET /v1/suppression-reviews for a person, while feedback-loop complaints, which are certain,
47
+ * suppress at once; suppress: the address goes on the list at once. Auto-replies saying the
48
+ * person is no longer at the address (source inactive) wait for review under both review and
49
+ * suppress. Unsubscribe links and one-click unsubscribe always suppress, whatever this says
50
+ * (RFC 8058, Gmail and Yahoo sender rules). */
51
+ export declare const OptOutHandling: z.ZodEnum<{
52
+ off: "off";
53
+ review: "review";
54
+ suppress: "suppress";
55
+ }>;
56
+ export type OptOutHandling = z.infer<typeof OptOutHandling>;
57
+ export declare const TenantSettings: z.ZodObject<{
58
+ bodyStorage: z.ZodEnum<{
59
+ none: "none";
60
+ cache: "cache";
61
+ full: "full";
62
+ }>;
63
+ syncWindowDays: z.ZodNullable<z.ZodNumber>;
64
+ calendarEnabled: z.ZodBoolean;
65
+ contactsEnabled: z.ZodBoolean;
66
+ undoSendSeconds: z.ZodNumber;
67
+ trackOpens: z.ZodBoolean;
68
+ trackClicks: z.ZodBoolean;
69
+ trackingHoneypot: z.ZodBoolean;
70
+ optOutHandling: z.ZodEnum<{
71
+ off: "off";
72
+ review: "review";
73
+ suppress: "suppress";
74
+ }>;
75
+ eventRetentionDays: z.ZodNumber;
76
+ redirectUris: z.ZodArray<z.ZodURL>;
77
+ aiReplyClassification: z.ZodBoolean;
78
+ }, z.core.$strip>;
79
+ export type TenantSettings = z.infer<typeof TenantSettings>;
80
+ /** Keys present change; absent keys stay. */
81
+ export declare const UpdateTenantSettings: z.ZodObject<{
82
+ bodyStorage: z.ZodOptional<z.ZodEnum<{
83
+ none: "none";
84
+ cache: "cache";
85
+ full: "full";
86
+ }>>;
87
+ syncWindowDays: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
88
+ calendarEnabled: z.ZodOptional<z.ZodBoolean>;
89
+ contactsEnabled: z.ZodOptional<z.ZodBoolean>;
90
+ undoSendSeconds: z.ZodOptional<z.ZodNumber>;
91
+ trackOpens: z.ZodOptional<z.ZodBoolean>;
92
+ trackClicks: z.ZodOptional<z.ZodBoolean>;
93
+ trackingHoneypot: z.ZodOptional<z.ZodBoolean>;
94
+ optOutHandling: z.ZodOptional<z.ZodEnum<{
95
+ off: "off";
96
+ review: "review";
97
+ suppress: "suppress";
98
+ }>>;
99
+ eventRetentionDays: z.ZodOptional<z.ZodNumber>;
100
+ redirectUris: z.ZodOptional<z.ZodArray<z.ZodURL>>;
101
+ aiReplyClassification: z.ZodOptional<z.ZodBoolean>;
102
+ }, z.core.$strip>;
103
+ export type UpdateTenantSettings = z.infer<typeof UpdateTenantSettings>;
@@ -0,0 +1,110 @@
1
+ export declare const settings: {
2
+ get: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, import("zod").ZodObject<{
3
+ bodyStorage: import("zod").ZodEnum<{
4
+ none: "none";
5
+ cache: "cache";
6
+ full: "full";
7
+ }>;
8
+ syncWindowDays: import("zod").ZodNullable<import("zod").ZodNumber>;
9
+ calendarEnabled: import("zod").ZodBoolean;
10
+ contactsEnabled: import("zod").ZodBoolean;
11
+ undoSendSeconds: import("zod").ZodNumber;
12
+ trackOpens: import("zod").ZodBoolean;
13
+ trackClicks: import("zod").ZodBoolean;
14
+ trackingHoneypot: import("zod").ZodBoolean;
15
+ optOutHandling: import("zod").ZodEnum<{
16
+ off: "off";
17
+ review: "review";
18
+ suppress: "suppress";
19
+ }>;
20
+ eventRetentionDays: import("zod").ZodNumber;
21
+ redirectUris: import("zod").ZodArray<import("zod").ZodURL>;
22
+ aiReplyClassification: import("zod").ZodBoolean;
23
+ }, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
24
+ readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
25
+ readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
26
+ readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
27
+ readonly missing_scope: "The API key lacks the scope the operation needs.";
28
+ readonly role_forbidden: "The member's role does not allow the operation.";
29
+ readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
30
+ readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
31
+ readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
32
+ readonly overloaded: "The API is shedding load; retry after Retry-After.";
33
+ readonly payload_too_large: "The request body is larger than the API accepts.";
34
+ readonly internal_error: "An unexpected failure on our side.";
35
+ readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
36
+ readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
37
+ readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
38
+ }>>, Record<never, never>>;
39
+ update: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
40
+ bodyStorage: import("zod").ZodOptional<import("zod").ZodEnum<{
41
+ none: "none";
42
+ cache: "cache";
43
+ full: "full";
44
+ }>>;
45
+ syncWindowDays: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
46
+ calendarEnabled: import("zod").ZodOptional<import("zod").ZodBoolean>;
47
+ contactsEnabled: import("zod").ZodOptional<import("zod").ZodBoolean>;
48
+ undoSendSeconds: import("zod").ZodOptional<import("zod").ZodNumber>;
49
+ trackOpens: import("zod").ZodOptional<import("zod").ZodBoolean>;
50
+ trackClicks: import("zod").ZodOptional<import("zod").ZodBoolean>;
51
+ trackingHoneypot: import("zod").ZodOptional<import("zod").ZodBoolean>;
52
+ optOutHandling: import("zod").ZodOptional<import("zod").ZodEnum<{
53
+ off: "off";
54
+ review: "review";
55
+ suppress: "suppress";
56
+ }>>;
57
+ eventRetentionDays: import("zod").ZodOptional<import("zod").ZodNumber>;
58
+ redirectUris: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodURL>>;
59
+ aiReplyClassification: import("zod").ZodOptional<import("zod").ZodBoolean>;
60
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
61
+ bodyStorage: import("zod").ZodEnum<{
62
+ none: "none";
63
+ cache: "cache";
64
+ full: "full";
65
+ }>;
66
+ syncWindowDays: import("zod").ZodNullable<import("zod").ZodNumber>;
67
+ calendarEnabled: import("zod").ZodBoolean;
68
+ contactsEnabled: import("zod").ZodBoolean;
69
+ undoSendSeconds: import("zod").ZodNumber;
70
+ trackOpens: import("zod").ZodBoolean;
71
+ trackClicks: import("zod").ZodBoolean;
72
+ trackingHoneypot: import("zod").ZodBoolean;
73
+ optOutHandling: import("zod").ZodEnum<{
74
+ off: "off";
75
+ review: "review";
76
+ suppress: "suppress";
77
+ }>;
78
+ eventRetentionDays: import("zod").ZodNumber;
79
+ redirectUris: import("zod").ZodArray<import("zod").ZodURL>;
80
+ aiReplyClassification: import("zod").ZodBoolean;
81
+ }, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
82
+ readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
83
+ readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
84
+ readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
85
+ readonly missing_scope: "The API key lacks the scope the operation needs.";
86
+ readonly role_forbidden: "The member's role does not allow the operation.";
87
+ readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
88
+ readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
89
+ readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
90
+ readonly overloaded: "The API is shedding load; retry after Retry-After.";
91
+ readonly payload_too_large: "The request body is larger than the API accepts.";
92
+ readonly internal_error: "An unexpected failure on our side.";
93
+ readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
94
+ readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
95
+ readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
96
+ }>>, {
97
+ redirect_uri_not_allowed: {
98
+ status: 400;
99
+ message: string;
100
+ };
101
+ plan_limit_storage: {
102
+ status: 403;
103
+ message: string;
104
+ };
105
+ storage_unavailable: {
106
+ status: 400;
107
+ message: string;
108
+ };
109
+ }>, Record<never, never>>;
110
+ };
@@ -0,0 +1,231 @@
1
+ import * as z from "zod";
2
+ /** The list every send that names a list consults. Not a name a send can give. */
3
+ export declare const GLOBAL_LIST_ID = "global";
4
+ /** The built-in global list's name; it cannot be renamed. */
5
+ export declare const GLOBAL_LIST_NAME = "Everyone (global)";
6
+ /** A hostname label, as EmailEngine's listId: letters, digits and inner hyphens, 1 to 63. */
7
+ export declare const LIST_ID_PATTERN: RegExp;
8
+ /** A list id as the suppression routes take it: a named list or "global". Case-insensitive. */
9
+ export declare const SuppressionListId: z.ZodString;
10
+ /** A list a send names: a hostname label other than "global". */
11
+ export declare const ListId: z.ZodString;
12
+ /** unsubscribe: the recipient's one-click POST or the confirm page; bounce: a permanent bounce
13
+ * saying the address is gone; api: POST /v1/suppressions/{listId}/entries; reply: a reply asking to opt
14
+ * out; complaint: an abuse report (ARF) from the recipient's provider; inactive: an auto-reply
15
+ * saying the person is no longer at this address. reply, complaint and inactive are detected, and
16
+ * land per the tenant's optOutHandling. */
17
+ export declare const SuppressionSource: z.ZodEnum<{
18
+ api: "api";
19
+ bounce: "bounce";
20
+ unsubscribe: "unsubscribe";
21
+ reply: "reply";
22
+ complaint: "complaint";
23
+ inactive: "inactive";
24
+ }>;
25
+ export type SuppressionSource = z.infer<typeof SuppressionSource>;
26
+ /** Opt-outs detected in mail rather than stated by a link: see optOutHandling. inactive (an
27
+ * auto-reply saying the person left or moved to another address) always waits for review. */
28
+ export declare const DetectedOptOutSource: z.ZodEnum<{
29
+ reply: "reply";
30
+ complaint: "complaint";
31
+ inactive: "inactive";
32
+ }>;
33
+ export type DetectedOptOutSource = z.infer<typeof DetectedOptOutSource>;
34
+ export declare const SuppressionEntry: z.ZodObject<{
35
+ address: z.ZodString;
36
+ source: z.ZodEnum<{
37
+ api: "api";
38
+ bounce: "bounce";
39
+ unsubscribe: "unsubscribe";
40
+ reply: "reply";
41
+ complaint: "complaint";
42
+ inactive: "inactive";
43
+ }>;
44
+ reason: z.ZodNullable<z.ZodString>;
45
+ createdAt: z.ZodPreprocess<z.ZodDate, Date>;
46
+ }, z.core.$strip>;
47
+ export type SuppressionEntry = z.infer<typeof SuppressionEntry>;
48
+ export declare const SuppressionEntryPage: z.ZodObject<{
49
+ items: z.ZodArray<z.ZodObject<{
50
+ address: z.ZodString;
51
+ source: z.ZodEnum<{
52
+ api: "api";
53
+ bounce: "bounce";
54
+ unsubscribe: "unsubscribe";
55
+ reply: "reply";
56
+ complaint: "complaint";
57
+ inactive: "inactive";
58
+ }>;
59
+ reason: z.ZodNullable<z.ZodString>;
60
+ createdAt: z.ZodPreprocess<z.ZodDate, Date>;
61
+ }, z.core.$strip>>;
62
+ nextCursor: z.ZodNullable<z.ZodString>;
63
+ }, z.core.$strip>;
64
+ export type SuppressionEntryPage = z.infer<typeof SuppressionEntryPage>;
65
+ /** Addresses on a list by source. */
66
+ export declare const SuppressionCounts: z.ZodObject<{
67
+ unsubscribe: z.ZodNumber;
68
+ bounce: z.ZodNumber;
69
+ api: z.ZodNumber;
70
+ reply: z.ZodNumber;
71
+ complaint: z.ZodNumber;
72
+ inactive: z.ZodNumber;
73
+ }, z.core.$strip>;
74
+ export type SuppressionCounts = z.infer<typeof SuppressionCounts>;
75
+ export declare const SuppressionList: z.ZodObject<{
76
+ id: z.ZodString;
77
+ name: z.ZodString;
78
+ description: z.ZodNullable<z.ZodString>;
79
+ count: z.ZodNumber;
80
+ counts: z.ZodObject<{
81
+ unsubscribe: z.ZodNumber;
82
+ bounce: z.ZodNumber;
83
+ api: z.ZodNumber;
84
+ reply: z.ZodNumber;
85
+ complaint: z.ZodNumber;
86
+ inactive: z.ZodNumber;
87
+ }, z.core.$strip>;
88
+ createdAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
89
+ }, z.core.$strip>;
90
+ export type SuppressionList = z.infer<typeof SuppressionList>;
91
+ export declare const SuppressionListList: z.ZodObject<{
92
+ items: z.ZodArray<z.ZodObject<{
93
+ id: z.ZodString;
94
+ name: z.ZodString;
95
+ description: z.ZodNullable<z.ZodString>;
96
+ count: z.ZodNumber;
97
+ counts: z.ZodObject<{
98
+ unsubscribe: z.ZodNumber;
99
+ bounce: z.ZodNumber;
100
+ api: z.ZodNumber;
101
+ reply: z.ZodNumber;
102
+ complaint: z.ZodNumber;
103
+ inactive: z.ZodNumber;
104
+ }, z.core.$strip>;
105
+ createdAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
106
+ }, z.core.$strip>>;
107
+ }, z.core.$strip>;
108
+ export type SuppressionListList = z.infer<typeof SuppressionListList>;
109
+ /** A detected opt-out waiting for a person (optOutHandling "review"). */
110
+ export declare const SuppressionReview: z.ZodObject<{
111
+ id: z.ZodUUID;
112
+ listId: z.ZodString;
113
+ address: z.ZodString;
114
+ source: z.ZodEnum<{
115
+ reply: "reply";
116
+ complaint: "complaint";
117
+ inactive: "inactive";
118
+ }>;
119
+ accountId: z.ZodUUID;
120
+ messageId: z.ZodUUID;
121
+ probability: z.ZodNumber;
122
+ alternateContacts: z.ZodArray<z.ZodString>;
123
+ createdAt: z.ZodPreprocess<z.ZodDate, Date>;
124
+ }, z.core.$strip>;
125
+ export type SuppressionReview = z.infer<typeof SuppressionReview>;
126
+ export declare const SuppressionReviewPage: z.ZodObject<{
127
+ items: z.ZodArray<z.ZodObject<{
128
+ id: z.ZodUUID;
129
+ listId: z.ZodString;
130
+ address: z.ZodString;
131
+ source: z.ZodEnum<{
132
+ reply: "reply";
133
+ complaint: "complaint";
134
+ inactive: "inactive";
135
+ }>;
136
+ accountId: z.ZodUUID;
137
+ messageId: z.ZodUUID;
138
+ probability: z.ZodNumber;
139
+ alternateContacts: z.ZodArray<z.ZodString>;
140
+ createdAt: z.ZodPreprocess<z.ZodDate, Date>;
141
+ }, z.core.$strip>>;
142
+ nextCursor: z.ZodNullable<z.ZodString>;
143
+ }, z.core.$strip>;
144
+ export type SuppressionReviewPage = z.infer<typeof SuppressionReviewPage>;
145
+ export declare const ListIdInput: z.ZodObject<{
146
+ listId: z.ZodString;
147
+ }, z.core.$strip>;
148
+ export type ListIdInput = z.infer<typeof ListIdInput>;
149
+ export declare const SuppressionListIdInput: z.ZodObject<{
150
+ listId: z.ZodString;
151
+ }, z.core.$strip>;
152
+ export type SuppressionListIdInput = z.infer<typeof SuppressionListIdInput>;
153
+ export declare const ReviewIdInput: z.ZodObject<{
154
+ reviewId: z.ZodUUID;
155
+ }, z.core.$strip>;
156
+ export type ReviewIdInput = z.infer<typeof ReviewIdInput>;
157
+ export declare const CreateSuppressionList: z.ZodObject<{
158
+ id: z.ZodString;
159
+ name: z.ZodString;
160
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
161
+ }, z.core.$strip>;
162
+ export type CreateSuppressionList = z.infer<typeof CreateSuppressionList>;
163
+ export declare const UpdateSuppressionList: z.ZodObject<{
164
+ name: z.ZodOptional<z.ZodString>;
165
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
166
+ }, z.core.$strip>;
167
+ export type UpdateSuppressionList = z.infer<typeof UpdateSuppressionList>;
168
+ export declare const DeleteSuppressionListQuery: z.ZodObject<{
169
+ withEntries: z.ZodDefault<z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodEnum<{
170
+ true: "true";
171
+ false: "false";
172
+ }>]>, z.ZodTransform<boolean, boolean | "true" | "false">>>;
173
+ }, z.core.$strip>;
174
+ export type DeleteSuppressionListQuery = z.infer<typeof DeleteSuppressionListQuery>;
175
+ /** The path's list and the query's options, as a DELETE takes them. */
176
+ export declare const DeleteSuppressionListInput: z.ZodObject<{
177
+ params: z.ZodObject<{
178
+ listId: z.ZodString;
179
+ }, z.core.$strip>;
180
+ query: z.ZodObject<{
181
+ withEntries: z.ZodDefault<z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodEnum<{
182
+ true: "true";
183
+ false: "false";
184
+ }>]>, z.ZodTransform<boolean, boolean | "true" | "false">>>;
185
+ }, z.core.$strip>;
186
+ }, z.core.$strip>;
187
+ export type DeleteSuppressionListInput = z.infer<typeof DeleteSuppressionListInput>;
188
+ export declare const ListSuppressionEntriesQuery: z.ZodObject<{
189
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
190
+ cursor: z.ZodOptional<z.ZodString>;
191
+ address: z.ZodOptional<z.ZodString>;
192
+ source: z.ZodOptional<z.ZodEnum<{
193
+ api: "api";
194
+ bounce: "bounce";
195
+ unsubscribe: "unsubscribe";
196
+ reply: "reply";
197
+ complaint: "complaint";
198
+ inactive: "inactive";
199
+ }>>;
200
+ }, z.core.$strip>;
201
+ export type ListSuppressionEntriesQuery = z.infer<typeof ListSuppressionEntriesQuery>;
202
+ /** Addresses to put on a list; a repeated address counts once. */
203
+ export declare const AddSuppressionEntriesRequest: z.ZodObject<{
204
+ addresses: z.ZodArray<z.ZodEmail>;
205
+ reason: z.ZodOptional<z.ZodString>;
206
+ }, z.core.$strip>;
207
+ export type AddSuppressionEntriesRequest = z.infer<typeof AddSuppressionEntriesRequest>;
208
+ /** An entry of a list, by its address. Any stored address can be released, including one an
209
+ * older rule let in. */
210
+ export declare const SuppressionEntryInput: z.ZodObject<{
211
+ listId: z.ZodString;
212
+ address: z.ZodString;
213
+ }, z.core.$strip>;
214
+ export type SuppressionEntryInput = z.infer<typeof SuppressionEntryInput>;
215
+ export declare const ListSuppressionReviewsQuery: z.ZodObject<{
216
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
217
+ cursor: z.ZodOptional<z.ZodString>;
218
+ listId: z.ZodOptional<z.ZodString>;
219
+ }, z.core.$strip>;
220
+ export type ListSuppressionReviewsQuery = z.infer<typeof ListSuppressionReviewsQuery>;
221
+ /** added: false when the address was on the list already, which is left as it was. */
222
+ export declare const SuppressionAdded: z.ZodObject<{
223
+ added: z.ZodBoolean;
224
+ }, z.core.$strip>;
225
+ export type SuppressionAdded = z.infer<typeof SuppressionAdded>;
226
+ /** added: addresses put on the list; alreadyListed: those on it already, left as they were. */
227
+ export declare const SuppressionEntriesAdded: z.ZodObject<{
228
+ added: z.ZodNumber;
229
+ alreadyListed: z.ZodNumber;
230
+ }, z.core.$strip>;
231
+ export type SuppressionEntriesAdded = z.infer<typeof SuppressionEntriesAdded>;