purecloud-platform-client-v2 222.0.0 → 224.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 (93) hide show
  1. package/README.md +3 -3
  2. package/dist/node/purecloud-platform-client-v2.js +1863 -540
  3. package/dist/web-amd/purecloud-platform-client-v2.js +1863 -540
  4. package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
  5. package/dist/web-cjs/bundle.js +745 -410
  6. package/dist/web-cjs/purecloud-platform-client-v2.js +745 -410
  7. package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
  8. package/index.d.ts +1681 -998
  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/AIStudioApi.js +387 -0
  12. package/src/purecloud-platform-client-v2/api/AgentAssistantsApi.js +3 -2
  13. package/src/purecloud-platform-client-v2/api/AgentCopilotApi.js +1 -1
  14. package/src/purecloud-platform-client-v2/api/AgentUIApi.js +1 -1
  15. package/src/purecloud-platform-client-v2/api/AlertingApi.js +1 -1
  16. package/src/purecloud-platform-client-v2/api/AnalyticsApi.js +2 -2
  17. package/src/purecloud-platform-client-v2/api/ArchitectApi.js +4 -2
  18. package/src/purecloud-platform-client-v2/api/AuditApi.js +1 -1
  19. package/src/purecloud-platform-client-v2/api/AuthorizationApi.js +1 -1
  20. package/src/purecloud-platform-client-v2/api/BillingApi.js +1 -1
  21. package/src/purecloud-platform-client-v2/api/BusinessRulesApi.js +52 -8
  22. package/src/purecloud-platform-client-v2/api/CarrierServicesApi.js +1 -1
  23. package/src/purecloud-platform-client-v2/api/ChatApi.js +1 -1
  24. package/src/purecloud-platform-client-v2/api/CoachingApi.js +1 -1
  25. package/src/purecloud-platform-client-v2/api/ContentManagementApi.js +1 -1
  26. package/src/purecloud-platform-client-v2/api/ConversationsApi.js +327 -16
  27. package/src/purecloud-platform-client-v2/api/DataExtensionsApi.js +1 -1
  28. package/src/purecloud-platform-client-v2/api/DataPrivacyApi.js +1 -1
  29. package/src/purecloud-platform-client-v2/api/DownloadsApi.js +1 -1
  30. package/src/purecloud-platform-client-v2/api/EmailsApi.js +1 -1
  31. package/src/purecloud-platform-client-v2/api/EmployeeEngagementApi.js +1 -1
  32. package/src/purecloud-platform-client-v2/api/EventsApi.js +1 -1
  33. package/src/purecloud-platform-client-v2/api/ExternalContactsApi.js +1 -1
  34. package/src/purecloud-platform-client-v2/api/FaxApi.js +1 -1
  35. package/src/purecloud-platform-client-v2/api/FlowsApi.js +1 -1
  36. package/src/purecloud-platform-client-v2/api/GamificationApi.js +1 -1
  37. package/src/purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi.js +1 -1
  38. package/src/purecloud-platform-client-v2/api/GeolocationApi.js +1 -1
  39. package/src/purecloud-platform-client-v2/api/GreetingsApi.js +89 -2
  40. package/src/purecloud-platform-client-v2/api/GroupsApi.js +1 -1
  41. package/src/purecloud-platform-client-v2/api/IdentityProviderApi.js +1 -1
  42. package/src/purecloud-platform-client-v2/api/InfrastructureAsCodeApi.js +1 -1
  43. package/src/purecloud-platform-client-v2/api/IntegrationsApi.js +176 -1
  44. package/src/purecloud-platform-client-v2/api/JourneyApi.js +1 -1
  45. package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +1 -1
  46. package/src/purecloud-platform-client-v2/api/LanguageUnderstandingApi.js +1 -1
  47. package/src/purecloud-platform-client-v2/api/LanguagesApi.js +1 -1
  48. package/src/purecloud-platform-client-v2/api/LearningApi.js +1 -1
  49. package/src/purecloud-platform-client-v2/api/LicenseApi.js +1 -1
  50. package/src/purecloud-platform-client-v2/api/LocationsApi.js +1 -1
  51. package/src/purecloud-platform-client-v2/api/LogCaptureApi.js +2 -3
  52. package/src/purecloud-platform-client-v2/api/MessagingApi.js +1 -1
  53. package/src/purecloud-platform-client-v2/api/MobileDevicesApi.js +1 -1
  54. package/src/purecloud-platform-client-v2/api/NotificationsApi.js +1 -1
  55. package/src/purecloud-platform-client-v2/api/OAuthApi.js +1 -1
  56. package/src/purecloud-platform-client-v2/api/ObjectsApi.js +1 -1
  57. package/src/purecloud-platform-client-v2/api/OperationalEventsApi.js +1 -1
  58. package/src/purecloud-platform-client-v2/api/OrganizationApi.js +1 -1
  59. package/src/purecloud-platform-client-v2/api/OrganizationAuthorizationApi.js +1 -1
  60. package/src/purecloud-platform-client-v2/api/OutboundApi.js +1 -1
  61. package/src/purecloud-platform-client-v2/api/PresenceApi.js +1 -1
  62. package/src/purecloud-platform-client-v2/api/ProcessAutomationApi.js +1 -1
  63. package/src/purecloud-platform-client-v2/api/QualityApi.js +1 -1
  64. package/src/purecloud-platform-client-v2/api/RecordingApi.js +1 -1
  65. package/src/purecloud-platform-client-v2/api/ResponseManagementApi.js +1 -1
  66. package/src/purecloud-platform-client-v2/api/RoutingApi.js +31 -1
  67. package/src/purecloud-platform-client-v2/api/SCIMApi.js +1 -1
  68. package/src/purecloud-platform-client-v2/api/ScreenRecordingApi.js +1 -1
  69. package/src/purecloud-platform-client-v2/api/ScriptsApi.js +1 -1
  70. package/src/purecloud-platform-client-v2/api/SearchApi.js +1 -1
  71. package/src/purecloud-platform-client-v2/api/SettingsApi.js +1 -1
  72. package/src/purecloud-platform-client-v2/api/SocialMediaApi.js +71 -8
  73. package/src/purecloud-platform-client-v2/api/SpeechTextAnalyticsApi.js +51 -1
  74. package/src/purecloud-platform-client-v2/api/StationsApi.js +1 -1
  75. package/src/purecloud-platform-client-v2/api/SuggestApi.js +1 -1
  76. package/src/purecloud-platform-client-v2/api/TaskManagementApi.js +1 -1
  77. package/src/purecloud-platform-client-v2/api/TeamsApi.js +2 -2
  78. package/src/purecloud-platform-client-v2/api/TelephonyApi.js +1 -1
  79. package/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js +43 -2
  80. package/src/purecloud-platform-client-v2/api/TextbotsApi.js +1 -1
  81. package/src/purecloud-platform-client-v2/api/TokensApi.js +1 -1
  82. package/src/purecloud-platform-client-v2/api/UploadsApi.js +1 -1
  83. package/src/purecloud-platform-client-v2/api/UsageApi.js +1 -1
  84. package/src/purecloud-platform-client-v2/api/UserRecordingsApi.js +1 -1
  85. package/src/purecloud-platform-client-v2/api/UsersApi.js +31 -1
  86. package/src/purecloud-platform-client-v2/api/UtilitiesApi.js +1 -1
  87. package/src/purecloud-platform-client-v2/api/VoicemailApi.js +2 -2
  88. package/src/purecloud-platform-client-v2/api/WebChatApi.js +1 -1
  89. package/src/purecloud-platform-client-v2/api/WebDeploymentsApi.js +1 -1
  90. package/src/purecloud-platform-client-v2/api/WebMessagingApi.js +1 -1
  91. package/src/purecloud-platform-client-v2/api/WidgetsApi.js +1 -1
  92. package/src/purecloud-platform-client-v2/api/WorkforceManagementApi.js +524 -421
  93. package/src/purecloud-platform-client-v2/index.js +7 -1
@@ -5,7 +5,7 @@ class GreetingsApi {
5
5
  /**
6
6
  * Greetings service.
7
7
  * @module purecloud-platform-client-v2/api/GreetingsApi
8
- * @version 222.0.0
8
+ * @version 224.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -71,12 +71,70 @@ class GreetingsApi {
71
71
  }
72
72
 
73
73
  /**
74
- * Get media playback URI for this greeting
74
+ * Download a organization greeting recording
75
+ *
76
+ * @param {String} greetingId Greeting ID
77
+ * @param {Object} opts Optional parameters
78
+ * @param {Object} opts.formatId The desired media format. (default to WAV)
79
+ */
80
+ getGreetingDownloads(greetingId, opts) {
81
+ opts = opts || {};
82
+
83
+ // verify the required parameter 'greetingId' is set
84
+ if (greetingId === undefined || greetingId === null) {
85
+ throw 'Missing the required parameter "greetingId" when calling getGreetingDownloads';
86
+ }
87
+
88
+ return this.apiClient.callApi(
89
+ '/api/v2/greetings/{greetingId}/downloads',
90
+ 'GET',
91
+ { 'greetingId': greetingId },
92
+ { 'formatId': opts['formatId'] },
93
+ { },
94
+ { },
95
+ null,
96
+ ['PureCloud OAuth'],
97
+ ['application/json'],
98
+ ['application/json']
99
+ );
100
+ }
101
+
102
+ /**
103
+ * Download a group greeting recording
75
104
  *
76
105
  * @param {String} greetingId Greeting ID
77
106
  * @param {Object} opts Optional parameters
78
107
  * @param {Object} opts.formatId The desired media format. (default to WAV)
79
108
  */
109
+ getGreetingGroupsDownloads(greetingId, opts) {
110
+ opts = opts || {};
111
+
112
+ // verify the required parameter 'greetingId' is set
113
+ if (greetingId === undefined || greetingId === null) {
114
+ throw 'Missing the required parameter "greetingId" when calling getGreetingGroupsDownloads';
115
+ }
116
+
117
+ return this.apiClient.callApi(
118
+ '/api/v2/greetings/{greetingId}/groups/downloads',
119
+ 'GET',
120
+ { 'greetingId': greetingId },
121
+ { 'formatId': opts['formatId'] },
122
+ { },
123
+ { },
124
+ null,
125
+ ['PureCloud OAuth'],
126
+ ['application/json'],
127
+ ['application/json']
128
+ );
129
+ }
130
+
131
+ /**
132
+ * Get media playback URI for this greeting
133
+ * API should migrate to use GET api/v2/greetings/{greetingId}/downloads
134
+ * @param {String} greetingId Greeting ID
135
+ * @param {Object} opts Optional parameters
136
+ * @param {Object} opts.formatId The desired media format. (default to WAV)
137
+ */
80
138
  getGreetingMedia(greetingId, opts) {
81
139
  opts = opts || {};
82
140
 
@@ -99,6 +157,35 @@ class GreetingsApi {
99
157
  );
100
158
  }
101
159
 
160
+ /**
161
+ * Download a user greeting recording
162
+ *
163
+ * @param {String} greetingId Greeting ID
164
+ * @param {Object} opts Optional parameters
165
+ * @param {Object} opts.formatId The desired media format. (default to WAV)
166
+ */
167
+ getGreetingUsersDownloads(greetingId, opts) {
168
+ opts = opts || {};
169
+
170
+ // verify the required parameter 'greetingId' is set
171
+ if (greetingId === undefined || greetingId === null) {
172
+ throw 'Missing the required parameter "greetingId" when calling getGreetingUsersDownloads';
173
+ }
174
+
175
+ return this.apiClient.callApi(
176
+ '/api/v2/greetings/{greetingId}/users/downloads',
177
+ 'GET',
178
+ { 'greetingId': greetingId },
179
+ { 'formatId': opts['formatId'] },
180
+ { },
181
+ { },
182
+ null,
183
+ ['PureCloud OAuth'],
184
+ ['application/json'],
185
+ ['application/json']
186
+ );
187
+ }
188
+
102
189
  /**
103
190
  * Gets an Organization's Greetings
104
191
  *
@@ -5,7 +5,7 @@ class GroupsApi {
5
5
  /**
6
6
  * Groups service.
7
7
  * @module purecloud-platform-client-v2/api/GroupsApi
8
- * @version 222.0.0
8
+ * @version 224.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 222.0.0
8
+ * @version 224.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 222.0.0
8
+ * @version 224.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 222.0.0
8
+ * @version 224.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -636,6 +636,103 @@ class IntegrationsApi {
636
636
  );
637
637
  }
638
638
 
639
+ /**
640
+ * Get a specific Bot details
641
+ *
642
+ * @param {String} integrationId The integration ID for this group of bots
643
+ * @param {String} botId The bot ID for this bot
644
+ * @param {Object} opts Optional parameters
645
+ * @param {String} opts.version Specific Version
646
+ * getIntegrationsBotconnectorBot is a preview method and is subject to both breaking and non-breaking changes at any time without notice
647
+ */
648
+ getIntegrationsBotconnectorBot(integrationId, botId, opts) {
649
+ opts = opts || {};
650
+
651
+ // verify the required parameter 'integrationId' is set
652
+ if (integrationId === undefined || integrationId === null) {
653
+ throw 'Missing the required parameter "integrationId" when calling getIntegrationsBotconnectorBot';
654
+ }
655
+ // verify the required parameter 'botId' is set
656
+ if (botId === undefined || botId === null) {
657
+ throw 'Missing the required parameter "botId" when calling getIntegrationsBotconnectorBot';
658
+ }
659
+
660
+ return this.apiClient.callApi(
661
+ '/api/v2/integrations/botconnectors/{integrationId}/bots/{botId}',
662
+ 'GET',
663
+ { 'integrationId': integrationId,'botId': botId },
664
+ { 'version': opts['version'] },
665
+ { },
666
+ { },
667
+ null,
668
+ ['PureCloud OAuth'],
669
+ ['application/json'],
670
+ ['application/json']
671
+ );
672
+ }
673
+
674
+ /**
675
+ * Get the list of bots for this integration.
676
+ *
677
+ * @param {String} integrationId The integration ID for this group of bots.
678
+ * @param {Object} opts Optional parameters
679
+ * @param {Number} opts.pageNumber Page number (default to 1)
680
+ * @param {Number} opts.pageSize Page size (default to 25)
681
+ * getIntegrationsBotconnectorBots is a preview method and is subject to both breaking and non-breaking changes at any time without notice
682
+ */
683
+ getIntegrationsBotconnectorBots(integrationId, opts) {
684
+ opts = opts || {};
685
+
686
+ // verify the required parameter 'integrationId' is set
687
+ if (integrationId === undefined || integrationId === null) {
688
+ throw 'Missing the required parameter "integrationId" when calling getIntegrationsBotconnectorBots';
689
+ }
690
+
691
+ return this.apiClient.callApi(
692
+ '/api/v2/integrations/botconnectors/{integrationId}/bots',
693
+ 'GET',
694
+ { 'integrationId': integrationId },
695
+ { 'pageNumber': opts['pageNumber'],'pageSize': opts['pageSize'] },
696
+ { },
697
+ { },
698
+ null,
699
+ ['PureCloud OAuth'],
700
+ ['application/json'],
701
+ ['application/json']
702
+ );
703
+ }
704
+
705
+ /**
706
+ * Get the summary list of bots for this integration.
707
+ *
708
+ * @param {String} integrationId The integration ID for this group of bots.
709
+ * @param {Object} opts Optional parameters
710
+ * @param {Number} opts.pageNumber Page number (default to 1)
711
+ * @param {Number} opts.pageSize Page size (default to 25)
712
+ * getIntegrationsBotconnectorBotsSummaries is a preview method and is subject to both breaking and non-breaking changes at any time without notice
713
+ */
714
+ getIntegrationsBotconnectorBotsSummaries(integrationId, opts) {
715
+ opts = opts || {};
716
+
717
+ // verify the required parameter 'integrationId' is set
718
+ if (integrationId === undefined || integrationId === null) {
719
+ throw 'Missing the required parameter "integrationId" when calling getIntegrationsBotconnectorBotsSummaries';
720
+ }
721
+
722
+ return this.apiClient.callApi(
723
+ '/api/v2/integrations/botconnectors/{integrationId}/bots/summaries',
724
+ 'GET',
725
+ { 'integrationId': integrationId },
726
+ { 'pageNumber': opts['pageNumber'],'pageSize': opts['pageSize'] },
727
+ { },
728
+ { },
729
+ null,
730
+ ['PureCloud OAuth'],
731
+ ['application/json'],
732
+ ['application/json']
733
+ );
734
+ }
735
+
639
736
  /**
640
737
  * Get a specific botConnector bot, plus versions, for this integration
641
738
  *
@@ -869,6 +966,32 @@ class IntegrationsApi {
869
966
  );
870
967
  }
871
968
 
969
+ /**
970
+ * List multiple sets of credentials using cursor-based paging
971
+ *
972
+ * @param {Object} opts Optional parameters
973
+ * @param {String} opts.before The cursor that points to the start of the set of entities that has been returned.
974
+ * @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
975
+ * @param {String} opts.pageSize Number of entities to return. Maximum of 200.
976
+ */
977
+ getIntegrationsCredentialsListing(opts) {
978
+ opts = opts || {};
979
+
980
+
981
+ return this.apiClient.callApi(
982
+ '/api/v2/integrations/credentials/listing',
983
+ 'GET',
984
+ { },
985
+ { 'before': opts['before'],'after': opts['after'],'pageSize': opts['pageSize'] },
986
+ { },
987
+ { },
988
+ null,
989
+ ['PureCloud OAuth'],
990
+ ['application/json'],
991
+ ['application/json']
992
+ );
993
+ }
994
+
872
995
  /**
873
996
  * List all credential types
874
997
  *
@@ -2115,6 +2238,58 @@ class IntegrationsApi {
2115
2238
  );
2116
2239
  }
2117
2240
 
2241
+ /**
2242
+ * Send an incoming message to the bot.
2243
+ *
2244
+ * @param {Object} body Incoming Message Request
2245
+ * postIntegrationsBotconnectorsIncomingMessages is a preview method and is subject to both breaking and non-breaking changes at any time without notice
2246
+ */
2247
+ postIntegrationsBotconnectorsIncomingMessages(body) {
2248
+ // verify the required parameter 'body' is set
2249
+ if (body === undefined || body === null) {
2250
+ throw 'Missing the required parameter "body" when calling postIntegrationsBotconnectorsIncomingMessages';
2251
+ }
2252
+
2253
+ return this.apiClient.callApi(
2254
+ '/api/v2/integrations/botconnectors/incoming/messages',
2255
+ 'POST',
2256
+ { },
2257
+ { },
2258
+ { },
2259
+ { },
2260
+ body,
2261
+ ['PureCloud OAuth'],
2262
+ ['application/json'],
2263
+ ['application/json']
2264
+ );
2265
+ }
2266
+
2267
+ /**
2268
+ * Send an outgoing message to the end user.
2269
+ *
2270
+ * @param {Object} body Outgoing Message Request
2271
+ * postIntegrationsBotconnectorsOutgoingMessages is a preview method and is subject to both breaking and non-breaking changes at any time without notice
2272
+ */
2273
+ postIntegrationsBotconnectorsOutgoingMessages(body) {
2274
+ // verify the required parameter 'body' is set
2275
+ if (body === undefined || body === null) {
2276
+ throw 'Missing the required parameter "body" when calling postIntegrationsBotconnectorsOutgoingMessages';
2277
+ }
2278
+
2279
+ return this.apiClient.callApi(
2280
+ '/api/v2/integrations/botconnectors/outgoing/messages',
2281
+ 'POST',
2282
+ { },
2283
+ { },
2284
+ { },
2285
+ { },
2286
+ body,
2287
+ ['PureCloud OAuth'],
2288
+ ['application/json'],
2289
+ ['application/json']
2290
+ );
2291
+ }
2292
+
2118
2293
  /**
2119
2294
  * Create a set of credentials
2120
2295
  *
@@ -5,7 +5,7 @@ class JourneyApi {
5
5
  /**
6
6
  * Journey service.
7
7
  * @module purecloud-platform-client-v2/api/JourneyApi
8
- * @version 222.0.0
8
+ * @version 224.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 222.0.0
8
+ * @version 224.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 222.0.0
8
+ * @version 224.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 222.0.0
8
+ * @version 224.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 222.0.0
8
+ * @version 224.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 222.0.0
8
+ * @version 224.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 222.0.0
8
+ * @version 224.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class LogCaptureApi {
5
5
  /**
6
6
  * LogCapture service.
7
7
  * @module purecloud-platform-client-v2/api/LogCaptureApi
8
- * @version 222.0.0
8
+ * @version 224.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -147,7 +147,6 @@ class LogCaptureApi {
147
147
  * Query collected log entries. It returns a limited amount of records, to get all records use download endpoint.
148
148
  *
149
149
  * @param {Object} opts Optional parameters
150
- * @param {String} opts.before The cursor that points to the start of the set of entities that has been returned.
151
150
  * @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
152
151
  * @param {String} opts.pageSize Number of entities to return. Maximum of 200.
153
152
  * @param {Object} opts.body
@@ -160,7 +159,7 @@ class LogCaptureApi {
160
159
  '/api/v2/diagnostics/logcapture/browser/entries/query',
161
160
  'POST',
162
161
  { },
163
- { 'before': opts['before'],'after': opts['after'],'pageSize': opts['pageSize'] },
162
+ { 'after': opts['after'],'pageSize': opts['pageSize'] },
164
163
  { },
165
164
  { },
166
165
  opts['body'],
@@ -5,7 +5,7 @@ class MessagingApi {
5
5
  /**
6
6
  * Messaging service.
7
7
  * @module purecloud-platform-client-v2/api/MessagingApi
8
- * @version 222.0.0
8
+ * @version 224.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 222.0.0
8
+ * @version 224.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 222.0.0
8
+ * @version 224.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 222.0.0
8
+ * @version 224.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 222.0.0
8
+ * @version 224.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class OperationalEventsApi {
5
5
  /**
6
6
  * OperationalEvents service.
7
7
  * @module purecloud-platform-client-v2/api/OperationalEventsApi
8
- * @version 222.0.0
8
+ * @version 224.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 222.0.0
8
+ * @version 224.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 222.0.0
8
+ * @version 224.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 222.0.0
8
+ * @version 224.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 222.0.0
8
+ * @version 224.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class ProcessAutomationApi {
5
5
  /**
6
6
  * ProcessAutomation service.
7
7
  * @module purecloud-platform-client-v2/api/ProcessAutomationApi
8
- * @version 222.0.0
8
+ * @version 224.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 222.0.0
8
+ * @version 224.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 222.0.0
8
+ * @version 224.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class ResponseManagementApi {
5
5
  /**
6
6
  * ResponseManagement service.
7
7
  * @module purecloud-platform-client-v2/api/ResponseManagementApi
8
- * @version 222.0.0
8
+ * @version 224.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 222.0.0
8
+ * @version 224.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -2919,6 +2919,36 @@ class RoutingApi {
2919
2919
  );
2920
2920
  }
2921
2921
 
2922
+ /**
2923
+ * Update a phone number provisioned for SMS.
2924
+ *
2925
+ * @param {String} phoneNumberId phone number
2926
+ * @param {Object} body SmsPhoneNumberPatchRequest
2927
+ */
2928
+ patchRoutingSmsPhonenumber(phoneNumberId, body) {
2929
+ // verify the required parameter 'phoneNumberId' is set
2930
+ if (phoneNumberId === undefined || phoneNumberId === null) {
2931
+ throw 'Missing the required parameter "phoneNumberId" when calling patchRoutingSmsPhonenumber';
2932
+ }
2933
+ // verify the required parameter 'body' is set
2934
+ if (body === undefined || body === null) {
2935
+ throw 'Missing the required parameter "body" when calling patchRoutingSmsPhonenumber';
2936
+ }
2937
+
2938
+ return this.apiClient.callApi(
2939
+ '/api/v2/routing/sms/phonenumbers/{phoneNumberId}',
2940
+ 'PATCH',
2941
+ { 'phoneNumberId': phoneNumberId },
2942
+ { },
2943
+ { },
2944
+ { },
2945
+ body,
2946
+ ['PureCloud OAuth'],
2947
+ ['application/json'],
2948
+ ['application/json']
2949
+ );
2950
+ }
2951
+
2922
2952
  /**
2923
2953
  * Join or unjoin a queue for a user
2924
2954
  *
@@ -5,7 +5,7 @@ class SCIMApi {
5
5
  /**
6
6
  * SCIM service.
7
7
  * @module purecloud-platform-client-v2/api/SCIMApi
8
- * @version 222.0.0
8
+ * @version 224.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class ScreenRecordingApi {
5
5
  /**
6
6
  * ScreenRecording service.
7
7
  * @module purecloud-platform-client-v2/api/ScreenRecordingApi
8
- * @version 222.0.0
8
+ * @version 224.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class ScriptsApi {
5
5
  /**
6
6
  * Scripts service.
7
7
  * @module purecloud-platform-client-v2/api/ScriptsApi
8
- * @version 222.0.0
8
+ * @version 224.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class SearchApi {
5
5
  /**
6
6
  * Search service.
7
7
  * @module purecloud-platform-client-v2/api/SearchApi
8
- * @version 222.0.0
8
+ * @version 224.0.0
9
9
  */
10
10
 
11
11
  /**