purecloud-platform-client-v2 204.1.0 → 206.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (89) hide show
  1. package/README.md +5 -3
  2. package/dist/node/purecloud-platform-client-v2.js +1344 -85
  3. package/dist/web-amd/purecloud-platform-client-v2.js +1344 -85
  4. package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
  5. package/dist/web-cjs/bundle.js +410 -87
  6. package/dist/web-cjs/purecloud-platform-client-v2.js +410 -87
  7. package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
  8. package/index.d.ts +986 -7
  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/AgentAssistantsApi.js +1 -1
  12. package/src/purecloud-platform-client-v2/api/AgentCopilotApi.js +1 -1
  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 +1 -1
  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 +33 -4
  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 +1 -1
  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 +191 -1
  42. package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +516 -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 +31 -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 +1 -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 -1
  69. package/src/purecloud-platform-client-v2/api/SpeechTextAnalyticsApi.js +58 -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 +311 -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 +70 -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 +3 -3
  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 +60 -1
  89. package/src/purecloud-platform-client-v2/index.js +1 -1
@@ -5,7 +5,7 @@ class KnowledgeApi {
5
5
  /**
6
6
  * Knowledge service.
7
7
  * @module purecloud-platform-client-v2/api/KnowledgeApi
8
- * @version 204.1.0
8
+ * @version 206.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -338,6 +338,99 @@ class KnowledgeApi {
338
338
  );
339
339
  }
340
340
 
341
+ /**
342
+ * Delete Salesforce Knowledge integration source
343
+ *
344
+ * @param {String} knowledgeBaseId Knowledge base ID
345
+ * @param {String} sourceId Source ID
346
+ * deleteKnowledgeKnowledgebaseSourcesSalesforceSourceId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
347
+ */
348
+ deleteKnowledgeKnowledgebaseSourcesSalesforceSourceId(knowledgeBaseId, sourceId) {
349
+ // verify the required parameter 'knowledgeBaseId' is set
350
+ if (knowledgeBaseId === undefined || knowledgeBaseId === null) {
351
+ throw 'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseSourcesSalesforceSourceId';
352
+ }
353
+ // verify the required parameter 'sourceId' is set
354
+ if (sourceId === undefined || sourceId === null) {
355
+ throw 'Missing the required parameter "sourceId" when calling deleteKnowledgeKnowledgebaseSourcesSalesforceSourceId';
356
+ }
357
+
358
+ return this.apiClient.callApi(
359
+ '/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/sources/salesforce/{sourceId}',
360
+ 'DELETE',
361
+ { 'knowledgeBaseId': knowledgeBaseId,'sourceId': sourceId },
362
+ { },
363
+ { },
364
+ { },
365
+ null,
366
+ ['PureCloud OAuth'],
367
+ ['application/json'],
368
+ ['application/json']
369
+ );
370
+ }
371
+
372
+ /**
373
+ * Delete ServiceNow Knowledge integration source
374
+ *
375
+ * @param {String} knowledgeBaseId Knowledge base ID
376
+ * @param {String} sourceId Source ID
377
+ * deleteKnowledgeKnowledgebaseSourcesServicenowSourceId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
378
+ */
379
+ deleteKnowledgeKnowledgebaseSourcesServicenowSourceId(knowledgeBaseId, sourceId) {
380
+ // verify the required parameter 'knowledgeBaseId' is set
381
+ if (knowledgeBaseId === undefined || knowledgeBaseId === null) {
382
+ throw 'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseSourcesServicenowSourceId';
383
+ }
384
+ // verify the required parameter 'sourceId' is set
385
+ if (sourceId === undefined || sourceId === null) {
386
+ throw 'Missing the required parameter "sourceId" when calling deleteKnowledgeKnowledgebaseSourcesServicenowSourceId';
387
+ }
388
+
389
+ return this.apiClient.callApi(
390
+ '/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/sources/servicenow/{sourceId}',
391
+ 'DELETE',
392
+ { 'knowledgeBaseId': knowledgeBaseId,'sourceId': sourceId },
393
+ { },
394
+ { },
395
+ { },
396
+ null,
397
+ ['PureCloud OAuth'],
398
+ ['application/json'],
399
+ ['application/json']
400
+ );
401
+ }
402
+
403
+ /**
404
+ * Delete synchronization job
405
+ *
406
+ * @param {String} knowledgeBaseId Knowledge base ID
407
+ * @param {String} syncJobId Synchronization job ID
408
+ * deleteKnowledgeKnowledgebaseSynchronizeJob is a preview method and is subject to both breaking and non-breaking changes at any time without notice
409
+ */
410
+ deleteKnowledgeKnowledgebaseSynchronizeJob(knowledgeBaseId, syncJobId) {
411
+ // verify the required parameter 'knowledgeBaseId' is set
412
+ if (knowledgeBaseId === undefined || knowledgeBaseId === null) {
413
+ throw 'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseSynchronizeJob';
414
+ }
415
+ // verify the required parameter 'syncJobId' is set
416
+ if (syncJobId === undefined || syncJobId === null) {
417
+ throw 'Missing the required parameter "syncJobId" when calling deleteKnowledgeKnowledgebaseSynchronizeJob';
418
+ }
419
+
420
+ return this.apiClient.callApi(
421
+ '/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/synchronize/jobs/{syncJobId}',
422
+ 'DELETE',
423
+ { 'knowledgeBaseId': knowledgeBaseId,'syncJobId': syncJobId },
424
+ { },
425
+ { },
426
+ { },
427
+ null,
428
+ ['PureCloud OAuth'],
429
+ ['application/json'],
430
+ ['application/json']
431
+ );
432
+ }
433
+
341
434
  /**
342
435
  * Get categories
343
436
  *
@@ -435,6 +528,32 @@ class KnowledgeApi {
435
528
  );
436
529
  }
437
530
 
531
+ /**
532
+ * Get sync options available for a knowledge-connect integration
533
+ *
534
+ * @param {String} integrationId Integration ID
535
+ * getKnowledgeIntegrationOptions is a preview method and is subject to both breaking and non-breaking changes at any time without notice
536
+ */
537
+ getKnowledgeIntegrationOptions(integrationId) {
538
+ // verify the required parameter 'integrationId' is set
539
+ if (integrationId === undefined || integrationId === null) {
540
+ throw 'Missing the required parameter "integrationId" when calling getKnowledgeIntegrationOptions';
541
+ }
542
+
543
+ return this.apiClient.callApi(
544
+ '/api/v2/knowledge/integrations/{integrationId}/options',
545
+ 'GET',
546
+ { 'integrationId': integrationId },
547
+ { },
548
+ { },
549
+ { },
550
+ null,
551
+ ['PureCloud OAuth'],
552
+ ['application/json'],
553
+ ['application/json']
554
+ );
555
+ }
556
+
438
557
  /**
439
558
  * Get knowledge base
440
559
  *
@@ -1445,6 +1564,139 @@ class KnowledgeApi {
1445
1564
  );
1446
1565
  }
1447
1566
 
1567
+ /**
1568
+ * Get Knowledge integration sources
1569
+ *
1570
+ * @param {String} knowledgeBaseId Knowledge base ID
1571
+ * @param {Object} opts Optional parameters
1572
+ * @param {Object} opts.type If specified, retrieves integration sources with specified integration type.
1573
+ * @param {Array.<String>} opts.expand The specified entity attributes will be filled. Comma separated values expected.
1574
+ * @param {Array.<String>} opts.ids If specified, retrieves integration sources with specified IDs.
1575
+ * getKnowledgeKnowledgebaseSources is a preview method and is subject to both breaking and non-breaking changes at any time without notice
1576
+ */
1577
+ getKnowledgeKnowledgebaseSources(knowledgeBaseId, opts) {
1578
+ opts = opts || {};
1579
+
1580
+ // verify the required parameter 'knowledgeBaseId' is set
1581
+ if (knowledgeBaseId === undefined || knowledgeBaseId === null) {
1582
+ throw 'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseSources';
1583
+ }
1584
+
1585
+ return this.apiClient.callApi(
1586
+ '/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/sources',
1587
+ 'GET',
1588
+ { 'knowledgeBaseId': knowledgeBaseId },
1589
+ { 'type': opts['type'],'expand': this.apiClient.buildCollectionParam(opts['expand'], 'multi'),'ids': this.apiClient.buildCollectionParam(opts['ids'], 'multi') },
1590
+ { },
1591
+ { },
1592
+ null,
1593
+ ['PureCloud OAuth'],
1594
+ ['application/json'],
1595
+ ['application/json']
1596
+ );
1597
+ }
1598
+
1599
+ /**
1600
+ * Get Salesforce Knowledge integration source
1601
+ *
1602
+ * @param {String} knowledgeBaseId Knowledge base ID
1603
+ * @param {String} sourceId Source ID
1604
+ * @param {Object} opts Optional parameters
1605
+ * @param {Array.<String>} opts.expand The specified entity attributes will be filled. Comma separated values expected.
1606
+ * getKnowledgeKnowledgebaseSourcesSalesforceSourceId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
1607
+ */
1608
+ getKnowledgeKnowledgebaseSourcesSalesforceSourceId(knowledgeBaseId, sourceId, opts) {
1609
+ opts = opts || {};
1610
+
1611
+ // verify the required parameter 'knowledgeBaseId' is set
1612
+ if (knowledgeBaseId === undefined || knowledgeBaseId === null) {
1613
+ throw 'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseSourcesSalesforceSourceId';
1614
+ }
1615
+ // verify the required parameter 'sourceId' is set
1616
+ if (sourceId === undefined || sourceId === null) {
1617
+ throw 'Missing the required parameter "sourceId" when calling getKnowledgeKnowledgebaseSourcesSalesforceSourceId';
1618
+ }
1619
+
1620
+ return this.apiClient.callApi(
1621
+ '/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/sources/salesforce/{sourceId}',
1622
+ 'GET',
1623
+ { 'knowledgeBaseId': knowledgeBaseId,'sourceId': sourceId },
1624
+ { 'expand': this.apiClient.buildCollectionParam(opts['expand'], 'multi') },
1625
+ { },
1626
+ { },
1627
+ null,
1628
+ ['PureCloud OAuth'],
1629
+ ['application/json'],
1630
+ ['application/json']
1631
+ );
1632
+ }
1633
+
1634
+ /**
1635
+ * Get ServiceNow Knowledge integration source
1636
+ *
1637
+ * @param {String} knowledgeBaseId Knowledge base ID
1638
+ * @param {String} sourceId Source ID
1639
+ * @param {Object} opts Optional parameters
1640
+ * @param {Array.<String>} opts.expand The specified entity attributes will be filled. Comma separated values expected.
1641
+ * getKnowledgeKnowledgebaseSourcesServicenowSourceId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
1642
+ */
1643
+ getKnowledgeKnowledgebaseSourcesServicenowSourceId(knowledgeBaseId, sourceId, opts) {
1644
+ opts = opts || {};
1645
+
1646
+ // verify the required parameter 'knowledgeBaseId' is set
1647
+ if (knowledgeBaseId === undefined || knowledgeBaseId === null) {
1648
+ throw 'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseSourcesServicenowSourceId';
1649
+ }
1650
+ // verify the required parameter 'sourceId' is set
1651
+ if (sourceId === undefined || sourceId === null) {
1652
+ throw 'Missing the required parameter "sourceId" when calling getKnowledgeKnowledgebaseSourcesServicenowSourceId';
1653
+ }
1654
+
1655
+ return this.apiClient.callApi(
1656
+ '/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/sources/servicenow/{sourceId}',
1657
+ 'GET',
1658
+ { 'knowledgeBaseId': knowledgeBaseId,'sourceId': sourceId },
1659
+ { 'expand': this.apiClient.buildCollectionParam(opts['expand'], 'multi') },
1660
+ { },
1661
+ { },
1662
+ null,
1663
+ ['PureCloud OAuth'],
1664
+ ['application/json'],
1665
+ ['application/json']
1666
+ );
1667
+ }
1668
+
1669
+ /**
1670
+ * Get synchronization job report
1671
+ *
1672
+ * @param {String} knowledgeBaseId Knowledge base ID
1673
+ * @param {String} syncJobId Synchronization job ID
1674
+ * getKnowledgeKnowledgebaseSynchronizeJob is a preview method and is subject to both breaking and non-breaking changes at any time without notice
1675
+ */
1676
+ getKnowledgeKnowledgebaseSynchronizeJob(knowledgeBaseId, syncJobId) {
1677
+ // verify the required parameter 'knowledgeBaseId' is set
1678
+ if (knowledgeBaseId === undefined || knowledgeBaseId === null) {
1679
+ throw 'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseSynchronizeJob';
1680
+ }
1681
+ // verify the required parameter 'syncJobId' is set
1682
+ if (syncJobId === undefined || syncJobId === null) {
1683
+ throw 'Missing the required parameter "syncJobId" when calling getKnowledgeKnowledgebaseSynchronizeJob';
1684
+ }
1685
+
1686
+ return this.apiClient.callApi(
1687
+ '/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/synchronize/jobs/{syncJobId}',
1688
+ 'GET',
1689
+ { 'knowledgeBaseId': knowledgeBaseId,'syncJobId': syncJobId },
1690
+ { },
1691
+ { },
1692
+ { },
1693
+ null,
1694
+ ['PureCloud OAuth'],
1695
+ ['application/json'],
1696
+ ['application/json']
1697
+ );
1698
+ }
1699
+
1448
1700
  /**
1449
1701
  * Get knowledge base unanswered group for a particular groupId
1450
1702
  *
@@ -2129,6 +2381,42 @@ class KnowledgeApi {
2129
2381
  );
2130
2382
  }
2131
2383
 
2384
+ /**
2385
+ * Update synchronization job
2386
+ *
2387
+ * @param {String} knowledgeBaseId Knowledge base ID
2388
+ * @param {String} syncJobId Synchronization job ID
2389
+ * @param {Object} body
2390
+ * patchKnowledgeKnowledgebaseSynchronizeJob is a preview method and is subject to both breaking and non-breaking changes at any time without notice
2391
+ */
2392
+ patchKnowledgeKnowledgebaseSynchronizeJob(knowledgeBaseId, syncJobId, body) {
2393
+ // verify the required parameter 'knowledgeBaseId' is set
2394
+ if (knowledgeBaseId === undefined || knowledgeBaseId === null) {
2395
+ throw 'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseSynchronizeJob';
2396
+ }
2397
+ // verify the required parameter 'syncJobId' is set
2398
+ if (syncJobId === undefined || syncJobId === null) {
2399
+ throw 'Missing the required parameter "syncJobId" when calling patchKnowledgeKnowledgebaseSynchronizeJob';
2400
+ }
2401
+ // verify the required parameter 'body' is set
2402
+ if (body === undefined || body === null) {
2403
+ throw 'Missing the required parameter "body" when calling patchKnowledgeKnowledgebaseSynchronizeJob';
2404
+ }
2405
+
2406
+ return this.apiClient.callApi(
2407
+ '/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/synchronize/jobs/{syncJobId}',
2408
+ 'PATCH',
2409
+ { 'knowledgeBaseId': knowledgeBaseId,'syncJobId': syncJobId },
2410
+ { },
2411
+ { },
2412
+ { },
2413
+ body,
2414
+ ['PureCloud OAuth'],
2415
+ ['application/json'],
2416
+ ['application/json']
2417
+ );
2418
+ }
2419
+
2132
2420
  /**
2133
2421
  * Update a Knowledge base unanswered phrase group
2134
2422
  *
@@ -3316,6 +3604,161 @@ class KnowledgeApi {
3316
3604
  );
3317
3605
  }
3318
3606
 
3607
+ /**
3608
+ * Create Salesforce Knowledge integration source
3609
+ *
3610
+ * @param {String} knowledgeBaseId Knowledge base ID
3611
+ * @param {Object} body
3612
+ * postKnowledgeKnowledgebaseSourcesSalesforce is a preview method and is subject to both breaking and non-breaking changes at any time without notice
3613
+ */
3614
+ postKnowledgeKnowledgebaseSourcesSalesforce(knowledgeBaseId, body) {
3615
+ // verify the required parameter 'knowledgeBaseId' is set
3616
+ if (knowledgeBaseId === undefined || knowledgeBaseId === null) {
3617
+ throw 'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseSourcesSalesforce';
3618
+ }
3619
+ // verify the required parameter 'body' is set
3620
+ if (body === undefined || body === null) {
3621
+ throw 'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseSourcesSalesforce';
3622
+ }
3623
+
3624
+ return this.apiClient.callApi(
3625
+ '/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/sources/salesforce',
3626
+ 'POST',
3627
+ { 'knowledgeBaseId': knowledgeBaseId },
3628
+ { },
3629
+ { },
3630
+ { },
3631
+ body,
3632
+ ['PureCloud OAuth'],
3633
+ ['application/json'],
3634
+ ['application/json']
3635
+ );
3636
+ }
3637
+
3638
+ /**
3639
+ * Start sync on Salesforce Knowledge integration source
3640
+ *
3641
+ * @param {String} knowledgeBaseId Knowledge base ID
3642
+ * @param {String} sourceId Source ID
3643
+ * postKnowledgeKnowledgebaseSourcesSalesforceSourceIdSync is a preview method and is subject to both breaking and non-breaking changes at any time without notice
3644
+ */
3645
+ postKnowledgeKnowledgebaseSourcesSalesforceSourceIdSync(knowledgeBaseId, sourceId) {
3646
+ // verify the required parameter 'knowledgeBaseId' is set
3647
+ if (knowledgeBaseId === undefined || knowledgeBaseId === null) {
3648
+ throw 'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseSourcesSalesforceSourceIdSync';
3649
+ }
3650
+ // verify the required parameter 'sourceId' is set
3651
+ if (sourceId === undefined || sourceId === null) {
3652
+ throw 'Missing the required parameter "sourceId" when calling postKnowledgeKnowledgebaseSourcesSalesforceSourceIdSync';
3653
+ }
3654
+
3655
+ return this.apiClient.callApi(
3656
+ '/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/sources/salesforce/{sourceId}/sync',
3657
+ 'POST',
3658
+ { 'knowledgeBaseId': knowledgeBaseId,'sourceId': sourceId },
3659
+ { },
3660
+ { },
3661
+ { },
3662
+ null,
3663
+ ['PureCloud OAuth'],
3664
+ ['application/json'],
3665
+ ['application/json']
3666
+ );
3667
+ }
3668
+
3669
+ /**
3670
+ * Create ServiceNow Knowledge integration source
3671
+ *
3672
+ * @param {String} knowledgeBaseId Knowledge base ID
3673
+ * @param {Object} body
3674
+ * postKnowledgeKnowledgebaseSourcesServicenow is a preview method and is subject to both breaking and non-breaking changes at any time without notice
3675
+ */
3676
+ postKnowledgeKnowledgebaseSourcesServicenow(knowledgeBaseId, body) {
3677
+ // verify the required parameter 'knowledgeBaseId' is set
3678
+ if (knowledgeBaseId === undefined || knowledgeBaseId === null) {
3679
+ throw 'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseSourcesServicenow';
3680
+ }
3681
+ // verify the required parameter 'body' is set
3682
+ if (body === undefined || body === null) {
3683
+ throw 'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseSourcesServicenow';
3684
+ }
3685
+
3686
+ return this.apiClient.callApi(
3687
+ '/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/sources/servicenow',
3688
+ 'POST',
3689
+ { 'knowledgeBaseId': knowledgeBaseId },
3690
+ { },
3691
+ { },
3692
+ { },
3693
+ body,
3694
+ ['PureCloud OAuth'],
3695
+ ['application/json'],
3696
+ ['application/json']
3697
+ );
3698
+ }
3699
+
3700
+ /**
3701
+ * Start synchronization on ServiceNow Knowledge integration source
3702
+ *
3703
+ * @param {String} knowledgeBaseId Knowledge base ID
3704
+ * @param {String} sourceId Source ID
3705
+ * postKnowledgeKnowledgebaseSourcesServicenowSourceIdSync is a preview method and is subject to both breaking and non-breaking changes at any time without notice
3706
+ */
3707
+ postKnowledgeKnowledgebaseSourcesServicenowSourceIdSync(knowledgeBaseId, sourceId) {
3708
+ // verify the required parameter 'knowledgeBaseId' is set
3709
+ if (knowledgeBaseId === undefined || knowledgeBaseId === null) {
3710
+ throw 'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseSourcesServicenowSourceIdSync';
3711
+ }
3712
+ // verify the required parameter 'sourceId' is set
3713
+ if (sourceId === undefined || sourceId === null) {
3714
+ throw 'Missing the required parameter "sourceId" when calling postKnowledgeKnowledgebaseSourcesServicenowSourceIdSync';
3715
+ }
3716
+
3717
+ return this.apiClient.callApi(
3718
+ '/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/sources/servicenow/{sourceId}/sync',
3719
+ 'POST',
3720
+ { 'knowledgeBaseId': knowledgeBaseId,'sourceId': sourceId },
3721
+ { },
3722
+ { },
3723
+ { },
3724
+ null,
3725
+ ['PureCloud OAuth'],
3726
+ ['application/json'],
3727
+ ['application/json']
3728
+ );
3729
+ }
3730
+
3731
+ /**
3732
+ * Create synchronization job
3733
+ *
3734
+ * @param {String} knowledgeBaseId Knowledge base ID
3735
+ * @param {Object} body
3736
+ * postKnowledgeKnowledgebaseSynchronizeJobs is a preview method and is subject to both breaking and non-breaking changes at any time without notice
3737
+ */
3738
+ postKnowledgeKnowledgebaseSynchronizeJobs(knowledgeBaseId, body) {
3739
+ // verify the required parameter 'knowledgeBaseId' is set
3740
+ if (knowledgeBaseId === undefined || knowledgeBaseId === null) {
3741
+ throw 'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseSynchronizeJobs';
3742
+ }
3743
+ // verify the required parameter 'body' is set
3744
+ if (body === undefined || body === null) {
3745
+ throw 'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseSynchronizeJobs';
3746
+ }
3747
+
3748
+ return this.apiClient.callApi(
3749
+ '/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/synchronize/jobs',
3750
+ 'POST',
3751
+ { 'knowledgeBaseId': knowledgeBaseId },
3752
+ { },
3753
+ { },
3754
+ { },
3755
+ body,
3756
+ ['PureCloud OAuth'],
3757
+ ['application/json'],
3758
+ ['application/json']
3759
+ );
3760
+ }
3761
+
3319
3762
  /**
3320
3763
  * Create content upload from URL job
3321
3764
  *
@@ -3372,6 +3815,78 @@ class KnowledgeApi {
3372
3815
  );
3373
3816
  }
3374
3817
 
3818
+ /**
3819
+ * Update Salesforce Knowledge integration source
3820
+ *
3821
+ * @param {String} knowledgeBaseId Knowledge base ID
3822
+ * @param {String} sourceId Source ID
3823
+ * @param {Object} body
3824
+ * putKnowledgeKnowledgebaseSourcesSalesforceSourceId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
3825
+ */
3826
+ putKnowledgeKnowledgebaseSourcesSalesforceSourceId(knowledgeBaseId, sourceId, body) {
3827
+ // verify the required parameter 'knowledgeBaseId' is set
3828
+ if (knowledgeBaseId === undefined || knowledgeBaseId === null) {
3829
+ throw 'Missing the required parameter "knowledgeBaseId" when calling putKnowledgeKnowledgebaseSourcesSalesforceSourceId';
3830
+ }
3831
+ // verify the required parameter 'sourceId' is set
3832
+ if (sourceId === undefined || sourceId === null) {
3833
+ throw 'Missing the required parameter "sourceId" when calling putKnowledgeKnowledgebaseSourcesSalesforceSourceId';
3834
+ }
3835
+ // verify the required parameter 'body' is set
3836
+ if (body === undefined || body === null) {
3837
+ throw 'Missing the required parameter "body" when calling putKnowledgeKnowledgebaseSourcesSalesforceSourceId';
3838
+ }
3839
+
3840
+ return this.apiClient.callApi(
3841
+ '/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/sources/salesforce/{sourceId}',
3842
+ 'PUT',
3843
+ { 'knowledgeBaseId': knowledgeBaseId,'sourceId': sourceId },
3844
+ { },
3845
+ { },
3846
+ { },
3847
+ body,
3848
+ ['PureCloud OAuth'],
3849
+ ['application/json'],
3850
+ ['application/json']
3851
+ );
3852
+ }
3853
+
3854
+ /**
3855
+ * Update ServiceNow Knowledge integration source
3856
+ *
3857
+ * @param {String} knowledgeBaseId Knowledge base ID
3858
+ * @param {String} sourceId Source ID
3859
+ * @param {Object} body
3860
+ * putKnowledgeKnowledgebaseSourcesServicenowSourceId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
3861
+ */
3862
+ putKnowledgeKnowledgebaseSourcesServicenowSourceId(knowledgeBaseId, sourceId, body) {
3863
+ // verify the required parameter 'knowledgeBaseId' is set
3864
+ if (knowledgeBaseId === undefined || knowledgeBaseId === null) {
3865
+ throw 'Missing the required parameter "knowledgeBaseId" when calling putKnowledgeKnowledgebaseSourcesServicenowSourceId';
3866
+ }
3867
+ // verify the required parameter 'sourceId' is set
3868
+ if (sourceId === undefined || sourceId === null) {
3869
+ throw 'Missing the required parameter "sourceId" when calling putKnowledgeKnowledgebaseSourcesServicenowSourceId';
3870
+ }
3871
+ // verify the required parameter 'body' is set
3872
+ if (body === undefined || body === null) {
3873
+ throw 'Missing the required parameter "body" when calling putKnowledgeKnowledgebaseSourcesServicenowSourceId';
3874
+ }
3875
+
3876
+ return this.apiClient.callApi(
3877
+ '/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/sources/servicenow/{sourceId}',
3878
+ 'PUT',
3879
+ { 'knowledgeBaseId': knowledgeBaseId,'sourceId': sourceId },
3880
+ { },
3881
+ { },
3882
+ { },
3883
+ body,
3884
+ ['PureCloud OAuth'],
3885
+ ['application/json'],
3886
+ ['application/json']
3887
+ );
3888
+ }
3889
+
3375
3890
  }
3376
3891
 
3377
3892
 
@@ -5,7 +5,7 @@ class LanguageUnderstandingApi {
5
5
  /**
6
6
  * LanguageUnderstanding service.
7
7
  * @module purecloud-platform-client-v2/api/LanguageUnderstandingApi
8
- * @version 204.1.0
8
+ * @version 206.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 204.1.0
8
+ * @version 206.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 204.1.0
8
+ * @version 206.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 204.1.0
8
+ * @version 206.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 204.1.0
8
+ * @version 206.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 204.1.0
8
+ * @version 206.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 204.1.0
8
+ * @version 206.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 204.1.0
8
+ * @version 206.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 204.1.0
8
+ * @version 206.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 204.1.0
8
+ * @version 206.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 204.1.0
8
+ * @version 206.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 204.1.0
8
+ * @version 206.0.0
9
9
  */
10
10
 
11
11
  /**