{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/comingup-today/json-schema/comingup-today-ok-envelope-integrations-list-schema.json",
  "title": "OkEnvelopeIntegrationsList",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/comingup-today-integrations-api-openapi.yml#/components/schemas/OkEnvelopeIntegrationsList",
  "type": "object",
  "properties": {
    "data": {
      "$ref": "#/$defs/IntegrationsListResponseData"
    }
  },
  "required": [
    "data"
  ],
  "additionalProperties": false,
  "$defs": {
    "IntegrationItem": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "provider": {
          "type": "string",
          "minLength": 1
        },
        "authType": {
          "type": "string",
          "minLength": 1
        },
        "externalAccountId": {
          "type": "string",
          "minLength": 1
        },
        "accountLabel": {
          "type": [
            "string",
            "null"
          ]
        },
        "normalizedAccountIdentifier": {
          "type": [
            "string",
            "null"
          ]
        },
        "scope": {
          "type": [
            "string",
            "null"
          ]
        },
        "hasRefreshToken": {
          "type": "boolean"
        },
        "expiresAt": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "createdAt": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "requiresReconnect": {
          "type": "boolean"
        },
        "requiresReconnectReason": {
          "type": [
            "string",
            "null"
          ]
        },
        "authFailureCode": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "id",
        "provider",
        "authType",
        "externalAccountId",
        "accountLabel",
        "normalizedAccountIdentifier",
        "scope",
        "hasRefreshToken",
        "expiresAt",
        "createdAt",
        "requiresReconnect",
        "requiresReconnectReason",
        "authFailureCode"
      ],
      "additionalProperties": false
    },
    "IntegrationsListResponseData": {
      "type": "object",
      "properties": {
        "items": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/IntegrationItem"
          }
        }
      },
      "required": [
        "items"
      ],
      "additionalProperties": false
    }
  }
}