@workwae/sdk 0.1.0-alpha.2 → 0.1.0-alpha.3

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.
@@ -21,6 +21,7 @@ export declare const AuditActor: z.ZodObject<{
21
21
  export type AuditActor = z.infer<typeof AuditActor>;
22
22
  export declare const AuditSurface: z.ZodEnum<{
23
23
  auth: "auth";
24
+ smtp: "smtp";
24
25
  v1: "v1";
25
26
  rpc: "rpc";
26
27
  mcp: "mcp";
@@ -48,6 +49,7 @@ export declare const AuditEntry: z.ZodObject<{
48
49
  action: z.ZodString;
49
50
  surface: z.ZodEnum<{
50
51
  auth: "auth";
52
+ smtp: "smtp";
51
53
  v1: "v1";
52
54
  rpc: "rpc";
53
55
  mcp: "mcp";
@@ -81,6 +83,7 @@ export declare const AuditEntryPage: z.ZodObject<{
81
83
  action: z.ZodString;
82
84
  surface: z.ZodEnum<{
83
85
  auth: "auth";
86
+ smtp: "smtp";
84
87
  v1: "v1";
85
88
  rpc: "rpc";
86
89
  mcp: "mcp";
@@ -36,6 +36,7 @@ export declare const auditLog: {
36
36
  action: import("zod").ZodString;
37
37
  surface: import("zod").ZodEnum<{
38
38
  auth: "auth";
39
+ smtp: "smtp";
39
40
  v1: "v1";
40
41
  rpc: "rpc";
41
42
  mcp: "mcp";
@@ -63,6 +63,7 @@ export declare const ConnectErrorCode: z.ZodEnum<{
63
63
  unknown_meeting_app: "unknown_meeting_app";
64
64
  meeting_app_mismatch: "meeting_app_mismatch";
65
65
  meeting_app_secret_unreadable: "meeting_app_secret_unreadable";
66
+ connect_domain_inactive: "connect_domain_inactive";
66
67
  consent_failed: "consent_failed";
67
68
  consent_required: "consent_required";
68
69
  consent_revoked: "consent_revoked";
@@ -149,6 +150,7 @@ export declare const ConnectSession: z.ZodObject<{
149
150
  unknown_meeting_app: "unknown_meeting_app";
150
151
  meeting_app_mismatch: "meeting_app_mismatch";
151
152
  meeting_app_secret_unreadable: "meeting_app_secret_unreadable";
153
+ connect_domain_inactive: "connect_domain_inactive";
152
154
  consent_failed: "consent_failed";
153
155
  consent_required: "consent_required";
154
156
  consent_revoked: "consent_revoked";
@@ -153,6 +153,7 @@ export declare const connectSessions: {
153
153
  unknown_meeting_app: "unknown_meeting_app";
154
154
  meeting_app_mismatch: "meeting_app_mismatch";
155
155
  meeting_app_secret_unreadable: "meeting_app_secret_unreadable";
156
+ connect_domain_inactive: "connect_domain_inactive";
156
157
  consent_failed: "consent_failed";
157
158
  consent_required: "consent_required";
158
159
  consent_revoked: "consent_revoked";
@@ -261,6 +262,10 @@ export declare const oauthAuthorizations: {
261
262
  status: 400;
262
263
  message: string;
263
264
  };
265
+ connect_domain_inactive: {
266
+ status: 409;
267
+ message: string;
268
+ };
264
269
  connect_grants_nothing: {
265
270
  status: 400;
266
271
  message: string;
@@ -0,0 +1,41 @@
1
+ import * as z from "zod";
2
+ export declare const ConnectDomainHostname: z.ZodString;
3
+ export type ConnectDomainHostname = z.infer<typeof ConnectDomainHostname>;
4
+ export declare const ConnectDomainStatus: z.ZodEnum<{
5
+ active: "active";
6
+ pending: "pending";
7
+ failed: "failed";
8
+ }>;
9
+ export type ConnectDomainStatus = z.infer<typeof ConnectDomainStatus>;
10
+ export declare const ConnectDomainRecord: z.ZodObject<{
11
+ type: z.ZodString;
12
+ name: z.ZodString;
13
+ value: z.ZodString;
14
+ }, z.core.$strip>;
15
+ export type ConnectDomainRecord = z.infer<typeof ConnectDomainRecord>;
16
+ export declare const ConnectDomain: z.ZodObject<{
17
+ hostname: z.ZodString;
18
+ status: z.ZodEnum<{
19
+ active: "active";
20
+ pending: "pending";
21
+ failed: "failed";
22
+ }>;
23
+ records: z.ZodArray<z.ZodObject<{
24
+ type: z.ZodString;
25
+ name: z.ZodString;
26
+ value: z.ZodString;
27
+ }, z.core.$strip>>;
28
+ ownership: z.ZodObject<{
29
+ type: z.ZodString;
30
+ name: z.ZodString;
31
+ value: z.ZodString;
32
+ }, z.core.$strip>;
33
+ error: z.ZodNullable<z.ZodString>;
34
+ activatedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
35
+ createdAt: z.ZodPreprocess<z.ZodDate, Date>;
36
+ }, z.core.$strip>;
37
+ export type ConnectDomain = z.infer<typeof ConnectDomain>;
38
+ export declare const SetConnectDomain: z.ZodObject<{
39
+ hostname: z.ZodString;
40
+ }, z.core.$strip>;
41
+ export type SetConnectDomain = z.infer<typeof SetConnectDomain>;
@@ -0,0 +1,197 @@
1
+ import * as z from "zod";
2
+ export declare const connectDomain: {
3
+ get: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
4
+ hostname: z.ZodString;
5
+ status: z.ZodEnum<{
6
+ active: "active";
7
+ pending: "pending";
8
+ failed: "failed";
9
+ }>;
10
+ records: z.ZodArray<z.ZodObject<{
11
+ type: z.ZodString;
12
+ name: z.ZodString;
13
+ value: z.ZodString;
14
+ }, z.core.$strip>>;
15
+ ownership: z.ZodObject<{
16
+ type: z.ZodString;
17
+ name: z.ZodString;
18
+ value: z.ZodString;
19
+ }, z.core.$strip>;
20
+ error: z.ZodNullable<z.ZodString>;
21
+ activatedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
22
+ createdAt: z.ZodPreprocess<z.ZodDate, Date>;
23
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
24
+ readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
25
+ readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
26
+ readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
27
+ readonly missing_scope: "The API key lacks the scope the operation needs.";
28
+ readonly role_forbidden: "The member's role does not allow the operation.";
29
+ readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
30
+ readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
31
+ readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
32
+ readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
33
+ readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
34
+ readonly overloaded: "The API is shedding load; retry after Retry-After.";
35
+ readonly payload_too_large: "The request body is larger than the API accepts.";
36
+ readonly internal_error: "An unexpected failure on our side.";
37
+ readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
38
+ readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
39
+ readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
40
+ }>>, {
41
+ connect_domain_not_found: {
42
+ status: 404;
43
+ message: string;
44
+ };
45
+ connect_domain_unavailable: {
46
+ status: 400;
47
+ message: string;
48
+ };
49
+ }>, Record<never, never>>;
50
+ set: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
51
+ hostname: z.ZodString;
52
+ }, z.core.$strip>, z.ZodObject<{
53
+ hostname: z.ZodString;
54
+ status: z.ZodEnum<{
55
+ active: "active";
56
+ pending: "pending";
57
+ failed: "failed";
58
+ }>;
59
+ records: z.ZodArray<z.ZodObject<{
60
+ type: z.ZodString;
61
+ name: z.ZodString;
62
+ value: z.ZodString;
63
+ }, z.core.$strip>>;
64
+ ownership: z.ZodObject<{
65
+ type: z.ZodString;
66
+ name: z.ZodString;
67
+ value: z.ZodString;
68
+ }, z.core.$strip>;
69
+ error: z.ZodNullable<z.ZodString>;
70
+ activatedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
71
+ createdAt: z.ZodPreprocess<z.ZodDate, Date>;
72
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
73
+ readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
74
+ readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
75
+ readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
76
+ readonly missing_scope: "The API key lacks the scope the operation needs.";
77
+ readonly role_forbidden: "The member's role does not allow the operation.";
78
+ readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
79
+ readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
80
+ readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
81
+ readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
82
+ readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
83
+ readonly overloaded: "The API is shedding load; retry after Retry-After.";
84
+ readonly payload_too_large: "The request body is larger than the API accepts.";
85
+ readonly internal_error: "An unexpected failure on our side.";
86
+ readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
87
+ readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
88
+ readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
89
+ }>>, {
90
+ connect_domain_not_allowed: {
91
+ status: 400;
92
+ message: string;
93
+ };
94
+ connect_domain_taken: {
95
+ status: 409;
96
+ message: string;
97
+ };
98
+ connect_domain_in_use: {
99
+ status: 409;
100
+ message: string;
101
+ };
102
+ connect_domain_edge_unavailable: {
103
+ status: 502;
104
+ message: string;
105
+ };
106
+ connect_domain_unavailable: {
107
+ status: 400;
108
+ message: string;
109
+ };
110
+ }>, Record<never, never>>;
111
+ delete: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodVoid, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
112
+ readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
113
+ readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
114
+ readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
115
+ readonly missing_scope: "The API key lacks the scope the operation needs.";
116
+ readonly role_forbidden: "The member's role does not allow the operation.";
117
+ readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
118
+ readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
119
+ readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
120
+ readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
121
+ readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
122
+ readonly overloaded: "The API is shedding load; retry after Retry-After.";
123
+ readonly payload_too_large: "The request body is larger than the API accepts.";
124
+ readonly internal_error: "An unexpected failure on our side.";
125
+ readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
126
+ readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
127
+ readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
128
+ }>>, {
129
+ connect_domain_in_use: {
130
+ status: 409;
131
+ message: string;
132
+ };
133
+ connect_domain_edge_unavailable: {
134
+ status: 502;
135
+ message: string;
136
+ };
137
+ connect_domain_not_found: {
138
+ status: 404;
139
+ message: string;
140
+ };
141
+ connect_domain_unavailable: {
142
+ status: 400;
143
+ message: string;
144
+ };
145
+ }>, Record<never, never>>;
146
+ refresh: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
147
+ hostname: z.ZodString;
148
+ status: z.ZodEnum<{
149
+ active: "active";
150
+ pending: "pending";
151
+ failed: "failed";
152
+ }>;
153
+ records: z.ZodArray<z.ZodObject<{
154
+ type: z.ZodString;
155
+ name: z.ZodString;
156
+ value: z.ZodString;
157
+ }, z.core.$strip>>;
158
+ ownership: z.ZodObject<{
159
+ type: z.ZodString;
160
+ name: z.ZodString;
161
+ value: z.ZodString;
162
+ }, z.core.$strip>;
163
+ error: z.ZodNullable<z.ZodString>;
164
+ activatedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
165
+ createdAt: z.ZodPreprocess<z.ZodDate, Date>;
166
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
167
+ readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
168
+ readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
169
+ readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
170
+ readonly missing_scope: "The API key lacks the scope the operation needs.";
171
+ readonly role_forbidden: "The member's role does not allow the operation.";
172
+ readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
173
+ readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
174
+ readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
175
+ readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
176
+ readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
177
+ readonly overloaded: "The API is shedding load; retry after Retry-After.";
178
+ readonly payload_too_large: "The request body is larger than the API accepts.";
179
+ readonly internal_error: "An unexpected failure on our side.";
180
+ readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
181
+ readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
182
+ readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
183
+ }>>, {
184
+ connect_domain_edge_unavailable: {
185
+ status: 502;
186
+ message: string;
187
+ };
188
+ connect_domain_not_found: {
189
+ status: 404;
190
+ message: string;
191
+ };
192
+ connect_domain_unavailable: {
193
+ status: 400;
194
+ message: string;
195
+ };
196
+ }>, Record<never, never>>;
197
+ };
@@ -0,0 +1,12 @@
1
+ import * as z from "zod";
2
+ export declare const customDomainHostname: (example: string) => z.ZodString;
3
+ export declare const CUSTOM_DOMAIN_STATUSES: readonly [
4
+ "pending",
5
+ "active",
6
+ "failed"
7
+ ];
8
+ export declare const customDomainRecord: () => z.ZodObject<{
9
+ type: z.ZodString;
10
+ name: z.ZodString;
11
+ value: z.ZodString;
12
+ }, z.core.$strip>;
@@ -35,12 +35,18 @@ export declare const MAX_FILENAME_LENGTH = 255;
35
35
  export declare const MAX_CONTENT_TYPE_LENGTH = 255;
36
36
  export declare const MAX_CONTENT_ID_LENGTH = 255;
37
37
  export declare const MAX_SEND_REFERENCE_LENGTH = 255;
38
+ export declare const MAX_SEND_WAIT_SECONDS = 30;
39
+ export declare const MAX_SEND_HEADERS = 50;
40
+ export declare const MAX_HEADER_VALUE_LENGTH = 4096;
41
+ export declare const MAX_CALENDAR_LENGTH: number;
38
42
  export declare const MAX_MAILBOX_CHANGES = 50;
39
43
  export declare const MAX_SEARCH_QUERY_LENGTH = 500;
40
44
  export declare const MAX_SEARCH_PAGE_SIZE = 100;
41
45
  export declare const DEFAULT_SEARCH_PAGE_SIZE = 25;
42
46
  export declare const MAX_THREAD_PAGE_SIZE = 100;
43
47
  export declare const DEFAULT_THREAD_PAGE_SIZE = 25;
48
+ export declare const MAX_MESSAGE_BODIES_PAGE_SIZE = 25;
49
+ export declare const MAX_REFERENCES = 100;
44
50
  export declare const MAX_SIGNATURE_HTML_LENGTH = 100000;
45
51
  export declare const MAX_SIGNATURE_TEXT_LENGTH = 20000;
46
52
  export declare const MAX_TEMPLATE_NAME_LENGTH = 255;
@@ -264,6 +264,11 @@ export declare const MessageBody: z.ZodObject<{
264
264
  html: z.ZodNullable<z.ZodString>;
265
265
  }, z.core.$strip>;
266
266
  export type MessageBody = z.infer<typeof MessageBody>;
267
+ export declare const MessageHeader: z.ZodObject<{
268
+ name: z.ZodString;
269
+ value: z.ZodString;
270
+ }, z.core.$strip>;
271
+ export type MessageHeader = z.infer<typeof MessageHeader>;
267
272
  export declare const Message: z.ZodObject<{
268
273
  id: z.ZodUUID;
269
274
  threadId: z.ZodNullable<z.ZodString>;
@@ -344,8 +349,105 @@ export declare const Message: z.ZodObject<{
344
349
  model: z.ZodString;
345
350
  classifiedAt: z.ZodPreprocess<z.ZodDate, Date>;
346
351
  }, z.core.$strip>>;
352
+ inReplyTo: z.ZodNullable<z.ZodString>;
353
+ references: z.ZodArray<z.ZodString>;
354
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
355
+ name: z.ZodString;
356
+ value: z.ZodString;
357
+ }, z.core.$strip>>>;
347
358
  }, z.core.$strip>;
348
359
  export type Message = z.infer<typeof Message>;
360
+ export declare const MessagePage: z.ZodObject<{
361
+ items: z.ZodArray<z.ZodObject<{
362
+ id: z.ZodUUID;
363
+ threadId: z.ZodNullable<z.ZodString>;
364
+ internetMessageId: z.ZodNullable<z.ZodString>;
365
+ mailboxIds: z.ZodArray<z.ZodUUID>;
366
+ subject: z.ZodNullable<z.ZodString>;
367
+ from: z.ZodNullable<z.ZodObject<{
368
+ name: z.ZodNullable<z.ZodString>;
369
+ address: z.ZodString;
370
+ }, z.core.$strip>>;
371
+ to: z.ZodArray<z.ZodObject<{
372
+ name: z.ZodNullable<z.ZodString>;
373
+ address: z.ZodString;
374
+ }, z.core.$strip>>;
375
+ cc: z.ZodArray<z.ZodObject<{
376
+ name: z.ZodNullable<z.ZodString>;
377
+ address: z.ZodString;
378
+ }, z.core.$strip>>;
379
+ snippet: z.ZodNullable<z.ZodString>;
380
+ receivedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
381
+ sentAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
382
+ isRead: z.ZodBoolean;
383
+ isFlagged: z.ZodBoolean;
384
+ isDraft: z.ZodBoolean;
385
+ hasAttachments: z.ZodBoolean;
386
+ categories: z.ZodArray<z.ZodString>;
387
+ direction: z.ZodEnum<{
388
+ inbound: "inbound";
389
+ outbound: "outbound";
390
+ }>;
391
+ outboxId: z.ZodNullable<z.ZodUUID>;
392
+ reference: z.ZodNullable<z.ZodString>;
393
+ importance: z.ZodNullable<z.ZodEnum<{
394
+ normal: "normal";
395
+ high: "high";
396
+ low: "low";
397
+ }>>;
398
+ bcc: z.ZodArray<z.ZodObject<{
399
+ name: z.ZodNullable<z.ZodString>;
400
+ address: z.ZodString;
401
+ }, z.core.$strip>>;
402
+ replyTo: z.ZodArray<z.ZodObject<{
403
+ name: z.ZodNullable<z.ZodString>;
404
+ address: z.ZodString;
405
+ }, z.core.$strip>>;
406
+ body: z.ZodObject<{
407
+ text: z.ZodNullable<z.ZodString>;
408
+ html: z.ZodNullable<z.ZodString>;
409
+ }, z.core.$strip>;
410
+ attachments: z.ZodArray<z.ZodObject<{
411
+ id: z.ZodString;
412
+ filename: z.ZodNullable<z.ZodString>;
413
+ contentType: z.ZodString;
414
+ size: z.ZodNullable<z.ZodNumber>;
415
+ isInline: z.ZodBoolean;
416
+ contentId: z.ZodNullable<z.ZodString>;
417
+ }, z.core.$strip>>;
418
+ classification: z.ZodNullable<z.ZodObject<{
419
+ kind: z.ZodEnum<{
420
+ opt_out: "opt_out";
421
+ auto_reply: "auto_reply";
422
+ bounce: "bounce";
423
+ human_reply: "human_reply";
424
+ }>;
425
+ probabilities: z.ZodRecord<z.ZodString, z.ZodNumber>;
426
+ optOutProbability: z.ZodNumber;
427
+ autoReplyCategory: z.ZodNullable<z.ZodEnum<{
428
+ other: "other";
429
+ out_of_office: "out_of_office";
430
+ left_company: "left_company";
431
+ address_changed: "address_changed";
432
+ ticket_acknowledgment: "ticket_acknowledgment";
433
+ challenge_response: "challenge_response";
434
+ }>>;
435
+ returnDate: z.ZodNullable<z.ZodISODate>;
436
+ alternateContacts: z.ZodArray<z.ZodString>;
437
+ outboxId: z.ZodNullable<z.ZodUUID>;
438
+ model: z.ZodString;
439
+ classifiedAt: z.ZodPreprocess<z.ZodDate, Date>;
440
+ }, z.core.$strip>>;
441
+ inReplyTo: z.ZodNullable<z.ZodString>;
442
+ references: z.ZodArray<z.ZodString>;
443
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
444
+ name: z.ZodString;
445
+ value: z.ZodString;
446
+ }, z.core.$strip>>>;
447
+ }, z.core.$strip>>;
448
+ nextCursor: z.ZodNullable<z.ZodString>;
449
+ }, z.core.$strip>;
450
+ export type MessagePage = z.infer<typeof MessagePage>;
349
451
  export declare const SearchSource: z.ZodEnum<{
350
452
  provider: "provider";
351
453
  index: "index";
@@ -462,16 +564,50 @@ export declare const AttachmentIdInput: z.ZodObject<{
462
564
  attachmentId: z.ZodString;
463
565
  }, z.core.$strip>;
464
566
  export type AttachmentIdInput = z.infer<typeof AttachmentIdInput>;
567
+ export declare const MessageDetailInclude: z.ZodEnum<{
568
+ headers: "headers";
569
+ }>;
570
+ export type MessageDetailInclude = z.infer<typeof MessageDetailInclude>;
571
+ export declare const MessageListInclude: z.ZodEnum<{
572
+ headers: "headers";
573
+ body: "body";
574
+ }>;
575
+ export type MessageListInclude = z.infer<typeof MessageListInclude>;
576
+ export declare const GetMessageInput: z.ZodObject<{
577
+ accountId: z.ZodUUID;
578
+ messageId: z.ZodUUID;
579
+ include: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [
580
+ z.ZodString,
581
+ z.ZodArray<z.ZodEnum<{
582
+ headers: "headers";
583
+ }>>
584
+ ]>, z.ZodTransform<string[], string | "headers"[]>>, z.ZodArray<z.ZodEnum<{
585
+ headers: "headers";
586
+ }>>>>;
587
+ }, z.core.$strip>;
588
+ export type GetMessageInput = z.infer<typeof GetMessageInput>;
465
589
  export declare const ListMessagesQuery: z.ZodObject<{
466
- limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
467
- cursor: z.ZodOptional<z.ZodString>;
468
590
  importance: z.ZodOptional<z.ZodEnum<{
469
591
  normal: "normal";
470
592
  high: "high";
471
593
  low: "low";
472
594
  }>>;
595
+ outboxId: z.ZodOptional<z.ZodUUID>;
596
+ internetMessageId: z.ZodOptional<z.ZodString>;
473
597
  after: z.ZodOptional<z.ZodPreprocess<z.ZodDate, string | Date>>;
474
598
  before: z.ZodOptional<z.ZodPreprocess<z.ZodDate, string | Date>>;
599
+ include: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [
600
+ z.ZodString,
601
+ z.ZodArray<z.ZodEnum<{
602
+ headers: "headers";
603
+ body: "body";
604
+ }>>
605
+ ]>, z.ZodTransform<string[], string | ("headers" | "body")[]>>, z.ZodArray<z.ZodEnum<{
606
+ headers: "headers";
607
+ body: "body";
608
+ }>>>>;
609
+ limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
610
+ cursor: z.ZodOptional<z.ZodString>;
475
611
  from: z.ZodOptional<z.ZodString>;
476
612
  to: z.ZodOptional<z.ZodString>;
477
613
  unread: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [
@@ -498,6 +634,7 @@ export declare const ListMessagesQuery: z.ZodObject<{
498
634
  mailboxId: z.ZodOptional<z.ZodUUID>;
499
635
  }, z.core.$strip>;
500
636
  export type ListMessagesQuery = z.infer<typeof ListMessagesQuery>;
637
+ export declare function withListIncludeRules<T extends z.ZodObject>(schema: T): T;
501
638
  export declare const SearchMessagesQuery: z.ZodObject<{
502
639
  after: z.ZodOptional<z.ZodPreprocess<z.ZodDate, string | Date>>;
503
640
  before: z.ZodOptional<z.ZodPreprocess<z.ZodDate, string | Date>>;