@unboundcx/sdk 4.13.164 → 4.13.165

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.164",
3
+ "version": "4.13.165",
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",
@@ -348,4 +348,31 @@ export class LicensesService {
348
348
  { body: { enabled } },
349
349
  );
350
350
  }
351
+
352
+ /**
353
+ * Brand owner: turn a tenant's trial flag off or change when it expires.
354
+ * Passing the date does not lock the account.
355
+ * @param {string} accountId
356
+ * @param {Object} trial
357
+ * @param {boolean} [trial.isTrial]
358
+ * @param {string|null} [trial.accountExpiresAt] ISO timestamp, or null to clear
359
+ * @returns {Promise<Object>} `{ accountId, isTrial, accountExpiresAt }`
360
+ * @example
361
+ * await sdk.licenses.setBrandAccountTrial('acct-123', { isTrial: false });
362
+ */
363
+ async setBrandAccountTrial(accountId, { isTrial, accountExpiresAt } = {}) {
364
+ this.sdk.validateParams(
365
+ { accountId },
366
+ { accountId: { type: 'string', required: true } },
367
+ );
368
+ const body = {};
369
+ if (isTrial !== undefined) body.isTrial = isTrial;
370
+ if (accountExpiresAt !== undefined) body.accountExpiresAt = accountExpiresAt;
371
+ return internalRequest(
372
+ this.sdk,
373
+ `/permissions/brand/accounts/${accountId}/trial`,
374
+ 'PUT',
375
+ { body },
376
+ );
377
+ }
351
378
  }