@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,365 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
export declare const suppressions: {
|
|
3
|
+
list: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
|
|
4
|
+
items: z.ZodArray<z.ZodObject<{
|
|
5
|
+
id: z.ZodString;
|
|
6
|
+
name: z.ZodString;
|
|
7
|
+
description: z.ZodNullable<z.ZodString>;
|
|
8
|
+
count: z.ZodNumber;
|
|
9
|
+
counts: z.ZodObject<{
|
|
10
|
+
unsubscribe: z.ZodNumber;
|
|
11
|
+
bounce: z.ZodNumber;
|
|
12
|
+
api: z.ZodNumber;
|
|
13
|
+
reply: z.ZodNumber;
|
|
14
|
+
complaint: z.ZodNumber;
|
|
15
|
+
inactive: z.ZodNumber;
|
|
16
|
+
invalid: z.ZodNumber;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
createdAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
19
|
+
}, z.core.$strip>>;
|
|
20
|
+
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
|
|
21
|
+
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
22
|
+
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
23
|
+
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
24
|
+
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
25
|
+
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
26
|
+
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
27
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
28
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
29
|
+
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
30
|
+
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
31
|
+
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
32
|
+
readonly payload_too_large: "The request body is larger than the API accepts.";
|
|
33
|
+
readonly internal_error: "An unexpected failure on our side.";
|
|
34
|
+
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
35
|
+
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
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<{
|
|
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<{
|
|
41
|
+
id: z.ZodString;
|
|
42
|
+
name: z.ZodString;
|
|
43
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
44
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
45
|
+
id: z.ZodString;
|
|
46
|
+
name: z.ZodString;
|
|
47
|
+
description: z.ZodNullable<z.ZodString>;
|
|
48
|
+
count: z.ZodNumber;
|
|
49
|
+
counts: z.ZodObject<{
|
|
50
|
+
unsubscribe: z.ZodNumber;
|
|
51
|
+
bounce: z.ZodNumber;
|
|
52
|
+
api: z.ZodNumber;
|
|
53
|
+
reply: z.ZodNumber;
|
|
54
|
+
complaint: z.ZodNumber;
|
|
55
|
+
inactive: z.ZodNumber;
|
|
56
|
+
invalid: z.ZodNumber;
|
|
57
|
+
}, z.core.$strip>;
|
|
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<{
|
|
60
|
+
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
61
|
+
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
62
|
+
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
63
|
+
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
64
|
+
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
65
|
+
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
66
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
67
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
68
|
+
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
69
|
+
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
70
|
+
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
71
|
+
readonly payload_too_large: "The request body is larger than the API accepts.";
|
|
72
|
+
readonly internal_error: "An unexpected failure on our side.";
|
|
73
|
+
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
74
|
+
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
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<{
|
|
77
|
+
readonly plan_module_unavailable: `The tenant's plan does not include ${string}.`;
|
|
78
|
+
}>>, import("../errors.js").DeclaredErrors<{
|
|
79
|
+
readonly suppression_list_exists: "A list with that id exists.";
|
|
80
|
+
}>>, Record<never, never>>;
|
|
81
|
+
update: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
82
|
+
listId: z.ZodString;
|
|
83
|
+
name: z.ZodOptional<z.ZodString>;
|
|
84
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
85
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
86
|
+
id: z.ZodString;
|
|
87
|
+
name: z.ZodString;
|
|
88
|
+
description: z.ZodNullable<z.ZodString>;
|
|
89
|
+
count: z.ZodNumber;
|
|
90
|
+
counts: z.ZodObject<{
|
|
91
|
+
unsubscribe: z.ZodNumber;
|
|
92
|
+
bounce: z.ZodNumber;
|
|
93
|
+
api: z.ZodNumber;
|
|
94
|
+
reply: z.ZodNumber;
|
|
95
|
+
complaint: z.ZodNumber;
|
|
96
|
+
inactive: z.ZodNumber;
|
|
97
|
+
invalid: z.ZodNumber;
|
|
98
|
+
}, z.core.$strip>;
|
|
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<{
|
|
101
|
+
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
102
|
+
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
103
|
+
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
104
|
+
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
105
|
+
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
106
|
+
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
107
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
108
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
109
|
+
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
110
|
+
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
111
|
+
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
112
|
+
readonly payload_too_large: "The request body is larger than the API accepts.";
|
|
113
|
+
readonly internal_error: "An unexpected failure on our side.";
|
|
114
|
+
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
115
|
+
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
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<{
|
|
118
|
+
readonly plan_module_unavailable: `The tenant's plan does not include ${string}.`;
|
|
119
|
+
}>>, import("../errors.js").DeclaredErrors<{
|
|
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<{
|
|
123
|
+
params: z.ZodObject<{
|
|
124
|
+
listId: z.ZodString;
|
|
125
|
+
}, z.core.$strip>;
|
|
126
|
+
query: z.ZodObject<{
|
|
127
|
+
withEntries: z.ZodDefault<z.ZodPipe<z.ZodUnion<readonly [
|
|
128
|
+
z.ZodBoolean,
|
|
129
|
+
z.ZodEnum<{
|
|
130
|
+
true: "true";
|
|
131
|
+
false: "false";
|
|
132
|
+
}>
|
|
133
|
+
]>, z.ZodTransform<boolean, boolean | "true" | "false">>>;
|
|
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<{
|
|
136
|
+
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
137
|
+
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
138
|
+
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
139
|
+
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
140
|
+
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
141
|
+
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
142
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
143
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
144
|
+
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
145
|
+
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
146
|
+
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
147
|
+
readonly payload_too_large: "The request body is larger than the API accepts.";
|
|
148
|
+
readonly internal_error: "An unexpected failure on our side.";
|
|
149
|
+
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
150
|
+
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
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<{
|
|
153
|
+
readonly plan_module_unavailable: `The tenant's plan does not include ${string}.`;
|
|
154
|
+
}>>, {
|
|
155
|
+
suppression_list_not_empty: {
|
|
156
|
+
status: 409;
|
|
157
|
+
message: string;
|
|
158
|
+
};
|
|
159
|
+
suppression_list_not_found: {
|
|
160
|
+
status: 404;
|
|
161
|
+
message: string;
|
|
162
|
+
};
|
|
163
|
+
}>, Record<never, never>>;
|
|
164
|
+
entries: {
|
|
165
|
+
list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
166
|
+
listId: z.ZodString;
|
|
167
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
168
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
169
|
+
address: z.ZodOptional<z.ZodString>;
|
|
170
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
171
|
+
api: "api";
|
|
172
|
+
invalid: "invalid";
|
|
173
|
+
bounce: "bounce";
|
|
174
|
+
unsubscribe: "unsubscribe";
|
|
175
|
+
reply: "reply";
|
|
176
|
+
complaint: "complaint";
|
|
177
|
+
inactive: "inactive";
|
|
178
|
+
}>>;
|
|
179
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
180
|
+
items: z.ZodArray<z.ZodObject<{
|
|
181
|
+
address: z.ZodString;
|
|
182
|
+
source: z.ZodEnum<{
|
|
183
|
+
api: "api";
|
|
184
|
+
invalid: "invalid";
|
|
185
|
+
bounce: "bounce";
|
|
186
|
+
unsubscribe: "unsubscribe";
|
|
187
|
+
reply: "reply";
|
|
188
|
+
complaint: "complaint";
|
|
189
|
+
inactive: "inactive";
|
|
190
|
+
}>;
|
|
191
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
192
|
+
createdAt: z.ZodPreprocess<z.ZodDate, Date>;
|
|
193
|
+
}, z.core.$strip>>;
|
|
194
|
+
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<{
|
|
196
|
+
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
197
|
+
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
198
|
+
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
199
|
+
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
200
|
+
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
201
|
+
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
202
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
203
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
204
|
+
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
205
|
+
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
206
|
+
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
207
|
+
readonly payload_too_large: "The request body is larger than the API accepts.";
|
|
208
|
+
readonly internal_error: "An unexpected failure on our side.";
|
|
209
|
+
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
210
|
+
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
211
|
+
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<{
|
|
213
|
+
readonly plan_module_unavailable: `The tenant's plan does not include ${string}.`;
|
|
214
|
+
}>>, import("../errors.js").DeclaredErrors<{
|
|
215
|
+
readonly invalid_cursor: "The cursor is not one this list issued.";
|
|
216
|
+
}>>, Record<never, never>>;
|
|
217
|
+
add: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
218
|
+
listId: z.ZodString;
|
|
219
|
+
addresses: z.ZodArray<z.ZodEmail>;
|
|
220
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
221
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
222
|
+
added: z.ZodNumber;
|
|
223
|
+
alreadyListed: z.ZodNumber;
|
|
224
|
+
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
|
|
225
|
+
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
226
|
+
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
227
|
+
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
228
|
+
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
229
|
+
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
230
|
+
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
231
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
232
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
233
|
+
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
234
|
+
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
235
|
+
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
236
|
+
readonly payload_too_large: "The request body is larger than the API accepts.";
|
|
237
|
+
readonly internal_error: "An unexpected failure on our side.";
|
|
238
|
+
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
239
|
+
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
240
|
+
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<{
|
|
242
|
+
readonly plan_module_unavailable: `The tenant's plan does not include ${string}.`;
|
|
243
|
+
}>>, Record<never, never>>;
|
|
244
|
+
remove: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
245
|
+
listId: z.ZodString;
|
|
246
|
+
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<{
|
|
248
|
+
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
249
|
+
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
250
|
+
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
251
|
+
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
252
|
+
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
253
|
+
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
254
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
255
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
256
|
+
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
257
|
+
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
258
|
+
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
259
|
+
readonly payload_too_large: "The request body is larger than the API accepts.";
|
|
260
|
+
readonly internal_error: "An unexpected failure on our side.";
|
|
261
|
+
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
262
|
+
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
263
|
+
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<{
|
|
265
|
+
readonly plan_module_unavailable: `The tenant's plan does not include ${string}.`;
|
|
266
|
+
}>>, import("../errors.js").DeclaredErrors<{
|
|
267
|
+
readonly suppression_entry_not_found: "The address is not on the list.";
|
|
268
|
+
}>>, Record<never, never>>;
|
|
269
|
+
};
|
|
270
|
+
};
|
|
271
|
+
export declare const suppressionReviews: {
|
|
272
|
+
list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
273
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
274
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
275
|
+
listId: z.ZodOptional<z.ZodString>;
|
|
276
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
277
|
+
items: z.ZodArray<z.ZodObject<{
|
|
278
|
+
id: z.ZodUUID;
|
|
279
|
+
listId: z.ZodString;
|
|
280
|
+
address: z.ZodString;
|
|
281
|
+
source: z.ZodEnum<{
|
|
282
|
+
reply: "reply";
|
|
283
|
+
complaint: "complaint";
|
|
284
|
+
inactive: "inactive";
|
|
285
|
+
}>;
|
|
286
|
+
accountId: z.ZodUUID;
|
|
287
|
+
messageId: z.ZodUUID;
|
|
288
|
+
probability: z.ZodNumber;
|
|
289
|
+
alternateContacts: z.ZodArray<z.ZodString>;
|
|
290
|
+
createdAt: z.ZodPreprocess<z.ZodDate, Date>;
|
|
291
|
+
}, z.core.$strip>>;
|
|
292
|
+
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<{
|
|
294
|
+
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
295
|
+
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
296
|
+
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
297
|
+
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
298
|
+
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
299
|
+
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
300
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
301
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
302
|
+
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
303
|
+
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
304
|
+
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
305
|
+
readonly payload_too_large: "The request body is larger than the API accepts.";
|
|
306
|
+
readonly internal_error: "An unexpected failure on our side.";
|
|
307
|
+
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
308
|
+
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
309
|
+
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<{
|
|
311
|
+
readonly plan_module_unavailable: `The tenant's plan does not include ${string}.`;
|
|
312
|
+
}>>, import("../errors.js").DeclaredErrors<{
|
|
313
|
+
readonly invalid_cursor: "The cursor is not one this list issued.";
|
|
314
|
+
}>>, Record<never, never>>;
|
|
315
|
+
approve: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
316
|
+
reviewId: z.ZodUUID;
|
|
317
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
318
|
+
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<{
|
|
320
|
+
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
321
|
+
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
322
|
+
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
323
|
+
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
324
|
+
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
325
|
+
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
326
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
327
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
328
|
+
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
329
|
+
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
330
|
+
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
331
|
+
readonly payload_too_large: "The request body is larger than the API accepts.";
|
|
332
|
+
readonly internal_error: "An unexpected failure on our side.";
|
|
333
|
+
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
334
|
+
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
335
|
+
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<{
|
|
337
|
+
readonly plan_module_unavailable: `The tenant's plan does not include ${string}.`;
|
|
338
|
+
}>>, import("../errors.js").DeclaredErrors<{
|
|
339
|
+
readonly suppression_review_not_found: "The review does not exist.";
|
|
340
|
+
}>>, Record<never, never>>;
|
|
341
|
+
dismiss: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
342
|
+
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<{
|
|
344
|
+
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
345
|
+
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
346
|
+
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
347
|
+
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
348
|
+
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
349
|
+
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
350
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
351
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
352
|
+
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
353
|
+
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
354
|
+
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
355
|
+
readonly payload_too_large: "The request body is larger than the API accepts.";
|
|
356
|
+
readonly internal_error: "An unexpected failure on our side.";
|
|
357
|
+
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
358
|
+
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
359
|
+
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<{
|
|
361
|
+
readonly plan_module_unavailable: `The tenant's plan does not include ${string}.`;
|
|
362
|
+
}>>, import("../errors.js").DeclaredErrors<{
|
|
363
|
+
readonly suppression_review_not_found: "The review does not exist.";
|
|
364
|
+
}>>, Record<never, never>>;
|
|
365
|
+
};
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
export declare const TemplateSource: z.ZodEnum<{
|
|
3
|
+
handlebars: "handlebars";
|
|
4
|
+
"react-email": "react-email";
|
|
5
|
+
}>;
|
|
6
|
+
export type TemplateSource = z.infer<typeof TemplateSource>;
|
|
7
|
+
export declare const TemplateFormat: z.ZodEnum<{
|
|
8
|
+
markdown: "markdown";
|
|
9
|
+
html: "html";
|
|
10
|
+
}>;
|
|
11
|
+
export type TemplateFormat = z.infer<typeof TemplateFormat>;
|
|
12
|
+
export declare const TemplateField: z.ZodEnum<{
|
|
13
|
+
text: "text";
|
|
14
|
+
subject: "subject";
|
|
15
|
+
html: "html";
|
|
16
|
+
previewText: "previewText";
|
|
17
|
+
}>;
|
|
18
|
+
export type TemplateField = z.infer<typeof TemplateField>;
|
|
19
|
+
export declare const TemplateFields: z.ZodObject<{
|
|
20
|
+
subject: z.ZodNullable<z.ZodString>;
|
|
21
|
+
html: z.ZodNullable<z.ZodString>;
|
|
22
|
+
text: z.ZodNullable<z.ZodString>;
|
|
23
|
+
previewText: z.ZodNullable<z.ZodString>;
|
|
24
|
+
format: z.ZodEnum<{
|
|
25
|
+
markdown: "markdown";
|
|
26
|
+
html: "html";
|
|
27
|
+
}>;
|
|
28
|
+
}, z.core.$strip>;
|
|
29
|
+
export type TemplateFields = z.infer<typeof TemplateFields>;
|
|
30
|
+
export declare const TemplateSummary: z.ZodObject<{
|
|
31
|
+
id: z.ZodUUID;
|
|
32
|
+
accountId: z.ZodNullable<z.ZodUUID>;
|
|
33
|
+
name: z.ZodString;
|
|
34
|
+
description: z.ZodNullable<z.ZodString>;
|
|
35
|
+
source: z.ZodEnum<{
|
|
36
|
+
handlebars: "handlebars";
|
|
37
|
+
"react-email": "react-email";
|
|
38
|
+
}>;
|
|
39
|
+
externalRef: z.ZodNullable<z.ZodString>;
|
|
40
|
+
createdAt: z.ZodPreprocess<z.ZodDate, Date>;
|
|
41
|
+
updatedAt: z.ZodPreprocess<z.ZodDate, Date>;
|
|
42
|
+
}, z.core.$strip>;
|
|
43
|
+
export type TemplateSummary = z.infer<typeof TemplateSummary>;
|
|
44
|
+
export declare const Template: z.ZodObject<{
|
|
45
|
+
id: z.ZodUUID;
|
|
46
|
+
accountId: z.ZodNullable<z.ZodUUID>;
|
|
47
|
+
name: z.ZodString;
|
|
48
|
+
description: z.ZodNullable<z.ZodString>;
|
|
49
|
+
source: z.ZodEnum<{
|
|
50
|
+
handlebars: "handlebars";
|
|
51
|
+
"react-email": "react-email";
|
|
52
|
+
}>;
|
|
53
|
+
externalRef: z.ZodNullable<z.ZodString>;
|
|
54
|
+
createdAt: z.ZodPreprocess<z.ZodDate, Date>;
|
|
55
|
+
updatedAt: z.ZodPreprocess<z.ZodDate, Date>;
|
|
56
|
+
subject: z.ZodNullable<z.ZodString>;
|
|
57
|
+
html: z.ZodNullable<z.ZodString>;
|
|
58
|
+
text: z.ZodNullable<z.ZodString>;
|
|
59
|
+
previewText: z.ZodNullable<z.ZodString>;
|
|
60
|
+
format: z.ZodEnum<{
|
|
61
|
+
markdown: "markdown";
|
|
62
|
+
html: "html";
|
|
63
|
+
}>;
|
|
64
|
+
}, z.core.$strip>;
|
|
65
|
+
export type Template = z.infer<typeof Template>;
|
|
66
|
+
export declare const TemplateSummaryPage: z.ZodObject<{
|
|
67
|
+
items: z.ZodArray<z.ZodObject<{
|
|
68
|
+
id: z.ZodUUID;
|
|
69
|
+
accountId: z.ZodNullable<z.ZodUUID>;
|
|
70
|
+
name: z.ZodString;
|
|
71
|
+
description: z.ZodNullable<z.ZodString>;
|
|
72
|
+
source: z.ZodEnum<{
|
|
73
|
+
handlebars: "handlebars";
|
|
74
|
+
"react-email": "react-email";
|
|
75
|
+
}>;
|
|
76
|
+
externalRef: z.ZodNullable<z.ZodString>;
|
|
77
|
+
createdAt: z.ZodPreprocess<z.ZodDate, Date>;
|
|
78
|
+
updatedAt: z.ZodPreprocess<z.ZodDate, Date>;
|
|
79
|
+
}, z.core.$strip>>;
|
|
80
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
81
|
+
}, z.core.$strip>;
|
|
82
|
+
export type TemplateSummaryPage = z.infer<typeof TemplateSummaryPage>;
|
|
83
|
+
export declare const RenderParams: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
84
|
+
export type RenderParams = z.infer<typeof RenderParams>;
|
|
85
|
+
export declare const RenderedTemplate: z.ZodObject<{
|
|
86
|
+
subject: z.ZodNullable<z.ZodString>;
|
|
87
|
+
html: z.ZodNullable<z.ZodString>;
|
|
88
|
+
text: z.ZodNullable<z.ZodString>;
|
|
89
|
+
previewText: z.ZodNullable<z.ZodString>;
|
|
90
|
+
}, z.core.$strip>;
|
|
91
|
+
export type RenderedTemplate = z.infer<typeof RenderedTemplate>;
|
|
92
|
+
export declare const TemplateIdInput: z.ZodObject<{
|
|
93
|
+
templateId: z.ZodUUID;
|
|
94
|
+
}, z.core.$strip>;
|
|
95
|
+
export type TemplateIdInput = z.infer<typeof TemplateIdInput>;
|
|
96
|
+
export declare const ListTemplatesQuery: z.ZodObject<{
|
|
97
|
+
accountId: z.ZodOptional<z.ZodUUID>;
|
|
98
|
+
usableBy: z.ZodOptional<z.ZodUUID>;
|
|
99
|
+
name: z.ZodOptional<z.ZodString>;
|
|
100
|
+
query: z.ZodOptional<z.ZodString>;
|
|
101
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
102
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
103
|
+
}, z.core.$strip>;
|
|
104
|
+
export type ListTemplatesQuery = z.infer<typeof ListTemplatesQuery>;
|
|
105
|
+
export declare const CreateTemplate: z.ZodObject<{
|
|
106
|
+
accountId: z.ZodOptional<z.ZodUUID>;
|
|
107
|
+
name: z.ZodString;
|
|
108
|
+
description: z.ZodOptional<z.ZodString>;
|
|
109
|
+
subject: z.ZodOptional<z.ZodString>;
|
|
110
|
+
html: z.ZodOptional<z.ZodString>;
|
|
111
|
+
text: z.ZodOptional<z.ZodString>;
|
|
112
|
+
previewText: z.ZodOptional<z.ZodString>;
|
|
113
|
+
format: z.ZodDefault<z.ZodEnum<{
|
|
114
|
+
markdown: "markdown";
|
|
115
|
+
html: "html";
|
|
116
|
+
}>>;
|
|
117
|
+
source: z.ZodDefault<z.ZodEnum<{
|
|
118
|
+
handlebars: "handlebars";
|
|
119
|
+
"react-email": "react-email";
|
|
120
|
+
}>>;
|
|
121
|
+
externalRef: z.ZodOptional<z.ZodString>;
|
|
122
|
+
}, z.core.$strip>;
|
|
123
|
+
export type CreateTemplate = z.infer<typeof CreateTemplate>;
|
|
124
|
+
export declare const UpdateTemplate: z.ZodObject<{
|
|
125
|
+
name: z.ZodOptional<z.ZodString>;
|
|
126
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
127
|
+
subject: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
128
|
+
html: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
129
|
+
text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
130
|
+
previewText: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
131
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
132
|
+
markdown: "markdown";
|
|
133
|
+
html: "html";
|
|
134
|
+
}>>;
|
|
135
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
136
|
+
handlebars: "handlebars";
|
|
137
|
+
"react-email": "react-email";
|
|
138
|
+
}>>;
|
|
139
|
+
externalRef: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
140
|
+
}, z.core.$strip>;
|
|
141
|
+
export type UpdateTemplate = z.infer<typeof UpdateTemplate>;
|
|
142
|
+
export declare const RenderTemplateRequest: z.ZodObject<{
|
|
143
|
+
templateId: z.ZodOptional<z.ZodUUID>;
|
|
144
|
+
accountId: z.ZodOptional<z.ZodUUID>;
|
|
145
|
+
subject: z.ZodOptional<z.ZodString>;
|
|
146
|
+
html: z.ZodOptional<z.ZodString>;
|
|
147
|
+
text: z.ZodOptional<z.ZodString>;
|
|
148
|
+
previewText: z.ZodOptional<z.ZodString>;
|
|
149
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
150
|
+
markdown: "markdown";
|
|
151
|
+
html: "html";
|
|
152
|
+
}>>;
|
|
153
|
+
params: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
154
|
+
}, z.core.$strip>;
|
|
155
|
+
export type RenderTemplateRequest = z.infer<typeof RenderTemplateRequest>;
|