purecloud-platform-client-v2 202.1.0 → 204.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 (89) hide show
  1. package/README.md +2 -2
  2. package/dist/node/purecloud-platform-client-v2.js +885 -106
  3. package/dist/web-amd/purecloud-platform-client-v2.js +885 -106
  4. package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
  5. package/dist/web-cjs/bundle.js +452 -261
  6. package/dist/web-cjs/purecloud-platform-client-v2.js +452 -261
  7. package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
  8. package/index.d.ts +589 -224
  9. package/package.json +2 -2
  10. package/src/purecloud-platform-client-v2/ApiClient.js +1 -1
  11. package/src/purecloud-platform-client-v2/api/AgentAssistantsApi.js +381 -0
  12. package/src/purecloud-platform-client-v2/api/AgentCopilotApi.js +81 -0
  13. package/src/purecloud-platform-client-v2/api/AgentUIApi.js +1 -1
  14. package/src/purecloud-platform-client-v2/api/AlertingApi.js +1 -1
  15. package/src/purecloud-platform-client-v2/api/AnalyticsApi.js +3 -3
  16. package/src/purecloud-platform-client-v2/api/ArchitectApi.js +1 -12
  17. package/src/purecloud-platform-client-v2/api/AuditApi.js +1 -1
  18. package/src/purecloud-platform-client-v2/api/AuthorizationApi.js +46 -1
  19. package/src/purecloud-platform-client-v2/api/BillingApi.js +1 -1
  20. package/src/purecloud-platform-client-v2/api/CarrierServicesApi.js +1 -1
  21. package/src/purecloud-platform-client-v2/api/ChatApi.js +1 -1
  22. package/src/purecloud-platform-client-v2/api/CoachingApi.js +1 -1
  23. package/src/purecloud-platform-client-v2/api/ContentManagementApi.js +1 -1
  24. package/src/purecloud-platform-client-v2/api/ConversationsApi.js +1 -1
  25. package/src/purecloud-platform-client-v2/api/DataExtensionsApi.js +1 -1
  26. package/src/purecloud-platform-client-v2/api/DownloadsApi.js +1 -1
  27. package/src/purecloud-platform-client-v2/api/EmailsApi.js +1 -1
  28. package/src/purecloud-platform-client-v2/api/EmployeeEngagementApi.js +1 -1
  29. package/src/purecloud-platform-client-v2/api/EventsApi.js +1 -1
  30. package/src/purecloud-platform-client-v2/api/ExternalContactsApi.js +139 -2
  31. package/src/purecloud-platform-client-v2/api/FaxApi.js +1 -1
  32. package/src/purecloud-platform-client-v2/api/FlowsApi.js +1 -1
  33. package/src/purecloud-platform-client-v2/api/GamificationApi.js +1 -1
  34. package/src/purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi.js +1 -1
  35. package/src/purecloud-platform-client-v2/api/GeolocationApi.js +1 -1
  36. package/src/purecloud-platform-client-v2/api/GreetingsApi.js +1 -1
  37. package/src/purecloud-platform-client-v2/api/GroupsApi.js +1 -1
  38. package/src/purecloud-platform-client-v2/api/IdentityProviderApi.js +1 -1
  39. package/src/purecloud-platform-client-v2/api/InfrastructureAsCodeApi.js +1 -1
  40. package/src/purecloud-platform-client-v2/api/IntegrationsApi.js +1 -1
  41. package/src/purecloud-platform-client-v2/api/JourneyApi.js +3 -13
  42. package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +130 -1
  43. package/src/purecloud-platform-client-v2/api/LanguageUnderstandingApi.js +1 -1
  44. package/src/purecloud-platform-client-v2/api/LanguagesApi.js +1 -1
  45. package/src/purecloud-platform-client-v2/api/LearningApi.js +1 -1
  46. package/src/purecloud-platform-client-v2/api/LicenseApi.js +1 -1
  47. package/src/purecloud-platform-client-v2/api/LocationsApi.js +1 -1
  48. package/src/purecloud-platform-client-v2/api/LogCaptureApi.js +1 -1
  49. package/src/purecloud-platform-client-v2/api/MessagingApi.js +1 -1
  50. package/src/purecloud-platform-client-v2/api/MobileDevicesApi.js +1 -1
  51. package/src/purecloud-platform-client-v2/api/NotificationsApi.js +1 -1
  52. package/src/purecloud-platform-client-v2/api/OAuthApi.js +1 -1
  53. package/src/purecloud-platform-client-v2/api/ObjectsApi.js +1 -1
  54. package/src/purecloud-platform-client-v2/api/OperationalEventsApi.js +1 -1
  55. package/src/purecloud-platform-client-v2/api/OrganizationApi.js +1 -1
  56. package/src/purecloud-platform-client-v2/api/OrganizationAuthorizationApi.js +1 -1
  57. package/src/purecloud-platform-client-v2/api/OutboundApi.js +1 -1
  58. package/src/purecloud-platform-client-v2/api/PresenceApi.js +1 -1
  59. package/src/purecloud-platform-client-v2/api/ProcessAutomationApi.js +1 -1
  60. package/src/purecloud-platform-client-v2/api/QualityApi.js +1 -1
  61. package/src/purecloud-platform-client-v2/api/RecordingApi.js +1 -1
  62. package/src/purecloud-platform-client-v2/api/ResponseManagementApi.js +1 -1
  63. package/src/purecloud-platform-client-v2/api/RoutingApi.js +30 -1
  64. package/src/purecloud-platform-client-v2/api/SCIMApi.js +1 -1
  65. package/src/purecloud-platform-client-v2/api/ScreenRecordingApi.js +1 -1
  66. package/src/purecloud-platform-client-v2/api/ScriptsApi.js +1 -1
  67. package/src/purecloud-platform-client-v2/api/SearchApi.js +1 -1
  68. package/src/purecloud-platform-client-v2/api/SettingsApi.js +1 -3
  69. package/src/purecloud-platform-client-v2/api/SpeechTextAnalyticsApi.js +1 -1
  70. package/src/purecloud-platform-client-v2/api/StationsApi.js +1 -1
  71. package/src/purecloud-platform-client-v2/api/SuggestApi.js +1 -1
  72. package/src/purecloud-platform-client-v2/api/TaskManagementApi.js +1 -1
  73. package/src/purecloud-platform-client-v2/api/TeamsApi.js +1 -1
  74. package/src/purecloud-platform-client-v2/api/TelephonyApi.js +1 -1
  75. package/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js +1 -1
  76. package/src/purecloud-platform-client-v2/api/TextbotsApi.js +1 -1
  77. package/src/purecloud-platform-client-v2/api/TokensApi.js +1 -1
  78. package/src/purecloud-platform-client-v2/api/UploadsApi.js +1 -1
  79. package/src/purecloud-platform-client-v2/api/UsageApi.js +1 -1
  80. package/src/purecloud-platform-client-v2/api/UserRecordingsApi.js +1 -1
  81. package/src/purecloud-platform-client-v2/api/UsersApi.js +1 -1
  82. package/src/purecloud-platform-client-v2/api/UtilitiesApi.js +1 -1
  83. package/src/purecloud-platform-client-v2/api/VoicemailApi.js +1 -1
  84. package/src/purecloud-platform-client-v2/api/WebChatApi.js +1 -1
  85. package/src/purecloud-platform-client-v2/api/WebDeploymentsApi.js +1 -1
  86. package/src/purecloud-platform-client-v2/api/WebMessagingApi.js +1 -1
  87. package/src/purecloud-platform-client-v2/api/WidgetsApi.js +1 -1
  88. package/src/purecloud-platform-client-v2/api/WorkforceManagementApi.js +1 -1
  89. package/src/purecloud-platform-client-v2/index.js +13 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "purecloud-platform-client-v2",
3
- "version": "202.1.0",
3
+ "version": "204.0.0",
4
4
  "description": "A JavaScript library to interface with the PureCloud Platform API",
5
5
  "license": "MIT",
6
6
  "main": "dist/node/purecloud-platform-client-v2.js",
@@ -30,7 +30,7 @@
30
30
  "url": "https://developer.mypurecloud.com"
31
31
  },
32
32
  "dependencies": {
33
- "axios": "^1.6.5",
33
+ "axios": "^1.7.4",
34
34
  "configparser": "^0.3.9",
35
35
  "qs": "^6.10.3",
36
36
  "winston": "^3.6.0"
@@ -4,7 +4,7 @@ import { default as qs } from 'qs';
4
4
 
5
5
  /**
6
6
  * @module purecloud-platform-client-v2/ApiClient
7
- * @version 202.1.0
7
+ * @version 204.0.0
8
8
  */
9
9
  class ApiClient {
10
10
  /**
@@ -0,0 +1,381 @@
1
+ import ApiClient from '../ApiClient.js';
2
+
3
+
4
+ class AgentAssistantsApi {
5
+ /**
6
+ * AgentAssistants service.
7
+ * @module purecloud-platform-client-v2/api/AgentAssistantsApi
8
+ * @version 204.0.0
9
+ */
10
+
11
+ /**
12
+ * Constructs a new AgentAssistantsApi.
13
+ * @alias module:purecloud-platform-client-v2/api/AgentAssistantsApi
14
+ * @class
15
+ * @param {module:purecloud-platform-client-v2/ApiClient} apiClient Optional API client implementation to use,
16
+ * default to {@link module:purecloud-platform-client-v2/ApiClient#instance} if unspecified.
17
+ */
18
+ constructor(apiClient) {
19
+ this.apiClient = apiClient || ApiClient.instance;
20
+ }
21
+
22
+
23
+ /**
24
+ * Delete an assistant.
25
+ *
26
+ * @param {String} assistantId Assistant ID
27
+ */
28
+ deleteAssistant(assistantId) {
29
+ // verify the required parameter 'assistantId' is set
30
+ if (assistantId === undefined || assistantId === null) {
31
+ throw 'Missing the required parameter "assistantId" when calling deleteAssistant';
32
+ }
33
+
34
+ return this.apiClient.callApi(
35
+ '/api/v2/assistants/{assistantId}',
36
+ 'DELETE',
37
+ { 'assistantId': assistantId },
38
+ { },
39
+ { },
40
+ { },
41
+ null,
42
+ ['PureCloud OAuth'],
43
+ ['application/json'],
44
+ ['application/json']
45
+ );
46
+ }
47
+
48
+ /**
49
+ * Disassociate a queue from an assistant.
50
+ *
51
+ * @param {String} assistantId Assistant ID
52
+ * @param {String} queueId Queue ID
53
+ */
54
+ deleteAssistantQueue(assistantId, queueId) {
55
+ // verify the required parameter 'assistantId' is set
56
+ if (assistantId === undefined || assistantId === null) {
57
+ throw 'Missing the required parameter "assistantId" when calling deleteAssistantQueue';
58
+ }
59
+ // verify the required parameter 'queueId' is set
60
+ if (queueId === undefined || queueId === null) {
61
+ throw 'Missing the required parameter "queueId" when calling deleteAssistantQueue';
62
+ }
63
+
64
+ return this.apiClient.callApi(
65
+ '/api/v2/assistants/{assistantId}/queues/{queueId}',
66
+ 'DELETE',
67
+ { 'assistantId': assistantId,'queueId': queueId },
68
+ { },
69
+ { },
70
+ { },
71
+ null,
72
+ ['PureCloud OAuth'],
73
+ ['application/json'],
74
+ ['application/json']
75
+ );
76
+ }
77
+
78
+ /**
79
+ * Disassociate the queues from an assistant for the given assistant ID and queue IDs.
80
+ *
81
+ * @param {String} assistantId Assistant ID
82
+ * @param {Object} opts Optional parameters
83
+ * @param {String} opts.queueIds Comma-separated identifiers of the queues that need to be deleted.
84
+ */
85
+ deleteAssistantQueues(assistantId, opts) {
86
+ opts = opts || {};
87
+
88
+ // verify the required parameter 'assistantId' is set
89
+ if (assistantId === undefined || assistantId === null) {
90
+ throw 'Missing the required parameter "assistantId" when calling deleteAssistantQueues';
91
+ }
92
+
93
+ return this.apiClient.callApi(
94
+ '/api/v2/assistants/{assistantId}/queues',
95
+ 'DELETE',
96
+ { 'assistantId': assistantId },
97
+ { 'queueIds': opts['queueIds'] },
98
+ { },
99
+ { },
100
+ null,
101
+ ['PureCloud OAuth'],
102
+ ['application/json'],
103
+ ['application/json']
104
+ );
105
+ }
106
+
107
+ /**
108
+ * Get an assistant.
109
+ *
110
+ * @param {String} assistantId Assistant ID
111
+ * @param {Object} opts Optional parameters
112
+ * @param {Object} opts.expand Which fields, if any, to expand.
113
+ */
114
+ getAssistant(assistantId, opts) {
115
+ opts = opts || {};
116
+
117
+ // verify the required parameter 'assistantId' is set
118
+ if (assistantId === undefined || assistantId === null) {
119
+ throw 'Missing the required parameter "assistantId" when calling getAssistant';
120
+ }
121
+
122
+ return this.apiClient.callApi(
123
+ '/api/v2/assistants/{assistantId}',
124
+ 'GET',
125
+ { 'assistantId': assistantId },
126
+ { 'expand': opts['expand'] },
127
+ { },
128
+ { },
129
+ null,
130
+ ['PureCloud OAuth'],
131
+ ['application/json'],
132
+ ['application/json']
133
+ );
134
+ }
135
+
136
+ /**
137
+ * Get queue Information for an assistant.
138
+ *
139
+ * @param {String} assistantId Assistant ID
140
+ * @param {String} queueId Queue ID
141
+ * @param {Object} opts Optional parameters
142
+ * @param {Object} opts.expand Which fields, if any, to expand.
143
+ */
144
+ getAssistantQueue(assistantId, queueId, opts) {
145
+ opts = opts || {};
146
+
147
+ // verify the required parameter 'assistantId' is set
148
+ if (assistantId === undefined || assistantId === null) {
149
+ throw 'Missing the required parameter "assistantId" when calling getAssistantQueue';
150
+ }
151
+ // verify the required parameter 'queueId' is set
152
+ if (queueId === undefined || queueId === null) {
153
+ throw 'Missing the required parameter "queueId" when calling getAssistantQueue';
154
+ }
155
+
156
+ return this.apiClient.callApi(
157
+ '/api/v2/assistants/{assistantId}/queues/{queueId}',
158
+ 'GET',
159
+ { 'assistantId': assistantId,'queueId': queueId },
160
+ { 'expand': opts['expand'] },
161
+ { },
162
+ { },
163
+ null,
164
+ ['PureCloud OAuth'],
165
+ ['application/json'],
166
+ ['application/json']
167
+ );
168
+ }
169
+
170
+ /**
171
+ * Get all the queues associated with an assistant.
172
+ *
173
+ * @param {String} assistantId Assistant ID
174
+ * @param {Object} opts Optional parameters
175
+ * @param {String} opts.before The cursor that points to the start of the set of entities that has been returned.
176
+ * @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
177
+ * @param {String} opts.pageSize Number of entities to return. Maximum of 200.
178
+ * @param {Object} opts.expand Which fields, if any, to expand.
179
+ */
180
+ getAssistantQueues(assistantId, opts) {
181
+ opts = opts || {};
182
+
183
+ // verify the required parameter 'assistantId' is set
184
+ if (assistantId === undefined || assistantId === null) {
185
+ throw 'Missing the required parameter "assistantId" when calling getAssistantQueues';
186
+ }
187
+
188
+ return this.apiClient.callApi(
189
+ '/api/v2/assistants/{assistantId}/queues',
190
+ 'GET',
191
+ { 'assistantId': assistantId },
192
+ { 'before': opts['before'],'after': opts['after'],'pageSize': opts['pageSize'],'expand': opts['expand'] },
193
+ { },
194
+ { },
195
+ null,
196
+ ['PureCloud OAuth'],
197
+ ['application/json'],
198
+ ['application/json']
199
+ );
200
+ }
201
+
202
+ /**
203
+ * Get all assistants.
204
+ *
205
+ * @param {Object} opts Optional parameters
206
+ * @param {String} opts.before The cursor that points to the start of the set of entities that has been returned.
207
+ * @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
208
+ * @param {String} opts.limit Number of entities to return. Maximum of 200. Deprecated in favour of pageSize
209
+ * @param {String} opts.pageSize Number of entities to return. Maximum of 200.
210
+ * @param {String} opts.name Return the assistant by the given name.
211
+ */
212
+ getAssistants(opts) {
213
+ opts = opts || {};
214
+
215
+
216
+ return this.apiClient.callApi(
217
+ '/api/v2/assistants',
218
+ 'GET',
219
+ { },
220
+ { 'before': opts['before'],'after': opts['after'],'limit': opts['limit'],'pageSize': opts['pageSize'],'name': opts['name'] },
221
+ { },
222
+ { },
223
+ null,
224
+ ['PureCloud OAuth'],
225
+ ['application/json'],
226
+ ['application/json']
227
+ );
228
+ }
229
+
230
+ /**
231
+ * Get all queues assigned to any assistant.
232
+ *
233
+ * @param {Object} opts Optional parameters
234
+ * @param {String} opts.before The cursor that points to the start of the set of entities that has been returned.
235
+ * @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
236
+ * @param {String} opts.pageSize Number of entities to return. Maximum of 200.
237
+ * @param {String} opts.queueIds Comma-separated identifiers of the queues that need to be retrieved.
238
+ * @param {Object} opts.expand Which fields, if any, to expand.
239
+ */
240
+ getAssistantsQueues(opts) {
241
+ opts = opts || {};
242
+
243
+
244
+ return this.apiClient.callApi(
245
+ '/api/v2/assistants/queues',
246
+ 'GET',
247
+ { },
248
+ { 'before': opts['before'],'after': opts['after'],'pageSize': opts['pageSize'],'queueIds': opts['queueIds'],'expand': opts['expand'] },
249
+ { },
250
+ { },
251
+ null,
252
+ ['PureCloud OAuth'],
253
+ ['application/json'],
254
+ ['application/json']
255
+ );
256
+ }
257
+
258
+ /**
259
+ * Update an assistant.
260
+ *
261
+ * @param {String} assistantId Assistant ID
262
+ * @param {Object} body
263
+ */
264
+ patchAssistant(assistantId, body) {
265
+ // verify the required parameter 'assistantId' is set
266
+ if (assistantId === undefined || assistantId === null) {
267
+ throw 'Missing the required parameter "assistantId" when calling patchAssistant';
268
+ }
269
+ // verify the required parameter 'body' is set
270
+ if (body === undefined || body === null) {
271
+ throw 'Missing the required parameter "body" when calling patchAssistant';
272
+ }
273
+
274
+ return this.apiClient.callApi(
275
+ '/api/v2/assistants/{assistantId}',
276
+ 'PATCH',
277
+ { 'assistantId': assistantId },
278
+ { },
279
+ { },
280
+ { },
281
+ body,
282
+ ['PureCloud OAuth'],
283
+ ['application/json'],
284
+ ['application/json']
285
+ );
286
+ }
287
+
288
+ /**
289
+ * Update Queues for an Assistant.
290
+ *
291
+ * @param {String} assistantId Assistant ID
292
+ * @param {Array.<Object>} body
293
+ */
294
+ patchAssistantQueues(assistantId, body) {
295
+ // verify the required parameter 'assistantId' is set
296
+ if (assistantId === undefined || assistantId === null) {
297
+ throw 'Missing the required parameter "assistantId" when calling patchAssistantQueues';
298
+ }
299
+ // verify the required parameter 'body' is set
300
+ if (body === undefined || body === null) {
301
+ throw 'Missing the required parameter "body" when calling patchAssistantQueues';
302
+ }
303
+
304
+ return this.apiClient.callApi(
305
+ '/api/v2/assistants/{assistantId}/queues',
306
+ 'PATCH',
307
+ { 'assistantId': assistantId },
308
+ { },
309
+ { },
310
+ { },
311
+ body,
312
+ ['PureCloud OAuth'],
313
+ ['application/json'],
314
+ ['application/json']
315
+ );
316
+ }
317
+
318
+ /**
319
+ * Create an Assistant.
320
+ *
321
+ * @param {Object} body
322
+ */
323
+ postAssistants(body) {
324
+ // verify the required parameter 'body' is set
325
+ if (body === undefined || body === null) {
326
+ throw 'Missing the required parameter "body" when calling postAssistants';
327
+ }
328
+
329
+ return this.apiClient.callApi(
330
+ '/api/v2/assistants',
331
+ 'POST',
332
+ { },
333
+ { },
334
+ { },
335
+ { },
336
+ body,
337
+ ['PureCloud OAuth'],
338
+ ['application/json'],
339
+ ['application/json']
340
+ );
341
+ }
342
+
343
+ /**
344
+ * Create a queue assistant association.
345
+ *
346
+ * @param {String} assistantId Assistant ID
347
+ * @param {String} queueId Queue ID
348
+ * @param {Object} body
349
+ */
350
+ putAssistantQueue(assistantId, queueId, body) {
351
+ // verify the required parameter 'assistantId' is set
352
+ if (assistantId === undefined || assistantId === null) {
353
+ throw 'Missing the required parameter "assistantId" when calling putAssistantQueue';
354
+ }
355
+ // verify the required parameter 'queueId' is set
356
+ if (queueId === undefined || queueId === null) {
357
+ throw 'Missing the required parameter "queueId" when calling putAssistantQueue';
358
+ }
359
+ // verify the required parameter 'body' is set
360
+ if (body === undefined || body === null) {
361
+ throw 'Missing the required parameter "body" when calling putAssistantQueue';
362
+ }
363
+
364
+ return this.apiClient.callApi(
365
+ '/api/v2/assistants/{assistantId}/queues/{queueId}',
366
+ 'PUT',
367
+ { 'assistantId': assistantId,'queueId': queueId },
368
+ { },
369
+ { },
370
+ { },
371
+ body,
372
+ ['PureCloud OAuth'],
373
+ ['application/json'],
374
+ ['application/json']
375
+ );
376
+ }
377
+
378
+ }
379
+
380
+
381
+ export default AgentAssistantsApi;
@@ -0,0 +1,81 @@
1
+ import ApiClient from '../ApiClient.js';
2
+
3
+
4
+ class AgentCopilotApi {
5
+ /**
6
+ * AgentCopilot service.
7
+ * @module purecloud-platform-client-v2/api/AgentCopilotApi
8
+ * @version 204.0.0
9
+ */
10
+
11
+ /**
12
+ * Constructs a new AgentCopilotApi.
13
+ * @alias module:purecloud-platform-client-v2/api/AgentCopilotApi
14
+ * @class
15
+ * @param {module:purecloud-platform-client-v2/ApiClient} apiClient Optional API client implementation to use,
16
+ * default to {@link module:purecloud-platform-client-v2/ApiClient#instance} if unspecified.
17
+ */
18
+ constructor(apiClient) {
19
+ this.apiClient = apiClient || ApiClient.instance;
20
+ }
21
+
22
+
23
+ /**
24
+ * Get copilot configuration of an assistant.
25
+ *
26
+ * @param {String} assistantId Assistant ID
27
+ */
28
+ getAssistantCopilot(assistantId) {
29
+ // verify the required parameter 'assistantId' is set
30
+ if (assistantId === undefined || assistantId === null) {
31
+ throw 'Missing the required parameter "assistantId" when calling getAssistantCopilot';
32
+ }
33
+
34
+ return this.apiClient.callApi(
35
+ '/api/v2/assistants/{assistantId}/copilot',
36
+ 'GET',
37
+ { 'assistantId': assistantId },
38
+ { },
39
+ { },
40
+ { },
41
+ null,
42
+ ['PureCloud OAuth'],
43
+ ['application/json'],
44
+ ['application/json']
45
+ );
46
+ }
47
+
48
+ /**
49
+ * Update agent copilot configuration
50
+ *
51
+ * @param {String} assistantId Assistant ID
52
+ * @param {Object} body
53
+ */
54
+ putAssistantCopilot(assistantId, body) {
55
+ // verify the required parameter 'assistantId' is set
56
+ if (assistantId === undefined || assistantId === null) {
57
+ throw 'Missing the required parameter "assistantId" when calling putAssistantCopilot';
58
+ }
59
+ // verify the required parameter 'body' is set
60
+ if (body === undefined || body === null) {
61
+ throw 'Missing the required parameter "body" when calling putAssistantCopilot';
62
+ }
63
+
64
+ return this.apiClient.callApi(
65
+ '/api/v2/assistants/{assistantId}/copilot',
66
+ 'PUT',
67
+ { 'assistantId': assistantId },
68
+ { },
69
+ { },
70
+ { },
71
+ body,
72
+ ['PureCloud OAuth'],
73
+ ['application/json'],
74
+ ['application/json']
75
+ );
76
+ }
77
+
78
+ }
79
+
80
+
81
+ export default AgentCopilotApi;
@@ -5,7 +5,7 @@ class AgentUIApi {
5
5
  /**
6
6
  * AgentUI service.
7
7
  * @module purecloud-platform-client-v2/api/AgentUIApi
8
- * @version 202.1.0
8
+ * @version 204.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class AlertingApi {
5
5
  /**
6
6
  * Alerting service.
7
7
  * @module purecloud-platform-client-v2/api/AlertingApi
8
- * @version 202.1.0
8
+ * @version 204.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class AnalyticsApi {
5
5
  /**
6
6
  * Analytics service.
7
7
  * @module purecloud-platform-client-v2/api/AnalyticsApi
8
- * @version 202.1.0
8
+ * @version 204.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -946,6 +946,7 @@ class AnalyticsApi {
946
946
  * @param {Object} dashboardType List dashboard of given type
947
947
  * @param {Object} dashboardAccessFilter Filter dashboard based on the owner of dashboard
948
948
  * @param {Object} opts Optional parameters
949
+ * @param {String} opts.name name of the dashboard
949
950
  * @param {String} opts.sortBy (default to desc)
950
951
  * @param {Number} opts.pageNumber (default to 1)
951
952
  * @param {Number} opts.pageSize (default to 9)
@@ -966,7 +967,7 @@ class AnalyticsApi {
966
967
  '/api/v2/analytics/reporting/settings/dashboards/query',
967
968
  'GET',
968
969
  { },
969
- { 'dashboardType': dashboardType,'dashboardAccessFilter': dashboardAccessFilter,'sortBy': opts['sortBy'],'pageNumber': opts['pageNumber'],'pageSize': opts['pageSize'] },
970
+ { 'name': opts['name'],'dashboardType': dashboardType,'dashboardAccessFilter': dashboardAccessFilter,'sortBy': opts['sortBy'],'pageNumber': opts['pageNumber'],'pageSize': opts['pageSize'] },
970
971
  { },
971
972
  { },
972
973
  null,
@@ -1471,7 +1472,6 @@ class AnalyticsApi {
1471
1472
  * Query for agent copilot aggregates
1472
1473
  *
1473
1474
  * @param {Object} body query
1474
- * postAnalyticsAgentcopilotsAggregatesQuery is a preview method and is subject to both breaking and non-breaking changes at any time without notice
1475
1475
  */
1476
1476
  postAnalyticsAgentcopilotsAggregatesQuery(body) {
1477
1477
  // verify the required parameter 'body' is set
@@ -5,7 +5,7 @@ class ArchitectApi {
5
5
  /**
6
6
  * Architect service.
7
7
  * @module purecloud-platform-client-v2/api/ArchitectApi
8
- * @version 202.1.0
8
+ * @version 204.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -412,7 +412,6 @@ class ArchitectApi {
412
412
  * Deletes a log level for a flow by flow id.
413
413
  * Deletes the associated log level for a flow by flow id
414
414
  * @param {String} flowId The flow id to delete the loglevel for
415
- * deleteFlowInstancesSettingsLoglevels is a preview method and is subject to both breaking and non-breaking changes at any time without notice
416
415
  */
417
416
  deleteFlowInstancesSettingsLoglevels(flowId) {
418
417
  // verify the required parameter 'flowId' is set
@@ -521,7 +520,6 @@ class ArchitectApi {
521
520
  /**
522
521
  * Resets the org log level to default, base
523
522
  * Resets the org log level to default, base
524
- * deleteFlowsInstancesSettingsLoglevelsDefault is a preview method and is subject to both breaking and non-breaking changes at any time without notice
525
523
  */
526
524
  deleteFlowsInstancesSettingsLoglevelsDefault() {
527
525
 
@@ -1672,7 +1670,6 @@ class ArchitectApi {
1672
1670
  * @param {String} flowId The flow id to get the loglevel for
1673
1671
  * @param {Object} opts Optional parameters
1674
1672
  * @param {Array.<String>} opts.expand Expand instructions for the result
1675
- * getFlowInstancesSettingsLoglevels is a preview method and is subject to both breaking and non-breaking changes at any time without notice
1676
1673
  */
1677
1674
  getFlowInstancesSettingsLoglevels(flowId, opts) {
1678
1675
  opts = opts || {};
@@ -2400,7 +2397,6 @@ class ArchitectApi {
2400
2397
  /**
2401
2398
  * Get the execution history enabled setting.
2402
2399
  * Get the execution history enabled setting.
2403
- * getFlowsInstancesSettingsExecutiondata is a preview method and is subject to both breaking and non-breaking changes at any time without notice
2404
2400
  */
2405
2401
  getFlowsInstancesSettingsExecutiondata() {
2406
2402
 
@@ -2425,7 +2421,6 @@ class ArchitectApi {
2425
2421
  * @param {Array.<String>} opts.expand Expand instructions for the result
2426
2422
  * @param {Number} opts.pageNumber Page number (default to 1)
2427
2423
  * @param {Number} opts.pageSize Number of entities to return. Maximum of 200. (default to 25)
2428
- * getFlowsInstancesSettingsLoglevels is a preview method and is subject to both breaking and non-breaking changes at any time without notice
2429
2424
  */
2430
2425
  getFlowsInstancesSettingsLoglevels(opts) {
2431
2426
  opts = opts || {};
@@ -2448,7 +2443,6 @@ class ArchitectApi {
2448
2443
  /**
2449
2444
  * Gets the available flow log level characteristics for this organization.
2450
2445
  * Log levels can be customized and this returns the set of available characteristics that can be enabled/disabled.
2451
- * getFlowsInstancesSettingsLoglevelsCharacteristics is a preview method and is subject to both breaking and non-breaking changes at any time without notice
2452
2446
  */
2453
2447
  getFlowsInstancesSettingsLoglevelsCharacteristics() {
2454
2448
 
@@ -2471,7 +2465,6 @@ class ArchitectApi {
2471
2465
  * Returns the flow default log level which will be used if no specific flow id log level is found.
2472
2466
  * @param {Object} opts Optional parameters
2473
2467
  * @param {Array.<String>} opts.expand Expand instructions for the result
2474
- * getFlowsInstancesSettingsLoglevelsDefault is a preview method and is subject to both breaking and non-breaking changes at any time without notice
2475
2468
  */
2476
2469
  getFlowsInstancesSettingsLoglevelsDefault(opts) {
2477
2470
  opts = opts || {};
@@ -2763,7 +2756,6 @@ class ArchitectApi {
2763
2756
  * Edit the execution history enabled setting.
2764
2757
  * Edit the execution history enabled setting.
2765
2758
  * @param {Object} body New Execution Data Setting
2766
- * patchFlowsInstancesSettingsExecutiondata is a preview method and is subject to both breaking and non-breaking changes at any time without notice
2767
2759
  */
2768
2760
  patchFlowsInstancesSettingsExecutiondata(body) {
2769
2761
  // verify the required parameter 'body' is set
@@ -3201,7 +3193,6 @@ class ArchitectApi {
3201
3193
  * @param {Object} body New LogLevel settings
3202
3194
  * @param {Object} opts Optional parameters
3203
3195
  * @param {Array.<String>} opts.expand Expand instructions for the result
3204
- * postFlowInstancesSettingsLoglevels is a preview method and is subject to both breaking and non-breaking changes at any time without notice
3205
3196
  */
3206
3197
  postFlowInstancesSettingsLoglevels(flowId, body, opts) {
3207
3198
  opts = opts || {};
@@ -3961,7 +3952,6 @@ class ArchitectApi {
3961
3952
  * @param {Object} body New LogLevel settings
3962
3953
  * @param {Object} opts Optional parameters
3963
3954
  * @param {Array.<String>} opts.expand Expand instructions for the result
3964
- * putFlowInstancesSettingsLoglevels is a preview method and is subject to both breaking and non-breaking changes at any time without notice
3965
3955
  */
3966
3956
  putFlowInstancesSettingsLoglevels(flowId, body, opts) {
3967
3957
  opts = opts || {};
@@ -4063,7 +4053,6 @@ class ArchitectApi {
4063
4053
  * @param {Object} body New LogLevel settings
4064
4054
  * @param {Object} opts Optional parameters
4065
4055
  * @param {Array.<String>} opts.expand Expand instructions for the result
4066
- * putFlowsInstancesSettingsLoglevelsDefault is a preview method and is subject to both breaking and non-breaking changes at any time without notice
4067
4056
  */
4068
4057
  putFlowsInstancesSettingsLoglevelsDefault(body, opts) {
4069
4058
  opts = opts || {};
@@ -5,7 +5,7 @@ class AuditApi {
5
5
  /**
6
6
  * Audit service.
7
7
  * @module purecloud-platform-client-v2/api/AuditApi
8
- * @version 202.1.0
8
+ * @version 204.0.0
9
9
  */
10
10
 
11
11
  /**