{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dbt-se/json-schema/dbt-se-session-schema.json",
  "title": "Session",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dbt-se-banking-api-openapi.yml#/components/schemas/Session",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "pending-internal",
        "pending-external",
        "failed",
        "connected",
        "completed"
      ]
    },
    "externalConnectUrl": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri"
    },
    "retry": {
      "type": "boolean"
    },
    "bankName": {
      "type": [
        "string",
        "null"
      ]
    },
    "email": {
      "type": "string"
    },
    "comment": {
      "type": [
        "string",
        "null"
      ]
    },
    "orgId": {
      "type": "string"
    },
    "provider": {
      "type": "string"
    },
    "providerState": {
      "type": [
        "string",
        "null"
      ]
    },
    "userReturnUrl": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri"
    },
    "trackedPersonId": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "id",
    "status",
    "externalConnectUrl",
    "retry",
    "bankName",
    "email",
    "comment",
    "orgId",
    "provider",
    "providerState",
    "userReturnUrl",
    "trackedPersonId"
  ]
}