{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ausca-com/json-schema/ausca-com-artifact-upload-request-schema.json",
  "title": "ArtifactUploadRequest",
  "x-generated": "2026-11-02",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ausca-com-openapi.json#/components/schemas/ArtifactUploadRequest",
  "additionalProperties": false,
  "properties": {
    "content_digest": {
      "$ref": "#/$defs/Digest"
    },
    "data_base64": {
      "description": "Standard-base64 encoded artifact bytes. The decoded artifact limit is derived from the active document and media offers and is currently 10 MiB.",
      "maxLength": 34952536,
      "minLength": 4,
      "pattern": "^[A-Za-z0-9+/]*={0,2}$",
      "type": "string"
    },
    "idempotency_key": {
      "description": "Stable retry identity. Reusing it with different bytes or metadata is a conflict.",
      "maxLength": 128,
      "minLength": 16,
      "type": "string"
    },
    "media_type": {
      "description": "IANA media type for the bytes, without transport content-encoding.",
      "maxLength": 200,
      "minLength": 1,
      "type": "string"
    }
  },
  "required": [
    "data_base64",
    "content_digest",
    "media_type",
    "idempotency_key"
  ],
  "type": "object",
  "$defs": {
    "Digest": {
      "pattern": "^sha256:[a-f0-9]{64}$",
      "type": "string"
    }
  }
}