@unboundcx/sdk 4.13.134 → 4.13.135
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 +1 -1
- package/services/operatorPanels.js +17 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unboundcx/sdk",
|
|
3
|
-
"version": "4.13.
|
|
3
|
+
"version": "4.13.135",
|
|
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",
|
|
@@ -141,6 +141,23 @@ export class OperatorPanelsService {
|
|
|
141
141
|
);
|
|
142
142
|
}
|
|
143
143
|
|
|
144
|
+
/**
|
|
145
|
+
* @param {string} id - panel id
|
|
146
|
+
* @returns {Promise<{results: Array<{principalType: 'user'|'group', principalId: string, name: string|null}>}>}
|
|
147
|
+
*/
|
|
148
|
+
async getAccess(id) {
|
|
149
|
+
this.sdk.validateParams(
|
|
150
|
+
{ id },
|
|
151
|
+
{ id: { type: 'string', required: true } },
|
|
152
|
+
);
|
|
153
|
+
return await internalRequest(
|
|
154
|
+
this.sdk,
|
|
155
|
+
`/operatorPanels/${id}/access`,
|
|
156
|
+
'GET',
|
|
157
|
+
{},
|
|
158
|
+
);
|
|
159
|
+
}
|
|
160
|
+
|
|
144
161
|
/**
|
|
145
162
|
* @param {string} kind - users | groups | queues | ringGroups | workflows | records
|
|
146
163
|
* @param {string} [q] - search text
|