@workwae/sdk 0.0.0-stage → 0.1.0-alpha.2
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/README.md +233 -2
- package/client.d.ts +36 -0
- package/contract/accounts/models.d.ts +766 -0
- package/contract/accounts/routes.d.ts +1480 -0
- package/contract/ai/models.d.ts +29 -0
- package/contract/ai/routes.d.ts +98 -0
- package/contract/audit-log/models.d.ts +121 -0
- package/contract/audit-log/routes.d.ts +81 -0
- package/contract/calendar/models.d.ts +1012 -0
- package/contract/calendar/routes.d.ts +1843 -0
- package/contract/connect/models.d.ts +284 -0
- package/contract/connect/routes.d.ts +570 -0
- package/contract/contacts/models.d.ts +259 -0
- package/contract/contacts/routes.d.ts +648 -0
- package/contract/email-validation/models.d.ts +119 -0
- package/contract/email-validation/routes.d.ts +106 -0
- package/contract/errors.d.ts +116 -0
- package/contract/events/models.d.ts +2424 -0
- package/contract/events/routes.d.ts +117 -0
- package/contract/exports/models.d.ts +67 -0
- package/contract/exports/routes.d.ts +206 -0
- package/contract/identities/models.d.ts +98 -0
- package/contract/identities/routes.d.ts +318 -0
- package/contract/limits.d.ts +118 -0
- package/contract/mail/models.d.ts +571 -0
- package/contract/mail/routes.d.ts +1189 -0
- package/contract/mcp-keys/models.d.ts +125 -0
- package/contract/mcp-keys/routes.d.ts +151 -0
- package/contract/meetings/models.d.ts +227 -0
- package/contract/meetings/routes.d.ts +405 -0
- package/contract/oauth-apps/models.d.ts +86 -0
- package/contract/oauth-apps/routes.d.ts +195 -0
- package/contract/org-connections/models.d.ts +427 -0
- package/contract/org-connections/routes.d.ts +1107 -0
- package/contract/plans/credit-packs.d.ts +30 -0
- package/contract/plans/models.d.ts +208 -0
- package/contract/primitives.d.ts +85 -0
- package/contract/public.d.ts +32 -0
- package/contract/reasons.d.ts +1222 -0
- package/contract/router.d.ts +12986 -0
- package/contract/scheduling/models.d.ts +405 -0
- package/contract/scheduling/routes.d.ts +756 -0
- package/contract/send/models.d.ts +787 -0
- package/contract/send/routes.d.ts +1488 -0
- package/contract/settings/models.d.ts +163 -0
- package/contract/settings/routes.d.ts +162 -0
- package/contract/suppressions/models.d.ts +224 -0
- package/contract/suppressions/routes.d.ts +365 -0
- package/contract/templates/models.d.ts +155 -0
- package/contract/templates/routes.d.ts +305 -0
- package/contract/threads/models.d.ts +112 -0
- package/contract/threads/routes.d.ts +376 -0
- package/contract/tracking-domain/models.d.ts +41 -0
- package/contract/tracking-domain/routes.d.ts +193 -0
- package/contract/usage/models.d.ts +185 -0
- package/contract/usage/routes.d.ts +109 -0
- package/contract/webhooks/models.d.ts +894 -0
- package/contract/webhooks/routes.d.ts +882 -0
- package/contract/webhooks/signing.d.ts +19 -0
- package/errors.d.ts +15 -0
- package/index.d.ts +6 -0
- package/index.js +1 -0
- package/package.json +44 -4
- package/pagination.d.ts +40 -0
- package/webhooks.d.ts +28 -0
|
@@ -0,0 +1,163 @@
|
|
|
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
|
+
export declare const EffectiveSettings: z.ZodObject<{
|
|
9
|
+
bodyStorage: z.ZodEnum<{
|
|
10
|
+
none: "none";
|
|
11
|
+
cache: "cache";
|
|
12
|
+
full: "full";
|
|
13
|
+
}>;
|
|
14
|
+
syncWindowDays: z.ZodNullable<z.ZodNumber>;
|
|
15
|
+
mailEnabled: z.ZodBoolean;
|
|
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
|
+
suppressionCheck: z.ZodEnum<{
|
|
23
|
+
lists: "lists";
|
|
24
|
+
always: "always";
|
|
25
|
+
}>;
|
|
26
|
+
sendsPerMinute: z.ZodNullable<z.ZodNumber>;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
export type EffectiveSettings = z.infer<typeof EffectiveSettings>;
|
|
29
|
+
export declare const SettingsOverride: z.ZodObject<{
|
|
30
|
+
bodyStorage: z.ZodOptional<z.ZodEnum<{
|
|
31
|
+
none: "none";
|
|
32
|
+
cache: "cache";
|
|
33
|
+
full: "full";
|
|
34
|
+
}>>;
|
|
35
|
+
syncWindowDays: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
36
|
+
mailEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
37
|
+
calendarEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
38
|
+
contactsEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
39
|
+
undoSendSeconds: z.ZodOptional<z.ZodNumber>;
|
|
40
|
+
trackOpens: z.ZodOptional<z.ZodBoolean>;
|
|
41
|
+
trackClicks: z.ZodOptional<z.ZodBoolean>;
|
|
42
|
+
trackingHoneypot: z.ZodOptional<z.ZodBoolean>;
|
|
43
|
+
suppressionCheck: z.ZodOptional<z.ZodEnum<{
|
|
44
|
+
lists: "lists";
|
|
45
|
+
always: "always";
|
|
46
|
+
}>>;
|
|
47
|
+
sendsPerMinute: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
48
|
+
}, z.core.$strip>;
|
|
49
|
+
export type SettingsOverride = z.infer<typeof SettingsOverride>;
|
|
50
|
+
export declare function redirectUriProblem(uri: string): string | null;
|
|
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 McpSendMode: z.ZodEnum<{
|
|
58
|
+
allow: "allow";
|
|
59
|
+
confirm: "confirm";
|
|
60
|
+
drafts_only: "drafts_only";
|
|
61
|
+
}>;
|
|
62
|
+
export type McpSendMode = z.infer<typeof McpSendMode>;
|
|
63
|
+
export declare const RecipientDomain: z.ZodString;
|
|
64
|
+
export declare const McpSendPolicy: z.ZodObject<{
|
|
65
|
+
mode: z.ZodEnum<{
|
|
66
|
+
allow: "allow";
|
|
67
|
+
confirm: "confirm";
|
|
68
|
+
drafts_only: "drafts_only";
|
|
69
|
+
}>;
|
|
70
|
+
allowedRecipientDomains: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
71
|
+
dailySendLimit: z.ZodNullable<z.ZodNumber>;
|
|
72
|
+
externalRecipientConfirmation: z.ZodBoolean;
|
|
73
|
+
}, z.core.$strip>;
|
|
74
|
+
export type McpSendPolicy = z.infer<typeof McpSendPolicy>;
|
|
75
|
+
export declare const McpSendPolicyPatch: z.ZodObject<{
|
|
76
|
+
mode: z.ZodOptional<z.ZodEnum<{
|
|
77
|
+
allow: "allow";
|
|
78
|
+
confirm: "confirm";
|
|
79
|
+
drafts_only: "drafts_only";
|
|
80
|
+
}>>;
|
|
81
|
+
allowedRecipientDomains: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
82
|
+
dailySendLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
83
|
+
externalRecipientConfirmation: z.ZodOptional<z.ZodBoolean>;
|
|
84
|
+
}, z.core.$strip>;
|
|
85
|
+
export type McpSendPolicyPatch = z.infer<typeof McpSendPolicyPatch>;
|
|
86
|
+
export declare const TenantSettings: z.ZodObject<{
|
|
87
|
+
bodyStorage: z.ZodEnum<{
|
|
88
|
+
none: "none";
|
|
89
|
+
cache: "cache";
|
|
90
|
+
full: "full";
|
|
91
|
+
}>;
|
|
92
|
+
syncWindowDays: z.ZodNullable<z.ZodNumber>;
|
|
93
|
+
mailEnabled: z.ZodBoolean;
|
|
94
|
+
calendarEnabled: z.ZodBoolean;
|
|
95
|
+
contactsEnabled: z.ZodBoolean;
|
|
96
|
+
undoSendSeconds: z.ZodNumber;
|
|
97
|
+
trackOpens: z.ZodBoolean;
|
|
98
|
+
trackClicks: z.ZodBoolean;
|
|
99
|
+
trackingHoneypot: z.ZodBoolean;
|
|
100
|
+
suppressionCheck: z.ZodEnum<{
|
|
101
|
+
lists: "lists";
|
|
102
|
+
always: "always";
|
|
103
|
+
}>;
|
|
104
|
+
sendsPerMinute: z.ZodNullable<z.ZodNumber>;
|
|
105
|
+
optOutHandling: z.ZodEnum<{
|
|
106
|
+
off: "off";
|
|
107
|
+
review: "review";
|
|
108
|
+
suppress: "suppress";
|
|
109
|
+
}>;
|
|
110
|
+
eventRetentionDays: z.ZodNumber;
|
|
111
|
+
redirectUris: z.ZodArray<z.ZodURL>;
|
|
112
|
+
aiReplyClassification: z.ZodBoolean;
|
|
113
|
+
mcpSendPolicy: z.ZodObject<{
|
|
114
|
+
mode: z.ZodEnum<{
|
|
115
|
+
allow: "allow";
|
|
116
|
+
confirm: "confirm";
|
|
117
|
+
drafts_only: "drafts_only";
|
|
118
|
+
}>;
|
|
119
|
+
allowedRecipientDomains: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
120
|
+
dailySendLimit: z.ZodNullable<z.ZodNumber>;
|
|
121
|
+
externalRecipientConfirmation: z.ZodBoolean;
|
|
122
|
+
}, z.core.$strip>;
|
|
123
|
+
}, z.core.$strip>;
|
|
124
|
+
export type TenantSettings = z.infer<typeof TenantSettings>;
|
|
125
|
+
export declare const UpdateTenantSettings: z.ZodObject<{
|
|
126
|
+
bodyStorage: z.ZodOptional<z.ZodEnum<{
|
|
127
|
+
none: "none";
|
|
128
|
+
cache: "cache";
|
|
129
|
+
full: "full";
|
|
130
|
+
}>>;
|
|
131
|
+
syncWindowDays: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
132
|
+
mailEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
133
|
+
calendarEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
134
|
+
contactsEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
135
|
+
undoSendSeconds: z.ZodOptional<z.ZodNumber>;
|
|
136
|
+
trackOpens: z.ZodOptional<z.ZodBoolean>;
|
|
137
|
+
trackClicks: z.ZodOptional<z.ZodBoolean>;
|
|
138
|
+
trackingHoneypot: z.ZodOptional<z.ZodBoolean>;
|
|
139
|
+
suppressionCheck: z.ZodOptional<z.ZodEnum<{
|
|
140
|
+
lists: "lists";
|
|
141
|
+
always: "always";
|
|
142
|
+
}>>;
|
|
143
|
+
sendsPerMinute: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
144
|
+
optOutHandling: z.ZodOptional<z.ZodEnum<{
|
|
145
|
+
off: "off";
|
|
146
|
+
review: "review";
|
|
147
|
+
suppress: "suppress";
|
|
148
|
+
}>>;
|
|
149
|
+
eventRetentionDays: z.ZodOptional<z.ZodNumber>;
|
|
150
|
+
redirectUris: z.ZodOptional<z.ZodArray<z.ZodURL>>;
|
|
151
|
+
aiReplyClassification: z.ZodOptional<z.ZodBoolean>;
|
|
152
|
+
mcpSendPolicy: z.ZodOptional<z.ZodObject<{
|
|
153
|
+
mode: z.ZodOptional<z.ZodEnum<{
|
|
154
|
+
allow: "allow";
|
|
155
|
+
confirm: "confirm";
|
|
156
|
+
drafts_only: "drafts_only";
|
|
157
|
+
}>>;
|
|
158
|
+
allowedRecipientDomains: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
159
|
+
dailySendLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
160
|
+
externalRecipientConfirmation: z.ZodOptional<z.ZodBoolean>;
|
|
161
|
+
}, z.core.$strip>>;
|
|
162
|
+
}, z.core.$strip>;
|
|
163
|
+
export type UpdateTenantSettings = z.infer<typeof UpdateTenantSettings>;
|
|
@@ -0,0 +1,162 @@
|
|
|
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
|
+
mailEnabled: import("zod").ZodBoolean;
|
|
10
|
+
calendarEnabled: import("zod").ZodBoolean;
|
|
11
|
+
contactsEnabled: import("zod").ZodBoolean;
|
|
12
|
+
undoSendSeconds: import("zod").ZodNumber;
|
|
13
|
+
trackOpens: import("zod").ZodBoolean;
|
|
14
|
+
trackClicks: import("zod").ZodBoolean;
|
|
15
|
+
trackingHoneypot: import("zod").ZodBoolean;
|
|
16
|
+
suppressionCheck: import("zod").ZodEnum<{
|
|
17
|
+
lists: "lists";
|
|
18
|
+
always: "always";
|
|
19
|
+
}>;
|
|
20
|
+
sendsPerMinute: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
21
|
+
optOutHandling: import("zod").ZodEnum<{
|
|
22
|
+
off: "off";
|
|
23
|
+
review: "review";
|
|
24
|
+
suppress: "suppress";
|
|
25
|
+
}>;
|
|
26
|
+
eventRetentionDays: import("zod").ZodNumber;
|
|
27
|
+
redirectUris: import("zod").ZodArray<import("zod").ZodURL>;
|
|
28
|
+
aiReplyClassification: import("zod").ZodBoolean;
|
|
29
|
+
mcpSendPolicy: import("zod").ZodObject<{
|
|
30
|
+
mode: import("zod").ZodEnum<{
|
|
31
|
+
allow: "allow";
|
|
32
|
+
confirm: "confirm";
|
|
33
|
+
drafts_only: "drafts_only";
|
|
34
|
+
}>;
|
|
35
|
+
allowedRecipientDomains: import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodString>>;
|
|
36
|
+
dailySendLimit: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
37
|
+
externalRecipientConfirmation: import("zod").ZodBoolean;
|
|
38
|
+
}, import("zod/v4/core").$strip>;
|
|
39
|
+
}, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
|
|
40
|
+
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
41
|
+
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
42
|
+
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
43
|
+
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
44
|
+
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
45
|
+
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
46
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
47
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
48
|
+
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
49
|
+
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
50
|
+
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
51
|
+
readonly payload_too_large: "The request body is larger than the API accepts.";
|
|
52
|
+
readonly internal_error: "An unexpected failure on our side.";
|
|
53
|
+
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
54
|
+
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
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<{
|
|
58
|
+
bodyStorage: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
59
|
+
none: "none";
|
|
60
|
+
cache: "cache";
|
|
61
|
+
full: "full";
|
|
62
|
+
}>>;
|
|
63
|
+
syncWindowDays: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
64
|
+
mailEnabled: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
65
|
+
calendarEnabled: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
66
|
+
contactsEnabled: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
67
|
+
undoSendSeconds: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
68
|
+
trackOpens: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
69
|
+
trackClicks: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
70
|
+
trackingHoneypot: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
71
|
+
suppressionCheck: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
72
|
+
lists: "lists";
|
|
73
|
+
always: "always";
|
|
74
|
+
}>>;
|
|
75
|
+
sendsPerMinute: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
76
|
+
optOutHandling: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
77
|
+
off: "off";
|
|
78
|
+
review: "review";
|
|
79
|
+
suppress: "suppress";
|
|
80
|
+
}>>;
|
|
81
|
+
eventRetentionDays: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
82
|
+
redirectUris: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodURL>>;
|
|
83
|
+
aiReplyClassification: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
84
|
+
mcpSendPolicy: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
85
|
+
mode: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
86
|
+
allow: "allow";
|
|
87
|
+
confirm: "confirm";
|
|
88
|
+
drafts_only: "drafts_only";
|
|
89
|
+
}>>;
|
|
90
|
+
allowedRecipientDomains: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodString>>>;
|
|
91
|
+
dailySendLimit: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
92
|
+
externalRecipientConfirmation: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
93
|
+
}, import("zod/v4/core").$strip>>;
|
|
94
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
95
|
+
bodyStorage: import("zod").ZodEnum<{
|
|
96
|
+
none: "none";
|
|
97
|
+
cache: "cache";
|
|
98
|
+
full: "full";
|
|
99
|
+
}>;
|
|
100
|
+
syncWindowDays: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
101
|
+
mailEnabled: import("zod").ZodBoolean;
|
|
102
|
+
calendarEnabled: import("zod").ZodBoolean;
|
|
103
|
+
contactsEnabled: import("zod").ZodBoolean;
|
|
104
|
+
undoSendSeconds: import("zod").ZodNumber;
|
|
105
|
+
trackOpens: import("zod").ZodBoolean;
|
|
106
|
+
trackClicks: import("zod").ZodBoolean;
|
|
107
|
+
trackingHoneypot: import("zod").ZodBoolean;
|
|
108
|
+
suppressionCheck: import("zod").ZodEnum<{
|
|
109
|
+
lists: "lists";
|
|
110
|
+
always: "always";
|
|
111
|
+
}>;
|
|
112
|
+
sendsPerMinute: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
113
|
+
optOutHandling: import("zod").ZodEnum<{
|
|
114
|
+
off: "off";
|
|
115
|
+
review: "review";
|
|
116
|
+
suppress: "suppress";
|
|
117
|
+
}>;
|
|
118
|
+
eventRetentionDays: import("zod").ZodNumber;
|
|
119
|
+
redirectUris: import("zod").ZodArray<import("zod").ZodURL>;
|
|
120
|
+
aiReplyClassification: import("zod").ZodBoolean;
|
|
121
|
+
mcpSendPolicy: import("zod").ZodObject<{
|
|
122
|
+
mode: import("zod").ZodEnum<{
|
|
123
|
+
allow: "allow";
|
|
124
|
+
confirm: "confirm";
|
|
125
|
+
drafts_only: "drafts_only";
|
|
126
|
+
}>;
|
|
127
|
+
allowedRecipientDomains: import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodString>>;
|
|
128
|
+
dailySendLimit: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
129
|
+
externalRecipientConfirmation: import("zod").ZodBoolean;
|
|
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<{
|
|
132
|
+
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
133
|
+
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
134
|
+
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
135
|
+
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
136
|
+
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
137
|
+
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
138
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
139
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
140
|
+
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
141
|
+
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
142
|
+
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
143
|
+
readonly payload_too_large: "The request body is larger than the API accepts.";
|
|
144
|
+
readonly internal_error: "An unexpected failure on our side.";
|
|
145
|
+
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
146
|
+
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
147
|
+
readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
|
|
148
|
+
}>>, {
|
|
149
|
+
redirect_uri_not_allowed: {
|
|
150
|
+
status: 400;
|
|
151
|
+
message: string;
|
|
152
|
+
};
|
|
153
|
+
plan_limit_storage: import("../errors.js").DeclaredError<"plan_limit_storage">;
|
|
154
|
+
storage_unavailable: {
|
|
155
|
+
status: 400;
|
|
156
|
+
message: string;
|
|
157
|
+
};
|
|
158
|
+
plan_limit_accounts: import("../errors.js").DeclaredError<"plan_limit_accounts">;
|
|
159
|
+
plan_required: import("../errors.js").DeclaredError<"plan_required">;
|
|
160
|
+
spend_cap_reached: import("../errors.js").DeclaredError<"spend_cap_reached">;
|
|
161
|
+
}>, Record<never, never>>;
|
|
162
|
+
};
|
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
export declare const GLOBAL_LIST_ID = "global";
|
|
3
|
+
export declare const GLOBAL_LIST_NAME = "Everyone (global)";
|
|
4
|
+
export declare const LIST_ID_PATTERN: RegExp;
|
|
5
|
+
export declare const SuppressionListId: z.ZodString;
|
|
6
|
+
export declare const ListId: z.ZodString;
|
|
7
|
+
export declare const SuppressionSource: z.ZodEnum<{
|
|
8
|
+
api: "api";
|
|
9
|
+
invalid: "invalid";
|
|
10
|
+
bounce: "bounce";
|
|
11
|
+
unsubscribe: "unsubscribe";
|
|
12
|
+
reply: "reply";
|
|
13
|
+
complaint: "complaint";
|
|
14
|
+
inactive: "inactive";
|
|
15
|
+
}>;
|
|
16
|
+
export type SuppressionSource = z.infer<typeof SuppressionSource>;
|
|
17
|
+
export declare const DetectedOptOutSource: z.ZodEnum<{
|
|
18
|
+
reply: "reply";
|
|
19
|
+
complaint: "complaint";
|
|
20
|
+
inactive: "inactive";
|
|
21
|
+
}>;
|
|
22
|
+
export type DetectedOptOutSource = z.infer<typeof DetectedOptOutSource>;
|
|
23
|
+
export declare const SuppressionEntry: z.ZodObject<{
|
|
24
|
+
address: z.ZodString;
|
|
25
|
+
source: z.ZodEnum<{
|
|
26
|
+
api: "api";
|
|
27
|
+
invalid: "invalid";
|
|
28
|
+
bounce: "bounce";
|
|
29
|
+
unsubscribe: "unsubscribe";
|
|
30
|
+
reply: "reply";
|
|
31
|
+
complaint: "complaint";
|
|
32
|
+
inactive: "inactive";
|
|
33
|
+
}>;
|
|
34
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
35
|
+
createdAt: z.ZodPreprocess<z.ZodDate, Date>;
|
|
36
|
+
}, z.core.$strip>;
|
|
37
|
+
export type SuppressionEntry = z.infer<typeof SuppressionEntry>;
|
|
38
|
+
export declare const SuppressionEntryPage: z.ZodObject<{
|
|
39
|
+
items: z.ZodArray<z.ZodObject<{
|
|
40
|
+
address: z.ZodString;
|
|
41
|
+
source: z.ZodEnum<{
|
|
42
|
+
api: "api";
|
|
43
|
+
invalid: "invalid";
|
|
44
|
+
bounce: "bounce";
|
|
45
|
+
unsubscribe: "unsubscribe";
|
|
46
|
+
reply: "reply";
|
|
47
|
+
complaint: "complaint";
|
|
48
|
+
inactive: "inactive";
|
|
49
|
+
}>;
|
|
50
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
51
|
+
createdAt: z.ZodPreprocess<z.ZodDate, Date>;
|
|
52
|
+
}, z.core.$strip>>;
|
|
53
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
54
|
+
}, z.core.$strip>;
|
|
55
|
+
export type SuppressionEntryPage = z.infer<typeof SuppressionEntryPage>;
|
|
56
|
+
export declare const SuppressionCounts: z.ZodObject<{
|
|
57
|
+
unsubscribe: z.ZodNumber;
|
|
58
|
+
bounce: z.ZodNumber;
|
|
59
|
+
api: z.ZodNumber;
|
|
60
|
+
reply: z.ZodNumber;
|
|
61
|
+
complaint: z.ZodNumber;
|
|
62
|
+
inactive: z.ZodNumber;
|
|
63
|
+
invalid: z.ZodNumber;
|
|
64
|
+
}, z.core.$strip>;
|
|
65
|
+
export type SuppressionCounts = z.infer<typeof SuppressionCounts>;
|
|
66
|
+
export declare const SuppressionList: z.ZodObject<{
|
|
67
|
+
id: z.ZodString;
|
|
68
|
+
name: z.ZodString;
|
|
69
|
+
description: z.ZodNullable<z.ZodString>;
|
|
70
|
+
count: z.ZodNumber;
|
|
71
|
+
counts: z.ZodObject<{
|
|
72
|
+
unsubscribe: z.ZodNumber;
|
|
73
|
+
bounce: z.ZodNumber;
|
|
74
|
+
api: z.ZodNumber;
|
|
75
|
+
reply: z.ZodNumber;
|
|
76
|
+
complaint: z.ZodNumber;
|
|
77
|
+
inactive: z.ZodNumber;
|
|
78
|
+
invalid: z.ZodNumber;
|
|
79
|
+
}, z.core.$strip>;
|
|
80
|
+
createdAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
81
|
+
}, z.core.$strip>;
|
|
82
|
+
export type SuppressionList = z.infer<typeof SuppressionList>;
|
|
83
|
+
export declare const SuppressionListList: z.ZodObject<{
|
|
84
|
+
items: z.ZodArray<z.ZodObject<{
|
|
85
|
+
id: z.ZodString;
|
|
86
|
+
name: z.ZodString;
|
|
87
|
+
description: z.ZodNullable<z.ZodString>;
|
|
88
|
+
count: z.ZodNumber;
|
|
89
|
+
counts: z.ZodObject<{
|
|
90
|
+
unsubscribe: z.ZodNumber;
|
|
91
|
+
bounce: z.ZodNumber;
|
|
92
|
+
api: z.ZodNumber;
|
|
93
|
+
reply: z.ZodNumber;
|
|
94
|
+
complaint: z.ZodNumber;
|
|
95
|
+
inactive: z.ZodNumber;
|
|
96
|
+
invalid: z.ZodNumber;
|
|
97
|
+
}, z.core.$strip>;
|
|
98
|
+
createdAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
99
|
+
}, z.core.$strip>>;
|
|
100
|
+
}, z.core.$strip>;
|
|
101
|
+
export type SuppressionListList = z.infer<typeof SuppressionListList>;
|
|
102
|
+
export declare const SuppressionReview: z.ZodObject<{
|
|
103
|
+
id: z.ZodUUID;
|
|
104
|
+
listId: z.ZodString;
|
|
105
|
+
address: z.ZodString;
|
|
106
|
+
source: z.ZodEnum<{
|
|
107
|
+
reply: "reply";
|
|
108
|
+
complaint: "complaint";
|
|
109
|
+
inactive: "inactive";
|
|
110
|
+
}>;
|
|
111
|
+
accountId: z.ZodUUID;
|
|
112
|
+
messageId: z.ZodUUID;
|
|
113
|
+
probability: z.ZodNumber;
|
|
114
|
+
alternateContacts: z.ZodArray<z.ZodString>;
|
|
115
|
+
createdAt: z.ZodPreprocess<z.ZodDate, Date>;
|
|
116
|
+
}, z.core.$strip>;
|
|
117
|
+
export type SuppressionReview = z.infer<typeof SuppressionReview>;
|
|
118
|
+
export declare const SuppressionReviewPage: z.ZodObject<{
|
|
119
|
+
items: z.ZodArray<z.ZodObject<{
|
|
120
|
+
id: z.ZodUUID;
|
|
121
|
+
listId: z.ZodString;
|
|
122
|
+
address: z.ZodString;
|
|
123
|
+
source: z.ZodEnum<{
|
|
124
|
+
reply: "reply";
|
|
125
|
+
complaint: "complaint";
|
|
126
|
+
inactive: "inactive";
|
|
127
|
+
}>;
|
|
128
|
+
accountId: z.ZodUUID;
|
|
129
|
+
messageId: z.ZodUUID;
|
|
130
|
+
probability: z.ZodNumber;
|
|
131
|
+
alternateContacts: z.ZodArray<z.ZodString>;
|
|
132
|
+
createdAt: z.ZodPreprocess<z.ZodDate, Date>;
|
|
133
|
+
}, z.core.$strip>>;
|
|
134
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
135
|
+
}, z.core.$strip>;
|
|
136
|
+
export type SuppressionReviewPage = z.infer<typeof SuppressionReviewPage>;
|
|
137
|
+
export declare const ListIdInput: z.ZodObject<{
|
|
138
|
+
listId: z.ZodString;
|
|
139
|
+
}, z.core.$strip>;
|
|
140
|
+
export type ListIdInput = z.infer<typeof ListIdInput>;
|
|
141
|
+
export declare const SuppressionListIdInput: z.ZodObject<{
|
|
142
|
+
listId: z.ZodString;
|
|
143
|
+
}, z.core.$strip>;
|
|
144
|
+
export type SuppressionListIdInput = z.infer<typeof SuppressionListIdInput>;
|
|
145
|
+
export declare const ReviewIdInput: z.ZodObject<{
|
|
146
|
+
reviewId: z.ZodUUID;
|
|
147
|
+
}, z.core.$strip>;
|
|
148
|
+
export type ReviewIdInput = z.infer<typeof ReviewIdInput>;
|
|
149
|
+
export declare const CreateSuppressionList: z.ZodObject<{
|
|
150
|
+
id: z.ZodString;
|
|
151
|
+
name: z.ZodString;
|
|
152
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
153
|
+
}, z.core.$strip>;
|
|
154
|
+
export type CreateSuppressionList = z.infer<typeof CreateSuppressionList>;
|
|
155
|
+
export declare const UpdateSuppressionList: z.ZodObject<{
|
|
156
|
+
name: z.ZodOptional<z.ZodString>;
|
|
157
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
158
|
+
}, z.core.$strip>;
|
|
159
|
+
export type UpdateSuppressionList = z.infer<typeof UpdateSuppressionList>;
|
|
160
|
+
export declare const DeleteSuppressionListQuery: z.ZodObject<{
|
|
161
|
+
withEntries: z.ZodDefault<z.ZodPipe<z.ZodUnion<readonly [
|
|
162
|
+
z.ZodBoolean,
|
|
163
|
+
z.ZodEnum<{
|
|
164
|
+
true: "true";
|
|
165
|
+
false: "false";
|
|
166
|
+
}>
|
|
167
|
+
]>, z.ZodTransform<boolean, boolean | "true" | "false">>>;
|
|
168
|
+
}, z.core.$strip>;
|
|
169
|
+
export type DeleteSuppressionListQuery = z.infer<typeof DeleteSuppressionListQuery>;
|
|
170
|
+
export declare const DeleteSuppressionListInput: z.ZodObject<{
|
|
171
|
+
params: z.ZodObject<{
|
|
172
|
+
listId: z.ZodString;
|
|
173
|
+
}, z.core.$strip>;
|
|
174
|
+
query: z.ZodObject<{
|
|
175
|
+
withEntries: z.ZodDefault<z.ZodPipe<z.ZodUnion<readonly [
|
|
176
|
+
z.ZodBoolean,
|
|
177
|
+
z.ZodEnum<{
|
|
178
|
+
true: "true";
|
|
179
|
+
false: "false";
|
|
180
|
+
}>
|
|
181
|
+
]>, z.ZodTransform<boolean, boolean | "true" | "false">>>;
|
|
182
|
+
}, z.core.$strip>;
|
|
183
|
+
}, z.core.$strip>;
|
|
184
|
+
export type DeleteSuppressionListInput = z.infer<typeof DeleteSuppressionListInput>;
|
|
185
|
+
export declare const ListSuppressionEntriesQuery: z.ZodObject<{
|
|
186
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
187
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
188
|
+
address: z.ZodOptional<z.ZodString>;
|
|
189
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
190
|
+
api: "api";
|
|
191
|
+
invalid: "invalid";
|
|
192
|
+
bounce: "bounce";
|
|
193
|
+
unsubscribe: "unsubscribe";
|
|
194
|
+
reply: "reply";
|
|
195
|
+
complaint: "complaint";
|
|
196
|
+
inactive: "inactive";
|
|
197
|
+
}>>;
|
|
198
|
+
}, z.core.$strip>;
|
|
199
|
+
export type ListSuppressionEntriesQuery = z.infer<typeof ListSuppressionEntriesQuery>;
|
|
200
|
+
export declare const AddSuppressionEntriesRequest: z.ZodObject<{
|
|
201
|
+
addresses: z.ZodArray<z.ZodEmail>;
|
|
202
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
203
|
+
}, z.core.$strip>;
|
|
204
|
+
export type AddSuppressionEntriesRequest = z.infer<typeof AddSuppressionEntriesRequest>;
|
|
205
|
+
export declare const SuppressionEntryInput: z.ZodObject<{
|
|
206
|
+
listId: z.ZodString;
|
|
207
|
+
address: z.ZodString;
|
|
208
|
+
}, z.core.$strip>;
|
|
209
|
+
export type SuppressionEntryInput = z.infer<typeof SuppressionEntryInput>;
|
|
210
|
+
export declare const ListSuppressionReviewsQuery: z.ZodObject<{
|
|
211
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
212
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
213
|
+
listId: z.ZodOptional<z.ZodString>;
|
|
214
|
+
}, z.core.$strip>;
|
|
215
|
+
export type ListSuppressionReviewsQuery = z.infer<typeof ListSuppressionReviewsQuery>;
|
|
216
|
+
export declare const SuppressionAdded: z.ZodObject<{
|
|
217
|
+
added: z.ZodBoolean;
|
|
218
|
+
}, z.core.$strip>;
|
|
219
|
+
export type SuppressionAdded = z.infer<typeof SuppressionAdded>;
|
|
220
|
+
export declare const SuppressionEntriesAdded: z.ZodObject<{
|
|
221
|
+
added: z.ZodNumber;
|
|
222
|
+
alreadyListed: z.ZodNumber;
|
|
223
|
+
}, z.core.$strip>;
|
|
224
|
+
export type SuppressionEntriesAdded = z.infer<typeof SuppressionEntriesAdded>;
|