@getlatedev/node 0.2.1657 → 0.2.1659
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/dist/index.d.mts +68 -1
- package/dist/index.d.ts +68 -1
- package/dist/index.js +22 -1
- package/dist/index.mjs +22 -1
- package/package.json +1 -1
- package/src/client.ts +6 -0
- package/src/generated/sdk.gen.ts +58 -5
- package/src/generated/types.gen.ts +73 -0
|
@@ -16298,6 +16298,10 @@ export type OwnedPhoneNumber = {
|
|
|
16298
16298
|
*/
|
|
16299
16299
|
pstnVoiceEnabled?: boolean;
|
|
16300
16300
|
pstnForwardTo?: string;
|
|
16301
|
+
/**
|
|
16302
|
+
* Inbound calls ring the owner's open dashboard tabs first, then take the forward or voicemail.
|
|
16303
|
+
*/
|
|
16304
|
+
ringInBrowser?: boolean;
|
|
16301
16305
|
voicemailEnabled?: boolean;
|
|
16302
16306
|
voicemailGreeting?: string;
|
|
16303
16307
|
businessHoursEnabled?: boolean;
|
|
@@ -18357,6 +18361,17 @@ export type SlackPlatformData = {
|
|
|
18357
18361
|
iconUrl?: string;
|
|
18358
18362
|
};
|
|
18359
18363
|
|
|
18364
|
+
export type SmsOptOutRequest = {
|
|
18365
|
+
/**
|
|
18366
|
+
* ID of the SMS number account the opt-out applies to (from `GET /v1/accounts`).
|
|
18367
|
+
*/
|
|
18368
|
+
accountId: string;
|
|
18369
|
+
/**
|
|
18370
|
+
* Recipient phone number in E.164 format, e.g. +13105559999.
|
|
18371
|
+
*/
|
|
18372
|
+
phone: string;
|
|
18373
|
+
};
|
|
18374
|
+
|
|
18360
18375
|
/**
|
|
18361
18376
|
* An open change request written as points. Answer each point with POST /v1/sms/registrations/{id}/respond: `answer` says what each point needs (text, a link, a hosted document, or a link or a document).
|
|
18362
18377
|
*/
|
|
@@ -49754,6 +49769,17 @@ export type CreateVoiceWebSessionResponse = ({
|
|
|
49754
49769
|
|
|
49755
49770
|
export type CreateVoiceWebSessionError = (ErrorResponse | unknown);
|
|
49756
49771
|
|
|
49772
|
+
export type CreateVoiceWebInboundSessionResponse = ({
|
|
49773
|
+
enabled?: boolean;
|
|
49774
|
+
/**
|
|
49775
|
+
* Login token for the browser WebRTC SDK. Present when enabled.
|
|
49776
|
+
*/
|
|
49777
|
+
token?: string;
|
|
49778
|
+
sdk?: string;
|
|
49779
|
+
});
|
|
49780
|
+
|
|
49781
|
+
export type CreateVoiceWebInboundSessionError = (ErrorResponse | unknown);
|
|
49782
|
+
|
|
49757
49783
|
export type DialVoiceWebCallData = {
|
|
49758
49784
|
body: {
|
|
49759
49785
|
/**
|
|
@@ -50562,12 +50588,54 @@ export type ListSmsOptOutsResponse = ({
|
|
|
50562
50588
|
* Which of your numbers the recipient opted out from.
|
|
50563
50589
|
*/
|
|
50564
50590
|
from?: (string) | null;
|
|
50591
|
+
/**
|
|
50592
|
+
* `inbound_stop` when the recipient texted an opt-out keyword, `api` when recorded with `POST /v1/sms/opt-outs`. Null when unknown.
|
|
50593
|
+
*/
|
|
50594
|
+
source?: ('inbound_stop' | 'api') | null;
|
|
50565
50595
|
}>;
|
|
50566
50596
|
count?: number;
|
|
50567
50597
|
});
|
|
50568
50598
|
|
|
50569
50599
|
export type ListSmsOptOutsError = (ErrorResponse);
|
|
50570
50600
|
|
|
50601
|
+
export type CreateSmsOptOutData = {
|
|
50602
|
+
body: SmsOptOutRequest;
|
|
50603
|
+
};
|
|
50604
|
+
|
|
50605
|
+
export type CreateSmsOptOutResponse = ({
|
|
50606
|
+
accountId?: string;
|
|
50607
|
+
phoneNumber?: string;
|
|
50608
|
+
/**
|
|
50609
|
+
* Always true.
|
|
50610
|
+
*/
|
|
50611
|
+
optedOut?: boolean;
|
|
50612
|
+
/**
|
|
50613
|
+
* What set the current opt-out.
|
|
50614
|
+
*/
|
|
50615
|
+
source?: 'api' | 'inbound_stop';
|
|
50616
|
+
});
|
|
50617
|
+
|
|
50618
|
+
export type CreateSmsOptOutError = (ErrorResponse | {
|
|
50619
|
+
error?: string;
|
|
50620
|
+
});
|
|
50621
|
+
|
|
50622
|
+
export type DeleteSmsOptOutData = {
|
|
50623
|
+
body: SmsOptOutRequest;
|
|
50624
|
+
};
|
|
50625
|
+
|
|
50626
|
+
export type DeleteSmsOptOutResponse = ({
|
|
50627
|
+
accountId?: string;
|
|
50628
|
+
phoneNumber?: string;
|
|
50629
|
+
/**
|
|
50630
|
+
* Always false.
|
|
50631
|
+
*/
|
|
50632
|
+
optedOut?: boolean;
|
|
50633
|
+
});
|
|
50634
|
+
|
|
50635
|
+
export type DeleteSmsOptOutError = (ErrorResponse | {
|
|
50636
|
+
error?: string;
|
|
50637
|
+
});
|
|
50638
|
+
|
|
50571
50639
|
export type CreateSmsSenderIdData = {
|
|
50572
50640
|
body: {
|
|
50573
50641
|
/**
|
|
@@ -54568,6 +54636,10 @@ export type EnableVoiceOnNumberData = {
|
|
|
54568
54636
|
* tel:+E164, sip:..., or wss://... destination for inbound calls. Empty string clears the forward (outbound-only); omitted preserves the current one.
|
|
54569
54637
|
*/
|
|
54570
54638
|
forwardTo?: string;
|
|
54639
|
+
/**
|
|
54640
|
+
* Ring the owner's open Zernio dashboard tabs first (registered via POST /v1/voice/calls/web/inbound). Unanswered after 20 seconds, declined, or with no tab open, the call takes the forward destination, else voicemail. Superseded by an active IVR.
|
|
54641
|
+
*/
|
|
54642
|
+
ringInBrowser?: boolean;
|
|
54571
54643
|
recordingEnabled?: boolean;
|
|
54572
54644
|
transcriptionEnabled?: boolean;
|
|
54573
54645
|
transcriptionLanguage?: 'auto' | 'en' | 'es';
|
|
@@ -54629,6 +54701,7 @@ export type EnableVoiceOnNumberResponse = ({
|
|
|
54629
54701
|
enabled?: boolean;
|
|
54630
54702
|
phoneNumber?: string;
|
|
54631
54703
|
pstnForwardTo?: (string) | null;
|
|
54704
|
+
ringInBrowser?: boolean;
|
|
54632
54705
|
recordingEnabled?: boolean;
|
|
54633
54706
|
transcriptionEnabled?: boolean;
|
|
54634
54707
|
transcriptionLanguage?: 'auto' | 'en' | 'es';
|