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 PresenceApi {
5
5
  /**
6
6
  * Presence service.
7
7
  * @module purecloud-platform-client-v2/api/PresenceApi
8
- * @version 249.0.0
8
+ * @version 250.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -24,8 +24,12 @@ class PresenceApi {
24
24
  * Delete a Presence Definition
25
25
  *
26
26
  * @param {String} definitionId Presence Definition ID
27
+ * @param {Object} opts Optional parameters
28
+ * @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
27
29
  */
28
- deletePresenceDefinition0(definitionId) {
30
+ deletePresenceDefinition0(definitionId, opts) {
31
+ opts = opts || {};
32
+
29
33
  // verify the required parameter 'definitionId' is set
30
34
  if (definitionId === undefined || definitionId === null || definitionId === '') {
31
35
  throw 'Missing the required parameter "definitionId" when calling deletePresenceDefinition0';
@@ -41,7 +45,8 @@ class PresenceApi {
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
 
@@ -49,8 +54,12 @@ class PresenceApi {
49
54
  * Delete a Presence Source
50
55
  *
51
56
  * @param {String} sourceId Presence Source ID
57
+ * @param {Object} opts Optional parameters
58
+ * @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
52
59
  */
53
- deletePresenceSource(sourceId) {
60
+ deletePresenceSource(sourceId, opts) {
61
+ opts = opts || {};
62
+
54
63
  // verify the required parameter 'sourceId' is set
55
64
  if (sourceId === undefined || sourceId === null || sourceId === '') {
56
65
  throw 'Missing the required parameter "sourceId" when calling deletePresenceSource';
@@ -66,7 +75,8 @@ class PresenceApi {
66
75
  null,
67
76
  ['PureCloud OAuth'],
68
77
  ['application/json'],
69
- ['application/json']
78
+ ['application/json'],
79
+ opts['customHeaders']
70
80
  );
71
81
  }
72
82
 
@@ -74,9 +84,13 @@ class PresenceApi {
74
84
  * Delete a Presence Definition. Apps should migrate to use DELETE /api/v2/presence/definitions/{definitionId} instead
75
85
  *
76
86
  * @param {String} presenceId Organization Presence ID
87
+ * @param {Object} opts Optional parameters
88
+ * @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
77
89
  * @deprecated
78
90
  */
79
- deletePresencedefinition(presenceId) {
91
+ deletePresencedefinition(presenceId, opts) {
92
+ opts = opts || {};
93
+
80
94
  // verify the required parameter 'presenceId' is set
81
95
  if (presenceId === undefined || presenceId === null || presenceId === '') {
82
96
  throw 'Missing the required parameter "presenceId" when calling deletePresencedefinition';
@@ -92,7 +106,8 @@ class PresenceApi {
92
106
  null,
93
107
  ['PureCloud OAuth'],
94
108
  ['application/json'],
95
- ['application/json']
109
+ ['application/json'],
110
+ opts['customHeaders']
96
111
  );
97
112
  }
98
113
 
@@ -102,6 +117,7 @@ class PresenceApi {
102
117
  * @param {String} definitionId Presence Definition ID
103
118
  * @param {Object} opts Optional parameters
104
119
  * @param {Object} opts.localeCode The locale code to fetch for the presence definition. Use ALL to fetch everything.
120
+ * @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
105
121
  */
106
122
  getPresenceDefinition0(definitionId, opts) {
107
123
  opts = opts || {};
@@ -121,7 +137,8 @@ class PresenceApi {
121
137
  null,
122
138
  ['PureCloud OAuth'],
123
139
  ['application/json'],
124
- ['application/json']
140
+ ['application/json'],
141
+ opts['customHeaders']
125
142
  );
126
143
  }
127
144
 
@@ -132,6 +149,7 @@ class PresenceApi {
132
149
  * @param {String} opts.deactivated Deactivated query can be TRUE or FALSE (default to false)
133
150
  * @param {Array.<String>} opts.divisionId One or more division IDs. If nothing is provided, the definitions associated withthe list of divisions that the user has access to will be returned.
134
151
  * @param {Object} opts.localeCode The locale code to fetch for the presence definition. Use ALL to fetch everything.
152
+ * @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
135
153
  */
136
154
  getPresenceDefinitions0(opts) {
137
155
  opts = opts || {};
@@ -147,15 +165,20 @@ class PresenceApi {
147
165
  null,
148
166
  ['PureCloud OAuth'],
149
167
  ['application/json'],
150
- ['application/json']
168
+ ['application/json'],
169
+ opts['customHeaders']
151
170
  );
152
171
  }
153
172
 
154
173
  /**
155
174
  * Get the presence settings
156
175
  *
176
+ * @param {Object} opts Optional parameters
177
+ * @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
157
178
  */
158
- getPresenceSettings() {
179
+ getPresenceSettings(opts) {
180
+ opts = opts || {};
181
+
159
182
 
160
183
  return this.apiClient.callApi(
161
184
  '/api/v2/presence/settings',
@@ -167,7 +190,8 @@ class PresenceApi {
167
190
  null,
168
191
  ['PureCloud OAuth'],
169
192
  ['application/json'],
170
- ['application/json']
193
+ ['application/json'],
194
+ opts['customHeaders']
171
195
  );
172
196
  }
173
197
 
@@ -175,8 +199,12 @@ class PresenceApi {
175
199
  * Get a Presence Source
176
200
  *
177
201
  * @param {String} sourceId Presence Source ID
202
+ * @param {Object} opts Optional parameters
203
+ * @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
178
204
  */
179
- getPresenceSource(sourceId) {
205
+ getPresenceSource(sourceId, opts) {
206
+ opts = opts || {};
207
+
180
208
  // verify the required parameter 'sourceId' is set
181
209
  if (sourceId === undefined || sourceId === null || sourceId === '') {
182
210
  throw 'Missing the required parameter "sourceId" when calling getPresenceSource';
@@ -192,7 +220,8 @@ class PresenceApi {
192
220
  null,
193
221
  ['PureCloud OAuth'],
194
222
  ['application/json'],
195
- ['application/json']
223
+ ['application/json'],
224
+ opts['customHeaders']
196
225
  );
197
226
  }
198
227
 
@@ -201,6 +230,7 @@ class PresenceApi {
201
230
  *
202
231
  * @param {Object} opts Optional parameters
203
232
  * @param {String} opts.deactivated Deactivated query can be TRUE or FALSE (default to false)
233
+ * @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
204
234
  */
205
235
  getPresenceSources(opts) {
206
236
  opts = opts || {};
@@ -216,7 +246,8 @@ class PresenceApi {
216
246
  null,
217
247
  ['PureCloud OAuth'],
218
248
  ['application/json'],
219
- ['application/json']
249
+ ['application/json'],
250
+ opts['customHeaders']
220
251
  );
221
252
  }
222
253
 
@@ -224,8 +255,12 @@ class PresenceApi {
224
255
  * Get a user's Primary Presence Source
225
256
  *
226
257
  * @param {String} userId user ID
258
+ * @param {Object} opts Optional parameters
259
+ * @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
227
260
  */
228
- getPresenceUserPrimarysource(userId) {
261
+ getPresenceUserPrimarysource(userId, opts) {
262
+ opts = opts || {};
263
+
229
264
  // verify the required parameter 'userId' is set
230
265
  if (userId === undefined || userId === null || userId === '') {
231
266
  throw 'Missing the required parameter "userId" when calling getPresenceUserPrimarysource';
@@ -241,7 +276,8 @@ class PresenceApi {
241
276
  null,
242
277
  ['PureCloud OAuth'],
243
278
  ['application/json'],
244
- ['application/json']
279
+ ['application/json'],
280
+ opts['customHeaders']
245
281
  );
246
282
  }
247
283
 
@@ -251,6 +287,7 @@ class PresenceApi {
251
287
  * @param {String} presenceId Organization Presence ID
252
288
  * @param {Object} opts Optional parameters
253
289
  * @param {String} opts.localeCode The locale code to fetch for the presence definition. Use ALL to fetch everything.
290
+ * @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
254
291
  * @deprecated
255
292
  */
256
293
  getPresencedefinition(presenceId, opts) {
@@ -271,7 +308,8 @@ class PresenceApi {
271
308
  null,
272
309
  ['PureCloud OAuth'],
273
310
  ['application/json'],
274
- ['application/json']
311
+ ['application/json'],
312
+ opts['customHeaders']
275
313
  );
276
314
  }
277
315
 
@@ -283,6 +321,7 @@ class PresenceApi {
283
321
  * @param {Number} opts.pageSize Page size (default to 25)
284
322
  * @param {String} opts.deleted Deleted query can be TRUE, FALSE or ALL (default to false)
285
323
  * @param {String} opts.localeCode The locale code to fetch for each presence definition. Use ALL to fetch everything.
324
+ * @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
286
325
  * @deprecated
287
326
  */
288
327
  getPresencedefinitions(opts) {
@@ -299,15 +338,20 @@ class PresenceApi {
299
338
  null,
300
339
  ['PureCloud OAuth'],
301
340
  ['application/json'],
302
- ['application/json']
341
+ ['application/json'],
342
+ opts['customHeaders']
303
343
  );
304
344
  }
305
345
 
306
346
  /**
307
347
  * Get the list of SystemPresences
308
348
  *
349
+ * @param {Object} opts Optional parameters
350
+ * @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
309
351
  */
310
- getSystempresences() {
352
+ getSystempresences(opts) {
353
+ opts = opts || {};
354
+
311
355
 
312
356
  return this.apiClient.callApi(
313
357
  '/api/v2/systempresences',
@@ -319,7 +363,8 @@ class PresenceApi {
319
363
  null,
320
364
  ['PureCloud OAuth'],
321
365
  ['application/json'],
322
- ['application/json']
366
+ ['application/json'],
367
+ opts['customHeaders']
323
368
  );
324
369
  }
325
370
 
@@ -328,8 +373,12 @@ class PresenceApi {
328
373
  * Get a users presence for the specified source that is not specifically listed. Used to support custom presence sources. This endpoint does not support registered presence sources.
329
374
  * @param {String} userId user Id
330
375
  * @param {String} sourceId Presence source ID
376
+ * @param {Object} opts Optional parameters
377
+ * @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
331
378
  */
332
- getUserPresence(userId, sourceId) {
379
+ getUserPresence(userId, sourceId, opts) {
380
+ opts = opts || {};
381
+
333
382
  // verify the required parameter 'userId' is set
334
383
  if (userId === undefined || userId === null || userId === '') {
335
384
  throw 'Missing the required parameter "userId" when calling getUserPresence';
@@ -349,7 +398,8 @@ class PresenceApi {
349
398
  null,
350
399
  ['PureCloud OAuth'],
351
400
  ['application/json'],
352
- ['application/json']
401
+ ['application/json'],
402
+ opts['customHeaders']
353
403
  );
354
404
  }
355
405
 
@@ -357,8 +407,12 @@ class PresenceApi {
357
407
  * Get a user's Genesys Cloud presence.
358
408
  * Get the default Genesys Cloud user presence source PURECLOUD
359
409
  * @param {String} userId user Id
410
+ * @param {Object} opts Optional parameters
411
+ * @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
360
412
  */
361
- getUserPresencesPurecloud(userId) {
413
+ getUserPresencesPurecloud(userId, opts) {
414
+ opts = opts || {};
415
+
362
416
  // verify the required parameter 'userId' is set
363
417
  if (userId === undefined || userId === null || userId === '') {
364
418
  throw 'Missing the required parameter "userId" when calling getUserPresencesPurecloud';
@@ -374,7 +428,8 @@ class PresenceApi {
374
428
  null,
375
429
  ['PureCloud OAuth'],
376
430
  ['application/json'],
377
- ['application/json']
431
+ ['application/json'],
432
+ opts['customHeaders']
378
433
  );
379
434
  }
380
435
 
@@ -384,6 +439,7 @@ class PresenceApi {
384
439
  * @param {String} sourceId The requested presence source ID.
385
440
  * @param {Object} opts Optional parameters
386
441
  * @param {Array.<String>} opts.id A comma separated list of user IDs to fetch their presence status in bulk. Limit 50.
442
+ * @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
387
443
  */
388
444
  getUsersPresenceBulk(sourceId, opts) {
389
445
  opts = opts || {};
@@ -403,7 +459,8 @@ class PresenceApi {
403
459
  null,
404
460
  ['PureCloud OAuth'],
405
461
  ['application/json'],
406
- ['application/json']
462
+ ['application/json'],
463
+ opts['customHeaders']
407
464
  );
408
465
  }
409
466
 
@@ -412,6 +469,7 @@ class PresenceApi {
412
469
  *
413
470
  * @param {Object} opts Optional parameters
414
471
  * @param {Array.<String>} opts.id A comma separated list of user IDs to fetch their presence status in bulk. Limit 50.
472
+ * @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
415
473
  */
416
474
  getUsersPresencesPurecloudBulk(opts) {
417
475
  opts = opts || {};
@@ -427,7 +485,8 @@ class PresenceApi {
427
485
  null,
428
486
  ['PureCloud OAuth'],
429
487
  ['application/json'],
430
- ['application/json']
488
+ ['application/json'],
489
+ opts['customHeaders']
431
490
  );
432
491
  }
433
492
 
@@ -437,8 +496,12 @@ class PresenceApi {
437
496
  * @param {String} userId user Id
438
497
  * @param {String} sourceId Presence source ID
439
498
  * @param {Object} body User presence
499
+ * @param {Object} opts Optional parameters
500
+ * @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
440
501
  */
441
- patchUserPresence(userId, sourceId, body) {
502
+ patchUserPresence(userId, sourceId, body, opts) {
503
+ opts = opts || {};
504
+
442
505
  // verify the required parameter 'userId' is set
443
506
  if (userId === undefined || userId === null || userId === '') {
444
507
  throw 'Missing the required parameter "userId" when calling patchUserPresence';
@@ -462,7 +525,8 @@ class PresenceApi {
462
525
  body,
463
526
  ['PureCloud OAuth'],
464
527
  ['application/json'],
465
- ['application/json']
528
+ ['application/json'],
529
+ opts['customHeaders']
466
530
  );
467
531
  }
468
532
 
@@ -471,8 +535,12 @@ class PresenceApi {
471
535
  * The presence object can be patched one of three ways. Option 1: Set the primary property to true. This will set the PURECLOUD source as the users primary presence source. Option 2: Provide the presenceDefinition value. The id is the only value required within the presenceDefinition. Option 3: Provide the message value. Option 1 can be combined with Option 2 and/or Option 3.
472
536
  * @param {String} userId user Id
473
537
  * @param {Object} body User presence
538
+ * @param {Object} opts Optional parameters
539
+ * @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
474
540
  */
475
- patchUserPresencesPurecloud(userId, body) {
541
+ patchUserPresencesPurecloud(userId, body, opts) {
542
+ opts = opts || {};
543
+
476
544
  // verify the required parameter 'userId' is set
477
545
  if (userId === undefined || userId === null || userId === '') {
478
546
  throw 'Missing the required parameter "userId" when calling patchUserPresencesPurecloud';
@@ -492,7 +560,8 @@ class PresenceApi {
492
560
  body,
493
561
  ['PureCloud OAuth'],
494
562
  ['application/json'],
495
- ['application/json']
563
+ ['application/json'],
564
+ opts['customHeaders']
496
565
  );
497
566
  }
498
567
 
@@ -500,8 +569,12 @@ class PresenceApi {
500
569
  * Create a Presence Definition
501
570
  *
502
571
  * @param {Object} body The Presence Definition to create
572
+ * @param {Object} opts Optional parameters
573
+ * @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
503
574
  */
504
- postPresenceDefinitions0(body) {
575
+ postPresenceDefinitions0(body, opts) {
576
+ opts = opts || {};
577
+
505
578
  // verify the required parameter 'body' is set
506
579
  if (body === undefined || body === null) {
507
580
  throw 'Missing the required parameter "body" when calling postPresenceDefinitions0';
@@ -517,7 +590,8 @@ class PresenceApi {
517
590
  body,
518
591
  ['PureCloud OAuth'],
519
592
  ['application/json'],
520
- ['application/json']
593
+ ['application/json'],
594
+ opts['customHeaders']
521
595
  );
522
596
  }
523
597
 
@@ -525,8 +599,12 @@ class PresenceApi {
525
599
  * Create a Presence Source
526
600
  *
527
601
  * @param {Object} body The Presence Source to create
602
+ * @param {Object} opts Optional parameters
603
+ * @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
528
604
  */
529
- postPresenceSources(body) {
605
+ postPresenceSources(body, opts) {
606
+ opts = opts || {};
607
+
530
608
  // verify the required parameter 'body' is set
531
609
  if (body === undefined || body === null) {
532
610
  throw 'Missing the required parameter "body" when calling postPresenceSources';
@@ -542,7 +620,8 @@ class PresenceApi {
542
620
  body,
543
621
  ['PureCloud OAuth'],
544
622
  ['application/json'],
545
- ['application/json']
623
+ ['application/json'],
624
+ opts['customHeaders']
546
625
  );
547
626
  }
548
627
 
@@ -550,9 +629,13 @@ class PresenceApi {
550
629
  * Create a Presence Definition. Apps should migrate to use POST /api/v2/presence/definitions instead
551
630
  *
552
631
  * @param {Object} body The Presence Definition to create
632
+ * @param {Object} opts Optional parameters
633
+ * @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
553
634
  * @deprecated
554
635
  */
555
- postPresencedefinitions(body) {
636
+ postPresencedefinitions(body, opts) {
637
+ opts = opts || {};
638
+
556
639
  // verify the required parameter 'body' is set
557
640
  if (body === undefined || body === null) {
558
641
  throw 'Missing the required parameter "body" when calling postPresencedefinitions';
@@ -568,7 +651,8 @@ class PresenceApi {
568
651
  body,
569
652
  ['PureCloud OAuth'],
570
653
  ['application/json'],
571
- ['application/json']
654
+ ['application/json'],
655
+ opts['customHeaders']
572
656
  );
573
657
  }
574
658
 
@@ -577,8 +661,12 @@ class PresenceApi {
577
661
  *
578
662
  * @param {String} definitionId Presence Definition ID
579
663
  * @param {Object} body The updated Presence Definition
664
+ * @param {Object} opts Optional parameters
665
+ * @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
580
666
  */
581
- putPresenceDefinition0(definitionId, body) {
667
+ putPresenceDefinition0(definitionId, body, opts) {
668
+ opts = opts || {};
669
+
582
670
  // verify the required parameter 'definitionId' is set
583
671
  if (definitionId === undefined || definitionId === null || definitionId === '') {
584
672
  throw 'Missing the required parameter "definitionId" when calling putPresenceDefinition0';
@@ -598,7 +686,8 @@ class PresenceApi {
598
686
  body,
599
687
  ['PureCloud OAuth'],
600
688
  ['application/json'],
601
- ['application/json']
689
+ ['application/json'],
690
+ opts['customHeaders']
602
691
  );
603
692
  }
604
693
 
@@ -606,8 +695,12 @@ class PresenceApi {
606
695
  * Update the presence settings
607
696
  *
608
697
  * @param {Object} body Presence Settings
698
+ * @param {Object} opts Optional parameters
699
+ * @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
609
700
  */
610
- putPresenceSettings(body) {
701
+ putPresenceSettings(body, opts) {
702
+ opts = opts || {};
703
+
611
704
  // verify the required parameter 'body' is set
612
705
  if (body === undefined || body === null) {
613
706
  throw 'Missing the required parameter "body" when calling putPresenceSettings';
@@ -623,7 +716,8 @@ class PresenceApi {
623
716
  body,
624
717
  ['PureCloud OAuth'],
625
718
  ['application/json'],
626
- ['application/json']
719
+ ['application/json'],
720
+ opts['customHeaders']
627
721
  );
628
722
  }
629
723
 
@@ -632,8 +726,12 @@ class PresenceApi {
632
726
  *
633
727
  * @param {String} sourceId Presence Source ID
634
728
  * @param {Object} body The updated Presence Source
729
+ * @param {Object} opts Optional parameters
730
+ * @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
635
731
  */
636
- putPresenceSource(sourceId, body) {
732
+ putPresenceSource(sourceId, body, opts) {
733
+ opts = opts || {};
734
+
637
735
  // verify the required parameter 'sourceId' is set
638
736
  if (sourceId === undefined || sourceId === null || sourceId === '') {
639
737
  throw 'Missing the required parameter "sourceId" when calling putPresenceSource';
@@ -653,7 +751,8 @@ class PresenceApi {
653
751
  body,
654
752
  ['PureCloud OAuth'],
655
753
  ['application/json'],
656
- ['application/json']
754
+ ['application/json'],
755
+ opts['customHeaders']
657
756
  );
658
757
  }
659
758
 
@@ -662,8 +761,12 @@ class PresenceApi {
662
761
  *
663
762
  * @param {String} userId user ID
664
763
  * @param {Object} body Primary Source
764
+ * @param {Object} opts Optional parameters
765
+ * @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
665
766
  */
666
- putPresenceUserPrimarysource(userId, body) {
767
+ putPresenceUserPrimarysource(userId, body, opts) {
768
+ opts = opts || {};
769
+
667
770
  // verify the required parameter 'userId' is set
668
771
  if (userId === undefined || userId === null || userId === '') {
669
772
  throw 'Missing the required parameter "userId" when calling putPresenceUserPrimarysource';
@@ -683,7 +786,8 @@ class PresenceApi {
683
786
  body,
684
787
  ['PureCloud OAuth'],
685
788
  ['application/json'],
686
- ['application/json']
789
+ ['application/json'],
790
+ opts['customHeaders']
687
791
  );
688
792
  }
689
793
 
@@ -692,9 +796,13 @@ class PresenceApi {
692
796
  *
693
797
  * @param {String} presenceId Organization Presence ID
694
798
  * @param {Object} body The OrganizationPresence to update
799
+ * @param {Object} opts Optional parameters
800
+ * @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
695
801
  * @deprecated
696
802
  */
697
- putPresencedefinition(presenceId, body) {
803
+ putPresencedefinition(presenceId, body, opts) {
804
+ opts = opts || {};
805
+
698
806
  // verify the required parameter 'presenceId' is set
699
807
  if (presenceId === undefined || presenceId === null || presenceId === '') {
700
808
  throw 'Missing the required parameter "presenceId" when calling putPresencedefinition';
@@ -714,7 +822,8 @@ class PresenceApi {
714
822
  body,
715
823
  ['PureCloud OAuth'],
716
824
  ['application/json'],
717
- ['application/json']
825
+ ['application/json'],
826
+ opts['customHeaders']
718
827
  );
719
828
  }
720
829
 
@@ -722,8 +831,12 @@ class PresenceApi {
722
831
  * Update bulk user Presences
723
832
  *
724
833
  * @param {Array.<Object>} body List of User presences
834
+ * @param {Object} opts Optional parameters
835
+ * @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
725
836
  */
726
- putUsersPresencesBulk(body) {
837
+ putUsersPresencesBulk(body, opts) {
838
+ opts = opts || {};
839
+
727
840
  // verify the required parameter 'body' is set
728
841
  if (body === undefined || body === null) {
729
842
  throw 'Missing the required parameter "body" when calling putUsersPresencesBulk';
@@ -739,7 +852,8 @@ class PresenceApi {
739
852
  body,
740
853
  ['PureCloud OAuth'],
741
854
  ['application/json'],
742
- ['application/json']
855
+ ['application/json'],
856
+ opts['customHeaders']
743
857
  );
744
858
  }
745
859