@unboundcx/sdk 4.8.13 → 4.8.14

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unboundcx/sdk",
3
- "version": "4.8.13",
3
+ "version": "4.8.14",
4
4
  "description": "Official JavaScript SDK for the Unbound API - A comprehensive toolkit for integrating with Unbound's communication, AI, and data management services",
5
5
  "main": "index.js",
6
6
  "type": "module",
package/services/chat.js CHANGED
@@ -225,7 +225,8 @@ export class ChatService {
225
225
  }
226
226
 
227
227
  /**
228
- * Find-or-create a 1:1 or group DM.
228
+ * Find-or-create a 1:1, self ("You"), or group DM.
229
+ * Pass `userIds: []` (or only the caller) for the You channel.
229
230
  * @param {Object} params
230
231
  * @param {string[]} params.userIds
231
232
  * @returns {Promise<Object>}
package/services/fax.js CHANGED
@@ -85,6 +85,7 @@ export class FaxService {
85
85
  * @param {string} [options.resolution] - Fax resolution (defaults to mailbox resolution)
86
86
  * @param {boolean} [options.ecm] - Enable Error Correction Mode (default: true)
87
87
  * @param {number} [options.timeout] - Dial timeout in seconds (defaults to mailbox dialTimeout)
88
+ * @param {string} [options.relatedId] - Record (e.g. engagement/task) id; server posts a fax card into that record's activity feed
88
89
  * @returns {Promise<Object>} Send result
89
90
  * @returns {string} result.id - The fax document ID
90
91
  * @returns {string} result.status - 'sending' on success, 'failed' on NATS error
@@ -131,6 +132,7 @@ export class FaxService {
131
132
  resolution,
132
133
  ecm,
133
134
  timeout,
135
+ relatedId,
134
136
  }) {
135
137
  this.sdk.validateParams(
136
138
  { faxMailboxId, toNumber, fromNumber, coverStorageId, paperSize },
@@ -166,6 +168,7 @@ export class FaxService {
166
168
  resolution,
167
169
  ecm,
168
170
  timeout,
171
+ relatedId,
169
172
  },
170
173
  };
171
174