samva 0.54.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 +57 -3
- package/dist/client/sdk.gen.js +184 -8
- package/dist/client/types.gen.d.ts +420 -1
- 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.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/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.js +1 -1
- 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 +5 -5
- package/dist/effect/generated/approval-requests.js +1 -1
- package/dist/effect/generated/attachments.js +4 -4
- package/dist/effect/generated/brands.js +1 -1
- 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.js +48 -48
- 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 +38 -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.js +5 -5
- 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 +31 -10
- package/dist/effect/generated/shared.js +34 -13
- 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.js +119 -119
- 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 +35 -1
- package/dist/effect/generated-metadata.js +173 -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 +10 -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.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 +25 -0
- 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 = {
|
|
@@ -2860,6 +2868,7 @@ export type TopicSubscriptionCheck = {
|
|
|
2860
2868
|
};
|
|
2861
2869
|
export type TopicList = {
|
|
2862
2870
|
items: Array<Topic>;
|
|
2871
|
+
nextCursor: string | null;
|
|
2863
2872
|
};
|
|
2864
2873
|
export type CustomFieldDefinitionId = string;
|
|
2865
2874
|
export type CustomFieldList = {
|
|
@@ -3145,6 +3154,13 @@ export type RecipeReadinessResponse = {
|
|
|
3145
3154
|
accountId: WhatsAppBusinessAccountId;
|
|
3146
3155
|
address: string;
|
|
3147
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;
|
|
3148
3164
|
registration: {
|
|
3149
3165
|
id: TemplateRegistrationId;
|
|
3150
3166
|
status: "draft" | "submitted" | "approved" | "rejected" | "paused" | "disabled";
|
|
@@ -3390,6 +3406,11 @@ export type AccountInfo = {
|
|
|
3390
3406
|
export type IntegrationAccountList = {
|
|
3391
3407
|
items: Array<IntegrationAccount>;
|
|
3392
3408
|
};
|
|
3409
|
+
export type ContactReferenceSummary = {
|
|
3410
|
+
id: ContactId;
|
|
3411
|
+
name: string;
|
|
3412
|
+
displayName: string | null;
|
|
3413
|
+
};
|
|
3393
3414
|
export type AgentVersion = {
|
|
3394
3415
|
agentId: AgentId;
|
|
3395
3416
|
version: number;
|
|
@@ -3665,6 +3686,7 @@ export type JourneyRunDetail = {
|
|
|
3665
3686
|
journeyId: JourneyId;
|
|
3666
3687
|
version: number;
|
|
3667
3688
|
contactId: ContactId;
|
|
3689
|
+
contact: ContactReferenceSummary | null;
|
|
3668
3690
|
status: JourneyRunStatus;
|
|
3669
3691
|
exitReason: JourneyRunExitReason | null;
|
|
3670
3692
|
failureReason: string | null;
|
|
@@ -3706,6 +3728,7 @@ export type JourneyRun = {
|
|
|
3706
3728
|
journeyId: JourneyId;
|
|
3707
3729
|
version: number;
|
|
3708
3730
|
contactId: ContactId;
|
|
3731
|
+
contact: ContactReferenceSummary | null;
|
|
3709
3732
|
status: JourneyRunStatus;
|
|
3710
3733
|
exitReason: JourneyRunExitReason | null;
|
|
3711
3734
|
failureReason: string | null;
|
|
@@ -5125,6 +5148,7 @@ export type CampaignRecipientPage = {
|
|
|
5125
5148
|
id: CampaignRecipientId;
|
|
5126
5149
|
runId: CampaignRunId;
|
|
5127
5150
|
contactId: ContactId;
|
|
5151
|
+
contact: ContactReferenceSummary | null;
|
|
5128
5152
|
status: "pending" | "dispatching" | "dispatched" | "failed" | "skipped";
|
|
5129
5153
|
messageId: string | null;
|
|
5130
5154
|
failureReason: string | null;
|
|
@@ -6288,6 +6312,13 @@ export type MessageLogPage = {
|
|
|
6288
6312
|
items: Array<LogLine>;
|
|
6289
6313
|
nextCursor: string | null;
|
|
6290
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
|
+
};
|
|
6291
6322
|
export type MessageEventPage = {
|
|
6292
6323
|
items: Array<{
|
|
6293
6324
|
id: MessageEventId;
|
|
@@ -7320,6 +7351,335 @@ export type MessagesGetEventsResponses = {
|
|
|
7320
7351
|
200: MessageEventPage;
|
|
7321
7352
|
};
|
|
7322
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];
|
|
7323
7683
|
export type LogsListData = {
|
|
7324
7684
|
body?: never;
|
|
7325
7685
|
path?: never;
|
|
@@ -16105,6 +16465,7 @@ export type AccountsListContactConnectionsResponses = {
|
|
|
16105
16465
|
organizationId: OrganizationId;
|
|
16106
16466
|
integrationId: IntegrationId;
|
|
16107
16467
|
contactId: ContactId;
|
|
16468
|
+
contact: ContactReferenceSummary | null;
|
|
16108
16469
|
accountId: IntegrationAccountId;
|
|
16109
16470
|
provider?: IntegrationKey | undefined;
|
|
16110
16471
|
info: AccountInfo;
|
|
@@ -18479,6 +18840,8 @@ export type TopicsListData = {
|
|
|
18479
18840
|
body?: never;
|
|
18480
18841
|
path?: never;
|
|
18481
18842
|
query?: {
|
|
18843
|
+
limit?: number | null | undefined;
|
|
18844
|
+
cursor?: string | undefined;
|
|
18482
18845
|
namespaceId?: NamespaceId | undefined;
|
|
18483
18846
|
};
|
|
18484
18847
|
url: "/v1/topics";
|
|
@@ -26506,6 +26869,7 @@ export type OrganizationsGetUsageResponses = {
|
|
|
26506
26869
|
usedCredits: number | null;
|
|
26507
26870
|
overageCredits: number | null;
|
|
26508
26871
|
overageCost: number | null;
|
|
26872
|
+
heldPhoneNumbers: number | null;
|
|
26509
26873
|
includedAiCredits: number | null;
|
|
26510
26874
|
usedAiCredits: number | null;
|
|
26511
26875
|
overageAiCredits: number | null;
|
|
@@ -32383,11 +32747,22 @@ export type WhatsappListBusinessAccountsResponses = {
|
|
|
32383
32747
|
organizationId: string;
|
|
32384
32748
|
namespaceId: NamespaceId | null;
|
|
32385
32749
|
phoneNumber: string;
|
|
32750
|
+
/**
|
|
32751
|
+
* The phone number formatted for display in international form.
|
|
32752
|
+
*/
|
|
32753
|
+
phoneNumberDisplay: string;
|
|
32386
32754
|
phoneNumberId: string;
|
|
32387
32755
|
displayName: string;
|
|
32388
32756
|
whatsappBusinessAccountId: string;
|
|
32389
32757
|
verificationStatus: "pending" | "verified" | "failed" | "suspended";
|
|
32390
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;
|
|
32391
32766
|
tokenExpiresAt: string | null;
|
|
32392
32767
|
isDefault: boolean;
|
|
32393
32768
|
webhookUrl: string | null;
|
|
@@ -32472,11 +32847,22 @@ export type WhatsappConnectBusinessAccountResponses = {
|
|
|
32472
32847
|
organizationId: string;
|
|
32473
32848
|
namespaceId: NamespaceId | null;
|
|
32474
32849
|
phoneNumber: string;
|
|
32850
|
+
/**
|
|
32851
|
+
* The phone number formatted for display in international form.
|
|
32852
|
+
*/
|
|
32853
|
+
phoneNumberDisplay: string;
|
|
32475
32854
|
phoneNumberId: string;
|
|
32476
32855
|
displayName: string;
|
|
32477
32856
|
whatsappBusinessAccountId: string;
|
|
32478
32857
|
verificationStatus: "pending" | "verified" | "failed" | "suspended";
|
|
32479
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;
|
|
32480
32866
|
tokenExpiresAt: string | null;
|
|
32481
32867
|
isDefault: boolean;
|
|
32482
32868
|
webhookUrl: string | null;
|
|
@@ -32592,11 +32978,22 @@ export type WhatsappGetBusinessAccountResponses = {
|
|
|
32592
32978
|
organizationId: string;
|
|
32593
32979
|
namespaceId: NamespaceId | null;
|
|
32594
32980
|
phoneNumber: string;
|
|
32981
|
+
/**
|
|
32982
|
+
* The phone number formatted for display in international form.
|
|
32983
|
+
*/
|
|
32984
|
+
phoneNumberDisplay: string;
|
|
32595
32985
|
phoneNumberId: string;
|
|
32596
32986
|
displayName: string;
|
|
32597
32987
|
whatsappBusinessAccountId: string;
|
|
32598
32988
|
verificationStatus: "pending" | "verified" | "failed" | "suspended";
|
|
32599
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;
|
|
32600
32997
|
tokenExpiresAt: string | null;
|
|
32601
32998
|
isDefault: boolean;
|
|
32602
32999
|
webhookUrl: string | null;
|
|
@@ -32667,11 +33064,22 @@ export type WhatsappUpdateBusinessAccountResponses = {
|
|
|
32667
33064
|
organizationId: string;
|
|
32668
33065
|
namespaceId: NamespaceId | null;
|
|
32669
33066
|
phoneNumber: string;
|
|
33067
|
+
/**
|
|
33068
|
+
* The phone number formatted for display in international form.
|
|
33069
|
+
*/
|
|
33070
|
+
phoneNumberDisplay: string;
|
|
32670
33071
|
phoneNumberId: string;
|
|
32671
33072
|
displayName: string;
|
|
32672
33073
|
whatsappBusinessAccountId: string;
|
|
32673
33074
|
verificationStatus: "pending" | "verified" | "failed" | "suspended";
|
|
32674
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;
|
|
32675
33083
|
tokenExpiresAt: string | null;
|
|
32676
33084
|
isDefault: boolean;
|
|
32677
33085
|
webhookUrl: string | null;
|
|
@@ -32739,11 +33147,22 @@ export type WhatsappSetDefaultBusinessAccountResponses = {
|
|
|
32739
33147
|
organizationId: string;
|
|
32740
33148
|
namespaceId: NamespaceId | null;
|
|
32741
33149
|
phoneNumber: string;
|
|
33150
|
+
/**
|
|
33151
|
+
* The phone number formatted for display in international form.
|
|
33152
|
+
*/
|
|
33153
|
+
phoneNumberDisplay: string;
|
|
32742
33154
|
phoneNumberId: string;
|
|
32743
33155
|
displayName: string;
|
|
32744
33156
|
whatsappBusinessAccountId: string;
|
|
32745
33157
|
verificationStatus: "pending" | "verified" | "failed" | "suspended";
|
|
32746
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;
|
|
32747
33166
|
tokenExpiresAt: string | null;
|
|
32748
33167
|
isDefault: boolean;
|
|
32749
33168
|
webhookUrl: string | null;
|
package/dist/effect/agents.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import { forGroup } from "./internal/operation.js";
|
|
3
2
|
import { agentsOperations } from "./descriptors/agents.js";
|
|
4
3
|
import { AgentsGroup } from "./generated/agents.js";
|
|
4
|
+
import { forGroup } from "./internal/operation.js";
|
|
5
5
|
// src/effect/agents.ts
|
|
6
6
|
var agents_exports = /* @__PURE__ */ __exportAll({
|
|
7
7
|
continueOnStandard: () => continueOnStandard,
|
package/dist/effect/analytics.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import { forGroup } from "./internal/operation.js";
|
|
3
2
|
import { analyticsOperations } from "./descriptors/analytics.js";
|
|
4
3
|
import { AnalyticsGroup } from "./generated/analytics.js";
|
|
4
|
+
import { forGroup } from "./internal/operation.js";
|
|
5
5
|
// src/effect/analytics.ts
|
|
6
6
|
var analytics_exports = /* @__PURE__ */ __exportAll({
|
|
7
7
|
exportData: () => exportData,
|
package/dist/effect/api-keys.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import { forGroup } from "./internal/operation.js";
|
|
3
2
|
import { apiKeysOperations } from "./descriptors/api-keys.js";
|
|
4
3
|
import { APIKeysGroup, ApiKeysCreateRequestJson, ApiKeysUpdateRequestJson } from "./generated/api-keys.js";
|
|
4
|
+
import { forGroup } from "./internal/operation.js";
|
|
5
5
|
// src/effect/api-keys.ts
|
|
6
6
|
var api_keys_exports = /* @__PURE__ */ __exportAll({
|
|
7
7
|
CreatePayload: () => ApiKeysCreateRequestJson,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import { forGroup } from "./internal/operation.js";
|
|
3
2
|
import { approvalRequestsOperations } from "./descriptors/approval-requests.js";
|
|
4
3
|
import { ApprovalRequestsGroup } from "./generated/approval-requests.js";
|
|
4
|
+
import { forGroup } from "./internal/operation.js";
|
|
5
5
|
// src/effect/approval-requests.ts
|
|
6
6
|
var approval_requests_exports = /* @__PURE__ */ __exportAll({
|
|
7
7
|
approve: () => approve,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import { forGroup } from "./internal/operation.js";
|
|
3
2
|
import { attachmentsOperations } from "./descriptors/attachments.js";
|
|
4
3
|
import { AttachmentsGroup } from "./generated/attachments.js";
|
|
4
|
+
import { forGroup } from "./internal/operation.js";
|
|
5
5
|
// src/effect/attachments.ts
|
|
6
6
|
var attachments_exports = /* @__PURE__ */ __exportAll({
|
|
7
7
|
downloadUrl: () => downloadUrl,
|
package/dist/effect/brands.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import { CreateBrand, UpdateBrand } from "./generated/shared.js";
|
|
3
|
-
import { forGroup } from "./internal/operation.js";
|
|
4
2
|
import { brandsOperations } from "./descriptors/brands.js";
|
|
5
3
|
import { BrandsGroup } from "./generated/brands.js";
|
|
4
|
+
import { forGroup } from "./internal/operation.js";
|
|
5
|
+
import { CreateBrand, UpdateBrand } from "./generated/shared.js";
|
|
6
6
|
// src/effect/brands.ts
|
|
7
7
|
var brands_exports = /* @__PURE__ */ __exportAll({
|
|
8
8
|
CreatePayload: () => CreateBrand,
|