{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-communication-services/json-schema/microsoft-azure-communication-services-communication-identity-access-token-result-schema.json",
  "title": "CommunicationIdentityAccessTokenResult",
  "description": "A communication identity with access token.",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_superseded/microsoft-azure-communication-services-identity-api-openapi.yml#/components/schemas/CommunicationIdentityAccessTokenResult",
  "type": "object",
  "properties": {
    "identity": {
      "$ref": "#/$defs/CommunicationIdentity",
      "description": "The communication identity."
    },
    "accessToken": {
      "$ref": "#/$defs/CommunicationIdentityAccessToken",
      "description": "An access token."
    }
  },
  "required": [
    "identity"
  ],
  "$defs": {
    "CommunicationIdentity": {
      "type": "object",
      "description": "A communication identity.",
      "properties": {
        "id": {
          "type": "string",
          "description": "Identifier of the identity."
        }
      },
      "required": [
        "id"
      ]
    },
    "CommunicationIdentityAccessToken": {
      "type": "object",
      "description": "An access token.",
      "properties": {
        "token": {
          "type": "string",
          "description": "The access token issued for the identity."
        },
        "expiresOn": {
          "type": "string",
          "format": "date-time",
          "description": "The expiry time of the token."
        }
      },
      "required": [
        "token",
        "expiresOn"
      ]
    }
  }
}