purecloud-platform-client-v2 149.0.0 → 150.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 (77) hide show
  1. package/README.md +2 -2
  2. package/dist/node/purecloud-platform-client-v2.js +833 -74
  3. package/dist/web-amd/purecloud-platform-client-v2.js +833 -74
  4. package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
  5. package/dist/web-cjs/bundle.js +833 -74
  6. package/dist/web-cjs/purecloud-platform-client-v2.js +833 -74
  7. package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
  8. package/index.d.ts +789 -228
  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 +1 -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/ChatApi.js +1 -1
  18. package/src/purecloud-platform-client-v2/api/CoachingApi.js +1 -1
  19. package/src/purecloud-platform-client-v2/api/ContentManagementApi.js +1 -1
  20. package/src/purecloud-platform-client-v2/api/ConversationsApi.js +46 -8
  21. package/src/purecloud-platform-client-v2/api/DataExtensionsApi.js +1 -1
  22. package/src/purecloud-platform-client-v2/api/DownloadsApi.js +57 -0
  23. package/src/purecloud-platform-client-v2/api/EventsApi.js +101 -0
  24. package/src/purecloud-platform-client-v2/api/ExternalContactsApi.js +185 -1
  25. package/src/purecloud-platform-client-v2/api/FaxApi.js +1 -1
  26. package/src/purecloud-platform-client-v2/api/FlowsApi.js +1 -1
  27. package/src/purecloud-platform-client-v2/api/GamificationApi.js +1 -1
  28. package/src/purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi.js +1 -1
  29. package/src/purecloud-platform-client-v2/api/GeolocationApi.js +1 -1
  30. package/src/purecloud-platform-client-v2/api/GreetingsApi.js +1 -1
  31. package/src/purecloud-platform-client-v2/api/GroupsApi.js +1 -1
  32. package/src/purecloud-platform-client-v2/api/IdentityProviderApi.js +1 -1
  33. package/src/purecloud-platform-client-v2/api/IntegrationsApi.js +1 -1
  34. package/src/purecloud-platform-client-v2/api/JourneyApi.js +1 -1
  35. package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +1 -1
  36. package/src/purecloud-platform-client-v2/api/LanguageUnderstandingApi.js +1 -1
  37. package/src/purecloud-platform-client-v2/api/LanguagesApi.js +1 -1
  38. package/src/purecloud-platform-client-v2/api/LearningApi.js +1 -1
  39. package/src/purecloud-platform-client-v2/api/LicenseApi.js +1 -1
  40. package/src/purecloud-platform-client-v2/api/LocationsApi.js +1 -1
  41. package/src/purecloud-platform-client-v2/api/MessagingApi.js +1 -1
  42. package/src/purecloud-platform-client-v2/api/MobileDevicesApi.js +1 -1
  43. package/src/purecloud-platform-client-v2/api/NotificationsApi.js +1 -1
  44. package/src/purecloud-platform-client-v2/api/OAuthApi.js +1 -1
  45. package/src/purecloud-platform-client-v2/api/ObjectsApi.js +1 -1
  46. package/src/purecloud-platform-client-v2/api/OrganizationApi.js +1 -1
  47. package/src/purecloud-platform-client-v2/api/OrganizationAuthorizationApi.js +1 -1
  48. package/src/purecloud-platform-client-v2/api/OutboundApi.js +1 -1
  49. package/src/purecloud-platform-client-v2/api/PresenceApi.js +185 -1
  50. package/src/purecloud-platform-client-v2/api/ProcessAutomationApi.js +1 -1
  51. package/src/purecloud-platform-client-v2/api/QualityApi.js +1 -1
  52. package/src/purecloud-platform-client-v2/api/RecordingApi.js +2 -2
  53. package/src/purecloud-platform-client-v2/api/ResponseManagementApi.js +1 -1
  54. package/src/purecloud-platform-client-v2/api/RoutingApi.js +196 -1
  55. package/src/purecloud-platform-client-v2/api/SCIMApi.js +1 -1
  56. package/src/purecloud-platform-client-v2/api/ScriptsApi.js +1 -1
  57. package/src/purecloud-platform-client-v2/api/SearchApi.js +1 -1
  58. package/src/purecloud-platform-client-v2/api/SpeechTextAnalyticsApi.js +1 -1
  59. package/src/purecloud-platform-client-v2/api/StationsApi.js +1 -1
  60. package/src/purecloud-platform-client-v2/api/SuggestApi.js +1 -1
  61. package/src/purecloud-platform-client-v2/api/TeamsApi.js +1 -1
  62. package/src/purecloud-platform-client-v2/api/TelephonyApi.js +1 -1
  63. package/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js +1 -1
  64. package/src/purecloud-platform-client-v2/api/TextbotsApi.js +1 -1
  65. package/src/purecloud-platform-client-v2/api/TokensApi.js +1 -1
  66. package/src/purecloud-platform-client-v2/api/UploadsApi.js +1 -1
  67. package/src/purecloud-platform-client-v2/api/UsageApi.js +1 -1
  68. package/src/purecloud-platform-client-v2/api/UserRecordingsApi.js +1 -1
  69. package/src/purecloud-platform-client-v2/api/UsersApi.js +1 -1
  70. package/src/purecloud-platform-client-v2/api/UtilitiesApi.js +1 -1
  71. package/src/purecloud-platform-client-v2/api/VoicemailApi.js +1 -1
  72. package/src/purecloud-platform-client-v2/api/WebChatApi.js +1 -1
  73. package/src/purecloud-platform-client-v2/api/WebDeploymentsApi.js +1 -1
  74. package/src/purecloud-platform-client-v2/api/WebMessagingApi.js +1 -1
  75. package/src/purecloud-platform-client-v2/api/WidgetsApi.js +1 -1
  76. package/src/purecloud-platform-client-v2/api/WorkforceManagementApi.js +1 -1
  77. package/src/purecloud-platform-client-v2/index.js +13 -1
@@ -5,7 +5,7 @@ class GreetingsApi {
5
5
  /**
6
6
  * Greetings service.
7
7
  * @module purecloud-platform-client-v2/api/GreetingsApi
8
- * @version 149.0.0
8
+ * @version 150.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 149.0.0
8
+ * @version 150.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 149.0.0
8
+ * @version 150.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 149.0.0
8
+ * @version 150.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 149.0.0
8
+ * @version 150.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class KnowledgeApi {
5
5
  /**
6
6
  * Knowledge service.
7
7
  * @module purecloud-platform-client-v2/api/KnowledgeApi
8
- * @version 149.0.0
8
+ * @version 150.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class LanguageUnderstandingApi {
5
5
  /**
6
6
  * LanguageUnderstanding service.
7
7
  * @module purecloud-platform-client-v2/api/LanguageUnderstandingApi
8
- * @version 149.0.0
8
+ * @version 150.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class LanguagesApi {
5
5
  /**
6
6
  * Languages service.
7
7
  * @module purecloud-platform-client-v2/api/LanguagesApi
8
- * @version 149.0.0
8
+ * @version 150.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class LearningApi {
5
5
  /**
6
6
  * Learning service.
7
7
  * @module purecloud-platform-client-v2/api/LearningApi
8
- * @version 149.0.0
8
+ * @version 150.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class LicenseApi {
5
5
  /**
6
6
  * License service.
7
7
  * @module purecloud-platform-client-v2/api/LicenseApi
8
- * @version 149.0.0
8
+ * @version 150.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class LocationsApi {
5
5
  /**
6
6
  * Locations service.
7
7
  * @module purecloud-platform-client-v2/api/LocationsApi
8
- * @version 149.0.0
8
+ * @version 150.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class MessagingApi {
5
5
  /**
6
6
  * Messaging service.
7
7
  * @module purecloud-platform-client-v2/api/MessagingApi
8
- * @version 149.0.0
8
+ * @version 150.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class MobileDevicesApi {
5
5
  /**
6
6
  * MobileDevices service.
7
7
  * @module purecloud-platform-client-v2/api/MobileDevicesApi
8
- * @version 149.0.0
8
+ * @version 150.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class NotificationsApi {
5
5
  /**
6
6
  * Notifications service.
7
7
  * @module purecloud-platform-client-v2/api/NotificationsApi
8
- * @version 149.0.0
8
+ * @version 150.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class OAuthApi {
5
5
  /**
6
6
  * OAuth service.
7
7
  * @module purecloud-platform-client-v2/api/OAuthApi
8
- * @version 149.0.0
8
+ * @version 150.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class ObjectsApi {
5
5
  /**
6
6
  * Objects service.
7
7
  * @module purecloud-platform-client-v2/api/ObjectsApi
8
- * @version 149.0.0
8
+ * @version 150.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class OrganizationApi {
5
5
  /**
6
6
  * Organization service.
7
7
  * @module purecloud-platform-client-v2/api/OrganizationApi
8
- * @version 149.0.0
8
+ * @version 150.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class OrganizationAuthorizationApi {
5
5
  /**
6
6
  * OrganizationAuthorization service.
7
7
  * @module purecloud-platform-client-v2/api/OrganizationAuthorizationApi
8
- * @version 149.0.0
8
+ * @version 150.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class OutboundApi {
5
5
  /**
6
6
  * Outbound service.
7
7
  * @module purecloud-platform-client-v2/api/OutboundApi
8
- * @version 149.0.0
8
+ * @version 150.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class PresenceApi {
5
5
  /**
6
6
  * Presence service.
7
7
  * @module purecloud-platform-client-v2/api/PresenceApi
8
- * @version 149.0.0
8
+ * @version 150.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -20,6 +20,31 @@ class PresenceApi {
20
20
  }
21
21
 
22
22
 
23
+ /**
24
+ * Delete a Presence Source
25
+ *
26
+ * @param {String} sourceId Presence Source ID
27
+ */
28
+ deletePresenceSource(sourceId) {
29
+ // verify the required parameter 'sourceId' is set
30
+ if (sourceId === undefined || sourceId === null) {
31
+ throw 'Missing the required parameter "sourceId" when calling deletePresenceSource';
32
+ }
33
+
34
+ return this.apiClient.callApi(
35
+ '/api/v2/presence/sources/{sourceId}',
36
+ 'DELETE',
37
+ { 'sourceId': sourceId },
38
+ { },
39
+ { },
40
+ { },
41
+ null,
42
+ ['PureCloud OAuth'],
43
+ ['application/json'],
44
+ ['application/json']
45
+ );
46
+ }
47
+
23
48
  /**
24
49
  * Delete a Presence Definition
25
50
  *
@@ -45,6 +70,80 @@ class PresenceApi {
45
70
  );
46
71
  }
47
72
 
73
+ /**
74
+ * Get a Presence Source
75
+ *
76
+ * @param {String} sourceId Presence Source ID
77
+ */
78
+ getPresenceSource(sourceId) {
79
+ // verify the required parameter 'sourceId' is set
80
+ if (sourceId === undefined || sourceId === null) {
81
+ throw 'Missing the required parameter "sourceId" when calling getPresenceSource';
82
+ }
83
+
84
+ return this.apiClient.callApi(
85
+ '/api/v2/presence/sources/{sourceId}',
86
+ 'GET',
87
+ { 'sourceId': sourceId },
88
+ { },
89
+ { },
90
+ { },
91
+ null,
92
+ ['PureCloud OAuth'],
93
+ ['application/json'],
94
+ ['application/json']
95
+ );
96
+ }
97
+
98
+ /**
99
+ * Get a list of Presence Sources
100
+ *
101
+ * @param {Object} opts Optional parameters
102
+ * @param {String} opts.deleted Deleted query can be TRUE or FALSE (default to false)
103
+ */
104
+ getPresenceSources(opts) {
105
+ opts = opts || {};
106
+
107
+
108
+ return this.apiClient.callApi(
109
+ '/api/v2/presence/sources',
110
+ 'GET',
111
+ { },
112
+ { 'deleted': opts['deleted'] },
113
+ { },
114
+ { },
115
+ null,
116
+ ['PureCloud OAuth'],
117
+ ['application/json'],
118
+ ['application/json']
119
+ );
120
+ }
121
+
122
+ /**
123
+ * Get a user's Primary Presence Source
124
+ *
125
+ * @param {String} userId user ID
126
+ */
127
+ getPresenceUserPrimarysource(userId) {
128
+ // verify the required parameter 'userId' is set
129
+ if (userId === undefined || userId === null) {
130
+ throw 'Missing the required parameter "userId" when calling getPresenceUserPrimarysource';
131
+ }
132
+
133
+ return this.apiClient.callApi(
134
+ '/api/v2/presence/users/{userId}/primarysource',
135
+ 'GET',
136
+ { 'userId': userId },
137
+ { },
138
+ { },
139
+ { },
140
+ null,
141
+ ['PureCloud OAuth'],
142
+ ['application/json'],
143
+ ['application/json']
144
+ );
145
+ }
146
+
48
147
  /**
49
148
  * Get a Presence Definition
50
149
  *
@@ -241,6 +340,31 @@ class PresenceApi {
241
340
  );
242
341
  }
243
342
 
343
+ /**
344
+ * Create a Presence Source
345
+ *
346
+ * @param {Object} body The Presence Source to create
347
+ */
348
+ postPresenceSources(body) {
349
+ // verify the required parameter 'body' is set
350
+ if (body === undefined || body === null) {
351
+ throw 'Missing the required parameter "body" when calling postPresenceSources';
352
+ }
353
+
354
+ return this.apiClient.callApi(
355
+ '/api/v2/presence/sources',
356
+ 'POST',
357
+ { },
358
+ { },
359
+ { },
360
+ { },
361
+ body,
362
+ ['PureCloud OAuth'],
363
+ ['application/json'],
364
+ ['application/json']
365
+ );
366
+ }
367
+
244
368
  /**
245
369
  * Create a Presence Definition
246
370
  *
@@ -266,6 +390,66 @@ class PresenceApi {
266
390
  );
267
391
  }
268
392
 
393
+ /**
394
+ * Update a Presence Source
395
+ *
396
+ * @param {String} sourceId Presence Source ID
397
+ * @param {Object} body The updated Presence Source
398
+ */
399
+ putPresenceSource(sourceId, body) {
400
+ // verify the required parameter 'sourceId' is set
401
+ if (sourceId === undefined || sourceId === null) {
402
+ throw 'Missing the required parameter "sourceId" when calling putPresenceSource';
403
+ }
404
+ // verify the required parameter 'body' is set
405
+ if (body === undefined || body === null) {
406
+ throw 'Missing the required parameter "body" when calling putPresenceSource';
407
+ }
408
+
409
+ return this.apiClient.callApi(
410
+ '/api/v2/presence/sources/{sourceId}',
411
+ 'PUT',
412
+ { 'sourceId': sourceId },
413
+ { },
414
+ { },
415
+ { },
416
+ body,
417
+ ['PureCloud OAuth'],
418
+ ['application/json'],
419
+ ['application/json']
420
+ );
421
+ }
422
+
423
+ /**
424
+ * Update a user's Primary Presence Source
425
+ *
426
+ * @param {String} userId user ID
427
+ * @param {Object} body Primary Source
428
+ */
429
+ putPresenceUserPrimarysource(userId, body) {
430
+ // verify the required parameter 'userId' is set
431
+ if (userId === undefined || userId === null) {
432
+ throw 'Missing the required parameter "userId" when calling putPresenceUserPrimarysource';
433
+ }
434
+ // verify the required parameter 'body' is set
435
+ if (body === undefined || body === null) {
436
+ throw 'Missing the required parameter "body" when calling putPresenceUserPrimarysource';
437
+ }
438
+
439
+ return this.apiClient.callApi(
440
+ '/api/v2/presence/users/{userId}/primarysource',
441
+ 'PUT',
442
+ { 'userId': userId },
443
+ { },
444
+ { },
445
+ { },
446
+ body,
447
+ ['PureCloud OAuth'],
448
+ ['application/json'],
449
+ ['application/json']
450
+ );
451
+ }
452
+
269
453
  /**
270
454
  * Update a Presence Definition
271
455
  *
@@ -5,7 +5,7 @@ class ProcessAutomationApi {
5
5
  /**
6
6
  * ProcessAutomation service.
7
7
  * @module purecloud-platform-client-v2/api/ProcessAutomationApi
8
- * @version 149.0.0
8
+ * @version 150.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class QualityApi {
5
5
  /**
6
6
  * Quality service.
7
7
  * @module purecloud-platform-client-v2/api/QualityApi
8
- * @version 149.0.0
8
+ * @version 150.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class RecordingApi {
5
5
  /**
6
6
  * Recording service.
7
7
  * @module purecloud-platform-client-v2/api/RecordingApi
8
- * @version 149.0.0
8
+ * @version 150.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -1110,7 +1110,7 @@ class RecordingApi {
1110
1110
 
1111
1111
  /**
1112
1112
  * Create a recording bulk job.
1113
- * Each organization can run up to a maximum of two concurrent jobs that are either in pending or processing state.
1113
+ * Each organization can run up to a maximum of two concurrent jobs that are either in pending or processing state. Furthermore, the recording:recording:viewSensitiveData permission is required to access recordings with PCI DSS and/or PII data. If the requester does not have that permission and includeRecordingsWithSensitiveData is set to true, then their request will be rejected.
1114
1114
  * @param {Object} body query
1115
1115
  */
1116
1116
  postRecordingJobs(body) {
@@ -5,7 +5,7 @@ class ResponseManagementApi {
5
5
  /**
6
6
  * ResponseManagement service.
7
7
  * @module purecloud-platform-client-v2/api/ResponseManagementApi
8
- * @version 149.0.0
8
+ * @version 150.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class RoutingApi {
5
5
  /**
6
6
  * Routing service.
7
7
  * @module purecloud-platform-client-v2/api/RoutingApi
8
- * @version 149.0.0
8
+ * @version 150.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -100,6 +100,31 @@ class RoutingApi {
100
100
  );
101
101
  }
102
102
 
103
+ /**
104
+ * Delete an outbound domain
105
+ *
106
+ * @param {String} domainId domain ID
107
+ */
108
+ deleteRoutingEmailOutboundDomain(domainId) {
109
+ // verify the required parameter 'domainId' is set
110
+ if (domainId === undefined || domainId === null) {
111
+ throw 'Missing the required parameter "domainId" when calling deleteRoutingEmailOutboundDomain';
112
+ }
113
+
114
+ return this.apiClient.callApi(
115
+ '/api/v2/routing/email/outbound/domains/{domainId}',
116
+ 'DELETE',
117
+ { 'domainId': domainId },
118
+ { },
119
+ { },
120
+ { },
121
+ null,
122
+ ['PureCloud OAuth'],
123
+ ['application/json'],
124
+ ['application/json']
125
+ );
126
+ }
127
+
103
128
  /**
104
129
  * Delete single predictor.
105
130
  *
@@ -701,6 +726,101 @@ class RoutingApi {
701
726
  );
702
727
  }
703
728
 
729
+ /**
730
+ * Get domain
731
+ *
732
+ * @param {String} domainId domain ID
733
+ */
734
+ getRoutingEmailOutboundDomain(domainId) {
735
+ // verify the required parameter 'domainId' is set
736
+ if (domainId === undefined || domainId === null) {
737
+ throw 'Missing the required parameter "domainId" when calling getRoutingEmailOutboundDomain';
738
+ }
739
+
740
+ return this.apiClient.callApi(
741
+ '/api/v2/routing/email/outbound/domains/{domainId}',
742
+ 'GET',
743
+ { 'domainId': domainId },
744
+ { },
745
+ { },
746
+ { },
747
+ null,
748
+ ['PureCloud OAuth'],
749
+ ['application/json'],
750
+ ['application/json']
751
+ );
752
+ }
753
+
754
+ /**
755
+ * Get activation status (cname + dkim) of an outbound domain
756
+ *
757
+ * @param {String} domainId domain ID
758
+ */
759
+ getRoutingEmailOutboundDomainActivation(domainId) {
760
+ // verify the required parameter 'domainId' is set
761
+ if (domainId === undefined || domainId === null) {
762
+ throw 'Missing the required parameter "domainId" when calling getRoutingEmailOutboundDomainActivation';
763
+ }
764
+
765
+ return this.apiClient.callApi(
766
+ '/api/v2/routing/email/outbound/domains/{domainId}/activation',
767
+ 'GET',
768
+ { 'domainId': domainId },
769
+ { },
770
+ { },
771
+ { },
772
+ null,
773
+ ['PureCloud OAuth'],
774
+ ['application/json'],
775
+ ['application/json']
776
+ );
777
+ }
778
+
779
+ /**
780
+ * Search a domain across organizations
781
+ *
782
+ * @param {String} domainId domain ID
783
+ */
784
+ getRoutingEmailOutboundDomainSearch(domainId) {
785
+ // verify the required parameter 'domainId' is set
786
+ if (domainId === undefined || domainId === null) {
787
+ throw 'Missing the required parameter "domainId" when calling getRoutingEmailOutboundDomainSearch';
788
+ }
789
+
790
+ return this.apiClient.callApi(
791
+ '/api/v2/routing/email/outbound/domains/{domainId}/search',
792
+ 'GET',
793
+ { 'domainId': domainId },
794
+ { },
795
+ { },
796
+ { },
797
+ null,
798
+ ['PureCloud OAuth'],
799
+ ['application/json'],
800
+ ['application/json']
801
+ );
802
+ }
803
+
804
+ /**
805
+ * Get outbound domains
806
+ *
807
+ */
808
+ getRoutingEmailOutboundDomains() {
809
+
810
+ return this.apiClient.callApi(
811
+ '/api/v2/routing/email/outbound/domains',
812
+ 'GET',
813
+ { },
814
+ { },
815
+ { },
816
+ { },
817
+ null,
818
+ ['PureCloud OAuth'],
819
+ ['application/json'],
820
+ ['application/json']
821
+ );
822
+ }
823
+
704
824
  /**
705
825
  * Get email setup
706
826
  *
@@ -2338,6 +2458,56 @@ class RoutingApi {
2338
2458
  );
2339
2459
  }
2340
2460
 
2461
+ /**
2462
+ * Create a domain
2463
+ *
2464
+ * @param {Object} body Domain
2465
+ */
2466
+ postRoutingEmailOutboundDomains(body) {
2467
+ // verify the required parameter 'body' is set
2468
+ if (body === undefined || body === null) {
2469
+ throw 'Missing the required parameter "body" when calling postRoutingEmailOutboundDomains';
2470
+ }
2471
+
2472
+ return this.apiClient.callApi(
2473
+ '/api/v2/routing/email/outbound/domains',
2474
+ 'POST',
2475
+ { },
2476
+ { },
2477
+ { },
2478
+ { },
2479
+ body,
2480
+ ['PureCloud OAuth'],
2481
+ ['application/json'],
2482
+ ['application/json']
2483
+ );
2484
+ }
2485
+
2486
+ /**
2487
+ * Create a simulated domain
2488
+ *
2489
+ * @param {Object} body Domain
2490
+ */
2491
+ postRoutingEmailOutboundDomainsSimulated(body) {
2492
+ // verify the required parameter 'body' is set
2493
+ if (body === undefined || body === null) {
2494
+ throw 'Missing the required parameter "body" when calling postRoutingEmailOutboundDomainsSimulated';
2495
+ }
2496
+
2497
+ return this.apiClient.callApi(
2498
+ '/api/v2/routing/email/outbound/domains/simulated',
2499
+ 'POST',
2500
+ { },
2501
+ { },
2502
+ { },
2503
+ { },
2504
+ body,
2505
+ ['PureCloud OAuth'],
2506
+ ['application/json'],
2507
+ ['application/json']
2508
+ );
2509
+ }
2510
+
2341
2511
  /**
2342
2512
  * Create Language
2343
2513
  *
@@ -2705,6 +2875,31 @@ class RoutingApi {
2705
2875
  );
2706
2876
  }
2707
2877
 
2878
+ /**
2879
+ * Request an activation status (cname + dkim) update of an outbound domain
2880
+ *
2881
+ * @param {String} domainId domain ID
2882
+ */
2883
+ putRoutingEmailOutboundDomainActivation(domainId) {
2884
+ // verify the required parameter 'domainId' is set
2885
+ if (domainId === undefined || domainId === null) {
2886
+ throw 'Missing the required parameter "domainId" when calling putRoutingEmailOutboundDomainActivation';
2887
+ }
2888
+
2889
+ return this.apiClient.callApi(
2890
+ '/api/v2/routing/email/outbound/domains/{domainId}/activation',
2891
+ 'PUT',
2892
+ { 'domainId': domainId },
2893
+ { },
2894
+ { },
2895
+ { },
2896
+ null,
2897
+ ['PureCloud OAuth'],
2898
+ ['application/json'],
2899
+ ['application/json']
2900
+ );
2901
+ }
2902
+
2708
2903
  /**
2709
2904
  * Update a recipient
2710
2905
  *