samva 0.53.0 → 0.55.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +1 -1
- package/README.md +1 -0
- package/dist/_virtual/_rolldown/runtime.js +4 -4
- package/dist/agent/index.js +1 -1
- package/dist/client/client/client.gen.js +1 -2
- package/dist/client/client/utils.gen.js +1 -1
- package/dist/client/client.gen.js +1 -1
- package/dist/client/sdk.gen.d.ts +96 -12
- package/dist/client/sdk.gen.js +314 -25
- package/dist/client/types.gen.d.ts +647 -13
- package/dist/client-attribution.js +1 -1
- package/dist/effect/agents.js +1 -1
- package/dist/effect/analytics.js +1 -1
- package/dist/effect/api-keys.js +1 -1
- package/dist/effect/approval-requests.js +1 -1
- package/dist/effect/attachments.js +1 -1
- package/dist/effect/brands.d.ts +8 -1
- package/dist/effect/brands.js +2 -2
- package/dist/effect/campaigns.d.ts +66 -56
- package/dist/effect/campaigns.js +1 -1
- package/dist/effect/categories.js +6 -6
- package/dist/effect/contact-groups.js +1 -1
- package/dist/effect/contacts.js +1 -1
- package/dist/effect/conversations.js +1 -1
- package/dist/effect/custom-fields.js +1 -1
- package/dist/effect/descriptors/brands.d.ts +4 -4
- package/dist/effect/descriptors/brands.js +4 -4
- package/dist/effect/descriptors/email.d.ts +21 -1
- package/dist/effect/descriptors/email.js +21 -1
- package/dist/effect/descriptors/phone-numbers.d.ts +49 -0
- package/dist/effect/descriptors/phone-numbers.js +47 -0
- package/dist/effect/descriptors/topics.d.ts +1 -1
- package/dist/effect/descriptors/topics.js +1 -1
- package/dist/effect/email.d.ts +12 -0
- package/dist/effect/email.js +6 -2
- package/dist/effect/errors.d.ts +1 -1
- package/dist/effect/errors.js +2 -2
- package/dist/effect/events.js +2 -2
- package/dist/effect/feedback.js +2 -2
- package/dist/effect/generated/accounts.d.ts +12 -1
- package/dist/effect/generated/accounts.js +2 -1
- package/dist/effect/generated/agents.js +7 -7
- package/dist/effect/generated/analytics.js +16 -16
- package/dist/effect/generated/api-keys.js +7 -7
- package/dist/effect/generated/approval-requests.js +1 -1
- package/dist/effect/generated/attachments.js +4 -4
- package/dist/effect/generated/brands.d.ts +78 -8
- package/dist/effect/generated/brands.js +21 -12
- package/dist/effect/generated/campaigns.d.ts +17 -1
- package/dist/effect/generated/campaigns.js +15 -14
- package/dist/effect/generated/contact-events.js +1 -1
- package/dist/effect/generated/contact-groups.js +12 -12
- package/dist/effect/generated/contacts.js +50 -50
- package/dist/effect/generated/conversations.js +7 -7
- package/dist/effect/generated/custom-fields.js +6 -6
- package/dist/effect/generated/email.d.ts +473 -2
- package/dist/effect/generated/email.js +143 -44
- package/dist/effect/generated/events.js +5 -5
- package/dist/effect/generated/feedback.js +1 -1
- package/dist/effect/generated/index.d.ts +3 -1
- package/dist/effect/generated/integrations-catalog.d.ts +16 -0
- package/dist/effect/generated/integrations-catalog.js +10 -6
- package/dist/effect/generated/integrations.js +5 -5
- package/dist/effect/generated/journeys.d.ts +158 -1
- package/dist/effect/generated/journeys.js +16 -14
- package/dist/effect/generated/logs.js +2 -2
- package/dist/effect/generated/mailboxes.d.ts +41 -3
- package/dist/effect/generated/mailboxes.js +48 -50
- package/dist/effect/generated/media.js +1 -1
- package/dist/effect/generated/messages.d.ts +6 -0
- package/dist/effect/generated/messages.js +12 -6
- package/dist/effect/generated/namespaces.d.ts +9 -9
- package/dist/effect/generated/namespaces.js +1 -1
- package/dist/effect/generated/newsletter-domains.js +1 -1
- package/dist/effect/generated/newsletter-issues.js +69 -69
- package/dist/effect/generated/newsletters.js +1 -1
- package/dist/effect/generated/operations.js +1 -1
- package/dist/effect/generated/organizations.d.ts +3 -0
- package/dist/effect/generated/organizations.js +2 -1
- package/dist/effect/generated/phone-numbers.d.ts +817 -0
- package/dist/effect/generated/phone-numbers.js +230 -0
- package/dist/effect/generated/policies.js +2 -2
- package/dist/effect/generated/scheduled-messages.js +1 -1
- package/dist/effect/generated/shared.d.ts +75 -14
- package/dist/effect/generated/shared.js +46 -17
- package/dist/effect/generated/subscriptions.js +1 -1
- package/dist/effect/generated/template-registrations.js +1 -1
- package/dist/effect/generated/template-share-links.js +9 -9
- package/dist/effect/generated/templates.d.ts +34 -1
- package/dist/effect/generated/templates.js +136 -121
- package/dist/effect/generated/topic-forms.js +1 -1
- package/dist/effect/generated/topics.d.ts +10 -0
- package/dist/effect/generated/topics.js +20 -13
- package/dist/effect/generated/webhooks.js +18 -18
- package/dist/effect/generated/whats-app-flows.js +5 -5
- package/dist/effect/generated/whats-app-setup-links.js +1 -1
- package/dist/effect/generated/whats-app.d.ts +75 -0
- package/dist/effect/generated/whats-app.js +43 -18
- package/dist/effect/generated/whoami.js +1 -1
- package/dist/effect/generated-metadata.d.ts +47 -1
- package/dist/effect/generated-metadata.js +175 -146
- package/dist/effect/index.d.ts +1 -0
- package/dist/effect/index.js +6 -5
- package/dist/effect/integrations-catalog.js +1 -1
- package/dist/effect/integrations.js +1 -1
- package/dist/effect/internal/client.js +6 -6
- package/dist/effect/internal/email-sender.js +3 -3
- package/dist/effect/internal/log-events.js +2 -2
- package/dist/effect/internal/mailbox-events.js +1 -1
- package/dist/effect/internal/operation.js +2 -2
- package/dist/effect/internal/send.js +4 -4
- package/dist/effect/journeys.d.ts +20 -0
- package/dist/effect/journeys.js +1 -1
- package/dist/effect/logs.js +1 -1
- package/dist/effect/mailboxes.d.ts +191 -191
- package/dist/effect/mailboxes.js +3 -3
- package/dist/effect/media.js +2 -2
- package/dist/effect/messages.js +2 -2
- package/dist/effect/namespaces.d.ts +2 -2
- package/dist/effect/namespaces.js +1 -1
- package/dist/effect/newsletter-domains.js +1 -1
- package/dist/effect/newsletter-issues.js +1 -1
- package/dist/effect/newsletters.js +1 -1
- package/dist/effect/operations.js +1 -1
- package/dist/effect/organizations.js +1 -1
- package/dist/effect/phone-numbers.d.ts +22 -0
- package/dist/effect/phone-numbers.js +21 -0
- package/dist/effect/policies.js +1 -1
- package/dist/effect/retry.js +3 -3
- package/dist/effect/scheduled-messages.d.ts +350 -350
- package/dist/effect/scheduled-messages.js +1 -1
- package/dist/effect/subscriptions.js +1 -1
- package/dist/effect/template-registrations.js +1 -1
- package/dist/effect/template-share-links.js +1 -1
- package/dist/effect/templates.d.ts +1 -0
- package/dist/effect/templates.js +2 -2
- package/dist/effect/topic-forms.js +1 -1
- package/dist/effect/topics.d.ts +70 -2
- package/dist/effect/topics.js +1 -1
- package/dist/effect/webhooks.js +2 -2
- package/dist/effect/whatsapp-flows.js +1 -1
- package/dist/effect/whatsapp-setup-links.js +1 -1
- package/dist/effect/whatsapp.d.ts +10 -0
- package/dist/effect/whatsapp.js +1 -1
- package/dist/effect/whoami.js +1 -1
- package/dist/index.js +2 -2
- package/dist/package.json.js +5 -0
- package/dist/promises/client.d.ts +3 -1
- package/dist/promises/client.js +7 -5
- package/dist/promises/errors.gen.d.ts +16 -2
- package/dist/promises/errors.gen.js +48 -11
- package/dist/promises/index.js +3 -3
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/request-policy.js +1 -1
- package/dist/service-map.d.ts +40 -5
- package/package.json +9 -5
- package/dist/package.js +0 -5
|
@@ -395,7 +395,7 @@ export type NamespaceResource = {
|
|
|
395
395
|
id: string;
|
|
396
396
|
namespaceId: NamespaceId | null;
|
|
397
397
|
};
|
|
398
|
-
export type NamespaceResourceType = "domain" | "sender" | "whatsappNumber" | "smsNumber" | "contact" | "template";
|
|
398
|
+
export type NamespaceResourceType = "domain" | "sender" | "whatsappNumber" | "phoneNumber" | "smsNumber" | "contact" | "template";
|
|
399
399
|
export type AssignNamespaceResourcePayload = {
|
|
400
400
|
type: NamespaceResourceType;
|
|
401
401
|
/**
|
|
@@ -1630,6 +1630,10 @@ export type MailboxSmsEndpoint = {
|
|
|
1630
1630
|
displayName: string | null;
|
|
1631
1631
|
default: boolean;
|
|
1632
1632
|
channel: "sms";
|
|
1633
|
+
/**
|
|
1634
|
+
* The phone number formatted for display in international form.
|
|
1635
|
+
*/
|
|
1636
|
+
addressDisplay: string;
|
|
1633
1637
|
phoneNumberId: SmsPhoneNumberId;
|
|
1634
1638
|
};
|
|
1635
1639
|
export type MailboxWhatsAppEndpoint = {
|
|
@@ -1638,6 +1642,10 @@ export type MailboxWhatsAppEndpoint = {
|
|
|
1638
1642
|
displayName: string | null;
|
|
1639
1643
|
default: boolean;
|
|
1640
1644
|
channel: "whatsapp";
|
|
1645
|
+
/**
|
|
1646
|
+
* The phone number formatted for display in international form.
|
|
1647
|
+
*/
|
|
1648
|
+
addressDisplay: string;
|
|
1641
1649
|
businessAccountId: WhatsAppBusinessAccountId;
|
|
1642
1650
|
};
|
|
1643
1651
|
export type MailboxEmailEndpoint = {
|
|
@@ -2070,8 +2078,9 @@ export type CreateWebhookPayload = {
|
|
|
2070
2078
|
};
|
|
2071
2079
|
export type Brand = {
|
|
2072
2080
|
id: BrandId;
|
|
2081
|
+
namespaceId: NamespaceId | null;
|
|
2073
2082
|
/**
|
|
2074
|
-
* The brand's handle, unique
|
|
2083
|
+
* The brand's handle, unique within its organization or namespace.
|
|
2075
2084
|
*/
|
|
2076
2085
|
slug: string;
|
|
2077
2086
|
name: string;
|
|
@@ -2117,6 +2126,7 @@ export type BrandAssets = {
|
|
|
2117
2126
|
};
|
|
2118
2127
|
export type BrandId = string;
|
|
2119
2128
|
export type UpdateBrand = {
|
|
2129
|
+
namespaceId?: NamespaceId | null | undefined;
|
|
2120
2130
|
newSlug?: string | null | undefined;
|
|
2121
2131
|
name?: string | null | undefined;
|
|
2122
2132
|
css?: string | null | undefined;
|
|
@@ -2124,6 +2134,7 @@ export type UpdateBrand = {
|
|
|
2124
2134
|
footer?: BrandFooter | null | undefined;
|
|
2125
2135
|
};
|
|
2126
2136
|
export type CreateBrand = {
|
|
2137
|
+
namespaceId?: NamespaceId | null | undefined;
|
|
2127
2138
|
slug: string;
|
|
2128
2139
|
name: string;
|
|
2129
2140
|
css?: string | null | undefined;
|
|
@@ -2365,6 +2376,10 @@ export type AddTemplateEntryPayload = {
|
|
|
2365
2376
|
entryPath: string;
|
|
2366
2377
|
name: string;
|
|
2367
2378
|
slug: string;
|
|
2379
|
+
/**
|
|
2380
|
+
* Channel to register when the source is local, or to select from an entry that declares both.
|
|
2381
|
+
*/
|
|
2382
|
+
channel?: "email" | "whatsapp" | undefined;
|
|
2368
2383
|
description?: string | null | undefined;
|
|
2369
2384
|
category?: "transactional" | "marketing" | "support" | "notification" | "verification" | "reminder" | "alert" | null | undefined;
|
|
2370
2385
|
};
|
|
@@ -2853,6 +2868,7 @@ export type TopicSubscriptionCheck = {
|
|
|
2853
2868
|
};
|
|
2854
2869
|
export type TopicList = {
|
|
2855
2870
|
items: Array<Topic>;
|
|
2871
|
+
nextCursor: string | null;
|
|
2856
2872
|
};
|
|
2857
2873
|
export type CustomFieldDefinitionId = string;
|
|
2858
2874
|
export type CustomFieldList = {
|
|
@@ -3138,6 +3154,13 @@ export type RecipeReadinessResponse = {
|
|
|
3138
3154
|
accountId: WhatsAppBusinessAccountId;
|
|
3139
3155
|
address: string;
|
|
3140
3156
|
status: "ready" | "reconnect" | "unverified" | "inactive";
|
|
3157
|
+
/**
|
|
3158
|
+
* The account lock reported by Meta when sending, or null. A later successful message status clears it.
|
|
3159
|
+
*/
|
|
3160
|
+
sendingLock: {
|
|
3161
|
+
lockedAt: string;
|
|
3162
|
+
reason: string;
|
|
3163
|
+
} | null;
|
|
3141
3164
|
registration: {
|
|
3142
3165
|
id: TemplateRegistrationId;
|
|
3143
3166
|
status: "draft" | "submitted" | "approved" | "rejected" | "paused" | "disabled";
|
|
@@ -3383,6 +3406,11 @@ export type AccountInfo = {
|
|
|
3383
3406
|
export type IntegrationAccountList = {
|
|
3384
3407
|
items: Array<IntegrationAccount>;
|
|
3385
3408
|
};
|
|
3409
|
+
export type ContactReferenceSummary = {
|
|
3410
|
+
id: ContactId;
|
|
3411
|
+
name: string;
|
|
3412
|
+
displayName: string | null;
|
|
3413
|
+
};
|
|
3386
3414
|
export type AgentVersion = {
|
|
3387
3415
|
agentId: AgentId;
|
|
3388
3416
|
version: number;
|
|
@@ -3658,6 +3686,7 @@ export type JourneyRunDetail = {
|
|
|
3658
3686
|
journeyId: JourneyId;
|
|
3659
3687
|
version: number;
|
|
3660
3688
|
contactId: ContactId;
|
|
3689
|
+
contact: ContactReferenceSummary | null;
|
|
3661
3690
|
status: JourneyRunStatus;
|
|
3662
3691
|
exitReason: JourneyRunExitReason | null;
|
|
3663
3692
|
failureReason: string | null;
|
|
@@ -3699,6 +3728,7 @@ export type JourneyRun = {
|
|
|
3699
3728
|
journeyId: JourneyId;
|
|
3700
3729
|
version: number;
|
|
3701
3730
|
contactId: ContactId;
|
|
3731
|
+
contact: ContactReferenceSummary | null;
|
|
3702
3732
|
status: JourneyRunStatus;
|
|
3703
3733
|
exitReason: JourneyRunExitReason | null;
|
|
3704
3734
|
failureReason: string | null;
|
|
@@ -3959,6 +3989,11 @@ export type JourneySendEmailConfig = {
|
|
|
3959
3989
|
template: TemplateId | string;
|
|
3960
3990
|
publicationId?: TemplatePublicationId | undefined;
|
|
3961
3991
|
senderId?: EmailSenderId | undefined;
|
|
3992
|
+
tracking?: EmailTrackingOverrideV1 | undefined;
|
|
3993
|
+
/**
|
|
3994
|
+
* Topic name in the run's namespace. Omit to use the template topic or namespace default.
|
|
3995
|
+
*/
|
|
3996
|
+
topicName?: string | undefined;
|
|
3962
3997
|
templateData?: JsonObject | undefined;
|
|
3963
3998
|
eventBindings?: {
|
|
3964
3999
|
[key: string]: string;
|
|
@@ -3968,6 +4003,11 @@ export type JourneySendEmailConfigWritable = {
|
|
|
3968
4003
|
template: TemplateId | string;
|
|
3969
4004
|
publicationId?: TemplatePublicationId | undefined;
|
|
3970
4005
|
senderId?: EmailSenderId | undefined;
|
|
4006
|
+
tracking?: EmailTrackingOverrideV1 | undefined;
|
|
4007
|
+
/**
|
|
4008
|
+
* Topic name in the run's namespace. Omit to use the template topic or namespace default.
|
|
4009
|
+
*/
|
|
4010
|
+
topicName?: string | undefined;
|
|
3971
4011
|
templateData?: JsonObjectWritable | undefined;
|
|
3972
4012
|
eventBindings?: {
|
|
3973
4013
|
[key: string]: string | undefined;
|
|
@@ -4744,6 +4784,7 @@ export type CustomTrackingDomainConnectCompleteResult = {
|
|
|
4744
4784
|
export type DomainConnectApplyUrlResult = {
|
|
4745
4785
|
url: string;
|
|
4746
4786
|
};
|
|
4787
|
+
export type DomainConnectReturnUrl = string;
|
|
4747
4788
|
export type DomainConnectEligibility = {
|
|
4748
4789
|
eligible: false;
|
|
4749
4790
|
reason: "no-record" | "no-settings" | "no-sync" | "no-template" | "unavailable";
|
|
@@ -5047,11 +5088,67 @@ export type RespondToOnboardingInformationRequestInput = {
|
|
|
5047
5088
|
export type ReapplyOnboardingReviewInput = {
|
|
5048
5089
|
expectedGeneration: number;
|
|
5049
5090
|
};
|
|
5091
|
+
export type DeliverabilityInsights = {
|
|
5092
|
+
domain: string;
|
|
5093
|
+
start: string;
|
|
5094
|
+
end: string;
|
|
5095
|
+
providers: Array<{
|
|
5096
|
+
mailboxProvider: string;
|
|
5097
|
+
sent: number;
|
|
5098
|
+
delivered: number;
|
|
5099
|
+
permanentBounces: number;
|
|
5100
|
+
transientBounces: number;
|
|
5101
|
+
complaintEligibleDeliveries: number;
|
|
5102
|
+
complaints: number;
|
|
5103
|
+
/**
|
|
5104
|
+
* A fraction (0.01 is 1%), or null when the denominator is zero.
|
|
5105
|
+
*/
|
|
5106
|
+
deliveryRate: number | null;
|
|
5107
|
+
/**
|
|
5108
|
+
* A fraction (0.01 is 1%), or null when the denominator is zero.
|
|
5109
|
+
*/
|
|
5110
|
+
permanentBounceRate: number | null;
|
|
5111
|
+
/**
|
|
5112
|
+
* A fraction (0.01 is 1%), or null when the denominator is zero.
|
|
5113
|
+
*/
|
|
5114
|
+
transientBounceRate: number | null;
|
|
5115
|
+
/**
|
|
5116
|
+
* A fraction (0.01 is 1%), or null when the denominator is zero.
|
|
5117
|
+
*/
|
|
5118
|
+
complaintRate: number | null;
|
|
5119
|
+
}>;
|
|
5120
|
+
/**
|
|
5121
|
+
* Findings for this domain, or null if recommendations are temporarily unavailable.
|
|
5122
|
+
*/
|
|
5123
|
+
recommendations: Array<DeliverabilityRecommendation> | null;
|
|
5124
|
+
samvaTracking: {
|
|
5125
|
+
openEligibleDeliveries: number;
|
|
5126
|
+
clickEligibleDeliveries: number;
|
|
5127
|
+
uniqueOpens: number;
|
|
5128
|
+
uniqueClicks: number;
|
|
5129
|
+
/**
|
|
5130
|
+
* A fraction (0.01 is 1%), or null when the denominator is zero.
|
|
5131
|
+
*/
|
|
5132
|
+
openRate: number | null;
|
|
5133
|
+
/**
|
|
5134
|
+
* A fraction (0.01 is 1%), or null when the denominator is zero.
|
|
5135
|
+
*/
|
|
5136
|
+
clickRate: number | null;
|
|
5137
|
+
};
|
|
5138
|
+
};
|
|
5139
|
+
export type DeliverabilityRecommendation = {
|
|
5140
|
+
type: string;
|
|
5141
|
+
status: "OPEN" | "FIXED" | null;
|
|
5142
|
+
impact: "HIGH" | "LOW" | null;
|
|
5143
|
+
description: string | null;
|
|
5144
|
+
lastUpdated: string | null;
|
|
5145
|
+
};
|
|
5050
5146
|
export type CampaignRecipientPage = {
|
|
5051
5147
|
items: Array<{
|
|
5052
5148
|
id: CampaignRecipientId;
|
|
5053
5149
|
runId: CampaignRunId;
|
|
5054
5150
|
contactId: ContactId;
|
|
5151
|
+
contact: ContactReferenceSummary | null;
|
|
5055
5152
|
status: "pending" | "dispatching" | "dispatched" | "failed" | "skipped";
|
|
5056
5153
|
messageId: string | null;
|
|
5057
5154
|
failureReason: string | null;
|
|
@@ -5606,24 +5703,24 @@ export type WhatsAppTemplateSlugContent = {
|
|
|
5606
5703
|
templateSlug: string;
|
|
5607
5704
|
templateData?: WhatsAppTemplateData | undefined;
|
|
5608
5705
|
flowToken?: string | undefined;
|
|
5609
|
-
flowActionData?:
|
|
5706
|
+
flowActionData?: WhatsAppFlowActionData | undefined;
|
|
5610
5707
|
};
|
|
5611
5708
|
export type WhatsAppTemplateSlugContentWritable = {
|
|
5612
5709
|
templateSlug: string;
|
|
5613
5710
|
templateData?: WhatsAppTemplateDataWritable | undefined;
|
|
5614
5711
|
flowToken?: string | undefined;
|
|
5615
|
-
flowActionData?:
|
|
5712
|
+
flowActionData?: WhatsAppFlowActionDataWritable | undefined;
|
|
5616
5713
|
};
|
|
5617
5714
|
/**
|
|
5618
5715
|
* Initial screen data for a navigate Flow button.
|
|
5619
5716
|
*/
|
|
5620
|
-
export type
|
|
5717
|
+
export type WhatsAppFlowActionData = {
|
|
5621
5718
|
[key: string]: JsonValue;
|
|
5622
5719
|
};
|
|
5623
5720
|
/**
|
|
5624
5721
|
* Initial screen data for a navigate Flow button.
|
|
5625
5722
|
*/
|
|
5626
|
-
export type
|
|
5723
|
+
export type WhatsAppFlowActionDataWritable = {
|
|
5627
5724
|
[key: string]: JsonValueWritable | undefined;
|
|
5628
5725
|
};
|
|
5629
5726
|
export type WhatsAppTemplateData = {
|
|
@@ -5636,13 +5733,13 @@ export type WhatsAppTemplateIdContent = {
|
|
|
5636
5733
|
templateId: TemplateId;
|
|
5637
5734
|
templateData?: WhatsAppTemplateData | undefined;
|
|
5638
5735
|
flowToken?: string | undefined;
|
|
5639
|
-
flowActionData?:
|
|
5736
|
+
flowActionData?: WhatsAppFlowActionData | undefined;
|
|
5640
5737
|
};
|
|
5641
5738
|
export type WhatsAppTemplateIdContentWritable = {
|
|
5642
5739
|
templateId: TemplateId;
|
|
5643
5740
|
templateData?: WhatsAppTemplateDataWritable | undefined;
|
|
5644
5741
|
flowToken?: string | undefined;
|
|
5645
|
-
flowActionData?:
|
|
5742
|
+
flowActionData?: WhatsAppFlowActionDataWritable | undefined;
|
|
5646
5743
|
};
|
|
5647
5744
|
export type WhatsAppTextContent = {
|
|
5648
5745
|
text: string;
|
|
@@ -6215,6 +6312,13 @@ export type MessageLogPage = {
|
|
|
6215
6312
|
items: Array<LogLine>;
|
|
6216
6313
|
nextCursor: string | null;
|
|
6217
6314
|
};
|
|
6315
|
+
export type PhoneNumberProvisioningError = {
|
|
6316
|
+
_tag: "PhoneNumberProvisioningError";
|
|
6317
|
+
reason: "transport" | "rejected" | "rate_limited" | "auth";
|
|
6318
|
+
message: string;
|
|
6319
|
+
providerCode?: string | null | undefined;
|
|
6320
|
+
statusCode?: number | null | undefined;
|
|
6321
|
+
};
|
|
6218
6322
|
export type MessageEventPage = {
|
|
6219
6323
|
items: Array<{
|
|
6220
6324
|
id: MessageEventId;
|
|
@@ -6351,6 +6455,7 @@ export type EstimatedProviderCost = {
|
|
|
6351
6455
|
amount: string;
|
|
6352
6456
|
currency: string;
|
|
6353
6457
|
billingMode: "pass_through";
|
|
6458
|
+
category?: "marketing" | "utility" | "authentication" | "service" | undefined;
|
|
6354
6459
|
};
|
|
6355
6460
|
export type MessageDeliveryError = {
|
|
6356
6461
|
code: string | null;
|
|
@@ -7246,6 +7351,335 @@ export type MessagesGetEventsResponses = {
|
|
|
7246
7351
|
200: MessageEventPage;
|
|
7247
7352
|
};
|
|
7248
7353
|
export type MessagesGetEventsResponse = MessagesGetEventsResponses[keyof MessagesGetEventsResponses];
|
|
7354
|
+
export type PhoneNumbersSearchAvailableNumbersData = {
|
|
7355
|
+
body?: never;
|
|
7356
|
+
path?: never;
|
|
7357
|
+
query: {
|
|
7358
|
+
country: "US";
|
|
7359
|
+
type?: "local" | "tollfree" | "mobile" | undefined;
|
|
7360
|
+
areaCode?: string | undefined;
|
|
7361
|
+
locality?: string | undefined;
|
|
7362
|
+
limit?: number | null | undefined;
|
|
7363
|
+
};
|
|
7364
|
+
url: "/v1/phone-numbers/available";
|
|
7365
|
+
};
|
|
7366
|
+
export type PhoneNumbersSearchAvailableNumbersErrors = {
|
|
7367
|
+
/**
|
|
7368
|
+
* MalformedRequestError
|
|
7369
|
+
*/
|
|
7370
|
+
400: MalformedRequestError;
|
|
7371
|
+
/**
|
|
7372
|
+
* UnauthorizedError
|
|
7373
|
+
*/
|
|
7374
|
+
401: UnauthorizedError;
|
|
7375
|
+
/**
|
|
7376
|
+
* FlagDisabledError | ForbiddenError
|
|
7377
|
+
*/
|
|
7378
|
+
403: FlagDisabledError | ForbiddenError;
|
|
7379
|
+
/**
|
|
7380
|
+
* ValidationError
|
|
7381
|
+
*/
|
|
7382
|
+
422: ValidationError;
|
|
7383
|
+
/**
|
|
7384
|
+
* InternalError
|
|
7385
|
+
*/
|
|
7386
|
+
500: InternalError;
|
|
7387
|
+
/**
|
|
7388
|
+
* PhoneNumberProvisioningError
|
|
7389
|
+
*/
|
|
7390
|
+
502: PhoneNumberProvisioningError;
|
|
7391
|
+
/**
|
|
7392
|
+
* GatewayTimeoutError
|
|
7393
|
+
*/
|
|
7394
|
+
504: GatewayTimeoutError;
|
|
7395
|
+
};
|
|
7396
|
+
export type PhoneNumbersSearchAvailableNumbersError = PhoneNumbersSearchAvailableNumbersErrors[keyof PhoneNumbersSearchAvailableNumbersErrors];
|
|
7397
|
+
export type PhoneNumbersSearchAvailableNumbersResponses = {
|
|
7398
|
+
/**
|
|
7399
|
+
* Success
|
|
7400
|
+
*/
|
|
7401
|
+
200: Array<{
|
|
7402
|
+
phoneNumber: string;
|
|
7403
|
+
/**
|
|
7404
|
+
* The phone number formatted for display in international form.
|
|
7405
|
+
*/
|
|
7406
|
+
phoneNumberDisplay: string;
|
|
7407
|
+
friendlyName: string;
|
|
7408
|
+
capabilities: {
|
|
7409
|
+
voice: boolean;
|
|
7410
|
+
sms: boolean;
|
|
7411
|
+
mms: boolean;
|
|
7412
|
+
};
|
|
7413
|
+
region?: string | null | undefined;
|
|
7414
|
+
locality?: string | null | undefined;
|
|
7415
|
+
monthlyPrice?: {
|
|
7416
|
+
/**
|
|
7417
|
+
* Samva’s monthly charge for this number
|
|
7418
|
+
*/
|
|
7419
|
+
amount: number;
|
|
7420
|
+
currency: string;
|
|
7421
|
+
} | null | undefined;
|
|
7422
|
+
}>;
|
|
7423
|
+
};
|
|
7424
|
+
export type PhoneNumbersSearchAvailableNumbersResponse = PhoneNumbersSearchAvailableNumbersResponses[keyof PhoneNumbersSearchAvailableNumbersResponses];
|
|
7425
|
+
export type PhoneNumbersListPhoneNumbersData = {
|
|
7426
|
+
body?: never;
|
|
7427
|
+
path?: never;
|
|
7428
|
+
query?: {
|
|
7429
|
+
namespaceId?: NamespaceId | undefined;
|
|
7430
|
+
};
|
|
7431
|
+
url: "/v1/phone-numbers";
|
|
7432
|
+
};
|
|
7433
|
+
export type PhoneNumbersListPhoneNumbersErrors = {
|
|
7434
|
+
/**
|
|
7435
|
+
* MalformedRequestError
|
|
7436
|
+
*/
|
|
7437
|
+
400: MalformedRequestError;
|
|
7438
|
+
/**
|
|
7439
|
+
* UnauthorizedError
|
|
7440
|
+
*/
|
|
7441
|
+
401: UnauthorizedError;
|
|
7442
|
+
/**
|
|
7443
|
+
* FlagDisabledError | ForbiddenError
|
|
7444
|
+
*/
|
|
7445
|
+
403: FlagDisabledError | ForbiddenError;
|
|
7446
|
+
/**
|
|
7447
|
+
* ValidationError
|
|
7448
|
+
*/
|
|
7449
|
+
422: ValidationError;
|
|
7450
|
+
/**
|
|
7451
|
+
* InternalError
|
|
7452
|
+
*/
|
|
7453
|
+
500: InternalError;
|
|
7454
|
+
/**
|
|
7455
|
+
* GatewayTimeoutError
|
|
7456
|
+
*/
|
|
7457
|
+
504: GatewayTimeoutError;
|
|
7458
|
+
};
|
|
7459
|
+
export type PhoneNumbersListPhoneNumbersError = PhoneNumbersListPhoneNumbersErrors[keyof PhoneNumbersListPhoneNumbersErrors];
|
|
7460
|
+
export type PhoneNumbersListPhoneNumbersResponses = {
|
|
7461
|
+
/**
|
|
7462
|
+
* Success
|
|
7463
|
+
*/
|
|
7464
|
+
200: Array<{
|
|
7465
|
+
id: SmsPhoneNumberId;
|
|
7466
|
+
namespaceId: NamespaceId | null;
|
|
7467
|
+
phoneNumber: string;
|
|
7468
|
+
/**
|
|
7469
|
+
* The phone number formatted for display in international form.
|
|
7470
|
+
*/
|
|
7471
|
+
phoneNumberDisplay: string;
|
|
7472
|
+
friendlyName: string | null;
|
|
7473
|
+
capabilities: {
|
|
7474
|
+
voice: boolean;
|
|
7475
|
+
sms: boolean;
|
|
7476
|
+
mms: boolean;
|
|
7477
|
+
};
|
|
7478
|
+
uses: Array<"sms" | "whatsapp">;
|
|
7479
|
+
numberType: "local" | "tollfree" | "mobile" | "shortcode";
|
|
7480
|
+
country: string;
|
|
7481
|
+
status: "pending" | "active" | "failed" | "suspended" | "released";
|
|
7482
|
+
createdAt: string;
|
|
7483
|
+
}>;
|
|
7484
|
+
};
|
|
7485
|
+
export type PhoneNumbersListPhoneNumbersResponse = PhoneNumbersListPhoneNumbersResponses[keyof PhoneNumbersListPhoneNumbersResponses];
|
|
7486
|
+
export type PhoneNumbersPurchaseNumberData = {
|
|
7487
|
+
body: {
|
|
7488
|
+
phoneNumber: string;
|
|
7489
|
+
friendlyName?: string | null | undefined;
|
|
7490
|
+
uses?: Array<"sms" | "whatsapp"> | null | undefined;
|
|
7491
|
+
namespaceId?: NamespaceId | null | undefined;
|
|
7492
|
+
};
|
|
7493
|
+
path?: never;
|
|
7494
|
+
query?: never;
|
|
7495
|
+
url: "/v1/phone-numbers";
|
|
7496
|
+
};
|
|
7497
|
+
export type PhoneNumbersPurchaseNumberErrors = {
|
|
7498
|
+
/**
|
|
7499
|
+
* MalformedRequestError
|
|
7500
|
+
*/
|
|
7501
|
+
400: MalformedRequestError;
|
|
7502
|
+
/**
|
|
7503
|
+
* UnauthorizedError
|
|
7504
|
+
*/
|
|
7505
|
+
401: UnauthorizedError;
|
|
7506
|
+
/**
|
|
7507
|
+
* PaymentRequiredError
|
|
7508
|
+
*/
|
|
7509
|
+
402: PaymentRequiredError;
|
|
7510
|
+
/**
|
|
7511
|
+
* ForbiddenError | FlagDisabledError
|
|
7512
|
+
*/
|
|
7513
|
+
403: ForbiddenError | FlagDisabledError;
|
|
7514
|
+
/**
|
|
7515
|
+
* ResourceNotFoundError
|
|
7516
|
+
*/
|
|
7517
|
+
404: ResourceNotFoundError;
|
|
7518
|
+
/**
|
|
7519
|
+
* ConflictError
|
|
7520
|
+
*/
|
|
7521
|
+
409: ConflictError;
|
|
7522
|
+
/**
|
|
7523
|
+
* ValidationError
|
|
7524
|
+
*/
|
|
7525
|
+
422: ValidationError;
|
|
7526
|
+
/**
|
|
7527
|
+
* CredentialsError | InternalError
|
|
7528
|
+
*/
|
|
7529
|
+
500: CredentialsError | InternalError;
|
|
7530
|
+
/**
|
|
7531
|
+
* PhoneNumberProvisioningError | BillingProviderError
|
|
7532
|
+
*/
|
|
7533
|
+
502: PhoneNumberProvisioningError | BillingProviderError;
|
|
7534
|
+
/**
|
|
7535
|
+
* GatewayTimeoutError
|
|
7536
|
+
*/
|
|
7537
|
+
504: GatewayTimeoutError;
|
|
7538
|
+
};
|
|
7539
|
+
export type PhoneNumbersPurchaseNumberError = PhoneNumbersPurchaseNumberErrors[keyof PhoneNumbersPurchaseNumberErrors];
|
|
7540
|
+
export type PhoneNumbersPurchaseNumberResponses = {
|
|
7541
|
+
/**
|
|
7542
|
+
* Success
|
|
7543
|
+
*/
|
|
7544
|
+
201: {
|
|
7545
|
+
id: SmsPhoneNumberId;
|
|
7546
|
+
namespaceId: NamespaceId | null;
|
|
7547
|
+
phoneNumber: string;
|
|
7548
|
+
/**
|
|
7549
|
+
* The phone number formatted for display in international form.
|
|
7550
|
+
*/
|
|
7551
|
+
phoneNumberDisplay: string;
|
|
7552
|
+
friendlyName: string | null;
|
|
7553
|
+
capabilities: {
|
|
7554
|
+
voice: boolean;
|
|
7555
|
+
sms: boolean;
|
|
7556
|
+
mms: boolean;
|
|
7557
|
+
};
|
|
7558
|
+
uses: Array<"sms" | "whatsapp">;
|
|
7559
|
+
numberType: "local" | "tollfree" | "mobile" | "shortcode";
|
|
7560
|
+
country: string;
|
|
7561
|
+
status: "pending" | "active" | "failed" | "suspended" | "released";
|
|
7562
|
+
createdAt: string;
|
|
7563
|
+
};
|
|
7564
|
+
};
|
|
7565
|
+
export type PhoneNumbersPurchaseNumberResponse = PhoneNumbersPurchaseNumberResponses[keyof PhoneNumbersPurchaseNumberResponses];
|
|
7566
|
+
export type PhoneNumbersReleasePhoneNumberData = {
|
|
7567
|
+
body?: never;
|
|
7568
|
+
path: {
|
|
7569
|
+
id: SmsPhoneNumberId;
|
|
7570
|
+
};
|
|
7571
|
+
query?: never;
|
|
7572
|
+
url: "/v1/phone-numbers/{id}";
|
|
7573
|
+
};
|
|
7574
|
+
export type PhoneNumbersReleasePhoneNumberErrors = {
|
|
7575
|
+
/**
|
|
7576
|
+
* MalformedRequestError
|
|
7577
|
+
*/
|
|
7578
|
+
400: MalformedRequestError;
|
|
7579
|
+
/**
|
|
7580
|
+
* UnauthorizedError
|
|
7581
|
+
*/
|
|
7582
|
+
401: UnauthorizedError;
|
|
7583
|
+
/**
|
|
7584
|
+
* FlagDisabledError | ForbiddenError
|
|
7585
|
+
*/
|
|
7586
|
+
403: FlagDisabledError | ForbiddenError;
|
|
7587
|
+
/**
|
|
7588
|
+
* ResourceNotFoundError
|
|
7589
|
+
*/
|
|
7590
|
+
404: ResourceNotFoundError;
|
|
7591
|
+
/**
|
|
7592
|
+
* ValidationError
|
|
7593
|
+
*/
|
|
7594
|
+
422: ValidationError;
|
|
7595
|
+
/**
|
|
7596
|
+
* CredentialsError | InternalError
|
|
7597
|
+
*/
|
|
7598
|
+
500: CredentialsError | InternalError;
|
|
7599
|
+
/**
|
|
7600
|
+
* PhoneNumberProvisioningError | BillingProviderError
|
|
7601
|
+
*/
|
|
7602
|
+
502: PhoneNumberProvisioningError | BillingProviderError;
|
|
7603
|
+
/**
|
|
7604
|
+
* GatewayTimeoutError
|
|
7605
|
+
*/
|
|
7606
|
+
504: GatewayTimeoutError;
|
|
7607
|
+
};
|
|
7608
|
+
export type PhoneNumbersReleasePhoneNumberError = PhoneNumbersReleasePhoneNumberErrors[keyof PhoneNumbersReleasePhoneNumberErrors];
|
|
7609
|
+
export type PhoneNumbersReleasePhoneNumberResponses = {
|
|
7610
|
+
/**
|
|
7611
|
+
* Success
|
|
7612
|
+
*/
|
|
7613
|
+
200: {
|
|
7614
|
+
success: boolean;
|
|
7615
|
+
};
|
|
7616
|
+
};
|
|
7617
|
+
export type PhoneNumbersReleasePhoneNumberResponse = PhoneNumbersReleasePhoneNumberResponses[keyof PhoneNumbersReleasePhoneNumberResponses];
|
|
7618
|
+
export type PhoneNumbersGetPhoneNumberData = {
|
|
7619
|
+
body?: never;
|
|
7620
|
+
path: {
|
|
7621
|
+
id: SmsPhoneNumberId;
|
|
7622
|
+
};
|
|
7623
|
+
query?: never;
|
|
7624
|
+
url: "/v1/phone-numbers/{id}";
|
|
7625
|
+
};
|
|
7626
|
+
export type PhoneNumbersGetPhoneNumberErrors = {
|
|
7627
|
+
/**
|
|
7628
|
+
* MalformedRequestError
|
|
7629
|
+
*/
|
|
7630
|
+
400: MalformedRequestError;
|
|
7631
|
+
/**
|
|
7632
|
+
* UnauthorizedError
|
|
7633
|
+
*/
|
|
7634
|
+
401: UnauthorizedError;
|
|
7635
|
+
/**
|
|
7636
|
+
* FlagDisabledError | ForbiddenError
|
|
7637
|
+
*/
|
|
7638
|
+
403: FlagDisabledError | ForbiddenError;
|
|
7639
|
+
/**
|
|
7640
|
+
* ResourceNotFoundError
|
|
7641
|
+
*/
|
|
7642
|
+
404: ResourceNotFoundError;
|
|
7643
|
+
/**
|
|
7644
|
+
* ValidationError
|
|
7645
|
+
*/
|
|
7646
|
+
422: ValidationError;
|
|
7647
|
+
/**
|
|
7648
|
+
* InternalError
|
|
7649
|
+
*/
|
|
7650
|
+
500: InternalError;
|
|
7651
|
+
/**
|
|
7652
|
+
* GatewayTimeoutError
|
|
7653
|
+
*/
|
|
7654
|
+
504: GatewayTimeoutError;
|
|
7655
|
+
};
|
|
7656
|
+
export type PhoneNumbersGetPhoneNumberError = PhoneNumbersGetPhoneNumberErrors[keyof PhoneNumbersGetPhoneNumberErrors];
|
|
7657
|
+
export type PhoneNumbersGetPhoneNumberResponses = {
|
|
7658
|
+
/**
|
|
7659
|
+
* Success
|
|
7660
|
+
*/
|
|
7661
|
+
200: {
|
|
7662
|
+
id: SmsPhoneNumberId;
|
|
7663
|
+
namespaceId: NamespaceId | null;
|
|
7664
|
+
phoneNumber: string;
|
|
7665
|
+
/**
|
|
7666
|
+
* The phone number formatted for display in international form.
|
|
7667
|
+
*/
|
|
7668
|
+
phoneNumberDisplay: string;
|
|
7669
|
+
friendlyName: string | null;
|
|
7670
|
+
capabilities: {
|
|
7671
|
+
voice: boolean;
|
|
7672
|
+
sms: boolean;
|
|
7673
|
+
mms: boolean;
|
|
7674
|
+
};
|
|
7675
|
+
uses: Array<"sms" | "whatsapp">;
|
|
7676
|
+
numberType: "local" | "tollfree" | "mobile" | "shortcode";
|
|
7677
|
+
country: string;
|
|
7678
|
+
status: "pending" | "active" | "failed" | "suspended" | "released";
|
|
7679
|
+
createdAt: string;
|
|
7680
|
+
};
|
|
7681
|
+
};
|
|
7682
|
+
export type PhoneNumbersGetPhoneNumberResponse = PhoneNumbersGetPhoneNumberResponses[keyof PhoneNumbersGetPhoneNumberResponses];
|
|
7249
7683
|
export type LogsListData = {
|
|
7250
7684
|
body?: never;
|
|
7251
7685
|
path?: never;
|
|
@@ -8567,6 +9001,66 @@ export type CampaignsListRecipientsResponses = {
|
|
|
8567
9001
|
200: CampaignRecipientPage;
|
|
8568
9002
|
};
|
|
8569
9003
|
export type CampaignsListRecipientsResponse = CampaignsListRecipientsResponses[keyof CampaignsListRecipientsResponses];
|
|
9004
|
+
export type EmailGetDeliverabilityInsightsData = {
|
|
9005
|
+
body?: never;
|
|
9006
|
+
path: {
|
|
9007
|
+
id: EmailDomainId;
|
|
9008
|
+
};
|
|
9009
|
+
query?: {
|
|
9010
|
+
days?: "7" | "30" | undefined;
|
|
9011
|
+
/**
|
|
9012
|
+
* Request one mailbox provider by its name in the delivery metrics.
|
|
9013
|
+
*/
|
|
9014
|
+
mailboxProvider?: string | undefined;
|
|
9015
|
+
};
|
|
9016
|
+
url: "/v1/email/domains/{id}/deliverability";
|
|
9017
|
+
};
|
|
9018
|
+
export type EmailGetDeliverabilityInsightsErrors = {
|
|
9019
|
+
/**
|
|
9020
|
+
* MalformedRequestError
|
|
9021
|
+
*/
|
|
9022
|
+
400: MalformedRequestError;
|
|
9023
|
+
/**
|
|
9024
|
+
* UnauthorizedError
|
|
9025
|
+
*/
|
|
9026
|
+
401: UnauthorizedError;
|
|
9027
|
+
/**
|
|
9028
|
+
* PaymentRequiredError
|
|
9029
|
+
*/
|
|
9030
|
+
402: PaymentRequiredError;
|
|
9031
|
+
/**
|
|
9032
|
+
* ForbiddenError
|
|
9033
|
+
*/
|
|
9034
|
+
403: ForbiddenError;
|
|
9035
|
+
/**
|
|
9036
|
+
* ResourceNotFoundError
|
|
9037
|
+
*/
|
|
9038
|
+
404: ResourceNotFoundError;
|
|
9039
|
+
/**
|
|
9040
|
+
* ValidationError
|
|
9041
|
+
*/
|
|
9042
|
+
422: ValidationError;
|
|
9043
|
+
/**
|
|
9044
|
+
* InternalError
|
|
9045
|
+
*/
|
|
9046
|
+
500: InternalError;
|
|
9047
|
+
/**
|
|
9048
|
+
* ServiceUnavailableError
|
|
9049
|
+
*/
|
|
9050
|
+
503: ServiceUnavailableError;
|
|
9051
|
+
/**
|
|
9052
|
+
* GatewayTimeoutError
|
|
9053
|
+
*/
|
|
9054
|
+
504: GatewayTimeoutError;
|
|
9055
|
+
};
|
|
9056
|
+
export type EmailGetDeliverabilityInsightsError = EmailGetDeliverabilityInsightsErrors[keyof EmailGetDeliverabilityInsightsErrors];
|
|
9057
|
+
export type EmailGetDeliverabilityInsightsResponses = {
|
|
9058
|
+
/**
|
|
9059
|
+
* DeliverabilityInsights
|
|
9060
|
+
*/
|
|
9061
|
+
200: DeliverabilityInsights;
|
|
9062
|
+
};
|
|
9063
|
+
export type EmailGetDeliverabilityInsightsResponse = EmailGetDeliverabilityInsightsResponses[keyof EmailGetDeliverabilityInsightsResponses];
|
|
8570
9064
|
export type EmailGetOnboardingReviewData = {
|
|
8571
9065
|
body?: never;
|
|
8572
9066
|
path?: never;
|
|
@@ -9360,6 +9854,7 @@ export type EmailGetDomainConnectResponse = EmailGetDomainConnectResponses[keyof
|
|
|
9360
9854
|
export type EmailBuildDomainConnectApplyUrlData = {
|
|
9361
9855
|
body: {
|
|
9362
9856
|
mode: "send-only" | "send-and-receive";
|
|
9857
|
+
returnUrl?: DomainConnectReturnUrl | undefined;
|
|
9363
9858
|
};
|
|
9364
9859
|
path: {
|
|
9365
9860
|
id: EmailDomainId;
|
|
@@ -9949,7 +10444,9 @@ export type EmailBuildCustomTrackingDomainConnectApplyUrlData = {
|
|
|
9949
10444
|
path: {
|
|
9950
10445
|
id: EmailDomainId;
|
|
9951
10446
|
};
|
|
9952
|
-
query?:
|
|
10447
|
+
query?: {
|
|
10448
|
+
returnUrl?: DomainConnectReturnUrl | undefined;
|
|
10449
|
+
};
|
|
9953
10450
|
url: "/v1/email/domains/{id}/custom-tracking/domain-connect/apply-url";
|
|
9954
10451
|
};
|
|
9955
10452
|
export type EmailBuildCustomTrackingDomainConnectApplyUrlErrors = {
|
|
@@ -10336,6 +10833,55 @@ export type EmailGetSenderResponses = {
|
|
|
10336
10833
|
};
|
|
10337
10834
|
};
|
|
10338
10835
|
export type EmailGetSenderResponse = EmailGetSenderResponses[keyof EmailGetSenderResponses];
|
|
10836
|
+
export type EmailUpdateSenderData = {
|
|
10837
|
+
body: {
|
|
10838
|
+
name?: string | null | undefined;
|
|
10839
|
+
replyToEmails?: Array<string> | null | undefined;
|
|
10840
|
+
};
|
|
10841
|
+
path: {
|
|
10842
|
+
id: EmailSenderId;
|
|
10843
|
+
};
|
|
10844
|
+
query?: never;
|
|
10845
|
+
url: "/v1/email/senders/{id}";
|
|
10846
|
+
};
|
|
10847
|
+
export type EmailUpdateSenderErrors = {
|
|
10848
|
+
/**
|
|
10849
|
+
* MalformedRequestError
|
|
10850
|
+
*/
|
|
10851
|
+
400: MalformedRequestError;
|
|
10852
|
+
/**
|
|
10853
|
+
* UnauthorizedError
|
|
10854
|
+
*/
|
|
10855
|
+
401: UnauthorizedError;
|
|
10856
|
+
/**
|
|
10857
|
+
* ForbiddenError
|
|
10858
|
+
*/
|
|
10859
|
+
403: ForbiddenError;
|
|
10860
|
+
/**
|
|
10861
|
+
* ResourceNotFoundError
|
|
10862
|
+
*/
|
|
10863
|
+
404: ResourceNotFoundError;
|
|
10864
|
+
/**
|
|
10865
|
+
* ValidationError
|
|
10866
|
+
*/
|
|
10867
|
+
422: ValidationError;
|
|
10868
|
+
/**
|
|
10869
|
+
* InternalError
|
|
10870
|
+
*/
|
|
10871
|
+
500: InternalError;
|
|
10872
|
+
/**
|
|
10873
|
+
* GatewayTimeoutError
|
|
10874
|
+
*/
|
|
10875
|
+
504: GatewayTimeoutError;
|
|
10876
|
+
};
|
|
10877
|
+
export type EmailUpdateSenderError = EmailUpdateSenderErrors[keyof EmailUpdateSenderErrors];
|
|
10878
|
+
export type EmailUpdateSenderResponses = {
|
|
10879
|
+
/**
|
|
10880
|
+
* SuccessResult
|
|
10881
|
+
*/
|
|
10882
|
+
200: SuccessResult;
|
|
10883
|
+
};
|
|
10884
|
+
export type EmailUpdateSenderResponse = EmailUpdateSenderResponses[keyof EmailUpdateSenderResponses];
|
|
10339
10885
|
export type EmailSetDefaultSenderData = {
|
|
10340
10886
|
body: {
|
|
10341
10887
|
namespaceId?: NamespaceId | null | undefined;
|
|
@@ -15919,6 +16465,7 @@ export type AccountsListContactConnectionsResponses = {
|
|
|
15919
16465
|
organizationId: OrganizationId;
|
|
15920
16466
|
integrationId: IntegrationId;
|
|
15921
16467
|
contactId: ContactId;
|
|
16468
|
+
contact: ContactReferenceSummary | null;
|
|
15922
16469
|
accountId: IntegrationAccountId;
|
|
15923
16470
|
provider?: IntegrationKey | undefined;
|
|
15924
16471
|
info: AccountInfo;
|
|
@@ -18293,6 +18840,8 @@ export type TopicsListData = {
|
|
|
18293
18840
|
body?: never;
|
|
18294
18841
|
path?: never;
|
|
18295
18842
|
query?: {
|
|
18843
|
+
limit?: number | null | undefined;
|
|
18844
|
+
cursor?: string | undefined;
|
|
18296
18845
|
namespaceId?: NamespaceId | undefined;
|
|
18297
18846
|
};
|
|
18298
18847
|
url: "/v1/topics";
|
|
@@ -22097,6 +22646,10 @@ export type TemplatesAddEntryData = {
|
|
|
22097
22646
|
entryPath: string;
|
|
22098
22647
|
name: string;
|
|
22099
22648
|
slug: string;
|
|
22649
|
+
/**
|
|
22650
|
+
* Channel to register when the source is local, or to select from an entry that declares both.
|
|
22651
|
+
*/
|
|
22652
|
+
channel?: "email" | "whatsapp" | undefined;
|
|
22100
22653
|
description?: string | null | undefined;
|
|
22101
22654
|
category?: "transactional" | "marketing" | "support" | "notification" | "verification" | "reminder" | "alert" | null | undefined;
|
|
22102
22655
|
};
|
|
@@ -22135,6 +22688,10 @@ export type TemplatesAddEntryErrors = {
|
|
|
22135
22688
|
* InternalError
|
|
22136
22689
|
*/
|
|
22137
22690
|
500: InternalError;
|
|
22691
|
+
/**
|
|
22692
|
+
* ServiceUnavailableError
|
|
22693
|
+
*/
|
|
22694
|
+
503: ServiceUnavailableError;
|
|
22138
22695
|
/**
|
|
22139
22696
|
* GatewayTimeoutError
|
|
22140
22697
|
*/
|
|
@@ -23690,6 +24247,8 @@ export type TemplatesPublishResponses = {
|
|
|
23690
24247
|
treeDigest: string;
|
|
23691
24248
|
};
|
|
23692
24249
|
brand?: {
|
|
24250
|
+
id?: BrandId | undefined;
|
|
24251
|
+
binding?: "default" | "named" | "embedded" | undefined;
|
|
23693
24252
|
slug: string;
|
|
23694
24253
|
css: string;
|
|
23695
24254
|
assets: BrandAssets;
|
|
@@ -23851,6 +24410,8 @@ export type TemplatesGetPublicationResponses = {
|
|
|
23851
24410
|
treeDigest: string;
|
|
23852
24411
|
};
|
|
23853
24412
|
brand?: {
|
|
24413
|
+
id?: BrandId | undefined;
|
|
24414
|
+
binding?: "default" | "named" | "embedded" | undefined;
|
|
23854
24415
|
slug: string;
|
|
23855
24416
|
css: string;
|
|
23856
24417
|
assets: BrandAssets;
|
|
@@ -24821,7 +25382,9 @@ export type TemplateShareLinksUpdateResponse = TemplateShareLinksUpdateResponses
|
|
|
24821
25382
|
export type BrandsListData = {
|
|
24822
25383
|
body?: never;
|
|
24823
25384
|
path?: never;
|
|
24824
|
-
query?:
|
|
25385
|
+
query?: {
|
|
25386
|
+
namespaceId?: NamespaceId | undefined;
|
|
25387
|
+
};
|
|
24825
25388
|
url: "/v1/brands";
|
|
24826
25389
|
};
|
|
24827
25390
|
export type BrandsListErrors = {
|
|
@@ -24860,6 +25423,7 @@ export type BrandsListResponses = {
|
|
|
24860
25423
|
export type BrandsListResponse = BrandsListResponses[keyof BrandsListResponses];
|
|
24861
25424
|
export type BrandsCreateData = {
|
|
24862
25425
|
body: {
|
|
25426
|
+
namespaceId?: NamespaceId | null | undefined;
|
|
24863
25427
|
slug: string;
|
|
24864
25428
|
name: string;
|
|
24865
25429
|
css?: string | null | undefined;
|
|
@@ -24884,6 +25448,10 @@ export type BrandsCreateErrors = {
|
|
|
24884
25448
|
* ForbiddenError
|
|
24885
25449
|
*/
|
|
24886
25450
|
403: ForbiddenError;
|
|
25451
|
+
/**
|
|
25452
|
+
* ResourceNotFoundError
|
|
25453
|
+
*/
|
|
25454
|
+
404: ResourceNotFoundError;
|
|
24887
25455
|
/**
|
|
24888
25456
|
* ConflictError
|
|
24889
25457
|
*/
|
|
@@ -24914,7 +25482,9 @@ export type BrandsRemoveData = {
|
|
|
24914
25482
|
path: {
|
|
24915
25483
|
slug: string;
|
|
24916
25484
|
};
|
|
24917
|
-
query?:
|
|
25485
|
+
query?: {
|
|
25486
|
+
namespaceId?: NamespaceId | undefined;
|
|
25487
|
+
};
|
|
24918
25488
|
url: "/v1/brands/{slug}";
|
|
24919
25489
|
};
|
|
24920
25490
|
export type BrandsRemoveErrors = {
|
|
@@ -24964,7 +25534,9 @@ export type BrandsGetData = {
|
|
|
24964
25534
|
path: {
|
|
24965
25535
|
slug: string;
|
|
24966
25536
|
};
|
|
24967
|
-
query?:
|
|
25537
|
+
query?: {
|
|
25538
|
+
namespaceId?: NamespaceId | undefined;
|
|
25539
|
+
};
|
|
24968
25540
|
url: "/v1/brands/{slug}";
|
|
24969
25541
|
};
|
|
24970
25542
|
export type BrandsGetErrors = {
|
|
@@ -25007,6 +25579,7 @@ export type BrandsGetResponses = {
|
|
|
25007
25579
|
export type BrandsGetResponse = BrandsGetResponses[keyof BrandsGetResponses];
|
|
25008
25580
|
export type BrandsUpdateData = {
|
|
25009
25581
|
body: {
|
|
25582
|
+
namespaceId?: NamespaceId | null | undefined;
|
|
25010
25583
|
newSlug?: string | null | undefined;
|
|
25011
25584
|
name?: string | null | undefined;
|
|
25012
25585
|
css?: string | null | undefined;
|
|
@@ -25066,7 +25639,9 @@ export type BrandsSetDefaultData = {
|
|
|
25066
25639
|
path: {
|
|
25067
25640
|
slug: string;
|
|
25068
25641
|
};
|
|
25069
|
-
query?:
|
|
25642
|
+
query?: {
|
|
25643
|
+
namespaceId?: NamespaceId | undefined;
|
|
25644
|
+
};
|
|
25070
25645
|
url: "/v1/brands/{slug}/default";
|
|
25071
25646
|
};
|
|
25072
25647
|
export type BrandsSetDefaultErrors = {
|
|
@@ -26294,6 +26869,7 @@ export type OrganizationsGetUsageResponses = {
|
|
|
26294
26869
|
usedCredits: number | null;
|
|
26295
26870
|
overageCredits: number | null;
|
|
26296
26871
|
overageCost: number | null;
|
|
26872
|
+
heldPhoneNumbers: number | null;
|
|
26297
26873
|
includedAiCredits: number | null;
|
|
26298
26874
|
usedAiCredits: number | null;
|
|
26299
26875
|
overageAiCredits: number | null;
|
|
@@ -26402,6 +26978,9 @@ export type ApiKeysListResponses = {
|
|
|
26402
26978
|
export type ApiKeysListResponse = ApiKeysListResponses[keyof ApiKeysListResponses];
|
|
26403
26979
|
export type ApiKeysCreateData = {
|
|
26404
26980
|
body: {
|
|
26981
|
+
/**
|
|
26982
|
+
* API key name, up to 32 characters.
|
|
26983
|
+
*/
|
|
26405
26984
|
name: string;
|
|
26406
26985
|
description?: string | null | undefined;
|
|
26407
26986
|
expiresAt?: string | null | undefined;
|
|
@@ -32168,11 +32747,22 @@ export type WhatsappListBusinessAccountsResponses = {
|
|
|
32168
32747
|
organizationId: string;
|
|
32169
32748
|
namespaceId: NamespaceId | null;
|
|
32170
32749
|
phoneNumber: string;
|
|
32750
|
+
/**
|
|
32751
|
+
* The phone number formatted for display in international form.
|
|
32752
|
+
*/
|
|
32753
|
+
phoneNumberDisplay: string;
|
|
32171
32754
|
phoneNumberId: string;
|
|
32172
32755
|
displayName: string;
|
|
32173
32756
|
whatsappBusinessAccountId: string;
|
|
32174
32757
|
verificationStatus: "pending" | "verified" | "failed" | "suspended";
|
|
32175
32758
|
credentialStatus: "active" | "reconnect_required";
|
|
32759
|
+
/**
|
|
32760
|
+
* The account lock reported by Meta when sending, or null. A later successful message status clears it.
|
|
32761
|
+
*/
|
|
32762
|
+
sendingLock: {
|
|
32763
|
+
lockedAt: string;
|
|
32764
|
+
reason: string;
|
|
32765
|
+
} | null;
|
|
32176
32766
|
tokenExpiresAt: string | null;
|
|
32177
32767
|
isDefault: boolean;
|
|
32178
32768
|
webhookUrl: string | null;
|
|
@@ -32257,11 +32847,22 @@ export type WhatsappConnectBusinessAccountResponses = {
|
|
|
32257
32847
|
organizationId: string;
|
|
32258
32848
|
namespaceId: NamespaceId | null;
|
|
32259
32849
|
phoneNumber: string;
|
|
32850
|
+
/**
|
|
32851
|
+
* The phone number formatted for display in international form.
|
|
32852
|
+
*/
|
|
32853
|
+
phoneNumberDisplay: string;
|
|
32260
32854
|
phoneNumberId: string;
|
|
32261
32855
|
displayName: string;
|
|
32262
32856
|
whatsappBusinessAccountId: string;
|
|
32263
32857
|
verificationStatus: "pending" | "verified" | "failed" | "suspended";
|
|
32264
32858
|
credentialStatus: "active" | "reconnect_required";
|
|
32859
|
+
/**
|
|
32860
|
+
* The account lock reported by Meta when sending, or null. A later successful message status clears it.
|
|
32861
|
+
*/
|
|
32862
|
+
sendingLock: {
|
|
32863
|
+
lockedAt: string;
|
|
32864
|
+
reason: string;
|
|
32865
|
+
} | null;
|
|
32265
32866
|
tokenExpiresAt: string | null;
|
|
32266
32867
|
isDefault: boolean;
|
|
32267
32868
|
webhookUrl: string | null;
|
|
@@ -32377,11 +32978,22 @@ export type WhatsappGetBusinessAccountResponses = {
|
|
|
32377
32978
|
organizationId: string;
|
|
32378
32979
|
namespaceId: NamespaceId | null;
|
|
32379
32980
|
phoneNumber: string;
|
|
32981
|
+
/**
|
|
32982
|
+
* The phone number formatted for display in international form.
|
|
32983
|
+
*/
|
|
32984
|
+
phoneNumberDisplay: string;
|
|
32380
32985
|
phoneNumberId: string;
|
|
32381
32986
|
displayName: string;
|
|
32382
32987
|
whatsappBusinessAccountId: string;
|
|
32383
32988
|
verificationStatus: "pending" | "verified" | "failed" | "suspended";
|
|
32384
32989
|
credentialStatus: "active" | "reconnect_required";
|
|
32990
|
+
/**
|
|
32991
|
+
* The account lock reported by Meta when sending, or null. A later successful message status clears it.
|
|
32992
|
+
*/
|
|
32993
|
+
sendingLock: {
|
|
32994
|
+
lockedAt: string;
|
|
32995
|
+
reason: string;
|
|
32996
|
+
} | null;
|
|
32385
32997
|
tokenExpiresAt: string | null;
|
|
32386
32998
|
isDefault: boolean;
|
|
32387
32999
|
webhookUrl: string | null;
|
|
@@ -32452,11 +33064,22 @@ export type WhatsappUpdateBusinessAccountResponses = {
|
|
|
32452
33064
|
organizationId: string;
|
|
32453
33065
|
namespaceId: NamespaceId | null;
|
|
32454
33066
|
phoneNumber: string;
|
|
33067
|
+
/**
|
|
33068
|
+
* The phone number formatted for display in international form.
|
|
33069
|
+
*/
|
|
33070
|
+
phoneNumberDisplay: string;
|
|
32455
33071
|
phoneNumberId: string;
|
|
32456
33072
|
displayName: string;
|
|
32457
33073
|
whatsappBusinessAccountId: string;
|
|
32458
33074
|
verificationStatus: "pending" | "verified" | "failed" | "suspended";
|
|
32459
33075
|
credentialStatus: "active" | "reconnect_required";
|
|
33076
|
+
/**
|
|
33077
|
+
* The account lock reported by Meta when sending, or null. A later successful message status clears it.
|
|
33078
|
+
*/
|
|
33079
|
+
sendingLock: {
|
|
33080
|
+
lockedAt: string;
|
|
33081
|
+
reason: string;
|
|
33082
|
+
} | null;
|
|
32460
33083
|
tokenExpiresAt: string | null;
|
|
32461
33084
|
isDefault: boolean;
|
|
32462
33085
|
webhookUrl: string | null;
|
|
@@ -32524,11 +33147,22 @@ export type WhatsappSetDefaultBusinessAccountResponses = {
|
|
|
32524
33147
|
organizationId: string;
|
|
32525
33148
|
namespaceId: NamespaceId | null;
|
|
32526
33149
|
phoneNumber: string;
|
|
33150
|
+
/**
|
|
33151
|
+
* The phone number formatted for display in international form.
|
|
33152
|
+
*/
|
|
33153
|
+
phoneNumberDisplay: string;
|
|
32527
33154
|
phoneNumberId: string;
|
|
32528
33155
|
displayName: string;
|
|
32529
33156
|
whatsappBusinessAccountId: string;
|
|
32530
33157
|
verificationStatus: "pending" | "verified" | "failed" | "suspended";
|
|
32531
33158
|
credentialStatus: "active" | "reconnect_required";
|
|
33159
|
+
/**
|
|
33160
|
+
* The account lock reported by Meta when sending, or null. A later successful message status clears it.
|
|
33161
|
+
*/
|
|
33162
|
+
sendingLock: {
|
|
33163
|
+
lockedAt: string;
|
|
33164
|
+
reason: string;
|
|
33165
|
+
} | null;
|
|
32532
33166
|
tokenExpiresAt: string | null;
|
|
32533
33167
|
isDefault: boolean;
|
|
32534
33168
|
webhookUrl: string | null;
|