purecloud-platform-client-v2 245.0.0 → 246.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 (96) hide show
  1. package/README.md +3 -3
  2. package/dist/node/purecloud-platform-client-v2.js +1071 -103
  3. package/dist/web-amd/purecloud-platform-client-v2.js +1071 -103
  4. package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
  5. package/dist/web-cjs/bundle.js +334 -104
  6. package/dist/web-cjs/purecloud-platform-client-v2.js +388 -123
  7. package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
  8. package/index.d.ts +623 -263
  9. package/package.json +2 -2
  10. package/src/purecloud-platform-client-v2/ApiClient.js +6 -1
  11. package/src/purecloud-platform-client-v2/api/AIStudioApi.js +1 -1
  12. package/src/purecloud-platform-client-v2/api/AgentAssistantsApi.js +1 -1
  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 +1 -1
  17. package/src/purecloud-platform-client-v2/api/ArchitectApi.js +1 -1
  18. package/src/purecloud-platform-client-v2/api/AssistantCopilotVariationsApi.js +1 -1
  19. package/src/purecloud-platform-client-v2/api/AuditApi.js +1 -1
  20. package/src/purecloud-platform-client-v2/api/AuthorizationApi.js +1 -1
  21. package/src/purecloud-platform-client-v2/api/BackgroundAssistantApi.js +1 -1
  22. package/src/purecloud-platform-client-v2/api/BillingApi.js +1 -1
  23. package/src/purecloud-platform-client-v2/api/BusinessRulesApi.js +1 -1
  24. package/src/purecloud-platform-client-v2/api/CarrierServicesApi.js +1 -1
  25. package/src/purecloud-platform-client-v2/api/ChatApi.js +1 -1
  26. package/src/purecloud-platform-client-v2/api/CoachingApi.js +1 -1
  27. package/src/purecloud-platform-client-v2/api/ContentManagementApi.js +1 -1
  28. package/src/purecloud-platform-client-v2/api/ConversationsApi.js +661 -3
  29. package/src/purecloud-platform-client-v2/api/DataExtensionsApi.js +1 -1
  30. package/src/purecloud-platform-client-v2/api/DataPrivacyApi.js +1 -1
  31. package/src/purecloud-platform-client-v2/api/DownloadsApi.js +1 -1
  32. package/src/purecloud-platform-client-v2/api/EmailsApi.js +1 -1
  33. package/src/purecloud-platform-client-v2/api/EmployeeEngagementApi.js +1 -1
  34. package/src/purecloud-platform-client-v2/api/EventsApi.js +1 -1
  35. package/src/purecloud-platform-client-v2/api/ExternalContactsApi.js +1 -1
  36. package/src/purecloud-platform-client-v2/api/FaxApi.js +1 -1
  37. package/src/purecloud-platform-client-v2/api/FlowsApi.js +1 -1
  38. package/src/purecloud-platform-client-v2/api/GamificationApi.js +1 -1
  39. package/src/purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi.js +1 -1
  40. package/src/purecloud-platform-client-v2/api/GeolocationApi.js +1 -1
  41. package/src/purecloud-platform-client-v2/api/GreetingsApi.js +1 -1
  42. package/src/purecloud-platform-client-v2/api/GroupsApi.js +1 -1
  43. package/src/purecloud-platform-client-v2/api/IdentityProviderApi.js +1 -1
  44. package/src/purecloud-platform-client-v2/api/InfrastructureAsCodeApi.js +1 -1
  45. package/src/purecloud-platform-client-v2/api/IntegrationsApi.js +1 -1
  46. package/src/purecloud-platform-client-v2/api/IntentsApi.js +1 -1
  47. package/src/purecloud-platform-client-v2/api/JourneyApi.js +1 -1
  48. package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +1 -1
  49. package/src/purecloud-platform-client-v2/api/LanguageUnderstandingApi.js +1 -1
  50. package/src/purecloud-platform-client-v2/api/LanguagesApi.js +1 -1
  51. package/src/purecloud-platform-client-v2/api/LearningApi.js +1 -1
  52. package/src/purecloud-platform-client-v2/api/LicenseApi.js +1 -1
  53. package/src/purecloud-platform-client-v2/api/LocationsApi.js +1 -1
  54. package/src/purecloud-platform-client-v2/api/LogCaptureApi.js +1 -1
  55. package/src/purecloud-platform-client-v2/api/MessagingApi.js +1 -1
  56. package/src/purecloud-platform-client-v2/api/MobileDevicesApi.js +1 -1
  57. package/src/purecloud-platform-client-v2/api/NotificationsApi.js +1 -1
  58. package/src/purecloud-platform-client-v2/api/OAuthApi.js +1 -1
  59. package/src/purecloud-platform-client-v2/api/ObjectsApi.js +1 -1
  60. package/src/purecloud-platform-client-v2/api/OperationalEventsApi.js +1 -1
  61. package/src/purecloud-platform-client-v2/api/OrganizationApi.js +1 -1
  62. package/src/purecloud-platform-client-v2/api/OrganizationAuthorizationApi.js +1 -1
  63. package/src/purecloud-platform-client-v2/api/OutboundApi.js +1 -1
  64. package/src/purecloud-platform-client-v2/api/PresenceApi.js +1 -1
  65. package/src/purecloud-platform-client-v2/api/ProcessAutomationApi.js +1 -1
  66. package/src/purecloud-platform-client-v2/api/QualityApi.js +1 -1
  67. package/src/purecloud-platform-client-v2/api/RecordingApi.js +1 -1
  68. package/src/purecloud-platform-client-v2/api/ResponseManagementApi.js +1 -1
  69. package/src/purecloud-platform-client-v2/api/RoutingApi.js +31 -1
  70. package/src/purecloud-platform-client-v2/api/SCIMApi.js +1 -1
  71. package/src/purecloud-platform-client-v2/api/ScriptsApi.js +1 -1
  72. package/src/purecloud-platform-client-v2/api/SearchApi.js +26 -1
  73. package/src/purecloud-platform-client-v2/api/SettingsApi.js +1 -1
  74. package/src/purecloud-platform-client-v2/api/SocialMediaApi.js +248 -1
  75. package/src/purecloud-platform-client-v2/api/SpeechTextAnalyticsApi.js +1 -1
  76. package/src/purecloud-platform-client-v2/api/StationsApi.js +1 -1
  77. package/src/purecloud-platform-client-v2/api/SuggestApi.js +1 -1
  78. package/src/purecloud-platform-client-v2/api/TaskManagementApi.js +1 -1
  79. package/src/purecloud-platform-client-v2/api/TeamsApi.js +1 -1
  80. package/src/purecloud-platform-client-v2/api/TelephonyApi.js +1 -1
  81. package/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js +1 -1
  82. package/src/purecloud-platform-client-v2/api/TextbotsApi.js +1 -1
  83. package/src/purecloud-platform-client-v2/api/TokensApi.js +1 -1
  84. package/src/purecloud-platform-client-v2/api/UploadsApi.js +1 -1
  85. package/src/purecloud-platform-client-v2/api/UsageApi.js +1 -1
  86. package/src/purecloud-platform-client-v2/api/UserRecordingsApi.js +1 -1
  87. package/src/purecloud-platform-client-v2/api/UsersApi.js +1 -1
  88. package/src/purecloud-platform-client-v2/api/UsersRulesApi.js +1 -10
  89. package/src/purecloud-platform-client-v2/api/UtilitiesApi.js +1 -1
  90. package/src/purecloud-platform-client-v2/api/VoicemailApi.js +1 -1
  91. package/src/purecloud-platform-client-v2/api/WebChatApi.js +1 -1
  92. package/src/purecloud-platform-client-v2/api/WebDeploymentsApi.js +18 -6
  93. package/src/purecloud-platform-client-v2/api/WebMessagingApi.js +1 -1
  94. package/src/purecloud-platform-client-v2/api/WidgetsApi.js +1 -1
  95. package/src/purecloud-platform-client-v2/api/WorkforceManagementApi.js +1 -1
  96. package/src/purecloud-platform-client-v2/index.js +1 -1
@@ -5,7 +5,7 @@ class ConversationsApi {
5
5
  /**
6
6
  * Conversations service.
7
7
  * @module purecloud-platform-client-v2/api/ConversationsApi
8
- * @version 245.0.0
8
+ * @version 246.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -96,6 +96,36 @@ class ConversationsApi {
96
96
  );
97
97
  }
98
98
 
99
+ /**
100
+ * Delete a custom attributes record.
101
+ *
102
+ * @param {String} conversationId conversation ID
103
+ * @param {String} attributesId attributesId
104
+ */
105
+ deleteConversationCustomattribute(conversationId, attributesId) {
106
+ // verify the required parameter 'conversationId' is set
107
+ if (conversationId === undefined || conversationId === null || conversationId === '') {
108
+ throw 'Missing the required parameter "conversationId" when calling deleteConversationCustomattribute';
109
+ }
110
+ // verify the required parameter 'attributesId' is set
111
+ if (attributesId === undefined || attributesId === null || attributesId === '') {
112
+ throw 'Missing the required parameter "attributesId" when calling deleteConversationCustomattribute';
113
+ }
114
+
115
+ return this.apiClient.callApi(
116
+ '/api/v2/conversations/{conversationId}/customattributes/{attributesId}',
117
+ 'DELETE',
118
+ { 'conversationId': conversationId,'attributesId': attributesId },
119
+ { },
120
+ { },
121
+ { },
122
+ null,
123
+ ['PureCloud OAuth'],
124
+ ['application/json'],
125
+ ['application/json']
126
+ );
127
+ }
128
+
99
129
  /**
100
130
  * Delete a code used to add a communication to this participant
101
131
  *
@@ -356,6 +386,32 @@ class ConversationsApi {
356
386
  );
357
387
  }
358
388
 
389
+ /**
390
+ * Delete an Open messaging integration with the Google Business Profile extension
391
+ * See https://developer.genesys.cloud/api/digital/openmessaging/ for more information.
392
+ * @param {String} integrationId Integration ID
393
+ * deleteConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileIntegrationId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
394
+ */
395
+ deleteConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileIntegrationId(integrationId) {
396
+ // verify the required parameter 'integrationId' is set
397
+ if (integrationId === undefined || integrationId === null || integrationId === '') {
398
+ throw 'Missing the required parameter "integrationId" when calling deleteConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileIntegrationId';
399
+ }
400
+
401
+ return this.apiClient.callApi(
402
+ '/api/v2/conversations/messaging/integrations/open/extensions/googlebusinessprofile/{integrationId}',
403
+ 'DELETE',
404
+ { 'integrationId': integrationId },
405
+ { },
406
+ { },
407
+ { },
408
+ null,
409
+ ['PureCloud OAuth'],
410
+ ['application/json'],
411
+ ['application/json']
412
+ );
413
+ }
414
+
359
415
  /**
360
416
  * Delete an Open messaging integration
361
417
  * See https://developer.genesys.cloud/api/digital/openmessaging/ for more information.
@@ -881,6 +937,61 @@ class ConversationsApi {
881
937
  );
882
938
  }
883
939
 
940
+ /**
941
+ * Get custom attributes by id
942
+ *
943
+ * @param {String} conversationId conversation ID
944
+ * @param {String} attributesId attributesId
945
+ */
946
+ getConversationCustomattribute(conversationId, attributesId) {
947
+ // verify the required parameter 'conversationId' is set
948
+ if (conversationId === undefined || conversationId === null || conversationId === '') {
949
+ throw 'Missing the required parameter "conversationId" when calling getConversationCustomattribute';
950
+ }
951
+ // verify the required parameter 'attributesId' is set
952
+ if (attributesId === undefined || attributesId === null || attributesId === '') {
953
+ throw 'Missing the required parameter "attributesId" when calling getConversationCustomattribute';
954
+ }
955
+
956
+ return this.apiClient.callApi(
957
+ '/api/v2/conversations/{conversationId}/customattributes/{attributesId}',
958
+ 'GET',
959
+ { 'conversationId': conversationId,'attributesId': attributesId },
960
+ { },
961
+ { },
962
+ { },
963
+ null,
964
+ ['PureCloud OAuth'],
965
+ ['application/json'],
966
+ ['application/json']
967
+ );
968
+ }
969
+
970
+ /**
971
+ * Get a list of custom attributes for a conversation.
972
+ *
973
+ * @param {String} conversationId conversation ID
974
+ */
975
+ getConversationCustomattributes(conversationId) {
976
+ // verify the required parameter 'conversationId' is set
977
+ if (conversationId === undefined || conversationId === null || conversationId === '') {
978
+ throw 'Missing the required parameter "conversationId" when calling getConversationCustomattributes';
979
+ }
980
+
981
+ return this.apiClient.callApi(
982
+ '/api/v2/conversations/{conversationId}/customattributes',
983
+ 'GET',
984
+ { 'conversationId': conversationId },
985
+ { },
986
+ { },
987
+ { },
988
+ null,
989
+ ['PureCloud OAuth'],
990
+ ['application/json'],
991
+ ['application/json']
992
+ );
993
+ }
994
+
884
995
  /**
885
996
  * Fetch info on a secure session
886
997
  *
@@ -1858,6 +1969,171 @@ class ConversationsApi {
1858
1969
  );
1859
1970
  }
1860
1971
 
1972
+ /**
1973
+ * Get a schema
1974
+ *
1975
+ * @param {String} schemaId Schema ID
1976
+ */
1977
+ getConversationsCustomattributesSchema(schemaId) {
1978
+ // verify the required parameter 'schemaId' is set
1979
+ if (schemaId === undefined || schemaId === null || schemaId === '') {
1980
+ throw 'Missing the required parameter "schemaId" when calling getConversationsCustomattributesSchema';
1981
+ }
1982
+
1983
+ return this.apiClient.callApi(
1984
+ '/api/v2/conversations/customattributes/schemas/{schemaId}',
1985
+ 'GET',
1986
+ { 'schemaId': schemaId },
1987
+ { },
1988
+ { },
1989
+ { },
1990
+ null,
1991
+ ['PureCloud OAuth'],
1992
+ ['application/json'],
1993
+ ['application/json']
1994
+ );
1995
+ }
1996
+
1997
+ /**
1998
+ * Get a specific version of a schema
1999
+ *
2000
+ * @param {String} schemaId Schema ID
2001
+ * @param {String} versionId Schema version
2002
+ */
2003
+ getConversationsCustomattributesSchemaVersion(schemaId, versionId) {
2004
+ // verify the required parameter 'schemaId' is set
2005
+ if (schemaId === undefined || schemaId === null || schemaId === '') {
2006
+ throw 'Missing the required parameter "schemaId" when calling getConversationsCustomattributesSchemaVersion';
2007
+ }
2008
+ // verify the required parameter 'versionId' is set
2009
+ if (versionId === undefined || versionId === null || versionId === '') {
2010
+ throw 'Missing the required parameter "versionId" when calling getConversationsCustomattributesSchemaVersion';
2011
+ }
2012
+
2013
+ return this.apiClient.callApi(
2014
+ '/api/v2/conversations/customattributes/schemas/{schemaId}/versions/{versionId}',
2015
+ 'GET',
2016
+ { 'schemaId': schemaId,'versionId': versionId },
2017
+ { },
2018
+ { },
2019
+ { },
2020
+ null,
2021
+ ['PureCloud OAuth'],
2022
+ ['application/json'],
2023
+ ['application/json']
2024
+ );
2025
+ }
2026
+
2027
+ /**
2028
+ * Get all versions of a CCA schema
2029
+ *
2030
+ * @param {String} schemaId Schema ID
2031
+ */
2032
+ getConversationsCustomattributesSchemaVersions(schemaId) {
2033
+ // verify the required parameter 'schemaId' is set
2034
+ if (schemaId === undefined || schemaId === null || schemaId === '') {
2035
+ throw 'Missing the required parameter "schemaId" when calling getConversationsCustomattributesSchemaVersions';
2036
+ }
2037
+
2038
+ return this.apiClient.callApi(
2039
+ '/api/v2/conversations/customattributes/schemas/{schemaId}/versions',
2040
+ 'GET',
2041
+ { 'schemaId': schemaId },
2042
+ { },
2043
+ { },
2044
+ { },
2045
+ null,
2046
+ ['PureCloud OAuth'],
2047
+ ['application/json'],
2048
+ ['application/json']
2049
+ );
2050
+ }
2051
+
2052
+ /**
2053
+ * Get a list of schemas.
2054
+ *
2055
+ */
2056
+ getConversationsCustomattributesSchemas() {
2057
+
2058
+ return this.apiClient.callApi(
2059
+ '/api/v2/conversations/customattributes/schemas',
2060
+ 'GET',
2061
+ { },
2062
+ { },
2063
+ { },
2064
+ { },
2065
+ null,
2066
+ ['PureCloud OAuth'],
2067
+ ['application/json'],
2068
+ ['application/json']
2069
+ );
2070
+ }
2071
+
2072
+ /**
2073
+ * Get the core types from which all schemas are built.
2074
+ *
2075
+ * @param {String} coreTypeName Name of the core type
2076
+ */
2077
+ getConversationsCustomattributesSchemasCoretype(coreTypeName) {
2078
+ // verify the required parameter 'coreTypeName' is set
2079
+ if (coreTypeName === undefined || coreTypeName === null || coreTypeName === '') {
2080
+ throw 'Missing the required parameter "coreTypeName" when calling getConversationsCustomattributesSchemasCoretype';
2081
+ }
2082
+
2083
+ return this.apiClient.callApi(
2084
+ '/api/v2/conversations/customattributes/schemas/coretypes/{coreTypeName}',
2085
+ 'GET',
2086
+ { 'coreTypeName': coreTypeName },
2087
+ { },
2088
+ { },
2089
+ { },
2090
+ null,
2091
+ ['PureCloud OAuth'],
2092
+ ['application/json'],
2093
+ ['application/json']
2094
+ );
2095
+ }
2096
+
2097
+ /**
2098
+ * Get the list of core types enabled for a specific namespace.
2099
+ *
2100
+ */
2101
+ getConversationsCustomattributesSchemasCoretypes() {
2102
+
2103
+ return this.apiClient.callApi(
2104
+ '/api/v2/conversations/customattributes/schemas/coretypes',
2105
+ 'GET',
2106
+ { },
2107
+ { },
2108
+ { },
2109
+ { },
2110
+ null,
2111
+ ['PureCloud OAuth'],
2112
+ ['application/json'],
2113
+ ['application/json']
2114
+ );
2115
+ }
2116
+
2117
+ /**
2118
+ * Get quantitative limits on schemas
2119
+ *
2120
+ */
2121
+ getConversationsCustomattributesSchemasLimits() {
2122
+
2123
+ return this.apiClient.callApi(
2124
+ '/api/v2/conversations/customattributes/schemas/limits',
2125
+ 'GET',
2126
+ { },
2127
+ { },
2128
+ { },
2129
+ { },
2130
+ null,
2131
+ ['PureCloud OAuth'],
2132
+ ['application/json'],
2133
+ ['application/json']
2134
+ );
2135
+ }
2136
+
1861
2137
  /**
1862
2138
  * Get email conversation
1863
2139
  *
@@ -2264,7 +2540,7 @@ class ConversationsApi {
2264
2540
 
2265
2541
  /**
2266
2542
  * Get media
2267
- * See https://developer.genesys.cloud/api/rest/v2/conversations/messaging-media-upload for example usage.
2543
+ * See https://developer.genesys.cloud/commdigital/digital/messagemediaupload/ for example usage.
2268
2544
  * @param {String} conversationId conversationId
2269
2545
  * @param {String} communicationId communicationId
2270
2546
  * @param {String} mediaId mediaId
@@ -2976,6 +3252,109 @@ class ConversationsApi {
2976
3252
  );
2977
3253
  }
2978
3254
 
3255
+ /**
3256
+ * Get an Open messaging integration with the Google Business Profile extension
3257
+ * See https://developer.genesys.cloud/api/digital/openmessaging/ for more information.
3258
+ * @param {String} integrationId Integration ID
3259
+ * @param {Object} opts Optional parameters
3260
+ * @param {Object} opts.expand Expand instructions for the return value.
3261
+ * getConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileIntegrationId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
3262
+ */
3263
+ getConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileIntegrationId(integrationId, opts) {
3264
+ opts = opts || {};
3265
+
3266
+ // verify the required parameter 'integrationId' is set
3267
+ if (integrationId === undefined || integrationId === null || integrationId === '') {
3268
+ throw 'Missing the required parameter "integrationId" when calling getConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileIntegrationId';
3269
+ }
3270
+
3271
+ return this.apiClient.callApi(
3272
+ '/api/v2/conversations/messaging/integrations/open/extensions/googlebusinessprofile/{integrationId}',
3273
+ 'GET',
3274
+ { 'integrationId': integrationId },
3275
+ { 'expand': opts['expand'] },
3276
+ { },
3277
+ { },
3278
+ null,
3279
+ ['PureCloud OAuth'],
3280
+ ['application/json'],
3281
+ ['application/json']
3282
+ );
3283
+ }
3284
+
3285
+ /**
3286
+ * Get Google Business Profile OAuth 2 settings
3287
+ * See https://developer.genesys.cloud/api/digital/openmessaging/ for more information.
3288
+ * getConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileOauthSettings is a preview method and is subject to both breaking and non-breaking changes at any time without notice
3289
+ */
3290
+ getConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileOauthSettings() {
3291
+
3292
+ return this.apiClient.callApi(
3293
+ '/api/v2/conversations/messaging/integrations/open/extensions/googlebusinessprofile/oauth/settings',
3294
+ 'GET',
3295
+ { },
3296
+ { },
3297
+ { },
3298
+ { },
3299
+ null,
3300
+ ['PureCloud OAuth'],
3301
+ ['application/json'],
3302
+ ['application/json']
3303
+ );
3304
+ }
3305
+
3306
+ /**
3307
+ * Get a Google Auth Token
3308
+ * See https://developer.genesys.cloud/api/digital/openmessaging/ for more information.
3309
+ * @param {String} tokenId Token ID
3310
+ * getConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileToken is a preview method and is subject to both breaking and non-breaking changes at any time without notice
3311
+ */
3312
+ getConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileToken(tokenId) {
3313
+ // verify the required parameter 'tokenId' is set
3314
+ if (tokenId === undefined || tokenId === null || tokenId === '') {
3315
+ throw 'Missing the required parameter "tokenId" when calling getConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileToken';
3316
+ }
3317
+
3318
+ return this.apiClient.callApi(
3319
+ '/api/v2/conversations/messaging/integrations/open/extensions/googlebusinessprofile/tokens/{tokenId}',
3320
+ 'GET',
3321
+ { 'tokenId': tokenId },
3322
+ { },
3323
+ { },
3324
+ { },
3325
+ null,
3326
+ ['PureCloud OAuth'],
3327
+ ['application/json'],
3328
+ ['application/json']
3329
+ );
3330
+ }
3331
+
3332
+ /**
3333
+ * Get Google Business Profile accounts
3334
+ * See https://developer.genesys.cloud/api/digital/openmessaging/ for more information.
3335
+ * @param {String} tokenId Token ID
3336
+ * getConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileTokenAccounts is a preview method and is subject to both breaking and non-breaking changes at any time without notice
3337
+ */
3338
+ getConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileTokenAccounts(tokenId) {
3339
+ // verify the required parameter 'tokenId' is set
3340
+ if (tokenId === undefined || tokenId === null || tokenId === '') {
3341
+ throw 'Missing the required parameter "tokenId" when calling getConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileTokenAccounts';
3342
+ }
3343
+
3344
+ return this.apiClient.callApi(
3345
+ '/api/v2/conversations/messaging/integrations/open/extensions/googlebusinessprofile/tokens/{tokenId}/accounts',
3346
+ 'GET',
3347
+ { 'tokenId': tokenId },
3348
+ { },
3349
+ { },
3350
+ { },
3351
+ null,
3352
+ ['PureCloud OAuth'],
3353
+ ['application/json'],
3354
+ ['application/json']
3355
+ );
3356
+ }
3357
+
2979
3358
  /**
2980
3359
  * Get an Open messaging integration
2981
3360
  * See https://developer.genesys.cloud/api/digital/openmessaging/ for more information.
@@ -3522,6 +3901,64 @@ class ConversationsApi {
3522
3901
  );
3523
3902
  }
3524
3903
 
3904
+ /**
3905
+ * Update a single custom attributes record by amending the data with only the provided fields.
3906
+ *
3907
+ * @param {String} conversationId conversation ID
3908
+ * @param {Object} opts Optional parameters
3909
+ * @param {Object} opts.body
3910
+ */
3911
+ patchConversationCustomattributes(conversationId, opts) {
3912
+ opts = opts || {};
3913
+
3914
+ // verify the required parameter 'conversationId' is set
3915
+ if (conversationId === undefined || conversationId === null || conversationId === '') {
3916
+ throw 'Missing the required parameter "conversationId" when calling patchConversationCustomattributes';
3917
+ }
3918
+
3919
+ return this.apiClient.callApi(
3920
+ '/api/v2/conversations/{conversationId}/customattributes',
3921
+ 'PATCH',
3922
+ { 'conversationId': conversationId },
3923
+ { },
3924
+ { },
3925
+ { },
3926
+ opts['body'],
3927
+ ['PureCloud OAuth'],
3928
+ ['application/json'],
3929
+ ['application/json']
3930
+ );
3931
+ }
3932
+
3933
+ /**
3934
+ * Update a list of custom attributes record by amending the data with only the provided fields.
3935
+ *
3936
+ * @param {String} conversationId conversation ID
3937
+ * @param {Object} opts Optional parameters
3938
+ * @param {Array.<Object>} opts.body
3939
+ */
3940
+ patchConversationCustomattributesBulk(conversationId, opts) {
3941
+ opts = opts || {};
3942
+
3943
+ // verify the required parameter 'conversationId' is set
3944
+ if (conversationId === undefined || conversationId === null || conversationId === '') {
3945
+ throw 'Missing the required parameter "conversationId" when calling patchConversationCustomattributesBulk';
3946
+ }
3947
+
3948
+ return this.apiClient.callApi(
3949
+ '/api/v2/conversations/{conversationId}/customattributes/bulk',
3950
+ 'PATCH',
3951
+ { 'conversationId': conversationId },
3952
+ { },
3953
+ { },
3954
+ { },
3955
+ opts['body'],
3956
+ ['PureCloud OAuth'],
3957
+ ['application/json'],
3958
+ ['application/json']
3959
+ );
3960
+ }
3961
+
3525
3962
  /**
3526
3963
  * Update a participant.
3527
3964
  * Update conversation participant.
@@ -4959,6 +5396,37 @@ class ConversationsApi {
4959
5396
  );
4960
5397
  }
4961
5398
 
5399
+ /**
5400
+ * Update an Open messaging integration with the Google Business Profile extension
5401
+ * See https://developer.genesys.cloud/api/digital/openmessaging/ for more information.
5402
+ * @param {String} integrationId Integration ID
5403
+ * @param {Object} body GoogleBusinessProfileOpenIntegrationUpdateRequest
5404
+ * patchConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileIntegrationId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
5405
+ */
5406
+ patchConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileIntegrationId(integrationId, body) {
5407
+ // verify the required parameter 'integrationId' is set
5408
+ if (integrationId === undefined || integrationId === null || integrationId === '') {
5409
+ throw 'Missing the required parameter "integrationId" when calling patchConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileIntegrationId';
5410
+ }
5411
+ // verify the required parameter 'body' is set
5412
+ if (body === undefined || body === null) {
5413
+ throw 'Missing the required parameter "body" when calling patchConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileIntegrationId';
5414
+ }
5415
+
5416
+ return this.apiClient.callApi(
5417
+ '/api/v2/conversations/messaging/integrations/open/extensions/googlebusinessprofile/{integrationId}',
5418
+ 'PATCH',
5419
+ { 'integrationId': integrationId },
5420
+ { },
5421
+ { },
5422
+ { },
5423
+ body,
5424
+ ['PureCloud OAuth'],
5425
+ ['application/json'],
5426
+ ['application/json']
5427
+ );
5428
+ }
5429
+
4962
5430
  /**
4963
5431
  * Update an Open messaging integration
4964
5432
  * See https://developer.genesys.cloud/api/digital/openmessaging/ for more information.
@@ -6988,6 +7456,56 @@ class ConversationsApi {
6988
7456
  );
6989
7457
  }
6990
7458
 
7459
+ /**
7460
+ * Create a schema
7461
+ *
7462
+ * @param {Object} body Schema create request body
7463
+ */
7464
+ postConversationsCustomattributesSchemas(body) {
7465
+ // verify the required parameter 'body' is set
7466
+ if (body === undefined || body === null) {
7467
+ throw 'Missing the required parameter "body" when calling postConversationsCustomattributesSchemas';
7468
+ }
7469
+
7470
+ return this.apiClient.callApi(
7471
+ '/api/v2/conversations/customattributes/schemas',
7472
+ 'POST',
7473
+ { },
7474
+ { },
7475
+ { },
7476
+ { },
7477
+ body,
7478
+ ['PureCloud OAuth'],
7479
+ ['application/json'],
7480
+ ['application/json']
7481
+ );
7482
+ }
7483
+
7484
+ /**
7485
+ * Search resources.
7486
+ *
7487
+ * @param {Object} body Search request options
7488
+ */
7489
+ postConversationsCustomattributesSearch(body) {
7490
+ // verify the required parameter 'body' is set
7491
+ if (body === undefined || body === null) {
7492
+ throw 'Missing the required parameter "body" when calling postConversationsCustomattributesSearch';
7493
+ }
7494
+
7495
+ return this.apiClient.callApi(
7496
+ '/api/v2/conversations/customattributes/search',
7497
+ 'POST',
7498
+ { },
7499
+ { },
7500
+ { },
7501
+ { },
7502
+ body,
7503
+ ['PureCloud OAuth'],
7504
+ ['application/json'],
7505
+ ['application/json']
7506
+ );
7507
+ }
7508
+
6991
7509
  /**
6992
7510
  * Send an email to an external conversation. An external conversation is one where the provider is not PureCloud based. This endpoint allows the sender of the external email to reply or send a new message to the existing conversation. The new message will be treated as part of the existing conversation and chained to it.
6993
7511
  *
@@ -7374,7 +7892,7 @@ class ConversationsApi {
7374
7892
 
7375
7893
  /**
7376
7894
  * Create a URL to upload a message media file
7377
- * See https://developer.genesys.cloud/api/rest/v2/conversations/messaging-media-upload for example usage.
7895
+ * See https://developer.genesys.cloud/commdigital/digital/messagemediaupload/ for example usage.
7378
7896
  * @param {String} conversationId conversationId
7379
7897
  * @param {String} communicationId communicationId
7380
7898
  * @param {Object} body request
@@ -7915,6 +8433,58 @@ class ConversationsApi {
7915
8433
  );
7916
8434
  }
7917
8435
 
8436
+ /**
8437
+ * Create an Open messaging integration with the Google Business Profile extension
8438
+ * See https://developer.genesys.cloud/api/digital/openmessaging/ for more information.
8439
+ * @param {Object} body GoogleBusinessProfileOpenIntegrationRequest
8440
+ * postConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofile is a preview method and is subject to both breaking and non-breaking changes at any time without notice
8441
+ */
8442
+ postConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofile(body) {
8443
+ // verify the required parameter 'body' is set
8444
+ if (body === undefined || body === null) {
8445
+ throw 'Missing the required parameter "body" when calling postConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofile';
8446
+ }
8447
+
8448
+ return this.apiClient.callApi(
8449
+ '/api/v2/conversations/messaging/integrations/open/extensions/googlebusinessprofile',
8450
+ 'POST',
8451
+ { },
8452
+ { },
8453
+ { },
8454
+ { },
8455
+ body,
8456
+ ['PureCloud OAuth'],
8457
+ ['application/json'],
8458
+ ['application/json']
8459
+ );
8460
+ }
8461
+
8462
+ /**
8463
+ * Create a Google Auth Token by exchanging the one-time auth code retrieved from Google
8464
+ * See https://developer.genesys.cloud/api/digital/openmessaging/ for more information.
8465
+ * @param {Object} body GoogleAuthTokenRequest
8466
+ * postConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileTokens is a preview method and is subject to both breaking and non-breaking changes at any time without notice
8467
+ */
8468
+ postConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileTokens(body) {
8469
+ // verify the required parameter 'body' is set
8470
+ if (body === undefined || body === null) {
8471
+ throw 'Missing the required parameter "body" when calling postConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileTokens';
8472
+ }
8473
+
8474
+ return this.apiClient.callApi(
8475
+ '/api/v2/conversations/messaging/integrations/open/extensions/googlebusinessprofile/tokens',
8476
+ 'POST',
8477
+ { },
8478
+ { },
8479
+ { },
8480
+ { },
8481
+ body,
8482
+ ['PureCloud OAuth'],
8483
+ ['application/json'],
8484
+ ['application/json']
8485
+ );
8486
+ }
8487
+
7918
8488
  /**
7919
8489
  * Create Twitter Integration
7920
8490
  *
@@ -8240,6 +8810,64 @@ class ConversationsApi {
8240
8810
  );
8241
8811
  }
8242
8812
 
8813
+ /**
8814
+ * Create or update a single custom attributes record. Updating replaces all data with the provided fields.
8815
+ *
8816
+ * @param {String} conversationId conversation ID
8817
+ * @param {Object} opts Optional parameters
8818
+ * @param {Object} opts.body
8819
+ */
8820
+ putConversationCustomattributes(conversationId, opts) {
8821
+ opts = opts || {};
8822
+
8823
+ // verify the required parameter 'conversationId' is set
8824
+ if (conversationId === undefined || conversationId === null || conversationId === '') {
8825
+ throw 'Missing the required parameter "conversationId" when calling putConversationCustomattributes';
8826
+ }
8827
+
8828
+ return this.apiClient.callApi(
8829
+ '/api/v2/conversations/{conversationId}/customattributes',
8830
+ 'PUT',
8831
+ { 'conversationId': conversationId },
8832
+ { },
8833
+ { },
8834
+ { },
8835
+ opts['body'],
8836
+ ['PureCloud OAuth'],
8837
+ ['application/json'],
8838
+ ['application/json']
8839
+ );
8840
+ }
8841
+
8842
+ /**
8843
+ * Create or update a list of custom attributes records. Updating replaces all data with the provided fields.
8844
+ *
8845
+ * @param {String} conversationId conversation ID
8846
+ * @param {Object} opts Optional parameters
8847
+ * @param {Array.<Object>} opts.body
8848
+ */
8849
+ putConversationCustomattributesBulk(conversationId, opts) {
8850
+ opts = opts || {};
8851
+
8852
+ // verify the required parameter 'conversationId' is set
8853
+ if (conversationId === undefined || conversationId === null || conversationId === '') {
8854
+ throw 'Missing the required parameter "conversationId" when calling putConversationCustomattributesBulk';
8855
+ }
8856
+
8857
+ return this.apiClient.callApi(
8858
+ '/api/v2/conversations/{conversationId}/customattributes/bulk',
8859
+ 'PUT',
8860
+ { 'conversationId': conversationId },
8861
+ { },
8862
+ { },
8863
+ { },
8864
+ opts['body'],
8865
+ ['PureCloud OAuth'],
8866
+ ['application/json'],
8867
+ ['application/json']
8868
+ );
8869
+ }
8870
+
8243
8871
  /**
8244
8872
  * Set flagged reason on conversation participant to indicate bad conversation quality.
8245
8873
  *
@@ -8492,6 +9120,36 @@ class ConversationsApi {
8492
9120
  );
8493
9121
  }
8494
9122
 
9123
+ /**
9124
+ * Update a schema
9125
+ *
9126
+ * @param {String} schemaId Schema ID
9127
+ * @param {Object} body Schema update request body
9128
+ */
9129
+ putConversationsCustomattributesSchema(schemaId, body) {
9130
+ // verify the required parameter 'schemaId' is set
9131
+ if (schemaId === undefined || schemaId === null || schemaId === '') {
9132
+ throw 'Missing the required parameter "schemaId" when calling putConversationsCustomattributesSchema';
9133
+ }
9134
+ // verify the required parameter 'body' is set
9135
+ if (body === undefined || body === null) {
9136
+ throw 'Missing the required parameter "body" when calling putConversationsCustomattributesSchema';
9137
+ }
9138
+
9139
+ return this.apiClient.callApi(
9140
+ '/api/v2/conversations/customattributes/schemas/{schemaId}',
9141
+ 'PUT',
9142
+ { 'schemaId': schemaId },
9143
+ { },
9144
+ { },
9145
+ { },
9146
+ body,
9147
+ ['PureCloud OAuth'],
9148
+ ['application/json'],
9149
+ ['application/json']
9150
+ );
9151
+ }
9152
+
8495
9153
  /**
8496
9154
  * Update conversation draft reply
8497
9155
  *