diff --git a/eng/Packages.Data.props b/eng/Packages.Data.props index ad7ff267b7ce..875a57158730 100644 --- a/eng/Packages.Data.props +++ b/eng/Packages.Data.props @@ -288,7 +288,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 b5b09bb5fe4f..698aaa990d1c 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.20250630.1" + "@azure-tools/typespec-csharp": "https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-js-test-autorest/npm/registry/@azure-tools/typespec-csharp/-/typespec-csharp-0.2.0-alpha.20250701.2.tgz" }, "devDependencies": { "@azure-tools/typespec-autorest": "0.57.1", @@ -26,9 +26,9 @@ } }, "node_modules/@autorest/csharp": { - "version": "3.0.0-beta.20250630.1", - "resolved": "https://registry.npmjs.org/@autorest/csharp/-/csharp-3.0.0-beta.20250630.1.tgz", - "integrity": "sha512-3k/x0oh/ZVu6mp/G3xMW7qtiLXBU4vkpMI7dEbugHe6qycKvtFTRht9HLuJq283nBSk4bei+2G0tDto+Iw75+A==" + "version": "3.0.0-alpha.20250701.2", + "resolved": "https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-js-test-autorest/npm/registry/@autorest/csharp/-/csharp-3.0.0-alpha.20250701.2.tgz", + "integrity": "sha512-xaeFrettTUE30JbKc/lQ73pkMlIXZdLjvujJQs9yvPAVW2uIh84d+cN6PwWLkGVehDLKgOqtGRsEgUgUNtOwYQ==" }, "node_modules/@azure-tools/typespec-autorest": { "version": "0.57.1", @@ -131,13 +131,13 @@ } }, "node_modules/@azure-tools/typespec-csharp": { - "version": "0.2.0-beta.20250630.1", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-csharp/-/typespec-csharp-0.2.0-beta.20250630.1.tgz", - "integrity": "sha512-pkEECeyvIi71H3GCPQWNq0bTlwgzKChVwiL6bl1Pqbka+6j/jT4rYqDRv6vnAaBX83rwiEpQNfWIqrzltohRFQ==", + "version": "0.2.0-alpha.20250701.2", + "resolved": "https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-js-test-autorest/npm/registry/@azure-tools/typespec-csharp/-/typespec-csharp-0.2.0-alpha.20250701.2.tgz", + "integrity": "sha512-39kB+KCleQOkxT4dHm+wzWEd2AST7DdcSEqCxOt49vCExhNOHBZs6vhMvNHZhYSikVhIqb/85/DnxUDbITaAgA==", "license": "MIT", "dependencies": { - "@autorest/csharp": "3.0.0-beta.20250630.1", - "@typespec/http-client-csharp": "1.0.0-alpha.20250618.2" + "@autorest/csharp": "3.0.0-alpha.20250701.2", + "@typespec/http-client-csharp": "1.0.0-alpha.20250627.2" }, "peerDependencies": { "@azure-tools/typespec-autorest": ">=0.57.0 <0.58.0 || ~0.58.0-0", @@ -649,13 +649,10 @@ } }, "node_modules/@typespec/http-client-csharp": { - "version": "1.0.0-alpha.20250618.2", - "resolved": "https://registry.npmjs.org/@typespec/http-client-csharp/-/http-client-csharp-1.0.0-alpha.20250618.2.tgz", - "integrity": "sha512-ozqf3qUl1It0PlTCCGt/EdIYh/js6r7y9k65++/h9gmK++2OY9/t7O+36Amy15cWr0apH7za4l8EaVGvQDWbOA==", + "version": "1.0.0-alpha.20250627.2", + "resolved": "https://registry.npmjs.org/@typespec/http-client-csharp/-/http-client-csharp-1.0.0-alpha.20250627.2.tgz", + "integrity": "sha512-zHsY1nglHUKq9VV3yxadUrkRUVwlxETWjfnMjdjhWWTDEFSsgk/OZV/CFnilC/G2GvoMPfEhPA4d6ntu6HOJZA==", "license": "MIT", - "dependencies": { - "json-serialize-refs": "0.1.0-0" - }, "peerDependencies": { "@azure-tools/typespec-azure-core": ">=0.57.0 <0.58.0 || ~0.58.0-0", "@azure-tools/typespec-client-generator-core": ">=0.57.0 <0.58.0 || ~0.58.0-0", @@ -1154,12 +1151,6 @@ "dev": true, "license": "MIT" }, - "node_modules/json-serialize-refs": { - "version": "0.1.0-0", - "resolved": "https://registry.npmjs.org/json-serialize-refs/-/json-serialize-refs-0.1.0-0.tgz", - "integrity": "sha512-SnNMfW2RRPDXIMKa8zdLb59UjMSI1UFZCtIb8ae68GcZ0a6x8b77lIWqqTOdq1azzmkXupD6UWriPLd0JCrFng==", - "license": "MIT" - }, "node_modules/merge2": { "version": "1.4.1", "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", diff --git a/eng/emitter-package.json b/eng/emitter-package.json index 56bbbc1c802c..d5715c606b0e 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.20250630.1" + "@azure-tools/typespec-csharp": "https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-js-test-autorest/npm/registry/@azure-tools/typespec-csharp/-/typespec-csharp-0.2.0-alpha.20250701.2.tgz" }, "devDependencies": { "@azure-tools/typespec-autorest": "0.57.1", @@ -19,5 +19,8 @@ "@typespec/streams": "0.71.0", "@typespec/versioning": "0.71.0", "@typespec/xml": "0.71.0" + }, + "overrides": { + "@autorest/csharp": "https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-js-test-autorest/npm/registry/@autorest/csharp/-/csharp-3.0.0-alpha.20250701.2.tgz" } } diff --git a/sdk/communication/Azure.Communication.Messages/tspCodeModel.json b/sdk/communication/Azure.Communication.Messages/tspCodeModel.json index 5576060a8dd0..2defec93494f 100644 --- a/sdk/communication/Azure.Communication.Messages/tspCodeModel.json +++ b/sdk/communication/Azure.Communication.Messages/tspCodeModel.json @@ -1,15636 +1,14658 @@ { - "$id": "1", - "name": "Azure.Communication.MessagesService", - "apiVersions": [ - "2024-02-01", - "2024-08-30", - "2025-01-15-preview", - "2025-04-01-preview" - ], - "enums": [ - { - "$id": "2", - "kind": "enum", - "name": "CommunicationMessageKind", - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.CommunicationMessageKind", - "valueType": { - "$id": "3", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "values": [ - { - "$id": "4", - "kind": "enumvalue", - "name": "text", - "value": "text", - "valueType": { - "$id": "5", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "doc": "Text message type.", - "decorators": [] - }, + "name": "Azure.Communication.MessagesService", + "apiVersions": [ + "2024-02-01", + "2024-08-30", + "2025-01-15-preview", + "2025-04-01-preview" + ], + "enums": [ { - "$id": "6", - "kind": "enumvalue", - "name": "image", - "value": "image", - "valueType": { - "$id": "7", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "1", + "kind": "enum", + "name": "CommunicationMessageKind", + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.CommunicationMessageKind", + "valueType": { + "$id": "2", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "3", + "kind": "enumvalue", + "name": "text", + "value": "text", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "doc": "Text message type.", + "decorators": [] + }, + { + "$id": "4", + "kind": "enumvalue", + "name": "image", + "value": "image", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "doc": "Image message type.", + "decorators": [] + }, + { + "$id": "5", + "kind": "enumvalue", + "name": "image_v0", + "value": "image_v0", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "doc": "Image message type. Legacy image type for `MediaNotificationContent` which is being deprecated", + "decorators": [] + }, + { + "$id": "6", + "kind": "enumvalue", + "name": "document", + "value": "document", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "doc": "Document message type.", + "decorators": [] + }, + { + "$id": "7", + "kind": "enumvalue", + "name": "video", + "value": "video", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "doc": "Video message type.", + "decorators": [] + }, + { + "$id": "8", + "kind": "enumvalue", + "name": "audio", + "value": "audio", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "doc": "Audio message type.", + "decorators": [] + }, + { + "$id": "9", + "kind": "enumvalue", + "name": "template", + "value": "template", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "doc": "Template message type.", + "decorators": [] + }, + { + "$id": "10", + "kind": "enumvalue", + "name": "sticker", + "value": "sticker", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "doc": "Sticker message type.", + "decorators": [] + }, + { + "$id": "11", + "kind": "enumvalue", + "name": "reaction", + "value": "reaction", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "doc": "Reaction message type.", + "decorators": [] + }, + { + "$id": "12", + "kind": "enumvalue", + "name": "interactive", + "value": "interactive", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "doc": "Interactive Actionable message type.", + "decorators": [] + } + ], + "namespace": "Azure.Communication.Messages", + "doc": "The type of message.", + "isFixed": false, + "isFlags": false, + "usage": "Input,Output,Json", "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "doc": "Image message type.", - "decorators": [] }, { - "$id": "8", - "kind": "enumvalue", - "name": "image_v0", - "value": "image_v0", - "valueType": { - "$id": "9", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "13", + "kind": "enum", + "name": "MessageContentKind", + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageContentKind", + "valueType": { + "$id": "14", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "15", + "kind": "enumvalue", + "name": "text", + "value": "text", + "valueType": { + "$ref": "14" + }, + "enumType": { + "$ref": "13" + }, + "doc": "The text content type.", + "decorators": [] + }, + { + "$id": "16", + "kind": "enumvalue", + "name": "image", + "value": "image", + "valueType": { + "$ref": "14" + }, + "enumType": { + "$ref": "13" + }, + "doc": "The image content type.", + "decorators": [] + }, + { + "$id": "17", + "kind": "enumvalue", + "name": "video", + "value": "video", + "valueType": { + "$ref": "14" + }, + "enumType": { + "$ref": "13" + }, + "doc": "The video content type.", + "decorators": [] + }, + { + "$id": "18", + "kind": "enumvalue", + "name": "document", + "value": "document", + "valueType": { + "$ref": "14" + }, + "enumType": { + "$ref": "13" + }, + "doc": "The document content type.", + "decorators": [] + }, + { + "$id": "19", + "kind": "enumvalue", + "name": "group", + "value": "group", + "valueType": { + "$ref": "14" + }, + "enumType": { + "$ref": "13" + }, + "doc": "The ActionSet content type.", + "decorators": [] + }, + { + "$id": "20", + "kind": "enumvalue", + "name": "buttonSet", + "value": "buttonSet", + "valueType": { + "$ref": "14" + }, + "enumType": { + "$ref": "13" + }, + "doc": "The ButtonSet content type.", + "decorators": [] + }, + { + "$id": "21", + "kind": "enumvalue", + "name": "url", + "value": "url", + "valueType": { + "$ref": "14" + }, + "enumType": { + "$ref": "13" + }, + "doc": "The Url content type.", + "decorators": [] + } + ], + "namespace": "Azure.Communication.Messages", + "doc": "The kind of Interactive message content.", + "isFixed": false, + "isFlags": false, + "usage": "Input,Json", "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "doc": "Image message type. Legacy image type for `MediaNotificationContent` which is being deprecated", - "decorators": [] }, { - "$id": "10", - "kind": "enumvalue", - "name": "document", - "value": "document", - "valueType": { - "$id": "11", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "22", + "kind": "enum", + "name": "MessageActionBindingKind", + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageActionBindingKind", + "valueType": { + "$id": "23", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "24", + "kind": "enumvalue", + "name": "whatsAppListAction", + "value": "whatsAppListAction", + "valueType": { + "$ref": "23" + }, + "enumType": { + "$ref": "22" + }, + "doc": "The WhatsApp List action binding kind.", + "decorators": [] + }, + { + "$id": "25", + "kind": "enumvalue", + "name": "whatsAppButtonAction", + "value": "whatsAppButtonAction", + "valueType": { + "$ref": "23" + }, + "enumType": { + "$ref": "22" + }, + "doc": "The WhatsApp Button action binding kind.", + "decorators": [] + }, + { + "$id": "26", + "kind": "enumvalue", + "name": "whatsAppUrlAction", + "value": "whatsAppUrlAction", + "valueType": { + "$ref": "23" + }, + "enumType": { + "$ref": "22" + }, + "doc": "The WhatsApp Url action binding kind.", + "decorators": [] + } + ], + "namespace": "Azure.Communication.Messages", + "doc": "The Kind of interactive message channel action binding like WhatsAppListAction.", + "isFixed": false, + "isFlags": false, + "usage": "Input,Json", "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "doc": "Document message type.", - "decorators": [] }, { - "$id": "12", - "kind": "enumvalue", - "name": "video", - "value": "video", - "valueType": { - "$id": "13", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "27", + "kind": "enum", + "name": "MessageTemplateValueKind", + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateValueKind", + "valueType": { + "$id": "28", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "29", + "kind": "enumvalue", + "name": "text", + "value": "text", + "valueType": { + "$ref": "28" + }, + "enumType": { + "$ref": "27" + }, + "doc": "The text template parameter type.", + "decorators": [] + }, + { + "$id": "30", + "kind": "enumvalue", + "name": "image", + "value": "image", + "valueType": { + "$ref": "28" + }, + "enumType": { + "$ref": "27" + }, + "doc": "The image template parameter type.", + "decorators": [] + }, + { + "$id": "31", + "kind": "enumvalue", + "name": "document", + "value": "document", + "valueType": { + "$ref": "28" + }, + "enumType": { + "$ref": "27" + }, + "doc": "The document template parameter type.", + "decorators": [] + }, + { + "$id": "32", + "kind": "enumvalue", + "name": "video", + "value": "video", + "valueType": { + "$ref": "28" + }, + "enumType": { + "$ref": "27" + }, + "doc": "The video template parameter type.", + "decorators": [] + }, + { + "$id": "33", + "kind": "enumvalue", + "name": "location", + "value": "location", + "valueType": { + "$ref": "28" + }, + "enumType": { + "$ref": "27" + }, + "doc": "The location template parameter type.", + "decorators": [] + }, + { + "$id": "34", + "kind": "enumvalue", + "name": "quickAction", + "value": "quickAction", + "valueType": { + "$ref": "28" + }, + "enumType": { + "$ref": "27" + }, + "doc": "The quick action template parameter type.", + "decorators": [] + } + ], + "namespace": "Azure.Communication.Messages", + "doc": "The type of the template parameter.", + "isFixed": false, + "isFlags": false, + "usage": "Input,Output,Json", "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "doc": "Video message type.", - "decorators": [] }, { - "$id": "14", - "kind": "enumvalue", - "name": "audio", - "value": "audio", - "valueType": { - "$id": "15", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "35", + "kind": "enum", + "name": "MessageTemplateBindingsKind", + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateBindingsKind", + "valueType": { + "$id": "36", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "37", + "kind": "enumvalue", + "name": "whatsApp", + "value": "whatsApp", + "valueType": { + "$ref": "36" + }, + "enumType": { + "$ref": "35" + }, + "doc": "The WhatsApp template type.", + "decorators": [] + } + ], + "namespace": "Azure.Communication.Messages", + "doc": "The type of the message template.", + "isFixed": false, + "isFlags": false, + "usage": "Input,Output,Json", "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "doc": "Audio message type.", - "decorators": [] }, { - "$id": "16", - "kind": "enumvalue", - "name": "template", - "value": "template", - "valueType": { - "$id": "17", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "38", + "kind": "enum", + "name": "WhatsAppMessageButtonSubType", + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.WhatsAppMessageButtonSubType", + "valueType": { + "$id": "39", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "40", + "kind": "enumvalue", + "name": "quickReply", + "value": "quickReply", + "valueType": { + "$ref": "39" + }, + "enumType": { + "$ref": "38" + }, + "doc": "The WhatsApp button sub type is quick reply.", + "decorators": [] + }, + { + "$id": "41", + "kind": "enumvalue", + "name": "url", + "value": "url", + "valueType": { + "$ref": "39" + }, + "enumType": { + "$ref": "38" + }, + "doc": "The WhatsApp button sub type is url.", + "decorators": [] + } + ], + "namespace": "Azure.Communication.Messages", + "doc": "The WhatsApp button sub type.", + "isFixed": false, + "isFlags": false, + "usage": "Input,Output,Json", "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "doc": "Template message type.", - "decorators": [] }, { - "$id": "18", - "kind": "enumvalue", - "name": "sticker", - "value": "sticker", - "valueType": { - "$id": "19", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "42", + "kind": "enum", + "name": "MessageTemplateStatus", + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateStatus", + "valueType": { + "$id": "43", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "44", + "kind": "enumvalue", + "name": "approved", + "value": "approved", + "valueType": { + "$ref": "43" + }, + "enumType": { + "$ref": "42" + }, + "doc": "Message template is approved.", + "decorators": [] + }, + { + "$id": "45", + "kind": "enumvalue", + "name": "rejected", + "value": "rejected", + "valueType": { + "$ref": "43" + }, + "enumType": { + "$ref": "42" + }, + "doc": "Message template is rejected.", + "decorators": [] + }, + { + "$id": "46", + "kind": "enumvalue", + "name": "pending", + "value": "pending", + "valueType": { + "$ref": "43" + }, + "enumType": { + "$ref": "42" + }, + "doc": "Message template is pending.", + "decorators": [] + }, + { + "$id": "47", + "kind": "enumvalue", + "name": "paused", + "value": "paused", + "valueType": { + "$ref": "43" + }, + "enumType": { + "$ref": "42" + }, + "doc": "Message template is paused.", + "decorators": [] + } + ], + "namespace": "Azure.Communication.Messages", + "doc": "The aggregated template status.", + "isFixed": false, + "isFlags": false, + "usage": "Output,Json", "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "doc": "Sticker message type.", - "decorators": [] }, { - "$id": "20", - "kind": "enumvalue", - "name": "reaction", - "value": "reaction", - "valueType": { - "$id": "21", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "48", + "kind": "enum", + "name": "CommunicationMessagesChannel", + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.CommunicationMessagesChannel", + "valueType": { + "$id": "49", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "50", + "kind": "enumvalue", + "name": "whatsApp", + "value": "whatsApp", + "valueType": { + "$ref": "49" + }, + "enumType": { + "$ref": "48" + }, + "doc": "The WhatsApp communication messages channel type.", + "decorators": [] + } + ], + "namespace": "Azure.Communication.Messages", + "doc": "The type of the communication messages channel.", + "isFixed": false, + "isFlags": false, + "usage": "Output,Json", "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "doc": "Reaction message type.", - "decorators": [] }, { - "$id": "22", - "kind": "enumvalue", - "name": "interactive", - "value": "interactive", - "valueType": { - "$id": "23", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "doc": "Interactive Actionable message type.", - "decorators": [] - } - ], - "namespace": "Azure.Communication.Messages", - "doc": "The type of message.", - "isFixed": false, - "isFlags": false, - "usage": "Input,Output,Json", - "decorators": [] - }, - { - "$id": "24", - "kind": "enum", - "name": "MessageContentKind", - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageContentKind", - "valueType": { - "$id": "25", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "values": [ - { - "$id": "26", - "kind": "enumvalue", - "name": "text", - "value": "text", - "valueType": { - "$id": "27", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "24" - }, - "doc": "The text content type.", - "decorators": [] - }, - { - "$id": "28", - "kind": "enumvalue", - "name": "image", - "value": "image", - "valueType": { - "$id": "29", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "24" - }, - "doc": "The image content type.", - "decorators": [] - }, - { - "$id": "30", - "kind": "enumvalue", - "name": "video", - "value": "video", - "valueType": { - "$id": "31", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "51", + "kind": "enum", + "name": "OutboundDeliveryStrategyKind", + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.OutboundDeliveryStrategyKind", + "valueType": { + "$id": "52", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "53", + "kind": "enumvalue", + "name": "internalOnly", + "value": "internalOnly", + "valueType": { + "$ref": "52" + }, + "enumType": { + "$ref": "51" + }, + "doc": "Delivery strategy for internal only.", + "decorators": [] + }, + { + "$id": "54", + "kind": "enumvalue", + "name": "allParticipants", + "value": "allParticipants", + "valueType": { + "$ref": "52" + }, + "enumType": { + "$ref": "51" + }, + "doc": "Delivery strategy for all participants.", + "decorators": [] + } + ], + "namespace": "Azure.Communication.Messages", + "doc": "The options of the outbound delivery strategy for messages sent by participants in a conversation.", + "isFixed": false, + "isFlags": false, + "usage": "Input,Output,Json", "decorators": [] - }, - "enumType": { - "$ref": "24" - }, - "doc": "The video content type.", - "decorators": [] }, { - "$id": "32", - "kind": "enumvalue", - "name": "document", - "value": "document", - "valueType": { - "$id": "33", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "55", + "kind": "enum", + "name": "ParticipantKind", + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ParticipantKind", + "valueType": { + "$id": "56", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "57", + "kind": "enumvalue", + "name": "internal", + "value": "internal", + "valueType": { + "$ref": "56" + }, + "enumType": { + "$ref": "55" + }, + "doc": "A participant internal to Azure Communication Services.", + "decorators": [] + }, + { + "$id": "58", + "kind": "enumvalue", + "name": "external", + "value": "external", + "valueType": { + "$ref": "56" + }, + "enumType": { + "$ref": "55" + }, + "doc": "A participant on other platforms", + "decorators": [] + } + ], + "namespace": "Azure.Communication.Messages", + "doc": "The type of a participant in a threaded conversation.", + "isFixed": false, + "isFlags": false, + "usage": "Input,Output,Json", "decorators": [] - }, - "enumType": { - "$ref": "24" - }, - "doc": "The document content type.", - "decorators": [] }, { - "$id": "34", - "kind": "enumvalue", - "name": "group", - "value": "group", - "valueType": { - "$id": "35", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "59", + "kind": "enum", + "name": "MessagePlatformKind", + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessagePlatformKind", + "valueType": { + "$id": "60", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "61", + "kind": "enumvalue", + "name": "communication", + "value": "communication", + "valueType": { + "$ref": "60" + }, + "enumType": { + "$ref": "59" + }, + "doc": "Azure Communication platform.", + "decorators": [] + }, + { + "$id": "62", + "kind": "enumvalue", + "name": "bot", + "value": "bot", + "valueType": { + "$ref": "60" + }, + "enumType": { + "$ref": "59" + }, + "doc": "Bot platform.", + "decorators": [] + }, + { + "$id": "63", + "kind": "enumvalue", + "name": "whatsApp", + "value": "whatsApp", + "valueType": { + "$ref": "60" + }, + "enumType": { + "$ref": "59" + }, + "doc": "WhatsApp platform.", + "decorators": [] + } + ], + "namespace": "Azure.Communication.Messages", + "doc": "Defines the type of message platform.", + "isFixed": false, + "isFlags": false, + "usage": "Input,Output,Json", "decorators": [] - }, - "enumType": { - "$ref": "24" - }, - "doc": "The ActionSet content type.", - "decorators": [] }, { - "$id": "36", - "kind": "enumvalue", - "name": "buttonSet", - "value": "buttonSet", - "valueType": { - "$id": "37", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "64", + "kind": "enum", + "name": "RepeatabilityResult", + "crossLanguageDefinitionId": "Azure.Core.RepeatabilityResult", + "valueType": { + "$id": "65", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "66", + "kind": "enumvalue", + "name": "accepted", + "value": "accepted", + "valueType": { + "$ref": "65" + }, + "enumType": { + "$ref": "64" + }, + "doc": "If the request was accepted and the server guarantees that the server state reflects a single execution of the operation.", + "decorators": [] + }, + { + "$id": "67", + "kind": "enumvalue", + "name": "rejected", + "value": "rejected", + "valueType": { + "$ref": "65" + }, + "enumType": { + "$ref": "64" + }, + "doc": "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.", + "decorators": [] + } + ], + "namespace": "Azure.Communication.Messages", + "doc": "Repeatability Result header options", + "isFixed": true, + "isFlags": false, + "usage": "Output", "decorators": [] - }, - "enumType": { - "$ref": "24" - }, - "doc": "The ButtonSet content type.", - "decorators": [] }, { - "$id": "38", - "kind": "enumvalue", - "name": "url", - "value": "url", - "valueType": { - "$id": "39", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "68", + "kind": "enum", + "name": "Versions", + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.Versions", + "valueType": { + "$id": "69", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "70", + "kind": "enumvalue", + "name": "c2024_02_01", + "value": "2024-02-01", + "valueType": { + "$ref": "69" + }, + "enumType": { + "$ref": "68" + }, + "doc": "Azure Communication Messages 2024-02-01 api version", + "decorators": [] + }, + { + "$id": "71", + "kind": "enumvalue", + "name": "c2024_08_30", + "value": "2024-08-30", + "valueType": { + "$ref": "69" + }, + "enumType": { + "$ref": "68" + }, + "doc": "Azure Communication Messages 2024-08-30 api version", + "decorators": [] + }, + { + "$id": "72", + "kind": "enumvalue", + "name": "c2025_01_15_Preview", + "value": "2025-01-15-preview", + "valueType": { + "$ref": "69" + }, + "enumType": { + "$ref": "68" + }, + "doc": "Azure Communication Messages 2025-01-15-preview api version", + "decorators": [] + }, + { + "$id": "73", + "kind": "enumvalue", + "name": "c2025_04_01_Preview", + "value": "2025-04-01-preview", + "valueType": { + "$ref": "69" + }, + "enumType": { + "$ref": "68" + }, + "doc": "Azure Communication Messages 2025-04-01-preview api version", + "decorators": [] + } + ], + "namespace": "Azure.Communication.Messages", + "doc": "Azure Communication Messages Versions", + "isFixed": true, + "isFlags": false, + "usage": "ApiVersionEnum", "decorators": [] - }, - "enumType": { - "$ref": "24" - }, - "doc": "The Url content type.", - "decorators": [] } - ], - "namespace": "Azure.Communication.Messages", - "doc": "The kind of Interactive message content.", - "isFixed": false, - "isFlags": false, - "usage": "Input,Json", - "decorators": [] - }, - { - "$id": "40", - "kind": "enum", - "name": "MessageActionBindingKind", - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageActionBindingKind", - "valueType": { - "$id": "41", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "values": [ + ], + "constants": [ { - "$id": "42", - "kind": "enumvalue", - "name": "whatsAppListAction", - "value": "whatsAppListAction", - "valueType": { - "$id": "43", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "74", + "kind": "constant", + "name": "sendContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "75", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "enumType": { - "$ref": "40" - }, - "doc": "The WhatsApp List action binding kind.", - "decorators": [] }, { - "$id": "44", - "kind": "enumvalue", - "name": "whatsAppButtonAction", - "value": "whatsAppButtonAction", - "valueType": { - "$id": "45", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "76", + "kind": "constant", + "name": "sendContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "77", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "enumType": { - "$ref": "40" - }, - "doc": "The WhatsApp Button action binding kind.", - "decorators": [] }, { - "$id": "46", - "kind": "enumvalue", - "name": "whatsAppUrlAction", - "value": "whatsAppUrlAction", - "valueType": { - "$id": "47", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "40" - }, - "doc": "The WhatsApp Url action binding kind.", - "decorators": [] - } - ], - "namespace": "Azure.Communication.Messages", - "doc": "The Kind of interactive message channel action binding like WhatsAppListAction.", - "isFixed": false, - "isFlags": false, - "usage": "Input,Json", - "decorators": [] - }, - { - "$id": "48", - "kind": "enum", - "name": "MessageTemplateValueKind", - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateValueKind", - "valueType": { - "$id": "49", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "values": [ - { - "$id": "50", - "kind": "enumvalue", - "name": "text", - "value": "text", - "valueType": { - "$id": "51", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "78", + "kind": "constant", + "name": "downloadMediaContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "79", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/octet-stream", "decorators": [] - }, - "enumType": { - "$ref": "48" - }, - "doc": "The text template parameter type.", - "decorators": [] }, { - "$id": "52", - "kind": "enumvalue", - "name": "image", - "value": "image", - "valueType": { - "$id": "53", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "80", + "kind": "constant", + "name": "MessageDataStreamContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "81", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/octet-stream", "decorators": [] - }, - "enumType": { - "$ref": "48" - }, - "doc": "The image template parameter type.", - "decorators": [] }, { - "$id": "54", - "kind": "enumvalue", - "name": "document", - "value": "document", - "valueType": { - "$id": "55", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "82", + "kind": "constant", + "name": "listTemplatesContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "83", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "enumType": { - "$ref": "48" - }, - "doc": "The document template parameter type.", - "decorators": [] }, { - "$id": "56", - "kind": "enumvalue", - "name": "video", - "value": "video", - "valueType": { - "$id": "57", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "84", + "kind": "constant", + "name": "createConversationContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "85", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "enumType": { - "$ref": "48" - }, - "doc": "The video template parameter type.", - "decorators": [] }, { - "$id": "58", - "kind": "enumvalue", - "name": "location", - "value": "location", - "valueType": { - "$id": "59", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "86", + "kind": "constant", + "name": "createConversationContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "87", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "enumType": { - "$ref": "48" - }, - "doc": "The location template parameter type.", - "decorators": [] }, { - "$id": "60", - "kind": "enumvalue", - "name": "quickAction", - "value": "quickAction", - "valueType": { - "$id": "61", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "48" - }, - "doc": "The quick action template parameter type.", - "decorators": [] - } - ], - "namespace": "Azure.Communication.Messages", - "doc": "The type of the template parameter.", - "isFixed": false, - "isFlags": false, - "usage": "Input,Output,Json", - "decorators": [] - }, - { - "$id": "62", - "kind": "enum", - "name": "MessageTemplateBindingsKind", - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateBindingsKind", - "valueType": { - "$id": "63", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "values": [ - { - "$id": "64", - "kind": "enumvalue", - "name": "whatsApp", - "value": "whatsApp", - "valueType": { - "$id": "65", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "88", + "kind": "constant", + "name": "getConversationContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "89", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "enumType": { - "$ref": "62" - }, - "doc": "The WhatsApp template type.", - "decorators": [] - } - ], - "namespace": "Azure.Communication.Messages", - "doc": "The type of the message template.", - "isFixed": false, - "isFlags": false, - "usage": "Input,Output,Json", - "decorators": [] - }, - { - "$id": "66", - "kind": "enum", - "name": "WhatsAppMessageButtonSubType", - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.WhatsAppMessageButtonSubType", - "valueType": { - "$id": "67", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "values": [ + }, { - "$id": "68", - "kind": "enumvalue", - "name": "quickReply", - "value": "quickReply", - "valueType": { - "$id": "69", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "90", + "kind": "constant", + "name": "deleteConversationContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "91", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "enumType": { - "$ref": "66" - }, - "doc": "The WhatsApp button sub type is quick reply.", - "decorators": [] }, { - "$id": "70", - "kind": "enumvalue", - "name": "url", - "value": "url", - "valueType": { - "$id": "71", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "92", + "kind": "constant", + "name": "terminateConversationContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "93", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "enumType": { - "$ref": "66" - }, - "doc": "The WhatsApp button sub type is url.", - "decorators": [] - } - ], - "namespace": "Azure.Communication.Messages", - "doc": "The WhatsApp button sub type.", - "isFixed": false, - "isFlags": false, - "usage": "Input,Output,Json", - "decorators": [] - }, - { - "$id": "72", - "kind": "enum", - "name": "Versions", - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.Versions", - "valueType": { - "$id": "73", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "values": [ + }, { - "$id": "74", - "kind": "enumvalue", - "name": "c2024_02_01", - "value": "2024-02-01", - "valueType": { - "$id": "75", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "94", + "kind": "constant", + "name": "listConversationsContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "95", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "enumType": { - "$ref": "72" - }, - "doc": "Azure Communication Messages 2024-02-01 api version", - "decorators": [] }, { - "$id": "76", - "kind": "enumvalue", - "name": "c2024_08_30", - "value": "2024-08-30", - "valueType": { - "$id": "77", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "96", + "kind": "constant", + "name": "listMessagesContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "97", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "enumType": { - "$ref": "72" - }, - "doc": "Azure Communication Messages 2024-08-30 api version", - "decorators": [] }, { - "$id": "78", - "kind": "enumvalue", - "name": "c2025_01_15_Preview", - "value": "2025-01-15-preview", - "valueType": { - "$id": "79", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "98", + "kind": "constant", + "name": "addParticipantsContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "99", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "enumType": { - "$ref": "72" - }, - "doc": "Azure Communication Messages 2025-01-15-preview api version", - "decorators": [] }, { - "$id": "80", - "kind": "enumvalue", - "name": "c2025_04_01_Preview", - "value": "2025-04-01-preview", - "valueType": { - "$id": "81", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "100", + "kind": "constant", + "name": "addParticipantsContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "101", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "enumType": { - "$ref": "72" - }, - "doc": "Azure Communication Messages 2025-04-01-preview api version", - "decorators": [] - } - ], - "namespace": "Azure.Communication.Messages", - "doc": "Azure Communication Messages Versions", - "isFixed": true, - "isFlags": false, - "usage": "ApiVersionEnum", - "decorators": [] - }, - { - "$id": "82", - "kind": "enum", - "name": "MessageTemplateStatus", - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateStatus", - "valueType": { - "$id": "83", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "values": [ + }, { - "$id": "84", - "kind": "enumvalue", - "name": "approved", - "value": "approved", - "valueType": { - "$id": "85", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "102", + "kind": "constant", + "name": "removeParticipantsContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "103", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "enumType": { - "$ref": "82" - }, - "doc": "Message template is approved.", - "decorators": [] }, { - "$id": "86", - "kind": "enumvalue", - "name": "rejected", - "value": "rejected", - "valueType": { - "$id": "87", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "104", + "kind": "constant", + "name": "removeParticipantsContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "105", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "enumType": { - "$ref": "82" - }, - "doc": "Message template is rejected.", - "decorators": [] }, { - "$id": "88", - "kind": "enumvalue", - "name": "pending", - "value": "pending", - "valueType": { - "$id": "89", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "106", + "kind": "constant", + "name": "analyzeConversationContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "107", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "enumType": { - "$ref": "82" - }, - "doc": "Message template is pending.", - "decorators": [] }, { - "$id": "90", - "kind": "enumvalue", - "name": "paused", - "value": "paused", - "valueType": { - "$id": "91", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "108", + "kind": "constant", + "name": "addParticipantsContentType2", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "109", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "enumType": { - "$ref": "82" - }, - "doc": "Message template is paused.", - "decorators": [] - } - ], - "namespace": "Azure.Communication.Messages", - "doc": "The aggregated template status.", - "isFixed": false, - "isFlags": false, - "usage": "Output,Json", - "decorators": [] - }, - { - "$id": "92", - "kind": "enum", - "name": "CommunicationMessagesChannel", - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.CommunicationMessagesChannel", - "valueType": { - "$id": "93", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "values": [ + }, { - "$id": "94", - "kind": "enumvalue", - "name": "whatsApp", - "value": "whatsApp", - "valueType": { - "$id": "95", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "110", + "kind": "constant", + "name": "addParticipantsContentType3", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "111", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "enumType": { - "$ref": "92" - }, - "doc": "The WhatsApp communication messages channel type.", - "decorators": [] - } - ], - "namespace": "Azure.Communication.Messages", - "doc": "The type of the communication messages channel.", - "isFixed": false, - "isFlags": false, - "usage": "Output,Json", - "decorators": [] - }, - { - "$id": "96", - "kind": "enum", - "name": "OutboundDeliveryStrategyKind", - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.OutboundDeliveryStrategyKind", - "valueType": { - "$id": "97", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "values": [ + }, { - "$id": "98", - "kind": "enumvalue", - "name": "internalOnly", - "value": "internalOnly", - "valueType": { - "$id": "99", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "112", + "kind": "constant", + "name": "removeParticipantsContentType2", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "113", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] - }, - "enumType": { - "$ref": "96" - }, - "doc": "Delivery strategy for internal only.", - "decorators": [] }, { - "$id": "100", - "kind": "enumvalue", - "name": "allParticipants", - "value": "allParticipants", - "valueType": { - "$id": "101", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "96" - }, - "doc": "Delivery strategy for all participants.", - "decorators": [] - } - ], - "namespace": "Azure.Communication.Messages", - "doc": "The options of the outbound delivery strategy for messages sent by participants in a conversation.", - "isFixed": false, - "isFlags": false, - "usage": "Input,Output,Json", - "decorators": [] - }, - { - "$id": "102", - "kind": "enum", - "name": "ParticipantKind", - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ParticipantKind", - "valueType": { - "$id": "103", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "values": [ - { - "$id": "104", - "kind": "enumvalue", - "name": "internal", - "value": "internal", - "valueType": { - "$id": "105", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "102" - }, - "doc": "A participant internal to Azure Communication Services.", - "decorators": [] - }, - { - "$id": "106", - "kind": "enumvalue", - "name": "external", - "value": "external", - "valueType": { - "$id": "107", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "102" - }, - "doc": "A participant on other platforms", - "decorators": [] - } - ], - "namespace": "Azure.Communication.Messages", - "doc": "The type of a participant in a threaded conversation.", - "isFixed": false, - "isFlags": false, - "usage": "Input,Output,Json", - "decorators": [] - }, - { - "$id": "108", - "kind": "enum", - "name": "MessagePlatformKind", - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessagePlatformKind", - "valueType": { - "$id": "109", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "values": [ - { - "$id": "110", - "kind": "enumvalue", - "name": "communication", - "value": "communication", - "valueType": { - "$id": "111", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "108" - }, - "doc": "Azure Communication platform.", - "decorators": [] - }, - { - "$id": "112", - "kind": "enumvalue", - "name": "bot", - "value": "bot", - "valueType": { - "$id": "113", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "108" - }, - "doc": "Bot platform.", - "decorators": [] - }, - { - "$id": "114", - "kind": "enumvalue", - "name": "whatsApp", - "value": "whatsApp", - "valueType": { - "$id": "115", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "108" - }, - "doc": "WhatsApp platform.", - "decorators": [] - } - ], - "namespace": "Azure.Communication.Messages", - "doc": "Defines the type of message platform.", - "isFixed": false, - "isFlags": false, - "usage": "Input,Output,Json", - "decorators": [] - }, - { - "$id": "116", - "kind": "enum", - "name": "RepeatabilityResult", - "crossLanguageDefinitionId": "Azure.Core.RepeatabilityResult", - "valueType": { - "$id": "117", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "values": [ - { - "$id": "118", - "kind": "enumvalue", - "name": "accepted", - "value": "accepted", - "valueType": { - "$id": "119", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "116" - }, - "doc": "If the request was accepted and the server guarantees that the server state reflects a single execution of the operation.", - "decorators": [] - }, - { - "$id": "120", - "kind": "enumvalue", - "name": "rejected", - "value": "rejected", - "valueType": { - "$id": "121", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "116" - }, - "doc": "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.", - "decorators": [] - } - ], - "namespace": "Azure.Communication.Messages", - "doc": "Repeatability Result header options", - "isFixed": true, - "isFlags": false, - "usage": "Output", - "decorators": [] - } - ], - "constants": [ - { - "$id": "122", - "kind": "constant", - "name": "sendContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "123", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "124", - "kind": "constant", - "name": "sendContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "125", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "126", - "kind": "constant", - "name": "downloadMediaContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "127", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/octet-stream", - "decorators": [] - }, - { - "$id": "128", - "kind": "constant", - "name": "MessageDataStreamContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "129", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/octet-stream", - "decorators": [] - }, - { - "$id": "130", - "kind": "constant", - "name": "listTemplatesContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "131", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "132", - "kind": "constant", - "name": "createConversationContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "133", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "134", - "kind": "constant", - "name": "createConversationContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "135", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "136", - "kind": "constant", - "name": "getConversationContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "137", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "138", - "kind": "constant", - "name": "deleteConversationContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "139", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "140", - "kind": "constant", - "name": "terminateConversationContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "141", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "142", - "kind": "constant", - "name": "listConversationsContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "143", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "144", - "kind": "constant", - "name": "listMessagesContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "145", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "146", - "kind": "constant", - "name": "addParticipantsContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "147", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "148", - "kind": "constant", - "name": "addParticipantsContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "149", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "150", - "kind": "constant", - "name": "removeParticipantsContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "151", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "152", - "kind": "constant", - "name": "removeParticipantsContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "153", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "154", - "kind": "constant", - "name": "analyzeConversationContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "155", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "156", - "kind": "constant", - "name": "addParticipantsContentType2", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "157", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "158", - "kind": "constant", - "name": "addParticipantsContentType3", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "159", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "160", - "kind": "constant", - "name": "removeParticipantsContentType2", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "161", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "162", - "kind": "constant", - "name": "removeParticipantsContentType3", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "163", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "164", - "kind": "constant", - "name": "listConversationsContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "165", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "166", - "kind": "constant", - "name": "listMessagesContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "167", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "168", - "kind": "constant", - "name": "sendMessageContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "169", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "170", - "kind": "constant", - "name": "sendMessageContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "171", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "172", - "kind": "constant", - "name": "analyzeConversationContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "173", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - } - ], - "models": [ - { - "$id": "174", - "kind": "model", - "name": "NotificationContent", - "namespace": "Azure.Communication.Messages", - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.NotificationContent", - "usage": "Input,Json", - "doc": "Details of the message to send.", - "decorators": [], - "discriminatorProperty": { - "$id": "175", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "The type discriminator describing a message type.", - "type": { - "$ref": "2" - }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.NotificationContent.kind", - "serializationOptions": { - "$id": "176", - "json": { - "$id": "177", - "name": "kind" - } - } - }, - "properties": [ - { - "$id": "178", - "kind": "property", - "name": "channelRegistrationId", - "serializedName": "channelRegistrationId", - "doc": "The Channel Registration ID for the Business Identifier.", - "type": { - "$id": "179", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "180", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.NotificationContent.channelRegistrationId", - "serializationOptions": { - "$id": "181", - "json": { - "$id": "182", - "name": "channelRegistrationId" - } - } - }, - { - "$id": "183", - "kind": "property", - "name": "to", - "serializedName": "to", - "doc": "The native external platform user identifiers of the recipient.", - "type": { - "$id": "184", - "kind": "array", - "name": "Array", + "$id": "114", + "kind": "constant", + "name": "removeParticipantsContentType3", + "namespace": "", + "usage": "None", "valueType": { - "$id": "185", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.NotificationContent.to", - "serializationOptions": { - "$id": "186", - "json": { - "$id": "187", - "name": "to" - } - } - }, - { - "$ref": "175" - } - ], - "discriminatedSubtypes": { - "$id": "188", - "text": { - "$id": "189", - "kind": "model", - "name": "TextNotificationContent", - "namespace": "Azure.Communication.Messages", - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.TextNotificationContent", - "usage": "Input,Json", - "doc": "A request to send a text notification.", - "discriminatorValue": "text", - "decorators": [], - "baseModel": { - "$ref": "174" - }, - "properties": [ - { - "$id": "190", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "Message notification type is text.", - "type": { - "$id": "191", - "kind": "enumvalue", - "name": "text", - "value": "text", - "valueType": { - "$id": "192", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "doc": "Text message type.", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.TextNotificationContent.kind", - "serializationOptions": { - "$id": "193", - "json": { - "$id": "194", - "name": "kind" - } - } - }, - { - "$id": "195", - "kind": "property", - "name": "content", - "serializedName": "content", - "doc": "Message content.", - "type": { - "$id": "196", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.TextNotificationContent.content", - "serializationOptions": { - "$id": "197", - "json": { - "$id": "198", - "name": "content" - } - } - } - ] - }, - "image_v0": { - "$id": "199", - "kind": "model", - "name": "MediaNotificationContent", - "namespace": "Azure.Communication.Messages", - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MediaNotificationContent", - "usage": "Input,Json", - "deprecation": "`MediaNotificationContent` is being deprecated, we encourage you to use the new `ImageNotificationContent` for sending images instead.", - "doc": "@deprecated A request to send an image notification.", - "discriminatorValue": "image_v0", - "decorators": [], - "baseModel": { - "$ref": "174" - }, - "properties": [ - { - "$id": "200", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "Message notification type is image.", - "type": { - "$id": "201", - "kind": "enumvalue", - "name": "image_v0", - "value": "image_v0", - "valueType": { - "$id": "202", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "doc": "Image message type. Legacy image type for `MediaNotificationContent` which is being deprecated", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MediaNotificationContent.kind", - "serializationOptions": { - "$id": "203", - "json": { - "$id": "204", - "name": "kind" - } - } - }, - { - "$id": "205", - "kind": "property", - "name": "content", - "serializedName": "content", - "doc": "Optional text content.", - "type": { - "$id": "206", + "$id": "115", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MediaNotificationContent.content", - "serializationOptions": { - "$id": "207", - "json": { - "$id": "208", - "name": "content" - } - } }, - { - "$id": "209", - "kind": "property", - "name": "mediaUri", - "serializedName": "mediaUri", - "doc": "A media url for the file. Required if the type is one of the supported media types, e.g. image", - "type": { - "$id": "210", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MediaNotificationContent.mediaUri", - "serializationOptions": { - "$id": "211", - "json": { - "$id": "212", - "name": "mediaUri" - } - } - } - ] + "value": "application/json", + "decorators": [] }, - "image": { - "$id": "213", - "kind": "model", - "name": "ImageNotificationContent", - "namespace": "Azure.Communication.Messages", - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ImageNotificationContent", - "usage": "Input,Json", - "doc": "A request to send an image notification.", - "discriminatorValue": "image", - "decorators": [], - "baseModel": { - "$ref": "174" - }, - "properties": [ - { - "$id": "214", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "Message notification type is image.", - "type": { - "$id": "215", - "kind": "enumvalue", - "name": "image", - "value": "image", - "valueType": { - "$id": "216", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "doc": "Image message type.", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ImageNotificationContent.kind", - "serializationOptions": { - "$id": "217", - "json": { - "$id": "218", - "name": "kind" - } - } - }, - { - "$id": "219", - "kind": "property", - "name": "caption", - "serializedName": "caption", - "doc": "Optional text content.", - "type": { - "$id": "220", + { + "$id": "116", + "kind": "constant", + "name": "listConversationsContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "117", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ImageNotificationContent.caption", - "serializationOptions": { - "$id": "221", - "json": { - "$id": "222", - "name": "caption" - } - } }, - { - "$id": "223", - "kind": "property", - "name": "mediaUri", - "serializedName": "mediaUri", - "doc": "A media url for the file. Required if the type is one of the supported media types, e.g. image", - "type": { - "$id": "224", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ImageNotificationContent.mediaUri", - "serializationOptions": { - "$id": "225", - "json": { - "$id": "226", - "name": "mediaUri" - } - } - } - ] + "value": "application/json", + "decorators": [] }, - "document": { - "$id": "227", - "kind": "model", - "name": "DocumentNotificationContent", - "namespace": "Azure.Communication.Messages", - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.DocumentNotificationContent", - "usage": "Input,Json", - "doc": "A request to send a document notification.", - "discriminatorValue": "document", - "decorators": [], - "baseModel": { - "$ref": "174" - }, - "properties": [ - { - "$id": "228", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "Message notification type is document.", - "type": { - "$id": "229", - "kind": "enumvalue", - "name": "document", - "value": "document", - "valueType": { - "$id": "230", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "doc": "Document message type.", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.DocumentNotificationContent.kind", - "serializationOptions": { - "$id": "231", - "json": { - "$id": "232", - "name": "kind" - } - } - }, - { - "$id": "233", - "kind": "property", - "name": "caption", - "serializedName": "caption", - "doc": "Optional text content.", - "type": { - "$id": "234", + { + "$id": "118", + "kind": "constant", + "name": "listMessagesContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "119", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.DocumentNotificationContent.caption", - "serializationOptions": { - "$id": "235", - "json": { - "$id": "236", - "name": "caption" - } - } }, - { - "$id": "237", - "kind": "property", - "name": "fileName", - "serializedName": "fileName", - "doc": "Optional name for the file.", - "type": { - "$id": "238", + "value": "application/json", + "decorators": [] + }, + { + "$id": "120", + "kind": "constant", + "name": "sendMessageContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "121", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.DocumentNotificationContent.fileName", - "serializationOptions": { - "$id": "239", - "json": { - "$id": "240", - "name": "fileName" - } - } }, - { - "$id": "241", - "kind": "property", - "name": "mediaUri", - "serializedName": "mediaUri", - "doc": "A media url for the file. Required if the type is one of the supported media types, e.g. image", - "type": { - "$id": "242", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.DocumentNotificationContent.mediaUri", - "serializationOptions": { - "$id": "243", - "json": { - "$id": "244", - "name": "mediaUri" - } - } - } - ] + "value": "application/json", + "decorators": [] }, - "video": { - "$id": "245", - "kind": "model", - "name": "VideoNotificationContent", - "namespace": "Azure.Communication.Messages", - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.VideoNotificationContent", - "usage": "Input,Json", - "doc": "A request to send a video notification.", - "discriminatorValue": "video", - "decorators": [], - "baseModel": { - "$ref": "174" - }, - "properties": [ - { - "$id": "246", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "Message notification type is video.", - "type": { - "$id": "247", - "kind": "enumvalue", - "name": "video", - "value": "video", - "valueType": { - "$id": "248", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "doc": "Video message type.", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.VideoNotificationContent.kind", - "serializationOptions": { - "$id": "249", - "json": { - "$id": "250", - "name": "kind" - } - } - }, - { - "$id": "251", - "kind": "property", - "name": "caption", - "serializedName": "caption", - "doc": "Optional text content.", - "type": { - "$id": "252", + { + "$id": "122", + "kind": "constant", + "name": "sendMessageContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "123", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.VideoNotificationContent.caption", - "serializationOptions": { - "$id": "253", - "json": { - "$id": "254", - "name": "caption" - } - } - }, - { - "$id": "255", - "kind": "property", - "name": "mediaUri", - "serializedName": "mediaUri", - "doc": "A media url for the file. Required if the type is one of the supported media types, e.g. image", - "type": { - "$id": "256", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.VideoNotificationContent.mediaUri", - "serializationOptions": { - "$id": "257", - "json": { - "$id": "258", - "name": "mediaUri" - } - } - } - ] - }, - "audio": { - "$id": "259", - "kind": "model", - "name": "AudioNotificationContent", - "namespace": "Azure.Communication.Messages", - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.AudioNotificationContent", - "usage": "Input,Json", - "doc": "A request to send an audio notification.", - "discriminatorValue": "audio", - "decorators": [], - "baseModel": { - "$ref": "174" - }, - "properties": [ - { - "$id": "260", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "Message notification type is audio.", - "type": { - "$id": "261", - "kind": "enumvalue", - "name": "audio", - "value": "audio", - "valueType": { - "$id": "262", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "doc": "Audio message type.", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.AudioNotificationContent.kind", - "serializationOptions": { - "$id": "263", - "json": { - "$id": "264", - "name": "kind" - } - } }, - { - "$id": "265", - "kind": "property", - "name": "mediaUri", - "serializedName": "mediaUri", - "doc": "A media url for the file. Required if the type is one of the supported media types, e.g. image", - "type": { - "$id": "266", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.AudioNotificationContent.mediaUri", - "serializationOptions": { - "$id": "267", - "json": { - "$id": "268", - "name": "mediaUri" - } - } - } - ] + "value": "application/json", + "decorators": [] }, - "reaction": { - "$id": "269", - "kind": "model", - "name": "ReactionNotificationContent", - "namespace": "Azure.Communication.Messages", - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ReactionNotificationContent", - "usage": "Input,Json", - "doc": "A request to send a Reaction notification.", - "discriminatorValue": "reaction", - "decorators": [], - "baseModel": { - "$ref": "174" - }, - "properties": [ - { - "$id": "270", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "Message notification type is reaction.", - "type": { - "$id": "271", - "kind": "enumvalue", - "name": "reaction", - "value": "reaction", - "valueType": { - "$id": "272", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "2" - }, - "doc": "Reaction message type.", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ReactionNotificationContent.kind", - "serializationOptions": { - "$id": "273", - "json": { - "$id": "274", - "name": "kind" - } - } - }, - { - "$id": "275", - "kind": "property", - "name": "emoji", - "serializedName": "emoji", - "doc": "emoji content like \\uD83D\\uDE00.", - "type": { - "$id": "276", + { + "$id": "124", + "kind": "constant", + "name": "analyzeConversationContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "125", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ReactionNotificationContent.emoji", - "serializationOptions": { - "$id": "277", - "json": { - "$id": "278", - "name": "emoji" - } - } }, - { - "$id": "279", - "kind": "property", - "name": "messageId", - "serializedName": "messageId", - "doc": "ID of the previous message you want to reply to.", - "type": { - "$id": "280", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ReactionNotificationContent.messageId", - "serializationOptions": { - "$id": "281", - "json": { - "$id": "282", - "name": "messageId" - } - } - } - ] - }, - "sticker": { - "$id": "283", - "kind": "model", - "name": "StickerNotificationContent", - "namespace": "Azure.Communication.Messages", - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.StickerNotificationContent", - "usage": "Input,Json", - "doc": "A request to send a Sticker notification.", - "discriminatorValue": "sticker", - "decorators": [], - "baseModel": { - "$ref": "174" - }, - "properties": [ - { - "$id": "284", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "Message notification type is sticker.", - "type": { - "$id": "285", - "kind": "enumvalue", - "name": "sticker", - "value": "sticker", - "valueType": { - "$id": "286", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "2" + "value": "application/json", + "decorators": [] + } + ], + "models": [ + { + "$id": "126", + "kind": "model", + "name": "NotificationContent", + "namespace": "Azure.Communication.Messages", + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.NotificationContent", + "usage": "Input,Json", + "doc": "Details of the message to send.", + "decorators": [], + "discriminatorProperty": { + "$id": "127", + "kind": "property", + "name": "kind", + "serializedName": "kind", + "doc": "The type discriminator describing a message type.", + "type": { + "$ref": "1" }, - "doc": "Sticker message type.", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.StickerNotificationContent.kind", - "serializationOptions": { - "$id": "287", - "json": { - "$id": "288", - "name": "kind" + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.NotificationContent.kind", + "serializationOptions": { + "json": { + "name": "kind" + } } - } }, - { - "$id": "289", - "kind": "property", - "name": "mediaUri", - "serializedName": "mediaUri", - "doc": "A media url for the file. Required if the type is one of the supported media types, e.g. image", - "type": { - "$id": "290", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.StickerNotificationContent.mediaUri", - "serializationOptions": { - "$id": "291", - "json": { - "$id": "292", - "name": "mediaUri" - } - } - } - ] - }, - "interactive": { - "$id": "293", - "kind": "model", - "name": "InteractiveNotificationContent", - "namespace": "Azure.Communication.Messages", - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.InteractiveNotificationContent", - "usage": "Input,Json", - "doc": "A request to send an Interactive message notification.", - "discriminatorValue": "interactive", - "decorators": [], - "baseModel": { - "$ref": "174" - }, - "properties": [ - { - "$id": "294", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "Message notification type is Interactive.", - "type": { - "$id": "295", - "kind": "enumvalue", - "name": "interactive", - "value": "interactive", - "valueType": { - "$id": "296", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "2" + "properties": [ + { + "$id": "128", + "kind": "property", + "name": "channelRegistrationId", + "serializedName": "channelRegistrationId", + "doc": "The Channel Registration ID for the Business Identifier.", + "type": { + "$id": "129", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "130", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.NotificationContent.channelRegistrationId", + "serializationOptions": { + "json": { + "name": "channelRegistrationId" + } + } }, - "doc": "Interactive Actionable message type.", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.InteractiveNotificationContent.kind", - "serializationOptions": { - "$id": "297", - "json": { - "$id": "298", - "name": "kind" - } - } - }, - { - "$id": "299", - "kind": "property", - "name": "interactiveMessage", - "serializedName": "interactiveMessage", - "doc": "The interactive message content.", - "type": { - "$id": "300", - "kind": "model", - "name": "InteractiveMessage", - "namespace": "Azure.Communication.Messages", - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.InteractiveMessage", - "usage": "Input,Json", - "doc": "The Interactive message content to which user can read and respond.", - "decorators": [], - "properties": [ - { - "$id": "301", + { + "$id": "131", "kind": "property", - "name": "header", - "serializedName": "header", - "doc": "Gets or Sets Header content. Supports the following types:text, images etc.", + "name": "to", + "serializedName": "to", + "doc": "The native external platform user identifiers of the recipient.", "type": { - "$id": "302", - "kind": "model", - "name": "MessageContent", - "namespace": "Azure.Communication.Messages", - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageContent", - "usage": "Input,Json", - "doc": "The message content object used to create interactive messages components.", - "decorators": [], - "discriminatorProperty": { - "$id": "303", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "Kind of MessageContent.", - "type": { - "$ref": "24" + "$id": "132", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "133", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageContent.kind", - "serializationOptions": { - "$id": "304", - "json": { - "$id": "305", - "name": "kind" - } + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.NotificationContent.to", + "serializationOptions": { + "json": { + "name": "to" } - }, - "properties": [ + } + }, + { + "$ref": "127" + } + ], + "discriminatedSubtypes": { + "text": { + "$id": "134", + "kind": "model", + "name": "TextNotificationContent", + "namespace": "Azure.Communication.Messages", + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.TextNotificationContent", + "usage": "Input,Json", + "doc": "A request to send a text notification.", + "discriminatorValue": "text", + "decorators": [], + "baseModel": { + "$ref": "126" + }, + "properties": [ { - "$ref": "303" - } - ], - "discriminatedSubtypes": { - "$id": "306", - "text": { - "$id": "307", - "kind": "model", - "name": "TextMessageContent", - "namespace": "Azure.Communication.Messages", - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.TextMessageContent", - "usage": "Input,Json", - "doc": "The message content of type text information.", - "discriminatorValue": "text", - "decorators": [], - "baseModel": { - "$ref": "302" - }, - "properties": [ - { - "$id": "308", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "Message content kind is text.", - "type": { - "$id": "309", - "kind": "enumvalue", - "name": "text", - "value": "text", - "valueType": { - "$id": "310", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "24" - }, - "doc": "The text content type.", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.TextMessageContent.kind", - "serializationOptions": { - "$id": "311", + "$id": "135", + "kind": "property", + "name": "kind", + "serializedName": "kind", + "doc": "Message notification type is text.", + "type": { + "$ref": "3" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.TextNotificationContent.kind", + "serializationOptions": { "json": { - "$id": "312", - "name": "kind" + "name": "kind" } - } - }, - { - "$id": "313", - "kind": "property", - "name": "text", - "serializedName": "text", - "doc": "The text value.", - "type": { - "$id": "314", + } + }, + { + "$id": "136", + "kind": "property", + "name": "content", + "serializedName": "content", + "doc": "Message content.", + "type": { + "$id": "137", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.TextMessageContent.text", - "serializationOptions": { - "$id": "315", + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.TextNotificationContent.content", + "serializationOptions": { "json": { - "$id": "316", - "name": "text" + "name": "content" } - } } - ] - }, - "document": { - "$id": "317", - "kind": "model", - "name": "DocumentMessageContent", - "namespace": "Azure.Communication.Messages", - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.DocumentMessageContent", - "usage": "Input,Json", - "doc": "The message content of type document information.", - "discriminatorValue": "document", - "decorators": [], - "baseModel": { - "$ref": "302" - }, - "properties": [ - { - "$id": "318", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "Message content kind is document.", - "type": { - "$id": "319", - "kind": "enumvalue", - "name": "document", - "value": "document", - "valueType": { - "$id": "320", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "24" - }, - "doc": "The document content type.", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.DocumentMessageContent.kind", - "serializationOptions": { - "$id": "321", + } + ] + }, + "image_v0": { + "$id": "138", + "kind": "model", + "name": "MediaNotificationContent", + "namespace": "Azure.Communication.Messages", + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MediaNotificationContent", + "usage": "Input,Json", + "deprecation": "`MediaNotificationContent` is being deprecated, we encourage you to use the new `ImageNotificationContent` for sending images instead.", + "doc": "@deprecated A request to send an image notification.", + "discriminatorValue": "image_v0", + "decorators": [], + "baseModel": { + "$ref": "126" + }, + "properties": [ + { + "$id": "139", + "kind": "property", + "name": "kind", + "serializedName": "kind", + "doc": "Message notification type is image.", + "type": { + "$ref": "5" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MediaNotificationContent.kind", + "serializationOptions": { "json": { - "$id": "322", - "name": "kind" + "name": "kind" } - } - }, - { - "$id": "323", - "kind": "property", - "name": "mediaUri", - "serializedName": "mediaUri", - "doc": "MediaUri of the media content.", - "type": { - "$id": "324", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.DocumentMessageContent.mediaUri", - "serializationOptions": { - "$id": "325", - "json": { - "$id": "326", - "name": "mediaUri" - } - } } - ] }, - "image": { - "$id": "327", - "kind": "model", - "name": "ImageMessageContent", - "namespace": "Azure.Communication.Messages", - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ImageMessageContent", - "usage": "Input,Json", - "doc": "The message content of type image information.", - "discriminatorValue": "image", - "decorators": [], - "baseModel": { - "$ref": "302" - }, - "properties": [ - { - "$id": "328", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "Message content kind is image.", - "type": { - "$id": "329", - "kind": "enumvalue", - "name": "image", - "value": "image", - "valueType": { - "$id": "330", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "24" - }, - "doc": "The image content type.", + { + "$id": "140", + "kind": "property", + "name": "content", + "serializedName": "content", + "doc": "Optional text content.", + "type": { + "$id": "141", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ImageMessageContent.kind", - "serializationOptions": { - "$id": "331", + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MediaNotificationContent.content", + "serializationOptions": { "json": { - "$id": "332", - "name": "kind" + "name": "content" } - } - }, - { - "$id": "333", - "kind": "property", - "name": "mediaUri", - "serializedName": "mediaUri", - "doc": "MediaUri of the media content.", - "type": { - "$id": "334", + } + }, + { + "$id": "142", + "kind": "property", + "name": "mediaUri", + "serializedName": "mediaUri", + "doc": "A media url for the file. Required if the type is one of the supported media types, e.g. image", + "type": { + "$id": "143", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ImageMessageContent.mediaUri", - "serializationOptions": { - "$id": "335", + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MediaNotificationContent.mediaUri", + "serializationOptions": { "json": { - "$id": "336", - "name": "mediaUri" + "name": "mediaUri" + } + } + } + ] + }, + "image": { + "$id": "144", + "kind": "model", + "name": "ImageNotificationContent", + "namespace": "Azure.Communication.Messages", + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ImageNotificationContent", + "usage": "Input,Json", + "doc": "A request to send an image notification.", + "discriminatorValue": "image", + "decorators": [], + "baseModel": { + "$ref": "126" + }, + "properties": [ + { + "$id": "145", + "kind": "property", + "name": "kind", + "serializedName": "kind", + "doc": "Message notification type is image.", + "type": { + "$ref": "4" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ImageNotificationContent.kind", + "serializationOptions": { + "json": { + "name": "kind" } - } } - ] }, - "video": { - "$id": "337", - "kind": "model", - "name": "VideoMessageContent", - "namespace": "Azure.Communication.Messages", - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.VideoMessageContent", - "usage": "Input,Json", - "doc": "The message content of type video information.", - "discriminatorValue": "video", - "decorators": [], - "baseModel": { - "$ref": "302" - }, - "properties": [ - { - "$id": "338", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "Message content kind is video.", - "type": { - "$id": "339", - "kind": "enumvalue", - "name": "video", - "value": "video", - "valueType": { - "$id": "340", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "24" - }, - "doc": "The video content type.", + { + "$id": "146", + "kind": "property", + "name": "caption", + "serializedName": "caption", + "doc": "Optional text content.", + "type": { + "$id": "147", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.VideoMessageContent.kind", - "serializationOptions": { - "$id": "341", + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ImageNotificationContent.caption", + "serializationOptions": { "json": { - "$id": "342", - "name": "kind" + "name": "caption" } - } - }, - { - "$id": "343", - "kind": "property", - "name": "mediaUri", - "serializedName": "mediaUri", - "doc": "MediaUri of the media content.", - "type": { - "$id": "344", + } + }, + { + "$id": "148", + "kind": "property", + "name": "mediaUri", + "serializedName": "mediaUri", + "doc": "A media url for the file. Required if the type is one of the supported media types, e.g. image", + "type": { + "$id": "149", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.VideoMessageContent.mediaUri", - "serializationOptions": { - "$id": "345", + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ImageNotificationContent.mediaUri", + "serializationOptions": { "json": { - "$id": "346", - "name": "mediaUri" + "name": "mediaUri" } - } } - ] - }, - "buttonSet": { - "$id": "347", - "kind": "model", - "name": "ButtonSetContent", - "namespace": "Azure.Communication.Messages", - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ButtonSetContent", - "usage": "Input,Json", - "doc": "The message content of type ButtonSet/ List of buttons information.", - "discriminatorValue": "buttonSet", - "decorators": [], - "baseModel": { - "$ref": "302" - }, - "properties": [ - { - "$id": "348", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "Message content kind is Button.", - "type": { - "$id": "349", - "kind": "enumvalue", - "name": "buttonSet", - "value": "buttonSet", - "valueType": { - "$id": "350", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "24" - }, - "doc": "The ButtonSet content type.", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ButtonSetContent.kind", - "serializationOptions": { - "$id": "351", - "json": { - "$id": "352", - "name": "kind" - } - } + } + ] + }, + "document": { + "$id": "150", + "kind": "model", + "name": "DocumentNotificationContent", + "namespace": "Azure.Communication.Messages", + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.DocumentNotificationContent", + "usage": "Input,Json", + "doc": "A request to send a document notification.", + "discriminatorValue": "document", + "decorators": [], + "baseModel": { + "$ref": "126" + }, + "properties": [ + { + "$id": "151", + "kind": "property", + "name": "kind", + "serializedName": "kind", + "doc": "Message notification type is document.", + "type": { + "$ref": "6" }, - { - "$id": "353", - "kind": "property", - "name": "buttons", - "serializedName": "buttons", - "doc": "Unique Id of the button content.", - "type": { - "$id": "354", - "kind": "array", - "name": "ArrayButtonContent", - "valueType": { - "$id": "355", - "kind": "model", - "name": "ButtonContent", - "namespace": "Azure.Communication.Messages", - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ButtonContent", - "usage": "Input,Json", - "doc": "The message content of type Button information.", - "decorators": [], - "properties": [ - { - "$id": "356", - "kind": "property", - "name": "id", - "serializedName": "id", - "doc": "Unique Id of the button content.", - "type": { - "$id": "357", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ButtonContent.id", - "serializationOptions": { - "$id": "358", - "json": { - "$id": "359", - "name": "id" - } - } - }, - { - "$id": "360", - "kind": "property", - "name": "title", - "serializedName": "title", - "doc": "Title of the button content.", - "type": { - "$id": "361", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ButtonContent.title", - "serializationOptions": { - "$id": "362", - "json": { - "$id": "363", - "name": "title" - } - } - } - ] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ButtonSetContent.buttons", - "serializationOptions": { - "$id": "364", + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.DocumentNotificationContent.kind", + "serializationOptions": { "json": { - "$id": "365", - "name": "buttons" + "name": "kind" } - } } - ] }, - "url": { - "$id": "366", - "kind": "model", - "name": "LinkContent", - "namespace": "Azure.Communication.Messages", - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.LinkContent", - "usage": "Input,Json", - "doc": "The message content of type Url information.", - "discriminatorValue": "url", - "decorators": [], - "baseModel": { - "$ref": "302" - }, - "properties": [ - { - "$id": "367", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "Message content kind is url.", - "type": { - "$id": "368", - "kind": "enumvalue", - "name": "url", - "value": "url", - "valueType": { - "$id": "369", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "24" - }, - "doc": "The Url content type.", + { + "$id": "152", + "kind": "property", + "name": "caption", + "serializedName": "caption", + "doc": "Optional text content.", + "type": { + "$id": "153", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.LinkContent.kind", - "serializationOptions": { - "$id": "370", + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.DocumentNotificationContent.caption", + "serializationOptions": { "json": { - "$id": "371", - "name": "kind" + "name": "caption" } - } - }, - { - "$id": "372", - "kind": "property", - "name": "title", - "serializedName": "title", - "doc": "Title of the url content.", - "type": { - "$id": "373", + } + }, + { + "$id": "154", + "kind": "property", + "name": "fileName", + "serializedName": "fileName", + "doc": "Optional name for the file.", + "type": { + "$id": "155", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.LinkContent.title", - "serializationOptions": { - "$id": "374", + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.DocumentNotificationContent.fileName", + "serializationOptions": { "json": { - "$id": "375", - "name": "title" + "name": "fileName" } - } - }, - { - "$id": "376", - "kind": "property", - "name": "uri", - "serializedName": "url", - "doc": "The url in the content.", - "type": { - "$id": "377", + } + }, + { + "$id": "156", + "kind": "property", + "name": "mediaUri", + "serializedName": "mediaUri", + "doc": "A media url for the file. Required if the type is one of the supported media types, e.g. image", + "type": { + "$id": "157", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.LinkContent.url", - "serializationOptions": { - "$id": "378", + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.DocumentNotificationContent.mediaUri", + "serializationOptions": { "json": { - "$id": "379", - "name": "url" + "name": "mediaUri" } - } } - ] - }, - "group": { - "$id": "380", - "kind": "model", - "name": "ActionGroupContent", - "namespace": "Azure.Communication.Messages", - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ActionGroupContent", - "usage": "Input,Json", - "doc": "The action content of type ActionGroup.", - "discriminatorValue": "group", - "decorators": [], - "baseModel": { - "$ref": "302" - }, - "properties": [ - { - "$id": "381", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "Message content kind is actionGroup.", - "type": { - "$id": "382", - "kind": "enumvalue", - "name": "group", - "value": "group", - "valueType": { - "$id": "383", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "24" - }, - "doc": "The ActionSet content type.", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ActionGroupContent.kind", - "serializationOptions": { - "$id": "384", + } + ] + }, + "video": { + "$id": "158", + "kind": "model", + "name": "VideoNotificationContent", + "namespace": "Azure.Communication.Messages", + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.VideoNotificationContent", + "usage": "Input,Json", + "doc": "A request to send a video notification.", + "discriminatorValue": "video", + "decorators": [], + "baseModel": { + "$ref": "126" + }, + "properties": [ + { + "$id": "159", + "kind": "property", + "name": "kind", + "serializedName": "kind", + "doc": "Message notification type is video.", + "type": { + "$ref": "7" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.VideoNotificationContent.kind", + "serializationOptions": { "json": { - "$id": "385", - "name": "kind" + "name": "kind" } - } - }, - { - "$id": "386", - "kind": "property", - "name": "title", - "serializedName": "title", - "doc": "Title of the actionGroup content.", - "type": { - "$id": "387", + } + }, + { + "$id": "160", + "kind": "property", + "name": "caption", + "serializedName": "caption", + "doc": "Optional text content.", + "type": { + "$id": "161", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ActionGroupContent.title", - "serializationOptions": { - "$id": "388", + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.VideoNotificationContent.caption", + "serializationOptions": { "json": { - "$id": "389", - "name": "title" + "name": "caption" } - } - }, - { - "$id": "390", - "kind": "property", - "name": "groups", - "serializedName": "groups", - "doc": "Set or group of actions.", - "type": { - "$id": "391", - "kind": "array", - "name": "ArrayActionGroup", - "valueType": { - "$id": "392", - "kind": "model", - "name": "ActionGroup", - "namespace": "Azure.Communication.Messages", - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ActionGroup", - "usage": "Input,Json", - "doc": "The Action Group content.", - "decorators": [], - "properties": [ - { - "$id": "393", - "kind": "property", - "name": "title", - "serializedName": "title", - "doc": "Title of the ActionGroup.", - "type": { - "$id": "394", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ActionGroup.title", - "serializationOptions": { - "$id": "395", - "json": { - "$id": "396", - "name": "title" - } - } - }, - { - "$id": "397", - "kind": "property", - "name": "items", - "serializedName": "items", - "doc": "Array of items in ActionGroup.", - "type": { - "$id": "398", - "kind": "array", - "name": "ArrayActionGroupItem", - "valueType": { - "$id": "399", - "kind": "model", - "name": "ActionGroupItem", - "namespace": "Azure.Communication.Messages", - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ActionGroupItem", - "usage": "Input,Json", - "doc": "The Action group item in the content.", - "decorators": [], - "properties": [ - { - "$id": "400", - "kind": "property", - "name": "id", - "serializedName": "id", - "doc": "Id of the Item.", - "type": { - "$id": "401", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ActionGroupItem.id", - "serializationOptions": { - "$id": "402", - "json": { - "$id": "403", - "name": "id" - } - } - }, - { - "$id": "404", - "kind": "property", - "name": "title", - "serializedName": "title", - "doc": "Title of the Item.", - "type": { - "$id": "405", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ActionGroupItem.title", - "serializationOptions": { - "$id": "406", - "json": { - "$id": "407", - "name": "title" - } - } - }, - { - "$id": "408", - "kind": "property", - "name": "description", - "serializedName": "description", - "doc": "Description of the Item.", - "type": { - "$id": "409", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ActionGroupItem.description", - "serializationOptions": { - "$id": "410", - "json": { - "$id": "411", - "name": "description" - } - } - } - ] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ActionGroup.items", - "serializationOptions": { - "$id": "412", - "json": { - "$id": "413", - "name": "items" - } - } - } - ] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", + } + }, + { + "$id": "162", + "kind": "property", + "name": "mediaUri", + "serializedName": "mediaUri", + "doc": "A media url for the file. Required if the type is one of the supported media types, e.g. image", + "type": { + "$id": "163", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ActionGroupContent.groups", - "serializationOptions": { - "$id": "414", + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.VideoNotificationContent.mediaUri", + "serializationOptions": { "json": { - "$id": "415", - "name": "groups" + "name": "mediaUri" } - } } - ] } - } - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.InteractiveMessage.header", - "serializationOptions": { - "$id": "416", - "json": { - "$id": "417", - "name": "header" - } - } - }, - { - "$id": "418", - "kind": "property", - "name": "body", - "serializedName": "body", - "doc": "Gets or Sets Message body content. Emojis, markdown, and links are supported.", - "type": { - "$ref": "307" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, + ] + }, + "audio": { + "$id": "164", + "kind": "model", + "name": "AudioNotificationContent", + "namespace": "Azure.Communication.Messages", + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.AudioNotificationContent", + "usage": "Input,Json", + "doc": "A request to send an audio notification.", + "discriminatorValue": "audio", "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.InteractiveMessage.body", - "serializationOptions": { - "$id": "419", - "json": { - "$id": "420", - "name": "body" - } - } - }, - { - "$id": "421", - "kind": "property", - "name": "footer", - "serializedName": "footer", - "doc": "Gets or Sets Message footer content. Emojis, markdown, and links are supported.", - "type": { - "$ref": "307" + "baseModel": { + "$ref": "126" }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.InteractiveMessage.footer", - "serializationOptions": { - "$id": "422", - "json": { - "$id": "423", - "name": "footer" - } - } - }, - { - "$id": "424", - "kind": "property", - "name": "action", - "serializedName": "action", - "doc": "The binding object to get or set Action which describes options user have to respond to message.", - "type": { - "$id": "425", - "kind": "model", - "name": "ActionBindings", - "namespace": "Azure.Communication.Messages", - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ActionBindings", - "usage": "Input,Json", - "doc": "Binding actions to the interactive message.", - "decorators": [], - "discriminatorProperty": { - "$id": "426", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "Kind of the MessageActionBinding.", - "type": { - "$ref": "40" - }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ActionBindings.kind", - "serializationOptions": { - "$id": "427", - "json": { - "$id": "428", - "name": "kind" - } - } - }, - "properties": [ + "properties": [ { - "$ref": "426" - } - ], - "discriminatedSubtypes": { - "$id": "429", - "whatsAppListAction": { - "$id": "430", - "kind": "model", - "name": "WhatsAppListActionBindings", - "namespace": "Azure.Communication.Messages", - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.WhatsAppListActionBindings", - "usage": "Input,Json", - "doc": "WhatsApp List Binding actions to the interactive message.", - "discriminatorValue": "whatsAppListAction", - "decorators": [], - "baseModel": { - "$ref": "425" - }, - "properties": [ - { - "$id": "431", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "Message action binding type is WhatsAppListAction.", - "type": { - "$id": "432", - "kind": "enumvalue", - "name": "whatsAppListAction", - "value": "whatsAppListAction", - "valueType": { - "$id": "433", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "40" - }, - "doc": "The WhatsApp List action binding kind.", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.WhatsAppListActionBindings.kind", - "serializationOptions": { - "$id": "434", - "json": { - "$id": "435", - "name": "kind" - } - } - }, - { - "$id": "436", - "kind": "property", - "name": "content", - "serializedName": "content", - "doc": "Action content of Interactive message.", - "type": { - "$ref": "380" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.WhatsAppListActionBindings.content", - "serializationOptions": { - "$id": "437", + "$id": "165", + "kind": "property", + "name": "kind", + "serializedName": "kind", + "doc": "Message notification type is audio.", + "type": { + "$ref": "8" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.AudioNotificationContent.kind", + "serializationOptions": { "json": { - "$id": "438", - "name": "content" + "name": "kind" } - } } - ] }, - "whatsAppButtonAction": { - "$id": "439", - "kind": "model", - "name": "WhatsAppButtonActionBindings", - "namespace": "Azure.Communication.Messages", - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.WhatsAppButtonActionBindings", - "usage": "Input,Json", - "doc": "WhatsApp Binding actions to the interactive message.", - "discriminatorValue": "whatsAppButtonAction", - "decorators": [], - "baseModel": { - "$ref": "425" - }, - "properties": [ - { - "$id": "440", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "Message action binding type is WhatsAppButtonAction.", - "type": { - "$id": "441", - "kind": "enumvalue", - "name": "whatsAppButtonAction", - "value": "whatsAppButtonAction", - "valueType": { - "$id": "442", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "40" - }, - "doc": "The WhatsApp Button action binding kind.", + { + "$id": "166", + "kind": "property", + "name": "mediaUri", + "serializedName": "mediaUri", + "doc": "A media url for the file. Required if the type is one of the supported media types, e.g. image", + "type": { + "$id": "167", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.WhatsAppButtonActionBindings.kind", - "serializationOptions": { - "$id": "443", + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.AudioNotificationContent.mediaUri", + "serializationOptions": { "json": { - "$id": "444", - "name": "kind" + "name": "mediaUri" } - } - }, - { - "$id": "445", - "kind": "property", - "name": "content", - "serializedName": "content", - "doc": "Action content of Interactive message.", - "type": { - "$ref": "347" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.WhatsAppButtonActionBindings.content", - "serializationOptions": { - "$id": "446", + } + } + ] + }, + "reaction": { + "$id": "168", + "kind": "model", + "name": "ReactionNotificationContent", + "namespace": "Azure.Communication.Messages", + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ReactionNotificationContent", + "usage": "Input,Json", + "doc": "A request to send a Reaction notification.", + "discriminatorValue": "reaction", + "decorators": [], + "baseModel": { + "$ref": "126" + }, + "properties": [ + { + "$id": "169", + "kind": "property", + "name": "kind", + "serializedName": "kind", + "doc": "Message notification type is reaction.", + "type": { + "$ref": "11" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ReactionNotificationContent.kind", + "serializationOptions": { "json": { - "$id": "447", - "name": "content" + "name": "kind" } - } } - ] }, - "whatsAppUrlAction": { - "$id": "448", - "kind": "model", - "name": "WhatsAppUrlActionBindings", - "namespace": "Azure.Communication.Messages", - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.WhatsAppUrlActionBindings", - "usage": "Input,Json", - "doc": "WhatsApp Binding actions to the interactive message.", - "discriminatorValue": "whatsAppUrlAction", - "decorators": [], - "baseModel": { - "$ref": "425" - }, - "properties": [ - { - "$id": "449", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "Message action binding type is WhatsAppUrlAction.", - "type": { - "$id": "450", - "kind": "enumvalue", - "name": "whatsAppUrlAction", - "value": "whatsAppUrlAction", - "valueType": { - "$id": "451", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "40" - }, - "doc": "The WhatsApp Url action binding kind.", + { + "$id": "170", + "kind": "property", + "name": "emoji", + "serializedName": "emoji", + "doc": "emoji content like \\uD83D\\uDE00.", + "type": { + "$id": "171", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.WhatsAppUrlActionBindings.kind", - "serializationOptions": { - "$id": "452", + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ReactionNotificationContent.emoji", + "serializationOptions": { "json": { - "$id": "453", - "name": "kind" + "name": "emoji" } - } - }, - { - "$id": "454", - "kind": "property", - "name": "content", - "serializedName": "content", - "doc": "Action content of Interactive message.", - "type": { - "$ref": "366" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.WhatsAppUrlActionBindings.content", - "serializationOptions": { - "$id": "455", + } + }, + { + "$id": "172", + "kind": "property", + "name": "messageId", + "serializedName": "messageId", + "doc": "ID of the previous message you want to reply to.", + "type": { + "$id": "173", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ReactionNotificationContent.messageId", + "serializationOptions": { "json": { - "$id": "456", - "name": "content" + "name": "messageId" } - } } - ] } - } - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.InteractiveMessage.action", - "serializationOptions": { - "$id": "457", - "json": { - "$id": "458", - "name": "action" - } - } - } - ] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.InteractiveNotificationContent.interactiveMessage", - "serializationOptions": { - "$id": "459", - "json": { - "$id": "460", - "name": "interactiveMessage" - } - } - } - ] - }, - "template": { - "$id": "461", - "kind": "model", - "name": "TemplateNotificationContent", - "namespace": "Azure.Communication.Messages", - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.TemplateNotificationContent", - "usage": "Input,Json", - "doc": "A request to send a template notification.", - "discriminatorValue": "template", - "decorators": [], - "baseModel": { - "$ref": "174" - }, - "properties": [ - { - "$id": "462", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "Message notification type is template.", - "type": { - "$id": "463", - "kind": "enumvalue", - "name": "template", - "value": "template", - "valueType": { - "$id": "464", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "2" + ] }, - "doc": "Template message type.", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.TemplateNotificationContent.kind", - "serializationOptions": { - "$id": "465", - "json": { - "$id": "466", - "name": "kind" - } - } - }, - { - "$id": "467", - "kind": "property", - "name": "template", - "serializedName": "template", - "doc": "The template object used to create templates.", - "type": { - "$id": "468", - "kind": "model", - "name": "MessageTemplate", - "namespace": "Azure.Communication.Messages", - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplate", - "usage": "Input,Output,Json", - "doc": "The template object used to create templates.", - "decorators": [], - "properties": [ - { - "$id": "469", - "kind": "property", - "name": "name", - "serializedName": "name", - "doc": "Name of the template.", - "type": { - "$id": "470", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, + "sticker": { + "$id": "174", + "kind": "model", + "name": "StickerNotificationContent", + "namespace": "Azure.Communication.Messages", + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.StickerNotificationContent", + "usage": "Input,Json", + "doc": "A request to send a Sticker notification.", + "discriminatorValue": "sticker", "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplate.name", - "serializationOptions": { - "$id": "471", - "json": { - "$id": "472", - "name": "name" - } - } - }, - { - "$id": "473", - "kind": "property", - "name": "language", - "serializedName": "language", - "doc": "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": "474", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "baseModel": { + "$ref": "126" }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplate.language", - "serializationOptions": { - "$id": "475", - "json": { - "$id": "476", - "name": "language" - } - } - }, - { - "$id": "477", - "kind": "property", - "name": "values", - "serializedName": "values", - "doc": "The template values.", - "type": { - "$id": "478", - "kind": "array", - "name": "ArrayMessageTemplateValue", - "valueType": { - "$id": "479", - "kind": "model", - "name": "MessageTemplateValue", - "namespace": "Azure.Communication.Messages", - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateValue", - "usage": "Input,Output,Json", - "doc": "The class describes a parameter of a template.", - "decorators": [], - "discriminatorProperty": { - "$id": "480", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "The type discriminator describing a template parameter type.", - "type": { - "$ref": "48" - }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateValue.kind", - "serializationOptions": { - "$id": "481", - "json": { - "$id": "482", - "name": "kind" + "properties": [ + { + "$id": "175", + "kind": "property", + "name": "kind", + "serializedName": "kind", + "doc": "Message notification type is sticker.", + "type": { + "$ref": "10" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.StickerNotificationContent.kind", + "serializationOptions": { + "json": { + "name": "kind" + } } - } }, - "properties": [ - { - "$id": "483", + { + "$id": "176", "kind": "property", - "name": "name", - "serializedName": "name", - "doc": "Template binding reference name", + "name": "mediaUri", + "serializedName": "mediaUri", + "doc": "A media url for the file. Required if the type is one of the supported media types, e.g. image", "type": { - "$id": "484", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "177", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url", + "decorators": [] }, "optional": false, "readOnly": false, "discriminator": false, "flatten": false, "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateValue.name", + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.StickerNotificationContent.mediaUri", "serializationOptions": { - "$id": "485", - "json": { - "$id": "486", - "name": "name" - } + "json": { + "name": "mediaUri" + } } - }, - { - "$ref": "480" - } - ], - "discriminatedSubtypes": { - "$id": "487", - "text": { - "$id": "488", - "kind": "model", - "name": "MessageTemplateText", - "namespace": "Azure.Communication.Messages", - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateText", - "usage": "Input,Output,Json", - "doc": "The message template's text value information.", - "discriminatorValue": "text", - "decorators": [], - "baseModel": { - "$ref": "479" + } + ] + }, + "interactive": { + "$id": "178", + "kind": "model", + "name": "InteractiveNotificationContent", + "namespace": "Azure.Communication.Messages", + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.InteractiveNotificationContent", + "usage": "Input,Json", + "doc": "A request to send an Interactive message notification.", + "discriminatorValue": "interactive", + "decorators": [], + "baseModel": { + "$ref": "126" + }, + "properties": [ + { + "$id": "179", + "kind": "property", + "name": "kind", + "serializedName": "kind", + "doc": "Message notification type is Interactive.", + "type": { + "$ref": "12" }, - "properties": [ - { - "$id": "489", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "Message parameter type is text.", - "type": { - "$id": "490", - "kind": "enumvalue", - "name": "text", - "value": "text", - "valueType": { - "$id": "491", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "48" - }, - "doc": "The text template parameter type.", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateText.kind", - "serializationOptions": { - "$id": "492", - "json": { - "$id": "493", - "name": "kind" - } - } - }, - { - "$id": "494", - "kind": "property", - "name": "text", - "serializedName": "text", - "doc": "The text value.", - "type": { - "$id": "495", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateText.text", - "serializationOptions": { - "$id": "496", - "json": { - "$id": "497", - "name": "text" - } - } - } - ] - }, - "image": { - "$id": "498", - "kind": "model", - "name": "MessageTemplateImage", - "namespace": "Azure.Communication.Messages", - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateImage", - "usage": "Input,Output,Json", - "doc": "The message template's image value information.", - "discriminatorValue": "image", + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, "decorators": [], - "baseModel": { - "$ref": "479" - }, - "properties": [ - { - "$id": "499", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "Message parameter type is image.", - "type": { - "$id": "500", - "kind": "enumvalue", - "name": "image", - "value": "image", - "valueType": { - "$id": "501", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "48" - }, - "doc": "The image template parameter type.", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateImage.kind", - "serializationOptions": { - "$id": "502", - "json": { - "$id": "503", + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.InteractiveNotificationContent.kind", + "serializationOptions": { + "json": { "name": "kind" - } } - }, - { - "$id": "504", - "kind": "property", - "name": "uri", - "serializedName": "url", - "doc": "The (public) URL of the media.", - "type": { - "$id": "505", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, + } + }, + { + "$id": "180", + "kind": "property", + "name": "interactiveMessage", + "serializedName": "interactiveMessage", + "doc": "The interactive message content.", + "type": { + "$id": "181", + "kind": "model", + "name": "InteractiveMessage", + "namespace": "Azure.Communication.Messages", + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.InteractiveMessage", + "usage": "Input,Json", + "doc": "The Interactive message content to which user can read and respond.", "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateImage.url", - "serializationOptions": { - "$id": "506", - "json": { - "$id": "507", - "name": "url" - } + "properties": [ + { + "$id": "182", + "kind": "property", + "name": "header", + "serializedName": "header", + "doc": "Gets or Sets Header content. Supports the following types:text, images etc.", + "type": { + "$id": "183", + "kind": "model", + "name": "MessageContent", + "namespace": "Azure.Communication.Messages", + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageContent", + "usage": "Input,Json", + "doc": "The message content object used to create interactive messages components.", + "decorators": [], + "discriminatorProperty": { + "$id": "184", + "kind": "property", + "name": "kind", + "serializedName": "kind", + "doc": "Kind of MessageContent.", + "type": { + "$ref": "13" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageContent.kind", + "serializationOptions": { + "json": { + "name": "kind" + } + } + }, + "properties": [ + { + "$ref": "184" + } + ], + "discriminatedSubtypes": { + "text": { + "$id": "185", + "kind": "model", + "name": "TextMessageContent", + "namespace": "Azure.Communication.Messages", + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.TextMessageContent", + "usage": "Input,Json", + "doc": "The message content of type text information.", + "discriminatorValue": "text", + "decorators": [], + "baseModel": { + "$ref": "183" + }, + "properties": [ + { + "$id": "186", + "kind": "property", + "name": "kind", + "serializedName": "kind", + "doc": "Message content kind is text.", + "type": { + "$ref": "15" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.TextMessageContent.kind", + "serializationOptions": { + "json": { + "name": "kind" + } + } + }, + { + "$id": "187", + "kind": "property", + "name": "text", + "serializedName": "text", + "doc": "The text value.", + "type": { + "$id": "188", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.TextMessageContent.text", + "serializationOptions": { + "json": { + "name": "text" + } + } + } + ] + }, + "document": { + "$id": "189", + "kind": "model", + "name": "DocumentMessageContent", + "namespace": "Azure.Communication.Messages", + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.DocumentMessageContent", + "usage": "Input,Json", + "doc": "The message content of type document information.", + "discriminatorValue": "document", + "decorators": [], + "baseModel": { + "$ref": "183" + }, + "properties": [ + { + "$id": "190", + "kind": "property", + "name": "kind", + "serializedName": "kind", + "doc": "Message content kind is document.", + "type": { + "$ref": "18" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.DocumentMessageContent.kind", + "serializationOptions": { + "json": { + "name": "kind" + } + } + }, + { + "$id": "191", + "kind": "property", + "name": "mediaUri", + "serializedName": "mediaUri", + "doc": "MediaUri of the media content.", + "type": { + "$id": "192", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.DocumentMessageContent.mediaUri", + "serializationOptions": { + "json": { + "name": "mediaUri" + } + } + } + ] + }, + "image": { + "$id": "193", + "kind": "model", + "name": "ImageMessageContent", + "namespace": "Azure.Communication.Messages", + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ImageMessageContent", + "usage": "Input,Json", + "doc": "The message content of type image information.", + "discriminatorValue": "image", + "decorators": [], + "baseModel": { + "$ref": "183" + }, + "properties": [ + { + "$id": "194", + "kind": "property", + "name": "kind", + "serializedName": "kind", + "doc": "Message content kind is image.", + "type": { + "$ref": "16" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ImageMessageContent.kind", + "serializationOptions": { + "json": { + "name": "kind" + } + } + }, + { + "$id": "195", + "kind": "property", + "name": "mediaUri", + "serializedName": "mediaUri", + "doc": "MediaUri of the media content.", + "type": { + "$id": "196", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ImageMessageContent.mediaUri", + "serializationOptions": { + "json": { + "name": "mediaUri" + } + } + } + ] + }, + "video": { + "$id": "197", + "kind": "model", + "name": "VideoMessageContent", + "namespace": "Azure.Communication.Messages", + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.VideoMessageContent", + "usage": "Input,Json", + "doc": "The message content of type video information.", + "discriminatorValue": "video", + "decorators": [], + "baseModel": { + "$ref": "183" + }, + "properties": [ + { + "$id": "198", + "kind": "property", + "name": "kind", + "serializedName": "kind", + "doc": "Message content kind is video.", + "type": { + "$ref": "17" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.VideoMessageContent.kind", + "serializationOptions": { + "json": { + "name": "kind" + } + } + }, + { + "$id": "199", + "kind": "property", + "name": "mediaUri", + "serializedName": "mediaUri", + "doc": "MediaUri of the media content.", + "type": { + "$id": "200", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.VideoMessageContent.mediaUri", + "serializationOptions": { + "json": { + "name": "mediaUri" + } + } + } + ] + }, + "buttonSet": { + "$id": "201", + "kind": "model", + "name": "ButtonSetContent", + "namespace": "Azure.Communication.Messages", + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ButtonSetContent", + "usage": "Input,Json", + "doc": "The message content of type ButtonSet/ List of buttons information.", + "discriminatorValue": "buttonSet", + "decorators": [], + "baseModel": { + "$ref": "183" + }, + "properties": [ + { + "$id": "202", + "kind": "property", + "name": "kind", + "serializedName": "kind", + "doc": "Message content kind is Button.", + "type": { + "$ref": "20" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ButtonSetContent.kind", + "serializationOptions": { + "json": { + "name": "kind" + } + } + }, + { + "$id": "203", + "kind": "property", + "name": "buttons", + "serializedName": "buttons", + "doc": "Unique Id of the button content.", + "type": { + "$id": "204", + "kind": "array", + "name": "ArrayButtonContent", + "valueType": { + "$id": "205", + "kind": "model", + "name": "ButtonContent", + "namespace": "Azure.Communication.Messages", + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ButtonContent", + "usage": "Input,Json", + "doc": "The message content of type Button information.", + "decorators": [], + "properties": [ + { + "$id": "206", + "kind": "property", + "name": "id", + "serializedName": "id", + "doc": "Unique Id of the button content.", + "type": { + "$id": "207", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ButtonContent.id", + "serializationOptions": { + "json": { + "name": "id" + } + } + }, + { + "$id": "208", + "kind": "property", + "name": "title", + "serializedName": "title", + "doc": "Title of the button content.", + "type": { + "$id": "209", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ButtonContent.title", + "serializationOptions": { + "json": { + "name": "title" + } + } + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ButtonSetContent.buttons", + "serializationOptions": { + "json": { + "name": "buttons" + } + } + } + ] + }, + "url": { + "$id": "210", + "kind": "model", + "name": "LinkContent", + "namespace": "Azure.Communication.Messages", + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.LinkContent", + "usage": "Input,Json", + "doc": "The message content of type Url information.", + "discriminatorValue": "url", + "decorators": [], + "baseModel": { + "$ref": "183" + }, + "properties": [ + { + "$id": "211", + "kind": "property", + "name": "kind", + "serializedName": "kind", + "doc": "Message content kind is url.", + "type": { + "$ref": "21" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.LinkContent.kind", + "serializationOptions": { + "json": { + "name": "kind" + } + } + }, + { + "$id": "212", + "kind": "property", + "name": "title", + "serializedName": "title", + "doc": "Title of the url content.", + "type": { + "$id": "213", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.LinkContent.title", + "serializationOptions": { + "json": { + "name": "title" + } + } + }, + { + "$id": "214", + "kind": "property", + "name": "uri", + "serializedName": "url", + "doc": "The url in the content.", + "type": { + "$id": "215", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.LinkContent.url", + "serializationOptions": { + "json": { + "name": "url" + } + } + } + ] + }, + "group": { + "$id": "216", + "kind": "model", + "name": "ActionGroupContent", + "namespace": "Azure.Communication.Messages", + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ActionGroupContent", + "usage": "Input,Json", + "doc": "The action content of type ActionGroup.", + "discriminatorValue": "group", + "decorators": [], + "baseModel": { + "$ref": "183" + }, + "properties": [ + { + "$id": "217", + "kind": "property", + "name": "kind", + "serializedName": "kind", + "doc": "Message content kind is actionGroup.", + "type": { + "$ref": "19" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ActionGroupContent.kind", + "serializationOptions": { + "json": { + "name": "kind" + } + } + }, + { + "$id": "218", + "kind": "property", + "name": "title", + "serializedName": "title", + "doc": "Title of the actionGroup content.", + "type": { + "$id": "219", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ActionGroupContent.title", + "serializationOptions": { + "json": { + "name": "title" + } + } + }, + { + "$id": "220", + "kind": "property", + "name": "groups", + "serializedName": "groups", + "doc": "Set or group of actions.", + "type": { + "$id": "221", + "kind": "array", + "name": "ArrayActionGroup", + "valueType": { + "$id": "222", + "kind": "model", + "name": "ActionGroup", + "namespace": "Azure.Communication.Messages", + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ActionGroup", + "usage": "Input,Json", + "doc": "The Action Group content.", + "decorators": [], + "properties": [ + { + "$id": "223", + "kind": "property", + "name": "title", + "serializedName": "title", + "doc": "Title of the ActionGroup.", + "type": { + "$id": "224", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ActionGroup.title", + "serializationOptions": { + "json": { + "name": "title" + } + } + }, + { + "$id": "225", + "kind": "property", + "name": "items", + "serializedName": "items", + "doc": "Array of items in ActionGroup.", + "type": { + "$id": "226", + "kind": "array", + "name": "ArrayActionGroupItem", + "valueType": { + "$id": "227", + "kind": "model", + "name": "ActionGroupItem", + "namespace": "Azure.Communication.Messages", + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ActionGroupItem", + "usage": "Input,Json", + "doc": "The Action group item in the content.", + "decorators": [], + "properties": [ + { + "$id": "228", + "kind": "property", + "name": "id", + "serializedName": "id", + "doc": "Id of the Item.", + "type": { + "$id": "229", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ActionGroupItem.id", + "serializationOptions": { + "json": { + "name": "id" + } + } + }, + { + "$id": "230", + "kind": "property", + "name": "title", + "serializedName": "title", + "doc": "Title of the Item.", + "type": { + "$id": "231", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ActionGroupItem.title", + "serializationOptions": { + "json": { + "name": "title" + } + } + }, + { + "$id": "232", + "kind": "property", + "name": "description", + "serializedName": "description", + "doc": "Description of the Item.", + "type": { + "$id": "233", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ActionGroupItem.description", + "serializationOptions": { + "json": { + "name": "description" + } + } + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ActionGroup.items", + "serializationOptions": { + "json": { + "name": "items" + } + } + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ActionGroupContent.groups", + "serializationOptions": { + "json": { + "name": "groups" + } + } + } + ] + } + } + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.InteractiveMessage.header", + "serializationOptions": { + "json": { + "name": "header" + } + } + }, + { + "$id": "234", + "kind": "property", + "name": "body", + "serializedName": "body", + "doc": "Gets or Sets Message body content. Emojis, markdown, and links are supported.", + "type": { + "$ref": "185" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.InteractiveMessage.body", + "serializationOptions": { + "json": { + "name": "body" + } + } + }, + { + "$id": "235", + "kind": "property", + "name": "footer", + "serializedName": "footer", + "doc": "Gets or Sets Message footer content. Emojis, markdown, and links are supported.", + "type": { + "$ref": "185" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.InteractiveMessage.footer", + "serializationOptions": { + "json": { + "name": "footer" + } + } + }, + { + "$id": "236", + "kind": "property", + "name": "action", + "serializedName": "action", + "doc": "The binding object to get or set Action which describes options user have to respond to message.", + "type": { + "$id": "237", + "kind": "model", + "name": "ActionBindings", + "namespace": "Azure.Communication.Messages", + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ActionBindings", + "usage": "Input,Json", + "doc": "Binding actions to the interactive message.", + "decorators": [], + "discriminatorProperty": { + "$id": "238", + "kind": "property", + "name": "kind", + "serializedName": "kind", + "doc": "Kind of the MessageActionBinding.", + "type": { + "$ref": "22" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ActionBindings.kind", + "serializationOptions": { + "json": { + "name": "kind" + } + } + }, + "properties": [ + { + "$ref": "238" + } + ], + "discriminatedSubtypes": { + "whatsAppListAction": { + "$id": "239", + "kind": "model", + "name": "WhatsAppListActionBindings", + "namespace": "Azure.Communication.Messages", + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.WhatsAppListActionBindings", + "usage": "Input,Json", + "doc": "WhatsApp List Binding actions to the interactive message.", + "discriminatorValue": "whatsAppListAction", + "decorators": [], + "baseModel": { + "$ref": "237" + }, + "properties": [ + { + "$id": "240", + "kind": "property", + "name": "kind", + "serializedName": "kind", + "doc": "Message action binding type is WhatsAppListAction.", + "type": { + "$ref": "24" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.WhatsAppListActionBindings.kind", + "serializationOptions": { + "json": { + "name": "kind" + } + } + }, + { + "$id": "241", + "kind": "property", + "name": "content", + "serializedName": "content", + "doc": "Action content of Interactive message.", + "type": { + "$ref": "216" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.WhatsAppListActionBindings.content", + "serializationOptions": { + "json": { + "name": "content" + } + } + } + ] + }, + "whatsAppButtonAction": { + "$id": "242", + "kind": "model", + "name": "WhatsAppButtonActionBindings", + "namespace": "Azure.Communication.Messages", + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.WhatsAppButtonActionBindings", + "usage": "Input,Json", + "doc": "WhatsApp Binding actions to the interactive message.", + "discriminatorValue": "whatsAppButtonAction", + "decorators": [], + "baseModel": { + "$ref": "237" + }, + "properties": [ + { + "$id": "243", + "kind": "property", + "name": "kind", + "serializedName": "kind", + "doc": "Message action binding type is WhatsAppButtonAction.", + "type": { + "$ref": "25" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.WhatsAppButtonActionBindings.kind", + "serializationOptions": { + "json": { + "name": "kind" + } + } + }, + { + "$id": "244", + "kind": "property", + "name": "content", + "serializedName": "content", + "doc": "Action content of Interactive message.", + "type": { + "$ref": "201" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.WhatsAppButtonActionBindings.content", + "serializationOptions": { + "json": { + "name": "content" + } + } + } + ] + }, + "whatsAppUrlAction": { + "$id": "245", + "kind": "model", + "name": "WhatsAppUrlActionBindings", + "namespace": "Azure.Communication.Messages", + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.WhatsAppUrlActionBindings", + "usage": "Input,Json", + "doc": "WhatsApp Binding actions to the interactive message.", + "discriminatorValue": "whatsAppUrlAction", + "decorators": [], + "baseModel": { + "$ref": "237" + }, + "properties": [ + { + "$id": "246", + "kind": "property", + "name": "kind", + "serializedName": "kind", + "doc": "Message action binding type is WhatsAppUrlAction.", + "type": { + "$ref": "26" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.WhatsAppUrlActionBindings.kind", + "serializationOptions": { + "json": { + "name": "kind" + } + } + }, + { + "$id": "247", + "kind": "property", + "name": "content", + "serializedName": "content", + "doc": "Action content of Interactive message.", + "type": { + "$ref": "210" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.WhatsAppUrlActionBindings.content", + "serializationOptions": { + "json": { + "name": "content" + } + } + } + ] + } + } + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.InteractiveMessage.action", + "serializationOptions": { + "json": { + "name": "action" + } + } + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.InteractiveNotificationContent.interactiveMessage", + "serializationOptions": { + "json": { + "name": "interactiveMessage" } - }, - { - "$id": "508", - "kind": "property", - "name": "caption", - "serializedName": "caption", - "doc": "The [optional] caption of the media object.", - "type": { - "$id": "509", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateImage.caption", - "serializationOptions": { - "$id": "510", - "json": { - "$id": "511", - "name": "caption" - } + } + } + ] + }, + "template": { + "$id": "248", + "kind": "model", + "name": "TemplateNotificationContent", + "namespace": "Azure.Communication.Messages", + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.TemplateNotificationContent", + "usage": "Input,Json", + "doc": "A request to send a template notification.", + "discriminatorValue": "template", + "decorators": [], + "baseModel": { + "$ref": "126" + }, + "properties": [ + { + "$id": "249", + "kind": "property", + "name": "kind", + "serializedName": "kind", + "doc": "Message notification type is template.", + "type": { + "$ref": "9" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.TemplateNotificationContent.kind", + "serializationOptions": { + "json": { + "name": "kind" } - }, - { - "$id": "512", - "kind": "property", - "name": "fileName", - "serializedName": "fileName", - "doc": "The [optional] filename of the media file.", - "type": { - "$id": "513", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, + } + }, + { + "$id": "250", + "kind": "property", + "name": "template", + "serializedName": "template", + "doc": "The template object used to create templates.", + "type": { + "$id": "251", + "kind": "model", + "name": "MessageTemplate", + "namespace": "Azure.Communication.Messages", + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplate", + "usage": "Input,Output,Json", + "doc": "The template object used to create templates.", "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateImage.fileName", - "serializationOptions": { - "$id": "514", - "json": { - "$id": "515", - "name": "fileName" - } + "properties": [ + { + "$id": "252", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "Name of the template.", + "type": { + "$id": "253", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplate.name", + "serializationOptions": { + "json": { + "name": "name" + } + } + }, + { + "$id": "254", + "kind": "property", + "name": "language", + "serializedName": "language", + "doc": "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": "255", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplate.language", + "serializationOptions": { + "json": { + "name": "language" + } + } + }, + { + "$id": "256", + "kind": "property", + "name": "values", + "serializedName": "values", + "doc": "The template values.", + "type": { + "$id": "257", + "kind": "array", + "name": "ArrayMessageTemplateValue", + "valueType": { + "$id": "258", + "kind": "model", + "name": "MessageTemplateValue", + "namespace": "Azure.Communication.Messages", + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateValue", + "usage": "Input,Output,Json", + "doc": "The class describes a parameter of a template.", + "decorators": [], + "discriminatorProperty": { + "$id": "259", + "kind": "property", + "name": "kind", + "serializedName": "kind", + "doc": "The type discriminator describing a template parameter type.", + "type": { + "$ref": "27" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateValue.kind", + "serializationOptions": { + "json": { + "name": "kind" + } + } + }, + "properties": [ + { + "$id": "260", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "Template binding reference name", + "type": { + "$id": "261", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateValue.name", + "serializationOptions": { + "json": { + "name": "name" + } + } + }, + { + "$ref": "259" + } + ], + "discriminatedSubtypes": { + "text": { + "$id": "262", + "kind": "model", + "name": "MessageTemplateText", + "namespace": "Azure.Communication.Messages", + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateText", + "usage": "Input,Output,Json", + "doc": "The message template's text value information.", + "discriminatorValue": "text", + "decorators": [], + "baseModel": { + "$ref": "258" + }, + "properties": [ + { + "$id": "263", + "kind": "property", + "name": "kind", + "serializedName": "kind", + "doc": "Message parameter type is text.", + "type": { + "$ref": "29" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateText.kind", + "serializationOptions": { + "json": { + "name": "kind" + } + } + }, + { + "$id": "264", + "kind": "property", + "name": "text", + "serializedName": "text", + "doc": "The text value.", + "type": { + "$id": "265", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateText.text", + "serializationOptions": { + "json": { + "name": "text" + } + } + } + ] + }, + "image": { + "$id": "266", + "kind": "model", + "name": "MessageTemplateImage", + "namespace": "Azure.Communication.Messages", + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateImage", + "usage": "Input,Output,Json", + "doc": "The message template's image value information.", + "discriminatorValue": "image", + "decorators": [], + "baseModel": { + "$ref": "258" + }, + "properties": [ + { + "$id": "267", + "kind": "property", + "name": "kind", + "serializedName": "kind", + "doc": "Message parameter type is image.", + "type": { + "$ref": "30" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateImage.kind", + "serializationOptions": { + "json": { + "name": "kind" + } + } + }, + { + "$id": "268", + "kind": "property", + "name": "uri", + "serializedName": "url", + "doc": "The (public) URL of the media.", + "type": { + "$id": "269", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateImage.url", + "serializationOptions": { + "json": { + "name": "url" + } + } + }, + { + "$id": "270", + "kind": "property", + "name": "caption", + "serializedName": "caption", + "doc": "The [optional] caption of the media object.", + "type": { + "$id": "271", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateImage.caption", + "serializationOptions": { + "json": { + "name": "caption" + } + } + }, + { + "$id": "272", + "kind": "property", + "name": "fileName", + "serializedName": "fileName", + "doc": "The [optional] filename of the media file.", + "type": { + "$id": "273", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateImage.fileName", + "serializationOptions": { + "json": { + "name": "fileName" + } + } + } + ] + }, + "document": { + "$id": "274", + "kind": "model", + "name": "MessageTemplateDocument", + "namespace": "Azure.Communication.Messages", + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateDocument", + "usage": "Input,Output,Json", + "doc": "The message template's document value information.", + "discriminatorValue": "document", + "decorators": [], + "baseModel": { + "$ref": "258" + }, + "properties": [ + { + "$id": "275", + "kind": "property", + "name": "kind", + "serializedName": "kind", + "doc": "Message parameter type is document.", + "type": { + "$ref": "31" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateDocument.kind", + "serializationOptions": { + "json": { + "name": "kind" + } + } + }, + { + "$id": "276", + "kind": "property", + "name": "uri", + "serializedName": "url", + "doc": "The (public) URL of the media.", + "type": { + "$id": "277", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateDocument.url", + "serializationOptions": { + "json": { + "name": "url" + } + } + }, + { + "$id": "278", + "kind": "property", + "name": "caption", + "serializedName": "caption", + "doc": "The [optional] caption of the media object.", + "type": { + "$id": "279", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateDocument.caption", + "serializationOptions": { + "json": { + "name": "caption" + } + } + }, + { + "$id": "280", + "kind": "property", + "name": "fileName", + "serializedName": "fileName", + "doc": "The [optional] filename of the media file.", + "type": { + "$id": "281", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateDocument.fileName", + "serializationOptions": { + "json": { + "name": "fileName" + } + } + } + ] + }, + "video": { + "$id": "282", + "kind": "model", + "name": "MessageTemplateVideo", + "namespace": "Azure.Communication.Messages", + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateVideo", + "usage": "Input,Output,Json", + "doc": "The message template's video value information.", + "discriminatorValue": "video", + "decorators": [], + "baseModel": { + "$ref": "258" + }, + "properties": [ + { + "$id": "283", + "kind": "property", + "name": "kind", + "serializedName": "kind", + "doc": "Message parameter type is video.", + "type": { + "$ref": "32" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateVideo.kind", + "serializationOptions": { + "json": { + "name": "kind" + } + } + }, + { + "$id": "284", + "kind": "property", + "name": "uri", + "serializedName": "url", + "doc": "The (public) URL of the media.", + "type": { + "$id": "285", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateVideo.url", + "serializationOptions": { + "json": { + "name": "url" + } + } + }, + { + "$id": "286", + "kind": "property", + "name": "caption", + "serializedName": "caption", + "doc": "The [optional] caption of the media object.", + "type": { + "$id": "287", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateVideo.caption", + "serializationOptions": { + "json": { + "name": "caption" + } + } + }, + { + "$id": "288", + "kind": "property", + "name": "fileName", + "serializedName": "fileName", + "doc": "The [optional] filename of the media file.", + "type": { + "$id": "289", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateVideo.fileName", + "serializationOptions": { + "json": { + "name": "fileName" + } + } + } + ] + }, + "location": { + "$id": "290", + "kind": "model", + "name": "MessageTemplateLocation", + "namespace": "Azure.Communication.Messages", + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateLocation", + "usage": "Input,Output,Json", + "doc": "The message template's location value information.", + "discriminatorValue": "location", + "decorators": [], + "baseModel": { + "$ref": "258" + }, + "properties": [ + { + "$id": "291", + "kind": "property", + "name": "kind", + "serializedName": "kind", + "doc": "Message parameter type is location.", + "type": { + "$ref": "33" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateLocation.kind", + "serializationOptions": { + "json": { + "name": "kind" + } + } + }, + { + "$id": "292", + "kind": "property", + "name": "locationName", + "serializedName": "locationName", + "doc": "The [Optional] name of the location.", + "type": { + "$id": "293", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateLocation.locationName", + "serializationOptions": { + "json": { + "name": "locationName" + } + } + }, + { + "$id": "294", + "kind": "property", + "name": "address", + "serializedName": "address", + "doc": "The [Optional] address of the location.", + "type": { + "$id": "295", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateLocation.address", + "serializationOptions": { + "json": { + "name": "address" + } + } + }, + { + "$id": "296", + "kind": "property", + "name": "latitude", + "serializedName": "latitude", + "doc": "The latitude of the location.", + "type": { + "$id": "297", + "kind": "float64", + "name": "float64", + "crossLanguageDefinitionId": "TypeSpec.float64", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateLocation.latitude", + "serializationOptions": { + "json": { + "name": "latitude" + } + } + }, + { + "$id": "298", + "kind": "property", + "name": "longitude", + "serializedName": "longitude", + "doc": "The longitude of the location.", + "type": { + "$id": "299", + "kind": "float64", + "name": "float64", + "crossLanguageDefinitionId": "TypeSpec.float64", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateLocation.longitude", + "serializationOptions": { + "json": { + "name": "longitude" + } + } + } + ] + }, + "quickAction": { + "$id": "300", + "kind": "model", + "name": "MessageTemplateQuickAction", + "namespace": "Azure.Communication.Messages", + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateQuickAction", + "usage": "Input,Output,Json", + "doc": "The message template's quick action value information.", + "discriminatorValue": "quickAction", + "decorators": [], + "baseModel": { + "$ref": "258" + }, + "properties": [ + { + "$id": "301", + "kind": "property", + "name": "kind", + "serializedName": "kind", + "doc": "Message parameter type is quick action.", + "type": { + "$ref": "34" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateQuickAction.kind", + "serializationOptions": { + "json": { + "name": "kind" + } + } + }, + { + "$id": "302", + "kind": "property", + "name": "text", + "serializedName": "text", + "doc": "The [Optional] quick action text", + "type": { + "$id": "303", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateQuickAction.text", + "serializationOptions": { + "json": { + "name": "text" + } + } + }, + { + "$id": "304", + "kind": "property", + "name": "payload", + "serializedName": "payload", + "doc": "The [Optional] quick action payload", + "type": { + "$id": "305", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateQuickAction.payload", + "serializationOptions": { + "json": { + "name": "payload" + } + } + } + ] + } + } + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplate.values", + "serializationOptions": { + "json": { + "name": "values" + } + } + }, + { + "$id": "306", + "kind": "property", + "name": "bindings", + "serializedName": "bindings", + "doc": "The binding object to link values to the template specific locations", + "type": { + "$id": "307", + "kind": "model", + "name": "MessageTemplateBindings", + "namespace": "Azure.Communication.Messages", + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateBindings", + "usage": "Input,Output,Json", + "doc": "The binding object to link values to the template specific locations", + "decorators": [], + "discriminatorProperty": { + "$id": "308", + "kind": "property", + "name": "kind", + "serializedName": "kind", + "doc": "The type discriminator describing a template bindings type.", + "type": { + "$ref": "35" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateBindings.kind", + "serializationOptions": { + "json": { + "name": "kind" + } + } + }, + "properties": [ + { + "$ref": "308" + } + ], + "discriminatedSubtypes": { + "whatsApp": { + "$id": "309", + "kind": "model", + "name": "WhatsAppMessageTemplateBindings", + "namespace": "Azure.Communication.Messages", + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.WhatsAppMessageTemplateBindings", + "usage": "Input,Output,Json", + "doc": "The template bindings for WhatsApp", + "discriminatorValue": "whatsApp", + "decorators": [], + "baseModel": { + "$ref": "307" + }, + "properties": [ + { + "$id": "310", + "kind": "property", + "name": "kind", + "serializedName": "kind", + "doc": "MessageTemplateBindings is whatsApp", + "type": { + "$ref": "37" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.WhatsAppMessageTemplateBindings.kind", + "serializationOptions": { + "json": { + "name": "kind" + } + } + }, + { + "$id": "311", + "kind": "property", + "name": "header", + "serializedName": "header", + "doc": "The header template bindings", + "type": { + "$id": "312", + "kind": "array", + "name": "ArrayWhatsAppMessageTemplateBindingsComponent", + "valueType": { + "$id": "313", + "kind": "model", + "name": "WhatsAppMessageTemplateBindingsComponent", + "namespace": "Azure.Communication.Messages", + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.WhatsAppMessageTemplateBindingsComponent", + "usage": "Input,Output,Json", + "doc": "The template bindings component for WhatsApp", + "decorators": [], + "properties": [ + { + "$id": "314", + "kind": "property", + "name": "refValue", + "serializedName": "refValue", + "doc": "The name of the referenced item in the template values.", + "type": { + "$id": "315", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.WhatsAppMessageTemplateBindingsComponent.refValue", + "serializationOptions": { + "json": { + "name": "refValue" + } + } + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.WhatsAppMessageTemplateBindings.header", + "serializationOptions": { + "json": { + "name": "header" + } + } + }, + { + "$id": "316", + "kind": "property", + "name": "body", + "serializedName": "body", + "doc": "The body template bindings", + "type": { + "$ref": "312" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.WhatsAppMessageTemplateBindings.body", + "serializationOptions": { + "json": { + "name": "body" + } + } + }, + { + "$id": "317", + "kind": "property", + "name": "footer", + "serializedName": "footer", + "doc": "The footer template bindings", + "type": { + "$ref": "312" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.WhatsAppMessageTemplateBindings.footer", + "serializationOptions": { + "json": { + "name": "footer" + } + } + }, + { + "$id": "318", + "kind": "property", + "name": "buttons", + "serializedName": "buttons", + "doc": "The button template bindings", + "type": { + "$id": "319", + "kind": "array", + "name": "ArrayWhatsAppMessageTemplateBindingsButton", + "valueType": { + "$id": "320", + "kind": "model", + "name": "WhatsAppMessageTemplateBindingsButton", + "namespace": "Azure.Communication.Messages", + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.WhatsAppMessageTemplateBindingsButton", + "usage": "Input,Output,Json", + "doc": "The template bindings component button for WhatsApp", + "decorators": [], + "properties": [ + { + "$id": "321", + "kind": "property", + "name": "subType", + "serializedName": "subType", + "doc": "The WhatsApp button sub type", + "type": { + "$ref": "38" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.WhatsAppMessageTemplateBindingsButton.subType", + "serializationOptions": { + "json": { + "name": "subType" + } + } + }, + { + "$id": "322", + "kind": "property", + "name": "refValue", + "serializedName": "refValue", + "doc": "The name of the referenced item in the template values.", + "type": { + "$id": "323", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.WhatsAppMessageTemplateBindingsButton.refValue", + "serializationOptions": { + "json": { + "name": "refValue" + } + } + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.WhatsAppMessageTemplateBindings.buttons", + "serializationOptions": { + "json": { + "name": "buttons" + } + } + } + ] + } + } + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplate.bindings", + "serializationOptions": { + "json": { + "name": "bindings" + } + } + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.TemplateNotificationContent.template", + "serializationOptions": { + "json": { + "name": "template" } - } - ] - }, - "document": { - "$id": "516", + } + } + ] + } + } + }, + { + "$ref": "134" + }, + { + "$ref": "138" + }, + { + "$ref": "144" + }, + { + "$ref": "150" + }, + { + "$ref": "158" + }, + { + "$ref": "164" + }, + { + "$ref": "168" + }, + { + "$ref": "174" + }, + { + "$ref": "178" + }, + { + "$ref": "181" + }, + { + "$ref": "183" + }, + { + "$ref": "185" + }, + { + "$ref": "189" + }, + { + "$ref": "193" + }, + { + "$ref": "197" + }, + { + "$ref": "201" + }, + { + "$ref": "205" + }, + { + "$ref": "210" + }, + { + "$ref": "216" + }, + { + "$ref": "222" + }, + { + "$ref": "227" + }, + { + "$ref": "237" + }, + { + "$ref": "239" + }, + { + "$ref": "242" + }, + { + "$ref": "245" + }, + { + "$ref": "248" + }, + { + "$ref": "251" + }, + { + "$ref": "258" + }, + { + "$ref": "262" + }, + { + "$ref": "266" + }, + { + "$ref": "274" + }, + { + "$ref": "282" + }, + { + "$ref": "290" + }, + { + "$ref": "300" + }, + { + "$ref": "307" + }, + { + "$ref": "309" + }, + { + "$ref": "313" + }, + { + "$ref": "320" + }, + { + "$id": "324", + "kind": "model", + "name": "SendMessageResult", + "namespace": "Azure.Communication.Messages", + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.SendMessageResult", + "usage": "Output,Json", + "doc": "Result of the send message operation.", + "decorators": [], + "properties": [ + { + "$id": "325", + "kind": "property", + "name": "receipts", + "serializedName": "receipts", + "doc": "Receipts of the send message operation.", + "type": { + "$id": "326", + "kind": "array", + "name": "ArrayMessageReceipt", + "valueType": { + "$id": "327", "kind": "model", - "name": "MessageTemplateDocument", + "name": "MessageReceipt", "namespace": "Azure.Communication.Messages", - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateDocument", - "usage": "Input,Output,Json", - "doc": "The message template's document value information.", - "discriminatorValue": "document", + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageReceipt", + "usage": "Output,Json", + "doc": "Receipt of the sending one message.", "decorators": [], - "baseModel": { - "$ref": "479" - }, "properties": [ - { - "$id": "517", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "Message parameter type is document.", - "type": { - "$id": "518", - "kind": "enumvalue", - "name": "document", - "value": "document", - "valueType": { - "$id": "519", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "48" - }, - "doc": "The document template parameter type.", - "decorators": [] + { + "$id": "328", + "kind": "property", + "name": "messageId", + "serializedName": "messageId", + "doc": "The message id.", + "type": { + "$id": "329", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageReceipt.messageId", + "serializationOptions": { + "json": { + "name": "messageId" + } + } }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateDocument.kind", - "serializationOptions": { - "$id": "520", - "json": { - "$id": "521", - "name": "kind" - } + { + "$id": "330", + "kind": "property", + "name": "to", + "serializedName": "to", + "doc": "The native external platform user identifier of the recipient.", + "type": { + "$id": "331", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageReceipt.to", + "serializationOptions": { + "json": { + "name": "to" + } + } } - }, - { - "$id": "522", + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.SendMessageResult.receipts", + "serializationOptions": { + "json": { + "name": "receipts" + } + } + } + ] + }, + { + "$ref": "327" + }, + { + "$id": "332", + "kind": "model", + "name": "ErrorResponse", + "namespace": "Azure.Communication.Messages", + "crossLanguageDefinitionId": "Azure.Core.Foundations.ErrorResponse", + "usage": "Json,Exception", + "doc": "A response containing error details.", + "decorators": [], + "properties": [ + { + "$id": "333", + "kind": "property", + "name": "error", + "serializedName": "error", + "doc": "The error object.", + "type": { + "$id": "334", + "kind": "model", + "name": "Error", + "namespace": "Azure.Communication.Messages", + "crossLanguageDefinitionId": "Azure.Core.Foundations.Error", + "usage": "Output,Json,Exception", + "doc": "The error object.", + "decorators": [], + "properties": [ + { + "$id": "335", "kind": "property", - "name": "uri", - "serializedName": "url", - "doc": "The (public) URL of the media.", + "name": "code", + "serializedName": "code", + "doc": "One of a server-defined set of error codes.", "type": { - "$id": "523", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url", - "decorators": [] + "$id": "336", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, "optional": false, "readOnly": false, "discriminator": false, "flatten": false, "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateDocument.url", - "serializationOptions": { - "$id": "524", - "json": { - "$id": "525", - "name": "url" - } - } - }, - { - "$id": "526", - "kind": "property", - "name": "caption", - "serializedName": "caption", - "doc": "The [optional] caption of the media object.", - "type": { - "$id": "527", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateDocument.caption", - "serializationOptions": { - "$id": "528", - "json": { - "$id": "529", - "name": "caption" - } - } - }, - { - "$id": "530", - "kind": "property", - "name": "fileName", - "serializedName": "fileName", - "doc": "The [optional] filename of the media file.", - "type": { - "$id": "531", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateDocument.fileName", + "crossLanguageDefinitionId": "Azure.Core.Foundations.Error.code", "serializationOptions": { - "$id": "532", - "json": { - "$id": "533", - "name": "fileName" - } + "json": { + "name": "code" + } } - } - ] - }, - "video": { - "$id": "534", - "kind": "model", - "name": "MessageTemplateVideo", - "namespace": "Azure.Communication.Messages", - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateVideo", - "usage": "Input,Output,Json", - "doc": "The message template's video value information.", - "discriminatorValue": "video", - "decorators": [], - "baseModel": { - "$ref": "479" }, - "properties": [ - { - "$id": "535", + { + "$id": "337", "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "Message parameter type is video.", + "name": "message", + "serializedName": "message", + "doc": "A human-readable representation of the error.", "type": { - "$id": "536", - "kind": "enumvalue", - "name": "video", - "value": "video", - "valueType": { - "$id": "537", + "$id": "338", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "enumType": { - "$ref": "48" - }, - "doc": "The video template parameter type.", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateVideo.kind", - "serializationOptions": { - "$id": "538", - "json": { - "$id": "539", - "name": "kind" - } - } - }, - { - "$id": "540", - "kind": "property", - "name": "uri", - "serializedName": "url", - "doc": "The (public) URL of the media.", - "type": { - "$id": "541", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url", - "decorators": [] }, "optional": false, "readOnly": false, "discriminator": false, "flatten": false, "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateVideo.url", - "serializationOptions": { - "$id": "542", - "json": { - "$id": "543", - "name": "url" - } - } - }, - { - "$id": "544", - "kind": "property", - "name": "caption", - "serializedName": "caption", - "doc": "The [optional] caption of the media object.", - "type": { - "$id": "545", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateVideo.caption", - "serializationOptions": { - "$id": "546", - "json": { - "$id": "547", - "name": "caption" - } - } - }, - { - "$id": "548", - "kind": "property", - "name": "fileName", - "serializedName": "fileName", - "doc": "The [optional] filename of the media file.", - "type": { - "$id": "549", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateVideo.fileName", + "crossLanguageDefinitionId": "Azure.Core.Foundations.Error.message", "serializationOptions": { - "$id": "550", - "json": { - "$id": "551", - "name": "fileName" - } + "json": { + "name": "message" + } } - } - ] - }, - "location": { - "$id": "552", - "kind": "model", - "name": "MessageTemplateLocation", - "namespace": "Azure.Communication.Messages", - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateLocation", - "usage": "Input,Output,Json", - "doc": "The message template's location value information.", - "discriminatorValue": "location", - "decorators": [], - "baseModel": { - "$ref": "479" }, - "properties": [ - { - "$id": "553", + { + "$id": "339", "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "Message parameter type is location.", + "name": "target", + "serializedName": "target", + "doc": "The target of the error.", "type": { - "$id": "554", - "kind": "enumvalue", - "name": "location", - "value": "location", - "valueType": { - "$id": "555", + "$id": "340", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "enumType": { - "$ref": "48" - }, - "doc": "The location template parameter type.", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateLocation.kind", - "serializationOptions": { - "$id": "556", - "json": { - "$id": "557", - "name": "kind" - } - } - }, - { - "$id": "558", - "kind": "property", - "name": "locationName", - "serializedName": "locationName", - "doc": "The [Optional] name of the location.", - "type": { - "$id": "559", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] }, "optional": true, "readOnly": false, "discriminator": false, "flatten": false, "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateLocation.locationName", + "crossLanguageDefinitionId": "Azure.Core.Foundations.Error.target", "serializationOptions": { - "$id": "560", - "json": { - "$id": "561", - "name": "locationName" - } + "json": { + "name": "target" + } } - }, - { - "$id": "562", + }, + { + "$id": "341", "kind": "property", - "name": "address", - "serializedName": "address", - "doc": "The [Optional] address of the location.", + "name": "details", + "serializedName": "details", + "doc": "An array of details about specific errors that led to this reported error.", "type": { - "$id": "563", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "342", + "kind": "array", + "name": "ArrayError", + "valueType": { + "$ref": "334" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] }, "optional": true, "readOnly": false, "discriminator": false, "flatten": false, "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateLocation.address", - "serializationOptions": { - "$id": "564", - "json": { - "$id": "565", - "name": "address" - } - } - }, - { - "$id": "566", - "kind": "property", - "name": "latitude", - "serializedName": "latitude", - "doc": "The latitude of the location.", - "type": { - "$id": "567", - "kind": "float64", - "name": "float64", - "crossLanguageDefinitionId": "TypeSpec.float64", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateLocation.latitude", + "crossLanguageDefinitionId": "Azure.Core.Foundations.Error.details", "serializationOptions": { - "$id": "568", - "json": { - "$id": "569", - "name": "latitude" - } + "json": { + "name": "details" + } } - }, - { - "$id": "570", + }, + { + "$id": "343", "kind": "property", - "name": "longitude", - "serializedName": "longitude", - "doc": "The longitude of the location.", + "name": "innererror", + "serializedName": "innererror", + "doc": "An object containing more specific information than the current object about the error.", "type": { - "$id": "571", - "kind": "float64", - "name": "float64", - "crossLanguageDefinitionId": "TypeSpec.float64", - "decorators": [] + "$id": "344", + "kind": "model", + "name": "InnerError", + "namespace": "Azure.Communication.Messages", + "crossLanguageDefinitionId": "Azure.Core.Foundations.InnerError", + "usage": "Output,Json,Exception", + "doc": "An object containing more specific information about the error. As per Microsoft One API guidelines - https://github.com/microsoft/api-guidelines/blob/vNext/azure/Guidelines.md#handling-errors.", + "decorators": [], + "properties": [ + { + "$id": "345", + "kind": "property", + "name": "code", + "serializedName": "code", + "doc": "One of a server-defined set of error codes.", + "type": { + "$id": "346", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Core.Foundations.InnerError.code", + "serializationOptions": { + "json": { + "name": "code" + } + } + }, + { + "$id": "347", + "kind": "property", + "name": "innererror", + "serializedName": "innererror", + "doc": "Inner error.", + "type": { + "$ref": "344" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Core.Foundations.InnerError.innererror", + "serializationOptions": { + "json": { + "name": "innererror" + } + } + } + ] }, - "optional": false, + "optional": true, "readOnly": false, "discriminator": false, "flatten": false, "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateLocation.longitude", + "crossLanguageDefinitionId": "Azure.Core.Foundations.Error.innererror", "serializationOptions": { - "$id": "572", - "json": { - "$id": "573", - "name": "longitude" - } + "json": { + "name": "innererror" + } } - } - ] - }, - "quickAction": { - "$id": "574", + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Core.Foundations.ErrorResponse.error", + "serializationOptions": { + "json": { + "name": "error" + } + } + }, + { + "$id": "348", + "kind": "header", + "name": "errorCode", + "serializedName": "x-ms-error-code", + "doc": "String error code indicating what went wrong.", + "type": { + "$id": "349", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Core.Foundations.ErrorResponse.errorCode", + "correspondingMethodParams": [] + } + ] + }, + { + "$ref": "334" + }, + { + "$ref": "344" + }, + { + "$id": "350", + "kind": "model", + "name": "PagedMessageTemplateItem", + "namespace": "Azure.Communication.Messages", + "crossLanguageDefinitionId": "Azure.Core.Foundations.CustomPage", + "usage": "Output,Json", + "doc": "Paged collection of MessageTemplateItem items", + "decorators": [], + "properties": [ + { + "$id": "351", + "kind": "property", + "name": "value", + "serializedName": "value", + "doc": "The MessageTemplateItem items on this page", + "type": { + "$id": "352", + "kind": "array", + "name": "ArrayMessageTemplateItem", + "valueType": { + "$id": "353", "kind": "model", - "name": "MessageTemplateQuickAction", + "name": "MessageTemplateItem", "namespace": "Azure.Communication.Messages", - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateQuickAction", - "usage": "Input,Output,Json", - "doc": "The message template's quick action value information.", - "discriminatorValue": "quickAction", + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateItem", + "usage": "Output,Json", + "doc": "The message template as returned from the service.", "decorators": [], - "baseModel": { - "$ref": "479" - }, - "properties": [ - { - "$id": "575", + "discriminatorProperty": { + "$id": "354", "kind": "property", "name": "kind", "serializedName": "kind", - "doc": "Message parameter type is quick action.", + "doc": "The type discriminator describing a template type.", "type": { - "$id": "576", - "kind": "enumvalue", - "name": "quickAction", - "value": "quickAction", - "valueType": { - "$id": "577", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { "$ref": "48" - }, - "doc": "The quick action template parameter type.", - "decorators": [] }, "optional": false, "readOnly": false, "discriminator": true, "flatten": false, "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateQuickAction.kind", - "serializationOptions": { - "$id": "578", - "json": { - "$id": "579", - "name": "kind" - } - } - }, - { - "$id": "580", - "kind": "property", - "name": "text", - "serializedName": "text", - "doc": "The [Optional] quick action text", - "type": { - "$id": "581", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateQuickAction.text", + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateItem.kind", "serializationOptions": { - "$id": "582", - "json": { - "$id": "583", - "name": "text" - } + "json": { + "name": "kind" + } } - }, - { - "$id": "584", - "kind": "property", - "name": "payload", - "serializedName": "payload", - "doc": "The [Optional] quick action payload", - "type": { - "$id": "585", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + }, + "properties": [ + { + "$id": "355", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The template's name.", + "type": { + "$id": "356", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateItem.name", + "serializationOptions": { + "json": { + "name": "name" + } + } }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateQuickAction.payload", - "serializationOptions": { - "$id": "586", - "json": { - "$id": "587", - "name": "payload" - } + { + "$id": "357", + "kind": "property", + "name": "language", + "serializedName": "language", + "doc": "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": "358", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateItem.language", + "serializationOptions": { + "json": { + "name": "language" + } + } + }, + { + "$id": "359", + "kind": "property", + "name": "status", + "serializedName": "status", + "doc": "The aggregated template status.", + "type": { + "$ref": "42" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateItem.status", + "serializationOptions": { + "json": { + "name": "status" + } + } + }, + { + "$ref": "354" } - } - ] - } + ], + "discriminatedSubtypes": { + "whatsApp": { + "$id": "360", + "kind": "model", + "name": "WhatsAppMessageTemplateItem", + "namespace": "Azure.Communication.Messages", + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.WhatsAppMessageTemplateItem", + "usage": "Output,Json", + "doc": "The WhatsApp-specific template response contract", + "discriminatorValue": "whatsApp", + "decorators": [], + "baseModel": { + "$ref": "353" + }, + "properties": [ + { + "$id": "361", + "kind": "property", + "name": "content", + "serializedName": "content", + "doc": "WhatsApp platform's template content. This is the payload returned from WhatsApp API.", + "type": { + "$id": "362", + "kind": "unknown", + "name": "unknown", + "crossLanguageDefinitionId": "", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.WhatsAppMessageTemplateItem.content", + "serializationOptions": { + "json": { + "name": "content" + } + } + }, + { + "$id": "363", + "kind": "property", + "name": "kind", + "serializedName": "kind", + "doc": "Message template response type is whatsApp.", + "type": { + "$ref": "50" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.WhatsAppMessageTemplateItem.kind", + "serializationOptions": { + "json": { + "name": "kind" + } + } + } + ] + } + } + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Core.Foundations.CustomPage.value", + "serializationOptions": { + "json": { + "name": "value" } - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + } + }, + { + "$id": "364", + "kind": "property", + "name": "nextLink", + "serializedName": "nextLink", + "doc": "The link to the next page of items", + "type": { + "$id": "365", + "kind": "url", + "name": "ResourceLocation", + "crossLanguageDefinitionId": "TypeSpec.Rest.ResourceLocation", + "baseType": { + "$id": "366", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url", + "decorators": [] + }, + "decorators": [] }, "optional": true, "readOnly": false, "discriminator": false, "flatten": false, "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplate.values", + "crossLanguageDefinitionId": "Azure.Core.Foundations.CustomPage.nextLink", "serializationOptions": { - "$id": "588", - "json": { - "$id": "589", - "name": "values" - } + "json": { + "name": "nextLink" + } } - }, - { - "$id": "590", - "kind": "property", - "name": "bindings", - "serializedName": "bindings", - "doc": "The binding object to link values to the template specific locations", + }, + { + "$id": "367", + "kind": "header", + "name": "clientRequestId", + "serializedName": "x-ms-client-request-id", + "doc": "An opaque, globally-unique, client-generated string identifier for the request.", "type": { - "$id": "591", - "kind": "model", - "name": "MessageTemplateBindings", - "namespace": "Azure.Communication.Messages", - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateBindings", - "usage": "Input,Output,Json", - "doc": "The binding object to link values to the template specific locations", - "decorators": [], - "discriminatorProperty": { - "$id": "592", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "The type discriminator describing a template bindings type.", - "type": { - "$ref": "62" + "$id": "368", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "369", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateBindings.kind", - "serializationOptions": { - "$id": "593", - "json": { - "$id": "594", - "name": "kind" - } + "decorators": [] + }, + "optional": true, + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Core.Foundations.CustomPage.clientRequestId", + "correspondingMethodParams": [] + } + ] + }, + { + "$ref": "353" + }, + { + "$ref": "360" + }, + { + "$id": "370", + "kind": "model", + "name": "CommunicationConversation", + "namespace": "Azure.Communication.Messages", + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.Conversation", + "usage": "Input,Output,Json", + "doc": "A conversation.", + "decorators": [], + "properties": [ + { + "$id": "371", + "kind": "property", + "name": "id", + "serializedName": "id", + "doc": "The conversation ID.", + "type": { + "$id": "372", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.Conversation.id", + "serializationOptions": { + "json": { + "name": "id" } - }, - "properties": [ - { - "$ref": "592" + } + }, + { + "$id": "373", + "kind": "property", + "name": "topic", + "serializedName": "topic", + "doc": "The conversation topic.", + "type": { + "$id": "374", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.Conversation.topic", + "serializationOptions": { + "json": { + "name": "topic" } - ], - "discriminatedSubtypes": { - "$id": "595", - "whatsApp": { - "$id": "596", - "kind": "model", - "name": "WhatsAppMessageTemplateBindings", - "namespace": "Azure.Communication.Messages", - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.WhatsAppMessageTemplateBindings", - "usage": "Input,Output,Json", - "doc": "The template bindings for WhatsApp", - "discriminatorValue": "whatsApp", - "decorators": [], - "baseModel": { - "$ref": "591" - }, - "properties": [ - { - "$id": "597", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "MessageTemplateBindings is whatsApp", - "type": { - "$id": "598", - "kind": "enumvalue", - "name": "whatsApp", - "value": "whatsApp", - "valueType": { - "$id": "599", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "62" - }, - "doc": "The WhatsApp template type.", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.WhatsAppMessageTemplateBindings.kind", - "serializationOptions": { - "$id": "600", - "json": { - "$id": "601", - "name": "kind" + } + }, + { + "$id": "375", + "kind": "property", + "name": "deliveryChannelIds", + "serializedName": "deliveryChannelIds", + "doc": "List of delivery channel IDs.", + "type": { + "$ref": "132" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.Conversation.deliveryChannelIds", + "serializationOptions": { + "json": { + "name": "deliveryChannelIds" + } + } + }, + { + "$id": "376", + "kind": "property", + "name": "outboundDeliveryStrategy", + "serializedName": "outboundDeliveryStrategy", + "doc": "Outbound delivery strategy for the conversation.", + "type": { + "$ref": "51" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.Conversation.outboundDeliveryStrategy", + "serializationOptions": { + "json": { + "name": "outboundDeliveryStrategy" + } + } + }, + { + "$id": "377", + "kind": "property", + "name": "participants", + "serializedName": "participants", + "doc": "List of participants involved in the conversation.", + "type": { + "$id": "378", + "kind": "array", + "name": "ArrayConversationParticipant", + "valueType": { + "$id": "379", + "kind": "model", + "name": "ConversationParticipant", + "namespace": "Azure.Communication.Messages", + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ConversationParticipant", + "usage": "Input,Output,Json", + "doc": "Advanced Messaging conversation participant.", + "decorators": [], + "discriminatorProperty": { + "$id": "380", + "kind": "property", + "name": "kind", + "serializedName": "kind", + "doc": "The type discriminator describing a participant type.", + "type": { + "$ref": "55" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ConversationParticipant.kind", + "serializationOptions": { + "json": { + "name": "kind" + } } - } }, - { - "$id": "602", - "kind": "property", - "name": "header", - "serializedName": "header", - "doc": "The header template bindings", - "type": { - "$id": "603", - "kind": "array", - "name": "ArrayWhatsAppMessageTemplateBindingsComponent", - "valueType": { - "$id": "604", - "kind": "model", - "name": "WhatsAppMessageTemplateBindingsComponent", - "namespace": "Azure.Communication.Messages", - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.WhatsAppMessageTemplateBindingsComponent", - "usage": "Input,Output,Json", - "doc": "The template bindings component for WhatsApp", - "decorators": [], - "properties": [ - { - "$id": "605", - "kind": "property", - "name": "refValue", - "serializedName": "refValue", - "doc": "The name of the referenced item in the template values.", - "type": { - "$id": "606", + "properties": [ + { + "$id": "381", + "kind": "property", + "name": "id", + "serializedName": "id", + "doc": "Participant Identifier.", + "type": { + "$id": "382", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.WhatsAppMessageTemplateBindingsComponent.refValue", - "serializationOptions": { - "$id": "607", + }, + "optional": false, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ConversationParticipant.id", + "serializationOptions": { "json": { - "$id": "608", - "name": "refValue" + "name": "id" } - } } - ] }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.WhatsAppMessageTemplateBindings.header", - "serializationOptions": { - "$id": "609", - "json": { - "$id": "610", - "name": "header" - } - } - }, - { - "$id": "611", - "kind": "property", - "name": "body", - "serializedName": "body", - "doc": "The body template bindings", - "type": { - "$ref": "603" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.WhatsAppMessageTemplateBindings.body", - "serializationOptions": { - "$id": "612", - "json": { - "$id": "613", - "name": "body" - } - } - }, - { - "$id": "614", - "kind": "property", - "name": "footer", - "serializedName": "footer", - "doc": "The footer template bindings", - "type": { - "$ref": "603" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.WhatsAppMessageTemplateBindings.footer", - "serializationOptions": { - "$id": "615", - "json": { - "$id": "616", - "name": "footer" - } - } - }, - { - "$id": "617", - "kind": "property", - "name": "buttons", - "serializedName": "buttons", - "doc": "The button template bindings", - "type": { - "$id": "618", - "kind": "array", - "name": "ArrayWhatsAppMessageTemplateBindingsButton", - "valueType": { - "$id": "619", - "kind": "model", - "name": "WhatsAppMessageTemplateBindingsButton", - "namespace": "Azure.Communication.Messages", - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.WhatsAppMessageTemplateBindingsButton", - "usage": "Input,Output,Json", - "doc": "The template bindings component button for WhatsApp", - "decorators": [], - "properties": [ - { - "$id": "620", - "kind": "property", - "name": "subType", - "serializedName": "subType", - "doc": "The WhatsApp button sub type", - "type": { - "$ref": "66" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.WhatsAppMessageTemplateBindingsButton.subType", - "serializationOptions": { - "$id": "621", - "json": { - "$id": "622", - "name": "subType" - } - } - }, - { - "$id": "623", - "kind": "property", - "name": "refValue", - "serializedName": "refValue", - "doc": "The name of the referenced item in the template values.", - "type": { - "$id": "624", + { + "$id": "383", + "kind": "property", + "name": "displayName", + "serializedName": "displayName", + "doc": "Participant display name.", + "type": { + "$id": "384", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.WhatsAppMessageTemplateBindingsButton.refValue", - "serializationOptions": { - "$id": "625", + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ConversationParticipant.displayName", + "serializationOptions": { "json": { - "$id": "626", - "name": "refValue" + "name": "displayName" } - } } - ] }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.WhatsAppMessageTemplateBindings.buttons", - "serializationOptions": { - "$id": "627", - "json": { - "$id": "628", - "name": "buttons" + { + "$ref": "380" + } + ], + "discriminatedSubtypes": { + "internal": { + "$id": "385", + "kind": "model", + "name": "InternalConversationParticipant", + "namespace": "Azure.Communication.Messages", + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.InternalConversationParticipant", + "usage": "Input,Output,Json", + "doc": "Internal conversation participant.", + "discriminatorValue": "internal", + "decorators": [], + "baseModel": { + "$ref": "379" + }, + "properties": [ + { + "$id": "386", + "kind": "property", + "name": "kind", + "serializedName": "kind", + "doc": "Participant type is internal.", + "type": { + "$ref": "57" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.InternalConversationParticipant.kind", + "serializationOptions": { + "json": { + "name": "kind" + } + } + }, + { + "$id": "387", + "kind": "property", + "name": "contact", + "serializedName": "contact", + "doc": "The internal platform identifiers for the participant.", + "type": { + "$id": "388", + "kind": "model", + "name": "ConversationContact", + "namespace": "Azure.Communication.Messages", + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.Contact", + "usage": "Input,Output,Json", + "doc": "Details of an external platform contact.", + "decorators": [], + "discriminatorProperty": { + "$id": "389", + "kind": "property", + "name": "kind", + "serializedName": "kind", + "doc": "Type of message platform (e.g., WhatsApp).", + "type": { + "$ref": "59" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.Contact.kind", + "serializationOptions": { + "json": { + "name": "kind" + } + } + }, + "properties": [ + { + "$id": "390", + "kind": "property", + "name": "id", + "serializedName": "id", + "doc": "External platform identifier.", + "type": { + "$id": "391", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.Contact.id", + "serializationOptions": { + "json": { + "name": "id" + } + } + }, + { + "$ref": "389" + } + ], + "discriminatedSubtypes": { + "communication": { + "$id": "392", + "kind": "model", + "name": "CommunicationContact", + "namespace": "Azure.Communication.Messages", + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.CommunicationContact", + "usage": "Input,Output,Json", + "doc": "Communication Contact.", + "discriminatorValue": "communication", + "decorators": [], + "baseModel": { + "$ref": "388" + }, + "properties": [ + { + "$id": "393", + "kind": "property", + "name": "kind", + "serializedName": "kind", + "doc": "Contact type is communication.", + "type": { + "$ref": "61" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.CommunicationContact.kind", + "serializationOptions": { + "json": { + "name": "kind" + } + } + } + ] + }, + "bot": { + "$id": "394", + "kind": "model", + "name": "BotContact", + "namespace": "Azure.Communication.Messages", + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.BotContact", + "usage": "Input,Output,Json", + "doc": "Bot Contact.", + "discriminatorValue": "bot", + "decorators": [], + "baseModel": { + "$ref": "388" + }, + "properties": [ + { + "$id": "395", + "kind": "property", + "name": "kind", + "serializedName": "kind", + "doc": "Contact type is bot.", + "type": { + "$ref": "62" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.BotContact.kind", + "serializationOptions": { + "json": { + "name": "kind" + } + } + }, + { + "$id": "396", + "kind": "property", + "name": "botAppId", + "serializedName": "botAppId", + "doc": "Bot App Id of the Bot Contact.", + "type": { + "$id": "397", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.BotContact.botAppId", + "serializationOptions": { + "json": { + "name": "botAppId" + } + } + } + ] + }, + "whatsApp": { + "$id": "398", + "kind": "model", + "name": "WhatsAppContact", + "namespace": "Azure.Communication.Messages", + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.WhatsAppContact", + "usage": "Input,Output,Json", + "doc": "WhatsApp Contact.", + "discriminatorValue": "whatsApp", + "decorators": [], + "baseModel": { + "$ref": "388" + }, + "properties": [ + { + "$id": "399", + "kind": "property", + "name": "kind", + "serializedName": "kind", + "doc": "Contact type is whatsApp.", + "type": { + "$ref": "63" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.WhatsAppContact.kind", + "serializationOptions": { + "json": { + "name": "kind" + } + } + } + ] + } + } + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.InternalConversationParticipant.contact", + "serializationOptions": { + "json": { + "name": "contact" + } + } + } + ] + }, + "external": { + "$id": "400", + "kind": "model", + "name": "ExternalConversationParticipant", + "namespace": "Azure.Communication.Messages", + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ExternalConversationParticipant", + "usage": "Input,Output,Json", + "doc": "External conversation participant.", + "discriminatorValue": "external", + "decorators": [], + "baseModel": { + "$ref": "379" + }, + "properties": [ + { + "$id": "401", + "kind": "property", + "name": "kind", + "serializedName": "kind", + "doc": "Participant type is external.", + "type": { + "$ref": "58" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ExternalConversationParticipant.kind", + "serializationOptions": { + "json": { + "name": "kind" + } + } + }, + { + "$id": "402", + "kind": "property", + "name": "contacts", + "serializedName": "contacts", + "doc": "List of external platform identifiers for the participant.", + "type": { + "$id": "403", + "kind": "array", + "name": "ArrayContact", + "valueType": { + "$ref": "388" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ExternalConversationParticipant.contacts", + "serializationOptions": { + "json": { + "name": "contacts" + } + } + } + ] } - } } - ] - } - } + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] }, "optional": true, "readOnly": false, "discriminator": false, "flatten": false, "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplate.bindings", + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.Conversation.participants", "serializationOptions": { - "$id": "629", - "json": { - "$id": "630", - "name": "bindings" - } + "json": { + "name": "participants" + } } - } - ] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.TemplateNotificationContent.template", - "serializationOptions": { - "$id": "631", - "json": { - "$id": "632", - "name": "template" } - } - } - ] - } - } - }, - { - "$ref": "189" - }, - { - "$ref": "199" - }, - { - "$ref": "213" - }, - { - "$ref": "227" - }, - { - "$ref": "245" - }, - { - "$ref": "259" - }, - { - "$ref": "269" - }, - { - "$ref": "283" - }, - { - "$ref": "293" - }, - { - "$ref": "300" - }, - { - "$ref": "302" - }, - { - "$ref": "307" - }, - { - "$ref": "317" - }, - { - "$ref": "327" - }, - { - "$ref": "337" - }, - { - "$ref": "347" - }, - { - "$ref": "355" - }, - { - "$ref": "366" - }, - { - "$ref": "380" - }, - { - "$ref": "392" - }, - { - "$ref": "399" - }, - { - "$ref": "425" - }, - { - "$ref": "430" - }, - { - "$ref": "439" - }, - { - "$ref": "448" - }, - { - "$ref": "461" - }, - { - "$ref": "468" - }, - { - "$ref": "479" - }, - { - "$ref": "488" - }, - { - "$ref": "498" - }, - { - "$ref": "516" - }, - { - "$ref": "534" - }, - { - "$ref": "552" - }, - { - "$ref": "574" - }, - { - "$ref": "591" - }, - { - "$ref": "596" - }, - { - "$ref": "604" - }, - { - "$ref": "619" - }, - { - "$id": "633", - "kind": "model", - "name": "SendMessageResult", - "namespace": "Azure.Communication.Messages", - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.SendMessageResult", - "usage": "Output,Json", - "doc": "Result of the send message operation.", - "decorators": [], - "properties": [ + ] + }, { - "$id": "634", - "kind": "property", - "name": "receipts", - "serializedName": "receipts", - "doc": "Receipts of the send message operation.", - "type": { - "$id": "635", - "kind": "array", - "name": "ArrayMessageReceipt", - "valueType": { - "$id": "636", - "kind": "model", - "name": "MessageReceipt", - "namespace": "Azure.Communication.Messages", - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageReceipt", - "usage": "Output,Json", - "doc": "Receipt of the sending one message.", - "decorators": [], - "properties": [ - { - "$id": "637", - "kind": "property", - "name": "messageId", - "serializedName": "messageId", - "doc": "The message id.", - "type": { - "$id": "638", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageReceipt.messageId", - "serializationOptions": { - "$id": "639", - "json": { - "$id": "640", - "name": "messageId" - } - } - }, - { - "$id": "641", - "kind": "property", - "name": "to", - "serializedName": "to", - "doc": "The native external platform user identifier of the recipient.", - "type": { - "$id": "642", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageReceipt.to", - "serializationOptions": { - "$id": "643", - "json": { - "$id": "644", - "name": "to" - } - } - } - ] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.SendMessageResult.receipts", - "serializationOptions": { - "$id": "645", - "json": { - "$id": "646", - "name": "receipts" - } - } - } - ] - }, - { - "$ref": "636" - }, - { - "$id": "647", - "kind": "model", - "name": "MessageTemplateItem", - "namespace": "Azure.Communication.Messages", - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateItem", - "usage": "Output,Json", - "doc": "The message template as returned from the service.", - "decorators": [], - "discriminatorProperty": { - "$id": "648", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "The type discriminator describing a template type.", - "type": { - "$ref": "92" + "$ref": "379" }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateItem.kind", - "serializationOptions": { - "$id": "649", - "json": { - "$id": "650", - "name": "kind" - } - } - }, - "properties": [ { - "$id": "651", - "kind": "property", - "name": "name", - "serializedName": "name", - "doc": "The template's name.", - "type": { - "$id": "652", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": true, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateItem.name", - "serializationOptions": { - "$id": "653", - "json": { - "$id": "654", - "name": "name" - } - } + "$ref": "385" }, { - "$id": "655", - "kind": "property", - "name": "language", - "serializedName": "language", - "doc": "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": "656", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateItem.language", - "serializationOptions": { - "$id": "657", - "json": { - "$id": "658", - "name": "language" - } - } + "$ref": "388" }, { - "$id": "659", - "kind": "property", - "name": "status", - "serializedName": "status", - "doc": "The aggregated template status.", - "type": { - "$ref": "82" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateItem.status", - "serializationOptions": { - "$id": "660", - "json": { - "$id": "661", - "name": "status" - } - } + "$ref": "392" }, { - "$ref": "648" - } - ], - "discriminatedSubtypes": { - "$id": "662", - "whatsApp": { - "$id": "663", - "kind": "model", - "name": "WhatsAppMessageTemplateItem", - "namespace": "Azure.Communication.Messages", - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.WhatsAppMessageTemplateItem", - "usage": "Output,Json", - "doc": "The WhatsApp-specific template response contract", - "discriminatorValue": "whatsApp", - "decorators": [], - "baseModel": { - "$ref": "647" - }, - "properties": [ - { - "$id": "664", - "kind": "property", - "name": "content", - "serializedName": "content", - "doc": "WhatsApp platform's template content. This is the payload returned from WhatsApp API.", - "type": { - "$id": "665", - "kind": "unknown", - "name": "unknown", - "crossLanguageDefinitionId": "", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.WhatsAppMessageTemplateItem.content", - "serializationOptions": { - "$id": "666", - "json": { - "$id": "667", - "name": "content" - } - } - }, - { - "$id": "668", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "Message template response type is whatsApp.", - "type": { - "$id": "669", - "kind": "enumvalue", - "name": "whatsApp", - "value": "whatsApp", - "valueType": { - "$id": "670", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "92" - }, - "doc": "The WhatsApp communication messages channel type.", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.WhatsAppMessageTemplateItem.kind", - "serializationOptions": { - "$id": "671", - "json": { - "$id": "672", - "name": "kind" - } - } - } - ] - } - } - }, - { - "$ref": "663" - }, - { - "$id": "673", - "kind": "model", - "name": "CommunicationConversation", - "namespace": "Azure.Communication.Messages", - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.Conversation", - "usage": "Input,Output,Json", - "doc": "A conversation.", - "decorators": [], - "properties": [ - { - "$id": "674", - "kind": "property", - "name": "id", - "serializedName": "id", - "doc": "The conversation ID.", - "type": { - "$id": "675", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": true, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.Conversation.id", - "serializationOptions": { - "$id": "676", - "json": { - "$id": "677", - "name": "id" - } - } - }, - { - "$id": "678", - "kind": "property", - "name": "topic", - "serializedName": "topic", - "doc": "The conversation topic.", - "type": { - "$id": "679", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.Conversation.topic", - "serializationOptions": { - "$id": "680", - "json": { - "$id": "681", - "name": "topic" - } - } - }, - { - "$id": "682", - "kind": "property", - "name": "deliveryChannelIds", - "serializedName": "deliveryChannelIds", - "doc": "List of delivery channel IDs.", - "type": { - "$ref": "184" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.Conversation.deliveryChannelIds", - "serializationOptions": { - "$id": "683", - "json": { - "$id": "684", - "name": "deliveryChannelIds" - } - } - }, - { - "$id": "685", - "kind": "property", - "name": "outboundDeliveryStrategy", - "serializedName": "outboundDeliveryStrategy", - "doc": "Outbound delivery strategy for the conversation.", - "type": { - "$ref": "96" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.Conversation.outboundDeliveryStrategy", - "serializationOptions": { - "$id": "686", - "json": { - "$id": "687", - "name": "outboundDeliveryStrategy" - } - } - }, - { - "$id": "688", - "kind": "property", - "name": "participants", - "serializedName": "participants", - "doc": "List of participants involved in the conversation.", - "type": { - "$id": "689", - "kind": "array", - "name": "ArrayConversationParticipant", - "valueType": { - "$id": "690", - "kind": "model", - "name": "ConversationParticipant", - "namespace": "Azure.Communication.Messages", - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ConversationParticipant", - "usage": "Input,Output,Json", - "doc": "Advanced Messaging conversation participant.", - "decorators": [], - "discriminatorProperty": { - "$id": "691", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "The type discriminator describing a participant type.", - "type": { - "$ref": "102" - }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ConversationParticipant.kind", - "serializationOptions": { - "$id": "692", - "json": { - "$id": "693", - "name": "kind" - } - } - }, - "properties": [ - { - "$id": "694", - "kind": "property", - "name": "id", - "serializedName": "id", - "doc": "Participant Identifier.", - "type": { - "$id": "695", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": true, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ConversationParticipant.id", - "serializationOptions": { - "$id": "696", - "json": { - "$id": "697", - "name": "id" - } - } - }, - { - "$id": "698", - "kind": "property", - "name": "displayName", - "serializedName": "displayName", - "doc": "Participant display name.", - "type": { - "$id": "699", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ConversationParticipant.displayName", - "serializationOptions": { - "$id": "700", - "json": { - "$id": "701", - "name": "displayName" - } - } - }, - { - "$ref": "691" - } - ], - "discriminatedSubtypes": { - "$id": "702", - "internal": { - "$id": "703", - "kind": "model", - "name": "InternalConversationParticipant", - "namespace": "Azure.Communication.Messages", - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.InternalConversationParticipant", - "usage": "Input,Output,Json", - "doc": "Internal conversation participant.", - "discriminatorValue": "internal", - "decorators": [], - "baseModel": { - "$ref": "690" - }, - "properties": [ - { - "$id": "704", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "Participant type is internal.", - "type": { - "$id": "705", - "kind": "enumvalue", - "name": "internal", - "value": "internal", - "valueType": { - "$id": "706", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "102" - }, - "doc": "A participant internal to Azure Communication Services.", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.InternalConversationParticipant.kind", - "serializationOptions": { - "$id": "707", - "json": { - "$id": "708", - "name": "kind" - } - } - }, - { - "$id": "709", - "kind": "property", - "name": "contact", - "serializedName": "contact", - "doc": "The internal platform identifiers for the participant.", - "type": { - "$id": "710", - "kind": "model", - "name": "ConversationContact", - "namespace": "Azure.Communication.Messages", - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.Contact", - "usage": "Input,Output,Json", - "doc": "Details of an external platform contact.", - "decorators": [], - "discriminatorProperty": { - "$id": "711", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "Type of message platform (e.g., WhatsApp).", - "type": { - "$ref": "108" - }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.Contact.kind", - "serializationOptions": { - "$id": "712", - "json": { - "$id": "713", - "name": "kind" - } - } - }, - "properties": [ - { - "$id": "714", - "kind": "property", - "name": "id", - "serializedName": "id", - "doc": "External platform identifier.", - "type": { - "$id": "715", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.Contact.id", - "serializationOptions": { - "$id": "716", - "json": { - "$id": "717", - "name": "id" - } - } - }, - { - "$ref": "711" - } - ], - "discriminatedSubtypes": { - "$id": "718", - "communication": { - "$id": "719", - "kind": "model", - "name": "CommunicationContact", - "namespace": "Azure.Communication.Messages", - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.CommunicationContact", - "usage": "Input,Output,Json", - "doc": "Communication Contact.", - "discriminatorValue": "communication", - "decorators": [], - "baseModel": { - "$ref": "710" - }, - "properties": [ - { - "$id": "720", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "Contact type is communication.", - "type": { - "$id": "721", - "kind": "enumvalue", - "name": "communication", - "value": "communication", - "valueType": { - "$id": "722", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "108" - }, - "doc": "Azure Communication platform.", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.CommunicationContact.kind", - "serializationOptions": { - "$id": "723", - "json": { - "$id": "724", - "name": "kind" - } - } - } - ] - }, - "bot": { - "$id": "725", - "kind": "model", - "name": "BotContact", - "namespace": "Azure.Communication.Messages", - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.BotContact", - "usage": "Input,Output,Json", - "doc": "Bot Contact.", - "discriminatorValue": "bot", - "decorators": [], - "baseModel": { - "$ref": "710" - }, - "properties": [ - { - "$id": "726", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "Contact type is bot.", - "type": { - "$id": "727", - "kind": "enumvalue", - "name": "bot", - "value": "bot", - "valueType": { - "$id": "728", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "108" - }, - "doc": "Bot platform.", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.BotContact.kind", - "serializationOptions": { - "$id": "729", - "json": { - "$id": "730", - "name": "kind" - } - } - }, - { - "$id": "731", - "kind": "property", - "name": "botAppId", - "serializedName": "botAppId", - "doc": "Bot App Id of the Bot Contact.", - "type": { - "$id": "732", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.BotContact.botAppId", - "serializationOptions": { - "$id": "733", - "json": { - "$id": "734", - "name": "botAppId" - } - } - } - ] - }, - "whatsApp": { - "$id": "735", - "kind": "model", - "name": "WhatsAppContact", - "namespace": "Azure.Communication.Messages", - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.WhatsAppContact", - "usage": "Input,Output,Json", - "doc": "WhatsApp Contact.", - "discriminatorValue": "whatsApp", - "decorators": [], - "baseModel": { - "$ref": "710" - }, - "properties": [ - { - "$id": "736", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "Contact type is whatsApp.", - "type": { - "$id": "737", - "kind": "enumvalue", - "name": "whatsApp", - "value": "whatsApp", - "valueType": { - "$id": "738", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "108" - }, - "doc": "WhatsApp platform.", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.WhatsAppContact.kind", - "serializationOptions": { - "$id": "739", - "json": { - "$id": "740", - "name": "kind" - } - } - } - ] - } - } - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.InternalConversationParticipant.contact", - "serializationOptions": { - "$id": "741", - "json": { - "$id": "742", - "name": "contact" - } - } - } - ] - }, - "external": { - "$id": "743", - "kind": "model", - "name": "ExternalConversationParticipant", - "namespace": "Azure.Communication.Messages", - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ExternalConversationParticipant", - "usage": "Input,Output,Json", - "doc": "External conversation participant.", - "discriminatorValue": "external", - "decorators": [], - "baseModel": { - "$ref": "690" - }, - "properties": [ - { - "$id": "744", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "Participant type is external.", - "type": { - "$id": "745", - "kind": "enumvalue", - "name": "external", - "value": "external", - "valueType": { - "$id": "746", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "enumType": { - "$ref": "102" - }, - "doc": "A participant on other platforms", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ExternalConversationParticipant.kind", - "serializationOptions": { - "$id": "747", - "json": { - "$id": "748", - "name": "kind" - } - } - }, - { - "$id": "749", - "kind": "property", - "name": "contacts", - "serializedName": "contacts", - "doc": "List of external platform identifiers for the participant.", - "type": { - "$id": "750", - "kind": "array", - "name": "ArrayContact", - "valueType": { - "$ref": "710" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ExternalConversationParticipant.contacts", - "serializationOptions": { - "$id": "751", - "json": { - "$id": "752", - "name": "contacts" - } - } - } - ] - } - } - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.Conversation.participants", - "serializationOptions": { - "$id": "753", - "json": { - "$id": "754", - "name": "participants" - } - } - } - ] - }, - { - "$ref": "690" - }, - { - "$ref": "703" - }, - { - "$ref": "710" - }, - { - "$ref": "719" - }, - { - "$ref": "725" - }, - { - "$ref": "735" - }, - { - "$ref": "743" - }, - { - "$id": "755", - "kind": "model", - "name": "ConversationMessage", - "namespace": "Azure.Communication.Messages", - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.Message", - "usage": "Input,Json", - "doc": "Details of a message.", - "decorators": [], - "properties": [ - { - "$id": "756", - "kind": "property", - "name": "content", - "serializedName": "content", - "doc": "Content of the message.", - "type": { - "$id": "757", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.Message.content", - "serializationOptions": { - "$id": "758", - "json": { - "$id": "759", - "name": "content" - } - } - } - ] - }, - { - "$id": "760", - "kind": "model", - "name": "CreateConversationRequest1", - "namespace": "", - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.createConversation.Request.anonymous", - "usage": "Spread,Json", - "decorators": [], - "properties": [ - { - "$id": "761", - "kind": "property", - "name": "conversation", - "serializedName": "conversation", - "doc": "The conversation details.", - "type": { - "$ref": "673" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "createConversation.Request.anonymous.conversation", - "serializationOptions": { - "$id": "762", - "json": { - "$id": "763", - "name": "conversation" - } - } + "$ref": "394" }, { - "$id": "764", - "kind": "property", - "name": "initialMessage", - "serializedName": "initialMessage", - "doc": "An initial message within the conversation.", - "type": { - "$ref": "755" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "createConversation.Request.anonymous.initialMessage", - "serializationOptions": { - "$id": "765", - "json": { - "$id": "766", - "name": "initialMessage" - } - } - } - ] - }, - { - "$id": "767", - "kind": "model", - "name": "ConversationMessageItem", - "namespace": "Azure.Communication.Messages", - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ConversationMessageItem", - "usage": "Output,Json", - "doc": "The conversation message as returned from the service.", - "decorators": [], - "properties": [ - { - "$id": "768", - "kind": "property", - "name": "id", - "serializedName": "id", - "doc": "Message ID.", - "type": { - "$id": "769", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": true, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ConversationMessageItem.id", - "serializationOptions": { - "$id": "770", - "json": { - "$id": "771", - "name": "id" - } - } + "$ref": "398" }, { - "$id": "772", - "kind": "property", - "name": "sequenceId", - "serializedName": "sequenceId", - "doc": "Message sequence ID.", - "type": { - "$id": "773", - "kind": "int64", - "name": "int64", - "crossLanguageDefinitionId": "TypeSpec.int64", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ConversationMessageItem.sequenceId", - "serializationOptions": { - "$id": "774", - "json": { - "$id": "775", - "name": "sequenceId" - } - } + "$ref": "400" }, { - "$id": "776", - "kind": "property", - "name": "message", - "serializedName": "message", - "doc": "Payload of a threaded conversation message.", - "type": { - "$id": "777", + "$id": "404", "kind": "model", - "name": "ConversationMessageContent", + "name": "ConversationMessage", "namespace": "Azure.Communication.Messages", - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ConversationMessageContent", - "usage": "Input,Output,Json", - "doc": "Details of the conversation message content.", + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.Message", + "usage": "Input,Json", + "doc": "Details of a message.", "decorators": [], - "discriminatorProperty": { - "$id": "778", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "The type discriminator describing a message type.", - "type": { - "$ref": "2" - }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ConversationMessageContent.kind", - "serializationOptions": { - "$id": "779", - "json": { - "$id": "780", - "name": "kind" - } - } - }, "properties": [ - { - "$ref": "778" - } - ], - "discriminatedSubtypes": { - "$id": "781", - "text": { - "$id": "782", - "kind": "model", - "name": "TextConversationMessageContent", - "namespace": "Azure.Communication.Messages", - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.TextConversationMessageContent", - "usage": "Input,Output,Json", - "doc": "A request to send a text conversation message.", - "discriminatorValue": "text", - "decorators": [], - "baseModel": { - "$ref": "777" - }, - "properties": [ - { - "$id": "783", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "Message notification type is text.", - "type": { - "$ref": "191" - }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.TextConversationMessageContent.kind", - "serializationOptions": { - "$id": "784", - "json": { - "$id": "785", - "name": "kind" - } - } - }, - { - "$id": "786", + { + "$id": "405", "kind": "property", "name": "content", "serializedName": "content", - "doc": "Message content.", + "doc": "Content of the message.", "type": { - "$id": "787", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "406", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, "optional": false, "readOnly": false, "discriminator": false, "flatten": false, "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.TextConversationMessageContent.content", + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.Message.content", "serializationOptions": { - "$id": "788", - "json": { - "$id": "789", - "name": "content" - } + "json": { + "name": "content" + } } - } - ] - }, - "image": { - "$id": "790", - "kind": "model", - "name": "ImageConversationMessageContent", - "namespace": "Azure.Communication.Messages", - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ImageConversationMessageContent", - "usage": "Input,Output,Json", - "doc": "A request to send an image conversation message.", - "discriminatorValue": "image", - "decorators": [], - "baseModel": { - "$ref": "777" - }, - "properties": [ - { - "$id": "791", + } + ] + }, + { + "$id": "407", + "kind": "model", + "name": "CreateConversationRequest1", + "namespace": "", + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.createConversation.Request.anonymous", + "usage": "Spread,Json", + "decorators": [], + "properties": [ + { + "$id": "408", "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "Message notification type is image.", + "name": "conversation", + "serializedName": "conversation", + "doc": "The conversation details.", "type": { - "$ref": "215" + "$ref": "370" }, "optional": false, "readOnly": false, - "discriminator": true, + "discriminator": false, "flatten": false, "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ImageConversationMessageContent.kind", + "crossLanguageDefinitionId": "createConversation.Request.anonymous.conversation", "serializationOptions": { - "$id": "792", - "json": { - "$id": "793", - "name": "kind" - } + "json": { + "name": "conversation" + } } - }, - { - "$id": "794", + }, + { + "$id": "409", "kind": "property", - "name": "caption", - "serializedName": "caption", - "doc": "Optional text content.", + "name": "initialMessage", + "serializedName": "initialMessage", + "doc": "An initial message within the conversation.", "type": { - "$id": "795", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$ref": "404" }, "optional": true, "readOnly": false, "discriminator": false, "flatten": false, "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ImageConversationMessageContent.caption", + "crossLanguageDefinitionId": "createConversation.Request.anonymous.initialMessage", "serializationOptions": { - "$id": "796", - "json": { - "$id": "797", - "name": "caption" - } + "json": { + "name": "initialMessage" + } } - }, - { - "$id": "798", + } + ] + }, + { + "$id": "410", + "kind": "model", + "name": "PagedConversation", + "namespace": "Azure.Communication.Messages", + "crossLanguageDefinitionId": "Azure.Core.Foundations.CustomPage", + "usage": "Output,Json", + "doc": "Paged collection of Conversation items", + "decorators": [], + "properties": [ + { + "$id": "411", "kind": "property", - "name": "mediaUri", - "serializedName": "mediaUri", - "doc": "A media url for the file. Required if the type is one of the supported media types, e.g. image", + "name": "value", + "serializedName": "value", + "doc": "The Conversation items on this page", "type": { - "$id": "799", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url", - "decorators": [] + "$id": "412", + "kind": "array", + "name": "ArrayConversation", + "valueType": { + "$ref": "370" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] }, "optional": false, "readOnly": false, "discriminator": false, "flatten": false, "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ImageConversationMessageContent.mediaUri", + "crossLanguageDefinitionId": "Azure.Core.Foundations.CustomPage.value", "serializationOptions": { - "$id": "800", - "json": { - "$id": "801", - "name": "mediaUri" - } + "json": { + "name": "value" + } } - } - ] - }, - "document": { - "$id": "802", - "kind": "model", - "name": "DocumentConversationMessageContent", - "namespace": "Azure.Communication.Messages", - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.DocumentConversationMessageContent", - "usage": "Input,Output,Json", - "doc": "A request to send a document conversation message.", - "discriminatorValue": "document", - "decorators": [], - "baseModel": { - "$ref": "777" }, - "properties": [ - { - "$id": "803", + { + "$id": "413", "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "Message notification type is document.", + "name": "nextLink", + "serializedName": "nextLink", + "doc": "The link to the next page of items", "type": { - "$ref": "229" + "$id": "414", + "kind": "url", + "name": "ResourceLocation", + "crossLanguageDefinitionId": "TypeSpec.Rest.ResourceLocation", + "baseType": { + "$id": "415", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url", + "decorators": [] + }, + "decorators": [] }, - "optional": false, + "optional": true, "readOnly": false, - "discriminator": true, + "discriminator": false, "flatten": false, "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.DocumentConversationMessageContent.kind", + "crossLanguageDefinitionId": "Azure.Core.Foundations.CustomPage.nextLink", "serializationOptions": { - "$id": "804", - "json": { - "$id": "805", - "name": "kind" - } + "json": { + "name": "nextLink" + } } - }, - { - "$id": "806", - "kind": "property", - "name": "caption", - "serializedName": "caption", - "doc": "Optional text content.", + }, + { + "$id": "416", + "kind": "header", + "name": "clientRequestId", + "serializedName": "x-ms-client-request-id", + "doc": "An opaque, globally-unique, client-generated string identifier for the request.", "type": { - "$id": "807", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "417", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "418", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] }, "optional": true, "readOnly": false, - "discriminator": false, - "flatten": false, "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.DocumentConversationMessageContent.caption", - "serializationOptions": { - "$id": "808", - "json": { - "$id": "809", - "name": "caption" - } - } - }, - { - "$id": "810", + "crossLanguageDefinitionId": "Azure.Core.Foundations.CustomPage.clientRequestId", + "correspondingMethodParams": [] + } + ] + }, + { + "$id": "419", + "kind": "model", + "name": "PagedConversationMessageItem", + "namespace": "Azure.Communication.Messages", + "crossLanguageDefinitionId": "Azure.Core.Foundations.CustomPage", + "usage": "Output,Json", + "doc": "Paged collection of ConversationMessageItem items", + "decorators": [], + "properties": [ + { + "$id": "420", "kind": "property", - "name": "fileName", - "serializedName": "fileName", - "doc": "Optional name for the file.", + "name": "value", + "serializedName": "value", + "doc": "The ConversationMessageItem items on this page", "type": { - "$id": "811", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "421", + "kind": "array", + "name": "ArrayConversationMessageItem", + "valueType": { + "$id": "422", + "kind": "model", + "name": "ConversationMessageItem", + "namespace": "Azure.Communication.Messages", + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ConversationMessageItem", + "usage": "Output,Json", + "doc": "The conversation message as returned from the service.", + "decorators": [], + "properties": [ + { + "$id": "423", + "kind": "property", + "name": "id", + "serializedName": "id", + "doc": "Message ID.", + "type": { + "$id": "424", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ConversationMessageItem.id", + "serializationOptions": { + "json": { + "name": "id" + } + } + }, + { + "$id": "425", + "kind": "property", + "name": "sequenceId", + "serializedName": "sequenceId", + "doc": "Message sequence ID.", + "type": { + "$id": "426", + "kind": "int64", + "name": "int64", + "crossLanguageDefinitionId": "TypeSpec.int64", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ConversationMessageItem.sequenceId", + "serializationOptions": { + "json": { + "name": "sequenceId" + } + } + }, + { + "$id": "427", + "kind": "property", + "name": "message", + "serializedName": "message", + "doc": "Payload of a threaded conversation message.", + "type": { + "$id": "428", + "kind": "model", + "name": "ConversationMessageContent", + "namespace": "Azure.Communication.Messages", + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ConversationMessageContent", + "usage": "Input,Output,Json", + "doc": "Details of the conversation message content.", + "decorators": [], + "discriminatorProperty": { + "$id": "429", + "kind": "property", + "name": "kind", + "serializedName": "kind", + "doc": "The type discriminator describing a message type.", + "type": { + "$ref": "1" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ConversationMessageContent.kind", + "serializationOptions": { + "json": { + "name": "kind" + } + } + }, + "properties": [ + { + "$ref": "429" + } + ], + "discriminatedSubtypes": { + "text": { + "$id": "430", + "kind": "model", + "name": "TextConversationMessageContent", + "namespace": "Azure.Communication.Messages", + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.TextConversationMessageContent", + "usage": "Input,Output,Json", + "doc": "A request to send a text conversation message.", + "discriminatorValue": "text", + "decorators": [], + "baseModel": { + "$ref": "428" + }, + "properties": [ + { + "$id": "431", + "kind": "property", + "name": "kind", + "serializedName": "kind", + "doc": "Message notification type is text.", + "type": { + "$ref": "3" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.TextConversationMessageContent.kind", + "serializationOptions": { + "json": { + "name": "kind" + } + } + }, + { + "$id": "432", + "kind": "property", + "name": "content", + "serializedName": "content", + "doc": "Message content.", + "type": { + "$id": "433", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.TextConversationMessageContent.content", + "serializationOptions": { + "json": { + "name": "content" + } + } + } + ] + }, + "image": { + "$id": "434", + "kind": "model", + "name": "ImageConversationMessageContent", + "namespace": "Azure.Communication.Messages", + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ImageConversationMessageContent", + "usage": "Input,Output,Json", + "doc": "A request to send an image conversation message.", + "discriminatorValue": "image", + "decorators": [], + "baseModel": { + "$ref": "428" + }, + "properties": [ + { + "$id": "435", + "kind": "property", + "name": "kind", + "serializedName": "kind", + "doc": "Message notification type is image.", + "type": { + "$ref": "4" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ImageConversationMessageContent.kind", + "serializationOptions": { + "json": { + "name": "kind" + } + } + }, + { + "$id": "436", + "kind": "property", + "name": "caption", + "serializedName": "caption", + "doc": "Optional text content.", + "type": { + "$id": "437", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ImageConversationMessageContent.caption", + "serializationOptions": { + "json": { + "name": "caption" + } + } + }, + { + "$id": "438", + "kind": "property", + "name": "mediaUri", + "serializedName": "mediaUri", + "doc": "A media url for the file. Required if the type is one of the supported media types, e.g. image", + "type": { + "$id": "439", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ImageConversationMessageContent.mediaUri", + "serializationOptions": { + "json": { + "name": "mediaUri" + } + } + } + ] + }, + "document": { + "$id": "440", + "kind": "model", + "name": "DocumentConversationMessageContent", + "namespace": "Azure.Communication.Messages", + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.DocumentConversationMessageContent", + "usage": "Input,Output,Json", + "doc": "A request to send a document conversation message.", + "discriminatorValue": "document", + "decorators": [], + "baseModel": { + "$ref": "428" + }, + "properties": [ + { + "$id": "441", + "kind": "property", + "name": "kind", + "serializedName": "kind", + "doc": "Message notification type is document.", + "type": { + "$ref": "6" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.DocumentConversationMessageContent.kind", + "serializationOptions": { + "json": { + "name": "kind" + } + } + }, + { + "$id": "442", + "kind": "property", + "name": "caption", + "serializedName": "caption", + "doc": "Optional text content.", + "type": { + "$id": "443", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.DocumentConversationMessageContent.caption", + "serializationOptions": { + "json": { + "name": "caption" + } + } + }, + { + "$id": "444", + "kind": "property", + "name": "fileName", + "serializedName": "fileName", + "doc": "Optional name for the file.", + "type": { + "$id": "445", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.DocumentConversationMessageContent.fileName", + "serializationOptions": { + "json": { + "name": "fileName" + } + } + }, + { + "$id": "446", + "kind": "property", + "name": "mediaUri", + "serializedName": "mediaUri", + "doc": "A media url for the file. Required if the type is one of the supported media types, e.g. image", + "type": { + "$id": "447", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.DocumentConversationMessageContent.mediaUri", + "serializationOptions": { + "json": { + "name": "mediaUri" + } + } + } + ] + }, + "video": { + "$id": "448", + "kind": "model", + "name": "VideoConversationMessageContent", + "namespace": "Azure.Communication.Messages", + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.VideoConversationMessageContent", + "usage": "Input,Output,Json", + "doc": "A request to send a video conversation message.", + "discriminatorValue": "video", + "decorators": [], + "baseModel": { + "$ref": "428" + }, + "properties": [ + { + "$id": "449", + "kind": "property", + "name": "kind", + "serializedName": "kind", + "doc": "Message notification type is video.", + "type": { + "$ref": "7" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.VideoConversationMessageContent.kind", + "serializationOptions": { + "json": { + "name": "kind" + } + } + }, + { + "$id": "450", + "kind": "property", + "name": "caption", + "serializedName": "caption", + "doc": "Optional text content.", + "type": { + "$id": "451", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.VideoConversationMessageContent.caption", + "serializationOptions": { + "json": { + "name": "caption" + } + } + }, + { + "$id": "452", + "kind": "property", + "name": "mediaUri", + "serializedName": "mediaUri", + "doc": "A media url for the file. Required if the type is one of the supported media types, e.g. image", + "type": { + "$id": "453", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.VideoConversationMessageContent.mediaUri", + "serializationOptions": { + "json": { + "name": "mediaUri" + } + } + } + ] + }, + "audio": { + "$id": "454", + "kind": "model", + "name": "AudioConversationMessageContent", + "namespace": "Azure.Communication.Messages", + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.AudioConversationMessageContent", + "usage": "Input,Output,Json", + "doc": "A request to send an audio conversation message.", + "discriminatorValue": "audio", + "decorators": [], + "baseModel": { + "$ref": "428" + }, + "properties": [ + { + "$id": "455", + "kind": "property", + "name": "kind", + "serializedName": "kind", + "doc": "Message notification type is audio.", + "type": { + "$ref": "8" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.AudioConversationMessageContent.kind", + "serializationOptions": { + "json": { + "name": "kind" + } + } + }, + { + "$id": "456", + "kind": "property", + "name": "mediaUri", + "serializedName": "mediaUri", + "doc": "A media url for the file. Required if the type is one of the supported media types, e.g. image", + "type": { + "$id": "457", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.AudioConversationMessageContent.mediaUri", + "serializationOptions": { + "json": { + "name": "mediaUri" + } + } + } + ] + }, + "template": { + "$id": "458", + "kind": "model", + "name": "TemplateConversationMessageContent", + "namespace": "Azure.Communication.Messages", + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.TemplateConversationMessageContent", + "usage": "Input,Output,Json", + "doc": "A request to send a template conversation message.", + "discriminatorValue": "template", + "decorators": [], + "baseModel": { + "$ref": "428" + }, + "properties": [ + { + "$id": "459", + "kind": "property", + "name": "kind", + "serializedName": "kind", + "doc": "Message notification type is template.", + "type": { + "$ref": "9" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.TemplateConversationMessageContent.kind", + "serializationOptions": { + "json": { + "name": "kind" + } + } + }, + { + "$id": "460", + "kind": "property", + "name": "template", + "serializedName": "template", + "doc": "The template object used to create templates.", + "type": { + "$ref": "251" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.TemplateConversationMessageContent.template", + "serializationOptions": { + "json": { + "name": "template" + } + } + } + ] + } + } + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ConversationMessageItem.message", + "serializationOptions": { + "json": { + "name": "message" + } + } + }, + { + "$id": "461", + "kind": "property", + "name": "senderDisplayName", + "serializedName": "senderDisplayName", + "doc": "The display name of the message sender.", + "type": { + "$id": "462", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ConversationMessageItem.senderDisplayName", + "serializationOptions": { + "json": { + "name": "senderDisplayName" + } + } + }, + { + "$id": "463", + "kind": "property", + "name": "senderCommunicationIdentifier", + "serializedName": "senderCommunicationIdentifier", + "doc": "The communication identifier of the message sender.", + "type": { + "$id": "464", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ConversationMessageItem.senderCommunicationIdentifier", + "serializationOptions": { + "json": { + "name": "senderCommunicationIdentifier" + } + } + }, + { + "$id": "465", + "kind": "property", + "name": "createdOn", + "serializedName": "createdOn", + "doc": "Timestamp when the message is sent.", + "type": { + "$id": "466", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc3339", + "wireType": { + "$id": "467", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ConversationMessageItem.createdOn", + "serializationOptions": { + "json": { + "name": "createdOn" + } + } + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] }, - "optional": true, + "optional": false, "readOnly": false, "discriminator": false, "flatten": false, "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.DocumentConversationMessageContent.fileName", + "crossLanguageDefinitionId": "Azure.Core.Foundations.CustomPage.value", "serializationOptions": { - "$id": "812", - "json": { - "$id": "813", - "name": "fileName" - } + "json": { + "name": "value" + } } - }, - { - "$id": "814", + }, + { + "$id": "468", "kind": "property", - "name": "mediaUri", - "serializedName": "mediaUri", - "doc": "A media url for the file. Required if the type is one of the supported media types, e.g. image", + "name": "nextLink", + "serializedName": "nextLink", + "doc": "The link to the next page of items", "type": { - "$id": "815", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url", - "decorators": [] + "$id": "469", + "kind": "url", + "name": "ResourceLocation", + "crossLanguageDefinitionId": "TypeSpec.Rest.ResourceLocation", + "baseType": { + "$id": "470", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url", + "decorators": [] + }, + "decorators": [] }, - "optional": false, + "optional": true, "readOnly": false, "discriminator": false, "flatten": false, "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.DocumentConversationMessageContent.mediaUri", + "crossLanguageDefinitionId": "Azure.Core.Foundations.CustomPage.nextLink", "serializationOptions": { - "$id": "816", - "json": { - "$id": "817", - "name": "mediaUri" - } + "json": { + "name": "nextLink" + } } - } - ] - }, - "video": { - "$id": "818", - "kind": "model", - "name": "VideoConversationMessageContent", - "namespace": "Azure.Communication.Messages", - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.VideoConversationMessageContent", - "usage": "Input,Output,Json", - "doc": "A request to send a video conversation message.", - "discriminatorValue": "video", - "decorators": [], - "baseModel": { - "$ref": "777" }, - "properties": [ - { - "$id": "819", + { + "$id": "471", + "kind": "header", + "name": "clientRequestId", + "serializedName": "x-ms-client-request-id", + "doc": "An opaque, globally-unique, client-generated string identifier for the request.", + "type": { + "$id": "472", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "473", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "optional": true, + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Core.Foundations.CustomPage.clientRequestId", + "correspondingMethodParams": [] + } + ] + }, + { + "$ref": "422" + }, + { + "$ref": "428" + }, + { + "$ref": "430" + }, + { + "$ref": "434" + }, + { + "$ref": "440" + }, + { + "$ref": "448" + }, + { + "$ref": "454" + }, + { + "$ref": "458" + }, + { + "$id": "474", + "kind": "model", + "name": "AddParticipantsOptions", + "namespace": "Azure.Communication.Messages", + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.AddParticipantsOptions", + "usage": "Input,Json", + "doc": "Request payload for adding participants to a conversation.", + "decorators": [], + "properties": [ + { + "$id": "475", "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "Message notification type is video.", + "name": "participants", + "serializedName": "participants", + "doc": "List of participants to add.", "type": { - "$ref": "247" + "$ref": "378" }, "optional": false, "readOnly": false, - "discriminator": true, + "discriminator": false, "flatten": false, "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.VideoConversationMessageContent.kind", + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.AddParticipantsOptions.participants", "serializationOptions": { - "$id": "820", - "json": { - "$id": "821", - "name": "kind" - } + "json": { + "name": "participants" + } } - }, - { - "$id": "822", + } + ] + }, + { + "$id": "476", + "kind": "model", + "name": "AddParticipantsResult", + "namespace": "Azure.Communication.Messages", + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.AddParticipantsResult", + "usage": "Output,Json", + "doc": "Response for the add participants operation.", + "decorators": [], + "properties": [ + { + "$id": "477", "kind": "property", - "name": "caption", - "serializedName": "caption", - "doc": "Optional text content.", + "name": "invalidParticipants", + "serializedName": "invalidParticipants", + "doc": "List of Ids with Errors if failed to be added", "type": { - "$id": "823", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "478", + "kind": "array", + "name": "ArrayUpdateParticipantsResult", + "valueType": { + "$id": "479", + "kind": "model", + "name": "UpdateParticipantsResult", + "namespace": "Azure.Communication.Messages", + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.UpdateParticipantsResult", + "usage": "Output,Json", + "doc": "Response for the remove participants operation.", + "decorators": [], + "properties": [ + { + "$id": "480", + "kind": "property", + "name": "id", + "serializedName": "id", + "doc": "Participant User Id.", + "type": { + "$id": "481", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.UpdateParticipantsResult.id", + "serializationOptions": { + "json": { + "name": "id" + } + } + }, + { + "$id": "482", + "kind": "property", + "name": "error", + "serializedName": "error", + "doc": "Error of the participant operation.", + "type": { + "$ref": "334" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.UpdateParticipantsResult.error", + "serializationOptions": { + "json": { + "name": "error" + } + } + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] }, - "optional": true, + "optional": false, "readOnly": false, "discriminator": false, "flatten": false, "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.VideoConversationMessageContent.caption", + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.AddParticipantsResult.invalidParticipants", "serializationOptions": { - "$id": "824", - "json": { - "$id": "825", - "name": "caption" - } + "json": { + "name": "invalidParticipants" + } } - }, - { - "$id": "826", + } + ] + }, + { + "$ref": "479" + }, + { + "$id": "483", + "kind": "model", + "name": "RemoveParticipantsOptions", + "namespace": "Azure.Communication.Messages", + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.RemoveParticipantsOptions", + "usage": "Input,Json", + "doc": "Request payload for removing participants from a conversation.", + "decorators": [], + "properties": [ + { + "$id": "484", "kind": "property", - "name": "mediaUri", - "serializedName": "mediaUri", - "doc": "A media url for the file. Required if the type is one of the supported media types, e.g. image", + "name": "participantIds", + "serializedName": "participantIds", + "doc": "The participant IDs to remove.", "type": { - "$id": "827", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url", - "decorators": [] + "$ref": "132" }, "optional": false, "readOnly": false, "discriminator": false, "flatten": false, "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.VideoConversationMessageContent.mediaUri", + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.RemoveParticipantsOptions.participantIds", "serializationOptions": { - "$id": "828", - "json": { - "$id": "829", - "name": "mediaUri" - } + "json": { + "name": "participantIds" + } } - } - ] - }, - "audio": { - "$id": "830", - "kind": "model", - "name": "AudioConversationMessageContent", - "namespace": "Azure.Communication.Messages", - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.AudioConversationMessageContent", - "usage": "Input,Output,Json", - "doc": "A request to send an audio conversation message.", - "discriminatorValue": "audio", - "decorators": [], - "baseModel": { - "$ref": "777" - }, - "properties": [ - { - "$id": "831", + } + ] + }, + { + "$id": "485", + "kind": "model", + "name": "RemoveParticipantsResult", + "namespace": "Azure.Communication.Messages", + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.RemoveParticipantsResult", + "usage": "Output,Json", + "doc": "Response for the remove participants operation.", + "decorators": [], + "properties": [ + { + "$id": "486", "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "Message notification type is audio.", + "name": "invalidParticipants", + "serializedName": "invalidParticipants", + "doc": "List of Ids with Errors if failed to be added", "type": { - "$ref": "261" + "$ref": "478" }, "optional": false, "readOnly": false, - "discriminator": true, + "discriminator": false, "flatten": false, "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.AudioConversationMessageContent.kind", + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.RemoveParticipantsResult.invalidParticipants", "serializationOptions": { - "$id": "832", - "json": { - "$id": "833", - "name": "kind" - } + "json": { + "name": "invalidParticipants" + } } - }, - { - "$id": "834", + } + ] + }, + { + "$id": "487", + "kind": "model", + "name": "GetConversationThreadAnalysisResult", + "namespace": "Azure.Communication.Messages", + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.GetConversationThreadAnalysisResult", + "usage": "Output,Json", + "doc": "Result of the get conversation messages AI Analysis operation.", + "decorators": [], + "properties": [ + { + "$id": "488", "kind": "property", - "name": "mediaUri", - "serializedName": "mediaUri", - "doc": "A media url for the file. Required if the type is one of the supported media types, e.g. image", + "name": "summary", + "serializedName": "summary", + "doc": "The AI summary of the conversation messages.", "type": { - "$id": "835", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url", - "decorators": [] + "$id": "489", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, "optional": false, "readOnly": false, "discriminator": false, "flatten": false, "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.AudioConversationMessageContent.mediaUri", + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.GetConversationThreadAnalysisResult.summary", "serializationOptions": { - "$id": "836", - "json": { - "$id": "837", - "name": "mediaUri" - } + "json": { + "name": "summary" + } } - } - ] - }, - "template": { - "$id": "838", - "kind": "model", - "name": "TemplateConversationMessageContent", - "namespace": "Azure.Communication.Messages", - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.TemplateConversationMessageContent", - "usage": "Input,Output,Json", - "doc": "A request to send a template conversation message.", - "discriminatorValue": "template", - "decorators": [], - "baseModel": { - "$ref": "777" - }, - "properties": [ - { - "$id": "839", + } + ] + }, + { + "$id": "490", + "kind": "model", + "name": "SendConversationMessageOptions", + "namespace": "Azure.Communication.Messages", + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.SendConversationMessageOptions", + "usage": "Input,Json", + "doc": "Request payload for sending a conversation message.", + "decorators": [], + "properties": [ + { + "$id": "491", "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "Message notification type is template.", + "name": "request", + "serializedName": "request", + "doc": "Details of a send conversation message request.", "type": { - "$ref": "463" + "$ref": "428" }, "optional": false, "readOnly": false, - "discriminator": true, + "discriminator": false, "flatten": false, "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.TemplateConversationMessageContent.kind", + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.SendConversationMessageOptions.request", "serializationOptions": { - "$id": "840", - "json": { - "$id": "841", - "name": "kind" - } + "json": { + "name": "request" + } } - }, - { - "$id": "842", + }, + { + "$id": "492", "kind": "property", - "name": "template", - "serializedName": "template", - "doc": "The template object used to create templates.", + "name": "outboundDeliveryStrategy", + "serializedName": "outboundDeliveryStrategy", + "doc": "The options of the outbound delivery strategy for messages sent by participants in a conversation.\r\nSupports internalOnly, allChannels.", "type": { - "$ref": "468" + "$ref": "51" }, - "optional": false, + "optional": true, "readOnly": false, "discriminator": false, "flatten": false, "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.TemplateConversationMessageContent.template", + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.SendConversationMessageOptions.outboundDeliveryStrategy", "serializationOptions": { - "$id": "843", - "json": { - "$id": "844", - "name": "template" - } - } - } - ] - } - } - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ConversationMessageItem.message", - "serializationOptions": { - "$id": "845", - "json": { - "$id": "846", - "name": "message" - } - } - }, - { - "$id": "847", - "kind": "property", - "name": "senderDisplayName", - "serializedName": "senderDisplayName", - "doc": "The display name of the message sender.", - "type": { - "$id": "848", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ConversationMessageItem.senderDisplayName", - "serializationOptions": { - "$id": "849", - "json": { - "$id": "850", - "name": "senderDisplayName" - } - } - }, - { - "$id": "851", - "kind": "property", - "name": "senderCommunicationIdentifier", - "serializedName": "senderCommunicationIdentifier", - "doc": "The communication identifier of the message sender.", - "type": { - "$id": "852", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ConversationMessageItem.senderCommunicationIdentifier", - "serializationOptions": { - "$id": "853", - "json": { - "$id": "854", - "name": "senderCommunicationIdentifier" - } - } - }, - { - "$id": "855", - "kind": "property", - "name": "createdOn", - "serializedName": "createdOn", - "doc": "Timestamp when the message is sent.", - "type": { - "$id": "856", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc3339", - "wireType": { - "$id": "857", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ConversationMessageItem.createdOn", - "serializationOptions": { - "$id": "858", - "json": { - "$id": "859", - "name": "createdOn" - } - } - } - ] - }, - { - "$ref": "777" - }, - { - "$ref": "782" - }, - { - "$ref": "790" - }, - { - "$ref": "802" - }, - { - "$ref": "818" - }, - { - "$ref": "830" - }, - { - "$ref": "838" - }, - { - "$id": "860", - "kind": "model", - "name": "AddParticipantsOptions", - "namespace": "Azure.Communication.Messages", - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.AddParticipantsOptions", - "usage": "Input,Json", - "doc": "Request payload for adding participants to a conversation.", - "decorators": [], - "properties": [ - { - "$id": "861", - "kind": "property", - "name": "participants", - "serializedName": "participants", - "doc": "List of participants to add.", - "type": { - "$ref": "689" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.AddParticipantsOptions.participants", - "serializationOptions": { - "$id": "862", - "json": { - "$id": "863", - "name": "participants" - } - } - } - ] - }, - { - "$id": "864", - "kind": "model", - "name": "AddParticipantsResult", - "namespace": "Azure.Communication.Messages", - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.AddParticipantsResult", - "usage": "Output,Json", - "doc": "Response for the add participants operation.", - "decorators": [], - "properties": [ - { - "$id": "865", - "kind": "property", - "name": "invalidParticipants", - "serializedName": "invalidParticipants", - "doc": "List of Ids with Errors if failed to be added", - "type": { - "$id": "866", - "kind": "array", - "name": "ArrayUpdateParticipantsResult", - "valueType": { - "$id": "867", - "kind": "model", - "name": "UpdateParticipantsResult", - "namespace": "Azure.Communication.Messages", - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.UpdateParticipantsResult", - "usage": "Output,Json", - "doc": "Response for the remove participants operation.", - "decorators": [], - "properties": [ - { - "$id": "868", - "kind": "property", - "name": "id", - "serializedName": "id", - "doc": "Participant User Id.", - "type": { - "$id": "869", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.UpdateParticipantsResult.id", - "serializationOptions": { - "$id": "870", - "json": { - "$id": "871", - "name": "id" - } - } - }, - { - "$id": "872", - "kind": "property", - "name": "error", - "serializedName": "error", - "doc": "Error of the participant operation.", - "type": { - "$id": "873", - "kind": "model", - "name": "Error", - "namespace": "Azure.Communication.Messages", - "crossLanguageDefinitionId": "Azure.Core.Foundations.Error", - "usage": "Output,Json,Exception", - "doc": "The error object.", - "decorators": [], - "properties": [ - { - "$id": "874", - "kind": "property", - "name": "code", - "serializedName": "code", - "doc": "One of a server-defined set of error codes.", - "type": { - "$id": "875", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Core.Foundations.Error.code", - "serializationOptions": { - "$id": "876", - "json": { - "$id": "877", - "name": "code" - } - } - }, - { - "$id": "878", - "kind": "property", - "name": "message", - "serializedName": "message", - "doc": "A human-readable representation of the error.", - "type": { - "$id": "879", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Core.Foundations.Error.message", - "serializationOptions": { - "$id": "880", - "json": { - "$id": "881", - "name": "message" - } - } - }, - { - "$id": "882", - "kind": "property", - "name": "target", - "serializedName": "target", - "doc": "The target of the error.", - "type": { - "$id": "883", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Core.Foundations.Error.target", - "serializationOptions": { - "$id": "884", - "json": { - "$id": "885", - "name": "target" - } - } - }, - { - "$id": "886", - "kind": "property", - "name": "details", - "serializedName": "details", - "doc": "An array of details about specific errors that led to this reported error.", - "type": { - "$id": "887", - "kind": "array", - "name": "ArrayError", - "valueType": { - "$ref": "873" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Core.Foundations.Error.details", - "serializationOptions": { - "$id": "888", - "json": { - "$id": "889", - "name": "details" - } - } - }, - { - "$id": "890", - "kind": "property", - "name": "innererror", - "serializedName": "innererror", - "doc": "An object containing more specific information than the current object about the error.", - "type": { - "$id": "891", - "kind": "model", - "name": "InnerError", - "namespace": "Azure.Communication.Messages", - "crossLanguageDefinitionId": "Azure.Core.Foundations.InnerError", - "usage": "Output,Json,Exception", - "doc": "An object containing more specific information about the error. As per Microsoft One API guidelines - https://github.com/microsoft/api-guidelines/blob/vNext/azure/Guidelines.md#handling-errors.", - "decorators": [], - "properties": [ - { - "$id": "892", - "kind": "property", - "name": "code", - "serializedName": "code", - "doc": "One of a server-defined set of error codes.", - "type": { - "$id": "893", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Core.Foundations.InnerError.code", - "serializationOptions": { - "$id": "894", - "json": { - "$id": "895", - "name": "code" - } - } - }, - { - "$id": "896", - "kind": "property", - "name": "innererror", - "serializedName": "innererror", - "doc": "Inner error.", - "type": { - "$ref": "891" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Core.Foundations.InnerError.innererror", - "serializationOptions": { - "$id": "897", - "json": { - "$id": "898", - "name": "innererror" - } - } - } - ] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Core.Foundations.Error.innererror", - "serializationOptions": { - "$id": "899", - "json": { - "$id": "900", - "name": "innererror" - } + "json": { + "name": "outboundDeliveryStrategy" } - } - ] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.UpdateParticipantsResult.error", - "serializationOptions": { - "$id": "901", - "json": { - "$id": "902", - "name": "error" } - } } - ] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.AddParticipantsResult.invalidParticipants", - "serializationOptions": { - "$id": "903", - "json": { - "$id": "904", - "name": "invalidParticipants" - } - } - } - ] - }, - { - "$ref": "867" - }, - { - "$ref": "873" - }, - { - "$ref": "891" - }, - { - "$id": "905", - "kind": "model", - "name": "RemoveParticipantsOptions", - "namespace": "Azure.Communication.Messages", - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.RemoveParticipantsOptions", - "usage": "Input,Json", - "doc": "Request payload for removing participants from a conversation.", - "decorators": [], - "properties": [ - { - "$id": "906", - "kind": "property", - "name": "participantIds", - "serializedName": "participantIds", - "doc": "The participant IDs to remove.", - "type": { - "$ref": "184" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.RemoveParticipantsOptions.participantIds", - "serializationOptions": { - "$id": "907", - "json": { - "$id": "908", - "name": "participantIds" - } - } - } - ] - }, - { - "$id": "909", - "kind": "model", - "name": "RemoveParticipantsResult", - "namespace": "Azure.Communication.Messages", - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.RemoveParticipantsResult", - "usage": "Output,Json", - "doc": "Response for the remove participants operation.", - "decorators": [], - "properties": [ - { - "$id": "910", - "kind": "property", - "name": "invalidParticipants", - "serializedName": "invalidParticipants", - "doc": "List of Ids with Errors if failed to be added", - "type": { - "$ref": "866" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.RemoveParticipantsResult.invalidParticipants", - "serializationOptions": { - "$id": "911", - "json": { - "$id": "912", - "name": "invalidParticipants" - } - } - } - ] - }, - { - "$id": "913", - "kind": "model", - "name": "GetConversationThreadAnalysisResult", - "namespace": "Azure.Communication.Messages", - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.GetConversationThreadAnalysisResult", - "usage": "Output,Json", - "doc": "Result of the get conversation messages AI Analysis operation.", - "decorators": [], - "properties": [ - { - "$id": "914", - "kind": "property", - "name": "summary", - "serializedName": "summary", - "doc": "The AI summary of the conversation messages.", - "type": { - "$id": "915", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.GetConversationThreadAnalysisResult.summary", - "serializationOptions": { - "$id": "916", - "json": { - "$id": "917", - "name": "summary" - } - } - } - ] - }, - { - "$id": "918", - "kind": "model", - "name": "SendConversationMessageOptions", - "namespace": "Azure.Communication.Messages", - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.SendConversationMessageOptions", - "usage": "Input,Json", - "doc": "Request payload for sending a conversation message.", - "decorators": [], - "properties": [ - { - "$id": "919", - "kind": "property", - "name": "request", - "serializedName": "request", - "doc": "Details of a send conversation message request.", - "type": { - "$ref": "777" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.SendConversationMessageOptions.request", - "serializationOptions": { - "$id": "920", - "json": { - "$id": "921", - "name": "request" - } - } - }, - { - "$id": "922", - "kind": "property", - "name": "outboundDeliveryStrategy", - "serializedName": "outboundDeliveryStrategy", - "doc": "The options of the outbound delivery strategy for messages sent by participants in a conversation.\r\nSupports internalOnly, allChannels.", - "type": { - "$ref": "96" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.SendConversationMessageOptions.outboundDeliveryStrategy", - "serializationOptions": { - "$id": "923", - "json": { - "$id": "924", - "name": "outboundDeliveryStrategy" - } - } - } - ] - }, - { - "$id": "925", - "kind": "model", - "name": "SendConversationMessageResult", - "namespace": "Azure.Communication.Messages", - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.SendConversationMessageResult", - "usage": "Output,Json", - "doc": "Result of the send conversation message operation.", - "decorators": [], - "properties": [ - { - "$id": "926", - "kind": "property", - "name": "messageId", - "serializedName": "messageId", - "doc": "A server-generated Advanced Messaging conversation message id.", - "type": { - "$id": "927", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.SendConversationMessageResult.messageId", - "serializationOptions": { - "$id": "928", - "json": { - "$id": "929", - "name": "messageId" - } - } - } - ] - }, - { - "$id": "930", - "kind": "model", - "name": "PagedMessageTemplateItem", - "namespace": "Azure.Communication.Messages", - "crossLanguageDefinitionId": "Azure.Core.Foundations.CustomPage", - "usage": "Output,Json", - "doc": "Paged collection of MessageTemplateItem items", - "decorators": [], - "properties": [ - { - "$id": "931", - "kind": "property", - "name": "value", - "serializedName": "value", - "doc": "The MessageTemplateItem items on this page", - "type": { - "$id": "932", - "kind": "array", - "name": "ArrayMessageTemplateItem", - "valueType": { - "$ref": "647" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Core.Foundations.CustomPage.value", - "serializationOptions": { - "$id": "933", - "json": { - "$id": "934", - "name": "value" - } - } - }, - { - "$id": "935", - "kind": "property", - "name": "nextLink", - "serializedName": "nextLink", - "doc": "The link to the next page of items", - "type": { - "$id": "936", - "kind": "url", - "name": "ResourceLocation", - "crossLanguageDefinitionId": "TypeSpec.Rest.ResourceLocation", - "baseType": { - "$id": "937", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url", - "decorators": [] - }, - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Core.Foundations.CustomPage.nextLink", - "serializationOptions": { - "$id": "938", - "json": { - "$id": "939", - "name": "nextLink" - } - } - }, - { - "$id": "940", - "kind": "header", - "name": "clientRequestId", - "serializedName": "x-ms-client-request-id", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "941", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "942", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "decorators": [] - }, - "optional": true, - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Core.Foundations.CustomPage.clientRequestId", - "correspondingMethodParams": [] - } - ] - }, - { - "$id": "943", - "kind": "model", - "name": "PagedConversation", - "namespace": "Azure.Communication.Messages", - "crossLanguageDefinitionId": "Azure.Core.Foundations.CustomPage", - "usage": "Output,Json", - "doc": "Paged collection of Conversation items", - "decorators": [], - "properties": [ - { - "$id": "944", - "kind": "property", - "name": "value", - "serializedName": "value", - "doc": "The Conversation items on this page", - "type": { - "$id": "945", - "kind": "array", - "name": "ArrayConversation", - "valueType": { - "$ref": "673" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Core.Foundations.CustomPage.value", - "serializationOptions": { - "$id": "946", - "json": { - "$id": "947", - "name": "value" - } - } - }, - { - "$id": "948", - "kind": "property", - "name": "nextLink", - "serializedName": "nextLink", - "doc": "The link to the next page of items", - "type": { - "$id": "949", - "kind": "url", - "name": "ResourceLocation", - "crossLanguageDefinitionId": "TypeSpec.Rest.ResourceLocation", - "baseType": { - "$id": "950", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url", - "decorators": [] - }, - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Core.Foundations.CustomPage.nextLink", - "serializationOptions": { - "$id": "951", - "json": { - "$id": "952", - "name": "nextLink" - } - } - }, - { - "$id": "953", - "kind": "header", - "name": "clientRequestId", - "serializedName": "x-ms-client-request-id", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "954", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "955", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "decorators": [] - }, - "optional": true, - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Core.Foundations.CustomPage.clientRequestId", - "correspondingMethodParams": [] - } - ] - }, - { - "$id": "956", - "kind": "model", - "name": "PagedConversationMessageItem", - "namespace": "Azure.Communication.Messages", - "crossLanguageDefinitionId": "Azure.Core.Foundations.CustomPage", - "usage": "Output,Json", - "doc": "Paged collection of ConversationMessageItem items", - "decorators": [], - "properties": [ - { - "$id": "957", - "kind": "property", - "name": "value", - "serializedName": "value", - "doc": "The ConversationMessageItem items on this page", - "type": { - "$id": "958", - "kind": "array", - "name": "ArrayConversationMessageItem", - "valueType": { - "$ref": "767" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Core.Foundations.CustomPage.value", - "serializationOptions": { - "$id": "959", - "json": { - "$id": "960", - "name": "value" - } - } - }, - { - "$id": "961", - "kind": "property", - "name": "nextLink", - "serializedName": "nextLink", - "doc": "The link to the next page of items", - "type": { - "$id": "962", - "kind": "url", - "name": "ResourceLocation", - "crossLanguageDefinitionId": "TypeSpec.Rest.ResourceLocation", - "baseType": { - "$id": "963", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url", - "decorators": [] - }, - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Core.Foundations.CustomPage.nextLink", - "serializationOptions": { - "$id": "964", - "json": { - "$id": "965", - "name": "nextLink" - } - } - }, - { - "$id": "966", - "kind": "header", - "name": "clientRequestId", - "serializedName": "x-ms-client-request-id", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "967", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "968", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "decorators": [] - }, - "optional": true, - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Core.Foundations.CustomPage.clientRequestId", - "correspondingMethodParams": [] - } - ] - } - ], - "clients": [ - { - "$id": "969", - "kind": "client", - "name": "NotificationMessagesClient", - "namespace": "Azure.Communication.Messages", - "methods": [ - { - "$id": "970", - "kind": "basic", - "name": "send", - "accessibility": "public", - "apiVersions": [ - "2024-02-01", - "2024-08-30", - "2025-01-15-preview", - "2025-04-01-preview" - ], - "doc": "Sends a notification message from Business to User.", - "operation": { - "$id": "971", - "name": "send", - "resourceName": "NotificationMessagesClient", - "doc": "Sends a notification message from Business to User.", - "accessibility": "public", - "parameters": [ - { - "$id": "972", - "name": "apiVersion", - "nameInRequest": "api-version", - "doc": "The API version to use for this operation.", - "type": { - "$id": "973", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": true, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Client", - "defaultValue": { - "$id": "974", - "type": { - "$id": "975", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "2025-04-01-preview" - }, - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "976", - "name": "repeatabilityRequestId", - "nameInRequest": "Repeatability-Request-ID", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "977", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "978", - "name": "repeatabilityFirstSent", - "nameInRequest": "Repeatability-First-Sent", - "doc": "Specifies the date and time at which the request was first created.", - "type": { - "$id": "979", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc7231", - "wireType": { - "$id": "980", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "981", - "name": "clientRequestId", - "nameInRequest": "x-ms-client-request-id", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "982", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "983", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "984", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "122" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "985", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "124" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "986", - "name": "notificationContent", - "nameInRequest": "notificationContent", - "doc": "Details of the message to send.", - "type": { - "$ref": "174" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "987", - "statusCodes": [ - 202 - ], - "bodyType": { - "$ref": "633" - }, - "headers": [ - { - "$id": "988", - "name": "repeatabilityResult", - "nameInResponse": "Repeatability-Result", - "doc": "Indicates whether the repeatable request was accepted or rejected.", - "type": { - "$ref": "116" - } - }, - { - "$id": "989", - "name": "clientRequestId", - "nameInResponse": "x-ms-client-request-id", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "990", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "991", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "decorators": [] - } - } - ], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/messages/notifications:send", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.NotificationMessagesClient.send", - "decorators": [] - }, - "parameters": [ - { - "$id": "992", - "name": "notificationContent", - "nameInRequest": "body", - "doc": "Details of the message to send.", - "type": { - "$ref": "174" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "993", - "name": "repeatabilityRequestId", - "nameInRequest": "Repeatability-Request-ID", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "994", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "995", - "name": "repeatabilityFirstSent", - "nameInRequest": "Repeatability-First-Sent", - "doc": "Specifies the date and time at which the request was first created.", - "type": { - "$id": "996", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc7231", - "wireType": { - "$id": "997", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "998", - "name": "clientRequestId", - "nameInRequest": "x-ms-client-request-id", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "999", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "1000", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1001", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "122" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1002", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "124" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "1003", - "type": { - "$ref": "633" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.NotificationMessagesClient.send" + ] }, { - "$id": "1004", - "kind": "basic", - "name": "downloadMediaInternal", - "accessibility": "internal", - "apiVersions": [ - "2024-02-01", - "2024-08-30", - "2025-01-15-preview", - "2025-04-01-preview" - ], - "doc": "Download the Media payload from a User to Business message.", - "operation": { - "$id": "1005", - "name": "downloadMediaInternal", - "resourceName": "MessageDataStream", - "doc": "Download the Media payload from a User to Business message.", - "accessibility": "internal", - "parameters": [ - { - "$id": "1006", - "name": "apiVersion", - "nameInRequest": "api-version", - "doc": "The API version to use for this operation.", - "type": { - "$id": "1007", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": true, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Client", - "defaultValue": { - "$id": "1008", - "type": { - "$id": "1009", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "2025-04-01-preview" - }, - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1010", - "name": "id", - "nameInRequest": "id", - "doc": "The stream ID.", - "type": { - "$id": "1011", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1012", - "name": "clientRequestId", - "nameInRequest": "x-ms-client-request-id", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1013", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "1014", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1015", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "126" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "1016", - "statusCodes": [ - 200 - ], - "bodyType": { - "$id": "1017", - "kind": "bytes", - "name": "bytes", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] - }, - "headers": [ - { - "$id": "1018", - "name": "clientRequestId", - "nameInResponse": "x-ms-client-request-id", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", + "$id": "493", + "kind": "model", + "name": "SendConversationMessageResult", + "namespace": "Azure.Communication.Messages", + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.SendConversationMessageResult", + "usage": "Output,Json", + "doc": "Result of the send conversation message operation.", + "decorators": [], + "properties": [ + { + "$id": "494", + "kind": "property", + "name": "messageId", + "serializedName": "messageId", + "doc": "A server-generated Advanced Messaging conversation message id.", "type": { - "$id": "1019", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "1020", + "$id": "495", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] - }, - "decorators": [] - } - }, - { - "$id": "1021", - "name": "contentType", - "nameInResponse": "content-type", - "doc": "The stream content type.", - "type": { - "$ref": "128" - } - } - ], - "isErrorResponse": false, - "contentTypes": [ - "application/octet-stream" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/messages/streams/{id}", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "ClientForAcsMessages.NotificationMessagesClient.downloadMedia", - "decorators": [], - "examples": [ - { - "$id": "1022", - "kind": "http", - "name": "Download media", - "description": "Download media", - "filePath": "2025-04-01-preview/Stream_GetMedia.json", - "parameters": [ - { - "$id": "1023", - "parameter": { - "$ref": "1006" - }, - "value": { - "$id": "1024", - "kind": "string", - "type": { - "$ref": "1007" - }, - "value": "2025-04-01-preview" - } - }, - { - "$id": "1025", - "parameter": { - "$ref": "1010" - }, - "value": { - "$id": "1026", - "kind": "string", - "type": { - "$ref": "1011" - }, - "value": "d19e68ec-bdd6-4a50-8dfb-cbb1642df6ab" - } - } - ], - "responses": [ - { - "$id": "1027", - "response": { - "$ref": "1016" - }, - "statusCode": 200, - "bodyValue": { - "$id": "1028", - "kind": "string", - "type": { - "$ref": "1017" - }, - "value": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.SendConversationMessageResult.messageId", + "serializationOptions": { + "json": { + "name": "messageId" + } } - } - ] - } + } ] - }, - "parameters": [ - { - "$id": "1029", - "name": "id", - "nameInRequest": "id", - "doc": "The stream ID.", - "type": { - "$id": "1030", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1031", - "name": "clientRequestId", - "nameInRequest": "x-ms-client-request-id", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1032", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "1033", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1034", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "126" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "1035", - "type": { - "$ref": "1017" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "ClientForAcsMessages.NotificationMessagesClient.downloadMedia" } - ], - "parameters": [ + ], + "clients": [ { - "$id": "1036", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "The communication resource, for example https://my-resource.communication.azure.com", - "type": { - "$id": "1037", - "kind": "url", - "name": "endpoint", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "serverUrlTemplate": "{endpoint}" - } - ], - "decorators": [], - "crossLanguageDefinitionId": "ClientForAcsMessages.NotificationMessagesClient", - "apiVersions": [ - "2024-02-01", - "2024-08-30", - "2025-01-15-preview", - "2025-04-01-preview" - ] - }, - { - "$id": "1038", - "kind": "client", - "name": "MessageTemplateClient", - "namespace": "Azure.Communication.Messages", - "methods": [ - { - "$id": "1039", - "kind": "paging", - "name": "getTemplates", - "accessibility": "public", - "apiVersions": [ - "2024-02-01", - "2024-08-30", - "2025-01-15-preview", - "2025-04-01-preview" - ], - "doc": "List all templates for given Azure Communication Services channel", - "operation": { - "$id": "1040", - "name": "getTemplates", - "resourceName": "MessageTemplateItem", - "doc": "List all templates for given Azure Communication Services channel", - "accessibility": "public", - "parameters": [ - { - "$id": "1041", - "name": "apiVersion", - "nameInRequest": "api-version", - "doc": "The API version to use for this operation.", - "type": { - "$id": "1042", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": true, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Client", - "defaultValue": { - "$id": "1043", - "type": { - "$id": "1044", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "2025-04-01-preview" - }, - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1045", - "name": "channelId", - "nameInRequest": "channelId", - "doc": "The registration ID of the channel.", - "type": { - "$id": "1046", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "1047", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1048", - "name": "maxPageSize", - "nameInRequest": "maxPageSize", - "doc": "Number of objects to return per page.", - "type": { - "$id": "1049", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1050", - "name": "clientRequestId", - "nameInRequest": "x-ms-client-request-id", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1051", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "1052", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1053", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "130" + "$id": "496", + "kind": "client", + "name": "NotificationMessagesClient", + "namespace": "Azure.Communication.Messages", + "methods": [ + { + "$id": "497", + "kind": "basic", + "name": "send", + "accessibility": "public", + "apiVersions": [ + "2024-02-01", + "2024-08-30", + "2025-01-15-preview", + "2025-04-01-preview" + ], + "doc": "Sends a notification message from Business to User.", + "operation": { + "$id": "498", + "name": "send", + "resourceName": "NotificationMessagesClient", + "doc": "Sends a notification message from Business to User.", + "accessibility": "public", + "parameters": [ + { + "$id": "499", + "name": "apiVersion", + "nameInRequest": "api-version", + "doc": "The API version to use for this operation.", + "type": { + "$id": "500", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": true, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Client", + "defaultValue": { + "type": { + "$id": "501", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "2025-04-01-preview" + }, + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "502", + "name": "repeatabilityRequestId", + "nameInRequest": "Repeatability-Request-ID", + "doc": "An opaque, globally-unique, client-generated string identifier for the request.", + "type": { + "$id": "503", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "504", + "name": "repeatabilityFirstSent", + "nameInRequest": "Repeatability-First-Sent", + "doc": "Specifies the date and time at which the request was first created.", + "type": { + "$id": "505", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc7231", + "wireType": { + "$id": "506", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "507", + "name": "clientRequestId", + "nameInRequest": "x-ms-client-request-id", + "doc": "An opaque, globally-unique, client-generated string identifier for the request.", + "type": { + "$id": "508", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "509", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "510", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "74" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "511", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "76" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "512", + "name": "notificationContent", + "nameInRequest": "notificationContent", + "doc": "Details of the message to send.", + "type": { + "$ref": "126" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 202 + ], + "bodyType": { + "$ref": "324" + }, + "headers": [ + { + "name": "repeatabilityResult", + "nameInResponse": "Repeatability-Result", + "doc": "Indicates whether the repeatable request was accepted or rejected.", + "type": { + "$ref": "64" + } + }, + { + "name": "clientRequestId", + "nameInResponse": "x-ms-client-request-id", + "doc": "An opaque, globally-unique, client-generated string identifier for the request.", + "type": { + "$id": "513", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "514", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + } + } + ], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/messages/notifications:send", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.NotificationMessagesClient.send", + "decorators": [] + }, + "parameters": [ + { + "$id": "515", + "name": "notificationContent", + "nameInRequest": "body", + "doc": "Details of the message to send.", + "type": { + "$ref": "126" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "516", + "name": "repeatabilityRequestId", + "nameInRequest": "Repeatability-Request-ID", + "doc": "An opaque, globally-unique, client-generated string identifier for the request.", + "type": { + "$id": "517", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "518", + "name": "repeatabilityFirstSent", + "nameInRequest": "Repeatability-First-Sent", + "doc": "Specifies the date and time at which the request was first created.", + "type": { + "$id": "519", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc7231", + "wireType": { + "$id": "520", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "521", + "name": "clientRequestId", + "nameInRequest": "x-ms-client-request-id", + "doc": "An opaque, globally-unique, client-generated string identifier for the request.", + "type": { + "$id": "522", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "523", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "524", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "74" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "525", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "76" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "324" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.NotificationMessagesClient.send" }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } + { + "$id": "526", + "kind": "basic", + "name": "downloadMediaInternal", + "accessibility": "internal", + "apiVersions": [ + "2024-02-01", + "2024-08-30", + "2025-01-15-preview", + "2025-04-01-preview" + ], + "doc": "Download the Media payload from a User to Business message.", + "operation": { + "$id": "527", + "name": "downloadMediaInternal", + "resourceName": "MessageDataStream", + "doc": "Download the Media payload from a User to Business message.", + "accessibility": "internal", + "parameters": [ + { + "$id": "528", + "name": "apiVersion", + "nameInRequest": "api-version", + "doc": "The API version to use for this operation.", + "type": { + "$id": "529", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": true, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Client", + "defaultValue": { + "type": { + "$id": "530", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "2025-04-01-preview" + }, + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "531", + "name": "id", + "nameInRequest": "id", + "doc": "The stream ID.", + "type": { + "$id": "532", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "533", + "name": "clientRequestId", + "nameInRequest": "x-ms-client-request-id", + "doc": "An opaque, globally-unique, client-generated string identifier for the request.", + "type": { + "$id": "534", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "535", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "536", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "78" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "537", + "kind": "bytes", + "name": "bytes", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "headers": [ + { + "name": "clientRequestId", + "nameInResponse": "x-ms-client-request-id", + "doc": "An opaque, globally-unique, client-generated string identifier for the request.", + "type": { + "$id": "538", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "539", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + } + }, + { + "name": "contentType", + "nameInResponse": "content-type", + "doc": "The stream content type.", + "type": { + "$ref": "80" + } + } + ], + "isErrorResponse": false, + "contentTypes": [ + "application/octet-stream" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/messages/streams/{id}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "ClientForAcsMessages.NotificationMessagesClient.downloadMedia", + "decorators": [], + "examples": [ + { + "$id": "540", + "kind": "http", + "name": "Download media", + "description": "Download media", + "filePath": "2025-04-01-preview/Stream_GetMedia.json", + "parameters": [ + { + "parameter": { + "$ref": "528" + }, + "value": { + "$id": "541", + "kind": "string", + "type": { + "$ref": "529" + }, + "value": "2025-04-01-preview" + } + }, + { + "parameter": { + "$ref": "531" + }, + "value": { + "$id": "542", + "kind": "string", + "type": { + "$ref": "532" + }, + "value": "d19e68ec-bdd6-4a50-8dfb-cbb1642df6ab" + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "537" + }, + "headers": [ + { + "name": "clientRequestId", + "nameInResponse": "x-ms-client-request-id", + "doc": "An opaque, globally-unique, client-generated string identifier for the request.", + "type": { + "$ref": "538" + } + }, + { + "name": "contentType", + "nameInResponse": "content-type", + "doc": "The stream content type.", + "type": { + "$ref": "80" + } + } + ], + "isErrorResponse": false, + "contentTypes": [ + "application/octet-stream" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "543", + "kind": "string", + "type": { + "$ref": "537" + }, + "value": "" + } + } + ] + } + ] + }, + "parameters": [ + { + "$id": "544", + "name": "id", + "nameInRequest": "id", + "doc": "The stream ID.", + "type": { + "$id": "545", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "546", + "name": "clientRequestId", + "nameInRequest": "x-ms-client-request-id", + "doc": "An opaque, globally-unique, client-generated string identifier for the request.", + "type": { + "$id": "547", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "548", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "549", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "78" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "537" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "ClientForAcsMessages.NotificationMessagesClient.downloadMedia" + } ], - "responses": [ - { - "$id": "1054", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "930" - }, - "headers": [ - { - "$id": "1055", - "name": "clientRequestId", - "nameInResponse": "x-ms-client-request-id", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", + "parameters": [ + { + "$id": "550", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "The communication resource, for example https://my-resource.communication.azure.com", "type": { - "$id": "1056", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "1057", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "decorators": [] - } - } - ], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } + "$id": "551", + "kind": "url", + "name": "endpoint", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "serverUrlTemplate": "{endpoint}" + } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/messages/channels/{channelId}/templates", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateClient.listTemplates", - "decorators": [] - }, - "parameters": [ - { - "$id": "1058", - "name": "channelId", - "nameInRequest": "channelId", - "doc": "The registration ID of the channel.", - "type": { - "$id": "1059", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "1060", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1061", - "name": "maxPageSize", - "nameInRequest": "maxPageSize", - "doc": "Number of objects to return per page.", - "type": { - "$id": "1062", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1063", - "name": "clientRequestId", - "nameInRequest": "x-ms-client-request-id", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1064", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "1065", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1066", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "130" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "1067", - "type": { - "$ref": "932" - }, - "resultSegments": [ - "value" + "decorators": [], + "crossLanguageDefinitionId": "ClientForAcsMessages.NotificationMessagesClient", + "apiVersions": [ + "2024-02-01", + "2024-08-30", + "2025-01-15-preview", + "2025-04-01-preview" ] - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateClient.listTemplates", - "pagingMetadata": { - "$id": "1068", - "itemPropertySegments": [ - "value" - ], - "nextLink": { - "$id": "1069", - "responseSegments": [ - "nextLink" - ], - "responseLocation": "Body" - } - } - } - ], - "parameters": [ - { - "$id": "1070", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "The communication resource, for example https://my-resource.communication.azure.com", - "type": { - "$id": "1071", - "kind": "url", - "name": "endpoint", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "serverUrlTemplate": "{endpoint}" - } - ], - "decorators": [], - "crossLanguageDefinitionId": "ClientForAcsMessages.MessageTemplateClient", - "apiVersions": [ - "2024-02-01", - "2024-08-30", - "2025-01-15-preview", - "2025-04-01-preview" - ] - }, - { - "$id": "1072", - "kind": "client", - "name": "ConversationAdministrationClient", - "namespace": "Azure.Communication.Messages", - "methods": [ + }, { - "$id": "1073", - "kind": "basic", - "name": "createConversation", - "accessibility": "public", - "apiVersions": [ - "2025-04-01-preview" - ], - "doc": "Creates a new conversation. This is only for create operation.", - "operation": { - "$id": "1074", - "name": "createConversation", - "resourceName": "Conversation", - "doc": "Creates a new conversation. This is only for create operation.", - "accessibility": "public", - "parameters": [ - { - "$id": "1075", - "name": "apiVersion", - "nameInRequest": "api-version", - "doc": "The API version to use for this operation.", - "type": { - "$id": "1076", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": true, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Client", - "defaultValue": { - "$id": "1077", - "type": { - "$id": "1078", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "2025-04-01-preview" - }, - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1079", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "132" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1080", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "134" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1081", - "name": "createConversationRequest1", - "nameInRequest": "createConversationRequest1", - "type": { - "$ref": "760" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Spread", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "1082", - "statusCodes": [ - 201 - ], - "bodyType": { - "$ref": "673" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } + "$id": "552", + "kind": "client", + "name": "MessageTemplateClient", + "namespace": "Azure.Communication.Messages", + "methods": [ + { + "$id": "553", + "kind": "paging", + "name": "getTemplates", + "accessibility": "public", + "apiVersions": [ + "2024-02-01", + "2024-08-30", + "2025-01-15-preview", + "2025-04-01-preview" + ], + "doc": "List all templates for given Azure Communication Services channel", + "operation": { + "$id": "554", + "name": "getTemplates", + "resourceName": "MessageTemplateItem", + "doc": "List all templates for given Azure Communication Services channel", + "accessibility": "public", + "parameters": [ + { + "$id": "555", + "name": "apiVersion", + "nameInRequest": "api-version", + "doc": "The API version to use for this operation.", + "type": { + "$id": "556", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": true, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Client", + "defaultValue": { + "type": { + "$id": "557", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "2025-04-01-preview" + }, + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "558", + "name": "channelId", + "nameInRequest": "channelId", + "doc": "The registration ID of the channel.", + "type": { + "$id": "559", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "560", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "561", + "name": "maxPageSize", + "nameInRequest": "maxPageSize", + "doc": "Number of objects to return per page.", + "type": { + "$id": "562", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "563", + "name": "clientRequestId", + "nameInRequest": "x-ms-client-request-id", + "doc": "An opaque, globally-unique, client-generated string identifier for the request.", + "type": { + "$id": "564", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "565", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "566", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "82" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "350" + }, + "headers": [ + { + "name": "clientRequestId", + "nameInResponse": "x-ms-client-request-id", + "doc": "An opaque, globally-unique, client-generated string identifier for the request.", + "type": { + "$id": "567", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "568", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + } + } + ], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/messages/channels/{channelId}/templates", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateClient.listTemplates", + "decorators": [] + }, + "parameters": [ + { + "$id": "569", + "name": "channelId", + "nameInRequest": "channelId", + "doc": "The registration ID of the channel.", + "type": { + "$id": "570", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "571", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "572", + "name": "maxPageSize", + "nameInRequest": "maxPageSize", + "doc": "Number of objects to return per page.", + "type": { + "$id": "573", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "574", + "name": "clientRequestId", + "nameInRequest": "x-ms-client-request-id", + "doc": "An opaque, globally-unique, client-generated string identifier for the request.", + "type": { + "$id": "575", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "576", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "577", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "82" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "352" + }, + "resultSegments": [ + "value" + ] + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateClient.listTemplates", + "pagingMetadata": { + "itemPropertySegments": [ + "value" + ], + "nextLink": { + "responseSegments": [ + "nextLink" + ], + "responseLocation": "Body" + } + } + } ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/messages/conversations", - "requestMediaTypes": [ - "application/json" + "parameters": [ + { + "$id": "578", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "The communication resource, for example https://my-resource.communication.azure.com", + "type": { + "$id": "579", + "kind": "url", + "name": "endpoint", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "serverUrlTemplate": "{endpoint}" + } ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ConversationAdministrationClient.createConversation", - "decorators": [] - }, - "parameters": [ - { - "$id": "1083", - "name": "conversation", - "nameInRequest": "conversation", - "doc": "The conversation details.", - "type": { - "$ref": "673" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1084", - "name": "initialMessage", - "nameInRequest": "initialMessage", - "doc": "An initial message within the conversation.", - "type": { - "$ref": "755" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1085", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "132" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1086", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "134" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "1087", - "type": { - "$ref": "673" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ConversationAdministrationClient.createConversation" + "decorators": [], + "crossLanguageDefinitionId": "ClientForAcsMessages.MessageTemplateClient", + "apiVersions": [ + "2024-02-01", + "2024-08-30", + "2025-01-15-preview", + "2025-04-01-preview" + ] }, { - "$id": "1088", - "kind": "basic", - "name": "getConversation", - "accessibility": "public", - "apiVersions": [ - "2025-04-01-preview" - ], - "doc": "Gets the details of a specific conversation.", - "operation": { - "$id": "1089", - "name": "getConversation", - "resourceName": "Conversation", - "doc": "Gets the details of a specific conversation.", - "accessibility": "public", - "parameters": [ - { - "$id": "1090", - "name": "apiVersion", - "nameInRequest": "api-version", - "doc": "The API version to use for this operation.", - "type": { - "$id": "1091", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": true, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Client", - "defaultValue": { - "$id": "1092", - "type": { - "$id": "1093", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "2025-04-01-preview" - }, - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1094", - "name": "conversationId", - "nameInRequest": "conversationId", - "doc": "The conversation ID.", - "type": { - "$id": "1095", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1096", - "name": "clientRequestId", - "nameInRequest": "x-ms-client-request-id", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1097", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "1098", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "decorators": [] + "$id": "580", + "kind": "client", + "name": "ConversationAdministrationClient", + "namespace": "Azure.Communication.Messages", + "methods": [ + { + "$id": "581", + "kind": "basic", + "name": "createConversation", + "accessibility": "public", + "apiVersions": [ + "2025-04-01-preview" + ], + "doc": "Creates a new conversation. This is only for create operation.", + "operation": { + "$id": "582", + "name": "createConversation", + "resourceName": "Conversation", + "doc": "Creates a new conversation. This is only for create operation.", + "accessibility": "public", + "parameters": [ + { + "$id": "583", + "name": "apiVersion", + "nameInRequest": "api-version", + "doc": "The API version to use for this operation.", + "type": { + "$id": "584", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": true, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Client", + "defaultValue": { + "type": { + "$id": "585", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "2025-04-01-preview" + }, + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "586", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "84" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "587", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "86" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "588", + "name": "createConversationRequest1", + "nameInRequest": "createConversationRequest1", + "type": { + "$ref": "407" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Spread", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 201 + ], + "bodyType": { + "$ref": "370" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/messages/conversations", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ConversationAdministrationClient.createConversation", + "decorators": [] + }, + "parameters": [ + { + "$id": "589", + "name": "conversation", + "nameInRequest": "conversation", + "doc": "The conversation details.", + "type": { + "$ref": "370" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "590", + "name": "initialMessage", + "nameInRequest": "initialMessage", + "doc": "An initial message within the conversation.", + "type": { + "$ref": "404" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "591", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "84" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "592", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "86" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "370" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ConversationAdministrationClient.createConversation" }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1099", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "136" + { + "$id": "593", + "kind": "basic", + "name": "getConversation", + "accessibility": "public", + "apiVersions": [ + "2025-04-01-preview" + ], + "doc": "Gets the details of a specific conversation.", + "operation": { + "$id": "594", + "name": "getConversation", + "resourceName": "Conversation", + "doc": "Gets the details of a specific conversation.", + "accessibility": "public", + "parameters": [ + { + "$id": "595", + "name": "apiVersion", + "nameInRequest": "api-version", + "doc": "The API version to use for this operation.", + "type": { + "$id": "596", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": true, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Client", + "defaultValue": { + "type": { + "$id": "597", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "2025-04-01-preview" + }, + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "598", + "name": "conversationId", + "nameInRequest": "conversationId", + "doc": "The conversation ID.", + "type": { + "$id": "599", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "600", + "name": "clientRequestId", + "nameInRequest": "x-ms-client-request-id", + "doc": "An opaque, globally-unique, client-generated string identifier for the request.", + "type": { + "$id": "601", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "602", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "603", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "88" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "370" + }, + "headers": [ + { + "name": "clientRequestId", + "nameInResponse": "x-ms-client-request-id", + "doc": "An opaque, globally-unique, client-generated string identifier for the request.", + "type": { + "$id": "604", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "605", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + } + } + ], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/messages/conversations/{conversationId}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ConversationAdministrationClient.getConversation", + "decorators": [] + }, + "parameters": [ + { + "$id": "606", + "name": "conversationId", + "nameInRequest": "conversationId", + "doc": "The conversation ID.", + "type": { + "$id": "607", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "608", + "name": "clientRequestId", + "nameInRequest": "x-ms-client-request-id", + "doc": "An opaque, globally-unique, client-generated string identifier for the request.", + "type": { + "$id": "609", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "610", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "611", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "88" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "370" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ConversationAdministrationClient.getConversation" }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "1100", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "673" + { + "$id": "612", + "kind": "basic", + "name": "deleteConversation", + "accessibility": "public", + "apiVersions": [ + "2025-04-01-preview" + ], + "doc": "Deletes a specific conversation.", + "operation": { + "$id": "613", + "name": "deleteConversation", + "resourceName": "Conversation", + "doc": "Deletes a specific conversation.", + "accessibility": "public", + "parameters": [ + { + "$id": "614", + "name": "apiVersion", + "nameInRequest": "api-version", + "doc": "The API version to use for this operation.", + "type": { + "$id": "615", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": true, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Client", + "defaultValue": { + "type": { + "$id": "616", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "2025-04-01-preview" + }, + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "617", + "name": "conversationId", + "nameInRequest": "conversationId", + "doc": "The conversation ID.", + "type": { + "$id": "618", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "619", + "name": "repeatabilityRequestId", + "nameInRequest": "Repeatability-Request-ID", + "doc": "An opaque, globally-unique, client-generated string identifier for the request.", + "type": { + "$id": "620", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "621", + "name": "repeatabilityFirstSent", + "nameInRequest": "Repeatability-First-Sent", + "doc": "Specifies the date and time at which the request was first created.", + "type": { + "$id": "622", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc7231", + "wireType": { + "$id": "623", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "624", + "name": "clientRequestId", + "nameInRequest": "x-ms-client-request-id", + "doc": "An opaque, globally-unique, client-generated string identifier for the request.", + "type": { + "$id": "625", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "626", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "627", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "90" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 204 + ], + "headers": [ + { + "name": "repeatabilityResult", + "nameInResponse": "Repeatability-Result", + "doc": "Indicates whether the repeatable request was accepted or rejected.", + "type": { + "$ref": "64" + } + }, + { + "name": "clientRequestId", + "nameInResponse": "x-ms-client-request-id", + "doc": "An opaque, globally-unique, client-generated string identifier for the request.", + "type": { + "$id": "628", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "629", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + } + } + ], + "isErrorResponse": false + } + ], + "httpMethod": "DELETE", + "uri": "{endpoint}", + "path": "/messages/conversations/{conversationId}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ConversationAdministrationClient.deleteConversation", + "decorators": [] + }, + "parameters": [ + { + "$id": "630", + "name": "conversationId", + "nameInRequest": "conversationId", + "doc": "The conversation ID.", + "type": { + "$id": "631", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "632", + "name": "repeatabilityRequestId", + "nameInRequest": "Repeatability-Request-ID", + "doc": "An opaque, globally-unique, client-generated string identifier for the request.", + "type": { + "$id": "633", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "634", + "name": "repeatabilityFirstSent", + "nameInRequest": "Repeatability-First-Sent", + "doc": "Specifies the date and time at which the request was first created.", + "type": { + "$id": "635", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc7231", + "wireType": { + "$id": "636", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "637", + "name": "clientRequestId", + "nameInRequest": "x-ms-client-request-id", + "doc": "An opaque, globally-unique, client-generated string identifier for the request.", + "type": { + "$id": "638", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "639", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "640", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "90" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ConversationAdministrationClient.deleteConversation" }, - "headers": [ - { - "$id": "1101", - "name": "clientRequestId", - "nameInResponse": "x-ms-client-request-id", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1102", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "1103", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + { + "$id": "641", + "kind": "basic", + "name": "terminateConversation", + "accessibility": "public", + "apiVersions": [ + "2025-04-01-preview" + ], + "doc": "Terminates a specific conversation.", + "operation": { + "$id": "642", + "name": "terminateConversation", + "resourceName": "ConversationAdministrationClient", + "doc": "Terminates a specific conversation.", + "accessibility": "public", + "parameters": [ + { + "$id": "643", + "name": "apiVersion", + "nameInRequest": "api-version", + "doc": "The API version to use for this operation.", + "type": { + "$id": "644", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": true, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Client", + "defaultValue": { + "type": { + "$id": "645", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "2025-04-01-preview" + }, + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "646", + "name": "conversationId", + "nameInRequest": "conversationId", + "doc": "The conversation ID.", + "type": { + "$id": "647", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "648", + "name": "repeatabilityRequestId", + "nameInRequest": "Repeatability-Request-ID", + "doc": "An opaque, globally-unique, client-generated string identifier for the request.", + "type": { + "$id": "649", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "650", + "name": "repeatabilityFirstSent", + "nameInRequest": "Repeatability-First-Sent", + "doc": "Specifies the date and time at which the request was first created.", + "type": { + "$id": "651", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc7231", + "wireType": { + "$id": "652", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "653", + "name": "clientRequestId", + "nameInRequest": "x-ms-client-request-id", + "doc": "An opaque, globally-unique, client-generated string identifier for the request.", + "type": { + "$id": "654", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "655", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "656", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "92" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "headers": [ + { + "name": "repeatabilityResult", + "nameInResponse": "Repeatability-Result", + "doc": "Indicates whether the repeatable request was accepted or rejected.", + "type": { + "$ref": "64" + } + }, + { + "name": "clientRequestId", + "nameInResponse": "x-ms-client-request-id", + "doc": "An opaque, globally-unique, client-generated string identifier for the request.", + "type": { + "$id": "657", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "658", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + } + } + ], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/messages/conversations/{conversationId}:terminate", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ConversationAdministrationClient.terminateConversation", "decorators": [] - }, - "decorators": [] - } - } - ], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/messages/conversations/{conversationId}", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ConversationAdministrationClient.getConversation", - "decorators": [] - }, - "parameters": [ - { - "$id": "1104", - "name": "conversationId", - "nameInRequest": "conversationId", - "doc": "The conversation ID.", - "type": { - "$id": "1105", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1106", - "name": "clientRequestId", - "nameInRequest": "x-ms-client-request-id", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1107", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "1108", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1109", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "136" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "1110", - "type": { - "$ref": "673" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ConversationAdministrationClient.getConversation" - }, - { - "$id": "1111", - "kind": "basic", - "name": "deleteConversation", - "accessibility": "public", - "apiVersions": [ - "2025-04-01-preview" - ], - "doc": "Deletes a specific conversation.", - "operation": { - "$id": "1112", - "name": "deleteConversation", - "resourceName": "Conversation", - "doc": "Deletes a specific conversation.", - "accessibility": "public", - "parameters": [ - { - "$id": "1113", - "name": "apiVersion", - "nameInRequest": "api-version", - "doc": "The API version to use for this operation.", - "type": { - "$id": "1114", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": true, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Client", - "defaultValue": { - "$id": "1115", - "type": { - "$id": "1116", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "2025-04-01-preview" - }, - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1117", - "name": "conversationId", - "nameInRequest": "conversationId", - "doc": "The conversation ID.", - "type": { - "$id": "1118", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1119", - "name": "repeatabilityRequestId", - "nameInRequest": "Repeatability-Request-ID", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1120", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1121", - "name": "repeatabilityFirstSent", - "nameInRequest": "Repeatability-First-Sent", - "doc": "Specifies the date and time at which the request was first created.", - "type": { - "$id": "1122", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc7231", - "wireType": { - "$id": "1123", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1124", - "name": "clientRequestId", - "nameInRequest": "x-ms-client-request-id", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1125", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "1126", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1127", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "138" + }, + "parameters": [ + { + "$id": "659", + "name": "conversationId", + "nameInRequest": "conversationId", + "doc": "The conversation ID.", + "type": { + "$id": "660", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "661", + "name": "repeatabilityRequestId", + "nameInRequest": "Repeatability-Request-ID", + "doc": "An opaque, globally-unique, client-generated string identifier for the request.", + "type": { + "$id": "662", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "663", + "name": "repeatabilityFirstSent", + "nameInRequest": "Repeatability-First-Sent", + "doc": "Specifies the date and time at which the request was first created.", + "type": { + "$id": "664", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc7231", + "wireType": { + "$id": "665", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "666", + "name": "clientRequestId", + "nameInRequest": "x-ms-client-request-id", + "doc": "An opaque, globally-unique, client-generated string identifier for the request.", + "type": { + "$id": "667", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "668", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "669", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "92" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ConversationAdministrationClient.terminateConversation" }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "1128", - "statusCodes": [ - 204 - ], - "headers": [ - { - "$id": "1129", - "name": "repeatabilityResult", - "nameInResponse": "Repeatability-Result", - "doc": "Indicates whether the repeatable request was accepted or rejected.", - "type": { - "$ref": "116" - } - }, - { - "$id": "1130", - "name": "clientRequestId", - "nameInResponse": "x-ms-client-request-id", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1131", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "1132", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "decorators": [] + { + "$id": "670", + "kind": "paging", + "name": "listConversations", + "accessibility": "public", + "apiVersions": [ + "2025-04-01-preview" + ], + "doc": "Retrieves list of conversations.", + "operation": { + "$id": "671", + "name": "listConversations", + "resourceName": "Conversation", + "doc": "Retrieves list of conversations.", + "accessibility": "public", + "parameters": [ + { + "$id": "672", + "name": "apiVersion", + "nameInRequest": "api-version", + "doc": "The API version to use for this operation.", + "type": { + "$id": "673", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": true, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Client", + "defaultValue": { + "type": { + "$id": "674", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "2025-04-01-preview" + }, + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "675", + "name": "maxPageSize", + "nameInRequest": "maxPageSize", + "doc": "Number of objects to return per page.", + "type": { + "$id": "676", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "677", + "name": "participantId", + "nameInRequest": "participantId", + "doc": "The participant user ID", + "type": { + "$id": "678", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "679", + "name": "channelId", + "nameInRequest": "channelId", + "doc": "The id of channel", + "type": { + "$id": "680", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "681", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "682", + "name": "clientRequestId", + "nameInRequest": "x-ms-client-request-id", + "doc": "An opaque, globally-unique, client-generated string identifier for the request.", + "type": { + "$id": "683", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "684", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "685", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "94" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "410" + }, + "headers": [ + { + "name": "clientRequestId", + "nameInResponse": "x-ms-client-request-id", + "doc": "An opaque, globally-unique, client-generated string identifier for the request.", + "type": { + "$id": "686", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "687", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + } + } + ], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/messages/conversations", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "ClientForAcsMessages.ConversationAdministrationClient.listConversations", + "decorators": [], + "examples": [ + { + "$id": "688", + "kind": "http", + "name": "Retrieves list of conversations", + "description": "Retrieves list of conversations", + "filePath": "2025-04-01-preview/ConversationThread_ListConversations.json", + "parameters": [ + { + "parameter": { + "$ref": "672" + }, + "value": { + "$id": "689", + "kind": "string", + "type": { + "$ref": "673" + }, + "value": "2025-04-01-preview" + } + }, + { + "parameter": { + "$ref": "675" + }, + "value": { + "$id": "690", + "kind": "number", + "type": { + "$ref": "676" + }, + "value": 25 + } + }, + { + "parameter": { + "$ref": "679" + }, + "value": { + "$id": "691", + "kind": "string", + "type": { + "$ref": "680" + }, + "value": "0f0eb78e-a576-1dfc-b414-0f0756de3338" + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "410" + }, + "headers": [ + { + "name": "clientRequestId", + "nameInResponse": "x-ms-client-request-id", + "doc": "An opaque, globally-unique, client-generated string identifier for the request.", + "type": { + "$ref": "686" + } + } + ], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "692", + "kind": "model", + "type": { + "$ref": "410" + }, + "value": { + "value": { + "$id": "693", + "kind": "array", + "type": { + "$ref": "412" + }, + "value": [ + { + "$id": "694", + "kind": "model", + "type": { + "$ref": "370" + }, + "value": { + "id": { + "$id": "695", + "kind": "string", + "type": { + "$ref": "372" + }, + "value": "19:34adfa4f-cedf-4dc0-ba29-b6d1a69ab345@thread.v2" + }, + "topic": { + "$id": "696", + "kind": "string", + "type": { + "$ref": "374" + }, + "value": "Test" + }, + "deliveryChannelIds": { + "$id": "697", + "kind": "array", + "type": { + "$ref": "132" + }, + "value": [ + { + "$id": "698", + "kind": "string", + "type": { + "$ref": "133" + }, + "value": "0f0eb78e-a576-1dfc-b414-0f0756de3338" + } + ] + }, + "outboundDeliveryStrategy": { + "$id": "699", + "kind": "string", + "type": { + "$ref": "51" + }, + "value": "allParticipants" + }, + "participants": { + "$id": "700", + "kind": "array", + "type": { + "$ref": "378" + }, + "value": [ + { + "$id": "701", + "kind": "model", + "type": { + "$ref": "400" + }, + "value": { + "$id": "702", + "id": { + "$id": "703", + "kind": "string", + "type": { + "$ref": "382" + }, + "value": "8:acs:uuid2" + }, + "displayName": { + "$id": "704", + "kind": "string", + "type": { + "$ref": "384" + }, + "value": "Customer" + }, + "kind": { + "$id": "705", + "kind": "string", + "type": { + "$ref": "58" + }, + "value": "external" + }, + "contacts": { + "$id": "706", + "kind": "array", + "type": { + "$ref": "403" + }, + "value": [ + { + "$id": "707", + "kind": "model", + "type": { + "$ref": "398" + }, + "value": { + "$id": "708", + "id": { + "$id": "709", + "kind": "string", + "type": { + "$ref": "391" + }, + "value": "12345678901" + }, + "kind": { + "$id": "710", + "kind": "string", + "type": { + "$ref": "63" + }, + "value": "whatsApp" + } + } + }, + { + "$id": "711", + "kind": "model", + "type": { + "$ref": "392" + }, + "value": { + "$id": "712", + "id": { + "$id": "713", + "kind": "string", + "type": { + "$ref": "391" + }, + "value": "8:acs:uuid2" + }, + "kind": { + "$id": "714", + "kind": "string", + "type": { + "$ref": "61" + }, + "value": "communication" + } + } + } + ] + } + } + }, + { + "$id": "715", + "kind": "model", + "type": { + "$ref": "385" + }, + "value": { + "$id": "716", + "id": { + "$id": "717", + "kind": "string", + "type": { + "$ref": "382" + }, + "value": "8:acs:uuid1" + }, + "displayName": { + "$id": "718", + "kind": "string", + "type": { + "$ref": "384" + }, + "value": "Support" + }, + "kind": { + "$id": "719", + "kind": "string", + "type": { + "$ref": "57" + }, + "value": "internal" + }, + "contact": { + "$id": "720", + "kind": "model", + "type": { + "$ref": "392" + }, + "value": { + "$id": "721", + "id": { + "$id": "722", + "kind": "string", + "type": { + "$ref": "391" + }, + "value": "8:acs:uuid1" + }, + "kind": { + "$id": "723", + "kind": "string", + "type": { + "$ref": "61" + }, + "value": "communication" + } + } + } + } + } + ] + } + } + }, + { + "$id": "724", + "kind": "model", + "type": { + "$ref": "370" + }, + "value": { + "id": { + "$id": "725", + "kind": "string", + "type": { + "$ref": "372" + }, + "value": "19:111dfa4f-cedf-4dc0-ba29-b6d1a69ab345@thread.v2" + }, + "topic": { + "$id": "726", + "kind": "string", + "type": { + "$ref": "374" + }, + "value": "Test" + }, + "deliveryChannelIds": { + "$id": "727", + "kind": "array", + "type": { + "$ref": "132" + }, + "value": [ + { + "$id": "728", + "kind": "string", + "type": { + "$ref": "133" + }, + "value": "0f0eb78e-a576-1dfc-b414-0f0756de3338" + } + ] + }, + "outboundDeliveryStrategy": { + "$id": "729", + "kind": "string", + "type": { + "$ref": "51" + }, + "value": "allParticipants" + }, + "participants": { + "$id": "730", + "kind": "array", + "type": { + "$ref": "378" + }, + "value": [ + { + "$id": "731", + "kind": "model", + "type": { + "$ref": "400" + }, + "value": { + "$id": "732", + "id": { + "$id": "733", + "kind": "string", + "type": { + "$ref": "382" + }, + "value": "8:acs:uuid3" + }, + "displayName": { + "$id": "734", + "kind": "string", + "type": { + "$ref": "384" + }, + "value": "Customer" + }, + "kind": { + "$id": "735", + "kind": "string", + "type": { + "$ref": "58" + }, + "value": "external" + }, + "contacts": { + "$id": "736", + "kind": "array", + "type": { + "$ref": "403" + }, + "value": [ + { + "$id": "737", + "kind": "model", + "type": { + "$ref": "398" + }, + "value": { + "$id": "738", + "id": { + "$id": "739", + "kind": "string", + "type": { + "$ref": "391" + }, + "value": "12331112222" + }, + "kind": { + "$id": "740", + "kind": "string", + "type": { + "$ref": "63" + }, + "value": "whatsApp" + } + } + }, + { + "$id": "741", + "kind": "model", + "type": { + "$ref": "392" + }, + "value": { + "$id": "742", + "id": { + "$id": "743", + "kind": "string", + "type": { + "$ref": "391" + }, + "value": "8:acs:uuid3" + }, + "kind": { + "$id": "744", + "kind": "string", + "type": { + "$ref": "61" + }, + "value": "communication" + } + } + } + ] + } + } + }, + { + "$id": "745", + "kind": "model", + "type": { + "$ref": "385" + }, + "value": { + "$id": "746", + "id": { + "$id": "747", + "kind": "string", + "type": { + "$ref": "382" + }, + "value": "8:acs:uuid3" + }, + "displayName": { + "$id": "748", + "kind": "string", + "type": { + "$ref": "384" + }, + "value": "Support" + }, + "kind": { + "$id": "749", + "kind": "string", + "type": { + "$ref": "57" + }, + "value": "internal" + }, + "contact": { + "$id": "750", + "kind": "model", + "type": { + "$ref": "392" + }, + "value": { + "$id": "751", + "id": { + "$id": "752", + "kind": "string", + "type": { + "$ref": "391" + }, + "value": "8:acs:uuid3" + }, + "kind": { + "$id": "753", + "kind": "string", + "type": { + "$ref": "61" + }, + "value": "communication" + } + } + } + } + } + ] + } + } + } + ] + } + } + } + } + ] + } + ] + }, + "parameters": [ + { + "$id": "754", + "name": "maxPageSize", + "nameInRequest": "maxPageSize", + "doc": "Number of objects to return per page.", + "type": { + "$id": "755", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "756", + "name": "participantId", + "nameInRequest": "participantId", + "doc": "The participant user ID", + "type": { + "$id": "757", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "758", + "name": "channelId", + "nameInRequest": "channelId", + "doc": "The id of channel", + "type": { + "$id": "759", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "760", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "761", + "name": "clientRequestId", + "nameInRequest": "x-ms-client-request-id", + "doc": "An opaque, globally-unique, client-generated string identifier for the request.", + "type": { + "$id": "762", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "763", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "764", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "94" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "412" + }, + "resultSegments": [ + "value" + ] + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "ClientForAcsMessages.ConversationAdministrationClient.listConversations", + "pagingMetadata": { + "itemPropertySegments": [ + "value" + ], + "nextLink": { + "responseSegments": [ + "nextLink" + ], + "responseLocation": "Body" + } } - } - ], - "isErrorResponse": false - } - ], - "httpMethod": "DELETE", - "uri": "{endpoint}", - "path": "/messages/conversations/{conversationId}", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ConversationAdministrationClient.deleteConversation", - "decorators": [] - }, - "parameters": [ - { - "$id": "1133", - "name": "conversationId", - "nameInRequest": "conversationId", - "doc": "The conversation ID.", - "type": { - "$id": "1134", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1135", - "name": "repeatabilityRequestId", - "nameInRequest": "Repeatability-Request-ID", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1136", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1137", - "name": "repeatabilityFirstSent", - "nameInRequest": "Repeatability-First-Sent", - "doc": "Specifies the date and time at which the request was first created.", - "type": { - "$id": "1138", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc7231", - "wireType": { - "$id": "1139", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1140", - "name": "clientRequestId", - "nameInRequest": "x-ms-client-request-id", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1141", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "1142", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1143", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "138" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "1144" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ConversationAdministrationClient.deleteConversation" - }, - { - "$id": "1145", - "kind": "basic", - "name": "terminateConversation", - "accessibility": "public", - "apiVersions": [ - "2025-04-01-preview" - ], - "doc": "Terminates a specific conversation.", - "operation": { - "$id": "1146", - "name": "terminateConversation", - "resourceName": "ConversationAdministrationClient", - "doc": "Terminates a specific conversation.", - "accessibility": "public", - "parameters": [ - { - "$id": "1147", - "name": "apiVersion", - "nameInRequest": "api-version", - "doc": "The API version to use for this operation.", - "type": { - "$id": "1148", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": true, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Client", - "defaultValue": { - "$id": "1149", - "type": { - "$id": "1150", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "2025-04-01-preview" - }, - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1151", - "name": "conversationId", - "nameInRequest": "conversationId", - "doc": "The conversation ID.", - "type": { - "$id": "1152", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1153", - "name": "repeatabilityRequestId", - "nameInRequest": "Repeatability-Request-ID", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1154", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1155", - "name": "repeatabilityFirstSent", - "nameInRequest": "Repeatability-First-Sent", - "doc": "Specifies the date and time at which the request was first created.", - "type": { - "$id": "1156", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc7231", - "wireType": { - "$id": "1157", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1158", - "name": "clientRequestId", - "nameInRequest": "x-ms-client-request-id", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1159", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "1160", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1161", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "140" }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "1162", - "statusCodes": [ - 200 - ], - "headers": [ - { - "$id": "1163", - "name": "repeatabilityResult", - "nameInResponse": "Repeatability-Result", - "doc": "Indicates whether the repeatable request was accepted or rejected.", - "type": { - "$ref": "116" - } - }, - { - "$id": "1164", - "name": "clientRequestId", - "nameInResponse": "x-ms-client-request-id", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1165", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "1166", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "decorators": [] + { + "$id": "765", + "kind": "paging", + "name": "listMessages", + "accessibility": "public", + "apiVersions": [ + "2025-04-01-preview" + ], + "doc": "Retrieves list of conversation messages.", + "operation": { + "$id": "766", + "name": "listMessages", + "resourceName": "ConversationMessageItem", + "doc": "Retrieves list of conversation messages.", + "accessibility": "public", + "parameters": [ + { + "$id": "767", + "name": "apiVersion", + "nameInRequest": "api-version", + "doc": "The API version to use for this operation.", + "type": { + "$id": "768", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": true, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Client", + "defaultValue": { + "type": { + "$id": "769", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "2025-04-01-preview" + }, + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "770", + "name": "conversationId", + "nameInRequest": "conversationId", + "doc": "The conversation ID.", + "type": { + "$id": "771", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "772", + "name": "maxPageSize", + "nameInRequest": "maxPageSize", + "doc": "Number of objects to return per page.", + "type": { + "$id": "773", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "774", + "name": "participantId", + "nameInRequest": "participantId", + "doc": "The participant user ID", + "type": { + "$id": "775", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "776", + "name": "clientRequestId", + "nameInRequest": "x-ms-client-request-id", + "doc": "An opaque, globally-unique, client-generated string identifier for the request.", + "type": { + "$id": "777", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "778", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "779", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "96" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "419" + }, + "headers": [ + { + "name": "clientRequestId", + "nameInResponse": "x-ms-client-request-id", + "doc": "An opaque, globally-unique, client-generated string identifier for the request.", + "type": { + "$id": "780", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "781", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + } + } + ], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/messages/conversations/{conversationId}/messages", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "ClientForAcsMessages.ConversationAdministrationClient.listMessages", + "decorators": [], + "examples": [ + { + "$id": "782", + "kind": "http", + "name": "Retrieves list of conversation messages", + "description": "Retrieves list of conversation messages", + "filePath": "2025-04-01-preview/ConversationThread_ListMessages.json", + "parameters": [ + { + "parameter": { + "$ref": "767" + }, + "value": { + "$id": "783", + "kind": "string", + "type": { + "$ref": "768" + }, + "value": "2025-04-01-preview" + } + }, + { + "parameter": { + "$ref": "770" + }, + "value": { + "$id": "784", + "kind": "string", + "type": { + "$ref": "771" + }, + "value": "19:34adfa4f-cedf-4dc0-ba29-b6d1a69ab345@thread.v2" + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "419" + }, + "headers": [ + { + "name": "clientRequestId", + "nameInResponse": "x-ms-client-request-id", + "doc": "An opaque, globally-unique, client-generated string identifier for the request.", + "type": { + "$ref": "780" + } + } + ], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "785", + "kind": "model", + "type": { + "$ref": "419" + }, + "value": { + "value": { + "$id": "786", + "kind": "array", + "type": { + "$ref": "421" + }, + "value": [ + { + "$id": "787", + "kind": "model", + "type": { + "$ref": "422" + }, + "value": { + "id": { + "$id": "788", + "kind": "string", + "type": { + "$ref": "424" + }, + "value": "1593108077690" + }, + "sequenceId": { + "$id": "789", + "kind": "number", + "type": { + "$ref": "426" + }, + "value": 6 + }, + "message": { + "$id": "790", + "kind": "model", + "type": { + "$ref": "430" + }, + "value": { + "$id": "791", + "kind": { + "$id": "792", + "kind": "string", + "type": { + "$ref": "3" + }, + "value": "text" + }, + "content": { + "$id": "793", + "kind": "string", + "type": { + "$ref": "433" + }, + "value": "My order did not arrive" + } + } + }, + "senderDisplayName": { + "$id": "794", + "kind": "string", + "type": { + "$ref": "462" + }, + "value": "Jane" + }, + "createdOn": { + "$id": "795", + "kind": "string", + "type": { + "$ref": "466" + }, + "value": "2020-06-25T18:01:17.6900000Z" + }, + "senderCommunicationIdentifier": { + "$id": "796", + "kind": "string", + "type": { + "$ref": "464" + }, + "value": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b" + } + } + }, + { + "$id": "797", + "kind": "model", + "type": { + "$ref": "422" + }, + "value": { + "id": { + "$id": "798", + "kind": "string", + "type": { + "$ref": "424" + }, + "value": "1593107077690" + }, + "sequenceId": { + "$id": "799", + "kind": "number", + "type": { + "$ref": "426" + }, + "value": 5 + }, + "message": { + "$id": "800", + "kind": "model", + "type": { + "$ref": "430" + }, + "value": { + "$id": "801", + "kind": { + "$id": "802", + "kind": "string", + "type": { + "$ref": "3" + }, + "value": "text" + }, + "content": { + "$id": "803", + "kind": "string", + "type": { + "$ref": "433" + }, + "value": "Hi I need help" + } + } + }, + "senderDisplayName": { + "$id": "804", + "kind": "string", + "type": { + "$ref": "462" + }, + "value": "Jane" + }, + "createdOn": { + "$id": "805", + "kind": "string", + "type": { + "$ref": "466" + }, + "value": "2020-06-25T17:44:37.6830000Z" + }, + "senderCommunicationIdentifier": { + "$id": "806", + "kind": "string", + "type": { + "$ref": "464" + }, + "value": "8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b" + } + } + } + ] + } + } + } + } + ] + } + ] + }, + "parameters": [ + { + "$id": "807", + "name": "conversationId", + "nameInRequest": "conversationId", + "doc": "The conversation ID.", + "type": { + "$id": "808", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "809", + "name": "maxPageSize", + "nameInRequest": "maxPageSize", + "doc": "Number of objects to return per page.", + "type": { + "$id": "810", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "811", + "name": "participantId", + "nameInRequest": "participantId", + "doc": "The participant user ID", + "type": { + "$id": "812", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "813", + "name": "clientRequestId", + "nameInRequest": "x-ms-client-request-id", + "doc": "An opaque, globally-unique, client-generated string identifier for the request.", + "type": { + "$id": "814", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "815", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "816", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "96" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "421" + }, + "resultSegments": [ + "value" + ] + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "ClientForAcsMessages.ConversationAdministrationClient.listMessages", + "pagingMetadata": { + "itemPropertySegments": [ + "value" + ], + "nextLink": { + "responseSegments": [ + "nextLink" + ], + "responseLocation": "Body" + } } - } - ], - "isErrorResponse": false - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/messages/conversations/{conversationId}:terminate", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ConversationAdministrationClient.terminateConversation", - "decorators": [] - }, - "parameters": [ - { - "$id": "1167", - "name": "conversationId", - "nameInRequest": "conversationId", - "doc": "The conversation ID.", - "type": { - "$id": "1168", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1169", - "name": "repeatabilityRequestId", - "nameInRequest": "Repeatability-Request-ID", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1170", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1171", - "name": "repeatabilityFirstSent", - "nameInRequest": "Repeatability-First-Sent", - "doc": "Specifies the date and time at which the request was first created.", - "type": { - "$id": "1172", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc7231", - "wireType": { - "$id": "1173", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1174", - "name": "clientRequestId", - "nameInRequest": "x-ms-client-request-id", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1175", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "1176", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1177", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "140" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "1178" - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ConversationAdministrationClient.terminateConversation" - }, - { - "$id": "1179", - "kind": "paging", - "name": "listConversations", - "accessibility": "public", - "apiVersions": [ - "2025-04-01-preview" - ], - "doc": "Retrieves list of conversations.", - "operation": { - "$id": "1180", - "name": "listConversations", - "resourceName": "Conversation", - "doc": "Retrieves list of conversations.", - "accessibility": "public", - "parameters": [ - { - "$id": "1181", - "name": "apiVersion", - "nameInRequest": "api-version", - "doc": "The API version to use for this operation.", - "type": { - "$id": "1182", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": true, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Client", - "defaultValue": { - "$id": "1183", - "type": { - "$id": "1184", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "2025-04-01-preview" - }, - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1185", - "name": "maxPageSize", - "nameInRequest": "maxPageSize", - "doc": "Number of objects to return per page.", - "type": { - "$id": "1186", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1187", - "name": "participantId", - "nameInRequest": "participantId", - "doc": "The participant user ID", - "type": { - "$id": "1188", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1189", - "name": "channelId", - "nameInRequest": "channelId", - "doc": "The id of channel", - "type": { - "$id": "1190", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "1191", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1192", - "name": "clientRequestId", - "nameInRequest": "x-ms-client-request-id", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1193", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "1194", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1195", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "142" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "1196", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "943" }, - "headers": [ - { - "$id": "1197", - "name": "clientRequestId", - "nameInResponse": "x-ms-client-request-id", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1198", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "1199", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "decorators": [] - } - } - ], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/messages/conversations", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "ClientForAcsMessages.ConversationAdministrationClient.listConversations", - "decorators": [], - "examples": [ - { - "$id": "1200", - "kind": "http", - "name": "Retrieves list of conversations", - "description": "Retrieves list of conversations", - "filePath": "2025-04-01-preview/ConversationThread_ListConversations.json", - "parameters": [ - { - "$id": "1201", - "parameter": { - "$ref": "1181" - }, - "value": { - "$id": "1202", - "kind": "string", - "type": { - "$ref": "1182" - }, - "value": "2025-04-01-preview" - } - }, - { - "$id": "1203", - "parameter": { - "$ref": "1185" - }, - "value": { - "$id": "1204", - "kind": "number", - "type": { - "$ref": "1186" - }, - "value": 25 - } - }, - { - "$id": "1205", - "parameter": { - "$ref": "1189" - }, - "value": { - "$id": "1206", - "kind": "string", - "type": { - "$ref": "1190" - }, - "value": "0f0eb78e-a576-1dfc-b414-0f0756de3338" - } - } - ], - "responses": [ - { - "$id": "1207", + { + "$id": "817", + "kind": "basic", + "name": "addParticipants", + "accessibility": "public", + "apiVersions": [ + "2025-04-01-preview" + ], + "doc": "Adds participants to a specific conversation.", + "operation": { + "$id": "818", + "name": "addParticipants", + "resourceName": "ConversationAdministrationClient", + "doc": "Adds participants to a specific conversation.", + "accessibility": "public", + "parameters": [ + { + "$id": "819", + "name": "apiVersion", + "nameInRequest": "api-version", + "doc": "The API version to use for this operation.", + "type": { + "$id": "820", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": true, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Client", + "defaultValue": { + "type": { + "$id": "821", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "2025-04-01-preview" + }, + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "822", + "name": "conversationId", + "nameInRequest": "conversationId", + "doc": "The conversation ID.", + "type": { + "$id": "823", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "824", + "name": "repeatabilityRequestId", + "nameInRequest": "Repeatability-Request-ID", + "doc": "An opaque, globally-unique, client-generated string identifier for the request.", + "type": { + "$id": "825", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "826", + "name": "repeatabilityFirstSent", + "nameInRequest": "Repeatability-First-Sent", + "doc": "Specifies the date and time at which the request was first created.", + "type": { + "$id": "827", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc7231", + "wireType": { + "$id": "828", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "829", + "name": "clientRequestId", + "nameInRequest": "x-ms-client-request-id", + "doc": "An opaque, globally-unique, client-generated string identifier for the request.", + "type": { + "$id": "830", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "831", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "832", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "98" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "833", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "100" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "834", + "name": "options", + "nameInRequest": "options", + "doc": "Details of the payload for adding participants to a conversation.", + "type": { + "$ref": "474" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 207 + ], + "bodyType": { + "$ref": "476" + }, + "headers": [ + { + "name": "repeatabilityResult", + "nameInResponse": "Repeatability-Result", + "doc": "Indicates whether the repeatable request was accepted or rejected.", + "type": { + "$ref": "64" + } + }, + { + "name": "clientRequestId", + "nameInResponse": "x-ms-client-request-id", + "doc": "An opaque, globally-unique, client-generated string identifier for the request.", + "type": { + "$id": "835", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "836", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + } + } + ], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/messages/conversations/{conversationId}/participants:add", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "ClientForAcsMessages.ConversationAdministrationClient.addParticipants", + "decorators": [], + "examples": [ + { + "$id": "837", + "kind": "http", + "name": "Adds participants to a specific conversation", + "description": "Adds participants to a specific conversation", + "filePath": "2025-04-01-preview/ConversationThread_AddParticipants.json", + "parameters": [ + { + "parameter": { + "$ref": "819" + }, + "value": { + "$id": "838", + "kind": "string", + "type": { + "$ref": "820" + }, + "value": "2025-04-01-preview" + } + }, + { + "parameter": { + "$ref": "822" + }, + "value": { + "$id": "839", + "kind": "string", + "type": { + "$ref": "823" + }, + "value": "19:34adfa4f-cedf-4dc0-ba29-b6d1a69ab345@thread.v2" + } + }, + { + "parameter": { + "$ref": "834" + }, + "value": { + "$id": "840", + "kind": "model", + "type": { + "$ref": "474" + }, + "value": { + "participants": { + "$id": "841", + "kind": "array", + "type": { + "$ref": "378" + }, + "value": [ + { + "$id": "842", + "kind": "model", + "type": { + "$ref": "400" + }, + "value": { + "$id": "843", + "displayName": { + "$id": "844", + "kind": "string", + "type": { + "$ref": "384" + }, + "value": "Customer" + }, + "kind": { + "$id": "845", + "kind": "string", + "type": { + "$ref": "58" + }, + "value": "external" + }, + "contacts": { + "$id": "846", + "kind": "array", + "type": { + "$ref": "403" + }, + "value": [ + { + "$id": "847", + "kind": "model", + "type": { + "$ref": "398" + }, + "value": { + "$id": "848", + "id": { + "$id": "849", + "kind": "string", + "type": { + "$ref": "391" + }, + "value": "12345678901" + }, + "kind": { + "$id": "850", + "kind": "string", + "type": { + "$ref": "63" + }, + "value": "whatsApp" + } + } + } + ] + } + } + }, + { + "$id": "851", + "kind": "model", + "type": { + "$ref": "385" + }, + "value": { + "$id": "852", + "displayName": { + "$id": "853", + "kind": "string", + "type": { + "$ref": "384" + }, + "value": "Support" + }, + "kind": { + "$id": "854", + "kind": "string", + "type": { + "$ref": "57" + }, + "value": "internal" + }, + "contact": { + "$id": "855", + "kind": "model", + "type": { + "$ref": "392" + }, + "value": { + "$id": "856", + "id": { + "$id": "857", + "kind": "string", + "type": { + "$ref": "391" + }, + "value": "8:acs:uuid1" + }, + "kind": { + "$id": "858", + "kind": "string", + "type": { + "$ref": "61" + }, + "value": "communication" + } + } + } + } + } + ] + } + } + } + } + ], + "responses": [ + { + "response": { + "statusCodes": [ + 207 + ], + "bodyType": { + "$ref": "476" + }, + "headers": [ + { + "name": "repeatabilityResult", + "nameInResponse": "Repeatability-Result", + "doc": "Indicates whether the repeatable request was accepted or rejected.", + "type": { + "$ref": "64" + } + }, + { + "name": "clientRequestId", + "nameInResponse": "x-ms-client-request-id", + "doc": "An opaque, globally-unique, client-generated string identifier for the request.", + "type": { + "$ref": "835" + } + } + ], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 207, + "bodyValue": { + "$id": "859", + "kind": "model", + "type": { + "$ref": "476" + }, + "value": { + "invalidParticipants": { + "$id": "860", + "kind": "array", + "type": { + "$ref": "478" + }, + "value": [] + } + } + } + } + ] + } + ] + }, + "parameters": [ + { + "$id": "861", + "name": "conversationId", + "nameInRequest": "conversationId", + "doc": "The conversation ID.", + "type": { + "$id": "862", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "863", + "name": "options", + "nameInRequest": "options", + "doc": "Details of the payload for adding participants to a conversation.", + "type": { + "$ref": "474" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "864", + "name": "repeatabilityRequestId", + "nameInRequest": "Repeatability-Request-ID", + "doc": "An opaque, globally-unique, client-generated string identifier for the request.", + "type": { + "$id": "865", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "866", + "name": "repeatabilityFirstSent", + "nameInRequest": "Repeatability-First-Sent", + "doc": "Specifies the date and time at which the request was first created.", + "type": { + "$id": "867", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc7231", + "wireType": { + "$id": "868", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "869", + "name": "clientRequestId", + "nameInRequest": "x-ms-client-request-id", + "doc": "An opaque, globally-unique, client-generated string identifier for the request.", + "type": { + "$id": "870", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "871", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "872", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "98" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "873", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "100" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], "response": { - "$ref": "1196" - }, - "statusCode": 200, - "bodyValue": { - "$id": "1208", - "kind": "model", - "type": { - "$ref": "943" - }, - "value": { - "$id": "1209", - "value": { - "$id": "1210", - "kind": "array", - "type": { - "$ref": "945" - }, - "value": [ - { - "$id": "1211", - "kind": "model", - "type": { - "$ref": "673" - }, - "value": { - "$id": "1212", - "id": { - "$id": "1213", - "kind": "string", - "type": { - "$ref": "675" - }, - "value": "19:34adfa4f-cedf-4dc0-ba29-b6d1a69ab345@thread.v2" - }, - "topic": { - "$id": "1214", - "kind": "string", - "type": { - "$ref": "679" - }, - "value": "Test" - }, - "deliveryChannelIds": { - "$id": "1215", - "kind": "array", - "type": { - "$ref": "184" - }, - "value": [ + "type": { + "$ref": "476" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "ClientForAcsMessages.ConversationAdministrationClient.addParticipants" + }, + { + "$id": "874", + "kind": "basic", + "name": "removeParticipants", + "accessibility": "public", + "apiVersions": [ + "2025-04-01-preview" + ], + "doc": "remove a participant from a conversation", + "operation": { + "$id": "875", + "name": "removeParticipants", + "resourceName": "ConversationAdministrationClient", + "doc": "remove a participant from a conversation", + "accessibility": "public", + "parameters": [ + { + "$id": "876", + "name": "apiVersion", + "nameInRequest": "api-version", + "doc": "The API version to use for this operation.", + "type": { + "$id": "877", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": true, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Client", + "defaultValue": { + "type": { + "$id": "878", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "2025-04-01-preview" + }, + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "879", + "name": "conversationId", + "nameInRequest": "conversationId", + "doc": "The conversation ID.", + "type": { + "$id": "880", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "881", + "name": "repeatabilityRequestId", + "nameInRequest": "Repeatability-Request-ID", + "doc": "An opaque, globally-unique, client-generated string identifier for the request.", + "type": { + "$id": "882", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "883", + "name": "repeatabilityFirstSent", + "nameInRequest": "Repeatability-First-Sent", + "doc": "Specifies the date and time at which the request was first created.", + "type": { + "$id": "884", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc7231", + "wireType": { + "$id": "885", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "886", + "name": "clientRequestId", + "nameInRequest": "x-ms-client-request-id", + "doc": "An opaque, globally-unique, client-generated string identifier for the request.", + "type": { + "$id": "887", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "888", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "889", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "102" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "890", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "104" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "891", + "name": "options", + "nameInRequest": "options", + "doc": "Details of the request body for removing participants from a conversation.", + "type": { + "$ref": "483" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 207 + ], + "bodyType": { + "$ref": "485" + }, + "headers": [ + { + "name": "repeatabilityResult", + "nameInResponse": "Repeatability-Result", + "doc": "Indicates whether the repeatable request was accepted or rejected.", + "type": { + "$ref": "64" + } + }, { - "$id": "1216", - "kind": "string", - "type": { - "$ref": "185" - }, - "value": "0f0eb78e-a576-1dfc-b414-0f0756de3338" + "name": "clientRequestId", + "nameInResponse": "x-ms-client-request-id", + "doc": "An opaque, globally-unique, client-generated string identifier for the request.", + "type": { + "$id": "892", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "893", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + } } - ] - }, - "outboundDeliveryStrategy": { - "$id": "1217", - "kind": "string", - "type": { - "$ref": "96" - }, - "value": "allParticipants" - }, - "participants": { - "$id": "1218", - "kind": "array", - "type": { - "$ref": "689" - }, - "value": [ + ], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/messages/conversations/{conversationId}/participants:remove", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "ClientForAcsMessages.ConversationAdministrationClient.removeParticipants", + "decorators": [], + "examples": [ + { + "$id": "894", + "kind": "http", + "name": "remove a participant from a conversation", + "description": "remove a participant from a conversation", + "filePath": "2025-04-01-preview/ConversationThread_RemoveParticipants.json", + "parameters": [ { - "$id": "1219", - "kind": "model", - "type": { - "$ref": "743" - }, - "value": { - "$id": "1220", - "id": { - "$id": "1221", - "kind": "string", - "type": { - "$ref": "695" - }, - "value": "8:acs:uuid2" - }, - "displayName": { - "$id": "1222", - "kind": "string", - "type": { - "$ref": "699" - }, - "value": "Customer" - }, - "kind": { - "$id": "1223", - "kind": "string", - "type": { - "$ref": "745" - }, - "value": "external" + "parameter": { + "$ref": "876" }, - "contacts": { - "$id": "1224", - "kind": "array", - "type": { - "$ref": "750" - }, - "value": [ - { - "$id": "1225", - "kind": "model", - "type": { - "$ref": "735" - }, - "value": { - "$id": "1226", - "id": { - "$id": "1227", - "kind": "string", - "type": { - "$ref": "715" - }, - "value": "12345678901" - }, - "kind": { - "$id": "1228", - "kind": "string", - "type": { - "$ref": "737" - }, - "value": "whatsApp" - } - } + "value": { + "$id": "895", + "kind": "string", + "type": { + "$ref": "877" }, - { - "$id": "1229", - "kind": "model", - "type": { - "$ref": "719" - }, - "value": { - "$id": "1230", - "id": { - "$id": "1231", - "kind": "string", - "type": { - "$ref": "715" - }, - "value": "8:acs:uuid2" - }, - "kind": { - "$id": "1232", - "kind": "string", - "type": { - "$ref": "721" - }, - "value": "communication" - } - } - } - ] + "value": "2025-04-01-preview" } - } }, { - "$id": "1233", - "kind": "model", - "type": { - "$ref": "703" - }, - "value": { - "$id": "1234", - "id": { - "$id": "1235", - "kind": "string", - "type": { - "$ref": "695" - }, - "value": "8:acs:uuid1" - }, - "displayName": { - "$id": "1236", - "kind": "string", - "type": { - "$ref": "699" - }, - "value": "Support" + "parameter": { + "$ref": "879" }, - "kind": { - "$id": "1237", - "kind": "string", - "type": { - "$ref": "705" - }, - "value": "internal" - }, - "contact": { - "$id": "1238", - "kind": "model", - "type": { - "$ref": "719" - }, - "value": { - "$id": "1239", - "id": { - "$id": "1240", - "kind": "string", - "type": { - "$ref": "715" - }, - "value": "8:acs:uuid1" + "value": { + "$id": "896", + "kind": "string", + "type": { + "$ref": "880" }, - "kind": { - "$id": "1241", - "kind": "string", - "type": { - "$ref": "721" - }, - "value": "communication" - } - } + "value": "19:34adfa4f-cedf-4dc0-ba29-b6d1a69ab345@thread.v2" } - } - } - ] - } - } - }, - { - "$id": "1242", - "kind": "model", - "type": { - "$ref": "673" - }, - "value": { - "$id": "1243", - "id": { - "$id": "1244", - "kind": "string", - "type": { - "$ref": "675" - }, - "value": "19:111dfa4f-cedf-4dc0-ba29-b6d1a69ab345@thread.v2" - }, - "topic": { - "$id": "1245", - "kind": "string", - "type": { - "$ref": "679" - }, - "value": "Test" - }, - "deliveryChannelIds": { - "$id": "1246", - "kind": "array", - "type": { - "$ref": "184" - }, - "value": [ - { - "$id": "1247", - "kind": "string", - "type": { - "$ref": "185" - }, - "value": "0f0eb78e-a576-1dfc-b414-0f0756de3338" - } - ] - }, - "outboundDeliveryStrategy": { - "$id": "1248", - "kind": "string", - "type": { - "$ref": "96" - }, - "value": "allParticipants" - }, - "participants": { - "$id": "1249", - "kind": "array", - "type": { - "$ref": "689" - }, - "value": [ + }, { - "$id": "1250", - "kind": "model", - "type": { - "$ref": "743" - }, - "value": { - "$id": "1251", - "id": { - "$id": "1252", - "kind": "string", - "type": { - "$ref": "695" - }, - "value": "8:acs:uuid3" - }, - "displayName": { - "$id": "1253", - "kind": "string", - "type": { - "$ref": "699" - }, - "value": "Customer" + "parameter": { + "$ref": "891" }, - "kind": { - "$id": "1254", - "kind": "string", - "type": { - "$ref": "745" - }, - "value": "external" - }, - "contacts": { - "$id": "1255", - "kind": "array", - "type": { - "$ref": "750" - }, - "value": [ - { - "$id": "1256", - "kind": "model", - "type": { - "$ref": "735" - }, - "value": { - "$id": "1257", - "id": { - "$id": "1258", - "kind": "string", - "type": { - "$ref": "715" - }, - "value": "12331112222" - }, - "kind": { - "$id": "1259", - "kind": "string", - "type": { - "$ref": "737" - }, - "value": "whatsApp" - } - } + "value": { + "$id": "897", + "kind": "model", + "type": { + "$ref": "483" }, - { - "$id": "1260", - "kind": "model", - "type": { - "$ref": "719" - }, - "value": { - "$id": "1261", - "id": { - "$id": "1262", - "kind": "string", - "type": { - "$ref": "715" - }, - "value": "8:acs:uuid3" - }, - "kind": { - "$id": "1263", - "kind": "string", - "type": { - "$ref": "721" - }, - "value": "communication" + "value": { + "participantIds": { + "$id": "898", + "kind": "array", + "type": { + "$ref": "132" + }, + "value": [ + { + "$id": "899", + "kind": "string", + "type": { + "$ref": "133" + }, + "value": "8:acs:uuid2" + } + ] } - } } - ] } - } - }, + } + ], + "responses": [ { - "$id": "1264", - "kind": "model", - "type": { - "$ref": "703" - }, - "value": { - "$id": "1265", - "id": { - "$id": "1266", - "kind": "string", - "type": { - "$ref": "695" - }, - "value": "8:acs:uuid3" - }, - "displayName": { - "$id": "1267", - "kind": "string", - "type": { - "$ref": "699" - }, - "value": "Support" - }, - "kind": { - "$id": "1268", - "kind": "string", - "type": { - "$ref": "705" - }, - "value": "internal" + "response": { + "statusCodes": [ + 207 + ], + "bodyType": { + "$ref": "485" + }, + "headers": [ + { + "name": "repeatabilityResult", + "nameInResponse": "Repeatability-Result", + "doc": "Indicates whether the repeatable request was accepted or rejected.", + "type": { + "$ref": "64" + } + }, + { + "name": "clientRequestId", + "nameInResponse": "x-ms-client-request-id", + "doc": "An opaque, globally-unique, client-generated string identifier for the request.", + "type": { + "$ref": "892" + } + } + ], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] }, - "contact": { - "$id": "1269", - "kind": "model", - "type": { - "$ref": "719" - }, - "value": { - "$id": "1270", - "id": { - "$id": "1271", - "kind": "string", - "type": { - "$ref": "715" - }, - "value": "8:acs:uuid3" + "statusCode": 207, + "bodyValue": { + "$id": "900", + "kind": "model", + "type": { + "$ref": "485" }, - "kind": { - "$id": "1272", - "kind": "string", - "type": { - "$ref": "721" - }, - "value": "communication" + "value": { + "invalidParticipants": { + "$id": "901", + "kind": "array", + "type": { + "$ref": "478" + }, + "value": [] + } } - } } - } } - ] - } - } + ] } - ] + ] + }, + "parameters": [ + { + "$id": "902", + "name": "conversationId", + "nameInRequest": "conversationId", + "doc": "The conversation ID.", + "type": { + "$id": "903", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "904", + "name": "options", + "nameInRequest": "options", + "doc": "Details of the request body for removing participants from a conversation.", + "type": { + "$ref": "483" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "905", + "name": "repeatabilityRequestId", + "nameInRequest": "Repeatability-Request-ID", + "doc": "An opaque, globally-unique, client-generated string identifier for the request.", + "type": { + "$id": "906", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "907", + "name": "repeatabilityFirstSent", + "nameInRequest": "Repeatability-First-Sent", + "doc": "Specifies the date and time at which the request was first created.", + "type": { + "$id": "908", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc7231", + "wireType": { + "$id": "909", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "910", + "name": "clientRequestId", + "nameInRequest": "x-ms-client-request-id", + "doc": "An opaque, globally-unique, client-generated string identifier for the request.", + "type": { + "$id": "911", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "912", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "913", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "102" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "914", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "104" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false } - } - } - } - ] - } - ] - }, - "parameters": [ - { - "$id": "1273", - "name": "maxPageSize", - "nameInRequest": "maxPageSize", - "doc": "Number of objects to return per page.", - "type": { - "$id": "1274", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1275", - "name": "participantId", - "nameInRequest": "participantId", - "doc": "The participant user ID", - "type": { - "$id": "1276", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1277", - "name": "channelId", - "nameInRequest": "channelId", - "doc": "The id of channel", - "type": { - "$id": "1278", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "1279", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1280", - "name": "clientRequestId", - "nameInRequest": "x-ms-client-request-id", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1281", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "1282", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1283", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "142" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "1284", - "type": { - "$ref": "945" - }, - "resultSegments": [ - "value" - ] - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "ClientForAcsMessages.ConversationAdministrationClient.listConversations", - "pagingMetadata": { - "$id": "1285", - "itemPropertySegments": [ - "value" - ], - "nextLink": { - "$id": "1286", - "responseSegments": [ - "nextLink" - ], - "responseLocation": "Body" - } - } - }, - { - "$id": "1287", - "kind": "paging", - "name": "listMessages", - "accessibility": "public", - "apiVersions": [ - "2025-04-01-preview" - ], - "doc": "Retrieves list of conversation messages.", - "operation": { - "$id": "1288", - "name": "listMessages", - "resourceName": "ConversationMessageItem", - "doc": "Retrieves list of conversation messages.", - "accessibility": "public", - "parameters": [ - { - "$id": "1289", - "name": "apiVersion", - "nameInRequest": "api-version", - "doc": "The API version to use for this operation.", - "type": { - "$id": "1290", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": true, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Client", - "defaultValue": { - "$id": "1291", - "type": { - "$id": "1292", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "2025-04-01-preview" - }, - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1293", - "name": "conversationId", - "nameInRequest": "conversationId", - "doc": "The conversation ID.", - "type": { - "$id": "1294", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1295", - "name": "maxPageSize", - "nameInRequest": "maxPageSize", - "doc": "Number of objects to return per page.", - "type": { - "$id": "1296", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1297", - "name": "participantId", - "nameInRequest": "participantId", - "doc": "The participant user ID", - "type": { - "$id": "1298", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1299", - "name": "clientRequestId", - "nameInRequest": "x-ms-client-request-id", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1300", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "1301", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1302", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "144" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "1303", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "956" - }, - "headers": [ - { - "$id": "1304", - "name": "clientRequestId", - "nameInResponse": "x-ms-client-request-id", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1305", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "1306", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "decorators": [] - } - } - ], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/messages/conversations/{conversationId}/messages", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "ClientForAcsMessages.ConversationAdministrationClient.listMessages", - "decorators": [], - "examples": [ - { - "$id": "1307", - "kind": "http", - "name": "Retrieves list of conversation messages", - "description": "Retrieves list of conversation messages", - "filePath": "2025-04-01-preview/ConversationThread_ListMessages.json", - "parameters": [ - { - "$id": "1308", - "parameter": { - "$ref": "1289" - }, - "value": { - "$id": "1309", - "kind": "string", - "type": { - "$ref": "1290" - }, - "value": "2025-04-01-preview" - } - }, - { - "$id": "1310", - "parameter": { - "$ref": "1293" - }, - "value": { - "$id": "1311", - "kind": "string", - "type": { - "$ref": "1294" - }, - "value": "19:34adfa4f-cedf-4dc0-ba29-b6d1a69ab345@thread.v2" - } - } - ], - "responses": [ - { - "$id": "1312", + ], "response": { - "$ref": "1303" - }, - "statusCode": 200, - "bodyValue": { - "$id": "1313", - "kind": "model", - "type": { - "$ref": "956" - }, - "value": { - "$id": "1314", - "value": { - "$id": "1315", - "kind": "array", - "type": { - "$ref": "958" - }, - "value": [ - { - "$id": "1316", - "kind": "model", - "type": { - "$ref": "767" - }, - "value": { - "$id": "1317", - "id": { - "$id": "1318", - "kind": "string", - "type": { - "$ref": "769" - }, - "value": "1593108077690" - }, - "sequenceId": { - "$id": "1319", - "kind": "number", - "type": { - "$ref": "773" - }, - "value": 6 - }, - "message": { - "$id": "1320", - "kind": "model", - "type": { - "$ref": "782" - }, - "value": { - "$id": "1321", - "kind": { - "$id": "1322", - "kind": "string", - "type": { - "$ref": "191" - }, - "value": "text" + "type": { + "$ref": "485" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "ClientForAcsMessages.ConversationAdministrationClient.removeParticipants" + }, + { + "$id": "915", + "kind": "basic", + "name": "analyzeConversation", + "accessibility": "public", + "apiVersions": [ + "2025-04-01-preview" + ], + "doc": "Get AI Analysis of a conversation.", + "operation": { + "$id": "916", + "name": "analyzeConversation", + "resourceName": "ConversationAdministrationClient", + "doc": "Get AI Analysis of a conversation.", + "accessibility": "public", + "parameters": [ + { + "$id": "917", + "name": "apiVersion", + "nameInRequest": "api-version", + "doc": "The API version to use for this operation.", + "type": { + "$id": "918", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": true, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Client", + "defaultValue": { + "type": { + "$id": "919", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "2025-04-01-preview" + }, + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "920", + "name": "conversationId", + "nameInRequest": "conversationId", + "doc": "The conversation ID.", + "type": { + "$id": "921", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "922", + "name": "repeatabilityRequestId", + "nameInRequest": "Repeatability-Request-ID", + "doc": "An opaque, globally-unique, client-generated string identifier for the request.", + "type": { + "$id": "923", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "924", + "name": "repeatabilityFirstSent", + "nameInRequest": "Repeatability-First-Sent", + "doc": "Specifies the date and time at which the request was first created.", + "type": { + "$id": "925", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc7231", + "wireType": { + "$id": "926", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "content": { - "$id": "1323", - "kind": "string", - "type": { - "$ref": "787" - }, - "value": "My order did not arrive" - } - } - }, - "senderDisplayName": { - "$id": "1324", - "kind": "string", - "type": { - "$ref": "848" - }, - "value": "Jane" - }, - "createdOn": { - "$id": "1325", - "kind": "string", - "type": { - "$ref": "856" - }, - "value": "2020-06-25T18:01:17.6900000Z" - }, - "senderCommunicationIdentifier": { - "$id": "1326", - "kind": "string", - "type": { - "$ref": "852" - }, - "value": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b" - } - } - }, - { - "$id": "1327", - "kind": "model", - "type": { - "$ref": "767" - }, - "value": { - "$id": "1328", - "id": { - "$id": "1329", - "kind": "string", - "type": { - "$ref": "769" - }, - "value": "1593107077690" - }, - "sequenceId": { - "$id": "1330", - "kind": "number", - "type": { - "$ref": "773" - }, - "value": 5 - }, - "message": { - "$id": "1331", - "kind": "model", - "type": { - "$ref": "782" - }, - "value": { - "$id": "1332", - "kind": { - "$id": "1333", - "kind": "string", - "type": { - "$ref": "191" - }, - "value": "text" + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "927", + "name": "clientRequestId", + "nameInRequest": "x-ms-client-request-id", + "doc": "An opaque, globally-unique, client-generated string identifier for the request.", + "type": { + "$id": "928", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "929", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "930", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "106" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "487" + }, + "headers": [ + { + "name": "repeatabilityResult", + "nameInResponse": "Repeatability-Result", + "doc": "Indicates whether the repeatable request was accepted or rejected.", + "type": { + "$ref": "64" + } }, - "content": { - "$id": "1334", - "kind": "string", - "type": { - "$ref": "787" - }, - "value": "Hi I need help" + { + "name": "clientRequestId", + "nameInResponse": "x-ms-client-request-id", + "doc": "An opaque, globally-unique, client-generated string identifier for the request.", + "type": { + "$id": "931", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "932", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + } } - } - }, - "senderDisplayName": { - "$id": "1335", - "kind": "string", - "type": { - "$ref": "848" - }, - "value": "Jane" - }, - "createdOn": { - "$id": "1336", - "kind": "string", - "type": { - "$ref": "856" - }, - "value": "2020-06-25T17:44:37.6830000Z" - }, - "senderCommunicationIdentifier": { - "$id": "1337", - "kind": "string", - "type": { - "$ref": "852" - }, - "value": "8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b" - } - } + ], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] } - ] - } - } - } - } - ] - } - ] - }, - "parameters": [ - { - "$id": "1338", - "name": "conversationId", - "nameInRequest": "conversationId", - "doc": "The conversation ID.", - "type": { - "$id": "1339", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1340", - "name": "maxPageSize", - "nameInRequest": "maxPageSize", - "doc": "Number of objects to return per page.", - "type": { - "$id": "1341", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1342", - "name": "participantId", - "nameInRequest": "participantId", - "doc": "The participant user ID", - "type": { - "$id": "1343", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1344", - "name": "clientRequestId", - "nameInRequest": "x-ms-client-request-id", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1345", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "1346", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1347", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "144" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "1348", - "type": { - "$ref": "958" - }, - "resultSegments": [ - "value" - ] - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "ClientForAcsMessages.ConversationAdministrationClient.listMessages", - "pagingMetadata": { - "$id": "1349", - "itemPropertySegments": [ - "value" - ], - "nextLink": { - "$id": "1350", - "responseSegments": [ - "nextLink" - ], - "responseLocation": "Body" - } - } - }, - { - "$id": "1351", - "kind": "basic", - "name": "addParticipants", - "accessibility": "public", - "apiVersions": [ - "2025-04-01-preview" - ], - "doc": "Adds participants to a specific conversation.", - "operation": { - "$id": "1352", - "name": "addParticipants", - "resourceName": "ConversationAdministrationClient", - "doc": "Adds participants to a specific conversation.", - "accessibility": "public", - "parameters": [ - { - "$id": "1353", - "name": "apiVersion", - "nameInRequest": "api-version", - "doc": "The API version to use for this operation.", - "type": { - "$id": "1354", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": true, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Client", - "defaultValue": { - "$id": "1355", - "type": { - "$id": "1356", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "2025-04-01-preview" - }, - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1357", - "name": "conversationId", - "nameInRequest": "conversationId", - "doc": "The conversation ID.", - "type": { - "$id": "1358", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1359", - "name": "repeatabilityRequestId", - "nameInRequest": "Repeatability-Request-ID", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1360", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1361", - "name": "repeatabilityFirstSent", - "nameInRequest": "Repeatability-First-Sent", - "doc": "Specifies the date and time at which the request was first created.", - "type": { - "$id": "1362", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc7231", - "wireType": { - "$id": "1363", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1364", - "name": "clientRequestId", - "nameInRequest": "x-ms-client-request-id", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1365", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "1366", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1367", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "146" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1368", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "148" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1369", - "name": "options", - "nameInRequest": "options", - "doc": "Details of the payload for adding participants to a conversation.", - "type": { - "$ref": "860" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "1370", - "statusCodes": [ - 207 - ], - "bodyType": { - "$ref": "864" - }, - "headers": [ - { - "$id": "1371", - "name": "repeatabilityResult", - "nameInResponse": "Repeatability-Result", - "doc": "Indicates whether the repeatable request was accepted or rejected.", - "type": { - "$ref": "116" - } - }, - { - "$id": "1372", - "name": "clientRequestId", - "nameInResponse": "x-ms-client-request-id", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1373", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "1374", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "decorators": [] - } - } - ], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/messages/conversations/{conversationId}/participants:add", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "ClientForAcsMessages.ConversationAdministrationClient.addParticipants", - "decorators": [], - "examples": [ - { - "$id": "1375", - "kind": "http", - "name": "Adds participants to a specific conversation", - "description": "Adds participants to a specific conversation", - "filePath": "2025-04-01-preview/ConversationThread_AddParticipants.json", - "parameters": [ - { - "$id": "1376", - "parameter": { - "$ref": "1353" - }, - "value": { - "$id": "1377", - "kind": "string", - "type": { - "$ref": "1354" - }, - "value": "2025-04-01-preview" - } - }, - { - "$id": "1378", - "parameter": { - "$ref": "1357" - }, - "value": { - "$id": "1379", - "kind": "string", - "type": { - "$ref": "1358" - }, - "value": "19:34adfa4f-cedf-4dc0-ba29-b6d1a69ab345@thread.v2" - } - }, - { - "$id": "1380", - "parameter": { - "$ref": "1369" - }, - "value": { - "$id": "1381", - "kind": "model", - "type": { - "$ref": "860" - }, - "value": { - "$id": "1382", - "participants": { - "$id": "1383", - "kind": "array", - "type": { - "$ref": "689" - }, - "value": [ - { - "$id": "1384", - "kind": "model", - "type": { - "$ref": "743" - }, - "value": { - "$id": "1385", - "displayName": { - "$id": "1386", - "kind": "string", - "type": { - "$ref": "699" - }, - "value": "Customer" - }, - "kind": { - "$id": "1387", - "kind": "string", - "type": { - "$ref": "745" - }, - "value": "external" - }, - "contacts": { - "$id": "1388", - "kind": "array", - "type": { - "$ref": "750" - }, - "value": [ + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/messages/conversations/{conversationId}:analyze", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "ClientForAcsMessages.ConversationAdministrationClient.analyzeConversation", + "decorators": [], + "examples": [ + { + "$id": "933", + "kind": "http", + "name": "Get AI Analysis of a conversation", + "description": "Get AI Analysis of a conversation", + "filePath": "2025-04-01-preview/ConversationThread_AnalyzeConversation.json", + "parameters": [ { - "$id": "1389", - "kind": "model", - "type": { - "$ref": "735" - }, - "value": { - "$id": "1390", - "id": { - "$id": "1391", - "kind": "string", - "type": { - "$ref": "715" - }, - "value": "12345678901" + "parameter": { + "$ref": "917" }, - "kind": { - "$id": "1392", - "kind": "string", - "type": { - "$ref": "737" - }, - "value": "whatsApp" + "value": { + "$id": "934", + "kind": "string", + "type": { + "$ref": "918" + }, + "value": "2025-04-01-preview" } - } - } - ] - } - } - }, - { - "$id": "1393", - "kind": "model", - "type": { - "$ref": "703" - }, - "value": { - "$id": "1394", - "displayName": { - "$id": "1395", - "kind": "string", - "type": { - "$ref": "699" - }, - "value": "Support" - }, - "kind": { - "$id": "1396", - "kind": "string", - "type": { - "$ref": "705" - }, - "value": "internal" - }, - "contact": { - "$id": "1397", - "kind": "model", - "type": { - "$ref": "719" - }, - "value": { - "$id": "1398", - "id": { - "$id": "1399", - "kind": "string", - "type": { - "$ref": "715" - }, - "value": "8:acs:uuid1" }, - "kind": { - "$id": "1400", - "kind": "string", - "type": { - "$ref": "721" - }, - "value": "communication" + { + "parameter": { + "$ref": "920" + }, + "value": { + "$id": "935", + "kind": "string", + "type": { + "$ref": "921" + }, + "value": "19:34adfa4f-cedf-4dc0-ba29-b6d1a69ab345@thread.v2" + } } - } - } - } - } - ] - } - } - } - } - ], - "responses": [ - { - "$id": "1401", - "response": { - "$ref": "1370" - }, - "statusCode": 207, - "bodyValue": { - "$id": "1402", - "kind": "model", - "type": { - "$ref": "864" - }, - "value": { - "$id": "1403", - "invalidParticipants": { - "$id": "1404", - "kind": "array", - "type": { - "$ref": "866" - }, - "value": [] - } - } - } - } - ] - } - ] - }, - "parameters": [ - { - "$id": "1405", - "name": "conversationId", - "nameInRequest": "conversationId", - "doc": "The conversation ID.", - "type": { - "$id": "1406", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1407", - "name": "options", - "nameInRequest": "options", - "doc": "Details of the payload for adding participants to a conversation.", - "type": { - "$ref": "860" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1408", - "name": "repeatabilityRequestId", - "nameInRequest": "Repeatability-Request-ID", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1409", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1410", - "name": "repeatabilityFirstSent", - "nameInRequest": "Repeatability-First-Sent", - "doc": "Specifies the date and time at which the request was first created.", - "type": { - "$id": "1411", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc7231", - "wireType": { - "$id": "1412", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1413", - "name": "clientRequestId", - "nameInRequest": "x-ms-client-request-id", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1414", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "1415", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1416", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "146" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1417", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "148" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "1418", - "type": { - "$ref": "864" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "ClientForAcsMessages.ConversationAdministrationClient.addParticipants" - }, - { - "$id": "1419", - "kind": "basic", - "name": "removeParticipants", - "accessibility": "public", - "apiVersions": [ - "2025-04-01-preview" - ], - "doc": "remove a participant from a conversation", - "operation": { - "$id": "1420", - "name": "removeParticipants", - "resourceName": "ConversationAdministrationClient", - "doc": "remove a participant from a conversation", - "accessibility": "public", - "parameters": [ - { - "$id": "1421", - "name": "apiVersion", - "nameInRequest": "api-version", - "doc": "The API version to use for this operation.", - "type": { - "$id": "1422", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": true, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Client", - "defaultValue": { - "$id": "1423", - "type": { - "$id": "1424", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "2025-04-01-preview" - }, - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1425", - "name": "conversationId", - "nameInRequest": "conversationId", - "doc": "The conversation ID.", - "type": { - "$id": "1426", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1427", - "name": "repeatabilityRequestId", - "nameInRequest": "Repeatability-Request-ID", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1428", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1429", - "name": "repeatabilityFirstSent", - "nameInRequest": "Repeatability-First-Sent", - "doc": "Specifies the date and time at which the request was first created.", - "type": { - "$id": "1430", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc7231", - "wireType": { - "$id": "1431", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1432", - "name": "clientRequestId", - "nameInRequest": "x-ms-client-request-id", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1433", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "1434", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1435", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "150" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1436", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "152" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1437", - "name": "options", - "nameInRequest": "options", - "doc": "Details of the request body for removing participants from a conversation.", - "type": { - "$ref": "905" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "1438", - "statusCodes": [ - 207 - ], - "bodyType": { - "$ref": "909" - }, - "headers": [ - { - "$id": "1439", - "name": "repeatabilityResult", - "nameInResponse": "Repeatability-Result", - "doc": "Indicates whether the repeatable request was accepted or rejected.", - "type": { - "$ref": "116" - } - }, - { - "$id": "1440", - "name": "clientRequestId", - "nameInResponse": "x-ms-client-request-id", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1441", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "1442", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "decorators": [] - } - } - ], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/messages/conversations/{conversationId}/participants:remove", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "ClientForAcsMessages.ConversationAdministrationClient.removeParticipants", - "decorators": [], - "examples": [ - { - "$id": "1443", - "kind": "http", - "name": "remove a participant from a conversation", - "description": "remove a participant from a conversation", - "filePath": "2025-04-01-preview/ConversationThread_RemoveParticipants.json", - "parameters": [ - { - "$id": "1444", - "parameter": { - "$ref": "1421" - }, - "value": { - "$id": "1445", - "kind": "string", - "type": { - "$ref": "1422" - }, - "value": "2025-04-01-preview" - } - }, - { - "$id": "1446", - "parameter": { - "$ref": "1425" - }, - "value": { - "$id": "1447", - "kind": "string", - "type": { - "$ref": "1426" - }, - "value": "19:34adfa4f-cedf-4dc0-ba29-b6d1a69ab345@thread.v2" - } - }, - { - "$id": "1448", - "parameter": { - "$ref": "1437" - }, - "value": { - "$id": "1449", - "kind": "model", - "type": { - "$ref": "905" - }, - "value": { - "$id": "1450", - "participantIds": { - "$id": "1451", - "kind": "array", - "type": { - "$ref": "184" - }, - "value": [ - { - "$id": "1452", - "kind": "string", - "type": { - "$ref": "185" - }, - "value": "8:acs:uuid2" + ], + "responses": [ + { + "response": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "487" + }, + "headers": [ + { + "name": "repeatabilityResult", + "nameInResponse": "Repeatability-Result", + "doc": "Indicates whether the repeatable request was accepted or rejected.", + "type": { + "$ref": "64" + } + }, + { + "name": "clientRequestId", + "nameInResponse": "x-ms-client-request-id", + "doc": "An opaque, globally-unique, client-generated string identifier for the request.", + "type": { + "$ref": "931" + } + } + ], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + "statusCode": 200, + "bodyValue": { + "$id": "936", + "kind": "model", + "type": { + "$ref": "487" + }, + "value": { + "summary": { + "$id": "937", + "kind": "string", + "type": { + "$ref": "489" + }, + "value": "The customer needs help." + } + } + } + } + ] } - ] + ] + }, + "parameters": [ + { + "$id": "938", + "name": "conversationId", + "nameInRequest": "conversationId", + "doc": "The conversation ID.", + "type": { + "$id": "939", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "940", + "name": "repeatabilityRequestId", + "nameInRequest": "Repeatability-Request-ID", + "doc": "An opaque, globally-unique, client-generated string identifier for the request.", + "type": { + "$id": "941", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "942", + "name": "repeatabilityFirstSent", + "nameInRequest": "Repeatability-First-Sent", + "doc": "Specifies the date and time at which the request was first created.", + "type": { + "$id": "943", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc7231", + "wireType": { + "$id": "944", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "945", + "name": "clientRequestId", + "nameInRequest": "x-ms-client-request-id", + "doc": "An opaque, globally-unique, client-generated string identifier for the request.", + "type": { + "$id": "946", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "947", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "948", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "106" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false } - } - } - } - ], - "responses": [ - { - "$id": "1453", + ], "response": { - "$ref": "1438" - }, - "statusCode": 207, - "bodyValue": { - "$id": "1454", - "kind": "model", - "type": { - "$ref": "909" - }, - "value": { - "$id": "1455", - "invalidParticipants": { - "$id": "1456", - "kind": "array", - "type": { - "$ref": "866" - }, - "value": [] + "type": { + "$ref": "487" } - } - } - } - ] - } - ] - }, - "parameters": [ - { - "$id": "1457", - "name": "conversationId", - "nameInRequest": "conversationId", - "doc": "The conversation ID.", - "type": { - "$id": "1458", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1459", - "name": "options", - "nameInRequest": "options", - "doc": "Details of the request body for removing participants from a conversation.", - "type": { - "$ref": "905" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1460", - "name": "repeatabilityRequestId", - "nameInRequest": "Repeatability-Request-ID", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1461", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1462", - "name": "repeatabilityFirstSent", - "nameInRequest": "Repeatability-First-Sent", - "doc": "Specifies the date and time at which the request was first created.", - "type": { - "$id": "1463", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc7231", - "wireType": { - "$id": "1464", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1465", - "name": "clientRequestId", - "nameInRequest": "x-ms-client-request-id", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1466", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "1467", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1468", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "150" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1469", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "152" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "1470", - "type": { - "$ref": "909" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "ClientForAcsMessages.ConversationAdministrationClient.removeParticipants" - }, - { - "$id": "1471", - "kind": "basic", - "name": "analyzeConversation", - "accessibility": "public", - "apiVersions": [ - "2025-04-01-preview" - ], - "doc": "Get AI Analysis of a conversation.", - "operation": { - "$id": "1472", - "name": "analyzeConversation", - "resourceName": "ConversationAdministrationClient", - "doc": "Get AI Analysis of a conversation.", - "accessibility": "public", - "parameters": [ - { - "$id": "1473", - "name": "apiVersion", - "nameInRequest": "api-version", - "doc": "The API version to use for this operation.", - "type": { - "$id": "1474", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": true, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Client", - "defaultValue": { - "$id": "1475", - "type": { - "$id": "1476", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "2025-04-01-preview" - }, - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1477", - "name": "conversationId", - "nameInRequest": "conversationId", - "doc": "The conversation ID.", - "type": { - "$id": "1478", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1479", - "name": "repeatabilityRequestId", - "nameInRequest": "Repeatability-Request-ID", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1480", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1481", - "name": "repeatabilityFirstSent", - "nameInRequest": "Repeatability-First-Sent", - "doc": "Specifies the date and time at which the request was first created.", - "type": { - "$id": "1482", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc7231", - "wireType": { - "$id": "1483", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1484", - "name": "clientRequestId", - "nameInRequest": "x-ms-client-request-id", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1485", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "1486", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1487", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "154" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "ClientForAcsMessages.ConversationAdministrationClient.analyzeConversation" + } ], - "responses": [ - { - "$id": "1488", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "913" - }, - "headers": [ - { - "$id": "1489", - "name": "repeatabilityResult", - "nameInResponse": "Repeatability-Result", - "doc": "Indicates whether the repeatable request was accepted or rejected.", - "type": { - "$ref": "116" - } - }, - { - "$id": "1490", - "name": "clientRequestId", - "nameInResponse": "x-ms-client-request-id", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", + "parameters": [ + { + "$id": "949", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "The communication resource, for example https://my-resource.communication.azure.com", "type": { - "$id": "1491", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "1492", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "decorators": [] - } - } - ], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } + "$id": "950", + "kind": "url", + "name": "endpoint", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "serverUrlTemplate": "{endpoint}" + } ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/messages/conversations/{conversationId}:analyze", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "ClientForAcsMessages.ConversationAdministrationClient.analyzeConversation", "decorators": [], - "examples": [ - { - "$id": "1493", - "kind": "http", - "name": "Get AI Analysis of a conversation", - "description": "Get AI Analysis of a conversation", - "filePath": "2025-04-01-preview/ConversationThread_AnalyzeConversation.json", - "parameters": [ - { - "$id": "1494", - "parameter": { - "$ref": "1473" - }, - "value": { - "$id": "1495", - "kind": "string", - "type": { - "$ref": "1474" - }, - "value": "2025-04-01-preview" - } - }, - { - "$id": "1496", - "parameter": { - "$ref": "1477" - }, - "value": { - "$id": "1497", - "kind": "string", - "type": { - "$ref": "1478" - }, - "value": "19:34adfa4f-cedf-4dc0-ba29-b6d1a69ab345@thread.v2" - } - } - ], - "responses": [ - { - "$id": "1498", - "response": { - "$ref": "1488" - }, - "statusCode": 200, - "bodyValue": { - "$id": "1499", - "kind": "model", - "type": { - "$ref": "913" - }, - "value": { - "$id": "1500", - "summary": { - "$id": "1501", - "kind": "string", - "type": { - "$ref": "915" - }, - "value": "The customer needs help." - } - } - } - } - ] - } + "crossLanguageDefinitionId": "ClientForAcsMessages.ConversationAdministrationClient", + "apiVersions": [ + "2025-04-01-preview" ] - }, - "parameters": [ - { - "$id": "1502", - "name": "conversationId", - "nameInRequest": "conversationId", - "doc": "The conversation ID.", - "type": { - "$id": "1503", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1504", - "name": "repeatabilityRequestId", - "nameInRequest": "Repeatability-Request-ID", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1505", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1506", - "name": "repeatabilityFirstSent", - "nameInRequest": "Repeatability-First-Sent", - "doc": "Specifies the date and time at which the request was first created.", - "type": { - "$id": "1507", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc7231", - "wireType": { - "$id": "1508", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1509", - "name": "clientRequestId", - "nameInRequest": "x-ms-client-request-id", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1510", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "1511", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1512", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "154" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "1513", - "type": { - "$ref": "913" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "ClientForAcsMessages.ConversationAdministrationClient.analyzeConversation" - } - ], - "parameters": [ - { - "$id": "1514", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "The communication resource, for example https://my-resource.communication.azure.com", - "type": { - "$id": "1515", - "kind": "url", - "name": "endpoint", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "serverUrlTemplate": "{endpoint}" - } - ], - "decorators": [], - "crossLanguageDefinitionId": "ClientForAcsMessages.ConversationAdministrationClient", - "apiVersions": [ - "2025-04-01-preview" - ] - }, - { - "$id": "1516", - "kind": "client", - "name": "ConversationThreadClient", - "namespace": "Azure.Communication.Messages", - "methods": [ - { - "$id": "1517", - "kind": "basic", - "name": "addParticipants", - "accessibility": "public", - "apiVersions": [ - "2025-04-01-preview" - ], - "doc": "Adds participants to a specific conversation.", - "operation": { - "$id": "1518", - "name": "addParticipants", - "resourceName": "ConversationThreadClient", - "doc": "Adds participants to a specific conversation.", - "accessibility": "public", - "parameters": [ - { - "$id": "1519", - "name": "apiVersion", - "nameInRequest": "api-version", - "doc": "The API version to use for this operation.", - "type": { - "$id": "1520", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": true, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Client", - "defaultValue": { - "$id": "1521", - "type": { - "$id": "1522", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "2025-04-01-preview" - }, - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1523", - "name": "conversationId", - "nameInRequest": "conversationId", - "doc": "The conversation ID.", - "type": { - "$id": "1524", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1525", - "name": "repeatabilityRequestId", - "nameInRequest": "Repeatability-Request-ID", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1526", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1527", - "name": "repeatabilityFirstSent", - "nameInRequest": "Repeatability-First-Sent", - "doc": "Specifies the date and time at which the request was first created.", - "type": { - "$id": "1528", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc7231", - "wireType": { - "$id": "1529", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1530", - "name": "clientRequestId", - "nameInRequest": "x-ms-client-request-id", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1531", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "1532", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1533", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "156" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1534", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "158" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1535", - "name": "options", - "nameInRequest": "options", - "doc": "Details of the payload for adding participants to a conversation.", - "type": { - "$ref": "860" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "1536", - "statusCodes": [ - 207 - ], - "bodyType": { - "$ref": "864" - }, - "headers": [ - { - "$id": "1537", - "name": "repeatabilityResult", - "nameInResponse": "Repeatability-Result", - "doc": "Indicates whether the repeatable request was accepted or rejected.", - "type": { - "$ref": "116" - } - }, - { - "$id": "1538", - "name": "clientRequestId", - "nameInResponse": "x-ms-client-request-id", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1539", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "1540", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "decorators": [] - } - } - ], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/messages/conversations/{conversationId}/participants:add", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ConversationThreadClient.addParticipants", - "decorators": [] - }, - "parameters": [ - { - "$id": "1541", - "name": "conversationId", - "nameInRequest": "conversationId", - "doc": "The conversation ID.", - "type": { - "$id": "1542", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1543", - "name": "options", - "nameInRequest": "options", - "doc": "Details of the payload for adding participants to a conversation.", - "type": { - "$ref": "860" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1544", - "name": "repeatabilityRequestId", - "nameInRequest": "Repeatability-Request-ID", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1545", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1546", - "name": "repeatabilityFirstSent", - "nameInRequest": "Repeatability-First-Sent", - "doc": "Specifies the date and time at which the request was first created.", - "type": { - "$id": "1547", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc7231", - "wireType": { - "$id": "1548", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1549", - "name": "clientRequestId", - "nameInRequest": "x-ms-client-request-id", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1550", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "1551", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1552", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "156" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1553", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "158" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "1554", - "type": { - "$ref": "864" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ConversationThreadClient.addParticipants" }, { - "$id": "1555", - "kind": "basic", - "name": "removeParticipants", - "accessibility": "public", - "apiVersions": [ - "2025-04-01-preview" - ], - "doc": "remove a participant from a conversation", - "operation": { - "$id": "1556", - "name": "removeParticipants", - "resourceName": "ConversationThreadClient", - "doc": "remove a participant from a conversation", - "accessibility": "public", - "parameters": [ - { - "$id": "1557", - "name": "apiVersion", - "nameInRequest": "api-version", - "doc": "The API version to use for this operation.", - "type": { - "$id": "1558", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": true, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Client", - "defaultValue": { - "$id": "1559", - "type": { - "$id": "1560", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "2025-04-01-preview" - }, - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1561", - "name": "conversationId", - "nameInRequest": "conversationId", - "doc": "The conversation ID.", - "type": { - "$id": "1562", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1563", - "name": "repeatabilityRequestId", - "nameInRequest": "Repeatability-Request-ID", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1564", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1565", - "name": "repeatabilityFirstSent", - "nameInRequest": "Repeatability-First-Sent", - "doc": "Specifies the date and time at which the request was first created.", - "type": { - "$id": "1566", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc7231", - "wireType": { - "$id": "1567", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1568", - "name": "clientRequestId", - "nameInRequest": "x-ms-client-request-id", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1569", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "1570", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1571", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "160" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1572", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "162" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1573", - "name": "options", - "nameInRequest": "options", - "doc": "Details of the request body for removing participants from a conversation.", - "type": { - "$ref": "905" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "1574", - "statusCodes": [ - 207 - ], - "bodyType": { - "$ref": "909" - }, - "headers": [ - { - "$id": "1575", - "name": "repeatabilityResult", - "nameInResponse": "Repeatability-Result", - "doc": "Indicates whether the repeatable request was accepted or rejected.", - "type": { - "$ref": "116" - } - }, - { - "$id": "1576", - "name": "clientRequestId", - "nameInResponse": "x-ms-client-request-id", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1577", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "1578", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "951", + "kind": "client", + "name": "ConversationThreadClient", + "namespace": "Azure.Communication.Messages", + "methods": [ + { + "$id": "952", + "kind": "basic", + "name": "addParticipants", + "accessibility": "public", + "apiVersions": [ + "2025-04-01-preview" + ], + "doc": "Adds participants to a specific conversation.", + "operation": { + "$id": "953", + "name": "addParticipants", + "resourceName": "ConversationThreadClient", + "doc": "Adds participants to a specific conversation.", + "accessibility": "public", + "parameters": [ + { + "$id": "954", + "name": "apiVersion", + "nameInRequest": "api-version", + "doc": "The API version to use for this operation.", + "type": { + "$id": "955", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": true, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Client", + "defaultValue": { + "type": { + "$id": "956", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "2025-04-01-preview" + }, + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "957", + "name": "conversationId", + "nameInRequest": "conversationId", + "doc": "The conversation ID.", + "type": { + "$id": "958", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "959", + "name": "repeatabilityRequestId", + "nameInRequest": "Repeatability-Request-ID", + "doc": "An opaque, globally-unique, client-generated string identifier for the request.", + "type": { + "$id": "960", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "961", + "name": "repeatabilityFirstSent", + "nameInRequest": "Repeatability-First-Sent", + "doc": "Specifies the date and time at which the request was first created.", + "type": { + "$id": "962", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc7231", + "wireType": { + "$id": "963", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "964", + "name": "clientRequestId", + "nameInRequest": "x-ms-client-request-id", + "doc": "An opaque, globally-unique, client-generated string identifier for the request.", + "type": { + "$id": "965", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "966", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "967", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "108" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "968", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "110" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "969", + "name": "options", + "nameInRequest": "options", + "doc": "Details of the payload for adding participants to a conversation.", + "type": { + "$ref": "474" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 207 + ], + "bodyType": { + "$ref": "476" + }, + "headers": [ + { + "name": "repeatabilityResult", + "nameInResponse": "Repeatability-Result", + "doc": "Indicates whether the repeatable request was accepted or rejected.", + "type": { + "$ref": "64" + } + }, + { + "name": "clientRequestId", + "nameInResponse": "x-ms-client-request-id", + "doc": "An opaque, globally-unique, client-generated string identifier for the request.", + "type": { + "$id": "970", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "971", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + } + } + ], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/messages/conversations/{conversationId}/participants:add", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ConversationThreadClient.addParticipants", "decorators": [] - }, - "decorators": [] - } - } - ], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/messages/conversations/{conversationId}/participants:remove", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ConversationThreadClient.removeParticipants", - "decorators": [] - }, - "parameters": [ - { - "$id": "1579", - "name": "conversationId", - "nameInRequest": "conversationId", - "doc": "The conversation ID.", - "type": { - "$id": "1580", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1581", - "name": "options", - "nameInRequest": "options", - "doc": "Details of the request body for removing participants from a conversation.", - "type": { - "$ref": "905" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1582", - "name": "repeatabilityRequestId", - "nameInRequest": "Repeatability-Request-ID", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1583", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1584", - "name": "repeatabilityFirstSent", - "nameInRequest": "Repeatability-First-Sent", - "doc": "Specifies the date and time at which the request was first created.", - "type": { - "$id": "1585", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc7231", - "wireType": { - "$id": "1586", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1587", - "name": "clientRequestId", - "nameInRequest": "x-ms-client-request-id", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1588", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "1589", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1590", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "160" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1591", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "162" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "1592", - "type": { - "$ref": "909" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ConversationThreadClient.removeParticipants" - }, - { - "$id": "1593", - "kind": "paging", - "name": "listConversations", - "accessibility": "public", - "apiVersions": [ - "2025-04-01-preview" - ], - "doc": "Retrieves list of conversations.", - "operation": { - "$id": "1594", - "name": "listConversations", - "resourceName": "Conversation", - "doc": "Retrieves list of conversations.", - "accessibility": "public", - "parameters": [ - { - "$id": "1595", - "name": "apiVersion", - "nameInRequest": "api-version", - "doc": "The API version to use for this operation.", - "type": { - "$id": "1596", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": true, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Client", - "defaultValue": { - "$id": "1597", - "type": { - "$id": "1598", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "2025-04-01-preview" - }, - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1599", - "name": "maxPageSize", - "nameInRequest": "maxPageSize", - "doc": "Number of objects to return per page.", - "type": { - "$id": "1600", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1601", - "name": "participantId", - "nameInRequest": "participantId", - "doc": "The participant user ID", - "type": { - "$id": "1602", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1603", - "name": "channelId", - "nameInRequest": "channelId", - "doc": "The id of channel", - "type": { - "$id": "1604", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "1605", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1606", - "name": "clientRequestId", - "nameInRequest": "x-ms-client-request-id", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1607", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "1608", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1609", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "164" + }, + "parameters": [ + { + "$id": "972", + "name": "conversationId", + "nameInRequest": "conversationId", + "doc": "The conversation ID.", + "type": { + "$id": "973", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "974", + "name": "options", + "nameInRequest": "options", + "doc": "Details of the payload for adding participants to a conversation.", + "type": { + "$ref": "474" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "975", + "name": "repeatabilityRequestId", + "nameInRequest": "Repeatability-Request-ID", + "doc": "An opaque, globally-unique, client-generated string identifier for the request.", + "type": { + "$id": "976", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "977", + "name": "repeatabilityFirstSent", + "nameInRequest": "Repeatability-First-Sent", + "doc": "Specifies the date and time at which the request was first created.", + "type": { + "$id": "978", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc7231", + "wireType": { + "$id": "979", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "980", + "name": "clientRequestId", + "nameInRequest": "x-ms-client-request-id", + "doc": "An opaque, globally-unique, client-generated string identifier for the request.", + "type": { + "$id": "981", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "982", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "983", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "108" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "984", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "110" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "476" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ConversationThreadClient.addParticipants" }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "1610", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "943" + { + "$id": "985", + "kind": "basic", + "name": "removeParticipants", + "accessibility": "public", + "apiVersions": [ + "2025-04-01-preview" + ], + "doc": "remove a participant from a conversation", + "operation": { + "$id": "986", + "name": "removeParticipants", + "resourceName": "ConversationThreadClient", + "doc": "remove a participant from a conversation", + "accessibility": "public", + "parameters": [ + { + "$id": "987", + "name": "apiVersion", + "nameInRequest": "api-version", + "doc": "The API version to use for this operation.", + "type": { + "$id": "988", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": true, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Client", + "defaultValue": { + "type": { + "$id": "989", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "2025-04-01-preview" + }, + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "990", + "name": "conversationId", + "nameInRequest": "conversationId", + "doc": "The conversation ID.", + "type": { + "$id": "991", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "992", + "name": "repeatabilityRequestId", + "nameInRequest": "Repeatability-Request-ID", + "doc": "An opaque, globally-unique, client-generated string identifier for the request.", + "type": { + "$id": "993", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "994", + "name": "repeatabilityFirstSent", + "nameInRequest": "Repeatability-First-Sent", + "doc": "Specifies the date and time at which the request was first created.", + "type": { + "$id": "995", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc7231", + "wireType": { + "$id": "996", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "997", + "name": "clientRequestId", + "nameInRequest": "x-ms-client-request-id", + "doc": "An opaque, globally-unique, client-generated string identifier for the request.", + "type": { + "$id": "998", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "999", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "1000", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "112" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "1001", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "114" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "1002", + "name": "options", + "nameInRequest": "options", + "doc": "Details of the request body for removing participants from a conversation.", + "type": { + "$ref": "483" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 207 + ], + "bodyType": { + "$ref": "485" + }, + "headers": [ + { + "name": "repeatabilityResult", + "nameInResponse": "Repeatability-Result", + "doc": "Indicates whether the repeatable request was accepted or rejected.", + "type": { + "$ref": "64" + } + }, + { + "name": "clientRequestId", + "nameInResponse": "x-ms-client-request-id", + "doc": "An opaque, globally-unique, client-generated string identifier for the request.", + "type": { + "$id": "1003", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "1004", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + } + } + ], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/messages/conversations/{conversationId}/participants:remove", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ConversationThreadClient.removeParticipants", + "decorators": [] + }, + "parameters": [ + { + "$id": "1005", + "name": "conversationId", + "nameInRequest": "conversationId", + "doc": "The conversation ID.", + "type": { + "$id": "1006", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "1007", + "name": "options", + "nameInRequest": "options", + "doc": "Details of the request body for removing participants from a conversation.", + "type": { + "$ref": "483" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "1008", + "name": "repeatabilityRequestId", + "nameInRequest": "Repeatability-Request-ID", + "doc": "An opaque, globally-unique, client-generated string identifier for the request.", + "type": { + "$id": "1009", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "1010", + "name": "repeatabilityFirstSent", + "nameInRequest": "Repeatability-First-Sent", + "doc": "Specifies the date and time at which the request was first created.", + "type": { + "$id": "1011", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc7231", + "wireType": { + "$id": "1012", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "1013", + "name": "clientRequestId", + "nameInRequest": "x-ms-client-request-id", + "doc": "An opaque, globally-unique, client-generated string identifier for the request.", + "type": { + "$id": "1014", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "1015", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "1016", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "112" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "1017", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "114" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "485" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ConversationThreadClient.removeParticipants" }, - "headers": [ - { - "$id": "1611", - "name": "clientRequestId", - "nameInResponse": "x-ms-client-request-id", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1612", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "1613", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + { + "$id": "1018", + "kind": "paging", + "name": "listConversations", + "accessibility": "public", + "apiVersions": [ + "2025-04-01-preview" + ], + "doc": "Retrieves list of conversations.", + "operation": { + "$id": "1019", + "name": "listConversations", + "resourceName": "Conversation", + "doc": "Retrieves list of conversations.", + "accessibility": "public", + "parameters": [ + { + "$id": "1020", + "name": "apiVersion", + "nameInRequest": "api-version", + "doc": "The API version to use for this operation.", + "type": { + "$id": "1021", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": true, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Client", + "defaultValue": { + "type": { + "$id": "1022", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "2025-04-01-preview" + }, + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "1023", + "name": "maxPageSize", + "nameInRequest": "maxPageSize", + "doc": "Number of objects to return per page.", + "type": { + "$id": "1024", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "1025", + "name": "participantId", + "nameInRequest": "participantId", + "doc": "The participant user ID", + "type": { + "$id": "1026", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "1027", + "name": "channelId", + "nameInRequest": "channelId", + "doc": "The id of channel", + "type": { + "$id": "1028", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "1029", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "1030", + "name": "clientRequestId", + "nameInRequest": "x-ms-client-request-id", + "doc": "An opaque, globally-unique, client-generated string identifier for the request.", + "type": { + "$id": "1031", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "1032", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "1033", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "116" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "410" + }, + "headers": [ + { + "name": "clientRequestId", + "nameInResponse": "x-ms-client-request-id", + "doc": "An opaque, globally-unique, client-generated string identifier for the request.", + "type": { + "$id": "1034", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "1035", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + } + } + ], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/messages/conversations", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ConversationThreadClient.listConversations", "decorators": [] - }, - "decorators": [] + }, + "parameters": [ + { + "$id": "1036", + "name": "maxPageSize", + "nameInRequest": "maxPageSize", + "doc": "Number of objects to return per page.", + "type": { + "$id": "1037", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "1038", + "name": "participantId", + "nameInRequest": "participantId", + "doc": "The participant user ID", + "type": { + "$id": "1039", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "1040", + "name": "channelId", + "nameInRequest": "channelId", + "doc": "The id of channel", + "type": { + "$id": "1041", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "1042", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "1043", + "name": "clientRequestId", + "nameInRequest": "x-ms-client-request-id", + "doc": "An opaque, globally-unique, client-generated string identifier for the request.", + "type": { + "$id": "1044", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "1045", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "1046", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "116" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "412" + }, + "resultSegments": [ + "value" + ] + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ConversationThreadClient.listConversations", + "pagingMetadata": { + "itemPropertySegments": [ + "value" + ], + "nextLink": { + "responseSegments": [ + "nextLink" + ], + "responseLocation": "Body" + } } - } - ], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/messages/conversations", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ConversationThreadClient.listConversations", - "decorators": [] - }, - "parameters": [ - { - "$id": "1614", - "name": "maxPageSize", - "nameInRequest": "maxPageSize", - "doc": "Number of objects to return per page.", - "type": { - "$id": "1615", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1616", - "name": "participantId", - "nameInRequest": "participantId", - "doc": "The participant user ID", - "type": { - "$id": "1617", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1618", - "name": "channelId", - "nameInRequest": "channelId", - "doc": "The id of channel", - "type": { - "$id": "1619", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "1620", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1621", - "name": "clientRequestId", - "nameInRequest": "x-ms-client-request-id", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1622", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "1623", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1624", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "164" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "1625", - "type": { - "$ref": "945" - }, - "resultSegments": [ - "value" - ] - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ConversationThreadClient.listConversations", - "pagingMetadata": { - "$id": "1626", - "itemPropertySegments": [ - "value" - ], - "nextLink": { - "$id": "1627", - "responseSegments": [ - "nextLink" - ], - "responseLocation": "Body" - } - } - }, - { - "$id": "1628", - "kind": "paging", - "name": "listMessages", - "accessibility": "public", - "apiVersions": [ - "2025-04-01-preview" - ], - "doc": "Retrieves list of conversation messages.", - "operation": { - "$id": "1629", - "name": "listMessages", - "resourceName": "ConversationMessageItem", - "doc": "Retrieves list of conversation messages.", - "accessibility": "public", - "parameters": [ - { - "$id": "1630", - "name": "apiVersion", - "nameInRequest": "api-version", - "doc": "The API version to use for this operation.", - "type": { - "$id": "1631", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": true, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Client", - "defaultValue": { - "$id": "1632", - "type": { - "$id": "1633", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "2025-04-01-preview" - }, - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1634", - "name": "conversationId", - "nameInRequest": "conversationId", - "doc": "The conversation ID.", - "type": { - "$id": "1635", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1636", - "name": "maxPageSize", - "nameInRequest": "maxPageSize", - "doc": "Number of objects to return per page.", - "type": { - "$id": "1637", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1638", - "name": "participantId", - "nameInRequest": "participantId", - "doc": "The participant user ID", - "type": { - "$id": "1639", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1640", - "name": "clientRequestId", - "nameInRequest": "x-ms-client-request-id", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1641", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "1642", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1643", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "166" }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "1644", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "956" - }, - "headers": [ - { - "$id": "1645", - "name": "clientRequestId", - "nameInResponse": "x-ms-client-request-id", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1646", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "1647", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + { + "$id": "1047", + "kind": "paging", + "name": "listMessages", + "accessibility": "public", + "apiVersions": [ + "2025-04-01-preview" + ], + "doc": "Retrieves list of conversation messages.", + "operation": { + "$id": "1048", + "name": "listMessages", + "resourceName": "ConversationMessageItem", + "doc": "Retrieves list of conversation messages.", + "accessibility": "public", + "parameters": [ + { + "$id": "1049", + "name": "apiVersion", + "nameInRequest": "api-version", + "doc": "The API version to use for this operation.", + "type": { + "$id": "1050", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": true, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Client", + "defaultValue": { + "type": { + "$id": "1051", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "2025-04-01-preview" + }, + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "1052", + "name": "conversationId", + "nameInRequest": "conversationId", + "doc": "The conversation ID.", + "type": { + "$id": "1053", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "1054", + "name": "maxPageSize", + "nameInRequest": "maxPageSize", + "doc": "Number of objects to return per page.", + "type": { + "$id": "1055", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "1056", + "name": "participantId", + "nameInRequest": "participantId", + "doc": "The participant user ID", + "type": { + "$id": "1057", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "1058", + "name": "clientRequestId", + "nameInRequest": "x-ms-client-request-id", + "doc": "An opaque, globally-unique, client-generated string identifier for the request.", + "type": { + "$id": "1059", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "1060", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "1061", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "118" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "419" + }, + "headers": [ + { + "name": "clientRequestId", + "nameInResponse": "x-ms-client-request-id", + "doc": "An opaque, globally-unique, client-generated string identifier for the request.", + "type": { + "$id": "1062", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "1063", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + } + } + ], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/messages/conversations/{conversationId}/messages", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ConversationThreadClient.listMessages", "decorators": [] - }, - "decorators": [] + }, + "parameters": [ + { + "$id": "1064", + "name": "conversationId", + "nameInRequest": "conversationId", + "doc": "The conversation ID.", + "type": { + "$id": "1065", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "1066", + "name": "maxPageSize", + "nameInRequest": "maxPageSize", + "doc": "Number of objects to return per page.", + "type": { + "$id": "1067", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "1068", + "name": "participantId", + "nameInRequest": "participantId", + "doc": "The participant user ID", + "type": { + "$id": "1069", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "1070", + "name": "clientRequestId", + "nameInRequest": "x-ms-client-request-id", + "doc": "An opaque, globally-unique, client-generated string identifier for the request.", + "type": { + "$id": "1071", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "1072", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "1073", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "118" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "421" + }, + "resultSegments": [ + "value" + ] + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ConversationThreadClient.listMessages", + "pagingMetadata": { + "itemPropertySegments": [ + "value" + ], + "nextLink": { + "responseSegments": [ + "nextLink" + ], + "responseLocation": "Body" + } } - } - ], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/messages/conversations/{conversationId}/messages", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ConversationThreadClient.listMessages", - "decorators": [] - }, - "parameters": [ - { - "$id": "1648", - "name": "conversationId", - "nameInRequest": "conversationId", - "doc": "The conversation ID.", - "type": { - "$id": "1649", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1650", - "name": "maxPageSize", - "nameInRequest": "maxPageSize", - "doc": "Number of objects to return per page.", - "type": { - "$id": "1651", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1652", - "name": "participantId", - "nameInRequest": "participantId", - "doc": "The participant user ID", - "type": { - "$id": "1653", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1654", - "name": "clientRequestId", - "nameInRequest": "x-ms-client-request-id", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1655", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "1656", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1657", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "166" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "1658", - "type": { - "$ref": "958" - }, - "resultSegments": [ - "value" - ] - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ConversationThreadClient.listMessages", - "pagingMetadata": { - "$id": "1659", - "itemPropertySegments": [ - "value" - ], - "nextLink": { - "$id": "1660", - "responseSegments": [ - "nextLink" - ], - "responseLocation": "Body" - } - } - }, - { - "$id": "1661", - "kind": "basic", - "name": "sendMessage", - "accessibility": "public", - "apiVersions": [ - "2025-04-01-preview" - ], - "doc": "Sends a conversation message from Business to User.", - "operation": { - "$id": "1662", - "name": "sendMessage", - "resourceName": "ConversationThreadClient", - "doc": "Sends a conversation message from Business to User.", - "accessibility": "public", - "parameters": [ - { - "$id": "1663", - "name": "apiVersion", - "nameInRequest": "api-version", - "doc": "The API version to use for this operation.", - "type": { - "$id": "1664", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": true, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Client", - "defaultValue": { - "$id": "1665", - "type": { - "$id": "1666", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "2025-04-01-preview" - }, - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1667", - "name": "conversationId", - "nameInRequest": "conversationId", - "doc": "The conversation ID.", - "type": { - "$id": "1668", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1669", - "name": "repeatabilityRequestId", - "nameInRequest": "Repeatability-Request-ID", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1670", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1671", - "name": "repeatabilityFirstSent", - "nameInRequest": "Repeatability-First-Sent", - "doc": "Specifies the date and time at which the request was first created.", - "type": { - "$id": "1672", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc7231", - "wireType": { - "$id": "1673", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1674", - "name": "clientRequestId", - "nameInRequest": "x-ms-client-request-id", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1675", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "1676", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "decorators": [] }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1677", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "168" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1678", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "170" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1679", - "name": "options", - "nameInRequest": "options", - "doc": "Details of the conversation message to send.", - "type": { - "$ref": "918" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "1680", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "925" + { + "$id": "1074", + "kind": "basic", + "name": "sendMessage", + "accessibility": "public", + "apiVersions": [ + "2025-04-01-preview" + ], + "doc": "Sends a conversation message from Business to User.", + "operation": { + "$id": "1075", + "name": "sendMessage", + "resourceName": "ConversationThreadClient", + "doc": "Sends a conversation message from Business to User.", + "accessibility": "public", + "parameters": [ + { + "$id": "1076", + "name": "apiVersion", + "nameInRequest": "api-version", + "doc": "The API version to use for this operation.", + "type": { + "$id": "1077", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": true, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Client", + "defaultValue": { + "type": { + "$id": "1078", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "2025-04-01-preview" + }, + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "1079", + "name": "conversationId", + "nameInRequest": "conversationId", + "doc": "The conversation ID.", + "type": { + "$id": "1080", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "1081", + "name": "repeatabilityRequestId", + "nameInRequest": "Repeatability-Request-ID", + "doc": "An opaque, globally-unique, client-generated string identifier for the request.", + "type": { + "$id": "1082", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "1083", + "name": "repeatabilityFirstSent", + "nameInRequest": "Repeatability-First-Sent", + "doc": "Specifies the date and time at which the request was first created.", + "type": { + "$id": "1084", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc7231", + "wireType": { + "$id": "1085", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "1086", + "name": "clientRequestId", + "nameInRequest": "x-ms-client-request-id", + "doc": "An opaque, globally-unique, client-generated string identifier for the request.", + "type": { + "$id": "1087", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "1088", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "1089", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "120" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "1090", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "122" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "1091", + "name": "options", + "nameInRequest": "options", + "doc": "Details of the conversation message to send.", + "type": { + "$ref": "490" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "493" + }, + "headers": [ + { + "name": "repeatabilityResult", + "nameInResponse": "Repeatability-Result", + "doc": "Indicates whether the repeatable request was accepted or rejected.", + "type": { + "$ref": "64" + } + }, + { + "name": "clientRequestId", + "nameInResponse": "x-ms-client-request-id", + "doc": "An opaque, globally-unique, client-generated string identifier for the request.", + "type": { + "$id": "1092", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "1093", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + } + } + ], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/messages/conversations/{conversationId}/messages:send", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ConversationThreadClient.sendMessage", + "decorators": [] + }, + "parameters": [ + { + "$id": "1094", + "name": "conversationId", + "nameInRequest": "conversationId", + "doc": "The conversation ID.", + "type": { + "$id": "1095", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "1096", + "name": "options", + "nameInRequest": "options", + "doc": "Details of the conversation message to send.", + "type": { + "$ref": "490" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "1097", + "name": "repeatabilityRequestId", + "nameInRequest": "Repeatability-Request-ID", + "doc": "An opaque, globally-unique, client-generated string identifier for the request.", + "type": { + "$id": "1098", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "1099", + "name": "repeatabilityFirstSent", + "nameInRequest": "Repeatability-First-Sent", + "doc": "Specifies the date and time at which the request was first created.", + "type": { + "$id": "1100", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc7231", + "wireType": { + "$id": "1101", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "1102", + "name": "clientRequestId", + "nameInRequest": "x-ms-client-request-id", + "doc": "An opaque, globally-unique, client-generated string identifier for the request.", + "type": { + "$id": "1103", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "1104", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "1105", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "120" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "1106", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "122" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "493" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ConversationThreadClient.sendMessage" }, - "headers": [ - { - "$id": "1681", - "name": "repeatabilityResult", - "nameInResponse": "Repeatability-Result", - "doc": "Indicates whether the repeatable request was accepted or rejected.", - "type": { - "$ref": "116" - } - }, - { - "$id": "1682", - "name": "clientRequestId", - "nameInResponse": "x-ms-client-request-id", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1683", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "1684", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + { + "$id": "1107", + "kind": "basic", + "name": "analyzeConversation", + "accessibility": "public", + "apiVersions": [ + "2025-04-01-preview" + ], + "doc": "Get AI Analysis of a conversation.", + "operation": { + "$id": "1108", + "name": "analyzeConversation", + "resourceName": "ConversationThreadClient", + "doc": "Get AI Analysis of a conversation.", + "accessibility": "public", + "parameters": [ + { + "$id": "1109", + "name": "apiVersion", + "nameInRequest": "api-version", + "doc": "The API version to use for this operation.", + "type": { + "$id": "1110", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": true, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Client", + "defaultValue": { + "type": { + "$id": "1111", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "2025-04-01-preview" + }, + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "1112", + "name": "conversationId", + "nameInRequest": "conversationId", + "doc": "The conversation ID.", + "type": { + "$id": "1113", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "1114", + "name": "repeatabilityRequestId", + "nameInRequest": "Repeatability-Request-ID", + "doc": "An opaque, globally-unique, client-generated string identifier for the request.", + "type": { + "$id": "1115", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "1116", + "name": "repeatabilityFirstSent", + "nameInRequest": "Repeatability-First-Sent", + "doc": "Specifies the date and time at which the request was first created.", + "type": { + "$id": "1117", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc7231", + "wireType": { + "$id": "1118", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "1119", + "name": "clientRequestId", + "nameInRequest": "x-ms-client-request-id", + "doc": "An opaque, globally-unique, client-generated string identifier for the request.", + "type": { + "$id": "1120", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "1121", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "1122", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "124" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "487" + }, + "headers": [ + { + "name": "repeatabilityResult", + "nameInResponse": "Repeatability-Result", + "doc": "Indicates whether the repeatable request was accepted or rejected.", + "type": { + "$ref": "64" + } + }, + { + "name": "clientRequestId", + "nameInResponse": "x-ms-client-request-id", + "doc": "An opaque, globally-unique, client-generated string identifier for the request.", + "type": { + "$id": "1123", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "1124", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + } + } + ], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/messages/conversations/{conversationId}:analyze", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ConversationThreadClient.analyzeConversation", "decorators": [] - }, - "decorators": [] - } - } - ], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/messages/conversations/{conversationId}/messages:send", - "requestMediaTypes": [ - "application/json" + }, + "parameters": [ + { + "$id": "1125", + "name": "conversationId", + "nameInRequest": "conversationId", + "doc": "The conversation ID.", + "type": { + "$id": "1126", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "1127", + "name": "repeatabilityRequestId", + "nameInRequest": "Repeatability-Request-ID", + "doc": "An opaque, globally-unique, client-generated string identifier for the request.", + "type": { + "$id": "1128", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "1129", + "name": "repeatabilityFirstSent", + "nameInRequest": "Repeatability-First-Sent", + "doc": "Specifies the date and time at which the request was first created.", + "type": { + "$id": "1130", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc7231", + "wireType": { + "$id": "1131", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "1132", + "name": "clientRequestId", + "nameInRequest": "x-ms-client-request-id", + "doc": "An opaque, globally-unique, client-generated string identifier for the request.", + "type": { + "$id": "1133", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "1134", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "1135", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "124" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "487" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ConversationThreadClient.analyzeConversation" + } ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ConversationThreadClient.sendMessage", - "decorators": [] - }, - "parameters": [ - { - "$id": "1685", - "name": "conversationId", - "nameInRequest": "conversationId", - "doc": "The conversation ID.", - "type": { - "$id": "1686", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1687", - "name": "options", - "nameInRequest": "options", - "doc": "Details of the conversation message to send.", - "type": { - "$ref": "918" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1688", - "name": "repeatabilityRequestId", - "nameInRequest": "Repeatability-Request-ID", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1689", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1690", - "name": "repeatabilityFirstSent", - "nameInRequest": "Repeatability-First-Sent", - "doc": "Specifies the date and time at which the request was first created.", - "type": { - "$id": "1691", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc7231", - "wireType": { - "$id": "1692", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1693", - "name": "clientRequestId", - "nameInRequest": "x-ms-client-request-id", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1694", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "1695", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1696", - "name": "contentType", - "nameInRequest": "contentType", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "168" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1697", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "170" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "1698", - "type": { - "$ref": "925" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ConversationThreadClient.sendMessage" - }, - { - "$id": "1699", - "kind": "basic", - "name": "analyzeConversation", - "accessibility": "public", - "apiVersions": [ - "2025-04-01-preview" - ], - "doc": "Get AI Analysis of a conversation.", - "operation": { - "$id": "1700", - "name": "analyzeConversation", - "resourceName": "ConversationThreadClient", - "doc": "Get AI Analysis of a conversation.", - "accessibility": "public", "parameters": [ - { - "$id": "1701", - "name": "apiVersion", - "nameInRequest": "api-version", - "doc": "The API version to use for this operation.", - "type": { - "$id": "1702", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": true, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Client", - "defaultValue": { - "$id": "1703", - "type": { - "$id": "1704", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "2025-04-01-preview" - }, - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1705", - "name": "conversationId", - "nameInRequest": "conversationId", - "doc": "The conversation ID.", - "type": { - "$id": "1706", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1707", - "name": "repeatabilityRequestId", - "nameInRequest": "Repeatability-Request-ID", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1708", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1709", - "name": "repeatabilityFirstSent", - "nameInRequest": "Repeatability-First-Sent", - "doc": "Specifies the date and time at which the request was first created.", - "type": { - "$id": "1710", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc7231", - "wireType": { - "$id": "1711", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1712", - "name": "clientRequestId", - "nameInRequest": "x-ms-client-request-id", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1713", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "1714", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1715", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "172" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "1716", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "913" - }, - "headers": [ - { - "$id": "1717", - "name": "repeatabilityResult", - "nameInResponse": "Repeatability-Result", - "doc": "Indicates whether the repeatable request was accepted or rejected.", - "type": { - "$ref": "116" - } - }, - { - "$id": "1718", - "name": "clientRequestId", - "nameInResponse": "x-ms-client-request-id", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", + { + "$id": "1136", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "The communication resource, for example https://my-resource.communication.azure.com", "type": { - "$id": "1719", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "1720", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "decorators": [] - } - } - ], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } + "$id": "1137", + "kind": "url", + "name": "endpoint", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "serverUrlTemplate": "{endpoint}" + } ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/messages/conversations/{conversationId}:analyze", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ConversationThreadClient.analyzeConversation", - "decorators": [] - }, - "parameters": [ - { - "$id": "1721", - "name": "conversationId", - "nameInRequest": "conversationId", - "doc": "The conversation ID.", - "type": { - "$id": "1722", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1723", - "name": "repeatabilityRequestId", - "nameInRequest": "Repeatability-Request-ID", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1724", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1725", - "name": "repeatabilityFirstSent", - "nameInRequest": "Repeatability-First-Sent", - "doc": "Specifies the date and time at which the request was first created.", - "type": { - "$id": "1726", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc7231", - "wireType": { - "$id": "1727", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1728", - "name": "clientRequestId", - "nameInRequest": "x-ms-client-request-id", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1729", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "1730", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1731", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "172" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "response": { - "$id": "1732", - "type": { - "$ref": "913" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ConversationThreadClient.analyzeConversation" + "decorators": [], + "crossLanguageDefinitionId": "ClientForAcsMessages.ConversationThreadClient", + "apiVersions": [ + "2025-04-01-preview" + ] } - ], - "parameters": [ - { - "$id": "1733", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "The communication resource, for example https://my-resource.communication.azure.com", - "type": { - "$id": "1734", - "kind": "url", - "name": "endpoint", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "serverUrlTemplate": "{endpoint}" + ], + "auth": { + "oAuth2": { + "scopes": [ + "https://communication.azure.com/.default" + ] + }, + "apiKey": { + "name": "Authorization", + "in": "header", + "prefix": "Bearer" } - ], - "decorators": [], - "crossLanguageDefinitionId": "ClientForAcsMessages.ConversationThreadClient", - "apiVersions": [ - "2025-04-01-preview" - ] - } - ], - "auth": { - "$id": "1735", - "oAuth2": { - "$id": "1736", - "scopes": [ - "https://communication.azure.com/.default" - ] - }, - "apiKey": { - "$id": "1737", - "name": "Authorization", - "in": "header", - "prefix": "Bearer" } - } } diff --git a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AnalyticsDefenderEasmModelFactory.cs b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AnalyticsDefenderEasmModelFactory.cs index 6333520b7dc2..c002e96f69d8 100644 --- a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AnalyticsDefenderEasmModelFactory.cs +++ b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AnalyticsDefenderEasmModelFactory.cs @@ -1953,6 +1953,15 @@ public static SslCertAssetResource SslCertAssetResource(string id = null, string asset); } + /// Initializes a new instance of . + /// One of a server-defined set of error codes. + /// Inner error. + /// A new instance for mocking. + public static InnerError InnerError(string code = null, InnerError innererror = null) + { + return new InnerError(code, innererror, serializedAdditionalRawData: null); + } + /// Initializes a new instance of . /// The unique identifier of the task. /// The time the task started. @@ -2143,15 +2152,6 @@ public static ErrorDetail ErrorDetail(string code = null, string message = null, serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// This is a more specific error code than was provided by the containing error. - /// This is an additional field representing the value that caused the error to help with debugging. - /// A new instance for mocking. - public static InnerError InnerError(string code = null, BinaryData value = null) - { - return new InnerError(code, value, serializedAdditionalRawData: null); - } - /// Initializes a new instance of . /// The system generated unique id for the resource. /// The caller provided unique name for the resource. diff --git a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/InnerError.Serialization.cs b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/InnerError.Serialization.cs index 3ed62353885b..08a6b0882999 100644 --- a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/InnerError.Serialization.cs +++ b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/InnerError.Serialization.cs @@ -39,17 +39,10 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("code"u8); writer.WriteStringValue(Code); } - if (Optional.IsDefined(Value)) + if (Optional.IsDefined(Innererror)) { - writer.WritePropertyName("value"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(Value); -#else - using (JsonDocument document = JsonDocument.Parse(Value, ModelSerializationExtensions.JsonDocumentOptions)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif + writer.WritePropertyName("innererror"u8); + writer.WriteObjectValue(Innererror, options); } if (options.Format != "W" && _serializedAdditionalRawData != null) { @@ -89,7 +82,7 @@ internal static InnerError DeserializeInnerError(JsonElement element, ModelReade return null; } string code = default; - BinaryData value = default; + InnerError innererror = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -99,13 +92,13 @@ internal static InnerError DeserializeInnerError(JsonElement element, ModelReade code = property.Value.GetString(); continue; } - if (property.NameEquals("value"u8)) + if (property.NameEquals("innererror"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) { continue; } - value = BinaryData.FromString(property.Value.GetRawText()); + innererror = DeserializeInnerError(property.Value, options); continue; } if (options.Format != "W") @@ -114,7 +107,7 @@ internal static InnerError DeserializeInnerError(JsonElement element, ModelReade } } serializedAdditionalRawData = rawDataDictionary; - return new InnerError(code, value, serializedAdditionalRawData); + return new InnerError(code, innererror, serializedAdditionalRawData); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/InnerError.cs b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/InnerError.cs index 05570806dd10..a2f807b1b9dd 100644 --- a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/InnerError.cs +++ b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/InnerError.cs @@ -10,7 +10,7 @@ namespace Azure.Analytics.Defender.Easm { - /// This is an object containing more specific information than the current object about the error. + /// An object containing more specific information about the error. As per Microsoft One API guidelines - https://github.com/microsoft/api-guidelines/blob/vNext/azure/Guidelines.md#handling-errors. public partial class InnerError { /// @@ -51,48 +51,19 @@ internal InnerError() } /// Initializes a new instance of . - /// This is a more specific error code than was provided by the containing error. - /// This is an additional field representing the value that caused the error to help with debugging. + /// One of a server-defined set of error codes. + /// Inner error. /// Keeps track of any properties unknown to the library. - internal InnerError(string code, BinaryData value, IDictionary serializedAdditionalRawData) + internal InnerError(string code, InnerError innererror, IDictionary serializedAdditionalRawData) { Code = code; - Value = value; + Innererror = innererror; _serializedAdditionalRawData = serializedAdditionalRawData; } - /// This is a more specific error code than was provided by the containing error. + /// One of a server-defined set of error codes. public string Code { get; } - /// - /// This is an additional field representing the value that caused the error to help with debugging. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData Value { get; } + /// Inner error. + public InnerError Innererror { get; } } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Docs/Discovery.xml b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Docs/Discovery.xml index 146682c2394c..c42beea59bbe 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Docs/Discovery.xml +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Docs/Discovery.xml @@ -13,31 +13,26 @@ QueryConfig body = new QueryConfig { Keywords = "exampledata", Limit = 10, - Orderby = {BinaryData.FromObjectAsJson(new Dictionary + Orderby = {BinaryData.FromObjectAsJson(new { - ["$id"] = "6030", - ["name"] = "ASC" - }), BinaryData.FromObjectAsJson(new Dictionary + name = "ASC", + }), BinaryData.FromObjectAsJson(new { - ["$id"] = "6032", - ["updateTime"] = "DESC" + updateTime = "DESC", })}, - Filter = BinaryData.FromObjectAsJson(new Dictionary + Filter = BinaryData.FromObjectAsJson(new { - ["$id"] = "6024", - ["and"] = new object[] + and = new object[] { - new Dictionary + new { - ["$id"] = "6025", - ["objectType"] = "Files" + objectType = "Files", }, - new Dictionary + new { - ["$id"] = "6026", - ["entityType"] = "azure_blob_path" + entityType = "azure_blob_path", } - } + }, }), Facets = {new SearchFacetItem { @@ -92,24 +87,21 @@ Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(ap QueryConfig body = new QueryConfig { Limit = 10, - Filter = BinaryData.FromObjectAsJson(new Dictionary + Filter = BinaryData.FromObjectAsJson(new { - ["$id"] = "6109", - ["and"] = new object[] + and = new object[] { - new Dictionary + new { - ["$id"] = "6110", - ["entityType"] = "azure_blob_path" + entityType = "azure_blob_path", }, new Dictionary { - ["$id"] = "6111", ["attributeName"] = "qualifiedName", ["operator"] = "contains", ["attributeValue"] = ".csv" } - } + }, }), }; Response response = await client.QueryAsync(body); @@ -123,45 +115,39 @@ Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(ap QueryConfig body = new QueryConfig { Limit = 10, - Filter = BinaryData.FromObjectAsJson(new Dictionary + Filter = BinaryData.FromObjectAsJson(new { - ["$id"] = "6162", - ["and"] = new object[] + and = new object[] { - new Dictionary + new { - ["$id"] = "6163", - ["entityType"] = "azure_blob_path" + entityType = "azure_blob_path", }, new Dictionary { - ["$id"] = "6164", ["attributeName"] = "qualifiedName", ["operator"] = "contains", ["attributeValue"] = ".csv" }, - new Dictionary + new { - ["$id"] = "6165", - ["or"] = new object[] + or = new object[] { new Dictionary { - ["$id"] = "6166", ["attributeName"] = "name", ["operator"] = "eq", ["attributeValue"] = "exampledata.csv" }, new Dictionary { - ["$id"] = "6167", ["attributeName"] = "qualifiedName", ["operator"] = "prefix", ["attributeValue"] = "https://" } - } + }, } - } + }, }), }; Response response = await client.QueryAsync(body); @@ -175,147 +161,119 @@ Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(ap QueryConfig body = new QueryConfig { Limit = 10, - Filter = BinaryData.FromObjectAsJson(new Dictionary + Filter = BinaryData.FromObjectAsJson(new { - ["$id"] = "6220", - ["or"] = new object[] + or = new object[] { - new Dictionary + new { - ["$id"] = "6221", - ["assetType"] = "SQL Server" + assetType = "SQL Server", }, - new Dictionary + new { - ["$id"] = "6222", - ["assetType"] = "Azure SQL Server" + assetType = "Azure SQL Server", }, - new Dictionary + new { - ["$id"] = "6223", - ["assetType"] = "Azure SQL Database" + assetType = "Azure SQL Database", }, - new Dictionary + new { - ["$id"] = "6224", - ["assetType"] = "Azure SQL Data Warehouse" + assetType = "Azure SQL Data Warehouse", }, - new Dictionary + new { - ["$id"] = "6225", - ["assetType"] = "Azure SQL Managed Instance" + assetType = "Azure SQL Managed Instance", }, - new Dictionary + new { - ["$id"] = "6226", - ["assetType"] = "Azure Storage Account" + assetType = "Azure Storage Account", }, - new Dictionary + new { - ["$id"] = "6227", - ["assetType"] = "Azure Blob Storage" + assetType = "Azure Blob Storage", }, - new Dictionary + new { - ["$id"] = "6228", - ["assetType"] = "Azure Files" + assetType = "Azure Files", }, - new Dictionary + new { - ["$id"] = "6229", - ["assetType"] = "Azure Table Storage" + assetType = "Azure Table Storage", }, - new Dictionary + new { - ["$id"] = "6230", - ["assetType"] = "Azure Data Lake Storage Gen1" + assetType = "Azure Data Lake Storage Gen1", }, - new Dictionary + new { - ["$id"] = "6231", - ["assetType"] = "Azure Data Lake Storage Gen2" + assetType = "Azure Data Lake Storage Gen2", }, - new Dictionary + new { - ["$id"] = "6232", - ["assetType"] = "Azure Cosmos DB" + assetType = "Azure Cosmos DB", }, - new Dictionary + new { - ["$id"] = "6233", - ["assetType"] = "Azure Data Factory" + assetType = "Azure Data Factory", }, - new Dictionary + new { - ["$id"] = "6234", - ["assetType"] = "Azure Cognitive Search" + assetType = "Azure Cognitive Search", }, - new Dictionary + new { - ["$id"] = "6235", - ["assetType"] = "Power BI" + assetType = "Power BI", }, - new Dictionary + new { - ["$id"] = "6236", - ["assetType"] = "Azure Data Explorer" + assetType = "Azure Data Explorer", }, - new Dictionary + new { - ["$id"] = "6237", - ["assetType"] = "Amazon S3" + assetType = "Amazon S3", }, - new Dictionary + new { - ["$id"] = "6238", - ["assetType"] = "Azure Data Share" + assetType = "Azure Data Share", }, - new Dictionary + new { - ["$id"] = "6239", - ["assetType"] = "Teradata" + assetType = "Teradata", }, - new Dictionary + new { - ["$id"] = "6240", - ["assetType"] = "SAP S4HANA" + assetType = "SAP S4HANA", }, - new Dictionary + new { - ["$id"] = "6241", - ["assetType"] = "SAP ECC" + assetType = "SAP ECC", }, - new Dictionary + new { - ["$id"] = "6242", - ["assetType"] = "SQL Server Integration Services" + assetType = "SQL Server Integration Services", }, - new Dictionary + new { - ["$id"] = "6243", - ["assetType"] = "hive" + assetType = "hive", }, - new Dictionary + new { - ["$id"] = "6244", - ["assetType"] = "Azure Database for MySQL" + assetType = "Azure Database for MySQL", }, - new Dictionary + new { - ["$id"] = "6245", - ["assetType"] = "Azure Database for MariaDB" + assetType = "Azure Database for MariaDB", }, - new Dictionary + new { - ["$id"] = "6246", - ["assetType"] = "Azure Database for PostgreSQL" + assetType = "Azure Database for PostgreSQL", }, - new Dictionary + new { - ["$id"] = "6247", - ["assetType"] = "Azure Synapse Analytics" + assetType = "Azure Synapse Analytics", } - } + }, }), }; Response response = await client.QueryAsync(body); @@ -329,33 +287,29 @@ Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(ap QueryConfig body = new QueryConfig { Limit = 10, - Filter = BinaryData.FromObjectAsJson(new Dictionary + Filter = BinaryData.FromObjectAsJson(new { - ["$id"] = "6289", - ["or"] = new object[] + or = new object[] { new Dictionary { - ["$id"] = "6290", ["attributeName"] = "name", ["operator"] = "eq", ["attributeValue"] = "exampledata.csv" }, new Dictionary { - ["$id"] = "6291", ["attributeName"] = "createTime", ["operator"] = "ge", ["attributeValue"] = 1545580800000L }, new Dictionary { - ["$id"] = "6292", ["attributeName"] = "modifiedTime", ["operator"] = "timerange", ["attributeValue"] = "LAST_24H|LAST_7D|LAST_30D|LAST_365D|MORE_THAN_365D" } - } + }, }), }; Response response = await client.QueryAsync(body); @@ -369,40 +323,35 @@ Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(ap QueryConfig body = new QueryConfig { Limit = 10, - Filter = BinaryData.FromObjectAsJson(new Dictionary + Filter = BinaryData.FromObjectAsJson(new { - ["$id"] = "6354", - ["or"] = new object[] + or = new object[] { new Dictionary { - ["$id"] = "6355", ["attributeName"] = ".", ["operator"] = "eq|ne|contains|prefix", ["attributeValue"] = "string value" }, new Dictionary { - ["$id"] = "6356", ["attributeName"] = ".", ["operator"] = "eq|ne|gt|ge|lt|le", ["attributeValue"] = 123 }, new Dictionary { - ["$id"] = "6357", ["attributeName"] = ".", ["operator"] = "eq|ne", ["attributeValue"] = true }, new Dictionary { - ["$id"] = "6358", ["attributeName"] = ".", ["operator"] = "timerange", ["attributeValue"] = "LAST_24H|LAST_7D|LAST_30D|LAST_365D|MORE_THAN_365D" } - } + }, }), }; Response response = await client.QueryAsync(body); @@ -416,11 +365,10 @@ Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(ap QueryConfig body = new QueryConfig { Limit = 10, - Filter = BinaryData.FromObjectAsJson(new Dictionary + Filter = BinaryData.FromObjectAsJson(new { - ["$id"] = "6381", - ["classification"] = "MICROSOFT.PERSONAL.EMAIL", - ["includeSubClassifications"] = true + classification = "MICROSOFT.PERSONAL.EMAIL", + includeSubClassifications = true, }), }; Response response = await client.QueryAsync(body); @@ -434,10 +382,9 @@ Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(ap QueryConfig body = new QueryConfig { Limit = 10, - Filter = BinaryData.FromObjectAsJson(new Dictionary + Filter = BinaryData.FromObjectAsJson(new { - ["$id"] = "6431", - ["collectionId"] = "collectionName" + collectionId = "collectionName", }), }; Response response = await client.QueryAsync(body); @@ -451,10 +398,9 @@ Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(ap QueryConfig body = new QueryConfig { Limit = 10, - Filter = BinaryData.FromObjectAsJson(new Dictionary + Filter = BinaryData.FromObjectAsJson(new { - ["$id"] = "6480", - ["objectType"] = "Tables" + objectType = "Tables", }), Facets = {new SearchFacetItem { @@ -485,17 +431,15 @@ Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(ap QueryConfig body = new QueryConfig { Limit = 10, - Filter = BinaryData.FromObjectAsJson(new Dictionary + Filter = BinaryData.FromObjectAsJson(new { - ["$id"] = "6610", - ["and"] = new object[] + and = new object[] { - new Dictionary + new { - ["$id"] = "6611", - ["fileExtension"] = "txt" + fileExtension = "txt", } - } + }, }), }; Response response = await client.QueryAsync(body); @@ -510,34 +454,29 @@ QueryConfig body = new QueryConfig { Keywords = "", Limit = 10, - Filter = BinaryData.FromObjectAsJson(new Dictionary + Filter = BinaryData.FromObjectAsJson(new { - ["$id"] = "6654", - ["and"] = new object[] + and = new object[] { - new Dictionary + new { - ["$id"] = "6655", - ["objectType"] = "Glossary terms" + objectType = "Glossary terms", }, - new Dictionary + new { - ["$id"] = "6656", - ["or"] = new object[] + or = new object[] { - new Dictionary + new { - ["$id"] = "6657", - ["glossaryType"] = "AtlasGlossary" + glossaryType = "AtlasGlossary", }, - new Dictionary + new { - ["$id"] = "6658", - ["glossaryType"] = "AtlasGlossaryTerm" + glossaryType = "AtlasGlossaryTerm", } - } + }, } - } + }, }), Facets = {new SearchFacetItem { @@ -568,17 +507,15 @@ Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(ap QueryConfig body = new QueryConfig { Limit = 10, - Filter = BinaryData.FromObjectAsJson(new Dictionary + Filter = BinaryData.FromObjectAsJson(new { - ["$id"] = "6726", - ["and"] = new object[] + and = new object[] { - new Dictionary + new { - ["$id"] = "6727", - ["id"] = "bfecbcc3-1838-45fe-96d6-112de8a170f9" + id = "bfecbcc3-1838-45fe-96d6-112de8a170f9", } - } + }, }), }; Response response = await client.QueryAsync(body); @@ -592,14 +529,12 @@ Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(ap QueryConfig body = new QueryConfig { Limit = 10, - Filter = BinaryData.FromObjectAsJson(new Dictionary + Filter = BinaryData.FromObjectAsJson(new { - ["$id"] = "6755", - ["not"] = new Dictionary + not = new { - ["$id"] = "6756", - ["classification"] = "MICROSOFT.SYSTEM.TEMP_FILE" - } + classification = "MICROSOFT.SYSTEM.TEMP_FILE", + }, }), }; Response response = await client.QueryAsync(body); @@ -613,52 +548,43 @@ Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(ap QueryConfig body = new QueryConfig { Limit = 10, - Filter = BinaryData.FromObjectAsJson(new Dictionary + Filter = BinaryData.FromObjectAsJson(new { - ["$id"] = "6798", - ["or"] = new object[] + or = new object[] { - new Dictionary + new { - ["$id"] = "6799", - ["objectType"] = "Dashboards" + objectType = "Dashboards", }, - new Dictionary + new { - ["$id"] = "6800", - ["objectType"] = "Data pipelines" + objectType = "Data pipelines", }, - new Dictionary + new { - ["$id"] = "6801", - ["objectType"] = "Files" + objectType = "Files", }, - new Dictionary + new { - ["$id"] = "6802", - ["objectType"] = "Folders" + objectType = "Folders", }, - new Dictionary + new { - ["$id"] = "6803", - ["objectType"] = "Glossary terms" + objectType = "Glossary terms", }, - new Dictionary + new { - ["$id"] = "6804", - ["objectType"] = "Reports" + objectType = "Reports", }, - new Dictionary + new { - ["$id"] = "6805", - ["objectType"] = "Stored procedures" + objectType = "Stored procedures", }, - new Dictionary + new { - ["$id"] = "6806", - ["objectType"] = "Tables" + objectType = "Tables", } - } + }, }), }; Response response = await client.QueryAsync(body); @@ -674,31 +600,26 @@ QueryConfig body = new QueryConfig Keywords = "exampledata", Limit = 2, ContinuationToken = "", - Orderby = {BinaryData.FromObjectAsJson(new Dictionary + Orderby = {BinaryData.FromObjectAsJson(new { - ["$id"] = "6851", - ["name"] = "ASC" - }), BinaryData.FromObjectAsJson(new Dictionary + name = "ASC", + }), BinaryData.FromObjectAsJson(new { - ["$id"] = "6853", - ["updateTime"] = "DESC" + updateTime = "DESC", })}, - Filter = BinaryData.FromObjectAsJson(new Dictionary + Filter = BinaryData.FromObjectAsJson(new { - ["$id"] = "6844", - ["and"] = new object[] + and = new object[] { - new Dictionary + new { - ["$id"] = "6845", - ["objectType"] = "Files" + objectType = "Files", }, - new Dictionary + new { - ["$id"] = "6846", - ["entityType"] = "azure_blob_path" + entityType = "azure_blob_path", } - } + }, }), Facets = {new SearchFacetItem { @@ -754,31 +675,26 @@ QueryConfig body = new QueryConfig { Keywords = "exampledata", Limit = 2, - Orderby = {BinaryData.FromObjectAsJson(new Dictionary + Orderby = {BinaryData.FromObjectAsJson(new { - ["$id"] = "6937", - ["name"] = "ASC" - }), BinaryData.FromObjectAsJson(new Dictionary + name = "ASC", + }), BinaryData.FromObjectAsJson(new { - ["$id"] = "6939", - ["updateTime"] = "DESC" + updateTime = "DESC", })}, - Filter = BinaryData.FromObjectAsJson(new Dictionary + Filter = BinaryData.FromObjectAsJson(new { - ["$id"] = "6931", - ["and"] = new object[] + and = new object[] { - new Dictionary + new { - ["$id"] = "6932", - ["objectType"] = "Files" + objectType = "Files", }, - new Dictionary + new { - ["$id"] = "6933", - ["entityType"] = "azure_blob_path" + entityType = "azure_blob_path", } - } + }, }), Facets = {new SearchFacetItem { @@ -835,31 +751,26 @@ QueryConfig body = new QueryConfig Keywords = "exampledata", Limit = 2, ContinuationToken = "", - Orderby = {BinaryData.FromObjectAsJson(new Dictionary + Orderby = {BinaryData.FromObjectAsJson(new { - ["$id"] = "7024", - ["name"] = "ASC" - }), BinaryData.FromObjectAsJson(new Dictionary + name = "ASC", + }), BinaryData.FromObjectAsJson(new { - ["$id"] = "7026", - ["updateTime"] = "DESC" + updateTime = "DESC", })}, - Filter = BinaryData.FromObjectAsJson(new Dictionary + Filter = BinaryData.FromObjectAsJson(new { - ["$id"] = "7017", - ["and"] = new object[] + and = new object[] { - new Dictionary + new { - ["$id"] = "7018", - ["objectType"] = "Files" + objectType = "Files", }, - new Dictionary + new { - ["$id"] = "7019", - ["entityType"] = "azure_blob_path" + entityType = "azure_blob_path", } - } + }, }), Facets = {new SearchFacetItem { @@ -914,27 +825,23 @@ Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(ap QueryConfig body = new QueryConfig { Limit = 10, - Filter = BinaryData.FromObjectAsJson(new Dictionary + Filter = BinaryData.FromObjectAsJson(new { - ["$id"] = "7103", - ["or"] = new object[] + or = new object[] { - new Dictionary + new { - ["$id"] = "7104", - ["createTime"] = new Dictionary + createTime = new Dictionary { - ["$id"] = "7105", ["operator"] = "lt", ["timeThreshold"] = 1545580800000L - } + }, }, - new Dictionary + new { - ["$id"] = "7106", - ["updateTime"] = "LAST_24H|LAST_7D|LAST_30D|LAST_365D|MORE_THAN_365D" + updateTime = "LAST_24H|LAST_7D|LAST_30D|LAST_365D|MORE_THAN_365D", } - } + }, }), }; Response response = await client.QueryAsync(body); @@ -949,51 +856,43 @@ QueryConfig body = new QueryConfig { Keywords = "exampledata", Limit = 10, - Filter = BinaryData.FromObjectAsJson(new Dictionary + Filter = BinaryData.FromObjectAsJson(new { - ["$id"] = "7139", - ["and"] = new object[] + and = new object[] { - new Dictionary + new { - ["$id"] = "7140", - ["objectType"] = "Files" + objectType = "Files", }, - new Dictionary + new { - ["$id"] = "7141", - ["not"] = new Dictionary + not = new { - ["$id"] = "7142", - ["or"] = new object[] + or = new object[] { new Dictionary { - ["$id"] = "7143", ["attributeName"] = "size", ["operator"] = "eq", ["attributeValue"] = 0 }, new Dictionary { - ["$id"] = "7144", ["attributeName"] = "fileSize", ["operator"] = "eq", ["attributeValue"] = 0 } - } - } + }, + }, }, - new Dictionary + new { - ["$id"] = "7145", - ["not"] = new Dictionary + not = new { - ["$id"] = "7146", - ["classification"] = "MICROSOFT.SYSTEM.TEMP_FILE" - } + classification = "MICROSOFT.SYSTEM.TEMP_FILE", + }, } - } + }, }), TaxonomySetting = new SearchTaxonomySetting { @@ -1020,28 +919,24 @@ QueryConfig body = new QueryConfig { Keywords = "", Limit = 3, - Filter = BinaryData.FromObjectAsJson(new Dictionary + Filter = BinaryData.FromObjectAsJson(new { - ["$id"] = "7200", - ["or"] = new object[] + or = new object[] { - new Dictionary + new { - ["$id"] = "7201", - ["term"] = "ExampleTerm" + term = "ExampleTerm", }, - new Dictionary + new { - ["$id"] = "7202", - ["term"] = "ExampleTerm", - ["glossary"] = "GlossaryName" + term = "ExampleTerm", + glossary = "GlossaryName", }, - new Dictionary + new { - ["$id"] = "7203", - ["termGuid"] = "" + termGuid = "", } - } + }, }), }; Response response = await client.QueryAsync(body); @@ -1055,18 +950,16 @@ Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(ap QueryConfig body = new QueryConfig { Limit = 10, - Filter = BinaryData.FromObjectAsJson(new Dictionary + Filter = BinaryData.FromObjectAsJson(new { - ["$id"] = "7236", - ["and"] = new object[] + and = new object[] { - new Dictionary + new { - ["$id"] = "7237", - ["entityType"] = "azure_blob_path", - ["includeSubTypes"] = false + entityType = "azure_blob_path", + includeSubTypes = false, } - } + }, }), }; Response response = await client.QueryAsync(body); @@ -1084,31 +977,26 @@ QueryConfig body = new QueryConfig { Keywords = "exampledata", Limit = 10, - Orderby = {BinaryData.FromObjectAsJson(new Dictionary + Orderby = {BinaryData.FromObjectAsJson(new { - ["$id"] = "6030", - ["name"] = "ASC" - }), BinaryData.FromObjectAsJson(new Dictionary + name = "ASC", + }), BinaryData.FromObjectAsJson(new { - ["$id"] = "6032", - ["updateTime"] = "DESC" + updateTime = "DESC", })}, - Filter = BinaryData.FromObjectAsJson(new Dictionary + Filter = BinaryData.FromObjectAsJson(new { - ["$id"] = "6024", - ["and"] = new object[] + and = new object[] { - new Dictionary + new { - ["$id"] = "6025", - ["objectType"] = "Files" + objectType = "Files", }, - new Dictionary + new { - ["$id"] = "6026", - ["entityType"] = "azure_blob_path" + entityType = "azure_blob_path", } - } + }, }), Facets = {new SearchFacetItem { @@ -1163,24 +1051,21 @@ Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(ap QueryConfig body = new QueryConfig { Limit = 10, - Filter = BinaryData.FromObjectAsJson(new Dictionary + Filter = BinaryData.FromObjectAsJson(new { - ["$id"] = "6109", - ["and"] = new object[] + and = new object[] { - new Dictionary + new { - ["$id"] = "6110", - ["entityType"] = "azure_blob_path" + entityType = "azure_blob_path", }, new Dictionary { - ["$id"] = "6111", ["attributeName"] = "qualifiedName", ["operator"] = "contains", ["attributeValue"] = ".csv" } - } + }, }), }; Response response = client.Query(body); @@ -1194,45 +1079,39 @@ Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(ap QueryConfig body = new QueryConfig { Limit = 10, - Filter = BinaryData.FromObjectAsJson(new Dictionary + Filter = BinaryData.FromObjectAsJson(new { - ["$id"] = "6162", - ["and"] = new object[] + and = new object[] { - new Dictionary + new { - ["$id"] = "6163", - ["entityType"] = "azure_blob_path" + entityType = "azure_blob_path", }, new Dictionary { - ["$id"] = "6164", ["attributeName"] = "qualifiedName", ["operator"] = "contains", ["attributeValue"] = ".csv" }, - new Dictionary + new { - ["$id"] = "6165", - ["or"] = new object[] + or = new object[] { new Dictionary { - ["$id"] = "6166", ["attributeName"] = "name", ["operator"] = "eq", ["attributeValue"] = "exampledata.csv" }, new Dictionary { - ["$id"] = "6167", ["attributeName"] = "qualifiedName", ["operator"] = "prefix", ["attributeValue"] = "https://" } - } + }, } - } + }, }), }; Response response = client.Query(body); @@ -1246,147 +1125,119 @@ Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(ap QueryConfig body = new QueryConfig { Limit = 10, - Filter = BinaryData.FromObjectAsJson(new Dictionary + Filter = BinaryData.FromObjectAsJson(new { - ["$id"] = "6220", - ["or"] = new object[] + or = new object[] { - new Dictionary + new { - ["$id"] = "6221", - ["assetType"] = "SQL Server" + assetType = "SQL Server", }, - new Dictionary + new { - ["$id"] = "6222", - ["assetType"] = "Azure SQL Server" + assetType = "Azure SQL Server", }, - new Dictionary + new { - ["$id"] = "6223", - ["assetType"] = "Azure SQL Database" + assetType = "Azure SQL Database", }, - new Dictionary + new { - ["$id"] = "6224", - ["assetType"] = "Azure SQL Data Warehouse" + assetType = "Azure SQL Data Warehouse", }, - new Dictionary + new { - ["$id"] = "6225", - ["assetType"] = "Azure SQL Managed Instance" + assetType = "Azure SQL Managed Instance", }, - new Dictionary + new { - ["$id"] = "6226", - ["assetType"] = "Azure Storage Account" + assetType = "Azure Storage Account", }, - new Dictionary + new { - ["$id"] = "6227", - ["assetType"] = "Azure Blob Storage" + assetType = "Azure Blob Storage", }, - new Dictionary + new { - ["$id"] = "6228", - ["assetType"] = "Azure Files" + assetType = "Azure Files", }, - new Dictionary + new { - ["$id"] = "6229", - ["assetType"] = "Azure Table Storage" + assetType = "Azure Table Storage", }, - new Dictionary + new { - ["$id"] = "6230", - ["assetType"] = "Azure Data Lake Storage Gen1" + assetType = "Azure Data Lake Storage Gen1", }, - new Dictionary + new { - ["$id"] = "6231", - ["assetType"] = "Azure Data Lake Storage Gen2" + assetType = "Azure Data Lake Storage Gen2", }, - new Dictionary + new { - ["$id"] = "6232", - ["assetType"] = "Azure Cosmos DB" + assetType = "Azure Cosmos DB", }, - new Dictionary + new { - ["$id"] = "6233", - ["assetType"] = "Azure Data Factory" + assetType = "Azure Data Factory", }, - new Dictionary + new { - ["$id"] = "6234", - ["assetType"] = "Azure Cognitive Search" + assetType = "Azure Cognitive Search", }, - new Dictionary + new { - ["$id"] = "6235", - ["assetType"] = "Power BI" + assetType = "Power BI", }, - new Dictionary + new { - ["$id"] = "6236", - ["assetType"] = "Azure Data Explorer" + assetType = "Azure Data Explorer", }, - new Dictionary + new { - ["$id"] = "6237", - ["assetType"] = "Amazon S3" + assetType = "Amazon S3", }, - new Dictionary + new { - ["$id"] = "6238", - ["assetType"] = "Azure Data Share" + assetType = "Azure Data Share", }, - new Dictionary + new { - ["$id"] = "6239", - ["assetType"] = "Teradata" + assetType = "Teradata", }, - new Dictionary + new { - ["$id"] = "6240", - ["assetType"] = "SAP S4HANA" + assetType = "SAP S4HANA", }, - new Dictionary + new { - ["$id"] = "6241", - ["assetType"] = "SAP ECC" + assetType = "SAP ECC", }, - new Dictionary + new { - ["$id"] = "6242", - ["assetType"] = "SQL Server Integration Services" + assetType = "SQL Server Integration Services", }, - new Dictionary + new { - ["$id"] = "6243", - ["assetType"] = "hive" + assetType = "hive", }, - new Dictionary + new { - ["$id"] = "6244", - ["assetType"] = "Azure Database for MySQL" + assetType = "Azure Database for MySQL", }, - new Dictionary + new { - ["$id"] = "6245", - ["assetType"] = "Azure Database for MariaDB" + assetType = "Azure Database for MariaDB", }, - new Dictionary + new { - ["$id"] = "6246", - ["assetType"] = "Azure Database for PostgreSQL" + assetType = "Azure Database for PostgreSQL", }, - new Dictionary + new { - ["$id"] = "6247", - ["assetType"] = "Azure Synapse Analytics" + assetType = "Azure Synapse Analytics", } - } + }, }), }; Response response = client.Query(body); @@ -1400,33 +1251,29 @@ Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(ap QueryConfig body = new QueryConfig { Limit = 10, - Filter = BinaryData.FromObjectAsJson(new Dictionary + Filter = BinaryData.FromObjectAsJson(new { - ["$id"] = "6289", - ["or"] = new object[] + or = new object[] { new Dictionary { - ["$id"] = "6290", ["attributeName"] = "name", ["operator"] = "eq", ["attributeValue"] = "exampledata.csv" }, new Dictionary { - ["$id"] = "6291", ["attributeName"] = "createTime", ["operator"] = "ge", ["attributeValue"] = 1545580800000L }, new Dictionary { - ["$id"] = "6292", ["attributeName"] = "modifiedTime", ["operator"] = "timerange", ["attributeValue"] = "LAST_24H|LAST_7D|LAST_30D|LAST_365D|MORE_THAN_365D" } - } + }, }), }; Response response = client.Query(body); @@ -1440,40 +1287,35 @@ Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(ap QueryConfig body = new QueryConfig { Limit = 10, - Filter = BinaryData.FromObjectAsJson(new Dictionary + Filter = BinaryData.FromObjectAsJson(new { - ["$id"] = "6354", - ["or"] = new object[] + or = new object[] { new Dictionary { - ["$id"] = "6355", ["attributeName"] = ".", ["operator"] = "eq|ne|contains|prefix", ["attributeValue"] = "string value" }, new Dictionary { - ["$id"] = "6356", ["attributeName"] = ".", ["operator"] = "eq|ne|gt|ge|lt|le", ["attributeValue"] = 123 }, new Dictionary { - ["$id"] = "6357", ["attributeName"] = ".", ["operator"] = "eq|ne", ["attributeValue"] = true }, new Dictionary { - ["$id"] = "6358", ["attributeName"] = ".", ["operator"] = "timerange", ["attributeValue"] = "LAST_24H|LAST_7D|LAST_30D|LAST_365D|MORE_THAN_365D" } - } + }, }), }; Response response = client.Query(body); @@ -1487,11 +1329,10 @@ Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(ap QueryConfig body = new QueryConfig { Limit = 10, - Filter = BinaryData.FromObjectAsJson(new Dictionary + Filter = BinaryData.FromObjectAsJson(new { - ["$id"] = "6381", - ["classification"] = "MICROSOFT.PERSONAL.EMAIL", - ["includeSubClassifications"] = true + classification = "MICROSOFT.PERSONAL.EMAIL", + includeSubClassifications = true, }), }; Response response = client.Query(body); @@ -1505,10 +1346,9 @@ Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(ap QueryConfig body = new QueryConfig { Limit = 10, - Filter = BinaryData.FromObjectAsJson(new Dictionary + Filter = BinaryData.FromObjectAsJson(new { - ["$id"] = "6431", - ["collectionId"] = "collectionName" + collectionId = "collectionName", }), }; Response response = client.Query(body); @@ -1522,10 +1362,9 @@ Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(ap QueryConfig body = new QueryConfig { Limit = 10, - Filter = BinaryData.FromObjectAsJson(new Dictionary + Filter = BinaryData.FromObjectAsJson(new { - ["$id"] = "6480", - ["objectType"] = "Tables" + objectType = "Tables", }), Facets = {new SearchFacetItem { @@ -1556,17 +1395,15 @@ Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(ap QueryConfig body = new QueryConfig { Limit = 10, - Filter = BinaryData.FromObjectAsJson(new Dictionary + Filter = BinaryData.FromObjectAsJson(new { - ["$id"] = "6610", - ["and"] = new object[] + and = new object[] { - new Dictionary + new { - ["$id"] = "6611", - ["fileExtension"] = "txt" + fileExtension = "txt", } - } + }, }), }; Response response = client.Query(body); @@ -1581,34 +1418,29 @@ QueryConfig body = new QueryConfig { Keywords = "", Limit = 10, - Filter = BinaryData.FromObjectAsJson(new Dictionary + Filter = BinaryData.FromObjectAsJson(new { - ["$id"] = "6654", - ["and"] = new object[] + and = new object[] { - new Dictionary + new { - ["$id"] = "6655", - ["objectType"] = "Glossary terms" + objectType = "Glossary terms", }, - new Dictionary + new { - ["$id"] = "6656", - ["or"] = new object[] + or = new object[] { - new Dictionary + new { - ["$id"] = "6657", - ["glossaryType"] = "AtlasGlossary" + glossaryType = "AtlasGlossary", }, - new Dictionary + new { - ["$id"] = "6658", - ["glossaryType"] = "AtlasGlossaryTerm" + glossaryType = "AtlasGlossaryTerm", } - } + }, } - } + }, }), Facets = {new SearchFacetItem { @@ -1639,17 +1471,15 @@ Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(ap QueryConfig body = new QueryConfig { Limit = 10, - Filter = BinaryData.FromObjectAsJson(new Dictionary + Filter = BinaryData.FromObjectAsJson(new { - ["$id"] = "6726", - ["and"] = new object[] + and = new object[] { - new Dictionary + new { - ["$id"] = "6727", - ["id"] = "bfecbcc3-1838-45fe-96d6-112de8a170f9" + id = "bfecbcc3-1838-45fe-96d6-112de8a170f9", } - } + }, }), }; Response response = client.Query(body); @@ -1663,14 +1493,12 @@ Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(ap QueryConfig body = new QueryConfig { Limit = 10, - Filter = BinaryData.FromObjectAsJson(new Dictionary + Filter = BinaryData.FromObjectAsJson(new { - ["$id"] = "6755", - ["not"] = new Dictionary + not = new { - ["$id"] = "6756", - ["classification"] = "MICROSOFT.SYSTEM.TEMP_FILE" - } + classification = "MICROSOFT.SYSTEM.TEMP_FILE", + }, }), }; Response response = client.Query(body); @@ -1684,52 +1512,43 @@ Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(ap QueryConfig body = new QueryConfig { Limit = 10, - Filter = BinaryData.FromObjectAsJson(new Dictionary + Filter = BinaryData.FromObjectAsJson(new { - ["$id"] = "6798", - ["or"] = new object[] + or = new object[] { - new Dictionary + new { - ["$id"] = "6799", - ["objectType"] = "Dashboards" + objectType = "Dashboards", }, - new Dictionary + new { - ["$id"] = "6800", - ["objectType"] = "Data pipelines" + objectType = "Data pipelines", }, - new Dictionary + new { - ["$id"] = "6801", - ["objectType"] = "Files" + objectType = "Files", }, - new Dictionary + new { - ["$id"] = "6802", - ["objectType"] = "Folders" + objectType = "Folders", }, - new Dictionary + new { - ["$id"] = "6803", - ["objectType"] = "Glossary terms" + objectType = "Glossary terms", }, - new Dictionary + new { - ["$id"] = "6804", - ["objectType"] = "Reports" + objectType = "Reports", }, - new Dictionary + new { - ["$id"] = "6805", - ["objectType"] = "Stored procedures" + objectType = "Stored procedures", }, - new Dictionary + new { - ["$id"] = "6806", - ["objectType"] = "Tables" + objectType = "Tables", } - } + }, }), }; Response response = client.Query(body); @@ -1745,31 +1564,26 @@ QueryConfig body = new QueryConfig Keywords = "exampledata", Limit = 2, ContinuationToken = "", - Orderby = {BinaryData.FromObjectAsJson(new Dictionary + Orderby = {BinaryData.FromObjectAsJson(new { - ["$id"] = "6851", - ["name"] = "ASC" - }), BinaryData.FromObjectAsJson(new Dictionary + name = "ASC", + }), BinaryData.FromObjectAsJson(new { - ["$id"] = "6853", - ["updateTime"] = "DESC" + updateTime = "DESC", })}, - Filter = BinaryData.FromObjectAsJson(new Dictionary + Filter = BinaryData.FromObjectAsJson(new { - ["$id"] = "6844", - ["and"] = new object[] + and = new object[] { - new Dictionary + new { - ["$id"] = "6845", - ["objectType"] = "Files" + objectType = "Files", }, - new Dictionary + new { - ["$id"] = "6846", - ["entityType"] = "azure_blob_path" + entityType = "azure_blob_path", } - } + }, }), Facets = {new SearchFacetItem { @@ -1825,31 +1639,26 @@ QueryConfig body = new QueryConfig { Keywords = "exampledata", Limit = 2, - Orderby = {BinaryData.FromObjectAsJson(new Dictionary + Orderby = {BinaryData.FromObjectAsJson(new { - ["$id"] = "6937", - ["name"] = "ASC" - }), BinaryData.FromObjectAsJson(new Dictionary + name = "ASC", + }), BinaryData.FromObjectAsJson(new { - ["$id"] = "6939", - ["updateTime"] = "DESC" + updateTime = "DESC", })}, - Filter = BinaryData.FromObjectAsJson(new Dictionary + Filter = BinaryData.FromObjectAsJson(new { - ["$id"] = "6931", - ["and"] = new object[] + and = new object[] { - new Dictionary + new { - ["$id"] = "6932", - ["objectType"] = "Files" + objectType = "Files", }, - new Dictionary + new { - ["$id"] = "6933", - ["entityType"] = "azure_blob_path" + entityType = "azure_blob_path", } - } + }, }), Facets = {new SearchFacetItem { @@ -1906,31 +1715,26 @@ QueryConfig body = new QueryConfig Keywords = "exampledata", Limit = 2, ContinuationToken = "", - Orderby = {BinaryData.FromObjectAsJson(new Dictionary + Orderby = {BinaryData.FromObjectAsJson(new { - ["$id"] = "7024", - ["name"] = "ASC" - }), BinaryData.FromObjectAsJson(new Dictionary + name = "ASC", + }), BinaryData.FromObjectAsJson(new { - ["$id"] = "7026", - ["updateTime"] = "DESC" + updateTime = "DESC", })}, - Filter = BinaryData.FromObjectAsJson(new Dictionary + Filter = BinaryData.FromObjectAsJson(new { - ["$id"] = "7017", - ["and"] = new object[] + and = new object[] { - new Dictionary + new { - ["$id"] = "7018", - ["objectType"] = "Files" + objectType = "Files", }, - new Dictionary + new { - ["$id"] = "7019", - ["entityType"] = "azure_blob_path" + entityType = "azure_blob_path", } - } + }, }), Facets = {new SearchFacetItem { @@ -1985,27 +1789,23 @@ Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(ap QueryConfig body = new QueryConfig { Limit = 10, - Filter = BinaryData.FromObjectAsJson(new Dictionary + Filter = BinaryData.FromObjectAsJson(new { - ["$id"] = "7103", - ["or"] = new object[] + or = new object[] { - new Dictionary + new { - ["$id"] = "7104", - ["createTime"] = new Dictionary + createTime = new Dictionary { - ["$id"] = "7105", ["operator"] = "lt", ["timeThreshold"] = 1545580800000L - } + }, }, - new Dictionary + new { - ["$id"] = "7106", - ["updateTime"] = "LAST_24H|LAST_7D|LAST_30D|LAST_365D|MORE_THAN_365D" + updateTime = "LAST_24H|LAST_7D|LAST_30D|LAST_365D|MORE_THAN_365D", } - } + }, }), }; Response response = client.Query(body); @@ -2020,51 +1820,43 @@ QueryConfig body = new QueryConfig { Keywords = "exampledata", Limit = 10, - Filter = BinaryData.FromObjectAsJson(new Dictionary + Filter = BinaryData.FromObjectAsJson(new { - ["$id"] = "7139", - ["and"] = new object[] + and = new object[] { - new Dictionary + new { - ["$id"] = "7140", - ["objectType"] = "Files" + objectType = "Files", }, - new Dictionary + new { - ["$id"] = "7141", - ["not"] = new Dictionary + not = new { - ["$id"] = "7142", - ["or"] = new object[] + or = new object[] { new Dictionary { - ["$id"] = "7143", ["attributeName"] = "size", ["operator"] = "eq", ["attributeValue"] = 0 }, new Dictionary { - ["$id"] = "7144", ["attributeName"] = "fileSize", ["operator"] = "eq", ["attributeValue"] = 0 } - } - } + }, + }, }, - new Dictionary + new { - ["$id"] = "7145", - ["not"] = new Dictionary + not = new { - ["$id"] = "7146", - ["classification"] = "MICROSOFT.SYSTEM.TEMP_FILE" - } + classification = "MICROSOFT.SYSTEM.TEMP_FILE", + }, } - } + }, }), TaxonomySetting = new SearchTaxonomySetting { @@ -2091,28 +1883,24 @@ QueryConfig body = new QueryConfig { Keywords = "", Limit = 3, - Filter = BinaryData.FromObjectAsJson(new Dictionary + Filter = BinaryData.FromObjectAsJson(new { - ["$id"] = "7200", - ["or"] = new object[] + or = new object[] { - new Dictionary + new { - ["$id"] = "7201", - ["term"] = "ExampleTerm" + term = "ExampleTerm", }, - new Dictionary + new { - ["$id"] = "7202", - ["term"] = "ExampleTerm", - ["glossary"] = "GlossaryName" + term = "ExampleTerm", + glossary = "GlossaryName", }, - new Dictionary + new { - ["$id"] = "7203", - ["termGuid"] = "" + termGuid = "", } - } + }, }), }; Response response = client.Query(body); @@ -2126,18 +1914,16 @@ Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(ap QueryConfig body = new QueryConfig { Limit = 10, - Filter = BinaryData.FromObjectAsJson(new Dictionary + Filter = BinaryData.FromObjectAsJson(new { - ["$id"] = "7236", - ["and"] = new object[] + and = new object[] { - new Dictionary + new { - ["$id"] = "7237", - ["entityType"] = "azure_blob_path", - ["includeSubTypes"] = false + entityType = "azure_blob_path", + includeSubTypes = false, } - } + }, }), }; Response response = client.Query(body); @@ -2154,35 +1940,30 @@ Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(ap using RequestContent content = RequestContent.Create(new { keywords = "exampledata", - filter = new Dictionary + filter = new { - ["$id"] = "6024", - ["and"] = new object[] + and = new object[] { - new Dictionary + new { - ["$id"] = "6025", - ["objectType"] = "Files" + objectType = "Files", }, - new Dictionary + new { - ["$id"] = "6026", - ["entityType"] = "azure_blob_path" + entityType = "azure_blob_path", } - } + }, }, limit = 10, orderby = new object[] { - new Dictionary + new { - ["$id"] = "6030", - ["name"] = "ASC" + name = "ASC", }, - new Dictionary + new { - ["$id"] = "6032", - ["updateTime"] = "DESC" + updateTime = "DESC", } }, facets = new object[] @@ -2248,24 +2029,21 @@ Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(ap using RequestContent content = RequestContent.Create(new { limit = 10, - filter = new Dictionary + filter = new { - ["$id"] = "6109", - ["and"] = new object[] + and = new object[] { - new Dictionary + new { - ["$id"] = "6110", - ["entityType"] = "azure_blob_path" + entityType = "azure_blob_path", }, new Dictionary { - ["$id"] = "6111", ["attributeName"] = "qualifiedName", ["operator"] = "contains", ["attributeValue"] = ".csv" } - } + }, }, }); Response response = await client.QueryAsync(content); @@ -2282,45 +2060,39 @@ Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(ap using RequestContent content = RequestContent.Create(new { limit = 10, - filter = new Dictionary + filter = new { - ["$id"] = "6162", - ["and"] = new object[] + and = new object[] { - new Dictionary + new { - ["$id"] = "6163", - ["entityType"] = "azure_blob_path" + entityType = "azure_blob_path", }, new Dictionary { - ["$id"] = "6164", ["attributeName"] = "qualifiedName", ["operator"] = "contains", ["attributeValue"] = ".csv" }, - new Dictionary + new { - ["$id"] = "6165", - ["or"] = new object[] + or = new object[] { new Dictionary { - ["$id"] = "6166", ["attributeName"] = "name", ["operator"] = "eq", ["attributeValue"] = "exampledata.csv" }, new Dictionary { - ["$id"] = "6167", ["attributeName"] = "qualifiedName", ["operator"] = "prefix", ["attributeValue"] = "https://" } - } + }, } - } + }, }, }); Response response = await client.QueryAsync(content); @@ -2337,147 +2109,119 @@ Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(ap using RequestContent content = RequestContent.Create(new { limit = 10, - filter = new Dictionary + filter = new { - ["$id"] = "6220", - ["or"] = new object[] + or = new object[] { - new Dictionary + new { - ["$id"] = "6221", - ["assetType"] = "SQL Server" + assetType = "SQL Server", }, - new Dictionary + new { - ["$id"] = "6222", - ["assetType"] = "Azure SQL Server" + assetType = "Azure SQL Server", }, - new Dictionary + new { - ["$id"] = "6223", - ["assetType"] = "Azure SQL Database" + assetType = "Azure SQL Database", }, - new Dictionary + new { - ["$id"] = "6224", - ["assetType"] = "Azure SQL Data Warehouse" + assetType = "Azure SQL Data Warehouse", }, - new Dictionary + new { - ["$id"] = "6225", - ["assetType"] = "Azure SQL Managed Instance" + assetType = "Azure SQL Managed Instance", }, - new Dictionary + new { - ["$id"] = "6226", - ["assetType"] = "Azure Storage Account" + assetType = "Azure Storage Account", }, - new Dictionary + new { - ["$id"] = "6227", - ["assetType"] = "Azure Blob Storage" + assetType = "Azure Blob Storage", }, - new Dictionary + new { - ["$id"] = "6228", - ["assetType"] = "Azure Files" + assetType = "Azure Files", }, - new Dictionary + new { - ["$id"] = "6229", - ["assetType"] = "Azure Table Storage" + assetType = "Azure Table Storage", }, - new Dictionary + new { - ["$id"] = "6230", - ["assetType"] = "Azure Data Lake Storage Gen1" + assetType = "Azure Data Lake Storage Gen1", }, - new Dictionary + new { - ["$id"] = "6231", - ["assetType"] = "Azure Data Lake Storage Gen2" + assetType = "Azure Data Lake Storage Gen2", }, - new Dictionary + new { - ["$id"] = "6232", - ["assetType"] = "Azure Cosmos DB" + assetType = "Azure Cosmos DB", }, - new Dictionary + new { - ["$id"] = "6233", - ["assetType"] = "Azure Data Factory" + assetType = "Azure Data Factory", }, - new Dictionary + new { - ["$id"] = "6234", - ["assetType"] = "Azure Cognitive Search" + assetType = "Azure Cognitive Search", }, - new Dictionary + new { - ["$id"] = "6235", - ["assetType"] = "Power BI" + assetType = "Power BI", }, - new Dictionary + new { - ["$id"] = "6236", - ["assetType"] = "Azure Data Explorer" + assetType = "Azure Data Explorer", }, - new Dictionary + new { - ["$id"] = "6237", - ["assetType"] = "Amazon S3" + assetType = "Amazon S3", }, - new Dictionary + new { - ["$id"] = "6238", - ["assetType"] = "Azure Data Share" + assetType = "Azure Data Share", }, - new Dictionary + new { - ["$id"] = "6239", - ["assetType"] = "Teradata" + assetType = "Teradata", }, - new Dictionary + new { - ["$id"] = "6240", - ["assetType"] = "SAP S4HANA" + assetType = "SAP S4HANA", }, - new Dictionary + new { - ["$id"] = "6241", - ["assetType"] = "SAP ECC" + assetType = "SAP ECC", }, - new Dictionary + new { - ["$id"] = "6242", - ["assetType"] = "SQL Server Integration Services" + assetType = "SQL Server Integration Services", }, - new Dictionary + new { - ["$id"] = "6243", - ["assetType"] = "hive" + assetType = "hive", }, - new Dictionary + new { - ["$id"] = "6244", - ["assetType"] = "Azure Database for MySQL" + assetType = "Azure Database for MySQL", }, - new Dictionary + new { - ["$id"] = "6245", - ["assetType"] = "Azure Database for MariaDB" + assetType = "Azure Database for MariaDB", }, - new Dictionary + new { - ["$id"] = "6246", - ["assetType"] = "Azure Database for PostgreSQL" + assetType = "Azure Database for PostgreSQL", }, - new Dictionary + new { - ["$id"] = "6247", - ["assetType"] = "Azure Synapse Analytics" + assetType = "Azure Synapse Analytics", } - } + }, }, }); Response response = await client.QueryAsync(content); @@ -2494,33 +2238,29 @@ Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(ap using RequestContent content = RequestContent.Create(new { limit = 10, - filter = new Dictionary + filter = new { - ["$id"] = "6289", - ["or"] = new object[] + or = new object[] { new Dictionary { - ["$id"] = "6290", ["attributeName"] = "name", ["operator"] = "eq", ["attributeValue"] = "exampledata.csv" }, new Dictionary { - ["$id"] = "6291", ["attributeName"] = "createTime", ["operator"] = "ge", ["attributeValue"] = 1545580800000L }, new Dictionary { - ["$id"] = "6292", ["attributeName"] = "modifiedTime", ["operator"] = "timerange", ["attributeValue"] = "LAST_24H|LAST_7D|LAST_30D|LAST_365D|MORE_THAN_365D" } - } + }, }, }); Response response = await client.QueryAsync(content); @@ -2537,40 +2277,35 @@ Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(ap using RequestContent content = RequestContent.Create(new { limit = 10, - filter = new Dictionary + filter = new { - ["$id"] = "6354", - ["or"] = new object[] + or = new object[] { new Dictionary { - ["$id"] = "6355", ["attributeName"] = ".", ["operator"] = "eq|ne|contains|prefix", ["attributeValue"] = "string value" }, new Dictionary { - ["$id"] = "6356", ["attributeName"] = ".", ["operator"] = "eq|ne|gt|ge|lt|le", ["attributeValue"] = 123 }, new Dictionary { - ["$id"] = "6357", ["attributeName"] = ".", ["operator"] = "eq|ne", ["attributeValue"] = true }, new Dictionary { - ["$id"] = "6358", ["attributeName"] = ".", ["operator"] = "timerange", ["attributeValue"] = "LAST_24H|LAST_7D|LAST_30D|LAST_365D|MORE_THAN_365D" } - } + }, }, }); Response response = await client.QueryAsync(content); @@ -2587,11 +2322,10 @@ Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(ap using RequestContent content = RequestContent.Create(new { limit = 10, - filter = new Dictionary + filter = new { - ["$id"] = "6381", - ["classification"] = "MICROSOFT.PERSONAL.EMAIL", - ["includeSubClassifications"] = true + classification = "MICROSOFT.PERSONAL.EMAIL", + includeSubClassifications = true, }, }); Response response = await client.QueryAsync(content); @@ -2608,10 +2342,9 @@ Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(ap using RequestContent content = RequestContent.Create(new { limit = 10, - filter = new Dictionary + filter = new { - ["$id"] = "6431", - ["collectionId"] = "collectionName" + collectionId = "collectionName", }, }); Response response = await client.QueryAsync(content); @@ -2627,10 +2360,9 @@ Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(ap using RequestContent content = RequestContent.Create(new { - filter = new Dictionary + filter = new { - ["$id"] = "6480", - ["objectType"] = "Tables" + objectType = "Tables", }, limit = 10, facets = new object[] @@ -2671,17 +2403,15 @@ Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(ap using RequestContent content = RequestContent.Create(new { limit = 10, - filter = new Dictionary + filter = new { - ["$id"] = "6610", - ["and"] = new object[] + and = new object[] { - new Dictionary + new { - ["$id"] = "6611", - ["fileExtension"] = "txt" + fileExtension = "txt", } - } + }, }, }); Response response = await client.QueryAsync(content); @@ -2699,34 +2429,29 @@ using RequestContent content = RequestContent.Create(new { keywords = "", limit = 10, - filter = new Dictionary + filter = new { - ["$id"] = "6654", - ["and"] = new object[] + and = new object[] { - new Dictionary + new { - ["$id"] = "6655", - ["objectType"] = "Glossary terms" + objectType = "Glossary terms", }, - new Dictionary + new { - ["$id"] = "6656", - ["or"] = new object[] + or = new object[] { - new Dictionary + new { - ["$id"] = "6657", - ["glossaryType"] = "AtlasGlossary" + glossaryType = "AtlasGlossary", }, - new Dictionary + new { - ["$id"] = "6658", - ["glossaryType"] = "AtlasGlossaryTerm" + glossaryType = "AtlasGlossaryTerm", } - } + }, } - } + }, }, facets = new object[] { @@ -2764,17 +2489,15 @@ Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(ap using RequestContent content = RequestContent.Create(new { limit = 10, - filter = new Dictionary + filter = new { - ["$id"] = "6726", - ["and"] = new object[] + and = new object[] { - new Dictionary + new { - ["$id"] = "6727", - ["id"] = "bfecbcc3-1838-45fe-96d6-112de8a170f9" + id = "bfecbcc3-1838-45fe-96d6-112de8a170f9", } - } + }, }, }); Response response = await client.QueryAsync(content); @@ -2791,14 +2514,12 @@ Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(ap using RequestContent content = RequestContent.Create(new { limit = 10, - filter = new Dictionary + filter = new { - ["$id"] = "6755", - ["not"] = new Dictionary + not = new { - ["$id"] = "6756", - ["classification"] = "MICROSOFT.SYSTEM.TEMP_FILE" - } + classification = "MICROSOFT.SYSTEM.TEMP_FILE", + }, }, }); Response response = await client.QueryAsync(content); @@ -2815,52 +2536,43 @@ Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(ap using RequestContent content = RequestContent.Create(new { limit = 10, - filter = new Dictionary + filter = new { - ["$id"] = "6798", - ["or"] = new object[] + or = new object[] { - new Dictionary + new { - ["$id"] = "6799", - ["objectType"] = "Dashboards" + objectType = "Dashboards", }, - new Dictionary + new { - ["$id"] = "6800", - ["objectType"] = "Data pipelines" + objectType = "Data pipelines", }, - new Dictionary + new { - ["$id"] = "6801", - ["objectType"] = "Files" + objectType = "Files", }, - new Dictionary + new { - ["$id"] = "6802", - ["objectType"] = "Folders" + objectType = "Folders", }, - new Dictionary + new { - ["$id"] = "6803", - ["objectType"] = "Glossary terms" + objectType = "Glossary terms", }, - new Dictionary + new { - ["$id"] = "6804", - ["objectType"] = "Reports" + objectType = "Reports", }, - new Dictionary + new { - ["$id"] = "6805", - ["objectType"] = "Stored procedures" + objectType = "Stored procedures", }, - new Dictionary + new { - ["$id"] = "6806", - ["objectType"] = "Tables" + objectType = "Tables", } - } + }, }, }); Response response = await client.QueryAsync(content); @@ -2877,36 +2589,31 @@ Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(ap using RequestContent content = RequestContent.Create(new { keywords = "exampledata", - filter = new Dictionary + filter = new { - ["$id"] = "6844", - ["and"] = new object[] + and = new object[] { - new Dictionary + new { - ["$id"] = "6845", - ["objectType"] = "Files" + objectType = "Files", }, - new Dictionary + new { - ["$id"] = "6846", - ["entityType"] = "azure_blob_path" + entityType = "azure_blob_path", } - } + }, }, limit = 2, continuationToken = "", orderby = new object[] { - new Dictionary + new { - ["$id"] = "6851", - ["name"] = "ASC" + name = "ASC", }, - new Dictionary + new { - ["$id"] = "6853", - ["updateTime"] = "DESC" + updateTime = "DESC", } }, facets = new object[] @@ -2972,35 +2679,30 @@ Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(ap using RequestContent content = RequestContent.Create(new { keywords = "exampledata", - filter = new Dictionary + filter = new { - ["$id"] = "6931", - ["and"] = new object[] + and = new object[] { - new Dictionary + new { - ["$id"] = "6932", - ["objectType"] = "Files" + objectType = "Files", }, - new Dictionary + new { - ["$id"] = "6933", - ["entityType"] = "azure_blob_path" + entityType = "azure_blob_path", } - } + }, }, limit = 2, orderby = new object[] { - new Dictionary + new { - ["$id"] = "6937", - ["name"] = "ASC" + name = "ASC", }, - new Dictionary + new { - ["$id"] = "6939", - ["updateTime"] = "DESC" + updateTime = "DESC", } }, facets = new object[] @@ -3066,36 +2768,31 @@ Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(ap using RequestContent content = RequestContent.Create(new { keywords = "exampledata", - filter = new Dictionary + filter = new { - ["$id"] = "7017", - ["and"] = new object[] + and = new object[] { - new Dictionary + new { - ["$id"] = "7018", - ["objectType"] = "Files" + objectType = "Files", }, - new Dictionary + new { - ["$id"] = "7019", - ["entityType"] = "azure_blob_path" + entityType = "azure_blob_path", } - } + }, }, limit = 2, continuationToken = "", orderby = new object[] { - new Dictionary + new { - ["$id"] = "7024", - ["name"] = "ASC" + name = "ASC", }, - new Dictionary + new { - ["$id"] = "7026", - ["updateTime"] = "DESC" + updateTime = "DESC", } }, facets = new object[] @@ -3161,27 +2858,23 @@ Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(ap using RequestContent content = RequestContent.Create(new { limit = 10, - filter = new Dictionary + filter = new { - ["$id"] = "7103", - ["or"] = new object[] + or = new object[] { - new Dictionary + new { - ["$id"] = "7104", - ["createTime"] = new Dictionary + createTime = new Dictionary { - ["$id"] = "7105", ["operator"] = "lt", ["timeThreshold"] = 1545580800000L - } + }, }, - new Dictionary + new { - ["$id"] = "7106", - ["updateTime"] = "LAST_24H|LAST_7D|LAST_30D|LAST_365D|MORE_THAN_365D" + updateTime = "LAST_24H|LAST_7D|LAST_30D|LAST_365D|MORE_THAN_365D", } - } + }, }, }); Response response = await client.QueryAsync(content); @@ -3198,51 +2891,43 @@ Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(ap using RequestContent content = RequestContent.Create(new { keywords = "exampledata", - filter = new Dictionary + filter = new { - ["$id"] = "7139", - ["and"] = new object[] + and = new object[] { - new Dictionary + new { - ["$id"] = "7140", - ["objectType"] = "Files" + objectType = "Files", }, - new Dictionary + new { - ["$id"] = "7141", - ["not"] = new Dictionary + not = new { - ["$id"] = "7142", - ["or"] = new object[] + or = new object[] { new Dictionary { - ["$id"] = "7143", ["attributeName"] = "size", ["operator"] = "eq", ["attributeValue"] = 0 }, new Dictionary { - ["$id"] = "7144", ["attributeName"] = "fileSize", ["operator"] = "eq", ["attributeValue"] = 0 } - } - } + }, + }, }, - new Dictionary + new { - ["$id"] = "7145", - ["not"] = new Dictionary + not = new { - ["$id"] = "7146", - ["classification"] = "MICROSOFT.SYSTEM.TEMP_FILE" - } + classification = "MICROSOFT.SYSTEM.TEMP_FILE", + }, } - } + }, }, limit = 10, taxonomySetting = new @@ -3276,28 +2961,24 @@ using RequestContent content = RequestContent.Create(new { keywords = "", limit = 3, - filter = new Dictionary + filter = new { - ["$id"] = "7200", - ["or"] = new object[] + or = new object[] { - new Dictionary + new { - ["$id"] = "7201", - ["term"] = "ExampleTerm" + term = "ExampleTerm", }, - new Dictionary + new { - ["$id"] = "7202", - ["term"] = "ExampleTerm", - ["glossary"] = "GlossaryName" + term = "ExampleTerm", + glossary = "GlossaryName", }, - new Dictionary + new { - ["$id"] = "7203", - ["termGuid"] = "" + termGuid = "", } - } + }, }, }); Response response = await client.QueryAsync(content); @@ -3314,18 +2995,16 @@ Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(ap using RequestContent content = RequestContent.Create(new { limit = 10, - filter = new Dictionary + filter = new { - ["$id"] = "7236", - ["and"] = new object[] + and = new object[] { - new Dictionary + new { - ["$id"] = "7237", - ["entityType"] = "azure_blob_path", - ["includeSubTypes"] = false + entityType = "azure_blob_path", + includeSubTypes = false, } - } + }, }, }); Response response = await client.QueryAsync(content); @@ -3345,35 +3024,30 @@ Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(ap using RequestContent content = RequestContent.Create(new { keywords = "exampledata", - filter = new Dictionary + filter = new { - ["$id"] = "6024", - ["and"] = new object[] + and = new object[] { - new Dictionary + new { - ["$id"] = "6025", - ["objectType"] = "Files" + objectType = "Files", }, - new Dictionary + new { - ["$id"] = "6026", - ["entityType"] = "azure_blob_path" + entityType = "azure_blob_path", } - } + }, }, limit = 10, orderby = new object[] { - new Dictionary + new { - ["$id"] = "6030", - ["name"] = "ASC" + name = "ASC", }, - new Dictionary + new { - ["$id"] = "6032", - ["updateTime"] = "DESC" + updateTime = "DESC", } }, facets = new object[] @@ -3439,24 +3113,21 @@ Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(ap using RequestContent content = RequestContent.Create(new { limit = 10, - filter = new Dictionary + filter = new { - ["$id"] = "6109", - ["and"] = new object[] + and = new object[] { - new Dictionary + new { - ["$id"] = "6110", - ["entityType"] = "azure_blob_path" + entityType = "azure_blob_path", }, new Dictionary { - ["$id"] = "6111", ["attributeName"] = "qualifiedName", ["operator"] = "contains", ["attributeValue"] = ".csv" } - } + }, }, }); Response response = client.Query(content); @@ -3473,45 +3144,39 @@ Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(ap using RequestContent content = RequestContent.Create(new { limit = 10, - filter = new Dictionary + filter = new { - ["$id"] = "6162", - ["and"] = new object[] + and = new object[] { - new Dictionary + new { - ["$id"] = "6163", - ["entityType"] = "azure_blob_path" + entityType = "azure_blob_path", }, new Dictionary { - ["$id"] = "6164", ["attributeName"] = "qualifiedName", ["operator"] = "contains", ["attributeValue"] = ".csv" }, - new Dictionary + new { - ["$id"] = "6165", - ["or"] = new object[] + or = new object[] { new Dictionary { - ["$id"] = "6166", ["attributeName"] = "name", ["operator"] = "eq", ["attributeValue"] = "exampledata.csv" }, new Dictionary { - ["$id"] = "6167", ["attributeName"] = "qualifiedName", ["operator"] = "prefix", ["attributeValue"] = "https://" } - } + }, } - } + }, }, }); Response response = client.Query(content); @@ -3528,147 +3193,119 @@ Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(ap using RequestContent content = RequestContent.Create(new { limit = 10, - filter = new Dictionary + filter = new { - ["$id"] = "6220", - ["or"] = new object[] + or = new object[] { - new Dictionary + new { - ["$id"] = "6221", - ["assetType"] = "SQL Server" + assetType = "SQL Server", }, - new Dictionary + new { - ["$id"] = "6222", - ["assetType"] = "Azure SQL Server" + assetType = "Azure SQL Server", }, - new Dictionary + new { - ["$id"] = "6223", - ["assetType"] = "Azure SQL Database" + assetType = "Azure SQL Database", }, - new Dictionary + new { - ["$id"] = "6224", - ["assetType"] = "Azure SQL Data Warehouse" + assetType = "Azure SQL Data Warehouse", }, - new Dictionary + new { - ["$id"] = "6225", - ["assetType"] = "Azure SQL Managed Instance" + assetType = "Azure SQL Managed Instance", }, - new Dictionary + new { - ["$id"] = "6226", - ["assetType"] = "Azure Storage Account" + assetType = "Azure Storage Account", }, - new Dictionary + new { - ["$id"] = "6227", - ["assetType"] = "Azure Blob Storage" + assetType = "Azure Blob Storage", }, - new Dictionary + new { - ["$id"] = "6228", - ["assetType"] = "Azure Files" + assetType = "Azure Files", }, - new Dictionary + new { - ["$id"] = "6229", - ["assetType"] = "Azure Table Storage" + assetType = "Azure Table Storage", }, - new Dictionary + new { - ["$id"] = "6230", - ["assetType"] = "Azure Data Lake Storage Gen1" + assetType = "Azure Data Lake Storage Gen1", }, - new Dictionary + new { - ["$id"] = "6231", - ["assetType"] = "Azure Data Lake Storage Gen2" + assetType = "Azure Data Lake Storage Gen2", }, - new Dictionary + new { - ["$id"] = "6232", - ["assetType"] = "Azure Cosmos DB" + assetType = "Azure Cosmos DB", }, - new Dictionary + new { - ["$id"] = "6233", - ["assetType"] = "Azure Data Factory" + assetType = "Azure Data Factory", }, - new Dictionary + new { - ["$id"] = "6234", - ["assetType"] = "Azure Cognitive Search" + assetType = "Azure Cognitive Search", }, - new Dictionary + new { - ["$id"] = "6235", - ["assetType"] = "Power BI" + assetType = "Power BI", }, - new Dictionary + new { - ["$id"] = "6236", - ["assetType"] = "Azure Data Explorer" + assetType = "Azure Data Explorer", }, - new Dictionary + new { - ["$id"] = "6237", - ["assetType"] = "Amazon S3" + assetType = "Amazon S3", }, - new Dictionary + new { - ["$id"] = "6238", - ["assetType"] = "Azure Data Share" + assetType = "Azure Data Share", }, - new Dictionary + new { - ["$id"] = "6239", - ["assetType"] = "Teradata" + assetType = "Teradata", }, - new Dictionary + new { - ["$id"] = "6240", - ["assetType"] = "SAP S4HANA" + assetType = "SAP S4HANA", }, - new Dictionary + new { - ["$id"] = "6241", - ["assetType"] = "SAP ECC" + assetType = "SAP ECC", }, - new Dictionary + new { - ["$id"] = "6242", - ["assetType"] = "SQL Server Integration Services" + assetType = "SQL Server Integration Services", }, - new Dictionary + new { - ["$id"] = "6243", - ["assetType"] = "hive" + assetType = "hive", }, - new Dictionary + new { - ["$id"] = "6244", - ["assetType"] = "Azure Database for MySQL" + assetType = "Azure Database for MySQL", }, - new Dictionary + new { - ["$id"] = "6245", - ["assetType"] = "Azure Database for MariaDB" + assetType = "Azure Database for MariaDB", }, - new Dictionary + new { - ["$id"] = "6246", - ["assetType"] = "Azure Database for PostgreSQL" + assetType = "Azure Database for PostgreSQL", }, - new Dictionary + new { - ["$id"] = "6247", - ["assetType"] = "Azure Synapse Analytics" + assetType = "Azure Synapse Analytics", } - } + }, }, }); Response response = client.Query(content); @@ -3685,33 +3322,29 @@ Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(ap using RequestContent content = RequestContent.Create(new { limit = 10, - filter = new Dictionary + filter = new { - ["$id"] = "6289", - ["or"] = new object[] + or = new object[] { new Dictionary { - ["$id"] = "6290", ["attributeName"] = "name", ["operator"] = "eq", ["attributeValue"] = "exampledata.csv" }, new Dictionary { - ["$id"] = "6291", ["attributeName"] = "createTime", ["operator"] = "ge", ["attributeValue"] = 1545580800000L }, new Dictionary { - ["$id"] = "6292", ["attributeName"] = "modifiedTime", ["operator"] = "timerange", ["attributeValue"] = "LAST_24H|LAST_7D|LAST_30D|LAST_365D|MORE_THAN_365D" } - } + }, }, }); Response response = client.Query(content); @@ -3728,40 +3361,35 @@ Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(ap using RequestContent content = RequestContent.Create(new { limit = 10, - filter = new Dictionary + filter = new { - ["$id"] = "6354", - ["or"] = new object[] + or = new object[] { new Dictionary { - ["$id"] = "6355", ["attributeName"] = ".", ["operator"] = "eq|ne|contains|prefix", ["attributeValue"] = "string value" }, new Dictionary { - ["$id"] = "6356", ["attributeName"] = ".", ["operator"] = "eq|ne|gt|ge|lt|le", ["attributeValue"] = 123 }, new Dictionary { - ["$id"] = "6357", ["attributeName"] = ".", ["operator"] = "eq|ne", ["attributeValue"] = true }, new Dictionary { - ["$id"] = "6358", ["attributeName"] = ".", ["operator"] = "timerange", ["attributeValue"] = "LAST_24H|LAST_7D|LAST_30D|LAST_365D|MORE_THAN_365D" } - } + }, }, }); Response response = client.Query(content); @@ -3778,11 +3406,10 @@ Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(ap using RequestContent content = RequestContent.Create(new { limit = 10, - filter = new Dictionary + filter = new { - ["$id"] = "6381", - ["classification"] = "MICROSOFT.PERSONAL.EMAIL", - ["includeSubClassifications"] = true + classification = "MICROSOFT.PERSONAL.EMAIL", + includeSubClassifications = true, }, }); Response response = client.Query(content); @@ -3799,10 +3426,9 @@ Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(ap using RequestContent content = RequestContent.Create(new { limit = 10, - filter = new Dictionary + filter = new { - ["$id"] = "6431", - ["collectionId"] = "collectionName" + collectionId = "collectionName", }, }); Response response = client.Query(content); @@ -3818,10 +3444,9 @@ Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(ap using RequestContent content = RequestContent.Create(new { - filter = new Dictionary + filter = new { - ["$id"] = "6480", - ["objectType"] = "Tables" + objectType = "Tables", }, limit = 10, facets = new object[] @@ -3862,17 +3487,15 @@ Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(ap using RequestContent content = RequestContent.Create(new { limit = 10, - filter = new Dictionary + filter = new { - ["$id"] = "6610", - ["and"] = new object[] + and = new object[] { - new Dictionary + new { - ["$id"] = "6611", - ["fileExtension"] = "txt" + fileExtension = "txt", } - } + }, }, }); Response response = client.Query(content); @@ -3890,34 +3513,29 @@ using RequestContent content = RequestContent.Create(new { keywords = "", limit = 10, - filter = new Dictionary + filter = new { - ["$id"] = "6654", - ["and"] = new object[] + and = new object[] { - new Dictionary + new { - ["$id"] = "6655", - ["objectType"] = "Glossary terms" + objectType = "Glossary terms", }, - new Dictionary + new { - ["$id"] = "6656", - ["or"] = new object[] + or = new object[] { - new Dictionary + new { - ["$id"] = "6657", - ["glossaryType"] = "AtlasGlossary" + glossaryType = "AtlasGlossary", }, - new Dictionary + new { - ["$id"] = "6658", - ["glossaryType"] = "AtlasGlossaryTerm" + glossaryType = "AtlasGlossaryTerm", } - } + }, } - } + }, }, facets = new object[] { @@ -3955,17 +3573,15 @@ Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(ap using RequestContent content = RequestContent.Create(new { limit = 10, - filter = new Dictionary + filter = new { - ["$id"] = "6726", - ["and"] = new object[] + and = new object[] { - new Dictionary + new { - ["$id"] = "6727", - ["id"] = "bfecbcc3-1838-45fe-96d6-112de8a170f9" + id = "bfecbcc3-1838-45fe-96d6-112de8a170f9", } - } + }, }, }); Response response = client.Query(content); @@ -3982,14 +3598,12 @@ Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(ap using RequestContent content = RequestContent.Create(new { limit = 10, - filter = new Dictionary + filter = new { - ["$id"] = "6755", - ["not"] = new Dictionary + not = new { - ["$id"] = "6756", - ["classification"] = "MICROSOFT.SYSTEM.TEMP_FILE" - } + classification = "MICROSOFT.SYSTEM.TEMP_FILE", + }, }, }); Response response = client.Query(content); @@ -4006,52 +3620,43 @@ Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(ap using RequestContent content = RequestContent.Create(new { limit = 10, - filter = new Dictionary + filter = new { - ["$id"] = "6798", - ["or"] = new object[] + or = new object[] { - new Dictionary + new { - ["$id"] = "6799", - ["objectType"] = "Dashboards" + objectType = "Dashboards", }, - new Dictionary + new { - ["$id"] = "6800", - ["objectType"] = "Data pipelines" + objectType = "Data pipelines", }, - new Dictionary + new { - ["$id"] = "6801", - ["objectType"] = "Files" + objectType = "Files", }, - new Dictionary + new { - ["$id"] = "6802", - ["objectType"] = "Folders" + objectType = "Folders", }, - new Dictionary + new { - ["$id"] = "6803", - ["objectType"] = "Glossary terms" + objectType = "Glossary terms", }, - new Dictionary + new { - ["$id"] = "6804", - ["objectType"] = "Reports" + objectType = "Reports", }, - new Dictionary + new { - ["$id"] = "6805", - ["objectType"] = "Stored procedures" + objectType = "Stored procedures", }, - new Dictionary + new { - ["$id"] = "6806", - ["objectType"] = "Tables" + objectType = "Tables", } - } + }, }, }); Response response = client.Query(content); @@ -4068,36 +3673,31 @@ Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(ap using RequestContent content = RequestContent.Create(new { keywords = "exampledata", - filter = new Dictionary + filter = new { - ["$id"] = "6844", - ["and"] = new object[] + and = new object[] { - new Dictionary + new { - ["$id"] = "6845", - ["objectType"] = "Files" + objectType = "Files", }, - new Dictionary + new { - ["$id"] = "6846", - ["entityType"] = "azure_blob_path" + entityType = "azure_blob_path", } - } + }, }, limit = 2, continuationToken = "", orderby = new object[] { - new Dictionary + new { - ["$id"] = "6851", - ["name"] = "ASC" + name = "ASC", }, - new Dictionary + new { - ["$id"] = "6853", - ["updateTime"] = "DESC" + updateTime = "DESC", } }, facets = new object[] @@ -4163,35 +3763,30 @@ Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(ap using RequestContent content = RequestContent.Create(new { keywords = "exampledata", - filter = new Dictionary + filter = new { - ["$id"] = "6931", - ["and"] = new object[] + and = new object[] { - new Dictionary + new { - ["$id"] = "6932", - ["objectType"] = "Files" + objectType = "Files", }, - new Dictionary + new { - ["$id"] = "6933", - ["entityType"] = "azure_blob_path" + entityType = "azure_blob_path", } - } + }, }, limit = 2, orderby = new object[] { - new Dictionary + new { - ["$id"] = "6937", - ["name"] = "ASC" + name = "ASC", }, - new Dictionary + new { - ["$id"] = "6939", - ["updateTime"] = "DESC" + updateTime = "DESC", } }, facets = new object[] @@ -4257,36 +3852,31 @@ Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(ap using RequestContent content = RequestContent.Create(new { keywords = "exampledata", - filter = new Dictionary + filter = new { - ["$id"] = "7017", - ["and"] = new object[] + and = new object[] { - new Dictionary + new { - ["$id"] = "7018", - ["objectType"] = "Files" + objectType = "Files", }, - new Dictionary + new { - ["$id"] = "7019", - ["entityType"] = "azure_blob_path" + entityType = "azure_blob_path", } - } + }, }, limit = 2, continuationToken = "", orderby = new object[] { - new Dictionary + new { - ["$id"] = "7024", - ["name"] = "ASC" + name = "ASC", }, - new Dictionary + new { - ["$id"] = "7026", - ["updateTime"] = "DESC" + updateTime = "DESC", } }, facets = new object[] @@ -4352,27 +3942,23 @@ Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(ap using RequestContent content = RequestContent.Create(new { limit = 10, - filter = new Dictionary + filter = new { - ["$id"] = "7103", - ["or"] = new object[] + or = new object[] { - new Dictionary + new { - ["$id"] = "7104", - ["createTime"] = new Dictionary + createTime = new Dictionary { - ["$id"] = "7105", ["operator"] = "lt", ["timeThreshold"] = 1545580800000L - } + }, }, - new Dictionary + new { - ["$id"] = "7106", - ["updateTime"] = "LAST_24H|LAST_7D|LAST_30D|LAST_365D|MORE_THAN_365D" + updateTime = "LAST_24H|LAST_7D|LAST_30D|LAST_365D|MORE_THAN_365D", } - } + }, }, }); Response response = client.Query(content); @@ -4389,51 +3975,43 @@ Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(ap using RequestContent content = RequestContent.Create(new { keywords = "exampledata", - filter = new Dictionary + filter = new { - ["$id"] = "7139", - ["and"] = new object[] + and = new object[] { - new Dictionary + new { - ["$id"] = "7140", - ["objectType"] = "Files" + objectType = "Files", }, - new Dictionary + new { - ["$id"] = "7141", - ["not"] = new Dictionary + not = new { - ["$id"] = "7142", - ["or"] = new object[] + or = new object[] { new Dictionary { - ["$id"] = "7143", ["attributeName"] = "size", ["operator"] = "eq", ["attributeValue"] = 0 }, new Dictionary { - ["$id"] = "7144", ["attributeName"] = "fileSize", ["operator"] = "eq", ["attributeValue"] = 0 } - } - } + }, + }, }, - new Dictionary + new { - ["$id"] = "7145", - ["not"] = new Dictionary + not = new { - ["$id"] = "7146", - ["classification"] = "MICROSOFT.SYSTEM.TEMP_FILE" - } + classification = "MICROSOFT.SYSTEM.TEMP_FILE", + }, } - } + }, }, limit = 10, taxonomySetting = new @@ -4467,28 +4045,24 @@ using RequestContent content = RequestContent.Create(new { keywords = "", limit = 3, - filter = new Dictionary + filter = new { - ["$id"] = "7200", - ["or"] = new object[] + or = new object[] { - new Dictionary + new { - ["$id"] = "7201", - ["term"] = "ExampleTerm" + term = "ExampleTerm", }, - new Dictionary + new { - ["$id"] = "7202", - ["term"] = "ExampleTerm", - ["glossary"] = "GlossaryName" + term = "ExampleTerm", + glossary = "GlossaryName", }, - new Dictionary + new { - ["$id"] = "7203", - ["termGuid"] = "" + termGuid = "", } - } + }, }, }); Response response = client.Query(content); @@ -4505,18 +4079,16 @@ Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(ap using RequestContent content = RequestContent.Create(new { limit = 10, - filter = new Dictionary + filter = new { - ["$id"] = "7236", - ["and"] = new object[] + and = new object[] { - new Dictionary + new { - ["$id"] = "7237", - ["entityType"] = "azure_blob_path", - ["includeSubTypes"] = false + entityType = "azure_blob_path", + includeSubTypes = false, } - } + }, }, }); Response response = client.Query(content); @@ -4537,18 +4109,16 @@ SuggestConfig body = new SuggestConfig { Keywords = "exampledata", Limit = 10, - Filter = BinaryData.FromObjectAsJson(new Dictionary + Filter = BinaryData.FromObjectAsJson(new { - ["$id"] = "7294", - ["and"] = new object[] + and = new object[] { - new Dictionary + new { - ["$id"] = "7295", - ["entityType"] = "azure_blob_path", - ["includeSubTypes"] = false + entityType = "azure_blob_path", + includeSubTypes = false, } - } + }, }), }; Response response = await client.SuggestAsync(body); @@ -4566,18 +4136,16 @@ SuggestConfig body = new SuggestConfig { Keywords = "exampledata", Limit = 10, - Filter = BinaryData.FromObjectAsJson(new Dictionary + Filter = BinaryData.FromObjectAsJson(new { - ["$id"] = "7294", - ["and"] = new object[] + and = new object[] { - new Dictionary + new { - ["$id"] = "7295", - ["entityType"] = "azure_blob_path", - ["includeSubTypes"] = false + entityType = "azure_blob_path", + includeSubTypes = false, } - } + }, }), }; Response response = client.Suggest(body); @@ -4594,18 +4162,16 @@ Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(ap using RequestContent content = RequestContent.Create(new { keywords = "exampledata", - filter = new Dictionary + filter = new { - ["$id"] = "7294", - ["and"] = new object[] + and = new object[] { - new Dictionary + new { - ["$id"] = "7295", - ["entityType"] = "azure_blob_path", - ["includeSubTypes"] = false + entityType = "azure_blob_path", + includeSubTypes = false, } - } + }, }, limit = 10, }); @@ -4626,18 +4192,16 @@ Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(ap using RequestContent content = RequestContent.Create(new { keywords = "exampledata", - filter = new Dictionary + filter = new { - ["$id"] = "7294", - ["and"] = new object[] + and = new object[] { - new Dictionary + new { - ["$id"] = "7295", - ["entityType"] = "azure_blob_path", - ["includeSubTypes"] = false + entityType = "azure_blob_path", + includeSubTypes = false, } - } + }, }, limit = 10, }); @@ -4659,18 +4223,16 @@ AutoCompleteConfig body = new AutoCompleteConfig { Keywords = "exa", Limit = 10, - Filter = BinaryData.FromObjectAsJson(new Dictionary + Filter = BinaryData.FromObjectAsJson(new { - ["$id"] = "7350", - ["and"] = new object[] + and = new object[] { - new Dictionary + new { - ["$id"] = "7351", - ["entityType"] = "azure_blob_path", - ["includeSubTypes"] = false + entityType = "azure_blob_path", + includeSubTypes = false, } - } + }, }), }; Response response = await client.AutoCompleteAsync(body); @@ -4688,18 +4250,16 @@ AutoCompleteConfig body = new AutoCompleteConfig { Keywords = "exa", Limit = 10, - Filter = BinaryData.FromObjectAsJson(new Dictionary + Filter = BinaryData.FromObjectAsJson(new { - ["$id"] = "7350", - ["and"] = new object[] + and = new object[] { - new Dictionary + new { - ["$id"] = "7351", - ["entityType"] = "azure_blob_path", - ["includeSubTypes"] = false + entityType = "azure_blob_path", + includeSubTypes = false, } - } + }, }), }; Response response = client.AutoComplete(body); @@ -4716,18 +4276,16 @@ Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(ap using RequestContent content = RequestContent.Create(new { keywords = "exa", - filter = new Dictionary + filter = new { - ["$id"] = "7350", - ["and"] = new object[] + and = new object[] { - new Dictionary + new { - ["$id"] = "7351", - ["entityType"] = "azure_blob_path", - ["includeSubTypes"] = false + entityType = "azure_blob_path", + includeSubTypes = false, } - } + }, }, limit = 10, }); @@ -4748,18 +4306,16 @@ Discovery client = new DataMapClient(endpoint, credential).GetDiscoveryClient(ap using RequestContent content = RequestContent.Create(new { keywords = "exa", - filter = new Dictionary + filter = new { - ["$id"] = "7350", - ["and"] = new object[] + and = new object[] { - new Dictionary + new { - ["$id"] = "7351", - ["entityType"] = "azure_blob_path", - ["includeSubTypes"] = false + entityType = "azure_blob_path", + includeSubTypes = false, } - } + }, }, limit = 10, }); diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/tests/Generated/Samples/Samples_Discovery.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/tests/Generated/Samples/Samples_Discovery.cs index f1eb5daae5f6..41336ceed35b 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/tests/Generated/Samples/Samples_Discovery.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/tests/Generated/Samples/Samples_Discovery.cs @@ -28,35 +28,30 @@ public void Example_Discovery_Query_DiscoveryQuery() using RequestContent content = RequestContent.Create(new { keywords = "exampledata", - filter = new Dictionary + filter = new { - ["$id"] = "6024", - ["and"] = new object[] + and = new object[] { -new Dictionary +new { -["$id"] = "6025", -["objectType"] = "Files" +objectType = "Files", }, -new Dictionary +new { -["$id"] = "6026", -["entityType"] = "azure_blob_path" +entityType = "azure_blob_path", } - } + }, }, limit = 10, orderby = new object[] { -new Dictionary +new { -["$id"] = "6030", -["name"] = "ASC" +name = "ASC", }, -new Dictionary +new { -["$id"] = "6032", -["updateTime"] = "DESC" +updateTime = "DESC", } }, facets = new object[] @@ -125,35 +120,30 @@ public async Task Example_Discovery_Query_DiscoveryQuery_Async() using RequestContent content = RequestContent.Create(new { keywords = "exampledata", - filter = new Dictionary + filter = new { - ["$id"] = "6024", - ["and"] = new object[] + and = new object[] { -new Dictionary +new { -["$id"] = "6025", -["objectType"] = "Files" +objectType = "Files", }, -new Dictionary +new { -["$id"] = "6026", -["entityType"] = "azure_blob_path" +entityType = "azure_blob_path", } - } + }, }, limit = 10, orderby = new object[] { -new Dictionary +new { -["$id"] = "6030", -["name"] = "ASC" +name = "ASC", }, -new Dictionary +new { -["$id"] = "6032", -["updateTime"] = "DESC" +updateTime = "DESC", } }, facets = new object[] @@ -223,31 +213,26 @@ public void Example_Discovery_Query_DiscoveryQuery_Convenience() { Keywords = "exampledata", Limit = 10, - Orderby = {BinaryData.FromObjectAsJson(new Dictionary + Orderby = {BinaryData.FromObjectAsJson(new { -["$id"] = "6030", -["name"] = "ASC" -}), BinaryData.FromObjectAsJson(new Dictionary +name = "ASC", +}), BinaryData.FromObjectAsJson(new { -["$id"] = "6032", -["updateTime"] = "DESC" +updateTime = "DESC", })}, - Filter = BinaryData.FromObjectAsJson(new Dictionary + Filter = BinaryData.FromObjectAsJson(new { - ["$id"] = "6024", - ["and"] = new object[] + and = new object[] { -new Dictionary +new { -["$id"] = "6025", -["objectType"] = "Files" +objectType = "Files", }, -new Dictionary +new { -["$id"] = "6026", -["entityType"] = "azure_blob_path" +entityType = "azure_blob_path", } - } + }, }), Facets = {new SearchFacetItem { @@ -306,31 +291,26 @@ public async Task Example_Discovery_Query_DiscoveryQuery_Convenience_Async() { Keywords = "exampledata", Limit = 10, - Orderby = {BinaryData.FromObjectAsJson(new Dictionary + Orderby = {BinaryData.FromObjectAsJson(new { -["$id"] = "6030", -["name"] = "ASC" -}), BinaryData.FromObjectAsJson(new Dictionary +name = "ASC", +}), BinaryData.FromObjectAsJson(new { -["$id"] = "6032", -["updateTime"] = "DESC" +updateTime = "DESC", })}, - Filter = BinaryData.FromObjectAsJson(new Dictionary + Filter = BinaryData.FromObjectAsJson(new { - ["$id"] = "6024", - ["and"] = new object[] + and = new object[] { -new Dictionary +new { -["$id"] = "6025", -["objectType"] = "Files" +objectType = "Files", }, -new Dictionary +new { -["$id"] = "6026", -["entityType"] = "azure_blob_path" +entityType = "azure_blob_path", } - } + }, }), Facets = {new SearchFacetItem { @@ -388,24 +368,21 @@ public void Example_Discovery_Query_DiscoveryQueryAnd() using RequestContent content = RequestContent.Create(new { limit = 10, - filter = new Dictionary + filter = new { - ["$id"] = "6109", - ["and"] = new object[] + and = new object[] { -new Dictionary +new { -["$id"] = "6110", -["entityType"] = "azure_blob_path" +entityType = "azure_blob_path", }, new Dictionary { -["$id"] = "6111", ["attributeName"] = "qualifiedName", ["operator"] = "contains", ["attributeValue"] = ".csv" } - } + }, }, }); Response response = client.Query(content); @@ -425,24 +402,21 @@ public async Task Example_Discovery_Query_DiscoveryQueryAnd_Async() using RequestContent content = RequestContent.Create(new { limit = 10, - filter = new Dictionary + filter = new { - ["$id"] = "6109", - ["and"] = new object[] + and = new object[] { -new Dictionary +new { -["$id"] = "6110", -["entityType"] = "azure_blob_path" +entityType = "azure_blob_path", }, new Dictionary { -["$id"] = "6111", ["attributeName"] = "qualifiedName", ["operator"] = "contains", ["attributeValue"] = ".csv" } - } + }, }, }); Response response = await client.QueryAsync(content); @@ -462,24 +436,21 @@ public void Example_Discovery_Query_DiscoveryQueryAnd_Convenience() QueryConfig body = new QueryConfig { Limit = 10, - Filter = BinaryData.FromObjectAsJson(new Dictionary + Filter = BinaryData.FromObjectAsJson(new { - ["$id"] = "6109", - ["and"] = new object[] + and = new object[] { -new Dictionary +new { -["$id"] = "6110", -["entityType"] = "azure_blob_path" +entityType = "azure_blob_path", }, new Dictionary { -["$id"] = "6111", ["attributeName"] = "qualifiedName", ["operator"] = "contains", ["attributeValue"] = ".csv" } - } + }, }), }; Response response = client.Query(body); @@ -496,24 +467,21 @@ public async Task Example_Discovery_Query_DiscoveryQueryAnd_Convenience_Async() QueryConfig body = new QueryConfig { Limit = 10, - Filter = BinaryData.FromObjectAsJson(new Dictionary + Filter = BinaryData.FromObjectAsJson(new { - ["$id"] = "6109", - ["and"] = new object[] + and = new object[] { -new Dictionary +new { -["$id"] = "6110", -["entityType"] = "azure_blob_path" +entityType = "azure_blob_path", }, new Dictionary { -["$id"] = "6111", ["attributeName"] = "qualifiedName", ["operator"] = "contains", ["attributeValue"] = ".csv" } - } + }, }), }; Response response = await client.QueryAsync(body); @@ -530,45 +498,39 @@ public void Example_Discovery_Query_DiscoveryQueryAndOrNested() using RequestContent content = RequestContent.Create(new { limit = 10, - filter = new Dictionary + filter = new { - ["$id"] = "6162", - ["and"] = new object[] + and = new object[] { -new Dictionary +new { -["$id"] = "6163", -["entityType"] = "azure_blob_path" +entityType = "azure_blob_path", }, new Dictionary { -["$id"] = "6164", ["attributeName"] = "qualifiedName", ["operator"] = "contains", ["attributeValue"] = ".csv" }, -new Dictionary +new { -["$id"] = "6165", -["or"] = new object[] +or = new object[] { new Dictionary { -["$id"] = "6166", ["attributeName"] = "name", ["operator"] = "eq", ["attributeValue"] = "exampledata.csv" }, new Dictionary { -["$id"] = "6167", ["attributeName"] = "qualifiedName", ["operator"] = "prefix", ["attributeValue"] = "https://" } +}, } -} - } + }, }, }); Response response = client.Query(content); @@ -588,45 +550,39 @@ public async Task Example_Discovery_Query_DiscoveryQueryAndOrNested_Async() using RequestContent content = RequestContent.Create(new { limit = 10, - filter = new Dictionary + filter = new { - ["$id"] = "6162", - ["and"] = new object[] + and = new object[] { -new Dictionary +new { -["$id"] = "6163", -["entityType"] = "azure_blob_path" +entityType = "azure_blob_path", }, new Dictionary { -["$id"] = "6164", ["attributeName"] = "qualifiedName", ["operator"] = "contains", ["attributeValue"] = ".csv" }, -new Dictionary +new { -["$id"] = "6165", -["or"] = new object[] +or = new object[] { new Dictionary { -["$id"] = "6166", ["attributeName"] = "name", ["operator"] = "eq", ["attributeValue"] = "exampledata.csv" }, new Dictionary { -["$id"] = "6167", ["attributeName"] = "qualifiedName", ["operator"] = "prefix", ["attributeValue"] = "https://" } +}, } -} - } + }, }, }); Response response = await client.QueryAsync(content); @@ -646,45 +602,39 @@ public void Example_Discovery_Query_DiscoveryQueryAndOrNested_Convenience() QueryConfig body = new QueryConfig { Limit = 10, - Filter = BinaryData.FromObjectAsJson(new Dictionary + Filter = BinaryData.FromObjectAsJson(new { - ["$id"] = "6162", - ["and"] = new object[] + and = new object[] { -new Dictionary +new { -["$id"] = "6163", -["entityType"] = "azure_blob_path" +entityType = "azure_blob_path", }, new Dictionary { -["$id"] = "6164", ["attributeName"] = "qualifiedName", ["operator"] = "contains", ["attributeValue"] = ".csv" }, -new Dictionary +new { -["$id"] = "6165", -["or"] = new object[] +or = new object[] { new Dictionary { -["$id"] = "6166", ["attributeName"] = "name", ["operator"] = "eq", ["attributeValue"] = "exampledata.csv" }, new Dictionary { -["$id"] = "6167", ["attributeName"] = "qualifiedName", ["operator"] = "prefix", ["attributeValue"] = "https://" } +}, } -} - } + }, }), }; Response response = client.Query(body); @@ -701,45 +651,39 @@ public async Task Example_Discovery_Query_DiscoveryQueryAndOrNested_Convenience_ QueryConfig body = new QueryConfig { Limit = 10, - Filter = BinaryData.FromObjectAsJson(new Dictionary + Filter = BinaryData.FromObjectAsJson(new { - ["$id"] = "6162", - ["and"] = new object[] + and = new object[] { -new Dictionary +new { -["$id"] = "6163", -["entityType"] = "azure_blob_path" +entityType = "azure_blob_path", }, new Dictionary { -["$id"] = "6164", ["attributeName"] = "qualifiedName", ["operator"] = "contains", ["attributeValue"] = ".csv" }, -new Dictionary +new { -["$id"] = "6165", -["or"] = new object[] +or = new object[] { new Dictionary { -["$id"] = "6166", ["attributeName"] = "name", ["operator"] = "eq", ["attributeValue"] = "exampledata.csv" }, new Dictionary { -["$id"] = "6167", ["attributeName"] = "qualifiedName", ["operator"] = "prefix", ["attributeValue"] = "https://" } +}, } -} - } + }, }), }; Response response = await client.QueryAsync(body); @@ -756,147 +700,119 @@ public void Example_Discovery_Query_DiscoveryQueryAssetType() using RequestContent content = RequestContent.Create(new { limit = 10, - filter = new Dictionary + filter = new { - ["$id"] = "6220", - ["or"] = new object[] + or = new object[] { -new Dictionary +new { -["$id"] = "6221", -["assetType"] = "SQL Server" +assetType = "SQL Server", }, -new Dictionary +new { -["$id"] = "6222", -["assetType"] = "Azure SQL Server" +assetType = "Azure SQL Server", }, -new Dictionary +new { -["$id"] = "6223", -["assetType"] = "Azure SQL Database" +assetType = "Azure SQL Database", }, -new Dictionary +new { -["$id"] = "6224", -["assetType"] = "Azure SQL Data Warehouse" +assetType = "Azure SQL Data Warehouse", }, -new Dictionary +new { -["$id"] = "6225", -["assetType"] = "Azure SQL Managed Instance" +assetType = "Azure SQL Managed Instance", }, -new Dictionary +new { -["$id"] = "6226", -["assetType"] = "Azure Storage Account" +assetType = "Azure Storage Account", }, -new Dictionary +new { -["$id"] = "6227", -["assetType"] = "Azure Blob Storage" +assetType = "Azure Blob Storage", }, -new Dictionary +new { -["$id"] = "6228", -["assetType"] = "Azure Files" +assetType = "Azure Files", }, -new Dictionary +new { -["$id"] = "6229", -["assetType"] = "Azure Table Storage" +assetType = "Azure Table Storage", }, -new Dictionary +new { -["$id"] = "6230", -["assetType"] = "Azure Data Lake Storage Gen1" +assetType = "Azure Data Lake Storage Gen1", }, -new Dictionary +new { -["$id"] = "6231", -["assetType"] = "Azure Data Lake Storage Gen2" +assetType = "Azure Data Lake Storage Gen2", }, -new Dictionary +new { -["$id"] = "6232", -["assetType"] = "Azure Cosmos DB" +assetType = "Azure Cosmos DB", }, -new Dictionary +new { -["$id"] = "6233", -["assetType"] = "Azure Data Factory" +assetType = "Azure Data Factory", }, -new Dictionary +new { -["$id"] = "6234", -["assetType"] = "Azure Cognitive Search" +assetType = "Azure Cognitive Search", }, -new Dictionary +new { -["$id"] = "6235", -["assetType"] = "Power BI" +assetType = "Power BI", }, -new Dictionary +new { -["$id"] = "6236", -["assetType"] = "Azure Data Explorer" +assetType = "Azure Data Explorer", }, -new Dictionary +new { -["$id"] = "6237", -["assetType"] = "Amazon S3" +assetType = "Amazon S3", }, -new Dictionary +new { -["$id"] = "6238", -["assetType"] = "Azure Data Share" +assetType = "Azure Data Share", }, -new Dictionary +new { -["$id"] = "6239", -["assetType"] = "Teradata" +assetType = "Teradata", }, -new Dictionary +new { -["$id"] = "6240", -["assetType"] = "SAP S4HANA" +assetType = "SAP S4HANA", }, -new Dictionary +new { -["$id"] = "6241", -["assetType"] = "SAP ECC" +assetType = "SAP ECC", }, -new Dictionary +new { -["$id"] = "6242", -["assetType"] = "SQL Server Integration Services" +assetType = "SQL Server Integration Services", }, -new Dictionary +new { -["$id"] = "6243", -["assetType"] = "hive" +assetType = "hive", }, -new Dictionary +new { -["$id"] = "6244", -["assetType"] = "Azure Database for MySQL" +assetType = "Azure Database for MySQL", }, -new Dictionary +new { -["$id"] = "6245", -["assetType"] = "Azure Database for MariaDB" +assetType = "Azure Database for MariaDB", }, -new Dictionary +new { -["$id"] = "6246", -["assetType"] = "Azure Database for PostgreSQL" +assetType = "Azure Database for PostgreSQL", }, -new Dictionary +new { -["$id"] = "6247", -["assetType"] = "Azure Synapse Analytics" +assetType = "Azure Synapse Analytics", } - } + }, }, }); Response response = client.Query(content); @@ -916,147 +832,119 @@ public async Task Example_Discovery_Query_DiscoveryQueryAssetType_Async() using RequestContent content = RequestContent.Create(new { limit = 10, - filter = new Dictionary + filter = new { - ["$id"] = "6220", - ["or"] = new object[] + or = new object[] { -new Dictionary +new { -["$id"] = "6221", -["assetType"] = "SQL Server" +assetType = "SQL Server", }, -new Dictionary +new { -["$id"] = "6222", -["assetType"] = "Azure SQL Server" +assetType = "Azure SQL Server", }, -new Dictionary +new { -["$id"] = "6223", -["assetType"] = "Azure SQL Database" +assetType = "Azure SQL Database", }, -new Dictionary +new { -["$id"] = "6224", -["assetType"] = "Azure SQL Data Warehouse" +assetType = "Azure SQL Data Warehouse", }, -new Dictionary +new { -["$id"] = "6225", -["assetType"] = "Azure SQL Managed Instance" +assetType = "Azure SQL Managed Instance", }, -new Dictionary +new { -["$id"] = "6226", -["assetType"] = "Azure Storage Account" +assetType = "Azure Storage Account", }, -new Dictionary +new { -["$id"] = "6227", -["assetType"] = "Azure Blob Storage" +assetType = "Azure Blob Storage", }, -new Dictionary +new { -["$id"] = "6228", -["assetType"] = "Azure Files" +assetType = "Azure Files", }, -new Dictionary +new { -["$id"] = "6229", -["assetType"] = "Azure Table Storage" +assetType = "Azure Table Storage", }, -new Dictionary +new { -["$id"] = "6230", -["assetType"] = "Azure Data Lake Storage Gen1" +assetType = "Azure Data Lake Storage Gen1", }, -new Dictionary +new { -["$id"] = "6231", -["assetType"] = "Azure Data Lake Storage Gen2" +assetType = "Azure Data Lake Storage Gen2", }, -new Dictionary +new { -["$id"] = "6232", -["assetType"] = "Azure Cosmos DB" +assetType = "Azure Cosmos DB", }, -new Dictionary +new { -["$id"] = "6233", -["assetType"] = "Azure Data Factory" +assetType = "Azure Data Factory", }, -new Dictionary +new { -["$id"] = "6234", -["assetType"] = "Azure Cognitive Search" +assetType = "Azure Cognitive Search", }, -new Dictionary +new { -["$id"] = "6235", -["assetType"] = "Power BI" +assetType = "Power BI", }, -new Dictionary +new { -["$id"] = "6236", -["assetType"] = "Azure Data Explorer" +assetType = "Azure Data Explorer", }, -new Dictionary +new { -["$id"] = "6237", -["assetType"] = "Amazon S3" +assetType = "Amazon S3", }, -new Dictionary +new { -["$id"] = "6238", -["assetType"] = "Azure Data Share" +assetType = "Azure Data Share", }, -new Dictionary +new { -["$id"] = "6239", -["assetType"] = "Teradata" +assetType = "Teradata", }, -new Dictionary +new { -["$id"] = "6240", -["assetType"] = "SAP S4HANA" +assetType = "SAP S4HANA", }, -new Dictionary +new { -["$id"] = "6241", -["assetType"] = "SAP ECC" +assetType = "SAP ECC", }, -new Dictionary +new { -["$id"] = "6242", -["assetType"] = "SQL Server Integration Services" +assetType = "SQL Server Integration Services", }, -new Dictionary +new { -["$id"] = "6243", -["assetType"] = "hive" +assetType = "hive", }, -new Dictionary +new { -["$id"] = "6244", -["assetType"] = "Azure Database for MySQL" +assetType = "Azure Database for MySQL", }, -new Dictionary +new { -["$id"] = "6245", -["assetType"] = "Azure Database for MariaDB" +assetType = "Azure Database for MariaDB", }, -new Dictionary +new { -["$id"] = "6246", -["assetType"] = "Azure Database for PostgreSQL" +assetType = "Azure Database for PostgreSQL", }, -new Dictionary +new { -["$id"] = "6247", -["assetType"] = "Azure Synapse Analytics" +assetType = "Azure Synapse Analytics", } - } + }, }, }); Response response = await client.QueryAsync(content); @@ -1076,147 +964,119 @@ public void Example_Discovery_Query_DiscoveryQueryAssetType_Convenience() QueryConfig body = new QueryConfig { Limit = 10, - Filter = BinaryData.FromObjectAsJson(new Dictionary + Filter = BinaryData.FromObjectAsJson(new { - ["$id"] = "6220", - ["or"] = new object[] + or = new object[] { -new Dictionary +new { -["$id"] = "6221", -["assetType"] = "SQL Server" +assetType = "SQL Server", }, -new Dictionary +new { -["$id"] = "6222", -["assetType"] = "Azure SQL Server" +assetType = "Azure SQL Server", }, -new Dictionary +new { -["$id"] = "6223", -["assetType"] = "Azure SQL Database" +assetType = "Azure SQL Database", }, -new Dictionary +new { -["$id"] = "6224", -["assetType"] = "Azure SQL Data Warehouse" +assetType = "Azure SQL Data Warehouse", }, -new Dictionary +new { -["$id"] = "6225", -["assetType"] = "Azure SQL Managed Instance" +assetType = "Azure SQL Managed Instance", }, -new Dictionary +new { -["$id"] = "6226", -["assetType"] = "Azure Storage Account" +assetType = "Azure Storage Account", }, -new Dictionary +new { -["$id"] = "6227", -["assetType"] = "Azure Blob Storage" +assetType = "Azure Blob Storage", }, -new Dictionary +new { -["$id"] = "6228", -["assetType"] = "Azure Files" +assetType = "Azure Files", }, -new Dictionary +new { -["$id"] = "6229", -["assetType"] = "Azure Table Storage" +assetType = "Azure Table Storage", }, -new Dictionary +new { -["$id"] = "6230", -["assetType"] = "Azure Data Lake Storage Gen1" +assetType = "Azure Data Lake Storage Gen1", }, -new Dictionary +new { -["$id"] = "6231", -["assetType"] = "Azure Data Lake Storage Gen2" +assetType = "Azure Data Lake Storage Gen2", }, -new Dictionary +new { -["$id"] = "6232", -["assetType"] = "Azure Cosmos DB" +assetType = "Azure Cosmos DB", }, -new Dictionary +new { -["$id"] = "6233", -["assetType"] = "Azure Data Factory" +assetType = "Azure Data Factory", }, -new Dictionary +new { -["$id"] = "6234", -["assetType"] = "Azure Cognitive Search" +assetType = "Azure Cognitive Search", }, -new Dictionary +new { -["$id"] = "6235", -["assetType"] = "Power BI" +assetType = "Power BI", }, -new Dictionary +new { -["$id"] = "6236", -["assetType"] = "Azure Data Explorer" +assetType = "Azure Data Explorer", }, -new Dictionary +new { -["$id"] = "6237", -["assetType"] = "Amazon S3" +assetType = "Amazon S3", }, -new Dictionary +new { -["$id"] = "6238", -["assetType"] = "Azure Data Share" +assetType = "Azure Data Share", }, -new Dictionary +new { -["$id"] = "6239", -["assetType"] = "Teradata" +assetType = "Teradata", }, -new Dictionary +new { -["$id"] = "6240", -["assetType"] = "SAP S4HANA" +assetType = "SAP S4HANA", }, -new Dictionary +new { -["$id"] = "6241", -["assetType"] = "SAP ECC" +assetType = "SAP ECC", }, -new Dictionary +new { -["$id"] = "6242", -["assetType"] = "SQL Server Integration Services" +assetType = "SQL Server Integration Services", }, -new Dictionary +new { -["$id"] = "6243", -["assetType"] = "hive" +assetType = "hive", }, -new Dictionary +new { -["$id"] = "6244", -["assetType"] = "Azure Database for MySQL" +assetType = "Azure Database for MySQL", }, -new Dictionary +new { -["$id"] = "6245", -["assetType"] = "Azure Database for MariaDB" +assetType = "Azure Database for MariaDB", }, -new Dictionary +new { -["$id"] = "6246", -["assetType"] = "Azure Database for PostgreSQL" +assetType = "Azure Database for PostgreSQL", }, -new Dictionary +new { -["$id"] = "6247", -["assetType"] = "Azure Synapse Analytics" +assetType = "Azure Synapse Analytics", } - } + }, }), }; Response response = client.Query(body); @@ -1233,147 +1093,119 @@ public async Task Example_Discovery_Query_DiscoveryQueryAssetType_Convenience_As QueryConfig body = new QueryConfig { Limit = 10, - Filter = BinaryData.FromObjectAsJson(new Dictionary + Filter = BinaryData.FromObjectAsJson(new { - ["$id"] = "6220", - ["or"] = new object[] + or = new object[] { -new Dictionary +new { -["$id"] = "6221", -["assetType"] = "SQL Server" +assetType = "SQL Server", }, -new Dictionary +new { -["$id"] = "6222", -["assetType"] = "Azure SQL Server" +assetType = "Azure SQL Server", }, -new Dictionary +new { -["$id"] = "6223", -["assetType"] = "Azure SQL Database" +assetType = "Azure SQL Database", }, -new Dictionary +new { -["$id"] = "6224", -["assetType"] = "Azure SQL Data Warehouse" +assetType = "Azure SQL Data Warehouse", }, -new Dictionary +new { -["$id"] = "6225", -["assetType"] = "Azure SQL Managed Instance" +assetType = "Azure SQL Managed Instance", }, -new Dictionary +new { -["$id"] = "6226", -["assetType"] = "Azure Storage Account" +assetType = "Azure Storage Account", }, -new Dictionary +new { -["$id"] = "6227", -["assetType"] = "Azure Blob Storage" +assetType = "Azure Blob Storage", }, -new Dictionary +new { -["$id"] = "6228", -["assetType"] = "Azure Files" +assetType = "Azure Files", }, -new Dictionary +new { -["$id"] = "6229", -["assetType"] = "Azure Table Storage" +assetType = "Azure Table Storage", }, -new Dictionary +new { -["$id"] = "6230", -["assetType"] = "Azure Data Lake Storage Gen1" +assetType = "Azure Data Lake Storage Gen1", }, -new Dictionary +new { -["$id"] = "6231", -["assetType"] = "Azure Data Lake Storage Gen2" +assetType = "Azure Data Lake Storage Gen2", }, -new Dictionary +new { -["$id"] = "6232", -["assetType"] = "Azure Cosmos DB" +assetType = "Azure Cosmos DB", }, -new Dictionary +new { -["$id"] = "6233", -["assetType"] = "Azure Data Factory" +assetType = "Azure Data Factory", }, -new Dictionary +new { -["$id"] = "6234", -["assetType"] = "Azure Cognitive Search" +assetType = "Azure Cognitive Search", }, -new Dictionary +new { -["$id"] = "6235", -["assetType"] = "Power BI" +assetType = "Power BI", }, -new Dictionary +new { -["$id"] = "6236", -["assetType"] = "Azure Data Explorer" +assetType = "Azure Data Explorer", }, -new Dictionary +new { -["$id"] = "6237", -["assetType"] = "Amazon S3" +assetType = "Amazon S3", }, -new Dictionary +new { -["$id"] = "6238", -["assetType"] = "Azure Data Share" +assetType = "Azure Data Share", }, -new Dictionary +new { -["$id"] = "6239", -["assetType"] = "Teradata" +assetType = "Teradata", }, -new Dictionary +new { -["$id"] = "6240", -["assetType"] = "SAP S4HANA" +assetType = "SAP S4HANA", }, -new Dictionary +new { -["$id"] = "6241", -["assetType"] = "SAP ECC" +assetType = "SAP ECC", }, -new Dictionary +new { -["$id"] = "6242", -["assetType"] = "SQL Server Integration Services" +assetType = "SQL Server Integration Services", }, -new Dictionary +new { -["$id"] = "6243", -["assetType"] = "hive" +assetType = "hive", }, -new Dictionary +new { -["$id"] = "6244", -["assetType"] = "Azure Database for MySQL" +assetType = "Azure Database for MySQL", }, -new Dictionary +new { -["$id"] = "6245", -["assetType"] = "Azure Database for MariaDB" +assetType = "Azure Database for MariaDB", }, -new Dictionary +new { -["$id"] = "6246", -["assetType"] = "Azure Database for PostgreSQL" +assetType = "Azure Database for PostgreSQL", }, -new Dictionary +new { -["$id"] = "6247", -["assetType"] = "Azure Synapse Analytics" +assetType = "Azure Synapse Analytics", } - } + }, }), }; Response response = await client.QueryAsync(body); @@ -1390,33 +1222,29 @@ public void Example_Discovery_Query_DiscoveryQueryAttribute() using RequestContent content = RequestContent.Create(new { limit = 10, - filter = new Dictionary + filter = new { - ["$id"] = "6289", - ["or"] = new object[] + or = new object[] { new Dictionary { -["$id"] = "6290", ["attributeName"] = "name", ["operator"] = "eq", ["attributeValue"] = "exampledata.csv" }, new Dictionary { -["$id"] = "6291", ["attributeName"] = "createTime", ["operator"] = "ge", ["attributeValue"] = 1545580800000L }, new Dictionary { -["$id"] = "6292", ["attributeName"] = "modifiedTime", ["operator"] = "timerange", ["attributeValue"] = "LAST_24H|LAST_7D|LAST_30D|LAST_365D|MORE_THAN_365D" } - } + }, }, }); Response response = client.Query(content); @@ -1436,33 +1264,29 @@ public async Task Example_Discovery_Query_DiscoveryQueryAttribute_Async() using RequestContent content = RequestContent.Create(new { limit = 10, - filter = new Dictionary + filter = new { - ["$id"] = "6289", - ["or"] = new object[] + or = new object[] { new Dictionary { -["$id"] = "6290", ["attributeName"] = "name", ["operator"] = "eq", ["attributeValue"] = "exampledata.csv" }, new Dictionary { -["$id"] = "6291", ["attributeName"] = "createTime", ["operator"] = "ge", ["attributeValue"] = 1545580800000L }, new Dictionary { -["$id"] = "6292", ["attributeName"] = "modifiedTime", ["operator"] = "timerange", ["attributeValue"] = "LAST_24H|LAST_7D|LAST_30D|LAST_365D|MORE_THAN_365D" } - } + }, }, }); Response response = await client.QueryAsync(content); @@ -1482,33 +1306,29 @@ public void Example_Discovery_Query_DiscoveryQueryAttribute_Convenience() QueryConfig body = new QueryConfig { Limit = 10, - Filter = BinaryData.FromObjectAsJson(new Dictionary + Filter = BinaryData.FromObjectAsJson(new { - ["$id"] = "6289", - ["or"] = new object[] + or = new object[] { new Dictionary { -["$id"] = "6290", ["attributeName"] = "name", ["operator"] = "eq", ["attributeValue"] = "exampledata.csv" }, new Dictionary { -["$id"] = "6291", ["attributeName"] = "createTime", ["operator"] = "ge", ["attributeValue"] = 1545580800000L }, new Dictionary { -["$id"] = "6292", ["attributeName"] = "modifiedTime", ["operator"] = "timerange", ["attributeValue"] = "LAST_24H|LAST_7D|LAST_30D|LAST_365D|MORE_THAN_365D" } - } + }, }), }; Response response = client.Query(body); @@ -1525,33 +1345,29 @@ public async Task Example_Discovery_Query_DiscoveryQueryAttribute_Convenience_As QueryConfig body = new QueryConfig { Limit = 10, - Filter = BinaryData.FromObjectAsJson(new Dictionary + Filter = BinaryData.FromObjectAsJson(new { - ["$id"] = "6289", - ["or"] = new object[] + or = new object[] { new Dictionary { -["$id"] = "6290", ["attributeName"] = "name", ["operator"] = "eq", ["attributeValue"] = "exampledata.csv" }, new Dictionary { -["$id"] = "6291", ["attributeName"] = "createTime", ["operator"] = "ge", ["attributeValue"] = 1545580800000L }, new Dictionary { -["$id"] = "6292", ["attributeName"] = "modifiedTime", ["operator"] = "timerange", ["attributeValue"] = "LAST_24H|LAST_7D|LAST_30D|LAST_365D|MORE_THAN_365D" } - } + }, }), }; Response response = await client.QueryAsync(body); @@ -1568,40 +1384,35 @@ public void Example_Discovery_Query_DiscoveryQueryBusinessMetadataAttribute() using RequestContent content = RequestContent.Create(new { limit = 10, - filter = new Dictionary + filter = new { - ["$id"] = "6354", - ["or"] = new object[] + or = new object[] { new Dictionary { -["$id"] = "6355", ["attributeName"] = ".", ["operator"] = "eq|ne|contains|prefix", ["attributeValue"] = "string value" }, new Dictionary { -["$id"] = "6356", ["attributeName"] = ".", ["operator"] = "eq|ne|gt|ge|lt|le", ["attributeValue"] = 123 }, new Dictionary { -["$id"] = "6357", ["attributeName"] = ".", ["operator"] = "eq|ne", ["attributeValue"] = true }, new Dictionary { -["$id"] = "6358", ["attributeName"] = ".", ["operator"] = "timerange", ["attributeValue"] = "LAST_24H|LAST_7D|LAST_30D|LAST_365D|MORE_THAN_365D" } - } + }, }, }); Response response = client.Query(content); @@ -1621,40 +1432,35 @@ public async Task Example_Discovery_Query_DiscoveryQueryBusinessMetadataAttribut using RequestContent content = RequestContent.Create(new { limit = 10, - filter = new Dictionary + filter = new { - ["$id"] = "6354", - ["or"] = new object[] + or = new object[] { new Dictionary { -["$id"] = "6355", ["attributeName"] = ".", ["operator"] = "eq|ne|contains|prefix", ["attributeValue"] = "string value" }, new Dictionary { -["$id"] = "6356", ["attributeName"] = ".", ["operator"] = "eq|ne|gt|ge|lt|le", ["attributeValue"] = 123 }, new Dictionary { -["$id"] = "6357", ["attributeName"] = ".", ["operator"] = "eq|ne", ["attributeValue"] = true }, new Dictionary { -["$id"] = "6358", ["attributeName"] = ".", ["operator"] = "timerange", ["attributeValue"] = "LAST_24H|LAST_7D|LAST_30D|LAST_365D|MORE_THAN_365D" } - } + }, }, }); Response response = await client.QueryAsync(content); @@ -1674,40 +1480,35 @@ public void Example_Discovery_Query_DiscoveryQueryBusinessMetadataAttribute_Conv QueryConfig body = new QueryConfig { Limit = 10, - Filter = BinaryData.FromObjectAsJson(new Dictionary + Filter = BinaryData.FromObjectAsJson(new { - ["$id"] = "6354", - ["or"] = new object[] + or = new object[] { new Dictionary { -["$id"] = "6355", ["attributeName"] = ".", ["operator"] = "eq|ne|contains|prefix", ["attributeValue"] = "string value" }, new Dictionary { -["$id"] = "6356", ["attributeName"] = ".", ["operator"] = "eq|ne|gt|ge|lt|le", ["attributeValue"] = 123 }, new Dictionary { -["$id"] = "6357", ["attributeName"] = ".", ["operator"] = "eq|ne", ["attributeValue"] = true }, new Dictionary { -["$id"] = "6358", ["attributeName"] = ".", ["operator"] = "timerange", ["attributeValue"] = "LAST_24H|LAST_7D|LAST_30D|LAST_365D|MORE_THAN_365D" } - } + }, }), }; Response response = client.Query(body); @@ -1724,40 +1525,35 @@ public async Task Example_Discovery_Query_DiscoveryQueryBusinessMetadataAttribut QueryConfig body = new QueryConfig { Limit = 10, - Filter = BinaryData.FromObjectAsJson(new Dictionary + Filter = BinaryData.FromObjectAsJson(new { - ["$id"] = "6354", - ["or"] = new object[] + or = new object[] { new Dictionary { -["$id"] = "6355", ["attributeName"] = ".", ["operator"] = "eq|ne|contains|prefix", ["attributeValue"] = "string value" }, new Dictionary { -["$id"] = "6356", ["attributeName"] = ".", ["operator"] = "eq|ne|gt|ge|lt|le", ["attributeValue"] = 123 }, new Dictionary { -["$id"] = "6357", ["attributeName"] = ".", ["operator"] = "eq|ne", ["attributeValue"] = true }, new Dictionary { -["$id"] = "6358", ["attributeName"] = ".", ["operator"] = "timerange", ["attributeValue"] = "LAST_24H|LAST_7D|LAST_30D|LAST_365D|MORE_THAN_365D" } - } + }, }), }; Response response = await client.QueryAsync(body); @@ -1774,11 +1570,10 @@ public void Example_Discovery_Query_DiscoveryQueryClassification() using RequestContent content = RequestContent.Create(new { limit = 10, - filter = new Dictionary + filter = new { - ["$id"] = "6381", - ["classification"] = "MICROSOFT.PERSONAL.EMAIL", - ["includeSubClassifications"] = true + classification = "MICROSOFT.PERSONAL.EMAIL", + includeSubClassifications = true, }, }); Response response = client.Query(content); @@ -1798,11 +1593,10 @@ public async Task Example_Discovery_Query_DiscoveryQueryClassification_Async() using RequestContent content = RequestContent.Create(new { limit = 10, - filter = new Dictionary + filter = new { - ["$id"] = "6381", - ["classification"] = "MICROSOFT.PERSONAL.EMAIL", - ["includeSubClassifications"] = true + classification = "MICROSOFT.PERSONAL.EMAIL", + includeSubClassifications = true, }, }); Response response = await client.QueryAsync(content); @@ -1822,11 +1616,10 @@ public void Example_Discovery_Query_DiscoveryQueryClassification_Convenience() QueryConfig body = new QueryConfig { Limit = 10, - Filter = BinaryData.FromObjectAsJson(new Dictionary + Filter = BinaryData.FromObjectAsJson(new { - ["$id"] = "6381", - ["classification"] = "MICROSOFT.PERSONAL.EMAIL", - ["includeSubClassifications"] = true + classification = "MICROSOFT.PERSONAL.EMAIL", + includeSubClassifications = true, }), }; Response response = client.Query(body); @@ -1843,11 +1636,10 @@ public async Task Example_Discovery_Query_DiscoveryQueryClassification_Convenien QueryConfig body = new QueryConfig { Limit = 10, - Filter = BinaryData.FromObjectAsJson(new Dictionary + Filter = BinaryData.FromObjectAsJson(new { - ["$id"] = "6381", - ["classification"] = "MICROSOFT.PERSONAL.EMAIL", - ["includeSubClassifications"] = true + classification = "MICROSOFT.PERSONAL.EMAIL", + includeSubClassifications = true, }), }; Response response = await client.QueryAsync(body); @@ -1864,10 +1656,9 @@ public void Example_Discovery_Query_DiscoveryQueryCollection() using RequestContent content = RequestContent.Create(new { limit = 10, - filter = new Dictionary + filter = new { - ["$id"] = "6431", - ["collectionId"] = "collectionName" + collectionId = "collectionName", }, }); Response response = client.Query(content); @@ -1887,10 +1678,9 @@ public async Task Example_Discovery_Query_DiscoveryQueryCollection_Async() using RequestContent content = RequestContent.Create(new { limit = 10, - filter = new Dictionary + filter = new { - ["$id"] = "6431", - ["collectionId"] = "collectionName" + collectionId = "collectionName", }, }); Response response = await client.QueryAsync(content); @@ -1910,10 +1700,9 @@ public void Example_Discovery_Query_DiscoveryQueryCollection_Convenience() QueryConfig body = new QueryConfig { Limit = 10, - Filter = BinaryData.FromObjectAsJson(new Dictionary + Filter = BinaryData.FromObjectAsJson(new { - ["$id"] = "6431", - ["collectionId"] = "collectionName" + collectionId = "collectionName", }), }; Response response = client.Query(body); @@ -1930,10 +1719,9 @@ public async Task Example_Discovery_Query_DiscoveryQueryCollection_Convenience_A QueryConfig body = new QueryConfig { Limit = 10, - Filter = BinaryData.FromObjectAsJson(new Dictionary + Filter = BinaryData.FromObjectAsJson(new { - ["$id"] = "6431", - ["collectionId"] = "collectionName" + collectionId = "collectionName", }), }; Response response = await client.QueryAsync(body); @@ -1949,10 +1737,9 @@ public void Example_Discovery_Query_DiscoveryQueryFacet() using RequestContent content = RequestContent.Create(new { - filter = new Dictionary + filter = new { - ["$id"] = "6480", - ["objectType"] = "Tables" + objectType = "Tables", }, limit = 10, facets = new object[] @@ -1995,10 +1782,9 @@ public async Task Example_Discovery_Query_DiscoveryQueryFacet_Async() using RequestContent content = RequestContent.Create(new { - filter = new Dictionary + filter = new { - ["$id"] = "6480", - ["objectType"] = "Tables" + objectType = "Tables", }, limit = 10, facets = new object[] @@ -2042,10 +1828,9 @@ public void Example_Discovery_Query_DiscoveryQueryFacet_Convenience() QueryConfig body = new QueryConfig { Limit = 10, - Filter = BinaryData.FromObjectAsJson(new Dictionary + Filter = BinaryData.FromObjectAsJson(new { - ["$id"] = "6480", - ["objectType"] = "Tables" + objectType = "Tables", }), Facets = {new SearchFacetItem { @@ -2079,10 +1864,9 @@ public async Task Example_Discovery_Query_DiscoveryQueryFacet_Convenience_Async( QueryConfig body = new QueryConfig { Limit = 10, - Filter = BinaryData.FromObjectAsJson(new Dictionary + Filter = BinaryData.FromObjectAsJson(new { - ["$id"] = "6480", - ["objectType"] = "Tables" + objectType = "Tables", }), Facets = {new SearchFacetItem { @@ -2116,17 +1900,15 @@ public void Example_Discovery_Query_DiscoveryQueryFileExtension() using RequestContent content = RequestContent.Create(new { limit = 10, - filter = new Dictionary + filter = new { - ["$id"] = "6610", - ["and"] = new object[] + and = new object[] { -new Dictionary +new { -["$id"] = "6611", -["fileExtension"] = "txt" +fileExtension = "txt", } - } + }, }, }); Response response = client.Query(content); @@ -2146,17 +1928,15 @@ public async Task Example_Discovery_Query_DiscoveryQueryFileExtension_Async() using RequestContent content = RequestContent.Create(new { limit = 10, - filter = new Dictionary + filter = new { - ["$id"] = "6610", - ["and"] = new object[] + and = new object[] { -new Dictionary +new { -["$id"] = "6611", -["fileExtension"] = "txt" +fileExtension = "txt", } - } + }, }, }); Response response = await client.QueryAsync(content); @@ -2176,17 +1956,15 @@ public void Example_Discovery_Query_DiscoveryQueryFileExtension_Convenience() QueryConfig body = new QueryConfig { Limit = 10, - Filter = BinaryData.FromObjectAsJson(new Dictionary + Filter = BinaryData.FromObjectAsJson(new { - ["$id"] = "6610", - ["and"] = new object[] + and = new object[] { -new Dictionary +new { -["$id"] = "6611", -["fileExtension"] = "txt" +fileExtension = "txt", } - } + }, }), }; Response response = client.Query(body); @@ -2203,17 +1981,15 @@ public async Task Example_Discovery_Query_DiscoveryQueryFileExtension_Convenienc QueryConfig body = new QueryConfig { Limit = 10, - Filter = BinaryData.FromObjectAsJson(new Dictionary + Filter = BinaryData.FromObjectAsJson(new { - ["$id"] = "6610", - ["and"] = new object[] + and = new object[] { -new Dictionary +new { -["$id"] = "6611", -["fileExtension"] = "txt" +fileExtension = "txt", } - } + }, }), }; Response response = await client.QueryAsync(body); @@ -2231,34 +2007,29 @@ public void Example_Discovery_Query_DiscoveryQueryGlossaryTerm() { keywords = "", limit = 10, - filter = new Dictionary + filter = new { - ["$id"] = "6654", - ["and"] = new object[] + and = new object[] { -new Dictionary +new { -["$id"] = "6655", -["objectType"] = "Glossary terms" +objectType = "Glossary terms", }, -new Dictionary +new { -["$id"] = "6656", -["or"] = new object[] +or = new object[] { -new Dictionary +new { -["$id"] = "6657", -["glossaryType"] = "AtlasGlossary" +glossaryType = "AtlasGlossary", }, -new Dictionary +new { -["$id"] = "6658", -["glossaryType"] = "AtlasGlossaryTerm" -} +glossaryType = "AtlasGlossaryTerm", } +}, } - } + }, }, facets = new object[] { @@ -2300,34 +2071,29 @@ public async Task Example_Discovery_Query_DiscoveryQueryGlossaryTerm_Async() { keywords = "", limit = 10, - filter = new Dictionary + filter = new { - ["$id"] = "6654", - ["and"] = new object[] + and = new object[] { -new Dictionary +new { -["$id"] = "6655", -["objectType"] = "Glossary terms" +objectType = "Glossary terms", }, -new Dictionary +new { -["$id"] = "6656", -["or"] = new object[] +or = new object[] { -new Dictionary +new { -["$id"] = "6657", -["glossaryType"] = "AtlasGlossary" +glossaryType = "AtlasGlossary", }, -new Dictionary +new { -["$id"] = "6658", -["glossaryType"] = "AtlasGlossaryTerm" -} +glossaryType = "AtlasGlossaryTerm", } +}, } - } + }, }, facets = new object[] { @@ -2369,34 +2135,29 @@ public void Example_Discovery_Query_DiscoveryQueryGlossaryTerm_Convenience() { Keywords = "", Limit = 10, - Filter = BinaryData.FromObjectAsJson(new Dictionary + Filter = BinaryData.FromObjectAsJson(new { - ["$id"] = "6654", - ["and"] = new object[] + and = new object[] { -new Dictionary +new { -["$id"] = "6655", -["objectType"] = "Glossary terms" +objectType = "Glossary terms", }, -new Dictionary +new { -["$id"] = "6656", -["or"] = new object[] +or = new object[] { -new Dictionary +new { -["$id"] = "6657", -["glossaryType"] = "AtlasGlossary" +glossaryType = "AtlasGlossary", }, -new Dictionary +new { -["$id"] = "6658", -["glossaryType"] = "AtlasGlossaryTerm" -} +glossaryType = "AtlasGlossaryTerm", } +}, } - } + }, }), Facets = {new SearchFacetItem { @@ -2431,34 +2192,29 @@ public async Task Example_Discovery_Query_DiscoveryQueryGlossaryTerm_Convenience { Keywords = "", Limit = 10, - Filter = BinaryData.FromObjectAsJson(new Dictionary + Filter = BinaryData.FromObjectAsJson(new { - ["$id"] = "6654", - ["and"] = new object[] + and = new object[] { -new Dictionary +new { -["$id"] = "6655", -["objectType"] = "Glossary terms" +objectType = "Glossary terms", }, -new Dictionary +new { -["$id"] = "6656", -["or"] = new object[] +or = new object[] { -new Dictionary +new { -["$id"] = "6657", -["glossaryType"] = "AtlasGlossary" +glossaryType = "AtlasGlossary", }, -new Dictionary +new { -["$id"] = "6658", -["glossaryType"] = "AtlasGlossaryTerm" -} +glossaryType = "AtlasGlossaryTerm", } +}, } - } + }, }), Facets = {new SearchFacetItem { @@ -2492,17 +2248,15 @@ public void Example_Discovery_Query_DiscoveryQueryId() using RequestContent content = RequestContent.Create(new { limit = 10, - filter = new Dictionary + filter = new { - ["$id"] = "6726", - ["and"] = new object[] + and = new object[] { -new Dictionary +new { -["$id"] = "6727", -["id"] = "bfecbcc3-1838-45fe-96d6-112de8a170f9" +id = "bfecbcc3-1838-45fe-96d6-112de8a170f9", } - } + }, }, }); Response response = client.Query(content); @@ -2522,17 +2276,15 @@ public async Task Example_Discovery_Query_DiscoveryQueryId_Async() using RequestContent content = RequestContent.Create(new { limit = 10, - filter = new Dictionary + filter = new { - ["$id"] = "6726", - ["and"] = new object[] + and = new object[] { -new Dictionary +new { -["$id"] = "6727", -["id"] = "bfecbcc3-1838-45fe-96d6-112de8a170f9" +id = "bfecbcc3-1838-45fe-96d6-112de8a170f9", } - } + }, }, }); Response response = await client.QueryAsync(content); @@ -2552,17 +2304,15 @@ public void Example_Discovery_Query_DiscoveryQueryId_Convenience() QueryConfig body = new QueryConfig { Limit = 10, - Filter = BinaryData.FromObjectAsJson(new Dictionary + Filter = BinaryData.FromObjectAsJson(new { - ["$id"] = "6726", - ["and"] = new object[] + and = new object[] { -new Dictionary +new { -["$id"] = "6727", -["id"] = "bfecbcc3-1838-45fe-96d6-112de8a170f9" +id = "bfecbcc3-1838-45fe-96d6-112de8a170f9", } - } + }, }), }; Response response = client.Query(body); @@ -2579,17 +2329,15 @@ public async Task Example_Discovery_Query_DiscoveryQueryId_Convenience_Async() QueryConfig body = new QueryConfig { Limit = 10, - Filter = BinaryData.FromObjectAsJson(new Dictionary + Filter = BinaryData.FromObjectAsJson(new { - ["$id"] = "6726", - ["and"] = new object[] + and = new object[] { -new Dictionary +new { -["$id"] = "6727", -["id"] = "bfecbcc3-1838-45fe-96d6-112de8a170f9" +id = "bfecbcc3-1838-45fe-96d6-112de8a170f9", } - } + }, }), }; Response response = await client.QueryAsync(body); @@ -2606,14 +2354,12 @@ public void Example_Discovery_Query_DiscoveryQueryNot() using RequestContent content = RequestContent.Create(new { limit = 10, - filter = new Dictionary + filter = new { - ["$id"] = "6755", - ["not"] = new Dictionary + not = new { - ["$id"] = "6756", - ["classification"] = "MICROSOFT.SYSTEM.TEMP_FILE" - } + classification = "MICROSOFT.SYSTEM.TEMP_FILE", + }, }, }); Response response = client.Query(content); @@ -2633,14 +2379,12 @@ public async Task Example_Discovery_Query_DiscoveryQueryNot_Async() using RequestContent content = RequestContent.Create(new { limit = 10, - filter = new Dictionary + filter = new { - ["$id"] = "6755", - ["not"] = new Dictionary + not = new { - ["$id"] = "6756", - ["classification"] = "MICROSOFT.SYSTEM.TEMP_FILE" - } + classification = "MICROSOFT.SYSTEM.TEMP_FILE", + }, }, }); Response response = await client.QueryAsync(content); @@ -2660,14 +2404,12 @@ public void Example_Discovery_Query_DiscoveryQueryNot_Convenience() QueryConfig body = new QueryConfig { Limit = 10, - Filter = BinaryData.FromObjectAsJson(new Dictionary + Filter = BinaryData.FromObjectAsJson(new { - ["$id"] = "6755", - ["not"] = new Dictionary + not = new { - ["$id"] = "6756", - ["classification"] = "MICROSOFT.SYSTEM.TEMP_FILE" - } + classification = "MICROSOFT.SYSTEM.TEMP_FILE", + }, }), }; Response response = client.Query(body); @@ -2684,14 +2426,12 @@ public async Task Example_Discovery_Query_DiscoveryQueryNot_Convenience_Async() QueryConfig body = new QueryConfig { Limit = 10, - Filter = BinaryData.FromObjectAsJson(new Dictionary + Filter = BinaryData.FromObjectAsJson(new { - ["$id"] = "6755", - ["not"] = new Dictionary + not = new { - ["$id"] = "6756", - ["classification"] = "MICROSOFT.SYSTEM.TEMP_FILE" - } + classification = "MICROSOFT.SYSTEM.TEMP_FILE", + }, }), }; Response response = await client.QueryAsync(body); @@ -2708,52 +2448,43 @@ public void Example_Discovery_Query_DiscoveryQueryObjectType() using RequestContent content = RequestContent.Create(new { limit = 10, - filter = new Dictionary + filter = new { - ["$id"] = "6798", - ["or"] = new object[] + or = new object[] { -new Dictionary +new { -["$id"] = "6799", -["objectType"] = "Dashboards" +objectType = "Dashboards", }, -new Dictionary +new { -["$id"] = "6800", -["objectType"] = "Data pipelines" +objectType = "Data pipelines", }, -new Dictionary +new { -["$id"] = "6801", -["objectType"] = "Files" +objectType = "Files", }, -new Dictionary +new { -["$id"] = "6802", -["objectType"] = "Folders" +objectType = "Folders", }, -new Dictionary +new { -["$id"] = "6803", -["objectType"] = "Glossary terms" +objectType = "Glossary terms", }, -new Dictionary +new { -["$id"] = "6804", -["objectType"] = "Reports" +objectType = "Reports", }, -new Dictionary +new { -["$id"] = "6805", -["objectType"] = "Stored procedures" +objectType = "Stored procedures", }, -new Dictionary +new { -["$id"] = "6806", -["objectType"] = "Tables" +objectType = "Tables", } - } + }, }, }); Response response = client.Query(content); @@ -2773,52 +2504,43 @@ public async Task Example_Discovery_Query_DiscoveryQueryObjectType_Async() using RequestContent content = RequestContent.Create(new { limit = 10, - filter = new Dictionary + filter = new { - ["$id"] = "6798", - ["or"] = new object[] + or = new object[] { -new Dictionary +new { -["$id"] = "6799", -["objectType"] = "Dashboards" +objectType = "Dashboards", }, -new Dictionary +new { -["$id"] = "6800", -["objectType"] = "Data pipelines" +objectType = "Data pipelines", }, -new Dictionary +new { -["$id"] = "6801", -["objectType"] = "Files" +objectType = "Files", }, -new Dictionary +new { -["$id"] = "6802", -["objectType"] = "Folders" +objectType = "Folders", }, -new Dictionary +new { -["$id"] = "6803", -["objectType"] = "Glossary terms" +objectType = "Glossary terms", }, -new Dictionary +new { -["$id"] = "6804", -["objectType"] = "Reports" +objectType = "Reports", }, -new Dictionary +new { -["$id"] = "6805", -["objectType"] = "Stored procedures" +objectType = "Stored procedures", }, -new Dictionary +new { -["$id"] = "6806", -["objectType"] = "Tables" +objectType = "Tables", } - } + }, }, }); Response response = await client.QueryAsync(content); @@ -2838,52 +2560,43 @@ public void Example_Discovery_Query_DiscoveryQueryObjectType_Convenience() QueryConfig body = new QueryConfig { Limit = 10, - Filter = BinaryData.FromObjectAsJson(new Dictionary + Filter = BinaryData.FromObjectAsJson(new { - ["$id"] = "6798", - ["or"] = new object[] + or = new object[] { -new Dictionary +new { -["$id"] = "6799", -["objectType"] = "Dashboards" +objectType = "Dashboards", }, -new Dictionary +new { -["$id"] = "6800", -["objectType"] = "Data pipelines" +objectType = "Data pipelines", }, -new Dictionary +new { -["$id"] = "6801", -["objectType"] = "Files" +objectType = "Files", }, -new Dictionary +new { -["$id"] = "6802", -["objectType"] = "Folders" +objectType = "Folders", }, -new Dictionary +new { -["$id"] = "6803", -["objectType"] = "Glossary terms" +objectType = "Glossary terms", }, -new Dictionary +new { -["$id"] = "6804", -["objectType"] = "Reports" +objectType = "Reports", }, -new Dictionary +new { -["$id"] = "6805", -["objectType"] = "Stored procedures" +objectType = "Stored procedures", }, -new Dictionary +new { -["$id"] = "6806", -["objectType"] = "Tables" +objectType = "Tables", } - } + }, }), }; Response response = client.Query(body); @@ -2900,52 +2613,43 @@ public async Task Example_Discovery_Query_DiscoveryQueryObjectType_Convenience_A QueryConfig body = new QueryConfig { Limit = 10, - Filter = BinaryData.FromObjectAsJson(new Dictionary + Filter = BinaryData.FromObjectAsJson(new { - ["$id"] = "6798", - ["or"] = new object[] + or = new object[] { -new Dictionary +new { -["$id"] = "6799", -["objectType"] = "Dashboards" +objectType = "Dashboards", }, -new Dictionary +new { -["$id"] = "6800", -["objectType"] = "Data pipelines" +objectType = "Data pipelines", }, -new Dictionary +new { -["$id"] = "6801", -["objectType"] = "Files" +objectType = "Files", }, -new Dictionary +new { -["$id"] = "6802", -["objectType"] = "Folders" +objectType = "Folders", }, -new Dictionary +new { -["$id"] = "6803", -["objectType"] = "Glossary terms" +objectType = "Glossary terms", }, -new Dictionary +new { -["$id"] = "6804", -["objectType"] = "Reports" +objectType = "Reports", }, -new Dictionary +new { -["$id"] = "6805", -["objectType"] = "Stored procedures" +objectType = "Stored procedures", }, -new Dictionary +new { -["$id"] = "6806", -["objectType"] = "Tables" +objectType = "Tables", } - } + }, }), }; Response response = await client.QueryAsync(body); @@ -2962,36 +2666,31 @@ public void Example_Discovery_Query_DiscoveryQueryPaginationContinuationPage() using RequestContent content = RequestContent.Create(new { keywords = "exampledata", - filter = new Dictionary + filter = new { - ["$id"] = "6844", - ["and"] = new object[] + and = new object[] { -new Dictionary +new { -["$id"] = "6845", -["objectType"] = "Files" +objectType = "Files", }, -new Dictionary +new { -["$id"] = "6846", -["entityType"] = "azure_blob_path" +entityType = "azure_blob_path", } - } + }, }, limit = 2, continuationToken = "", orderby = new object[] { -new Dictionary +new { -["$id"] = "6851", -["name"] = "ASC" +name = "ASC", }, -new Dictionary +new { -["$id"] = "6853", -["updateTime"] = "DESC" +updateTime = "DESC", } }, facets = new object[] @@ -3060,36 +2759,31 @@ public async Task Example_Discovery_Query_DiscoveryQueryPaginationContinuationPa using RequestContent content = RequestContent.Create(new { keywords = "exampledata", - filter = new Dictionary + filter = new { - ["$id"] = "6844", - ["and"] = new object[] + and = new object[] { -new Dictionary +new { -["$id"] = "6845", -["objectType"] = "Files" +objectType = "Files", }, -new Dictionary +new { -["$id"] = "6846", -["entityType"] = "azure_blob_path" +entityType = "azure_blob_path", } - } + }, }, limit = 2, continuationToken = "", orderby = new object[] { -new Dictionary +new { -["$id"] = "6851", -["name"] = "ASC" +name = "ASC", }, -new Dictionary +new { -["$id"] = "6853", -["updateTime"] = "DESC" +updateTime = "DESC", } }, facets = new object[] @@ -3160,31 +2854,26 @@ public void Example_Discovery_Query_DiscoveryQueryPaginationContinuationPage_Con Keywords = "exampledata", Limit = 2, ContinuationToken = "", - Orderby = {BinaryData.FromObjectAsJson(new Dictionary + Orderby = {BinaryData.FromObjectAsJson(new { -["$id"] = "6851", -["name"] = "ASC" -}), BinaryData.FromObjectAsJson(new Dictionary +name = "ASC", +}), BinaryData.FromObjectAsJson(new { -["$id"] = "6853", -["updateTime"] = "DESC" +updateTime = "DESC", })}, - Filter = BinaryData.FromObjectAsJson(new Dictionary + Filter = BinaryData.FromObjectAsJson(new { - ["$id"] = "6844", - ["and"] = new object[] + and = new object[] { -new Dictionary +new { -["$id"] = "6845", -["objectType"] = "Files" +objectType = "Files", }, -new Dictionary +new { -["$id"] = "6846", -["entityType"] = "azure_blob_path" +entityType = "azure_blob_path", } - } + }, }), Facets = {new SearchFacetItem { @@ -3244,31 +2933,26 @@ public async Task Example_Discovery_Query_DiscoveryQueryPaginationContinuationPa Keywords = "exampledata", Limit = 2, ContinuationToken = "", - Orderby = {BinaryData.FromObjectAsJson(new Dictionary + Orderby = {BinaryData.FromObjectAsJson(new { -["$id"] = "6851", -["name"] = "ASC" -}), BinaryData.FromObjectAsJson(new Dictionary +name = "ASC", +}), BinaryData.FromObjectAsJson(new { -["$id"] = "6853", -["updateTime"] = "DESC" +updateTime = "DESC", })}, - Filter = BinaryData.FromObjectAsJson(new Dictionary + Filter = BinaryData.FromObjectAsJson(new { - ["$id"] = "6844", - ["and"] = new object[] + and = new object[] { -new Dictionary +new { -["$id"] = "6845", -["objectType"] = "Files" +objectType = "Files", }, -new Dictionary +new { -["$id"] = "6846", -["entityType"] = "azure_blob_path" +entityType = "azure_blob_path", } - } + }, }), Facets = {new SearchFacetItem { @@ -3326,35 +3010,30 @@ public void Example_Discovery_Query_DiscoveryQueryPaginationFirstPage() using RequestContent content = RequestContent.Create(new { keywords = "exampledata", - filter = new Dictionary + filter = new { - ["$id"] = "6931", - ["and"] = new object[] + and = new object[] { -new Dictionary +new { -["$id"] = "6932", -["objectType"] = "Files" +objectType = "Files", }, -new Dictionary +new { -["$id"] = "6933", -["entityType"] = "azure_blob_path" +entityType = "azure_blob_path", } - } + }, }, limit = 2, orderby = new object[] { -new Dictionary +new { -["$id"] = "6937", -["name"] = "ASC" +name = "ASC", }, -new Dictionary +new { -["$id"] = "6939", -["updateTime"] = "DESC" +updateTime = "DESC", } }, facets = new object[] @@ -3423,35 +3102,30 @@ public async Task Example_Discovery_Query_DiscoveryQueryPaginationFirstPage_Asyn using RequestContent content = RequestContent.Create(new { keywords = "exampledata", - filter = new Dictionary + filter = new { - ["$id"] = "6931", - ["and"] = new object[] + and = new object[] { -new Dictionary +new { -["$id"] = "6932", -["objectType"] = "Files" +objectType = "Files", }, -new Dictionary +new { -["$id"] = "6933", -["entityType"] = "azure_blob_path" +entityType = "azure_blob_path", } - } + }, }, limit = 2, orderby = new object[] { -new Dictionary +new { -["$id"] = "6937", -["name"] = "ASC" +name = "ASC", }, -new Dictionary +new { -["$id"] = "6939", -["updateTime"] = "DESC" +updateTime = "DESC", } }, facets = new object[] @@ -3521,31 +3195,26 @@ public void Example_Discovery_Query_DiscoveryQueryPaginationFirstPage_Convenienc { Keywords = "exampledata", Limit = 2, - Orderby = {BinaryData.FromObjectAsJson(new Dictionary + Orderby = {BinaryData.FromObjectAsJson(new { -["$id"] = "6937", -["name"] = "ASC" -}), BinaryData.FromObjectAsJson(new Dictionary +name = "ASC", +}), BinaryData.FromObjectAsJson(new { -["$id"] = "6939", -["updateTime"] = "DESC" +updateTime = "DESC", })}, - Filter = BinaryData.FromObjectAsJson(new Dictionary + Filter = BinaryData.FromObjectAsJson(new { - ["$id"] = "6931", - ["and"] = new object[] + and = new object[] { -new Dictionary +new { -["$id"] = "6932", -["objectType"] = "Files" +objectType = "Files", }, -new Dictionary +new { -["$id"] = "6933", -["entityType"] = "azure_blob_path" +entityType = "azure_blob_path", } - } + }, }), Facets = {new SearchFacetItem { @@ -3604,31 +3273,26 @@ public async Task Example_Discovery_Query_DiscoveryQueryPaginationFirstPage_Conv { Keywords = "exampledata", Limit = 2, - Orderby = {BinaryData.FromObjectAsJson(new Dictionary + Orderby = {BinaryData.FromObjectAsJson(new { -["$id"] = "6937", -["name"] = "ASC" -}), BinaryData.FromObjectAsJson(new Dictionary +name = "ASC", +}), BinaryData.FromObjectAsJson(new { -["$id"] = "6939", -["updateTime"] = "DESC" +updateTime = "DESC", })}, - Filter = BinaryData.FromObjectAsJson(new Dictionary + Filter = BinaryData.FromObjectAsJson(new { - ["$id"] = "6931", - ["and"] = new object[] + and = new object[] { -new Dictionary +new { -["$id"] = "6932", -["objectType"] = "Files" +objectType = "Files", }, -new Dictionary +new { -["$id"] = "6933", -["entityType"] = "azure_blob_path" +entityType = "azure_blob_path", } - } + }, }), Facets = {new SearchFacetItem { @@ -3686,36 +3350,31 @@ public void Example_Discovery_Query_DiscoveryQueryPaginationLastPage() using RequestContent content = RequestContent.Create(new { keywords = "exampledata", - filter = new Dictionary + filter = new { - ["$id"] = "7017", - ["and"] = new object[] + and = new object[] { -new Dictionary +new { -["$id"] = "7018", -["objectType"] = "Files" +objectType = "Files", }, -new Dictionary +new { -["$id"] = "7019", -["entityType"] = "azure_blob_path" +entityType = "azure_blob_path", } - } + }, }, limit = 2, continuationToken = "", orderby = new object[] { -new Dictionary +new { -["$id"] = "7024", -["name"] = "ASC" +name = "ASC", }, -new Dictionary +new { -["$id"] = "7026", -["updateTime"] = "DESC" +updateTime = "DESC", } }, facets = new object[] @@ -3784,36 +3443,31 @@ public async Task Example_Discovery_Query_DiscoveryQueryPaginationLastPage_Async using RequestContent content = RequestContent.Create(new { keywords = "exampledata", - filter = new Dictionary + filter = new { - ["$id"] = "7017", - ["and"] = new object[] + and = new object[] { -new Dictionary +new { -["$id"] = "7018", -["objectType"] = "Files" +objectType = "Files", }, -new Dictionary +new { -["$id"] = "7019", -["entityType"] = "azure_blob_path" +entityType = "azure_blob_path", } - } + }, }, limit = 2, continuationToken = "", orderby = new object[] { -new Dictionary +new { -["$id"] = "7024", -["name"] = "ASC" +name = "ASC", }, -new Dictionary +new { -["$id"] = "7026", -["updateTime"] = "DESC" +updateTime = "DESC", } }, facets = new object[] @@ -3884,31 +3538,26 @@ public void Example_Discovery_Query_DiscoveryQueryPaginationLastPage_Convenience Keywords = "exampledata", Limit = 2, ContinuationToken = "", - Orderby = {BinaryData.FromObjectAsJson(new Dictionary + Orderby = {BinaryData.FromObjectAsJson(new { -["$id"] = "7024", -["name"] = "ASC" -}), BinaryData.FromObjectAsJson(new Dictionary +name = "ASC", +}), BinaryData.FromObjectAsJson(new { -["$id"] = "7026", -["updateTime"] = "DESC" +updateTime = "DESC", })}, - Filter = BinaryData.FromObjectAsJson(new Dictionary + Filter = BinaryData.FromObjectAsJson(new { - ["$id"] = "7017", - ["and"] = new object[] + and = new object[] { -new Dictionary +new { -["$id"] = "7018", -["objectType"] = "Files" +objectType = "Files", }, -new Dictionary +new { -["$id"] = "7019", -["entityType"] = "azure_blob_path" +entityType = "azure_blob_path", } - } + }, }), Facets = {new SearchFacetItem { @@ -3968,31 +3617,26 @@ public async Task Example_Discovery_Query_DiscoveryQueryPaginationLastPage_Conve Keywords = "exampledata", Limit = 2, ContinuationToken = "", - Orderby = {BinaryData.FromObjectAsJson(new Dictionary + Orderby = {BinaryData.FromObjectAsJson(new { -["$id"] = "7024", -["name"] = "ASC" -}), BinaryData.FromObjectAsJson(new Dictionary +name = "ASC", +}), BinaryData.FromObjectAsJson(new { -["$id"] = "7026", -["updateTime"] = "DESC" +updateTime = "DESC", })}, - Filter = BinaryData.FromObjectAsJson(new Dictionary + Filter = BinaryData.FromObjectAsJson(new { - ["$id"] = "7017", - ["and"] = new object[] + and = new object[] { -new Dictionary +new { -["$id"] = "7018", -["objectType"] = "Files" +objectType = "Files", }, -new Dictionary +new { -["$id"] = "7019", -["entityType"] = "azure_blob_path" +entityType = "azure_blob_path", } - } + }, }), Facets = {new SearchFacetItem { @@ -4050,27 +3694,23 @@ public void Example_Discovery_Query_DiscoveryQuerySystemTime() using RequestContent content = RequestContent.Create(new { limit = 10, - filter = new Dictionary + filter = new { - ["$id"] = "7103", - ["or"] = new object[] + or = new object[] { -new Dictionary +new { -["$id"] = "7104", -["createTime"] = new Dictionary +createTime = new Dictionary { -["$id"] = "7105", ["operator"] = "lt", ["timeThreshold"] = 1545580800000L -} }, -new Dictionary +}, +new { -["$id"] = "7106", -["updateTime"] = "LAST_24H|LAST_7D|LAST_30D|LAST_365D|MORE_THAN_365D" +updateTime = "LAST_24H|LAST_7D|LAST_30D|LAST_365D|MORE_THAN_365D", } - } + }, }, }); Response response = client.Query(content); @@ -4090,27 +3730,23 @@ public async Task Example_Discovery_Query_DiscoveryQuerySystemTime_Async() using RequestContent content = RequestContent.Create(new { limit = 10, - filter = new Dictionary + filter = new { - ["$id"] = "7103", - ["or"] = new object[] + or = new object[] { -new Dictionary +new { -["$id"] = "7104", -["createTime"] = new Dictionary +createTime = new Dictionary { -["$id"] = "7105", ["operator"] = "lt", ["timeThreshold"] = 1545580800000L -} }, -new Dictionary +}, +new { -["$id"] = "7106", -["updateTime"] = "LAST_24H|LAST_7D|LAST_30D|LAST_365D|MORE_THAN_365D" +updateTime = "LAST_24H|LAST_7D|LAST_30D|LAST_365D|MORE_THAN_365D", } - } + }, }, }); Response response = await client.QueryAsync(content); @@ -4130,27 +3766,23 @@ public void Example_Discovery_Query_DiscoveryQuerySystemTime_Convenience() QueryConfig body = new QueryConfig { Limit = 10, - Filter = BinaryData.FromObjectAsJson(new Dictionary + Filter = BinaryData.FromObjectAsJson(new { - ["$id"] = "7103", - ["or"] = new object[] + or = new object[] { -new Dictionary +new { -["$id"] = "7104", -["createTime"] = new Dictionary +createTime = new Dictionary { -["$id"] = "7105", ["operator"] = "lt", ["timeThreshold"] = 1545580800000L -} }, -new Dictionary +}, +new { -["$id"] = "7106", -["updateTime"] = "LAST_24H|LAST_7D|LAST_30D|LAST_365D|MORE_THAN_365D" +updateTime = "LAST_24H|LAST_7D|LAST_30D|LAST_365D|MORE_THAN_365D", } - } + }, }), }; Response response = client.Query(body); @@ -4167,27 +3799,23 @@ public async Task Example_Discovery_Query_DiscoveryQuerySystemTime_Convenience_A QueryConfig body = new QueryConfig { Limit = 10, - Filter = BinaryData.FromObjectAsJson(new Dictionary + Filter = BinaryData.FromObjectAsJson(new { - ["$id"] = "7103", - ["or"] = new object[] + or = new object[] { -new Dictionary +new { -["$id"] = "7104", -["createTime"] = new Dictionary +createTime = new Dictionary { -["$id"] = "7105", ["operator"] = "lt", ["timeThreshold"] = 1545580800000L -} }, -new Dictionary +}, +new { -["$id"] = "7106", -["updateTime"] = "LAST_24H|LAST_7D|LAST_30D|LAST_365D|MORE_THAN_365D" +updateTime = "LAST_24H|LAST_7D|LAST_30D|LAST_365D|MORE_THAN_365D", } - } + }, }), }; Response response = await client.QueryAsync(body); @@ -4204,51 +3832,43 @@ public void Example_Discovery_Query_DiscoveryQueryTaxonomy() using RequestContent content = RequestContent.Create(new { keywords = "exampledata", - filter = new Dictionary + filter = new { - ["$id"] = "7139", - ["and"] = new object[] + and = new object[] { -new Dictionary +new { -["$id"] = "7140", -["objectType"] = "Files" +objectType = "Files", }, -new Dictionary +new { -["$id"] = "7141", -["not"] = new Dictionary +not = new { -["$id"] = "7142", -["or"] = new object[] +or = new object[] { new Dictionary { -["$id"] = "7143", ["attributeName"] = "size", ["operator"] = "eq", ["attributeValue"] = 0 }, new Dictionary { -["$id"] = "7144", ["attributeName"] = "fileSize", ["operator"] = "eq", ["attributeValue"] = 0 } -} -} }, -new Dictionary +}, +}, +new { -["$id"] = "7145", -["not"] = new Dictionary +not = new { -["$id"] = "7146", -["classification"] = "MICROSOFT.SYSTEM.TEMP_FILE" -} +classification = "MICROSOFT.SYSTEM.TEMP_FILE", +}, } - } + }, }, limit = 10, taxonomySetting = new @@ -4284,51 +3904,43 @@ public async Task Example_Discovery_Query_DiscoveryQueryTaxonomy_Async() using RequestContent content = RequestContent.Create(new { keywords = "exampledata", - filter = new Dictionary + filter = new { - ["$id"] = "7139", - ["and"] = new object[] + and = new object[] { -new Dictionary +new { -["$id"] = "7140", -["objectType"] = "Files" +objectType = "Files", }, -new Dictionary +new { -["$id"] = "7141", -["not"] = new Dictionary +not = new { -["$id"] = "7142", -["or"] = new object[] +or = new object[] { new Dictionary { -["$id"] = "7143", ["attributeName"] = "size", ["operator"] = "eq", ["attributeValue"] = 0 }, new Dictionary { -["$id"] = "7144", ["attributeName"] = "fileSize", ["operator"] = "eq", ["attributeValue"] = 0 } -} -} }, -new Dictionary +}, +}, +new { -["$id"] = "7145", -["not"] = new Dictionary +not = new { -["$id"] = "7146", -["classification"] = "MICROSOFT.SYSTEM.TEMP_FILE" -} +classification = "MICROSOFT.SYSTEM.TEMP_FILE", +}, } - } + }, }, limit = 10, taxonomySetting = new @@ -4365,51 +3977,43 @@ public void Example_Discovery_Query_DiscoveryQueryTaxonomy_Convenience() { Keywords = "exampledata", Limit = 10, - Filter = BinaryData.FromObjectAsJson(new Dictionary + Filter = BinaryData.FromObjectAsJson(new { - ["$id"] = "7139", - ["and"] = new object[] + and = new object[] { -new Dictionary +new { -["$id"] = "7140", -["objectType"] = "Files" +objectType = "Files", }, -new Dictionary +new { -["$id"] = "7141", -["not"] = new Dictionary +not = new { -["$id"] = "7142", -["or"] = new object[] +or = new object[] { new Dictionary { -["$id"] = "7143", ["attributeName"] = "size", ["operator"] = "eq", ["attributeValue"] = 0 }, new Dictionary { -["$id"] = "7144", ["attributeName"] = "fileSize", ["operator"] = "eq", ["attributeValue"] = 0 } -} -} }, -new Dictionary +}, +}, +new { -["$id"] = "7145", -["not"] = new Dictionary +not = new { -["$id"] = "7146", -["classification"] = "MICROSOFT.SYSTEM.TEMP_FILE" -} +classification = "MICROSOFT.SYSTEM.TEMP_FILE", +}, } - } + }, }), TaxonomySetting = new SearchTaxonomySetting { @@ -4439,51 +4043,43 @@ public async Task Example_Discovery_Query_DiscoveryQueryTaxonomy_Convenience_Asy { Keywords = "exampledata", Limit = 10, - Filter = BinaryData.FromObjectAsJson(new Dictionary + Filter = BinaryData.FromObjectAsJson(new { - ["$id"] = "7139", - ["and"] = new object[] + and = new object[] { -new Dictionary +new { -["$id"] = "7140", -["objectType"] = "Files" +objectType = "Files", }, -new Dictionary +new { -["$id"] = "7141", -["not"] = new Dictionary +not = new { -["$id"] = "7142", -["or"] = new object[] +or = new object[] { new Dictionary { -["$id"] = "7143", ["attributeName"] = "size", ["operator"] = "eq", ["attributeValue"] = 0 }, new Dictionary { -["$id"] = "7144", ["attributeName"] = "fileSize", ["operator"] = "eq", ["attributeValue"] = 0 } -} -} }, -new Dictionary +}, +}, +new { -["$id"] = "7145", -["not"] = new Dictionary +not = new { -["$id"] = "7146", -["classification"] = "MICROSOFT.SYSTEM.TEMP_FILE" -} +classification = "MICROSOFT.SYSTEM.TEMP_FILE", +}, } - } + }, }), TaxonomySetting = new SearchTaxonomySetting { @@ -4513,28 +4109,24 @@ public void Example_Discovery_Query_DiscoveryQueryTermAssignment() { keywords = "", limit = 3, - filter = new Dictionary + filter = new { - ["$id"] = "7200", - ["or"] = new object[] + or = new object[] { -new Dictionary +new { -["$id"] = "7201", -["term"] = "ExampleTerm" +term = "ExampleTerm", }, -new Dictionary +new { -["$id"] = "7202", -["term"] = "ExampleTerm", -["glossary"] = "GlossaryName" +term = "ExampleTerm", +glossary = "GlossaryName", }, -new Dictionary +new { -["$id"] = "7203", -["termGuid"] = "" +termGuid = "", } - } + }, }, }); Response response = client.Query(content); @@ -4555,28 +4147,24 @@ public async Task Example_Discovery_Query_DiscoveryQueryTermAssignment_Async() { keywords = "", limit = 3, - filter = new Dictionary + filter = new { - ["$id"] = "7200", - ["or"] = new object[] + or = new object[] { -new Dictionary +new { -["$id"] = "7201", -["term"] = "ExampleTerm" +term = "ExampleTerm", }, -new Dictionary +new { -["$id"] = "7202", -["term"] = "ExampleTerm", -["glossary"] = "GlossaryName" +term = "ExampleTerm", +glossary = "GlossaryName", }, -new Dictionary +new { -["$id"] = "7203", -["termGuid"] = "" +termGuid = "", } - } + }, }, }); Response response = await client.QueryAsync(content); @@ -4597,28 +4185,24 @@ public void Example_Discovery_Query_DiscoveryQueryTermAssignment_Convenience() { Keywords = "", Limit = 3, - Filter = BinaryData.FromObjectAsJson(new Dictionary + Filter = BinaryData.FromObjectAsJson(new { - ["$id"] = "7200", - ["or"] = new object[] + or = new object[] { -new Dictionary +new { -["$id"] = "7201", -["term"] = "ExampleTerm" +term = "ExampleTerm", }, -new Dictionary +new { -["$id"] = "7202", -["term"] = "ExampleTerm", -["glossary"] = "GlossaryName" +term = "ExampleTerm", +glossary = "GlossaryName", }, -new Dictionary +new { -["$id"] = "7203", -["termGuid"] = "" +termGuid = "", } - } + }, }), }; Response response = client.Query(body); @@ -4636,28 +4220,24 @@ public async Task Example_Discovery_Query_DiscoveryQueryTermAssignment_Convenien { Keywords = "", Limit = 3, - Filter = BinaryData.FromObjectAsJson(new Dictionary + Filter = BinaryData.FromObjectAsJson(new { - ["$id"] = "7200", - ["or"] = new object[] + or = new object[] { -new Dictionary +new { -["$id"] = "7201", -["term"] = "ExampleTerm" +term = "ExampleTerm", }, -new Dictionary +new { -["$id"] = "7202", -["term"] = "ExampleTerm", -["glossary"] = "GlossaryName" +term = "ExampleTerm", +glossary = "GlossaryName", }, -new Dictionary +new { -["$id"] = "7203", -["termGuid"] = "" +termGuid = "", } - } + }, }), }; Response response = await client.QueryAsync(body); @@ -4674,18 +4254,16 @@ public void Example_Discovery_Query_DiscoveryQueryType() using RequestContent content = RequestContent.Create(new { limit = 10, - filter = new Dictionary + filter = new { - ["$id"] = "7236", - ["and"] = new object[] + and = new object[] { -new Dictionary +new { -["$id"] = "7237", -["entityType"] = "azure_blob_path", -["includeSubTypes"] = false +entityType = "azure_blob_path", +includeSubTypes = false, } - } + }, }, }); Response response = client.Query(content); @@ -4705,18 +4283,16 @@ public async Task Example_Discovery_Query_DiscoveryQueryType_Async() using RequestContent content = RequestContent.Create(new { limit = 10, - filter = new Dictionary + filter = new { - ["$id"] = "7236", - ["and"] = new object[] + and = new object[] { -new Dictionary +new { -["$id"] = "7237", -["entityType"] = "azure_blob_path", -["includeSubTypes"] = false +entityType = "azure_blob_path", +includeSubTypes = false, } - } + }, }, }); Response response = await client.QueryAsync(content); @@ -4736,18 +4312,16 @@ public void Example_Discovery_Query_DiscoveryQueryType_Convenience() QueryConfig body = new QueryConfig { Limit = 10, - Filter = BinaryData.FromObjectAsJson(new Dictionary + Filter = BinaryData.FromObjectAsJson(new { - ["$id"] = "7236", - ["and"] = new object[] + and = new object[] { -new Dictionary +new { -["$id"] = "7237", -["entityType"] = "azure_blob_path", -["includeSubTypes"] = false +entityType = "azure_blob_path", +includeSubTypes = false, } - } + }, }), }; Response response = client.Query(body); @@ -4764,18 +4338,16 @@ public async Task Example_Discovery_Query_DiscoveryQueryType_Convenience_Async() QueryConfig body = new QueryConfig { Limit = 10, - Filter = BinaryData.FromObjectAsJson(new Dictionary + Filter = BinaryData.FromObjectAsJson(new { - ["$id"] = "7236", - ["and"] = new object[] + and = new object[] { -new Dictionary +new { -["$id"] = "7237", -["entityType"] = "azure_blob_path", -["includeSubTypes"] = false +entityType = "azure_blob_path", +includeSubTypes = false, } - } + }, }), }; Response response = await client.QueryAsync(body); @@ -4792,18 +4364,16 @@ public void Example_Discovery_Suggest_DiscoverySuggest() using RequestContent content = RequestContent.Create(new { keywords = "exampledata", - filter = new Dictionary + filter = new { - ["$id"] = "7294", - ["and"] = new object[] + and = new object[] { -new Dictionary +new { -["$id"] = "7295", -["entityType"] = "azure_blob_path", -["includeSubTypes"] = false +entityType = "azure_blob_path", +includeSubTypes = false, } - } + }, }, limit = 10, }); @@ -4824,18 +4394,16 @@ public async Task Example_Discovery_Suggest_DiscoverySuggest_Async() using RequestContent content = RequestContent.Create(new { keywords = "exampledata", - filter = new Dictionary + filter = new { - ["$id"] = "7294", - ["and"] = new object[] + and = new object[] { -new Dictionary +new { -["$id"] = "7295", -["entityType"] = "azure_blob_path", -["includeSubTypes"] = false +entityType = "azure_blob_path", +includeSubTypes = false, } - } + }, }, limit = 10, }); @@ -4857,18 +4425,16 @@ public void Example_Discovery_Suggest_DiscoverySuggest_Convenience() { Keywords = "exampledata", Limit = 10, - Filter = BinaryData.FromObjectAsJson(new Dictionary + Filter = BinaryData.FromObjectAsJson(new { - ["$id"] = "7294", - ["and"] = new object[] + and = new object[] { -new Dictionary +new { -["$id"] = "7295", -["entityType"] = "azure_blob_path", -["includeSubTypes"] = false +entityType = "azure_blob_path", +includeSubTypes = false, } - } + }, }), }; Response response = client.Suggest(body); @@ -4886,18 +4452,16 @@ public async Task Example_Discovery_Suggest_DiscoverySuggest_Convenience_Async() { Keywords = "exampledata", Limit = 10, - Filter = BinaryData.FromObjectAsJson(new Dictionary + Filter = BinaryData.FromObjectAsJson(new { - ["$id"] = "7294", - ["and"] = new object[] + and = new object[] { -new Dictionary +new { -["$id"] = "7295", -["entityType"] = "azure_blob_path", -["includeSubTypes"] = false +entityType = "azure_blob_path", +includeSubTypes = false, } - } + }, }), }; Response response = await client.SuggestAsync(body); @@ -4914,18 +4478,16 @@ public void Example_Discovery_AutoComplete_DiscoveryAutoComplete() using RequestContent content = RequestContent.Create(new { keywords = "exa", - filter = new Dictionary + filter = new { - ["$id"] = "7350", - ["and"] = new object[] + and = new object[] { -new Dictionary +new { -["$id"] = "7351", -["entityType"] = "azure_blob_path", -["includeSubTypes"] = false +entityType = "azure_blob_path", +includeSubTypes = false, } - } + }, }, limit = 10, }); @@ -4946,18 +4508,16 @@ public async Task Example_Discovery_AutoComplete_DiscoveryAutoComplete_Async() using RequestContent content = RequestContent.Create(new { keywords = "exa", - filter = new Dictionary + filter = new { - ["$id"] = "7350", - ["and"] = new object[] + and = new object[] { -new Dictionary +new { -["$id"] = "7351", -["entityType"] = "azure_blob_path", -["includeSubTypes"] = false +entityType = "azure_blob_path", +includeSubTypes = false, } - } + }, }, limit = 10, }); @@ -4979,18 +4539,16 @@ public void Example_Discovery_AutoComplete_DiscoveryAutoComplete_Convenience() { Keywords = "exa", Limit = 10, - Filter = BinaryData.FromObjectAsJson(new Dictionary + Filter = BinaryData.FromObjectAsJson(new { - ["$id"] = "7350", - ["and"] = new object[] + and = new object[] { -new Dictionary +new { -["$id"] = "7351", -["entityType"] = "azure_blob_path", -["includeSubTypes"] = false +entityType = "azure_blob_path", +includeSubTypes = false, } - } + }, }), }; Response response = client.AutoComplete(body); @@ -5008,18 +4566,16 @@ public async Task Example_Discovery_AutoComplete_DiscoveryAutoComplete_Convenien { Keywords = "exa", Limit = 10, - Filter = BinaryData.FromObjectAsJson(new Dictionary + Filter = BinaryData.FromObjectAsJson(new { - ["$id"] = "7350", - ["and"] = new object[] + and = new object[] { -new Dictionary +new { -["$id"] = "7351", -["entityType"] = "azure_blob_path", -["includeSubTypes"] = false +entityType = "azure_blob_path", +includeSubTypes = false, } - } + }, }), }; Response response = await client.AutoCompleteAsync(body);