{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dbt-se/json-schema/dbt-se-get-corporate-pledges-fetch-status-response-schema.json",
  "title": "getCorporatePledgesFetchStatusResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dbt-se-regulatory-records-api-openapi.yml#/components/schemas/getCorporatePledgesFetchStatusResponse",
  "type": "array",
  "items": {
    "oneOf": [
      {
        "type": "object",
        "properties": {
          "orgId": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "pending"
            ]
          },
          "requestedAt": {
            "type": "string"
          }
        },
        "required": [
          "orgId",
          "status",
          "requestedAt"
        ]
      },
      {
        "type": "object",
        "properties": {
          "orgId": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "completed"
            ]
          },
          "requestedAt": {
            "type": "string"
          },
          "completedAt": {
            "type": "string"
          }
        },
        "required": [
          "orgId",
          "status",
          "requestedAt",
          "completedAt"
        ]
      },
      {
        "type": "object",
        "properties": {
          "orgId": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "failed"
            ]
          },
          "requestedAt": {
            "type": "string"
          },
          "completedAt": {
            "type": "string"
          },
          "errorMessage": {
            "type": "string"
          }
        },
        "required": [
          "orgId",
          "status",
          "requestedAt",
          "completedAt",
          "errorMessage"
        ]
      },
      {
        "type": "object",
        "properties": {
          "orgId": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "not_found"
            ]
          }
        },
        "required": [
          "orgId",
          "status"
        ]
      }
    ]
  }
}