From 81f6b7b48c0ba756a4087a5a63fd473cf81358f9 Mon Sep 17 00:00:00 2001 From: azure-sdk Date: Tue, 16 Jul 2024 01:40:35 +0000 Subject: [PATCH 1/3] Update Generator Version 3.0.0-beta.20240715.1 --- eng/Packages.Data.props | 2 +- eng/emitter-package-lock.json | 34 ++++++++++++++++++++++++++-------- eng/emitter-package.json | 2 +- 3 files changed, 28 insertions(+), 10 deletions(-) diff --git a/eng/Packages.Data.props b/eng/Packages.Data.props index 402c727b039e9..4b17bfec9c115 100644 --- a/eng/Packages.Data.props +++ b/eng/Packages.Data.props @@ -226,7 +226,7 @@ All should have PrivateAssets="All" set so they don't become package dependencies --> - + diff --git a/eng/emitter-package-lock.json b/eng/emitter-package-lock.json index 1b900f546b036..dd64c67b7fd1c 100644 --- a/eng/emitter-package-lock.json +++ b/eng/emitter-package-lock.json @@ -5,7 +5,7 @@ "packages": { "": { "dependencies": { - "@azure-tools/typespec-csharp": "0.2.0-beta.20240711.1" + "@azure-tools/typespec-csharp": "0.2.0-beta.20240715.1" }, "devDependencies": { "@azure-tools/typespec-autorest": "0.43.0", @@ -22,9 +22,9 @@ } }, "node_modules/@autorest/csharp": { - "version": "3.0.0-beta.20240711.1", - "resolved": "https://registry.npmjs.org/@autorest/csharp/-/csharp-3.0.0-beta.20240711.1.tgz", - "integrity": "sha512-gZNbt8UqtTkTWVvmKIG6PifZRKvsvJbZk74gKvTruxxmnMJru8rct+xUwzfvio8eQmo5Z0xvrUAnSNCF7/0+DA==" + "version": "3.0.0-beta.20240715.1", + "resolved": "https://registry.npmjs.org/@autorest/csharp/-/csharp-3.0.0-beta.20240715.1.tgz", + "integrity": "sha512-3a/C33rCp1z7zxXZ+tTdlApgBDRZfPZjuwEEnWaYsMnhx0CQ7nD1Z7cM+r7QLqbeFrBtLW0Wg11/ElupCLYwZw==" }, "node_modules/@azure-tools/typespec-autorest": { "version": "0.43.0", @@ -116,11 +116,12 @@ } }, "node_modules/@azure-tools/typespec-csharp": { - "version": "0.2.0-beta.20240711.1", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-csharp/-/typespec-csharp-0.2.0-beta.20240711.1.tgz", - "integrity": "sha512-Y/gYQR/cPnPYZyORTEIM7Gvh2NrWOpRlwJE5bRDUx3n0rG+bOtmbqfrLaMSav/E/EPwA4bRO6KpK84XzZYQhoA==", + "version": "0.2.0-beta.20240715.1", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-csharp/-/typespec-csharp-0.2.0-beta.20240715.1.tgz", + "integrity": "sha512-uPfOE4Jq6GbDPrIjBBqMvRxuTrFs7SZG70HoUWhjYw/xhsmT8Kh/JxjYfAJEeC4sdcMXUh93j7/6rqyNXpAFMw==", "dependencies": { - "@autorest/csharp": "3.0.0-beta.20240711.1", + "@autorest/csharp": "3.0.0-beta.20240715.1", + "@typespec/http-client-csharp": "https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-js-test-autorest/npm/registry/@typespec/http-client-csharp/-/http-client-csharp-0.1.9-alpha.20240712.1.tgz", "json-serialize-refs": "0.1.0-0" }, "peerDependencies": { @@ -261,6 +262,23 @@ "@typespec/compiler": "~0.57.0" } }, + "node_modules/@typespec/http-client-csharp": { + "version": "0.1.9-alpha.20240712.1", + "resolved": "https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-js-test-autorest/npm/registry/@typespec/http-client-csharp/-/http-client-csharp-0.1.9-alpha.20240712.1.tgz", + "integrity": "sha512-hmlnbLiP4XoNa46QRzQMXfFAf0G5KB32G4Ut0QTlkx7NYhWxKviNPiG0H6RcxM5FeuHqxWorX0kBEAYySHj95w==", + "dependencies": { + "json-serialize-refs": "0.1.0-0" + }, + "peerDependencies": { + "@azure-tools/typespec-azure-core": ">=0.36.0 <1.0.0", + "@azure-tools/typespec-client-generator-core": ">=0.36.0 <1.0.0", + "@typespec/compiler": ">=0.50.0 <1.0.0", + "@typespec/http": ">=0.50.0 <1.0.0", + "@typespec/openapi": ">=0.50.0 <1.0.0", + "@typespec/rest": ">=0.50.0 <1.0.0", + "@typespec/versioning": ">=0.50.0 <1.0.0" + } + }, "node_modules/@typespec/openapi": { "version": "0.57.0", "resolved": "https://registry.npmjs.org/@typespec/openapi/-/openapi-0.57.0.tgz", diff --git a/eng/emitter-package.json b/eng/emitter-package.json index cb79576a6d7fe..23c25aa7c1b8a 100644 --- a/eng/emitter-package.json +++ b/eng/emitter-package.json @@ -1,7 +1,7 @@ { "main": "dist/src/index.js", "dependencies": { - "@azure-tools/typespec-csharp": "0.2.0-beta.20240711.1" + "@azure-tools/typespec-csharp": "0.2.0-beta.20240715.1" }, "devDependencies": { "@azure-tools/typespec-autorest": "0.43.0", From e89366bb8c4dfcc97094aaa67a055eb1f78ee658 Mon Sep 17 00:00:00 2001 From: azure-sdk Date: Tue, 16 Jul 2024 02:24:47 +0000 Subject: [PATCH 2/3] Update SDK codes co_de_1 --- .../Configuration.json | 12 + .../tspCodeModel.json | 1936 +++++++++++++++++ 2 files changed, 1948 insertions(+) create mode 100644 sdk/communication/Azure.Communication.Messages/Configuration.json create mode 100644 sdk/communication/Azure.Communication.Messages/tspCodeModel.json diff --git a/sdk/communication/Azure.Communication.Messages/Configuration.json b/sdk/communication/Azure.Communication.Messages/Configuration.json new file mode 100644 index 0000000000000..d4f46001482b3 --- /dev/null +++ b/sdk/communication/Azure.Communication.Messages/Configuration.json @@ -0,0 +1,12 @@ +{ + "output-folder": ".", + "namespace": "Azure.Communication.Messages", + "library-name": "Azure.Communication.Messages", + "model-namespace": false, + "flavor": "azure", + "use-model-reader-writer": true, + "shared-source-folders": [ + "../../TempTypeSpecFiles/Communication.Messages/node_modules/@autorest/csharp/Generator.Shared", + "../../TempTypeSpecFiles/Communication.Messages/node_modules/@autorest/csharp/Azure.Core.Shared" + ] +} diff --git a/sdk/communication/Azure.Communication.Messages/tspCodeModel.json b/sdk/communication/Azure.Communication.Messages/tspCodeModel.json new file mode 100644 index 0000000000000..fc12a52cfd2af --- /dev/null +++ b/sdk/communication/Azure.Communication.Messages/tspCodeModel.json @@ -0,0 +1,1936 @@ +{ + "$id": "1", + "Name": "Azure.Communication.MessagesService", + "ApiVersions": [ + "2024-02-01" + ], + "Enums": [ + { + "$id": "2", + "Kind": "enum", + "Name": "CommunicationMessageKind", + "CrossLanguageDefinitionId": "Azure.Communication.MessagesService.CommunicationMessageKind", + "ValueType": { + "$id": "3", + "Kind": "string" + }, + "Values": [ + { + "$id": "4", + "Name": "text", + "Value": "text", + "Description": "Text message type." + }, + { + "$id": "5", + "Name": "image", + "Value": "image", + "Description": "Image message type." + }, + { + "$id": "6", + "Name": "template", + "Value": "template", + "Description": "Template message type." + } + ], + "Description": "The type of message. Supports text, image, template.", + "IsExtensible": true, + "Usage": "Input" + }, + { + "$id": "7", + "Kind": "enum", + "Name": "MessageTemplateValueKind", + "CrossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateValueKind", + "ValueType": { + "$id": "8", + "Kind": "string" + }, + "Values": [ + { + "$id": "9", + "Name": "text", + "Value": "text", + "Description": "The text template parameter type." + }, + { + "$id": "10", + "Name": "image", + "Value": "image", + "Description": "The image template parameter type." + }, + { + "$id": "11", + "Name": "document", + "Value": "document", + "Description": "The document template parameter type." + }, + { + "$id": "12", + "Name": "video", + "Value": "video", + "Description": "The video template parameter type." + }, + { + "$id": "13", + "Name": "location", + "Value": "location", + "Description": "The location template parameter type." + }, + { + "$id": "14", + "Name": "quickAction", + "Value": "quickAction", + "Description": "The quick action template parameter type." + } + ], + "Description": "The type of the template parameter.", + "IsExtensible": true, + "Usage": "Input" + }, + { + "$id": "15", + "Kind": "enum", + "Name": "MessageTemplateBindingsKind", + "CrossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateBindingsKind", + "ValueType": { + "$id": "16", + "Kind": "string" + }, + "Values": [ + { + "$id": "17", + "Name": "whatsApp", + "Value": "whatsApp", + "Description": "The WhatsApp template type." + } + ], + "Description": "The type of the message template.", + "IsExtensible": true, + "Usage": "Input" + }, + { + "$id": "18", + "Kind": "enum", + "Name": "WhatsAppMessageButtonSubType", + "CrossLanguageDefinitionId": "Azure.Communication.MessagesService.WhatsAppMessageButtonSubType", + "ValueType": { + "$id": "19", + "Kind": "string" + }, + "Values": [ + { + "$id": "20", + "Name": "quickReply", + "Value": "quickReply", + "Description": "The WhatsApp button sub type is quick reply." + }, + { + "$id": "21", + "Name": "url", + "Value": "url", + "Description": "The WhatsApp button sub type is url." + } + ], + "Description": "The WhatsApp button sub type.", + "IsExtensible": true, + "Usage": "Input" + }, + { + "$id": "22", + "Kind": "enum", + "Name": "RepeatabilityResult", + "CrossLanguageDefinitionId": "Azure.Core.RepeatabilityResult", + "ValueType": { + "$id": "23", + "Kind": "string" + }, + "Values": [ + { + "$id": "24", + "Name": "accepted", + "Value": "accepted", + "Description": "If the request was accepted and the server guarantees that the server state reflects a single execution of the operation." + }, + { + "$id": "25", + "Name": "rejected", + "Value": "rejected", + "Description": "If the request was rejected because the combination of Repeatability-First-Sent and Repeatability-Request-ID were invalid\nor because the Repeatability-First-Sent value was outside the range of values held by the server." + } + ], + "Description": "Repeatability Result header options", + "IsExtensible": false, + "Usage": "Output" + }, + { + "$id": "26", + "Kind": "enum", + "Name": "MessageTemplateStatus", + "CrossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateStatus", + "ValueType": { + "$id": "27", + "Kind": "string" + }, + "Values": [ + { + "$id": "28", + "Name": "approved", + "Value": "approved", + "Description": "Message template is approved." + }, + { + "$id": "29", + "Name": "rejected", + "Value": "rejected", + "Description": "Message template is rejected." + }, + { + "$id": "30", + "Name": "pending", + "Value": "pending", + "Description": "Message template is pending." + }, + { + "$id": "31", + "Name": "paused", + "Value": "paused", + "Description": "Message template is paused." + } + ], + "Description": "The aggregated template status.", + "IsExtensible": true, + "Usage": "Output" + }, + { + "$id": "32", + "Kind": "enum", + "Name": "CommunicationMessagesChannel", + "CrossLanguageDefinitionId": "Azure.Communication.MessagesService.CommunicationMessagesChannel", + "ValueType": { + "$id": "33", + "Kind": "string" + }, + "Values": [ + { + "$id": "34", + "Name": "whatsApp", + "Value": "whatsApp", + "Description": "The WhatsApp communication messages channel type." + } + ], + "Description": "The type of the communication messages channel.", + "IsExtensible": true, + "Usage": "Output" + }, + { + "$id": "35", + "Kind": "enum", + "Name": "Versions", + "CrossLanguageDefinitionId": "Azure.Communication.MessagesService.Versions", + "ValueType": { + "$id": "36", + "Kind": "string" + }, + "Values": [ + { + "$id": "37", + "Name": "c2024_02_01", + "Value": "2024-02-01", + "Description": "Azure Communication Messages 2024-02-01 api version" + } + ], + "Description": "Azure Communication Messages Versions", + "IsExtensible": false, + "Usage": "None" + } + ], + "Models": [ + { + "$id": "38", + "Kind": "model", + "Name": "NotificationContent", + "CrossLanguageDefinitionId": "Azure.Communication.MessagesService.NotificationContent", + "Usage": "Input", + "Description": "Details of the message to send.", + "DiscriminatorProperty": { + "$id": "39", + "Name": "kind", + "SerializedName": "kind", + "Description": "The type discriminator describing a notification type.", + "Type": { + "$ref": "2" + }, + "IsRequired": true, + "IsReadOnly": false, + "IsDiscriminator": true + }, + "Properties": [ + { + "$id": "40", + "Name": "channelRegistrationId", + "SerializedName": "channelRegistrationId", + "Description": "The Channel Registration ID for the Business Identifier.", + "Type": { + "$id": "41", + "Kind": "uuid", + "Encode": "string" + }, + "IsRequired": true, + "IsReadOnly": false + }, + { + "$id": "42", + "Name": "to", + "SerializedName": "to", + "Description": "The native external platform user identifiers of the recipient.", + "Type": { + "$id": "43", + "Kind": "array", + "Name": "Array", + "ValueType": { + "$id": "44", + "Kind": "string" + }, + "CrossLanguageDefinitionId": "TypeSpec.Array" + }, + "IsRequired": true, + "IsReadOnly": false + }, + { + "$ref": "39" + } + ], + "DiscriminatedSubtypes": { + "$id": "45", + "text": { + "$id": "46", + "Kind": "model", + "Name": "TextNotificationContent", + "CrossLanguageDefinitionId": "Azure.Communication.MessagesService.TextNotificationContent", + "Usage": "Input", + "Description": "A request to send a text notification.", + "DiscriminatorValue": "text", + "BaseModel": { + "$ref": "38" + }, + "Properties": [ + { + "$id": "47", + "Name": "kind", + "SerializedName": "kind", + "Description": "Message notification type is text.", + "Type": { + "$id": "48", + "Kind": "constant", + "ValueType": { + "$id": "49", + "Kind": "string" + }, + "Value": "text" + }, + "IsRequired": true, + "IsReadOnly": false, + "IsDiscriminator": true + }, + { + "$id": "50", + "Name": "content", + "SerializedName": "content", + "Description": "Message content.", + "Type": { + "$id": "51", + "Kind": "string" + }, + "IsRequired": true, + "IsReadOnly": false + } + ] + }, + "image": { + "$id": "52", + "Kind": "model", + "Name": "MediaNotificationContent", + "CrossLanguageDefinitionId": "Azure.Communication.MessagesService.MediaNotificationContent", + "Usage": "Input", + "Description": "A request to send a media notification.", + "DiscriminatorValue": "image", + "BaseModel": { + "$ref": "38" + }, + "Properties": [ + { + "$id": "53", + "Name": "kind", + "SerializedName": "kind", + "Description": "Message notification type is image.", + "Type": { + "$id": "54", + "Kind": "constant", + "ValueType": { + "$id": "55", + "Kind": "string" + }, + "Value": "image" + }, + "IsRequired": true, + "IsReadOnly": false, + "IsDiscriminator": true + }, + { + "$id": "56", + "Name": "content", + "SerializedName": "content", + "Description": "Optional text content.", + "Type": { + "$id": "57", + "Kind": "string" + }, + "IsRequired": false, + "IsReadOnly": false + }, + { + "$id": "58", + "Name": "mediaUri", + "SerializedName": "mediaUri", + "Description": "A media url for the file. Required if the type is one of the supported media types, e.g. image", + "Type": { + "$id": "59", + "Kind": "url" + }, + "IsRequired": true, + "IsReadOnly": false + } + ] + }, + "template": { + "$id": "60", + "Kind": "model", + "Name": "TemplateNotificationContent", + "CrossLanguageDefinitionId": "Azure.Communication.MessagesService.TemplateNotificationContent", + "Usage": "Input", + "Description": "A request to send a template notification.", + "DiscriminatorValue": "template", + "BaseModel": { + "$ref": "38" + }, + "Properties": [ + { + "$id": "61", + "Name": "kind", + "SerializedName": "kind", + "Description": "Message notification type is template.", + "Type": { + "$id": "62", + "Kind": "constant", + "ValueType": { + "$id": "63", + "Kind": "string" + }, + "Value": "template" + }, + "IsRequired": true, + "IsReadOnly": false, + "IsDiscriminator": true + }, + { + "$id": "64", + "Name": "template", + "SerializedName": "template", + "Description": "The template object used to create templates.", + "Type": { + "$id": "65", + "Kind": "model", + "Name": "MessageTemplate", + "CrossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplate", + "Usage": "Input", + "Description": "The template object used to create templates.", + "Properties": [ + { + "$id": "66", + "Name": "name", + "SerializedName": "name", + "Description": "Name of the template.", + "Type": { + "$id": "67", + "Kind": "string" + }, + "IsRequired": true, + "IsReadOnly": false + }, + { + "$id": "68", + "Name": "language", + "SerializedName": "language", + "Description": "The template's language, in the ISO 639 format, consist of a two-letter language code followed by an optional two-letter country code, e.g., 'en' or 'en_US'.", + "Type": { + "$id": "69", + "Kind": "string" + }, + "IsRequired": true, + "IsReadOnly": false + }, + { + "$id": "70", + "Name": "values", + "SerializedName": "values", + "Description": "The template values.", + "Type": { + "$id": "71", + "Kind": "array", + "Name": "ArrayMessageTemplateValue", + "ValueType": { + "$id": "72", + "Kind": "model", + "Name": "MessageTemplateValue", + "CrossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateValue", + "Usage": "Input", + "Description": "The class describes a parameter of a template.", + "DiscriminatorProperty": { + "$id": "73", + "Name": "kind", + "SerializedName": "kind", + "Description": "The type discriminator describing a template parameter type.", + "Type": { + "$ref": "7" + }, + "IsRequired": true, + "IsReadOnly": false, + "IsDiscriminator": true + }, + "Properties": [ + { + "$id": "74", + "Name": "name", + "SerializedName": "name", + "Description": "Template binding reference name", + "Type": { + "$id": "75", + "Kind": "string" + }, + "IsRequired": true, + "IsReadOnly": false + }, + { + "$ref": "73" + } + ], + "DiscriminatedSubtypes": { + "$id": "76", + "text": { + "$id": "77", + "Kind": "model", + "Name": "MessageTemplateText", + "CrossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateText", + "Usage": "Input", + "Description": "The message template's text value information.", + "DiscriminatorValue": "text", + "BaseModel": { + "$ref": "72" + }, + "Properties": [ + { + "$id": "78", + "Name": "kind", + "SerializedName": "kind", + "Description": "Message parameter type is text.", + "Type": { + "$id": "79", + "Kind": "constant", + "ValueType": { + "$id": "80", + "Kind": "string" + }, + "Value": "text" + }, + "IsRequired": true, + "IsReadOnly": false, + "IsDiscriminator": true + }, + { + "$id": "81", + "Name": "text", + "SerializedName": "text", + "Description": "The text value.", + "Type": { + "$id": "82", + "Kind": "string" + }, + "IsRequired": true, + "IsReadOnly": false + } + ] + }, + "image": { + "$id": "83", + "Kind": "model", + "Name": "MessageTemplateImage", + "CrossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateImage", + "Usage": "Input", + "Description": "The message template's image value information.", + "DiscriminatorValue": "image", + "BaseModel": { + "$ref": "72" + }, + "Properties": [ + { + "$id": "84", + "Name": "kind", + "SerializedName": "kind", + "Description": "Message parameter type is image.", + "Type": { + "$id": "85", + "Kind": "constant", + "ValueType": { + "$id": "86", + "Kind": "string" + }, + "Value": "image" + }, + "IsRequired": true, + "IsReadOnly": false, + "IsDiscriminator": true + }, + { + "$id": "87", + "Name": "uri", + "SerializedName": "url", + "Description": "The (public) URL of the media.", + "Type": { + "$id": "88", + "Kind": "url" + }, + "IsRequired": true, + "IsReadOnly": false + }, + { + "$id": "89", + "Name": "caption", + "SerializedName": "caption", + "Description": "The [optional] caption of the media object.", + "Type": { + "$id": "90", + "Kind": "string" + }, + "IsRequired": false, + "IsReadOnly": false + }, + { + "$id": "91", + "Name": "fileName", + "SerializedName": "fileName", + "Description": "The [optional] filename of the media file.", + "Type": { + "$id": "92", + "Kind": "string" + }, + "IsRequired": false, + "IsReadOnly": false + } + ] + }, + "document": { + "$id": "93", + "Kind": "model", + "Name": "MessageTemplateDocument", + "CrossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateDocument", + "Usage": "Input", + "Description": "The message template's document value information.", + "DiscriminatorValue": "document", + "BaseModel": { + "$ref": "72" + }, + "Properties": [ + { + "$id": "94", + "Name": "kind", + "SerializedName": "kind", + "Description": "Message parameter type is document.", + "Type": { + "$id": "95", + "Kind": "constant", + "ValueType": { + "$id": "96", + "Kind": "string" + }, + "Value": "document" + }, + "IsRequired": true, + "IsReadOnly": false, + "IsDiscriminator": true + }, + { + "$id": "97", + "Name": "uri", + "SerializedName": "url", + "Description": "The (public) URL of the media.", + "Type": { + "$id": "98", + "Kind": "url" + }, + "IsRequired": true, + "IsReadOnly": false + }, + { + "$id": "99", + "Name": "caption", + "SerializedName": "caption", + "Description": "The [optional] caption of the media object.", + "Type": { + "$id": "100", + "Kind": "string" + }, + "IsRequired": false, + "IsReadOnly": false + }, + { + "$id": "101", + "Name": "fileName", + "SerializedName": "fileName", + "Description": "The [optional] filename of the media file.", + "Type": { + "$id": "102", + "Kind": "string" + }, + "IsRequired": false, + "IsReadOnly": false + } + ] + }, + "video": { + "$id": "103", + "Kind": "model", + "Name": "MessageTemplateVideo", + "CrossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateVideo", + "Usage": "Input", + "Description": "The message template's video value information.", + "DiscriminatorValue": "video", + "BaseModel": { + "$ref": "72" + }, + "Properties": [ + { + "$id": "104", + "Name": "kind", + "SerializedName": "kind", + "Description": "Message parameter type is video.", + "Type": { + "$id": "105", + "Kind": "constant", + "ValueType": { + "$id": "106", + "Kind": "string" + }, + "Value": "video" + }, + "IsRequired": true, + "IsReadOnly": false, + "IsDiscriminator": true + }, + { + "$id": "107", + "Name": "uri", + "SerializedName": "url", + "Description": "The (public) URL of the media.", + "Type": { + "$id": "108", + "Kind": "url" + }, + "IsRequired": true, + "IsReadOnly": false + }, + { + "$id": "109", + "Name": "caption", + "SerializedName": "caption", + "Description": "The [optional] caption of the media object.", + "Type": { + "$id": "110", + "Kind": "string" + }, + "IsRequired": false, + "IsReadOnly": false + }, + { + "$id": "111", + "Name": "fileName", + "SerializedName": "fileName", + "Description": "The [optional] filename of the media file.", + "Type": { + "$id": "112", + "Kind": "string" + }, + "IsRequired": false, + "IsReadOnly": false + } + ] + }, + "location": { + "$id": "113", + "Kind": "model", + "Name": "MessageTemplateLocation", + "CrossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateLocation", + "Usage": "Input", + "Description": "The message template's location value information.", + "DiscriminatorValue": "location", + "BaseModel": { + "$ref": "72" + }, + "Properties": [ + { + "$id": "114", + "Name": "kind", + "SerializedName": "kind", + "Description": "Message parameter type is location.", + "Type": { + "$id": "115", + "Kind": "constant", + "ValueType": { + "$id": "116", + "Kind": "string" + }, + "Value": "location" + }, + "IsRequired": true, + "IsReadOnly": false, + "IsDiscriminator": true + }, + { + "$id": "117", + "Name": "locationName", + "SerializedName": "locationName", + "Description": "The [Optional] name of the location.", + "Type": { + "$id": "118", + "Kind": "string" + }, + "IsRequired": false, + "IsReadOnly": false + }, + { + "$id": "119", + "Name": "address", + "SerializedName": "address", + "Description": "The [Optional] address of the location.", + "Type": { + "$id": "120", + "Kind": "string" + }, + "IsRequired": false, + "IsReadOnly": false + }, + { + "$id": "121", + "Name": "latitude", + "SerializedName": "latitude", + "Description": "The latitude of the location.", + "Type": { + "$id": "122", + "Kind": "float64" + }, + "IsRequired": true, + "IsReadOnly": false + }, + { + "$id": "123", + "Name": "longitude", + "SerializedName": "longitude", + "Description": "The longitude of the location.", + "Type": { + "$id": "124", + "Kind": "float64" + }, + "IsRequired": true, + "IsReadOnly": false + } + ] + }, + "quickAction": { + "$id": "125", + "Kind": "model", + "Name": "MessageTemplateQuickAction", + "CrossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateQuickAction", + "Usage": "Input", + "Description": "The message template's quick action value information.", + "DiscriminatorValue": "quickAction", + "BaseModel": { + "$ref": "72" + }, + "Properties": [ + { + "$id": "126", + "Name": "kind", + "SerializedName": "kind", + "Description": "Message parameter type is quick action.", + "Type": { + "$id": "127", + "Kind": "constant", + "ValueType": { + "$id": "128", + "Kind": "string" + }, + "Value": "quickAction" + }, + "IsRequired": true, + "IsReadOnly": false, + "IsDiscriminator": true + }, + { + "$id": "129", + "Name": "text", + "SerializedName": "text", + "Description": "The [Optional] quick action text", + "Type": { + "$id": "130", + "Kind": "string" + }, + "IsRequired": false, + "IsReadOnly": false + }, + { + "$id": "131", + "Name": "payload", + "SerializedName": "payload", + "Description": "The [Optional] quick action payload", + "Type": { + "$id": "132", + "Kind": "string" + }, + "IsRequired": false, + "IsReadOnly": false + } + ] + } + } + }, + "CrossLanguageDefinitionId": "TypeSpec.Array" + }, + "IsRequired": false, + "IsReadOnly": false + }, + { + "$id": "133", + "Name": "bindings", + "SerializedName": "bindings", + "Description": "The binding object to link values to the template specific locations", + "Type": { + "$id": "134", + "Kind": "model", + "Name": "MessageTemplateBindings", + "CrossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateBindings", + "Usage": "Input", + "Description": "The binding object to link values to the template specific locations", + "DiscriminatorProperty": { + "$id": "135", + "Name": "kind", + "SerializedName": "kind", + "Description": "The type discriminator describing a template bindings type.", + "Type": { + "$ref": "15" + }, + "IsRequired": true, + "IsReadOnly": false, + "IsDiscriminator": true + }, + "Properties": [ + { + "$ref": "135" + } + ], + "DiscriminatedSubtypes": { + "$id": "136", + "whatsApp": { + "$id": "137", + "Kind": "model", + "Name": "WhatsAppMessageTemplateBindings", + "CrossLanguageDefinitionId": "Azure.Communication.MessagesService.WhatsAppMessageTemplateBindings", + "Usage": "Input", + "Description": "The template bindings for WhatsApp", + "DiscriminatorValue": "whatsApp", + "BaseModel": { + "$ref": "134" + }, + "Properties": [ + { + "$id": "138", + "Name": "kind", + "SerializedName": "kind", + "Description": "MessageTemplateBindings is whatsApp", + "Type": { + "$id": "139", + "Kind": "constant", + "ValueType": { + "$id": "140", + "Kind": "string" + }, + "Value": "whatsApp" + }, + "IsRequired": true, + "IsReadOnly": false, + "IsDiscriminator": true + }, + { + "$id": "141", + "Name": "header", + "SerializedName": "header", + "Description": "The header template bindings", + "Type": { + "$id": "142", + "Kind": "array", + "Name": "ArrayWhatsAppMessageTemplateBindingsComponent", + "ValueType": { + "$id": "143", + "Kind": "model", + "Name": "WhatsAppMessageTemplateBindingsComponent", + "CrossLanguageDefinitionId": "Azure.Communication.MessagesService.WhatsAppMessageTemplateBindingsComponent", + "Usage": "Input", + "Description": "The template bindings component for WhatsApp", + "Properties": [ + { + "$id": "144", + "Name": "refValue", + "SerializedName": "refValue", + "Description": "The name of the referenced item in the template values.", + "Type": { + "$id": "145", + "Kind": "string" + }, + "IsRequired": true, + "IsReadOnly": false + } + ] + }, + "CrossLanguageDefinitionId": "TypeSpec.Array" + }, + "IsRequired": false, + "IsReadOnly": false + }, + { + "$id": "146", + "Name": "body", + "SerializedName": "body", + "Description": "The body template bindings", + "Type": { + "$id": "147", + "Kind": "array", + "Name": "ArrayWhatsAppMessageTemplateBindingsComponent", + "ValueType": { + "$ref": "143" + }, + "CrossLanguageDefinitionId": "TypeSpec.Array" + }, + "IsRequired": false, + "IsReadOnly": false + }, + { + "$id": "148", + "Name": "footer", + "SerializedName": "footer", + "Description": "The footer template bindings", + "Type": { + "$id": "149", + "Kind": "array", + "Name": "ArrayWhatsAppMessageTemplateBindingsComponent", + "ValueType": { + "$ref": "143" + }, + "CrossLanguageDefinitionId": "TypeSpec.Array" + }, + "IsRequired": false, + "IsReadOnly": false + }, + { + "$id": "150", + "Name": "buttons", + "SerializedName": "buttons", + "Description": "The button template bindings", + "Type": { + "$id": "151", + "Kind": "array", + "Name": "ArrayWhatsAppMessageTemplateBindingsButton", + "ValueType": { + "$id": "152", + "Kind": "model", + "Name": "WhatsAppMessageTemplateBindingsButton", + "CrossLanguageDefinitionId": "Azure.Communication.MessagesService.WhatsAppMessageTemplateBindingsButton", + "Usage": "Input", + "Description": "The template bindings component button for WhatsApp", + "Properties": [ + { + "$id": "153", + "Name": "subType", + "SerializedName": "subType", + "Description": "The WhatsApp button sub type", + "Type": { + "$ref": "18" + }, + "IsRequired": true, + "IsReadOnly": false + }, + { + "$id": "154", + "Name": "refValue", + "SerializedName": "refValue", + "Description": "The name of the referenced item in the template values.", + "Type": { + "$id": "155", + "Kind": "string" + }, + "IsRequired": true, + "IsReadOnly": false + } + ] + }, + "CrossLanguageDefinitionId": "TypeSpec.Array" + }, + "IsRequired": false, + "IsReadOnly": false + } + ] + } + } + }, + "IsRequired": false, + "IsReadOnly": false + } + ] + }, + "IsRequired": true, + "IsReadOnly": false + } + ] + } + } + }, + { + "$ref": "46" + }, + { + "$ref": "52" + }, + { + "$ref": "60" + }, + { + "$ref": "65" + }, + { + "$ref": "72" + }, + { + "$ref": "77" + }, + { + "$ref": "83" + }, + { + "$ref": "93" + }, + { + "$ref": "103" + }, + { + "$ref": "113" + }, + { + "$ref": "125" + }, + { + "$ref": "134" + }, + { + "$ref": "137" + }, + { + "$ref": "143" + }, + { + "$ref": "152" + }, + { + "$id": "156", + "Kind": "model", + "Name": "SendMessageResult", + "CrossLanguageDefinitionId": "Azure.Communication.MessagesService.SendMessageResult", + "Usage": "Output", + "Description": "Result of the send message operation.", + "Properties": [ + { + "$id": "157", + "Name": "receipts", + "SerializedName": "receipts", + "Description": "Receipts of the send message operation.", + "Type": { + "$id": "158", + "Kind": "array", + "Name": "ArrayMessageReceipt", + "ValueType": { + "$id": "159", + "Kind": "model", + "Name": "MessageReceipt", + "CrossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageReceipt", + "Usage": "Output", + "Description": "Receipt of the sending one message.", + "Properties": [ + { + "$id": "160", + "Name": "messageId", + "SerializedName": "messageId", + "Description": "The message id.", + "Type": { + "$id": "161", + "Kind": "string" + }, + "IsRequired": true, + "IsReadOnly": false + }, + { + "$id": "162", + "Name": "to", + "SerializedName": "to", + "Description": "The native external platform user identifier of the recipient.", + "Type": { + "$id": "163", + "Kind": "string" + }, + "IsRequired": true, + "IsReadOnly": false + } + ] + }, + "CrossLanguageDefinitionId": "TypeSpec.Array" + }, + "IsRequired": true, + "IsReadOnly": false + } + ] + }, + { + "$ref": "159" + }, + { + "$id": "164", + "Kind": "model", + "Name": "PagedMessageTemplateItem", + "CrossLanguageDefinitionId": "Azure.Core.Foundations.CustomPage", + "Usage": "Output", + "Description": "Paged collection of MessageTemplateItem items", + "Properties": [ + { + "$id": "165", + "Name": "value", + "SerializedName": "value", + "Description": "The MessageTemplateItem items on this page", + "Type": { + "$id": "166", + "Kind": "array", + "Name": "ArrayMessageTemplateItem", + "ValueType": { + "$id": "167", + "Kind": "model", + "Name": "MessageTemplateItem", + "CrossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateItem", + "Usage": "Output", + "Description": "The message template as returned from the service.", + "DiscriminatorProperty": { + "$id": "168", + "Name": "kind", + "SerializedName": "kind", + "Description": "The type discriminator describing a template type.", + "Type": { + "$ref": "32" + }, + "IsRequired": true, + "IsReadOnly": false, + "IsDiscriminator": true + }, + "Properties": [ + { + "$id": "169", + "Name": "name", + "SerializedName": "name", + "Description": "The template's name.", + "Type": { + "$id": "170", + "Kind": "string" + }, + "IsRequired": true, + "IsReadOnly": true + }, + { + "$id": "171", + "Name": "language", + "SerializedName": "language", + "Description": "The template's language, in the ISO 639 format, consist of a two-letter language code followed by an optional two-letter country code, e.g., 'en' or 'en_US'.", + "Type": { + "$id": "172", + "Kind": "string" + }, + "IsRequired": true, + "IsReadOnly": false + }, + { + "$id": "173", + "Name": "status", + "SerializedName": "status", + "Description": "The aggregated template status.", + "Type": { + "$ref": "26" + }, + "IsRequired": true, + "IsReadOnly": false + }, + { + "$ref": "168" + } + ], + "DiscriminatedSubtypes": { + "$id": "174", + "whatsApp": { + "$id": "175", + "Kind": "model", + "Name": "WhatsAppMessageTemplateItem", + "CrossLanguageDefinitionId": "Azure.Communication.MessagesService.WhatsAppMessageTemplateItem", + "Usage": "Output", + "Description": "The WhatsApp-specific template response contract", + "DiscriminatorValue": "whatsApp", + "BaseModel": { + "$ref": "167" + }, + "Properties": [ + { + "$id": "176", + "Name": "content", + "SerializedName": "content", + "Description": "WhatsApp platform's template content. This is the payload returned from WhatsApp API.", + "Type": { + "$id": "177", + "Kind": "any" + }, + "IsRequired": false, + "IsReadOnly": false + }, + { + "$id": "178", + "Name": "kind", + "SerializedName": "kind", + "Description": "Message template response type is whatsApp.", + "Type": { + "$id": "179", + "Kind": "constant", + "ValueType": { + "$id": "180", + "Kind": "string" + }, + "Value": "whatsApp" + }, + "IsRequired": true, + "IsReadOnly": false, + "IsDiscriminator": true + } + ] + } + } + }, + "CrossLanguageDefinitionId": "TypeSpec.Array" + }, + "IsRequired": true, + "IsReadOnly": false + }, + { + "$id": "181", + "Name": "nextLink", + "SerializedName": "nextLink", + "Description": "The link to the next page of items", + "Type": { + "$id": "182", + "Kind": "url" + }, + "IsRequired": false, + "IsReadOnly": false + } + ] + }, + { + "$ref": "167" + }, + { + "$ref": "175" + } + ], + "Clients": [ + { + "$id": "183", + "Name": "NotificationMessagesClient", + "Description": "", + "Operations": [ + { + "$id": "184", + "Name": "send", + "ResourceName": "NotificationMessagesClient", + "Description": "Sends a notification message from Business to User.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "185", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Description": "The communication resource, for example https://my-resource.communication.azure.com", + "Type": { + "$id": "186", + "Kind": "url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + }, + { + "$id": "187", + "Name": "apiVersion", + "NameInRequest": "api-version", + "Description": "The API version to use for this operation.", + "Type": { + "$id": "188", + "Kind": "string" + }, + "Location": "Query", + "DefaultValue": { + "$id": "189", + "Type": { + "$id": "190", + "Kind": "string" + }, + "Value": "2024-02-01" + }, + "IsRequired": true, + "IsApiVersion": true, + "IsResourceParameter": false, + "IsContentType": false, + "IsEndpoint": false, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + }, + { + "$id": "191", + "Name": "repeatabilityRequestId", + "NameInRequest": "Repeatability-Request-ID", + "Description": "An opaque, globally-unique, client-generated string identifier for the request.", + "Type": { + "$id": "192", + "Kind": "string" + }, + "Location": "Header", + "IsRequired": false, + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsEndpoint": false, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Method" + }, + { + "$id": "193", + "Name": "repeatabilityFirstSent", + "NameInRequest": "Repeatability-First-Sent", + "Description": "Specifies the date and time at which the request was first created.", + "Type": { + "$id": "194", + "Kind": "utcDateTime", + "Encode": "rfc7231", + "WireType": { + "$id": "195", + "Kind": "string" + } + }, + "Location": "Header", + "IsRequired": false, + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsEndpoint": false, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Method" + }, + { + "$id": "196", + "Name": "clientRequestId", + "NameInRequest": "x-ms-client-request-id", + "Description": "An opaque, globally-unique, client-generated string identifier for the request.", + "Type": { + "$id": "197", + "Kind": "uuid", + "Encode": "string" + }, + "Location": "Header", + "IsRequired": false, + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsEndpoint": false, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Method" + }, + { + "$id": "198", + "Name": "notificationContent", + "NameInRequest": "body", + "Description": "Details of the message to send.", + "Type": { + "$ref": "38" + }, + "Location": "Body", + "IsRequired": true, + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsEndpoint": false, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Method" + }, + { + "$id": "199", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "200", + "Kind": "string" + }, + "Location": "Header", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": false, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Constant", + "DefaultValue": { + "$id": "201", + "Type": { + "$ref": "200" + }, + "Value": "application/json" + } + }, + { + "$id": "202", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Type": { + "$id": "203", + "Kind": "string" + }, + "Location": "Header", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": true, + "IsRequired": true, + "IsEndpoint": false, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Constant", + "DefaultValue": { + "$id": "204", + "Type": { + "$ref": "203" + }, + "Value": "application/json" + } + } + ], + "Responses": [ + { + "$id": "205", + "StatusCodes": [ + 202 + ], + "BodyType": { + "$ref": "156" + }, + "BodyMediaType": "Json", + "Headers": [ + { + "$id": "206", + "Name": "Repeatability-Result", + "NameInResponse": "repeatabilityResult", + "Description": "Indicates whether the repeatable request was accepted or rejected.", + "Type": { + "$ref": "22" + } + }, + { + "$id": "207", + "Name": "x-ms-client-request-id", + "NameInResponse": "clientRequestId", + "Description": "An opaque, globally-unique, client-generated string identifier for the request.", + "Type": { + "$id": "208", + "Kind": "uuid", + "Encode": "string" + } + } + ], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/messages/notifications:send", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true + }, + { + "$id": "209", + "Name": "downloadMediaInternal", + "ResourceName": "MessageDataStream", + "Description": "Download the Media payload from a User to Business message.", + "Accessibility": "internal", + "Parameters": [ + { + "$ref": "185" + }, + { + "$id": "210", + "Name": "apiVersion", + "NameInRequest": "api-version", + "Description": "The API version to use for this operation.", + "Type": { + "$id": "211", + "Kind": "string" + }, + "Location": "Query", + "DefaultValue": { + "$ref": "189" + }, + "IsRequired": true, + "IsApiVersion": true, + "IsResourceParameter": false, + "IsContentType": false, + "IsEndpoint": false, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + }, + { + "$id": "212", + "Name": "id", + "NameInRequest": "id", + "Description": "The stream ID.", + "Type": { + "$id": "213", + "Kind": "string" + }, + "Location": "Path", + "IsRequired": true, + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsEndpoint": false, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Method" + }, + { + "$id": "214", + "Name": "clientRequestId", + "NameInRequest": "x-ms-client-request-id", + "Description": "An opaque, globally-unique, client-generated string identifier for the request.", + "Type": { + "$id": "215", + "Kind": "uuid", + "Encode": "string" + }, + "Location": "Header", + "IsRequired": false, + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsEndpoint": false, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Method" + }, + { + "$id": "216", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "217", + "Kind": "string" + }, + "Location": "Header", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": false, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Constant", + "DefaultValue": { + "$id": "218", + "Type": { + "$ref": "217" + }, + "Value": "application/octet-stream" + } + } + ], + "Responses": [ + { + "$id": "219", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$id": "220", + "Kind": "bytes", + "Encode": "base64" + }, + "BodyMediaType": "Json", + "Headers": [ + { + "$id": "221", + "Name": "x-ms-client-request-id", + "NameInResponse": "clientRequestId", + "Description": "An opaque, globally-unique, client-generated string identifier for the request.", + "Type": { + "$id": "222", + "Kind": "uuid", + "Encode": "string" + } + } + ], + "IsErrorResponse": false, + "ContentTypes": [ + "application/octet-stream" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/messages/streams/{id}", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true + } + ], + "Protocol": { + "$id": "223" + }, + "Parameters": [ + { + "$ref": "185" + } + ] + }, + { + "$id": "224", + "Name": "MessageTemplateClient", + "Description": "", + "Operations": [ + { + "$id": "225", + "Name": "getTemplates", + "ResourceName": "MessageTemplateItem", + "Description": "List all templates for given Azure Communication Services channel", + "Accessibility": "public", + "Parameters": [ + { + "$ref": "185" + }, + { + "$id": "226", + "Name": "apiVersion", + "NameInRequest": "api-version", + "Description": "The API version to use for this operation.", + "Type": { + "$id": "227", + "Kind": "string" + }, + "Location": "Query", + "DefaultValue": { + "$ref": "189" + }, + "IsRequired": true, + "IsApiVersion": true, + "IsResourceParameter": false, + "IsContentType": false, + "IsEndpoint": false, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + }, + { + "$id": "228", + "Name": "channelId", + "NameInRequest": "channelId", + "Description": "The registration ID of the channel.", + "Type": { + "$id": "229", + "Kind": "uuid", + "Encode": "string" + }, + "Location": "Path", + "IsRequired": true, + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsEndpoint": false, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Method" + }, + { + "$id": "230", + "Name": "maxpagesize", + "NameInRequest": "maxpagesize", + "Description": "Number of objects to return per page.", + "Type": { + "$id": "231", + "Kind": "int32" + }, + "Location": "Query", + "IsRequired": false, + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsEndpoint": false, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Method" + }, + { + "$id": "232", + "Name": "clientRequestId", + "NameInRequest": "x-ms-client-request-id", + "Description": "An opaque, globally-unique, client-generated string identifier for the request.", + "Type": { + "$id": "233", + "Kind": "uuid", + "Encode": "string" + }, + "Location": "Header", + "IsRequired": false, + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsEndpoint": false, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Method" + }, + { + "$id": "234", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "235", + "Kind": "string" + }, + "Location": "Header", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": false, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Constant", + "DefaultValue": { + "$id": "236", + "Type": { + "$ref": "235" + }, + "Value": "application/json" + } + } + ], + "Responses": [ + { + "$id": "237", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "164" + }, + "BodyMediaType": "Json", + "Headers": [ + { + "$id": "238", + "Name": "x-ms-client-request-id", + "NameInResponse": "clientRequestId", + "Description": "An opaque, globally-unique, client-generated string identifier for the request.", + "Type": { + "$id": "239", + "Kind": "uuid", + "Encode": "string" + } + } + ], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/messages/channels/{channelId}/templates", + "BufferResponse": true, + "Paging": { + "$id": "240", + "NextLinkName": "nextLink", + "ItemName": "value" + }, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true + } + ], + "Protocol": { + "$id": "241" + }, + "Parameters": [ + { + "$ref": "185" + } + ] + } + ], + "Auth": { + "$id": "242", + "ApiKey": { + "$id": "243", + "Name": "Authorization" + }, + "OAuth2": { + "$id": "244", + "Scopes": [ + "https://communication.azure.com/.default" + ] + } + } +} From 80f77a14fe5d574763427335340d43e97d8a8932 Mon Sep 17 00:00:00 2001 From: "FAREAST\\chunyu" Date: Tue, 16 Jul 2024 13:36:28 +0800 Subject: [PATCH 3/3] remove unused configuration.json and tspCodeModel.json --- .../src/Generated/Configuration.json | 12 - .../src/Generated/tspCodeModel.json | 1936 ----------------- 2 files changed, 1948 deletions(-) delete mode 100644 sdk/communication/Azure.Communication.Messages/src/Generated/Configuration.json delete mode 100644 sdk/communication/Azure.Communication.Messages/src/Generated/tspCodeModel.json diff --git a/sdk/communication/Azure.Communication.Messages/src/Generated/Configuration.json b/sdk/communication/Azure.Communication.Messages/src/Generated/Configuration.json deleted file mode 100644 index c38716c9bcc5e..0000000000000 --- a/sdk/communication/Azure.Communication.Messages/src/Generated/Configuration.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "output-folder": ".", - "namespace": "Azure.Communication.Messages", - "library-name": "Azure.Communication.Messages", - "shared-source-folders": [ - "../../TempTypeSpecFiles/Communication.Messages/node_modules/@autorest/csharp/Generator.Shared", - "../../TempTypeSpecFiles/Communication.Messages/node_modules/@autorest/csharp/Azure.Core.Shared" - ], - "model-namespace": false, - "flavor": "azure", - "use-model-reader-writer": true -} diff --git a/sdk/communication/Azure.Communication.Messages/src/Generated/tspCodeModel.json b/sdk/communication/Azure.Communication.Messages/src/Generated/tspCodeModel.json deleted file mode 100644 index fc12a52cfd2af..0000000000000 --- a/sdk/communication/Azure.Communication.Messages/src/Generated/tspCodeModel.json +++ /dev/null @@ -1,1936 +0,0 @@ -{ - "$id": "1", - "Name": "Azure.Communication.MessagesService", - "ApiVersions": [ - "2024-02-01" - ], - "Enums": [ - { - "$id": "2", - "Kind": "enum", - "Name": "CommunicationMessageKind", - "CrossLanguageDefinitionId": "Azure.Communication.MessagesService.CommunicationMessageKind", - "ValueType": { - "$id": "3", - "Kind": "string" - }, - "Values": [ - { - "$id": "4", - "Name": "text", - "Value": "text", - "Description": "Text message type." - }, - { - "$id": "5", - "Name": "image", - "Value": "image", - "Description": "Image message type." - }, - { - "$id": "6", - "Name": "template", - "Value": "template", - "Description": "Template message type." - } - ], - "Description": "The type of message. Supports text, image, template.", - "IsExtensible": true, - "Usage": "Input" - }, - { - "$id": "7", - "Kind": "enum", - "Name": "MessageTemplateValueKind", - "CrossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateValueKind", - "ValueType": { - "$id": "8", - "Kind": "string" - }, - "Values": [ - { - "$id": "9", - "Name": "text", - "Value": "text", - "Description": "The text template parameter type." - }, - { - "$id": "10", - "Name": "image", - "Value": "image", - "Description": "The image template parameter type." - }, - { - "$id": "11", - "Name": "document", - "Value": "document", - "Description": "The document template parameter type." - }, - { - "$id": "12", - "Name": "video", - "Value": "video", - "Description": "The video template parameter type." - }, - { - "$id": "13", - "Name": "location", - "Value": "location", - "Description": "The location template parameter type." - }, - { - "$id": "14", - "Name": "quickAction", - "Value": "quickAction", - "Description": "The quick action template parameter type." - } - ], - "Description": "The type of the template parameter.", - "IsExtensible": true, - "Usage": "Input" - }, - { - "$id": "15", - "Kind": "enum", - "Name": "MessageTemplateBindingsKind", - "CrossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateBindingsKind", - "ValueType": { - "$id": "16", - "Kind": "string" - }, - "Values": [ - { - "$id": "17", - "Name": "whatsApp", - "Value": "whatsApp", - "Description": "The WhatsApp template type." - } - ], - "Description": "The type of the message template.", - "IsExtensible": true, - "Usage": "Input" - }, - { - "$id": "18", - "Kind": "enum", - "Name": "WhatsAppMessageButtonSubType", - "CrossLanguageDefinitionId": "Azure.Communication.MessagesService.WhatsAppMessageButtonSubType", - "ValueType": { - "$id": "19", - "Kind": "string" - }, - "Values": [ - { - "$id": "20", - "Name": "quickReply", - "Value": "quickReply", - "Description": "The WhatsApp button sub type is quick reply." - }, - { - "$id": "21", - "Name": "url", - "Value": "url", - "Description": "The WhatsApp button sub type is url." - } - ], - "Description": "The WhatsApp button sub type.", - "IsExtensible": true, - "Usage": "Input" - }, - { - "$id": "22", - "Kind": "enum", - "Name": "RepeatabilityResult", - "CrossLanguageDefinitionId": "Azure.Core.RepeatabilityResult", - "ValueType": { - "$id": "23", - "Kind": "string" - }, - "Values": [ - { - "$id": "24", - "Name": "accepted", - "Value": "accepted", - "Description": "If the request was accepted and the server guarantees that the server state reflects a single execution of the operation." - }, - { - "$id": "25", - "Name": "rejected", - "Value": "rejected", - "Description": "If the request was rejected because the combination of Repeatability-First-Sent and Repeatability-Request-ID were invalid\nor because the Repeatability-First-Sent value was outside the range of values held by the server." - } - ], - "Description": "Repeatability Result header options", - "IsExtensible": false, - "Usage": "Output" - }, - { - "$id": "26", - "Kind": "enum", - "Name": "MessageTemplateStatus", - "CrossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateStatus", - "ValueType": { - "$id": "27", - "Kind": "string" - }, - "Values": [ - { - "$id": "28", - "Name": "approved", - "Value": "approved", - "Description": "Message template is approved." - }, - { - "$id": "29", - "Name": "rejected", - "Value": "rejected", - "Description": "Message template is rejected." - }, - { - "$id": "30", - "Name": "pending", - "Value": "pending", - "Description": "Message template is pending." - }, - { - "$id": "31", - "Name": "paused", - "Value": "paused", - "Description": "Message template is paused." - } - ], - "Description": "The aggregated template status.", - "IsExtensible": true, - "Usage": "Output" - }, - { - "$id": "32", - "Kind": "enum", - "Name": "CommunicationMessagesChannel", - "CrossLanguageDefinitionId": "Azure.Communication.MessagesService.CommunicationMessagesChannel", - "ValueType": { - "$id": "33", - "Kind": "string" - }, - "Values": [ - { - "$id": "34", - "Name": "whatsApp", - "Value": "whatsApp", - "Description": "The WhatsApp communication messages channel type." - } - ], - "Description": "The type of the communication messages channel.", - "IsExtensible": true, - "Usage": "Output" - }, - { - "$id": "35", - "Kind": "enum", - "Name": "Versions", - "CrossLanguageDefinitionId": "Azure.Communication.MessagesService.Versions", - "ValueType": { - "$id": "36", - "Kind": "string" - }, - "Values": [ - { - "$id": "37", - "Name": "c2024_02_01", - "Value": "2024-02-01", - "Description": "Azure Communication Messages 2024-02-01 api version" - } - ], - "Description": "Azure Communication Messages Versions", - "IsExtensible": false, - "Usage": "None" - } - ], - "Models": [ - { - "$id": "38", - "Kind": "model", - "Name": "NotificationContent", - "CrossLanguageDefinitionId": "Azure.Communication.MessagesService.NotificationContent", - "Usage": "Input", - "Description": "Details of the message to send.", - "DiscriminatorProperty": { - "$id": "39", - "Name": "kind", - "SerializedName": "kind", - "Description": "The type discriminator describing a notification type.", - "Type": { - "$ref": "2" - }, - "IsRequired": true, - "IsReadOnly": false, - "IsDiscriminator": true - }, - "Properties": [ - { - "$id": "40", - "Name": "channelRegistrationId", - "SerializedName": "channelRegistrationId", - "Description": "The Channel Registration ID for the Business Identifier.", - "Type": { - "$id": "41", - "Kind": "uuid", - "Encode": "string" - }, - "IsRequired": true, - "IsReadOnly": false - }, - { - "$id": "42", - "Name": "to", - "SerializedName": "to", - "Description": "The native external platform user identifiers of the recipient.", - "Type": { - "$id": "43", - "Kind": "array", - "Name": "Array", - "ValueType": { - "$id": "44", - "Kind": "string" - }, - "CrossLanguageDefinitionId": "TypeSpec.Array" - }, - "IsRequired": true, - "IsReadOnly": false - }, - { - "$ref": "39" - } - ], - "DiscriminatedSubtypes": { - "$id": "45", - "text": { - "$id": "46", - "Kind": "model", - "Name": "TextNotificationContent", - "CrossLanguageDefinitionId": "Azure.Communication.MessagesService.TextNotificationContent", - "Usage": "Input", - "Description": "A request to send a text notification.", - "DiscriminatorValue": "text", - "BaseModel": { - "$ref": "38" - }, - "Properties": [ - { - "$id": "47", - "Name": "kind", - "SerializedName": "kind", - "Description": "Message notification type is text.", - "Type": { - "$id": "48", - "Kind": "constant", - "ValueType": { - "$id": "49", - "Kind": "string" - }, - "Value": "text" - }, - "IsRequired": true, - "IsReadOnly": false, - "IsDiscriminator": true - }, - { - "$id": "50", - "Name": "content", - "SerializedName": "content", - "Description": "Message content.", - "Type": { - "$id": "51", - "Kind": "string" - }, - "IsRequired": true, - "IsReadOnly": false - } - ] - }, - "image": { - "$id": "52", - "Kind": "model", - "Name": "MediaNotificationContent", - "CrossLanguageDefinitionId": "Azure.Communication.MessagesService.MediaNotificationContent", - "Usage": "Input", - "Description": "A request to send a media notification.", - "DiscriminatorValue": "image", - "BaseModel": { - "$ref": "38" - }, - "Properties": [ - { - "$id": "53", - "Name": "kind", - "SerializedName": "kind", - "Description": "Message notification type is image.", - "Type": { - "$id": "54", - "Kind": "constant", - "ValueType": { - "$id": "55", - "Kind": "string" - }, - "Value": "image" - }, - "IsRequired": true, - "IsReadOnly": false, - "IsDiscriminator": true - }, - { - "$id": "56", - "Name": "content", - "SerializedName": "content", - "Description": "Optional text content.", - "Type": { - "$id": "57", - "Kind": "string" - }, - "IsRequired": false, - "IsReadOnly": false - }, - { - "$id": "58", - "Name": "mediaUri", - "SerializedName": "mediaUri", - "Description": "A media url for the file. Required if the type is one of the supported media types, e.g. image", - "Type": { - "$id": "59", - "Kind": "url" - }, - "IsRequired": true, - "IsReadOnly": false - } - ] - }, - "template": { - "$id": "60", - "Kind": "model", - "Name": "TemplateNotificationContent", - "CrossLanguageDefinitionId": "Azure.Communication.MessagesService.TemplateNotificationContent", - "Usage": "Input", - "Description": "A request to send a template notification.", - "DiscriminatorValue": "template", - "BaseModel": { - "$ref": "38" - }, - "Properties": [ - { - "$id": "61", - "Name": "kind", - "SerializedName": "kind", - "Description": "Message notification type is template.", - "Type": { - "$id": "62", - "Kind": "constant", - "ValueType": { - "$id": "63", - "Kind": "string" - }, - "Value": "template" - }, - "IsRequired": true, - "IsReadOnly": false, - "IsDiscriminator": true - }, - { - "$id": "64", - "Name": "template", - "SerializedName": "template", - "Description": "The template object used to create templates.", - "Type": { - "$id": "65", - "Kind": "model", - "Name": "MessageTemplate", - "CrossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplate", - "Usage": "Input", - "Description": "The template object used to create templates.", - "Properties": [ - { - "$id": "66", - "Name": "name", - "SerializedName": "name", - "Description": "Name of the template.", - "Type": { - "$id": "67", - "Kind": "string" - }, - "IsRequired": true, - "IsReadOnly": false - }, - { - "$id": "68", - "Name": "language", - "SerializedName": "language", - "Description": "The template's language, in the ISO 639 format, consist of a two-letter language code followed by an optional two-letter country code, e.g., 'en' or 'en_US'.", - "Type": { - "$id": "69", - "Kind": "string" - }, - "IsRequired": true, - "IsReadOnly": false - }, - { - "$id": "70", - "Name": "values", - "SerializedName": "values", - "Description": "The template values.", - "Type": { - "$id": "71", - "Kind": "array", - "Name": "ArrayMessageTemplateValue", - "ValueType": { - "$id": "72", - "Kind": "model", - "Name": "MessageTemplateValue", - "CrossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateValue", - "Usage": "Input", - "Description": "The class describes a parameter of a template.", - "DiscriminatorProperty": { - "$id": "73", - "Name": "kind", - "SerializedName": "kind", - "Description": "The type discriminator describing a template parameter type.", - "Type": { - "$ref": "7" - }, - "IsRequired": true, - "IsReadOnly": false, - "IsDiscriminator": true - }, - "Properties": [ - { - "$id": "74", - "Name": "name", - "SerializedName": "name", - "Description": "Template binding reference name", - "Type": { - "$id": "75", - "Kind": "string" - }, - "IsRequired": true, - "IsReadOnly": false - }, - { - "$ref": "73" - } - ], - "DiscriminatedSubtypes": { - "$id": "76", - "text": { - "$id": "77", - "Kind": "model", - "Name": "MessageTemplateText", - "CrossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateText", - "Usage": "Input", - "Description": "The message template's text value information.", - "DiscriminatorValue": "text", - "BaseModel": { - "$ref": "72" - }, - "Properties": [ - { - "$id": "78", - "Name": "kind", - "SerializedName": "kind", - "Description": "Message parameter type is text.", - "Type": { - "$id": "79", - "Kind": "constant", - "ValueType": { - "$id": "80", - "Kind": "string" - }, - "Value": "text" - }, - "IsRequired": true, - "IsReadOnly": false, - "IsDiscriminator": true - }, - { - "$id": "81", - "Name": "text", - "SerializedName": "text", - "Description": "The text value.", - "Type": { - "$id": "82", - "Kind": "string" - }, - "IsRequired": true, - "IsReadOnly": false - } - ] - }, - "image": { - "$id": "83", - "Kind": "model", - "Name": "MessageTemplateImage", - "CrossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateImage", - "Usage": "Input", - "Description": "The message template's image value information.", - "DiscriminatorValue": "image", - "BaseModel": { - "$ref": "72" - }, - "Properties": [ - { - "$id": "84", - "Name": "kind", - "SerializedName": "kind", - "Description": "Message parameter type is image.", - "Type": { - "$id": "85", - "Kind": "constant", - "ValueType": { - "$id": "86", - "Kind": "string" - }, - "Value": "image" - }, - "IsRequired": true, - "IsReadOnly": false, - "IsDiscriminator": true - }, - { - "$id": "87", - "Name": "uri", - "SerializedName": "url", - "Description": "The (public) URL of the media.", - "Type": { - "$id": "88", - "Kind": "url" - }, - "IsRequired": true, - "IsReadOnly": false - }, - { - "$id": "89", - "Name": "caption", - "SerializedName": "caption", - "Description": "The [optional] caption of the media object.", - "Type": { - "$id": "90", - "Kind": "string" - }, - "IsRequired": false, - "IsReadOnly": false - }, - { - "$id": "91", - "Name": "fileName", - "SerializedName": "fileName", - "Description": "The [optional] filename of the media file.", - "Type": { - "$id": "92", - "Kind": "string" - }, - "IsRequired": false, - "IsReadOnly": false - } - ] - }, - "document": { - "$id": "93", - "Kind": "model", - "Name": "MessageTemplateDocument", - "CrossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateDocument", - "Usage": "Input", - "Description": "The message template's document value information.", - "DiscriminatorValue": "document", - "BaseModel": { - "$ref": "72" - }, - "Properties": [ - { - "$id": "94", - "Name": "kind", - "SerializedName": "kind", - "Description": "Message parameter type is document.", - "Type": { - "$id": "95", - "Kind": "constant", - "ValueType": { - "$id": "96", - "Kind": "string" - }, - "Value": "document" - }, - "IsRequired": true, - "IsReadOnly": false, - "IsDiscriminator": true - }, - { - "$id": "97", - "Name": "uri", - "SerializedName": "url", - "Description": "The (public) URL of the media.", - "Type": { - "$id": "98", - "Kind": "url" - }, - "IsRequired": true, - "IsReadOnly": false - }, - { - "$id": "99", - "Name": "caption", - "SerializedName": "caption", - "Description": "The [optional] caption of the media object.", - "Type": { - "$id": "100", - "Kind": "string" - }, - "IsRequired": false, - "IsReadOnly": false - }, - { - "$id": "101", - "Name": "fileName", - "SerializedName": "fileName", - "Description": "The [optional] filename of the media file.", - "Type": { - "$id": "102", - "Kind": "string" - }, - "IsRequired": false, - "IsReadOnly": false - } - ] - }, - "video": { - "$id": "103", - "Kind": "model", - "Name": "MessageTemplateVideo", - "CrossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateVideo", - "Usage": "Input", - "Description": "The message template's video value information.", - "DiscriminatorValue": "video", - "BaseModel": { - "$ref": "72" - }, - "Properties": [ - { - "$id": "104", - "Name": "kind", - "SerializedName": "kind", - "Description": "Message parameter type is video.", - "Type": { - "$id": "105", - "Kind": "constant", - "ValueType": { - "$id": "106", - "Kind": "string" - }, - "Value": "video" - }, - "IsRequired": true, - "IsReadOnly": false, - "IsDiscriminator": true - }, - { - "$id": "107", - "Name": "uri", - "SerializedName": "url", - "Description": "The (public) URL of the media.", - "Type": { - "$id": "108", - "Kind": "url" - }, - "IsRequired": true, - "IsReadOnly": false - }, - { - "$id": "109", - "Name": "caption", - "SerializedName": "caption", - "Description": "The [optional] caption of the media object.", - "Type": { - "$id": "110", - "Kind": "string" - }, - "IsRequired": false, - "IsReadOnly": false - }, - { - "$id": "111", - "Name": "fileName", - "SerializedName": "fileName", - "Description": "The [optional] filename of the media file.", - "Type": { - "$id": "112", - "Kind": "string" - }, - "IsRequired": false, - "IsReadOnly": false - } - ] - }, - "location": { - "$id": "113", - "Kind": "model", - "Name": "MessageTemplateLocation", - "CrossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateLocation", - "Usage": "Input", - "Description": "The message template's location value information.", - "DiscriminatorValue": "location", - "BaseModel": { - "$ref": "72" - }, - "Properties": [ - { - "$id": "114", - "Name": "kind", - "SerializedName": "kind", - "Description": "Message parameter type is location.", - "Type": { - "$id": "115", - "Kind": "constant", - "ValueType": { - "$id": "116", - "Kind": "string" - }, - "Value": "location" - }, - "IsRequired": true, - "IsReadOnly": false, - "IsDiscriminator": true - }, - { - "$id": "117", - "Name": "locationName", - "SerializedName": "locationName", - "Description": "The [Optional] name of the location.", - "Type": { - "$id": "118", - "Kind": "string" - }, - "IsRequired": false, - "IsReadOnly": false - }, - { - "$id": "119", - "Name": "address", - "SerializedName": "address", - "Description": "The [Optional] address of the location.", - "Type": { - "$id": "120", - "Kind": "string" - }, - "IsRequired": false, - "IsReadOnly": false - }, - { - "$id": "121", - "Name": "latitude", - "SerializedName": "latitude", - "Description": "The latitude of the location.", - "Type": { - "$id": "122", - "Kind": "float64" - }, - "IsRequired": true, - "IsReadOnly": false - }, - { - "$id": "123", - "Name": "longitude", - "SerializedName": "longitude", - "Description": "The longitude of the location.", - "Type": { - "$id": "124", - "Kind": "float64" - }, - "IsRequired": true, - "IsReadOnly": false - } - ] - }, - "quickAction": { - "$id": "125", - "Kind": "model", - "Name": "MessageTemplateQuickAction", - "CrossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateQuickAction", - "Usage": "Input", - "Description": "The message template's quick action value information.", - "DiscriminatorValue": "quickAction", - "BaseModel": { - "$ref": "72" - }, - "Properties": [ - { - "$id": "126", - "Name": "kind", - "SerializedName": "kind", - "Description": "Message parameter type is quick action.", - "Type": { - "$id": "127", - "Kind": "constant", - "ValueType": { - "$id": "128", - "Kind": "string" - }, - "Value": "quickAction" - }, - "IsRequired": true, - "IsReadOnly": false, - "IsDiscriminator": true - }, - { - "$id": "129", - "Name": "text", - "SerializedName": "text", - "Description": "The [Optional] quick action text", - "Type": { - "$id": "130", - "Kind": "string" - }, - "IsRequired": false, - "IsReadOnly": false - }, - { - "$id": "131", - "Name": "payload", - "SerializedName": "payload", - "Description": "The [Optional] quick action payload", - "Type": { - "$id": "132", - "Kind": "string" - }, - "IsRequired": false, - "IsReadOnly": false - } - ] - } - } - }, - "CrossLanguageDefinitionId": "TypeSpec.Array" - }, - "IsRequired": false, - "IsReadOnly": false - }, - { - "$id": "133", - "Name": "bindings", - "SerializedName": "bindings", - "Description": "The binding object to link values to the template specific locations", - "Type": { - "$id": "134", - "Kind": "model", - "Name": "MessageTemplateBindings", - "CrossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateBindings", - "Usage": "Input", - "Description": "The binding object to link values to the template specific locations", - "DiscriminatorProperty": { - "$id": "135", - "Name": "kind", - "SerializedName": "kind", - "Description": "The type discriminator describing a template bindings type.", - "Type": { - "$ref": "15" - }, - "IsRequired": true, - "IsReadOnly": false, - "IsDiscriminator": true - }, - "Properties": [ - { - "$ref": "135" - } - ], - "DiscriminatedSubtypes": { - "$id": "136", - "whatsApp": { - "$id": "137", - "Kind": "model", - "Name": "WhatsAppMessageTemplateBindings", - "CrossLanguageDefinitionId": "Azure.Communication.MessagesService.WhatsAppMessageTemplateBindings", - "Usage": "Input", - "Description": "The template bindings for WhatsApp", - "DiscriminatorValue": "whatsApp", - "BaseModel": { - "$ref": "134" - }, - "Properties": [ - { - "$id": "138", - "Name": "kind", - "SerializedName": "kind", - "Description": "MessageTemplateBindings is whatsApp", - "Type": { - "$id": "139", - "Kind": "constant", - "ValueType": { - "$id": "140", - "Kind": "string" - }, - "Value": "whatsApp" - }, - "IsRequired": true, - "IsReadOnly": false, - "IsDiscriminator": true - }, - { - "$id": "141", - "Name": "header", - "SerializedName": "header", - "Description": "The header template bindings", - "Type": { - "$id": "142", - "Kind": "array", - "Name": "ArrayWhatsAppMessageTemplateBindingsComponent", - "ValueType": { - "$id": "143", - "Kind": "model", - "Name": "WhatsAppMessageTemplateBindingsComponent", - "CrossLanguageDefinitionId": "Azure.Communication.MessagesService.WhatsAppMessageTemplateBindingsComponent", - "Usage": "Input", - "Description": "The template bindings component for WhatsApp", - "Properties": [ - { - "$id": "144", - "Name": "refValue", - "SerializedName": "refValue", - "Description": "The name of the referenced item in the template values.", - "Type": { - "$id": "145", - "Kind": "string" - }, - "IsRequired": true, - "IsReadOnly": false - } - ] - }, - "CrossLanguageDefinitionId": "TypeSpec.Array" - }, - "IsRequired": false, - "IsReadOnly": false - }, - { - "$id": "146", - "Name": "body", - "SerializedName": "body", - "Description": "The body template bindings", - "Type": { - "$id": "147", - "Kind": "array", - "Name": "ArrayWhatsAppMessageTemplateBindingsComponent", - "ValueType": { - "$ref": "143" - }, - "CrossLanguageDefinitionId": "TypeSpec.Array" - }, - "IsRequired": false, - "IsReadOnly": false - }, - { - "$id": "148", - "Name": "footer", - "SerializedName": "footer", - "Description": "The footer template bindings", - "Type": { - "$id": "149", - "Kind": "array", - "Name": "ArrayWhatsAppMessageTemplateBindingsComponent", - "ValueType": { - "$ref": "143" - }, - "CrossLanguageDefinitionId": "TypeSpec.Array" - }, - "IsRequired": false, - "IsReadOnly": false - }, - { - "$id": "150", - "Name": "buttons", - "SerializedName": "buttons", - "Description": "The button template bindings", - "Type": { - "$id": "151", - "Kind": "array", - "Name": "ArrayWhatsAppMessageTemplateBindingsButton", - "ValueType": { - "$id": "152", - "Kind": "model", - "Name": "WhatsAppMessageTemplateBindingsButton", - "CrossLanguageDefinitionId": "Azure.Communication.MessagesService.WhatsAppMessageTemplateBindingsButton", - "Usage": "Input", - "Description": "The template bindings component button for WhatsApp", - "Properties": [ - { - "$id": "153", - "Name": "subType", - "SerializedName": "subType", - "Description": "The WhatsApp button sub type", - "Type": { - "$ref": "18" - }, - "IsRequired": true, - "IsReadOnly": false - }, - { - "$id": "154", - "Name": "refValue", - "SerializedName": "refValue", - "Description": "The name of the referenced item in the template values.", - "Type": { - "$id": "155", - "Kind": "string" - }, - "IsRequired": true, - "IsReadOnly": false - } - ] - }, - "CrossLanguageDefinitionId": "TypeSpec.Array" - }, - "IsRequired": false, - "IsReadOnly": false - } - ] - } - } - }, - "IsRequired": false, - "IsReadOnly": false - } - ] - }, - "IsRequired": true, - "IsReadOnly": false - } - ] - } - } - }, - { - "$ref": "46" - }, - { - "$ref": "52" - }, - { - "$ref": "60" - }, - { - "$ref": "65" - }, - { - "$ref": "72" - }, - { - "$ref": "77" - }, - { - "$ref": "83" - }, - { - "$ref": "93" - }, - { - "$ref": "103" - }, - { - "$ref": "113" - }, - { - "$ref": "125" - }, - { - "$ref": "134" - }, - { - "$ref": "137" - }, - { - "$ref": "143" - }, - { - "$ref": "152" - }, - { - "$id": "156", - "Kind": "model", - "Name": "SendMessageResult", - "CrossLanguageDefinitionId": "Azure.Communication.MessagesService.SendMessageResult", - "Usage": "Output", - "Description": "Result of the send message operation.", - "Properties": [ - { - "$id": "157", - "Name": "receipts", - "SerializedName": "receipts", - "Description": "Receipts of the send message operation.", - "Type": { - "$id": "158", - "Kind": "array", - "Name": "ArrayMessageReceipt", - "ValueType": { - "$id": "159", - "Kind": "model", - "Name": "MessageReceipt", - "CrossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageReceipt", - "Usage": "Output", - "Description": "Receipt of the sending one message.", - "Properties": [ - { - "$id": "160", - "Name": "messageId", - "SerializedName": "messageId", - "Description": "The message id.", - "Type": { - "$id": "161", - "Kind": "string" - }, - "IsRequired": true, - "IsReadOnly": false - }, - { - "$id": "162", - "Name": "to", - "SerializedName": "to", - "Description": "The native external platform user identifier of the recipient.", - "Type": { - "$id": "163", - "Kind": "string" - }, - "IsRequired": true, - "IsReadOnly": false - } - ] - }, - "CrossLanguageDefinitionId": "TypeSpec.Array" - }, - "IsRequired": true, - "IsReadOnly": false - } - ] - }, - { - "$ref": "159" - }, - { - "$id": "164", - "Kind": "model", - "Name": "PagedMessageTemplateItem", - "CrossLanguageDefinitionId": "Azure.Core.Foundations.CustomPage", - "Usage": "Output", - "Description": "Paged collection of MessageTemplateItem items", - "Properties": [ - { - "$id": "165", - "Name": "value", - "SerializedName": "value", - "Description": "The MessageTemplateItem items on this page", - "Type": { - "$id": "166", - "Kind": "array", - "Name": "ArrayMessageTemplateItem", - "ValueType": { - "$id": "167", - "Kind": "model", - "Name": "MessageTemplateItem", - "CrossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateItem", - "Usage": "Output", - "Description": "The message template as returned from the service.", - "DiscriminatorProperty": { - "$id": "168", - "Name": "kind", - "SerializedName": "kind", - "Description": "The type discriminator describing a template type.", - "Type": { - "$ref": "32" - }, - "IsRequired": true, - "IsReadOnly": false, - "IsDiscriminator": true - }, - "Properties": [ - { - "$id": "169", - "Name": "name", - "SerializedName": "name", - "Description": "The template's name.", - "Type": { - "$id": "170", - "Kind": "string" - }, - "IsRequired": true, - "IsReadOnly": true - }, - { - "$id": "171", - "Name": "language", - "SerializedName": "language", - "Description": "The template's language, in the ISO 639 format, consist of a two-letter language code followed by an optional two-letter country code, e.g., 'en' or 'en_US'.", - "Type": { - "$id": "172", - "Kind": "string" - }, - "IsRequired": true, - "IsReadOnly": false - }, - { - "$id": "173", - "Name": "status", - "SerializedName": "status", - "Description": "The aggregated template status.", - "Type": { - "$ref": "26" - }, - "IsRequired": true, - "IsReadOnly": false - }, - { - "$ref": "168" - } - ], - "DiscriminatedSubtypes": { - "$id": "174", - "whatsApp": { - "$id": "175", - "Kind": "model", - "Name": "WhatsAppMessageTemplateItem", - "CrossLanguageDefinitionId": "Azure.Communication.MessagesService.WhatsAppMessageTemplateItem", - "Usage": "Output", - "Description": "The WhatsApp-specific template response contract", - "DiscriminatorValue": "whatsApp", - "BaseModel": { - "$ref": "167" - }, - "Properties": [ - { - "$id": "176", - "Name": "content", - "SerializedName": "content", - "Description": "WhatsApp platform's template content. This is the payload returned from WhatsApp API.", - "Type": { - "$id": "177", - "Kind": "any" - }, - "IsRequired": false, - "IsReadOnly": false - }, - { - "$id": "178", - "Name": "kind", - "SerializedName": "kind", - "Description": "Message template response type is whatsApp.", - "Type": { - "$id": "179", - "Kind": "constant", - "ValueType": { - "$id": "180", - "Kind": "string" - }, - "Value": "whatsApp" - }, - "IsRequired": true, - "IsReadOnly": false, - "IsDiscriminator": true - } - ] - } - } - }, - "CrossLanguageDefinitionId": "TypeSpec.Array" - }, - "IsRequired": true, - "IsReadOnly": false - }, - { - "$id": "181", - "Name": "nextLink", - "SerializedName": "nextLink", - "Description": "The link to the next page of items", - "Type": { - "$id": "182", - "Kind": "url" - }, - "IsRequired": false, - "IsReadOnly": false - } - ] - }, - { - "$ref": "167" - }, - { - "$ref": "175" - } - ], - "Clients": [ - { - "$id": "183", - "Name": "NotificationMessagesClient", - "Description": "", - "Operations": [ - { - "$id": "184", - "Name": "send", - "ResourceName": "NotificationMessagesClient", - "Description": "Sends a notification message from Business to User.", - "Accessibility": "public", - "Parameters": [ - { - "$id": "185", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Description": "The communication resource, for example https://my-resource.communication.azure.com", - "Type": { - "$id": "186", - "Kind": "url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - }, - { - "$id": "187", - "Name": "apiVersion", - "NameInRequest": "api-version", - "Description": "The API version to use for this operation.", - "Type": { - "$id": "188", - "Kind": "string" - }, - "Location": "Query", - "DefaultValue": { - "$id": "189", - "Type": { - "$id": "190", - "Kind": "string" - }, - "Value": "2024-02-01" - }, - "IsRequired": true, - "IsApiVersion": true, - "IsResourceParameter": false, - "IsContentType": false, - "IsEndpoint": false, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - }, - { - "$id": "191", - "Name": "repeatabilityRequestId", - "NameInRequest": "Repeatability-Request-ID", - "Description": "An opaque, globally-unique, client-generated string identifier for the request.", - "Type": { - "$id": "192", - "Kind": "string" - }, - "Location": "Header", - "IsRequired": false, - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsEndpoint": false, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Method" - }, - { - "$id": "193", - "Name": "repeatabilityFirstSent", - "NameInRequest": "Repeatability-First-Sent", - "Description": "Specifies the date and time at which the request was first created.", - "Type": { - "$id": "194", - "Kind": "utcDateTime", - "Encode": "rfc7231", - "WireType": { - "$id": "195", - "Kind": "string" - } - }, - "Location": "Header", - "IsRequired": false, - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsEndpoint": false, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Method" - }, - { - "$id": "196", - "Name": "clientRequestId", - "NameInRequest": "x-ms-client-request-id", - "Description": "An opaque, globally-unique, client-generated string identifier for the request.", - "Type": { - "$id": "197", - "Kind": "uuid", - "Encode": "string" - }, - "Location": "Header", - "IsRequired": false, - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsEndpoint": false, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Method" - }, - { - "$id": "198", - "Name": "notificationContent", - "NameInRequest": "body", - "Description": "Details of the message to send.", - "Type": { - "$ref": "38" - }, - "Location": "Body", - "IsRequired": true, - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsEndpoint": false, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Method" - }, - { - "$id": "199", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "200", - "Kind": "string" - }, - "Location": "Header", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": false, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Constant", - "DefaultValue": { - "$id": "201", - "Type": { - "$ref": "200" - }, - "Value": "application/json" - } - }, - { - "$id": "202", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Type": { - "$id": "203", - "Kind": "string" - }, - "Location": "Header", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": true, - "IsRequired": true, - "IsEndpoint": false, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Constant", - "DefaultValue": { - "$id": "204", - "Type": { - "$ref": "203" - }, - "Value": "application/json" - } - } - ], - "Responses": [ - { - "$id": "205", - "StatusCodes": [ - 202 - ], - "BodyType": { - "$ref": "156" - }, - "BodyMediaType": "Json", - "Headers": [ - { - "$id": "206", - "Name": "Repeatability-Result", - "NameInResponse": "repeatabilityResult", - "Description": "Indicates whether the repeatable request was accepted or rejected.", - "Type": { - "$ref": "22" - } - }, - { - "$id": "207", - "Name": "x-ms-client-request-id", - "NameInResponse": "clientRequestId", - "Description": "An opaque, globally-unique, client-generated string identifier for the request.", - "Type": { - "$id": "208", - "Kind": "uuid", - "Encode": "string" - } - } - ], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/messages/notifications:send", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true - }, - { - "$id": "209", - "Name": "downloadMediaInternal", - "ResourceName": "MessageDataStream", - "Description": "Download the Media payload from a User to Business message.", - "Accessibility": "internal", - "Parameters": [ - { - "$ref": "185" - }, - { - "$id": "210", - "Name": "apiVersion", - "NameInRequest": "api-version", - "Description": "The API version to use for this operation.", - "Type": { - "$id": "211", - "Kind": "string" - }, - "Location": "Query", - "DefaultValue": { - "$ref": "189" - }, - "IsRequired": true, - "IsApiVersion": true, - "IsResourceParameter": false, - "IsContentType": false, - "IsEndpoint": false, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - }, - { - "$id": "212", - "Name": "id", - "NameInRequest": "id", - "Description": "The stream ID.", - "Type": { - "$id": "213", - "Kind": "string" - }, - "Location": "Path", - "IsRequired": true, - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsEndpoint": false, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Method" - }, - { - "$id": "214", - "Name": "clientRequestId", - "NameInRequest": "x-ms-client-request-id", - "Description": "An opaque, globally-unique, client-generated string identifier for the request.", - "Type": { - "$id": "215", - "Kind": "uuid", - "Encode": "string" - }, - "Location": "Header", - "IsRequired": false, - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsEndpoint": false, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Method" - }, - { - "$id": "216", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "217", - "Kind": "string" - }, - "Location": "Header", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": false, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Constant", - "DefaultValue": { - "$id": "218", - "Type": { - "$ref": "217" - }, - "Value": "application/octet-stream" - } - } - ], - "Responses": [ - { - "$id": "219", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$id": "220", - "Kind": "bytes", - "Encode": "base64" - }, - "BodyMediaType": "Json", - "Headers": [ - { - "$id": "221", - "Name": "x-ms-client-request-id", - "NameInResponse": "clientRequestId", - "Description": "An opaque, globally-unique, client-generated string identifier for the request.", - "Type": { - "$id": "222", - "Kind": "uuid", - "Encode": "string" - } - } - ], - "IsErrorResponse": false, - "ContentTypes": [ - "application/octet-stream" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/messages/streams/{id}", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true - } - ], - "Protocol": { - "$id": "223" - }, - "Parameters": [ - { - "$ref": "185" - } - ] - }, - { - "$id": "224", - "Name": "MessageTemplateClient", - "Description": "", - "Operations": [ - { - "$id": "225", - "Name": "getTemplates", - "ResourceName": "MessageTemplateItem", - "Description": "List all templates for given Azure Communication Services channel", - "Accessibility": "public", - "Parameters": [ - { - "$ref": "185" - }, - { - "$id": "226", - "Name": "apiVersion", - "NameInRequest": "api-version", - "Description": "The API version to use for this operation.", - "Type": { - "$id": "227", - "Kind": "string" - }, - "Location": "Query", - "DefaultValue": { - "$ref": "189" - }, - "IsRequired": true, - "IsApiVersion": true, - "IsResourceParameter": false, - "IsContentType": false, - "IsEndpoint": false, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - }, - { - "$id": "228", - "Name": "channelId", - "NameInRequest": "channelId", - "Description": "The registration ID of the channel.", - "Type": { - "$id": "229", - "Kind": "uuid", - "Encode": "string" - }, - "Location": "Path", - "IsRequired": true, - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsEndpoint": false, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Method" - }, - { - "$id": "230", - "Name": "maxpagesize", - "NameInRequest": "maxpagesize", - "Description": "Number of objects to return per page.", - "Type": { - "$id": "231", - "Kind": "int32" - }, - "Location": "Query", - "IsRequired": false, - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsEndpoint": false, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Method" - }, - { - "$id": "232", - "Name": "clientRequestId", - "NameInRequest": "x-ms-client-request-id", - "Description": "An opaque, globally-unique, client-generated string identifier for the request.", - "Type": { - "$id": "233", - "Kind": "uuid", - "Encode": "string" - }, - "Location": "Header", - "IsRequired": false, - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsEndpoint": false, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Method" - }, - { - "$id": "234", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "235", - "Kind": "string" - }, - "Location": "Header", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": false, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Constant", - "DefaultValue": { - "$id": "236", - "Type": { - "$ref": "235" - }, - "Value": "application/json" - } - } - ], - "Responses": [ - { - "$id": "237", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "164" - }, - "BodyMediaType": "Json", - "Headers": [ - { - "$id": "238", - "Name": "x-ms-client-request-id", - "NameInResponse": "clientRequestId", - "Description": "An opaque, globally-unique, client-generated string identifier for the request.", - "Type": { - "$id": "239", - "Kind": "uuid", - "Encode": "string" - } - } - ], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/messages/channels/{channelId}/templates", - "BufferResponse": true, - "Paging": { - "$id": "240", - "NextLinkName": "nextLink", - "ItemName": "value" - }, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true - } - ], - "Protocol": { - "$id": "241" - }, - "Parameters": [ - { - "$ref": "185" - } - ] - } - ], - "Auth": { - "$id": "242", - "ApiKey": { - "$id": "243", - "Name": "Authorization" - }, - "OAuth2": { - "$id": "244", - "Scopes": [ - "https://communication.azure.com/.default" - ] - } - } -}