@workwae/sdk 0.1.0-alpha.1 → 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 +7 -7
- package/client.d.ts +1 -1
- package/contract/accounts/models.d.ts +85 -45
- package/contract/accounts/routes.d.ts +191 -29
- package/contract/ai/models.d.ts +0 -1
- package/contract/ai/routes.d.ts +9 -0
- package/contract/audit-log/models.d.ts +19 -5
- package/contract/audit-log/routes.d.ts +10 -1
- package/contract/calendar/models.d.ts +249 -74
- package/contract/calendar/routes.d.ts +574 -30
- package/contract/connect/models.d.ts +28 -16
- package/contract/connect/routes.d.ts +46 -7
- package/contract/contacts/models.d.ts +0 -10
- package/contract/contacts/routes.d.ts +14 -0
- package/contract/email-validation/models.d.ts +119 -0
- package/contract/email-validation/routes.d.ts +106 -0
- package/contract/errors.d.ts +28 -20
- package/contract/events/models.d.ts +139 -79
- package/contract/events/routes.d.ts +54 -44
- package/contract/exports/routes.d.ts +10 -0
- package/contract/identities/models.d.ts +7 -9
- package/contract/identities/routes.d.ts +79 -10
- package/contract/limits.d.ts +21 -73
- package/contract/mail/models.d.ts +91 -48
- package/contract/mail/routes.d.ts +458 -18
- package/contract/mcp-keys/models.d.ts +125 -0
- package/contract/mcp-keys/routes.d.ts +151 -0
- package/contract/meetings/models.d.ts +28 -33
- package/contract/meetings/routes.d.ts +44 -25
- package/contract/oauth-apps/models.d.ts +0 -6
- package/contract/oauth-apps/routes.d.ts +8 -0
- package/contract/org-connections/models.d.ts +83 -39
- package/contract/org-connections/routes.d.ts +320 -43
- package/contract/plans/credit-packs.d.ts +30 -0
- package/contract/plans/models.d.ts +208 -0
- package/contract/primitives.d.ts +7 -62
- package/contract/public.d.ts +6 -0
- package/contract/reasons.d.ts +532 -21
- package/contract/router.d.ts +6425 -3212
- package/contract/scheduling/models.d.ts +405 -0
- package/contract/scheduling/routes.d.ts +756 -0
- package/contract/send/models.d.ts +82 -45
- package/contract/send/routes.d.ts +281 -32
- package/contract/settings/models.d.ts +73 -13
- package/contract/settings/routes.d.ts +56 -4
- package/contract/suppressions/models.d.ts +21 -28
- package/contract/suppressions/routes.d.ts +62 -14
- package/contract/templates/models.d.ts +0 -14
- package/contract/templates/routes.d.ts +30 -6
- package/contract/threads/models.d.ts +0 -5
- package/contract/threads/routes.d.ts +40 -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 +98 -126
- package/contract/usage/routes.d.ts +48 -20
- package/contract/webhooks/models.d.ts +45 -30
- package/contract/webhooks/routes.d.ts +52 -9
- package/contract/webhooks/signing.d.ts +0 -16
- package/index.js +1 -4334
- package/package.json +6 -7
- package/index.js.map +0 -59
|
@@ -13,16 +13,19 @@ export declare const suppressions: {
|
|
|
13
13
|
reply: z.ZodNumber;
|
|
14
14
|
complaint: z.ZodNumber;
|
|
15
15
|
inactive: z.ZodNumber;
|
|
16
|
+
invalid: z.ZodNumber;
|
|
16
17
|
}, z.core.$strip>;
|
|
17
18
|
createdAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
18
19
|
}, z.core.$strip>>;
|
|
19
|
-
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
|
|
20
|
+
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
|
|
20
21
|
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
21
22
|
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
22
23
|
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
23
24
|
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
24
25
|
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
25
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.";
|
|
26
29
|
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
27
30
|
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
28
31
|
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
@@ -31,6 +34,8 @@ export declare const suppressions: {
|
|
|
31
34
|
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
32
35
|
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
33
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}.`;
|
|
34
39
|
}>>, Record<never, never>>;
|
|
35
40
|
create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
36
41
|
id: z.ZodString;
|
|
@@ -48,15 +53,18 @@ export declare const suppressions: {
|
|
|
48
53
|
reply: z.ZodNumber;
|
|
49
54
|
complaint: z.ZodNumber;
|
|
50
55
|
inactive: z.ZodNumber;
|
|
56
|
+
invalid: z.ZodNumber;
|
|
51
57
|
}, z.core.$strip>;
|
|
52
58
|
createdAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
53
|
-
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
|
|
59
|
+
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
|
|
54
60
|
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
55
61
|
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
56
62
|
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
57
63
|
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
58
64
|
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
59
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.";
|
|
60
68
|
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
61
69
|
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
62
70
|
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
@@ -65,6 +73,8 @@ export declare const suppressions: {
|
|
|
65
73
|
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
66
74
|
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
67
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}.`;
|
|
68
78
|
}>>, import("../errors.js").DeclaredErrors<{
|
|
69
79
|
readonly suppression_list_exists: "A list with that id exists.";
|
|
70
80
|
}>>, Record<never, never>>;
|
|
@@ -84,15 +94,18 @@ export declare const suppressions: {
|
|
|
84
94
|
reply: z.ZodNumber;
|
|
85
95
|
complaint: z.ZodNumber;
|
|
86
96
|
inactive: z.ZodNumber;
|
|
97
|
+
invalid: z.ZodNumber;
|
|
87
98
|
}, z.core.$strip>;
|
|
88
99
|
createdAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
89
|
-
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
|
|
100
|
+
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
|
|
90
101
|
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
91
102
|
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
92
103
|
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
93
104
|
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
94
105
|
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
95
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.";
|
|
96
109
|
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
97
110
|
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
98
111
|
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
@@ -101,6 +114,8 @@ export declare const suppressions: {
|
|
|
101
114
|
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
102
115
|
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
103
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}.`;
|
|
104
119
|
}>>, import("../errors.js").DeclaredErrors<{
|
|
105
120
|
readonly suppression_list_not_found: "The list does not exist (the global list has none to change).";
|
|
106
121
|
}>>, Record<never, never>>;
|
|
@@ -109,18 +124,23 @@ export declare const suppressions: {
|
|
|
109
124
|
listId: z.ZodString;
|
|
110
125
|
}, z.core.$strip>;
|
|
111
126
|
query: z.ZodObject<{
|
|
112
|
-
withEntries: z.ZodDefault<z.ZodPipe<z.ZodUnion<readonly [
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
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">>>;
|
|
116
134
|
}, z.core.$strip>;
|
|
117
|
-
}, z.core.$strip>, z.ZodVoid, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
|
|
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<{
|
|
118
136
|
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
119
137
|
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
120
138
|
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
121
139
|
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
122
140
|
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
123
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.";
|
|
124
144
|
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
125
145
|
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
126
146
|
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
@@ -129,6 +149,8 @@ export declare const suppressions: {
|
|
|
129
149
|
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
130
150
|
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
131
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}.`;
|
|
132
154
|
}>>, {
|
|
133
155
|
suppression_list_not_empty: {
|
|
134
156
|
status: 409;
|
|
@@ -147,6 +169,7 @@ export declare const suppressions: {
|
|
|
147
169
|
address: z.ZodOptional<z.ZodString>;
|
|
148
170
|
source: z.ZodOptional<z.ZodEnum<{
|
|
149
171
|
api: "api";
|
|
172
|
+
invalid: "invalid";
|
|
150
173
|
bounce: "bounce";
|
|
151
174
|
unsubscribe: "unsubscribe";
|
|
152
175
|
reply: "reply";
|
|
@@ -158,6 +181,7 @@ export declare const suppressions: {
|
|
|
158
181
|
address: z.ZodString;
|
|
159
182
|
source: z.ZodEnum<{
|
|
160
183
|
api: "api";
|
|
184
|
+
invalid: "invalid";
|
|
161
185
|
bounce: "bounce";
|
|
162
186
|
unsubscribe: "unsubscribe";
|
|
163
187
|
reply: "reply";
|
|
@@ -168,13 +192,15 @@ export declare const suppressions: {
|
|
|
168
192
|
createdAt: z.ZodPreprocess<z.ZodDate, Date>;
|
|
169
193
|
}, z.core.$strip>>;
|
|
170
194
|
nextCursor: z.ZodNullable<z.ZodString>;
|
|
171
|
-
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
|
|
195
|
+
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
|
|
172
196
|
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
173
197
|
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
174
198
|
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
175
199
|
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
176
200
|
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
177
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.";
|
|
178
204
|
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
179
205
|
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
180
206
|
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
@@ -183,6 +209,8 @@ export declare const suppressions: {
|
|
|
183
209
|
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
184
210
|
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
185
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}.`;
|
|
186
214
|
}>>, import("../errors.js").DeclaredErrors<{
|
|
187
215
|
readonly invalid_cursor: "The cursor is not one this list issued.";
|
|
188
216
|
}>>, Record<never, never>>;
|
|
@@ -193,13 +221,15 @@ export declare const suppressions: {
|
|
|
193
221
|
}, z.core.$strip>, z.ZodObject<{
|
|
194
222
|
added: z.ZodNumber;
|
|
195
223
|
alreadyListed: z.ZodNumber;
|
|
196
|
-
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
|
|
224
|
+
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
|
|
197
225
|
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
198
226
|
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
199
227
|
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
200
228
|
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
201
229
|
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
202
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.";
|
|
203
233
|
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
204
234
|
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
205
235
|
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
@@ -208,17 +238,21 @@ export declare const suppressions: {
|
|
|
208
238
|
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
209
239
|
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
210
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}.`;
|
|
211
243
|
}>>, Record<never, never>>;
|
|
212
244
|
remove: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
213
245
|
listId: z.ZodString;
|
|
214
246
|
address: z.ZodString;
|
|
215
|
-
}, z.core.$strip>, z.ZodVoid, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
|
|
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<{
|
|
216
248
|
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
217
249
|
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
218
250
|
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
219
251
|
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
220
252
|
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
221
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.";
|
|
222
256
|
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
223
257
|
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
224
258
|
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
@@ -227,6 +261,8 @@ export declare const suppressions: {
|
|
|
227
261
|
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
228
262
|
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
229
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}.`;
|
|
230
266
|
}>>, import("../errors.js").DeclaredErrors<{
|
|
231
267
|
readonly suppression_entry_not_found: "The address is not on the list.";
|
|
232
268
|
}>>, Record<never, never>>;
|
|
@@ -254,13 +290,15 @@ export declare const suppressionReviews: {
|
|
|
254
290
|
createdAt: z.ZodPreprocess<z.ZodDate, Date>;
|
|
255
291
|
}, z.core.$strip>>;
|
|
256
292
|
nextCursor: z.ZodNullable<z.ZodString>;
|
|
257
|
-
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
|
|
293
|
+
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
|
|
258
294
|
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
259
295
|
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
260
296
|
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
261
297
|
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
262
298
|
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
263
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.";
|
|
264
302
|
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
265
303
|
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
266
304
|
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
@@ -269,6 +307,8 @@ export declare const suppressionReviews: {
|
|
|
269
307
|
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
270
308
|
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
271
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}.`;
|
|
272
312
|
}>>, import("../errors.js").DeclaredErrors<{
|
|
273
313
|
readonly invalid_cursor: "The cursor is not one this list issued.";
|
|
274
314
|
}>>, Record<never, never>>;
|
|
@@ -276,13 +316,15 @@ export declare const suppressionReviews: {
|
|
|
276
316
|
reviewId: z.ZodUUID;
|
|
277
317
|
}, z.core.$strip>, z.ZodObject<{
|
|
278
318
|
added: z.ZodBoolean;
|
|
279
|
-
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
|
|
319
|
+
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
|
|
280
320
|
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
281
321
|
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
282
322
|
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
283
323
|
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
284
324
|
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
285
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.";
|
|
286
328
|
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
287
329
|
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
288
330
|
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
@@ -291,18 +333,22 @@ export declare const suppressionReviews: {
|
|
|
291
333
|
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
292
334
|
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
293
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}.`;
|
|
294
338
|
}>>, import("../errors.js").DeclaredErrors<{
|
|
295
339
|
readonly suppression_review_not_found: "The review does not exist.";
|
|
296
340
|
}>>, Record<never, never>>;
|
|
297
341
|
dismiss: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
298
342
|
reviewId: z.ZodUUID;
|
|
299
|
-
}, z.core.$strip>, z.ZodVoid, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
|
|
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<{
|
|
300
344
|
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
301
345
|
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
302
346
|
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
303
347
|
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
304
348
|
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
305
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.";
|
|
306
352
|
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
307
353
|
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
308
354
|
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
@@ -311,6 +357,8 @@ export declare const suppressionReviews: {
|
|
|
311
357
|
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
312
358
|
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
313
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}.`;
|
|
314
362
|
}>>, import("../errors.js").DeclaredErrors<{
|
|
315
363
|
readonly suppression_review_not_found: "The review does not exist.";
|
|
316
364
|
}>>, Record<never, never>>;
|
|
@@ -1,22 +1,14 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
|
-
/** handlebars: written as Handlebars (API, board, EmailEngine import). react-email: compiled from
|
|
3
|
-
* a react-email component and uploaded by `workwae templates push`; the next push overwrites it.
|
|
4
|
-
* Both render the same way. */
|
|
5
2
|
export declare const TemplateSource: z.ZodEnum<{
|
|
6
3
|
handlebars: "handlebars";
|
|
7
4
|
"react-email": "react-email";
|
|
8
5
|
}>;
|
|
9
6
|
export type TemplateSource = z.infer<typeof TemplateSource>;
|
|
10
|
-
/** What the html field holds. markdown: Markdown, converted to HTML after Handlebars renders it;
|
|
11
|
-
* `{{...}}` values are escaped for HTML and Markdown first, so params add text, never markup. Raw
|
|
12
|
-
* HTML the author writes in the Markdown stays, as do `{{{...}}}` values. Without text, the plain
|
|
13
|
-
* text part is the rendered Markdown without the author's tags, its values as given. */
|
|
14
7
|
export declare const TemplateFormat: z.ZodEnum<{
|
|
15
8
|
markdown: "markdown";
|
|
16
9
|
html: "html";
|
|
17
10
|
}>;
|
|
18
11
|
export type TemplateFormat = z.infer<typeof TemplateFormat>;
|
|
19
|
-
/** The content fields Handlebars compiles and renders, which a template error names. */
|
|
20
12
|
export declare const TemplateField: z.ZodEnum<{
|
|
21
13
|
text: "text";
|
|
22
14
|
subject: "subject";
|
|
@@ -24,8 +16,6 @@ export declare const TemplateField: z.ZodEnum<{
|
|
|
24
16
|
previewText: "previewText";
|
|
25
17
|
}>;
|
|
26
18
|
export type TemplateField = z.infer<typeof TemplateField>;
|
|
27
|
-
/** The rendered fields of a template, as Handlebars source. subject and text render without HTML
|
|
28
|
-
* escaping; html and previewText escape `{{...}}` and leave `{{{...}}}` raw. */
|
|
29
19
|
export declare const TemplateFields: z.ZodObject<{
|
|
30
20
|
subject: z.ZodNullable<z.ZodString>;
|
|
31
21
|
html: z.ZodNullable<z.ZodString>;
|
|
@@ -90,9 +80,6 @@ export declare const TemplateSummaryPage: z.ZodObject<{
|
|
|
90
80
|
nextCursor: z.ZodNullable<z.ZodString>;
|
|
91
81
|
}, z.core.$strip>;
|
|
92
82
|
export type TemplateSummaryPage = z.infer<typeof TemplateSummaryPage>;
|
|
93
|
-
/** Values for `{{params.*}}`; `{{account.email}}` and `{{account.name}}` are the sending account's.
|
|
94
|
-
* A send naming a listId also gets `{{rcpt.unsubscribeUrl}}`, `{{rcpt.address}}` and
|
|
95
|
-
* `{{rcpt.name}}` (empty strings otherwise). At most MAX_RENDER_PARAMS_BYTES as JSON. */
|
|
96
83
|
export declare const RenderParams: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
97
84
|
export type RenderParams = z.infer<typeof RenderParams>;
|
|
98
85
|
export declare const RenderedTemplate: z.ZodObject<{
|
|
@@ -152,7 +139,6 @@ export declare const UpdateTemplate: z.ZodObject<{
|
|
|
152
139
|
externalRef: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
153
140
|
}, z.core.$strip>;
|
|
154
141
|
export type UpdateTemplate = z.infer<typeof UpdateTemplate>;
|
|
155
|
-
/** A stored template (templateId) or inline fields, not both: a template replaces them all. */
|
|
156
142
|
export declare const RenderTemplateRequest: z.ZodObject<{
|
|
157
143
|
templateId: z.ZodOptional<z.ZodUUID>;
|
|
158
144
|
accountId: z.ZodOptional<z.ZodUUID>;
|
|
@@ -22,13 +22,15 @@ export declare const templates: {
|
|
|
22
22
|
updatedAt: z.ZodPreprocess<z.ZodDate, Date>;
|
|
23
23
|
}, z.core.$strip>>;
|
|
24
24
|
nextCursor: z.ZodNullable<z.ZodString>;
|
|
25
|
-
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
|
|
25
|
+
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
|
|
26
26
|
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
27
27
|
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
28
28
|
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
29
29
|
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
30
30
|
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
31
31
|
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
32
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
33
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
32
34
|
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
33
35
|
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
34
36
|
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
@@ -37,6 +39,8 @@ export declare const templates: {
|
|
|
37
39
|
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
38
40
|
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
39
41
|
readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
|
|
42
|
+
}>>, import("../errors.js").DeclaredErrors<{
|
|
43
|
+
readonly plan_module_unavailable: `The tenant's plan does not include ${string}.`;
|
|
40
44
|
}>>, import("../errors.js").DeclaredErrors<{
|
|
41
45
|
readonly invalid_cursor: "The cursor is not one this list issued.";
|
|
42
46
|
}>>, Record<never, never>>;
|
|
@@ -62,13 +66,15 @@ export declare const templates: {
|
|
|
62
66
|
markdown: "markdown";
|
|
63
67
|
html: "html";
|
|
64
68
|
}>;
|
|
65
|
-
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
|
|
69
|
+
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
|
|
66
70
|
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
67
71
|
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
68
72
|
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
69
73
|
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
70
74
|
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
71
75
|
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
76
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
77
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
72
78
|
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
73
79
|
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
74
80
|
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
@@ -77,6 +83,8 @@ export declare const templates: {
|
|
|
77
83
|
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
78
84
|
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
79
85
|
readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
|
|
86
|
+
}>>, import("../errors.js").DeclaredErrors<{
|
|
87
|
+
readonly plan_module_unavailable: `The tenant's plan does not include ${string}.`;
|
|
80
88
|
}>>, import("../errors.js").DeclaredErrors<{
|
|
81
89
|
readonly template_not_found: "The template does not exist.";
|
|
82
90
|
}>>, Record<never, never>>;
|
|
@@ -117,13 +125,15 @@ export declare const templates: {
|
|
|
117
125
|
markdown: "markdown";
|
|
118
126
|
html: "html";
|
|
119
127
|
}>;
|
|
120
|
-
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
|
|
128
|
+
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
|
|
121
129
|
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
122
130
|
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
123
131
|
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
124
132
|
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
125
133
|
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
126
134
|
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
135
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
136
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
127
137
|
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
128
138
|
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
129
139
|
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
@@ -132,6 +142,8 @@ export declare const templates: {
|
|
|
132
142
|
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
133
143
|
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
134
144
|
readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
|
|
145
|
+
}>>, import("../errors.js").DeclaredErrors<{
|
|
146
|
+
readonly plan_module_unavailable: `The tenant's plan does not include ${string}.`;
|
|
135
147
|
}>>, {
|
|
136
148
|
template_name_taken: {
|
|
137
149
|
status: 409;
|
|
@@ -177,13 +189,15 @@ export declare const templates: {
|
|
|
177
189
|
markdown: "markdown";
|
|
178
190
|
html: "html";
|
|
179
191
|
}>;
|
|
180
|
-
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
|
|
192
|
+
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
|
|
181
193
|
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
182
194
|
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
183
195
|
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
184
196
|
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
185
197
|
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
186
198
|
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
199
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
200
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
187
201
|
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
188
202
|
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
189
203
|
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
@@ -192,6 +206,8 @@ export declare const templates: {
|
|
|
192
206
|
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
193
207
|
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
194
208
|
readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
|
|
209
|
+
}>>, import("../errors.js").DeclaredErrors<{
|
|
210
|
+
readonly plan_module_unavailable: `The tenant's plan does not include ${string}.`;
|
|
195
211
|
}>>, {
|
|
196
212
|
template_name_taken: {
|
|
197
213
|
status: 409;
|
|
@@ -205,13 +221,15 @@ export declare const templates: {
|
|
|
205
221
|
}>, Record<never, never>>;
|
|
206
222
|
delete: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
207
223
|
templateId: z.ZodUUID;
|
|
208
|
-
}, z.core.$strip>, z.ZodVoid, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
|
|
224
|
+
}, z.core.$strip>, z.ZodVoid, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
|
|
209
225
|
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
210
226
|
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
211
227
|
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
212
228
|
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
213
229
|
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
214
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.";
|
|
215
233
|
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
216
234
|
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
217
235
|
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
@@ -220,6 +238,8 @@ export declare const templates: {
|
|
|
220
238
|
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
221
239
|
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
222
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}.`;
|
|
223
243
|
}>>, import("../errors.js").DeclaredErrors<{
|
|
224
244
|
readonly template_not_found: "The template does not exist.";
|
|
225
245
|
}>>, Record<never, never>>;
|
|
@@ -242,13 +262,15 @@ export declare const templateRenders: {
|
|
|
242
262
|
html: z.ZodNullable<z.ZodString>;
|
|
243
263
|
text: z.ZodNullable<z.ZodString>;
|
|
244
264
|
previewText: z.ZodNullable<z.ZodString>;
|
|
245
|
-
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
|
|
265
|
+
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
|
|
246
266
|
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
247
267
|
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
248
268
|
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
249
269
|
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
250
270
|
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
251
271
|
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
272
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
273
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
252
274
|
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
253
275
|
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
254
276
|
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
@@ -257,6 +279,8 @@ export declare const templateRenders: {
|
|
|
257
279
|
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
258
280
|
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
259
281
|
readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
|
|
282
|
+
}>>, import("../errors.js").DeclaredErrors<{
|
|
283
|
+
readonly plan_module_unavailable: `The tenant's plan does not include ${string}.`;
|
|
260
284
|
}>>, {
|
|
261
285
|
template_and_inline_fields: {
|
|
262
286
|
status: 400;
|
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
|
-
/**
|
|
3
|
-
* A conversation: the indexed messages sharing a threadId (Gmail thread, Microsoft conversation,
|
|
4
|
-
* IMAP server thread or References root). Messages without a threadId belong to no thread.
|
|
5
|
-
*/
|
|
6
2
|
export declare const ThreadSummary: z.ZodObject<{
|
|
7
3
|
id: z.ZodString;
|
|
8
4
|
subject: z.ZodNullable<z.ZodString>;
|
|
@@ -98,7 +94,6 @@ export declare const ThreadSummaryPage: z.ZodObject<{
|
|
|
98
94
|
nextCursor: z.ZodNullable<z.ZodString>;
|
|
99
95
|
}, z.core.$strip>;
|
|
100
96
|
export type ThreadSummaryPage = z.infer<typeof ThreadSummaryPage>;
|
|
101
|
-
/** A message's threadId, percent-encoded in the path (IMAP thread ids can contain "/"). */
|
|
102
97
|
export declare const ThreadIdInput: z.ZodObject<{
|
|
103
98
|
accountId: z.ZodUUID;
|
|
104
99
|
threadId: z.ZodString;
|