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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/README.md +233 -2
  2. package/client.d.ts +36 -0
  3. package/contract/accounts/models.d.ts +726 -0
  4. package/contract/accounts/routes.d.ts +1318 -0
  5. package/contract/ai/models.d.ts +30 -0
  6. package/contract/ai/routes.d.ts +89 -0
  7. package/contract/audit-log/models.d.ts +107 -0
  8. package/contract/audit-log/routes.d.ts +72 -0
  9. package/contract/calendar/models.d.ts +837 -0
  10. package/contract/calendar/routes.d.ts +1299 -0
  11. package/contract/connect/models.d.ts +272 -0
  12. package/contract/connect/routes.d.ts +531 -0
  13. package/contract/contacts/models.d.ts +269 -0
  14. package/contract/contacts/routes.d.ts +634 -0
  15. package/contract/errors.d.ts +108 -0
  16. package/contract/events/models.d.ts +2364 -0
  17. package/contract/events/routes.d.ts +107 -0
  18. package/contract/exports/models.d.ts +67 -0
  19. package/contract/exports/routes.d.ts +196 -0
  20. package/contract/identities/models.d.ts +100 -0
  21. package/contract/identities/routes.d.ts +249 -0
  22. package/contract/limits.d.ts +170 -0
  23. package/contract/mail/models.d.ts +528 -0
  24. package/contract/mail/routes.d.ts +749 -0
  25. package/contract/meetings/models.d.ts +232 -0
  26. package/contract/meetings/routes.d.ts +386 -0
  27. package/contract/oauth-apps/models.d.ts +92 -0
  28. package/contract/oauth-apps/routes.d.ts +187 -0
  29. package/contract/org-connections/models.d.ts +383 -0
  30. package/contract/org-connections/routes.d.ts +830 -0
  31. package/contract/primitives.d.ts +140 -0
  32. package/contract/public.d.ts +26 -0
  33. package/contract/reasons.d.ts +711 -0
  34. package/contract/router.d.ts +9773 -0
  35. package/contract/send/models.d.ts +750 -0
  36. package/contract/send/routes.d.ts +1239 -0
  37. package/contract/settings/models.d.ts +103 -0
  38. package/contract/settings/routes.d.ts +110 -0
  39. package/contract/suppressions/models.d.ts +231 -0
  40. package/contract/suppressions/routes.d.ts +317 -0
  41. package/contract/templates/models.d.ts +169 -0
  42. package/contract/templates/routes.d.ts +281 -0
  43. package/contract/threads/models.d.ts +117 -0
  44. package/contract/threads/routes.d.ts +336 -0
  45. package/contract/usage/models.d.ts +213 -0
  46. package/contract/usage/routes.d.ts +81 -0
  47. package/contract/webhooks/models.d.ts +879 -0
  48. package/contract/webhooks/routes.d.ts +839 -0
  49. package/contract/webhooks/signing.d.ts +35 -0
  50. package/errors.d.ts +15 -0
  51. package/index.d.ts +6 -0
  52. package/index.js +4334 -0
  53. package/index.js.map +59 -0
  54. package/package.json +45 -4
  55. package/pagination.d.ts +40 -0
  56. package/webhooks.d.ts +28 -0
@@ -0,0 +1,249 @@
1
+ import * as z from "zod";
2
+ export declare const identities: {
3
+ list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
4
+ accountId: z.ZodUUID;
5
+ refresh: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodEnum<{
6
+ true: "true";
7
+ false: "false";
8
+ }>]>, z.ZodTransform<boolean, boolean | "true" | "false">>>;
9
+ }, z.core.$strip>, z.ZodObject<{
10
+ refreshedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
11
+ items: z.ZodArray<z.ZodObject<{
12
+ name: z.ZodNullable<z.ZodString>;
13
+ address: z.ZodString;
14
+ id: z.ZodUUID;
15
+ source: z.ZodEnum<{
16
+ custom: "custom";
17
+ provider: "provider";
18
+ primary: "primary";
19
+ }>;
20
+ signature: z.ZodNullable<z.ZodObject<{
21
+ html: z.ZodNullable<z.ZodString>;
22
+ text: z.ZodNullable<z.ZodString>;
23
+ }, z.core.$strip>>;
24
+ providerSignature: z.ZodNullable<z.ZodObject<{
25
+ html: z.ZodNullable<z.ZodString>;
26
+ text: z.ZodNullable<z.ZodString>;
27
+ }, z.core.$strip>>;
28
+ }, z.core.$strip>>;
29
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
30
+ readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
31
+ readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
32
+ readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
33
+ readonly missing_scope: "The API key lacks the scope the operation needs.";
34
+ readonly role_forbidden: "The member's role does not allow the operation.";
35
+ readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
36
+ readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
37
+ readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
38
+ readonly overloaded: "The API is shedding load; retry after Retry-After.";
39
+ readonly payload_too_large: "The request body is larger than the API accepts.";
40
+ readonly internal_error: "An unexpected failure on our side.";
41
+ readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
42
+ readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
43
+ readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
44
+ }>>, {
45
+ provider_unavailable: {
46
+ status: 502;
47
+ message: string;
48
+ };
49
+ provider_throttled: {
50
+ status: 429;
51
+ message: string;
52
+ };
53
+ account_reauth_required: {
54
+ status: 409;
55
+ message: string;
56
+ };
57
+ account_not_found: {
58
+ status: 404;
59
+ message: string;
60
+ };
61
+ }>, Record<never, never>>;
62
+ create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
63
+ accountId: z.ZodUUID;
64
+ name: z.ZodOptional<z.ZodString>;
65
+ address: z.ZodEmail;
66
+ signature: z.ZodOptional<z.ZodObject<{
67
+ html: z.ZodOptional<z.ZodString>;
68
+ text: z.ZodOptional<z.ZodString>;
69
+ }, z.core.$strip>>;
70
+ }, z.core.$strip>, z.ZodObject<{
71
+ name: z.ZodNullable<z.ZodString>;
72
+ address: z.ZodString;
73
+ id: z.ZodUUID;
74
+ source: z.ZodEnum<{
75
+ custom: "custom";
76
+ provider: "provider";
77
+ primary: "primary";
78
+ }>;
79
+ signature: z.ZodNullable<z.ZodObject<{
80
+ html: z.ZodNullable<z.ZodString>;
81
+ text: z.ZodNullable<z.ZodString>;
82
+ }, z.core.$strip>>;
83
+ providerSignature: z.ZodNullable<z.ZodObject<{
84
+ html: z.ZodNullable<z.ZodString>;
85
+ text: z.ZodNullable<z.ZodString>;
86
+ }, z.core.$strip>>;
87
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
88
+ readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
89
+ readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
90
+ readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
91
+ readonly missing_scope: "The API key lacks the scope the operation needs.";
92
+ readonly role_forbidden: "The member's role does not allow the operation.";
93
+ readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
94
+ readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
95
+ readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
96
+ readonly overloaded: "The API is shedding load; retry after Retry-After.";
97
+ readonly payload_too_large: "The request body is larger than the API accepts.";
98
+ readonly internal_error: "An unexpected failure on our side.";
99
+ readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
100
+ readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
101
+ readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
102
+ }>>, {
103
+ identities_managed_by_provider: {
104
+ status: 400;
105
+ message: string;
106
+ };
107
+ identity_exists: {
108
+ status: 409;
109
+ message: string;
110
+ };
111
+ account_not_found: {
112
+ status: 404;
113
+ message: string;
114
+ };
115
+ }>, Record<never, never>>;
116
+ update: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
117
+ accountId: z.ZodUUID;
118
+ identityId: z.ZodUUID;
119
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
120
+ signature: z.ZodOptional<z.ZodNullable<z.ZodObject<{
121
+ html: z.ZodOptional<z.ZodString>;
122
+ text: z.ZodOptional<z.ZodString>;
123
+ }, z.core.$strip>>>;
124
+ }, z.core.$strip>, z.ZodObject<{
125
+ name: z.ZodNullable<z.ZodString>;
126
+ address: z.ZodString;
127
+ id: z.ZodUUID;
128
+ source: z.ZodEnum<{
129
+ custom: "custom";
130
+ provider: "provider";
131
+ primary: "primary";
132
+ }>;
133
+ signature: z.ZodNullable<z.ZodObject<{
134
+ html: z.ZodNullable<z.ZodString>;
135
+ text: z.ZodNullable<z.ZodString>;
136
+ }, z.core.$strip>>;
137
+ providerSignature: z.ZodNullable<z.ZodObject<{
138
+ html: z.ZodNullable<z.ZodString>;
139
+ text: z.ZodNullable<z.ZodString>;
140
+ }, z.core.$strip>>;
141
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
142
+ readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
143
+ readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
144
+ readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
145
+ readonly missing_scope: "The API key lacks the scope the operation needs.";
146
+ readonly role_forbidden: "The member's role does not allow the operation.";
147
+ readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
148
+ readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
149
+ readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
150
+ readonly overloaded: "The API is shedding load; retry after Retry-After.";
151
+ readonly payload_too_large: "The request body is larger than the API accepts.";
152
+ readonly internal_error: "An unexpected failure on our side.";
153
+ readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
154
+ readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
155
+ readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
156
+ }>>, {
157
+ identity_not_custom: {
158
+ status: 400;
159
+ message: string;
160
+ };
161
+ identity_not_found: {
162
+ status: 404;
163
+ message: string;
164
+ };
165
+ account_not_found: {
166
+ status: 404;
167
+ message: string;
168
+ };
169
+ }>, Record<never, never>>;
170
+ delete: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
171
+ accountId: z.ZodUUID;
172
+ identityId: z.ZodUUID;
173
+ }, z.core.$strip>, z.ZodVoid, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
174
+ readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
175
+ readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
176
+ readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
177
+ readonly missing_scope: "The API key lacks the scope the operation needs.";
178
+ readonly role_forbidden: "The member's role does not allow the operation.";
179
+ readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
180
+ readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
181
+ readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
182
+ readonly overloaded: "The API is shedding load; retry after Retry-After.";
183
+ readonly payload_too_large: "The request body is larger than the API accepts.";
184
+ readonly internal_error: "An unexpected failure on our side.";
185
+ readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
186
+ readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
187
+ readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
188
+ }>>, {
189
+ identity_not_custom: {
190
+ status: 400;
191
+ message: string;
192
+ };
193
+ identity_not_found: {
194
+ status: 404;
195
+ message: string;
196
+ };
197
+ account_not_found: {
198
+ status: 404;
199
+ message: string;
200
+ };
201
+ }>, Record<never, never>>;
202
+ };
203
+ export declare const mailSettings: {
204
+ get: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
205
+ accountId: z.ZodUUID;
206
+ }, z.core.$strip>, z.ZodObject<{
207
+ signByDefault: z.ZodBoolean;
208
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
209
+ readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
210
+ readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
211
+ readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
212
+ readonly missing_scope: "The API key lacks the scope the operation needs.";
213
+ readonly role_forbidden: "The member's role does not allow the operation.";
214
+ readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
215
+ readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
216
+ readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
217
+ readonly overloaded: "The API is shedding load; retry after Retry-After.";
218
+ readonly payload_too_large: "The request body is larger than the API accepts.";
219
+ readonly internal_error: "An unexpected failure on our side.";
220
+ readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
221
+ readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
222
+ readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
223
+ }>>, import("../errors.js").DeclaredErrors<{
224
+ readonly account_not_found: "The account does not exist, or the caller is an account token for another account.";
225
+ }>>, Record<never, never>>;
226
+ update: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
227
+ accountId: z.ZodUUID;
228
+ signByDefault: z.ZodOptional<z.ZodBoolean>;
229
+ }, z.core.$strip>, z.ZodObject<{
230
+ signByDefault: z.ZodBoolean;
231
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
232
+ readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
233
+ readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
234
+ readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
235
+ readonly missing_scope: "The API key lacks the scope the operation needs.";
236
+ readonly role_forbidden: "The member's role does not allow the operation.";
237
+ readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
238
+ readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
239
+ readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
240
+ readonly overloaded: "The API is shedding load; retry after Retry-After.";
241
+ readonly payload_too_large: "The request body is larger than the API accepts.";
242
+ readonly internal_error: "An unexpected failure on our side.";
243
+ readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
244
+ readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
245
+ readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
246
+ }>>, import("../errors.js").DeclaredErrors<{
247
+ readonly account_not_found: "The account does not exist, or the caller is an account token for another account.";
248
+ }>>, Record<never, never>>;
249
+ };
@@ -0,0 +1,170 @@
1
+ /** The longest address the capped fields take: a 64-character local part, "@", and a
2
+ * 255-character domain (RFC 5321 section 4.5.3.1). */
3
+ export declare const MAX_EMAIL_LENGTH = 320;
4
+ /** A name a tenant gives what it registers: an API key, an app, a connection, a plan. */
5
+ export declare const MAX_NAME_LENGTH = 100;
6
+ /** The caller's own reference stored with an account or template. */
7
+ export declare const MAX_EXTERNAL_REF_LENGTH = 255;
8
+ /** An account's display name. */
9
+ export declare const MAX_DISPLAY_NAME_LENGTH = 255;
10
+ /** The display name next to an address: a recipient's, an attendee's, an identity's. */
11
+ export declare const MAX_ADDRESS_NAME_LENGTH = 256;
12
+ /** A password or client secret. */
13
+ export declare const MAX_SECRET_LENGTH = 1024;
14
+ /** A free-text note or description an admin attaches. */
15
+ export declare const MAX_NOTE_LENGTH = 500;
16
+ /** A listing's text filter. */
17
+ export declare const MAX_FILTER_QUERY_LENGTH = 200;
18
+ /** A URL the caller gives: a DAV server, a meeting's join link. */
19
+ export declare const MAX_URL_LENGTH = 2048;
20
+ /** An IANA time zone name. */
21
+ export declare const MAX_TIME_ZONE_LENGTH = 64;
22
+ /** An opaque pagination cursor. */
23
+ export declare const MAX_CURSOR_LENGTH = 512;
24
+ /** A listing's page size, where the listing names no other. */
25
+ export declare const MAX_PAGE_SIZE = 200;
26
+ export declare const DEFAULT_PAGE_SIZE = 50;
27
+ /** An id a provider issues (a thread id, an attachment id), as a path segment takes it. */
28
+ export declare const MAX_PROVIDER_ID_LENGTH = 1024;
29
+ /** A host name (RFC 1035): a server's, or a domain's. */
30
+ export declare const MAX_HOST_LENGTH = 253;
31
+ /** The highest TCP port. */
32
+ export declare const MAX_PORT = 65535;
33
+ /** The `state` a redirect flow echoes back. */
34
+ export declare const MAX_STATE_LENGTH = 1024;
35
+ /** Shortest and longest life of a token or a hosted session the caller asks for. */
36
+ export declare const MIN_TOKEN_TTL_SECONDS = 60;
37
+ export declare const MAX_TOKEN_TTL_SECONDS = 86400;
38
+ /** Redirect URIs a tenant's allowlist holds. */
39
+ export declare const MAX_REDIRECT_URIS = 50;
40
+ /** The longest undo window for sends. */
41
+ export declare const MAX_UNDO_SEND_SECONDS = 60;
42
+ /** The range a tenant's event retention may be set within. */
43
+ export declare const MIN_EVENT_RETENTION_DAYS = 7;
44
+ export declare const MAX_EVENT_RETENTION_DAYS = 30;
45
+ export declare const MAX_ATTACHMENT_BYTES: number;
46
+ /** RFC 5322's line limit; also the longest Message-ID a mail merge entry takes. */
47
+ export declare const MAX_SUBJECT_LENGTH = 998;
48
+ export declare const MAX_MESSAGE_ID_LENGTH = 998;
49
+ /** Longest html or text body a message takes (characters): what a template may render, so a send
50
+ * gets no more inline than it could through a template. */
51
+ export declare const MAX_BODY_LENGTH: number;
52
+ /** Recipients of each of to, cc and bcc. */
53
+ export declare const MAX_RECIPIENTS = 500;
54
+ export declare const MAX_REPLY_TO = 10;
55
+ export declare const MAX_ATTACHMENTS = 50;
56
+ export declare const MAX_FILENAME_LENGTH = 255;
57
+ export declare const MAX_CONTENT_TYPE_LENGTH = 255;
58
+ export declare const MAX_CONTENT_ID_LENGTH = 255;
59
+ /** A send's own `reference`. */
60
+ export declare const MAX_SEND_REFERENCE_LENGTH = 255;
61
+ /** Mailboxes one message update adds or removes. */
62
+ export declare const MAX_MAILBOX_CHANGES = 50;
63
+ /** The longest search query search.messages takes. */
64
+ export declare const MAX_SEARCH_QUERY_LENGTH = 500;
65
+ /** Hits one search page holds: a provider search reads a page of the provider's per call. */
66
+ export declare const MAX_SEARCH_PAGE_SIZE = 100;
67
+ export declare const DEFAULT_SEARCH_PAGE_SIZE = 25;
68
+ /** Threads one page holds: each summary aggregates every message of its thread. */
69
+ export declare const MAX_THREAD_PAGE_SIZE = 100;
70
+ export declare const DEFAULT_THREAD_PAGE_SIZE = 25;
71
+ export declare const MAX_SIGNATURE_HTML_LENGTH = 100000;
72
+ export declare const MAX_SIGNATURE_TEXT_LENGTH = 20000;
73
+ /** Longest template name (after trimming) and description the API accepts. */
74
+ export declare const MAX_TEMPLATE_NAME_LENGTH = 255;
75
+ export declare const MAX_TEMPLATE_DESCRIPTION_LENGTH = 1000;
76
+ /** Longest subject, preview line and body (html, text) source a template stores. */
77
+ export declare const MAX_TEMPLATE_SUBJECT_LENGTH = 2000;
78
+ export declare const MAX_TEMPLATE_PREVIEW_TEXT_LENGTH = 2000;
79
+ export declare const MAX_TEMPLATE_BODY_LENGTH = 1000000;
80
+ /** Most entries one mail merge call takes; split larger lists over several calls. */
81
+ export declare const MAX_MAIL_MERGE_ENTRIES = 100;
82
+ /** Most attachment bytes a mail merge queues in total (the attachments times the entries): every
83
+ * copy is sealed with its own attachments. */
84
+ export declare const MAX_MAIL_MERGE_ATTACHMENT_BYTES: number;
85
+ /** Largest params object (serialized as JSON) one render takes: 400 reason params_too_large. */
86
+ export declare const MAX_RENDER_PARAMS_BYTES: number;
87
+ /** Block iterations (each, with, if/unless bodies, ...) one render may run before it fails with
88
+ * template_render_failed. */
89
+ export declare const MAX_RENDER_ITERATIONS = 10000;
90
+ /** Longest Markdown (after rendering, values escaped) converted to HTML; beyond it the render, or
91
+ * a send of the content as it is, fails with template_render_failed. Converting takes about 2 ms
92
+ * per 1,000 characters at worst, so this keeps one conversion under about 200 ms. */
93
+ export declare const MAX_MARKDOWN_LENGTH = 100000;
94
+ /** How many addresses one call adding entries to a suppression list takes. */
95
+ export declare const MAX_SUPPRESSION_BATCH = 1000;
96
+ export declare const MAX_SUPPRESSION_LIST_DESCRIPTION_LENGTH = 500;
97
+ /** The reason given with an address the API suppresses. */
98
+ export declare const MAX_SUPPRESSION_REASON_LENGTH = 200;
99
+ /** Attendees one event write may name; also the most an iMIP message from a CalDAV account goes
100
+ * to, so email never reaches more people than the API would have let a caller invite. */
101
+ export declare const MAX_EVENT_ATTENDEES = 500;
102
+ export declare const MAX_EVENT_SUBJECT_LENGTH = 255;
103
+ export declare const MAX_EVENT_LOCATION_LENGTH = 255;
104
+ export declare const MAX_EVENT_BODY_LENGTH = 1000000;
105
+ /** Longest note sent with a cancellation or an answer. */
106
+ export declare const MAX_EVENT_COMMENT_LENGTH = 2000;
107
+ /** RFC 5545 recurrence lines one event takes, and the longest. */
108
+ export declare const MAX_RECURRENCE_LINES = 20;
109
+ export declare const MAX_RECURRENCE_LINE_LENGTH = 1000;
110
+ /** Four weeks. */
111
+ export declare const MAX_REMINDER_MINUTES = 40320;
112
+ /** Attendees one availability question takes. */
113
+ export declare const MAX_AVAILABILITY_ATTENDEES = 20;
114
+ /** The longest range an availability question spans. */
115
+ export declare const MAX_AVAILABILITY_DAYS = 62;
116
+ /** Shortest and longest suggested slot, and step between suggestions. */
117
+ export declare const MIN_SLOT_MINUTES = 5;
118
+ export declare const MAX_SLOT_MINUTES = 1440;
119
+ /** Most free slots one availability question suggests. */
120
+ export declare const MAX_SUGGESTIONS = 100;
121
+ /** The longest range one event listing spans. */
122
+ export declare const MAX_EVENT_RANGE_DAYS = 400;
123
+ /** A page of events. */
124
+ export declare const MAX_CALENDAR_EVENT_PAGE_SIZE = 500;
125
+ export declare const DEFAULT_CALENDAR_EVENT_PAGE_SIZE = 100;
126
+ /** Email addresses, and phone numbers, one contact takes. */
127
+ export declare const MAX_CONTACT_ENTRIES = 20;
128
+ /** Longest name, organization, job title or department; phone number; notes. */
129
+ export declare const MAX_CONTACT_FIELD_LENGTH = 256;
130
+ export declare const MAX_CONTACT_PHONE_LENGTH = 64;
131
+ export declare const MAX_CONTACT_NOTES_LENGTH = 10000;
132
+ /** A page of contacts. */
133
+ export declare const MAX_CONTACT_PAGE_SIZE = 500;
134
+ export declare const DEFAULT_CONTACT_PAGE_SIZE = 100;
135
+ /** Most values one list filter takes. */
136
+ export declare const MAX_WEBHOOK_FILTER_VALUES = 100;
137
+ /** A subjectContains filter value. */
138
+ export declare const MAX_SUBJECT_FILTER_LENGTH = 200;
139
+ /** Most events one range replay queues; ask for a narrower range beyond it. */
140
+ export declare const MAX_REPLAY_EVENTS = 1000;
141
+ /** A page of an endpoint's delivery log. */
142
+ export declare const MAX_WEBHOOK_ATTEMPT_PAGE_SIZE = 500;
143
+ export declare const DEFAULT_WEBHOOK_ATTEMPT_PAGE_SIZE = 50;
144
+ /** Signatures in a webhook-signature header that a verifier checks; any after them are ignored. */
145
+ export declare const MAX_SIGNATURE_CANDIDATES = 8;
146
+ /** How long a rotated-out signing secret still signs deliveries when the rotation names no grace. */
147
+ export declare const DEFAULT_WEBHOOK_SECRET_GRACE_SECONDS: number;
148
+ /** The longest grace a signing secret rotation may give the old secret. */
149
+ export declare const MAX_WEBHOOK_SECRET_GRACE_SECONDS: number;
150
+ export declare const MAX_DRAFT_INSTRUCTIONS_LENGTH = 2000;
151
+ /** The longest current draft a draft request carries. */
152
+ export declare const MAX_DRAFT_CONTEXT_LENGTH = 20000;
153
+ /** Longest client or account id a meeting service issues. */
154
+ export declare const MAX_MEETING_APP_ID_LENGTH = 200;
155
+ export declare const MAX_REFRESH_TOKEN_LENGTH = 4096;
156
+ /** Longest certificate or key file (PEM, or Google's JSON key). */
157
+ export declare const MAX_KEY_FILE_LENGTH = 20000;
158
+ /** Longest directory search. */
159
+ export declare const MAX_DIRECTORY_QUERY_LENGTH = 100;
160
+ /** Directory entries one page lists at most, and when no limit is given. */
161
+ export declare const MAX_DIRECTORY_PAGE_SIZE = 200;
162
+ export declare const DEFAULT_DIRECTORY_PAGE_SIZE = 100;
163
+ /** Mailboxes one addAccounts request takes. */
164
+ export declare const MAX_ADD_MAILBOXES = 100;
165
+ /** An Entra application id or directory (tenant) id. */
166
+ export declare const MAX_ENTRA_ID_LENGTH = 100;
167
+ /** A Stripe price id. */
168
+ export declare const MAX_STRIPE_ID_LENGTH = 255;
169
+ /** UTC days one usage read spans at most, both ends included. */
170
+ export declare const MAX_USAGE_RANGE_DAYS = 366;