purecloud-platform-client-v2 171.0.0 → 173.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 (82) hide show
  1. package/README.md +2 -2
  2. package/dist/node/purecloud-platform-client-v2.js +1056 -91
  3. package/dist/web-amd/purecloud-platform-client-v2.js +1056 -91
  4. package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
  5. package/dist/web-cjs/bundle.js +1056 -91
  6. package/dist/web-cjs/purecloud-platform-client-v2.js +1056 -91
  7. package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
  8. package/index.d.ts +631 -214
  9. package/package.json +1 -1
  10. package/src/purecloud-platform-client-v2/ApiClient.js +1 -1
  11. package/src/purecloud-platform-client-v2/api/AlertingApi.js +337 -1
  12. package/src/purecloud-platform-client-v2/api/AnalyticsApi.js +1 -1
  13. package/src/purecloud-platform-client-v2/api/ArchitectApi.js +1 -1
  14. package/src/purecloud-platform-client-v2/api/AuditApi.js +1 -1
  15. package/src/purecloud-platform-client-v2/api/AuthorizationApi.js +1 -1
  16. package/src/purecloud-platform-client-v2/api/BillingApi.js +1 -1
  17. package/src/purecloud-platform-client-v2/api/CarrierServicesApi.js +1 -1
  18. package/src/purecloud-platform-client-v2/api/ChatApi.js +1 -1
  19. package/src/purecloud-platform-client-v2/api/CoachingApi.js +1 -1
  20. package/src/purecloud-platform-client-v2/api/ContentManagementApi.js +1 -1
  21. package/src/purecloud-platform-client-v2/api/ConversationsApi.js +259 -9
  22. package/src/purecloud-platform-client-v2/api/DataExtensionsApi.js +1 -1
  23. package/src/purecloud-platform-client-v2/api/DownloadsApi.js +1 -1
  24. package/src/purecloud-platform-client-v2/api/EmailsApi.js +70 -0
  25. package/src/purecloud-platform-client-v2/api/EventsApi.js +1 -1
  26. package/src/purecloud-platform-client-v2/api/ExternalContactsApi.js +1 -1
  27. package/src/purecloud-platform-client-v2/api/FaxApi.js +1 -1
  28. package/src/purecloud-platform-client-v2/api/FlowsApi.js +1 -1
  29. package/src/purecloud-platform-client-v2/api/GamificationApi.js +1 -1
  30. package/src/purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi.js +1 -1
  31. package/src/purecloud-platform-client-v2/api/GeolocationApi.js +1 -1
  32. package/src/purecloud-platform-client-v2/api/GreetingsApi.js +1 -1
  33. package/src/purecloud-platform-client-v2/api/GroupsApi.js +1 -1
  34. package/src/purecloud-platform-client-v2/api/IdentityProviderApi.js +1 -1
  35. package/src/purecloud-platform-client-v2/api/InfrastructureAsCodeApi.js +1 -1
  36. package/src/purecloud-platform-client-v2/api/IntegrationsApi.js +1 -1
  37. package/src/purecloud-platform-client-v2/api/JourneyApi.js +1 -1
  38. package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +10 -4
  39. package/src/purecloud-platform-client-v2/api/LanguageUnderstandingApi.js +1 -1
  40. package/src/purecloud-platform-client-v2/api/LanguagesApi.js +1 -1
  41. package/src/purecloud-platform-client-v2/api/LearningApi.js +1 -1
  42. package/src/purecloud-platform-client-v2/api/LicenseApi.js +3 -3
  43. package/src/purecloud-platform-client-v2/api/LocationsApi.js +1 -1
  44. package/src/purecloud-platform-client-v2/api/MessagingApi.js +204 -1
  45. package/src/purecloud-platform-client-v2/api/MobileDevicesApi.js +1 -1
  46. package/src/purecloud-platform-client-v2/api/NotificationsApi.js +1 -1
  47. package/src/purecloud-platform-client-v2/api/OAuthApi.js +1 -1
  48. package/src/purecloud-platform-client-v2/api/ObjectsApi.js +1 -1
  49. package/src/purecloud-platform-client-v2/api/OrganizationApi.js +1 -1
  50. package/src/purecloud-platform-client-v2/api/OrganizationAuthorizationApi.js +1 -1
  51. package/src/purecloud-platform-client-v2/api/OutboundApi.js +1 -1
  52. package/src/purecloud-platform-client-v2/api/PresenceApi.js +1 -1
  53. package/src/purecloud-platform-client-v2/api/ProcessAutomationApi.js +1 -1
  54. package/src/purecloud-platform-client-v2/api/QualityApi.js +1 -1
  55. package/src/purecloud-platform-client-v2/api/RecordingApi.js +1 -1
  56. package/src/purecloud-platform-client-v2/api/ResponseManagementApi.js +1 -1
  57. package/src/purecloud-platform-client-v2/api/RoutingApi.js +1 -1
  58. package/src/purecloud-platform-client-v2/api/SCIMApi.js +1 -1
  59. package/src/purecloud-platform-client-v2/api/ScriptsApi.js +1 -1
  60. package/src/purecloud-platform-client-v2/api/SearchApi.js +1 -1
  61. package/src/purecloud-platform-client-v2/api/SettingsApi.js +70 -0
  62. package/src/purecloud-platform-client-v2/api/SpeechTextAnalyticsApi.js +31 -1
  63. package/src/purecloud-platform-client-v2/api/StationsApi.js +1 -1
  64. package/src/purecloud-platform-client-v2/api/SuggestApi.js +1 -1
  65. package/src/purecloud-platform-client-v2/api/TaskManagementApi.js +1 -1
  66. package/src/purecloud-platform-client-v2/api/TeamsApi.js +1 -1
  67. package/src/purecloud-platform-client-v2/api/TelephonyApi.js +1 -1
  68. package/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js +2 -2
  69. package/src/purecloud-platform-client-v2/api/TextbotsApi.js +1 -1
  70. package/src/purecloud-platform-client-v2/api/TokensApi.js +1 -1
  71. package/src/purecloud-platform-client-v2/api/UploadsApi.js +1 -1
  72. package/src/purecloud-platform-client-v2/api/UsageApi.js +1 -1
  73. package/src/purecloud-platform-client-v2/api/UserRecordingsApi.js +1 -1
  74. package/src/purecloud-platform-client-v2/api/UsersApi.js +1 -1
  75. package/src/purecloud-platform-client-v2/api/UtilitiesApi.js +1 -1
  76. package/src/purecloud-platform-client-v2/api/VoicemailApi.js +1 -1
  77. package/src/purecloud-platform-client-v2/api/WebChatApi.js +1 -1
  78. package/src/purecloud-platform-client-v2/api/WebDeploymentsApi.js +1 -1
  79. package/src/purecloud-platform-client-v2/api/WebMessagingApi.js +1 -1
  80. package/src/purecloud-platform-client-v2/api/WidgetsApi.js +1 -1
  81. package/src/purecloud-platform-client-v2/api/WorkforceManagementApi.js +7 -7
  82. package/src/purecloud-platform-client-v2/index.js +13 -1
@@ -5,7 +5,7 @@ class ConversationsApi {
5
5
  /**
6
6
  * Conversations service.
7
7
  * @module purecloud-platform-client-v2/api/ConversationsApi
8
- * @version 171.0.0
8
+ * @version 173.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -320,6 +320,51 @@ class ConversationsApi {
320
320
  );
321
321
  }
322
322
 
323
+ /**
324
+ * Delete a messaging setting
325
+ *
326
+ * @param {String} messageSettingId Message Setting ID
327
+ */
328
+ deleteConversationsMessagingSetting(messageSettingId) {
329
+ // verify the required parameter 'messageSettingId' is set
330
+ if (messageSettingId === undefined || messageSettingId === null) {
331
+ throw 'Missing the required parameter "messageSettingId" when calling deleteConversationsMessagingSetting';
332
+ }
333
+
334
+ return this.apiClient.callApi(
335
+ '/api/v2/conversations/messaging/settings/{messageSettingId}',
336
+ 'DELETE',
337
+ { 'messageSettingId': messageSettingId },
338
+ { },
339
+ { },
340
+ { },
341
+ null,
342
+ ['PureCloud OAuth'],
343
+ ['application/json'],
344
+ ['application/json']
345
+ );
346
+ }
347
+
348
+ /**
349
+ * Delete the organization's default setting, a global default will be applied to integrations without settings
350
+ * When an integration is created a settings ID may be assigned to it. If the settings ID is not supplied, the default settings will be assigned to it.
351
+ */
352
+ deleteConversationsMessagingSettingsDefault() {
353
+
354
+ return this.apiClient.callApi(
355
+ '/api/v2/conversations/messaging/settings/default',
356
+ 'DELETE',
357
+ { },
358
+ { },
359
+ { },
360
+ { },
361
+ null,
362
+ ['PureCloud OAuth'],
363
+ ['application/json'],
364
+ ['application/json']
365
+ );
366
+ }
367
+
323
368
  /**
324
369
  * Delete a supported content profile
325
370
  *
@@ -2363,6 +2408,76 @@ class ConversationsApi {
2363
2408
  );
2364
2409
  }
2365
2410
 
2411
+ /**
2412
+ * Get a messaging setting
2413
+ *
2414
+ * @param {String} messageSettingId Message Setting ID
2415
+ */
2416
+ getConversationsMessagingSetting(messageSettingId) {
2417
+ // verify the required parameter 'messageSettingId' is set
2418
+ if (messageSettingId === undefined || messageSettingId === null) {
2419
+ throw 'Missing the required parameter "messageSettingId" when calling getConversationsMessagingSetting';
2420
+ }
2421
+
2422
+ return this.apiClient.callApi(
2423
+ '/api/v2/conversations/messaging/settings/{messageSettingId}',
2424
+ 'GET',
2425
+ { 'messageSettingId': messageSettingId },
2426
+ { },
2427
+ { },
2428
+ { },
2429
+ null,
2430
+ ['PureCloud OAuth'],
2431
+ ['application/json'],
2432
+ ['application/json']
2433
+ );
2434
+ }
2435
+
2436
+ /**
2437
+ * Get a list of messaging settings
2438
+ *
2439
+ * @param {Object} opts Optional parameters
2440
+ * @param {Number} opts.pageSize Page size (default to 25)
2441
+ * @param {Number} opts.pageNumber Page number (default to 1)
2442
+ */
2443
+ getConversationsMessagingSettings(opts) {
2444
+ opts = opts || {};
2445
+
2446
+
2447
+ return this.apiClient.callApi(
2448
+ '/api/v2/conversations/messaging/settings',
2449
+ 'GET',
2450
+ { },
2451
+ { 'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'] },
2452
+ { },
2453
+ { },
2454
+ null,
2455
+ ['PureCloud OAuth'],
2456
+ ['application/json'],
2457
+ ['application/json']
2458
+ );
2459
+ }
2460
+
2461
+ /**
2462
+ * Get the organization's default settings that will be used as the default when creating an integration.
2463
+ * When an integration is created a settings ID may be assigned to it. If the settings ID is not supplied, the default settings will be assigned to it.
2464
+ */
2465
+ getConversationsMessagingSettingsDefault() {
2466
+
2467
+ return this.apiClient.callApi(
2468
+ '/api/v2/conversations/messaging/settings/default',
2469
+ 'GET',
2470
+ { },
2471
+ { },
2472
+ { },
2473
+ { },
2474
+ null,
2475
+ ['PureCloud OAuth'],
2476
+ ['application/json'],
2477
+ ['application/json']
2478
+ );
2479
+ }
2480
+
2366
2481
  /**
2367
2482
  * Get a list of Messaging Stickers
2368
2483
  *
@@ -3863,6 +3978,36 @@ class ConversationsApi {
3863
3978
  );
3864
3979
  }
3865
3980
 
3981
+ /**
3982
+ * Update a messaging setting
3983
+ *
3984
+ * @param {String} messageSettingId Message Setting ID
3985
+ * @param {Object} body MessagingSetting
3986
+ */
3987
+ patchConversationsMessagingSetting(messageSettingId, body) {
3988
+ // verify the required parameter 'messageSettingId' is set
3989
+ if (messageSettingId === undefined || messageSettingId === null) {
3990
+ throw 'Missing the required parameter "messageSettingId" when calling patchConversationsMessagingSetting';
3991
+ }
3992
+ // verify the required parameter 'body' is set
3993
+ if (body === undefined || body === null) {
3994
+ throw 'Missing the required parameter "body" when calling patchConversationsMessagingSetting';
3995
+ }
3996
+
3997
+ return this.apiClient.callApi(
3998
+ '/api/v2/conversations/messaging/settings/{messageSettingId}',
3999
+ 'PATCH',
4000
+ { 'messageSettingId': messageSettingId },
4001
+ { },
4002
+ { },
4003
+ { },
4004
+ body,
4005
+ ['PureCloud OAuth'],
4006
+ ['application/json'],
4007
+ ['application/json']
4008
+ );
4009
+ }
4010
+
3866
4011
  /**
3867
4012
  * Update a supported content profile
3868
4013
  *
@@ -4110,6 +4255,32 @@ class ConversationsApi {
4110
4255
  );
4111
4256
  }
4112
4257
 
4258
+ /**
4259
+ * Barge a conversation creating a barged in conference of connected participants.
4260
+ *
4261
+ * @param {String} conversationId conversation ID
4262
+ * postConversationBarge is a preview method and is subject to both breaking and non-breaking changes at any time without notice
4263
+ */
4264
+ postConversationBarge(conversationId) {
4265
+ // verify the required parameter 'conversationId' is set
4266
+ if (conversationId === undefined || conversationId === null) {
4267
+ throw 'Missing the required parameter "conversationId" when calling postConversationBarge';
4268
+ }
4269
+
4270
+ return this.apiClient.callApi(
4271
+ '/api/v2/conversations/{conversationId}/barge',
4272
+ 'POST',
4273
+ { 'conversationId': conversationId },
4274
+ { },
4275
+ { },
4276
+ { },
4277
+ null,
4278
+ ['PureCloud OAuth'],
4279
+ ['application/json'],
4280
+ ['application/json']
4281
+ );
4282
+ }
4283
+
4113
4284
  /**
4114
4285
  * Creates a cobrowse session. Requires conversation:cobrowse:add (for web messaging) or conversation:cobrowsevoice:add permission.
4115
4286
  *
@@ -4234,7 +4405,6 @@ class ConversationsApi {
4234
4405
  * @param {String} conversationId conversation ID
4235
4406
  * @param {String} participantId participant ID
4236
4407
  * @param {Object} body Transfer request
4237
- * @deprecated
4238
4408
  */
4239
4409
  postConversationParticipantReplace(conversationId, participantId, body) {
4240
4410
  // verify the required parameter 'conversationId' is set
@@ -4270,6 +4440,7 @@ class ConversationsApi {
4270
4440
  * @param {String} conversationId conversation ID
4271
4441
  * @param {String} participantId participant ID
4272
4442
  * @param {Object} body Transfer request
4443
+ * postConversationParticipantReplaceAgent is a preview method and is subject to both breaking and non-breaking changes at any time without notice
4273
4444
  */
4274
4445
  postConversationParticipantReplaceAgent(conversationId, participantId, body) {
4275
4446
  // verify the required parameter 'conversationId' is set
@@ -4305,6 +4476,7 @@ class ConversationsApi {
4305
4476
  * @param {String} conversationId conversation ID
4306
4477
  * @param {String} participantId participant ID
4307
4478
  * @param {Object} body Transfer request
4479
+ * postConversationParticipantReplaceExternal is a preview method and is subject to both breaking and non-breaking changes at any time without notice
4308
4480
  */
4309
4481
  postConversationParticipantReplaceExternal(conversationId, participantId, body) {
4310
4482
  // verify the required parameter 'conversationId' is set
@@ -4340,6 +4512,7 @@ class ConversationsApi {
4340
4512
  * @param {String} conversationId conversation ID
4341
4513
  * @param {String} participantId participant ID
4342
4514
  * @param {Object} body Transfer request
4515
+ * postConversationParticipantReplaceQueue is a preview method and is subject to both breaking and non-breaking changes at any time without notice
4343
4516
  */
4344
4517
  postConversationParticipantReplaceQueue(conversationId, participantId, body) {
4345
4518
  // verify the required parameter 'conversationId' is set
@@ -4433,6 +4606,37 @@ class ConversationsApi {
4433
4606
  );
4434
4607
  }
4435
4608
 
4609
+ /**
4610
+ * Barge a given participant's call creating a barged in conference of connected participants.
4611
+ *
4612
+ * @param {String} conversationId conversationId
4613
+ * @param {String} participantId participantId
4614
+ * postConversationsCallParticipantBarge is a preview method and is subject to both breaking and non-breaking changes at any time without notice
4615
+ */
4616
+ postConversationsCallParticipantBarge(conversationId, participantId) {
4617
+ // verify the required parameter 'conversationId' is set
4618
+ if (conversationId === undefined || conversationId === null) {
4619
+ throw 'Missing the required parameter "conversationId" when calling postConversationsCallParticipantBarge';
4620
+ }
4621
+ // verify the required parameter 'participantId' is set
4622
+ if (participantId === undefined || participantId === null) {
4623
+ throw 'Missing the required parameter "participantId" when calling postConversationsCallParticipantBarge';
4624
+ }
4625
+
4626
+ return this.apiClient.callApi(
4627
+ '/api/v2/conversations/calls/{conversationId}/participants/{participantId}/barge',
4628
+ 'POST',
4629
+ { 'conversationId': conversationId,'participantId': participantId },
4630
+ { },
4631
+ { },
4632
+ { },
4633
+ null,
4634
+ ['PureCloud OAuth'],
4635
+ ['application/json'],
4636
+ ['application/json']
4637
+ );
4638
+ }
4639
+
4436
4640
  /**
4437
4641
  * Listen in on the conversation from the point of view of a given participant while speaking to just the given participant.
4438
4642
  *
@@ -4508,7 +4712,6 @@ class ConversationsApi {
4508
4712
  * @param {String} conversationId conversationId
4509
4713
  * @param {String} participantId participantId
4510
4714
  * @param {Object} body Destination address and initial speak to
4511
- * @deprecated
4512
4715
  */
4513
4716
  postConversationsCallParticipantConsult(conversationId, participantId, body) {
4514
4717
  // verify the required parameter 'conversationId' is set
@@ -4544,6 +4747,7 @@ class ConversationsApi {
4544
4747
  * @param {String} conversationId conversationId
4545
4748
  * @param {String} participantId participantId
4546
4749
  * @param {Object} body Destination agent and initial speak to
4750
+ * postConversationsCallParticipantConsultAgent is a preview method and is subject to both breaking and non-breaking changes at any time without notice
4547
4751
  */
4548
4752
  postConversationsCallParticipantConsultAgent(conversationId, participantId, body) {
4549
4753
  // verify the required parameter 'conversationId' is set
@@ -4579,6 +4783,7 @@ class ConversationsApi {
4579
4783
  * @param {String} conversationId conversationId
4580
4784
  * @param {String} participantId participantId
4581
4785
  * @param {Object} body Destination address and initial speak to
4786
+ * postConversationsCallParticipantConsultExternal is a preview method and is subject to both breaking and non-breaking changes at any time without notice
4582
4787
  */
4583
4788
  postConversationsCallParticipantConsultExternal(conversationId, participantId, body) {
4584
4789
  // verify the required parameter 'conversationId' is set
@@ -4614,6 +4819,7 @@ class ConversationsApi {
4614
4819
  * @param {String} conversationId conversationId
4615
4820
  * @param {String} participantId participantId
4616
4821
  * @param {Object} body Destination queue and initial speak to
4822
+ * postConversationsCallParticipantConsultQueue is a preview method and is subject to both breaking and non-breaking changes at any time without notice
4617
4823
  */
4618
4824
  postConversationsCallParticipantConsultQueue(conversationId, participantId, body) {
4619
4825
  // verify the required parameter 'conversationId' is set
@@ -4679,7 +4885,6 @@ class ConversationsApi {
4679
4885
  * @param {String} conversationId conversationId
4680
4886
  * @param {String} participantId participantId
4681
4887
  * @param {Object} body Transfer request
4682
- * @deprecated
4683
4888
  */
4684
4889
  postConversationsCallParticipantReplace(conversationId, participantId, body) {
4685
4890
  // verify the required parameter 'conversationId' is set
@@ -4784,7 +4989,6 @@ class ConversationsApi {
4784
4989
  * @param {String} conversationId conversationId
4785
4990
  * @param {String} participantId participantId
4786
4991
  * @param {Object} body Transfer request
4787
- * @deprecated
4788
4992
  */
4789
4993
  postConversationsCallbackParticipantReplace(conversationId, participantId, body) {
4790
4994
  // verify the required parameter 'conversationId' is set
@@ -5024,7 +5228,6 @@ class ConversationsApi {
5024
5228
  * @param {String} conversationId conversationId
5025
5229
  * @param {String} participantId participantId
5026
5230
  * @param {Object} body Transfer request
5027
- * @deprecated
5028
5231
  */
5029
5232
  postConversationsChatParticipantReplace(conversationId, participantId, body) {
5030
5233
  // verify the required parameter 'conversationId' is set
@@ -5125,7 +5328,6 @@ class ConversationsApi {
5125
5328
  * @param {String} participantId participantId
5126
5329
  * @param {Object} opts Optional parameters
5127
5330
  * @param {Object} opts.body
5128
- * @deprecated
5129
5331
  */
5130
5332
  postConversationsCobrowsesessionParticipantReplace(conversationId, participantId, opts) {
5131
5333
  opts = opts || {};
@@ -5288,7 +5490,6 @@ class ConversationsApi {
5288
5490
  * @param {String} conversationId conversationId
5289
5491
  * @param {String} participantId participantId
5290
5492
  * @param {Object} body Transfer request
5291
- * @deprecated
5292
5493
  */
5293
5494
  postConversationsEmailParticipantReplace(conversationId, participantId, body) {
5294
5495
  // verify the required parameter 'conversationId' is set
@@ -5653,7 +5854,6 @@ class ConversationsApi {
5653
5854
  * @param {String} conversationId conversationId
5654
5855
  * @param {String} participantId participantId
5655
5856
  * @param {Object} body Transfer request
5656
- * @deprecated
5657
5857
  */
5658
5858
  postConversationsMessageParticipantReplace(conversationId, participantId, body) {
5659
5859
  // verify the required parameter 'conversationId' is set
@@ -5908,6 +6108,31 @@ class ConversationsApi {
5908
6108
  );
5909
6109
  }
5910
6110
 
6111
+ /**
6112
+ * Create a messaging setting
6113
+ *
6114
+ * @param {Object} body MessagingSetting
6115
+ */
6116
+ postConversationsMessagingSettings(body) {
6117
+ // verify the required parameter 'body' is set
6118
+ if (body === undefined || body === null) {
6119
+ throw 'Missing the required parameter "body" when calling postConversationsMessagingSettings';
6120
+ }
6121
+
6122
+ return this.apiClient.callApi(
6123
+ '/api/v2/conversations/messaging/settings',
6124
+ 'POST',
6125
+ { },
6126
+ { },
6127
+ { },
6128
+ { },
6129
+ body,
6130
+ ['PureCloud OAuth'],
6131
+ ['application/json'],
6132
+ ['application/json']
6133
+ );
6134
+ }
6135
+
5911
6136
  /**
5912
6137
  * Create a Supported Content profile
5913
6138
  *
@@ -6475,6 +6700,31 @@ class ConversationsApi {
6475
6700
  );
6476
6701
  }
6477
6702
 
6703
+ /**
6704
+ * Set the organization's default setting that may be applied to to integrations without settings
6705
+ * When an integration is created a settings ID may be assigned to it. If the settings ID is not supplied, the default settings will be assigned to it.
6706
+ * @param {Object} body MessagingSetting
6707
+ */
6708
+ putConversationsMessagingSettingsDefault(body) {
6709
+ // verify the required parameter 'body' is set
6710
+ if (body === undefined || body === null) {
6711
+ throw 'Missing the required parameter "body" when calling putConversationsMessagingSettingsDefault';
6712
+ }
6713
+
6714
+ return this.apiClient.callApi(
6715
+ '/api/v2/conversations/messaging/settings/default',
6716
+ 'PUT',
6717
+ { },
6718
+ { },
6719
+ { },
6720
+ { },
6721
+ body,
6722
+ ['PureCloud OAuth'],
6723
+ ['application/json'],
6724
+ ['application/json']
6725
+ );
6726
+ }
6727
+
6478
6728
  /**
6479
6729
  * Set the organization's default supported content profile that may be assigned to an integration when it is created.
6480
6730
  * When an integration is created a supported content ID may be assigned to it. If the supported content ID is not supplied, the default supported content profile will be assigned to it.
@@ -5,7 +5,7 @@ class DataExtensionsApi {
5
5
  /**
6
6
  * DataExtensions service.
7
7
  * @module purecloud-platform-client-v2/api/DataExtensionsApi
8
- * @version 171.0.0
8
+ * @version 173.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class DownloadsApi {
5
5
  /**
6
6
  * Downloads service.
7
7
  * @module purecloud-platform-client-v2/api/DownloadsApi
8
- * @version 171.0.0
8
+ * @version 173.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -0,0 +1,70 @@
1
+ import ApiClient from '../ApiClient.js';
2
+
3
+
4
+ class EmailsApi {
5
+ /**
6
+ * Emails service.
7
+ * @module purecloud-platform-client-v2/api/EmailsApi
8
+ * @version 173.0.0
9
+ */
10
+
11
+ /**
12
+ * Constructs a new EmailsApi.
13
+ * @alias module:purecloud-platform-client-v2/api/EmailsApi
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 email Contact Center settings
25
+ *
26
+ */
27
+ getEmailsSettings() {
28
+
29
+ return this.apiClient.callApi(
30
+ '/api/v2/emails/settings',
31
+ 'GET',
32
+ { },
33
+ { },
34
+ { },
35
+ { },
36
+ null,
37
+ ['PureCloud OAuth'],
38
+ ['application/json'],
39
+ ['application/json']
40
+ );
41
+ }
42
+
43
+ /**
44
+ * Patch email Contact Center settings
45
+ *
46
+ * @param {Object} opts Optional parameters
47
+ * @param {Object} opts.body
48
+ */
49
+ patchEmailsSettings(opts) {
50
+ opts = opts || {};
51
+
52
+
53
+ return this.apiClient.callApi(
54
+ '/api/v2/emails/settings',
55
+ 'PATCH',
56
+ { },
57
+ { },
58
+ { },
59
+ { },
60
+ opts['body'],
61
+ ['PureCloud OAuth'],
62
+ ['application/json'],
63
+ ['application/json']
64
+ );
65
+ }
66
+
67
+ }
68
+
69
+
70
+ export default EmailsApi;
@@ -5,7 +5,7 @@ class EventsApi {
5
5
  /**
6
6
  * Events service.
7
7
  * @module purecloud-platform-client-v2/api/EventsApi
8
- * @version 171.0.0
8
+ * @version 173.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class ExternalContactsApi {
5
5
  /**
6
6
  * ExternalContacts service.
7
7
  * @module purecloud-platform-client-v2/api/ExternalContactsApi
8
- * @version 171.0.0
8
+ * @version 173.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class FaxApi {
5
5
  /**
6
6
  * Fax service.
7
7
  * @module purecloud-platform-client-v2/api/FaxApi
8
- * @version 171.0.0
8
+ * @version 173.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class FlowsApi {
5
5
  /**
6
6
  * Flows service.
7
7
  * @module purecloud-platform-client-v2/api/FlowsApi
8
- * @version 171.0.0
8
+ * @version 173.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class GamificationApi {
5
5
  /**
6
6
  * Gamification service.
7
7
  * @module purecloud-platform-client-v2/api/GamificationApi
8
- * @version 171.0.0
8
+ * @version 173.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class GeneralDataProtectionRegulationApi {
5
5
  /**
6
6
  * GeneralDataProtectionRegulation service.
7
7
  * @module purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
8
- * @version 171.0.0
8
+ * @version 173.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class GeolocationApi {
5
5
  /**
6
6
  * Geolocation service.
7
7
  * @module purecloud-platform-client-v2/api/GeolocationApi
8
- * @version 171.0.0
8
+ * @version 173.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class GreetingsApi {
5
5
  /**
6
6
  * Greetings service.
7
7
  * @module purecloud-platform-client-v2/api/GreetingsApi
8
- * @version 171.0.0
8
+ * @version 173.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class GroupsApi {
5
5
  /**
6
6
  * Groups service.
7
7
  * @module purecloud-platform-client-v2/api/GroupsApi
8
- * @version 171.0.0
8
+ * @version 173.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class IdentityProviderApi {
5
5
  /**
6
6
  * IdentityProvider service.
7
7
  * @module purecloud-platform-client-v2/api/IdentityProviderApi
8
- * @version 171.0.0
8
+ * @version 173.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class InfrastructureAsCodeApi {
5
5
  /**
6
6
  * InfrastructureAsCode service.
7
7
  * @module purecloud-platform-client-v2/api/InfrastructureAsCodeApi
8
- * @version 171.0.0
8
+ * @version 173.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class IntegrationsApi {
5
5
  /**
6
6
  * Integrations service.
7
7
  * @module purecloud-platform-client-v2/api/IntegrationsApi
8
- * @version 171.0.0
8
+ * @version 173.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class JourneyApi {
5
5
  /**
6
6
  * Journey service.
7
7
  * @module purecloud-platform-client-v2/api/JourneyApi
8
- * @version 171.0.0
8
+ * @version 173.0.0
9
9
  */
10
10
 
11
11
  /**