diff --git a/sdk/communication/Azure.Communication.Messages/Configuration.json b/sdk/communication/Azure.Communication.Messages/Configuration.json deleted file mode 100644 index 70d91c3a5800..000000000000 --- a/sdk/communication/Azure.Communication.Messages/Configuration.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "output-folder": ".", - "namespace": "Azure.Communication.Messages", - "library-name": "Azure.Communication.Messages", - "flavor": "azure", - "use-model-reader-writer": true, - "shared-source-folders": [ - "../../TempTypeSpecFiles/node_modules/@autorest/csharp/Generator.Shared", - "../../TempTypeSpecFiles/node_modules/@autorest/csharp/Azure.Core.Shared" - ], - "model-namespace": false -} diff --git a/sdk/communication/Azure.Communication.Messages/tsp-location.yaml b/sdk/communication/Azure.Communication.Messages/tsp-location.yaml index 1746c1b45ffd..9dbc7fffd173 100644 --- a/sdk/communication/Azure.Communication.Messages/tsp-location.yaml +++ b/sdk/communication/Azure.Communication.Messages/tsp-location.yaml @@ -1,4 +1,4 @@ -commit: ad8f361fbc5a2d826ddcd5abe78d1d91b2e4422c directory: specification/communication/Communication.Messages -additionalDirectories: [] +commit: 0813bbb6093d71c92ac5a3709723d4fc54eecd90 repo: Azure/azure-rest-api-specs +additionalDirectories: diff --git a/sdk/communication/Azure.Communication.Messages/tspCodeModel.json b/sdk/communication/Azure.Communication.Messages/tspCodeModel.json deleted file mode 100644 index 7451006bc0b6..000000000000 --- a/sdk/communication/Azure.Communication.Messages/tspCodeModel.json +++ /dev/null @@ -1,12707 +0,0 @@ -{ - "$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": [] - }, - { - "$id": "6", - "kind": "enumvalue", - "name": "image", - "value": "image", - "valueType": { - "$id": "7", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "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", - "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", - "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", - "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", - "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", - "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", - "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", - "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", - "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", - "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", - "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", - "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", - "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": [ - { - "$id": "42", - "kind": "enumvalue", - "name": "whatsAppListAction", - "value": "whatsAppListAction", - "valueType": { - "$id": "43", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "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", - "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", - "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", - "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", - "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", - "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", - "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", - "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", - "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", - "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", - "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", - "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", - "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", - "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", - "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", - "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", - "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", - "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", - "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", - "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": [] - } - ], - "models": [ - { - "$id": "122", - "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": "123", - "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": "124", - "json": { - "$id": "125", - "name": "kind" - } - } - }, - "properties": [ - { - "$id": "126", - "kind": "property", - "name": "channelRegistrationId", - "serializedName": "channelRegistrationId", - "doc": "The Channel Registration ID for the Business Identifier.", - "type": { - "$id": "127", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "128", - "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": "129", - "json": { - "$id": "130", - "name": "channelRegistrationId" - } - } - }, - { - "$id": "131", - "kind": "property", - "name": "to", - "serializedName": "to", - "doc": "The native external platform user identifiers of the recipient.", - "type": { - "$id": "132", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "133", - "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": "134", - "json": { - "$id": "135", - "name": "to" - } - } - }, - { - "$ref": "123" - } - ], - "discriminatedSubtypes": { - "$id": "136", - "text": { - "$id": "137", - "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": "122" - }, - "properties": [ - { - "$id": "138", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "Message notification type is text.", - "type": { - "$id": "139", - "kind": "constant", - "valueType": { - "$id": "140", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "text", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.TextNotificationContent.kind", - "serializationOptions": { - "$id": "141", - "json": { - "$id": "142", - "name": "kind" - } - } - }, - { - "$id": "143", - "kind": "property", - "name": "content", - "serializedName": "content", - "doc": "Message content.", - "type": { - "$id": "144", - "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": "145", - "json": { - "$id": "146", - "name": "content" - } - } - } - ] - }, - "image_v0": { - "$id": "147", - "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": "122" - }, - "properties": [ - { - "$id": "148", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "Message notification type is image.", - "type": { - "$id": "149", - "kind": "constant", - "valueType": { - "$id": "150", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "image_v0", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MediaNotificationContent.kind", - "serializationOptions": { - "$id": "151", - "json": { - "$id": "152", - "name": "kind" - } - } - }, - { - "$id": "153", - "kind": "property", - "name": "content", - "serializedName": "content", - "doc": "Optional text content.", - "type": { - "$id": "154", - "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": "155", - "json": { - "$id": "156", - "name": "content" - } - } - }, - { - "$id": "157", - "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": "158", - "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": "159", - "json": { - "$id": "160", - "name": "mediaUri" - } - } - } - ] - }, - "image": { - "$id": "161", - "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": "122" - }, - "properties": [ - { - "$id": "162", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "Message notification type is image.", - "type": { - "$id": "163", - "kind": "constant", - "valueType": { - "$id": "164", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "image", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ImageNotificationContent.kind", - "serializationOptions": { - "$id": "165", - "json": { - "$id": "166", - "name": "kind" - } - } - }, - { - "$id": "167", - "kind": "property", - "name": "caption", - "serializedName": "caption", - "doc": "Optional text content.", - "type": { - "$id": "168", - "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": "169", - "json": { - "$id": "170", - "name": "caption" - } - } - }, - { - "$id": "171", - "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": "172", - "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": "173", - "json": { - "$id": "174", - "name": "mediaUri" - } - } - } - ] - }, - "document": { - "$id": "175", - "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": "122" - }, - "properties": [ - { - "$id": "176", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "Message notification type is document.", - "type": { - "$id": "177", - "kind": "constant", - "valueType": { - "$id": "178", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "document", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.DocumentNotificationContent.kind", - "serializationOptions": { - "$id": "179", - "json": { - "$id": "180", - "name": "kind" - } - } - }, - { - "$id": "181", - "kind": "property", - "name": "caption", - "serializedName": "caption", - "doc": "Optional text content.", - "type": { - "$id": "182", - "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": "183", - "json": { - "$id": "184", - "name": "caption" - } - } - }, - { - "$id": "185", - "kind": "property", - "name": "fileName", - "serializedName": "fileName", - "doc": "Optional name for the file.", - "type": { - "$id": "186", - "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": "187", - "json": { - "$id": "188", - "name": "fileName" - } - } - }, - { - "$id": "189", - "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": "190", - "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": "191", - "json": { - "$id": "192", - "name": "mediaUri" - } - } - } - ] - }, - "video": { - "$id": "193", - "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": "122" - }, - "properties": [ - { - "$id": "194", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "Message notification type is video.", - "type": { - "$id": "195", - "kind": "constant", - "valueType": { - "$id": "196", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "video", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.VideoNotificationContent.kind", - "serializationOptions": { - "$id": "197", - "json": { - "$id": "198", - "name": "kind" - } - } - }, - { - "$id": "199", - "kind": "property", - "name": "caption", - "serializedName": "caption", - "doc": "Optional text content.", - "type": { - "$id": "200", - "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": "201", - "json": { - "$id": "202", - "name": "caption" - } - } - }, - { - "$id": "203", - "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": "204", - "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": "205", - "json": { - "$id": "206", - "name": "mediaUri" - } - } - } - ] - }, - "audio": { - "$id": "207", - "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": "122" - }, - "properties": [ - { - "$id": "208", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "Message notification type is audio.", - "type": { - "$id": "209", - "kind": "constant", - "valueType": { - "$id": "210", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "audio", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.AudioNotificationContent.kind", - "serializationOptions": { - "$id": "211", - "json": { - "$id": "212", - "name": "kind" - } - } - }, - { - "$id": "213", - "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": "214", - "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": "215", - "json": { - "$id": "216", - "name": "mediaUri" - } - } - } - ] - }, - "reaction": { - "$id": "217", - "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": "122" - }, - "properties": [ - { - "$id": "218", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "Message notification type is reaction.", - "type": { - "$id": "219", - "kind": "constant", - "valueType": { - "$id": "220", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "reaction", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ReactionNotificationContent.kind", - "serializationOptions": { - "$id": "221", - "json": { - "$id": "222", - "name": "kind" - } - } - }, - { - "$id": "223", - "kind": "property", - "name": "emoji", - "serializedName": "emoji", - "doc": "emoji content like \\uD83D\\uDE00.", - "type": { - "$id": "224", - "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": "225", - "json": { - "$id": "226", - "name": "emoji" - } - } - }, - { - "$id": "227", - "kind": "property", - "name": "messageId", - "serializedName": "messageId", - "doc": "ID of the previous message you want to reply to.", - "type": { - "$id": "228", - "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": "229", - "json": { - "$id": "230", - "name": "messageId" - } - } - } - ] - }, - "sticker": { - "$id": "231", - "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": "122" - }, - "properties": [ - { - "$id": "232", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "Message notification type is sticker.", - "type": { - "$id": "233", - "kind": "constant", - "valueType": { - "$id": "234", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "sticker", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.StickerNotificationContent.kind", - "serializationOptions": { - "$id": "235", - "json": { - "$id": "236", - "name": "kind" - } - } - }, - { - "$id": "237", - "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": "238", - "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": "239", - "json": { - "$id": "240", - "name": "mediaUri" - } - } - } - ] - }, - "interactive": { - "$id": "241", - "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": "122" - }, - "properties": [ - { - "$id": "242", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "Message notification type is Interactive.", - "type": { - "$id": "243", - "kind": "constant", - "valueType": { - "$id": "244", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "interactive", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.InteractiveNotificationContent.kind", - "serializationOptions": { - "$id": "245", - "json": { - "$id": "246", - "name": "kind" - } - } - }, - { - "$id": "247", - "kind": "property", - "name": "interactiveMessage", - "serializedName": "interactiveMessage", - "doc": "The interactive message content.", - "type": { - "$id": "248", - "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": "249", - "kind": "property", - "name": "header", - "serializedName": "header", - "doc": "Gets or Sets Header content. Supports the following types:text, images etc.", - "type": { - "$id": "250", - "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": "251", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "Kind of MessageContent.", - "type": { - "$ref": "24" - }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageContent.kind", - "serializationOptions": { - "$id": "252", - "json": { - "$id": "253", - "name": "kind" - } - } - }, - "properties": [ - { - "$ref": "251" - } - ], - "discriminatedSubtypes": { - "$id": "254", - "text": { - "$id": "255", - "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": "250" - }, - "properties": [ - { - "$id": "256", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "Message content kind is text.", - "type": { - "$id": "257", - "kind": "constant", - "valueType": { - "$id": "258", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "text", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.TextMessageContent.kind", - "serializationOptions": { - "$id": "259", - "json": { - "$id": "260", - "name": "kind" - } - } - }, - { - "$id": "261", - "kind": "property", - "name": "text", - "serializedName": "text", - "doc": "The text value.", - "type": { - "$id": "262", - "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": "263", - "json": { - "$id": "264", - "name": "text" - } - } - } - ] - }, - "document": { - "$id": "265", - "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": "250" - }, - "properties": [ - { - "$id": "266", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "Message content kind is document.", - "type": { - "$id": "267", - "kind": "constant", - "valueType": { - "$id": "268", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "document", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.DocumentMessageContent.kind", - "serializationOptions": { - "$id": "269", - "json": { - "$id": "270", - "name": "kind" - } - } - }, - { - "$id": "271", - "kind": "property", - "name": "mediaUri", - "serializedName": "mediaUri", - "doc": "MediaUri of the media content.", - "type": { - "$id": "272", - "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": "273", - "json": { - "$id": "274", - "name": "mediaUri" - } - } - } - ] - }, - "image": { - "$id": "275", - "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": "250" - }, - "properties": [ - { - "$id": "276", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "Message content kind is image.", - "type": { - "$id": "277", - "kind": "constant", - "valueType": { - "$id": "278", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "image", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ImageMessageContent.kind", - "serializationOptions": { - "$id": "279", - "json": { - "$id": "280", - "name": "kind" - } - } - }, - { - "$id": "281", - "kind": "property", - "name": "mediaUri", - "serializedName": "mediaUri", - "doc": "MediaUri of the media content.", - "type": { - "$id": "282", - "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": "283", - "json": { - "$id": "284", - "name": "mediaUri" - } - } - } - ] - }, - "video": { - "$id": "285", - "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": "250" - }, - "properties": [ - { - "$id": "286", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "Message content kind is video.", - "type": { - "$id": "287", - "kind": "constant", - "valueType": { - "$id": "288", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "video", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.VideoMessageContent.kind", - "serializationOptions": { - "$id": "289", - "json": { - "$id": "290", - "name": "kind" - } - } - }, - { - "$id": "291", - "kind": "property", - "name": "mediaUri", - "serializedName": "mediaUri", - "doc": "MediaUri of the media content.", - "type": { - "$id": "292", - "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": "293", - "json": { - "$id": "294", - "name": "mediaUri" - } - } - } - ] - }, - "buttonSet": { - "$id": "295", - "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": "250" - }, - "properties": [ - { - "$id": "296", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "Message content kind is Button.", - "type": { - "$id": "297", - "kind": "constant", - "valueType": { - "$id": "298", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "buttonSet", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ButtonSetContent.kind", - "serializationOptions": { - "$id": "299", - "json": { - "$id": "300", - "name": "kind" - } - } - }, - { - "$id": "301", - "kind": "property", - "name": "buttons", - "serializedName": "buttons", - "doc": "Unique Id of the button content.", - "type": { - "$id": "302", - "kind": "array", - "name": "ArrayButtonContent", - "valueType": { - "$id": "303", - "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": "304", - "kind": "property", - "name": "id", - "serializedName": "id", - "doc": "Unique Id of the button content.", - "type": { - "$id": "305", - "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": "306", - "json": { - "$id": "307", - "name": "id" - } - } - }, - { - "$id": "308", - "kind": "property", - "name": "title", - "serializedName": "title", - "doc": "Title of the button content.", - "type": { - "$id": "309", - "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": "310", - "json": { - "$id": "311", - "name": "title" - } - } - } - ] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ButtonSetContent.buttons", - "serializationOptions": { - "$id": "312", - "json": { - "$id": "313", - "name": "buttons" - } - } - } - ] - }, - "url": { - "$id": "314", - "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": "250" - }, - "properties": [ - { - "$id": "315", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "Message content kind is url.", - "type": { - "$id": "316", - "kind": "constant", - "valueType": { - "$id": "317", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "url", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.LinkContent.kind", - "serializationOptions": { - "$id": "318", - "json": { - "$id": "319", - "name": "kind" - } - } - }, - { - "$id": "320", - "kind": "property", - "name": "title", - "serializedName": "title", - "doc": "Title of the url content.", - "type": { - "$id": "321", - "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": "322", - "json": { - "$id": "323", - "name": "title" - } - } - }, - { - "$id": "324", - "kind": "property", - "name": "uri", - "serializedName": "url", - "doc": "The url in the content.", - "type": { - "$id": "325", - "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": "326", - "json": { - "$id": "327", - "name": "url" - } - } - } - ] - }, - "group": { - "$id": "328", - "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": "250" - }, - "properties": [ - { - "$id": "329", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "Message content kind is actionGroup.", - "type": { - "$id": "330", - "kind": "constant", - "valueType": { - "$id": "331", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "group", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ActionGroupContent.kind", - "serializationOptions": { - "$id": "332", - "json": { - "$id": "333", - "name": "kind" - } - } - }, - { - "$id": "334", - "kind": "property", - "name": "title", - "serializedName": "title", - "doc": "Title of the actionGroup content.", - "type": { - "$id": "335", - "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": "336", - "json": { - "$id": "337", - "name": "title" - } - } - }, - { - "$id": "338", - "kind": "property", - "name": "groups", - "serializedName": "groups", - "doc": "Set or group of actions.", - "type": { - "$id": "339", - "kind": "array", - "name": "ArrayActionGroup", - "valueType": { - "$id": "340", - "kind": "model", - "name": "ActionGroup", - "namespace": "Azure.Communication.Messages", - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ActionGroup", - "usage": "Input,Json", - "doc": "The Action Group content.", - "decorators": [], - "properties": [ - { - "$id": "341", - "kind": "property", - "name": "title", - "serializedName": "title", - "doc": "Title of the ActionGroup.", - "type": { - "$id": "342", - "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": "343", - "json": { - "$id": "344", - "name": "title" - } - } - }, - { - "$id": "345", - "kind": "property", - "name": "items", - "serializedName": "items", - "doc": "Array of items in ActionGroup.", - "type": { - "$id": "346", - "kind": "array", - "name": "ArrayActionGroupItem", - "valueType": { - "$id": "347", - "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": "348", - "kind": "property", - "name": "id", - "serializedName": "id", - "doc": "Id of the Item.", - "type": { - "$id": "349", - "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": "350", - "json": { - "$id": "351", - "name": "id" - } - } - }, - { - "$id": "352", - "kind": "property", - "name": "title", - "serializedName": "title", - "doc": "Title of the Item.", - "type": { - "$id": "353", - "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": "354", - "json": { - "$id": "355", - "name": "title" - } - } - }, - { - "$id": "356", - "kind": "property", - "name": "description", - "serializedName": "description", - "doc": "Description of the Item.", - "type": { - "$id": "357", - "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": "358", - "json": { - "$id": "359", - "name": "description" - } - } - } - ] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ActionGroup.items", - "serializationOptions": { - "$id": "360", - "json": { - "$id": "361", - "name": "items" - } - } - } - ] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ActionGroupContent.groups", - "serializationOptions": { - "$id": "362", - "json": { - "$id": "363", - "name": "groups" - } - } - } - ] - } - } - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.InteractiveMessage.header", - "serializationOptions": { - "$id": "364", - "json": { - "$id": "365", - "name": "header" - } - } - }, - { - "$id": "366", - "kind": "property", - "name": "body", - "serializedName": "body", - "doc": "Gets or Sets Message body content. Emojis, markdown, and links are supported.", - "type": { - "$ref": "255" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.InteractiveMessage.body", - "serializationOptions": { - "$id": "367", - "json": { - "$id": "368", - "name": "body" - } - } - }, - { - "$id": "369", - "kind": "property", - "name": "footer", - "serializedName": "footer", - "doc": "Gets or Sets Message footer content. Emojis, markdown, and links are supported.", - "type": { - "$ref": "255" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.InteractiveMessage.footer", - "serializationOptions": { - "$id": "370", - "json": { - "$id": "371", - "name": "footer" - } - } - }, - { - "$id": "372", - "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": "373", - "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": "374", - "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": "375", - "json": { - "$id": "376", - "name": "kind" - } - } - }, - "properties": [ - { - "$ref": "374" - } - ], - "discriminatedSubtypes": { - "$id": "377", - "whatsAppListAction": { - "$id": "378", - "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": "373" - }, - "properties": [ - { - "$id": "379", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "Message action binding type is WhatsAppListAction.", - "type": { - "$id": "380", - "kind": "constant", - "valueType": { - "$id": "381", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "whatsAppListAction", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.WhatsAppListActionBindings.kind", - "serializationOptions": { - "$id": "382", - "json": { - "$id": "383", - "name": "kind" - } - } - }, - { - "$id": "384", - "kind": "property", - "name": "content", - "serializedName": "content", - "doc": "Action content of Interactive message.", - "type": { - "$ref": "328" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.WhatsAppListActionBindings.content", - "serializationOptions": { - "$id": "385", - "json": { - "$id": "386", - "name": "content" - } - } - } - ] - }, - "whatsAppButtonAction": { - "$id": "387", - "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": "373" - }, - "properties": [ - { - "$id": "388", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "Message action binding type is WhatsAppButtonAction.", - "type": { - "$id": "389", - "kind": "constant", - "valueType": { - "$id": "390", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "whatsAppButtonAction", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.WhatsAppButtonActionBindings.kind", - "serializationOptions": { - "$id": "391", - "json": { - "$id": "392", - "name": "kind" - } - } - }, - { - "$id": "393", - "kind": "property", - "name": "content", - "serializedName": "content", - "doc": "Action content of Interactive message.", - "type": { - "$ref": "295" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.WhatsAppButtonActionBindings.content", - "serializationOptions": { - "$id": "394", - "json": { - "$id": "395", - "name": "content" - } - } - } - ] - }, - "whatsAppUrlAction": { - "$id": "396", - "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": "373" - }, - "properties": [ - { - "$id": "397", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "Message action binding type is WhatsAppUrlAction.", - "type": { - "$id": "398", - "kind": "constant", - "valueType": { - "$id": "399", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "whatsAppUrlAction", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.WhatsAppUrlActionBindings.kind", - "serializationOptions": { - "$id": "400", - "json": { - "$id": "401", - "name": "kind" - } - } - }, - { - "$id": "402", - "kind": "property", - "name": "content", - "serializedName": "content", - "doc": "Action content of Interactive message.", - "type": { - "$ref": "314" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.WhatsAppUrlActionBindings.content", - "serializationOptions": { - "$id": "403", - "json": { - "$id": "404", - "name": "content" - } - } - } - ] - } - } - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.InteractiveMessage.action", - "serializationOptions": { - "$id": "405", - "json": { - "$id": "406", - "name": "action" - } - } - } - ] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.InteractiveNotificationContent.interactiveMessage", - "serializationOptions": { - "$id": "407", - "json": { - "$id": "408", - "name": "interactiveMessage" - } - } - } - ] - }, - "template": { - "$id": "409", - "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": "122" - }, - "properties": [ - { - "$id": "410", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "Message notification type is template.", - "type": { - "$id": "411", - "kind": "constant", - "valueType": { - "$id": "412", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "template", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.TemplateNotificationContent.kind", - "serializationOptions": { - "$id": "413", - "json": { - "$id": "414", - "name": "kind" - } - } - }, - { - "$id": "415", - "kind": "property", - "name": "template", - "serializedName": "template", - "doc": "The template object used to create templates.", - "type": { - "$id": "416", - "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": "417", - "kind": "property", - "name": "name", - "serializedName": "name", - "doc": "Name of the template.", - "type": { - "$id": "418", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplate.name", - "serializationOptions": { - "$id": "419", - "json": { - "$id": "420", - "name": "name" - } - } - }, - { - "$id": "421", - "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": "422", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplate.language", - "serializationOptions": { - "$id": "423", - "json": { - "$id": "424", - "name": "language" - } - } - }, - { - "$id": "425", - "kind": "property", - "name": "values", - "serializedName": "values", - "doc": "The template values.", - "type": { - "$id": "426", - "kind": "array", - "name": "ArrayMessageTemplateValue", - "valueType": { - "$id": "427", - "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": "428", - "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": "429", - "json": { - "$id": "430", - "name": "kind" - } - } - }, - "properties": [ - { - "$id": "431", - "kind": "property", - "name": "name", - "serializedName": "name", - "doc": "Template binding reference name", - "type": { - "$id": "432", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateValue.name", - "serializationOptions": { - "$id": "433", - "json": { - "$id": "434", - "name": "name" - } - } - }, - { - "$ref": "428" - } - ], - "discriminatedSubtypes": { - "$id": "435", - "text": { - "$id": "436", - "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": "427" - }, - "properties": [ - { - "$id": "437", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "Message parameter type is text.", - "type": { - "$id": "438", - "kind": "constant", - "valueType": { - "$id": "439", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "text", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateText.kind", - "serializationOptions": { - "$id": "440", - "json": { - "$id": "441", - "name": "kind" - } - } - }, - { - "$id": "442", - "kind": "property", - "name": "text", - "serializedName": "text", - "doc": "The text value.", - "type": { - "$id": "443", - "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": "444", - "json": { - "$id": "445", - "name": "text" - } - } - } - ] - }, - "image": { - "$id": "446", - "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": "427" - }, - "properties": [ - { - "$id": "447", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "Message parameter type is image.", - "type": { - "$id": "448", - "kind": "constant", - "valueType": { - "$id": "449", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "image", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateImage.kind", - "serializationOptions": { - "$id": "450", - "json": { - "$id": "451", - "name": "kind" - } - } - }, - { - "$id": "452", - "kind": "property", - "name": "uri", - "serializedName": "url", - "doc": "The (public) URL of the media.", - "type": { - "$id": "453", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateImage.url", - "serializationOptions": { - "$id": "454", - "json": { - "$id": "455", - "name": "url" - } - } - }, - { - "$id": "456", - "kind": "property", - "name": "caption", - "serializedName": "caption", - "doc": "The [optional] caption of the media object.", - "type": { - "$id": "457", - "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": "458", - "json": { - "$id": "459", - "name": "caption" - } - } - }, - { - "$id": "460", - "kind": "property", - "name": "fileName", - "serializedName": "fileName", - "doc": "The [optional] filename of the media file.", - "type": { - "$id": "461", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateImage.fileName", - "serializationOptions": { - "$id": "462", - "json": { - "$id": "463", - "name": "fileName" - } - } - } - ] - }, - "document": { - "$id": "464", - "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": "427" - }, - "properties": [ - { - "$id": "465", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "Message parameter type is document.", - "type": { - "$id": "466", - "kind": "constant", - "valueType": { - "$id": "467", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "document", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateDocument.kind", - "serializationOptions": { - "$id": "468", - "json": { - "$id": "469", - "name": "kind" - } - } - }, - { - "$id": "470", - "kind": "property", - "name": "uri", - "serializedName": "url", - "doc": "The (public) URL of the media.", - "type": { - "$id": "471", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateDocument.url", - "serializationOptions": { - "$id": "472", - "json": { - "$id": "473", - "name": "url" - } - } - }, - { - "$id": "474", - "kind": "property", - "name": "caption", - "serializedName": "caption", - "doc": "The [optional] caption of the media object.", - "type": { - "$id": "475", - "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": "476", - "json": { - "$id": "477", - "name": "caption" - } - } - }, - { - "$id": "478", - "kind": "property", - "name": "fileName", - "serializedName": "fileName", - "doc": "The [optional] filename of the media file.", - "type": { - "$id": "479", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateDocument.fileName", - "serializationOptions": { - "$id": "480", - "json": { - "$id": "481", - "name": "fileName" - } - } - } - ] - }, - "video": { - "$id": "482", - "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": "427" - }, - "properties": [ - { - "$id": "483", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "Message parameter type is video.", - "type": { - "$id": "484", - "kind": "constant", - "valueType": { - "$id": "485", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "video", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateVideo.kind", - "serializationOptions": { - "$id": "486", - "json": { - "$id": "487", - "name": "kind" - } - } - }, - { - "$id": "488", - "kind": "property", - "name": "uri", - "serializedName": "url", - "doc": "The (public) URL of the media.", - "type": { - "$id": "489", - "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": "490", - "json": { - "$id": "491", - "name": "url" - } - } - }, - { - "$id": "492", - "kind": "property", - "name": "caption", - "serializedName": "caption", - "doc": "The [optional] caption of the media object.", - "type": { - "$id": "493", - "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": "494", - "json": { - "$id": "495", - "name": "caption" - } - } - }, - { - "$id": "496", - "kind": "property", - "name": "fileName", - "serializedName": "fileName", - "doc": "The [optional] filename of the media file.", - "type": { - "$id": "497", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateVideo.fileName", - "serializationOptions": { - "$id": "498", - "json": { - "$id": "499", - "name": "fileName" - } - } - } - ] - }, - "location": { - "$id": "500", - "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": "427" - }, - "properties": [ - { - "$id": "501", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "Message parameter type is location.", - "type": { - "$id": "502", - "kind": "constant", - "valueType": { - "$id": "503", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "location", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateLocation.kind", - "serializationOptions": { - "$id": "504", - "json": { - "$id": "505", - "name": "kind" - } - } - }, - { - "$id": "506", - "kind": "property", - "name": "locationName", - "serializedName": "locationName", - "doc": "The [Optional] name of the location.", - "type": { - "$id": "507", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateLocation.locationName", - "serializationOptions": { - "$id": "508", - "json": { - "$id": "509", - "name": "locationName" - } - } - }, - { - "$id": "510", - "kind": "property", - "name": "address", - "serializedName": "address", - "doc": "The [Optional] address of the location.", - "type": { - "$id": "511", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateLocation.address", - "serializationOptions": { - "$id": "512", - "json": { - "$id": "513", - "name": "address" - } - } - }, - { - "$id": "514", - "kind": "property", - "name": "latitude", - "serializedName": "latitude", - "doc": "The latitude of the location.", - "type": { - "$id": "515", - "kind": "float64", - "name": "float64", - "crossLanguageDefinitionId": "TypeSpec.float64", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateLocation.latitude", - "serializationOptions": { - "$id": "516", - "json": { - "$id": "517", - "name": "latitude" - } - } - }, - { - "$id": "518", - "kind": "property", - "name": "longitude", - "serializedName": "longitude", - "doc": "The longitude of the location.", - "type": { - "$id": "519", - "kind": "float64", - "name": "float64", - "crossLanguageDefinitionId": "TypeSpec.float64", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateLocation.longitude", - "serializationOptions": { - "$id": "520", - "json": { - "$id": "521", - "name": "longitude" - } - } - } - ] - }, - "quickAction": { - "$id": "522", - "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": "427" - }, - "properties": [ - { - "$id": "523", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "Message parameter type is quick action.", - "type": { - "$id": "524", - "kind": "constant", - "valueType": { - "$id": "525", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "quickAction", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateQuickAction.kind", - "serializationOptions": { - "$id": "526", - "json": { - "$id": "527", - "name": "kind" - } - } - }, - { - "$id": "528", - "kind": "property", - "name": "text", - "serializedName": "text", - "doc": "The [Optional] quick action text", - "type": { - "$id": "529", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateQuickAction.text", - "serializationOptions": { - "$id": "530", - "json": { - "$id": "531", - "name": "text" - } - } - }, - { - "$id": "532", - "kind": "property", - "name": "payload", - "serializedName": "payload", - "doc": "The [Optional] quick action payload", - "type": { - "$id": "533", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateQuickAction.payload", - "serializationOptions": { - "$id": "534", - "json": { - "$id": "535", - "name": "payload" - } - } - } - ] - } - } - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplate.values", - "serializationOptions": { - "$id": "536", - "json": { - "$id": "537", - "name": "values" - } - } - }, - { - "$id": "538", - "kind": "property", - "name": "bindings", - "serializedName": "bindings", - "doc": "The binding object to link values to the template specific locations", - "type": { - "$id": "539", - "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": "540", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "The type discriminator describing a template bindings type.", - "type": { - "$ref": "62" - }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateBindings.kind", - "serializationOptions": { - "$id": "541", - "json": { - "$id": "542", - "name": "kind" - } - } - }, - "properties": [ - { - "$ref": "540" - } - ], - "discriminatedSubtypes": { - "$id": "543", - "whatsApp": { - "$id": "544", - "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": "539" - }, - "properties": [ - { - "$id": "545", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "MessageTemplateBindings is whatsApp", - "type": { - "$id": "546", - "kind": "constant", - "valueType": { - "$id": "547", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "whatsApp", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.WhatsAppMessageTemplateBindings.kind", - "serializationOptions": { - "$id": "548", - "json": { - "$id": "549", - "name": "kind" - } - } - }, - { - "$id": "550", - "kind": "property", - "name": "header", - "serializedName": "header", - "doc": "The header template bindings", - "type": { - "$id": "551", - "kind": "array", - "name": "ArrayWhatsAppMessageTemplateBindingsComponent", - "valueType": { - "$id": "552", - "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": "553", - "kind": "property", - "name": "refValue", - "serializedName": "refValue", - "doc": "The name of the referenced item in the template values.", - "type": { - "$id": "554", - "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": "555", - "json": { - "$id": "556", - "name": "refValue" - } - } - } - ] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.WhatsAppMessageTemplateBindings.header", - "serializationOptions": { - "$id": "557", - "json": { - "$id": "558", - "name": "header" - } - } - }, - { - "$id": "559", - "kind": "property", - "name": "body", - "serializedName": "body", - "doc": "The body template bindings", - "type": { - "$id": "560", - "kind": "array", - "name": "ArrayWhatsAppMessageTemplateBindingsComponent", - "valueType": { - "$ref": "552" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.WhatsAppMessageTemplateBindings.body", - "serializationOptions": { - "$id": "561", - "json": { - "$id": "562", - "name": "body" - } - } - }, - { - "$id": "563", - "kind": "property", - "name": "footer", - "serializedName": "footer", - "doc": "The footer template bindings", - "type": { - "$id": "564", - "kind": "array", - "name": "ArrayWhatsAppMessageTemplateBindingsComponent", - "valueType": { - "$ref": "552" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.WhatsAppMessageTemplateBindings.footer", - "serializationOptions": { - "$id": "565", - "json": { - "$id": "566", - "name": "footer" - } - } - }, - { - "$id": "567", - "kind": "property", - "name": "buttons", - "serializedName": "buttons", - "doc": "The button template bindings", - "type": { - "$id": "568", - "kind": "array", - "name": "ArrayWhatsAppMessageTemplateBindingsButton", - "valueType": { - "$id": "569", - "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": "570", - "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": "571", - "json": { - "$id": "572", - "name": "subType" - } - } - }, - { - "$id": "573", - "kind": "property", - "name": "refValue", - "serializedName": "refValue", - "doc": "The name of the referenced item in the template values.", - "type": { - "$id": "574", - "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": "575", - "json": { - "$id": "576", - "name": "refValue" - } - } - } - ] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.WhatsAppMessageTemplateBindings.buttons", - "serializationOptions": { - "$id": "577", - "json": { - "$id": "578", - "name": "buttons" - } - } - } - ] - } - } - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplate.bindings", - "serializationOptions": { - "$id": "579", - "json": { - "$id": "580", - "name": "bindings" - } - } - } - ] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.TemplateNotificationContent.template", - "serializationOptions": { - "$id": "581", - "json": { - "$id": "582", - "name": "template" - } - } - } - ] - } - } - }, - { - "$ref": "137" - }, - { - "$ref": "147" - }, - { - "$ref": "161" - }, - { - "$ref": "175" - }, - { - "$ref": "193" - }, - { - "$ref": "207" - }, - { - "$ref": "217" - }, - { - "$ref": "231" - }, - { - "$ref": "241" - }, - { - "$ref": "248" - }, - { - "$ref": "250" - }, - { - "$ref": "255" - }, - { - "$ref": "265" - }, - { - "$ref": "275" - }, - { - "$ref": "285" - }, - { - "$ref": "295" - }, - { - "$ref": "303" - }, - { - "$ref": "314" - }, - { - "$ref": "328" - }, - { - "$ref": "340" - }, - { - "$ref": "347" - }, - { - "$ref": "373" - }, - { - "$ref": "378" - }, - { - "$ref": "387" - }, - { - "$ref": "396" - }, - { - "$ref": "409" - }, - { - "$ref": "416" - }, - { - "$ref": "427" - }, - { - "$ref": "436" - }, - { - "$ref": "446" - }, - { - "$ref": "464" - }, - { - "$ref": "482" - }, - { - "$ref": "500" - }, - { - "$ref": "522" - }, - { - "$ref": "539" - }, - { - "$ref": "544" - }, - { - "$ref": "552" - }, - { - "$ref": "569" - }, - { - "$id": "583", - "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": "584", - "kind": "property", - "name": "receipts", - "serializedName": "receipts", - "doc": "Receipts of the send message operation.", - "type": { - "$id": "585", - "kind": "array", - "name": "ArrayMessageReceipt", - "valueType": { - "$id": "586", - "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": "587", - "kind": "property", - "name": "messageId", - "serializedName": "messageId", - "doc": "The message id.", - "type": { - "$id": "588", - "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": "589", - "json": { - "$id": "590", - "name": "messageId" - } - } - }, - { - "$id": "591", - "kind": "property", - "name": "to", - "serializedName": "to", - "doc": "The native external platform user identifier of the recipient.", - "type": { - "$id": "592", - "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": "593", - "json": { - "$id": "594", - "name": "to" - } - } - } - ] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.SendMessageResult.receipts", - "serializationOptions": { - "$id": "595", - "json": { - "$id": "596", - "name": "receipts" - } - } - } - ] - }, - { - "$ref": "586" - }, - { - "$id": "597", - "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": "598", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "The type discriminator describing a template type.", - "type": { - "$ref": "92" - }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateItem.kind", - "serializationOptions": { - "$id": "599", - "json": { - "$id": "600", - "name": "kind" - } - } - }, - "properties": [ - { - "$id": "601", - "kind": "property", - "name": "name", - "serializedName": "name", - "doc": "The template's name.", - "type": { - "$id": "602", - "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": "603", - "json": { - "$id": "604", - "name": "name" - } - } - }, - { - "$id": "605", - "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": "606", - "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": "607", - "json": { - "$id": "608", - "name": "language" - } - } - }, - { - "$id": "609", - "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": "610", - "json": { - "$id": "611", - "name": "status" - } - } - }, - { - "$ref": "598" - } - ], - "discriminatedSubtypes": { - "$id": "612", - "whatsApp": { - "$id": "613", - "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": "597" - }, - "properties": [ - { - "$id": "614", - "kind": "property", - "name": "content", - "serializedName": "content", - "doc": "WhatsApp platform's template content. This is the payload returned from WhatsApp API.", - "type": { - "$id": "615", - "kind": "unknown", - "name": "unknown", - "crossLanguageDefinitionId": "", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.WhatsAppMessageTemplateItem.content", - "serializationOptions": { - "$id": "616", - "json": { - "$id": "617", - "name": "content" - } - } - }, - { - "$id": "618", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "Message template response type is whatsApp.", - "type": { - "$id": "619", - "kind": "constant", - "valueType": { - "$id": "620", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "whatsApp", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.WhatsAppMessageTemplateItem.kind", - "serializationOptions": { - "$id": "621", - "json": { - "$id": "622", - "name": "kind" - } - } - } - ] - } - } - }, - { - "$ref": "613" - }, - { - "$id": "623", - "kind": "model", - "name": "CommunicationConversation", - "namespace": "Azure.Communication.Messages", - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.Conversation", - "usage": "Input,Output,Json", - "doc": "A conversation.", - "decorators": [], - "properties": [ - { - "$id": "624", - "kind": "property", - "name": "id", - "serializedName": "id", - "doc": "The conversation ID.", - "type": { - "$id": "625", - "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": "626", - "json": { - "$id": "627", - "name": "id" - } - } - }, - { - "$id": "628", - "kind": "property", - "name": "topic", - "serializedName": "topic", - "doc": "The conversation topic.", - "type": { - "$id": "629", - "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": "630", - "json": { - "$id": "631", - "name": "topic" - } - } - }, - { - "$id": "632", - "kind": "property", - "name": "deliveryChannelIds", - "serializedName": "deliveryChannelIds", - "doc": "List of delivery channel IDs.", - "type": { - "$id": "633", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "634", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.Conversation.deliveryChannelIds", - "serializationOptions": { - "$id": "635", - "json": { - "$id": "636", - "name": "deliveryChannelIds" - } - } - }, - { - "$id": "637", - "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": "638", - "json": { - "$id": "639", - "name": "outboundDeliveryStrategy" - } - } - }, - { - "$id": "640", - "kind": "property", - "name": "participants", - "serializedName": "participants", - "doc": "List of participants involved in the conversation.", - "type": { - "$id": "641", - "kind": "array", - "name": "ArrayConversationParticipant", - "valueType": { - "$id": "642", - "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": "643", - "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": "644", - "json": { - "$id": "645", - "name": "kind" - } - } - }, - "properties": [ - { - "$id": "646", - "kind": "property", - "name": "id", - "serializedName": "id", - "doc": "Participant Identifier.", - "type": { - "$id": "647", - "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": "648", - "json": { - "$id": "649", - "name": "id" - } - } - }, - { - "$id": "650", - "kind": "property", - "name": "displayName", - "serializedName": "displayName", - "doc": "Participant display name.", - "type": { - "$id": "651", - "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": "652", - "json": { - "$id": "653", - "name": "displayName" - } - } - }, - { - "$ref": "643" - } - ], - "discriminatedSubtypes": { - "$id": "654", - "internal": { - "$id": "655", - "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": "642" - }, - "properties": [ - { - "$id": "656", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "Participant type is internal.", - "type": { - "$id": "657", - "kind": "constant", - "valueType": { - "$id": "658", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "internal", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.InternalConversationParticipant.kind", - "serializationOptions": { - "$id": "659", - "json": { - "$id": "660", - "name": "kind" - } - } - }, - { - "$id": "661", - "kind": "property", - "name": "contact", - "serializedName": "contact", - "doc": "The internal platform identifiers for the participant.", - "type": { - "$id": "662", - "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": "663", - "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": "664", - "json": { - "$id": "665", - "name": "kind" - } - } - }, - "properties": [ - { - "$id": "666", - "kind": "property", - "name": "id", - "serializedName": "id", - "doc": "External platform identifier.", - "type": { - "$id": "667", - "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": "668", - "json": { - "$id": "669", - "name": "id" - } - } - }, - { - "$ref": "663" - } - ], - "discriminatedSubtypes": { - "$id": "670", - "communication": { - "$id": "671", - "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": "662" - }, - "properties": [ - { - "$id": "672", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "Contact type is communication.", - "type": { - "$id": "673", - "kind": "constant", - "valueType": { - "$id": "674", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "communication", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.CommunicationContact.kind", - "serializationOptions": { - "$id": "675", - "json": { - "$id": "676", - "name": "kind" - } - } - } - ] - }, - "bot": { - "$id": "677", - "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": "662" - }, - "properties": [ - { - "$id": "678", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "Contact type is bot.", - "type": { - "$id": "679", - "kind": "constant", - "valueType": { - "$id": "680", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "bot", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.BotContact.kind", - "serializationOptions": { - "$id": "681", - "json": { - "$id": "682", - "name": "kind" - } - } - }, - { - "$id": "683", - "kind": "property", - "name": "botAppId", - "serializedName": "botAppId", - "doc": "Bot App Id of the Bot Contact.", - "type": { - "$id": "684", - "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": "685", - "json": { - "$id": "686", - "name": "botAppId" - } - } - } - ] - }, - "whatsApp": { - "$id": "687", - "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": "662" - }, - "properties": [ - { - "$id": "688", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "Contact type is whatsApp.", - "type": { - "$id": "689", - "kind": "constant", - "valueType": { - "$id": "690", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "whatsApp", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.WhatsAppContact.kind", - "serializationOptions": { - "$id": "691", - "json": { - "$id": "692", - "name": "kind" - } - } - } - ] - } - } - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.InternalConversationParticipant.contact", - "serializationOptions": { - "$id": "693", - "json": { - "$id": "694", - "name": "contact" - } - } - } - ] - }, - "external": { - "$id": "695", - "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": "642" - }, - "properties": [ - { - "$id": "696", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "Participant type is external.", - "type": { - "$id": "697", - "kind": "constant", - "valueType": { - "$id": "698", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "external", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ExternalConversationParticipant.kind", - "serializationOptions": { - "$id": "699", - "json": { - "$id": "700", - "name": "kind" - } - } - }, - { - "$id": "701", - "kind": "property", - "name": "contacts", - "serializedName": "contacts", - "doc": "List of external platform identifiers for the participant.", - "type": { - "$id": "702", - "kind": "array", - "name": "ArrayContact", - "valueType": { - "$ref": "662" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ExternalConversationParticipant.contacts", - "serializationOptions": { - "$id": "703", - "json": { - "$id": "704", - "name": "contacts" - } - } - } - ] - } - } - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.Conversation.participants", - "serializationOptions": { - "$id": "705", - "json": { - "$id": "706", - "name": "participants" - } - } - } - ] - }, - { - "$ref": "642" - }, - { - "$ref": "655" - }, - { - "$ref": "662" - }, - { - "$ref": "671" - }, - { - "$ref": "677" - }, - { - "$ref": "687" - }, - { - "$ref": "695" - }, - { - "$id": "707", - "kind": "model", - "name": "ConversationMessage", - "namespace": "Azure.Communication.Messages", - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.Message", - "usage": "Input,Json", - "doc": "Details of a message.", - "decorators": [], - "properties": [ - { - "$id": "708", - "kind": "property", - "name": "content", - "serializedName": "content", - "doc": "Content of the message.", - "type": { - "$id": "709", - "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": "710", - "json": { - "$id": "711", - "name": "content" - } - } - } - ] - }, - { - "$id": "712", - "kind": "model", - "name": "CreateConversationRequest1", - "namespace": "Azure.Communication.Messages", - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.createConversation.Request.anonymous", - "usage": "Spread,Json", - "decorators": [], - "properties": [ - { - "$id": "713", - "kind": "property", - "name": "conversation", - "serializedName": "conversation", - "doc": "The conversation details.", - "type": { - "$ref": "623" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "createConversation.Request.anonymous.conversation", - "serializationOptions": { - "$id": "714", - "json": { - "$id": "715", - "name": "conversation" - } - } - }, - { - "$id": "716", - "kind": "property", - "name": "initialMessage", - "serializedName": "initialMessage", - "doc": "An initial message within the conversation.", - "type": { - "$ref": "707" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "createConversation.Request.anonymous.initialMessage", - "serializationOptions": { - "$id": "717", - "json": { - "$id": "718", - "name": "initialMessage" - } - } - } - ] - }, - { - "$id": "719", - "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": "720", - "kind": "property", - "name": "id", - "serializedName": "id", - "doc": "Message ID.", - "type": { - "$id": "721", - "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": "722", - "json": { - "$id": "723", - "name": "id" - } - } - }, - { - "$id": "724", - "kind": "property", - "name": "sequenceId", - "serializedName": "sequenceId", - "doc": "Message sequence ID.", - "type": { - "$id": "725", - "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": "726", - "json": { - "$id": "727", - "name": "sequenceId" - } - } - }, - { - "$id": "728", - "kind": "property", - "name": "message", - "serializedName": "message", - "doc": "Payload of a threaded conversation message.", - "type": { - "$id": "729", - "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": "730", - "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": "731", - "json": { - "$id": "732", - "name": "kind" - } - } - }, - "properties": [ - { - "$ref": "730" - } - ], - "discriminatedSubtypes": { - "$id": "733", - "text": { - "$id": "734", - "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": "729" - }, - "properties": [ - { - "$id": "735", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "Message notification type is text.", - "type": { - "$ref": "139" - }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.TextConversationMessageContent.kind", - "serializationOptions": { - "$id": "736", - "json": { - "$id": "737", - "name": "kind" - } - } - }, - { - "$id": "738", - "kind": "property", - "name": "content", - "serializedName": "content", - "doc": "Message content.", - "type": { - "$id": "739", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.TextConversationMessageContent.content", - "serializationOptions": { - "$id": "740", - "json": { - "$id": "741", - "name": "content" - } - } - } - ] - }, - "image": { - "$id": "742", - "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": "729" - }, - "properties": [ - { - "$id": "743", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "Message notification type is image.", - "type": { - "$ref": "163" - }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ImageConversationMessageContent.kind", - "serializationOptions": { - "$id": "744", - "json": { - "$id": "745", - "name": "kind" - } - } - }, - { - "$id": "746", - "kind": "property", - "name": "caption", - "serializedName": "caption", - "doc": "Optional text content.", - "type": { - "$id": "747", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ImageConversationMessageContent.caption", - "serializationOptions": { - "$id": "748", - "json": { - "$id": "749", - "name": "caption" - } - } - }, - { - "$id": "750", - "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": "751", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ImageConversationMessageContent.mediaUri", - "serializationOptions": { - "$id": "752", - "json": { - "$id": "753", - "name": "mediaUri" - } - } - } - ] - }, - "document": { - "$id": "754", - "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": "729" - }, - "properties": [ - { - "$id": "755", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "Message notification type is document.", - "type": { - "$ref": "177" - }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.DocumentConversationMessageContent.kind", - "serializationOptions": { - "$id": "756", - "json": { - "$id": "757", - "name": "kind" - } - } - }, - { - "$id": "758", - "kind": "property", - "name": "caption", - "serializedName": "caption", - "doc": "Optional text content.", - "type": { - "$id": "759", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.DocumentConversationMessageContent.caption", - "serializationOptions": { - "$id": "760", - "json": { - "$id": "761", - "name": "caption" - } - } - }, - { - "$id": "762", - "kind": "property", - "name": "fileName", - "serializedName": "fileName", - "doc": "Optional name for the file.", - "type": { - "$id": "763", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.DocumentConversationMessageContent.fileName", - "serializationOptions": { - "$id": "764", - "json": { - "$id": "765", - "name": "fileName" - } - } - }, - { - "$id": "766", - "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": "767", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.DocumentConversationMessageContent.mediaUri", - "serializationOptions": { - "$id": "768", - "json": { - "$id": "769", - "name": "mediaUri" - } - } - } - ] - }, - "video": { - "$id": "770", - "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": "729" - }, - "properties": [ - { - "$id": "771", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "Message notification type is video.", - "type": { - "$ref": "195" - }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.VideoConversationMessageContent.kind", - "serializationOptions": { - "$id": "772", - "json": { - "$id": "773", - "name": "kind" - } - } - }, - { - "$id": "774", - "kind": "property", - "name": "caption", - "serializedName": "caption", - "doc": "Optional text content.", - "type": { - "$id": "775", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.VideoConversationMessageContent.caption", - "serializationOptions": { - "$id": "776", - "json": { - "$id": "777", - "name": "caption" - } - } - }, - { - "$id": "778", - "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": "779", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.VideoConversationMessageContent.mediaUri", - "serializationOptions": { - "$id": "780", - "json": { - "$id": "781", - "name": "mediaUri" - } - } - } - ] - }, - "audio": { - "$id": "782", - "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": "729" - }, - "properties": [ - { - "$id": "783", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "Message notification type is audio.", - "type": { - "$ref": "209" - }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.AudioConversationMessageContent.kind", - "serializationOptions": { - "$id": "784", - "json": { - "$id": "785", - "name": "kind" - } - } - }, - { - "$id": "786", - "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": "787", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.AudioConversationMessageContent.mediaUri", - "serializationOptions": { - "$id": "788", - "json": { - "$id": "789", - "name": "mediaUri" - } - } - } - ] - }, - "template": { - "$id": "790", - "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": "729" - }, - "properties": [ - { - "$id": "791", - "kind": "property", - "name": "kind", - "serializedName": "kind", - "doc": "Message notification type is template.", - "type": { - "$ref": "411" - }, - "optional": false, - "readOnly": false, - "discriminator": true, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.TemplateConversationMessageContent.kind", - "serializationOptions": { - "$id": "792", - "json": { - "$id": "793", - "name": "kind" - } - } - }, - { - "$id": "794", - "kind": "property", - "name": "template", - "serializedName": "template", - "doc": "The template object used to create templates.", - "type": { - "$ref": "416" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.TemplateConversationMessageContent.template", - "serializationOptions": { - "$id": "795", - "json": { - "$id": "796", - "name": "template" - } - } - } - ] - } - } - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ConversationMessageItem.message", - "serializationOptions": { - "$id": "797", - "json": { - "$id": "798", - "name": "message" - } - } - }, - { - "$id": "799", - "kind": "property", - "name": "senderDisplayName", - "serializedName": "senderDisplayName", - "doc": "The display name of the message sender.", - "type": { - "$id": "800", - "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": "801", - "json": { - "$id": "802", - "name": "senderDisplayName" - } - } - }, - { - "$id": "803", - "kind": "property", - "name": "senderCommunicationIdentifier", - "serializedName": "senderCommunicationIdentifier", - "doc": "The communication identifier of the message sender.", - "type": { - "$id": "804", - "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": "805", - "json": { - "$id": "806", - "name": "senderCommunicationIdentifier" - } - } - }, - { - "$id": "807", - "kind": "property", - "name": "createdOn", - "serializedName": "createdOn", - "doc": "Timestamp when the message is sent.", - "type": { - "$id": "808", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc3339", - "wireType": { - "$id": "809", - "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": "810", - "json": { - "$id": "811", - "name": "createdOn" - } - } - } - ] - }, - { - "$ref": "729" - }, - { - "$ref": "734" - }, - { - "$ref": "742" - }, - { - "$ref": "754" - }, - { - "$ref": "770" - }, - { - "$ref": "782" - }, - { - "$ref": "790" - }, - { - "$id": "812", - "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": "813", - "kind": "property", - "name": "participants", - "serializedName": "participants", - "doc": "List of participants to add.", - "type": { - "$id": "814", - "kind": "array", - "name": "ArrayConversationParticipant", - "valueType": { - "$ref": "642" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.AddParticipantsOptions.participants", - "serializationOptions": { - "$id": "815", - "json": { - "$id": "816", - "name": "participants" - } - } - } - ] - }, - { - "$id": "817", - "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": "818", - "kind": "property", - "name": "invalidParticipants", - "serializedName": "invalidParticipants", - "doc": "List of Ids with Errors if failed to be added", - "type": { - "$id": "819", - "kind": "array", - "name": "ArrayUpdateParticipantsResult", - "valueType": { - "$id": "820", - "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": "821", - "kind": "property", - "name": "id", - "serializedName": "id", - "doc": "Participant User Id.", - "type": { - "$id": "822", - "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": "823", - "json": { - "$id": "824", - "name": "id" - } - } - }, - { - "$id": "825", - "kind": "property", - "name": "error", - "serializedName": "error", - "doc": "Error of the participant operation.", - "type": { - "$id": "826", - "kind": "model", - "name": "Error", - "namespace": "Azure.Communication.Messages", - "crossLanguageDefinitionId": "Azure.Core.Foundations.Error", - "usage": "Output,Json,Exception", - "doc": "The error object.", - "decorators": [], - "properties": [ - { - "$id": "827", - "kind": "property", - "name": "code", - "serializedName": "code", - "doc": "One of a server-defined set of error codes.", - "type": { - "$id": "828", - "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": "829", - "json": { - "$id": "830", - "name": "code" - } - } - }, - { - "$id": "831", - "kind": "property", - "name": "message", - "serializedName": "message", - "doc": "A human-readable representation of the error.", - "type": { - "$id": "832", - "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": "833", - "json": { - "$id": "834", - "name": "message" - } - } - }, - { - "$id": "835", - "kind": "property", - "name": "target", - "serializedName": "target", - "doc": "The target of the error.", - "type": { - "$id": "836", - "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": "837", - "json": { - "$id": "838", - "name": "target" - } - } - }, - { - "$id": "839", - "kind": "property", - "name": "details", - "serializedName": "details", - "doc": "An array of details about specific errors that led to this reported error.", - "type": { - "$id": "840", - "kind": "array", - "name": "ArrayError", - "valueType": { - "$ref": "826" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Core.Foundations.Error.details", - "serializationOptions": { - "$id": "841", - "json": { - "$id": "842", - "name": "details" - } - } - }, - { - "$id": "843", - "kind": "property", - "name": "innererror", - "serializedName": "innererror", - "doc": "An object containing more specific information than the current object about the error.", - "type": { - "$id": "844", - "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/Guidelines.md#7102-error-condition-responses.", - "decorators": [], - "properties": [ - { - "$id": "845", - "kind": "property", - "name": "code", - "serializedName": "code", - "doc": "One of a server-defined set of error codes.", - "type": { - "$id": "846", - "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": "847", - "json": { - "$id": "848", - "name": "code" - } - } - }, - { - "$id": "849", - "kind": "property", - "name": "innererror", - "serializedName": "innererror", - "doc": "Inner error.", - "type": { - "$ref": "844" - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Core.Foundations.InnerError.innererror", - "serializationOptions": { - "$id": "850", - "json": { - "$id": "851", - "name": "innererror" - } - } - } - ] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Core.Foundations.Error.innererror", - "serializationOptions": { - "$id": "852", - "json": { - "$id": "853", - "name": "innererror" - } - } - } - ] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.UpdateParticipantsResult.error", - "serializationOptions": { - "$id": "854", - "json": { - "$id": "855", - "name": "error" - } - } - } - ] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.AddParticipantsResult.invalidParticipants", - "serializationOptions": { - "$id": "856", - "json": { - "$id": "857", - "name": "invalidParticipants" - } - } - } - ] - }, - { - "$ref": "820" - }, - { - "$ref": "826" - }, - { - "$ref": "844" - }, - { - "$id": "858", - "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": "859", - "kind": "property", - "name": "participantIds", - "serializedName": "participantIds", - "doc": "The participant IDs to remove.", - "type": { - "$id": "860", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "861", - "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.RemoveParticipantsOptions.participantIds", - "serializationOptions": { - "$id": "862", - "json": { - "$id": "863", - "name": "participantIds" - } - } - } - ] - }, - { - "$id": "864", - "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": "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": { - "$ref": "820" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.RemoveParticipantsResult.invalidParticipants", - "serializationOptions": { - "$id": "867", - "json": { - "$id": "868", - "name": "invalidParticipants" - } - } - } - ] - }, - { - "$id": "869", - "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": "870", - "kind": "property", - "name": "summary", - "serializedName": "summary", - "doc": "The AI summary of the conversation messages.", - "type": { - "$id": "871", - "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": "872", - "json": { - "$id": "873", - "name": "summary" - } - } - } - ] - }, - { - "$id": "874", - "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": "875", - "kind": "property", - "name": "request", - "serializedName": "request", - "doc": "Details of a send conversation message request.", - "type": { - "$ref": "729" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.SendConversationMessageOptions.request", - "serializationOptions": { - "$id": "876", - "json": { - "$id": "877", - "name": "request" - } - } - }, - { - "$id": "878", - "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": "879", - "json": { - "$id": "880", - "name": "outboundDeliveryStrategy" - } - } - } - ] - }, - { - "$id": "881", - "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": "882", - "kind": "property", - "name": "messageId", - "serializedName": "messageId", - "doc": "A server-generated Advanced Messaging conversation message id.", - "type": { - "$id": "883", - "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": "884", - "json": { - "$id": "885", - "name": "messageId" - } - } - } - ] - }, - { - "$id": "886", - "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": "887", - "kind": "property", - "name": "value", - "serializedName": "value", - "doc": "The MessageTemplateItem items on this page", - "type": { - "$id": "888", - "kind": "array", - "name": "ArrayMessageTemplateItem", - "valueType": { - "$ref": "597" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Core.Foundations.CustomPage.value", - "serializationOptions": { - "$id": "889", - "json": { - "$id": "890", - "name": "value" - } - } - }, - { - "$id": "891", - "kind": "property", - "name": "nextLink", - "serializedName": "nextLink", - "doc": "The link to the next page of items", - "type": { - "$id": "892", - "kind": "url", - "name": "ResourceLocation", - "crossLanguageDefinitionId": "TypeSpec.Rest.ResourceLocation", - "baseType": { - "$id": "893", - "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": "894", - "json": { - "$id": "895", - "name": "nextLink" - } - } - } - ] - }, - { - "$id": "896", - "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": "897", - "kind": "property", - "name": "value", - "serializedName": "value", - "doc": "The Conversation items on this page", - "type": { - "$id": "898", - "kind": "array", - "name": "ArrayConversation", - "valueType": { - "$ref": "623" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Core.Foundations.CustomPage.value", - "serializationOptions": { - "$id": "899", - "json": { - "$id": "900", - "name": "value" - } - } - }, - { - "$id": "901", - "kind": "property", - "name": "nextLink", - "serializedName": "nextLink", - "doc": "The link to the next page of items", - "type": { - "$id": "902", - "kind": "url", - "name": "ResourceLocation", - "crossLanguageDefinitionId": "TypeSpec.Rest.ResourceLocation", - "baseType": { - "$id": "903", - "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": "904", - "json": { - "$id": "905", - "name": "nextLink" - } - } - } - ] - }, - { - "$id": "906", - "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": "907", - "kind": "property", - "name": "value", - "serializedName": "value", - "doc": "The ConversationMessageItem items on this page", - "type": { - "$id": "908", - "kind": "array", - "name": "ArrayConversationMessageItem", - "valueType": { - "$ref": "719" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Azure.Core.Foundations.CustomPage.value", - "serializationOptions": { - "$id": "909", - "json": { - "$id": "910", - "name": "value" - } - } - }, - { - "$id": "911", - "kind": "property", - "name": "nextLink", - "serializedName": "nextLink", - "doc": "The link to the next page of items", - "type": { - "$id": "912", - "kind": "url", - "name": "ResourceLocation", - "crossLanguageDefinitionId": "TypeSpec.Rest.ResourceLocation", - "baseType": { - "$id": "913", - "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": "914", - "json": { - "$id": "915", - "name": "nextLink" - } - } - } - ] - } - ], - "clients": [ - { - "$id": "916", - "kind": "client", - "name": "NotificationMessagesClient", - "namespace": "Azure.Communication.Messages", - "operations": [ - { - "$id": "917", - "name": "send", - "resourceName": "NotificationMessagesClient", - "doc": "Sends a notification message from Business to User.", - "accessibility": "public", - "parameters": [ - { - "$id": "918", - "name": "apiVersion", - "nameInRequest": "api-version", - "doc": "The API version to use for this operation.", - "type": { - "$id": "919", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": true, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Client", - "defaultValue": { - "$id": "920", - "type": { - "$id": "921", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "2025-04-01-preview" - }, - "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": [] - }, - "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": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "931", - "kind": "constant", - "valueType": { - "$id": "932", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "933", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "934", - "kind": "constant", - "valueType": { - "$id": "935", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "936", - "name": "notificationContent", - "nameInRequest": "notificationContent", - "doc": "Details of the message to send.", - "type": { - "$ref": "122" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "937", - "statusCodes": [ - 202 - ], - "bodyType": { - "$ref": "583" - }, - "headers": [ - { - "$id": "938", - "name": "repeatabilityResult", - "nameInResponse": "Repeatability-Result", - "doc": "Indicates whether the repeatable request was accepted or rejected.", - "type": { - "$ref": "116" - } - }, - { - "$id": "939", - "name": "clientRequestId", - "nameInResponse": "x-ms-client-request-id", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "940", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "941", - "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": [] - }, - { - "$id": "942", - "name": "downloadMediaInternal", - "resourceName": "MessageDataStream", - "doc": "Download the Media payload from a User to Business message.", - "accessibility": "internal", - "parameters": [ - { - "$id": "943", - "name": "apiVersion", - "nameInRequest": "api-version", - "doc": "The API version to use for this operation.", - "type": { - "$id": "944", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": true, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Client", - "defaultValue": { - "$id": "945", - "type": { - "$id": "946", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "2025-04-01-preview" - }, - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "947", - "name": "id", - "nameInRequest": "id", - "doc": "The stream ID.", - "type": { - "$id": "948", - "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": "949", - "name": "clientRequestId", - "nameInRequest": "x-ms-client-request-id", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "950", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "951", - "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": "952", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "953", - "kind": "constant", - "valueType": { - "$id": "954", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/octet-stream", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "955", - "statusCodes": [ - 200 - ], - "bodyType": { - "$id": "956", - "kind": "bytes", - "name": "bytes", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] - }, - "headers": [ - { - "$id": "957", - "name": "clientRequestId", - "nameInResponse": "x-ms-client-request-id", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "958", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "959", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "decorators": [] - } - }, - { - "$id": "960", - "name": "contentType", - "nameInResponse": "content-type", - "doc": "The stream content type.", - "type": { - "$id": "961", - "kind": "constant", - "valueType": { - "$id": "962", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/octet-stream", - "decorators": [] - } - } - ], - "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": "963", - "kind": "http", - "name": "Download media", - "description": "Download media", - "filePath": "2025-04-01-preview/Stream_GetMedia.json", - "parameters": [ - { - "$id": "964", - "parameter": { - "$ref": "943" - }, - "value": { - "$id": "965", - "kind": "string", - "type": { - "$ref": "944" - }, - "value": "2025-04-01-preview" - } - }, - { - "$id": "966", - "parameter": { - "$ref": "947" - }, - "value": { - "$id": "967", - "kind": "string", - "type": { - "$ref": "948" - }, - "value": "d19e68ec-bdd6-4a50-8dfb-cbb1642df6ab" - } - } - ], - "responses": [ - { - "$id": "968", - "response": { - "$ref": "955" - }, - "statusCode": 200, - "bodyValue": { - "$id": "969", - "kind": "string", - "type": { - "$ref": "956" - }, - "value": "" - } - } - ] - } - ] - } - ], - "parameters": [ - { - "$id": "970", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "The communication resource, for example https://my-resource.communication.azure.com", - "type": { - "$id": "971", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - } - ], - "decorators": [], - "crossLanguageDefinitionId": "ClientForAcsMessages.NotificationMessagesClient", - "apiVersions": [ - "2024-02-01", - "2024-08-30", - "2025-01-15-preview", - "2025-04-01-preview" - ] - }, - { - "$id": "972", - "kind": "client", - "name": "MessageTemplateClient", - "namespace": "Azure.Communication.Messages", - "operations": [ - { - "$id": "973", - "name": "getTemplates", - "resourceName": "MessageTemplateItem", - "doc": "List all templates for given Azure Communication Services channel", - "accessibility": "public", - "parameters": [ - { - "$id": "974", - "name": "apiVersion", - "nameInRequest": "api-version", - "doc": "The API version to use for this operation.", - "type": { - "$id": "975", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": true, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Client", - "defaultValue": { - "$id": "976", - "type": { - "$id": "977", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "2025-04-01-preview" - }, - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "978", - "name": "channelId", - "nameInRequest": "channelId", - "doc": "The registration ID of the channel.", - "type": { - "$id": "979", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "980", - "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": "981", - "name": "maxPageSize", - "nameInRequest": "maxPageSize", - "doc": "Number of objects to return per page.", - "type": { - "$id": "982", - "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": "983", - "name": "clientRequestId", - "nameInRequest": "x-ms-client-request-id", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "984", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "985", - "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": "986", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "987", - "kind": "constant", - "valueType": { - "$id": "988", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "989", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "886" - }, - "headers": [ - { - "$id": "990", - "name": "clientRequestId", - "nameInResponse": "x-ms-client-request-id", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "991", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "992", - "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, - "paging": { - "$id": "993", - "itemPropertySegments": [ - "value" - ], - "nextLink": { - "$id": "994", - "responseSegments": [ - "nextLink" - ], - "responseLocation": "Body" - } - }, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.MessageTemplateClient.listTemplates", - "decorators": [] - } - ], - "parameters": [ - { - "$id": "995", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "The communication resource, for example https://my-resource.communication.azure.com", - "type": { - "$id": "996", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - } - ], - "decorators": [], - "crossLanguageDefinitionId": "ClientForAcsMessages.MessageTemplateClient", - "apiVersions": [ - "2024-02-01", - "2024-08-30", - "2025-01-15-preview", - "2025-04-01-preview" - ] - }, - { - "$id": "997", - "kind": "client", - "name": "ConversationAdministrationClient", - "namespace": "Azure.Communication.Messages", - "operations": [ - { - "$id": "998", - "name": "createConversation", - "resourceName": "Conversation", - "doc": "Creates a new conversation. This is only for create operation.", - "accessibility": "public", - "parameters": [ - { - "$id": "999", - "name": "apiVersion", - "nameInRequest": "api-version", - "doc": "The API version to use for this operation.", - "type": { - "$id": "1000", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": true, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Client", - "defaultValue": { - "$id": "1001", - "type": { - "$id": "1002", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "2025-04-01-preview" - }, - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1003", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "1004", - "kind": "constant", - "valueType": { - "$id": "1005", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1006", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "1007", - "kind": "constant", - "valueType": { - "$id": "1008", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1009", - "name": "createConversationRequest1", - "nameInRequest": "createConversationRequest1", - "type": { - "$ref": "712" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Spread", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "1010", - "statusCodes": [ - 201 - ], - "bodyType": { - "$ref": "623" - }, - "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": [] - }, - { - "$id": "1011", - "name": "getConversation", - "resourceName": "Conversation", - "doc": "Gets the details of a specific conversation.", - "accessibility": "public", - "parameters": [ - { - "$id": "1012", - "name": "apiVersion", - "nameInRequest": "api-version", - "doc": "The API version to use for this operation.", - "type": { - "$id": "1013", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": true, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Client", - "defaultValue": { - "$id": "1014", - "type": { - "$id": "1015", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "2025-04-01-preview" - }, - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1016", - "name": "conversationId", - "nameInRequest": "conversationId", - "doc": "The conversation ID.", - "type": { - "$id": "1017", - "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": "1018", - "name": "clientRequestId", - "nameInRequest": "x-ms-client-request-id", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1019", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "1020", - "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": "1021", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "1022", - "kind": "constant", - "valueType": { - "$id": "1023", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "1024", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "623" - }, - "headers": [ - { - "$id": "1025", - "name": "clientRequestId", - "nameInResponse": "x-ms-client-request-id", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1026", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "1027", - "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": [] - }, - { - "$id": "1028", - "name": "deleteConversation", - "resourceName": "Conversation", - "doc": "Deletes a specific conversation.", - "accessibility": "public", - "parameters": [ - { - "$id": "1029", - "name": "apiVersion", - "nameInRequest": "api-version", - "doc": "The API version to use for this operation.", - "type": { - "$id": "1030", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": true, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Client", - "defaultValue": { - "$id": "1031", - "type": { - "$id": "1032", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "2025-04-01-preview" - }, - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1033", - "name": "conversationId", - "nameInRequest": "conversationId", - "doc": "The conversation ID.", - "type": { - "$id": "1034", - "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": "1035", - "name": "repeatabilityRequestId", - "nameInRequest": "Repeatability-Request-ID", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1036", - "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": "1037", - "name": "repeatabilityFirstSent", - "nameInRequest": "Repeatability-First-Sent", - "doc": "Specifies the date and time at which the request was first created.", - "type": { - "$id": "1038", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc7231", - "wireType": { - "$id": "1039", - "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": "1040", - "name": "clientRequestId", - "nameInRequest": "x-ms-client-request-id", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1041", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "1042", - "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": "1043", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "1044", - "kind": "constant", - "valueType": { - "$id": "1045", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "1046", - "statusCodes": [ - 204 - ], - "headers": [ - { - "$id": "1047", - "name": "repeatabilityResult", - "nameInResponse": "Repeatability-Result", - "doc": "Indicates whether the repeatable request was accepted or rejected.", - "type": { - "$ref": "116" - } - }, - { - "$id": "1048", - "name": "clientRequestId", - "nameInResponse": "x-ms-client-request-id", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1049", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "1050", - "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": [] - }, - { - "$id": "1051", - "name": "terminateConversation", - "resourceName": "ConversationAdministrationClient", - "doc": "Terminates a specific conversation.", - "accessibility": "public", - "parameters": [ - { - "$id": "1052", - "name": "apiVersion", - "nameInRequest": "api-version", - "doc": "The API version to use for this operation.", - "type": { - "$id": "1053", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": true, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Client", - "defaultValue": { - "$id": "1054", - "type": { - "$id": "1055", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "2025-04-01-preview" - }, - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1056", - "name": "conversationId", - "nameInRequest": "conversationId", - "doc": "The conversation ID.", - "type": { - "$id": "1057", - "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": "1058", - "name": "repeatabilityRequestId", - "nameInRequest": "Repeatability-Request-ID", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1059", - "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": "1060", - "name": "repeatabilityFirstSent", - "nameInRequest": "Repeatability-First-Sent", - "doc": "Specifies the date and time at which the request was first created.", - "type": { - "$id": "1061", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc7231", - "wireType": { - "$id": "1062", - "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": "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": { - "$id": "1067", - "kind": "constant", - "valueType": { - "$id": "1068", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "1069", - "statusCodes": [ - 200 - ], - "headers": [ - { - "$id": "1070", - "name": "repeatabilityResult", - "nameInResponse": "Repeatability-Result", - "doc": "Indicates whether the repeatable request was accepted or rejected.", - "type": { - "$ref": "116" - } - }, - { - "$id": "1071", - "name": "clientRequestId", - "nameInResponse": "x-ms-client-request-id", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1072", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "1073", - "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": [] - }, - { - "$id": "1074", - "name": "listConversations", - "resourceName": "Conversation", - "doc": "Retrieves list of conversations.", - "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": "maxPageSize", - "nameInRequest": "maxPageSize", - "doc": "Number of objects to return per page.", - "type": { - "$id": "1080", - "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": "1081", - "name": "participantId", - "nameInRequest": "participantId", - "doc": "The participant user ID", - "type": { - "$id": "1082", - "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": "1083", - "name": "channelId", - "nameInRequest": "channelId", - "doc": "The id of channel", - "type": { - "$id": "1084", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "1085", - "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": "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": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "1090", - "kind": "constant", - "valueType": { - "$id": "1091", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "1092", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "896" - }, - "headers": [ - { - "$id": "1093", - "name": "clientRequestId", - "nameInResponse": "x-ms-client-request-id", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1094", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "1095", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "decorators": [] - } - } - ], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/messages/conversations", - "bufferResponse": true, - "paging": { - "$id": "1096", - "itemPropertySegments": [ - "value" - ], - "nextLink": { - "$id": "1097", - "responseSegments": [ - "nextLink" - ], - "responseLocation": "Body" - } - }, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "ClientForAcsMessages.ConversationAdministrationClient.listConversations", - "decorators": [], - "examples": [ - { - "$id": "1098", - "kind": "http", - "name": "Retrieves list of conversations", - "description": "Retrieves list of conversations", - "filePath": "2025-04-01-preview/ConversationThread_ListConversations.json", - "parameters": [ - { - "$id": "1099", - "parameter": { - "$ref": "1075" - }, - "value": { - "$id": "1100", - "kind": "string", - "type": { - "$ref": "1076" - }, - "value": "2025-04-01-preview" - } - }, - { - "$id": "1101", - "parameter": { - "$ref": "1079" - }, - "value": { - "$id": "1102", - "kind": "number", - "type": { - "$ref": "1080" - }, - "value": 25 - } - }, - { - "$id": "1103", - "parameter": { - "$ref": "1083" - }, - "value": { - "$id": "1104", - "kind": "string", - "type": { - "$ref": "1084" - }, - "value": "0f0eb78e-a576-1dfc-b414-0f0756de3338" - } - } - ], - "responses": [ - { - "$id": "1105", - "response": { - "$ref": "1092" - }, - "statusCode": 200, - "bodyValue": { - "$id": "1106", - "kind": "model", - "type": { - "$ref": "896" - }, - "value": { - "$id": "1107", - "value": { - "$id": "1108", - "kind": "array", - "type": { - "$ref": "898" - }, - "value": [ - { - "$id": "1109", - "kind": "model", - "type": { - "$ref": "623" - }, - "value": { - "$id": "1110", - "id": { - "$id": "1111", - "kind": "string", - "type": { - "$ref": "625" - }, - "value": "19:34adfa4f-cedf-4dc0-ba29-b6d1a69ab345@thread.v2" - }, - "topic": { - "$id": "1112", - "kind": "string", - "type": { - "$ref": "629" - }, - "value": "Test" - }, - "deliveryChannelIds": { - "$id": "1113", - "kind": "array", - "type": { - "$ref": "633" - }, - "value": [ - { - "$id": "1114", - "kind": "string", - "type": { - "$ref": "634" - }, - "value": "0f0eb78e-a576-1dfc-b414-0f0756de3338" - } - ] - }, - "outboundDeliveryStrategy": { - "$id": "1115", - "kind": "string", - "type": { - "$ref": "96" - }, - "value": "allParticipants" - }, - "participants": { - "$id": "1116", - "kind": "array", - "type": { - "$ref": "641" - }, - "value": [ - { - "$id": "1117", - "kind": "model", - "type": { - "$ref": "695" - }, - "value": { - "$id": "1118", - "id": { - "$id": "1119", - "kind": "string", - "type": { - "$ref": "647" - }, - "value": "8:acs:uuid2" - }, - "displayName": { - "$id": "1120", - "kind": "string", - "type": { - "$ref": "651" - }, - "value": "Customer" - }, - "kind": { - "$id": "1121", - "kind": "string", - "type": { - "$ref": "697" - }, - "value": "external" - }, - "contacts": { - "$id": "1122", - "kind": "array", - "type": { - "$ref": "702" - }, - "value": [ - { - "$id": "1123", - "kind": "model", - "type": { - "$ref": "687" - }, - "value": { - "$id": "1124", - "id": { - "$id": "1125", - "kind": "string", - "type": { - "$ref": "667" - }, - "value": "12345678901" - }, - "kind": { - "$id": "1126", - "kind": "string", - "type": { - "$ref": "689" - }, - "value": "whatsApp" - } - } - }, - { - "$id": "1127", - "kind": "model", - "type": { - "$ref": "671" - }, - "value": { - "$id": "1128", - "id": { - "$id": "1129", - "kind": "string", - "type": { - "$ref": "667" - }, - "value": "8:acs:uuid2" - }, - "kind": { - "$id": "1130", - "kind": "string", - "type": { - "$ref": "673" - }, - "value": "communication" - } - } - } - ] - } - } - }, - { - "$id": "1131", - "kind": "model", - "type": { - "$ref": "655" - }, - "value": { - "$id": "1132", - "id": { - "$id": "1133", - "kind": "string", - "type": { - "$ref": "647" - }, - "value": "8:acs:uuid1" - }, - "displayName": { - "$id": "1134", - "kind": "string", - "type": { - "$ref": "651" - }, - "value": "Support" - }, - "kind": { - "$id": "1135", - "kind": "string", - "type": { - "$ref": "657" - }, - "value": "internal" - }, - "contact": { - "$id": "1136", - "kind": "model", - "type": { - "$ref": "671" - }, - "value": { - "$id": "1137", - "id": { - "$id": "1138", - "kind": "string", - "type": { - "$ref": "667" - }, - "value": "8:acs:uuid1" - }, - "kind": { - "$id": "1139", - "kind": "string", - "type": { - "$ref": "673" - }, - "value": "communication" - } - } - } - } - } - ] - } - } - }, - { - "$id": "1140", - "kind": "model", - "type": { - "$ref": "623" - }, - "value": { - "$id": "1141", - "id": { - "$id": "1142", - "kind": "string", - "type": { - "$ref": "625" - }, - "value": "19:111dfa4f-cedf-4dc0-ba29-b6d1a69ab345@thread.v2" - }, - "topic": { - "$id": "1143", - "kind": "string", - "type": { - "$ref": "629" - }, - "value": "Test" - }, - "deliveryChannelIds": { - "$id": "1144", - "kind": "array", - "type": { - "$ref": "633" - }, - "value": [ - { - "$id": "1145", - "kind": "string", - "type": { - "$ref": "634" - }, - "value": "0f0eb78e-a576-1dfc-b414-0f0756de3338" - } - ] - }, - "outboundDeliveryStrategy": { - "$id": "1146", - "kind": "string", - "type": { - "$ref": "96" - }, - "value": "allParticipants" - }, - "participants": { - "$id": "1147", - "kind": "array", - "type": { - "$ref": "641" - }, - "value": [ - { - "$id": "1148", - "kind": "model", - "type": { - "$ref": "695" - }, - "value": { - "$id": "1149", - "id": { - "$id": "1150", - "kind": "string", - "type": { - "$ref": "647" - }, - "value": "8:acs:uuid3" - }, - "displayName": { - "$id": "1151", - "kind": "string", - "type": { - "$ref": "651" - }, - "value": "Customer" - }, - "kind": { - "$id": "1152", - "kind": "string", - "type": { - "$ref": "697" - }, - "value": "external" - }, - "contacts": { - "$id": "1153", - "kind": "array", - "type": { - "$ref": "702" - }, - "value": [ - { - "$id": "1154", - "kind": "model", - "type": { - "$ref": "687" - }, - "value": { - "$id": "1155", - "id": { - "$id": "1156", - "kind": "string", - "type": { - "$ref": "667" - }, - "value": "12331112222" - }, - "kind": { - "$id": "1157", - "kind": "string", - "type": { - "$ref": "689" - }, - "value": "whatsApp" - } - } - }, - { - "$id": "1158", - "kind": "model", - "type": { - "$ref": "671" - }, - "value": { - "$id": "1159", - "id": { - "$id": "1160", - "kind": "string", - "type": { - "$ref": "667" - }, - "value": "8:acs:uuid3" - }, - "kind": { - "$id": "1161", - "kind": "string", - "type": { - "$ref": "673" - }, - "value": "communication" - } - } - } - ] - } - } - }, - { - "$id": "1162", - "kind": "model", - "type": { - "$ref": "655" - }, - "value": { - "$id": "1163", - "id": { - "$id": "1164", - "kind": "string", - "type": { - "$ref": "647" - }, - "value": "8:acs:uuid3" - }, - "displayName": { - "$id": "1165", - "kind": "string", - "type": { - "$ref": "651" - }, - "value": "Support" - }, - "kind": { - "$id": "1166", - "kind": "string", - "type": { - "$ref": "657" - }, - "value": "internal" - }, - "contact": { - "$id": "1167", - "kind": "model", - "type": { - "$ref": "671" - }, - "value": { - "$id": "1168", - "id": { - "$id": "1169", - "kind": "string", - "type": { - "$ref": "667" - }, - "value": "8:acs:uuid3" - }, - "kind": { - "$id": "1170", - "kind": "string", - "type": { - "$ref": "673" - }, - "value": "communication" - } - } - } - } - } - ] - } - } - } - ] - } - } - } - } - ] - } - ] - }, - { - "$id": "1171", - "name": "listMessages", - "resourceName": "ConversationMessageItem", - "doc": "Retrieves list of conversation messages.", - "accessibility": "public", - "parameters": [ - { - "$id": "1172", - "name": "apiVersion", - "nameInRequest": "api-version", - "doc": "The API version to use for this operation.", - "type": { - "$id": "1173", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": true, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Client", - "defaultValue": { - "$id": "1174", - "type": { - "$id": "1175", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "2025-04-01-preview" - }, - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1176", - "name": "conversationId", - "nameInRequest": "conversationId", - "doc": "The conversation ID.", - "type": { - "$id": "1177", - "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": "1178", - "name": "maxPageSize", - "nameInRequest": "maxPageSize", - "doc": "Number of objects to return per page.", - "type": { - "$id": "1179", - "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": "1180", - "name": "participantId", - "nameInRequest": "participantId", - "doc": "The participant user ID", - "type": { - "$id": "1181", - "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": "1182", - "name": "clientRequestId", - "nameInRequest": "x-ms-client-request-id", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1183", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "1184", - "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": "1185", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "1186", - "kind": "constant", - "valueType": { - "$id": "1187", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "1188", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "906" - }, - "headers": [ - { - "$id": "1189", - "name": "clientRequestId", - "nameInResponse": "x-ms-client-request-id", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1190", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "1191", - "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, - "paging": { - "$id": "1192", - "itemPropertySegments": [ - "value" - ], - "nextLink": { - "$id": "1193", - "responseSegments": [ - "nextLink" - ], - "responseLocation": "Body" - } - }, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "ClientForAcsMessages.ConversationAdministrationClient.listMessages", - "decorators": [], - "examples": [ - { - "$id": "1194", - "kind": "http", - "name": "Retrieves list of conversation messages", - "description": "Retrieves list of conversation messages", - "filePath": "2025-04-01-preview/ConversationThread_ListMessages.json", - "parameters": [ - { - "$id": "1195", - "parameter": { - "$ref": "1172" - }, - "value": { - "$id": "1196", - "kind": "string", - "type": { - "$ref": "1173" - }, - "value": "2025-04-01-preview" - } - }, - { - "$id": "1197", - "parameter": { - "$ref": "1176" - }, - "value": { - "$id": "1198", - "kind": "string", - "type": { - "$ref": "1177" - }, - "value": "19:34adfa4f-cedf-4dc0-ba29-b6d1a69ab345@thread.v2" - } - } - ], - "responses": [ - { - "$id": "1199", - "response": { - "$ref": "1188" - }, - "statusCode": 200, - "bodyValue": { - "$id": "1200", - "kind": "model", - "type": { - "$ref": "906" - }, - "value": { - "$id": "1201", - "value": { - "$id": "1202", - "kind": "array", - "type": { - "$ref": "908" - }, - "value": [ - { - "$id": "1203", - "kind": "model", - "type": { - "$ref": "719" - }, - "value": { - "$id": "1204", - "id": { - "$id": "1205", - "kind": "string", - "type": { - "$ref": "721" - }, - "value": "1593108077690" - }, - "sequenceId": { - "$id": "1206", - "kind": "number", - "type": { - "$ref": "725" - }, - "value": 6 - }, - "message": { - "$id": "1207", - "kind": "model", - "type": { - "$ref": "734" - }, - "value": { - "$id": "1208", - "kind": { - "$id": "1209", - "kind": "string", - "type": { - "$ref": "139" - }, - "value": "text" - }, - "content": { - "$id": "1210", - "kind": "string", - "type": { - "$ref": "739" - }, - "value": "My order did not arrive" - } - } - }, - "senderDisplayName": { - "$id": "1211", - "kind": "string", - "type": { - "$ref": "800" - }, - "value": "Jane" - }, - "createdOn": { - "$id": "1212", - "kind": "string", - "type": { - "$ref": "808" - }, - "value": "2020-06-25T18:01:17.6900000Z" - }, - "senderCommunicationIdentifier": { - "$id": "1213", - "kind": "string", - "type": { - "$ref": "804" - }, - "value": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b" - } - } - }, - { - "$id": "1214", - "kind": "model", - "type": { - "$ref": "719" - }, - "value": { - "$id": "1215", - "id": { - "$id": "1216", - "kind": "string", - "type": { - "$ref": "721" - }, - "value": "1593107077690" - }, - "sequenceId": { - "$id": "1217", - "kind": "number", - "type": { - "$ref": "725" - }, - "value": 5 - }, - "message": { - "$id": "1218", - "kind": "model", - "type": { - "$ref": "734" - }, - "value": { - "$id": "1219", - "kind": { - "$id": "1220", - "kind": "string", - "type": { - "$ref": "139" - }, - "value": "text" - }, - "content": { - "$id": "1221", - "kind": "string", - "type": { - "$ref": "739" - }, - "value": "Hi I need help" - } - } - }, - "senderDisplayName": { - "$id": "1222", - "kind": "string", - "type": { - "$ref": "800" - }, - "value": "Jane" - }, - "createdOn": { - "$id": "1223", - "kind": "string", - "type": { - "$ref": "808" - }, - "value": "2020-06-25T17:44:37.6830000Z" - }, - "senderCommunicationIdentifier": { - "$id": "1224", - "kind": "string", - "type": { - "$ref": "804" - }, - "value": "8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b" - } - } - } - ] - } - } - } - } - ] - } - ] - }, - { - "$id": "1225", - "name": "addParticipants", - "resourceName": "ConversationAdministrationClient", - "doc": "Adds participants to a specific conversation.", - "accessibility": "public", - "parameters": [ - { - "$id": "1226", - "name": "apiVersion", - "nameInRequest": "api-version", - "doc": "The API version to use for this operation.", - "type": { - "$id": "1227", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": true, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Client", - "defaultValue": { - "$id": "1228", - "type": { - "$id": "1229", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "2025-04-01-preview" - }, - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1230", - "name": "conversationId", - "nameInRequest": "conversationId", - "doc": "The conversation ID.", - "type": { - "$id": "1231", - "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": "1232", - "name": "repeatabilityRequestId", - "nameInRequest": "Repeatability-Request-ID", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1233", - "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": "1234", - "name": "repeatabilityFirstSent", - "nameInRequest": "Repeatability-First-Sent", - "doc": "Specifies the date and time at which the request was first created.", - "type": { - "$id": "1235", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc7231", - "wireType": { - "$id": "1236", - "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": "1237", - "name": "clientRequestId", - "nameInRequest": "x-ms-client-request-id", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1238", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "1239", - "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": "1240", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "1241", - "kind": "constant", - "valueType": { - "$id": "1242", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1243", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "1244", - "kind": "constant", - "valueType": { - "$id": "1245", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1246", - "name": "options", - "nameInRequest": "options", - "doc": "Details of the payload for adding participants to a conversation.", - "type": { - "$ref": "812" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "1247", - "statusCodes": [ - 207 - ], - "bodyType": { - "$ref": "817" - }, - "headers": [ - { - "$id": "1248", - "name": "repeatabilityResult", - "nameInResponse": "Repeatability-Result", - "doc": "Indicates whether the repeatable request was accepted or rejected.", - "type": { - "$ref": "116" - } - }, - { - "$id": "1249", - "name": "clientRequestId", - "nameInResponse": "x-ms-client-request-id", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1250", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "1251", - "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": "1252", - "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": "1253", - "parameter": { - "$ref": "1226" - }, - "value": { - "$id": "1254", - "kind": "string", - "type": { - "$ref": "1227" - }, - "value": "2025-04-01-preview" - } - }, - { - "$id": "1255", - "parameter": { - "$ref": "1230" - }, - "value": { - "$id": "1256", - "kind": "string", - "type": { - "$ref": "1231" - }, - "value": "19:34adfa4f-cedf-4dc0-ba29-b6d1a69ab345@thread.v2" - } - }, - { - "$id": "1257", - "parameter": { - "$ref": "1246" - }, - "value": { - "$id": "1258", - "kind": "model", - "type": { - "$ref": "812" - }, - "value": { - "$id": "1259", - "participants": { - "$id": "1260", - "kind": "array", - "type": { - "$ref": "814" - }, - "value": [ - { - "$id": "1261", - "kind": "model", - "type": { - "$ref": "695" - }, - "value": { - "$id": "1262", - "displayName": { - "$id": "1263", - "kind": "string", - "type": { - "$ref": "651" - }, - "value": "Customer" - }, - "kind": { - "$id": "1264", - "kind": "string", - "type": { - "$ref": "697" - }, - "value": "external" - }, - "contacts": { - "$id": "1265", - "kind": "array", - "type": { - "$ref": "702" - }, - "value": [ - { - "$id": "1266", - "kind": "model", - "type": { - "$ref": "687" - }, - "value": { - "$id": "1267", - "id": { - "$id": "1268", - "kind": "string", - "type": { - "$ref": "667" - }, - "value": "12345678901" - }, - "kind": { - "$id": "1269", - "kind": "string", - "type": { - "$ref": "689" - }, - "value": "whatsApp" - } - } - } - ] - } - } - }, - { - "$id": "1270", - "kind": "model", - "type": { - "$ref": "655" - }, - "value": { - "$id": "1271", - "displayName": { - "$id": "1272", - "kind": "string", - "type": { - "$ref": "651" - }, - "value": "Support" - }, - "kind": { - "$id": "1273", - "kind": "string", - "type": { - "$ref": "657" - }, - "value": "internal" - }, - "contact": { - "$id": "1274", - "kind": "model", - "type": { - "$ref": "671" - }, - "value": { - "$id": "1275", - "id": { - "$id": "1276", - "kind": "string", - "type": { - "$ref": "667" - }, - "value": "8:acs:uuid1" - }, - "kind": { - "$id": "1277", - "kind": "string", - "type": { - "$ref": "673" - }, - "value": "communication" - } - } - } - } - } - ] - } - } - } - } - ], - "responses": [ - { - "$id": "1278", - "response": { - "$ref": "1247" - }, - "statusCode": 207, - "bodyValue": { - "$id": "1279", - "kind": "model", - "type": { - "$ref": "817" - }, - "value": { - "$id": "1280", - "invalidParticipants": { - "$id": "1281", - "kind": "array", - "type": { - "$ref": "819" - }, - "value": [] - } - } - } - } - ] - } - ] - }, - { - "$id": "1282", - "name": "removeParticipants", - "resourceName": "ConversationAdministrationClient", - "doc": "remove a participant from a conversation", - "accessibility": "public", - "parameters": [ - { - "$id": "1283", - "name": "apiVersion", - "nameInRequest": "api-version", - "doc": "The API version to use for this operation.", - "type": { - "$id": "1284", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": true, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Client", - "defaultValue": { - "$id": "1285", - "type": { - "$id": "1286", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "2025-04-01-preview" - }, - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1287", - "name": "conversationId", - "nameInRequest": "conversationId", - "doc": "The conversation ID.", - "type": { - "$id": "1288", - "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": "1289", - "name": "repeatabilityRequestId", - "nameInRequest": "Repeatability-Request-ID", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1290", - "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": "1291", - "name": "repeatabilityFirstSent", - "nameInRequest": "Repeatability-First-Sent", - "doc": "Specifies the date and time at which the request was first created.", - "type": { - "$id": "1292", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc7231", - "wireType": { - "$id": "1293", - "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": "1294", - "name": "clientRequestId", - "nameInRequest": "x-ms-client-request-id", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1295", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "1296", - "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": "1297", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "1298", - "kind": "constant", - "valueType": { - "$id": "1299", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1300", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "1301", - "kind": "constant", - "valueType": { - "$id": "1302", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1303", - "name": "options", - "nameInRequest": "options", - "doc": "Details of the request body for removing participants from a conversation.", - "type": { - "$ref": "858" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "1304", - "statusCodes": [ - 207 - ], - "bodyType": { - "$ref": "864" - }, - "headers": [ - { - "$id": "1305", - "name": "repeatabilityResult", - "nameInResponse": "Repeatability-Result", - "doc": "Indicates whether the repeatable request was accepted or rejected.", - "type": { - "$ref": "116" - } - }, - { - "$id": "1306", - "name": "clientRequestId", - "nameInResponse": "x-ms-client-request-id", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1307", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "1308", - "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": "1309", - "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": "1310", - "parameter": { - "$ref": "1283" - }, - "value": { - "$id": "1311", - "kind": "string", - "type": { - "$ref": "1284" - }, - "value": "2025-04-01-preview" - } - }, - { - "$id": "1312", - "parameter": { - "$ref": "1287" - }, - "value": { - "$id": "1313", - "kind": "string", - "type": { - "$ref": "1288" - }, - "value": "19:34adfa4f-cedf-4dc0-ba29-b6d1a69ab345@thread.v2" - } - }, - { - "$id": "1314", - "parameter": { - "$ref": "1303" - }, - "value": { - "$id": "1315", - "kind": "model", - "type": { - "$ref": "858" - }, - "value": { - "$id": "1316", - "participantIds": { - "$id": "1317", - "kind": "array", - "type": { - "$ref": "860" - }, - "value": [ - { - "$id": "1318", - "kind": "string", - "type": { - "$ref": "861" - }, - "value": "8:acs:uuid2" - } - ] - } - } - } - } - ], - "responses": [ - { - "$id": "1319", - "response": { - "$ref": "1304" - }, - "statusCode": 207, - "bodyValue": { - "$id": "1320", - "kind": "model", - "type": { - "$ref": "864" - }, - "value": { - "$id": "1321", - "invalidParticipants": { - "$id": "1322", - "kind": "array", - "type": { - "$ref": "866" - }, - "value": [] - } - } - } - } - ] - } - ] - }, - { - "$id": "1323", - "name": "analyzeConversation", - "resourceName": "ConversationAdministrationClient", - "doc": "Get AI Analysis of a conversation.", - "accessibility": "public", - "parameters": [ - { - "$id": "1324", - "name": "apiVersion", - "nameInRequest": "api-version", - "doc": "The API version to use for this operation.", - "type": { - "$id": "1325", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": true, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Client", - "defaultValue": { - "$id": "1326", - "type": { - "$id": "1327", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "2025-04-01-preview" - }, - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1328", - "name": "conversationId", - "nameInRequest": "conversationId", - "doc": "The conversation ID.", - "type": { - "$id": "1329", - "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": "1330", - "name": "repeatabilityRequestId", - "nameInRequest": "Repeatability-Request-ID", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1331", - "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": "1332", - "name": "repeatabilityFirstSent", - "nameInRequest": "Repeatability-First-Sent", - "doc": "Specifies the date and time at which the request was first created.", - "type": { - "$id": "1333", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc7231", - "wireType": { - "$id": "1334", - "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": "1335", - "name": "clientRequestId", - "nameInRequest": "x-ms-client-request-id", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1336", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "1337", - "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": "1338", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "1339", - "kind": "constant", - "valueType": { - "$id": "1340", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "1341", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "869" - }, - "headers": [ - { - "$id": "1342", - "name": "repeatabilityResult", - "nameInResponse": "Repeatability-Result", - "doc": "Indicates whether the repeatable request was accepted or rejected.", - "type": { - "$ref": "116" - } - }, - { - "$id": "1343", - "name": "clientRequestId", - "nameInResponse": "x-ms-client-request-id", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1344", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "1345", - "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": "ClientForAcsMessages.ConversationAdministrationClient.analyzeConversation", - "decorators": [], - "examples": [ - { - "$id": "1346", - "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": "1347", - "parameter": { - "$ref": "1324" - }, - "value": { - "$id": "1348", - "kind": "string", - "type": { - "$ref": "1325" - }, - "value": "2025-04-01-preview" - } - }, - { - "$id": "1349", - "parameter": { - "$ref": "1328" - }, - "value": { - "$id": "1350", - "kind": "string", - "type": { - "$ref": "1329" - }, - "value": "19:34adfa4f-cedf-4dc0-ba29-b6d1a69ab345@thread.v2" - } - } - ], - "responses": [ - { - "$id": "1351", - "response": { - "$ref": "1341" - }, - "statusCode": 200, - "bodyValue": { - "$id": "1352", - "kind": "model", - "type": { - "$ref": "869" - }, - "value": { - "$id": "1353", - "summary": { - "$id": "1354", - "kind": "string", - "type": { - "$ref": "871" - }, - "value": "The customer needs help." - } - } - } - } - ] - } - ] - } - ], - "parameters": [ - { - "$id": "1355", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "The communication resource, for example https://my-resource.communication.azure.com", - "type": { - "$id": "1356", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - } - ], - "decorators": [], - "crossLanguageDefinitionId": "ClientForAcsMessages.ConversationAdministrationClient", - "apiVersions": [ - "2025-04-01-preview" - ] - }, - { - "$id": "1357", - "kind": "client", - "name": "ConversationThreadClient", - "namespace": "Azure.Communication.Messages", - "operations": [ - { - "$id": "1358", - "name": "addParticipants", - "resourceName": "ConversationThreadClient", - "doc": "Adds participants to a specific conversation.", - "accessibility": "public", - "parameters": [ - { - "$id": "1359", - "name": "apiVersion", - "nameInRequest": "api-version", - "doc": "The API version to use for this operation.", - "type": { - "$id": "1360", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": true, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Client", - "defaultValue": { - "$id": "1361", - "type": { - "$id": "1362", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "2025-04-01-preview" - }, - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1363", - "name": "conversationId", - "nameInRequest": "conversationId", - "doc": "The conversation ID.", - "type": { - "$id": "1364", - "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": "1365", - "name": "repeatabilityRequestId", - "nameInRequest": "Repeatability-Request-ID", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1366", - "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": "1367", - "name": "repeatabilityFirstSent", - "nameInRequest": "Repeatability-First-Sent", - "doc": "Specifies the date and time at which the request was first created.", - "type": { - "$id": "1368", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc7231", - "wireType": { - "$id": "1369", - "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": "1370", - "name": "clientRequestId", - "nameInRequest": "x-ms-client-request-id", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1371", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "1372", - "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": "1373", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "1374", - "kind": "constant", - "valueType": { - "$id": "1375", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1376", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "1377", - "kind": "constant", - "valueType": { - "$id": "1378", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1379", - "name": "options", - "nameInRequest": "options", - "doc": "Details of the payload for adding participants to a conversation.", - "type": { - "$ref": "812" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "1380", - "statusCodes": [ - 207 - ], - "bodyType": { - "$ref": "817" - }, - "headers": [ - { - "$id": "1381", - "name": "repeatabilityResult", - "nameInResponse": "Repeatability-Result", - "doc": "Indicates whether the repeatable request was accepted or rejected.", - "type": { - "$ref": "116" - } - }, - { - "$id": "1382", - "name": "clientRequestId", - "nameInResponse": "x-ms-client-request-id", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1383", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "1384", - "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": [] - }, - { - "$id": "1385", - "name": "removeParticipants", - "resourceName": "ConversationThreadClient", - "doc": "remove a participant from a conversation", - "accessibility": "public", - "parameters": [ - { - "$id": "1386", - "name": "apiVersion", - "nameInRequest": "api-version", - "doc": "The API version to use for this operation.", - "type": { - "$id": "1387", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": true, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Client", - "defaultValue": { - "$id": "1388", - "type": { - "$id": "1389", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "2025-04-01-preview" - }, - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1390", - "name": "conversationId", - "nameInRequest": "conversationId", - "doc": "The conversation ID.", - "type": { - "$id": "1391", - "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": "1392", - "name": "repeatabilityRequestId", - "nameInRequest": "Repeatability-Request-ID", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1393", - "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": "1394", - "name": "repeatabilityFirstSent", - "nameInRequest": "Repeatability-First-Sent", - "doc": "Specifies the date and time at which the request was first created.", - "type": { - "$id": "1395", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc7231", - "wireType": { - "$id": "1396", - "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": "1397", - "name": "clientRequestId", - "nameInRequest": "x-ms-client-request-id", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1398", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "1399", - "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": "1400", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "1401", - "kind": "constant", - "valueType": { - "$id": "1402", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1403", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "1404", - "kind": "constant", - "valueType": { - "$id": "1405", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1406", - "name": "options", - "nameInRequest": "options", - "doc": "Details of the request body for removing participants from a conversation.", - "type": { - "$ref": "858" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "1407", - "statusCodes": [ - 207 - ], - "bodyType": { - "$ref": "864" - }, - "headers": [ - { - "$id": "1408", - "name": "repeatabilityResult", - "nameInResponse": "Repeatability-Result", - "doc": "Indicates whether the repeatable request was accepted or rejected.", - "type": { - "$ref": "116" - } - }, - { - "$id": "1409", - "name": "clientRequestId", - "nameInResponse": "x-ms-client-request-id", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1410", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "1411", - "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": [] - }, - { - "$id": "1412", - "name": "listConversations", - "resourceName": "Conversation", - "doc": "Retrieves list of conversations.", - "accessibility": "public", - "parameters": [ - { - "$id": "1413", - "name": "apiVersion", - "nameInRequest": "api-version", - "doc": "The API version to use for this operation.", - "type": { - "$id": "1414", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": true, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Client", - "defaultValue": { - "$id": "1415", - "type": { - "$id": "1416", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "2025-04-01-preview" - }, - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1417", - "name": "maxPageSize", - "nameInRequest": "maxPageSize", - "doc": "Number of objects to return per page.", - "type": { - "$id": "1418", - "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": "1419", - "name": "participantId", - "nameInRequest": "participantId", - "doc": "The participant user ID", - "type": { - "$id": "1420", - "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": "1421", - "name": "channelId", - "nameInRequest": "channelId", - "doc": "The id of channel", - "type": { - "$id": "1422", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "1423", - "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": "1424", - "name": "clientRequestId", - "nameInRequest": "x-ms-client-request-id", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1425", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "1426", - "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": "1427", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "1428", - "kind": "constant", - "valueType": { - "$id": "1429", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "1430", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "896" - }, - "headers": [ - { - "$id": "1431", - "name": "clientRequestId", - "nameInResponse": "x-ms-client-request-id", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1432", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "1433", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "decorators": [] - } - } - ], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/messages/conversations", - "bufferResponse": true, - "paging": { - "$id": "1434", - "itemPropertySegments": [ - "value" - ], - "nextLink": { - "$id": "1435", - "responseSegments": [ - "nextLink" - ], - "responseLocation": "Body" - } - }, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ConversationThreadClient.listConversations", - "decorators": [] - }, - { - "$id": "1436", - "name": "listMessages", - "resourceName": "ConversationMessageItem", - "doc": "Retrieves list of conversation messages.", - "accessibility": "public", - "parameters": [ - { - "$id": "1437", - "name": "apiVersion", - "nameInRequest": "api-version", - "doc": "The API version to use for this operation.", - "type": { - "$id": "1438", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": true, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Client", - "defaultValue": { - "$id": "1439", - "type": { - "$id": "1440", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "2025-04-01-preview" - }, - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1441", - "name": "conversationId", - "nameInRequest": "conversationId", - "doc": "The conversation ID.", - "type": { - "$id": "1442", - "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": "1443", - "name": "maxPageSize", - "nameInRequest": "maxPageSize", - "doc": "Number of objects to return per page.", - "type": { - "$id": "1444", - "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": "1445", - "name": "participantId", - "nameInRequest": "participantId", - "doc": "The participant user ID", - "type": { - "$id": "1446", - "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": "1447", - "name": "clientRequestId", - "nameInRequest": "x-ms-client-request-id", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1448", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "1449", - "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": "1450", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "1451", - "kind": "constant", - "valueType": { - "$id": "1452", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "1453", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "906" - }, - "headers": [ - { - "$id": "1454", - "name": "clientRequestId", - "nameInResponse": "x-ms-client-request-id", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1455", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "1456", - "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, - "paging": { - "$id": "1457", - "itemPropertySegments": [ - "value" - ], - "nextLink": { - "$id": "1458", - "responseSegments": [ - "nextLink" - ], - "responseLocation": "Body" - } - }, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Azure.Communication.MessagesService.ConversationThreadClient.listMessages", - "decorators": [] - }, - { - "$id": "1459", - "name": "sendMessage", - "resourceName": "ConversationThreadClient", - "doc": "Sends a conversation message from Business to User.", - "accessibility": "public", - "parameters": [ - { - "$id": "1460", - "name": "apiVersion", - "nameInRequest": "api-version", - "doc": "The API version to use for this operation.", - "type": { - "$id": "1461", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": true, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Client", - "defaultValue": { - "$id": "1462", - "type": { - "$id": "1463", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "2025-04-01-preview" - }, - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1464", - "name": "conversationId", - "nameInRequest": "conversationId", - "doc": "The conversation ID.", - "type": { - "$id": "1465", - "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": "1466", - "name": "repeatabilityRequestId", - "nameInRequest": "Repeatability-Request-ID", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1467", - "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": "1468", - "name": "repeatabilityFirstSent", - "nameInRequest": "Repeatability-First-Sent", - "doc": "Specifies the date and time at which the request was first created.", - "type": { - "$id": "1469", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc7231", - "wireType": { - "$id": "1470", - "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": "1471", - "name": "clientRequestId", - "nameInRequest": "x-ms-client-request-id", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1472", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "1473", - "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": "1474", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "1475", - "kind": "constant", - "valueType": { - "$id": "1476", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1477", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "1478", - "kind": "constant", - "valueType": { - "$id": "1479", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1480", - "name": "options", - "nameInRequest": "options", - "doc": "Details of the conversation message to send.", - "type": { - "$ref": "874" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "1481", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "881" - }, - "headers": [ - { - "$id": "1482", - "name": "repeatabilityResult", - "nameInResponse": "Repeatability-Result", - "doc": "Indicates whether the repeatable request was accepted or rejected.", - "type": { - "$ref": "116" - } - }, - { - "$id": "1483", - "name": "clientRequestId", - "nameInResponse": "x-ms-client-request-id", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1484", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "1485", - "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": [] - }, - { - "$id": "1486", - "name": "analyzeConversation", - "resourceName": "ConversationThreadClient", - "doc": "Get AI Analysis of a conversation.", - "accessibility": "public", - "parameters": [ - { - "$id": "1487", - "name": "apiVersion", - "nameInRequest": "api-version", - "doc": "The API version to use for this operation.", - "type": { - "$id": "1488", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": true, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Client", - "defaultValue": { - "$id": "1489", - "type": { - "$id": "1490", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "2025-04-01-preview" - }, - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "1491", - "name": "conversationId", - "nameInRequest": "conversationId", - "doc": "The conversation ID.", - "type": { - "$id": "1492", - "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": "1493", - "name": "repeatabilityRequestId", - "nameInRequest": "Repeatability-Request-ID", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1494", - "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": "1495", - "name": "repeatabilityFirstSent", - "nameInRequest": "Repeatability-First-Sent", - "doc": "Specifies the date and time at which the request was first created.", - "type": { - "$id": "1496", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc7231", - "wireType": { - "$id": "1497", - "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": "1498", - "name": "clientRequestId", - "nameInRequest": "x-ms-client-request-id", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1499", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "1500", - "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": "1501", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "1502", - "kind": "constant", - "valueType": { - "$id": "1503", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "1504", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "869" - }, - "headers": [ - { - "$id": "1505", - "name": "repeatabilityResult", - "nameInResponse": "Repeatability-Result", - "doc": "Indicates whether the repeatable request was accepted or rejected.", - "type": { - "$ref": "116" - } - }, - { - "$id": "1506", - "name": "clientRequestId", - "nameInResponse": "x-ms-client-request-id", - "doc": "An opaque, globally-unique, client-generated string identifier for the request.", - "type": { - "$id": "1507", - "kind": "string", - "name": "uuid", - "crossLanguageDefinitionId": "Azure.Core.uuid", - "baseType": { - "$id": "1508", - "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": [] - } - ], - "parameters": [ - { - "$id": "1509", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "The communication resource, for example https://my-resource.communication.azure.com", - "type": { - "$id": "1510", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - } - ], - "decorators": [], - "crossLanguageDefinitionId": "ClientForAcsMessages.ConversationThreadClient", - "apiVersions": [ - "2025-04-01-preview" - ] - } - ], - "auth": { - "$id": "1511", - "oAuth2": { - "$id": "1512", - "scopes": [ - "https://communication.azure.com/.default" - ] - }, - "apiKey": { - "$id": "1513", - "name": "Authorization", - "in": "header", - "prefix": "Bearer" - } - } -}