purecloud-platform-client-v2 249.0.0 → 250.0.0
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/README.md +34 -3
- package/dist/node/purecloud-platform-client-v2.js +20042 -5569
- package/dist/web-amd/purecloud-platform-client-v2.js +20042 -5569
- package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
- package/dist/web-cjs/bundle.js +11159 -5369
- package/dist/web-cjs/purecloud-platform-client-v2.js +11159 -5369
- package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
- package/index.d.ts +10600 -2242
- package/package.json +1 -1
- package/src/purecloud-platform-client-v2/ApiClient.js +26 -2
- package/src/purecloud-platform-client-v2/api/AIStudioApi.js +136 -40
- package/src/purecloud-platform-client-v2/api/AgentAssistantsApi.js +130 -39
- package/src/purecloud-platform-client-v2/api/AgentCopilotApi.js +18 -6
- package/src/purecloud-platform-client-v2/api/AgentUIApi.js +29 -9
- package/src/purecloud-platform-client-v2/api/AlertingApi.js +86 -26
- package/src/purecloud-platform-client-v2/api/AnalyticsApi.js +917 -224
- package/src/purecloud-platform-client-v2/api/ArchitectApi.js +754 -226
- package/src/purecloud-platform-client-v2/api/AssistantCopilotVariationsApi.js +36 -11
- package/src/purecloud-platform-client-v2/api/AuditApi.js +38 -12
- package/src/purecloud-platform-client-v2/api/AuthorizationApi.js +302 -91
- package/src/purecloud-platform-client-v2/api/BackgroundAssistantApi.js +7 -3
- package/src/purecloud-platform-client-v2/api/BillingApi.js +41 -13
- package/src/purecloud-platform-client-v2/api/BusinessRulesApi.js +180 -53
- package/src/purecloud-platform-client-v2/api/CarrierServicesApi.js +11 -4
- package/src/purecloud-platform-client-v2/api/CaseManagementApi.js +187 -56
- package/src/purecloud-platform-client-v2/api/ChatApi.js +223 -65
- package/src/purecloud-platform-client-v2/api/CoachingApi.js +124 -37
- package/src/purecloud-platform-client-v2/api/ContentManagementApi.js +165 -51
- package/src/purecloud-platform-client-v2/api/ConversationsApi.js +1992 -578
- package/src/purecloud-platform-client-v2/api/DataExtensionsApi.js +22 -7
- package/src/purecloud-platform-client-v2/api/DataPrivacyApi.js +39 -12
- package/src/purecloud-platform-client-v2/api/DownloadsApi.js +4 -2
- package/src/purecloud-platform-client-v2/api/EmailsApi.js +28 -9
- package/src/purecloud-platform-client-v2/api/EmployeeEngagementApi.js +35 -11
- package/src/purecloud-platform-client-v2/api/EventsApi.js +22 -7
- package/src/purecloud-platform-client-v2/api/ExternalContactsApi.js +700 -206
- package/src/purecloud-platform-client-v2/api/FaxApi.js +49 -15
- package/src/purecloud-platform-client-v2/api/FlowsApi.js +42 -13
- package/src/purecloud-platform-client-v2/api/GamificationApi.js +419 -125
- package/src/purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi.js +21 -7
- package/src/purecloud-platform-client-v2/api/GeolocationApi.js +29 -9
- package/src/purecloud-platform-client-v2/api/GreetingsApi.js +106 -32
- package/src/purecloud-platform-client-v2/api/GroupsApi.js +103 -31
- package/src/purecloud-platform-client-v2/api/IdentityProviderApi.js +267 -77
- package/src/purecloud-platform-client-v2/api/InfrastructureAsCodeApi.js +20 -7
- package/src/purecloud-platform-client-v2/api/IntegrationsApi.js +461 -139
- package/src/purecloud-platform-client-v2/api/IntentsApi.js +93 -28
- package/src/purecloud-platform-client-v2/api/JourneyApi.js +872 -120
- package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +618 -185
- package/src/purecloud-platform-client-v2/api/LanguageUnderstandingApi.js +221 -66
- package/src/purecloud-platform-client-v2/api/LanguagesApi.js +53 -16
- package/src/purecloud-platform-client-v2/api/LearningApi.js +199 -60
- package/src/purecloud-platform-client-v2/api/LicenseApi.js +51 -16
- package/src/purecloud-platform-client-v2/api/LocationsApi.js +45 -14
- package/src/purecloud-platform-client-v2/api/LogCaptureApi.js +34 -11
- package/src/purecloud-platform-client-v2/api/MessagingApi.js +84 -25
- package/src/purecloud-platform-client-v2/api/MobileDevicesApi.js +28 -9
- package/src/purecloud-platform-client-v2/api/NotificationsApi.js +41 -13
- package/src/purecloud-platform-client-v2/api/OAuthApi.js +72 -22
- package/src/purecloud-platform-client-v2/api/ObjectsApi.js +58 -18
- package/src/purecloud-platform-client-v2/api/OperationalEventsApi.js +21 -7
- package/src/purecloud-platform-client-v2/api/OrganizationApi.js +122 -36
- package/src/purecloud-platform-client-v2/api/OrganizationAuthorizationApi.js +297 -87
- package/src/purecloud-platform-client-v2/api/OutboundApi.js +1066 -312
- package/src/purecloud-platform-client-v2/api/PresenceApi.js +162 -48
- package/src/purecloud-platform-client-v2/api/ProcessAutomationApi.js +41 -13
- package/src/purecloud-platform-client-v2/api/QualityApi.js +409 -121
- package/src/purecloud-platform-client-v2/api/RecordingApi.js +351 -108
- package/src/purecloud-platform-client-v2/api/ResponseManagementApi.js +113 -34
- package/src/purecloud-platform-client-v2/api/RoutingApi.js +964 -284
- package/src/purecloud-platform-client-v2/api/SCIMApi.js +123 -39
- package/src/purecloud-platform-client-v2/api/ScriptsApi.js +50 -17
- package/src/purecloud-platform-client-v2/api/SearchApi.js +147 -44
- package/src/purecloud-platform-client-v2/api/SettingsApi.js +87 -26
- package/src/purecloud-platform-client-v2/api/SocialMediaApi.js +208 -67
- package/src/purecloud-platform-client-v2/api/SpeechTextAnalyticsApi.js +389 -114
- package/src/purecloud-platform-client-v2/api/StationsApi.js +18 -6
- package/src/purecloud-platform-client-v2/api/SuggestApi.js +13 -5
- package/src/purecloud-platform-client-v2/api/TaskManagementApi.js +473 -138
- package/src/purecloud-platform-client-v2/api/TeamsApi.js +55 -17
- package/src/purecloud-platform-client-v2/api/TelephonyApi.js +80 -24
- package/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js +751 -220
- package/src/purecloud-platform-client-v2/api/TextbotsApi.js +25 -8
- package/src/purecloud-platform-client-v2/api/TokensApi.js +35 -11
- package/src/purecloud-platform-client-v2/api/UploadsApi.js +78 -23
- package/src/purecloud-platform-client-v2/api/UsageApi.js +62 -19
- package/src/purecloud-platform-client-v2/api/UserRecordingsApi.js +27 -9
- package/src/purecloud-platform-client-v2/api/UsersApi.js +717 -228
- package/src/purecloud-platform-client-v2/api/UsersRulesApi.js +52 -16
- package/src/purecloud-platform-client-v2/api/UtilitiesApi.js +25 -8
- package/src/purecloud-platform-client-v2/api/VoicemailApi.js +154 -46
- package/src/purecloud-platform-client-v2/api/WebChatApi.js +126 -37
- package/src/purecloud-platform-client-v2/api/WebDeploymentsApi.js +120 -36
- package/src/purecloud-platform-client-v2/api/WebMessagingApi.js +25 -8
- package/src/purecloud-platform-client-v2/api/WidgetsApi.js +36 -11
- package/src/purecloud-platform-client-v2/api/WorkforceManagementApi.js +2475 -577
- package/src/purecloud-platform-client-v2/index.js +1 -1
|
@@ -5,7 +5,7 @@ class AuthorizationApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* Authorization service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/AuthorizationApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 250.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -26,6 +26,7 @@ class AuthorizationApi {
|
|
|
26
26
|
* @param {String} divisionId Division ID
|
|
27
27
|
* @param {Object} opts Optional parameters
|
|
28
28
|
* @param {Boolean} opts.force DEPRECATED - Force delete this division. Warning: This option may cause any remaining objects in this division to be inaccessible. (default to false)
|
|
29
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
29
30
|
*/
|
|
30
31
|
deleteAuthorizationDivision(divisionId, opts) {
|
|
31
32
|
opts = opts || {};
|
|
@@ -45,7 +46,8 @@ class AuthorizationApi {
|
|
|
45
46
|
null,
|
|
46
47
|
['PureCloud OAuth'],
|
|
47
48
|
['application/json'],
|
|
48
|
-
['application/json']
|
|
49
|
+
['application/json'],
|
|
50
|
+
opts['customHeaders']
|
|
49
51
|
);
|
|
50
52
|
}
|
|
51
53
|
|
|
@@ -54,8 +56,12 @@ class AuthorizationApi {
|
|
|
54
56
|
*
|
|
55
57
|
* @param {String} targetName The domain:entity:action target to which the policy is applied
|
|
56
58
|
* @param {String} subjectId The ID of the subject to which the policy is applied
|
|
59
|
+
* @param {Object} opts Optional parameters
|
|
60
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
57
61
|
*/
|
|
58
|
-
deleteAuthorizationPoliciesTargetSubjectSubjectId(targetName, subjectId) {
|
|
62
|
+
deleteAuthorizationPoliciesTargetSubjectSubjectId(targetName, subjectId, opts) {
|
|
63
|
+
opts = opts || {};
|
|
64
|
+
|
|
59
65
|
// verify the required parameter 'targetName' is set
|
|
60
66
|
if (targetName === undefined || targetName === null || targetName === '') {
|
|
61
67
|
throw 'Missing the required parameter "targetName" when calling deleteAuthorizationPoliciesTargetSubjectSubjectId';
|
|
@@ -75,7 +81,8 @@ class AuthorizationApi {
|
|
|
75
81
|
null,
|
|
76
82
|
['PureCloud OAuth'],
|
|
77
83
|
['application/json'],
|
|
78
|
-
['application/json']
|
|
84
|
+
['application/json'],
|
|
85
|
+
opts['customHeaders']
|
|
79
86
|
);
|
|
80
87
|
}
|
|
81
88
|
|
|
@@ -83,8 +90,12 @@ class AuthorizationApi {
|
|
|
83
90
|
* Delete an organization role.
|
|
84
91
|
*
|
|
85
92
|
* @param {String} roleId Role ID
|
|
93
|
+
* @param {Object} opts Optional parameters
|
|
94
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
86
95
|
*/
|
|
87
|
-
deleteAuthorizationRole(roleId) {
|
|
96
|
+
deleteAuthorizationRole(roleId, opts) {
|
|
97
|
+
opts = opts || {};
|
|
98
|
+
|
|
88
99
|
// verify the required parameter 'roleId' is set
|
|
89
100
|
if (roleId === undefined || roleId === null || roleId === '') {
|
|
90
101
|
throw 'Missing the required parameter "roleId" when calling deleteAuthorizationRole';
|
|
@@ -100,7 +111,8 @@ class AuthorizationApi {
|
|
|
100
111
|
null,
|
|
101
112
|
['PureCloud OAuth'],
|
|
102
113
|
['application/json'],
|
|
103
|
-
['application/json']
|
|
114
|
+
['application/json'],
|
|
115
|
+
opts['customHeaders']
|
|
104
116
|
);
|
|
105
117
|
}
|
|
106
118
|
|
|
@@ -110,8 +122,12 @@ class AuthorizationApi {
|
|
|
110
122
|
* @param {String} subjectId Subject ID (user or group)
|
|
111
123
|
* @param {String} divisionId the id of the division of the grant
|
|
112
124
|
* @param {String} roleId the id of the role of the grant
|
|
125
|
+
* @param {Object} opts Optional parameters
|
|
126
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
113
127
|
*/
|
|
114
|
-
deleteAuthorizationSubjectDivisionRole(subjectId, divisionId, roleId) {
|
|
128
|
+
deleteAuthorizationSubjectDivisionRole(subjectId, divisionId, roleId, opts) {
|
|
129
|
+
opts = opts || {};
|
|
130
|
+
|
|
115
131
|
// verify the required parameter 'subjectId' is set
|
|
116
132
|
if (subjectId === undefined || subjectId === null || subjectId === '') {
|
|
117
133
|
throw 'Missing the required parameter "subjectId" when calling deleteAuthorizationSubjectDivisionRole';
|
|
@@ -135,7 +151,8 @@ class AuthorizationApi {
|
|
|
135
151
|
null,
|
|
136
152
|
['PureCloud OAuth'],
|
|
137
153
|
['application/json'],
|
|
138
|
-
['application/json']
|
|
154
|
+
['application/json'],
|
|
155
|
+
opts['customHeaders']
|
|
139
156
|
);
|
|
140
157
|
}
|
|
141
158
|
|
|
@@ -145,6 +162,7 @@ class AuthorizationApi {
|
|
|
145
162
|
* @param {String} divisionId Division ID
|
|
146
163
|
* @param {Object} opts Optional parameters
|
|
147
164
|
* @param {Object} opts.objectCount Get count of objects in this division, grouped by type (default to false)
|
|
165
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
148
166
|
*/
|
|
149
167
|
getAuthorizationDivision(divisionId, opts) {
|
|
150
168
|
opts = opts || {};
|
|
@@ -164,7 +182,8 @@ class AuthorizationApi {
|
|
|
164
182
|
null,
|
|
165
183
|
['PureCloud OAuth'],
|
|
166
184
|
['application/json'],
|
|
167
|
-
['application/json']
|
|
185
|
+
['application/json'],
|
|
186
|
+
opts['customHeaders']
|
|
168
187
|
);
|
|
169
188
|
}
|
|
170
189
|
|
|
@@ -175,6 +194,7 @@ class AuthorizationApi {
|
|
|
175
194
|
* @param {Object} opts Optional parameters
|
|
176
195
|
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
177
196
|
* @param {Number} opts.pageSize Page size (default to 25)
|
|
197
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
178
198
|
*/
|
|
179
199
|
getAuthorizationDivisionGrants(divisionId, opts) {
|
|
180
200
|
opts = opts || {};
|
|
@@ -194,7 +214,8 @@ class AuthorizationApi {
|
|
|
194
214
|
null,
|
|
195
215
|
['PureCloud OAuth'],
|
|
196
216
|
['application/json'],
|
|
197
|
-
['application/json']
|
|
217
|
+
['application/json'],
|
|
218
|
+
opts['customHeaders']
|
|
198
219
|
);
|
|
199
220
|
}
|
|
200
221
|
|
|
@@ -211,6 +232,7 @@ class AuthorizationApi {
|
|
|
211
232
|
* @param {Boolean} opts.objectCount Include the count of objects contained in the division (default to false)
|
|
212
233
|
* @param {Array.<String>} opts.id Optionally request specific divisions by their IDs
|
|
213
234
|
* @param {String} opts.name Search term to filter by division name
|
|
235
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
214
236
|
*/
|
|
215
237
|
getAuthorizationDivisions(opts) {
|
|
216
238
|
opts = opts || {};
|
|
@@ -226,7 +248,8 @@ class AuthorizationApi {
|
|
|
226
248
|
null,
|
|
227
249
|
['PureCloud OAuth'],
|
|
228
250
|
['application/json'],
|
|
229
|
-
['application/json']
|
|
251
|
+
['application/json'],
|
|
252
|
+
opts['customHeaders']
|
|
230
253
|
);
|
|
231
254
|
}
|
|
232
255
|
|
|
@@ -236,6 +259,7 @@ class AuthorizationApi {
|
|
|
236
259
|
* @param {Object} opts Optional parameters
|
|
237
260
|
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
238
261
|
* @param {Number} opts.pageSize Page size (default to 25)
|
|
262
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
239
263
|
*/
|
|
240
264
|
getAuthorizationDivisionsDeleted(opts) {
|
|
241
265
|
opts = opts || {};
|
|
@@ -251,15 +275,20 @@ class AuthorizationApi {
|
|
|
251
275
|
null,
|
|
252
276
|
['PureCloud OAuth'],
|
|
253
277
|
['application/json'],
|
|
254
|
-
['application/json']
|
|
278
|
+
['application/json'],
|
|
279
|
+
opts['customHeaders']
|
|
255
280
|
);
|
|
256
281
|
}
|
|
257
282
|
|
|
258
283
|
/**
|
|
259
284
|
* Retrieve the home division for the organization.
|
|
260
285
|
* Will not include object counts.
|
|
286
|
+
* @param {Object} opts Optional parameters
|
|
287
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
261
288
|
*/
|
|
262
|
-
getAuthorizationDivisionsHome() {
|
|
289
|
+
getAuthorizationDivisionsHome(opts) {
|
|
290
|
+
opts = opts || {};
|
|
291
|
+
|
|
263
292
|
|
|
264
293
|
return this.apiClient.callApi(
|
|
265
294
|
'/api/v2/authorization/divisions/home',
|
|
@@ -271,15 +300,20 @@ class AuthorizationApi {
|
|
|
271
300
|
null,
|
|
272
301
|
['PureCloud OAuth'],
|
|
273
302
|
['application/json'],
|
|
274
|
-
['application/json']
|
|
303
|
+
['application/json'],
|
|
304
|
+
opts['customHeaders']
|
|
275
305
|
);
|
|
276
306
|
}
|
|
277
307
|
|
|
278
308
|
/**
|
|
279
309
|
* Returns the maximum allowed number of divisions.
|
|
280
310
|
*
|
|
311
|
+
* @param {Object} opts Optional parameters
|
|
312
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
281
313
|
*/
|
|
282
|
-
getAuthorizationDivisionsLimit() {
|
|
314
|
+
getAuthorizationDivisionsLimit(opts) {
|
|
315
|
+
opts = opts || {};
|
|
316
|
+
|
|
283
317
|
|
|
284
318
|
return this.apiClient.callApi(
|
|
285
319
|
'/api/v2/authorization/divisions/limit',
|
|
@@ -291,7 +325,8 @@ class AuthorizationApi {
|
|
|
291
325
|
null,
|
|
292
326
|
['PureCloud OAuth'],
|
|
293
327
|
['application/json'],
|
|
294
|
-
['application/json']
|
|
328
|
+
['application/json'],
|
|
329
|
+
opts['customHeaders']
|
|
295
330
|
);
|
|
296
331
|
}
|
|
297
332
|
|
|
@@ -304,6 +339,7 @@ class AuthorizationApi {
|
|
|
304
339
|
* @param {String} opts.pageSize Page size (max 200, default 25) (default to 25)
|
|
305
340
|
* @param {Array.<String>} opts.id Optionally request specific divisions by their IDs
|
|
306
341
|
* @param {String} opts.name Optionally request specific divisions by division name
|
|
342
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
307
343
|
*/
|
|
308
344
|
getAuthorizationDivisionsQuery(opts) {
|
|
309
345
|
opts = opts || {};
|
|
@@ -319,7 +355,8 @@ class AuthorizationApi {
|
|
|
319
355
|
null,
|
|
320
356
|
['PureCloud OAuth'],
|
|
321
357
|
['application/json'],
|
|
322
|
-
['application/json']
|
|
358
|
+
['application/json'],
|
|
359
|
+
opts['customHeaders']
|
|
323
360
|
);
|
|
324
361
|
}
|
|
325
362
|
|
|
@@ -329,6 +366,7 @@ class AuthorizationApi {
|
|
|
329
366
|
* @param {String} permission The permission string, including the object to access, e.g. routing:queue:view
|
|
330
367
|
* @param {Object} opts Optional parameters
|
|
331
368
|
* @param {String} opts.name Search term to filter by division name
|
|
369
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
332
370
|
* @deprecated
|
|
333
371
|
*/
|
|
334
372
|
getAuthorizationDivisionspermittedMe(permission, opts) {
|
|
@@ -349,7 +387,8 @@ class AuthorizationApi {
|
|
|
349
387
|
null,
|
|
350
388
|
['PureCloud OAuth'],
|
|
351
389
|
['application/json'],
|
|
352
|
-
['application/json']
|
|
390
|
+
['application/json'],
|
|
391
|
+
opts['customHeaders']
|
|
353
392
|
);
|
|
354
393
|
}
|
|
355
394
|
|
|
@@ -360,6 +399,7 @@ class AuthorizationApi {
|
|
|
360
399
|
* @param {Object} opts Optional parameters
|
|
361
400
|
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
362
401
|
* @param {Number} opts.pageSize Page size (default to 25)
|
|
402
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
363
403
|
*/
|
|
364
404
|
getAuthorizationDivisionspermittedPagedMe(permission, opts) {
|
|
365
405
|
opts = opts || {};
|
|
@@ -379,7 +419,8 @@ class AuthorizationApi {
|
|
|
379
419
|
null,
|
|
380
420
|
['PureCloud OAuth'],
|
|
381
421
|
['application/json'],
|
|
382
|
-
['application/json']
|
|
422
|
+
['application/json'],
|
|
423
|
+
opts['customHeaders']
|
|
383
424
|
);
|
|
384
425
|
}
|
|
385
426
|
|
|
@@ -391,6 +432,7 @@ class AuthorizationApi {
|
|
|
391
432
|
* @param {Object} opts Optional parameters
|
|
392
433
|
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
393
434
|
* @param {Number} opts.pageSize Page size (default to 25)
|
|
435
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
394
436
|
* @deprecated
|
|
395
437
|
*/
|
|
396
438
|
getAuthorizationDivisionspermittedPagedSubjectId(subjectId, permission, opts) {
|
|
@@ -415,7 +457,8 @@ class AuthorizationApi {
|
|
|
415
457
|
null,
|
|
416
458
|
['PureCloud OAuth'],
|
|
417
459
|
['application/json'],
|
|
418
|
-
['application/json']
|
|
460
|
+
['application/json'],
|
|
461
|
+
opts['customHeaders']
|
|
419
462
|
);
|
|
420
463
|
}
|
|
421
464
|
|
|
@@ -427,6 +470,7 @@ class AuthorizationApi {
|
|
|
427
470
|
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
428
471
|
* @param {Object} opts.queryType Query filter type
|
|
429
472
|
* @param {String} opts.query Comma-separated list of permissions or domains to query
|
|
473
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
430
474
|
*/
|
|
431
475
|
getAuthorizationPermissions(opts) {
|
|
432
476
|
opts = opts || {};
|
|
@@ -442,7 +486,8 @@ class AuthorizationApi {
|
|
|
442
486
|
null,
|
|
443
487
|
['PureCloud OAuth'],
|
|
444
488
|
['application/json'],
|
|
445
|
-
['application/json']
|
|
489
|
+
['application/json'],
|
|
490
|
+
opts['customHeaders']
|
|
446
491
|
);
|
|
447
492
|
}
|
|
448
493
|
|
|
@@ -452,6 +497,7 @@ class AuthorizationApi {
|
|
|
452
497
|
* @param {Object} opts Optional parameters
|
|
453
498
|
* @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
|
|
454
499
|
* @param {Number} opts.pageSize Number of entities to return. Maximum of 200. (default to 25)
|
|
500
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
455
501
|
*/
|
|
456
502
|
getAuthorizationPolicies(opts) {
|
|
457
503
|
opts = opts || {};
|
|
@@ -467,7 +513,8 @@ class AuthorizationApi {
|
|
|
467
513
|
null,
|
|
468
514
|
['PureCloud OAuth'],
|
|
469
515
|
['application/json'],
|
|
470
|
-
['application/json']
|
|
516
|
+
['application/json'],
|
|
517
|
+
opts['customHeaders']
|
|
471
518
|
);
|
|
472
519
|
}
|
|
473
520
|
|
|
@@ -478,6 +525,7 @@ class AuthorizationApi {
|
|
|
478
525
|
* @param {Object} opts Optional parameters
|
|
479
526
|
* @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
|
|
480
527
|
* @param {Number} opts.pageSize Number of entities to return. Maximum of 200. (default to 25)
|
|
528
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
481
529
|
*/
|
|
482
530
|
getAuthorizationPoliciesSubjectSubjectId(subjectId, opts) {
|
|
483
531
|
opts = opts || {};
|
|
@@ -497,7 +545,8 @@ class AuthorizationApi {
|
|
|
497
545
|
null,
|
|
498
546
|
['PureCloud OAuth'],
|
|
499
547
|
['application/json'],
|
|
500
|
-
['application/json']
|
|
548
|
+
['application/json'],
|
|
549
|
+
opts['customHeaders']
|
|
501
550
|
);
|
|
502
551
|
}
|
|
503
552
|
|
|
@@ -508,6 +557,7 @@ class AuthorizationApi {
|
|
|
508
557
|
* @param {Object} opts Optional parameters
|
|
509
558
|
* @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
|
|
510
559
|
* @param {Number} opts.pageSize Number of entities to return. Maximum of 200. (default to 25)
|
|
560
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
511
561
|
*/
|
|
512
562
|
getAuthorizationPoliciesTarget(targetName, opts) {
|
|
513
563
|
opts = opts || {};
|
|
@@ -527,7 +577,8 @@ class AuthorizationApi {
|
|
|
527
577
|
null,
|
|
528
578
|
['PureCloud OAuth'],
|
|
529
579
|
['application/json'],
|
|
530
|
-
['application/json']
|
|
580
|
+
['application/json'],
|
|
581
|
+
opts['customHeaders']
|
|
531
582
|
);
|
|
532
583
|
}
|
|
533
584
|
|
|
@@ -536,8 +587,12 @@ class AuthorizationApi {
|
|
|
536
587
|
*
|
|
537
588
|
* @param {String} targetName The domain:entity:action resource target to which the policy is applied
|
|
538
589
|
* @param {String} subjectId The ID of the subject to which the policy is applied
|
|
590
|
+
* @param {Object} opts Optional parameters
|
|
591
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
539
592
|
*/
|
|
540
|
-
getAuthorizationPoliciesTargetSubjectSubjectId(targetName, subjectId) {
|
|
593
|
+
getAuthorizationPoliciesTargetSubjectSubjectId(targetName, subjectId, opts) {
|
|
594
|
+
opts = opts || {};
|
|
595
|
+
|
|
541
596
|
// verify the required parameter 'targetName' is set
|
|
542
597
|
if (targetName === undefined || targetName === null || targetName === '') {
|
|
543
598
|
throw 'Missing the required parameter "targetName" when calling getAuthorizationPoliciesTargetSubjectSubjectId';
|
|
@@ -557,15 +612,20 @@ class AuthorizationApi {
|
|
|
557
612
|
null,
|
|
558
613
|
['PureCloud OAuth'],
|
|
559
614
|
['application/json'],
|
|
560
|
-
['application/json']
|
|
615
|
+
['application/json'],
|
|
616
|
+
opts['customHeaders']
|
|
561
617
|
);
|
|
562
618
|
}
|
|
563
619
|
|
|
564
620
|
/**
|
|
565
621
|
* Get a map of policy targets to valid attributes for those targets
|
|
566
622
|
*
|
|
623
|
+
* @param {Object} opts Optional parameters
|
|
624
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
567
625
|
*/
|
|
568
|
-
getAuthorizationPoliciesTargets() {
|
|
626
|
+
getAuthorizationPoliciesTargets(opts) {
|
|
627
|
+
opts = opts || {};
|
|
628
|
+
|
|
569
629
|
|
|
570
630
|
return this.apiClient.callApi(
|
|
571
631
|
'/api/v2/authorization/policies/targets',
|
|
@@ -577,7 +637,8 @@ class AuthorizationApi {
|
|
|
577
637
|
null,
|
|
578
638
|
['PureCloud OAuth'],
|
|
579
639
|
['application/json'],
|
|
580
|
-
['application/json']
|
|
640
|
+
['application/json'],
|
|
641
|
+
opts['customHeaders']
|
|
581
642
|
);
|
|
582
643
|
}
|
|
583
644
|
|
|
@@ -585,8 +646,12 @@ class AuthorizationApi {
|
|
|
585
646
|
* Get an access control policy with the specified policy ID
|
|
586
647
|
*
|
|
587
648
|
* @param {String} policyId The ID of the policy to retrieve
|
|
649
|
+
* @param {Object} opts Optional parameters
|
|
650
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
588
651
|
*/
|
|
589
|
-
getAuthorizationPolicy(policyId) {
|
|
652
|
+
getAuthorizationPolicy(policyId, opts) {
|
|
653
|
+
opts = opts || {};
|
|
654
|
+
|
|
590
655
|
// verify the required parameter 'policyId' is set
|
|
591
656
|
if (policyId === undefined || policyId === null || policyId === '') {
|
|
592
657
|
throw 'Missing the required parameter "policyId" when calling getAuthorizationPolicy';
|
|
@@ -602,7 +667,8 @@ class AuthorizationApi {
|
|
|
602
667
|
null,
|
|
603
668
|
['PureCloud OAuth'],
|
|
604
669
|
['application/json'],
|
|
605
|
-
['application/json']
|
|
670
|
+
['application/json'],
|
|
671
|
+
opts['customHeaders']
|
|
606
672
|
);
|
|
607
673
|
}
|
|
608
674
|
|
|
@@ -610,8 +676,12 @@ class AuthorizationApi {
|
|
|
610
676
|
* Get the list of attributes used to evaluate an access control policy with the specified policy ID
|
|
611
677
|
*
|
|
612
678
|
* @param {String} policyId The ID of the policy to retrieve attributes
|
|
679
|
+
* @param {Object} opts Optional parameters
|
|
680
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
613
681
|
*/
|
|
614
|
-
getAuthorizationPolicyAttributes(policyId) {
|
|
682
|
+
getAuthorizationPolicyAttributes(policyId, opts) {
|
|
683
|
+
opts = opts || {};
|
|
684
|
+
|
|
615
685
|
// verify the required parameter 'policyId' is set
|
|
616
686
|
if (policyId === undefined || policyId === null || policyId === '') {
|
|
617
687
|
throw 'Missing the required parameter "policyId" when calling getAuthorizationPolicyAttributes';
|
|
@@ -627,15 +697,20 @@ class AuthorizationApi {
|
|
|
627
697
|
null,
|
|
628
698
|
['PureCloud OAuth'],
|
|
629
699
|
['application/json'],
|
|
630
|
-
['application/json']
|
|
700
|
+
['application/json'],
|
|
701
|
+
opts['customHeaders']
|
|
631
702
|
);
|
|
632
703
|
}
|
|
633
704
|
|
|
634
705
|
/**
|
|
635
706
|
* Get the list of enabled products
|
|
636
707
|
* Gets the list of enabled products. Some example product names are: collaborateFree, collaboratePro, communicate, and engage.
|
|
708
|
+
* @param {Object} opts Optional parameters
|
|
709
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
637
710
|
*/
|
|
638
|
-
getAuthorizationProducts() {
|
|
711
|
+
getAuthorizationProducts(opts) {
|
|
712
|
+
opts = opts || {};
|
|
713
|
+
|
|
639
714
|
|
|
640
715
|
return this.apiClient.callApi(
|
|
641
716
|
'/api/v2/authorization/products',
|
|
@@ -647,7 +722,8 @@ class AuthorizationApi {
|
|
|
647
722
|
null,
|
|
648
723
|
['PureCloud OAuth'],
|
|
649
724
|
['application/json'],
|
|
650
|
-
['application/json']
|
|
725
|
+
['application/json'],
|
|
726
|
+
opts['customHeaders']
|
|
651
727
|
);
|
|
652
728
|
}
|
|
653
729
|
|
|
@@ -658,6 +734,7 @@ class AuthorizationApi {
|
|
|
658
734
|
* @param {Object} opts Optional parameters
|
|
659
735
|
* @param {Object} opts.userCount Fetch the count of users who have this role granted in at least one division. Setting this value or defaulting to 'true' can lead to slower load times or timeouts for role queries with large member counts. (default to true)
|
|
660
736
|
* @param {Array.<String>} opts.expand Which fields, if any, to expand. unusedPermissions returns the permissions not used for the role
|
|
737
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
661
738
|
*/
|
|
662
739
|
getAuthorizationRole(roleId, opts) {
|
|
663
740
|
opts = opts || {};
|
|
@@ -677,7 +754,8 @@ class AuthorizationApi {
|
|
|
677
754
|
null,
|
|
678
755
|
['PureCloud OAuth'],
|
|
679
756
|
['application/json'],
|
|
680
|
-
['application/json']
|
|
757
|
+
['application/json'],
|
|
758
|
+
opts['customHeaders']
|
|
681
759
|
);
|
|
682
760
|
}
|
|
683
761
|
|
|
@@ -686,8 +764,12 @@ class AuthorizationApi {
|
|
|
686
764
|
* Compares any organization role to a default role id and show differences
|
|
687
765
|
* @param {String} leftRoleId Left Role ID
|
|
688
766
|
* @param {String} rightRoleId Right Role id
|
|
767
|
+
* @param {Object} opts Optional parameters
|
|
768
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
689
769
|
*/
|
|
690
|
-
getAuthorizationRoleComparedefaultRightRoleId(leftRoleId, rightRoleId) {
|
|
770
|
+
getAuthorizationRoleComparedefaultRightRoleId(leftRoleId, rightRoleId, opts) {
|
|
771
|
+
opts = opts || {};
|
|
772
|
+
|
|
691
773
|
// verify the required parameter 'leftRoleId' is set
|
|
692
774
|
if (leftRoleId === undefined || leftRoleId === null || leftRoleId === '') {
|
|
693
775
|
throw 'Missing the required parameter "leftRoleId" when calling getAuthorizationRoleComparedefaultRightRoleId';
|
|
@@ -707,7 +789,8 @@ class AuthorizationApi {
|
|
|
707
789
|
null,
|
|
708
790
|
['PureCloud OAuth'],
|
|
709
791
|
['application/json'],
|
|
710
|
-
['application/json']
|
|
792
|
+
['application/json'],
|
|
793
|
+
opts['customHeaders']
|
|
711
794
|
);
|
|
712
795
|
}
|
|
713
796
|
|
|
@@ -722,6 +805,7 @@ class AuthorizationApi {
|
|
|
722
805
|
* @param {Array.<String>} opts.expand variable name requested by expand list
|
|
723
806
|
* @param {String} opts.nextPage next page token
|
|
724
807
|
* @param {String} opts.previousPage Previous page token
|
|
808
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
725
809
|
*/
|
|
726
810
|
getAuthorizationRoleSubjectgrants(roleId, opts) {
|
|
727
811
|
opts = opts || {};
|
|
@@ -741,7 +825,8 @@ class AuthorizationApi {
|
|
|
741
825
|
null,
|
|
742
826
|
['PureCloud OAuth'],
|
|
743
827
|
['application/json'],
|
|
744
|
-
['application/json']
|
|
828
|
+
['application/json'],
|
|
829
|
+
opts['customHeaders']
|
|
745
830
|
);
|
|
746
831
|
}
|
|
747
832
|
|
|
@@ -752,6 +837,7 @@ class AuthorizationApi {
|
|
|
752
837
|
* @param {Object} opts Optional parameters
|
|
753
838
|
* @param {Number} opts.pageSize Page size (default to 25)
|
|
754
839
|
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
840
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
755
841
|
*/
|
|
756
842
|
getAuthorizationRoleUsers(roleId, opts) {
|
|
757
843
|
opts = opts || {};
|
|
@@ -771,7 +857,8 @@ class AuthorizationApi {
|
|
|
771
857
|
null,
|
|
772
858
|
['PureCloud OAuth'],
|
|
773
859
|
['application/json'],
|
|
774
|
-
['application/json']
|
|
860
|
+
['application/json'],
|
|
861
|
+
opts['customHeaders']
|
|
775
862
|
);
|
|
776
863
|
}
|
|
777
864
|
|
|
@@ -790,6 +877,7 @@ class AuthorizationApi {
|
|
|
790
877
|
* @param {Array.<String>} opts.defaultRoleId
|
|
791
878
|
* @param {Boolean} opts.userCount (default to true)
|
|
792
879
|
* @param {Array.<String>} opts.id id
|
|
880
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
793
881
|
*/
|
|
794
882
|
getAuthorizationRoles(opts) {
|
|
795
883
|
opts = opts || {};
|
|
@@ -805,15 +893,20 @@ class AuthorizationApi {
|
|
|
805
893
|
null,
|
|
806
894
|
['PureCloud OAuth'],
|
|
807
895
|
['application/json'],
|
|
808
|
-
['application/json']
|
|
896
|
+
['application/json'],
|
|
897
|
+
opts['customHeaders']
|
|
809
898
|
);
|
|
810
899
|
}
|
|
811
900
|
|
|
812
901
|
/**
|
|
813
902
|
* Get authorization role settings
|
|
814
903
|
*
|
|
904
|
+
* @param {Object} opts Optional parameters
|
|
905
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
815
906
|
*/
|
|
816
|
-
getAuthorizationRolesSettings() {
|
|
907
|
+
getAuthorizationRolesSettings(opts) {
|
|
908
|
+
opts = opts || {};
|
|
909
|
+
|
|
817
910
|
|
|
818
911
|
return this.apiClient.callApi(
|
|
819
912
|
'/api/v2/authorization/roles/settings',
|
|
@@ -825,15 +918,20 @@ class AuthorizationApi {
|
|
|
825
918
|
null,
|
|
826
919
|
['PureCloud OAuth'],
|
|
827
920
|
['application/json'],
|
|
828
|
-
['application/json']
|
|
921
|
+
['application/json'],
|
|
922
|
+
opts['customHeaders']
|
|
829
923
|
);
|
|
830
924
|
}
|
|
831
925
|
|
|
832
926
|
/**
|
|
833
927
|
* Get authorization settings
|
|
834
928
|
*
|
|
929
|
+
* @param {Object} opts Optional parameters
|
|
930
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
835
931
|
*/
|
|
836
|
-
getAuthorizationSettings() {
|
|
932
|
+
getAuthorizationSettings(opts) {
|
|
933
|
+
opts = opts || {};
|
|
934
|
+
|
|
837
935
|
|
|
838
936
|
return this.apiClient.callApi(
|
|
839
937
|
'/api/v2/authorization/settings',
|
|
@@ -845,7 +943,8 @@ class AuthorizationApi {
|
|
|
845
943
|
null,
|
|
846
944
|
['PureCloud OAuth'],
|
|
847
945
|
['application/json'],
|
|
848
|
-
['application/json']
|
|
946
|
+
['application/json'],
|
|
947
|
+
opts['customHeaders']
|
|
849
948
|
);
|
|
850
949
|
}
|
|
851
950
|
|
|
@@ -855,6 +954,7 @@ class AuthorizationApi {
|
|
|
855
954
|
* @param {String} subjectId Subject ID (user or group)
|
|
856
955
|
* @param {Object} opts Optional parameters
|
|
857
956
|
* @param {Object} opts.includeDuplicates Include multiple entries with the same role and division but different subjects (default to false)
|
|
957
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
858
958
|
*/
|
|
859
959
|
getAuthorizationSubject(subjectId, opts) {
|
|
860
960
|
opts = opts || {};
|
|
@@ -874,7 +974,8 @@ class AuthorizationApi {
|
|
|
874
974
|
null,
|
|
875
975
|
['PureCloud OAuth'],
|
|
876
976
|
['application/json'],
|
|
877
|
-
['application/json']
|
|
977
|
+
['application/json'],
|
|
978
|
+
opts['customHeaders']
|
|
878
979
|
);
|
|
879
980
|
}
|
|
880
981
|
|
|
@@ -883,6 +984,7 @@ class AuthorizationApi {
|
|
|
883
984
|
*
|
|
884
985
|
* @param {Object} opts Optional parameters
|
|
885
986
|
* @param {Object} opts.includeDuplicates Include multiple entries with the same role and division but different subjects (default to false)
|
|
987
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
886
988
|
*/
|
|
887
989
|
getAuthorizationSubjectsMe(opts) {
|
|
888
990
|
opts = opts || {};
|
|
@@ -898,7 +1000,8 @@ class AuthorizationApi {
|
|
|
898
1000
|
null,
|
|
899
1001
|
['PureCloud OAuth'],
|
|
900
1002
|
['application/json'],
|
|
901
|
-
['application/json']
|
|
1003
|
+
['application/json'],
|
|
1004
|
+
opts['customHeaders']
|
|
902
1005
|
);
|
|
903
1006
|
}
|
|
904
1007
|
|
|
@@ -907,6 +1010,7 @@ class AuthorizationApi {
|
|
|
907
1010
|
*
|
|
908
1011
|
* @param {Object} opts Optional parameters
|
|
909
1012
|
* @param {Array.<String>} opts.id id
|
|
1013
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
910
1014
|
*/
|
|
911
1015
|
getAuthorizationSubjectsRolecounts(opts) {
|
|
912
1016
|
opts = opts || {};
|
|
@@ -922,7 +1026,8 @@ class AuthorizationApi {
|
|
|
922
1026
|
null,
|
|
923
1027
|
['PureCloud OAuth'],
|
|
924
1028
|
['application/json'],
|
|
925
|
-
['application/json']
|
|
1029
|
+
['application/json'],
|
|
1030
|
+
opts['customHeaders']
|
|
926
1031
|
);
|
|
927
1032
|
}
|
|
928
1033
|
|
|
@@ -930,8 +1035,12 @@ class AuthorizationApi {
|
|
|
930
1035
|
* Returns a listing of roles and permissions for a user.
|
|
931
1036
|
*
|
|
932
1037
|
* @param {String} subjectId User ID
|
|
1038
|
+
* @param {Object} opts Optional parameters
|
|
1039
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
933
1040
|
*/
|
|
934
|
-
getUserRoles(subjectId) {
|
|
1041
|
+
getUserRoles(subjectId, opts) {
|
|
1042
|
+
opts = opts || {};
|
|
1043
|
+
|
|
935
1044
|
// verify the required parameter 'subjectId' is set
|
|
936
1045
|
if (subjectId === undefined || subjectId === null || subjectId === '') {
|
|
937
1046
|
throw 'Missing the required parameter "subjectId" when calling getUserRoles';
|
|
@@ -947,7 +1056,8 @@ class AuthorizationApi {
|
|
|
947
1056
|
null,
|
|
948
1057
|
['PureCloud OAuth'],
|
|
949
1058
|
['application/json'],
|
|
950
|
-
['application/json']
|
|
1059
|
+
['application/json'],
|
|
1060
|
+
opts['customHeaders']
|
|
951
1061
|
);
|
|
952
1062
|
}
|
|
953
1063
|
|
|
@@ -956,8 +1066,12 @@ class AuthorizationApi {
|
|
|
956
1066
|
* Patch Organization Role for needsUpdate Field
|
|
957
1067
|
* @param {String} roleId Role ID
|
|
958
1068
|
* @param {Object} body Organization role
|
|
1069
|
+
* @param {Object} opts Optional parameters
|
|
1070
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
959
1071
|
*/
|
|
960
|
-
patchAuthorizationRole(roleId, body) {
|
|
1072
|
+
patchAuthorizationRole(roleId, body, opts) {
|
|
1073
|
+
opts = opts || {};
|
|
1074
|
+
|
|
961
1075
|
// verify the required parameter 'roleId' is set
|
|
962
1076
|
if (roleId === undefined || roleId === null || roleId === '') {
|
|
963
1077
|
throw 'Missing the required parameter "roleId" when calling patchAuthorizationRole';
|
|
@@ -977,7 +1091,8 @@ class AuthorizationApi {
|
|
|
977
1091
|
body,
|
|
978
1092
|
['PureCloud OAuth'],
|
|
979
1093
|
['application/json'],
|
|
980
|
-
['application/json']
|
|
1094
|
+
['application/json'],
|
|
1095
|
+
opts['customHeaders']
|
|
981
1096
|
);
|
|
982
1097
|
}
|
|
983
1098
|
|
|
@@ -985,8 +1100,12 @@ class AuthorizationApi {
|
|
|
985
1100
|
* Change authorization settings
|
|
986
1101
|
* Change authorization settings
|
|
987
1102
|
* @param {Object} body Authorization Settings
|
|
1103
|
+
* @param {Object} opts Optional parameters
|
|
1104
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
988
1105
|
*/
|
|
989
|
-
patchAuthorizationSettings(body) {
|
|
1106
|
+
patchAuthorizationSettings(body, opts) {
|
|
1107
|
+
opts = opts || {};
|
|
1108
|
+
|
|
990
1109
|
// verify the required parameter 'body' is set
|
|
991
1110
|
if (body === undefined || body === null) {
|
|
992
1111
|
throw 'Missing the required parameter "body" when calling patchAuthorizationSettings';
|
|
@@ -1002,7 +1121,8 @@ class AuthorizationApi {
|
|
|
1002
1121
|
body,
|
|
1003
1122
|
['PureCloud OAuth'],
|
|
1004
1123
|
['application/json'],
|
|
1005
|
-
['application/json']
|
|
1124
|
+
['application/json'],
|
|
1125
|
+
opts['customHeaders']
|
|
1006
1126
|
);
|
|
1007
1127
|
}
|
|
1008
1128
|
|
|
@@ -1012,8 +1132,12 @@ class AuthorizationApi {
|
|
|
1012
1132
|
* @param {String} divisionId Division ID
|
|
1013
1133
|
* @param {Object} objectType The type of the objects. Must be one of the valid object types
|
|
1014
1134
|
* @param {Array.<String>} body Object Id List
|
|
1135
|
+
* @param {Object} opts Optional parameters
|
|
1136
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
1015
1137
|
*/
|
|
1016
|
-
postAuthorizationDivisionObject(divisionId, objectType, body) {
|
|
1138
|
+
postAuthorizationDivisionObject(divisionId, objectType, body, opts) {
|
|
1139
|
+
opts = opts || {};
|
|
1140
|
+
|
|
1017
1141
|
// verify the required parameter 'divisionId' is set
|
|
1018
1142
|
if (divisionId === undefined || divisionId === null || divisionId === '') {
|
|
1019
1143
|
throw 'Missing the required parameter "divisionId" when calling postAuthorizationDivisionObject';
|
|
@@ -1037,7 +1161,8 @@ class AuthorizationApi {
|
|
|
1037
1161
|
body,
|
|
1038
1162
|
['PureCloud OAuth'],
|
|
1039
1163
|
['application/json'],
|
|
1040
|
-
['application/json']
|
|
1164
|
+
['application/json'],
|
|
1165
|
+
opts['customHeaders']
|
|
1041
1166
|
);
|
|
1042
1167
|
}
|
|
1043
1168
|
|
|
@@ -1046,8 +1171,12 @@ class AuthorizationApi {
|
|
|
1046
1171
|
*
|
|
1047
1172
|
* @param {String} divisionId Division ID
|
|
1048
1173
|
* @param {Object} body Recreated division data
|
|
1174
|
+
* @param {Object} opts Optional parameters
|
|
1175
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
1049
1176
|
*/
|
|
1050
|
-
postAuthorizationDivisionRestore(divisionId, body) {
|
|
1177
|
+
postAuthorizationDivisionRestore(divisionId, body, opts) {
|
|
1178
|
+
opts = opts || {};
|
|
1179
|
+
|
|
1051
1180
|
// verify the required parameter 'divisionId' is set
|
|
1052
1181
|
if (divisionId === undefined || divisionId === null || divisionId === '') {
|
|
1053
1182
|
throw 'Missing the required parameter "divisionId" when calling postAuthorizationDivisionRestore';
|
|
@@ -1067,7 +1196,8 @@ class AuthorizationApi {
|
|
|
1067
1196
|
body,
|
|
1068
1197
|
['PureCloud OAuth'],
|
|
1069
1198
|
['application/json'],
|
|
1070
|
-
['application/json']
|
|
1199
|
+
['application/json'],
|
|
1200
|
+
opts['customHeaders']
|
|
1071
1201
|
);
|
|
1072
1202
|
}
|
|
1073
1203
|
|
|
@@ -1075,8 +1205,12 @@ class AuthorizationApi {
|
|
|
1075
1205
|
* Create a division.
|
|
1076
1206
|
*
|
|
1077
1207
|
* @param {Object} body Division
|
|
1208
|
+
* @param {Object} opts Optional parameters
|
|
1209
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
1078
1210
|
*/
|
|
1079
|
-
postAuthorizationDivisions(body) {
|
|
1211
|
+
postAuthorizationDivisions(body, opts) {
|
|
1212
|
+
opts = opts || {};
|
|
1213
|
+
|
|
1080
1214
|
// verify the required parameter 'body' is set
|
|
1081
1215
|
if (body === undefined || body === null) {
|
|
1082
1216
|
throw 'Missing the required parameter "body" when calling postAuthorizationDivisions';
|
|
@@ -1092,7 +1226,8 @@ class AuthorizationApi {
|
|
|
1092
1226
|
body,
|
|
1093
1227
|
['PureCloud OAuth'],
|
|
1094
1228
|
['application/json'],
|
|
1095
|
-
['application/json']
|
|
1229
|
+
['application/json'],
|
|
1230
|
+
opts['customHeaders']
|
|
1096
1231
|
);
|
|
1097
1232
|
}
|
|
1098
1233
|
|
|
@@ -1103,6 +1238,7 @@ class AuthorizationApi {
|
|
|
1103
1238
|
* @param {Object} body Access control policy
|
|
1104
1239
|
* @param {Object} opts Optional parameters
|
|
1105
1240
|
* @param {Boolean} opts.skipLockoutCheck Skip lockout check; if true, policy will not be evaluated against current context for lockout risk (default to false)
|
|
1241
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
1106
1242
|
*/
|
|
1107
1243
|
postAuthorizationPoliciesTarget(targetName, body, opts) {
|
|
1108
1244
|
opts = opts || {};
|
|
@@ -1126,7 +1262,8 @@ class AuthorizationApi {
|
|
|
1126
1262
|
body,
|
|
1127
1263
|
['PureCloud OAuth'],
|
|
1128
1264
|
['application/json'],
|
|
1129
|
-
['application/json']
|
|
1265
|
+
['application/json'],
|
|
1266
|
+
opts['customHeaders']
|
|
1130
1267
|
);
|
|
1131
1268
|
}
|
|
1132
1269
|
|
|
@@ -1135,8 +1272,12 @@ class AuthorizationApi {
|
|
|
1135
1272
|
*
|
|
1136
1273
|
* @param {String} targetName The domain:entity:action target to which the policy will be applied
|
|
1137
1274
|
* @param {Object} body Access control policy
|
|
1275
|
+
* @param {Object} opts Optional parameters
|
|
1276
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
1138
1277
|
*/
|
|
1139
|
-
postAuthorizationPoliciesTargetValidate(targetName, body) {
|
|
1278
|
+
postAuthorizationPoliciesTargetValidate(targetName, body, opts) {
|
|
1279
|
+
opts = opts || {};
|
|
1280
|
+
|
|
1140
1281
|
// verify the required parameter 'targetName' is set
|
|
1141
1282
|
if (targetName === undefined || targetName === null || targetName === '') {
|
|
1142
1283
|
throw 'Missing the required parameter "targetName" when calling postAuthorizationPoliciesTargetValidate';
|
|
@@ -1156,7 +1297,8 @@ class AuthorizationApi {
|
|
|
1156
1297
|
body,
|
|
1157
1298
|
['PureCloud OAuth'],
|
|
1158
1299
|
['application/json'],
|
|
1159
|
-
['application/json']
|
|
1300
|
+
['application/json'],
|
|
1301
|
+
opts['customHeaders']
|
|
1160
1302
|
);
|
|
1161
1303
|
}
|
|
1162
1304
|
|
|
@@ -1165,8 +1307,12 @@ class AuthorizationApi {
|
|
|
1165
1307
|
*
|
|
1166
1308
|
* @param {String} policyId The ID of the policy to test the simulated data against
|
|
1167
1309
|
* @param {Object} body A map of attribute names to type and simulated data value
|
|
1310
|
+
* @param {Object} opts Optional parameters
|
|
1311
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
1168
1312
|
*/
|
|
1169
|
-
postAuthorizationPolicySimulate(policyId, body) {
|
|
1313
|
+
postAuthorizationPolicySimulate(policyId, body, opts) {
|
|
1314
|
+
opts = opts || {};
|
|
1315
|
+
|
|
1170
1316
|
// verify the required parameter 'policyId' is set
|
|
1171
1317
|
if (policyId === undefined || policyId === null || policyId === '') {
|
|
1172
1318
|
throw 'Missing the required parameter "policyId" when calling postAuthorizationPolicySimulate';
|
|
@@ -1186,7 +1332,8 @@ class AuthorizationApi {
|
|
|
1186
1332
|
body,
|
|
1187
1333
|
['PureCloud OAuth'],
|
|
1188
1334
|
['application/json'],
|
|
1189
|
-
['application/json']
|
|
1335
|
+
['application/json'],
|
|
1336
|
+
opts['customHeaders']
|
|
1190
1337
|
);
|
|
1191
1338
|
}
|
|
1192
1339
|
|
|
@@ -1197,6 +1344,7 @@ class AuthorizationApi {
|
|
|
1197
1344
|
* @param {Object} body Subjects and Divisions
|
|
1198
1345
|
* @param {Object} opts Optional parameters
|
|
1199
1346
|
* @param {String} opts.subjectType what the type of the subjects are (PC_GROUP, PC_USER or PC_OAUTH_CLIENT) (default to PC_USER)
|
|
1347
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
1200
1348
|
*/
|
|
1201
1349
|
postAuthorizationRole(roleId, body, opts) {
|
|
1202
1350
|
opts = opts || {};
|
|
@@ -1220,7 +1368,8 @@ class AuthorizationApi {
|
|
|
1220
1368
|
body,
|
|
1221
1369
|
['PureCloud OAuth'],
|
|
1222
1370
|
['application/json'],
|
|
1223
|
-
['application/json']
|
|
1371
|
+
['application/json'],
|
|
1372
|
+
opts['customHeaders']
|
|
1224
1373
|
);
|
|
1225
1374
|
}
|
|
1226
1375
|
|
|
@@ -1230,8 +1379,12 @@ class AuthorizationApi {
|
|
|
1230
1379
|
* @param {String} leftRoleId Left Role ID
|
|
1231
1380
|
* @param {String} rightRoleId Right Role id
|
|
1232
1381
|
* @param {Object} body Organization role
|
|
1382
|
+
* @param {Object} opts Optional parameters
|
|
1383
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
1233
1384
|
*/
|
|
1234
|
-
postAuthorizationRoleComparedefaultRightRoleId(leftRoleId, rightRoleId, body) {
|
|
1385
|
+
postAuthorizationRoleComparedefaultRightRoleId(leftRoleId, rightRoleId, body, opts) {
|
|
1386
|
+
opts = opts || {};
|
|
1387
|
+
|
|
1235
1388
|
// verify the required parameter 'leftRoleId' is set
|
|
1236
1389
|
if (leftRoleId === undefined || leftRoleId === null || leftRoleId === '') {
|
|
1237
1390
|
throw 'Missing the required parameter "leftRoleId" when calling postAuthorizationRoleComparedefaultRightRoleId';
|
|
@@ -1255,7 +1408,8 @@ class AuthorizationApi {
|
|
|
1255
1408
|
body,
|
|
1256
1409
|
['PureCloud OAuth'],
|
|
1257
1410
|
['application/json'],
|
|
1258
|
-
['application/json']
|
|
1411
|
+
['application/json'],
|
|
1412
|
+
opts['customHeaders']
|
|
1259
1413
|
);
|
|
1260
1414
|
}
|
|
1261
1415
|
|
|
@@ -1263,8 +1417,12 @@ class AuthorizationApi {
|
|
|
1263
1417
|
* Create an organization role.
|
|
1264
1418
|
*
|
|
1265
1419
|
* @param {Object} body Organization role
|
|
1420
|
+
* @param {Object} opts Optional parameters
|
|
1421
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
1266
1422
|
*/
|
|
1267
|
-
postAuthorizationRoles(body) {
|
|
1423
|
+
postAuthorizationRoles(body, opts) {
|
|
1424
|
+
opts = opts || {};
|
|
1425
|
+
|
|
1268
1426
|
// verify the required parameter 'body' is set
|
|
1269
1427
|
if (body === undefined || body === null) {
|
|
1270
1428
|
throw 'Missing the required parameter "body" when calling postAuthorizationRoles';
|
|
@@ -1280,7 +1438,8 @@ class AuthorizationApi {
|
|
|
1280
1438
|
body,
|
|
1281
1439
|
['PureCloud OAuth'],
|
|
1282
1440
|
['application/json'],
|
|
1283
|
-
['application/json']
|
|
1441
|
+
['application/json'],
|
|
1442
|
+
opts['customHeaders']
|
|
1284
1443
|
);
|
|
1285
1444
|
}
|
|
1286
1445
|
|
|
@@ -1289,6 +1448,7 @@ class AuthorizationApi {
|
|
|
1289
1448
|
* This endpoint serves several purposes. 1. It provides the org with default roles. This is important for default roles that will be added after go-live (they can retroactively add the new default-role). Note: When not using a query param of force=true, it only adds the default roles not configured for the org; it does not overwrite roles. 2. Using the query param force=true, you can restore all default roles. Note: This does not have an effect on custom roles.
|
|
1290
1449
|
* @param {Object} opts Optional parameters
|
|
1291
1450
|
* @param {Boolean} opts.force Restore default roles (default to false)
|
|
1451
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
1292
1452
|
*/
|
|
1293
1453
|
postAuthorizationRolesDefault(opts) {
|
|
1294
1454
|
opts = opts || {};
|
|
@@ -1304,7 +1464,8 @@ class AuthorizationApi {
|
|
|
1304
1464
|
null,
|
|
1305
1465
|
['PureCloud OAuth'],
|
|
1306
1466
|
['application/json'],
|
|
1307
|
-
['application/json']
|
|
1467
|
+
['application/json'],
|
|
1468
|
+
opts['customHeaders']
|
|
1308
1469
|
);
|
|
1309
1470
|
}
|
|
1310
1471
|
|
|
@@ -1315,6 +1476,7 @@ class AuthorizationApi {
|
|
|
1315
1476
|
* @param {Object} body Pairs of role and division IDs
|
|
1316
1477
|
* @param {Object} opts Optional parameters
|
|
1317
1478
|
* @param {String} opts.subjectType what the type of the subject is (PC_GROUP, PC_USER or PC_OAUTH_CLIENT) (default to PC_USER)
|
|
1479
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
1318
1480
|
*/
|
|
1319
1481
|
postAuthorizationSubjectBulkadd(subjectId, body, opts) {
|
|
1320
1482
|
opts = opts || {};
|
|
@@ -1338,7 +1500,8 @@ class AuthorizationApi {
|
|
|
1338
1500
|
body,
|
|
1339
1501
|
['PureCloud OAuth'],
|
|
1340
1502
|
['application/json'],
|
|
1341
|
-
['application/json']
|
|
1503
|
+
['application/json'],
|
|
1504
|
+
opts['customHeaders']
|
|
1342
1505
|
);
|
|
1343
1506
|
}
|
|
1344
1507
|
|
|
@@ -1347,8 +1510,12 @@ class AuthorizationApi {
|
|
|
1347
1510
|
*
|
|
1348
1511
|
* @param {String} subjectId Subject ID (user or group)
|
|
1349
1512
|
* @param {Object} body Pairs of role and division IDs
|
|
1513
|
+
* @param {Object} opts Optional parameters
|
|
1514
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
1350
1515
|
*/
|
|
1351
|
-
postAuthorizationSubjectBulkremove(subjectId, body) {
|
|
1516
|
+
postAuthorizationSubjectBulkremove(subjectId, body, opts) {
|
|
1517
|
+
opts = opts || {};
|
|
1518
|
+
|
|
1352
1519
|
// verify the required parameter 'subjectId' is set
|
|
1353
1520
|
if (subjectId === undefined || subjectId === null || subjectId === '') {
|
|
1354
1521
|
throw 'Missing the required parameter "subjectId" when calling postAuthorizationSubjectBulkremove';
|
|
@@ -1368,7 +1535,8 @@ class AuthorizationApi {
|
|
|
1368
1535
|
body,
|
|
1369
1536
|
['PureCloud OAuth'],
|
|
1370
1537
|
['application/json'],
|
|
1371
|
-
['application/json']
|
|
1538
|
+
['application/json'],
|
|
1539
|
+
opts['customHeaders']
|
|
1372
1540
|
);
|
|
1373
1541
|
}
|
|
1374
1542
|
|
|
@@ -1379,6 +1547,7 @@ class AuthorizationApi {
|
|
|
1379
1547
|
* @param {Object} body Pairs of role and division IDs
|
|
1380
1548
|
* @param {Object} opts Optional parameters
|
|
1381
1549
|
* @param {String} opts.subjectType what the type of the subject is (PC_GROUP, PC_USER or PC_OAUTH_CLIENT) (default to PC_USER)
|
|
1550
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
1382
1551
|
*/
|
|
1383
1552
|
postAuthorizationSubjectBulkreplace(subjectId, body, opts) {
|
|
1384
1553
|
opts = opts || {};
|
|
@@ -1402,7 +1571,8 @@ class AuthorizationApi {
|
|
|
1402
1571
|
body,
|
|
1403
1572
|
['PureCloud OAuth'],
|
|
1404
1573
|
['application/json'],
|
|
1405
|
-
['application/json']
|
|
1574
|
+
['application/json'],
|
|
1575
|
+
opts['customHeaders']
|
|
1406
1576
|
);
|
|
1407
1577
|
}
|
|
1408
1578
|
|
|
@@ -1414,6 +1584,7 @@ class AuthorizationApi {
|
|
|
1414
1584
|
* @param {String} roleId the id of the role to grant
|
|
1415
1585
|
* @param {Object} opts Optional parameters
|
|
1416
1586
|
* @param {String} opts.subjectType what the type of the subject is: PC_GROUP, PC_USER or PC_OAUTH_CLIENT (note: for cross-org authorization, please use the Organization Authorization endpoints) (default to PC_USER)
|
|
1587
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
1417
1588
|
*/
|
|
1418
1589
|
postAuthorizationSubjectDivisionRole(subjectId, divisionId, roleId, opts) {
|
|
1419
1590
|
opts = opts || {};
|
|
@@ -1441,7 +1612,8 @@ class AuthorizationApi {
|
|
|
1441
1612
|
null,
|
|
1442
1613
|
['PureCloud OAuth'],
|
|
1443
1614
|
['application/json'],
|
|
1444
|
-
['application/json']
|
|
1615
|
+
['application/json'],
|
|
1616
|
+
opts['customHeaders']
|
|
1445
1617
|
);
|
|
1446
1618
|
}
|
|
1447
1619
|
|
|
@@ -1450,8 +1622,12 @@ class AuthorizationApi {
|
|
|
1450
1622
|
*
|
|
1451
1623
|
* @param {String} divisionId Division ID
|
|
1452
1624
|
* @param {Object} body Updated division data
|
|
1625
|
+
* @param {Object} opts Optional parameters
|
|
1626
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
1453
1627
|
*/
|
|
1454
|
-
putAuthorizationDivision(divisionId, body) {
|
|
1628
|
+
putAuthorizationDivision(divisionId, body, opts) {
|
|
1629
|
+
opts = opts || {};
|
|
1630
|
+
|
|
1455
1631
|
// verify the required parameter 'divisionId' is set
|
|
1456
1632
|
if (divisionId === undefined || divisionId === null || divisionId === '') {
|
|
1457
1633
|
throw 'Missing the required parameter "divisionId" when calling putAuthorizationDivision';
|
|
@@ -1471,7 +1647,8 @@ class AuthorizationApi {
|
|
|
1471
1647
|
body,
|
|
1472
1648
|
['PureCloud OAuth'],
|
|
1473
1649
|
['application/json'],
|
|
1474
|
-
['application/json']
|
|
1650
|
+
['application/json'],
|
|
1651
|
+
opts['customHeaders']
|
|
1475
1652
|
);
|
|
1476
1653
|
}
|
|
1477
1654
|
|
|
@@ -1482,6 +1659,7 @@ class AuthorizationApi {
|
|
|
1482
1659
|
* @param {Object} body Access control policy
|
|
1483
1660
|
* @param {Object} opts Optional parameters
|
|
1484
1661
|
* @param {Boolean} opts.skipLockoutCheck Skip lockout check; if true, policy will not be evaluated against current context for lockout risk (default to false)
|
|
1662
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
1485
1663
|
*/
|
|
1486
1664
|
putAuthorizationPoliciesTarget(targetName, body, opts) {
|
|
1487
1665
|
opts = opts || {};
|
|
@@ -1505,7 +1683,8 @@ class AuthorizationApi {
|
|
|
1505
1683
|
body,
|
|
1506
1684
|
['PureCloud OAuth'],
|
|
1507
1685
|
['application/json'],
|
|
1508
|
-
['application/json']
|
|
1686
|
+
['application/json'],
|
|
1687
|
+
opts['customHeaders']
|
|
1509
1688
|
);
|
|
1510
1689
|
}
|
|
1511
1690
|
|
|
@@ -1516,6 +1695,7 @@ class AuthorizationApi {
|
|
|
1516
1695
|
* @param {Object} body Access control policy
|
|
1517
1696
|
* @param {Object} opts Optional parameters
|
|
1518
1697
|
* @param {Boolean} opts.skipLockoutCheck Skip lockout check; if true, policy will not be evaluated against current context for lockout risk (default to false)
|
|
1698
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
1519
1699
|
*/
|
|
1520
1700
|
putAuthorizationPolicy(policyId, body, opts) {
|
|
1521
1701
|
opts = opts || {};
|
|
@@ -1539,7 +1719,8 @@ class AuthorizationApi {
|
|
|
1539
1719
|
body,
|
|
1540
1720
|
['PureCloud OAuth'],
|
|
1541
1721
|
['application/json'],
|
|
1542
|
-
['application/json']
|
|
1722
|
+
['application/json'],
|
|
1723
|
+
opts['customHeaders']
|
|
1543
1724
|
);
|
|
1544
1725
|
}
|
|
1545
1726
|
|
|
@@ -1548,8 +1729,12 @@ class AuthorizationApi {
|
|
|
1548
1729
|
* Update
|
|
1549
1730
|
* @param {String} roleId Role ID
|
|
1550
1731
|
* @param {Object} body Organization role
|
|
1732
|
+
* @param {Object} opts Optional parameters
|
|
1733
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
1551
1734
|
*/
|
|
1552
|
-
putAuthorizationRole(roleId, body) {
|
|
1735
|
+
putAuthorizationRole(roleId, body, opts) {
|
|
1736
|
+
opts = opts || {};
|
|
1737
|
+
|
|
1553
1738
|
// verify the required parameter 'roleId' is set
|
|
1554
1739
|
if (roleId === undefined || roleId === null || roleId === '') {
|
|
1555
1740
|
throw 'Missing the required parameter "roleId" when calling putAuthorizationRole';
|
|
@@ -1569,7 +1754,8 @@ class AuthorizationApi {
|
|
|
1569
1754
|
body,
|
|
1570
1755
|
['PureCloud OAuth'],
|
|
1571
1756
|
['application/json'],
|
|
1572
|
-
['application/json']
|
|
1757
|
+
['application/json'],
|
|
1758
|
+
opts['customHeaders']
|
|
1573
1759
|
);
|
|
1574
1760
|
}
|
|
1575
1761
|
|
|
@@ -1578,8 +1764,12 @@ class AuthorizationApi {
|
|
|
1578
1764
|
*
|
|
1579
1765
|
* @param {String} roleId Role ID
|
|
1580
1766
|
* @param {Array.<String>} body List of user IDs
|
|
1767
|
+
* @param {Object} opts Optional parameters
|
|
1768
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
1581
1769
|
*/
|
|
1582
|
-
putAuthorizationRoleUsersAdd(roleId, body) {
|
|
1770
|
+
putAuthorizationRoleUsersAdd(roleId, body, opts) {
|
|
1771
|
+
opts = opts || {};
|
|
1772
|
+
|
|
1583
1773
|
// verify the required parameter 'roleId' is set
|
|
1584
1774
|
if (roleId === undefined || roleId === null || roleId === '') {
|
|
1585
1775
|
throw 'Missing the required parameter "roleId" when calling putAuthorizationRoleUsersAdd';
|
|
@@ -1599,7 +1789,8 @@ class AuthorizationApi {
|
|
|
1599
1789
|
body,
|
|
1600
1790
|
['PureCloud OAuth'],
|
|
1601
1791
|
['application/json'],
|
|
1602
|
-
['application/json']
|
|
1792
|
+
['application/json'],
|
|
1793
|
+
opts['customHeaders']
|
|
1603
1794
|
);
|
|
1604
1795
|
}
|
|
1605
1796
|
|
|
@@ -1608,8 +1799,12 @@ class AuthorizationApi {
|
|
|
1608
1799
|
*
|
|
1609
1800
|
* @param {String} roleId Role ID
|
|
1610
1801
|
* @param {Array.<String>} body List of user IDs
|
|
1802
|
+
* @param {Object} opts Optional parameters
|
|
1803
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
1611
1804
|
*/
|
|
1612
|
-
putAuthorizationRoleUsersRemove(roleId, body) {
|
|
1805
|
+
putAuthorizationRoleUsersRemove(roleId, body, opts) {
|
|
1806
|
+
opts = opts || {};
|
|
1807
|
+
|
|
1613
1808
|
// verify the required parameter 'roleId' is set
|
|
1614
1809
|
if (roleId === undefined || roleId === null || roleId === '') {
|
|
1615
1810
|
throw 'Missing the required parameter "roleId" when calling putAuthorizationRoleUsersRemove';
|
|
@@ -1629,7 +1824,8 @@ class AuthorizationApi {
|
|
|
1629
1824
|
body,
|
|
1630
1825
|
['PureCloud OAuth'],
|
|
1631
1826
|
['application/json'],
|
|
1632
|
-
['application/json']
|
|
1827
|
+
['application/json'],
|
|
1828
|
+
opts['customHeaders']
|
|
1633
1829
|
);
|
|
1634
1830
|
}
|
|
1635
1831
|
|
|
@@ -1637,8 +1833,12 @@ class AuthorizationApi {
|
|
|
1637
1833
|
* Restore specified default roles
|
|
1638
1834
|
*
|
|
1639
1835
|
* @param {Array.<Object>} body Organization roles list
|
|
1836
|
+
* @param {Object} opts Optional parameters
|
|
1837
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
1640
1838
|
*/
|
|
1641
|
-
putAuthorizationRolesDefault(body) {
|
|
1839
|
+
putAuthorizationRolesDefault(body, opts) {
|
|
1840
|
+
opts = opts || {};
|
|
1841
|
+
|
|
1642
1842
|
// verify the required parameter 'body' is set
|
|
1643
1843
|
if (body === undefined || body === null) {
|
|
1644
1844
|
throw 'Missing the required parameter "body" when calling putAuthorizationRolesDefault';
|
|
@@ -1654,7 +1854,8 @@ class AuthorizationApi {
|
|
|
1654
1854
|
body,
|
|
1655
1855
|
['PureCloud OAuth'],
|
|
1656
1856
|
['application/json'],
|
|
1657
|
-
['application/json']
|
|
1857
|
+
['application/json'],
|
|
1858
|
+
opts['customHeaders']
|
|
1658
1859
|
);
|
|
1659
1860
|
}
|
|
1660
1861
|
|
|
@@ -1662,8 +1863,12 @@ class AuthorizationApi {
|
|
|
1662
1863
|
* Change authorization role settings
|
|
1663
1864
|
* Change role settings
|
|
1664
1865
|
* @param {Object} body Authorization Role Settings
|
|
1866
|
+
* @param {Object} opts Optional parameters
|
|
1867
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
1665
1868
|
*/
|
|
1666
|
-
putAuthorizationRolesSettings(body) {
|
|
1869
|
+
putAuthorizationRolesSettings(body, opts) {
|
|
1870
|
+
opts = opts || {};
|
|
1871
|
+
|
|
1667
1872
|
// verify the required parameter 'body' is set
|
|
1668
1873
|
if (body === undefined || body === null) {
|
|
1669
1874
|
throw 'Missing the required parameter "body" when calling putAuthorizationRolesSettings';
|
|
@@ -1679,7 +1884,8 @@ class AuthorizationApi {
|
|
|
1679
1884
|
body,
|
|
1680
1885
|
['PureCloud OAuth'],
|
|
1681
1886
|
['application/json'],
|
|
1682
|
-
['application/json']
|
|
1887
|
+
['application/json'],
|
|
1888
|
+
opts['customHeaders']
|
|
1683
1889
|
);
|
|
1684
1890
|
}
|
|
1685
1891
|
|
|
@@ -1688,8 +1894,12 @@ class AuthorizationApi {
|
|
|
1688
1894
|
*
|
|
1689
1895
|
* @param {String} subjectId User ID
|
|
1690
1896
|
* @param {Array.<String>} body List of roles
|
|
1897
|
+
* @param {Object} opts Optional parameters
|
|
1898
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
1691
1899
|
*/
|
|
1692
|
-
putUserRoles(subjectId, body) {
|
|
1900
|
+
putUserRoles(subjectId, body, opts) {
|
|
1901
|
+
opts = opts || {};
|
|
1902
|
+
|
|
1693
1903
|
// verify the required parameter 'subjectId' is set
|
|
1694
1904
|
if (subjectId === undefined || subjectId === null || subjectId === '') {
|
|
1695
1905
|
throw 'Missing the required parameter "subjectId" when calling putUserRoles';
|
|
@@ -1709,7 +1919,8 @@ class AuthorizationApi {
|
|
|
1709
1919
|
body,
|
|
1710
1920
|
['PureCloud OAuth'],
|
|
1711
1921
|
['application/json'],
|
|
1712
|
-
['application/json']
|
|
1922
|
+
['application/json'],
|
|
1923
|
+
opts['customHeaders']
|
|
1713
1924
|
);
|
|
1714
1925
|
}
|
|
1715
1926
|
|