From 62bece6835278f472a26a0414f67a2ef882fb301 Mon Sep 17 00:00:00 2001 From: Guilherme Luiz <32556124+guilhermeluizsp@users.noreply.github.com> Date: Thu, 7 Jul 2022 22:54:44 -0300 Subject: [PATCH] Apply API field renames (#21929) Rename some API fields --- .../communication-short-codes/CHANGELOG.md | 23 ++ .../communication-short-codes/package.json | 4 +- ...te_list_and_delete_a_us_program_brief.json | 241 +++++++----- ...ate_get_and_delete_a_us_program_brief.json | 111 +++--- ...ing_can_list_all_acquired_short_codes.json | 14 +- .../recording_can_manage_attachments.json | 353 ++++++++++++++---- ..._create_and_update_a_us_program_brief.json | 122 +++--- ...te_list_and_delete_a_us_program_brief.json | 225 ++++++----- ...ate_get_and_delete_a_us_program_brief.json | 102 +++-- ...ing_can_list_all_acquired_short_codes.json | 12 +- .../recording_can_manage_attachments.json | 314 ++++++++++++---- ..._create_and_update_a_us_program_brief.json | 118 +++--- .../review/communication-short-codes.api.md | 50 ++- .../createAndDeleteProgramBrief.ts | 18 +- .../src/generated/src/models/index.ts | 110 ++---- .../src/generated/src/models/mappers.ts | 72 ++-- .../src/generated/src/models/parameters.ts | 14 +- .../src/operations/shortCodesOperations.ts | 34 +- .../shortCodesOperations.ts | 13 + .../generated/src/shortCodesClientContext.ts | 2 +- .../communication-short-codes/src/models.ts | 4 +- .../src/shortCodesClient.ts | 12 +- .../src/utils/constants.ts | 2 +- .../swagger/README.md | 2 +- .../swagger/shortcodes.json | 113 +++--- .../manageProgramBriefAttachment.spec.ts | 44 ++- .../test/public/manageUSProgramBriefs.spec.ts | 4 +- .../utils/testProgramBriefAttachment.ts | 69 ++-- .../test/public/utils/testUSProgramBrief.ts | 109 ++++-- 29 files changed, 1476 insertions(+), 835 deletions(-) diff --git a/sdk/communication/communication-short-codes/CHANGELOG.md b/sdk/communication/communication-short-codes/CHANGELOG.md index aefd2147230c..398098438cda 100644 --- a/sdk/communication/communication-short-codes/CHANGELOG.md +++ b/sdk/communication/communication-short-codes/CHANGELOG.md @@ -1,4 +1,27 @@ # Release History + +## 1.0.0-beta.3 (2022-07-12) +### Features Added +- New Program Brief Attachments API. + +### Breaking Changes +- Some fields were renamed or added: + - ProgramDetails + - signUpTypes was renamed to callToActionTypes + - ProgramSignUpType was renamed to CallToActionType + - signUpUrl was renamed to callToActionUrl + - callToAction was added + - UseCase + - contentCategory was renamed to contentType + - customContentType was added + - MessageDetails + - supportedProtocols was renamed to supportedProtocol + - helpMessage was renamed to helpAnswerToUser + - optOutMessage was renamed to optOutAnswerToUser + - optInMessage was renamed to optInMessageToUser + - optInReply was renamed to optInAnswerFromUser + - confirmationMessage was renamed to optInConfirmationMessageToUser + ## 1.0.0-beta.2 (2022-03-31) ### Features Added - Migrated from using `@azure/core-http` to `@azure/core-rest-pipeline` for the handling of HTTP requests. See [Azure Core v1 vs v2](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/core/core-rest-pipeline/documentation/core2.md) for more on the difference and benefits of the move. diff --git a/sdk/communication/communication-short-codes/package.json b/sdk/communication/communication-short-codes/package.json index c02329cac9d4..f9fdf09e41dd 100644 --- a/sdk/communication/communication-short-codes/package.json +++ b/sdk/communication/communication-short-codes/package.json @@ -1,6 +1,6 @@ { "name": "@azure-tools/communication-short-codes", - "version": "1.0.0-beta.2", + "version": "1.0.0-beta.3", "description": "SDK for Azure Communication Services which facilitates short code management.", "sdk-type": "client", "main": "dist/index.js", @@ -60,7 +60,7 @@ "prettier": "@azure/eslint-plugin-azure-sdk/prettier.json", "dependencies": { "@azure/abort-controller": "^1.0.0", - "@azure/communication-common": "^2.1.0", + "@azure/communication-common": "^2.0.0", "@azure/core-auth": "^1.3.0", "@azure/core-client": "^1.3.2", "@azure/core-lro": "^2.2.0", diff --git a/sdk/communication/communication-short-codes/recordings/browsers/shortcodesclient__creates_gets_updates_lists_and_deletes_us_program_brief/recording_can_create_get_update_list_and_delete_a_us_program_brief.json b/sdk/communication/communication-short-codes/recordings/browsers/shortcodesclient__creates_gets_updates_lists_and_deletes_us_program_brief/recording_can_create_get_update_list_and_delete_a_us_program_brief.json index f39d999fbfab..40045c1cc4b0 100644 --- a/sdk/communication/communication-short-codes/recordings/browsers/shortcodesclient__creates_gets_updates_lists_and_deletes_us_program_brief/recording_can_create_get_update_list_and_delete_a_us_program_brief.json +++ b/sdk/communication/communication-short-codes/recordings/browsers/shortcodesclient__creates_gets_updates_lists_and_deletes_us_program_brief/recording_can_create_get_update_list_and_delete_a_us_program_brief.json @@ -16,24 +16,24 @@ "Sec-Fetch-Dest": "empty", "Sec-Fetch-Mode": "cors", "Sec-Fetch-Site": "same-site", - "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/102.0.5002.0 Safari/537.36", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/103.0.5058.0 Safari/537.36", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", - "x-ms-date": "Fri, 27 May 2022 16:48:43 GMT", - "x-ms-useragent": "azsdk-js-communication-short-codes/1.0.0-beta.2 core-rest-pipeline/1.8.2 OS/Linuxx86_64" + "x-ms-date": "Thu, 07 Jul 2022 21:46:44 GMT", + "x-ms-useragent": "azsdk-js-communication-short-codes/1.0.0-beta.2 core-rest-pipeline/1.9.1 OS/Linuxx86_64" }, "RequestBody": null, "StatusCode": 404, "ResponseHeaders": { "api-supported-versions": "2021-10-25-preview", "Content-Type": "application/json", - "Date": "Fri, 27 May 2022 16:48:45 GMT", - "MS-CV": "X7IBFzeZZUyUlIP08hn7hg.0", + "Date": "Thu, 07 Jul 2022 21:46:44 GMT", + "MS-CV": "tVmXabK55E6wLpV2UwsmOg.0", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "07QCRYgAAAAAHgUoIQX3/SIyn5xYLcIqVTUVYMzBFREdFMDQxMwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0RFTHYgAAAAAVtNAGWn7uRJrZ15vWJY/uU0FPMzFFREdFMTExNQBjYzkyNzU4ZC0wNWY3LTRhZDYtYWE1ZS0wZmE5NzE4ZDg5ODU=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "1315ms" + "X-Processing-Time": "1232ms" }, "ResponseBody": { "error": { @@ -51,7 +51,7 @@ "Accept-Language": "en-US", "Authorization": "Sanitized", "Connection": "keep-alive", - "Content-Length": "1997", + "Content-Length": "2038", "Content-Type": "application/merge-patch\u002Bjson", "Referer": "http://localhost:9876/", "sec-ch-ua": "", @@ -60,11 +60,11 @@ "Sec-Fetch-Dest": "empty", "Sec-Fetch-Mode": "cors", "Sec-Fetch-Site": "same-site", - "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/102.0.5002.0 Safari/537.36", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/103.0.5058.0 Safari/537.36", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-content-sha256": "zUYsBqzIkivIwozH0gZDy2m4Tm75n6y/f\u002BiGvnN8x8I=", - "x-ms-date": "Fri, 27 May 2022 16:48:45 GMT", - "x-ms-useragent": "azsdk-js-communication-short-codes/1.0.0-beta.2 core-rest-pipeline/1.8.2 OS/Linuxx86_64" + "x-ms-content-sha256": "WeoIh/ilgHWeWJA9Uh1c/dh2cqn1EmkgJMjuReNrBqI=", + "x-ms-date": "Thu, 07 Jul 2022 21:46:46 GMT", + "x-ms-useragent": "azsdk-js-communication-short-codes/1.0.0-beta.2 core-rest-pipeline/1.9.1 OS/Linuxx86_64" }, "RequestBody": { "id": "00000000-0000-0000-0000-000000000000", @@ -75,11 +75,11 @@ "name": "Contoso Loyalty Program", "description": "TEST Customers can sign up to receive regular updates on coupons and other perks of our loyalty program.", "url": "https://endpoint/loyalty-program", - "signUpTypes": [ + "callToActionTypes": [ "sms", "website" ], - "signUpUrl": "https://contoso.com/sign-up", + "callToActionUrl": "https://contoso.com/sign-up", "termsOfServiceUrl": "https://contoso.com/terms", "privacyPolicyUrl": "https://contoso.com/privacy" }, @@ -98,19 +98,17 @@ } }, "messageDetails": { - "supportedProtocols": [ - "sms" - ], + "supportedProtocol": "sms", "recurrence": "subscription", - "helpMessage": "Send \u0027Stop\u0027 to unsubscribe, send \u0027Start\u0027 to resubscribe.", - "optOutMessage": "You\u0027ve been unsubscribed from these messages. Send \u0027Start\u0027 if you want to resubscribe.", - "optInMessage": "Someone requested to subscribe this number to receive updates about Contoso\u0027s loyalty program. To confirm subscription, reply to this message with \u0027JOIN\u0027", - "optInReply": "JOIN", - "confirmationMessage": "Congrats, you have been successfully subscribed to loyalty program updates. Welcome!", + "helpAnswerToUser": "Send \u0027Stop\u0027 to unsubscribe, send \u0027Start\u0027 to resubscribe.", + "optOutAnswerToUser": "You\u0027ve been unsubscribed from these messages. Send \u0027Start\u0027 if you want to resubscribe.", + "optInMessageToUser": "Someone requested to subscribe this number to receive updates about Contoso\u0027s loyalty program. To confirm subscription, reply to this message with \u0027JOIN\u0027", + "optInAnswerFromUser": "JOIN", + "optInConfirmationMessageToUser": "Congrats, you have been successfully subscribed to loyalty program updates. Welcome!", "directionality": "twoWay", "useCases": [ { - "contentCategory": "coupons", + "contentType": "marketingAndPromotion", "examples": [ { "messages": [ @@ -123,7 +121,7 @@ ] }, { - "contentCategory": "loyaltyProgram", + "contentType": "loyaltyProgram", "examples": [ { "messages": [ @@ -136,7 +134,7 @@ ] }, { - "contentCategory": "loyaltyProgramPointsPrizes", + "contentType": "sweepstakesOrContest", "examples": [ { "messages": [ @@ -163,14 +161,14 @@ "ResponseHeaders": { "api-supported-versions": "2021-10-25-preview", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 27 May 2022 16:48:48 GMT", + "Date": "Thu, 07 Jul 2022 21:46:54 GMT", "Location": "https://endpoint/shortCodes/countries/US/programBriefs/00000000-0000-0000-0000-000000000000", - "MS-CV": "E4oD8FP5vk\u002ByhqT4ejYEHA.0", + "MS-CV": "qqiiLNGI6kGqm\u002B7ek7L51g.0", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "07gCRYgAAAABJaDteBdeTQJ\u002BFyuq00BvyTUVYMzBFREdFMDQxMwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0RVTHYgAAAABByySUaRgIRbaCwWFKITk\u002BU0FPMzFFREdFMTExNQBjYzkyNzU4ZC0wNWY3LTRhZDYtYWE1ZS0wZmE5NzE4ZDg5ODU=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "2449ms" + "X-Processing-Time": "9454ms" }, "ResponseBody": { "id": "00000000-0000-0000-0000-000000000000", @@ -187,7 +185,7 @@ "billingFrequency": "monthly" } ], - "statusUpdatedDate": "2022-05-27T16:48:48\u002B00:00", + "statusUpdatedDate": "2022-07-07T21:46:46\u002B00:00", "programDetails": { "isVanity": false, "numberType": "shortCode", @@ -199,7 +197,12 @@ "sms", "website" ], + "callToActionTypes": [ + "sms", + "website" + ], "signUpUrl": "https://contoso.com/sign-up", + "callToActionUrl": "https://contoso.com/sign-up", "termsOfServiceUrl": "https://contoso.com/terms", "privacyPolicyUrl": "https://contoso.com/privacy" }, @@ -221,16 +224,22 @@ "supportedProtocols": [ "sms" ], + "supportedProtocol": "sms", "recurrence": "subscription", "helpMessage": "Send \u0027Stop\u0027 to unsubscribe, send \u0027Start\u0027 to resubscribe.", + "helpAnswerToUser": "Send \u0027Stop\u0027 to unsubscribe, send \u0027Start\u0027 to resubscribe.", "optOutMessage": "You\u0027ve been unsubscribed from these messages. Send \u0027Start\u0027 if you want to resubscribe.", + "optOutAnswerToUser": "You\u0027ve been unsubscribed from these messages. Send \u0027Start\u0027 if you want to resubscribe.", "optInMessage": "Someone requested to subscribe this number to receive updates about Contoso\u0027s loyalty program. To confirm subscription, reply to this message with \u0027JOIN\u0027", + "optInMessageToUser": "Someone requested to subscribe this number to receive updates about Contoso\u0027s loyalty program. To confirm subscription, reply to this message with \u0027JOIN\u0027", "optInReply": "JOIN", + "optInAnswerFromUser": "JOIN", "confirmationMessage": "Congrats, you have been successfully subscribed to loyalty program updates. Welcome!", + "optInConfirmationMessageToUser": "Congrats, you have been successfully subscribed to loyalty program updates. Welcome!", "directionality": "twoWay", "useCases": [ { - "contentCategory": "coupons", + "contentType": "marketingAndPromotion", "examples": [ { "messages": [ @@ -243,7 +252,7 @@ ] }, { - "contentCategory": "loyaltyProgram", + "contentType": "loyaltyProgram", "examples": [ { "messages": [ @@ -256,7 +265,7 @@ ] }, { - "contentCategory": "loyaltyProgramPointsPrizes", + "contentType": "sweepstakesOrContest", "examples": [ { "messages": [ @@ -296,24 +305,24 @@ "Sec-Fetch-Dest": "empty", "Sec-Fetch-Mode": "cors", "Sec-Fetch-Site": "same-site", - "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/102.0.5002.0 Safari/537.36", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/103.0.5058.0 Safari/537.36", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", - "x-ms-date": "Fri, 27 May 2022 16:48:47 GMT", - "x-ms-useragent": "azsdk-js-communication-short-codes/1.0.0-beta.2 core-rest-pipeline/1.8.2 OS/Linuxx86_64" + "x-ms-date": "Thu, 07 Jul 2022 21:46:55 GMT", + "x-ms-useragent": "azsdk-js-communication-short-codes/1.0.0-beta.2 core-rest-pipeline/1.9.1 OS/Linuxx86_64" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "api-supported-versions": "2021-10-25-preview", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 27 May 2022 16:48:49 GMT", - "MS-CV": "P7a5hNn8XEqRK/wk1L4vmw.0", + "Date": "Thu, 07 Jul 2022 21:46:56 GMT", + "MS-CV": "Un1jBM0IUUKX6b3nWdMnMA.0", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "08QCRYgAAAABk6oftGrERQJiXNlaDnkWOTUVYMzBFREdFMDQxMwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0T1THYgAAAADoxwQ3nSD1SpEb06Dw7bIKU0FPMzFFREdFMTExNQBjYzkyNzU4ZC0wNWY3LTRhZDYtYWE1ZS0wZmE5NzE4ZDg5ODU=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "1424ms" + "X-Processing-Time": "1772ms" }, "ResponseBody": { "id": "00000000-0000-0000-0000-000000000000", @@ -330,7 +339,7 @@ "billingFrequency": "monthly" } ], - "statusUpdatedDate": "2022-05-27T16:48:48\u002B00:00", + "statusUpdatedDate": "2022-07-07T21:46:46\u002B00:00", "programDetails": { "isVanity": false, "numberType": "shortCode", @@ -342,7 +351,12 @@ "sms", "website" ], + "callToActionTypes": [ + "sms", + "website" + ], "signUpUrl": "https://contoso.com/sign-up", + "callToActionUrl": "https://contoso.com/sign-up", "termsOfServiceUrl": "https://contoso.com/terms", "privacyPolicyUrl": "https://contoso.com/privacy" }, @@ -364,16 +378,22 @@ "supportedProtocols": [ "sms" ], + "supportedProtocol": "sms", "recurrence": "subscription", "helpMessage": "Send \u0027Stop\u0027 to unsubscribe, send \u0027Start\u0027 to resubscribe.", + "helpAnswerToUser": "Send \u0027Stop\u0027 to unsubscribe, send \u0027Start\u0027 to resubscribe.", "optOutMessage": "You\u0027ve been unsubscribed from these messages. Send \u0027Start\u0027 if you want to resubscribe.", + "optOutAnswerToUser": "You\u0027ve been unsubscribed from these messages. Send \u0027Start\u0027 if you want to resubscribe.", "optInMessage": "Someone requested to subscribe this number to receive updates about Contoso\u0027s loyalty program. To confirm subscription, reply to this message with \u0027JOIN\u0027", + "optInMessageToUser": "Someone requested to subscribe this number to receive updates about Contoso\u0027s loyalty program. To confirm subscription, reply to this message with \u0027JOIN\u0027", "optInReply": "JOIN", + "optInAnswerFromUser": "JOIN", "confirmationMessage": "Congrats, you have been successfully subscribed to loyalty program updates. Welcome!", + "optInConfirmationMessageToUser": "Congrats, you have been successfully subscribed to loyalty program updates. Welcome!", "directionality": "twoWay", "useCases": [ { - "contentCategory": "coupons", + "contentType": "marketingAndPromotion", "examples": [ { "messages": [ @@ -386,7 +406,7 @@ ] }, { - "contentCategory": "loyaltyProgram", + "contentType": "loyaltyProgram", "examples": [ { "messages": [ @@ -399,7 +419,7 @@ ] }, { - "contentCategory": "loyaltyProgramPointsPrizes", + "contentType": "sweepstakesOrContest", "examples": [ { "messages": [ @@ -432,7 +452,7 @@ "Accept-Language": "en-US", "Authorization": "Sanitized", "Connection": "keep-alive", - "Content-Length": "218", + "Content-Length": "224", "Content-Type": "application/merge-patch\u002Bjson", "Referer": "http://localhost:9876/", "sec-ch-ua": "", @@ -441,16 +461,16 @@ "Sec-Fetch-Dest": "empty", "Sec-Fetch-Mode": "cors", "Sec-Fetch-Site": "same-site", - "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/102.0.5002.0 Safari/537.36", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/103.0.5058.0 Safari/537.36", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-content-sha256": "qdGu60R8mzjtXGveBrBIei/w0E1xpahVo2Bm7owJ0AY=", - "x-ms-date": "Fri, 27 May 2022 16:48:49 GMT", - "x-ms-useragent": "azsdk-js-communication-short-codes/1.0.0-beta.2 core-rest-pipeline/1.8.2 OS/Linuxx86_64" + "x-ms-content-sha256": "\u002BBnVLOOjRM5xLtHwFZe9gvYWOgAugd0lDwMgB6gOm1g=", + "x-ms-date": "Thu, 07 Jul 2022 21:46:57 GMT", + "x-ms-useragent": "azsdk-js-communication-short-codes/1.0.0-beta.2 core-rest-pipeline/1.9.1 OS/Linuxx86_64" }, "RequestBody": { "id": "00000000-0000-0000-0000-000000000000", "programDetails": { - "signUpUrl": "https://endpoint/updated-sign-up", + "callToActionUrl": "https://endpoint/updated-sign-up", "termsOfServiceUrl": "https://endpoint/updated-terms", "privacyPolicyUrl": "https://endpoint/updated-privacy" } @@ -459,13 +479,13 @@ "ResponseHeaders": { "api-supported-versions": "2021-10-25-preview", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 27 May 2022 16:48:51 GMT", - "MS-CV": "4Ms8Edj6ZEKwq2ohsMlu1g.0", + "Date": "Thu, 07 Jul 2022 21:46:57 GMT", + "MS-CV": "uts5yj9T00SJPaSdFewGYA.0", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "08gCRYgAAAAD91izFdH4YSpEbZtWmF8\u002BLTUVYMzBFREdFMDQxMwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0UVTHYgAAAACbGNeN6v3DQapbhosLJpOFU0FPMzFFREdFMTExNQBjYzkyNzU4ZC0wNWY3LTRhZDYtYWE1ZS0wZmE5NzE4ZDg5ODU=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "1633ms" + "X-Processing-Time": "1141ms" }, "ResponseBody": { "id": "00000000-0000-0000-0000-000000000000", @@ -482,7 +502,7 @@ "billingFrequency": "monthly" } ], - "statusUpdatedDate": "2022-05-27T16:48:48\u002B00:00", + "statusUpdatedDate": "2022-07-07T21:46:46\u002B00:00", "programDetails": { "isVanity": false, "numberType": "shortCode", @@ -494,7 +514,12 @@ "sms", "website" ], + "callToActionTypes": [ + "sms", + "website" + ], "signUpUrl": "https://endpoint/updated-sign-up", + "callToActionUrl": "https://endpoint/updated-sign-up", "termsOfServiceUrl": "https://endpoint/updated-terms", "privacyPolicyUrl": "https://endpoint/updated-privacy" }, @@ -516,16 +541,22 @@ "supportedProtocols": [ "sms" ], + "supportedProtocol": "sms", "recurrence": "subscription", "helpMessage": "Send \u0027Stop\u0027 to unsubscribe, send \u0027Start\u0027 to resubscribe.", + "helpAnswerToUser": "Send \u0027Stop\u0027 to unsubscribe, send \u0027Start\u0027 to resubscribe.", "optOutMessage": "You\u0027ve been unsubscribed from these messages. Send \u0027Start\u0027 if you want to resubscribe.", + "optOutAnswerToUser": "You\u0027ve been unsubscribed from these messages. Send \u0027Start\u0027 if you want to resubscribe.", "optInMessage": "Someone requested to subscribe this number to receive updates about Contoso\u0027s loyalty program. To confirm subscription, reply to this message with \u0027JOIN\u0027", + "optInMessageToUser": "Someone requested to subscribe this number to receive updates about Contoso\u0027s loyalty program. To confirm subscription, reply to this message with \u0027JOIN\u0027", "optInReply": "JOIN", + "optInAnswerFromUser": "JOIN", "confirmationMessage": "Congrats, you have been successfully subscribed to loyalty program updates. Welcome!", + "optInConfirmationMessageToUser": "Congrats, you have been successfully subscribed to loyalty program updates. Welcome!", "directionality": "twoWay", "useCases": [ { - "contentCategory": "coupons", + "contentType": "marketingAndPromotion", "examples": [ { "messages": [ @@ -538,7 +569,7 @@ ] }, { - "contentCategory": "loyaltyProgram", + "contentType": "loyaltyProgram", "examples": [ { "messages": [ @@ -551,7 +582,7 @@ ] }, { - "contentCategory": "loyaltyProgramPointsPrizes", + "contentType": "sweepstakesOrContest", "examples": [ { "messages": [ @@ -591,24 +622,24 @@ "Sec-Fetch-Dest": "empty", "Sec-Fetch-Mode": "cors", "Sec-Fetch-Site": "same-site", - "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/102.0.5002.0 Safari/537.36", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/103.0.5058.0 Safari/537.36", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", - "x-ms-date": "Fri, 27 May 2022 16:48:51 GMT", - "x-ms-useragent": "azsdk-js-communication-short-codes/1.0.0-beta.2 core-rest-pipeline/1.8.2 OS/Linuxx86_64" + "x-ms-date": "Thu, 07 Jul 2022 21:46:59 GMT", + "x-ms-useragent": "azsdk-js-communication-short-codes/1.0.0-beta.2 core-rest-pipeline/1.9.1 OS/Linuxx86_64" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "api-supported-versions": "2021-10-25-preview", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 27 May 2022 16:48:53 GMT", - "MS-CV": "9vxxv9y3NkWNBFJ6F1BULA.0", + "Date": "Thu, 07 Jul 2022 21:46:59 GMT", + "MS-CV": "Rxj/t53KsUeDIvoFlpv6lg.0", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "09ACRYgAAAABl8iE3kGVLS7TcYsusixepTUVYMzBFREdFMDQxMwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0UlTHYgAAAADD7hOaXQbWQop8e483aZpEU0FPMzFFREdFMTExNQBjYzkyNzU4ZC0wNWY3LTRhZDYtYWE1ZS0wZmE5NzE4ZDg5ODU=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "1377ms" + "X-Processing-Time": "1216ms" }, "ResponseBody": { "id": "00000000-0000-0000-0000-000000000000", @@ -625,7 +656,7 @@ "billingFrequency": "monthly" } ], - "statusUpdatedDate": "2022-05-27T16:48:48\u002B00:00", + "statusUpdatedDate": "2022-07-07T21:46:46\u002B00:00", "programDetails": { "isVanity": false, "numberType": "shortCode", @@ -637,7 +668,12 @@ "sms", "website" ], + "callToActionTypes": [ + "sms", + "website" + ], "signUpUrl": "https://endpoint/updated-sign-up", + "callToActionUrl": "https://endpoint/updated-sign-up", "termsOfServiceUrl": "https://endpoint/updated-terms", "privacyPolicyUrl": "https://endpoint/updated-privacy" }, @@ -659,16 +695,22 @@ "supportedProtocols": [ "sms" ], + "supportedProtocol": "sms", "recurrence": "subscription", "helpMessage": "Send \u0027Stop\u0027 to unsubscribe, send \u0027Start\u0027 to resubscribe.", + "helpAnswerToUser": "Send \u0027Stop\u0027 to unsubscribe, send \u0027Start\u0027 to resubscribe.", "optOutMessage": "You\u0027ve been unsubscribed from these messages. Send \u0027Start\u0027 if you want to resubscribe.", + "optOutAnswerToUser": "You\u0027ve been unsubscribed from these messages. Send \u0027Start\u0027 if you want to resubscribe.", "optInMessage": "Someone requested to subscribe this number to receive updates about Contoso\u0027s loyalty program. To confirm subscription, reply to this message with \u0027JOIN\u0027", + "optInMessageToUser": "Someone requested to subscribe this number to receive updates about Contoso\u0027s loyalty program. To confirm subscription, reply to this message with \u0027JOIN\u0027", "optInReply": "JOIN", + "optInAnswerFromUser": "JOIN", "confirmationMessage": "Congrats, you have been successfully subscribed to loyalty program updates. Welcome!", + "optInConfirmationMessageToUser": "Congrats, you have been successfully subscribed to loyalty program updates. Welcome!", "directionality": "twoWay", "useCases": [ { - "contentCategory": "coupons", + "contentType": "marketingAndPromotion", "examples": [ { "messages": [ @@ -681,7 +723,7 @@ ] }, { - "contentCategory": "loyaltyProgram", + "contentType": "loyaltyProgram", "examples": [ { "messages": [ @@ -694,7 +736,7 @@ ] }, { - "contentCategory": "loyaltyProgramPointsPrizes", + "contentType": "sweepstakesOrContest", "examples": [ { "messages": [ @@ -734,24 +776,24 @@ "Sec-Fetch-Dest": "empty", "Sec-Fetch-Mode": "cors", "Sec-Fetch-Site": "same-site", - "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/102.0.5002.0 Safari/537.36", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/103.0.5058.0 Safari/537.36", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", - "x-ms-date": "Fri, 27 May 2022 16:48:52 GMT", - "x-ms-useragent": "azsdk-js-communication-short-codes/1.0.0-beta.2 core-rest-pipeline/1.8.2 OS/Linuxx86_64" + "x-ms-date": "Thu, 07 Jul 2022 21:47:00 GMT", + "x-ms-useragent": "azsdk-js-communication-short-codes/1.0.0-beta.2 core-rest-pipeline/1.9.1 OS/Linuxx86_64" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "api-supported-versions": "2021-10-25-preview", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 27 May 2022 16:48:54 GMT", - "MS-CV": "LBxMaFqkgkq3VYV6nrvo\u002Bw.0", + "Date": "Thu, 07 Jul 2022 21:47:00 GMT", + "MS-CV": "O4\u002BFKihxHk6\u002BfGW\u002BFANHMQ.0", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "09gCRYgAAAADmzRyLRBA5S6OQBGuZ4X55TUVYMzBFREdFMDQxMwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0VFTHYgAAAABeVylSMiXPQpG9to\u002BX4RYGU0FPMzFFREdFMTExNQBjYzkyNzU4ZC0wNWY3LTRhZDYtYWE1ZS0wZmE5NzE4ZDg5ODU=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "1361ms" + "X-Processing-Time": "1207ms" }, "ResponseBody": { "programBriefs": [ @@ -770,7 +812,7 @@ "billingFrequency": "monthly" } ], - "statusUpdatedDate": "2022-05-27T16:48:48\u002B00:00", + "statusUpdatedDate": "2022-07-07T21:46:46\u002B00:00", "programDetails": { "isVanity": false, "numberType": "shortCode", @@ -782,7 +824,12 @@ "sms", "website" ], + "callToActionTypes": [ + "sms", + "website" + ], "signUpUrl": "https://endpoint/updated-sign-up", + "callToActionUrl": "https://endpoint/updated-sign-up", "termsOfServiceUrl": "https://endpoint/updated-terms", "privacyPolicyUrl": "https://endpoint/updated-privacy" }, @@ -804,16 +851,22 @@ "supportedProtocols": [ "sms" ], + "supportedProtocol": "sms", "recurrence": "subscription", "helpMessage": "Send \u0027Stop\u0027 to unsubscribe, send \u0027Start\u0027 to resubscribe.", + "helpAnswerToUser": "Send \u0027Stop\u0027 to unsubscribe, send \u0027Start\u0027 to resubscribe.", "optOutMessage": "You\u0027ve been unsubscribed from these messages. Send \u0027Start\u0027 if you want to resubscribe.", + "optOutAnswerToUser": "You\u0027ve been unsubscribed from these messages. Send \u0027Start\u0027 if you want to resubscribe.", "optInMessage": "Someone requested to subscribe this number to receive updates about Contoso\u0027s loyalty program. To confirm subscription, reply to this message with \u0027JOIN\u0027", + "optInMessageToUser": "Someone requested to subscribe this number to receive updates about Contoso\u0027s loyalty program. To confirm subscription, reply to this message with \u0027JOIN\u0027", "optInReply": "JOIN", + "optInAnswerFromUser": "JOIN", "confirmationMessage": "Congrats, you have been successfully subscribed to loyalty program updates. Welcome!", + "optInConfirmationMessageToUser": "Congrats, you have been successfully subscribed to loyalty program updates. Welcome!", "directionality": "twoWay", "useCases": [ { - "contentCategory": "coupons", + "contentType": "marketingAndPromotion", "examples": [ { "messages": [ @@ -826,7 +879,7 @@ ] }, { - "contentCategory": "loyaltyProgram", + "contentType": "loyaltyProgram", "examples": [ { "messages": [ @@ -839,7 +892,7 @@ ] }, { - "contentCategory": "loyaltyProgramPointsPrizes", + "contentType": "sweepstakesOrContest", "examples": [ { "messages": [ @@ -881,22 +934,22 @@ "Sec-Fetch-Dest": "empty", "Sec-Fetch-Mode": "cors", "Sec-Fetch-Site": "same-site", - "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/102.0.5002.0 Safari/537.36", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/103.0.5058.0 Safari/537.36", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", - "x-ms-date": "Fri, 27 May 2022 16:48:54 GMT", - "x-ms-useragent": "azsdk-js-communication-short-codes/1.0.0-beta.2 core-rest-pipeline/1.8.2 OS/Linuxx86_64" + "x-ms-date": "Thu, 07 Jul 2022 21:47:02 GMT", + "x-ms-useragent": "azsdk-js-communication-short-codes/1.0.0-beta.2 core-rest-pipeline/1.9.1 OS/Linuxx86_64" }, "RequestBody": null, "StatusCode": 204, "ResponseHeaders": { "api-supported-versions": "2021-10-25-preview", - "Date": "Fri, 27 May 2022 16:48:55 GMT", - "MS-CV": "LY7waccgZUWypBAXpjEgSQ.0", + "Date": "Thu, 07 Jul 2022 21:47:01 GMT", + "MS-CV": "bCzHwcc17EaTiQF8\u002BxnMgA.0", "Strict-Transport-Security": "max-age=2592000", - "X-Azure-Ref": "09wCRYgAAAAAq6DlF3xagQbIgTGi1oh8vTUVYMzBFREdFMDQxMwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0VVTHYgAAAACklb9qkxGvTofunUwWwfA/U0FPMzFFREdFMTExNQBjYzkyNzU4ZC0wNWY3LTRhZDYtYWE1ZS0wZmE5NzE4ZDg5ODU=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "481ms" + "X-Processing-Time": "418ms" }, "ResponseBody": null }, @@ -916,24 +969,24 @@ "Sec-Fetch-Dest": "empty", "Sec-Fetch-Mode": "cors", "Sec-Fetch-Site": "same-site", - "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/102.0.5002.0 Safari/537.36", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/103.0.5058.0 Safari/537.36", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", - "x-ms-date": "Fri, 27 May 2022 16:48:54 GMT", - "x-ms-useragent": "azsdk-js-communication-short-codes/1.0.0-beta.2 core-rest-pipeline/1.8.2 OS/Linuxx86_64" + "x-ms-date": "Thu, 07 Jul 2022 21:47:02 GMT", + "x-ms-useragent": "azsdk-js-communication-short-codes/1.0.0-beta.2 core-rest-pipeline/1.9.1 OS/Linuxx86_64" }, "RequestBody": null, "StatusCode": 404, "ResponseHeaders": { "api-supported-versions": "2021-10-25-preview", "Content-Type": "application/json", - "Date": "Fri, 27 May 2022 16:48:56 GMT", - "MS-CV": "fLPMcI3cjE6EQIIHuzJHOw.0", + "Date": "Thu, 07 Jul 2022 21:47:02 GMT", + "MS-CV": "o9WjliQzsUu3pzoZpwStNA.0", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0\u002BACRYgAAAABdNnK75fQGRIOcUqymdJEQTUVYMzBFREdFMDQxMwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0VlTHYgAAAAA/fp3wOTzISpFpryQ5aM7RU0FPMzFFREdFMTExNQBjYzkyNzU4ZC0wNWY3LTRhZDYtYWE1ZS0wZmE5NzE4ZDg5ODU=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "1375ms" + "X-Processing-Time": "968ms" }, "ResponseBody": { "error": { diff --git a/sdk/communication/communication-short-codes/recordings/browsers/shortcodesclient__creates_us_program_brief_using_upsert/recording_can_create_get_and_delete_a_us_program_brief.json b/sdk/communication/communication-short-codes/recordings/browsers/shortcodesclient__creates_us_program_brief_using_upsert/recording_can_create_get_and_delete_a_us_program_brief.json index 5526a032e82a..58cbb17ad634 100644 --- a/sdk/communication/communication-short-codes/recordings/browsers/shortcodesclient__creates_us_program_brief_using_upsert/recording_can_create_get_and_delete_a_us_program_brief.json +++ b/sdk/communication/communication-short-codes/recordings/browsers/shortcodesclient__creates_us_program_brief_using_upsert/recording_can_create_get_and_delete_a_us_program_brief.json @@ -9,7 +9,7 @@ "Accept-Language": "en-US", "Authorization": "Sanitized", "Connection": "keep-alive", - "Content-Length": "1997", + "Content-Length": "2038", "Content-Type": "application/merge-patch\u002Bjson", "Referer": "http://localhost:9876/", "sec-ch-ua": "", @@ -18,11 +18,11 @@ "Sec-Fetch-Dest": "empty", "Sec-Fetch-Mode": "cors", "Sec-Fetch-Site": "same-site", - "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/102.0.5002.0 Safari/537.36", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/103.0.5058.0 Safari/537.36", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-content-sha256": "zUYsBqzIkivIwozH0gZDy2m4Tm75n6y/f\u002BiGvnN8x8I=", - "x-ms-date": "Fri, 27 May 2022 16:48:40 GMT", - "x-ms-useragent": "azsdk-js-communication-short-codes/1.0.0-beta.2 core-rest-pipeline/1.8.2 OS/Linuxx86_64" + "x-ms-content-sha256": "WeoIh/ilgHWeWJA9Uh1c/dh2cqn1EmkgJMjuReNrBqI=", + "x-ms-date": "Thu, 07 Jul 2022 21:45:53 GMT", + "x-ms-useragent": "azsdk-js-communication-short-codes/1.0.0-beta.2 core-rest-pipeline/1.9.1 OS/Linuxx86_64" }, "RequestBody": { "id": "00000000-0000-0000-0000-000000000000", @@ -33,11 +33,11 @@ "name": "Contoso Loyalty Program", "description": "TEST Customers can sign up to receive regular updates on coupons and other perks of our loyalty program.", "url": "https://endpoint/loyalty-program", - "signUpTypes": [ + "callToActionTypes": [ "sms", "website" ], - "signUpUrl": "https://contoso.com/sign-up", + "callToActionUrl": "https://contoso.com/sign-up", "termsOfServiceUrl": "https://contoso.com/terms", "privacyPolicyUrl": "https://contoso.com/privacy" }, @@ -56,19 +56,17 @@ } }, "messageDetails": { - "supportedProtocols": [ - "sms" - ], + "supportedProtocol": "sms", "recurrence": "subscription", - "helpMessage": "Send \u0027Stop\u0027 to unsubscribe, send \u0027Start\u0027 to resubscribe.", - "optOutMessage": "You\u0027ve been unsubscribed from these messages. Send \u0027Start\u0027 if you want to resubscribe.", - "optInMessage": "Someone requested to subscribe this number to receive updates about Contoso\u0027s loyalty program. To confirm subscription, reply to this message with \u0027JOIN\u0027", - "optInReply": "JOIN", - "confirmationMessage": "Congrats, you have been successfully subscribed to loyalty program updates. Welcome!", + "helpAnswerToUser": "Send \u0027Stop\u0027 to unsubscribe, send \u0027Start\u0027 to resubscribe.", + "optOutAnswerToUser": "You\u0027ve been unsubscribed from these messages. Send \u0027Start\u0027 if you want to resubscribe.", + "optInMessageToUser": "Someone requested to subscribe this number to receive updates about Contoso\u0027s loyalty program. To confirm subscription, reply to this message with \u0027JOIN\u0027", + "optInAnswerFromUser": "JOIN", + "optInConfirmationMessageToUser": "Congrats, you have been successfully subscribed to loyalty program updates. Welcome!", "directionality": "twoWay", "useCases": [ { - "contentCategory": "coupons", + "contentType": "marketingAndPromotion", "examples": [ { "messages": [ @@ -81,7 +79,7 @@ ] }, { - "contentCategory": "loyaltyProgram", + "contentType": "loyaltyProgram", "examples": [ { "messages": [ @@ -94,7 +92,7 @@ ] }, { - "contentCategory": "loyaltyProgramPointsPrizes", + "contentType": "sweepstakesOrContest", "examples": [ { "messages": [ @@ -117,17 +115,18 @@ "estimatedRampUpTimeInDays": 0 } }, - "StatusCode": 200, + "StatusCode": 201, "ResponseHeaders": { "api-supported-versions": "2021-10-25-preview", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 27 May 2022 16:48:42 GMT", - "MS-CV": "UKCWq/NYfEO/ZaiHMAW8sQ.0", + "Date": "Thu, 07 Jul 2022 21:46:04 GMT", + "Location": "https://endpoint/shortCodes/countries/US/programBriefs/00000000-0000-0000-0000-000000000000", + "MS-CV": "qTrr2zdI6UalTbWWm2aVCQ.0", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "06QCRYgAAAABcG/ErB28ORY7qVqW2m42OTUVYMzBFREdFMDQxMwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0ElTHYgAAAAB3HPwEmeYsTKJCF0y9fM2tU0FPMzFFREdFMTExNQBjYzkyNzU4ZC0wNWY3LTRhZDYtYWE1ZS0wZmE5NzE4ZDg5ODU=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "1688ms" + "X-Processing-Time": "9829ms" }, "ResponseBody": { "id": "00000000-0000-0000-0000-000000000000", @@ -144,7 +143,7 @@ "billingFrequency": "monthly" } ], - "statusUpdatedDate": "2022-05-27T16:48:39\u002B00:00", + "statusUpdatedDate": "2022-07-07T21:45:56\u002B00:00", "programDetails": { "isVanity": false, "numberType": "shortCode", @@ -156,7 +155,12 @@ "sms", "website" ], + "callToActionTypes": [ + "sms", + "website" + ], "signUpUrl": "https://contoso.com/sign-up", + "callToActionUrl": "https://contoso.com/sign-up", "termsOfServiceUrl": "https://contoso.com/terms", "privacyPolicyUrl": "https://contoso.com/privacy" }, @@ -178,16 +182,22 @@ "supportedProtocols": [ "sms" ], + "supportedProtocol": "sms", "recurrence": "subscription", "helpMessage": "Send \u0027Stop\u0027 to unsubscribe, send \u0027Start\u0027 to resubscribe.", + "helpAnswerToUser": "Send \u0027Stop\u0027 to unsubscribe, send \u0027Start\u0027 to resubscribe.", "optOutMessage": "You\u0027ve been unsubscribed from these messages. Send \u0027Start\u0027 if you want to resubscribe.", + "optOutAnswerToUser": "You\u0027ve been unsubscribed from these messages. Send \u0027Start\u0027 if you want to resubscribe.", "optInMessage": "Someone requested to subscribe this number to receive updates about Contoso\u0027s loyalty program. To confirm subscription, reply to this message with \u0027JOIN\u0027", + "optInMessageToUser": "Someone requested to subscribe this number to receive updates about Contoso\u0027s loyalty program. To confirm subscription, reply to this message with \u0027JOIN\u0027", "optInReply": "JOIN", + "optInAnswerFromUser": "JOIN", "confirmationMessage": "Congrats, you have been successfully subscribed to loyalty program updates. Welcome!", + "optInConfirmationMessageToUser": "Congrats, you have been successfully subscribed to loyalty program updates. Welcome!", "directionality": "twoWay", "useCases": [ { - "contentCategory": "coupons", + "contentType": "marketingAndPromotion", "examples": [ { "messages": [ @@ -200,7 +210,7 @@ ] }, { - "contentCategory": "loyaltyProgram", + "contentType": "loyaltyProgram", "examples": [ { "messages": [ @@ -213,7 +223,7 @@ ] }, { - "contentCategory": "loyaltyProgramPointsPrizes", + "contentType": "sweepstakesOrContest", "examples": [ { "messages": [ @@ -253,24 +263,24 @@ "Sec-Fetch-Dest": "empty", "Sec-Fetch-Mode": "cors", "Sec-Fetch-Site": "same-site", - "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/102.0.5002.0 Safari/537.36", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/103.0.5058.0 Safari/537.36", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", - "x-ms-date": "Fri, 27 May 2022 16:48:41 GMT", - "x-ms-useragent": "azsdk-js-communication-short-codes/1.0.0-beta.2 core-rest-pipeline/1.8.2 OS/Linuxx86_64" + "x-ms-date": "Thu, 07 Jul 2022 21:46:05 GMT", + "x-ms-useragent": "azsdk-js-communication-short-codes/1.0.0-beta.2 core-rest-pipeline/1.9.1 OS/Linuxx86_64" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "api-supported-versions": "2021-10-25-preview", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 27 May 2022 16:48:43 GMT", - "MS-CV": "p88vI\u002Br9IkiaZnUEoADPFw.0", + "Date": "Thu, 07 Jul 2022 21:46:05 GMT", + "MS-CV": "LqJ6cI2B6UGq\u002Bbf1kyThzA.0", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "06wCRYgAAAABMk4lF2MreQYS83/If\u002B6fJTUVYMzBFREdFMDQxMwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0HFTHYgAAAABNEvY9pxulQLeWqnZ1BsGqU0FPMzFFREdFMTExNQBjYzkyNzU4ZC0wNWY3LTRhZDYtYWE1ZS0wZmE5NzE4ZDg5ODU=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "1328ms" + "X-Processing-Time": "1177ms" }, "ResponseBody": { "id": "00000000-0000-0000-0000-000000000000", @@ -287,7 +297,7 @@ "billingFrequency": "monthly" } ], - "statusUpdatedDate": "2022-05-27T16:48:39\u002B00:00", + "statusUpdatedDate": "2022-07-07T21:45:56\u002B00:00", "programDetails": { "isVanity": false, "numberType": "shortCode", @@ -299,7 +309,12 @@ "sms", "website" ], + "callToActionTypes": [ + "sms", + "website" + ], "signUpUrl": "https://contoso.com/sign-up", + "callToActionUrl": "https://contoso.com/sign-up", "termsOfServiceUrl": "https://contoso.com/terms", "privacyPolicyUrl": "https://contoso.com/privacy" }, @@ -321,16 +336,22 @@ "supportedProtocols": [ "sms" ], + "supportedProtocol": "sms", "recurrence": "subscription", "helpMessage": "Send \u0027Stop\u0027 to unsubscribe, send \u0027Start\u0027 to resubscribe.", + "helpAnswerToUser": "Send \u0027Stop\u0027 to unsubscribe, send \u0027Start\u0027 to resubscribe.", "optOutMessage": "You\u0027ve been unsubscribed from these messages. Send \u0027Start\u0027 if you want to resubscribe.", + "optOutAnswerToUser": "You\u0027ve been unsubscribed from these messages. Send \u0027Start\u0027 if you want to resubscribe.", "optInMessage": "Someone requested to subscribe this number to receive updates about Contoso\u0027s loyalty program. To confirm subscription, reply to this message with \u0027JOIN\u0027", + "optInMessageToUser": "Someone requested to subscribe this number to receive updates about Contoso\u0027s loyalty program. To confirm subscription, reply to this message with \u0027JOIN\u0027", "optInReply": "JOIN", + "optInAnswerFromUser": "JOIN", "confirmationMessage": "Congrats, you have been successfully subscribed to loyalty program updates. Welcome!", + "optInConfirmationMessageToUser": "Congrats, you have been successfully subscribed to loyalty program updates. Welcome!", "directionality": "twoWay", "useCases": [ { - "contentCategory": "coupons", + "contentType": "marketingAndPromotion", "examples": [ { "messages": [ @@ -343,7 +364,7 @@ ] }, { - "contentCategory": "loyaltyProgram", + "contentType": "loyaltyProgram", "examples": [ { "messages": [ @@ -356,7 +377,7 @@ ] }, { - "contentCategory": "loyaltyProgramPointsPrizes", + "contentType": "sweepstakesOrContest", "examples": [ { "messages": [ @@ -396,22 +417,22 @@ "Sec-Fetch-Dest": "empty", "Sec-Fetch-Mode": "cors", "Sec-Fetch-Site": "same-site", - "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/102.0.5002.0 Safari/537.36", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/103.0.5058.0 Safari/537.36", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", - "x-ms-date": "Fri, 27 May 2022 16:48:43 GMT", - "x-ms-useragent": "azsdk-js-communication-short-codes/1.0.0-beta.2 core-rest-pipeline/1.8.2 OS/Linuxx86_64" + "x-ms-date": "Thu, 07 Jul 2022 21:46:06 GMT", + "x-ms-useragent": "azsdk-js-communication-short-codes/1.0.0-beta.2 core-rest-pipeline/1.9.1 OS/Linuxx86_64" }, "RequestBody": null, "StatusCode": 204, "ResponseHeaders": { "api-supported-versions": "2021-10-25-preview", - "Date": "Fri, 27 May 2022 16:48:44 GMT", - "MS-CV": "UjzSYXvOTkyxRqYNogDQpA.0", + "Date": "Thu, 07 Jul 2022 21:46:06 GMT", + "MS-CV": "soBrbcgKM0WRqX2PqiDksw.0", "Strict-Transport-Security": "max-age=2592000", - "X-Azure-Ref": "07ACRYgAAAABLY9nOEi6vQYYTysDn5oTyTUVYMzBFREdFMDQxMwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0HlTHYgAAAADOvlWw13Y8SLQVrc/vf4mzU0FPMzFFREdFMTExNQBjYzkyNzU4ZC0wNWY3LTRhZDYtYWE1ZS0wZmE5NzE4ZDg5ODU=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "464ms" + "X-Processing-Time": "420ms" }, "ResponseBody": null } diff --git a/sdk/communication/communication-short-codes/recordings/browsers/shortcodesclient__lists_short_codes/recording_can_list_all_acquired_short_codes.json b/sdk/communication/communication-short-codes/recordings/browsers/shortcodesclient__lists_short_codes/recording_can_list_all_acquired_short_codes.json index d533ad515020..8bfd3bed6d90 100644 --- a/sdk/communication/communication-short-codes/recordings/browsers/shortcodesclient__lists_short_codes/recording_can_list_all_acquired_short_codes.json +++ b/sdk/communication/communication-short-codes/recordings/browsers/shortcodesclient__lists_short_codes/recording_can_list_all_acquired_short_codes.json @@ -16,24 +16,24 @@ "Sec-Fetch-Dest": "empty", "Sec-Fetch-Mode": "cors", "Sec-Fetch-Site": "same-site", - "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/102.0.5002.0 Safari/537.36", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/103.0.5058.0 Safari/537.36", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", - "x-ms-date": "Fri, 27 May 2022 16:48:39 GMT", - "x-ms-useragent": "azsdk-js-communication-short-codes/1.0.0-beta.2 core-rest-pipeline/1.8.2 OS/Linuxx86_64" + "x-ms-date": "Thu, 07 Jul 2022 21:46:21 GMT", + "x-ms-useragent": "azsdk-js-communication-short-codes/1.0.0-beta.2 core-rest-pipeline/1.9.1 OS/Linuxx86_64" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "api-supported-versions": "2021-10-25-preview", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 27 May 2022 16:48:40 GMT", - "MS-CV": "3\u002B4qDiT1D0yeSQ8tF1uSwg.0", + "Date": "Thu, 07 Jul 2022 21:46:21 GMT", + "MS-CV": "Tve4OLv4\u002BUWj2SlE4Ed6aw.0", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "06QCRYgAAAADo5Z1keTDgQpA0Uqu9T3fPTUVYMzBFREdFMDQxMwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0LFTHYgAAAACt2z7nTUwpTLrOQ7d4ZEWYU0FPMzFFREdFMTExNQBjYzkyNzU4ZC0wNWY3LTRhZDYtYWE1ZS0wZmE5NzE4ZDg5ODU=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "290ms" + "X-Processing-Time": "367ms" }, "ResponseBody": { "shortCodes": [] diff --git a/sdk/communication/communication-short-codes/recordings/browsers/shortcodesclient__manage_attachments/recording_can_manage_attachments.json b/sdk/communication/communication-short-codes/recordings/browsers/shortcodesclient__manage_attachments/recording_can_manage_attachments.json index 5fc727ce624b..9aed07ef14c2 100644 --- a/sdk/communication/communication-short-codes/recordings/browsers/shortcodesclient__manage_attachments/recording_can_manage_attachments.json +++ b/sdk/communication/communication-short-codes/recordings/browsers/shortcodesclient__manage_attachments/recording_can_manage_attachments.json @@ -16,10 +16,10 @@ "Sec-Fetch-Dest": "empty", "Sec-Fetch-Mode": "cors", "Sec-Fetch-Site": "same-site", - "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/102.0.5002.0 Safari/537.36", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/103.0.5058.0 Safari/537.36", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", - "x-ms-date": "Fri, 10 Jun 2022 20:52:46 GMT", + "x-ms-date": "Thu, 07 Jul 2022 21:46:22 GMT", "x-ms-useragent": "azsdk-js-communication-short-codes/1.0.0-beta.2 core-rest-pipeline/1.9.1 OS/Linuxx86_64" }, "RequestBody": null, @@ -27,13 +27,13 @@ "ResponseHeaders": { "api-supported-versions": "2021-10-25-preview", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 10 Jun 2022 20:52:45 GMT", - "MS-CV": "dmPcs4ygWEK5NeFt0W4dPg.0", + "Date": "Thu, 07 Jul 2022 21:46:22 GMT", + "MS-CV": "I/IIhnRq50imkIJGFtEzmg.0", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0Ha\u002BjYgAAAAB7Dnti78KHR7gkt0nUb7E8U0FPMzFFREdFMTIyMQBjYzkyNzU4ZC0wNWY3LTRhZDYtYWE1ZS0wZmE5NzE4ZDg5ODU=", + "X-Azure-Ref": "0LVTHYgAAAACSO4eorjg/TIt0KnXQc55DU0FPMzFFREdFMTExNQBjYzkyNzU4ZC0wNWY3LTRhZDYtYWE1ZS0wZmE5NzE4ZDg5ODU=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "1168ms" + "X-Processing-Time": "988ms" }, "ResponseBody": { "id": "00000000-0000-0000-0000-000000000000", @@ -50,7 +50,7 @@ "billingFrequency": "monthly" } ], - "statusUpdatedDate": "2022-06-10T20:52:25\u002B00:00", + "statusUpdatedDate": "2022-07-07T21:46:08\u002B00:00", "programDetails": { "isVanity": false, "numberType": "shortCode", @@ -62,7 +62,12 @@ "sms", "website" ], + "callToActionTypes": [ + "sms", + "website" + ], "signUpUrl": "https://contoso.com/sign-up", + "callToActionUrl": "https://contoso.com/sign-up", "termsOfServiceUrl": "https://contoso.com/terms", "privacyPolicyUrl": "https://contoso.com/privacy" }, @@ -84,16 +89,22 @@ "supportedProtocols": [ "sms" ], + "supportedProtocol": "sms", "recurrence": "subscription", "helpMessage": "Send \u0027Stop\u0027 to unsubscribe, send \u0027Start\u0027 to resubscribe.", + "helpAnswerToUser": "Send \u0027Stop\u0027 to unsubscribe, send \u0027Start\u0027 to resubscribe.", "optOutMessage": "You\u0027ve been unsubscribed from these messages. Send \u0027Start\u0027 if you want to resubscribe.", + "optOutAnswerToUser": "You\u0027ve been unsubscribed from these messages. Send \u0027Start\u0027 if you want to resubscribe.", "optInMessage": "Someone requested to subscribe this number to receive updates about Contoso\u0027s loyalty program. To confirm subscription, reply to this message with \u0027JOIN\u0027", + "optInMessageToUser": "Someone requested to subscribe this number to receive updates about Contoso\u0027s loyalty program. To confirm subscription, reply to this message with \u0027JOIN\u0027", "optInReply": "JOIN", + "optInAnswerFromUser": "JOIN", "confirmationMessage": "Congrats, you have been successfully subscribed to loyalty program updates. Welcome!", + "optInConfirmationMessageToUser": "Congrats, you have been successfully subscribed to loyalty program updates. Welcome!", "directionality": "twoWay", "useCases": [ { - "contentCategory": "coupons", + "contentType": "marketingAndPromotion", "examples": [ { "messages": [ @@ -106,7 +117,7 @@ ] }, { - "contentCategory": "loyaltyProgram", + "contentType": "loyaltyProgram", "examples": [ { "messages": [ @@ -119,7 +130,7 @@ ] }, { - "contentCategory": "loyaltyProgramPointsPrizes", + "contentType": "sweepstakesOrContest", "examples": [ { "messages": [ @@ -159,22 +170,22 @@ "Sec-Fetch-Dest": "empty", "Sec-Fetch-Mode": "cors", "Sec-Fetch-Site": "same-site", - "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/102.0.5002.0 Safari/537.36", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/103.0.5058.0 Safari/537.36", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", - "x-ms-date": "Fri, 10 Jun 2022 20:52:47 GMT", + "x-ms-date": "Thu, 07 Jul 2022 21:46:23 GMT", "x-ms-useragent": "azsdk-js-communication-short-codes/1.0.0-beta.2 core-rest-pipeline/1.9.1 OS/Linuxx86_64" }, "RequestBody": null, "StatusCode": 204, "ResponseHeaders": { "api-supported-versions": "2021-10-25-preview", - "Date": "Fri, 10 Jun 2022 20:52:46 GMT", - "MS-CV": "WAAgeV1Q40i47hFxochVgA.0", + "Date": "Thu, 07 Jul 2022 21:46:22 GMT", + "MS-CV": "FD0SufMksEuXlWM3Xf6CEA.0", "Strict-Transport-Security": "max-age=2592000", - "X-Azure-Ref": "0Hq\u002BjYgAAAADMrcuCWhRZQ6APVldWYDEYU0FPMzFFREdFMTIyMQBjYzkyNzU4ZC0wNWY3LTRhZDYtYWE1ZS0wZmE5NzE4ZDg5ODU=", + "X-Azure-Ref": "0LlTHYgAAAACaim/Yf63/TbphGThC9eFHU0FPMzFFREdFMTExNQBjYzkyNzU4ZC0wNWY3LTRhZDYtYWE1ZS0wZmE5NzE4ZDg5ODU=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "418ms" + "X-Processing-Time": "425ms" }, "ResponseBody": null }, @@ -194,10 +205,10 @@ "Sec-Fetch-Dest": "empty", "Sec-Fetch-Mode": "cors", "Sec-Fetch-Site": "same-site", - "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/102.0.5002.0 Safari/537.36", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/103.0.5058.0 Safari/537.36", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", - "x-ms-date": "Fri, 10 Jun 2022 20:52:48 GMT", + "x-ms-date": "Thu, 07 Jul 2022 21:46:24 GMT", "x-ms-useragent": "azsdk-js-communication-short-codes/1.0.0-beta.2 core-rest-pipeline/1.9.1 OS/Linuxx86_64" }, "RequestBody": null, @@ -205,13 +216,13 @@ "ResponseHeaders": { "api-supported-versions": "2021-10-25-preview", "Content-Type": "application/json", - "Date": "Fri, 10 Jun 2022 20:52:47 GMT", - "MS-CV": "R5ObAaO\u002BXUaGLNOPDthJPQ.0", + "Date": "Thu, 07 Jul 2022 21:46:24 GMT", + "MS-CV": "\u002BdK3hUIpLUemfS5qv97stQ.0", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0H6\u002BjYgAAAACTtHJyG1HSSIJH9raIsy49U0FPMzFFREdFMTIyMQBjYzkyNzU4ZC0wNWY3LTRhZDYtYWE1ZS0wZmE5NzE4ZDg5ODU=", + "X-Azure-Ref": "0L1THYgAAAAB\u002BfF5IiJmGSKxr3H8CB0gRU0FPMzFFREdFMTExNQBjYzkyNzU4ZC0wNWY3LTRhZDYtYWE1ZS0wZmE5NzE4ZDg5ODU=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "1038ms" + "X-Processing-Time": "1184ms" }, "ResponseBody": { "error": { @@ -229,7 +240,7 @@ "Accept-Language": "en-US", "Authorization": "Sanitized", "Connection": "keep-alive", - "Content-Length": "1997", + "Content-Length": "2038", "Content-Type": "application/merge-patch\u002Bjson", "Referer": "http://localhost:9876/", "sec-ch-ua": "", @@ -238,10 +249,10 @@ "Sec-Fetch-Dest": "empty", "Sec-Fetch-Mode": "cors", "Sec-Fetch-Site": "same-site", - "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/102.0.5002.0 Safari/537.36", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/103.0.5058.0 Safari/537.36", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-content-sha256": "zUYsBqzIkivIwozH0gZDy2m4Tm75n6y/f\u002BiGvnN8x8I=", - "x-ms-date": "Fri, 10 Jun 2022 20:52:49 GMT", + "x-ms-content-sha256": "WeoIh/ilgHWeWJA9Uh1c/dh2cqn1EmkgJMjuReNrBqI=", + "x-ms-date": "Thu, 07 Jul 2022 21:46:25 GMT", "x-ms-useragent": "azsdk-js-communication-short-codes/1.0.0-beta.2 core-rest-pipeline/1.9.1 OS/Linuxx86_64" }, "RequestBody": { @@ -253,11 +264,11 @@ "name": "Contoso Loyalty Program", "description": "TEST Customers can sign up to receive regular updates on coupons and other perks of our loyalty program.", "url": "https://endpoint/loyalty-program", - "signUpTypes": [ + "callToActionTypes": [ "sms", "website" ], - "signUpUrl": "https://contoso.com/sign-up", + "callToActionUrl": "https://contoso.com/sign-up", "termsOfServiceUrl": "https://contoso.com/terms", "privacyPolicyUrl": "https://contoso.com/privacy" }, @@ -276,19 +287,17 @@ } }, "messageDetails": { - "supportedProtocols": [ - "sms" - ], + "supportedProtocol": "sms", "recurrence": "subscription", - "helpMessage": "Send \u0027Stop\u0027 to unsubscribe, send \u0027Start\u0027 to resubscribe.", - "optOutMessage": "You\u0027ve been unsubscribed from these messages. Send \u0027Start\u0027 if you want to resubscribe.", - "optInMessage": "Someone requested to subscribe this number to receive updates about Contoso\u0027s loyalty program. To confirm subscription, reply to this message with \u0027JOIN\u0027", - "optInReply": "JOIN", - "confirmationMessage": "Congrats, you have been successfully subscribed to loyalty program updates. Welcome!", + "helpAnswerToUser": "Send \u0027Stop\u0027 to unsubscribe, send \u0027Start\u0027 to resubscribe.", + "optOutAnswerToUser": "You\u0027ve been unsubscribed from these messages. Send \u0027Start\u0027 if you want to resubscribe.", + "optInMessageToUser": "Someone requested to subscribe this number to receive updates about Contoso\u0027s loyalty program. To confirm subscription, reply to this message with \u0027JOIN\u0027", + "optInAnswerFromUser": "JOIN", + "optInConfirmationMessageToUser": "Congrats, you have been successfully subscribed to loyalty program updates. Welcome!", "directionality": "twoWay", "useCases": [ { - "contentCategory": "coupons", + "contentType": "marketingAndPromotion", "examples": [ { "messages": [ @@ -301,7 +310,7 @@ ] }, { - "contentCategory": "loyaltyProgram", + "contentType": "loyaltyProgram", "examples": [ { "messages": [ @@ -314,7 +323,7 @@ ] }, { - "contentCategory": "loyaltyProgramPointsPrizes", + "contentType": "sweepstakesOrContest", "examples": [ { "messages": [ @@ -337,17 +346,18 @@ "estimatedRampUpTimeInDays": 0 } }, - "StatusCode": 200, + "StatusCode": 201, "ResponseHeaders": { "api-supported-versions": "2021-10-25-preview", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 10 Jun 2022 20:53:07 GMT", - "MS-CV": "Vclvkymq8EqUzb8HdoAk\u002Bw.0", + "Date": "Thu, 07 Jul 2022 21:46:36 GMT", + "Location": "https://endpoint/shortCodes/countries/US/programBriefs/00000000-0000-0000-0000-000000000000", + "MS-CV": "bWhSvILogUG/2il4MiQ0iQ.0", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0IK\u002BjYgAAAACkYCmXaQooQrwsfUGlJUS6U0FPMzFFREdFMTIyMQBjYzkyNzU4ZC0wNWY3LTRhZDYtYWE1ZS0wZmE5NzE4ZDg5ODU=", + "X-Azure-Ref": "0MFTHYgAAAAD4Hy5fmkBgSZsxjzl8OQxhU0FPMzFFREdFMTExNQBjYzkyNzU4ZC0wNWY3LTRhZDYtYWE1ZS0wZmE5NzE4ZDg5ODU=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "18627ms" + "X-Processing-Time": "11962ms" }, "ResponseBody": { "id": "00000000-0000-0000-0000-000000000000", @@ -364,7 +374,7 @@ "billingFrequency": "monthly" } ], - "statusUpdatedDate": "2022-06-10T20:52:49\u002B00:00", + "statusUpdatedDate": "2022-07-07T21:46:26\u002B00:00", "programDetails": { "isVanity": false, "numberType": "shortCode", @@ -376,7 +386,12 @@ "sms", "website" ], + "callToActionTypes": [ + "sms", + "website" + ], "signUpUrl": "https://contoso.com/sign-up", + "callToActionUrl": "https://contoso.com/sign-up", "termsOfServiceUrl": "https://contoso.com/terms", "privacyPolicyUrl": "https://contoso.com/privacy" }, @@ -398,16 +413,22 @@ "supportedProtocols": [ "sms" ], + "supportedProtocol": "sms", "recurrence": "subscription", "helpMessage": "Send \u0027Stop\u0027 to unsubscribe, send \u0027Start\u0027 to resubscribe.", + "helpAnswerToUser": "Send \u0027Stop\u0027 to unsubscribe, send \u0027Start\u0027 to resubscribe.", "optOutMessage": "You\u0027ve been unsubscribed from these messages. Send \u0027Start\u0027 if you want to resubscribe.", + "optOutAnswerToUser": "You\u0027ve been unsubscribed from these messages. Send \u0027Start\u0027 if you want to resubscribe.", "optInMessage": "Someone requested to subscribe this number to receive updates about Contoso\u0027s loyalty program. To confirm subscription, reply to this message with \u0027JOIN\u0027", + "optInMessageToUser": "Someone requested to subscribe this number to receive updates about Contoso\u0027s loyalty program. To confirm subscription, reply to this message with \u0027JOIN\u0027", "optInReply": "JOIN", + "optInAnswerFromUser": "JOIN", "confirmationMessage": "Congrats, you have been successfully subscribed to loyalty program updates. Welcome!", + "optInConfirmationMessageToUser": "Congrats, you have been successfully subscribed to loyalty program updates. Welcome!", "directionality": "twoWay", "useCases": [ { - "contentCategory": "coupons", + "contentType": "marketingAndPromotion", "examples": [ { "messages": [ @@ -420,7 +441,7 @@ ] }, { - "contentCategory": "loyaltyProgram", + "contentType": "loyaltyProgram", "examples": [ { "messages": [ @@ -433,7 +454,7 @@ ] }, { - "contentCategory": "loyaltyProgramPointsPrizes", + "contentType": "sweepstakesOrContest", "examples": [ { "messages": [ @@ -473,10 +494,10 @@ "Sec-Fetch-Dest": "empty", "Sec-Fetch-Mode": "cors", "Sec-Fetch-Site": "same-site", - "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/102.0.5002.0 Safari/537.36", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/103.0.5058.0 Safari/537.36", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", - "x-ms-date": "Fri, 10 Jun 2022 20:53:08 GMT", + "x-ms-date": "Thu, 07 Jul 2022 21:46:37 GMT", "x-ms-useragent": "azsdk-js-communication-short-codes/1.0.0-beta.2 core-rest-pipeline/1.9.1 OS/Linuxx86_64" }, "RequestBody": null, @@ -484,18 +505,70 @@ "ResponseHeaders": { "api-supported-versions": "2021-10-25-preview", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 10 Jun 2022 20:53:07 GMT", - "MS-CV": "Zf1m8I3vJEmwgYvWzz4QXQ.0", + "Date": "Thu, 07 Jul 2022 21:46:36 GMT", + "MS-CV": "RDORBuHTjUKUkSJ4A/yhlg.0", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0M6\u002BjYgAAAAC4Lc1kHWIHRpjhz3BI3A2gU0FPMzFFREdFMTIyMQBjYzkyNzU4ZC0wNWY3LTRhZDYtYWE1ZS0wZmE5NzE4ZDg5ODU=", + "X-Azure-Ref": "0PVTHYgAAAAAh/HGsRKpRT5b/YO3IO\u002BErU0FPMzFFREdFMTExNQBjYzkyNzU4ZC0wNWY3LTRhZDYtYWE1ZS0wZmE5NzE4ZDg5ODU=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "397ms" + "X-Processing-Time": "332ms" }, "ResponseBody": { "attachments": [] } }, + { + "RequestUri": "https://endpoint/shortCodes/countries/US/programBriefs/00000000-0000-0000-0000-000000000000/attachments/00000000-0000-0000-0000-000000000000?api-version=2021-10-25-preview", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "329", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/103.0.5058.0 Safari/537.36", + "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", + "x-ms-content-sha256": "dFZZjyjvExBaJEYrYLSbKYrmglJWmonozcpgQcdJu6I=", + "x-ms-date": "Thu, 07 Jul 2022 21:46:38 GMT", + "x-ms-useragent": "azsdk-js-communication-short-codes/1.0.0-beta.2 core-rest-pipeline/1.9.1 OS/Linuxx86_64" + }, + "RequestBody": { + "id": "00000000-0000-0000-0000-000000000000", + "type": "callToAction", + "fileName": "testFriendlyName", + "fileType": "png", + "fileContentBase64": "iVBORw0KGgoAAAANSUhEUgAAAAYAAAAHCAIAAACk8qu6AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAALEoAACxKAXd6dE0AAAAjSURBVBhXY/iPAXALrVixorW1FcKGCgH5DAxQNklmIcD//wCoTHalyfy2/AAAAABJRU5ErkJggg==" + }, + "StatusCode": 201, + "ResponseHeaders": { + "api-supported-versions": "2021-10-25-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 07 Jul 2022 21:46:38 GMT", + "Location": "https://endpoint/shortCodes/countries/US/programBriefs/00000000-0000-0000-0000-000000000000/attachments/00000000-0000-0000-0000-000000000000", + "MS-CV": "IypzLyaiAU6BBBWdq9SrzA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0PVTHYgAAAACsCh2TXobKTYj14cQRKtbFU0FPMzFFREdFMTExNQBjYzkyNzU4ZC0wNWY3LTRhZDYtYWE1ZS0wZmE5NzE4ZDg5ODU=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1272ms" + }, + "ResponseBody": { + "id": "00000000-0000-0000-0000-000000000000", + "type": "callToAction", + "fileName": "testFriendlyName", + "fileSizeInBytes": 142, + "fileType": "png" + } + }, { "RequestUri": "https://endpoint/shortCodes/countries/US/programBriefs/00000000-0000-0000-0000-000000000000/attachments/00000000-0000-0000-0000-000000000000?api-version=2021-10-25-preview", "RequestMethod": "GET", @@ -512,34 +585,152 @@ "Sec-Fetch-Dest": "empty", "Sec-Fetch-Mode": "cors", "Sec-Fetch-Site": "same-site", - "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/102.0.5002.0 Safari/537.36", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/103.0.5058.0 Safari/537.36", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", - "x-ms-date": "Fri, 10 Jun 2022 20:53:09 GMT", + "x-ms-date": "Thu, 07 Jul 2022 21:46:39 GMT", "x-ms-useragent": "azsdk-js-communication-short-codes/1.0.0-beta.2 core-rest-pipeline/1.9.1 OS/Linuxx86_64" }, "RequestBody": null, - "StatusCode": 404, + "StatusCode": 200, "ResponseHeaders": { "api-supported-versions": "2021-10-25-preview", - "Content-Type": "application/json", - "Date": "Fri, 10 Jun 2022 20:53:08 GMT", - "MS-CV": "s8suWoIup06iriC3k8p/KA.0", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 07 Jul 2022 21:46:39 GMT", + "MS-CV": "dOsqGrbst0GKSzLsPeMBUw.0", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0NK\u002BjYgAAAAAdFsChzP0wSoqzkAEO74RLU0FPMzFFREdFMTIyMQBjYzkyNzU4ZC0wNWY3LTRhZDYtYWE1ZS0wZmE5NzE4ZDg5ODU=", + "X-Azure-Ref": "0P1THYgAAAADvJ2MtTJGdTZ1GjiwohaUSU0FPMzFFREdFMTExNQBjYzkyNzU4ZC0wNWY3LTRhZDYtYWE1ZS0wZmE5NzE4ZDg5ODU=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "412ms" + "X-Processing-Time": "335ms" }, "ResponseBody": { - "error": { - "code": "InternalError", - "message": "The server encountered an internal error.", - "innererror": { - "code": "NotFound", - "message": "Could not find attachment with Id 00000000-0000-0000-0000-000000000000" + "id": "00000000-0000-0000-0000-000000000000", + "type": "callToAction", + "fileName": "testFriendlyName", + "fileSizeInBytes": 142, + "fileType": "png" + } + }, + { + "RequestUri": "https://endpoint/shortCodes/countries/US/programBriefs/00000000-0000-0000-0000-000000000000/attachments?skip=0\u0026top=100\u0026api-version=2021-10-25-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/103.0.5058.0 Safari/537.36", + "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Thu, 07 Jul 2022 21:46:40 GMT", + "x-ms-useragent": "azsdk-js-communication-short-codes/1.0.0-beta.2 core-rest-pipeline/1.9.1 OS/Linuxx86_64" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-10-25-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 07 Jul 2022 21:46:39 GMT", + "MS-CV": "\u002BOn7DkVrpEiWCHKzxU8sSQ.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0P1THYgAAAADWqJ5nRYBcRI1ryPPegjnHU0FPMzFFREdFMTExNQBjYzkyNzU4ZC0wNWY3LTRhZDYtYWE1ZS0wZmE5NzE4ZDg5ODU=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "375ms" + }, + "ResponseBody": { + "attachments": [ + { + "id": "00000000-0000-0000-0000-000000000000", + "type": "callToAction", + "fileName": "testFriendlyName", + "fileSizeInBytes": 142, + "fileType": "png" } - } + ] + } + }, + { + "RequestUri": "https://endpoint/shortCodes/countries/US/programBriefs/00000000-0000-0000-0000-000000000000/attachments/00000000-0000-0000-0000-000000000000?api-version=2021-10-25-preview", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/103.0.5058.0 Safari/537.36", + "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Thu, 07 Jul 2022 21:46:40 GMT", + "x-ms-useragent": "azsdk-js-communication-short-codes/1.0.0-beta.2 core-rest-pipeline/1.9.1 OS/Linuxx86_64" + }, + "RequestBody": null, + "StatusCode": 204, + "ResponseHeaders": { + "api-supported-versions": "2021-10-25-preview", + "Date": "Thu, 07 Jul 2022 21:46:40 GMT", + "MS-CV": "e5b1fYvQQUiaDu4A0YBlOw.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0QFTHYgAAAAD2rQWoBByrSoAimQPdYQuLU0FPMzFFREdFMTExNQBjYzkyNzU4ZC0wNWY3LTRhZDYtYWE1ZS0wZmE5NzE4ZDg5ODU=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "840ms" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://endpoint/shortCodes/countries/US/programBriefs/00000000-0000-0000-0000-000000000000/attachments?skip=0\u0026top=100\u0026api-version=2021-10-25-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/103.0.5058.0 Safari/537.36", + "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Thu, 07 Jul 2022 21:46:41 GMT", + "x-ms-useragent": "azsdk-js-communication-short-codes/1.0.0-beta.2 core-rest-pipeline/1.9.1 OS/Linuxx86_64" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-10-25-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 07 Jul 2022 21:46:41 GMT", + "MS-CV": "uSXf6ks4\u002BEu/IsylzvLW0Q.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0QVTHYgAAAACtAL73DdG0TIOmnrLi6xOLU0FPMzFFREdFMTExNQBjYzkyNzU4ZC0wNWY3LTRhZDYtYWE1ZS0wZmE5NzE4ZDg5ODU=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "315ms" + }, + "ResponseBody": { + "attachments": [] } }, { @@ -558,22 +749,22 @@ "Sec-Fetch-Dest": "empty", "Sec-Fetch-Mode": "cors", "Sec-Fetch-Site": "same-site", - "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/102.0.5002.0 Safari/537.36", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/103.0.5058.0 Safari/537.36", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", - "x-ms-date": "Fri, 10 Jun 2022 20:53:09 GMT", + "x-ms-date": "Thu, 07 Jul 2022 21:46:42 GMT", "x-ms-useragent": "azsdk-js-communication-short-codes/1.0.0-beta.2 core-rest-pipeline/1.9.1 OS/Linuxx86_64" }, "RequestBody": null, "StatusCode": 204, "ResponseHeaders": { "api-supported-versions": "2021-10-25-preview", - "Date": "Fri, 10 Jun 2022 20:53:09 GMT", - "MS-CV": "mLknQHNCMEC\u002BXb9F69EmaA.0", + "Date": "Thu, 07 Jul 2022 21:46:41 GMT", + "MS-CV": "fytreJCleUquQFTqcp5OSg.0", "Strict-Transport-Security": "max-age=2592000", - "X-Azure-Ref": "0NK\u002BjYgAAAAB\u002BJEiG0theTr4oqwLn/a72U0FPMzFFREdFMTIyMQBjYzkyNzU4ZC0wNWY3LTRhZDYtYWE1ZS0wZmE5NzE4ZDg5ODU=", + "X-Azure-Ref": "0QVTHYgAAAAC7eMUMR8pJQrtZzmky4N0DU0FPMzFFREdFMTExNQBjYzkyNzU4ZC0wNWY3LTRhZDYtYWE1ZS0wZmE5NzE4ZDg5ODU=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "453ms" + "X-Processing-Time": "413ms" }, "ResponseBody": null }, @@ -593,10 +784,10 @@ "Sec-Fetch-Dest": "empty", "Sec-Fetch-Mode": "cors", "Sec-Fetch-Site": "same-site", - "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/102.0.5002.0 Safari/537.36", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/103.0.5058.0 Safari/537.36", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", - "x-ms-date": "Fri, 10 Jun 2022 20:53:10 GMT", + "x-ms-date": "Thu, 07 Jul 2022 21:46:43 GMT", "x-ms-useragent": "azsdk-js-communication-short-codes/1.0.0-beta.2 core-rest-pipeline/1.9.1 OS/Linuxx86_64" }, "RequestBody": null, @@ -604,13 +795,13 @@ "ResponseHeaders": { "api-supported-versions": "2021-10-25-preview", "Content-Type": "application/json", - "Date": "Fri, 10 Jun 2022 20:53:11 GMT", - "MS-CV": "fEFd4zjaOUSgb\u002B5fV9Wikw.0", + "Date": "Thu, 07 Jul 2022 21:46:43 GMT", + "MS-CV": "38clDWVcZ06W3mvv8OyDiQ.0", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0Na\u002BjYgAAAAD8ITC4SDDZSqfbm29Yw3C6U0FPMzFFREdFMTIyMQBjYzkyNzU4ZC0wNWY3LTRhZDYtYWE1ZS0wZmE5NzE4ZDg5ODU=", + "X-Azure-Ref": "0QlTHYgAAAABENkxhmi42Qry5KmckcdZ\u002BU0FPMzFFREdFMTExNQBjYzkyNzU4ZC0wNWY3LTRhZDYtYWE1ZS0wZmE5NzE4ZDg5ODU=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "1580ms" + "X-Processing-Time": "1405ms" }, "ResponseBody": { "error": { diff --git a/sdk/communication/communication-short-codes/recordings/browsers/shortcodesclient__updates_us_program_brief_using_upsert/recording_can_create_and_update_a_us_program_brief.json b/sdk/communication/communication-short-codes/recordings/browsers/shortcodesclient__updates_us_program_brief_using_upsert/recording_can_create_and_update_a_us_program_brief.json index dd864e27fbdd..9dec3dcc73ab 100644 --- a/sdk/communication/communication-short-codes/recordings/browsers/shortcodesclient__updates_us_program_brief_using_upsert/recording_can_create_and_update_a_us_program_brief.json +++ b/sdk/communication/communication-short-codes/recordings/browsers/shortcodesclient__updates_us_program_brief_using_upsert/recording_can_create_and_update_a_us_program_brief.json @@ -9,7 +9,7 @@ "Accept-Language": "en-US", "Authorization": "Sanitized", "Connection": "keep-alive", - "Content-Length": "1997", + "Content-Length": "2038", "Content-Type": "application/merge-patch\u002Bjson", "Referer": "http://localhost:9876/", "sec-ch-ua": "", @@ -18,11 +18,11 @@ "Sec-Fetch-Dest": "empty", "Sec-Fetch-Mode": "cors", "Sec-Fetch-Site": "same-site", - "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/102.0.5002.0 Safari/537.36", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/103.0.5058.0 Safari/537.36", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-content-sha256": "zUYsBqzIkivIwozH0gZDy2m4Tm75n6y/f\u002BiGvnN8x8I=", - "x-ms-date": "Fri, 27 May 2022 16:48:35 GMT", - "x-ms-useragent": "azsdk-js-communication-short-codes/1.0.0-beta.2 core-rest-pipeline/1.8.2 OS/Linuxx86_64" + "x-ms-content-sha256": "WeoIh/ilgHWeWJA9Uh1c/dh2cqn1EmkgJMjuReNrBqI=", + "x-ms-date": "Thu, 07 Jul 2022 21:46:07 GMT", + "x-ms-useragent": "azsdk-js-communication-short-codes/1.0.0-beta.2 core-rest-pipeline/1.9.1 OS/Linuxx86_64" }, "RequestBody": { "id": "00000000-0000-0000-0000-000000000000", @@ -33,11 +33,11 @@ "name": "Contoso Loyalty Program", "description": "TEST Customers can sign up to receive regular updates on coupons and other perks of our loyalty program.", "url": "https://endpoint/loyalty-program", - "signUpTypes": [ + "callToActionTypes": [ "sms", "website" ], - "signUpUrl": "https://contoso.com/sign-up", + "callToActionUrl": "https://contoso.com/sign-up", "termsOfServiceUrl": "https://contoso.com/terms", "privacyPolicyUrl": "https://contoso.com/privacy" }, @@ -56,19 +56,17 @@ } }, "messageDetails": { - "supportedProtocols": [ - "sms" - ], + "supportedProtocol": "sms", "recurrence": "subscription", - "helpMessage": "Send \u0027Stop\u0027 to unsubscribe, send \u0027Start\u0027 to resubscribe.", - "optOutMessage": "You\u0027ve been unsubscribed from these messages. Send \u0027Start\u0027 if you want to resubscribe.", - "optInMessage": "Someone requested to subscribe this number to receive updates about Contoso\u0027s loyalty program. To confirm subscription, reply to this message with \u0027JOIN\u0027", - "optInReply": "JOIN", - "confirmationMessage": "Congrats, you have been successfully subscribed to loyalty program updates. Welcome!", + "helpAnswerToUser": "Send \u0027Stop\u0027 to unsubscribe, send \u0027Start\u0027 to resubscribe.", + "optOutAnswerToUser": "You\u0027ve been unsubscribed from these messages. Send \u0027Start\u0027 if you want to resubscribe.", + "optInMessageToUser": "Someone requested to subscribe this number to receive updates about Contoso\u0027s loyalty program. To confirm subscription, reply to this message with \u0027JOIN\u0027", + "optInAnswerFromUser": "JOIN", + "optInConfirmationMessageToUser": "Congrats, you have been successfully subscribed to loyalty program updates. Welcome!", "directionality": "twoWay", "useCases": [ { - "contentCategory": "coupons", + "contentType": "marketingAndPromotion", "examples": [ { "messages": [ @@ -81,7 +79,7 @@ ] }, { - "contentCategory": "loyaltyProgram", + "contentType": "loyaltyProgram", "examples": [ { "messages": [ @@ -94,7 +92,7 @@ ] }, { - "contentCategory": "loyaltyProgramPointsPrizes", + "contentType": "sweepstakesOrContest", "examples": [ { "messages": [ @@ -121,14 +119,14 @@ "ResponseHeaders": { "api-supported-versions": "2021-10-25-preview", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 27 May 2022 16:48:38 GMT", + "Date": "Thu, 07 Jul 2022 21:46:18 GMT", "Location": "https://endpoint/shortCodes/countries/US/programBriefs/00000000-0000-0000-0000-000000000000", - "MS-CV": "Yn5UfOxxd0O8sKs1ejWmFw.0", + "MS-CV": "OTwyqEkdCEKdjQ/5hOT3PA.0", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "05QCRYgAAAAAV9kzaCWINR5GZUPpoot2BTUVYMzBFREdFMDQxMwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0H1THYgAAAAC8aT\u002BROxpvRpV5RRG5wDYEU0FPMzFFREdFMTExNQBjYzkyNzU4ZC0wNWY3LTRhZDYtYWE1ZS0wZmE5NzE4ZDg5ODU=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "1941ms" + "X-Processing-Time": "11490ms" }, "ResponseBody": { "id": "00000000-0000-0000-0000-000000000000", @@ -145,7 +143,7 @@ "billingFrequency": "monthly" } ], - "statusUpdatedDate": "2022-05-27T16:48:39\u002B00:00", + "statusUpdatedDate": "2022-07-07T21:46:08\u002B00:00", "programDetails": { "isVanity": false, "numberType": "shortCode", @@ -157,7 +155,12 @@ "sms", "website" ], + "callToActionTypes": [ + "sms", + "website" + ], "signUpUrl": "https://contoso.com/sign-up", + "callToActionUrl": "https://contoso.com/sign-up", "termsOfServiceUrl": "https://contoso.com/terms", "privacyPolicyUrl": "https://contoso.com/privacy" }, @@ -179,16 +182,22 @@ "supportedProtocols": [ "sms" ], + "supportedProtocol": "sms", "recurrence": "subscription", "helpMessage": "Send \u0027Stop\u0027 to unsubscribe, send \u0027Start\u0027 to resubscribe.", + "helpAnswerToUser": "Send \u0027Stop\u0027 to unsubscribe, send \u0027Start\u0027 to resubscribe.", "optOutMessage": "You\u0027ve been unsubscribed from these messages. Send \u0027Start\u0027 if you want to resubscribe.", + "optOutAnswerToUser": "You\u0027ve been unsubscribed from these messages. Send \u0027Start\u0027 if you want to resubscribe.", "optInMessage": "Someone requested to subscribe this number to receive updates about Contoso\u0027s loyalty program. To confirm subscription, reply to this message with \u0027JOIN\u0027", + "optInMessageToUser": "Someone requested to subscribe this number to receive updates about Contoso\u0027s loyalty program. To confirm subscription, reply to this message with \u0027JOIN\u0027", "optInReply": "JOIN", + "optInAnswerFromUser": "JOIN", "confirmationMessage": "Congrats, you have been successfully subscribed to loyalty program updates. Welcome!", + "optInConfirmationMessageToUser": "Congrats, you have been successfully subscribed to loyalty program updates. Welcome!", "directionality": "twoWay", "useCases": [ { - "contentCategory": "coupons", + "contentType": "marketingAndPromotion", "examples": [ { "messages": [ @@ -201,7 +210,7 @@ ] }, { - "contentCategory": "loyaltyProgram", + "contentType": "loyaltyProgram", "examples": [ { "messages": [ @@ -214,7 +223,7 @@ ] }, { - "contentCategory": "loyaltyProgramPointsPrizes", + "contentType": "sweepstakesOrContest", "examples": [ { "messages": [ @@ -247,7 +256,7 @@ "Accept-Language": "en-US", "Authorization": "Sanitized", "Connection": "keep-alive", - "Content-Length": "1904", + "Content-Length": "1945", "Content-Type": "application/merge-patch\u002Bjson", "Referer": "http://localhost:9876/", "sec-ch-ua": "", @@ -256,11 +265,11 @@ "Sec-Fetch-Dest": "empty", "Sec-Fetch-Mode": "cors", "Sec-Fetch-Site": "same-site", - "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/102.0.5002.0 Safari/537.36", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/103.0.5058.0 Safari/537.36", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-content-sha256": "oBmmAyZv3RIpcK71leZKCjuq5hbM814JhuDb4DtlCeE=", - "x-ms-date": "Fri, 27 May 2022 16:48:38 GMT", - "x-ms-useragent": "azsdk-js-communication-short-codes/1.0.0-beta.2 core-rest-pipeline/1.8.2 OS/Linuxx86_64" + "x-ms-content-sha256": "9UeM8KvRV9BO/tK\u002Bj1nMxbsqw8fh7SLRjt4gGtGyark=", + "x-ms-date": "Thu, 07 Jul 2022 21:46:19 GMT", + "x-ms-useragent": "azsdk-js-communication-short-codes/1.0.0-beta.2 core-rest-pipeline/1.9.1 OS/Linuxx86_64" }, "RequestBody": { "id": "00000000-0000-0000-0000-000000000000", @@ -271,11 +280,11 @@ "name": "Contoso Loyalty Program", "description": "TEST UPDATE", "url": "https://endpoint/loyalty-program", - "signUpTypes": [ + "callToActionTypes": [ "sms", "website" ], - "signUpUrl": "https://contoso.com/sign-up", + "callToActionUrl": "https://contoso.com/sign-up", "termsOfServiceUrl": "https://contoso.com/terms", "privacyPolicyUrl": "https://contoso.com/privacy" }, @@ -294,19 +303,17 @@ } }, "messageDetails": { - "supportedProtocols": [ - "sms" - ], + "supportedProtocol": "sms", "recurrence": "subscription", - "helpMessage": "Send \u0027Stop\u0027 to unsubscribe, send \u0027Start\u0027 to resubscribe.", - "optOutMessage": "You\u0027ve been unsubscribed from these messages. Send \u0027Start\u0027 if you want to resubscribe.", - "optInMessage": "Someone requested to subscribe this number to receive updates about Contoso\u0027s loyalty program. To confirm subscription, reply to this message with \u0027JOIN\u0027", - "optInReply": "JOIN", - "confirmationMessage": "Congrats, you have been successfully subscribed to loyalty program updates. Welcome!", + "helpAnswerToUser": "Send \u0027Stop\u0027 to unsubscribe, send \u0027Start\u0027 to resubscribe.", + "optOutAnswerToUser": "You\u0027ve been unsubscribed from these messages. Send \u0027Start\u0027 if you want to resubscribe.", + "optInMessageToUser": "Someone requested to subscribe this number to receive updates about Contoso\u0027s loyalty program. To confirm subscription, reply to this message with \u0027JOIN\u0027", + "optInAnswerFromUser": "JOIN", + "optInConfirmationMessageToUser": "Congrats, you have been successfully subscribed to loyalty program updates. Welcome!", "directionality": "twoWay", "useCases": [ { - "contentCategory": "coupons", + "contentType": "marketingAndPromotion", "examples": [ { "messages": [ @@ -319,7 +326,7 @@ ] }, { - "contentCategory": "loyaltyProgram", + "contentType": "loyaltyProgram", "examples": [ { "messages": [ @@ -332,7 +339,7 @@ ] }, { - "contentCategory": "loyaltyProgramPointsPrizes", + "contentType": "sweepstakesOrContest", "examples": [ { "messages": [ @@ -359,13 +366,13 @@ "ResponseHeaders": { "api-supported-versions": "2021-10-25-preview", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 27 May 2022 16:48:40 GMT", - "MS-CV": "L23nepJ2hkyCiV/AxG29aQ.0", + "Date": "Thu, 07 Jul 2022 21:46:19 GMT", + "MS-CV": "Xig40AzCS0mkxR25Pqkvug.0", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "05wCRYgAAAAAJIuokTxruRbVSmbySZusWTUVYMzBFREdFMDQxMwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0KlTHYgAAAAA8zoG9ztp9RJEpcx8rtbl0U0FPMzFFREdFMTExNQBjYzkyNzU4ZC0wNWY3LTRhZDYtYWE1ZS0wZmE5NzE4ZDg5ODU=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "1576ms" + "X-Processing-Time": "1598ms" }, "ResponseBody": { "id": "00000000-0000-0000-0000-000000000000", @@ -382,7 +389,7 @@ "billingFrequency": "monthly" } ], - "statusUpdatedDate": "2022-05-27T16:48:39\u002B00:00", + "statusUpdatedDate": "2022-07-07T21:46:08\u002B00:00", "programDetails": { "isVanity": false, "numberType": "shortCode", @@ -394,7 +401,12 @@ "sms", "website" ], + "callToActionTypes": [ + "sms", + "website" + ], "signUpUrl": "https://contoso.com/sign-up", + "callToActionUrl": "https://contoso.com/sign-up", "termsOfServiceUrl": "https://contoso.com/terms", "privacyPolicyUrl": "https://contoso.com/privacy" }, @@ -416,16 +428,22 @@ "supportedProtocols": [ "sms" ], + "supportedProtocol": "sms", "recurrence": "subscription", "helpMessage": "Send \u0027Stop\u0027 to unsubscribe, send \u0027Start\u0027 to resubscribe.", + "helpAnswerToUser": "Send \u0027Stop\u0027 to unsubscribe, send \u0027Start\u0027 to resubscribe.", "optOutMessage": "You\u0027ve been unsubscribed from these messages. Send \u0027Start\u0027 if you want to resubscribe.", + "optOutAnswerToUser": "You\u0027ve been unsubscribed from these messages. Send \u0027Start\u0027 if you want to resubscribe.", "optInMessage": "Someone requested to subscribe this number to receive updates about Contoso\u0027s loyalty program. To confirm subscription, reply to this message with \u0027JOIN\u0027", + "optInMessageToUser": "Someone requested to subscribe this number to receive updates about Contoso\u0027s loyalty program. To confirm subscription, reply to this message with \u0027JOIN\u0027", "optInReply": "JOIN", + "optInAnswerFromUser": "JOIN", "confirmationMessage": "Congrats, you have been successfully subscribed to loyalty program updates. Welcome!", + "optInConfirmationMessageToUser": "Congrats, you have been successfully subscribed to loyalty program updates. Welcome!", "directionality": "twoWay", "useCases": [ { - "contentCategory": "coupons", + "contentType": "marketingAndPromotion", "examples": [ { "messages": [ @@ -438,7 +456,7 @@ ] }, { - "contentCategory": "loyaltyProgram", + "contentType": "loyaltyProgram", "examples": [ { "messages": [ @@ -451,7 +469,7 @@ ] }, { - "contentCategory": "loyaltyProgramPointsPrizes", + "contentType": "sweepstakesOrContest", "examples": [ { "messages": [ diff --git a/sdk/communication/communication-short-codes/recordings/node/shortcodesclient__creates_gets_updates_lists_and_deletes_us_program_brief/recording_can_create_get_update_list_and_delete_a_us_program_brief.json b/sdk/communication/communication-short-codes/recordings/node/shortcodesclient__creates_gets_updates_lists_and_deletes_us_program_brief/recording_can_create_get_update_list_and_delete_a_us_program_brief.json index 0e1a8b6bb2fe..1715447f64fc 100644 --- a/sdk/communication/communication-short-codes/recordings/node/shortcodesclient__creates_gets_updates_lists_and_deletes_us_program_brief/recording_can_create_get_update_list_and_delete_a_us_program_brief.json +++ b/sdk/communication/communication-short-codes/recordings/node/shortcodesclient__creates_gets_updates_lists_and_deletes_us_program_brief/recording_can_create_get_update_list_and_delete_a_us_program_brief.json @@ -8,23 +8,23 @@ "Accept-Encoding": "gzip,deflate", "Authorization": "Sanitized", "Connection": "keep-alive", - "User-Agent": "azsdk-js-communication-short-codes/1.0.0-beta.2 core-rest-pipeline/1.8.2 Node/v16.15.0 OS/(x64-Linux-5.10.102.1-microsoft-standard-WSL2)", + "User-Agent": "azsdk-js-communication-short-codes/1.0.0-beta.2 core-rest-pipeline/1.9.1 Node/v17.8.0 OS/(x64-Linux-5.10.102.1-microsoft-standard-WSL2)", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", - "x-ms-date": "Fri, 27 May 2022 16:48:18 GMT" + "x-ms-date": "Thu, 07 Jul 2022 21:45:28 GMT" }, "RequestBody": null, "StatusCode": 404, "ResponseHeaders": { "api-supported-versions": "2021-10-25-preview", "Content-Type": "application/json", - "Date": "Fri, 27 May 2022 16:48:20 GMT", - "MS-CV": "MaZDC8QGm0KreIaWRl48vQ.0", + "Date": "Thu, 07 Jul 2022 21:45:29 GMT", + "MS-CV": "hYR2nawQ80mW8DyJK9AoPg.0", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "00wCRYgAAAAA8PKQ6iUt6SomH9DG/XGoaTUVYMzBFREdFMDQxMAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0\u002BFPHYgAAAAAeIgn8hrabTYoFt8KrZvW5U0FPMzFFREdFMTIyMQBjYzkyNzU4ZC0wNWY3LTRhZDYtYWE1ZS0wZmE5NzE4ZDg5ODU=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "1310ms" + "X-Processing-Time": "1238ms" }, "ResponseBody": { "error": { @@ -41,12 +41,12 @@ "Accept-Encoding": "gzip,deflate", "Authorization": "Sanitized", "Connection": "keep-alive", - "Content-Length": "1997", + "Content-Length": "2038", "Content-Type": "application/merge-patch\u002Bjson", - "User-Agent": "azsdk-js-communication-short-codes/1.0.0-beta.2 core-rest-pipeline/1.8.2 Node/v16.15.0 OS/(x64-Linux-5.10.102.1-microsoft-standard-WSL2)", + "User-Agent": "azsdk-js-communication-short-codes/1.0.0-beta.2 core-rest-pipeline/1.9.1 Node/v17.8.0 OS/(x64-Linux-5.10.102.1-microsoft-standard-WSL2)", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-content-sha256": "zUYsBqzIkivIwozH0gZDy2m4Tm75n6y/f\u002BiGvnN8x8I=", - "x-ms-date": "Fri, 27 May 2022 16:48:19 GMT" + "x-ms-content-sha256": "WeoIh/ilgHWeWJA9Uh1c/dh2cqn1EmkgJMjuReNrBqI=", + "x-ms-date": "Thu, 07 Jul 2022 21:45:30 GMT" }, "RequestBody": { "id": "00000000-0000-0000-0000-000000000000", @@ -57,11 +57,11 @@ "name": "Contoso Loyalty Program", "description": "TEST Customers can sign up to receive regular updates on coupons and other perks of our loyalty program.", "url": "https://endpoint/loyalty-program", - "signUpTypes": [ + "callToActionTypes": [ "sms", "website" ], - "signUpUrl": "https://contoso.com/sign-up", + "callToActionUrl": "https://contoso.com/sign-up", "termsOfServiceUrl": "https://contoso.com/terms", "privacyPolicyUrl": "https://contoso.com/privacy" }, @@ -80,19 +80,17 @@ } }, "messageDetails": { - "supportedProtocols": [ - "sms" - ], + "supportedProtocol": "sms", "recurrence": "subscription", - "helpMessage": "Send \u0027Stop\u0027 to unsubscribe, send \u0027Start\u0027 to resubscribe.", - "optOutMessage": "You\u0027ve been unsubscribed from these messages. Send \u0027Start\u0027 if you want to resubscribe.", - "optInMessage": "Someone requested to subscribe this number to receive updates about Contoso\u0027s loyalty program. To confirm subscription, reply to this message with \u0027JOIN\u0027", - "optInReply": "JOIN", - "confirmationMessage": "Congrats, you have been successfully subscribed to loyalty program updates. Welcome!", + "helpAnswerToUser": "Send \u0027Stop\u0027 to unsubscribe, send \u0027Start\u0027 to resubscribe.", + "optOutAnswerToUser": "You\u0027ve been unsubscribed from these messages. Send \u0027Start\u0027 if you want to resubscribe.", + "optInMessageToUser": "Someone requested to subscribe this number to receive updates about Contoso\u0027s loyalty program. To confirm subscription, reply to this message with \u0027JOIN\u0027", + "optInAnswerFromUser": "JOIN", + "optInConfirmationMessageToUser": "Congrats, you have been successfully subscribed to loyalty program updates. Welcome!", "directionality": "twoWay", "useCases": [ { - "contentCategory": "coupons", + "contentType": "marketingAndPromotion", "examples": [ { "messages": [ @@ -105,7 +103,7 @@ ] }, { - "contentCategory": "loyaltyProgram", + "contentType": "loyaltyProgram", "examples": [ { "messages": [ @@ -118,7 +116,7 @@ ] }, { - "contentCategory": "loyaltyProgramPointsPrizes", + "contentType": "sweepstakesOrContest", "examples": [ { "messages": [ @@ -145,14 +143,14 @@ "ResponseHeaders": { "api-supported-versions": "2021-10-25-preview", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 27 May 2022 16:48:22 GMT", + "Date": "Thu, 07 Jul 2022 21:45:38 GMT", "Location": "https://endpoint/shortCodes/countries/US/programBriefs/00000000-0000-0000-0000-000000000000", - "MS-CV": "8zyfhc7YG0inS0JlR/cuvA.0", + "MS-CV": "8cH7Mmlg40mQWj3H9Ed/sQ.0", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "01QCRYgAAAADWy6cpsmG4Sbvl8k0cPg0JTUVYMzBFREdFMDQxMAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0\u002BVPHYgAAAACn0p/dDSpNT4cDZ\u002BWdf7woU0FPMzFFREdFMTIyMQBjYzkyNzU4ZC0wNWY3LTRhZDYtYWE1ZS0wZmE5NzE4ZDg5ODU=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "1555ms" + "X-Processing-Time": "9508ms" }, "ResponseBody": { "id": "00000000-0000-0000-0000-000000000000", @@ -169,7 +167,7 @@ "billingFrequency": "monthly" } ], - "statusUpdatedDate": "2022-05-27T16:48:22\u002B00:00", + "statusUpdatedDate": "2022-07-07T21:45:30\u002B00:00", "programDetails": { "isVanity": false, "numberType": "shortCode", @@ -181,7 +179,12 @@ "sms", "website" ], + "callToActionTypes": [ + "sms", + "website" + ], "signUpUrl": "https://contoso.com/sign-up", + "callToActionUrl": "https://contoso.com/sign-up", "termsOfServiceUrl": "https://contoso.com/terms", "privacyPolicyUrl": "https://contoso.com/privacy" }, @@ -203,16 +206,22 @@ "supportedProtocols": [ "sms" ], + "supportedProtocol": "sms", "recurrence": "subscription", "helpMessage": "Send \u0027Stop\u0027 to unsubscribe, send \u0027Start\u0027 to resubscribe.", + "helpAnswerToUser": "Send \u0027Stop\u0027 to unsubscribe, send \u0027Start\u0027 to resubscribe.", "optOutMessage": "You\u0027ve been unsubscribed from these messages. Send \u0027Start\u0027 if you want to resubscribe.", + "optOutAnswerToUser": "You\u0027ve been unsubscribed from these messages. Send \u0027Start\u0027 if you want to resubscribe.", "optInMessage": "Someone requested to subscribe this number to receive updates about Contoso\u0027s loyalty program. To confirm subscription, reply to this message with \u0027JOIN\u0027", + "optInMessageToUser": "Someone requested to subscribe this number to receive updates about Contoso\u0027s loyalty program. To confirm subscription, reply to this message with \u0027JOIN\u0027", "optInReply": "JOIN", + "optInAnswerFromUser": "JOIN", "confirmationMessage": "Congrats, you have been successfully subscribed to loyalty program updates. Welcome!", + "optInConfirmationMessageToUser": "Congrats, you have been successfully subscribed to loyalty program updates. Welcome!", "directionality": "twoWay", "useCases": [ { - "contentCategory": "coupons", + "contentType": "marketingAndPromotion", "examples": [ { "messages": [ @@ -225,7 +234,7 @@ ] }, { - "contentCategory": "loyaltyProgram", + "contentType": "loyaltyProgram", "examples": [ { "messages": [ @@ -238,7 +247,7 @@ ] }, { - "contentCategory": "loyaltyProgramPointsPrizes", + "contentType": "sweepstakesOrContest", "examples": [ { "messages": [ @@ -270,23 +279,23 @@ "Accept-Encoding": "gzip,deflate", "Authorization": "Sanitized", "Connection": "keep-alive", - "User-Agent": "azsdk-js-communication-short-codes/1.0.0-beta.2 core-rest-pipeline/1.8.2 Node/v16.15.0 OS/(x64-Linux-5.10.102.1-microsoft-standard-WSL2)", + "User-Agent": "azsdk-js-communication-short-codes/1.0.0-beta.2 core-rest-pipeline/1.9.1 Node/v17.8.0 OS/(x64-Linux-5.10.102.1-microsoft-standard-WSL2)", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", - "x-ms-date": "Fri, 27 May 2022 16:48:21 GMT" + "x-ms-date": "Thu, 07 Jul 2022 21:45:39 GMT" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "api-supported-versions": "2021-10-25-preview", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 27 May 2022 16:48:23 GMT", - "MS-CV": "JyJSaUABLEWtDhDje6xX6w.0", + "Date": "Thu, 07 Jul 2022 21:45:40 GMT", + "MS-CV": "M78mWfIr4kakSFccOxf45w.0", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "01gCRYgAAAAAu3iFtcJVsSritxI0fdk48TUVYMzBFREdFMDQxMAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0A1THYgAAAABskUaKoIhtTZ5DZpXRwKTgU0FPMzFFREdFMTIyMQBjYzkyNzU4ZC0wNWY3LTRhZDYtYWE1ZS0wZmE5NzE4ZDg5ODU=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "1344ms" + "X-Processing-Time": "1028ms" }, "ResponseBody": { "id": "00000000-0000-0000-0000-000000000000", @@ -303,7 +312,7 @@ "billingFrequency": "monthly" } ], - "statusUpdatedDate": "2022-05-27T16:48:22\u002B00:00", + "statusUpdatedDate": "2022-07-07T21:45:30\u002B00:00", "programDetails": { "isVanity": false, "numberType": "shortCode", @@ -315,7 +324,12 @@ "sms", "website" ], + "callToActionTypes": [ + "sms", + "website" + ], "signUpUrl": "https://contoso.com/sign-up", + "callToActionUrl": "https://contoso.com/sign-up", "termsOfServiceUrl": "https://contoso.com/terms", "privacyPolicyUrl": "https://contoso.com/privacy" }, @@ -337,16 +351,22 @@ "supportedProtocols": [ "sms" ], + "supportedProtocol": "sms", "recurrence": "subscription", "helpMessage": "Send \u0027Stop\u0027 to unsubscribe, send \u0027Start\u0027 to resubscribe.", + "helpAnswerToUser": "Send \u0027Stop\u0027 to unsubscribe, send \u0027Start\u0027 to resubscribe.", "optOutMessage": "You\u0027ve been unsubscribed from these messages. Send \u0027Start\u0027 if you want to resubscribe.", + "optOutAnswerToUser": "You\u0027ve been unsubscribed from these messages. Send \u0027Start\u0027 if you want to resubscribe.", "optInMessage": "Someone requested to subscribe this number to receive updates about Contoso\u0027s loyalty program. To confirm subscription, reply to this message with \u0027JOIN\u0027", + "optInMessageToUser": "Someone requested to subscribe this number to receive updates about Contoso\u0027s loyalty program. To confirm subscription, reply to this message with \u0027JOIN\u0027", "optInReply": "JOIN", + "optInAnswerFromUser": "JOIN", "confirmationMessage": "Congrats, you have been successfully subscribed to loyalty program updates. Welcome!", + "optInConfirmationMessageToUser": "Congrats, you have been successfully subscribed to loyalty program updates. Welcome!", "directionality": "twoWay", "useCases": [ { - "contentCategory": "coupons", + "contentType": "marketingAndPromotion", "examples": [ { "messages": [ @@ -359,7 +379,7 @@ ] }, { - "contentCategory": "loyaltyProgram", + "contentType": "loyaltyProgram", "examples": [ { "messages": [ @@ -372,7 +392,7 @@ ] }, { - "contentCategory": "loyaltyProgramPointsPrizes", + "contentType": "sweepstakesOrContest", "examples": [ { "messages": [ @@ -404,17 +424,17 @@ "Accept-Encoding": "gzip,deflate", "Authorization": "Sanitized", "Connection": "keep-alive", - "Content-Length": "218", + "Content-Length": "224", "Content-Type": "application/merge-patch\u002Bjson", - "User-Agent": "azsdk-js-communication-short-codes/1.0.0-beta.2 core-rest-pipeline/1.8.2 Node/v16.15.0 OS/(x64-Linux-5.10.102.1-microsoft-standard-WSL2)", + "User-Agent": "azsdk-js-communication-short-codes/1.0.0-beta.2 core-rest-pipeline/1.9.1 Node/v17.8.0 OS/(x64-Linux-5.10.102.1-microsoft-standard-WSL2)", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-content-sha256": "qdGu60R8mzjtXGveBrBIei/w0E1xpahVo2Bm7owJ0AY=", - "x-ms-date": "Fri, 27 May 2022 16:48:22 GMT" + "x-ms-content-sha256": "\u002BBnVLOOjRM5xLtHwFZe9gvYWOgAugd0lDwMgB6gOm1g=", + "x-ms-date": "Thu, 07 Jul 2022 21:45:40 GMT" }, "RequestBody": { "id": "00000000-0000-0000-0000-000000000000", "programDetails": { - "signUpUrl": "https://endpoint/updated-sign-up", + "callToActionUrl": "https://endpoint/updated-sign-up", "termsOfServiceUrl": "https://endpoint/updated-terms", "privacyPolicyUrl": "https://endpoint/updated-privacy" } @@ -423,13 +443,13 @@ "ResponseHeaders": { "api-supported-versions": "2021-10-25-preview", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 27 May 2022 16:48:25 GMT", - "MS-CV": "u//uBZkG50O4bnZSwHWb6g.0", + "Date": "Thu, 07 Jul 2022 21:45:41 GMT", + "MS-CV": "eS4VAMRsHEiRAWLJMG0FiQ.0", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "02ACRYgAAAADGZ99whsHBSreGL6O046HFTUVYMzBFREdFMDQxMAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0BFTHYgAAAABKfedmtQxWRb45pPG8PwLUU0FPMzFFREdFMTIyMQBjYzkyNzU4ZC0wNWY3LTRhZDYtYWE1ZS0wZmE5NzE4ZDg5ODU=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "1590ms" + "X-Processing-Time": "1096ms" }, "ResponseBody": { "id": "00000000-0000-0000-0000-000000000000", @@ -446,7 +466,7 @@ "billingFrequency": "monthly" } ], - "statusUpdatedDate": "2022-05-27T16:48:22\u002B00:00", + "statusUpdatedDate": "2022-07-07T21:45:30\u002B00:00", "programDetails": { "isVanity": false, "numberType": "shortCode", @@ -458,7 +478,12 @@ "sms", "website" ], + "callToActionTypes": [ + "sms", + "website" + ], "signUpUrl": "https://endpoint/updated-sign-up", + "callToActionUrl": "https://endpoint/updated-sign-up", "termsOfServiceUrl": "https://endpoint/updated-terms", "privacyPolicyUrl": "https://endpoint/updated-privacy" }, @@ -480,16 +505,22 @@ "supportedProtocols": [ "sms" ], + "supportedProtocol": "sms", "recurrence": "subscription", "helpMessage": "Send \u0027Stop\u0027 to unsubscribe, send \u0027Start\u0027 to resubscribe.", + "helpAnswerToUser": "Send \u0027Stop\u0027 to unsubscribe, send \u0027Start\u0027 to resubscribe.", "optOutMessage": "You\u0027ve been unsubscribed from these messages. Send \u0027Start\u0027 if you want to resubscribe.", + "optOutAnswerToUser": "You\u0027ve been unsubscribed from these messages. Send \u0027Start\u0027 if you want to resubscribe.", "optInMessage": "Someone requested to subscribe this number to receive updates about Contoso\u0027s loyalty program. To confirm subscription, reply to this message with \u0027JOIN\u0027", + "optInMessageToUser": "Someone requested to subscribe this number to receive updates about Contoso\u0027s loyalty program. To confirm subscription, reply to this message with \u0027JOIN\u0027", "optInReply": "JOIN", + "optInAnswerFromUser": "JOIN", "confirmationMessage": "Congrats, you have been successfully subscribed to loyalty program updates. Welcome!", + "optInConfirmationMessageToUser": "Congrats, you have been successfully subscribed to loyalty program updates. Welcome!", "directionality": "twoWay", "useCases": [ { - "contentCategory": "coupons", + "contentType": "marketingAndPromotion", "examples": [ { "messages": [ @@ -502,7 +533,7 @@ ] }, { - "contentCategory": "loyaltyProgram", + "contentType": "loyaltyProgram", "examples": [ { "messages": [ @@ -515,7 +546,7 @@ ] }, { - "contentCategory": "loyaltyProgramPointsPrizes", + "contentType": "sweepstakesOrContest", "examples": [ { "messages": [ @@ -547,23 +578,23 @@ "Accept-Encoding": "gzip,deflate", "Authorization": "Sanitized", "Connection": "keep-alive", - "User-Agent": "azsdk-js-communication-short-codes/1.0.0-beta.2 core-rest-pipeline/1.8.2 Node/v16.15.0 OS/(x64-Linux-5.10.102.1-microsoft-standard-WSL2)", + "User-Agent": "azsdk-js-communication-short-codes/1.0.0-beta.2 core-rest-pipeline/1.9.1 Node/v17.8.0 OS/(x64-Linux-5.10.102.1-microsoft-standard-WSL2)", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", - "x-ms-date": "Fri, 27 May 2022 16:48:24 GMT" + "x-ms-date": "Thu, 07 Jul 2022 21:45:42 GMT" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "api-supported-versions": "2021-10-25-preview", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 27 May 2022 16:48:27 GMT", - "MS-CV": "LdeLECaLJ0K2J787TzK3Xg.0", + "Date": "Thu, 07 Jul 2022 21:45:43 GMT", + "MS-CV": "ZCGm1GnOlU6WCA3aF4zvGA.0", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "02QCRYgAAAAA43tHcJCuZSY98sDlsM/rCTUVYMzBFREdFMDQxMAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0BVTHYgAAAAAyGQSqwfijRo9APVFNpKDXU0FPMzFFREdFMTIyMQBjYzkyNzU4ZC0wNWY3LTRhZDYtYWE1ZS0wZmE5NzE4ZDg5ODU=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "1467ms" + "X-Processing-Time": "1689ms" }, "ResponseBody": { "id": "00000000-0000-0000-0000-000000000000", @@ -580,7 +611,7 @@ "billingFrequency": "monthly" } ], - "statusUpdatedDate": "2022-05-27T16:48:22\u002B00:00", + "statusUpdatedDate": "2022-07-07T21:45:30\u002B00:00", "programDetails": { "isVanity": false, "numberType": "shortCode", @@ -592,7 +623,12 @@ "sms", "website" ], + "callToActionTypes": [ + "sms", + "website" + ], "signUpUrl": "https://endpoint/updated-sign-up", + "callToActionUrl": "https://endpoint/updated-sign-up", "termsOfServiceUrl": "https://endpoint/updated-terms", "privacyPolicyUrl": "https://endpoint/updated-privacy" }, @@ -614,16 +650,22 @@ "supportedProtocols": [ "sms" ], + "supportedProtocol": "sms", "recurrence": "subscription", "helpMessage": "Send \u0027Stop\u0027 to unsubscribe, send \u0027Start\u0027 to resubscribe.", + "helpAnswerToUser": "Send \u0027Stop\u0027 to unsubscribe, send \u0027Start\u0027 to resubscribe.", "optOutMessage": "You\u0027ve been unsubscribed from these messages. Send \u0027Start\u0027 if you want to resubscribe.", + "optOutAnswerToUser": "You\u0027ve been unsubscribed from these messages. Send \u0027Start\u0027 if you want to resubscribe.", "optInMessage": "Someone requested to subscribe this number to receive updates about Contoso\u0027s loyalty program. To confirm subscription, reply to this message with \u0027JOIN\u0027", + "optInMessageToUser": "Someone requested to subscribe this number to receive updates about Contoso\u0027s loyalty program. To confirm subscription, reply to this message with \u0027JOIN\u0027", "optInReply": "JOIN", + "optInAnswerFromUser": "JOIN", "confirmationMessage": "Congrats, you have been successfully subscribed to loyalty program updates. Welcome!", + "optInConfirmationMessageToUser": "Congrats, you have been successfully subscribed to loyalty program updates. Welcome!", "directionality": "twoWay", "useCases": [ { - "contentCategory": "coupons", + "contentType": "marketingAndPromotion", "examples": [ { "messages": [ @@ -636,7 +678,7 @@ ] }, { - "contentCategory": "loyaltyProgram", + "contentType": "loyaltyProgram", "examples": [ { "messages": [ @@ -649,7 +691,7 @@ ] }, { - "contentCategory": "loyaltyProgramPointsPrizes", + "contentType": "sweepstakesOrContest", "examples": [ { "messages": [ @@ -681,23 +723,23 @@ "Accept-Encoding": "gzip,deflate", "Authorization": "Sanitized", "Connection": "keep-alive", - "User-Agent": "azsdk-js-communication-short-codes/1.0.0-beta.2 core-rest-pipeline/1.8.2 Node/v16.15.0 OS/(x64-Linux-5.10.102.1-microsoft-standard-WSL2)", + "User-Agent": "azsdk-js-communication-short-codes/1.0.0-beta.2 core-rest-pipeline/1.9.1 Node/v17.8.0 OS/(x64-Linux-5.10.102.1-microsoft-standard-WSL2)", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", - "x-ms-date": "Fri, 27 May 2022 16:48:26 GMT" + "x-ms-date": "Thu, 07 Jul 2022 21:45:44 GMT" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "api-supported-versions": "2021-10-25-preview", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 27 May 2022 16:48:28 GMT", - "MS-CV": "YzkUwL55B0mkgKsuumbI1A.0", + "Date": "Thu, 07 Jul 2022 21:45:44 GMT", + "MS-CV": "LnFD4knrpkSsbmXQh\u002B8l6A.0", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "02wCRYgAAAAC1yeoYTW9VQqf6FW3D\u002BuQqTUVYMzBFREdFMDQxMAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0B1THYgAAAADNpvLZMJZETb5GlrFrJINfU0FPMzFFREdFMTIyMQBjYzkyNzU4ZC0wNWY3LTRhZDYtYWE1ZS0wZmE5NzE4ZDg5ODU=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "1400ms" + "X-Processing-Time": "926ms" }, "ResponseBody": { "programBriefs": [ @@ -716,7 +758,7 @@ "billingFrequency": "monthly" } ], - "statusUpdatedDate": "2022-05-27T16:48:22\u002B00:00", + "statusUpdatedDate": "2022-07-07T21:45:30\u002B00:00", "programDetails": { "isVanity": false, "numberType": "shortCode", @@ -728,7 +770,12 @@ "sms", "website" ], + "callToActionTypes": [ + "sms", + "website" + ], "signUpUrl": "https://endpoint/updated-sign-up", + "callToActionUrl": "https://endpoint/updated-sign-up", "termsOfServiceUrl": "https://endpoint/updated-terms", "privacyPolicyUrl": "https://endpoint/updated-privacy" }, @@ -750,16 +797,22 @@ "supportedProtocols": [ "sms" ], + "supportedProtocol": "sms", "recurrence": "subscription", "helpMessage": "Send \u0027Stop\u0027 to unsubscribe, send \u0027Start\u0027 to resubscribe.", + "helpAnswerToUser": "Send \u0027Stop\u0027 to unsubscribe, send \u0027Start\u0027 to resubscribe.", "optOutMessage": "You\u0027ve been unsubscribed from these messages. Send \u0027Start\u0027 if you want to resubscribe.", + "optOutAnswerToUser": "You\u0027ve been unsubscribed from these messages. Send \u0027Start\u0027 if you want to resubscribe.", "optInMessage": "Someone requested to subscribe this number to receive updates about Contoso\u0027s loyalty program. To confirm subscription, reply to this message with \u0027JOIN\u0027", + "optInMessageToUser": "Someone requested to subscribe this number to receive updates about Contoso\u0027s loyalty program. To confirm subscription, reply to this message with \u0027JOIN\u0027", "optInReply": "JOIN", + "optInAnswerFromUser": "JOIN", "confirmationMessage": "Congrats, you have been successfully subscribed to loyalty program updates. Welcome!", + "optInConfirmationMessageToUser": "Congrats, you have been successfully subscribed to loyalty program updates. Welcome!", "directionality": "twoWay", "useCases": [ { - "contentCategory": "coupons", + "contentType": "marketingAndPromotion", "examples": [ { "messages": [ @@ -772,7 +825,7 @@ ] }, { - "contentCategory": "loyaltyProgram", + "contentType": "loyaltyProgram", "examples": [ { "messages": [ @@ -785,7 +838,7 @@ ] }, { - "contentCategory": "loyaltyProgramPointsPrizes", + "contentType": "sweepstakesOrContest", "examples": [ { "messages": [ @@ -819,21 +872,21 @@ "Accept-Encoding": "gzip,deflate", "Authorization": "Sanitized", "Connection": "keep-alive", - "User-Agent": "azsdk-js-communication-short-codes/1.0.0-beta.2 core-rest-pipeline/1.8.2 Node/v16.15.0 OS/(x64-Linux-5.10.102.1-microsoft-standard-WSL2)", + "User-Agent": "azsdk-js-communication-short-codes/1.0.0-beta.2 core-rest-pipeline/1.9.1 Node/v17.8.0 OS/(x64-Linux-5.10.102.1-microsoft-standard-WSL2)", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", - "x-ms-date": "Fri, 27 May 2022 16:48:27 GMT" + "x-ms-date": "Thu, 07 Jul 2022 21:45:45 GMT" }, "RequestBody": null, "StatusCode": 204, "ResponseHeaders": { "api-supported-versions": "2021-10-25-preview", - "Date": "Fri, 27 May 2022 16:48:29 GMT", - "MS-CV": "Ljwl7Vj2DkSCmgSHgS7HqQ.0", + "Date": "Thu, 07 Jul 2022 21:45:45 GMT", + "MS-CV": "o3t742Srs0qW8rEdeGo6yA.0", "Strict-Transport-Security": "max-age=2592000", - "X-Azure-Ref": "03QCRYgAAAAC90eBeU5JWTIUxD6S8YHhxTUVYMzBFREdFMDQxMAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0CFTHYgAAAAA5U2dkSQ3YS7z6eOeAtq0\u002BU0FPMzFFREdFMTIyMQBjYzkyNzU4ZC0wNWY3LTRhZDYtYWE1ZS0wZmE5NzE4ZDg5ODU=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "416ms" + "X-Processing-Time": "393ms" }, "ResponseBody": null }, @@ -845,23 +898,23 @@ "Accept-Encoding": "gzip,deflate", "Authorization": "Sanitized", "Connection": "keep-alive", - "User-Agent": "azsdk-js-communication-short-codes/1.0.0-beta.2 core-rest-pipeline/1.8.2 Node/v16.15.0 OS/(x64-Linux-5.10.102.1-microsoft-standard-WSL2)", + "User-Agent": "azsdk-js-communication-short-codes/1.0.0-beta.2 core-rest-pipeline/1.9.1 Node/v17.8.0 OS/(x64-Linux-5.10.102.1-microsoft-standard-WSL2)", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", - "x-ms-date": "Fri, 27 May 2022 16:48:28 GMT" + "x-ms-date": "Thu, 07 Jul 2022 21:45:45 GMT" }, "RequestBody": null, "StatusCode": 404, "ResponseHeaders": { "api-supported-versions": "2021-10-25-preview", "Content-Type": "application/json", - "Date": "Fri, 27 May 2022 16:48:30 GMT", - "MS-CV": "koCKtu3cBU\u002B/L5UJpJpcsA.0", + "Date": "Thu, 07 Jul 2022 21:45:46 GMT", + "MS-CV": "A/KQRYHe\u002BEegbHMojgHCfg.0", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "03QCRYgAAAADi/ZV/xJQXT5KhgWe7iEZ8TUVYMzBFREdFMDQxMAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0CVTHYgAAAAACJE7crR0uT5A07lA8DN5YU0FPMzFFREdFMTIyMQBjYzkyNzU4ZC0wNWY3LTRhZDYtYWE1ZS0wZmE5NzE4ZDg5ODU=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "1373ms" + "X-Processing-Time": "952ms" }, "ResponseBody": { "error": { diff --git a/sdk/communication/communication-short-codes/recordings/node/shortcodesclient__creates_us_program_brief_using_upsert/recording_can_create_get_and_delete_a_us_program_brief.json b/sdk/communication/communication-short-codes/recordings/node/shortcodesclient__creates_us_program_brief_using_upsert/recording_can_create_get_and_delete_a_us_program_brief.json index b4d9f4d2bf95..833b0c5893a3 100644 --- a/sdk/communication/communication-short-codes/recordings/node/shortcodesclient__creates_us_program_brief_using_upsert/recording_can_create_get_and_delete_a_us_program_brief.json +++ b/sdk/communication/communication-short-codes/recordings/node/shortcodesclient__creates_us_program_brief_using_upsert/recording_can_create_get_and_delete_a_us_program_brief.json @@ -8,12 +8,12 @@ "Accept-Encoding": "gzip,deflate", "Authorization": "Sanitized", "Connection": "keep-alive", - "Content-Length": "1997", + "Content-Length": "2038", "Content-Type": "application/merge-patch\u002Bjson", - "User-Agent": "azsdk-js-communication-short-codes/1.0.0-beta.2 core-rest-pipeline/1.8.2 Node/v16.15.0 OS/(x64-Linux-5.10.102.1-microsoft-standard-WSL2)", + "User-Agent": "azsdk-js-communication-short-codes/1.0.0-beta.2 core-rest-pipeline/1.9.1 Node/v17.8.0 OS/(x64-Linux-5.10.102.1-microsoft-standard-WSL2)", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-content-sha256": "zUYsBqzIkivIwozH0gZDy2m4Tm75n6y/f\u002BiGvnN8x8I=", - "x-ms-date": "Fri, 27 May 2022 16:47:59 GMT" + "x-ms-content-sha256": "WeoIh/ilgHWeWJA9Uh1c/dh2cqn1EmkgJMjuReNrBqI=", + "x-ms-date": "Thu, 07 Jul 2022 21:44:41 GMT" }, "RequestBody": { "id": "00000000-0000-0000-0000-000000000000", @@ -24,11 +24,11 @@ "name": "Contoso Loyalty Program", "description": "TEST Customers can sign up to receive regular updates on coupons and other perks of our loyalty program.", "url": "https://endpoint/loyalty-program", - "signUpTypes": [ + "callToActionTypes": [ "sms", "website" ], - "signUpUrl": "https://contoso.com/sign-up", + "callToActionUrl": "https://contoso.com/sign-up", "termsOfServiceUrl": "https://contoso.com/terms", "privacyPolicyUrl": "https://contoso.com/privacy" }, @@ -47,19 +47,17 @@ } }, "messageDetails": { - "supportedProtocols": [ - "sms" - ], + "supportedProtocol": "sms", "recurrence": "subscription", - "helpMessage": "Send \u0027Stop\u0027 to unsubscribe, send \u0027Start\u0027 to resubscribe.", - "optOutMessage": "You\u0027ve been unsubscribed from these messages. Send \u0027Start\u0027 if you want to resubscribe.", - "optInMessage": "Someone requested to subscribe this number to receive updates about Contoso\u0027s loyalty program. To confirm subscription, reply to this message with \u0027JOIN\u0027", - "optInReply": "JOIN", - "confirmationMessage": "Congrats, you have been successfully subscribed to loyalty program updates. Welcome!", + "helpAnswerToUser": "Send \u0027Stop\u0027 to unsubscribe, send \u0027Start\u0027 to resubscribe.", + "optOutAnswerToUser": "You\u0027ve been unsubscribed from these messages. Send \u0027Start\u0027 if you want to resubscribe.", + "optInMessageToUser": "Someone requested to subscribe this number to receive updates about Contoso\u0027s loyalty program. To confirm subscription, reply to this message with \u0027JOIN\u0027", + "optInAnswerFromUser": "JOIN", + "optInConfirmationMessageToUser": "Congrats, you have been successfully subscribed to loyalty program updates. Welcome!", "directionality": "twoWay", "useCases": [ { - "contentCategory": "coupons", + "contentType": "marketingAndPromotion", "examples": [ { "messages": [ @@ -72,7 +70,7 @@ ] }, { - "contentCategory": "loyaltyProgram", + "contentType": "loyaltyProgram", "examples": [ { "messages": [ @@ -85,7 +83,7 @@ ] }, { - "contentCategory": "loyaltyProgramPointsPrizes", + "contentType": "sweepstakesOrContest", "examples": [ { "messages": [ @@ -112,14 +110,14 @@ "ResponseHeaders": { "api-supported-versions": "2021-10-25-preview", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 27 May 2022 16:48:04 GMT", + "Date": "Thu, 07 Jul 2022 21:44:53 GMT", "Location": "https://endpoint/shortCodes/countries/US/programBriefs/00000000-0000-0000-0000-000000000000", - "MS-CV": "2KRJtsIYB0CrJwOvwpN7hQ.0", + "MS-CV": "pQzT9\u002B09wUqC1maeVdgC5g.0", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0wQCRYgAAAABC2Q2NtxDUS4yB0JK/NpWhTUVYMzBFREdFMDQxMAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0yVPHYgAAAAB6OhPecU5qSYRyMZZPPhZDU0FPMzFFREdFMTIyMQBjYzkyNzU4ZC0wNWY3LTRhZDYtYWE1ZS0wZmE5NzE4ZDg5ODU=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "3156ms" + "X-Processing-Time": "11588ms" }, "ResponseBody": { "id": "00000000-0000-0000-0000-000000000000", @@ -136,7 +134,7 @@ "billingFrequency": "monthly" } ], - "statusUpdatedDate": "2022-05-27T16:48:03\u002B00:00", + "statusUpdatedDate": "2022-07-07T21:44:43\u002B00:00", "programDetails": { "isVanity": false, "numberType": "shortCode", @@ -148,7 +146,12 @@ "sms", "website" ], + "callToActionTypes": [ + "sms", + "website" + ], "signUpUrl": "https://contoso.com/sign-up", + "callToActionUrl": "https://contoso.com/sign-up", "termsOfServiceUrl": "https://contoso.com/terms", "privacyPolicyUrl": "https://contoso.com/privacy" }, @@ -170,16 +173,22 @@ "supportedProtocols": [ "sms" ], + "supportedProtocol": "sms", "recurrence": "subscription", "helpMessage": "Send \u0027Stop\u0027 to unsubscribe, send \u0027Start\u0027 to resubscribe.", + "helpAnswerToUser": "Send \u0027Stop\u0027 to unsubscribe, send \u0027Start\u0027 to resubscribe.", "optOutMessage": "You\u0027ve been unsubscribed from these messages. Send \u0027Start\u0027 if you want to resubscribe.", + "optOutAnswerToUser": "You\u0027ve been unsubscribed from these messages. Send \u0027Start\u0027 if you want to resubscribe.", "optInMessage": "Someone requested to subscribe this number to receive updates about Contoso\u0027s loyalty program. To confirm subscription, reply to this message with \u0027JOIN\u0027", + "optInMessageToUser": "Someone requested to subscribe this number to receive updates about Contoso\u0027s loyalty program. To confirm subscription, reply to this message with \u0027JOIN\u0027", "optInReply": "JOIN", + "optInAnswerFromUser": "JOIN", "confirmationMessage": "Congrats, you have been successfully subscribed to loyalty program updates. Welcome!", + "optInConfirmationMessageToUser": "Congrats, you have been successfully subscribed to loyalty program updates. Welcome!", "directionality": "twoWay", "useCases": [ { - "contentCategory": "coupons", + "contentType": "marketingAndPromotion", "examples": [ { "messages": [ @@ -192,7 +201,7 @@ ] }, { - "contentCategory": "loyaltyProgram", + "contentType": "loyaltyProgram", "examples": [ { "messages": [ @@ -205,7 +214,7 @@ ] }, { - "contentCategory": "loyaltyProgramPointsPrizes", + "contentType": "sweepstakesOrContest", "examples": [ { "messages": [ @@ -237,23 +246,23 @@ "Accept-Encoding": "gzip,deflate", "Authorization": "Sanitized", "Connection": "keep-alive", - "User-Agent": "azsdk-js-communication-short-codes/1.0.0-beta.2 core-rest-pipeline/1.8.2 Node/v16.15.0 OS/(x64-Linux-5.10.102.1-microsoft-standard-WSL2)", + "User-Agent": "azsdk-js-communication-short-codes/1.0.0-beta.2 core-rest-pipeline/1.9.1 Node/v17.8.0 OS/(x64-Linux-5.10.102.1-microsoft-standard-WSL2)", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", - "x-ms-date": "Fri, 27 May 2022 16:48:03 GMT" + "x-ms-date": "Thu, 07 Jul 2022 21:44:54 GMT" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "api-supported-versions": "2021-10-25-preview", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 27 May 2022 16:48:06 GMT", - "MS-CV": "VEmS04Rfi0aZH\u002B/XJA6zPg.0", + "Date": "Thu, 07 Jul 2022 21:44:54 GMT", + "MS-CV": "562tSOvYiE6gn037dZiFDg.0", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0xACRYgAAAAAeEr4tbIECT4V0jqYN6Rl5TUVYMzBFREdFMDQxMAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "01VPHYgAAAAABNW7L/4p3R7APgyq3sq6DU0FPMzFFREdFMTIyMQBjYzkyNzU4ZC0wNWY3LTRhZDYtYWE1ZS0wZmE5NzE4ZDg5ODU=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "1270ms" + "X-Processing-Time": "963ms" }, "ResponseBody": { "id": "00000000-0000-0000-0000-000000000000", @@ -270,7 +279,7 @@ "billingFrequency": "monthly" } ], - "statusUpdatedDate": "2022-05-27T16:48:03\u002B00:00", + "statusUpdatedDate": "2022-07-07T21:44:43\u002B00:00", "programDetails": { "isVanity": false, "numberType": "shortCode", @@ -282,7 +291,12 @@ "sms", "website" ], + "callToActionTypes": [ + "sms", + "website" + ], "signUpUrl": "https://contoso.com/sign-up", + "callToActionUrl": "https://contoso.com/sign-up", "termsOfServiceUrl": "https://contoso.com/terms", "privacyPolicyUrl": "https://contoso.com/privacy" }, @@ -304,16 +318,22 @@ "supportedProtocols": [ "sms" ], + "supportedProtocol": "sms", "recurrence": "subscription", "helpMessage": "Send \u0027Stop\u0027 to unsubscribe, send \u0027Start\u0027 to resubscribe.", + "helpAnswerToUser": "Send \u0027Stop\u0027 to unsubscribe, send \u0027Start\u0027 to resubscribe.", "optOutMessage": "You\u0027ve been unsubscribed from these messages. Send \u0027Start\u0027 if you want to resubscribe.", + "optOutAnswerToUser": "You\u0027ve been unsubscribed from these messages. Send \u0027Start\u0027 if you want to resubscribe.", "optInMessage": "Someone requested to subscribe this number to receive updates about Contoso\u0027s loyalty program. To confirm subscription, reply to this message with \u0027JOIN\u0027", + "optInMessageToUser": "Someone requested to subscribe this number to receive updates about Contoso\u0027s loyalty program. To confirm subscription, reply to this message with \u0027JOIN\u0027", "optInReply": "JOIN", + "optInAnswerFromUser": "JOIN", "confirmationMessage": "Congrats, you have been successfully subscribed to loyalty program updates. Welcome!", + "optInConfirmationMessageToUser": "Congrats, you have been successfully subscribed to loyalty program updates. Welcome!", "directionality": "twoWay", "useCases": [ { - "contentCategory": "coupons", + "contentType": "marketingAndPromotion", "examples": [ { "messages": [ @@ -326,7 +346,7 @@ ] }, { - "contentCategory": "loyaltyProgram", + "contentType": "loyaltyProgram", "examples": [ { "messages": [ @@ -339,7 +359,7 @@ ] }, { - "contentCategory": "loyaltyProgramPointsPrizes", + "contentType": "sweepstakesOrContest", "examples": [ { "messages": [ @@ -371,21 +391,21 @@ "Accept-Encoding": "gzip,deflate", "Authorization": "Sanitized", "Connection": "keep-alive", - "User-Agent": "azsdk-js-communication-short-codes/1.0.0-beta.2 core-rest-pipeline/1.8.2 Node/v16.15.0 OS/(x64-Linux-5.10.102.1-microsoft-standard-WSL2)", + "User-Agent": "azsdk-js-communication-short-codes/1.0.0-beta.2 core-rest-pipeline/1.9.1 Node/v17.8.0 OS/(x64-Linux-5.10.102.1-microsoft-standard-WSL2)", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", - "x-ms-date": "Fri, 27 May 2022 16:48:04 GMT" + "x-ms-date": "Thu, 07 Jul 2022 21:44:55 GMT" }, "RequestBody": null, "StatusCode": 204, "ResponseHeaders": { "api-supported-versions": "2021-10-25-preview", - "Date": "Fri, 27 May 2022 16:48:06 GMT", - "MS-CV": "TkcOuKQ7v0C8WD4BmQ9MfA.0", + "Date": "Thu, 07 Jul 2022 21:44:55 GMT", + "MS-CV": "ADXU6yIq70yBZufXsTpCyQ.0", "Strict-Transport-Security": "max-age=2592000", - "X-Azure-Ref": "0xgCRYgAAAAAIsq83RdvqRYdFc\u002BUJvwqnTUVYMzBFREdFMDQxMAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "011PHYgAAAADYm7d4v90WSJvlYiqnhgzrU0FPMzFFREdFMTIyMQBjYzkyNzU4ZC0wNWY3LTRhZDYtYWE1ZS0wZmE5NzE4ZDg5ODU=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "577ms" + "X-Processing-Time": "447ms" }, "ResponseBody": null } diff --git a/sdk/communication/communication-short-codes/recordings/node/shortcodesclient__lists_short_codes/recording_can_list_all_acquired_short_codes.json b/sdk/communication/communication-short-codes/recordings/node/shortcodesclient__lists_short_codes/recording_can_list_all_acquired_short_codes.json index 7c959860ddd3..913ee97990c1 100644 --- a/sdk/communication/communication-short-codes/recordings/node/shortcodesclient__lists_short_codes/recording_can_list_all_acquired_short_codes.json +++ b/sdk/communication/communication-short-codes/recordings/node/shortcodesclient__lists_short_codes/recording_can_list_all_acquired_short_codes.json @@ -8,23 +8,23 @@ "Accept-Encoding": "gzip,deflate", "Authorization": "Sanitized", "Connection": "keep-alive", - "User-Agent": "azsdk-js-communication-short-codes/1.0.0-beta.2 core-rest-pipeline/1.8.2 Node/v16.15.0 OS/(x64-Linux-5.10.102.1-microsoft-standard-WSL2)", + "User-Agent": "azsdk-js-communication-short-codes/1.0.0-beta.2 core-rest-pipeline/1.9.1 Node/v17.8.0 OS/(x64-Linux-5.10.102.1-microsoft-standard-WSL2)", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", - "x-ms-date": "Fri, 27 May 2022 16:48:09 GMT" + "x-ms-date": "Thu, 07 Jul 2022 21:45:08 GMT" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "api-supported-versions": "2021-10-25-preview", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 27 May 2022 16:48:11 GMT", - "MS-CV": "sAu/XaErGU\u002BtNqt1GdFzzA.0", + "Date": "Thu, 07 Jul 2022 21:45:08 GMT", + "MS-CV": "6FY9\u002BH0NgU6wOp9Qi9rp5w.0", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0ywCRYgAAAADQnqmrOSJMRJaKp9wQzjF5TUVYMzBFREdFMDQxMAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "041PHYgAAAADBY0BbVTqoRogy92Qu7UaUU0FPMzFFREdFMTIyMQBjYzkyNzU4ZC0wNWY3LTRhZDYtYWE1ZS0wZmE5NzE4ZDg5ODU=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "489ms" + "X-Processing-Time": "371ms" }, "ResponseBody": { "shortCodes": [] diff --git a/sdk/communication/communication-short-codes/recordings/node/shortcodesclient__manage_attachments/recording_can_manage_attachments.json b/sdk/communication/communication-short-codes/recordings/node/shortcodesclient__manage_attachments/recording_can_manage_attachments.json index 522098ff74d5..8c3bf911da56 100644 --- a/sdk/communication/communication-short-codes/recordings/node/shortcodesclient__manage_attachments/recording_can_manage_attachments.json +++ b/sdk/communication/communication-short-codes/recordings/node/shortcodesclient__manage_attachments/recording_can_manage_attachments.json @@ -8,23 +8,23 @@ "Accept-Encoding": "gzip,deflate", "Authorization": "Sanitized", "Connection": "keep-alive", - "User-Agent": "azsdk-js-communication-short-codes/1.0.0-beta.2 core-rest-pipeline/1.8.2 Node/v16.15.0 OS/(x64-Linux-5.10.102.1-microsoft-standard-WSL2)", + "User-Agent": "azsdk-js-communication-short-codes/1.0.0-beta.2 core-rest-pipeline/1.9.1 Node/v17.8.0 OS/(x64-Linux-5.10.102.1-microsoft-standard-WSL2)", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", - "x-ms-date": "Fri, 27 May 2022 16:48:10 GMT" + "x-ms-date": "Thu, 07 Jul 2022 21:45:08 GMT" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "api-supported-versions": "2021-10-25-preview", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 27 May 2022 16:48:12 GMT", - "MS-CV": "LYBjo/FguEyIO\u002BAGOyV\u002B6A.0", + "Date": "Thu, 07 Jul 2022 21:45:09 GMT", + "MS-CV": "Z7BhCSyqf0erhBUg49a\u002BeA.0", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0ywCRYgAAAADc/S32uWrfTbEPTiPSnefsTUVYMzBFREdFMDQxMAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "05FPHYgAAAAAHcvEdLHTaTI7yxX\u002B\u002BH5/cU0FPMzFFREdFMTIyMQBjYzkyNzU4ZC0wNWY3LTRhZDYtYWE1ZS0wZmE5NzE4ZDg5ODU=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "1350ms" + "X-Processing-Time": "947ms" }, "ResponseBody": { "id": "00000000-0000-0000-0000-000000000000", @@ -41,7 +41,7 @@ "billingFrequency": "monthly" } ], - "statusUpdatedDate": "2022-05-27T16:48:08\u002B00:00", + "statusUpdatedDate": "2022-07-07T21:44:56\u002B00:00", "programDetails": { "isVanity": false, "numberType": "shortCode", @@ -53,7 +53,12 @@ "sms", "website" ], + "callToActionTypes": [ + "sms", + "website" + ], "signUpUrl": "https://contoso.com/sign-up", + "callToActionUrl": "https://contoso.com/sign-up", "termsOfServiceUrl": "https://contoso.com/terms", "privacyPolicyUrl": "https://contoso.com/privacy" }, @@ -75,16 +80,22 @@ "supportedProtocols": [ "sms" ], + "supportedProtocol": "sms", "recurrence": "subscription", "helpMessage": "Send \u0027Stop\u0027 to unsubscribe, send \u0027Start\u0027 to resubscribe.", + "helpAnswerToUser": "Send \u0027Stop\u0027 to unsubscribe, send \u0027Start\u0027 to resubscribe.", "optOutMessage": "You\u0027ve been unsubscribed from these messages. Send \u0027Start\u0027 if you want to resubscribe.", + "optOutAnswerToUser": "You\u0027ve been unsubscribed from these messages. Send \u0027Start\u0027 if you want to resubscribe.", "optInMessage": "Someone requested to subscribe this number to receive updates about Contoso\u0027s loyalty program. To confirm subscription, reply to this message with \u0027JOIN\u0027", + "optInMessageToUser": "Someone requested to subscribe this number to receive updates about Contoso\u0027s loyalty program. To confirm subscription, reply to this message with \u0027JOIN\u0027", "optInReply": "JOIN", + "optInAnswerFromUser": "JOIN", "confirmationMessage": "Congrats, you have been successfully subscribed to loyalty program updates. Welcome!", + "optInConfirmationMessageToUser": "Congrats, you have been successfully subscribed to loyalty program updates. Welcome!", "directionality": "twoWay", "useCases": [ { - "contentCategory": "coupons", + "contentType": "marketingAndPromotion", "examples": [ { "messages": [ @@ -97,7 +108,7 @@ ] }, { - "contentCategory": "loyaltyProgram", + "contentType": "loyaltyProgram", "examples": [ { "messages": [ @@ -110,7 +121,7 @@ ] }, { - "contentCategory": "loyaltyProgramPointsPrizes", + "contentType": "sweepstakesOrContest", "examples": [ { "messages": [ @@ -142,21 +153,21 @@ "Accept-Encoding": "gzip,deflate", "Authorization": "Sanitized", "Connection": "keep-alive", - "User-Agent": "azsdk-js-communication-short-codes/1.0.0-beta.2 core-rest-pipeline/1.8.2 Node/v16.15.0 OS/(x64-Linux-5.10.102.1-microsoft-standard-WSL2)", + "User-Agent": "azsdk-js-communication-short-codes/1.0.0-beta.2 core-rest-pipeline/1.9.1 Node/v17.8.0 OS/(x64-Linux-5.10.102.1-microsoft-standard-WSL2)", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", - "x-ms-date": "Fri, 27 May 2022 16:48:11 GMT" + "x-ms-date": "Thu, 07 Jul 2022 21:45:09 GMT" }, "RequestBody": null, "StatusCode": 204, "ResponseHeaders": { "api-supported-versions": "2021-10-25-preview", - "Date": "Fri, 27 May 2022 16:48:13 GMT", - "MS-CV": "v3kASxxGyk\u002BKbzhJCAaoQQ.0", + "Date": "Thu, 07 Jul 2022 21:45:09 GMT", + "MS-CV": "EmiBdc48kEWe8CTyt43qBQ.0", "Strict-Transport-Security": "max-age=2592000", - "X-Azure-Ref": "0zQCRYgAAAAB7tPJSfwMrSYLuAclDs8D1TUVYMzBFREdFMDQxMAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "05VPHYgAAAABD2JvsdqgKQrL6PfBRgXZwU0FPMzFFREdFMTIyMQBjYzkyNzU4ZC0wNWY3LTRhZDYtYWE1ZS0wZmE5NzE4ZDg5ODU=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "479ms" + "X-Processing-Time": "421ms" }, "ResponseBody": null }, @@ -168,23 +179,23 @@ "Accept-Encoding": "gzip,deflate", "Authorization": "Sanitized", "Connection": "keep-alive", - "User-Agent": "azsdk-js-communication-short-codes/1.0.0-beta.2 core-rest-pipeline/1.8.2 Node/v16.15.0 OS/(x64-Linux-5.10.102.1-microsoft-standard-WSL2)", + "User-Agent": "azsdk-js-communication-short-codes/1.0.0-beta.2 core-rest-pipeline/1.9.1 Node/v17.8.0 OS/(x64-Linux-5.10.102.1-microsoft-standard-WSL2)", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", - "x-ms-date": "Fri, 27 May 2022 16:48:12 GMT" + "x-ms-date": "Thu, 07 Jul 2022 21:45:10 GMT" }, "RequestBody": null, "StatusCode": 404, "ResponseHeaders": { "api-supported-versions": "2021-10-25-preview", "Content-Type": "application/json", - "Date": "Fri, 27 May 2022 16:48:14 GMT", - "MS-CV": "crevUKctb0aTo5w3p0WIqA.0", + "Date": "Thu, 07 Jul 2022 21:45:11 GMT", + "MS-CV": "YqOgyH2IoUCaLEkwjhOm2w.0", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0zQCRYgAAAADCgSPEo7AUSKaKp/c/\u002BRObTUVYMzBFREdFMDQxMAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "05lPHYgAAAADSWMAccknXTJeNeQBFnoVgU0FPMzFFREdFMTIyMQBjYzkyNzU4ZC0wNWY3LTRhZDYtYWE1ZS0wZmE5NzE4ZDg5ODU=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "1385ms" + "X-Processing-Time": "1169ms" }, "ResponseBody": { "error": { @@ -201,12 +212,12 @@ "Accept-Encoding": "gzip,deflate", "Authorization": "Sanitized", "Connection": "keep-alive", - "Content-Length": "1997", + "Content-Length": "2038", "Content-Type": "application/merge-patch\u002Bjson", - "User-Agent": "azsdk-js-communication-short-codes/1.0.0-beta.2 core-rest-pipeline/1.8.2 Node/v16.15.0 OS/(x64-Linux-5.10.102.1-microsoft-standard-WSL2)", + "User-Agent": "azsdk-js-communication-short-codes/1.0.0-beta.2 core-rest-pipeline/1.9.1 Node/v17.8.0 OS/(x64-Linux-5.10.102.1-microsoft-standard-WSL2)", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-content-sha256": "zUYsBqzIkivIwozH0gZDy2m4Tm75n6y/f\u002BiGvnN8x8I=", - "x-ms-date": "Fri, 27 May 2022 16:48:13 GMT" + "x-ms-content-sha256": "WeoIh/ilgHWeWJA9Uh1c/dh2cqn1EmkgJMjuReNrBqI=", + "x-ms-date": "Thu, 07 Jul 2022 21:45:11 GMT" }, "RequestBody": { "id": "00000000-0000-0000-0000-000000000000", @@ -217,11 +228,11 @@ "name": "Contoso Loyalty Program", "description": "TEST Customers can sign up to receive regular updates on coupons and other perks of our loyalty program.", "url": "https://endpoint/loyalty-program", - "signUpTypes": [ + "callToActionTypes": [ "sms", "website" ], - "signUpUrl": "https://contoso.com/sign-up", + "callToActionUrl": "https://contoso.com/sign-up", "termsOfServiceUrl": "https://contoso.com/terms", "privacyPolicyUrl": "https://contoso.com/privacy" }, @@ -240,19 +251,17 @@ } }, "messageDetails": { - "supportedProtocols": [ - "sms" - ], + "supportedProtocol": "sms", "recurrence": "subscription", - "helpMessage": "Send \u0027Stop\u0027 to unsubscribe, send \u0027Start\u0027 to resubscribe.", - "optOutMessage": "You\u0027ve been unsubscribed from these messages. Send \u0027Start\u0027 if you want to resubscribe.", - "optInMessage": "Someone requested to subscribe this number to receive updates about Contoso\u0027s loyalty program. To confirm subscription, reply to this message with \u0027JOIN\u0027", - "optInReply": "JOIN", - "confirmationMessage": "Congrats, you have been successfully subscribed to loyalty program updates. Welcome!", + "helpAnswerToUser": "Send \u0027Stop\u0027 to unsubscribe, send \u0027Start\u0027 to resubscribe.", + "optOutAnswerToUser": "You\u0027ve been unsubscribed from these messages. Send \u0027Start\u0027 if you want to resubscribe.", + "optInMessageToUser": "Someone requested to subscribe this number to receive updates about Contoso\u0027s loyalty program. To confirm subscription, reply to this message with \u0027JOIN\u0027", + "optInAnswerFromUser": "JOIN", + "optInConfirmationMessageToUser": "Congrats, you have been successfully subscribed to loyalty program updates. Welcome!", "directionality": "twoWay", "useCases": [ { - "contentCategory": "coupons", + "contentType": "marketingAndPromotion", "examples": [ { "messages": [ @@ -265,7 +274,7 @@ ] }, { - "contentCategory": "loyaltyProgram", + "contentType": "loyaltyProgram", "examples": [ { "messages": [ @@ -278,7 +287,7 @@ ] }, { - "contentCategory": "loyaltyProgramPointsPrizes", + "contentType": "sweepstakesOrContest", "examples": [ { "messages": [ @@ -305,14 +314,14 @@ "ResponseHeaders": { "api-supported-versions": "2021-10-25-preview", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 27 May 2022 16:48:16 GMT", + "Date": "Thu, 07 Jul 2022 21:45:21 GMT", "Location": "https://endpoint/shortCodes/countries/US/programBriefs/00000000-0000-0000-0000-000000000000", - "MS-CV": "ZgNKmA7yPEyKhz/5hQpzlA.0", + "MS-CV": "ZrRDbxREnEuONH2NmD4\u002BgQ.0", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0zwCRYgAAAAC11rGQSxbfRqey71gVAE9ITUVYMzBFREdFMDQxMAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "051PHYgAAAAD4rkerJwQJQb1sLvlIH6A0U0FPMzFFREdFMTIyMQBjYzkyNzU4ZC0wNWY3LTRhZDYtYWE1ZS0wZmE5NzE4ZDg5ODU=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "1736ms" + "X-Processing-Time": "10418ms" }, "ResponseBody": { "id": "00000000-0000-0000-0000-000000000000", @@ -329,7 +338,7 @@ "billingFrequency": "monthly" } ], - "statusUpdatedDate": "2022-05-27T16:48:16\u002B00:00", + "statusUpdatedDate": "2022-07-07T21:45:12\u002B00:00", "programDetails": { "isVanity": false, "numberType": "shortCode", @@ -341,7 +350,12 @@ "sms", "website" ], + "callToActionTypes": [ + "sms", + "website" + ], "signUpUrl": "https://contoso.com/sign-up", + "callToActionUrl": "https://contoso.com/sign-up", "termsOfServiceUrl": "https://contoso.com/terms", "privacyPolicyUrl": "https://contoso.com/privacy" }, @@ -363,16 +377,22 @@ "supportedProtocols": [ "sms" ], + "supportedProtocol": "sms", "recurrence": "subscription", "helpMessage": "Send \u0027Stop\u0027 to unsubscribe, send \u0027Start\u0027 to resubscribe.", + "helpAnswerToUser": "Send \u0027Stop\u0027 to unsubscribe, send \u0027Start\u0027 to resubscribe.", "optOutMessage": "You\u0027ve been unsubscribed from these messages. Send \u0027Start\u0027 if you want to resubscribe.", + "optOutAnswerToUser": "You\u0027ve been unsubscribed from these messages. Send \u0027Start\u0027 if you want to resubscribe.", "optInMessage": "Someone requested to subscribe this number to receive updates about Contoso\u0027s loyalty program. To confirm subscription, reply to this message with \u0027JOIN\u0027", + "optInMessageToUser": "Someone requested to subscribe this number to receive updates about Contoso\u0027s loyalty program. To confirm subscription, reply to this message with \u0027JOIN\u0027", "optInReply": "JOIN", + "optInAnswerFromUser": "JOIN", "confirmationMessage": "Congrats, you have been successfully subscribed to loyalty program updates. Welcome!", + "optInConfirmationMessageToUser": "Congrats, you have been successfully subscribed to loyalty program updates. Welcome!", "directionality": "twoWay", "useCases": [ { - "contentCategory": "coupons", + "contentType": "marketingAndPromotion", "examples": [ { "messages": [ @@ -385,7 +405,7 @@ ] }, { - "contentCategory": "loyaltyProgram", + "contentType": "loyaltyProgram", "examples": [ { "messages": [ @@ -398,7 +418,7 @@ ] }, { - "contentCategory": "loyaltyProgramPointsPrizes", + "contentType": "sweepstakesOrContest", "examples": [ { "messages": [ @@ -430,28 +450,71 @@ "Accept-Encoding": "gzip,deflate", "Authorization": "Sanitized", "Connection": "keep-alive", - "User-Agent": "azsdk-js-communication-short-codes/1.0.0-beta.2 core-rest-pipeline/1.8.2 Node/v16.15.0 OS/(x64-Linux-5.10.102.1-microsoft-standard-WSL2)", + "User-Agent": "azsdk-js-communication-short-codes/1.0.0-beta.2 core-rest-pipeline/1.9.1 Node/v17.8.0 OS/(x64-Linux-5.10.102.1-microsoft-standard-WSL2)", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", - "x-ms-date": "Fri, 27 May 2022 16:48:15 GMT" + "x-ms-date": "Thu, 07 Jul 2022 21:45:22 GMT" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "api-supported-versions": "2021-10-25-preview", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 27 May 2022 16:48:17 GMT", - "MS-CV": "9TNWYVFPTk\u002BFlbZ5Z7QpfQ.0", + "Date": "Thu, 07 Jul 2022 21:45:22 GMT", + "MS-CV": "cphtCAbnMkK74bj7rHhljA.0", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "00ACRYgAAAAAtwEHtR9SzRLe7iSyNFzgRTUVYMzBFREdFMDQxMAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "08lPHYgAAAAADKZ459z36TbDAigpQ4PbBU0FPMzFFREdFMTIyMQBjYzkyNzU4ZC0wNWY3LTRhZDYtYWE1ZS0wZmE5NzE4ZDg5ODU=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "312ms" + "X-Processing-Time": "264ms" }, "ResponseBody": { "attachments": [] } }, + { + "RequestUri": "https://endpoint/shortCodes/countries/US/programBriefs/00000000-0000-0000-0000-000000000000/attachments/00000000-0000-0000-0000-000000000000?api-version=2021-10-25-preview", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "329", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-communication-short-codes/1.0.0-beta.2 core-rest-pipeline/1.9.1 Node/v17.8.0 OS/(x64-Linux-5.10.102.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", + "x-ms-content-sha256": "dFZZjyjvExBaJEYrYLSbKYrmglJWmonozcpgQcdJu6I=", + "x-ms-date": "Thu, 07 Jul 2022 21:45:23 GMT" + }, + "RequestBody": { + "id": "00000000-0000-0000-0000-000000000000", + "type": "callToAction", + "fileName": "testFriendlyName", + "fileType": "png", + "fileContentBase64": "iVBORw0KGgoAAAANSUhEUgAAAAYAAAAHCAIAAACk8qu6AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAALEoAACxKAXd6dE0AAAAjSURBVBhXY/iPAXALrVixorW1FcKGCgH5DAxQNklmIcD//wCoTHalyfy2/AAAAABJRU5ErkJggg==" + }, + "StatusCode": 201, + "ResponseHeaders": { + "api-supported-versions": "2021-10-25-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 07 Jul 2022 21:45:23 GMT", + "Location": "https://endpoint/shortCodes/countries/US/programBriefs/00000000-0000-0000-0000-000000000000/attachments/00000000-0000-0000-0000-000000000000", + "MS-CV": "2f5G\u002B4WUm0\u002B4SLWSnxUOOA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "08lPHYgAAAAB0SIdX4S2QSr/exK51ZYEPU0FPMzFFREdFMTIyMQBjYzkyNzU4ZC0wNWY3LTRhZDYtYWE1ZS0wZmE5NzE4ZDg5ODU=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "849ms" + }, + "ResponseBody": { + "id": "00000000-0000-0000-0000-000000000000", + "type": "callToAction", + "fileName": "testFriendlyName", + "fileSizeInBytes": 142, + "fileType": "png" + } + }, { "RequestUri": "https://endpoint/shortCodes/countries/US/programBriefs/00000000-0000-0000-0000-000000000000/attachments/00000000-0000-0000-0000-000000000000?api-version=2021-10-25-preview", "RequestMethod": "GET", @@ -460,33 +523,124 @@ "Accept-Encoding": "gzip,deflate", "Authorization": "Sanitized", "Connection": "keep-alive", - "User-Agent": "azsdk-js-communication-short-codes/1.0.0-beta.2 core-rest-pipeline/1.8.2 Node/v16.15.0 OS/(x64-Linux-5.10.102.1-microsoft-standard-WSL2)", + "User-Agent": "azsdk-js-communication-short-codes/1.0.0-beta.2 core-rest-pipeline/1.9.1 Node/v17.8.0 OS/(x64-Linux-5.10.102.1-microsoft-standard-WSL2)", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", - "x-ms-date": "Fri, 27 May 2022 16:48:15 GMT" + "x-ms-date": "Thu, 07 Jul 2022 21:45:24 GMT" }, "RequestBody": null, - "StatusCode": 404, + "StatusCode": 200, "ResponseHeaders": { "api-supported-versions": "2021-10-25-preview", - "Content-Type": "application/json", - "Date": "Fri, 27 May 2022 16:48:17 GMT", - "MS-CV": "EhIawYEr/0uZKDDWnVt8Ag.0", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 07 Jul 2022 21:45:23 GMT", + "MS-CV": "F3JX0uxFbkOBYP7u1XNjJw.0", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "00QCRYgAAAADo2o47CeCKQJW7p\u002BSbFBcMTUVYMzBFREdFMDQxMAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "081PHYgAAAAAeXi/imthlT4wms7jEPADHU0FPMzFFREdFMTIyMQBjYzkyNzU4ZC0wNWY3LTRhZDYtYWE1ZS0wZmE5NzE4ZDg5ODU=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "287ms" + "X-Processing-Time": "250ms" }, "ResponseBody": { - "error": { - "code": "InternalError", - "message": "The server encountered an internal error.", - "innererror": { - "code": "NotFound", - "message": "Could not find attachment with Id 00000000-0000-0000-0000-000000000000" + "id": "00000000-0000-0000-0000-000000000000", + "type": "callToAction", + "fileName": "testFriendlyName", + "fileSizeInBytes": 142, + "fileType": "png" + } + }, + { + "RequestUri": "https://endpoint/shortCodes/countries/US/programBriefs/00000000-0000-0000-0000-000000000000/attachments?skip=0\u0026top=100\u0026api-version=2021-10-25-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-communication-short-codes/1.0.0-beta.2 core-rest-pipeline/1.9.1 Node/v17.8.0 OS/(x64-Linux-5.10.102.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Thu, 07 Jul 2022 21:45:24 GMT" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-10-25-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 07 Jul 2022 21:45:24 GMT", + "MS-CV": "0UqZb5IM/kCV5YwLfxoywA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "09FPHYgAAAACRIaGwh5ZhQJLE3X6rQqQlU0FPMzFFREdFMTIyMQBjYzkyNzU4ZC0wNWY3LTRhZDYtYWE1ZS0wZmE5NzE4ZDg5ODU=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "282ms" + }, + "ResponseBody": { + "attachments": [ + { + "id": "00000000-0000-0000-0000-000000000000", + "type": "callToAction", + "fileName": "testFriendlyName", + "fileSizeInBytes": 142, + "fileType": "png" } - } + ] + } + }, + { + "RequestUri": "https://endpoint/shortCodes/countries/US/programBriefs/00000000-0000-0000-0000-000000000000/attachments/00000000-0000-0000-0000-000000000000?api-version=2021-10-25-preview", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-communication-short-codes/1.0.0-beta.2 core-rest-pipeline/1.9.1 Node/v17.8.0 OS/(x64-Linux-5.10.102.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Thu, 07 Jul 2022 21:45:25 GMT" + }, + "RequestBody": null, + "StatusCode": 204, + "ResponseHeaders": { + "api-supported-versions": "2021-10-25-preview", + "Date": "Thu, 07 Jul 2022 21:45:25 GMT", + "MS-CV": "wQKZIrmY9keuqQVdQm\u002BHBA.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "09FPHYgAAAAAsb6DhSPQUTZ3ATaTp8hiSU0FPMzFFREdFMTIyMQBjYzkyNzU4ZC0wNWY3LTRhZDYtYWE1ZS0wZmE5NzE4ZDg5ODU=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "737ms" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://endpoint/shortCodes/countries/US/programBriefs/00000000-0000-0000-0000-000000000000/attachments?skip=0\u0026top=100\u0026api-version=2021-10-25-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-communication-short-codes/1.0.0-beta.2 core-rest-pipeline/1.9.1 Node/v17.8.0 OS/(x64-Linux-5.10.102.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Thu, 07 Jul 2022 21:45:26 GMT" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-10-25-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 07 Jul 2022 21:45:25 GMT", + "MS-CV": "L1cfP//VaUqwC9Ek6CShtg.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "09VPHYgAAAAA8sZ1jIYoHSLrgOg9mw/xxU0FPMzFFREdFMTIyMQBjYzkyNzU4ZC0wNWY3LTRhZDYtYWE1ZS0wZmE5NzE4ZDg5ODU=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "307ms" + }, + "ResponseBody": { + "attachments": [] } }, { @@ -497,21 +651,21 @@ "Accept-Encoding": "gzip,deflate", "Authorization": "Sanitized", "Connection": "keep-alive", - "User-Agent": "azsdk-js-communication-short-codes/1.0.0-beta.2 core-rest-pipeline/1.8.2 Node/v16.15.0 OS/(x64-Linux-5.10.102.1-microsoft-standard-WSL2)", + "User-Agent": "azsdk-js-communication-short-codes/1.0.0-beta.2 core-rest-pipeline/1.9.1 Node/v17.8.0 OS/(x64-Linux-5.10.102.1-microsoft-standard-WSL2)", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", - "x-ms-date": "Fri, 27 May 2022 16:48:16 GMT" + "x-ms-date": "Thu, 07 Jul 2022 21:45:26 GMT" }, "RequestBody": null, "StatusCode": 204, "ResponseHeaders": { "api-supported-versions": "2021-10-25-preview", - "Date": "Fri, 27 May 2022 16:48:18 GMT", - "MS-CV": "VytahNzf4E\u002Brl4YzxtwtJw.0", + "Date": "Thu, 07 Jul 2022 21:45:26 GMT", + "MS-CV": "8gWtd4ffykii1QNhXq5\u002Bpw.0", "Strict-Transport-Security": "max-age=2592000", - "X-Azure-Ref": "00QCRYgAAAADUSqCP6KwvRIsR9iEmkjkqTUVYMzBFREdFMDQxMAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "09lPHYgAAAABuL0VY0dToR6BmPdnv7tTiU0FPMzFFREdFMTIyMQBjYzkyNzU4ZC0wNWY3LTRhZDYtYWE1ZS0wZmE5NzE4ZDg5ODU=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "513ms" + "X-Processing-Time": "433ms" }, "ResponseBody": null }, @@ -523,23 +677,23 @@ "Accept-Encoding": "gzip,deflate", "Authorization": "Sanitized", "Connection": "keep-alive", - "User-Agent": "azsdk-js-communication-short-codes/1.0.0-beta.2 core-rest-pipeline/1.8.2 Node/v16.15.0 OS/(x64-Linux-5.10.102.1-microsoft-standard-WSL2)", + "User-Agent": "azsdk-js-communication-short-codes/1.0.0-beta.2 core-rest-pipeline/1.9.1 Node/v17.8.0 OS/(x64-Linux-5.10.102.1-microsoft-standard-WSL2)", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", - "x-ms-date": "Fri, 27 May 2022 16:48:16 GMT" + "x-ms-date": "Thu, 07 Jul 2022 21:45:27 GMT" }, "RequestBody": null, "StatusCode": 404, "ResponseHeaders": { "api-supported-versions": "2021-10-25-preview", "Content-Type": "application/json", - "Date": "Fri, 27 May 2022 16:48:19 GMT", - "MS-CV": "9abu1bqZ5USgSxWOqlKeSw.0", + "Date": "Thu, 07 Jul 2022 21:45:27 GMT", + "MS-CV": "rnLzGlR7Y0CoBhBVqPnh3Q.0", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "00gCRYgAAAACGZdJ\u002BViBHQ67hoPfa/iCsTUVYMzBFREdFMDQxMAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "09lPHYgAAAABJPQXC\u002BzPORaE893QggIx0U0FPMzFFREdFMTIyMQBjYzkyNzU4ZC0wNWY3LTRhZDYtYWE1ZS0wZmE5NzE4ZDg5ODU=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "1312ms" + "X-Processing-Time": "1149ms" }, "ResponseBody": { "error": { diff --git a/sdk/communication/communication-short-codes/recordings/node/shortcodesclient__updates_us_program_brief_using_upsert/recording_can_create_and_update_a_us_program_brief.json b/sdk/communication/communication-short-codes/recordings/node/shortcodesclient__updates_us_program_brief_using_upsert/recording_can_create_and_update_a_us_program_brief.json index 64df6499e907..b0c72e2fcc01 100644 --- a/sdk/communication/communication-short-codes/recordings/node/shortcodesclient__updates_us_program_brief_using_upsert/recording_can_create_and_update_a_us_program_brief.json +++ b/sdk/communication/communication-short-codes/recordings/node/shortcodesclient__updates_us_program_brief_using_upsert/recording_can_create_and_update_a_us_program_brief.json @@ -8,12 +8,12 @@ "Accept-Encoding": "gzip,deflate", "Authorization": "Sanitized", "Connection": "keep-alive", - "Content-Length": "1997", + "Content-Length": "2038", "Content-Type": "application/merge-patch\u002Bjson", - "User-Agent": "azsdk-js-communication-short-codes/1.0.0-beta.2 core-rest-pipeline/1.8.2 Node/v16.15.0 OS/(x64-Linux-5.10.102.1-microsoft-standard-WSL2)", + "User-Agent": "azsdk-js-communication-short-codes/1.0.0-beta.2 core-rest-pipeline/1.9.1 Node/v17.8.0 OS/(x64-Linux-5.10.102.1-microsoft-standard-WSL2)", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-content-sha256": "zUYsBqzIkivIwozH0gZDy2m4Tm75n6y/f\u002BiGvnN8x8I=", - "x-ms-date": "Fri, 27 May 2022 16:48:05 GMT" + "x-ms-content-sha256": "WeoIh/ilgHWeWJA9Uh1c/dh2cqn1EmkgJMjuReNrBqI=", + "x-ms-date": "Thu, 07 Jul 2022 21:44:56 GMT" }, "RequestBody": { "id": "00000000-0000-0000-0000-000000000000", @@ -24,11 +24,11 @@ "name": "Contoso Loyalty Program", "description": "TEST Customers can sign up to receive regular updates on coupons and other perks of our loyalty program.", "url": "https://endpoint/loyalty-program", - "signUpTypes": [ + "callToActionTypes": [ "sms", "website" ], - "signUpUrl": "https://contoso.com/sign-up", + "callToActionUrl": "https://contoso.com/sign-up", "termsOfServiceUrl": "https://contoso.com/terms", "privacyPolicyUrl": "https://contoso.com/privacy" }, @@ -47,19 +47,17 @@ } }, "messageDetails": { - "supportedProtocols": [ - "sms" - ], + "supportedProtocol": "sms", "recurrence": "subscription", - "helpMessage": "Send \u0027Stop\u0027 to unsubscribe, send \u0027Start\u0027 to resubscribe.", - "optOutMessage": "You\u0027ve been unsubscribed from these messages. Send \u0027Start\u0027 if you want to resubscribe.", - "optInMessage": "Someone requested to subscribe this number to receive updates about Contoso\u0027s loyalty program. To confirm subscription, reply to this message with \u0027JOIN\u0027", - "optInReply": "JOIN", - "confirmationMessage": "Congrats, you have been successfully subscribed to loyalty program updates. Welcome!", + "helpAnswerToUser": "Send \u0027Stop\u0027 to unsubscribe, send \u0027Start\u0027 to resubscribe.", + "optOutAnswerToUser": "You\u0027ve been unsubscribed from these messages. Send \u0027Start\u0027 if you want to resubscribe.", + "optInMessageToUser": "Someone requested to subscribe this number to receive updates about Contoso\u0027s loyalty program. To confirm subscription, reply to this message with \u0027JOIN\u0027", + "optInAnswerFromUser": "JOIN", + "optInConfirmationMessageToUser": "Congrats, you have been successfully subscribed to loyalty program updates. Welcome!", "directionality": "twoWay", "useCases": [ { - "contentCategory": "coupons", + "contentType": "marketingAndPromotion", "examples": [ { "messages": [ @@ -72,7 +70,7 @@ ] }, { - "contentCategory": "loyaltyProgram", + "contentType": "loyaltyProgram", "examples": [ { "messages": [ @@ -85,7 +83,7 @@ ] }, { - "contentCategory": "loyaltyProgramPointsPrizes", + "contentType": "sweepstakesOrContest", "examples": [ { "messages": [ @@ -112,14 +110,14 @@ "ResponseHeaders": { "api-supported-versions": "2021-10-25-preview", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 27 May 2022 16:48:08 GMT", + "Date": "Thu, 07 Jul 2022 21:45:06 GMT", "Location": "https://endpoint/shortCodes/countries/US/programBriefs/00000000-0000-0000-0000-000000000000", - "MS-CV": "YtMfFZDHn02TnhTDX9PF/A.0", + "MS-CV": "DDTc/aHh40yZnbRN020wHQ.0", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0xwCRYgAAAAAg5aC/bRDgQKs1WIXe56h0TUVYMzBFREdFMDQxMAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "011PHYgAAAABM4ftCf1EgQLFl5fisrLXQU0FPMzFFREdFMTIyMQBjYzkyNzU4ZC0wNWY3LTRhZDYtYWE1ZS0wZmE5NzE4ZDg5ODU=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "1924ms" + "X-Processing-Time": "10357ms" }, "ResponseBody": { "id": "00000000-0000-0000-0000-000000000000", @@ -136,7 +134,7 @@ "billingFrequency": "monthly" } ], - "statusUpdatedDate": "2022-05-27T16:48:08\u002B00:00", + "statusUpdatedDate": "2022-07-07T21:44:56\u002B00:00", "programDetails": { "isVanity": false, "numberType": "shortCode", @@ -148,7 +146,12 @@ "sms", "website" ], + "callToActionTypes": [ + "sms", + "website" + ], "signUpUrl": "https://contoso.com/sign-up", + "callToActionUrl": "https://contoso.com/sign-up", "termsOfServiceUrl": "https://contoso.com/terms", "privacyPolicyUrl": "https://contoso.com/privacy" }, @@ -170,16 +173,22 @@ "supportedProtocols": [ "sms" ], + "supportedProtocol": "sms", "recurrence": "subscription", "helpMessage": "Send \u0027Stop\u0027 to unsubscribe, send \u0027Start\u0027 to resubscribe.", + "helpAnswerToUser": "Send \u0027Stop\u0027 to unsubscribe, send \u0027Start\u0027 to resubscribe.", "optOutMessage": "You\u0027ve been unsubscribed from these messages. Send \u0027Start\u0027 if you want to resubscribe.", + "optOutAnswerToUser": "You\u0027ve been unsubscribed from these messages. Send \u0027Start\u0027 if you want to resubscribe.", "optInMessage": "Someone requested to subscribe this number to receive updates about Contoso\u0027s loyalty program. To confirm subscription, reply to this message with \u0027JOIN\u0027", + "optInMessageToUser": "Someone requested to subscribe this number to receive updates about Contoso\u0027s loyalty program. To confirm subscription, reply to this message with \u0027JOIN\u0027", "optInReply": "JOIN", + "optInAnswerFromUser": "JOIN", "confirmationMessage": "Congrats, you have been successfully subscribed to loyalty program updates. Welcome!", + "optInConfirmationMessageToUser": "Congrats, you have been successfully subscribed to loyalty program updates. Welcome!", "directionality": "twoWay", "useCases": [ { - "contentCategory": "coupons", + "contentType": "marketingAndPromotion", "examples": [ { "messages": [ @@ -192,7 +201,7 @@ ] }, { - "contentCategory": "loyaltyProgram", + "contentType": "loyaltyProgram", "examples": [ { "messages": [ @@ -205,7 +214,7 @@ ] }, { - "contentCategory": "loyaltyProgramPointsPrizes", + "contentType": "sweepstakesOrContest", "examples": [ { "messages": [ @@ -237,12 +246,12 @@ "Accept-Encoding": "gzip,deflate", "Authorization": "Sanitized", "Connection": "keep-alive", - "Content-Length": "1904", + "Content-Length": "1945", "Content-Type": "application/merge-patch\u002Bjson", - "User-Agent": "azsdk-js-communication-short-codes/1.0.0-beta.2 core-rest-pipeline/1.8.2 Node/v16.15.0 OS/(x64-Linux-5.10.102.1-microsoft-standard-WSL2)", + "User-Agent": "azsdk-js-communication-short-codes/1.0.0-beta.2 core-rest-pipeline/1.9.1 Node/v17.8.0 OS/(x64-Linux-5.10.102.1-microsoft-standard-WSL2)", "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-content-sha256": "oBmmAyZv3RIpcK71leZKCjuq5hbM814JhuDb4DtlCeE=", - "x-ms-date": "Fri, 27 May 2022 16:48:07 GMT" + "x-ms-content-sha256": "9UeM8KvRV9BO/tK\u002Bj1nMxbsqw8fh7SLRjt4gGtGyark=", + "x-ms-date": "Thu, 07 Jul 2022 21:45:06 GMT" }, "RequestBody": { "id": "00000000-0000-0000-0000-000000000000", @@ -253,11 +262,11 @@ "name": "Contoso Loyalty Program", "description": "TEST UPDATE", "url": "https://endpoint/loyalty-program", - "signUpTypes": [ + "callToActionTypes": [ "sms", "website" ], - "signUpUrl": "https://contoso.com/sign-up", + "callToActionUrl": "https://contoso.com/sign-up", "termsOfServiceUrl": "https://contoso.com/terms", "privacyPolicyUrl": "https://contoso.com/privacy" }, @@ -276,19 +285,17 @@ } }, "messageDetails": { - "supportedProtocols": [ - "sms" - ], + "supportedProtocol": "sms", "recurrence": "subscription", - "helpMessage": "Send \u0027Stop\u0027 to unsubscribe, send \u0027Start\u0027 to resubscribe.", - "optOutMessage": "You\u0027ve been unsubscribed from these messages. Send \u0027Start\u0027 if you want to resubscribe.", - "optInMessage": "Someone requested to subscribe this number to receive updates about Contoso\u0027s loyalty program. To confirm subscription, reply to this message with \u0027JOIN\u0027", - "optInReply": "JOIN", - "confirmationMessage": "Congrats, you have been successfully subscribed to loyalty program updates. Welcome!", + "helpAnswerToUser": "Send \u0027Stop\u0027 to unsubscribe, send \u0027Start\u0027 to resubscribe.", + "optOutAnswerToUser": "You\u0027ve been unsubscribed from these messages. Send \u0027Start\u0027 if you want to resubscribe.", + "optInMessageToUser": "Someone requested to subscribe this number to receive updates about Contoso\u0027s loyalty program. To confirm subscription, reply to this message with \u0027JOIN\u0027", + "optInAnswerFromUser": "JOIN", + "optInConfirmationMessageToUser": "Congrats, you have been successfully subscribed to loyalty program updates. Welcome!", "directionality": "twoWay", "useCases": [ { - "contentCategory": "coupons", + "contentType": "marketingAndPromotion", "examples": [ { "messages": [ @@ -301,7 +308,7 @@ ] }, { - "contentCategory": "loyaltyProgram", + "contentType": "loyaltyProgram", "examples": [ { "messages": [ @@ -314,7 +321,7 @@ ] }, { - "contentCategory": "loyaltyProgramPointsPrizes", + "contentType": "sweepstakesOrContest", "examples": [ { "messages": [ @@ -341,13 +348,13 @@ "ResponseHeaders": { "api-supported-versions": "2021-10-25-preview", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 27 May 2022 16:48:10 GMT", - "MS-CV": "EDA0aZUC1EK9f5gH/lPdJw.0", + "Date": "Thu, 07 Jul 2022 21:45:07 GMT", + "MS-CV": "RFybZZP4y0e1KxwRFTKsdw.0", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0yQCRYgAAAAAgyTfNZmyBQrLV6/hYNUlxTUVYMzBFREdFMDQxMAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "04lPHYgAAAABaIePx4nUWQ7AK/gS4JXLdU0FPMzFFREdFMTIyMQBjYzkyNzU4ZC0wNWY3LTRhZDYtYWE1ZS0wZmE5NzE4ZDg5ODU=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "1796ms" + "X-Processing-Time": "1033ms" }, "ResponseBody": { "id": "00000000-0000-0000-0000-000000000000", @@ -364,7 +371,7 @@ "billingFrequency": "monthly" } ], - "statusUpdatedDate": "2022-05-27T16:48:08\u002B00:00", + "statusUpdatedDate": "2022-07-07T21:44:56\u002B00:00", "programDetails": { "isVanity": false, "numberType": "shortCode", @@ -376,7 +383,12 @@ "sms", "website" ], + "callToActionTypes": [ + "sms", + "website" + ], "signUpUrl": "https://contoso.com/sign-up", + "callToActionUrl": "https://contoso.com/sign-up", "termsOfServiceUrl": "https://contoso.com/terms", "privacyPolicyUrl": "https://contoso.com/privacy" }, @@ -398,16 +410,22 @@ "supportedProtocols": [ "sms" ], + "supportedProtocol": "sms", "recurrence": "subscription", "helpMessage": "Send \u0027Stop\u0027 to unsubscribe, send \u0027Start\u0027 to resubscribe.", + "helpAnswerToUser": "Send \u0027Stop\u0027 to unsubscribe, send \u0027Start\u0027 to resubscribe.", "optOutMessage": "You\u0027ve been unsubscribed from these messages. Send \u0027Start\u0027 if you want to resubscribe.", + "optOutAnswerToUser": "You\u0027ve been unsubscribed from these messages. Send \u0027Start\u0027 if you want to resubscribe.", "optInMessage": "Someone requested to subscribe this number to receive updates about Contoso\u0027s loyalty program. To confirm subscription, reply to this message with \u0027JOIN\u0027", + "optInMessageToUser": "Someone requested to subscribe this number to receive updates about Contoso\u0027s loyalty program. To confirm subscription, reply to this message with \u0027JOIN\u0027", "optInReply": "JOIN", + "optInAnswerFromUser": "JOIN", "confirmationMessage": "Congrats, you have been successfully subscribed to loyalty program updates. Welcome!", + "optInConfirmationMessageToUser": "Congrats, you have been successfully subscribed to loyalty program updates. Welcome!", "directionality": "twoWay", "useCases": [ { - "contentCategory": "coupons", + "contentType": "marketingAndPromotion", "examples": [ { "messages": [ @@ -420,7 +438,7 @@ ] }, { - "contentCategory": "loyaltyProgram", + "contentType": "loyaltyProgram", "examples": [ { "messages": [ @@ -433,7 +451,7 @@ ] }, { - "contentCategory": "loyaltyProgramPointsPrizes", + "contentType": "sweepstakesOrContest", "examples": [ { "messages": [ diff --git a/sdk/communication/communication-short-codes/review/communication-short-codes.api.md b/sdk/communication/communication-short-codes/review/communication-short-codes.api.md index bd959330e565..9b0352f05f62 100644 --- a/sdk/communication/communication-short-codes/review/communication-short-codes.api.md +++ b/sdk/communication/communication-short-codes/review/communication-short-codes.api.md @@ -19,6 +19,9 @@ export type AttachmentType = "callToAction" | "termsOfService" | "privacyPolicy" // @public export type BillingFrequency = "monthly" | "once"; +// @public +export type CallToActionType = "website" | "pointOfSale" | "sms" | "interactiveVoiceResponse"; + // @public (undocumented) export interface CompanyInformation { address?: string; @@ -61,20 +64,20 @@ export interface ListUSProgramBriefsOptions extends OperationOptions { } // @public -export type MessageContentCategory = "ringTones" | "smsChat" | "video" | "loyaltyProgramPointsPrizes" | "gifting" | "inApplicationBilling" | "textToScreen" | "games" | "audioChat" | "mmsPictures" | "sweepstakesContestAuction" | "financialBanking" | "premiumWap" | "queryService" | "wallpaperScreensaver" | "voting" | "application" | "mobileGivingDonations" | "coupons" | "loyaltyProgram" | "noPointsPrizes" | "informationalAlerts" | "microBilling" | "trivia" | "entertainmentAlerts" | "accountNotification" | "ageGatedContent" | "conversationalMessaging" | "deliveryNotification" | "education" | "emergencyAlerts" | "fraudAlerts" | "loanArrangement" | "onBehalfOfCarrier" | "political" | "promotionalMarketing" | "publicServiceAnnouncements" | "securityAlerts" | "socialMedia" | "twoFactorAuthentication" | "other"; +export type MessageContentType = "accountNotificationInformationalAlerts" | "ageGatedContent" | "chatConversationalMessaging" | "deliveryNotification" | "donationsPledge" | "education" | "fraudAlerts" | "loanArrangement" | "loyaltyProgram" | "marketingAndPromotion" | "mmsPicture" | "mmsVideo" | "oneTimePasswordOrMultiFactorAuthentication" | "political" | "publicServiceAnnouncements" | "securityAlerts" | "socialMedia" | "sweepstakesOrContest" | "votingOrPolling" | "other"; // @public (undocumented) export interface MessageDetails { - // (undocumented) - confirmationMessage?: string; directionality?: MessageDirectionality; - helpMessage?: string; + helpAnswerToUser?: string; + optInAnswerFromUser?: string; // (undocumented) - optInMessage?: string; - optInReply?: string; - optOutMessage?: string; + optInConfirmationMessageToUser?: string; + // (undocumented) + optInMessageToUser?: string; + optOutAnswerToUser?: string; recurrence?: Recurrence; - supportedProtocols?: MessageProtocol[]; + supportedProtocol?: MessageProtocol; useCases?: UseCase[]; } @@ -103,17 +106,17 @@ export type NumberType = "shortCode" | "alphaId"; // @public export interface ProgramBriefAttachment { - fileContent?: string; - fileName?: string; - fileSize?: number; - fileType?: FileType; + fileContentBase64: string; + fileName: string; + fileSizeInBytes?: number; + fileType: FileType; id: string; - type?: AttachmentType; + type: AttachmentType; } // @public export interface ProgramBriefAttachmentSummary { - friendlyName?: string; + fileName?: string; id?: string; type?: AttachmentType; } @@ -123,6 +126,9 @@ export type ProgramBriefStatus = "submitted" | "approved" | "submitNewVanityNumb // @public (undocumented) export interface ProgramDetails { + callToAction?: string; + callToActionTypes?: CallToActionType[]; + callToActionUrl?: string; description?: string; expectedDateOfService?: Date; isPoliticalCampaign?: boolean; @@ -131,15 +137,10 @@ export interface ProgramDetails { numberType?: NumberType; preferredVanityNumbers?: string[]; privacyPolicyUrl?: string; - signUpTypes?: ProgramSignUpType[]; - signUpUrl?: string; termsOfServiceUrl?: string; url?: string; } -// @public -export type ProgramSignUpType = "website" | "pointOfSale" | "sms" | "interactiveVoiceResponse"; - // @public export type Recurrence = "subscription" | "transaction"; @@ -171,7 +172,7 @@ export class ShortCodesClient { constructor(endpoint: string, credential: KeyCredential, options?: ShortCodesClientOptions); constructor(endpoint: string, credential: TokenCredential, options?: ShortCodesClientOptions); // (undocumented) - createOrReplaceUSProgramBriefAttachment(programBriefId: string, attachmentId: string, options?: ShortCodesCreateOrReplaceUSProgramBriefAttachmentOptionalParams): Promise; + createOrReplaceUSProgramBriefAttachment(programBriefId: string, attachmentId: string, fileName: string, fileType: FileType, fileContent: string, attachmentType: AttachmentType, options?: ShortCodesCreateOrReplaceUSProgramBriefAttachmentOptionalParams): Promise; // (undocumented) deleteUSProgramBrief(programBriefId: string, options?: DeleteUSProgramBriefOptions): Promise; // (undocumented) @@ -198,11 +199,7 @@ export interface ShortCodesClientOptions extends CommonClientOptions { // @public export interface ShortCodesCreateOrReplaceUSProgramBriefAttachmentOptionalParams extends coreClient.OperationOptions { - fileContent?: string; - fileName?: string; - fileSize?: number; - fileType?: FileType; - type?: AttachmentType; + fileSizeInBytes?: number; } // @public @@ -246,7 +243,8 @@ export interface TrafficDetails { // @public export interface UseCase { - contentCategory?: MessageContentCategory; + contentType?: MessageContentType; + customContentType?: string; examples?: MessageExampleSequence[]; } diff --git a/sdk/communication/communication-short-codes/samples-dev/createAndDeleteProgramBrief.ts b/sdk/communication/communication-short-codes/samples-dev/createAndDeleteProgramBrief.ts index 01e8f216aa3e..3d802b410c6b 100644 --- a/sdk/communication/communication-short-codes/samples-dev/createAndDeleteProgramBrief.ts +++ b/sdk/communication/communication-short-codes/samples-dev/createAndDeleteProgramBrief.ts @@ -39,10 +39,10 @@ export async function main() { name: "Contoso Loyalty Program", numberType: "shortCode", privacyPolicyUrl: "https://contoso.com/privacy", - signUpTypes: ["sms", "website"], + callToActionTypes: ["sms", "website"], termsOfServiceUrl: "https://contoso.com/terms", url: "https://contoso.com/loyalty-program", - signUpUrl: "https://contoso.com/sign-up", + callToActionUrl: "https://contoso.com/sign-up", }, companyInformation: { address: "1 Contoso Way Redmond, WA 98052", @@ -59,26 +59,26 @@ export async function main() { }, }, messageDetails: { - supportedProtocols: ["sms"], + supportedProtocol: "sms", recurrence: "subscription", useCases: [ { - contentCategory: "coupons", + contentType: "marketingAndPromotion", examples: [{ messages: [{ direction: "fromUser", text: "txtMessage" }] }], }, { - contentCategory: "loyaltyProgram", + contentType: "loyaltyProgram", examples: [{ messages: [{ direction: "toUser", text: "txtMessage" }] }], }, { - contentCategory: "loyaltyProgramPointsPrizes", + contentType: "sweepstakesOrContest", examples: [{ messages: [{ direction: "toUser", text: "txtMessage" }] }], }, ], - optInMessage: + optInMessageToUser: "Someone requested to subscribe this number to receive updates about Contoso's loyalty program. To confirm subscription, reply to this message with 'JOIN'", - optInReply: "JOIN", - confirmationMessage: + optInAnswerFromUser: "JOIN", + optInConfirmationMessageToUser: "Congrats, you have been successfully subscribed to loyalty program updates. Welcome!", directionality: "twoWay", }, diff --git a/sdk/communication/communication-short-codes/src/generated/src/models/index.ts b/sdk/communication/communication-short-codes/src/generated/src/models/index.ts index 5932dff155fb..fa01161357b3 100644 --- a/sdk/communication/communication-short-codes/src/generated/src/models/index.ts +++ b/sdk/communication/communication-short-codes/src/generated/src/models/index.ts @@ -131,9 +131,11 @@ export interface ProgramDetails { /** URL for the program or company. */ url?: string; /** Indicates how the consumer can sign up to the program e.g. 'website', 'pointOfSale' and/or 'sms'. */ - signUpTypes?: ProgramSignUpType[]; + callToActionTypes?: CallToActionType[]; /** URL for "call to action" image for the program. */ - signUpUrl?: string; + callToActionUrl?: string; + /** Call to action text. To be provided when InteractiveVoiceResponse is specified as call to action type */ + callToAction?: string; /** URL for program terms of service. */ termsOfServiceUrl?: string; /** URL for privacy policy. */ @@ -178,24 +180,24 @@ export interface CustomerCareInformation { } export interface MessageDetails { - /** Applicable message protocols used in the program e.g. SMS, MMS. */ - supportedProtocols?: MessageProtocol[]; + /** Applicable message protocol used in the program e.g. SMS or MMS. */ + supportedProtocol?: MessageProtocol; /** Indicates the nature of the messaging associated with the program e.g. 'subscription', 'transaction'. */ recurrence?: Recurrence; /** * Message text for mobile terminated message associated with HELP keyword * e.g 'This is the HELP message test.'. */ - helpMessage?: string; + helpAnswerToUser?: string; /** * "Message text for mobile terminated message associated with STOP keyword * e.g. 'This is the STOP message test.'. */ - optOutMessage?: string; - optInMessage?: string; + optOutAnswerToUser?: string; + optInMessageToUser?: string; /** Keyword used to confirm double Opt-In method e.g. 'JOIN'. */ - optInReply?: string; - confirmationMessage?: string; + optInAnswerFromUser?: string; + optInConfirmationMessageToUser?: string; /** Describes directionality e.g. oneWay or twoWay */ directionality?: MessageDirectionality; /** Provides message exchange examples from and to end user for each supported message content type. */ @@ -204,8 +206,10 @@ export interface MessageDetails { /** Describes a messaging use case for a given content type by providing example messages. */ export interface UseCase { - /** Indicates the messaging content category used in the program e.g. 'ringTones', 'smsChat', 'video', 'loyaltyProgramPointsPrizes', 'gifting', 'inApplicationBilling', 'textToScreen'. */ - contentCategory?: MessageContentCategory; + /** Indicates the messaging content type used in the program e.g. 'accountNotificationInformationalAlerts', 'chatConversationalMessaging', 'mmsVideo', 'socialMedia'. */ + contentType?: MessageContentType; + /** Indicates the messaging content type used in the program whenever it is not any of the pre-defined content types */ + customContentType?: string; /** Example messages to be sent to and from the end user for the indicated content type. */ examples?: MessageExampleSequence[]; } @@ -252,10 +256,10 @@ export interface ProgramBriefAttachmentSummary { */ type?: AttachmentType; /** - * A friendly name to refer to the attachment + * The name of the attached file * e.g. 'myFile01' */ - friendlyName?: string; + fileName?: string; } /** A wrapper for a list of USProgramBrief entities. */ @@ -274,21 +278,21 @@ export interface ProgramBriefAttachment { * Attachment type describing the purpose of the attachment * e.g. 'callToAction', 'termsOfService' */ - type?: AttachmentType; + type: AttachmentType; /** - * A friendly name to refer to the attachment + * The name of the file being attached * e.g. 'myFile01' */ - fileName?: string; + fileName: string; /** File size in bytes. */ - fileSize?: number; + fileSizeInBytes?: number; /** * The type of file being attached * e.g. 'pdf', 'jpg', 'png' */ - fileType?: FileType; + fileType: FileType; /** File content as base 64 encoded string */ - fileContent?: string; + fileContentBase64: string; } /** A wrapper for a list of ProgramBriefAttachment entities. */ @@ -311,8 +315,8 @@ export type ProgramBriefStatus = | "denied"; /** Defines values for BillingFrequency. */ export type BillingFrequency = "monthly" | "once"; -/** Defines values for ProgramSignUpType. */ -export type ProgramSignUpType = +/** Defines values for CallToActionType. */ +export type CallToActionType = | "website" | "pointOfSale" | "sms" @@ -323,48 +327,27 @@ export type MessageProtocol = "sms" | "mms"; export type Recurrence = "subscription" | "transaction"; /** Defines values for MessageDirectionality. */ export type MessageDirectionality = "oneWay" | "twoWay"; -/** Defines values for MessageContentCategory. */ -export type MessageContentCategory = - | "ringTones" - | "smsChat" - | "video" - | "loyaltyProgramPointsPrizes" - | "gifting" - | "inApplicationBilling" - | "textToScreen" - | "games" - | "audioChat" - | "mmsPictures" - | "sweepstakesContestAuction" - | "financialBanking" - | "premiumWap" - | "queryService" - | "wallpaperScreensaver" - | "voting" - | "application" - | "mobileGivingDonations" - | "coupons" - | "loyaltyProgram" - | "noPointsPrizes" - | "informationalAlerts" - | "microBilling" - | "trivia" - | "entertainmentAlerts" - | "accountNotification" +/** Defines values for MessageContentType. */ +export type MessageContentType = + | "accountNotificationInformationalAlerts" | "ageGatedContent" - | "conversationalMessaging" + | "chatConversationalMessaging" | "deliveryNotification" + | "donationsPledge" | "education" - | "emergencyAlerts" | "fraudAlerts" | "loanArrangement" - | "onBehalfOfCarrier" + | "loyaltyProgram" + | "marketingAndPromotion" + | "mmsPicture" + | "mmsVideo" + | "oneTimePasswordOrMultiFactorAuthentication" | "political" - | "promotionalMarketing" | "publicServiceAnnouncements" | "securityAlerts" | "socialMedia" - | "twoFactorAuthentication" + | "sweepstakesOrContest" + | "votingOrPolling" | "other"; /** Defines values for MessageDirection. */ export type MessageDirection = "toUser" | "fromUser"; @@ -432,25 +415,8 @@ export type ShortCodesGetUSProgramBriefsResponse = USProgramBriefs; /** Optional parameters. */ export interface ShortCodesCreateOrReplaceUSProgramBriefAttachmentOptionalParams extends coreClient.OperationOptions { - /** - * Attachment type describing the purpose of the attachment - * e.g. 'callToAction', 'termsOfService' - */ - type?: AttachmentType; - /** - * A friendly name to refer to the attachment - * e.g. 'myFile01' - */ - fileName?: string; /** File size in bytes. */ - fileSize?: number; - /** - * The type of file being attached - * e.g. 'pdf', 'jpg', 'png' - */ - fileType?: FileType; - /** File content as base 64 encoded string */ - fileContent?: string; + fileSizeInBytes?: number; } /** Contains response data for the createOrReplaceUSProgramBriefAttachment operation. */ diff --git a/sdk/communication/communication-short-codes/src/generated/src/models/mappers.ts b/sdk/communication/communication-short-codes/src/generated/src/models/mappers.ts index 94481247100c..5ced166b3914 100644 --- a/sdk/communication/communication-short-codes/src/generated/src/models/mappers.ts +++ b/sdk/communication/communication-short-codes/src/generated/src/models/mappers.ts @@ -352,8 +352,8 @@ export const ProgramDetails: coreClient.CompositeMapper = { name: "String" } }, - signUpTypes: { - serializedName: "signUpTypes", + callToActionTypes: { + serializedName: "callToActionTypes", type: { name: "Sequence", element: { @@ -369,8 +369,14 @@ export const ProgramDetails: coreClient.CompositeMapper = { } } }, - signUpUrl: { - serializedName: "signUpUrl", + callToActionUrl: { + serializedName: "callToActionUrl", + type: { + name: "String" + } + }, + callToAction: { + serializedName: "callToAction", type: { name: "String" } @@ -491,16 +497,10 @@ export const MessageDetails: coreClient.CompositeMapper = { name: "Composite", className: "MessageDetails", modelProperties: { - supportedProtocols: { - serializedName: "supportedProtocols", + supportedProtocol: { + serializedName: "supportedProtocol", type: { - name: "Sequence", - element: { - type: { - name: "Enum", - allowedValues: ["sms", "mms"] - } - } + name: "String" } }, recurrence: { @@ -509,32 +509,32 @@ export const MessageDetails: coreClient.CompositeMapper = { name: "String" } }, - helpMessage: { - serializedName: "helpMessage", + helpAnswerToUser: { + serializedName: "helpAnswerToUser", type: { name: "String" } }, - optOutMessage: { - serializedName: "optOutMessage", + optOutAnswerToUser: { + serializedName: "optOutAnswerToUser", type: { name: "String" } }, - optInMessage: { - serializedName: "optInMessage", + optInMessageToUser: { + serializedName: "optInMessageToUser", type: { name: "String" } }, - optInReply: { - serializedName: "optInReply", + optInAnswerFromUser: { + serializedName: "optInAnswerFromUser", type: { name: "String" } }, - confirmationMessage: { - serializedName: "confirmationMessage", + optInConfirmationMessageToUser: { + serializedName: "optInConfirmationMessageToUser", type: { name: "String" } @@ -566,8 +566,14 @@ export const UseCase: coreClient.CompositeMapper = { name: "Composite", className: "UseCase", modelProperties: { - contentCategory: { - serializedName: "contentCategory", + contentType: { + serializedName: "contentType", + type: { + name: "String" + } + }, + customContentType: { + serializedName: "customContentType", type: { name: "String" } @@ -708,8 +714,8 @@ export const ProgramBriefAttachmentSummary: coreClient.CompositeMapper = { name: "String" } }, - friendlyName: { - serializedName: "friendlyName", + fileName: { + serializedName: "fileName", type: { name: "String" } @@ -759,30 +765,34 @@ export const ProgramBriefAttachment: coreClient.CompositeMapper = { }, type: { serializedName: "type", + required: true, type: { name: "String" } }, fileName: { serializedName: "fileName", + required: true, type: { name: "String" } }, - fileSize: { - serializedName: "fileSize", + fileSizeInBytes: { + serializedName: "fileSizeInBytes", type: { name: "Number" } }, fileType: { serializedName: "fileType", + required: true, type: { name: "String" } }, - fileContent: { - serializedName: "fileContent", + fileContentBase64: { + serializedName: "fileContentBase64", + required: true, type: { name: "String" } diff --git a/sdk/communication/communication-short-codes/src/generated/src/models/parameters.ts b/sdk/communication/communication-short-codes/src/generated/src/models/parameters.ts index c16775a917b2..224f5f4fb0c4 100644 --- a/sdk/communication/communication-short-codes/src/generated/src/models/parameters.ts +++ b/sdk/communication/communication-short-codes/src/generated/src/models/parameters.ts @@ -120,27 +120,27 @@ export const id: OperationParameter = { }; export const type: OperationParameter = { - parameterPath: ["options", "type"], + parameterPath: "type", mapper: ProgramBriefAttachmentMapper }; export const fileName: OperationParameter = { - parameterPath: ["options", "fileName"], + parameterPath: "fileName", mapper: ProgramBriefAttachmentMapper }; -export const fileSize: OperationParameter = { - parameterPath: ["options", "fileSize"], +export const fileSizeInBytes: OperationParameter = { + parameterPath: ["options", "fileSizeInBytes"], mapper: ProgramBriefAttachmentMapper }; export const fileType: OperationParameter = { - parameterPath: ["options", "fileType"], + parameterPath: "fileType", mapper: ProgramBriefAttachmentMapper }; -export const fileContent: OperationParameter = { - parameterPath: ["options", "fileContent"], +export const fileContentBase64: OperationParameter = { + parameterPath: "fileContentBase64", mapper: ProgramBriefAttachmentMapper }; diff --git a/sdk/communication/communication-short-codes/src/generated/src/operations/shortCodesOperations.ts b/sdk/communication/communication-short-codes/src/generated/src/operations/shortCodesOperations.ts index aff84eb9374a..51176edf4494 100644 --- a/sdk/communication/communication-short-codes/src/generated/src/operations/shortCodesOperations.ts +++ b/sdk/communication/communication-short-codes/src/generated/src/operations/shortCodesOperations.ts @@ -31,6 +31,8 @@ import { ShortCodesSubmitUSProgramBriefOptionalParams, ShortCodesSubmitUSProgramBriefResponse, ShortCodesGetUSProgramBriefsResponse, + AttachmentType, + FileType, ShortCodesCreateOrReplaceUSProgramBriefAttachmentOptionalParams, ShortCodesCreateOrReplaceUSProgramBriefAttachmentResponse, ShortCodesGetUSProgramBriefAttachmentOptionalParams, @@ -292,16 +294,36 @@ export class ShortCodesOperationsImpl implements ShortCodesOperations { * @param programBriefId Program Brief Id. Must be a valid GUID * @param attachmentId Attachment Id. Must be a valid GUID * @param id Program Brief Attachment Id. + * @param fileName The name of the file being attached + * e.g. 'myFile01' + * @param fileType The type of file being attached + * e.g. 'pdf', 'jpg', 'png' + * @param fileContentBase64 File content as base 64 encoded string + * @param type Attachment type describing the purpose of the attachment + * e.g. 'callToAction', 'termsOfService' * @param options The options parameters. */ createOrReplaceUSProgramBriefAttachment( programBriefId: string, attachmentId: string, id: string, + fileName: string, + fileType: FileType, + fileContentBase64: string, + type: AttachmentType, options?: ShortCodesCreateOrReplaceUSProgramBriefAttachmentOptionalParams ): Promise { return this.client.sendOperationRequest( - { programBriefId, attachmentId, id, options }, + { + programBriefId, + attachmentId, + id, + fileName, + fileType, + fileContentBase64, + type, + options + }, createOrReplaceUSProgramBriefAttachmentOperationSpec ); } @@ -523,11 +545,11 @@ const createOrReplaceUSProgramBriefAttachmentOperationSpec: coreClient.Operation requestBody: { parameterPath: { id: ["id"], - type: ["options", "type"], - fileName: ["options", "fileName"], - fileSize: ["options", "fileSize"], - fileType: ["options", "fileType"], - fileContent: ["options", "fileContent"] + type: ["type"], + fileName: ["fileName"], + fileSizeInBytes: ["options", "fileSizeInBytes"], + fileType: ["fileType"], + fileContentBase64: ["fileContentBase64"] }, mapper: { ...Mappers.ProgramBriefAttachment, required: true } }, diff --git a/sdk/communication/communication-short-codes/src/generated/src/operationsInterfaces/shortCodesOperations.ts b/sdk/communication/communication-short-codes/src/generated/src/operationsInterfaces/shortCodesOperations.ts index 1fe7091ae6b9..a60b711175af 100644 --- a/sdk/communication/communication-short-codes/src/generated/src/operationsInterfaces/shortCodesOperations.ts +++ b/sdk/communication/communication-short-codes/src/generated/src/operationsInterfaces/shortCodesOperations.ts @@ -21,6 +21,8 @@ import { ShortCodesGetUSProgramBriefResponse, ShortCodesSubmitUSProgramBriefOptionalParams, ShortCodesSubmitUSProgramBriefResponse, + AttachmentType, + FileType, ShortCodesCreateOrReplaceUSProgramBriefAttachmentOptionalParams, ShortCodesCreateOrReplaceUSProgramBriefAttachmentResponse, ShortCodesGetUSProgramBriefAttachmentOptionalParams, @@ -95,12 +97,23 @@ export interface ShortCodesOperations { * @param programBriefId Program Brief Id. Must be a valid GUID * @param attachmentId Attachment Id. Must be a valid GUID * @param id Program Brief Attachment Id. + * @param fileName The name of the file being attached + * e.g. 'myFile01' + * @param fileType The type of file being attached + * e.g. 'pdf', 'jpg', 'png' + * @param fileContentBase64 File content as base 64 encoded string + * @param type Attachment type describing the purpose of the attachment + * e.g. 'callToAction', 'termsOfService' * @param options The options parameters. */ createOrReplaceUSProgramBriefAttachment( programBriefId: string, attachmentId: string, id: string, + fileName: string, + fileType: FileType, + fileContentBase64: string, + type: AttachmentType, options?: ShortCodesCreateOrReplaceUSProgramBriefAttachmentOptionalParams ): Promise; /** diff --git a/sdk/communication/communication-short-codes/src/generated/src/shortCodesClientContext.ts b/sdk/communication/communication-short-codes/src/generated/src/shortCodesClientContext.ts index baa9d060ca3d..ab32a036109d 100644 --- a/sdk/communication/communication-short-codes/src/generated/src/shortCodesClientContext.ts +++ b/sdk/communication/communication-short-codes/src/generated/src/shortCodesClientContext.ts @@ -31,7 +31,7 @@ export class ShortCodesClientContext extends coreClient.ServiceClient { requestContentType: "application/json; charset=utf-8" }; - const packageDetails = `azsdk-js-communication-short-codes/1.0.0-beta.2`; + const packageDetails = `azsdk-js-communication-short-codes/1.0.0-beta.3`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` diff --git a/sdk/communication/communication-short-codes/src/models.ts b/sdk/communication/communication-short-codes/src/models.ts index 22141a7403b1..2a821f74cbd6 100644 --- a/sdk/communication/communication-short-codes/src/models.ts +++ b/sdk/communication/communication-short-codes/src/models.ts @@ -42,7 +42,7 @@ export { ShortCodesGetShortCodesOptionalParams, ShortCodesUpsertUSProgramBriefOptionalParams, BillingFrequency, - ProgramSignUpType, + CallToActionType, ContactInformation, CustomerCareInformation, Recurrence, @@ -50,7 +50,7 @@ export { ReviewNote, MessageProtocol, MessageDirectionality, - MessageContentCategory, + MessageContentType, MessageExampleSequence, MessageExample, MessageDirection, diff --git a/sdk/communication/communication-short-codes/src/shortCodesClient.ts b/sdk/communication/communication-short-codes/src/shortCodesClient.ts index d8a990b4949e..aaf354f5926b 100644 --- a/sdk/communication/communication-short-codes/src/shortCodesClient.ts +++ b/sdk/communication/communication-short-codes/src/shortCodesClient.ts @@ -3,7 +3,9 @@ /// import { CommonClientOptions, InternalClientPipelineOptions } from "@azure/core-client"; import { + AttachmentType, DeleteUSProgramBriefOptions, + FileType, GetUSProgramBriefOptions, ListShortCodesOptions, ListUSProgramBriefsOptions, @@ -275,8 +277,12 @@ export class ShortCodesClient { public async createOrReplaceUSProgramBriefAttachment( programBriefId: string, attachmentId: string, + fileName: string, + fileType: FileType, + fileContent: string, + attachmentType: AttachmentType, options: ShortCodesCreateOrReplaceUSProgramBriefAttachmentOptionalParams = {} - ): Promise { + ): Promise { const { span, updatedOptions } = createSpan( "ShortCodesClient-createOrReplaceUSProgramBriefAttachment", options @@ -286,6 +292,10 @@ export class ShortCodesClient { programBriefId, attachmentId, attachmentId, + fileName, + fileType, + fileContent, + attachmentType, updatedOptions ); } catch (e) { diff --git a/sdk/communication/communication-short-codes/src/utils/constants.ts b/sdk/communication/communication-short-codes/src/utils/constants.ts index 328eef7797c9..59f5aec833e1 100644 --- a/sdk/communication/communication-short-codes/src/utils/constants.ts +++ b/sdk/communication/communication-short-codes/src/utils/constants.ts @@ -1,4 +1,4 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -export const SDK_VERSION: string = "1.0.0-beta.2"; +export const SDK_VERSION: string = "1.0.0-beta.3"; diff --git a/sdk/communication/communication-short-codes/swagger/README.md b/sdk/communication/communication-short-codes/swagger/README.md index 37f5abb24325..876e2f4b4de5 100644 --- a/sdk/communication/communication-short-codes/swagger/README.md +++ b/sdk/communication/communication-short-codes/swagger/README.md @@ -7,7 +7,7 @@ ```yaml package-name: "@azure/communication-short-codes" description: Short code acquiring and management client -package-version: 1.0.0-beta.2 +package-version: 1.0.0-beta.3 generate-metadata: false license-header: MICROSOFT_MIT_NO_VERSION output-folder: ../src/generated diff --git a/sdk/communication/communication-short-codes/swagger/shortcodes.json b/sdk/communication/communication-short-codes/swagger/shortcodes.json index e96f27676cf5..7fa91e9f3529 100644 --- a/sdk/communication/communication-short-codes/swagger/shortcodes.json +++ b/sdk/communication/communication-short-codes/swagger/shortcodes.json @@ -1,7 +1,7 @@ { "swagger": "2.0", "info": { - "title": "ShortCodesNumbersClient", + "title": "ShortCodesClient", "description": "The short codes client uses Azure Communication Services to purchase and manage short codes.", "version": "2021-10-25-preview" }, @@ -680,7 +680,7 @@ "description": "URL for the program or company.", "type": "string" }, - "signUpTypes": { + "callToActionTypes": { "description": "Indicates how the consumer can sign up to the program e.g. 'website', 'pointOfSale' and/or 'sms'.", "type": "array", "items": { @@ -693,16 +693,20 @@ ], "type": "string", "x-ms-enum": { - "name": "ProgramSignUpType", + "name": "CallToActionType", "modelAsString": true } } }, - "signUpUrl": { + "callToActionUrl": { "format": "uri", "description": "URL for \"call to action\" image for the program.", "type": "string" }, + "callToAction": { + "description": "Call to action text. To be provided when InteractiveVoiceResponse is specified as call to action type", + "type": "string" + }, "termsOfServiceUrl": { "format": "uri", "description": "URL for program terms of service.", @@ -817,57 +821,40 @@ "description": "Describes a messaging use case for a given content type by providing example messages.", "type": "object", "properties": { - "contentCategory": { - "description": "Indicates the messaging content category used in the program e.g. 'ringTones', 'smsChat', 'video', 'loyaltyProgramPointsPrizes', 'gifting', 'inApplicationBilling', 'textToScreen'.", + "contentType": { + "description": "Indicates the messaging content type used in the program e.g. 'accountNotificationInformationalAlerts', 'chatConversationalMessaging', 'mmsVideo', 'socialMedia'.", "enum": [ - "ringTones", - "smsChat", - "video", - "loyaltyProgramPointsPrizes", - "gifting", - "inApplicationBilling", - "textToScreen", - "games", - "audioChat", - "mmsPictures", - "sweepstakesContestAuction", - "financialBanking", - "premiumWap", - "queryService", - "wallpaperScreensaver", - "voting", - "application", - "mobileGivingDonations", - "coupons", - "loyaltyProgram", - "noPointsPrizes", - "informationalAlerts", - "microBilling", - "trivia", - "entertainmentAlerts", - "accountNotification", + "accountNotificationInformationalAlerts", "ageGatedContent", - "conversationalMessaging", + "chatConversationalMessaging", "deliveryNotification", + "donationsPledge", "education", - "emergencyAlerts", "fraudAlerts", "loanArrangement", - "onBehalfOfCarrier", + "loyaltyProgram", + "marketingAndPromotion", + "mmsPicture", + "mmsVideo", + "oneTimePasswordOrMultiFactorAuthentication", "political", - "promotionalMarketing", "publicServiceAnnouncements", "securityAlerts", "socialMedia", - "twoFactorAuthentication", + "sweepstakesOrContest", + "votingOrPolling", "other" ], "type": "string", "x-ms-enum": { - "name": "MessageContentCategory", + "name": "MessageContentType", "modelAsString": true } }, + "customContentType": { + "description": "Indicates the messaging content type used in the program whenever it is not any of the pre-defined content types", + "type": "string" + }, "examples": { "description": "Example messages to be sent to and from the end user for the indicated content type.", "type": "array", @@ -880,20 +867,16 @@ "MessageDetails": { "type": "object", "properties": { - "supportedProtocols": { - "description": "Applicable message protocols used in the program e.g. SMS, MMS.", - "type": "array", - "items": { - "description": "Applicable message protocols to be used in a program.", - "enum": [ - "sms", - "mms" - ], - "type": "string", - "x-ms-enum": { - "name": "MessageProtocol", - "modelAsString": true - } + "supportedProtocol": { + "description": "Applicable message protocol used in the program e.g. SMS or MMS.", + "enum": [ + "sms", + "mms" + ], + "type": "string", + "x-ms-enum": { + "name": "MessageProtocol", + "modelAsString": true } }, "recurrence": { @@ -908,22 +891,22 @@ "modelAsString": true } }, - "helpMessage": { + "helpAnswerToUser": { "description": "Message text for mobile terminated message associated with HELP keyword\r\ne.g 'This is the HELP message test.'.", "type": "string" }, - "optOutMessage": { + "optOutAnswerToUser": { "description": "\"Message text for mobile terminated message associated with STOP keyword\r\ne.g. 'This is the STOP message test.'.", "type": "string" }, - "optInMessage": { + "optInMessageToUser": { "type": "string" }, - "optInReply": { + "optInAnswerFromUser": { "description": "Keyword used to confirm double Opt-In method e.g. 'JOIN'.", "type": "string" }, - "confirmationMessage": { + "optInConfirmationMessageToUser": { "type": "string" }, "directionality": { @@ -1011,8 +994,8 @@ "modelAsString": true } }, - "friendlyName": { - "description": "A friendly name to refer to the attachment\r\ne.g. 'myFile01'", + "fileName": { + "description": "The name of the attached file\r\ne.g. 'myFile01'", "type": "string" } } @@ -1114,7 +1097,11 @@ "ProgramBriefAttachment": { "description": "A File Attachment for a Program Brief", "required": [ - "id" + "fileContentBase64", + "fileName", + "fileType", + "id", + "type" ], "type": "object", "properties": { @@ -1138,10 +1125,10 @@ } }, "fileName": { - "description": "A friendly name to refer to the attachment\r\ne.g. 'myFile01'", + "description": "The name of the file being attached\r\ne.g. 'myFile01'", "type": "string" }, - "fileSize": { + "fileSizeInBytes": { "format": "int32", "description": "File size in bytes.", "type": "integer" @@ -1160,7 +1147,7 @@ "modelAsString": true } }, - "fileContent": { + "fileContentBase64": { "description": "File content as base 64 encoded string", "type": "string" } diff --git a/sdk/communication/communication-short-codes/test/public/manageProgramBriefAttachment.spec.ts b/sdk/communication/communication-short-codes/test/public/manageProgramBriefAttachment.spec.ts index 596032dda64d..03e01060bd71 100644 --- a/sdk/communication/communication-short-codes/test/public/manageProgramBriefAttachment.spec.ts +++ b/sdk/communication/communication-short-codes/test/public/manageProgramBriefAttachment.spec.ts @@ -3,8 +3,8 @@ import { ShortCodesClient, ShortCodesUpsertUSProgramBriefOptionalParams } from "../../src"; import { - assertProgramBriefAttachmentApiReachable, - assertProgramBriefAttachmentPageableApiReachable, + doesProgramBriefContainAnyAttachment, + getProgramBriefAttachmentWithId, getTestProgramBriefAttachment, } from "./utils/testProgramBriefAttachment"; import { doesProgramBriefExist, getTestUSProgramBrief } from "./utils/testUSProgramBrief"; @@ -50,17 +50,43 @@ describe(`ShortCodesClient - manage Attachments`, function () { const attachment = getTestProgramBriefAttachment(); - await assertProgramBriefAttachmentPageableApiReachable( - () => client.listUSProgramBriefAttachments(uspb.id), - "Listing all Program Brief Attachments" + assert.isFalse( + await doesProgramBriefContainAnyAttachment(client, uspb.id), + "Recently created Program Brief already contain attachments" + ); + + const attachmentCreationResult = await client.createOrReplaceUSProgramBriefAttachment( + uspb.id, + attachment.id, + attachment.fileName, + attachment.fileType, + attachment.fileContentBase64, + attachment.type ); - await assertProgramBriefAttachmentApiReachable( - () => client.getUSProgramBriefAttachment(uspb.id, attachment.id), - "Getting a specific Program Brief Attachment" + + assert.isOk(attachmentCreationResult); + + const existingAttachment = await client.getUSProgramBriefAttachment(uspb.id, attachment.id); + + assert.equal(existingAttachment.id, attachment.id); + assert.equal(existingAttachment.fileName, attachment.fileName); + assert.equal(existingAttachment.fileType, attachment.fileType); + assert.equal(existingAttachment.type, attachment.type); + + const listedAttachment = await getProgramBriefAttachmentWithId(client, uspb.id, attachment.id); + + assert.isOk(listedAttachment); + + let delRes = await client.deleteUSProgramBriefAttachment(uspb.id, attachment.id); + assert.isOk(delRes, "Deleting Program Brief Attachment failed"); + + assert.isFalse( + await doesProgramBriefContainAnyAttachment(client, uspb.id), + "Failed to delete Program Brief Attachment" ); // delete program brief, ensure it was removed - const delRes = await client.deleteUSProgramBrief(uspb.id); + delRes = await client.deleteUSProgramBrief(uspb.id); assert.isOk(delRes, "Deleting program brief failed"); assert.isFalse( await doesProgramBriefExist(client, uspb.id), diff --git a/sdk/communication/communication-short-codes/test/public/manageUSProgramBriefs.spec.ts b/sdk/communication/communication-short-codes/test/public/manageUSProgramBriefs.spec.ts index 6b4993b456f5..65a79b552872 100644 --- a/sdk/communication/communication-short-codes/test/public/manageUSProgramBriefs.spec.ts +++ b/sdk/communication/communication-short-codes/test/public/manageUSProgramBriefs.spec.ts @@ -35,7 +35,7 @@ describe(`ShortCodesClient - creates, gets, updates, lists, and deletes US Progr body: { id: uspb.id, programDetails: { - signUpUrl: "https://endpoint/updated-sign-up", + callToActionUrl: "https://endpoint/updated-sign-up", privacyPolicyUrl: "https://endpoint/updated-privacy", termsOfServiceUrl: "https://endpoint/updated-terms", }, @@ -64,7 +64,7 @@ describe(`ShortCodesClient - creates, gets, updates, lists, and deletes US Progr // update program brief by calling upsert if (uspb.programDetails) { - uspb.programDetails.signUpUrl = updateRequest.body?.programDetails?.signUpUrl; + uspb.programDetails.callToActionUrl = updateRequest.body?.programDetails?.callToActionUrl; uspb.programDetails.privacyPolicyUrl = updateRequest.body?.programDetails?.privacyPolicyUrl; uspb.programDetails.termsOfServiceUrl = updateRequest.body?.programDetails?.termsOfServiceUrl; } diff --git a/sdk/communication/communication-short-codes/test/public/utils/testProgramBriefAttachment.ts b/sdk/communication/communication-short-codes/test/public/utils/testProgramBriefAttachment.ts index f99c48442003..64ad2584b0cc 100644 --- a/sdk/communication/communication-short-codes/test/public/utils/testProgramBriefAttachment.ts +++ b/sdk/communication/communication-short-codes/test/public/utils/testProgramBriefAttachment.ts @@ -1,9 +1,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { ProgramBriefAttachment } from "../../../src"; -import { RestError } from "@azure/core-rest-pipeline"; +import { ProgramBriefAttachment, ShortCodesClient } from "../../../src"; export function getTestProgramBriefAttachment(): ProgramBriefAttachment { const testProgramBriefAttachment: ProgramBriefAttachment = { @@ -11,38 +9,51 @@ export function getTestProgramBriefAttachment(): ProgramBriefAttachment { fileType: "png", type: "callToAction", fileName: "testFriendlyName", + fileContentBase64: + "iVBORw0KGgoAAAANSUhEUgAAAAYAAAAHCAIAAACk8qu6AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAALEoAACxKAXd6dE0AAAAjSURBVBhXY/iPAXALrVixorW1FcKGCgH5DAxQNklmIcD//wCoTHalyfy2/AAAAABJRU5ErkJggg==", }; return testProgramBriefAttachment; } -export async function assertProgramBriefAttachmentApiReachable( - spec: () => Promise, - context: string -): Promise { - try { - await spec(); - } catch (error) { - if (error instanceof RestError) { - if (error.response?.bodyAsText && error.response.bodyAsText.length > 0) { - return; - } else { - console.error( - `Failed to call a Program Brief Attachment API. It looks like the API for '${context}' is not reachable.` - ); - } - } +export async function doesProgramBriefContainAnyAttachment( + client: ShortCodesClient, + programBriefId: string +): Promise { + return doesProgramBriefContainAttachment(client, programBriefId, (_) => true); +} - throw error; - } +export async function doesProgramBriefContainAttachment( + client: ShortCodesClient, + programBriefId: string, + predicate: (attachment: ProgramBriefAttachment) => boolean +): Promise { + const attachment = await getProgramBriefAttachment(client, programBriefId, predicate); + return !!attachment; +} + +export async function getProgramBriefAttachmentWithId( + client: ShortCodesClient, + programBriefId: string, + attachmentId: string +): Promise { + return getProgramBriefAttachment( + client, + programBriefId, + (attachment) => attachment.id === attachmentId + ); } -export async function assertProgramBriefAttachmentPageableApiReachable( - spec: () => PagedAsyncIterableIterator, - context: string -): Promise { - await assertProgramBriefAttachmentApiReachable(async () => { - const page = spec(); - await page.next(); - }, context); +async function getProgramBriefAttachment( + client: ShortCodesClient, + programBriefId: string, + predicate: (attachment: ProgramBriefAttachment) => boolean +): Promise { + for await (const attachment of client.listUSProgramBriefAttachments(programBriefId)) { + if (predicate(attachment)) { + return attachment; + } + } + + return null; } diff --git a/sdk/communication/communication-short-codes/test/public/utils/testUSProgramBrief.ts b/sdk/communication/communication-short-codes/test/public/utils/testUSProgramBrief.ts index 80ed67e71417..5009386cfb6c 100644 --- a/sdk/communication/communication-short-codes/test/public/utils/testUSProgramBrief.ts +++ b/sdk/communication/communication-short-codes/test/public/utils/testUSProgramBrief.ts @@ -5,6 +5,13 @@ import { RestError } from "@azure/core-rest-pipeline"; import { ShortCodesClient } from "../../../src"; import { USProgramBrief } from "../../../src"; import { assert } from "chai"; +import { + CompanyInformation, + MessageDetails, + ProgramDetails, + TrafficDetails, +} from "../../../src/generated/src/models/mappers"; +import { CompositeMapper } from "@azure/core-client"; export function getTestUSProgramBrief(): USProgramBrief { const testUSProgramBrief: USProgramBrief = { @@ -17,10 +24,10 @@ export function getTestUSProgramBrief(): USProgramBrief { name: "Contoso Loyalty Program", numberType: "shortCode", privacyPolicyUrl: "https://contoso.com/privacy", - signUpTypes: ["sms", "website"], + callToActionTypes: ["sms", "website"], termsOfServiceUrl: "https://contoso.com/terms", url: "https://endpoint/loyalty-program", - signUpUrl: "https://contoso.com/sign-up", + callToActionUrl: "https://contoso.com/sign-up", }, companyInformation: { address: "1 Contoso Way Redmond, WA 98052", @@ -37,30 +44,30 @@ export function getTestUSProgramBrief(): USProgramBrief { }, }, messageDetails: { - supportedProtocols: ["sms"], + supportedProtocol: "sms", recurrence: "subscription", useCases: [ { - contentCategory: "coupons", + contentType: "marketingAndPromotion", examples: [{ messages: [{ direction: "fromUser", text: "txtMessage" }] }], }, { - contentCategory: "loyaltyProgram", + contentType: "loyaltyProgram", examples: [{ messages: [{ direction: "toUser", text: "txtMessage" }] }], }, { - contentCategory: "loyaltyProgramPointsPrizes", + contentType: "sweepstakesOrContest", examples: [{ messages: [{ direction: "toUser", text: "txtMessage" }] }], }, ], - optInMessage: + optInMessageToUser: "Someone requested to subscribe this number to receive updates about Contoso's loyalty program. To confirm subscription, reply to this message with 'JOIN'", - optInReply: "JOIN", - confirmationMessage: + optInAnswerFromUser: "JOIN", + optInConfirmationMessageToUser: "Congrats, you have been successfully subscribed to loyalty program updates. Welcome!", directionality: "twoWay", - helpMessage: "Send 'Stop' to unsubscribe, send 'Start' to resubscribe.", - optOutMessage: + helpAnswerToUser: "Send 'Stop' to unsubscribe, send 'Start' to resubscribe.", + optOutAnswerToUser: "You've been unsubscribed from these messages. Send 'Start' if you want to resubscribe.", }, trafficDetails: { @@ -83,26 +90,66 @@ export function assertEditableFieldsAreEqual( messageContext: string ): void { assert.equal(expected.id, actual.id, `Program brief Id is incorrect - ${messageContext}`); - assert.deepEqual( - expected.programDetails, - actual.programDetails, - `Program Details do not match - ${messageContext}` - ); - assert.deepEqual( - expected.companyInformation, - actual.companyInformation, - `Company Information does not match - ${messageContext}` - ); - assert.deepEqual( - expected.messageDetails, - actual.messageDetails, - `Message Details do not match - ${messageContext}` - ); - assert.deepEqual( - expected.trafficDetails, - actual.trafficDetails, - `Traffic Details do not match - ${messageContext}` - ); + + assertDeepEqualKnownFields(actual, expected, messageContext, [ + [(x) => x.programDetails, ProgramDetails, "Program Details do not match"], + [(x) => x.companyInformation, CompanyInformation, "Company Information does not match"], + [(x) => x.messageDetails, MessageDetails, "Message Details do not match"], + [(x) => x.trafficDetails, TrafficDetails, "Traffic Details do not match"], + ]); +} + +/** + * The API may return additional fields, other than the ones present in the swagger file. + * This leads the call to assert.deepEqual to fail, since the two objects aren't the same + * (one will have more properties than the other). This method ensures that, when comparing + * two objects, only the fields present in BOTH objects are used for the comparison. + */ +function assertDeepEqualKnownFields( + actual: any, + expected: any, + messageContext: string, + comparisons: [ + propertyToCompareExtractor: (object: any) => any, + mapper: CompositeMapper, + errorMessage: string + ][] +) { + for (const comparison of comparisons) { + assertDeepEqualKnownFieldsInternal( + actual, + expected, + comparison[1], + comparison[0], + comparison[2], + messageContext + ); + } +} + +function assertDeepEqualKnownFieldsInternal( + actual: any, + expected: any, + mapper: CompositeMapper, + propertyToCompareExtractor: (object: any) => any, + errorMessage: string, + messageContext: string +) { + const mappedActual = mapKnownFields(propertyToCompareExtractor(actual), mapper); + const mappedExpected = mapKnownFields(propertyToCompareExtractor(expected), mapper); + + assert.deepEqual(mappedActual, mappedExpected, `${errorMessage} - ${messageContext}`); +} + +function mapKnownFields(object: any, mapper: TMapper): any { + const mapped: any = {}; + const keys = Object.keys(mapper.type.modelProperties); + + for (const modelPropertyName of keys) { + mapped[modelPropertyName] = object[modelPropertyName]; + } + + return mapped; } export async function doesProgramBriefExist(