{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/huggingbay-xyz/json-schema/huggingbay-xyz-job-callback-request-schema.json",
  "title": "JobCallbackRequest",
  "description": "HTTPS callback target and caller-held verification secret.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/huggingbay-xyz-job-callbacks-api-openapi.yml#/components/schemas/JobCallbackRequest",
  "properties": {
    "url": {
      "type": "string",
      "maxLength": 2048,
      "minLength": 1,
      "title": "Url",
      "description": "HTTPS endpoint that receives signed terminal job events. Completed events carry completed.result and failed events carry failed.error at the caller-provided URL; recipient processing and retention are controlled by the recipient and are not governed by Bay Run retention."
    },
    "secret": {
      "type": "string",
      "maxLength": 256,
      "minLength": 16,
      "title": "Secret",
      "description": "Caller-held secret used to verify X-Bay-Run-Signature."
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "url",
    "secret"
  ]
}