{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/balladic-com/json-schema/balladic-com-integration-provider-response-schema.json",
  "title": "IntegrationProviderResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/balladic-com-integrations-api-openapi.yml#/components/schemas/IntegrationProviderResponse",
  "properties": {
    "provider": {
      "type": "string",
      "title": "Provider"
    },
    "label": {
      "type": "string",
      "title": "Label"
    },
    "connections": {
      "items": {
        "$ref": "#/$defs/IntegrationConnectionResponse"
      },
      "type": "array",
      "title": "Connections"
    },
    "can_connect": {
      "type": "boolean",
      "title": "Can Connect"
    }
  },
  "type": "object",
  "required": [
    "provider",
    "label",
    "connections",
    "can_connect"
  ],
  "$defs": {
    "IntegrationConnectionResponse": {
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "title": "Id"
        },
        "provider": {
          "type": "string",
          "title": "Provider"
        },
        "organization_id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ],
          "title": "Organization Id"
        },
        "external_account_login": {
          "type": "string",
          "title": "External Account Login"
        },
        "status": {
          "type": "string",
          "title": "Status"
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "title": "Created At"
        }
      },
      "type": "object",
      "required": [
        "id",
        "provider",
        "organization_id",
        "external_account_login",
        "status",
        "created_at"
      ],
      "title": "IntegrationConnectionResponse"
    }
  }
}