purecloud-platform-client-v2 203.0.0 → 204.0.1

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 +8 -10
  2. package/dist/node/purecloud-platform-client-v2.js +810 -95
  3. package/dist/web-amd/purecloud-platform-client-v2.js +810 -95
  4. package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
  5. package/dist/web-cjs/bundle.js +436 -250
  6. package/dist/web-cjs/purecloud-platform-client-v2.js +2364 -2178
  7. package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
  8. package/index.d.ts +556 -221
  9. package/package.json +5 -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 -1
  17. package/src/purecloud-platform-client-v2/api/AuditApi.js +1 -1
  18. package/src/purecloud-platform-client-v2/api/AuthorizationApi.js +1 -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 +100 -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
@@ -5,7 +5,7 @@ class EventsApi {
5
5
  /**
6
6
  * Events service.
7
7
  * @module purecloud-platform-client-v2/api/EventsApi
8
- * @version 203.0.0
8
+ * @version 204.0.1
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 203.0.0
8
+ * @version 204.0.1
9
9
  */
10
10
 
11
11
  /**
@@ -100,6 +100,32 @@ class ExternalContactsApi {
100
100
  );
101
101
  }
102
102
 
103
+ /**
104
+ * Delete an External Source. WARNING: Any records that reference this External Source will not be automatically cleaned up. Those records will still be editable, but their External IDs may not be fully viewable.
105
+ *
106
+ * @param {String} externalSourceId External Source ID
107
+ * deleteExternalcontactsExternalsource is a preview method and is subject to both breaking and non-breaking changes at any time without notice
108
+ */
109
+ deleteExternalcontactsExternalsource(externalSourceId) {
110
+ // verify the required parameter 'externalSourceId' is set
111
+ if (externalSourceId === undefined || externalSourceId === null) {
112
+ throw 'Missing the required parameter "externalSourceId" when calling deleteExternalcontactsExternalsource';
113
+ }
114
+
115
+ return this.apiClient.callApi(
116
+ '/api/v2/externalcontacts/externalsources/{externalSourceId}',
117
+ 'DELETE',
118
+ { 'externalSourceId': externalSourceId },
119
+ { },
120
+ { },
121
+ { },
122
+ null,
123
+ ['PureCloud OAuth'],
124
+ ['application/json'],
125
+ ['application/json']
126
+ );
127
+ }
128
+
103
129
  /**
104
130
  * Delete an external organization
105
131
  *
@@ -210,7 +236,7 @@ class ExternalContactsApi {
210
236
  *
211
237
  * @param {String} contactId ExternalContact ID
212
238
  * @param {Object} opts Optional parameters
213
- * @param {Array.<String>} opts.expand which fields, if any, to expand (externalOrganization,externalDataSources,identifiers)
239
+ * @param {Array.<String>} opts.expand which fields, if any, to expand
214
240
  */
215
241
  getExternalcontactsContact(contactId, opts) {
216
242
  opts = opts || {};
@@ -513,6 +539,60 @@ class ExternalContactsApi {
513
539
  );
514
540
  }
515
541
 
542
+ /**
543
+ * Fetch an External Source
544
+ *
545
+ * @param {String} externalSourceId External Source ID
546
+ * getExternalcontactsExternalsource is a preview method and is subject to both breaking and non-breaking changes at any time without notice
547
+ */
548
+ getExternalcontactsExternalsource(externalSourceId) {
549
+ // verify the required parameter 'externalSourceId' is set
550
+ if (externalSourceId === undefined || externalSourceId === null) {
551
+ throw 'Missing the required parameter "externalSourceId" when calling getExternalcontactsExternalsource';
552
+ }
553
+
554
+ return this.apiClient.callApi(
555
+ '/api/v2/externalcontacts/externalsources/{externalSourceId}',
556
+ 'GET',
557
+ { 'externalSourceId': externalSourceId },
558
+ { },
559
+ { },
560
+ { },
561
+ null,
562
+ ['PureCloud OAuth'],
563
+ ['application/json'],
564
+ ['application/json']
565
+ );
566
+ }
567
+
568
+ /**
569
+ * Fetch a list of External Sources
570
+ *
571
+ * @param {Object} opts Optional parameters
572
+ * @param {String} opts.cursor Indicates where to resume query results (not required for first page), each page returns a new cursor with a 24h TTL
573
+ * @param {Number} opts.limit The number of ExternalSources per page; must be between 10 and 200, default is 100
574
+ * @param {String} opts.name Filter by external source name. Filtering is prefix filtering and not an exact match
575
+ * @param {Boolean} opts.active Filter by active status of external source
576
+ * getExternalcontactsExternalsources is a preview method and is subject to both breaking and non-breaking changes at any time without notice
577
+ */
578
+ getExternalcontactsExternalsources(opts) {
579
+ opts = opts || {};
580
+
581
+
582
+ return this.apiClient.callApi(
583
+ '/api/v2/externalcontacts/externalsources',
584
+ 'GET',
585
+ { },
586
+ { 'cursor': opts['cursor'],'limit': opts['limit'],'name': opts['name'],'active': opts['active'] },
587
+ { },
588
+ { },
589
+ null,
590
+ ['PureCloud OAuth'],
591
+ ['application/json'],
592
+ ['application/json']
593
+ );
594
+ }
595
+
516
596
  /**
517
597
  * Fetch an external organization
518
598
  *
@@ -1522,6 +1602,32 @@ class ExternalContactsApi {
1522
1602
  );
1523
1603
  }
1524
1604
 
1605
+ /**
1606
+ * Create an External Source
1607
+ *
1608
+ * @param {Object} body External Source
1609
+ * postExternalcontactsExternalsources is a preview method and is subject to both breaking and non-breaking changes at any time without notice
1610
+ */
1611
+ postExternalcontactsExternalsources(body) {
1612
+ // verify the required parameter 'body' is set
1613
+ if (body === undefined || body === null) {
1614
+ throw 'Missing the required parameter "body" when calling postExternalcontactsExternalsources';
1615
+ }
1616
+
1617
+ return this.apiClient.callApi(
1618
+ '/api/v2/externalcontacts/externalsources',
1619
+ 'POST',
1620
+ { },
1621
+ { },
1622
+ { },
1623
+ { },
1624
+ body,
1625
+ ['PureCloud OAuth'],
1626
+ ['application/json'],
1627
+ ['application/json']
1628
+ );
1629
+ }
1630
+
1525
1631
  /**
1526
1632
  * Fetch a contact using an identifier type and value.
1527
1633
  * Phone number identifier values must be provided with the country code and a leading + symbol. Example: "+1 704 298 4733"
@@ -1806,6 +1912,37 @@ class ExternalContactsApi {
1806
1912
  );
1807
1913
  }
1808
1914
 
1915
+ /**
1916
+ * Update an External Source
1917
+ *
1918
+ * @param {String} externalSourceId External Source ID
1919
+ * @param {Object} body External Source
1920
+ * putExternalcontactsExternalsource is a preview method and is subject to both breaking and non-breaking changes at any time without notice
1921
+ */
1922
+ putExternalcontactsExternalsource(externalSourceId, body) {
1923
+ // verify the required parameter 'externalSourceId' is set
1924
+ if (externalSourceId === undefined || externalSourceId === null) {
1925
+ throw 'Missing the required parameter "externalSourceId" when calling putExternalcontactsExternalsource';
1926
+ }
1927
+ // verify the required parameter 'body' is set
1928
+ if (body === undefined || body === null) {
1929
+ throw 'Missing the required parameter "body" when calling putExternalcontactsExternalsource';
1930
+ }
1931
+
1932
+ return this.apiClient.callApi(
1933
+ '/api/v2/externalcontacts/externalsources/{externalSourceId}',
1934
+ 'PUT',
1935
+ { 'externalSourceId': externalSourceId },
1936
+ { },
1937
+ { },
1938
+ { },
1939
+ body,
1940
+ ['PureCloud OAuth'],
1941
+ ['application/json'],
1942
+ ['application/json']
1943
+ );
1944
+ }
1945
+
1809
1946
  /**
1810
1947
  * Update an external organization
1811
1948
  *
@@ -5,7 +5,7 @@ class FaxApi {
5
5
  /**
6
6
  * Fax service.
7
7
  * @module purecloud-platform-client-v2/api/FaxApi
8
- * @version 203.0.0
8
+ * @version 204.0.1
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 203.0.0
8
+ * @version 204.0.1
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 203.0.0
8
+ * @version 204.0.1
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 203.0.0
8
+ * @version 204.0.1
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 203.0.0
8
+ * @version 204.0.1
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 203.0.0
8
+ * @version 204.0.1
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 203.0.0
8
+ * @version 204.0.1
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 203.0.0
8
+ * @version 204.0.1
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 203.0.0
8
+ * @version 204.0.1
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 203.0.0
8
+ * @version 204.0.1
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 203.0.0
8
+ * @version 204.0.1
9
9
  */
10
10
 
11
11
  /**
@@ -153,7 +153,6 @@ class JourneyApi {
153
153
  * Delete a Journey View by ID
154
154
  * deletes all versions
155
155
  * @param {String} viewId viewId
156
- * deleteJourneyView is a preview method and is subject to both breaking and non-breaking changes at any time without notice
157
156
  */
158
157
  deleteJourneyView(viewId) {
159
158
  // verify the required parameter 'viewId' is set
@@ -802,7 +801,6 @@ class JourneyApi {
802
801
  * Get a Journey View by ID
803
802
  * returns the latest version
804
803
  * @param {String} viewId viewId
805
- * getJourneyView is a preview method and is subject to both breaking and non-breaking changes at any time without notice
806
804
  */
807
805
  getJourneyView(viewId) {
808
806
  // verify the required parameter 'viewId' is set
@@ -829,7 +827,6 @@ class JourneyApi {
829
827
  *
830
828
  * @param {String} viewId viewId
831
829
  * @param {String} versionId versionId
832
- * getJourneyViewVersion is a preview method and is subject to both breaking and non-breaking changes at any time without notice
833
830
  */
834
831
  getJourneyViewVersion(viewId, versionId) {
835
832
  // verify the required parameter 'viewId' is set
@@ -861,7 +858,6 @@ class JourneyApi {
861
858
  * @param {String} viewId Journey View Id
862
859
  * @param {String} journeyVersionId Journey View Version
863
860
  * @param {String} jobId JobId
864
- * getJourneyViewVersionJob is a preview method and is subject to both breaking and non-breaking changes at any time without notice
865
861
  */
866
862
  getJourneyViewVersionJob(viewId, journeyVersionId, jobId) {
867
863
  // verify the required parameter 'viewId' is set
@@ -897,7 +893,6 @@ class JourneyApi {
897
893
  * @param {String} viewId JourneyViewResult id
898
894
  * @param {String} journeyViewVersion Journey View Version
899
895
  * @param {String} jobId Id of the executing job
900
- * getJourneyViewVersionJobResults is a preview method and is subject to both breaking and non-breaking changes at any time without notice
901
896
  */
902
897
  getJourneyViewVersionJobResults(viewId, journeyViewVersion, jobId) {
903
898
  // verify the required parameter 'viewId' is set
@@ -932,7 +927,6 @@ class JourneyApi {
932
927
  * used for long descriptions
933
928
  * @param {String} viewId Journey View Id
934
929
  * @param {String} journeyVersionId Journey View Version
935
- * getJourneyViewVersionJobsLatest is a preview method and is subject to both breaking and non-breaking changes at any time without notice
936
930
  */
937
931
  getJourneyViewVersionJobsLatest(viewId, journeyVersionId) {
938
932
  // verify the required parameter 'viewId' is set
@@ -966,7 +960,7 @@ class JourneyApi {
966
960
  * @param {Number} opts.pageSize Page size (default to 25)
967
961
  * @param {String} opts.nameOrCreatedBy Journey View Name or Created By
968
962
  * @param {Object} opts.expand Parameter to request additional data to return in Journey payload
969
- * getJourneyViews is a preview method and is subject to both breaking and non-breaking changes at any time without notice
963
+ * @param {String} opts.id Parameter to request a list of Journey Views by id, separated by commas. Limit of 100 items.
970
964
  */
971
965
  getJourneyViews(opts) {
972
966
  opts = opts || {};
@@ -976,7 +970,7 @@ class JourneyApi {
976
970
  '/api/v2/journey/views',
977
971
  'GET',
978
972
  { },
979
- { 'pageNumber': opts['pageNumber'],'pageSize': opts['pageSize'],'nameOrCreatedBy': opts['nameOrCreatedBy'],'expand': opts['expand'] },
973
+ { 'pageNumber': opts['pageNumber'],'pageSize': opts['pageSize'],'nameOrCreatedBy': opts['nameOrCreatedBy'],'expand': opts['expand'],'id': opts['id'] },
980
974
  { },
981
975
  { },
982
976
  null,
@@ -1041,7 +1035,6 @@ class JourneyApi {
1041
1035
  * @param {Number} opts.pageSize Max number of entities to return (default to 25)
1042
1036
  * @param {String} opts.interval An absolute timeframe for filtering the jobs, expressed as an ISO 8601 interval.
1043
1037
  * @param {String} opts.statuses Job statuses to filter for
1044
- * getJourneyViewsJobs is a preview method and is subject to both breaking and non-breaking changes at any time without notice
1045
1038
  */
1046
1039
  getJourneyViewsJobs(opts) {
1047
1040
  opts = opts || {};
@@ -1544,7 +1537,6 @@ class JourneyApi {
1544
1537
  * used for long descriptions
1545
1538
  * @param {String} viewId Journey View Id
1546
1539
  * @param {String} journeyVersionId Journey View Version
1547
- * postJourneyViewVersionJobs is a preview method and is subject to both breaking and non-breaking changes at any time without notice
1548
1540
  */
1549
1541
  postJourneyViewVersionJobs(viewId, journeyVersionId) {
1550
1542
  // verify the required parameter 'viewId' is set
@@ -1575,7 +1567,6 @@ class JourneyApi {
1575
1567
  * creates a new version
1576
1568
  * @param {String} viewId viewId
1577
1569
  * @param {Object} body JourneyView
1578
- * postJourneyViewVersions is a preview method and is subject to both breaking and non-breaking changes at any time without notice
1579
1570
  */
1580
1571
  postJourneyViewVersions(viewId, body) {
1581
1572
  // verify the required parameter 'viewId' is set
@@ -1605,7 +1596,6 @@ class JourneyApi {
1605
1596
  * Create a new Journey View
1606
1597
  *
1607
1598
  * @param {Object} body JourneyView
1608
- * postJourneyViews is a preview method and is subject to both breaking and non-breaking changes at any time without notice
1609
1599
  */
1610
1600
  postJourneyViews(body) {
1611
1601
  // verify the required parameter 'body' is set
@@ -5,7 +5,7 @@ class KnowledgeApi {
5
5
  /**
6
6
  * Knowledge service.
7
7
  * @module purecloud-platform-client-v2/api/KnowledgeApi
8
- * @version 203.0.0
8
+ * @version 204.0.1
9
9
  */
10
10
 
11
11
  /**
@@ -1751,6 +1751,45 @@ class KnowledgeApi {
1751
1751
  );
1752
1752
  }
1753
1753
 
1754
+ /**
1755
+ * Update feedback on a document
1756
+ *
1757
+ * @param {String} knowledgeBaseId Knowledge base ID.
1758
+ * @param {String} documentId Document ID.
1759
+ * @param {String} feedbackId Feedback ID.
1760
+ * @param {Object} opts Optional parameters
1761
+ * @param {Object} opts.body
1762
+ */
1763
+ patchKnowledgeKnowledgebaseDocumentFeedbackFeedbackId(knowledgeBaseId, documentId, feedbackId, opts) {
1764
+ opts = opts || {};
1765
+
1766
+ // verify the required parameter 'knowledgeBaseId' is set
1767
+ if (knowledgeBaseId === undefined || knowledgeBaseId === null) {
1768
+ throw 'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseDocumentFeedbackFeedbackId';
1769
+ }
1770
+ // verify the required parameter 'documentId' is set
1771
+ if (documentId === undefined || documentId === null) {
1772
+ throw 'Missing the required parameter "documentId" when calling patchKnowledgeKnowledgebaseDocumentFeedbackFeedbackId';
1773
+ }
1774
+ // verify the required parameter 'feedbackId' is set
1775
+ if (feedbackId === undefined || feedbackId === null) {
1776
+ throw 'Missing the required parameter "feedbackId" when calling patchKnowledgeKnowledgebaseDocumentFeedbackFeedbackId';
1777
+ }
1778
+
1779
+ return this.apiClient.callApi(
1780
+ '/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/{documentId}/feedback/{feedbackId}',
1781
+ 'PATCH',
1782
+ { 'knowledgeBaseId': knowledgeBaseId,'documentId': documentId,'feedbackId': feedbackId },
1783
+ { },
1784
+ { },
1785
+ { },
1786
+ opts['body'],
1787
+ ['PureCloud OAuth'],
1788
+ ['application/json'],
1789
+ ['application/json']
1790
+ );
1791
+ }
1792
+
1754
1793
  /**
1755
1794
  * Update a variation for a document.
1756
1795
  *
@@ -2257,6 +2296,36 @@ class KnowledgeApi {
2257
2296
  );
2258
2297
  }
2259
2298
 
2299
+ /**
2300
+ * Answer documents.
2301
+ *
2302
+ * @param {String} sessionId Knowledge guest session ID.
2303
+ * @param {Object} body
2304
+ */
2305
+ postKnowledgeGuestSessionDocumentsAnswers(sessionId, body) {
2306
+ // verify the required parameter 'sessionId' is set
2307
+ if (sessionId === undefined || sessionId === null) {
2308
+ throw 'Missing the required parameter "sessionId" when calling postKnowledgeGuestSessionDocumentsAnswers';
2309
+ }
2310
+ // verify the required parameter 'body' is set
2311
+ if (body === undefined || body === null) {
2312
+ throw 'Missing the required parameter "body" when calling postKnowledgeGuestSessionDocumentsAnswers';
2313
+ }
2314
+
2315
+ return this.apiClient.callApi(
2316
+ '/api/v2/knowledge/guest/sessions/{sessionId}/documents/answers',
2317
+ 'POST',
2318
+ { 'sessionId': sessionId },
2319
+ { },
2320
+ { },
2321
+ { },
2322
+ body,
2323
+ ['PureCloud OAuth'],
2324
+ ['application/json'],
2325
+ ['application/json']
2326
+ );
2327
+ }
2328
+
2260
2329
  /**
2261
2330
  * Indicate that documents were presented to the user.
2262
2331
  *
@@ -2602,6 +2671,36 @@ class KnowledgeApi {
2602
2671
  );
2603
2672
  }
2604
2673
 
2674
+ /**
2675
+ * Answer documents.
2676
+ *
2677
+ * @param {String} knowledgeBaseId Knowledge base ID
2678
+ * @param {Object} body
2679
+ */
2680
+ postKnowledgeKnowledgebaseDocumentsAnswers(knowledgeBaseId, body) {
2681
+ // verify the required parameter 'knowledgeBaseId' is set
2682
+ if (knowledgeBaseId === undefined || knowledgeBaseId === null) {
2683
+ throw 'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentsAnswers';
2684
+ }
2685
+ // verify the required parameter 'body' is set
2686
+ if (body === undefined || body === null) {
2687
+ throw 'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseDocumentsAnswers';
2688
+ }
2689
+
2690
+ return this.apiClient.callApi(
2691
+ '/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/answers',
2692
+ 'POST',
2693
+ { 'knowledgeBaseId': knowledgeBaseId },
2694
+ { },
2695
+ { },
2696
+ { },
2697
+ body,
2698
+ ['PureCloud OAuth'],
2699
+ ['application/json'],
2700
+ ['application/json']
2701
+ );
2702
+ }
2703
+
2605
2704
  /**
2606
2705
  * Bulk remove documents.
2607
2706
  *
@@ -5,7 +5,7 @@ class LanguageUnderstandingApi {
5
5
  /**
6
6
  * LanguageUnderstanding service.
7
7
  * @module purecloud-platform-client-v2/api/LanguageUnderstandingApi
8
- * @version 203.0.0
8
+ * @version 204.0.1
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 203.0.0
8
+ * @version 204.0.1
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 203.0.0
8
+ * @version 204.0.1
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 203.0.0
8
+ * @version 204.0.1
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 203.0.0
8
+ * @version 204.0.1
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 203.0.0
8
+ * @version 204.0.1
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 203.0.0
8
+ * @version 204.0.1
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 203.0.0
8
+ * @version 204.0.1
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 203.0.0
8
+ * @version 204.0.1
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 203.0.0
8
+ * @version 204.0.1
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 203.0.0
8
+ * @version 204.0.1
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 203.0.0
8
+ * @version 204.0.1
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 203.0.0
8
+ * @version 204.0.1
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 203.0.0
8
+ * @version 204.0.1
9
9
  */
10
10
 
11
11
  /**