{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/steadysteel-org/json-schema/steadysteel-org-handoff-schema.json",
  "title": "Handoff",
  "description": "A link to give the person. It opens one page on steadysteel.org that\nshows what was quoted, and each item's button takes them to the page\nthat sells it, where they check it and order. Nothing is paid through\nthis API. The link works until expires_at, when the last of its quotes\nexpires. Anyone holding url can open the page, so give it only to the\nperson it is for.",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/steadysteel-org-openapi.yml#/components/schemas/Handoff",
  "additionalProperties": false,
  "properties": {
    "expires_at": {
      "format": "date-time",
      "title": "Expires At",
      "type": "string"
    },
    "id": {
      "title": "Id",
      "type": "string"
    },
    "items": {
      "items": {
        "$ref": "#/$defs/HandoffItem"
      },
      "title": "Items",
      "type": "array"
    },
    "object": {
      "const": "handoff",
      "default": "handoff",
      "title": "Object",
      "type": "string"
    },
    "url": {
      "title": "Url",
      "type": "string"
    }
  },
  "required": [
    "id",
    "url",
    "expires_at",
    "items"
  ],
  "type": "object",
  "$defs": {
    "HandoffItem": {
      "additionalProperties": false,
      "description": "One item on the page the link opens, in the order the quotes list\nthem. action says what its button does there.",
      "properties": {
        "action": {
          "title": "Action",
          "type": "string"
        },
        "description": {
          "title": "Description",
          "type": "string"
        },
        "index": {
          "title": "Index",
          "type": "integer"
        },
        "label": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Label"
        },
        "quote_id": {
          "title": "Quote Id",
          "type": "string"
        }
      },
      "required": [
        "quote_id",
        "index",
        "description",
        "action"
      ],
      "title": "HandoffItem",
      "type": "object"
    }
  }
}