@unboundcx/sdk 4.13.146-security.1 → 4.13.146-security.2

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.146-security.1",
3
+ "version": "4.13.146-security.2",
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",
@@ -180,6 +180,27 @@ export class LicensesService {
180
180
  );
181
181
  }
182
182
 
183
+ /**
184
+ * Get a user's active/disabled status (read-side of setUserStatus,
185
+ * W1-3). Allowed for the caller's own userId with no scope, or for any
186
+ * userId in the account when holding admin:user:manage.
187
+ * @param {string} userId
188
+ * @returns {Promise<Object>} `{ userId, status, updatedAt? }`
189
+ * @example
190
+ * await sdk.licenses.getUserStatus('user-123');
191
+ */
192
+ async getUserStatus(userId) {
193
+ this.sdk.validateParams(
194
+ { userId },
195
+ { userId: { type: 'string', required: true } },
196
+ );
197
+ return internalRequest(
198
+ this.sdk,
199
+ `/permissions/users/${userId}/status`,
200
+ 'GET',
201
+ );
202
+ }
203
+
183
204
  // -- Brand-owner methods (requireBrandOwner; 2D api routes) --------------
184
205
 
185
206
  /**