@getlatedev/node 0.2.281 → 0.2.283
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/dist/index.d.mts +152 -85
- package/dist/index.d.ts +152 -85
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/types.gen.ts +160 -75
package/package.json
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
2
|
|
|
3
|
+
export type AccountsListResponse = {
|
|
4
|
+
accounts: Array<SocialAccount>;
|
|
5
|
+
/**
|
|
6
|
+
* Whether user has analytics add-on access
|
|
7
|
+
*/
|
|
8
|
+
hasAnalyticsAccess: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Only present when page/limit params are provided
|
|
11
|
+
*/
|
|
12
|
+
pagination?: Pagination;
|
|
13
|
+
};
|
|
14
|
+
|
|
3
15
|
export type AccountWithFollowerStats = SocialAccount & {
|
|
4
16
|
/**
|
|
5
17
|
* Current follower count
|
|
@@ -1538,6 +1550,21 @@ export type FacebookPlatformData = {
|
|
|
1538
1550
|
*/
|
|
1539
1551
|
export type contentType = 'story' | 'reel';
|
|
1540
1552
|
|
|
1553
|
+
export type FollowerStatsResponse = {
|
|
1554
|
+
accounts?: Array<AccountWithFollowerStats>;
|
|
1555
|
+
stats?: {
|
|
1556
|
+
[key: string]: Array<{
|
|
1557
|
+
date?: string;
|
|
1558
|
+
followers?: number;
|
|
1559
|
+
}>;
|
|
1560
|
+
};
|
|
1561
|
+
dateRange?: {
|
|
1562
|
+
from?: string;
|
|
1563
|
+
to?: string;
|
|
1564
|
+
};
|
|
1565
|
+
granularity?: string;
|
|
1566
|
+
};
|
|
1567
|
+
|
|
1541
1568
|
export type FoodMenu = {
|
|
1542
1569
|
labels: Array<FoodMenuLabel>;
|
|
1543
1570
|
sections?: Array<FoodMenuSection>;
|
|
@@ -2238,6 +2265,10 @@ export type MediaItem = {
|
|
|
2238
2265
|
|
|
2239
2266
|
export type type6 = 'image' | 'video' | 'gif' | 'document';
|
|
2240
2267
|
|
|
2268
|
+
export type MediaUploadResponse = {
|
|
2269
|
+
files?: Array<UploadedFile>;
|
|
2270
|
+
};
|
|
2271
|
+
|
|
2241
2272
|
export type Money = {
|
|
2242
2273
|
/**
|
|
2243
2274
|
* ISO 4217 currency code (e.g. USD, EUR)
|
|
@@ -2499,10 +2530,52 @@ export type ProfileCreateResponse = {
|
|
|
2499
2530
|
profile?: Profile;
|
|
2500
2531
|
};
|
|
2501
2532
|
|
|
2533
|
+
export type ProfileDeleteResponse = {
|
|
2534
|
+
message?: string;
|
|
2535
|
+
};
|
|
2536
|
+
|
|
2537
|
+
export type ProfileGetResponse = {
|
|
2538
|
+
profile?: Profile;
|
|
2539
|
+
};
|
|
2540
|
+
|
|
2502
2541
|
export type ProfilesListResponse = {
|
|
2503
2542
|
profiles?: Array<Profile>;
|
|
2504
2543
|
};
|
|
2505
2544
|
|
|
2545
|
+
export type ProfileUpdateResponse = {
|
|
2546
|
+
message?: string;
|
|
2547
|
+
profile?: Profile;
|
|
2548
|
+
};
|
|
2549
|
+
|
|
2550
|
+
export type QueueDeleteResponse = {
|
|
2551
|
+
success?: boolean;
|
|
2552
|
+
deleted?: boolean;
|
|
2553
|
+
deletedCount?: number;
|
|
2554
|
+
message?: string;
|
|
2555
|
+
};
|
|
2556
|
+
|
|
2557
|
+
export type QueueNextSlotResponse = {
|
|
2558
|
+
profileId?: string;
|
|
2559
|
+
nextSlot?: string;
|
|
2560
|
+
timezone?: string;
|
|
2561
|
+
/**
|
|
2562
|
+
* Queue ID this slot belongs to
|
|
2563
|
+
*/
|
|
2564
|
+
queueId?: string;
|
|
2565
|
+
/**
|
|
2566
|
+
* Queue name
|
|
2567
|
+
*/
|
|
2568
|
+
queueName?: string;
|
|
2569
|
+
};
|
|
2570
|
+
|
|
2571
|
+
export type QueuePreviewResponse = {
|
|
2572
|
+
profileId?: string;
|
|
2573
|
+
queueId?: string;
|
|
2574
|
+
queueName?: string;
|
|
2575
|
+
count?: number;
|
|
2576
|
+
slots?: Array<(string)>;
|
|
2577
|
+
};
|
|
2578
|
+
|
|
2506
2579
|
export type QueueSchedule = {
|
|
2507
2580
|
/**
|
|
2508
2581
|
* Unique queue identifier
|
|
@@ -2544,6 +2617,24 @@ export type QueueSlot = {
|
|
|
2544
2617
|
time?: string;
|
|
2545
2618
|
};
|
|
2546
2619
|
|
|
2620
|
+
/**
|
|
2621
|
+
* Single queue response (default behavior)
|
|
2622
|
+
*/
|
|
2623
|
+
export type QueueSlotsResponse = {
|
|
2624
|
+
exists?: boolean;
|
|
2625
|
+
schedule?: QueueSchedule;
|
|
2626
|
+
nextSlots?: Array<(string)>;
|
|
2627
|
+
};
|
|
2628
|
+
|
|
2629
|
+
export type QueueUpdateResponse = {
|
|
2630
|
+
success?: boolean;
|
|
2631
|
+
schedule?: QueueSchedule;
|
|
2632
|
+
nextSlots?: Array<(string)>;
|
|
2633
|
+
reshuffledCount?: number;
|
|
2634
|
+
skippedDailyLimit?: number;
|
|
2635
|
+
isNewQueue?: boolean;
|
|
2636
|
+
};
|
|
2637
|
+
|
|
2547
2638
|
/**
|
|
2548
2639
|
* Configure automatic post recycling (reposting at regular intervals).
|
|
2549
2640
|
* After the post is published, the system creates new scheduled copies at the
|
|
@@ -3331,6 +3422,34 @@ export type TwitterPlatformData = {
|
|
|
3331
3422
|
*/
|
|
3332
3423
|
export type replySettings = 'following' | 'mentionedUsers' | 'subscribers' | 'verified';
|
|
3333
3424
|
|
|
3425
|
+
export type UploadedFile = {
|
|
3426
|
+
type?: 'image' | 'video' | 'document';
|
|
3427
|
+
url?: string;
|
|
3428
|
+
filename?: string;
|
|
3429
|
+
size?: number;
|
|
3430
|
+
mimeType?: string;
|
|
3431
|
+
};
|
|
3432
|
+
|
|
3433
|
+
export type type7 = 'image' | 'video' | 'document';
|
|
3434
|
+
|
|
3435
|
+
export type UploadTokenResponse = {
|
|
3436
|
+
token?: string;
|
|
3437
|
+
uploadUrl?: string;
|
|
3438
|
+
expiresAt?: string;
|
|
3439
|
+
status?: 'pending' | 'completed' | 'expired';
|
|
3440
|
+
};
|
|
3441
|
+
|
|
3442
|
+
export type status7 = 'pending' | 'completed' | 'expired';
|
|
3443
|
+
|
|
3444
|
+
export type UploadTokenStatusResponse = {
|
|
3445
|
+
token?: string;
|
|
3446
|
+
status?: 'pending' | 'completed' | 'expired';
|
|
3447
|
+
files?: Array<UploadedFile>;
|
|
3448
|
+
createdAt?: string;
|
|
3449
|
+
expiresAt?: string;
|
|
3450
|
+
completedAt?: string;
|
|
3451
|
+
};
|
|
3452
|
+
|
|
3334
3453
|
/**
|
|
3335
3454
|
* Plan and usage stats. The response shape depends on `billingSystem`:
|
|
3336
3455
|
* * Stripe users (default): per-period counters like `usage.uploads` and
|
|
@@ -3480,6 +3599,14 @@ export type User = {
|
|
|
3480
3599
|
createdAt?: string;
|
|
3481
3600
|
};
|
|
3482
3601
|
|
|
3602
|
+
export type UserGetResponse = {
|
|
3603
|
+
user?: User;
|
|
3604
|
+
};
|
|
3605
|
+
|
|
3606
|
+
export type UsersListResponse = {
|
|
3607
|
+
users?: Array<User>;
|
|
3608
|
+
};
|
|
3609
|
+
|
|
3483
3610
|
/**
|
|
3484
3611
|
* Individual webhook configuration for receiving real-time notifications
|
|
3485
3612
|
*/
|
|
@@ -3591,7 +3718,7 @@ export type WebhookLog = {
|
|
|
3591
3718
|
/**
|
|
3592
3719
|
* Delivery outcome
|
|
3593
3720
|
*/
|
|
3594
|
-
export type
|
|
3721
|
+
export type status8 = 'success' | 'failed';
|
|
3595
3722
|
|
|
3596
3723
|
/**
|
|
3597
3724
|
* Webhook payload for `account.ads.initial_sync_completed` events.
|
|
@@ -3700,7 +3827,7 @@ export type event = 'account.ads.initial_sync_completed';
|
|
|
3700
3827
|
/**
|
|
3701
3828
|
* Overall outcome of the initial sync.
|
|
3702
3829
|
*/
|
|
3703
|
-
export type
|
|
3830
|
+
export type status9 = 'success' | 'failure';
|
|
3704
3831
|
|
|
3705
3832
|
/**
|
|
3706
3833
|
* Stable category for UX branching. New values may be added; existing ones are
|
|
@@ -5058,7 +5185,7 @@ export type platform10 = 'whatsapp';
|
|
|
5058
5185
|
* request before the template is actually removed.
|
|
5059
5186
|
*
|
|
5060
5187
|
*/
|
|
5061
|
-
export type
|
|
5188
|
+
export type status10 = 'APPROVED' | 'REJECTED' | 'PENDING' | 'PAUSED' | 'DISABLED' | 'IN_APPEAL' | 'PENDING_DELETION';
|
|
5062
5189
|
|
|
5063
5190
|
export type WhatsAppBodyComponent = {
|
|
5064
5191
|
type: 'body';
|
|
@@ -5159,7 +5286,7 @@ export type WhatsAppSandboxSession = {
|
|
|
5159
5286
|
* list responses.
|
|
5160
5287
|
*
|
|
5161
5288
|
*/
|
|
5162
|
-
export type
|
|
5289
|
+
export type status11 = 'pending' | 'active';
|
|
5163
5290
|
|
|
5164
5291
|
export type WhatsAppTemplateButton = {
|
|
5165
5292
|
type: 'quick_reply' | 'url' | 'phone_number' | 'otp' | 'copy_code' | 'flow' | 'mpm' | 'catalog';
|
|
@@ -5193,7 +5320,7 @@ export type WhatsAppTemplateButton = {
|
|
|
5193
5320
|
navigate_screen?: string;
|
|
5194
5321
|
};
|
|
5195
5322
|
|
|
5196
|
-
export type
|
|
5323
|
+
export type type8 = 'quick_reply' | 'url' | 'phone_number' | 'otp' | 'copy_code' | 'flow' | 'mpm' | 'catalog';
|
|
5197
5324
|
|
|
5198
5325
|
/**
|
|
5199
5326
|
* Required when type is otp
|
|
@@ -5278,7 +5405,7 @@ export type WorkflowExecutionEvent = {
|
|
|
5278
5405
|
|
|
5279
5406
|
export type action2 = 'execution_started' | 'execution_completed' | 'execution_exited' | 'execution_paused' | 'execution_resumed' | 'node_started' | 'node_completed' | 'node_failed' | 'node_skipped';
|
|
5280
5407
|
|
|
5281
|
-
export type
|
|
5408
|
+
export type status12 = 'success' | 'failed' | 'pending';
|
|
5282
5409
|
|
|
5283
5410
|
/**
|
|
5284
5411
|
* A node in a workflow graph. `config` shape depends on `type`.
|
|
@@ -5351,7 +5478,7 @@ export type WorkflowNode = {
|
|
|
5351
5478
|
* integrations (webhook, ai, handoff, start_call).
|
|
5352
5479
|
*
|
|
5353
5480
|
*/
|
|
5354
|
-
export type
|
|
5481
|
+
export type type9 = 'trigger' | 'send_message' | 'wait_for_reply' | 'condition' | 'set_variable' | 'delay' | 'webhook' | 'ai' | 'handoff' | 'start_call' | 'a_b_split' | 'set_field' | 'enroll_sequence' | 'add_tag' | 'remove_tag' | 'end';
|
|
5355
5482
|
|
|
5356
5483
|
/**
|
|
5357
5484
|
* A single X API operation with its per-call price and the Zernio platform methods that trigger it.
|
|
@@ -7740,9 +7867,7 @@ export type GetProfileData = {
|
|
|
7740
7867
|
};
|
|
7741
7868
|
};
|
|
7742
7869
|
|
|
7743
|
-
export type GetProfileResponse = (
|
|
7744
|
-
profile?: Profile;
|
|
7745
|
-
});
|
|
7870
|
+
export type GetProfileResponse = (ProfileGetResponse);
|
|
7746
7871
|
|
|
7747
7872
|
export type GetProfileError = ({
|
|
7748
7873
|
error?: string;
|
|
@@ -7760,10 +7885,7 @@ export type UpdateProfileData = {
|
|
|
7760
7885
|
};
|
|
7761
7886
|
};
|
|
7762
7887
|
|
|
7763
|
-
export type UpdateProfileResponse = (
|
|
7764
|
-
message?: string;
|
|
7765
|
-
profile?: Profile;
|
|
7766
|
-
});
|
|
7888
|
+
export type UpdateProfileResponse = (ProfileUpdateResponse);
|
|
7767
7889
|
|
|
7768
7890
|
export type UpdateProfileError = ({
|
|
7769
7891
|
error?: string;
|
|
@@ -7775,9 +7897,7 @@ export type DeleteProfileData = {
|
|
|
7775
7897
|
};
|
|
7776
7898
|
};
|
|
7777
7899
|
|
|
7778
|
-
export type DeleteProfileResponse = (
|
|
7779
|
-
message?: string;
|
|
7780
|
-
});
|
|
7900
|
+
export type DeleteProfileResponse = (ProfileDeleteResponse);
|
|
7781
7901
|
|
|
7782
7902
|
export type DeleteProfileError = (unknown | {
|
|
7783
7903
|
error?: string;
|
|
@@ -7813,17 +7933,7 @@ export type ListAccountsData = {
|
|
|
7813
7933
|
};
|
|
7814
7934
|
};
|
|
7815
7935
|
|
|
7816
|
-
export type ListAccountsResponse = (
|
|
7817
|
-
accounts: Array<SocialAccount>;
|
|
7818
|
-
/**
|
|
7819
|
-
* Whether user has analytics add-on access
|
|
7820
|
-
*/
|
|
7821
|
-
hasAnalyticsAccess: boolean;
|
|
7822
|
-
/**
|
|
7823
|
-
* Only present when page/limit params are provided
|
|
7824
|
-
*/
|
|
7825
|
-
pagination?: Pagination;
|
|
7826
|
-
});
|
|
7936
|
+
export type ListAccountsResponse = (AccountsListResponse);
|
|
7827
7937
|
|
|
7828
7938
|
export type ListAccountsError = ({
|
|
7829
7939
|
error?: string;
|
|
@@ -7854,20 +7964,7 @@ export type GetFollowerStatsData = {
|
|
|
7854
7964
|
};
|
|
7855
7965
|
};
|
|
7856
7966
|
|
|
7857
|
-
export type GetFollowerStatsResponse = (
|
|
7858
|
-
accounts?: Array<AccountWithFollowerStats>;
|
|
7859
|
-
stats?: {
|
|
7860
|
-
[key: string]: Array<{
|
|
7861
|
-
date?: string;
|
|
7862
|
-
followers?: number;
|
|
7863
|
-
}>;
|
|
7864
|
-
};
|
|
7865
|
-
dateRange?: {
|
|
7866
|
-
from?: string;
|
|
7867
|
-
to?: string;
|
|
7868
|
-
};
|
|
7869
|
-
granularity?: string;
|
|
7870
|
-
});
|
|
7967
|
+
export type GetFollowerStatsResponse = (FollowerStatsResponse);
|
|
7871
7968
|
|
|
7872
7969
|
export type GetFollowerStatsError = ({
|
|
7873
7970
|
error?: string;
|
|
@@ -11843,11 +11940,7 @@ export type ListQueueSlotsData = {
|
|
|
11843
11940
|
};
|
|
11844
11941
|
};
|
|
11845
11942
|
|
|
11846
|
-
export type ListQueueSlotsResponse = (({
|
|
11847
|
-
exists?: boolean;
|
|
11848
|
-
schedule?: QueueSchedule;
|
|
11849
|
-
nextSlots?: Array<(string)>;
|
|
11850
|
-
} | {
|
|
11943
|
+
export type ListQueueSlotsResponse = ((QueueSlotsResponse | {
|
|
11851
11944
|
queues?: Array<QueueSchedule>;
|
|
11852
11945
|
count?: number;
|
|
11853
11946
|
}));
|
|
@@ -11910,12 +12003,7 @@ export type UpdateQueueSlotData = {
|
|
|
11910
12003
|
};
|
|
11911
12004
|
};
|
|
11912
12005
|
|
|
11913
|
-
export type UpdateQueueSlotResponse = (
|
|
11914
|
-
success?: boolean;
|
|
11915
|
-
schedule?: QueueSchedule;
|
|
11916
|
-
nextSlots?: Array<(string)>;
|
|
11917
|
-
reshuffledCount?: number;
|
|
11918
|
-
});
|
|
12006
|
+
export type UpdateQueueSlotResponse = (QueueUpdateResponse);
|
|
11919
12007
|
|
|
11920
12008
|
export type UpdateQueueSlotError = (unknown | {
|
|
11921
12009
|
error?: string;
|
|
@@ -11931,10 +12019,7 @@ export type DeleteQueueSlotData = {
|
|
|
11931
12019
|
};
|
|
11932
12020
|
};
|
|
11933
12021
|
|
|
11934
|
-
export type DeleteQueueSlotResponse = (
|
|
11935
|
-
success?: boolean;
|
|
11936
|
-
deleted?: boolean;
|
|
11937
|
-
});
|
|
12022
|
+
export type DeleteQueueSlotResponse = (QueueDeleteResponse);
|
|
11938
12023
|
|
|
11939
12024
|
export type DeleteQueueSlotError = (unknown | {
|
|
11940
12025
|
error?: string;
|
|
@@ -11951,11 +12036,7 @@ export type PreviewQueueData = {
|
|
|
11951
12036
|
};
|
|
11952
12037
|
};
|
|
11953
12038
|
|
|
11954
|
-
export type PreviewQueueResponse = (
|
|
11955
|
-
profileId?: string;
|
|
11956
|
-
count?: number;
|
|
11957
|
-
slots?: Array<(string)>;
|
|
11958
|
-
});
|
|
12039
|
+
export type PreviewQueueResponse = (QueuePreviewResponse);
|
|
11959
12040
|
|
|
11960
12041
|
export type PreviewQueueError = (unknown | {
|
|
11961
12042
|
error?: string;
|
|
@@ -11971,19 +12052,7 @@ export type GetNextQueueSlotData = {
|
|
|
11971
12052
|
};
|
|
11972
12053
|
};
|
|
11973
12054
|
|
|
11974
|
-
export type GetNextQueueSlotResponse = (
|
|
11975
|
-
profileId?: string;
|
|
11976
|
-
nextSlot?: string;
|
|
11977
|
-
timezone?: string;
|
|
11978
|
-
/**
|
|
11979
|
-
* Queue ID this slot belongs to
|
|
11980
|
-
*/
|
|
11981
|
-
queueId?: string;
|
|
11982
|
-
/**
|
|
11983
|
-
* Queue name
|
|
11984
|
-
*/
|
|
11985
|
-
queueName?: string;
|
|
11986
|
-
});
|
|
12055
|
+
export type GetNextQueueSlotResponse = (QueueNextSlotResponse);
|
|
11987
12056
|
|
|
11988
12057
|
export type GetNextQueueSlotError = (unknown | {
|
|
11989
12058
|
error?: string;
|
|
@@ -15533,6 +15602,10 @@ export type SubmitWhatsAppNumberKycData = {
|
|
|
15533
15602
|
* Idempotency token for this submission attempt. A retry/double-submit with the same token returns the same number; omit and each call creates a new number.
|
|
15534
15603
|
*/
|
|
15535
15604
|
submissionId?: string;
|
|
15605
|
+
/**
|
|
15606
|
+
* Provision several same-country numbers from one submission (1-5). The single verification covers all of them; each number is billed only when it activates. Numbers that fail to order are skipped (best-effort).
|
|
15607
|
+
*/
|
|
15608
|
+
quantity?: number;
|
|
15536
15609
|
/**
|
|
15537
15610
|
* Reuse a prior approved verification for this country (skips document/field collection; places the order immediately).
|
|
15538
15611
|
*/
|
|
@@ -15585,11 +15658,23 @@ export type SubmitWhatsAppNumberKycData = {
|
|
|
15585
15658
|
|
|
15586
15659
|
export type SubmitWhatsAppNumberKycResponse = ({
|
|
15587
15660
|
status?: 'kyc_submitted' | 'kyc_reused' | 'kyc_already_submitted';
|
|
15661
|
+
/**
|
|
15662
|
+
* The first/primary number, kept at the top level for backward compatibility. See `numbers` for the full set when `quantity` > 1.
|
|
15663
|
+
*/
|
|
15588
15664
|
phoneNumber?: {
|
|
15589
15665
|
id?: string;
|
|
15590
15666
|
status?: string;
|
|
15591
15667
|
country?: string;
|
|
15592
15668
|
};
|
|
15669
|
+
/**
|
|
15670
|
+
* Every number provisioned from this submission. Length equals the requested `quantity` on full success (fewer if some orders failed; best-effort). The first element mirrors `phoneNumber`.
|
|
15671
|
+
*/
|
|
15672
|
+
numbers?: Array<{
|
|
15673
|
+
id?: string;
|
|
15674
|
+
status?: string;
|
|
15675
|
+
phoneNumber?: string;
|
|
15676
|
+
country?: string;
|
|
15677
|
+
}>;
|
|
15593
15678
|
});
|
|
15594
15679
|
|
|
15595
15680
|
export type SubmitWhatsAppNumberKycError = (unknown | {
|