{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bewary/json-schema/bewary-assess-in-schema.json",
  "title": "AssessIn",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bewary-assess-api-openapi.yml#/components/schemas/AssessIn",
  "properties": {
    "event": {
      "$ref": "#/$defs/AssessEvent"
    },
    "account": {
      "$ref": "#/$defs/AssessAccount"
    }
  },
  "type": "object",
  "required": [
    "event",
    "account"
  ],
  "$defs": {
    "AssessAccount": {
      "properties": {
        "website": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 2000
            },
            {
              "type": "null"
            }
          ],
          "title": "Website",
          "description": "The seller's or profile's website: URL or host."
        },
        "email": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 320
            },
            {
              "type": "null"
            }
          ],
          "title": "Email"
        },
        "phone": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 40
            },
            {
              "type": "null"
            }
          ],
          "title": "Phone",
          "description": "E.164, or national with country."
        },
        "country": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^[A-Za-z]{2}$"
            },
            {
              "type": "null"
            }
          ],
          "title": "Country",
          "description": "ISO 3166-1 alpha-2: the phone's region when it has no +."
        },
        "links": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array",
              "maxItems": 10
            },
            {
              "type": "null"
            }
          ],
          "title": "Links",
          "description": "Other links on the profile or listing."
        },
        "wallet": {
          "anyOf": [
            {
              "$ref": "#/$defs/AssessWallet"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "type": "object",
      "title": "AssessAccount"
    },
    "AssessEvent": {
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "account.onboarding",
            "account.update"
          ],
          "title": "Type",
          "description": "When the contact points were given (a new seller or profile) or changed."
        },
        "id": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 128
            },
            {
              "type": "null"
            }
          ],
          "title": "Id",
          "description": "Yours; echoed back."
        }
      },
      "type": "object",
      "required": [
        "type"
      ],
      "title": "AssessEvent"
    },
    "AssessWallet": {
      "properties": {
        "address": {
          "type": "string",
          "maxLength": 200,
          "title": "Address",
          "description": "The payout wallet address."
        }
      },
      "type": "object",
      "required": [
        "address"
      ],
      "title": "AssessWallet"
    }
  }
}