samva 0.51.0 → 0.53.0

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 (89) hide show
  1. package/AGENTS.md +5 -2
  2. package/README.md +1 -0
  3. package/dist/client/sdk.gen.d.ts +82 -36
  4. package/dist/client/sdk.gen.js +192 -57
  5. package/dist/client/types.gen.d.ts +607 -291
  6. package/dist/effect/campaigns.d.ts +56 -56
  7. package/dist/effect/descriptors/integrations-catalog.d.ts +1 -1
  8. package/dist/effect/descriptors/integrations-catalog.js +1 -1
  9. package/dist/effect/descriptors/integrations.d.ts +1 -1
  10. package/dist/effect/descriptors/integrations.js +1 -1
  11. package/dist/effect/descriptors/logs.d.ts +21 -0
  12. package/dist/effect/descriptors/logs.js +23 -0
  13. package/dist/effect/descriptors/whats-app.d.ts +1 -1
  14. package/dist/effect/descriptors/whats-app.js +1 -1
  15. package/dist/effect/events.d.ts +16 -0
  16. package/dist/effect/generated/agents.js +4 -4
  17. package/dist/effect/generated/campaigns.d.ts +18 -6
  18. package/dist/effect/generated/campaigns.js +2 -6
  19. package/dist/effect/generated/email.js +3 -3
  20. package/dist/effect/generated/events.d.ts +48 -0
  21. package/dist/effect/generated/events.js +1 -1
  22. package/dist/effect/generated/index.d.ts +3 -1
  23. package/dist/effect/generated/integrations-catalog.d.ts +93 -49
  24. package/dist/effect/generated/integrations-catalog.js +17 -28
  25. package/dist/effect/generated/integrations.d.ts +20 -40
  26. package/dist/effect/generated/integrations.js +9 -13
  27. package/dist/effect/generated/journeys.d.ts +1113 -67
  28. package/dist/effect/generated/journeys.js +14 -8
  29. package/dist/effect/generated/logs.d.ts +2323 -0
  30. package/dist/effect/generated/logs.js +312 -0
  31. package/dist/effect/generated/mailboxes.d.ts +38 -24
  32. package/dist/effect/generated/mailboxes.js +22 -21
  33. package/dist/effect/generated/messages.d.ts +11 -882
  34. package/dist/effect/generated/messages.js +4 -243
  35. package/dist/effect/generated/newsletter-domains.d.ts +61 -13
  36. package/dist/effect/generated/newsletter-domains.js +5 -5
  37. package/dist/effect/generated/newsletter-issues.d.ts +166 -34
  38. package/dist/effect/generated/newsletter-issues.js +12 -12
  39. package/dist/effect/generated/newsletters.d.ts +76 -16
  40. package/dist/effect/generated/newsletters.js +6 -6
  41. package/dist/effect/generated/organizations.js +1 -1
  42. package/dist/effect/generated/scheduled-messages.d.ts +36 -0
  43. package/dist/effect/generated/scheduled-messages.js +1 -1
  44. package/dist/effect/generated/shared.d.ts +1706 -442
  45. package/dist/effect/generated/shared.js +370 -93
  46. package/dist/effect/generated/subscriptions.d.ts +4 -4
  47. package/dist/effect/generated/subscriptions.js +2 -6
  48. package/dist/effect/generated/template-registrations.d.ts +46 -10
  49. package/dist/effect/generated/template-registrations.js +4 -4
  50. package/dist/effect/generated/templates.js +2 -2
  51. package/dist/effect/generated/whats-app-flows.d.ts +173 -35
  52. package/dist/effect/generated/whats-app-flows.js +19 -17
  53. package/dist/effect/generated/whats-app-setup-links.d.ts +61 -13
  54. package/dist/effect/generated/whats-app-setup-links.js +5 -5
  55. package/dist/effect/generated/whats-app.d.ts +187 -65
  56. package/dist/effect/generated/whats-app.js +18 -24
  57. package/dist/effect/generated-metadata.d.ts +15 -3
  58. package/dist/effect/generated-metadata.js +375 -349
  59. package/dist/effect/index.d.ts +1 -0
  60. package/dist/effect/index.js +2 -1
  61. package/dist/effect/integrations-catalog.d.ts +92 -4
  62. package/dist/effect/integrations.d.ts +40 -8
  63. package/dist/effect/internal/client.js +25 -3
  64. package/dist/effect/internal/log-events.d.ts +19 -0
  65. package/dist/effect/internal/log-events.js +53 -0
  66. package/dist/effect/internal/mailbox-events.d.ts +6 -2
  67. package/dist/effect/internal/mailbox-events.js +4 -3
  68. package/dist/effect/journeys.d.ts +212 -146
  69. package/dist/effect/logs.d.ts +149 -0
  70. package/dist/effect/logs.js +18 -0
  71. package/dist/effect/mailboxes.d.ts +158 -150
  72. package/dist/effect/mailboxes.js +1 -1
  73. package/dist/effect/newsletter-domains.d.ts +2 -2
  74. package/dist/effect/scheduled-messages.d.ts +66 -0
  75. package/dist/effect/whatsapp-flows.d.ts +30 -0
  76. package/dist/effect/whatsapp-setup-links.d.ts +2 -2
  77. package/dist/effect/whatsapp.d.ts +73 -3
  78. package/dist/mailbox-events.d.ts +50 -3
  79. package/dist/mailbox-events.js +38 -19
  80. package/dist/package.js +1 -1
  81. package/dist/promises/client.d.ts +3 -1
  82. package/dist/promises/client.js +3 -1
  83. package/dist/promises/errors.gen.d.ts +2 -0
  84. package/dist/promises/errors.gen.js +137 -34
  85. package/dist/promises/types.gen.d.ts +1 -1
  86. package/dist/request-id.d.ts +3 -0
  87. package/dist/request-id.js +7 -0
  88. package/dist/service-map.d.ts +14 -3
  89. package/package.json +6 -2
@@ -0,0 +1,312 @@
1
+ import { AbsoluteInstant } from "../runtime.js";
2
+ import { ApiKeyId, ApiKeySecurityMiddleware, DeliveryErrorDetails, ForbiddenError, GatewayTimeoutError, InternalError, MailboxId, MalformedRequestError, MessageContent, MessageId, ResourceNotFoundError, SubmissionClient, UnauthorizedError, UserId, ValidationError } from "./shared.js";
3
+ import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
4
+ import * as Schema from "effect/Schema";
5
+ // src/effect/generated/logs.ts
6
+ const LogSender = /* @__PURE__ */ (() => Schema.Struct({
7
+ address: Schema.String,
8
+ name: Schema.Union([Schema.String, Schema.Null])
9
+ }).annotate({ identifier: "LogSender" }))();
10
+ const LogCampaign = /* @__PURE__ */ (() => Schema.Struct({
11
+ runId: Schema.String,
12
+ name: Schema.String
13
+ }).annotate({ identifier: "LogCampaign" }))();
14
+ const LogApiRequest = /* @__PURE__ */ (() => Schema.Struct({
15
+ requestId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
16
+ method: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
17
+ endpoint: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
18
+ headers: Schema.optionalKey(Schema.Union([Schema.Record(Schema.String, Schema.String), Schema.Null])),
19
+ query: Schema.optionalKey(Schema.Union([Schema.Record(Schema.String, Schema.String), Schema.Null])),
20
+ ipAddress: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
21
+ userAgent: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
22
+ }).annotate({ identifier: "LogApiRequest" }))();
23
+ const LogStatusTimeline = /* @__PURE__ */ (() => Schema.Struct({
24
+ availability: Schema.Union([Schema.Literal("recorded"), Schema.Literal("unavailable")]),
25
+ entries: Schema.Array(Schema.Struct({
26
+ status: Schema.String,
27
+ at: Schema.String,
28
+ reason: Schema.Union([Schema.String, Schema.Null]),
29
+ recipientId: Schema.Union([Schema.String, Schema.Null])
30
+ }))
31
+ }).annotate({ identifier: "LogStatusTimeline" }))();
32
+ const LogUser = /* @__PURE__ */ (() => Schema.Struct({
33
+ id: UserId,
34
+ email: Schema.String,
35
+ name: Schema.String
36
+ }).annotate({ identifier: "LogUser" }))();
37
+ const LogCredential = /* @__PURE__ */ (() => Schema.Union([
38
+ Schema.Struct({
39
+ kind: Schema.Literal("api_key"),
40
+ apiKeyId: Schema.Union([ApiKeyId, Schema.Null]),
41
+ name: Schema.Union([Schema.String, Schema.Null])
42
+ }),
43
+ Schema.Struct({
44
+ kind: Schema.Literal("oauth"),
45
+ clientId: Schema.Union([Schema.String, Schema.Null]),
46
+ name: Schema.Union([Schema.String, Schema.Null])
47
+ }),
48
+ Schema.Struct({ kind: Schema.Literal("session") })
49
+ ]).annotate({ identifier: "LogCredential" }))();
50
+ const LogSubmission = /* @__PURE__ */ (() => Schema.Struct({
51
+ origin: Schema.Union([
52
+ Schema.Literal("direct"),
53
+ Schema.Literal("campaign"),
54
+ Schema.Literal("scheduled"),
55
+ Schema.Literal("mailbox"),
56
+ Schema.Literal("forwarding"),
57
+ Schema.Literal("journey"),
58
+ Schema.Literal("businessApp")
59
+ ]),
60
+ transport: Schema.Union([Schema.Union([Schema.Literal("http"), Schema.Literal("smtp")]), Schema.Null]),
61
+ credential: Schema.Union([LogCredential, Schema.Null]),
62
+ user: Schema.optionalKey(Schema.Union([LogUser, Schema.Null]).annotate({ description: "The acting user, or null when unavailable. Present only for callers authenticated with a member session or a member-authorized OAuth token." })),
63
+ client: Schema.Union([SubmissionClient, Schema.Null])
64
+ }).annotate({ identifier: "LogSubmission" }))();
65
+ const LogLine = /* @__PURE__ */ (() => Schema.Struct({
66
+ id: Schema.String,
67
+ cursor: Schema.String,
68
+ timestamp: Schema.String,
69
+ event: Schema.Union([
70
+ Schema.Literal("accepted"),
71
+ Schema.Literal("waiting"),
72
+ Schema.Literal("received"),
73
+ Schema.Literal("rejected"),
74
+ Schema.Literal("created"),
75
+ Schema.Literal("queued"),
76
+ Schema.Literal("processing"),
77
+ Schema.Literal("sent"),
78
+ Schema.Literal("delivered"),
79
+ Schema.Literal("read"),
80
+ Schema.Literal("failed"),
81
+ Schema.Literal("bounced"),
82
+ Schema.Literal("complained"),
83
+ Schema.Literal("replied"),
84
+ Schema.Literal("forwarded"),
85
+ Schema.Literal("deleted"),
86
+ Schema.Literal("archived"),
87
+ Schema.Literal("marked_spam"),
88
+ Schema.Literal("agent_processing_started"),
89
+ Schema.Literal("agent_processing_completed"),
90
+ Schema.Literal("agent_handoff"),
91
+ Schema.Literal("agent_escalation"),
92
+ Schema.Literal("opened"),
93
+ Schema.Literal("clicked"),
94
+ Schema.Literal("unsubscribed"),
95
+ Schema.Literal("whatsapp_read"),
96
+ Schema.Literal("whatsapp_deleted"),
97
+ Schema.Literal("retry_scheduled"),
98
+ Schema.Literal("retry_attempted"),
99
+ Schema.Literal("cost_calculated")
100
+ ]),
101
+ messageId: Schema.Union([MessageId, Schema.Null]),
102
+ channel: Schema.Union([Schema.Union([
103
+ Schema.Literal("sms"),
104
+ Schema.Literal("whatsapp"),
105
+ Schema.Literal("email")
106
+ ]), Schema.Null]),
107
+ direction: Schema.Union([Schema.Literal("outbound"), Schema.Literal("inbound")]),
108
+ origin: Schema.Union([Schema.Union([
109
+ Schema.Literal("direct"),
110
+ Schema.Literal("campaign"),
111
+ Schema.Literal("scheduled"),
112
+ Schema.Literal("mailbox"),
113
+ Schema.Literal("forwarding"),
114
+ Schema.Literal("journey"),
115
+ Schema.Literal("businessApp")
116
+ ]), Schema.Null]),
117
+ from: Schema.Union([LogSender, Schema.Null]),
118
+ recipient: Schema.Union([Schema.String, Schema.Null]),
119
+ subject: Schema.Union([Schema.String, Schema.Null]),
120
+ submission: Schema.Union([LogSubmission, Schema.Null]),
121
+ requestId: Schema.Union([Schema.String, Schema.Null]),
122
+ reason: Schema.Union([Schema.String, Schema.Null]),
123
+ errorTag: Schema.Union([Schema.String, Schema.Null])
124
+ }).annotate({ identifier: "LogLine" }))();
125
+ const MessageLogPage = /* @__PURE__ */ (() => Schema.Struct({
126
+ items: Schema.Array(LogLine),
127
+ nextCursor: Schema.Union([Schema.String, Schema.Null])
128
+ }).annotate({ identifier: "MessageLogPage" }))();
129
+ const RejectedLogDetail = /* @__PURE__ */ (() => Schema.Struct({
130
+ kind: Schema.Literal("rejected"),
131
+ line: LogLine,
132
+ apiRequest: Schema.Union([LogApiRequest, Schema.Null]),
133
+ requestBody: Schema.Union([Schema.String, Schema.Null]),
134
+ responseBody: Schema.Union([Schema.String, Schema.Null])
135
+ }).annotate({ identifier: "RejectedLogDetail" }))();
136
+ const MessageLogDetail = /* @__PURE__ */ (() => Schema.Struct({
137
+ kind: Schema.Literal("message"),
138
+ requestBody: Schema.Union([Schema.String, Schema.Null]),
139
+ responseBody: Schema.Union([Schema.String, Schema.Null]),
140
+ deliveries: Schema.Array(Schema.Struct({
141
+ scheduling: Schema.Union([Schema.Struct({
142
+ dueAt: Schema.String,
143
+ expiresAt: Schema.String,
144
+ waitReason: Schema.Union([Schema.Union([
145
+ Schema.Literal("rate"),
146
+ Schema.Literal("daily-quota"),
147
+ Schema.Literal("domain-health"),
148
+ Schema.Literal("sending-paused"),
149
+ Schema.Literal("upstream-unavailable"),
150
+ Schema.Literal("retry"),
151
+ Schema.Literal("campaign-paused"),
152
+ Schema.Literal("domain-warming"),
153
+ Schema.Literal("onboarding-review"),
154
+ Schema.Literal("content-review"),
155
+ Schema.Literal("screening-unavailable")
156
+ ]), Schema.Null]),
157
+ reviewExpectedAt: Schema.Union([Schema.String, Schema.Null])
158
+ }), Schema.Null]),
159
+ id: Schema.String,
160
+ messageId: Schema.String,
161
+ recipientId: Schema.Union([Schema.String, Schema.Null]),
162
+ channel: Schema.Union([
163
+ Schema.Literal("sms"),
164
+ Schema.Literal("whatsapp"),
165
+ Schema.Literal("email")
166
+ ]),
167
+ status: Schema.Union([
168
+ Schema.Literal("pending"),
169
+ Schema.Literal("scheduled"),
170
+ Schema.Literal("queued"),
171
+ Schema.Literal("processing"),
172
+ Schema.Literal("sent"),
173
+ Schema.Literal("delivered"),
174
+ Schema.Literal("read"),
175
+ Schema.Literal("failed"),
176
+ Schema.Literal("bounced"),
177
+ Schema.Literal("complained")
178
+ ]),
179
+ attemptCount: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })),
180
+ maxAttempts: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })),
181
+ queuedAt: Schema.Union([Schema.String, Schema.Null]),
182
+ claimedAt: Schema.Union([Schema.String, Schema.Null]),
183
+ lastAttemptAt: Schema.Union([Schema.String, Schema.Null]),
184
+ nextRetryAt: Schema.Union([Schema.String, Schema.Null]),
185
+ sentAt: Schema.Union([Schema.String, Schema.Null]),
186
+ deliveredAt: Schema.Union([Schema.String, Schema.Null]),
187
+ readAt: Schema.Union([Schema.String, Schema.Null]),
188
+ failedAt: Schema.Union([Schema.String, Schema.Null]),
189
+ terminalAt: Schema.Union([Schema.String, Schema.Null]),
190
+ errorCode: Schema.Union([Schema.String, Schema.Null]),
191
+ errorMessage: Schema.Union([Schema.String, Schema.Null]),
192
+ errorDetails: Schema.Union([DeliveryErrorDetails, Schema.Null]),
193
+ cost: Schema.String,
194
+ currency: Schema.String,
195
+ idempotencyKey: Schema.Union([Schema.String, Schema.Null]),
196
+ createdAt: Schema.String,
197
+ updatedAt: Schema.String
198
+ })),
199
+ messageId: MessageId,
200
+ channel: Schema.Union([
201
+ Schema.Literal("sms"),
202
+ Schema.Literal("whatsapp"),
203
+ Schema.Literal("email")
204
+ ]),
205
+ direction: Schema.Union([Schema.Literal("outbound"), Schema.Literal("inbound")]),
206
+ status: Schema.Union([
207
+ Schema.Literal("pending"),
208
+ Schema.Literal("scheduled"),
209
+ Schema.Literal("queued"),
210
+ Schema.Literal("processing"),
211
+ Schema.Literal("sent"),
212
+ Schema.Literal("delivered"),
213
+ Schema.Literal("read"),
214
+ Schema.Literal("failed"),
215
+ Schema.Literal("bounced"),
216
+ Schema.Literal("complained")
217
+ ]),
218
+ recipients: Schema.Array(Schema.Struct({
219
+ id: Schema.String,
220
+ address: Schema.String
221
+ })),
222
+ recipientCount: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
223
+ from: Schema.Union([LogSender, Schema.Null]),
224
+ submission: Schema.Union([LogSubmission, Schema.Null]),
225
+ subject: Schema.Union([Schema.String, Schema.Null]),
226
+ acceptedAt: Schema.Union([Schema.String, Schema.Null]),
227
+ createdAt: Schema.String,
228
+ updatedAt: Schema.String,
229
+ campaign: Schema.Union([LogCampaign, Schema.Null]),
230
+ content: MessageContent,
231
+ apiRequest: Schema.Union([LogApiRequest, Schema.Null]),
232
+ statusTimeline: LogStatusTimeline
233
+ }).annotate({ identifier: "MessageLogDetail" }))();
234
+ const LogDetail = /* @__PURE__ */ (() => Schema.Union([MessageLogDetail, RejectedLogDetail]).annotate({ identifier: "LogDetail" }))();
235
+ const LogsListQuery = /* @__PURE__ */ (() => Schema.Struct({
236
+ limit: Schema.optionalKey(Schema.Union([Schema.Finite.annotate({ description: "Items per page, at most 100." }).check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isLessThanOrEqualTo(100).annotate({ expected: "a value less than or equal to 100" })).check(Schema.isGreaterThan(0).annotate({ expected: "a value greater than 0" })), Schema.Null])),
237
+ cursor: Schema.optionalKey(Schema.String),
238
+ after: Schema.optionalKey(Schema.String),
239
+ orderBy: Schema.optionalKey(Schema.Union([Schema.Literal("timestamp"), Schema.Literal("recorded")])),
240
+ order: Schema.optionalKey(Schema.Union([Schema.Literal("asc"), Schema.Literal("desc")])),
241
+ since: Schema.optionalKey(AbsoluteInstant),
242
+ until: Schema.optionalKey(AbsoluteInstant),
243
+ status: Schema.optionalKey(Schema.String),
244
+ event: Schema.optionalKey(Schema.String),
245
+ channel: Schema.optionalKey(Schema.Union([
246
+ Schema.Literal("sms"),
247
+ Schema.Literal("whatsapp"),
248
+ Schema.Literal("email")
249
+ ])),
250
+ direction: Schema.optionalKey(Schema.Union([Schema.Literal("outbound"), Schema.Literal("inbound")])),
251
+ origin: Schema.optionalKey(Schema.Union([
252
+ Schema.Literal("direct"),
253
+ Schema.Literal("campaign"),
254
+ Schema.Literal("scheduled"),
255
+ Schema.Literal("mailbox"),
256
+ Schema.Literal("forwarding"),
257
+ Schema.Literal("journey"),
258
+ Schema.Literal("businessApp")
259
+ ])),
260
+ credential: Schema.optionalKey(Schema.String),
261
+ from: Schema.optionalKey(Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" }))),
262
+ messageId: Schema.optionalKey(MessageId),
263
+ mailboxId: Schema.optionalKey(MailboxId),
264
+ requestId: Schema.optionalKey(Schema.String.check(Schema.isPattern(new globalThis.RegExp("^req_[a-zA-Z0-9_-]+$")).annotate({ expected: "a string matching the RegExp ^req_[a-zA-Z0-9_-]+$" })))
265
+ }))();
266
+ const LogsList200 = MessageLogPage;
267
+ const LogsList400 = MalformedRequestError;
268
+ const LogsList401 = UnauthorizedError;
269
+ const LogsList403 = ForbiddenError;
270
+ const LogsList422 = ValidationError;
271
+ const LogsList500 = InternalError;
272
+ const LogsList504 = GatewayTimeoutError;
273
+ const LogsGetPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: Schema.Union([
274
+ MessageId,
275
+ Schema.String.check(Schema.isPattern(new globalThis.RegExp("^rej_[a-zA-Z0-9]+$")).annotate({ expected: "a string matching the RegExp ^rej_[a-zA-Z0-9]+$" })),
276
+ Schema.String.check(Schema.isPattern(new globalThis.RegExp("^req_[a-zA-Z0-9_-]+$")).annotate({ expected: "a string matching the RegExp ^req_[a-zA-Z0-9_-]+$" }))
277
+ ]) }))();
278
+ const LogsGet200 = LogDetail;
279
+ const LogsGet400 = MalformedRequestError;
280
+ const LogsGet401 = UnauthorizedError;
281
+ const LogsGet403 = ForbiddenError;
282
+ const LogsGet404 = ResourceNotFoundError;
283
+ const LogsGet422 = ValidationError;
284
+ const LogsGet500 = InternalError;
285
+ const LogsGet504 = GatewayTimeoutError;
286
+ var LogsGroup = class extends HttpApiGroup.make("Logs").add(HttpApiEndpoint.get("logsList", "/v1/logs", {
287
+ query: LogsListQuery,
288
+ success: LogsList200,
289
+ error: [
290
+ LogsList400.pipe(HttpApiSchema.status(400)),
291
+ LogsList401.pipe(HttpApiSchema.status(401)),
292
+ LogsList403.pipe(HttpApiSchema.status(403)),
293
+ LogsList422.pipe(HttpApiSchema.status(422)),
294
+ LogsList500,
295
+ LogsList504.pipe(HttpApiSchema.status(504))
296
+ ]
297
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "logs.list").annotate(OpenApi.Summary, "List message log events").annotate(OpenApi.Description, "Lists the organization's message events in its plan's log window. The default sort is by event timestamp. Use orderBy=recorded and order=asc to poll events in ingestion order, including events with older timestamps. Pass the last event's cursor as after. Keep the same sort and direction when paging."), HttpApiEndpoint.get("logsGet", "/v1/logs/:id", {
298
+ params: LogsGetPathParams,
299
+ success: LogsGet200,
300
+ error: [
301
+ LogsGet400.pipe(HttpApiSchema.status(400)),
302
+ LogsGet401.pipe(HttpApiSchema.status(401)),
303
+ LogsGet403.pipe(HttpApiSchema.status(403)),
304
+ LogsGet404.pipe(HttpApiSchema.status(404)),
305
+ LogsGet422.pipe(HttpApiSchema.status(422)),
306
+ LogsGet500,
307
+ LogsGet504.pipe(HttpApiSchema.status(504))
308
+ ]
309
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "logs.get").annotate(OpenApi.Summary, "Get message log detail").annotate(OpenApi.Description, "Returns the message and its event timeline, or a rejected submission, by message, rejection, or request ID.")).annotate(OpenApi.Description, "Message events and rejected submissions") {};
310
+ export { LogApiRequest, LogCampaign, LogCredential, LogDetail, LogLine, LogSender, LogStatusTimeline, LogSubmission, LogUser, LogsGet200, LogsGet400, LogsGet401, LogsGet403, LogsGet404, LogsGet422, LogsGet500, LogsGet504, LogsGetPathParams, LogsGroup, LogsList200, LogsList400, LogsList401, LogsList403, LogsList422, LogsList500, LogsList504, LogsListQuery, MessageLogDetail, MessageLogPage, RejectedLogDetail };
311
+
312
+ //# sourceMappingURL=logs.js.map
@@ -827,6 +827,7 @@ export type MailboxChatMessage = {
827
827
  readonly template: MailboxChatMessageTemplate | null;
828
828
  readonly summary: string | null;
829
829
  readonly contextMessageId: MessageId | null;
830
+ readonly flowSubmissionHandledBy?: "app";
830
831
  };
831
832
  export declare const MailboxChatMessage: Schema.Struct<{
832
833
  readonly id: Schema.brand<Schema.String, "MessageId">;
@@ -867,6 +868,7 @@ export declare const MailboxChatMessage: Schema.Struct<{
867
868
  }>, Schema.Null]>;
868
869
  readonly summary: Schema.Union<readonly [Schema.String, Schema.Null]>;
869
870
  readonly contextMessageId: Schema.Union<readonly [Schema.brand<Schema.String, "MessageId">, Schema.Null]>;
871
+ readonly flowSubmissionHandledBy: Schema.optionalKey<Schema.Literal<"app">>;
870
872
  }>;
871
873
  export type MailboxThreadSummary = {
872
874
  readonly id: MailboxThreadId;
@@ -1933,6 +1935,7 @@ export declare const MailboxMessage: Schema.Union<readonly [Schema.Struct<{
1933
1935
  }>, Schema.Null]>;
1934
1936
  readonly summary: Schema.Union<readonly [Schema.String, Schema.Null]>;
1935
1937
  readonly contextMessageId: Schema.Union<readonly [Schema.brand<Schema.String, "MessageId">, Schema.Null]>;
1938
+ readonly flowSubmissionHandledBy: Schema.optionalKey<Schema.Literal<"app">>;
1936
1939
  }>]>;
1937
1940
  export type MailboxThreadPage = {
1938
1941
  readonly items: ReadonlyArray<MailboxThreadSummary>;
@@ -2453,6 +2456,7 @@ export declare const MailboxThreadContentPage: Schema.Struct<{
2453
2456
  }>, Schema.Null]>;
2454
2457
  readonly summary: Schema.Union<readonly [Schema.String, Schema.Null]>;
2455
2458
  readonly contextMessageId: Schema.Union<readonly [Schema.brand<Schema.String, "MessageId">, Schema.Null]>;
2459
+ readonly flowSubmissionHandledBy: Schema.optionalKey<Schema.Literal<"app">>;
2456
2460
  }>]>>;
2457
2461
  readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
2458
2462
  }>;
@@ -5350,8 +5354,8 @@ export type MailboxesApproveAction401 = UnauthorizedError;
5350
5354
  export declare const MailboxesApproveAction401: typeof UnauthorizedError;
5351
5355
  export type MailboxesApproveAction402 = PaymentRequiredError;
5352
5356
  export declare const MailboxesApproveAction402: typeof PaymentRequiredError;
5353
- export type MailboxesApproveAction403 = FlagDisabledError | MailboxSendRefusedError | OnboardingReviewRequiredError | ForbiddenError;
5354
- export declare const MailboxesApproveAction403: Schema.Union<readonly [typeof FlagDisabledError, typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError]>;
5357
+ export type MailboxesApproveAction403 = MailboxSendRefusedError | OnboardingReviewRequiredError | ForbiddenError | FlagDisabledError;
5358
+ export declare const MailboxesApproveAction403: Schema.Union<readonly [typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError, typeof FlagDisabledError]>;
5355
5359
  export type MailboxesApproveAction404 = ResourceNotFoundError;
5356
5360
  export declare const MailboxesApproveAction404: typeof ResourceNotFoundError;
5357
5361
  export type MailboxesApproveAction409 = MailboxSendConflictError | ConflictError;
@@ -5562,8 +5566,8 @@ export type MailboxesCancelAction401 = UnauthorizedError;
5562
5566
  export declare const MailboxesCancelAction401: typeof UnauthorizedError;
5563
5567
  export type MailboxesCancelAction402 = PaymentRequiredError;
5564
5568
  export declare const MailboxesCancelAction402: typeof PaymentRequiredError;
5565
- export type MailboxesCancelAction403 = FlagDisabledError | MailboxSendRefusedError | OnboardingReviewRequiredError | ForbiddenError;
5566
- export declare const MailboxesCancelAction403: Schema.Union<readonly [typeof FlagDisabledError, typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError]>;
5569
+ export type MailboxesCancelAction403 = MailboxSendRefusedError | OnboardingReviewRequiredError | ForbiddenError;
5570
+ export declare const MailboxesCancelAction403: Schema.Union<readonly [typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError]>;
5567
5571
  export type MailboxesCancelAction404 = ResourceNotFoundError;
5568
5572
  export declare const MailboxesCancelAction404: typeof ResourceNotFoundError;
5569
5573
  export type MailboxesCancelAction409 = MailboxSendConflictError | ConflictError;
@@ -6080,8 +6084,8 @@ export type MailboxesRetryAction401 = UnauthorizedError;
6080
6084
  export declare const MailboxesRetryAction401: typeof UnauthorizedError;
6081
6085
  export type MailboxesRetryAction402 = PaymentRequiredError;
6082
6086
  export declare const MailboxesRetryAction402: typeof PaymentRequiredError;
6083
- export type MailboxesRetryAction403 = FlagDisabledError | MailboxSendRefusedError | OnboardingReviewRequiredError | ForbiddenError;
6084
- export declare const MailboxesRetryAction403: Schema.Union<readonly [typeof FlagDisabledError, typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError]>;
6087
+ export type MailboxesRetryAction403 = MailboxSendRefusedError | OnboardingReviewRequiredError | ForbiddenError | FlagDisabledError;
6088
+ export declare const MailboxesRetryAction403: Schema.Union<readonly [typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError, typeof FlagDisabledError]>;
6085
6089
  export type MailboxesRetryAction404 = ResourceNotFoundError;
6086
6090
  export declare const MailboxesRetryAction404: typeof ResourceNotFoundError;
6087
6091
  export type MailboxesRetryAction409 = MailboxSendConflictError | ConflictError;
@@ -6853,8 +6857,8 @@ export type MailboxesSendDraft401 = UnauthorizedError;
6853
6857
  export declare const MailboxesSendDraft401: typeof UnauthorizedError;
6854
6858
  export type MailboxesSendDraft402 = PaymentRequiredError;
6855
6859
  export declare const MailboxesSendDraft402: typeof PaymentRequiredError;
6856
- export type MailboxesSendDraft403 = FlagDisabledError | MailboxSendRefusedError | OnboardingReviewRequiredError | ForbiddenError;
6857
- export declare const MailboxesSendDraft403: Schema.Union<readonly [typeof FlagDisabledError, typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError]>;
6860
+ export type MailboxesSendDraft403 = MailboxSendRefusedError | OnboardingReviewRequiredError | ForbiddenError | FlagDisabledError;
6861
+ export declare const MailboxesSendDraft403: Schema.Union<readonly [typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError, typeof FlagDisabledError]>;
6858
6862
  export type MailboxesSendDraft404 = ResourceNotFoundError;
6859
6863
  export declare const MailboxesSendDraft404: typeof ResourceNotFoundError;
6860
6864
  export type MailboxesSendDraft409 = MailboxSendConflictError | ConflictError;
@@ -7971,8 +7975,8 @@ export type MailboxesSendMessage401 = UnauthorizedError;
7971
7975
  export declare const MailboxesSendMessage401: typeof UnauthorizedError;
7972
7976
  export type MailboxesSendMessage402 = PaymentRequiredError;
7973
7977
  export declare const MailboxesSendMessage402: typeof PaymentRequiredError;
7974
- export type MailboxesSendMessage403 = FlagDisabledError | MailboxSendRefusedError | OnboardingReviewRequiredError | ForbiddenError;
7975
- export declare const MailboxesSendMessage403: Schema.Union<readonly [typeof FlagDisabledError, typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError]>;
7978
+ export type MailboxesSendMessage403 = MailboxSendRefusedError | OnboardingReviewRequiredError | ForbiddenError | FlagDisabledError;
7979
+ export declare const MailboxesSendMessage403: Schema.Union<readonly [typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError, typeof FlagDisabledError]>;
7976
7980
  export type MailboxesSendMessage404 = ResourceNotFoundError;
7977
7981
  export declare const MailboxesSendMessage404: typeof ResourceNotFoundError;
7978
7982
  export type MailboxesSendMessage409 = MailboxSendConflictError | ConflictError;
@@ -8094,6 +8098,7 @@ export declare const MailboxesGetMessage200: Schema.Union<readonly [Schema.Struc
8094
8098
  }>, Schema.Null]>;
8095
8099
  readonly summary: Schema.Union<readonly [Schema.String, Schema.Null]>;
8096
8100
  readonly contextMessageId: Schema.Union<readonly [Schema.brand<Schema.String, "MessageId">, Schema.Null]>;
8101
+ readonly flowSubmissionHandledBy: Schema.optionalKey<Schema.Literal<"app">>;
8097
8102
  }>]>;
8098
8103
  export type MailboxesGetMessage400 = MalformedRequestError;
8099
8104
  export declare const MailboxesGetMessage400: typeof MalformedRequestError;
@@ -8394,8 +8399,8 @@ export type MailboxesForward401 = UnauthorizedError;
8394
8399
  export declare const MailboxesForward401: typeof UnauthorizedError;
8395
8400
  export type MailboxesForward402 = PaymentRequiredError;
8396
8401
  export declare const MailboxesForward402: typeof PaymentRequiredError;
8397
- export type MailboxesForward403 = FlagDisabledError | MailboxSendRefusedError | OnboardingReviewRequiredError | ForbiddenError;
8398
- export declare const MailboxesForward403: Schema.Union<readonly [typeof FlagDisabledError, typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError]>;
8402
+ export type MailboxesForward403 = MailboxSendRefusedError | OnboardingReviewRequiredError | ForbiddenError;
8403
+ export declare const MailboxesForward403: Schema.Union<readonly [typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError]>;
8399
8404
  export type MailboxesForward404 = ResourceNotFoundError;
8400
8405
  export declare const MailboxesForward404: typeof ResourceNotFoundError;
8401
8406
  export type MailboxesForward409 = MailboxSendConflictError | ConflictError;
@@ -8659,8 +8664,8 @@ export type MailboxesReply401 = UnauthorizedError;
8659
8664
  export declare const MailboxesReply401: typeof UnauthorizedError;
8660
8665
  export type MailboxesReply402 = PaymentRequiredError;
8661
8666
  export declare const MailboxesReply402: typeof PaymentRequiredError;
8662
- export type MailboxesReply403 = FlagDisabledError | MailboxSendRefusedError | OnboardingReviewRequiredError | ForbiddenError;
8663
- export declare const MailboxesReply403: Schema.Union<readonly [typeof FlagDisabledError, typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError]>;
8667
+ export type MailboxesReply403 = MailboxSendRefusedError | OnboardingReviewRequiredError | ForbiddenError | FlagDisabledError;
8668
+ export declare const MailboxesReply403: Schema.Union<readonly [typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError, typeof FlagDisabledError]>;
8664
8669
  export type MailboxesReply404 = ResourceNotFoundError;
8665
8670
  export declare const MailboxesReply404: typeof ResourceNotFoundError;
8666
8671
  export type MailboxesReply409 = MailboxSendConflictError | ConflictError;
@@ -8897,8 +8902,8 @@ export type MailboxesReplyAll401 = UnauthorizedError;
8897
8902
  export declare const MailboxesReplyAll401: typeof UnauthorizedError;
8898
8903
  export type MailboxesReplyAll402 = PaymentRequiredError;
8899
8904
  export declare const MailboxesReplyAll402: typeof PaymentRequiredError;
8900
- export type MailboxesReplyAll403 = FlagDisabledError | MailboxSendRefusedError | OnboardingReviewRequiredError | ForbiddenError;
8901
- export declare const MailboxesReplyAll403: Schema.Union<readonly [typeof FlagDisabledError, typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError]>;
8905
+ export type MailboxesReplyAll403 = MailboxSendRefusedError | OnboardingReviewRequiredError | ForbiddenError | FlagDisabledError;
8906
+ export declare const MailboxesReplyAll403: Schema.Union<readonly [typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError, typeof FlagDisabledError]>;
8902
8907
  export type MailboxesReplyAll404 = ResourceNotFoundError;
8903
8908
  export declare const MailboxesReplyAll404: typeof ResourceNotFoundError;
8904
8909
  export type MailboxesReplyAll409 = MailboxSendConflictError | ConflictError;
@@ -9735,6 +9740,7 @@ export type MailboxesListThreadsQuery = {
9735
9740
  readonly unread?: boolean | null;
9736
9741
  readonly starred?: boolean | null;
9737
9742
  readonly snoozed?: boolean | null;
9743
+ readonly order?: "wake";
9738
9744
  };
9739
9745
  export declare const MailboxesListThreadsQuery: Schema.Struct<{
9740
9746
  readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
@@ -9751,6 +9757,7 @@ export declare const MailboxesListThreadsQuery: Schema.Struct<{
9751
9757
  readonly unread: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
9752
9758
  readonly starred: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
9753
9759
  readonly snoozed: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
9760
+ readonly order: Schema.optionalKey<Schema.Literal<"wake">>;
9754
9761
  }>;
9755
9762
  export type MailboxesListThreads200 = MailboxThreadPage;
9756
9763
  export declare const MailboxesListThreads200: Schema.Struct<{
@@ -10083,6 +10090,7 @@ export declare const MailboxesGetThreadContent200: Schema.Struct<{
10083
10090
  }>, Schema.Null]>;
10084
10091
  readonly summary: Schema.Union<readonly [Schema.String, Schema.Null]>;
10085
10092
  readonly contextMessageId: Schema.Union<readonly [Schema.brand<Schema.String, "MessageId">, Schema.Null]>;
10093
+ readonly flowSubmissionHandledBy: Schema.optionalKey<Schema.Literal<"app">>;
10086
10094
  }>]>>;
10087
10095
  readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
10088
10096
  }>;
@@ -10981,6 +10989,7 @@ export type MailboxesListOrganizationThreadsQuery = {
10981
10989
  readonly unread?: boolean | null;
10982
10990
  readonly starred?: boolean | null;
10983
10991
  readonly snoozed?: boolean | null;
10992
+ readonly order?: "wake";
10984
10993
  readonly mailboxId?: MailboxId | ReadonlyArray<MailboxId>;
10985
10994
  readonly kind?: "personal" | "shared";
10986
10995
  readonly conversation?: ConversationId;
@@ -11000,6 +11009,7 @@ export declare const MailboxesListOrganizationThreadsQuery: Schema.Struct<{
11000
11009
  readonly unread: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
11001
11010
  readonly starred: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
11002
11011
  readonly snoozed: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
11012
+ readonly order: Schema.optionalKey<Schema.Literal<"wake">>;
11003
11013
  readonly mailboxId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.$Array<Schema.brand<Schema.String, "MailboxId">>]>>;
11004
11014
  readonly kind: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"personal">, Schema.Literal<"shared">]>>;
11005
11015
  readonly conversation: Schema.optionalKey<Schema.brand<Schema.String, "ConversationId">>;
@@ -11466,7 +11476,7 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
11466
11476
  readonly handoff: Schema.Union<readonly [Schema.Struct<{
11467
11477
  readonly reason: Schema.String;
11468
11478
  }>, Schema.Null]>;
11469
- }>]>>, Schema.toCodecJson<Schema.Union<readonly [typeof WhatsAppServiceWindowClosedError, typeof ValidationError]> | Schema.Union<readonly [typeof MailboxSendConflictError, typeof ConflictError]> | Schema.Union<readonly [typeof FlagDisabledError, typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError]> | Schema.decodeTo<Schema.declareConstructor<BillingProviderError, {
11479
+ }>]>>, Schema.toCodecJson<Schema.Union<readonly [typeof WhatsAppServiceWindowClosedError, typeof ValidationError]> | Schema.Union<readonly [typeof MailboxSendConflictError, typeof ConflictError]> | Schema.Union<readonly [typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError, typeof FlagDisabledError]> | Schema.decodeTo<Schema.declareConstructor<BillingProviderError, {
11470
11480
  readonly _tag: "BillingProviderError";
11471
11481
  readonly message: string;
11472
11482
  }, readonly [Schema.Struct<{
@@ -11785,7 +11795,7 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
11785
11795
  }>, Schema.Null]>;
11786
11796
  readonly createdAt: Schema.String;
11787
11797
  readonly updatedAt: Schema.String;
11788
- }>>, Schema.toCodecJson<Schema.Union<readonly [typeof WhatsAppServiceWindowClosedError, typeof ValidationError]> | Schema.Union<readonly [typeof MailboxSendConflictError, typeof ConflictError]> | Schema.Union<readonly [typeof FlagDisabledError, typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError]> | Schema.decodeTo<Schema.declareConstructor<BillingProviderError, {
11798
+ }>>, Schema.toCodecJson<Schema.Union<readonly [typeof WhatsAppServiceWindowClosedError, typeof ValidationError]> | Schema.Union<readonly [typeof MailboxSendConflictError, typeof ConflictError]> | Schema.Union<readonly [typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError]> | Schema.decodeTo<Schema.declareConstructor<BillingProviderError, {
11789
11799
  readonly _tag: "BillingProviderError";
11790
11800
  readonly message: string;
11791
11801
  }, readonly [Schema.Struct<{
@@ -15181,7 +15191,7 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
15181
15191
  }>, Schema.Null]>;
15182
15192
  readonly createdAt: Schema.String;
15183
15193
  readonly updatedAt: Schema.String;
15184
- }>>, Schema.toCodecJson<Schema.Union<readonly [typeof WhatsAppServiceWindowClosedError, typeof ValidationError]> | Schema.Union<readonly [typeof MailboxSendConflictError, typeof ConflictError]> | Schema.Union<readonly [typeof FlagDisabledError, typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError]> | Schema.decodeTo<Schema.declareConstructor<BillingProviderError, {
15194
+ }>>, Schema.toCodecJson<Schema.Union<readonly [typeof WhatsAppServiceWindowClosedError, typeof ValidationError]> | Schema.Union<readonly [typeof MailboxSendConflictError, typeof ConflictError]> | Schema.Union<readonly [typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError]> | Schema.decodeTo<Schema.declareConstructor<BillingProviderError, {
15185
15195
  readonly _tag: "BillingProviderError";
15186
15196
  readonly message: string;
15187
15197
  }, readonly [Schema.Struct<{
@@ -16314,6 +16324,7 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
16314
16324
  }>, Schema.Null]>;
16315
16325
  readonly summary: Schema.Union<readonly [Schema.String, Schema.Null]>;
16316
16326
  readonly contextMessageId: Schema.Union<readonly [Schema.brand<Schema.String, "MessageId">, Schema.Null]>;
16327
+ readonly flowSubmissionHandledBy: Schema.optionalKey<Schema.Literal<"app">>;
16317
16328
  }>]>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
16318
16329
  readonly _tag: "ForbiddenError";
16319
16330
  readonly message: string;
@@ -17140,6 +17151,7 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
17140
17151
  }>, Schema.Null]>;
17141
17152
  readonly summary: Schema.Union<readonly [Schema.String, Schema.Null]>;
17142
17153
  readonly contextMessageId: Schema.Union<readonly [Schema.brand<Schema.String, "MessageId">, Schema.Null]>;
17154
+ readonly flowSubmissionHandledBy: Schema.optionalKey<Schema.Literal<"app">>;
17143
17155
  }>]>>;
17144
17156
  readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
17145
17157
  }>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
@@ -18664,6 +18676,7 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
18664
18676
  readonly unread: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
18665
18677
  readonly starred: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
18666
18678
  readonly snoozed: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
18679
+ readonly order: Schema.optionalKey<Schema.Literal<"wake">>;
18667
18680
  readonly mailboxId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.$Array<Schema.brand<Schema.String, "MailboxId">>]>>;
18668
18681
  readonly kind: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"personal">, Schema.Literal<"shared">]>>;
18669
18682
  readonly conversation: Schema.optionalKey<Schema.brand<Schema.String, "ConversationId">>;
@@ -19429,6 +19442,7 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
19429
19442
  readonly unread: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
19430
19443
  readonly starred: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
19431
19444
  readonly snoozed: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
19445
+ readonly order: Schema.optionalKey<Schema.Literal<"wake">>;
19432
19446
  }>>, never, never, Schema.toCodecJson<Schema.Struct<{
19433
19447
  readonly items: Schema.$Array<Schema.Struct<{
19434
19448
  readonly id: Schema.brand<Schema.String, "MailboxThreadId">;
@@ -20284,7 +20298,7 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
20284
20298
  }>, Schema.Null]>;
20285
20299
  readonly createdAt: Schema.String;
20286
20300
  readonly updatedAt: Schema.String;
20287
- }>>, Schema.toCodecJson<Schema.Union<readonly [typeof WhatsAppServiceWindowClosedError, typeof ValidationError]> | Schema.Union<readonly [typeof MailboxSendConflictError, typeof ConflictError]> | Schema.Union<readonly [typeof FlagDisabledError, typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError]> | Schema.decodeTo<Schema.declareConstructor<BillingProviderError, {
20301
+ }>>, Schema.toCodecJson<Schema.Union<readonly [typeof WhatsAppServiceWindowClosedError, typeof ValidationError]> | Schema.Union<readonly [typeof MailboxSendConflictError, typeof ConflictError]> | Schema.Union<readonly [typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError, typeof FlagDisabledError]> | Schema.decodeTo<Schema.declareConstructor<BillingProviderError, {
20288
20302
  readonly _tag: "BillingProviderError";
20289
20303
  readonly message: string;
20290
20304
  }, readonly [Schema.Struct<{
@@ -20623,7 +20637,7 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
20623
20637
  }>, Schema.Null]>;
20624
20638
  readonly createdAt: Schema.String;
20625
20639
  readonly updatedAt: Schema.String;
20626
- }>>, Schema.toCodecJson<Schema.Union<readonly [typeof WhatsAppServiceWindowClosedError, typeof ValidationError]> | Schema.Union<readonly [typeof MailboxSendConflictError, typeof ConflictError]> | Schema.Union<readonly [typeof FlagDisabledError, typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError]> | Schema.decodeTo<Schema.declareConstructor<BillingProviderError, {
20640
+ }>>, Schema.toCodecJson<Schema.Union<readonly [typeof WhatsAppServiceWindowClosedError, typeof ValidationError]> | Schema.Union<readonly [typeof MailboxSendConflictError, typeof ConflictError]> | Schema.Union<readonly [typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError, typeof FlagDisabledError]> | Schema.decodeTo<Schema.declareConstructor<BillingProviderError, {
20627
20641
  readonly _tag: "BillingProviderError";
20628
20642
  readonly message: string;
20629
20643
  }, readonly [Schema.Struct<{
@@ -21356,7 +21370,7 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
21356
21370
  }>, Schema.Null]>;
21357
21371
  readonly createdAt: Schema.String;
21358
21372
  readonly updatedAt: Schema.String;
21359
- }>>, Schema.toCodecJson<Schema.Union<readonly [typeof WhatsAppServiceWindowClosedError, typeof ValidationError]> | Schema.Union<readonly [typeof MailboxSendConflictError, typeof ConflictError]> | Schema.Union<readonly [typeof FlagDisabledError, typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError]> | Schema.decodeTo<Schema.declareConstructor<BillingProviderError, {
21373
+ }>>, Schema.toCodecJson<Schema.Union<readonly [typeof WhatsAppServiceWindowClosedError, typeof ValidationError]> | Schema.Union<readonly [typeof MailboxSendConflictError, typeof ConflictError]> | Schema.Union<readonly [typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError, typeof FlagDisabledError]> | Schema.decodeTo<Schema.declareConstructor<BillingProviderError, {
21360
21374
  readonly _tag: "BillingProviderError";
21361
21375
  readonly message: string;
21362
21376
  }, readonly [Schema.Struct<{
@@ -22076,7 +22090,7 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
22076
22090
  }>, Schema.Null]>;
22077
22091
  readonly createdAt: Schema.String;
22078
22092
  readonly updatedAt: Schema.String;
22079
- }>>, Schema.toCodecJson<Schema.Union<readonly [typeof WhatsAppServiceWindowClosedError, typeof ValidationError]> | Schema.Union<readonly [typeof MailboxSendConflictError, typeof ConflictError]> | Schema.Union<readonly [typeof FlagDisabledError, typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError]> | Schema.decodeTo<Schema.declareConstructor<BillingProviderError, {
22093
+ }>>, Schema.toCodecJson<Schema.Union<readonly [typeof WhatsAppServiceWindowClosedError, typeof ValidationError]> | Schema.Union<readonly [typeof MailboxSendConflictError, typeof ConflictError]> | Schema.Union<readonly [typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError, typeof FlagDisabledError]> | Schema.decodeTo<Schema.declareConstructor<BillingProviderError, {
22080
22094
  readonly _tag: "BillingProviderError";
22081
22095
  readonly message: string;
22082
22096
  }, readonly [Schema.Struct<{
@@ -22418,7 +22432,7 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
22418
22432
  }>, Schema.Null]>;
22419
22433
  readonly createdAt: Schema.String;
22420
22434
  readonly updatedAt: Schema.String;
22421
- }>>, Schema.toCodecJson<Schema.Union<readonly [typeof WhatsAppServiceWindowClosedError, typeof ValidationError]> | Schema.Union<readonly [typeof MailboxSendConflictError, typeof ConflictError]> | Schema.Union<readonly [typeof FlagDisabledError, typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError]> | Schema.decodeTo<Schema.declareConstructor<BillingProviderError, {
22435
+ }>>, Schema.toCodecJson<Schema.Union<readonly [typeof WhatsAppServiceWindowClosedError, typeof ValidationError]> | Schema.Union<readonly [typeof MailboxSendConflictError, typeof ConflictError]> | Schema.Union<readonly [typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError, typeof FlagDisabledError]> | Schema.decodeTo<Schema.declareConstructor<BillingProviderError, {
22422
22436
  readonly _tag: "BillingProviderError";
22423
22437
  readonly message: string;
22424
22438
  }, readonly [Schema.Struct<{