samva 0.34.0 → 0.35.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/README.md +1 -1
- package/dist/client/sdk.gen.d.ts +224 -250
- package/dist/client/sdk.gen.js +84 -210
- package/dist/client/types.gen.d.ts +2894 -401
- package/dist/effect/agents.d.ts +28 -13
- package/dist/effect/agents.js +5 -1
- package/dist/effect/analytics.d.ts +15 -15
- package/dist/effect/api-keys.d.ts +27 -18
- package/dist/effect/campaigns.d.ts +721 -65
- package/dist/effect/categories.d.ts +3 -3
- package/dist/effect/contact-groups.d.ts +15 -15
- package/dist/effect/contacts.d.ts +56 -52
- package/dist/effect/conversations.d.ts +45 -45
- package/dist/effect/email.d.ts +82 -82
- package/dist/effect/errors.d.ts +1 -1
- package/dist/effect/errors.js +2 -2
- package/dist/effect/extension-installations.d.ts +11 -11
- package/dist/effect/extensions.d.ts +16 -16
- package/dist/effect/generated/agents.d.ts +1063 -33
- package/dist/effect/generated/agents.js +133 -11
- package/dist/effect/generated/analytics.d.ts +109 -136
- package/dist/effect/generated/analytics.js +65 -36
- package/dist/effect/generated/api-keys.d.ts +240 -19
- package/dist/effect/generated/api-keys.js +24 -8
- package/dist/effect/generated/attachments.d.ts +89 -1
- package/dist/effect/generated/attachments.js +10 -2
- package/dist/effect/generated/brands.d.ts +133 -1
- package/dist/effect/generated/brands.js +22 -10
- package/dist/effect/generated/campaigns.d.ts +1442 -140
- package/dist/effect/generated/campaigns.js +82 -20
- package/dist/effect/generated/contact-events.d.ts +26 -4
- package/dist/effect/generated/contact-events.js +5 -3
- package/dist/effect/generated/contact-groups.d.ts +233 -13
- package/dist/effect/generated/contact-groups.js +33 -17
- package/dist/effect/generated/contacts.d.ts +634 -96
- package/dist/effect/generated/contacts.js +82 -20
- package/dist/effect/generated/conversations.d.ts +398 -106
- package/dist/effect/generated/conversations.js +96 -22
- package/dist/effect/generated/custom-fields.d.ts +89 -1
- package/dist/effect/generated/custom-fields.js +11 -3
- package/dist/effect/generated/email.d.ts +1447 -83
- package/dist/effect/generated/email.js +167 -43
- package/dist/effect/generated/events.d.ts +51 -7
- package/dist/effect/generated/events.js +9 -5
- package/dist/effect/generated/extension-installations.d.ts +208 -10
- package/dist/effect/generated/extension-installations.js +26 -8
- package/dist/effect/generated/extensions.d.ts +123 -13
- package/dist/effect/generated/extensions.js +20 -10
- package/dist/effect/generated/feedback.d.ts +23 -1
- package/dist/effect/generated/feedback.js +6 -4
- package/dist/effect/generated/journeys.d.ts +684 -16
- package/dist/effect/generated/journeys.js +37 -9
- package/dist/effect/generated/mailboxes.d.ts +3085 -627
- package/dist/effect/generated/mailboxes.js +340 -141
- package/dist/effect/generated/media.d.ts +125 -15
- package/dist/effect/generated/media.js +15 -2
- package/dist/effect/generated/messages.d.ts +2036 -117
- package/dist/effect/generated/messages.js +286 -54
- package/dist/effect/generated/namespaces.d.ts +209 -25
- package/dist/effect/generated/namespaces.js +27 -9
- package/dist/effect/generated/newsletter-domains.d.ts +98 -12
- package/dist/effect/generated/newsletter-domains.js +20 -13
- package/dist/effect/generated/newsletter-issues.d.ts +354 -19
- package/dist/effect/generated/newsletter-issues.js +162 -98
- package/dist/effect/generated/newsletters.d.ts +123 -13
- package/dist/effect/generated/newsletters.js +19 -9
- package/dist/effect/generated/operations.d.ts +76 -10
- package/dist/effect/generated/operations.js +12 -6
- package/dist/effect/generated/organizations.d.ts +287 -7
- package/dist/effect/generated/organizations.js +33 -5
- package/dist/effect/generated/scheduled-messages.d.ts +4427 -99
- package/dist/effect/generated/scheduled-messages.js +71 -12
- package/dist/effect/generated/shared.d.ts +2213 -190
- package/dist/effect/generated/shared.js +527 -76
- package/dist/effect/generated/subscriptions.d.ts +23 -1
- package/dist/effect/generated/subscriptions.js +6 -4
- package/dist/effect/generated/templates.d.ts +1718 -136
- package/dist/effect/generated/templates.js +421 -226
- package/dist/effect/generated/topic-forms.d.ts +111 -1
- package/dist/effect/generated/topic-forms.js +23 -13
- package/dist/effect/generated/topics.d.ts +353 -43
- package/dist/effect/generated/topics.js +67 -19
- package/dist/effect/generated/webhooks.d.ts +296 -38
- package/dist/effect/generated/webhooks.js +58 -16
- package/dist/effect/generated/whoami.d.ts +35 -1
- package/dist/effect/generated/whoami.js +4 -2
- package/dist/effect/generated-metadata.d.ts +20 -0
- package/dist/effect/generated-metadata.js +10 -0
- package/dist/effect/index.js +2 -2
- package/dist/effect/internal/client.js +1 -1
- package/dist/effect/internal/email-sender.d.ts +1 -1
- package/dist/effect/internal/send.d.ts +1 -1
- package/dist/effect/journeys.d.ts +105 -19
- package/dist/effect/mailboxes.d.ts +405 -174
- package/dist/effect/media.d.ts +1 -1
- package/dist/effect/messages.d.ts +40 -40
- package/dist/effect/namespaces.d.ts +15 -15
- package/dist/effect/newsletter-domains.d.ts +5 -5
- package/dist/effect/newsletters.d.ts +1 -1
- package/dist/effect/operations.d.ts +11 -11
- package/dist/effect/organizations.d.ts +2 -2
- package/dist/effect/scheduled-messages.d.ts +863 -8
- package/dist/effect/templates.d.ts +37 -37
- package/dist/effect/topics.d.ts +21 -21
- package/dist/effect/webhooks.d.ts +22 -22
- package/dist/index.js +2 -2
- package/dist/normalize.js +13 -1
- package/dist/package.js +1 -1
- package/dist/promises/client.d.ts +1 -1
- package/dist/promises/client.js +2 -2
- package/dist/promises/errors.gen.d.ts +22 -2
- package/dist/promises/errors.gen.js +60 -2
- package/dist/promises/index.js +2 -2
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/service-map.d.ts +9 -0
- package/dist/service-map.js +5 -0
- package/package.json +9 -8
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ApiKeyId, ApiKeySecurityMiddleware, AttachmentId, BillingProviderError, CampaignId, CampaignRunId, ConflictError, ContactId, ConversationId,
|
|
1
|
+
import { ApiKeyId, ApiKeySecurityMiddleware, AttachmentId, BillingProviderError, CampaignId, CampaignRunId, ConflictError, ContactId, ConversationId, DeliveryUnavailableError, EmailBccRecipients, EmailCcRecipients, EmailContent, EmailRecipients, EmailSendMessagePayload, EmailSender, EmailTrackingOverrideV1, ExternalServiceError, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, InternalError, JsonValue, MalformedRequestError, MediaId, MessageId, MessageMetadata, MessagePage, NamespaceId, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SenderNotReadyError, SkippedRecipient, SmsSendMessagePayload, UnauthorizedError, UserId, ValidationError, WhatsAppButtonsMessage, WhatsAppCtaUrlMessage, WhatsAppFlowId, WhatsAppListMessage, WhatsAppSendMessagePayload, WhatsAppTextHeader } from "./shared.js";
|
|
2
2
|
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
|
|
3
3
|
import * as Schema from "effect/Schema";
|
|
4
4
|
// src/effect/generated/messages.ts
|
|
@@ -15,7 +15,80 @@ const SubmissionClient = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
15
15
|
]),
|
|
16
16
|
version: Schema.String
|
|
17
17
|
}).annotate({ identifier: "SubmissionClient" }))();
|
|
18
|
-
const
|
|
18
|
+
const SmsMessageContent = /* @__PURE__ */ (() => Schema.Struct({
|
|
19
|
+
text: Schema.String,
|
|
20
|
+
unicode: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
21
|
+
parts: Schema.optionalKey(Schema.Union([Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })), Schema.Null]))
|
|
22
|
+
}).annotate({ identifier: "SmsMessageContent" }))();
|
|
23
|
+
const WhatsAppFlowVersionId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(new globalThis.RegExp("^wafver_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
|
|
24
|
+
expected: "a string matching the RegExp ^wafver_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
25
|
+
identifier: "WhatsAppFlowVersionId"
|
|
26
|
+
})).pipe(Schema.brand("WhatsAppFlowVersionId")))();
|
|
27
|
+
const WhatsAppStoredLocation = /* @__PURE__ */ (() => Schema.Struct({
|
|
28
|
+
latitude: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })),
|
|
29
|
+
longitude: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })),
|
|
30
|
+
name: Schema.optionalKey(Schema.String),
|
|
31
|
+
address: Schema.optionalKey(Schema.String),
|
|
32
|
+
url: Schema.optionalKey(Schema.String)
|
|
33
|
+
}).annotate({ identifier: "WhatsAppStoredLocation" }))();
|
|
34
|
+
const WhatsAppStoredContactCard = /* @__PURE__ */ (() => Schema.Struct({
|
|
35
|
+
name: Schema.optionalKey(Schema.Struct({
|
|
36
|
+
formattedName: Schema.optionalKey(Schema.String),
|
|
37
|
+
firstName: Schema.optionalKey(Schema.String),
|
|
38
|
+
lastName: Schema.optionalKey(Schema.String),
|
|
39
|
+
middleName: Schema.optionalKey(Schema.String),
|
|
40
|
+
prefix: Schema.optionalKey(Schema.String),
|
|
41
|
+
suffix: Schema.optionalKey(Schema.String)
|
|
42
|
+
})),
|
|
43
|
+
phones: Schema.optionalKey(Schema.Array(Schema.Struct({
|
|
44
|
+
phone: Schema.optionalKey(Schema.String),
|
|
45
|
+
type: Schema.optionalKey(Schema.String),
|
|
46
|
+
waId: Schema.optionalKey(Schema.String)
|
|
47
|
+
}))),
|
|
48
|
+
emails: Schema.optionalKey(Schema.Array(Schema.Struct({
|
|
49
|
+
email: Schema.optionalKey(Schema.String),
|
|
50
|
+
type: Schema.optionalKey(Schema.String)
|
|
51
|
+
}))),
|
|
52
|
+
urls: Schema.optionalKey(Schema.Array(Schema.Struct({
|
|
53
|
+
url: Schema.optionalKey(Schema.String),
|
|
54
|
+
type: Schema.optionalKey(Schema.String)
|
|
55
|
+
}))),
|
|
56
|
+
org: Schema.optionalKey(Schema.Struct({
|
|
57
|
+
company: Schema.optionalKey(Schema.String),
|
|
58
|
+
department: Schema.optionalKey(Schema.String),
|
|
59
|
+
title: Schema.optionalKey(Schema.String)
|
|
60
|
+
})),
|
|
61
|
+
addresses: Schema.optionalKey(Schema.Array(Schema.Struct({
|
|
62
|
+
street: Schema.optionalKey(Schema.String),
|
|
63
|
+
city: Schema.optionalKey(Schema.String),
|
|
64
|
+
state: Schema.optionalKey(Schema.String),
|
|
65
|
+
zip: Schema.optionalKey(Schema.String),
|
|
66
|
+
country: Schema.optionalKey(Schema.String),
|
|
67
|
+
countryCode: Schema.optionalKey(Schema.String),
|
|
68
|
+
type: Schema.optionalKey(Schema.String)
|
|
69
|
+
}))),
|
|
70
|
+
birthday: Schema.optionalKey(Schema.String)
|
|
71
|
+
}).annotate({ identifier: "WhatsAppStoredContactCard" }))();
|
|
72
|
+
const WhatsAppReceivedReply = /* @__PURE__ */ (() => Schema.Struct({
|
|
73
|
+
type: Schema.Union([
|
|
74
|
+
Schema.Literal("button"),
|
|
75
|
+
Schema.Literal("list"),
|
|
76
|
+
Schema.Literal("template_button")
|
|
77
|
+
]),
|
|
78
|
+
id: Schema.String,
|
|
79
|
+
title: Schema.String,
|
|
80
|
+
description: Schema.optionalKey(Schema.String)
|
|
81
|
+
}).annotate({ identifier: "WhatsAppReceivedReply" }))();
|
|
82
|
+
const WhatsAppReceivedFlowResponse = /* @__PURE__ */ (() => Schema.Struct({
|
|
83
|
+
flowToken: Schema.Union([Schema.String, Schema.Null]),
|
|
84
|
+
response: Schema.Record(Schema.String, JsonValue),
|
|
85
|
+
body: Schema.optionalKey(Schema.String)
|
|
86
|
+
}).annotate({ identifier: "WhatsAppReceivedFlowResponse" }))();
|
|
87
|
+
const WhatsAppStructuredContent = /* @__PURE__ */ (() => Schema.Struct({
|
|
88
|
+
type: Schema.String,
|
|
89
|
+
data: Schema.Record(Schema.String, JsonValue)
|
|
90
|
+
}).annotate({ identifier: "WhatsAppStructuredContent" }))();
|
|
91
|
+
const MessageDeliveryId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(new globalThis.RegExp("^mdel_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
|
|
19
92
|
expected: "a string matching the RegExp ^mdel_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
20
93
|
identifier: "MessageDeliveryId"
|
|
21
94
|
})).pipe(Schema.brand("MessageDeliveryId")))();
|
|
@@ -25,7 +98,7 @@ const MessageDeliveryError = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
25
98
|
retryable: Schema.Union([Schema.Boolean, Schema.Null])
|
|
26
99
|
}).annotate({ identifier: "MessageDeliveryError" }))();
|
|
27
100
|
const EstimatedProviderCost = /* @__PURE__ */ (() => Schema.Struct({
|
|
28
|
-
amount: Schema.String.check(Schema.isPattern(
|
|
101
|
+
amount: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^\\d+\\.\\d+$", "u")).annotate({ expected: "a string matching the RegExp ^\\d+\\.\\d+$" })),
|
|
29
102
|
currency: Schema.String,
|
|
30
103
|
billingMode: Schema.Literal("pass_through")
|
|
31
104
|
}).annotate({ identifier: "EstimatedProviderCost" }))();
|
|
@@ -44,7 +117,7 @@ const EmailAddress = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
44
117
|
email: Schema.String,
|
|
45
118
|
name: Schema.Union([Schema.String, Schema.Null])
|
|
46
119
|
}).annotate({ identifier: "EmailAddress" }))();
|
|
47
|
-
const MessageEventId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(
|
|
120
|
+
const MessageEventId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(new globalThis.RegExp("^mevt_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
|
|
48
121
|
expected: "a string matching the RegExp ^mevt_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
49
122
|
identifier: "MessageEventId"
|
|
50
123
|
})).pipe(Schema.brand("MessageEventId")))();
|
|
@@ -73,32 +146,72 @@ const SubmissionCredential = /* @__PURE__ */ (() => Schema.Union([
|
|
|
73
146
|
}),
|
|
74
147
|
Schema.Struct({ kind: Schema.Literal("session") })
|
|
75
148
|
]).annotate({ identifier: "SubmissionCredential" }))();
|
|
76
|
-
const
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
})
|
|
149
|
+
const WhatsAppStoredReaction = /* @__PURE__ */ (() => Schema.Struct({
|
|
150
|
+
messageId: Schema.Union([MessageId, Schema.Null]),
|
|
151
|
+
providerMessageId: Schema.String,
|
|
152
|
+
emoji: Schema.Union([Schema.String, Schema.Null])
|
|
153
|
+
}).annotate({ identifier: "WhatsAppStoredReaction" }))();
|
|
154
|
+
const WhatsAppMessageReference = /* @__PURE__ */ (() => Schema.Struct({
|
|
155
|
+
messageId: Schema.Union([MessageId, Schema.Null]),
|
|
156
|
+
providerMessageId: Schema.String
|
|
157
|
+
}).annotate({ identifier: "WhatsAppMessageReference" }))();
|
|
158
|
+
const WhatsAppStoredMedia = /* @__PURE__ */ (() => Schema.Union([
|
|
159
|
+
Schema.Struct({
|
|
160
|
+
type: Schema.Union([
|
|
161
|
+
Schema.Literal("image"),
|
|
162
|
+
Schema.Literal("video"),
|
|
163
|
+
Schema.Literal("audio"),
|
|
164
|
+
Schema.Literal("document"),
|
|
165
|
+
Schema.Literal("sticker")
|
|
166
|
+
]),
|
|
167
|
+
url: Schema.String,
|
|
168
|
+
caption: Schema.optionalKey(Schema.String),
|
|
169
|
+
filename: Schema.optionalKey(Schema.String)
|
|
170
|
+
}),
|
|
171
|
+
Schema.Struct({
|
|
172
|
+
type: Schema.Union([
|
|
173
|
+
Schema.Literal("image"),
|
|
174
|
+
Schema.Literal("video"),
|
|
175
|
+
Schema.Literal("audio"),
|
|
176
|
+
Schema.Literal("document"),
|
|
177
|
+
Schema.Literal("sticker")
|
|
178
|
+
]),
|
|
179
|
+
mediaId: MediaId,
|
|
180
|
+
caption: Schema.optionalKey(Schema.String),
|
|
181
|
+
filename: Schema.optionalKey(Schema.String)
|
|
182
|
+
}),
|
|
183
|
+
Schema.Struct({
|
|
184
|
+
type: Schema.Union([
|
|
185
|
+
Schema.Literal("image"),
|
|
186
|
+
Schema.Literal("video"),
|
|
187
|
+
Schema.Literal("audio"),
|
|
188
|
+
Schema.Literal("document"),
|
|
189
|
+
Schema.Literal("sticker")
|
|
190
|
+
]),
|
|
191
|
+
providerMediaId: Schema.String,
|
|
192
|
+
mimeType: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
193
|
+
caption: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
194
|
+
filename: Schema.optionalKey(Schema.String)
|
|
195
|
+
})
|
|
196
|
+
]).annotate({ identifier: "WhatsAppStoredMedia" }))();
|
|
98
197
|
const MessageAddress = /* @__PURE__ */ (() => Schema.Struct({
|
|
99
198
|
address: Schema.String,
|
|
100
199
|
contactId: Schema.Union([ContactId, Schema.Null])
|
|
101
200
|
}).annotate({ identifier: "MessageAddress" }))();
|
|
201
|
+
const WhatsAppStoredFlowMessage = /* @__PURE__ */ (() => Schema.Struct({
|
|
202
|
+
type: Schema.Literal("flow"),
|
|
203
|
+
header: Schema.optionalKey(WhatsAppTextHeader),
|
|
204
|
+
body: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })).check(Schema.isPattern(new globalThis.RegExp("\\S")).annotate({ expected: "a string matching the RegExp \\S" })),
|
|
205
|
+
footer: Schema.optionalKey(Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(60).annotate({ expected: "a string with at most 60 code points" })).check(Schema.isMaxLength(60).annotate({ expected: "a value with a length of at most 60" })).check(Schema.isPattern(new globalThis.RegExp("\\S")).annotate({ expected: "a string matching the RegExp \\S" }))),
|
|
206
|
+
flowId: WhatsAppFlowId,
|
|
207
|
+
cta: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(30).annotate({ expected: "a string with at most 30 code points" })).check(Schema.isMaxLength(30).annotate({ expected: "a value with a length of at most 30" })).check(Schema.isPattern(new globalThis.RegExp("\\S")).annotate({ expected: "a string matching the RegExp \\S" })),
|
|
208
|
+
token: Schema.optionalKey(Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })).check(Schema.isPattern(new globalThis.RegExp("\\S")).annotate({ expected: "a string matching the RegExp \\S" }))),
|
|
209
|
+
action: Schema.optionalKey(Schema.Union([Schema.Literal("navigate"), Schema.Literal("data_exchange")])),
|
|
210
|
+
screen: Schema.optionalKey(Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[A-Za-z_]{1,100}$", "u")).annotate({ expected: "a string matching the RegExp ^[A-Za-z_]{1,100}$" }))),
|
|
211
|
+
data: Schema.optionalKey(Schema.Record(Schema.String, JsonValue)),
|
|
212
|
+
flowVersionId: WhatsAppFlowVersionId,
|
|
213
|
+
providerFlowId: Schema.String
|
|
214
|
+
}).annotate({ identifier: "WhatsAppStoredFlowMessage" }))();
|
|
102
215
|
const MessageDelivery = /* @__PURE__ */ (() => Schema.Struct({
|
|
103
216
|
id: MessageDeliveryId,
|
|
104
217
|
recipient: Schema.Union([Schema.String, Schema.Null]),
|
|
@@ -159,7 +272,7 @@ const MessageSubmission = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
159
272
|
Schema.Literal("journey"),
|
|
160
273
|
Schema.Literal("businessApp")
|
|
161
274
|
]),
|
|
162
|
-
transport: Schema.Union([Schema.Literal("http"), Schema.Null]),
|
|
275
|
+
transport: Schema.Union([Schema.Union([Schema.Literal("http"), Schema.Literal("smtp")]), Schema.Null]),
|
|
163
276
|
credential: Schema.Union([SubmissionCredential, Schema.Null]),
|
|
164
277
|
userId: Schema.Union([UserId, Schema.Null]),
|
|
165
278
|
client: Schema.Union([SubmissionClient, Schema.Null])
|
|
@@ -202,7 +315,11 @@ const Message = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
202
315
|
campaignId: CampaignId,
|
|
203
316
|
runId: CampaignRunId
|
|
204
317
|
}), Schema.Null])),
|
|
205
|
-
channel: Schema.
|
|
318
|
+
channel: Schema.Union([
|
|
319
|
+
Schema.Literal("sms"),
|
|
320
|
+
Schema.Literal("whatsapp"),
|
|
321
|
+
Schema.Literal("email")
|
|
322
|
+
]),
|
|
206
323
|
direction: Schema.Union([Schema.Literal("outbound"), Schema.Literal("inbound")]),
|
|
207
324
|
status: Schema.Union([
|
|
208
325
|
Schema.Literal("pending"),
|
|
@@ -247,12 +364,104 @@ const Message = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
247
364
|
createdAt: Schema.String,
|
|
248
365
|
updatedAt: Schema.String
|
|
249
366
|
}).annotate({ identifier: "Message" }))();
|
|
367
|
+
const WhatsAppStoredInteractive = /* @__PURE__ */ (() => Schema.Union([
|
|
368
|
+
WhatsAppButtonsMessage,
|
|
369
|
+
WhatsAppListMessage,
|
|
370
|
+
WhatsAppCtaUrlMessage,
|
|
371
|
+
WhatsAppStoredFlowMessage
|
|
372
|
+
]).annotate({ identifier: "WhatsAppStoredInteractive" }))();
|
|
373
|
+
const WhatsAppMessageContent = /* @__PURE__ */ (() => Schema.Struct({
|
|
374
|
+
text: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
375
|
+
template: Schema.optionalKey(Schema.Union([Schema.Struct({
|
|
376
|
+
name: Schema.String,
|
|
377
|
+
language: Schema.String,
|
|
378
|
+
components: Schema.Array(Schema.Struct({
|
|
379
|
+
type: Schema.Union([
|
|
380
|
+
Schema.Literal("header"),
|
|
381
|
+
Schema.Literal("body"),
|
|
382
|
+
Schema.Literal("footer"),
|
|
383
|
+
Schema.Literal("button")
|
|
384
|
+
]),
|
|
385
|
+
sub_type: Schema.optionalKey(Schema.Union([Schema.Union([
|
|
386
|
+
Schema.Literal("url"),
|
|
387
|
+
Schema.Literal("quick_reply"),
|
|
388
|
+
Schema.Literal("copy_code"),
|
|
389
|
+
Schema.Literal("flow")
|
|
390
|
+
]), Schema.Null])),
|
|
391
|
+
index: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
392
|
+
parameters: Schema.Array(Schema.Struct({
|
|
393
|
+
type: Schema.Union([
|
|
394
|
+
Schema.Literal("text"),
|
|
395
|
+
Schema.Literal("currency"),
|
|
396
|
+
Schema.Literal("date_time"),
|
|
397
|
+
Schema.Literal("image"),
|
|
398
|
+
Schema.Literal("document"),
|
|
399
|
+
Schema.Literal("video"),
|
|
400
|
+
Schema.Literal("coupon_code"),
|
|
401
|
+
Schema.Literal("action")
|
|
402
|
+
]),
|
|
403
|
+
text: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
404
|
+
currency: Schema.optionalKey(Schema.Union([Schema.Struct({
|
|
405
|
+
fallback_value: Schema.String,
|
|
406
|
+
code: Schema.String,
|
|
407
|
+
amount_1000: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" }))
|
|
408
|
+
}), Schema.Null])),
|
|
409
|
+
date_time: Schema.optionalKey(Schema.Union([Schema.Struct({ fallback_value: Schema.String }), Schema.Null])),
|
|
410
|
+
image: Schema.optionalKey(Schema.Union([Schema.Struct({ link: Schema.String }), Schema.Null])),
|
|
411
|
+
document: Schema.optionalKey(Schema.Union([Schema.Struct({
|
|
412
|
+
link: Schema.String,
|
|
413
|
+
filename: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
|
|
414
|
+
}), Schema.Null])),
|
|
415
|
+
video: Schema.optionalKey(Schema.Union([Schema.Struct({ link: Schema.String }), Schema.Null])),
|
|
416
|
+
coupon_code: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
417
|
+
action: Schema.optionalKey(Schema.Union([Schema.Struct({ flow_token: Schema.String }), Schema.Null]))
|
|
418
|
+
}))
|
|
419
|
+
}))
|
|
420
|
+
}), Schema.Null])),
|
|
421
|
+
interactive: Schema.optionalKey(WhatsAppStoredInteractive),
|
|
422
|
+
media: Schema.optionalKey(Schema.Union([WhatsAppStoredMedia, Schema.Null])),
|
|
423
|
+
reaction: Schema.optionalKey(WhatsAppStoredReaction),
|
|
424
|
+
location: Schema.optionalKey(WhatsAppStoredLocation),
|
|
425
|
+
contacts: Schema.optionalKey(Schema.Array(WhatsAppStoredContactCard)),
|
|
426
|
+
reply: Schema.optionalKey(WhatsAppReceivedReply),
|
|
427
|
+
flowResponse: Schema.optionalKey(WhatsAppReceivedFlowResponse),
|
|
428
|
+
context: Schema.optionalKey(WhatsAppMessageReference)
|
|
429
|
+
}).annotate({ identifier: "WhatsAppMessageContent" }))();
|
|
430
|
+
const MessageContent = /* @__PURE__ */ (() => Schema.Struct({
|
|
431
|
+
text: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
432
|
+
html: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
433
|
+
markdown: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
434
|
+
sms: Schema.optionalKey(Schema.Union([SmsMessageContent, Schema.Null])),
|
|
435
|
+
whatsapp: Schema.optionalKey(Schema.Union([WhatsAppMessageContent, Schema.Null])),
|
|
436
|
+
email: Schema.optionalKey(Schema.Union([Schema.Struct({
|
|
437
|
+
subject: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
438
|
+
html: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
439
|
+
text: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
440
|
+
headers: Schema.optionalKey(Schema.Union([Schema.Record(Schema.String, Schema.String), Schema.Null])),
|
|
441
|
+
tracking: Schema.optionalKey(EmailTrackingOverrideV1),
|
|
442
|
+
attachments: Schema.optionalKey(Schema.Union([Schema.Array(Schema.Struct({
|
|
443
|
+
filename: Schema.String,
|
|
444
|
+
contentId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
445
|
+
isInline: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
446
|
+
content: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
447
|
+
mediaId: Schema.optionalKey(Schema.Union([MediaId, Schema.Null])),
|
|
448
|
+
contentType: Schema.String,
|
|
449
|
+
size: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" }))
|
|
450
|
+
})), Schema.Null]))
|
|
451
|
+
}), Schema.Null])),
|
|
452
|
+
structured: Schema.optionalKey(Schema.Union([WhatsAppStructuredContent, Schema.Null])),
|
|
453
|
+
metadata: Schema.optionalKey(Schema.Union([Schema.Record(Schema.String, JsonValue), Schema.Null]))
|
|
454
|
+
}).annotate({ identifier: "MessageContent" }))();
|
|
250
455
|
const MessagesListQuery = /* @__PURE__ */ (() => Schema.Struct({
|
|
251
456
|
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])),
|
|
252
|
-
cursor: Schema.optionalKey(Schema.
|
|
253
|
-
channel: Schema.optionalKey(Schema.Union([
|
|
254
|
-
|
|
255
|
-
|
|
457
|
+
cursor: Schema.optionalKey(Schema.String),
|
|
458
|
+
channel: Schema.optionalKey(Schema.Union([
|
|
459
|
+
Schema.Literal("sms"),
|
|
460
|
+
Schema.Literal("whatsapp"),
|
|
461
|
+
Schema.Literal("email")
|
|
462
|
+
])),
|
|
463
|
+
direction: Schema.optionalKey(Schema.Union([Schema.Literal("outbound"), Schema.Literal("inbound")])),
|
|
464
|
+
status: Schema.optionalKey(Schema.Union([
|
|
256
465
|
Schema.Literal("pending"),
|
|
257
466
|
Schema.Literal("scheduled"),
|
|
258
467
|
Schema.Literal("queued"),
|
|
@@ -263,32 +472,29 @@ const MessagesListQuery = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
263
472
|
Schema.Literal("failed"),
|
|
264
473
|
Schema.Literal("bounced"),
|
|
265
474
|
Schema.Literal("complained")
|
|
266
|
-
])
|
|
267
|
-
conversationId: Schema.optionalKey(
|
|
268
|
-
contactId: Schema.optionalKey(
|
|
269
|
-
from: Schema.optionalKey(Schema.
|
|
270
|
-
namespaceId: Schema.optionalKey(Schema.Union([NamespaceId
|
|
271
|
-
after: Schema.optionalKey(Schema.
|
|
272
|
-
before: Schema.optionalKey(Schema.
|
|
475
|
+
])),
|
|
476
|
+
conversationId: Schema.optionalKey(ConversationId),
|
|
477
|
+
contactId: Schema.optionalKey(ContactId),
|
|
478
|
+
from: Schema.optionalKey(Schema.String),
|
|
479
|
+
namespaceId: Schema.optionalKey(Schema.Union([NamespaceId]).annotate({ description: "Only this namespace's messages. A key scoped to a namespace always lists its own." })),
|
|
480
|
+
after: Schema.optionalKey(Schema.String),
|
|
481
|
+
before: Schema.optionalKey(Schema.String)
|
|
273
482
|
}))();
|
|
274
483
|
const MessagesList200 = MessagePage;
|
|
484
|
+
const MessagesList400 = MalformedRequestError;
|
|
275
485
|
const MessagesList401 = UnauthorizedError;
|
|
276
486
|
const MessagesList403 = ForbiddenError;
|
|
277
487
|
const MessagesList422 = ValidationError;
|
|
278
488
|
const MessagesList500 = InternalError;
|
|
279
489
|
const MessagesList504 = GatewayTimeoutError;
|
|
280
|
-
const MessagesSendHeaders = /* @__PURE__ */ (() => Schema.Struct({ "idempotency-key": Schema.optionalKey(Schema.
|
|
281
|
-
const MessagesSendRequestJson = /* @__PURE__ */ (() => Schema.
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
cc: Schema.optionalKey(EmailCcRecipients),
|
|
287
|
-
bcc: Schema.optionalKey(EmailBccRecipients),
|
|
288
|
-
from: Schema.optionalKey(EmailSender),
|
|
289
|
-
email: EmailContent
|
|
290
|
-
}))();
|
|
490
|
+
const MessagesSendHeaders = /* @__PURE__ */ (() => Schema.Struct({ "idempotency-key": Schema.optionalKey(Schema.String.annotate({ description: "Optional org-scoped key that makes a send idempotent. Repeating a request with the same key and identical payload replays the original 201 response; reusing the key with different content returns 409." }).check(Schema.isPattern(new globalThis.RegExp("^[\\s\\S]{1,255}$")).annotate({ expected: "a string matching the RegExp ^[\\s\\S]{1,255}$" }))) }))();
|
|
491
|
+
const MessagesSendRequestJson = /* @__PURE__ */ (() => Schema.Union([
|
|
492
|
+
EmailSendMessagePayload,
|
|
493
|
+
SmsSendMessagePayload,
|
|
494
|
+
WhatsAppSendMessagePayload
|
|
495
|
+
]))();
|
|
291
496
|
const MessagesSend201 = MessageReceipt;
|
|
497
|
+
const MessagesSend400 = MalformedRequestError;
|
|
292
498
|
const MessagesSend401 = UnauthorizedError;
|
|
293
499
|
const MessagesSend402 = PaymentRequiredError;
|
|
294
500
|
const MessagesSend403 = /* @__PURE__ */ (() => Schema.Union([
|
|
@@ -306,6 +512,7 @@ const MessagesSend503 = /* @__PURE__ */ (() => Schema.Union([SenderNotReadyError
|
|
|
306
512
|
const MessagesSend504 = GatewayTimeoutError;
|
|
307
513
|
const MessagesGetPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: MessageId }))();
|
|
308
514
|
const MessagesGet200 = Message;
|
|
515
|
+
const MessagesGet400 = MalformedRequestError;
|
|
309
516
|
const MessagesGet401 = UnauthorizedError;
|
|
310
517
|
const MessagesGet403 = ForbiddenError;
|
|
311
518
|
const MessagesGet404 = ResourceNotFoundError;
|
|
@@ -317,6 +524,7 @@ const MessagesRemove200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
317
524
|
success: Schema.Boolean,
|
|
318
525
|
message: Schema.String
|
|
319
526
|
}))();
|
|
527
|
+
const MessagesRemove400 = MalformedRequestError;
|
|
320
528
|
const MessagesRemove401 = UnauthorizedError;
|
|
321
529
|
const MessagesRemove403 = ForbiddenError;
|
|
322
530
|
const MessagesRemove404 = ResourceNotFoundError;
|
|
@@ -326,6 +534,7 @@ const MessagesRemove502 = BillingProviderError;
|
|
|
326
534
|
const MessagesRemove504 = GatewayTimeoutError;
|
|
327
535
|
const MessagesGetContentPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: MessageId }))();
|
|
328
536
|
const MessagesGetContent200 = MessageContent;
|
|
537
|
+
const MessagesGetContent400 = MalformedRequestError;
|
|
329
538
|
const MessagesGetContent401 = UnauthorizedError;
|
|
330
539
|
const MessagesGetContent403 = ForbiddenError;
|
|
331
540
|
const MessagesGetContent404 = ResourceNotFoundError;
|
|
@@ -334,6 +543,7 @@ const MessagesGetContent500 = InternalError;
|
|
|
334
543
|
const MessagesGetContent504 = GatewayTimeoutError;
|
|
335
544
|
const MessagesListDeliveriesPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: MessageId }))();
|
|
336
545
|
const MessagesListDeliveries200 = MessageDeliveryList;
|
|
546
|
+
const MessagesListDeliveries400 = MalformedRequestError;
|
|
337
547
|
const MessagesListDeliveries401 = UnauthorizedError;
|
|
338
548
|
const MessagesListDeliveries403 = ForbiddenError;
|
|
339
549
|
const MessagesListDeliveries404 = ResourceNotFoundError;
|
|
@@ -368,7 +578,11 @@ const MessagesGetEmail200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
368
578
|
id: Schema.String,
|
|
369
579
|
messageId: Schema.String,
|
|
370
580
|
recipientId: Schema.Union([Schema.String, Schema.Null]),
|
|
371
|
-
channel: Schema.
|
|
581
|
+
channel: Schema.Union([
|
|
582
|
+
Schema.Literal("sms"),
|
|
583
|
+
Schema.Literal("whatsapp"),
|
|
584
|
+
Schema.Literal("email")
|
|
585
|
+
]),
|
|
372
586
|
status: Schema.Union([
|
|
373
587
|
Schema.Literal("pending"),
|
|
374
588
|
Schema.Literal("scheduled"),
|
|
@@ -416,7 +630,11 @@ const MessagesGetEmail200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
416
630
|
Schema.Literal("bounced"),
|
|
417
631
|
Schema.Literal("complained")
|
|
418
632
|
]),
|
|
419
|
-
channel: Schema.
|
|
633
|
+
channel: Schema.Union([
|
|
634
|
+
Schema.Literal("sms"),
|
|
635
|
+
Schema.Literal("whatsapp"),
|
|
636
|
+
Schema.Literal("email")
|
|
637
|
+
]),
|
|
420
638
|
direction: Schema.Union([Schema.Literal("outbound"), Schema.Literal("inbound")]),
|
|
421
639
|
subject: Schema.Union([Schema.String, Schema.Null]),
|
|
422
640
|
fromEmail: Schema.String,
|
|
@@ -498,6 +716,7 @@ const MessagesGetEmail200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
498
716
|
receivedAt: Schema.Union([Schema.String, Schema.Null]).annotate({ description: "When Samva's receiving server accepted the email; null for outbound email. The sender's `Date` header plays no part and stays in the raw MIME." }),
|
|
499
717
|
processedAt: Schema.Union([Schema.String, Schema.Null])
|
|
500
718
|
}))();
|
|
719
|
+
const MessagesGetEmail400 = MalformedRequestError;
|
|
501
720
|
const MessagesGetEmail401 = UnauthorizedError;
|
|
502
721
|
const MessagesGetEmail403 = ForbiddenError;
|
|
503
722
|
const MessagesGetEmail404 = ResourceNotFoundError;
|
|
@@ -507,9 +726,10 @@ const MessagesGetEmail504 = GatewayTimeoutError;
|
|
|
507
726
|
const MessagesGetEventsPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: MessageId }))();
|
|
508
727
|
const MessagesGetEventsQuery = /* @__PURE__ */ (() => Schema.Struct({
|
|
509
728
|
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])),
|
|
510
|
-
cursor: Schema.optionalKey(Schema.
|
|
729
|
+
cursor: Schema.optionalKey(Schema.String)
|
|
511
730
|
}))();
|
|
512
731
|
const MessagesGetEvents200 = MessageEventPage;
|
|
732
|
+
const MessagesGetEvents400 = MalformedRequestError;
|
|
513
733
|
const MessagesGetEvents401 = UnauthorizedError;
|
|
514
734
|
const MessagesGetEvents403 = ForbiddenError;
|
|
515
735
|
const MessagesGetEvents404 = ResourceNotFoundError;
|
|
@@ -533,6 +753,7 @@ const MessagesGetStatus200 = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
533
753
|
]),
|
|
534
754
|
updatedAt: Schema.String
|
|
535
755
|
}))();
|
|
756
|
+
const MessagesGetStatus400 = MalformedRequestError;
|
|
536
757
|
const MessagesGetStatus401 = UnauthorizedError;
|
|
537
758
|
const MessagesGetStatus403 = ForbiddenError;
|
|
538
759
|
const MessagesGetStatus404 = ResourceNotFoundError;
|
|
@@ -550,6 +771,7 @@ const MessagesValidateEmailRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
550
771
|
email: EmailContent
|
|
551
772
|
}))();
|
|
552
773
|
const MessagesValidateEmail200 = ValidateEmailResponse;
|
|
774
|
+
const MessagesValidateEmail400 = MalformedRequestError;
|
|
553
775
|
const MessagesValidateEmail401 = UnauthorizedError;
|
|
554
776
|
const MessagesValidateEmail403 = ForbiddenError;
|
|
555
777
|
const MessagesValidateEmail404 = ResourceNotFoundError;
|
|
@@ -561,6 +783,7 @@ var MessagesGroup = class extends HttpApiGroup.make("Messages").add(HttpApiEndpo
|
|
|
561
783
|
query: MessagesListQuery,
|
|
562
784
|
success: MessagesList200,
|
|
563
785
|
error: [
|
|
786
|
+
MessagesList400.pipe(HttpApiSchema.status(400)),
|
|
564
787
|
MessagesList401.pipe(HttpApiSchema.status(401)),
|
|
565
788
|
MessagesList403.pipe(HttpApiSchema.status(403)),
|
|
566
789
|
MessagesList422.pipe(HttpApiSchema.status(422)),
|
|
@@ -572,6 +795,7 @@ var MessagesGroup = class extends HttpApiGroup.make("Messages").add(HttpApiEndpo
|
|
|
572
795
|
payload: MessagesSendRequestJson,
|
|
573
796
|
success: MessagesSend201.pipe(HttpApiSchema.status(201)),
|
|
574
797
|
error: [
|
|
798
|
+
MessagesSend400.pipe(HttpApiSchema.status(400)),
|
|
575
799
|
MessagesSend401.pipe(HttpApiSchema.status(401)),
|
|
576
800
|
MessagesSend402.pipe(HttpApiSchema.status(402)),
|
|
577
801
|
MessagesSend403.pipe(HttpApiSchema.status(403)),
|
|
@@ -588,6 +812,7 @@ var MessagesGroup = class extends HttpApiGroup.make("Messages").add(HttpApiEndpo
|
|
|
588
812
|
params: MessagesGetPathParams,
|
|
589
813
|
success: MessagesGet200,
|
|
590
814
|
error: [
|
|
815
|
+
MessagesGet400.pipe(HttpApiSchema.status(400)),
|
|
591
816
|
MessagesGet401.pipe(HttpApiSchema.status(401)),
|
|
592
817
|
MessagesGet403.pipe(HttpApiSchema.status(403)),
|
|
593
818
|
MessagesGet404.pipe(HttpApiSchema.status(404)),
|
|
@@ -599,6 +824,7 @@ var MessagesGroup = class extends HttpApiGroup.make("Messages").add(HttpApiEndpo
|
|
|
599
824
|
params: MessagesRemovePathParams,
|
|
600
825
|
success: MessagesRemove200,
|
|
601
826
|
error: [
|
|
827
|
+
MessagesRemove400.pipe(HttpApiSchema.status(400)),
|
|
602
828
|
MessagesRemove401.pipe(HttpApiSchema.status(401)),
|
|
603
829
|
MessagesRemove403.pipe(HttpApiSchema.status(403)),
|
|
604
830
|
MessagesRemove404.pipe(HttpApiSchema.status(404)),
|
|
@@ -611,6 +837,7 @@ var MessagesGroup = class extends HttpApiGroup.make("Messages").add(HttpApiEndpo
|
|
|
611
837
|
params: MessagesGetContentPathParams,
|
|
612
838
|
success: MessagesGetContent200,
|
|
613
839
|
error: [
|
|
840
|
+
MessagesGetContent400.pipe(HttpApiSchema.status(400)),
|
|
614
841
|
MessagesGetContent401.pipe(HttpApiSchema.status(401)),
|
|
615
842
|
MessagesGetContent403.pipe(HttpApiSchema.status(403)),
|
|
616
843
|
MessagesGetContent404.pipe(HttpApiSchema.status(404)),
|
|
@@ -622,6 +849,7 @@ var MessagesGroup = class extends HttpApiGroup.make("Messages").add(HttpApiEndpo
|
|
|
622
849
|
params: MessagesListDeliveriesPathParams,
|
|
623
850
|
success: MessagesListDeliveries200,
|
|
624
851
|
error: [
|
|
852
|
+
MessagesListDeliveries400.pipe(HttpApiSchema.status(400)),
|
|
625
853
|
MessagesListDeliveries401.pipe(HttpApiSchema.status(401)),
|
|
626
854
|
MessagesListDeliveries403.pipe(HttpApiSchema.status(403)),
|
|
627
855
|
MessagesListDeliveries404.pipe(HttpApiSchema.status(404)),
|
|
@@ -634,6 +862,7 @@ var MessagesGroup = class extends HttpApiGroup.make("Messages").add(HttpApiEndpo
|
|
|
634
862
|
query: MessagesGetEmailQuery,
|
|
635
863
|
success: MessagesGetEmail200,
|
|
636
864
|
error: [
|
|
865
|
+
MessagesGetEmail400.pipe(HttpApiSchema.status(400)),
|
|
637
866
|
MessagesGetEmail401.pipe(HttpApiSchema.status(401)),
|
|
638
867
|
MessagesGetEmail403.pipe(HttpApiSchema.status(403)),
|
|
639
868
|
MessagesGetEmail404.pipe(HttpApiSchema.status(404)),
|
|
@@ -646,6 +875,7 @@ var MessagesGroup = class extends HttpApiGroup.make("Messages").add(HttpApiEndpo
|
|
|
646
875
|
query: MessagesGetEventsQuery,
|
|
647
876
|
success: MessagesGetEvents200,
|
|
648
877
|
error: [
|
|
878
|
+
MessagesGetEvents400.pipe(HttpApiSchema.status(400)),
|
|
649
879
|
MessagesGetEvents401.pipe(HttpApiSchema.status(401)),
|
|
650
880
|
MessagesGetEvents403.pipe(HttpApiSchema.status(403)),
|
|
651
881
|
MessagesGetEvents404.pipe(HttpApiSchema.status(404)),
|
|
@@ -657,6 +887,7 @@ var MessagesGroup = class extends HttpApiGroup.make("Messages").add(HttpApiEndpo
|
|
|
657
887
|
params: MessagesGetStatusPathParams,
|
|
658
888
|
success: MessagesGetStatus200,
|
|
659
889
|
error: [
|
|
890
|
+
MessagesGetStatus400.pipe(HttpApiSchema.status(400)),
|
|
660
891
|
MessagesGetStatus401.pipe(HttpApiSchema.status(401)),
|
|
661
892
|
MessagesGetStatus403.pipe(HttpApiSchema.status(403)),
|
|
662
893
|
MessagesGetStatus404.pipe(HttpApiSchema.status(404)),
|
|
@@ -668,6 +899,7 @@ var MessagesGroup = class extends HttpApiGroup.make("Messages").add(HttpApiEndpo
|
|
|
668
899
|
payload: MessagesValidateEmailRequestJson,
|
|
669
900
|
success: MessagesValidateEmail200,
|
|
670
901
|
error: [
|
|
902
|
+
MessagesValidateEmail400.pipe(HttpApiSchema.status(400)),
|
|
671
903
|
MessagesValidateEmail401.pipe(HttpApiSchema.status(401)),
|
|
672
904
|
MessagesValidateEmail403.pipe(HttpApiSchema.status(403)),
|
|
673
905
|
MessagesValidateEmail404.pipe(HttpApiSchema.status(404)),
|
|
@@ -677,6 +909,6 @@ var MessagesGroup = class extends HttpApiGroup.make("Messages").add(HttpApiEndpo
|
|
|
677
909
|
MessagesValidateEmail504.pipe(HttpApiSchema.status(504))
|
|
678
910
|
]
|
|
679
911
|
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "messages.validateEmail").annotate(OpenApi.Summary, "Validate an email message").annotate(OpenApi.Description, "Resolves recipients, sender, and inline or published-template content without sending anything, creating contacts or messages, or counting toward your quota.")).annotate(OpenApi.Description, "Send messages and read their delivery state and timeline.") {};
|
|
680
|
-
export { DeliveryErrorDetails, EmailAddress, EstimatedProviderCost, Message, MessageAddress, MessageContent, MessageDelivery, MessageDeliveryError, MessageDeliveryId, MessageDeliveryList, MessageEventId, MessageEventPage, MessageReceipt, MessageSender, MessageSubmission, MessagesGet200, MessagesGet401, MessagesGet403, MessagesGet404, MessagesGet422, MessagesGet500, MessagesGet504, MessagesGetContent200, MessagesGetContent401, MessagesGetContent403, MessagesGetContent404, MessagesGetContent422, MessagesGetContent500, MessagesGetContent504, MessagesGetContentPathParams, MessagesGetEmail200, MessagesGetEmail401, MessagesGetEmail403, MessagesGetEmail404, MessagesGetEmail422, MessagesGetEmail500, MessagesGetEmail504, MessagesGetEmailPathParams, MessagesGetEmailQuery, MessagesGetEvents200, MessagesGetEvents401, MessagesGetEvents403, MessagesGetEvents404, MessagesGetEvents422, MessagesGetEvents500, MessagesGetEvents504, MessagesGetEventsPathParams, MessagesGetEventsQuery, MessagesGetPathParams, MessagesGetStatus200, MessagesGetStatus401, MessagesGetStatus403, MessagesGetStatus404, MessagesGetStatus422, MessagesGetStatus500, MessagesGetStatus504, MessagesGetStatusPathParams, MessagesGroup, MessagesList200, MessagesList401, MessagesList403, MessagesList422, MessagesList500, MessagesList504, MessagesListDeliveries200, MessagesListDeliveries401, MessagesListDeliveries403, MessagesListDeliveries404, MessagesListDeliveries422, MessagesListDeliveries500, MessagesListDeliveries504, MessagesListDeliveriesPathParams, MessagesListQuery, MessagesRemove200, MessagesRemove401, MessagesRemove403, MessagesRemove404, MessagesRemove422, MessagesRemove500, MessagesRemove502, MessagesRemove504, MessagesRemovePathParams, MessagesSend201, MessagesSend401, MessagesSend402, MessagesSend403, MessagesSend404, MessagesSend409, MessagesSend422, MessagesSend429, MessagesSend500, MessagesSend502, MessagesSend503, MessagesSend504, MessagesSendHeaders, MessagesSendRequestJson, MessagesValidateEmail200, MessagesValidateEmail401, MessagesValidateEmail403, MessagesValidateEmail404, MessagesValidateEmail422, MessagesValidateEmail500, MessagesValidateEmail503, MessagesValidateEmail504, MessagesValidateEmailRequestJson, SubmissionClient, SubmissionCredential, ValidateEmailResponse };
|
|
912
|
+
export { DeliveryErrorDetails, EmailAddress, EstimatedProviderCost, Message, MessageAddress, MessageContent, MessageDelivery, MessageDeliveryError, MessageDeliveryId, MessageDeliveryList, MessageEventId, MessageEventPage, MessageReceipt, MessageSender, MessageSubmission, MessagesGet200, MessagesGet400, MessagesGet401, MessagesGet403, MessagesGet404, MessagesGet422, MessagesGet500, MessagesGet504, MessagesGetContent200, MessagesGetContent400, MessagesGetContent401, MessagesGetContent403, MessagesGetContent404, MessagesGetContent422, MessagesGetContent500, MessagesGetContent504, MessagesGetContentPathParams, MessagesGetEmail200, MessagesGetEmail400, MessagesGetEmail401, MessagesGetEmail403, MessagesGetEmail404, MessagesGetEmail422, MessagesGetEmail500, MessagesGetEmail504, MessagesGetEmailPathParams, MessagesGetEmailQuery, MessagesGetEvents200, MessagesGetEvents400, MessagesGetEvents401, MessagesGetEvents403, MessagesGetEvents404, MessagesGetEvents422, MessagesGetEvents500, MessagesGetEvents504, MessagesGetEventsPathParams, MessagesGetEventsQuery, MessagesGetPathParams, MessagesGetStatus200, MessagesGetStatus400, MessagesGetStatus401, MessagesGetStatus403, MessagesGetStatus404, MessagesGetStatus422, MessagesGetStatus500, MessagesGetStatus504, MessagesGetStatusPathParams, MessagesGroup, MessagesList200, MessagesList400, MessagesList401, MessagesList403, MessagesList422, MessagesList500, MessagesList504, MessagesListDeliveries200, MessagesListDeliveries400, MessagesListDeliveries401, MessagesListDeliveries403, MessagesListDeliveries404, MessagesListDeliveries422, MessagesListDeliveries500, MessagesListDeliveries504, MessagesListDeliveriesPathParams, MessagesListQuery, MessagesRemove200, MessagesRemove400, MessagesRemove401, MessagesRemove403, MessagesRemove404, MessagesRemove422, MessagesRemove500, MessagesRemove502, MessagesRemove504, MessagesRemovePathParams, MessagesSend201, MessagesSend400, MessagesSend401, MessagesSend402, MessagesSend403, MessagesSend404, MessagesSend409, MessagesSend422, MessagesSend429, MessagesSend500, MessagesSend502, MessagesSend503, MessagesSend504, MessagesSendHeaders, MessagesSendRequestJson, MessagesValidateEmail200, MessagesValidateEmail400, MessagesValidateEmail401, MessagesValidateEmail403, MessagesValidateEmail404, MessagesValidateEmail422, MessagesValidateEmail500, MessagesValidateEmail503, MessagesValidateEmail504, MessagesValidateEmailRequestJson, SmsMessageContent, SubmissionClient, SubmissionCredential, ValidateEmailResponse, WhatsAppFlowVersionId, WhatsAppMessageContent, WhatsAppMessageReference, WhatsAppReceivedFlowResponse, WhatsAppReceivedReply, WhatsAppStoredContactCard, WhatsAppStoredFlowMessage, WhatsAppStoredInteractive, WhatsAppStoredLocation, WhatsAppStoredMedia, WhatsAppStoredReaction, WhatsAppStructuredContent };
|
|
681
913
|
|
|
682
914
|
//# sourceMappingURL=messages.js.map
|