{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-bot-framework/json-schema/microsoft-bot-framework-bot-schema.json",
  "title": "Bot",
  "description": "Bot resource definition",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-bot-framework-bot-api-openapi.yml#/components/schemas/Bot",
  "type": "object",
  "allOf": [
    {
      "$ref": "#/$defs/Resource"
    }
  ],
  "properties": {
    "properties": {
      "$ref": "#/$defs/BotProperties",
      "description": "The set of properties specific to bot resource"
    }
  },
  "$defs": {
    "BotProperties": {
      "properties": {
        "displayName": {
          "type": "string",
          "description": "The Name of the bot"
        },
        "description": {
          "type": "string",
          "description": "The description of the bot"
        },
        "iconUrl": {
          "type": "string",
          "description": "The Icon Url of the bot",
          "default": ""
        },
        "endpoint": {
          "type": [
            "string",
            "null"
          ],
          "description": "The bot's endpoint"
        },
        "endpointVersion": {
          "type": "string",
          "readOnly": true,
          "description": "The bot's endpoint version"
        },
        "allSettings": {
          "description": "Contains resource all settings defined as key/value pairs.",
          "type": "object",
          "additionalProperties": {
            "type": "string"
          }
        },
        "parameters": {
          "description": "Contains resource parameters defined as key/value pairs.",
          "type": "object",
          "additionalProperties": {
            "type": "string"
          }
        },
        "manifestUrl": {
          "type": "string",
          "description": "The bot's manifest url"
        },
        "msaAppType": {
          "type": "string",
          "description": "Microsoft App Type for the bot",
          "enum": [
            "UserAssignedMSI",
            "SingleTenant",
            "MultiTenant"
          ],
          "x-ms-enum": {
            "name": "msaAppType",
            "modelAsString": true
          }
        },
        "msaAppId": {
          "type": "string",
          "description": "Microsoft App Id for the bot",
          "x-ms-mutability": [
            "create",
            "read"
          ]
        },
        "msaAppTenantId": {
          "type": "string",
          "description": "Microsoft App Tenant Id for the bot",
          "x-ms-mutability": [
            "create",
            "read"
          ]
        },
        "msaAppMSIResourceId": {
          "type": "string",
          "description": "Microsoft App Managed Identity Resource Id for the bot"
        },
        "configuredChannels": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "readOnly": true,
          "description": "Collection of channels for which the bot is configured"
        },
        "enabledChannels": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "readOnly": true,
          "description": "Collection of channels for which the bot is enabled"
        },
        "developerAppInsightKey": {
          "type": "string",
          "description": "The Application Insights key"
        },
        "developerAppInsightsApiKey": {
          "type": "string",
          "description": "The Application Insights Api Key"
        },
        "developerAppInsightsApplicationId": {
          "type": "string",
          "description": "The Application Insights App Id"
        },
        "luisAppIds": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Collection of LUIS App Ids"
        },
        "luisKey": {
          "type": "string",
          "description": "The LUIS Key"
        },
        "isCmekEnabled": {
          "type": "boolean",
          "description": "Whether Cmek is enabled",
          "default": false
        },
        "cmekKeyVaultUrl": {
          "type": "string",
          "description": "The CMK Url"
        },
        "cmekEncryptionStatus": {
          "type": "string",
          "description": "The CMK encryption status",
          "readOnly": true
        },
        "tenantId": {
          "type": "string",
          "description": "The Tenant Id for the bot",
          "x-ms-mutability": [
            "create",
            "read"
          ]
        },
        "publicNetworkAccess": {
          "description": "Whether the bot is in an isolated network",
          "enum": [
            "Enabled",
            "Disabled"
          ],
          "type": "string",
          "x-ms-enum": {
            "name": "PublicNetworkAccess",
            "modelAsString": true
          },
          "default": "Enabled"
        },
        "isStreamingSupported": {
          "type": "boolean",
          "description": "Whether the bot is streaming supported",
          "default": false
        },
        "isDeveloperAppInsightsApiKeySet": {
          "type": "boolean",
          "description": "Whether the bot is developerAppInsightsApiKey set",
          "readOnly": true
        },
        "migrationToken": {
          "type": "string",
          "description": "Token used to migrate non Azure bot to azure subscription",
          "readOnly": true
        },
        "disableLocalAuth": {
          "type": "boolean",
          "description": "Opt-out of local authentication and ensure only MSI and AAD can be used exclusively for authentication."
        },
        "schemaTransformationVersion": {
          "type": [
            "string",
            "null"
          ],
          "description": "The channel schema transformation version for the bot"
        },
        "storageResourceId": {
          "type": "string",
          "description": "The storage resourceId for the bot"
        },
        "privateEndpointConnections": {
          "type": "array",
          "readOnly": true,
          "description": "List of Private Endpoint Connections configured for the bot",
          "items": {
            "$ref": "#/$defs/PrivateEndpointConnection"
          }
        },
        "openWithHint": {
          "type": "string",
          "description": "The hint to browser (e.g. protocol handler) on how to open the bot for authoring"
        },
        "appPasswordHint": {
          "type": "string",
          "description": "The hint (e.g. keyVault secret resourceId) on how to fetch the app secret"
        },
        "provisioningState": {
          "type": "string",
          "readOnly": true,
          "description": "Provisioning state of the resource"
        },
        "publishingCredentials": {
          "type": "string",
          "description": "Publishing credentials of the resource"
        }
      },
      "description": "The parameters to provide for the Bot.",
      "required": [
        "displayName",
        "endpoint",
        "msaAppId"
      ]
    },
    "Kind": {
      "type": "string",
      "description": "Indicates the type of bot service",
      "enum": [
        "sdk",
        "designer",
        "bot",
        "function",
        "azurebot"
      ],
      "x-ms-enum": {
        "name": "Kind",
        "modelAsString": true
      },
      "x-ms-mutability": [
        "create",
        "read"
      ]
    },
    "PrivateEndpointConnection": {
      "properties": {
        "properties": {
          "$ref": "#/$defs/PrivateEndpointConnectionProperties",
          "x-ms-client-flatten": true,
          "description": "Resource properties."
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/PrivateLinkResourceBase"
        }
      ],
      "description": "The Private Endpoint Connection resource."
    },
    "Resource": {
      "description": "Azure resource",
      "x-ms-azure-resource": true,
      "properties": {
        "id": {
          "description": "Specifies the resource ID.",
          "type": "string",
          "readOnly": true
        },
        "name": {
          "description": "Specifies the name of the resource.",
          "type": "string",
          "readOnly": true
        },
        "location": {
          "description": "Specifies the location of the resource.",
          "type": "string"
        },
        "type": {
          "description": "Specifies the type of the resource.",
          "type": "string",
          "readOnly": true
        },
        "tags": {
          "description": "Contains resource tags defined as key/value pairs.",
          "type": "object",
          "additionalProperties": {
            "type": "string"
          }
        },
        "sku": {
          "$ref": "#/$defs/Sku",
          "description": "Gets or sets the SKU of the resource."
        },
        "kind": {
          "$ref": "#/$defs/Kind",
          "description": "Required. Gets or sets the Kind of the resource."
        },
        "etag": {
          "type": "string",
          "description": "Entity Tag."
        },
        "zones": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Entity zones",
          "readOnly": true
        }
      }
    },
    "Sku": {
      "properties": {
        "name": {
          "$ref": "#/$defs/SkuName",
          "description": "The sku name"
        },
        "tier": {
          "readOnly": true,
          "type": "string",
          "description": "Gets the sku tier. This is based on the SKU name.",
          "enum": [
            "Free",
            "Standard"
          ],
          "x-ms-enum": {
            "name": "SkuTier",
            "modelAsString": true
          }
        }
      },
      "required": [
        "name"
      ],
      "description": "The SKU of the cognitive services account."
    },
    "SkuName": {
      "type": "string",
      "description": "The name of SKU.",
      "enum": [
        "F0",
        "S1"
      ],
      "x-ms-enum": {
        "name": "SkuName",
        "modelAsString": true
      }
    }
  }
}