{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/briq-cloud/json-schema/briq-cloud-stack-fork-body-schema.json",
  "title": "StackForkBody",
  "x-generated": "2026-11-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/briq-cloud-v1-openapi.json#/components/schemas/StackForkBody",
  "type": "object",
  "properties": {
    "into": {
      "type": "string"
    },
    "expose": {
      "type": "string",
      "enum": [
        "public",
        "private"
      ],
      "description": "Reach the fork from outside briq: database ports get TLS endpoints, front doors a URL in this mode (\"private\": only whoever has it). Outputs then use them. Waits for the forks"
    },
    "sleep": {
      "type": "string",
      "pattern": "^(?:never|[1-9][0-9]{0,4}[mhd])$",
      "description": "When the briq goes to sleep: after this long without use (agent calls, visits to its stack's URLs). A string: \"30m\", \"3h\", \"7d\" or \"never\", never a number. A sleeping briq keeps its disk, costs nothing for compute, and the next use wakes it. \"never\" keeps it always on (Pro plan and above). Left out, the source's. A window longer than this key allows is refused"
    },
    "wait": {
      "type": "boolean",
      "default": true
    },
    "waitTimeoutMs": {
      "type": "integer",
      "maximum": 300000,
      "default": 120000
    }
  }
}