samva 0.55.0 → 0.56.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +2 -2
- package/README.md +9 -8
- package/dist/client/sdk.gen.d.ts +13 -4
- package/dist/client/sdk.gen.js +32 -1
- package/dist/client/types.gen.d.ts +66 -6
- package/dist/effect/accounts.js +9 -10
- package/dist/effect/agents.js +16 -17
- package/dist/effect/analytics.js +9 -10
- package/dist/effect/api-keys.js +11 -12
- package/dist/effect/approval-requests.js +7 -8
- package/dist/effect/attachments.js +7 -8
- package/dist/effect/brands.js +9 -10
- package/dist/effect/campaigns.js +18 -19
- package/dist/effect/contact-groups.js +13 -14
- package/dist/effect/contacts.js +29 -30
- package/dist/effect/conversations.js +16 -17
- package/dist/effect/custom-fields.js +7 -8
- package/dist/effect/descriptors/accounts.d.ts +50 -52
- package/dist/effect/descriptors/accounts.js +50 -52
- package/dist/effect/descriptors/agents.d.ts +113 -115
- package/dist/effect/descriptors/agents.js +120 -122
- package/dist/effect/descriptors/analytics.d.ts +47 -49
- package/dist/effect/descriptors/analytics.js +42 -44
- package/dist/effect/descriptors/api-keys.d.ts +69 -71
- package/dist/effect/descriptors/api-keys.js +73 -75
- package/dist/effect/descriptors/approval-requests.d.ts +34 -36
- package/dist/effect/descriptors/approval-requests.js +36 -38
- package/dist/effect/descriptors/attachments.d.ts +34 -36
- package/dist/effect/descriptors/attachments.js +36 -38
- package/dist/effect/descriptors/brands.d.ts +51 -53
- package/dist/effect/descriptors/brands.js +53 -55
- package/dist/effect/descriptors/campaigns.d.ts +130 -132
- package/dist/effect/descriptors/campaigns.js +137 -139
- package/dist/effect/descriptors/contact-groups.d.ts +86 -88
- package/dist/effect/descriptors/contact-groups.js +90 -92
- package/dist/effect/descriptors/contacts.d.ts +242 -244
- package/dist/effect/descriptors/contacts.js +227 -229
- package/dist/effect/descriptors/conversations.d.ts +114 -116
- package/dist/effect/descriptors/conversations.js +123 -125
- package/dist/effect/descriptors/custom-fields.d.ts +33 -35
- package/dist/effect/descriptors/custom-fields.js +33 -35
- package/dist/effect/descriptors/email.d.ts +623 -625
- package/dist/effect/descriptors/email.js +562 -578
- package/dist/effect/descriptors/events.d.ts +15 -17
- package/dist/effect/descriptors/events.js +14 -16
- package/dist/effect/descriptors/feedback.d.ts +7 -9
- package/dist/effect/descriptors/feedback.js +3 -3
- package/dist/effect/descriptors/integrations-catalog.d.ts +159 -161
- package/dist/effect/descriptors/integrations-catalog.js +142 -144
- package/dist/effect/descriptors/integrations.d.ts +60 -62
- package/dist/effect/descriptors/integrations.js +63 -65
- package/dist/effect/descriptors/journeys.d.ts +123 -125
- package/dist/effect/descriptors/journeys.js +133 -135
- package/dist/effect/descriptors/logs.d.ts +16 -18
- package/dist/effect/descriptors/logs.js +16 -18
- package/dist/effect/descriptors/mailboxes.d.ts +780 -782
- package/dist/effect/descriptors/mailboxes.js +795 -797
- package/dist/effect/descriptors/media.d.ts +43 -45
- package/dist/effect/descriptors/media.js +46 -48
- package/dist/effect/descriptors/messages.d.ts +86 -88
- package/dist/effect/descriptors/messages.js +83 -92
- package/dist/effect/descriptors/namespaces.d.ts +96 -98
- package/dist/effect/descriptors/namespaces.js +107 -109
- package/dist/effect/descriptors/newsletter-domains.d.ts +35 -37
- package/dist/effect/descriptors/newsletter-domains.js +39 -41
- package/dist/effect/descriptors/newsletter-issues.d.ts +98 -100
- package/dist/effect/descriptors/newsletter-issues.js +109 -111
- package/dist/effect/descriptors/newsletters.d.ts +43 -45
- package/dist/effect/descriptors/newsletters.js +46 -48
- package/dist/effect/descriptors/operations.d.ts +25 -27
- package/dist/effect/descriptors/operations.js +26 -28
- package/dist/effect/descriptors/organizations.d.ts +96 -98
- package/dist/effect/descriptors/organizations.js +86 -88
- package/dist/effect/descriptors/phone-numbers.d.ts +41 -43
- package/dist/effect/descriptors/phone-numbers.js +40 -42
- package/dist/effect/descriptors/policies.d.ts +26 -28
- package/dist/effect/descriptors/policies.js +29 -31
- package/dist/effect/descriptors/scheduled-messages.d.ts +42 -44
- package/dist/effect/descriptors/scheduled-messages.js +43 -45
- package/dist/effect/descriptors/subscriptions.d.ts +7 -9
- package/dist/effect/descriptors/subscriptions.js +3 -3
- package/dist/effect/descriptors/template-registrations.d.ts +26 -28
- package/dist/effect/descriptors/template-registrations.js +29 -31
- package/dist/effect/descriptors/template-share-links.d.ts +44 -46
- package/dist/effect/descriptors/template-share-links.js +49 -51
- package/dist/effect/descriptors/templates.d.ts +361 -363
- package/dist/effect/descriptors/templates.js +348 -350
- package/dist/effect/descriptors/topic-forms.d.ts +44 -46
- package/dist/effect/descriptors/topic-forms.js +49 -51
- package/dist/effect/descriptors/topics.d.ts +77 -79
- package/dist/effect/descriptors/topics.js +80 -82
- package/dist/effect/descriptors/webhooks.d.ts +96 -98
- package/dist/effect/descriptors/webhooks.js +103 -105
- package/dist/effect/descriptors/whats-app-flows.d.ts +86 -88
- package/dist/effect/descriptors/whats-app-flows.js +90 -92
- package/dist/effect/descriptors/whats-app-setup-links.d.ts +33 -35
- package/dist/effect/descriptors/whats-app-setup-links.js +33 -35
- package/dist/effect/descriptors/whats-app.d.ts +111 -103
- package/dist/effect/descriptors/whats-app.js +111 -103
- package/dist/effect/descriptors/whoami.d.ts +7 -9
- package/dist/effect/descriptors/whoami.js +3 -3
- package/dist/effect/email.js +66 -67
- package/dist/effect/events.js +5 -6
- package/dist/effect/feedback.js +4 -4
- package/dist/effect/generated/accounts.d.ts +144 -142
- package/dist/effect/generated/accounts.js +14 -9
- package/dist/effect/generated/agents.d.ts +1502 -1493
- package/dist/effect/generated/agents.js +28 -16
- package/dist/effect/generated/analytics.d.ts +55 -53
- package/dist/effect/generated/analytics.js +14 -9
- package/dist/effect/generated/api-keys.d.ts +216 -212
- package/dist/effect/generated/api-keys.js +18 -11
- package/dist/effect/generated/approval-requests.d.ts +60 -60
- package/dist/effect/generated/approval-requests.js +10 -7
- package/dist/effect/generated/attachments.d.ts +32 -32
- package/dist/effect/generated/attachments.js +10 -7
- package/dist/effect/generated/brands.d.ts +179 -177
- package/dist/effect/generated/brands.js +14 -9
- package/dist/effect/generated/campaigns.d.ts +1083 -1072
- package/dist/effect/generated/campaigns.js +32 -18
- package/dist/effect/generated/contact-events.d.ts +3 -6
- package/dist/effect/generated/contact-events.js +4 -4
- package/dist/effect/generated/contact-groups.d.ts +186 -180
- package/dist/effect/generated/contact-groups.js +22 -13
- package/dist/effect/generated/contacts.d.ts +1565 -1545
- package/dist/effect/generated/contacts.js +50 -27
- package/dist/effect/generated/conversations.d.ts +340 -331
- package/dist/effect/generated/conversations.js +28 -16
- package/dist/effect/generated/custom-fields.d.ts +63 -63
- package/dist/effect/generated/custom-fields.js +10 -7
- package/dist/effect/generated/email.d.ts +2731 -2671
- package/dist/effect/generated/email.js +130 -67
- package/dist/effect/generated/events.d.ts +160 -162
- package/dist/effect/generated/events.js +6 -5
- package/dist/effect/generated/feedback.d.ts +3 -6
- package/dist/effect/generated/feedback.js +4 -4
- package/dist/effect/generated/index.d.ts +174 -45
- package/dist/effect/generated/integrations-catalog.d.ts +459 -446
- package/dist/effect/generated/integrations-catalog.js +36 -20
- package/dist/effect/generated/integrations.d.ts +155 -152
- package/dist/effect/generated/integrations.js +16 -10
- package/dist/effect/generated/journeys.d.ts +864 -854
- package/dist/effect/generated/journeys.js +30 -17
- package/dist/effect/generated/logs.d.ts +147 -149
- package/dist/effect/generated/logs.js +6 -5
- package/dist/effect/generated/mailboxes.d.ts +7271 -7196
- package/dist/effect/generated/mailboxes.js +160 -82
- package/dist/effect/generated/media.d.ts +77 -76
- package/dist/effect/generated/media.js +12 -8
- package/dist/effect/generated/messages.d.ts +1092 -1086
- package/dist/effect/generated/messages.js +22 -13
- package/dist/effect/generated/namespaces.d.ts +184 -177
- package/dist/effect/generated/namespaces.js +24 -14
- package/dist/effect/generated/newsletter-domains.d.ts +57 -57
- package/dist/effect/generated/newsletter-domains.js +10 -7
- package/dist/effect/generated/newsletter-issues.d.ts +225 -218
- package/dist/effect/generated/newsletter-issues.js +24 -14
- package/dist/effect/generated/newsletters.d.ts +46 -45
- package/dist/effect/generated/newsletters.js +12 -8
- package/dist/effect/generated/operations.d.ts +79 -80
- package/dist/effect/generated/operations.js +8 -6
- package/dist/effect/generated/organizations.d.ts +438 -430
- package/dist/effect/generated/organizations.js +26 -15
- package/dist/effect/generated/phone-numbers.d.ts +87 -86
- package/dist/effect/generated/phone-numbers.js +12 -8
- package/dist/effect/generated/policies.d.ts +64 -65
- package/dist/effect/generated/policies.js +8 -6
- package/dist/effect/generated/scheduled-messages.d.ts +66 -65
- package/dist/effect/generated/scheduled-messages.js +12 -8
- package/dist/effect/generated/shared.d.ts +37 -37
- package/dist/effect/generated/shared.js +63 -61
- package/dist/effect/generated/subscriptions.d.ts +3 -6
- package/dist/effect/generated/subscriptions.js +4 -4
- package/dist/effect/generated/template-registrations.d.ts +142 -134
- package/dist/effect/generated/template-registrations.js +9 -6
- package/dist/effect/generated/template-share-links.d.ts +25 -24
- package/dist/effect/generated/template-share-links.js +12 -8
- package/dist/effect/generated/templates.d.ts +2678 -2645
- package/dist/effect/generated/templates.js +76 -40
- package/dist/effect/generated/topic-forms.d.ts +47 -46
- package/dist/effect/generated/topic-forms.js +12 -8
- package/dist/effect/generated/topics.d.ts +204 -199
- package/dist/effect/generated/topics.js +20 -12
- package/dist/effect/generated/webhooks.d.ts +284 -277
- package/dist/effect/generated/webhooks.js +28 -14
- package/dist/effect/generated/whats-app-flows.d.ts +250 -244
- package/dist/effect/generated/whats-app-flows.js +22 -13
- package/dist/effect/generated/whats-app-setup-links.d.ts +107 -107
- package/dist/effect/generated/whats-app-setup-links.js +10 -7
- package/dist/effect/generated/whats-app.d.ts +482 -298
- package/dist/effect/generated/whats-app.js +58 -16
- package/dist/effect/generated/whoami.d.ts +3 -6
- package/dist/effect/generated/whoami.js +4 -4
- package/dist/effect/generated-metadata.d.ts +6 -0
- package/dist/effect/generated-metadata.js +1 -0
- package/dist/effect/integrations-catalog.js +20 -21
- package/dist/effect/integrations.js +10 -11
- package/dist/effect/internal/client.d.ts +2 -1
- package/dist/effect/internal/client.js +3 -3
- package/dist/effect/internal/email-sender.js +5 -4
- package/dist/effect/internal/operation.d.ts +11 -7
- package/dist/effect/internal/operation.js +17 -12
- package/dist/effect/internal/send.js +11 -8
- package/dist/effect/journeys.js +17 -18
- package/dist/effect/logs.js +5 -6
- package/dist/effect/mailboxes.js +82 -83
- package/dist/effect/media.js +8 -9
- package/dist/effect/messages.js +12 -13
- package/dist/effect/namespaces.js +14 -15
- package/dist/effect/newsletter-domains.js +7 -8
- package/dist/effect/newsletter-issues.js +14 -15
- package/dist/effect/newsletters.js +8 -9
- package/dist/effect/operations.js +6 -7
- package/dist/effect/organizations.js +15 -16
- package/dist/effect/phone-numbers.js +8 -9
- package/dist/effect/policies.js +6 -7
- package/dist/effect/runtime.js +3 -3
- package/dist/effect/scheduled-messages.js +8 -9
- package/dist/effect/subscriptions.js +4 -4
- package/dist/effect/template-registrations.js +6 -7
- package/dist/effect/template-share-links.js +8 -9
- package/dist/effect/templates.js +40 -41
- package/dist/effect/topic-forms.js +8 -9
- package/dist/effect/topics.js +12 -13
- package/dist/effect/webhooks.d.ts +4 -4
- package/dist/effect/webhooks.js +14 -15
- package/dist/effect/whatsapp-flows.js +13 -14
- package/dist/effect/whatsapp-setup-links.js +7 -8
- package/dist/effect/whatsapp.d.ts +6 -0
- package/dist/effect/whatsapp.js +18 -17
- package/dist/effect/whoami.js +4 -4
- package/dist/package.json.js +1 -1
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/service-map.d.ts +5 -0
- package/package.json +3 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type * as EffectBrand from "effect/Brand";
|
|
2
|
-
import { HttpApiEndpoint
|
|
2
|
+
import { HttpApiEndpoint } from "effect/http-api";
|
|
3
3
|
import * as Schema from "effect/Schema";
|
|
4
4
|
import { ApiKeySecurityMiddleware, BillingProviderError, ConflictError, ForbiddenError, GatewayTimeoutError, InternalError, JsonValue, MailboxId, MalformedRequestError, NamespaceId, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SuccessResponse, UnauthorizedError, ValidationError, WebhookEndpointId, __SamvaRuntimeSensitiveString } from "./shared.js";
|
|
5
5
|
export type WebhookDeliveryCounts = {
|
|
@@ -50,7 +50,7 @@ export type WebhookEndpoint = {
|
|
|
50
50
|
readonly id: WebhookEndpointId;
|
|
51
51
|
readonly name: string;
|
|
52
52
|
readonly url: string;
|
|
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" | "email.sending.paused" | "email.sending.resumed" | "template.registration.updated" | "flow.registration.updated" | "whatsapp.number.connected" | "mailbox.message.received" | "mailbox.message.sent" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.spam" | "mailbox.message.discarded" | "mailbox.thread.deleted" | "mailbox.message.delivered" | "mailbox.message.read" | "mailbox.message.failed" | "journey.webhook">;
|
|
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" | "email.sending.paused" | "email.sending.resumed" | "template.registration.updated" | "flow.registration.updated" | "whatsapp.number.connected" | "whatsapp.number.updated" | "mailbox.message.received" | "mailbox.message.sent" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.spam" | "mailbox.message.discarded" | "mailbox.thread.deleted" | "mailbox.message.delivered" | "mailbox.message.read" | "mailbox.message.failed" | "journey.webhook">;
|
|
54
54
|
readonly channels: ReadonlyArray<"sms" | "whatsapp" | "email"> | null;
|
|
55
55
|
readonly mailboxIds: ReadonlyArray<MailboxId> | null;
|
|
56
56
|
readonly namespaceId: NamespaceId | null;
|
|
@@ -65,7 +65,7 @@ export declare const WebhookEndpoint: Schema.Struct<{
|
|
|
65
65
|
readonly id: Schema.brand<Schema.String, "WebhookEndpointId">;
|
|
66
66
|
readonly name: Schema.String;
|
|
67
67
|
readonly url: Schema.String;
|
|
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<"email.sending.paused">, Schema.Literal<"email.sending.resumed">, 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.spam">, Schema.Literal<"mailbox.message.discarded">, Schema.Literal<"mailbox.thread.deleted">, Schema.Literal<"mailbox.message.delivered">, Schema.Literal<"mailbox.message.read">, Schema.Literal<"mailbox.message.failed">, Schema.Literal<"journey.webhook">]>>;
|
|
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<"email.sending.paused">, Schema.Literal<"email.sending.resumed">, Schema.Literal<"template.registration.updated">, Schema.Literal<"flow.registration.updated">, Schema.Literal<"whatsapp.number.connected">, Schema.Literal<"whatsapp.number.updated">, 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.spam">, Schema.Literal<"mailbox.message.discarded">, Schema.Literal<"mailbox.thread.deleted">, Schema.Literal<"mailbox.message.delivered">, Schema.Literal<"mailbox.message.read">, Schema.Literal<"mailbox.message.failed">, Schema.Literal<"journey.webhook">]>>;
|
|
69
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]>;
|
|
@@ -80,7 +80,7 @@ export type WebhookEndpointListItem = {
|
|
|
80
80
|
readonly id: WebhookEndpointId;
|
|
81
81
|
readonly name: string;
|
|
82
82
|
readonly url: string;
|
|
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" | "email.sending.paused" | "email.sending.resumed" | "template.registration.updated" | "flow.registration.updated" | "whatsapp.number.connected" | "mailbox.message.received" | "mailbox.message.sent" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.spam" | "mailbox.message.discarded" | "mailbox.thread.deleted" | "mailbox.message.delivered" | "mailbox.message.read" | "mailbox.message.failed" | "journey.webhook">;
|
|
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" | "email.sending.paused" | "email.sending.resumed" | "template.registration.updated" | "flow.registration.updated" | "whatsapp.number.connected" | "whatsapp.number.updated" | "mailbox.message.received" | "mailbox.message.sent" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.spam" | "mailbox.message.discarded" | "mailbox.thread.deleted" | "mailbox.message.delivered" | "mailbox.message.read" | "mailbox.message.failed" | "journey.webhook">;
|
|
84
84
|
readonly channels: ReadonlyArray<"sms" | "whatsapp" | "email"> | null;
|
|
85
85
|
readonly mailboxIds: ReadonlyArray<MailboxId> | null;
|
|
86
86
|
readonly namespaceId: NamespaceId | null;
|
|
@@ -96,7 +96,7 @@ export declare const WebhookEndpointListItem: Schema.Struct<{
|
|
|
96
96
|
readonly id: Schema.brand<Schema.String, "WebhookEndpointId">;
|
|
97
97
|
readonly name: Schema.String;
|
|
98
98
|
readonly url: Schema.String;
|
|
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<"email.sending.paused">, Schema.Literal<"email.sending.resumed">, 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.spam">, Schema.Literal<"mailbox.message.discarded">, Schema.Literal<"mailbox.thread.deleted">, Schema.Literal<"mailbox.message.delivered">, Schema.Literal<"mailbox.message.read">, Schema.Literal<"mailbox.message.failed">, Schema.Literal<"journey.webhook">]>>;
|
|
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<"email.sending.paused">, Schema.Literal<"email.sending.resumed">, Schema.Literal<"template.registration.updated">, Schema.Literal<"flow.registration.updated">, Schema.Literal<"whatsapp.number.connected">, Schema.Literal<"whatsapp.number.updated">, 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.spam">, Schema.Literal<"mailbox.message.discarded">, Schema.Literal<"mailbox.thread.deleted">, Schema.Literal<"mailbox.message.delivered">, Schema.Literal<"mailbox.message.read">, Schema.Literal<"mailbox.message.failed">, Schema.Literal<"journey.webhook">]>>;
|
|
100
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]>;
|
|
@@ -217,7 +217,7 @@ export declare const WebhookEndpointPage: Schema.Struct<{
|
|
|
217
217
|
readonly id: Schema.brand<Schema.String, "WebhookEndpointId">;
|
|
218
218
|
readonly name: Schema.String;
|
|
219
219
|
readonly url: Schema.String;
|
|
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<"email.sending.paused">, Schema.Literal<"email.sending.resumed">, 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.spam">, Schema.Literal<"mailbox.message.discarded">, Schema.Literal<"mailbox.thread.deleted">, Schema.Literal<"mailbox.message.delivered">, Schema.Literal<"mailbox.message.read">, Schema.Literal<"mailbox.message.failed">, Schema.Literal<"journey.webhook">]>>;
|
|
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<"email.sending.paused">, Schema.Literal<"email.sending.resumed">, Schema.Literal<"template.registration.updated">, Schema.Literal<"flow.registration.updated">, Schema.Literal<"whatsapp.number.connected">, Schema.Literal<"whatsapp.number.updated">, 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.spam">, Schema.Literal<"mailbox.message.discarded">, Schema.Literal<"mailbox.thread.deleted">, Schema.Literal<"mailbox.message.delivered">, Schema.Literal<"mailbox.message.read">, Schema.Literal<"mailbox.message.failed">, Schema.Literal<"journey.webhook">]>>;
|
|
221
221
|
readonly channels: Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>>, Schema.Null]>;
|
|
222
222
|
readonly mailboxIds: Schema.Union<readonly [Schema.$Array<Schema.brand<Schema.String, "MailboxId">>, Schema.Null]>;
|
|
223
223
|
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
@@ -257,7 +257,7 @@ export declare const WebhooksList200: Schema.Struct<{
|
|
|
257
257
|
readonly id: Schema.brand<Schema.String, "WebhookEndpointId">;
|
|
258
258
|
readonly name: Schema.String;
|
|
259
259
|
readonly url: Schema.String;
|
|
260
|
-
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<"email.sending.paused">, Schema.Literal<"email.sending.resumed">, 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.spam">, Schema.Literal<"mailbox.message.discarded">, Schema.Literal<"mailbox.thread.deleted">, Schema.Literal<"mailbox.message.delivered">, Schema.Literal<"mailbox.message.read">, Schema.Literal<"mailbox.message.failed">, Schema.Literal<"journey.webhook">]>>;
|
|
260
|
+
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<"email.sending.paused">, Schema.Literal<"email.sending.resumed">, Schema.Literal<"template.registration.updated">, Schema.Literal<"flow.registration.updated">, Schema.Literal<"whatsapp.number.connected">, Schema.Literal<"whatsapp.number.updated">, 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.spam">, Schema.Literal<"mailbox.message.discarded">, Schema.Literal<"mailbox.thread.deleted">, Schema.Literal<"mailbox.message.delivered">, Schema.Literal<"mailbox.message.read">, Schema.Literal<"mailbox.message.failed">, Schema.Literal<"journey.webhook">]>>;
|
|
261
261
|
readonly channels: Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>>, Schema.Null]>;
|
|
262
262
|
readonly mailboxIds: Schema.Union<readonly [Schema.$Array<Schema.brand<Schema.String, "MailboxId">>, Schema.Null]>;
|
|
263
263
|
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
@@ -292,7 +292,7 @@ export declare const WebhooksList504: typeof GatewayTimeoutError;
|
|
|
292
292
|
export type WebhooksCreateRequestJson = {
|
|
293
293
|
readonly name: string;
|
|
294
294
|
readonly url: string;
|
|
295
|
-
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" | "email.sending.paused" | "email.sending.resumed" | "template.registration.updated" | "flow.registration.updated" | "whatsapp.number.connected" | "mailbox.message.received" | "mailbox.message.sent" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.spam" | "mailbox.message.discarded" | "mailbox.thread.deleted" | "mailbox.message.delivered" | "mailbox.message.read" | "mailbox.message.failed" | "journey.webhook">;
|
|
295
|
+
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" | "email.sending.paused" | "email.sending.resumed" | "template.registration.updated" | "flow.registration.updated" | "whatsapp.number.connected" | "whatsapp.number.updated" | "mailbox.message.received" | "mailbox.message.sent" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.spam" | "mailbox.message.discarded" | "mailbox.thread.deleted" | "mailbox.message.delivered" | "mailbox.message.read" | "mailbox.message.failed" | "journey.webhook">;
|
|
296
296
|
readonly channels?: ReadonlyArray<"sms" | "whatsapp" | "email"> | null;
|
|
297
297
|
readonly mailboxIds?: readonly [MailboxId, ...Array<MailboxId>] | null;
|
|
298
298
|
readonly namespaceId?: NamespaceId | null;
|
|
@@ -304,7 +304,7 @@ export type WebhooksCreateRequestJson = {
|
|
|
304
304
|
export declare const WebhooksCreateRequestJson: Schema.Struct<{
|
|
305
305
|
readonly name: Schema.String;
|
|
306
306
|
readonly url: Schema.String;
|
|
307
|
-
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<"email.sending.paused">, Schema.Literal<"email.sending.resumed">, 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.spam">, Schema.Literal<"mailbox.message.discarded">, Schema.Literal<"mailbox.thread.deleted">, Schema.Literal<"mailbox.message.delivered">, Schema.Literal<"mailbox.message.read">, Schema.Literal<"mailbox.message.failed">, Schema.Literal<"journey.webhook">]>>;
|
|
307
|
+
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<"email.sending.paused">, Schema.Literal<"email.sending.resumed">, Schema.Literal<"template.registration.updated">, Schema.Literal<"flow.registration.updated">, Schema.Literal<"whatsapp.number.connected">, Schema.Literal<"whatsapp.number.updated">, 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.spam">, Schema.Literal<"mailbox.message.discarded">, Schema.Literal<"mailbox.thread.deleted">, Schema.Literal<"mailbox.message.delivered">, Schema.Literal<"mailbox.message.read">, Schema.Literal<"mailbox.message.failed">, Schema.Literal<"journey.webhook">]>>;
|
|
308
308
|
readonly channels: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>>, Schema.Null]>>;
|
|
309
309
|
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]>>;
|
|
310
310
|
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
@@ -320,7 +320,7 @@ export declare const WebhooksCreate201: Schema.Struct<{
|
|
|
320
320
|
readonly id: Schema.brand<Schema.String, "WebhookEndpointId">;
|
|
321
321
|
readonly name: Schema.String;
|
|
322
322
|
readonly url: Schema.String;
|
|
323
|
-
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<"email.sending.paused">, Schema.Literal<"email.sending.resumed">, 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.spam">, Schema.Literal<"mailbox.message.discarded">, Schema.Literal<"mailbox.thread.deleted">, Schema.Literal<"mailbox.message.delivered">, Schema.Literal<"mailbox.message.read">, Schema.Literal<"mailbox.message.failed">, Schema.Literal<"journey.webhook">]>>;
|
|
323
|
+
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<"email.sending.paused">, Schema.Literal<"email.sending.resumed">, Schema.Literal<"template.registration.updated">, Schema.Literal<"flow.registration.updated">, Schema.Literal<"whatsapp.number.connected">, Schema.Literal<"whatsapp.number.updated">, 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.spam">, Schema.Literal<"mailbox.message.discarded">, Schema.Literal<"mailbox.thread.deleted">, Schema.Literal<"mailbox.message.delivered">, Schema.Literal<"mailbox.message.read">, Schema.Literal<"mailbox.message.failed">, Schema.Literal<"journey.webhook">]>>;
|
|
324
324
|
readonly channels: Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>>, Schema.Null]>;
|
|
325
325
|
readonly mailboxIds: Schema.Union<readonly [Schema.$Array<Schema.brand<Schema.String, "MailboxId">>, Schema.Null]>;
|
|
326
326
|
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
@@ -364,7 +364,7 @@ export declare const WebhooksGet200: Schema.Struct<{
|
|
|
364
364
|
readonly id: Schema.brand<Schema.String, "WebhookEndpointId">;
|
|
365
365
|
readonly name: Schema.String;
|
|
366
366
|
readonly url: Schema.String;
|
|
367
|
-
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<"email.sending.paused">, Schema.Literal<"email.sending.resumed">, 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.spam">, Schema.Literal<"mailbox.message.discarded">, Schema.Literal<"mailbox.thread.deleted">, Schema.Literal<"mailbox.message.delivered">, Schema.Literal<"mailbox.message.read">, Schema.Literal<"mailbox.message.failed">, Schema.Literal<"journey.webhook">]>>;
|
|
367
|
+
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<"email.sending.paused">, Schema.Literal<"email.sending.resumed">, Schema.Literal<"template.registration.updated">, Schema.Literal<"flow.registration.updated">, Schema.Literal<"whatsapp.number.connected">, Schema.Literal<"whatsapp.number.updated">, 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.spam">, Schema.Literal<"mailbox.message.discarded">, Schema.Literal<"mailbox.thread.deleted">, Schema.Literal<"mailbox.message.delivered">, Schema.Literal<"mailbox.message.read">, Schema.Literal<"mailbox.message.failed">, Schema.Literal<"journey.webhook">]>>;
|
|
368
368
|
readonly channels: Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>>, Schema.Null]>;
|
|
369
369
|
readonly mailboxIds: Schema.Union<readonly [Schema.$Array<Schema.brand<Schema.String, "MailboxId">>, Schema.Null]>;
|
|
370
370
|
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
@@ -424,7 +424,7 @@ export declare const WebhooksUpdatePathParams: Schema.Struct<{
|
|
|
424
424
|
export type WebhooksUpdateRequestJson = {
|
|
425
425
|
readonly name?: string | null;
|
|
426
426
|
readonly url?: string | null;
|
|
427
|
-
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" | "email.sending.paused" | "email.sending.resumed" | "template.registration.updated" | "flow.registration.updated" | "whatsapp.number.connected" | "mailbox.message.received" | "mailbox.message.sent" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.spam" | "mailbox.message.discarded" | "mailbox.thread.deleted" | "mailbox.message.delivered" | "mailbox.message.read" | "mailbox.message.failed" | "journey.webhook"> | null;
|
|
427
|
+
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" | "email.sending.paused" | "email.sending.resumed" | "template.registration.updated" | "flow.registration.updated" | "whatsapp.number.connected" | "whatsapp.number.updated" | "mailbox.message.received" | "mailbox.message.sent" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.spam" | "mailbox.message.discarded" | "mailbox.thread.deleted" | "mailbox.message.delivered" | "mailbox.message.read" | "mailbox.message.failed" | "journey.webhook"> | null;
|
|
428
428
|
readonly channels?: ReadonlyArray<"sms" | "whatsapp" | "email"> | null;
|
|
429
429
|
readonly mailboxIds?: readonly [MailboxId, ...Array<MailboxId>] | null;
|
|
430
430
|
readonly namespaceId?: NamespaceId | null;
|
|
@@ -436,7 +436,7 @@ export type WebhooksUpdateRequestJson = {
|
|
|
436
436
|
export declare const WebhooksUpdateRequestJson: Schema.Struct<{
|
|
437
437
|
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
438
438
|
readonly url: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
439
|
-
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<"email.sending.paused">, Schema.Literal<"email.sending.resumed">, 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.spam">, Schema.Literal<"mailbox.message.discarded">, Schema.Literal<"mailbox.thread.deleted">, Schema.Literal<"mailbox.message.delivered">, Schema.Literal<"mailbox.message.read">, Schema.Literal<"mailbox.message.failed">, Schema.Literal<"journey.webhook">]>>, Schema.Null]>>;
|
|
439
|
+
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<"email.sending.paused">, Schema.Literal<"email.sending.resumed">, Schema.Literal<"template.registration.updated">, Schema.Literal<"flow.registration.updated">, Schema.Literal<"whatsapp.number.connected">, Schema.Literal<"whatsapp.number.updated">, 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.spam">, Schema.Literal<"mailbox.message.discarded">, Schema.Literal<"mailbox.thread.deleted">, Schema.Literal<"mailbox.message.delivered">, Schema.Literal<"mailbox.message.read">, Schema.Literal<"mailbox.message.failed">, Schema.Literal<"journey.webhook">]>>, Schema.Null]>>;
|
|
440
440
|
readonly channels: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>>, Schema.Null]>>;
|
|
441
441
|
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]>>;
|
|
442
442
|
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
@@ -448,7 +448,7 @@ export declare const WebhooksUpdate200: Schema.Struct<{
|
|
|
448
448
|
readonly id: Schema.brand<Schema.String, "WebhookEndpointId">;
|
|
449
449
|
readonly name: Schema.String;
|
|
450
450
|
readonly url: Schema.String;
|
|
451
|
-
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<"email.sending.paused">, Schema.Literal<"email.sending.resumed">, 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.spam">, Schema.Literal<"mailbox.message.discarded">, Schema.Literal<"mailbox.thread.deleted">, Schema.Literal<"mailbox.message.delivered">, Schema.Literal<"mailbox.message.read">, Schema.Literal<"mailbox.message.failed">, Schema.Literal<"journey.webhook">]>>;
|
|
451
|
+
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<"email.sending.paused">, Schema.Literal<"email.sending.resumed">, Schema.Literal<"template.registration.updated">, Schema.Literal<"flow.registration.updated">, Schema.Literal<"whatsapp.number.connected">, Schema.Literal<"whatsapp.number.updated">, 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.spam">, Schema.Literal<"mailbox.message.discarded">, Schema.Literal<"mailbox.thread.deleted">, Schema.Literal<"mailbox.message.delivered">, Schema.Literal<"mailbox.message.read">, Schema.Literal<"mailbox.message.failed">, Schema.Literal<"journey.webhook">]>>;
|
|
452
452
|
readonly channels: Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>>, Schema.Null]>;
|
|
453
453
|
readonly mailboxIds: Schema.Union<readonly [Schema.$Array<Schema.brand<Schema.String, "MailboxId">>, Schema.Null]>;
|
|
454
454
|
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
@@ -708,10 +708,121 @@ export type WebhooksTest500 = InternalError;
|
|
|
708
708
|
export declare const WebhooksTest500: typeof InternalError;
|
|
709
709
|
export type WebhooksTest504 = GatewayTimeoutError;
|
|
710
710
|
export declare const WebhooksTest504: typeof GatewayTimeoutError;
|
|
711
|
-
declare const
|
|
711
|
+
export declare const WebhooksListEndpoint: HttpApiEndpoint.HttpApiEndpoint<"webhooksList", "GET", "/v1/webhooks", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
712
|
+
readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
|
|
713
|
+
readonly cursor: Schema.optionalKey<Schema.String>;
|
|
714
|
+
readonly namespaceId: Schema.optionalKey<Schema.brand<Schema.String, "NamespaceId">>;
|
|
715
|
+
readonly search: Schema.optionalKey<Schema.String>;
|
|
716
|
+
readonly status: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"disabled">]>>;
|
|
717
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
718
|
+
readonly items: Schema.$Array<Schema.Struct<{
|
|
719
|
+
readonly id: Schema.brand<Schema.String, "WebhookEndpointId">;
|
|
720
|
+
readonly name: Schema.String;
|
|
721
|
+
readonly url: Schema.String;
|
|
722
|
+
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<"email.sending.paused">, Schema.Literal<"email.sending.resumed">, Schema.Literal<"template.registration.updated">, Schema.Literal<"flow.registration.updated">, Schema.Literal<"whatsapp.number.connected">, Schema.Literal<"whatsapp.number.updated">, 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.spam">, Schema.Literal<"mailbox.message.discarded">, Schema.Literal<"mailbox.thread.deleted">, Schema.Literal<"mailbox.message.delivered">, Schema.Literal<"mailbox.message.read">, Schema.Literal<"mailbox.message.failed">, Schema.Literal<"journey.webhook">]>>;
|
|
723
|
+
readonly channels: Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>>, Schema.Null]>;
|
|
724
|
+
readonly mailboxIds: Schema.Union<readonly [Schema.$Array<Schema.brand<Schema.String, "MailboxId">>, Schema.Null]>;
|
|
725
|
+
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
726
|
+
readonly status: Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"disabled">]>;
|
|
727
|
+
readonly hasCustomHeaders: Schema.Boolean;
|
|
728
|
+
readonly failureStartedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
729
|
+
readonly lastSucceededAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
730
|
+
readonly createdAt: Schema.String;
|
|
731
|
+
readonly updatedAt: Schema.String;
|
|
732
|
+
readonly deliveries: Schema.Struct<{
|
|
733
|
+
readonly total: Schema.Finite;
|
|
734
|
+
readonly pending: Schema.Finite;
|
|
735
|
+
readonly delivered: Schema.Finite;
|
|
736
|
+
readonly exhausted: Schema.Finite;
|
|
737
|
+
readonly cancelled: Schema.Finite;
|
|
738
|
+
}>;
|
|
739
|
+
}>>;
|
|
740
|
+
readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
741
|
+
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
742
|
+
readonly _tag: "ForbiddenError";
|
|
743
|
+
readonly message: string;
|
|
744
|
+
}, readonly [Schema.Struct<{
|
|
745
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
746
|
+
readonly message: Schema.String;
|
|
747
|
+
}>], {
|
|
748
|
+
readonly _tag: "ForbiddenError";
|
|
749
|
+
readonly message: string;
|
|
750
|
+
}>, Schema.Struct<{
|
|
751
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
752
|
+
readonly message: Schema.String;
|
|
753
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
|
|
754
|
+
readonly _tag: "GatewayTimeoutError";
|
|
755
|
+
readonly message: string;
|
|
756
|
+
readonly retryAfterSeconds: number;
|
|
757
|
+
}, readonly [Schema.Struct<{
|
|
758
|
+
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
759
|
+
readonly message: Schema.String;
|
|
760
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
761
|
+
}>], {
|
|
762
|
+
readonly _tag: "GatewayTimeoutError";
|
|
763
|
+
readonly message: string;
|
|
764
|
+
readonly retryAfterSeconds: number;
|
|
765
|
+
}>, Schema.Struct<{
|
|
766
|
+
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
767
|
+
readonly message: Schema.String;
|
|
768
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
769
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
770
|
+
readonly _tag: "MalformedRequestError";
|
|
771
|
+
readonly message: string;
|
|
772
|
+
readonly fields: {
|
|
773
|
+
readonly [x: string]: readonly string[];
|
|
774
|
+
};
|
|
775
|
+
}, readonly [Schema.Struct<{
|
|
776
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
777
|
+
readonly message: Schema.String;
|
|
778
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
779
|
+
}>], {
|
|
780
|
+
readonly _tag: "MalformedRequestError";
|
|
781
|
+
readonly message: string;
|
|
782
|
+
readonly fields: {
|
|
783
|
+
readonly [x: string]: readonly string[];
|
|
784
|
+
};
|
|
785
|
+
}>, Schema.Struct<{
|
|
786
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
787
|
+
readonly message: Schema.String;
|
|
788
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
789
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
|
|
790
|
+
readonly _tag: "UnauthorizedError";
|
|
791
|
+
readonly message: string;
|
|
792
|
+
}, readonly [Schema.Struct<{
|
|
793
|
+
readonly _tag: Schema.tag<"UnauthorizedError">;
|
|
794
|
+
readonly message: Schema.String;
|
|
795
|
+
}>], {
|
|
796
|
+
readonly _tag: "UnauthorizedError";
|
|
797
|
+
readonly message: string;
|
|
798
|
+
}>, Schema.Struct<{
|
|
799
|
+
readonly _tag: Schema.tag<"UnauthorizedError">;
|
|
800
|
+
readonly message: Schema.String;
|
|
801
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ValidationError, {
|
|
802
|
+
readonly _tag: "ValidationError";
|
|
803
|
+
readonly message: string;
|
|
804
|
+
readonly fields?: {
|
|
805
|
+
readonly [x: string]: readonly string[];
|
|
806
|
+
} | null;
|
|
807
|
+
}, readonly [Schema.Struct<{
|
|
808
|
+
readonly _tag: Schema.tag<"ValidationError">;
|
|
809
|
+
readonly message: Schema.String;
|
|
810
|
+
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
811
|
+
}>], {
|
|
812
|
+
readonly _tag: "ValidationError";
|
|
813
|
+
readonly message: string;
|
|
814
|
+
readonly fields?: {
|
|
815
|
+
readonly [x: string]: readonly string[];
|
|
816
|
+
} | null;
|
|
817
|
+
}>, Schema.Struct<{
|
|
818
|
+
readonly _tag: Schema.tag<"ValidationError">;
|
|
819
|
+
readonly message: Schema.String;
|
|
820
|
+
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
821
|
+
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never>;
|
|
822
|
+
export declare const WebhooksCreateEndpoint: HttpApiEndpoint.HttpApiEndpoint<"webhooksCreate", "POST", "/v1/webhooks", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
712
823
|
readonly name: Schema.String;
|
|
713
824
|
readonly url: Schema.String;
|
|
714
|
-
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<"email.sending.paused">, Schema.Literal<"email.sending.resumed">, 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.spam">, Schema.Literal<"mailbox.message.discarded">, Schema.Literal<"mailbox.thread.deleted">, Schema.Literal<"mailbox.message.delivered">, Schema.Literal<"mailbox.message.read">, Schema.Literal<"mailbox.message.failed">, Schema.Literal<"journey.webhook">]>>;
|
|
825
|
+
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<"email.sending.paused">, Schema.Literal<"email.sending.resumed">, Schema.Literal<"template.registration.updated">, Schema.Literal<"flow.registration.updated">, Schema.Literal<"whatsapp.number.connected">, Schema.Literal<"whatsapp.number.updated">, 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.spam">, Schema.Literal<"mailbox.message.discarded">, Schema.Literal<"mailbox.thread.deleted">, Schema.Literal<"mailbox.message.delivered">, Schema.Literal<"mailbox.message.read">, Schema.Literal<"mailbox.message.failed">, Schema.Literal<"journey.webhook">]>>;
|
|
715
826
|
readonly channels: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>>, Schema.Null]>>;
|
|
716
827
|
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]>>;
|
|
717
828
|
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
@@ -722,7 +833,7 @@ declare const WebhooksGroup_base: HttpApiGroup.HttpApiGroup<"Webhooks", HttpApiE
|
|
|
722
833
|
readonly id: Schema.brand<Schema.String, "WebhookEndpointId">;
|
|
723
834
|
readonly name: Schema.String;
|
|
724
835
|
readonly url: Schema.String;
|
|
725
|
-
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<"email.sending.paused">, Schema.Literal<"email.sending.resumed">, 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.spam">, Schema.Literal<"mailbox.message.discarded">, Schema.Literal<"mailbox.thread.deleted">, Schema.Literal<"mailbox.message.delivered">, Schema.Literal<"mailbox.message.read">, Schema.Literal<"mailbox.message.failed">, Schema.Literal<"journey.webhook">]>>;
|
|
836
|
+
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<"email.sending.paused">, Schema.Literal<"email.sending.resumed">, Schema.Literal<"template.registration.updated">, Schema.Literal<"flow.registration.updated">, Schema.Literal<"whatsapp.number.connected">, Schema.Literal<"whatsapp.number.updated">, 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.spam">, Schema.Literal<"mailbox.message.discarded">, Schema.Literal<"mailbox.thread.deleted">, Schema.Literal<"mailbox.message.delivered">, Schema.Literal<"mailbox.message.read">, Schema.Literal<"mailbox.message.failed">, Schema.Literal<"journey.webhook">]>>;
|
|
726
837
|
readonly channels: Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>>, Schema.Null]>;
|
|
727
838
|
readonly mailboxIds: Schema.Union<readonly [Schema.$Array<Schema.brand<Schema.String, "MailboxId">>, Schema.Null]>;
|
|
728
839
|
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
@@ -890,13 +1001,14 @@ declare const WebhooksGroup_base: HttpApiGroup.HttpApiGroup<"Webhooks", HttpApiE
|
|
|
890
1001
|
readonly _tag: Schema.tag<"ValidationError">;
|
|
891
1002
|
readonly message: Schema.String;
|
|
892
1003
|
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
893
|
-
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never
|
|
1004
|
+
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never>;
|
|
1005
|
+
export declare const WebhooksGetEndpoint: HttpApiEndpoint.HttpApiEndpoint<"webhooksGet", "GET", "/v1/webhooks/:id", Schema.toCodecStringTree<Schema.Struct<{
|
|
894
1006
|
readonly id: Schema.brand<Schema.String, "WebhookEndpointId">;
|
|
895
1007
|
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
896
1008
|
readonly id: Schema.brand<Schema.String, "WebhookEndpointId">;
|
|
897
1009
|
readonly name: Schema.String;
|
|
898
1010
|
readonly url: Schema.String;
|
|
899
|
-
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<"email.sending.paused">, Schema.Literal<"email.sending.resumed">, 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.spam">, Schema.Literal<"mailbox.message.discarded">, Schema.Literal<"mailbox.thread.deleted">, Schema.Literal<"mailbox.message.delivered">, Schema.Literal<"mailbox.message.read">, Schema.Literal<"mailbox.message.failed">, Schema.Literal<"journey.webhook">]>>;
|
|
1011
|
+
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<"email.sending.paused">, Schema.Literal<"email.sending.resumed">, Schema.Literal<"template.registration.updated">, Schema.Literal<"flow.registration.updated">, Schema.Literal<"whatsapp.number.connected">, Schema.Literal<"whatsapp.number.updated">, 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.spam">, Schema.Literal<"mailbox.message.discarded">, Schema.Literal<"mailbox.thread.deleted">, Schema.Literal<"mailbox.message.delivered">, Schema.Literal<"mailbox.message.read">, Schema.Literal<"mailbox.message.failed">, Schema.Literal<"journey.webhook">]>>;
|
|
900
1012
|
readonly channels: Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>>, Schema.Null]>;
|
|
901
1013
|
readonly mailboxIds: Schema.Union<readonly [Schema.$Array<Schema.brand<Schema.String, "MailboxId">>, Schema.Null]>;
|
|
902
1014
|
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
@@ -1006,42 +1118,24 @@ declare const WebhooksGroup_base: HttpApiGroup.HttpApiGroup<"Webhooks", HttpApiE
|
|
|
1006
1118
|
readonly _tag: Schema.tag<"ValidationError">;
|
|
1007
1119
|
readonly message: Schema.String;
|
|
1008
1120
|
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
1009
|
-
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never
|
|
1121
|
+
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never>;
|
|
1122
|
+
export declare const WebhooksRemoveEndpoint: HttpApiEndpoint.HttpApiEndpoint<"webhooksRemove", "DELETE", "/v1/webhooks/:id", Schema.toCodecStringTree<Schema.Struct<{
|
|
1010
1123
|
readonly id: Schema.brand<Schema.String, "WebhookEndpointId">;
|
|
1011
|
-
}>>, Schema.
|
|
1012
|
-
readonly
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
readonly
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
readonly updatedAt: Schema.String;
|
|
1027
|
-
readonly attempts: Schema.$Array<Schema.Struct<{
|
|
1028
|
-
readonly id: Schema.brand<Schema.String, "WebhookAttemptId">;
|
|
1029
|
-
readonly deliveryId: Schema.brand<Schema.String, "WebhookDeliveryId">;
|
|
1030
|
-
readonly kind: Schema.Union<readonly [Schema.Literal<"automatic">, Schema.Literal<"manual">, Schema.Literal<"replay">]>;
|
|
1031
|
-
readonly queueMessageId: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1032
|
-
readonly attemptNumber: Schema.Finite;
|
|
1033
|
-
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">]>;
|
|
1034
|
-
readonly attemptedAt: Schema.String;
|
|
1035
|
-
readonly responseStatus: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
1036
|
-
readonly responseHeaders: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.String>, Schema.Null]>;
|
|
1037
|
-
readonly durationMs: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
1038
|
-
readonly errorCode: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1039
|
-
readonly errorMessage: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1040
|
-
readonly createdAt: Schema.String;
|
|
1041
|
-
}>>;
|
|
1042
|
-
}>>;
|
|
1043
|
-
readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1044
|
-
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
1124
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
1125
|
+
readonly success: Schema.Boolean;
|
|
1126
|
+
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<BillingProviderError, {
|
|
1127
|
+
readonly _tag: "BillingProviderError";
|
|
1128
|
+
readonly message: string;
|
|
1129
|
+
}, readonly [Schema.Struct<{
|
|
1130
|
+
readonly _tag: Schema.tag<"BillingProviderError">;
|
|
1131
|
+
readonly message: Schema.String;
|
|
1132
|
+
}>], {
|
|
1133
|
+
readonly _tag: "BillingProviderError";
|
|
1134
|
+
readonly message: string;
|
|
1135
|
+
}>, Schema.Struct<{
|
|
1136
|
+
readonly _tag: Schema.tag<"BillingProviderError">;
|
|
1137
|
+
readonly message: Schema.String;
|
|
1138
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
1045
1139
|
readonly _tag: "ForbiddenError";
|
|
1046
1140
|
readonly message: string;
|
|
1047
1141
|
}, readonly [Schema.Struct<{
|
|
@@ -1141,13 +1235,53 @@ declare const WebhooksGroup_base: HttpApiGroup.HttpApiGroup<"Webhooks", HttpApiE
|
|
|
1141
1235
|
readonly _tag: Schema.tag<"ValidationError">;
|
|
1142
1236
|
readonly message: Schema.String;
|
|
1143
1237
|
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
1144
|
-
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never
|
|
1238
|
+
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never>;
|
|
1239
|
+
export declare const WebhooksUpdateEndpoint: HttpApiEndpoint.HttpApiEndpoint<"webhooksUpdate", "PATCH", "/v1/webhooks/:id", Schema.toCodecStringTree<Schema.Struct<{
|
|
1145
1240
|
readonly id: Schema.brand<Schema.String, "WebhookEndpointId">;
|
|
1146
|
-
}>>, never,
|
|
1147
|
-
readonly
|
|
1241
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
1242
|
+
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1243
|
+
readonly url: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1244
|
+
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<"email.sending.paused">, Schema.Literal<"email.sending.resumed">, Schema.Literal<"template.registration.updated">, Schema.Literal<"flow.registration.updated">, Schema.Literal<"whatsapp.number.connected">, Schema.Literal<"whatsapp.number.updated">, 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.spam">, Schema.Literal<"mailbox.message.discarded">, Schema.Literal<"mailbox.thread.deleted">, Schema.Literal<"mailbox.message.delivered">, Schema.Literal<"mailbox.message.read">, Schema.Literal<"mailbox.message.failed">, Schema.Literal<"journey.webhook">]>>, Schema.Null]>>;
|
|
1245
|
+
readonly channels: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>>, Schema.Null]>>;
|
|
1246
|
+
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]>>;
|
|
1247
|
+
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
1248
|
+
readonly headers: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.String>, Schema.Null]>>;
|
|
1249
|
+
readonly status: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"disabled">]>, Schema.Null]>>;
|
|
1250
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
1251
|
+
readonly id: Schema.brand<Schema.String, "WebhookEndpointId">;
|
|
1252
|
+
readonly name: Schema.String;
|
|
1253
|
+
readonly url: Schema.String;
|
|
1254
|
+
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<"email.sending.paused">, Schema.Literal<"email.sending.resumed">, Schema.Literal<"template.registration.updated">, Schema.Literal<"flow.registration.updated">, Schema.Literal<"whatsapp.number.connected">, Schema.Literal<"whatsapp.number.updated">, 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.spam">, Schema.Literal<"mailbox.message.discarded">, Schema.Literal<"mailbox.thread.deleted">, Schema.Literal<"mailbox.message.delivered">, Schema.Literal<"mailbox.message.read">, Schema.Literal<"mailbox.message.failed">, Schema.Literal<"journey.webhook">]>>;
|
|
1255
|
+
readonly channels: Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>>, Schema.Null]>;
|
|
1256
|
+
readonly mailboxIds: Schema.Union<readonly [Schema.$Array<Schema.brand<Schema.String, "MailboxId">>, Schema.Null]>;
|
|
1257
|
+
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
1258
|
+
readonly status: Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"disabled">]>;
|
|
1259
|
+
readonly hasCustomHeaders: Schema.Boolean;
|
|
1260
|
+
readonly failureStartedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1261
|
+
readonly lastSucceededAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1148
1262
|
readonly createdAt: Schema.String;
|
|
1149
|
-
readonly
|
|
1150
|
-
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<
|
|
1263
|
+
readonly updatedAt: Schema.String;
|
|
1264
|
+
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ConflictError, {
|
|
1265
|
+
readonly _tag: "ConflictError";
|
|
1266
|
+
readonly message: string;
|
|
1267
|
+
readonly resource: string;
|
|
1268
|
+
readonly id?: string | null;
|
|
1269
|
+
}, readonly [Schema.Struct<{
|
|
1270
|
+
readonly _tag: Schema.tag<"ConflictError">;
|
|
1271
|
+
readonly message: Schema.String;
|
|
1272
|
+
readonly resource: Schema.String;
|
|
1273
|
+
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1274
|
+
}>], {
|
|
1275
|
+
readonly _tag: "ConflictError";
|
|
1276
|
+
readonly message: string;
|
|
1277
|
+
readonly resource: string;
|
|
1278
|
+
readonly id?: string | null;
|
|
1279
|
+
}>, Schema.Struct<{
|
|
1280
|
+
readonly _tag: Schema.tag<"ConflictError">;
|
|
1281
|
+
readonly message: Schema.String;
|
|
1282
|
+
readonly resource: Schema.String;
|
|
1283
|
+
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1284
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
1151
1285
|
readonly _tag: "ForbiddenError";
|
|
1152
1286
|
readonly message: string;
|
|
1153
1287
|
}, readonly [Schema.Struct<{
|
|
@@ -1247,28 +1381,15 @@ declare const WebhooksGroup_base: HttpApiGroup.HttpApiGroup<"Webhooks", HttpApiE
|
|
|
1247
1381
|
readonly _tag: Schema.tag<"ValidationError">;
|
|
1248
1382
|
readonly message: Schema.String;
|
|
1249
1383
|
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
1250
|
-
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never
|
|
1384
|
+
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never>;
|
|
1385
|
+
export declare const WebhooksRetryDeliveryEndpoint: HttpApiEndpoint.HttpApiEndpoint<"webhooksRetryDelivery", "POST", "/v1/webhooks/:id/deliveries/:deliveryId/redeliver", Schema.toCodecStringTree<Schema.Struct<{
|
|
1251
1386
|
readonly id: Schema.brand<Schema.String, "WebhookEndpointId">;
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
readonly
|
|
1255
|
-
|
|
1256
|
-
readonly
|
|
1257
|
-
readonly
|
|
1258
|
-
readonly delivered: Schema.Finite;
|
|
1259
|
-
readonly exhausted: Schema.Finite;
|
|
1260
|
-
readonly cancelled: Schema.Finite;
|
|
1261
|
-
readonly daily: Schema.$Array<Schema.Struct<{
|
|
1262
|
-
readonly date: Schema.String;
|
|
1263
|
-
readonly pending: Schema.Finite;
|
|
1264
|
-
readonly delivered: Schema.Finite;
|
|
1265
|
-
readonly exhausted: Schema.Finite;
|
|
1266
|
-
readonly cancelled: Schema.Finite;
|
|
1267
|
-
}>>;
|
|
1268
|
-
readonly latestAttempt: Schema.Union<readonly [Schema.Struct<{
|
|
1269
|
-
readonly errorCode: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1270
|
-
readonly completedAt: Schema.String;
|
|
1271
|
-
}>, Schema.Null]>;
|
|
1387
|
+
readonly deliveryId: Schema.brand<Schema.String, "WebhookDeliveryId">;
|
|
1388
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
1389
|
+
readonly accepted: Schema.Literal<true>;
|
|
1390
|
+
readonly deliveryId: Schema.brand<Schema.String, "WebhookDeliveryId">;
|
|
1391
|
+
readonly attemptId: Schema.brand<Schema.String, "WebhookAttemptId">;
|
|
1392
|
+
readonly outcome: Schema.Union<readonly [Schema.Literal<"succeeded">, Schema.Literal<"failed">]>;
|
|
1272
1393
|
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
1273
1394
|
readonly _tag: "ForbiddenError";
|
|
1274
1395
|
readonly message: string;
|
|
@@ -1317,6 +1438,22 @@ declare const WebhooksGroup_base: HttpApiGroup.HttpApiGroup<"Webhooks", HttpApiE
|
|
|
1317
1438
|
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
1318
1439
|
readonly message: Schema.String;
|
|
1319
1440
|
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
1441
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<RateLimitedError, {
|
|
1442
|
+
readonly _tag: "RateLimitedError";
|
|
1443
|
+
readonly message: string;
|
|
1444
|
+
readonly retryAfterSeconds: number;
|
|
1445
|
+
}, readonly [Schema.Struct<{
|
|
1446
|
+
readonly _tag: Schema.tag<"RateLimitedError">;
|
|
1447
|
+
readonly message: Schema.String;
|
|
1448
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
1449
|
+
}>], {
|
|
1450
|
+
readonly _tag: "RateLimitedError";
|
|
1451
|
+
readonly message: string;
|
|
1452
|
+
readonly retryAfterSeconds: number;
|
|
1453
|
+
}>, Schema.Struct<{
|
|
1454
|
+
readonly _tag: Schema.tag<"RateLimitedError">;
|
|
1455
|
+
readonly message: Schema.String;
|
|
1456
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
1320
1457
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
1321
1458
|
readonly _tag: "ResourceNotFoundError";
|
|
1322
1459
|
readonly resource: string;
|
|
@@ -1369,34 +1506,40 @@ declare const WebhooksGroup_base: HttpApiGroup.HttpApiGroup<"Webhooks", HttpApiE
|
|
|
1369
1506
|
readonly _tag: Schema.tag<"ValidationError">;
|
|
1370
1507
|
readonly message: Schema.String;
|
|
1371
1508
|
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
1372
|
-
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never
|
|
1509
|
+
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never>;
|
|
1510
|
+
export declare const WebhooksGetLogsEndpoint: HttpApiEndpoint.HttpApiEndpoint<"webhooksGetLogs", "GET", "/v1/webhooks/:id/logs", Schema.toCodecStringTree<Schema.Struct<{
|
|
1511
|
+
readonly id: Schema.brand<Schema.String, "WebhookEndpointId">;
|
|
1512
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
1373
1513
|
readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
|
|
1374
1514
|
readonly cursor: Schema.optionalKey<Schema.String>;
|
|
1375
|
-
readonly namespaceId: Schema.optionalKey<Schema.brand<Schema.String, "NamespaceId">>;
|
|
1376
|
-
readonly search: Schema.optionalKey<Schema.String>;
|
|
1377
|
-
readonly status: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"disabled">]>>;
|
|
1378
1515
|
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
1379
1516
|
readonly items: Schema.$Array<Schema.Struct<{
|
|
1380
|
-
readonly id: Schema.brand<Schema.String, "
|
|
1381
|
-
readonly
|
|
1382
|
-
readonly
|
|
1383
|
-
readonly
|
|
1384
|
-
readonly
|
|
1385
|
-
readonly
|
|
1386
|
-
readonly
|
|
1387
|
-
readonly
|
|
1388
|
-
readonly
|
|
1389
|
-
readonly failureStartedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1390
|
-
readonly lastSucceededAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1517
|
+
readonly id: Schema.brand<Schema.String, "WebhookDeliveryId">;
|
|
1518
|
+
readonly eventId: Schema.brand<Schema.String, "WebhookEventId">;
|
|
1519
|
+
readonly eventType: Schema.String;
|
|
1520
|
+
readonly occurredAt: Schema.String;
|
|
1521
|
+
readonly endpointId: Schema.brand<Schema.String, "WebhookEndpointId">;
|
|
1522
|
+
readonly status: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"delivered">, Schema.Literal<"exhausted">, Schema.Literal<"cancelled">]>;
|
|
1523
|
+
readonly automaticAttempts: Schema.Finite;
|
|
1524
|
+
readonly nextAttemptAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1525
|
+
readonly completedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1391
1526
|
readonly createdAt: Schema.String;
|
|
1392
1527
|
readonly updatedAt: Schema.String;
|
|
1393
|
-
readonly
|
|
1394
|
-
readonly
|
|
1395
|
-
readonly
|
|
1396
|
-
readonly
|
|
1397
|
-
readonly
|
|
1398
|
-
readonly
|
|
1399
|
-
|
|
1528
|
+
readonly attempts: Schema.$Array<Schema.Struct<{
|
|
1529
|
+
readonly id: Schema.brand<Schema.String, "WebhookAttemptId">;
|
|
1530
|
+
readonly deliveryId: Schema.brand<Schema.String, "WebhookDeliveryId">;
|
|
1531
|
+
readonly kind: Schema.Union<readonly [Schema.Literal<"automatic">, Schema.Literal<"manual">, Schema.Literal<"replay">]>;
|
|
1532
|
+
readonly queueMessageId: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1533
|
+
readonly attemptNumber: Schema.Finite;
|
|
1534
|
+
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">]>;
|
|
1535
|
+
readonly attemptedAt: Schema.String;
|
|
1536
|
+
readonly responseStatus: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
1537
|
+
readonly responseHeaders: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.String>, Schema.Null]>;
|
|
1538
|
+
readonly durationMs: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
1539
|
+
readonly errorCode: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1540
|
+
readonly errorMessage: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1541
|
+
readonly createdAt: Schema.String;
|
|
1542
|
+
}>>;
|
|
1400
1543
|
}>>;
|
|
1401
1544
|
readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1402
1545
|
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
@@ -1447,90 +1590,6 @@ declare const WebhooksGroup_base: HttpApiGroup.HttpApiGroup<"Webhooks", HttpApiE
|
|
|
1447
1590
|
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
1448
1591
|
readonly message: Schema.String;
|
|
1449
1592
|
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
1450
|
-
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
|
|
1451
|
-
readonly _tag: "UnauthorizedError";
|
|
1452
|
-
readonly message: string;
|
|
1453
|
-
}, readonly [Schema.Struct<{
|
|
1454
|
-
readonly _tag: Schema.tag<"UnauthorizedError">;
|
|
1455
|
-
readonly message: Schema.String;
|
|
1456
|
-
}>], {
|
|
1457
|
-
readonly _tag: "UnauthorizedError";
|
|
1458
|
-
readonly message: string;
|
|
1459
|
-
}>, Schema.Struct<{
|
|
1460
|
-
readonly _tag: Schema.tag<"UnauthorizedError">;
|
|
1461
|
-
readonly message: Schema.String;
|
|
1462
|
-
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ValidationError, {
|
|
1463
|
-
readonly _tag: "ValidationError";
|
|
1464
|
-
readonly message: string;
|
|
1465
|
-
readonly fields?: {
|
|
1466
|
-
readonly [x: string]: readonly string[];
|
|
1467
|
-
} | null;
|
|
1468
|
-
}, readonly [Schema.Struct<{
|
|
1469
|
-
readonly _tag: Schema.tag<"ValidationError">;
|
|
1470
|
-
readonly message: Schema.String;
|
|
1471
|
-
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
1472
|
-
}>], {
|
|
1473
|
-
readonly _tag: "ValidationError";
|
|
1474
|
-
readonly message: string;
|
|
1475
|
-
readonly fields?: {
|
|
1476
|
-
readonly [x: string]: readonly string[];
|
|
1477
|
-
} | null;
|
|
1478
|
-
}>, Schema.Struct<{
|
|
1479
|
-
readonly _tag: Schema.tag<"ValidationError">;
|
|
1480
|
-
readonly message: Schema.String;
|
|
1481
|
-
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
1482
|
-
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"webhooksRegenerateSecret", "POST", "/v1/webhooks/:id/rotate-secret", Schema.toCodecStringTree<Schema.Struct<{
|
|
1483
|
-
readonly id: Schema.brand<Schema.String, "WebhookEndpointId">;
|
|
1484
|
-
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
1485
|
-
readonly secret: Schema.RedactedFromValue<Schema.Codec<string, string, never, never>>;
|
|
1486
|
-
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
1487
|
-
readonly _tag: "ForbiddenError";
|
|
1488
|
-
readonly message: string;
|
|
1489
|
-
}, readonly [Schema.Struct<{
|
|
1490
|
-
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
1491
|
-
readonly message: Schema.String;
|
|
1492
|
-
}>], {
|
|
1493
|
-
readonly _tag: "ForbiddenError";
|
|
1494
|
-
readonly message: string;
|
|
1495
|
-
}>, Schema.Struct<{
|
|
1496
|
-
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
1497
|
-
readonly message: Schema.String;
|
|
1498
|
-
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
|
|
1499
|
-
readonly _tag: "GatewayTimeoutError";
|
|
1500
|
-
readonly message: string;
|
|
1501
|
-
readonly retryAfterSeconds: number;
|
|
1502
|
-
}, readonly [Schema.Struct<{
|
|
1503
|
-
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
1504
|
-
readonly message: Schema.String;
|
|
1505
|
-
readonly retryAfterSeconds: Schema.Finite;
|
|
1506
|
-
}>], {
|
|
1507
|
-
readonly _tag: "GatewayTimeoutError";
|
|
1508
|
-
readonly message: string;
|
|
1509
|
-
readonly retryAfterSeconds: number;
|
|
1510
|
-
}>, Schema.Struct<{
|
|
1511
|
-
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
1512
|
-
readonly message: Schema.String;
|
|
1513
|
-
readonly retryAfterSeconds: Schema.Finite;
|
|
1514
|
-
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
1515
|
-
readonly _tag: "MalformedRequestError";
|
|
1516
|
-
readonly message: string;
|
|
1517
|
-
readonly fields: {
|
|
1518
|
-
readonly [x: string]: readonly string[];
|
|
1519
|
-
};
|
|
1520
|
-
}, readonly [Schema.Struct<{
|
|
1521
|
-
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
1522
|
-
readonly message: Schema.String;
|
|
1523
|
-
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
1524
|
-
}>], {
|
|
1525
|
-
readonly _tag: "MalformedRequestError";
|
|
1526
|
-
readonly message: string;
|
|
1527
|
-
readonly fields: {
|
|
1528
|
-
readonly [x: string]: readonly string[];
|
|
1529
|
-
};
|
|
1530
|
-
}>, Schema.Struct<{
|
|
1531
|
-
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
1532
|
-
readonly message: Schema.String;
|
|
1533
|
-
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
1534
1593
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
1535
1594
|
readonly _tag: "ResourceNotFoundError";
|
|
1536
1595
|
readonly resource: string;
|
|
@@ -1583,23 +1642,12 @@ declare const WebhooksGroup_base: HttpApiGroup.HttpApiGroup<"Webhooks", HttpApiE
|
|
|
1583
1642
|
readonly _tag: Schema.tag<"ValidationError">;
|
|
1584
1643
|
readonly message: Schema.String;
|
|
1585
1644
|
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
1586
|
-
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never
|
|
1645
|
+
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never>;
|
|
1646
|
+
export declare const WebhooksRegenerateSecretEndpoint: HttpApiEndpoint.HttpApiEndpoint<"webhooksRegenerateSecret", "POST", "/v1/webhooks/:id/rotate-secret", Schema.toCodecStringTree<Schema.Struct<{
|
|
1587
1647
|
readonly id: Schema.brand<Schema.String, "WebhookEndpointId">;
|
|
1588
1648
|
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
1589
|
-
readonly
|
|
1590
|
-
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<
|
|
1591
|
-
readonly _tag: "BillingProviderError";
|
|
1592
|
-
readonly message: string;
|
|
1593
|
-
}, readonly [Schema.Struct<{
|
|
1594
|
-
readonly _tag: Schema.tag<"BillingProviderError">;
|
|
1595
|
-
readonly message: Schema.String;
|
|
1596
|
-
}>], {
|
|
1597
|
-
readonly _tag: "BillingProviderError";
|
|
1598
|
-
readonly message: string;
|
|
1599
|
-
}>, Schema.Struct<{
|
|
1600
|
-
readonly _tag: Schema.tag<"BillingProviderError">;
|
|
1601
|
-
readonly message: Schema.String;
|
|
1602
|
-
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
1649
|
+
readonly secret: Schema.RedactedFromValue<Schema.Codec<string, string, never, never>>;
|
|
1650
|
+
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
1603
1651
|
readonly _tag: "ForbiddenError";
|
|
1604
1652
|
readonly message: string;
|
|
1605
1653
|
}, readonly [Schema.Struct<{
|
|
@@ -1699,14 +1747,13 @@ declare const WebhooksGroup_base: HttpApiGroup.HttpApiGroup<"Webhooks", HttpApiE
|
|
|
1699
1747
|
readonly _tag: Schema.tag<"ValidationError">;
|
|
1700
1748
|
readonly message: Schema.String;
|
|
1701
1749
|
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
1702
|
-
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never
|
|
1750
|
+
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never>;
|
|
1751
|
+
export declare const WebhooksGetSecretEndpoint: HttpApiEndpoint.HttpApiEndpoint<"webhooksGetSecret", "GET", "/v1/webhooks/:id/secret", Schema.toCodecStringTree<Schema.Struct<{
|
|
1703
1752
|
readonly id: Schema.brand<Schema.String, "WebhookEndpointId">;
|
|
1704
|
-
readonly deliveryId: Schema.brand<Schema.String, "WebhookDeliveryId">;
|
|
1705
1753
|
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
1706
|
-
readonly
|
|
1707
|
-
readonly
|
|
1708
|
-
readonly
|
|
1709
|
-
readonly outcome: Schema.Union<readonly [Schema.Literal<"succeeded">, Schema.Literal<"failed">]>;
|
|
1754
|
+
readonly secret: Schema.RedactedFromValue<Schema.Codec<string, string, never, never>>;
|
|
1755
|
+
readonly createdAt: Schema.String;
|
|
1756
|
+
readonly previousExpiresAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1710
1757
|
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
1711
1758
|
readonly _tag: "ForbiddenError";
|
|
1712
1759
|
readonly message: string;
|
|
@@ -1755,22 +1802,6 @@ declare const WebhooksGroup_base: HttpApiGroup.HttpApiGroup<"Webhooks", HttpApiE
|
|
|
1755
1802
|
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
1756
1803
|
readonly message: Schema.String;
|
|
1757
1804
|
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
1758
|
-
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<RateLimitedError, {
|
|
1759
|
-
readonly _tag: "RateLimitedError";
|
|
1760
|
-
readonly message: string;
|
|
1761
|
-
readonly retryAfterSeconds: number;
|
|
1762
|
-
}, readonly [Schema.Struct<{
|
|
1763
|
-
readonly _tag: Schema.tag<"RateLimitedError">;
|
|
1764
|
-
readonly message: Schema.String;
|
|
1765
|
-
readonly retryAfterSeconds: Schema.Finite;
|
|
1766
|
-
}>], {
|
|
1767
|
-
readonly _tag: "RateLimitedError";
|
|
1768
|
-
readonly message: string;
|
|
1769
|
-
readonly retryAfterSeconds: number;
|
|
1770
|
-
}>, Schema.Struct<{
|
|
1771
|
-
readonly _tag: Schema.tag<"RateLimitedError">;
|
|
1772
|
-
readonly message: Schema.String;
|
|
1773
|
-
readonly retryAfterSeconds: Schema.Finite;
|
|
1774
1805
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
1775
1806
|
readonly _tag: "ResourceNotFoundError";
|
|
1776
1807
|
readonly resource: string;
|
|
@@ -1823,14 +1854,29 @@ declare const WebhooksGroup_base: HttpApiGroup.HttpApiGroup<"Webhooks", HttpApiE
|
|
|
1823
1854
|
readonly _tag: Schema.tag<"ValidationError">;
|
|
1824
1855
|
readonly message: Schema.String;
|
|
1825
1856
|
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
1826
|
-
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never
|
|
1857
|
+
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never>;
|
|
1858
|
+
export declare const WebhooksGetStatsEndpoint: HttpApiEndpoint.HttpApiEndpoint<"webhooksGetStats", "GET", "/v1/webhooks/:id/stats", Schema.toCodecStringTree<Schema.Struct<{
|
|
1827
1859
|
readonly id: Schema.brand<Schema.String, "WebhookEndpointId">;
|
|
1828
|
-
}>>,
|
|
1829
|
-
readonly
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
readonly
|
|
1833
|
-
readonly
|
|
1860
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
1861
|
+
readonly after: Schema.optionalKey<Schema.String>;
|
|
1862
|
+
readonly before: Schema.optionalKey<Schema.String>;
|
|
1863
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
1864
|
+
readonly total: Schema.Finite;
|
|
1865
|
+
readonly pending: Schema.Finite;
|
|
1866
|
+
readonly delivered: Schema.Finite;
|
|
1867
|
+
readonly exhausted: Schema.Finite;
|
|
1868
|
+
readonly cancelled: Schema.Finite;
|
|
1869
|
+
readonly daily: Schema.$Array<Schema.Struct<{
|
|
1870
|
+
readonly date: Schema.String;
|
|
1871
|
+
readonly pending: Schema.Finite;
|
|
1872
|
+
readonly delivered: Schema.Finite;
|
|
1873
|
+
readonly exhausted: Schema.Finite;
|
|
1874
|
+
readonly cancelled: Schema.Finite;
|
|
1875
|
+
}>>;
|
|
1876
|
+
readonly latestAttempt: Schema.Union<readonly [Schema.Struct<{
|
|
1877
|
+
readonly errorCode: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1878
|
+
readonly completedAt: Schema.String;
|
|
1879
|
+
}>, Schema.Null]>;
|
|
1834
1880
|
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
1835
1881
|
readonly _tag: "ForbiddenError";
|
|
1836
1882
|
readonly message: string;
|
|
@@ -1931,52 +1977,16 @@ declare const WebhooksGroup_base: HttpApiGroup.HttpApiGroup<"Webhooks", HttpApiE
|
|
|
1931
1977
|
readonly _tag: Schema.tag<"ValidationError">;
|
|
1932
1978
|
readonly message: Schema.String;
|
|
1933
1979
|
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
1934
|
-
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never
|
|
1980
|
+
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never>;
|
|
1981
|
+
export declare const WebhooksTestEndpoint: HttpApiEndpoint.HttpApiEndpoint<"webhooksTest", "POST", "/v1/webhooks/:id/test", Schema.toCodecStringTree<Schema.Struct<{
|
|
1935
1982
|
readonly id: Schema.brand<Schema.String, "WebhookEndpointId">;
|
|
1936
1983
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
1937
|
-
readonly
|
|
1938
|
-
readonly url: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1939
|
-
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<"email.sending.paused">, Schema.Literal<"email.sending.resumed">, 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.spam">, Schema.Literal<"mailbox.message.discarded">, Schema.Literal<"mailbox.thread.deleted">, Schema.Literal<"mailbox.message.delivered">, Schema.Literal<"mailbox.message.read">, Schema.Literal<"mailbox.message.failed">, Schema.Literal<"journey.webhook">]>>, Schema.Null]>>;
|
|
1940
|
-
readonly channels: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>>, Schema.Null]>>;
|
|
1941
|
-
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]>>;
|
|
1942
|
-
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
1943
|
-
readonly headers: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.String>, Schema.Null]>>;
|
|
1944
|
-
readonly status: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"disabled">]>, Schema.Null]>>;
|
|
1984
|
+
readonly data: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
1945
1985
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
1946
|
-
readonly
|
|
1947
|
-
readonly
|
|
1948
|
-
readonly
|
|
1949
|
-
|
|
1950
|
-
readonly channels: Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>>, Schema.Null]>;
|
|
1951
|
-
readonly mailboxIds: Schema.Union<readonly [Schema.$Array<Schema.brand<Schema.String, "MailboxId">>, Schema.Null]>;
|
|
1952
|
-
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
1953
|
-
readonly status: Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"disabled">]>;
|
|
1954
|
-
readonly hasCustomHeaders: Schema.Boolean;
|
|
1955
|
-
readonly failureStartedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1956
|
-
readonly lastSucceededAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1957
|
-
readonly createdAt: Schema.String;
|
|
1958
|
-
readonly updatedAt: Schema.String;
|
|
1959
|
-
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ConflictError, {
|
|
1960
|
-
readonly _tag: "ConflictError";
|
|
1961
|
-
readonly message: string;
|
|
1962
|
-
readonly resource: string;
|
|
1963
|
-
readonly id?: string | null;
|
|
1964
|
-
}, readonly [Schema.Struct<{
|
|
1965
|
-
readonly _tag: Schema.tag<"ConflictError">;
|
|
1966
|
-
readonly message: Schema.String;
|
|
1967
|
-
readonly resource: Schema.String;
|
|
1968
|
-
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1969
|
-
}>], {
|
|
1970
|
-
readonly _tag: "ConflictError";
|
|
1971
|
-
readonly message: string;
|
|
1972
|
-
readonly resource: string;
|
|
1973
|
-
readonly id?: string | null;
|
|
1974
|
-
}>, Schema.Struct<{
|
|
1975
|
-
readonly _tag: Schema.tag<"ConflictError">;
|
|
1976
|
-
readonly message: Schema.String;
|
|
1977
|
-
readonly resource: Schema.String;
|
|
1978
|
-
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1979
|
-
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
1986
|
+
readonly accepted: Schema.Literal<true>;
|
|
1987
|
+
readonly eventId: Schema.brand<Schema.String, "WebhookEventId">;
|
|
1988
|
+
readonly deliveryId: Schema.brand<Schema.String, "WebhookDeliveryId">;
|
|
1989
|
+
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
1980
1990
|
readonly _tag: "ForbiddenError";
|
|
1981
1991
|
readonly message: string;
|
|
1982
1992
|
}, readonly [Schema.Struct<{
|
|
@@ -2076,7 +2086,4 @@ declare const WebhooksGroup_base: HttpApiGroup.HttpApiGroup<"Webhooks", HttpApiE
|
|
|
2076
2086
|
readonly _tag: Schema.tag<"ValidationError">;
|
|
2077
2087
|
readonly message: Schema.String;
|
|
2078
2088
|
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
2079
|
-
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never
|
|
2080
|
-
export declare class WebhooksGroup extends WebhooksGroup_base {
|
|
2081
|
-
}
|
|
2082
|
-
export {};
|
|
2089
|
+
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never>;
|