samva 0.33.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 +225 -251
- package/dist/client/sdk.gen.js +85 -211
- package/dist/client/types.gen.d.ts +2897 -403
- 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 +308 -46
- package/dist/effect/generated/webhooks.js +67 -19
- 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 +28 -26
- 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,7 +1,7 @@
|
|
|
1
1
|
import type * as EffectBrand from "effect/Brand";
|
|
2
2
|
import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
|
|
3
3
|
import * as Schema from "effect/Schema";
|
|
4
|
-
import { ApiKeySecurityMiddleware, BillingProviderError, ConflictError,
|
|
4
|
+
import { ApiKeySecurityMiddleware, BillingProviderError, ConflictError, ForbiddenError, GatewayTimeoutError, InternalError, JsonValue, MailboxId, MalformedRequestError, NamespaceId, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SuccessResponse, UnauthorizedError, ValidationError, WebhookEndpointId, __SamvaRuntimeSensitiveString } from "./shared";
|
|
5
5
|
export type WebhookDeliveryCounts = {
|
|
6
6
|
readonly total: number;
|
|
7
7
|
readonly pending: number;
|
|
@@ -51,7 +51,7 @@ export type WebhookEndpoint = {
|
|
|
51
51
|
readonly name: string;
|
|
52
52
|
readonly url: string;
|
|
53
53
|
readonly eventTypes: ReadonlyArray<"message.sent" | "message.delivered" | "message.read" | "message.failed" | "message.bounced" | "message.complained" | "message.received" | "message.opened" | "message.clicked" | "contact.created" | "contact.updated" | "contact.deleted" | "contact.subscribed" | "contact.unsubscribed" | "contact.resubscribed" | "contact.consent_changed" | "conversation.created" | "conversation.updated" | "conversation.archived" | "webhook.created" | "webhook.updated" | "webhook.deleted" | "webhook.test" | "domain.updated" | "domain.warming.updated" | "template.registration.updated" | "flow.registration.updated" | "whatsapp.number.connected" | "mailbox.message.received" | "mailbox.message.sent" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.quarantined" | "mailbox.message.released" | "mailbox.message.discarded" | "mailbox.message.delivered" | "mailbox.message.read" | "mailbox.message.failed" | "journey.webhook">;
|
|
54
|
-
readonly channels: ReadonlyArray<"email"> | null;
|
|
54
|
+
readonly channels: ReadonlyArray<"sms" | "whatsapp" | "email"> | null;
|
|
55
55
|
readonly mailboxIds: ReadonlyArray<MailboxId> | null;
|
|
56
56
|
readonly namespaceId: NamespaceId | null;
|
|
57
57
|
readonly status: "active" | "disabled";
|
|
@@ -66,7 +66,7 @@ export declare const WebhookEndpoint: Schema.Struct<{
|
|
|
66
66
|
readonly name: Schema.String;
|
|
67
67
|
readonly url: Schema.String;
|
|
68
68
|
readonly eventTypes: Schema.$Array<Schema.Union<readonly [Schema.Literal<"message.sent">, Schema.Literal<"message.delivered">, Schema.Literal<"message.read">, Schema.Literal<"message.failed">, Schema.Literal<"message.bounced">, Schema.Literal<"message.complained">, Schema.Literal<"message.received">, Schema.Literal<"message.opened">, Schema.Literal<"message.clicked">, Schema.Literal<"contact.created">, Schema.Literal<"contact.updated">, Schema.Literal<"contact.deleted">, Schema.Literal<"contact.subscribed">, Schema.Literal<"contact.unsubscribed">, Schema.Literal<"contact.resubscribed">, Schema.Literal<"contact.consent_changed">, Schema.Literal<"conversation.created">, Schema.Literal<"conversation.updated">, Schema.Literal<"conversation.archived">, Schema.Literal<"webhook.created">, Schema.Literal<"webhook.updated">, Schema.Literal<"webhook.deleted">, Schema.Literal<"webhook.test">, Schema.Literal<"domain.updated">, Schema.Literal<"domain.warming.updated">, Schema.Literal<"template.registration.updated">, Schema.Literal<"flow.registration.updated">, Schema.Literal<"whatsapp.number.connected">, Schema.Literal<"mailbox.message.received">, Schema.Literal<"mailbox.message.sent">, Schema.Literal<"mailbox.action.pending_approval">, Schema.Literal<"mailbox.action.resolved">, Schema.Literal<"mailbox.message.quarantined">, Schema.Literal<"mailbox.message.released">, Schema.Literal<"mailbox.message.discarded">, Schema.Literal<"mailbox.message.delivered">, Schema.Literal<"mailbox.message.read">, Schema.Literal<"mailbox.message.failed">, Schema.Literal<"journey.webhook">]>>;
|
|
69
|
-
readonly channels: Schema.Union<readonly [Schema.$Array<Schema.Literal<"email">>, Schema.Null]>;
|
|
69
|
+
readonly channels: Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>>, Schema.Null]>;
|
|
70
70
|
readonly mailboxIds: Schema.Union<readonly [Schema.$Array<Schema.brand<Schema.String, "MailboxId">>, Schema.Null]>;
|
|
71
71
|
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
72
72
|
readonly status: Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"disabled">]>;
|
|
@@ -81,7 +81,7 @@ export type WebhookEndpointListItem = {
|
|
|
81
81
|
readonly name: string;
|
|
82
82
|
readonly url: string;
|
|
83
83
|
readonly eventTypes: ReadonlyArray<"message.sent" | "message.delivered" | "message.read" | "message.failed" | "message.bounced" | "message.complained" | "message.received" | "message.opened" | "message.clicked" | "contact.created" | "contact.updated" | "contact.deleted" | "contact.subscribed" | "contact.unsubscribed" | "contact.resubscribed" | "contact.consent_changed" | "conversation.created" | "conversation.updated" | "conversation.archived" | "webhook.created" | "webhook.updated" | "webhook.deleted" | "webhook.test" | "domain.updated" | "domain.warming.updated" | "template.registration.updated" | "flow.registration.updated" | "whatsapp.number.connected" | "mailbox.message.received" | "mailbox.message.sent" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.quarantined" | "mailbox.message.released" | "mailbox.message.discarded" | "mailbox.message.delivered" | "mailbox.message.read" | "mailbox.message.failed" | "journey.webhook">;
|
|
84
|
-
readonly channels: ReadonlyArray<"email"> | null;
|
|
84
|
+
readonly channels: ReadonlyArray<"sms" | "whatsapp" | "email"> | null;
|
|
85
85
|
readonly mailboxIds: ReadonlyArray<MailboxId> | null;
|
|
86
86
|
readonly namespaceId: NamespaceId | null;
|
|
87
87
|
readonly status: "active" | "disabled";
|
|
@@ -97,7 +97,7 @@ export declare const WebhookEndpointListItem: Schema.Struct<{
|
|
|
97
97
|
readonly name: Schema.String;
|
|
98
98
|
readonly url: Schema.String;
|
|
99
99
|
readonly eventTypes: Schema.$Array<Schema.Union<readonly [Schema.Literal<"message.sent">, Schema.Literal<"message.delivered">, Schema.Literal<"message.read">, Schema.Literal<"message.failed">, Schema.Literal<"message.bounced">, Schema.Literal<"message.complained">, Schema.Literal<"message.received">, Schema.Literal<"message.opened">, Schema.Literal<"message.clicked">, Schema.Literal<"contact.created">, Schema.Literal<"contact.updated">, Schema.Literal<"contact.deleted">, Schema.Literal<"contact.subscribed">, Schema.Literal<"contact.unsubscribed">, Schema.Literal<"contact.resubscribed">, Schema.Literal<"contact.consent_changed">, Schema.Literal<"conversation.created">, Schema.Literal<"conversation.updated">, Schema.Literal<"conversation.archived">, Schema.Literal<"webhook.created">, Schema.Literal<"webhook.updated">, Schema.Literal<"webhook.deleted">, Schema.Literal<"webhook.test">, Schema.Literal<"domain.updated">, Schema.Literal<"domain.warming.updated">, Schema.Literal<"template.registration.updated">, Schema.Literal<"flow.registration.updated">, Schema.Literal<"whatsapp.number.connected">, Schema.Literal<"mailbox.message.received">, Schema.Literal<"mailbox.message.sent">, Schema.Literal<"mailbox.action.pending_approval">, Schema.Literal<"mailbox.action.resolved">, Schema.Literal<"mailbox.message.quarantined">, Schema.Literal<"mailbox.message.released">, Schema.Literal<"mailbox.message.discarded">, Schema.Literal<"mailbox.message.delivered">, Schema.Literal<"mailbox.message.read">, Schema.Literal<"mailbox.message.failed">, Schema.Literal<"journey.webhook">]>>;
|
|
100
|
-
readonly channels: Schema.Union<readonly [Schema.$Array<Schema.Literal<"email">>, Schema.Null]>;
|
|
100
|
+
readonly channels: Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>>, Schema.Null]>;
|
|
101
101
|
readonly mailboxIds: Schema.Union<readonly [Schema.$Array<Schema.brand<Schema.String, "MailboxId">>, Schema.Null]>;
|
|
102
102
|
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
103
103
|
readonly status: Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"disabled">]>;
|
|
@@ -130,9 +130,10 @@ export type WebhookDeliveryPage = {
|
|
|
130
130
|
readonly attempts: ReadonlyArray<{
|
|
131
131
|
readonly id: WebhookAttemptId;
|
|
132
132
|
readonly deliveryId: WebhookDeliveryId;
|
|
133
|
-
readonly kind: "automatic" | "manual";
|
|
133
|
+
readonly kind: "automatic" | "manual" | "replay";
|
|
134
|
+
readonly queueMessageId: string | null;
|
|
134
135
|
readonly attemptNumber: number;
|
|
135
|
-
readonly classification: "success" | "http-error" | "network-error" | "timeout" | "cancelled";
|
|
136
|
+
readonly classification: "success" | "http-error" | "network-error" | "timeout" | "cancelled" | "skipped";
|
|
136
137
|
readonly attemptedAt: string;
|
|
137
138
|
readonly responseStatus: number | null;
|
|
138
139
|
readonly responseHeaders: {
|
|
@@ -162,9 +163,10 @@ export declare const WebhookDeliveryPage: Schema.Struct<{
|
|
|
162
163
|
readonly attempts: Schema.$Array<Schema.Struct<{
|
|
163
164
|
readonly id: Schema.brand<Schema.String, "WebhookAttemptId">;
|
|
164
165
|
readonly deliveryId: Schema.brand<Schema.String, "WebhookDeliveryId">;
|
|
165
|
-
readonly kind: Schema.Union<readonly [Schema.Literal<"automatic">, Schema.Literal<"manual">]>;
|
|
166
|
+
readonly kind: Schema.Union<readonly [Schema.Literal<"automatic">, Schema.Literal<"manual">, Schema.Literal<"replay">]>;
|
|
167
|
+
readonly queueMessageId: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
166
168
|
readonly attemptNumber: Schema.Finite;
|
|
167
|
-
readonly classification: Schema.Union<readonly [Schema.Literal<"success">, Schema.Literal<"http-error">, Schema.Literal<"network-error">, Schema.Literal<"timeout">, Schema.Literal<"cancelled">]>;
|
|
169
|
+
readonly classification: Schema.Union<readonly [Schema.Literal<"success">, Schema.Literal<"http-error">, Schema.Literal<"network-error">, Schema.Literal<"timeout">, Schema.Literal<"cancelled">, Schema.Literal<"skipped">]>;
|
|
168
170
|
readonly attemptedAt: Schema.String;
|
|
169
171
|
readonly responseStatus: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
170
172
|
readonly responseHeaders: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.String>, Schema.Null]>;
|
|
@@ -183,6 +185,10 @@ export type WebhookStatsResponse = {
|
|
|
183
185
|
readonly exhausted: number;
|
|
184
186
|
readonly cancelled: number;
|
|
185
187
|
readonly daily: ReadonlyArray<WebhookDailyDeliveries>;
|
|
188
|
+
readonly latestAttempt: {
|
|
189
|
+
readonly errorCode: string | null;
|
|
190
|
+
readonly completedAt: string;
|
|
191
|
+
} | null;
|
|
186
192
|
};
|
|
187
193
|
export declare const WebhookStatsResponse: Schema.Struct<{
|
|
188
194
|
readonly total: Schema.Finite;
|
|
@@ -197,6 +203,10 @@ export declare const WebhookStatsResponse: Schema.Struct<{
|
|
|
197
203
|
readonly exhausted: Schema.Finite;
|
|
198
204
|
readonly cancelled: Schema.Finite;
|
|
199
205
|
}>>;
|
|
206
|
+
readonly latestAttempt: Schema.Union<readonly [Schema.Struct<{
|
|
207
|
+
readonly errorCode: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
208
|
+
readonly completedAt: Schema.String;
|
|
209
|
+
}>, Schema.Null]>;
|
|
200
210
|
}>;
|
|
201
211
|
export type WebhookEndpointPage = {
|
|
202
212
|
readonly items: ReadonlyArray<WebhookEndpointListItem>;
|
|
@@ -208,7 +218,7 @@ export declare const WebhookEndpointPage: Schema.Struct<{
|
|
|
208
218
|
readonly name: Schema.String;
|
|
209
219
|
readonly url: Schema.String;
|
|
210
220
|
readonly eventTypes: Schema.$Array<Schema.Union<readonly [Schema.Literal<"message.sent">, Schema.Literal<"message.delivered">, Schema.Literal<"message.read">, Schema.Literal<"message.failed">, Schema.Literal<"message.bounced">, Schema.Literal<"message.complained">, Schema.Literal<"message.received">, Schema.Literal<"message.opened">, Schema.Literal<"message.clicked">, Schema.Literal<"contact.created">, Schema.Literal<"contact.updated">, Schema.Literal<"contact.deleted">, Schema.Literal<"contact.subscribed">, Schema.Literal<"contact.unsubscribed">, Schema.Literal<"contact.resubscribed">, Schema.Literal<"contact.consent_changed">, Schema.Literal<"conversation.created">, Schema.Literal<"conversation.updated">, Schema.Literal<"conversation.archived">, Schema.Literal<"webhook.created">, Schema.Literal<"webhook.updated">, Schema.Literal<"webhook.deleted">, Schema.Literal<"webhook.test">, Schema.Literal<"domain.updated">, Schema.Literal<"domain.warming.updated">, Schema.Literal<"template.registration.updated">, Schema.Literal<"flow.registration.updated">, Schema.Literal<"whatsapp.number.connected">, Schema.Literal<"mailbox.message.received">, Schema.Literal<"mailbox.message.sent">, Schema.Literal<"mailbox.action.pending_approval">, Schema.Literal<"mailbox.action.resolved">, Schema.Literal<"mailbox.message.quarantined">, Schema.Literal<"mailbox.message.released">, Schema.Literal<"mailbox.message.discarded">, Schema.Literal<"mailbox.message.delivered">, Schema.Literal<"mailbox.message.read">, Schema.Literal<"mailbox.message.failed">, Schema.Literal<"journey.webhook">]>>;
|
|
211
|
-
readonly channels: Schema.Union<readonly [Schema.$Array<Schema.Literal<"email">>, Schema.Null]>;
|
|
221
|
+
readonly channels: Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>>, Schema.Null]>;
|
|
212
222
|
readonly mailboxIds: Schema.Union<readonly [Schema.$Array<Schema.brand<Schema.String, "MailboxId">>, Schema.Null]>;
|
|
213
223
|
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
214
224
|
readonly status: Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"disabled">]>;
|
|
@@ -229,15 +239,15 @@ export declare const WebhookEndpointPage: Schema.Struct<{
|
|
|
229
239
|
}>;
|
|
230
240
|
export type WebhooksListQuery = {
|
|
231
241
|
readonly limit?: number | null;
|
|
232
|
-
readonly cursor?:
|
|
233
|
-
readonly search?: string
|
|
234
|
-
readonly status?: "active" | "disabled"
|
|
242
|
+
readonly cursor?: string;
|
|
243
|
+
readonly search?: string;
|
|
244
|
+
readonly status?: "active" | "disabled";
|
|
235
245
|
};
|
|
236
246
|
export declare const WebhooksListQuery: Schema.Struct<{
|
|
237
247
|
readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
|
|
238
|
-
readonly cursor: Schema.optionalKey<Schema.
|
|
239
|
-
readonly search: Schema.optionalKey<Schema.
|
|
240
|
-
readonly status: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
248
|
+
readonly cursor: Schema.optionalKey<Schema.String>;
|
|
249
|
+
readonly search: Schema.optionalKey<Schema.String>;
|
|
250
|
+
readonly status: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"disabled">]>>;
|
|
241
251
|
}>;
|
|
242
252
|
export type WebhooksList200 = WebhookEndpointPage;
|
|
243
253
|
export declare const WebhooksList200: Schema.Struct<{
|
|
@@ -246,7 +256,7 @@ export declare const WebhooksList200: Schema.Struct<{
|
|
|
246
256
|
readonly name: Schema.String;
|
|
247
257
|
readonly url: Schema.String;
|
|
248
258
|
readonly eventTypes: Schema.$Array<Schema.Union<readonly [Schema.Literal<"message.sent">, Schema.Literal<"message.delivered">, Schema.Literal<"message.read">, Schema.Literal<"message.failed">, Schema.Literal<"message.bounced">, Schema.Literal<"message.complained">, Schema.Literal<"message.received">, Schema.Literal<"message.opened">, Schema.Literal<"message.clicked">, Schema.Literal<"contact.created">, Schema.Literal<"contact.updated">, Schema.Literal<"contact.deleted">, Schema.Literal<"contact.subscribed">, Schema.Literal<"contact.unsubscribed">, Schema.Literal<"contact.resubscribed">, Schema.Literal<"contact.consent_changed">, Schema.Literal<"conversation.created">, Schema.Literal<"conversation.updated">, Schema.Literal<"conversation.archived">, Schema.Literal<"webhook.created">, Schema.Literal<"webhook.updated">, Schema.Literal<"webhook.deleted">, Schema.Literal<"webhook.test">, Schema.Literal<"domain.updated">, Schema.Literal<"domain.warming.updated">, Schema.Literal<"template.registration.updated">, Schema.Literal<"flow.registration.updated">, Schema.Literal<"whatsapp.number.connected">, Schema.Literal<"mailbox.message.received">, Schema.Literal<"mailbox.message.sent">, Schema.Literal<"mailbox.action.pending_approval">, Schema.Literal<"mailbox.action.resolved">, Schema.Literal<"mailbox.message.quarantined">, Schema.Literal<"mailbox.message.released">, Schema.Literal<"mailbox.message.discarded">, Schema.Literal<"mailbox.message.delivered">, Schema.Literal<"mailbox.message.read">, Schema.Literal<"mailbox.message.failed">, Schema.Literal<"journey.webhook">]>>;
|
|
249
|
-
readonly channels: Schema.Union<readonly [Schema.$Array<Schema.Literal<"email">>, Schema.Null]>;
|
|
259
|
+
readonly channels: Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>>, Schema.Null]>;
|
|
250
260
|
readonly mailboxIds: Schema.Union<readonly [Schema.$Array<Schema.brand<Schema.String, "MailboxId">>, Schema.Null]>;
|
|
251
261
|
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
252
262
|
readonly status: Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"disabled">]>;
|
|
@@ -265,6 +275,8 @@ export declare const WebhooksList200: Schema.Struct<{
|
|
|
265
275
|
}>>;
|
|
266
276
|
readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
267
277
|
}>;
|
|
278
|
+
export type WebhooksList400 = MalformedRequestError;
|
|
279
|
+
export declare const WebhooksList400: typeof MalformedRequestError;
|
|
268
280
|
export type WebhooksList401 = UnauthorizedError;
|
|
269
281
|
export declare const WebhooksList401: typeof UnauthorizedError;
|
|
270
282
|
export type WebhooksList403 = ForbiddenError;
|
|
@@ -279,7 +291,7 @@ export type WebhooksCreateRequestJson = {
|
|
|
279
291
|
readonly name: string;
|
|
280
292
|
readonly url: string;
|
|
281
293
|
readonly eventTypes: ReadonlyArray<"message.sent" | "message.delivered" | "message.read" | "message.failed" | "message.bounced" | "message.complained" | "message.received" | "message.opened" | "message.clicked" | "contact.created" | "contact.updated" | "contact.deleted" | "contact.subscribed" | "contact.unsubscribed" | "contact.resubscribed" | "contact.consent_changed" | "conversation.created" | "conversation.updated" | "conversation.archived" | "webhook.created" | "webhook.updated" | "webhook.deleted" | "webhook.test" | "domain.updated" | "domain.warming.updated" | "template.registration.updated" | "flow.registration.updated" | "whatsapp.number.connected" | "mailbox.message.received" | "mailbox.message.sent" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.quarantined" | "mailbox.message.released" | "mailbox.message.discarded" | "mailbox.message.delivered" | "mailbox.message.read" | "mailbox.message.failed" | "journey.webhook">;
|
|
282
|
-
readonly channels?: ReadonlyArray<"email"> | null;
|
|
294
|
+
readonly channels?: ReadonlyArray<"sms" | "whatsapp" | "email"> | null;
|
|
283
295
|
readonly mailboxIds?: readonly [MailboxId, ...Array<MailboxId>] | null;
|
|
284
296
|
readonly namespaceId?: NamespaceId | null;
|
|
285
297
|
readonly headers?: {
|
|
@@ -291,7 +303,7 @@ export declare const WebhooksCreateRequestJson: Schema.Struct<{
|
|
|
291
303
|
readonly name: Schema.String;
|
|
292
304
|
readonly url: Schema.String;
|
|
293
305
|
readonly eventTypes: Schema.$Array<Schema.Union<readonly [Schema.Literal<"message.sent">, Schema.Literal<"message.delivered">, Schema.Literal<"message.read">, Schema.Literal<"message.failed">, Schema.Literal<"message.bounced">, Schema.Literal<"message.complained">, Schema.Literal<"message.received">, Schema.Literal<"message.opened">, Schema.Literal<"message.clicked">, Schema.Literal<"contact.created">, Schema.Literal<"contact.updated">, Schema.Literal<"contact.deleted">, Schema.Literal<"contact.subscribed">, Schema.Literal<"contact.unsubscribed">, Schema.Literal<"contact.resubscribed">, Schema.Literal<"contact.consent_changed">, Schema.Literal<"conversation.created">, Schema.Literal<"conversation.updated">, Schema.Literal<"conversation.archived">, Schema.Literal<"webhook.created">, Schema.Literal<"webhook.updated">, Schema.Literal<"webhook.deleted">, Schema.Literal<"webhook.test">, Schema.Literal<"domain.updated">, Schema.Literal<"domain.warming.updated">, Schema.Literal<"template.registration.updated">, Schema.Literal<"flow.registration.updated">, Schema.Literal<"whatsapp.number.connected">, Schema.Literal<"mailbox.message.received">, Schema.Literal<"mailbox.message.sent">, Schema.Literal<"mailbox.action.pending_approval">, Schema.Literal<"mailbox.action.resolved">, Schema.Literal<"mailbox.message.quarantined">, Schema.Literal<"mailbox.message.released">, Schema.Literal<"mailbox.message.discarded">, Schema.Literal<"mailbox.message.delivered">, Schema.Literal<"mailbox.message.read">, Schema.Literal<"mailbox.message.failed">, Schema.Literal<"journey.webhook">]>>;
|
|
294
|
-
readonly channels: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Literal<"email">>, Schema.Null]>>;
|
|
306
|
+
readonly channels: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>>, Schema.Null]>>;
|
|
295
307
|
readonly mailboxIds: Schema.optionalKey<Schema.Union<readonly [Schema.TupleWithRest<Schema.Tuple<readonly [Schema.brand<Schema.String, "MailboxId">]>, readonly [Schema.brand<Schema.String, "MailboxId">]>, Schema.Null]>>;
|
|
296
308
|
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
297
309
|
readonly headers: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.String>, Schema.Null]>>;
|
|
@@ -307,7 +319,7 @@ export declare const WebhooksCreate201: Schema.Struct<{
|
|
|
307
319
|
readonly name: Schema.String;
|
|
308
320
|
readonly url: Schema.String;
|
|
309
321
|
readonly eventTypes: Schema.$Array<Schema.Union<readonly [Schema.Literal<"message.sent">, Schema.Literal<"message.delivered">, Schema.Literal<"message.read">, Schema.Literal<"message.failed">, Schema.Literal<"message.bounced">, Schema.Literal<"message.complained">, Schema.Literal<"message.received">, Schema.Literal<"message.opened">, Schema.Literal<"message.clicked">, Schema.Literal<"contact.created">, Schema.Literal<"contact.updated">, Schema.Literal<"contact.deleted">, Schema.Literal<"contact.subscribed">, Schema.Literal<"contact.unsubscribed">, Schema.Literal<"contact.resubscribed">, Schema.Literal<"contact.consent_changed">, Schema.Literal<"conversation.created">, Schema.Literal<"conversation.updated">, Schema.Literal<"conversation.archived">, Schema.Literal<"webhook.created">, Schema.Literal<"webhook.updated">, Schema.Literal<"webhook.deleted">, Schema.Literal<"webhook.test">, Schema.Literal<"domain.updated">, Schema.Literal<"domain.warming.updated">, Schema.Literal<"template.registration.updated">, Schema.Literal<"flow.registration.updated">, Schema.Literal<"whatsapp.number.connected">, Schema.Literal<"mailbox.message.received">, Schema.Literal<"mailbox.message.sent">, Schema.Literal<"mailbox.action.pending_approval">, Schema.Literal<"mailbox.action.resolved">, Schema.Literal<"mailbox.message.quarantined">, Schema.Literal<"mailbox.message.released">, Schema.Literal<"mailbox.message.discarded">, Schema.Literal<"mailbox.message.delivered">, Schema.Literal<"mailbox.message.read">, Schema.Literal<"mailbox.message.failed">, Schema.Literal<"journey.webhook">]>>;
|
|
310
|
-
readonly channels: Schema.Union<readonly [Schema.$Array<Schema.Literal<"email">>, Schema.Null]>;
|
|
322
|
+
readonly channels: Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>>, Schema.Null]>;
|
|
311
323
|
readonly mailboxIds: Schema.Union<readonly [Schema.$Array<Schema.brand<Schema.String, "MailboxId">>, Schema.Null]>;
|
|
312
324
|
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
313
325
|
readonly status: Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"disabled">]>;
|
|
@@ -319,6 +331,8 @@ export declare const WebhooksCreate201: Schema.Struct<{
|
|
|
319
331
|
}>;
|
|
320
332
|
readonly secret: Schema.RedactedFromValue<Schema.Codec<string, string, never, never>>;
|
|
321
333
|
}>;
|
|
334
|
+
export type WebhooksCreate400 = MalformedRequestError;
|
|
335
|
+
export declare const WebhooksCreate400: typeof MalformedRequestError;
|
|
322
336
|
export type WebhooksCreate401 = UnauthorizedError;
|
|
323
337
|
export declare const WebhooksCreate401: typeof UnauthorizedError;
|
|
324
338
|
export type WebhooksCreate402 = PaymentRequiredError;
|
|
@@ -349,7 +363,7 @@ export declare const WebhooksGet200: Schema.Struct<{
|
|
|
349
363
|
readonly name: Schema.String;
|
|
350
364
|
readonly url: Schema.String;
|
|
351
365
|
readonly eventTypes: Schema.$Array<Schema.Union<readonly [Schema.Literal<"message.sent">, Schema.Literal<"message.delivered">, Schema.Literal<"message.read">, Schema.Literal<"message.failed">, Schema.Literal<"message.bounced">, Schema.Literal<"message.complained">, Schema.Literal<"message.received">, Schema.Literal<"message.opened">, Schema.Literal<"message.clicked">, Schema.Literal<"contact.created">, Schema.Literal<"contact.updated">, Schema.Literal<"contact.deleted">, Schema.Literal<"contact.subscribed">, Schema.Literal<"contact.unsubscribed">, Schema.Literal<"contact.resubscribed">, Schema.Literal<"contact.consent_changed">, Schema.Literal<"conversation.created">, Schema.Literal<"conversation.updated">, Schema.Literal<"conversation.archived">, Schema.Literal<"webhook.created">, Schema.Literal<"webhook.updated">, Schema.Literal<"webhook.deleted">, Schema.Literal<"webhook.test">, Schema.Literal<"domain.updated">, Schema.Literal<"domain.warming.updated">, Schema.Literal<"template.registration.updated">, Schema.Literal<"flow.registration.updated">, Schema.Literal<"whatsapp.number.connected">, Schema.Literal<"mailbox.message.received">, Schema.Literal<"mailbox.message.sent">, Schema.Literal<"mailbox.action.pending_approval">, Schema.Literal<"mailbox.action.resolved">, Schema.Literal<"mailbox.message.quarantined">, Schema.Literal<"mailbox.message.released">, Schema.Literal<"mailbox.message.discarded">, Schema.Literal<"mailbox.message.delivered">, Schema.Literal<"mailbox.message.read">, Schema.Literal<"mailbox.message.failed">, Schema.Literal<"journey.webhook">]>>;
|
|
352
|
-
readonly channels: Schema.Union<readonly [Schema.$Array<Schema.Literal<"email">>, Schema.Null]>;
|
|
366
|
+
readonly channels: Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>>, Schema.Null]>;
|
|
353
367
|
readonly mailboxIds: Schema.Union<readonly [Schema.$Array<Schema.brand<Schema.String, "MailboxId">>, Schema.Null]>;
|
|
354
368
|
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
355
369
|
readonly status: Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"disabled">]>;
|
|
@@ -359,6 +373,8 @@ export declare const WebhooksGet200: Schema.Struct<{
|
|
|
359
373
|
readonly createdAt: Schema.String;
|
|
360
374
|
readonly updatedAt: Schema.String;
|
|
361
375
|
}>;
|
|
376
|
+
export type WebhooksGet400 = MalformedRequestError;
|
|
377
|
+
export declare const WebhooksGet400: typeof MalformedRequestError;
|
|
362
378
|
export type WebhooksGet401 = UnauthorizedError;
|
|
363
379
|
export declare const WebhooksGet401: typeof UnauthorizedError;
|
|
364
380
|
export type WebhooksGet403 = ForbiddenError;
|
|
@@ -381,6 +397,8 @@ export type WebhooksRemove200 = SuccessResponse;
|
|
|
381
397
|
export declare const WebhooksRemove200: Schema.Struct<{
|
|
382
398
|
readonly success: Schema.Boolean;
|
|
383
399
|
}>;
|
|
400
|
+
export type WebhooksRemove400 = MalformedRequestError;
|
|
401
|
+
export declare const WebhooksRemove400: typeof MalformedRequestError;
|
|
384
402
|
export type WebhooksRemove401 = UnauthorizedError;
|
|
385
403
|
export declare const WebhooksRemove401: typeof UnauthorizedError;
|
|
386
404
|
export type WebhooksRemove403 = ForbiddenError;
|
|
@@ -405,7 +423,7 @@ export type WebhooksUpdateRequestJson = {
|
|
|
405
423
|
readonly name?: string | null;
|
|
406
424
|
readonly url?: string | null;
|
|
407
425
|
readonly eventTypes?: ReadonlyArray<"message.sent" | "message.delivered" | "message.read" | "message.failed" | "message.bounced" | "message.complained" | "message.received" | "message.opened" | "message.clicked" | "contact.created" | "contact.updated" | "contact.deleted" | "contact.subscribed" | "contact.unsubscribed" | "contact.resubscribed" | "contact.consent_changed" | "conversation.created" | "conversation.updated" | "conversation.archived" | "webhook.created" | "webhook.updated" | "webhook.deleted" | "webhook.test" | "domain.updated" | "domain.warming.updated" | "template.registration.updated" | "flow.registration.updated" | "whatsapp.number.connected" | "mailbox.message.received" | "mailbox.message.sent" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.quarantined" | "mailbox.message.released" | "mailbox.message.discarded" | "mailbox.message.delivered" | "mailbox.message.read" | "mailbox.message.failed" | "journey.webhook"> | null;
|
|
408
|
-
readonly channels?: ReadonlyArray<"email"> | null;
|
|
426
|
+
readonly channels?: ReadonlyArray<"sms" | "whatsapp" | "email"> | null;
|
|
409
427
|
readonly mailboxIds?: readonly [MailboxId, ...Array<MailboxId>] | null;
|
|
410
428
|
readonly namespaceId?: NamespaceId | null;
|
|
411
429
|
readonly headers?: {
|
|
@@ -417,7 +435,7 @@ export declare const WebhooksUpdateRequestJson: Schema.Struct<{
|
|
|
417
435
|
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
418
436
|
readonly url: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
419
437
|
readonly eventTypes: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Literal<"message.sent">, Schema.Literal<"message.delivered">, Schema.Literal<"message.read">, Schema.Literal<"message.failed">, Schema.Literal<"message.bounced">, Schema.Literal<"message.complained">, Schema.Literal<"message.received">, Schema.Literal<"message.opened">, Schema.Literal<"message.clicked">, Schema.Literal<"contact.created">, Schema.Literal<"contact.updated">, Schema.Literal<"contact.deleted">, Schema.Literal<"contact.subscribed">, Schema.Literal<"contact.unsubscribed">, Schema.Literal<"contact.resubscribed">, Schema.Literal<"contact.consent_changed">, Schema.Literal<"conversation.created">, Schema.Literal<"conversation.updated">, Schema.Literal<"conversation.archived">, Schema.Literal<"webhook.created">, Schema.Literal<"webhook.updated">, Schema.Literal<"webhook.deleted">, Schema.Literal<"webhook.test">, Schema.Literal<"domain.updated">, Schema.Literal<"domain.warming.updated">, Schema.Literal<"template.registration.updated">, Schema.Literal<"flow.registration.updated">, Schema.Literal<"whatsapp.number.connected">, Schema.Literal<"mailbox.message.received">, Schema.Literal<"mailbox.message.sent">, Schema.Literal<"mailbox.action.pending_approval">, Schema.Literal<"mailbox.action.resolved">, Schema.Literal<"mailbox.message.quarantined">, Schema.Literal<"mailbox.message.released">, Schema.Literal<"mailbox.message.discarded">, Schema.Literal<"mailbox.message.delivered">, Schema.Literal<"mailbox.message.read">, Schema.Literal<"mailbox.message.failed">, Schema.Literal<"journey.webhook">]>>, Schema.Null]>>;
|
|
420
|
-
readonly channels: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Literal<"email">>, Schema.Null]>>;
|
|
438
|
+
readonly channels: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>>, Schema.Null]>>;
|
|
421
439
|
readonly mailboxIds: Schema.optionalKey<Schema.Union<readonly [Schema.TupleWithRest<Schema.Tuple<readonly [Schema.brand<Schema.String, "MailboxId">]>, readonly [Schema.brand<Schema.String, "MailboxId">]>, Schema.Null]>>;
|
|
422
440
|
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
423
441
|
readonly headers: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.String>, Schema.Null]>>;
|
|
@@ -429,7 +447,7 @@ export declare const WebhooksUpdate200: Schema.Struct<{
|
|
|
429
447
|
readonly name: Schema.String;
|
|
430
448
|
readonly url: Schema.String;
|
|
431
449
|
readonly eventTypes: Schema.$Array<Schema.Union<readonly [Schema.Literal<"message.sent">, Schema.Literal<"message.delivered">, Schema.Literal<"message.read">, Schema.Literal<"message.failed">, Schema.Literal<"message.bounced">, Schema.Literal<"message.complained">, Schema.Literal<"message.received">, Schema.Literal<"message.opened">, Schema.Literal<"message.clicked">, Schema.Literal<"contact.created">, Schema.Literal<"contact.updated">, Schema.Literal<"contact.deleted">, Schema.Literal<"contact.subscribed">, Schema.Literal<"contact.unsubscribed">, Schema.Literal<"contact.resubscribed">, Schema.Literal<"contact.consent_changed">, Schema.Literal<"conversation.created">, Schema.Literal<"conversation.updated">, Schema.Literal<"conversation.archived">, Schema.Literal<"webhook.created">, Schema.Literal<"webhook.updated">, Schema.Literal<"webhook.deleted">, Schema.Literal<"webhook.test">, Schema.Literal<"domain.updated">, Schema.Literal<"domain.warming.updated">, Schema.Literal<"template.registration.updated">, Schema.Literal<"flow.registration.updated">, Schema.Literal<"whatsapp.number.connected">, Schema.Literal<"mailbox.message.received">, Schema.Literal<"mailbox.message.sent">, Schema.Literal<"mailbox.action.pending_approval">, Schema.Literal<"mailbox.action.resolved">, Schema.Literal<"mailbox.message.quarantined">, Schema.Literal<"mailbox.message.released">, Schema.Literal<"mailbox.message.discarded">, Schema.Literal<"mailbox.message.delivered">, Schema.Literal<"mailbox.message.read">, Schema.Literal<"mailbox.message.failed">, Schema.Literal<"journey.webhook">]>>;
|
|
432
|
-
readonly channels: Schema.Union<readonly [Schema.$Array<Schema.Literal<"email">>, Schema.Null]>;
|
|
450
|
+
readonly channels: Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>>, Schema.Null]>;
|
|
433
451
|
readonly mailboxIds: Schema.Union<readonly [Schema.$Array<Schema.brand<Schema.String, "MailboxId">>, Schema.Null]>;
|
|
434
452
|
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
435
453
|
readonly status: Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"disabled">]>;
|
|
@@ -439,6 +457,8 @@ export declare const WebhooksUpdate200: Schema.Struct<{
|
|
|
439
457
|
readonly createdAt: Schema.String;
|
|
440
458
|
readonly updatedAt: Schema.String;
|
|
441
459
|
}>;
|
|
460
|
+
export type WebhooksUpdate400 = MalformedRequestError;
|
|
461
|
+
export declare const WebhooksUpdate400: typeof MalformedRequestError;
|
|
442
462
|
export type WebhooksUpdate401 = UnauthorizedError;
|
|
443
463
|
export declare const WebhooksUpdate401: typeof UnauthorizedError;
|
|
444
464
|
export type WebhooksUpdate403 = ForbiddenError;
|
|
@@ -473,6 +493,8 @@ export declare const WebhooksRetryDelivery200: Schema.Struct<{
|
|
|
473
493
|
readonly attemptId: Schema.brand<Schema.String, "WebhookAttemptId">;
|
|
474
494
|
readonly outcome: Schema.Union<readonly [Schema.Literal<"succeeded">, Schema.Literal<"failed">]>;
|
|
475
495
|
}>;
|
|
496
|
+
export type WebhooksRetryDelivery400 = MalformedRequestError;
|
|
497
|
+
export declare const WebhooksRetryDelivery400: typeof MalformedRequestError;
|
|
476
498
|
export type WebhooksRetryDelivery401 = UnauthorizedError;
|
|
477
499
|
export declare const WebhooksRetryDelivery401: typeof UnauthorizedError;
|
|
478
500
|
export type WebhooksRetryDelivery403 = ForbiddenError;
|
|
@@ -495,11 +517,11 @@ export declare const WebhooksGetLogsPathParams: Schema.Struct<{
|
|
|
495
517
|
}>;
|
|
496
518
|
export type WebhooksGetLogsQuery = {
|
|
497
519
|
readonly limit?: number | null;
|
|
498
|
-
readonly cursor?:
|
|
520
|
+
readonly cursor?: string;
|
|
499
521
|
};
|
|
500
522
|
export declare const WebhooksGetLogsQuery: Schema.Struct<{
|
|
501
523
|
readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
|
|
502
|
-
readonly cursor: Schema.optionalKey<Schema.
|
|
524
|
+
readonly cursor: Schema.optionalKey<Schema.String>;
|
|
503
525
|
}>;
|
|
504
526
|
export type WebhooksGetLogs200 = WebhookDeliveryPage;
|
|
505
527
|
export declare const WebhooksGetLogs200: Schema.Struct<{
|
|
@@ -518,9 +540,10 @@ export declare const WebhooksGetLogs200: Schema.Struct<{
|
|
|
518
540
|
readonly attempts: Schema.$Array<Schema.Struct<{
|
|
519
541
|
readonly id: Schema.brand<Schema.String, "WebhookAttemptId">;
|
|
520
542
|
readonly deliveryId: Schema.brand<Schema.String, "WebhookDeliveryId">;
|
|
521
|
-
readonly kind: Schema.Union<readonly [Schema.Literal<"automatic">, Schema.Literal<"manual">]>;
|
|
543
|
+
readonly kind: Schema.Union<readonly [Schema.Literal<"automatic">, Schema.Literal<"manual">, Schema.Literal<"replay">]>;
|
|
544
|
+
readonly queueMessageId: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
522
545
|
readonly attemptNumber: Schema.Finite;
|
|
523
|
-
readonly classification: Schema.Union<readonly [Schema.Literal<"success">, Schema.Literal<"http-error">, Schema.Literal<"network-error">, Schema.Literal<"timeout">, Schema.Literal<"cancelled">]>;
|
|
546
|
+
readonly classification: Schema.Union<readonly [Schema.Literal<"success">, Schema.Literal<"http-error">, Schema.Literal<"network-error">, Schema.Literal<"timeout">, Schema.Literal<"cancelled">, Schema.Literal<"skipped">]>;
|
|
524
547
|
readonly attemptedAt: Schema.String;
|
|
525
548
|
readonly responseStatus: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
526
549
|
readonly responseHeaders: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.String>, Schema.Null]>;
|
|
@@ -532,6 +555,8 @@ export declare const WebhooksGetLogs200: Schema.Struct<{
|
|
|
532
555
|
}>>;
|
|
533
556
|
readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
534
557
|
}>;
|
|
558
|
+
export type WebhooksGetLogs400 = MalformedRequestError;
|
|
559
|
+
export declare const WebhooksGetLogs400: typeof MalformedRequestError;
|
|
535
560
|
export type WebhooksGetLogs401 = UnauthorizedError;
|
|
536
561
|
export declare const WebhooksGetLogs401: typeof UnauthorizedError;
|
|
537
562
|
export type WebhooksGetLogs403 = ForbiddenError;
|
|
@@ -556,6 +581,8 @@ export type WebhooksRegenerateSecret200 = {
|
|
|
556
581
|
export declare const WebhooksRegenerateSecret200: Schema.Struct<{
|
|
557
582
|
readonly secret: Schema.RedactedFromValue<Schema.Codec<string, string, never, never>>;
|
|
558
583
|
}>;
|
|
584
|
+
export type WebhooksRegenerateSecret400 = MalformedRequestError;
|
|
585
|
+
export declare const WebhooksRegenerateSecret400: typeof MalformedRequestError;
|
|
559
586
|
export type WebhooksRegenerateSecret401 = UnauthorizedError;
|
|
560
587
|
export declare const WebhooksRegenerateSecret401: typeof UnauthorizedError;
|
|
561
588
|
export type WebhooksRegenerateSecret403 = ForbiddenError;
|
|
@@ -580,6 +607,8 @@ export declare const WebhooksGetSecret200: Schema.Struct<{
|
|
|
580
607
|
readonly createdAt: Schema.String;
|
|
581
608
|
readonly previousExpiresAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
582
609
|
}>;
|
|
610
|
+
export type WebhooksGetSecret400 = MalformedRequestError;
|
|
611
|
+
export declare const WebhooksGetSecret400: typeof MalformedRequestError;
|
|
583
612
|
export type WebhooksGetSecret401 = UnauthorizedError;
|
|
584
613
|
export declare const WebhooksGetSecret401: typeof UnauthorizedError;
|
|
585
614
|
export type WebhooksGetSecret403 = ForbiddenError;
|
|
@@ -599,12 +628,12 @@ export declare const WebhooksGetStatsPathParams: Schema.Struct<{
|
|
|
599
628
|
readonly id: Schema.brand<Schema.String, "WebhookEndpointId">;
|
|
600
629
|
}>;
|
|
601
630
|
export type WebhooksGetStatsQuery = {
|
|
602
|
-
readonly after?: string
|
|
603
|
-
readonly before?: string
|
|
631
|
+
readonly after?: string;
|
|
632
|
+
readonly before?: string;
|
|
604
633
|
};
|
|
605
634
|
export declare const WebhooksGetStatsQuery: Schema.Struct<{
|
|
606
|
-
readonly after: Schema.optionalKey<Schema.
|
|
607
|
-
readonly before: Schema.optionalKey<Schema.
|
|
635
|
+
readonly after: Schema.optionalKey<Schema.String>;
|
|
636
|
+
readonly before: Schema.optionalKey<Schema.String>;
|
|
608
637
|
}>;
|
|
609
638
|
export type WebhooksGetStats200 = WebhookStatsResponse;
|
|
610
639
|
export declare const WebhooksGetStats200: Schema.Struct<{
|
|
@@ -620,7 +649,13 @@ export declare const WebhooksGetStats200: Schema.Struct<{
|
|
|
620
649
|
readonly exhausted: Schema.Finite;
|
|
621
650
|
readonly cancelled: Schema.Finite;
|
|
622
651
|
}>>;
|
|
652
|
+
readonly latestAttempt: Schema.Union<readonly [Schema.Struct<{
|
|
653
|
+
readonly errorCode: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
654
|
+
readonly completedAt: Schema.String;
|
|
655
|
+
}>, Schema.Null]>;
|
|
623
656
|
}>;
|
|
657
|
+
export type WebhooksGetStats400 = MalformedRequestError;
|
|
658
|
+
export declare const WebhooksGetStats400: typeof MalformedRequestError;
|
|
624
659
|
export type WebhooksGetStats401 = UnauthorizedError;
|
|
625
660
|
export declare const WebhooksGetStats401: typeof UnauthorizedError;
|
|
626
661
|
export type WebhooksGetStats403 = ForbiddenError;
|
|
@@ -657,6 +692,8 @@ export declare const WebhooksTest202: Schema.Struct<{
|
|
|
657
692
|
readonly eventId: Schema.brand<Schema.String, "WebhookEventId">;
|
|
658
693
|
readonly deliveryId: Schema.brand<Schema.String, "WebhookDeliveryId">;
|
|
659
694
|
}>;
|
|
695
|
+
export type WebhooksTest400 = MalformedRequestError;
|
|
696
|
+
export declare const WebhooksTest400: typeof MalformedRequestError;
|
|
660
697
|
export type WebhooksTest401 = UnauthorizedError;
|
|
661
698
|
export declare const WebhooksTest401: typeof UnauthorizedError;
|
|
662
699
|
export type WebhooksTest403 = ForbiddenError;
|
|
@@ -673,7 +710,7 @@ declare const WebhooksGroup_base: HttpApiGroup.HttpApiGroup<"Webhooks", HttpApiE
|
|
|
673
710
|
readonly name: Schema.String;
|
|
674
711
|
readonly url: Schema.String;
|
|
675
712
|
readonly eventTypes: Schema.$Array<Schema.Union<readonly [Schema.Literal<"message.sent">, Schema.Literal<"message.delivered">, Schema.Literal<"message.read">, Schema.Literal<"message.failed">, Schema.Literal<"message.bounced">, Schema.Literal<"message.complained">, Schema.Literal<"message.received">, Schema.Literal<"message.opened">, Schema.Literal<"message.clicked">, Schema.Literal<"contact.created">, Schema.Literal<"contact.updated">, Schema.Literal<"contact.deleted">, Schema.Literal<"contact.subscribed">, Schema.Literal<"contact.unsubscribed">, Schema.Literal<"contact.resubscribed">, Schema.Literal<"contact.consent_changed">, Schema.Literal<"conversation.created">, Schema.Literal<"conversation.updated">, Schema.Literal<"conversation.archived">, Schema.Literal<"webhook.created">, Schema.Literal<"webhook.updated">, Schema.Literal<"webhook.deleted">, Schema.Literal<"webhook.test">, Schema.Literal<"domain.updated">, Schema.Literal<"domain.warming.updated">, Schema.Literal<"template.registration.updated">, Schema.Literal<"flow.registration.updated">, Schema.Literal<"whatsapp.number.connected">, Schema.Literal<"mailbox.message.received">, Schema.Literal<"mailbox.message.sent">, Schema.Literal<"mailbox.action.pending_approval">, Schema.Literal<"mailbox.action.resolved">, Schema.Literal<"mailbox.message.quarantined">, Schema.Literal<"mailbox.message.released">, Schema.Literal<"mailbox.message.discarded">, Schema.Literal<"mailbox.message.delivered">, Schema.Literal<"mailbox.message.read">, Schema.Literal<"mailbox.message.failed">, Schema.Literal<"journey.webhook">]>>;
|
|
676
|
-
readonly channels: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Literal<"email">>, Schema.Null]>>;
|
|
713
|
+
readonly channels: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>>, Schema.Null]>>;
|
|
677
714
|
readonly mailboxIds: Schema.optionalKey<Schema.Union<readonly [Schema.TupleWithRest<Schema.Tuple<readonly [Schema.brand<Schema.String, "MailboxId">]>, readonly [Schema.brand<Schema.String, "MailboxId">]>, Schema.Null]>>;
|
|
678
715
|
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
679
716
|
readonly headers: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.String>, Schema.Null]>>;
|
|
@@ -684,7 +721,7 @@ declare const WebhooksGroup_base: HttpApiGroup.HttpApiGroup<"Webhooks", HttpApiE
|
|
|
684
721
|
readonly name: Schema.String;
|
|
685
722
|
readonly url: Schema.String;
|
|
686
723
|
readonly eventTypes: Schema.$Array<Schema.Union<readonly [Schema.Literal<"message.sent">, Schema.Literal<"message.delivered">, Schema.Literal<"message.read">, Schema.Literal<"message.failed">, Schema.Literal<"message.bounced">, Schema.Literal<"message.complained">, Schema.Literal<"message.received">, Schema.Literal<"message.opened">, Schema.Literal<"message.clicked">, Schema.Literal<"contact.created">, Schema.Literal<"contact.updated">, Schema.Literal<"contact.deleted">, Schema.Literal<"contact.subscribed">, Schema.Literal<"contact.unsubscribed">, Schema.Literal<"contact.resubscribed">, Schema.Literal<"contact.consent_changed">, Schema.Literal<"conversation.created">, Schema.Literal<"conversation.updated">, Schema.Literal<"conversation.archived">, Schema.Literal<"webhook.created">, Schema.Literal<"webhook.updated">, Schema.Literal<"webhook.deleted">, Schema.Literal<"webhook.test">, Schema.Literal<"domain.updated">, Schema.Literal<"domain.warming.updated">, Schema.Literal<"template.registration.updated">, Schema.Literal<"flow.registration.updated">, Schema.Literal<"whatsapp.number.connected">, Schema.Literal<"mailbox.message.received">, Schema.Literal<"mailbox.message.sent">, Schema.Literal<"mailbox.action.pending_approval">, Schema.Literal<"mailbox.action.resolved">, Schema.Literal<"mailbox.message.quarantined">, Schema.Literal<"mailbox.message.released">, Schema.Literal<"mailbox.message.discarded">, Schema.Literal<"mailbox.message.delivered">, Schema.Literal<"mailbox.message.read">, Schema.Literal<"mailbox.message.failed">, Schema.Literal<"journey.webhook">]>>;
|
|
687
|
-
readonly channels: Schema.Union<readonly [Schema.$Array<Schema.Literal<"email">>, Schema.Null]>;
|
|
724
|
+
readonly channels: Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>>, Schema.Null]>;
|
|
688
725
|
readonly mailboxIds: Schema.Union<readonly [Schema.$Array<Schema.brand<Schema.String, "MailboxId">>, Schema.Null]>;
|
|
689
726
|
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
690
727
|
readonly status: Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"disabled">]>;
|
|
@@ -755,6 +792,26 @@ declare const WebhooksGroup_base: HttpApiGroup.HttpApiGroup<"Webhooks", HttpApiE
|
|
|
755
792
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
756
793
|
readonly message: Schema.String;
|
|
757
794
|
readonly retryAfterSeconds: Schema.Finite;
|
|
795
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
796
|
+
readonly _tag: "MalformedRequestError";
|
|
797
|
+
readonly message: string;
|
|
798
|
+
readonly fields: {
|
|
799
|
+
readonly [x: string]: readonly string[];
|
|
800
|
+
};
|
|
801
|
+
}, readonly [Schema.Struct<{
|
|
802
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
803
|
+
readonly message: Schema.String;
|
|
804
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
805
|
+
}>], {
|
|
806
|
+
readonly _tag: "MalformedRequestError";
|
|
807
|
+
readonly message: string;
|
|
808
|
+
readonly fields: {
|
|
809
|
+
readonly [x: string]: readonly string[];
|
|
810
|
+
};
|
|
811
|
+
}>, Schema.Struct<{
|
|
812
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
813
|
+
readonly message: Schema.String;
|
|
814
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
758
815
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<PaymentRequiredError, {
|
|
759
816
|
readonly _tag: "PaymentRequiredError";
|
|
760
817
|
readonly message: string;
|
|
@@ -838,7 +895,7 @@ declare const WebhooksGroup_base: HttpApiGroup.HttpApiGroup<"Webhooks", HttpApiE
|
|
|
838
895
|
readonly name: Schema.String;
|
|
839
896
|
readonly url: Schema.String;
|
|
840
897
|
readonly eventTypes: Schema.$Array<Schema.Union<readonly [Schema.Literal<"message.sent">, Schema.Literal<"message.delivered">, Schema.Literal<"message.read">, Schema.Literal<"message.failed">, Schema.Literal<"message.bounced">, Schema.Literal<"message.complained">, Schema.Literal<"message.received">, Schema.Literal<"message.opened">, Schema.Literal<"message.clicked">, Schema.Literal<"contact.created">, Schema.Literal<"contact.updated">, Schema.Literal<"contact.deleted">, Schema.Literal<"contact.subscribed">, Schema.Literal<"contact.unsubscribed">, Schema.Literal<"contact.resubscribed">, Schema.Literal<"contact.consent_changed">, Schema.Literal<"conversation.created">, Schema.Literal<"conversation.updated">, Schema.Literal<"conversation.archived">, Schema.Literal<"webhook.created">, Schema.Literal<"webhook.updated">, Schema.Literal<"webhook.deleted">, Schema.Literal<"webhook.test">, Schema.Literal<"domain.updated">, Schema.Literal<"domain.warming.updated">, Schema.Literal<"template.registration.updated">, Schema.Literal<"flow.registration.updated">, Schema.Literal<"whatsapp.number.connected">, Schema.Literal<"mailbox.message.received">, Schema.Literal<"mailbox.message.sent">, Schema.Literal<"mailbox.action.pending_approval">, Schema.Literal<"mailbox.action.resolved">, Schema.Literal<"mailbox.message.quarantined">, Schema.Literal<"mailbox.message.released">, Schema.Literal<"mailbox.message.discarded">, Schema.Literal<"mailbox.message.delivered">, Schema.Literal<"mailbox.message.read">, Schema.Literal<"mailbox.message.failed">, Schema.Literal<"journey.webhook">]>>;
|
|
841
|
-
readonly channels: Schema.Union<readonly [Schema.$Array<Schema.Literal<"email">>, Schema.Null]>;
|
|
898
|
+
readonly channels: Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>>, Schema.Null]>;
|
|
842
899
|
readonly mailboxIds: Schema.Union<readonly [Schema.$Array<Schema.brand<Schema.String, "MailboxId">>, Schema.Null]>;
|
|
843
900
|
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
844
901
|
readonly status: Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"disabled">]>;
|
|
@@ -875,6 +932,26 @@ declare const WebhooksGroup_base: HttpApiGroup.HttpApiGroup<"Webhooks", HttpApiE
|
|
|
875
932
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
876
933
|
readonly message: Schema.String;
|
|
877
934
|
readonly retryAfterSeconds: Schema.Finite;
|
|
935
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
936
|
+
readonly _tag: "MalformedRequestError";
|
|
937
|
+
readonly message: string;
|
|
938
|
+
readonly fields: {
|
|
939
|
+
readonly [x: string]: readonly string[];
|
|
940
|
+
};
|
|
941
|
+
}, readonly [Schema.Struct<{
|
|
942
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
943
|
+
readonly message: Schema.String;
|
|
944
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
945
|
+
}>], {
|
|
946
|
+
readonly _tag: "MalformedRequestError";
|
|
947
|
+
readonly message: string;
|
|
948
|
+
readonly fields: {
|
|
949
|
+
readonly [x: string]: readonly string[];
|
|
950
|
+
};
|
|
951
|
+
}>, Schema.Struct<{
|
|
952
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
953
|
+
readonly message: Schema.String;
|
|
954
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
878
955
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
879
956
|
readonly _tag: "ResourceNotFoundError";
|
|
880
957
|
readonly resource: string;
|
|
@@ -931,7 +1008,7 @@ declare const WebhooksGroup_base: HttpApiGroup.HttpApiGroup<"Webhooks", HttpApiE
|
|
|
931
1008
|
readonly id: Schema.brand<Schema.String, "WebhookEndpointId">;
|
|
932
1009
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
933
1010
|
readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
|
|
934
|
-
readonly cursor: Schema.optionalKey<Schema.
|
|
1011
|
+
readonly cursor: Schema.optionalKey<Schema.String>;
|
|
935
1012
|
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
936
1013
|
readonly items: Schema.$Array<Schema.Struct<{
|
|
937
1014
|
readonly id: Schema.brand<Schema.String, "WebhookDeliveryId">;
|
|
@@ -948,9 +1025,10 @@ declare const WebhooksGroup_base: HttpApiGroup.HttpApiGroup<"Webhooks", HttpApiE
|
|
|
948
1025
|
readonly attempts: Schema.$Array<Schema.Struct<{
|
|
949
1026
|
readonly id: Schema.brand<Schema.String, "WebhookAttemptId">;
|
|
950
1027
|
readonly deliveryId: Schema.brand<Schema.String, "WebhookDeliveryId">;
|
|
951
|
-
readonly kind: Schema.Union<readonly [Schema.Literal<"automatic">, Schema.Literal<"manual">]>;
|
|
1028
|
+
readonly kind: Schema.Union<readonly [Schema.Literal<"automatic">, Schema.Literal<"manual">, Schema.Literal<"replay">]>;
|
|
1029
|
+
readonly queueMessageId: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
952
1030
|
readonly attemptNumber: Schema.Finite;
|
|
953
|
-
readonly classification: Schema.Union<readonly [Schema.Literal<"success">, Schema.Literal<"http-error">, Schema.Literal<"network-error">, Schema.Literal<"timeout">, Schema.Literal<"cancelled">]>;
|
|
1031
|
+
readonly classification: Schema.Union<readonly [Schema.Literal<"success">, Schema.Literal<"http-error">, Schema.Literal<"network-error">, Schema.Literal<"timeout">, Schema.Literal<"cancelled">, Schema.Literal<"skipped">]>;
|
|
954
1032
|
readonly attemptedAt: Schema.String;
|
|
955
1033
|
readonly responseStatus: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
956
1034
|
readonly responseHeaders: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.String>, Schema.Null]>;
|
|
@@ -989,6 +1067,26 @@ declare const WebhooksGroup_base: HttpApiGroup.HttpApiGroup<"Webhooks", HttpApiE
|
|
|
989
1067
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
990
1068
|
readonly message: Schema.String;
|
|
991
1069
|
readonly retryAfterSeconds: Schema.Finite;
|
|
1070
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
1071
|
+
readonly _tag: "MalformedRequestError";
|
|
1072
|
+
readonly message: string;
|
|
1073
|
+
readonly fields: {
|
|
1074
|
+
readonly [x: string]: readonly string[];
|
|
1075
|
+
};
|
|
1076
|
+
}, readonly [Schema.Struct<{
|
|
1077
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
1078
|
+
readonly message: Schema.String;
|
|
1079
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
1080
|
+
}>], {
|
|
1081
|
+
readonly _tag: "MalformedRequestError";
|
|
1082
|
+
readonly message: string;
|
|
1083
|
+
readonly fields: {
|
|
1084
|
+
readonly [x: string]: readonly string[];
|
|
1085
|
+
};
|
|
1086
|
+
}>, Schema.Struct<{
|
|
1087
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
1088
|
+
readonly message: Schema.String;
|
|
1089
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
992
1090
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
993
1091
|
readonly _tag: "ResourceNotFoundError";
|
|
994
1092
|
readonly resource: string;
|
|
@@ -1075,6 +1173,26 @@ declare const WebhooksGroup_base: HttpApiGroup.HttpApiGroup<"Webhooks", HttpApiE
|
|
|
1075
1173
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
1076
1174
|
readonly message: Schema.String;
|
|
1077
1175
|
readonly retryAfterSeconds: Schema.Finite;
|
|
1176
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
1177
|
+
readonly _tag: "MalformedRequestError";
|
|
1178
|
+
readonly message: string;
|
|
1179
|
+
readonly fields: {
|
|
1180
|
+
readonly [x: string]: readonly string[];
|
|
1181
|
+
};
|
|
1182
|
+
}, readonly [Schema.Struct<{
|
|
1183
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
1184
|
+
readonly message: Schema.String;
|
|
1185
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
1186
|
+
}>], {
|
|
1187
|
+
readonly _tag: "MalformedRequestError";
|
|
1188
|
+
readonly message: string;
|
|
1189
|
+
readonly fields: {
|
|
1190
|
+
readonly [x: string]: readonly string[];
|
|
1191
|
+
};
|
|
1192
|
+
}>, Schema.Struct<{
|
|
1193
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
1194
|
+
readonly message: Schema.String;
|
|
1195
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
1078
1196
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
1079
1197
|
readonly _tag: "ResourceNotFoundError";
|
|
1080
1198
|
readonly resource: string;
|
|
@@ -1130,8 +1248,8 @@ declare const WebhooksGroup_base: HttpApiGroup.HttpApiGroup<"Webhooks", HttpApiE
|
|
|
1130
1248
|
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"webhooksGetStats", "GET", "/v1/webhooks/:id/stats", Schema.toCodecStringTree<Schema.Struct<{
|
|
1131
1249
|
readonly id: Schema.brand<Schema.String, "WebhookEndpointId">;
|
|
1132
1250
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
1133
|
-
readonly after: Schema.optionalKey<Schema.
|
|
1134
|
-
readonly before: Schema.optionalKey<Schema.
|
|
1251
|
+
readonly after: Schema.optionalKey<Schema.String>;
|
|
1252
|
+
readonly before: Schema.optionalKey<Schema.String>;
|
|
1135
1253
|
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
1136
1254
|
readonly total: Schema.Finite;
|
|
1137
1255
|
readonly pending: Schema.Finite;
|
|
@@ -1145,6 +1263,10 @@ declare const WebhooksGroup_base: HttpApiGroup.HttpApiGroup<"Webhooks", HttpApiE
|
|
|
1145
1263
|
readonly exhausted: Schema.Finite;
|
|
1146
1264
|
readonly cancelled: Schema.Finite;
|
|
1147
1265
|
}>>;
|
|
1266
|
+
readonly latestAttempt: Schema.Union<readonly [Schema.Struct<{
|
|
1267
|
+
readonly errorCode: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1268
|
+
readonly completedAt: Schema.String;
|
|
1269
|
+
}>, Schema.Null]>;
|
|
1148
1270
|
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
1149
1271
|
readonly _tag: "ForbiddenError";
|
|
1150
1272
|
readonly message: string;
|
|
@@ -1173,6 +1295,26 @@ declare const WebhooksGroup_base: HttpApiGroup.HttpApiGroup<"Webhooks", HttpApiE
|
|
|
1173
1295
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
1174
1296
|
readonly message: Schema.String;
|
|
1175
1297
|
readonly retryAfterSeconds: Schema.Finite;
|
|
1298
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
1299
|
+
readonly _tag: "MalformedRequestError";
|
|
1300
|
+
readonly message: string;
|
|
1301
|
+
readonly fields: {
|
|
1302
|
+
readonly [x: string]: readonly string[];
|
|
1303
|
+
};
|
|
1304
|
+
}, readonly [Schema.Struct<{
|
|
1305
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
1306
|
+
readonly message: Schema.String;
|
|
1307
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
1308
|
+
}>], {
|
|
1309
|
+
readonly _tag: "MalformedRequestError";
|
|
1310
|
+
readonly message: string;
|
|
1311
|
+
readonly fields: {
|
|
1312
|
+
readonly [x: string]: readonly string[];
|
|
1313
|
+
};
|
|
1314
|
+
}>, Schema.Struct<{
|
|
1315
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
1316
|
+
readonly message: Schema.String;
|
|
1317
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
1176
1318
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
1177
1319
|
readonly _tag: "ResourceNotFoundError";
|
|
1178
1320
|
readonly resource: string;
|
|
@@ -1227,16 +1369,16 @@ declare const WebhooksGroup_base: HttpApiGroup.HttpApiGroup<"Webhooks", HttpApiE
|
|
|
1227
1369
|
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
1228
1370
|
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"webhooksList", "GET", "/v1/webhooks", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
1229
1371
|
readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
|
|
1230
|
-
readonly cursor: Schema.optionalKey<Schema.
|
|
1231
|
-
readonly search: Schema.optionalKey<Schema.
|
|
1232
|
-
readonly status: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
1372
|
+
readonly cursor: Schema.optionalKey<Schema.String>;
|
|
1373
|
+
readonly search: Schema.optionalKey<Schema.String>;
|
|
1374
|
+
readonly status: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"disabled">]>>;
|
|
1233
1375
|
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
1234
1376
|
readonly items: Schema.$Array<Schema.Struct<{
|
|
1235
1377
|
readonly id: Schema.brand<Schema.String, "WebhookEndpointId">;
|
|
1236
1378
|
readonly name: Schema.String;
|
|
1237
1379
|
readonly url: Schema.String;
|
|
1238
1380
|
readonly eventTypes: Schema.$Array<Schema.Union<readonly [Schema.Literal<"message.sent">, Schema.Literal<"message.delivered">, Schema.Literal<"message.read">, Schema.Literal<"message.failed">, Schema.Literal<"message.bounced">, Schema.Literal<"message.complained">, Schema.Literal<"message.received">, Schema.Literal<"message.opened">, Schema.Literal<"message.clicked">, Schema.Literal<"contact.created">, Schema.Literal<"contact.updated">, Schema.Literal<"contact.deleted">, Schema.Literal<"contact.subscribed">, Schema.Literal<"contact.unsubscribed">, Schema.Literal<"contact.resubscribed">, Schema.Literal<"contact.consent_changed">, Schema.Literal<"conversation.created">, Schema.Literal<"conversation.updated">, Schema.Literal<"conversation.archived">, Schema.Literal<"webhook.created">, Schema.Literal<"webhook.updated">, Schema.Literal<"webhook.deleted">, Schema.Literal<"webhook.test">, Schema.Literal<"domain.updated">, Schema.Literal<"domain.warming.updated">, Schema.Literal<"template.registration.updated">, Schema.Literal<"flow.registration.updated">, Schema.Literal<"whatsapp.number.connected">, Schema.Literal<"mailbox.message.received">, Schema.Literal<"mailbox.message.sent">, Schema.Literal<"mailbox.action.pending_approval">, Schema.Literal<"mailbox.action.resolved">, Schema.Literal<"mailbox.message.quarantined">, Schema.Literal<"mailbox.message.released">, Schema.Literal<"mailbox.message.discarded">, Schema.Literal<"mailbox.message.delivered">, Schema.Literal<"mailbox.message.read">, Schema.Literal<"mailbox.message.failed">, Schema.Literal<"journey.webhook">]>>;
|
|
1239
|
-
readonly channels: Schema.Union<readonly [Schema.$Array<Schema.Literal<"email">>, Schema.Null]>;
|
|
1381
|
+
readonly channels: Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>>, Schema.Null]>;
|
|
1240
1382
|
readonly mailboxIds: Schema.Union<readonly [Schema.$Array<Schema.brand<Schema.String, "MailboxId">>, Schema.Null]>;
|
|
1241
1383
|
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
1242
1384
|
readonly status: Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"disabled">]>;
|
|
@@ -1282,6 +1424,26 @@ declare const WebhooksGroup_base: HttpApiGroup.HttpApiGroup<"Webhooks", HttpApiE
|
|
|
1282
1424
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
1283
1425
|
readonly message: Schema.String;
|
|
1284
1426
|
readonly retryAfterSeconds: Schema.Finite;
|
|
1427
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
1428
|
+
readonly _tag: "MalformedRequestError";
|
|
1429
|
+
readonly message: string;
|
|
1430
|
+
readonly fields: {
|
|
1431
|
+
readonly [x: string]: readonly string[];
|
|
1432
|
+
};
|
|
1433
|
+
}, readonly [Schema.Struct<{
|
|
1434
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
1435
|
+
readonly message: Schema.String;
|
|
1436
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
1437
|
+
}>], {
|
|
1438
|
+
readonly _tag: "MalformedRequestError";
|
|
1439
|
+
readonly message: string;
|
|
1440
|
+
readonly fields: {
|
|
1441
|
+
readonly [x: string]: readonly string[];
|
|
1442
|
+
};
|
|
1443
|
+
}>, Schema.Struct<{
|
|
1444
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
1445
|
+
readonly message: Schema.String;
|
|
1446
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
1285
1447
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
|
|
1286
1448
|
readonly _tag: "UnauthorizedError";
|
|
1287
1449
|
readonly message: string;
|
|
@@ -1346,6 +1508,26 @@ declare const WebhooksGroup_base: HttpApiGroup.HttpApiGroup<"Webhooks", HttpApiE
|
|
|
1346
1508
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
1347
1509
|
readonly message: Schema.String;
|
|
1348
1510
|
readonly retryAfterSeconds: Schema.Finite;
|
|
1511
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
1512
|
+
readonly _tag: "MalformedRequestError";
|
|
1513
|
+
readonly message: string;
|
|
1514
|
+
readonly fields: {
|
|
1515
|
+
readonly [x: string]: readonly string[];
|
|
1516
|
+
};
|
|
1517
|
+
}, readonly [Schema.Struct<{
|
|
1518
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
1519
|
+
readonly message: Schema.String;
|
|
1520
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
1521
|
+
}>], {
|
|
1522
|
+
readonly _tag: "MalformedRequestError";
|
|
1523
|
+
readonly message: string;
|
|
1524
|
+
readonly fields: {
|
|
1525
|
+
readonly [x: string]: readonly string[];
|
|
1526
|
+
};
|
|
1527
|
+
}>, Schema.Struct<{
|
|
1528
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
1529
|
+
readonly message: Schema.String;
|
|
1530
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
1349
1531
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
1350
1532
|
readonly _tag: "ResourceNotFoundError";
|
|
1351
1533
|
readonly resource: string;
|
|
@@ -1442,6 +1624,26 @@ declare const WebhooksGroup_base: HttpApiGroup.HttpApiGroup<"Webhooks", HttpApiE
|
|
|
1442
1624
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
1443
1625
|
readonly message: Schema.String;
|
|
1444
1626
|
readonly retryAfterSeconds: Schema.Finite;
|
|
1627
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
1628
|
+
readonly _tag: "MalformedRequestError";
|
|
1629
|
+
readonly message: string;
|
|
1630
|
+
readonly fields: {
|
|
1631
|
+
readonly [x: string]: readonly string[];
|
|
1632
|
+
};
|
|
1633
|
+
}, readonly [Schema.Struct<{
|
|
1634
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
1635
|
+
readonly message: Schema.String;
|
|
1636
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
1637
|
+
}>], {
|
|
1638
|
+
readonly _tag: "MalformedRequestError";
|
|
1639
|
+
readonly message: string;
|
|
1640
|
+
readonly fields: {
|
|
1641
|
+
readonly [x: string]: readonly string[];
|
|
1642
|
+
};
|
|
1643
|
+
}>, Schema.Struct<{
|
|
1644
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
1645
|
+
readonly message: Schema.String;
|
|
1646
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
1445
1647
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
1446
1648
|
readonly _tag: "ResourceNotFoundError";
|
|
1447
1649
|
readonly resource: string;
|
|
@@ -1530,6 +1732,26 @@ declare const WebhooksGroup_base: HttpApiGroup.HttpApiGroup<"Webhooks", HttpApiE
|
|
|
1530
1732
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
1531
1733
|
readonly message: Schema.String;
|
|
1532
1734
|
readonly retryAfterSeconds: Schema.Finite;
|
|
1735
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
1736
|
+
readonly _tag: "MalformedRequestError";
|
|
1737
|
+
readonly message: string;
|
|
1738
|
+
readonly fields: {
|
|
1739
|
+
readonly [x: string]: readonly string[];
|
|
1740
|
+
};
|
|
1741
|
+
}, readonly [Schema.Struct<{
|
|
1742
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
1743
|
+
readonly message: Schema.String;
|
|
1744
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
1745
|
+
}>], {
|
|
1746
|
+
readonly _tag: "MalformedRequestError";
|
|
1747
|
+
readonly message: string;
|
|
1748
|
+
readonly fields: {
|
|
1749
|
+
readonly [x: string]: readonly string[];
|
|
1750
|
+
};
|
|
1751
|
+
}>, Schema.Struct<{
|
|
1752
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
1753
|
+
readonly message: Schema.String;
|
|
1754
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
1533
1755
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<RateLimitedError, {
|
|
1534
1756
|
readonly _tag: "RateLimitedError";
|
|
1535
1757
|
readonly message: string;
|
|
@@ -1634,6 +1856,26 @@ declare const WebhooksGroup_base: HttpApiGroup.HttpApiGroup<"Webhooks", HttpApiE
|
|
|
1634
1856
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
1635
1857
|
readonly message: Schema.String;
|
|
1636
1858
|
readonly retryAfterSeconds: Schema.Finite;
|
|
1859
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
1860
|
+
readonly _tag: "MalformedRequestError";
|
|
1861
|
+
readonly message: string;
|
|
1862
|
+
readonly fields: {
|
|
1863
|
+
readonly [x: string]: readonly string[];
|
|
1864
|
+
};
|
|
1865
|
+
}, readonly [Schema.Struct<{
|
|
1866
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
1867
|
+
readonly message: Schema.String;
|
|
1868
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
1869
|
+
}>], {
|
|
1870
|
+
readonly _tag: "MalformedRequestError";
|
|
1871
|
+
readonly message: string;
|
|
1872
|
+
readonly fields: {
|
|
1873
|
+
readonly [x: string]: readonly string[];
|
|
1874
|
+
};
|
|
1875
|
+
}>, Schema.Struct<{
|
|
1876
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
1877
|
+
readonly message: Schema.String;
|
|
1878
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
1637
1879
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
1638
1880
|
readonly _tag: "ResourceNotFoundError";
|
|
1639
1881
|
readonly resource: string;
|
|
@@ -1692,7 +1934,7 @@ declare const WebhooksGroup_base: HttpApiGroup.HttpApiGroup<"Webhooks", HttpApiE
|
|
|
1692
1934
|
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1693
1935
|
readonly url: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1694
1936
|
readonly eventTypes: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Literal<"message.sent">, Schema.Literal<"message.delivered">, Schema.Literal<"message.read">, Schema.Literal<"message.failed">, Schema.Literal<"message.bounced">, Schema.Literal<"message.complained">, Schema.Literal<"message.received">, Schema.Literal<"message.opened">, Schema.Literal<"message.clicked">, Schema.Literal<"contact.created">, Schema.Literal<"contact.updated">, Schema.Literal<"contact.deleted">, Schema.Literal<"contact.subscribed">, Schema.Literal<"contact.unsubscribed">, Schema.Literal<"contact.resubscribed">, Schema.Literal<"contact.consent_changed">, Schema.Literal<"conversation.created">, Schema.Literal<"conversation.updated">, Schema.Literal<"conversation.archived">, Schema.Literal<"webhook.created">, Schema.Literal<"webhook.updated">, Schema.Literal<"webhook.deleted">, Schema.Literal<"webhook.test">, Schema.Literal<"domain.updated">, Schema.Literal<"domain.warming.updated">, Schema.Literal<"template.registration.updated">, Schema.Literal<"flow.registration.updated">, Schema.Literal<"whatsapp.number.connected">, Schema.Literal<"mailbox.message.received">, Schema.Literal<"mailbox.message.sent">, Schema.Literal<"mailbox.action.pending_approval">, Schema.Literal<"mailbox.action.resolved">, Schema.Literal<"mailbox.message.quarantined">, Schema.Literal<"mailbox.message.released">, Schema.Literal<"mailbox.message.discarded">, Schema.Literal<"mailbox.message.delivered">, Schema.Literal<"mailbox.message.read">, Schema.Literal<"mailbox.message.failed">, Schema.Literal<"journey.webhook">]>>, Schema.Null]>>;
|
|
1695
|
-
readonly channels: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Literal<"email">>, Schema.Null]>>;
|
|
1937
|
+
readonly channels: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>>, Schema.Null]>>;
|
|
1696
1938
|
readonly mailboxIds: Schema.optionalKey<Schema.Union<readonly [Schema.TupleWithRest<Schema.Tuple<readonly [Schema.brand<Schema.String, "MailboxId">]>, readonly [Schema.brand<Schema.String, "MailboxId">]>, Schema.Null]>>;
|
|
1697
1939
|
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
1698
1940
|
readonly headers: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.String>, Schema.Null]>>;
|
|
@@ -1702,7 +1944,7 @@ declare const WebhooksGroup_base: HttpApiGroup.HttpApiGroup<"Webhooks", HttpApiE
|
|
|
1702
1944
|
readonly name: Schema.String;
|
|
1703
1945
|
readonly url: Schema.String;
|
|
1704
1946
|
readonly eventTypes: Schema.$Array<Schema.Union<readonly [Schema.Literal<"message.sent">, Schema.Literal<"message.delivered">, Schema.Literal<"message.read">, Schema.Literal<"message.failed">, Schema.Literal<"message.bounced">, Schema.Literal<"message.complained">, Schema.Literal<"message.received">, Schema.Literal<"message.opened">, Schema.Literal<"message.clicked">, Schema.Literal<"contact.created">, Schema.Literal<"contact.updated">, Schema.Literal<"contact.deleted">, Schema.Literal<"contact.subscribed">, Schema.Literal<"contact.unsubscribed">, Schema.Literal<"contact.resubscribed">, Schema.Literal<"contact.consent_changed">, Schema.Literal<"conversation.created">, Schema.Literal<"conversation.updated">, Schema.Literal<"conversation.archived">, Schema.Literal<"webhook.created">, Schema.Literal<"webhook.updated">, Schema.Literal<"webhook.deleted">, Schema.Literal<"webhook.test">, Schema.Literal<"domain.updated">, Schema.Literal<"domain.warming.updated">, Schema.Literal<"template.registration.updated">, Schema.Literal<"flow.registration.updated">, Schema.Literal<"whatsapp.number.connected">, Schema.Literal<"mailbox.message.received">, Schema.Literal<"mailbox.message.sent">, Schema.Literal<"mailbox.action.pending_approval">, Schema.Literal<"mailbox.action.resolved">, Schema.Literal<"mailbox.message.quarantined">, Schema.Literal<"mailbox.message.released">, Schema.Literal<"mailbox.message.discarded">, Schema.Literal<"mailbox.message.delivered">, Schema.Literal<"mailbox.message.read">, Schema.Literal<"mailbox.message.failed">, Schema.Literal<"journey.webhook">]>>;
|
|
1705
|
-
readonly channels: Schema.Union<readonly [Schema.$Array<Schema.Literal<"email">>, Schema.Null]>;
|
|
1947
|
+
readonly channels: Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>>, Schema.Null]>;
|
|
1706
1948
|
readonly mailboxIds: Schema.Union<readonly [Schema.$Array<Schema.brand<Schema.String, "MailboxId">>, Schema.Null]>;
|
|
1707
1949
|
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
1708
1950
|
readonly status: Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"disabled">]>;
|
|
@@ -1759,6 +2001,26 @@ declare const WebhooksGroup_base: HttpApiGroup.HttpApiGroup<"Webhooks", HttpApiE
|
|
|
1759
2001
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
1760
2002
|
readonly message: Schema.String;
|
|
1761
2003
|
readonly retryAfterSeconds: Schema.Finite;
|
|
2004
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
2005
|
+
readonly _tag: "MalformedRequestError";
|
|
2006
|
+
readonly message: string;
|
|
2007
|
+
readonly fields: {
|
|
2008
|
+
readonly [x: string]: readonly string[];
|
|
2009
|
+
};
|
|
2010
|
+
}, readonly [Schema.Struct<{
|
|
2011
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
2012
|
+
readonly message: Schema.String;
|
|
2013
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
2014
|
+
}>], {
|
|
2015
|
+
readonly _tag: "MalformedRequestError";
|
|
2016
|
+
readonly message: string;
|
|
2017
|
+
readonly fields: {
|
|
2018
|
+
readonly [x: string]: readonly string[];
|
|
2019
|
+
};
|
|
2020
|
+
}>, Schema.Struct<{
|
|
2021
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
2022
|
+
readonly message: Schema.String;
|
|
2023
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
1762
2024
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
1763
2025
|
readonly _tag: "ResourceNotFoundError";
|
|
1764
2026
|
readonly resource: string;
|