{"openapi":"3.1.0","info":{"title":"TumbleTrove API","version":"1.0.0","description":"Package API for SideFX Houdini digital assets.\n\nTumbleTrove packages are distributable bundles of Houdini tools — HDAs, Python modules, shelf\nscripts, presets, and more — managed by the **HPM** (Houdini Package Manager) CLI and published\nthrough this API. The **TumbleTrove Desktop** app discovers and installs packages for end users.\n\n**End-to-end flow:** Create a package with HPM → Publish versions via CI/CD from a creator account →\nUsers install via the desktop app. Creator accounts are in-house: TumbleTrove publishes its own\npackages and does not take applications.\n\n---\n\n## Getting Started with HPM\n\n[HPM](https://github.com/3db-dk/hpm) is the command-line tool for creating, validating, and\npackaging Houdini packages. See the [HPM documentation](https://hpm.readthedocs.io/) for detailed\nguides.\n\n### Install HPM\n\nDownload the binary for your platform from the\n[latest release](https://github.com/3db-dk/hpm/releases/latest) and put it on your `PATH`; the\n[HPM documentation](https://hpm.readthedocs.io/) has the steps for Linux, macOS and Windows. Then\ncheck it runs:\n\n```bash\nhpm --version\n```\n\n### Create a Package\n\n```bash\nhpm init my-tool\ncd my-tool\n```\n\nThis generates a standard Houdini package structure:\n\n```\nmy-tool/\n├── hpm.toml          # Package manifest (metadata, dependencies, Houdini compat)\n├── package.json      # Houdini package config (env vars, paths, load conditions)\n├── README.md\n├── .gitignore\n├── otls/             # Houdini Digital Assets (.hda, .otl)\n├── python/           # Python modules (added to PYTHONPATH)\n├── scripts/          # Shelf tools, event handlers\n├── presets/          # Node parameter presets\n├── config/           # Pipeline configuration\n└── tests/            # Tests\n```\n\nYou can also use `hpm init --bare` for a minimal package (just `hpm.toml` and `README.md`).\n\n### The hpm.toml Manifest\n\nThe manifest describes your package. Here is a basic example:\n\n```toml\n[package]\nname = \"my-tool\"\nversion = \"0.1.0\"\ndescription = \"Custom scatter and placement tools for Houdini\"\nauthors = [\"Your Name <you@example.com>\"]\nlicense = \"MIT\"\nreadme = \"README.md\"\nkeywords = [\"houdini\", \"scatter\", \"placement\"]\n\n[houdini]\nmin_version = \"21.0\"\n```\n\n### The package.json (Houdini Package Config)\n\nThis is SideFX's native\n[package configuration format](https://www.sidefx.com/docs/houdini/ref/plugins.html). HPM generates\nit during `hpm init`. It tells Houdini how to load your package:\n\n```json\n{\n  \"hpath\": [\"$HPM_PACKAGE_ROOT/otls\"],\n  \"env\": [\n    {\n      \"PYTHONPATH\": {\n        \"method\": \"prepend\",\n        \"value\": \"$HPM_PACKAGE_ROOT/python\"\n      }\n    },\n    {\n      \"HOUDINI_SCRIPT_PATH\": {\n        \"method\": \"prepend\",\n        \"value\": \"$HPM_PACKAGE_ROOT/scripts\"\n      }\n    }\n  ],\n  \"enable\": \"houdini_version >= '21.0'\"\n}\n```\n\n`$HPM_PACKAGE_ROOT` is resolved by HPM at install time to the package's location on disk.\n\n### Validate and Test Locally\n\n```bash\n# Validate your manifest and package structure\nhpm check\n\n# Add a dependency from the registry\nhpm add utility-nodes\n\n# Install all dependencies locally\nhpm install\n```\n\n---\n\n## Package Manifest Reference\n\n### [package] Section\n\n| Field           | Type     | Required | Description                                 |\n| --------------- | -------- | -------- | ------------------------------------------- |\n| `name`          | string   | Yes      | Package name (kebab-case recommended)       |\n| `version`       | string   | Yes      | Semantic version: `X.Y.Z`                   |\n| `description`   | string   | No       | Brief description                           |\n| `authors`       | string[] | No       | Format: `\"Name <email>\"`                    |\n| `license`       | string   | No       | SPDX identifier (e.g., `MIT`, `Apache-2.0`) |\n| `readme`        | string   | No       | Path to README file                         |\n| `keywords`      | string[] | No       | Discovery keywords                          |\n| `categories`    | string[] | No       | Categorization labels                       |\n| `homepage`      | string   | No       | Website URL                                 |\n| `repository`    | string   | No       | Source repository URL                       |\n| `documentation` | string   | No       | Documentation URL                           |\n\n### [houdini] Section\n\n| Field         | Type   | Description                                        |\n| ------------- | ------ | -------------------------------------------------- |\n| `min_version` | string | Minimum supported Houdini version (e.g., `\"20.0\"`) |\n| `max_version` | string | Maximum supported Houdini version (e.g., `\"21.5\"`) |\n\n### [dependencies] Section\n\nHPM supports four dependency formats:\n\n```toml\n[dependencies]\n# Registry (simple)\nutility-nodes = \"1.0.0\"\n\n# Registry with options\nmaterial-library = { version = \"2.0.0\", registry = \"studio-internal\", optional = true }\n\n# Direct URL download\nstudio-tools = { url = \"https://pkg.example.com/studio-tools-1.0.0.zip\", version = \"1.0.0\" }\n\n# Local path (for development)\nlocal-tools = { path = \"../my-local-tools\" }\n```\n\n### [python_dependencies] Section\n\nPython packages installed via [UV](https://docs.astral.sh/uv/) into content-addressable virtual\nenvironments at `~/.hpm/venvs/`:\n\n```toml\n[python_dependencies]\nnumpy = \">=1.20.0\"\nrequests = { version = \">=2.25.0\", extras = [\"security\", \"socks\"] }\nmatplotlib = { version = \"^3.5.0\", optional = true }\n```\n\nPackages with identical Python dependency sets share a single venv, saving disk space.\n\n### [[registries]] Section\n\nConfigure package registries for dependency resolution:\n\n```toml\n[[registries]]\nname = \"default\"\nurl = \"https://api.tumbletrove.com/v1/registry\"\ntype = \"api\"\n\n[[registries]]\nname = \"studio-internal\"\nurl = \"https://github.com/studio/hpm-packages\"\ntype = \"git\"\n```\n\n---\n\n## Package Access and Licenses\n\nEvery package has an **access level**: `FREE` (usable by every signed-in account), `FREEMIUM` (free,\nwith paid features inside) or `PAID`. Paid access comes from a grant: a site-wide Indie or\nProfessional plan, which unlocks every package included in the plans, or a subscription to one\npackage's own offer (`GET /v1/packages/{creator}/{slug}/offers`, bought through\n`POST /v1/billing/checkout` with `package`). Either can be held personally or as a seat of an\norganization's.\n\n- `GET /v1/packages/{creator}/{slug}/access` says whether you may use a package and why (`basis`),\n  and `needsPaidAccess` when a grant would unlock it.\n- `GET /v1/user/library` lists the packages you can use; `?includeLocked=true` also lists the PAID\n  ones a grant would unlock, marked `locked`. Each entry's `paid` says what your license's paid\n  level covers.\n- `POST /v1/licenses/generate` mints a license token for a package you are entitled to. Its `access`\n  claim is `[\"free\"]`, or `[\"free\", \"paid\"]` when a grant covers the package; a FREEMIUM package\n  unlocks its paid features when the claim includes `\"paid\"`. A PAID package no grant covers is\n  refused with `403 PLAN_REQUIRED`. `POST /v1/licenses/refresh` re-decides the claim, so a lapsed\n  grant drops `\"paid\"`.\n\n---\n\n## Creator Accounts\n\nPublishing needs a creator account. Creator accounts are set up by the TumbleTrove team; there is no\napplication form. With one:\n\n1. **Create a package listing** in your\n   [creator dashboard](https://tumbletrove.com/dashboard/analytics):\n   - Set the package name, slug, short description, and detailed description\n   - Upload screenshots and thumbnails\n   - Choose the package's access level (free, free with paid features, or paid)\n2. **Generate an API token** for CI/CD publishing (see [Token Management](#token-management) below)\n\n---\n\n## CI/CD Publishing Guide\n\nAutomate package releases from your CI pipeline. The workflow is:\n\n1. **Create an API token** — in the TumbleTrove web UI or via the API\n2. **Pack your package** — use `hpm pack` to create a signed archive with checksum\n3. **Upload the archive** — to any HTTPS-accessible location (GitHub Releases, S3, MinIO, your own\n   server)\n4. **Register the version** — call the API with the archive URL and hash\n\n### Authentication\n\n| Method       | Use case        | Header                         |\n| ------------ | --------------- | ------------------------------ |\n| Supabase JWT | Web UI sessions | `Authorization: Bearer eyJ...` |\n| API Token    | CI/CD pipelines | `Authorization: Bearer tt_...` |\n\nAPI tokens are created via `POST /v1/creator/tokens` (requires a Supabase session). Tokens are\nscoped to package paths (`creator/slug`) or a wildcard (`*`) for all packages — `/v1/*` never\naccepts internal cuids. You can have up to 25 active tokens, each with an optional expiry of 1–365\ndays.\n\n### Building with hpm pack\n\nThe `hpm pack` command validates your package, creates a zip archive, computes its SHA-256 checksum,\nand optionally signs it with Ed25519. You generate the keypair locally\n(`openssl genpkey -algorithm ed25519 -out signing.pem`), register the public half on the website,\nand feed the private PEM to hpm:\n\n```bash\n# Basic pack\nhpm pack --output dist/\n\n# Pack with signing (recommended)\nhpm pack --key ./signing.pem --output dist/\n\n# Machine-readable output for CI\nhpm pack --key ./signing.pem --output dist/ --json\n```\n\nThe `--json` flag outputs:\n\n```json\n{\n  \"archive\": \"dist/my-tool-1.0.0.zip\",\n  \"sha256\": \"a1b2c3d4e5f6...\",\n  \"signature\": \"base64-encoded-ed25519-signature\",\n  \"key_id\": \"your-key-id\"\n}\n```\n\nIn CI, store the contents of `signing.pem` as a secret (Infisical, GitHub Actions secret, etc.) and\nwrite it to a file at build time. PEM is a plain-text format, so it drops into any secret store\nwithout wrapping.\n\n### Uploading Archives\n\nThe archive must be accessible at a public HTTPS URL. You can host it anywhere:\n\n- **GitHub Releases** — attach the zip to a tagged release\n- **S3 / R2 / MinIO** — upload to a public bucket\n- **Your own server** — any HTTPS endpoint that serves the file\n\n### Registering a Version\n\n`/v1/*` URLs identify a package by its `creatorSlug/packageSlug` path — internal cuids never appear\non the wire.\n\n```bash\nTT_TOKEN=\"tt_your_token_here\"\nCREATOR_SLUG=\"my-username\"\nPACKAGE_SLUG=\"my-tool\"\n\ncurl -X POST \"https://api.tumbletrove.com/v1/creator/packages/${CREATOR_SLUG}/${PACKAGE_SLUG}/versions\" \\\n  -H \"Authorization: Bearer ${TT_TOKEN}\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"versionNumber\": \"1.2.0\",\n    \"archiveUrl\": \"https://your-cdn.com/my-tool-1.2.0.zip\",\n    \"fileSha256\": \"a1b2c3d4e5f6...\",\n    \"fileSize\": 1048576,\n    \"changelog\": \"- Added scatter tool\\n- Fixed normals bug\",\n    \"houdiniMinVersion\": \"19.5\",\n    \"houdiniMaxVersion\": \"20.5\"\n  }'\n```\n\n### Verifying in the Registry\n\nOnce registered, your package version is available in the public registry:\n\n```bash\n# Check your package in the registry\ncurl -s \"https://api.tumbletrove.com/v1/registry/packages/${CREATOR_SLUG}/${PACKAGE_SLUG}\" | jq\n\n# List your versions via the creator API\ncurl -s \"https://api.tumbletrove.com/v1/creator/packages/${CREATOR_SLUG}/${PACKAGE_SLUG}/versions\" \\\n  -H \"Authorization: Bearer ${TT_TOKEN}\" | jq '.versions[0]'\n```\n\nUsers can now find and install your package through the TumbleTrove Desktop app.\n\n---\n\n## Woodpecker CI Example\n\nTumbleTrove is a registry only — it stores URLs to archives you host elsewhere (GitHub Releases,\nyour own S3, SideFX hpack, etc.). This example packs with signing, publishes the archive as a GitHub\nRelease asset, and then registers the version with TumbleTrove:\n\n```yaml\nwhen:\n  - event: tag\n    ref: 'refs/tags/v*'\n\nsteps:\n  # Pack the package with HPM\n  - name: pack\n    image: debian:bookworm-slim\n    environment:\n      HPM_SIGNING_KEY:\n        from_secret: hpm_signing_key\n    commands:\n      - apt-get update && apt-get install -y --no-install-recommends curl jq ca-certificates\n      # Release files are named after their tag, so resolve the latest tag first.\n      - HPM_TAG=$$(curl -fsSLI -o /dev/null -w '%{url_effective}'\n        https://github.com/3db-dk/hpm/releases/latest | sed 's|.*/||')\n      - curl -fsSL\n        \"https://github.com/3db-dk/hpm/releases/download/$${HPM_TAG}/hpm-$${HPM_TAG}-linux-x86_64\"\n        -o /usr/local/bin/hpm\n      - chmod +x /usr/local/bin/hpm\n      - printf '%s' \"$${HPM_SIGNING_KEY}\" > /tmp/signing.pem\n      - hpm pack --key /tmp/signing.pem --output . --json 2>&1 | grep '^{' > pack-result.json\n      - cat pack-result.json\n      - rm -f /tmp/signing.pem\n\n  # Upload the archive to a GitHub Release on the same tag\n  - name: upload\n    image: debian:bookworm-slim\n    depends_on: [pack]\n    environment:\n      GITHUB_TOKEN:\n        from_secret: github_token\n    commands:\n      - apt-get update && apt-get install -y --no-install-recommends curl jq ca-certificates\n      - FILENAME=$$(jq -r '.archive_name' pack-result.json)\n      - OWNER_REPO=$${CI_REPO}\n      - TAG=$${CI_COMMIT_TAG}\n      # Create or fetch the release for this tag\n      - |\n        RELEASE_ID=$$(curl -fsS \\\n          -H \"Authorization: Bearer $${GITHUB_TOKEN}\" \\\n          \"https://api.github.com/repos/$${OWNER_REPO}/releases/tags/$${TAG}\" \\\n          | jq -r '.id // empty')\n      - |\n        if [ -z \"$${RELEASE_ID}\" ]; then\n          RELEASE_ID=$$(curl -fsS -X POST \\\n            -H \"Authorization: Bearer $${GITHUB_TOKEN}\" \\\n            -H \"Content-Type: application/json\" \\\n            -d \"{\\\"tag_name\\\":\\\"$${TAG}\\\"}\" \\\n            \"https://api.github.com/repos/$${OWNER_REPO}/releases\" | jq -r '.id')\n        fi\n      # Upload the archive as a release asset\n      - |\n        curl -fsS -X POST \\\n          -H \"Authorization: Bearer $${GITHUB_TOKEN}\" \\\n          -H \"Content-Type: application/octet-stream\" \\\n          --data-binary \"@$${FILENAME}\" \\\n          \"https://uploads.github.com/repos/$${OWNER_REPO}/releases/$${RELEASE_ID}/assets?name=$${FILENAME}\"\n\n  # Register the version with TumbleTrove\n  - name: register\n    image: debian:bookworm-slim\n    depends_on: [upload]\n    environment:\n      TUMBLETROVE_API_TOKEN:\n        from_secret: tumbletrove_api_token\n      TUMBLETROVE_CREATOR_SLUG:\n        from_secret: tumbletrove_creator_slug\n      TUMBLETROVE_PACKAGE_SLUG:\n        from_secret: tumbletrove_package_slug\n      TUMBLETROVE_SIGNING_KID:\n        from_secret: tumbletrove_signing_kid\n    commands:\n      - apt-get update && apt-get install -y --no-install-recommends curl jq ca-certificates\n      - VERSION=$${CI_COMMIT_TAG#v}\n      - FILENAME=$$(jq -r '.archive_name' pack-result.json)\n      - ARCHIVE_URL=\"https://github.com/$${CI_REPO}/releases/download/$${CI_COMMIT_TAG}/$${FILENAME}\"\n      - SHA256=$$(jq -r '.sha256' pack-result.json)\n      - SIGNATURE=$$(jq -r '.signature' pack-result.json)\n      - |\n        curl -fsS -X POST \\\n          \"https://api.tumbletrove.com/v1/creator/packages/$${TUMBLETROVE_CREATOR_SLUG}/$${TUMBLETROVE_PACKAGE_SLUG}/versions\" \\\n          -H \"Authorization: Bearer $${TUMBLETROVE_API_TOKEN}\" \\\n          -H \"Content-Type: application/json\" \\\n          -d \"{\n            \\\"versionNumber\\\": \\\"$${VERSION}\\\",\n            \\\"houdiniMinVersion\\\": \\\"21.0\\\",\n            \\\"builds\\\": [{\n              \\\"platform\\\": \\\"universal\\\",\n              \\\"archiveUrl\\\": \\\"$${ARCHIVE_URL}\\\",\n              \\\"fileSha256\\\": \\\"$${SHA256}\\\",\n              \\\"fileSignature\\\": \\\"$${SIGNATURE}\\\",\n              \\\"signingKeyId\\\": \\\"$${TUMBLETROVE_SIGNING_KID}\\\"\n            }]\n          }\"\n```\n\n**Required secrets:** `hpm_signing_key` (Ed25519 private PEM — the contents of `signing.pem`),\n`github_token` (with `contents:write`), `tumbletrove_api_token`, `tumbletrove_creator_slug`,\n`tumbletrove_package_slug`, `tumbletrove_signing_kid`.\n\nTo host archives somewhere other than GitHub Releases — your own S3/B2, SideFX hpack, etc. — replace\nthe `upload` step with whatever the target requires, and point `archiveUrl` at the resulting public\nHTTPS URL.\n\n---\n\n## GitHub Actions Example\n\n```yaml\nname: Publish to TumbleTrove\non:\n  push:\n    tags: ['v*']\n\njobs:\n  publish:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v4\n\n      - name: Install HPM\n        run: |\n          # Release files are named after their tag, so resolve the latest tag first.\n          HPM_TAG=$(curl -fsSLI -o /dev/null -w '%{url_effective}' https://github.com/3db-dk/hpm/releases/latest | sed 's|.*/||')\n          curl -fsSL \"https://github.com/3db-dk/hpm/releases/download/${HPM_TAG}/hpm-${HPM_TAG}-linux-x86_64\" -o /usr/local/bin/hpm\n          chmod +x /usr/local/bin/hpm\n\n      - name: Pack\n        env:\n          HPM_SIGNING_KEY: ${{ secrets.HPM_SIGNING_KEY }}\n        run: |\n          printf '%s' \"$HPM_SIGNING_KEY\" > /tmp/signing.pem\n          hpm pack --key /tmp/signing.pem --output dist/ --json > pack-result.json\n          rm -f /tmp/signing.pem\n          echo \"SHA256=$(jq -r '.sha256' pack-result.json)\" >> $GITHUB_ENV\n          echo \"SIGNATURE=$(jq -r '.signature' pack-result.json)\" >> $GITHUB_ENV\n          echo \"VERSION=${GITHUB_REF_NAME#v}\" >> $GITHUB_ENV\n\n      - name: Upload to GitHub Release\n        uses: softprops/action-gh-release@v2\n        with:\n          files: dist/*.zip\n\n      - name: Register version on TumbleTrove\n        run: |\n          curl -f -X POST \"https://api.tumbletrove.com/v1/creator/packages/${{ vars.TT_CREATOR_SLUG }}/${{ vars.TT_PACKAGE_SLUG }}/versions\" \\\n            -H \"Authorization: Bearer ${{ secrets.TT_TOKEN }}\" \\\n            -H \"Content-Type: application/json\" \\\n            -d \"{\n              \\\"versionNumber\\\": \\\"${VERSION}\\\",\n              \\\"archiveUrl\\\": \\\"https://github.com/${{ github.repository }}/releases/download/${GITHUB_REF_NAME}/my-tool-${VERSION}.zip\\\",\n              \\\"fileSha256\\\": \\\"${SHA256}\\\",\n              \\\"fileSignature\\\": \\\"${SIGNATURE}\\\",\n              \\\"signingKeyId\\\": \\\"${{ vars.TT_SIGNING_KEY_ID }}\\\",\n              \\\"changelog\\\": \\\"See release notes\\\"\n            }\"\n```\n\n**Required secrets:** `HPM_SIGNING_KEY` (Ed25519 private PEM — the contents of `signing.pem`),\n`TT_TOKEN` (API token). **Required variables:** `TT_CREATOR_SLUG`, `TT_PACKAGE_SLUG`,\n`TT_SIGNING_KEY_ID`.\n\n---\n\n## Version Fields\n\n| Field               | Type   | Required | Description                            |\n| ------------------- | ------ | -------- | -------------------------------------- |\n| `versionNumber`     | string | Yes      | Semver format: `X.Y.Z`                 |\n| `archiveUrl`        | string | Yes      | HTTPS URL to the archive               |\n| `fileSha256`        | string | Yes      | SHA-256 hex digest of the archive      |\n| `fileSize`          | number | No       | Size in bytes                          |\n| `changelog`         | string | No       | Release notes (max 10,000 chars)       |\n| `houdiniMinVersion` | string | No       | Minimum Houdini version (e.g., `19.5`) |\n| `houdiniMaxVersion` | string | No       | Maximum Houdini version (e.g., `20.5`) |\n| `dependencies`      | array  | No       | Other packages this version requires   |\n| `fileSignature`     | string | No       | Ed25519 JWS compact signature          |\n| `signingKeyId`      | string | No       | Key ID of the signing key              |\n\n`dependencies` is the version's hpm.toml `[dependencies]`: a list of\n`{ \"name\": \"creator/slug\", \"req\": \">=0.47,<0.48\" }`, at most 50, each package once, never the\npackage itself. `req` is a Cargo-style semver requirement: comma-separated comparators, each an\noptional `=`, `>`, `>=`, `<`, `<=`, `~` or `^` and a version of one to three segments (`*`/`x` as a\nwildcard that ends the version, `-prerelease` only on a full version), or `*`. As in an hpm\nmanifest, a bare full version (`\"0.47.0\"`) means exactly that version. The registry serves the list\nas each entry's `deps`. Clients use it to choose unpinned versions; a version a project pins is\ninstalled as pinned. It is accepted on create and on `PATCH .../versions/{versionId}`, where it\nreplaces the list (`[]` clears it), including on a published version.\n\n## Editing Published Packages — Draft Buffer\n\nEdits to an already-PUBLISHED package don't go live immediately. They stage into a per-package draft\nbuffer (metadata changes and media adds / deletes / reorders / thumbnail swap) and only become\nvisible to the public listing when you call the publish endpoint.\n\n| Action          | Method | Endpoint                                                          | Behavior on a PUBLISHED package            |\n| --------------- | ------ | ----------------------------------------------------------------- | ------------------------------------------ |\n| Edit metadata   | PATCH  | `/v1/creator/packages/{creator}/{slug}`                           | Stages into draft; response `staged: true` |\n| Add media       | POST   | `/v1/creator/packages/{creator}/{slug}/media`                     | Created with `state: 'DRAFT_ADDED'`        |\n| Delete media    | DELETE | `/v1/creator/packages/{creator}/{slug}/media/{mediaId}`           | Flips LIVE → DRAFT_DELETED                 |\n| Reorder media   | POST   | `/v1/creator/packages/{creator}/{slug}/media/reorder`             | Writes `draftSortOrder`                    |\n| Set thumbnail   | POST   | `/v1/creator/packages/{creator}/{slug}/media/{mediaId}/thumbnail` | Stages on the draft                        |\n| Publish changes | POST   | `/v1/creator/packages/{creator}/{slug}/publish`                   | Promotes the buffer to live                |\n\nFor DRAFT packages, every endpoint above writes directly to the live record as before — the draft\nbuffer only exists once the package has been published at least once.\n\n## Version Management\n\n`{creator}/{slug}` is the package's `creatorSlug/packageSlug` path; `{versionId}` is the opaque\nversion identifier returned at creation time.\n\n| Action        | Method | Endpoint                                                     | Notes                                    |\n| ------------- | ------ | ------------------------------------------------------------ | ---------------------------------------- |\n| Create        | POST   | `/v1/creator/packages/{creator}/{slug}/versions`             | Version must be greater than the latest  |\n| List          | GET    | `/v1/creator/packages/{creator}/{slug}/versions`             | Returns all versions (active and yanked) |\n| Update / Yank | PATCH  | `/v1/creator/packages/{creator}/{slug}/versions/{versionId}` | Set `isActive: false` to yank            |\n| Delete        | DELETE | `/v1/creator/packages/{creator}/{slug}/versions/{versionId}` | Within 72h only for published packages   |\n\n**Error codes:** `409` if the version number already exists or was previously deleted (tombstoned).\n`422` if the archive URL is not HTTPS, the version is not greater than the latest, or the signing\nkey is invalid.\n\n## Archive Signing (Optional)\n\nFor additional integrity verification, sign your archives with Ed25519:\n\n1. Generate an Ed25519 keypair **locally** with standard tooling. The private key stays on your\n   machine — TumbleTrove never sees it:\n   ```\n   openssl genpkey -algorithm ed25519 -out signing.pem\n   openssl pkey -in signing.pem -pubout -out signing.pub.pem\n   ```\n2. Register the **public** PEM via `POST /v1/signing/keys` with body\n   `{ \"publicKeyPem\": \"-----BEGIN PUBLIC KEY-----\\n...\\n-----END PUBLIC KEY-----\\n\" }`. The server\n   derives the `kid` deterministically from the key bytes and returns it. Any previously active key\n   is deactivated — rotation is just another POST. Pass `organization` (slug) in the body to\n   register under an org you own or administer (OWNER/ADMIN).\n3. Use `hpm pack --key <path-to-private-pem>` to create a signed archive (or sign manually).\n4. Include `fileSignature` and `signingKeyId` when creating the version.\n\nThe `hpm pack --json` output includes the `signature` and `key_id` fields, ready to pass to the\nversion registration API. Signatures are stored alongside the version and can be verified by\nconsumers.\n\nTo revoke a key (soft delete; row is kept for audit), call `POST /v1/signing/keys/{kid}/revoke`. To\nlist only active keys, `GET /v1/signing/keys`; append `?includeRevoked=true` for the full history.\n\nWhen authenticating with an `ApiToken` scoped to an organization creator (e.g. `TUMBLEHEAD_CI_TOKEN`\nin CI), the token already acts as that creator — the `organization` field is unnecessary and can be\nomitted from the request.\n\n## Token Management\n\n| Action | Method | Endpoint                       |\n| ------ | ------ | ------------------------------ |\n| Create | POST   | `/v1/creator/tokens`           |\n| List   | GET    | `/v1/creator/tokens`           |\n| Revoke | DELETE | `/v1/creator/tokens/{tokenId}` |\n\nTokens are shown in plaintext **only once** at creation time. Store them securely (e.g., as CI\nsecrets). The token prefix (first 12 characters) is shown in the list endpoint for identification.\n\n## HPM CLI Reference\n\n| Command                 | Description                                      |\n| ----------------------- | ------------------------------------------------ |\n| `hpm init [name]`       | Create a new package (use `--bare` for minimal)  |\n| `hpm check`             | Validate package configuration                   |\n| `hpm add <package>`     | Add a dependency                                 |\n| `hpm remove <package>`  | Remove a dependency                              |\n| `hpm install`           | Install all dependencies                         |\n| `hpm update [packages]` | Update to latest compatible versions             |\n| `hpm list`              | Show package information                         |\n| `hpm search <query>`    | Search the registry                              |\n| `hpm pack`              | Create a distributable archive (`--json` for CI) |\n| `hpm audit`             | Security audit on dependencies                   |\n| `hpm clean`             | Remove orphaned packages and venvs               |\n| `hpm registry`          | Manage registries (add/list/remove/update)       |\n\nGlobal flags: `-v` (verbose), `-q` (quiet), `--output json` (structured output), `-C <dir>` (run in\ndirectory).\n\nFull documentation: [hpm.readthedocs.io](https://hpm.readthedocs.io/) | Source:\n[github.com/3db-dk/hpm](https://github.com/3db-dk/hpm)\n"},"servers":[{"url":"https://api.tumbletrove.com","description":"Production"},{"url":"http://localhost:3012","description":"Local development"}],"tags":[{"name":"API Tokens","description":"Create and manage scoped API tokens for CI/CD publishing. Tokens use the `tt_` prefix and can be scoped to specific packages or all packages (`*`). Max 25 active tokens per creator."},{"name":"Creator","description":"Manage packages, versions, and media as a creator. Use these endpoints to create package listings, publish new versions (with `hpm pack` output), upload screenshots, and set each package access level. Version endpoints accept both Supabase session tokens and scoped API tokens for authentication."},{"name":"Registry","description":"Public package registry endpoints (no authentication required). Use these to discover packages, list available versions, and fetch package metadata. The TumbleTrove Desktop app and HPM CLI query these endpoints for dependency resolution and package installation."},{"name":"Auth","description":"Authentication endpoints for obtaining and refreshing Supabase session tokens."},{"name":"Signing","description":"Manage Ed25519 signing keys for archive integrity verification. Register your public key here, then use `hpm pack --key <path>` to sign archives. The signature and key ID from `hpm pack --json` output are passed to the version creation endpoint."},{"name":"Packages","description":"Browse the TumbleTrove catalog. Search packages, view details, access levels, and popularity, and check whether you can use a package. These are the same endpoints used by the TumbleTrove Desktop app and website."},{"name":"Storage","description":"Creator-scoped publishing destinations. Type S3 entries are S3-compatible buckets the creator controls; type SIDEFX entries link a SideFX account so packages can also be published to sidefx.com. Pass `?organization=<slug>` to operate on an org creator you own or administer; otherwise operations target your personal creator entity."},{"name":"Plans","description":"The Indie and Professional plans: the public catalog with current prices, the caller's own access level, and the redirects into Stripe Checkout (to buy a plan) and the Stripe billing portal (to change or cancel one). A plan is granted when Stripe reports the subscription, never by a request here."},{"name":"Organizations","description":"Manage organization settings, members, teams, projects, and who holds the organization's plan seats."}],"security":[{"Bearer":[]}],"components":{"securitySchemes":{"Bearer":{"type":"http","scheme":"bearer","bearerFormat":"JWT or API Token","description":"Supabase access token (from /v1/auth/token or /v1/auth/refresh) or API token (tt_... prefix, from /v1/creator/tokens)"}},"schemas":{"TeamProjectValidationError":{"anyOf":[{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["VALIDATION_ERROR"]},"message":{"type":"string"},"details":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}}}},"required":["code","message"]}},"required":["error"]},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["PACKAGE_NOT_PUBLISHABLE"]},"message":{"type":"string"},"details":{"type":"object","properties":{"blockers":{"type":"array","items":{"$ref":"#/components/schemas/PackageBlocker"}}},"required":["blockers"]}},"required":["code","message","details"]}},"required":["error"]}]},"PackageBlocker":{"type":"object","properties":{"path":{"type":"string","description":"Echo of the supplied identifier (typically `creator/slug`)."},"slug":{"type":["string","null"],"description":"Package slug for display. Null only when `path` could not be parsed as `creator/slug`."},"reason":{"type":"string","enum":["NOT_FOUND","NOT_PUBLISHED","ARCHIVED","PRIVATE_OUTSIDE_ORG","REQUIRES_PAID_PLAN"],"description":"Why this package blocks team-project publish."}},"required":["path","slug","reason"]}},"parameters":{}},"paths":{"/.well-known/jwks.json":{"get":{"tags":["Well-Known"],"summary":"Platform JWKS","description":"Platform public JSON Web Key Set for verifying license JWTs offline. Returns only the public half of the platform signing key.","responses":{"200":{"description":"Platform JWKS","content":{"application/json":{"schema":{"type":"object","properties":{"keys":{"type":"array","items":{"type":"object","properties":{"kty":{"type":"string","enum":["OKP"]},"crv":{"type":"string","enum":["Ed25519"]},"x":{"type":"string"},"kid":{"type":"string"},"alg":{"type":"string","enum":["EdDSA"]},"use":{"type":"string","enum":["sig"]}},"required":["kty","crv","x","kid","alg","use"]}}},"required":["keys"]}}}}}}},"/v1/auth/login/initiate":{"post":{"tags":["Auth"],"summary":"Initiate desktop OAuth login","description":"Start a PKCE OAuth flow for the desktop app. Returns a URL to open in the browser for\nprovider selection.\n\nNative clients SHOULD send `codeChallenge` (base64url of the SHA-256 of a 43-128 character\nrandom verifier) and `codeChallengeMethod: \"S256\"`, then present the matching `codeVerifier`\nat `POST /v1/auth/token`. The authorization code comes back over a custom URI scheme any\nlocally installed application can claim, so this binding is what proves the redeemer is the\napp that started the flow (RFC 8252 section 8.1).\n\nBoth fields are optional for now so desktop builds already in the wild keep working;\nenforcement is per authorization, not global. Once those builds have aged out the challenge\nbecomes mandatory here.\n\n`redirectUri` is `tumbletrove://callback` (TumbleTrove Desktop) or\n`http://127.0.0.1:<port>/callback` with a port of 1024 or above (a loopback redirect, RFC 8252\nsection 7.3, for the license agent a Houdini package starts without Desktop). A loopback\nredirect requires `codeChallenge`; the browser callback page then sends the code to that port\ninstead of firing the deep link.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"redirectUri":{"type":"string","minLength":1},"codeChallenge":{"type":"string","pattern":"^[A-Za-z0-9\\-_]{43}$"},"codeChallengeMethod":{"type":"string","enum":["S256"]}},"required":["redirectUri"]}}}},"responses":{"200":{"description":"Auth URL and state token","content":{"application/json":{"schema":{"type":"object","properties":{"authUrl":{"type":"string"},"state":{"type":"string"}},"required":["authUrl","state"]}}}},"422":{"description":"Validation error"},"429":{"description":"Too many requests"},"500":{"description":"Internal server error"}}}},"/v1/auth/login/authorize":{"get":{"tags":["Auth"],"summary":"Redirect to OAuth provider","description":"Look up the pending PKCE auth by state and redirect the browser to the Supabase OAuth authorize URL.","parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"state","in":"query"},{"schema":{"type":"string","enum":["google","github"]},"required":true,"name":"provider","in":"query"}],"responses":{"302":{"description":"Redirect to Supabase OAuth authorize URL"},"400":{"description":"Bad request"}}}},"/v1/auth/login/status":{"get":{"tags":["Auth"],"summary":"Check desktop login status","description":"Where a desktop OAuth flow stands: `pending` within its window, `completed` once it handed out a session, `expired` when it aged out or the state is unknown. The bridge page polls this after firing the deep link.","parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"state","in":"query"}],"responses":{"200":{"description":"Login status","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["pending","completed","expired"]}},"required":["status"]}}}},"422":{"description":"Validation error"}}}},"/v1/auth/token":{"post":{"tags":["Auth"],"summary":"Exchange OAuth code for session","description":"Exchange an OAuth authorization code for a Supabase session via the server-side PKCE flow\nstarted at `/login/initiate`. `state` is required; there is no stateless exchange.\n\nWhen the matching `/login/initiate` recorded a `codeChallenge`, `codeVerifier` is required\nand must hash to it (S256). Authorizations that recorded no challenge — desktop builds from\nbefore the client PKCE rollout — are exchanged as before.\n\n`code_verifier` is accepted as a deprecated alias for `codeVerifier` (desktop 0.50.1 sent\nthe snake_case name). `codeVerifier` wins when both are present. New clients must send\n`codeVerifier`; the alias is removed once 0.50.1 has aged out.\n\n**Error codes (401, `error.code`):**\n- `INVALID_STATE` — state token was never minted, or has aged out of Redis retention.\n- `STATE_EXPIRED` — state token exists but is past the logical validity window.\n- `PKCE_REQUIRED` — the authorization recorded a code challenge and no `codeVerifier` was\n  presented.\n- `PKCE_VERIFICATION_FAILED` — `codeVerifier` does not hash to the recorded challenge. The\n  caller is not the client that started this flow.\n- `EMAIL_UNVERIFIED` — Supabase rejected with `email_not_confirmed` /\n  `provider_email_needs_verification`.\n- `ACCOUNT_LINK_CONFLICT` — Supabase rejected with an identity collision\n  (`identity_already_exists` / `user_already_exists` / `email_exists`), or the exchange\n  succeeded but the email already belongs to another profile.\n- `AUTH_FAILED` — any other Supabase rejection; `error.message` carries the GoTrue text.\n\n**Error codes (500, `error.code`):**\n- `PROFILE_INIT_FAILED` — the session was minted but the Profile row could not be\n  written, so the returned tokens would not authenticate. Safe to retry.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","minLength":1},"state":{"type":"string","minLength":1},"codeVerifier":{"type":"string","pattern":"^[A-Za-z0-9\\-._~]{43,128}$"},"code_verifier":{"type":"string","pattern":"^[A-Za-z0-9\\-._~]{43,128}$"}},"required":["code","state"]}}}},"responses":{"200":{"description":"Session tokens","content":{"application/json":{"schema":{"type":"object","properties":{"access_token":{"type":"string"},"refresh_token":{"type":"string"},"expires_in":{"type":"number"},"token_type":{"type":"string"},"user":{"type":"object","properties":{"id":{"type":"string"},"email":{"type":"string"},"username":{"type":["string","null"]},"avatarUrl":{"type":["string","null"]}},"required":["id","username","avatarUrl"]}},"required":["access_token","refresh_token","expires_in","token_type","user"]}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation error"},"429":{"description":"Too many requests"},"500":{"description":"Internal server error"}}}},"/v1/auth/refresh":{"post":{"tags":["Auth"],"summary":"Refresh access token","description":"Refresh an expired access token using a refresh token.\n\nClients SHOULD also send `access_token` — the token being replaced, expired or not. The\nserver reads its `sub` (without verifying the signature; the token is already expired) and\ncompares it with the `sub` of the refreshed access token. A mismatch is refused with\n`401 IDENTITY_MISMATCH`, logged, and recorded in the audit log — the refreshed session is\nnever returned. This is defense in depth against a refresh that returns another account's\nsession (which happened once, on the server side, on 2026-09-03). A malformed `access_token`\nis a `422`. Omitting it keeps the previous behaviour.\n\nA `401 REFRESH_FAILED` means the auth server refused the refresh token: the session is over.\nWhen the auth server could not give a verdict (unreachable, failing, or rate-limiting us) the\nanswer is `503 AUTH_UNAVAILABLE`, and the client should keep its session and retry later.\n\nRate-limited per client IP and account (the `sub` of `access_token`), under a higher ceiling\nper client IP.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"refresh_token":{"type":"string","minLength":1},"access_token":{"type":"string","minLength":1,"description":"The access token being replaced (may be expired). If given, the refreshed session must belong to the same account or the request fails with 401 IDENTITY_MISMATCH."}},"required":["refresh_token"]}}}},"responses":{"200":{"description":"Refreshed session tokens","content":{"application/json":{"schema":{"type":"object","properties":{"access_token":{"type":"string"},"refresh_token":{"type":"string"},"expires_in":{"type":"number"},"token_type":{"type":"string"}},"required":["access_token","refresh_token","expires_in","token_type"]}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation error"},"429":{"description":"Too many requests"},"503":{"description":"The auth server gave no verdict; keep the session and retry"}}}},"/v1/packages/{creator}/{slug}/posts":{"get":{"tags":["Packages"],"summary":"A package's What's new feed","description":"Published posts, newest first. A RELEASE post of a yanked version is still listed.","parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"creator","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"slug","in":"path"},{"schema":{"type":"string","enum":["RELEASE","ARTICLE"]},"required":false,"name":"kind","in":"query"}],"responses":{"200":{"description":"Posts","content":{"application/json":{"schema":{"type":"object","properties":{"posts":{"type":"array","items":{"type":"object","properties":{"slug":{"type":"string"},"kind":{"type":"string","enum":["RELEASE","ARTICLE"]},"title":{"type":"string"},"summary":{"type":["string","null"]},"version":{"type":["string","null"]},"format":{"type":"string","enum":["rich","page"]},"publishedAt":{"type":"string","format":"date-time"},"url":{"type":"string"}},"required":["slug","kind","title","summary","version","format","publishedAt","url"]}}},"required":["posts"]}}}},"404":{"description":"Not found"},"422":{"description":"Validation error"}}}},"/v1/packages/{creator}/{slug}/posts/{postSlug}":{"get":{"tags":["Packages"],"summary":"One post","description":"A published post with its body: a rich document (with its HTML projection) or the URL of a hosted page. A hosted page is creator HTML — frame it sandboxed, never same-origin.","parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"creator","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"slug","in":"path"},{"schema":{"type":"string"},"required":true,"name":"postSlug","in":"path"}],"responses":{"200":{"description":"The post","content":{"application/json":{"schema":{"type":"object","properties":{"post":{"type":"object","properties":{"slug":{"type":"string"},"kind":{"type":"string","enum":["RELEASE","ARTICLE"]},"title":{"type":"string"},"summary":{"type":["string","null"]},"version":{"type":["string","null"]},"format":{"type":"string","enum":["rich","page"]},"publishedAt":{"type":"string","format":"date-time"},"url":{"type":"string"},"body":{"oneOf":[{"type":"object","properties":{"format":{"type":"string","enum":["rich"]},"doc":{},"html":{"type":"string"}},"required":["format","html"]},{"type":"object","properties":{"format":{"type":"string","enum":["page"]},"url":{"type":"string"}},"required":["format","url"]}]}},"required":["slug","kind","title","summary","version","format","publishedAt","url","body"]}},"required":["post"]}}}},"404":{"description":"Not found"},"422":{"description":"Validation error"}}}},"/v1/packages/search":{"get":{"tags":["Packages"],"summary":"Search packages","parameters":[{"schema":{"type":"integer","minimum":1,"default":1},"required":false,"name":"page","in":"query"},{"schema":{"type":"integer","minimum":1,"maximum":100,"default":10},"required":false,"name":"limit","in":"query"},{"schema":{"type":["integer","null"],"minimum":0},"required":false,"name":"offset","in":"query"},{"schema":{"type":"string"},"required":false,"name":"q","in":"query"},{"schema":{"type":"string","enum":["FREE","FREEMIUM","PAID"]},"required":false,"name":"access","in":"query"},{"schema":{"type":"string","enum":["relevance","newest","oldest","popular","title"]},"required":false,"name":"sort","in":"query"}],"responses":{"200":{"description":"Paginated search results","content":{"application/json":{"schema":{"type":"object","properties":{"packages":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"title":{"type":"string"},"tagline":{"type":["string","null"]},"access":{"type":"string","enum":["FREE","FREEMIUM","PAID"]},"viewCount":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"},"creator":{"type":"object","properties":{"name":{"type":"string"},"username":{"type":["string","null"]},"avatarUrl":{"type":["string","null"]}},"required":["name","username","avatarUrl"]},"status":{"type":"string","enum":["DRAFT","PENDING_REVIEW","APPROVED","PUBLISHED","REJECTED","ARCHIVED"]}},"required":["path","title","tagline","access","viewCount","createdAt","creator","status"]}},"total":{"type":"integer"},"page":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"}},"required":["packages","total","page","limit","totalPages"]}}}},"422":{"description":"Validation error"}}}},"/v1/packages/popular":{"get":{"tags":["Packages"],"summary":"Popular packages","parameters":[{"schema":{"type":"integer","minimum":1,"maximum":100},"required":false,"name":"limit","in":"query"}],"responses":{"200":{"description":"Popular packages","content":{"application/json":{"schema":{"type":"object","properties":{"packages":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"title":{"type":"string"},"tagline":{"type":["string","null"]},"access":{"type":"string","enum":["FREE","FREEMIUM","PAID"]},"viewCount":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"},"creator":{"type":"object","properties":{"name":{"type":"string"},"username":{"type":["string","null"]},"avatarUrl":{"type":["string","null"]}},"required":["name","username","avatarUrl"]}},"required":["path","title","tagline","access","viewCount","createdAt","creator"]}}},"required":["packages"]}}}},"422":{"description":"Validation error"}}}},"/v1/packages/defaults":{"get":{"tags":["Packages"],"summary":"Platform default packages","description":"Packages granted to every user and organization implicitly. The desktop injects these into every project's install/launch list, so the response is ordered deterministically — hpm applies packages in list order. Requires no authentication.","responses":{"200":{"description":"Platform default packages, in apply order","content":{"application/json":{"schema":{"type":"object","properties":{"packages":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"title":{"type":"string"},"tagline":{"type":["string","null"]},"thumbnailUrl":{"type":["string","null"]}},"required":["path","title","tagline","thumbnailUrl"]}}},"required":["packages"]}}}}}}},"/v1/packages/{creator}/{slug}/details":{"get":{"tags":["Packages"],"summary":"Package details","description":"Full package details: access level, media, current version, creator info.","parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"creator","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"slug","in":"path"}],"responses":{"200":{"description":"Full package details","content":{"application/json":{"schema":{"type":"object","properties":{"path":{"type":"string"},"title":{"type":"string"},"tagline":{"type":["string","null"]},"shortDescription":{"type":["string","null"]},"richDescription":{"type":"string"},"productPageUrl":{"type":["string","null"]},"access":{"type":"string","enum":["FREE","FREEMIUM","PAID"]},"ownerCount":{"type":"integer"},"viewCount":{"type":"integer"},"tags":{"type":"array","items":{"type":"string"}},"publishedAt":{"type":["string","null"],"format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"creator":{"type":"object","properties":{"username":{"type":"string"},"name":{"type":"string"},"avatarUrl":{"type":["string","null"]},"bio":{"type":["string","null"]},"portfolioUrl":{"type":["string","null"]},"creatorStatus":{"type":"string","enum":["NONE","PENDING","APPROVED","REJECTED"]}},"required":["username","name","avatarUrl","bio","portfolioUrl","creatorStatus"]},"media":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string"},"mediaType":{"type":"string","enum":["IMAGE","VIDEO","THUMBNAIL","GALLERY"]},"thumbnailUrl":{"type":["string","null"]},"altText":{"type":["string","null"]},"sortOrder":{"type":"integer"}},"required":["url","mediaType","thumbnailUrl","altText","sortOrder"]}},"currentVersion":{"type":["object","null"],"properties":{"versionNumber":{"type":"string"},"changelog":{"type":["string","null"]},"releaseNotesUrl":{"type":["string","null"]},"isActive":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time"},"houdiniMinVersion":{"type":["string","null"]},"houdiniMaxVersion":{"type":["string","null"]},"builds":{"type":"array","items":{"type":"object","properties":{"platform":{"type":"string","enum":["linux-x86_64","linux-aarch64","windows-x86_64","windows-aarch64","macos-x86_64","macos-aarch64","universal"]},"fileSize":{"type":["number","null"]}},"required":["platform","fileSize"]}}},"required":["versionNumber","changelog","releaseNotesUrl","isActive","createdAt","houdiniMinVersion","houdiniMaxVersion","builds"]}},"required":["path","title","tagline","shortDescription","richDescription","productPageUrl","access","ownerCount","viewCount","tags","publishedAt","createdAt","updatedAt","creator","media","currentVersion"]}}}},"404":{"description":"Not found"},"422":{"description":"Validation error"}}}},"/v1/packages/staff-picks":{"get":{"tags":["Packages"],"summary":"Staff picks","description":"Staff-picked packages.","parameters":[{"schema":{"type":"integer","minimum":1,"maximum":100},"required":false,"name":"limit","in":"query"}],"responses":{"200":{"description":"Staff-picked packages","content":{"application/json":{"schema":{"type":"object","properties":{"packages":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"title":{"type":"string"},"tagline":{"type":["string","null"]},"access":{"type":"string","enum":["FREE","FREEMIUM","PAID"]},"viewCount":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"},"creator":{"type":"object","properties":{"name":{"type":"string"},"username":{"type":["string","null"]},"avatarUrl":{"type":["string","null"]},"slug":{"type":"string"}},"required":["name","username","avatarUrl","slug"]},"slug":{"type":"string"}},"required":["path","title","tagline","access","viewCount","createdAt","creator","slug"]}}},"required":["packages"]}}}},"422":{"description":"Validation error"}}}},"/v1/packages/{creator}/{slug}/access":{"get":{"tags":["Packages"],"summary":"Check access","description":"Whether the caller may use the package, and the `access` claim a license minted now would carry. The same decision `POST /v1/licenses/generate` makes, in the same scope: `organization` names the organization whose project is asking, omitted for a personal project. A PAID package needs paid access: a plan that includes it or one of its own offers (`needsPaidAccess: true` when the caller has neither; `basis` is `plan` or `package` when they have one); the package's creator team is always entitled inside the creator's own projects. An unknown or hidden package answers `entitled: false`, never 404.","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"creator","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"slug","in":"path"},{"schema":{"type":"string","minLength":1,"maxLength":100,"description":"Slug of the organization whose project is asking; omit for a personal project."},"required":false,"description":"Slug of the organization whose project is asking; omit for a personal project.","name":"organization","in":"query"}],"responses":{"200":{"description":"Entitlement","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"entitled":{"type":"boolean","enum":[true]},"basis":{"type":"string","enum":["creator","plan","package","free"]},"access":{"type":"array","items":{"type":"string","enum":["free","paid"]}}},"required":["entitled","basis","access"]},{"type":"object","properties":{"entitled":{"type":"boolean","enum":[false]},"needsPaidAccess":{"type":"boolean"},"access":{"type":"array","items":{"type":"string","enum":["free","paid"]}}},"required":["entitled","needsPaidAccess","access"]}]}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation error"}}}},"/v1/packages/{creator}/{slug}/offers":{"get":{"tags":["Packages"],"summary":"A package's offers","description":"What the package can be bought at on its own, next to the catalogue plans: each offer (tier, billing, amount in cents per seat — per interval for a subscription, once for ONCE and UPGRADE — and currency), whether the catalogue plans include it (`includedInPlans`), and the Houdini major one-time offers sell (`houdiniMajor`; ONCE also sells the major before it, and UPGRADE is into it for holders of the one before). A package with no offers answers an empty list. Only a published, public package is sold; anything else is 404.","parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"creator","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"slug","in":"path"}],"responses":{"200":{"description":"Offers","content":{"application/json":{"schema":{"type":"object","properties":{"access":{"type":"string","enum":["FREE","FREEMIUM","PAID"]},"includedInPlans":{"type":"boolean"},"houdiniMajor":{"type":["integer","null"]},"offers":{"type":"array","items":{"type":"object","properties":{"tier":{"type":"string","enum":["INDIE","PROFESSIONAL"]},"billing":{"type":"string","enum":["ONCE","UPGRADE","MONTHLY","YEARLY"]},"unitAmount":{"type":"integer"},"currency":{"type":"string"},"amounts":{"type":"array","items":{"type":"object","properties":{"currency":{"type":"string"},"unitAmount":{"type":"integer"},"taxBehavior":{"type":"string","enum":["inclusive","exclusive","unspecified"]}},"required":["currency","unitAmount","taxBehavior"]}}},"required":["tier","billing","unitAmount","currency","amounts"]}}},"required":["access","includedInPlans","houdiniMajor","offers"]}}}},"404":{"description":"Not found"},"502":{"description":"An upstream provider (Stripe) failed"}}}},"/v1/packages/{creator}/{slug}":{"get":{"tags":["Packages"],"summary":"Get package","description":"Basic package view.","parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"creator","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"slug","in":"path"}],"responses":{"200":{"description":"Package data","content":{"application/json":{"schema":{"type":"object","properties":{"path":{"type":"string"},"title":{"type":"string"},"tagline":{"type":["string","null"]},"shortDescription":{"type":["string","null"]},"richDescription":{"type":"string"},"productPageUrl":{"type":["string","null"]},"access":{"type":"string","enum":["FREE","FREEMIUM","PAID"]},"status":{"type":"string","enum":["DRAFT","PENDING_REVIEW","APPROVED","PUBLISHED","REJECTED","ARCHIVED"]},"viewCount":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"creator":{"type":"object","properties":{"name":{"type":"string"},"username":{"type":["string","null"]},"avatarUrl":{"type":["string","null"]},"bio":{"type":["string","null"]}},"required":["name","username","avatarUrl","bio"]},"tags":{"type":"array","items":{"type":"string"}},"versions":{"type":"array","items":{"type":"object","properties":{"versionNumber":{"type":"string"},"changelog":{"type":["string","null"]},"releaseNotesUrl":{"type":["string","null"]},"createdAt":{"type":"string","format":"date-time"},"houdiniMinVersion":{"type":["string","null"]},"houdiniMaxVersion":{"type":["string","null"]}},"required":["versionNumber","changelog","releaseNotesUrl","createdAt","houdiniMinVersion","houdiniMaxVersion"]}}},"required":["path","title","tagline","shortDescription","richDescription","productPageUrl","access","status","viewCount","createdAt","updatedAt","creator","tags","versions"]}}}},"404":{"description":"Not found"},"422":{"description":"Validation error"}}}},"/v1/user/profile":{"get":{"tags":["User"],"summary":"Get profile","security":[{"Bearer":[]}],"responses":{"200":{"description":"User profile","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"username":{"type":["string","null"]},"name":{"type":"string"},"email":{"type":"string"},"avatarUrl":{"type":["string","null"]},"creatorStatus":{"type":"string","enum":["NONE","PENDING","APPROVED","REJECTED"]},"emailVerified":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time"},"lastLogin":{"type":["string","null"],"format":"date-time"}},"required":["id","username","name","email","avatarUrl","creatorStatus","emailVerified","createdAt","lastLogin"]}}}},"401":{"description":"Unauthorized"},"404":{"description":"Not found"}}},"patch":{"tags":["User"],"summary":"Update profile","security":[{"Bearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"avatarUrl":{"type":["string","null"],"format":"uri"}}}}}},"responses":{"200":{"description":"Updated profile","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"email":{"type":"string"},"avatarUrl":{"type":["string","null"]},"creatorStatus":{"type":"string","enum":["NONE","PENDING","APPROVED","REJECTED"]},"emailVerified":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time"},"lastLogin":{"type":["string","null"],"format":"date-time"}},"required":["id","name","email","avatarUrl","creatorStatus","emailVerified","createdAt","lastLogin"]}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation error"}}}},"/v1/user/sidefx-token":{"get":{"tags":["User"],"summary":"Get the signed-in user’s SideFX access token","description":"Returns a currently-valid SideFX access token for the signed-in user, refreshing the underlying refresh token if needed. Requires the user to have signed in with SideFX at least once (so the bridge captured the OAuth tokens). 409 SIDEFX_NOT_LINKED otherwise; 401 SIDEFX_REAUTH_REQUIRED if the refresh token is no longer accepted by SideFX.","security":[{"Bearer":[]}],"responses":{"200":{"description":"SideFX access token","content":{"application/json":{"schema":{"type":"object","properties":{"access_token":{"type":"string"},"expires_in":{"type":"number"}},"required":["access_token","expires_in"]}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"409":{"description":"Conflict"},"429":{"description":"Too many requests"},"502":{"description":"Upstream SideFX OAuth refresh failed (transient)"},"503":{"description":"Refresh in flight by a peer worker; retry shortly"}}}},"/v1/user/licenses":{"get":{"tags":["User"],"summary":"List licenses","description":"The packages the caller may use (license and install): its unlocked library entries, paginated.","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"integer","minimum":1,"default":1},"required":false,"name":"page","in":"query"},{"schema":{"type":"integer","minimum":1,"maximum":100,"default":10},"required":false,"name":"limit","in":"query"},{"schema":{"type":["integer","null"],"minimum":0},"required":false,"name":"offset","in":"query"}],"responses":{"200":{"description":"Paginated licenses","content":{"application/json":{"schema":{"type":"object","properties":{"licenses":{"type":"array","items":{"type":"object","properties":{"access":{"type":"string","enum":["FREE","FREEMIUM","PAID"]},"package":{"type":"object","properties":{"title":{"type":"string"},"slug":{"type":"string"},"tagline":{"type":["string","null"]},"path":{"type":"string"}},"required":["title","slug","tagline","path"]}},"required":["access","package"]}},"total":{"type":"integer"},"page":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"}},"required":["licenses","total","page","limit","totalPages"]}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation error"}}}},"/v1/user/grants":{"get":{"tags":["User"],"summary":"The caller's own grants","description":"Every grant the caller holds personally that is not CANCELED: a catalogue plan (`package: null`) and each package subscription or grant (`package.path`). Seats held through an organization are the organization's grants (`GET /v1/organizations/{slug}/grants`).","security":[{"Bearer":[]}],"responses":{"200":{"description":"The caller's grants","content":{"application/json":{"schema":{"type":"object","properties":{"grants":{"type":"array","items":{"type":"object","properties":{"package":{"type":["object","null"],"properties":{"path":{"type":"string"},"title":{"type":"string"}},"required":["path","title"]},"tier":{"type":"string","enum":["INDIE","PROFESSIONAL"]},"status":{"type":"string","enum":["ACTIVE","PAST_DUE","INCOMPLETE","CANCELED"]},"source":{"type":"string","enum":["STRIPE","PURCHASE","GRANT"]},"interval":{"type":["string","null"],"enum":["MONTHLY","YEARLY",null]},"seats":{"type":"integer"},"used":{"type":["integer","null"]},"houdiniMajor":{"type":["integer","null"]},"currentPeriodEnd":{"type":["string","null"]},"cancelAtPeriodEnd":{"type":"boolean"},"expiresAt":{"type":["string","null"]}},"required":["package","tier","status","source","interval","seats","used","houdiniMajor","currentPeriodEnd","cancelAtPeriodEnd","expiresAt"]}}},"required":["grants"]}}}},"401":{"description":"Unauthorized"}}}},"/v1/user/activations":{"get":{"tags":["User"],"summary":"The caller's Indie machines","description":"Each Indie grant the caller holds (the catalogue Indie plan, `package: null`, and each package bought or subscribed at Indie) with the machines it is active on. Indie is one person on up to `machineLimit` machines per grant; a license minted on another machine is refused with MACHINE_LIMIT until one is released (`DELETE /v1/user/activations/{machineId}`), at most `releasesAllowed` times in 30 days.","security":[{"Bearer":[]}],"responses":{"200":{"description":"The caller's Indie grants and machines","content":{"application/json":{"schema":{"type":"object","properties":{"grants":{"type":"array","items":{"type":"object","properties":{"package":{"type":["object","null"],"properties":{"path":{"type":"string"},"title":{"type":"string"}},"required":["path","title"]},"houdiniMajor":{"type":["integer","null"]},"machines":{"type":"array","items":{"type":"object","properties":{"machineId":{"type":"string"},"firstSeenAt":{"type":"string"},"lastSeenAt":{"type":"string"}},"required":["machineId","firstSeenAt","lastSeenAt"]}},"machineLimit":{"type":"integer"},"releasesUsed":{"type":"integer"},"releasesAllowed":{"type":"integer"},"nextReleaseAt":{"type":["string","null"]}},"required":["package","houdiniMajor","machines","machineLimit","releasesUsed","releasesAllowed","nextReleaseAt"]}}},"required":["grants"]}}}},"401":{"description":"Unauthorized"}}}},"/v1/user/activations/{machineId}":{"delete":{"tags":["User"],"summary":"Release an Indie machine","description":"Releases the machine from every Indie grant of the caller's it is active on, and revokes its license tokens for the packages those grants cover, so the license server drops them at its next revocation sync. Each grant allows three releases in any 30 days: past that the release is refused with 429 MACHINE_RELEASE_LIMIT and `retryAt`, and nothing changes. 404 when the machine is not active on any of them.","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":200},"required":true,"name":"machineId","in":"path"}],"responses":{"200":{"description":"Released","content":{"application/json":{"schema":{"type":"object","properties":{"released":{"type":"boolean","enum":[true]},"grants":{"type":"integer"},"revokedTokens":{"type":"integer"}},"required":["released","grants","revokedTokens"]}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"429":{"description":"Too many requests"}}}},"/v1/user/library":{"get":{"tags":["User"],"summary":"User library","description":"Every published package the caller can see, with whether they can use it (`locked`) and what the paid level of its license covers (`paid.houdini`, or null for free use only). Locked PAID packages (no paid access) are listed only with `includeLocked=true`.","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string","enum":["true","false"],"default":"false"},"required":false,"name":"includeLocked","in":"query"}],"responses":{"200":{"description":"User library data","content":{"application/json":{"schema":{"type":"object","properties":{"hasPaidAccess":{"type":"boolean","deprecated":true,"description":"Deprecated: whether the account holds a catalogue plan. Paid use is per package; read each row's `paid`."},"licenses":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"packageTitle":{"type":"string"},"tagline":{"type":["string","null"]},"creatorName":{"type":"string"},"thumbnailUrl":{"type":["string","null"]},"access":{"type":"string","enum":["FREE","FREEMIUM","PAID"]},"locked":{"type":"boolean"},"paid":{"type":["object","null"],"properties":{"houdini":{"anyOf":[{"type":"string","enum":["any"]},{"type":"array","items":{"type":"integer"}}]}},"required":["houdini"]},"seats":{"type":["object","null"],"properties":{"organization":{"type":"string"},"total":{"type":"integer"},"free":{"type":"integer"},"held":{"type":"boolean"}},"required":["organization","total","free","held"]},"isCreatorOwned":{"type":"boolean"},"isDefault":{"type":"boolean"}},"required":["path","packageTitle","tagline","creatorName","thumbnailUrl","access","locked","paid","seats","isCreatorOwned","isDefault"]}}},"required":["hasPaidAccess","licenses"]}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation error"}}}},"/v1/user/projects":{"get":{"tags":["User"],"summary":"List personal projects","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"integer","minimum":1,"default":1},"required":false,"name":"page","in":"query"},{"schema":{"type":"integer","minimum":1,"maximum":100,"default":10},"required":false,"name":"limit","in":"query"},{"schema":{"type":["integer","null"],"minimum":0},"required":false,"name":"offset","in":"query"},{"schema":{"type":"string"},"required":false,"name":"houdiniVersion","in":"query"}],"responses":{"200":{"description":"Personal projects","content":{"application/json":{"schema":{"type":"object","properties":{"projects":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":["string","null"]},"houdiniVersion":{"type":["string","null"]},"platform":{"type":["string","null"],"enum":["LINUX","WINDOWS","MACOS","UNIVERSAL",null]},"houdiniPath":{"type":["string","null"]},"scenePath":{"type":["string","null"]},"hipPath":{"type":["string","null"]},"envVars":{"type":["object","null"],"additionalProperties":{}},"envVarMethods":{"type":["object","null"],"additionalProperties":{}},"packageIds":{"type":"array","items":{"type":"string"}},"disabledEnvVars":{"type":"array","items":{"type":"string"}},"disabledPackageIds":{"type":"array","items":{"type":"string"}},"bannerUrl":{"type":["string","null"]},"splashUrl":{"type":["string","null"]},"includeDefaultPackage":{"type":"boolean"},"version":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"userId":{"type":"string","format":"uuid"}},"required":["id","name","description","houdiniVersion","platform","houdiniPath","scenePath","hipPath","envVars","envVarMethods","packageIds","disabledEnvVars","disabledPackageIds","bannerUrl","splashUrl","includeDefaultPackage","version","createdAt","updatedAt","userId"]}},"total":{"type":"integer"},"page":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"}},"required":["projects","total","page","limit","totalPages"]}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation error"}}},"put":{"tags":["User"],"summary":"Sync personal projects","description":"Bulk upsert personal projects (max 100 per request). Projects are matched to existing rows by `name` alone — no id crosses the wire — so renaming a project creates a new row and orphans the old one unless the client deletes it. An omitted key leaves the stored value untouched; send an explicit empty value (`\"envVars\": {}`) to clear a map or list. `envVarMethods` is pruned to the keys present in the effective env-var map (the request's `envVars` when supplied, otherwise the stored one). Every update bumps `version`. `replaceAll: true` deletes all personal projects first and recreates them from the payload — new ids, and any omitted field is lost rather than preserved; sync clients should send `false`.","security":[{"Bearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"projects":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"description":{"type":["string","null"],"maxLength":2000},"houdiniVersion":{"type":["string","null"],"maxLength":50},"platform":{"type":["string","null"],"enum":["linux","windows","macos",null]},"houdiniPath":{"type":["string","null"],"maxLength":1000},"scenePath":{"type":["string","null"],"maxLength":1000},"hipPath":{"type":["string","null"],"maxLength":1000},"envVars":{"type":"object","additionalProperties":{"type":"string"}},"envVarMethods":{"type":"object","additionalProperties":{"type":"string","enum":["set","prepend","append"]}},"packageIds":{"type":"array","items":{"type":"string","minLength":1}},"disabledEnvVars":{"type":"array","items":{"type":"string","minLength":1}},"disabledPackageIds":{"type":"array","items":{"type":"string","minLength":1}},"bannerUrl":{"type":["string","null"],"maxLength":2000,"format":"uri"},"splashUrl":{"type":["string","null"],"maxLength":2000,"format":"uri"},"includeDefaultPackage":{"type":"boolean"}},"required":["name"]},"minItems":1,"maxItems":100},"replaceAll":{"type":"boolean","default":false}},"required":["projects"]}}}},"responses":{"200":{"description":"Sync result","content":{"application/json":{"schema":{"type":"object","properties":{"projects":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":["string","null"]},"houdiniVersion":{"type":["string","null"]},"platform":{"type":["string","null"],"enum":["LINUX","WINDOWS","MACOS","UNIVERSAL",null]},"houdiniPath":{"type":["string","null"]},"scenePath":{"type":["string","null"]},"hipPath":{"type":["string","null"]},"envVars":{"type":["object","null"],"additionalProperties":{}},"envVarMethods":{"type":["object","null"],"additionalProperties":{}},"packageIds":{"type":"array","items":{"type":"string"}},"disabledEnvVars":{"type":"array","items":{"type":"string"}},"disabledPackageIds":{"type":"array","items":{"type":"string"}},"bannerUrl":{"type":["string","null"]},"splashUrl":{"type":["string","null"]},"includeDefaultPackage":{"type":"boolean"},"version":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"userId":{"type":"string","format":"uuid"}},"required":["id","name","description","houdiniVersion","platform","houdiniPath","scenePath","hipPath","envVars","envVarMethods","packageIds","disabledEnvVars","disabledPackageIds","bannerUrl","splashUrl","includeDefaultPackage","version","createdAt","updatedAt","userId"]}},"count":{"type":"integer"}},"required":["projects","count"]}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation error"}}}},"/v1/user/projects/{id}":{"delete":{"tags":["User"],"summary":"Delete personal project","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"Deletion result","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"}},"required":["success"]}}}},"401":{"description":"Unauthorized"},"404":{"description":"Not found"},"422":{"description":"Validation error"}}}},"/v1/user/projects/banner-upload":{"post":{"tags":["User"],"summary":"Presign project banner upload","description":"Get a presigned S3 URL for uploading a project card banner image.","security":[{"Bearer":[]}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"fileName":{"type":"string","minLength":1},"contentType":{"type":"string","enum":["image/jpeg","image/png","image/webp"]}},"required":["fileName","contentType"]}}}},"responses":{"200":{"description":"Presigned upload URL and public URL for the banner","content":{"application/json":{"schema":{"type":"object","properties":{"upload":{"type":"object","properties":{"url":{"type":"string"},"method":{"type":"string","enum":["PUT"]},"bucket":{"type":"string"},"key":{"type":"string"},"expiresInSeconds":{"type":"number"}},"required":["url","method","bucket","key","expiresInSeconds"]},"publicUrl":{"type":["string","null"]}},"required":["upload","publicUrl"]}}}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"409":{"description":"Conflict"},"422":{"description":"Validation error"},"429":{"description":"Too many requests"},"502":{"description":"An upstream provider (Stripe) failed"}}}},"/v1/user/avatar/presign":{"post":{"tags":["User"],"summary":"Presign an avatar upload","description":"A presigned PUT for your avatar image and the URL it will be served at; save that URL with PATCH /user/profile.","security":[{"Bearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"fileName":{"type":"string","minLength":1,"maxLength":255},"contentType":{"type":"string","enum":["image/jpeg","image/png","image/gif","image/webp"]}},"required":["fileName","contentType"]}}}},"responses":{"200":{"description":"Presigned upload","content":{"application/json":{"schema":{"type":"object","properties":{"upload":{"type":"object","properties":{"url":{"type":"string"},"method":{"type":"string","enum":["PUT"]},"bucket":{"type":"string"},"key":{"type":"string"},"expiresInSeconds":{"type":"number"}},"required":["url","method","bucket","key","expiresInSeconds"]},"cdnUrl":{"type":"string"}},"required":["upload","cdnUrl"]}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"422":{"description":"Validation error"},"429":{"description":"Too many requests"}}}},"/v1/user/projects/banner-download":{"get":{"tags":["User"],"summary":"Get a presigned URL for a project banner image","description":"Returns a short-lived presigned S3 GET URL for a project banner. Validates that the authenticated user owns the banner or has access via an org project. Clients fetch the image bytes directly from the returned URL.","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"key","in":"query"}],"responses":{"200":{"description":"Presigned GET URL for the banner","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string"},"expiresIn":{"type":"number"}},"required":["url","expiresIn"]}}}},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"422":{"description":"Validation error"}}}},"/v1/user/projects/splash-upload":{"post":{"tags":["User"],"summary":"Presign project splash upload","description":"Get a presigned S3 URL for uploading a project Houdini splash screen image.","security":[{"Bearer":[]}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"fileName":{"type":"string","minLength":1},"contentType":{"type":"string","enum":["image/jpeg","image/png","image/webp"]}},"required":["fileName","contentType"]}}}},"responses":{"200":{"description":"Presigned upload URL and public URL for the splash image","content":{"application/json":{"schema":{"type":"object","properties":{"upload":{"type":"object","properties":{"url":{"type":"string"},"method":{"type":"string","enum":["PUT"]},"bucket":{"type":"string"},"key":{"type":"string"},"expiresInSeconds":{"type":"number"}},"required":["url","method","bucket","key","expiresInSeconds"]},"publicUrl":{"type":["string","null"]}},"required":["upload","publicUrl"]}}}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"409":{"description":"Conflict"},"422":{"description":"Validation error"},"429":{"description":"Too many requests"},"502":{"description":"An upstream provider (Stripe) failed"}}}},"/v1/user/projects/splash-download":{"get":{"tags":["User"],"summary":"Get a presigned URL for a project splash image","description":"Returns a short-lived presigned S3 GET URL for a project Houdini splash image. Validates that the authenticated user owns the splash or has access via an org project. Clients fetch the image bytes directly from the returned URL.","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"key","in":"query"}],"responses":{"200":{"description":"Presigned GET URL for the splash image","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string"},"expiresIn":{"type":"number"}},"required":["url","expiresIn"]}}}},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"422":{"description":"Validation error"}}}},"/v1/user/team-projects":{"get":{"tags":["User"],"summary":"List all team projects across orgs","description":"Returns every team project the caller has access to across every organization they belong to. Org admins see all team projects in each org; regular members see only their own teams' projects.","security":[{"Bearer":[]}],"responses":{"200":{"description":"Aggregated team projects across all orgs","content":{"application/json":{"schema":{"type":"object","properties":{"projects":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":["string","null"]},"houdiniVersion":{"type":["string","null"]},"platform":{"type":["string","null"],"enum":["LINUX","WINDOWS","MACOS","UNIVERSAL",null]},"houdiniPath":{"type":["string","null"]},"scenePath":{"type":["string","null"]},"hipPath":{"type":["string","null"]},"envVars":{"type":["object","null"],"additionalProperties":{}},"envVarMethods":{"type":["object","null"],"additionalProperties":{}},"packageIds":{"type":"array","items":{"type":"string"}},"disabledEnvVars":{"type":"array","items":{"type":"string"}},"disabledPackageIds":{"type":"array","items":{"type":"string"}},"bannerUrl":{"type":["string","null"]},"splashUrl":{"type":["string","null"]},"includeDefaultPackage":{"type":"boolean"},"version":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"sortOrder":{"type":"integer"},"teamName":{"type":"string"},"teamSlug":{"type":"string"},"houdiniLicenseMode":{"type":["string","null"],"enum":["commercial","education","indie","apprentice",null]},"organizationName":{"type":"string"},"organizationSlug":{"type":"string"}},"required":["id","name","description","houdiniVersion","platform","houdiniPath","scenePath","hipPath","envVars","envVarMethods","packageIds","disabledEnvVars","disabledPackageIds","bannerUrl","splashUrl","includeDefaultPackage","version","createdAt","updatedAt","sortOrder","teamName","teamSlug","houdiniLicenseMode","organizationName","organizationSlug"]}}},"required":["projects"]}}}},"401":{"description":"Unauthorized"}}}},"/v1/user/team-projects/versions":{"get":{"tags":["User"],"summary":"Get version info for all team projects across orgs","description":"Lightweight cross-org polling endpoint. Returns id, version, updatedAt, and organizationSlug for every team project the caller has access to.","security":[{"Bearer":[]}],"responses":{"200":{"description":"Project version info across orgs","content":{"application/json":{"schema":{"type":"object","properties":{"versions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"version":{"type":"integer"},"updatedAt":{"type":"string","format":"date-time"},"organizationSlug":{"type":"string"}},"required":["id","version","updatedAt","organizationSlug"]}}},"required":["versions"]}}}},"401":{"description":"Unauthorized"}}}},"/v1/organizations":{"get":{"tags":["Organizations"],"summary":"List organizations","description":"List organizations the user is a member of.","security":[{"Bearer":[]}],"responses":{"200":{"description":"User organizations","content":{"application/json":{"schema":{"type":"object","properties":{"organizations":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"slug":{"type":"string"},"description":{"type":["string","null"]},"avatarUrl":{"type":["string","null"]},"isPersonal":{"type":"boolean"},"isPrivate":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time"},"memberCount":{"type":"integer"},"role":{"type":"string","enum":["OWNER","ADMIN","MEMBER"]}},"required":["name","slug","description","avatarUrl","isPersonal","isPrivate","createdAt","memberCount","role"]}}},"required":["organizations"]}}}},"401":{"description":"Unauthorized"}}},"post":{"tags":["Organizations"],"summary":"Create organization","security":[{"Bearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"slug":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"description":{"type":["string","null"],"maxLength":2000},"email":{"type":["string","null"],"format":"email"},"websiteUrl":{"type":["string","null"],"format":"uri"},"isPrivate":{"type":"boolean"}},"required":["name"]}}}},"responses":{"201":{"description":"Created organization","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"slug":{"type":"string"},"description":{"type":["string","null"]},"email":{"type":["string","null"]},"websiteUrl":{"type":["string","null"]},"isPrivate":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time"}},"required":["name","slug","description","email","websiteUrl","isPrivate","createdAt"]}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation error"}}}},"/v1/organizations/search":{"get":{"tags":["Organizations"],"summary":"Search organizations","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string","maxLength":100},"required":true,"name":"q","in":"query"},{"schema":{"type":"integer","minimum":1,"maximum":20,"default":10},"required":false,"name":"limit","in":"query"}],"responses":{"200":{"description":"Matching organizations","content":{"application/json":{"schema":{"type":"object","properties":{"organizations":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"slug":{"type":"string"},"avatarUrl":{"type":["string","null"]}},"required":["name","slug","avatarUrl"]}}},"required":["organizations"]}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation error"},"429":{"description":"Too many requests"}}}},"/v1/organizations/{slug}":{"get":{"tags":["Organizations"],"summary":"Get organization","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"slug","in":"path"}],"responses":{"200":{"description":"Organization details","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"slug":{"type":"string"},"description":{"type":["string","null"]},"avatarUrl":{"type":["string","null"]},"isPersonal":{"type":"boolean"},"isPrivate":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time"},"memberCount":{"type":"integer"},"role":{"type":"string","enum":["OWNER","ADMIN","MEMBER"]},"email":{"type":["string","null"]},"websiteUrl":{"type":["string","null"]}},"required":["name","slug","description","avatarUrl","isPersonal","isPrivate","createdAt","memberCount","role","email","websiteUrl"]}}}},"401":{"description":"Unauthorized"},"404":{"description":"Not found"},"422":{"description":"Validation error"}}},"put":{"tags":["Organizations"],"summary":"Update organization","description":"Update organization (admin/owner only).","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"slug","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"description":{"type":["string","null"],"maxLength":2000},"email":{"type":["string","null"],"format":"email"},"websiteUrl":{"type":["string","null"],"format":"uri"},"avatarUrl":{"type":["string","null"],"format":"uri"},"isPrivate":{"type":"boolean"},"allowPackageTransfers":{"type":"boolean"},"defaultMemberRole":{"type":"string","enum":["ADMIN","MEMBER"]}}}}}},"responses":{"200":{"description":"Updated organization","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"slug":{"type":"string"},"description":{"type":["string","null"]},"email":{"type":["string","null"]},"websiteUrl":{"type":["string","null"]},"isPrivate":{"type":"boolean"},"updatedAt":{"type":"string","format":"date-time"}},"required":["name","slug","description","email","websiteUrl","isPrivate","updatedAt"]}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"422":{"description":"Validation error"}}},"delete":{"tags":["Organizations"],"summary":"Delete organization","description":"Delete organization (owner only).","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"slug","in":"path"}],"responses":{"200":{"description":"Deletion result","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"}},"required":["success"]}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"409":{"description":"Conflict"},"422":{"description":"Validation error"}}}},"/v1/organizations/{slug}/avatar/presign":{"post":{"tags":["Organizations"],"summary":"Presign an organization avatar upload","description":"A presigned PUT for the organization avatar and the URL it will be served at; save that URL with PUT /organizations/{slug}.","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"slug","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"fileName":{"type":"string","minLength":1,"maxLength":255},"contentType":{"type":"string","enum":["image/jpeg","image/png","image/gif","image/webp"]}},"required":["fileName","contentType"]}}}},"responses":{"200":{"description":"Presigned upload","content":{"application/json":{"schema":{"type":"object","properties":{"upload":{"type":"object","properties":{"url":{"type":"string"},"method":{"type":"string","enum":["PUT"]},"bucket":{"type":"string"},"key":{"type":"string"},"expiresInSeconds":{"type":"number"}},"required":["url","method","bucket","key","expiresInSeconds"]},"cdnUrl":{"type":"string"}},"required":["upload","cdnUrl"]}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"422":{"description":"Validation error"},"429":{"description":"Too many requests"}}}},"/v1/organizations/{slug}/members":{"get":{"tags":["Organizations"],"summary":"List members","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"slug","in":"path"}],"responses":{"200":{"description":"Organization members","content":{"application/json":{"schema":{"type":"object","properties":{"members":{"type":"array","items":{"type":"object","properties":{"role":{"type":"string","enum":["OWNER","ADMIN","MEMBER"]},"joinedAt":{"type":"string","format":"date-time"},"user":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"email":{"type":"string"},"avatarUrl":{"type":["string","null"]}},"required":["id","name","email","avatarUrl"]}},"required":["role","joinedAt","user"]}}},"required":["members"]}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"422":{"description":"Validation error"}}}},"/v1/organizations/{slug}/members/{userId}":{"put":{"tags":["Organizations"],"summary":"Update member role","description":"Update member role (admin/owner only, cannot change owner role).","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"slug","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"userId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"role":{"type":"string","enum":["ADMIN","MEMBER"]}},"required":["role"]}}}},"responses":{"200":{"description":"Updated member","content":{"application/json":{"schema":{"type":"object","properties":{"role":{"type":"string","enum":["OWNER","ADMIN","MEMBER"]},"user":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"email":{"type":"string"}},"required":["id","name","email"]}},"required":["role","user"]}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"422":{"description":"Validation error"}}},"delete":{"tags":["Organizations"],"summary":"Remove member","description":"Remove member (admin/owner only, cannot remove owner). Their roles on the organization's teams are removed with them.","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"slug","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"userId","in":"path"}],"responses":{"200":{"description":"Removal result","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"}},"required":["success"]}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"422":{"description":"Validation error"}}}},"/v1/organizations/{slug}/library":{"get":{"tags":["Organizations"],"summary":"Organization library","description":"The caller's library while working in an organization: every published package the caller can see, with whether they can use it. The same entries as `GET /v1/user/library`, except that the organization's own packages are unlocked for every member; the caller must be a member. Locked PAID packages are listed only with `includeLocked=true`.","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"slug","in":"path"},{"schema":{"type":"string","enum":["true","false"],"default":"false"},"required":false,"name":"includeLocked","in":"query"}],"responses":{"200":{"description":"Org library data","content":{"application/json":{"schema":{"type":"object","properties":{"hasPaidAccess":{"type":"boolean","deprecated":true,"description":"Deprecated: whether the account holds a catalogue plan. Paid use is per package; read each row's `paid`."},"licenses":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"packageTitle":{"type":"string"},"tagline":{"type":["string","null"]},"creatorName":{"type":"string"},"thumbnailUrl":{"type":["string","null"]},"access":{"type":"string","enum":["FREE","FREEMIUM","PAID"]},"locked":{"type":"boolean"},"paid":{"type":["object","null"],"properties":{"houdini":{"anyOf":[{"type":"string","enum":["any"]},{"type":"array","items":{"type":"integer"}}]}},"required":["houdini"]},"seats":{"type":["object","null"],"properties":{"organization":{"type":"string"},"total":{"type":"integer"},"free":{"type":"integer"},"held":{"type":"boolean"}},"required":["organization","total","free","held"]},"isCreatorOwned":{"type":"boolean"},"isDefault":{"type":"boolean"}},"required":["path","packageTitle","tagline","creatorName","thumbnailUrl","access","locked","paid","seats","isCreatorOwned","isDefault"]}}},"required":["hasPaidAccess","licenses"]}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"422":{"description":"Validation error"}}}},"/v1/organizations/{slug}/invitations":{"post":{"tags":["Organizations"],"summary":"Create invitation","description":"Invite a user to the organization via email.","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"slug","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","format":"email"},"userId":{"type":"string","format":"uuid"},"role":{"type":"string","enum":["ADMIN","MEMBER"]},"message":{"type":"string","maxLength":500}},"required":["role"]}}}},"responses":{"201":{"description":"Invitation created","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"message":{"type":"string"},"member":{"type":"object","properties":{"role":{"type":"string","enum":["OWNER","ADMIN","MEMBER"]},"joinedAt":{"type":"string","format":"date-time"},"user":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"email":{"type":"string"},"avatarUrl":{"type":["string","null"]}},"required":["id","name","email","avatarUrl"]}},"required":["role","joinedAt","user"]}},"required":["message","member"]},{"type":"object","properties":{"message":{"type":"string"},"invite":{"type":"object","properties":{"id":{"type":"string"},"email":{"type":"string"},"role":{"type":"string","enum":["OWNER","ADMIN","MEMBER"]},"status":{"type":"string","enum":["PENDING","ACCEPTED","EXPIRED","CANCELLED"]},"createdAt":{"type":"string","format":"date-time"},"expiresAt":{"type":"string","format":"date-time"}},"required":["id","email","role","status","createdAt","expiresAt"]}},"required":["message","invite"]}]}}}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"409":{"description":"Conflict"},"422":{"description":"Validation error"}}},"get":{"tags":["Organizations"],"summary":"List invitations","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"slug","in":"path"},{"schema":{"type":"integer","minimum":1,"default":1},"required":false,"name":"page","in":"query"},{"schema":{"type":"integer","minimum":1,"maximum":100,"default":10},"required":false,"name":"limit","in":"query"},{"schema":{"type":["integer","null"],"minimum":0},"required":false,"name":"offset","in":"query"},{"schema":{"type":"string","enum":["PENDING","ACCEPTED","EXPIRED","CANCELLED"]},"required":false,"name":"status","in":"query"}],"responses":{"200":{"description":"Organization invitations","content":{"application/json":{"schema":{"type":"object","properties":{"invitations":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"email":{"type":"string"},"role":{"type":"string","enum":["OWNER","ADMIN","MEMBER"]},"status":{"type":"string","enum":["PENDING","ACCEPTED","EXPIRED","CANCELLED"]},"createdAt":{"type":"string","format":"date-time"},"expiresAt":{"type":"string","format":"date-time"},"acceptedAt":{"type":["string","null"],"format":"date-time"},"inviter":{"type":["object","null"],"properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"email":{"type":"string"},"avatarUrl":{"type":["string","null"]}},"required":["id","name","email","avatarUrl"]}},"required":["id","email","role","status","createdAt","expiresAt","acceptedAt","inviter"]}}},"required":["invitations"]}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"422":{"description":"Validation error"}}}},"/v1/organizations/{slug}/invitations/{id}":{"delete":{"tags":["Organizations"],"summary":"Cancel invitation","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"slug","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"Cancellation result","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"]}}}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"422":{"description":"Validation error"}}}},"/v1/organizations/{slug}/invitations/{id}/resend":{"post":{"tags":["Organizations"],"summary":"Resend invitation","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"slug","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"Resend result","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"invitation":{"type":"object","properties":{"id":{"type":"string"},"email":{"type":"string"},"status":{"type":"string","enum":["PENDING","ACCEPTED","EXPIRED","CANCELLED"]},"expiresAt":{"type":"string","format":"date-time"}},"required":["id","email","status","expiresAt"]}},"required":["message","invitation"]}}}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"409":{"description":"Conflict"},"422":{"description":"Validation error"}}}},"/v1/organizations/{slug}/activity":{"get":{"tags":["Organizations"],"summary":"List organization activity","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"slug","in":"path"},{"schema":{"type":"integer","minimum":1,"default":1},"required":false,"name":"page","in":"query"},{"schema":{"type":"integer","minimum":1,"maximum":100,"default":10},"required":false,"name":"limit","in":"query"},{"schema":{"type":["integer","null"],"minimum":0},"required":false,"name":"offset","in":"query"}],"responses":{"200":{"description":"Organization activity feed","content":{"application/json":{"schema":{"type":"object","properties":{"activities":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"action":{"type":"string"},"entityType":{"type":"string"},"entityId":{"type":["string","null"]},"metadata":{},"createdAt":{"type":"string","format":"date-time"},"user":{"type":["object","null"],"properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"email":{"type":"string"},"avatarUrl":{"type":["string","null"]}},"required":["id","name","email","avatarUrl"]}},"required":["id","action","entityType","entityId","createdAt","user"]}},"total":{"type":"integer"},"page":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"}},"required":["activities","total","page","limit","totalPages"]}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"422":{"description":"Validation error"}}}},"/v1/organizations/{slug}/projects":{"get":{"tags":["Organizations"],"summary":"List organization projects","description":"Administrative inventory of every project in the org, including each team's. The payload carries project internals (env vars, filesystem paths, package lists), so it is org admin/owner only — team-scoped project visibility for regular members is `GET /{slug}/teams/my-projects`.","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"slug","in":"path"},{"schema":{"type":"integer","minimum":1,"default":1},"required":false,"name":"page","in":"query"},{"schema":{"type":"integer","minimum":1,"maximum":100,"default":10},"required":false,"name":"limit","in":"query"},{"schema":{"type":["integer","null"],"minimum":0},"required":false,"name":"offset","in":"query"},{"schema":{"type":"string"},"required":false,"name":"houdiniVersion","in":"query"}],"responses":{"200":{"description":"Projects","content":{"application/json":{"schema":{"type":"object","properties":{"projects":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":["string","null"]},"houdiniVersion":{"type":["string","null"]},"platform":{"type":["string","null"],"enum":["LINUX","WINDOWS","MACOS","UNIVERSAL",null]},"houdiniPath":{"type":["string","null"]},"scenePath":{"type":["string","null"]},"hipPath":{"type":["string","null"]},"envVars":{"type":["object","null"],"additionalProperties":{}},"envVarMethods":{"type":["object","null"],"additionalProperties":{}},"packageIds":{"type":"array","items":{"type":"string"}},"disabledEnvVars":{"type":"array","items":{"type":"string"}},"disabledPackageIds":{"type":"array","items":{"type":"string"}},"bannerUrl":{"type":["string","null"]},"splashUrl":{"type":["string","null"]},"includeDefaultPackage":{"type":"boolean"},"version":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"teamId":{"type":["string","null"]},"sortOrder":{"type":["integer","null"]}},"required":["id","name","description","houdiniVersion","platform","houdiniPath","scenePath","hipPath","envVars","envVarMethods","packageIds","disabledEnvVars","disabledPackageIds","bannerUrl","splashUrl","includeDefaultPackage","version","createdAt","updatedAt","teamId","sortOrder"]}},"total":{"type":"integer"},"page":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"}},"required":["projects","total","page","limit","totalPages"]}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"422":{"description":"Validation error"}}},"put":{"tags":["Organizations"],"summary":"Sync organization projects","description":"Bulk upsert/replace the organization-level projects (those in no team): `replaceAll` deletes only the org-level projects, never a team's. Projects are matched to existing rows by `name` within the org-level scope; a team's project of the same name is a different project. An omitted key leaves the stored value untouched; send an explicit empty value to clear a map or list. `envVarMethods` is pruned to the keys present in the effective env-var map (the request's `envVars` when supplied, otherwise the stored one). Every update bumps `version`.","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"slug","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"projects":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"description":{"type":["string","null"],"maxLength":2000},"houdiniVersion":{"type":["string","null"],"maxLength":50},"platform":{"type":["string","null"],"enum":["linux","windows","macos",null]},"houdiniPath":{"type":["string","null"],"maxLength":1000},"scenePath":{"type":["string","null"],"maxLength":1000},"hipPath":{"type":["string","null"],"maxLength":1000},"envVars":{"type":"object","additionalProperties":{"type":"string"}},"envVarMethods":{"type":"object","additionalProperties":{"type":"string","enum":["set","prepend","append"]}},"packageIds":{"type":"array","items":{"type":"string","minLength":1}},"disabledEnvVars":{"type":"array","items":{"type":"string","minLength":1}},"disabledPackageIds":{"type":"array","items":{"type":"string","minLength":1}},"bannerUrl":{"type":["string","null"],"maxLength":2000,"format":"uri"},"splashUrl":{"type":["string","null"],"maxLength":2000,"format":"uri"},"includeDefaultPackage":{"type":"boolean"}},"required":["name"]},"minItems":1,"maxItems":100},"replaceAll":{"type":"boolean","default":false}},"required":["projects"]}}}},"responses":{"200":{"description":"Sync result","content":{"application/json":{"schema":{"type":"object","properties":{"projects":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":["string","null"]},"houdiniVersion":{"type":["string","null"]},"platform":{"type":["string","null"],"enum":["LINUX","WINDOWS","MACOS","UNIVERSAL",null]},"houdiniPath":{"type":["string","null"]},"scenePath":{"type":["string","null"]},"hipPath":{"type":["string","null"]},"envVars":{"type":["object","null"],"additionalProperties":{}},"envVarMethods":{"type":["object","null"],"additionalProperties":{}},"packageIds":{"type":"array","items":{"type":"string"}},"disabledEnvVars":{"type":"array","items":{"type":"string"}},"disabledPackageIds":{"type":"array","items":{"type":"string"}},"bannerUrl":{"type":["string","null"]},"splashUrl":{"type":["string","null"]},"includeDefaultPackage":{"type":"boolean"},"version":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","description","houdiniVersion","platform","houdiniPath","scenePath","hipPath","envVars","envVarMethods","packageIds","disabledEnvVars","disabledPackageIds","bannerUrl","splashUrl","includeDefaultPackage","version","createdAt","updatedAt"]}},"count":{"type":"integer"}},"required":["projects","count"]}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"422":{"description":"Validation error"}}}},"/v1/organizations/{slug}/projects/{id}":{"delete":{"tags":["Organizations"],"summary":"Delete organization project","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"slug","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"Deletion result","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"}},"required":["success"]}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"422":{"description":"Validation error"}}}},"/v1/organizations/{slug}/projects/{id}/team":{"put":{"tags":["Organizations"],"summary":"Move an organization project into a team","description":"Move an organization's project (org-level or any team's) into a team, or detach it to the org level with `teamSlug: null`. This is the recovery path for projects detached by a team delete — without it no write could ever put them back. Each scope is its own name namespace, so rejects with 409 PROJECT_NAME_CONFLICT when the destination already holds a project of this name. Because joining a team makes the project visible to that team's members, the same publishability check as team-project create applies: rejects with 422 PACKAGE_NOT_PUBLISHABLE if any of the project's `packageIds` are not accessible to the target team's org. The project is appended to the end of the target team's manual order.","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"slug","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"id","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"teamSlug":{"type":["string","null"],"minLength":1}},"required":["teamSlug"]}}}},"responses":{"200":{"description":"Updated project","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":["string","null"]},"houdiniVersion":{"type":["string","null"]},"platform":{"type":["string","null"],"enum":["LINUX","WINDOWS","MACOS","UNIVERSAL",null]},"houdiniPath":{"type":["string","null"]},"scenePath":{"type":["string","null"]},"hipPath":{"type":["string","null"]},"envVars":{"type":["object","null"],"additionalProperties":{}},"envVarMethods":{"type":["object","null"],"additionalProperties":{}},"packageIds":{"type":"array","items":{"type":"string"}},"disabledEnvVars":{"type":"array","items":{"type":"string"}},"disabledPackageIds":{"type":"array","items":{"type":"string"}},"bannerUrl":{"type":["string","null"]},"splashUrl":{"type":["string","null"]},"includeDefaultPackage":{"type":"boolean"},"version":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"teamId":{"type":["string","null"]},"sortOrder":{"type":["integer","null"]}},"required":["id","name","description","houdiniVersion","platform","houdiniPath","scenePath","hipPath","envVars","envVarMethods","packageIds","disabledEnvVars","disabledPackageIds","bannerUrl","splashUrl","includeDefaultPackage","version","createdAt","updatedAt","teamId","sortOrder"]}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"409":{"description":"Conflict"},"422":{"description":"Validation error or unpublishable packages","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamProjectValidationError"}}}}}}},"/v1/organizations/{slug}/sidefx-token":{"get":{"tags":["Organizations"],"summary":"Get the organization’s SideFX access token","description":"Returns a currently-valid SideFX access token for the organization, refreshing the stored refresh token if needed. Requires an OWNER/ADMIN to have linked SideFX to the org. 409 SIDEFX_NOT_LINKED otherwise; 401 SIDEFX_REAUTH_REQUIRED if the refresh token is no longer accepted by SideFX.","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"slug","in":"path"}],"responses":{"200":{"description":"SideFX access token","content":{"application/json":{"schema":{"type":"object","properties":{"access_token":{"type":"string"},"expires_in":{"type":"number"}},"required":["access_token","expires_in"]}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"409":{"description":"Conflict"},"429":{"description":"Too many requests"},"502":{"description":"Upstream SideFX OAuth refresh failed (transient)"},"503":{"description":"Refresh in flight by a peer worker; retry shortly"}}}},"/v1/organizations/{slug}/sidefx":{"delete":{"tags":["Organizations"],"summary":"Unlink SideFX from the organization","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"slug","in":"path"}],"responses":{"200":{"description":"Unlinked","content":{"application/json":{"schema":{"type":"object","properties":{"unlinked":{"type":"boolean","enum":[true]}},"required":["unlinked"]}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"}}}},"/v1/organizations/{slug}/plan":{"get":{"tags":["Organizations"],"summary":"The organization's plan, its seat pools and live seat leases","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"slug","in":"path"}],"responses":{"200":{"description":"The organization's plan and seats","content":{"application/json":{"schema":{"type":"object","properties":{"plan":{"type":["object","null"],"properties":{"plan":{"type":"string","enum":["INDIE","PROFESSIONAL"]},"status":{"type":"string","enum":["ACTIVE","PAST_DUE","INCOMPLETE","CANCELED"]},"source":{"type":"string","enum":["STRIPE","GRANT"]},"interval":{"type":["string","null"],"enum":["MONTHLY","YEARLY",null]},"seats":{"type":"integer"},"currentPeriodEnd":{"type":["string","null"]},"cancelAtPeriodEnd":{"type":"boolean"},"expiresAt":{"type":["string","null"]},"used":{"type":"integer"}},"required":["plan","status","source","interval","seats","currentPeriodEnd","cancelAtPeriodEnd","expiresAt","used"]},"seats":{"type":["object","null"],"properties":{"seats":{"type":"integer"},"used":{"type":"integer"},"pools":{"type":"object","properties":{"organization":{"type":"object","properties":{"capacity":{"type":"integer"},"used":{"type":"integer"}},"required":["capacity","used"]},"teams":{"type":"array","items":{"type":"object","properties":{"team":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"}},"required":["slug","name"]},"reserved":{"type":"integer"},"used":{"type":"integer"}},"required":["team","reserved","used"]}}},"required":["organization","teams"]},"leases":{"type":"array","items":{"type":"object","properties":{"handle":{"type":"string"},"holder":{"type":"object","properties":{"kind":{"type":"string","enum":["user"]},"id":{"type":"string"},"name":{"type":"string"},"email":{"type":"string"}},"required":["kind","id","name","email"]},"team":{"type":["string","null"]},"since":{"type":"string"},"until":{"type":"string"}},"required":["handle","holder","team","since","until"]}}},"required":["seats","used","pools","leases"]},"teams":{"type":"array","items":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"memberCount":{"type":"integer"},"reserved":{"type":["integer","null"]}},"required":["slug","name","memberCount","reserved"]}}},"required":["plan","seats","teams"]}}}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"409":{"description":"Conflict"},"422":{"description":"Validation error"},"429":{"description":"Too many requests"}}}},"/v1/organizations/{slug}/plan/reservations/teams/{teamSlug}":{"put":{"tags":["Organizations"],"summary":"Reserve seats of the plan for a team","description":"Reserve seats of the grant for a team: a guaranteed minimum only the team's members can take, which they overflow from into the organization pool (the seats no reservation holds). Replaces any reservation the team has. Refused with 409 RESERVATIONS_EXCEED_SEATS when the grant's reservations would add up to more than its seats, 409 ALL_TEAM_MEMBERSHIP for the All team. Seats already in use are not taken away: a pool left over its capacity drains as its newest leases lapse (12 hours at most).","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"slug","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"teamSlug","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"seats":{"type":"integer","minimum":1,"maximum":100000}},"required":["seats"],"additionalProperties":false}}}},"responses":{"200":{"description":"The organization's plan and seats","content":{"application/json":{"schema":{"type":"object","properties":{"plan":{"type":["object","null"],"properties":{"plan":{"type":"string","enum":["INDIE","PROFESSIONAL"]},"status":{"type":"string","enum":["ACTIVE","PAST_DUE","INCOMPLETE","CANCELED"]},"source":{"type":"string","enum":["STRIPE","GRANT"]},"interval":{"type":["string","null"],"enum":["MONTHLY","YEARLY",null]},"seats":{"type":"integer"},"currentPeriodEnd":{"type":["string","null"]},"cancelAtPeriodEnd":{"type":"boolean"},"expiresAt":{"type":["string","null"]},"used":{"type":"integer"}},"required":["plan","status","source","interval","seats","currentPeriodEnd","cancelAtPeriodEnd","expiresAt","used"]},"seats":{"type":["object","null"],"properties":{"seats":{"type":"integer"},"used":{"type":"integer"},"pools":{"type":"object","properties":{"organization":{"type":"object","properties":{"capacity":{"type":"integer"},"used":{"type":"integer"}},"required":["capacity","used"]},"teams":{"type":"array","items":{"type":"object","properties":{"team":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"}},"required":["slug","name"]},"reserved":{"type":"integer"},"used":{"type":"integer"}},"required":["team","reserved","used"]}}},"required":["organization","teams"]},"leases":{"type":"array","items":{"type":"object","properties":{"handle":{"type":"string"},"holder":{"type":"object","properties":{"kind":{"type":"string","enum":["user"]},"id":{"type":"string"},"name":{"type":"string"},"email":{"type":"string"}},"required":["kind","id","name","email"]},"team":{"type":["string","null"]},"since":{"type":"string"},"until":{"type":"string"}},"required":["handle","holder","team","since","until"]}}},"required":["seats","used","pools","leases"]},"teams":{"type":"array","items":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"memberCount":{"type":"integer"},"reserved":{"type":["integer","null"]}},"required":["slug","name","memberCount","reserved"]}}},"required":["plan","seats","teams"]}}}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"409":{"description":"Conflict"},"422":{"description":"Validation error"},"429":{"description":"Too many requests"}}},"delete":{"tags":["Organizations"],"summary":"Remove a team's reservation of the plan","description":"The team's seats in use move to the organization pool, which grows by the reservation's size, so nobody loses a seat.","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"slug","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"teamSlug","in":"path"}],"responses":{"200":{"description":"The organization's plan and seats","content":{"application/json":{"schema":{"type":"object","properties":{"plan":{"type":["object","null"],"properties":{"plan":{"type":"string","enum":["INDIE","PROFESSIONAL"]},"status":{"type":"string","enum":["ACTIVE","PAST_DUE","INCOMPLETE","CANCELED"]},"source":{"type":"string","enum":["STRIPE","GRANT"]},"interval":{"type":["string","null"],"enum":["MONTHLY","YEARLY",null]},"seats":{"type":"integer"},"currentPeriodEnd":{"type":["string","null"]},"cancelAtPeriodEnd":{"type":"boolean"},"expiresAt":{"type":["string","null"]},"used":{"type":"integer"}},"required":["plan","status","source","interval","seats","currentPeriodEnd","cancelAtPeriodEnd","expiresAt","used"]},"seats":{"type":["object","null"],"properties":{"seats":{"type":"integer"},"used":{"type":"integer"},"pools":{"type":"object","properties":{"organization":{"type":"object","properties":{"capacity":{"type":"integer"},"used":{"type":"integer"}},"required":["capacity","used"]},"teams":{"type":"array","items":{"type":"object","properties":{"team":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"}},"required":["slug","name"]},"reserved":{"type":"integer"},"used":{"type":"integer"}},"required":["team","reserved","used"]}}},"required":["organization","teams"]},"leases":{"type":"array","items":{"type":"object","properties":{"handle":{"type":"string"},"holder":{"type":"object","properties":{"kind":{"type":"string","enum":["user"]},"id":{"type":"string"},"name":{"type":"string"},"email":{"type":"string"}},"required":["kind","id","name","email"]},"team":{"type":["string","null"]},"since":{"type":"string"},"until":{"type":"string"}},"required":["handle","holder","team","since","until"]}}},"required":["seats","used","pools","leases"]},"teams":{"type":"array","items":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"memberCount":{"type":"integer"},"reserved":{"type":["integer","null"]}},"required":["slug","name","memberCount","reserved"]}}},"required":["plan","seats","teams"]}}}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"409":{"description":"Conflict"},"422":{"description":"Validation error"},"429":{"description":"Too many requests"}}}},"/v1/organizations/{slug}/plan/leases/{handle}":{"delete":{"tags":["Organizations"],"summary":"Release a seat of the plan","description":"End a live seat lease now and revoke the licenses resting on it. The holder keeps working until their license server's next revocation sync, then needs a seat again.","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"slug","in":"path"},{"schema":{"type":"string","minLength":1,"maxLength":100},"required":true,"name":"handle","in":"path"}],"responses":{"200":{"description":"The organization's plan and seats","content":{"application/json":{"schema":{"type":"object","properties":{"plan":{"type":["object","null"],"properties":{"plan":{"type":"string","enum":["INDIE","PROFESSIONAL"]},"status":{"type":"string","enum":["ACTIVE","PAST_DUE","INCOMPLETE","CANCELED"]},"source":{"type":"string","enum":["STRIPE","GRANT"]},"interval":{"type":["string","null"],"enum":["MONTHLY","YEARLY",null]},"seats":{"type":"integer"},"currentPeriodEnd":{"type":["string","null"]},"cancelAtPeriodEnd":{"type":"boolean"},"expiresAt":{"type":["string","null"]},"used":{"type":"integer"}},"required":["plan","status","source","interval","seats","currentPeriodEnd","cancelAtPeriodEnd","expiresAt","used"]},"seats":{"type":["object","null"],"properties":{"seats":{"type":"integer"},"used":{"type":"integer"},"pools":{"type":"object","properties":{"organization":{"type":"object","properties":{"capacity":{"type":"integer"},"used":{"type":"integer"}},"required":["capacity","used"]},"teams":{"type":"array","items":{"type":"object","properties":{"team":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"}},"required":["slug","name"]},"reserved":{"type":"integer"},"used":{"type":"integer"}},"required":["team","reserved","used"]}}},"required":["organization","teams"]},"leases":{"type":"array","items":{"type":"object","properties":{"handle":{"type":"string"},"holder":{"type":"object","properties":{"kind":{"type":"string","enum":["user"]},"id":{"type":"string"},"name":{"type":"string"},"email":{"type":"string"}},"required":["kind","id","name","email"]},"team":{"type":["string","null"]},"since":{"type":"string"},"until":{"type":"string"}},"required":["handle","holder","team","since","until"]}}},"required":["seats","used","pools","leases"]},"teams":{"type":"array","items":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"memberCount":{"type":"integer"},"reserved":{"type":["integer","null"]}},"required":["slug","name","memberCount","reserved"]}}},"required":["plan","seats","teams"]}}}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"409":{"description":"Conflict"},"422":{"description":"Validation error"},"429":{"description":"Too many requests"}}}},"/v1/organizations/{slug}/grants":{"get":{"tags":["Organizations"],"summary":"The organization's grants: its plan and each package's","description":"Every grant that is not CANCELED — the catalogue plan (`package: null`) and each package subscription or grant (`package.path`) — with its seats and how many are in live leases.","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"slug","in":"path"}],"responses":{"200":{"description":"The organization's grants","content":{"application/json":{"schema":{"type":"object","properties":{"grants":{"type":"array","items":{"type":"object","properties":{"package":{"type":["object","null"],"properties":{"path":{"type":"string"},"title":{"type":"string"}},"required":["path","title"]},"tier":{"type":"string","enum":["INDIE","PROFESSIONAL"]},"status":{"type":"string","enum":["ACTIVE","PAST_DUE","INCOMPLETE","CANCELED"]},"source":{"type":"string","enum":["STRIPE","PURCHASE","GRANT"]},"interval":{"type":["string","null"],"enum":["MONTHLY","YEARLY",null]},"seats":{"type":"integer"},"used":{"type":["integer","null"]},"houdiniMajor":{"type":["integer","null"]},"currentPeriodEnd":{"type":["string","null"]},"cancelAtPeriodEnd":{"type":"boolean"},"expiresAt":{"type":["string","null"]}},"required":["package","tier","status","source","interval","seats","used","houdiniMajor","currentPeriodEnd","cancelAtPeriodEnd","expiresAt"]}}},"required":["grants"]}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not found"}}}},"/v1/organizations/{slug}/grants/packages/{creator}/{package}":{"get":{"tags":["Organizations"],"summary":"The organization's grant for one package, its seat pools and live seat leases","description":"The grant that covers every Houdini major, or with `?houdini=` the perpetual grant (a purchase or a comp) for that major; the reservation and release writes take the same query.","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"slug","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"creator","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"package","in":"path"},{"schema":{"type":"integer","minimum":1,"maximum":999},"required":false,"name":"houdini","in":"query"}],"responses":{"200":{"description":"The organization's grant for the package and its seats","content":{"application/json":{"schema":{"type":"object","properties":{"grant":{"type":["object","null"],"properties":{"package":{"type":["object","null"],"properties":{"path":{"type":"string"},"title":{"type":"string"}},"required":["path","title"]},"tier":{"type":"string","enum":["INDIE","PROFESSIONAL"]},"status":{"type":"string","enum":["ACTIVE","PAST_DUE","INCOMPLETE","CANCELED"]},"source":{"type":"string","enum":["STRIPE","PURCHASE","GRANT"]},"interval":{"type":["string","null"],"enum":["MONTHLY","YEARLY",null]},"seats":{"type":"integer"},"used":{"type":["integer","null"]},"houdiniMajor":{"type":["integer","null"]},"currentPeriodEnd":{"type":["string","null"]},"cancelAtPeriodEnd":{"type":"boolean"},"expiresAt":{"type":["string","null"]}},"required":["package","tier","status","source","interval","seats","used","houdiniMajor","currentPeriodEnd","cancelAtPeriodEnd","expiresAt"]},"seats":{"type":["object","null"],"properties":{"seats":{"type":"integer"},"used":{"type":"integer"},"pools":{"type":"object","properties":{"organization":{"type":"object","properties":{"capacity":{"type":"integer"},"used":{"type":"integer"}},"required":["capacity","used"]},"teams":{"type":"array","items":{"type":"object","properties":{"team":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"}},"required":["slug","name"]},"reserved":{"type":"integer"},"used":{"type":"integer"}},"required":["team","reserved","used"]}}},"required":["organization","teams"]},"leases":{"type":"array","items":{"type":"object","properties":{"handle":{"type":"string"},"holder":{"type":"object","properties":{"kind":{"type":"string","enum":["user"]},"id":{"type":"string"},"name":{"type":"string"},"email":{"type":"string"}},"required":["kind","id","name","email"]},"team":{"type":["string","null"]},"since":{"type":"string"},"until":{"type":"string"}},"required":["handle","holder","team","since","until"]}}},"required":["seats","used","pools","leases"]},"teams":{"type":"array","items":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"memberCount":{"type":"integer"},"reserved":{"type":["integer","null"]}},"required":["slug","name","memberCount","reserved"]}}},"required":["grant","seats","teams"]}}}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"409":{"description":"Conflict"},"422":{"description":"Validation error"},"429":{"description":"Too many requests"}}}},"/v1/organizations/{slug}/grants/packages/{creator}/{package}/reservations/teams/{teamSlug}":{"put":{"tags":["Organizations"],"summary":"Reserve seats of a package's grant for a team","description":"Reserve seats of the grant for a team: a guaranteed minimum only the team's members can take, which they overflow from into the organization pool (the seats no reservation holds). Replaces any reservation the team has. Refused with 409 RESERVATIONS_EXCEED_SEATS when the grant's reservations would add up to more than its seats, 409 ALL_TEAM_MEMBERSHIP for the All team. Seats already in use are not taken away: a pool left over its capacity drains as its newest leases lapse (12 hours at most).","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"slug","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"teamSlug","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"creator","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"package","in":"path"},{"schema":{"type":"integer","minimum":1,"maximum":999},"required":false,"name":"houdini","in":"query"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"seats":{"type":"integer","minimum":1,"maximum":100000}},"required":["seats"],"additionalProperties":false}}}},"responses":{"200":{"description":"The organization's grant for the package and its seats","content":{"application/json":{"schema":{"type":"object","properties":{"grant":{"type":["object","null"],"properties":{"package":{"type":["object","null"],"properties":{"path":{"type":"string"},"title":{"type":"string"}},"required":["path","title"]},"tier":{"type":"string","enum":["INDIE","PROFESSIONAL"]},"status":{"type":"string","enum":["ACTIVE","PAST_DUE","INCOMPLETE","CANCELED"]},"source":{"type":"string","enum":["STRIPE","PURCHASE","GRANT"]},"interval":{"type":["string","null"],"enum":["MONTHLY","YEARLY",null]},"seats":{"type":"integer"},"used":{"type":["integer","null"]},"houdiniMajor":{"type":["integer","null"]},"currentPeriodEnd":{"type":["string","null"]},"cancelAtPeriodEnd":{"type":"boolean"},"expiresAt":{"type":["string","null"]}},"required":["package","tier","status","source","interval","seats","used","houdiniMajor","currentPeriodEnd","cancelAtPeriodEnd","expiresAt"]},"seats":{"type":["object","null"],"properties":{"seats":{"type":"integer"},"used":{"type":"integer"},"pools":{"type":"object","properties":{"organization":{"type":"object","properties":{"capacity":{"type":"integer"},"used":{"type":"integer"}},"required":["capacity","used"]},"teams":{"type":"array","items":{"type":"object","properties":{"team":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"}},"required":["slug","name"]},"reserved":{"type":"integer"},"used":{"type":"integer"}},"required":["team","reserved","used"]}}},"required":["organization","teams"]},"leases":{"type":"array","items":{"type":"object","properties":{"handle":{"type":"string"},"holder":{"type":"object","properties":{"kind":{"type":"string","enum":["user"]},"id":{"type":"string"},"name":{"type":"string"},"email":{"type":"string"}},"required":["kind","id","name","email"]},"team":{"type":["string","null"]},"since":{"type":"string"},"until":{"type":"string"}},"required":["handle","holder","team","since","until"]}}},"required":["seats","used","pools","leases"]},"teams":{"type":"array","items":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"memberCount":{"type":"integer"},"reserved":{"type":["integer","null"]}},"required":["slug","name","memberCount","reserved"]}}},"required":["grant","seats","teams"]}}}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"409":{"description":"Conflict"},"422":{"description":"Validation error"},"429":{"description":"Too many requests"}}},"delete":{"tags":["Organizations"],"summary":"Remove a team's reservation of a package's grant","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"slug","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"teamSlug","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"creator","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"package","in":"path"},{"schema":{"type":"integer","minimum":1,"maximum":999},"required":false,"name":"houdini","in":"query"}],"responses":{"200":{"description":"The organization's grant for the package and its seats","content":{"application/json":{"schema":{"type":"object","properties":{"grant":{"type":["object","null"],"properties":{"package":{"type":["object","null"],"properties":{"path":{"type":"string"},"title":{"type":"string"}},"required":["path","title"]},"tier":{"type":"string","enum":["INDIE","PROFESSIONAL"]},"status":{"type":"string","enum":["ACTIVE","PAST_DUE","INCOMPLETE","CANCELED"]},"source":{"type":"string","enum":["STRIPE","PURCHASE","GRANT"]},"interval":{"type":["string","null"],"enum":["MONTHLY","YEARLY",null]},"seats":{"type":"integer"},"used":{"type":["integer","null"]},"houdiniMajor":{"type":["integer","null"]},"currentPeriodEnd":{"type":["string","null"]},"cancelAtPeriodEnd":{"type":"boolean"},"expiresAt":{"type":["string","null"]}},"required":["package","tier","status","source","interval","seats","used","houdiniMajor","currentPeriodEnd","cancelAtPeriodEnd","expiresAt"]},"seats":{"type":["object","null"],"properties":{"seats":{"type":"integer"},"used":{"type":"integer"},"pools":{"type":"object","properties":{"organization":{"type":"object","properties":{"capacity":{"type":"integer"},"used":{"type":"integer"}},"required":["capacity","used"]},"teams":{"type":"array","items":{"type":"object","properties":{"team":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"}},"required":["slug","name"]},"reserved":{"type":"integer"},"used":{"type":"integer"}},"required":["team","reserved","used"]}}},"required":["organization","teams"]},"leases":{"type":"array","items":{"type":"object","properties":{"handle":{"type":"string"},"holder":{"type":"object","properties":{"kind":{"type":"string","enum":["user"]},"id":{"type":"string"},"name":{"type":"string"},"email":{"type":"string"}},"required":["kind","id","name","email"]},"team":{"type":["string","null"]},"since":{"type":"string"},"until":{"type":"string"}},"required":["handle","holder","team","since","until"]}}},"required":["seats","used","pools","leases"]},"teams":{"type":"array","items":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"memberCount":{"type":"integer"},"reserved":{"type":["integer","null"]}},"required":["slug","name","memberCount","reserved"]}}},"required":["grant","seats","teams"]}}}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"409":{"description":"Conflict"},"422":{"description":"Validation error"},"429":{"description":"Too many requests"}}}},"/v1/organizations/{slug}/grants/packages/{creator}/{package}/leases/{handle}":{"delete":{"tags":["Organizations"],"summary":"Release a seat of a package's grant","description":"End a live seat lease now and revoke the licenses resting on it. The holder keeps working until their license server's next revocation sync, then needs a seat again.","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"slug","in":"path"},{"schema":{"type":"string","minLength":1,"maxLength":100},"required":true,"name":"handle","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"creator","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"package","in":"path"},{"schema":{"type":"integer","minimum":1,"maximum":999},"required":false,"name":"houdini","in":"query"}],"responses":{"200":{"description":"The organization's grant for the package and its seats","content":{"application/json":{"schema":{"type":"object","properties":{"grant":{"type":["object","null"],"properties":{"package":{"type":["object","null"],"properties":{"path":{"type":"string"},"title":{"type":"string"}},"required":["path","title"]},"tier":{"type":"string","enum":["INDIE","PROFESSIONAL"]},"status":{"type":"string","enum":["ACTIVE","PAST_DUE","INCOMPLETE","CANCELED"]},"source":{"type":"string","enum":["STRIPE","PURCHASE","GRANT"]},"interval":{"type":["string","null"],"enum":["MONTHLY","YEARLY",null]},"seats":{"type":"integer"},"used":{"type":["integer","null"]},"houdiniMajor":{"type":["integer","null"]},"currentPeriodEnd":{"type":["string","null"]},"cancelAtPeriodEnd":{"type":"boolean"},"expiresAt":{"type":["string","null"]}},"required":["package","tier","status","source","interval","seats","used","houdiniMajor","currentPeriodEnd","cancelAtPeriodEnd","expiresAt"]},"seats":{"type":["object","null"],"properties":{"seats":{"type":"integer"},"used":{"type":"integer"},"pools":{"type":"object","properties":{"organization":{"type":"object","properties":{"capacity":{"type":"integer"},"used":{"type":"integer"}},"required":["capacity","used"]},"teams":{"type":"array","items":{"type":"object","properties":{"team":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"}},"required":["slug","name"]},"reserved":{"type":"integer"},"used":{"type":"integer"}},"required":["team","reserved","used"]}}},"required":["organization","teams"]},"leases":{"type":"array","items":{"type":"object","properties":{"handle":{"type":"string"},"holder":{"type":"object","properties":{"kind":{"type":"string","enum":["user"]},"id":{"type":"string"},"name":{"type":"string"},"email":{"type":"string"}},"required":["kind","id","name","email"]},"team":{"type":["string","null"]},"since":{"type":"string"},"until":{"type":"string"}},"required":["handle","holder","team","since","until"]}}},"required":["seats","used","pools","leases"]},"teams":{"type":"array","items":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"memberCount":{"type":"integer"},"reserved":{"type":["integer","null"]}},"required":["slug","name","memberCount","reserved"]}}},"required":["grant","seats","teams"]}}}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"409":{"description":"Conflict"},"422":{"description":"Validation error"},"429":{"description":"Too many requests"}}}},"/v1/organizations/{slug}/teams/my-projects":{"get":{"tags":["Teams"],"summary":"List all team projects for current user","description":"Returns projects from every team the user belongs to in this org.","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"slug","in":"path"}],"responses":{"200":{"description":"Aggregated team projects","content":{"application/json":{"schema":{"type":"object","properties":{"projects":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":["string","null"]},"houdiniVersion":{"type":["string","null"]},"platform":{"type":["string","null"],"enum":["LINUX","WINDOWS","MACOS","UNIVERSAL",null]},"houdiniPath":{"type":["string","null"]},"scenePath":{"type":["string","null"]},"hipPath":{"type":["string","null"]},"envVars":{"type":["object","null"],"additionalProperties":{}},"envVarMethods":{"type":["object","null"],"additionalProperties":{}},"packageIds":{"type":"array","items":{"type":"string"}},"disabledEnvVars":{"type":"array","items":{"type":"string"}},"disabledPackageIds":{"type":"array","items":{"type":"string"}},"bannerUrl":{"type":["string","null"]},"splashUrl":{"type":["string","null"]},"includeDefaultPackage":{"type":"boolean"},"version":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"teamId":{"type":"string"},"sortOrder":{"type":"integer"},"teamName":{"type":"string"},"teamSlug":{"type":"string"},"houdiniLicenseMode":{"type":["string","null"],"enum":["commercial","education","indie","apprentice",null]}},"required":["id","name","description","houdiniVersion","platform","houdiniPath","scenePath","hipPath","envVars","envVarMethods","packageIds","disabledEnvVars","disabledPackageIds","bannerUrl","splashUrl","includeDefaultPackage","version","createdAt","updatedAt","teamId","sortOrder","teamName","teamSlug","houdiniLicenseMode"]}}},"required":["projects"]}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"422":{"description":"Validation error"}}}},"/v1/organizations/{slug}/teams/my-projects/versions":{"get":{"tags":["Teams"],"summary":"Get version info for team projects","description":"Lightweight endpoint for polling. Returns only id, version, and updatedAt so clients can detect changed projects before fetching full payloads.","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"slug","in":"path"}],"responses":{"200":{"description":"Project version info","content":{"application/json":{"schema":{"type":"object","properties":{"versions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"version":{"type":"integer"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","version","updatedAt"]}}},"required":["versions"]}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"422":{"description":"Validation error"}}}},"/v1/organizations/{slug}/teams":{"get":{"tags":["Teams"],"summary":"List teams","description":"List teams in the organization. Admins see all teams, members see their teams and the All team every member is in (`isAll`; its `memberCount` and `sampleMembers` are the organization's). Each team includes a `sampleMembers` field (up to 5 entries, ordered by joinedAt) shaped `{ userId, name, avatarUrl }` for stacked-avatar previews; `memberCount` is the authoritative total.","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"slug","in":"path"},{"schema":{"type":"integer","minimum":1,"default":1},"required":false,"name":"page","in":"query"},{"schema":{"type":"integer","minimum":1,"maximum":100,"default":10},"required":false,"name":"limit","in":"query"},{"schema":{"type":["integer","null"],"minimum":0},"required":false,"name":"offset","in":"query"}],"responses":{"200":{"description":"Team list","content":{"application/json":{"schema":{"type":"object","properties":{"teams":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"description":{"type":["string","null"]},"isPrivate":{"type":"boolean"},"defaultRole":{"type":"string","enum":["TEAM_ADMIN","TEAM_MEMBER","TEAM_VIEWER"]},"houdiniLicenseMode":{"type":["string","null"],"enum":["commercial","education","indie","apprentice",null]},"isAll":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"memberCount":{"type":"integer"},"projectCount":{"type":"integer"},"role":{"type":["string","null"],"enum":["TEAM_ADMIN","TEAM_MEMBER","TEAM_VIEWER",null]},"sampleMembers":{"type":"array","items":{"type":"object","properties":{"userId":{"type":"string","format":"uuid"},"name":{"type":"string"},"avatarUrl":{"type":["string","null"]}},"required":["userId","name","avatarUrl"]}}},"required":["id","name","slug","description","isPrivate","defaultRole","houdiniLicenseMode","isAll","createdAt","updatedAt","memberCount","projectCount","role","sampleMembers"]}}},"required":["teams"]}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"422":{"description":"Validation error"}}},"post":{"tags":["Teams"],"summary":"Create team","description":"Create a new team in the organization (admin/owner only).","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"slug","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"slug":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"description":{"type":["string","null"],"maxLength":2000},"isPrivate":{"type":"boolean"},"defaultRole":{"type":"string","enum":["TEAM_MEMBER","TEAM_VIEWER"]},"houdiniLicenseMode":{"type":["string","null"],"enum":["commercial","education","indie","apprentice",null]}},"required":["name"]}}}},"responses":{"201":{"description":"Created team","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"description":{"type":["string","null"]},"isPrivate":{"type":"boolean"},"defaultRole":{"type":"string","enum":["TEAM_ADMIN","TEAM_MEMBER","TEAM_VIEWER"]},"houdiniLicenseMode":{"type":["string","null"],"enum":["commercial","education","indie","apprentice",null]},"isAll":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time"}},"required":["id","name","slug","description","isPrivate","defaultRole","houdiniLicenseMode","isAll","createdAt"]}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"409":{"description":"Conflict"},"422":{"description":"Validation error"}}}},"/v1/organizations/{slug}/teams/{teamSlug}":{"get":{"tags":["Teams"],"summary":"Get team details","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"slug","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"teamSlug","in":"path"}],"responses":{"200":{"description":"Team details","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"description":{"type":["string","null"]},"isPrivate":{"type":"boolean"},"defaultRole":{"type":"string","enum":["TEAM_ADMIN","TEAM_MEMBER","TEAM_VIEWER"]},"houdiniLicenseMode":{"type":["string","null"],"enum":["commercial","education","indie","apprentice",null]},"isAll":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"memberCount":{"type":"integer"},"projectCount":{"type":"integer"},"role":{"type":"string","enum":["TEAM_ADMIN","TEAM_MEMBER","TEAM_VIEWER"]}},"required":["id","name","slug","description","isPrivate","defaultRole","houdiniLicenseMode","isAll","createdAt","updatedAt","memberCount","projectCount","role"]}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"422":{"description":"Validation error"}}},"put":{"tags":["Teams"],"summary":"Update team","description":"Update team details (team admin or org admin/owner). `houdiniLicenseMode` is the one Houdini license tier (`commercial`, `education`, `indie`, `apprentice`) the team's projects open with in TumbleTrove Desktop: a value sets it, `null` clears it, and leaving it out keeps it. A change increments `version` on every project in the team, so desktops polling `/teams/my-projects/versions` refetch them.","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"slug","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"teamSlug","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"slug":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"description":{"type":["string","null"],"maxLength":2000},"isPrivate":{"type":"boolean"},"defaultRole":{"type":"string","enum":["TEAM_MEMBER","TEAM_VIEWER"]},"houdiniLicenseMode":{"type":["string","null"],"enum":["commercial","education","indie","apprentice",null]}}}}}},"responses":{"200":{"description":"Updated team","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"description":{"type":["string","null"]},"isPrivate":{"type":"boolean"},"defaultRole":{"type":"string","enum":["TEAM_ADMIN","TEAM_MEMBER","TEAM_VIEWER"]},"houdiniLicenseMode":{"type":["string","null"],"enum":["commercial","education","indie","apprentice",null]},"isAll":{"type":"boolean"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","slug","description","isPrivate","defaultRole","houdiniLicenseMode","isAll","updatedAt"]}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"409":{"description":"Conflict"},"422":{"description":"Validation error"}}},"delete":{"tags":["Teams"],"summary":"Delete team","description":"Delete team (org admin/owner only). The organization's All team cannot be deleted (409 ALL_TEAM_MEMBERSHIP). A seat the team held in the organization's plan through pooling is released with it. The team's projects are NOT deleted — they are detached and survive as org-level projects, and `detachedProjects` reports how many. Rejects with 409 PROJECT_NAME_CONFLICT, changing nothing, when an org-level project already has the name of one of the team's projects. Detached projects disappear from every team-scoped listing; an org admin can find them via `GET /{slug}/projects` and reassign them with `PUT /{slug}/projects/{id}/team`.","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"slug","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"teamSlug","in":"path"}],"responses":{"200":{"description":"Deletion result","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"detachedProjects":{"type":"integer","description":"Projects detached from the deleted team, now org-level."}},"required":["success","detachedProjects"]}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"409":{"description":"Conflict"},"422":{"description":"Validation error"}}}},"/v1/organizations/{slug}/teams/{teamSlug}/members":{"get":{"tags":["Teams"],"summary":"List team members","description":"Returns the team's current members. For the All team (`isAll`) that is every organization member, each with their role there and their `organizationRole` (an org OWNER/ADMIN is `TEAM_ADMIN` on every team, and their All-team role cannot be changed), and `available` is always empty. Pass `?include=available` to also receive `available`: org members not yet on the team, each tagged with their organization role — useful for an add-member picker that needs both lists in one round trip.","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"slug","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"teamSlug","in":"path"},{"schema":{"type":"string","enum":["available"]},"required":false,"name":"include","in":"query"}],"responses":{"200":{"description":"Team members (with optional `available` list when ?include=available)","content":{"application/json":{"schema":{"type":"object","properties":{"members":{"type":"array","items":{"type":"object","properties":{"role":{"type":"string","enum":["TEAM_ADMIN","TEAM_MEMBER","TEAM_VIEWER"]},"joinedAt":{"type":"string","format":"date-time"},"user":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"email":{"type":"string"},"avatarUrl":{"type":["string","null"]}},"required":["id","name","email","avatarUrl"]},"organizationRole":{"type":"string","enum":["OWNER","ADMIN","MEMBER"]}},"required":["role","joinedAt","user"]}},"available":{"type":"array","items":{"type":"object","properties":{"organizationRole":{"type":"string","enum":["OWNER","ADMIN","MEMBER"]},"joinedAt":{"type":"string","format":"date-time"},"user":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"email":{"type":"string"},"avatarUrl":{"type":["string","null"]}},"required":["id","name","email","avatarUrl"]}},"required":["organizationRole","joinedAt","user"]}}},"required":["members"]}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"422":{"description":"Validation error"}}},"post":{"tags":["Teams"],"summary":"Add team member","description":"Add an org member to the team (team admin or org admin/owner). Team membership takes no seat: the organization's seats float, and a team reservation is a number of seats.","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"slug","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"teamSlug","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"userId":{"type":"string","format":"uuid"},"role":{"type":"string","enum":["TEAM_ADMIN","TEAM_MEMBER","TEAM_VIEWER"],"default":"TEAM_MEMBER"}},"required":["userId"]}}}},"responses":{"201":{"description":"Added member","content":{"application/json":{"schema":{"type":"object","properties":{"role":{"type":"string","enum":["TEAM_ADMIN","TEAM_MEMBER","TEAM_VIEWER"]},"joinedAt":{"type":"string","format":"date-time"},"user":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"email":{"type":"string"},"avatarUrl":{"type":["string","null"]}},"required":["id","name","email","avatarUrl"]}},"required":["role","joinedAt","user"]}}}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"409":{"description":"Conflict"},"422":{"description":"Validation error"}}},"patch":{"tags":["Teams"],"summary":"Add and remove team members","description":"Add org members to the team and take members out of it, any number at once (team admin or org admin/owner; never the All team, 409). The whole change applies or none of it does: removals first, then additions. Membership takes no seat (seats float). Refused with 400 when someone to add is not an organization member, 409 CONFLICT when they are on the team already, 404 when someone to remove is not on it — each naming the people (details.userIds). Nobody may be listed twice. Answers with the team's members after the change.","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"slug","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"teamSlug","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"add":{"type":"array","items":{"type":"object","properties":{"userId":{"type":"string","format":"uuid"},"role":{"type":"string","enum":["TEAM_ADMIN","TEAM_MEMBER","TEAM_VIEWER"],"default":"TEAM_MEMBER"}},"required":["userId"]},"default":[]},"remove":{"type":"array","items":{"type":"string","format":"uuid"},"default":[]}}}}}},"responses":{"200":{"description":"Who was added and removed, and the members after the change","content":{"application/json":{"schema":{"type":"object","properties":{"added":{"type":"array","items":{"type":"string","format":"uuid"}},"removed":{"type":"array","items":{"type":"string","format":"uuid"}},"members":{"type":"array","items":{"type":"object","properties":{"role":{"type":"string","enum":["TEAM_ADMIN","TEAM_MEMBER","TEAM_VIEWER"]},"joinedAt":{"type":"string","format":"date-time"},"user":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"email":{"type":"string"},"avatarUrl":{"type":["string","null"]}},"required":["id","name","email","avatarUrl"]}},"required":["role","joinedAt","user"]}}},"required":["added","removed","members"]}}}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"409":{"description":"Conflict"},"422":{"description":"Validation error"},"429":{"description":"Too many requests"}}}},"/v1/organizations/{slug}/teams/{teamSlug}/members/{userId}":{"put":{"tags":["Teams"],"summary":"Update team member role","description":"Change a team member role (team admin or org admin/owner). On the All team every organization member can be given a role, since they are all on it; an org OWNER/ADMIN's cannot (409 ALL_TEAM_ORG_ADMIN_ROLE), because they administer every team regardless.","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"slug","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"teamSlug","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"userId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"role":{"type":"string","enum":["TEAM_ADMIN","TEAM_MEMBER","TEAM_VIEWER"]}},"required":["role"]}}}},"responses":{"200":{"description":"Updated member","content":{"application/json":{"schema":{"type":"object","properties":{"role":{"type":"string","enum":["TEAM_ADMIN","TEAM_MEMBER","TEAM_VIEWER"]},"user":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"email":{"type":"string"}},"required":["id","name","email"]}},"required":["role","user"]}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"409":{"description":"Conflict"},"422":{"description":"Validation error"}}},"delete":{"tags":["Teams"],"summary":"Remove team member","description":"Remove a member from the team (team admin or org admin/owner).","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"slug","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"teamSlug","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"userId","in":"path"}],"responses":{"200":{"description":"Removal result","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"}},"required":["success"]}}}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"409":{"description":"Conflict"},"422":{"description":"Validation error"}}}},"/v1/organizations/{slug}/teams/{teamSlug}/members/me":{"delete":{"tags":["Teams"],"summary":"Leave team","description":"Remove yourself from the team.","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"slug","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"teamSlug","in":"path"}],"responses":{"200":{"description":"Left team","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"}},"required":["success"]}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"409":{"description":"Conflict"},"422":{"description":"Validation error"}}}},"/v1/organizations/{slug}/teams/{teamSlug}/projects":{"get":{"tags":["Teams"],"summary":"List team projects","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"slug","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"teamSlug","in":"path"}],"responses":{"200":{"description":"Team projects","content":{"application/json":{"schema":{"type":"object","properties":{"projects":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":["string","null"]},"houdiniVersion":{"type":["string","null"]},"platform":{"type":["string","null"],"enum":["LINUX","WINDOWS","MACOS","UNIVERSAL",null]},"houdiniPath":{"type":["string","null"]},"scenePath":{"type":["string","null"]},"hipPath":{"type":["string","null"]},"envVars":{"type":["object","null"],"additionalProperties":{}},"envVarMethods":{"type":["object","null"],"additionalProperties":{}},"packageIds":{"type":"array","items":{"type":"string"}},"disabledEnvVars":{"type":"array","items":{"type":"string"}},"disabledPackageIds":{"type":"array","items":{"type":"string"}},"bannerUrl":{"type":["string","null"]},"splashUrl":{"type":["string","null"]},"includeDefaultPackage":{"type":"boolean"},"version":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"teamId":{"type":"string"},"sortOrder":{"type":"integer"},"teamName":{"type":"string"},"teamSlug":{"type":"string"},"houdiniLicenseMode":{"type":["string","null"],"enum":["commercial","education","indie","apprentice",null]}},"required":["id","name","description","houdiniVersion","platform","houdiniPath","scenePath","hipPath","envVars","envVarMethods","packageIds","disabledEnvVars","disabledPackageIds","bannerUrl","splashUrl","includeDefaultPackage","version","createdAt","updatedAt","teamId","sortOrder","teamName","teamSlug","houdiniLicenseMode"]}}},"required":["projects"]}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"422":{"description":"Validation error"}}},"post":{"tags":["Teams"],"summary":"Create team project","description":"Create a project for the team (team admin or org admin/owner). Each entry in `packageIds` is the package path `creatorSlug/packageSlug`. `disabledEnvVars` (env-var keys) and `disabledPackageIds` (package paths) are shared filter lists layered over `envVars` / `packageIds` — a disabled key/path still exists in the source list and is just skipped at launch; both default to `[]` when omitted. Rejects with 409 PROJECT_NAME_CONFLICT when the team already has a project of this name, and with 422 PACKAGE_NOT_PUBLISHABLE if any package is not accessible to other team members; the response `details.blockers` lists each problematic package by its `path` with a `reason` (NOT_FOUND, NOT_PUBLISHED, ARCHIVED, PRIVATE_OUTSIDE_ORG, REQUIRES_PAID_PLAN).","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"slug","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"teamSlug","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"description":{"type":["string","null"],"maxLength":2000},"houdiniVersion":{"type":["string","null"],"maxLength":50},"platform":{"type":["string","null"],"enum":["linux","windows","macos",null]},"houdiniPath":{"type":["string","null"],"maxLength":1000},"scenePath":{"type":["string","null"],"maxLength":1000},"hipPath":{"type":["string","null"],"maxLength":1000},"envVars":{"type":"object","additionalProperties":{"type":"string"}},"envVarMethods":{"type":"object","additionalProperties":{"type":"string","enum":["set","prepend","append"]}},"packageIds":{"type":"array","items":{"type":"string","minLength":1}},"disabledEnvVars":{"type":"array","items":{"type":"string","minLength":1}},"disabledPackageIds":{"type":"array","items":{"type":"string","minLength":1}},"bannerUrl":{"type":["string","null"],"maxLength":2000,"format":"uri"},"splashUrl":{"type":["string","null"],"maxLength":2000,"format":"uri"},"includeDefaultPackage":{"type":"boolean"}},"required":["name"]}}}},"responses":{"201":{"description":"Created project","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":["string","null"]},"houdiniVersion":{"type":["string","null"]},"platform":{"type":["string","null"],"enum":["LINUX","WINDOWS","MACOS","UNIVERSAL",null]},"houdiniPath":{"type":["string","null"]},"scenePath":{"type":["string","null"]},"hipPath":{"type":["string","null"]},"envVars":{"type":["object","null"],"additionalProperties":{}},"envVarMethods":{"type":["object","null"],"additionalProperties":{}},"packageIds":{"type":"array","items":{"type":"string"}},"disabledEnvVars":{"type":"array","items":{"type":"string"}},"disabledPackageIds":{"type":"array","items":{"type":"string"}},"bannerUrl":{"type":["string","null"]},"splashUrl":{"type":["string","null"]},"includeDefaultPackage":{"type":"boolean"},"version":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"teamId":{"type":"string"},"sortOrder":{"type":"integer"},"teamName":{"type":"string"},"teamSlug":{"type":"string"},"houdiniLicenseMode":{"type":["string","null"],"enum":["commercial","education","indie","apprentice",null]}},"required":["id","name","description","houdiniVersion","platform","houdiniPath","scenePath","hipPath","envVars","envVarMethods","packageIds","disabledEnvVars","disabledPackageIds","bannerUrl","splashUrl","includeDefaultPackage","version","createdAt","updatedAt","teamId","sortOrder","teamName","teamSlug","houdiniLicenseMode"]}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"409":{"description":"Conflict"},"422":{"description":"Validation error or unpublishable packages","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamProjectValidationError"}}}}}}},"/v1/organizations/{slug}/teams/{teamSlug}/projects/{projectId}":{"put":{"tags":["Teams"],"summary":"Update team project","description":"Update a team project (team admin or org admin/owner). Bumps version. Each entry in `packageIds` is the package path `creatorSlug/packageSlug`. `disabledEnvVars` / `disabledPackageIds` are shared filter lists layered over `envVars` / `packageIds` (a disabled key/path still exists in the source list, just skipped at launch); as with every field, an omitted key leaves the stored list untouched and an explicit `[]` clears it. Rejects with 422 PACKAGE_NOT_PUBLISHABLE if the resulting `packageIds` reference packages other team members cannot access; the response `details.blockers` lists each problematic package by its `path` with a `reason` (NOT_FOUND, NOT_PUBLISHED, ARCHIVED, PRIVATE_OUTSIDE_ORG, REQUIRES_PAID_PLAN). The check runs against the effective post-update list — i.e. the new list when `packageIds` is supplied, otherwise the existing list. A rename onto a name the team already uses is 409 PROJECT_NAME_CONFLICT.","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"slug","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"teamSlug","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"projectId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"description":{"type":["string","null"],"maxLength":2000},"houdiniVersion":{"type":["string","null"],"maxLength":50},"platform":{"type":["string","null"],"enum":["linux","windows","macos",null]},"houdiniPath":{"type":["string","null"],"maxLength":1000},"scenePath":{"type":["string","null"],"maxLength":1000},"hipPath":{"type":["string","null"],"maxLength":1000},"envVars":{"type":"object","additionalProperties":{"type":"string"}},"envVarMethods":{"type":"object","additionalProperties":{"type":"string","enum":["set","prepend","append"]}},"packageIds":{"type":"array","items":{"type":"string","minLength":1}},"disabledEnvVars":{"type":"array","items":{"type":"string","minLength":1}},"disabledPackageIds":{"type":"array","items":{"type":"string","minLength":1}},"bannerUrl":{"type":["string","null"],"maxLength":2000,"format":"uri"},"splashUrl":{"type":["string","null"],"maxLength":2000,"format":"uri"},"includeDefaultPackage":{"type":"boolean"}}}}}},"responses":{"200":{"description":"Updated project","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":["string","null"]},"houdiniVersion":{"type":["string","null"]},"platform":{"type":["string","null"],"enum":["LINUX","WINDOWS","MACOS","UNIVERSAL",null]},"houdiniPath":{"type":["string","null"]},"scenePath":{"type":["string","null"]},"hipPath":{"type":["string","null"]},"envVars":{"type":["object","null"],"additionalProperties":{}},"envVarMethods":{"type":["object","null"],"additionalProperties":{}},"packageIds":{"type":"array","items":{"type":"string"}},"disabledEnvVars":{"type":"array","items":{"type":"string"}},"disabledPackageIds":{"type":"array","items":{"type":"string"}},"bannerUrl":{"type":["string","null"]},"splashUrl":{"type":["string","null"]},"includeDefaultPackage":{"type":"boolean"},"version":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"teamId":{"type":"string"},"sortOrder":{"type":"integer"},"teamName":{"type":"string"},"teamSlug":{"type":"string"},"houdiniLicenseMode":{"type":["string","null"],"enum":["commercial","education","indie","apprentice",null]}},"required":["id","name","description","houdiniVersion","platform","houdiniPath","scenePath","hipPath","envVars","envVarMethods","packageIds","disabledEnvVars","disabledPackageIds","bannerUrl","splashUrl","includeDefaultPackage","version","createdAt","updatedAt","teamId","sortOrder","teamName","teamSlug","houdiniLicenseMode"]}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"409":{"description":"Conflict"},"422":{"description":"Validation error or unpublishable packages","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamProjectValidationError"}}}}}},"delete":{"tags":["Teams"],"summary":"Delete team project","description":"Delete a team project (team admin or org admin/owner).","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"slug","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"teamSlug","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"projectId","in":"path"}],"responses":{"200":{"description":"Deletion result","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"}},"required":["success"]}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"422":{"description":"Validation error"}}}},"/v1/organizations/{slug}/teams/{teamSlug}/projects/reorder":{"post":{"tags":["Teams"],"summary":"Reorder team projects","description":"Set the manual card order for a team (team admin or org admin/owner). `projectIds` is the full ordered list of the team's project ids, each exactly once; each project's `sortOrder` is written to its index. Ids not belonging to the team are rejected (404), as is a list that repeats an id (422) or leaves one of the team's projects out (400). Unlike edits this does NOT bump `version`, so it will not churn every member's draft-diff state.","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"slug","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"teamSlug","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"projectIds":{"type":"array","items":{"type":"string"},"maxItems":1000}},"required":["projectIds"]}}}},"responses":{"200":{"description":"Reorder result","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"}},"required":["success"]}}}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"422":{"description":"Validation error"}}}},"/v1/storage":{"get":{"tags":["Storage"],"summary":"List storage entries","description":"List S3-compatible and SideFX storage entries for the active creator. Pass ?organization=<slug> for an org you own or administer; otherwise lists entries on your personal creator.","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string"},"required":false,"name":"organization","in":"query"}],"responses":{"200":{"description":"List of storage entries","content":{"application/json":{"schema":{"type":"object","properties":{"storage":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","enum":["S3","SIDEFX"]},"name":{"type":"string"},"endpointUrl":{"type":["string","null"]},"bucket":{"type":["string","null"]},"region":{"type":["string","null"]},"pathPrefix":{"type":["string","null"]},"publicUrlBase":{"type":["string","null"]},"providerUsername":{"type":["string","null"]},"sidefxSource":{"type":["string","null"],"enum":["APP_CREDENTIALS","LINKED_LOGIN",null]},"metadata":{"type":["object","null"],"properties":{"email":{"type":"string"},"company_name":{"type":"string"}}},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","type","name","endpointUrl","bucket","region","pathPrefix","publicUrlBase","providerUsername","sidefxSource","metadata","createdAt","updatedAt"]}}},"required":["storage"]}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"422":{"description":"Validation error"}}},"post":{"tags":["Storage"],"summary":"Create a storage entry","description":"Add a new publishing destination for the active creator. Type S3 = an S3-compatible bucket; type SIDEFX = a SideFX user account (clientId + clientSecret from sidefx.com/services). Credentials are encrypted at rest. Pass ?organization=<slug> to add to an org creator you own or administer.","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string"},"required":false,"name":"organization","in":"query"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["S3"]},"name":{"type":"string","minLength":1,"maxLength":100},"endpointUrl":{"type":"string","format":"uri"},"bucket":{"type":"string","minLength":1,"maxLength":63},"region":{"type":"string","maxLength":50},"pathPrefix":{"type":"string","maxLength":500},"publicUrlBase":{"type":"string","format":"uri"},"accessKey":{"type":"string","minLength":1},"secretKey":{"type":"string","minLength":1}},"required":["type","name","endpointUrl","bucket","accessKey","secretKey"]},{"type":"object","properties":{"type":{"type":"string","enum":["SIDEFX"]},"name":{"type":"string","minLength":1,"maxLength":100},"sidefxSource":{"type":"string","enum":["APP_CREDENTIALS","LINKED_LOGIN"]},"clientId":{"type":"string","minLength":1},"clientSecret":{"type":"string","minLength":1}},"required":["type","name"]}]}}}},"responses":{"201":{"description":"Created storage entry","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","enum":["S3","SIDEFX"]},"name":{"type":"string"},"endpointUrl":{"type":["string","null"]},"bucket":{"type":["string","null"]},"region":{"type":["string","null"]},"pathPrefix":{"type":["string","null"]},"publicUrlBase":{"type":["string","null"]},"providerUsername":{"type":["string","null"]},"sidefxSource":{"type":["string","null"],"enum":["APP_CREDENTIALS","LINKED_LOGIN",null]},"metadata":{"type":["object","null"],"properties":{"email":{"type":"string"},"company_name":{"type":"string"}}},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","type","name","endpointUrl","bucket","region","pathPrefix","publicUrlBase","providerUsername","sidefxSource","metadata","createdAt","updatedAt"]}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"409":{"description":"Conflict"},"422":{"description":"Validation error"}}}},"/v1/storage/{storageId}":{"patch":{"tags":["Storage"],"summary":"Update a storage entry","description":"Update storage configuration. To rotate credentials, supply both fields (S3: accessKey + secretKey; SIDEFX: clientId + clientSecret). The body type discriminator must match the storage entry type.","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"storageId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["S3"]},"name":{"type":"string","minLength":1,"maxLength":100},"endpointUrl":{"type":"string","format":"uri"},"bucket":{"type":"string","minLength":1,"maxLength":63},"region":{"type":["string","null"],"maxLength":50},"pathPrefix":{"type":["string","null"],"maxLength":500},"publicUrlBase":{"type":["string","null"],"format":"uri"},"accessKey":{"type":"string","minLength":1},"secretKey":{"type":"string","minLength":1}},"required":["type"]},{"type":"object","properties":{"type":{"type":"string","enum":["SIDEFX"]},"name":{"type":"string","minLength":1,"maxLength":100},"clientId":{"type":"string","minLength":1},"clientSecret":{"type":"string","minLength":1}},"required":["type"]}]}}}},"responses":{"200":{"description":"Updated storage entry","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","enum":["S3","SIDEFX"]},"name":{"type":"string"},"endpointUrl":{"type":["string","null"]},"bucket":{"type":["string","null"]},"region":{"type":["string","null"]},"pathPrefix":{"type":["string","null"]},"publicUrlBase":{"type":["string","null"]},"providerUsername":{"type":["string","null"]},"sidefxSource":{"type":["string","null"],"enum":["APP_CREDENTIALS","LINKED_LOGIN",null]},"metadata":{"type":["object","null"],"properties":{"email":{"type":"string"},"company_name":{"type":"string"}}},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","type","name","endpointUrl","bucket","region","pathPrefix","publicUrlBase","providerUsername","sidefxSource","metadata","createdAt","updatedAt"]}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"409":{"description":"Conflict"},"422":{"description":"Validation error"}}},"delete":{"tags":["Storage"],"summary":"Delete a storage entry","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"storageId","in":"path"}],"responses":{"200":{"description":"Storage entry deleted","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"}},"required":["success"]}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"422":{"description":"Validation error"}}}},"/v1/storage/{storageId}/upload":{"post":{"tags":["Storage"],"summary":"Get a presigned PUT URL for an S3 storage entry","description":"Returns a short-lived presigned PUT URL so the client can upload an archive directly to the creator's S3-compatible bucket. The server signs the URL using the stored credentials (secrets never leave the backend). Only valid for type=S3 entries.","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"storageId","in":"path"},{"schema":{"type":"string","minLength":1,"maxLength":255,"pattern":"^[\\w.\\-]+$"},"required":true,"name":"filename","in":"query"},{"schema":{"type":"string","minLength":1,"maxLength":255},"required":false,"name":"contentType","in":"query"}],"responses":{"200":{"description":"Presigned PUT URL and derived public URL","content":{"application/json":{"schema":{"type":"object","properties":{"uploadUrl":{"type":"string"},"method":{"type":"string","enum":["PUT"]},"publicUrl":{"type":"string"},"bucket":{"type":"string"},"key":{"type":"string"},"contentType":{"type":"string"},"expiresInSeconds":{"type":"number"},"requiredHeaders":{"type":"object","additionalProperties":{"type":"string"}}},"required":["uploadUrl","method","publicUrl","bucket","key","contentType","expiresInSeconds","requiredHeaders"]}}}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"422":{"description":"Validation error"},"429":{"description":"Too many requests"}}}},"/v1/storage/{storageId}/sidefx-token":{"post":{"tags":["Storage"],"summary":"Get a SideFX access token","description":"Exchange the storage entry for a fresh SideFX access token. APP_CREDENTIALS entries mint from the stored OAuth app credentials; LINKED_LOGIN entries mint from the creator’s linked SideFX account. Returns a cached token if still valid. Supabase JWT auth only (not API tokens). Only valid for type=SIDEFX entries.","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"storageId","in":"path"}],"responses":{"200":{"description":"SideFX access token","content":{"application/json":{"schema":{"type":"object","properties":{"access_token":{"type":"string"},"expires_in":{"type":"number"}},"required":["access_token","expires_in"]}}}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"409":{"description":"Conflict"},"422":{"description":"Validation error"},"429":{"description":"Too many requests"},"502":{"description":"Upstream SideFX OAuth refresh failed (transient)"},"503":{"description":"Refresh in flight by a peer worker; retry shortly"}}}},"/v1/creator/packages":{"get":{"tags":["Creator"],"summary":"List creator packages","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"integer","minimum":1,"default":1},"required":false,"name":"page","in":"query"},{"schema":{"type":"integer","minimum":1,"maximum":100,"default":10},"required":false,"name":"limit","in":"query"},{"schema":{"type":["integer","null"],"minimum":0},"required":false,"name":"offset","in":"query"},{"schema":{"type":"string","enum":["DRAFT","PENDING_REVIEW","APPROVED","PUBLISHED","REJECTED","ARCHIVED"]},"required":false,"name":"status","in":"query"},{"schema":{"type":"string"},"required":false,"name":"organization","in":"query"},{"schema":{"type":"string","enum":["PRODUCT","REGISTRY_ONLY"]},"required":false,"name":"kind","in":"query"}],"responses":{"200":{"description":"Paginated creator packages","content":{"application/json":{"schema":{"type":"object","properties":{"packages":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"title":{"type":"string"},"tagline":{"type":["string","null"]},"access":{"type":"string","enum":["FREE","FREEMIUM","PAID"]},"status":{"type":"string","enum":["DRAFT","PENDING_REVIEW","APPROVED","PUBLISHED","REJECTED","ARCHIVED"]},"kind":{"type":"string","enum":["PRODUCT","REGISTRY_ONLY"]},"viewCount":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"thumbnailUrl":{"type":["string","null"]},"licenseCount":{"type":"integer"},"mediaCount":{"type":"integer"},"hasPendingDraft":{"type":"boolean"},"publishIssues":{"type":"array","items":{"type":"string"}}},"required":["path","title","tagline","access","status","kind","viewCount","createdAt","updatedAt","thumbnailUrl","licenseCount","mediaCount","hasPendingDraft","publishIssues"]}},"total":{"type":"integer"},"page":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"},"draftCount":{"type":"integer"},"draftLimit":{"type":"integer"}},"required":["packages","total","page","limit","totalPages","draftCount","draftLimit"]}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"422":{"description":"Validation error"}}},"post":{"tags":["Creator"],"summary":"Create package","description":"Creates a DRAFT product, or with `kind: REGISTRY_ONLY` a package that exists only in the registry: created PUBLISHED and FREE, with no page, media, posts or publish step, resolvable as soon as a version is registered.","security":[{"Bearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","minLength":3,"maxLength":100},"tagline":{"type":"string","maxLength":200},"slug":{"type":"string","minLength":3,"maxLength":100,"pattern":"^[a-z0-9-]+$"},"shortDescription":{"type":["string","null"],"maxLength":500},"richDoc":{},"coverOverlay":{"type":"object","properties":{"v":{"type":"integer","minimum":1},"doc":{},"anchor":{"type":"string","enum":["top","center","bottom"]},"align":{"type":"string","enum":["left","center","right"]},"width":{"type":"number","minimum":20,"maximum":100},"scrim":{"type":"string","enum":["none","bottom","left","right","full"]},"tone":{"type":"string","enum":["light","dark"]}},"additionalProperties":false},"access":{"type":"string","enum":["FREE","FREEMIUM","PAID"]},"includedInPlans":{"type":"boolean"},"tags":{"type":"array","items":{"type":"string","minLength":1,"maxLength":50},"maxItems":20},"visibility":{"type":"string","enum":["PUBLIC","PRIVATE"]},"organization":{"type":"string"},"kind":{"type":"string","enum":["PRODUCT","REGISTRY_ONLY"]}},"required":["title"],"additionalProperties":false}}}},"responses":{"201":{"description":"Created package","content":{"application/json":{"schema":{"type":"object","properties":{"path":{"type":"string"},"title":{"type":"string"},"status":{"type":"string","enum":["DRAFT","PENDING_REVIEW","APPROVED","PUBLISHED","REJECTED","ARCHIVED"]},"kind":{"type":"string","enum":["PRODUCT","REGISTRY_ONLY"]},"createdAt":{"type":"string","format":"date-time"}},"required":["path","title","status","kind","createdAt"]}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"409":{"description":"Conflict"},"422":{"description":"Validation error"}}}},"/v1/creator/packages/{creator}/{slug}":{"get":{"tags":["Creator"],"summary":"Get creator package","description":"Get package (creator view, includes all statuses).","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"creator","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"slug","in":"path"}],"responses":{"200":{"description":"Package details (creator view)","content":{"application/json":{"schema":{"type":"object","properties":{"path":{"type":"string"},"title":{"type":"string"},"tagline":{"type":["string","null"]},"shortDescription":{"type":["string","null"]},"richDescription":{"type":"string"},"coverOverlay":{},"productPage":{"type":["object","null"],"properties":{"token":{"type":"string"},"url":{"type":"string"},"finalizedAt":{"type":["string","null"],"format":"date-time"}},"required":["token","url","finalizedAt"]},"access":{"type":"string","enum":["FREE","FREEMIUM","PAID"]},"status":{"type":"string","enum":["DRAFT","PENDING_REVIEW","APPROVED","PUBLISHED","REJECTED","ARCHIVED"]},"kind":{"type":"string","enum":["PRODUCT","REGISTRY_ONLY"]},"visibility":{"type":"string","enum":["PUBLIC","PRIVATE"]},"hasPendingDraft":{"type":"boolean"},"tags":{"type":"array","items":{"type":"string"}},"viewCount":{"type":"integer"},"licenseCount":{"type":"integer"},"publishedAt":{"type":["string","null"],"format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"media":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"url":{"type":"string"},"mediaType":{"type":"string","enum":["IMAGE","VIDEO","THUMBNAIL","GALLERY"]},"thumbnailUrl":{"type":["string","null"]},"altText":{"type":["string","null"]},"sortOrder":{"type":"integer"}},"required":["id","url","mediaType","thumbnailUrl","altText","sortOrder"]}},"versions":{"type":"array","items":{"type":"object","properties":{"versionNumber":{"type":"string"},"changelog":{"type":["string","null"]},"isActive":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time"},"houdiniMinVersion":{"type":["string","null"]},"houdiniMaxVersion":{"type":["string","null"]},"builds":{"type":"array","items":{"type":"object","properties":{"fileSize":{"type":["number","null"]}},"required":["fileSize"]}}},"required":["versionNumber","changelog","isActive","createdAt","houdiniMinVersion","houdiniMaxVersion","builds"]}}},"required":["path","title","tagline","shortDescription","richDescription","productPage","access","status","kind","visibility","hasPendingDraft","tags","viewCount","licenseCount","publishedAt","createdAt","updatedAt","media","versions"]}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"422":{"description":"Validation error"}}},"patch":{"tags":["Creator"],"summary":"Update package","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"creator","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"slug","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","minLength":3,"maxLength":100},"tagline":{"type":"string","maxLength":200},"slug":{"type":"string","minLength":3,"maxLength":100,"pattern":"^[a-z0-9-]+$"},"shortDescription":{"type":["string","null"],"maxLength":500},"richDoc":{},"coverOverlay":{"type":"object","properties":{"v":{"type":"integer","minimum":1},"doc":{},"anchor":{"type":"string","enum":["top","center","bottom"]},"align":{"type":"string","enum":["left","center","right"]},"width":{"type":"number","minimum":20,"maximum":100},"scrim":{"type":"string","enum":["none","bottom","left","right","full"]},"tone":{"type":"string","enum":["light","dark"]}},"additionalProperties":false},"access":{"type":"string","enum":["FREE","FREEMIUM","PAID"]},"includedInPlans":{"type":"boolean"},"tags":{"type":"array","items":{"type":"string","minLength":1,"maxLength":50},"maxItems":20},"featured":{"type":"boolean"},"visibility":{"type":"string","enum":["PUBLIC","PRIVATE"]},"productPage":{"type":["string","null"],"pattern":"^[0-9a-f]{32}$"}},"additionalProperties":false}}}},"responses":{"200":{"description":"Updated package","content":{"application/json":{"schema":{"type":"object","properties":{"path":{"type":"string"},"title":{"type":"string"},"status":{"type":"string","enum":["DRAFT","PENDING_REVIEW","APPROVED","PUBLISHED","REJECTED","ARCHIVED"]},"updatedAt":{"type":"string","format":"date-time"},"staged":{"type":"boolean"},"document":{"type":"object","properties":{"path":{"type":"string"},"slug":{"type":"string"},"title":{"type":"string"},"tagline":{"type":["string","null"]},"shortDescription":{"type":["string","null"]},"richDoc":{},"coverOverlay":{},"productPage":{"type":["object","null"],"properties":{"token":{"type":"string"},"url":{"type":"string"},"finalizedAt":{"type":["string","null"],"format":"date-time"}},"required":["token","url","finalizedAt"]},"liveProductPage":{"type":["object","null"],"properties":{"token":{"type":"string"},"url":{"type":"string"},"finalizedAt":{"type":["string","null"],"format":"date-time"}},"required":["token","url","finalizedAt"]},"access":{"type":"string","enum":["FREE","FREEMIUM","PAID"]},"includedInPlans":{"type":"boolean"},"tags":{"type":"array","items":{"type":"string"}},"featured":{"type":"boolean"},"visibility":{"type":"string","enum":["PUBLIC","PRIVATE"]},"status":{"type":"string","enum":["DRAFT","PENDING_REVIEW","APPROVED","PUBLISHED","REJECTED","ARCHIVED"]},"publishedAt":{"type":["string","null"],"format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"viewCount":{"type":"integer"},"licenseCount":{"type":"integer"},"hasPendingDraft":{"type":"boolean"},"creator":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"avatarUrl":{"type":["string","null"]}},"required":["slug","name","avatarUrl"]},"media":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"url":{"type":"string"},"thumbnailUrl":{"type":["string","null"]},"mediaType":{"type":"string","enum":["IMAGE","VIDEO","THUMBNAIL","GALLERY"]},"altText":{"type":["string","null"]},"state":{"type":"string","enum":["LIVE","DRAFT_ADDED","DRAFT_DELETED"]},"sortOrder":{"type":"integer"},"draftSortOrder":{"type":["integer","null"]},"effectiveSortOrder":{"type":"integer"},"isPendingThumbnail":{"type":"boolean"},"isCover":{"type":"boolean"},"isPendingCover":{"type":"boolean"},"isPendingCoverRemoval":{"type":"boolean"}},"required":["id","url","thumbnailUrl","mediaType","altText","state","sortOrder","draftSortOrder","effectiveSortOrder","isPendingThumbnail","isCover","isPendingCover","isPendingCoverRemoval"]}}},"required":["path","slug","title","tagline","shortDescription","productPage","liveProductPage","access","includedInPlans","tags","featured","visibility","status","publishedAt","createdAt","updatedAt","viewCount","licenseCount","hasPendingDraft","creator","media"]}},"required":["path","title","status","updatedAt","staged","document"]}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"409":{"description":"Conflict"},"422":{"description":"Validation error"}}},"delete":{"tags":["Creator"],"summary":"Delete/archive package","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"creator","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"slug","in":"path"}],"responses":{"200":{"description":"Delete/archive result","content":{"application/json":{"schema":{"type":"object","properties":{"archived":{"type":"boolean"},"deleted":{"type":"boolean"},"issuedLicenses":{"type":"integer"}},"required":["archived","deleted","issuedLicenses"]}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"409":{"description":"Conflict"},"422":{"description":"Validation error"}}}},"/v1/creator/packages/{creator}/{slug}/editor":{"get":{"tags":["Creator"],"summary":"Editor document","description":"The package as its editor sees it: draft-merged fields, media in every state with their staged designations, and whether anything is pending publish. Every editor mutation answers with the same document.","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"creator","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"slug","in":"path"}],"responses":{"200":{"description":"Editor document","content":{"application/json":{"schema":{"type":"object","properties":{"path":{"type":"string"},"slug":{"type":"string"},"title":{"type":"string"},"tagline":{"type":["string","null"]},"shortDescription":{"type":["string","null"]},"richDoc":{},"coverOverlay":{},"productPage":{"type":["object","null"],"properties":{"token":{"type":"string"},"url":{"type":"string"},"finalizedAt":{"type":["string","null"],"format":"date-time"}},"required":["token","url","finalizedAt"]},"liveProductPage":{"type":["object","null"],"properties":{"token":{"type":"string"},"url":{"type":"string"},"finalizedAt":{"type":["string","null"],"format":"date-time"}},"required":["token","url","finalizedAt"]},"access":{"type":"string","enum":["FREE","FREEMIUM","PAID"]},"includedInPlans":{"type":"boolean"},"tags":{"type":"array","items":{"type":"string"}},"featured":{"type":"boolean"},"visibility":{"type":"string","enum":["PUBLIC","PRIVATE"]},"status":{"type":"string","enum":["DRAFT","PENDING_REVIEW","APPROVED","PUBLISHED","REJECTED","ARCHIVED"]},"publishedAt":{"type":["string","null"],"format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"viewCount":{"type":"integer"},"licenseCount":{"type":"integer"},"hasPendingDraft":{"type":"boolean"},"creator":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"avatarUrl":{"type":["string","null"]}},"required":["slug","name","avatarUrl"]},"media":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"url":{"type":"string"},"thumbnailUrl":{"type":["string","null"]},"mediaType":{"type":"string","enum":["IMAGE","VIDEO","THUMBNAIL","GALLERY"]},"altText":{"type":["string","null"]},"state":{"type":"string","enum":["LIVE","DRAFT_ADDED","DRAFT_DELETED"]},"sortOrder":{"type":"integer"},"draftSortOrder":{"type":["integer","null"]},"effectiveSortOrder":{"type":"integer"},"isPendingThumbnail":{"type":"boolean"},"isCover":{"type":"boolean"},"isPendingCover":{"type":"boolean"},"isPendingCoverRemoval":{"type":"boolean"}},"required":["id","url","thumbnailUrl","mediaType","altText","state","sortOrder","draftSortOrder","effectiveSortOrder","isPendingThumbnail","isCover","isPendingCover","isPendingCoverRemoval"]}}},"required":["path","slug","title","tagline","shortDescription","productPage","liveProductPage","access","includedInPlans","tags","featured","visibility","status","publishedAt","createdAt","updatedAt","viewCount","licenseCount","hasPendingDraft","creator","media"]}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not found"}}}},"/v1/creator/packages/{creator}/{slug}/draft":{"delete":{"tags":["Creator"],"summary":"Discard staged changes","description":"Drops every change staged on a PUBLISHED package — the draft fields, media additions, deletions and reorders — and the uploads only they referenced. Nothing staged is a no-op.","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"creator","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"slug","in":"path"}],"responses":{"200":{"description":"Staged changes discarded","content":{"application/json":{"schema":{"type":"object","properties":{"discarded":{"type":"boolean","enum":[true]},"document":{"type":"object","properties":{"path":{"type":"string"},"slug":{"type":"string"},"title":{"type":"string"},"tagline":{"type":["string","null"]},"shortDescription":{"type":["string","null"]},"richDoc":{},"coverOverlay":{},"productPage":{"type":["object","null"],"properties":{"token":{"type":"string"},"url":{"type":"string"},"finalizedAt":{"type":["string","null"],"format":"date-time"}},"required":["token","url","finalizedAt"]},"liveProductPage":{"type":["object","null"],"properties":{"token":{"type":"string"},"url":{"type":"string"},"finalizedAt":{"type":["string","null"],"format":"date-time"}},"required":["token","url","finalizedAt"]},"access":{"type":"string","enum":["FREE","FREEMIUM","PAID"]},"includedInPlans":{"type":"boolean"},"tags":{"type":"array","items":{"type":"string"}},"featured":{"type":"boolean"},"visibility":{"type":"string","enum":["PUBLIC","PRIVATE"]},"status":{"type":"string","enum":["DRAFT","PENDING_REVIEW","APPROVED","PUBLISHED","REJECTED","ARCHIVED"]},"publishedAt":{"type":["string","null"],"format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"viewCount":{"type":"integer"},"licenseCount":{"type":"integer"},"hasPendingDraft":{"type":"boolean"},"creator":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"avatarUrl":{"type":["string","null"]}},"required":["slug","name","avatarUrl"]},"media":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"url":{"type":"string"},"thumbnailUrl":{"type":["string","null"]},"mediaType":{"type":"string","enum":["IMAGE","VIDEO","THUMBNAIL","GALLERY"]},"altText":{"type":["string","null"]},"state":{"type":"string","enum":["LIVE","DRAFT_ADDED","DRAFT_DELETED"]},"sortOrder":{"type":"integer"},"draftSortOrder":{"type":["integer","null"]},"effectiveSortOrder":{"type":"integer"},"isPendingThumbnail":{"type":"boolean"},"isCover":{"type":"boolean"},"isPendingCover":{"type":"boolean"},"isPendingCoverRemoval":{"type":"boolean"}},"required":["id","url","thumbnailUrl","mediaType","altText","state","sortOrder","draftSortOrder","effectiveSortOrder","isPendingThumbnail","isCover","isPendingCover","isPendingCoverRemoval"]}}},"required":["path","slug","title","tagline","shortDescription","productPage","liveProductPage","access","includedInPlans","tags","featured","visibility","status","publishedAt","createdAt","updatedAt","viewCount","licenseCount","hasPendingDraft","creator","media"]}},"required":["discarded","document"]}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not found"}}}},"/v1/creator/packages/{creator}/{slug}/publish":{"post":{"tags":["Creator"],"summary":"Publish package","description":"Promote a DRAFT package or flush a draft buffer on a PUBLISHED package. Idempotent: republishing a PUBLISHED package with no pending changes is a no-op (returns 200 with kind=\"noop\") and does not run readiness validation.","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"creator","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"slug","in":"path"}],"responses":{"200":{"description":"Published package","content":{"application/json":{"schema":{"type":"object","properties":{"path":{"type":"string"},"title":{"type":"string"},"status":{"type":"string","enum":["DRAFT","PENDING_REVIEW","APPROVED","PUBLISHED","REJECTED","ARCHIVED"]},"publishedAt":{"type":["string","null"],"format":"date-time"},"kind":{"type":"string","enum":["first_publish","update_publish","noop"]}},"required":["path","title","status","publishedAt","kind"]}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"409":{"description":"Conflict"},"422":{"description":"Validation error"}}},"delete":{"tags":["Creator"],"summary":"Unpublish package","description":"Unpublish/archive a package.","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"creator","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"slug","in":"path"}],"responses":{"200":{"description":"Unpublished package","content":{"application/json":{"schema":{"type":"object","properties":{"path":{"type":"string"},"title":{"type":"string"},"status":{"type":"string","enum":["DRAFT","PENDING_REVIEW","APPROVED","PUBLISHED","REJECTED","ARCHIVED"]},"updatedAt":{"type":"string","format":"date-time"},"issuedLicenses":{"type":"integer"}},"required":["path","title","status","updatedAt","issuedLicenses"]}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"409":{"description":"Conflict"},"422":{"description":"Validation error"}}}},"/v1/creator/packages/{creator}/{slug}/media":{"post":{"tags":["Creator"],"summary":"Attach media to package","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"creator","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"slug","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"files":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1},"originalName":{"type":"string"},"mediaType":{"type":"string","enum":["IMAGE","VIDEO"],"default":"IMAGE"},"posterKey":{"type":"string","minLength":1},"cropData":{"type":"object","properties":{"x":{"type":"number","minimum":0,"maximum":1},"y":{"type":"number","minimum":0,"maximum":1},"w":{"type":"number","exclusiveMinimum":0,"maximum":1},"h":{"type":"number","exclusiveMinimum":0,"maximum":1}},"required":["x","y","w","h"]}},"required":["key"]},"minItems":1,"maxItems":10}},"required":["files"]}}}},"responses":{"201":{"description":"Attached media","content":{"application/json":{"schema":{"type":"object","properties":{"media":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"url":{"type":"string"},"thumbnailUrl":{"type":["string","null"]},"mediaType":{"type":"string","enum":["IMAGE","VIDEO","THUMBNAIL","GALLERY"]},"sortOrder":{"type":"integer"},"state":{"type":"string","enum":["LIVE","DRAFT_ADDED","DRAFT_DELETED"]},"cropData":{}},"required":["id","url","thumbnailUrl","mediaType","sortOrder","state"]}},"document":{"type":"object","properties":{"path":{"type":"string"},"slug":{"type":"string"},"title":{"type":"string"},"tagline":{"type":["string","null"]},"shortDescription":{"type":["string","null"]},"richDoc":{},"coverOverlay":{},"productPage":{"type":["object","null"],"properties":{"token":{"type":"string"},"url":{"type":"string"},"finalizedAt":{"type":["string","null"],"format":"date-time"}},"required":["token","url","finalizedAt"]},"liveProductPage":{"type":["object","null"],"properties":{"token":{"type":"string"},"url":{"type":"string"},"finalizedAt":{"type":["string","null"],"format":"date-time"}},"required":["token","url","finalizedAt"]},"access":{"type":"string","enum":["FREE","FREEMIUM","PAID"]},"includedInPlans":{"type":"boolean"},"tags":{"type":"array","items":{"type":"string"}},"featured":{"type":"boolean"},"visibility":{"type":"string","enum":["PUBLIC","PRIVATE"]},"status":{"type":"string","enum":["DRAFT","PENDING_REVIEW","APPROVED","PUBLISHED","REJECTED","ARCHIVED"]},"publishedAt":{"type":["string","null"],"format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"viewCount":{"type":"integer"},"licenseCount":{"type":"integer"},"hasPendingDraft":{"type":"boolean"},"creator":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"avatarUrl":{"type":["string","null"]}},"required":["slug","name","avatarUrl"]},"media":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"url":{"type":"string"},"thumbnailUrl":{"type":["string","null"]},"mediaType":{"type":"string","enum":["IMAGE","VIDEO","THUMBNAIL","GALLERY"]},"altText":{"type":["string","null"]},"state":{"type":"string","enum":["LIVE","DRAFT_ADDED","DRAFT_DELETED"]},"sortOrder":{"type":"integer"},"draftSortOrder":{"type":["integer","null"]},"effectiveSortOrder":{"type":"integer"},"isPendingThumbnail":{"type":"boolean"},"isCover":{"type":"boolean"},"isPendingCover":{"type":"boolean"},"isPendingCoverRemoval":{"type":"boolean"}},"required":["id","url","thumbnailUrl","mediaType","altText","state","sortOrder","draftSortOrder","effectiveSortOrder","isPendingThumbnail","isCover","isPendingCover","isPendingCoverRemoval"]}}},"required":["path","slug","title","tagline","shortDescription","productPage","liveProductPage","access","includedInPlans","tags","featured","visibility","status","publishedAt","createdAt","updatedAt","viewCount","licenseCount","hasPendingDraft","creator","media"]}},"required":["media","document"]}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"422":{"description":"Validation error"}}}},"/v1/creator/packages/{creator}/{slug}/media/presign":{"post":{"tags":["Creator"],"summary":"Presign media upload","description":"Get a presigned S3 URL for uploading package media.","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"creator","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"slug","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"fileName":{"type":"string","minLength":1},"contentType":{"type":"string","enum":["image/jpeg","image/png","image/webp","image/gif","video/mp4","video/webm"]},"target":{"type":"string","enum":["gallery","description","cover-overlay","post"],"default":"gallery"}},"required":["fileName","contentType"]}}}},"responses":{"200":{"description":"Presigned upload URL and metadata","content":{"application/json":{"schema":{"type":"object","properties":{"upload":{"type":"object","properties":{"url":{"type":"string"},"method":{"type":"string","enum":["PUT"]},"bucket":{"type":"string"},"key":{"type":"string"},"expiresInSeconds":{"type":"integer"}},"required":["url","method","bucket","key","expiresInSeconds"]},"cdnBaseUrl":{"type":["string","null"]}},"required":["upload","cdnBaseUrl"]}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"422":{"description":"Validation error"}}}},"/v1/creator/packages/{creator}/{slug}/media/{mediaId}":{"delete":{"tags":["Creator"],"summary":"Delete media item","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"creator","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"slug","in":"path"},{"schema":{"type":"string"},"required":true,"name":"mediaId","in":"path"}],"responses":{"200":{"description":"Deleted media item","content":{"application/json":{"schema":{"type":"object","properties":{"deleted":{"type":"boolean"},"staged":{"type":"boolean"},"document":{"type":"object","properties":{"path":{"type":"string"},"slug":{"type":"string"},"title":{"type":"string"},"tagline":{"type":["string","null"]},"shortDescription":{"type":["string","null"]},"richDoc":{},"coverOverlay":{},"productPage":{"type":["object","null"],"properties":{"token":{"type":"string"},"url":{"type":"string"},"finalizedAt":{"type":["string","null"],"format":"date-time"}},"required":["token","url","finalizedAt"]},"liveProductPage":{"type":["object","null"],"properties":{"token":{"type":"string"},"url":{"type":"string"},"finalizedAt":{"type":["string","null"],"format":"date-time"}},"required":["token","url","finalizedAt"]},"access":{"type":"string","enum":["FREE","FREEMIUM","PAID"]},"includedInPlans":{"type":"boolean"},"tags":{"type":"array","items":{"type":"string"}},"featured":{"type":"boolean"},"visibility":{"type":"string","enum":["PUBLIC","PRIVATE"]},"status":{"type":"string","enum":["DRAFT","PENDING_REVIEW","APPROVED","PUBLISHED","REJECTED","ARCHIVED"]},"publishedAt":{"type":["string","null"],"format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"viewCount":{"type":"integer"},"licenseCount":{"type":"integer"},"hasPendingDraft":{"type":"boolean"},"creator":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"avatarUrl":{"type":["string","null"]}},"required":["slug","name","avatarUrl"]},"media":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"url":{"type":"string"},"thumbnailUrl":{"type":["string","null"]},"mediaType":{"type":"string","enum":["IMAGE","VIDEO","THUMBNAIL","GALLERY"]},"altText":{"type":["string","null"]},"state":{"type":"string","enum":["LIVE","DRAFT_ADDED","DRAFT_DELETED"]},"sortOrder":{"type":"integer"},"draftSortOrder":{"type":["integer","null"]},"effectiveSortOrder":{"type":"integer"},"isPendingThumbnail":{"type":"boolean"},"isCover":{"type":"boolean"},"isPendingCover":{"type":"boolean"},"isPendingCoverRemoval":{"type":"boolean"}},"required":["id","url","thumbnailUrl","mediaType","altText","state","sortOrder","draftSortOrder","effectiveSortOrder","isPendingThumbnail","isCover","isPendingCover","isPendingCoverRemoval"]}}},"required":["path","slug","title","tagline","shortDescription","productPage","liveProductPage","access","includedInPlans","tags","featured","visibility","status","publishedAt","createdAt","updatedAt","viewCount","licenseCount","hasPendingDraft","creator","media"]}},"required":["deleted","staged","document"]}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not found"}}}},"/v1/creator/packages/{creator}/{slug}/media/{mediaId}/thumbnail":{"post":{"tags":["Creator"],"summary":"Set media as thumbnail","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"creator","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"slug","in":"path"},{"schema":{"type":"string"},"required":true,"name":"mediaId","in":"path"}],"responses":{"200":{"description":"Thumbnail updated","content":{"application/json":{"schema":{"type":"object","properties":{"mediaId":{"type":"string"},"mediaType":{"type":"string","enum":["THUMBNAIL"]},"staged":{"type":"boolean"},"document":{"type":"object","properties":{"path":{"type":"string"},"slug":{"type":"string"},"title":{"type":"string"},"tagline":{"type":["string","null"]},"shortDescription":{"type":["string","null"]},"richDoc":{},"coverOverlay":{},"productPage":{"type":["object","null"],"properties":{"token":{"type":"string"},"url":{"type":"string"},"finalizedAt":{"type":["string","null"],"format":"date-time"}},"required":["token","url","finalizedAt"]},"liveProductPage":{"type":["object","null"],"properties":{"token":{"type":"string"},"url":{"type":"string"},"finalizedAt":{"type":["string","null"],"format":"date-time"}},"required":["token","url","finalizedAt"]},"access":{"type":"string","enum":["FREE","FREEMIUM","PAID"]},"includedInPlans":{"type":"boolean"},"tags":{"type":"array","items":{"type":"string"}},"featured":{"type":"boolean"},"visibility":{"type":"string","enum":["PUBLIC","PRIVATE"]},"status":{"type":"string","enum":["DRAFT","PENDING_REVIEW","APPROVED","PUBLISHED","REJECTED","ARCHIVED"]},"publishedAt":{"type":["string","null"],"format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"viewCount":{"type":"integer"},"licenseCount":{"type":"integer"},"hasPendingDraft":{"type":"boolean"},"creator":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"avatarUrl":{"type":["string","null"]}},"required":["slug","name","avatarUrl"]},"media":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"url":{"type":"string"},"thumbnailUrl":{"type":["string","null"]},"mediaType":{"type":"string","enum":["IMAGE","VIDEO","THUMBNAIL","GALLERY"]},"altText":{"type":["string","null"]},"state":{"type":"string","enum":["LIVE","DRAFT_ADDED","DRAFT_DELETED"]},"sortOrder":{"type":"integer"},"draftSortOrder":{"type":["integer","null"]},"effectiveSortOrder":{"type":"integer"},"isPendingThumbnail":{"type":"boolean"},"isCover":{"type":"boolean"},"isPendingCover":{"type":"boolean"},"isPendingCoverRemoval":{"type":"boolean"}},"required":["id","url","thumbnailUrl","mediaType","altText","state","sortOrder","draftSortOrder","effectiveSortOrder","isPendingThumbnail","isCover","isPendingCover","isPendingCoverRemoval"]}}},"required":["path","slug","title","tagline","shortDescription","productPage","liveProductPage","access","includedInPlans","tags","featured","visibility","status","publishedAt","createdAt","updatedAt","viewCount","licenseCount","hasPendingDraft","creator","media"]}},"required":["mediaId","staged","document"]}}}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not found"}}}},"/v1/creator/packages/{creator}/{slug}/media/{mediaId}/cover":{"put":{"tags":["Creator"],"summary":"Set media as carousel cover","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"creator","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"slug","in":"path"},{"schema":{"type":"string"},"required":true,"name":"mediaId","in":"path"}],"responses":{"200":{"description":"Cover updated","content":{"application/json":{"schema":{"type":"object","properties":{"mediaId":{"type":"string"},"staged":{"type":"boolean"},"document":{"type":"object","properties":{"path":{"type":"string"},"slug":{"type":"string"},"title":{"type":"string"},"tagline":{"type":["string","null"]},"shortDescription":{"type":["string","null"]},"richDoc":{},"coverOverlay":{},"productPage":{"type":["object","null"],"properties":{"token":{"type":"string"},"url":{"type":"string"},"finalizedAt":{"type":["string","null"],"format":"date-time"}},"required":["token","url","finalizedAt"]},"liveProductPage":{"type":["object","null"],"properties":{"token":{"type":"string"},"url":{"type":"string"},"finalizedAt":{"type":["string","null"],"format":"date-time"}},"required":["token","url","finalizedAt"]},"access":{"type":"string","enum":["FREE","FREEMIUM","PAID"]},"includedInPlans":{"type":"boolean"},"tags":{"type":"array","items":{"type":"string"}},"featured":{"type":"boolean"},"visibility":{"type":"string","enum":["PUBLIC","PRIVATE"]},"status":{"type":"string","enum":["DRAFT","PENDING_REVIEW","APPROVED","PUBLISHED","REJECTED","ARCHIVED"]},"publishedAt":{"type":["string","null"],"format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"viewCount":{"type":"integer"},"licenseCount":{"type":"integer"},"hasPendingDraft":{"type":"boolean"},"creator":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"avatarUrl":{"type":["string","null"]}},"required":["slug","name","avatarUrl"]},"media":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"url":{"type":"string"},"thumbnailUrl":{"type":["string","null"]},"mediaType":{"type":"string","enum":["IMAGE","VIDEO","THUMBNAIL","GALLERY"]},"altText":{"type":["string","null"]},"state":{"type":"string","enum":["LIVE","DRAFT_ADDED","DRAFT_DELETED"]},"sortOrder":{"type":"integer"},"draftSortOrder":{"type":["integer","null"]},"effectiveSortOrder":{"type":"integer"},"isPendingThumbnail":{"type":"boolean"},"isCover":{"type":"boolean"},"isPendingCover":{"type":"boolean"},"isPendingCoverRemoval":{"type":"boolean"}},"required":["id","url","thumbnailUrl","mediaType","altText","state","sortOrder","draftSortOrder","effectiveSortOrder","isPendingThumbnail","isCover","isPendingCover","isPendingCoverRemoval"]}}},"required":["path","slug","title","tagline","shortDescription","productPage","liveProductPage","access","includedInPlans","tags","featured","visibility","status","publishedAt","createdAt","updatedAt","viewCount","licenseCount","hasPendingDraft","creator","media"]}},"required":["mediaId","staged","document"]}}}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not found"}}},"delete":{"tags":["Creator"],"summary":"Clear the carousel cover","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"creator","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"slug","in":"path"},{"schema":{"type":"string"},"required":true,"name":"mediaId","in":"path"}],"responses":{"200":{"description":"Cover cleared","content":{"application/json":{"schema":{"type":"object","properties":{"cleared":{"type":"boolean"},"staged":{"type":"boolean"},"document":{"type":"object","properties":{"path":{"type":"string"},"slug":{"type":"string"},"title":{"type":"string"},"tagline":{"type":["string","null"]},"shortDescription":{"type":["string","null"]},"richDoc":{},"coverOverlay":{},"productPage":{"type":["object","null"],"properties":{"token":{"type":"string"},"url":{"type":"string"},"finalizedAt":{"type":["string","null"],"format":"date-time"}},"required":["token","url","finalizedAt"]},"liveProductPage":{"type":["object","null"],"properties":{"token":{"type":"string"},"url":{"type":"string"},"finalizedAt":{"type":["string","null"],"format":"date-time"}},"required":["token","url","finalizedAt"]},"access":{"type":"string","enum":["FREE","FREEMIUM","PAID"]},"includedInPlans":{"type":"boolean"},"tags":{"type":"array","items":{"type":"string"}},"featured":{"type":"boolean"},"visibility":{"type":"string","enum":["PUBLIC","PRIVATE"]},"status":{"type":"string","enum":["DRAFT","PENDING_REVIEW","APPROVED","PUBLISHED","REJECTED","ARCHIVED"]},"publishedAt":{"type":["string","null"],"format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"viewCount":{"type":"integer"},"licenseCount":{"type":"integer"},"hasPendingDraft":{"type":"boolean"},"creator":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"avatarUrl":{"type":["string","null"]}},"required":["slug","name","avatarUrl"]},"media":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"url":{"type":"string"},"thumbnailUrl":{"type":["string","null"]},"mediaType":{"type":"string","enum":["IMAGE","VIDEO","THUMBNAIL","GALLERY"]},"altText":{"type":["string","null"]},"state":{"type":"string","enum":["LIVE","DRAFT_ADDED","DRAFT_DELETED"]},"sortOrder":{"type":"integer"},"draftSortOrder":{"type":["integer","null"]},"effectiveSortOrder":{"type":"integer"},"isPendingThumbnail":{"type":"boolean"},"isCover":{"type":"boolean"},"isPendingCover":{"type":"boolean"},"isPendingCoverRemoval":{"type":"boolean"}},"required":["id","url","thumbnailUrl","mediaType","altText","state","sortOrder","draftSortOrder","effectiveSortOrder","isPendingThumbnail","isCover","isPendingCover","isPendingCoverRemoval"]}}},"required":["path","slug","title","tagline","shortDescription","productPage","liveProductPage","access","includedInPlans","tags","featured","visibility","status","publishedAt","createdAt","updatedAt","viewCount","licenseCount","hasPendingDraft","creator","media"]}},"required":["cleared","staged","document"]}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not found"}}}},"/v1/creator/packages/{creator}/{slug}/media/reorder":{"post":{"tags":["Creator"],"summary":"Reorder media items","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"creator","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"slug","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"order":{"type":"array","items":{"type":"string"},"minItems":1}},"required":["order"]}}}},"responses":{"200":{"description":"Reordered media","content":{"application/json":{"schema":{"type":"object","properties":{"reordered":{"type":"boolean"},"document":{"type":"object","properties":{"path":{"type":"string"},"slug":{"type":"string"},"title":{"type":"string"},"tagline":{"type":["string","null"]},"shortDescription":{"type":["string","null"]},"richDoc":{},"coverOverlay":{},"productPage":{"type":["object","null"],"properties":{"token":{"type":"string"},"url":{"type":"string"},"finalizedAt":{"type":["string","null"],"format":"date-time"}},"required":["token","url","finalizedAt"]},"liveProductPage":{"type":["object","null"],"properties":{"token":{"type":"string"},"url":{"type":"string"},"finalizedAt":{"type":["string","null"],"format":"date-time"}},"required":["token","url","finalizedAt"]},"access":{"type":"string","enum":["FREE","FREEMIUM","PAID"]},"includedInPlans":{"type":"boolean"},"tags":{"type":"array","items":{"type":"string"}},"featured":{"type":"boolean"},"visibility":{"type":"string","enum":["PUBLIC","PRIVATE"]},"status":{"type":"string","enum":["DRAFT","PENDING_REVIEW","APPROVED","PUBLISHED","REJECTED","ARCHIVED"]},"publishedAt":{"type":["string","null"],"format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"viewCount":{"type":"integer"},"licenseCount":{"type":"integer"},"hasPendingDraft":{"type":"boolean"},"creator":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"avatarUrl":{"type":["string","null"]}},"required":["slug","name","avatarUrl"]},"media":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"url":{"type":"string"},"thumbnailUrl":{"type":["string","null"]},"mediaType":{"type":"string","enum":["IMAGE","VIDEO","THUMBNAIL","GALLERY"]},"altText":{"type":["string","null"]},"state":{"type":"string","enum":["LIVE","DRAFT_ADDED","DRAFT_DELETED"]},"sortOrder":{"type":"integer"},"draftSortOrder":{"type":["integer","null"]},"effectiveSortOrder":{"type":"integer"},"isPendingThumbnail":{"type":"boolean"},"isCover":{"type":"boolean"},"isPendingCover":{"type":"boolean"},"isPendingCoverRemoval":{"type":"boolean"}},"required":["id","url","thumbnailUrl","mediaType","altText","state","sortOrder","draftSortOrder","effectiveSortOrder","isPendingThumbnail","isCover","isPendingCover","isPendingCoverRemoval"]}}},"required":["path","slug","title","tagline","shortDescription","productPage","liveProductPage","access","includedInPlans","tags","featured","visibility","status","publishedAt","createdAt","updatedAt","viewCount","licenseCount","hasPendingDraft","creator","media"]}},"required":["reordered","document"]}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"422":{"description":"Validation error"}}}},"/v1/creator/packages/{creator}/{slug}/media/{mediaId}/restore":{"post":{"tags":["Creator"],"summary":"Restore media staged for deletion","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"creator","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"slug","in":"path"},{"schema":{"type":"string"},"required":true,"name":"mediaId","in":"path"}],"responses":{"200":{"description":"Restored, or already live","content":{"application/json":{"schema":{"type":"object","properties":{"restored":{"type":"boolean"},"document":{"type":"object","properties":{"path":{"type":"string"},"slug":{"type":"string"},"title":{"type":"string"},"tagline":{"type":["string","null"]},"shortDescription":{"type":["string","null"]},"richDoc":{},"coverOverlay":{},"productPage":{"type":["object","null"],"properties":{"token":{"type":"string"},"url":{"type":"string"},"finalizedAt":{"type":["string","null"],"format":"date-time"}},"required":["token","url","finalizedAt"]},"liveProductPage":{"type":["object","null"],"properties":{"token":{"type":"string"},"url":{"type":"string"},"finalizedAt":{"type":["string","null"],"format":"date-time"}},"required":["token","url","finalizedAt"]},"access":{"type":"string","enum":["FREE","FREEMIUM","PAID"]},"includedInPlans":{"type":"boolean"},"tags":{"type":"array","items":{"type":"string"}},"featured":{"type":"boolean"},"visibility":{"type":"string","enum":["PUBLIC","PRIVATE"]},"status":{"type":"string","enum":["DRAFT","PENDING_REVIEW","APPROVED","PUBLISHED","REJECTED","ARCHIVED"]},"publishedAt":{"type":["string","null"],"format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"viewCount":{"type":"integer"},"licenseCount":{"type":"integer"},"hasPendingDraft":{"type":"boolean"},"creator":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"avatarUrl":{"type":["string","null"]}},"required":["slug","name","avatarUrl"]},"media":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"url":{"type":"string"},"thumbnailUrl":{"type":["string","null"]},"mediaType":{"type":"string","enum":["IMAGE","VIDEO","THUMBNAIL","GALLERY"]},"altText":{"type":["string","null"]},"state":{"type":"string","enum":["LIVE","DRAFT_ADDED","DRAFT_DELETED"]},"sortOrder":{"type":"integer"},"draftSortOrder":{"type":["integer","null"]},"effectiveSortOrder":{"type":"integer"},"isPendingThumbnail":{"type":"boolean"},"isCover":{"type":"boolean"},"isPendingCover":{"type":"boolean"},"isPendingCoverRemoval":{"type":"boolean"}},"required":["id","url","thumbnailUrl","mediaType","altText","state","sortOrder","draftSortOrder","effectiveSortOrder","isPendingThumbnail","isCover","isPendingCover","isPendingCoverRemoval"]}}},"required":["path","slug","title","tagline","shortDescription","productPage","liveProductPage","access","includedInPlans","tags","featured","visibility","status","publishedAt","createdAt","updatedAt","viewCount","licenseCount","hasPendingDraft","creator","media"]}},"required":["restored","document"]}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not found"}}}},"/v1/creator/packages/{creator}/{slug}/versions":{"post":{"tags":["Creator"],"summary":"Register a new package version","description":"Register a new version with archive URL, checksum, and optional signature.","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"creator","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"slug","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"versionNumber":{"type":"string","pattern":"^\\d+\\.\\d+\\.\\d+$"},"changelog":{"type":"string","maxLength":10000},"releaseNotesUrl":{"type":"string","maxLength":1000,"format":"uri"},"releaseNotesPage":{"type":"string","pattern":"^[0-9a-f]{32}$"},"houdiniMinVersion":{"type":"string","maxLength":20},"houdiniMaxVersion":{"type":"string","maxLength":20},"dependencies":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":201,"pattern":"^[a-z0-9-]+\\/[a-z0-9-]+$/i"},"req":{"type":"string","minLength":1,"maxLength":100,"pattern":"^(?:\\s*[*xX]\\s*|\\s*(?:=|>=|<=|>|<|~|\\^)?\\s*(?:0|[1-9]\\d*)(?:\\.(?:[*xX](?:\\.[*xX])?|(?:0|[1-9]\\d*)(?:\\.(?:[*xX]|(?:0|[1-9]\\d*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?))?))?\\s*(?:,\\s*(?:=|>=|<=|>|<|~|\\^)?\\s*(?:0|[1-9]\\d*)(?:\\.(?:[*xX](?:\\.[*xX])?|(?:0|[1-9]\\d*)(?:\\.(?:[*xX]|(?:0|[1-9]\\d*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?))?))?\\s*)*)$"}},"required":["name","req"]},"maxItems":50},"nodeNotes":{"type":"array","items":{"type":"object","properties":{"family":{"type":"string","pattern":"^[A-Za-z0-9_][A-Za-z0-9_.-]{0,99}$"},"kind":{"type":"string","enum":["NEW","UPDATED"]},"note":{"type":"string","minLength":1,"maxLength":500}},"required":["family","kind","note"]},"maxItems":500},"recipes":{"type":"array","items":{"type":"object","properties":{"slug":{"type":"string","pattern":"^[a-z0-9][a-z0-9_-]{0,79}$"},"name":{"type":"string","minLength":1,"maxLength":120},"description":{"type":"string","maxLength":4000},"context":{"type":"string","minLength":1,"maxLength":20},"section":{"type":"string","maxLength":60},"tags":{"type":"array","items":{"type":"string","minLength":1,"maxLength":40},"maxItems":20},"thumbnailUrl":{"type":"string","maxLength":1000,"format":"uri"},"clipUrl":{"type":"string","maxLength":1000,"format":"uri"},"houdiniVersion":{"type":"string","maxLength":20},"frameRange":{"type":"string","maxLength":40},"steps":{"type":"array","items":{"type":"string","minLength":1,"maxLength":500},"maxItems":10},"nodes":{"type":"array","items":{"type":"object","properties":{"typeName":{"type":"string","minLength":1,"maxLength":200},"label":{"type":"string","maxLength":200}},"required":["typeName"]},"maxItems":200},"exampleFor":{"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9_][A-Za-z0-9_.-]{0,99}$"},"maxItems":20}},"required":["slug","name","context","nodes"]},"maxItems":1000},"sections":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z0-9][a-z0-9_-]{0,59}$"},"label":{"type":"string","minLength":1,"maxLength":120},"order":{"type":"integer","minimum":0,"maximum":10000}},"required":["key","label","order"]},"maxItems":100},"builds":{"type":"array","items":{"type":"object","properties":{"platform":{"type":"string","enum":["linux-x86_64","linux-aarch64","windows-x86_64","windows-aarch64","macos-x86_64","macos-aarch64","universal"]},"archiveUrl":{"type":"string","format":"uri"},"fileSha256":{"type":"string","minLength":1},"fileSignature":{"type":"string"},"signingKeyId":{"type":"string"},"fileSize":{"type":"integer","exclusiveMinimum":0},"assets":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["hda_operator","dso_operator"]},"typeName":{"type":"string","minLength":1,"maxLength":200},"label":{"type":"string","maxLength":200},"category":{"type":"string","minLength":1,"maxLength":40},"namespace":{"type":"string","maxLength":100},"opVersion":{"type":"string","maxLength":40},"tabSubmenu":{"type":"string","maxLength":200},"icon":{"type":"string","maxLength":200},"helpSummary":{"type":"string","maxLength":2000},"sourceFile":{"type":"string","maxLength":400},"thumbnailUrl":{"type":"string","maxLength":1000,"format":"uri"},"docUrl":{"type":"string","maxLength":1000,"format":"uri"},"clipUrl":{"type":"string","maxLength":1000,"format":"uri"},"posterUrl":{"type":"string","maxLength":1000,"format":"uri"},"section":{"type":"string","pattern":"^[a-z0-9][a-z0-9_-]{0,59}$"},"plus":{"type":"boolean"},"listed":{"type":"boolean"},"aliases":{"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9_][A-Za-z0-9_.-]{0,99}$"},"maxItems":20}},"required":["kind","category"]},"maxItems":5000}},"required":["platform","archiveUrl","fileSha256"]},"minItems":1}},"required":["versionNumber","builds"]}}}},"responses":{"201":{"description":"Created version","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"versionNumber":{"type":"string"},"changelog":{"type":["string","null"]},"releaseNotesUrl":{"type":["string","null"]},"isActive":{"type":"boolean"},"houdiniMinVersion":{"type":["string","null"]},"houdiniMaxVersion":{"type":["string","null"]},"dependencies":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"req":{"type":"string"}},"required":["name","req"]}},"nodeNotes":{"type":"array","items":{"type":"object","properties":{"family":{"type":"string"},"kind":{"type":"string","enum":["NEW","UPDATED"]},"note":{"type":"string"}},"required":["family","kind","note"]}},"recipeCount":{"type":"integer"},"sections":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"order":{"type":"integer"}},"required":["key","label","order"]}},"createdAt":{"type":"string","format":"date-time"},"builds":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"platform":{"type":"string","enum":["linux-x86_64","linux-aarch64","windows-x86_64","windows-aarch64","macos-x86_64","macos-aarch64","universal"]},"archiveUrl":{"type":"string"},"fileSha256":{"type":"string"},"fileSignature":{"type":["string","null"]},"signingKeyId":{"type":["string","null"]},"fileSize":{"type":["number","null"]},"createdAt":{"type":"string","format":"date-time"}},"required":["id","platform","archiveUrl","fileSha256","fileSignature","signingKeyId","fileSize","createdAt"]}}},"required":["id","versionNumber","changelog","releaseNotesUrl","isActive","houdiniMinVersion","houdiniMaxVersion","dependencies","nodeNotes","recipeCount","sections","createdAt","builds"]}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"409":{"description":"Conflict"},"422":{"description":"Validation error"},"429":{"description":"Too many requests"}}},"get":{"tags":["Creator"],"summary":"List package versions","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"creator","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"slug","in":"path"}],"responses":{"200":{"description":"Package versions","content":{"application/json":{"schema":{"type":"object","properties":{"versions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"versionNumber":{"type":"string"},"changelog":{"type":["string","null"]},"releaseNotesUrl":{"type":["string","null"]},"isActive":{"type":"boolean"},"houdiniMinVersion":{"type":["string","null"]},"houdiniMaxVersion":{"type":["string","null"]},"dependencies":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"req":{"type":"string"}},"required":["name","req"]}},"nodeNotes":{"type":"array","items":{"type":"object","properties":{"family":{"type":"string"},"kind":{"type":"string","enum":["NEW","UPDATED"]},"note":{"type":"string"}},"required":["family","kind","note"]}},"recipeCount":{"type":"integer"},"sections":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"order":{"type":"integer"}},"required":["key","label","order"]}},"createdAt":{"type":"string","format":"date-time"},"builds":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"platform":{"type":"string","enum":["linux-x86_64","linux-aarch64","windows-x86_64","windows-aarch64","macos-x86_64","macos-aarch64","universal"]},"archiveUrl":{"type":"string"},"fileSha256":{"type":"string"},"fileSignature":{"type":["string","null"]},"signingKeyId":{"type":["string","null"]},"fileSize":{"type":["number","null"]},"createdAt":{"type":"string","format":"date-time"}},"required":["id","platform","archiveUrl","fileSha256","fileSignature","signingKeyId","fileSize","createdAt"]}}},"required":["id","versionNumber","changelog","releaseNotesUrl","isActive","houdiniMinVersion","houdiniMaxVersion","dependencies","nodeNotes","recipeCount","sections","createdAt","builds"]}}},"required":["versions"]}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"422":{"description":"Validation error"}}}},"/v1/creator/packages/{creator}/{slug}/versions/{versionId}":{"patch":{"tags":["Creator"],"summary":"Update or yank a version","description":"A change of `dependencies` or the Houdini range is refused with 422 DEPENDENCY_NOT_AVAILABLE unless each dependency has a registered version that meets its requirement and is not yanked (Desktop never pins a dependency, so a yanked version is out of reach even for an exact requirement) for every Houdini this version supports. A yank (`isActive: false`), or a change of its Houdini range, is refused with 409 HAS_DEPENDENTS when it leaves a live version of another package with no version it can use on some Houdini; send `force: true` to make it anyway.","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"creator","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"slug","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"versionId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"force":{"type":"boolean"},"changelog":{"type":"string","maxLength":10000},"releaseNotesUrl":{"type":["string","null"],"maxLength":1000,"format":"uri"},"releaseNotesPage":{"type":"string","pattern":"^[0-9a-f]{32}$"},"isActive":{"type":"boolean"},"houdiniMinVersion":{"type":"string","maxLength":20},"houdiniMaxVersion":{"type":"string","maxLength":20},"dependencies":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":201,"pattern":"^[a-z0-9-]+\\/[a-z0-9-]+$/i"},"req":{"type":"string","minLength":1,"maxLength":100,"pattern":"^(?:\\s*[*xX]\\s*|\\s*(?:=|>=|<=|>|<|~|\\^)?\\s*(?:0|[1-9]\\d*)(?:\\.(?:[*xX](?:\\.[*xX])?|(?:0|[1-9]\\d*)(?:\\.(?:[*xX]|(?:0|[1-9]\\d*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?))?))?\\s*(?:,\\s*(?:=|>=|<=|>|<|~|\\^)?\\s*(?:0|[1-9]\\d*)(?:\\.(?:[*xX](?:\\.[*xX])?|(?:0|[1-9]\\d*)(?:\\.(?:[*xX]|(?:0|[1-9]\\d*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?))?))?\\s*)*)$"}},"required":["name","req"]},"maxItems":50},"nodeNotes":{"type":"array","items":{"type":"object","properties":{"family":{"type":"string","pattern":"^[A-Za-z0-9_][A-Za-z0-9_.-]{0,99}$"},"kind":{"type":"string","enum":["NEW","UPDATED"]},"note":{"type":"string","minLength":1,"maxLength":500}},"required":["family","kind","note"]},"maxItems":500},"recipes":{"type":"array","items":{"type":"object","properties":{"slug":{"type":"string","pattern":"^[a-z0-9][a-z0-9_-]{0,79}$"},"name":{"type":"string","minLength":1,"maxLength":120},"description":{"type":"string","maxLength":4000},"context":{"type":"string","minLength":1,"maxLength":20},"section":{"type":"string","maxLength":60},"tags":{"type":"array","items":{"type":"string","minLength":1,"maxLength":40},"maxItems":20},"thumbnailUrl":{"type":"string","maxLength":1000,"format":"uri"},"clipUrl":{"type":"string","maxLength":1000,"format":"uri"},"houdiniVersion":{"type":"string","maxLength":20},"frameRange":{"type":"string","maxLength":40},"steps":{"type":"array","items":{"type":"string","minLength":1,"maxLength":500},"maxItems":10},"nodes":{"type":"array","items":{"type":"object","properties":{"typeName":{"type":"string","minLength":1,"maxLength":200},"label":{"type":"string","maxLength":200}},"required":["typeName"]},"maxItems":200},"exampleFor":{"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9_][A-Za-z0-9_.-]{0,99}$"},"maxItems":20}},"required":["slug","name","context","nodes"]},"maxItems":1000},"sections":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z0-9][a-z0-9_-]{0,59}$"},"label":{"type":"string","minLength":1,"maxLength":120},"order":{"type":"integer","minimum":0,"maximum":10000}},"required":["key","label","order"]},"maxItems":100}}}}}},"responses":{"200":{"description":"Updated version","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"versionNumber":{"type":"string"},"changelog":{"type":["string","null"]},"releaseNotesUrl":{"type":["string","null"]},"isActive":{"type":"boolean"},"houdiniMinVersion":{"type":["string","null"]},"houdiniMaxVersion":{"type":["string","null"]},"dependencies":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"req":{"type":"string"}},"required":["name","req"]}},"nodeNotes":{"type":"array","items":{"type":"object","properties":{"family":{"type":"string"},"kind":{"type":"string","enum":["NEW","UPDATED"]},"note":{"type":"string"}},"required":["family","kind","note"]}},"recipeCount":{"type":"integer"},"sections":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"order":{"type":"integer"}},"required":["key","label","order"]}},"createdAt":{"type":"string","format":"date-time"},"builds":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"platform":{"type":"string","enum":["linux-x86_64","linux-aarch64","windows-x86_64","windows-aarch64","macos-x86_64","macos-aarch64","universal"]},"archiveUrl":{"type":"string"},"fileSha256":{"type":"string"},"fileSignature":{"type":["string","null"]},"signingKeyId":{"type":["string","null"]},"fileSize":{"type":["number","null"]},"createdAt":{"type":"string","format":"date-time"}},"required":["id","platform","archiveUrl","fileSha256","fileSignature","signingKeyId","fileSize","createdAt"]}}},"required":["id","versionNumber","changelog","releaseNotesUrl","isActive","houdiniMinVersion","houdiniMaxVersion","dependencies","nodeNotes","recipeCount","sections","createdAt","builds"]}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"409":{"description":"Conflict"},"422":{"description":"Validation error"}}},"delete":{"tags":["Creator"],"summary":"Hard-delete a package version","description":"Permanently delete a version. Allowed within 72h of creation, or anytime for DRAFT packages. Tombstones the version number to prevent reuse. Refused with 409 HAS_DEPENDENTS when it leaves a live version of another package with no version it can use on some Houdini; pass `?force=true` to delete anyway.","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"creator","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"slug","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"versionId","in":"path"},{"schema":{"type":"string","enum":["true","false"]},"required":false,"name":"force","in":"query"}],"responses":{"200":{"description":"Deleted version","content":{"application/json":{"schema":{"type":"object","properties":{"deleted":{"type":"boolean"},"versionNumber":{"type":"string"}},"required":["deleted","versionNumber"]}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"409":{"description":"Conflict"},"422":{"description":"Validation error"}}}},"/v1/creator/packages/{creator}/{slug}/versions/{versionId}/operators":{"patch":{"tags":["Creator"],"summary":"Attach documentation pages, node chips and site metadata to a version's operators","description":"Set or clear each named operator's docUrl, thumbnailUrl, clipUrl, posterUrl and section, set its plus and listed flags and replace its aliases (families it had before a rename), on every build of the version, after it was registered. Operators are named by typeName; omitted fields are left alone and null clears. One unknown typeName refuses the whole request.","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"creator","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"slug","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"versionId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"operators":{"type":"array","items":{"type":"object","properties":{"typeName":{"type":"string","minLength":1,"maxLength":200},"docUrl":{"type":["string","null"],"maxLength":1000,"format":"uri"},"thumbnailUrl":{"type":["string","null"],"maxLength":1000,"format":"uri"},"clipUrl":{"type":["string","null"],"maxLength":1000,"format":"uri"},"posterUrl":{"type":["string","null"],"maxLength":1000,"format":"uri"},"section":{"type":["string","null"],"pattern":"^[a-z0-9][a-z0-9_-]{0,59}$"},"plus":{"type":"boolean"},"listed":{"type":"boolean"},"aliases":{"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9_][A-Za-z0-9_.-]{0,99}$"},"maxItems":20}},"required":["typeName"]},"minItems":1,"maxItems":5000}},"required":["operators"]}}}},"responses":{"200":{"description":"The named operators as they now stand","content":{"application/json":{"schema":{"type":"object","properties":{"operators":{"type":"array","items":{"type":"object","properties":{"typeName":{"type":"string"},"docUrl":{"type":["string","null"]},"thumbnailUrl":{"type":["string","null"]},"clipUrl":{"type":["string","null"]},"posterUrl":{"type":["string","null"]},"section":{"type":["string","null"]},"plus":{"type":"boolean"},"listed":{"type":"boolean"},"aliases":{"type":"array","items":{"type":"string"}}},"required":["typeName","docUrl","thumbnailUrl","clipUrl","posterUrl","section","plus","listed","aliases"]}}},"required":["operators"]}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"422":{"description":"Validation error"},"429":{"description":"Too many requests"}}}},"/v1/creator/packages/{creator}/{slug}/versions/{versionId}/builds":{"post":{"tags":["Creator"],"summary":"Add a platform build to a version","description":"Register a platform-specific build archive for an existing version. Refused (422 DEPENDENCY_NOT_AVAILABLE) when one of the version's dependencies has no version meeting its requirement with a build for the new platform on every Houdini the version supports.","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"creator","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"slug","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"versionId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"platform":{"type":"string","enum":["linux-x86_64","linux-aarch64","windows-x86_64","windows-aarch64","macos-x86_64","macos-aarch64","universal"]},"archiveUrl":{"type":"string","format":"uri"},"fileSha256":{"type":"string","minLength":1},"fileSignature":{"type":"string"},"signingKeyId":{"type":"string"},"fileSize":{"type":"integer","exclusiveMinimum":0},"assets":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["hda_operator","dso_operator"]},"typeName":{"type":"string","minLength":1,"maxLength":200},"label":{"type":"string","maxLength":200},"category":{"type":"string","minLength":1,"maxLength":40},"namespace":{"type":"string","maxLength":100},"opVersion":{"type":"string","maxLength":40},"tabSubmenu":{"type":"string","maxLength":200},"icon":{"type":"string","maxLength":200},"helpSummary":{"type":"string","maxLength":2000},"sourceFile":{"type":"string","maxLength":400},"thumbnailUrl":{"type":"string","maxLength":1000,"format":"uri"},"docUrl":{"type":"string","maxLength":1000,"format":"uri"},"clipUrl":{"type":"string","maxLength":1000,"format":"uri"},"posterUrl":{"type":"string","maxLength":1000,"format":"uri"},"section":{"type":"string","pattern":"^[a-z0-9][a-z0-9_-]{0,59}$"},"plus":{"type":"boolean"},"listed":{"type":"boolean"},"aliases":{"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9_][A-Za-z0-9_.-]{0,99}$"},"maxItems":20}},"required":["kind","category"]},"maxItems":5000}},"required":["platform","archiveUrl","fileSha256"]}}}},"responses":{"201":{"description":"Created build","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"platform":{"type":"string","enum":["linux-x86_64","linux-aarch64","windows-x86_64","windows-aarch64","macos-x86_64","macos-aarch64","universal"]},"archiveUrl":{"type":"string"},"fileSha256":{"type":"string"},"fileSignature":{"type":["string","null"]},"signingKeyId":{"type":["string","null"]},"fileSize":{"type":["number","null"]},"createdAt":{"type":"string","format":"date-time"}},"required":["id","platform","archiveUrl","fileSha256","fileSignature","signingKeyId","fileSize","createdAt"]}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"409":{"description":"Conflict"},"422":{"description":"Validation error"}}}},"/v1/creator/licenses":{"get":{"tags":["Licenses"],"summary":"List the creator's license tokens","description":"Every license token issued for the packages of the creator the request acts as — the `organization` (slug) you own or administer, else your own creator — newest first. `package` narrows to one `creator/slug` path; `packages` lists the packages that have tokens.","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string","enum":["active","expired","revoked","all"],"default":"all"},"required":false,"name":"status","in":"query"},{"schema":{"type":"integer","minimum":1,"default":1},"required":false,"name":"page","in":"query"},{"schema":{"type":"integer","minimum":1,"maximum":100,"default":20},"required":false,"name":"limit","in":"query"},{"schema":{"type":"string","minLength":1},"required":false,"name":"organization","in":"query"},{"schema":{"type":"string","minLength":1},"required":false,"name":"package","in":"query"}],"responses":{"200":{"description":"Paginated license tokens","content":{"application/json":{"schema":{"type":"object","properties":{"licenses":{"type":"array","items":{"type":"object","properties":{"jti":{"type":"string"},"path":{"type":"string"},"packageTitle":{"type":"string"},"holderName":{"type":"string"},"machineId":{"type":["string","null"]},"status":{"type":"string","enum":["active","expired","revoked"]},"issuedAt":{"type":"string","format":"date-time"},"expiresAt":{"type":["string","null"],"format":"date-time"},"revokedAt":{"type":["string","null"],"format":"date-time"},"revokedReason":{"type":["string","null"]}},"required":["jti","path","packageTitle","holderName","machineId","status","issuedAt","expiresAt","revokedAt","revokedReason"]}},"packages":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"title":{"type":"string"}},"required":["path","title"]}},"total":{"type":"integer"},"page":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"}},"required":["licenses","packages","total","page","limit","totalPages"]}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"422":{"description":"Validation error"}}}},"/v1/creator/packages/{creator}/{slug}/pages":{"post":{"tags":["Creator"],"summary":"Start a hosted page upload","description":"Record a page manifest and get one presigned PUT per file. Upload every file with the listed Content-Type, then call finalize. Paths keep their folders; index.html is required.","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"creator","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"slug","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"files":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string","minLength":1,"maxLength":300},"size":{"type":"integer","minimum":0}},"required":["path","size"]},"minItems":1,"maxItems":2000}},"required":["files"]}}}},"responses":{"201":{"description":"The page, in UPLOADING, and its uploads","content":{"application/json":{"schema":{"type":"object","properties":{"page":{"type":"object","properties":{"token":{"type":"string"},"status":{"type":"string","enum":["UPLOADING","READY"]},"url":{"type":"string"},"files":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"contentType":{"type":"string"},"size":{"type":"integer"}},"required":["path","contentType","size"]}},"totalBytes":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"},"finalizedAt":{"type":["string","null"],"format":"date-time"}},"required":["token","status","url","files","totalBytes","createdAt","finalizedAt"]},"uploads":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"url":{"type":"string"},"method":{"type":"string","enum":["PUT"]},"headers":{"type":"object","properties":{"Content-Type":{"type":"string"}},"required":["Content-Type"]}},"required":["path","url","method","headers"]}},"expiresInSeconds":{"type":"integer"}},"required":["page","uploads","expiresInSeconds"]}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"422":{"description":"Validation error"},"429":{"description":"Too many requests"}}}},"/v1/creator/packages/{creator}/{slug}/pages/{pageToken}/finalize":{"post":{"tags":["Creator"],"summary":"Finalize a hosted page upload","description":"Check that every file of the page is stored with its declared size and Content-Type, and mark the page READY. Idempotent. 422 lists what is missing or wrong.","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"creator","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"slug","in":"path"},{"schema":{"type":"string","pattern":"^[0-9a-f]{32}$"},"required":true,"name":"pageToken","in":"path"}],"responses":{"200":{"description":"The page, READY","content":{"application/json":{"schema":{"type":"object","properties":{"page":{"type":"object","properties":{"token":{"type":"string"},"status":{"type":"string","enum":["UPLOADING","READY"]},"url":{"type":"string"},"files":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"contentType":{"type":"string"},"size":{"type":"integer"}},"required":["path","contentType","size"]}},"totalBytes":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"},"finalizedAt":{"type":["string","null"],"format":"date-time"}},"required":["token","status","url","files","totalBytes","createdAt","finalizedAt"]}},"required":["page"]}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"422":{"description":"Validation error"},"429":{"description":"Too many requests"}}}},"/v1/creator/packages/{creator}/{slug}/posts":{"get":{"tags":["Creator"],"summary":"List package posts","description":"Every post of the package's What's new feed, drafts included, newest first.","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"creator","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"slug","in":"path"}],"responses":{"200":{"description":"Posts","content":{"application/json":{"schema":{"type":"object","properties":{"posts":{"type":"array","items":{"type":"object","properties":{"slug":{"type":"string"},"kind":{"type":"string","enum":["RELEASE","ARTICLE"]},"title":{"type":"string"},"summary":{"type":["string","null"]},"status":{"type":"string","enum":["DRAFT","PUBLISHED"]},"version":{"type":["string","null"]},"body":{"oneOf":[{"type":"object","properties":{"format":{"type":"string","enum":["rich"]},"doc":{}},"required":["format"]},{"type":"object","properties":{"format":{"type":"string","enum":["page"]},"page":{"type":"object","properties":{"token":{"type":"string"},"status":{"type":"string","enum":["UPLOADING","READY"]},"url":{"type":"string"},"files":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"contentType":{"type":"string"},"size":{"type":"integer"}},"required":["path","contentType","size"]}},"totalBytes":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"},"finalizedAt":{"type":["string","null"],"format":"date-time"}},"required":["token","status","url","files","totalBytes","createdAt","finalizedAt"]}},"required":["format","page"]}]},"url":{"type":"string"},"publishedAt":{"type":["string","null"],"format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["slug","kind","title","summary","status","version","body","url","publishedAt","createdAt","updatedAt"]}}},"required":["posts"]}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not found"}}},"post":{"tags":["Creator"],"summary":"Create a package post","description":"A RELEASE post names its version (one per version, slug defaults to the version number); an ARTICLE post names none (slug defaults from the title). The body is a rich-text document or a READY hosted page by token.","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"creator","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"slug","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"type":"string","enum":["RELEASE","ARTICLE"],"default":"ARTICLE"},"version":{"type":"string","pattern":"^\\d+\\.\\d+\\.\\d+$"},"slug":{"type":"string"},"title":{"type":"string","minLength":1,"maxLength":200},"summary":{"type":"string","maxLength":500},"body":{"oneOf":[{"type":"object","properties":{"format":{"type":"string","enum":["rich"]},"doc":{}},"required":["format"]},{"type":"object","properties":{"format":{"type":"string","enum":["page"]},"page":{"type":"string","pattern":"^[0-9a-f]{32}$"}},"required":["format","page"]}]},"status":{"type":"string","enum":["DRAFT","PUBLISHED"],"default":"DRAFT"}},"required":["title","body"],"additionalProperties":false}}}},"responses":{"201":{"description":"Created post","content":{"application/json":{"schema":{"type":"object","properties":{"post":{"type":"object","properties":{"slug":{"type":"string"},"kind":{"type":"string","enum":["RELEASE","ARTICLE"]},"title":{"type":"string"},"summary":{"type":["string","null"]},"status":{"type":"string","enum":["DRAFT","PUBLISHED"]},"version":{"type":["string","null"]},"body":{"oneOf":[{"type":"object","properties":{"format":{"type":"string","enum":["rich"]},"doc":{}},"required":["format"]},{"type":"object","properties":{"format":{"type":"string","enum":["page"]},"page":{"type":"object","properties":{"token":{"type":"string"},"status":{"type":"string","enum":["UPLOADING","READY"]},"url":{"type":"string"},"files":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"contentType":{"type":"string"},"size":{"type":"integer"}},"required":["path","contentType","size"]}},"totalBytes":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"},"finalizedAt":{"type":["string","null"],"format":"date-time"}},"required":["token","status","url","files","totalBytes","createdAt","finalizedAt"]}},"required":["format","page"]}]},"url":{"type":"string"},"publishedAt":{"type":["string","null"],"format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["slug","kind","title","summary","status","version","body","url","publishedAt","createdAt","updatedAt"]}},"required":["post"]}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"409":{"description":"Conflict"},"422":{"description":"Validation error"},"429":{"description":"Too many requests"}}}},"/v1/creator/packages/{creator}/{slug}/posts/{postSlug}":{"get":{"tags":["Creator"],"summary":"Get a package post","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"creator","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"slug","in":"path"},{"schema":{"type":"string"},"required":true,"name":"postSlug","in":"path"}],"responses":{"200":{"description":"The post","content":{"application/json":{"schema":{"type":"object","properties":{"post":{"type":"object","properties":{"slug":{"type":"string"},"kind":{"type":"string","enum":["RELEASE","ARTICLE"]},"title":{"type":"string"},"summary":{"type":["string","null"]},"status":{"type":"string","enum":["DRAFT","PUBLISHED"]},"version":{"type":["string","null"]},"body":{"oneOf":[{"type":"object","properties":{"format":{"type":"string","enum":["rich"]},"doc":{}},"required":["format"]},{"type":"object","properties":{"format":{"type":"string","enum":["page"]},"page":{"type":"object","properties":{"token":{"type":"string"},"status":{"type":"string","enum":["UPLOADING","READY"]},"url":{"type":"string"},"files":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"contentType":{"type":"string"},"size":{"type":"integer"}},"required":["path","contentType","size"]}},"totalBytes":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"},"finalizedAt":{"type":["string","null"],"format":"date-time"}},"required":["token","status","url","files","totalBytes","createdAt","finalizedAt"]}},"required":["format","page"]}]},"url":{"type":"string"},"publishedAt":{"type":["string","null"],"format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["slug","kind","title","summary","status","version","body","url","publishedAt","createdAt","updatedAt"]}},"required":["post"]}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not found"}}},"patch":{"tags":["Creator"],"summary":"Update a package post","description":"Omitted fields are unchanged; `summary: null` clears it. `status` publishes or unpublishes. Replacing the body collects the uploads and the page the old body used.","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"creator","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"slug","in":"path"},{"schema":{"type":"string"},"required":true,"name":"postSlug","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"slug":{"type":"string"},"title":{"type":"string","minLength":1,"maxLength":200},"summary":{"type":["string","null"],"maxLength":500},"body":{"oneOf":[{"type":"object","properties":{"format":{"type":"string","enum":["rich"]},"doc":{}},"required":["format"]},{"type":"object","properties":{"format":{"type":"string","enum":["page"]},"page":{"type":"string","pattern":"^[0-9a-f]{32}$"}},"required":["format","page"]}]},"status":{"type":"string","enum":["DRAFT","PUBLISHED"]}},"additionalProperties":false}}}},"responses":{"200":{"description":"Updated post","content":{"application/json":{"schema":{"type":"object","properties":{"post":{"type":"object","properties":{"slug":{"type":"string"},"kind":{"type":"string","enum":["RELEASE","ARTICLE"]},"title":{"type":"string"},"summary":{"type":["string","null"]},"status":{"type":"string","enum":["DRAFT","PUBLISHED"]},"version":{"type":["string","null"]},"body":{"oneOf":[{"type":"object","properties":{"format":{"type":"string","enum":["rich"]},"doc":{}},"required":["format"]},{"type":"object","properties":{"format":{"type":"string","enum":["page"]},"page":{"type":"object","properties":{"token":{"type":"string"},"status":{"type":"string","enum":["UPLOADING","READY"]},"url":{"type":"string"},"files":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"contentType":{"type":"string"},"size":{"type":"integer"}},"required":["path","contentType","size"]}},"totalBytes":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"},"finalizedAt":{"type":["string","null"],"format":"date-time"}},"required":["token","status","url","files","totalBytes","createdAt","finalizedAt"]}},"required":["format","page"]}]},"url":{"type":"string"},"publishedAt":{"type":["string","null"],"format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["slug","kind","title","summary","status","version","body","url","publishedAt","createdAt","updatedAt"]}},"required":["post"]}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"409":{"description":"Conflict"},"422":{"description":"Validation error"},"429":{"description":"Too many requests"}}},"delete":{"tags":["Creator"],"summary":"Delete a package post","description":"Deletes the post and collects its uploads and its page, unless another post uses it.","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"creator","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"slug","in":"path"},{"schema":{"type":"string"},"required":true,"name":"postSlug","in":"path"}],"responses":{"200":{"description":"Deleted","content":{"application/json":{"schema":{"type":"object","properties":{"deleted":{"type":"boolean","enum":[true]}},"required":["deleted"]}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"429":{"description":"Too many requests"}}}},"/v1/creator/tokens":{"post":{"tags":["API Tokens"],"summary":"Create API token","description":"Generate a new scoped API token for CLI/CI publishing. The plaintext token is returned once and cannot be retrieved again. Pass `organization` (slug) to target an org creator you own or administer.","security":[{"Bearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"scopes":{"type":"array","items":{"type":"string","minLength":1},"minItems":1,"default":["*"]},"expiresInDays":{"type":"integer","minimum":1,"maximum":365},"organization":{"type":"string"}},"required":["name"]}}}},"responses":{"201":{"description":"Token created (plaintext shown once)","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"token":{"type":"string"},"tokenPrefix":{"type":"string"},"scopes":{"type":"array","items":{"type":"string"}},"expiresAt":{"type":["string","null"]},"createdAt":{"type":"string"}},"required":["id","name","token","tokenPrefix","scopes","expiresAt","createdAt"]}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"409":{"description":"Conflict"},"422":{"description":"Validation error"}}},"get":{"tags":["API Tokens"],"summary":"List API tokens","description":"List all API tokens for the authenticated creator. Pass `organization` (slug) to list tokens scoped to an org creator you own or administer. Never returns the token hash.","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string"},"required":false,"name":"organization","in":"query"}],"responses":{"200":{"description":"API tokens","content":{"application/json":{"schema":{"type":"object","properties":{"tokens":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"tokenPrefix":{"type":"string"},"scopes":{"type":"array","items":{"type":"string"}},"lastUsedAt":{"type":["string","null"]},"expiresAt":{"type":["string","null"]},"createdAt":{"type":"string"}},"required":["id","name","tokenPrefix","scopes","lastUsedAt","expiresAt","createdAt"]}}},"required":["tokens"]}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"}}}},"/v1/creator/tokens/{tokenId}":{"delete":{"tags":["API Tokens"],"summary":"Revoke API token","description":"Revoke an API token. The token is permanently deleted and will immediately stop working. Pass `?organization=<slug>` to target an org creator you own or administer.","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"tokenId","in":"path"},{"schema":{"type":"string"},"required":false,"name":"organization","in":"query"}],"responses":{"200":{"description":"Token revoked","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not found"}}}},"/v1/signing/public-keys/{creator}":{"get":{"tags":["Signing"],"summary":"Get public keys","description":"Get a creator's public signing keys (for offline verification). Path param is the creator slug.","parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"creator","in":"path"}],"responses":{"200":{"description":"Public signing keys","content":{"application/json":{"schema":{"type":"object","properties":{"keys":{"type":"array","items":{"type":"object","properties":{"kid":{"type":"string"},"publicKeyPem":{"type":"string"},"isActive":{"type":"boolean"},"createdAt":{"type":"string"}},"required":["kid","publicKeyPem","isActive","createdAt"]}}},"required":["keys"]}}}},"404":{"description":"Not found"}}}},"/v1/signing/public-keys/{creator}/{kid}":{"get":{"tags":["Signing"],"summary":"Get public key by kid","description":"Get a specific public signing key by its key ID. Path param is the creator slug.","parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"creator","in":"path"},{"schema":{"type":"string"},"required":true,"name":"kid","in":"path"}],"responses":{"200":{"description":"Public signing key","content":{"application/json":{"schema":{"type":"object","properties":{"kid":{"type":"string"},"publicKeyPem":{"type":"string"},"isActive":{"type":"boolean"},"createdAt":{"type":"string"}},"required":["kid","publicKeyPem","isActive","createdAt"]}}}},"404":{"description":"Not found"}}}},"/v1/signing/keys":{"post":{"tags":["Signing"],"summary":"Register signing public key","description":"Register a creator-supplied Ed25519 public key (PEM, SubjectPublicKeyInfo). Any existing active key is deactivated. The kid is derived deterministically from a SHA-256 prefix of the raw public key bytes.","security":[{"Bearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"publicKeyPem":{"type":"string","minLength":1},"organization":{"type":"string"}},"required":["publicKeyPem"]}}}},"responses":{"201":{"description":"Registered public key","content":{"application/json":{"schema":{"type":"object","properties":{"kid":{"type":"string"},"publicKeyPem":{"type":"string","minLength":1},"previousKid":{"type":["string","null"]},"createdAt":{"type":"string"}},"required":["kid","publicKeyPem","previousKid","createdAt"]}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"409":{"description":"Conflict"},"422":{"description":"Validation error"}}},"get":{"tags":["Signing"],"summary":"List signing keys","description":"List active signing keys for the authenticated creator, or for an organization when the `organization` slug is supplied and the caller is OWNER/ADMIN. Pass `includeRevoked=true` to include revoked keys in the response (defaults to active-only).","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string"},"required":false,"name":"organization","in":"query"},{"schema":{"type":"string","enum":["true","false"]},"required":false,"name":"includeRevoked","in":"query"}],"responses":{"200":{"description":"Creator signing keys","content":{"application/json":{"schema":{"type":"object","properties":{"keys":{"type":"array","items":{"type":"object","properties":{"kid":{"type":"string"},"publicKeyPem":{"type":"string"},"isActive":{"type":"boolean"},"createdAt":{"type":"string"},"revokedAt":{"type":["string","null"]}},"required":["kid","publicKeyPem","isActive","createdAt","revokedAt"]}}},"required":["keys"]}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"}}}},"/v1/signing/keys/{kid}/revoke":{"post":{"tags":["Signing"],"summary":"Revoke signing key","description":"Revoke a signing key. This is a soft-delete: the row stays for archive audit trail, with `revokedAt` set and `isActive` cleared. Pass `?organization=<slug>` to revoke an organization-owned key when the caller is an OWNER/ADMIN of that organization.","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"kid","in":"path"},{"schema":{"type":"string"},"required":false,"name":"organization","in":"query"},{"schema":{"type":"string","enum":["true","false"]},"required":false,"name":"includeRevoked","in":"query"}],"responses":{"200":{"description":"Revoked key","content":{"application/json":{"schema":{"type":"object","properties":{"kid":{"type":"string"},"revokedAt":{"type":"string"}},"required":["kid","revokedAt"]}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"409":{"description":"Conflict"}}}},"/v1/licenses/verify":{"post":{"tags":["Licenses"],"summary":"Verify license token","description":"Server-side verification of a license JWT (checks signature + revocation).","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string"}},"required":["token"]}}}},"responses":{"200":{"description":"Verification result","content":{"application/json":{"schema":{"type":"object","properties":{"valid":{"type":"boolean"},"claims":{"type":"object","additionalProperties":{}},"error":{"type":"string"}},"required":["valid"]}}}}}}},"/v1/licenses/revocations":{"get":{"tags":["Licenses"],"summary":"Get revocation list","description":"Get revoked token JTIs since a given timestamp (for offline CRL). Filter by package via `path=creator/slug`.","parameters":[{"schema":{"type":"string","format":"date-time"},"required":false,"name":"since","in":"query"},{"schema":{"type":"string"},"required":false,"name":"path","in":"query"}],"responses":{"200":{"description":"Revocation list","content":{"application/json":{"schema":{"type":"object","properties":{"revocations":{"type":"array","items":{"type":"object","properties":{"jti":{"type":"string"},"revokedAt":{"type":"string"},"reason":{"type":["string","null"]}},"required":["jti","revokedAt","reason"]}},"queriedAt":{"type":"string"}},"required":["revocations","queriedAt"]}}}}}}},"/v1/licenses/leases/{handle}/renew":{"post":{"tags":["Licenses"],"summary":"Renew a seat lease","description":"Extend the organization seat lease `handle` and re-issue the licenses resting on it that the server names (`licenses`: their jtis, each minted with this `secret`). Each license is decided again as `POST /refresh` decides it, for the lease's holder in the license's own scope: a holder who left the organization, or a grant that ended, gets `['free']` or a refusal, and a lease that lapsed or was released is taken again if a pool has room. A renewed license keeps the secret; the license it replaces is revoked. A license already replaced by a renewal or a refresh is refused per license with SUPERSEDED, and one its creator revoked or whose Indie machine was released with REVOKED. 404 when the handle and secret match nothing.","parameters":[{"schema":{"type":"string","minLength":1,"maxLength":100},"required":true,"name":"handle","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"secret":{"type":"string","minLength":1,"maxLength":200},"licenses":{"type":"array","items":{"type":"string","minLength":1,"maxLength":100},"minItems":1,"maxItems":100}},"required":["secret","licenses"],"additionalProperties":false}}}},"responses":{"200":{"description":"The renewed licenses, one entry per jti named","content":{"application/json":{"schema":{"type":"object","properties":{"licenses":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"previousJti":{"type":"string"},"token":{"type":"string"},"jti":{"type":"string"},"expiresAt":{"type":"string"},"paidWithheld":{"type":"string","enum":["MACHINE_LIMIT","SEATS_EXHAUSTED"],"description":"The account holds a paid level this license leaves out: a FREEMIUM package past the Indie machine limit, or with every organization seat it may take in use."},"seatsExhausted":{"type":"object","properties":{"organization":{"type":"string"},"nextFreeAt":{"type":["string","null"]}},"required":["organization","nextFreeAt"],"description":"With `paidWithheld: 'SEATS_EXHAUSTED'`: the slug of the organization whose seats are all in use (not necessarily the license scope's) and the earliest a seat frees, as a PAID package's 403 `details` says them."},"lease":{"type":"object","properties":{"handle":{"type":"string"},"secret":{"type":"string"},"expiresAt":{"type":"string"}},"required":["handle","expiresAt"],"description":"The organization seat this license rests on, when its paid level is held on organization grants. The license expires with the lease; renew it with POST /v1/licenses/leases/{handle}/renew and the secret."}},"required":["previousJti","token","jti","expiresAt"]},{"type":"object","properties":{"previousJti":{"type":"string"},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["previousJti","error"]}]}}},"required":["licenses"]}}}},"400":{"description":"Bad request"},"404":{"description":"Not found"},"429":{"description":"Too many requests"}}}},"/v1/licenses/leases/{handle}/release":{"post":{"tags":["Licenses"],"summary":"Release a seat lease","description":"Revoke the live licenses minted with `secret` on seat lease `handle`, and end the lease when no live license rests on it any more (the holder may hold it from another machine too). The seat is free again at once. 404 when the handle and secret match nothing.","parameters":[{"schema":{"type":"string","minLength":1,"maxLength":100},"required":true,"name":"handle","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"secret":{"type":"string","minLength":1,"maxLength":200}},"required":["secret"],"additionalProperties":false}}}},"responses":{"200":{"description":"Released","content":{"application/json":{"schema":{"type":"object","properties":{"revokedLicenses":{"type":"integer"},"leaseEnded":{"type":"boolean"}},"required":["revokedLicenses","leaseEnded"]}}}},"400":{"description":"Bad request"},"404":{"description":"Not found"},"429":{"description":"Too many requests"}}}},"/v1/licenses/generate":{"post":{"tags":["Licenses"],"summary":"Generate license token","description":"Generate a signed license JWT for a package the caller is entitled to use: FREE and FREEMIUM packages for every account, PAID packages with paid access (a plan that includes it, or a grant for the package), and every package for its creator's team inside the creator's own projects. `organization` names the organization whose project the license is for (a team project's organization), omitted for a personal project: an organization's members, of any role, get every level of its packages in its projects only. The token's `access` claim lists the caller's access levels for that scope (`['free']`, or `['free', 'paid']`); a FREEMIUM package unlocks its paid features on `'paid'`. When the paid level rests only on perpetual grants (one-time purchases), `paidHoudini` lists the Houdini majors it applies in. When it is held on Indie grants, the license is bound to `machineId` (one person, two machines per grant): with no `machineId` or none left, a PAID package is 403 MACHINE_LIMIT and a FREEMIUM one is licensed `['free']` with `paidWithheld: 'MACHINE_LIMIT'`. When it is held on organization grants, the license takes one of the organization's floating seats as a 12-hour lease (`lease`) and expires with it: a live lease the caller holds, else a seat of a team reservation they are in, else the organization pool. With none free, a PAID package is 403 SEATS_EXHAUSTED (`details.nextFreeAt`) and a FREEMIUM one is licensed `['free']` with `paidWithheld: 'SEATS_EXHAUSTED'`. When personal Indie and organization grants both cover the package, the Indie machines are tried first and a seat is the fallback (the seat first when the Indie grants cover fewer Houdini majors); SEATS_EXHAUSTED is the refusal when a seat was tried. A license the caller already holds is handed back rather than minted again: the same `jti`, token and `expiresAt`, while it is not revoked, rests on no seat, has more than half its lifetime left and would carry the same claims (same machine, scope and levels); the response then has no `lease`, and `expiresAt` may be sooner than a new license's.","security":[{"Bearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"path":{"type":"string","description":"Package path (`creator/slug`)."},"organization":{"type":["string","null"],"minLength":1,"maxLength":100,"description":"Slug of the organization whose project the license is for; omit for a personal project. Echoed in the token's `organization` claim."},"machineId":{"type":"string","minLength":1,"maxLength":200,"description":"The license server's machine fingerprint. Required for a paid level held on Indie grants."},"expiresInSeconds":{"type":"integer","exclusiveMinimum":0}},"required":["path"]}}}},"responses":{"200":{"description":"Signed license JWT","content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string"},"jti":{"type":"string"},"expiresAt":{"type":["string","null"]},"paidWithheld":{"type":"string","enum":["MACHINE_LIMIT","SEATS_EXHAUSTED"],"description":"The account holds a paid level this license leaves out: a FREEMIUM package past the Indie machine limit, or with every organization seat it may take in use."},"seatsExhausted":{"type":"object","properties":{"organization":{"type":"string"},"nextFreeAt":{"type":["string","null"]}},"required":["organization","nextFreeAt"],"description":"With `paidWithheld: 'SEATS_EXHAUSTED'`: the slug of the organization whose seats are all in use (not necessarily the license scope's) and the earliest a seat frees, as a PAID package's 403 `details` says them."},"lease":{"type":"object","properties":{"handle":{"type":"string"},"secret":{"type":"string"},"expiresAt":{"type":"string"}},"required":["handle","expiresAt"],"description":"The organization seat this license rests on, when its paid level is held on organization grants. The license expires with the lease; renew it with POST /v1/licenses/leases/{handle}/renew and the secret."}},"required":["token","jti","expiresAt"]}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"429":{"description":"Too many requests"}}}},"/v1/licenses/my":{"get":{"tags":["Licenses"],"summary":"List my license tokens","description":"List the authenticated user's issued license tokens.","security":[{"Bearer":[]}],"responses":{"200":{"description":"User license tokens","content":{"application/json":{"schema":{"type":"object","properties":{"tokens":{"type":"array","items":{"type":"object","properties":{"jti":{"type":"string"},"path":{"type":["string","null"]},"packageTitle":{"type":"string"},"signingKeyId":{"type":["string","null"]},"claims":{},"issuedAt":{"type":"string","format":"date-time"},"expiresAt":{"type":["string","null"],"format":"date-time"},"revokedAt":{"type":["string","null"],"format":"date-time"},"revokedReason":{"type":["string","null"]},"machineId":{"type":["string","null"]}},"required":["jti","path","packageTitle","signingKeyId","issuedAt","expiresAt","revokedAt","revokedReason","machineId"]}}},"required":["tokens"]}}}},"401":{"description":"Unauthorized"}}}},"/v1/licenses/{jti}/revoke":{"post":{"tags":["Licenses"],"summary":"Revoke license token","description":"Revoke a license (the package's creator): the token named and every other live token the same person holds for the package, in any scope or on any machine, since any of them would go on working offline. `revokedTokens` counts them. A license generated afterwards is a new token, if the person is still entitled to one.","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"jti","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string","maxLength":500}}}}}},"responses":{"200":{"description":"Revoked license","content":{"application/json":{"schema":{"type":"object","properties":{"jti":{"type":"string"},"revokedAt":{"type":"string"},"revokedTokens":{"type":"integer"}},"required":["jti","revokedAt","revokedTokens"]}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not found"}}}},"/v1/licenses/refresh":{"post":{"tags":["Licenses"],"summary":"Refresh license token","description":"Re-issue a license token with updated claims (revokes the old one), decided as `POST /generate` decides: a license resting on an organization seat takes or extends the lease and starts a new lease secret.","security":[{"Bearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"jti":{"type":"string"},"machineId":{"type":"string","minLength":1,"maxLength":200},"expiresInSeconds":{"type":"integer","exclusiveMinimum":0}},"required":["jti"]}}}},"responses":{"200":{"description":"Refreshed license JWT","content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string"},"jti":{"type":"string"},"previousJti":{"type":"string"},"expiresAt":{"type":["string","null"]},"paidWithheld":{"type":"string","enum":["MACHINE_LIMIT","SEATS_EXHAUSTED"],"description":"The account holds a paid level this license leaves out: a FREEMIUM package past the Indie machine limit, or with every organization seat it may take in use."},"seatsExhausted":{"type":"object","properties":{"organization":{"type":"string"},"nextFreeAt":{"type":["string","null"]}},"required":["organization","nextFreeAt"],"description":"With `paidWithheld: 'SEATS_EXHAUSTED'`: the slug of the organization whose seats are all in use (not necessarily the license scope's) and the earliest a seat frees, as a PAID package's 403 `details` says them."},"lease":{"type":"object","properties":{"handle":{"type":"string"},"secret":{"type":"string"},"expiresAt":{"type":"string"}},"required":["handle","expiresAt"],"description":"The organization seat this license rests on, when its paid level is held on organization grants. The license expires with the lease; renew it with POST /v1/licenses/leases/{handle}/renew and the secret."}},"required":["token","jti","previousJti","expiresAt"]}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not found"}}}},"/v1/invitations/{token}":{"get":{"tags":["Invitations"],"summary":"Get invitation by token","description":"Peek at invitation details (no auth required).","parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"token","in":"path"}],"responses":{"200":{"description":"Invitation details","content":{"application/json":{"schema":{"type":"object","properties":{"invite":{"type":"object","properties":{"id":{"type":"string"},"email":{"type":"string"},"role":{"type":"string","enum":["OWNER","ADMIN","MEMBER"]},"createdAt":{"type":"string","format":"date-time"},"expiresAt":{"type":"string","format":"date-time"},"organization":{"type":"object","properties":{"name":{"type":"string"},"slug":{"type":"string"},"description":{"type":["string","null"]},"avatarUrl":{"type":["string","null"]}},"required":["name","slug","description","avatarUrl"]},"inviter":{"type":["object","null"],"properties":{"id":{"type":"string","format":"uuid"},"email":{"type":"string"},"name":{"type":"string"}},"required":["id","email","name"]}},"required":["id","email","role","createdAt","expiresAt","organization","inviter"]}},"required":["invite"]}}}},"404":{"description":"Not found"},"422":{"description":"Validation error"}}}},"/v1/invitations/{token}/accept":{"post":{"tags":["Invitations"],"summary":"Accept invitation","description":"Accept an invitation by token (auth required, email must match).","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"token","in":"path"}],"responses":{"200":{"description":"Membership created","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"membership":{"type":"object","properties":{"role":{"type":"string","enum":["OWNER","ADMIN","MEMBER"]},"joinedAt":{"type":"string","format":"date-time"},"organization":{"type":"object","properties":{"name":{"type":"string"},"slug":{"type":"string"},"avatarUrl":{"type":["string","null"]}},"required":["name","slug","avatarUrl"]},"user":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"email":{"type":"string"},"name":{"type":"string"},"avatarUrl":{"type":["string","null"]}},"required":["id","email","name","avatarUrl"]}},"required":["role","joinedAt","organization","user"]}},"required":["message","membership"]}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"409":{"description":"Conflict"},"422":{"description":"Validation error"}}}},"/v1/houdini/builds":{"get":{"tags":["Houdini"],"summary":"List available Houdini builds","description":"Returns Houdini builds from SideFX API grouped by major version with Python version info. Results are cached in Redis. Pass `organization=<slug>` to resolve credentials from that org's linked SideFX account (org-first; falls back to the caller's personal link when the org has none). The caller must be a member of the named org.","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string","enum":["macosx_arm64","macosx","win64","linux"]},"required":true,"name":"platform","in":"query"},{"schema":{"type":"string"},"required":false,"name":"version","in":"query"},{"schema":{"type":"string","enum":["true","false"],"default":true},"required":false,"name":"only_production","in":"query"},{"schema":{"type":"string"},"required":false,"name":"organization","in":"query"}],"responses":{"200":{"description":"Houdini builds grouped by major version","content":{"application/json":{"schema":{"type":"object","properties":{"versions":{"type":"object","additionalProperties":{"type":"object","properties":{"pythonVersion":{"type":["string","null"]},"builds":{"type":"array","items":{"type":"object","properties":{"build":{"type":"string"},"date":{"type":"string"},"release":{"type":"string"},"status":{"type":"string"}},"required":["build","date","release","status"]}}},"required":["pythonVersion","builds"]}},"platform":{"type":"string"},"cachedAt":{"type":"string"}},"required":["versions","platform","cachedAt"]}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"409":{"description":"No SideFX account linked (SIDEFX_NOT_LINKED)"},"422":{"description":"Validation error"},"502":{"description":"Upstream SideFX OAuth refresh failed (transient)"},"503":{"description":"Refresh in flight by a peer worker; retry shortly"}}}},"/v1/houdini/download-url":{"get":{"tags":["Houdini"],"summary":"Get Houdini build download URL","description":"Proxies the SideFX API to get a time-limited CDN download URL for a specific build. Pass `organization=<slug>` to resolve credentials from that org's linked SideFX account (org-first; falls back to the caller's personal link when the org has none). The caller must be a member of the named org.","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"product","in":"query"},{"schema":{"type":"string"},"required":true,"name":"version","in":"query"},{"schema":{"type":"string"},"required":true,"name":"build","in":"query"},{"schema":{"type":"string","enum":["macosx_arm64","macosx","win64","linux"]},"required":true,"name":"platform","in":"query"},{"schema":{"type":"string"},"required":false,"name":"organization","in":"query"}],"responses":{"200":{"description":"Download URL and metadata","content":{"application/json":{"schema":{"type":"object","properties":{"date":{"type":"string"},"download_url":{"type":"string"},"filename":{"type":"string"},"hash":{"type":"string"},"size":{"type":"number"},"status":{"type":"string"},"pdb_download_url":{"type":["string","null"]}},"required":["date","download_url","filename","hash","size","status"]}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"409":{"description":"No SideFX account linked (SIDEFX_NOT_LINKED)"},"422":{"description":"Validation error"},"502":{"description":"Upstream SideFX OAuth refresh failed (transient)"},"503":{"description":"Refresh in flight by a peer worker; retry shortly"}}}},"/v1/notifications":{"get":{"tags":["Notifications"],"summary":"List notifications","description":"List notifications for the current user, sorted by unread-first then newest.","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"integer","minimum":1,"default":1},"required":false,"name":"page","in":"query"},{"schema":{"type":"integer","minimum":1,"maximum":100,"default":10},"required":false,"name":"limit","in":"query"},{"schema":{"type":["integer","null"],"minimum":0},"required":false,"name":"offset","in":"query"},{"schema":{"type":"string","enum":["true","false"]},"required":false,"name":"isRead","in":"query"},{"schema":{"type":"string","enum":["LICENSE_ASSIGNED","LICENSE_REVOKED","PACKAGE_UPDATE","ORG_INVITE"]},"required":false,"name":"type","in":"query"}],"responses":{"200":{"description":"Paginated notifications","content":{"application/json":{"schema":{"type":"object","properties":{"notifications":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"userId":{"type":"string","format":"uuid"},"type":{"type":"string","enum":["LICENSE_ASSIGNED","LICENSE_REVOKED","PACKAGE_UPDATE","ORG_INVITE"]},"title":{"type":"string"},"message":{"type":"string"},"metadata":{},"isRead":{"type":"boolean"},"readAt":{"type":["string","null"],"format":"date-time"},"expiresAt":{"type":["string","null"],"format":"date-time"},"createdAt":{"type":"string","format":"date-time"}},"required":["id","userId","type","title","message","isRead","readAt","expiresAt","createdAt"]}},"unreadCount":{"type":"integer"},"total":{"type":"integer"},"page":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"}},"required":["notifications","unreadCount","total","page","limit","totalPages"]}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation error"}}}},"/v1/notifications/read":{"patch":{"tags":["Notifications"],"summary":"Mark notifications as read","description":"Bulk mark notifications as read. Only marks notifications belonging to the requesting user.","security":[{"Bearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"ids":{"type":"array","items":{"type":"string","minLength":1},"minItems":1,"maxItems":100}},"required":["ids"]}}}},"responses":{"200":{"description":"Mark-as-read result","content":{"application/json":{"schema":{"type":"object","properties":{"updated":{"type":"integer"}},"required":["updated"]}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation error"}}}},"/v1/notifications/{id}":{"delete":{"tags":["Notifications"],"summary":"Delete notification","security":[{"Bearer":[]}],"parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"Deletion result","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"}},"required":["success"]}}}},"401":{"description":"Unauthorized"},"404":{"description":"Not found"},"422":{"description":"Validation error"}}}},"/v1/registry/config":{"get":{"tags":["Registry"],"summary":"Registry configuration","description":"Returns registry metadata including name and API base URL.","responses":{"200":{"description":"Registry configuration","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"api":{"type":"string"},"public_keys_url":{"type":"string"}},"required":["name","api"]}}}}}}},"/v1/registry/packages":{"get":{"tags":["Registry"],"summary":"Search packages","description":"Search published packages by name or description.","parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"q","in":"query"},{"schema":{"type":"integer","minimum":1,"maximum":100},"required":false,"name":"limit","in":"query"},{"schema":{"type":"integer","minimum":1},"required":false,"name":"page","in":"query"}],"responses":{"200":{"description":"Search results with package entries","content":{"application/json":{"schema":{"type":"object","properties":{"packages":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"vers":{"type":"string"},"deps":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"req":{"type":"string"}},"required":["name","req"]}},"cksum":{"type":"string"},"dl":{"type":"string"},"sig":{"type":"string"},"kid":{"type":"string"},"platform":{"type":"string","enum":["linux-x86_64","linux-aarch64","windows-x86_64","windows-aarch64","macos-x86_64","macos-aarch64","universal"]},"houdini_compat":{"type":"string"},"yanked":{"type":"boolean"},"created_at":{"type":"string","format":"date-time"},"description":{"type":"string"},"author":{"type":"string"},"whats_new_url":{"type":"string"}},"required":["name","vers","deps","cksum","dl","yanked","created_at"]}},"total":{"type":"integer"},"page":{"type":"integer"},"limit":{"type":"integer"}},"required":["packages","total","page","limit"]}}}},"422":{"description":"Validation error"}}}},"/v1/registry/packages/{creator}/{slug}":{"get":{"tags":["Registry"],"summary":"List package versions","description":"Get all versions of a package by its scoped path (creator/slug).","parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"creator","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"slug","in":"path"}],"responses":{"200":{"description":"All versions of the package","content":{"application/json":{"schema":{"type":"object","properties":{"versions":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"vers":{"type":"string"},"deps":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"req":{"type":"string"}},"required":["name","req"]}},"cksum":{"type":"string"},"dl":{"type":"string"},"sig":{"type":"string"},"kid":{"type":"string"},"platform":{"type":"string","enum":["linux-x86_64","linux-aarch64","windows-x86_64","windows-aarch64","macos-x86_64","macos-aarch64","universal"]},"houdini_compat":{"type":"string"},"yanked":{"type":"boolean"},"created_at":{"type":"string","format":"date-time"},"description":{"type":"string"},"author":{"type":"string"},"whats_new_url":{"type":"string"}},"required":["name","vers","deps","cksum","dl","yanked","created_at"]}}},"required":["versions"]}}}},"404":{"description":"Not found"},"422":{"description":"Validation error"}}}},"/v1/registry/packages/{creator}/{slug}/{version}":{"get":{"tags":["Registry"],"summary":"Get package version","description":"Get a specific version of a package. Optionally filter by platform with ?platform=.","parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"creator","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"slug","in":"path"},{"schema":{"type":"string","minLength":1},"required":true,"name":"version","in":"path"},{"schema":{"type":"string"},"required":false,"name":"platform","in":"query"}],"responses":{"200":{"description":"Package version entry (or entries if multiple builds)","content":{"application/json":{"schema":{"type":"object","properties":{"builds":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"vers":{"type":"string"},"deps":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"req":{"type":"string"}},"required":["name","req"]}},"cksum":{"type":"string"},"dl":{"type":"string"},"sig":{"type":"string"},"kid":{"type":"string"},"platform":{"type":"string","enum":["linux-x86_64","linux-aarch64","windows-x86_64","windows-aarch64","macos-x86_64","macos-aarch64","universal"]},"houdini_compat":{"type":"string"},"yanked":{"type":"boolean"},"created_at":{"type":"string","format":"date-time"},"description":{"type":"string"},"author":{"type":"string"},"whats_new_url":{"type":"string"}},"required":["name","vers","deps","cksum","dl","yanked","created_at"]}}},"required":["builds"]}}}},"404":{"description":"Not found"},"422":{"description":"Validation error"}}}},"/v1/registry/operators/lookup":{"post":{"tags":["Registry"],"summary":"Find the packages that ship node types","description":"For each node type (exact, case-sensitive `typeName`; optional `category`), the published public packages whose active versions ship it, with the oldest and newest such version. A type no package ships answers `packages: []`. Up to 200 types per call.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"types":{"type":"array","items":{"type":"object","properties":{"typeName":{"type":"string","minLength":1,"maxLength":256},"category":{"type":"string","minLength":1,"maxLength":64}},"required":["typeName"]},"minItems":1,"maxItems":200}},"required":["types"]}}}},"responses":{"200":{"description":"One result per requested type, in request order","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"typeName":{"type":"string"},"category":{"type":"string"},"packages":{"type":"array","items":{"type":"object","properties":{"creator":{"type":"string"},"slug":{"type":"string"},"title":{"type":"string"},"url":{"type":"string"},"kind":{"type":"string"},"latestVersion":{"type":"string"},"firstVersion":{"type":"string"}},"required":["creator","slug","title","url","kind","latestVersion","firstVersion"]}}},"required":["typeName","packages"]}}},"required":["results"]}}}},"422":{"description":"Validation error"}}}},"/v1/registry/operators":{"get":{"tags":["Registry"],"summary":"Find the packages that ship a node type","description":"The operator lookup for a single type: `?type=<typeName>&category=<category>`.","parameters":[{"schema":{"type":"string","minLength":1,"maxLength":256},"required":true,"name":"type","in":"query"},{"schema":{"type":"string","minLength":1,"maxLength":64},"required":false,"name":"category","in":"query"}],"responses":{"200":{"description":"One result, for the requested type","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"typeName":{"type":"string"},"category":{"type":"string"},"packages":{"type":"array","items":{"type":"object","properties":{"creator":{"type":"string"},"slug":{"type":"string"},"title":{"type":"string"},"url":{"type":"string"},"kind":{"type":"string"},"latestVersion":{"type":"string"},"firstVersion":{"type":"string"}},"required":["creator","slug","title","url","kind","latestVersion","firstVersion"]}}},"required":["typeName","packages"]}}},"required":["results"]}}}},"422":{"description":"Validation error"}}}},"/v1/desktop/update/{target}/{arch}/{current_version}":{"get":{"tags":["Desktop"],"summary":"Check for desktop app updates","description":"Returns update info if a newer version exists, or 204 if up-to-date. No auth required. Each check is counted by day, version and platform, with nothing that identifies the caller.","parameters":[{"schema":{"type":"string","enum":["darwin","linux","windows"]},"required":true,"name":"target","in":"path"},{"schema":{"type":"string","enum":["x86_64","aarch64"]},"required":true,"name":"arch","in":"path"},{"schema":{"type":"string","pattern":"^\\d+\\.\\d+\\.\\d+$"},"required":true,"name":"current_version","in":"path"}],"responses":{"200":{"description":"Update available","content":{"application/json":{"schema":{"type":"object","properties":{"version":{"type":"string"},"notes":{"type":"string"},"pub_date":{"type":"string"},"url":{"type":"string"},"signature":{"type":"string"}},"required":["version","url","signature"]}}}},"204":{"description":"Up to date"},"422":{"description":"Validation error"}}}},"/v1/desktop/latest":{"get":{"tags":["Desktop"],"summary":"Get latest desktop release","description":"Returns the latest active release with all platform artifacts. No auth required.","responses":{"200":{"description":"Latest release","content":{"application/json":{"schema":{"type":"object","properties":{"version":{"type":"string"},"notes":{"type":["string","null"]},"pubDate":{"type":"string"},"artifacts":{"type":"array","items":{"type":"object","properties":{"target":{"type":"string"},"arch":{"type":"string"},"installerUrl":{"type":"string"},"installerSize":{"type":["number","null"]}},"required":["target","arch","installerUrl","installerSize"]}}},"required":["version","notes","pubDate","artifacts"]}}}},"204":{"description":"No active release"}}}},"/v1/desktop/releases":{"post":{"tags":["Desktop"],"summary":"Create or update a desktop release","description":"Upserts a release: creates a new one or replaces artifacts on an existing version. Requires an admin session or a DESKTOP_RELEASE internal token (`Authorization: Bearer tti_...`).","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"version":{"type":"string","pattern":"^\\d+\\.\\d+\\.\\d+$"},"notes":{"type":"string"},"artifacts":{"type":"array","items":{"type":"object","properties":{"target":{"type":"string","enum":["darwin","linux","windows"]},"arch":{"type":"string","enum":["x86_64","aarch64"]},"updaterS3Key":{"type":"string","minLength":1},"updaterSignature":{"type":"string","minLength":1},"updaterSize":{"type":"integer","exclusiveMinimum":0},"installerS3Key":{"type":"string","minLength":1},"installerSize":{"type":"integer","exclusiveMinimum":0}},"required":["target","arch","updaterS3Key","updaterSignature","installerS3Key"]},"minItems":1}},"required":["version","artifacts"]}}}},"responses":{"201":{"description":"Release created/updated","content":{"application/json":{"schema":{"type":"object","properties":{"version":{"type":"string"},"notes":{"type":["string","null"]},"pubDate":{"type":"string"},"artifacts":{"type":"array","items":{"type":"object","properties":{"target":{"type":"string"},"arch":{"type":"string"},"installerUrl":{"type":"string"},"installerSize":{"type":["number","null"]}},"required":["target","arch","installerUrl","installerSize"]}}},"required":["version","notes","pubDate","artifacts"]}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"422":{"description":"Validation error"}}},"get":{"tags":["Desktop"],"summary":"List desktop releases","description":"Returns desktop releases newest-first. Requires an admin session or a DESKTOP_RELEASE internal token (`Authorization: Bearer tti_...`).","parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200,"default":50},"required":false,"name":"limit","in":"query"},{"schema":{"type":"string","pattern":"^\\d+\\.\\d+\\.\\d+$"},"required":false,"name":"cursor","in":"query"},{"schema":{"type":"string","enum":["true","false"],"default":true},"required":false,"name":"includeInactive","in":"query"}],"responses":{"200":{"description":"Releases list","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"version":{"type":"string"},"pubDate":{"type":"string"},"active":{"type":"boolean"},"notes":{"type":["string","null"]},"artifactCount":{"type":"number"},"totalBytes":{"type":"number"}},"required":["version","pubDate","active","notes","artifactCount","totalBytes"]}},"nextCursor":{"type":["string","null"]}},"required":["items","nextCursor"]}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"422":{"description":"Validation error"}}}},"/v1/desktop/releases/{version}":{"get":{"tags":["Desktop"],"summary":"Get a desktop release","description":"Returns a single release with all artifacts. Requires an admin session or a DESKTOP_RELEASE internal token.","parameters":[{"schema":{"type":"string","pattern":"^\\d+\\.\\d+\\.\\d+$"},"required":true,"name":"version","in":"path"}],"responses":{"200":{"description":"Release detail","content":{"application/json":{"schema":{"type":"object","properties":{"version":{"type":"string"},"notes":{"type":["string","null"]},"pubDate":{"type":"string"},"active":{"type":"boolean"},"artifacts":{"type":"array","items":{"type":"object","properties":{"target":{"type":"string"},"arch":{"type":"string"},"installerUrl":{"type":"string"},"installerSize":{"type":["number","null"]},"installerS3Key":{"type":"string"},"updaterUrl":{"type":"string"},"updaterSize":{"type":["number","null"]},"updaterS3Key":{"type":"string"},"updaterSignature":{"type":"string"}},"required":["target","arch","installerUrl","installerSize","installerS3Key","updaterUrl","updaterSize","updaterS3Key","updaterSignature"]}}},"required":["version","notes","pubDate","active","artifacts"]}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"422":{"description":"Validation error"}}},"delete":{"tags":["Desktop"],"summary":"Delete a desktop release record","description":"Removes the DB record (release row + artifact rows). The release bucket at pkg.tumbletrove.com/releases/<version>/... is owned by the desktop repo CI and is NOT touched here — bucket cleanup is the responsibility of CI/ops, and the archive files remain publicly fetchable until pruned out-of-band. Refuses to drop the latest active release unless force=true (admin session required for force; an internal token cannot bypass). Idempotent on missing versions (returns alreadyAbsent: true).","parameters":[{"schema":{"type":"string","pattern":"^\\d+\\.\\d+\\.\\d+$"},"required":true,"name":"version","in":"path"},{"schema":{"type":"string","enum":["true","false"],"default":"false"},"required":false,"name":"dryRun","in":"query"},{"schema":{"type":"string","enum":["true","false"],"default":"false"},"required":false,"name":"force","in":"query"}],"responses":{"200":{"description":"Deletion result (or dry-run plan, or already-absent)","content":{"application/json":{"schema":{"type":"object","properties":{"version":{"type":"string"},"dryRun":{"type":"boolean"},"deleted":{"type":"object","properties":{"dbRows":{"type":"number"}},"required":["dbRows"]},"alreadyAbsent":{"type":"boolean"}},"required":["version","dryRun","deleted"]}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"409":{"description":"Conflict"},"422":{"description":"Validation error"}}}},"/v1/desktop/releases/{version}/deactivate":{"post":{"tags":["Desktop"],"summary":"Deactivate a desktop release","description":"Sets active=false to hide from the update feed without deleting artifacts. Reversible by re-POSTing to /releases.","parameters":[{"schema":{"type":"string","pattern":"^\\d+\\.\\d+\\.\\d+$"},"required":true,"name":"version","in":"path"}],"responses":{"200":{"description":"Release deactivated","content":{"application/json":{"schema":{"type":"object","properties":{"version":{"type":"string"},"active":{"type":"boolean","enum":[false]}},"required":["version","active"]}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"422":{"description":"Validation error"}}}},"/v1/crash-reports":{"post":{"tags":["Desktop"],"summary":"Send a crash report","description":"Sent by TumbleTrove Desktop when the person opted in. Stored with its zip for 90 days and deleted with the account. At most 10 per person per day.","security":[{"Bearer":[]}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"meta":{"type":"string","description":"JSON: { appVersion, os, houdiniVersion, packages: { name: version }, exitCode: number | null, signature, summary, userNote?, devOverrides }"},"archive":{"type":"string","format":"binary","description":"The zip, at most 2 MiB"}},"required":["meta","archive"]}}}},"responses":{"201":{"description":"Stored; `id` is what the user quotes to support","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"413":{"description":"The archive is over 2 MiB"},"422":{"description":"Validation error"},"429":{"description":"Too many requests"}}}},"/v1/plans":{"get":{"tags":["Plans"],"summary":"The plans and their prices","description":"Indie and Professional, with their current Stripe prices per seat per interval (cents). A plan and interval Stripe has no active price for is omitted from `prices`.","responses":{"200":{"description":"Plan catalog","content":{"application/json":{"schema":{"type":"object","properties":{"plans":{"type":"array","items":{"type":"object","properties":{"plan":{"type":"string","enum":["INDIE","PROFESSIONAL"]},"name":{"type":"string"},"summary":{"type":"string"},"organizations":{"type":"boolean"},"directSupport":{"type":"boolean"},"eligibility":{"type":["string","null"]},"prices":{"type":"array","items":{"type":"object","properties":{"interval":{"type":"string","enum":["MONTHLY","YEARLY"]},"unitAmount":{"type":"integer"},"currency":{"type":"string"},"amounts":{"type":"array","items":{"type":"object","properties":{"currency":{"type":"string"},"unitAmount":{"type":"integer"},"taxBehavior":{"type":"string","enum":["inclusive","exclusive","unspecified"]}},"required":["currency","unitAmount","taxBehavior"]}}},"required":["interval","unitAmount","currency","amounts"]}}},"required":["plan","name","summary","organizations","directSupport","eligibility","prices"]}}},"required":["plans"]}}}},"502":{"description":"An upstream provider (Stripe) failed"}}}},"/v1/billing/plan":{"get":{"tags":["Plans"],"summary":"The caller's access level and plan","security":[{"Bearer":[]}],"responses":{"200":{"description":"Access and plan","content":{"application/json":{"schema":{"type":"object","properties":{"access":{"type":"array","items":{"type":"string","enum":["free","paid"]}},"source":{"type":["object","null"],"properties":{"plan":{"type":"string","enum":["INDIE","PROFESSIONAL"]},"source":{"type":"string","enum":["STRIPE","GRANT"]},"via":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["personal"]}},"required":["kind"]},{"type":"object","properties":{"kind":{"type":"string","enum":["organization"]},"slug":{"type":"string"},"name":{"type":"string"}},"required":["kind","slug","name"]}]}},"required":["plan","source","via"]},"personal":{"type":["object","null"],"properties":{"plan":{"type":"string","enum":["INDIE","PROFESSIONAL"]},"status":{"type":"string","enum":["ACTIVE","PAST_DUE","INCOMPLETE","CANCELED"]},"source":{"type":"string","enum":["STRIPE","GRANT"]},"interval":{"type":["string","null"],"enum":["MONTHLY","YEARLY",null]},"seats":{"type":"integer"},"currentPeriodEnd":{"type":["string","null"]},"cancelAtPeriodEnd":{"type":"boolean"},"expiresAt":{"type":["string","null"]}},"required":["plan","status","source","interval","seats","currentPeriodEnd","cancelAtPeriodEnd","expiresAt"]}},"required":["access","source","personal"]}}}},"401":{"description":"Unauthorized"}}}},"/v1/billing/checkout":{"post":{"tags":["Plans"],"summary":"Start a checkout: a plan, or one package","description":"Opens a Stripe Checkout session and returns its URL. Without `package` it is a catalogue plan; with `package` (`creator/slug`) it is that package's own offer. `tier` and `billing` (MONTHLY, YEARLY, or for a package ONCE or UPGRADE) name the offer; `plan` and `interval` are accepted as their aliases. A one-time offer buys paid use for one Houdini major, perpetually: `houdini` names it (the current major when omitted; the current one or the one before it is sold, and an UPGRADE is into the current one for holders of the one before). A personal purchase is one seat; Professional for an organization takes `organization` (slug, OWNER or ADMIN) and `seats`. Indie requires `indieEligible: true`. Access is granted when Stripe reports the subscription, not by this call. Refusals (409): PLAN_EXISTS (a plan already: change it in the billing portal), SUBSCRIPTION_EXISTS (a subscription to this package already: `POST /v1/billing/subscriptions/change`), ALREADY_COVERED (a plan that includes the package, or a grant for it, already covers every Houdini major), NO_PAID_CONTENT (a FREE package), PURCHASE_EXISTS (a person already holds that major) and UPGRADE_NOT_ELIGIBLE (no grant of the same tier for the previous major, or fewer of its seats left to upgrade than asked). 422 MAJOR_NOT_SELLABLE names a major that is not sold; 503 ONE_TIME_UNAVAILABLE while no one-time offer is sold at all, and 503 PRICES_HIDDEN, to everyone, while the site hides its prices. A package that is not published and public is 404.","security":[{"Bearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"package":{"type":"string","pattern":"^[^/\\s]+\\/[^/\\s]+$"},"tier":{"type":"string","enum":["INDIE","PROFESSIONAL"]},"billing":{"type":"string","enum":["ONCE","UPGRADE","MONTHLY","YEARLY"]},"plan":{"type":"string","enum":["INDIE","PROFESSIONAL"]},"interval":{"type":"string","enum":["MONTHLY","YEARLY"]},"seats":{"type":"integer","minimum":1,"maximum":500,"default":1},"houdini":{"type":"integer","minimum":1,"maximum":999},"organization":{"type":"string","minLength":1},"indieEligible":{"type":"boolean"},"currency":{"type":"string","enum":["eur","usd"]}},"additionalProperties":false}}}},"responses":{"200":{"description":"Stripe Checkout URL","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string"}},"required":["url"]}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"409":{"description":"Conflict"},"422":{"description":"Validation error"},"429":{"description":"Too many requests"},"502":{"description":"An upstream provider (Stripe) failed"},"503":{"description":"Stripe has no active price for this offer, or prices are hidden"}}}},"/v1/billing/subscriptions/change":{"post":{"tags":["Plans"],"summary":"Change a subscription's tier, interval or seats","description":"Switches the subscription for the catalogue, or with `package` (`creator/slug`) for that package, of the caller or of an organization (`organization` slug, OWNER or ADMIN). Stripe's billing portal cannot list every package for switching, so this route does it: it updates the subscription in Stripe with proration and never touches the card. Access follows when Stripe reports the change. 404 NO_SUBSCRIPTION when there is no live subscription to change; 503 PRICES_HIDDEN, to everyone, while the site hides its prices (a change can charge).","security":[{"Bearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"package":{"type":"string","pattern":"^[^/\\s]+\\/[^/\\s]+$"},"organization":{"type":"string","minLength":1},"tier":{"type":"string","enum":["INDIE","PROFESSIONAL"]},"billing":{"type":"string","enum":["MONTHLY","YEARLY"]},"seats":{"type":"integer","minimum":1,"maximum":500}},"additionalProperties":false}}}},"responses":{"200":{"description":"What Stripe was asked to change","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"changed":{"type":"boolean","enum":[false]}},"required":["changed"]},{"type":"object","properties":{"changed":{"type":"boolean","enum":[true]},"tier":{"type":"string","enum":["INDIE","PROFESSIONAL"]},"billing":{"type":"string","enum":["MONTHLY","YEARLY"]},"seats":{"type":"integer"}},"required":["changed","tier","billing","seats"]}]}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"422":{"description":"Validation error"},"429":{"description":"Too many requests"},"502":{"description":"An upstream provider (Stripe) failed"},"503":{"description":"Stripe has no active price for the new tier or interval, or prices are hidden"}}}},"/v1/billing/portal":{"post":{"tags":["Plans"],"summary":"Open the billing portal","description":"A Stripe billing portal session for the caller's billing, or an organization's (`organization` slug, OWNER or ADMIN): update the card, see invoices, cancel any subscription, and change a plan's tier, interval or seats. A package subscription is changed with `POST /v1/billing/subscriptions/change`. While the site hides its prices the portal changes no plan, interval or seats; the card, invoices and cancelling stay. 404 NO_BILLING_ACCOUNT before the first checkout.","security":[{"Bearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"organization":{"type":"string","minLength":1}},"additionalProperties":false}}}},"responses":{"200":{"description":"Stripe billing portal URL","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string"}},"required":["url"]}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"422":{"description":"Validation error"},"429":{"description":"Too many requests"},"502":{"description":"An upstream provider (Stripe) failed"}}}},"/v1/tags":{"get":{"tags":["Marketplace"],"summary":"List tags","description":"List all tags in use.","parameters":[{"schema":{"type":"integer","minimum":1,"maximum":100},"required":false,"name":"limit","in":"query"}],"responses":{"200":{"description":"List of tags","content":{"application/json":{"schema":{"type":"object","properties":{"tags":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"count":{"type":"number"}},"required":["name","count"]}}},"required":["tags"]}}}},"422":{"description":"Validation error"}}}},"/v1/tags/top":{"get":{"tags":["Marketplace"],"summary":"Top tags","description":"Top tags by usage count.","parameters":[{"schema":{"type":"integer","minimum":1,"maximum":100},"required":false,"name":"limit","in":"query"}],"responses":{"200":{"description":"Top tags by count","content":{"application/json":{"schema":{"type":"object","properties":{"tags":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"count":{"type":"number"}},"required":["name","count"]}}},"required":["tags"]}}}},"422":{"description":"Validation error"}}}}},"webhooks":{}}