@getlatedev/node 0.2.1253 → 0.2.1255

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 CHANGED
@@ -7913,7 +7913,7 @@ type ErrorResponse = {
7913
7913
  * `POST /v1/ads/ctwa`) carries `stage`, `adAccountId` and `createdObjects`: where
7914
7914
  * it failed, on which ad account, and every object this request had already
7915
7915
  * created with what cleanup did to it. `left_behind` objects still exist on the
7916
- * ad account (Meta refused the delete, typically on a held account), so delete
7916
+ * ad account (Meta refused the delete, typically on a held account, or the delete hit a network error), so delete
7917
7917
  * them yourself or reuse them. `unconfirmedWrite` is set when Meta answered a
7918
7918
  * create with a 5xx or dropped the connection and Zernio could not confirm
7919
7919
  * whether the object exists: check that parent before creating it again.
@@ -7948,7 +7948,7 @@ type ErrorResponse = {
7948
7948
  */
7949
7949
  id?: string;
7950
7950
  /**
7951
- * `deleted`: Zernio deleted it. `left_behind`: Meta refused the delete, so it still exists. `kept`: deliberately not deleted (image hashes are shared by every upload of the same file).
7951
+ * `deleted`: Zernio deleted it. `left_behind`: cleanup could not delete it (Meta refused the delete, or the delete hit a network error), so it still exists. `kept`: deliberately not deleted (image hashes are shared by every upload of the same file).
7952
7952
  */
7953
7953
  cleanup?: 'deleted' | 'left_behind' | 'kept';
7954
7954
  }>;
@@ -30080,6 +30080,14 @@ type SendInboxMessageData = {
30080
30080
  * iMessage only (JSON body only). Overrides the delivery channel for this one send; the provider otherwise picks it automatically. The sender must carry the matching add-on (SMS, RCS or WhatsApp), or the send fails. Not a default to set on every request. Rejected with 400 on other platforms.
30081
30081
  */
30082
30082
  channel?: 'imessage' | 'sms' | 'rcs' | 'whatsapp';
30083
+ /**
30084
+ * Instagram only (JSON body only). Shares one of the account's own published posts in the DM, by its Instagram media id (the `id` returned by the media endpoints, not a permalink). Meta only accepts media the account owns. Sent on its own: cannot be combined with `message`, attachments, `quickReplies`, `buttons`, `template` or `sticker` (400). `messageTag: HUMAN_AGENT` is allowed. Rejected with 400 on other platforms. Works on accounts connected with Instagram Login and with Facebook Login.
30085
+ */
30086
+ sharedMediaId?: string;
30087
+ /**
30088
+ * Instagram only (JSON body only). Sends a sticker instead of text; `like_heart` is the heart sticker. Sent on its own: cannot be combined with `message`, attachments, `quickReplies`, `buttons`, `template` or `sharedMediaId` (400). `messageTag: HUMAN_AGENT` is allowed. Rejected with 400 on other platforms.
30089
+ */
30090
+ sticker?: 'like_heart';
30083
30091
  /**
30084
30092
  * Quick reply buttons. Mutually exclusive with buttons. Max 13 items.
30085
30093
  */
package/dist/index.d.ts CHANGED
@@ -7913,7 +7913,7 @@ type ErrorResponse = {
7913
7913
  * `POST /v1/ads/ctwa`) carries `stage`, `adAccountId` and `createdObjects`: where
7914
7914
  * it failed, on which ad account, and every object this request had already
7915
7915
  * created with what cleanup did to it. `left_behind` objects still exist on the
7916
- * ad account (Meta refused the delete, typically on a held account), so delete
7916
+ * ad account (Meta refused the delete, typically on a held account, or the delete hit a network error), so delete
7917
7917
  * them yourself or reuse them. `unconfirmedWrite` is set when Meta answered a
7918
7918
  * create with a 5xx or dropped the connection and Zernio could not confirm
7919
7919
  * whether the object exists: check that parent before creating it again.
@@ -7948,7 +7948,7 @@ type ErrorResponse = {
7948
7948
  */
7949
7949
  id?: string;
7950
7950
  /**
7951
- * `deleted`: Zernio deleted it. `left_behind`: Meta refused the delete, so it still exists. `kept`: deliberately not deleted (image hashes are shared by every upload of the same file).
7951
+ * `deleted`: Zernio deleted it. `left_behind`: cleanup could not delete it (Meta refused the delete, or the delete hit a network error), so it still exists. `kept`: deliberately not deleted (image hashes are shared by every upload of the same file).
7952
7952
  */
7953
7953
  cleanup?: 'deleted' | 'left_behind' | 'kept';
7954
7954
  }>;
@@ -30080,6 +30080,14 @@ type SendInboxMessageData = {
30080
30080
  * iMessage only (JSON body only). Overrides the delivery channel for this one send; the provider otherwise picks it automatically. The sender must carry the matching add-on (SMS, RCS or WhatsApp), or the send fails. Not a default to set on every request. Rejected with 400 on other platforms.
30081
30081
  */
30082
30082
  channel?: 'imessage' | 'sms' | 'rcs' | 'whatsapp';
30083
+ /**
30084
+ * Instagram only (JSON body only). Shares one of the account's own published posts in the DM, by its Instagram media id (the `id` returned by the media endpoints, not a permalink). Meta only accepts media the account owns. Sent on its own: cannot be combined with `message`, attachments, `quickReplies`, `buttons`, `template` or `sticker` (400). `messageTag: HUMAN_AGENT` is allowed. Rejected with 400 on other platforms. Works on accounts connected with Instagram Login and with Facebook Login.
30085
+ */
30086
+ sharedMediaId?: string;
30087
+ /**
30088
+ * Instagram only (JSON body only). Sends a sticker instead of text; `like_heart` is the heart sticker. Sent on its own: cannot be combined with `message`, attachments, `quickReplies`, `buttons`, `template` or `sharedMediaId` (400). `messageTag: HUMAN_AGENT` is allowed. Rejected with 400 on other platforms.
30089
+ */
30090
+ sticker?: 'like_heart';
30083
30091
  /**
30084
30092
  * Quick reply buttons. Mutually exclusive with buttons. Max 13 items.
30085
30093
  */
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.1253",
39
+ version: "0.2.1255",
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.1253",
8
+ version: "0.2.1255",
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getlatedev/node",
3
- "version": "0.2.1253",
3
+ "version": "0.2.1255",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -6103,7 +6103,7 @@ export type ErrorResponse = {
6103
6103
  * `POST /v1/ads/ctwa`) carries `stage`, `adAccountId` and `createdObjects`: where
6104
6104
  * it failed, on which ad account, and every object this request had already
6105
6105
  * created with what cleanup did to it. `left_behind` objects still exist on the
6106
- * ad account (Meta refused the delete, typically on a held account), so delete
6106
+ * ad account (Meta refused the delete, typically on a held account, or the delete hit a network error), so delete
6107
6107
  * them yourself or reuse them. `unconfirmedWrite` is set when Meta answered a
6108
6108
  * create with a 5xx or dropped the connection and Zernio could not confirm
6109
6109
  * whether the object exists: check that parent before creating it again.
@@ -6138,7 +6138,7 @@ export type ErrorResponse = {
6138
6138
  */
6139
6139
  id?: string;
6140
6140
  /**
6141
- * `deleted`: Zernio deleted it. `left_behind`: Meta refused the delete, so it still exists. `kept`: deliberately not deleted (image hashes are shared by every upload of the same file).
6141
+ * `deleted`: Zernio deleted it. `left_behind`: cleanup could not delete it (Meta refused the delete, or the delete hit a network error), so it still exists. `kept`: deliberately not deleted (image hashes are shared by every upload of the same file).
6142
6142
  */
6143
6143
  cleanup?: 'deleted' | 'left_behind' | 'kept';
6144
6144
  }>;
@@ -29499,6 +29499,14 @@ export type SendInboxMessageData = {
29499
29499
  * iMessage only (JSON body only). Overrides the delivery channel for this one send; the provider otherwise picks it automatically. The sender must carry the matching add-on (SMS, RCS or WhatsApp), or the send fails. Not a default to set on every request. Rejected with 400 on other platforms.
29500
29500
  */
29501
29501
  channel?: 'imessage' | 'sms' | 'rcs' | 'whatsapp';
29502
+ /**
29503
+ * Instagram only (JSON body only). Shares one of the account's own published posts in the DM, by its Instagram media id (the `id` returned by the media endpoints, not a permalink). Meta only accepts media the account owns. Sent on its own: cannot be combined with `message`, attachments, `quickReplies`, `buttons`, `template` or `sticker` (400). `messageTag: HUMAN_AGENT` is allowed. Rejected with 400 on other platforms. Works on accounts connected with Instagram Login and with Facebook Login.
29504
+ */
29505
+ sharedMediaId?: string;
29506
+ /**
29507
+ * Instagram only (JSON body only). Sends a sticker instead of text; `like_heart` is the heart sticker. Sent on its own: cannot be combined with `message`, attachments, `quickReplies`, `buttons`, `template` or `sharedMediaId` (400). `messageTag: HUMAN_AGENT` is allowed. Rejected with 400 on other platforms.
29508
+ */
29509
+ sticker?: 'like_heart';
29502
29510
  /**
29503
29511
  * Quick reply buttons. Mutually exclusive with buttons. Max 13 items.
29504
29512
  */