@getlatedev/node 0.2.229 → 0.2.231
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 +41 -0
- package/dist/index.d.ts +41 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +11 -11
- package/src/generated/types.gen.ts +41 -0
package/dist/index.d.mts
CHANGED
|
@@ -3303,6 +3303,22 @@ type RedditPlatformData = {
|
|
|
3303
3303
|
* Flair ID for the post. Required by some subreddits. Use GET /v1/accounts/{id}/reddit-flairs?subreddit=name to list flairs.
|
|
3304
3304
|
*/
|
|
3305
3305
|
flairId?: string;
|
|
3306
|
+
/**
|
|
3307
|
+
* Custom flair text, for subreddits that allow free-text flair. Ignored when flairId is provided (flairId wins).
|
|
3308
|
+
*/
|
|
3309
|
+
flairText?: string;
|
|
3310
|
+
/**
|
|
3311
|
+
* Mark the post as NSFW (Not Safe For Work / over 18).
|
|
3312
|
+
*/
|
|
3313
|
+
nsfw?: boolean;
|
|
3314
|
+
/**
|
|
3315
|
+
* Mark the post as a spoiler. The subreddit must have spoiler tagging enabled for this to take effect.
|
|
3316
|
+
*/
|
|
3317
|
+
spoiler?: boolean;
|
|
3318
|
+
/**
|
|
3319
|
+
* Whether to receive inbox replies for comments on this post. Set to false to opt out.
|
|
3320
|
+
*/
|
|
3321
|
+
sendreplies?: boolean;
|
|
3306
3322
|
/**
|
|
3307
3323
|
* Controls Reddit's native video upload flow. When true (default for video mediaItems), the video is uploaded to Reddit's CDN and submitted with kind=video so it renders as an embedded Reddit video player. Reddit transcodes server-side (1080p/30fps cap). Set to false to fall back to a legacy link post. If the subreddit blocks video posts, the upload falls back to a link post automatically.
|
|
3308
3324
|
*
|
|
@@ -3905,6 +3921,31 @@ type TwitterPlatformData = {
|
|
|
3905
3921
|
*/
|
|
3906
3922
|
longVideo?: boolean;
|
|
3907
3923
|
geoRestriction?: GeoRestriction;
|
|
3924
|
+
/**
|
|
3925
|
+
* When true, the post is labeled by X as a paid partnership / paid promotion. For threads, applies to the root tweet only. Field availability may depend on your X API access tier.
|
|
3926
|
+
*/
|
|
3927
|
+
paidPartnership?: boolean;
|
|
3928
|
+
/**
|
|
3929
|
+
* When true, the post is labeled by X as containing AI-generated media. Per X, this label is for AI-generated media, not AI-written text. For threads, applies to the root tweet only.
|
|
3930
|
+
*/
|
|
3931
|
+
madeWithAi?: boolean;
|
|
3932
|
+
/**
|
|
3933
|
+
* Marks attached media with a sensitive-content warning. Applied to every media item in the post (requires media; ignored for text-only tweets). At least one flag must be true for the warning to be sent.
|
|
3934
|
+
*/
|
|
3935
|
+
sensitiveMedia?: {
|
|
3936
|
+
/**
|
|
3937
|
+
* Content contains adult material.
|
|
3938
|
+
*/
|
|
3939
|
+
adultContent?: boolean;
|
|
3940
|
+
/**
|
|
3941
|
+
* Content depicts graphic violence.
|
|
3942
|
+
*/
|
|
3943
|
+
graphicViolence?: boolean;
|
|
3944
|
+
/**
|
|
3945
|
+
* Content has other sensitive characteristics.
|
|
3946
|
+
*/
|
|
3947
|
+
other?: boolean;
|
|
3948
|
+
};
|
|
3908
3949
|
};
|
|
3909
3950
|
/**
|
|
3910
3951
|
* Controls who can reply to the tweet. "following" allows only people you follow, "mentionedUsers" allows only mentioned users, "subscribers" allows only subscribers, "verified" allows only verified users. Omit for default (everyone can reply). For threads, applies to the first tweet only. Cannot be combined with replyToTweetId.
|
package/dist/index.d.ts
CHANGED
|
@@ -3303,6 +3303,22 @@ type RedditPlatformData = {
|
|
|
3303
3303
|
* Flair ID for the post. Required by some subreddits. Use GET /v1/accounts/{id}/reddit-flairs?subreddit=name to list flairs.
|
|
3304
3304
|
*/
|
|
3305
3305
|
flairId?: string;
|
|
3306
|
+
/**
|
|
3307
|
+
* Custom flair text, for subreddits that allow free-text flair. Ignored when flairId is provided (flairId wins).
|
|
3308
|
+
*/
|
|
3309
|
+
flairText?: string;
|
|
3310
|
+
/**
|
|
3311
|
+
* Mark the post as NSFW (Not Safe For Work / over 18).
|
|
3312
|
+
*/
|
|
3313
|
+
nsfw?: boolean;
|
|
3314
|
+
/**
|
|
3315
|
+
* Mark the post as a spoiler. The subreddit must have spoiler tagging enabled for this to take effect.
|
|
3316
|
+
*/
|
|
3317
|
+
spoiler?: boolean;
|
|
3318
|
+
/**
|
|
3319
|
+
* Whether to receive inbox replies for comments on this post. Set to false to opt out.
|
|
3320
|
+
*/
|
|
3321
|
+
sendreplies?: boolean;
|
|
3306
3322
|
/**
|
|
3307
3323
|
* Controls Reddit's native video upload flow. When true (default for video mediaItems), the video is uploaded to Reddit's CDN and submitted with kind=video so it renders as an embedded Reddit video player. Reddit transcodes server-side (1080p/30fps cap). Set to false to fall back to a legacy link post. If the subreddit blocks video posts, the upload falls back to a link post automatically.
|
|
3308
3324
|
*
|
|
@@ -3905,6 +3921,31 @@ type TwitterPlatformData = {
|
|
|
3905
3921
|
*/
|
|
3906
3922
|
longVideo?: boolean;
|
|
3907
3923
|
geoRestriction?: GeoRestriction;
|
|
3924
|
+
/**
|
|
3925
|
+
* When true, the post is labeled by X as a paid partnership / paid promotion. For threads, applies to the root tweet only. Field availability may depend on your X API access tier.
|
|
3926
|
+
*/
|
|
3927
|
+
paidPartnership?: boolean;
|
|
3928
|
+
/**
|
|
3929
|
+
* When true, the post is labeled by X as containing AI-generated media. Per X, this label is for AI-generated media, not AI-written text. For threads, applies to the root tweet only.
|
|
3930
|
+
*/
|
|
3931
|
+
madeWithAi?: boolean;
|
|
3932
|
+
/**
|
|
3933
|
+
* Marks attached media with a sensitive-content warning. Applied to every media item in the post (requires media; ignored for text-only tweets). At least one flag must be true for the warning to be sent.
|
|
3934
|
+
*/
|
|
3935
|
+
sensitiveMedia?: {
|
|
3936
|
+
/**
|
|
3937
|
+
* Content contains adult material.
|
|
3938
|
+
*/
|
|
3939
|
+
adultContent?: boolean;
|
|
3940
|
+
/**
|
|
3941
|
+
* Content depicts graphic violence.
|
|
3942
|
+
*/
|
|
3943
|
+
graphicViolence?: boolean;
|
|
3944
|
+
/**
|
|
3945
|
+
* Content has other sensitive characteristics.
|
|
3946
|
+
*/
|
|
3947
|
+
other?: boolean;
|
|
3948
|
+
};
|
|
3908
3949
|
};
|
|
3909
3950
|
/**
|
|
3910
3951
|
* Controls who can reply to the tweet. "following" allows only people you follow, "mentionedUsers" allows only mentioned users, "subscribers" allows only subscribers, "verified" allows only verified users. Omit for default (everyone can reply). For threads, applies to the first tweet only. Cannot be combined with replyToTweetId.
|
package/dist/index.js
CHANGED
|
@@ -36,7 +36,7 @@ module.exports = __toCommonJS(index_exports);
|
|
|
36
36
|
// package.json
|
|
37
37
|
var package_default = {
|
|
38
38
|
name: "@getlatedev/node",
|
|
39
|
-
version: "0.2.
|
|
39
|
+
version: "0.2.231",
|
|
40
40
|
description: "The official Node.js library for the Zernio API",
|
|
41
41
|
main: "dist/index.js",
|
|
42
42
|
module: "dist/index.mjs",
|
package/dist/index.mjs
CHANGED
|
@@ -5,7 +5,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
5
5
|
// package.json
|
|
6
6
|
var package_default = {
|
|
7
7
|
name: "@getlatedev/node",
|
|
8
|
-
version: "0.2.
|
|
8
|
+
version: "0.2.231",
|
|
9
9
|
description: "The official Node.js library for the Zernio API",
|
|
10
10
|
main: "dist/index.js",
|
|
11
11
|
module: "dist/index.mjs",
|
package/package.json
CHANGED
package/src/generated/sdk.gen.ts
CHANGED
|
@@ -3483,7 +3483,7 @@ export const deleteWhatsAppSandboxSession = <ThrowOnError extends boolean = fals
|
|
|
3483
3483
|
* List active WhatsApp group chats for a business phone number.
|
|
3484
3484
|
* These are actual WhatsApp group conversations on the platform.
|
|
3485
3485
|
*
|
|
3486
|
-
* Not available on [Coexistence](/platforms/whatsapp#whatsapp-business-app-coexistence) numbers. Requires a Cloud API-only number.
|
|
3486
|
+
* Not available on [Coexistence](/platforms/whatsapp/connection#whatsapp-business-app-coexistence) numbers. Requires a Cloud API-only number.
|
|
3487
3487
|
*
|
|
3488
3488
|
*/
|
|
3489
3489
|
export const listWhatsAppGroupChats = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<ListWhatsAppGroupChatsData, ThrowOnError>) => {
|
|
@@ -3497,7 +3497,7 @@ export const listWhatsAppGroupChats = <ThrowOnError extends boolean = false>(opt
|
|
|
3497
3497
|
* Create group
|
|
3498
3498
|
* Create a new WhatsApp group chat. Returns the group ID and optionally an invite link.
|
|
3499
3499
|
*
|
|
3500
|
-
* Not available on [Coexistence](/platforms/whatsapp#whatsapp-business-app-coexistence) numbers. Requires a Cloud API-only number.
|
|
3500
|
+
* Not available on [Coexistence](/platforms/whatsapp/connection#whatsapp-business-app-coexistence) numbers. Requires a Cloud API-only number.
|
|
3501
3501
|
*
|
|
3502
3502
|
*/
|
|
3503
3503
|
export const createWhatsAppGroupChat = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<CreateWhatsAppGroupChatData, ThrowOnError>) => {
|
|
@@ -3512,7 +3512,7 @@ export const createWhatsAppGroupChat = <ThrowOnError extends boolean = false>(op
|
|
|
3512
3512
|
* Retrieve metadata about a WhatsApp group including subject, description,
|
|
3513
3513
|
* participants, and settings.
|
|
3514
3514
|
*
|
|
3515
|
-
* Not available on [Coexistence](/platforms/whatsapp#whatsapp-business-app-coexistence) numbers. Requires a Cloud API-only number.
|
|
3515
|
+
* Not available on [Coexistence](/platforms/whatsapp/connection#whatsapp-business-app-coexistence) numbers. Requires a Cloud API-only number.
|
|
3516
3516
|
*
|
|
3517
3517
|
*/
|
|
3518
3518
|
export const getWhatsAppGroupChat = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetWhatsAppGroupChatData, ThrowOnError>) => {
|
|
@@ -3526,7 +3526,7 @@ export const getWhatsAppGroupChat = <ThrowOnError extends boolean = false>(optio
|
|
|
3526
3526
|
* Update group settings
|
|
3527
3527
|
* Update the subject, description, or join approval mode of a WhatsApp group.
|
|
3528
3528
|
*
|
|
3529
|
-
* Not available on [Coexistence](/platforms/whatsapp#whatsapp-business-app-coexistence) numbers. Requires a Cloud API-only number.
|
|
3529
|
+
* Not available on [Coexistence](/platforms/whatsapp/connection#whatsapp-business-app-coexistence) numbers. Requires a Cloud API-only number.
|
|
3530
3530
|
*
|
|
3531
3531
|
*/
|
|
3532
3532
|
export const updateWhatsAppGroupChat = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<UpdateWhatsAppGroupChatData, ThrowOnError>) => {
|
|
@@ -3540,7 +3540,7 @@ export const updateWhatsAppGroupChat = <ThrowOnError extends boolean = false>(op
|
|
|
3540
3540
|
* Delete group
|
|
3541
3541
|
* Delete a WhatsApp group and remove all participants.
|
|
3542
3542
|
*
|
|
3543
|
-
* Not available on [Coexistence](/platforms/whatsapp#whatsapp-business-app-coexistence) numbers. Requires a Cloud API-only number.
|
|
3543
|
+
* Not available on [Coexistence](/platforms/whatsapp/connection#whatsapp-business-app-coexistence) numbers. Requires a Cloud API-only number.
|
|
3544
3544
|
*
|
|
3545
3545
|
*/
|
|
3546
3546
|
export const deleteWhatsAppGroupChat = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<DeleteWhatsAppGroupChatData, ThrowOnError>) => {
|
|
@@ -3554,7 +3554,7 @@ export const deleteWhatsAppGroupChat = <ThrowOnError extends boolean = false>(op
|
|
|
3554
3554
|
* Add participants
|
|
3555
3555
|
* Add participants to a WhatsApp group. Maximum 8 participants per request.
|
|
3556
3556
|
*
|
|
3557
|
-
* Not available on [Coexistence](/platforms/whatsapp#whatsapp-business-app-coexistence) numbers. Requires a Cloud API-only number.
|
|
3557
|
+
* Not available on [Coexistence](/platforms/whatsapp/connection#whatsapp-business-app-coexistence) numbers. Requires a Cloud API-only number.
|
|
3558
3558
|
*
|
|
3559
3559
|
*/
|
|
3560
3560
|
export const addWhatsAppGroupParticipants = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<AddWhatsAppGroupParticipantsData, ThrowOnError>) => {
|
|
@@ -3568,7 +3568,7 @@ export const addWhatsAppGroupParticipants = <ThrowOnError extends boolean = fals
|
|
|
3568
3568
|
* Remove participants
|
|
3569
3569
|
* Remove participants from a WhatsApp group.
|
|
3570
3570
|
*
|
|
3571
|
-
* Not available on [Coexistence](/platforms/whatsapp#whatsapp-business-app-coexistence) numbers. Requires a Cloud API-only number.
|
|
3571
|
+
* Not available on [Coexistence](/platforms/whatsapp/connection#whatsapp-business-app-coexistence) numbers. Requires a Cloud API-only number.
|
|
3572
3572
|
*
|
|
3573
3573
|
*/
|
|
3574
3574
|
export const removeWhatsAppGroupParticipants = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<RemoveWhatsAppGroupParticipantsData, ThrowOnError>) => {
|
|
@@ -3582,7 +3582,7 @@ export const removeWhatsAppGroupParticipants = <ThrowOnError extends boolean = f
|
|
|
3582
3582
|
* Create invite link
|
|
3583
3583
|
* Create a new invite link for a WhatsApp group. The previous link is revoked.
|
|
3584
3584
|
*
|
|
3585
|
-
* Not available on [Coexistence](/platforms/whatsapp#whatsapp-business-app-coexistence) numbers. Requires a Cloud API-only number.
|
|
3585
|
+
* Not available on [Coexistence](/platforms/whatsapp/connection#whatsapp-business-app-coexistence) numbers. Requires a Cloud API-only number.
|
|
3586
3586
|
*
|
|
3587
3587
|
*/
|
|
3588
3588
|
export const createWhatsAppGroupInviteLink = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<CreateWhatsAppGroupInviteLinkData, ThrowOnError>) => {
|
|
@@ -3596,7 +3596,7 @@ export const createWhatsAppGroupInviteLink = <ThrowOnError extends boolean = fal
|
|
|
3596
3596
|
* List join requests
|
|
3597
3597
|
* List pending join requests for a WhatsApp group (only for groups with approval_required mode).
|
|
3598
3598
|
*
|
|
3599
|
-
* Not available on [Coexistence](/platforms/whatsapp#whatsapp-business-app-coexistence) numbers. Requires a Cloud API-only number.
|
|
3599
|
+
* Not available on [Coexistence](/platforms/whatsapp/connection#whatsapp-business-app-coexistence) numbers. Requires a Cloud API-only number.
|
|
3600
3600
|
*
|
|
3601
3601
|
*/
|
|
3602
3602
|
export const listWhatsAppGroupJoinRequests = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<ListWhatsAppGroupJoinRequestsData, ThrowOnError>) => {
|
|
@@ -3610,7 +3610,7 @@ export const listWhatsAppGroupJoinRequests = <ThrowOnError extends boolean = fal
|
|
|
3610
3610
|
* Approve join requests
|
|
3611
3611
|
* Approve pending join requests for a WhatsApp group.
|
|
3612
3612
|
*
|
|
3613
|
-
* Not available on [Coexistence](/platforms/whatsapp#whatsapp-business-app-coexistence) numbers. Requires a Cloud API-only number.
|
|
3613
|
+
* Not available on [Coexistence](/platforms/whatsapp/connection#whatsapp-business-app-coexistence) numbers. Requires a Cloud API-only number.
|
|
3614
3614
|
*
|
|
3615
3615
|
*/
|
|
3616
3616
|
export const approveWhatsAppGroupJoinRequests = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<ApproveWhatsAppGroupJoinRequestsData, ThrowOnError>) => {
|
|
@@ -3624,7 +3624,7 @@ export const approveWhatsAppGroupJoinRequests = <ThrowOnError extends boolean =
|
|
|
3624
3624
|
* Reject join requests
|
|
3625
3625
|
* Reject pending join requests for a WhatsApp group.
|
|
3626
3626
|
*
|
|
3627
|
-
* Not available on [Coexistence](/platforms/whatsapp#whatsapp-business-app-coexistence) numbers. Requires a Cloud API-only number.
|
|
3627
|
+
* Not available on [Coexistence](/platforms/whatsapp/connection#whatsapp-business-app-coexistence) numbers. Requires a Cloud API-only number.
|
|
3628
3628
|
*
|
|
3629
3629
|
*/
|
|
3630
3630
|
export const rejectWhatsAppGroupJoinRequests = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<RejectWhatsAppGroupJoinRequestsData, ThrowOnError>) => {
|
|
@@ -2674,6 +2674,22 @@ export type RedditPlatformData = {
|
|
|
2674
2674
|
* Flair ID for the post. Required by some subreddits. Use GET /v1/accounts/{id}/reddit-flairs?subreddit=name to list flairs.
|
|
2675
2675
|
*/
|
|
2676
2676
|
flairId?: string;
|
|
2677
|
+
/**
|
|
2678
|
+
* Custom flair text, for subreddits that allow free-text flair. Ignored when flairId is provided (flairId wins).
|
|
2679
|
+
*/
|
|
2680
|
+
flairText?: string;
|
|
2681
|
+
/**
|
|
2682
|
+
* Mark the post as NSFW (Not Safe For Work / over 18).
|
|
2683
|
+
*/
|
|
2684
|
+
nsfw?: boolean;
|
|
2685
|
+
/**
|
|
2686
|
+
* Mark the post as a spoiler. The subreddit must have spoiler tagging enabled for this to take effect.
|
|
2687
|
+
*/
|
|
2688
|
+
spoiler?: boolean;
|
|
2689
|
+
/**
|
|
2690
|
+
* Whether to receive inbox replies for comments on this post. Set to false to opt out.
|
|
2691
|
+
*/
|
|
2692
|
+
sendreplies?: boolean;
|
|
2677
2693
|
/**
|
|
2678
2694
|
* Controls Reddit's native video upload flow. When true (default for video mediaItems), the video is uploaded to Reddit's CDN and submitted with kind=video so it renders as an embedded Reddit video player. Reddit transcodes server-side (1080p/30fps cap). Set to false to fall back to a legacy link post. If the subreddit blocks video posts, the upload falls back to a link post automatically.
|
|
2679
2695
|
*
|
|
@@ -3297,6 +3313,31 @@ export type TwitterPlatformData = {
|
|
|
3297
3313
|
*/
|
|
3298
3314
|
longVideo?: boolean;
|
|
3299
3315
|
geoRestriction?: GeoRestriction;
|
|
3316
|
+
/**
|
|
3317
|
+
* When true, the post is labeled by X as a paid partnership / paid promotion. For threads, applies to the root tweet only. Field availability may depend on your X API access tier.
|
|
3318
|
+
*/
|
|
3319
|
+
paidPartnership?: boolean;
|
|
3320
|
+
/**
|
|
3321
|
+
* When true, the post is labeled by X as containing AI-generated media. Per X, this label is for AI-generated media, not AI-written text. For threads, applies to the root tweet only.
|
|
3322
|
+
*/
|
|
3323
|
+
madeWithAi?: boolean;
|
|
3324
|
+
/**
|
|
3325
|
+
* Marks attached media with a sensitive-content warning. Applied to every media item in the post (requires media; ignored for text-only tweets). At least one flag must be true for the warning to be sent.
|
|
3326
|
+
*/
|
|
3327
|
+
sensitiveMedia?: {
|
|
3328
|
+
/**
|
|
3329
|
+
* Content contains adult material.
|
|
3330
|
+
*/
|
|
3331
|
+
adultContent?: boolean;
|
|
3332
|
+
/**
|
|
3333
|
+
* Content depicts graphic violence.
|
|
3334
|
+
*/
|
|
3335
|
+
graphicViolence?: boolean;
|
|
3336
|
+
/**
|
|
3337
|
+
* Content has other sensitive characteristics.
|
|
3338
|
+
*/
|
|
3339
|
+
other?: boolean;
|
|
3340
|
+
};
|
|
3300
3341
|
};
|
|
3301
3342
|
|
|
3302
3343
|
/**
|