@getlatedev/node 0.2.1200 → 0.2.1201
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 +13 -5
- package/dist/index.d.ts +13 -5
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/types.gen.ts +13 -5
package/dist/index.d.mts
CHANGED
|
@@ -29643,23 +29643,23 @@ type SendInboxMessageResponse = ({
|
|
|
29643
29643
|
type SendInboxMessageError = ({
|
|
29644
29644
|
error?: string;
|
|
29645
29645
|
/**
|
|
29646
|
-
* Present on Meta pass-through rejections: platform_error when
|
|
29646
|
+
* Present on Meta and TikTok pass-through rejections: platform_error when the platform rejected the send (see platform/platformError below), invalid_request_error for validation failures.
|
|
29647
29647
|
*/
|
|
29648
29648
|
type?: 'platform_error' | 'invalid_request_error';
|
|
29649
29649
|
/**
|
|
29650
|
-
* Stable machine-readable reason. PLATFORM_LIMITATION covers a capability the platform does not offer (e.g. Bluesky and Reddit DMs reject media); MISSING_PARTICIPANT means the stored conversation has no recipient to send to; DIRECT_SEND_NOT_ELIGIBLE and DIRECT_SEND_BLOCKED mean the WhatsApp Business Account needs Meta to grant or restore Direct Send access; DIRECT_SEND_LIMITED is temporary, Meta lifts it on its own; platform_api_error means
|
|
29650
|
+
* Stable machine-readable reason. PLATFORM_LIMITATION covers a capability the platform does not offer (e.g. Bluesky and Reddit DMs reject media); MISSING_PARTICIPANT means the stored conversation has no recipient to send to; DIRECT_SEND_NOT_ELIGIBLE and DIRECT_SEND_BLOCKED mean the WhatsApp Business Account needs Meta to grant or restore Direct Send access; DIRECT_SEND_LIMITED is temporary, Meta lifts it on its own; platform_api_error means the platform itself rejected the send (see platformError).
|
|
29651
29651
|
*/
|
|
29652
29652
|
code?: 'PLATFORM_LIMITATION' | 'MISSING_PARTICIPANT' | 'INVALID_TEMPLATE_HEADER' | 'DIRECT_SEND_NOT_ELIGIBLE' | 'DIRECT_SEND_LIMITED' | 'DIRECT_SEND_BLOCKED' | 'platform_api_error';
|
|
29653
29653
|
/**
|
|
29654
|
-
* Present alongside code platform_api_error. The platform that rejected the send (e.g. instagram, facebook, whatsapp).
|
|
29654
|
+
* Present alongside code platform_api_error. The platform that rejected the send (e.g. instagram, facebook, whatsapp, tiktok).
|
|
29655
29655
|
*/
|
|
29656
29656
|
platform?: string;
|
|
29657
29657
|
/**
|
|
29658
|
-
* Instagram, Facebook, or
|
|
29658
|
+
* Instagram, Facebook, WhatsApp, or TikTok. The platform's diagnostic fields for the rejected send or template lookup. WhatsApp lookup errors retain only code, message, and error_data.details. On TikTok only code, message, and request_id are set. Absent when the failure did not come from the platform.
|
|
29659
29659
|
*/
|
|
29660
29660
|
platformError?: {
|
|
29661
29661
|
/**
|
|
29662
|
-
* Meta error code
|
|
29662
|
+
* Meta or TikTok error code
|
|
29663
29663
|
*/
|
|
29664
29664
|
code?: number;
|
|
29665
29665
|
/**
|
|
@@ -29674,6 +29674,14 @@ type SendInboxMessageError = ({
|
|
|
29674
29674
|
* Meta error type (e.g. OAuthException)
|
|
29675
29675
|
*/
|
|
29676
29676
|
type?: string;
|
|
29677
|
+
/**
|
|
29678
|
+
* TikTok error message
|
|
29679
|
+
*/
|
|
29680
|
+
message?: string;
|
|
29681
|
+
/**
|
|
29682
|
+
* TikTok request_id, quote this in a TikTok support ticket
|
|
29683
|
+
*/
|
|
29684
|
+
request_id?: string;
|
|
29677
29685
|
};
|
|
29678
29686
|
} | ErrorResponse | (ErrorResponse | WhatsAppTemplateLookupError) | unknown | WhatsAppTemplateLookupError);
|
|
29679
29687
|
type GetWhatsAppMediaData = {
|
package/dist/index.d.ts
CHANGED
|
@@ -29643,23 +29643,23 @@ type SendInboxMessageResponse = ({
|
|
|
29643
29643
|
type SendInboxMessageError = ({
|
|
29644
29644
|
error?: string;
|
|
29645
29645
|
/**
|
|
29646
|
-
* Present on Meta pass-through rejections: platform_error when
|
|
29646
|
+
* Present on Meta and TikTok pass-through rejections: platform_error when the platform rejected the send (see platform/platformError below), invalid_request_error for validation failures.
|
|
29647
29647
|
*/
|
|
29648
29648
|
type?: 'platform_error' | 'invalid_request_error';
|
|
29649
29649
|
/**
|
|
29650
|
-
* Stable machine-readable reason. PLATFORM_LIMITATION covers a capability the platform does not offer (e.g. Bluesky and Reddit DMs reject media); MISSING_PARTICIPANT means the stored conversation has no recipient to send to; DIRECT_SEND_NOT_ELIGIBLE and DIRECT_SEND_BLOCKED mean the WhatsApp Business Account needs Meta to grant or restore Direct Send access; DIRECT_SEND_LIMITED is temporary, Meta lifts it on its own; platform_api_error means
|
|
29650
|
+
* Stable machine-readable reason. PLATFORM_LIMITATION covers a capability the platform does not offer (e.g. Bluesky and Reddit DMs reject media); MISSING_PARTICIPANT means the stored conversation has no recipient to send to; DIRECT_SEND_NOT_ELIGIBLE and DIRECT_SEND_BLOCKED mean the WhatsApp Business Account needs Meta to grant or restore Direct Send access; DIRECT_SEND_LIMITED is temporary, Meta lifts it on its own; platform_api_error means the platform itself rejected the send (see platformError).
|
|
29651
29651
|
*/
|
|
29652
29652
|
code?: 'PLATFORM_LIMITATION' | 'MISSING_PARTICIPANT' | 'INVALID_TEMPLATE_HEADER' | 'DIRECT_SEND_NOT_ELIGIBLE' | 'DIRECT_SEND_LIMITED' | 'DIRECT_SEND_BLOCKED' | 'platform_api_error';
|
|
29653
29653
|
/**
|
|
29654
|
-
* Present alongside code platform_api_error. The platform that rejected the send (e.g. instagram, facebook, whatsapp).
|
|
29654
|
+
* Present alongside code platform_api_error. The platform that rejected the send (e.g. instagram, facebook, whatsapp, tiktok).
|
|
29655
29655
|
*/
|
|
29656
29656
|
platform?: string;
|
|
29657
29657
|
/**
|
|
29658
|
-
* Instagram, Facebook, or
|
|
29658
|
+
* Instagram, Facebook, WhatsApp, or TikTok. The platform's diagnostic fields for the rejected send or template lookup. WhatsApp lookup errors retain only code, message, and error_data.details. On TikTok only code, message, and request_id are set. Absent when the failure did not come from the platform.
|
|
29659
29659
|
*/
|
|
29660
29660
|
platformError?: {
|
|
29661
29661
|
/**
|
|
29662
|
-
* Meta error code
|
|
29662
|
+
* Meta or TikTok error code
|
|
29663
29663
|
*/
|
|
29664
29664
|
code?: number;
|
|
29665
29665
|
/**
|
|
@@ -29674,6 +29674,14 @@ type SendInboxMessageError = ({
|
|
|
29674
29674
|
* Meta error type (e.g. OAuthException)
|
|
29675
29675
|
*/
|
|
29676
29676
|
type?: string;
|
|
29677
|
+
/**
|
|
29678
|
+
* TikTok error message
|
|
29679
|
+
*/
|
|
29680
|
+
message?: string;
|
|
29681
|
+
/**
|
|
29682
|
+
* TikTok request_id, quote this in a TikTok support ticket
|
|
29683
|
+
*/
|
|
29684
|
+
request_id?: string;
|
|
29677
29685
|
};
|
|
29678
29686
|
} | ErrorResponse | (ErrorResponse | WhatsAppTemplateLookupError) | unknown | WhatsAppTemplateLookupError);
|
|
29679
29687
|
type GetWhatsAppMediaData = {
|
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.1201",
|
|
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.1201",
|
|
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
|
@@ -29033,23 +29033,23 @@ export type SendInboxMessageResponse = ({
|
|
|
29033
29033
|
export type SendInboxMessageError = ({
|
|
29034
29034
|
error?: string;
|
|
29035
29035
|
/**
|
|
29036
|
-
* Present on Meta pass-through rejections: platform_error when
|
|
29036
|
+
* Present on Meta and TikTok pass-through rejections: platform_error when the platform rejected the send (see platform/platformError below), invalid_request_error for validation failures.
|
|
29037
29037
|
*/
|
|
29038
29038
|
type?: 'platform_error' | 'invalid_request_error';
|
|
29039
29039
|
/**
|
|
29040
|
-
* Stable machine-readable reason. PLATFORM_LIMITATION covers a capability the platform does not offer (e.g. Bluesky and Reddit DMs reject media); MISSING_PARTICIPANT means the stored conversation has no recipient to send to; DIRECT_SEND_NOT_ELIGIBLE and DIRECT_SEND_BLOCKED mean the WhatsApp Business Account needs Meta to grant or restore Direct Send access; DIRECT_SEND_LIMITED is temporary, Meta lifts it on its own; platform_api_error means
|
|
29040
|
+
* Stable machine-readable reason. PLATFORM_LIMITATION covers a capability the platform does not offer (e.g. Bluesky and Reddit DMs reject media); MISSING_PARTICIPANT means the stored conversation has no recipient to send to; DIRECT_SEND_NOT_ELIGIBLE and DIRECT_SEND_BLOCKED mean the WhatsApp Business Account needs Meta to grant or restore Direct Send access; DIRECT_SEND_LIMITED is temporary, Meta lifts it on its own; platform_api_error means the platform itself rejected the send (see platformError).
|
|
29041
29041
|
*/
|
|
29042
29042
|
code?: 'PLATFORM_LIMITATION' | 'MISSING_PARTICIPANT' | 'INVALID_TEMPLATE_HEADER' | 'DIRECT_SEND_NOT_ELIGIBLE' | 'DIRECT_SEND_LIMITED' | 'DIRECT_SEND_BLOCKED' | 'platform_api_error';
|
|
29043
29043
|
/**
|
|
29044
|
-
* Present alongside code platform_api_error. The platform that rejected the send (e.g. instagram, facebook, whatsapp).
|
|
29044
|
+
* Present alongside code platform_api_error. The platform that rejected the send (e.g. instagram, facebook, whatsapp, tiktok).
|
|
29045
29045
|
*/
|
|
29046
29046
|
platform?: string;
|
|
29047
29047
|
/**
|
|
29048
|
-
* Instagram, Facebook, or
|
|
29048
|
+
* Instagram, Facebook, WhatsApp, or TikTok. The platform's diagnostic fields for the rejected send or template lookup. WhatsApp lookup errors retain only code, message, and error_data.details. On TikTok only code, message, and request_id are set. Absent when the failure did not come from the platform.
|
|
29049
29049
|
*/
|
|
29050
29050
|
platformError?: {
|
|
29051
29051
|
/**
|
|
29052
|
-
* Meta error code
|
|
29052
|
+
* Meta or TikTok error code
|
|
29053
29053
|
*/
|
|
29054
29054
|
code?: number;
|
|
29055
29055
|
/**
|
|
@@ -29064,6 +29064,14 @@ export type SendInboxMessageError = ({
|
|
|
29064
29064
|
* Meta error type (e.g. OAuthException)
|
|
29065
29065
|
*/
|
|
29066
29066
|
type?: string;
|
|
29067
|
+
/**
|
|
29068
|
+
* TikTok error message
|
|
29069
|
+
*/
|
|
29070
|
+
message?: string;
|
|
29071
|
+
/**
|
|
29072
|
+
* TikTok request_id, quote this in a TikTok support ticket
|
|
29073
|
+
*/
|
|
29074
|
+
request_id?: string;
|
|
29067
29075
|
};
|
|
29068
29076
|
} | ErrorResponse | (ErrorResponse | WhatsAppTemplateLookupError) | unknown | WhatsAppTemplateLookupError);
|
|
29069
29077
|
|