{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/ConnectedAccount",
  "title": "ConnectedAccount",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "id",
    "connection",
    "connection_id",
    "strategy",
    "access_type",
    "created_at"
  ],
  "properties": {
    "id": {
      "type": "string",
      "description": "The unique identifier for the connected account."
    },
    "connection": {
      "type": "string",
      "description": "The name of the connection associated with the account."
    },
    "connection_id": {
      "type": "string",
      "description": "The unique identifier of the connection associated with the account."
    },
    "strategy": {
      "type": "string",
      "description": "The authentication strategy used by the connection."
    },
    "access_type": {
      "$ref": "#/components/schemas/ConnectedAccountAccessTypeEnum"
    },
    "scopes": {
      "type": "array",
      "description": "The scopes granted for this connected account.",
      "items": {
        "type": "string"
      }
    },
    "created_at": {
      "type": "string",
      "description": "ISO 8601 timestamp when the connected account was created.",
      "format": "date-time"
    },
    "expires_at": {
      "type": "string",
      "description": "ISO 8601 timestamp when the connected account expires.",
      "format": "date-time"
    },
    "organization_id": {
      "type": "string",
      "description": "The identifier of the organization associated with the connected account.",
      "format": "organization-id"
    }
  }
}