@getlatedev/node 0.2.611 → 0.2.612

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
@@ -18952,21 +18952,20 @@ type SendInboxMessageResponse = ({
18952
18952
  success?: boolean;
18953
18953
  data?: {
18954
18954
  /**
18955
- * ID of the sent message (not returned for Reddit)
18955
+ * Platform id of the sent message (not returned for Reddit). For WhatsApp this is the raw Meta wamid, the same id delivered as message.platformMessageId on webhooks and delivery-status updates, and the value to pass as replyTo to quote-reply.
18956
18956
  */
18957
18957
  messageId?: string;
18958
18958
  /**
18959
- * Twitter conversation ID
18959
+ * Zernio conversation id, echoed so the thread can be read back or replied to. It equals the id the list-conversations endpoint returns for Telegram, WhatsApp, SMS and Slack; for Facebook, Instagram, Bluesky and Reddit that endpoint returns the platform thread id instead, so do not correlate the two by equality. For X (Twitter), when the request addressed the conversation by its Twitter dm_conversation_id, that platform id is echoed back instead. Omitted when the send succeeded but the conversation could not be resolved to a stored record.
18960
18960
  */
18961
- conversationId?: (string) | null;
18962
- /**
18963
- * Bluesky sent timestamp
18964
- */
18965
- sentAt?: (string) | null;
18961
+ conversationId?: string;
18966
18962
  /**
18967
- * Success message (Reddit only)
18963
+ * Echo of the sent attachment with its resolved public URL, when one is available (Facebook, Instagram, Telegram, WhatsApp).
18968
18964
  */
18969
- message?: (string) | null;
18965
+ attachments?: Array<{
18966
+ type?: string;
18967
+ url?: string;
18968
+ }>;
18970
18969
  };
18971
18970
  });
18972
18971
  type SendInboxMessageError = ({
package/dist/index.d.ts CHANGED
@@ -18952,21 +18952,20 @@ type SendInboxMessageResponse = ({
18952
18952
  success?: boolean;
18953
18953
  data?: {
18954
18954
  /**
18955
- * ID of the sent message (not returned for Reddit)
18955
+ * Platform id of the sent message (not returned for Reddit). For WhatsApp this is the raw Meta wamid, the same id delivered as message.platformMessageId on webhooks and delivery-status updates, and the value to pass as replyTo to quote-reply.
18956
18956
  */
18957
18957
  messageId?: string;
18958
18958
  /**
18959
- * Twitter conversation ID
18959
+ * Zernio conversation id, echoed so the thread can be read back or replied to. It equals the id the list-conversations endpoint returns for Telegram, WhatsApp, SMS and Slack; for Facebook, Instagram, Bluesky and Reddit that endpoint returns the platform thread id instead, so do not correlate the two by equality. For X (Twitter), when the request addressed the conversation by its Twitter dm_conversation_id, that platform id is echoed back instead. Omitted when the send succeeded but the conversation could not be resolved to a stored record.
18960
18960
  */
18961
- conversationId?: (string) | null;
18962
- /**
18963
- * Bluesky sent timestamp
18964
- */
18965
- sentAt?: (string) | null;
18961
+ conversationId?: string;
18966
18962
  /**
18967
- * Success message (Reddit only)
18963
+ * Echo of the sent attachment with its resolved public URL, when one is available (Facebook, Instagram, Telegram, WhatsApp).
18968
18964
  */
18969
- message?: (string) | null;
18965
+ attachments?: Array<{
18966
+ type?: string;
18967
+ url?: string;
18968
+ }>;
18970
18969
  };
18971
18970
  });
18972
18971
  type SendInboxMessageError = ({
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.611",
39
+ version: "0.2.612",
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.611",
8
+ version: "0.2.612",
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.611",
3
+ "version": "0.2.612",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -3312,6 +3312,17 @@ export const getInboxConversationMessages = <ThrowOnError extends boolean = fals
3312
3312
  * returns 422; a key still in flight returns 409. Works for JSON and
3313
3313
  * multipart (file upload) requests alike. Keys are retained for 24 hours.
3314
3314
  *
3315
+ * Only successful (2xx) responses are stored for replay: if the request
3316
+ * throws or returns a non-2xx status, the key is released so the same key
3317
+ * can be retried once the problem is fixed. The header therefore protects
3318
+ * the "request succeeded but the response was lost" case. For an ambiguous
3319
+ * failure (a 5xx or a network timeout), reconcile before retrying: a
3320
+ * failure after the platform already accepted the message also releases
3321
+ * the key, and a blind retry could send it twice. List the conversation's
3322
+ * messages first, and treat an empty result as inconclusive rather than
3323
+ * as proof nothing was sent, since a send that failed while being recorded
3324
+ * leaves no trace on our side.
3325
+ *
3315
3326
  */
3316
3327
  export const sendInboxMessage = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<SendInboxMessageData, ThrowOnError>) => {
3317
3328
  return (options?.client ?? client).post<SendInboxMessageResponse, SendInboxMessageError, ThrowOnError>({
@@ -18605,21 +18605,20 @@ export type SendInboxMessageResponse = ({
18605
18605
  success?: boolean;
18606
18606
  data?: {
18607
18607
  /**
18608
- * ID of the sent message (not returned for Reddit)
18608
+ * Platform id of the sent message (not returned for Reddit). For WhatsApp this is the raw Meta wamid, the same id delivered as message.platformMessageId on webhooks and delivery-status updates, and the value to pass as replyTo to quote-reply.
18609
18609
  */
18610
18610
  messageId?: string;
18611
18611
  /**
18612
- * Twitter conversation ID
18612
+ * Zernio conversation id, echoed so the thread can be read back or replied to. It equals the id the list-conversations endpoint returns for Telegram, WhatsApp, SMS and Slack; for Facebook, Instagram, Bluesky and Reddit that endpoint returns the platform thread id instead, so do not correlate the two by equality. For X (Twitter), when the request addressed the conversation by its Twitter dm_conversation_id, that platform id is echoed back instead. Omitted when the send succeeded but the conversation could not be resolved to a stored record.
18613
18613
  */
18614
- conversationId?: (string) | null;
18615
- /**
18616
- * Bluesky sent timestamp
18617
- */
18618
- sentAt?: (string) | null;
18614
+ conversationId?: string;
18619
18615
  /**
18620
- * Success message (Reddit only)
18616
+ * Echo of the sent attachment with its resolved public URL, when one is available (Facebook, Instagram, Telegram, WhatsApp).
18621
18617
  */
18622
- message?: (string) | null;
18618
+ attachments?: Array<{
18619
+ type?: string;
18620
+ url?: string;
18621
+ }>;
18623
18622
  };
18624
18623
  });
18625
18624