@unboundcx/sdk 4.13.110 → 4.13.111

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.13.110",
3
+ "version": "4.13.111",
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",
@@ -257,8 +257,19 @@ export class PhoneNumbersService {
257
257
  *
258
258
  * // Search workflows by name
259
259
  * const filtered = await sdk.phoneNumbers.getRoutingOptions({ appType: 'workflows', search: 'customer' });
260
+ *
261
+ * // Page through a large appType's destination list (default 50, max 200)
262
+ * const page = await sdk.phoneNumbers.getRoutingOptions({ appType: 'users', search: 'jo', limit: 50 });
263
+ * // Returns: { users: [...], hasMore: true }
260
264
  */
261
- async getRoutingOptions({ mode, type, appType, workflowId, search } = {}) {
265
+ async getRoutingOptions({
266
+ mode,
267
+ type,
268
+ appType,
269
+ workflowId,
270
+ search,
271
+ limit,
272
+ } = {}) {
262
273
  const validationSchema = {};
263
274
  const args = arguments[0] || {};
264
275
 
@@ -272,6 +283,8 @@ export class PhoneNumbersService {
272
283
  validationSchema.workflowId = { type: 'string', required: false };
273
284
  if ('search' in args)
274
285
  validationSchema.search = { type: 'string', required: false };
286
+ if ('limit' in args)
287
+ validationSchema.limit = { type: 'number', required: false };
275
288
 
276
289
  if (Object.keys(validationSchema).length > 0) {
277
290
  this.sdk.validateParams(args, validationSchema);
@@ -284,6 +297,7 @@ export class PhoneNumbersService {
284
297
  appType,
285
298
  workflowId,
286
299
  search,
300
+ limit,
287
301
  },
288
302
  };
289
303