samva 0.51.0 → 0.52.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.
- package/AGENTS.md +5 -2
- package/README.md +1 -0
- package/dist/client/sdk.gen.d.ts +67 -28
- package/dist/client/sdk.gen.js +157 -29
- package/dist/client/types.gen.d.ts +520 -281
- package/dist/effect/campaigns.d.ts +56 -56
- package/dist/effect/descriptors/integrations-catalog.d.ts +1 -1
- package/dist/effect/descriptors/integrations-catalog.js +1 -1
- package/dist/effect/descriptors/integrations.d.ts +1 -1
- package/dist/effect/descriptors/integrations.js +1 -1
- package/dist/effect/descriptors/logs.d.ts +21 -0
- package/dist/effect/descriptors/logs.js +23 -0
- package/dist/effect/descriptors/whats-app.d.ts +1 -1
- package/dist/effect/descriptors/whats-app.js +1 -1
- package/dist/effect/generated/agents.js +4 -4
- package/dist/effect/generated/campaigns.d.ts +18 -6
- package/dist/effect/generated/campaigns.js +2 -6
- package/dist/effect/generated/email.js +3 -3
- package/dist/effect/generated/index.d.ts +3 -1
- package/dist/effect/generated/integrations-catalog.d.ts +93 -49
- package/dist/effect/generated/integrations-catalog.js +17 -28
- package/dist/effect/generated/integrations.d.ts +20 -40
- package/dist/effect/generated/integrations.js +9 -13
- package/dist/effect/generated/journeys.d.ts +61 -13
- package/dist/effect/generated/journeys.js +5 -5
- package/dist/effect/generated/logs.d.ts +2311 -0
- package/dist/effect/generated/logs.js +312 -0
- package/dist/effect/generated/mailboxes.d.ts +30 -24
- package/dist/effect/generated/mailboxes.js +20 -20
- package/dist/effect/generated/messages.d.ts +1 -882
- package/dist/effect/generated/messages.js +4 -243
- package/dist/effect/generated/newsletter-domains.d.ts +61 -13
- package/dist/effect/generated/newsletter-domains.js +5 -5
- package/dist/effect/generated/newsletter-issues.d.ts +166 -34
- package/dist/effect/generated/newsletter-issues.js +12 -12
- package/dist/effect/generated/newsletters.d.ts +76 -16
- package/dist/effect/generated/newsletters.js +6 -6
- package/dist/effect/generated/organizations.js +1 -1
- package/dist/effect/generated/scheduled-messages.js +1 -1
- package/dist/effect/generated/shared.d.ts +1138 -257
- package/dist/effect/generated/shared.js +321 -82
- package/dist/effect/generated/subscriptions.d.ts +4 -4
- package/dist/effect/generated/subscriptions.js +2 -6
- package/dist/effect/generated/template-registrations.d.ts +46 -10
- package/dist/effect/generated/template-registrations.js +4 -4
- package/dist/effect/generated/templates.js +2 -2
- package/dist/effect/generated/whats-app-flows.d.ts +151 -31
- package/dist/effect/generated/whats-app-flows.js +11 -11
- package/dist/effect/generated/whats-app-setup-links.d.ts +61 -13
- package/dist/effect/generated/whats-app-setup-links.js +5 -5
- package/dist/effect/generated/whats-app.d.ts +187 -65
- package/dist/effect/generated/whats-app.js +18 -24
- package/dist/effect/generated-metadata.d.ts +15 -3
- package/dist/effect/generated-metadata.js +375 -349
- package/dist/effect/index.d.ts +1 -0
- package/dist/effect/index.js +2 -1
- package/dist/effect/integrations-catalog.d.ts +92 -4
- package/dist/effect/integrations.d.ts +40 -8
- package/dist/effect/internal/client.js +25 -3
- package/dist/effect/internal/log-events.d.ts +19 -0
- package/dist/effect/internal/log-events.js +53 -0
- package/dist/effect/internal/mailbox-events.d.ts +6 -2
- package/dist/effect/internal/mailbox-events.js +4 -3
- package/dist/effect/journeys.d.ts +148 -148
- package/dist/effect/logs.d.ts +149 -0
- package/dist/effect/logs.js +18 -0
- package/dist/effect/mailboxes.d.ts +156 -150
- package/dist/effect/mailboxes.js +1 -1
- package/dist/effect/newsletter-domains.d.ts +2 -2
- package/dist/effect/whatsapp-setup-links.d.ts +2 -2
- package/dist/effect/whatsapp.d.ts +73 -3
- package/dist/mailbox-events.d.ts +50 -3
- package/dist/mailbox-events.js +38 -19
- package/dist/package.js +1 -1
- package/dist/promises/client.d.ts +3 -1
- package/dist/promises/client.js +3 -1
- package/dist/promises/errors.gen.d.ts +2 -0
- package/dist/promises/errors.gen.js +137 -34
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/request-id.d.ts +3 -0
- package/dist/request-id.js +7 -0
- package/dist/service-map.d.ts +14 -3
- 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
|
|
@@ -5350,8 +5350,8 @@ export type MailboxesApproveAction401 = UnauthorizedError;
|
|
|
5350
5350
|
export declare const MailboxesApproveAction401: typeof UnauthorizedError;
|
|
5351
5351
|
export type MailboxesApproveAction402 = PaymentRequiredError;
|
|
5352
5352
|
export declare const MailboxesApproveAction402: typeof PaymentRequiredError;
|
|
5353
|
-
export type MailboxesApproveAction403 =
|
|
5354
|
-
export declare const MailboxesApproveAction403: Schema.Union<readonly [typeof
|
|
5353
|
+
export type MailboxesApproveAction403 = MailboxSendRefusedError | OnboardingReviewRequiredError | ForbiddenError | FlagDisabledError;
|
|
5354
|
+
export declare const MailboxesApproveAction403: Schema.Union<readonly [typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError, typeof FlagDisabledError]>;
|
|
5355
5355
|
export type MailboxesApproveAction404 = ResourceNotFoundError;
|
|
5356
5356
|
export declare const MailboxesApproveAction404: typeof ResourceNotFoundError;
|
|
5357
5357
|
export type MailboxesApproveAction409 = MailboxSendConflictError | ConflictError;
|
|
@@ -5562,8 +5562,8 @@ export type MailboxesCancelAction401 = UnauthorizedError;
|
|
|
5562
5562
|
export declare const MailboxesCancelAction401: typeof UnauthorizedError;
|
|
5563
5563
|
export type MailboxesCancelAction402 = PaymentRequiredError;
|
|
5564
5564
|
export declare const MailboxesCancelAction402: typeof PaymentRequiredError;
|
|
5565
|
-
export type MailboxesCancelAction403 =
|
|
5566
|
-
export declare const MailboxesCancelAction403: Schema.Union<readonly [typeof
|
|
5565
|
+
export type MailboxesCancelAction403 = MailboxSendRefusedError | OnboardingReviewRequiredError | ForbiddenError;
|
|
5566
|
+
export declare const MailboxesCancelAction403: Schema.Union<readonly [typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError]>;
|
|
5567
5567
|
export type MailboxesCancelAction404 = ResourceNotFoundError;
|
|
5568
5568
|
export declare const MailboxesCancelAction404: typeof ResourceNotFoundError;
|
|
5569
5569
|
export type MailboxesCancelAction409 = MailboxSendConflictError | ConflictError;
|
|
@@ -6080,8 +6080,8 @@ export type MailboxesRetryAction401 = UnauthorizedError;
|
|
|
6080
6080
|
export declare const MailboxesRetryAction401: typeof UnauthorizedError;
|
|
6081
6081
|
export type MailboxesRetryAction402 = PaymentRequiredError;
|
|
6082
6082
|
export declare const MailboxesRetryAction402: typeof PaymentRequiredError;
|
|
6083
|
-
export type MailboxesRetryAction403 =
|
|
6084
|
-
export declare const MailboxesRetryAction403: Schema.Union<readonly [typeof
|
|
6083
|
+
export type MailboxesRetryAction403 = MailboxSendRefusedError | OnboardingReviewRequiredError | ForbiddenError | FlagDisabledError;
|
|
6084
|
+
export declare const MailboxesRetryAction403: Schema.Union<readonly [typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError, typeof FlagDisabledError]>;
|
|
6085
6085
|
export type MailboxesRetryAction404 = ResourceNotFoundError;
|
|
6086
6086
|
export declare const MailboxesRetryAction404: typeof ResourceNotFoundError;
|
|
6087
6087
|
export type MailboxesRetryAction409 = MailboxSendConflictError | ConflictError;
|
|
@@ -6853,8 +6853,8 @@ export type MailboxesSendDraft401 = UnauthorizedError;
|
|
|
6853
6853
|
export declare const MailboxesSendDraft401: typeof UnauthorizedError;
|
|
6854
6854
|
export type MailboxesSendDraft402 = PaymentRequiredError;
|
|
6855
6855
|
export declare const MailboxesSendDraft402: typeof PaymentRequiredError;
|
|
6856
|
-
export type MailboxesSendDraft403 =
|
|
6857
|
-
export declare const MailboxesSendDraft403: Schema.Union<readonly [typeof
|
|
6856
|
+
export type MailboxesSendDraft403 = MailboxSendRefusedError | OnboardingReviewRequiredError | ForbiddenError | FlagDisabledError;
|
|
6857
|
+
export declare const MailboxesSendDraft403: Schema.Union<readonly [typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError, typeof FlagDisabledError]>;
|
|
6858
6858
|
export type MailboxesSendDraft404 = ResourceNotFoundError;
|
|
6859
6859
|
export declare const MailboxesSendDraft404: typeof ResourceNotFoundError;
|
|
6860
6860
|
export type MailboxesSendDraft409 = MailboxSendConflictError | ConflictError;
|
|
@@ -7971,8 +7971,8 @@ export type MailboxesSendMessage401 = UnauthorizedError;
|
|
|
7971
7971
|
export declare const MailboxesSendMessage401: typeof UnauthorizedError;
|
|
7972
7972
|
export type MailboxesSendMessage402 = PaymentRequiredError;
|
|
7973
7973
|
export declare const MailboxesSendMessage402: typeof PaymentRequiredError;
|
|
7974
|
-
export type MailboxesSendMessage403 =
|
|
7975
|
-
export declare const MailboxesSendMessage403: Schema.Union<readonly [typeof
|
|
7974
|
+
export type MailboxesSendMessage403 = MailboxSendRefusedError | OnboardingReviewRequiredError | ForbiddenError | FlagDisabledError;
|
|
7975
|
+
export declare const MailboxesSendMessage403: Schema.Union<readonly [typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError, typeof FlagDisabledError]>;
|
|
7976
7976
|
export type MailboxesSendMessage404 = ResourceNotFoundError;
|
|
7977
7977
|
export declare const MailboxesSendMessage404: typeof ResourceNotFoundError;
|
|
7978
7978
|
export type MailboxesSendMessage409 = MailboxSendConflictError | ConflictError;
|
|
@@ -8394,8 +8394,8 @@ export type MailboxesForward401 = UnauthorizedError;
|
|
|
8394
8394
|
export declare const MailboxesForward401: typeof UnauthorizedError;
|
|
8395
8395
|
export type MailboxesForward402 = PaymentRequiredError;
|
|
8396
8396
|
export declare const MailboxesForward402: typeof PaymentRequiredError;
|
|
8397
|
-
export type MailboxesForward403 =
|
|
8398
|
-
export declare const MailboxesForward403: Schema.Union<readonly [typeof
|
|
8397
|
+
export type MailboxesForward403 = MailboxSendRefusedError | OnboardingReviewRequiredError | ForbiddenError;
|
|
8398
|
+
export declare const MailboxesForward403: Schema.Union<readonly [typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError]>;
|
|
8399
8399
|
export type MailboxesForward404 = ResourceNotFoundError;
|
|
8400
8400
|
export declare const MailboxesForward404: typeof ResourceNotFoundError;
|
|
8401
8401
|
export type MailboxesForward409 = MailboxSendConflictError | ConflictError;
|
|
@@ -8659,8 +8659,8 @@ export type MailboxesReply401 = UnauthorizedError;
|
|
|
8659
8659
|
export declare const MailboxesReply401: typeof UnauthorizedError;
|
|
8660
8660
|
export type MailboxesReply402 = PaymentRequiredError;
|
|
8661
8661
|
export declare const MailboxesReply402: typeof PaymentRequiredError;
|
|
8662
|
-
export type MailboxesReply403 =
|
|
8663
|
-
export declare const MailboxesReply403: Schema.Union<readonly [typeof
|
|
8662
|
+
export type MailboxesReply403 = MailboxSendRefusedError | OnboardingReviewRequiredError | ForbiddenError | FlagDisabledError;
|
|
8663
|
+
export declare const MailboxesReply403: Schema.Union<readonly [typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError, typeof FlagDisabledError]>;
|
|
8664
8664
|
export type MailboxesReply404 = ResourceNotFoundError;
|
|
8665
8665
|
export declare const MailboxesReply404: typeof ResourceNotFoundError;
|
|
8666
8666
|
export type MailboxesReply409 = MailboxSendConflictError | ConflictError;
|
|
@@ -8897,8 +8897,8 @@ export type MailboxesReplyAll401 = UnauthorizedError;
|
|
|
8897
8897
|
export declare const MailboxesReplyAll401: typeof UnauthorizedError;
|
|
8898
8898
|
export type MailboxesReplyAll402 = PaymentRequiredError;
|
|
8899
8899
|
export declare const MailboxesReplyAll402: typeof PaymentRequiredError;
|
|
8900
|
-
export type MailboxesReplyAll403 =
|
|
8901
|
-
export declare const MailboxesReplyAll403: Schema.Union<readonly [typeof
|
|
8900
|
+
export type MailboxesReplyAll403 = MailboxSendRefusedError | OnboardingReviewRequiredError | ForbiddenError | FlagDisabledError;
|
|
8901
|
+
export declare const MailboxesReplyAll403: Schema.Union<readonly [typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError, typeof FlagDisabledError]>;
|
|
8902
8902
|
export type MailboxesReplyAll404 = ResourceNotFoundError;
|
|
8903
8903
|
export declare const MailboxesReplyAll404: typeof ResourceNotFoundError;
|
|
8904
8904
|
export type MailboxesReplyAll409 = MailboxSendConflictError | ConflictError;
|
|
@@ -9735,6 +9735,7 @@ export type MailboxesListThreadsQuery = {
|
|
|
9735
9735
|
readonly unread?: boolean | null;
|
|
9736
9736
|
readonly starred?: boolean | null;
|
|
9737
9737
|
readonly snoozed?: boolean | null;
|
|
9738
|
+
readonly order?: "wake";
|
|
9738
9739
|
};
|
|
9739
9740
|
export declare const MailboxesListThreadsQuery: Schema.Struct<{
|
|
9740
9741
|
readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
|
|
@@ -9751,6 +9752,7 @@ export declare const MailboxesListThreadsQuery: Schema.Struct<{
|
|
|
9751
9752
|
readonly unread: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
9752
9753
|
readonly starred: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
9753
9754
|
readonly snoozed: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
9755
|
+
readonly order: Schema.optionalKey<Schema.Literal<"wake">>;
|
|
9754
9756
|
}>;
|
|
9755
9757
|
export type MailboxesListThreads200 = MailboxThreadPage;
|
|
9756
9758
|
export declare const MailboxesListThreads200: Schema.Struct<{
|
|
@@ -10981,6 +10983,7 @@ export type MailboxesListOrganizationThreadsQuery = {
|
|
|
10981
10983
|
readonly unread?: boolean | null;
|
|
10982
10984
|
readonly starred?: boolean | null;
|
|
10983
10985
|
readonly snoozed?: boolean | null;
|
|
10986
|
+
readonly order?: "wake";
|
|
10984
10987
|
readonly mailboxId?: MailboxId | ReadonlyArray<MailboxId>;
|
|
10985
10988
|
readonly kind?: "personal" | "shared";
|
|
10986
10989
|
readonly conversation?: ConversationId;
|
|
@@ -11000,6 +11003,7 @@ export declare const MailboxesListOrganizationThreadsQuery: Schema.Struct<{
|
|
|
11000
11003
|
readonly unread: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
11001
11004
|
readonly starred: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
11002
11005
|
readonly snoozed: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
11006
|
+
readonly order: Schema.optionalKey<Schema.Literal<"wake">>;
|
|
11003
11007
|
readonly mailboxId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.$Array<Schema.brand<Schema.String, "MailboxId">>]>>;
|
|
11004
11008
|
readonly kind: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"personal">, Schema.Literal<"shared">]>>;
|
|
11005
11009
|
readonly conversation: Schema.optionalKey<Schema.brand<Schema.String, "ConversationId">>;
|
|
@@ -11466,7 +11470,7 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
|
|
|
11466
11470
|
readonly handoff: Schema.Union<readonly [Schema.Struct<{
|
|
11467
11471
|
readonly reason: Schema.String;
|
|
11468
11472
|
}>, Schema.Null]>;
|
|
11469
|
-
}>]>>, Schema.toCodecJson<Schema.Union<readonly [typeof WhatsAppServiceWindowClosedError, typeof ValidationError]> | Schema.Union<readonly [typeof MailboxSendConflictError, typeof ConflictError]> | Schema.Union<readonly [typeof
|
|
11473
|
+
}>]>>, 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
11474
|
readonly _tag: "BillingProviderError";
|
|
11471
11475
|
readonly message: string;
|
|
11472
11476
|
}, readonly [Schema.Struct<{
|
|
@@ -11785,7 +11789,7 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
|
|
|
11785
11789
|
}>, Schema.Null]>;
|
|
11786
11790
|
readonly createdAt: Schema.String;
|
|
11787
11791
|
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
|
|
11792
|
+
}>>, 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
11793
|
readonly _tag: "BillingProviderError";
|
|
11790
11794
|
readonly message: string;
|
|
11791
11795
|
}, readonly [Schema.Struct<{
|
|
@@ -15181,7 +15185,7 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
|
|
|
15181
15185
|
}>, Schema.Null]>;
|
|
15182
15186
|
readonly createdAt: Schema.String;
|
|
15183
15187
|
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
|
|
15188
|
+
}>>, 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
15189
|
readonly _tag: "BillingProviderError";
|
|
15186
15190
|
readonly message: string;
|
|
15187
15191
|
}, readonly [Schema.Struct<{
|
|
@@ -18664,6 +18668,7 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
|
|
|
18664
18668
|
readonly unread: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
18665
18669
|
readonly starred: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
18666
18670
|
readonly snoozed: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
18671
|
+
readonly order: Schema.optionalKey<Schema.Literal<"wake">>;
|
|
18667
18672
|
readonly mailboxId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.$Array<Schema.brand<Schema.String, "MailboxId">>]>>;
|
|
18668
18673
|
readonly kind: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"personal">, Schema.Literal<"shared">]>>;
|
|
18669
18674
|
readonly conversation: Schema.optionalKey<Schema.brand<Schema.String, "ConversationId">>;
|
|
@@ -19429,6 +19434,7 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
|
|
|
19429
19434
|
readonly unread: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
19430
19435
|
readonly starred: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
19431
19436
|
readonly snoozed: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
19437
|
+
readonly order: Schema.optionalKey<Schema.Literal<"wake">>;
|
|
19432
19438
|
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
19433
19439
|
readonly items: Schema.$Array<Schema.Struct<{
|
|
19434
19440
|
readonly id: Schema.brand<Schema.String, "MailboxThreadId">;
|
|
@@ -20284,7 +20290,7 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
|
|
|
20284
20290
|
}>, Schema.Null]>;
|
|
20285
20291
|
readonly createdAt: Schema.String;
|
|
20286
20292
|
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
|
|
20293
|
+
}>>, 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
20294
|
readonly _tag: "BillingProviderError";
|
|
20289
20295
|
readonly message: string;
|
|
20290
20296
|
}, readonly [Schema.Struct<{
|
|
@@ -20623,7 +20629,7 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
|
|
|
20623
20629
|
}>, Schema.Null]>;
|
|
20624
20630
|
readonly createdAt: Schema.String;
|
|
20625
20631
|
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
|
|
20632
|
+
}>>, 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
20633
|
readonly _tag: "BillingProviderError";
|
|
20628
20634
|
readonly message: string;
|
|
20629
20635
|
}, readonly [Schema.Struct<{
|
|
@@ -21356,7 +21362,7 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
|
|
|
21356
21362
|
}>, Schema.Null]>;
|
|
21357
21363
|
readonly createdAt: Schema.String;
|
|
21358
21364
|
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
|
|
21365
|
+
}>>, 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
21366
|
readonly _tag: "BillingProviderError";
|
|
21361
21367
|
readonly message: string;
|
|
21362
21368
|
}, readonly [Schema.Struct<{
|
|
@@ -22076,7 +22082,7 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
|
|
|
22076
22082
|
}>, Schema.Null]>;
|
|
22077
22083
|
readonly createdAt: Schema.String;
|
|
22078
22084
|
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
|
|
22085
|
+
}>>, 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
22086
|
readonly _tag: "BillingProviderError";
|
|
22081
22087
|
readonly message: string;
|
|
22082
22088
|
}, readonly [Schema.Struct<{
|
|
@@ -22418,7 +22424,7 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
|
|
|
22418
22424
|
}>, Schema.Null]>;
|
|
22419
22425
|
readonly createdAt: Schema.String;
|
|
22420
22426
|
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
|
|
22427
|
+
}>>, 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
22428
|
readonly _tag: "BillingProviderError";
|
|
22423
22429
|
readonly message: string;
|
|
22424
22430
|
}, readonly [Schema.Struct<{
|