{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/unbrowse-ai/json-schema/unbrowse-ai-sharing-schema.json",
  "title": "Sharing",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/unbrowse-ai-openapi.json#/components/schemas/Sharing",
  "type": "object",
  "required": [
    "workspaceId",
    "shareLearned",
    "paid",
    "reason"
  ],
  "properties": {
    "workspaceId": {
      "type": "string"
    },
    "shareLearned": {
      "type": "boolean",
      "description": "Effective: whether a learned public read-only route is shared after its first verified run."
    },
    "explicit": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "What the workspace set; null when it never chose (the plan default applies)."
    },
    "paid": {
      "type": "boolean",
      "description": "The workspace has paid credits or a completed purchase."
    },
    "reason": {
      "type": "string"
    },
    "shared": {
      "type": "integer",
      "description": "Routes this workspace has shared so far."
    },
    "published": {
      "type": "string",
      "description": "What sharing publishes: the scrubbed route only, never run results or inputs."
    }
  }
}