@getlatedev/node 0.2.1241 → 0.2.1242
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 +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +14 -14
- package/src/generated/types.gen.ts +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -11410,7 +11410,7 @@ type PlatformTarget = {
|
|
|
11410
11410
|
[key: string]: unknown;
|
|
11411
11411
|
};
|
|
11412
11412
|
/**
|
|
11413
|
-
* Platform-specific status: pending, processing, uploading, published, failed, cancelled (removed from the platform via
|
|
11413
|
+
* Platform-specific status: pending, processing, uploading, published, failed, cancelled (removed from the platform via POST /v1/posts/{postId}/unpublish)
|
|
11414
11414
|
*/
|
|
11415
11415
|
status?: string;
|
|
11416
11416
|
/**
|
|
@@ -11531,7 +11531,7 @@ type Post = {
|
|
|
11531
11531
|
scheduledFor?: string;
|
|
11532
11532
|
timezone?: string;
|
|
11533
11533
|
/**
|
|
11534
|
-
* `cancelled` is set by
|
|
11534
|
+
* `cancelled` is set by POST /v1/posts/{postId}/unpublish once every platform entry has been removed from its platform (a post with published entries left becomes `partial`); cancelled posts can be edited and rescheduled like drafts.
|
|
11535
11535
|
*/
|
|
11536
11536
|
status?: 'draft' | 'scheduled' | 'publishing' | 'published' | 'partial' | 'failed' | 'cancelled';
|
|
11537
11537
|
/**
|
|
@@ -34124,7 +34124,7 @@ type UpdateBrandedCallingIdentityData = {
|
|
|
34124
34124
|
};
|
|
34125
34125
|
references?: BrandedCallingReferences;
|
|
34126
34126
|
/**
|
|
34127
|
-
* One entry per point id of the open reviewRequest. A text point takes text; a link point takes url; file and link_or_file points take url set to the URL of a file you uploaded first (POST /v1/media/
|
|
34127
|
+
* One entry per point id of the open reviewRequest. A text point takes text; a link point takes url; file and link_or_file points take url set to the URL of a file you uploaded first (POST /v1/media/presign). A point id that is not on the open request is a 422.
|
|
34128
34128
|
*/
|
|
34129
34129
|
reviewAnswers?: {
|
|
34130
34130
|
[key: string]: {
|
package/dist/index.d.ts
CHANGED
|
@@ -11410,7 +11410,7 @@ type PlatformTarget = {
|
|
|
11410
11410
|
[key: string]: unknown;
|
|
11411
11411
|
};
|
|
11412
11412
|
/**
|
|
11413
|
-
* Platform-specific status: pending, processing, uploading, published, failed, cancelled (removed from the platform via
|
|
11413
|
+
* Platform-specific status: pending, processing, uploading, published, failed, cancelled (removed from the platform via POST /v1/posts/{postId}/unpublish)
|
|
11414
11414
|
*/
|
|
11415
11415
|
status?: string;
|
|
11416
11416
|
/**
|
|
@@ -11531,7 +11531,7 @@ type Post = {
|
|
|
11531
11531
|
scheduledFor?: string;
|
|
11532
11532
|
timezone?: string;
|
|
11533
11533
|
/**
|
|
11534
|
-
* `cancelled` is set by
|
|
11534
|
+
* `cancelled` is set by POST /v1/posts/{postId}/unpublish once every platform entry has been removed from its platform (a post with published entries left becomes `partial`); cancelled posts can be edited and rescheduled like drafts.
|
|
11535
11535
|
*/
|
|
11536
11536
|
status?: 'draft' | 'scheduled' | 'publishing' | 'published' | 'partial' | 'failed' | 'cancelled';
|
|
11537
11537
|
/**
|
|
@@ -34124,7 +34124,7 @@ type UpdateBrandedCallingIdentityData = {
|
|
|
34124
34124
|
};
|
|
34125
34125
|
references?: BrandedCallingReferences;
|
|
34126
34126
|
/**
|
|
34127
|
-
* One entry per point id of the open reviewRequest. A text point takes text; a link point takes url; file and link_or_file points take url set to the URL of a file you uploaded first (POST /v1/media/
|
|
34127
|
+
* One entry per point id of the open reviewRequest. A text point takes text; a link point takes url; file and link_or_file points take url set to the URL of a file you uploaded first (POST /v1/media/presign). A point id that is not on the open request is a 422.
|
|
34128
34128
|
*/
|
|
34129
34129
|
reviewAnswers?: {
|
|
34130
34130
|
[key: string]: {
|
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.1242",
|
|
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.1242",
|
|
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
|
@@ -3285,7 +3285,7 @@ export const updateRedditSubreddits = <ThrowOnError extends boolean = false>(opt
|
|
|
3285
3285
|
* Returns a subreddit's posting rules plus Reddit's site-wide rules, so you can check
|
|
3286
3286
|
* them before submitting and avoid a removal.
|
|
3287
3287
|
*
|
|
3288
|
-
* Use this alongside `
|
|
3288
|
+
* Use this alongside `GET /v1/tools/validate/subreddit`, which only confirms that a
|
|
3289
3289
|
* subreddit exists and reports its basic posting settings.
|
|
3290
3290
|
*
|
|
3291
3291
|
*/
|
|
@@ -8569,7 +8569,7 @@ export const deleteWhatsAppSandboxSession = <ThrowOnError extends boolean = fals
|
|
|
8569
8569
|
* List active WhatsApp group chats for a business phone number.
|
|
8570
8570
|
* These are actual WhatsApp group conversations on the platform.
|
|
8571
8571
|
*
|
|
8572
|
-
* Not available on [Coexistence](/platforms/whatsapp/
|
|
8572
|
+
* Not available on [Coexistence](/platforms/whatsapp/connect#whatsapp-business-app-coexistence) numbers. Requires a Cloud API-only number.
|
|
8573
8573
|
*
|
|
8574
8574
|
*/
|
|
8575
8575
|
export const listWhatsAppGroupChats = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<ListWhatsAppGroupChatsData, ThrowOnError>) => {
|
|
@@ -8583,7 +8583,7 @@ export const listWhatsAppGroupChats = <ThrowOnError extends boolean = false>(opt
|
|
|
8583
8583
|
* Create group
|
|
8584
8584
|
* Create a new WhatsApp group chat. Returns the group ID and optionally an invite link.
|
|
8585
8585
|
*
|
|
8586
|
-
* Not available on [Coexistence](/platforms/whatsapp/
|
|
8586
|
+
* Not available on [Coexistence](/platforms/whatsapp/connect#whatsapp-business-app-coexistence) numbers. Requires a Cloud API-only number.
|
|
8587
8587
|
*
|
|
8588
8588
|
*/
|
|
8589
8589
|
export const createWhatsAppGroupChat = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<CreateWhatsAppGroupChatData, ThrowOnError>) => {
|
|
@@ -8598,7 +8598,7 @@ export const createWhatsAppGroupChat = <ThrowOnError extends boolean = false>(op
|
|
|
8598
8598
|
* Retrieve metadata about a WhatsApp group including subject, description,
|
|
8599
8599
|
* participants, and settings.
|
|
8600
8600
|
*
|
|
8601
|
-
* Not available on [Coexistence](/platforms/whatsapp/
|
|
8601
|
+
* Not available on [Coexistence](/platforms/whatsapp/connect#whatsapp-business-app-coexistence) numbers. Requires a Cloud API-only number.
|
|
8602
8602
|
*
|
|
8603
8603
|
*/
|
|
8604
8604
|
export const getWhatsAppGroupChat = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetWhatsAppGroupChatData, ThrowOnError>) => {
|
|
@@ -8612,7 +8612,7 @@ export const getWhatsAppGroupChat = <ThrowOnError extends boolean = false>(optio
|
|
|
8612
8612
|
* Update group settings
|
|
8613
8613
|
* Update the subject, description, or join approval mode of a WhatsApp group.
|
|
8614
8614
|
*
|
|
8615
|
-
* Not available on [Coexistence](/platforms/whatsapp/
|
|
8615
|
+
* Not available on [Coexistence](/platforms/whatsapp/connect#whatsapp-business-app-coexistence) numbers. Requires a Cloud API-only number.
|
|
8616
8616
|
*
|
|
8617
8617
|
*/
|
|
8618
8618
|
export const updateWhatsAppGroupChat = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<UpdateWhatsAppGroupChatData, ThrowOnError>) => {
|
|
@@ -8626,7 +8626,7 @@ export const updateWhatsAppGroupChat = <ThrowOnError extends boolean = false>(op
|
|
|
8626
8626
|
* Delete group
|
|
8627
8627
|
* Delete a WhatsApp group and remove all participants.
|
|
8628
8628
|
*
|
|
8629
|
-
* Not available on [Coexistence](/platforms/whatsapp/
|
|
8629
|
+
* Not available on [Coexistence](/platforms/whatsapp/connect#whatsapp-business-app-coexistence) numbers. Requires a Cloud API-only number.
|
|
8630
8630
|
*
|
|
8631
8631
|
*/
|
|
8632
8632
|
export const deleteWhatsAppGroupChat = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<DeleteWhatsAppGroupChatData, ThrowOnError>) => {
|
|
@@ -8640,7 +8640,7 @@ export const deleteWhatsAppGroupChat = <ThrowOnError extends boolean = false>(op
|
|
|
8640
8640
|
* Add participants
|
|
8641
8641
|
* Add participants to a WhatsApp group. Maximum 8 participants per request. A group holds at most 8 participants in total (a Meta limit), so later requests cannot grow a group past 8. Meta documents groups as invite-only, so people normally join through the group's invite link.
|
|
8642
8642
|
*
|
|
8643
|
-
* Not available on [Coexistence](/platforms/whatsapp/
|
|
8643
|
+
* Not available on [Coexistence](/platforms/whatsapp/connect#whatsapp-business-app-coexistence) numbers. Requires a Cloud API-only number.
|
|
8644
8644
|
*
|
|
8645
8645
|
*/
|
|
8646
8646
|
export const addWhatsAppGroupParticipants = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<AddWhatsAppGroupParticipantsData, ThrowOnError>) => {
|
|
@@ -8654,7 +8654,7 @@ export const addWhatsAppGroupParticipants = <ThrowOnError extends boolean = fals
|
|
|
8654
8654
|
* Remove participants
|
|
8655
8655
|
* Remove participants from a WhatsApp group.
|
|
8656
8656
|
*
|
|
8657
|
-
* Not available on [Coexistence](/platforms/whatsapp/
|
|
8657
|
+
* Not available on [Coexistence](/platforms/whatsapp/connect#whatsapp-business-app-coexistence) numbers. Requires a Cloud API-only number.
|
|
8658
8658
|
*
|
|
8659
8659
|
*/
|
|
8660
8660
|
export const removeWhatsAppGroupParticipants = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<RemoveWhatsAppGroupParticipantsData, ThrowOnError>) => {
|
|
@@ -8668,7 +8668,7 @@ export const removeWhatsAppGroupParticipants = <ThrowOnError extends boolean = f
|
|
|
8668
8668
|
* Create invite link
|
|
8669
8669
|
* Create a new invite link for a WhatsApp group. The previous link is revoked.
|
|
8670
8670
|
*
|
|
8671
|
-
* Not available on [Coexistence](/platforms/whatsapp/
|
|
8671
|
+
* Not available on [Coexistence](/platforms/whatsapp/connect#whatsapp-business-app-coexistence) numbers. Requires a Cloud API-only number.
|
|
8672
8672
|
*
|
|
8673
8673
|
*/
|
|
8674
8674
|
export const createWhatsAppGroupInviteLink = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<CreateWhatsAppGroupInviteLinkData, ThrowOnError>) => {
|
|
@@ -8682,7 +8682,7 @@ export const createWhatsAppGroupInviteLink = <ThrowOnError extends boolean = fal
|
|
|
8682
8682
|
* List join requests
|
|
8683
8683
|
* List pending join requests for a WhatsApp group (only for groups with approval_required mode).
|
|
8684
8684
|
*
|
|
8685
|
-
* Not available on [Coexistence](/platforms/whatsapp/
|
|
8685
|
+
* Not available on [Coexistence](/platforms/whatsapp/connect#whatsapp-business-app-coexistence) numbers. Requires a Cloud API-only number.
|
|
8686
8686
|
*
|
|
8687
8687
|
*/
|
|
8688
8688
|
export const listWhatsAppGroupJoinRequests = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<ListWhatsAppGroupJoinRequestsData, ThrowOnError>) => {
|
|
@@ -8696,7 +8696,7 @@ export const listWhatsAppGroupJoinRequests = <ThrowOnError extends boolean = fal
|
|
|
8696
8696
|
* Approve join requests
|
|
8697
8697
|
* Approve pending join requests for a WhatsApp group.
|
|
8698
8698
|
*
|
|
8699
|
-
* Not available on [Coexistence](/platforms/whatsapp/
|
|
8699
|
+
* Not available on [Coexistence](/platforms/whatsapp/connect#whatsapp-business-app-coexistence) numbers. Requires a Cloud API-only number.
|
|
8700
8700
|
*
|
|
8701
8701
|
*/
|
|
8702
8702
|
export const approveWhatsAppGroupJoinRequests = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<ApproveWhatsAppGroupJoinRequestsData, ThrowOnError>) => {
|
|
@@ -8710,7 +8710,7 @@ export const approveWhatsAppGroupJoinRequests = <ThrowOnError extends boolean =
|
|
|
8710
8710
|
* Reject join requests
|
|
8711
8711
|
* Reject pending join requests for a WhatsApp group.
|
|
8712
8712
|
*
|
|
8713
|
-
* Not available on [Coexistence](/platforms/whatsapp/
|
|
8713
|
+
* Not available on [Coexistence](/platforms/whatsapp/connect#whatsapp-business-app-coexistence) numbers. Requires a Cloud API-only number.
|
|
8714
8714
|
*
|
|
8715
8715
|
*/
|
|
8716
8716
|
export const rejectWhatsAppGroupJoinRequests = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<RejectWhatsAppGroupJoinRequestsData, ThrowOnError>) => {
|
|
@@ -10641,8 +10641,8 @@ export const getAdSetDetails = <ThrowOnError extends boolean = false>(options: O
|
|
|
10641
10641
|
* incompatible combinations (e.g. a billingEvent the optimization goal
|
|
10642
10642
|
* doesn't allow) surface as 400s from Meta.
|
|
10643
10643
|
*
|
|
10644
|
-
* When updating `budget` on an
|
|
10645
|
-
* CBO, the response is 409 with code
|
|
10644
|
+
* When updating `budget` on an ad set whose campaign holds the budget
|
|
10645
|
+
* (CBO), the response is 409 with code `invalid_field_value`. Send it to
|
|
10646
10646
|
* PUT /v1/ads/campaigns/{campaignId} instead.
|
|
10647
10647
|
*
|
|
10648
10648
|
* Reddit Ads: `budget` changes the ad group's amount; an ad group that spends its
|
|
@@ -9795,7 +9795,7 @@ export type PlatformTarget = {
|
|
|
9795
9795
|
[key: string]: unknown;
|
|
9796
9796
|
};
|
|
9797
9797
|
/**
|
|
9798
|
-
* Platform-specific status: pending, processing, uploading, published, failed, cancelled (removed from the platform via
|
|
9798
|
+
* Platform-specific status: pending, processing, uploading, published, failed, cancelled (removed from the platform via POST /v1/posts/{postId}/unpublish)
|
|
9799
9799
|
*/
|
|
9800
9800
|
status?: string;
|
|
9801
9801
|
/**
|
|
@@ -9922,7 +9922,7 @@ export type Post = {
|
|
|
9922
9922
|
scheduledFor?: string;
|
|
9923
9923
|
timezone?: string;
|
|
9924
9924
|
/**
|
|
9925
|
-
* `cancelled` is set by
|
|
9925
|
+
* `cancelled` is set by POST /v1/posts/{postId}/unpublish once every platform entry has been removed from its platform (a post with published entries left becomes `partial`); cancelled posts can be edited and rescheduled like drafts.
|
|
9926
9926
|
*/
|
|
9927
9927
|
status?: 'draft' | 'scheduled' | 'publishing' | 'published' | 'partial' | 'failed' | 'cancelled';
|
|
9928
9928
|
/**
|
|
@@ -33943,7 +33943,7 @@ export type UpdateBrandedCallingIdentityData = {
|
|
|
33943
33943
|
};
|
|
33944
33944
|
references?: BrandedCallingReferences;
|
|
33945
33945
|
/**
|
|
33946
|
-
* One entry per point id of the open reviewRequest. A text point takes text; a link point takes url; file and link_or_file points take url set to the URL of a file you uploaded first (POST /v1/media/
|
|
33946
|
+
* One entry per point id of the open reviewRequest. A text point takes text; a link point takes url; file and link_or_file points take url set to the URL of a file you uploaded first (POST /v1/media/presign). A point id that is not on the open request is a 422.
|
|
33947
33947
|
*/
|
|
33948
33948
|
reviewAnswers?: {
|
|
33949
33949
|
[key: string]: {
|