{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/listings-api/json-schema/listings-api-connection-suggestions-for-account-schema.json",
  "title": "ConnectionSuggestionsForAccount",
  "x-generated": "2026-11-08",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/listings-api-connected-accounts-api-openapi.yml#/components/schemas/ConnectionSuggestionsForAccount",
  "type": "object",
  "properties": {
    "suggestions": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ConnectionSuggestion"
      }
    },
    "totalCount": {
      "type": "integer",
      "format": "int32"
    }
  },
  "$defs": {
    "ConnectedAccountListing": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "address": {
          "type": "string"
        },
        "status": {
          "$ref": "#/$defs/ConnectedAccountLocationStatus"
        }
      },
      "required": [
        "id"
      ]
    },
    "ConnectedAccountLocationStatus": {
      "type": "string",
      "enum": [
        "CONNECTED",
        "DISCONNECTED",
        "PENDING",
        "ERROR"
      ]
    },
    "ConnectionSuggestion": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "location": {
          "$ref": "#/$defs/ConnectionSuggestionLocationInfo"
        },
        "listing": {
          "$ref": "#/$defs/ConnectedAccountListing"
        }
      },
      "required": [
        "id"
      ]
    },
    "ConnectionSuggestionLocationInfo": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        }
      }
    }
  }
}