{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/chrome-river/json-schema/chrome-river-apishared-link-schema.json",
  "title": "APISharedLink",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/chrome-river-shared-links-api-openapi.yml#/components/schemas/APISharedLink",
  "type": "object",
  "properties": {
    "card": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "url": {
          "type": "string",
          "readOnly": true
        },
        "state": {
          "type": "string",
          "readOnly": true
        },
        "description": {
          "type": "string",
          "readOnly": true,
          "maxLength": 255
        },
        "last_four": {
          "type": "string",
          "readOnly": true,
          "pattern": "^[0-9]{4}$",
          "maxLength": 4
        }
      },
      "required": [
        "description",
        "last_four"
      ]
    },
    "expires_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "hide_balance": {
      "type": "boolean"
    },
    "id": {
      "type": "string",
      "format": "uuid",
      "readOnly": true
    },
    "last_viewed_at": {
      "type": "string",
      "format": "date-time",
      "readOnly": true
    },
    "link": {
      "type": "string",
      "readOnly": true
    },
    "mode": {
      "type": "string",
      "default": 1
    },
    "passphrase_fields": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 255
          },
          "value": {
            "type": "string",
            "maxLength": 255
          },
          "type": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "value",
          "type"
        ]
      }
    },
    "recipient": {
      "type": [
        "string",
        "null"
      ]
    },
    "url": {
      "type": "string",
      "readOnly": true
    }
  },
  "required": [
    "card",
    "last_viewed_at"
  ]
}