@getlatedev/node 0.2.1673 → 0.2.1675
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/index.d.mts +95 -1
- package/dist/index.d.ts +95 -1
- package/dist/index.js +9 -2
- package/dist/index.mjs +9 -2
- package/package.json +1 -1
- package/src/client.ts +2 -0
- package/src/generated/sdk.gen.ts +23 -3
- package/src/generated/types.gen.ts +99 -0
|
@@ -17361,6 +17361,18 @@ export type Profile = {
|
|
|
17361
17361
|
* The mode that applies to this profile: `none` when the profile or the whole team uses zero content retention.
|
|
17362
17362
|
*/
|
|
17363
17363
|
effectiveContentRetention?: 'standard' | 'none';
|
|
17364
|
+
/**
|
|
17365
|
+
* Most outbound calls placed from this profile's numbers in any rolling hour. Null means only the team limits apply.
|
|
17366
|
+
*/
|
|
17367
|
+
maxOutboundCallsPerHour?: (number) | null;
|
|
17368
|
+
/**
|
|
17369
|
+
* Most billed spend, in USD, on outbound calls and calls forwarded to a phone from this profile's numbers in any rolling 24 hours. Null means only the team limits apply.
|
|
17370
|
+
*/
|
|
17371
|
+
maxDailyCallSpendUsd?: (number) | null;
|
|
17372
|
+
/**
|
|
17373
|
+
* Most minutes of inbound calls forwarded to a phone from this profile's numbers in any rolling 24 hours. Null means only the team limits apply.
|
|
17374
|
+
*/
|
|
17375
|
+
maxForwardedMinutesPerDay?: (number) | null;
|
|
17364
17376
|
isDefault?: boolean;
|
|
17365
17377
|
/**
|
|
17366
17378
|
* Only present when includeOverLimit=true. Indicates if this profile exceeds the plan limit.
|
|
@@ -17383,6 +17395,57 @@ export type contentRetention = 'standard' | 'none';
|
|
|
17383
17395
|
*/
|
|
17384
17396
|
export type effectiveContentRetention = 'standard' | 'none';
|
|
17385
17397
|
|
|
17398
|
+
export type ProfileCallLimit = {
|
|
17399
|
+
/**
|
|
17400
|
+
* The limit, or null when none is set at this level.
|
|
17401
|
+
*/
|
|
17402
|
+
limit: (number) | null;
|
|
17403
|
+
/**
|
|
17404
|
+
* Used in the current window, calls still in progress included.
|
|
17405
|
+
*/
|
|
17406
|
+
used: number;
|
|
17407
|
+
/**
|
|
17408
|
+
* What is left before the limit; null when there is no limit.
|
|
17409
|
+
*/
|
|
17410
|
+
remaining: (number) | null;
|
|
17411
|
+
/**
|
|
17412
|
+
* `concurrent` counts calls in progress now; the rolling windows end now.
|
|
17413
|
+
*/
|
|
17414
|
+
window: 'concurrent' | 'rolling_hour' | 'rolling_24h';
|
|
17415
|
+
};
|
|
17416
|
+
|
|
17417
|
+
/**
|
|
17418
|
+
* `concurrent` counts calls in progress now; the rolling windows end now.
|
|
17419
|
+
*/
|
|
17420
|
+
export type window = 'concurrent' | 'rolling_hour' | 'rolling_24h';
|
|
17421
|
+
|
|
17422
|
+
export type ProfileCallLimitsResponse = {
|
|
17423
|
+
profileId: string;
|
|
17424
|
+
/**
|
|
17425
|
+
* The limits set on this profile. They apply inside the team limits, never above them.
|
|
17426
|
+
*/
|
|
17427
|
+
profile: {
|
|
17428
|
+
outboundCallsPerHour?: ProfileCallLimit;
|
|
17429
|
+
dailyCallSpendUsd?: ProfileCallLimit;
|
|
17430
|
+
forwardedMinutesPerDay?: ProfileCallLimit;
|
|
17431
|
+
};
|
|
17432
|
+
/**
|
|
17433
|
+
* The limits of the whole team (every profile and member). Contact support to raise them.
|
|
17434
|
+
*/
|
|
17435
|
+
team: {
|
|
17436
|
+
concurrentCalls?: ProfileCallLimit;
|
|
17437
|
+
/**
|
|
17438
|
+
* Billed spend (USD) on outbound calls and calls forwarded to a phone across the team over the rolling 24 hours, in the same unit as `maxDailyCallSpendUsd`.
|
|
17439
|
+
*/
|
|
17440
|
+
dailyCallSpendUsd?: (ProfileCallLimit);
|
|
17441
|
+
/**
|
|
17442
|
+
* Billed spend (USD) on calls forwarded to a phone across the team over the rolling 24 hours.
|
|
17443
|
+
*/
|
|
17444
|
+
dailyForwardSpendUsd?: (ProfileCallLimit);
|
|
17445
|
+
forwardedMinutesPerHour?: ProfileCallLimit;
|
|
17446
|
+
};
|
|
17447
|
+
};
|
|
17448
|
+
|
|
17386
17449
|
export type ProfileCreateResponse = {
|
|
17387
17450
|
message?: string;
|
|
17388
17451
|
profile?: Profile;
|
|
@@ -33430,6 +33493,18 @@ export type CreateProfileData = {
|
|
|
33430
33493
|
* Set `none` to create the profile with zero content retention, so nothing of its accounts is stored from the first sync. Only the team owner can, with a session or a full-access key; anyone else gets 403.
|
|
33431
33494
|
*/
|
|
33432
33495
|
contentRetention?: 'standard' | 'none';
|
|
33496
|
+
/**
|
|
33497
|
+
* Caps outbound calls from this profile's numbers per rolling hour, inside the team limits. Omit for no profile cap.
|
|
33498
|
+
*/
|
|
33499
|
+
maxOutboundCallsPerHour?: number;
|
|
33500
|
+
/**
|
|
33501
|
+
* Caps billed call spend (USD) from this profile's numbers per rolling 24 hours, inside the team limits. Omit for no profile cap.
|
|
33502
|
+
*/
|
|
33503
|
+
maxDailyCallSpendUsd?: number;
|
|
33504
|
+
/**
|
|
33505
|
+
* Caps minutes forwarded to a phone from this profile's numbers per rolling 24 hours, inside the team limits. Omit for no profile cap.
|
|
33506
|
+
*/
|
|
33507
|
+
maxForwardedMinutesPerDay?: number;
|
|
33433
33508
|
};
|
|
33434
33509
|
headers?: {
|
|
33435
33510
|
/**
|
|
@@ -33540,6 +33615,18 @@ export type UpdateProfileData = {
|
|
|
33540
33615
|
* Turns zero content retention on (`none`) or off (`standard`) for this profile only, for new data within about a minute. Only the team owner can change it. `standard` answers 409 while the whole team has it on; `none` answers 409 during a WhatsApp verification of a number of this profile.
|
|
33541
33616
|
*/
|
|
33542
33617
|
contentRetention?: 'standard' | 'none';
|
|
33618
|
+
/**
|
|
33619
|
+
* Caps outbound calls from this profile's numbers per rolling hour, inside the team limits. Null clears it.
|
|
33620
|
+
*/
|
|
33621
|
+
maxOutboundCallsPerHour?: (number) | null;
|
|
33622
|
+
/**
|
|
33623
|
+
* Caps billed call spend (USD) from this profile's numbers per rolling 24 hours, inside the team limits. Null clears it.
|
|
33624
|
+
*/
|
|
33625
|
+
maxDailyCallSpendUsd?: (number) | null;
|
|
33626
|
+
/**
|
|
33627
|
+
* Caps minutes forwarded to a phone from this profile's numbers per rolling 24 hours, inside the team limits. Null clears it.
|
|
33628
|
+
*/
|
|
33629
|
+
maxForwardedMinutesPerDay?: (number) | null;
|
|
33543
33630
|
};
|
|
33544
33631
|
path: {
|
|
33545
33632
|
profileId: string;
|
|
@@ -33564,6 +33651,18 @@ export type DeleteProfileError = (unknown | ErrorResponse | {
|
|
|
33564
33651
|
error?: string;
|
|
33565
33652
|
});
|
|
33566
33653
|
|
|
33654
|
+
export type GetProfileLimitsData = {
|
|
33655
|
+
path: {
|
|
33656
|
+
profileId: string;
|
|
33657
|
+
};
|
|
33658
|
+
};
|
|
33659
|
+
|
|
33660
|
+
export type GetProfileLimitsResponse = (ProfileCallLimitsResponse);
|
|
33661
|
+
|
|
33662
|
+
export type GetProfileLimitsError = (ErrorResponse | unknown | {
|
|
33663
|
+
error?: string;
|
|
33664
|
+
});
|
|
33665
|
+
|
|
33567
33666
|
export type ListAccountsData = {
|
|
33568
33667
|
query?: {
|
|
33569
33668
|
/**
|