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.
Files changed (97) hide show
  1. package/README.md +34 -3
  2. package/dist/node/purecloud-platform-client-v2.js +20042 -5569
  3. package/dist/web-amd/purecloud-platform-client-v2.js +20042 -5569
  4. package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
  5. package/dist/web-cjs/bundle.js +11159 -5369
  6. package/dist/web-cjs/purecloud-platform-client-v2.js +11159 -5369
  7. package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
  8. package/index.d.ts +10600 -2242
  9. package/package.json +1 -1
  10. package/src/purecloud-platform-client-v2/ApiClient.js +26 -2
  11. package/src/purecloud-platform-client-v2/api/AIStudioApi.js +136 -40
  12. package/src/purecloud-platform-client-v2/api/AgentAssistantsApi.js +130 -39
  13. package/src/purecloud-platform-client-v2/api/AgentCopilotApi.js +18 -6
  14. package/src/purecloud-platform-client-v2/api/AgentUIApi.js +29 -9
  15. package/src/purecloud-platform-client-v2/api/AlertingApi.js +86 -26
  16. package/src/purecloud-platform-client-v2/api/AnalyticsApi.js +917 -224
  17. package/src/purecloud-platform-client-v2/api/ArchitectApi.js +754 -226
  18. package/src/purecloud-platform-client-v2/api/AssistantCopilotVariationsApi.js +36 -11
  19. package/src/purecloud-platform-client-v2/api/AuditApi.js +38 -12
  20. package/src/purecloud-platform-client-v2/api/AuthorizationApi.js +302 -91
  21. package/src/purecloud-platform-client-v2/api/BackgroundAssistantApi.js +7 -3
  22. package/src/purecloud-platform-client-v2/api/BillingApi.js +41 -13
  23. package/src/purecloud-platform-client-v2/api/BusinessRulesApi.js +180 -53
  24. package/src/purecloud-platform-client-v2/api/CarrierServicesApi.js +11 -4
  25. package/src/purecloud-platform-client-v2/api/CaseManagementApi.js +187 -56
  26. package/src/purecloud-platform-client-v2/api/ChatApi.js +223 -65
  27. package/src/purecloud-platform-client-v2/api/CoachingApi.js +124 -37
  28. package/src/purecloud-platform-client-v2/api/ContentManagementApi.js +165 -51
  29. package/src/purecloud-platform-client-v2/api/ConversationsApi.js +1992 -578
  30. package/src/purecloud-platform-client-v2/api/DataExtensionsApi.js +22 -7
  31. package/src/purecloud-platform-client-v2/api/DataPrivacyApi.js +39 -12
  32. package/src/purecloud-platform-client-v2/api/DownloadsApi.js +4 -2
  33. package/src/purecloud-platform-client-v2/api/EmailsApi.js +28 -9
  34. package/src/purecloud-platform-client-v2/api/EmployeeEngagementApi.js +35 -11
  35. package/src/purecloud-platform-client-v2/api/EventsApi.js +22 -7
  36. package/src/purecloud-platform-client-v2/api/ExternalContactsApi.js +700 -206
  37. package/src/purecloud-platform-client-v2/api/FaxApi.js +49 -15
  38. package/src/purecloud-platform-client-v2/api/FlowsApi.js +42 -13
  39. package/src/purecloud-platform-client-v2/api/GamificationApi.js +419 -125
  40. package/src/purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi.js +21 -7
  41. package/src/purecloud-platform-client-v2/api/GeolocationApi.js +29 -9
  42. package/src/purecloud-platform-client-v2/api/GreetingsApi.js +106 -32
  43. package/src/purecloud-platform-client-v2/api/GroupsApi.js +103 -31
  44. package/src/purecloud-platform-client-v2/api/IdentityProviderApi.js +267 -77
  45. package/src/purecloud-platform-client-v2/api/InfrastructureAsCodeApi.js +20 -7
  46. package/src/purecloud-platform-client-v2/api/IntegrationsApi.js +461 -139
  47. package/src/purecloud-platform-client-v2/api/IntentsApi.js +93 -28
  48. package/src/purecloud-platform-client-v2/api/JourneyApi.js +872 -120
  49. package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +618 -185
  50. package/src/purecloud-platform-client-v2/api/LanguageUnderstandingApi.js +221 -66
  51. package/src/purecloud-platform-client-v2/api/LanguagesApi.js +53 -16
  52. package/src/purecloud-platform-client-v2/api/LearningApi.js +199 -60
  53. package/src/purecloud-platform-client-v2/api/LicenseApi.js +51 -16
  54. package/src/purecloud-platform-client-v2/api/LocationsApi.js +45 -14
  55. package/src/purecloud-platform-client-v2/api/LogCaptureApi.js +34 -11
  56. package/src/purecloud-platform-client-v2/api/MessagingApi.js +84 -25
  57. package/src/purecloud-platform-client-v2/api/MobileDevicesApi.js +28 -9
  58. package/src/purecloud-platform-client-v2/api/NotificationsApi.js +41 -13
  59. package/src/purecloud-platform-client-v2/api/OAuthApi.js +72 -22
  60. package/src/purecloud-platform-client-v2/api/ObjectsApi.js +58 -18
  61. package/src/purecloud-platform-client-v2/api/OperationalEventsApi.js +21 -7
  62. package/src/purecloud-platform-client-v2/api/OrganizationApi.js +122 -36
  63. package/src/purecloud-platform-client-v2/api/OrganizationAuthorizationApi.js +297 -87
  64. package/src/purecloud-platform-client-v2/api/OutboundApi.js +1066 -312
  65. package/src/purecloud-platform-client-v2/api/PresenceApi.js +162 -48
  66. package/src/purecloud-platform-client-v2/api/ProcessAutomationApi.js +41 -13
  67. package/src/purecloud-platform-client-v2/api/QualityApi.js +409 -121
  68. package/src/purecloud-platform-client-v2/api/RecordingApi.js +351 -108
  69. package/src/purecloud-platform-client-v2/api/ResponseManagementApi.js +113 -34
  70. package/src/purecloud-platform-client-v2/api/RoutingApi.js +964 -284
  71. package/src/purecloud-platform-client-v2/api/SCIMApi.js +123 -39
  72. package/src/purecloud-platform-client-v2/api/ScriptsApi.js +50 -17
  73. package/src/purecloud-platform-client-v2/api/SearchApi.js +147 -44
  74. package/src/purecloud-platform-client-v2/api/SettingsApi.js +87 -26
  75. package/src/purecloud-platform-client-v2/api/SocialMediaApi.js +208 -67
  76. package/src/purecloud-platform-client-v2/api/SpeechTextAnalyticsApi.js +389 -114
  77. package/src/purecloud-platform-client-v2/api/StationsApi.js +18 -6
  78. package/src/purecloud-platform-client-v2/api/SuggestApi.js +13 -5
  79. package/src/purecloud-platform-client-v2/api/TaskManagementApi.js +473 -138
  80. package/src/purecloud-platform-client-v2/api/TeamsApi.js +55 -17
  81. package/src/purecloud-platform-client-v2/api/TelephonyApi.js +80 -24
  82. package/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js +751 -220
  83. package/src/purecloud-platform-client-v2/api/TextbotsApi.js +25 -8
  84. package/src/purecloud-platform-client-v2/api/TokensApi.js +35 -11
  85. package/src/purecloud-platform-client-v2/api/UploadsApi.js +78 -23
  86. package/src/purecloud-platform-client-v2/api/UsageApi.js +62 -19
  87. package/src/purecloud-platform-client-v2/api/UserRecordingsApi.js +27 -9
  88. package/src/purecloud-platform-client-v2/api/UsersApi.js +717 -228
  89. package/src/purecloud-platform-client-v2/api/UsersRulesApi.js +52 -16
  90. package/src/purecloud-platform-client-v2/api/UtilitiesApi.js +25 -8
  91. package/src/purecloud-platform-client-v2/api/VoicemailApi.js +154 -46
  92. package/src/purecloud-platform-client-v2/api/WebChatApi.js +126 -37
  93. package/src/purecloud-platform-client-v2/api/WebDeploymentsApi.js +120 -36
  94. package/src/purecloud-platform-client-v2/api/WebMessagingApi.js +25 -8
  95. package/src/purecloud-platform-client-v2/api/WidgetsApi.js +36 -11
  96. package/src/purecloud-platform-client-v2/api/WorkforceManagementApi.js +2475 -577
  97. package/src/purecloud-platform-client-v2/index.js +1 -1
@@ -5,7 +5,7 @@ class OAuthApi {
5
5
  /**
6
6
  * OAuth service.
7
7
  * @module purecloud-platform-client-v2/api/OAuthApi
8
- * @version 249.0.0
8
+ * @version 250.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -24,8 +24,12 @@ class OAuthApi {
24
24
  * Delete OAuth Client
25
25
  *
26
26
  * @param {String} clientId Client ID
27
+ * @param {Object} opts Optional parameters
28
+ * @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
27
29
  */
28
- deleteOauthClient(clientId) {
30
+ deleteOauthClient(clientId, opts) {
31
+ opts = opts || {};
32
+
29
33
  // verify the required parameter 'clientId' is set
30
34
  if (clientId === undefined || clientId === null || clientId === '') {
31
35
  throw 'Missing the required parameter "clientId" when calling deleteOauthClient';
@@ -41,7 +45,8 @@ class OAuthApi {
41
45
  null,
42
46
  ['PureCloud OAuth'],
43
47
  ['application/json'],
44
- ['application/json']
48
+ ['application/json'],
49
+ opts['customHeaders']
45
50
  );
46
51
  }
47
52
 
@@ -51,6 +56,7 @@ class OAuthApi {
51
56
  * @param {String} clientId The ID of client
52
57
  * @param {Object} opts Optional parameters
53
58
  * @param {String} opts.acceptLanguage The language in which to display the client descriptions. (default to en-us)
59
+ * @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
54
60
  */
55
61
  getOauthAuthorization(clientId, opts) {
56
62
  opts = opts || {};
@@ -70,7 +76,8 @@ class OAuthApi {
70
76
  null,
71
77
  ['PureCloud OAuth'],
72
78
  ['application/json'],
73
- ['application/json']
79
+ ['application/json'],
80
+ opts['customHeaders']
74
81
  );
75
82
  }
76
83
 
@@ -79,6 +86,7 @@ class OAuthApi {
79
86
  *
80
87
  * @param {Object} opts Optional parameters
81
88
  * @param {String} opts.acceptLanguage The language in which to display the client descriptions. (default to en-us)
89
+ * @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
82
90
  */
83
91
  getOauthAuthorizations(opts) {
84
92
  opts = opts || {};
@@ -94,7 +102,8 @@ class OAuthApi {
94
102
  null,
95
103
  ['PureCloud OAuth'],
96
104
  ['application/json'],
97
- ['application/json']
105
+ ['application/json'],
106
+ opts['customHeaders']
98
107
  );
99
108
  }
100
109
 
@@ -102,8 +111,12 @@ class OAuthApi {
102
111
  * Get OAuth Client
103
112
  *
104
113
  * @param {String} clientId Client ID
114
+ * @param {Object} opts Optional parameters
115
+ * @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
105
116
  */
106
- getOauthClient(clientId) {
117
+ getOauthClient(clientId, opts) {
118
+ opts = opts || {};
119
+
107
120
  // verify the required parameter 'clientId' is set
108
121
  if (clientId === undefined || clientId === null || clientId === '') {
109
122
  throw 'Missing the required parameter "clientId" when calling getOauthClient';
@@ -119,7 +132,8 @@ class OAuthApi {
119
132
  null,
120
133
  ['PureCloud OAuth'],
121
134
  ['application/json'],
122
- ['application/json']
135
+ ['application/json'],
136
+ opts['customHeaders']
123
137
  );
124
138
  }
125
139
 
@@ -128,8 +142,12 @@ class OAuthApi {
128
142
  *
129
143
  * @param {String} executionId ID of the query execution
130
144
  * @param {String} clientId Client ID
145
+ * @param {Object} opts Optional parameters
146
+ * @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
131
147
  */
132
- getOauthClientUsageQueryResult(executionId, clientId) {
148
+ getOauthClientUsageQueryResult(executionId, clientId, opts) {
149
+ opts = opts || {};
150
+
133
151
  // verify the required parameter 'executionId' is set
134
152
  if (executionId === undefined || executionId === null || executionId === '') {
135
153
  throw 'Missing the required parameter "executionId" when calling getOauthClientUsageQueryResult';
@@ -149,7 +167,8 @@ class OAuthApi {
149
167
  null,
150
168
  ['PureCloud OAuth'],
151
169
  ['application/json'],
152
- ['application/json']
170
+ ['application/json'],
171
+ opts['customHeaders']
153
172
  );
154
173
  }
155
174
 
@@ -159,6 +178,7 @@ class OAuthApi {
159
178
  * @param {String} clientId Client ID
160
179
  * @param {Object} opts Optional parameters
161
180
  * @param {String} opts.days Previous number of days to query (default to 7)
181
+ * @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
162
182
  */
163
183
  getOauthClientUsageSummary(clientId, opts) {
164
184
  opts = opts || {};
@@ -178,15 +198,20 @@ class OAuthApi {
178
198
  null,
179
199
  ['PureCloud OAuth'],
180
200
  ['application/json'],
181
- ['application/json']
201
+ ['application/json'],
202
+ opts['customHeaders']
182
203
  );
183
204
  }
184
205
 
185
206
  /**
186
207
  * The list of OAuth clients
187
208
  *
209
+ * @param {Object} opts Optional parameters
210
+ * @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
188
211
  */
189
- getOauthClients() {
212
+ getOauthClients(opts) {
213
+ opts = opts || {};
214
+
190
215
 
191
216
  return this.apiClient.callApi(
192
217
  '/api/v2/oauth/clients',
@@ -198,7 +223,8 @@ class OAuthApi {
198
223
  null,
199
224
  ['PureCloud OAuth'],
200
225
  ['application/json'],
201
- ['application/json']
226
+ ['application/json'],
227
+ opts['customHeaders']
202
228
  );
203
229
  }
204
230
 
@@ -208,6 +234,7 @@ class OAuthApi {
208
234
  * @param {String} scopeId Scope ID
209
235
  * @param {Object} opts Optional parameters
210
236
  * @param {String} opts.acceptLanguage The language with which to display the scope description. (default to en-us)
237
+ * @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
211
238
  */
212
239
  getOauthScope(scopeId, opts) {
213
240
  opts = opts || {};
@@ -227,7 +254,8 @@ class OAuthApi {
227
254
  null,
228
255
  ['PureCloud OAuth'],
229
256
  ['application/json'],
230
- ['application/json']
257
+ ['application/json'],
258
+ opts['customHeaders']
231
259
  );
232
260
  }
233
261
 
@@ -236,6 +264,7 @@ class OAuthApi {
236
264
  *
237
265
  * @param {Object} opts Optional parameters
238
266
  * @param {String} opts.acceptLanguage The language with which to display the scope descriptions. (default to en-us)
267
+ * @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
239
268
  */
240
269
  getOauthScopes(opts) {
241
270
  opts = opts || {};
@@ -251,7 +280,8 @@ class OAuthApi {
251
280
  null,
252
281
  ['PureCloud OAuth'],
253
282
  ['application/json'],
254
- ['application/json']
283
+ ['application/json'],
284
+ opts['customHeaders']
255
285
  );
256
286
  }
257
287
 
@@ -259,8 +289,12 @@ class OAuthApi {
259
289
  * Regenerate Client Secret
260
290
  * This operation will set the client secret to a randomly generated cryptographically random value. All clients must be updated with the new secret. This operation should be used with caution.
261
291
  * @param {String} clientId Client ID
292
+ * @param {Object} opts Optional parameters
293
+ * @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
262
294
  */
263
- postOauthClientSecret(clientId) {
295
+ postOauthClientSecret(clientId, opts) {
296
+ opts = opts || {};
297
+
264
298
  // verify the required parameter 'clientId' is set
265
299
  if (clientId === undefined || clientId === null || clientId === '') {
266
300
  throw 'Missing the required parameter "clientId" when calling postOauthClientSecret';
@@ -276,7 +310,8 @@ class OAuthApi {
276
310
  null,
277
311
  ['PureCloud OAuth'],
278
312
  ['application/json'],
279
- ['application/json']
313
+ ['application/json'],
314
+ opts['customHeaders']
280
315
  );
281
316
  }
282
317
 
@@ -285,8 +320,12 @@ class OAuthApi {
285
320
  * After calling this method, you will then need to poll for the query results based on the returned execution Id
286
321
  * @param {String} clientId Client ID
287
322
  * @param {Object} body Query
323
+ * @param {Object} opts Optional parameters
324
+ * @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
288
325
  */
289
- postOauthClientUsageQuery(clientId, body) {
326
+ postOauthClientUsageQuery(clientId, body, opts) {
327
+ opts = opts || {};
328
+
290
329
  // verify the required parameter 'clientId' is set
291
330
  if (clientId === undefined || clientId === null || clientId === '') {
292
331
  throw 'Missing the required parameter "clientId" when calling postOauthClientUsageQuery';
@@ -306,7 +345,8 @@ class OAuthApi {
306
345
  body,
307
346
  ['PureCloud OAuth'],
308
347
  ['application/json'],
309
- ['application/json']
348
+ ['application/json'],
349
+ opts['customHeaders']
310
350
  );
311
351
  }
312
352
 
@@ -314,8 +354,12 @@ class OAuthApi {
314
354
  * Create OAuth client
315
355
  * The OAuth Grant/Client is required in order to create an authentication token and gain access to PureCloud. The preferred authorizedGrantTypes is CODE which requires applications to send a client ID and client secret. This is typically a web server. If the client is unable to secure the client secret then the TOKEN grant type aka IMPLICIT should be used. This is would be for browser or mobile apps. If a client is to be used outside of the context of a user then the CLIENT-CREDENTIALS grant may be used. In this case the client must be granted roles via the roleIds field.
316
356
  * @param {Object} body Client
357
+ * @param {Object} opts Optional parameters
358
+ * @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
317
359
  */
318
- postOauthClients(body) {
360
+ postOauthClients(body, opts) {
361
+ opts = opts || {};
362
+
319
363
  // verify the required parameter 'body' is set
320
364
  if (body === undefined || body === null) {
321
365
  throw 'Missing the required parameter "body" when calling postOauthClients';
@@ -331,7 +375,8 @@ class OAuthApi {
331
375
  body,
332
376
  ['PureCloud OAuth'],
333
377
  ['application/json'],
334
- ['application/json']
378
+ ['application/json'],
379
+ opts['customHeaders']
335
380
  );
336
381
  }
337
382
 
@@ -340,8 +385,12 @@ class OAuthApi {
340
385
  *
341
386
  * @param {String} clientId Client ID
342
387
  * @param {Object} body Client
388
+ * @param {Object} opts Optional parameters
389
+ * @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
343
390
  */
344
- putOauthClient(clientId, body) {
391
+ putOauthClient(clientId, body, opts) {
392
+ opts = opts || {};
393
+
345
394
  // verify the required parameter 'clientId' is set
346
395
  if (clientId === undefined || clientId === null || clientId === '') {
347
396
  throw 'Missing the required parameter "clientId" when calling putOauthClient';
@@ -361,7 +410,8 @@ class OAuthApi {
361
410
  body,
362
411
  ['PureCloud OAuth'],
363
412
  ['application/json'],
364
- ['application/json']
413
+ ['application/json'],
414
+ opts['customHeaders']
365
415
  );
366
416
  }
367
417
 
@@ -5,7 +5,7 @@ class ObjectsApi {
5
5
  /**
6
6
  * Objects service.
7
7
  * @module purecloud-platform-client-v2/api/ObjectsApi
8
- * @version 249.0.0
8
+ * @version 250.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -26,6 +26,7 @@ class ObjectsApi {
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 ObjectsApi {
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
 
@@ -55,6 +57,7 @@ class ObjectsApi {
55
57
  * @param {String} divisionId Division ID
56
58
  * @param {Object} opts Optional parameters
57
59
  * @param {Object} opts.objectCount Get count of objects in this division, grouped by type (default to false)
60
+ * @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
58
61
  */
59
62
  getAuthorizationDivision(divisionId, opts) {
60
63
  opts = opts || {};
@@ -74,7 +77,8 @@ class ObjectsApi {
74
77
  null,
75
78
  ['PureCloud OAuth'],
76
79
  ['application/json'],
77
- ['application/json']
80
+ ['application/json'],
81
+ opts['customHeaders']
78
82
  );
79
83
  }
80
84
 
@@ -91,6 +95,7 @@ class ObjectsApi {
91
95
  * @param {Boolean} opts.objectCount Include the count of objects contained in the division (default to false)
92
96
  * @param {Array.<String>} opts.id Optionally request specific divisions by their IDs
93
97
  * @param {String} opts.name Search term to filter by division name
98
+ * @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
94
99
  */
95
100
  getAuthorizationDivisions(opts) {
96
101
  opts = opts || {};
@@ -106,7 +111,8 @@ class ObjectsApi {
106
111
  null,
107
112
  ['PureCloud OAuth'],
108
113
  ['application/json'],
109
- ['application/json']
114
+ ['application/json'],
115
+ opts['customHeaders']
110
116
  );
111
117
  }
112
118
 
@@ -116,6 +122,7 @@ class ObjectsApi {
116
122
  * @param {Object} opts Optional parameters
117
123
  * @param {Number} opts.pageNumber Page number (default to 1)
118
124
  * @param {Number} opts.pageSize Page size (default to 25)
125
+ * @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
119
126
  */
120
127
  getAuthorizationDivisionsDeleted(opts) {
121
128
  opts = opts || {};
@@ -131,15 +138,20 @@ class ObjectsApi {
131
138
  null,
132
139
  ['PureCloud OAuth'],
133
140
  ['application/json'],
134
- ['application/json']
141
+ ['application/json'],
142
+ opts['customHeaders']
135
143
  );
136
144
  }
137
145
 
138
146
  /**
139
147
  * Retrieve the home division for the organization.
140
148
  * Will not include object counts.
149
+ * @param {Object} opts Optional parameters
150
+ * @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
141
151
  */
142
- getAuthorizationDivisionsHome() {
152
+ getAuthorizationDivisionsHome(opts) {
153
+ opts = opts || {};
154
+
143
155
 
144
156
  return this.apiClient.callApi(
145
157
  '/api/v2/authorization/divisions/home',
@@ -151,15 +163,20 @@ class ObjectsApi {
151
163
  null,
152
164
  ['PureCloud OAuth'],
153
165
  ['application/json'],
154
- ['application/json']
166
+ ['application/json'],
167
+ opts['customHeaders']
155
168
  );
156
169
  }
157
170
 
158
171
  /**
159
172
  * Returns the maximum allowed number of divisions.
160
173
  *
174
+ * @param {Object} opts Optional parameters
175
+ * @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
161
176
  */
162
- getAuthorizationDivisionsLimit() {
177
+ getAuthorizationDivisionsLimit(opts) {
178
+ opts = opts || {};
179
+
163
180
 
164
181
  return this.apiClient.callApi(
165
182
  '/api/v2/authorization/divisions/limit',
@@ -171,7 +188,8 @@ class ObjectsApi {
171
188
  null,
172
189
  ['PureCloud OAuth'],
173
190
  ['application/json'],
174
- ['application/json']
191
+ ['application/json'],
192
+ opts['customHeaders']
175
193
  );
176
194
  }
177
195
 
@@ -184,6 +202,7 @@ class ObjectsApi {
184
202
  * @param {String} opts.pageSize Page size (max 200, default 25) (default to 25)
185
203
  * @param {Array.<String>} opts.id Optionally request specific divisions by their IDs
186
204
  * @param {String} opts.name Optionally request specific divisions by division name
205
+ * @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
187
206
  */
188
207
  getAuthorizationDivisionsQuery(opts) {
189
208
  opts = opts || {};
@@ -199,7 +218,8 @@ class ObjectsApi {
199
218
  null,
200
219
  ['PureCloud OAuth'],
201
220
  ['application/json'],
202
- ['application/json']
221
+ ['application/json'],
222
+ opts['customHeaders']
203
223
  );
204
224
  }
205
225
 
@@ -209,8 +229,12 @@ class ObjectsApi {
209
229
  * @param {String} divisionId Division ID
210
230
  * @param {Object} objectType The type of the objects. Must be one of the valid object types
211
231
  * @param {Array.<String>} body Object Id List
232
+ * @param {Object} opts Optional parameters
233
+ * @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
212
234
  */
213
- postAuthorizationDivisionObject(divisionId, objectType, body) {
235
+ postAuthorizationDivisionObject(divisionId, objectType, body, opts) {
236
+ opts = opts || {};
237
+
214
238
  // verify the required parameter 'divisionId' is set
215
239
  if (divisionId === undefined || divisionId === null || divisionId === '') {
216
240
  throw 'Missing the required parameter "divisionId" when calling postAuthorizationDivisionObject';
@@ -234,7 +258,8 @@ class ObjectsApi {
234
258
  body,
235
259
  ['PureCloud OAuth'],
236
260
  ['application/json'],
237
- ['application/json']
261
+ ['application/json'],
262
+ opts['customHeaders']
238
263
  );
239
264
  }
240
265
 
@@ -243,8 +268,12 @@ class ObjectsApi {
243
268
  *
244
269
  * @param {String} divisionId Division ID
245
270
  * @param {Object} body Recreated division data
271
+ * @param {Object} opts Optional parameters
272
+ * @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
246
273
  */
247
- postAuthorizationDivisionRestore(divisionId, body) {
274
+ postAuthorizationDivisionRestore(divisionId, body, opts) {
275
+ opts = opts || {};
276
+
248
277
  // verify the required parameter 'divisionId' is set
249
278
  if (divisionId === undefined || divisionId === null || divisionId === '') {
250
279
  throw 'Missing the required parameter "divisionId" when calling postAuthorizationDivisionRestore';
@@ -264,7 +293,8 @@ class ObjectsApi {
264
293
  body,
265
294
  ['PureCloud OAuth'],
266
295
  ['application/json'],
267
- ['application/json']
296
+ ['application/json'],
297
+ opts['customHeaders']
268
298
  );
269
299
  }
270
300
 
@@ -272,8 +302,12 @@ class ObjectsApi {
272
302
  * Create a division.
273
303
  *
274
304
  * @param {Object} body Division
305
+ * @param {Object} opts Optional parameters
306
+ * @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
275
307
  */
276
- postAuthorizationDivisions(body) {
308
+ postAuthorizationDivisions(body, opts) {
309
+ opts = opts || {};
310
+
277
311
  // verify the required parameter 'body' is set
278
312
  if (body === undefined || body === null) {
279
313
  throw 'Missing the required parameter "body" when calling postAuthorizationDivisions';
@@ -289,7 +323,8 @@ class ObjectsApi {
289
323
  body,
290
324
  ['PureCloud OAuth'],
291
325
  ['application/json'],
292
- ['application/json']
326
+ ['application/json'],
327
+ opts['customHeaders']
293
328
  );
294
329
  }
295
330
 
@@ -298,8 +333,12 @@ class ObjectsApi {
298
333
  *
299
334
  * @param {String} divisionId Division ID
300
335
  * @param {Object} body Updated division data
336
+ * @param {Object} opts Optional parameters
337
+ * @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
301
338
  */
302
- putAuthorizationDivision(divisionId, body) {
339
+ putAuthorizationDivision(divisionId, body, opts) {
340
+ opts = opts || {};
341
+
303
342
  // verify the required parameter 'divisionId' is set
304
343
  if (divisionId === undefined || divisionId === null || divisionId === '') {
305
344
  throw 'Missing the required parameter "divisionId" when calling putAuthorizationDivision';
@@ -319,7 +358,8 @@ class ObjectsApi {
319
358
  body,
320
359
  ['PureCloud OAuth'],
321
360
  ['application/json'],
322
- ['application/json']
361
+ ['application/json'],
362
+ opts['customHeaders']
323
363
  );
324
364
  }
325
365
 
@@ -5,7 +5,7 @@ class OperationalEventsApi {
5
5
  /**
6
6
  * OperationalEvents service.
7
7
  * @module purecloud-platform-client-v2/api/OperationalEventsApi
8
- * @version 249.0.0
8
+ * @version 250.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -24,8 +24,12 @@ class OperationalEventsApi {
24
24
  * Get an operational event definition by its id
25
25
  *
26
26
  * @param {String} eventDefinitionId EventDefinition id
27
+ * @param {Object} opts Optional parameters
28
+ * @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
27
29
  */
28
- getUsageEventsDefinition(eventDefinitionId) {
30
+ getUsageEventsDefinition(eventDefinitionId, opts) {
31
+ opts = opts || {};
32
+
29
33
  // verify the required parameter 'eventDefinitionId' is set
30
34
  if (eventDefinitionId === undefined || eventDefinitionId === null || eventDefinitionId === '') {
31
35
  throw 'Missing the required parameter "eventDefinitionId" when calling getUsageEventsDefinition';
@@ -41,15 +45,20 @@ class OperationalEventsApi {
41
45
  null,
42
46
  ['PureCloud OAuth'],
43
47
  ['application/json'],
44
- ['application/json']
48
+ ['application/json'],
49
+ opts['customHeaders']
45
50
  );
46
51
  }
47
52
 
48
53
  /**
49
54
  * Get all operational event definitions
50
55
  *
56
+ * @param {Object} opts Optional parameters
57
+ * @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
51
58
  */
52
- getUsageEventsDefinitions() {
59
+ getUsageEventsDefinitions(opts) {
60
+ opts = opts || {};
61
+
53
62
 
54
63
  return this.apiClient.callApi(
55
64
  '/api/v2/usage/events/definitions',
@@ -61,7 +70,8 @@ class OperationalEventsApi {
61
70
  null,
62
71
  ['PureCloud OAuth'],
63
72
  ['application/json'],
64
- ['application/json']
73
+ ['application/json'],
74
+ opts['customHeaders']
65
75
  );
66
76
  }
67
77
 
@@ -70,6 +80,7 @@ class OperationalEventsApi {
70
80
  *
71
81
  * @param {Object} opts Optional parameters
72
82
  * @param {Object} opts.body
83
+ * @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
73
84
  */
74
85
  postUsageEventsAggregatesQuery(opts) {
75
86
  opts = opts || {};
@@ -85,7 +96,8 @@ class OperationalEventsApi {
85
96
  opts['body'],
86
97
  ['PureCloud OAuth'],
87
98
  ['application/json'],
88
- ['application/json']
99
+ ['application/json'],
100
+ opts['customHeaders']
89
101
  );
90
102
  }
91
103
 
@@ -97,6 +109,7 @@ class OperationalEventsApi {
97
109
  * @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
98
110
  * @param {String} opts.pageSize Number of entities to return. Maximum of 200.
99
111
  * @param {Object} opts.body
112
+ * @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
100
113
  */
101
114
  postUsageEventsQuery(opts) {
102
115
  opts = opts || {};
@@ -112,7 +125,8 @@ class OperationalEventsApi {
112
125
  opts['body'],
113
126
  ['PureCloud OAuth'],
114
127
  ['application/json'],
115
- ['application/json']
128
+ ['application/json'],
129
+ opts['customHeaders']
116
130
  );
117
131
  }
118
132