purecloud-platform-client-v2 130.0.0 → 131.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 (73) hide show
  1. package/README.md +2 -8
  2. package/dist/node/purecloud-platform-client-v2.js +395 -84
  3. package/dist/web-amd/purecloud-platform-client-v2.js +395 -84
  4. package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
  5. package/dist/web-cjs/bundle.js +395 -84
  6. package/dist/web-cjs/purecloud-platform-client-v2.js +395 -84
  7. package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
  8. package/index.d.ts +80 -9
  9. package/package.json +1 -1
  10. package/src/purecloud-platform-client-v2/ApiClient.js +2 -2
  11. package/src/purecloud-platform-client-v2/api/AlertingApi.js +1 -1
  12. package/src/purecloud-platform-client-v2/api/AnalyticsApi.js +1 -1
  13. package/src/purecloud-platform-client-v2/api/ArchitectApi.js +1 -1
  14. package/src/purecloud-platform-client-v2/api/AuditApi.js +1 -1
  15. package/src/purecloud-platform-client-v2/api/AuthorizationApi.js +1 -1
  16. package/src/purecloud-platform-client-v2/api/BillingApi.js +1 -1
  17. package/src/purecloud-platform-client-v2/api/ChatApi.js +1 -1
  18. package/src/purecloud-platform-client-v2/api/CoachingApi.js +1 -1
  19. package/src/purecloud-platform-client-v2/api/ContentManagementApi.js +1 -1
  20. package/src/purecloud-platform-client-v2/api/ConversationsApi.js +176 -1
  21. package/src/purecloud-platform-client-v2/api/DataExtensionsApi.js +1 -1
  22. package/src/purecloud-platform-client-v2/api/ExternalContactsApi.js +1 -1
  23. package/src/purecloud-platform-client-v2/api/FaxApi.js +1 -1
  24. package/src/purecloud-platform-client-v2/api/FlowsApi.js +1 -1
  25. package/src/purecloud-platform-client-v2/api/GamificationApi.js +1 -1
  26. package/src/purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi.js +1 -1
  27. package/src/purecloud-platform-client-v2/api/GeolocationApi.js +1 -1
  28. package/src/purecloud-platform-client-v2/api/GreetingsApi.js +1 -1
  29. package/src/purecloud-platform-client-v2/api/GroupsApi.js +1 -1
  30. package/src/purecloud-platform-client-v2/api/IdentityProviderApi.js +1 -1
  31. package/src/purecloud-platform-client-v2/api/IntegrationsApi.js +1 -1
  32. package/src/purecloud-platform-client-v2/api/JourneyApi.js +1 -1
  33. package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +1 -1
  34. package/src/purecloud-platform-client-v2/api/LanguageUnderstandingApi.js +1 -1
  35. package/src/purecloud-platform-client-v2/api/LanguagesApi.js +1 -1
  36. package/src/purecloud-platform-client-v2/api/LearningApi.js +1 -1
  37. package/src/purecloud-platform-client-v2/api/LicenseApi.js +1 -1
  38. package/src/purecloud-platform-client-v2/api/LocationsApi.js +1 -1
  39. package/src/purecloud-platform-client-v2/api/MessagingApi.js +156 -0
  40. package/src/purecloud-platform-client-v2/api/MobileDevicesApi.js +1 -1
  41. package/src/purecloud-platform-client-v2/api/NotificationsApi.js +1 -1
  42. package/src/purecloud-platform-client-v2/api/OAuthApi.js +1 -1
  43. package/src/purecloud-platform-client-v2/api/ObjectsApi.js +1 -1
  44. package/src/purecloud-platform-client-v2/api/OrganizationApi.js +1 -1
  45. package/src/purecloud-platform-client-v2/api/OrganizationAuthorizationApi.js +1 -1
  46. package/src/purecloud-platform-client-v2/api/OutboundApi.js +1 -1
  47. package/src/purecloud-platform-client-v2/api/PresenceApi.js +1 -1
  48. package/src/purecloud-platform-client-v2/api/QualityApi.js +1 -1
  49. package/src/purecloud-platform-client-v2/api/RecordingApi.js +1 -1
  50. package/src/purecloud-platform-client-v2/api/ResponseManagementApi.js +1 -1
  51. package/src/purecloud-platform-client-v2/api/RoutingApi.js +1 -1
  52. package/src/purecloud-platform-client-v2/api/SCIMApi.js +1 -1
  53. package/src/purecloud-platform-client-v2/api/ScriptsApi.js +1 -1
  54. package/src/purecloud-platform-client-v2/api/SearchApi.js +1 -1
  55. package/src/purecloud-platform-client-v2/api/SpeechTextAnalyticsApi.js +1 -21
  56. package/src/purecloud-platform-client-v2/api/StationsApi.js +1 -1
  57. package/src/purecloud-platform-client-v2/api/SuggestApi.js +1 -1
  58. package/src/purecloud-platform-client-v2/api/TelephonyApi.js +1 -1
  59. package/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js +1 -1
  60. package/src/purecloud-platform-client-v2/api/TextbotsApi.js +1 -1
  61. package/src/purecloud-platform-client-v2/api/TokensApi.js +1 -1
  62. package/src/purecloud-platform-client-v2/api/UploadsApi.js +1 -1
  63. package/src/purecloud-platform-client-v2/api/UsageApi.js +1 -1
  64. package/src/purecloud-platform-client-v2/api/UserRecordingsApi.js +1 -1
  65. package/src/purecloud-platform-client-v2/api/UsersApi.js +1 -1
  66. package/src/purecloud-platform-client-v2/api/UtilitiesApi.js +1 -1
  67. package/src/purecloud-platform-client-v2/api/VoicemailApi.js +1 -1
  68. package/src/purecloud-platform-client-v2/api/WebChatApi.js +1 -1
  69. package/src/purecloud-platform-client-v2/api/WebDeploymentsApi.js +1 -1
  70. package/src/purecloud-platform-client-v2/api/WebMessagingApi.js +1 -1
  71. package/src/purecloud-platform-client-v2/api/WidgetsApi.js +1 -1
  72. package/src/purecloud-platform-client-v2/api/WorkforceManagementApi.js +1 -1
  73. package/src/purecloud-platform-client-v2/index.js +7 -1
package/index.d.ts CHANGED
@@ -13,6 +13,8 @@ declare class ApiClientClass {
13
13
  callApi(path: string, httpMethod: string, pathParams: { [key: string]: string; }, queryParams: { [key: string]: object; }, headerParams: { [key: string]: object; }, formParams: { [key: string]: object; }, bodyParam: any, authNames: Array<string>, contentTypes: Array<string>, accepts: Array<string>): Promise<any>;
14
14
  loginClientCredentialsGrant(clientId: string, clientSecret: string): Promise<AuthData>;
15
15
  loginImplicitGrant(clientId: string, redirectUri: string, opts?: LoginImplicitGrantOptions): Promise<AuthData>;
16
+ loginCodeAuthorizationGrant(clientId: string, clientSecret: string, authCode: string, redirectUri: string): Promise<AuthData>;
17
+ refreshCodeAuthorizationGrant(clientId: string, clientSecret: string, refreshToken: string): Promise<AuthData>;
16
18
  logout(logoutRedirectUri: string): void;
17
19
  setAccessToken(token: string): void;
18
20
  setEnvironment(environment: string): void;
@@ -985,6 +987,7 @@ declare class ConversationsApi {
985
987
  deleteConversationsMessagingIntegrationsOpenIntegrationId(integrationId: string): Promise<void>;
986
988
  deleteConversationsMessagingIntegrationsTwitterIntegrationId(integrationId: string): Promise<void>;
987
989
  deleteConversationsMessagingIntegrationsWhatsappIntegrationId(integrationId: string): Promise<Models.WhatsAppIntegration>;
990
+ deleteConversationsMessagingSupportedcontentSupportedContentId(supportedContentId: string): Promise<void>;
988
991
  getAnalyticsConversationDetails(conversationId: string): Promise<Models.AnalyticsConversationWithoutAttributes>;
989
992
  getAnalyticsConversationsDetails(opts?: ConversationsApi.getAnalyticsConversationsDetailsOptions): Promise<Models.AnalyticsConversationWithoutAttributesMultiGetResponse>;
990
993
  getAnalyticsConversationsDetailsJob(jobId: string): Promise<Models.AsyncQueryStatus>;
@@ -1043,6 +1046,9 @@ declare class ConversationsApi {
1043
1046
  getConversationsMessagingIntegrationsWhatsapp(opts?: ConversationsApi.getConversationsMessagingIntegrationsWhatsappOptions): Promise<Models.WhatsAppIntegrationEntityListing>;
1044
1047
  getConversationsMessagingIntegrationsWhatsappIntegrationId(integrationId: string, opts?: ConversationsApi.getConversationsMessagingIntegrationsWhatsappIntegrationIdOptions): Promise<Models.WhatsAppIntegration>;
1045
1048
  getConversationsMessagingSticker(messengerType: string, opts?: ConversationsApi.getConversationsMessagingStickerOptions): Promise<Models.MessagingStickerEntityListing>;
1049
+ getConversationsMessagingSupportedcontent(opts?: ConversationsApi.getConversationsMessagingSupportedcontentOptions): Promise<Models.SupportedContentListing>;
1050
+ getConversationsMessagingSupportedcontentDefault(): Promise<Models.SupportedContent>;
1051
+ getConversationsMessagingSupportedcontentSupportedContentId(supportedContentId: string): Promise<Models.SupportedContent>;
1046
1052
  getConversationsMessagingThreadingtimeline(): Promise<Models.ConversationThreadingWindow>;
1047
1053
  patchConversationParticipant(conversationId: string, participantId: string, body: Models.MediaParticipantRequest): Promise<void>;
1048
1054
  patchConversationParticipantAttributes(conversationId: string, participantId: string, body: Models.ParticipantAttributes): Promise<void>;
@@ -1075,6 +1081,7 @@ declare class ConversationsApi {
1075
1081
  patchConversationsMessagingIntegrationsOpenIntegrationId(integrationId: string, body: Models.OpenIntegrationUpdateRequest): Promise<Models.OpenIntegration>;
1076
1082
  patchConversationsMessagingIntegrationsTwitterIntegrationId(integrationId: string, body: Models.TwitterIntegrationRequest): Promise<Models.TwitterIntegration>;
1077
1083
  patchConversationsMessagingIntegrationsWhatsappIntegrationId(integrationId: string, body: Models.WhatsAppIntegrationUpdateRequest): Promise<Models.WhatsAppIntegration>;
1084
+ patchConversationsMessagingSupportedcontentSupportedContentId(supportedContentId: string, body: Models.SupportedContent): Promise<Models.SupportedContent>;
1078
1085
  postAnalyticsConversationDetailsProperties(conversationId: string, body: Models.PropertyIndexRequest): Promise<Models.PropertyIndexRequest>;
1079
1086
  postAnalyticsConversationsAggregatesQuery(body: Models.ConversationAggregationQuery): Promise<Models.ConversationAggregateQueryResponse>;
1080
1087
  postAnalyticsConversationsDetailsJobs(body: Models.AsyncConversationQuery): Promise<Models.AsyncQueryResponse>;
@@ -1117,11 +1124,13 @@ declare class ConversationsApi {
1117
1124
  postConversationsMessagingIntegrationsOpen(body: Models.OpenIntegrationRequest): Promise<Models.OpenIntegration>;
1118
1125
  postConversationsMessagingIntegrationsTwitter(body: Models.TwitterIntegrationRequest): Promise<Models.TwitterIntegration>;
1119
1126
  postConversationsMessagingIntegrationsWhatsapp(body: Models.WhatsAppIntegrationRequest): Promise<Models.WhatsAppIntegration>;
1127
+ postConversationsMessagingSupportedcontent(body: Models.SupportedContent): Promise<Models.SupportedContent>;
1120
1128
  putConversationParticipantFlaggedreason(conversationId: string, participantId: string): Promise<void>;
1121
1129
  putConversationTags(conversationId: string, body: Models.ConversationTagsUpdate): Promise<string>;
1122
1130
  putConversationsCallParticipantCommunicationUuidata(conversationId: string, participantId: string, communicationId: string, body: Models.SetUuiDataRequest): Promise<Models.Empty>;
1123
1131
  putConversationsEmailMessagesDraft(conversationId: string, body: Models.EmailMessage): Promise<Models.EmailMessage>;
1124
1132
  putConversationsMessagingIntegrationsLineIntegrationId(integrationId: string, body: Models.LineIntegrationRequest): Promise<Models.LineIntegration>;
1133
+ putConversationsMessagingSupportedcontentDefault(body: Models.SupportedContentReference): Promise<Models.SupportedContent>;
1125
1134
  putConversationsMessagingThreadingtimeline(body: Models.ConversationThreadingWindow): Promise<Models.ConversationThreadingWindow>;
1126
1135
  }
1127
1136
 
@@ -1224,6 +1233,10 @@ declare namespace ConversationsApi {
1224
1233
  "pageSize"?: number;
1225
1234
  "pageNumber"?: number;
1226
1235
  }
1236
+ export interface getConversationsMessagingSupportedcontentOptions {
1237
+ "pageSize"?: number;
1238
+ "pageNumber"?: number;
1239
+ }
1227
1240
  export interface patchConversationsCobrowsesessionParticipantOptions {
1228
1241
  "body"?: Models.MediaParticipantRequest;
1229
1242
  }
@@ -2348,6 +2361,21 @@ declare namespace LocationsApi {
2348
2361
  }
2349
2362
  }
2350
2363
 
2364
+ declare class MessagingApi {
2365
+ deleteMessagingSupportedcontentSupportedContentId(supportedContentId: string): Promise<void>;
2366
+ getMessagingSupportedcontent(opts?: MessagingApi.getMessagingSupportedcontentOptions): Promise<Models.SupportedContentListing>;
2367
+ getMessagingSupportedcontentSupportedContentId(supportedContentId: string): Promise<Models.SupportedContent>;
2368
+ patchMessagingSupportedcontentSupportedContentId(supportedContentId: string, body: Models.SupportedContent): Promise<Models.SupportedContent>;
2369
+ postMessagingSupportedcontent(body: Models.SupportedContent): Promise<Models.SupportedContent>;
2370
+ }
2371
+
2372
+ declare namespace MessagingApi {
2373
+ export interface getMessagingSupportedcontentOptions {
2374
+ "pageSize"?: number;
2375
+ "pageNumber"?: number;
2376
+ }
2377
+ }
2378
+
2351
2379
  declare class MobileDevicesApi {
2352
2380
  deleteMobiledevice(deviceId: string): Promise<void>;
2353
2381
  getMobiledevice(deviceId: string): Promise<Models.UserDevice>;
@@ -3855,7 +3883,6 @@ declare class SpeechTextAnalyticsApi {
3855
3883
  deleteSpeechandtextanalyticsTopic(topicId: string): Promise<void>;
3856
3884
  getSpeechandtextanalyticsConversation(conversationId: string): Promise<Models.ConversationMetrics>;
3857
3885
  getSpeechandtextanalyticsConversationCommunicationTranscripturl(conversationId: string, communicationId: string): Promise<Models.TranscriptUrl>;
3858
- getSpeechandtextanalyticsDialects(): Promise<Array<object>>;
3859
3886
  getSpeechandtextanalyticsProgram(programId: string): Promise<Models.Program>;
3860
3887
  getSpeechandtextanalyticsProgramMappings(programId: string): Promise<Models.ProgramMappings>;
3861
3888
  getSpeechandtextanalyticsPrograms(opts?: SpeechTextAnalyticsApi.getSpeechandtextanalyticsProgramsOptions): Promise<Models.ProgramsEntityListing>;
@@ -8602,8 +8629,8 @@ declare namespace Models {
8602
8629
  "expirationDate"?: string;
8603
8630
  "issueDate"?: string;
8604
8631
  "expired"?: boolean;
8605
- "signatureValid"?: boolean;
8606
8632
  "valid"?: boolean;
8633
+ "signatureValid"?: boolean;
8607
8634
  }
8608
8635
 
8609
8636
  export interface Change {
@@ -12637,6 +12664,8 @@ declare namespace Models {
12637
12664
  "dateCompleted"?: string;
12638
12665
  "createdBy"?: Models.UserReference;
12639
12666
  "dateCreated"?: string;
12667
+ "percentageScore"?: number;
12668
+ "isPassed"?: boolean;
12640
12669
  "selfUri"?: string;
12641
12670
  "name"?: string;
12642
12671
  "type"?: string;
@@ -15245,6 +15274,7 @@ declare namespace Models {
15245
15274
  export interface FacebookIntegration {
15246
15275
  "id": string;
15247
15276
  "name": string;
15277
+ "supportedContent"?: Models.SupportedContentReference;
15248
15278
  "appId": string;
15249
15279
  "pageId"?: string;
15250
15280
  "pageName"?: string;
@@ -15277,6 +15307,7 @@ declare namespace Models {
15277
15307
  export interface FacebookIntegrationRequest {
15278
15308
  "id"?: string;
15279
15309
  "name": string;
15310
+ "supportedContent"?: Models.SupportedContentReference;
15280
15311
  "pageAccessToken"?: string;
15281
15312
  "userAccessToken"?: string;
15282
15313
  "pageId"?: string;
@@ -15288,6 +15319,7 @@ declare namespace Models {
15288
15319
  export interface FacebookIntegrationUpdateRequest {
15289
15320
  "id"?: string;
15290
15321
  "name"?: string;
15322
+ "supportedContent"?: Models.SupportedContentReference;
15291
15323
  "pageAccessToken"?: string;
15292
15324
  "userAccessToken"?: string;
15293
15325
  "selfUri"?: string;
@@ -18474,6 +18506,7 @@ declare namespace Models {
18474
18506
  export interface LineIntegration {
18475
18507
  "id": string;
18476
18508
  "name": string;
18509
+ "supportedContent"?: Models.SupportedContentReference;
18477
18510
  "channelId": string;
18478
18511
  "webhookUri": string;
18479
18512
  "status"?: string;
@@ -18504,6 +18537,7 @@ declare namespace Models {
18504
18537
  export interface LineIntegrationRequest {
18505
18538
  "id"?: string;
18506
18539
  "name": string;
18540
+ "supportedContent"?: Models.SupportedContentReference;
18507
18541
  "channelId"?: string;
18508
18542
  "channelSecret"?: string;
18509
18543
  "switcherSecret"?: string;
@@ -19017,6 +19051,8 @@ declare namespace Models {
19017
19051
  "status": string;
19018
19052
  "media"?: Array<Models.MessageMedia>;
19019
19053
  "stickers"?: Array<Models.MessageSticker>;
19054
+ "normalizedMessage"?: Models.ConversationNormalizedMessage;
19055
+ "normalizedReceipts"?: Array<Models.ConversationNormalizedMessage>;
19020
19056
  "createdBy"?: Models.User;
19021
19057
  "conversationId"?: string;
19022
19058
  "selfUri"?: string;
@@ -19196,6 +19232,7 @@ declare namespace Models {
19196
19232
  export interface MessagingIntegration {
19197
19233
  "id": string;
19198
19234
  "name": string;
19235
+ "supportedContent"?: Models.SupportedContentReference;
19199
19236
  "status"?: string;
19200
19237
  "messengerType": string;
19201
19238
  "recipient"?: Models.DomainEntityRef;
@@ -19270,19 +19307,12 @@ declare namespace Models {
19270
19307
  "knowledge"?: Models.Knowledge;
19271
19308
  }
19272
19309
 
19273
- export interface MessengerPositionSettings {
19274
- "alignment"?: string;
19275
- "sideSpace"?: number;
19276
- "bottomSpace"?: number;
19277
- }
19278
-
19279
19310
  export interface MessengerSettings {
19280
19311
  "enabled"?: boolean;
19281
19312
  "styles"?: Models.MessengerStyles;
19282
19313
  "launcherButton"?: Models.LauncherButtonSettings;
19283
19314
  "fileUpload"?: Models.FileUploadSettings;
19284
19315
  "apps"?: Models.MessengerApps;
19285
- "position"?: Models.MessengerPositionSettings;
19286
19316
  }
19287
19317
 
19288
19318
  export interface MessengerStyles {
@@ -19957,6 +19987,7 @@ declare namespace Models {
19957
19987
  export interface OpenIntegration {
19958
19988
  "id": string;
19959
19989
  "name": string;
19990
+ "supportedContent"?: Models.SupportedContentReference;
19960
19991
  "outboundNotificationWebhookUrl": string;
19961
19992
  "outboundNotificationWebhookSignatureSecretToken": string;
19962
19993
  "webhookHeaders"?: { [key: string]: string; };
@@ -19987,6 +20018,7 @@ declare namespace Models {
19987
20018
  export interface OpenIntegrationRequest {
19988
20019
  "id"?: string;
19989
20020
  "name": string;
20021
+ "supportedContent"?: Models.SupportedContentReference;
19990
20022
  "outboundNotificationWebhookUrl": string;
19991
20023
  "outboundNotificationWebhookSignatureSecretToken": string;
19992
20024
  "webhookHeaders"?: { [key: string]: string; };
@@ -19996,6 +20028,7 @@ declare namespace Models {
19996
20028
  export interface OpenIntegrationUpdateRequest {
19997
20029
  "id"?: string;
19998
20030
  "name": string;
20031
+ "supportedContent"?: Models.SupportedContentReference;
19999
20032
  "outboundNotificationWebhookUrl"?: string;
20000
20033
  "outboundNotificationWebhookSignatureSecretToken"?: string;
20001
20034
  "webhookHeaders"?: { [key: string]: string; };
@@ -21235,6 +21268,12 @@ declare namespace Models {
21235
21268
  "enabled"?: boolean;
21236
21269
  }
21237
21270
 
21271
+ export interface PositionSettings {
21272
+ "alignment"?: string;
21273
+ "sideSpace"?: number;
21274
+ "bottomSpace"?: number;
21275
+ }
21276
+
21238
21277
  export interface PostActionInput {
21239
21278
  "category": string;
21240
21279
  "name": string;
@@ -26511,6 +26550,31 @@ declare namespace Models {
26511
26550
  "enabled"?: boolean;
26512
26551
  }
26513
26552
 
26553
+ export interface SupportedContent {
26554
+ "id": string;
26555
+ "name": string;
26556
+ "dateCreated"?: string;
26557
+ "dateModified"?: string;
26558
+ "createdBy"?: Models.DomainEntityRef;
26559
+ "modifiedBy"?: Models.DomainEntityRef;
26560
+ "version"?: number;
26561
+ "mediaTypes"?: Models.MediaTypes;
26562
+ "selfUri"?: string;
26563
+ }
26564
+
26565
+ export interface SupportedContentListing {
26566
+ "entities"?: Array<Models.SupportedContent>;
26567
+ "pageSize"?: number;
26568
+ "pageNumber"?: number;
26569
+ "total"?: number;
26570
+ "firstUri"?: string;
26571
+ "selfUri"?: string;
26572
+ "nextUri"?: string;
26573
+ "previousUri"?: string;
26574
+ "lastUri"?: string;
26575
+ "pageCount"?: number;
26576
+ }
26577
+
26514
26578
  export interface SupportedContentReference {
26515
26579
  "id": string;
26516
26580
  "name"?: string;
@@ -27890,6 +27954,7 @@ declare namespace Models {
27890
27954
  export interface TwitterIntegration {
27891
27955
  "id": string;
27892
27956
  "name": string;
27957
+ "supportedContent"?: Models.SupportedContentReference;
27893
27958
  "accessTokenKey": string;
27894
27959
  "consumerKey": string;
27895
27960
  "username"?: string;
@@ -27924,6 +27989,7 @@ declare namespace Models {
27924
27989
  export interface TwitterIntegrationRequest {
27925
27990
  "id"?: string;
27926
27991
  "name": string;
27992
+ "supportedContent"?: Models.SupportedContentReference;
27927
27993
  "accessTokenKey": string;
27928
27994
  "accessTokenSecret": string;
27929
27995
  "consumerKey": string;
@@ -29070,6 +29136,7 @@ declare namespace Models {
29070
29136
  "filterQueuesByUserIds"?: Array<string>;
29071
29137
  "filterUsersByQueueIds"?: Array<string>;
29072
29138
  "userIds"?: Array<string>;
29139
+ "managementUnitIds"?: Array<string>;
29073
29140
  "addressTos"?: Array<string>;
29074
29141
  "addressFroms"?: Array<string>;
29075
29142
  "outboundCampaignIds"?: Array<string>;
@@ -29548,6 +29615,7 @@ declare namespace Models {
29548
29615
  "languages"?: Array<string>;
29549
29616
  "defaultLanguage"?: string;
29550
29617
  "messenger"?: Models.MessengerSettings;
29618
+ "position"?: Models.PositionSettings;
29551
29619
  "supportCenter"?: Models.SupportCenterSettings;
29552
29620
  "cobrowse"?: Models.CobrowseSettings;
29553
29621
  "journeyEvents"?: Models.JourneyEventsSettings;
@@ -30670,6 +30738,7 @@ declare namespace Models {
30670
30738
  export interface WhatsAppIntegration {
30671
30739
  "id": string;
30672
30740
  "name": string;
30741
+ "supportedContent"?: Models.SupportedContentReference;
30673
30742
  "phoneNumber": string;
30674
30743
  "status"?: string;
30675
30744
  "recipient"?: Models.DomainEntityRef;
@@ -30701,6 +30770,7 @@ declare namespace Models {
30701
30770
  export interface WhatsAppIntegrationRequest {
30702
30771
  "id"?: string;
30703
30772
  "name": string;
30773
+ "supportedContent"?: Models.SupportedContentReference;
30704
30774
  "phoneNumber": string;
30705
30775
  "wabaCertificate": string;
30706
30776
  "selfUri"?: string;
@@ -30709,6 +30779,7 @@ declare namespace Models {
30709
30779
  export interface WhatsAppIntegrationUpdateRequest {
30710
30780
  "id"?: string;
30711
30781
  "name"?: string;
30782
+ "supportedContent"?: Models.SupportedContentReference;
30712
30783
  "action"?: string;
30713
30784
  "authenticationMethod"?: string;
30714
30785
  "confirmationCode"?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "purecloud-platform-client-v2",
3
- "version": "130.0.0",
3
+ "version": "131.0.0",
4
4
  "description": "A JavaScript library to interface with the PureCloud Platform API",
5
5
  "license": "MIT",
6
6
  "main": "dist/node/purecloud-platform-client-v2.js",
@@ -3,7 +3,7 @@ import Configuration from './configuration.js';
3
3
 
4
4
  /**
5
5
  * @module purecloud-platform-client-v2/ApiClient
6
- * @version 130.0.0
6
+ * @version 131.0.0
7
7
  */
8
8
  class ApiClient {
9
9
  /**
@@ -950,7 +950,7 @@ class ApiClient {
950
950
 
951
951
  // set header parameters
952
952
  request.set(that.defaultHeaders).set(that.normalizeParams(headerParams));
953
- //request.set({ 'purecloud-sdk': '130.0.0' });
953
+ //request.set({ 'purecloud-sdk': '131.0.0' });
954
954
 
955
955
  // set request timeout
956
956
  request.timeout(that.timeout);
@@ -5,7 +5,7 @@ class AlertingApi {
5
5
  /**
6
6
  * Alerting service.
7
7
  * @module purecloud-platform-client-v2/api/AlertingApi
8
- * @version 130.0.0
8
+ * @version 131.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class AnalyticsApi {
5
5
  /**
6
6
  * Analytics service.
7
7
  * @module purecloud-platform-client-v2/api/AnalyticsApi
8
- * @version 130.0.0
8
+ * @version 131.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class ArchitectApi {
5
5
  /**
6
6
  * Architect service.
7
7
  * @module purecloud-platform-client-v2/api/ArchitectApi
8
- * @version 130.0.0
8
+ * @version 131.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class AuditApi {
5
5
  /**
6
6
  * Audit service.
7
7
  * @module purecloud-platform-client-v2/api/AuditApi
8
- * @version 130.0.0
8
+ * @version 131.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class AuthorizationApi {
5
5
  /**
6
6
  * Authorization service.
7
7
  * @module purecloud-platform-client-v2/api/AuthorizationApi
8
- * @version 130.0.0
8
+ * @version 131.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class BillingApi {
5
5
  /**
6
6
  * Billing service.
7
7
  * @module purecloud-platform-client-v2/api/BillingApi
8
- * @version 130.0.0
8
+ * @version 131.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class ChatApi {
5
5
  /**
6
6
  * Chat service.
7
7
  * @module purecloud-platform-client-v2/api/ChatApi
8
- * @version 130.0.0
8
+ * @version 131.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class CoachingApi {
5
5
  /**
6
6
  * Coaching service.
7
7
  * @module purecloud-platform-client-v2/api/CoachingApi
8
- * @version 130.0.0
8
+ * @version 131.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class ContentManagementApi {
5
5
  /**
6
6
  * ContentManagement service.
7
7
  * @module purecloud-platform-client-v2/api/ContentManagementApi
8
- * @version 130.0.0
8
+ * @version 131.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class ConversationsApi {
5
5
  /**
6
6
  * Conversations service.
7
7
  * @module purecloud-platform-client-v2/api/ConversationsApi
8
- * @version 130.0.0
8
+ * @version 131.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -295,6 +295,31 @@ class ConversationsApi {
295
295
  );
296
296
  }
297
297
 
298
+ /**
299
+ * Delete a supported content profile
300
+ *
301
+ * @param {String} supportedContentId Supported Content ID
302
+ */
303
+ deleteConversationsMessagingSupportedcontentSupportedContentId(supportedContentId) {
304
+ // verify the required parameter 'supportedContentId' is set
305
+ if (supportedContentId === undefined || supportedContentId === null) {
306
+ throw 'Missing the required parameter "supportedContentId" when calling deleteConversationsMessagingSupportedcontentSupportedContentId';
307
+ }
308
+
309
+ return this.apiClient.callApi(
310
+ '/api/v2/conversations/messaging/supportedcontent/{supportedContentId}',
311
+ 'DELETE',
312
+ { 'supportedContentId': supportedContentId },
313
+ { },
314
+ { },
315
+ { },
316
+ null,
317
+ ['PureCloud OAuth'],
318
+ ['application/json'],
319
+ ['application/json']
320
+ );
321
+ }
322
+
298
323
  /**
299
324
  * Get a conversation by id
300
325
  *
@@ -1887,6 +1912,76 @@ class ConversationsApi {
1887
1912
  );
1888
1913
  }
1889
1914
 
1915
+ /**
1916
+ * Get a list of Supported Content profiles
1917
+ *
1918
+ * @param {Object} opts Optional parameters
1919
+ * @param {Number} opts.pageSize Page size (default to 25)
1920
+ * @param {Number} opts.pageNumber Page number (default to 1)
1921
+ */
1922
+ getConversationsMessagingSupportedcontent(opts) {
1923
+ opts = opts || {};
1924
+
1925
+
1926
+ return this.apiClient.callApi(
1927
+ '/api/v2/conversations/messaging/supportedcontent',
1928
+ 'GET',
1929
+ { },
1930
+ { 'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'] },
1931
+ { },
1932
+ { },
1933
+ null,
1934
+ ['PureCloud OAuth'],
1935
+ ['application/json'],
1936
+ ['application/json']
1937
+ );
1938
+ }
1939
+
1940
+ /**
1941
+ * Get the organization&#39;s default supported content profile that will be used as the default when creating an integration.
1942
+ * When an integration is created a supported content ID may be assigned to it. If the supported content ID is not supplied, the default supported content profile will be assigned to it.
1943
+ */
1944
+ getConversationsMessagingSupportedcontentDefault() {
1945
+
1946
+ return this.apiClient.callApi(
1947
+ '/api/v2/conversations/messaging/supportedcontent/default',
1948
+ 'GET',
1949
+ { },
1950
+ { },
1951
+ { },
1952
+ { },
1953
+ null,
1954
+ ['PureCloud OAuth'],
1955
+ ['application/json'],
1956
+ ['application/json']
1957
+ );
1958
+ }
1959
+
1960
+ /**
1961
+ * Get a supported content profile
1962
+ *
1963
+ * @param {String} supportedContentId Supported Content ID
1964
+ */
1965
+ getConversationsMessagingSupportedcontentSupportedContentId(supportedContentId) {
1966
+ // verify the required parameter 'supportedContentId' is set
1967
+ if (supportedContentId === undefined || supportedContentId === null) {
1968
+ throw 'Missing the required parameter "supportedContentId" when calling getConversationsMessagingSupportedcontentSupportedContentId';
1969
+ }
1970
+
1971
+ return this.apiClient.callApi(
1972
+ '/api/v2/conversations/messaging/supportedcontent/{supportedContentId}',
1973
+ 'GET',
1974
+ { 'supportedContentId': supportedContentId },
1975
+ { },
1976
+ { },
1977
+ { },
1978
+ null,
1979
+ ['PureCloud OAuth'],
1980
+ ['application/json'],
1981
+ ['application/json']
1982
+ );
1983
+ }
1984
+
1890
1985
  /**
1891
1986
  * Get conversation threading window timeline for each messaging type
1892
1987
  * Conversation messaging threading timeline is a setting defined for each messenger type in your organization. This setting will dictate whether a new message is added to the most recent existing conversation, or creates a new Conversation. If the existing Conversation is still in a connected state the threading timeline setting will never play a role. After the conversation is disconnected, if an inbound message is received or an outbound message is sent after the setting for threading timeline expires, a new conversation is created.
@@ -2968,6 +3063,36 @@ class ConversationsApi {
2968
3063
  );
2969
3064
  }
2970
3065
 
3066
+ /**
3067
+ * Update a supported content profile
3068
+ *
3069
+ * @param {String} supportedContentId Supported Content ID
3070
+ * @param {Object} body SupportedContent
3071
+ */
3072
+ patchConversationsMessagingSupportedcontentSupportedContentId(supportedContentId, body) {
3073
+ // verify the required parameter 'supportedContentId' is set
3074
+ if (supportedContentId === undefined || supportedContentId === null) {
3075
+ throw 'Missing the required parameter "supportedContentId" when calling patchConversationsMessagingSupportedcontentSupportedContentId';
3076
+ }
3077
+ // verify the required parameter 'body' is set
3078
+ if (body === undefined || body === null) {
3079
+ throw 'Missing the required parameter "body" when calling patchConversationsMessagingSupportedcontentSupportedContentId';
3080
+ }
3081
+
3082
+ return this.apiClient.callApi(
3083
+ '/api/v2/conversations/messaging/supportedcontent/{supportedContentId}',
3084
+ 'PATCH',
3085
+ { 'supportedContentId': supportedContentId },
3086
+ { },
3087
+ { },
3088
+ { },
3089
+ body,
3090
+ ['PureCloud OAuth'],
3091
+ ['application/json'],
3092
+ ['application/json']
3093
+ );
3094
+ }
3095
+
2971
3096
  /**
2972
3097
  * Index conversation properties
2973
3098
  *
@@ -4203,6 +4328,31 @@ class ConversationsApi {
4203
4328
  );
4204
4329
  }
4205
4330
 
4331
+ /**
4332
+ * Create a Supported Content profile
4333
+ *
4334
+ * @param {Object} body SupportedContent
4335
+ */
4336
+ postConversationsMessagingSupportedcontent(body) {
4337
+ // verify the required parameter 'body' is set
4338
+ if (body === undefined || body === null) {
4339
+ throw 'Missing the required parameter "body" when calling postConversationsMessagingSupportedcontent';
4340
+ }
4341
+
4342
+ return this.apiClient.callApi(
4343
+ '/api/v2/conversations/messaging/supportedcontent',
4344
+ 'POST',
4345
+ { },
4346
+ { },
4347
+ { },
4348
+ { },
4349
+ body,
4350
+ ['PureCloud OAuth'],
4351
+ ['application/json'],
4352
+ ['application/json']
4353
+ );
4354
+ }
4355
+
4206
4356
  /**
4207
4357
  * Set flagged reason on conversation participant to indicate bad conversation quality.
4208
4358
  *
@@ -4363,6 +4513,31 @@ class ConversationsApi {
4363
4513
  );
4364
4514
  }
4365
4515
 
4516
+ /**
4517
+ * Set the organization&#39;s default supported content profile that may be assigned to an integration when it is created.
4518
+ * When an integration is created a supported content ID may be assigned to it. If the supported content ID is not supplied, the default supported content profile will be assigned to it.
4519
+ * @param {Object} body SupportedContent
4520
+ */
4521
+ putConversationsMessagingSupportedcontentDefault(body) {
4522
+ // verify the required parameter 'body' is set
4523
+ if (body === undefined || body === null) {
4524
+ throw 'Missing the required parameter "body" when calling putConversationsMessagingSupportedcontentDefault';
4525
+ }
4526
+
4527
+ return this.apiClient.callApi(
4528
+ '/api/v2/conversations/messaging/supportedcontent/default',
4529
+ 'PUT',
4530
+ { },
4531
+ { },
4532
+ { },
4533
+ { },
4534
+ body,
4535
+ ['PureCloud OAuth'],
4536
+ ['application/json'],
4537
+ ['application/json']
4538
+ );
4539
+ }
4540
+
4366
4541
  /**
4367
4542
  * Update conversation threading window timeline for each messaging type
4368
4543
  * PUT Conversation messaging threading timeline is intended to set the conversation threading settings for ALL messengerTypes. If you omit a messengerType in the request body then the setting for that messengerType will use the platform default value. The PUT replaces the existing setting(s) that were previously set for each messengerType.
@@ -5,7 +5,7 @@ class DataExtensionsApi {
5
5
  /**
6
6
  * DataExtensions service.
7
7
  * @module purecloud-platform-client-v2/api/DataExtensionsApi
8
- * @version 130.0.0
8
+ * @version 131.0.0
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 130.0.0
8
+ * @version 131.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class FaxApi {
5
5
  /**
6
6
  * Fax service.
7
7
  * @module purecloud-platform-client-v2/api/FaxApi
8
- * @version 130.0.0
8
+ * @version 131.0.0
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 130.0.0
8
+ * @version 131.0.0
9
9
  */
10
10
 
11
11
  /**