{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/lightspark/main/json-schema/lightspark-stablecoin-provider-account-list-response-schema.json",
  "title": "StablecoinProviderAccountListResponse",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/lightspark-stablecoins-api-openapi.yml#/components/schemas/StablecoinProviderAccountListResponse",
  "type": "object",
  "required": [
    "data",
    "hasMore"
  ],
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/StablecoinProviderAccount"
      }
    },
    "hasMore": {
      "type": "boolean",
      "description": "Indicates if more results are available beyond this page."
    },
    "nextCursor": {
      "type": "string",
      "description": "Cursor to retrieve the next page of results."
    },
    "totalCount": {
      "type": "integer",
      "description": "Total number of stablecoin provider account links matching the criteria."
    }
  },
  "$defs": {
    "StablecoinProvider": {
      "type": "string",
      "enum": [
        "BRALE"
      ],
      "description": "Stablecoin provider backing the linked account, stablecoin, or operation."
    },
    "StablecoinProviderAccount": {
      "type": "object",
      "required": [
        "id",
        "provider",
        "providerAccountId",
        "providerEnvironment",
        "status",
        "createdAt",
        "updatedAt"
      ],
      "properties": {
        "id": {
          "type": "string",
          "description": "System-generated stablecoin provider account link identifier."
        },
        "provider": {
          "$ref": "#/$defs/StablecoinProvider"
        },
        "providerAccountId": {
          "type": "string",
          "description": "Provider account id."
        },
        "providerEnvironment": {
          "$ref": "#/$defs/StablecoinProviderEnvironment"
        },
        "status": {
          "$ref": "#/$defs/StablecoinProviderAccountStatus"
        },
        "lastVerifiedAt": {
          "type": "string",
          "format": "date-time",
          "description": "Timestamp of the last successful provider credential verification."
        },
        "createdAt": {
          "type": "string",
          "format": "date-time",
          "description": "Creation timestamp."
        },
        "updatedAt": {
          "type": "string",
          "format": "date-time",
          "description": "Last update timestamp."
        }
      }
    },
    "StablecoinProviderAccountStatus": {
      "type": "string",
      "enum": [
        "ACTIVE",
        "INVALID",
        "REVOKED"
      ],
      "description": "Status of the linked stablecoin provider account credentials."
    },
    "StablecoinProviderEnvironment": {
      "type": "string",
      "enum": [
        "SANDBOX",
        "PRODUCTION"
      ],
      "description": "Provider environment derived from the authenticated Grid platform mode."
    }
  }
}