{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/conduyt-com/json-schema/conduyt-com-booking-document-mint-envelope-schema.json",
  "title": "BookingDocumentMintEnvelope",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/conduyt-com-public-api-openapi.yml#/components/schemas/BookingDocumentMintEnvelope",
  "type": "object",
  "required": [
    "data"
  ],
  "properties": {
    "data": {
      "$ref": "#/$defs/BookingDocumentMint"
    }
  },
  "$defs": {
    "BookingDocumentMint": {
      "type": "object",
      "required": [
        "uploadUrl",
        "pointer",
        "name",
        "size",
        "contentType",
        "kind",
        "expiresAt",
        "expiresIn"
      ],
      "properties": {
        "uploadUrl": {
          "type": "string",
          "description": "The presigned PUT (10 minutes)"
        },
        "pointer": {
          "type": "string",
          "description": "The private-storage pointer to bind with the documents operation"
        },
        "name": {
          "type": "string"
        },
        "size": {
          "type": "integer"
        },
        "contentType": {
          "type": "string"
        },
        "kind": {
          "type": "string",
          "enum": [
            "bank_statement",
            "funding_agreement"
          ]
        },
        "expiresAt": {
          "type": "string",
          "format": "date-time"
        },
        "expiresIn": {
          "type": "integer"
        }
      }
    }
  }
}