The complete open source platform to run your entire marketplace. Storefront, vendor panel, admin console, and integrations in one enterprise-grade platform you own.
TypeScript b2b-marketplacecomposable-commerceecommerceenterpriseheadless-commercemarketplacemedusamedusajsmulti-vendortypescript
Release canary to main (#1158)
Viktor Holik5b5681943a21
diff --git a/README.md b/README.mdindex 67afa8e25..7315d6bf8 100644--- a/README.md+++ b/README.md@@ -77,7 +77,7 @@ Mercur is modular. Each piece is a separate, independently deployable app that t## What's in this repo-This is the Mercur development monorepo: the `@mercurjs/core` plugin, the React + Vite admin and vendor dashboards, the `@mercurjs/cli`, the typed API client, the dashboard SDK, the Stripe Connect payout provider, and the cross-package integration suites. If you just want to build a marketplace, run `bunx @mercurjs/cli@latest create` (see [Getting Started](#getting-started)) - clone this repo only when you want to contribute to Mercur itself.+This is the Mercur development monorepo: the `@mercurjs/core` plugin, the React + Vite admin and vendor dashboards, the `@mercurjs/cli`, the typed API client, the dashboard SDK, the Stripe Connect payout provider, and the cross-package integration suites. If you just want to build a marketplace, run `bun create mercur-app@latest` (see [Getting Started](#getting-started)) - clone this repo only when you want to contribute to Mercur itself.## Deployment@@ -115,7 +115,7 @@ Here's what you need to run Mercur.1. Create a new Mercur project```sh- bunx @mercurjs/cli@latest create my-marketplace+ bun create mercur-app@latest my-marketplace```2. Start the development serverdiff --git a/RELEASING.md b/RELEASING.mdindex a82163d58..111f8f49e 100644--- a/RELEASING.md+++ b/RELEASING.md@@ -1,6 +1,8 @@# Releasing-All packages are published under the `@mercurjs` scope on npm.+All packages are published under the `@mercurjs` scope on npm, except+`create-mercur-app`, which must stay unscoped so `npm create mercur-app`+resolves to it.- **Stable** releases use the `latest` npm tag (default)- **Release candidate** (`rc`) releases use the `rc` npm tag — a preview of an@@ -9,12 +11,14 @@ All packages are published under the `@mercurjs` scope on npm.## Published Packages+- `create-mercur-app`- `@mercurjs/cli`- `@mercurjs/client`- `@mercurjs/types`- `@mercurjs/dashboard-sdk`- `@mercurjs/dashboard-shared`- `@mercurjs/core`+- `@mercurjs/admin`- `@mercurjs/vendor`- `@mercurjs/payout-stripe-connect`@@ -47,8 +51,8 @@ value. Only the dev-only, never-published workspaces (the repo-root"version": "2.X.Y"```- Also bump every internal `@mercurjs/*` cross-dependency in `packages/*` and- `packages/providers/*` to the same `2.X.Y` (see [Internal Dependencies](#internal-dependencies)).+ Also bump every internal cross-dependency (`@mercurjs/*` and `create-mercur-app`)+ in `packages/*` and `packages/providers/*` to the same `2.X.Y` (see [Internal Dependencies](#internal-dependencies)).2. Bump every `@mercurjs/*` dependency version inside the `templates/basic` template so newly scaffolded projects pin to the matching release:@@ -90,8 +94,8 @@ git push origin main --tagsWhere `Z` is the next incremental number (0, 1, 2, ...).- Also bump every internal `@mercurjs/*` cross-dependency in `packages/*` and- `packages/providers/*` to the same `2.X.Y-canary.Z` (see [Internal Dependencies](#internal-dependencies)).+ Also bump every internal cross-dependency (`@mercurjs/*` and `create-mercur-app`)+ in `packages/*` and `packages/providers/*` to the same `2.X.Y-canary.Z` (see [Internal Dependencies](#internal-dependencies)).2. Bump every `@mercurjs/*` dependency version inside the `templates/basic` template to the same `2.X.Y-canary.Z` value:@@ -135,8 +139,8 @@ shippable and is published so it can be tested before being promoted toWhere `Z` is the next incremental number (0, 1, 2, ...).- Also bump every internal `@mercurjs/*` cross-dependency in `packages/*` and- `packages/providers/*` to the same `2.X.Y-rc.Z` (see [Internal Dependencies](#internal-dependencies)).+ Also bump every internal cross-dependency (`@mercurjs/*` and `create-mercur-app`)+ in `packages/*` and `packages/providers/*` to the same `2.X.Y-rc.Z` (see [Internal Dependencies](#internal-dependencies)).2. Bump every `@mercurjs/*` dependency version inside the `templates/basic` template to the same `2.X.Y-rc.Z` value:diff --git a/apps/admin-test/package.json b/apps/admin-test/package.jsonindex e3e9cb874..7fd6f516c 100644--- a/apps/admin-test/package.json+++ b/apps/admin-test/package.json@@ -13,8 +13,8 @@"react": "^18.3.1","react-dom": "^18.3.1","zod": "3.25.76",- "@medusajs/icons": "options-preview",- "@medusajs/ui": "options-preview",+ "@medusajs/icons": "2.17.2",+ "@medusajs/ui": "4.1.19","@mercurjs/dashboard-sdk": "*","@mercurjs/dashboard-shared": "*","@mercurjs/client": "*",@@ -46,4 +46,4 @@"typescript": "5.9.3","@types/node": "^24.10.1"}-}\ No newline at end of file+}diff --git a/apps/api/package.json b/apps/api/package.jsonindex 97003d415..cfeba9875 100644--- a/apps/api/package.json+++ b/apps/api/package.json@@ -26,20 +26,20 @@"test:unit": "TEST_TYPE=unit NODE_OPTIONS=--experimental-vm-modules jest --silent --runInBand --forceExit"},"dependencies": {- "@medusajs/admin-sdk": "options-preview",- "@medusajs/cli": "options-preview",- "@medusajs/framework": "options-preview",- "@medusajs/dashboard": "options-preview",- "@medusajs/admin-shared": "options-preview",- "@medusajs/medusa": "options-preview",- "@medusajs/draft-order": "options-preview",+ "@medusajs/admin-sdk": "2.17.2",+ "@medusajs/cli": "2.17.2",+ "@medusajs/framework": "2.17.2",+ "@medusajs/dashboard": "2.17.2",+ "@medusajs/admin-shared": "2.17.2",+ "@medusajs/medusa": "2.17.2",+ "@medusajs/draft-order": "2.17.2","@mercurjs/core": "*","@mercurjs/types": "*","http-proxy-middleware": "^3.0.3","@mercurjs/cli": "*"},"devDependencies": {- "@medusajs/test-utils": "options-preview",+ "@medusajs/test-utils": "2.17.2","@swc/core": "^1.7.28","@swc/jest": "^0.2.36","@types/jest": "^29.5.13",@@ -51,4 +51,4 @@"engines": {"node": ">=20"}-}\ No newline at end of file+}diff --git a/apps/docs/developer-guide/cli.mdx b/apps/docs/developer-guide/cli.mdxindex 15ee09077..01288919e 100644--- a/apps/docs/developer-guide/cli.mdx+++ b/apps/docs/developer-guide/cli.mdx@@ -3,7 +3,7 @@ title: "CLI"description: "Install blocks, scaffold projects, and generate types from the command line."----The Mercur CLI (`@mercurjs/cli@latest`) manages your marketplace project — creating projects, installing blocks, generating types, and checking for updates.+The Mercur CLI (`@mercurjs/cli@latest`) manages your marketplace project — installing blocks, generating types, and checking for updates. To create a new project, use [`create-mercur-app`](https://www.npmjs.com/package/create-mercur-app).## Installation@@ -15,13 +15,15 @@ bun add -g @mercurjs/cli@latest### create-Scaffold a new Mercur project from a template.+Scaffolding new projects lives in the standalone [`create-mercur-app`](https://www.npmjs.com/package/create-mercur-app) package, so it downloads fast and works with every package manager's `create` command.```bash-bunx @mercurjs/cli@latest create my-marketplace+bun create mercur-app@latest my-marketplace+# or+npm create mercur-app@latest my-marketplace```-The CLI will prompt you for database credentials and install dependencies automatically.+It will prompt you for database credentials and install dependencies automatically.| Option | Description ||--------|-------------|diff --git a/apps/docs/docs.json b/apps/docs/docs.jsonindex 0a19ed750..12cfd9a77 100644--- a/apps/docs/docs.json+++ b/apps/docs/docs.json@@ -9,9 +9,9 @@},"favicon": "/favicon.png","colors": {- "primary": "#090909",- "light": "#ffffff",- "dark": "#090909"+ "primary": "#3139FB",+ "light": "#9BA0FF",+ "dark": "#2A31D8"},"topbarLinks": [{@@ -25,6 +25,624 @@},"navigation": {"versions": [+ {+ "version": "Release Candidate",+ "tabs": [+ {+ "tab": "Learn",+ "groups": [+ {+ "group": "Get started",+ "pages": [+ "rc/learn/introduction",+ "rc/learn/installation",+ "rc/learn/concepts",+ "rc/learn/architecture"+ ]+ },+ {+ "group": "Marketplace concepts",+ "pages": [+ "rc/learn/sellers",+ "rc/learn/seller-members",+ "rc/learn/products",+ "rc/learn/offers",+ "rc/learn/attributes",+ "rc/learn/product-requests",+ "rc/learn/order-groups",+ "rc/learn/commissions",+ "rc/learn/payouts"+ ]+ },+ {+ "group": "Blocks",+ "pages": [+ "rc/learn/blocks",+ "rc/learn/registry"+ ]+ }+ ]+ },+ {+ "tab": "Resources",+ "groups": [+ {+ "group": "Tutorials",+ "pages": [+ "rc/resources/tutorials/first-marketplace",+ {+ "group": "Panels",+ "pages": [+ "rc/resources/tutorials/custom-panel-page",+ "rc/resources/tutorials/recompose-a-page",+ "rc/resources/tutorials/replace-panel-components",+ "rc/resources/tutorials/custom-api-route"+ ]+ },+ {+ "group": "Marketplace operations",+ "pages": [+ "rc/resources/tutorials/configure-commissions",+ "rc/resources/tutorials/seller-payouts-stripe",+ "rc/resources/tutorials/handle-product-requests"+ ]+ },+ {+ "group": "Catalog",+ "pages": [+ "rc/resources/tutorials/attributes-and-variant-axes",+ "rc/resources/tutorials/master-products-and-offers",+ "rc/resources/tutorials/import-export-products"+ ]+ },+ {+ "group": "Blocks",+ "pages": [+ "rc/resources/tutorials/add-a-block",+ "rc/resources/tutorials/build-a-block"+ ]+ }+ ]+ },+ {+ "group": "Customization",+ "pages": [+ "rc/resources/customization/extending-panels",+ "rc/resources/customization/custom-fields",+ "rc/resources/customization/extend-a-workflow"+ ]+ },+ {+ "group": "Integrations",+ "pages": [+ "rc/resources/integrations/stripe-connect",+ "rc/resources/integrations/search",+ "rc/resources/integrations/notifications"+ ]+ },+ {+ "group": "Deployment",+ "pages": [+ "rc/resources/deployment/medusa-cloud"+ ]+ },+ {+ "group": "Building with AI",+ "pages": [+ "rc/resources/ai/overview",+ "rc/resources/ai/llms",+ "rc/resources/ai/mcp"+ ]+ }+ ]+ },+ {+ "tab": "Tools",+ "groups": [+ {+ "group": "Tools",+ "pages": [+ "rc/tools/cli",+ "rc/tools/api-client",+ "rc/tools/dashboard-sdk"+ ]+ }+ ]+ },+ {+ "tab": "References",+ "groups": [+ {+ "group": "Overview",+ "pages": [+ "rc/references/overview"+ ]+ },+ {+ "group": "Modules",+ "pages": [+ "rc/references/modules/seller",+ "rc/references/modules/commission",+ "rc/references/modules/payout",+ "rc/references/modules/offer",+ "rc/references/modules/product-attribute",+ "rc/references/modules/product-edit",+ "rc/references/modules/media",+ "rc/references/modules/search",+ "rc/references/modules/custom-fields"+ ]+ },+ {+ "group": "Admin API",+ "pages": [+ "rc/references/api/conventions",+ "rc/references/api/admin",+ {+ "group": "Sellers",+ "pages": [+ "rc/references/api/admin/sellers/list-sellers",+ "rc/references/api/admin/sellers/create-seller",+ "rc/references/api/admin/sellers/retrieve-seller",+ "rc/references/api/admin/sellers/update-seller",+ "rc/references/api/admin/sellers/approve-seller",+ "rc/references/api/admin/sellers/suspend-seller",+ "rc/references/api/admin/sellers/unsuspend-seller",+ "rc/references/api/admin/sellers/terminate-seller",+ "rc/references/api/admin/sellers/unterminate-seller",+ "rc/references/api/admin/sellers/upsert-seller-address",+ "rc/references/api/admin/sellers/upsert-payment-details",+ "rc/references/api/admin/sellers/upsert-professional-details",+ "rc/references/api/admin/sellers/delete-professional-details",+ "rc/references/api/admin/sellers/list-seller-products",+ "rc/references/api/admin/sellers/list-seller-members",+ "rc/references/api/admin/sellers/add-seller-member",+ "rc/references/api/admin/sellers/remove-seller-member",+ "rc/references/api/admin/sellers/invite-seller-member",+ "rc/references/api/admin/sellers/list-member-invites",+ "rc/references/api/admin/sellers/delete-member-invite",+ "rc/references/api/admin/sellers/resend-member-invite"+ ]+ },+ {+ "group": "Members",+ "pages": [+ "rc/references/api/admin/members/list-members"+ ]+ },+ {+ "group": "Commission Rates",+ "pages": [+ "rc/references/api/admin/commission-rates/list-commission-rates",+ "rc/references/api/admin/commission-rates/create-commission-rate",+ "rc/references/api/admin/commission-rates/retrieve-commission-rate",+ "rc/references/api/admin/commission-rates/update-commission-rate",+ "rc/references/api/admin/commission-rates/delete-commission-rate",+ "rc/references/api/admin/commission-rates/batch-commission-rules"+ ]+ },+ {+ "group": "Payouts",+ "pages": [+ "rc/references/api/admin/payouts/list-payouts",+ "rc/references/api/admin/payouts/retrieve-payout"+ ]+ },+ {+ "group": "Offers",+ "pages": [+ "rc/references/api/admin/offers/list-offers",+ "rc/references/api/admin/offers/retrieve-offer",+ "rc/references/api/admin/offers/delete-offer",+ "rc/references/api/admin/offers/batch-create-offers"+ ]+ },+ {+ "group": "Products",+ "pages": [+ "rc/references/api/admin/products/list-products",+ "rc/references/api/admin/products/create-product",+ "rc/references/api/admin/products/retrieve-product",+ "rc/references/api/admin/products/update-product",+ "rc/references/api/admin/products/delete-product",+ "rc/references/api/admin/products/preview-product",+ "rc/references/api/admin/products/confirm-product",+ "rc/references/api/admin/products/reject-product",+ "rc/references/api/admin/products/request-product-changes",+ "rc/references/api/admin/products/set-product-sellers",+ "rc/references/api/admin/products/batch-product-attributes",+ "rc/references/api/admin/products/list-product-variants",+ "rc/references/api/admin/products/create-product-variant",+ "rc/references/api/admin/products/retrieve-product-variant",+ "rc/references/api/admin/products/update-product-variant",+ "rc/references/api/admin/products/delete-product-variant"+ ]+ },+ {+ "group": "Product Changes",+ "pages": [+ "rc/references/api/admin/product-changes/confirm-product-change",+ "rc/references/api/admin/product-changes/cancel-product-change"+ ]+ },+ {+ "group": "Product Attributes",+ "pages": [+ "rc/references/api/admin/product-attributes/list-product-attributes",+ "rc/references/api/admin/product-attributes/create-product-attribute",+ "rc/references/api/admin/product-attributes/retrieve-product-attribute",+ "rc/references/api/admin/product-attributes/update-product-attribute",+ "rc/references/api/admin/product-attributes/delete-product-attribute",+ "rc/references/api/admin/product-attributes/create-attribute-value",+ "rc/references/api/admin/product-attributes/update-attribute-value",+ "rc/references/api/admin/product-attributes/delete-attribute-value"+ ]+ },+ {+ "group": "Orders",+ "pages": [+ "rc/references/api/admin/orders/list-orders",+ "rc/references/api/admin/orders/get-order-commission-lines",+ "rc/references/api/admin/orders/get-order-order-group"+ ]+ },+ {+ "group": "Order Groups",+ "pages": [+ "rc/references/api/admin/order-groups/list-order-groups",+ "rc/references/api/admin/order-groups/retrieve-order-group"+ ]+ }+ ]+ },+ {+ "group": "Vendor API",+ "pages": [+ "rc/references/api/vendor",+ {+ "group": "Sellers",+ "pages": [+ "rc/references/api/vendor/sellers/create-seller",+ "rc/references/api/vendor/sellers/list-sellers",+ "rc/references/api/vendor/sellers/select-seller",+ "rc/references/api/vendor/sellers/retrieve-current-seller",+ "rc/references/api/vendor/sellers/update-current-seller",+ "rc/references/api/vendor/sellers/upsert-seller-address",+ "rc/references/api/vendor/sellers/upsert-payment-details",+ "rc/references/api/vendor/sellers/upsert-professional-details",+ "rc/references/api/vendor/sellers/delete-professional-details",+ "rc/references/api/vendor/sellers/list-seller-members",+ "rc/references/api/vendor/sellers/invite-seller-member",+ "rc/references/api/vendor/sellers/update-member-role",+ "rc/references/api/vendor/sellers/remove-seller-member",+ "rc/references/api/vendor/sellers/retrieve-current-seller-member",+ "rc/references/api/vendor/sellers/list-member-invites"+ ]+ },+ {+ "group": "Members",+ "pages": [+ "rc/references/api/vendor/members/retrieve-current-member",+ "rc/references/api/vendor/members/update-current-member",+ "rc/references/api/vendor/members/accept-member-invite"+ ]+ },+ {+ "group": "Products",+ "pages": [+ "rc/references/api/vendor/products/list-products",+ "rc/references/api/vendor/products/create-product",+ "rc/references/api/vendor/products/retrieve-product",+ "rc/references/api/vendor/products/update-product",+ "rc/references/api/vendor/products/delete-product",+ "rc/references/api/vendor/products/preview-product",+ "rc/references/api/vendor/products/cancel-product-change",+ "rc/references/api/vendor/products/batch-product-attributes",+ "rc/references/api/vendor/products/list-product-variants",+ "rc/references/api/vendor/products/create-product-variant",+ "rc/references/api/vendor/products/retrieve-product-variant",+ "rc/references/api/vendor/products/update-product-variant",+ "rc/references/api/vendor/products/delete-product-variant",+ "rc/references/api/vendor/product-variants/list-variants"+ ]+ },+ {+ "group": "Product Attributes",+ "pages": [+ "rc/references/api/vendor/product-attributes/list-product-attributes",+ "rc/references/api/vendor/product-attributes/retrieve-product-attribute"+ ]+ },+ {+ "group": "Offers",+ "pages": [+ "rc/references/api/vendor/offers/list-offers",+ "rc/references/api/vendor/offers/create-offer",+ "rc/references/api/vendor/offers/retrieve-offer",+ "rc/references/api/vendor/offers/update-offer",+ "rc/references/api/vendor/offers/delete-offer",+ "rc/references/api/vendor/offers/batch-create-offers",+ "rc/references/api/vendor/offers/batch-offer-inventory-items"+ ]+ },+ {+ "group": "Orders",+ "pages": [+ "rc/references/api/vendor/orders/list-orders",+ "rc/references/api/vendor/orders/retrieve-order",+ "rc/references/api/vendor/orders/preview-order",+ "rc/references/api/vendor/orders/list-order-changes",+ "rc/references/api/vendor/orders/get-order-commission-lines",+ "rc/references/api/vendor/orders/complete-order",+ "rc/references/api/vendor/orders/cancel-order",+ "rc/references/api/vendor/orders/create-fulfillment",+ "rc/references/api/vendor/orders/cancel-fulfillment",+ "rc/references/api/vendor/orders/mark-fulfillment-delivered",+ "rc/references/api/vendor/orders/create-shipment"+ ]+ },+ {+ "group": "Payouts",+ "pages": [+ "rc/references/api/vendor/payouts/list-payouts",+ "rc/references/api/vendor/payouts/retrieve-payout",+ "rc/references/api/vendor/payout-accounts/retrieve-payout-account",+ "rc/references/api/vendor/payout-accounts/create-payout-account",+ "rc/references/api/vendor/payout-accounts/retrieve-payout-account-by-id",+ "rc/references/api/vendor/payout-accounts/create-onboarding"+ ]+ }+ ]+ },+ {+ "group": "Store API",+ "pages": [+ "rc/references/api/store",+ {+ "group": "Products",+ "pages": [+ "rc/references/api/store/products/list-products",+ "rc/references/api/store/products/retrieve-product",+ "rc/references/api/store/product-categories/list-product-categories",+ "rc/references/api/store/product-categories/retrieve-product-category",+ "rc/references/api/store/product-attributes/list-product-attributes",+ "rc/references/api/store/product-attributes/retrieve-product-attribute"+ ]+ },+ {+ "group": "Sellers",+ "pages": [+ "rc/references/api/store/sellers/list-sellers",+ "rc/references/api/store/sellers/retrieve-seller"+ ]+ },+ {+ "group": "Offers",+ "pages": [+ "rc/references/api/store/offers/list-offers",+ "rc/references/api/store/offers/retrieve-offer"+ ]+ },+ {+ "group": "Search",+ "pages": [+ "rc/references/api/store/search/search"+ ]+ },+ {+ "group": "Carts",+ "pages": [+ "rc/references/api/store/carts/add-line-item",+ "rc/references/api/store/carts/add-shipping-methods",+ "rc/references/api/store/carts/apply-promotions",+ "rc/references/api/store/carts/complete-cart",+ "rc/references/api/store/shipping-options/list-shipping-options"+ ]+ },+ {+ "group": "Order Groups",+ "pages": [+ "rc/references/api/store/order-groups/list-order-groups",+ "rc/references/api/store/order-groups/retrieve-order-group"+ ]+ }+ ]+ },+ {+ "group": "Workflows",+ "pages": [+ "rc/references/workflows/overview",+ {+ "group": "Seller",+ "pages": [+ "rc/references/workflows/seller/create-sellers",+ "rc/references/workflows/seller/create-seller-account",+ "rc/references/workflows/seller/create-seller-defaults",+ "rc/references/workflows/seller/update-sellers",+ "rc/references/workflows/seller/delete-sellers",+ "rc/references/workflows/seller/approve-seller",+ "rc/references/workflows/seller/suspend-seller",+ "rc/references/workflows/seller/unsuspend-seller",+ "rc/references/workflows/seller/terminate-seller",+ "rc/references/workflows/seller/unterminate-seller",+ "rc/references/workflows/seller/update-seller-address",+ "rc/references/workflows/seller/update-seller-payment-details",+ "rc/references/workflows/seller/update-seller-professional-details",+ "rc/references/workflows/seller/delete-seller-professional-details",+ "rc/references/workflows/seller/invite-seller"+ ]+ },+ {+ "group": "Member",+ "pages": [+ "rc/references/workflows/member/add-seller-member",+ "rc/references/workflows/member/remove-seller-member",+ "rc/references/workflows/member/update-member",+ "rc/references/workflows/member/update-member-role",+ "rc/references/workflows/member/create-member-invites",+ "rc/references/workflows/member/accept-member-invite",+ "rc/references/workflows/member/resend-member-invite",+ "rc/references/workflows/member/delete-member-invite"+ ]+ },+ {+ "group": "Cart",+ "pages": [+ "rc/references/workflows/cart/complete-cart-with-split-orders",+ "rc/references/workflows/cart/add-seller-shipping-method-to-cart",+ "rc/references/workflows/cart/list-seller-shipping-options-for-cart",+ "rc/references/workflows/cart/update-cart-seller-promotions"+ ]+ },+ {+ "group": "Order Group",+ "pages": [+ "rc/references/workflows/order-group/get-order-group-detail",+ "rc/references/workflows/order-group/get-order-groups-list"+ ]+ },+ {+ "group": "Commission",+ "pages": [+ "rc/references/workflows/commission/create-commission-rates",+ "rc/references/workflows/commission/update-commission-rates",+ "rc/references/workflows/commission/delete-commission-rates",+ "rc/references/workflows/commission/batch-commission-rules",+ "rc/references/workflows/commission/refresh-order-commission-lines"+ ]+ },+ {+ "group": "Payout",+ "pages": [+ "rc/references/workflows/payout/create-payout-account",+ "rc/references/workflows/payout/create-onboarding",+ "rc/references/workflows/payout/create-payout",+ "rc/references/workflows/payout/process-payout-for-webhook"+ ]+ },+ {+ "group": "Product",+ "pages": [+ "rc/references/workflows/product/create-products",+ "rc/references/workflows/product/confirm-products",+ "rc/references/workflows/product/reject-product",+ "rc/references/workflows/product/request-product-change",+ "rc/references/workflows/product/link-sellers-to-product",+ "rc/references/workflows/product/link-sellers-to-product-category"+ ]+ },+ {+ "group": "Product Edit",+ "pages": [+ "rc/references/workflows/product-edit/create-product-change",+ "rc/references/workflows/product-edit/stage-product-change",+ "rc/references/workflows/product-edit/confirm-product-change",+ "rc/references/workflows/product-edit/auto-confirm-product-change",+ "rc/references/workflows/product-edit/cancel-product-change",+ "rc/references/workflows/product-edit/reject-product-change"+ ]+ },+ {+ "group": "Product Attribute",+ "pages": [+ "rc/references/workflows/product-attribute/create-and-link-product-attributes-to-product",+ "rc/references/workflows/product-attribute/add-product-attributes-to-product",+ "rc/references/workflows/product-attribute/remove-product-attributes-from-product",+ "rc/references/workflows/product-attribute/update-product-attributes-on-product",+ "rc/references/workflows/product-attribute/create-product-attributes",+ "rc/references/workflows/product-attribute/update-product-attributes",+ "rc/references/workflows/product-attribute/delete-product-attributes",+ "rc/references/workflows/product-attribute/create-product-attribute-values",+ "rc/references/workflows/product-attribute/update-product-attribute-values",+ "rc/references/workflows/product-attribute/upsert-product-attribute-values",+ "rc/references/workflows/product-attribute/delete-product-attribute-values"+ ]+ },+ {+ "group": "Offer",+ "pages": [+ "rc/references/workflows/offer/create-offers",+ "rc/references/workflows/offer/update-offers",+ "rc/references/workflows/offer/delete-offers",+ "rc/references/workflows/offer/batch-offer-inventory-items"+ ]+ },+ {+ "group": "Media",+ "pages": [+ "rc/references/workflows/media/set-category-images",+ "rc/references/workflows/media/set-collection-images"+ ]+ },+ {+ "group": "Order",+ "pages": [+ "rc/references/workflows/order/create-order-fulfillment",+ "rc/references/workflows/order/cancel-order-fulfillment",+ "rc/references/workflows/order/confirm-return-receive",+ "rc/references/workflows/order/confirm-claim-request",+ "rc/references/workflows/order/confirm-exchange-request",+ "rc/references/workflows/order/confirm-order-edit-request"+ ]+ }+ ]+ },+ {+ "group": "Configuration",+ "pages": [+ "rc/references/configuration"+ ]+ }+ ]+ },+ {+ "tab": "User Guide",+ "groups": [+ {+ "group": "Admin Panel",+ "pages": [+ "rc/user-guide/admin/overview",+ "rc/user-guide/admin/stores"+ ]+ },+ {+ "group": "Vendor Panel",+ "pages": [+ "rc/user-guide/vendor/overview",+ "rc/user-guide/vendor/stores"+ ]+ }+ ]+ },+ {+ "tab": "Migration",+ "groups": [+ {+ "group": "Migration",+ "pages": [+ "rc/migration/overview",+ "rc/migration/from-2-0-to-2-1",+ "rc/migration/from-1-x-to-2-0"+ ]+ },+ {+ "group": "Legal",+ "pages": [+ "rc/telemetry"+ ]+ }+ ]+ },+ {+ "tab": "Changelog",+ "groups": [+ {+ "group": "Changelog",+ "pages": []+ }+ ]+ }+ ]+ },{"version": "2.1.1","default": true,@@ -440,6 +1058,118 @@]},"redirects": [+ {+ "source": "/rc",+ "destination": "/rc/learn/introduction"+ },+ {+ "source": "/rc/welcome",+ "destination": "/rc/learn/introduction"+ },+ {+ "source": "/rc/getting-started/introduction",+ "destination": "/rc/learn/introduction"+ },+ {+ "source": "/rc/getting-started/installation",+ "destination": "/rc/learn/installation"+ },+ {+ "source": "/rc/getting-started/concepts",+ "destination": "/rc/learn/concepts"+ },+ {+ "source": "/rc/developer-guide/overview",+ "destination": "/rc/learn/architecture"+ },+ {+ "source": "/rc/core-concepts/seller",+ "destination": "/rc/learn/sellers"+ },+ {+ "source": "/rc/core-concepts/seller-members",+ "destination": "/rc/learn/seller-members"+ },+ {+ "source": "/rc/core-concepts/order-groups",+ "destination": "/rc/learn/order-groups"+ },+ {+ "source": "/rc/core-concepts/commission",+ "destination": "/rc/learn/commissions"+ },+ {+ "source": "/rc/core-concepts/payout",+ "destination": "/rc/learn/payouts"+ },+ {+ "source": "/rc/developer-guide/blocks",+ "destination": "/rc/learn/blocks"+ },+ {+ "source": "/rc/developer-guide/registry",+ "destination": "/rc/learn/registry"+ },+ {+ "source": "/rc/developer-guide/extending-panels",+ "destination": "/rc/resources/customization/extending-panels"+ },+ {+ "source": "/rc/developer-guide/custom-fields",+ "destination": "/rc/resources/customization/custom-fields"+ },+ {+ "source": "/rc/developer-guide/cli",+ "destination": "/rc/tools/cli"+ },+ {+ "source": "/rc/developer-guide/api-client",+ "destination": "/rc/tools/api-client"+ },+ {+ "source": "/rc/how-to-guides/stripe-connect-integration",+ "destination": "/rc/resources/integrations/stripe-connect"+ },+ {+ "source": "/rc/how-to-guides/medusa-cloud",+ "destination": "/rc/resources/deployment/medusa-cloud"+ },+ {+ "source": "/rc/ai-development/llms",+ "destination": "/rc/resources/ai/llms"+ },+ {+ "source": "/rc/ai-development/mcp",+ "destination": "/rc/resources/ai/mcp"+ },+ {+ "source": "/rc/ai-development/skills",+ "destination": "/rc/resources/ai/overview"+ },+ {+ "source": "/rc/resources/ai/skills",+ "destination": "/rc/resources/ai/overview"+ },+ {+ "source": "/rc/migrations/overview",+ "destination": "/rc/migration/overview"+ },+ {+ "source": "/rc/migrations/from-2-0-to-2-1",+ "destination": "/rc/migration/from-2-0-to-2-1"+ },+ {+ "source": "/rc/migrations/from-1-x-to-2-0",+ "destination": "/rc/migration/from-1-x-to-2-0"+ },+ {+ "source": "/rc/user-guides/admin/stores",+ "destination": "/rc/user-guide/admin/stores"+ },+ {+ "source": "/rc/user-guides/vendor/stores",+ "destination": "/rc/user-guide/vendor/stores"+ },{"source": "/v2/welcome","destination": "/welcome"@@ -554,19 +1284,10 @@}]},- "fonts": {- "heading": {- "family": "Sora",- "weight": 400- },- "body": {- "family": "Poppins",- "weight": 400- }- },"background": {"color": {- "dark": "#090909"+ "light": "#F7F7F9",+ "dark": "#0B0B12"}}}diff --git a/apps/docs/getting-started/installation.mdx b/apps/docs/getting-started/installation.mdxindex 234aa53af..048747a6c 100644--- a/apps/docs/getting-started/installation.mdx+++ b/apps/docs/getting-started/installation.mdx@@ -29,7 +29,7 @@ description: "Install Mercur and set up your marketplace project."## Create a new project```bash-bunx @mercurjs/cli@latest create+bun create mercur-app@latest```The CLI will prompt for a project name and template, then handle everything automatically:diff --git a/apps/docs/rc/blocks.mdx b/apps/docs/rc/blocks.mdxnew file mode 100644index 000000000..0221c27ae--- /dev/null+++ b/apps/docs/rc/blocks.mdx@@ -0,0 +1,209 @@+---+title: "Official Blocks"+sidebarTitle: "Official Blocks"+description: "Modular blocks from the official Mercur registry — install only what you need."+mode: "custom"+---++<div className="max-w-5xl mx-auto px-6 py-16">++ <div className="mb-12">+ <h1 className="text-4xl font-bold tracking-tight mb-4">Official Blocks</h1>+ <p className="text-lg text-gray-500 dark:text-gray-400 max-w-2xl mb-6">+ Blocks are modular pieces of marketplace functionality — API routes, workflows, UI pages, and data models. Each block is copied directly into your project. You own the code.+ </p>+ <div className="inline-flex items-center gap-3 px-4 py-2.5 rounded-lg border border-gray-200 dark:border-gray-700 bg-gray-50 dark:bg-gray-800">+ <code className="text-sm font-mono text-gray-800 dark:text-gray-100">bunx @mercurjs/cli@rc add <block-name></code>+ </div>+ </div>++ <div className="grid grid-cols-1 sm:grid-cols-2 gap-4">++ <div className="p-5 rounded-xl border border-gray-200 dark:border-gray-800">+ <div className="flex items-center gap-3 mb-1">+ <span className="text-base">⭐</span>+ <h3 className="font-semibold text-base m-0">reviews</h3>+ </div>+ <p className="text-sm text-gray-500 dark:text-gray-400 mb-3">Product and seller reviews with ratings, customer/vendor/admin API routes, and workflows.</p>+ <div className="flex flex-wrap gap-1.5">+ <span className="text-xs text-gray-500 dark:text-gray-400 bg-gray-100 dark:bg-gray-800 rounded px-2 py-0.5">module</span>+ <span className="text-xs text-gray-500 dark:text-gray-400 bg-gray-100 dark:bg-gray-800 rounded px-2 py-0.5">workflow</span>+ <span className="text-xs text-gray-500 dark:text-gray-400 bg-gray-100 dark:bg-gray-800 rounded px-2 py-0.5">api</span>+ <span className="text-xs text-gray-500 dark:text-gray-400 bg-gray-100 dark:bg-gray-800 rounded px-2 py-0.5">admin</span>+ <span className="text-xs text-gray-500 dark:text-gray-400 bg-gray-100 dark:bg-gray-800 rounded px-2 py-0.5">vendor</span>+ </div>+ </div>++ <div className="p-5 rounded-xl border border-gray-200 dark:border-gray-800">+ <div className="flex items-center gap-3 mb-1">+ <span className="text-base">👥</span>+ <h3 className="font-semibold text-base m-0">team-management</h3>+ </div>+ <p className="text-sm text-gray-500 dark:text-gray-400 mb-3">Team member management with invitations, roles, and vendor portal pages.</p>+ <div className="flex flex-wrap gap-1.5">+ <span className="text-xs text-gray-500 dark:text-gray-400 bg-gray-100 dark:bg-gray-800 rounded px-2 py-0.5">module</span>+ <span className="text-xs text-gray-500 dark:text-gray-400 bg-gray-100 dark:bg-gray-800 rounded px-2 py-0.5">workflow</span>+ <span className="text-xs text-gray-500 dark:text-gray-400 bg-gray-100 dark:bg-gray-800 rounded px-2 py-0.5">api</span>+ <span className="text-xs text-gray-500 dark:text-gray-400 bg-gray-100 dark:bg-gray-800 rounded px-2 py-0.5">vendor</span>+ </div>+ </div>++ <div className="p-5 rounded-xl border border-gray-200 dark:border-gray-800">+ <div className="flex items-center gap-3 mb-1">+ <span className="text-base">🔖</span>+ <h3 className="font-semibold text-base m-0">wishlist</h3>+ </div>+ <p className="text-sm text-gray-500 dark:text-gray-400 mb-3">Customer wishlist with product bookmarking, pricing context, and store API endpoints.</p>+ <div className="flex flex-wrap gap-1.5">+ <span className="text-xs text-gray-500 dark:text-gray-400 bg-gray-100 dark:bg-gray-800 rounded px-2 py-0.5">module</span>+ <span className="text-xs text-gray-500 dark:text-gray-400 bg-gray-100 dark:bg-gray-800 rounded px-2 py-0.5">workflow</span>+ <span className="text-xs text-gray-500 dark:text-gray-400 bg-gray-100 dark:bg-gray-800 rounded px-2 py-0.5">api</span>+ </div>+ </div>++ <div className="p-5 rounded-xl border border-gray-200 dark:border-gray-800">+ <div className="flex items-center gap-3 mb-1">+ <span className="text-base">🔔</span>+ <h3 className="font-semibold text-base m-0">vendor-notifications</h3>+ </div>+ <p className="text-sm text-gray-500 dark:text-gray-400 mb-3">Vendor notification feed with bell icon in the navbar and a vendor API endpoint.</p>+ <div className="flex flex-wrap gap-1.5">+ <span className="text-xs text-gray-500 dark:text-gray-400 bg-gray-100 dark:bg-gray-800 rounded px-2 py-0.5">api</span>+ <span className="text-xs text-gray-500 dark:text-gray-400 bg-gray-100 dark:bg-gray-800 rounded px-2 py-0.5">vendor</span>+ </div>+ </div>++ <div className="p-5 rounded-xl border border-gray-200 dark:border-gray-800">+ <div className="flex items-center gap-3 mb-1">+ <span className="text-base">🔍</span>+ <h3 className="font-semibold text-base m-0">algolia</h3>+ </div>+ <p className="text-sm text-gray-500 dark:text-gray-400 mb-3">Algolia search integration with product indexing, event-driven sync, and store search API.</p>+ <div className="flex flex-wrap gap-1.5">+ <span className="text-xs text-gray-500 dark:text-gray-400 bg-gray-100 dark:bg-gray-800 rounded px-2 py-0.5">module</span>+ <span className="text-xs text-gray-500 dark:text-gray-400 bg-gray-100 dark:bg-gray-800 rounded px-2 py-0.5">workflow</span>+ <span className="text-xs text-gray-500 dark:text-gray-400 bg-gray-100 dark:bg-gray-800 rounded px-2 py-0.5">api</span>+ </div>+ </div>++ <div className="p-5 rounded-xl border border-gray-200 dark:border-gray-800">+ <div className="flex items-center gap-3 mb-1">+ <span className="text-base">🔎</span>+ <h3 className="font-semibold text-base m-0">meilisearch</h3>+ </div>+ <p className="text-sm text-gray-500 dark:text-gray-400 mb-3">Meilisearch search integration with product indexing, seller moderation sync, filtering, and store/admin API.</p>+ <div className="flex flex-wrap gap-1.5">+ <span className="text-xs text-gray-500 dark:text-gray-400 bg-gray-100 dark:bg-gray-800 rounded px-2 py-0.5">module</span>+ <span className="text-xs text-gray-500 dark:text-gray-400 bg-gray-100 dark:bg-gray-800 rounded px-2 py-0.5">workflow</span>+ <span className="text-xs text-gray-500 dark:text-gray-400 bg-gray-100 dark:bg-gray-800 rounded px-2 py-0.5">api</span>+ <span className="text-xs text-gray-500 dark:text-gray-400 bg-gray-100 dark:bg-gray-800 rounded px-2 py-0.5">subscriber</span>+ </div>+ </div>++ <div className="p-5 rounded-xl border border-gray-200 dark:border-gray-800">+ <div className="flex items-center gap-3 mb-1">+ <span className="text-base">✅</span>+ <h3 className="font-semibold text-base m-0">requests</h3>+ </div>+ <p className="text-sm text-gray-500 dark:text-gray-400 mb-3">Admin approval system for entity requests — list, review, accept or reject submissions.</p>+ <div className="flex flex-wrap gap-1.5">+ <span className="text-xs text-gray-500 dark:text-gray-400 bg-gray-100 dark:bg-gray-800 rounded px-2 py-0.5">workflow</span>+ <span className="text-xs text-gray-500 dark:text-gray-400 bg-gray-100 dark:bg-gray-800 rounded px-2 py-0.5">api</span>+ <span className="text-xs text-gray-500 dark:text-gray-400 bg-gray-100 dark:bg-gray-800 rounded px-2 py-0.5">admin</span>+ <span className="text-xs text-gray-500 dark:text-gray-400 bg-gray-100 dark:bg-gray-800 rounded px-2 py-0.5">vendor</span>+ </div>+ </div>++ <div className="p-5 rounded-xl border border-gray-200 dark:border-gray-800">+ <div className="flex items-center gap-3 mb-1">+ <span className="text-base">📦</span>+ <h3 className="font-semibold text-base m-0">product-import-export</h3>+ </div>+ <p className="text-sm text-gray-500 dark:text-gray-400 mb-3">CSV product import & export for vendors. Includes API routes, workflows, and portal drawers.</p>+ <div className="flex flex-wrap gap-1.5">+ <span className="text-xs text-gray-500 dark:text-gray-400 bg-gray-100 dark:bg-gray-800 rounded px-2 py-0.5">workflow</span>+ <span className="text-xs text-gray-500 dark:text-gray-400 bg-gray-100 dark:bg-gray-800 rounded px-2 py-0.5">api</span>+ <span className="text-xs text-gray-500 dark:text-gray-400 bg-gray-100 dark:bg-gray-800 rounded px-2 py-0.5">vendor</span>+ </div>+ </div>++ <div className="p-5 rounded-xl border border-gray-200 dark:border-gray-800">+ <div className="flex items-center gap-3 mb-1">+ <span className="text-base">💬</span>+ <h3 className="font-semibold text-base m-0">vendor-chat</h3>+ </div>+ <p className="text-sm text-gray-500 dark:text-gray-400 mb-3">TalkJS chat integration for vendors — API endpoint for seller conversations and a Messages page.</p>+ <div className="flex flex-wrap gap-1.5">+ <span className="text-xs text-gray-500 dark:text-gray-400 bg-gray-100 dark:bg-gray-800 rounded px-2 py-0.5">api</span>+ <span className="text-xs text-gray-500 dark:text-gray-400 bg-gray-100 dark:bg-gray-800 rounded px-2 py-0.5">vendor</span>+ </div>+ </div>++ <div className="p-5 rounded-xl border border-gray-200 dark:border-gray-800">+ <div className="flex items-center gap-3 mb-1">+ <span className="text-base">✉️</span>+ <h3 className="font-semibold text-base m-0">messaging</h3>+ </div>+ <p className="text-sm text-gray-500 dark:text-gray-400 mb-3">Buyer-vendor messaging with real-time SSE, content filtering, chat blocking, rate limiting, and admin oversight.</p>+ <div className="flex flex-wrap gap-1.5">+ <span className="text-xs text-gray-500 dark:text-gray-400 bg-gray-100 dark:bg-gray-800 rounded px-2 py-0.5">module</span>+ <span className="text-xs text-gray-500 dark:text-gray-400 bg-gray-100 dark:bg-gray-800 rounded px-2 py-0.5">workflow</span>+ <span className="text-xs text-gray-500 dark:text-gray-400 bg-gray-100 dark:bg-gray-800 rounded px-2 py-0.5">api</span>+ <span className="text-xs text-gray-500 dark:text-gray-400 bg-gray-100 dark:bg-gray-800 rounded px-2 py-0.5">admin</span>+ <span className="text-xs text-gray-500 dark:text-gray-400 bg-gray-100 dark:bg-gray-800 rounded px-2 py-0.5">vendor</span>+ </div>+ </div>++ </div>++ <div className="mt-10 p-5 rounded-xl border border-gray-200 dark:border-gray-800">+ <p className="text-sm text-gray-500 dark:text-gray-400 m-0">+ Blocks are copied directly into your project — no runtime dependencies on Mercur.+ After installing, follow the setup steps in the <a href="/developer-guide/blocks" className="text-gray-900 dark:text-gray-100 font-medium underline underline-offset-2">Developer Guide</a>.+ Want to build your own? See the <a href="/developer-guide/registry" className="text-gray-900 dark:text-gray-100 font-medium underline underline-offset-2">Registry Guide</a>.+ </p>+ </div>++ <div className="mt-12 mb-4">+ <h2 className="text-2xl font-bold tracking-tight mb-4">Quick Start</h2>++ <h3 className="text-lg font-semibold mb-2">Install a block</h3>++```bash+bunx @mercurjs/cli@rc add reviews+```++This copies the block source code into your project:++```+src/+├── modules/reviews/ # Data model and service+│ ├── models/+│ ├── service.ts+│ └── index.ts+├── workflows/reviews/ # Business logic+│ ├── create-review.ts+│ └── index.ts+├── api/+│ ├── admin/reviews/ # Admin API routes+│ ├── vendor/reviews/ # Vendor API routes+│ └── store/reviews/ # Storefront API routes+└── admin/+ └── routes/reviews/ # Admin dashboard pages+```++ <h3 className="text-lg font-semibold mt-6 mb-2">Search blocks</h3>++```bash+bunx @mercurjs/cli@rc search -q "reviews"+```++ <h3 className="text-lg font-semibold mt-6 mb-2">Compare local changes against registry</h3>++```bash+bunx @mercurjs/cli@rc diff reviews+```++ </div>++</div>diff --git a/apps/docs/rc/learn/architecture.mdx b/apps/docs/rc/learn/architecture.mdxnew file mode 100644index 000000000..8690a9295--- /dev/null+++ b/apps/docs/rc/learn/architecture.mdx@@ -0,0 +1,215 @@+---+title: "Overview"+description: "How Mercur is built — architecture, technology stack, and how the pieces fit together."+---++Mercur is a marketplace platform built on top of [MedusaJS](https://medusajs.com), an open-source headless commerce framework. Rather than being a standalone application, Mercur extends Medusa with marketplace-specific logic — sellers, commissions, order splitting, payouts — while Medusa handles the foundational commerce layer.++This page explains how the system is structured and how its components interact.++## Architecture++Mercur follows a layered architecture where each layer has a distinct responsibility:++```mermaid+graph TD+ subgraph Frontend Layer+ A[Admin Panel]+ B[Vendor Portal]+ C[Storefront]+ end++ subgraph API Layer+ D["/admin/*"]+ E["/vendor/*"]+ F["/store/*"]+ end++ subgraph Marketplace Layer - Mercur+ G[Modules · Workflows · Links · Subscribers · Events]+ end++ subgraph Commerce Layer - Medusa+ H[Products · Orders · Carts · Payments · Fulfillment]+ end++ I[(PostgreSQL)]++ A --> D+ B --> E+ C --> F+ D --> G+ E --> G+ F --> G+ G --> H+ H --> I+```++### Commerce layer++Medusa provides the core commerce engine — products, pricing, carts, orders, payments, fulfillment, promotions, and inventory. Mercur does not replace any of this. Instead, it builds on top using Medusa's extension model: custom modules, links, workflows, and API routes.++### Marketplace layer++This is where Mercur's code lives. It introduces marketplace modules — **Seller**, **Commission**, **Offer**, **Payout**, **Product Attribute**, and **Product Edit**, among others — along with workflows that coordinate marketplace-specific operations like order splitting, product approvals, and commission calculation. Links connect these modules to Medusa's core entities (products, orders, customers) without modifying the original models.++### API layer++Mercur exposes three sets of HTTP endpoints:++| API | Path | Purpose |+|-----|------|---------|+| **Admin** | `/admin/*` | Platform administration — manage sellers, configure commission rates, view payouts |+| **Vendor** | `/vendor/*` | Seller operations — manage products, orders, fulfillment, shipping, inventory, payouts |+| **Store** | `/store/*` | Storefront — browse sellers, manage carts, checkout with order splitting |++Each API route is composed of a request handler, middleware, query configuration, and Zod validators.++### Frontend layer++Three interfaces consume the APIs:++- **Admin Panel** — Built with React and Medusa UI components. Operators use it to manage the marketplace: approve sellers, set commission rates, handle disputes.+- **Vendor Portal** — A React application for sellers to manage their products, orders, fulfillment, and payouts. Uses file-based routing via the Dashboard SDK.+- **Storefront** — Customer-facing application. Can be built with any frontend technology that consumes the Store API.++## Technology stack++| Layer | Technology |+|-------|-----------|+| Runtime | Node.js 20+, TypeScript |+| Framework | MedusaJS v2 |+| Database | PostgreSQL |+| Frontend | React 18, React Router, Vite |+| Data fetching | TanStack React Query |+| UI components | Medusa UI, Radix UI |+| Form handling | React Hook Form, Zod |+| Tables | TanStack React Table |+| Build | Turborepo (monorepo), Bun (package manager), tsup |+| Internationalization | i18next |++## Core plugin++The core plugin (`@mercurjs/core`) is the main package that contains all marketplace logic. It's structured as a standard MedusaJS plugin:++```+core/src/+├── modules/ # Data models and services+│ ├── seller/ # Seller registration, profiles, members, order groups+│ ├── commission/ # Commission rates, rules, calculation+│ ├── offer/ # Seller listings against the shared product catalog+│ ├── payout/ # Payout accounts, onboarding, payouts+│ ├── product-attribute/ # Typed attribute catalog and values+│ ├── product-edit/ # Product change requests and audit trail+│ └── ... # Media, custom fields, search+├── links/ # Relationships between modules+├── workflows/ # Multi-step business processes+│ ├── seller/ # Seller CRUD workflows+│ ├── cart/ # Cart completion with order splitting+│ ├── commission/ # Commission rate and line management+│ ├── payout/ # Payout processing and crediting+│ ├── offer/ # Offer lifecycle+│ ├── product/ # Product approval and seller linking+│ ├── product-edit/ # Change-request lifecycle+│ ├── order-group/ # Order group operations+│ └── ... # Attributes, shipping, inventory, promotions, etc.+├── api/ # HTTP route handlers+│ ├── admin/ # Admin API routes+│ ├── vendor/ # Vendor API routes+│ ├── store/ # Store API routes+│ └── hooks/ # Webhook handlers+├── subscribers/ # Event listeners+├── providers/ # Third-party provider integrations+└── jobs/ # Scheduled background tasks+```++### Modules++Modules encapsulate data models and business logic for a specific domain. Each module is self-contained with its own models, service, migrations, and repositories. Modules don't reference each other directly — they communicate through links and workflows.++### Links++Links define relationships between Mercur modules and Medusa core entities. For example, the `product-seller-link` connects a Medusa `Product` to a Mercur `Seller` without modifying either model. Dozens of links wire the marketplace layer into the commerce layer — connecting sellers to their scoped resources (orders, customers, shipping, inventory, promotions), offers to products, variants, prices, and line items, order groups to carts and orders, and attributes to Medusa's native product options.++### Workflows++Workflows orchestrate multi-step operations that span multiple modules. They support compensation (automatic rollback on failure) and hooks (extension points for custom logic). The most significant workflow is `completeCartWithSplitOrdersWorkflow`, which handles the entire checkout process — validating items, splitting by seller, creating orders, allocating payments, and calculating commissions.++### Subscribers and events++Subscribers listen for events emitted by workflows and trigger asynchronous side effects — sending notifications, updating external systems, or processing webhooks. This keeps the core workflows focused on their primary job while allowing the system to react to changes.++## How data flows++A typical customer purchase flows through the system like this:++1. **Customer adds items** from multiple sellers to their cart (Store API)+2. **Cart completion** triggers the split order workflow (Marketplace Layer)+3. Items are **grouped by seller**, and a separate order is created for each (Commerce + Marketplace Layer)+4. **Commission lines** are calculated for each order based on matching rates (Commission Module)+5. **Payment is split** proportionally across seller orders (Commerce Layer)+6. Each seller's order is **credited to their payout account** after commission deduction (Payout Module)+7. **Events are emitted** — triggering notifications, webhook calls, and other side effects (Subscribers)+8. Sellers **manage their orders** through the Vendor Portal (Vendor API)+9. The admin **monitors everything** through the Admin Panel (Admin API)++## Block-based distribution++Mercur uses a **block-based architecture** for distribution. Instead of installing an opaque package, the CLI copies source code directly into your project. Each block is a self-contained piece of functionality — a module, a workflow, an API route, or a UI extension.++This means:+- You own every line of code in your project+- You can modify any block to fit your business requirements+- There are no hidden abstractions or version conflicts+- Updates are explicit — you diff and apply changes from the registry++The CLI (`@mercurjs/cli@rc`) manages this process: scaffolding projects, installing blocks, searching the registry, and comparing local changes against upstream versions.++## Workflow example++Here is a simplified example of how a Mercur workflow is structured. Workflows coordinate multi-step operations with automatic rollback on failure:++```typescript+import {+ createWorkflow,+ createStep,+ StepResponse,+ WorkflowResponse,+} from "@medusajs/framework/workflows-sdk"+import { MercurModules } from "@mercurjs/types"++const validateSellerStep = createStep(+ "validate-seller",+ async ({ seller_id }: { seller_id: string }, { container }) => {+ const sellerService = container.resolve(MercurModules.SELLER)+ const seller = await sellerService.retrieveSeller(seller_id)++ if (seller.status !== "open") {+ throw new Error("Seller is not active")+ }++ return new StepResponse(seller)+ }+)++const createProductForSellerWorkflow = createWorkflow(+ "create-product-for-seller",+ (input: { seller_id: string }) => {+ const seller = validateSellerStep({ seller_id: input.seller_id })++ // Additional steps: create product, link to seller, etc.++ return new WorkflowResponse({ seller })+ }+)+```++## Design principles++**Modular over monolithic** — Each marketplace feature is a separate module that can be installed, modified, or replaced independently. You don't need to use all of Mercur to benefit from it.++**Explicit over implicit** — Relationships between modules are defined through links, not hidden in service code. Workflows make multi-step operations visible and debuggable. API routes are file-based and predictable.++**Extensible over configurable** — Rather than exposing hundreds of configuration options, Mercur provides extension points. Workflows have hooks. Providers are pluggable. Models can be extended through Medusa's framework. When configuration isn't enough, you modify the source code directly.++**Commerce-aware** — Mercur doesn't reinvent commerce. It delegates products, pricing, orders, payments, and fulfillment to Medusa, and focuses exclusively on the marketplace logic that multi-vendor systems need.diff --git a/apps/docs/rc/learn/attributes.mdx b/apps/docs/rc/learn/attributes.mdxnew file mode 100644index 000000000..9f436771f--- /dev/null+++ b/apps/docs/rc/learn/attributes.mdx@@ -0,0 +1,89 @@+---+title: "Product Attributes"+description: "Typed, filterable product attributes on top of Medusa's native product options — including variant axes shared across the catalog."+---++Product attributes extend the master catalog with structured, typed data — "Material: Cotton", "Weight: 10kg", "Waterproof: yes". The operator defines the attribute catalog; products reference it. Attributes power filtering, enforce consistent values across sellers, and — for select attributes — can drive variant generation.++## Attribute types++| Type | Values | Example |+|------|--------|---------|+| `multi_select` | Multiple values from a defined list | Color: Red, Blue, Green |+| `single_select` | One value from a defined list | Condition: New |+| `text` | Free text | Care instructions |+| `unit` | A measured value | Weight: 10kg |+| `toggle` | Boolean — fixed `true` / `false` values | Waterproof |++## Attribute fields++| Field | Description |+|-------|-------------|+| `name` / `handle` | Display name and unique handle |+| `type` | One of the types above |+| `is_variant_axis` | Whether the attribute generates product variants — only allowed for `multi_select` |+| `is_filterable` | Whether the attribute is exposed as a storefront filter |+| `is_required` | Whether products must set a value |+| `rank` | Ordering in listings and forms |+| `is_active` | Soft enable/disable |+| `product_id` | `null` for global attributes; set when the attribute is product-scoped |++Each select attribute owns a ranked list of **values** (`ProductAttributeValue`), managed by the operator in the Admin Panel.++## Global vs product-scoped++- **Global attributes** (`product_id = null`) live in the marketplace-wide catalog. They can be attached to any product and linked to categories, so the right attributes surface for the right product types.+- **Product-scoped attributes** are created inline from a single product's form — a one-off axis or field that doesn't belong in the shared catalog. They don't appear in the global attribute list.++## Variant axes and native product options++Attributes marked `is_variant_axis` are not a parallel system — **a variant-axis attribute is backed by a native Medusa global product option**. The attribute and its values mirror one-to-one onto a `ProductOption` and its option values:++- A **global** axis attribute maps to a shared product option that many products link to, each restricted to its selected subset of values.+- A **product-scoped** axis attribute maps to an exclusive, product-owned option.++Because axes are real product options, variants are built with Medusa's standard machinery — `variants[].options` maps axis titles to value names, exactly as in a plain Medusa project. Non-axis attributes never become options; they attach as plain value links.++Only `multi_select` attributes can be variant axes — an axis needs an enumerable set of values to combine into variants.++## Attaching attributes to products++Products manage their attributes through a single **batch** endpoint that adds, removes, and updates in one request:++```bash+curl -X POST "http://localhost:9000/vendor/products/prod_123/attributes/batch" \+ -H "Authorization: Bearer <token>" \+ -H "Content-Type: application/json" \+ -d '{+ "add": [+ { "id": "pattr_material", "value_ids": ["pattrval_cotton"] },+ { "title": "Fit", "values": ["Slim", "Regular"], "is_variant_axis": true }+ ],+ "remove": ["pattr_old"]+ }'+```++An entry either references an **existing** attribute by `id` (with the selected `value_ids`, or a `value` for text/unit/toggle types) or defines an **inline** one by `title` — created product-scoped on the fly.++At product create time, the same shape is passed as a unified `attributes[]` array.++## Who manages what++| Surface | Capability |+|---------|-----------|+| Admin Panel | Owns the attribute catalog — create attributes, manage possible values, set ranking, edit flags |+| Vendor Portal | Consumes attributes on products — select values, propose inline attributes as part of product submissions |+| Store API | Reads attributes for display and filtering |++Attribute changes on products submitted by vendors flow through the same [change-request pipeline](/rc/learn/product-requests) as other product edits.++## Next steps++<CardGroup cols={2}>+ <Card title="Products" href="/rc/learn/products">+ The master catalog attributes describe.+ </Card>+ <Card title="Product Requests & Approvals" href="/rc/learn/product-requests">+ How attribute edits are reviewed.+ </Card>+</CardGroup>diff --git a/apps/docs/rc/learn/blocks.mdx b/apps/docs/rc/learn/blocks.mdxnew file mode 100644index 000000000..199382fe4--- /dev/null+++ b/apps/docs/rc/learn/blocks.mdx@@ -0,0 +1,99 @@+---+title: "Blocks"+description: "Self-contained pieces of marketplace functionality that get copied into your project as source code."+---++Blocks are the unit of distribution in Mercur. Each block is a self-contained feature — a reviews system, a wishlist, product import/export — that you install directly into your project. Unlike packages, blocks are copied as source code. You own every file and can modify anything.++## Installing blocks++```bash+bunx @mercurjs/cli@rc add reviews+bunx @mercurjs/cli@rc add wishlist product-import-export+```++The CLI fetches the block from the [registry](/rc/learn/registry), resolves dependencies, transforms imports to match your project's path aliases, and copies the files into the right directories.++## What's inside a block++A block can contain any combination of:++| Type | What it is | Example |+|------|-----------|---------|+| **Modules** | Data models and business logic | Review model, wishlist service |+| **Workflows** | Multi-step business processes | Create review, export products |+| **API Routes** | HTTP endpoints | `GET /store/reviews`, `POST /vendor/products/import` |+| **Links** | Relationships between modules | Product-review link, customer-wishlist link |+| **Vendor extensions** | Vendor portal pages and components | Reviews list page, import drawer |+| **Admin extensions** | Admin panel pages and components | Reviews moderation page |++For example, the `reviews` block includes a module (data model + service), workflows (create/update/delete), API routes (store, vendor, admin), links (product-review, seller-review), and UI pages for both the vendor portal and admin panel.++## Block structure++Blocks follow a consistent directory convention:++```+reviews/+├── modules/reviews/ # Data model, service, types+├── workflows/review/ # Steps and workflow definitions+├── links/ # product-review, seller-review, etc.+├── api/+│ ├── admin/reviews/ # Admin API routes+│ ├── vendor/reviews/ # Vendor API routes+│ └── store/reviews/ # Store API routes+├── vendor/pages/reviews/ # Vendor portal UI+└── admin/pages/reviews/ # Admin panel UI+```++Files are placed into your project based on the aliases in your `blocks.json`:++```json blocks.json+{+ "aliases": {+ "api": "packages/api/src",+ "vendor": "apps/vendor/src",+ "admin": "apps/admin/src"+ }+}+```++## Post-installation++After adding a block, the CLI shows setup instructions. Typically you need to:++1. **Register the module** in `medusa-config.ts`+2. **Add middlewares** to your `api/middlewares.ts`+3. **Run migrations** with `bunx medusa db:generate` and `bunx medusa db:migrate`+4. **Regenerate types** with `bunx @mercurjs/cli@rc codegen`++## Updating blocks++Check for changes against the registry:++```bash+bunx @mercurjs/cli@rc diff reviews+```++If there are updates you want, re-install with the overwrite flag:++```bash+bunx @mercurjs/cli@rc add reviews --overwrite+```++Since blocks are source code in your project, you control when and how updates are applied.++## Available blocks++Search the registry to see what's available:++```bash+bunx @mercurjs/cli@rc search+bunx @mercurjs/cli@rc search --query wishlist+```++View details about a specific block:++```bash+bunx @mercurjs/cli@rc view reviews+```diff --git a/apps/docs/rc/learn/commissions.mdx b/apps/docs/rc/learn/commissions.mdxnew file mode 100644index 000000000..dded5db09--- /dev/null+++ b/apps/docs/rc/learn/commissions.mdx@@ -0,0 +1,175 @@+---+title: "Commission"+description: "How marketplace commissions work in Mercur — rates, rules, the matching algorithm, and commission lines."+---++Commissions are how the marketplace earns revenue. Rather than storing a single commission percentage, Mercur uses a **rule-based system** where commission rates are matched to order line items based on configurable conditions, with a global default as the fallback.++## Commission rates++A **CommissionRate** defines how much commission the marketplace takes and when it applies.++| Field | Description |+|-------|-------------|+| `name` | Human-readable name (e.g. "Electronics Commission") |+| `code` | Unique system identifier |+| `type` | `fixed` (flat amount) or `percentage` |+| `value` | The percentage, or the flat amount used when no per-currency value matches |+| `values` | Per-currency amounts for `fixed` rates (`currency_code` + `amount`) |+| `include_tax` | Include tax in the base amount for calculation |+| `include_shipping` | Whether shipping methods are also commissioned (global rate only) |+| `is_default` | Marks the **global commission** — the fallback applied when no scoped rate matches |+| `is_enabled` | Disabled rates are skipped entirely |++<Info>+ `percentage` rates use the scalar `value`. `fixed` rates read the per-currency `values` list and fall back to `value` when the order's currency has no entry.+</Info>++## Commission rules++Rules determine **when** a rate applies. Each rule has a `reference` (the dimension) and a `reference_id` (the value to match):++| Reference | Matches items whose product… |+|-----------|------------------------------|+| `product` | is that specific product |+| `product_type` | has that product type |+| `product_collection` | belongs to that collection |+| `product_category` | belongs to that category |+| `seller` | is sold by that seller |++A rate with **no rules** matches everything — that's what makes the default rate a catch-all.++### The matching algorithm++For each line item:++1. **Group** the rate's rules by dimension (`reference`).+2. A rate matches when **every dimension group has at least one matching rule** — AND across dimensions, OR within a dimension. Example: a rate with rules `seller: A` and `product_category: electronics` matches only electronics sold by seller A; a rate with two `product_category` rules matches either category.+3. Among all matching rates, the **most specific wins** — the rate scoping on the largest number of distinct dimensions.+4. Ties break deterministically to the **oldest rate**.++**Example configuration:**++| Rate | Rules | Type | Value | Matches |+|------|-------|------|-------|---------|+| Premium seller electronics | `seller: slr_abc` + `product_category: electronics` | Percentage | 8% | Electronics from that seller (2 dimensions — most specific) |+| Electronics commission | `product_category: electronics` | Percentage | 12% | Other sellers' electronics (1 dimension) |+| Global commission | _(none, `is_default`)_ | Percentage | 15% | Everything else |++An electronics item from seller `slr_abc` gets 8% — the two-dimension rate beats the one-dimension category rate, regardless of creation order.++## The calculation pipeline++The `getCommissionLines` step calculates commissions when an order is placed:++1. **Load** all enabled rates with their rules and per-currency values. Rates pinned to a `currency_code` apply only to orders in that currency.+2. **Match items** — for each line item, find matching rates and pick the most specific (see above).+3. **Calculate** — the base amount is the item subtotal, plus tax when `include_tax` is on. Percentage: `(base × value) / 100`. Fixed: the per-currency amount.+4. **Shipping** — governed solely by the **global commission**: when its `include_shipping` flag is on, each shipping method gets a commission line calculated from the global rate.+5. **Output** — one `CommissionLine` per commissioned item and shipping method.++<Info>+ All commission calculations use `BigNumber` arithmetic for precision. This is critical for financial accuracy — standard floating-point math can introduce rounding errors.+</Info>++## API examples++### Set up the global commission (Admin API)++```bash+curl -X POST http://localhost:9000/admin/commission-rates \+ -H "Authorization: Bearer <admin-token>" \+ -H "Content-Type: application/json" \+ -d '{+ "name": "Global Commission",+ "code": "global",+ "type": "percentage",+ "value": 15,+ "is_default": true,+ "include_shipping": true+ }'+```++### Create a scoped rate with rules (Admin API)++```bash+curl -X POST http://localhost:9000/admin/commission-rates \+ -H "Authorization: Bearer <admin-token>" \+ -H "Content-Type: application/json" \+ -d '{+ "name": "Electronics Commission",+ "code": "electronics",+ "type": "percentage",+ "value": 12,+ "rules": [+ { "reference": "product_category", "reference_id": "pcat_electronics" }+ ]+ }'+```++### Create a fixed rate with per-currency amounts++```bash+curl -X POST http://localhost:9000/admin/commission-rates \+ -H "Authorization: Bearer <admin-token>" \+ -H "Content-Type: application/json" \+ -d '{+ "name": "Flat Listing Fee",+ "code": "flat-fee",+ "type": "fixed",+ "value": 2,+ "values": [+ { "currency_code": "usd", "amount": 2 },+ { "currency_code": "eur", "amount": 1.8 }+ ],+ "rules": [+ { "reference": "seller", "reference_id": "slr_abc123" }+ ]+ }'+```++### List commission rates++```bash+curl http://localhost:9000/admin/commission-rates \+ -H "Authorization: Bearer <admin-token>"+```++## Commission lines++A **CommissionLine** is the calculated commission for a single line item or shipping method:++| Field | Description |+|-------|-------------|+| `item_id` | The order line item (null for shipping lines) |+| `shipping_method_id` | The shipping method (null for item lines) |+| `commission_rate_id` | The rate that was applied |+| `code` | Code of the applied rate |+| `rate` | The rate value used |+| `amount` | The calculated commission amount |++Commission lines are linked to order line items via a **read-only link**, so an order's items can be queried together with their commission data in a single request.++## How commission connects to payouts++Commission lines are the bridge between orders and seller earnings:++1. An order is completed → commission lines are calculated for each item+2. When the order is credited to the seller's payout account, the total commission is subtracted:+ ```+ seller_earnings = order.total - sum(commission_line.amount)+ ```+3. The marketplace retains the commission amount++This separation means commission rates can be changed at any time without affecting already-calculated orders — the `CommissionLine` records serve as a permanent audit trail.++## Next steps++<CardGroup cols={2}>+ <Card title="Payouts" href="/rc/learn/payouts">+ How seller earnings settle after commission.+ </Card>+ <Card title="Order Groups" href="/rc/learn/order-groups">+ The per-seller orders commissions are calculated on.+ </Card>+</CardGroup>diff --git a/apps/docs/rc/learn/concepts.mdx b/apps/docs/rc/learn/concepts.mdxnew file mode 100644index 000000000..77914bea0--- /dev/null+++ b/apps/docs/rc/learn/concepts.mdx@@ -0,0 +1,84 @@+---+title: "Concepts"+description: "Core concepts behind Mercur — from the Medusa foundation to blocks, panels, and the registry."+---++Mercur is built on a small set of concepts. Familiarity with these establishes a common language when working with the platform.++## Medusa++[MedusaJS](https://medusajs.com) is the open-source commerce framework that powers Mercur's foundation. It handles products, pricing, carts, orders, payments, fulfillment, and promotions. Mercur does not replace any of this — it extends Medusa with marketplace-specific logic using Medusa's own extension model.++## Admin Panel++The admin panel is a React application for **marketplace operators**. It provides a dashboard to manage sellers, configure commission rates, moderate product requests, handle disputes, and monitor the overall marketplace. It is built with [Medusa UI](https://docs.medusajs.com/ui) components and can be extended with custom pages and components through the [Dashboard SDK](#dashboard-sdk).++## Vendor Portal++The vendor portal is a React application for **sellers**. Sellers use it to manage their products, process orders, configure shipping, track payouts, and handle returns. Like the admin panel, it is built on the Dashboard SDK and can be fully customized.++## Storefront++The storefront is the **customer-facing** application. It can be built with any frontend technology that consumes the Store API — Next.js, Remix, or any other framework. Mercur provides a ready-made storefront template to start from.++## API Routes++Mercur exposes three sets of HTTP endpoints:++- **Admin API** (`/admin/*`) — Platform administration+- **Vendor API** (`/vendor/*`) — Seller operations+- **Store API** (`/store/*`) — Customer-facing storefront++Each route is composed of a handler, middleware, query configuration, and validators.++## Core Plugin++The core plugin (`@mercurjs/core`) is the main package that contains all of Mercur's marketplace logic — modules, links, workflows, API routes, subscribers, and providers. It is installed as a standard MedusaJS plugin and serves as the foundation that blocks extend.++## Modules++Modules encapsulate data models and business logic for a specific domain. Each module is self-contained with its own models, service, and migrations. Mercur's marketplace modules include Seller, Commission, Offer, Payout, Product Attribute, Product Edit, Media, Custom Fields, and Search. They communicate through [Links](#links) and [Workflows](#workflows), never directly. Additional domains — such as Reviews — ship as installable [blocks](#blocks) from the registry rather than inside the core plugin.++## Master Products++Products form a single **shared catalog** for the whole marketplace — a product is not owned by the seller who created it. Sellers gain the right to sell a product through eligibility assignments and sell it through [offers](#offers). See [Products](/rc/learn/products).++## Offers++An offer is a seller's sellable listing against a master product: their own SKU, price, inventory, and shipping profile. Many sellers can hold competing offers on the same product. See [Offers](/rc/learn/offers).++## Product Attributes++A typed, operator-managed attribute catalog (select, text, unit, toggle) that products reference for structured data and storefront filtering. Variant-axis attributes are backed by Medusa's native global product options. See [Product Attributes](/rc/learn/attributes).++## Product Requests++Vendor product submissions and edits flow through a reviewable change-request pipeline — the operator confirms, declines, or requests revisions before anything touches the shared catalog. See [Product Requests & Approvals](/rc/learn/product-requests).++## Links++Links define relationships between Mercur modules and Medusa core entities without modifying either side. For example, a link connects a Medusa Product to a Mercur Seller — this is how the system knows which sellers are eligible to sell which products.++## Workflows++Workflows coordinate multi-step operations across modules. They support compensation (automatic rollback on failure) and hooks (extension points for custom logic). For example, the checkout workflow splits a cart by seller, creates separate orders, allocates payments, and calculates commissions — all as a single atomic operation.++## Blocks++Blocks are the unit of distribution in Mercur. Each block is a self-contained piece of functionality — a module, a workflow, an API route, a link, or a UI extension. When you install a block, the CLI copies its source code directly into your project. You own every line and can modify anything.++## Registry++A registry is a collection of blocks available for installation. The official Mercur registry (`@mercurjs`) provides all marketplace blocks. You can also create and host [custom registries](/rc/tools/cli#custom-registries) for your own blocks.++## CLI++The [Mercur CLI](/rc/tools/cli) (`@mercurjs/cli@rc`) manages your project — scaffolding from templates, installing blocks, searching registries, generating types, and diffing local changes against upstream versions.++## Dashboard SDK++The [Dashboard SDK](/rc/tools/dashboard-sdk) (`@mercurjs/dashboard-sdk`) is a Vite plugin shared by the admin panel and vendor portal. It provides file-based routing, automatic navigation generation, component overrides, and i18n support.++## API Client++The [API Client](/rc/tools/api-client) (`@mercurjs/client`) provides type-safe access to all Mercur API endpoints. Types are generated from your actual API routes using `bunx @mercurjs/cli@rc codegen`, so requests and responses are always in sync with your backend.diff --git a/apps/docs/rc/learn/installation.mdx b/apps/docs/rc/learn/installation.mdxnew file mode 100644index 000000000..33a630bc5--- /dev/null+++ b/apps/docs/rc/learn/installation.mdx@@ -0,0 +1,117 @@+---+title: "Installation"+description: "Install Mercur and set up your marketplace project."+---++## Requirements++- [Node.js v20+](https://nodejs.org/en/download) (LTS version)+- [Bun v1.3+](https://bun.sh) (recommended package manager)+- [Git](https://git-scm.com/downloads)+- PostgreSQL v14+++<Tip>+ The quickest way to get PostgreSQL running locally is with Docker:++ ```bash+ docker run -d --name mercur-postgres \+ -e POSTGRES_PASSWORD=postgres \+ -p 5432:5432 postgres:16+ ```++ Or on macOS with Homebrew:++ ```bash+ brew install postgresql@16 && brew services start postgresql@16+ ```+</Tip>++## Create a new project++```bash+bun create mercur-app@rc+```++The CLI will prompt for a project name and template, then handle everything automatically:+- downloads the template+- installs dependencies+- creates and migrates the database+- seeds initial data+- starts the development server and opens the admin setup page in your browser++### Options++| Option | Description | Default |+|--------|-------------|---------|+| `--template <template>` | Template to use (`basic` or `plugin`) | prompted |+| `--db-connection-string <string>` | Full PostgreSQL connection string | — |+| `--db-host <host>` | PostgreSQL host | `localhost` |+| `--db-port <port>` | PostgreSQL port | `5432` |+| `--no-deps` | Skip dependency installation | — |+| `--skip-db` | Skip database setup | — |++## Access your marketplace++Once the development server is running, your marketplace is available at:++| Panel | URL |+|-------|-----|+| API | `http://localhost:9000` |+| Admin Panel | `http://localhost:9000/dashboard` |+| Vendor Panel | `http://localhost:9000/seller` |++### Create an admin account++The CLI automatically opens the admin invite page in your browser after setup. Follow the on-screen instructions to create your first admin account.++### Create your first seller++The seed data does not include a seller account. To create one, open the Vendor Panel and register:++```+http://localhost:9000/seller/register+```++Fill in the registration form and complete the onboarding wizard. Once submitted, the seller will appear in the Admin Panel for approval.++## Start the development server++After stopping the server, start it again from your project directory:++```bash+cd <your-project-name>+bun dev+```++## Initialize an existing project++If you have an existing Medusa project, initialize Mercur in it:++```bash+bunx @mercurjs/cli@rc init+```++This creates a `blocks.json` configuration file in your project.++## Add blocks++Install blocks from the registry:++```bash+bunx @mercurjs/cli@rc add <block-name>+```++Browse available blocks:++```bash+bunx @mercurjs/cli@rc search+```++## Run database migrations++After adding blocks that include modules:++```bash+bunx medusa db:generate <module1> <module2> ...+bunx medusa db:migrate+```diff --git a/apps/docs/rc/learn/introduction.mdx b/apps/docs/rc/learn/introduction.mdxnew file mode 100644index 000000000..113710741--- /dev/null+++ b/apps/docs/rc/learn/introduction.mdx@@ -0,0 +1,71 @@+---+title: "Introduction"+description: "Mercur is an open-source marketplace platform built on MedusaJS with a block-based architecture."+---++Mercur is an open-core **marketplace platform** built on top of the [Medusa Framework](https://medusajs.com). It follows a block-based architecture — install only the modules, workflows, API routes, and UI extensions you need directly into your project. No black-box dependencies, full code ownership.++## What is Mercur++Medusa provides the underlying commerce engine — products, pricing, carts, orders, fulfillment, and events — while Mercur builds the marketplace domain layer on top of it.++On top of Medusa's core, Mercur introduces marketplace entities and workflows such as sellers, onboarding, product requests, commissions, reviews, return escalations, order splitting, vendor payouts, and dedicated Admin, Vendor, and Storefront APIs.++It comes with three optional interfaces:++- an **Admin Panel** for marketplace operators+- a **Vendor Portal** for seller teams+- a **Storefront** ready for marketplace scenarios++## Why Mercur++### Built on a modern stack++Mercur runs on a modern TypeScript backend powered by the Medusa framework, giving you a proven foundation for products, carts, orders, promotions, and payments. It integrates with technologies like Resend (notifications), Algolia (search), and Stripe Connect (payouts) — all replaceable when needed.++### Block-based architecture++Unlike traditional plugins, Mercur uses a **block-based** approach. Blocks are copied directly into your project via the CLI, giving you full ownership and the ability to modify any piece of code without forking.++### Full extensibility and ownership++Mercur is fully open-core and MIT-licensed. There are no transaction fees, no commercial lock-in, and no constraints on how your marketplace must behave. You own the entire codebase and can host it anywhere.++## Building with AI++Mercur is designed so AI agents can build and extend your marketplace safely — not by generating code from scratch, but by working within structured guardrails.++### How AI works with Mercur++Most AI coding tools generate loose snippets that you have to wire together yourself. Mercur gives AI something better to work with: a system with clear boundaries, typed contracts, and composable units.++Here's what that looks like in practice:++- **Adding features via CLI** — An AI agent can run `bunx @mercurjs/cli@rc add reviews` to install a complete review system — data models, API routes, workflows, and UI — in one command. No guessing at file structure or imports. The CLI handles wiring automatically.+- **Extending workflows without rebuilding them** — Need custom logic when an order is placed? AI can hook into the existing `complete-cart-with-split-orders` workflow and inject a step — without rewriting the entire cart flow. Medusa's workflow hooks make this safe and predictable.+- **Generating typed integrations** — AI reads the generated route types from `bunx @mercurjs/cli@rc codegen` and produces API calls that are correct by construction. No hallucinated endpoints, no wrong payloads — the types are the source of truth.+- **Building UI pages** — AI can scaffold an admin or vendor page by creating a file in `src/routes/`. The dashboard SDK picks it up automatically through file-based routing. No manual route registration, no config files to update.+- **Modifying blocks it can diff** — AI can compare local code against the registry with `bunx @mercurjs/cli@rc diff`, understand what changed, and make targeted modifications instead of blind overwrites.++### Connect your AI tools++To start building with AI, connect your environment to Mercur's knowledge base:++- **[Building with AI](/rc/resources/ai/overview)** — How Mercur bundles version-matched docs into your project so agents build from accurate APIs, not stale training data+- **[LLMs](/rc/resources/ai/llms)** — Feed the full Mercur documentation to any LLM via `llms.txt`+- **[MCP Server](/rc/resources/ai/mcp)** — Let your AI tool search Mercur docs in real time (Cursor, VS Code, Claude, Claude Code)++### Why this matters++Traditional commerce platforms give AI no structure to reason about. The result is generated code that looks plausible but breaks in production — wrong API shapes, missing relationships, incompatible data models.++Mercur solves this with:++- **Typed API Client** — API specifications shared between server and client. AI reads real types, not documentation that may be outdated.+- **Block Registry** — Features are discrete, well-defined units. AI can inspect what a block contains before installing it and verify the result after.+- **Monorepo** — Backend, admin, vendor, and shared packages live in one workspace. AI has full context without jumping between repositories.+- **Core Workflows** — Cart, orders, pricing, and vendor logic are exposed as structured steps. AI extends them through hooks rather than patching source code.+- **Dashboard SDK** — File-based routing and virtual modules mean AI adds pages and components by creating files in the right place. The SDK handles registration.+- **Marketplace Payments** — Payout providers follow a pluggable interface. AI can implement a new provider by conforming to the contract, not by reverse-engineering Stripe integration code.++The result: AI agents can compose real marketplace systems — not just write code, but add capabilities, extend business logic, and evolve your architecture with guardrails that prevent mistakes.diff --git a/apps/docs/rc/learn/offers.mdx b/apps/docs/rc/learn/offers.mdxnew file mode 100644index 000000000..bffabb77b--- /dev/null+++ b/apps/docs/rc/learn/offers.mdx@@ -0,0 +1,78 @@+---+title: "Offers"+description: "An offer is a seller's sellable listing against a master product — their own SKU, price, inventory, and shipping."+---++An **offer** is how a seller actually sells something. While [products](/rc/learn/products) form a shared master catalog, an offer binds one seller to one product variant with the seller's own commercial terms: SKU, price, stock, and shipping profile. Many sellers can hold offers against the same variant, each competing on price and availability.++## Data model++| Field | Description |+|-------|-------------|+| `id` | Prefixed with `offer_` |+| `seller_id` | The seller who owns the listing |+| `product_id` / `variant_id` | The master catalog entry the offer sells |+| `sku` | The seller's own SKU — unique per seller |+| `ean` / `upc` | Optional barcodes, searchable |+| `shipping_profile_id` | The seller's shipping profile used to fulfill this offer |+| `created_by` | The member who created the offer |+| `metadata` | Free-form JSON |++The `(seller_id, sku)` pair is unique: a seller cannot list the same SKU twice.++## Relationships++Offers sit at the center of the seller's commercial graph. Module links connect each offer to:++- **Seller** — the listing owner+- **Product and variant** — the master catalog entry+- **Price** — offer-scoped pricing (see below)+- **Inventory item** — offer-scoped stock (see below)+- **Shipping profile** — how the offer ships+- **Cart and order line items** — which offer a purchased line came from++### Offer-scoped pricing++Offers share the variant's price set, scoped by an offer rule — each offer carries its own prices without duplicating the variant. The storefront computes a `calculated_price` per offer, so two sellers listing the same variant can show different prices side by side.++### Offer-scoped inventory++Inventory is linked to the **offer, not the variant**. Each seller manages stock for their own listing independently; a variant has no marketplace-wide stock figure of its own.++<Warning>+ When working with offer orders, read inventory through the offer link. The variant's own `inventory_items` relation is empty for offer-based listings.+</Warning>++## Offers at checkout++When a customer buys, the cart line item links to the specific offer that was purchased. The link is preserved onto the order line item, so fulfillment, commission calculation, and payouts all resolve to the right seller — even when several sellers list the same variant.++## Discovery++The Store API exposes offers directly:++```bash+curl "http://localhost:9000/store/offers?product_id=prod_123" \+ -H "x-publishable-api-key: <key>"+```++This powers "buy box"-style storefronts: fetch a product from the shared catalog, then list every seller's offer against it with per-offer calculated prices.++## Where offers appear++| Surface | Capability |+|---------|-----------|+| Vendor Portal | Full lifecycle — create offers, edit price and stock, manage variants and inventory |+| Admin Panel | Oversight — list and inspect all offers with their store, pricing, inventory, and the associated master product |+| Store API | Browse offers per product, with per-offer calculated prices |++## Next steps++<CardGroup cols={2}>+ <Card title="Products" href="/rc/learn/products">+ The shared master catalog offers are built on.+ </Card>+ <Card title="Order Groups" href="/rc/learn/order-groups">+ How multi-seller purchases split into per-seller orders.+ </Card>+</CardGroup>diff --git a/apps/docs/rc/learn/order-groups.mdx b/apps/docs/rc/learn/order-groups.mdxnew file mode 100644index 000000000..93fc62f15--- /dev/null+++ b/apps/docs/rc/learn/order-groups.mdx@@ -0,0 +1,114 @@+---+title: "Order Groups"+description: "How multi-seller checkout creates order groups — the container that ties a single cart to multiple seller orders."+---++An order group is a container created during checkout when a customer buys from multiple sellers. It groups the individual per-seller orders that originate from a single cart, giving customers and admins a unified view of what was purchased.++## Data model++| Field | Type | Description |+|-------|------|-------------|+| `id` | `text` | Unique identifier (prefix `og_`) |+| `display_id` | `serial` | Auto-incrementing human-readable ID |+| `customer_id` | `text` | The customer who placed the order (nullable) |+| `cart_id` | `text` | The cart this order group originated from |+| `seller_count` | `number` | Number of distinct sellers in the group (computed) |+| `total` | `bigNumber` | Sum of all order totals in the group (computed) |++<Info>+ `seller_count` and `total` are **computed fields** — they are calculated from linked orders at query time, not stored as columns. `seller_count` is the count of distinct sellers across all orders in the group, and `total` is the sum of each order's `current_order_total` from the order summary.+</Info>++## Relationships++Order groups connect to other entities through two links:++### Cart (read-only)++Links the order group back to its originating cart via the `cart_id` field. This is a read-only link — carts are immutable after checkout.++```+order_group.cart_id → cart.id+```++### Orders (one-to-many)++Links the order group to multiple orders through a join table `order_group_order`. Each order in the group belongs to a different seller.++```+order_group ←→ order (via order_group_order)+```++## How order groups are created++Order groups are created automatically during checkout by the `completeCartWithSplitOrdersWorkflow`. This is what happens when a customer completes a cart containing products from multiple sellers:++1. **Lock** — The workflow acquires a lock on the cart to prevent double-processing+2. **Group by seller** — Cart items are grouped by seller (via the product-seller link)+3. **Create orders** — A separate Medusa order is created for each seller, containing only that seller's items and shipping+4. **Create order group** — An order group is created with the customer and cart references+5. **Link everything** — The workflow creates links between:+ - Each order and the order group+ - Each order and its seller+ - Each order and the cart's payment collection+ - Each seller and the customer (if new relationship)+6. **Finalize** — Inventory is reserved, payment is authorized, and the `order_group.created` event is emitted++<Info>+ Payment collections are linked at the **individual order level**, not on the order group. This is a deliberate design decision — each per-seller order gets its own link to the payment collection, which enables per-order capture and refund flows.+</Info>++## Events++| Event | Payload | When |+|-------|---------|------|+| `order_group.created` | `{ id: string }` | After checkout creates a new order group |++## API endpoints++### List order groups (Admin)++```bash+curl http://localhost:9000/admin/order-groups \+ -H "Authorization: Bearer <admin-token>"+```++Supports filtering by `customer_id`, `seller_id`, `status`, `sales_channel_id`, and `created_at`. Paginated with `offset` and `limit` (default 50).++### Get order group detail (Admin)++```bash+curl http://localhost:9000/admin/order-groups/<order-group-id> \+ -H "Authorization: Bearer <admin-token>"+```++Returns the order group with aggregated payment and fulfillment statuses across all orders.++### List order groups (Store)++```bash+curl http://localhost:9000/store/order-groups \+ -H "Authorization: Bearer <customer-token>"+```++Returns only order groups belonging to the authenticated customer. Includes nested order data with items, variants, products, and seller information.++### Get order group detail (Store)++```bash+curl http://localhost:9000/store/order-groups/<order-group-id> \+ -H "Authorization: Bearer <customer-token>"+```++Returns a single order group. Throws `404` if the order group doesn't belong to the authenticated customer.++## Workflows++| Workflow | Purpose |+|----------|---------|+| `getOrderGroupsListWorkflow` | Retrieves a paginated list of order groups with aggregated payment and fulfillment statuses for each |+| `getOrderGroupDetailWorkflow` | Retrieves a single order group with full order details and aggregated statuses |+| `createOrderGroupStep` | Internal step used by `completeCartWithSplitOrdersWorkflow` — not called directly |++The list and detail workflows automatically inject order-related fields (items, payment collections, fulfillments) and compute an overall `payment_status` and `fulfillment_status` for each order group by aggregating across all linked orders.diff --git a/apps/docs/rc/learn/payouts.mdx b/apps/docs/rc/learn/payouts.mdxnew file mode 100644index 000000000..0cb1e1912--- /dev/null+++ b/apps/docs/rc/learn/payouts.mdx@@ -0,0 +1,175 @@+---+title: "Payout"+description: "How seller payouts work in Mercur — accounts, onboarding, payment capture, and the transfer pipeline."+---++The payout module handles the financial side of a marketplace — onboarding sellers to a payment provider, capturing authorized payments, and transferring funds to sellers after fulfillment.++## Payout account++Every seller that wants to receive funds needs a **PayoutAccount**. This account links a seller to an external payment provider (e.g. Stripe Connect).++### Account lifecycle++```+PENDING → ACTIVE+ ↓+ RESTRICTED → ACTIVE (or REJECTED)+```++| Status | Description |+|--------|-------------|+| `PENDING` | Account created, awaiting provider onboarding |+| `ACTIVE` | Fully onboarded, can receive payouts |+| `RESTRICTED` | Provider has flagged the account (e.g. missing KYC) |+| `REJECTED` | Provider rejected the account |++### Onboarding++When a payout account is created, an **Onboarding** record is attached to it. This stores provider-specific data needed for identity verification or account setup (e.g. Stripe Connect onboarding links).++## The payout pipeline++The payout flow is fully automated through two scheduled jobs and event-driven subscribers. No manual intervention is needed after configuration.++### 1. Capture check (every 15 minutes)++A scheduled job scans for orders that are ready for payment capture. For each order, it checks:++- Payment is in `authorized` status+- Seller has an `ACTIVE` payout account+- Order meets the required fulfillment status (configurable, default: `fulfilled`)+- No payout has been created yet++When the capture deadline approaches (authorization window minus safety buffer), the job emits an `order.capture_requested` event. If the authorization has already expired, it emits `order.authorization_expired` instead.++### 2. Payment capture (event-driven)++A subscriber listens for `order.capture_requested` events and runs the Medusa `capturePaymentWorkflow` to capture the authorized payment. On success, the order is marked as captured. On failure, the order is flagged so it won't be retried.++### 3. Daily payouts (once per day)++A daily scheduled job (1 AM UTC) scans for captured orders that haven't been paid out yet. For each eligible order, it emits a `payout.requested` event.++An order qualifies for payout when:+- Payment has been captured (`metadata.captured = true`)+- No existing payout transfer+- Seller has an `ACTIVE` payout account++### 4. Payout transfer (event-driven)++A subscriber listens for `payout.requested` events and runs the `createPayoutWorkflow`:++1. **Fetch order** — Loads the order with its seller, payout account, and commission lines+2. **Calculate payout amount** — Subtracts commission from the order total:+ ```+ payout_amount = order.total - total_commission+ ```+3. **Create payout** — Calls the payment provider to initiate the transfer and creates a `Payout` record+4. **Link payout** — Associates the payout with the seller++### Payout statuses++| Status | Description |+|--------|-------------|+| `PENDING` | Payout created, transfer initiated |+| `PROCESSING` | Provider is processing the transfer |+| `PAID` | Funds successfully transferred |+| `FAILED` | Transfer failed |+| `CANCELED` | Transfer was canceled |++Payout statuses are updated via webhook events from the payment provider.++### Webhook handling++A subscriber listens for `payout.webhook_received` events and delegates to the `processPayoutForWebhookWorkflow`. The provider parses the raw webhook payload and returns an action:++**Account events:**+- `account.activated` → Status set to `ACTIVE`+- `account.restricted` → Status set to `RESTRICTED`+- `account.rejected` → Status set to `REJECTED`++**Payout events:**+- `payout.processing` → Status set to `PROCESSING`+- `payout.paid` → Status set to `PAID`+- `payout.failed` → Status set to `FAILED`+- `payout.canceled` → Status set to `CANCELED`++## Configuration++The payout module accepts the following options in `medusa-config.ts`:++| Option | Default | Description |+|--------|---------|-------------|+| `disabled` | `false` | Disables both scheduled jobs |+| `authorizationWindowMs` | 7 days | How long a payment authorization is valid |+| `sellerActionWindowMs` | 72 hours | Time for seller to fulfill the order |+| `captureSafetyBufferMs` | 24 hours | Safety margin before authorization expiry to trigger capture |+| `requiredFulfillmentStatus` | `"fulfilled"` | Minimum fulfillment status before capture is allowed |++## Data model overview++```+PayoutAccount+├── Onboarding (one-to-one)+└── Payout (one-to-many, per-order transfers)+```++## Configuration example++```typescript+// medusa-config.ts+{+ resolve: "./modules/payout",+ options: {+ // How long payment authorizations are valid+ authorizationWindowMs: 7 * 24 * 60 * 60 * 1000, // 7 days++ // Time for seller to fulfill before capture+ sellerActionWindowMs: 72 * 60 * 60 * 1000, // 72 hours++ // Safety margin before authorization expiry+ captureSafetyBufferMs: 24 * 60 * 60 * 1000, // 24 hours++ // Minimum fulfillment status before capture+ requiredFulfillmentStatus: "fulfilled",+ },+}+```++## API examples++### Get seller's payout account (Vendor API)++```bash+curl http://localhost:9000/vendor/payout-accounts/<account-id> \+ -H "Authorization: Bearer <seller-token>"+```++### Create payout onboarding (Vendor API)++Initiates provider onboarding (e.g. Stripe Connect account setup). The `data` and `context` fields are passed to the payout provider:++```bash+curl -X POST http://localhost:9000/vendor/payout-accounts/<account-id>/onboarding \+ -H "Authorization: Bearer <seller-token>" \+ -H "Content-Type: application/json" \+ -d '{+ "context": {+ "return_url": "https://my-store.com/settings/payouts"+ }+ }'+```++### List payouts (Admin API)++```bash+curl http://localhost:9000/admin/payouts \+ -H "Authorization: Bearer <admin-token>"+```++## Provider abstraction++The payout module is **provider-agnostic**. A `PayoutProviderService` acts as a bridge to the external payment processor. It delegates all external operations — creating accounts, processing payouts, parsing webhooks — to a pluggable provider implementation.++The module expects exactly one payout provider to be registered. Provider-specific data is stored in the `data` JSON fields on accounts, payouts, and onboarding records.diff --git a/apps/docs/rc/learn/product-requests.mdx b/apps/docs/rc/learn/product-requests.mdxnew file mode 100644index 000000000..fe39d3dc2--- /dev/null+++ b/apps/docs/rc/learn/product-requests.mdx@@ -0,0 +1,82 @@+---+title: "Product Requests & Approvals"+description: "How vendor product submissions and edits are reviewed — the ProductChange pipeline that keeps a shared catalog under operator control."+---++Because the catalog is [shared](/rc/learn/products), vendors don't mutate products directly. New products and edits flow through a review pipeline built on **product changes** — structured requests the operator can confirm, decline, or send back for revision. The same records double as the product's audit trail.++There are two flows:++## 1. New-product approval++A vendor-created product enters the catalog with status `proposed` and is visible only to its creator. The operator reviews it from the Admin Panel:++- **Confirm** — the product is published into the shared catalog.+- **Reject** — the product is marked `rejected` and stays out of the catalog.+- **Request changes** — the submission is sent back to the vendor with a note for revision.++## 2. Edit change-requests++Edits to existing products — detail updates, variant additions/updates/removals, attribute changes — are captured as a **ProductChange**: a reviewable bundle of one or more ordered actions.++### ProductChange++| Field | Description |+|-------|-------------|+| `product_id` | The product the change targets |+| `status` | `pending` → `confirmed` / `declined` / `canceled` |+| `created_by` | Who requested the change |+| `confirmed_by` / `confirmed_at` | Review outcome audit fields (same pattern for declined/canceled) |+| `declined_reason` | Why a change was declined |+| `requires_action_by` / `requires_action_reason` | Set when the operator asks the vendor to revise |+| `internal_note` / `external_note` | Operator-only vs vendor-visible notes |++### ProductChangeAction++Each change groups ordered **actions** — the atomic operations applied to the live product when the change is confirmed:++| Action | Effect |+|--------|--------|+| `UPDATE` | Update product details |+| `VARIANT_ADD` / `VARIANT_UPDATE` / `VARIANT_REMOVE` | Variant operations |+| `ATTRIBUTE_ADD` / `ATTRIBUTE_UPDATE` / `ATTRIBUTE_REMOVE` | Attribute operations |+| `STATUS_CHANGE` | Status transitions (publish, reject) |+| `PRODUCT_ADD` / `PRODUCT_DELETE` | Creation and deletion markers |++Each action carries its payload in a `details` JSON field and an `applied` flag. Actions are applied in order on confirmation — nothing touches the live product while the change is `pending`.++## Lifecycle++```+ ┌────────────> confirmed ── actions applied to product+ │+pending ─────┼────────────> declined ── with a reason+ │+ └────────────> canceled ── withdrawn by the requester+```++The operator can also flag a pending change as **requires action**, handing it back to the vendor with a reason before a final decision.++Some low-risk edits are **auto-confirmed** — they still create a change record for the audit trail, but apply immediately without waiting for review.++## Audit trail++Confirmed changes are never deleted. The product's change history answers "who changed what, when, and who approved it" — including the original creation (`PRODUCT_ADD`), which is also what scopes a vendor's list to their own unpublished submissions.++## Where it appears++| Surface | Capability |+|---------|-----------|+| Admin Panel | Review queue on the product detail — confirm, reject, or request changes on submissions and pending edits |+| Vendor Portal | Shows the seller's own pending edits and revision requests on their product pages |++## Next steps++<CardGroup cols={2}>+ <Card title="Products" href="/rc/learn/products">+ The master-catalog model this pipeline protects.+ </Card>+ <Card title="Product Attributes" href="/rc/learn/attributes">+ Attribute edits that flow through this pipeline.+ </Card>+</CardGroup>diff --git a/apps/docs/rc/learn/products.mdx b/apps/docs/rc/learn/products.mdxnew file mode 100644index 000000000..8a3f97e84--- /dev/null+++ b/apps/docs/rc/learn/products.mdx@@ -0,0 +1,79 @@+---+title: "Products"+description: "Mercur products are master products — a single shared catalog for the whole marketplace, with selling eligibility instead of ownership."+---++Products in Mercur are **master products**: a single shared catalog of product records that the whole marketplace draws from. A product is **not** owned by the seller who created it — creating a product adds a candidate to the shared catalog, and sellers sell against that catalog through [offers](/rc/learn/offers).++This is the model used by large marketplaces: one canonical product record ("iPhone 15 Pro, 256 GB, Black"), many sellers listing against it.++## No product ownership++There is no owner column on a product. What looks like ownership in other platforms is split into three independent mechanisms:++| Mechanism | What it controls | What it does *not* control |+|-----------|-----------------|----------------------------|+| Selling eligibility (`product_seller` link) | Which sellers may sell the product and see it while restricted | Who can edit the product |+| Creator attribution | Which unpublished products appear in a seller's own list | Any rights over the product after publication |+| Status lifecycle | Who can see the product at all | Which seller it "belongs" to |++### Selling eligibility++The `product_seller` link is an **allowlist**, analogous to Medusa's `product_sales_channel` link:++- **Restricted** — a product assigned to one or more sellers is visible and sellable only for those sellers.+- **Unrestricted** — a product with no seller assignments is available to every seller on the marketplace (subject to its status).++Assignments are managed by the operator; creating a product does not assign it to the creator.++### Creator attribution++When a product is created, the platform records who created it as part of the product's [change history](/rc/learn/product-requests). This attribution has exactly one purpose: scoping vendor lists so a seller sees their own not-yet-published submissions without seeing other sellers' pending work.++## Status lifecycle++```+DRAFT ──> PROPOSED ──> PUBLISHED+ │+ └──────> REJECTED+```++| Status | Meaning |+|--------|---------|+| `draft` | Work in progress, not submitted |+| `proposed` | Submitted for review — visible only to its creator until published |+| `published` | Live in the shared catalog |+| `rejected` | Declined by the operator |++Vendor-created products default to **`proposed`**. The operator reviews the submission and publishes or rejects it — see [Product Requests & Approvals](/rc/learn/product-requests).++## Visibility rules++| Surface | What is visible |+|---------|----------------|+| Vendor | Products the seller created (any status) plus published products not restricted to other sellers |+| Admin | Every product, regardless of status or eligibility |+| Store | Published products of visible sellers |++The vendor rule in practice: a seller's product list is their own submissions **or** the shared published catalog, minus products allowlisted exclusively to other sellers.++## Editing shared products++Because the catalog is shared, edits are collaborative: **any seller may request a change to any product** — updating details, adding or removing variants, changing attributes. Edits flow through the [change-request pipeline](/rc/learn/product-requests) rather than mutating the product directly, so the operator stays in control of the shared record.++Eligibility restrictions limit who may *sell* a product; they do not limit who may *propose changes* to it.++## What sellers actually sell++A master product defines *what the item is*. It carries no seller price and no seller stock. To sell it, a seller creates an **offer** — their own SKU, price, inventory, and shipping profile bound to the product. This separation is what allows many sellers to compete on the same catalog entry.++## Next steps++<CardGroup cols={2}>+ <Card title="Offers" href="/rc/learn/offers">+ How sellers list, price, and stock products from the shared catalog.+ </Card>+ <Card title="Product Requests & Approvals" href="/rc/learn/product-requests">+ How new products and edits are reviewed by the operator.+ </Card>+</CardGroup>diff --git a/apps/docs/rc/learn/registry.mdx b/apps/docs/rc/learn/registry.mdxnew file mode 100644index 000000000..3442f16f4--- /dev/null+++ b/apps/docs/rc/learn/registry.mdx@@ -0,0 +1,155 @@+---+title: "Registry"+description: "Create, build, and host your own block registry."+---++A registry is a collection of blocks that can be installed into any Mercur project using the CLI. The official Mercur registry (`@mercurjs`) provides all the built-in marketplace blocks. You can also create and host your own.++## How it works++A registry is a set of JSON files — one per block — served over HTTP. When you run `bunx @mercurjs/cli@rc add`, the CLI fetches the block's JSON, resolves its dependencies, and copies the source files into your project.++```+registry/+├── registry.json # Registry definition with all blocks+├── src/+│ └── my-block/ # Block source files+│ ├── modules/+│ ├── workflows/+│ └── api/+└── r/ # Built output (generated)+ ├── registry.json+ └── my-block.json # Block JSON with embedded file contents+```++## registry.json++The `registry.json` file defines your registry and all its blocks:++```json registry.json+{+ "$schema": "https://registry.mercurjs.com/registry.json",+ "name": "@my-org",+ "homepage": "https://my-org.com",+ "items": [+ {+ "name": "reviews",+ "description": "Product and seller reviews with ratings.",+ "dependencies": [],+ "registryDependencies": [],+ "docs": "## Configuration\n\nAdd the review module to your `medusa-config.ts`...",+ "files": [+ {+ "path": "reviews/modules/reviews/index.ts",+ "type": "registry:module"+ },+ {+ "path": "reviews/workflows/review/workflows/create-review.ts",+ "type": "registry:workflow"+ },+ {+ "path": "reviews/api/store/reviews/route.ts",+ "type": "registry:api"+ }+ ],+ "categories": ["module", "workflow", "api"]+ }+ ]+}+```++### Block properties++| Property | Description |+| ---------------------- | -------------------------------------------------------------- |+| `name` | Block identifier used in `bunx @mercurjs/cli@rc add` |+| `description` | Short description shown in search results |+| `dependencies` | NPM packages to install |+| `registryDependencies` | Other blocks this block depends on (e.g. `@mercurjs/wishlist`) |+| `docs` | Markdown shown to the user after installation |+| `files` | List of source files with their paths and types |+| `categories` | Tags for search and filtering |++### File types++Each file in a block has a `type` that determines where it gets placed in the target project:++| Type | Target alias |+| ------------------- | ------------ |+| `registry:module` | `modules` |+| `registry:workflow` | `workflows` |+| `registry:api` | `api` |+| `registry:link` | `links` |+| `registry:vendor` | `vendor` |+| `registry:admin` | `admin` |+| `registry:lib` | `lib` |++These map to the aliases defined in the consumer's `blocks.json`.++## Building++Build your registry into distributable JSON files:++```bash+bunx @mercurjs/cli@rc build+```++This reads `registry.json`, resolves all imports for each block, embeds the file contents, and outputs one JSON file per block to the `r/` directory.++| Option | Description |+| --------------------- | --------------------------------- |+| `-o, --output <path>` | Output directory (default: `./r`) |+| `-v, --verbose` | Show detailed output |++The build step also automatically resolves NPM dependencies from your source imports — you don't need to list every transitive dependency manually.++## Hosting++Serve the built `r/` directory over HTTP. Any static hosting works — GitHub Pages, Vercel, Netlify, S3, or your own server. The only requirement is that `{name}.json` files are accessible at a public URL.++## Using custom registries++Add your registry to `blocks.json` in any Mercur project:++```json blocks.json+{+ "registries": {+ "@my-org": "https://my-registry.com/r/{name}.json"+ }+}+```++Use `{name}` as a placeholder for block names. Then install blocks from it:++```bash+bunx @mercurjs/cli@rc add @my-org/reviews+```++### Authentication++For private registries, you can use headers with environment variables:++```json blocks.json+{+ "registries": {+ "@my-org": {+ "url": "https://api.my-org.com/r/{name}.json",+ "headers": {+ "Authorization": "Bearer ${REGISTRY_TOKEN}"+ }+ }+ }+}+```++## Dependencies between blocks++Blocks can depend on other blocks using `registryDependencies`. When a user installs your block, the CLI automatically resolves and installs all dependencies in the correct order.++```json+{+ "name": "order-tracking",+ "registryDependencies": ["@mercurjs/wishlist"],+ "files": [...]+}+```diff --git a/apps/docs/rc/learn/seller-members.mdx b/apps/docs/rc/learn/seller-members.mdxnew file mode 100644index 000000000..e507478c8--- /dev/null+++ b/apps/docs/rc/learn/seller-members.mdx@@ -0,0 +1,62 @@+---+title: "Seller Members"+description: "Multi-user seller accounts — member data, team management, store switching, and access rules."+---++A **seller member** represents a user who has access to a seller account. Mercur supports **multi-user seller accounts** — multiple people can manage the same store — and **multi-seller users** — a single person can belong to more than one store. This page covers how members relate to sellers, how access is structured, and the rules governing team management.++## Concept++The relationship between users and sellers is **many-to-many**. A seller account can have several members (e.g. an owner, a warehouse manager, and a support agent), and a single user can be a member of multiple seller accounts (e.g. a consultant managing stores for different brands).++Each membership is a distinct association between a user and a seller account.++## Member Data++Each member record holds the following information:+++| Field | Description |+| -------- | ------------------------------------------------------------ |+| `email` | The member's email address, used for login and notifications |+| `locale` | Preferred language/locale for the vendor portal UI |+| `status` | Whether the member is active or deactivated |+++The member's identity is tied to their **email address**. Email addresses must be unique across all members within a single seller account but the same email can appear on different seller accounts.++## Member-Seller Association++When a member is added to a seller account, the association includes:++- A reference to the **seller account**+- A reference to the **member**++Removing the association revokes the member's access to that seller account entirely.++## Store Switcher++For users who belong to multiple seller accounts, the vendor portal provides a **store switcher**. Each store context is fully isolated — when a member switches stores, they see only the data (products, orders, payouts) belonging to that seller account.++This isolation ensures that access to one store never leaks information from another, even when the same person manages both.++## Adding Members++Members can be added to a seller account by:++- **Operators** — via the admin dashboard, an operator can add members to any seller account+- **Seller admins** — members with admin access can invite new members to their own seller account++When a new member is added, they receive an invitation to set up their access. If the email already belongs to an existing user in the system, the new seller association is linked to their existing account.++## Removing Members++Removing a member **deletes the association** between the user and the seller account. The user's account continues to exist — they simply lose access to that particular store.++Both **operators** and **seller admins** can remove members, subject to the constraint that a seller account must always retain at least one admin member.++## Business Rules++- A seller account must have **at least one member** with admin access at all times+- **Email addresses** must be unique within a single seller account+- Members are managed through the [seller account lifecycle](/rc/learn/sellers) — if a seller is terminated, all member associations are effectively voiddiff --git a/apps/docs/rc/learn/sellers.mdx b/apps/docs/rc/learn/sellers.mdxnew file mode 100644index 000000000..eb8531791--- /dev/null+++ b/apps/docs/rc/learn/sellers.mdx@@ -0,0 +1,118 @@+---+title: "Seller"+description: "The central marketplace actor — seller profile, lifecycle, registration flows, and business rules."+---++A **seller** is the central actor in a Mercur marketplace. Every product listing, order, payout, and storefront presence traces back to a seller account. This page covers the seller data model, lifecycle, and the business rules that govern how sellers operate on the platform.++## Seller Profile++Each seller account holds the following core fields:+++| Field | Description |+| --------------- | ----------------------------------------------------------------------------- |+| `name` | Display name shown to customers on the storefront (unique) |+| `handle` | URL-friendly identifier for the seller (unique) |+| `email` | Primary contact email for the seller account (unique) |+| `description` | Free-text seller description, typically shown on the seller's storefront page |+| `logo` | Seller logo or avatar |+| `banner` | Banner image for the seller's storefront page |+| `website_url` | Seller's external website |+| `currency_code` | The single currency in which this seller operates |+| `is_premium` | Operator-designated premium seller flag (see below) |+| `status_reason` | Optional explanation for the current status (e.g. reason for suspension) |+| `external_id` | Identifier in an external system (unique, optional) |+| `metadata` | Arbitrary JSON metadata |+++### Single Currency Per Account++Every seller account is locked to **one currency**. Prices and payouts all use this currency. This constraint keeps financial reporting simple and eliminates exchange-rate ambiguity in payouts.++If a seller needs to trade in multiple currencies, the recommended pattern is to create **separate seller accounts** — one per currency. Each account operates independently with its own products, orders, and payouts.++### Professional Sellers++A seller can optionally have associated **professional details**. If present, the seller is treated as a registered business; if absent, the seller is an individual.++## Address and Payment Information++Sellers can store one or more **addresses** (warehouse, return, business) and **payment details** used for payout processing. These are managed as sub-resources of the seller account and are referenced by workflows such as fulfillment and payout settlement.++## Seller Lifecycle++A seller account moves through **four statuses** over its lifetime:++```+ ┌──────────────────┐+ │ pending_approval │+ └────────┬─────────┘+ │ approve+ ▼+ ┌──────────┐ ┌────────┐+ │ suspended │◄────►│ open │+ └──────────┘ └───┬────┘+ │ terminate+ ▼+ ┌────────────┐+ │ terminated │+ └────────────┘+```++### Status Definitions++- **`pending_approval`** — The seller has registered but has not yet been reviewed by the platform operator.+- **`open`** — The seller is active and may list products, receive orders, and collect payouts.+- **`suspended`** — The seller's operations are temporarily frozen. Products remain in the catalog but cannot be purchased.+- **`terminated`** — The seller account is permanently closed. This status is irreversible.++### Status Transition Rules+++| From | To | Who | Conditions |+| ------------------ | ------------ | ----------------- | --------------------------------------------------------- |+| `pending_approval` | `open` | Operator | Operator reviews and approves the application |+| `open` | `suspended` | Operator | Policy violation, compliance hold, or operator discretion |+| `suspended` | `open` | Operator | Issue resolved, seller reinstated |+| `open` | `terminated` | Operator / Seller | All prerequisites met (see below) |+| `suspended` | `terminated` | Operator | All prerequisites met (see below) |+++## Scheduled Closures++Sellers can schedule **temporary closures** without changing their account status. Two date fields control this:++- `closed_from` — The date the closure begins+- `closed_to` — The date the closure ends++During a scheduled closure the seller's storefront shows as unavailable and new orders cannot be placed, but the account remains in `open` status. This is designed for holidays, seasonal breaks, or planned downtime. Once `closed_to` passes, the seller automatically resumes normal operation.++Scheduled closures are **not a status** — they overlay on top of the current status and do not affect status transition rules.++## Premium Sellers++The `is_premium` flag is set **exclusively by the platform operator**. Sellers cannot designate themselves as premium. This flag is used for storefront features such as:++- Featured placement in search results or category pages+- Visual badges or highlights on the seller's profile+- Priority in marketplace curation++The specific storefront behavior tied to premium status is determined by the frontend implementation.++## Registration Flows++There are **two methods** for creating a seller account:++1. **Operator-created** — The platform operator creates the seller account directly via the admin dashboard. The account can be set to `open` immediately, bypassing `pending_approval`.+2. **Self-registration** — The seller registers through the public-facing registration flow. The account enters `pending_approval` status and waits for operator review.++## Business Rules Summary++- A seller account operates in **exactly one currency**+- The presence of `professional_details` determines whether the seller is a registered business+- Only the **operator** can approve, suspend, or reinstate sellers+- **Termination** is irreversible and requires all orders and payouts to be resolved+- Scheduled closures are **date-driven** and do not change account status+- **Premium** designation is operator-only and influences storefront presentation+- Every seller account must have at least one [member](/rc/learn/seller-members) with an admin rolediff --git a/apps/docs/rc/migration/from-1-x-to-2-0.mdx b/apps/docs/rc/migration/from-1-x-to-2-0.mdxnew file mode 100644index 000000000..43c899671--- /dev/null+++ b/apps/docs/rc/migration/from-1-x-to-2-0.mdx@@ -0,0 +1,152 @@+---+title: From 1.x to 2.0+description: What changed and how to port your existing Mercur 1.x code to 2.0.+---++# Migrating from 1.x to 2.0++Start with a working 2.0 project (see [Installation](/rc/learn/installation)). This guide covers what to change when porting your 1.x code.++<Note>+**Using version older than 1.4.0?** Your admin panel code is inside the backend repo (not a separate app). When scanning for custom admin code to port, look there instead of `apps/admin/`. Everything else in this guide applies identically.+</Note>++## Package Mapping++| 1.x Package | 2.0 Equivalent |+|-------------|----------------|+| `@mercurjs/b2c-core` | `@mercurjs/core` |+| `@mercurjs/commission` | Built into core |+| `@mercurjs/algolia` | Block: `mercurjs add algolia` |+| `@mercurjs/resend` | No 2.0 equivalent — port manually |+| `@mercurjs/payment-stripe-connect` | No 2.0 equivalent — port manually |+| `@mercurjs/stripe-tax-provider` | No 2.0 equivalent — port manually |+| `@medusajs/admin-vite-plugin` | `@mercurjs/dashboard-sdk` |+| `@medusajs/js-sdk` | `@mercurjs/client` |++## Directory Mapping++| 1.x | 2.0 |+|-----|-----|+| `apps/backend/src/*` | `packages/api/src/*` |+| `apps/admin/src/routes/` | `apps/admin/src/pages/` |+| `apps/vendor/src/routes/` | `apps/vendor/src/pages/` |++## What You DON'T Need to Port++Built into core today:++- `seller`+- `payout`+- `commission`++Moved to registry blocks:++- `reviews`+- `requests`+- `wishlist`+- `team-management`+- `algolia`+- `vendor-notifications`+- `vendor-chat`+- `product-import-export`++Install these blocks instead of porting their 1.x package code.++## Current Migration Exceptions++These areas do not currently have full 1.x parity and should be treated as manual migration work:++- **`TaxCode`** — no 2.0 equivalent today. Port the old logic manually if your project depends on it.+- **`SecondaryCategory`** — no full 1.x parity today. Port manually for now if your project depends on it. Fuller support is planned for a future 2.x release.+- **Product attributes** — the 1.x attribute module is not carried over 1:1. Port manually for now if your project depends on it. Fuller support is planned for a future 2.x release.++## Order Set to Order Group++The 1.x `OrderSet` entity has been renamed to **`OrderGroup`** in 2.0. This is a breaking change that affects database tables, API endpoints, workflow names, event names, and types.++### What changed++| Aspect | 1.x | 2.0 |+|--------|-----|-----|+| Entity / table | `order_set` | `order_group` |+| ID prefix | `os_` | `og_` |+| API endpoints | `/admin/order-sets`, `/store/order-set` | `/admin/order-groups`, `/store/order-groups` |+| Workflows | `getFormattedOrderSetListWorkflow` | `getOrderGroupsListWorkflow`, `getOrderGroupDetailWorkflow` |+| Events | `OrderSetWorkflowEvents` | `OrderGroupWorkflowEvents` |+| Types | `OrderSetDTO` | `OrderGroupDTO` (from `@mercurjs/types`) |++### Removed fields++Two fields that existed on `OrderSet` in 1.x have been **removed** from `OrderGroup`:++- **`payment_collection_id`** — Payment collections are now linked at the individual **order** level, not at the group level. Each per-seller order gets its own link to the cart's payment collection during checkout. To get the payment collection, query the linked orders instead of the group.+- **`sales_channel_id`** — Sales channel information is stored on each individual order, not on the group.++### New computed fields++Two fields are now **computed at query time** (not stored as columns):++- **`seller_count`** — Count of distinct sellers across all linked orders+- **`total`** — Sum of order totals from linked order summaries++### Migration steps++1. Update imports: `OrderSetDTO` → `OrderGroupDTO` (from `@mercurjs/types`)+2. Update API calls: `/order-sets` → `/order-groups`+3. Update workflow references: `getFormattedOrderSetListWorkflow` → `getOrderGroupsListWorkflow`+4. Update event listeners: `OrderSetWorkflowEvents` → `OrderGroupWorkflowEvents`+5. If you used `payment_collection_id` or `sales_channel_id` from the order set, retrieve these from the individual orders instead (via the `order_group_order` link)++See [Order Groups](/rc/learn/order-groups) for the full 2.0 data model and API reference.++## Porting Custom Backend Code++### Modules++Copy to `packages/api/src/modules/`, register in `medusa-config.ts`. Update imports from `@mercurjs/b2c-core` to `@mercurjs/core`.++### Workflows++Copy to `packages/api/src/workflows/<entity>/`. Don't create barrel `index.ts` files — conflicts with block installation.++### API Routes++Copy to `packages/api/src/api/`. Type both generics — codegen reads these:++```typescript+export const GET = async (+ req: AuthenticatedMedusaRequest<BodyType>,+ res: MedusaResponse<ResponseType>+) => { ... }+```++Run `bunx @mercurjs/cli@rc codegen` after adding routes.++### Links and Subscribers++Copy to `packages/api/src/links/` and `src/subscribers/`. Don't duplicate links that core already provides (seller↔product, seller↔order, etc.).++### Custom Providers++Copy to `packages/api/src/providers/`. Two required changes:++```typescript+// medusa-config.ts — must use ./src/ prefix+resolve: './src/providers/my-provider'++// provider index.ts — must import from framework/utils+import { Modules, ModuleProvider } from "@medusajs/framework/utils"+```++## Porting Custom Dashboard Code++Only if you have custom pages not covered by core-admin/vendor.++| Old import | New import |+|-----------|------------|+| `@medusajs/js-sdk` | `@mercurjs/client` |+| `@custom-types/*` | `@mercurjs/types` |+| `@hooks/*`, `@components/*`, `@lib/*` | Keep local, or `@mercurjs/dashboard-shared` if the symbol exists there |++Move pages from `src/routes/` to `src/pages/` with `export default`.\ No newline at end of filediff --git a/apps/docs/rc/migration/from-2-0-to-2-1.mdx b/apps/docs/rc/migration/from-2-0-to-2-1.mdxnew file mode 100644index 000000000..cb81ace9d--- /dev/null+++ b/apps/docs/rc/migration/from-2-0-to-2-1.mdx@@ -0,0 +1,105 @@+---+title: From 2.0 to 2.1+description: What changed in Mercur 2.1 and how to upgrade an existing 2.0.x project.+---++# Migrating from 2.0 to 2.1++Mercur `2.1.1` is the first stable release of the 2.x line after `2.0.2`. The only required change is a package rename. Everything else is handled by `bun run medusa db:migrate`.++If you are starting fresh, follow [Installation](/rc/learn/installation) instead — new projects already use the 2.1 names.++## Breaking change: `@mercurjs/core-plugin` → `@mercurjs/core`++The Medusa plugin previously published as `@mercurjs/core-plugin` is now published as **`@mercurjs/core`**. The package contents are the same; only the name changed.++This affects:++- `package.json` — installed package name+- `medusa-config.ts` — every `resolve: "@mercurjs/core-plugin/..."` value+- Any source imports in `packages/api/src/**`++### Step 1 — swap the dependency++```bash+bun remove @mercurjs/core-plugin+bun add @mercurjs/[email protected]+```++If you use npm/yarn/pnpm, use the equivalent commands for your package manager.++Or edit `packages/api/package.json` by hand — replace the `@mercurjs/core-plugin` entry under `dependencies` with `@mercurjs/core` at the matching version, then run your installer:++```jsonc+// before+"dependencies": {+ "@mercurjs/core-plugin": "2.0.2"+}++// after+"dependencies": {+ "@mercurjs/core": "2.1.1"+}+```++```bash+bun install+```++### Step 2 — replace strings in config and source++In `packages/api/medusa-config.ts` and anywhere under `packages/api/src/**`, replace every occurrence of `@mercurjs/core-plugin` with `@mercurjs/core`. A repo-wide find-and-replace is safe — there are no other valid uses of the old name.++```ts+// before+{+ resolve: "@mercurjs/core-plugin/modules/seller",+}++// after+{+ resolve: "@mercurjs/core/modules/seller",+}+```++```ts+// before+import { createSellerWorkflow } from "@mercurjs/core-plugin/workflows"++// after+import { createSellerWorkflow } from "@mercurjs/core/workflows"+```++The same applies to:++- `@mercurjs/core-plugin/modules/<module>`+- `@mercurjs/core-plugin/workflows`+- `@mercurjs/core-plugin/links`+- `@mercurjs/core-plugin/api`++### Step 3 — reinstall and rebuild++```bash+bun install+bun run build+```++If TypeScript still complains about `@mercurjs/core-plugin`, you missed an import. Re-run the find-and-replace.++### Step 4 — refresh installed blocks++If your project installed registry blocks (`mercurjs add reviews`, `mercurjs add requests`, etc.) on a 2.0.x version, the local copies still reference `@mercurjs/core-plugin`. Either:++- Run the same find-and-replace inside `packages/api/src/` (registry blocks live there once installed)++## Database migrations++Mercur 2.1 ships several new migrations on the `seller` module. All are non-destructive. Run:++```bash+bun run medusa db:migrate+```++## Full changelog++The complete 2.1 changelog is published with the [GitHub release](https://github.com/mercurjs/mercur/releases/tag/v2.1.1).diff --git a/apps/docs/rc/migration/overview.mdx b/apps/docs/rc/migration/overview.mdxnew file mode 100644index 000000000..9c9099975--- /dev/null+++ b/apps/docs/rc/migration/overview.mdx@@ -0,0 +1,58 @@+---+title: Migration Overview+description: Understand what changes between Mercur 1.x and 2.0 and how to migrate your project.+---++# Migration Overview++Mercur 2.0 replaces the monolithic plugin architecture (`@mercurjs/b2c-core`) with a block-based model (`@mercurjs/core` + registry blocks).++This guide is about **porting your existing 1.x code to a 2.0 project**. For setting up a fresh 2.0 project, see [Installation](/rc/learn/installation).++<Tip>+If you're using an AI Agent/IDE (Claude Code, Cursor, or similar), your project includes a `migration-guide` skill that can analyze your 1.x Mercur project and walk you through the migration step by step.+</Tip>++## What Replaced What++| 1.x | 2.0 |+|-------|--------|+| `@mercurjs/b2c-core` (monolithic) | `@mercurjs/core` — all core modules built in |+| `@mercurjs/commission` (separate) | Built into core |+| `@mercurjs/algolia`, reviews, requests | Registry blocks (`mercurjs add ...`) |+| `@medusajs/admin-vite-plugin` | `@mercurjs/dashboard-sdk` (virtual modules) |+| `@medusajs/js-sdk` (manual hooks) | `@mercurjs/client` (generated typed client) |+| Custom admin/vendor pages | `@mercurjs/admin` / `@mercurjs/vendor` — complete panels out of the box |+| `apps/backend/` | `packages/api/` |+| `src/routes/` (admin) | `src/pages/` (file-based routing) |+| Yarn + Turbo | bun (recommended) |++## What Didn't Change++- MedusaJS v2 foundation (modules, workflows, links, subscribers, API routes)+- Data model patterns (MikroORM, service layer)+- Environment variables (`DATABASE_URL`, CORS, secrets — all the same)++## What You Need to Migrate++**Most users don't need to migrate much.** Core-plugin and the official registry blocks cover most standard marketplace functionality. Core-admin/vendor panels provide 34+ pages out of the box.++You only need to port:+- **Custom modules** — business-specific modules not covered by core or blocks+- **Custom workflows and routes** — your own endpoints and business logic+- **Custom dashboard pages** — only if you have domain-specific pages not in core-admin/vendor++<Warning>+Current migration exceptions:++- `TaxCode` does not have a 2.0 equivalent today and requires manual migration.+- `SecondaryCategory` does not yet have full 1.x parity and may require manual migration for now.+- The 1.x product attribute system is not carried over 1:1, so product attributes may require manual migration for now.++See [From 1.x to 2.0](/migrations/from-1-x-to-2-0) for the full migration guidance and current status.+</Warning>++## Next Steps++- [From 2.0 to 2.1](/migrations/from-2-0-to-2-1) — package rename (`@mercurjs/core-plugin` → `@mercurjs/core`) and a `db:migrate` step+- [From 1.x to 2.0](/migrations/from-1-x-to-2-0) — full guide for porting an existing 1.x project\ No newline at end of filediff --git a/apps/docs/rc/references/api/admin.mdx b/apps/docs/rc/references/api/admin.mdxnew file mode 100644index 000000000..670fa1e47--- /dev/null+++ b/apps/docs/rc/references/api/admin.mdx@@ -0,0 +1,134 @@+---+title: "Admin API"+description: "Operator routes under /admin/* — sellers, commissions, payouts, master catalog, and marketplace-wide orders."+---++The Admin API is the marketplace operator's surface. It extends Medusa's standard admin routes with the marketplace domains below; everything else (regions, currencies, users, API keys, …) comes from Medusa core unchanged.++Authentication and shared conventions are covered in [API conventions](/rc/references/api/conventions).++## Sellers++| Method | Path | Purpose |+| --- | --- | --- |+| `GET` `POST` | `/admin/sellers` | List sellers / create a seller |+| `GET` `POST` | `/admin/sellers/:id` | Retrieve / update a seller |+| `POST` | `/admin/sellers/:id/approve` | Approve a pending seller |+| `POST` | `/admin/sellers/:id/suspend` | Suspend a seller |+| `POST` | `/admin/sellers/:id/unsuspend` | Lift a suspension |+| `POST` | `/admin/sellers/:id/terminate` | Terminate a seller |+| `POST` | `/admin/sellers/:id/unterminate` | Reverse a termination |+| `POST` | `/admin/sellers/:id/address` | Upsert the seller address |+| `POST` | `/admin/sellers/:id/payment-details` | Upsert payment details |+| `POST` `DELETE` | `/admin/sellers/:id/professional-details` | Upsert / remove professional details |+| `GET` | `/admin/sellers/:id/products` | List the seller's products |++### Members and invites++| Method | Path | Purpose |+| --- | --- | --- |+| `GET` | `/admin/members` | List members across all sellers |+| `GET` `POST` | `/admin/sellers/:id/members` | List / add a member |+| `DELETE` | `/admin/sellers/:id/members/:member_id` | Remove a member |+| `POST` | `/admin/sellers/:id/members/invite` | Invite a member |+| `GET` | `/admin/sellers/:id/members/invites` | List pending invites |+| `DELETE` | `/admin/sellers/:id/members/invites/:invite_id` | Revoke an invite |+| `POST` | `/admin/sellers/:id/members/invites/:invite_id/resend` | Resend an invite |++## Commission rates++| Method | Path | Purpose |+| --- | --- | --- |+| `GET` `POST` | `/admin/commission-rates` | List rates (supports the `scope_type` filter) / create a rate |+| `GET` `POST` `DELETE` | `/admin/commission-rates/:id` | Retrieve / update / delete a rate |+| `POST` | `/admin/commission-rates/:id/rules` | Batch add and remove rules on a rate |++## Payouts++| Method | Path | Purpose |+| --- | --- | --- |+| `GET` | `/admin/payouts` | List payouts across the marketplace |+| `GET` | `/admin/payouts/:id` | Retrieve a payout |++## Products (master catalog)++Products are shared catalog records — see the [master products model](/rc/references/modules/product-edit#the-master-products-model).++| Method | Path | Purpose |+| --- | --- | --- |+| `GET` `POST` | `/admin/products` | List / create a product (`seller_ids` sets selling eligibility) |+| `GET` `POST` `DELETE` | `/admin/products/:id` | Retrieve / update / delete a product |+| `GET` | `/admin/products/:id/preview` | Preview the product with pending changes applied |+| `POST` | `/admin/products/:id/confirm` | Confirm the pending change |+| `POST` | `/admin/products/:id/reject` | Reject the pending change |+| `POST` | `/admin/products/:id/request-changes` | Send a change back to the seller for action |+| `POST` | `/admin/products/:id/sellers` | Set the selling-eligibility allowlist |+| `POST` | `/admin/products/:id/attributes/batch` | Batch add / update / remove product attributes |+| `GET` `POST` | `/admin/products/:id/variants` | List / create variants |+| `GET` `POST` `DELETE` | `/admin/products/:id/variants/:variant_id` | Retrieve / update / delete a variant |++### Product changes++| Method | Path | Purpose |+| --- | --- | --- |+| `POST` | `/admin/product-changes/:id/confirm` | Confirm a change request directly |+| `POST` | `/admin/product-changes/:id/cancel` | Cancel a change request |++## Offers++| Method | Path | Purpose |+| --- | --- | --- |+| `GET` | `/admin/offers` | List offers (supports `group_by_seller`) |+| `GET` `DELETE` | `/admin/offers/:id` | Retrieve / delete an offer |+| `POST` | `/admin/offers/batch` | Batch create offers |++## Product attributes++| Method | Path | Purpose |+| --- | --- | --- |+| `GET` `POST` | `/admin/product-attributes` | List / create attributes |+| `GET` `POST` `DELETE` | `/admin/product-attributes/:id` | Retrieve / update / delete an attribute |+| `POST` | `/admin/product-attributes/:id/values` | Create a value |+| `POST` `DELETE` | `/admin/product-attributes/:id/values/:value_id` | Update / delete a value |++## Categories and collections++| Method | Path | Purpose |+| --- | --- | --- |+| `GET` `POST` | `/admin/product-categories` | List / create categories (with media + icon) |+| `GET` `POST` `DELETE` | `/admin/product-categories/:id` | Retrieve / update / delete a category |+| `POST` | `/admin/product-categories/:id/products` | Batch link products |+| `POST` | `/admin/product-categories/:id/sellers` | Batch link sellers |+| `GET` `POST` | `/admin/collections` | List / create collections (with media + icon) |+| `GET` `POST` `DELETE` | `/admin/collections/:id` | Retrieve / update / delete a collection |++## Orders and order groups++| Method | Path | Purpose |+| --- | --- | --- |+| `GET` | `/admin/orders` | List all orders across sellers |+| `GET` | `/admin/orders/:id/commission-lines` | Commission lines computed for an order |+| `GET` | `/admin/orders/:id/order-group` | The order group an order belongs to |+| `GET` | `/admin/order-groups` | List order groups |+| `GET` | `/admin/order-groups/:id` | Retrieve an order group with its child orders |++### Order edits, claims, exchanges, returns++Mercur extends the Medusa RMA routes so they respect seller boundaries:++| Method | Path | Purpose |+| --- | --- | --- |+| `POST` | `/admin/order-edits/:id/items` | Add items to an order edit |+| `POST` | `/admin/order-edits/:id/confirm` | Confirm an order edit |+| `POST` | `/admin/claims/:id/outbound/items` | Add outbound items to a claim |+| `POST` `DELETE` | `/admin/claims/:id/request` | Request / cancel a claim |+| `POST` | `/admin/exchanges/:id/outbound/items` | Add outbound items to an exchange |+| `POST` `DELETE` | `/admin/exchanges/:id/request` | Request / cancel an exchange |+| `POST` | `/admin/returns/:id/receive/confirm` | Confirm receipt of a return |++## Next steps++<CardGroup cols={2}>+ <Card title="Vendor API" href="/rc/references/api/vendor" />+ <Card title="API Client" href="/rc/tools/api-client" />+</CardGroup>diff --git a/apps/docs/rc/references/api/admin/commission-rates/batch-commission-rules.mdx b/apps/docs/rc/references/api/admin/commission-rates/batch-commission-rules.mdxnew file mode 100644index 000000000..0a568cb0b--- /dev/null+++ b/apps/docs/rc/references/api/admin/commission-rates/batch-commission-rules.mdx@@ -0,0 +1,70 @@+---+title: "Batch Commission Rules"+api: "POST /admin/commission-rates/{id}/rules"+description: "Create, update, and delete a commission rate's rules in one request."+---++Applies a batch of rule operations against a commission rate.++## Path parameters++<ParamField path="id" type="string" required>The commission rate's ID.</ParamField>++## Body parameters++<ParamField body="create" type="object[]">+ Rules to create.+ <Expandable title="properties">+ <ParamField body="reference" type="string" required>The rule target type: `product`, `product_type`, `product_collection`, `product_category`, or `seller`.</ParamField>+ <ParamField body="reference_id" type="string" required>ID of the referenced entity.</ParamField>+ </Expandable>+</ParamField>+<ParamField body="update" type="object[]">+ Rules to update.+ <Expandable title="properties">+ <ParamField body="id" type="string" required>The rule's ID.</ParamField>+ <ParamField body="reference" type="string">The rule target type: `product`, `product_type`, `product_collection`, `product_category`, or `seller`.</ParamField>+ <ParamField body="reference_id" type="string">ID of the referenced entity.</ParamField>+ </Expandable>+</ParamField>+<ParamField body="delete" type="string[]">IDs of rules to delete.</ParamField>++## Response++<ResponseField name="created" type="object[]">The created rules.</ResponseField>+<ResponseField name="updated" type="object[]">The updated rules.</ResponseField>+<ResponseField name="deleted" type="string[]">IDs of the deleted rules.</ResponseField>++<RequestExample>+```bash cURL+curl -X POST 'http://localhost:9000/admin/commission-rates/comrate_01HXYZ8Q2M4N6P8R0T2V4W6X8Y/rules' \+ -H 'Authorization: Bearer <token>' \+ -H 'Content-Type: application/json' \+ -d '{"create": [{"reference": "seller", "reference_id": "sel_01HXYZ"}], "delete": ["comrule_01HABC"]}'+```++```ts JS Client+const { created, updated, deleted } =+ await client.admin.commissionRates.$id.rules.mutate({+ $id: "comrate_01HXYZ8Q2M4N6P8R0T2V4W6X8Y",+ create: [{ reference: "seller", reference_id: "sel_01HXYZ" }],+ delete: ["comrule_01HABC"],+ })+```+</RequestExample>++<ResponseExample>+```json 200+{+ "created": [+ {+ "id": "comrule_01HXYZ9A1B2C3D4E5F6G7H8J9K",+ "reference": "seller",+ "reference_id": "sel_01HXYZ"+ }+ ],+ "updated": [],+ "deleted": ["comrule_01HABC"]+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/admin/commission-rates/create-commission-rate.mdx b/apps/docs/rc/references/api/admin/commission-rates/create-commission-rate.mdxnew file mode 100644index 000000000..c02e48a33--- /dev/null+++ b/apps/docs/rc/references/api/admin/commission-rates/create-commission-rate.mdx@@ -0,0 +1,95 @@+---+title: "Create Commission Rate"+api: "POST /admin/commission-rates"+description: "Create a commission rate."+---++Creates a commission rate, optionally with scoping rules and per-currency values.++## Body parameters++<ParamField body="name" type="string" required>The rate's display name.</ParamField>+<ParamField body="code" type="string" required>Unique code identifying the rate.</ParamField>+<ParamField body="type" type="string" required>The rate type: `fixed` or `percentage`.</ParamField>+<ParamField body="value" type="number" required>The commission value — a percentage or a fixed amount.</ParamField>+<ParamField body="currency_code" type="string">Currency of a fixed rate's value.</ParamField>+<ParamField body="include_tax" type="boolean">Whether commission is calculated on tax-inclusive amounts.</ParamField>+<ParamField body="include_shipping" type="boolean">Whether shipping is included in the commission base.</ParamField>+<ParamField body="is_enabled" type="boolean">Whether the rate is active.</ParamField>+<ParamField body="is_default" type="boolean">Whether this is the marketplace default rate.</ParamField>+<ParamField body="rules" type="object[]">+ Rules scoping which sellers or products the rate applies to.+ <Expandable title="properties">+ <ParamField body="reference" type="string" required>The rule target type: `product`, `product_type`, `product_collection`, `product_category`, or `seller`.</ParamField>+ <ParamField body="reference_id" type="string" required>ID of the referenced entity.</ParamField>+ </Expandable>+</ParamField>+<ParamField body="values" type="object[]">+ Per-currency fixed amounts.+ <Expandable title="properties">+ <ParamField body="currency_code" type="string" required>The value's currency code.</ParamField>+ <ParamField body="amount" type="number" required>The fixed commission amount for that currency.</ParamField>+ </Expandable>+</ParamField>++## Response++<ResponseField name="commission_rate" type="object">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The commission rate's ID.</ResponseField>+ <ResponseField name="name" type="string">The rate's display name.</ResponseField>+ <ResponseField name="code" type="string">The rate's unique code.</ResponseField>+ <ResponseField name="type" type="string">The rate type: `fixed` or `percentage`.</ResponseField>+ <ResponseField name="value" type="number">The commission value.</ResponseField>+ <ResponseField name="is_enabled" type="boolean">Whether the rate is active.</ResponseField>+ <ResponseField name="is_default" type="boolean">Whether this is the marketplace default rate.</ResponseField>+ <ResponseField name="rules" type="object[]">Rules scoping the rate.</ResponseField>+ <ResponseField name="values" type="object[]">Per-currency fixed amounts.</ResponseField>+ </Expandable>+</ResponseField>++<RequestExample>+```bash cURL+curl -X POST 'http://localhost:9000/admin/commission-rates' \+ -H 'Authorization: Bearer <token>' \+ -H 'Content-Type: application/json' \+ -d '{"name": "Electronics", "code": "electronics", "type": "percentage", "value": 12, "rules": [{"reference": "product_category", "reference_id": "pcat_01HXYZ"}]}'+```++```ts JS Client+const { commission_rate } = await client.admin.commissionRates.mutate({+ name: "Electronics",+ code: "electronics",+ type: "percentage",+ value: 12,+ rules: [{ reference: "product_category", reference_id: "pcat_01HXYZ" }],+})+```+</RequestExample>++<ResponseExample>+```json 201+{+ "commission_rate": {+ "id": "comrate_01HXYZ8Q2M4N6P8R0T2V4W6X8Y",+ "name": "Electronics",+ "code": "electronics",+ "type": "percentage",+ "value": 12,+ "currency_code": null,+ "include_tax": false,+ "include_shipping": false,+ "is_enabled": true,+ "is_default": false,+ "rules": [+ {+ "id": "comrule_01HXYZ9A1B2C3D4E5F6G7H8J9K",+ "reference": "product_category",+ "reference_id": "pcat_01HXYZ"+ }+ ],+ "values": []+ }+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/admin/commission-rates/delete-commission-rate.mdx b/apps/docs/rc/references/api/admin/commission-rates/delete-commission-rate.mdxnew file mode 100644index 000000000..31c41b625--- /dev/null+++ b/apps/docs/rc/references/api/admin/commission-rates/delete-commission-rate.mdx@@ -0,0 +1,40 @@+---+title: "Delete Commission Rate"+api: "DELETE /admin/commission-rates/{id}"+description: "Delete a commission rate."+---++Deletes a commission rate and its rules.++## Path parameters++<ParamField path="id" type="string" required>The commission rate's ID.</ParamField>++## Response++<ResponseField name="id" type="string">The deleted commission rate's ID.</ResponseField>+<ResponseField name="object" type="string">The object type: `commission_rate`.</ResponseField>+<ResponseField name="deleted" type="boolean">Whether the rate was deleted.</ResponseField>++<RequestExample>+```bash cURL+curl -X DELETE 'http://localhost:9000/admin/commission-rates/comrate_01HXYZ8Q2M4N6P8R0T2V4W6X8Y' \+ -H 'Authorization: Bearer <token>'+```++```ts JS Client+const result = await client.admin.commissionRates.$id.delete({+ $id: "comrate_01HXYZ8Q2M4N6P8R0T2V4W6X8Y",+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "id": "comrate_01HXYZ8Q2M4N6P8R0T2V4W6X8Y",+ "object": "commission_rate",+ "deleted": true+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/admin/commission-rates/list-commission-rates.mdx b/apps/docs/rc/references/api/admin/commission-rates/list-commission-rates.mdxnew file mode 100644index 000000000..03ec15ae0--- /dev/null+++ b/apps/docs/rc/references/api/admin/commission-rates/list-commission-rates.mdx@@ -0,0 +1,92 @@+---+title: "List Commission Rates"+api: "GET /admin/commission-rates"+description: "Retrieve a paginated list of commission rates."+---++Returns commission rates with their rules and currency-specific values.++<Note>+ `scope_type` is a virtual filter derived from each rate's rules — it is not a+ stored column. Use it to filter rates by the scope their rules target.+</Note>++## Query parameters++<ParamField query="limit" type="number" default="50">Maximum number of records to return.</ParamField>+<ParamField query="offset" type="number" default="0">Number of records to skip.</ParamField>+<ParamField query="order" type="string">Field to sort by, prefix with `-` for descending order.</ParamField>+<ParamField query="fields" type="string">Comma-separated fields to include in the response.</ParamField>+<ParamField query="q" type="string">Search term matched against commission rates.</ParamField>+<ParamField query="id" type="string | string[]">Filter by commission rate ID(s).</ParamField>+<ParamField query="code" type="string | string[]">Filter by commission rate code(s).</ParamField>+<ParamField query="type" type="string | string[]">Filter by rate type: `fixed` or `percentage`.</ParamField>+<ParamField query="scope_type" type="string | string[]">Filter by rule scope: `store`, `product_type`, `category`, `store_product_type`, or `store_category`.</ParamField>+<ParamField query="is_enabled" type="boolean">Filter by enabled state.</ParamField>+<ParamField query="is_default" type="boolean">Filter by whether the rate is the marketplace default.</ParamField>+<ParamField query="created_at" type="object">Filter by creation date using operators like `$gte` and `$lte`.</ParamField>+<ParamField query="updated_at" type="object">Filter by update date using operators like `$gte` and `$lte`.</ParamField>++## Response++<ResponseField name="commission_rates" type="object[]">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The commission rate's ID.</ResponseField>+ <ResponseField name="name" type="string">The rate's display name.</ResponseField>+ <ResponseField name="code" type="string">The rate's unique code.</ResponseField>+ <ResponseField name="type" type="string">The rate type: `fixed` or `percentage`.</ResponseField>+ <ResponseField name="value" type="number">The commission value — a percentage or a fixed amount.</ResponseField>+ <ResponseField name="currency_code" type="string | null">Currency of a fixed rate's value.</ResponseField>+ <ResponseField name="include_tax" type="boolean">Whether commission is calculated on tax-inclusive amounts.</ResponseField>+ <ResponseField name="include_shipping" type="boolean">Whether shipping is included in the commission base.</ResponseField>+ <ResponseField name="is_enabled" type="boolean">Whether the rate is active.</ResponseField>+ <ResponseField name="is_default" type="boolean">Whether this is the marketplace default rate.</ResponseField>+ <ResponseField name="rules" type="object[]">Rules scoping the rate, each with `id`, `reference`, and `reference_id`.</ResponseField>+ <ResponseField name="values" type="object[]">Per-currency fixed amounts, each with `id`, `currency_code`, and `amount`.</ResponseField>+ <ResponseField name="created_at" type="string">Creation timestamp.</ResponseField>+ <ResponseField name="updated_at" type="string">Last update timestamp.</ResponseField>+ </Expandable>+</ResponseField>+<ResponseField name="count" type="number">Total number of matching commission rates.</ResponseField>+<ResponseField name="offset" type="number">Number of records skipped.</ResponseField>+<ResponseField name="limit" type="number">Maximum number of records returned.</ResponseField>++<RequestExample>+```bash cURL+curl 'http://localhost:9000/admin/commission-rates?scope_type=store&limit=20' \+ -H 'Authorization: Bearer <token>'+```++```ts JS Client+const { commission_rates, count } = await client.admin.commissionRates.query({+ scope_type: "store",+ limit: 20,+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "commission_rates": [+ {+ "id": "comrate_01HXYZ8Q2M4N6P8R0T2V4W6X8Y",+ "name": "Default",+ "code": "default",+ "type": "percentage",+ "value": 10,+ "currency_code": null,+ "include_tax": false,+ "include_shipping": false,+ "is_enabled": true,+ "is_default": true,+ "rules": [],+ "values": []+ }+ ],+ "count": 1,+ "offset": 0,+ "limit": 20+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/admin/commission-rates/retrieve-commission-rate.mdx b/apps/docs/rc/references/api/admin/commission-rates/retrieve-commission-rate.mdxnew file mode 100644index 000000000..499e33603--- /dev/null+++ b/apps/docs/rc/references/api/admin/commission-rates/retrieve-commission-rate.mdx@@ -0,0 +1,70 @@+---+title: "Retrieve Commission Rate"+api: "GET /admin/commission-rates/{id}"+description: "Retrieve a commission rate by ID."+---++Returns a single commission rate with its rules and per-currency values.++## Path parameters++<ParamField path="id" type="string" required>The commission rate's ID.</ParamField>++## Query parameters++<ParamField query="fields" type="string">Comma-separated fields to include in the response.</ParamField>++## Response++<ResponseField name="commission_rate" type="object">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The commission rate's ID.</ResponseField>+ <ResponseField name="name" type="string">The rate's display name.</ResponseField>+ <ResponseField name="code" type="string">The rate's unique code.</ResponseField>+ <ResponseField name="type" type="string">The rate type: `fixed` or `percentage`.</ResponseField>+ <ResponseField name="value" type="number">The commission value.</ResponseField>+ <ResponseField name="currency_code" type="string | null">Currency of a fixed rate's value.</ResponseField>+ <ResponseField name="include_tax" type="boolean">Whether commission is calculated on tax-inclusive amounts.</ResponseField>+ <ResponseField name="include_shipping" type="boolean">Whether shipping is included in the commission base.</ResponseField>+ <ResponseField name="is_enabled" type="boolean">Whether the rate is active.</ResponseField>+ <ResponseField name="is_default" type="boolean">Whether this is the marketplace default rate.</ResponseField>+ <ResponseField name="rules" type="object[]">Rules scoping the rate, each with `id`, `reference`, and `reference_id`.</ResponseField>+ <ResponseField name="values" type="object[]">Per-currency fixed amounts, each with `id`, `currency_code`, and `amount`.</ResponseField>+ <ResponseField name="created_at" type="string">Creation timestamp.</ResponseField>+ <ResponseField name="updated_at" type="string">Last update timestamp.</ResponseField>+ </Expandable>+</ResponseField>++<RequestExample>+```bash cURL+curl 'http://localhost:9000/admin/commission-rates/comrate_01HXYZ8Q2M4N6P8R0T2V4W6X8Y' \+ -H 'Authorization: Bearer <token>'+```++```ts JS Client+const { commission_rate } = await client.admin.commissionRates.$id.query({+ $id: "comrate_01HXYZ8Q2M4N6P8R0T2V4W6X8Y",+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "commission_rate": {+ "id": "comrate_01HXYZ8Q2M4N6P8R0T2V4W6X8Y",+ "name": "Default",+ "code": "default",+ "type": "percentage",+ "value": 10,+ "currency_code": null,+ "include_tax": false,+ "include_shipping": false,+ "is_enabled": true,+ "is_default": true,+ "rules": [],+ "values": []+ }+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/admin/commission-rates/update-commission-rate.mdx b/apps/docs/rc/references/api/admin/commission-rates/update-commission-rate.mdxnew file mode 100644index 000000000..87e778b66--- /dev/null+++ b/apps/docs/rc/references/api/admin/commission-rates/update-commission-rate.mdx@@ -0,0 +1,84 @@+---+title: "Update Commission Rate"+api: "POST /admin/commission-rates/{id}"+description: "Update a commission rate."+---++Updates a commission rate's properties.++<Note>+ Rules are managed separately through the+ [batch rules endpoint](/rc/references/api/admin/commission-rates/batch-commission-rules).+</Note>++## Path parameters++<ParamField path="id" type="string" required>The commission rate's ID.</ParamField>++## Body parameters++<ParamField body="name" type="string">The rate's display name.</ParamField>+<ParamField body="code" type="string">Unique code identifying the rate.</ParamField>+<ParamField body="type" type="string">The rate type: `fixed` or `percentage`.</ParamField>+<ParamField body="value" type="number">The commission value — a percentage or a fixed amount.</ParamField>+<ParamField body="currency_code" type="string">Currency of a fixed rate's value.</ParamField>+<ParamField body="include_tax" type="boolean">Whether commission is calculated on tax-inclusive amounts.</ParamField>+<ParamField body="include_shipping" type="boolean">Whether shipping is included in the commission base.</ParamField>+<ParamField body="is_enabled" type="boolean">Whether the rate is active.</ParamField>+<ParamField body="values" type="object[]">+ Per-currency fixed amounts.+ <Expandable title="properties">+ <ParamField body="currency_code" type="string" required>The value's currency code.</ParamField>+ <ParamField body="amount" type="number" required>The fixed commission amount for that currency.</ParamField>+ </Expandable>+</ParamField>++## Response++<ResponseField name="commission_rate" type="object">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The commission rate's ID.</ResponseField>+ <ResponseField name="name" type="string">The rate's display name.</ResponseField>+ <ResponseField name="code" type="string">The rate's unique code.</ResponseField>+ <ResponseField name="type" type="string">The rate type: `fixed` or `percentage`.</ResponseField>+ <ResponseField name="value" type="number">The commission value.</ResponseField>+ <ResponseField name="is_enabled" type="boolean">Whether the rate is active.</ResponseField>+ <ResponseField name="rules" type="object[]">Rules scoping the rate.</ResponseField>+ <ResponseField name="values" type="object[]">Per-currency fixed amounts.</ResponseField>+ </Expandable>+</ResponseField>++<RequestExample>+```bash cURL+curl -X POST 'http://localhost:9000/admin/commission-rates/comrate_01HXYZ8Q2M4N6P8R0T2V4W6X8Y' \+ -H 'Authorization: Bearer <token>' \+ -H 'Content-Type: application/json' \+ -d '{"value": 15, "is_enabled": true}'+```++```ts JS Client+const { commission_rate } = await client.admin.commissionRates.$id.mutate({+ $id: "comrate_01HXYZ8Q2M4N6P8R0T2V4W6X8Y",+ value: 15,+ is_enabled: true,+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "commission_rate": {+ "id": "comrate_01HXYZ8Q2M4N6P8R0T2V4W6X8Y",+ "name": "Default",+ "code": "default",+ "type": "percentage",+ "value": 15,+ "is_enabled": true,+ "is_default": true,+ "rules": [],+ "values": []+ }+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/admin/members/list-members.mdx b/apps/docs/rc/references/api/admin/members/list-members.mdxnew file mode 100644index 000000000..e70501bf2--- /dev/null+++ b/apps/docs/rc/references/api/admin/members/list-members.mdx@@ -0,0 +1,61 @@+---+title: "List Members"+api: "GET /admin/members"+description: "Retrieve a paginated list of members across all sellers."+---++Returns member records platform-wide, useful for finding a member to add to a seller's team.++## Query parameters++<ParamField query="limit" type="number" default="10">Maximum number of records to return.</ParamField>+<ParamField query="offset" type="number" default="0">Number of records to skip.</ParamField>+<ParamField query="order" type="string">Field to sort by, prefix with `-` for descending order.</ParamField>+<ParamField query="fields" type="string">Comma-separated list of fields to include, prefix with `+`/`-` to add or remove from defaults.</ParamField>+<ParamField query="q" type="string">Search term matched against member fields.</ParamField>+<ParamField query="email" type="string">Filter by member email.</ParamField>++## Response++<ResponseField name="members" type="object[]">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The member's ID.</ResponseField>+ <ResponseField name="email" type="string">The member's email address.</ResponseField>+ <ResponseField name="is_active" type="boolean">Whether the member's account is active.</ResponseField>+ <ResponseField name="created_at" type="string">Creation timestamp.</ResponseField>+ </Expandable>+</ResponseField>+<ResponseField name="count" type="number">Total number of matching members.</ResponseField>+<ResponseField name="offset" type="number">Number of records skipped.</ResponseField>+<ResponseField name="limit" type="number">Number of records returned.</ResponseField>++<RequestExample>+```bash cURL+curl 'http://localhost:9000/admin/[email protected]' \+ -H 'Authorization: Bearer <token>'+```++```ts JS Client+const { members, count } = await client.admin.members.query({+ email: "[email protected]",+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "members": [+ {+ "id": "mem_01HXYZMEMAA",+ "email": "[email protected]",+ "is_active": true,+ "created_at": "2026-06-01T10:00:00.000Z"+ }+ ],+ "count": 1,+ "offset": 0,+ "limit": 10+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/admin/offers/batch-create-offers.mdx b/apps/docs/rc/references/api/admin/offers/batch-create-offers.mdxnew file mode 100644index 000000000..e40e0b2b1--- /dev/null+++ b/apps/docs/rc/references/api/admin/offers/batch-create-offers.mdx@@ -0,0 +1,130 @@+---+title: "Batch Create Offers"+api: "POST /admin/offers/batch"+description: "Create up to 100 offers for a seller in one request."+---++Creates multiple offers on behalf of a seller. The authenticated admin user is recorded as the creator.++## Body parameters++<ParamField body="seller_id" type="string" required>ID of the seller the offers belong to.</ParamField>+<ParamField body="offers" type="object[]" required>+ The offers to create — between 1 and 100.+ <Expandable title="properties">+ <ParamField body="sku" type="string" required>The offer's SKU.</ParamField>+ <ParamField body="variant_id" type="string" required>ID of the product variant to offer.</ParamField>+ <ParamField body="shipping_profile_id" type="string" required>ID of the seller's shipping profile.</ParamField>+ <ParamField body="prices" type="object[]" required>+ Offer prices — at least one.+ <Expandable title="properties">+ <ParamField body="amount" type="number" required>The price amount.</ParamField>+ <ParamField body="currency_code" type="string" required>The price currency.</ParamField>+ <ParamField body="min_quantity" type="number">Minimum quantity the price applies to.</ParamField>+ <ParamField body="max_quantity" type="number">Maximum quantity the price applies to.</ParamField>+ <ParamField body="rules" type="object">Price rules as attribute-value pairs.</ParamField>+ </Expandable>+ </ParamField>+ <ParamField body="inventory_items" type="object[]" required>+ Inventory items backing the offer — at least one.+ <Expandable title="properties">+ <ParamField body="title" type="string">The inventory item's title.</ParamField>+ <ParamField body="sku" type="string">The inventory item's SKU.</ParamField>+ <ParamField body="required_quantity" type="number" default="1">Quantity required per unit sold.</ParamField>+ <ParamField body="stock_levels" type="object[]">+ Initial stock levels.+ <Expandable title="properties">+ <ParamField body="location_id" type="string" required>The stock location's ID.</ParamField>+ <ParamField body="stocked_quantity" type="number" required>Quantity in stock at the location.</ParamField>+ </Expandable>+ </ParamField>+ </Expandable>+ </ParamField>+ <ParamField body="ean" type="string">The offer's EAN.</ParamField>+ <ParamField body="upc" type="string">The offer's UPC.</ParamField>+ <ParamField body="metadata" type="object">Custom key-value data.</ParamField>+ </Expandable>+</ParamField>++## Response++<ResponseField name="offers" type="object[]">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The offer's ID.</ResponseField>+ <ResponseField name="seller_id" type="string">ID of the seller who owns the offer.</ResponseField>+ <ResponseField name="variant_id" type="string">ID of the offered product variant.</ResponseField>+ <ResponseField name="shipping_profile_id" type="string">ID of the offer's shipping profile.</ResponseField>+ <ResponseField name="sku" type="string">The offer's SKU.</ResponseField>+ <ResponseField name="prices" type="object[]">The offer's prices.</ResponseField>+ <ResponseField name="inventory_items" type="object[]">The offer's linked inventory items.</ResponseField>+ </Expandable>+</ResponseField>++<RequestExample>+```bash cURL+curl -X POST 'http://localhost:9000/admin/offers/batch' \+ -H 'Authorization: Bearer <token>' \+ -H 'Content-Type: application/json' \+ -d '{+ "seller_id": "sel_01HXYZ",+ "offers": [+ {+ "sku": "SHIRT-M-BLUE",+ "variant_id": "variant_01HXYZ",+ "shipping_profile_id": "sp_01HXYZ",+ "prices": [{ "amount": 2500, "currency_code": "usd" }],+ "inventory_items": [+ {+ "sku": "SHIRT-M-BLUE",+ "required_quantity": 1,+ "stock_levels": [{ "location_id": "sloc_01HXYZ", "stocked_quantity": 100 }]+ }+ ]+ }+ ]+ }'+```++```ts JS Client+const { offers } = await client.admin.offers.batch.mutate({+ seller_id: "sel_01HXYZ",+ offers: [+ {+ sku: "SHIRT-M-BLUE",+ variant_id: "variant_01HXYZ",+ shipping_profile_id: "sp_01HXYZ",+ prices: [{ amount: 2500, currency_code: "usd" }],+ inventory_items: [+ {+ sku: "SHIRT-M-BLUE",+ required_quantity: 1,+ stock_levels: [{ location_id: "sloc_01HXYZ", stocked_quantity: 100 }],+ },+ ],+ },+ ],+})+```+</RequestExample>++<ResponseExample>+```json 201+{+ "offers": [+ {+ "id": "offer_01HXYZ8Q2M4N6P8R0T2V4W6X8Y",+ "seller_id": "sel_01HXYZ",+ "variant_id": "variant_01HXYZ",+ "shipping_profile_id": "sp_01HXYZ",+ "sku": "SHIRT-M-BLUE",+ "prices": [+ { "id": "price_01HXYZ", "amount": 2500, "currency_code": "usd" }+ ],+ "inventory_items": [+ { "id": "iitem_01HXYZ", "inventory_item_id": "iitem_01HXYZ", "required_quantity": 1, "sku": "SHIRT-M-BLUE" }+ ]+ }+ ]+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/admin/offers/delete-offer.mdx b/apps/docs/rc/references/api/admin/offers/delete-offer.mdxnew file mode 100644index 000000000..c89376782--- /dev/null+++ b/apps/docs/rc/references/api/admin/offers/delete-offer.mdx@@ -0,0 +1,40 @@+---+title: "Delete Offer"+api: "DELETE /admin/offers/{id}"+description: "Delete an offer."+---++Deletes an offer by ID.++## Path parameters++<ParamField path="id" type="string" required>The offer's ID.</ParamField>++## Response++<ResponseField name="id" type="string">The deleted offer's ID.</ResponseField>+<ResponseField name="object" type="string">The object type: `offer`.</ResponseField>+<ResponseField name="deleted" type="boolean">Whether the offer was deleted.</ResponseField>++<RequestExample>+```bash cURL+curl -X DELETE 'http://localhost:9000/admin/offers/offer_01HXYZ8Q2M4N6P8R0T2V4W6X8Y' \+ -H 'Authorization: Bearer <token>'+```++```ts JS Client+const result = await client.admin.offers.$id.delete({+ $id: "offer_01HXYZ8Q2M4N6P8R0T2V4W6X8Y",+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "id": "offer_01HXYZ8Q2M4N6P8R0T2V4W6X8Y",+ "object": "offer",+ "deleted": true+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/admin/offers/list-offers.mdx b/apps/docs/rc/references/api/admin/offers/list-offers.mdxnew file mode 100644index 000000000..5b265fff1--- /dev/null+++ b/apps/docs/rc/references/api/admin/offers/list-offers.mdx@@ -0,0 +1,106 @@+---+title: "List Offers"+api: "GET /admin/offers"+description: "Retrieve a paginated list of offers across all sellers."+---++Returns offers with their seller, variant, shipping profile, prices, and inventory items.++## Query parameters++<ParamField query="limit" type="number" default="50">Maximum number of records to return.</ParamField>+<ParamField query="offset" type="number" default="0">Number of records to skip.</ParamField>+<ParamField query="order" type="string">Field to sort by, prefix with `-` for descending order.</ParamField>+<ParamField query="fields" type="string">Comma-separated fields to include in the response.</ParamField>+<ParamField query="q" type="string">Search term matched against offers.</ParamField>+<ParamField query="id" type="string | string[]">Filter by offer ID(s).</ParamField>+<ParamField query="seller_id" type="string | string[]">Filter by seller ID(s).</ParamField>+<ParamField query="variant_id" type="string | string[]">Filter by product variant ID(s).</ParamField>+<ParamField query="shipping_profile_id" type="string | string[]">Filter by shipping profile ID(s).</ParamField>+<ParamField query="sku" type="string | string[]">Filter by SKU(s).</ParamField>+<ParamField query="ean" type="string | string[]">Filter by EAN(s).</ParamField>+<ParamField query="upc" type="string | string[]">Filter by UPC(s).</ParamField>+<ParamField query="group_by_seller" type="boolean">Group results by seller.</ParamField>+<ParamField query="status" type="string | string[]">Filter by the offered product's status.</ParamField>+<ParamField query="category_id" type="string | string[]">Filter by product category ID(s).</ParamField>+<ParamField query="collection_id" type="string | string[]">Filter by product collection ID(s).</ParamField>+<ParamField query="type_id" type="string | string[]">Filter by product type ID(s).</ParamField>+<ParamField query="tag_id" type="string | string[]">Filter by product tag ID(s).</ParamField>+<ParamField query="created_at" type="object">Filter by creation date using operators like `$gte` and `$lte`.</ParamField>+<ParamField query="updated_at" type="object">Filter by update date using operators like `$gte` and `$lte`.</ParamField>++## Response++<ResponseField name="offers" type="object[]">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The offer's ID.</ResponseField>+ <ResponseField name="seller_id" type="string">ID of the seller who owns the offer.</ResponseField>+ <ResponseField name="variant_id" type="string">ID of the offered product variant.</ResponseField>+ <ResponseField name="product_id" type="string">ID of the offered product.</ResponseField>+ <ResponseField name="shipping_profile_id" type="string">ID of the offer's shipping profile.</ResponseField>+ <ResponseField name="sku" type="string">The offer's SKU.</ResponseField>+ <ResponseField name="ean" type="string | null">The offer's EAN.</ResponseField>+ <ResponseField name="upc" type="string | null">The offer's UPC.</ResponseField>+ <ResponseField name="created_by" type="string">ID of the actor who created the offer.</ResponseField>+ <ResponseField name="variant_count" type="number">Number of variants on the offered product.</ResponseField>+ <ResponseField name="metadata" type="object | null">Custom key-value data.</ResponseField>+ <ResponseField name="seller" type="object">The seller, with `id`, `name`, and `handle`.</ResponseField>+ <ResponseField name="product_variant" type="object">The variant, with `id`, `title`, and `sku`.</ResponseField>+ <ResponseField name="shipping_profile" type="object">The shipping profile, with `id` and `name`.</ResponseField>+ <ResponseField name="prices" type="object[]">Offer prices, each with `id`, `amount`, `currency_code`, `min_quantity`, `max_quantity`, and `price_rules`.</ResponseField>+ <ResponseField name="inventory_items" type="object[]">Linked inventory items, each with `id`, `inventory_item_id`, `required_quantity`, and `sku`.</ResponseField>+ <ResponseField name="created_at" type="string">Creation timestamp.</ResponseField>+ <ResponseField name="updated_at" type="string">Last update timestamp.</ResponseField>+ </Expandable>+</ResponseField>+<ResponseField name="count" type="number">Total number of matching offers.</ResponseField>+<ResponseField name="offset" type="number">Number of records skipped.</ResponseField>+<ResponseField name="limit" type="number">Maximum number of records returned.</ResponseField>++<RequestExample>+```bash cURL+curl 'http://localhost:9000/admin/offers?seller_id=sel_01HXYZ&limit=20' \+ -H 'Authorization: Bearer <token>'+```++```ts JS Client+const { offers, count } = await client.admin.offers.query({+ seller_id: "sel_01HXYZ",+ limit: 20,+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "offers": [+ {+ "id": "offer_01HXYZ8Q2M4N6P8R0T2V4W6X8Y",+ "seller_id": "sel_01HXYZ",+ "variant_id": "variant_01HXYZ",+ "product_id": "prod_01HXYZ",+ "shipping_profile_id": "sp_01HXYZ",+ "sku": "SHIRT-M-BLUE",+ "ean": null,+ "upc": null,+ "created_by": "user_01HXYZ",+ "variant_count": 3,+ "metadata": null,+ "seller": { "id": "sel_01HXYZ", "name": "Acme Store", "handle": "acme-store" },+ "product_variant": { "id": "variant_01HXYZ", "title": "M / Blue", "sku": "SHIRT-M-BLUE" },+ "shipping_profile": { "id": "sp_01HXYZ", "name": "Default" },+ "prices": [+ { "id": "price_01HXYZ", "amount": 2500, "currency_code": "usd", "min_quantity": null, "max_quantity": null }+ ],+ "inventory_items": [+ { "id": "iitem_01HXYZ", "inventory_item_id": "iitem_01HXYZ", "required_quantity": 1, "sku": "SHIRT-M-BLUE" }+ ]+ }+ ],+ "count": 1,+ "offset": 0,+ "limit": 20+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/admin/offers/retrieve-offer.mdx b/apps/docs/rc/references/api/admin/offers/retrieve-offer.mdxnew file mode 100644index 000000000..b3715e16c--- /dev/null+++ b/apps/docs/rc/references/api/admin/offers/retrieve-offer.mdx@@ -0,0 +1,82 @@+---+title: "Retrieve Offer"+api: "GET /admin/offers/{id}"+description: "Retrieve an offer by ID."+---++Returns a single offer with its seller, variant, shipping profile, prices, and inventory items.++## Path parameters++<ParamField path="id" type="string" required>The offer's ID.</ParamField>++## Query parameters++<ParamField query="fields" type="string">Comma-separated fields to include in the response.</ParamField>++## Response++<ResponseField name="offer" type="object">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The offer's ID.</ResponseField>+ <ResponseField name="seller_id" type="string">ID of the seller who owns the offer.</ResponseField>+ <ResponseField name="variant_id" type="string">ID of the offered product variant.</ResponseField>+ <ResponseField name="product_id" type="string">ID of the offered product.</ResponseField>+ <ResponseField name="shipping_profile_id" type="string">ID of the offer's shipping profile.</ResponseField>+ <ResponseField name="sku" type="string">The offer's SKU.</ResponseField>+ <ResponseField name="ean" type="string | null">The offer's EAN.</ResponseField>+ <ResponseField name="upc" type="string | null">The offer's UPC.</ResponseField>+ <ResponseField name="created_by" type="string">ID of the actor who created the offer.</ResponseField>+ <ResponseField name="variant_count" type="number">Number of variants on the offered product.</ResponseField>+ <ResponseField name="metadata" type="object | null">Custom key-value data.</ResponseField>+ <ResponseField name="seller" type="object">The seller, with `id`, `name`, and `handle`.</ResponseField>+ <ResponseField name="product_variant" type="object">The variant, with `id`, `title`, and `sku`.</ResponseField>+ <ResponseField name="shipping_profile" type="object">The shipping profile, with `id` and `name`.</ResponseField>+ <ResponseField name="prices" type="object[]">Offer prices, each with `id`, `amount`, `currency_code`, `min_quantity`, `max_quantity`, and `price_rules`.</ResponseField>+ <ResponseField name="inventory_items" type="object[]">Linked inventory items, each with `id`, `inventory_item_id`, `required_quantity`, and `sku`.</ResponseField>+ <ResponseField name="created_at" type="string">Creation timestamp.</ResponseField>+ <ResponseField name="updated_at" type="string">Last update timestamp.</ResponseField>+ </Expandable>+</ResponseField>++<RequestExample>+```bash cURL+curl 'http://localhost:9000/admin/offers/offer_01HXYZ8Q2M4N6P8R0T2V4W6X8Y' \+ -H 'Authorization: Bearer <token>'+```++```ts JS Client+const { offer } = await client.admin.offers.$id.query({+ $id: "offer_01HXYZ8Q2M4N6P8R0T2V4W6X8Y",+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "offer": {+ "id": "offer_01HXYZ8Q2M4N6P8R0T2V4W6X8Y",+ "seller_id": "sel_01HXYZ",+ "variant_id": "variant_01HXYZ",+ "product_id": "prod_01HXYZ",+ "shipping_profile_id": "sp_01HXYZ",+ "sku": "SHIRT-M-BLUE",+ "ean": null,+ "upc": null,+ "created_by": "user_01HXYZ",+ "variant_count": 3,+ "metadata": null,+ "seller": { "id": "sel_01HXYZ", "name": "Acme Store", "handle": "acme-store" },+ "product_variant": { "id": "variant_01HXYZ", "title": "M / Blue", "sku": "SHIRT-M-BLUE" },+ "shipping_profile": { "id": "sp_01HXYZ", "name": "Default" },+ "prices": [+ { "id": "price_01HXYZ", "amount": 2500, "currency_code": "usd", "min_quantity": null, "max_quantity": null }+ ],+ "inventory_items": [+ { "id": "iitem_01HXYZ", "inventory_item_id": "iitem_01HXYZ", "required_quantity": 1, "sku": "SHIRT-M-BLUE" }+ ]+ }+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/admin/order-groups/list-order-groups.mdx b/apps/docs/rc/references/api/admin/order-groups/list-order-groups.mdxnew file mode 100644index 000000000..8d31ff9a3--- /dev/null+++ b/apps/docs/rc/references/api/admin/order-groups/list-order-groups.mdx@@ -0,0 +1,77 @@+---+title: "List Order Groups"+api: "GET /admin/order-groups"+description: "Retrieve a paginated list of order groups."+---++Returns order groups — the customer-facing wrappers around per-seller orders created from a multi-seller cart.++<Note>+ Filtering by `seller_id` narrows results to order groups that contain at+ least one order belonging to that seller.+</Note>++## Query parameters++<ParamField query="limit" type="number" default="50">Maximum number of records to return.</ParamField>+<ParamField query="offset" type="number" default="0">Number of records to skip.</ParamField>+<ParamField query="order" type="string">Field to sort by, prefix with `-` for descending order.</ParamField>+<ParamField query="fields" type="string">Comma-separated fields to include in the response.</ParamField>+<ParamField query="q" type="string">Search term matched against order groups.</ParamField>+<ParamField query="id" type="string | string[]">Filter by order group ID(s).</ParamField>+<ParamField query="customer_id" type="string | string[]">Filter by customer ID(s).</ParamField>+<ParamField query="seller_id" type="string | string[]">Filter to groups containing orders from the given seller(s).</ParamField>+<ParamField query="status" type="string | string[]">Filter by order group status.</ParamField>+<ParamField query="sales_channel_id" type="string | string[]">Filter by sales channel ID(s).</ParamField>+<ParamField query="created_at" type="object">Filter by creation date using operators like `$gte` and `$lte`.</ParamField>+<ParamField query="updated_at" type="object">Filter by update date using operators like `$gte` and `$lte`.</ParamField>++## Response++<ResponseField name="order_groups" type="object[]">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The order group's ID.</ResponseField>+ <ResponseField name="customer_id" type="string">ID of the customer who placed the order.</ResponseField>+ <ResponseField name="seller_count" type="number">Number of sellers in the group.</ResponseField>+ <ResponseField name="total" type="number">The group's total amount.</ResponseField>+ <ResponseField name="created_at" type="string">Creation timestamp.</ResponseField>+ <ResponseField name="updated_at" type="string">Last update timestamp.</ResponseField>+ </Expandable>+</ResponseField>+<ResponseField name="count" type="number">Total number of matching order groups.</ResponseField>+<ResponseField name="offset" type="number">Number of records skipped.</ResponseField>+<ResponseField name="limit" type="number">Maximum number of records returned.</ResponseField>++<RequestExample>+```bash cURL+curl 'http://localhost:9000/admin/order-groups?customer_id=cus_01HXYZ&limit=20' \+ -H 'Authorization: Bearer <token>'+```++```ts JS Client+const { order_groups, count } = await client.admin.orderGroups.query({+ customer_id: "cus_01HXYZ",+ limit: 20,+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "order_groups": [+ {+ "id": "og_01HXYZ8Q2M4N6P8R0T2V4W6X8Y",+ "customer_id": "cus_01HXYZ",+ "seller_count": 2,+ "total": 7400,+ "created_at": "2026-06-01T10:00:00.000Z",+ "updated_at": "2026-06-01T10:00:00.000Z"+ }+ ],+ "count": 1,+ "offset": 0,+ "limit": 20+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/admin/order-groups/retrieve-order-group.mdx b/apps/docs/rc/references/api/admin/order-groups/retrieve-order-group.mdxnew file mode 100644index 000000000..165324d01--- /dev/null+++ b/apps/docs/rc/references/api/admin/order-groups/retrieve-order-group.mdx@@ -0,0 +1,56 @@+---+title: "Retrieve Order Group"+api: "GET /admin/order-groups/{id}"+description: "Retrieve an order group by ID."+---++Returns a single order group.++## Path parameters++<ParamField path="id" type="string" required>The order group's ID.</ParamField>++## Query parameters++<ParamField query="fields" type="string">Comma-separated fields to include in the response.</ParamField>++## Response++<ResponseField name="order_group" type="object">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The order group's ID.</ResponseField>+ <ResponseField name="customer_id" type="string">ID of the customer who placed the order.</ResponseField>+ <ResponseField name="seller_count" type="number">Number of sellers in the group.</ResponseField>+ <ResponseField name="total" type="number">The group's total amount.</ResponseField>+ <ResponseField name="created_at" type="string">Creation timestamp.</ResponseField>+ <ResponseField name="updated_at" type="string">Last update timestamp.</ResponseField>+ </Expandable>+</ResponseField>++<RequestExample>+```bash cURL+curl 'http://localhost:9000/admin/order-groups/og_01HXYZ8Q2M4N6P8R0T2V4W6X8Y' \+ -H 'Authorization: Bearer <token>'+```++```ts JS Client+const { order_group } = await client.admin.orderGroups.$id.query({+ $id: "og_01HXYZ8Q2M4N6P8R0T2V4W6X8Y",+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "order_group": {+ "id": "og_01HXYZ8Q2M4N6P8R0T2V4W6X8Y",+ "customer_id": "cus_01HXYZ",+ "seller_count": 2,+ "total": 7400,+ "created_at": "2026-06-01T10:00:00.000Z",+ "updated_at": "2026-06-01T10:00:00.000Z"+ }+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/admin/orders/get-order-commission-lines.mdx b/apps/docs/rc/references/api/admin/orders/get-order-commission-lines.mdxnew file mode 100644index 000000000..841836a53--- /dev/null+++ b/apps/docs/rc/references/api/admin/orders/get-order-commission-lines.mdx@@ -0,0 +1,65 @@+---+title: "Get Order Commission Lines"+api: "GET /admin/orders/{id}/commission-lines"+description: "Retrieve the commission lines calculated for an order."+---++Returns the commission lines applied to an order's items and shipping methods.++## Path parameters++<ParamField path="id" type="string" required>The order's ID.</ParamField>++## Response++<ResponseField name="commission_lines" type="object[]">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The commission line's ID.</ResponseField>+ <ResponseField name="item_id" type="string | null">ID of the order item the line applies to.</ResponseField>+ <ResponseField name="shipping_method_id" type="string | null">ID of the shipping method the line applies to.</ResponseField>+ <ResponseField name="commission_rate_id" type="string | null">ID of the commission rate that produced the line.</ResponseField>+ <ResponseField name="code" type="string">Code of the applied commission rate.</ResponseField>+ <ResponseField name="rate" type="number">The applied commission rate value.</ResponseField>+ <ResponseField name="amount" type="number">The calculated commission amount.</ResponseField>+ <ResponseField name="description" type="string | null">Optional description of the line.</ResponseField>+ <ResponseField name="created_at" type="string">Creation timestamp.</ResponseField>+ <ResponseField name="updated_at" type="string">Last update timestamp.</ResponseField>+ </Expandable>+</ResponseField>+<ResponseField name="count" type="number">Number of commission lines on the order.</ResponseField>++<RequestExample>+```bash cURL+curl 'http://localhost:9000/admin/orders/order_01HXYZ8Q2M4N6P8R0T2V4W6X8Y/commission-lines' \+ -H 'Authorization: Bearer <token>'+```++```ts JS Client+const { commission_lines, count } =+ await client.admin.orders.$id.commissionLines.query({+ $id: "order_01HXYZ8Q2M4N6P8R0T2V4W6X8Y",+ })+```+</RequestExample>++<ResponseExample>+```json 200+{+ "commission_lines": [+ {+ "id": "comline_01HXYZ8Q2M4N6P8R0T2V4W6X8Y",+ "item_id": "ordli_01HXYZ",+ "shipping_method_id": null,+ "commission_rate_id": "comrate_01HXYZ",+ "code": "default",+ "rate": 10,+ "amount": 490,+ "description": null,+ "created_at": "2026-06-01T10:00:00.000Z",+ "updated_at": "2026-06-01T10:00:00.000Z"+ }+ ],+ "count": 1+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/admin/orders/get-order-order-group.mdx b/apps/docs/rc/references/api/admin/orders/get-order-order-group.mdxnew file mode 100644index 000000000..39c35535e--- /dev/null+++ b/apps/docs/rc/references/api/admin/orders/get-order-order-group.mdx@@ -0,0 +1,56 @@+---+title: "Get Order's Order Group"+api: "GET /admin/orders/{id}/order-group"+description: "Retrieve the order group a specific order belongs to."+---++Looks up the order group containing the given order and returns its details. Responds with `404` if the order is not part of any group.++## Path parameters++<ParamField path="id" type="string" required>The order's ID.</ParamField>++## Query parameters++<ParamField query="fields" type="string">Comma-separated fields to include in the response.</ParamField>++## Response++<ResponseField name="order_group" type="object">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The order group's ID.</ResponseField>+ <ResponseField name="customer_id" type="string">ID of the customer who placed the order.</ResponseField>+ <ResponseField name="seller_count" type="number">Number of sellers in the group.</ResponseField>+ <ResponseField name="total" type="number">The group's total amount.</ResponseField>+ <ResponseField name="created_at" type="string">Creation timestamp.</ResponseField>+ <ResponseField name="updated_at" type="string">Last update timestamp.</ResponseField>+ </Expandable>+</ResponseField>++<RequestExample>+```bash cURL+curl 'http://localhost:9000/admin/orders/order_01HXYZ8Q2M4N6P8R0T2V4W6X8Y/order-group' \+ -H 'Authorization: Bearer <token>'+```++```ts JS Client+const { order_group } = await client.admin.orders.$id.orderGroup.query({+ $id: "order_01HXYZ8Q2M4N6P8R0T2V4W6X8Y",+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "order_group": {+ "id": "og_01HXYZ8Q2M4N6P8R0T2V4W6X8Y",+ "customer_id": "cus_01HXYZ",+ "seller_count": 2,+ "total": 7400,+ "created_at": "2026-06-01T10:00:00.000Z",+ "updated_at": "2026-06-01T10:00:00.000Z"+ }+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/admin/orders/list-orders.mdx b/apps/docs/rc/references/api/admin/orders/list-orders.mdxnew file mode 100644index 000000000..8c0569d68--- /dev/null+++ b/apps/docs/rc/references/api/admin/orders/list-orders.mdx@@ -0,0 +1,79 @@+---+title: "List Orders"+api: "GET /admin/orders"+description: "Retrieve a paginated list of orders across all sellers."+---++Returns orders platform-wide. Mercur extends the standard Medusa endpoint with `seller_id` and `name` filters.++## Query parameters++<ParamField query="limit" type="number" default="15">Maximum number of records to return.</ParamField>+<ParamField query="offset" type="number" default="0">Number of records to skip.</ParamField>+<ParamField query="order" type="string">Field to sort by, prefix with `-` for descending order.</ParamField>+<ParamField query="fields" type="string">Comma-separated fields to include in the response.</ParamField>+<ParamField query="q" type="string">Search term matched against orders.</ParamField>+<ParamField query="id" type="string | string[]">Filter by order ID(s).</ParamField>+<ParamField query="status" type="string | string[]">Filter by order status.</ParamField>+<ParamField query="seller_id" type="string | string[]">Filter to orders belonging to the given seller(s).</ParamField>+<ParamField query="name" type="string | string[]">Filter by order name(s).</ParamField>+<ParamField query="sales_channel_id" type="string[]">Filter by sales channel IDs.</ParamField>+<ParamField query="region_id" type="string | string[]">Filter by region ID(s).</ParamField>+<ParamField query="customer_id" type="string | string[]">Filter by customer ID(s).</ParamField>+<ParamField query="total" type="object">Filter by order total using operators like `$gte` and `$lte`.</ParamField>+<ParamField query="created_at" type="object">Filter by creation date using operators like `$gte` and `$lte`.</ParamField>+<ParamField query="updated_at" type="object">Filter by update date using operators like `$gte` and `$lte`.</ParamField>++## Response++<ResponseField name="orders" type="object[]">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The order's ID.</ResponseField>+ <ResponseField name="display_id" type="number">Human-readable order number.</ResponseField>+ <ResponseField name="status" type="string">The order's status.</ResponseField>+ <ResponseField name="currency_code" type="string">The order's currency.</ResponseField>+ <ResponseField name="total" type="number">The order's total amount.</ResponseField>+ <ResponseField name="customer_id" type="string">ID of the customer who placed the order.</ResponseField>+ <ResponseField name="created_at" type="string">Creation timestamp.</ResponseField>+ <ResponseField name="updated_at" type="string">Last update timestamp.</ResponseField>+ </Expandable>+</ResponseField>+<ResponseField name="count" type="number">Total number of matching orders.</ResponseField>+<ResponseField name="offset" type="number">Number of records skipped.</ResponseField>+<ResponseField name="limit" type="number">Maximum number of records returned.</ResponseField>++<RequestExample>+```bash cURL+curl 'http://localhost:9000/admin/orders?seller_id=sel_01HXYZ&limit=20' \+ -H 'Authorization: Bearer <token>'+```++```ts JS Client+const { orders, count } = await client.admin.orders.query({+ seller_id: "sel_01HXYZ",+ limit: 20,+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "orders": [+ {+ "id": "order_01HXYZ8Q2M4N6P8R0T2V4W6X8Y",+ "display_id": 128,+ "status": "pending",+ "currency_code": "usd",+ "total": 4900,+ "customer_id": "cus_01HXYZ",+ "created_at": "2026-06-01T10:00:00.000Z",+ "updated_at": "2026-06-01T10:00:00.000Z"+ }+ ],+ "count": 1,+ "offset": 0,+ "limit": 20+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/admin/payouts/list-payouts.mdx b/apps/docs/rc/references/api/admin/payouts/list-payouts.mdxnew file mode 100644index 000000000..96fa1c786--- /dev/null+++ b/apps/docs/rc/references/api/admin/payouts/list-payouts.mdx@@ -0,0 +1,75 @@+---+title: "List Payouts"+api: "GET /admin/payouts"+description: "Retrieve a paginated list of payouts across all sellers."+---++Returns payouts with their payout account and seller details.++## Query parameters++<ParamField query="limit" type="number" default="50">Maximum number of records to return.</ParamField>+<ParamField query="offset" type="number" default="0">Number of records to skip.</ParamField>+<ParamField query="order" type="string">Field to sort by, prefix with `-` for descending order.</ParamField>+<ParamField query="fields" type="string">Comma-separated fields to include in the response.</ParamField>+<ParamField query="id" type="string | string[]">Filter by payout ID(s).</ParamField>+<ParamField query="status" type="string | string[]">Filter by payout status.</ParamField>+<ParamField query="account_id" type="string | string[]">Filter by payout account ID(s).</ParamField>+<ParamField query="created_at" type="object">Filter by creation date using operators like `$gte` and `$lte`.</ParamField>+<ParamField query="updated_at" type="object">Filter by update date using operators like `$gte` and `$lte`.</ParamField>++## Response++<ResponseField name="payouts" type="object[]">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The payout's ID.</ResponseField>+ <ResponseField name="display_id" type="number">Human-readable payout number.</ResponseField>+ <ResponseField name="amount" type="number">The payout amount.</ResponseField>+ <ResponseField name="currency_code" type="string">The payout currency.</ResponseField>+ <ResponseField name="status" type="string">The payout status.</ResponseField>+ <ResponseField name="data" type="object | null">Provider-specific payout data.</ResponseField>+ <ResponseField name="account" type="object">The payout account, with `id` and `status`.</ResponseField>+ <ResponseField name="seller" type="object">The seller, with `id`, `name`, and `handle`.</ResponseField>+ <ResponseField name="created_at" type="string">Creation timestamp.</ResponseField>+ <ResponseField name="updated_at" type="string">Last update timestamp.</ResponseField>+ </Expandable>+</ResponseField>+<ResponseField name="count" type="number">Total number of matching payouts.</ResponseField>+<ResponseField name="offset" type="number">Number of records skipped.</ResponseField>+<ResponseField name="limit" type="number">Maximum number of records returned.</ResponseField>++<RequestExample>+```bash cURL+curl 'http://localhost:9000/admin/payouts?status=completed&limit=20' \+ -H 'Authorization: Bearer <token>'+```++```ts JS Client+const { payouts, count } = await client.admin.payouts.query({+ status: "completed",+ limit: 20,+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "payouts": [+ {+ "id": "pout_01HXYZ8Q2M4N6P8R0T2V4W6X8Y",+ "display_id": 42,+ "amount": 1250,+ "currency_code": "usd",+ "status": "completed",+ "data": null,+ "account": { "id": "pacc_01HXYZ", "status": "active" },+ "seller": { "id": "sel_01HXYZ", "name": "Acme Store", "handle": "acme-store" }+ }+ ],+ "count": 1,+ "offset": 0,+ "limit": 20+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/admin/payouts/retrieve-payout.mdx b/apps/docs/rc/references/api/admin/payouts/retrieve-payout.mdxnew file mode 100644index 000000000..35be1ccc6--- /dev/null+++ b/apps/docs/rc/references/api/admin/payouts/retrieve-payout.mdx@@ -0,0 +1,62 @@+---+title: "Retrieve Payout"+api: "GET /admin/payouts/{id}"+description: "Retrieve a payout by ID."+---++Returns a single payout with its payout account and seller details.++## Path parameters++<ParamField path="id" type="string" required>The payout's ID.</ParamField>++## Query parameters++<ParamField query="fields" type="string">Comma-separated fields to include in the response.</ParamField>++## Response++<ResponseField name="payout" type="object">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The payout's ID.</ResponseField>+ <ResponseField name="display_id" type="number">Human-readable payout number.</ResponseField>+ <ResponseField name="amount" type="number">The payout amount.</ResponseField>+ <ResponseField name="currency_code" type="string">The payout currency.</ResponseField>+ <ResponseField name="status" type="string">The payout status.</ResponseField>+ <ResponseField name="data" type="object | null">Provider-specific payout data.</ResponseField>+ <ResponseField name="account" type="object">The payout account, with `id` and `status`.</ResponseField>+ <ResponseField name="seller" type="object">The seller, with `id`, `name`, and `handle`.</ResponseField>+ <ResponseField name="created_at" type="string">Creation timestamp.</ResponseField>+ <ResponseField name="updated_at" type="string">Last update timestamp.</ResponseField>+ </Expandable>+</ResponseField>++<RequestExample>+```bash cURL+curl 'http://localhost:9000/admin/payouts/pout_01HXYZ8Q2M4N6P8R0T2V4W6X8Y' \+ -H 'Authorization: Bearer <token>'+```++```ts JS Client+const { payout } = await client.admin.payouts.$id.query({+ $id: "pout_01HXYZ8Q2M4N6P8R0T2V4W6X8Y",+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "payout": {+ "id": "pout_01HXYZ8Q2M4N6P8R0T2V4W6X8Y",+ "display_id": 42,+ "amount": 1250,+ "currency_code": "usd",+ "status": "completed",+ "data": null,+ "account": { "id": "pacc_01HXYZ", "status": "active" },+ "seller": { "id": "sel_01HXYZ", "name": "Acme Store", "handle": "acme-store" }+ }+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/admin/product-attributes/create-attribute-value.mdx b/apps/docs/rc/references/api/admin/product-attributes/create-attribute-value.mdxnew file mode 100644index 000000000..8083e9fdb--- /dev/null+++ b/apps/docs/rc/references/api/admin/product-attributes/create-attribute-value.mdx@@ -0,0 +1,76 @@+---+title: "Upsert Attribute Values"+api: "POST /admin/product-attributes/{id}/values"+description: "Create or update values on a product attribute."+---++Upserts the given values on the attribute — items with an `id` update an existing value, items without one create a new value.++## Path parameters++<ParamField path="id" type="string" required>The attribute's ID.</ParamField>++## Body parameters++<ParamField body="values" type="object[]" required>+ Values to create or update — one of two shapes per item.+ <Expandable title="update existing value (by id)">+ <ParamField body="id" type="string" required>The value's ID.</ParamField>+ <ParamField body="name" type="string">Value name.</ParamField>+ <ParamField body="handle" type="string">Unique URL-safe handle.</ParamField>+ <ParamField body="rank" type="number">Sort rank; must be non-negative.</ParamField>+ <ParamField body="is_active" type="boolean">Whether the value is active.</ParamField>+ <ParamField body="metadata" type="object">Custom key-value data.</ParamField>+ </Expandable>+ <Expandable title="create new value (by name)">+ <ParamField body="name" type="string" required>Value name.</ParamField>+ <ParamField body="handle" type="string">Unique URL-safe handle.</ParamField>+ <ParamField body="rank" type="number">Sort rank; must be non-negative.</ParamField>+ <ParamField body="is_active" type="boolean">Whether the value is active.</ParamField>+ <ParamField body="metadata" type="object">Custom key-value data.</ParamField>+ </Expandable>+</ParamField>++## Response++<ResponseField name="product_attribute" type="object">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The attribute's ID.</ResponseField>+ <ResponseField name="name" type="string">Attribute name.</ResponseField>+ <ResponseField name="type" type="string">The attribute's type.</ResponseField>+ <ResponseField name="values" type="object[]">All values after the upsert, with `id`, `name`, `handle`, `rank`, and `is_active`.</ResponseField>+ <ResponseField name="updated_at" type="string">Last update timestamp.</ResponseField>+ </Expandable>+</ResponseField>++<RequestExample>+```bash cURL+curl -X POST 'http://localhost:9000/admin/product-attributes/pattr_01HXYZABCDEF/values' \+ -H 'Authorization: Bearer <token>' \+ -H 'Content-Type: application/json' \+ -d '{"values": [{ "name": "Wool" }, { "id": "pattrval_01HXYZABCDEF", "rank": 1 }]}'+```++```ts JS Client+const { product_attribute } = await client.admin.productAttributes.$id.values.mutate({+ $id: "pattr_01HXYZABCDEF",+ values: [{ name: "Wool" }, { id: "pattrval_01HXYZABCDEF", rank: 1 }],+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "product_attribute": {+ "id": "pattr_01HXYZABCDEF",+ "name": "Material",+ "type": "single_select",+ "values": [+ { "id": "pattrval_01HXYZABCDEG", "name": "Wool", "rank": 0 },+ { "id": "pattrval_01HXYZABCDEF", "name": "Linen", "rank": 1 }+ ]+ }+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/admin/product-attributes/create-product-attribute.mdx b/apps/docs/rc/references/api/admin/product-attributes/create-product-attribute.mdxnew file mode 100644index 000000000..83e4edc21--- /dev/null+++ b/apps/docs/rc/references/api/admin/product-attributes/create-product-attribute.mdx@@ -0,0 +1,99 @@+---+title: "Create Product Attribute"+api: "POST /admin/product-attributes"+description: "Create a catalog product attribute."+---++Creates a shared attribute that products across the catalog can use.++<Note>+`is_variant_axis` is only valid for `multi_select` attributes — axis attributes provide the value sets that variants are generated from.+</Note>++## Body parameters++<ParamField body="name" type="string" required>Attribute name.</ParamField>+<ParamField body="type" type="string" required>One of `single_select`, `multi_select`, `unit`, `toggle`, `text`.</ParamField>+<ParamField body="handle" type="string">Unique URL-safe handle, generated from the name if omitted.</ParamField>+<ParamField body="description" type="string">Attribute description.</ParamField>+<ParamField body="is_required" type="boolean">Whether a value is required on products.</ParamField>+<ParamField body="is_filterable" type="boolean">Whether the attribute can be used as a storefront filter.</ParamField>+<ParamField body="is_variant_axis" type="boolean">Whether the attribute drives variant generation; only valid for `multi_select`.</ParamField>+<ParamField body="rank" type="number">Sort rank of the attribute; must be non-negative.</ParamField>+<ParamField body="is_active" type="boolean">Whether the attribute is active.</ParamField>+<ParamField body="category_ids" type="string[]">IDs of categories to link the attribute to; omit for a global attribute.</ParamField>+<ParamField body="values" type="object[]">+ Initial attribute values for select types.+ <Expandable title="properties">+ <ParamField body="name" type="string" required>Value name.</ParamField>+ <ParamField body="handle" type="string">Unique URL-safe handle.</ParamField>+ <ParamField body="rank" type="number">Sort rank; must be non-negative.</ParamField>+ <ParamField body="is_active" type="boolean">Whether the value is active.</ParamField>+ <ParamField body="metadata" type="object">Custom key-value data.</ParamField>+ </Expandable>+</ParamField>+<ParamField body="metadata" type="object">Custom key-value data.</ParamField>+<ParamField body="additional_data" type="object">Custom data passed to workflow hooks.</ParamField>++## Response++<ResponseField name="product_attribute" type="object">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The attribute's ID.</ResponseField>+ <ResponseField name="name" type="string">Attribute name.</ResponseField>+ <ResponseField name="handle" type="string">Unique URL-safe handle.</ResponseField>+ <ResponseField name="type" type="string">One of `single_select`, `multi_select`, `unit`, `toggle`, `text`.</ResponseField>+ <ResponseField name="is_required" type="boolean">Whether a value is required on products.</ResponseField>+ <ResponseField name="is_filterable" type="boolean">Whether the attribute can be used as a storefront filter.</ResponseField>+ <ResponseField name="is_variant_axis" type="boolean">Whether the attribute drives variant generation.</ResponseField>+ <ResponseField name="is_active" type="boolean">Whether the attribute is active.</ResponseField>+ <ResponseField name="values" type="object[]">The attribute's values.</ResponseField>+ <ResponseField name="categories" type="object[]">Linked categories with `id`, `name`, and `handle`.</ResponseField>+ <ResponseField name="created_at" type="string">Creation timestamp.</ResponseField>+ <ResponseField name="updated_at" type="string">Last update timestamp.</ResponseField>+ </Expandable>+</ResponseField>++<RequestExample>+```bash cURL+curl -X POST 'http://localhost:9000/admin/product-attributes' \+ -H 'Authorization: Bearer <token>' \+ -H 'Content-Type: application/json' \+ -d '{+ "name": "Material",+ "type": "single_select",+ "is_filterable": true,+ "values": [{ "name": "Linen" }, { "name": "Cotton" }]+ }'+```++```ts JS Client+const { product_attribute } = await client.admin.productAttributes.mutate({+ name: "Material",+ type: "single_select",+ is_filterable: true,+ values: [{ name: "Linen" }, { name: "Cotton" }],+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "product_attribute": {+ "id": "pattr_01HXYZABCDEF",+ "name": "Material",+ "handle": "material",+ "type": "single_select",+ "is_required": false,+ "is_filterable": true,+ "is_variant_axis": false,+ "is_active": true,+ "values": [+ { "id": "pattrval_01HXYZABCDEF", "name": "Linen", "rank": 0 },+ { "id": "pattrval_01HXYZABCDEG", "name": "Cotton", "rank": 1 }+ ]+ }+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/admin/product-attributes/delete-attribute-value.mdx b/apps/docs/rc/references/api/admin/product-attributes/delete-attribute-value.mdxnew file mode 100644index 000000000..9b9ee4902--- /dev/null+++ b/apps/docs/rc/references/api/admin/product-attributes/delete-attribute-value.mdx@@ -0,0 +1,52 @@+---+title: "Delete Attribute Value"+api: "DELETE /admin/product-attributes/{id}/values/{value_id}"+description: "Delete a value from a product attribute."+---++Deletes the value and returns the parent attribute.++## Path parameters++<ParamField path="id" type="string" required>The attribute's ID.</ParamField>+<ParamField path="value_id" type="string" required>The value's ID.</ParamField>++## Response++<ResponseField name="product_attribute" type="object">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The attribute's ID.</ResponseField>+ <ResponseField name="name" type="string">Attribute name.</ResponseField>+ <ResponseField name="type" type="string">The attribute's type.</ResponseField>+ <ResponseField name="values" type="object[]">Remaining values after deletion.</ResponseField>+ <ResponseField name="updated_at" type="string">Last update timestamp.</ResponseField>+ </Expandable>+</ResponseField>++<RequestExample>+```bash cURL+curl -X DELETE 'http://localhost:9000/admin/product-attributes/pattr_01HXYZABCDEF/values/pattrval_01HXYZABCDEF' \+ -H 'Authorization: Bearer <token>'+```++```ts JS Client+const { product_attribute } =+ await client.admin.productAttributes.$id.values.$value_id.delete({+ $id: "pattr_01HXYZABCDEF",+ $value_id: "pattrval_01HXYZABCDEF",+ })+```+</RequestExample>++<ResponseExample>+```json 200+{+ "product_attribute": {+ "id": "pattr_01HXYZABCDEF",+ "name": "Material",+ "type": "single_select",+ "values": []+ }+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/admin/product-attributes/delete-product-attribute.mdx b/apps/docs/rc/references/api/admin/product-attributes/delete-product-attribute.mdxnew file mode 100644index 000000000..7cbc413b9--- /dev/null+++ b/apps/docs/rc/references/api/admin/product-attributes/delete-product-attribute.mdx@@ -0,0 +1,40 @@+---+title: "Delete Product Attribute"+api: "DELETE /admin/product-attributes/{id}"+description: "Delete a catalog product attribute."+---++Deletes the attribute and its values.++## Path parameters++<ParamField path="id" type="string" required>The attribute's ID.</ParamField>++## Response++<ResponseField name="id" type="string">The deleted attribute's ID.</ResponseField>+<ResponseField name="object" type="string">Always `product_attribute`.</ResponseField>+<ResponseField name="deleted" type="boolean">Always `true`.</ResponseField>++<RequestExample>+```bash cURL+curl -X DELETE 'http://localhost:9000/admin/product-attributes/pattr_01HXYZABCDEF' \+ -H 'Authorization: Bearer <token>'+```++```ts JS Client+const result = await client.admin.productAttributes.$id.delete({+ $id: "pattr_01HXYZABCDEF",+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "id": "pattr_01HXYZABCDEF",+ "object": "product_attribute",+ "deleted": true+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/admin/product-attributes/list-product-attributes.mdx b/apps/docs/rc/references/api/admin/product-attributes/list-product-attributes.mdxnew file mode 100644index 000000000..6b41abe58--- /dev/null+++ b/apps/docs/rc/references/api/admin/product-attributes/list-product-attributes.mdx@@ -0,0 +1,91 @@+---+title: "List Product Attributes"+api: "GET /admin/product-attributes"+description: "Retrieve a paginated list of catalog product attributes."+---++Returns global (non-product-scoped) attributes, with optional filtering by type, flags, and category.++## Query parameters++<ParamField query="limit" type="number" default="50">Maximum number of records to return.</ParamField>+<ParamField query="offset" type="number" default="0">Number of records to skip.</ParamField>+<ParamField query="order" type="string">Field to sort by, prefix with `-` for descending order.</ParamField>+<ParamField query="fields" type="string">Comma-separated list of fields to include, prefix with `+`/`-` to add or remove from defaults.</ParamField>+<ParamField query="q" type="string">Search term matched against attribute fields.</ParamField>+<ParamField query="id" type="string | string[]">Filter by attribute ID(s).</ParamField>+<ParamField query="handle" type="string | string[]">Filter by attribute handle(s).</ParamField>+<ParamField query="type" type="string | string[]">Filter by type: `single_select`, `multi_select`, `unit`, `toggle`, or `text`.</ParamField>+<ParamField query="is_required" type="boolean">Filter by the required flag.</ParamField>+<ParamField query="is_variant_axis" type="boolean">Filter by the variant-axis flag.</ParamField>+<ParamField query="is_filterable" type="boolean">Filter by the filterable flag.</ParamField>+<ParamField query="is_active" type="boolean">Filter by the active flag.</ParamField>+<ParamField query="category_id" type="string | string[]">Filter to attributes linked to the given category(ies) or global to all categories.</ParamField>+<ParamField query="created_at" type="object">Filter by creation date with operators like `$gte`, `$lte`.</ParamField>+<ParamField query="updated_at" type="object">Filter by update date with operators like `$gte`, `$lte`.</ParamField>++## Response++<ResponseField name="product_attributes" type="object[]">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The attribute's ID.</ResponseField>+ <ResponseField name="name" type="string">Attribute name.</ResponseField>+ <ResponseField name="handle" type="string">Unique URL-safe handle.</ResponseField>+ <ResponseField name="description" type="string">Attribute description.</ResponseField>+ <ResponseField name="type" type="string">One of `single_select`, `multi_select`, `unit`, `toggle`, `text`.</ResponseField>+ <ResponseField name="is_required" type="boolean">Whether a value is required on products.</ResponseField>+ <ResponseField name="is_filterable" type="boolean">Whether the attribute can be used as a storefront filter.</ResponseField>+ <ResponseField name="is_variant_axis" type="boolean">Whether the attribute drives variant generation.</ResponseField>+ <ResponseField name="is_active" type="boolean">Whether the attribute is active.</ResponseField>+ <ResponseField name="created_by" type="string">ID of the actor who created the attribute.</ResponseField>+ <ResponseField name="product_id" type="string">Always `null` for catalog attributes.</ResponseField>+ <ResponseField name="rank" type="number">Sort rank of the attribute.</ResponseField>+ <ResponseField name="values" type="object[]">The attribute's values.</ResponseField>+ <ResponseField name="categories" type="object[]">Linked categories with `id`, `name`, and `handle`.</ResponseField>+ <ResponseField name="metadata" type="object">Custom key-value data.</ResponseField>+ <ResponseField name="created_at" type="string">Creation timestamp.</ResponseField>+ <ResponseField name="updated_at" type="string">Last update timestamp.</ResponseField>+ </Expandable>+</ResponseField>+<ResponseField name="count" type="number">Total number of matching attributes.</ResponseField>+<ResponseField name="offset" type="number">Number of records skipped.</ResponseField>+<ResponseField name="limit" type="number">Number of records returned.</ResponseField>++<RequestExample>+```bash cURL+curl 'http://localhost:9000/admin/product-attributes?type=single_select&limit=20' \+ -H 'Authorization: Bearer <token>'+```++```ts JS Client+const { product_attributes, count } = await client.admin.productAttributes.query({+ type: "single_select",+ limit: 20,+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "product_attributes": [+ {+ "id": "pattr_01HXYZABCDEF",+ "name": "Material",+ "handle": "material",+ "type": "single_select",+ "is_required": false,+ "is_filterable": true,+ "is_variant_axis": false,+ "is_active": true,+ "values": [+ { "id": "pattrval_01HXYZABCDEF", "name": "Linen", "rank": 0 }+ ]+ }+ ],+ "count": 1,+ "offset": 0,+ "limit": 20+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/admin/product-attributes/retrieve-product-attribute.mdx b/apps/docs/rc/references/api/admin/product-attributes/retrieve-product-attribute.mdxnew file mode 100644index 000000000..a7b35aa66--- /dev/null+++ b/apps/docs/rc/references/api/admin/product-attributes/retrieve-product-attribute.mdx@@ -0,0 +1,81 @@+---+title: "Retrieve Product Attribute"+api: "GET /admin/product-attributes/{id}"+description: "Retrieve a catalog product attribute by ID."+---++Returns a single attribute with its values and linked categories.++## Path parameters++<ParamField path="id" type="string" required>The attribute's ID.</ParamField>++## Query parameters++<ParamField query="fields" type="string">Comma-separated list of fields to include, prefix with `+`/`-` to add or remove from defaults.</ParamField>++## Response++<ResponseField name="product_attribute" type="object">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The attribute's ID.</ResponseField>+ <ResponseField name="name" type="string">Attribute name.</ResponseField>+ <ResponseField name="handle" type="string">Unique URL-safe handle.</ResponseField>+ <ResponseField name="description" type="string">Attribute description.</ResponseField>+ <ResponseField name="type" type="string">One of `single_select`, `multi_select`, `unit`, `toggle`, `text`.</ResponseField>+ <ResponseField name="is_required" type="boolean">Whether a value is required on products.</ResponseField>+ <ResponseField name="is_filterable" type="boolean">Whether the attribute can be used as a storefront filter.</ResponseField>+ <ResponseField name="is_variant_axis" type="boolean">Whether the attribute drives variant generation.</ResponseField>+ <ResponseField name="is_active" type="boolean">Whether the attribute is active.</ResponseField>+ <ResponseField name="created_by" type="string">ID of the actor who created the attribute.</ResponseField>+ <ResponseField name="product_id" type="string">Owning product's ID for product-scoped attributes, otherwise `null`.</ResponseField>+ <ResponseField name="rank" type="number">Sort rank of the attribute.</ResponseField>+ <ResponseField name="values" type="object[]">+ The attribute's values.+ <Expandable title="properties">+ <ResponseField name="id" type="string">The value's ID.</ResponseField>+ <ResponseField name="name" type="string">Value name.</ResponseField>+ <ResponseField name="handle" type="string">Unique URL-safe handle.</ResponseField>+ <ResponseField name="rank" type="number">Sort rank.</ResponseField>+ <ResponseField name="is_active" type="boolean">Whether the value is active.</ResponseField>+ </Expandable>+ </ResponseField>+ <ResponseField name="categories" type="object[]">Linked categories with `id`, `name`, and `handle`.</ResponseField>+ <ResponseField name="metadata" type="object">Custom key-value data.</ResponseField>+ <ResponseField name="created_at" type="string">Creation timestamp.</ResponseField>+ <ResponseField name="updated_at" type="string">Last update timestamp.</ResponseField>+ </Expandable>+</ResponseField>++<RequestExample>+```bash cURL+curl 'http://localhost:9000/admin/product-attributes/pattr_01HXYZABCDEF' \+ -H 'Authorization: Bearer <token>'+```++```ts JS Client+const { product_attribute } = await client.admin.productAttributes.$id.query({+ $id: "pattr_01HXYZABCDEF",+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "product_attribute": {+ "id": "pattr_01HXYZABCDEF",+ "name": "Material",+ "handle": "material",+ "type": "single_select",+ "is_required": false,+ "is_filterable": true,+ "is_variant_axis": false,+ "is_active": true,+ "values": [+ { "id": "pattrval_01HXYZABCDEF", "name": "Linen", "rank": 0 }+ ]+ }+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/admin/product-attributes/update-attribute-value.mdx b/apps/docs/rc/references/api/admin/product-attributes/update-attribute-value.mdxnew file mode 100644index 000000000..70ac8ce8e--- /dev/null+++ b/apps/docs/rc/references/api/admin/product-attributes/update-attribute-value.mdx@@ -0,0 +1,66 @@+---+title: "Update Attribute Value"+api: "POST /admin/product-attributes/{id}/values/{value_id}"+description: "Update a single value on a product attribute."+---++Updates the value and returns the parent attribute.++## Path parameters++<ParamField path="id" type="string" required>The attribute's ID.</ParamField>+<ParamField path="value_id" type="string" required>The value's ID.</ParamField>++## Body parameters++<ParamField body="name" type="string">Value name.</ParamField>+<ParamField body="handle" type="string">Unique URL-safe handle.</ParamField>+<ParamField body="rank" type="number">Sort rank; must be non-negative.</ParamField>+<ParamField body="is_active" type="boolean">Whether the value is active.</ParamField>+<ParamField body="metadata" type="object">Custom key-value data.</ParamField>+<ParamField body="additional_data" type="object">Custom data passed to workflow hooks.</ParamField>++## Response++<ResponseField name="product_attribute" type="object">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The attribute's ID.</ResponseField>+ <ResponseField name="name" type="string">Attribute name.</ResponseField>+ <ResponseField name="type" type="string">The attribute's type.</ResponseField>+ <ResponseField name="values" type="object[]">All values, including the updated one.</ResponseField>+ <ResponseField name="updated_at" type="string">Last update timestamp.</ResponseField>+ </Expandable>+</ResponseField>++<RequestExample>+```bash cURL+curl -X POST 'http://localhost:9000/admin/product-attributes/pattr_01HXYZABCDEF/values/pattrval_01HXYZABCDEF' \+ -H 'Authorization: Bearer <token>' \+ -H 'Content-Type: application/json' \+ -d '{"name": "Belgian Linen"}'+```++```ts JS Client+const { product_attribute } =+ await client.admin.productAttributes.$id.values.$value_id.mutate({+ $id: "pattr_01HXYZABCDEF",+ $value_id: "pattrval_01HXYZABCDEF",+ name: "Belgian Linen",+ })+```+</RequestExample>++<ResponseExample>+```json 200+{+ "product_attribute": {+ "id": "pattr_01HXYZABCDEF",+ "name": "Material",+ "type": "single_select",+ "values": [+ { "id": "pattrval_01HXYZABCDEF", "name": "Belgian Linen", "rank": 0 }+ ]+ }+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/admin/product-attributes/update-product-attribute.mdx b/apps/docs/rc/references/api/admin/product-attributes/update-product-attribute.mdxnew file mode 100644index 000000000..688cb5ebc--- /dev/null+++ b/apps/docs/rc/references/api/admin/product-attributes/update-product-attribute.mdx@@ -0,0 +1,76 @@+---+title: "Update Product Attribute"+api: "POST /admin/product-attributes/{id}"+description: "Update a catalog product attribute."+---++Updates the attribute's details; only the provided fields are changed.++<Note>+`type` is immutable — sending a `type` different from the attribute's current type returns an error.+</Note>++## Path parameters++<ParamField path="id" type="string" required>The attribute's ID.</ParamField>++## Body parameters++<ParamField body="name" type="string">Attribute name.</ParamField>+<ParamField body="handle" type="string">Unique URL-safe handle.</ParamField>+<ParamField body="description" type="string">Attribute description.</ParamField>+<ParamField body="type" type="string">Must match the current type: `single_select`, `multi_select`, `unit`, `toggle`, or `text`.</ParamField>+<ParamField body="is_required" type="boolean">Whether a value is required on products.</ParamField>+<ParamField body="is_filterable" type="boolean">Whether the attribute can be used as a storefront filter.</ParamField>+<ParamField body="is_variant_axis" type="boolean">Whether the attribute drives variant generation; only valid for `multi_select`.</ParamField>+<ParamField body="rank" type="number">Sort rank of the attribute; must be non-negative.</ParamField>+<ParamField body="is_active" type="boolean">Whether the attribute is active.</ParamField>+<ParamField body="category_ids" type="string[]">IDs of categories to link the attribute to; replaces the existing links.</ParamField>+<ParamField body="metadata" type="object">Custom key-value data.</ParamField>+<ParamField body="additional_data" type="object">Custom data passed to workflow hooks.</ParamField>++## Response++<ResponseField name="product_attribute" type="object">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The attribute's ID.</ResponseField>+ <ResponseField name="name" type="string">Attribute name.</ResponseField>+ <ResponseField name="handle" type="string">Unique URL-safe handle.</ResponseField>+ <ResponseField name="type" type="string">The attribute's type.</ResponseField>+ <ResponseField name="values" type="object[]">The attribute's values.</ResponseField>+ <ResponseField name="categories" type="object[]">Linked categories with `id`, `name`, and `handle`.</ResponseField>+ <ResponseField name="updated_at" type="string">Last update timestamp.</ResponseField>+ </Expandable>+</ResponseField>++<RequestExample>+```bash cURL+curl -X POST 'http://localhost:9000/admin/product-attributes/pattr_01HXYZABCDEF' \+ -H 'Authorization: Bearer <token>' \+ -H 'Content-Type: application/json' \+ -d '{"name": "Fabric", "is_filterable": true}'+```++```ts JS Client+const { product_attribute } = await client.admin.productAttributes.$id.mutate({+ $id: "pattr_01HXYZABCDEF",+ name: "Fabric",+ is_filterable: true,+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "product_attribute": {+ "id": "pattr_01HXYZABCDEF",+ "name": "Fabric",+ "handle": "material",+ "type": "single_select",+ "is_filterable": true,+ "updated_at": "2026-06-02T09:00:00.000Z"+ }+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/admin/product-changes/cancel-product-change.mdx b/apps/docs/rc/references/api/admin/product-changes/cancel-product-change.mdxnew file mode 100644index 000000000..ec518c92d--- /dev/null+++ b/apps/docs/rc/references/api/admin/product-changes/cancel-product-change.mdx@@ -0,0 +1,68 @@+---+title: "Cancel Product Change"+api: "POST /admin/product-changes/{id}/cancel"+description: "Cancel a pending product change without applying it."+---++Cancels the pending change set and returns the updated change record.++## Path parameters++<ParamField path="id" type="string" required>The product change's ID.</ParamField>++## Body parameters++<ParamField body="internal_note" type="string">Note recorded with the cancellation, visible to operators only.</ParamField>++## Response++<ResponseField name="product_change" type="object">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The product change's ID.</ResponseField>+ <ResponseField name="product_id" type="string">ID of the product the change applied to.</ResponseField>+ <ResponseField name="status" type="string">Change status after cancellation.</ResponseField>+ <ResponseField name="canceled_by" type="string">ID of the actor who canceled the change.</ResponseField>+ <ResponseField name="canceled_at" type="string">When the change was canceled.</ResponseField>+ <ResponseField name="actions" type="object[]">The change's individual actions with `action`, `ordering`, `details`, and `applied`.</ResponseField>+ <ResponseField name="created_at" type="string">Creation timestamp.</ResponseField>+ <ResponseField name="updated_at" type="string">Last update timestamp.</ResponseField>+ </Expandable>+</ResponseField>++<RequestExample>+```bash cURL+curl -X POST 'http://localhost:9000/admin/product-changes/prodch_01HXYZABCDEF/cancel' \+ -H 'Authorization: Bearer <token>' \+ -H 'Content-Type: application/json' \+ -d '{}'+```++```ts JS Client+const { product_change } = await client.admin.productChanges.$id.cancel.mutate({+ $id: "prodch_01HXYZABCDEF",+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "product_change": {+ "id": "prodch_01HXYZABCDEF",+ "product_id": "prod_01HXYZABCDEF",+ "status": "canceled",+ "canceled_by": "user_01HXYZABCDEF",+ "canceled_at": "2026-06-02T09:00:00.000Z",+ "actions": [+ {+ "id": "prodchact_01HXYZABCDEF",+ "action": "update_product",+ "ordering": 0,+ "details": { "title": "Linen Shirt v2" },+ "applied": false+ }+ ]+ }+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/admin/product-changes/confirm-product-change.mdx b/apps/docs/rc/references/api/admin/product-changes/confirm-product-change.mdxnew file mode 100644index 000000000..acbcd1bee--- /dev/null+++ b/apps/docs/rc/references/api/admin/product-changes/confirm-product-change.mdx@@ -0,0 +1,47 @@+---+title: "Confirm Product Change"+api: "POST /admin/product-changes/{id}/confirm"+description: "Approve a pending product change and apply it to the product."+---++Applies the pending change set to the product and marks the change as confirmed.++## Path parameters++<ParamField path="id" type="string" required>The product change's ID.</ParamField>++## Body parameters++<ParamField body="internal_note" type="string">Note recorded on the confirmation, visible to operators only.</ParamField>++## Response++<ResponseField name="id" type="string">The confirmed product change's ID.</ResponseField>+<ResponseField name="object" type="string">Always `product_change`.</ResponseField>+<ResponseField name="deleted" type="boolean">Always `true` — the change is no longer pending.</ResponseField>++<RequestExample>+```bash cURL+curl -X POST 'http://localhost:9000/admin/product-changes/prodch_01HXYZABCDEF/confirm' \+ -H 'Authorization: Bearer <token>' \+ -H 'Content-Type: application/json' \+ -d '{"internal_note": "Approved after review"}'+```++```ts JS Client+const result = await client.admin.productChanges.$id.confirm.mutate({+ $id: "prodch_01HXYZABCDEF",+ internal_note: "Approved after review",+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "id": "prodch_01HXYZABCDEF",+ "object": "product_change",+ "deleted": true+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/admin/products/batch-product-attributes.mdx b/apps/docs/rc/references/api/admin/products/batch-product-attributes.mdxnew file mode 100644index 000000000..0365e8243--- /dev/null+++ b/apps/docs/rc/references/api/admin/products/batch-product-attributes.mdx@@ -0,0 +1,96 @@+---+title: "Batch Product Attributes"+api: "POST /admin/products/{id}/attributes/batch"+description: "Add, remove, and update attributes on a product in one request."+---++Applies attribute changes to the product in the order `remove` → `add` → `update`.++## Path parameters++<ParamField path="id" type="string" required>The product's ID.</ParamField>++## Body parameters++<ParamField body="add" type="object[]">+ Attributes to attach — one of two shapes per item.+ <Expandable title="existing attribute (by id)">+ <ParamField body="id" type="string" required>ID of an existing catalog attribute.</ParamField>+ <ParamField body="value_ids" type="string[]">IDs of attribute values to select.</ParamField>+ <ParamField body="value" type="string | number | boolean">Scalar value for `text`, `unit`, or `toggle` attributes.</ParamField>+ </Expandable>+ <Expandable title="inline attribute (by title)">+ <ParamField body="title" type="string" required>Attribute title.</ParamField>+ <ParamField body="type" type="string">One of `single_select`, `multi_select`, `unit`, `toggle`, `text`; required for non-axis inline attributes unless `value` is a boolean.</ParamField>+ <ParamField body="values" type="string[]">Value names to create and select.</ParamField>+ <ParamField body="value" type="string | number | boolean">Scalar value for non-select types.</ParamField>+ <ParamField body="is_variant_axis" type="boolean">Whether the attribute drives variant generation; only allowed on `multi_select` attributes.</ParamField>+ <ParamField body="is_filterable" type="boolean">Whether the attribute can be used as a storefront filter.</ParamField>+ <ParamField body="is_required" type="boolean">Whether a value is required on products.</ParamField>+ <ParamField body="description" type="string">Attribute description.</ParamField>+ <ParamField body="metadata" type="object">Custom key-value data.</ParamField>+ </Expandable>+</ParamField>+<ParamField body="remove" type="string[]">IDs of attributes to detach from the product.</ParamField>+<ParamField body="update" type="object[]">+ Changes to attributes already on the product.+ <Expandable title="properties">+ <ParamField body="id" type="string" required>The attribute's ID.</ParamField>+ <ParamField body="title" type="string">New attribute title.</ParamField>+ <ParamField body="add" type="(string | object)[]">Value names (or `{ value }` objects) to add to the selection.</ParamField>+ <ParamField body="remove" type="string[]">Value IDs to remove from the selection.</ParamField>+ <ParamField body="value" type="string | number | boolean">New scalar value for non-select types.</ParamField>+ </Expandable>+</ParamField>++## Response++<ResponseField name="product" type="object">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The product's ID.</ResponseField>+ <ResponseField name="title" type="string">Product title.</ResponseField>+ <ResponseField name="status" type="string">Current product status.</ResponseField>+ <ResponseField name="product_attribute_values" type="object[]">Attribute values selected on the product, each with its parent `attribute`.</ResponseField>+ <ResponseField name="scoped_attributes" type="object[]">Product-scoped (inline) attributes with their `values`.</ResponseField>+ </Expandable>+</ResponseField>++<RequestExample>+```bash cURL+curl -X POST 'http://localhost:9000/admin/products/prod_01HXYZABCDEF/attributes/batch' \+ -H 'Authorization: Bearer <token>' \+ -H 'Content-Type: application/json' \+ -d '{+ "add": [{ "id": "pattr_01HXYZABCDEF", "value_ids": ["pattrval_01HXYZABCDEF"] }],+ "remove": ["pattr_01HXYZABCDEG"]+ }'+```++```ts JS Client+const { product } = await client.admin.products.$id.attributes.batch.mutate({+ $id: "prod_01HXYZABCDEF",+ add: [{ id: "pattr_01HXYZABCDEF", value_ids: ["pattrval_01HXYZABCDEF"] }],+ remove: ["pattr_01HXYZABCDEG"],+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "product": {+ "id": "prod_01HXYZABCDEF",+ "title": "Linen Shirt",+ "status": "published",+ "product_attribute_values": [+ {+ "id": "pattrval_01HXYZABCDEF",+ "name": "Linen",+ "attribute": { "id": "pattr_01HXYZABCDEF", "name": "Material", "type": "single_select" }+ }+ ],+ "scoped_attributes": []+ }+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/admin/products/confirm-product.mdx b/apps/docs/rc/references/api/admin/products/confirm-product.mdxnew file mode 100644index 000000000..90644129b--- /dev/null+++ b/apps/docs/rc/references/api/admin/products/confirm-product.mdx@@ -0,0 +1,59 @@+---+title: "Confirm Product"+api: "POST /admin/products/{id}/confirm"+description: "Approve a proposed product for publishing."+---++Approves the product's publish request and returns the updated product.++## Path parameters++<ParamField path="id" type="string" required>The product's ID.</ParamField>++## Query parameters++<ParamField query="fields" type="string">Comma-separated list of fields to include, prefix with `+`/`-` to add or remove from defaults.</ParamField>++## Body parameters++<ParamField body="internal_note" type="string">Note recorded on the approval, visible to operators only.</ParamField>++## Response++<ResponseField name="product" type="object">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The product's ID.</ResponseField>+ <ResponseField name="title" type="string">Product title.</ResponseField>+ <ResponseField name="status" type="string">Product status after confirmation.</ResponseField>+ <ResponseField name="updated_at" type="string">Last update timestamp.</ResponseField>+ </Expandable>+</ResponseField>++<RequestExample>+```bash cURL+curl -X POST 'http://localhost:9000/admin/products/prod_01HXYZABCDEF/confirm' \+ -H 'Authorization: Bearer <token>' \+ -H 'Content-Type: application/json' \+ -d '{"internal_note": "Looks good"}'+```++```ts JS Client+const { product } = await client.admin.products.$id.confirm.mutate({+ $id: "prod_01HXYZABCDEF",+ internal_note: "Looks good",+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "product": {+ "id": "prod_01HXYZABCDEF",+ "title": "Linen Shirt",+ "status": "published",+ "updated_at": "2026-06-02T09:00:00.000Z"+ }+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/admin/products/create-product-variant.mdx b/apps/docs/rc/references/api/admin/products/create-product-variant.mdxnew file mode 100644index 000000000..1f6fe02b9--- /dev/null+++ b/apps/docs/rc/references/api/admin/products/create-product-variant.mdx@@ -0,0 +1,78 @@+---+title: "Create Product Variant"+api: "POST /admin/products/{id}/variants"+description: "Add a variant to a product."+---++Creates a new variant on the product and returns the updated product.++## Path parameters++<ParamField path="id" type="string" required>The product's ID.</ParamField>++## Body parameters++<ParamField body="title" type="string" required>Variant title.</ParamField>+<ParamField body="sku" type="string">Variant SKU.</ParamField>+<ParamField body="ean" type="string">Variant EAN.</ParamField>+<ParamField body="upc" type="string">Variant UPC.</ParamField>+<ParamField body="isbn" type="string">Variant ISBN.</ParamField>+<ParamField body="asin" type="string">Variant ASIN.</ParamField>+<ParamField body="gtin" type="string">Variant GTIN.</ParamField>+<ParamField body="barcode" type="string">Variant barcode.</ParamField>+<ParamField body="hs_code" type="string">Harmonized System code.</ParamField>+<ParamField body="mid_code" type="string">Manufacturer identification code.</ParamField>+<ParamField body="variant_rank" type="number">Sort rank of the variant.</ParamField>+<ParamField body="weight" type="number">Variant weight.</ParamField>+<ParamField body="length" type="number">Variant length.</ParamField>+<ParamField body="height" type="number">Variant height.</ParamField>+<ParamField body="width" type="number">Variant width.</ParamField>+<ParamField body="origin_country" type="string">Country of origin.</ParamField>+<ParamField body="material" type="string">Variant material.</ParamField>+<ParamField body="options" type="object">Map of option title to option value, for example `{"Size": "L"}`.</ParamField>+<ParamField body="metadata" type="object">Custom key-value data.</ParamField>+<ParamField body="additional_data" type="object">Custom data passed to workflow hooks.</ParamField>++## Response++<ResponseField name="product" type="object">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The product's ID.</ResponseField>+ <ResponseField name="title" type="string">Product title.</ResponseField>+ <ResponseField name="variants" type="object[]">All variants, including the created one.</ResponseField>+ <ResponseField name="updated_at" type="string">Last update timestamp.</ResponseField>+ </Expandable>+</ResponseField>++<RequestExample>+```bash cURL+curl -X POST 'http://localhost:9000/admin/products/prod_01HXYZABCDEF/variants' \+ -H 'Authorization: Bearer <token>' \+ -H 'Content-Type: application/json' \+ -d '{"title": "L", "sku": "LS-L", "options": {"Size": "L"}}'+```++```ts JS Client+const { product } = await client.admin.products.$id.variants.mutate({+ $id: "prod_01HXYZABCDEF",+ title: "L",+ sku: "LS-L",+ options: { Size: "L" },+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "product": {+ "id": "prod_01HXYZABCDEF",+ "title": "Linen Shirt",+ "variants": [+ { "id": "variant_01HXYZABCDEF", "title": "M", "sku": "LS-M" },+ { "id": "variant_01HXYZABCDEG", "title": "L", "sku": "LS-L" }+ ]+ }+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/admin/products/create-product.mdx b/apps/docs/rc/references/api/admin/products/create-product.mdxnew file mode 100644index 000000000..8786b7f46--- /dev/null+++ b/apps/docs/rc/references/api/admin/products/create-product.mdx@@ -0,0 +1,169 @@+---+title: "Create Product"+api: "POST /admin/products"+description: "Create a master catalog product."+---++Creates a shared master product that sellers can be made eligible to sell.++<Note>+Pass `seller_ids` to set which sellers may sell the product. The `attributes` array accepts a unified input: reference an existing catalog attribute by `id`, or create an inline product-scoped attribute by `title`.+</Note>++## Body parameters++<ParamField body="title" type="string" required>Product title.</ParamField>+<ParamField body="subtitle" type="string">Product subtitle.</ParamField>+<ParamField body="description" type="string">Product description.</ParamField>+<ParamField body="handle" type="string">Unique URL-safe handle, generated from the title if omitted.</ParamField>+<ParamField body="status" type="string">One of `draft`, `proposed`, `published`, `rejected`.</ParamField>+<ParamField body="is_giftcard" type="boolean" default="false">Whether the product is a gift card.</ParamField>+<ParamField body="discountable" type="boolean" default="true">Whether discounts can apply to the product.</ParamField>+<ParamField body="thumbnail" type="string">URL of the product thumbnail.</ParamField>+<ParamField body="images" type="object[]">+ Product images.+ <Expandable title="properties">+ <ParamField body="url" type="string" required>Image URL.</ParamField>+ </Expandable>+</ParamField>+<ParamField body="external_id" type="string">ID of the product in an external system.</ParamField>+<ParamField body="type_id" type="string">ID of the product type.</ParamField>+<ParamField body="collection_id" type="string">ID of the collection to assign the product to.</ParamField>+<ParamField body="seller_ids" type="string[]">IDs of sellers eligible to sell the product.</ParamField>+<ParamField body="categories" type="object[]">+ Categories to assign the product to.+ <Expandable title="properties">+ <ParamField body="id" type="string" required>Category ID.</ParamField>+ </Expandable>+</ParamField>+<ParamField body="tags" type="object[]">+ Tags to assign to the product.+ <Expandable title="properties">+ <ParamField body="id" type="string" required>Tag ID.</ParamField>+ </Expandable>+</ParamField>+<ParamField body="options" type="object[]">+ Product options used to build variants.+ <Expandable title="properties">+ <ParamField body="title" type="string" required>Option title, for example `Size`.</ParamField>+ <ParamField body="values" type="string[]" required>Possible option values.</ParamField>+ </Expandable>+</ParamField>+<ParamField body="attributes" type="object[]">+ Unified attribute input — one of two shapes per item.+ <Expandable title="existing attribute (by id)">+ <ParamField body="id" type="string" required>ID of an existing catalog attribute.</ParamField>+ <ParamField body="value_ids" type="string[]">IDs of attribute values to select.</ParamField>+ <ParamField body="value" type="string | number | boolean">Scalar value for `text`, `unit`, or `toggle` attributes.</ParamField>+ </Expandable>+ <Expandable title="inline attribute (by title)">+ <ParamField body="title" type="string" required>Attribute title.</ParamField>+ <ParamField body="type" type="string">One of `single_select`, `multi_select`, `unit`, `toggle`, `text`.</ParamField>+ <ParamField body="values" type="string[]">Value names to create and select.</ParamField>+ <ParamField body="value" type="string | number | boolean">Scalar value for non-select types.</ParamField>+ <ParamField body="is_variant_axis" type="boolean">Whether the attribute drives variant generation; only valid for `multi_select`.</ParamField>+ <ParamField body="is_filterable" type="boolean">Whether the attribute can be used as a storefront filter.</ParamField>+ <ParamField body="is_required" type="boolean">Whether a value is required on products.</ParamField>+ <ParamField body="description" type="string">Attribute description.</ParamField>+ <ParamField body="metadata" type="object">Custom key-value data.</ParamField>+ </Expandable>+</ParamField>+<ParamField body="variants" type="object[]">+ Product variants.+ <Expandable title="properties">+ <ParamField body="title" type="string" required>Variant title.</ParamField>+ <ParamField body="sku" type="string">Variant SKU.</ParamField>+ <ParamField body="ean" type="string">Variant EAN.</ParamField>+ <ParamField body="upc" type="string">Variant UPC.</ParamField>+ <ParamField body="isbn" type="string">Variant ISBN.</ParamField>+ <ParamField body="asin" type="string">Variant ASIN.</ParamField>+ <ParamField body="gtin" type="string">Variant GTIN.</ParamField>+ <ParamField body="barcode" type="string">Variant barcode.</ParamField>+ <ParamField body="hs_code" type="string">Harmonized System code.</ParamField>+ <ParamField body="mid_code" type="string">Manufacturer identification code.</ParamField>+ <ParamField body="variant_rank" type="number">Sort rank of the variant.</ParamField>+ <ParamField body="weight" type="number">Variant weight.</ParamField>+ <ParamField body="length" type="number">Variant length.</ParamField>+ <ParamField body="height" type="number">Variant height.</ParamField>+ <ParamField body="width" type="number">Variant width.</ParamField>+ <ParamField body="origin_country" type="string">Country of origin.</ParamField>+ <ParamField body="material" type="string">Variant material.</ParamField>+ <ParamField body="options" type="object">Map of option title to option value, for example `{"Size": "M"}`.</ParamField>+ <ParamField body="metadata" type="object">Custom key-value data.</ParamField>+ </Expandable>+</ParamField>+<ParamField body="weight" type="number">Product weight.</ParamField>+<ParamField body="length" type="number">Product length.</ParamField>+<ParamField body="height" type="number">Product height.</ParamField>+<ParamField body="width" type="number">Product width.</ParamField>+<ParamField body="hs_code" type="string">Harmonized System code.</ParamField>+<ParamField body="mid_code" type="string">Manufacturer identification code.</ParamField>+<ParamField body="origin_country" type="string">Country of origin.</ParamField>+<ParamField body="material" type="string">Product material.</ParamField>+<ParamField body="metadata" type="object">Custom key-value data.</ParamField>+<ParamField body="additional_data" type="object">Custom data passed to workflow hooks.</ParamField>++## Response++<ResponseField name="product" type="object">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The product's ID.</ResponseField>+ <ResponseField name="title" type="string">Product title.</ResponseField>+ <ResponseField name="handle" type="string">Unique URL-safe handle.</ResponseField>+ <ResponseField name="status" type="string">One of `draft`, `proposed`, `published`, `rejected`.</ResponseField>+ <ResponseField name="variants" type="object[]">Created variants.</ResponseField>+ <ResponseField name="product_attribute_values" type="object[]">Attribute values selected on the product.</ResponseField>+ <ResponseField name="scoped_attributes" type="object[]">Product-scoped (inline) attributes with their values.</ResponseField>+ <ResponseField name="attributes" type="object[]">Computed attribute groups with selected `values` and `all_values`.</ResponseField>+ <ResponseField name="created_at" type="string">Creation timestamp.</ResponseField>+ <ResponseField name="updated_at" type="string">Last update timestamp.</ResponseField>+ </Expandable>+</ResponseField>++<RequestExample>+```bash cURL+curl -X POST 'http://localhost:9000/admin/products' \+ -H 'Authorization: Bearer <token>' \+ -H 'Content-Type: application/json' \+ -d '{+ "title": "Linen Shirt",+ "seller_ids": ["sel_01HXYZABCDEF"],+ "options": [{ "title": "Size", "values": ["S", "M"] }],+ "variants": [+ { "title": "S", "sku": "LS-S", "options": { "Size": "S" } },+ { "title": "M", "sku": "LS-M", "options": { "Size": "M" } }+ ],+ "attributes": [{ "title": "Material", "type": "single_select", "values": ["Linen"] }]+ }'+```++```ts JS Client+const { product } = await client.admin.products.mutate({+ title: "Linen Shirt",+ seller_ids: ["sel_01HXYZABCDEF"],+ options: [{ title: "Size", values: ["S", "M"] }],+ variants: [+ { title: "S", sku: "LS-S", options: { Size: "S" } },+ { title: "M", sku: "LS-M", options: { Size: "M" } },+ ],+ attributes: [{ title: "Material", type: "single_select", values: ["Linen"] }],+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "product": {+ "id": "prod_01HXYZABCDEF",+ "title": "Linen Shirt",+ "handle": "linen-shirt",+ "status": "draft",+ "variants": [+ { "id": "variant_01HXYZABCDEF", "title": "S", "sku": "LS-S" },+ { "id": "variant_01HXYZABCDEG", "title": "M", "sku": "LS-M" }+ ]+ }+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/admin/products/delete-product-variant.mdx b/apps/docs/rc/references/api/admin/products/delete-product-variant.mdxnew file mode 100644index 000000000..3408baf91--- /dev/null+++ b/apps/docs/rc/references/api/admin/products/delete-product-variant.mdx@@ -0,0 +1,48 @@+---+title: "Delete Product Variant"+api: "DELETE /admin/products/{id}/variants/{variant_id}"+description: "Delete a variant from a product."+---++Deletes the variant and returns the parent product.++## Path parameters++<ParamField path="id" type="string" required>The product's ID.</ParamField>+<ParamField path="variant_id" type="string" required>The variant's ID.</ParamField>++## Response++<ResponseField name="id" type="string">The deleted variant's ID.</ResponseField>+<ResponseField name="object" type="string">Always `variant`.</ResponseField>+<ResponseField name="deleted" type="boolean">Always `true`.</ResponseField>+<ResponseField name="parent" type="object">The parent product after deletion.</ResponseField>++<RequestExample>+```bash cURL+curl -X DELETE 'http://localhost:9000/admin/products/prod_01HXYZABCDEF/variants/variant_01HXYZABCDEF' \+ -H 'Authorization: Bearer <token>'+```++```ts JS Client+const result = await client.admin.products.$id.variants.$variant_id.delete({+ $id: "prod_01HXYZABCDEF",+ $variant_id: "variant_01HXYZABCDEF",+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "id": "variant_01HXYZABCDEF",+ "object": "variant",+ "deleted": true,+ "parent": {+ "id": "prod_01HXYZABCDEF",+ "title": "Linen Shirt",+ "variants": []+ }+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/admin/products/delete-product.mdx b/apps/docs/rc/references/api/admin/products/delete-product.mdxnew file mode 100644index 000000000..8b30d087d--- /dev/null+++ b/apps/docs/rc/references/api/admin/products/delete-product.mdx@@ -0,0 +1,40 @@+---+title: "Delete Product"+api: "DELETE /admin/products/{id}"+description: "Delete a master catalog product."+---++Soft-deletes the product and its variants.++## Path parameters++<ParamField path="id" type="string" required>The product's ID.</ParamField>++## Response++<ResponseField name="id" type="string">The deleted product's ID.</ResponseField>+<ResponseField name="object" type="string">Always `product`.</ResponseField>+<ResponseField name="deleted" type="boolean">Always `true`.</ResponseField>++<RequestExample>+```bash cURL+curl -X DELETE 'http://localhost:9000/admin/products/prod_01HXYZABCDEF' \+ -H 'Authorization: Bearer <token>'+```++```ts JS Client+const result = await client.admin.products.$id.delete({+ $id: "prod_01HXYZABCDEF",+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "id": "prod_01HXYZABCDEF",+ "object": "product",+ "deleted": true+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/admin/products/list-product-variants.mdx b/apps/docs/rc/references/api/admin/products/list-product-variants.mdxnew file mode 100644index 000000000..09989e305--- /dev/null+++ b/apps/docs/rc/references/api/admin/products/list-product-variants.mdx@@ -0,0 +1,91 @@+---+title: "List Product Variants"+api: "GET /admin/products/{id}/variants"+description: "Retrieve a paginated list of a product's variants."+---++Returns the variants of a single product, with optional filtering by SKU and identifiers.++## Path parameters++<ParamField path="id" type="string" required>The product's ID.</ParamField>++## Query parameters++<ParamField query="limit" type="number" default="50">Maximum number of records to return.</ParamField>+<ParamField query="offset" type="number" default="0">Number of records to skip.</ParamField>+<ParamField query="order" type="string">Field to sort by, prefix with `-` for descending order.</ParamField>+<ParamField query="fields" type="string">Comma-separated list of fields to include, prefix with `+`/`-` to add or remove from defaults.</ParamField>+<ParamField query="q" type="string">Search term matched against variant fields.</ParamField>+<ParamField query="id" type="string | string[]">Filter by variant ID(s).</ParamField>+<ParamField query="sku" type="string">Filter by SKU.</ParamField>+<ParamField query="ean" type="string">Filter by EAN.</ParamField>+<ParamField query="upc" type="string">Filter by UPC.</ParamField>+<ParamField query="barcode" type="string">Filter by barcode.</ParamField>++## Response++<ResponseField name="variants" type="object[]">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The variant's ID.</ResponseField>+ <ResponseField name="title" type="string">Variant title.</ResponseField>+ <ResponseField name="sku" type="string">Variant SKU.</ResponseField>+ <ResponseField name="ean" type="string">Variant EAN.</ResponseField>+ <ResponseField name="upc" type="string">Variant UPC.</ResponseField>+ <ResponseField name="barcode" type="string">Variant barcode.</ResponseField>+ <ResponseField name="hs_code" type="string">Harmonized System code.</ResponseField>+ <ResponseField name="mid_code" type="string">Manufacturer identification code.</ResponseField>+ <ResponseField name="variant_rank" type="number">Sort rank of the variant.</ResponseField>+ <ResponseField name="weight" type="number">Variant weight.</ResponseField>+ <ResponseField name="length" type="number">Variant length.</ResponseField>+ <ResponseField name="height" type="number">Variant height.</ResponseField>+ <ResponseField name="width" type="number">Variant width.</ResponseField>+ <ResponseField name="origin_country" type="string">Country of origin.</ResponseField>+ <ResponseField name="material" type="string">Variant material.</ResponseField>+ <ResponseField name="product_id" type="string">ID of the parent product.</ResponseField>+ <ResponseField name="manage_inventory" type="boolean">Whether inventory is tracked for the variant.</ResponseField>+ <ResponseField name="allow_backorder" type="boolean">Whether the variant can be ordered when out of stock.</ResponseField>+ <ResponseField name="options" type="object[]">The variant's option values.</ResponseField>+ <ResponseField name="metadata" type="object">Custom key-value data.</ResponseField>+ <ResponseField name="created_at" type="string">Creation timestamp.</ResponseField>+ <ResponseField name="updated_at" type="string">Last update timestamp.</ResponseField>+ </Expandable>+</ResponseField>+<ResponseField name="count" type="number">Total number of matching variants.</ResponseField>+<ResponseField name="offset" type="number">Number of records skipped.</ResponseField>+<ResponseField name="limit" type="number">Number of records returned.</ResponseField>++<RequestExample>+```bash cURL+curl 'http://localhost:9000/admin/products/prod_01HXYZABCDEF/variants?limit=20' \+ -H 'Authorization: Bearer <token>'+```++```ts JS Client+const { variants, count } = await client.admin.products.$id.variants.query({+ $id: "prod_01HXYZABCDEF",+ limit: 20,+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "variants": [+ {+ "id": "variant_01HXYZABCDEF",+ "title": "M",+ "sku": "LS-M",+ "product_id": "prod_01HXYZABCDEF",+ "manage_inventory": false,+ "allow_backorder": false,+ "variant_rank": 0+ }+ ],+ "count": 1,+ "offset": 0,+ "limit": 20+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/admin/products/list-products.mdx b/apps/docs/rc/references/api/admin/products/list-products.mdxnew file mode 100644index 000000000..9b6ce52f0--- /dev/null+++ b/apps/docs/rc/references/api/admin/products/list-products.mdx@@ -0,0 +1,109 @@+---+title: "List Products"+api: "GET /admin/products"+description: "Retrieve a paginated list of master catalog products."+---++Returns all products across the marketplace, with optional filtering by status, seller, category, and more.++## Query parameters++<ParamField query="limit" type="number" default="50">Maximum number of records to return.</ParamField>+<ParamField query="offset" type="number" default="0">Number of records to skip.</ParamField>+<ParamField query="order" type="string">Field to sort by, prefix with `-` for descending order.</ParamField>+<ParamField query="fields" type="string">Comma-separated list of fields to include, prefix with `+`/`-` to add or remove from defaults.</ParamField>+<ParamField query="q" type="string">Search term matched against product fields.</ParamField>+<ParamField query="id" type="string | string[]">Filter by product ID(s).</ParamField>+<ParamField query="title" type="string">Filter by product title.</ParamField>+<ParamField query="handle" type="string">Filter by product handle.</ParamField>+<ParamField query="seller_id" type="string | string[]">Filter by the seller(s) eligible to sell the product.</ParamField>+<ParamField query="status" type="string[]">Filter by status: `draft`, `proposed`, `published`, or `rejected`.</ParamField>+<ParamField query="collection_id" type="string | string[]">Filter by collection ID(s).</ParamField>+<ParamField query="type_id" type="string | string[]">Filter by product type ID(s).</ParamField>+<ParamField query="category_id" type="string | string[]">Filter by category ID(s).</ParamField>+<ParamField query="tag_id" type="string | string[]">Filter by tag ID(s).</ParamField>+<ParamField query="sku" type="string">Filter by variant SKU.</ParamField>+<ParamField query="ean" type="string">Filter by variant EAN.</ParamField>+<ParamField query="upc" type="string">Filter by variant UPC.</ParamField>+<ParamField query="barcode" type="string">Filter by variant barcode.</ParamField>+<ParamField query="has_offer" type="boolean">Filter to products that have (or don't have) seller offers.</ParamField>+<ParamField query="created_at" type="object">Filter by creation date with operators like `$gte`, `$lte`.</ParamField>+<ParamField query="updated_at" type="object">Filter by update date with operators like `$gte`, `$lte`.</ParamField>+<ParamField query="deleted_at" type="object">Filter by deletion date with operators like `$gte`, `$lte`.</ParamField>++## Response++<ResponseField name="products" type="object[]">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The product's ID.</ResponseField>+ <ResponseField name="title" type="string">Product title.</ResponseField>+ <ResponseField name="subtitle" type="string">Product subtitle.</ResponseField>+ <ResponseField name="status" type="string">One of `draft`, `proposed`, `published`, `rejected`.</ResponseField>+ <ResponseField name="description" type="string">Product description.</ResponseField>+ <ResponseField name="handle" type="string">Unique URL-safe handle.</ResponseField>+ <ResponseField name="is_giftcard" type="boolean">Whether the product is a gift card.</ResponseField>+ <ResponseField name="discountable" type="boolean">Whether discounts can apply to the product.</ResponseField>+ <ResponseField name="thumbnail" type="string">URL of the product thumbnail.</ResponseField>+ <ResponseField name="external_id" type="string">ID of the product in an external system.</ResponseField>+ <ResponseField name="collection_id" type="string">ID of the product's collection.</ResponseField>+ <ResponseField name="type_id" type="string">ID of the product's type.</ResponseField>+ <ResponseField name="collection" type="object">The collection with `id`, `title`, and `handle`.</ResponseField>+ <ResponseField name="categories" type="object[]">Categories with `id`, `name`, and `handle`.</ResponseField>+ <ResponseField name="variants" type="object[]">Variants with `id`, `title`, `sku`, `manage_inventory`, `allow_backorder`, and `variant_rank`.</ResponseField>+ <ResponseField name="product_attribute_values" type="object[]">Attribute values selected on the product, each with its parent `attribute`.</ResponseField>+ <ResponseField name="scoped_attributes" type="object[]">Product-scoped (inline) attributes with their `values`.</ResponseField>+ <ResponseField name="attributes" type="object[]">Computed attribute groups, each with the selected `values` and the attribute's full `all_values`.</ResponseField>+ <ResponseField name="weight" type="number">Product weight.</ResponseField>+ <ResponseField name="length" type="number">Product length.</ResponseField>+ <ResponseField name="height" type="number">Product height.</ResponseField>+ <ResponseField name="width" type="number">Product width.</ResponseField>+ <ResponseField name="hs_code" type="string">Harmonized System code.</ResponseField>+ <ResponseField name="mid_code" type="string">Manufacturer identification code.</ResponseField>+ <ResponseField name="origin_country" type="string">Country of origin.</ResponseField>+ <ResponseField name="material" type="string">Product material.</ResponseField>+ <ResponseField name="metadata" type="object">Custom key-value data.</ResponseField>+ <ResponseField name="created_at" type="string">Creation timestamp.</ResponseField>+ <ResponseField name="updated_at" type="string">Last update timestamp.</ResponseField>+ </Expandable>+</ResponseField>+<ResponseField name="count" type="number">Total number of matching products.</ResponseField>+<ResponseField name="offset" type="number">Number of records skipped.</ResponseField>+<ResponseField name="limit" type="number">Number of records returned.</ResponseField>++<RequestExample>+```bash cURL+curl 'http://localhost:9000/admin/products?status[]=published&limit=20' \+ -H 'Authorization: Bearer <token>'+```++```ts JS Client+const { products, count } = await client.admin.products.query({+ status: ["published"],+ limit: 20,+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "products": [+ {+ "id": "prod_01HXYZABCDEF",+ "title": "Linen Shirt",+ "handle": "linen-shirt",+ "status": "published",+ "thumbnail": "https://cdn.example.com/linen-shirt.png",+ "variants": [+ { "id": "variant_01HXYZABCDEF", "title": "M", "sku": "LS-M", "variant_rank": 0 }+ ],+ "created_at": "2026-06-01T10:00:00.000Z",+ "updated_at": "2026-06-01T10:00:00.000Z"+ }+ ],+ "count": 1,+ "offset": 0,+ "limit": 20+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/admin/products/preview-product.mdx b/apps/docs/rc/references/api/admin/products/preview-product.mdxnew file mode 100644index 000000000..dd4b07a68--- /dev/null+++ b/apps/docs/rc/references/api/admin/products/preview-product.mdx@@ -0,0 +1,78 @@+---+title: "Preview Product Changes"+api: "GET /admin/products/{id}/preview"+description: "Retrieve the pending change set for a product."+---++Returns the product's pending change request with its individual change actions, or `null` if no change is pending.++<Note>+The response contains the pending `product_change` record and its `actions` — the raw edits awaiting review — not a merged product payload.+</Note>++## Path parameters++<ParamField path="id" type="string" required>The product's ID.</ParamField>++## Response++<ResponseField name="product_change" type="object | null">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The product change's ID.</ResponseField>+ <ResponseField name="product_id" type="string">ID of the product the change applies to.</ResponseField>+ <ResponseField name="status" type="string">Always `pending` for this endpoint.</ResponseField>+ <ResponseField name="internal_note" type="string">Note visible to operators only.</ResponseField>+ <ResponseField name="external_note" type="string">Note visible to the vendor.</ResponseField>+ <ResponseField name="created_by" type="string">ID of the actor who created the change.</ResponseField>+ <ResponseField name="actions" type="object[]">+ Individual change actions, in order.+ <Expandable title="properties">+ <ResponseField name="id" type="string">The action's ID.</ResponseField>+ <ResponseField name="action" type="string">The action type.</ResponseField>+ <ResponseField name="ordering" type="number">Application order of the action.</ResponseField>+ <ResponseField name="details" type="object">The proposed field changes.</ResponseField>+ <ResponseField name="applied" type="boolean">Whether the action has been applied.</ResponseField>+ </Expandable>+ </ResponseField>+ <ResponseField name="created_at" type="string">Creation timestamp.</ResponseField>+ <ResponseField name="updated_at" type="string">Last update timestamp.</ResponseField>+ </Expandable>+</ResponseField>++<RequestExample>+```bash cURL+curl 'http://localhost:9000/admin/products/prod_01HXYZABCDEF/preview' \+ -H 'Authorization: Bearer <token>'+```++```ts JS Client+const { product_change } = await client.admin.products.$id.preview.query({+ $id: "prod_01HXYZABCDEF",+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "product_change": {+ "id": "prodch_01HXYZABCDEF",+ "product_id": "prod_01HXYZABCDEF",+ "status": "pending",+ "internal_note": null,+ "external_note": null,+ "actions": [+ {+ "id": "prodchact_01HXYZABCDEF",+ "action": "update_product",+ "ordering": 0,+ "details": { "title": "Linen Shirt v2" },+ "applied": false+ }+ ],+ "created_at": "2026-06-01T10:00:00.000Z",+ "updated_at": "2026-06-01T10:00:00.000Z"+ }+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/admin/products/reject-product.mdx b/apps/docs/rc/references/api/admin/products/reject-product.mdxnew file mode 100644index 000000000..304799715--- /dev/null+++ b/apps/docs/rc/references/api/admin/products/reject-product.mdx@@ -0,0 +1,59 @@+---+title: "Reject Product"+api: "POST /admin/products/{id}/reject"+description: "Reject a proposed product."+---++Rejects the product's publish request and returns the updated product.++## Path parameters++<ParamField path="id" type="string" required>The product's ID.</ParamField>++## Query parameters++<ParamField query="fields" type="string">Comma-separated list of fields to include, prefix with `+`/`-` to add or remove from defaults.</ParamField>++## Body parameters++<ParamField body="message" type="string">Rejection reason shared with the vendor.</ParamField>++## Response++<ResponseField name="product" type="object">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The product's ID.</ResponseField>+ <ResponseField name="title" type="string">Product title.</ResponseField>+ <ResponseField name="status" type="string">Product status after rejection.</ResponseField>+ <ResponseField name="updated_at" type="string">Last update timestamp.</ResponseField>+ </Expandable>+</ResponseField>++<RequestExample>+```bash cURL+curl -X POST 'http://localhost:9000/admin/products/prod_01HXYZABCDEF/reject' \+ -H 'Authorization: Bearer <token>' \+ -H 'Content-Type: application/json' \+ -d '{"message": "Images are too low resolution"}'+```++```ts JS Client+const { product } = await client.admin.products.$id.reject.mutate({+ $id: "prod_01HXYZABCDEF",+ message: "Images are too low resolution",+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "product": {+ "id": "prod_01HXYZABCDEF",+ "title": "Linen Shirt",+ "status": "rejected",+ "updated_at": "2026-06-02T09:00:00.000Z"+ }+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/admin/products/request-product-changes.mdx b/apps/docs/rc/references/api/admin/products/request-product-changes.mdxnew file mode 100644index 000000000..dd9a5cba4--- /dev/null+++ b/apps/docs/rc/references/api/admin/products/request-product-changes.mdx@@ -0,0 +1,59 @@+---+title: "Request Product Changes"+api: "POST /admin/products/{id}/request-changes"+description: "Ask the vendor to revise a product before it can be published."+---++Flags the product as requiring action and records a message for the vendor.++## Path parameters++<ParamField path="id" type="string" required>The product's ID.</ParamField>++## Query parameters++<ParamField query="fields" type="string">Comma-separated list of fields to include, prefix with `+`/`-` to add or remove from defaults.</ParamField>++## Body parameters++<ParamField body="message" type="string">Message describing the requested changes, shared with the vendor.</ParamField>++## Response++<ResponseField name="product" type="object">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The product's ID.</ResponseField>+ <ResponseField name="title" type="string">Product title.</ResponseField>+ <ResponseField name="status" type="string">Current product status.</ResponseField>+ <ResponseField name="updated_at" type="string">Last update timestamp.</ResponseField>+ </Expandable>+</ResponseField>++<RequestExample>+```bash cURL+curl -X POST 'http://localhost:9000/admin/products/prod_01HXYZABCDEF/request-changes' \+ -H 'Authorization: Bearer <token>' \+ -H 'Content-Type: application/json' \+ -d '{"message": "Please add size measurements to the description"}'+```++```ts JS Client+const { product } = await client.admin.products.$id.requestChanges.mutate({+ $id: "prod_01HXYZABCDEF",+ message: "Please add size measurements to the description",+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "product": {+ "id": "prod_01HXYZABCDEF",+ "title": "Linen Shirt",+ "status": "proposed",+ "updated_at": "2026-06-02T09:00:00.000Z"+ }+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/admin/products/retrieve-product-variant.mdx b/apps/docs/rc/references/api/admin/products/retrieve-product-variant.mdxnew file mode 100644index 000000000..bcd04243e--- /dev/null+++ b/apps/docs/rc/references/api/admin/products/retrieve-product-variant.mdx@@ -0,0 +1,73 @@+---+title: "Retrieve Product Variant"+api: "GET /admin/products/{id}/variants/{variant_id}"+description: "Retrieve a single variant of a product."+---++Returns one variant scoped to the given product.++## Path parameters++<ParamField path="id" type="string" required>The product's ID.</ParamField>+<ParamField path="variant_id" type="string" required>The variant's ID.</ParamField>++## Query parameters++<ParamField query="fields" type="string">Comma-separated list of fields to include, prefix with `+`/`-` to add or remove from defaults.</ParamField>++## Response++<ResponseField name="variant" type="object">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The variant's ID.</ResponseField>+ <ResponseField name="title" type="string">Variant title.</ResponseField>+ <ResponseField name="sku" type="string">Variant SKU.</ResponseField>+ <ResponseField name="ean" type="string">Variant EAN.</ResponseField>+ <ResponseField name="upc" type="string">Variant UPC.</ResponseField>+ <ResponseField name="barcode" type="string">Variant barcode.</ResponseField>+ <ResponseField name="variant_rank" type="number">Sort rank of the variant.</ResponseField>+ <ResponseField name="weight" type="number">Variant weight.</ResponseField>+ <ResponseField name="length" type="number">Variant length.</ResponseField>+ <ResponseField name="height" type="number">Variant height.</ResponseField>+ <ResponseField name="width" type="number">Variant width.</ResponseField>+ <ResponseField name="origin_country" type="string">Country of origin.</ResponseField>+ <ResponseField name="material" type="string">Variant material.</ResponseField>+ <ResponseField name="product_id" type="string">ID of the parent product.</ResponseField>+ <ResponseField name="manage_inventory" type="boolean">Whether inventory is tracked for the variant.</ResponseField>+ <ResponseField name="allow_backorder" type="boolean">Whether the variant can be ordered when out of stock.</ResponseField>+ <ResponseField name="options" type="object[]">The variant's option values.</ResponseField>+ <ResponseField name="metadata" type="object">Custom key-value data.</ResponseField>+ <ResponseField name="created_at" type="string">Creation timestamp.</ResponseField>+ <ResponseField name="updated_at" type="string">Last update timestamp.</ResponseField>+ </Expandable>+</ResponseField>++<RequestExample>+```bash cURL+curl 'http://localhost:9000/admin/products/prod_01HXYZABCDEF/variants/variant_01HXYZABCDEF' \+ -H 'Authorization: Bearer <token>'+```++```ts JS Client+const { variant } = await client.admin.products.$id.variants.$variant_id.query({+ $id: "prod_01HXYZABCDEF",+ $variant_id: "variant_01HXYZABCDEF",+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "variant": {+ "id": "variant_01HXYZABCDEF",+ "title": "M",+ "sku": "LS-M",+ "product_id": "prod_01HXYZABCDEF",+ "manage_inventory": false,+ "allow_backorder": false,+ "variant_rank": 0+ }+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/admin/products/retrieve-product.mdx b/apps/docs/rc/references/api/admin/products/retrieve-product.mdxnew file mode 100644index 000000000..9f2fc3cc7--- /dev/null+++ b/apps/docs/rc/references/api/admin/products/retrieve-product.mdx@@ -0,0 +1,96 @@+---+title: "Retrieve Product"+api: "GET /admin/products/{id}"+description: "Retrieve a master catalog product by ID."+---++Returns a single product with its variants, attribute values, and product-scoped attributes.++## Path parameters++<ParamField path="id" type="string" required>The product's ID.</ParamField>++## Query parameters++<ParamField query="fields" type="string">Comma-separated list of fields to include, prefix with `+`/`-` to add or remove from defaults.</ParamField>+<ParamField query="seller_id" type="string">Scope offer data (when requested via `fields`) to a single seller.</ParamField>++## Response++<ResponseField name="product" type="object">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The product's ID.</ResponseField>+ <ResponseField name="title" type="string">Product title.</ResponseField>+ <ResponseField name="subtitle" type="string">Product subtitle.</ResponseField>+ <ResponseField name="status" type="string">One of `draft`, `proposed`, `published`, `rejected`.</ResponseField>+ <ResponseField name="description" type="string">Product description.</ResponseField>+ <ResponseField name="handle" type="string">Unique URL-safe handle.</ResponseField>+ <ResponseField name="is_giftcard" type="boolean">Whether the product is a gift card.</ResponseField>+ <ResponseField name="discountable" type="boolean">Whether discounts can apply to the product.</ResponseField>+ <ResponseField name="thumbnail" type="string">URL of the product thumbnail.</ResponseField>+ <ResponseField name="collection" type="object">The collection with `id`, `title`, and `handle`.</ResponseField>+ <ResponseField name="categories" type="object[]">Categories with `id`, `name`, and `handle`.</ResponseField>+ <ResponseField name="variants" type="object[]">Variants with `id`, `title`, `sku`, `manage_inventory`, `allow_backorder`, and `variant_rank`.</ResponseField>+ <ResponseField name="product_attribute_values" type="object[]">+ Attribute values selected on the product.+ <Expandable title="properties">+ <ResponseField name="id" type="string">The value's ID.</ResponseField>+ <ResponseField name="name" type="string">Value name.</ResponseField>+ <ResponseField name="rank" type="number">Sort rank.</ResponseField>+ <ResponseField name="attribute" type="object">The parent attribute with `id`, `name`, `handle`, `type`, `is_variant_axis`, `is_required`, `rank`, and its full `values` list.</ResponseField>+ </Expandable>+ </ResponseField>+ <ResponseField name="scoped_attributes" type="object[]">+ Product-scoped (inline) attributes.+ <Expandable title="properties">+ <ResponseField name="id" type="string">The attribute's ID.</ResponseField>+ <ResponseField name="name" type="string">Attribute name.</ResponseField>+ <ResponseField name="handle" type="string">Attribute handle.</ResponseField>+ <ResponseField name="type" type="string">One of `single_select`, `multi_select`, `unit`, `toggle`, `text`.</ResponseField>+ <ResponseField name="is_variant_axis" type="boolean">Whether the attribute drives variant generation.</ResponseField>+ <ResponseField name="values" type="object[]">Values with `id`, `name`, and `rank`.</ResponseField>+ </Expandable>+ </ResponseField>+ <ResponseField name="attributes" type="object[]">Computed attribute groups, each with the selected `values` and the attribute's full `all_values`.</ResponseField>+ <ResponseField name="metadata" type="object">Custom key-value data.</ResponseField>+ <ResponseField name="created_at" type="string">Creation timestamp.</ResponseField>+ <ResponseField name="updated_at" type="string">Last update timestamp.</ResponseField>+ </Expandable>+</ResponseField>++<RequestExample>+```bash cURL+curl 'http://localhost:9000/admin/products/prod_01HXYZABCDEF' \+ -H 'Authorization: Bearer <token>'+```++```ts JS Client+const { product } = await client.admin.products.$id.query({+ $id: "prod_01HXYZABCDEF",+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "product": {+ "id": "prod_01HXYZABCDEF",+ "title": "Linen Shirt",+ "handle": "linen-shirt",+ "status": "published",+ "variants": [+ { "id": "variant_01HXYZABCDEF", "title": "M", "sku": "LS-M", "variant_rank": 0 }+ ],+ "product_attribute_values": [+ {+ "id": "pattrval_01HXYZABCDEF",+ "name": "Linen",+ "attribute": { "id": "pattr_01HXYZABCDEF", "name": "Material", "type": "single_select" }+ }+ ],+ "scoped_attributes": []+ }+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/admin/products/set-product-sellers.mdx b/apps/docs/rc/references/api/admin/products/set-product-sellers.mdxnew file mode 100644index 000000000..a27f5384d--- /dev/null+++ b/apps/docs/rc/references/api/admin/products/set-product-sellers.mdx@@ -0,0 +1,47 @@+---+title: "Set Product Sellers"+api: "POST /admin/products/{id}/sellers"+description: "Manage which sellers are eligible to sell a product."+---++Links or unlinks sellers from the product to control selling eligibility.++## Path parameters++<ParamField path="id" type="string" required>The product's ID.</ParamField>++## Body parameters++<ParamField body="add" type="string[]">IDs of sellers to link to the product.</ParamField>+<ParamField body="remove" type="string[]">IDs of sellers to unlink from the product.</ParamField>++## Response++<ResponseField name="id" type="string">The product's ID.</ResponseField>+<ResponseField name="object" type="string">Always `product`.</ResponseField>++<RequestExample>+```bash cURL+curl -X POST 'http://localhost:9000/admin/products/prod_01HXYZABCDEF/sellers' \+ -H 'Authorization: Bearer <token>' \+ -H 'Content-Type: application/json' \+ -d '{"add": ["sel_01HXYZABCDEF"], "remove": ["sel_01HXYZABCDEG"]}'+```++```ts JS Client+const result = await client.admin.products.$id.sellers.mutate({+ $id: "prod_01HXYZABCDEF",+ add: ["sel_01HXYZABCDEF"],+ remove: ["sel_01HXYZABCDEG"],+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "id": "prod_01HXYZABCDEF",+ "object": "product"+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/admin/products/update-product-variant.mdx b/apps/docs/rc/references/api/admin/products/update-product-variant.mdxnew file mode 100644index 000000000..d7c2f0813--- /dev/null+++ b/apps/docs/rc/references/api/admin/products/update-product-variant.mdx@@ -0,0 +1,89 @@+---+title: "Update Product Variant"+api: "POST /admin/products/{id}/variants/{variant_id}"+description: "Update a variant of a product."+---++Updates the variant and returns the parent product.++## Path parameters++<ParamField path="id" type="string" required>The product's ID.</ParamField>+<ParamField path="variant_id" type="string" required>The variant's ID.</ParamField>++## Body parameters++<ParamField body="title" type="string">Variant title.</ParamField>+<ParamField body="sku" type="string">Variant SKU.</ParamField>+<ParamField body="ean" type="string">Variant EAN.</ParamField>+<ParamField body="upc" type="string">Variant UPC.</ParamField>+<ParamField body="isbn" type="string">Variant ISBN.</ParamField>+<ParamField body="asin" type="string">Variant ASIN.</ParamField>+<ParamField body="gtin" type="string">Variant GTIN.</ParamField>+<ParamField body="barcode" type="string">Variant barcode.</ParamField>+<ParamField body="hs_code" type="string">Harmonized System code.</ParamField>+<ParamField body="mid_code" type="string">Manufacturer identification code.</ParamField>+<ParamField body="thumbnail" type="string">URL of the variant thumbnail.</ParamField>+<ParamField body="variant_rank" type="number">Sort rank of the variant.</ParamField>+<ParamField body="weight" type="number">Variant weight.</ParamField>+<ParamField body="length" type="number">Variant length.</ParamField>+<ParamField body="height" type="number">Variant height.</ParamField>+<ParamField body="width" type="number">Variant width.</ParamField>+<ParamField body="origin_country" type="string">Country of origin.</ParamField>+<ParamField body="material" type="string">Variant material.</ParamField>+<ParamField body="prices" type="object[]">+ Variant prices.+ <Expandable title="properties">+ <ParamField body="id" type="string">Existing price ID to update.</ParamField>+ <ParamField body="currency_code" type="string">Price currency code.</ParamField>+ <ParamField body="amount" type="number">Price amount.</ParamField>+ <ParamField body="min_quantity" type="number">Minimum quantity for the price to apply.</ParamField>+ <ParamField body="max_quantity" type="number">Maximum quantity for the price to apply.</ParamField>+ <ParamField body="rules" type="object">Map of rule attribute to value.</ParamField>+ </Expandable>+</ParamField>+<ParamField body="options" type="object">Map of option title to option value.</ParamField>+<ParamField body="metadata" type="object">Custom key-value data.</ParamField>+<ParamField body="additional_data" type="object">Custom data passed to workflow hooks.</ParamField>++## Response++<ResponseField name="product" type="object">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The product's ID.</ResponseField>+ <ResponseField name="title" type="string">Product title.</ResponseField>+ <ResponseField name="variants" type="object[]">All variants, including the updated one.</ResponseField>+ <ResponseField name="updated_at" type="string">Last update timestamp.</ResponseField>+ </Expandable>+</ResponseField>++<RequestExample>+```bash cURL+curl -X POST 'http://localhost:9000/admin/products/prod_01HXYZABCDEF/variants/variant_01HXYZABCDEF' \+ -H 'Authorization: Bearer <token>' \+ -H 'Content-Type: application/json' \+ -d '{"sku": "LS-M-2026"}'+```++```ts JS Client+const { product } = await client.admin.products.$id.variants.$variant_id.mutate({+ $id: "prod_01HXYZABCDEF",+ $variant_id: "variant_01HXYZABCDEF",+ sku: "LS-M-2026",+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "product": {+ "id": "prod_01HXYZABCDEF",+ "title": "Linen Shirt",+ "variants": [+ { "id": "variant_01HXYZABCDEF", "title": "M", "sku": "LS-M-2026" }+ ]+ }+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/admin/products/update-product.mdx b/apps/docs/rc/references/api/admin/products/update-product.mdxnew file mode 100644index 000000000..c1ac8755a--- /dev/null+++ b/apps/docs/rc/references/api/admin/products/update-product.mdx@@ -0,0 +1,133 @@+---+title: "Update Product"+api: "POST /admin/products/{id}"+description: "Update a master catalog product."+---++Updates the product's details; only the provided fields are changed.++## Path parameters++<ParamField path="id" type="string" required>The product's ID.</ParamField>++## Body parameters++<ParamField body="title" type="string">Product title.</ParamField>+<ParamField body="subtitle" type="string">Product subtitle.</ParamField>+<ParamField body="description" type="string">Product description.</ParamField>+<ParamField body="handle" type="string">Unique URL-safe handle.</ParamField>+<ParamField body="status" type="string">One of `draft`, `proposed`, `published`, `rejected`.</ParamField>+<ParamField body="is_giftcard" type="boolean">Whether the product is a gift card.</ParamField>+<ParamField body="discountable" type="boolean">Whether discounts can apply to the product.</ParamField>+<ParamField body="thumbnail" type="string">URL of the product thumbnail.</ParamField>+<ParamField body="images" type="object[]">+ Product images; replaces the existing set.+ <Expandable title="properties">+ <ParamField body="id" type="string">Existing image ID to keep.</ParamField>+ <ParamField body="url" type="string" required>Image URL.</ParamField>+ </Expandable>+</ParamField>+<ParamField body="external_id" type="string">ID of the product in an external system.</ParamField>+<ParamField body="type_id" type="string">ID of the product type.</ParamField>+<ParamField body="collection_id" type="string">ID of the collection to assign the product to.</ParamField>+<ParamField body="categories" type="object[]">+ Categories to assign; replaces the existing set.+ <Expandable title="properties">+ <ParamField body="id" type="string" required>Category ID.</ParamField>+ </Expandable>+</ParamField>+<ParamField body="tags" type="object[]">+ Tags to assign; replaces the existing set.+ <Expandable title="properties">+ <ParamField body="id" type="string" required>Tag ID.</ParamField>+ </Expandable>+</ParamField>+<ParamField body="options" type="object[]">+ Product options; replaces the existing set.+ <Expandable title="properties">+ <ParamField body="title" type="string" required>Option title.</ParamField>+ <ParamField body="values" type="string[]" required>Possible option values.</ParamField>+ </Expandable>+</ParamField>+<ParamField body="variants" type="object[]">+ Variants to upsert; include `id` to update an existing variant.+ <Expandable title="properties">+ <ParamField body="id" type="string">Existing variant ID.</ParamField>+ <ParamField body="title" type="string">Variant title.</ParamField>+ <ParamField body="sku" type="string">Variant SKU.</ParamField>+ <ParamField body="ean" type="string">Variant EAN.</ParamField>+ <ParamField body="upc" type="string">Variant UPC.</ParamField>+ <ParamField body="isbn" type="string">Variant ISBN.</ParamField>+ <ParamField body="asin" type="string">Variant ASIN.</ParamField>+ <ParamField body="gtin" type="string">Variant GTIN.</ParamField>+ <ParamField body="barcode" type="string">Variant barcode.</ParamField>+ <ParamField body="hs_code" type="string">Harmonized System code.</ParamField>+ <ParamField body="mid_code" type="string">Manufacturer identification code.</ParamField>+ <ParamField body="thumbnail" type="string">URL of the variant thumbnail.</ParamField>+ <ParamField body="variant_rank" type="number">Sort rank of the variant.</ParamField>+ <ParamField body="weight" type="number">Variant weight.</ParamField>+ <ParamField body="length" type="number">Variant length.</ParamField>+ <ParamField body="height" type="number">Variant height.</ParamField>+ <ParamField body="width" type="number">Variant width.</ParamField>+ <ParamField body="origin_country" type="string">Country of origin.</ParamField>+ <ParamField body="material" type="string">Variant material.</ParamField>+ <ParamField body="prices" type="object[]">Prices with `id`, `currency_code`, `amount`, `min_quantity`, `max_quantity`, and `rules`.</ParamField>+ <ParamField body="options" type="object">Map of option title to option value.</ParamField>+ <ParamField body="metadata" type="object">Custom key-value data.</ParamField>+ </Expandable>+</ParamField>+<ParamField body="weight" type="number">Product weight.</ParamField>+<ParamField body="length" type="number">Product length.</ParamField>+<ParamField body="height" type="number">Product height.</ParamField>+<ParamField body="width" type="number">Product width.</ParamField>+<ParamField body="hs_code" type="string">Harmonized System code.</ParamField>+<ParamField body="mid_code" type="string">Manufacturer identification code.</ParamField>+<ParamField body="origin_country" type="string">Country of origin.</ParamField>+<ParamField body="material" type="string">Product material.</ParamField>+<ParamField body="metadata" type="object">Custom key-value data.</ParamField>+<ParamField body="additional_data" type="object">Custom data passed to workflow hooks.</ParamField>++## Response++<ResponseField name="product" type="object">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The product's ID.</ResponseField>+ <ResponseField name="title" type="string">Product title.</ResponseField>+ <ResponseField name="status" type="string">One of `draft`, `proposed`, `published`, `rejected`.</ResponseField>+ <ResponseField name="variants" type="object[]">Product variants.</ResponseField>+ <ResponseField name="product_attribute_values" type="object[]">Attribute values selected on the product.</ResponseField>+ <ResponseField name="scoped_attributes" type="object[]">Product-scoped (inline) attributes.</ResponseField>+ <ResponseField name="updated_at" type="string">Last update timestamp.</ResponseField>+ </Expandable>+</ResponseField>++<RequestExample>+```bash cURL+curl -X POST 'http://localhost:9000/admin/products/prod_01HXYZABCDEF' \+ -H 'Authorization: Bearer <token>' \+ -H 'Content-Type: application/json' \+ -d '{"title": "Linen Shirt v2", "status": "published"}'+```++```ts JS Client+const { product } = await client.admin.products.$id.mutate({+ $id: "prod_01HXYZABCDEF",+ title: "Linen Shirt v2",+ status: "published",+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "product": {+ "id": "prod_01HXYZABCDEF",+ "title": "Linen Shirt v2",+ "handle": "linen-shirt",+ "status": "published",+ "updated_at": "2026-06-02T09:00:00.000Z"+ }+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/admin/sellers/add-seller-member.mdx b/apps/docs/rc/references/api/admin/sellers/add-seller-member.mdxnew file mode 100644index 000000000..66781e35c--- /dev/null+++ b/apps/docs/rc/references/api/admin/sellers/add-seller-member.mdx@@ -0,0 +1,63 @@+---+title: "Add Seller Member"+api: "POST /admin/sellers/{id}/members"+description: "Add an existing member to a seller's team."+---++Links an existing member to the seller with the given role.++<Note>+To add someone who does not have a member record yet, use [Invite Seller Member](/rc/references/api/admin/sellers/invite-seller-member) instead.+</Note>++## Path parameters++<ParamField path="id" type="string" required>The seller's ID.</ParamField>++## Body parameters++<ParamField body="member_id" type="string" required>ID of the existing member to add.</ParamField>+<ParamField body="role_id" type="string" required>ID of the role to assign.</ParamField>++## Response++<ResponseField name="seller_member" type="object">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The seller member's ID.</ResponseField>+ <ResponseField name="seller_id" type="string">ID of the seller.</ResponseField>+ <ResponseField name="member_id" type="string">ID of the linked member.</ResponseField>+ <ResponseField name="is_owner" type="boolean">Whether this member owns the seller account.</ResponseField>+ <ResponseField name="created_at" type="string">Creation timestamp.</ResponseField>+ </Expandable>+</ResponseField>++<RequestExample>+```bash cURL+curl -X POST 'http://localhost:9000/admin/sellers/sel_01HXYZABCDEF/members' \+ -H 'Authorization: Bearer <token>' \+ -H 'Content-Type: application/json' \+ -d '{"member_id": "mem_01HXYZMEMBB", "role_id": "role_01HXYZROLEAA"}'+```++```ts JS Client+const { seller_member } = await client.admin.sellers.$id.members.mutate({+ $id: "sel_01HXYZABCDEF",+ member_id: "mem_01HXYZMEMBB",+ role_id: "role_01HXYZROLEAA",+})+```+</RequestExample>++<ResponseExample>+```json 201+{+ "seller_member": {+ "id": "selmem_01HXYZSMBB",+ "seller_id": "sel_01HXYZABCDEF",+ "member_id": "mem_01HXYZMEMBB",+ "is_owner": false,+ "created_at": "2026-06-15T09:00:00.000Z"+ }+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/admin/sellers/approve-seller.mdx b/apps/docs/rc/references/api/admin/sellers/approve-seller.mdxnew file mode 100644index 000000000..eacb381b4--- /dev/null+++ b/apps/docs/rc/references/api/admin/sellers/approve-seller.mdx@@ -0,0 +1,54 @@+---+title: "Approve Seller"+api: "POST /admin/sellers/{id}/approve"+description: "Approve a pending seller."+---++Moves the seller from `pending_approval` to `open` and sets `approved_at`.++## Path parameters++<ParamField path="id" type="string" required>The seller's ID.</ParamField>++## Query parameters++<ParamField query="fields" type="string">Comma-separated list of fields to include, prefix with `+`/`-` to add or remove from defaults.</ParamField>++## Response++<ResponseField name="seller" type="object">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The seller's ID.</ResponseField>+ <ResponseField name="status" type="string">The seller's status, `open` after approval.</ResponseField>+ <ResponseField name="approved_at" type="string">When the seller was approved.</ResponseField>+ <ResponseField name="updated_at" type="string">Last update timestamp.</ResponseField>+ </Expandable>+</ResponseField>++<RequestExample>+```bash cURL+curl -X POST 'http://localhost:9000/admin/sellers/sel_01HXYZABCDEF/approve' \+ -H 'Authorization: Bearer <token>'+```++```ts JS Client+const { seller } = await client.admin.sellers.$id.approve.mutate({+ $id: "sel_01HXYZABCDEF",+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "seller": {+ "id": "sel_01HXYZABCDEF",+ "name": "Acme",+ "handle": "acme",+ "status": "open",+ "approved_at": "2026-06-02T09:30:00.000Z",+ "updated_at": "2026-06-02T09:30:00.000Z"+ }+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/admin/sellers/create-seller.mdx b/apps/docs/rc/references/api/admin/sellers/create-seller.mdxnew file mode 100644index 000000000..510dac2a9--- /dev/null+++ b/apps/docs/rc/references/api/admin/sellers/create-seller.mdx@@ -0,0 +1,100 @@+---+title: "Create Seller"+api: "POST /admin/sellers"+description: "Create a new seller account."+---++Creates a seller and its initial owner member.++<Note>+The `member.email` must belong to an existing or invited user; the seller is created with status `pending_approval` unless a `status` is provided.+</Note>++## Query parameters++<ParamField query="fields" type="string">Comma-separated list of fields to include, prefix with `+`/`-` to add or remove from defaults.</ParamField>++## Body parameters++<ParamField body="name" type="string" required>Display name of the seller.</ParamField>+<ParamField body="email" type="string" required>Contact email of the seller.</ParamField>+<ParamField body="currency_code" type="string" required>The seller's currency code.</ParamField>+<ParamField body="member" type="object" required>+ The initial owner member of the seller.+ <Expandable title="properties">+ <ParamField body="email" type="string" required>Email of the owner member.</ParamField>+ </Expandable>+</ParamField>+<ParamField body="handle" type="string">Unique URL-safe handle, generated from the name if omitted.</ParamField>+<ParamField body="phone" type="string">Contact phone number.</ParamField>+<ParamField body="description" type="string">Seller description.</ParamField>+<ParamField body="logo" type="string">URL of the seller's logo.</ParamField>+<ParamField body="banner" type="string">URL of the seller's banner image.</ParamField>+<ParamField body="website_url" type="string">The seller's website URL.</ParamField>+<ParamField body="external_id" type="string">ID of the seller in an external system.</ParamField>+<ParamField body="status" type="string" default="pending_approval">One of `open`, `pending_approval`, `suspended`, `terminated`.</ParamField>+<ParamField body="status_reason" type="string">Reason recorded with the status.</ParamField>+<ParamField body="is_premium" type="boolean">Whether the seller is marked as premium.</ParamField>+<ParamField body="closed_from" type="string">Start of a temporary store closure.</ParamField>+<ParamField body="closed_to" type="string">End of a temporary store closure.</ParamField>+<ParamField body="closure_note" type="string">Note shown while the store is closed.</ParamField>+<ParamField body="metadata" type="object">Custom key-value data.</ParamField>+<ParamField body="additional_data" type="object">Extra data passed to workflow hooks.</ParamField>++## Response++<ResponseField name="seller" type="object">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The seller's ID.</ResponseField>+ <ResponseField name="name" type="string">Display name of the seller.</ResponseField>+ <ResponseField name="handle" type="string">Unique URL-safe handle.</ResponseField>+ <ResponseField name="email" type="string">Contact email of the seller.</ResponseField>+ <ResponseField name="currency_code" type="string">The seller's currency code.</ResponseField>+ <ResponseField name="status" type="string">One of `open`, `pending_approval`, `suspended`, `terminated`.</ResponseField>+ <ResponseField name="is_premium" type="boolean">Whether the seller is marked as premium.</ResponseField>+ <ResponseField name="members" type="object[]">The seller's members.</ResponseField>+ <ResponseField name="created_at" type="string">Creation timestamp.</ResponseField>+ <ResponseField name="updated_at" type="string">Last update timestamp.</ResponseField>+ </Expandable>+</ResponseField>++<RequestExample>+```bash cURL+curl -X POST 'http://localhost:9000/admin/sellers' \+ -H 'Authorization: Bearer <token>' \+ -H 'Content-Type: application/json' \+ -d '{+ "name": "Acme",+ "email": "[email protected]",+ "currency_code": "usd",+ "member": { "email": "[email protected]" }+ }'+```++```ts JS Client+const { seller } = await client.admin.sellers.mutate({+ name: "Acme",+ email: "[email protected]",+ currency_code: "usd",+ member: { email: "[email protected]" },+})+```+</RequestExample>++<ResponseExample>+```json 201+{+ "seller": {+ "id": "sel_01HXYZABCDEF",+ "name": "Acme",+ "handle": "acme",+ "email": "[email protected]",+ "currency_code": "usd",+ "status": "pending_approval",+ "is_premium": false,+ "created_at": "2026-06-01T10:00:00.000Z",+ "updated_at": "2026-06-01T10:00:00.000Z"+ }+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/admin/sellers/delete-member-invite.mdx b/apps/docs/rc/references/api/admin/sellers/delete-member-invite.mdxnew file mode 100644index 000000000..abd237cc4--- /dev/null+++ b/apps/docs/rc/references/api/admin/sellers/delete-member-invite.mdx@@ -0,0 +1,42 @@+---+title: "Delete Member Invite"+api: "DELETE /admin/sellers/{id}/members/invites/{invite_id}"+description: "Delete a seller's member invite."+---++Deletes a pending member invite.++## Path parameters++<ParamField path="id" type="string" required>The seller's ID.</ParamField>+<ParamField path="invite_id" type="string" required>The invite's ID.</ParamField>++## Response++<ResponseField name="id" type="string">ID of the deleted invite.</ResponseField>+<ResponseField name="object" type="string">Always `member_invite`.</ResponseField>+<ResponseField name="deleted" type="boolean">Whether the invite was deleted.</ResponseField>++<RequestExample>+```bash cURL+curl -X DELETE 'http://localhost:9000/admin/sellers/sel_01HXYZABCDEF/members/invites/meminv_01HXYZINVAA' \+ -H 'Authorization: Bearer <token>'+```++```ts JS Client+const result = await client.admin.sellers.$id.members.invites.$inviteId.delete({+ $id: "sel_01HXYZABCDEF",+ $inviteId: "meminv_01HXYZINVAA",+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "id": "meminv_01HXYZINVAA",+ "object": "member_invite",+ "deleted": true+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/admin/sellers/delete-professional-details.mdx b/apps/docs/rc/references/api/admin/sellers/delete-professional-details.mdxnew file mode 100644index 000000000..f0268792e--- /dev/null+++ b/apps/docs/rc/references/api/admin/sellers/delete-professional-details.mdx@@ -0,0 +1,52 @@+---+title: "Delete Professional Details"+api: "DELETE /admin/sellers/{id}/professional-details"+description: "Delete a seller's professional details."+---++Removes the seller's professional details and returns the updated seller.++## Path parameters++<ParamField path="id" type="string" required>The seller's ID.</ParamField>++## Query parameters++<ParamField query="fields" type="string">Comma-separated list of fields to include, prefix with `+`/`-` to add or remove from defaults.</ParamField>++## Response++<ResponseField name="seller" type="object">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The seller's ID.</ResponseField>+ <ResponseField name="professional_details" type="object">The seller's professional details, `null` after deletion.</ResponseField>+ <ResponseField name="updated_at" type="string">Last update timestamp.</ResponseField>+ </Expandable>+</ResponseField>++<RequestExample>+```bash cURL+curl -X DELETE 'http://localhost:9000/admin/sellers/sel_01HXYZABCDEF/professional-details' \+ -H 'Authorization: Bearer <token>'+```++```ts JS Client+const { seller } = await client.admin.sellers.$id.professionalDetails.delete({+ $id: "sel_01HXYZABCDEF",+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "seller": {+ "id": "sel_01HXYZABCDEF",+ "name": "Acme",+ "status": "open",+ "professional_details": null,+ "updated_at": "2026-06-12T12:00:00.000Z"+ }+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/admin/sellers/invite-seller-member.mdx b/apps/docs/rc/references/api/admin/sellers/invite-seller-member.mdxnew file mode 100644index 000000000..52ec37ade--- /dev/null+++ b/apps/docs/rc/references/api/admin/sellers/invite-seller-member.mdx@@ -0,0 +1,63 @@+---+title: "Invite Seller Member"+api: "POST /admin/sellers/{id}/members/invite"+description: "Invite a new member to a seller's team by email."+---++Creates a member invite for the given email and role.++## Path parameters++<ParamField path="id" type="string" required>The seller's ID.</ParamField>++## Body parameters++<ParamField body="email" type="string" required>Email address to invite.</ParamField>+<ParamField body="role_id" type="string" required>ID of the role assigned once the invite is accepted.</ParamField>++## Response++<ResponseField name="member_invite" type="object">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The invite's ID.</ResponseField>+ <ResponseField name="email" type="string">Invited email address.</ResponseField>+ <ResponseField name="role_id" type="string">Role assigned on acceptance.</ResponseField>+ <ResponseField name="accepted" type="boolean">Whether the invite was accepted.</ResponseField>+ <ResponseField name="token" type="string">Token used to accept the invite.</ResponseField>+ <ResponseField name="expires_at" type="string">When the invite expires.</ResponseField>+ <ResponseField name="created_at" type="string">Creation timestamp.</ResponseField>+ </Expandable>+</ResponseField>++<RequestExample>+```bash cURL+curl -X POST 'http://localhost:9000/admin/sellers/sel_01HXYZABCDEF/members/invite' \+ -H 'Authorization: Bearer <token>' \+ -H 'Content-Type: application/json' \+ -d '{"email": "[email protected]", "role_id": "role_01HXYZROLEAA"}'+```++```ts JS Client+const { member_invite } = await client.admin.sellers.$id.members.invite.mutate({+ $id: "sel_01HXYZABCDEF",+ email: "[email protected]",+ role_id: "role_01HXYZROLEAA",+})+```+</RequestExample>++<ResponseExample>+```json 201+{+ "member_invite": {+ "id": "meminv_01HXYZINVAA",+ "email": "[email protected]",+ "role_id": "role_01HXYZROLEAA",+ "accepted": false,+ "token": "inv_token_abc123",+ "expires_at": "2026-06-22T09:00:00.000Z",+ "created_at": "2026-06-15T09:00:00.000Z"+ }+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/admin/sellers/list-member-invites.mdx b/apps/docs/rc/references/api/admin/sellers/list-member-invites.mdxnew file mode 100644index 000000000..e2b6eed29--- /dev/null+++ b/apps/docs/rc/references/api/admin/sellers/list-member-invites.mdx@@ -0,0 +1,71 @@+---+title: "List Member Invites"+api: "GET /admin/sellers/{id}/members/invites"+description: "Retrieve a paginated list of a seller's member invites."+---++Returns all member invites created for the seller.++## Path parameters++<ParamField path="id" type="string" required>The seller's ID.</ParamField>++## Query parameters++<ParamField query="limit" type="number" default="50">Maximum number of records to return.</ParamField>+<ParamField query="offset" type="number" default="0">Number of records to skip.</ParamField>+<ParamField query="order" type="string">Field to sort by, prefix with `-` for descending order.</ParamField>+<ParamField query="fields" type="string">Comma-separated list of fields to include, prefix with `+`/`-` to add or remove from defaults.</ParamField>++## Response++<ResponseField name="member_invites" type="object[]">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The invite's ID.</ResponseField>+ <ResponseField name="email" type="string">Invited email address.</ResponseField>+ <ResponseField name="role_id" type="string">Role assigned on acceptance.</ResponseField>+ <ResponseField name="accepted" type="boolean">Whether the invite was accepted.</ResponseField>+ <ResponseField name="token" type="string">Token used to accept the invite.</ResponseField>+ <ResponseField name="expires_at" type="string">When the invite expires.</ResponseField>+ <ResponseField name="created_at" type="string">Creation timestamp.</ResponseField>+ <ResponseField name="updated_at" type="string">Last update timestamp.</ResponseField>+ </Expandable>+</ResponseField>+<ResponseField name="count" type="number">Total number of invites.</ResponseField>+<ResponseField name="offset" type="number">Number of records skipped.</ResponseField>+<ResponseField name="limit" type="number">Number of records returned.</ResponseField>++<RequestExample>+```bash cURL+curl 'http://localhost:9000/admin/sellers/sel_01HXYZABCDEF/members/invites' \+ -H 'Authorization: Bearer <token>'+```++```ts JS Client+const { member_invites } = await client.admin.sellers.$id.members.invites.query({+ $id: "sel_01HXYZABCDEF",+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "member_invites": [+ {+ "id": "meminv_01HXYZINVAA",+ "email": "[email protected]",+ "role_id": "role_01HXYZROLEAA",+ "accepted": false,+ "token": "inv_token_abc123",+ "expires_at": "2026-06-22T09:00:00.000Z",+ "created_at": "2026-06-15T09:00:00.000Z",+ "updated_at": "2026-06-15T09:00:00.000Z"+ }+ ],+ "count": 1,+ "offset": 0,+ "limit": 50+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/admin/sellers/list-seller-members.mdx b/apps/docs/rc/references/api/admin/sellers/list-seller-members.mdxnew file mode 100644index 000000000..8c31ba708--- /dev/null+++ b/apps/docs/rc/references/api/admin/sellers/list-seller-members.mdx@@ -0,0 +1,71 @@+---+title: "List Seller Members"+api: "GET /admin/sellers/{id}/members"+description: "Retrieve a paginated list of a seller's members."+---++Returns the members of the seller's team, including their user record and role.++## Path parameters++<ParamField path="id" type="string" required>The seller's ID.</ParamField>++## Query parameters++<ParamField query="limit" type="number" default="50">Maximum number of records to return.</ParamField>+<ParamField query="offset" type="number" default="0">Number of records to skip.</ParamField>+<ParamField query="order" type="string">Field to sort by, prefix with `-` for descending order.</ParamField>+<ParamField query="fields" type="string">Comma-separated list of fields to include, prefix with `+`/`-` to add or remove from defaults.</ParamField>++## Response++<ResponseField name="seller_members" type="object[]">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The seller member's ID.</ResponseField>+ <ResponseField name="is_owner" type="boolean">Whether this member owns the seller account.</ResponseField>+ <ResponseField name="member" type="object">The underlying member record, including its email.</ResponseField>+ <ResponseField name="rbac_role" type="object">The role assigned to the member.</ResponseField>+ <ResponseField name="created_at" type="string">Creation timestamp.</ResponseField>+ </Expandable>+</ResponseField>+<ResponseField name="count" type="number">Total number of seller members.</ResponseField>+<ResponseField name="offset" type="number">Number of records skipped.</ResponseField>+<ResponseField name="limit" type="number">Number of records returned.</ResponseField>++<RequestExample>+```bash cURL+curl 'http://localhost:9000/admin/sellers/sel_01HXYZABCDEF/members' \+ -H 'Authorization: Bearer <token>'+```++```ts JS Client+const { seller_members } = await client.admin.sellers.$id.members.query({+ $id: "sel_01HXYZABCDEF",+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "seller_members": [+ {+ "id": "selmem_01HXYZSMAA",+ "is_owner": true,+ "member": {+ "id": "mem_01HXYZMEMAA",+ "email": "[email protected]"+ },+ "rbac_role": {+ "id": "role_01HXYZROLEAA",+ "name": "Owner"+ },+ "created_at": "2026-06-01T10:00:00.000Z"+ }+ ],+ "count": 1,+ "offset": 0,+ "limit": 50+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/admin/sellers/list-seller-products.mdx b/apps/docs/rc/references/api/admin/sellers/list-seller-products.mdxnew file mode 100644index 000000000..05dc07540--- /dev/null+++ b/apps/docs/rc/references/api/admin/sellers/list-seller-products.mdx@@ -0,0 +1,85 @@+---+title: "List Seller Products"+api: "GET /admin/sellers/{id}/products"+description: "Retrieve a paginated list of a seller's products."+---++Returns the products owned by the seller.++## Path parameters++<ParamField path="id" type="string" required>The seller's ID.</ParamField>++## Query parameters++<ParamField query="limit" type="number" default="50">Maximum number of records to return.</ParamField>+<ParamField query="offset" type="number" default="0">Number of records to skip.</ParamField>+<ParamField query="order" type="string">Field to sort by, prefix with `-` for descending order.</ParamField>+<ParamField query="fields" type="string">Comma-separated list of fields to include, prefix with `+`/`-` to add or remove from defaults.</ParamField>+<ParamField query="q" type="string">Search term matched against product fields.</ParamField>+<ParamField query="id" type="string | string[]">Filter by product ID(s).</ParamField>+<ParamField query="status" type="string | string[]">Filter by product status.</ParamField>+<ParamField query="collection_id" type="string | string[]">Filter by collection ID(s).</ParamField>+<ParamField query="sales_channel_id" type="string | string[]">Filter by sales channel ID(s).</ParamField>+<ParamField query="type_id" type="string | string[]">Filter by product type ID(s).</ParamField>+<ParamField query="tag_id" type="string | string[]">Filter by product tag ID(s).</ParamField>+<ParamField query="created_at" type="object">Filter by creation date with operators like `$gte`, `$lte`.</ParamField>+<ParamField query="updated_at" type="object">Filter by update date with operators like `$gte`, `$lte`.</ParamField>++## Response++<ResponseField name="products" type="object[]">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The product's ID.</ResponseField>+ <ResponseField name="title" type="string">Product title.</ResponseField>+ <ResponseField name="handle" type="string">Unique URL-safe handle.</ResponseField>+ <ResponseField name="status" type="string">Product status, e.g. `draft` or `published`.</ResponseField>+ <ResponseField name="thumbnail" type="string">URL of the product's thumbnail.</ResponseField>+ <ResponseField name="collection" type="object">The product's collection.</ResponseField>+ <ResponseField name="sales_channels" type="object[]">Sales channels the product is available in.</ResponseField>+ <ResponseField name="variants" type="object[]">The product's variants (IDs only by default).</ResponseField>+ <ResponseField name="created_at" type="string">Creation timestamp.</ResponseField>+ <ResponseField name="updated_at" type="string">Last update timestamp.</ResponseField>+ </Expandable>+</ResponseField>+<ResponseField name="count" type="number">Total number of the seller's products.</ResponseField>+<ResponseField name="offset" type="number">Number of records skipped.</ResponseField>+<ResponseField name="limit" type="number">Number of records returned.</ResponseField>++<RequestExample>+```bash cURL+curl 'http://localhost:9000/admin/sellers/sel_01HXYZABCDEF/products?limit=20' \+ -H 'Authorization: Bearer <token>'+```++```ts JS Client+const { products, count } = await client.admin.sellers.$id.products.query({+ $id: "sel_01HXYZABCDEF",+ limit: 20,+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "products": [+ {+ "id": "prod_01HXYZPRODAA",+ "title": "Canvas Tote Bag",+ "handle": "canvas-tote-bag",+ "status": "published",+ "thumbnail": "https://cdn.example.com/tote.jpg",+ "collection": null,+ "sales_channels": [],+ "variants": [{ "id": "variant_01HXYZVARAA" }],+ "created_at": "2026-06-03T10:00:00.000Z",+ "updated_at": "2026-06-03T10:00:00.000Z"+ }+ ],+ "count": 1,+ "offset": 0,+ "limit": 20+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/admin/sellers/list-sellers.mdx b/apps/docs/rc/references/api/admin/sellers/list-sellers.mdxnew file mode 100644index 000000000..edc828ec3--- /dev/null+++ b/apps/docs/rc/references/api/admin/sellers/list-sellers.mdx@@ -0,0 +1,96 @@+---+title: "List Sellers"+api: "GET /admin/sellers"+description: "Retrieve a paginated list of sellers."+---++Returns all sellers on the marketplace, with optional filtering by status, handle, email, and more.++## Query parameters++<ParamField query="limit" type="number" default="50">Maximum number of records to return.</ParamField>+<ParamField query="offset" type="number" default="0">Number of records to skip.</ParamField>+<ParamField query="order" type="string">Field to sort by, prefix with `-` for descending order.</ParamField>+<ParamField query="fields" type="string">Comma-separated list of fields to include, prefix with `+`/`-` to add or remove from defaults.</ParamField>+<ParamField query="q" type="string">Search term matched against seller fields.</ParamField>+<ParamField query="id" type="string | string[]">Filter by seller ID(s).</ParamField>+<ParamField query="name" type="string | string[]">Filter by seller name(s).</ParamField>+<ParamField query="handle" type="string">Filter by seller handle.</ParamField>+<ParamField query="email" type="string">Filter by seller email.</ParamField>+<ParamField query="status" type="string | string[]">Filter by status: `open`, `pending_approval`, `suspended`, or `terminated`.</ParamField>+<ParamField query="is_premium" type="boolean">Filter by premium flag.</ParamField>+<ParamField query="created_at" type="object">Filter by creation date with operators like `$gte`, `$lte`.</ParamField>+<ParamField query="updated_at" type="object">Filter by update date with operators like `$gte`, `$lte`.</ParamField>++## Response++<ResponseField name="sellers" type="object[]">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The seller's ID.</ResponseField>+ <ResponseField name="name" type="string">Display name of the seller.</ResponseField>+ <ResponseField name="handle" type="string">Unique URL-safe handle.</ResponseField>+ <ResponseField name="email" type="string">Contact email of the seller.</ResponseField>+ <ResponseField name="phone" type="string">Contact phone number.</ResponseField>+ <ResponseField name="description" type="string">Seller description.</ResponseField>+ <ResponseField name="logo" type="string">URL of the seller's logo.</ResponseField>+ <ResponseField name="banner" type="string">URL of the seller's banner image.</ResponseField>+ <ResponseField name="website_url" type="string">The seller's website URL.</ResponseField>+ <ResponseField name="external_id" type="string">ID of the seller in an external system.</ResponseField>+ <ResponseField name="currency_code" type="string">The seller's currency code.</ResponseField>+ <ResponseField name="status" type="string">One of `open`, `pending_approval`, `suspended`, `terminated`.</ResponseField>+ <ResponseField name="status_reason" type="string">Reason recorded with the latest status change.</ResponseField>+ <ResponseField name="approved_at" type="string">When the seller was approved.</ResponseField>+ <ResponseField name="rejected_at" type="string">When the seller was rejected.</ResponseField>+ <ResponseField name="is_premium" type="boolean">Whether the seller is marked as premium.</ResponseField>+ <ResponseField name="closed_from" type="string">Start of a temporary store closure.</ResponseField>+ <ResponseField name="closed_to" type="string">End of a temporary store closure.</ResponseField>+ <ResponseField name="closure_note" type="string">Note shown while the store is closed.</ResponseField>+ <ResponseField name="address" type="object">The seller's address.</ResponseField>+ <ResponseField name="payment_details" type="object">The seller's bank payment details.</ResponseField>+ <ResponseField name="professional_details" type="object">The seller's legal and tax details.</ResponseField>+ <ResponseField name="payout_account" type="object">The seller's payout account with status and onboarding data.</ResponseField>+ <ResponseField name="metadata" type="object">Custom key-value data.</ResponseField>+ <ResponseField name="created_at" type="string">Creation timestamp.</ResponseField>+ <ResponseField name="updated_at" type="string">Last update timestamp.</ResponseField>+ </Expandable>+</ResponseField>+<ResponseField name="count" type="number">Total number of matching sellers.</ResponseField>+<ResponseField name="offset" type="number">Number of records skipped.</ResponseField>+<ResponseField name="limit" type="number">Number of records returned.</ResponseField>++<RequestExample>+```bash cURL+curl 'http://localhost:9000/admin/sellers?status=pending_approval&limit=20' \+ -H 'Authorization: Bearer <token>'+```++```ts JS Client+const { sellers, count } = await client.admin.sellers.query({+ status: "pending_approval",+ limit: 20,+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "sellers": [+ {+ "id": "sel_01HXYZABCDEF",+ "name": "Acme",+ "handle": "acme",+ "email": "[email protected]",+ "currency_code": "usd",+ "status": "pending_approval",+ "is_premium": false,+ "created_at": "2026-06-01T10:00:00.000Z",+ "updated_at": "2026-06-01T10:00:00.000Z"+ }+ ],+ "count": 1,+ "offset": 0,+ "limit": 20+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/admin/sellers/remove-seller-member.mdx b/apps/docs/rc/references/api/admin/sellers/remove-seller-member.mdxnew file mode 100644index 000000000..d8573c272--- /dev/null+++ b/apps/docs/rc/references/api/admin/sellers/remove-seller-member.mdx@@ -0,0 +1,42 @@+---+title: "Remove Seller Member"+api: "DELETE /admin/sellers/{id}/members/{member_id}"+description: "Remove a member from a seller's team."+---++Unlinks the seller member from the seller.++## Path parameters++<ParamField path="id" type="string" required>The seller's ID.</ParamField>+<ParamField path="member_id" type="string" required>The seller member's ID.</ParamField>++## Response++<ResponseField name="id" type="string">ID of the removed seller member.</ResponseField>+<ResponseField name="object" type="string">Always `seller_member`.</ResponseField>+<ResponseField name="deleted" type="boolean">Whether the member was removed.</ResponseField>++<RequestExample>+```bash cURL+curl -X DELETE 'http://localhost:9000/admin/sellers/sel_01HXYZABCDEF/members/selmem_01HXYZSMBB' \+ -H 'Authorization: Bearer <token>'+```++```ts JS Client+const result = await client.admin.sellers.$id.members.$memberId.delete({+ $id: "sel_01HXYZABCDEF",+ $memberId: "selmem_01HXYZSMBB",+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "id": "selmem_01HXYZSMBB",+ "object": "seller_member",+ "deleted": true+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/admin/sellers/resend-member-invite.mdx b/apps/docs/rc/references/api/admin/sellers/resend-member-invite.mdxnew file mode 100644index 000000000..20e45ccfc--- /dev/null+++ b/apps/docs/rc/references/api/admin/sellers/resend-member-invite.mdx@@ -0,0 +1,55 @@+---+title: "Resend Member Invite"+api: "POST /admin/sellers/{id}/members/invites/{invite_id}/resend"+description: "Resend a seller's member invite."+---++Regenerates the invite token, extends its expiry, and re-sends the invite email.++## Path parameters++<ParamField path="id" type="string" required>The seller's ID.</ParamField>+<ParamField path="invite_id" type="string" required>The invite's ID.</ParamField>++## Response++<ResponseField name="member_invite" type="object">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The invite's ID.</ResponseField>+ <ResponseField name="email" type="string">Invited email address.</ResponseField>+ <ResponseField name="role_id" type="string">Role assigned on acceptance.</ResponseField>+ <ResponseField name="accepted" type="boolean">Whether the invite was accepted.</ResponseField>+ <ResponseField name="token" type="string">The regenerated invite token.</ResponseField>+ <ResponseField name="expires_at" type="string">The new expiry date.</ResponseField>+ </Expandable>+</ResponseField>++<RequestExample>+```bash cURL+curl -X POST 'http://localhost:9000/admin/sellers/sel_01HXYZABCDEF/members/invites/meminv_01HXYZINVAA/resend' \+ -H 'Authorization: Bearer <token>'+```++```ts JS Client+const { member_invite } =+ await client.admin.sellers.$id.members.invites.$inviteId.resend.mutate({+ $id: "sel_01HXYZABCDEF",+ $inviteId: "meminv_01HXYZINVAA",+ })+```+</RequestExample>++<ResponseExample>+```json 200+{+ "member_invite": {+ "id": "meminv_01HXYZINVAA",+ "email": "[email protected]",+ "role_id": "role_01HXYZROLEAA",+ "accepted": false,+ "token": "inv_token_def456",+ "expires_at": "2026-06-29T09:00:00.000Z"+ }+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/admin/sellers/retrieve-seller.mdx b/apps/docs/rc/references/api/admin/sellers/retrieve-seller.mdxnew file mode 100644index 000000000..9db404ffd--- /dev/null+++ b/apps/docs/rc/references/api/admin/sellers/retrieve-seller.mdx@@ -0,0 +1,81 @@+---+title: "Retrieve Seller"+api: "GET /admin/sellers/{id}"+description: "Retrieve a seller by ID."+---++Returns a single seller, including address, payment details, professional details, payout account, and members.++## Path parameters++<ParamField path="id" type="string" required>The seller's ID.</ParamField>++## Query parameters++<ParamField query="fields" type="string">Comma-separated list of fields to include, prefix with `+`/`-` to add or remove from defaults.</ParamField>++## Response++<ResponseField name="seller" type="object">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The seller's ID.</ResponseField>+ <ResponseField name="name" type="string">Display name of the seller.</ResponseField>+ <ResponseField name="handle" type="string">Unique URL-safe handle.</ResponseField>+ <ResponseField name="email" type="string">Contact email of the seller.</ResponseField>+ <ResponseField name="phone" type="string">Contact phone number.</ResponseField>+ <ResponseField name="description" type="string">Seller description.</ResponseField>+ <ResponseField name="logo" type="string">URL of the seller's logo.</ResponseField>+ <ResponseField name="banner" type="string">URL of the seller's banner image.</ResponseField>+ <ResponseField name="website_url" type="string">The seller's website URL.</ResponseField>+ <ResponseField name="currency_code" type="string">The seller's currency code.</ResponseField>+ <ResponseField name="status" type="string">One of `open`, `pending_approval`, `suspended`, `terminated`.</ResponseField>+ <ResponseField name="status_reason" type="string">Reason recorded with the latest status change.</ResponseField>+ <ResponseField name="approved_at" type="string">When the seller was approved.</ResponseField>+ <ResponseField name="rejected_at" type="string">When the seller was rejected.</ResponseField>+ <ResponseField name="is_premium" type="boolean">Whether the seller is marked as premium.</ResponseField>+ <ResponseField name="address" type="object">The seller's address.</ResponseField>+ <ResponseField name="payment_details" type="object">The seller's bank payment details.</ResponseField>+ <ResponseField name="professional_details" type="object">The seller's legal and tax details.</ResponseField>+ <ResponseField name="payout_account" type="object">The seller's payout account with status and onboarding data.</ResponseField>+ <ResponseField name="members" type="object[]">The seller's members.</ResponseField>+ <ResponseField name="metadata" type="object">Custom key-value data.</ResponseField>+ <ResponseField name="created_at" type="string">Creation timestamp.</ResponseField>+ <ResponseField name="updated_at" type="string">Last update timestamp.</ResponseField>+ </Expandable>+</ResponseField>++<RequestExample>+```bash cURL+curl 'http://localhost:9000/admin/sellers/sel_01HXYZABCDEF' \+ -H 'Authorization: Bearer <token>'+```++```ts JS Client+const { seller } = await client.admin.sellers.$id.query({+ $id: "sel_01HXYZABCDEF",+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "seller": {+ "id": "sel_01HXYZABCDEF",+ "name": "Acme",+ "handle": "acme",+ "email": "[email protected]",+ "currency_code": "usd",+ "status": "open",+ "approved_at": "2026-06-02T09:30:00.000Z",+ "is_premium": false,+ "address": null,+ "payment_details": null,+ "professional_details": null,+ "members": [],+ "created_at": "2026-06-01T10:00:00.000Z",+ "updated_at": "2026-06-02T09:30:00.000Z"+ }+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/admin/sellers/suspend-seller.mdx b/apps/docs/rc/references/api/admin/sellers/suspend-seller.mdxnew file mode 100644index 000000000..098cba36f--- /dev/null+++ b/apps/docs/rc/references/api/admin/sellers/suspend-seller.mdx@@ -0,0 +1,60 @@+---+title: "Suspend Seller"+api: "POST /admin/sellers/{id}/suspend"+description: "Suspend a seller."+---++Sets the seller's status to `suspended`, optionally recording a reason.++## Path parameters++<ParamField path="id" type="string" required>The seller's ID.</ParamField>++## Query parameters++<ParamField query="fields" type="string">Comma-separated list of fields to include, prefix with `+`/`-` to add or remove from defaults.</ParamField>++## Body parameters++<ParamField body="reason" type="string">Reason for the suspension, stored in `status_reason`.</ParamField>++## Response++<ResponseField name="seller" type="object">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The seller's ID.</ResponseField>+ <ResponseField name="status" type="string">The seller's status, `suspended` after this call.</ResponseField>+ <ResponseField name="status_reason" type="string">The recorded suspension reason.</ResponseField>+ <ResponseField name="updated_at" type="string">Last update timestamp.</ResponseField>+ </Expandable>+</ResponseField>++<RequestExample>+```bash cURL+curl -X POST 'http://localhost:9000/admin/sellers/sel_01HXYZABCDEF/suspend' \+ -H 'Authorization: Bearer <token>' \+ -H 'Content-Type: application/json' \+ -d '{"reason": "Policy violation"}'+```++```ts JS Client+const { seller } = await client.admin.sellers.$id.suspend.mutate({+ $id: "sel_01HXYZABCDEF",+ reason: "Policy violation",+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "seller": {+ "id": "sel_01HXYZABCDEF",+ "name": "Acme",+ "status": "suspended",+ "status_reason": "Policy violation",+ "updated_at": "2026-06-05T11:00:00.000Z"+ }+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/admin/sellers/terminate-seller.mdx b/apps/docs/rc/references/api/admin/sellers/terminate-seller.mdxnew file mode 100644index 000000000..2ad184233--- /dev/null+++ b/apps/docs/rc/references/api/admin/sellers/terminate-seller.mdx@@ -0,0 +1,60 @@+---+title: "Terminate Seller"+api: "POST /admin/sellers/{id}/terminate"+description: "Terminate a seller account."+---++Sets the seller's status to `terminated`, optionally recording a reason.++## Path parameters++<ParamField path="id" type="string" required>The seller's ID.</ParamField>++## Query parameters++<ParamField query="fields" type="string">Comma-separated list of fields to include, prefix with `+`/`-` to add or remove from defaults.</ParamField>++## Body parameters++<ParamField body="reason" type="string">Reason for the termination, stored in `status_reason`.</ParamField>++## Response++<ResponseField name="seller" type="object">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The seller's ID.</ResponseField>+ <ResponseField name="status" type="string">The seller's status, `terminated` after this call.</ResponseField>+ <ResponseField name="status_reason" type="string">The recorded termination reason.</ResponseField>+ <ResponseField name="updated_at" type="string">Last update timestamp.</ResponseField>+ </Expandable>+</ResponseField>++<RequestExample>+```bash cURL+curl -X POST 'http://localhost:9000/admin/sellers/sel_01HXYZABCDEF/terminate' \+ -H 'Authorization: Bearer <token>' \+ -H 'Content-Type: application/json' \+ -d '{"reason": "Account closed by operator"}'+```++```ts JS Client+const { seller } = await client.admin.sellers.$id.terminate.mutate({+ $id: "sel_01HXYZABCDEF",+ reason: "Account closed by operator",+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "seller": {+ "id": "sel_01HXYZABCDEF",+ "name": "Acme",+ "status": "terminated",+ "status_reason": "Account closed by operator",+ "updated_at": "2026-06-10T16:45:00.000Z"+ }+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/admin/sellers/unsuspend-seller.mdx b/apps/docs/rc/references/api/admin/sellers/unsuspend-seller.mdxnew file mode 100644index 000000000..9fe737bd7--- /dev/null+++ b/apps/docs/rc/references/api/admin/sellers/unsuspend-seller.mdx@@ -0,0 +1,52 @@+---+title: "Unsuspend Seller"+api: "POST /admin/sellers/{id}/unsuspend"+description: "Lift a seller's suspension."+---++Restores a suspended seller to `open`.++## Path parameters++<ParamField path="id" type="string" required>The seller's ID.</ParamField>++## Query parameters++<ParamField query="fields" type="string">Comma-separated list of fields to include, prefix with `+`/`-` to add or remove from defaults.</ParamField>++## Response++<ResponseField name="seller" type="object">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The seller's ID.</ResponseField>+ <ResponseField name="status" type="string">The seller's status, `open` after this call.</ResponseField>+ <ResponseField name="updated_at" type="string">Last update timestamp.</ResponseField>+ </Expandable>+</ResponseField>++<RequestExample>+```bash cURL+curl -X POST 'http://localhost:9000/admin/sellers/sel_01HXYZABCDEF/unsuspend' \+ -H 'Authorization: Bearer <token>'+```++```ts JS Client+const { seller } = await client.admin.sellers.$id.unsuspend.mutate({+ $id: "sel_01HXYZABCDEF",+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "seller": {+ "id": "sel_01HXYZABCDEF",+ "name": "Acme",+ "status": "open",+ "status_reason": null,+ "updated_at": "2026-06-06T08:15:00.000Z"+ }+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/admin/sellers/unterminate-seller.mdx b/apps/docs/rc/references/api/admin/sellers/unterminate-seller.mdxnew file mode 100644index 000000000..70440aa31--- /dev/null+++ b/apps/docs/rc/references/api/admin/sellers/unterminate-seller.mdx@@ -0,0 +1,52 @@+---+title: "Unterminate Seller"+api: "POST /admin/sellers/{id}/unterminate"+description: "Reverse a seller termination."+---++Restores a terminated seller to `open`.++## Path parameters++<ParamField path="id" type="string" required>The seller's ID.</ParamField>++## Query parameters++<ParamField query="fields" type="string">Comma-separated list of fields to include, prefix with `+`/`-` to add or remove from defaults.</ParamField>++## Response++<ResponseField name="seller" type="object">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The seller's ID.</ResponseField>+ <ResponseField name="status" type="string">The seller's status, `open` after this call.</ResponseField>+ <ResponseField name="updated_at" type="string">Last update timestamp.</ResponseField>+ </Expandable>+</ResponseField>++<RequestExample>+```bash cURL+curl -X POST 'http://localhost:9000/admin/sellers/sel_01HXYZABCDEF/unterminate' \+ -H 'Authorization: Bearer <token>'+```++```ts JS Client+const { seller } = await client.admin.sellers.$id.unterminate.mutate({+ $id: "sel_01HXYZABCDEF",+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "seller": {+ "id": "sel_01HXYZABCDEF",+ "name": "Acme",+ "status": "open",+ "status_reason": null,+ "updated_at": "2026-06-11T09:00:00.000Z"+ }+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/admin/sellers/update-seller.mdx b/apps/docs/rc/references/api/admin/sellers/update-seller.mdxnew file mode 100644index 000000000..72d22de63--- /dev/null+++ b/apps/docs/rc/references/api/admin/sellers/update-seller.mdx@@ -0,0 +1,83 @@+---+title: "Update Seller"+api: "POST /admin/sellers/{id}"+description: "Update a seller's details."+---++Updates the seller and returns the updated record.++## Path parameters++<ParamField path="id" type="string" required>The seller's ID.</ParamField>++## Query parameters++<ParamField query="fields" type="string">Comma-separated list of fields to include, prefix with `+`/`-` to add or remove from defaults.</ParamField>++## Body parameters++<ParamField body="name" type="string">Display name of the seller.</ParamField>+<ParamField body="handle" type="string">Unique URL-safe handle.</ParamField>+<ParamField body="email" type="string">Contact email of the seller.</ParamField>+<ParamField body="phone" type="string">Contact phone number.</ParamField>+<ParamField body="description" type="string">Seller description.</ParamField>+<ParamField body="logo" type="string">URL of the seller's logo.</ParamField>+<ParamField body="banner" type="string">URL of the seller's banner image.</ParamField>+<ParamField body="website_url" type="string">The seller's website URL.</ParamField>+<ParamField body="external_id" type="string">ID of the seller in an external system.</ParamField>+<ParamField body="status" type="string">One of `open`, `pending_approval`, `suspended`, `terminated`.</ParamField>+<ParamField body="status_reason" type="string">Reason recorded with the status.</ParamField>+<ParamField body="is_premium" type="boolean">Whether the seller is marked as premium.</ParamField>+<ParamField body="closed_from" type="string">Start of a temporary store closure.</ParamField>+<ParamField body="closed_to" type="string">End of a temporary store closure.</ParamField>+<ParamField body="closure_note" type="string">Note shown while the store is closed.</ParamField>+<ParamField body="metadata" type="object">Custom key-value data.</ParamField>+<ParamField body="additional_data" type="object">Extra data passed to workflow hooks.</ParamField>++## Response++<ResponseField name="seller" type="object">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The seller's ID.</ResponseField>+ <ResponseField name="name" type="string">Display name of the seller.</ResponseField>+ <ResponseField name="handle" type="string">Unique URL-safe handle.</ResponseField>+ <ResponseField name="email" type="string">Contact email of the seller.</ResponseField>+ <ResponseField name="status" type="string">One of `open`, `pending_approval`, `suspended`, `terminated`.</ResponseField>+ <ResponseField name="is_premium" type="boolean">Whether the seller is marked as premium.</ResponseField>+ <ResponseField name="updated_at" type="string">Last update timestamp.</ResponseField>+ </Expandable>+</ResponseField>++<RequestExample>+```bash cURL+curl -X POST 'http://localhost:9000/admin/sellers/sel_01HXYZABCDEF' \+ -H 'Authorization: Bearer <token>' \+ -H 'Content-Type: application/json' \+ -d '{"description": "Handmade goods.", "is_premium": true}'+```++```ts JS Client+const { seller } = await client.admin.sellers.$id.mutate({+ $id: "sel_01HXYZABCDEF",+ description: "Handmade goods.",+ is_premium: true,+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "seller": {+ "id": "sel_01HXYZABCDEF",+ "name": "Acme",+ "handle": "acme",+ "email": "[email protected]",+ "description": "Handmade goods.",+ "status": "open",+ "is_premium": true,+ "updated_at": "2026-06-03T14:20:00.000Z"+ }+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/admin/sellers/upsert-payment-details.mdx b/apps/docs/rc/references/api/admin/sellers/upsert-payment-details.mdxnew file mode 100644index 000000000..fc8cdb1cf--- /dev/null+++ b/apps/docs/rc/references/api/admin/sellers/upsert-payment-details.mdx@@ -0,0 +1,88 @@+---+title: "Upsert Payment Details"+api: "POST /admin/sellers/{id}/payment-details"+description: "Create or update a seller's bank payment details."+---++Creates the seller's payment details if none exist, otherwise updates them.++## Path parameters++<ParamField path="id" type="string" required>The seller's ID.</ParamField>++## Query parameters++<ParamField query="fields" type="string">Comma-separated list of fields to include, prefix with `+`/`-` to add or remove from defaults.</ParamField>++## Body parameters++<ParamField body="country_code" type="string">Two-letter ISO country code of the bank account.</ParamField>+<ParamField body="holder_name" type="string">Name of the account holder.</ParamField>+<ParamField body="bank_name" type="string">Name of the bank.</ParamField>+<ParamField body="iban" type="string">IBAN of the account.</ParamField>+<ParamField body="bic" type="string">BIC / SWIFT code.</ParamField>+<ParamField body="routing_number" type="string">Routing number for US accounts.</ParamField>+<ParamField body="account_number" type="string">Account number.</ParamField>+<ParamField body="additional_data" type="object">Extra data passed to workflow hooks.</ParamField>++## Response++<ResponseField name="seller" type="object">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The seller's ID.</ResponseField>+ <ResponseField name="payment_details" type="object">+ <Expandable title="properties">+ <ResponseField name="country_code" type="string">Two-letter ISO country code of the bank account.</ResponseField>+ <ResponseField name="holder_name" type="string">Name of the account holder.</ResponseField>+ <ResponseField name="bank_name" type="string">Name of the bank.</ResponseField>+ <ResponseField name="iban" type="string">IBAN of the account.</ResponseField>+ <ResponseField name="bic" type="string">BIC / SWIFT code.</ResponseField>+ </Expandable>+ </ResponseField>+ <ResponseField name="updated_at" type="string">Last update timestamp.</ResponseField>+ </Expandable>+</ResponseField>++<RequestExample>+```bash cURL+curl -X POST 'http://localhost:9000/admin/sellers/sel_01HXYZABCDEF/payment-details' \+ -H 'Authorization: Bearer <token>' \+ -H 'Content-Type: application/json' \+ -d '{+ "country_code": "de",+ "holder_name": "Acme GmbH",+ "iban": "DE89370400440532013000",+ "bic": "COBADEFFXXX"+ }'+```++```ts JS Client+const { seller } = await client.admin.sellers.$id.paymentDetails.mutate({+ $id: "sel_01HXYZABCDEF",+ country_code: "de",+ holder_name: "Acme GmbH",+ iban: "DE89370400440532013000",+ bic: "COBADEFFXXX",+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "seller": {+ "id": "sel_01HXYZABCDEF",+ "name": "Acme",+ "status": "open",+ "payment_details": {+ "country_code": "de",+ "holder_name": "Acme GmbH",+ "bank_name": null,+ "iban": "DE89370400440532013000",+ "bic": "COBADEFFXXX"+ },+ "updated_at": "2026-06-12T11:00:00.000Z"+ }+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/admin/sellers/upsert-professional-details.mdx b/apps/docs/rc/references/api/admin/sellers/upsert-professional-details.mdxnew file mode 100644index 000000000..e61872fdd--- /dev/null+++ b/apps/docs/rc/references/api/admin/sellers/upsert-professional-details.mdx@@ -0,0 +1,78 @@+---+title: "Upsert Professional Details"+api: "POST /admin/sellers/{id}/professional-details"+description: "Create or update a seller's legal and tax details."+---++Creates the seller's professional details if none exist, otherwise updates them.++## Path parameters++<ParamField path="id" type="string" required>The seller's ID.</ParamField>++## Query parameters++<ParamField query="fields" type="string">Comma-separated list of fields to include, prefix with `+`/`-` to add or remove from defaults.</ParamField>++## Body parameters++<ParamField body="corporate_name" type="string">Registered corporate name.</ParamField>+<ParamField body="registration_number" type="string">Company registration number.</ParamField>+<ParamField body="tax_id" type="string">Tax identification number.</ParamField>+<ParamField body="additional_data" type="object">Extra data passed to workflow hooks.</ParamField>++## Response++<ResponseField name="seller" type="object">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The seller's ID.</ResponseField>+ <ResponseField name="professional_details" type="object">+ <Expandable title="properties">+ <ResponseField name="corporate_name" type="string">Registered corporate name.</ResponseField>+ <ResponseField name="registration_number" type="string">Company registration number.</ResponseField>+ <ResponseField name="tax_id" type="string">Tax identification number.</ResponseField>+ </Expandable>+ </ResponseField>+ <ResponseField name="updated_at" type="string">Last update timestamp.</ResponseField>+ </Expandable>+</ResponseField>++<RequestExample>+```bash cURL+curl -X POST 'http://localhost:9000/admin/sellers/sel_01HXYZABCDEF/professional-details' \+ -H 'Authorization: Bearer <token>' \+ -H 'Content-Type: application/json' \+ -d '{+ "corporate_name": "Acme GmbH",+ "registration_number": "HRB 123456",+ "tax_id": "DE123456789"+ }'+```++```ts JS Client+const { seller } = await client.admin.sellers.$id.professionalDetails.mutate({+ $id: "sel_01HXYZABCDEF",+ corporate_name: "Acme GmbH",+ registration_number: "HRB 123456",+ tax_id: "DE123456789",+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "seller": {+ "id": "sel_01HXYZABCDEF",+ "name": "Acme",+ "status": "open",+ "professional_details": {+ "corporate_name": "Acme GmbH",+ "registration_number": "HRB 123456",+ "tax_id": "DE123456789"+ },+ "updated_at": "2026-06-12T11:30:00.000Z"+ }+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/admin/sellers/upsert-seller-address.mdx b/apps/docs/rc/references/api/admin/sellers/upsert-seller-address.mdxnew file mode 100644index 000000000..71cf564c7--- /dev/null+++ b/apps/docs/rc/references/api/admin/sellers/upsert-seller-address.mdx@@ -0,0 +1,91 @@+---+title: "Upsert Seller Address"+api: "POST /admin/sellers/{id}/address"+description: "Create or update a seller's address."+---++Creates the seller's address if none exists, otherwise updates it.++## Path parameters++<ParamField path="id" type="string" required>The seller's ID.</ParamField>++## Query parameters++<ParamField query="fields" type="string">Comma-separated list of fields to include, prefix with `+`/`-` to add or remove from defaults.</ParamField>++## Body parameters++<ParamField body="name" type="string">Label for the address.</ParamField>+<ParamField body="company" type="string">Company name.</ParamField>+<ParamField body="first_name" type="string">First name of the contact person.</ParamField>+<ParamField body="last_name" type="string">Last name of the contact person.</ParamField>+<ParamField body="address_1" type="string">First address line.</ParamField>+<ParamField body="address_2" type="string">Second address line.</ParamField>+<ParamField body="city" type="string">City.</ParamField>+<ParamField body="country_code" type="string">Two-letter ISO country code.</ParamField>+<ParamField body="province" type="string">Province or state.</ParamField>+<ParamField body="postal_code" type="string">Postal code.</ParamField>+<ParamField body="phone" type="string">Phone number for the address.</ParamField>+<ParamField body="metadata" type="object">Custom key-value data.</ParamField>+<ParamField body="additional_data" type="object">Extra data passed to workflow hooks.</ParamField>++## Response++<ResponseField name="seller" type="object">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The seller's ID.</ResponseField>+ <ResponseField name="address" type="object">+ <Expandable title="properties">+ <ResponseField name="address_1" type="string">First address line.</ResponseField>+ <ResponseField name="city" type="string">City.</ResponseField>+ <ResponseField name="country_code" type="string">Two-letter ISO country code.</ResponseField>+ <ResponseField name="postal_code" type="string">Postal code.</ResponseField>+ </Expandable>+ </ResponseField>+ <ResponseField name="updated_at" type="string">Last update timestamp.</ResponseField>+ </Expandable>+</ResponseField>++<RequestExample>+```bash cURL+curl -X POST 'http://localhost:9000/admin/sellers/sel_01HXYZABCDEF/address' \+ -H 'Authorization: Bearer <token>' \+ -H 'Content-Type: application/json' \+ -d '{+ "address_1": "123 Market St",+ "city": "San Francisco",+ "country_code": "us",+ "postal_code": "94103"+ }'+```++```ts JS Client+const { seller } = await client.admin.sellers.$id.address.mutate({+ $id: "sel_01HXYZABCDEF",+ address_1: "123 Market St",+ city: "San Francisco",+ country_code: "us",+ postal_code: "94103",+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "seller": {+ "id": "sel_01HXYZABCDEF",+ "name": "Acme",+ "status": "open",+ "address": {+ "address_1": "123 Market St",+ "city": "San Francisco",+ "country_code": "us",+ "postal_code": "94103"+ },+ "updated_at": "2026-06-12T10:30:00.000Z"+ }+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/conventions.mdx b/apps/docs/rc/references/api/conventions.mdxnew file mode 100644index 000000000..651f7c6f7--- /dev/null+++ b/apps/docs/rc/references/api/conventions.mdx@@ -0,0 +1,109 @@+---+title: "API conventions"+description: "Authentication, seller scoping, pagination, field selection, and webhooks — shared by every Mercur API surface."+---++Mercur exposes three HTTP surfaces on the Medusa server. They share the same conventions for authentication, pagination, and field selection.++| Surface | Base path | Audience | Authentication |+| --- | --- | --- | --- |+| [Admin API](/rc/references/api/admin) | `/admin/*` | Marketplace operator | Medusa admin user (session or bearer) |+| [Vendor API](/rc/references/api/vendor) | `/vendor/*` | Sellers | Member auth + seller scoping (below) |+| [Store API](/rc/references/api/store) | `/store/*` | Storefront | Mostly public; customer auth where noted |++All requests and responses are JSON. The recommended way to call these APIs is the typed [`@mercurjs/client`](/rc/tools/api-client) — every route below maps 1:1 to a client call.++## Authentication++### Admin++Admin routes use standard Medusa admin authentication — log in via `/auth/user/emailpass`, then send the session cookie or a `Authorization: Bearer <token>` header.++### Vendor++Vendor routes authenticate the **member** actor (`/auth/member/emailpass` to obtain a token) and are additionally scoped to a single seller:++1. The request must carry an `x-seller-id` header (or a seller selected in the session via `POST /vendor/sellers/select`).+2. Middleware verifies the authenticated member belongs to that seller and populates the request's seller context — every query and mutation on the surface is automatically filtered to that seller.+3. The member's RBAC roles are resolved for the selected seller.++A handful of vendor routes are public by design: seller registration (`POST /vendor/sellers`), invite acceptance (`POST /vendor/members/invites/accept`), `GET /vendor/stores`, and `GET /vendor/feature-flags`.++### Store++Store routes are public. Customer authentication (session or bearer) is **required** for `/store/order-groups` and **optional** for `/store/offers`, `/store/products`, and `/store/search` (it enriches the pricing context when present). Public seller routes only return sellers whose status is `open` and who are not inside a scheduled closure window.++## Pagination++List endpoints use offset pagination with two query parameters:++```+GET /admin/sellers?limit=20&offset=40+```++| Parameter | Description | Default |+| --- | --- | --- |+| `limit` | Maximum number of records to return | 50 for most routes (some use 10, 20, or 200) |+| `offset` | Number of records to skip | 0 |++Every list response carries the paging envelope alongside the records:++```json+{+ "sellers": [ ... ],+ "count": 133,+ "offset": 40,+ "limit": 20+}+```++`count` is the total number of records matching the filters, so `offset + limit < count` means more pages exist.++## Field selection++List and detail endpoints accept a `fields` query parameter to control which fields and relations are returned:++```+GET /vendor/products?fields=id,title,+variants.sku,-description+```++- `+field` adds a field or relation **on top of** the route's defaults.+- `-field` removes one from the defaults.+- A bare `field` (no prefix) **replaces** the default set entirely.++<Warning>+ Mixing one unprefixed field into an otherwise-prefixed list switches the+ whole parameter to replace mode and silently drops the route defaults.+ Prefix every entry with `+` or `-` when you mean to merge.+</Warning>++## Filtering and ordering++List endpoints accept entity-specific filter parameters (documented per route group), a free-text `q` search parameter where the entity has searchable fields, and `order` for sorting (`order=-created_at` for descending).++## Errors++Errors follow Medusa's format:++```json+{+ "type": "invalid_data",+ "message": "Seller with handle already exists"+}+```++Common types: `invalid_data` (400), `unauthorized` (401), `not_allowed` (403), `not_found` (404). The typed client throws these as `ClientError`.++## Webhooks++| Method | Path | Purpose |+| --- | --- | --- |+| `POST` | `/hooks/payout` | Payout provider webhook receiver. The registered provider (e.g. Stripe Connect) verifies the signature and resolves the event into a payout action. |++## Next steps++<CardGroup cols={3}>+ <Card title="Admin API" href="/rc/references/api/admin" />+ <Card title="Vendor API" href="/rc/references/api/vendor" />+ <Card title="Store API" href="/rc/references/api/store" />+</CardGroup>diff --git a/apps/docs/rc/references/api/store.mdx b/apps/docs/rc/references/api/store.mdxnew file mode 100644index 000000000..d7592d743--- /dev/null+++ b/apps/docs/rc/references/api/store.mdx@@ -0,0 +1,67 @@+---+title: "Store API"+description: "Storefront routes under /store/* — discovery, multi-vendor carts, checkout, and order groups."+---++The Store API is what a storefront talks to. It extends Medusa's store routes with marketplace discovery (sellers, offers, search) and replaces the cart completion flow with the multi-vendor order-group split.++Most routes are public; customer authentication requirements are noted per group. See [API conventions](/rc/references/api/conventions) for pagination and field selection.++## Products and discovery++| Method | Path | Purpose |+| --- | --- | --- |+| `GET` | `/store/products` | List published products (filtered to sellers visible to the shopper) |+| `GET` | `/store/products/:id` | Retrieve a product |+| `GET` | `/store/product-categories[/:id]` | Category tree with media and icons |+| `GET` | `/store/product-attributes[/:id]` | Filterable attributes for building facet UIs |++## Search++| Method | Path | Purpose |+| --- | --- | --- |+| `POST` | `/store/search` | Query the search index across products and offers |++Request body: `q`, `limit` (default 12, max 100), `offset`, pricing context (`region_id`, `country_code`, `province`), and provider-owned `filters`. Response: `{ hits, count, limit, offset, facets }` with pre-labelled collection, category, and attribute facets. See the [Search module](/rc/references/modules/search) for document shapes and filter semantics.++## Sellers++| Method | Path | Purpose |+| --- | --- | --- |+| `GET` | `/store/sellers` | List public seller storefronts (only `open` sellers outside a closure window) |+| `GET` | `/store/sellers/:id` | Retrieve a seller storefront |++## Offers++| Method | Path | Purpose |+| --- | --- | --- |+| `GET` | `/store/offers` | List offers, with per-offer calculated prices |+| `GET` | `/store/offers/:id` | Retrieve an offer |++## Carts and checkout++Mercur overrides the cart routes so a single cart can span multiple sellers:++| Method | Path | Purpose |+| --- | --- | --- |+| `POST` | `/store/carts/:id/line-items` | Add a line item (offer-aware, multi-seller) |+| `POST` | `/store/carts/:id/shipping-methods` | Add per-seller shipping methods |+| `GET` | `/store/shipping-options` | Shipping options available for the cart, grouped by seller |+| `POST` | `/store/carts/:id/promotions` | Apply promotions |+| `POST` | `/store/carts/:id/complete` | Complete the cart — splits it into per-seller orders under an order group |++## Order groups++Customer authentication **required**.++| Method | Path | Purpose |+| --- | --- | --- |+| `GET` | `/store/order-groups` | The customer's order groups |+| `GET` | `/store/order-groups/:id` | An order group with its per-seller child orders |++## Next steps++<CardGroup cols={2}>+ <Card title="Order groups" href="/rc/learn/order-groups" />+ <Card title="Search module" href="/rc/references/modules/search" />+</CardGroup>diff --git a/apps/docs/rc/references/api/store/carts/add-line-item.mdx b/apps/docs/rc/references/api/store/carts/add-line-item.mdxnew file mode 100644index 000000000..7b1479289--- /dev/null+++ b/apps/docs/rc/references/api/store/carts/add-line-item.mdx@@ -0,0 +1,115 @@+---+title: "Add Line Item"+api: "POST /store/carts/{id}/line-items"+description: "Add a seller offer to the cart as a line item."+---++Adds an item to the cart by offer — Mercur resolves the offer's variant and stamps the `offer_id` on the line item so the cart can later split into per-seller orders.++<Note>+ Unlike vanilla Medusa, this route takes an `offer_id` instead of a `variant_id`; an unknown offer returns a `404`.+</Note>++## Path parameters++<ParamField path="id" type="string" required>+ The cart's ID.+</ParamField>++## Body parameters++<ParamField body="offer_id" type="string" required>+ ID of the offer to add.+</ParamField>++<ParamField body="quantity" type="number" required>+ Quantity to add; must be a positive integer.+</ParamField>++<ParamField body="unit_price" type="number">+ Custom unit price overriding the offer's calculated price.+</ParamField>++<ParamField body="compare_at_unit_price" type="number">+ Compare-at unit price shown as the original price.+</ParamField>++<ParamField body="metadata" type="object">+ Custom key-value data stored on the line item; `offer_id` is merged in automatically.+</ParamField>++<ParamField body="additional_data" type="object">+ Data passed to the add-to-cart workflow's hooks.+</ParamField>++## Response++<ResponseField name="cart" type="object">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The cart's ID.</ResponseField>+ <ResponseField name="currency_code" type="string">The cart's currency.</ResponseField>+ <ResponseField name="region_id" type="string">The cart's region.</ResponseField>+ <ResponseField name="email" type="string | null">The customer's email.</ResponseField>+ <ResponseField name="items" type="object[]">Line items, each carrying `offer_id` in its `metadata`.</ResponseField>+ <ResponseField name="shipping_methods" type="object[]">Selected shipping methods.</ResponseField>+ <ResponseField name="promotions" type="object[]">Applied promotions.</ResponseField>+ <ResponseField name="shipping_address" type="object | null">The shipping address.</ResponseField>+ <ResponseField name="billing_address" type="object | null">The billing address.</ResponseField>+ <ResponseField name="payment_collection" type="object | null">The cart's payment collection with its sessions.</ResponseField>+ <ResponseField name="total" type="number">Cart total including tax and shipping.</ResponseField>+ <ResponseField name="subtotal" type="number">Cart subtotal.</ResponseField>+ <ResponseField name="tax_total" type="number">Total tax amount.</ResponseField>+ <ResponseField name="discount_total" type="number">Total discount amount.</ResponseField>+ <ResponseField name="shipping_total" type="number">Total shipping amount.</ResponseField>+ </Expandable>+</ResponseField>++<RequestExample>+```bash cURL+curl -X POST 'http://localhost:9000/store/carts/cart_01JB2KB1CD/line-items' \+ -H 'Content-Type: application/json' \+ -H 'x-publishable-api-key: pk_01JB2K3XYZ' \+ -d '{"offer_id": "offer_01JB2K6G5H", "quantity": 1}'+```++```ts JS Client+const { cart } = await client.store.carts.$id.lineItems.mutate({+ $id: "cart_01JB2KB1CD",+ offer_id: "offer_01JB2K6G5H",+ quantity: 1,+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "cart": {+ "id": "cart_01JB2KB1CD",+ "currency_code": "eur",+ "region_id": "reg_01JB2K4S1T",+ "email": null,+ "items": [+ {+ "id": "cali_01JB2KB3EF",+ "title": "M",+ "product_title": "Linen Shirt",+ "quantity": 1,+ "unit_price": 4500,+ "metadata": { "offer_id": "offer_01JB2K6G5H" }+ }+ ],+ "shipping_methods": [],+ "promotions": [],+ "shipping_address": null,+ "billing_address": null,+ "payment_collection": null,+ "total": 4500,+ "subtotal": 4500,+ "tax_total": 0,+ "discount_total": 0,+ "shipping_total": 0+ }+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/store/carts/add-shipping-methods.mdx b/apps/docs/rc/references/api/store/carts/add-shipping-methods.mdxnew file mode 100644index 000000000..d6c61f3fc--- /dev/null+++ b/apps/docs/rc/references/api/store/carts/add-shipping-methods.mdx@@ -0,0 +1,84 @@+---+title: "Add Shipping Method"+api: "POST /store/carts/{id}/shipping-methods"+description: "Add a seller shipping option to the cart."+---++Adds the chosen shipping option to the cart through Mercur's seller-aware workflow, so each seller's items can carry their own shipping method.++## Path parameters++<ParamField path="id" type="string" required>+ The cart's ID.+</ParamField>++## Query parameters++<ParamField query="fields" type="string">+ Comma-separated fields and relations to include on the returned cart; prefix with `+`/`-` to add to or remove from the defaults.+</ParamField>++## Body parameters++<ParamField body="option_id" type="string" required>+ ID of the shipping option to add.+</ParamField>++<ParamField body="data" type="object">+ Provider-specific data forwarded to the fulfillment provider.+</ParamField>++<ParamField body="additional_data" type="object">+ Data passed to the workflow's hooks.+</ParamField>++## Response++<ResponseField name="cart" type="object">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The cart's ID.</ResponseField>+ <ResponseField name="currency_code" type="string">The cart's currency.</ResponseField>+ <ResponseField name="items" type="object[]">Line items in the cart.</ResponseField>+ <ResponseField name="shipping_methods" type="object[]">Shipping methods with `shipping_option_id`, `amount`, and tax lines.</ResponseField>+ <ResponseField name="shipping_total" type="number">Total shipping amount.</ResponseField>+ <ResponseField name="total" type="number">Cart total including tax and shipping.</ResponseField>+ </Expandable>+</ResponseField>++<RequestExample>+```bash cURL+curl -X POST 'http://localhost:9000/store/carts/cart_01JB2KB1CD/shipping-methods' \+ -H 'Content-Type: application/json' \+ -H 'x-publishable-api-key: pk_01JB2K3XYZ' \+ -d '{"option_id": "so_01JB2KC4GH"}'+```++```ts JS Client+const { cart } = await client.store.carts.$id.shippingMethods.mutate({+ $id: "cart_01JB2KB1CD",+ option_id: "so_01JB2KC4GH",+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "cart": {+ "id": "cart_01JB2KB1CD",+ "currency_code": "eur",+ "items": [{ "id": "cali_01JB2KB3EF", "quantity": 1, "unit_price": 4500 }],+ "shipping_methods": [+ {+ "shipping_option_id": "so_01JB2KC4GH",+ "amount": 900,+ "is_tax_inclusive": false,+ "tax_lines": []+ }+ ],+ "shipping_total": 900,+ "total": 5400+ }+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/store/carts/apply-promotions.mdx b/apps/docs/rc/references/api/store/carts/apply-promotions.mdxnew file mode 100644index 000000000..d1acf9e2b--- /dev/null+++ b/apps/docs/rc/references/api/store/carts/apply-promotions.mdx@@ -0,0 +1,83 @@+---+title: "Apply Promotions"+api: "POST /store/carts/{id}/promotions"+description: "Apply promotion codes to the cart."+---++Applies promotion codes through Mercur's seller-aware workflow so seller-scoped promotions only adjust that seller's items; sending an empty array replaces (clears) the applied codes.++## Path parameters++<ParamField path="id" type="string" required>+ The cart's ID.+</ParamField>++## Query parameters++<ParamField query="fields" type="string">+ Comma-separated fields and relations to include on the returned cart; prefix with `+`/`-` to add to or remove from the defaults.+</ParamField>++## Body parameters++<ParamField body="promo_codes" type="string[]" required>+ Promotion codes to add; an empty array removes all applied codes.+</ParamField>++## Response++<ResponseField name="cart" type="object">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The cart's ID.</ResponseField>+ <ResponseField name="promotions" type="object[]">Applied promotions with `code` and `application_method`.</ResponseField>+ <ResponseField name="items" type="object[]">Line items with their promotion `adjustments`.</ResponseField>+ <ResponseField name="discount_total" type="number">Total discount amount.</ResponseField>+ <ResponseField name="total" type="number">Cart total after discounts.</ResponseField>+ </Expandable>+</ResponseField>++<RequestExample>+```bash cURL+curl -X POST 'http://localhost:9000/store/carts/cart_01JB2KB1CD/promotions' \+ -H 'Content-Type: application/json' \+ -H 'x-publishable-api-key: pk_01JB2K3XYZ' \+ -d '{"promo_codes": ["SUMMER10"]}'+```++```ts JS Client+const { cart } = await client.store.carts.$id.promotions.mutate({+ $id: "cart_01JB2KB1CD",+ promo_codes: ["SUMMER10"],+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "cart": {+ "id": "cart_01JB2KB1CD",+ "promotions": [+ {+ "id": "promo_01JB2KD5JK",+ "code": "SUMMER10",+ "is_automatic": false,+ "application_method": { "type": "percentage", "value": 10, "currency_code": "eur" }+ }+ ],+ "items": [+ {+ "id": "cali_01JB2KB3EF",+ "quantity": 1,+ "unit_price": 4500,+ "adjustments": [+ { "id": "caadj_01JB2KD6LM", "code": "SUMMER10", "promotion_id": "promo_01JB2KD5JK", "amount": 450 }+ ]+ }+ ],+ "discount_total": 450,+ "total": 4950+ }+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/store/carts/complete-cart.mdx b/apps/docs/rc/references/api/store/carts/complete-cart.mdxnew file mode 100644index 000000000..8fdcef9cb--- /dev/null+++ b/apps/docs/rc/references/api/store/carts/complete-cart.mdx@@ -0,0 +1,98 @@+---+title: "Complete Cart"+api: "POST /store/carts/{id}/complete"+description: "Complete the cart and split it into per-seller orders under an order group."+---++Completes the cart with Mercur's split-order workflow: items are grouped by seller, one order is created per seller, and all orders are attached to a single order group returned to the shopper.++<Note>+ On payment errors that need customer action (authorization failed or requires more), the route still returns `200` with `type: "cart"`, the refreshed cart, and an `error` object; any other failure is thrown as an error response.+</Note>++## Path parameters++<ParamField path="id" type="string" required>+ The cart's ID.+</ParamField>++## Query parameters++<ParamField query="fields" type="string">+ Comma-separated fields to include on the returned order group; prefix with `+`/`-` to add to or remove from the defaults.+</ParamField>++## Response++<ResponseField name="type" type="string">+ `order_group` on success, `cart` when payment requires further action.+</ResponseField>++<ResponseField name="order_group" type="object">+ Present when `type` is `order_group`.+ <Expandable title="properties">+ <ResponseField name="id" type="string">The order group's ID.</ResponseField>+ <ResponseField name="customer_id" type="string">ID of the purchasing customer.</ResponseField>+ <ResponseField name="cart_id" type="string">ID of the completed cart.</ResponseField>+ <ResponseField name="seller_count" type="number">Number of per-seller orders created.</ResponseField>+ <ResponseField name="total" type="number">Combined total across all child orders.</ResponseField>+ <ResponseField name="created_at" type="string">Creation timestamp.</ResponseField>+ <ResponseField name="updated_at" type="string">Last update timestamp.</ResponseField>+ </Expandable>+</ResponseField>++<ResponseField name="cart" type="object">+ Present when `type` is `cart`; the refreshed cart with items, totals, and payment collection.+</ResponseField>++<ResponseField name="error" type="object">+ Present when `type` is `cart`.+ <Expandable title="properties">+ <ResponseField name="message" type="string">The payment error message.</ResponseField>+ <ResponseField name="name" type="string">The error name.</ResponseField>+ <ResponseField name="type" type="string">One of `payment_authorization_error` or `payment_requires_more_error`.</ResponseField>+ </Expandable>+</ResponseField>++<RequestExample>+```bash cURL+curl -X POST 'http://localhost:9000/store/carts/cart_01JB2KB1CD/complete' \+ -H 'x-publishable-api-key: pk_01JB2K3XYZ'+```++```ts JS Client+const result = await client.store.carts.$id.complete.mutate({ $id: "cart_01JB2KB1CD" })+if (result.type === "order_group") {+ console.log(result.order_group.id)+}+```+</RequestExample>++<ResponseExample>+```json 200 (success)+{+ "type": "order_group",+ "order_group": {+ "id": "og_01JB2KE7NP",+ "customer_id": "cus_01JB2KE8QR",+ "cart_id": "cart_01JB2KB1CD",+ "seller_count": 2,+ "total": 9900,+ "created_at": "2026-05-01T10:05:00.000Z",+ "updated_at": "2026-05-01T10:05:00.000Z"+ }+}+```++```json 200 (payment error)+{+ "type": "cart",+ "cart": { "id": "cart_01JB2KB1CD", "total": 9900 },+ "error": {+ "message": "Payment authorization failed",+ "name": "Error",+ "type": "payment_authorization_error"+ }+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/store/offers/list-offers.mdx b/apps/docs/rc/references/api/store/offers/list-offers.mdxnew file mode 100644index 000000000..0cc0b7427--- /dev/null+++ b/apps/docs/rc/references/api/store/offers/list-offers.mdx@@ -0,0 +1,161 @@+---+title: "List Offers"+api: "GET /store/offers"+description: "Retrieve seller offers with per-offer calculated prices."+---++Returns a paginated list of offers from visible sellers whose products are published.++<Note>+ Customer authentication is optional. When a customer token is provided, the customer's group memberships enter the pricing context used for `calculated_price`. Prices are computed per offer (each offer scopes the variant's price set by an `offer_id` rule) only when `calculated_price` is in `fields` and a pricing context (`region_id`, `country_code`, or `cart_id`) resolves. Requesting `inventory_quantity` or `in_stock` requires a single sales channel — either configured on the publishable key or passed as `sales_channel_id`.+</Note>++## Query parameters++<ParamField query="limit" type="number" default="50">+ Maximum number of offers to return.+</ParamField>++<ParamField query="offset" type="number" default="0">+ Number of offers to skip before collecting results.+</ParamField>++<ParamField query="order" type="string">+ Field to sort by, prefixed with `-` for descending order.+</ParamField>++<ParamField query="fields" type="string">+ Comma-separated fields and relations to include; add `calculated_price`, `inventory_quantity`, or `in_stock` to receive the computed fields.+</ParamField>++<ParamField query="region_id" type="string">+ Region used to build the pricing context for `calculated_price`.+</ParamField>++<ParamField query="country_code" type="string">+ Country used for the tax portion of the pricing context.+</ParamField>++<ParamField query="province" type="string">+ Province used for the tax portion of the pricing context.+</ParamField>++<ParamField query="cart_id" type="string">+ Cart whose region and customer resolve the pricing context.+</ParamField>++<ParamField query="q" type="string">+ Free-text search term applied to offer fields.+</ParamField>++<ParamField query="id" type="string | string[]">+ Filter by one or more offer IDs.+</ParamField>++<ParamField query="product_id" type="string | string[]">+ Filter by one or more product IDs.+</ParamField>++<ParamField query="variant_id" type="string | string[]">+ Filter by one or more variant IDs.+</ParamField>++<ParamField query="seller_id" type="string | string[]">+ Filter by one or more seller IDs.+</ParamField>++<ParamField query="sku" type="string | string[]">+ Filter by one or more offer SKUs.+</ParamField>++<ParamField query="created_at" type="object">+ Filter by creation date using operators like `$gt`, `$gte`, `$lt`, `$lte`.+</ParamField>++<ParamField query="updated_at" type="object">+ Filter by update date using operators like `$gt`, `$gte`, `$lt`, `$lte`.+</ParamField>++## Response++<ResponseField name="offers" type="object[]">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The offer's ID.</ResponseField>+ <ResponseField name="seller_id" type="string">ID of the selling seller.</ResponseField>+ <ResponseField name="variant_id" type="string">ID of the offered product variant.</ResponseField>+ <ResponseField name="product_id" type="string">ID of the offered product.</ResponseField>+ <ResponseField name="shipping_profile_id" type="string | null">ID of the offer's shipping profile.</ResponseField>+ <ResponseField name="sku" type="string | null">The offer's SKU.</ResponseField>+ <ResponseField name="ean" type="string | null">The offer's EAN.</ResponseField>+ <ResponseField name="upc" type="string | null">The offer's UPC.</ResponseField>+ <ResponseField name="seller" type="object">The seller's `id`, `name`, and `handle`.</ResponseField>+ <ResponseField name="product_variant" type="object">The variant's `id`, `title`, `sku`, and `price_set`.</ResponseField>+ <ResponseField name="shipping_profile" type="object | null">The shipping profile's `id` and `name`.</ResponseField>+ <ResponseField name="prices" type="object[]">Raw offer prices with `amount`, `currency_code`, `min_quantity`, and `max_quantity`.</ResponseField>+ <ResponseField name="inventory_item_link" type="object[]">Inventory items backing the offer, with location stock levels.</ResponseField>+ <ResponseField name="calculated_price" type="object | null">+ Per-offer calculated price; includes `calculated_amount_with_tax` / `calculated_amount_without_tax` (and original-amount variants) when a tax context resolves. Only present when requested.+ </ResponseField>+ <ResponseField name="inventory_quantity" type="number">Available quantity in the sales channel's stock locations; only present when requested.</ResponseField>+ <ResponseField name="in_stock" type="boolean">Whether the offer has available inventory; only present when requested.</ResponseField>+ <ResponseField name="metadata" type="object | null">Custom key-value data.</ResponseField>+ <ResponseField name="created_at" type="string">Creation timestamp.</ResponseField>+ <ResponseField name="updated_at" type="string">Last update timestamp.</ResponseField>+ </Expandable>+</ResponseField>++<ResponseField name="count" type="number">Total number of matching offers.</ResponseField>+<ResponseField name="offset" type="number">Number of skipped offers.</ResponseField>+<ResponseField name="limit" type="number">Maximum number of returned offers.</ResponseField>++<RequestExample>+```bash cURL+curl 'http://localhost:9000/store/offers?product_id=prod_01JB2K5M8N®ion_id=reg_01JB2K4S1T&fields=%2Bcalculated_price' \+ -H 'x-publishable-api-key: pk_01JB2K3XYZ'+```++```ts JS Client+const { offers, count } = await client.store.offers.query({+ product_id: "prod_01JB2K5M8N",+ region_id: "reg_01JB2K4S1T",+ fields: "+calculated_price",+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "offers": [+ {+ "id": "offer_01JB2K6G5H",+ "seller_id": "sel_01JB2K8A1B",+ "variant_id": "variant_01JB2K6E4F",+ "product_id": "prod_01JB2K5M8N",+ "shipping_profile_id": "sp_01JB2K9C2D",+ "sku": "NT-LINEN-M",+ "ean": null,+ "upc": null,+ "seller": { "id": "sel_01JB2K8A1B", "name": "Nordic Textiles", "handle": "nordic-textiles" },+ "product_variant": { "id": "variant_01JB2K6E4F", "title": "M", "sku": null, "price_set": { "id": "pset_01JB2K9E3F" } },+ "shipping_profile": { "id": "sp_01JB2K9C2D", "name": "Default" },+ "prices": [+ { "id": "price_01JB2K9G4H", "amount": 4500, "currency_code": "eur", "min_quantity": null, "max_quantity": null }+ ],+ "inventory_item_link": [],+ "calculated_price": {+ "calculated_amount": 4500,+ "original_amount": 4500,+ "currency_code": "eur"+ },+ "metadata": null,+ "created_at": "2026-05-01T10:00:00.000Z",+ "updated_at": "2026-05-01T10:00:00.000Z"+ }+ ],+ "count": 3,+ "offset": 0,+ "limit": 50+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/store/offers/retrieve-offer.mdx b/apps/docs/rc/references/api/store/offers/retrieve-offer.mdxnew file mode 100644index 000000000..4629c3148--- /dev/null+++ b/apps/docs/rc/references/api/store/offers/retrieve-offer.mdx@@ -0,0 +1,112 @@+---+title: "Retrieve Offer"+api: "GET /store/offers/{id}"+description: "Retrieve a seller offer by ID with its per-offer calculated price."+---++Returns a single offer; offers from hidden sellers or on unpublished products return a `404`.++<Note>+ Customer authentication is optional. `calculated_price` is computed per offer only when requested in `fields` and a pricing context (`region_id`, `country_code`, or `cart_id`) resolves; requesting `inventory_quantity` or `in_stock` requires a single sales channel on the publishable key or via `sales_channel_id`.+</Note>++## Path parameters++<ParamField path="id" type="string" required>+ The offer's ID.+</ParamField>++## Query parameters++<ParamField query="fields" type="string">+ Comma-separated fields and relations to include; add `calculated_price`, `inventory_quantity`, or `in_stock` to receive the computed fields.+</ParamField>++<ParamField query="region_id" type="string">+ Region used to build the pricing context for `calculated_price`.+</ParamField>++<ParamField query="country_code" type="string">+ Country used for the tax portion of the pricing context.+</ParamField>++<ParamField query="province" type="string">+ Province used for the tax portion of the pricing context.+</ParamField>++<ParamField query="cart_id" type="string">+ Cart whose region and customer resolve the pricing context.+</ParamField>++## Response++<ResponseField name="offer" type="object">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The offer's ID.</ResponseField>+ <ResponseField name="seller_id" type="string">ID of the selling seller.</ResponseField>+ <ResponseField name="variant_id" type="string">ID of the offered product variant.</ResponseField>+ <ResponseField name="product_id" type="string">ID of the offered product.</ResponseField>+ <ResponseField name="shipping_profile_id" type="string | null">ID of the offer's shipping profile.</ResponseField>+ <ResponseField name="sku" type="string | null">The offer's SKU.</ResponseField>+ <ResponseField name="ean" type="string | null">The offer's EAN.</ResponseField>+ <ResponseField name="upc" type="string | null">The offer's UPC.</ResponseField>+ <ResponseField name="seller" type="object">The seller's `id`, `name`, and `handle`.</ResponseField>+ <ResponseField name="product_variant" type="object">The variant's `id`, `title`, `sku`, and `price_set`.</ResponseField>+ <ResponseField name="shipping_profile" type="object | null">The shipping profile's `id` and `name`.</ResponseField>+ <ResponseField name="prices" type="object[]">Raw offer prices with `amount`, `currency_code`, `min_quantity`, and `max_quantity`.</ResponseField>+ <ResponseField name="inventory_item_link" type="object[]">Inventory items backing the offer, with location stock levels.</ResponseField>+ <ResponseField name="calculated_price" type="object | null">Per-offer calculated price with tax-adjusted amounts when a tax context resolves; only present when requested.</ResponseField>+ <ResponseField name="inventory_quantity" type="number">Available quantity in the sales channel's stock locations; only present when requested.</ResponseField>+ <ResponseField name="in_stock" type="boolean">Whether the offer has available inventory; only present when requested.</ResponseField>+ <ResponseField name="metadata" type="object | null">Custom key-value data.</ResponseField>+ <ResponseField name="created_at" type="string">Creation timestamp.</ResponseField>+ <ResponseField name="updated_at" type="string">Last update timestamp.</ResponseField>+ </Expandable>+</ResponseField>++<RequestExample>+```bash cURL+curl 'http://localhost:9000/store/offers/offer_01JB2K6G5H?region_id=reg_01JB2K4S1T&fields=%2Bcalculated_price' \+ -H 'x-publishable-api-key: pk_01JB2K3XYZ'+```++```ts JS Client+const { offer } = await client.store.offers.$id.query({+ $id: "offer_01JB2K6G5H",+ region_id: "reg_01JB2K4S1T",+ fields: "+calculated_price",+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "offer": {+ "id": "offer_01JB2K6G5H",+ "seller_id": "sel_01JB2K8A1B",+ "variant_id": "variant_01JB2K6E4F",+ "product_id": "prod_01JB2K5M8N",+ "shipping_profile_id": "sp_01JB2K9C2D",+ "sku": "NT-LINEN-M",+ "ean": null,+ "upc": null,+ "seller": { "id": "sel_01JB2K8A1B", "name": "Nordic Textiles", "handle": "nordic-textiles" },+ "product_variant": { "id": "variant_01JB2K6E4F", "title": "M", "sku": null, "price_set": { "id": "pset_01JB2K9E3F" } },+ "shipping_profile": { "id": "sp_01JB2K9C2D", "name": "Default" },+ "prices": [+ { "id": "price_01JB2K9G4H", "amount": 4500, "currency_code": "eur", "min_quantity": null, "max_quantity": null }+ ],+ "inventory_item_link": [],+ "calculated_price": {+ "calculated_amount": 4500,+ "original_amount": 4500,+ "currency_code": "eur"+ },+ "metadata": null,+ "created_at": "2026-05-01T10:00:00.000Z",+ "updated_at": "2026-05-01T10:00:00.000Z"+ }+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/store/order-groups/list-order-groups.mdx b/apps/docs/rc/references/api/store/order-groups/list-order-groups.mdxnew file mode 100644index 000000000..bad2137e7--- /dev/null+++ b/apps/docs/rc/references/api/store/order-groups/list-order-groups.mdx@@ -0,0 +1,105 @@+---+title: "List Order Groups"+api: "GET /store/order-groups"+description: "Retrieve the authenticated customer's order groups."+---++Returns a paginated list of the logged-in customer's order groups — the multi-seller wrappers created when a cart is completed.++<Note>+ Customer authentication is required (`Authorization: Bearer <customer_token>` or a session cookie); results are always scoped to the authenticated customer.+</Note>++## Query parameters++<ParamField query="limit" type="number" default="50">+ Maximum number of order groups to return.+</ParamField>++<ParamField query="offset" type="number" default="0">+ Number of order groups to skip before collecting results.+</ParamField>++<ParamField query="order" type="string">+ Field to sort by, prefixed with `-` for descending order.+</ParamField>++<ParamField query="fields" type="string">+ Comma-separated fields to include; only fields from the route's allowed list are accepted.+</ParamField>++<ParamField query="id" type="string | string[]">+ Filter by one or more order group IDs.+</ParamField>++<ParamField query="created_at" type="object">+ Filter by creation date using operators like `$gt`, `$gte`, `$lt`, `$lte`.+</ParamField>++<ParamField query="updated_at" type="object">+ Filter by update date using operators like `$gt`, `$gte`, `$lt`, `$lte`.+</ParamField>++## Response++<ResponseField name="order_groups" type="object[]">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The order group's ID.</ResponseField>+ <ResponseField name="customer_id" type="string">ID of the purchasing customer.</ResponseField>+ <ResponseField name="seller_count" type="number">Number of per-seller orders in the group.</ResponseField>+ <ResponseField name="total" type="number">Combined total across all child orders.</ResponseField>+ <ResponseField name="orders" type="object[]">+ Child orders, each with `seller_id` and its `items` (including each item's variant, product, and seller).+ </ResponseField>+ <ResponseField name="created_at" type="string">Creation timestamp.</ResponseField>+ <ResponseField name="updated_at" type="string">Last update timestamp.</ResponseField>+ </Expandable>+</ResponseField>++<ResponseField name="count" type="number">Total number of matching order groups.</ResponseField>+<ResponseField name="offset" type="number">Number of skipped order groups.</ResponseField>+<ResponseField name="limit" type="number">Maximum number of returned order groups.</ResponseField>++<RequestExample>+```bash cURL+curl 'http://localhost:9000/store/order-groups?limit=10' \+ -H 'x-publishable-api-key: pk_01JB2K3XYZ' \+ -H 'Authorization: Bearer <customer_token>'+```++```ts JS Client+const { order_groups, count } = await client.store.orderGroups.query({ limit: 10 })+```+</RequestExample>++<ResponseExample>+```json 200+{+ "order_groups": [+ {+ "id": "og_01JB2KE7NP",+ "customer_id": "cus_01JB2KE8QR",+ "seller_count": 2,+ "total": 9900,+ "orders": [+ {+ "id": "order_01JB2KH1WX",+ "seller_id": "sel_01JB2K8A1B",+ "items": [{ "id": "ordli_01JB2KH2YZ", "title": "M", "quantity": 1 }]+ },+ {+ "id": "order_01JB2KH3AB",+ "seller_id": "sel_01JB2KF9ST",+ "items": [{ "id": "ordli_01JB2KH4CD", "title": "One Size", "quantity": 1 }]+ }+ ],+ "created_at": "2026-05-01T10:05:00.000Z",+ "updated_at": "2026-05-01T10:05:00.000Z"+ }+ ],+ "count": 4,+ "offset": 0,+ "limit": 10+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/store/order-groups/retrieve-order-group.mdx b/apps/docs/rc/references/api/store/order-groups/retrieve-order-group.mdxnew file mode 100644index 000000000..edccb9bb0--- /dev/null+++ b/apps/docs/rc/references/api/store/order-groups/retrieve-order-group.mdx@@ -0,0 +1,78 @@+---+title: "Retrieve Order Group"+api: "GET /store/order-groups/{id}"+description: "Retrieve one of the authenticated customer's order groups by ID."+---++Returns a single order group with its per-seller child orders; order groups belonging to another customer return a `404`.++<Note>+ Customer authentication is required (`Authorization: Bearer <customer_token>` or a session cookie).+</Note>++## Path parameters++<ParamField path="id" type="string" required>+ The order group's ID.+</ParamField>++## Query parameters++<ParamField query="fields" type="string">+ Comma-separated fields to include; only fields from the route's allowed list are accepted.+</ParamField>++## Response++<ResponseField name="order_group" type="object">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The order group's ID.</ResponseField>+ <ResponseField name="customer_id" type="string">ID of the purchasing customer.</ResponseField>+ <ResponseField name="seller_count" type="number">Number of per-seller orders in the group.</ResponseField>+ <ResponseField name="total" type="number">Combined total across all child orders.</ResponseField>+ <ResponseField name="orders" type="object[]">+ Child orders, each with `seller_id` and its `items` (including each item's variant, product, and seller).+ </ResponseField>+ <ResponseField name="created_at" type="string">Creation timestamp.</ResponseField>+ <ResponseField name="updated_at" type="string">Last update timestamp.</ResponseField>+ </Expandable>+</ResponseField>++<RequestExample>+```bash cURL+curl 'http://localhost:9000/store/order-groups/og_01JB2KE7NP' \+ -H 'x-publishable-api-key: pk_01JB2K3XYZ' \+ -H 'Authorization: Bearer <customer_token>'+```++```ts JS Client+const { order_group } = await client.store.orderGroups.$id.query({ $id: "og_01JB2KE7NP" })+```+</RequestExample>++<ResponseExample>+```json 200+{+ "order_group": {+ "id": "og_01JB2KE7NP",+ "customer_id": "cus_01JB2KE8QR",+ "seller_count": 2,+ "total": 9900,+ "orders": [+ {+ "id": "order_01JB2KH1WX",+ "seller_id": "sel_01JB2K8A1B",+ "items": [{ "id": "ordli_01JB2KH2YZ", "title": "M", "quantity": 1 }]+ },+ {+ "id": "order_01JB2KH3AB",+ "seller_id": "sel_01JB2KF9ST",+ "items": [{ "id": "ordli_01JB2KH4CD", "title": "One Size", "quantity": 1 }]+ }+ ],+ "created_at": "2026-05-01T10:05:00.000Z",+ "updated_at": "2026-05-01T10:05:00.000Z"+ }+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/store/product-attributes/list-product-attributes.mdx b/apps/docs/rc/references/api/store/product-attributes/list-product-attributes.mdxnew file mode 100644index 000000000..8d7263283--- /dev/null+++ b/apps/docs/rc/references/api/store/product-attributes/list-product-attributes.mdx@@ -0,0 +1,134 @@+---+title: "List Product Attributes"+api: "GET /store/product-attributes"+description: "Retrieve active global product attributes."+---++Returns a paginated list of active, global product attributes (attributes scoped to a single product are excluded).++## Query parameters++<ParamField query="limit" type="number" default="50">+ Maximum number of attributes to return.+</ParamField>++<ParamField query="offset" type="number" default="0">+ Number of attributes to skip before collecting results.+</ParamField>++<ParamField query="order" type="string">+ Field to sort by, prefixed with `-` for descending order.+</ParamField>++<ParamField query="fields" type="string">+ Comma-separated fields and relations to include; prefix with `+`/`-` to add to or remove from the defaults.+</ParamField>++<ParamField query="q" type="string">+ Free-text search term applied to attribute fields.+</ParamField>++<ParamField query="id" type="string | string[]">+ Filter by one or more attribute IDs.+</ParamField>++<ParamField query="handle" type="string | string[]">+ Filter by one or more attribute handles.+</ParamField>++<ParamField query="type" type="string | string[]">+ Filter by attribute type. Values: `single_select`, `multi_select`, `unit`, `toggle`, `text`.+</ParamField>++<ParamField query="is_variant_axis" type="boolean">+ Filter attributes that define variant axes.+</ParamField>++<ParamField query="is_filterable" type="boolean">+ Filter attributes usable as storefront filters.+</ParamField>++<ParamField query="created_at" type="object">+ Filter by creation date using operators like `$gt`, `$gte`, `$lt`, `$lte`.+</ParamField>++<ParamField query="updated_at" type="object">+ Filter by update date using operators like `$gt`, `$gte`, `$lt`, `$lte`.+</ParamField>++<ParamField query="$and" type="object[]">+ Join multiple filter objects with a logical AND.+</ParamField>++<ParamField query="$or" type="object[]">+ Join multiple filter objects with a logical OR.+</ParamField>++## Response++<ResponseField name="product_attributes" type="object[]">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The attribute's ID.</ResponseField>+ <ResponseField name="name" type="string">The attribute's display name.</ResponseField>+ <ResponseField name="handle" type="string">URL-safe handle.</ResponseField>+ <ResponseField name="description" type="string | null">The attribute's description.</ResponseField>+ <ResponseField name="type" type="string">One of `single_select`, `multi_select`, `unit`, `toggle`, `text`.</ResponseField>+ <ResponseField name="is_required" type="boolean">Whether sellers must set a value.</ResponseField>+ <ResponseField name="is_filterable" type="boolean">Whether the attribute can drive storefront filters.</ResponseField>+ <ResponseField name="is_variant_axis" type="boolean">Whether the attribute defines a variant axis.</ResponseField>+ <ResponseField name="product_id" type="null">Always `null` on the store API (global attributes only).</ResponseField>+ <ResponseField name="rank" type="number">Sort rank.</ResponseField>+ <ResponseField name="values" type="object[]">The attribute's predefined values.</ResponseField>+ <ResponseField name="metadata" type="object | null">Custom key-value data.</ResponseField>+ <ResponseField name="created_at" type="string">Creation timestamp.</ResponseField>+ <ResponseField name="updated_at" type="string">Last update timestamp.</ResponseField>+ </Expandable>+</ResponseField>++<ResponseField name="count" type="number">Total number of matching attributes.</ResponseField>+<ResponseField name="offset" type="number">Number of skipped attributes.</ResponseField>+<ResponseField name="limit" type="number">Maximum number of returned attributes.</ResponseField>++<RequestExample>+```bash cURL+curl 'http://localhost:9000/store/product-attributes?is_filterable=true' \+ -H 'x-publishable-api-key: pk_01JB2K3XYZ'+```++```ts JS Client+const { product_attributes, count } = await client.store.productAttributes.query({+ is_filterable: true,+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "product_attributes": [+ {+ "id": "attr_01JB2K7A1B",+ "name": "Material",+ "handle": "material",+ "description": null,+ "type": "single_select",+ "is_required": false,+ "is_filterable": true,+ "is_variant_axis": false,+ "product_id": null,+ "rank": 0,+ "values": [+ { "id": "attrval_01JB2K7C2D", "name": "Linen", "rank": 0 },+ { "id": "attrval_01JB2K7E3F", "name": "Cotton", "rank": 1 }+ ],+ "metadata": null,+ "created_at": "2026-05-01T10:00:00.000Z",+ "updated_at": "2026-05-01T10:00:00.000Z"+ }+ ],+ "count": 5,+ "offset": 0,+ "limit": 50+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/store/product-attributes/retrieve-product-attribute.mdx b/apps/docs/rc/references/api/store/product-attributes/retrieve-product-attribute.mdxnew file mode 100644index 000000000..3f07e3a78--- /dev/null+++ b/apps/docs/rc/references/api/store/product-attributes/retrieve-product-attribute.mdx@@ -0,0 +1,78 @@+---+title: "Retrieve Product Attribute"+api: "GET /store/product-attributes/{id}"+description: "Retrieve an active global product attribute by ID."+---++Returns a single active, global product attribute; inactive or product-scoped attributes return a `404`.++## Path parameters++<ParamField path="id" type="string" required>+ The attribute's ID.+</ParamField>++## Query parameters++<ParamField query="fields" type="string">+ Comma-separated fields and relations to include; prefix with `+`/`-` to add to or remove from the defaults.+</ParamField>++## Response++<ResponseField name="product_attribute" type="object">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The attribute's ID.</ResponseField>+ <ResponseField name="name" type="string">The attribute's display name.</ResponseField>+ <ResponseField name="handle" type="string">URL-safe handle.</ResponseField>+ <ResponseField name="description" type="string | null">The attribute's description.</ResponseField>+ <ResponseField name="type" type="string">One of `single_select`, `multi_select`, `unit`, `toggle`, `text`.</ResponseField>+ <ResponseField name="is_required" type="boolean">Whether sellers must set a value.</ResponseField>+ <ResponseField name="is_filterable" type="boolean">Whether the attribute can drive storefront filters.</ResponseField>+ <ResponseField name="is_variant_axis" type="boolean">Whether the attribute defines a variant axis.</ResponseField>+ <ResponseField name="product_id" type="null">Always `null` on the store API (global attributes only).</ResponseField>+ <ResponseField name="rank" type="number">Sort rank.</ResponseField>+ <ResponseField name="values" type="object[]">The attribute's predefined values.</ResponseField>+ <ResponseField name="metadata" type="object | null">Custom key-value data.</ResponseField>+ <ResponseField name="created_at" type="string">Creation timestamp.</ResponseField>+ <ResponseField name="updated_at" type="string">Last update timestamp.</ResponseField>+ </Expandable>+</ResponseField>++<RequestExample>+```bash cURL+curl 'http://localhost:9000/store/product-attributes/attr_01JB2K7A1B' \+ -H 'x-publishable-api-key: pk_01JB2K3XYZ'+```++```ts JS Client+const { product_attribute } = await client.store.productAttributes.$id.query({+ $id: "attr_01JB2K7A1B",+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "product_attribute": {+ "id": "attr_01JB2K7A1B",+ "name": "Material",+ "handle": "material",+ "description": null,+ "type": "single_select",+ "is_required": false,+ "is_filterable": true,+ "is_variant_axis": false,+ "product_id": null,+ "rank": 0,+ "values": [+ { "id": "attrval_01JB2K7C2D", "name": "Linen", "rank": 0 }+ ],+ "metadata": null,+ "created_at": "2026-05-01T10:00:00.000Z",+ "updated_at": "2026-05-01T10:00:00.000Z"+ }+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/store/product-categories/list-product-categories.mdx b/apps/docs/rc/references/api/store/product-categories/list-product-categories.mdxnew file mode 100644index 000000000..9832caac4--- /dev/null+++ b/apps/docs/rc/references/api/store/product-categories/list-product-categories.mdx@@ -0,0 +1,126 @@+---+title: "List Product Categories"+api: "GET /store/product-categories"+description: "Retrieve active, public product categories."+---++Returns a paginated list of product categories; inactive and internal categories are always excluded.++## Query parameters++<ParamField query="limit" type="number" default="50">+ Maximum number of categories to return.+</ParamField>++<ParamField query="offset" type="number" default="0">+ Number of categories to skip before collecting results.+</ParamField>++<ParamField query="order" type="string">+ Field to sort by, prefixed with `-` for descending order.+</ParamField>++<ParamField query="fields" type="string">+ Comma-separated fields and relations to include; prefix with `+`/`-` to add to or remove from the defaults.+</ParamField>++<ParamField query="q" type="string">+ Free-text search term applied to category fields.+</ParamField>++<ParamField query="id" type="string | string[]">+ Filter by one or more category IDs.+</ParamField>++<ParamField query="handle" type="string | string[]">+ Filter by one or more category handles.+</ParamField>++<ParamField query="parent_category_id" type="string | string[]">+ Filter by parent category ID; pass `null` to fetch top-level categories.+</ParamField>++<ParamField query="include_ancestors_tree" type="boolean">+ Include each category's ancestors in `parent_category`.+</ParamField>++<ParamField query="include_descendants_tree" type="boolean">+ Include each category's descendants in `category_children`.+</ParamField>++<ParamField query="created_at" type="object">+ Filter by creation date using operators like `$gt`, `$gte`, `$lt`, `$lte`.+</ParamField>++<ParamField query="updated_at" type="object">+ Filter by update date using operators like `$gt`, `$gte`, `$lt`, `$lte`.+</ParamField>++<ParamField query="$and" type="object[]">+ Join multiple filter objects with a logical AND.+</ParamField>++<ParamField query="$or" type="object[]">+ Join multiple filter objects with a logical OR.+</ParamField>++## Response++<ResponseField name="product_categories" type="object[]">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The category's ID.</ResponseField>+ <ResponseField name="name" type="string">The category's name.</ResponseField>+ <ResponseField name="description" type="string">The category's description.</ResponseField>+ <ResponseField name="handle" type="string">URL-safe handle.</ResponseField>+ <ResponseField name="rank" type="number">Sort rank among siblings.</ResponseField>+ <ResponseField name="parent_category_id" type="string | null">ID of the parent category.</ResponseField>+ <ResponseField name="parent_category" type="object | null">The parent category.</ResponseField>+ <ResponseField name="category_children" type="object[]">Direct child categories.</ResponseField>+ <ResponseField name="metadata" type="object | null">Custom key-value data.</ResponseField>+ <ResponseField name="created_at" type="string">Creation timestamp.</ResponseField>+ <ResponseField name="updated_at" type="string">Last update timestamp.</ResponseField>+ </Expandable>+</ResponseField>++<ResponseField name="count" type="number">Total number of matching categories.</ResponseField>+<ResponseField name="offset" type="number">Number of skipped categories.</ResponseField>+<ResponseField name="limit" type="number">Maximum number of returned categories.</ResponseField>++<RequestExample>+```bash cURL+curl 'http://localhost:9000/store/product-categories?parent_category_id=null&limit=50' \+ -H 'x-publishable-api-key: pk_01JB2K3XYZ'+```++```ts JS Client+const { product_categories, count } = await client.store.productCategories.query({+ parent_category_id: "null",+ limit: 50,+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "product_categories": [+ {+ "id": "pcat_01JB2K6A2B",+ "name": "Shirts",+ "description": "",+ "handle": "shirts",+ "rank": 0,+ "parent_category_id": null,+ "parent_category": null,+ "category_children": [{ "id": "pcat_01JB2K6H7J", "name": "Linen Shirts" }],+ "metadata": null,+ "created_at": "2026-05-01T10:00:00.000Z",+ "updated_at": "2026-05-01T10:00:00.000Z"+ }+ ],+ "count": 8,+ "offset": 0,+ "limit": 50+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/store/product-categories/retrieve-product-category.mdx b/apps/docs/rc/references/api/store/product-categories/retrieve-product-category.mdxnew file mode 100644index 000000000..25c30e027--- /dev/null+++ b/apps/docs/rc/references/api/store/product-categories/retrieve-product-category.mdx@@ -0,0 +1,79 @@+---+title: "Retrieve Product Category"+api: "GET /store/product-categories/{id}"+description: "Retrieve an active, public product category by ID."+---++Returns a single category; inactive or internal categories return a `404`.++## Path parameters++<ParamField path="id" type="string" required>+ The category's ID.+</ParamField>++## Query parameters++<ParamField query="fields" type="string">+ Comma-separated fields and relations to include; prefix with `+`/`-` to add to or remove from the defaults.+</ParamField>++<ParamField query="include_ancestors_tree" type="boolean">+ Include the category's ancestors in `parent_category`.+</ParamField>++<ParamField query="include_descendants_tree" type="boolean">+ Include the category's descendants in `category_children`.+</ParamField>++## Response++<ResponseField name="product_category" type="object">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The category's ID.</ResponseField>+ <ResponseField name="name" type="string">The category's name.</ResponseField>+ <ResponseField name="description" type="string">The category's description.</ResponseField>+ <ResponseField name="handle" type="string">URL-safe handle.</ResponseField>+ <ResponseField name="rank" type="number">Sort rank among siblings.</ResponseField>+ <ResponseField name="parent_category_id" type="string | null">ID of the parent category.</ResponseField>+ <ResponseField name="parent_category" type="object | null">The parent category.</ResponseField>+ <ResponseField name="category_children" type="object[]">Direct child categories.</ResponseField>+ <ResponseField name="metadata" type="object | null">Custom key-value data.</ResponseField>+ <ResponseField name="created_at" type="string">Creation timestamp.</ResponseField>+ <ResponseField name="updated_at" type="string">Last update timestamp.</ResponseField>+ </Expandable>+</ResponseField>++<RequestExample>+```bash cURL+curl 'http://localhost:9000/store/product-categories/pcat_01JB2K6A2B?include_descendants_tree=true' \+ -H 'x-publishable-api-key: pk_01JB2K3XYZ'+```++```ts JS Client+const { product_category } = await client.store.productCategories.$id.query({+ $id: "pcat_01JB2K6A2B",+ include_descendants_tree: true,+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "product_category": {+ "id": "pcat_01JB2K6A2B",+ "name": "Shirts",+ "description": "",+ "handle": "shirts",+ "rank": 0,+ "parent_category_id": null,+ "parent_category": null,+ "category_children": [{ "id": "pcat_01JB2K6H7J", "name": "Linen Shirts" }],+ "metadata": null,+ "created_at": "2026-05-01T10:00:00.000Z",+ "updated_at": "2026-05-01T10:00:00.000Z"+ }+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/store/products/list-products.mdx b/apps/docs/rc/references/api/store/products/list-products.mdxnew file mode 100644index 000000000..a2e93f0fc--- /dev/null+++ b/apps/docs/rc/references/api/store/products/list-products.mdx@@ -0,0 +1,184 @@+---+title: "List Products"+api: "GET /store/products"+description: "Retrieve published products from visible sellers."+---++Returns a paginated list of published products belonging to open, visible sellers.++<Note>+ Customer authentication is optional. When a customer token is provided, the customer's group memberships are included in the pricing context, which can change `variants.calculated_price` results. Variant prices are only computed when you request `variants.calculated_price` in `fields` (or pass `region_id`); the calculated price reflects the cheapest offer for each variant.+</Note>++## Query parameters++<ParamField query="limit" type="number" default="50">+ Maximum number of products to return.+</ParamField>++<ParamField query="offset" type="number" default="0">+ Number of products to skip before collecting results.+</ParamField>++<ParamField query="order" type="string">+ Field to sort by, prefixed with `-` for descending order (for example `-created_at`).+</ParamField>++<ParamField query="fields" type="string">+ Comma-separated fields and relations to include; prefix with `+`/`-` to add to or remove from the defaults.+</ParamField>++<ParamField query="q" type="string">+ Free-text search term applied to product fields.+</ParamField>++<ParamField query="id" type="string | string[]">+ Filter by one or more product IDs.+</ParamField>++<ParamField query="title" type="string">+ Filter by exact product title.+</ParamField>++<ParamField query="handle" type="string">+ Filter by product handle.+</ParamField>++<ParamField query="collection_id" type="string | string[]">+ Filter by one or more collection IDs.+</ParamField>++<ParamField query="type_id" type="string | string[]">+ Filter by one or more product type IDs.+</ParamField>++<ParamField query="category_id" type="string | string[]">+ Filter by one or more category IDs; only active, non-internal categories match.+</ParamField>++<ParamField query="tag_id" type="string | string[]">+ Filter by one or more tag IDs.+</ParamField>++<ParamField query="is_giftcard" type="boolean">+ Filter by gift-card products.+</ParamField>++<ParamField query="region_id" type="string">+ Region used to build the pricing context for `variants.calculated_price`.+</ParamField>++<ParamField query="currency_code" type="string">+ Currency used in the pricing context.+</ParamField>++<ParamField query="created_at" type="object">+ Filter by creation date using operators like `$gt`, `$gte`, `$lt`, `$lte`.+</ParamField>++<ParamField query="updated_at" type="object">+ Filter by update date using operators like `$gt`, `$gte`, `$lt`, `$lte`.+</ParamField>++<ParamField query="$and" type="object[]">+ Join multiple filter objects with a logical AND.+</ParamField>++<ParamField query="$or" type="object[]">+ Join multiple filter objects with a logical OR.+</ParamField>++## Response++<ResponseField name="products" type="object[]">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The product's ID.</ResponseField>+ <ResponseField name="title" type="string">The product's title.</ResponseField>+ <ResponseField name="subtitle" type="string | null">The product's subtitle.</ResponseField>+ <ResponseField name="status" type="string">Always `published` on the store API.</ResponseField>+ <ResponseField name="description" type="string | null">The product's description.</ResponseField>+ <ResponseField name="handle" type="string">URL-safe handle.</ResponseField>+ <ResponseField name="is_giftcard" type="boolean">Whether the product is a gift card.</ResponseField>+ <ResponseField name="discountable" type="boolean">Whether promotions can apply to the product.</ResponseField>+ <ResponseField name="thumbnail" type="string | null">Thumbnail URL.</ResponseField>+ <ResponseField name="collection" type="object | null">The product's collection.</ResponseField>+ <ResponseField name="type" type="object | null">The product's type.</ResponseField>+ <ResponseField name="tags" type="object[]">The product's tags.</ResponseField>+ <ResponseField name="images" type="object[]">The product's images.</ResponseField>+ <ResponseField name="categories" type="object[]">The product's categories.</ResponseField>+ <ResponseField name="options" type="object[]">Product options with their values.</ResponseField>+ <ResponseField name="variants" type="object[]">+ Product variants with their options; `calculated_price` and `offer_id` are added when requested and reflect the cheapest offer.+ </ResponseField>+ <ResponseField name="product_attribute_values" type="object[]">Attribute values assigned to the product, each with its parent attribute.</ResponseField>+ <ResponseField name="scoped_attributes" type="object[]">Attributes scoped to this product, with their values.</ResponseField>+ <ResponseField name="metadata" type="object | null">Custom key-value data.</ResponseField>+ <ResponseField name="created_at" type="string">Creation timestamp.</ResponseField>+ <ResponseField name="updated_at" type="string">Last update timestamp.</ResponseField>+ </Expandable>+</ResponseField>++<ResponseField name="count" type="number">Total number of matching products.</ResponseField>+<ResponseField name="offset" type="number">Number of skipped products.</ResponseField>+<ResponseField name="limit" type="number">Maximum number of returned products.</ResponseField>++<RequestExample>+```bash cURL+curl 'http://localhost:9000/store/products?limit=20®ion_id=reg_01JB2K4S1T&fields=*variants.calculated_price' \+ -H 'x-publishable-api-key: pk_01JB2K3XYZ'+```++```ts JS Client+const { products, count } = await client.store.products.query({+ limit: 20,+ region_id: "reg_01JB2K4S1T",+ fields: "*variants.calculated_price",+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "products": [+ {+ "id": "prod_01JB2K5M8N",+ "title": "Linen Shirt",+ "subtitle": null,+ "status": "published",+ "description": "A breathable linen shirt.",+ "handle": "linen-shirt",+ "is_giftcard": false,+ "discountable": true,+ "thumbnail": "https://cdn.example.com/linen-shirt.png",+ "collection": null,+ "type": null,+ "tags": [],+ "images": [],+ "categories": [{ "id": "pcat_01JB2K6A2B", "name": "Shirts" }],+ "options": [{ "id": "opt_01JB2K6C3D", "title": "Size", "values": [{ "value": "M" }] }],+ "variants": [+ {+ "id": "variant_01JB2K6E4F",+ "title": "M",+ "offer_id": "offer_01JB2K6G5H",+ "calculated_price": {+ "calculated_amount": 4500,+ "original_amount": 5000,+ "currency_code": "eur"+ }+ }+ ],+ "product_attribute_values": [],+ "scoped_attributes": [],+ "metadata": null,+ "created_at": "2026-05-01T10:00:00.000Z",+ "updated_at": "2026-05-01T10:00:00.000Z"+ }+ ],+ "count": 42,+ "offset": 0,+ "limit": 20+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/store/products/retrieve-product.mdx b/apps/docs/rc/references/api/store/products/retrieve-product.mdxnew file mode 100644index 000000000..3e10220e3--- /dev/null+++ b/apps/docs/rc/references/api/store/products/retrieve-product.mdx@@ -0,0 +1,107 @@+---+title: "Retrieve Product"+api: "GET /store/products/{id}"+description: "Retrieve a published product by ID."+---++Returns a single published product; a `404` is returned if the product is unpublished or its seller is not visible.++<Note>+ Customer authentication is optional. When a customer token is provided, the customer's group memberships enter the pricing context used for `variants.calculated_price`. Prices are computed only when `variants.calculated_price` is requested in `fields` (or `region_id` is passed) and reflect the cheapest offer per variant.+</Note>++## Path parameters++<ParamField path="id" type="string" required>+ The product's ID.+</ParamField>++## Query parameters++<ParamField query="fields" type="string">+ Comma-separated fields and relations to include; prefix with `+`/`-` to add to or remove from the defaults.+</ParamField>++<ParamField query="region_id" type="string">+ Region used to build the pricing context for `variants.calculated_price`.+</ParamField>++<ParamField query="currency_code" type="string">+ Currency used in the pricing context.+</ParamField>++## Response++<ResponseField name="product" type="object">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The product's ID.</ResponseField>+ <ResponseField name="title" type="string">The product's title.</ResponseField>+ <ResponseField name="handle" type="string">URL-safe handle.</ResponseField>+ <ResponseField name="status" type="string">Always `published` on the store API.</ResponseField>+ <ResponseField name="description" type="string | null">The product's description.</ResponseField>+ <ResponseField name="thumbnail" type="string | null">Thumbnail URL.</ResponseField>+ <ResponseField name="collection" type="object | null">The product's collection.</ResponseField>+ <ResponseField name="type" type="object | null">The product's type.</ResponseField>+ <ResponseField name="tags" type="object[]">The product's tags.</ResponseField>+ <ResponseField name="images" type="object[]">The product's images.</ResponseField>+ <ResponseField name="categories" type="object[]">The product's categories.</ResponseField>+ <ResponseField name="options" type="object[]">Product options with their values.</ResponseField>+ <ResponseField name="variants" type="object[]">+ Product variants; `calculated_price` and `offer_id` are added when requested and reflect the cheapest offer.+ </ResponseField>+ <ResponseField name="product_attribute_values" type="object[]">Attribute values assigned to the product.</ResponseField>+ <ResponseField name="scoped_attributes" type="object[]">Attributes scoped to this product, with their values.</ResponseField>+ <ResponseField name="metadata" type="object | null">Custom key-value data.</ResponseField>+ </Expandable>+</ResponseField>++<RequestExample>+```bash cURL+curl 'http://localhost:9000/store/products/prod_01JB2K5M8N?region_id=reg_01JB2K4S1T&fields=*variants.calculated_price' \+ -H 'x-publishable-api-key: pk_01JB2K3XYZ'+```++```ts JS Client+const { product } = await client.store.products.$id.query({+ $id: "prod_01JB2K5M8N",+ region_id: "reg_01JB2K4S1T",+ fields: "*variants.calculated_price",+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "product": {+ "id": "prod_01JB2K5M8N",+ "title": "Linen Shirt",+ "handle": "linen-shirt",+ "status": "published",+ "description": "A breathable linen shirt.",+ "thumbnail": "https://cdn.example.com/linen-shirt.png",+ "collection": null,+ "type": null,+ "tags": [],+ "images": [],+ "categories": [{ "id": "pcat_01JB2K6A2B", "name": "Shirts" }],+ "options": [{ "id": "opt_01JB2K6C3D", "title": "Size", "values": [{ "value": "M" }] }],+ "variants": [+ {+ "id": "variant_01JB2K6E4F",+ "title": "M",+ "offer_id": "offer_01JB2K6G5H",+ "calculated_price": {+ "calculated_amount": 4500,+ "original_amount": 5000,+ "currency_code": "eur"+ }+ }+ ],+ "product_attribute_values": [],+ "scoped_attributes": [],+ "metadata": null+ }+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/store/search/search.mdx b/apps/docs/rc/references/api/store/search/search.mdxnew file mode 100644index 000000000..e480d358c--- /dev/null+++ b/apps/docs/rc/references/api/store/search/search.mdx@@ -0,0 +1,136 @@+---+title: "Search"+api: "POST /store/search"+description: "Query the search index across products and offers."+---++Runs a full-text query against the active search provider's index of products and offers.++<Note>+ Customer authentication is optional. When a customer token is provided together with `region_id`, the customer's group memberships enter the pricing context, so hits can carry group-specific `calculated_price` values.+</Note>++## Body parameters++<ParamField body="q" type="string" default="">+ Search query.+</ParamField>++<ParamField body="limit" type="number" default="12">+ Maximum number of hits to return; minimum `1`, maximum `100`.+</ParamField>++<ParamField body="offset" type="number" default="0">+ Number of hits to skip before collecting results.+</ParamField>++<ParamField body="region_id" type="string">+ Region used to build the pricing context; without it, hits have no `calculated_price`.+</ParamField>++<ParamField body="country_code" type="string">+ Country used for the tax context when the region has automatic taxes.+</ParamField>++<ParamField body="province" type="string">+ Province used for the tax context.+</ParamField>++<ParamField body="filters" type="object">+ Provider-owned filter object passed straight to the active search provider, which defines its shape (for example category, collection, or attribute filters).+</ParamField>++## Response++<ResponseField name="hits" type="object[]">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The document's ID.</ResponseField>+ <ResponseField name="type" type="string">One of `product` or `offer`.</ResponseField>+ <ResponseField name="title" type="string">Display title.</ResponseField>+ <ResponseField name="description" type="string">Description text.</ResponseField>+ <ResponseField name="handle" type="string">URL-safe handle.</ResponseField>+ <ResponseField name="thumbnail" type="string">Thumbnail URL.</ResponseField>+ <ResponseField name="seller_handle" type="string">Handle of the owning seller.</ResponseField>+ <ResponseField name="collection_id" type="string">ID of the product's collection.</ResponseField>+ <ResponseField name="collection" type="string">Title of the product's collection.</ResponseField>+ <ResponseField name="category_ids" type="string[]">IDs of the product's categories.</ResponseField>+ <ResponseField name="categories" type="string[]">Names of the product's categories.</ResponseField>+ <ResponseField name="product_id" type="string">Product ID (offer documents).</ResponseField>+ <ResponseField name="variant_id" type="string">Variant ID (offer documents).</ResponseField>+ <ResponseField name="sku" type="string">Offer SKU (offer documents).</ResponseField>+ <ResponseField name="attributes" type="object[]">Filterable attributes with their values.</ResponseField>+ <ResponseField name="calculated_price" type="object | null">+ Price for the requested pricing context, with `calculated_amount`, `original_amount`, and `currency_code`.+ </ResponseField>+ </Expandable>+</ResponseField>++<ResponseField name="count" type="number">Total number of matching documents.</ResponseField>+<ResponseField name="limit" type="number">The applied limit.</ResponseField>+<ResponseField name="offset" type="number">The applied offset.</ResponseField>++<ResponseField name="facets" type="object">+ <Expandable title="properties">+ <ResponseField name="collections" type="object[]">Collection facets with `id`, `label`, and `count`.</ResponseField>+ <ResponseField name="categories" type="object[]">Category facets with `id`, `label`, and `count`.</ResponseField>+ <ResponseField name="attributes" type="object[]">Attribute facets with `handle`, `label`, and value counts.</ResponseField>+ </Expandable>+</ResponseField>++<RequestExample>+```bash cURL+curl -X POST 'http://localhost:9000/store/search' \+ -H 'Content-Type: application/json' \+ -H 'x-publishable-api-key: pk_01JB2K3XYZ' \+ -d '{"q": "linen shirt", "limit": 12, "region_id": "reg_01JB2K4S1T"}'+```++```ts JS Client+const { hits, count, facets } = await client.store.search.mutate({+ q: "linen shirt",+ limit: 12,+ region_id: "reg_01JB2K4S1T",+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "hits": [+ {+ "id": "offer_01JB2K6G5H",+ "type": "offer",+ "title": "Linen Shirt",+ "handle": "linen-shirt",+ "thumbnail": "https://cdn.example.com/linen-shirt.png",+ "seller_handle": "nordic-textiles",+ "product_id": "prod_01JB2K5M8N",+ "variant_id": "variant_01JB2K6E4F",+ "sku": "NT-LINEN-M",+ "category_ids": ["pcat_01JB2K6A2B"],+ "categories": ["Shirts"],+ "calculated_price": {+ "calculated_amount": 4500,+ "original_amount": 5000,+ "currency_code": "eur"+ }+ }+ ],+ "count": 42,+ "limit": 12,+ "offset": 0,+ "facets": {+ "collections": [],+ "categories": [{ "id": "pcat_01JB2K6A2B", "label": "Shirts", "count": 42 }],+ "attributes": [+ {+ "handle": "material",+ "label": "Material",+ "values": [{ "id": "attrval_01JB2K7C2D", "label": "Linen", "count": 30 }]+ }+ ]+ }+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/store/sellers/list-sellers.mdx b/apps/docs/rc/references/api/store/sellers/list-sellers.mdxnew file mode 100644index 000000000..c2a407b93--- /dev/null+++ b/apps/docs/rc/references/api/store/sellers/list-sellers.mdx@@ -0,0 +1,105 @@+---+title: "List Sellers"+api: "GET /store/sellers"+description: "Retrieve open sellers visible on the storefront."+---++Returns a paginated list of sellers; only sellers with status `open` that are outside any scheduled closure window (`closed_from` / `closed_to`) are included.++## Query parameters++<ParamField query="limit" type="number" default="50">+ Maximum number of sellers to return.+</ParamField>++<ParamField query="offset" type="number" default="0">+ Number of sellers to skip before collecting results.+</ParamField>++<ParamField query="order" type="string">+ Field to sort by, prefixed with `-` for descending order.+</ParamField>++<ParamField query="fields" type="string">+ Comma-separated fields and relations to include; prefix with `+`/`-` to add to or remove from the defaults.+</ParamField>++<ParamField query="q" type="string">+ Free-text search term applied to seller fields.+</ParamField>++<ParamField query="id" type="string | string[]">+ Filter by one or more seller IDs.+</ParamField>++<ParamField query="name" type="string | string[]">+ Filter by one or more seller names.+</ParamField>++<ParamField query="handle" type="string">+ Filter by seller handle.+</ParamField>++<ParamField query="is_premium" type="boolean">+ Filter premium sellers.+</ParamField>++<ParamField query="created_at" type="object">+ Filter by creation date using operators like `$gt`, `$gte`, `$lt`, `$lte`.+</ParamField>++<ParamField query="updated_at" type="object">+ Filter by update date using operators like `$gt`, `$gte`, `$lt`, `$lte`.+</ParamField>++## Response++<ResponseField name="sellers" type="object[]">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The seller's ID.</ResponseField>+ <ResponseField name="name" type="string">The seller's display name.</ResponseField>+ <ResponseField name="handle" type="string">URL-safe handle.</ResponseField>+ <ResponseField name="description" type="string | null">The seller's storefront description.</ResponseField>+ <ResponseField name="logo" type="string | null">Logo URL.</ResponseField>+ <ResponseField name="banner" type="string | null">Banner image URL.</ResponseField>+ <ResponseField name="is_premium" type="boolean">Whether the seller has premium status.</ResponseField>+ <ResponseField name="metadata" type="object | null">Custom key-value data.</ResponseField>+ </Expandable>+</ResponseField>++<ResponseField name="count" type="number">Total number of matching sellers.</ResponseField>+<ResponseField name="offset" type="number">Number of skipped sellers.</ResponseField>+<ResponseField name="limit" type="number">Maximum number of returned sellers.</ResponseField>++<RequestExample>+```bash cURL+curl 'http://localhost:9000/store/sellers?limit=20' \+ -H 'x-publishable-api-key: pk_01JB2K3XYZ'+```++```ts JS Client+const { sellers, count } = await client.store.sellers.query({ limit: 20 })+```+</RequestExample>++<ResponseExample>+```json 200+{+ "sellers": [+ {+ "id": "sel_01JB2K8A1B",+ "name": "Nordic Textiles",+ "handle": "nordic-textiles",+ "description": "Scandinavian linen and wool.",+ "logo": "https://cdn.example.com/nordic-logo.png",+ "banner": null,+ "is_premium": false,+ "metadata": null+ }+ ],+ "count": 12,+ "offset": 0,+ "limit": 20+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/store/sellers/retrieve-seller.mdx b/apps/docs/rc/references/api/store/sellers/retrieve-seller.mdxnew file mode 100644index 000000000..6c5b2df64--- /dev/null+++ b/apps/docs/rc/references/api/store/sellers/retrieve-seller.mdx@@ -0,0 +1,62 @@+---+title: "Retrieve Seller"+api: "GET /store/sellers/{id}"+description: "Retrieve an open seller by ID."+---++Returns a single seller; sellers that are not `open` or are inside a scheduled closure window return a `404`.++## Path parameters++<ParamField path="id" type="string" required>+ The seller's ID.+</ParamField>++## Query parameters++<ParamField query="fields" type="string">+ Comma-separated fields and relations to include; prefix with `+`/`-` to add to or remove from the defaults.+</ParamField>++## Response++<ResponseField name="seller" type="object">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The seller's ID.</ResponseField>+ <ResponseField name="name" type="string">The seller's display name.</ResponseField>+ <ResponseField name="handle" type="string">URL-safe handle.</ResponseField>+ <ResponseField name="description" type="string | null">The seller's storefront description.</ResponseField>+ <ResponseField name="logo" type="string | null">Logo URL.</ResponseField>+ <ResponseField name="banner" type="string | null">Banner image URL.</ResponseField>+ <ResponseField name="is_premium" type="boolean">Whether the seller has premium status.</ResponseField>+ <ResponseField name="metadata" type="object | null">Custom key-value data.</ResponseField>+ </Expandable>+</ResponseField>++<RequestExample>+```bash cURL+curl 'http://localhost:9000/store/sellers/sel_01JB2K8A1B' \+ -H 'x-publishable-api-key: pk_01JB2K3XYZ'+```++```ts JS Client+const { seller } = await client.store.sellers.$id.query({ $id: "sel_01JB2K8A1B" })+```+</RequestExample>++<ResponseExample>+```json 200+{+ "seller": {+ "id": "sel_01JB2K8A1B",+ "name": "Nordic Textiles",+ "handle": "nordic-textiles",+ "description": "Scandinavian linen and wool.",+ "logo": "https://cdn.example.com/nordic-logo.png",+ "banner": null,+ "is_premium": false,+ "metadata": null+ }+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/store/shipping-options/list-shipping-options.mdx b/apps/docs/rc/references/api/store/shipping-options/list-shipping-options.mdxnew file mode 100644index 000000000..8a1ab6b64--- /dev/null+++ b/apps/docs/rc/references/api/store/shipping-options/list-shipping-options.mdx@@ -0,0 +1,74 @@+---+title: "List Shipping Options"+api: "GET /store/shipping-options"+description: "Retrieve available shipping options for a cart, grouped by seller."+---++Returns the shipping options that can fulfill the given cart, grouped by the seller of the items each option applies to.++## Query parameters++<ParamField query="cart_id" type="string" required>+ ID of the cart to list shipping options for.+</ParamField>++<ParamField query="is_return" type="boolean">+ Set to `true` to list return shipping options.+</ParamField>++<ParamField query="fields" type="string">+ Comma-separated fields and relations to include on each shipping option; prefix with `+`/`-` to add to or remove from the defaults.+</ParamField>++## Response++<ResponseField name="shipping_options" type="object">+ Map of seller ID to the shipping options available for that seller's items.+ <Expandable title="properties">+ <ResponseField name="{seller_id}" type="object[]">+ Shipping options for the seller, each with `id`, `name`, `price_type`, `provider_id`, calculated `amount`, and `type`.+ </ResponseField>+ </Expandable>+</ResponseField>++<RequestExample>+```bash cURL+curl 'http://localhost:9000/store/shipping-options?cart_id=cart_01JB2KB1CD' \+ -H 'x-publishable-api-key: pk_01JB2K3XYZ'+```++```ts JS Client+const { shipping_options } = await client.store.shippingOptions.query({+ cart_id: "cart_01JB2KB1CD",+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "shipping_options": {+ "sel_01JB2K8A1B": [+ {+ "id": "so_01JB2KC4GH",+ "name": "Standard Shipping",+ "price_type": "flat",+ "provider_id": "manual_manual",+ "amount": 900,+ "type": { "label": "Standard", "code": "standard" }+ }+ ],+ "sel_01JB2KF9ST": [+ {+ "id": "so_01JB2KG0UV",+ "name": "Express",+ "price_type": "flat",+ "provider_id": "manual_manual",+ "amount": 1500,+ "type": { "label": "Express", "code": "express" }+ }+ ]+ }+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/vendor.mdx b/apps/docs/rc/references/api/vendor.mdxnew file mode 100644index 000000000..26eea29f9--- /dev/null+++ b/apps/docs/rc/references/api/vendor.mdx@@ -0,0 +1,150 @@+---+title: "Vendor API"+description: "Seller-scoped routes under /vendor/* — every request operates on the authenticated member's selected seller."+---++The Vendor API is the seller's surface. Every route is scoped to one seller through the member authentication and `x-seller-id` mechanism described in [API conventions](/rc/references/api/conventions#vendor) — a seller can never read or mutate another seller's data.++## Account and team++| Method | Path | Purpose |+| --- | --- | --- |+| `GET` `POST` | `/vendor/sellers` | Registration lookup / create a seller account (**public**) |+| `POST` | `/vendor/sellers/select` | Select the active seller for the session |+| `GET` `POST` | `/vendor/sellers/me` | Retrieve / update the current seller |+| `POST` | `/vendor/sellers/:id/address` | Upsert the seller address |+| `POST` | `/vendor/sellers/:id/payment-details` | Upsert payment details |+| `POST` `DELETE` | `/vendor/sellers/:id/professional-details` | Upsert / remove professional details |+| `GET` `POST` | `/vendor/sellers/:id/members` | List / manage members |+| `POST` `DELETE` | `/vendor/sellers/:id/members/:member_id` | Update role / remove a member |+| `GET` | `/vendor/sellers/:id/members/me` | The current member within this seller |+| `GET` | `/vendor/sellers/:id/members/invites` | List pending invites |+| `GET` `POST` | `/vendor/members/me` | Retrieve / update the current member profile |+| `POST` | `/vendor/members/invites/accept` | Accept an invite (**public**) |++## Products and offers++Products are shared master records: updates stage a [change request](/rc/references/modules/product-edit) rather than writing directly, and the list shows products the seller created plus published, unrestricted products.++| Method | Path | Purpose |+| --- | --- | --- |+| `GET` `POST` | `/vendor/products` | List / create a product (created as `proposed`) |+| `GET` `POST` `DELETE` | `/vendor/products/:id` | Retrieve / request an update / request deletion |+| `GET` | `/vendor/products/:id/preview` | Preview with pending changes applied |+| `POST` | `/vendor/products/:id/cancel` | Withdraw the pending change request |+| `POST` | `/vendor/products/:id/attributes/batch` | Batch add / update / remove attributes |+| `GET` `POST` | `/vendor/products/:id/variants` | List / create variants |+| `GET` `POST` `DELETE` | `/vendor/products/:id/variants/:variant_id` | Retrieve / update / delete a variant |+| `GET` | `/vendor/product-variants` | List variants across products |+| `GET` `POST` | `/vendor/offers` | List / create offers |+| `GET` `POST` `DELETE` | `/vendor/offers/:id` | Retrieve / update / delete an offer |+| `POST` | `/vendor/offers/batch` | Batch create offers |+| `POST` | `/vendor/offers/:id/inventory-items/batch` | Link inventory items to an offer |++### Catalog taxonomy (read-only)++`GET /vendor/product-categories[/:id]`, `/vendor/product-tags[/:id]`, `/vendor/product-types[/:id]`, `/vendor/product-attributes[/:id]`, `/vendor/collections[/:id]` — plus `POST /vendor/product-categories/:id/products` and `POST /vendor/collections/:id/products` to place own products.++## Orders and fulfillment++| Method | Path | Purpose |+| --- | --- | --- |+| `GET` | `/vendor/orders` | List the seller's orders |+| `GET` | `/vendor/orders/:id` | Retrieve an order |+| `GET` | `/vendor/orders/:id/preview` | Preview with pending edits |+| `GET` | `/vendor/orders/:id/changes` | List order changes |+| `GET` | `/vendor/orders/:id/commission-lines` | Commission charged on the order |+| `POST` | `/vendor/orders/:id/complete` | Complete the order |+| `POST` | `/vendor/orders/:id/cancel` | Cancel the order |+| `POST` | `/vendor/orders/:id/fulfillments` | Create a fulfillment |+| `POST` | `/vendor/orders/:id/fulfillments/:fulfillment_id/cancel` | Cancel a fulfillment |+| `POST` | `/vendor/orders/:id/fulfillments/:fulfillment_id/mark-as-delivered` | Mark delivered |+| `POST` | `/vendor/orders/:id/fulfillments/:fulfillment_id/shipments` | Create a shipment |++### Order edits, returns, claims, exchanges++Full RMA suites exist per domain, following the same action pattern Medusa uses (begin → stage item/shipping actions → request → confirm):++- `POST /vendor/order-edits` + `/:id/request|confirm|items|shipping-method` sub-routes+- `GET/POST /vendor/returns` + `/:id/request-items|dismiss-items|receive-items|receive|shipping-method` sub-routes+- `GET/POST /vendor/claims` + `/:id/claim-items|inbound|outbound` sub-routes+- `GET/POST /vendor/exchanges` + `/:id/inbound|outbound` sub-routes+- `GET /vendor/return-reasons[/:id]`, `GET /vendor/refund-reasons[/:id]`++### Payments++| Method | Path | Purpose |+| --- | --- | --- |+| `GET` | `/vendor/payments[/:id]` | List / retrieve payments |+| `POST` | `/vendor/payments/:id/capture` | Capture a payment |+| `POST` | `/vendor/payments/:id/refund` | Refund a payment |+| `GET` | `/vendor/payments/payment-providers` | List payment providers |++## Payouts++| Method | Path | Purpose |+| --- | --- | --- |+| `GET` | `/vendor/payouts[/:id]` | Payout history |+| `GET` `POST` | `/vendor/payout-accounts` | Retrieve / create the payout account |+| `POST` | `/vendor/payout-accounts/:id/onboarding` | Start or refresh provider onboarding |++## Inventory and stock locations++| Method | Path | Purpose |+| --- | --- | --- |+| `GET` `POST` | `/vendor/inventory-items` | List / create inventory items |+| `GET` `POST` `DELETE` | `/vendor/inventory-items/:id` | Retrieve / update / delete an item |+| `GET` `POST` | `/vendor/inventory-items/:id/location-levels` | List / create location levels |+| `POST` `DELETE` | `/vendor/inventory-items/:id/location-levels/:location_id` | Update / delete a level |+| `POST` | `/vendor/inventory-items/location-levels/batch` | Batch update levels |+| `GET` `POST` | `/vendor/reservations[/:id]` | Manage reservations |+| `GET` `POST` | `/vendor/stock-locations` | List / create stock locations |+| `GET` `POST` `DELETE` | `/vendor/stock-locations/:id` | Retrieve / update / delete a location |+| `POST` | `/vendor/stock-locations/:id/fulfillment-sets` | Create a fulfillment set |+| `POST` | `/vendor/stock-locations/:id/fulfillment-providers` | Link fulfillment providers |+| `POST` | `/vendor/stock-locations/:id/sales-channels` | Link sales channels |++## Shipping++| Method | Path | Purpose |+| --- | --- | --- |+| `GET` `POST` | `/vendor/shipping-options` | List / create shipping options |+| `GET` `POST` `DELETE` | `/vendor/shipping-options/:id` | Retrieve / update / delete an option |+| `POST` | `/vendor/shipping-options/:id/rules/batch` | Batch manage option rules |+| `GET` | `/vendor/shipping-option-types[/:id]` | List option types |+| `GET` `POST` | `/vendor/shipping-profiles` | List / create profiles |+| `GET` `POST` `DELETE` | `/vendor/shipping-profiles/:id` | Retrieve / update / delete a profile |+| `DELETE` | `/vendor/fulfillment-sets/:id` | Delete a fulfillment set |+| `POST` | `/vendor/fulfillment-sets/:id/service-zones` | Create a service zone |+| `GET` `POST` `DELETE` | `/vendor/fulfillment-sets/:id/service-zones/:zone_id` | Manage a service zone |+| `GET` | `/vendor/fulfillment-providers` | List fulfillment providers |++## Pricing, promotions, customers++| Method | Path | Purpose |+| --- | --- | --- |+| `GET` `POST` | `/vendor/price-lists[/:id]` | Manage price lists (+ `/:id/prices`, `/:id/prices/batch`, `/:id/products`) |+| `GET` | `/vendor/price-preferences[/:id]` | Read price preferences |+| `GET` `POST` | `/vendor/promotions[/:id]` | Manage promotions (+ rule batch sub-routes and rule option lookups) |+| `GET` `POST` | `/vendor/campaigns[/:id]` | Manage campaigns (+ `/:id/promotions`) |+| `GET` | `/vendor/customers[/:id]` | The seller's customers |+| `POST` | `/vendor/customers/:id/customer-groups` | Manage a customer's groups |+| `GET` `POST` | `/vendor/customer-groups[/:id]` | Manage customer groups (+ `/:id/customers`) |++## Configuration and misc++| Method | Path | Purpose |+| --- | --- | --- |+| `GET` `POST` | `/vendor/sales-channels[/:id]` | Manage sales channels (+ `/:id/products`) |+| `GET` | `/vendor/regions[/:id]` | Read regions |+| `GET` | `/vendor/currencies[/:code]` | Read currencies |+| `GET` | `/vendor/stores` | List stores (**public**) |+| `GET` | `/vendor/feature-flags` | Feature flags (**public**) |+| `POST` | `/vendor/uploads` | Upload files |++## Next steps++<CardGroup cols={2}>+ <Card title="Store API" href="/rc/references/api/store" />+ <Card title="API Client" href="/rc/tools/api-client" />+</CardGroup>diff --git a/apps/docs/rc/references/api/vendor/members/accept-member-invite.mdx b/apps/docs/rc/references/api/vendor/members/accept-member-invite.mdxnew file mode 100644index 000000000..402478706--- /dev/null+++ b/apps/docs/rc/references/api/vendor/members/accept-member-invite.mdx@@ -0,0 +1,65 @@+---+title: "Accept Member Invite"+api: "POST /vendor/members/invites/accept"+description: "Accept a seller team invite using its token."+---++Accepts a member invite and joins the inviting seller's team.++<Note>+ This is a public route — no `Authorization` or `x-seller-id` header is required. The invite is identified by the `invite_token` sent in the invitation email.+</Note>++## Body parameters++<ParamField body="invite_token" type="string" required>+ The token from the invitation email.+</ParamField>++<ParamField body="first_name" type="string">+ First name for the new member profile.+</ParamField>++<ParamField body="last_name" type="string">+ Last name for the new member profile.+</ParamField>++## Response++<ResponseField name="member" type="object">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The member's ID.</ResponseField>+ <ResponseField name="first_name" type="string">The member's first name.</ResponseField>+ <ResponseField name="last_name" type="string">The member's last name.</ResponseField>+ <ResponseField name="email" type="string">The member's email.</ResponseField>+ </Expandable>+</ResponseField>++<RequestExample>+```bash cURL+curl -X POST 'http://localhost:9000/vendor/members/invites/accept' \+ -H 'Content-Type: application/json' \+ -d '{"invite_token": "<invite_token>", "first_name": "John", "last_name": "Roe"}'+```++```ts JS Client+const { member } = await client.vendor.members.invites.accept.mutate({+ invite_token: "<invite_token>",+ first_name: "John",+ last_name: "Roe",+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "member": {+ "id": "mem_01HXYZ",+ "first_name": "John",+ "last_name": "Roe",+ "email": "[email protected]"+ }+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/vendor/members/retrieve-current-member.mdx b/apps/docs/rc/references/api/vendor/members/retrieve-current-member.mdxnew file mode 100644index 000000000..e323e3364--- /dev/null+++ b/apps/docs/rc/references/api/vendor/members/retrieve-current-member.mdx@@ -0,0 +1,51 @@+---+title: "Retrieve Current Member"+api: "GET /vendor/members/me"+description: "Retrieve the authenticated member's profile for the active seller."+---++Returns the seller member record for the authenticated member, including the member profile, role, and the seller with its address, payment details, and professional details.++## Query parameters++<ParamField query="fields" type="string">+ Comma-separated fields to include in the response.+</ParamField>++## Response++<ResponseField name="seller_member" type="object">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The seller member's ID.</ResponseField>+ <ResponseField name="is_owner" type="boolean">Whether the member owns the seller account.</ResponseField>+ <ResponseField name="member" type="object">The member's profile (first name, last name, email, locale).</ResponseField>+ <ResponseField name="rbac_role" type="object">The member's role for this seller.</ResponseField>+ <ResponseField name="seller" type="object">The active seller, with `address`, `payment_details`, and `professional_details`.</ResponseField>+ </Expandable>+</ResponseField>++<RequestExample>+```bash cURL+curl 'http://localhost:9000/vendor/members/me' \+ -H 'Authorization: Bearer <token>' \+ -H 'x-seller-id: <seller_id>'+```++```ts JS Client+const { seller_member } = await client.vendor.members.me.query()+```+</RequestExample>++<ResponseExample>+```json 200+{+ "seller_member": {+ "id": "selmem_01HXYZ",+ "is_owner": true,+ "member": { "id": "mem_01HXYZ", "first_name": "Jane", "last_name": "Doe", "email": "[email protected]" },+ "rbac_role": { "id": "role_seller_administration", "name": "Administration" },+ "seller": { "id": "sel_01HXYZ", "name": "Acme Store", "status": "open" }+ }+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/vendor/members/update-current-member.mdx b/apps/docs/rc/references/api/vendor/members/update-current-member.mdxnew file mode 100644index 000000000..51b7f3867--- /dev/null+++ b/apps/docs/rc/references/api/vendor/members/update-current-member.mdx@@ -0,0 +1,70 @@+---+title: "Update Current Member"+api: "POST /vendor/members/me"+description: "Update the authenticated member's profile."+---++Updates the member's personal details and returns the seller member record for the active seller.++## Body parameters++<ParamField body="first_name" type="string">+ The member's first name.+</ParamField>++<ParamField body="last_name" type="string">+ The member's last name.+</ParamField>++<ParamField body="locale" type="string">+ The member's preferred locale (e.g. `en-US`).+</ParamField>++## Query parameters++<ParamField query="fields" type="string">+ Comma-separated fields to include in the response.+</ParamField>++## Response++<ResponseField name="seller_member" type="object">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The seller member's ID.</ResponseField>+ <ResponseField name="is_owner" type="boolean">Whether the member owns the seller account.</ResponseField>+ <ResponseField name="member" type="object">The updated member profile.</ResponseField>+ <ResponseField name="rbac_role" type="object">The member's role for this seller.</ResponseField>+ <ResponseField name="seller" type="object">The active seller.</ResponseField>+ </Expandable>+</ResponseField>++<RequestExample>+```bash cURL+curl -X POST 'http://localhost:9000/vendor/members/me' \+ -H 'Authorization: Bearer <token>' \+ -H 'x-seller-id: <seller_id>' \+ -H 'Content-Type: application/json' \+ -d '{"first_name": "Jane", "last_name": "Smith"}'+```++```ts JS Client+const { seller_member } = await client.vendor.members.me.mutate({+ first_name: "Jane",+ last_name: "Smith",+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "seller_member": {+ "id": "selmem_01HXYZ",+ "is_owner": true,+ "member": { "id": "mem_01HXYZ", "first_name": "Jane", "last_name": "Smith" },+ "rbac_role": { "id": "role_seller_administration", "name": "Administration" },+ "seller": { "id": "sel_01HXYZ", "name": "Acme Store" }+ }+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/vendor/offers/batch-create-offers.mdx b/apps/docs/rc/references/api/vendor/offers/batch-create-offers.mdxnew file mode 100644index 000000000..d9d11e6a4--- /dev/null+++ b/apps/docs/rc/references/api/vendor/offers/batch-create-offers.mdx@@ -0,0 +1,123 @@+---+title: "Batch Create Offers"+api: "POST /vendor/offers/batch"+description: "Create up to 100 offers in a single request."+---++Creates multiple offers at once; the whole batch is validated and processed together.++## Query parameters++<ParamField query="fields" type="string">+ Comma-separated fields to include in the returned offers. Prefix with `+`/`-` to add to or remove from the defaults.+</ParamField>++## Body parameters++<ParamField body="offers" type="object[]" required>+ Between 1 and 100 offers to create.+ <Expandable title="properties">+ <ParamField body="sku" type="string" required>The seller's SKU for the listing.</ParamField>+ <ParamField body="variant_id" type="string" required>ID of the product variant being listed.</ParamField>+ <ParamField body="shipping_profile_id" type="string" required>ID of the shipping profile used to fulfill the offer.</ParamField>+ <ParamField body="prices" type="object[]" required>+ At least one price.+ <Expandable title="properties">+ <ParamField body="amount" type="number" required>Price amount.</ParamField>+ <ParamField body="currency_code" type="string" required>Currency code, e.g. `usd`.</ParamField>+ <ParamField body="min_quantity" type="number">Minimum quantity for the price to apply; positive integer.</ParamField>+ <ParamField body="max_quantity" type="number">Maximum quantity for the price to apply; positive integer.</ParamField>+ <ParamField body="rules" type="object">Price rules as attribute-to-value pairs.</ParamField>+ </Expandable>+ </ParamField>+ <ParamField body="inventory_items" type="object[]" required>+ At least one inventory item.+ <Expandable title="properties">+ <ParamField body="title" type="string">Title for the created inventory item.</ParamField>+ <ParamField body="sku" type="string">SKU for the created inventory item.</ParamField>+ <ParamField body="required_quantity" type="number" default="1">Units consumed per sale; positive integer.</ParamField>+ <ParamField body="stock_levels" type="object[]">+ <Expandable title="properties">+ <ParamField body="location_id" type="string" required>Stock location ID.</ParamField>+ <ParamField body="stocked_quantity" type="number" required>Stocked quantity at the location; non-negative integer.</ParamField>+ </Expandable>+ </ParamField>+ </Expandable>+ </ParamField>+ <ParamField body="ean" type="string">EAN barcode.</ParamField>+ <ParamField body="upc" type="string">UPC barcode.</ParamField>+ <ParamField body="metadata" type="object">Custom key-value pairs.</ParamField>+ </Expandable>+</ParamField>++## Response++<ResponseField name="offers" type="object[]">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The offer's ID.</ResponseField>+ <ResponseField name="variant_id" type="string">ID of the listed product variant.</ResponseField>+ <ResponseField name="sku" type="string">The seller's SKU for the listing.</ResponseField>+ <ResponseField name="prices" type="object[]">The offer's prices.</ResponseField>+ <ResponseField name="inventory_items" type="object[]">Linked inventory items.</ResponseField>+ </Expandable>+</ResponseField>++<RequestExample>+```bash cURL+curl -X POST 'http://localhost:9000/vendor/offers/batch' \+ -H 'Authorization: Bearer <token>' \+ -H 'x-seller-id: <seller_id>' \+ -H 'Content-Type: application/json' \+ -d '{+ "offers": [+ {+ "sku": "ACME-SHIRT-S",+ "variant_id": "variant_01HABC",+ "shipping_profile_id": "sp_01HXYZ",+ "prices": [{ "amount": 2500, "currency_code": "usd" }],+ "inventory_items": [{ "required_quantity": 1 }]+ },+ {+ "sku": "ACME-SHIRT-M",+ "variant_id": "variant_01HXYZ",+ "shipping_profile_id": "sp_01HXYZ",+ "prices": [{ "amount": 2500, "currency_code": "usd" }],+ "inventory_items": [{ "required_quantity": 1 }]+ }+ ]+ }'+```++```ts JS Client+const { offers } = await client.vendor.offers.batch.mutate({+ offers: [+ {+ sku: "ACME-SHIRT-M",+ variant_id: "variant_01HXYZ",+ shipping_profile_id: "sp_01HXYZ",+ prices: [{ amount: 2500, currency_code: "usd" }],+ inventory_items: [{ required_quantity: 1 }],+ },+ ],+})+```+</RequestExample>++<ResponseExample>+```json 201+{+ "offers": [+ {+ "id": "offer_01HABC",+ "variant_id": "variant_01HABC",+ "sku": "ACME-SHIRT-S"+ },+ {+ "id": "offer_01HXYZ",+ "variant_id": "variant_01HXYZ",+ "sku": "ACME-SHIRT-M"+ }+ ]+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/vendor/offers/batch-offer-inventory-items.mdx b/apps/docs/rc/references/api/vendor/offers/batch-offer-inventory-items.mdxnew file mode 100644index 000000000..394285f02--- /dev/null+++ b/apps/docs/rc/references/api/vendor/offers/batch-offer-inventory-items.mdx@@ -0,0 +1,103 @@+---+title: "Batch Offer Inventory Items"+api: "POST /vendor/offers/{id}/inventory-items/batch"+description: "Link, update, or unlink inventory items on an offer."+---++Manages the inventory items backing an offer in one request and returns the refreshed offer.++## Path parameters++<ParamField path="id" type="string" required>+ The offer's ID.+</ParamField>++## Body parameters++<ParamField body="create" type="object[]">+ Inventory items to link to the offer.+ <Expandable title="properties">+ <ParamField body="inventory_item_id" type="string" required>ID of an existing inventory item.</ParamField>+ <ParamField body="required_quantity" type="number" default="1">Units consumed per sale; positive integer.</ParamField>+ </Expandable>+</ParamField>++<ParamField body="update" type="object[]">+ Existing links to update.+ <Expandable title="properties">+ <ParamField body="inventory_item_id" type="string" required>ID of the linked inventory item.</ParamField>+ <ParamField body="required_quantity" type="number" required>New units consumed per sale; positive integer.</ParamField>+ </Expandable>+</ParamField>++<ParamField body="delete" type="string[]">+ Inventory item IDs to unlink from the offer.+</ParamField>++## Response++<ResponseField name="created" type="object[]">+ Links created by this request.+</ResponseField>++<ResponseField name="updated" type="object[]">+ Links updated by this request.+</ResponseField>++<ResponseField name="deleted" type="string[]">+ Inventory item IDs unlinked by this request.+</ResponseField>++<ResponseField name="offer" type="object">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The offer's ID.</ResponseField>+ <ResponseField name="sku" type="string">The seller's SKU for the listing.</ResponseField>+ <ResponseField name="inventory_items" type="object[]">The offer's inventory items after the batch, with `id`, `inventory_item_id`, `required_quantity`, and `sku`.</ResponseField>+ </Expandable>+</ResponseField>++<RequestExample>+```bash cURL+curl -X POST 'http://localhost:9000/vendor/offers/offer_01HXYZ/inventory-items/batch' \+ -H 'Authorization: Bearer <token>' \+ -H 'x-seller-id: <seller_id>' \+ -H 'Content-Type: application/json' \+ -d '{+ "create": [{ "inventory_item_id": "iitem_01HABC", "required_quantity": 2 }],+ "update": [{ "inventory_item_id": "iitem_01HXYZ", "required_quantity": 1 }],+ "delete": ["iitem_01HDEF"]+ }'+```++```ts JS Client+const { offer, created, updated, deleted } =+ await client.vendor.offers.$id.inventoryItems.batch.mutate({+ $id: "offer_01HXYZ",+ create: [{ inventory_item_id: "iitem_01HABC", required_quantity: 2 }],+ update: [{ inventory_item_id: "iitem_01HXYZ", required_quantity: 1 }],+ delete: ["iitem_01HDEF"],+ })+```+</RequestExample>++<ResponseExample>+```json 200+{+ "created": [+ { "inventory_item_id": "iitem_01HABC", "required_quantity": 2 }+ ],+ "updated": [+ { "inventory_item_id": "iitem_01HXYZ", "required_quantity": 1 }+ ],+ "deleted": ["iitem_01HDEF"],+ "offer": {+ "id": "offer_01HXYZ",+ "sku": "ACME-SHIRT-M",+ "inventory_items": [+ { "inventory_item_id": "iitem_01HXYZ", "required_quantity": 1 },+ { "inventory_item_id": "iitem_01HABC", "required_quantity": 2 }+ ]+ }+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/vendor/offers/create-offer.mdx b/apps/docs/rc/references/api/vendor/offers/create-offer.mdxnew file mode 100644index 000000000..ae4ba65bf--- /dev/null+++ b/apps/docs/rc/references/api/vendor/offers/create-offer.mdx@@ -0,0 +1,141 @@+---+title: "Create Offer"+api: "POST /vendor/offers"+description: "Create a listing for a product variant."+---++Creates the seller's offer for a variant — the seller's SKU, shipping profile, prices, and backing inventory.++<Note>+ A product can be listed by many sellers; the offer is what carries the seller's own price and stock for a variant.+</Note>++## Query parameters++<ParamField query="fields" type="string">+ Comma-separated fields to include in the returned offer. Prefix with `+`/`-` to add to or remove from the defaults.+</ParamField>++## Body parameters++<ParamField body="sku" type="string" required>+ The seller's SKU for this listing.+</ParamField>++<ParamField body="variant_id" type="string" required>+ ID of the product variant being listed.+</ParamField>++<ParamField body="shipping_profile_id" type="string" required>+ ID of the seller's shipping profile used to fulfill the offer.+</ParamField>++<ParamField body="inventory_items" type="object[]" required>+ Inventory items backing the offer; at least one is required.+ <Expandable title="properties">+ <ParamField body="title" type="string">Title for the created inventory item.</ParamField>+ <ParamField body="sku" type="string">SKU for the created inventory item.</ParamField>+ <ParamField body="required_quantity" type="number" default="1">Units of the item consumed per sale; positive integer.</ParamField>+ <ParamField body="stock_levels" type="object[]">+ <Expandable title="properties">+ <ParamField body="location_id" type="string" required>Stock location ID.</ParamField>+ <ParamField body="stocked_quantity" type="number" required>Stocked quantity at the location; non-negative integer.</ParamField>+ </Expandable>+ </ParamField>+ </Expandable>+</ParamField>++<ParamField body="prices" type="object[]" required>+ Offer prices; at least one is required.+ <Expandable title="properties">+ <ParamField body="amount" type="number" required>Price amount.</ParamField>+ <ParamField body="currency_code" type="string" required>Currency code, e.g. `usd`.</ParamField>+ <ParamField body="min_quantity" type="number">Minimum quantity for the price to apply; positive integer.</ParamField>+ <ParamField body="max_quantity" type="number">Maximum quantity for the price to apply; positive integer.</ParamField>+ <ParamField body="rules" type="object">Price rules as attribute-to-value pairs, e.g. `{"region_id": "reg_01..."}`.</ParamField>+ </Expandable>+</ParamField>++<ParamField body="ean" type="string">+ EAN barcode.+</ParamField>++<ParamField body="upc" type="string">+ UPC barcode.+</ParamField>++<ParamField body="metadata" type="object">+ Custom key-value pairs.+</ParamField>++## Response++<ResponseField name="offer" type="object">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The offer's ID.</ResponseField>+ <ResponseField name="seller_id" type="string">ID of the owning seller.</ResponseField>+ <ResponseField name="variant_id" type="string">ID of the listed product variant.</ResponseField>+ <ResponseField name="product_id" type="string">ID of the parent product.</ResponseField>+ <ResponseField name="shipping_profile_id" type="string">ID of the shipping profile.</ResponseField>+ <ResponseField name="sku" type="string">The seller's SKU for this listing.</ResponseField>+ <ResponseField name="prices" type="object[]">Offer prices with `id`, `amount`, `currency_code`, `min_quantity`, `max_quantity`, and `price_rules`.</ResponseField>+ <ResponseField name="inventory_items" type="object[]">Linked inventory items with `id`, `inventory_item_id`, `required_quantity`, and `sku`.</ResponseField>+ </Expandable>+</ResponseField>++<RequestExample>+```bash cURL+curl -X POST 'http://localhost:9000/vendor/offers' \+ -H 'Authorization: Bearer <token>' \+ -H 'x-seller-id: <seller_id>' \+ -H 'Content-Type: application/json' \+ -d '{+ "sku": "ACME-SHIRT-M",+ "variant_id": "variant_01HXYZ",+ "shipping_profile_id": "sp_01HXYZ",+ "prices": [{ "amount": 2500, "currency_code": "usd" }],+ "inventory_items": [+ {+ "required_quantity": 1,+ "stock_levels": [{ "location_id": "sloc_01HXYZ", "stocked_quantity": 100 }]+ }+ ]+ }'+```++```ts JS Client+const { offer } = await client.vendor.offers.mutate({+ sku: "ACME-SHIRT-M",+ variant_id: "variant_01HXYZ",+ shipping_profile_id: "sp_01HXYZ",+ prices: [{ amount: 2500, currency_code: "usd" }],+ inventory_items: [+ {+ required_quantity: 1,+ stock_levels: [{ location_id: "sloc_01HXYZ", stocked_quantity: 100 }],+ },+ ],+})+```+</RequestExample>++<ResponseExample>+```json 201+{+ "offer": {+ "id": "offer_01HXYZ",+ "seller_id": "sel_01HXYZ",+ "variant_id": "variant_01HXYZ",+ "product_id": "prod_01HXYZ",+ "shipping_profile_id": "sp_01HXYZ",+ "sku": "ACME-SHIRT-M",+ "prices": [+ { "id": "price_01HXYZ", "amount": 2500, "currency_code": "usd" }+ ],+ "inventory_items": [+ { "inventory_item_id": "iitem_01HXYZ", "required_quantity": 1 }+ ]+ }+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/vendor/offers/delete-offer.mdx b/apps/docs/rc/references/api/vendor/offers/delete-offer.mdxnew file mode 100644index 000000000..94437014d--- /dev/null+++ b/apps/docs/rc/references/api/vendor/offers/delete-offer.mdx@@ -0,0 +1,51 @@+---+title: "Delete Offer"+api: "DELETE /vendor/offers/{id}"+description: "Delete one of the seller's offers."+---++Deletes the offer immediately; the underlying product and variant are unaffected.++## Path parameters++<ParamField path="id" type="string" required>+ The offer's ID.+</ParamField>++## Response++<ResponseField name="id" type="string">+ The deleted offer's ID.+</ResponseField>++<ResponseField name="object" type="string">+ Always `offer`.+</ResponseField>++<ResponseField name="deleted" type="boolean">+ Always `true`.+</ResponseField>++<RequestExample>+```bash cURL+curl -X DELETE 'http://localhost:9000/vendor/offers/offer_01HXYZ' \+ -H 'Authorization: Bearer <token>' \+ -H 'x-seller-id: <seller_id>'+```++```ts JS Client+const { id, deleted } = await client.vendor.offers.$id.delete({+ $id: "offer_01HXYZ",+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "id": "offer_01HXYZ",+ "object": "offer",+ "deleted": true+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/vendor/offers/list-offers.mdx b/apps/docs/rc/references/api/vendor/offers/list-offers.mdxnew file mode 100644index 000000000..67e006a10--- /dev/null+++ b/apps/docs/rc/references/api/vendor/offers/list-offers.mdx@@ -0,0 +1,125 @@+---+title: "List Offers"+api: "GET /vendor/offers"+description: "Retrieve a paginated list of the seller's offers."+---++Returns the seller's offers with variant, shipping profile, prices, and linked inventory items.++## Query parameters++<ParamField query="limit" type="number" default="50">+ The maximum number of offers to return.+</ParamField>++<ParamField query="offset" type="number" default="0">+ The number of offers to skip before returning results.+</ParamField>++<ParamField query="order" type="string">+ The field to sort by, e.g. `created_at` or `-created_at` for descending.+</ParamField>++<ParamField query="fields" type="string">+ Comma-separated fields to include in the response. Prefix with `+`/`-` to add to or remove from the defaults.+</ParamField>++<ParamField query="q" type="string">+ Search term matched against offer fields.+</ParamField>++<ParamField query="id" type="string | string[]">+ Filter by offer ID(s).+</ParamField>++<ParamField query="variant_id" type="string | string[]">+ Filter by product variant ID(s).+</ParamField>++<ParamField query="shipping_profile_id" type="string | string[]">+ Filter by shipping profile ID(s).+</ParamField>++<ParamField query="sku" type="string | string[]">+ Filter by seller SKU(s).+</ParamField>++<ParamField query="ean" type="string | string[]">+ Filter by EAN(s).+</ParamField>++<ParamField query="upc" type="string | string[]">+ Filter by UPC(s).+</ParamField>++<ParamField query="created_at" type="object">+ Filter by creation date using operators like `$gt`, `$lt`, `$gte`, `$lte`.+</ParamField>++<ParamField query="updated_at" type="object">+ Filter by update date using operators like `$gt`, `$lt`, `$gte`, `$lte`.+</ParamField>++## Response++<ResponseField name="offers" type="object[]">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The offer's ID.</ResponseField>+ <ResponseField name="seller_id" type="string">ID of the owning seller.</ResponseField>+ <ResponseField name="variant_id" type="string">ID of the listed product variant.</ResponseField>+ <ResponseField name="product_id" type="string">ID of the parent product.</ResponseField>+ <ResponseField name="shipping_profile_id" type="string">ID of the shipping profile used to fulfill the offer.</ResponseField>+ <ResponseField name="sku" type="string">The seller's SKU for this listing.</ResponseField>+ <ResponseField name="ean" type="string">EAN barcode.</ResponseField>+ <ResponseField name="upc" type="string">UPC barcode.</ResponseField>+ <ResponseField name="seller" type="object">The seller with `id`, `name`, and `handle`.</ResponseField>+ <ResponseField name="product_variant" type="object">The variant with `id`, `title`, and `sku`.</ResponseField>+ <ResponseField name="shipping_profile" type="object">The shipping profile with `id` and `name`.</ResponseField>+ <ResponseField name="prices" type="object[]">Offer prices with `id`, `amount`, `currency_code`, `min_quantity`, `max_quantity`, and `price_rules`.</ResponseField>+ <ResponseField name="inventory_items" type="object[]">Linked inventory items with `id`, `inventory_item_id`, `required_quantity`, and `sku`.</ResponseField>+ </Expandable>+</ResponseField>++<ResponseField name="count" type="number">Total number of matching offers.</ResponseField>+<ResponseField name="offset" type="number">Number of skipped offers.</ResponseField>+<ResponseField name="limit" type="number">Maximum number of returned offers.</ResponseField>++<RequestExample>+```bash cURL+curl 'http://localhost:9000/vendor/offers?variant_id=variant_01HXYZ' \+ -H 'Authorization: Bearer <token>' \+ -H 'x-seller-id: <seller_id>'+```++```ts JS Client+const { offers, count } = await client.vendor.offers.query({+ variant_id: "variant_01HXYZ",+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "offers": [+ {+ "id": "offer_01HXYZ",+ "seller_id": "sel_01HXYZ",+ "variant_id": "variant_01HXYZ",+ "product_id": "prod_01HXYZ",+ "shipping_profile_id": "sp_01HXYZ",+ "sku": "ACME-SHIRT-M",+ "prices": [+ { "id": "price_01HXYZ", "amount": 2500, "currency_code": "usd" }+ ],+ "inventory_items": [+ { "inventory_item_id": "iitem_01HXYZ", "required_quantity": 1 }+ ]+ }+ ],+ "count": 1,+ "offset": 0,+ "limit": 50+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/vendor/offers/retrieve-offer.mdx b/apps/docs/rc/references/api/vendor/offers/retrieve-offer.mdxnew file mode 100644index 000000000..bdb67f27a--- /dev/null+++ b/apps/docs/rc/references/api/vendor/offers/retrieve-offer.mdx@@ -0,0 +1,74 @@+---+title: "Retrieve Offer"+api: "GET /vendor/offers/{id}"+description: "Retrieve one of the seller's offers by its ID."+---++Returns a single offer owned by the seller; requesting another seller's offer fails.++## Path parameters++<ParamField path="id" type="string" required>+ The offer's ID.+</ParamField>++## Query parameters++<ParamField query="fields" type="string">+ Comma-separated fields to include in the response. Prefix with `+`/`-` to add to or remove from the defaults.+</ParamField>++## Response++<ResponseField name="offer" type="object">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The offer's ID.</ResponseField>+ <ResponseField name="seller_id" type="string">ID of the owning seller.</ResponseField>+ <ResponseField name="variant_id" type="string">ID of the listed product variant.</ResponseField>+ <ResponseField name="product_id" type="string">ID of the parent product.</ResponseField>+ <ResponseField name="shipping_profile_id" type="string">ID of the shipping profile.</ResponseField>+ <ResponseField name="sku" type="string">The seller's SKU for this listing.</ResponseField>+ <ResponseField name="ean" type="string">EAN barcode.</ResponseField>+ <ResponseField name="upc" type="string">UPC barcode.</ResponseField>+ <ResponseField name="seller" type="object">The seller with `id`, `name`, and `handle`.</ResponseField>+ <ResponseField name="product_variant" type="object">The variant with `id`, `title`, and `sku`.</ResponseField>+ <ResponseField name="shipping_profile" type="object">The shipping profile with `id` and `name`.</ResponseField>+ <ResponseField name="prices" type="object[]">Offer prices with `id`, `amount`, `currency_code`, `min_quantity`, `max_quantity`, and `price_rules`.</ResponseField>+ <ResponseField name="inventory_items" type="object[]">Linked inventory items with `id`, `inventory_item_id`, `required_quantity`, and `sku`.</ResponseField>+ <ResponseField name="metadata" type="object">Custom key-value pairs.</ResponseField>+ </Expandable>+</ResponseField>++<RequestExample>+```bash cURL+curl 'http://localhost:9000/vendor/offers/offer_01HXYZ' \+ -H 'Authorization: Bearer <token>' \+ -H 'x-seller-id: <seller_id>'+```++```ts JS Client+const { offer } = await client.vendor.offers.$id.query({+ $id: "offer_01HXYZ",+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "offer": {+ "id": "offer_01HXYZ",+ "seller_id": "sel_01HXYZ",+ "variant_id": "variant_01HXYZ",+ "product_id": "prod_01HXYZ",+ "sku": "ACME-SHIRT-M",+ "prices": [+ { "id": "price_01HXYZ", "amount": 2500, "currency_code": "usd" }+ ],+ "inventory_items": [+ { "inventory_item_id": "iitem_01HXYZ", "required_quantity": 1 }+ ]+ }+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/vendor/offers/update-offer.mdx b/apps/docs/rc/references/api/vendor/offers/update-offer.mdxnew file mode 100644index 000000000..34cdcac7e--- /dev/null+++ b/apps/docs/rc/references/api/vendor/offers/update-offer.mdx@@ -0,0 +1,82 @@+---+title: "Update Offer"+api: "POST /vendor/offers/{id}"+description: "Update one of the seller's offers."+---++Updates the offer directly (no change request) and returns the refreshed offer.++## Path parameters++<ParamField path="id" type="string" required>+ The offer's ID.+</ParamField>++## Body parameters++<ParamField body="sku" type="string">+ The seller's SKU for this listing.+</ParamField>++<ParamField body="shipping_profile_id" type="string">+ ID of the shipping profile used to fulfill the offer.+</ParamField>++<ParamField body="prices" type="object[]">+ Prices to upsert; include `id` to update an existing price, omit it to add one.+ <Expandable title="properties">+ <ParamField body="id" type="string">Existing price ID to update.</ParamField>+ <ParamField body="amount" type="number" required>Price amount.</ParamField>+ <ParamField body="currency_code" type="string" required>Currency code, e.g. `usd`.</ParamField>+ <ParamField body="min_quantity" type="number">Minimum quantity for the price to apply; positive integer.</ParamField>+ <ParamField body="max_quantity" type="number">Maximum quantity for the price to apply; positive integer.</ParamField>+ <ParamField body="rules" type="object">Price rules as attribute-to-value pairs.</ParamField>+ </Expandable>+</ParamField>++<ParamField body="metadata" type="object">+ Custom key-value pairs.+</ParamField>++## Response++<ResponseField name="offer" type="object">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The offer's ID.</ResponseField>+ <ResponseField name="sku" type="string">The seller's SKU for this listing.</ResponseField>+ <ResponseField name="shipping_profile_id" type="string">ID of the shipping profile.</ResponseField>+ <ResponseField name="prices" type="object[]">The offer's prices after the update.</ResponseField>+ <ResponseField name="inventory_items" type="object[]">Linked inventory items.</ResponseField>+ </Expandable>+</ResponseField>++<RequestExample>+```bash cURL+curl -X POST 'http://localhost:9000/vendor/offers/offer_01HXYZ' \+ -H 'Authorization: Bearer <token>' \+ -H 'x-seller-id: <seller_id>' \+ -H 'Content-Type: application/json' \+ -d '{"prices": [{ "id": "price_01HXYZ", "amount": 2300, "currency_code": "usd" }]}'+```++```ts JS Client+const { offer } = await client.vendor.offers.$id.mutate({+ $id: "offer_01HXYZ",+ prices: [{ id: "price_01HXYZ", amount: 2300, currency_code: "usd" }],+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "offer": {+ "id": "offer_01HXYZ",+ "sku": "ACME-SHIRT-M",+ "prices": [+ { "id": "price_01HXYZ", "amount": 2300, "currency_code": "usd" }+ ]+ }+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/vendor/orders/cancel-fulfillment.mdx b/apps/docs/rc/references/api/vendor/orders/cancel-fulfillment.mdxnew file mode 100644index 000000000..d1157ff4c--- /dev/null+++ b/apps/docs/rc/references/api/vendor/orders/cancel-fulfillment.mdx@@ -0,0 +1,63 @@+---+title: "Cancel Fulfillment"+api: "POST /vendor/orders/{id}/fulfillments/{fulfillment_id}/cancel"+description: "Cancel a fulfillment on the order."+---++Cancels the fulfillment and returns the updated order.++<Note>A fulfillment cannot be canceled after it has been shipped.</Note>++## Path parameters++<ParamField path="id" type="string" required>The order's ID.</ParamField>+<ParamField path="fulfillment_id" type="string" required>The fulfillment's ID.</ParamField>++## Query parameters++<ParamField query="fields" type="string">Comma-separated list of fields to include in the returned order, prefix with `+`/`-` to add or remove from defaults.</ParamField>++## Response++<ResponseField name="order" type="object">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The order's ID.</ResponseField>+ <ResponseField name="status" type="string">The order's status.</ResponseField>+ <ResponseField name="fulfillments" type="object[]">The order's fulfillments, including the canceled one.</ResponseField>+ <ResponseField name="items" type="object[]">The order's line items.</ResponseField>+ </Expandable>+</ResponseField>++<RequestExample>+```bash cURL+curl -X POST 'http://localhost:9000/vendor/orders/order_01HXYZABCDEF/fulfillments/ful_01HXYZABCDEF/cancel' \+ -H 'Authorization: Bearer <token>' \+ -H 'x-seller-id: <seller_id>'+```++```ts JS Client+const { order } =+ await client.vendor.orders.$id.fulfillments.$fulfillment_id.cancel.mutate({+ $id: "order_01HXYZABCDEF",+ $fulfillment_id: "ful_01HXYZABCDEF",+ })+```+</RequestExample>++<ResponseExample>+```json 200+{+ "order": {+ "id": "order_01HXYZABCDEF",+ "display_id": 42,+ "status": "pending",+ "fulfillments": [+ {+ "id": "ful_01HXYZABCDEF",+ "canceled_at": "2026-06-04T10:00:00.000Z"+ }+ ]+ }+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/vendor/orders/cancel-order.mdx b/apps/docs/rc/references/api/vendor/orders/cancel-order.mdxnew file mode 100644index 000000000..e26ccdd85--- /dev/null+++ b/apps/docs/rc/references/api/vendor/orders/cancel-order.mdx@@ -0,0 +1,56 @@+---+title: "Cancel Order"+api: "POST /vendor/orders/{id}/cancel"+description: "Cancel the order."+---++Cancels the order on behalf of the seller and returns the updated order.++<Note>An order can only be canceled if it has no fulfillments or captured payments that block cancellation.</Note>++## Path parameters++<ParamField path="id" type="string" required>The order's ID.</ParamField>++## Query parameters++<ParamField query="fields" type="string">Comma-separated list of fields to include in the returned order, prefix with `+`/`-` to add or remove from defaults.</ParamField>++## Response++<ResponseField name="order" type="object">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The order's ID.</ResponseField>+ <ResponseField name="status" type="string">The order's status, now `canceled`.</ResponseField>+ <ResponseField name="canceled_at" type="string">Cancellation timestamp.</ResponseField>+ <ResponseField name="items" type="object[]">The order's line items.</ResponseField>+ <ResponseField name="summary" type="object">Order totals summary.</ResponseField>+ </Expandable>+</ResponseField>++<RequestExample>+```bash cURL+curl -X POST 'http://localhost:9000/vendor/orders/order_01HXYZABCDEF/cancel' \+ -H 'Authorization: Bearer <token>' \+ -H 'x-seller-id: <seller_id>'+```++```ts JS Client+const { order } = await client.vendor.orders.$id.cancel.mutate({+ $id: "order_01HXYZABCDEF",+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "order": {+ "id": "order_01HXYZABCDEF",+ "display_id": 42,+ "status": "canceled",+ "canceled_at": "2026-06-05T10:00:00.000Z"+ }+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/vendor/orders/complete-order.mdx b/apps/docs/rc/references/api/vendor/orders/complete-order.mdxnew file mode 100644index 000000000..5a098e8e8--- /dev/null+++ b/apps/docs/rc/references/api/vendor/orders/complete-order.mdx@@ -0,0 +1,55 @@+---+title: "Complete Order"+api: "POST /vendor/orders/{id}/complete"+description: "Mark the order as completed."+---++Completes the order and returns the updated order.++## Path parameters++<ParamField path="id" type="string" required>The order's ID.</ParamField>++## Query parameters++<ParamField query="fields" type="string">Comma-separated list of fields to include in the returned order, prefix with `+`/`-` to add or remove from defaults.</ParamField>++## Response++<ResponseField name="order" type="object">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The order's ID.</ResponseField>+ <ResponseField name="status" type="string">The order's status, now `completed`.</ResponseField>+ <ResponseField name="items" type="object[]">The order's line items.</ResponseField>+ <ResponseField name="summary" type="object">Order totals summary.</ResponseField>+ <ResponseField name="updated_at" type="string">Last update timestamp.</ResponseField>+ </Expandable>+</ResponseField>++<RequestExample>+```bash cURL+curl -X POST 'http://localhost:9000/vendor/orders/order_01HXYZABCDEF/complete' \+ -H 'Authorization: Bearer <token>' \+ -H 'x-seller-id: <seller_id>'+```++```ts JS Client+const { order } = await client.vendor.orders.$id.complete.mutate({+ $id: "order_01HXYZABCDEF",+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "order": {+ "id": "order_01HXYZABCDEF",+ "display_id": 42,+ "status": "completed",+ "currency_code": "usd",+ "updated_at": "2026-06-05T10:00:00.000Z"+ }+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/vendor/orders/create-fulfillment.mdx b/apps/docs/rc/references/api/vendor/orders/create-fulfillment.mdxnew file mode 100644index 000000000..6f0fb8202--- /dev/null+++ b/apps/docs/rc/references/api/vendor/orders/create-fulfillment.mdx@@ -0,0 +1,76 @@+---+title: "Create Fulfillment"+api: "POST /vendor/orders/{id}/fulfillments"+description: "Create a fulfillment for the order's items."+---++Creates a fulfillment for the specified items from a stock location owned by the seller.++## Path parameters++<ParamField path="id" type="string" required>The order's ID.</ParamField>++## Body parameters++<ParamField body="items" type="object[]" required>+ Items to fulfill.+ <Expandable title="properties">+ <ParamField body="id" type="string" required>Line item ID.</ParamField>+ <ParamField body="quantity" type="number" required>Quantity to fulfill; integer, minimum 0.</ParamField>+ </Expandable>+</ParamField>+<ParamField body="requires_shipping" type="boolean" required>Whether the fulfillment requires shipping.</ParamField>+<ParamField body="location_id" type="string" required>ID of the stock location to fulfill from.</ParamField>++## Response++<ResponseField name="fulfillment" type="object">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The fulfillment's ID.</ResponseField>+ <ResponseField name="location_id" type="string">ID of the stock location fulfilled from.</ResponseField>+ <ResponseField name="requires_shipping" type="boolean">Whether the fulfillment requires shipping.</ResponseField>+ <ResponseField name="packed_at" type="string">When the fulfillment was packed.</ResponseField>+ <ResponseField name="shipped_at" type="string">When the fulfillment was shipped.</ResponseField>+ <ResponseField name="delivered_at" type="string">When the fulfillment was delivered.</ResponseField>+ <ResponseField name="created_at" type="string">Creation timestamp.</ResponseField>+ </Expandable>+</ResponseField>++<RequestExample>+```bash cURL+curl -X POST 'http://localhost:9000/vendor/orders/order_01HXYZABCDEF/fulfillments' \+ -H 'Authorization: Bearer <token>' \+ -H 'x-seller-id: <seller_id>' \+ -H 'Content-Type: application/json' \+ -d '{+ "items": [{ "id": "ordli_01HXYZABCDEF", "quantity": 1 }],+ "requires_shipping": true,+ "location_id": "sloc_01HXYZABCDEF"+ }'+```++```ts JS Client+const { fulfillment } = await client.vendor.orders.$id.fulfillments.mutate({+ $id: "order_01HXYZABCDEF",+ items: [{ id: "ordli_01HXYZABCDEF", quantity: 1 }],+ requires_shipping: true,+ location_id: "sloc_01HXYZABCDEF",+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "fulfillment": {+ "id": "ful_01HXYZABCDEF",+ "location_id": "sloc_01HXYZABCDEF",+ "requires_shipping": true,+ "packed_at": "2026-06-03T10:00:00.000Z",+ "shipped_at": null,+ "delivered_at": null,+ "created_at": "2026-06-03T10:00:00.000Z"+ }+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/vendor/orders/create-shipment.mdx b/apps/docs/rc/references/api/vendor/orders/create-shipment.mdxnew file mode 100644index 000000000..bcdcf4af0--- /dev/null+++ b/apps/docs/rc/references/api/vendor/orders/create-shipment.mdx@@ -0,0 +1,99 @@+---+title: "Create Shipment"+api: "POST /vendor/orders/{id}/fulfillments/{fulfillment_id}/shipments"+description: "Create a shipment for a fulfillment."+---++Marks the fulfillment as shipped with optional tracking labels and returns the updated order.++## Path parameters++<ParamField path="id" type="string" required>The order's ID.</ParamField>+<ParamField path="fulfillment_id" type="string" required>The fulfillment's ID.</ParamField>++## Query parameters++<ParamField query="fields" type="string">Comma-separated list of fields to include in the returned order, prefix with `+`/`-` to add or remove from defaults.</ParamField>++## Body parameters++<ParamField body="items" type="object[]" required>+ Items included in the shipment.+ <Expandable title="properties">+ <ParamField body="id" type="string" required>Line item ID.</ParamField>+ <ParamField body="quantity" type="number" required>Quantity shipped.</ParamField>+ </Expandable>+</ParamField>+<ParamField body="labels" type="object[]">+ Tracking labels for the shipment.+ <Expandable title="properties">+ <ParamField body="tracking_number" type="string" required>The shipment's tracking number.</ParamField>+ <ParamField body="tracking_url" type="string" required>URL to track the shipment.</ParamField>+ <ParamField body="label_url" type="string" required>URL of the shipping label.</ParamField>+ </Expandable>+</ParamField>++## Response++<ResponseField name="order" type="object">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The order's ID.</ResponseField>+ <ResponseField name="status" type="string">The order's status.</ResponseField>+ <ResponseField name="fulfillments" type="object[]">The order's fulfillments with `shipped_at` set.</ResponseField>+ <ResponseField name="items" type="object[]">The order's line items.</ResponseField>+ </Expandable>+</ResponseField>++<RequestExample>+```bash cURL+curl -X POST 'http://localhost:9000/vendor/orders/order_01HXYZABCDEF/fulfillments/ful_01HXYZABCDEF/shipments' \+ -H 'Authorization: Bearer <token>' \+ -H 'x-seller-id: <seller_id>' \+ -H 'Content-Type: application/json' \+ -d '{+ "items": [{ "id": "ordli_01HXYZABCDEF", "quantity": 1 }],+ "labels": [+ {+ "tracking_number": "1Z999AA10123456784",+ "tracking_url": "https://track.example.com/1Z999AA10123456784",+ "label_url": "https://labels.example.com/1Z999AA10123456784.pdf"+ }+ ]+ }'+```++```ts JS Client+const { order } =+ await client.vendor.orders.$id.fulfillments.$fulfillment_id.shipments.mutate({+ $id: "order_01HXYZABCDEF",+ $fulfillment_id: "ful_01HXYZABCDEF",+ items: [{ id: "ordli_01HXYZABCDEF", quantity: 1 }],+ labels: [+ {+ tracking_number: "1Z999AA10123456784",+ tracking_url: "https://track.example.com/1Z999AA10123456784",+ label_url: "https://labels.example.com/1Z999AA10123456784.pdf",+ },+ ],+ })+```+</RequestExample>++<ResponseExample>+```json 200+{+ "order": {+ "id": "order_01HXYZABCDEF",+ "display_id": 42,+ "status": "pending",+ "fulfillments": [+ {+ "id": "ful_01HXYZABCDEF",+ "shipped_at": "2026-06-04T10:00:00.000Z",+ "delivered_at": null+ }+ ]+ }+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/vendor/orders/get-order-commission-lines.mdx b/apps/docs/rc/references/api/vendor/orders/get-order-commission-lines.mdxnew file mode 100644index 000000000..f6b91fb59--- /dev/null+++ b/apps/docs/rc/references/api/vendor/orders/get-order-commission-lines.mdx@@ -0,0 +1,66 @@+---+title: "Get Order Commission Lines"+api: "GET /vendor/orders/{id}/commission-lines"+description: "Retrieve the commission lines charged on the order."+---++Returns the marketplace commission lines applied to the order's items and shipping methods for the authenticated seller.++## Path parameters++<ParamField path="id" type="string" required>The order's ID.</ParamField>++## Response++<ResponseField name="commission_lines" type="object[]">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The commission line's ID.</ResponseField>+ <ResponseField name="item_id" type="string">ID of the line item the commission applies to, if any.</ResponseField>+ <ResponseField name="shipping_method_id" type="string">ID of the shipping method the commission applies to, if any.</ResponseField>+ <ResponseField name="commission_rate_id" type="string">ID of the commission rate that produced the line.</ResponseField>+ <ResponseField name="code" type="string">Code of the applied commission rule.</ResponseField>+ <ResponseField name="rate" type="number">The commission rate applied.</ResponseField>+ <ResponseField name="amount" type="number">The commission amount charged.</ResponseField>+ <ResponseField name="description" type="string">Description of the commission line.</ResponseField>+ <ResponseField name="created_at" type="string">Creation timestamp.</ResponseField>+ <ResponseField name="updated_at" type="string">Last update timestamp.</ResponseField>+ </Expandable>+</ResponseField>+<ResponseField name="count" type="number">Number of commission lines returned.</ResponseField>++<RequestExample>+```bash cURL+curl 'http://localhost:9000/vendor/orders/order_01HXYZABCDEF/commission-lines' \+ -H 'Authorization: Bearer <token>' \+ -H 'x-seller-id: <seller_id>'+```++```ts JS Client+const { commission_lines, count } =+ await client.vendor.orders.$id.commissionLines.query({+ $id: "order_01HXYZABCDEF",+ })+```+</RequestExample>++<ResponseExample>+```json 200+{+ "commission_lines": [+ {+ "id": "comline_01HXYZABCDEF",+ "item_id": "ordli_01HXYZABCDEF",+ "shipping_method_id": null,+ "commission_rate_id": "comrate_01HXYZABCDEF",+ "code": "default",+ "rate": 10,+ "amount": 250,+ "description": null,+ "created_at": "2026-06-01T10:00:00.000Z",+ "updated_at": "2026-06-01T10:00:00.000Z"+ }+ ],+ "count": 1+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/vendor/orders/list-order-changes.mdx b/apps/docs/rc/references/api/vendor/orders/list-order-changes.mdxnew file mode 100644index 000000000..bd6c388c9--- /dev/null+++ b/apps/docs/rc/references/api/vendor/orders/list-order-changes.mdx@@ -0,0 +1,75 @@+---+title: "List Order Changes"+api: "GET /vendor/orders/{id}/changes"+description: "Retrieve the change history of an order."+---++Returns all order changes (edits, returns, exchanges, claims) recorded for the order, with their actions.++## Path parameters++<ParamField path="id" type="string" required>The order's ID.</ParamField>++## Query parameters++<ParamField query="fields" type="string">Comma-separated list of fields to include, prefix with `+`/`-` to add or remove from defaults.</ParamField>++## Response++<ResponseField name="order_changes" type="object[]">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The order change's ID.</ResponseField>+ <ResponseField name="order_id" type="string">ID of the order the change belongs to.</ResponseField>+ <ResponseField name="version" type="number">Order version the change targets.</ResponseField>+ <ResponseField name="change_type" type="string">Type of change, e.g. `edit`, `return`, `exchange`, `claim`.</ResponseField>+ <ResponseField name="status" type="string">The change's status, e.g. `pending`, `confirmed`, `canceled`.</ResponseField>+ <ResponseField name="created_by" type="string">ID of the actor who created the change.</ResponseField>+ <ResponseField name="confirmed_by" type="string">ID of the actor who confirmed the change.</ResponseField>+ <ResponseField name="canceled_by" type="string">ID of the actor who canceled the change.</ResponseField>+ <ResponseField name="actions" type="object[]">The individual actions that make up the change.</ResponseField>+ <ResponseField name="created_at" type="string">Creation timestamp.</ResponseField>+ <ResponseField name="updated_at" type="string">Last update timestamp.</ResponseField>+ <ResponseField name="confirmed_at" type="string">Confirmation timestamp.</ResponseField>+ <ResponseField name="canceled_at" type="string">Cancellation timestamp.</ResponseField>+ </Expandable>+</ResponseField>++<RequestExample>+```bash cURL+curl 'http://localhost:9000/vendor/orders/order_01HXYZABCDEF/changes' \+ -H 'Authorization: Bearer <token>' \+ -H 'x-seller-id: <seller_id>'+```++```ts JS Client+const { order_changes } = await client.vendor.orders.$id.changes.query({+ $id: "order_01HXYZABCDEF",+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "order_changes": [+ {+ "id": "ordch_01HXYZABCDEF",+ "order_id": "order_01HXYZABCDEF",+ "version": 2,+ "change_type": "return",+ "status": "confirmed",+ "created_by": "sel_01HXYZABCDEF",+ "actions": [+ {+ "id": "ordchact_01HXYZABCDEF",+ "action": "RETURN_ITEM",+ "details": { "quantity": 1 }+ }+ ],+ "created_at": "2026-06-02T10:00:00.000Z",+ "confirmed_at": "2026-06-02T11:00:00.000Z"+ }+ ]+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/vendor/orders/list-orders.mdx b/apps/docs/rc/references/api/vendor/orders/list-orders.mdxnew file mode 100644index 000000000..29cc5a290--- /dev/null+++ b/apps/docs/rc/references/api/vendor/orders/list-orders.mdx@@ -0,0 +1,103 @@+---+title: "List Orders"+api: "GET /vendor/orders"+description: "Retrieve a paginated list of the seller's orders."+---++Returns all non-draft orders belonging to the authenticated seller, with optional filtering by status, customer, region, and more.++## Query parameters++<ParamField query="limit" type="number" default="50">Maximum number of records to return.</ParamField>+<ParamField query="offset" type="number" default="0">Number of records to skip.</ParamField>+<ParamField query="order" type="string">Field to sort by, prefix with `-` for descending order.</ParamField>+<ParamField query="fields" type="string">Comma-separated list of fields to include, prefix with `+`/`-` to add or remove from defaults.</ParamField>+<ParamField query="q" type="string">Search term matched against order fields.</ParamField>+<ParamField query="id" type="string | string[]">Filter by order ID(s).</ParamField>+<ParamField query="status" type="string | string[]">Filter by order status.</ParamField>+<ParamField query="customer_id" type="string | string[]">Filter by customer ID(s).</ParamField>+<ParamField query="sales_channel_id" type="string | string[]">Filter by sales channel ID(s).</ParamField>+<ParamField query="region_id" type="string | string[]">Filter by region ID(s).</ParamField>+<ParamField query="currency_code" type="string | string[]">Filter by currency code(s).</ParamField>+<ParamField query="fulfillment_status" type="string">Filter by fulfillment status.</ParamField>+<ParamField query="payment_status" type="string">Filter by payment status.</ParamField>+<ParamField query="created_at" type="object">Filter by creation date with operators like `$gte`, `$lte`.</ParamField>+<ParamField query="updated_at" type="object">Filter by update date with operators like `$gte`, `$lte`.</ParamField>++## Response++<ResponseField name="orders" type="object[]">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The order's ID.</ResponseField>+ <ResponseField name="display_id" type="number">Human-readable order number.</ResponseField>+ <ResponseField name="status" type="string">The order's status.</ResponseField>+ <ResponseField name="email" type="string">The customer's email.</ResponseField>+ <ResponseField name="currency_code" type="string">The order's currency code.</ResponseField>+ <ResponseField name="region_id" type="string">ID of the order's region.</ResponseField>+ <ResponseField name="customer_id" type="string">ID of the customer.</ResponseField>+ <ResponseField name="sales_channel_id" type="string">ID of the sales channel.</ResponseField>+ <ResponseField name="items" type="object[]">The order's line items, including variant, product, and offer data.</ResponseField>+ <ResponseField name="shipping_address" type="object">The order's shipping address.</ResponseField>+ <ResponseField name="billing_address" type="object">The order's billing address.</ResponseField>+ <ResponseField name="shipping_methods" type="object[]">The order's shipping methods.</ResponseField>+ <ResponseField name="payment_collections" type="object[]">Payment collections with payments and refunds.</ResponseField>+ <ResponseField name="fulfillments" type="object[]">The order's fulfillments.</ResponseField>+ <ResponseField name="returns" type="object[]">The order's returns with items and reasons.</ResponseField>+ <ResponseField name="summary" type="object">Order totals summary.</ResponseField>+ <ResponseField name="metadata" type="object">Custom key-value data.</ResponseField>+ <ResponseField name="created_at" type="string">Creation timestamp.</ResponseField>+ <ResponseField name="updated_at" type="string">Last update timestamp.</ResponseField>+ <ResponseField name="canceled_at" type="string">Cancellation timestamp, if canceled.</ResponseField>+ </Expandable>+</ResponseField>+<ResponseField name="count" type="number">Total number of matching orders.</ResponseField>+<ResponseField name="offset" type="number">Number of records skipped.</ResponseField>+<ResponseField name="limit" type="number">Number of records returned.</ResponseField>++<RequestExample>+```bash cURL+curl 'http://localhost:9000/vendor/orders?limit=20&order=-created_at' \+ -H 'Authorization: Bearer <token>' \+ -H 'x-seller-id: <seller_id>'+```++```ts JS Client+const { orders, count } = await client.vendor.orders.query({+ limit: 20,+ order: "-created_at",+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "orders": [+ {+ "id": "order_01HXYZABCDEF",+ "display_id": 42,+ "status": "pending",+ "email": "[email protected]",+ "currency_code": "usd",+ "region_id": "reg_01HXYZABCDEF",+ "customer_id": "cus_01HXYZABCDEF",+ "sales_channel_id": "sc_01HXYZABCDEF",+ "items": [+ {+ "id": "ordli_01HXYZABCDEF",+ "title": "T-Shirt / M",+ "quantity": 1,+ "unit_price": 2500+ }+ ],+ "created_at": "2026-06-01T10:00:00.000Z",+ "updated_at": "2026-06-01T10:00:00.000Z",+ "canceled_at": null+ }+ ],+ "count": 1,+ "offset": 0,+ "limit": 20+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/vendor/orders/mark-fulfillment-delivered.mdx b/apps/docs/rc/references/api/vendor/orders/mark-fulfillment-delivered.mdxnew file mode 100644index 000000000..198223a31--- /dev/null+++ b/apps/docs/rc/references/api/vendor/orders/mark-fulfillment-delivered.mdx@@ -0,0 +1,62 @@+---+title: "Mark Fulfillment as Delivered"+api: "POST /vendor/orders/{id}/fulfillments/{fulfillment_id}/mark-as-delivered"+description: "Mark a fulfillment as delivered."+---++Marks the fulfillment as delivered and returns the updated order.++## Path parameters++<ParamField path="id" type="string" required>The order's ID.</ParamField>+<ParamField path="fulfillment_id" type="string" required>The fulfillment's ID.</ParamField>++## Query parameters++<ParamField query="fields" type="string">Comma-separated list of fields to include in the returned order, prefix with `+`/`-` to add or remove from defaults.</ParamField>++## Response++<ResponseField name="order" type="object">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The order's ID.</ResponseField>+ <ResponseField name="status" type="string">The order's status.</ResponseField>+ <ResponseField name="fulfillments" type="object[]">The order's fulfillments with `delivered_at` set.</ResponseField>+ <ResponseField name="items" type="object[]">The order's line items.</ResponseField>+ </Expandable>+</ResponseField>++<RequestExample>+```bash cURL+curl -X POST 'http://localhost:9000/vendor/orders/order_01HXYZABCDEF/fulfillments/ful_01HXYZABCDEF/mark-as-delivered' \+ -H 'Authorization: Bearer <token>' \+ -H 'x-seller-id: <seller_id>'+```++```ts JS Client+const { order } =+ await client.vendor.orders.$id.fulfillments.$fulfillment_id.markAsDelivered.mutate({+ $id: "order_01HXYZABCDEF",+ $fulfillment_id: "ful_01HXYZABCDEF",+ })+```+</RequestExample>++<ResponseExample>+```json 200+{+ "order": {+ "id": "order_01HXYZABCDEF",+ "display_id": 42,+ "status": "pending",+ "fulfillments": [+ {+ "id": "ful_01HXYZABCDEF",+ "shipped_at": "2026-06-04T10:00:00.000Z",+ "delivered_at": "2026-06-06T09:30:00.000Z"+ }+ ]+ }+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/vendor/orders/preview-order.mdx b/apps/docs/rc/references/api/vendor/orders/preview-order.mdxnew file mode 100644index 000000000..77ec5fdc2--- /dev/null+++ b/apps/docs/rc/references/api/vendor/orders/preview-order.mdx@@ -0,0 +1,65 @@+---+title: "Preview Order"+api: "GET /vendor/orders/{id}/preview"+description: "Preview the order with its pending order change applied."+---++Returns a preview of the order as it would look once the currently active order change (e.g. a pending edit, return, or exchange) is confirmed.++## Path parameters++<ParamField path="id" type="string" required>The order's ID.</ParamField>++## Response++<ResponseField name="order" type="object">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The order's ID.</ResponseField>+ <ResponseField name="display_id" type="number">Human-readable order number.</ResponseField>+ <ResponseField name="status" type="string">The order's status.</ResponseField>+ <ResponseField name="items" type="object[]">Line items with pending change actions applied.</ResponseField>+ <ResponseField name="shipping_methods" type="object[]">Shipping methods with pending change actions applied.</ResponseField>+ <ResponseField name="order_change" type="object">The active order change being previewed.</ResponseField>+ <ResponseField name="total" type="number">Projected order total after the change.</ResponseField>+ </Expandable>+</ResponseField>++<RequestExample>+```bash cURL+curl 'http://localhost:9000/vendor/orders/order_01HXYZABCDEF/preview' \+ -H 'Authorization: Bearer <token>' \+ -H 'x-seller-id: <seller_id>'+```++```ts JS Client+const { order } = await client.vendor.orders.$id.preview.query({+ $id: "order_01HXYZABCDEF",+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "order": {+ "id": "order_01HXYZABCDEF",+ "display_id": 42,+ "status": "pending",+ "items": [+ {+ "id": "ordli_01HXYZABCDEF",+ "title": "T-Shirt / M",+ "quantity": 1,+ "unit_price": 2500+ }+ ],+ "order_change": {+ "id": "ordch_01HXYZABCDEF",+ "change_type": "edit",+ "status": "pending"+ },+ "total": 2500+ }+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/vendor/orders/retrieve-order.mdx b/apps/docs/rc/references/api/vendor/orders/retrieve-order.mdxnew file mode 100644index 000000000..c319bf0ea--- /dev/null+++ b/apps/docs/rc/references/api/vendor/orders/retrieve-order.mdx@@ -0,0 +1,84 @@+---+title: "Retrieve Order"+api: "GET /vendor/orders/{id}"+description: "Retrieve a single order by ID."+---++Returns an order belonging to the authenticated seller, including items, addresses, payments, fulfillments, and returns.++## Path parameters++<ParamField path="id" type="string" required>The order's ID.</ParamField>++## Query parameters++<ParamField query="fields" type="string">Comma-separated list of fields to include, prefix with `+`/`-` to add or remove from defaults.</ParamField>++## Response++<ResponseField name="order" type="object">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The order's ID.</ResponseField>+ <ResponseField name="display_id" type="number">Human-readable order number.</ResponseField>+ <ResponseField name="status" type="string">The order's status.</ResponseField>+ <ResponseField name="email" type="string">The customer's email.</ResponseField>+ <ResponseField name="currency_code" type="string">The order's currency code.</ResponseField>+ <ResponseField name="region_id" type="string">ID of the order's region.</ResponseField>+ <ResponseField name="customer_id" type="string">ID of the customer.</ResponseField>+ <ResponseField name="sales_channel_id" type="string">ID of the sales channel.</ResponseField>+ <ResponseField name="items" type="object[]">The order's line items, including variant, product, and offer data.</ResponseField>+ <ResponseField name="shipping_address" type="object">The order's shipping address.</ResponseField>+ <ResponseField name="billing_address" type="object">The order's billing address.</ResponseField>+ <ResponseField name="shipping_methods" type="object[]">The order's shipping methods.</ResponseField>+ <ResponseField name="payment_collections" type="object[]">Payment collections with payments and refunds.</ResponseField>+ <ResponseField name="fulfillments" type="object[]">The order's fulfillments.</ResponseField>+ <ResponseField name="returns" type="object[]">The order's returns with items and reasons.</ResponseField>+ <ResponseField name="summary" type="object">Order totals summary.</ResponseField>+ <ResponseField name="metadata" type="object">Custom key-value data.</ResponseField>+ <ResponseField name="created_at" type="string">Creation timestamp.</ResponseField>+ <ResponseField name="updated_at" type="string">Last update timestamp.</ResponseField>+ <ResponseField name="canceled_at" type="string">Cancellation timestamp, if canceled.</ResponseField>+ </Expandable>+</ResponseField>++<RequestExample>+```bash cURL+curl 'http://localhost:9000/vendor/orders/order_01HXYZABCDEF' \+ -H 'Authorization: Bearer <token>' \+ -H 'x-seller-id: <seller_id>'+```++```ts JS Client+const { order } = await client.vendor.orders.$id.query({+ $id: "order_01HXYZABCDEF",+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "order": {+ "id": "order_01HXYZABCDEF",+ "display_id": 42,+ "status": "pending",+ "email": "[email protected]",+ "currency_code": "usd",+ "items": [+ {+ "id": "ordli_01HXYZABCDEF",+ "title": "T-Shirt / M",+ "quantity": 1,+ "unit_price": 2500+ }+ ],+ "summary": {+ "current_order_total": 2500,+ "paid_total": 2500+ },+ "created_at": "2026-06-01T10:00:00.000Z",+ "updated_at": "2026-06-01T10:00:00.000Z"+ }+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/vendor/payout-accounts/create-onboarding.mdx b/apps/docs/rc/references/api/vendor/payout-accounts/create-onboarding.mdxnew file mode 100644index 000000000..b3656471c--- /dev/null+++ b/apps/docs/rc/references/api/vendor/payout-accounts/create-onboarding.mdx@@ -0,0 +1,68 @@+---+title: "Create Onboarding"+api: "POST /vendor/payout-accounts/{id}/onboarding"+description: "Start or refresh provider onboarding for a payout account."+---++Creates an onboarding session with the payout provider — for Stripe Connect, the returned `data` contains the hosted onboarding link.++## Path parameters++<ParamField path="id" type="string" required>+ The payout account's ID.+</ParamField>++## Body parameters++<ParamField body="data" type="object">+ Provider-specific data forwarded when creating the onboarding.+</ParamField>++<ParamField body="context" type="object">+ Provider-specific context (e.g. `refresh_url` and `return_url` for Stripe Connect).+</ParamField>++## Response++<ResponseField name="onboarding" type="object">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The onboarding's ID.</ResponseField>+ <ResponseField name="data" type="object">Provider-specific onboarding data, such as the hosted onboarding URL.</ResponseField>+ <ResponseField name="context" type="object">The context used to create the onboarding.</ResponseField>+ <ResponseField name="created_at" type="string">Creation timestamp.</ResponseField>+ <ResponseField name="updated_at" type="string">Update timestamp.</ResponseField>+ </Expandable>+</ResponseField>++<RequestExample>+```bash cURL+curl -X POST 'http://localhost:9000/vendor/payout-accounts/pacc_01HXYZ/onboarding' \+ -H 'Authorization: Bearer <token>' \+ -H 'x-seller-id: <seller_id>' \+ -H 'Content-Type: application/json' \+ -d '{"context": {"refresh_url": "https://vendor.example.com/payouts", "return_url": "https://vendor.example.com/payouts"}}'+```++```ts JS Client+const { onboarding } = await client.vendor.payoutAccounts.$id.onboarding.mutate({+ $id: "pacc_01HXYZ",+ context: {+ refresh_url: "https://vendor.example.com/payouts",+ return_url: "https://vendor.example.com/payouts",+ },+})+```+</RequestExample>++<ResponseExample>+```json 201+{+ "onboarding": {+ "id": "onb_01HXYZ",+ "data": { "url": "https://connect.stripe.com/setup/s/..." },+ "context": { "return_url": "https://vendor.example.com/payouts" },+ "created_at": "2026-01-15T10:00:00.000Z"+ }+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/vendor/payout-accounts/create-payout-account.mdx b/apps/docs/rc/references/api/vendor/payout-accounts/create-payout-account.mdxnew file mode 100644index 000000000..ddba8a53d--- /dev/null+++ b/apps/docs/rc/references/api/vendor/payout-accounts/create-payout-account.mdx@@ -0,0 +1,59 @@+---+title: "Create Payout Account"+api: "POST /vendor/payout-accounts"+description: "Create the seller's payout account with the configured provider."+---++Creates a payout account for the current seller through the configured payout provider (e.g. Stripe Connect).++## Body parameters++<ParamField body="data" type="object">+ Provider-specific data forwarded when creating the account.+</ParamField>++<ParamField body="context" type="object">+ Provider-specific context (e.g. `{ "country": "US" }` for Stripe Connect).+</ParamField>++## Response++<ResponseField name="payout_account" type="object">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The payout account's ID.</ResponseField>+ <ResponseField name="status" type="enum">One of `pending`, `active`, `restricted`, `rejected`.</ResponseField>+ <ResponseField name="data" type="object">Provider-specific account data.</ResponseField>+ <ResponseField name="context" type="object">The context used to create the account.</ResponseField>+ <ResponseField name="onboarding" type="object">The onboarding record, once created.</ResponseField>+ <ResponseField name="created_at" type="string">Creation timestamp.</ResponseField>+ </Expandable>+</ResponseField>++<RequestExample>+```bash cURL+curl -X POST 'http://localhost:9000/vendor/payout-accounts' \+ -H 'Authorization: Bearer <token>' \+ -H 'x-seller-id: <seller_id>' \+ -H 'Content-Type: application/json' \+ -d '{"context": {"country": "US"}}'+```++```ts JS Client+const { payout_account } = await client.vendor.payoutAccounts.mutate({+ context: { country: "US" },+})+```+</RequestExample>++<ResponseExample>+```json 201+{+ "payout_account": {+ "id": "pacc_01HXYZ",+ "status": "pending",+ "context": { "country": "US" },+ "created_at": "2026-01-15T10:00:00.000Z"+ }+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/vendor/payout-accounts/retrieve-payout-account-by-id.mdx b/apps/docs/rc/references/api/vendor/payout-accounts/retrieve-payout-account-by-id.mdxnew file mode 100644index 000000000..09272fffd--- /dev/null+++ b/apps/docs/rc/references/api/vendor/payout-accounts/retrieve-payout-account-by-id.mdx@@ -0,0 +1,60 @@+---+title: "Retrieve Payout Account"+api: "GET /vendor/payout-accounts/{id}"+description: "Retrieve one of the seller's payout accounts by ID."+---++Returns a payout account, verifying it belongs to the current seller.++## Path parameters++<ParamField path="id" type="string" required>+ The payout account's ID.+</ParamField>++## Query parameters++<ParamField query="fields" type="string">+ Comma-separated fields to include in the response.+</ParamField>++## Response++<ResponseField name="payout_account" type="object">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The payout account's ID.</ResponseField>+ <ResponseField name="status" type="enum">One of `pending`, `active`, `restricted`, `rejected`.</ResponseField>+ <ResponseField name="data" type="object">Provider-specific account data.</ResponseField>+ <ResponseField name="context" type="object">Context passed when the account was created.</ResponseField>+ <ResponseField name="onboarding" type="object">The account's onboarding record (`id`, `data`, `context`).</ResponseField>+ <ResponseField name="created_at" type="string">Creation timestamp.</ResponseField>+ <ResponseField name="updated_at" type="string">Update timestamp.</ResponseField>+ </Expandable>+</ResponseField>++<RequestExample>+```bash cURL+curl 'http://localhost:9000/vendor/payout-accounts/pacc_01HXYZ' \+ -H 'Authorization: Bearer <token>' \+ -H 'x-seller-id: <seller_id>'+```++```ts JS Client+const { payout_account } = await client.vendor.payoutAccounts.$id.query({+ $id: "pacc_01HXYZ",+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "payout_account": {+ "id": "pacc_01HXYZ",+ "status": "active",+ "onboarding": { "id": "onb_01HXYZ" },+ "created_at": "2026-01-15T10:00:00.000Z"+ }+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/vendor/payout-accounts/retrieve-payout-account.mdx b/apps/docs/rc/references/api/vendor/payout-accounts/retrieve-payout-account.mdxnew file mode 100644index 000000000..3ce51d3fd--- /dev/null+++ b/apps/docs/rc/references/api/vendor/payout-accounts/retrieve-payout-account.mdx@@ -0,0 +1,77 @@+---+title: "List Payout Accounts"+api: "GET /vendor/payout-accounts"+description: "List the seller's payout accounts."+---++Returns the payout accounts linked to the current seller, each with its onboarding.++<Note>+ A seller typically has at most one payout account, so the first entry is usually the one you need.+</Note>++## Query parameters++<ParamField query="limit" type="number" default="20">+ Maximum number of items to return.+</ParamField>++<ParamField query="offset" type="number" default="0">+ Number of items to skip.+</ParamField>++<ParamField query="order" type="string">+ Field to sort by, prefixed with `-` for descending order.+</ParamField>++<ParamField query="fields" type="string">+ Comma-separated fields to include in the response.+</ParamField>++## Response++<ResponseField name="payout_accounts" type="object[]">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The payout account's ID.</ResponseField>+ <ResponseField name="status" type="enum">One of `pending`, `active`, `restricted`, `rejected`.</ResponseField>+ <ResponseField name="data" type="object">Provider-specific account data.</ResponseField>+ <ResponseField name="context" type="object">Context passed when the account was created.</ResponseField>+ <ResponseField name="onboarding" type="object">The account's onboarding record (`id`, `data`, `context`).</ResponseField>+ <ResponseField name="created_at" type="string">Creation timestamp.</ResponseField>+ <ResponseField name="updated_at" type="string">Update timestamp.</ResponseField>+ </Expandable>+</ResponseField>++<ResponseField name="count" type="number">Total number of payout accounts.</ResponseField>+<ResponseField name="offset" type="number">Number of items skipped.</ResponseField>+<ResponseField name="limit" type="number">Maximum number of items returned.</ResponseField>++<RequestExample>+```bash cURL+curl 'http://localhost:9000/vendor/payout-accounts' \+ -H 'Authorization: Bearer <token>' \+ -H 'x-seller-id: <seller_id>'+```++```ts JS Client+const { payout_accounts } = await client.vendor.payoutAccounts.query()+```+</RequestExample>++<ResponseExample>+```json 200+{+ "payout_accounts": [+ {+ "id": "pacc_01HXYZ",+ "status": "active",+ "onboarding": { "id": "onb_01HXYZ", "data": { "url": "https://connect.stripe.com/setup/..." } },+ "created_at": "2026-01-15T10:00:00.000Z"+ }+ ],+ "count": 1,+ "offset": 0,+ "limit": 20+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/vendor/payouts/list-payouts.mdx b/apps/docs/rc/references/api/vendor/payouts/list-payouts.mdxnew file mode 100644index 000000000..75d4e859c--- /dev/null+++ b/apps/docs/rc/references/api/vendor/payouts/list-payouts.mdx@@ -0,0 +1,90 @@+---+title: "List Payouts"+api: "GET /vendor/payouts"+description: "List the seller's payouts."+---++Returns the payouts belonging to the current seller.++## Query parameters++<ParamField query="limit" type="number" default="20">+ Maximum number of items to return.+</ParamField>++<ParamField query="offset" type="number" default="0">+ Number of items to skip.+</ParamField>++<ParamField query="order" type="string">+ Field to sort by, prefixed with `-` for descending order.+</ParamField>++<ParamField query="fields" type="string">+ Comma-separated fields to include in the response.+</ParamField>++<ParamField query="status" type="string | string[]">+ Filter by payout status: `pending`, `processing`, `paid`, `failed`, `canceled`.+</ParamField>++<ParamField query="created_at" type="object">+ Filter by creation date using operators like `$gte`, `$lte`, `$gt`, `$lt`.+</ParamField>++<ParamField query="updated_at" type="object">+ Filter by update date using operators like `$gte`, `$lte`, `$gt`, `$lt`.+</ParamField>++## Response++<ResponseField name="payouts" type="object[]">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The payout's ID.</ResponseField>+ <ResponseField name="display_id" type="number">Human-readable payout number.</ResponseField>+ <ResponseField name="amount" type="number">The payout amount.</ResponseField>+ <ResponseField name="currency_code" type="string">The payout currency.</ResponseField>+ <ResponseField name="status" type="enum">One of `pending`, `processing`, `paid`, `failed`, `canceled`.</ResponseField>+ <ResponseField name="data" type="object">Provider-specific data.</ResponseField>+ <ResponseField name="created_at" type="string">Creation timestamp.</ResponseField>+ <ResponseField name="updated_at" type="string">Update timestamp.</ResponseField>+ </Expandable>+</ResponseField>++<ResponseField name="count" type="number">Total number of payouts.</ResponseField>+<ResponseField name="offset" type="number">Number of items skipped.</ResponseField>+<ResponseField name="limit" type="number">Maximum number of items returned.</ResponseField>++<RequestExample>+```bash cURL+curl 'http://localhost:9000/vendor/payouts?status=paid' \+ -H 'Authorization: Bearer <token>' \+ -H 'x-seller-id: <seller_id>'+```++```ts JS Client+const { payouts, count } = await client.vendor.payouts.query({+ status: "paid",+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "payouts": [+ {+ "id": "pout_01HXYZ",+ "display_id": 42,+ "amount": 1250,+ "currency_code": "usd",+ "status": "paid",+ "created_at": "2026-01-15T10:00:00.000Z"+ }+ ],+ "count": 1,+ "offset": 0,+ "limit": 20+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/vendor/payouts/retrieve-payout.mdx b/apps/docs/rc/references/api/vendor/payouts/retrieve-payout.mdxnew file mode 100644index 000000000..00d0fe15a--- /dev/null+++ b/apps/docs/rc/references/api/vendor/payouts/retrieve-payout.mdx@@ -0,0 +1,63 @@+---+title: "Retrieve Payout"+api: "GET /vendor/payouts/{id}"+description: "Retrieve one of the seller's payouts by ID."+---++Returns a payout, verifying it belongs to the current seller.++## Path parameters++<ParamField path="id" type="string" required>+ The payout's ID.+</ParamField>++## Query parameters++<ParamField query="fields" type="string">+ Comma-separated fields to include in the response.+</ParamField>++## Response++<ResponseField name="payout" type="object">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The payout's ID.</ResponseField>+ <ResponseField name="display_id" type="number">Human-readable payout number.</ResponseField>+ <ResponseField name="amount" type="number">The payout amount.</ResponseField>+ <ResponseField name="currency_code" type="string">The payout currency.</ResponseField>+ <ResponseField name="status" type="enum">One of `pending`, `processing`, `paid`, `failed`, `canceled`.</ResponseField>+ <ResponseField name="data" type="object">Provider-specific data.</ResponseField>+ <ResponseField name="created_at" type="string">Creation timestamp.</ResponseField>+ <ResponseField name="updated_at" type="string">Update timestamp.</ResponseField>+ </Expandable>+</ResponseField>++<RequestExample>+```bash cURL+curl 'http://localhost:9000/vendor/payouts/pout_01HXYZ' \+ -H 'Authorization: Bearer <token>' \+ -H 'x-seller-id: <seller_id>'+```++```ts JS Client+const { payout } = await client.vendor.payouts.$id.query({+ $id: "pout_01HXYZ",+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "payout": {+ "id": "pout_01HXYZ",+ "display_id": 42,+ "amount": 1250,+ "currency_code": "usd",+ "status": "paid",+ "created_at": "2026-01-15T10:00:00.000Z"+ }+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/vendor/product-attributes/list-product-attributes.mdx b/apps/docs/rc/references/api/vendor/product-attributes/list-product-attributes.mdxnew file mode 100644index 000000000..f093c9666--- /dev/null+++ b/apps/docs/rc/references/api/vendor/product-attributes/list-product-attributes.mdx@@ -0,0 +1,135 @@+---+title: "List Product Attributes"+api: "GET /vendor/product-attributes"+description: "Retrieve a paginated list of global product attributes."+---++Returns global attribute definitions (product-scoped attributes are excluded) with their values and category assignments.++## Query parameters++<ParamField query="limit" type="number" default="50">+ The maximum number of attributes to return.+</ParamField>++<ParamField query="offset" type="number" default="0">+ The number of attributes to skip before returning results.+</ParamField>++<ParamField query="order" type="string">+ The field to sort by, e.g. `rank` or `-created_at`.+</ParamField>++<ParamField query="fields" type="string">+ Comma-separated fields to include in the response. Prefix with `+`/`-` to add to or remove from the defaults.+</ParamField>++<ParamField query="q" type="string">+ Search term matched against attribute fields.+</ParamField>++<ParamField query="id" type="string | string[]">+ Filter by attribute ID(s).+</ParamField>++<ParamField query="handle" type="string | string[]">+ Filter by attribute handle(s).+</ParamField>++<ParamField query="type" type="string | string[]">+ Filter by type. Values: `single_select`, `multi_select`, `unit`, `toggle`, `text`.+</ParamField>++<ParamField query="is_required" type="boolean">+ Filter by whether the attribute is required.+</ParamField>++<ParamField query="is_variant_axis" type="boolean">+ Filter by whether the attribute drives variant combinations.+</ParamField>++<ParamField query="is_filterable" type="boolean">+ Filter by whether the attribute is filterable.+</ParamField>++<ParamField query="is_active" type="boolean">+ Filter by whether the attribute is active.+</ParamField>++<ParamField query="category_id" type="string | string[]">+ Filter by assigned category ID(s).+</ParamField>++<ParamField query="created_at" type="object">+ Filter by creation date using operators like `$gt`, `$lt`, `$gte`, `$lte`.+</ParamField>++<ParamField query="updated_at" type="object">+ Filter by update date using operators like `$gt`, `$lt`, `$gte`, `$lte`.+</ParamField>++<ParamField query="$and" type="object[]">+ Join multiple filter objects with a logical AND.+</ParamField>++<ParamField query="$or" type="object[]">+ Join multiple filter objects with a logical OR.+</ParamField>++## Response++<ResponseField name="product_attributes" type="object[]">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The attribute's ID.</ResponseField>+ <ResponseField name="name" type="string">The attribute's name.</ResponseField>+ <ResponseField name="handle" type="string">The attribute's handle.</ResponseField>+ <ResponseField name="description" type="string">The attribute's description.</ResponseField>+ <ResponseField name="type" type="string">One of `single_select`, `multi_select`, `unit`, `toggle`, `text`.</ResponseField>+ <ResponseField name="is_required" type="boolean">Whether a value is required on products.</ResponseField>+ <ResponseField name="is_filterable" type="boolean">Whether the attribute can be used for filtering.</ResponseField>+ <ResponseField name="is_variant_axis" type="boolean">Whether the attribute drives variant combinations.</ResponseField>+ <ResponseField name="is_active" type="boolean">Whether the attribute is active.</ResponseField>+ <ResponseField name="rank" type="number">Sort rank of the attribute.</ResponseField>+ <ResponseField name="values" type="object[]">The attribute's values with `id`, `name`, `handle`, and `rank`.</ResponseField>+ <ResponseField name="categories" type="object[]">Assigned categories with `id`, `name`, and `handle`.</ResponseField>+ </Expandable>+</ResponseField>++<ResponseField name="count" type="number">Total number of matching attributes.</ResponseField>+<ResponseField name="offset" type="number">Number of skipped attributes.</ResponseField>+<ResponseField name="limit" type="number">Maximum number of returned attributes.</ResponseField>++<RequestExample>+```bash cURL+curl 'http://localhost:9000/vendor/product-attributes?type=multi_select' \+ -H 'Authorization: Bearer <token>' \+ -H 'x-seller-id: <seller_id>'+```++```ts JS Client+const { product_attributes, count } =+ await client.vendor.productAttributes.query({ type: "multi_select" })+```+</RequestExample>++<ResponseExample>+```json 200+{+ "product_attributes": [+ {+ "id": "pattr_01HXYZ",+ "name": "Color",+ "handle": "color",+ "type": "multi_select",+ "is_variant_axis": true,+ "values": [+ { "id": "pattrval_01HXYZ", "name": "Red", "rank": 0 }+ ]+ }+ ],+ "count": 1,+ "offset": 0,+ "limit": 50+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/vendor/product-attributes/retrieve-product-attribute.mdx b/apps/docs/rc/references/api/vendor/product-attributes/retrieve-product-attribute.mdxnew file mode 100644index 000000000..b3ebf71b8--- /dev/null+++ b/apps/docs/rc/references/api/vendor/product-attributes/retrieve-product-attribute.mdx@@ -0,0 +1,71 @@+---+title: "Retrieve Product Attribute"+api: "GET /vendor/product-attributes/{id}"+description: "Retrieve a product attribute by its ID."+---++Returns a single attribute definition with its values and category assignments.++## Path parameters++<ParamField path="id" type="string" required>+ The attribute's ID.+</ParamField>++## Query parameters++<ParamField query="fields" type="string">+ Comma-separated fields to include in the response. Prefix with `+`/`-` to add to or remove from the defaults.+</ParamField>++## Response++<ResponseField name="product_attribute" type="object">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The attribute's ID.</ResponseField>+ <ResponseField name="name" type="string">The attribute's name.</ResponseField>+ <ResponseField name="handle" type="string">The attribute's handle.</ResponseField>+ <ResponseField name="description" type="string">The attribute's description.</ResponseField>+ <ResponseField name="type" type="string">One of `single_select`, `multi_select`, `unit`, `toggle`, `text`.</ResponseField>+ <ResponseField name="is_required" type="boolean">Whether a value is required on products.</ResponseField>+ <ResponseField name="is_filterable" type="boolean">Whether the attribute can be used for filtering.</ResponseField>+ <ResponseField name="is_variant_axis" type="boolean">Whether the attribute drives variant combinations.</ResponseField>+ <ResponseField name="is_active" type="boolean">Whether the attribute is active.</ResponseField>+ <ResponseField name="rank" type="number">Sort rank of the attribute.</ResponseField>+ <ResponseField name="metadata" type="object">Custom key-value pairs.</ResponseField>+ <ResponseField name="values" type="object[]">The attribute's values with `id`, `name`, `handle`, and `rank`.</ResponseField>+ <ResponseField name="categories" type="object[]">Assigned categories with `id`, `name`, and `handle`.</ResponseField>+ </Expandable>+</ResponseField>++<RequestExample>+```bash cURL+curl 'http://localhost:9000/vendor/product-attributes/pattr_01HXYZ' \+ -H 'Authorization: Bearer <token>' \+ -H 'x-seller-id: <seller_id>'+```++```ts JS Client+const { product_attribute } = await client.vendor.productAttributes.$id.query({+ $id: "pattr_01HXYZ",+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "product_attribute": {+ "id": "pattr_01HXYZ",+ "name": "Color",+ "handle": "color",+ "type": "multi_select",+ "is_variant_axis": true,+ "values": [+ { "id": "pattrval_01HXYZ", "name": "Red", "rank": 0 },+ { "id": "pattrval_01HABC", "name": "Blue", "rank": 1 }+ ]+ }+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/vendor/product-variants/list-variants.mdx b/apps/docs/rc/references/api/vendor/product-variants/list-variants.mdxnew file mode 100644index 000000000..989d66760--- /dev/null+++ b/apps/docs/rc/references/api/vendor/product-variants/list-variants.mdx@@ -0,0 +1,136 @@+---+title: "List Variants"+api: "GET /vendor/product-variants"+description: "Retrieve a paginated list of product variants across products."+---++Returns product variants regardless of parent product, with the parent product embedded.++## Query parameters++<ParamField query="limit" type="number" default="50">+ The maximum number of variants to return.+</ParamField>++<ParamField query="offset" type="number" default="0">+ The number of variants to skip before returning results.+</ParamField>++<ParamField query="order" type="string">+ The field to sort by, e.g. `created_at` or `-created_at` for descending.+</ParamField>++<ParamField query="fields" type="string">+ Comma-separated fields to include in the response. Prefix with `+`/`-` to add to or remove from the defaults.+</ParamField>++<ParamField query="q" type="string">+ Search term matched against variant fields.+</ParamField>++<ParamField query="id" type="string | string[]">+ Filter by variant ID(s).+</ParamField>++<ParamField query="manage_inventory" type="boolean">+ Filter by whether inventory is managed for the variant.+</ParamField>++<ParamField query="allow_backorder" type="boolean">+ Filter by whether backorders are allowed.+</ParamField>++<ParamField query="sku" type="string | string[]">+ Filter by SKU(s).+</ParamField>++<ParamField query="ean" type="string | string[]">+ Filter by EAN(s).+</ParamField>++<ParamField query="upc" type="string | string[]">+ Filter by UPC(s).+</ParamField>++<ParamField query="barcode" type="string | string[]">+ Filter by barcode(s).+</ParamField>++<ParamField query="product_id" type="string | string[]">+ Filter by parent product ID(s).+</ParamField>++<ParamField query="created_at" type="object">+ Filter by creation date using operators like `$gt`, `$lt`, `$gte`, `$lte`.+</ParamField>++<ParamField query="updated_at" type="object">+ Filter by update date using operators like `$gt`, `$lt`, `$gte`, `$lte`.+</ParamField>++<ParamField query="deleted_at" type="object">+ Filter by deletion date using operators like `$gt`, `$lt`, `$gte`, `$lte`.+</ParamField>++<ParamField query="$and" type="object[]">+ Join multiple filter objects with a logical AND.+</ParamField>++<ParamField query="$or" type="object[]">+ Join multiple filter objects with a logical OR.+</ParamField>++## Response++<ResponseField name="variants" type="object[]">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The variant's ID.</ResponseField>+ <ResponseField name="title" type="string">The variant's title.</ResponseField>+ <ResponseField name="sku" type="string">The variant's SKU.</ResponseField>+ <ResponseField name="ean" type="string">EAN barcode.</ResponseField>+ <ResponseField name="upc" type="string">UPC barcode.</ResponseField>+ <ResponseField name="barcode" type="string">Generic barcode.</ResponseField>+ <ResponseField name="product_id" type="string">ID of the parent product.</ResponseField>+ <ResponseField name="product" type="object">The parent product record.</ResponseField>+ <ResponseField name="manage_inventory" type="boolean">Whether inventory is managed for the variant.</ResponseField>+ <ResponseField name="allow_backorder" type="boolean">Whether backorders are allowed.</ResponseField>+ <ResponseField name="variant_rank" type="number">Sort rank of the variant.</ResponseField>+ </Expandable>+</ResponseField>++<ResponseField name="count" type="number">Total number of matching variants.</ResponseField>+<ResponseField name="offset" type="number">Number of skipped variants.</ResponseField>+<ResponseField name="limit" type="number">Maximum number of returned variants.</ResponseField>++<RequestExample>+```bash cURL+curl 'http://localhost:9000/vendor/product-variants?sku=ACME-SHIRT-M' \+ -H 'Authorization: Bearer <token>' \+ -H 'x-seller-id: <seller_id>'+```++```ts JS Client+const { variants, count } = await client.vendor.productVariants.query({+ sku: "ACME-SHIRT-M",+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "variants": [+ {+ "id": "variant_01HXYZ",+ "title": "M",+ "sku": "ACME-SHIRT-M",+ "product_id": "prod_01HXYZ",+ "product": { "id": "prod_01HXYZ", "title": "Acme T-Shirt" }+ }+ ],+ "count": 1,+ "offset": 0,+ "limit": 50+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/vendor/products/batch-product-attributes.mdx b/apps/docs/rc/references/api/vendor/products/batch-product-attributes.mdxnew file mode 100644index 000000000..8ed1d137c--- /dev/null+++ b/apps/docs/rc/references/api/vendor/products/batch-product-attributes.mdx@@ -0,0 +1,104 @@+---+title: "Batch Product Attributes"+api: "POST /vendor/products/{id}/attributes/batch"+description: "Stage attribute additions, removals, and updates on a product."+---++Stages attribute operations as a pending change request instead of applying them directly.++<Note>+ The endpoint responds with `202 Accepted` and a `product_change` record containing `ATTRIBUTE_ADD` / `ATTRIBUTE_REMOVE` / `ATTRIBUTE_UPDATE` actions.+</Note>++## Path parameters++<ParamField path="id" type="string" required>+ The product's ID.+</ParamField>++## Body parameters++<ParamField body="add" type="object[]">+ Attributes to attach; each entry references an existing attribute by `id` or defines one inline by `title`.+ <Expandable title="properties">+ <ParamField body="id" type="string">Existing attribute ID (referencing form).</ParamField>+ <ParamField body="value_ids" type="string[]">IDs of attribute values to select (referencing form).</ParamField>+ <ParamField body="value" type="string | number | boolean">Scalar value for `text`, `unit`, or `toggle` attributes.</ParamField>+ <ParamField body="title" type="string">Attribute title (inline form).</ParamField>+ <ParamField body="type" type="string">One of `single_select`, `multi_select`, `text`, `toggle`, `unit`. Required for inline non-axis attributes unless `value` is a boolean.</ParamField>+ <ParamField body="values" type="string[]">Value names to create and select (inline form).</ParamField>+ <ParamField body="is_variant_axis" type="boolean">Whether the attribute drives variant combinations; only allowed on `multi_select` attributes.</ParamField>+ <ParamField body="is_filterable" type="boolean">Whether the attribute is filterable (inline form).</ParamField>+ <ParamField body="is_required" type="boolean">Whether the attribute is required (inline form).</ParamField>+ <ParamField body="description" type="string">Attribute description (inline form).</ParamField>+ <ParamField body="metadata" type="object">Custom key-value pairs (inline form).</ParamField>+ </Expandable>+</ParamField>++<ParamField body="remove" type="string[]">+ IDs of attributes to detach from the product.+</ParamField>++<ParamField body="update" type="object[]">+ Changes to attributes already attached to the product.+ <Expandable title="properties">+ <ParamField body="id" type="string" required>The attribute's ID.</ParamField>+ <ParamField body="title" type="string">New attribute title.</ParamField>+ <ParamField body="add" type="(string | object)[]">Values to select — plain strings or `{ "value": "..." }` objects.</ParamField>+ <ParamField body="remove" type="string[]">Value IDs to deselect.</ParamField>+ <ParamField body="value" type="string | number | boolean">New scalar value for `text`, `unit`, or `toggle` attributes.</ParamField>+ </Expandable>+</ParamField>++## Response++<ResponseField name="product_change" type="object">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The change request's ID.</ResponseField>+ <ResponseField name="product_id" type="string">ID of the product the change targets.</ResponseField>+ <ResponseField name="status" type="string">One of `pending`, `confirmed`, `declined`, `canceled`.</ResponseField>+ <ResponseField name="actions" type="object[]">Staged attribute operations, each with `id`, `action`, `details`, `ordering`, and `applied`.</ResponseField>+ </Expandable>+</ResponseField>++<RequestExample>+```bash cURL+curl -X POST 'http://localhost:9000/vendor/products/prod_01HXYZ/attributes/batch' \+ -H 'Authorization: Bearer <token>' \+ -H 'x-seller-id: <seller_id>' \+ -H 'Content-Type: application/json' \+ -d '{+ "add": [{ "id": "pattr_01HXYZ", "value_ids": ["pattrval_01HXYZ"] }],+ "remove": ["pattr_01HABC"]+ }'+```++```ts JS Client+const { product_change } =+ await client.vendor.products.$id.attributes.batch.mutate({+ $id: "prod_01HXYZ",+ add: [{ id: "pattr_01HXYZ", value_ids: ["pattrval_01HXYZ"] }],+ remove: ["pattr_01HABC"],+ })+```+</RequestExample>++<ResponseExample>+```json 202+{+ "product_change": {+ "id": "prodch_01HXYZ",+ "product_id": "prod_01HXYZ",+ "status": "pending",+ "actions": [+ {+ "id": "prodchact_01HXYZ",+ "action": "ATTRIBUTE_ADD",+ "details": { "id": "pattr_01HXYZ", "value_ids": ["pattrval_01HXYZ"] },+ "applied": false+ }+ ]+ }+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/vendor/products/cancel-product-change.mdx b/apps/docs/rc/references/api/vendor/products/cancel-product-change.mdxnew file mode 100644index 000000000..91ca7ef0e--- /dev/null+++ b/apps/docs/rc/references/api/vendor/products/cancel-product-change.mdx@@ -0,0 +1,62 @@+---+title: "Cancel Product Change"+api: "POST /vendor/products/{id}/cancel"+description: "Cancel the seller's pending change request for a product."+---++Cancels the product's pending change request; responds `404` when no pending change exists.++## Path parameters++<ParamField path="id" type="string" required>+ The product's ID.+</ParamField>++## Body parameters++<ParamField body="internal_note" type="string">+ Optional note recorded with the cancellation.+</ParamField>++## Response++<ResponseField name="product_change" type="object">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The change request's ID.</ResponseField>+ <ResponseField name="product_id" type="string">ID of the product the change targeted.</ResponseField>+ <ResponseField name="status" type="string">`canceled` after this call.</ResponseField>+ <ResponseField name="canceled_by" type="string">ID of the seller that canceled the change.</ResponseField>+ <ResponseField name="canceled_at" type="string">Timestamp of the cancellation.</ResponseField>+ <ResponseField name="actions" type="object[]">The staged operations that were discarded.</ResponseField>+ </Expandable>+</ResponseField>++<RequestExample>+```bash cURL+curl -X POST 'http://localhost:9000/vendor/products/prod_01HXYZ/cancel' \+ -H 'Authorization: Bearer <token>' \+ -H 'x-seller-id: <seller_id>' \+ -H 'Content-Type: application/json' \+ -d '{}'+```++```ts JS Client+const { product_change } = await client.vendor.products.$id.cancel.mutate({+ $id: "prod_01HXYZ",+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "product_change": {+ "id": "prodch_01HXYZ",+ "product_id": "prod_01HXYZ",+ "status": "canceled",+ "canceled_by": "sel_01HXYZ",+ "canceled_at": "2026-07-03T12:00:00.000Z"+ }+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/vendor/products/create-product-variant.mdx b/apps/docs/rc/references/api/vendor/products/create-product-variant.mdxnew file mode 100644index 000000000..a697fbac1--- /dev/null+++ b/apps/docs/rc/references/api/vendor/products/create-product-variant.mdx@@ -0,0 +1,92 @@+---+title: "Create Product Variant"+api: "POST /vendor/products/{id}/variants"+description: "Stage the addition of a variant to a product."+---++Stages a `VARIANT_ADD` operation as a pending change request instead of creating the variant directly.++<Note>+ The endpoint responds with `202 Accepted` and a `product_change` record; the variant appears on the product once the change is confirmed. The staged variant is always created with `manage_inventory: false` — stock is tracked on offers.+</Note>++## Path parameters++<ParamField path="id" type="string" required>+ The product's ID.+</ParamField>++## Body parameters++<ParamField body="title" type="string" required>The variant's title.</ParamField>+<ParamField body="sku" type="string">The variant's SKU.</ParamField>+<ParamField body="ean" type="string">EAN barcode.</ParamField>+<ParamField body="upc" type="string">UPC barcode.</ParamField>+<ParamField body="isbn" type="string">ISBN code.</ParamField>+<ParamField body="asin" type="string">Amazon ASIN.</ParamField>+<ParamField body="gtin" type="string">GTIN code.</ParamField>+<ParamField body="barcode" type="string">Generic barcode.</ParamField>+<ParamField body="hs_code" type="string">Harmonized System code.</ParamField>+<ParamField body="mid_code" type="string">Manufacturer ID code.</ParamField>+<ParamField body="variant_rank" type="number">Sort rank of the variant.</ParamField>+<ParamField body="weight" type="number">Weight of the variant.</ParamField>+<ParamField body="length" type="number">Length of the variant.</ParamField>+<ParamField body="height" type="number">Height of the variant.</ParamField>+<ParamField body="width" type="number">Width of the variant.</ParamField>+<ParamField body="origin_country" type="string">Country of origin.</ParamField>+<ParamField body="material" type="string">Material of the variant.</ParamField>+<ParamField body="allow_backorder" type="boolean">Whether backorders are allowed.</ParamField>+<ParamField body="manage_inventory" type="boolean">Accepted in the body but forced to `false` when the change is staged.</ParamField>+<ParamField body="thumbnail" type="string">Variant thumbnail URL.</ParamField>+<ParamField body="metadata" type="object">Custom key-value pairs.</ParamField>+<ParamField body="options" type="object">Option title to value mapping, e.g. `{"Size": "L"}`.</ParamField>++## Response++<ResponseField name="product_change" type="object">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The change request's ID.</ResponseField>+ <ResponseField name="product_id" type="string">ID of the product the change targets.</ResponseField>+ <ResponseField name="status" type="string">One of `pending`, `confirmed`, `declined`, `canceled`.</ResponseField>+ <ResponseField name="actions" type="object[]">Staged operations, each with `id`, `action` (`VARIANT_ADD`), `details`, `ordering`, and `applied`.</ResponseField>+ </Expandable>+</ResponseField>++<RequestExample>+```bash cURL+curl -X POST 'http://localhost:9000/vendor/products/prod_01HXYZ/variants' \+ -H 'Authorization: Bearer <token>' \+ -H 'x-seller-id: <seller_id>' \+ -H 'Content-Type: application/json' \+ -d '{"title": "L", "sku": "ACME-SHIRT-L", "options": {"Size": "L"}}'+```++```ts JS Client+const { product_change } = await client.vendor.products.$id.variants.mutate({+ $id: "prod_01HXYZ",+ title: "L",+ sku: "ACME-SHIRT-L",+ options: { Size: "L" },+})+```+</RequestExample>++<ResponseExample>+```json 202+{+ "product_change": {+ "id": "prodch_01HXYZ",+ "product_id": "prod_01HXYZ",+ "status": "pending",+ "actions": [+ {+ "id": "prodchact_01HXYZ",+ "action": "VARIANT_ADD",+ "details": { "title": "L", "sku": "ACME-SHIRT-L" },+ "applied": false+ }+ ]+ }+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/vendor/products/create-product.mdx b/apps/docs/rc/references/api/vendor/products/create-product.mdxnew file mode 100644index 000000000..e56662d41--- /dev/null+++ b/apps/docs/rc/references/api/vendor/products/create-product.mdx@@ -0,0 +1,197 @@+---+title: "Create Product"+api: "POST /vendor/products"+description: "Create a new product owned by the seller."+---++Creates a product; when no status is provided it is created with status `proposed`.++<Note>+ When the product request flow is enabled, `status` may only be `draft` or `proposed` — publishing requires operator approval.+</Note>++## Query parameters++<ParamField query="fields" type="string">+ Comma-separated fields to include in the returned product. Prefix with `+`/`-` to add to or remove from the defaults.+</ParamField>++## Body parameters++<ParamField body="title" type="string" required>+ The product's title.+</ParamField>++<ParamField body="subtitle" type="string">+ The product's subtitle.+</ParamField>++<ParamField body="description" type="string">+ The product's description.+</ParamField>++<ParamField body="status" type="string" default="proposed">+ One of `draft`, `proposed`, `published`, `rejected`. Restricted to `draft` / `proposed` when the product request flow is enabled.+</ParamField>++<ParamField body="is_giftcard" type="boolean" default="false">+ Whether the product is a gift card.+</ParamField>++<ParamField body="discountable" type="boolean" default="true">+ Whether discounts can apply to the product.+</ParamField>++<ParamField body="images" type="object[]">+ <Expandable title="properties">+ <ParamField body="url" type="string" required>Image URL.</ParamField>+ </Expandable>+</ParamField>++<ParamField body="thumbnail" type="string">+ URL of the product's thumbnail image.+</ParamField>++<ParamField body="handle" type="string">+ The product's URL handle; generated from the title when omitted.+</ParamField>++<ParamField body="external_id" type="string">+ ID of the product in an external system.+</ParamField>++<ParamField body="type_id" type="string">+ ID of the product type.+</ParamField>++<ParamField body="collection_id" type="string">+ ID of the collection the product belongs to.+</ParamField>++<ParamField body="categories" type="object[]">+ <Expandable title="properties">+ <ParamField body="id" type="string" required>Category ID.</ParamField>+ </Expandable>+</ParamField>++<ParamField body="tags" type="object[]">+ <Expandable title="properties">+ <ParamField body="id" type="string" required>Tag ID.</ParamField>+ </Expandable>+</ParamField>++<ParamField body="options" type="object[]">+ <Expandable title="properties">+ <ParamField body="title" type="string" required>Option title, e.g. `Size`.</ParamField>+ <ParamField body="values" type="string[]" required>Allowed option values.</ParamField>+ </Expandable>+</ParamField>++<ParamField body="attributes" type="object[]">+ Product attribute assignments; each entry references an existing attribute by `id` or defines one inline by `title`.+ <Expandable title="properties">+ <ParamField body="id" type="string">Existing attribute ID (referencing form).</ParamField>+ <ParamField body="value_ids" type="string[]">IDs of attribute values to select (referencing form).</ParamField>+ <ParamField body="value" type="string | number | boolean">Scalar value for `text`, `unit`, or `toggle` attributes.</ParamField>+ <ParamField body="title" type="string">Attribute title (inline form).</ParamField>+ <ParamField body="type" type="string">One of `single_select`, `multi_select`, `text`, `toggle`, `unit` (inline form).</ParamField>+ <ParamField body="values" type="string[]">Value names to create and select (inline form).</ParamField>+ <ParamField body="is_variant_axis" type="boolean">Whether the attribute drives variant combinations (inline form).</ParamField>+ <ParamField body="is_filterable" type="boolean">Whether the attribute is filterable (inline form).</ParamField>+ <ParamField body="is_required" type="boolean">Whether the attribute is required (inline form).</ParamField>+ <ParamField body="description" type="string">Attribute description (inline form).</ParamField>+ <ParamField body="metadata" type="object">Custom key-value pairs (inline form).</ParamField>+ </Expandable>+</ParamField>++<ParamField body="variants" type="object[]">+ <Expandable title="properties">+ <ParamField body="title" type="string" required>Variant title.</ParamField>+ <ParamField body="sku" type="string">Variant SKU.</ParamField>+ <ParamField body="ean" type="string">EAN barcode.</ParamField>+ <ParamField body="upc" type="string">UPC barcode.</ParamField>+ <ParamField body="isbn" type="string">ISBN code.</ParamField>+ <ParamField body="asin" type="string">Amazon ASIN.</ParamField>+ <ParamField body="gtin" type="string">GTIN code.</ParamField>+ <ParamField body="barcode" type="string">Generic barcode.</ParamField>+ <ParamField body="hs_code" type="string">Harmonized System code.</ParamField>+ <ParamField body="mid_code" type="string">Manufacturer ID code.</ParamField>+ <ParamField body="variant_rank" type="number">Sort rank of the variant.</ParamField>+ <ParamField body="weight" type="number">Weight of the variant.</ParamField>+ <ParamField body="length" type="number">Length of the variant.</ParamField>+ <ParamField body="height" type="number">Height of the variant.</ParamField>+ <ParamField body="width" type="number">Width of the variant.</ParamField>+ <ParamField body="origin_country" type="string">Country of origin.</ParamField>+ <ParamField body="material" type="string">Material of the variant.</ParamField>+ <ParamField body="metadata" type="object">Custom key-value pairs.</ParamField>+ <ParamField body="options" type="object">Option title to value mapping, e.g. `{"Size": "M"}`.</ParamField>+ </Expandable>+</ParamField>++<ParamField body="weight" type="number">Weight of the product.</ParamField>+<ParamField body="length" type="number">Length of the product.</ParamField>+<ParamField body="height" type="number">Height of the product.</ParamField>+<ParamField body="width" type="number">Width of the product.</ParamField>+<ParamField body="hs_code" type="string">Harmonized System code.</ParamField>+<ParamField body="mid_code" type="string">Manufacturer ID code.</ParamField>+<ParamField body="origin_country" type="string">Country of origin.</ParamField>+<ParamField body="material" type="string">Material of the product.</ParamField>+<ParamField body="metadata" type="object">Custom key-value pairs.</ParamField>+<ParamField body="additional_data" type="object">Extra data passed to workflow hooks.</ParamField>++## Response++<ResponseField name="product" type="object">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The product's ID.</ResponseField>+ <ResponseField name="title" type="string">The product's title.</ResponseField>+ <ResponseField name="status" type="string">The product's status (`proposed` unless overridden).</ResponseField>+ <ResponseField name="handle" type="string">The product's URL handle.</ResponseField>+ <ResponseField name="variants" type="object[]">The created variants.</ResponseField>+ <ResponseField name="attributes" type="object[]">The product's attribute assignments.</ResponseField>+ </Expandable>+</ResponseField>++<RequestExample>+```bash cURL+curl -X POST 'http://localhost:9000/vendor/products' \+ -H 'Authorization: Bearer <token>' \+ -H 'x-seller-id: <seller_id>' \+ -H 'Content-Type: application/json' \+ -d '{+ "title": "Acme T-Shirt",+ "options": [{ "title": "Size", "values": ["S", "M"] }],+ "variants": [+ { "title": "S", "sku": "ACME-SHIRT-S", "options": { "Size": "S" } },+ { "title": "M", "sku": "ACME-SHIRT-M", "options": { "Size": "M" } }+ ]+ }'+```++```ts JS Client+const { product } = await client.vendor.products.mutate({+ title: "Acme T-Shirt",+ options: [{ title: "Size", values: ["S", "M"] }],+ variants: [+ { title: "S", sku: "ACME-SHIRT-S", options: { Size: "S" } },+ { title: "M", sku: "ACME-SHIRT-M", options: { Size: "M" } },+ ],+})+```+</RequestExample>++<ResponseExample>+```json 201+{+ "product": {+ "id": "prod_01HXYZ",+ "title": "Acme T-Shirt",+ "status": "proposed",+ "handle": "acme-t-shirt",+ "variants": [+ { "id": "variant_01HXYZ", "title": "M", "sku": "ACME-SHIRT-M" }+ ]+ }+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/vendor/products/delete-product-variant.mdx b/apps/docs/rc/references/api/vendor/products/delete-product-variant.mdxnew file mode 100644index 000000000..1b707a53b--- /dev/null+++ b/apps/docs/rc/references/api/vendor/products/delete-product-variant.mdx@@ -0,0 +1,68 @@+---+title: "Delete Product Variant"+api: "DELETE /vendor/products/{id}/variants/{variant_id}"+description: "Stage the removal of a product variant as a change request."+---++Stages a `VARIANT_REMOVE` operation as a pending change request instead of deleting the variant directly.++<Note>+ The endpoint responds with `202 Accepted` and a `product_change` record; the variant remains until the change is confirmed.+</Note>++## Path parameters++<ParamField path="id" type="string" required>+ The product's ID.+</ParamField>++<ParamField path="variant_id" type="string" required>+ The variant's ID.+</ParamField>++## Response++<ResponseField name="product_change" type="object">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The change request's ID.</ResponseField>+ <ResponseField name="product_id" type="string">ID of the product the change targets.</ResponseField>+ <ResponseField name="status" type="string">One of `pending`, `confirmed`, `declined`, `canceled`.</ResponseField>+ <ResponseField name="actions" type="object[]">Staged operations, each with `id`, `action` (`VARIANT_REMOVE`), `details`, `ordering`, and `applied`.</ResponseField>+ </Expandable>+</ResponseField>++<RequestExample>+```bash cURL+curl -X DELETE 'http://localhost:9000/vendor/products/prod_01HXYZ/variants/variant_01HXYZ' \+ -H 'Authorization: Bearer <token>' \+ -H 'x-seller-id: <seller_id>'+```++```ts JS Client+const { product_change } =+ await client.vendor.products.$id.variants.$variant_id.delete({+ $id: "prod_01HXYZ",+ $variant_id: "variant_01HXYZ",+ })+```+</RequestExample>++<ResponseExample>+```json 202+{+ "product_change": {+ "id": "prodch_01HXYZ",+ "product_id": "prod_01HXYZ",+ "status": "pending",+ "actions": [+ {+ "id": "prodchact_01HXYZ",+ "action": "VARIANT_REMOVE",+ "details": { "variant_id": "variant_01HXYZ" },+ "applied": false+ }+ ]+ }+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/vendor/products/delete-product.mdx b/apps/docs/rc/references/api/vendor/products/delete-product.mdxnew file mode 100644index 000000000..d27718ea6--- /dev/null+++ b/apps/docs/rc/references/api/vendor/products/delete-product.mdx@@ -0,0 +1,62 @@+---+title: "Delete Product"+api: "DELETE /vendor/products/{id}"+description: "Stage a product deletion as a change request."+---++Does not delete the product directly — it stages a pending `PRODUCT_DELETE` change request that an operator confirms or declines.++<Note>+ The endpoint responds with `202 Accepted` and a `product_change` record; the product remains until the change is confirmed.+</Note>++## Path parameters++<ParamField path="id" type="string" required>+ The product's ID.+</ParamField>++## Response++<ResponseField name="product_change" type="object">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The change request's ID.</ResponseField>+ <ResponseField name="product_id" type="string">ID of the product the change targets.</ResponseField>+ <ResponseField name="status" type="string">One of `pending`, `confirmed`, `declined`, `canceled`.</ResponseField>+ <ResponseField name="created_by" type="string">ID of the seller that staged the change.</ResponseField>+ <ResponseField name="actions" type="object[]">Staged operations, each with `id`, `action` (`PRODUCT_DELETE`), `details`, `ordering`, and `applied`.</ResponseField>+ </Expandable>+</ResponseField>++<RequestExample>+```bash cURL+curl -X DELETE 'http://localhost:9000/vendor/products/prod_01HXYZ' \+ -H 'Authorization: Bearer <token>' \+ -H 'x-seller-id: <seller_id>'+```++```ts JS Client+const { product_change } = await client.vendor.products.$id.delete({+ $id: "prod_01HXYZ",+})+```+</RequestExample>++<ResponseExample>+```json 202+{+ "product_change": {+ "id": "prodch_01HXYZ",+ "product_id": "prod_01HXYZ",+ "status": "pending",+ "actions": [+ {+ "id": "prodchact_01HXYZ",+ "action": "PRODUCT_DELETE",+ "applied": false+ }+ ]+ }+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/vendor/products/list-product-variants.mdx b/apps/docs/rc/references/api/vendor/products/list-product-variants.mdxnew file mode 100644index 000000000..751c8d0b8--- /dev/null+++ b/apps/docs/rc/references/api/vendor/products/list-product-variants.mdx@@ -0,0 +1,114 @@+---+title: "List Product Variants"+api: "GET /vendor/products/{id}/variants"+description: "Retrieve a paginated list of a product's variants."+---++Returns the variants belonging to the given product.++## Path parameters++<ParamField path="id" type="string" required>+ The product's ID.+</ParamField>++## Query parameters++<ParamField query="limit" type="number" default="50">+ The maximum number of variants to return.+</ParamField>++<ParamField query="offset" type="number" default="0">+ The number of variants to skip before returning results.+</ParamField>++<ParamField query="order" type="string">+ The field to sort by, e.g. `variant_rank` or `-created_at`.+</ParamField>++<ParamField query="fields" type="string">+ Comma-separated fields to include in the response. Prefix with `+`/`-` to add to or remove from the defaults.+</ParamField>++<ParamField query="q" type="string">+ Search term matched against variant fields.+</ParamField>++<ParamField query="manage_inventory" type="boolean">+ Filter by whether inventory is managed for the variant.+</ParamField>++<ParamField query="allow_backorder" type="boolean">+ Filter by whether backorders are allowed.+</ParamField>++<ParamField query="created_at" type="object">+ Filter by creation date using operators like `$gt`, `$lt`, `$gte`, `$lte`.+</ParamField>++<ParamField query="updated_at" type="object">+ Filter by update date using operators like `$gt`, `$lt`, `$gte`, `$lte`.+</ParamField>++<ParamField query="$and" type="object[]">+ Join multiple filter objects with a logical AND.+</ParamField>++<ParamField query="$or" type="object[]">+ Join multiple filter objects with a logical OR.+</ParamField>++## Response++<ResponseField name="variants" type="object[]">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The variant's ID.</ResponseField>+ <ResponseField name="title" type="string">The variant's title.</ResponseField>+ <ResponseField name="sku" type="string">The variant's SKU.</ResponseField>+ <ResponseField name="product_id" type="string">ID of the parent product.</ResponseField>+ <ResponseField name="manage_inventory" type="boolean">Whether inventory is managed for the variant.</ResponseField>+ <ResponseField name="allow_backorder" type="boolean">Whether backorders are allowed.</ResponseField>+ <ResponseField name="variant_rank" type="number">Sort rank of the variant.</ResponseField>+ <ResponseField name="options" type="object[]">Selected option values with `id`, `value`, and the parent `option`.</ResponseField>+ <ResponseField name="images" type="object[]">Variant images with `id`, `url`, and `rank`.</ResponseField>+ </Expandable>+</ResponseField>++<ResponseField name="count" type="number">Total number of matching variants.</ResponseField>+<ResponseField name="offset" type="number">Number of skipped variants.</ResponseField>+<ResponseField name="limit" type="number">Maximum number of returned variants.</ResponseField>++<RequestExample>+```bash cURL+curl 'http://localhost:9000/vendor/products/prod_01HXYZ/variants?limit=20' \+ -H 'Authorization: Bearer <token>' \+ -H 'x-seller-id: <seller_id>'+```++```ts JS Client+const { variants, count } = await client.vendor.products.$id.variants.query({+ $id: "prod_01HXYZ",+ limit: 20,+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "variants": [+ {+ "id": "variant_01HXYZ",+ "title": "M",+ "sku": "ACME-SHIRT-M",+ "product_id": "prod_01HXYZ",+ "manage_inventory": false,+ "allow_backorder": false+ }+ ],+ "count": 1,+ "offset": 0,+ "limit": 20+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/vendor/products/list-products.mdx b/apps/docs/rc/references/api/vendor/products/list-products.mdxnew file mode 100644index 000000000..f798a26c8--- /dev/null+++ b/apps/docs/rc/references/api/vendor/products/list-products.mdx@@ -0,0 +1,163 @@+---+title: "List Products"+api: "GET /vendor/products"+description: "Retrieve a paginated list of products visible to the seller."+---++Returns products the seller created plus published products that are not restricted from the seller.++<Note>+ Products are shared master records. This list includes catalog products from other sellers (when published and unrestricted) so you can create offers against them.+</Note>++## Query parameters++<ParamField query="limit" type="number" default="50">+ The maximum number of products to return.+</ParamField>++<ParamField query="offset" type="number" default="0">+ The number of products to skip before returning results.+</ParamField>++<ParamField query="order" type="string">+ The field to sort by, e.g. `created_at` or `-created_at` for descending.+</ParamField>++<ParamField query="fields" type="string">+ Comma-separated fields to include in the response. Prefix with `+`/`-` to add to or remove from the defaults. Include `variants.offers` to attach the seller's offers to each variant.+</ParamField>++<ParamField query="q" type="string">+ Search term matched against product fields.+</ParamField>++<ParamField query="id" type="string | string[]">+ Filter by product ID(s).+</ParamField>++<ParamField query="title" type="string">+ Filter by product title.+</ParamField>++<ParamField query="handle" type="string">+ Filter by product handle.+</ParamField>++<ParamField query="status" type="string[]">+ Filter by status. Values: `draft`, `proposed`, `published`, `rejected`.+</ParamField>++<ParamField query="collection_id" type="string | string[]">+ Filter by collection ID(s).+</ParamField>++<ParamField query="type_id" type="string | string[]">+ Filter by product type ID(s).+</ParamField>++<ParamField query="category_id" type="string | string[]">+ Filter by category ID(s).+</ParamField>++<ParamField query="tag_id" type="string | string[]">+ Filter by tag ID(s).+</ParamField>++<ParamField query="sku" type="string">+ Filter by variant SKU.+</ParamField>++<ParamField query="ean" type="string">+ Filter by variant EAN.+</ParamField>++<ParamField query="upc" type="string">+ Filter by variant UPC.+</ParamField>++<ParamField query="barcode" type="string">+ Filter by variant barcode.+</ParamField>++<ParamField query="has_offer" type="boolean">+ Filter to products the seller has (or has not) created an offer for.+</ParamField>++<ParamField query="created_at" type="object">+ Filter by creation date using operators like `$gt`, `$lt`, `$gte`, `$lte`.+</ParamField>++<ParamField query="updated_at" type="object">+ Filter by update date using operators like `$gt`, `$lt`, `$gte`, `$lte`.+</ParamField>++<ParamField query="deleted_at" type="object">+ Filter by deletion date using operators like `$gt`, `$lt`, `$gte`, `$lte`.+</ParamField>++<ParamField query="$and" type="object[]">+ Join multiple filter objects with a logical AND.+</ParamField>++<ParamField query="$or" type="object[]">+ Join multiple filter objects with a logical OR.+</ParamField>++## Response++<ResponseField name="products" type="object[]">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The product's ID.</ResponseField>+ <ResponseField name="title" type="string">The product's title.</ResponseField>+ <ResponseField name="status" type="string">One of `draft`, `proposed`, `published`, `rejected`.</ResponseField>+ <ResponseField name="handle" type="string">The product's URL handle.</ResponseField>+ <ResponseField name="thumbnail" type="string">URL of the product's thumbnail image.</ResponseField>+ <ResponseField name="images" type="object[]">The product's images with `id`, `url`, and `rank`.</ResponseField>+ <ResponseField name="collection" type="object">The associated collection with `id`, `title`, and `handle`.</ResponseField>+ <ResponseField name="categories" type="object[]">Associated categories with `id`, `name`, and `handle`.</ResponseField>+ <ResponseField name="variants" type="object[]">The product's variants with `id`, `title`, `sku`, `manage_inventory`, `allow_backorder`, and `variant_rank`.</ResponseField>+ <ResponseField name="attributes" type="object[]">Product attributes grouped per attribute with their selected values.</ResponseField>+ </Expandable>+</ResponseField>++<ResponseField name="count" type="number">Total number of matching products.</ResponseField>+<ResponseField name="offset" type="number">Number of skipped products.</ResponseField>+<ResponseField name="limit" type="number">Maximum number of returned products.</ResponseField>++<RequestExample>+```bash cURL+curl 'http://localhost:9000/vendor/products?limit=20&status[]=published' \+ -H 'Authorization: Bearer <token>' \+ -H 'x-seller-id: <seller_id>'+```++```ts JS Client+const { products, count } = await client.vendor.products.query({+ limit: 20,+ status: ["published"],+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "products": [+ {+ "id": "prod_01HXYZ",+ "title": "Acme T-Shirt",+ "status": "published",+ "handle": "acme-t-shirt",+ "thumbnail": "https://cdn.example.com/shirt.png",+ "variants": [+ { "id": "variant_01HXYZ", "title": "M", "sku": "ACME-SHIRT-M" }+ ]+ }+ ],+ "count": 1,+ "offset": 0,+ "limit": 20+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/vendor/products/preview-product.mdx b/apps/docs/rc/references/api/vendor/products/preview-product.mdxnew file mode 100644index 000000000..48d32d9ac--- /dev/null+++ b/apps/docs/rc/references/api/vendor/products/preview-product.mdx@@ -0,0 +1,61 @@+---+title: "Preview Product Change"+api: "GET /vendor/products/{id}/preview"+description: "Retrieve the seller's pending change request for a product."+---++Returns the seller's `pending` change request for the product, or `null` when there is none.++## Path parameters++<ParamField path="id" type="string" required>+ The product's ID.+</ParamField>++## Response++<ResponseField name="product_change" type="object | null">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The change request's ID.</ResponseField>+ <ResponseField name="product_id" type="string">ID of the product the change targets.</ResponseField>+ <ResponseField name="status" type="string">Always `pending` for this endpoint.</ResponseField>+ <ResponseField name="created_by" type="string">ID of the seller that staged the change.</ResponseField>+ <ResponseField name="actions" type="object[]">Staged operations, each with `id`, `action`, `details`, `ordering`, and `applied`.</ResponseField>+ <ResponseField name="internal_note" type="string">Internal note attached to the change.</ResponseField>+ <ResponseField name="external_note" type="string">Note from the operator, e.g. a revision request.</ResponseField>+ </Expandable>+</ResponseField>++<RequestExample>+```bash cURL+curl 'http://localhost:9000/vendor/products/prod_01HXYZ/preview' \+ -H 'Authorization: Bearer <token>' \+ -H 'x-seller-id: <seller_id>'+```++```ts JS Client+const { product_change } = await client.vendor.products.$id.preview.query({+ $id: "prod_01HXYZ",+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "product_change": {+ "id": "prodch_01HXYZ",+ "product_id": "prod_01HXYZ",+ "status": "pending",+ "actions": [+ {+ "id": "prodchact_01HXYZ",+ "action": "UPDATE",+ "details": { "title": "Acme T-Shirt v2" },+ "applied": false+ }+ ]+ }+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/vendor/products/retrieve-product-variant.mdx b/apps/docs/rc/references/api/vendor/products/retrieve-product-variant.mdxnew file mode 100644index 000000000..9f0dd4a99--- /dev/null+++ b/apps/docs/rc/references/api/vendor/products/retrieve-product-variant.mdx@@ -0,0 +1,76 @@+---+title: "Retrieve Product Variant"+api: "GET /vendor/products/{id}/variants/{variant_id}"+description: "Retrieve a single variant of a product."+---++Returns a variant scoped to the given product.++## Path parameters++<ParamField path="id" type="string" required>+ The product's ID.+</ParamField>++<ParamField path="variant_id" type="string" required>+ The variant's ID.+</ParamField>++## Query parameters++<ParamField query="fields" type="string">+ Comma-separated fields to include in the response. Prefix with `+`/`-` to add to or remove from the defaults.+</ParamField>++## Response++<ResponseField name="variant" type="object">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The variant's ID.</ResponseField>+ <ResponseField name="title" type="string">The variant's title.</ResponseField>+ <ResponseField name="sku" type="string">The variant's SKU.</ResponseField>+ <ResponseField name="ean" type="string">EAN barcode.</ResponseField>+ <ResponseField name="upc" type="string">UPC barcode.</ResponseField>+ <ResponseField name="barcode" type="string">Generic barcode.</ResponseField>+ <ResponseField name="product_id" type="string">ID of the parent product.</ResponseField>+ <ResponseField name="manage_inventory" type="boolean">Whether inventory is managed for the variant.</ResponseField>+ <ResponseField name="allow_backorder" type="boolean">Whether backorders are allowed.</ResponseField>+ <ResponseField name="variant_rank" type="number">Sort rank of the variant.</ResponseField>+ <ResponseField name="options" type="object[]">Selected option values with `id`, `value`, and the parent `option`.</ResponseField>+ <ResponseField name="images" type="object[]">Variant images with `id`, `url`, and `rank`.</ResponseField>+ <ResponseField name="metadata" type="object">Custom key-value pairs.</ResponseField>+ </Expandable>+</ResponseField>++<RequestExample>+```bash cURL+curl 'http://localhost:9000/vendor/products/prod_01HXYZ/variants/variant_01HXYZ' \+ -H 'Authorization: Bearer <token>' \+ -H 'x-seller-id: <seller_id>'+```++```ts JS Client+const { variant } = await client.vendor.products.$id.variants.$variant_id.query({+ $id: "prod_01HXYZ",+ $variant_id: "variant_01HXYZ",+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "variant": {+ "id": "variant_01HXYZ",+ "title": "M",+ "sku": "ACME-SHIRT-M",+ "product_id": "prod_01HXYZ",+ "manage_inventory": false,+ "allow_backorder": false,+ "options": [+ { "id": "optval_01HXYZ", "value": "M", "option": { "id": "opt_01HXYZ", "title": "Size" } }+ ]+ }+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/vendor/products/retrieve-product.mdx b/apps/docs/rc/references/api/vendor/products/retrieve-product.mdxnew file mode 100644index 000000000..3077d985a--- /dev/null+++ b/apps/docs/rc/references/api/vendor/products/retrieve-product.mdx@@ -0,0 +1,69 @@+---+title: "Retrieve Product"+api: "GET /vendor/products/{id}"+description: "Retrieve a product by its ID."+---++Returns a single product with its images, variants, and attribute assignments.++## Path parameters++<ParamField path="id" type="string" required>+ The product's ID.+</ParamField>++## Query parameters++<ParamField query="fields" type="string">+ Comma-separated fields to include in the response. Prefix with `+`/`-` to add to or remove from the defaults. Include `variants.offers` to attach the seller's offers to each variant.+</ParamField>++## Response++<ResponseField name="product" type="object">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The product's ID.</ResponseField>+ <ResponseField name="title" type="string">The product's title.</ResponseField>+ <ResponseField name="subtitle" type="string">The product's subtitle.</ResponseField>+ <ResponseField name="description" type="string">The product's description.</ResponseField>+ <ResponseField name="status" type="string">One of `draft`, `proposed`, `published`, `rejected`.</ResponseField>+ <ResponseField name="handle" type="string">The product's URL handle.</ResponseField>+ <ResponseField name="thumbnail" type="string">URL of the product's thumbnail image.</ResponseField>+ <ResponseField name="images" type="object[]">Images with `id`, `url`, and `rank`.</ResponseField>+ <ResponseField name="collection" type="object">The associated collection with `id`, `title`, and `handle`.</ResponseField>+ <ResponseField name="categories" type="object[]">Associated categories with `id`, `name`, and `handle`.</ResponseField>+ <ResponseField name="variants" type="object[]">Variants with `id`, `title`, `sku`, `manage_inventory`, `allow_backorder`, and `variant_rank`.</ResponseField>+ <ResponseField name="attributes" type="object[]">Product attributes grouped per attribute with their selected values.</ResponseField>+ <ResponseField name="metadata" type="object">Custom key-value pairs.</ResponseField>+ </Expandable>+</ResponseField>++<RequestExample>+```bash cURL+curl 'http://localhost:9000/vendor/products/prod_01HXYZ' \+ -H 'Authorization: Bearer <token>' \+ -H 'x-seller-id: <seller_id>'+```++```ts JS Client+const { product } = await client.vendor.products.$id.query({+ $id: "prod_01HXYZ",+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "product": {+ "id": "prod_01HXYZ",+ "title": "Acme T-Shirt",+ "status": "published",+ "handle": "acme-t-shirt",+ "variants": [+ { "id": "variant_01HXYZ", "title": "M", "sku": "ACME-SHIRT-M" }+ ]+ }+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/vendor/products/update-product-variant.mdx b/apps/docs/rc/references/api/vendor/products/update-product-variant.mdxnew file mode 100644index 000000000..83984b982--- /dev/null+++ b/apps/docs/rc/references/api/vendor/products/update-product-variant.mdx@@ -0,0 +1,104 @@+---+title: "Update Product Variant"+api: "POST /vendor/products/{id}/variants/{variant_id}"+description: "Stage an update to a product variant as a change request."+---++Stages a `VARIANT_UPDATE` operation as a pending change request instead of updating the variant directly.++<Note>+ The endpoint responds with `202 Accepted` and a `product_change` record, not the updated variant.+</Note>++## Path parameters++<ParamField path="id" type="string" required>+ The product's ID.+</ParamField>++<ParamField path="variant_id" type="string" required>+ The variant's ID.+</ParamField>++## Body parameters++<ParamField body="title" type="string">The variant's title.</ParamField>+<ParamField body="sku" type="string">The variant's SKU.</ParamField>+<ParamField body="ean" type="string">EAN barcode.</ParamField>+<ParamField body="upc" type="string">UPC barcode.</ParamField>+<ParamField body="isbn" type="string">ISBN code.</ParamField>+<ParamField body="asin" type="string">Amazon ASIN.</ParamField>+<ParamField body="gtin" type="string">GTIN code.</ParamField>+<ParamField body="barcode" type="string">Generic barcode.</ParamField>+<ParamField body="hs_code" type="string">Harmonized System code.</ParamField>+<ParamField body="mid_code" type="string">Manufacturer ID code.</ParamField>+<ParamField body="thumbnail" type="string">Variant thumbnail URL.</ParamField>+<ParamField body="variant_rank" type="number">Sort rank of the variant.</ParamField>+<ParamField body="weight" type="number">Weight of the variant.</ParamField>+<ParamField body="length" type="number">Length of the variant.</ParamField>+<ParamField body="height" type="number">Height of the variant.</ParamField>+<ParamField body="width" type="number">Width of the variant.</ParamField>+<ParamField body="origin_country" type="string">Country of origin.</ParamField>+<ParamField body="material" type="string">Material of the variant.</ParamField>+<ParamField body="allow_backorder" type="boolean">Whether backorders are allowed.</ParamField>+<ParamField body="manage_inventory" type="boolean">Whether inventory is managed for the variant.</ParamField>+<ParamField body="metadata" type="object">Custom key-value pairs.</ParamField>+<ParamField body="options" type="object">Option title to value mapping, e.g. `{"Size": "M"}`.</ParamField>++<ParamField body="images" type="object">+ <Expandable title="properties">+ <ParamField body="add" type="string[]">Image URLs to attach to the variant.</ParamField>+ <ParamField body="remove" type="string[]">Image IDs to detach from the variant.</ParamField>+ </Expandable>+</ParamField>++## Response++<ResponseField name="product_change" type="object">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The change request's ID.</ResponseField>+ <ResponseField name="product_id" type="string">ID of the product the change targets.</ResponseField>+ <ResponseField name="status" type="string">One of `pending`, `confirmed`, `declined`, `canceled`.</ResponseField>+ <ResponseField name="actions" type="object[]">Staged operations, each with `id`, `action` (`VARIANT_UPDATE`), `details`, `ordering`, and `applied`.</ResponseField>+ </Expandable>+</ResponseField>++<RequestExample>+```bash cURL+curl -X POST 'http://localhost:9000/vendor/products/prod_01HXYZ/variants/variant_01HXYZ' \+ -H 'Authorization: Bearer <token>' \+ -H 'x-seller-id: <seller_id>' \+ -H 'Content-Type: application/json' \+ -d '{"sku": "ACME-SHIRT-M-V2", "weight": 200}'+```++```ts JS Client+const { product_change } =+ await client.vendor.products.$id.variants.$variant_id.mutate({+ $id: "prod_01HXYZ",+ $variant_id: "variant_01HXYZ",+ sku: "ACME-SHIRT-M-V2",+ weight: 200,+ })+```+</RequestExample>++<ResponseExample>+```json 202+{+ "product_change": {+ "id": "prodch_01HXYZ",+ "product_id": "prod_01HXYZ",+ "status": "pending",+ "actions": [+ {+ "id": "prodchact_01HXYZ",+ "action": "VARIANT_UPDATE",+ "details": { "variant_id": "variant_01HXYZ", "fields": { "sku": "ACME-SHIRT-M-V2" } },+ "applied": false+ }+ ]+ }+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/vendor/products/update-product.mdx b/apps/docs/rc/references/api/vendor/products/update-product.mdxnew file mode 100644index 000000000..9466e9d8c--- /dev/null+++ b/apps/docs/rc/references/api/vendor/products/update-product.mdx@@ -0,0 +1,148 @@+---+title: "Update Product"+api: "POST /vendor/products/{id}"+description: "Stage an update to a product as a change request."+---++Does not modify the product directly — it stages a pending change request that an operator confirms or declines.++<Note>+ The endpoint responds with `202 Accepted` and a `product_change` record, not the updated product. Use [Preview Product Change](/rc/references/api/vendor/products/preview-product) to inspect the pending change and [Cancel Product Change](/rc/references/api/vendor/products/cancel-product-change) to withdraw it.+</Note>++## Path parameters++<ParamField path="id" type="string" required>+ The product's ID.+</ParamField>++## Body parameters++<ParamField body="title" type="string">The product's title.</ParamField>+<ParamField body="subtitle" type="string">The product's subtitle.</ParamField>+<ParamField body="description" type="string">The product's description.</ParamField>+<ParamField body="discountable" type="boolean">Whether discounts can apply to the product.</ParamField>+<ParamField body="is_giftcard" type="boolean">Whether the product is a gift card.</ParamField>++<ParamField body="images" type="object[]">+ <Expandable title="properties">+ <ParamField body="id" type="string">Existing image ID to keep.</ParamField>+ <ParamField body="url" type="string" required>Image URL.</ParamField>+ </Expandable>+</ParamField>++<ParamField body="thumbnail" type="string">URL of the product's thumbnail image.</ParamField>+<ParamField body="handle" type="string">The product's URL handle.</ParamField>+<ParamField body="external_id" type="string">ID of the product in an external system.</ParamField>+<ParamField body="type_id" type="string">ID of the product type.</ParamField>+<ParamField body="collection_id" type="string">ID of the collection the product belongs to.</ParamField>++<ParamField body="categories" type="object[]">+ <Expandable title="properties">+ <ParamField body="id" type="string" required>Category ID.</ParamField>+ </Expandable>+</ParamField>++<ParamField body="tags" type="object[]">+ <Expandable title="properties">+ <ParamField body="id" type="string" required>Tag ID.</ParamField>+ </Expandable>+</ParamField>++<ParamField body="options" type="object[]">+ <Expandable title="properties">+ <ParamField body="title" type="string" required>Option title.</ParamField>+ <ParamField body="values" type="string[]" required>Allowed option values.</ParamField>+ </Expandable>+</ParamField>++<ParamField body="variants" type="object[]">+ Variant updates staged with the change.+ <Expandable title="properties">+ <ParamField body="id" type="string">Existing variant ID to update.</ParamField>+ <ParamField body="title" type="string">Variant title.</ParamField>+ <ParamField body="sku" type="string">Variant SKU.</ParamField>+ <ParamField body="ean" type="string">EAN barcode.</ParamField>+ <ParamField body="upc" type="string">UPC barcode.</ParamField>+ <ParamField body="isbn" type="string">ISBN code.</ParamField>+ <ParamField body="asin" type="string">Amazon ASIN.</ParamField>+ <ParamField body="gtin" type="string">GTIN code.</ParamField>+ <ParamField body="barcode" type="string">Generic barcode.</ParamField>+ <ParamField body="hs_code" type="string">Harmonized System code.</ParamField>+ <ParamField body="mid_code" type="string">Manufacturer ID code.</ParamField>+ <ParamField body="thumbnail" type="string">Variant thumbnail URL.</ParamField>+ <ParamField body="variant_rank" type="number">Sort rank of the variant.</ParamField>+ <ParamField body="weight" type="number">Weight of the variant.</ParamField>+ <ParamField body="length" type="number">Length of the variant.</ParamField>+ <ParamField body="height" type="number">Height of the variant.</ParamField>+ <ParamField body="width" type="number">Width of the variant.</ParamField>+ <ParamField body="origin_country" type="string">Country of origin.</ParamField>+ <ParamField body="material" type="string">Material of the variant.</ParamField>+ <ParamField body="metadata" type="object">Custom key-value pairs.</ParamField>+ <ParamField body="options" type="object">Option title to value mapping.</ParamField>+ </Expandable>+</ParamField>++<ParamField body="weight" type="number">Weight of the product.</ParamField>+<ParamField body="length" type="number">Length of the product.</ParamField>+<ParamField body="height" type="number">Height of the product.</ParamField>+<ParamField body="width" type="number">Width of the product.</ParamField>+<ParamField body="hs_code" type="string">Harmonized System code.</ParamField>+<ParamField body="mid_code" type="string">Manufacturer ID code.</ParamField>+<ParamField body="origin_country" type="string">Country of origin.</ParamField>+<ParamField body="material" type="string">Material of the product.</ParamField>+<ParamField body="metadata" type="object">Custom key-value pairs.</ParamField>+<ParamField body="additional_data" type="object">Extra data passed to workflow hooks.</ParamField>++## Response++<ResponseField name="product_change" type="object">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The change request's ID.</ResponseField>+ <ResponseField name="product_id" type="string">ID of the product the change targets.</ResponseField>+ <ResponseField name="status" type="string">One of `pending`, `confirmed`, `declined`, `canceled`.</ResponseField>+ <ResponseField name="created_by" type="string">ID of the seller that staged the change.</ResponseField>+ <ResponseField name="actions" type="object[]">Staged operations, each with `id`, `action` (e.g. `UPDATE`), `details`, `ordering`, and `applied`.</ResponseField>+ <ResponseField name="internal_note" type="string">Internal note attached to the change.</ResponseField>+ <ResponseField name="external_note" type="string">Note from the operator, e.g. a revision request.</ResponseField>+ </Expandable>+</ResponseField>++<RequestExample>+```bash cURL+curl -X POST 'http://localhost:9000/vendor/products/prod_01HXYZ' \+ -H 'Authorization: Bearer <token>' \+ -H 'x-seller-id: <seller_id>' \+ -H 'Content-Type: application/json' \+ -d '{"title": "Acme T-Shirt v2", "description": "Softer fabric."}'+```++```ts JS Client+const { product_change } = await client.vendor.products.$id.mutate({+ $id: "prod_01HXYZ",+ title: "Acme T-Shirt v2",+ description: "Softer fabric.",+})+```+</RequestExample>++<ResponseExample>+```json 202+{+ "product_change": {+ "id": "prodch_01HXYZ",+ "product_id": "prod_01HXYZ",+ "status": "pending",+ "created_by": "sel_01HXYZ",+ "actions": [+ {+ "id": "prodchact_01HXYZ",+ "action": "UPDATE",+ "details": { "title": "Acme T-Shirt v2" },+ "applied": false+ }+ ]+ }+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/vendor/sellers/create-seller.mdx b/apps/docs/rc/references/api/vendor/sellers/create-seller.mdxnew file mode 100644index 000000000..84ac3b6d3--- /dev/null+++ b/apps/docs/rc/references/api/vendor/sellers/create-seller.mdx@@ -0,0 +1,150 @@+---+title: "Create Seller"+api: "POST /vendor/sellers"+description: "Register a new seller account with its first member."+---++Creates a seller account, optionally with an initial address, professional details, and payment details.++<Note>+ This is a public route — no `Authorization` or `x-seller-id` header is required. When called without an authenticated member, `member_email` is required so the owner member can be created.+</Note>++## Body parameters++<ParamField body="name" type="string" required>+ The seller's display name.+</ParamField>++<ParamField body="email" type="string" required>+ The seller's contact email.+</ParamField>++<ParamField body="currency_code" type="string" required>+ The seller's default currency code (e.g. `usd`).+</ParamField>++<ParamField body="handle" type="string">+ Unique handle for the seller's storefront URL.+</ParamField>++<ParamField body="phone" type="string">+ The seller's contact phone number.+</ParamField>++<ParamField body="member_email" type="string">+ Email for the owner member — required when there is no authenticated member.+</ParamField>++<ParamField body="first_name" type="string">+ First name of the owner member.+</ParamField>++<ParamField body="last_name" type="string">+ Last name of the owner member.+</ParamField>++<ParamField body="description" type="string">+ Description of the seller's store.+</ParamField>++<ParamField body="address" type="object">+ The seller's address.+ <Expandable title="properties">+ <ParamField body="name" type="string">Address label.</ParamField>+ <ParamField body="company" type="string">Company name.</ParamField>+ <ParamField body="first_name" type="string">Contact first name.</ParamField>+ <ParamField body="last_name" type="string">Contact last name.</ParamField>+ <ParamField body="address_1" type="string">Street address.</ParamField>+ <ParamField body="address_2" type="string">Apartment, suite, etc.</ParamField>+ <ParamField body="city" type="string">City.</ParamField>+ <ParamField body="country_code" type="string">Two-letter country code.</ParamField>+ <ParamField body="province" type="string">Province or state.</ParamField>+ <ParamField body="postal_code" type="string">Postal code.</ParamField>+ <ParamField body="phone" type="string">Phone number.</ParamField>+ </Expandable>+</ParamField>++<ParamField body="professional_details" type="object">+ The seller's business registration details.+ <Expandable title="properties">+ <ParamField body="corporate_name" type="string">Registered corporate name.</ParamField>+ <ParamField body="registration_number" type="string">Business registration number.</ParamField>+ <ParamField body="tax_id" type="string">Tax identification number.</ParamField>+ </Expandable>+</ParamField>++<ParamField body="payment_details" type="object">+ The seller's bank account details.+ <Expandable title="properties">+ <ParamField body="country_code" type="string">Bank country code.</ParamField>+ <ParamField body="holder_name" type="string">Account holder name.</ParamField>+ <ParamField body="bank_name" type="string">Bank name.</ParamField>+ <ParamField body="iban" type="string">IBAN.</ParamField>+ <ParamField body="bic" type="string">BIC / SWIFT code.</ParamField>+ <ParamField body="routing_number" type="string">Routing number.</ParamField>+ <ParamField body="account_number" type="string">Account number.</ParamField>+ </Expandable>+</ParamField>++<ParamField body="metadata" type="object">+ Custom key-value pairs.+</ParamField>++<ParamField body="additional_data" type="object">+ Custom data passed to workflow hooks.+</ParamField>++## Response++<ResponseField name="seller" type="object">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The seller's ID.</ResponseField>+ <ResponseField name="name" type="string">The seller's name.</ResponseField>+ <ResponseField name="handle" type="string">The seller's handle.</ResponseField>+ <ResponseField name="email" type="string">The seller's email.</ResponseField>+ <ResponseField name="status" type="enum">One of `open`, `pending_approval`, `suspended`, `terminated`.</ResponseField>+ <ResponseField name="currency_code" type="string">The seller's default currency.</ResponseField>+ </Expandable>+</ResponseField>++<RequestExample>+```bash cURL+curl -X POST 'http://localhost:9000/vendor/sellers' \+ -H 'Content-Type: application/json' \+ -d '{+ "name": "Acme Store",+ "email": "[email protected]",+ "currency_code": "usd",+ "member_email": "[email protected]",+ "first_name": "Jane",+ "last_name": "Doe"+ }'+```++```ts JS Client+const { seller } = await client.vendor.sellers.mutate({+ name: "Acme Store",+ email: "[email protected]",+ currency_code: "usd",+ member_email: "[email protected]",+ first_name: "Jane",+ last_name: "Doe",+})+```+</RequestExample>++<ResponseExample>+```json 201+{+ "seller": {+ "id": "sel_01HXYZ",+ "name": "Acme Store",+ "handle": "acme-store",+ "email": "[email protected]",+ "status": "pending_approval",+ "currency_code": "usd"+ }+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/vendor/sellers/delete-professional-details.mdx b/apps/docs/rc/references/api/vendor/sellers/delete-professional-details.mdxnew file mode 100644index 000000000..a419b6ce3--- /dev/null+++ b/apps/docs/rc/references/api/vendor/sellers/delete-professional-details.mdx@@ -0,0 +1,54 @@+---+title: "Delete Professional Details"+api: "DELETE /vendor/sellers/{id}/professional-details"+description: "Remove the seller's business registration details."+---++Deletes the seller's professional details and returns the full seller object.++## Path parameters++<ParamField path="id" type="string" required>+ The seller's ID.+</ParamField>++## Query parameters++<ParamField query="fields" type="string">+ Comma-separated fields to include in the response.+</ParamField>++## Response++<ResponseField name="seller" type="object">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The seller's ID.</ResponseField>+ <ResponseField name="professional_details" type="object">`null` after deletion.</ResponseField>+ </Expandable>+</ResponseField>++<RequestExample>+```bash cURL+curl -X DELETE 'http://localhost:9000/vendor/sellers/sel_01HXYZ/professional-details' \+ -H 'Authorization: Bearer <token>' \+ -H 'x-seller-id: <seller_id>'+```++```ts JS Client+const { seller } = await client.vendor.sellers.$id.professionalDetails.delete({+ $id: "sel_01HXYZ",+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "seller": {+ "id": "sel_01HXYZ",+ "name": "Acme Store",+ "professional_details": null+ }+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/vendor/sellers/invite-seller-member.mdx b/apps/docs/rc/references/api/vendor/sellers/invite-seller-member.mdxnew file mode 100644index 000000000..66aeae9c3--- /dev/null+++ b/apps/docs/rc/references/api/vendor/sellers/invite-seller-member.mdx@@ -0,0 +1,67 @@+---+title: "Invite Seller Member"+api: "POST /vendor/sellers/{id}/members"+description: "Invite a new member to the seller's team."+---++Creates a member invite for the given email and role.++## Path parameters++<ParamField path="id" type="string" required>+ The seller's ID.+</ParamField>++## Body parameters++<ParamField body="email" type="string" required>+ Email address to send the invite to.+</ParamField>++<ParamField body="role_id" type="enum" required>+ The role assigned on acceptance. One of `role_seller_administration`, `role_seller_inventory_management`, `role_seller_order_management`, `role_seller_accounting`, `role_seller_support`.+</ParamField>++## Response++<ResponseField name="member_invite" type="object">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The invite's ID.</ResponseField>+ <ResponseField name="email" type="string">The invited email.</ResponseField>+ <ResponseField name="role_id" type="string">The role granted on acceptance.</ResponseField>+ <ResponseField name="accepted" type="boolean">Whether the invite has been accepted.</ResponseField>+ <ResponseField name="expires_at" type="string">Expiration timestamp.</ResponseField>+ </Expandable>+</ResponseField>++<RequestExample>+```bash cURL+curl -X POST 'http://localhost:9000/vendor/sellers/sel_01HXYZ/members' \+ -H 'Authorization: Bearer <token>' \+ -H 'x-seller-id: <seller_id>' \+ -H 'Content-Type: application/json' \+ -d '{"email": "[email protected]", "role_id": "role_seller_order_management"}'+```++```ts JS Client+const { member_invite } = await client.vendor.sellers.$id.members.mutate({+ $id: "sel_01HXYZ",+ email: "[email protected]",+ role_id: "role_seller_order_management",+})+```+</RequestExample>++<ResponseExample>+```json 201+{+ "member_invite": {+ "id": "meminv_01HXYZ",+ "email": "[email protected]",+ "role_id": "role_seller_order_management",+ "accepted": false,+ "expires_at": "2026-01-22T10:00:00.000Z"+ }+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/vendor/sellers/list-member-invites.mdx b/apps/docs/rc/references/api/vendor/sellers/list-member-invites.mdxnew file mode 100644index 000000000..6d753f5d3--- /dev/null+++ b/apps/docs/rc/references/api/vendor/sellers/list-member-invites.mdx@@ -0,0 +1,82 @@+---+title: "List Member Invites"+api: "GET /vendor/sellers/{id}/members/invites"+description: "List the seller's pending member invites."+---++Returns the seller's member invites that have not been accepted yet.++## Path parameters++<ParamField path="id" type="string" required>+ The seller's ID.+</ParamField>++## Query parameters++<ParamField query="limit" type="number" default="50">+ Maximum number of items to return.+</ParamField>++<ParamField query="offset" type="number" default="0">+ Number of items to skip.+</ParamField>++<ParamField query="order" type="string">+ Field to sort by, prefixed with `-` for descending order.+</ParamField>++<ParamField query="fields" type="string">+ Comma-separated fields to include in the response.+</ParamField>++## Response++<ResponseField name="member_invites" type="object[]">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The invite's ID.</ResponseField>+ <ResponseField name="email" type="string">The invited email.</ResponseField>+ <ResponseField name="accepted" type="boolean">Always `false` in this list.</ResponseField>+ <ResponseField name="role_id" type="string">The role granted on acceptance.</ResponseField>+ <ResponseField name="expires_at" type="string">Expiration timestamp.</ResponseField>+ <ResponseField name="created_at" type="string">Creation timestamp.</ResponseField>+ </Expandable>+</ResponseField>++<ResponseField name="count" type="number">Total number of pending invites.</ResponseField>+<ResponseField name="offset" type="number">Number of items skipped.</ResponseField>+<ResponseField name="limit" type="number">Maximum number of items returned.</ResponseField>++<RequestExample>+```bash cURL+curl 'http://localhost:9000/vendor/sellers/sel_01HXYZ/members/invites' \+ -H 'Authorization: Bearer <token>' \+ -H 'x-seller-id: <seller_id>'+```++```ts JS Client+const { member_invites } = await client.vendor.sellers.$id.members.invites.query({+ $id: "sel_01HXYZ",+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "member_invites": [+ {+ "id": "meminv_01HXYZ",+ "email": "[email protected]",+ "accepted": false,+ "role_id": "role_seller_order_management",+ "expires_at": "2026-01-22T10:00:00.000Z",+ "created_at": "2026-01-15T10:00:00.000Z"+ }+ ],+ "count": 1,+ "offset": 0,+ "limit": 50+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/vendor/sellers/list-seller-members.mdx b/apps/docs/rc/references/api/vendor/sellers/list-seller-members.mdxnew file mode 100644index 000000000..f06de83fe--- /dev/null+++ b/apps/docs/rc/references/api/vendor/sellers/list-seller-members.mdx@@ -0,0 +1,80 @@+---+title: "List Seller Members"+api: "GET /vendor/sellers/{id}/members"+description: "List the members of a seller account."+---++Returns the seller's team members with their roles.++## Path parameters++<ParamField path="id" type="string" required>+ The seller's ID.+</ParamField>++## Query parameters++<ParamField query="limit" type="number" default="50">+ Maximum number of items to return.+</ParamField>++<ParamField query="offset" type="number" default="0">+ Number of items to skip.+</ParamField>++<ParamField query="order" type="string">+ Field to sort by, prefixed with `-` for descending order.+</ParamField>++<ParamField query="fields" type="string">+ Comma-separated fields to include in the response.+</ParamField>++## Response++<ResponseField name="seller_members" type="object[]">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The seller member's ID.</ResponseField>+ <ResponseField name="is_owner" type="boolean">Whether the member owns the seller account.</ResponseField>+ <ResponseField name="member" type="object">The member's profile (name, email, etc.).</ResponseField>+ <ResponseField name="rbac_role" type="object">The member's role for this seller.</ResponseField>+ <ResponseField name="created_at" type="string">Creation timestamp.</ResponseField>+ </Expandable>+</ResponseField>++<ResponseField name="count" type="number">Total number of members.</ResponseField>+<ResponseField name="offset" type="number">Number of items skipped.</ResponseField>+<ResponseField name="limit" type="number">Maximum number of items returned.</ResponseField>++<RequestExample>+```bash cURL+curl 'http://localhost:9000/vendor/sellers/sel_01HXYZ/members' \+ -H 'Authorization: Bearer <token>' \+ -H 'x-seller-id: <seller_id>'+```++```ts JS Client+const { seller_members } = await client.vendor.sellers.$id.members.query({+ $id: "sel_01HXYZ",+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "seller_members": [+ {+ "id": "selmem_01HXYZ",+ "is_owner": true,+ "member": { "id": "mem_01HXYZ", "first_name": "Jane", "last_name": "Doe", "email": "[email protected]" },+ "rbac_role": { "id": "role_seller_administration", "name": "Administration" },+ "created_at": "2026-01-15T10:00:00.000Z"+ }+ ],+ "count": 1,+ "offset": 0,+ "limit": 50+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/vendor/sellers/list-sellers.mdx b/apps/docs/rc/references/api/vendor/sellers/list-sellers.mdxnew file mode 100644index 000000000..c35e3dc3f--- /dev/null+++ b/apps/docs/rc/references/api/vendor/sellers/list-sellers.mdx@@ -0,0 +1,71 @@+---+title: "List Sellers"+api: "GET /vendor/sellers"+description: "List the seller accounts the authenticated member belongs to."+---++Returns the member's seller memberships (excluding terminated sellers), each with the related seller and role.++<Note>+ This route requires only the `Authorization` header — no `x-seller-id` — since it is used before a seller is selected.+</Note>++## Query parameters++<ParamField query="limit" type="number" default="50">+ Maximum number of items to return.+</ParamField>++<ParamField query="offset" type="number" default="0">+ Number of items to skip.+</ParamField>++<ParamField query="order" type="string">+ Field to sort by, prefixed with `-` for descending order.+</ParamField>++<ParamField query="fields" type="string">+ Comma-separated fields to include in the response.+</ParamField>++## Response++<ResponseField name="seller_members" type="object[]">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The seller member's ID.</ResponseField>+ <ResponseField name="seller" type="object">The related seller.</ResponseField>+ <ResponseField name="rbac_role" type="object">The member's role for this seller.</ResponseField>+ </Expandable>+</ResponseField>++<ResponseField name="count" type="number">Total number of memberships.</ResponseField>+<ResponseField name="offset" type="number">Number of items skipped.</ResponseField>+<ResponseField name="limit" type="number">Maximum number of items returned.</ResponseField>++<RequestExample>+```bash cURL+curl 'http://localhost:9000/vendor/sellers' \+ -H 'Authorization: Bearer <token>'+```++```ts JS Client+const { seller_members } = await client.vendor.sellers.query()+```+</RequestExample>++<ResponseExample>+```json 200+{+ "seller_members": [+ {+ "id": "selmem_01HXYZ",+ "seller": { "id": "sel_01HXYZ", "name": "Acme Store", "status": "open" },+ "rbac_role": { "id": "role_seller_administration", "name": "Administration" }+ }+ ],+ "count": 1,+ "offset": 0,+ "limit": 50+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/vendor/sellers/remove-seller-member.mdx b/apps/docs/rc/references/api/vendor/sellers/remove-seller-member.mdxnew file mode 100644index 000000000..4b348b239--- /dev/null+++ b/apps/docs/rc/references/api/vendor/sellers/remove-seller-member.mdx@@ -0,0 +1,48 @@+---+title: "Remove Seller Member"+api: "DELETE /vendor/sellers/{id}/members/{member_id}"+description: "Remove a member from the seller's team."+---++Removes the seller member and returns a deletion confirmation.++## Path parameters++<ParamField path="id" type="string" required>+ The seller's ID.+</ParamField>++<ParamField path="member_id" type="string" required>+ The seller member's ID.+</ParamField>++## Response++<ResponseField name="id" type="string">The removed seller member's ID.</ResponseField>+<ResponseField name="object" type="string">Always `seller_member`.</ResponseField>+<ResponseField name="deleted" type="boolean">Whether the member was removed.</ResponseField>++<RequestExample>+```bash cURL+curl -X DELETE 'http://localhost:9000/vendor/sellers/sel_01HXYZ/members/selmem_01HXYZ' \+ -H 'Authorization: Bearer <token>' \+ -H 'x-seller-id: <seller_id>'+```++```ts JS Client+const { deleted } = await client.vendor.sellers.$id.members.$member_id.delete({+ $id: "sel_01HXYZ",+ $member_id: "selmem_01HXYZ",+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "id": "selmem_01HXYZ",+ "object": "seller_member",+ "deleted": true+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/vendor/sellers/retrieve-current-seller-member.mdx b/apps/docs/rc/references/api/vendor/sellers/retrieve-current-seller-member.mdxnew file mode 100644index 000000000..accf47eba--- /dev/null+++ b/apps/docs/rc/references/api/vendor/sellers/retrieve-current-seller-member.mdx@@ -0,0 +1,59 @@+---+title: "Retrieve Current Seller Member"+api: "GET /vendor/sellers/{id}/members/me"+description: "Retrieve the authenticated member's membership in a seller."+---++Returns the seller member record linking the authenticated member to the given seller.++## Path parameters++<ParamField path="id" type="string" required>+ The seller's ID.+</ParamField>++## Query parameters++<ParamField query="fields" type="string">+ Comma-separated fields to include in the response.+</ParamField>++## Response++<ResponseField name="seller_member" type="object">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The seller member's ID.</ResponseField>+ <ResponseField name="is_owner" type="boolean">Whether the member owns the seller account.</ResponseField>+ <ResponseField name="member" type="object">The member's profile.</ResponseField>+ <ResponseField name="rbac_role" type="object">The member's role for this seller.</ResponseField>+ <ResponseField name="created_at" type="string">Creation timestamp.</ResponseField>+ </Expandable>+</ResponseField>++<RequestExample>+```bash cURL+curl 'http://localhost:9000/vendor/sellers/sel_01HXYZ/members/me' \+ -H 'Authorization: Bearer <token>' \+ -H 'x-seller-id: <seller_id>'+```++```ts JS Client+const { seller_member } = await client.vendor.sellers.$id.members.me.query({+ $id: "sel_01HXYZ",+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "seller_member": {+ "id": "selmem_01HXYZ",+ "is_owner": true,+ "member": { "id": "mem_01HXYZ", "first_name": "Jane", "last_name": "Doe" },+ "rbac_role": { "id": "role_seller_administration", "name": "Administration" },+ "created_at": "2026-01-15T10:00:00.000Z"+ }+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/vendor/sellers/retrieve-current-seller.mdx b/apps/docs/rc/references/api/vendor/sellers/retrieve-current-seller.mdxnew file mode 100644index 000000000..589acdf9e--- /dev/null+++ b/apps/docs/rc/references/api/vendor/sellers/retrieve-current-seller.mdx@@ -0,0 +1,69 @@+---+title: "Retrieve Current Seller"+api: "GET /vendor/sellers/me"+description: "Retrieve the seller the request is scoped to."+---++Returns the seller identified by the current seller context (`x-seller-id` header or session), including address, payment details, and professional details.++## Query parameters++<ParamField query="fields" type="string">+ Comma-separated fields to include in the response.+</ParamField>++## Response++<ResponseField name="seller" type="object">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The seller's ID.</ResponseField>+ <ResponseField name="name" type="string">The seller's name.</ResponseField>+ <ResponseField name="handle" type="string">The seller's handle.</ResponseField>+ <ResponseField name="email" type="string">The seller's email.</ResponseField>+ <ResponseField name="phone" type="string">The seller's phone.</ResponseField>+ <ResponseField name="description" type="string">Store description.</ResponseField>+ <ResponseField name="logo" type="string">Logo URL.</ResponseField>+ <ResponseField name="banner" type="string">Banner URL.</ResponseField>+ <ResponseField name="website_url" type="string">Website URL.</ResponseField>+ <ResponseField name="currency_code" type="string">Default currency.</ResponseField>+ <ResponseField name="status" type="enum">One of `open`, `pending_approval`, `suspended`, `terminated`.</ResponseField>+ <ResponseField name="approved_at" type="string">Approval timestamp.</ResponseField>+ <ResponseField name="rejected_at" type="string">Rejection timestamp.</ResponseField>+ <ResponseField name="is_premium" type="boolean">Whether the seller has premium status.</ResponseField>+ <ResponseField name="closed_from" type="string">Start of a temporary store closure.</ResponseField>+ <ResponseField name="closed_to" type="string">End of a temporary store closure.</ResponseField>+ <ResponseField name="closure_note" type="string">Closure message shown to customers.</ResponseField>+ <ResponseField name="address" type="object">The seller's address.</ResponseField>+ <ResponseField name="payment_details" type="object">The seller's bank details.</ResponseField>+ <ResponseField name="professional_details" type="object">The seller's business registration details.</ResponseField>+ <ResponseField name="metadata" type="object">Custom key-value pairs.</ResponseField>+ </Expandable>+</ResponseField>++<RequestExample>+```bash cURL+curl 'http://localhost:9000/vendor/sellers/me' \+ -H 'Authorization: Bearer <token>' \+ -H 'x-seller-id: <seller_id>'+```++```ts JS Client+const { seller } = await client.vendor.sellers.me.query()+```+</RequestExample>++<ResponseExample>+```json 200+{+ "seller": {+ "id": "sel_01HXYZ",+ "name": "Acme Store",+ "handle": "acme-store",+ "email": "[email protected]",+ "status": "open",+ "currency_code": "usd",+ "address": { "city": "New York", "country_code": "us" }+ }+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/vendor/sellers/select-seller.mdx b/apps/docs/rc/references/api/vendor/sellers/select-seller.mdxnew file mode 100644index 000000000..d9803c109--- /dev/null+++ b/apps/docs/rc/references/api/vendor/sellers/select-seller.mdx@@ -0,0 +1,44 @@+---+title: "Select Seller"+api: "POST /vendor/sellers/select"+description: "Set the active seller for the member's session."+---++Stores the chosen seller in the session after verifying the member belongs to it.++<Note>+ Requires only the `Authorization` header. Session-based clients get the seller stored server-side; token-based clients should send `x-seller-id` on subsequent requests instead.+</Note>++## Body parameters++<ParamField body="seller_id" type="string" required>+ The ID of the seller to activate for this session.+</ParamField>++## Response++<ResponseField name="success" type="boolean">+ Whether the seller was selected.+</ResponseField>++<RequestExample>+```bash cURL+curl -X POST 'http://localhost:9000/vendor/sellers/select' \+ -H 'Authorization: Bearer <token>' \+ -H 'Content-Type: application/json' \+ -d '{"seller_id": "sel_01HXYZ"}'+```++```ts JS Client+const { success } = await client.vendor.sellers.select.mutate({+ seller_id: "sel_01HXYZ",+})+```+</RequestExample>++<ResponseExample>+```json 200+{ "success": true }+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/vendor/sellers/update-current-seller.mdx b/apps/docs/rc/references/api/vendor/sellers/update-current-seller.mdxnew file mode 100644index 000000000..2a229a990--- /dev/null+++ b/apps/docs/rc/references/api/vendor/sellers/update-current-seller.mdx@@ -0,0 +1,108 @@+---+title: "Update Current Seller"+api: "POST /vendor/sellers/me"+description: "Update the seller the request is scoped to."+---++Updates the current seller's profile and returns the full seller object.++## Body parameters++<ParamField body="name" type="string">+ The seller's display name.+</ParamField>++<ParamField body="handle" type="string">+ Unique handle for the seller's storefront URL.+</ParamField>++<ParamField body="email" type="string">+ The seller's contact email.+</ParamField>++<ParamField body="phone" type="string">+ The seller's contact phone number.+</ParamField>++<ParamField body="description" type="string">+ Description of the seller's store.+</ParamField>++<ParamField body="logo" type="string">+ URL of the seller's logo.+</ParamField>++<ParamField body="banner" type="string">+ URL of the seller's banner image.+</ParamField>++<ParamField body="website_url" type="string">+ The seller's website URL.+</ParamField>++<ParamField body="closed_from" type="string">+ Start date of a temporary store closure (ISO 8601).+</ParamField>++<ParamField body="closed_to" type="string">+ End date of a temporary store closure (ISO 8601).+</ParamField>++<ParamField body="closure_note" type="string">+ Message shown to customers while the store is closed.+</ParamField>++<ParamField body="metadata" type="object">+ Custom key-value pairs.+</ParamField>++<ParamField body="additional_data" type="object">+ Custom data passed to workflow hooks.+</ParamField>++## Query parameters++<ParamField query="fields" type="string">+ Comma-separated fields to include in the response.+</ParamField>++## Response++<ResponseField name="seller" type="object">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The seller's ID.</ResponseField>+ <ResponseField name="name" type="string">The seller's name.</ResponseField>+ <ResponseField name="handle" type="string">The seller's handle.</ResponseField>+ <ResponseField name="status" type="enum">One of `open`, `pending_approval`, `suspended`, `terminated`.</ResponseField>+ </Expandable>+</ResponseField>++<RequestExample>+```bash cURL+curl -X POST 'http://localhost:9000/vendor/sellers/me' \+ -H 'Authorization: Bearer <token>' \+ -H 'x-seller-id: <seller_id>' \+ -H 'Content-Type: application/json' \+ -d '{"description": "Handmade goods from Brooklyn."}'+```++```ts JS Client+const { seller } = await client.vendor.sellers.me.mutate({+ description: "Handmade goods from Brooklyn.",+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "seller": {+ "id": "sel_01HXYZ",+ "name": "Acme Store",+ "handle": "acme-store",+ "description": "Handmade goods from Brooklyn.",+ "status": "open"+ }+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/vendor/sellers/update-member-role.mdx b/apps/docs/rc/references/api/vendor/sellers/update-member-role.mdxnew file mode 100644index 000000000..121402272--- /dev/null+++ b/apps/docs/rc/references/api/vendor/sellers/update-member-role.mdx@@ -0,0 +1,51 @@+---+title: "Update Member Role"+api: "POST /vendor/sellers/{id}/members/{member_id}"+description: "Change the role of a seller team member."+---++Updates the role assigned to a seller member.++## Path parameters++<ParamField path="id" type="string" required>+ The seller's ID.+</ParamField>++<ParamField path="member_id" type="string" required>+ The seller member's ID.+</ParamField>++## Body parameters++<ParamField body="role_id" type="enum" required>+ The new role. One of `role_seller_administration`, `role_seller_inventory_management`, `role_seller_order_management`, `role_seller_accounting`, `role_seller_support`.+</ParamField>++## Response++An empty object on success.++<RequestExample>+```bash cURL+curl -X POST 'http://localhost:9000/vendor/sellers/sel_01HXYZ/members/selmem_01HXYZ' \+ -H 'Authorization: Bearer <token>' \+ -H 'x-seller-id: <seller_id>' \+ -H 'Content-Type: application/json' \+ -d '{"role_id": "role_seller_accounting"}'+```++```ts JS Client+await client.vendor.sellers.$id.members.$member_id.mutate({+ $id: "sel_01HXYZ",+ $member_id: "selmem_01HXYZ",+ role_id: "role_seller_accounting",+})+```+</RequestExample>++<ResponseExample>+```json 200+{}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/vendor/sellers/upsert-payment-details.mdx b/apps/docs/rc/references/api/vendor/sellers/upsert-payment-details.mdxnew file mode 100644index 000000000..0df155305--- /dev/null+++ b/apps/docs/rc/references/api/vendor/sellers/upsert-payment-details.mdx@@ -0,0 +1,74 @@+---+title: "Upsert Payment Details"+api: "POST /vendor/sellers/{id}/payment-details"+description: "Create or update the seller's bank account details."+---++Upserts the seller's payment details and returns the full seller object.++## Path parameters++<ParamField path="id" type="string" required>+ The seller's ID.+</ParamField>++## Body parameters++<ParamField body="country_code" type="string">Bank country code.</ParamField>+<ParamField body="holder_name" type="string">Account holder name.</ParamField>+<ParamField body="bank_name" type="string">Bank name.</ParamField>+<ParamField body="iban" type="string">IBAN.</ParamField>+<ParamField body="bic" type="string">BIC / SWIFT code.</ParamField>+<ParamField body="routing_number" type="string">Routing number.</ParamField>+<ParamField body="account_number" type="string">Account number.</ParamField>+<ParamField body="additional_data" type="object">Custom data passed to workflow hooks.</ParamField>++## Query parameters++<ParamField query="fields" type="string">+ Comma-separated fields to include in the response.+</ParamField>++## Response++<ResponseField name="seller" type="object">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The seller's ID.</ResponseField>+ <ResponseField name="payment_details" type="object">The updated payment details.</ResponseField>+ </Expandable>+</ResponseField>++<RequestExample>+```bash cURL+curl -X POST 'http://localhost:9000/vendor/sellers/sel_01HXYZ/payment-details' \+ -H 'Authorization: Bearer <token>' \+ -H 'x-seller-id: <seller_id>' \+ -H 'Content-Type: application/json' \+ -d '{"holder_name": "Acme Inc.", "iban": "DE89370400440532013000", "bic": "COBADEFFXXX"}'+```++```ts JS Client+const { seller } = await client.vendor.sellers.$id.paymentDetails.mutate({+ $id: "sel_01HXYZ",+ holder_name: "Acme Inc.",+ iban: "DE89370400440532013000",+ bic: "COBADEFFXXX",+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "seller": {+ "id": "sel_01HXYZ",+ "name": "Acme Store",+ "payment_details": {+ "holder_name": "Acme Inc.",+ "iban": "DE89370400440532013000",+ "bic": "COBADEFFXXX"+ }+ }+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/vendor/sellers/upsert-professional-details.mdx b/apps/docs/rc/references/api/vendor/sellers/upsert-professional-details.mdxnew file mode 100644index 000000000..2b71dbaa4--- /dev/null+++ b/apps/docs/rc/references/api/vendor/sellers/upsert-professional-details.mdx@@ -0,0 +1,70 @@+---+title: "Upsert Professional Details"+api: "POST /vendor/sellers/{id}/professional-details"+description: "Create or update the seller's business registration details."+---++Upserts the seller's professional details and returns the full seller object.++## Path parameters++<ParamField path="id" type="string" required>+ The seller's ID.+</ParamField>++## Body parameters++<ParamField body="corporate_name" type="string">Registered corporate name.</ParamField>+<ParamField body="registration_number" type="string">Business registration number.</ParamField>+<ParamField body="tax_id" type="string">Tax identification number.</ParamField>+<ParamField body="additional_data" type="object">Custom data passed to workflow hooks.</ParamField>++## Query parameters++<ParamField query="fields" type="string">+ Comma-separated fields to include in the response.+</ParamField>++## Response++<ResponseField name="seller" type="object">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The seller's ID.</ResponseField>+ <ResponseField name="professional_details" type="object">The updated professional details.</ResponseField>+ </Expandable>+</ResponseField>++<RequestExample>+```bash cURL+curl -X POST 'http://localhost:9000/vendor/sellers/sel_01HXYZ/professional-details' \+ -H 'Authorization: Bearer <token>' \+ -H 'x-seller-id: <seller_id>' \+ -H 'Content-Type: application/json' \+ -d '{"corporate_name": "Acme Inc.", "registration_number": "HRB 12345", "tax_id": "DE123456789"}'+```++```ts JS Client+const { seller } = await client.vendor.sellers.$id.professionalDetails.mutate({+ $id: "sel_01HXYZ",+ corporate_name: "Acme Inc.",+ registration_number: "HRB 12345",+ tax_id: "DE123456789",+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "seller": {+ "id": "sel_01HXYZ",+ "name": "Acme Store",+ "professional_details": {+ "corporate_name": "Acme Inc.",+ "registration_number": "HRB 12345",+ "tax_id": "DE123456789"+ }+ }+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/api/vendor/sellers/upsert-seller-address.mdx b/apps/docs/rc/references/api/vendor/sellers/upsert-seller-address.mdxnew file mode 100644index 000000000..c52d447e2--- /dev/null+++ b/apps/docs/rc/references/api/vendor/sellers/upsert-seller-address.mdx@@ -0,0 +1,81 @@+---+title: "Upsert Seller Address"+api: "POST /vendor/sellers/{id}/address"+description: "Create or update the seller's address."+---++Upserts the seller's address and returns the full seller object.++## Path parameters++<ParamField path="id" type="string" required>+ The seller's ID.+</ParamField>++## Body parameters++<ParamField body="name" type="string">Address label.</ParamField>+<ParamField body="company" type="string">Company name.</ParamField>+<ParamField body="first_name" type="string">Contact first name.</ParamField>+<ParamField body="last_name" type="string">Contact last name.</ParamField>+<ParamField body="address_1" type="string">Street address.</ParamField>+<ParamField body="address_2" type="string">Apartment, suite, etc.</ParamField>+<ParamField body="city" type="string">City.</ParamField>+<ParamField body="country_code" type="string">Two-letter country code.</ParamField>+<ParamField body="province" type="string">Province or state.</ParamField>+<ParamField body="postal_code" type="string">Postal code.</ParamField>+<ParamField body="phone" type="string">Phone number.</ParamField>+<ParamField body="metadata" type="object">Custom key-value pairs.</ParamField>+<ParamField body="additional_data" type="object">Custom data passed to workflow hooks.</ParamField>++## Query parameters++<ParamField query="fields" type="string">+ Comma-separated fields to include in the response.+</ParamField>++## Response++<ResponseField name="seller" type="object">+ <Expandable title="properties">+ <ResponseField name="id" type="string">The seller's ID.</ResponseField>+ <ResponseField name="address" type="object">The updated address.</ResponseField>+ </Expandable>+</ResponseField>++<RequestExample>+```bash cURL+curl -X POST 'http://localhost:9000/vendor/sellers/sel_01HXYZ/address' \+ -H 'Authorization: Bearer <token>' \+ -H 'x-seller-id: <seller_id>' \+ -H 'Content-Type: application/json' \+ -d '{"address_1": "123 Main St", "city": "New York", "country_code": "us", "postal_code": "10001"}'+```++```ts JS Client+const { seller } = await client.vendor.sellers.$id.address.mutate({+ $id: "sel_01HXYZ",+ address_1: "123 Main St",+ city: "New York",+ country_code: "us",+ postal_code: "10001",+})+```+</RequestExample>++<ResponseExample>+```json 200+{+ "seller": {+ "id": "sel_01HXYZ",+ "name": "Acme Store",+ "address": {+ "address_1": "123 Main St",+ "city": "New York",+ "country_code": "us",+ "postal_code": "10001"+ }+ }+}+```+</ResponseExample>diff --git a/apps/docs/rc/references/configuration.mdx b/apps/docs/rc/references/configuration.mdxnew file mode 100644index 000000000..4ed79494b--- /dev/null+++ b/apps/docs/rc/references/configuration.mdx@@ -0,0 +1,155 @@+---+title: "Configuration"+description: "withMercur() options, environment variables, and provider configuration."+---++Mercur is configured through the standard Medusa config file. `withMercur()` wraps `defineConfig()` and wires the marketplace layer in — you pass it the same shape you would pass to Medusa, plus one Mercur-specific field.++## withMercur()++```ts medusa-config.ts+import { loadEnv } from "@medusajs/framework/utils"+import { withMercur } from "@mercurjs/core"++loadEnv(process.env.NODE_ENV || "development", process.cwd())++module.exports = withMercur({+ projectConfig: {+ databaseUrl: process.env.DATABASE_URL,+ redisUrl: process.env.REDIS_URL,+ http: {+ storeCors: process.env.STORE_CORS!,+ adminCors: process.env.ADMIN_CORS!,+ vendorCors: process.env.VENDOR_CORS!, // Mercur-specific+ authCors: process.env.AUTH_CORS!,+ jwtSecret: process.env.JWT_SECRET,+ cookieSecret: process.env.COOKIE_SECRET,+ },+ },+ featureFlags: {+ seller_registration: true,+ },+ modules: [+ // your modules and providers+ ],+})+```++The option surface is Medusa's `InputConfigWithArrayModules` extended with:++| Option | Type | Purpose |+| --- | --- | --- |+| `projectConfig.http.vendorCors` | `string` | CORS origins for the Vendor API (`/vendor/*`) — the only Mercur-specific option |++### What withMercur applies++| Behavior | Detail |+| --- | --- |+| Registers the core plugin | Appends `@mercurjs/core` to `plugins` unless already present |+| Registers RBAC | Appends the `@medusajs/medusa/rbac` module and forces `featureFlags.rbac = true`, so vendor role scoping works out of the box |+| Disables the Medusa admin | `admin.disable` defaults to `true` — Mercur ships its own dashboards |+| Adjusts core middlewares | Replaces the Medusa middlewares that Mercur overrides (e.g. collections with media) |++Everything you pass is otherwise forwarded to `defineConfig()` unchanged, so any valid Medusa configuration remains valid here.++## Environment variables++The starter (`apps/api` and projects created with `create-mercur-app`) reads:++| Variable | Purpose | Default |+| --- | --- | --- |+| `DATABASE_URL` | Postgres connection string | — (required) |+| `REDIS_URL` | Redis for cache, event bus, workflow engine, locking | `redis://localhost:6379` |+| `STORE_CORS` | Storefront CORS origins | — (required) |+| `ADMIN_CORS` | Admin panel CORS origins | — (required) |+| `VENDOR_CORS` | Vendor panel CORS origins | — (required) |+| `AUTH_CORS` | Auth endpoint CORS origins | — (required) |+| `JWT_SECRET` | JWT signing secret | `supersecret` (change in production) |+| `COOKIE_SECRET` | Cookie signing secret | `supersecret` (change in production) |+| `FILE_BACKEND_URL` | Public origin baked into uploaded file URLs | `http://localhost:9000/static` |+| `MERCUR_VENDOR_URL` | Vendor dashboard base URL used in member invite links | `""` — can also be set via the seller module's `vendor_url` option |+| `NODE_ENV` | Environment selection | `development` |++## Dashboard modules++The admin and vendor dashboards are served by two UI modules:++```ts+modules: [+ {+ resolve: "@mercurjs/core/modules/admin-ui",+ options: { appDir: "./admin", path: "/dashboard" },+ },+ {+ resolve: "@mercurjs/core/modules/vendor-ui",+ options: { appDir: "./vendor", path: "/seller" },+ },+]+```++| Option | Type | Purpose |+| --- | --- | --- |+| `disable` | `boolean` | Skip serving this dashboard from the API process |+| `path` | `string` | Mount path (e.g. `/dashboard`, `/seller`) |+| `appDir` | `string` | Directory of the dashboard Vite app |+| `viteDevServerPort` / `viteDevServerHost` | `number` / `string` | Dev-mode proxy target (host defaults to `localhost`) |++## Stripe Connect payout provider++Register `@mercurjs/payout-stripe-connect` as a provider of the payout module:++```ts+{+ resolve: "@mercurjs/core/modules/payout",+ options: {+ providers: [+ {+ resolve: "@mercurjs/payout-stripe-connect",+ id: "stripe-connect",+ options: {+ apiKey: process.env.STRIPE_SECRET_KEY,+ webhookSecret: process.env.STRIPE_WEBHOOK_SECRET,+ },+ },+ ],+ },+}+```++| Option | Type | Default | Purpose |+| --- | --- | --- | --- |+| `apiKey` | `string` | — (required) | Stripe secret key |+| `webhookSecret` | `string` | — (required) | Verifies incoming Stripe webhook signatures |+| `accountValidation.detailsSubmitted` | `boolean` | `true` | Require onboarding details submitted before the account is active |+| `accountValidation.chargesEnabled` | `boolean` | `true` | Require charges enabled |+| `accountValidation.payoutsEnabled` | `boolean` | `true` | Require payouts enabled |+| `accountValidation.noOutstandingRequirements` | `boolean` | `true` | Treat pending Stripe requirements as `restricted` |+| `accountValidation.requiredCapabilities` | `string[]` | `[]` | Stripe capabilities that must be `active` |++The payout module itself also accepts scheduling options (`authorizationWindowMs`, `sellerActionWindowMs`, `captureSafetyBufferMs`, `requiredFulfillmentStatus`) — see the [Payout module reference](/rc/references/modules/payout#module-options).++## Search provider++The search module needs no configuration — when no provider is given, the built-in in-memory Orama provider registers automatically. To use a custom provider:++```ts+{+ resolve: "@mercurjs/core/modules/search",+ options: {+ provider: {+ resolve: "./src/providers/my-search-provider",+ id: "my-search",+ options: { /* provider options */ },+ },+ },+}+```++The provider must extend `AbstractSearchProvider` — see the [Search module reference](/rc/references/modules/search#provider-contract).++## Next steps++<CardGroup cols={2}>+ <Card title="Installation" href="/rc/learn/installation" />+ <Card title="Stripe Connect integration" href="/rc/resources/integrations/stripe-connect" />+</CardGroup>diff --git a/apps/docs/rc/references/modules/commission.mdx b/apps/docs/rc/references/modules/commission.mdxnew file mode 100644index 000000000..d7bf79eda--- /dev/null+++ b/apps/docs/rc/references/modules/commission.mdx@@ -0,0 +1,106 @@+---+title: "Commission module"+description: "Data models and service methods for the Commission module."+---++The Commission module owns commission configuration and calculation. Operators define **commission rates** (percentage or fixed, optionally per-currency) with a set of **rules** that scope where a rate applies. During checkout, the module resolves the most specific matching rate per order item and persists idempotent **commission lines** on the order.++For the conceptual introduction, see [Commissions](/rc/learn/commissions).++## Data models++### `CommissionRate`++Table `commission_rate`, ID prefix `comrate`.++| Field | Type | Notes |+| --- | --- | --- |+| `name` | text | Searchable |+| `code` | text | Unique; auto-generated from `name` when omitted |+| `type` | enum | `fixed` or `percentage` |+| `value` | bigNumber | The percentage or the fixed amount |+| `is_enabled` | boolean | Default `true` |+| `is_default` | boolean | Default `false`; the platform fallback rate |+| `currency_code` | text | Nullable; restricts the rate to one currency |+| `include_tax` | boolean | Default `false`; commission is computed on the tax-inclusive amount |+| `include_shipping` | boolean | Default `false`; adds shipping commission lines from the default rate |++Relations: `rules` (one-to-many `CommissionRule`), `values` (one-to-many `CommissionRateValue`).++### `CommissionRule`++Table `commission_rule`, ID prefix `comrule`. A rule scopes its rate to one reference:++| Field | Type | Notes |+| --- | --- | --- |+| `reference` | text | One of `product`, `product_type`, `product_collection`, `product_category`, `seller` |+| `reference_id` | text | The referenced entity's ID |++### `CommissionRateValue`++Table `commission_rate_value`, ID prefix `comval`. Per-currency amounts for `fixed` rates:++| Field | Type |+| --- | --- |+| `currency_code` | text |+| `amount` | bigNumber |++### `CommissionLine`++Table `commission_line`, ID prefix `comline`. The persisted result of a calculation, anchored to an order item or shipping method:++| Field | Type | Notes |+| --- | --- | --- |+| `item_id` | text | Nullable; the order line item |+| `shipping_method_id` | text | Nullable; set for shipping commission lines |+| `commission_rate_id` | text | Nullable; the rate that produced this line |+| `code` | text | Rate code snapshot |+| `rate` | float | Rate value snapshot |+| `amount` | bigNumber | Computed commission |+| `description` | text | Nullable |++## Enums++```ts+enum CommissionRateType {+ FIXED = "fixed",+ PERCENTAGE = "percentage",+}+```++## Rate matching++When multiple rates match an order item, the module resolves them deterministically:++1. Only enabled rates whose `currency_code` matches (or is unset) are considered.+2. Rules combine **AND across dimensions, OR within a dimension** — a rate with a `seller` rule and a `product_category` rule matches only items that satisfy both.+3. The **most specific** rate wins (the one matching on the most dimensions).+4. Ties break to the oldest-created rate.+5. If nothing matches, the rate flagged `is_default` applies.++List endpoints additionally accept a virtual `scope_type` filter (`store`, `product_type`, `category`, `store_product_type`, `store_category`) that the service translates into SQL predicates over the rules table.++## Service++`CommissionModuleService` extends `MedusaService` with auto-generated CRUD for all models above, plus:++| Method | Behavior |+| --- | --- |+| `getCommissionLines(context)` | The core calculator — resolves the matching rate per item, computes amounts (percentage of the subtotal, or the per-currency fixed amount), and appends shipping lines when the winning rate has `include_shipping` |+| `upsertCommissionLines(lines)` | Idempotent replace: deletes existing lines for the same item/shipping anchors, then inserts |+| `createCommissionRates(data)` | Auto-generates a unique `code` from `name` when absent |+| `listCommissionRates` / `listAndCountCommissionRates` | Apply the virtual `scope_type` filter |++A loader seeds a default commission rate on first boot.++## Related endpoints++- `GET/POST /admin/commission-rates`, `POST /admin/commission-rates/:id/rules` — see [Admin API](/rc/references/api/admin)+- `GET /admin/orders/:id/commission-lines` and `GET /vendor/orders/:id/commission-lines` expose the computed lines per order.++## Next steps++<CardGroup cols={2}>+ <Card title="Seller module" href="/rc/references/modules/seller" />+ <Card title="Payout module" href="/rc/references/modules/payout" />+</CardGroup>diff --git a/apps/docs/rc/references/modules/custom-fields.mdx b/apps/docs/rc/references/modules/custom-fields.mdxnew file mode 100644index 000000000..1ff2bd75f--- /dev/null+++ b/apps/docs/rc/references/modules/custom-fields.mdx@@ -0,0 +1,45 @@+---+title: "Custom Fields module"+description: "Add extra columns to any entity without writing a custom module."+---++The Custom Fields module lets a project attach arbitrary extra fields to existing entities — sellers, products, orders, anything with a joiner alias — without defining a new Medusa module. Fields are declared in configuration; the module generates and manages a `<entity>_custom_fields` table per configured entity and reads/writes it directly.++For the usage guide, see [Custom fields](/rc/resources/customization/custom-fields).++## How it works++- On application start, the module builds a map from joiner aliases (e.g. `seller`, `product`) to entity names for every entity listed in its options.+- Each configured entity gets a dedicated table named `<entity>_custom_fields` with one column per declared field plus a `<entity>_id` foreign key.+- Rows are soft-deleted (`deleted_at`).++There are no `model.define` models and no links — the module operates dynamically over its own tables.++## Module options++```ts+interface CustomFieldsModuleOptions {+ customFields?: {+ [entityName: string]: Record<string, Field>+ }+}+```++A `Field` is either a `BaseField` (scalar type) or an `EnumField` (fixed set of values). Both types are exported from the module.++## Service++`CustomFieldsModuleService` is a plain service (not `MedusaService`):++| Method | Behavior |+| --- | --- |+| `list(alias, filters?, config?)` | Queries the entity's custom-fields table; supports array filters (`IN`) and field selection |+| `upsert(alias, data)` | Diffs against existing rows per entity ID, inserts new rows and updates changed ones in a transaction |+| `delete(alias, ids)` | Soft-deletes the rows for the given entity IDs |++## Next steps++<CardGroup cols={2}>+ <Card title="Custom fields guide" href="/rc/resources/customization/custom-fields" />+ <Card title="Configuration" href="/rc/references/configuration" />+</CardGroup>diff --git a/apps/docs/rc/references/modules/media.mdx b/apps/docs/rc/references/modules/media.mdxnew file mode 100644index 000000000..15117dc35--- /dev/null+++ b/apps/docs/rc/references/modules/media.mdx@@ -0,0 +1,55 @@+---+title: "Media module"+description: "Image records for categories and collections — galleries, thumbnails, banners, and icons."+---++The Media module owns generic image records attached to marketplace entities through module links. It powers the media galleries on **product categories** and **product collections**, including thumbnail, banner, and icon designations.++The model is deliberately named `MediaImage` (table `media_image`) to avoid colliding with Medusa's product `Image` model.++## Data models++### `MediaImage`++Table `media_image`, ID prefix `medimg`.++| Field | Type | Notes |+| --- | --- | --- |+| `url` | text | |+| `type` | text | Nullable; `"icon"` for icons, `null` for gallery images |+| `is_thumbnail` | boolean | Default `false` |+| `is_banner` | boolean | Default `false` |+| `rank` | number | Default `0`; gallery ordering |+| `metadata` | json | Nullable |++Ownership lives in the link table, not on the record — the same module serves any linked entity.++## Links++| Link | Alias | Purpose |+| --- | --- | --- |+| `Product.productCategory` ↔ `MediaImage` | `media_images` | Category gallery + icon |+| `Product.productCollection` ↔ `MediaImage` | `media_images` | Collection gallery + icon |++## Invariants++The service is plain CRUD; the invariants are enforced by the `setCategoryImagesWorkflow` / `setCollectionImagesWorkflow`:++- At most **one thumbnail**, **one banner**, and **one icon** per entity.+- The same image may be both thumbnail and banner.+- Setting `icon: null` clears the icon; deleting the entity removes its linked images (no orphans).++Create/update/delete of categories and collections goes through thin wrapper workflows (`createProductCollectionWithImagesWorkflow`, etc.) that combine Medusa's core workflow with the image-set step.++## Related endpoints++- `GET/POST/DELETE /admin/collections[/:id]` — accept `media[]` (with thumbnail/banner designations) and `icon` in the body; responses include the linked `images`.+- Admin product-category routes accept the same shape.+- Vendor collection and category routes expose the images read-only.++## Next steps++<CardGroup cols={2}>+ <Card title="Workflows" href="/rc/references/workflows" />+ <Card title="Admin API" href="/rc/references/api/admin" />+</CardGroup>diff --git a/apps/docs/rc/references/modules/offer.mdx b/apps/docs/rc/references/modules/offer.mdxnew file mode 100644index 000000000..96055b5fd--- /dev/null+++ b/apps/docs/rc/references/modules/offer.mdx@@ -0,0 +1,64 @@+---+title: "Offer module"+description: "Data models, links, and service methods for the Offer module."+---++The Offer module owns a seller's **listing** — the binding of a shared product variant to that seller's SKU, shipping profile, price, and inventory. Products in Mercur are master catalog records; the offer is what makes a variant purchasable *from a specific seller*.++## Data models++### `Offer`++Table `offer`, ID prefix `offer`. Unique on (`seller_id`, `sku`).++| Field | Type | Notes |+| --- | --- | --- |+| `seller_id` | text | The listing seller |+| `product_id` | text | The master product |+| `variant_id` | text | The listed variant |+| `shipping_profile_id` | text | The seller's shipping profile for this offer |+| `sku` | text | Searchable; unique per seller |+| `ean` / `upc` | text | Nullable, searchable |+| `created_by` | text | Actor that created the offer |+| `variant_count` | number | Computed; only populated in `group_by_seller` mode |+| `metadata` | json | Nullable |++Indexes exist on `variant_id`, `product_id`, `seller_id`, `shipping_profile_id`, `ean`, and `upc`.++## Links++Prices and inventory attach to the offer through links, not columns:++| Linked entity | Cardinality | Purpose |+| --- | --- | --- |+| `Pricing.price` | one offer — many prices | The offer's own price set |+| `Inventory.inventoryItem` | many-to-many (`offer_inventory_item`, with `required_quantity`, default 1) | The stock backing the offer |+| `Cart.lineItem` / `Order.orderLineItem` | one offer — many items | Traces cart and order lines back to the offer they were bought from |+| `Product.product` / `productVariant`, `Seller`, `Fulfillment.shippingProfile` | read-only | Resolved from the `*_id` columns |++<Warning>+ Offer inventory links to the **offer**, not the variant. For offer-backed+ order lines, `variant.inventory_items` is empty — always read stock through+ the offer's inventory link.+</Warning>++## Service++`OfferModuleService` extends `MedusaService` with auto-generated CRUD, plus a grouped listing mode:++| Method | Behavior |+| --- | --- |+| `listOffers(filters, config)` / `listAndCountOffers(...)` | When `filters.group_by_seller` is set, collapses results to one row per (`product_id`, `seller_id`) and computes `variant_count` per group; otherwise standard listing |++## Related endpoints++- `GET /admin/offers`, `POST /admin/offers/batch` — operator visibility and bulk creation+- `GET/POST /vendor/offers`, `POST /vendor/offers/batch`, `POST /vendor/offers/:id/inventory-items/batch` — seller listing management+- `GET /store/offers`, `GET /store/offers/:id` — storefront discovery with per-offer calculated prices++## Next steps++<CardGroup cols={2}>+ <Card title="Seller module" href="/rc/references/modules/seller" />+ <Card title="Search module" href="/rc/references/modules/search" />+</CardGroup>diff --git a/apps/docs/rc/references/modules/payout.mdx b/apps/docs/rc/references/modules/payout.mdxnew file mode 100644index 000000000..6be9cada2--- /dev/null+++ b/apps/docs/rc/references/modules/payout.mdx@@ -0,0 +1,121 @@+---+title: "Payout module"+description: "Data models, links, service methods, and the provider interface for the Payout module."+---++The Payout module owns vendor payout accounts, provider onboarding, and payout records. It delegates account creation, onboarding, and payout execution to a single registered **payout provider** — Stripe Connect ships out of the box — and enforces that payouts only fire for `active` accounts.++For the conceptual introduction, see [Payouts](/rc/learn/payouts).++## Data models++### `PayoutAccount`++Table `payout_account`, ID prefix `pacc`. One per seller (linked via the seller module).++| Field | Type | Notes |+| --- | --- | --- |+| `status` | enum | `PayoutAccountStatus`, default `pending` |+| `data` | json | Provider-owned account data |+| `context` | json | Nullable; creation context passed to the provider |++Relations: `onboarding` (one-to-one), `payouts` (one-to-many).++### `Payout`++Table `payout`, ID prefix `pout`.++| Field | Type | Notes |+| --- | --- | --- |+| `display_id` | autoincrement | Human-readable number |+| `currency_code` | text | |+| `amount` | bigNumber | |+| `status` | enum | `PayoutStatus`, default `pending` |+| `data` | json | Nullable; provider response data |++### `Onboarding`++Table `onboarding`, ID prefix `onb`. Holds the provider's onboarding state for an account:++| Field | Type | Notes |+| --- | --- | --- |+| `data` | json | Nullable; e.g. the Stripe onboarding link |+| `context` | json | Nullable; e.g. return/refresh URLs |++## Enums++```ts+enum PayoutAccountStatus {+ PENDING = "pending",+ ACTIVE = "active",+ RESTRICTED = "restricted",+ REJECTED = "rejected",+}++enum PayoutStatus {+ PENDING = "pending",+ PROCESSING = "processing",+ PAID = "paid",+ FAILED = "failed",+ CANCELED = "canceled",+}+```++## Links++| Linked entity | Cardinality | Purpose |+| --- | --- | --- |+| `Seller` ↔ `PayoutAccount` | one-to-one | A seller's provider account |+| `Seller` ↔ `Payout` | one seller — many payouts | Settlement history |+| `Order.order` ↔ `Payout` | one order — many payouts | Traces a payout back to the order it settles |++## Service++`PayoutModuleService` extends `MedusaService` with auto-generated CRUD, plus:++| Method | Behavior |+| --- | --- |+| `createPayoutAccount(input)` | Creates the local record, calls the provider with an idempotency key, stores the provider's data and status; deletes the local record if the provider call fails |+| `createOnboarding(input)` | Calls the provider and upserts the onboarding record for the account |+| `createPayouts(input)` | Asserts the account is `active`, calls the provider, persists the payout with the provider's data and status |+| `getWebhookActionAndData(input)` | Resolves an incoming provider webhook into a payout action (consumed by `POST /hooks/payout`) |+| `getOptions()` | Returns the merged module options |++## Module options++| Option | Type | Default | Purpose |+| --- | --- | --- | --- |+| `providers` | array | — | Provider registrations (`resolve`, `id`, `options`) |+| `disabled` | boolean | `false` | Turns payout processing off |+| `authorizationWindowMs` | number | 7 days | How long a payment authorization is trusted before capture must happen |+| `sellerActionWindowMs` | number | 72 h | How long the seller has to act (e.g. fulfill) before escalation |+| `captureSafetyBufferMs` | number | 24 h | Safety margin before the authorization expires |+| `requiredFulfillmentStatus` | string | `"fulfilled"` | Fulfillment state an order must reach before its payout is generated |++## Provider interface++Exactly one payout provider must be registered (under the `payout_` registration prefix); the module throws at boot otherwise. A provider implements four verbs:++```ts+interface PayoutProvider {+ createPayoutAccount(input): Promise<{ data; status }>+ createOnboarding(input): Promise<{ data }>+ createPayout(input): Promise<{ data; status }>+ getWebhookActionAndData(payload): Promise<PayoutWebhookResult>+}+```++The Stripe Connect implementation lives in `@mercurjs/payout-stripe-connect` — see [Configuration](/rc/references/configuration#stripe-connect-payout-provider) for its options and [Stripe Connect integration](/rc/resources/integrations/stripe-connect) for the setup guide.++## Related endpoints++- `GET /admin/payouts` — platform-wide payout monitoring+- `GET /vendor/payouts`, `GET/POST /vendor/payout-accounts`, `POST /vendor/payout-accounts/:id/onboarding` — seller-side account and history+- `POST /hooks/payout` — provider webhook receiver++## Next steps++<CardGroup cols={2}>+ <Card title="Stripe Connect integration" href="/rc/resources/integrations/stripe-connect" />+ <Card title="Configuration" href="/rc/references/configuration" />+</CardGroup>diff --git a/apps/docs/rc/references/modules/product-attribute.mdx b/apps/docs/rc/references/modules/product-attribute.mdxnew file mode 100644index 000000000..85123c9a9--- /dev/null+++ b/apps/docs/rc/references/modules/product-attribute.mdx@@ -0,0 +1,111 @@+---+title: "Product Attribute module"+description: "Data models, links, and service methods for the Product Attribute module."+---++The Product Attribute module owns configurable **attributes** and their allowed **values** — the structured properties that describe products (material, color, size, condition, …). Attributes can be global (shared across the catalog) or product-scoped, can be restricted to categories, and — for `multi_select` attributes — can act as **variant axes** backed by Medusa's native global product options.++## Data models++### `ProductAttribute`++Table `product_attribute`, ID prefix `pattr`.++| Field | Type | Notes |+| --- | --- | --- |+| `name` | text | Searchable |+| `handle` | text | Nullable; unique when set; auto-generated for global attributes |+| `description` | text | Nullable |+| `type` | enum | `AttributeType`; immutable after creation |+| `is_required` | boolean | Default `false` |+| `is_filterable` | boolean | Default `false`; filterable attributes are tokenized into the search index |+| `is_variant_axis` | boolean | Default `false`; only valid for `multi_select` |+| `rank` | number | Default `0`; display ordering |+| `is_active` | boolean | Default `true` |+| `product_id` | text | Nullable — `null` means global, set means product-scoped (inline) |+| `product_option_id` | text | Nullable; mirror to the native `ProductOption` for axis attributes |+| `created_by` | text | Nullable |+| `metadata` | json | Nullable |++### `ProductAttributeValue`++Table `product_attribute_value`, ID prefix `pattrval`. Unique on (`attribute_id`, `handle`) when the handle is set.++| Field | Type | Notes |+| --- | --- | --- |+| `name` | text | Display label |+| `handle` | text | Nullable; auto-generated for global select attributes |+| `rank` | number | Default `0` |+| `is_active` | boolean | Default `true` |+| `product_option_value_id` | text | Nullable; mirror to the native `ProductOptionValue` |+| `metadata` | json | Nullable |++## Enums++```ts+enum AttributeType {+ SINGLE_SELECT = "single_select",+ MULTI_SELECT = "multi_select",+ UNIT = "unit",+ TOGGLE = "toggle",+ TEXT = "text",+}+```++## How each type is stored++| Type | Variant axis? | Backing store |+| --- | --- | --- |+| `multi_select` (axis) | yes | Native Medusa `ProductOption` + option values; the product links a subset of values |+| `multi_select` / `single_select` (non-axis) | no | Product ↔ value link rows |+| `text` / `unit` | no | A value record is created for the entered text, then linked |+| `toggle` | no | Two seeded fixed values (`true` / `false`); the matching one is linked |++Only `multi_select` attributes may be variant axes. A global axis maps to a shared (`is_exclusive: false`) product option; an inline, product-scoped axis maps to an exclusive option.++## Links++| Link | Purpose |+| --- | --- |+| `product_category_attribute` | Restricts an attribute to categories (many-to-many) |+| `product_attribute_value_link` | Product ↔ selected values (non-axis selections, and a mirror of axis selections) |+| `scoped_attributes` (read-only) | Product → its product-scoped attributes via `product_id` |+| Option mirror (read-only) | `ProductAttribute.product_option_id` → native `ProductOption` |+| Option-value mirror (read-only) | `ProductAttributeValue.product_option_value_id` → native `ProductOptionValue` |++## Service++`ProductAttributeModuleService` extends `MedusaService` with auto-generated CRUD, plus:++| Method | Behavior |+| --- | --- |+| `createProductAttributes(data)` | Auto-generates handles for global attributes; seeds `true`/`false` values for `toggle` attributes |+| `updateProductAttributes(data)` | Rejects any attempt to change an attribute's `type` |+| `listProductAttributes` / `listAndCountProductAttributes` | Attach `values` only for select/toggle types; other types return `values: []` |+| `createProductAttributeValues(data)` | Auto-generates value handles for global select attributes |++## Attaching attributes to products++Attributes are applied to products through the batch endpoint rather than the module service directly:++```+POST /admin/products/:id/attributes/batch+POST /vendor/products/:id/attributes/batch+```++The body is `{ add?, remove?, update? }`, applied in the order remove → add → update by the `createAndLinkProductAttributesToProductWorkflow`. Product create and update payloads also accept a unified `attributes[]` array.++Product GET responses expose the attribute graph as native `options` (variant axes), `product_attribute_values` (each with its parent `attribute` and, for global selects, `all_values`), and `scoped_attributes`.++## Related endpoints++- `GET/POST /admin/product-attributes`, value sub-routes — catalog management+- `GET /vendor/product-attributes` — category-filtered read access for sellers+- `GET /store/product-attributes` — storefront filter facets++## Next steps++<CardGroup cols={2}>+ <Card title="Product Edit module" href="/rc/references/modules/product-edit" />+ <Card title="Search module" href="/rc/references/modules/search" />+</CardGroup>diff --git a/apps/docs/rc/references/modules/product-edit.mdx b/apps/docs/rc/references/modules/product-edit.mdxnew file mode 100644index 000000000..e17ef9ecd--- /dev/null+++ b/apps/docs/rc/references/modules/product-edit.mdx@@ -0,0 +1,80 @@+---+title: "Product Edit module"+description: "Data models and lifecycle for product change requests on master products."+---++The Product Edit module owns the **product change** — the request/approval record through which sellers propose edits to the shared catalog. Products in Mercur are master records that no seller owns; any seller may request a change to any product, and the operator confirms, declines, or lets the platform auto-confirm it.++## The master products model++A `product` row is a shared catalog entry — it has no owner column. Three rules follow:++- **Selling eligibility** is a separate allowlist: the `product_seller` link. One or more rows restrict the product to those sellers; zero rows mean the product is unrestricted.+- **Creator attribution** lives on the change record (`product_change.created_by` plus a `PRODUCT_ADD` action), and is used only for scoping vendor list views — a seller sees products they created, plus published products not restricted to other sellers.+- **Edits are requests.** Vendor product update endpoints stage a change instead of writing directly; there is no ownership gate on requesting a change.++## Data models++### `ProductChange`++Table `product_change`, ID prefix `prodch`.++| Field | Type | Notes |+| --- | --- | --- |+| `product_id` | text | Target product |+| `status` | enum | `ProductChangeStatus`, default `pending` |+| `created_by` | text | Nullable; requesting actor |+| `internal_note` / `external_note` | text | Nullable |+| `confirmed_by` / `confirmed_at` | text / dateTime | Nullable; audit trail |+| `declined_by` / `declined_at` / `declined_reason` | text / dateTime / text | Nullable |+| `canceled_by` / `canceled_at` | text / dateTime | Nullable |+| `requires_action_by` / `requires_action_at` / `requires_action_reason` | text / dateTime / text | Nullable; "changes requested" state |+| `metadata` | json | Nullable |++Relations: `actions` (one-to-many, deleted with the change).++### `ProductChangeAction`++Table `product_change_action`, ID prefix `prodchact`. The ordered operations a change applies:++| Field | Type | Notes |+| --- | --- | --- |+| `product_id` | text | |+| `ordering` | autoincrement | Apply order |+| `action` | text | Operation type (e.g. `PRODUCT_ADD`, update, variant, attribute operations) |+| `details` | json | Default `{}`; the operation payload |+| `applied` | boolean | Default `false` |+| `internal_note` | text | Nullable |++## Enums++```ts+enum ProductChangeStatus {+ PENDING = "pending",+ CONFIRMED = "confirmed",+ DECLINED = "declined",+ CANCELED = "canceled",+}+```++## Links++| Link | Purpose |+| --- | --- |+| `changes` (read-only) | Product → its change records via `product_id` |++## Service++`ProductChangeModuleService` extends `MedusaService` with auto-generated CRUD only — the lifecycle logic lives in workflows: `createProductChangeWorkflow`, `stageProductChangeWorkflow`, `confirmProductChangeWorkflow`, `autoConfirmProductChangeWorkflow`, `cancelProductChangeWorkflow`, `rejectProductChangeWorkflow`, and the `applyProductChangeActionsWorkflow` family that replays the staged actions onto the product. See [Workflows](/rc/references/workflows#product-edit).++## Related endpoints++- Vendor: `POST /vendor/products/:id` and variant/attribute sub-routes stage changes; `GET /vendor/products/:id/preview` shows the product with pending changes applied; `POST /vendor/products/:id/cancel` withdraws a request.+- Admin: `GET /admin/products/:id/preview`, `POST /admin/products/:id/confirm`, `POST /admin/products/:id/reject`, `POST /admin/products/:id/request-changes`, plus `POST /admin/product-changes/:id/confirm` and `/cancel`.++## Next steps++<CardGroup cols={2}>+ <Card title="Product Attribute module" href="/rc/references/modules/product-attribute" />+ <Card title="Offer module" href="/rc/references/modules/offer" />+</CardGroup>diff --git a/apps/docs/rc/references/modules/search.mdx b/apps/docs/rc/references/modules/search.mdxnew file mode 100644index 000000000..dc7e5c386--- /dev/null+++ b/apps/docs/rc/references/modules/search.mdx@@ -0,0 +1,112 @@+---+title: "Search module"+description: "The provider-agnostic search module, its document shapes, and the provider contract."+---++The Search module is a **provider abstraction**: it owns no data models and wraps exactly one registered search provider behind three verbs — `index`, `remove`, `search`. Mercur ships a default in-process provider built on [Orama](https://oramasearch.com) that requires zero external infrastructure; operators can swap in Algolia, Meilisearch, or anything else by implementing the same contract.++Both **products** (master catalog entries) and **offers** (per-seller listings with offer-scoped prices) are indexed.++## Document shape++```ts+interface SearchDoc {+ id: string+ type: "product" | "offer"+ title: string+ description?: string+ handle: string+ thumbnail?: string+ seller_handle?: string // offers only+ collection_id?: string+ collection?: string+ category_ids?: string[]+ categories?: string[]+ product_id?: string // offers+ variant_id?: string // offers+ sku?: string // offers+ attribute_tokens: string[] // facetable: "attr:<handle>:<value_id>"+ attributes: Record<string, string> // stored label map+ prices: Record<string, SearchDocPrice> // keyed by region_id, stored not indexed+}+```++Prices are **stored, not searched**: each document carries a per-region price map (`calculated_amount`, `original_amount`, `currency_code`), and the provider projects `calculated_price` for the requested region at query time. Suspended sellers' offers and unpublished products are excluded at index time. Attributes flagged `is_filterable` are tokenized into `attribute_tokens` for faceting.++## Query and results++```ts+interface SearchQueryBase {+ q?: string+ limit?: number+ offset?: number+ context?: Record<string, unknown> // pricing/display context, not a filter+ filters?: Record<string, unknown> // provider-owned shape+}++interface SearchResults {+ hits: SearchDoc[]+ count: number+ facets: { collections; categories; attributes } // pre-labelled by the provider+}+```++`filters` is an open passthrough — each provider defines its own filter shape. The built-in Orama provider accepts:++```ts+filters?: {+ type?: "product" | "offer"+ collection_ids?: string[]+ category_ids?: string[]+ seller_handle?: string+ attributes?: Record<string, string[]> // attribute handle -> selected value ids+}+```++## Service++`SearchModuleService` exposes:++| Method | Behavior |+| --- | --- |+| `index(docs)` | Upserts documents into the provider index |+| `remove(ids)` | Removes documents by ID |+| `search(query)` | Runs a query against the provider |+| `getProviderIdentifier()` | Returns the active provider's identifier |++## Provider contract++Implement `AbstractSearchProvider` (exported from the module) and register it via the module's `provider` option. Exactly one provider must be registered — the module throws at boot otherwise. If no provider is configured, the Orama provider registers automatically.++```ts+abstract class AbstractSearchProvider<TQuery extends SearchQueryBase> {+ static identifier: string+ abstract index(docs: SearchDoc[]): Promise<void>+ abstract remove(ids: string[]): Promise<void>+ abstract search(query: TQuery): Promise<SearchResults>+}+```++<Warning>+ The built-in Orama provider holds its index **in process memory**. It starts+ empty, is rebuilt on boot via the reindex event, and does not share state+ across processes. For multi-instance deployments, use an external provider.+</Warning>++## Index synchronization++Sync is event-driven — there are no search workflows:++- Subscribers react to product, offer, and seller changes (`search-product-changed`, `search-product-deleted`, `search-offer-changed`, `search-seller-changed`) and reindex or remove the affected documents.+- A full rebuild runs when the `search.reindex` event (`SEARCH_REINDEX_EVENT`) is emitted; in worker mode the module emits it automatically on application start.++## Related endpoints++`POST /store/search` — the storefront query route. Body: `q`, `limit` (default 12, max 100), `offset`, `region_id` / `country_code` / `province` (pricing context), and the provider-owned `filters`. Responds with `{ hits, count, limit, offset, facets }`. Customer authentication is optional.++## Next steps++<CardGroup cols={2}>+ <Card title="Search integrations" href="/rc/resources/integrations/search" />+ <Card title="Store API" href="/rc/references/api/store" />+</CardGroup>diff --git a/apps/docs/rc/references/modules/seller.mdx b/apps/docs/rc/references/modules/seller.mdxnew file mode 100644index 000000000..0a850c600--- /dev/null+++ b/apps/docs/rc/references/modules/seller.mdx@@ -0,0 +1,175 @@+---+title: "Seller module"+description: "Data models, links, and service methods for the Seller module."+---++The Seller module owns the marketplace vendor domain: the seller entity and its satellite records (professional details, address, payment details), the seller's team (members and pending invites), and the **order group** — the aggregate that binds the per-seller orders created from a single multi-vendor cart.++For the conceptual introduction, see [Sellers](/rc/learn/sellers), [Seller members](/rc/learn/seller-members), and [Order groups](/rc/learn/order-groups).++## Data models++### `Seller`++Table `seller`, ID prefix `sel`.++| Field | Type | Notes |+| --- | --- | --- |+| `id` | text | Primary key |+| `name` | text | Unique, searchable |+| `handle` | text | Unique, URL-friendly; auto-generated from `name` when omitted |+| `email` | text | Unique, searchable |+| `phone` | text | Nullable |+| `description` | text | Nullable |+| `logo` | text | Nullable |+| `banner` | text | Nullable |+| `website_url` | text | Nullable |+| `external_id` | text | Nullable; unique when set |+| `currency_code` | text | The seller's single operating currency |+| `status` | enum | `SellerStatus`, default `pending_approval` |+| `status_reason` | text | Nullable |+| `approved_at` | dateTime | Nullable |+| `rejected_at` | dateTime | Nullable |+| `is_premium` | boolean | Default `false`; operator-set only |+| `closed_from` / `closed_to` | dateTime | Nullable; scheduled closure window |+| `closure_note` | text | Nullable |+| `metadata` | json | Nullable |++Relations: `professional_details`, `address`, and `payment_details` (one-to-one, deleted with the seller), `members` (many-to-many through `SellerMember`), `member_invites` (one-to-many, deleted with the seller).++### `ProfessionalDetails`++Table `professional_details`, ID prefix `selprodet`. Presence of this record marks the seller as a registered business.++| Field | Type |+| --- | --- |+| `corporate_name` | text, nullable |+| `registration_number` | text, nullable |+| `tax_id` | text, nullable |++### `SellerAddress`++Table `seller_address`, ID prefix `seladdr`. Fields: `name`, `company`, `first_name`, `last_name`, `address_1`, `address_2`, `city`, `country_code`, `province`, `postal_code`, `phone`, `metadata` — all nullable.++### `PaymentDetails`++Table `payment_details`, ID prefix `selpaydet`. Fields: `country_code`, `holder_name`, `bank_name`, `iban`, `bic`, `routing_number`, `account_number` — all nullable.++### `Member`++Table `member`, ID prefix `mem`. A member is a dashboard user that can belong to one or more sellers.++| Field | Type | Notes |+| --- | --- | --- |+| `email` | text | Unique, searchable |+| `first_name` / `last_name` | text | Nullable |+| `locale` | text | Nullable |+| `is_active` | boolean | Default `true` |+| `metadata` | json | Nullable |++### `SellerMember`++Table `seller_member`, ID prefix `selmem`. Pivot between `Seller` and `Member`; unique on (`seller_id`, `member_id`).++| Field | Type | Notes |+| --- | --- | --- |+| `role_id` | text | Nullable; resolved against the RBAC roles module |+| `is_owner` | boolean | Default `false` |+| `metadata` | json | Nullable |++### `MemberInvite`++Table `member_invite`, ID prefix `meminv`. Unique on (`email`, `seller_id`) while unaccepted.++| Field | Type | Notes |+| --- | --- | --- |+| `email` | text | Searchable |+| `token` | text | Signed JWT |+| `accepted` | boolean | Default `false` |+| `expires_at` | dateTime | Derived from `invite_valid_duration` |+| `role_id` | text | Role assigned on acceptance |+| `metadata` | json | Nullable |++### `OrderGroup`++Table `order_group`, ID prefix `og`. Created when a multi-vendor cart completes.++| Field | Type | Notes |+| --- | --- | --- |+| `display_id` | autoincrement | Shopper-facing number |+| `cart_id` | text | The originating cart |+| `customer_id` | text | Nullable |+| `seller_count` | number | Computed |+| `total` | bigNumber | Computed across child orders |++## Enums++```ts+enum SellerStatus {+ OPEN = "open",+ PENDING_APPROVAL = "pending_approval",+ SUSPENDED = "suspended",+ TERMINATED = "terminated",+}++enum SellerRole {+ SELLER_ADMINISTRATION = "role_seller_administration",+ INVENTORY_MANAGEMENT = "role_seller_inventory_management",+ ORDER_MANAGEMENT = "role_seller_order_management",+ ACCOUNTING = "role_seller_accounting",+ SUPPORT = "role_seller_support",+}+```++## Links++The seller is the anchor of the marketplace graph. Nearly every seller-scoped resource is connected through a module link rather than a foreign key:++| Linked entity | Cardinality | Purpose |+| --- | --- | --- |+| `Product.product` | many-to-many (`product_seller`) | Selling-eligibility allowlist for [master products](/rc/references/modules/product-edit) |+| `Order.order` | one seller — many orders | Per-seller child orders |+| `Payout.payout` | one seller — many payouts | Settlements |+| `Payout.payoutAccount` | one-to-one | The seller's provider account |+| `Pricing.priceList` | one seller — many lists | Vendor price lists |+| `Promotion.promotion` / `Promotion.campaign` | one seller — many | Vendor promotions and campaigns |+| `Inventory.inventoryItem` | one seller — many items | Vendor inventory |+| `StockLocation.stockLocation` | one seller — many | Vendor locations |+| `Fulfillment.shippingProfile` / `shippingOption` / `fulfillmentSet` / `serviceZone` | one seller — many | Vendor shipping setup |+| `Customer.customer` / `customerGroup` | many-to-many / one seller — many | Vendor customer base |+| `Product.productCategory` | many-to-many | Categories a seller may sell in |++Order groups carry two additional links: a read-only link to the originating `Cart` (via `cart_id`) and a list link to the child `Order` records (table `order_group_order`). The `SellerMember.role_id` field is a read-only link into the RBAC roles module.++## Service++`SellerModuleService` extends `MedusaService` with auto-generated CRUD for all models above, plus:++| Method | Behavior |+| --- | --- |+| `createSellers(data)` / `updateSellers(data)` | Validates the handle and auto-generates it from `name` when missing |+| `upsertMembers(data)` | Dedupes by email, creates missing members, backfills empty names; returns members in input order |+| `createMemberInvites(data)` | Rejects emails that already belong to the seller; issues a JWT token with an expiry |+| `validateMemberInviteToken(token)` | Verifies the JWT and rejects accepted or expired invites |+| `listOrderGroups` / `listAndCountOrderGroups` / `retrieveOrderGroup` | Custom repository-backed reads that resolve the computed `seller_count` and `total` fields |++## Module options++| Option | Type | Default | Purpose |+| --- | --- | --- | --- |+| `invite_valid_duration` | number (seconds) | 7 days | Member invite lifetime |+| `jwt_secret` | string | project `http.jwtSecret` | Signs invite tokens |+| `vendor_url` | string | `MERCUR_VENDOR_URL` env var | Vendor dashboard base URL used in invite links |++## Related endpoints++- [Admin API — sellers, members, order groups](/rc/references/api/admin)+- [Vendor API — sellers, members](/rc/references/api/vendor)+- [Store API — public seller storefronts](/rc/references/api/store)++## Next steps++<CardGroup cols={2}>+ <Card title="Commission module" href="/rc/references/modules/commission" />+ <Card title="Payout module" href="/rc/references/modules/payout" />+</CardGroup>diff --git a/apps/docs/rc/references/overview.mdx b/apps/docs/rc/references/overview.mdxnew file mode 100644index 000000000..6a31bc2ee--- /dev/null+++ b/apps/docs/rc/references/overview.mdx@@ -0,0 +1,70 @@+---+title: "References"+description: "Technical references for Mercur's modules, HTTP APIs, workflows, and configuration."+---++This section is the technical contract of the Mercur core plugin. Where the [Learn](/rc/learn/introduction) tab explains concepts, these pages document the exact surface: data models and their fields, module links, service methods, HTTP routes, workflow names, and configuration options.++## Modules++Every marketplace capability ships as a Medusa module inside `@mercurjs/core`. Each reference covers the module's data models, enums, links to Medusa core entities, service methods, and options.++<CardGroup cols={3}>+ <Card title="Seller" href="/rc/references/modules/seller">+ Sellers, members, invites, and order groups.+ </Card>+ <Card title="Commission" href="/rc/references/modules/commission">+ Commission rates, rules, and per-order commission lines.+ </Card>+ <Card title="Payout" href="/rc/references/modules/payout">+ Payout accounts, onboarding, payouts, and the provider interface.+ </Card>+ <Card title="Offer" href="/rc/references/modules/offer">+ Per-seller listings binding a variant to SKU, price, and inventory.+ </Card>+ <Card title="Product Attribute" href="/rc/references/modules/product-attribute">+ Configurable attributes, values, and variant axes on native product options.+ </Card>+ <Card title="Product Edit" href="/rc/references/modules/product-edit">+ Product change requests and the approval queue.+ </Card>+ <Card title="Media" href="/rc/references/modules/media">+ Image galleries, thumbnails, banners, and icons for categories and collections.+ </Card>+ <Card title="Search" href="/rc/references/modules/search">+ Provider-agnostic search with the built-in Orama provider.+ </Card>+ <Card title="Custom Fields" href="/rc/references/modules/custom-fields">+ Extra columns on any entity without a custom module.+ </Card>+</CardGroup>++## HTTP API++Mercur extends the Medusa server with three route surfaces. Start with the conventions page — authentication, seller scoping, and pagination work the same way across all of them.++<CardGroup cols={2}>+ <Card title="API conventions" href="/rc/references/api/conventions">+ Authentication, seller scoping, pagination, field selection, and webhooks.+ </Card>+ <Card title="Admin API" href="/rc/references/api/admin">+ Operator routes under <code>/admin/*</code>.+ </Card>+ <Card title="Vendor API" href="/rc/references/api/vendor">+ Seller-scoped routes under <code>/vendor/*</code>.+ </Card>+ <Card title="Store API" href="/rc/references/api/store">+ Storefront routes under <code>/store/*</code>.+ </Card>+</CardGroup>++## Workflows and configuration++<CardGroup cols={2}>+ <Card title="Workflows" href="/rc/references/workflows">+ Every workflow exported by <code>@mercurjs/core</code>, grouped by domain.+ </Card>+ <Card title="Configuration" href="/rc/references/configuration">+ <code>withMercur()</code>, environment variables, and provider options.+ </Card>+</CardGroup>diff --git a/apps/docs/rc/references/workflows/cart/add-seller-shipping-method-to-cart.mdx b/apps/docs/rc/references/workflows/cart/add-seller-shipping-method-to-cart.mdxnew file mode 100644index 000000000..8b556dee1--- /dev/null+++ b/apps/docs/rc/references/workflows/cart/add-seller-shipping-method-to-cart.mdx@@ -0,0 +1,44 @@+---+title: "addSellerShippingMethodToCartWorkflow"+description: "Add shipping methods to a cart, replacing only the same seller's existing methods."+---++Seller-aware variant of Medusa's `addShippingMethodToCartWorkflow`. Validates the requested options against the cart and their calculated prices, then swaps shipping methods per seller: existing methods belonging to the sellers whose options are being added are removed, while other sellers' methods stay untouched — so a multi-seller cart keeps one shipping method per seller. Refreshes cart items afterwards and emits `cart.updated`. Triggered by `POST /store/carts/:id/shipping-methods`.++## Usage++```ts+import { addSellerShippingMethodToCartWorkflow } from "@mercurjs/core/workflows"++await addSellerShippingMethodToCartWorkflow(container).run({+ input: {+ cart_id: "cart_123",+ options: [{ id: "so_123" }],+ },+})+```++## Input++<ParamField body="cart_id" type="string" required>The cart to add shipping methods to.</ParamField>+<ParamField body="options" type="object[]" required>Shipping options to add as methods.+ <Expandable title="properties">+ <ParamField body="id" type="string" required>The shipping option ID; must have a calculated price for the cart.</ParamField>+ <ParamField body="data" type="object">Custom method data validated by the fulfillment provider.</ParamField>+ </Expandable>+</ParamField>+<ParamField body="additional_data" type="object">Custom data passed through to the workflow hooks.</ParamField>++## Result++<ResponseField name="result" type="void">No return value; the cart's shipping methods are replaced per seller as a side effect.</ResponseField>++## Hooks++- `validate` — runs after the cart is loaded with `{ input, cart }`.++```ts+addSellerShippingMethodToCartWorkflow.hooks.validate(async ({ input, cart }) => {+ // throw to reject the shipping method+})+```diff --git a/apps/docs/rc/references/workflows/cart/complete-cart-with-split-orders.mdx b/apps/docs/rc/references/workflows/cart/complete-cart-with-split-orders.mdxnew file mode 100644index 000000000..d05ff3317--- /dev/null+++ b/apps/docs/rc/references/workflows/cart/complete-cart-with-split-orders.mdx@@ -0,0 +1,36 @@+---+title: "completeCartWithSplitOrdersWorkflow"+description: "Complete a multi-seller cart by splitting it into per-seller orders under an order group."+---++Mercur's replacement for Medusa's `completeCartWorkflow` and the heart of multi-vendor checkout. It groups the cart's items by the seller behind each item's offer, creates one order per seller (each carrying only that seller's items, shipping methods, addresses, and promotion adjustments), and wraps them in a single `OrderGroup` the shopper tracks as one purchase. Along the way it validates seller items and shipping coverage, mirrors line-item ↔ offer links onto the new order items, reserves offer inventory, registers promotion usage, links orders to the cart, sellers, payment collection, and order group, authorizes the single payment session, distributes captured amounts proportionally as order transactions, and refreshes each order's commission lines via `refreshOrderCommissionLinesWorkflow`. The run is idempotent per cart — an existing order group for the cart is returned instead of re-creating orders. Emits `order.placed` (one entry per child order) and `order_group.created`. Triggered by `POST /store/carts/:id/complete`.++## Usage++```ts+import { completeCartWithSplitOrdersWorkflow } from "@mercurjs/core/workflows"++const { result } = await completeCartWithSplitOrdersWorkflow(container).run({+ input: { cart_id: "cart_123" },+})+```++## Input++<ParamField body="cart_id" type="string" required>The cart to complete; must have an authorized-able payment session and seller-scoped shipping methods covering every seller in the cart.</ParamField>++## Result++<ResponseField name="result.order_group_id" type="string">ID of the order group wrapping the per-seller orders — either newly created or the one already created for this cart.</ResponseField>++## Hooks++- `validate` — runs after the cart is loaded (before any orders are created) with `{ input, cart }`.+- `beforePaymentAuthorization` — runs after orders and links are created, right before the payment session is authorized, with `{ input }`.+- `orderGroupCreated` — runs at the end of the creation branch with `{ order_group_id, cart_id }`.++```ts+completeCartWithSplitOrdersWorkflow.hooks.validate(async ({ input, cart }) => {+ // throw to block checkout+})+```diff --git a/apps/docs/rc/references/workflows/cart/list-seller-shipping-options-for-cart.mdx b/apps/docs/rc/references/workflows/cart/list-seller-shipping-options-for-cart.mdxnew file mode 100644index 000000000..0aa40f075--- /dev/null+++ b/apps/docs/rc/references/workflows/cart/list-seller-shipping-options-for-cart.mdx@@ -0,0 +1,39 @@+---+title: "listSellerShippingOptionsForCartWorkflow"+description: "List available shipping options for a cart, grouped by seller."+---++Resolves the sellers behind the cart's offers, finds their stock locations valid for the cart's sales channel, and queries shipping options in those locations' fulfillment sets with cart-scoped pricing. Each option carries its calculated `amount`, `is_tax_inclusive`, and an `insufficient_inventory` flag when the seller's location can't cover the cart quantities. Options are translated to the cart locale and returned keyed by seller ID. Triggered by `GET /store/shipping-options`.++## Usage++```ts+import { listSellerShippingOptionsForCartWorkflow } from "@mercurjs/core/workflows"++const { result } = await listSellerShippingOptionsForCartWorkflow(container).run({+ input: { cart_id: "cart_123" },+})+```++## Input++<ParamField body="cart_id" type="string" required>The cart to list options for; must have `sales_channel_id`, `region_id`, and `currency_code` set.</ParamField>+<ParamField body="is_return" type="boolean">List return shipping options instead; defaults to `false`.</ParamField>+<ParamField body="enabled_in_store" type="boolean">Only options enabled in the storefront; defaults to `true`.</ParamField>+<ParamField body="fields" type="string[]">Extra shipping-option fields to retrieve on top of the defaults.</ParamField>+<ParamField body="additional_data" type="object">Custom data passed through to the workflow hooks.</ParamField>++## Result++<ResponseField name="result" type="Record<string, ShippingOptionDTO[]>">Map of seller ID to that seller's priced shipping options, each extended with `amount`, `is_tax_inclusive`, and `insufficient_inventory`.</ResponseField>++## Hooks++- `setPricingContext` — runs with `{ cart, fulfillmentSetIds, additional_data }`; return a record to merge into the price calculation context.+- `setShippingOptionsContext` — runs with the same payload; return a record to merge into the shipping-option rule context.++```ts+listSellerShippingOptionsForCartWorkflow.hooks.setPricingContext(async ({ cart }) => {+ return { customer_tier: "vip" }+})+```diff --git a/apps/docs/rc/references/workflows/cart/update-cart-seller-promotions.mdx b/apps/docs/rc/references/workflows/cart/update-cart-seller-promotions.mdxnew file mode 100644index 000000000..ff1fde74d--- /dev/null+++ b/apps/docs/rc/references/workflows/cart/update-cart-seller-promotions.mdx@@ -0,0 +1,42 @@+---+title: "updateCartSellerPromotionsWorkflow"+description: "Apply, remove, or replace promotion codes on a cart with seller-scoped adjustments."+---++Seller-aware variant of Medusa's `updateCartPromotionsWorkflow`. Computes promotion actions for the requested codes, then prepares line-item and shipping-method adjustments so each promotion only discounts the owning seller's items, before creating/removing adjustments and syncing the cart's applied promotions. Optionally refreshes the payment collection. Triggered by `POST /store/carts/:id/promotions`.++## Usage++```ts+import { updateCartSellerPromotionsWorkflow } from "@mercurjs/core/workflows"++await updateCartSellerPromotionsWorkflow(container).run({+ input: {+ cart_id: "cart_123",+ promo_codes: ["SUMMER10"],+ action: "add",+ },+})+```++## Input++<ParamField body="cart_id" type="string" required>The cart to update promotions on.</ParamField>+<ParamField body="promo_codes" type="string[]">Promotion codes to apply; defaults to `[]`.</ParamField>+<ParamField body="action" type="string">One of `add`, `remove`, `replace`; defaults to `add`.</ParamField>+<ParamField body="cart" type="object">Preloaded cart data; skips the internal cart fetch when provided.</ParamField>+<ParamField body="force_refresh_payment_collection" type="boolean">Refresh the cart's payment collection after adjustments change.</ParamField>++## Result++<ResponseField name="result" type="void">No return value; the cart's adjustments and applied promotions are updated as a side effect.</ResponseField>++## Hooks++- `validate` — runs after the cart is loaded with `{ input, cart }`.++```ts+updateCartSellerPromotionsWorkflow.hooks.validate(async ({ input, cart }) => {+ // throw to reject the promotion change+})+```diff --git a/apps/docs/rc/references/workflows/commission/batch-commission-rules.mdx b/apps/docs/rc/references/workflows/commission/batch-commission-rules.mdxnew file mode 100644index 000000000..07fb42ec6--- /dev/null+++ b/apps/docs/rc/references/workflows/commission/batch-commission-rules.mdx@@ -0,0 +1,45 @@+---+title: "batchCommissionRulesWorkflow"+description: "Create, update, and delete a commission rate's rules in one call."+---++Runs create, update, and delete operations on a commission rate's rules in parallel. Rules bind a rate to a reference (e.g. a seller, category, or product type) so the rate applies when an order line matches. Triggered by `POST /admin/commission-rates/:id/rules`.++## Usage++```ts+import { batchCommissionRulesWorkflow } from "@mercurjs/core/workflows"++const { result } = await batchCommissionRulesWorkflow(container).run({+ input: {+ commission_rate_id: "comrate_123",+ create: [{ reference: "seller", reference_id: "sel_123" }],+ update: [{ id: "comrule_456", reference_id: "sel_789" }],+ delete: ["comrule_999"],+ },+})+```++## Input++<ParamField body="commission_rate_id" type="string" required>The commission rate the rules belong to.</ParamField>+<ParamField body="create" type="object[]">Rules to create.+ <Expandable title="properties">+ <ParamField body="reference" type="string" required>Entity type the rule targets (e.g. `seller`, `product_category`, `product_type`).</ParamField>+ <ParamField body="reference_id" type="string" required>ID of the referenced entity.</ParamField>+ </Expandable>+</ParamField>+<ParamField body="update" type="object[]">Rules to update.+ <Expandable title="properties">+ <ParamField body="id" type="string" required>The rule to update.</ParamField>+ <ParamField body="reference" type="string">New reference type.</ParamField>+ <ParamField body="reference_id" type="string">New referenced entity ID.</ParamField>+ </Expandable>+</ParamField>+<ParamField body="delete" type="string[]">IDs of rules to delete.</ParamField>++## Result++<ResponseField name="result.created" type="CommissionRuleDTO[]">The created rules.</ResponseField>+<ResponseField name="result.updated" type="CommissionRuleDTO[]">The updated rules.</ResponseField>+<ResponseField name="result.deleted" type="string[]">IDs of the deleted rules.</ResponseField>diff --git a/apps/docs/rc/references/workflows/commission/create-commission-rates.mdx b/apps/docs/rc/references/workflows/commission/create-commission-rates.mdxnew file mode 100644index 000000000..5e391ef18--- /dev/null+++ b/apps/docs/rc/references/workflows/commission/create-commission-rates.mdx@@ -0,0 +1,41 @@+---+title: "createCommissionRatesWorkflow"+description: "Create one or more commission rates."+---++Creates commission rates — the fee definitions (flat or percentage) applied to seller orders. A unique `code` is auto-generated from the name when not provided. Triggered by `POST /admin/commission-rates`.++## Usage++```ts+import { createCommissionRatesWorkflow } from "@mercurjs/core/workflows"++const { result } = await createCommissionRatesWorkflow(container).run({+ input: [+ {+ name: "Default commission",+ type: "percentage",+ value: 10,+ is_default: true,+ },+ ],+})+```++## Input++The input is an array of commission rates to create.++<ParamField body="name" type="string" required>Display name of the rate.</ParamField>+<ParamField body="type" type="string" required>One of `fixed`, `percentage`.</ParamField>+<ParamField body="value" type="number" required>Rate value — a percentage for `percentage`, an amount for `fixed`.</ParamField>+<ParamField body="code" type="string">Unique code; auto-generated from the name when omitted.</ParamField>+<ParamField body="currency_code" type="string | null">Currency of a `fixed` rate.</ParamField>+<ParamField body="include_tax" type="boolean">Include tax totals in the commission base.</ParamField>+<ParamField body="include_shipping" type="boolean">Also apply the rate to shipping methods.</ParamField>+<ParamField body="is_enabled" type="boolean">Whether the rate is active.</ParamField>+<ParamField body="is_default" type="boolean">Marks the rate as the platform-wide fallback.</ParamField>++## Result++<ResponseField name="result" type="CommissionRateDTO[]">The created commission rates.</ResponseField>diff --git a/apps/docs/rc/references/workflows/commission/delete-commission-rates.mdx b/apps/docs/rc/references/workflows/commission/delete-commission-rates.mdxnew file mode 100644index 000000000..2a26bb61b--- /dev/null+++ b/apps/docs/rc/references/workflows/commission/delete-commission-rates.mdx@@ -0,0 +1,34 @@+---+title: "deleteCommissionRatesWorkflow"+description: "Soft-delete commission rates after validating they can be removed."+---++Validates the rates are deletable, then soft-deletes them. Deletion is reversible on workflow failure (compensation restores the rates). Triggered by `DELETE /admin/commission-rates/:id`.++## Usage++```ts+import { deleteCommissionRatesWorkflow } from "@mercurjs/core/workflows"++await deleteCommissionRatesWorkflow(container).run({+ input: { ids: ["comrate_123"] },+})+```++## Input++<ParamField body="ids" type="string[]" required>IDs of the commission rates to delete.</ParamField>++## Result++<ResponseField name="result" type="void">No return value; the rates are soft-deleted.</ResponseField>++## Hooks++- `commissionRatesDeleted` — runs after deletion with `{ ids }`.++```ts+deleteCommissionRatesWorkflow.hooks.commissionRatesDeleted(async ({ ids }) => {+ // react to deleted rates+})+```diff --git a/apps/docs/rc/references/workflows/commission/refresh-order-commission-lines.mdx b/apps/docs/rc/references/workflows/commission/refresh-order-commission-lines.mdxnew file mode 100644index 000000000..db999348b--- /dev/null+++ b/apps/docs/rc/references/workflows/commission/refresh-order-commission-lines.mdx@@ -0,0 +1,30 @@+---+title: "refreshOrderCommissionLinesWorkflow"+description: "Recompute the commission lines for one or more orders."+---++Loads each order with its items, products, sellers, and shipping methods, evaluates the matching commission rates, and upserts a commission line per item and shipping method (delete-then-insert, so re-running is idempotent). Runs inside `completeCartWithSplitOrdersWorkflow` after orders are created, and again from the `order-edit-confirmed` subscriber on order edits, returns, claims, and exchanges.++## Usage++```ts+import { refreshOrderCommissionLinesWorkflow } from "@mercurjs/core/workflows"++const { result } = await refreshOrderCommissionLinesWorkflow(container).run({+ input: { order_ids: ["order_123"] },+})+```++## Input++<ParamField body="order_ids" type="string[]" required>IDs of the orders to recompute commission lines for; fails if any order is not found.</ParamField>++## Result++<ResponseField name="result" type="CommissionLineDTO[]">The upserted commission lines.</ResponseField>+<ResponseField name="result[].item_id" type="string | null">The order line item the commission applies to.</ResponseField>+<ResponseField name="result[].shipping_method_id" type="string | null">The shipping method the commission applies to.</ResponseField>+<ResponseField name="result[].commission_rate_id" type="string | null">The rate that produced the line.</ResponseField>+<ResponseField name="result[].code" type="string">Code of the applied rate.</ResponseField>+<ResponseField name="result[].rate" type="number">Rate value applied.</ResponseField>+<ResponseField name="result[].amount" type="number">Commission amount in the order currency.</ResponseField>diff --git a/apps/docs/rc/references/workflows/commission/update-commission-rates.mdx b/apps/docs/rc/references/workflows/commission/update-commission-rates.mdxnew file mode 100644index 000000000..9e48cf320--- /dev/null+++ b/apps/docs/rc/references/workflows/commission/update-commission-rates.mdx@@ -0,0 +1,35 @@+---+title: "updateCommissionRatesWorkflow"+description: "Update one or more commission rates."+---++Applies partial updates to existing commission rates by ID. Triggered by `POST /admin/commission-rates/:id`.++## Usage++```ts+import { updateCommissionRatesWorkflow } from "@mercurjs/core/workflows"++const { result } = await updateCommissionRatesWorkflow(container).run({+ input: [{ id: "comrate_123", value: 12, is_enabled: true }],+})+```++## Input++The input is an array of commission rate updates.++<ParamField body="id" type="string" required>The commission rate to update.</ParamField>+<ParamField body="name" type="string">Display name of the rate.</ParamField>+<ParamField body="code" type="string">Unique code of the rate.</ParamField>+<ParamField body="type" type="string">One of `fixed`, `percentage`.</ParamField>+<ParamField body="value" type="number">Rate value — a percentage for `percentage`, an amount for `fixed`.</ParamField>+<ParamField body="currency_code" type="string | null">Currency of a `fixed` rate.</ParamField>+<ParamField body="include_tax" type="boolean">Include tax totals in the commission base.</ParamField>+<ParamField body="include_shipping" type="boolean">Also apply the rate to shipping methods.</ParamField>+<ParamField body="is_enabled" type="boolean">Whether the rate is active.</ParamField>+<ParamField body="is_default" type="boolean">Marks the rate as the platform-wide fallback.</ParamField>++## Result++<ResponseField name="result" type="CommissionRateDTO[]">The updated commission rates.</ResponseField>diff --git a/apps/docs/rc/references/workflows/media/set-category-images.mdx b/apps/docs/rc/references/workflows/media/set-category-images.mdxnew file mode 100644index 000000000..ea812792e--- /dev/null+++ b/apps/docs/rc/references/workflows/media/set-category-images.mdx@@ -0,0 +1,41 @@+---+title: "setCategoryImagesWorkflow"+description: "Replace a category's media gallery and icon, enforcing single thumbnail/banner."+---++Replaces a product category's media. When `media` is provided, the entire existing gallery is swapped for the new list; when `icon` is provided, the existing icon image is swapped (pass `null` to clear it). Omitted fields are left untouched. At most one image keeps `is_thumbnail` and one keeps `is_banner` — the first flagged entry wins and later flags are silently dropped. Usually invoked through the `createProductCategoryWithImagesWorkflow`, `updateProductCategoryWithImagesWorkflow`, and `deleteProductCategoryWithImagesWorkflow` wrappers behind the `/admin/product-categories` routes.++## Usage++```ts+import { setCategoryImagesWorkflow } from "@mercurjs/core/workflows"++await setCategoryImagesWorkflow(container).run({+ input: {+ category_id: "pcat_123",+ media: [+ { url: "https://cdn.example.com/hero.jpg", is_banner: true },+ { url: "https://cdn.example.com/thumb.jpg", is_thumbnail: true },+ ],+ icon: "https://cdn.example.com/icon.svg",+ },+})+```++## Input++<ParamField body="category_id" type="string" required>The category whose images are replaced.</ParamField>+<ParamField body="media" type="CategoryMediaInput[]">+ New gallery; replaces all existing non-icon images (pass `[]` to clear).+ <Expandable title="properties">+ <ParamField body="url" type="string" required>Public URL of the image.</ParamField>+ <ParamField body="is_thumbnail" type="boolean">Mark as the thumbnail; only the first flagged image is honoured.</ParamField>+ <ParamField body="is_banner" type="boolean">Mark as the banner; only the first flagged image is honoured.</ParamField>+ <ParamField body="rank" type="number">Sort rank; defaults to the array index.</ParamField>+ </Expandable>+</ParamField>+<ParamField body="icon" type="string | null">New icon URL; `null` removes the current icon, omit to keep it.</ParamField>++## Result++<ResponseField name="result" type="void">No return value.</ResponseField>diff --git a/apps/docs/rc/references/workflows/media/set-collection-images.mdx b/apps/docs/rc/references/workflows/media/set-collection-images.mdxnew file mode 100644index 000000000..bff6cdf11--- /dev/null+++ b/apps/docs/rc/references/workflows/media/set-collection-images.mdx@@ -0,0 +1,41 @@+---+title: "setCollectionImagesWorkflow"+description: "Replace a collection's media gallery and icon, enforcing single thumbnail/banner."+---++Replaces a product collection's media. When `media` is provided, the entire existing gallery is swapped for the new list; when `icon` is provided, the existing icon image is swapped (pass `null` to clear it). Omitted fields are left untouched. At most one image keeps `is_thumbnail` and one keeps `is_banner` — the first flagged entry wins and later flags are silently dropped. Usually invoked through the `createProductCollectionWithImagesWorkflow`, `updateProductCollectionWithImagesWorkflow`, and `deleteProductCollectionWithImagesWorkflow` wrappers behind the `/admin/collections` routes.++## Usage++```ts+import { setCollectionImagesWorkflow } from "@mercurjs/core/workflows"++await setCollectionImagesWorkflow(container).run({+ input: {+ collection_id: "pcol_123",+ media: [+ { url: "https://cdn.example.com/hero.jpg", is_banner: true },+ { url: "https://cdn.example.com/thumb.jpg", is_thumbnail: true },+ ],+ icon: "https://cdn.example.com/icon.svg",+ },+})+```++## Input++<ParamField body="collection_id" type="string" required>The collection whose images are replaced.</ParamField>+<ParamField body="media" type="CollectionMediaInput[]">+ New gallery; replaces all existing non-icon images (pass `[]` to clear).+ <Expandable title="properties">+ <ParamField body="url" type="string" required>Public URL of the image.</ParamField>+ <ParamField body="is_thumbnail" type="boolean">Mark as the thumbnail; only the first flagged image is honoured.</ParamField>+ <ParamField body="is_banner" type="boolean">Mark as the banner; only the first flagged image is honoured.</ParamField>+ <ParamField body="rank" type="number">Sort rank; defaults to the array index.</ParamField>+ </Expandable>+</ParamField>+<ParamField body="icon" type="string | null">New icon URL; `null` removes the current icon, omit to keep it.</ParamField>++## Result++<ResponseField name="result" type="void">No return value.</ResponseField>diff --git a/apps/docs/rc/references/workflows/member/accept-member-invite.mdx b/apps/docs/rc/references/workflows/member/accept-member-invite.mdxnew file mode 100644index 000000000..88d49c882--- /dev/null+++ b/apps/docs/rc/references/workflows/member/accept-member-invite.mdx@@ -0,0 +1,33 @@+---+title: "acceptMemberInviteWorkflow"+description: "Redeem an invite token and join a seller's team."+---++Validates the invite token, upserts the member by the invited email, links them to the seller with the invited role (as owner if the seller has none yet), binds the auth identity when the member is new, and deletes the consumed invite. Triggered by `POST /vendor/members/invites/accept`. Emits `member_invite.accepted`.++## Usage++```ts+import { acceptMemberInviteWorkflow } from "@mercurjs/core/workflows"++const { result } = await acceptMemberInviteWorkflow(container).run({+ input: {+ invite_token: "eyJhbGciOi...",+ auth_identity_id: "authid_123",+ first_name: "Jane",+ last_name: "Doe",+ },+})+```++## Input++<ParamField body="invite_token" type="string" required>Signed invite token from the invitation link.</ParamField>+<ParamField body="auth_identity_id" type="string" required>Auth identity of the accepting user.</ParamField>+<ParamField body="member_id" type="string">Existing member id; when set, no auth metadata is written.</ParamField>+<ParamField body="first_name" type="string">First name for a newly created member.</ParamField>+<ParamField body="last_name" type="string">Last name for a newly created member.</ParamField>++## Result++<ResponseField name="result" type="MemberDTO">The member linked to the seller.</ResponseField>diff --git a/apps/docs/rc/references/workflows/member/add-seller-member.mdx b/apps/docs/rc/references/workflows/member/add-seller-member.mdxnew file mode 100644index 000000000..6f59c585d--- /dev/null+++ b/apps/docs/rc/references/workflows/member/add-seller-member.mdx@@ -0,0 +1,30 @@+---+title: "addSellerMemberWorkflow"+description: "Attach an existing member to a seller with a role."+---++Creates a seller-member link between an existing member and a seller with the given role. Triggered by `POST /admin/sellers/:id/members` and `POST /vendor/sellers/:id/members`. Emits `seller_member.created`.++## Usage++```ts+import { addSellerMemberWorkflow } from "@mercurjs/core/workflows"++const { result } = await addSellerMemberWorkflow(container).run({+ input: {+ seller_id: "sel_123",+ member_id: "mem_123",+ role_id: "role_seller_support",+ },+})+```++## Input++<ParamField body="seller_id" type="string" required>Id of the seller.</ParamField>+<ParamField body="member_id" type="string" required>Id of the member to attach.</ParamField>+<ParamField body="role_id" type="string" required>Role to assign, e.g. `role_seller_administration`, `role_seller_support`.</ParamField>++## Result++<ResponseField name="result" type="SellerMemberDTO">The created seller-member link.</ResponseField>diff --git a/apps/docs/rc/references/workflows/member/create-member-invites.mdx b/apps/docs/rc/references/workflows/member/create-member-invites.mdxnew file mode 100644index 000000000..4463212a4--- /dev/null+++ b/apps/docs/rc/references/workflows/member/create-member-invites.mdx@@ -0,0 +1,34 @@+---+title: "createMemberInvitesWorkflow"+description: "Create tokenized member invitations for sellers."+---++Creates invite records with a signed token and expiry for each entry. Triggered by `POST /admin/sellers/:id/members/invite` and the vendor invite routes; also run as a step by `createSellersWorkflow` for the initial member. Emits `member_invite.created` with `{ id, token, expires_at }` per invite, which typically drives the invitation email.++## Usage++```ts+import { createMemberInvitesWorkflow } from "@mercurjs/core/workflows"++const { result } = await createMemberInvitesWorkflow(container).run({+ input: [+ {+ seller_id: "sel_123",+ email: "[email protected]",+ role_id: "role_seller_support",+ },+ ],+})+```++## Input++The input is an array of invites.++<ParamField body="[].seller_id" type="string" required>Seller the invite belongs to.</ParamField>+<ParamField body="[].email" type="string" required>Email of the invitee.</ParamField>+<ParamField body="[].role_id" type="string" required>Role the invitee receives on acceptance.</ParamField>++## Result++<ResponseField name="result" type="MemberInviteDTO[]">The created invites, including `token` and `expires_at`.</ResponseField>diff --git a/apps/docs/rc/references/workflows/member/delete-member-invite.mdx b/apps/docs/rc/references/workflows/member/delete-member-invite.mdxnew file mode 100644index 000000000..a404ec4a8--- /dev/null+++ b/apps/docs/rc/references/workflows/member/delete-member-invite.mdx@@ -0,0 +1,24 @@+---+title: "deleteMemberInviteWorkflow"+description: "Delete a pending member invite."+---++Deletes the invite so its token can no longer be redeemed. Triggered by `DELETE /admin/sellers/:id/members/invites/:invite_id` and the vendor equivalent.++## Usage++```ts+import { deleteMemberInviteWorkflow } from "@mercurjs/core/workflows"++await deleteMemberInviteWorkflow(container).run({+ input: { invite_id: "meminv_123" },+})+```++## Input++<ParamField body="invite_id" type="string" required>Id of the invite to delete.</ParamField>++## Result++<ResponseField name="result" type="void">Nothing is returned.</ResponseField>diff --git a/apps/docs/rc/references/workflows/member/remove-seller-member.mdx b/apps/docs/rc/references/workflows/member/remove-seller-member.mdxnew file mode 100644index 000000000..5efc4a659--- /dev/null+++ b/apps/docs/rc/references/workflows/member/remove-seller-member.mdx@@ -0,0 +1,28 @@+---+title: "removeSellerMemberWorkflow"+description: "Remove a member from a seller's team."+---++Validates the seller-member link can be removed (owners cannot be removed), then deletes it. Triggered by `DELETE /admin/sellers/:id/members/:member_id` and `DELETE /vendor/sellers/:id/members/:member_id`. Emits `seller_member.deleted`.++## Usage++```ts+import { removeSellerMemberWorkflow } from "@mercurjs/core/workflows"++await removeSellerMemberWorkflow(container).run({+ input: {+ seller_member_id: "selmem_123",+ seller_id: "sel_123",+ },+})+```++## Input++<ParamField body="seller_member_id" type="string" required>Id of the seller-member link to delete.</ParamField>+<ParamField body="seller_id" type="string" required>Id of the seller, included in the emitted event.</ParamField>++## Result++<ResponseField name="result" type="void">Nothing is returned.</ResponseField>diff --git a/apps/docs/rc/references/workflows/member/resend-member-invite.mdx b/apps/docs/rc/references/workflows/member/resend-member-invite.mdxnew file mode 100644index 000000000..40da9153b--- /dev/null+++ b/apps/docs/rc/references/workflows/member/resend-member-invite.mdx@@ -0,0 +1,28 @@+---+title: "resendMemberInviteWorkflow"+description: "Re-issue a member invite with a fresh token."+---++Loads the existing invite, deletes it, and creates a new one with the same email and role — resetting the token and expiry. Triggered by `POST /admin/sellers/:id/members/invites/:invite_id/resend` and the vendor equivalent. Emits `member_invite.created` for the new invite.++## Usage++```ts+import { resendMemberInviteWorkflow } from "@mercurjs/core/workflows"++const { result } = await resendMemberInviteWorkflow(container).run({+ input: {+ invite_id: "meminv_123",+ seller_id: "sel_123",+ },+})+```++## Input++<ParamField body="invite_id" type="string" required>Id of the invite to re-issue; must belong to the seller.</ParamField>+<ParamField body="seller_id" type="string" required>Seller the invite belongs to.</ParamField>++## Result++<ResponseField name="result" type="MemberInviteDTO[]">The re-created invite (single-element array) with a new `token` and `expires_at`.</ResponseField>diff --git a/apps/docs/rc/references/workflows/member/update-member-role.mdx b/apps/docs/rc/references/workflows/member/update-member-role.mdxnew file mode 100644index 000000000..9491432b0--- /dev/null+++ b/apps/docs/rc/references/workflows/member/update-member-role.mdx@@ -0,0 +1,28 @@+---+title: "updateMemberRoleWorkflow"+description: "Change a team member's role."+---++Validates the target is not the seller owner, then updates the seller-member link's role. Triggered by `POST /admin/sellers/:id/members/:member_id` and `POST /vendor/sellers/:id/members/:member_id`. Emits `seller_member.updated`.++## Usage++```ts+import { updateMemberRoleWorkflow } from "@mercurjs/core/workflows"++await updateMemberRoleWorkflow(container).run({+ input: {+ seller_member_id: "selmem_123",+ role_id: "role_seller_order_management",+ },+})+```++## Input++<ParamField body="seller_member_id" type="string" required>Id of the seller-member link to update; must not be the owner.</ParamField>+<ParamField body="role_id" type="string" required>New role to assign.</ParamField>++## Result++<ResponseField name="result" type="void">Nothing is returned.</ResponseField>diff --git a/apps/docs/rc/references/workflows/member/update-member.mdx b/apps/docs/rc/references/workflows/member/update-member.mdxnew file mode 100644index 000000000..bb651f9d3--- /dev/null+++ b/apps/docs/rc/references/workflows/member/update-member.mdx@@ -0,0 +1,35 @@+---+title: "updateMemberWorkflow"+description: "Update member profile fields matching a selector."+---++Updates every member matching the selector — name and locale only. Triggered by `POST /vendor/members/me` when a member edits their own profile.++## Usage++```ts+import { updateMemberWorkflow } from "@mercurjs/core/workflows"++const { result } = await updateMemberWorkflow(container).run({+ input: {+ selector: { id: "mem_123" },+ update: { first_name: "Jane", last_name: "Doe" },+ },+})+```++## Input++<ParamField body="selector" type="object" required>Filter selecting the members to update, e.g. `{ id: "mem_123" }`.</ParamField>+<ParamField body="update" type="object" required>+ Fields to update.+ <Expandable title="properties">+ <ParamField body="first_name" type="string | null">First name.</ParamField>+ <ParamField body="last_name" type="string | null">Last name.</ParamField>+ <ParamField body="locale" type="string | null">Preferred locale.</ParamField>+ </Expandable>+</ParamField>++## Result++<ResponseField name="result" type="MemberDTO[]">The updated members.</ResponseField>diff --git a/apps/docs/rc/references/workflows/offer/batch-offer-inventory-items.mdx b/apps/docs/rc/references/workflows/offer/batch-offer-inventory-items.mdxnew file mode 100644index 000000000..db0d5b6cf--- /dev/null+++ b/apps/docs/rc/references/workflows/offer/batch-offer-inventory-items.mdx@@ -0,0 +1,58 @@+---+title: "batchOfferInventoryItemsWorkflow"+description: "Create, update, and delete an offer's inventory-item links in one call."+---++Manages the `offer ↔ inventory_item` links that define what stock an offer consumes. Validates the payload (no duplicates, no ID in more than one bucket, created items must exist, deleted items must already be linked), then batches the link changes — each link carries a `required_quantity` (default `1`). Emits `offer.updated`. Triggered by `POST /vendor/offers/:id/inventory-items/batch`.++## Usage++```ts+import { batchOfferInventoryItemsWorkflow } from "@mercurjs/core/workflows"++const { result } = await batchOfferInventoryItemsWorkflow(container).run({+ input: {+ offer_id: "offer_123",+ create: [{ inventory_item_id: "iitem_1", required_quantity: 2 }],+ update: [{ inventory_item_id: "iitem_2", required_quantity: 1 }],+ delete: ["iitem_3"],+ },+})+```++## Input++<ParamField body="offer_id" type="string" required>The offer whose inventory links are managed; fails if not found.</ParamField>+<ParamField body="create" type="object[]">Links to create; the inventory items must exist and not appear in `update`/`delete`.+ <Expandable title="properties">+ <ParamField body="inventory_item_id" type="string" required>The inventory item to link.</ParamField>+ <ParamField body="required_quantity" type="number">Units consumed per offer unit; defaults to `1`.</ParamField>+ </Expandable>+</ParamField>+<ParamField body="update" type="object[]">Existing links to update.+ <Expandable title="properties">+ <ParamField body="inventory_item_id" type="string" required>The linked inventory item.</ParamField>+ <ParamField body="required_quantity" type="number" required>New units consumed per offer unit.</ParamField>+ </Expandable>+</ParamField>+<ParamField body="delete" type="string[]">Inventory item IDs to unlink; each must currently be linked or the workflow throws a 404.</ParamField>+<ParamField body="additional_data" type="object">Custom data passed through to the workflow hooks.</ParamField>++## Result++<ResponseField name="result.created" type="LinkDefinition[]">The created offer ↔ inventory-item links.</ResponseField>+<ResponseField name="result.updated" type="LinkDefinition[]">The updated links.</ResponseField>+<ResponseField name="result.deleted" type="string[]">Inventory item IDs that were unlinked.</ResponseField>++## Hooks++- `validate` — runs first with `{ input }`.+- `offerInventoryItemsBatched` — runs after the batch with `{ offer_id, result, additional_data }`.++```ts+batchOfferInventoryItemsWorkflow.hooks.offerInventoryItemsBatched(+ async ({ offer_id, result }) => {+ // react to link changes+ }+)+```diff --git a/apps/docs/rc/references/workflows/offer/create-offers.mdx b/apps/docs/rc/references/workflows/offer/create-offers.mdxnew file mode 100644index 000000000..eb647acec--- /dev/null+++ b/apps/docs/rc/references/workflows/offer/create-offers.mdx@@ -0,0 +1,63 @@+---+title: "createOffersWorkflow"+description: "Create seller offers with inventory items and offer-scoped prices."+---++Creates one offer per entry: creates and links new inventory items (with optional starting stock levels) to the offer and the seller, ensures the master variant has a `PriceSet`, writes the offer's prices onto that shared set scoped by an `offer_id` price rule, and links the price rows to the offer. Emits `offer.created`. Triggered by `POST /vendor/offers` and the vendor/admin offer batch routes.++## Usage++```ts+import { createOffersWorkflow } from "@mercurjs/core/workflows"++const { result } = await createOffersWorkflow(container).run({+ input: {+ offers: [+ {+ seller_id: "sel_123",+ created_by: "member_123",+ variant_id: "variant_123",+ shipping_profile_id: "sp_123",+ sku: "ACME-TEE-M",+ inventory_items: [+ { stock_levels: [{ location_id: "sloc_123", stocked_quantity: 50 }] },+ ],+ prices: [{ amount: 1999, currency_code: "usd" }],+ },+ ],+ },+})+```++## Input++<ParamField body="offers" type="object[]" required>Offers to create.+ <Expandable title="properties">+ <ParamField body="seller_id" type="string" required>The seller that owns the offer.</ParamField>+ <ParamField body="created_by" type="string" required>ID of the member creating the offer.</ParamField>+ <ParamField body="sku" type="string" required>The offer's SKU.</ParamField>+ <ParamField body="variant_id" type="string" required>The master product variant the offer sells; fails if not found.</ParamField>+ <ParamField body="shipping_profile_id" type="string" required>Shipping profile used to fulfill the offer.</ParamField>+ <ParamField body="inventory_items" type="object[]" required>New inventory items to create and link; at least one entry. Each entry accepts `sku`, `title`, `required_quantity` (default `1`), and `stock_levels` (`{ location_id, stocked_quantity }[]`).</ParamField>+ <ParamField body="prices" type="object[]" required>Offer price ladder; each row accepts `amount`, `currency_code`, `min_quantity`, `max_quantity`, and `rules`.</ParamField>+ <ParamField body="ean" type="string | null">EAN; snapshotted from the variant when omitted.</ParamField>+ <ParamField body="upc" type="string | null">UPC; snapshotted from the variant when omitted.</ParamField>+ <ParamField body="metadata" type="object | null">Custom key-value data.</ParamField>+ </Expandable>+</ParamField>+<ParamField body="additional_data" type="object">Custom data passed through to the workflow hooks.</ParamField>++## Result++<ResponseField name="result" type="OfferDTO[]">The created offers.</ResponseField>++## Hooks++- `validate` — runs first with `{ input }`.+- `offersCreated` — runs after creation with `{ offers, additional_data }`.++```ts+createOffersWorkflow.hooks.offersCreated(async ({ offers, additional_data }) => {+ // react to new offers+})+```diff --git a/apps/docs/rc/references/workflows/offer/delete-offers.mdx b/apps/docs/rc/references/workflows/offer/delete-offers.mdxnew file mode 100644index 000000000..3b3964ce5--- /dev/null+++ b/apps/docs/rc/references/workflows/offer/delete-offers.mdx@@ -0,0 +1,35 @@+---+title: "deleteOffersWorkflow"+description: "Delete one or more offers."+---++Deletes the given offers and emits `offer.deleted` with each offer's `id` and `product_id`. Triggered by `DELETE /vendor/offers/:id`, `DELETE /admin/offers/:id`, and the offer batch routes.++## Usage++```ts+import { deleteOffersWorkflow } from "@mercurjs/core/workflows"++await deleteOffersWorkflow(container).run({+ input: { ids: ["offer_123"] },+})+```++## Input++<ParamField body="ids" type="string[]" required>IDs of the offers to delete.</ParamField>+<ParamField body="additional_data" type="object">Custom data passed through to the workflow hooks.</ParamField>++## Result++<ResponseField name="result" type="void">No return value; the offers are deleted.</ResponseField>++## Hooks++- `offersDeleted` — runs after deletion with `{ ids, additional_data }`.++```ts+deleteOffersWorkflow.hooks.offersDeleted(async ({ ids, additional_data }) => {+ // react to deleted offers+})+```diff --git a/apps/docs/rc/references/workflows/offer/update-offers.mdx b/apps/docs/rc/references/workflows/offer/update-offers.mdxnew file mode 100644index 000000000..398cd1c92--- /dev/null+++ b/apps/docs/rc/references/workflows/offer/update-offers.mdx@@ -0,0 +1,51 @@+---+title: "updateOffersWorkflow"+description: "Update offer rows and rewrite their price ladders with replace semantics."+---++Applies partial updates to offer rows (`sku`, `shipping_profile_id`, `metadata`). When an entry sets `prices`, the offer's price ladder is rewritten with replace semantics: rows with `id` are updated in place, rows without `id` are added, and existing offer-owned prices omitted from the array are removed — all on the variant's shared `PriceSet`, scoped by the `offer_id` price rule. Price ownership is asserted so an offer can't touch another offer's rows. Emits `offer.updated`. Triggered by `POST /vendor/offers/:id` and the offer batch routes.++## Usage++```ts+import { updateOffersWorkflow } from "@mercurjs/core/workflows"++const { result } = await updateOffersWorkflow(container).run({+ input: {+ offers: [+ {+ id: "offer_123",+ prices: [{ amount: 1799, currency_code: "usd" }],+ },+ ],+ },+})+```++## Input++<ParamField body="offers" type="object[]" required>Offer updates, keyed by ID.+ <Expandable title="properties">+ <ParamField body="id" type="string" required>The offer to update; fails if not found.</ParamField>+ <ParamField body="sku" type="string">New SKU.</ParamField>+ <ParamField body="shipping_profile_id" type="string">New shipping profile.</ParamField>+ <ParamField body="metadata" type="object | null">Custom key-value data.</ParamField>+ <ParamField body="prices" type="object[]">Full replacement price ladder; each row accepts `id` (update in place when set), `amount`, `currency_code`, `min_quantity`, `max_quantity`, and `rules`. Omit the field to leave prices untouched.</ParamField>+ </Expandable>+</ParamField>+<ParamField body="additional_data" type="object">Custom data passed through to the workflow hooks.</ParamField>++## Result++<ResponseField name="result" type="OfferDTO[]">The updated offers.</ResponseField>++## Hooks++- `validate` — runs first with `{ input }`.+- `offersUpdated` — runs after the update with `{ offers, additional_data }`.++```ts+updateOffersWorkflow.hooks.offersUpdated(async ({ offers, additional_data }) => {+ // react to updated offers+})+```diff --git a/apps/docs/rc/references/workflows/order-group/get-order-group-detail.mdx b/apps/docs/rc/references/workflows/order-group/get-order-group-detail.mdxnew file mode 100644index 000000000..53ea8325f--- /dev/null+++ b/apps/docs/rc/references/workflows/order-group/get-order-group-detail.mdx@@ -0,0 +1,29 @@+---+title: "getOrderGroupDetailWorkflow"+description: "Retrieve one order group with per-order aggregated payment and fulfillment statuses."+---++Loads an order group with its child orders and computes each order's `payment_status` and `fulfillment_status` from its payment collections and fulfillments. Payment collections and fulfillments are stripped from the response unless the requested fields include them. Triggered by `GET /admin/order-groups/:id` and `GET /admin/orders/:id/order-group`.++## Usage++```ts+import { getOrderGroupDetailWorkflow } from "@mercurjs/core/workflows"++const { result } = await getOrderGroupDetailWorkflow(container).run({+ input: {+ order_group_id: "ordgrp_123",+ fields: ["display_id", "total", "orders.display_id"],+ },+})+```++## Input++<ParamField body="order_group_id" type="string" required>The order group to retrieve; fails if not found.</ParamField>+<ParamField body="fields" type="string[]" required>Fields to retrieve; merged with the defaults needed for status aggregation (`orders.items.*`, payment collection and fulfillment timestamps).</ParamField>++## Result++<ResponseField name="result" type="object">The order group with its child orders.</ResponseField>+<ResponseField name="result.orders" type="OrderDetailDTO[]">Child orders, each with computed `payment_status` and `fulfillment_status`.</ResponseField>diff --git a/apps/docs/rc/references/workflows/order-group/get-order-groups-list.mdx b/apps/docs/rc/references/workflows/order-group/get-order-groups-list.mdxnew file mode 100644index 000000000..3e278ce6c--- /dev/null+++ b/apps/docs/rc/references/workflows/order-group/get-order-groups-list.mdx@@ -0,0 +1,36 @@+---+title: "getOrderGroupsListWorkflow"+description: "List order groups with pagination and per-order aggregated statuses."+---++Lists order groups with their child orders, computing each order's `payment_status` and `fulfillment_status` from payment collections and fulfillments. When `sellerId` is set, each group's `orders` array is filtered to that seller's orders — useful for vendor-scoped views. Payment collections and fulfillments are stripped unless the requested fields include them. Triggered by `GET /admin/order-groups`.++## Usage++```ts+import { getOrderGroupsListWorkflow } from "@mercurjs/core/workflows"++const { result } = await getOrderGroupsListWorkflow(container).run({+ input: {+ fields: ["display_id", "total"],+ variables: { skip: 0, take: 20, order: { created_at: "DESC" } },+ },+})+```++## Input++<ParamField body="fields" type="string[]" required>Fields to retrieve; merged with the defaults needed for status aggregation.</ParamField>+<ParamField body="variables" type="object">Query filters plus pagination.+ <Expandable title="properties">+ <ParamField body="skip" type="number">Number of groups to skip.</ParamField>+ <ParamField body="take" type="number">Number of groups to return.</ParamField>+ <ParamField body="order" type="object">Sort spec, e.g. `{ created_at: "DESC" }`.</ParamField>+ </Expandable>+</ParamField>+<ParamField body="sellerId" type="string | string[]">Restrict each group's `orders` to the given seller(s).</ParamField>++## Result++<ResponseField name="result.rows" type="object[]">The order groups; each child order carries computed `payment_status` and `fulfillment_status`.</ResponseField>+<ResponseField name="result.metadata" type="object">Pagination metadata (`count`, `skip`, `take`).</ResponseField>diff --git a/apps/docs/rc/references/workflows/order/cancel-order-fulfillment.mdx b/apps/docs/rc/references/workflows/order/cancel-order-fulfillment.mdxnew file mode 100644index 000000000..8a6a66828--- /dev/null+++ b/apps/docs/rc/references/workflows/order/cancel-order-fulfillment.mdx@@ -0,0 +1,34 @@+---+title: "cancelOrderFulfillmentWorkflow"+description: "Cancel an unshipped fulfillment and restore reservations and stock."+---++Mercur's offer-aware replacement for Medusa's cancel-order-fulfillment flow. Validates that the fulfillment exists, is not shipped, and not already canceled, then cancels it on the order and at the provider, re-creates or tops up reservations, and adjusts inventory back up — dividing line quantities by each offer's `required_quantity` so bundle offers restock correctly. Triggered by `POST /vendor/orders/:id/fulfillments/:fulfillment_id/cancel`. Emits `order.fulfillment_canceled`.++## Usage++```ts+import { cancelOrderFulfillmentWorkflow } from "@mercurjs/core/workflows"++await cancelOrderFulfillmentWorkflow(container).run({+ input: {+ order_id: "order_123",+ fulfillment_id: "ful_123",+ },+})+```++## Input++<ParamField body="order_id" type="string" required>The order the fulfillment belongs to; must not be canceled.</ParamField>+<ParamField body="fulfillment_id" type="string" required>The fulfillment to cancel; shipped or already-canceled fulfillments throw.</ParamField>+<ParamField body="no_notification" type="boolean">Suppress customer notification for the cancellation.</ParamField>+<ParamField body="additional_data" type="object">Custom data passed through to the hooks.</ParamField>++## Result++<ResponseField name="result" type="void">No return value.</ResponseField>++## Hooks++- `orderFulfillmentCanceled` — runs after cancellation with `{ fulfillment, additional_data }`.diff --git a/apps/docs/rc/references/workflows/order/confirm-claim-request.mdx b/apps/docs/rc/references/workflows/order/confirm-claim-request.mdxnew file mode 100644index 000000000..3b47163f2--- /dev/null+++ b/apps/docs/rc/references/workflows/order/confirm-claim-request.mdx@@ -0,0 +1,25 @@+---+title: "confirmClaimRequestWorkflow"+description: "Confirm a claim request and fix reservations for offer bundles."+---++Wraps Medusa's `confirmClaimRequestWorkflow` and then rewrites the reservations created for the claim's additional items when those items come from offers: single-link offers get their reservation quantity scaled by `required_quantity`, multi-link (bundle) offers have the default reservation replaced with one reservation per linked inventory item. Triggered by `POST /admin/claims/:id/request` and `POST /vendor/claims/:id/request`. Events are emitted by the wrapped Medusa workflow.++## Usage++```ts+import { confirmClaimRequestWorkflow } from "@mercurjs/core/workflows"++const { result } = await confirmClaimRequestWorkflow(container).run({+ input: { claim_id: "claim_123", confirmed_by: "user_123" },+})+```++## Input++<ParamField body="claim_id" type="string" required>The claim whose pending request is confirmed.</ParamField>+<ParamField body="confirmed_by" type="string">Id of the user confirming the claim.</ParamField>++## Result++<ResponseField name="result" type="OrderPreviewDTO">Preview of the order with the confirmed claim applied.</ResponseField>diff --git a/apps/docs/rc/references/workflows/order/confirm-exchange-request.mdx b/apps/docs/rc/references/workflows/order/confirm-exchange-request.mdxnew file mode 100644index 000000000..225c7bf95--- /dev/null+++ b/apps/docs/rc/references/workflows/order/confirm-exchange-request.mdx@@ -0,0 +1,25 @@+---+title: "confirmExchangeRequestWorkflow"+description: "Confirm an exchange request and fix reservations for offer bundles."+---++Wraps Medusa's `confirmExchangeRequestWorkflow` and then rewrites the reservations created for the exchange's additional items when those items come from offers: single-link offers get their reservation quantity scaled by `required_quantity`, multi-link (bundle) offers have the default reservation replaced with one reservation per linked inventory item. Triggered by `POST /admin/exchanges/:id/request` and `POST /vendor/exchanges/:id/request`. Events are emitted by the wrapped Medusa workflow.++## Usage++```ts+import { confirmExchangeRequestWorkflow } from "@mercurjs/core/workflows"++const { result } = await confirmExchangeRequestWorkflow(container).run({+ input: { exchange_id: "exchange_123", confirmed_by: "user_123" },+})+```++## Input++<ParamField body="exchange_id" type="string" required>The exchange whose pending request is confirmed.</ParamField>+<ParamField body="confirmed_by" type="string">Id of the user confirming the exchange.</ParamField>++## Result++<ResponseField name="result" type="OrderPreviewDTO">Preview of the order with the confirmed exchange applied.</ResponseField>diff --git a/apps/docs/rc/references/workflows/order/confirm-order-edit-request.mdx b/apps/docs/rc/references/workflows/order/confirm-order-edit-request.mdxnew file mode 100644index 000000000..ab3cdf456--- /dev/null+++ b/apps/docs/rc/references/workflows/order/confirm-order-edit-request.mdx@@ -0,0 +1,25 @@+---+title: "confirmOrderEditRequestWorkflow"+description: "Confirm an order edit and reconcile offer-bundle reservations."+---++Wraps Medusa's `confirmOrderEditRequestWorkflow` and then reconciles reservations for every unfulfilled order item that comes from an offer with inventory links: desired quantities are computed as `(ordered - fulfilled) × required_quantity` per linked inventory item, and mismatching reservations are replaced with a correct set (one per linked item, bundle offers included). Triggered by `POST /admin/order-edits/:id/confirm` and `POST /vendor/order-edits/:id/confirm`. Events are emitted by the wrapped Medusa workflow.++## Usage++```ts+import { confirmOrderEditRequestWorkflow } from "@mercurjs/core/workflows"++const { result } = await confirmOrderEditRequestWorkflow(container).run({+ input: { order_id: "order_123", confirmed_by: "user_123" },+})+```++## Input++<ParamField body="order_id" type="string" required>The order whose pending edit is confirmed.</ParamField>+<ParamField body="confirmed_by" type="string">Id of the user confirming the edit.</ParamField>++## Result++<ResponseField name="result" type="OrderPreviewDTO">Preview of the order with the confirmed edit applied.</ResponseField>diff --git a/apps/docs/rc/references/workflows/order/confirm-return-receive.mdx b/apps/docs/rc/references/workflows/order/confirm-return-receive.mdxnew file mode 100644index 000000000..7b3e47c51--- /dev/null+++ b/apps/docs/rc/references/workflows/order/confirm-return-receive.mdx@@ -0,0 +1,25 @@+---+title: "confirmReturnReceiveWorkflow"+description: "Confirm a return receival, offer-aware restock included."+---++Mercur's offer-aware replacement for Medusa's confirm-return-receive flow. Applies the pending receive actions of the return's order change, updates return items' received/damaged quantities, marks the return `received` (or `partially_received`), restocks inventory — expanding offer bundle links by `required_quantity` — and refreshes the order payment collection. Throws when a bundle offer has no stock level at the return's location. Triggered by `POST /admin/returns/:id/receive/confirm` and `POST /vendor/returns/:id/receive/confirm`. Emits `order.return_received`.++## Usage++```ts+import { confirmReturnReceiveWorkflow } from "@mercurjs/core/workflows"++const { result } = await confirmReturnReceiveWorkflow(container).run({+ input: { return_id: "return_123", confirmed_by: "user_123" },+})+```++## Input++<ParamField body="return_id" type="string" required>The return whose pending receival is confirmed.</ParamField>+<ParamField body="confirmed_by" type="string">Id of the user confirming the receival.</ParamField>++## Result++<ResponseField name="result" type="OrderPreviewDTO">Preview of the order with the confirmed changes applied.</ResponseField>diff --git a/apps/docs/rc/references/workflows/order/create-order-fulfillment.mdx b/apps/docs/rc/references/workflows/order/create-order-fulfillment.mdxnew file mode 100644index 000000000..34e79bb00--- /dev/null+++ b/apps/docs/rc/references/workflows/order/create-order-fulfillment.mdx@@ -0,0 +1,45 @@+---+title: "createOrderFulfillmentWorkflow"+description: "Create a fulfillment for order items, offer-bundle aware."+---++Mercur's offer-aware replacement for Medusa's create-order-fulfillment flow. Validates the order and items, creates the fulfillment, registers it on the order, links it, and consumes reservations / adjusts inventory — multiplying quantities by each offer's `required_quantity` inventory links so bundle offers deduct the right stock. Triggered by `POST /vendor/orders/:id/fulfillments`. Emits `order.fulfillment_created`.++## Usage++```ts+import { createOrderFulfillmentWorkflow } from "@mercurjs/core/workflows"++const { result } = await createOrderFulfillmentWorkflow(container).run({+ input: {+ order_id: "order_123",+ items: [{ id: "ordli_123", quantity: 1 }],+ },+})+```++## Input++<ParamField body="order_id" type="string" required>The order to fulfill.</ParamField>+<ParamField body="items" type="{ id: string; quantity: number }[]" required>Order line items and quantities to fulfill; all items must either require shipping or not — mixed requests throw.</ParamField>+<ParamField body="location_id" type="string">Stock location to fulfill from; defaults to the shipping option's linked location.</ParamField>+<ParamField body="shipping_option_id" type="string">Shipping option to fulfill with; defaults to the order's first shipping method.</ParamField>+<ParamField body="created_by" type="string">Id of the user creating the fulfillment.</ParamField>+<ParamField body="labels" type="FulfillmentLabelDTO[]">Tracking labels to attach.</ParamField>+<ParamField body="no_notification" type="boolean">Suppress customer notification for this fulfillment.</ParamField>+<ParamField body="metadata" type="object | null">Custom key-value data on the fulfillment.</ParamField>+<ParamField body="additional_data" type="object">Custom data passed through to the hooks.</ParamField>++## Result++<ResponseField name="result" type="FulfillmentDTO">The created fulfillment.</ResponseField>++## Hooks++- `fulfillmentCreated` — runs after creation with `{ fulfillment, additional_data }`.++```ts+createOrderFulfillmentWorkflow.hooks.fulfillmentCreated(async ({ fulfillment }) => {+ // push to a 3PL+})+```diff --git a/apps/docs/rc/references/workflows/overview.mdx b/apps/docs/rc/references/workflows/overview.mdxnew file mode 100644index 000000000..c24fb342a--- /dev/null+++ b/apps/docs/rc/references/workflows/overview.mdx@@ -0,0 +1,72 @@+---+title: "Workflows"+description: "Every workflow exported by @mercurjs/core, grouped by domain."+---++All marketplace business logic runs through Medusa workflows exported from `@mercurjs/core/workflows`. Run them from your own API routes, jobs, or subscribers, and extend them through their hooks — see [Extend a workflow](/rc/resources/customization/extend-a-workflow).++```ts+import { createSellersWorkflow } from "@mercurjs/core/workflows"++const { result } = await createSellersWorkflow(container).run({+ input: { name: "Acme", email: "[email protected]" },+})+```++Each workflow has its own reference page with the exact input, result, and hooks.++<CardGroup cols={2}>+ <Card title="Seller lifecycle" href="/rc/references/workflows/seller/create-sellers">+ Create, approve, suspend, terminate sellers and manage their details.+ </Card>+ <Card title="Members & invites" href="/rc/references/workflows/member/add-seller-member">+ Team management and the JWT invite flow.+ </Card>+ <Card title="Checkout & carts" href="/rc/references/workflows/cart/complete-cart-with-split-orders">+ The multi-vendor split checkout and per-seller cart operations.+ </Card>+ <Card title="Order groups" href="/rc/references/workflows/order-group/get-order-group-detail">+ Read models over grouped per-seller orders.+ </Card>+ <Card title="Commission" href="/rc/references/workflows/commission/create-commission-rates">+ Rate CRUD, rule batching, and order line recomputation.+ </Card>+ <Card title="Payout" href="/rc/references/workflows/payout/create-payout">+ Accounts, onboarding, payouts, and webhook processing.+ </Card>+ <Card title="Products" href="/rc/references/workflows/product/create-products">+ Master product creation, confirmation, and seller linking.+ </Card>+ <Card title="Product edit" href="/rc/references/workflows/product-edit/create-product-change">+ The change-request lifecycle behind vendor edits.+ </Card>+ <Card title="Product attributes" href="/rc/references/workflows/product-attribute/create-and-link-product-attributes-to-product">+ Attribute catalog CRUD and the product batch engine.+ </Card>+ <Card title="Offers" href="/rc/references/workflows/offer/create-offers">+ Listing CRUD and inventory item batching.+ </Card>+ <Card title="Media" href="/rc/references/workflows/media/set-collection-images">+ Category and collection galleries, thumbnails, banners, icons.+ </Card>+ <Card title="Orders & RMA" href="/rc/references/workflows/order/create-order-fulfillment">+ Fulfillment and return/claim/exchange confirmation.+ </Card>+</CardGroup>++## Internal and utility workflows++These are exported but usually not called directly — they run inside the workflows above:++| Workflow | Called by |+| --- | --- |+| `applyProductChangeActionsWorkflow` / `applyProductAttributeChangeActionsWorkflow` | `confirmProductChangeWorkflow` — replays staged actions onto the product |+| `productEditUpdateProductWorkflow` / `productEditUpdateVariantsWorkflow` / `productEditUpdateAttributesWorkflow` / `productEditDeleteProductWorkflow` | Vendor product edit routes — stage the corresponding change actions |+| `recordProductAuditChangeWorkflow` | Product flows — writes audit change records |+| `create/update/deleteProductCategoryWithImagesWorkflow` and `create/update/deleteProductCollectionWithImagesWorkflow` | Admin category/collection routes — wrap Medusa's workflows plus the image-set step |+| `createSellerCampaignsWorkflow`, `createSellerCustomerGroupsWorkflow`, `createSellerInventoryItemsWorkflow`, `createSellerPriceListsWorkflow`, `createSellerPromotionsWorkflow`, `createSellerShippingOptionsWorkflow`, `createSellerShippingProfilesWorkflow`, `createSellerStockLocationsWorkflow` | Vendor resource-create routes — create the record and link it to the seller |++<Note>+ Search has no workflows by design — index synchronization is event-driven+ through subscribers. See the [Search module](/rc/references/modules/search#index-synchronization).+</Note>diff --git a/apps/docs/rc/references/workflows/payout/create-onboarding.mdx b/apps/docs/rc/references/workflows/payout/create-onboarding.mdxnew file mode 100644index 000000000..5ab85d61d--- /dev/null+++ b/apps/docs/rc/references/workflows/payout/create-onboarding.mdx@@ -0,0 +1,36 @@+---+title: "createOnboardingWorkflow"+description: "Start a provider onboarding session for a payout account."+---++Creates an onboarding session for an existing payout account through the payout provider — for Stripe Connect this returns a hosted onboarding link the seller completes in the browser. Triggered by `POST /vendor/payout-accounts/:id/onboarding`.++## Usage++```ts+import { createOnboardingWorkflow } from "@mercurjs/core/workflows"++const { result } = await createOnboardingWorkflow(container).run({+ input: {+ account_id: "pacc_123",+ data: {+ refresh_url: "https://vendor.example.com/payouts",+ return_url: "https://vendor.example.com/payouts",+ },+ },+})+```++## Input++<ParamField body="account_id" type="string" required>The payout account to onboard.</ParamField>+<ParamField body="context" type="object">Provider context; supports `idempotency_key` plus provider-specific keys.</ParamField>+<ParamField body="data" type="object">Provider-specific onboarding data (e.g. Stripe `refresh_url` / `return_url`).</ParamField>++## Result++<ResponseField name="result" type="OnboardingDTO">The created onboarding session.</ResponseField>+<ResponseField name="result.id" type="string">Onboarding ID.</ResponseField>+<ResponseField name="result.account_id" type="string">The payout account the session belongs to.</ResponseField>+<ResponseField name="result.data" type="object | null">Provider response data (e.g. the hosted onboarding URL).</ResponseField>+<ResponseField name="result.context" type="object | null">The context the session was created with.</ResponseField>diff --git a/apps/docs/rc/references/workflows/payout/create-payout-account.mdx b/apps/docs/rc/references/workflows/payout/create-payout-account.mdxnew file mode 100644index 000000000..6e3dfd86c--- /dev/null+++ b/apps/docs/rc/references/workflows/payout/create-payout-account.mdx@@ -0,0 +1,33 @@+---+title: "createPayoutAccountWorkflow"+description: "Create a payout account for a seller through the registered payout provider."+---++Validates that the seller doesn't already have a payout account, creates one through the payout provider (e.g. Stripe Connect), and links it to the seller. Triggered by `POST /vendor/payout-accounts`.++## Usage++```ts+import { createPayoutAccountWorkflow } from "@mercurjs/core/workflows"++const { result } = await createPayoutAccountWorkflow(container).run({+ input: {+ seller_id: "sel_123",+ context: { country: "US" },+ },+})+```++## Input++<ParamField body="seller_id" type="string" required>The seller to create the payout account for; fails if the seller already has one.</ParamField>+<ParamField body="context" type="object">Provider context; supports `idempotency_key` plus provider-specific keys.</ParamField>+<ParamField body="data" type="object">Provider-specific creation data passed straight to the payout provider.</ParamField>++## Result++<ResponseField name="result" type="PayoutAccountDTO">The created payout account.</ResponseField>+<ResponseField name="result.id" type="string">Payout account ID.</ResponseField>+<ResponseField name="result.status" type="string">One of `pending`, `active`, `restricted`, `rejected`; starts as `pending` until onboarding completes.</ResponseField>+<ResponseField name="result.data" type="object">Provider-side account data (e.g. the connected account payload).</ResponseField>+<ResponseField name="result.context" type="object | null">The context the account was created with.</ResponseField>diff --git a/apps/docs/rc/references/workflows/payout/create-payout.mdx b/apps/docs/rc/references/workflows/payout/create-payout.mdxnew file mode 100644index 000000000..7f3d1993b--- /dev/null+++ b/apps/docs/rc/references/workflows/payout/create-payout.mdx@@ -0,0 +1,30 @@+---+title: "createPayoutWorkflow"+description: "Issue a payout to a seller through the registered provider."+---++Loads a settled order with its seller and payout account, sums the order's commission lines (item and shipping), and pays out `order.total - total commission` through the payout provider, linking the payout to the seller. Fails if the seller has no payout account. The order ID doubles as the provider idempotency key, so re-running for the same order is safe. Not wired to a route — run it from your own subscriber or scheduled job once an order is captured and ready to settle.++## Usage++```ts+import { createPayoutWorkflow } from "@mercurjs/core/workflows"++const { result } = await createPayoutWorkflow(container).run({+ input: { order_id: "order_123" },+})+```++## Input++<ParamField body="order_id" type="string" required>The order to settle; must belong to a seller with a payout account.</ParamField>++## Result++<ResponseField name="result" type="PayoutDTO">The created payout.</ResponseField>+<ResponseField name="result.id" type="string">Payout ID.</ResponseField>+<ResponseField name="result.account_id" type="string">The seller's payout account.</ResponseField>+<ResponseField name="result.amount" type="BigNumberInput">Order total minus the order's commission lines.</ResponseField>+<ResponseField name="result.currency_code" type="string">The order's currency.</ResponseField>+<ResponseField name="result.status" type="string">One of `pending`, `processing`, `paid`, `failed`, `canceled`.</ResponseField>+<ResponseField name="result.data" type="object | null">Provider transfer data; includes `order_id` and `seller_id`.</ResponseField>diff --git a/apps/docs/rc/references/workflows/payout/process-payout-for-webhook.mdx b/apps/docs/rc/references/workflows/payout/process-payout-for-webhook.mdxnew file mode 100644index 000000000..9f1915a8e--- /dev/null+++ b/apps/docs/rc/references/workflows/payout/process-payout-for-webhook.mdx@@ -0,0 +1,32 @@+---+title: "processPayoutForWebhookWorkflow"+description: "Apply a payout provider webhook event to the matching account or payout."+---++Maps a normalized provider webhook action to a status update: account events set the payout account to `active`, `restricted`, or `rejected`; payout events set the payout to `processing`, `paid`, `failed`, or `canceled`. Unsupported actions (or events without an ID) are ignored. Triggered by the `payout-webhook` subscriber after the payout provider parses the raw webhook payload.++## Usage++```ts+import { processPayoutForWebhookWorkflow } from "@mercurjs/core/workflows"++await processPayoutForWebhookWorkflow(container).run({+ input: {+ action: "payout.paid",+ data: { id: "payout_123" },+ },+})+```++## Input++<ParamField body="action" type="string" required>One of `account.activated`, `account.restricted`, `account.rejected`, `payout.processing`, `payout.paid`, `payout.failed`, `payout.canceled`, `not_supported`.</ParamField>+<ParamField body="data" type="object">Event target; nothing happens when omitted.+ <Expandable title="properties">+ <ParamField body="id" type="string" required>The ID of the payout account (for `account.*` actions) or the payout (for `payout.*` actions).</ParamField>+ </Expandable>+</ParamField>++## Result++<ResponseField name="result" type="void">No return value; the matching account or payout status is updated as a side effect.</ResponseField>diff --git a/apps/docs/rc/references/workflows/product-attribute/add-product-attributes-to-product.mdx b/apps/docs/rc/references/workflows/product-attribute/add-product-attributes-to-product.mdxnew file mode 100644index 000000000..43872d341--- /dev/null+++ b/apps/docs/rc/references/workflows/product-attribute/add-product-attributes-to-product.mdx@@ -0,0 +1,49 @@+---+title: "addProductAttributesToProductWorkflow"+description: "Attach existing or inline attributes (and their values) to a product."+---++Handles the `add` portion of the attribute batch engine (`createAndLinkProductAttributesToProductWorkflow`). Existing `text`/`unit` attributes get a new value created from `value`; `toggle` links the seeded `true`/`false` value; existing variant-axis `multi_select` attributes have their mirror `ProductOption` attached to the product with the selected value subset. Inline refs create a product-scoped attribute — axis refs also create an exclusive `ProductOption` — and link the values to the product.++## Usage++```ts+import { addProductAttributesToProductWorkflow } from "@mercurjs/core/workflows"++await addProductAttributesToProductWorkflow(container).run({+ input: {+ product_id: "prod_123",+ add: [+ { id: "pattr_material", value: "Cotton" },+ { title: "Size", values: ["S", "M", "L"], is_variant_axis: true },+ ],+ },+})+```++Also accepts an array of `{ product_id, add }` items to process several products in one run.++## Input++<ParamField body="product_id" type="string" required>The product to attach the attributes to.</ParamField>+<ParamField body="add" type="ProductAttributeBatchAdd[]" required>+ Attribute refs to attach.+ <Expandable title="properties">+ <ParamField body="id" type="string">Id of an existing attribute (existing form).</ParamField>+ <ParamField body="value_ids" type="string[]">Attribute value ids to link (select types / axis subset).</ParamField>+ <ParamField body="value" type="string | number | boolean">Scalar for `text` / `unit` / `toggle` attributes.</ParamField>+ <ParamField body="title" type="string">Name of the inline attribute to create (inline form).</ParamField>+ <ParamField body="type" type="AttributeType">One of `single_select`, `multi_select`, `unit`, `toggle`, `text`; inferred when omitted (`is_variant_axis` ⇒ `multi_select`, boolean `value` ⇒ `toggle`, else `text`).</ParamField>+ <ParamField body="values" type="string[]">Value names to create for inline multi-value attributes.</ParamField>+ <ParamField body="is_variant_axis" type="boolean">Create the inline attribute as a variant axis with an exclusive product option.</ParamField>+ <ParamField body="is_filterable" type="boolean">Whether the inline attribute is filterable. Defaults to `false`.</ParamField>+ <ParamField body="is_required" type="boolean">Whether the inline attribute is required. Defaults to `false`.</ParamField>+ <ParamField body="description" type="string | null">Description of the inline attribute.</ParamField>+ <ParamField body="metadata" type="object | null">Custom key-value data on the inline attribute.</ParamField>+ </Expandable>+</ParamField>+<ParamField body="additional_data" type="object">Custom data passed through.</ParamField>++## Result++<ResponseField name="result" type="void">No return value.</ResponseField>diff --git a/apps/docs/rc/references/workflows/product-attribute/create-and-link-product-attributes-to-product.mdx b/apps/docs/rc/references/workflows/product-attribute/create-and-link-product-attributes-to-product.mdxnew file mode 100644index 000000000..22a4566de--- /dev/null+++ b/apps/docs/rc/references/workflows/product-attribute/create-and-link-product-attributes-to-product.mdx@@ -0,0 +1,46 @@+---+title: "createAndLinkProductAttributesToProductWorkflow"+description: "Batch attach, detach, and update attribute selections on a product."+---++The batch orchestrator behind `POST /admin/products/:id/attributes/batch` and `POST /vendor/products/:id/attributes/batch`. Delegates to `removeProductAttributesFromProductWorkflow`, `addProductAttributesToProductWorkflow`, and `updateProductAttributesOnProductWorkflow`, applied in the order **remove → add → update** so removing and re-adding the same attribute in one call resolves correctly.++## Usage++```ts+import { createAndLinkProductAttributesToProductWorkflow } from "@mercurjs/core/workflows"++await createAndLinkProductAttributesToProductWorkflow(container).run({+ input: {+ product_id: "prod_123",+ add: [{ id: "pattr_color", value_ids: ["pattrval_red"] }],+ remove: ["pattr_old"],+ update: [{ id: "pattr_size", add: ["pattrval_xl"] }],+ },+})+```++## Input++<ParamField body="product_id" type="string" required>The product whose attributes are being managed.</ParamField>+<ParamField body="add" type="ProductAttributeBatchAdd[]">Attributes to attach — existing (`{ id, value_ids | value }`) or inline (`{ title, type?, value | values, is_variant_axis? }`).</ParamField>+<ParamField body="remove" type="string[]">Ids of attributes to detach; product-scoped attributes are deleted, shared ones are unlinked.</ParamField>+<ParamField body="update" type="ProductAttributeBatchUpdate[]">Per-attribute selection changes (`{ id, title?, add?, remove?, value? }`).</ParamField>+<ParamField body="additional_data" type="object">Custom data passed through to the workflow hooks.</ParamField>++## Result++<ResponseField name="result" type="void">No return value.</ResponseField>++## Hooks++- `validate` — runs before any mutation with `{ input }`; throw to reject the batch.+- `productAttributesLinked` — runs after all sub-workflows with `{ product_id }`.++```ts+createAndLinkProductAttributesToProductWorkflow.hooks.productAttributesLinked(+ async ({ product_id }) => {+ // re-index the product+ },+)+```diff --git a/apps/docs/rc/references/workflows/product-attribute/create-product-attribute-values.mdx b/apps/docs/rc/references/workflows/product-attribute/create-product-attribute-values.mdxnew file mode 100644index 000000000..e1fb817a4--- /dev/null+++ b/apps/docs/rc/references/workflows/product-attribute/create-product-attribute-values.mdx@@ -0,0 +1,43 @@+---+title: "createProductAttributeValuesWorkflow"+description: "Add values to an attribute, mirroring them onto its product option."+---++Creates values on an existing attribute. If the attribute is a variant-axis `multi_select` with a mirror `ProductOption`, the option's value list is extended first and each new attribute value is bound to its option value via `product_option_value_id`. Triggered by `POST /admin/product-attributes/:id/values`. Emits `product-attribute-value.created`.++## Usage++```ts+import { createProductAttributeValuesWorkflow } from "@mercurjs/core/workflows"++const { result } = await createProductAttributeValuesWorkflow(container).run({+ input: {+ attribute_id: "pattr_color",+ values: [{ name: "Green" }, { name: "Yellow", rank: 5 }],+ },+})+```++## Input++<ParamField body="attribute_id" type="string" required>The attribute to add the values to.</ParamField>+<ParamField body="values" type="CreateProductAttributeValueDTO[]" required>+ Values to create.+ <Expandable title="properties">+ <ParamField body="name" type="string" required>Display name of the value.</ParamField>+ <ParamField body="handle" type="string">URL-safe handle; auto-generated when omitted.</ParamField>+ <ParamField body="rank" type="number">Sort rank.</ParamField>+ <ParamField body="is_active" type="boolean">Whether the value is active.</ParamField>+ <ParamField body="metadata" type="object | null">Custom key-value data.</ParamField>+ </Expandable>+</ParamField>+<ParamField body="additional_data" type="object">Custom data passed through to the hooks.</ParamField>++## Result++<ResponseField name="result" type="ProductAttributeValueDTO[]">The created values.</ResponseField>++## Hooks++- `validate` — runs before creation with `{ input }`.+- `productAttributeValuesCreated` — runs after creation with `{ values, additional_data }`.diff --git a/apps/docs/rc/references/workflows/product-attribute/create-product-attributes.mdx b/apps/docs/rc/references/workflows/product-attribute/create-product-attributes.mdxnew file mode 100644index 000000000..53d848730--- /dev/null+++ b/apps/docs/rc/references/workflows/product-attribute/create-product-attributes.mdx@@ -0,0 +1,56 @@+---+title: "createProductAttributesWorkflow"+description: "Create catalog attributes with values, mirror options, and category links."+---++Creates product attributes and their values. Variant-axis `multi_select` attributes also get a shared mirror `ProductOption` created, with each value bound to its option value. Optional `category_ids` create category links per attribute. Triggered by `POST /admin/product-attributes`. Emits `product-attribute.created`.++## Usage++```ts+import { createProductAttributesWorkflow } from "@mercurjs/core/workflows"++const { result } = await createProductAttributesWorkflow(container).run({+ input: {+ attributes: [+ {+ name: "Color",+ type: "multi_select",+ is_variant_axis: true,+ values: [{ name: "Red" }, { name: "Blue" }],+ category_ids: ["pcat_apparel"],+ },+ ],+ },+})+```++## Input++<ParamField body="attributes" type="(CreateProductAttributeDTO & { category_ids?: string[] })[]" required>+ Attributes to create.+ <Expandable title="properties">+ <ParamField body="name" type="string" required>Display name of the attribute.</ParamField>+ <ParamField body="type" type="AttributeType" required>One of `single_select`, `multi_select`, `unit`, `toggle`, `text`.</ParamField>+ <ParamField body="handle" type="string">URL-safe handle; auto-generated when omitted.</ParamField>+ <ParamField body="description" type="string | null">Description of the attribute.</ParamField>+ <ParamField body="is_required" type="boolean">Whether products must carry this attribute.</ParamField>+ <ParamField body="is_filterable" type="boolean">Whether the attribute is exposed as a storefront filter.</ParamField>+ <ParamField body="is_variant_axis" type="boolean">Mirror the attribute as a shared `ProductOption` (with `type: multi_select`).</ParamField>+ <ParamField body="rank" type="number">Sort rank.</ParamField>+ <ParamField body="is_active" type="boolean">Whether the attribute is active.</ParamField>+ <ParamField body="values" type="CreateProductAttributeValueDTO[]">Values to create (`{ name, handle?, rank?, is_active?, metadata? }`).</ParamField>+ <ParamField body="category_ids" type="string[]">Category ids to link the attribute to.</ParamField>+ <ParamField body="metadata" type="object | null">Custom key-value data.</ParamField>+ </Expandable>+</ParamField>+<ParamField body="additional_data" type="object">Custom data passed through to the hooks.</ParamField>++## Result++<ResponseField name="result" type="ProductAttributeDTO[]">The created attributes.</ResponseField>++## Hooks++- `validate` — runs before creation with `{ input }`.+- `productAttributesCreated` — runs after creation with `{ attributes, additional_data }`.diff --git a/apps/docs/rc/references/workflows/product-attribute/delete-product-attribute-values.mdx b/apps/docs/rc/references/workflows/product-attribute/delete-product-attribute-values.mdxnew file mode 100644index 000000000..1f502cb5c--- /dev/null+++ b/apps/docs/rc/references/workflows/product-attribute/delete-product-attribute-values.mdx@@ -0,0 +1,30 @@+---+title: "deleteProductAttributeValuesWorkflow"+description: "Delete attribute values and shrink the mirror option accordingly."+---++Deletes attribute values by id. When the deleted values belong to a single variant-axis `multi_select` attribute with a mirror `ProductOption`, the option's value list is rewritten to the attribute's remaining value names. Triggered by `DELETE /admin/product-attributes/:id/values/:value_id`; also run internally by the batch update engine. Emits `product-attribute-value.deleted`.++## Usage++```ts+import { deleteProductAttributeValuesWorkflow } from "@mercurjs/core/workflows"++await deleteProductAttributeValuesWorkflow(container).run({+ input: { ids: ["pattrval_123", "pattrval_456"] },+})+```++## Input++<ParamField body="ids" type="string[]" required>Ids of the attribute values to delete.</ParamField>+<ParamField body="additional_data" type="object">Custom data passed through to the hooks.</ParamField>++## Result++<ResponseField name="result" type="void">No return value.</ResponseField>++## Hooks++- `validate` — runs before deletion with `{ input }`.+- `productAttributeValuesDeleted` — runs after deletion with `{ ids, additional_data }`.diff --git a/apps/docs/rc/references/workflows/product-attribute/delete-product-attributes.mdx b/apps/docs/rc/references/workflows/product-attribute/delete-product-attributes.mdxnew file mode 100644index 000000000..8b912fe18--- /dev/null+++ b/apps/docs/rc/references/workflows/product-attribute/delete-product-attributes.mdx@@ -0,0 +1,30 @@+---+title: "deleteProductAttributesWorkflow"+description: "Delete attributes and their mirror product options."+---++Deletes product attributes after validating none of them is still linked to a product or category. Mirror `ProductOption`s of axis attributes are deleted alongside. Triggered by `DELETE /admin/product-attributes/:id`; also run internally when detaching product-scoped attributes. Emits `product-attribute.deleted`.++## Usage++```ts+import { deleteProductAttributesWorkflow } from "@mercurjs/core/workflows"++await deleteProductAttributesWorkflow(container).run({+ input: { ids: ["pattr_123"] },+})+```++## Input++<ParamField body="ids" type="string[]" required>Ids of the attributes to delete; the workflow throws if an attribute is still linked.</ParamField>+<ParamField body="additional_data" type="object">Custom data passed through to the hooks.</ParamField>++## Result++<ResponseField name="result" type="void">No return value.</ResponseField>++## Hooks++- `validate` — runs before deletion with `{ input }`.+- `productAttributesDeleted` — runs after deletion with `{ ids, additional_data }`.diff --git a/apps/docs/rc/references/workflows/product-attribute/remove-product-attributes-from-product.mdx b/apps/docs/rc/references/workflows/product-attribute/remove-product-attributes-from-product.mdxnew file mode 100644index 000000000..cf3a6f051--- /dev/null+++ b/apps/docs/rc/references/workflows/product-attribute/remove-product-attributes-from-product.mdx@@ -0,0 +1,29 @@+---+title: "removeProductAttributesFromProductWorkflow"+description: "Detach attributes from a product, deleting product-scoped ones."+---++Handles the `remove` portion of the attribute batch engine (`createAndLinkProductAttributesToProductWorkflow`). Rejects required attributes, dismisses the product's value links for every listed attribute, detaches the mirror `ProductOption` for shared axis attributes, and runs `deleteProductAttributesWorkflow` for product-scoped (inline) attributes so their exclusive options are deleted too.++## Usage++```ts+import { removeProductAttributesFromProductWorkflow } from "@mercurjs/core/workflows"++await removeProductAttributesFromProductWorkflow(container).run({+ input: {+ product_id: "prod_123",+ remove: ["pattr_color", "pattr_custom_size"],+ },+})+```++## Input++<ParamField body="product_id" type="string" required>The product to detach the attributes from.</ParamField>+<ParamField body="remove" type="string[]" required>Ids of the attributes to detach; attributes with `is_required: true` cause the workflow to throw.</ParamField>+<ParamField body="additional_data" type="object">Custom data passed through.</ParamField>++## Result++<ResponseField name="result" type="void">No return value.</ResponseField>diff --git a/apps/docs/rc/references/workflows/product-attribute/update-product-attribute-values.mdx b/apps/docs/rc/references/workflows/product-attribute/update-product-attribute-values.mdxnew file mode 100644index 000000000..963768013--- /dev/null+++ b/apps/docs/rc/references/workflows/product-attribute/update-product-attribute-values.mdx@@ -0,0 +1,44 @@+---+title: "updateProductAttributeValuesWorkflow"+description: "Update attribute values matching a selector and re-sync the mirror option."+---++Updates attribute values by selector. When the touched values belong to a single variant-axis `multi_select` attribute with a mirror `ProductOption`, the option's value list is rewritten from the attribute's current value names. Triggered by `POST /admin/product-attributes/:id/values/:value_id`. Emits `product-attribute-value.updated`.++## Usage++```ts+import { updateProductAttributeValuesWorkflow } from "@mercurjs/core/workflows"++const { result } = await updateProductAttributeValuesWorkflow(container).run({+ input: {+ selector: { id: "pattrval_123" },+ update: { name: "Dark Green" },+ },+})+```++## Input++<ParamField body="selector" type="object" required>Filter for the values to update, e.g. `{ id: "pattrval_123" }`.</ParamField>+<ParamField body="update" type="UpdateProductAttributeValueDTO" required>+ Fields to set on every matched value.+ <Expandable title="properties">+ <ParamField body="name" type="string">New display name.</ParamField>+ <ParamField body="handle" type="string">New handle.</ParamField>+ <ParamField body="rank" type="number">Sort rank.</ParamField>+ <ParamField body="is_active" type="boolean">Whether the value is active.</ParamField>+ <ParamField body="product_option_value_id" type="string | null">Bound mirror option value.</ParamField>+ <ParamField body="metadata" type="object | null">Custom key-value data.</ParamField>+ </Expandable>+</ParamField>+<ParamField body="additional_data" type="object">Custom data passed through to the hooks.</ParamField>++## Result++<ResponseField name="result" type="ProductAttributeValueDTO[]">The updated values.</ResponseField>++## Hooks++- `validate` — runs before the update with `{ input }`.+- `productAttributeValuesUpdated` — runs after the update with `{ values, additional_data }`.diff --git a/apps/docs/rc/references/workflows/product-attribute/update-product-attributes-on-product.mdx b/apps/docs/rc/references/workflows/product-attribute/update-product-attributes-on-product.mdxnew file mode 100644index 000000000..3298b52f7--- /dev/null+++ b/apps/docs/rc/references/workflows/product-attribute/update-product-attributes-on-product.mdx@@ -0,0 +1,41 @@+---+title: "updateProductAttributesOnProductWorkflow"+description: "Mutate a product's per-attribute value selections."+---++Handles the `update` portion of the attribute batch engine (`createAndLinkProductAttributesToProductWorkflow`). For shared axis attributes it adjusts the per-product value subset of the mirror option and keeps the value-link pivot in sync; for exclusive (product-scoped) axis attributes it creates or deletes values on the exclusive option; for `text`/`unit` it swaps the linked value's name (or creates one); for `toggle` it re-links the matching `true`/`false` value. A `title` on a product-scoped attribute renames it via `updateProductAttributesWorkflow`.++## Usage++```ts+import { updateProductAttributesOnProductWorkflow } from "@mercurjs/core/workflows"++await updateProductAttributesOnProductWorkflow(container).run({+ input: {+ product_id: "prod_123",+ update: [+ { id: "pattr_size", add: ["pattrval_xl"], remove: ["pattrval_s"] },+ { id: "pattr_material", value: "Linen" },+ ],+ },+})+```++## Input++<ParamField body="product_id" type="string" required>The product whose attribute selections are updated.</ParamField>+<ParamField body="update" type="ProductAttributeBatchUpdate[]" required>+ Per-attribute updates.+ <Expandable title="properties">+ <ParamField body="id" type="string" required>Id of the existing attribute to update.</ParamField>+ <ParamField body="title" type="string">New name; only honoured for product-scoped attributes and propagated to the mirror option title.</ParamField>+ <ParamField body="add" type="(string | { value: string })[]">Value ids to add (shared axis subset) or new value objects to create (exclusive axis).</ParamField>+ <ParamField body="remove" type="string[]">Value ids to remove from the selection (exclusive-axis values are deleted).</ParamField>+ <ParamField body="value" type="string | number | boolean">New scalar for `text` / `unit` / `toggle` attributes.</ParamField>+ </Expandable>+</ParamField>+<ParamField body="additional_data" type="object">Custom data passed through.</ParamField>++## Result++<ResponseField name="result" type="void">No return value.</ResponseField>diff --git a/apps/docs/rc/references/workflows/product-attribute/update-product-attributes.mdx b/apps/docs/rc/references/workflows/product-attribute/update-product-attributes.mdxnew file mode 100644index 000000000..5992c68c0--- /dev/null+++ b/apps/docs/rc/references/workflows/product-attribute/update-product-attributes.mdx@@ -0,0 +1,48 @@+---+title: "updateProductAttributesWorkflow"+description: "Update attributes matching a selector and sync mirror option titles."+---++Updates product attributes by selector. When `name` changes, the mirror `ProductOption` title of any affected axis attribute is updated to match. Triggered by `POST /admin/product-attributes/:id`. Emits `product-attribute.updated`.++## Usage++```ts+import { updateProductAttributesWorkflow } from "@mercurjs/core/workflows"++const { result } = await updateProductAttributesWorkflow(container).run({+ input: {+ selector: { id: "pattr_123" },+ update: { name: "Colour", is_filterable: true },+ },+})+```++## Input++<ParamField body="selector" type="object" required>Filter for the attributes to update, e.g. `{ id: "pattr_123" }`.</ParamField>+<ParamField body="update" type="UpdateProductAttributeDTO" required>+ Fields to set on every matched attribute.+ <Expandable title="properties">+ <ParamField body="name" type="string">New display name; propagated to mirror option titles.</ParamField>+ <ParamField body="handle" type="string">New handle.</ParamField>+ <ParamField body="description" type="string | null">New description.</ParamField>+ <ParamField body="type" type="AttributeType">One of `single_select`, `multi_select`, `unit`, `toggle`, `text`.</ParamField>+ <ParamField body="is_required" type="boolean">Whether products must carry this attribute.</ParamField>+ <ParamField body="is_filterable" type="boolean">Whether the attribute is a storefront filter.</ParamField>+ <ParamField body="is_variant_axis" type="boolean">Whether the attribute is a variant axis.</ParamField>+ <ParamField body="rank" type="number">Sort rank.</ParamField>+ <ParamField body="is_active" type="boolean">Whether the attribute is active.</ParamField>+ <ParamField body="metadata" type="object | null">Custom key-value data.</ParamField>+ </Expandable>+</ParamField>+<ParamField body="additional_data" type="object">Custom data passed through to the hooks.</ParamField>++## Result++<ResponseField name="result" type="ProductAttributeDTO[]">The updated attributes.</ResponseField>++## Hooks++- `validate` — runs before the update with `{ input }`.+- `productAttributesUpdated` — runs after the update with `{ attributes, additional_data }`.diff --git a/apps/docs/rc/references/workflows/product-attribute/upsert-product-attribute-values.mdx b/apps/docs/rc/references/workflows/product-attribute/upsert-product-attribute-values.mdxnew file mode 100644index 000000000..183846d1b--- /dev/null+++ b/apps/docs/rc/references/workflows/product-attribute/upsert-product-attribute-values.mdx@@ -0,0 +1,43 @@+---+title: "upsertProductAttributeValuesWorkflow"+description: "Create or update attribute values in one call, keyed by id presence."+---++Splits the given values by `id`: entries without an id are created on the attribute, entries with an id are updated in place. Unlike the create/update value workflows it does not touch the mirror `ProductOption` (renaming a value in place does not re-sync the mirrored option) and it emits no events.++## Usage++```ts+import { upsertProductAttributeValuesWorkflow } from "@mercurjs/core/workflows"++const { result } = await upsertProductAttributeValuesWorkflow(container).run({+ input: {+ attribute_id: "pattr_color",+ values: [+ { name: "Teal" },+ { id: "pattrval_123", name: "Navy Blue" },+ ],+ },+})+```++## Input++<ParamField body="attribute_id" type="string" required>The attribute the values belong to.</ParamField>+<ParamField body="values" type="UpsertProductAttributeValueDTO[]" required>+ Values to create (no `id`) or update (with `id`).+ <Expandable title="properties">+ <ParamField body="id" type="string">Existing value id; omit to create a new value.</ParamField>+ <ParamField body="name" type="string">Display name of the value.</ParamField>+ <ParamField body="handle" type="string">URL-safe handle.</ParamField>+ <ParamField body="rank" type="number">Sort rank.</ParamField>+ <ParamField body="is_active" type="boolean">Whether the value is active.</ParamField>+ <ParamField body="product_option_value_id" type="string | null">Bound mirror option value.</ParamField>+ <ParamField body="metadata" type="object | null">Custom key-value data.</ParamField>+ </Expandable>+</ParamField>+<ParamField body="additional_data" type="object">Custom data passed through.</ParamField>++## Result++<ResponseField name="result" type="ProductAttributeValueDTO[]">The created values followed by the updated values.</ResponseField>diff --git a/apps/docs/rc/references/workflows/product-edit/auto-confirm-product-change.mdx b/apps/docs/rc/references/workflows/product-edit/auto-confirm-product-change.mdxnew file mode 100644index 000000000..fd4402587--- /dev/null+++ b/apps/docs/rc/references/workflows/product-edit/auto-confirm-product-change.mdx@@ -0,0 +1,39 @@+---+title: "autoConfirmProductChangeWorkflow"+description: "Conditionally confirm a ProductChange based on the product_request feature flag."+---++Decides whether a freshly staged `ProductChange` should be confirmed immediately: it runs `confirmProductChangeWorkflow` for the change when `force` is `true` or the `product_request` feature flag is disabled, and does nothing otherwise (leaving the change `pending` for operator review). Run as a step by `stageProductChangeWorkflow`. Any events (`product-change.confirmed`) come from the nested confirm workflow.++## Usage++```ts+import { autoConfirmProductChangeWorkflow } from "@mercurjs/core/workflows"++await autoConfirmProductChangeWorkflow(container).run({+ input: {+ change_id: "prch_01H...",+ confirmed_by: "sel_01H...",+ },+})+```++## Input++<ParamField body="change_id" type="string" required>+ Id of the product change to (conditionally) confirm.+</ParamField>++<ParamField body="confirmed_by" type="string">+ Actor id forwarded as `confirmed_by` to the confirm workflow.+</ParamField>++<ParamField body="force" type="boolean">+ Confirm regardless of the `product_request` feature flag.+</ParamField>++## Result++<ResponseField name="result" type="void">+ Returns nothing; the change is either confirmed (and its actions applied) or left `pending`.+</ResponseField>diff --git a/apps/docs/rc/references/workflows/product-edit/cancel-product-change.mdx b/apps/docs/rc/references/workflows/product-edit/cancel-product-change.mdxnew file mode 100644index 000000000..5b304823a--- /dev/null+++ b/apps/docs/rc/references/workflows/product-edit/cancel-product-change.mdx@@ -0,0 +1,49 @@+---+title: "cancelProductChangeWorkflow"+description: "Cancel a pending ProductChange so its staged actions are never applied."+---++Cancels a pending `ProductChange`: validates the change exists and is still `pending`, then sets it to `canceled` with `canceled_by` and `canceled_at` — the staged actions are never applied to the master product. Triggered by `POST /admin/product-changes/:id/cancel` (operator) and `POST /vendor/products/:id/cancel` (vendor withdrawing their own edit). Emits `product-change.canceled` with `{ id }`.++## Usage++```ts+import { cancelProductChangeWorkflow } from "@mercurjs/core/workflows"++await cancelProductChangeWorkflow(container).run({+ input: {+ id: "prch_01H...",+ canceled_by: "sel_01H...",+ },+})+```++## Input++<ParamField body="id" type="string" required>+ Id of the product change to cancel. Must exist and be in `pending` status.+</ParamField>++<ParamField body="canceled_by" type="string">+ Actor id recorded as the canceler on the change.+</ParamField>++<ParamField body="additional_data" type="object">+ Arbitrary data forwarded to the `productChangeCanceled` hook.+</ParamField>++## Result++<ResponseField name="result" type="void">+ Returns nothing; the change status is updated in place.+</ResponseField>++## Hooks++<ResponseField name="validate" type="hook">+ Runs first with `{ input }` — use it to block cancellation.+</ResponseField>++<ResponseField name="productChangeCanceled" type="hook">+ Runs after cancellation with `{ id, additional_data }`.+</ResponseField>diff --git a/apps/docs/rc/references/workflows/product-edit/confirm-product-change.mdx b/apps/docs/rc/references/workflows/product-edit/confirm-product-change.mdxnew file mode 100644index 000000000..003c1c412--- /dev/null+++ b/apps/docs/rc/references/workflows/product-edit/confirm-product-change.mdx@@ -0,0 +1,57 @@+---+title: "confirmProductChangeWorkflow"+description: "Confirm pending ProductChanges and apply their staged actions to the master product."+---++Confirms one or more pending `ProductChange` records: validates each change exists and is confirmable, marks them `confirmed` with `confirmed_by`, then runs the internal apply engine (`applyProductChangeActionsWorkflow`) to write the staged actions onto the master product. Triggered by `POST /admin/product-changes/:id/confirm`, and internally by `autoConfirmProductChangeWorkflow`. Emits `product-change.confirmed` with one `{ id }` per change.++## Usage++```ts+import { confirmProductChangeWorkflow } from "@mercurjs/core/workflows"++await confirmProductChangeWorkflow(container).run({+ input: {+ ids: ["prch_01H..."],+ confirmed_by: "user_01H...",+ },+})+```++## Input++<ParamField body="ids" type="string[]" required>+ Ids of the product changes to confirm. Each must exist and be in a confirmable (`pending`) state.+</ParamField>++<ParamField body="confirmed_by" type="string">+ Actor id recorded as the confirmer on each change.+</ParamField>++<ParamField body="internal_note" type="string">+ Operator-only note stored on each confirmed change.+</ParamField>++<ParamField body="external_note" type="string">+ Vendor-facing note stored on each confirmed change.+</ParamField>++<ParamField body="additional_data" type="object">+ Arbitrary data forwarded to the `productChangeConfirmed` hook.+</ParamField>++## Result++<ResponseField name="result" type="void">+ Returns nothing; the changes are confirmed and their actions applied in place.+</ResponseField>++## Hooks++<ResponseField name="validate" type="hook">+ Runs first with `{ input }` — use it to block confirmation of specific changes.+</ResponseField>++<ResponseField name="productChangeConfirmed" type="hook">+ Runs after actions are applied with `{ ids, additional_data }`.+</ResponseField>diff --git a/apps/docs/rc/references/workflows/product-edit/create-product-change.mdx b/apps/docs/rc/references/workflows/product-edit/create-product-change.mdxnew file mode 100644index 000000000..117567d4f--- /dev/null+++ b/apps/docs/rc/references/workflows/product-edit/create-product-change.mdx@@ -0,0 +1,72 @@+---+title: "createProductChangeWorkflow"+description: "Create ProductChange records after validating no pending change exists per product."+---++Creates one or more `ProductChange` records — the staging entity for vendor edits on shared master products. Validates that none of the referenced products already has a `pending` change before inserting. Emits `product-change.created` with one `{ id }` entry per change. Actions are attached separately (see `stageProductChangeWorkflow` for the combined flow).++## Usage++```ts+import { createProductChangeWorkflow } from "@mercurjs/core/workflows"++const { result } = await createProductChangeWorkflow(container).run({+ input: {+ changes: [+ { product_id: "prod_01H...", created_by: "sel_01H..." },+ ],+ },+})+```++## Input++<ParamField body="changes" type="CreateProductChangeDTO[]" required>+ Changes to create.+ <Expandable title="properties">+ <ParamField body="product_id" type="string" required>+ Id of the product the change targets. Must not already have a pending change.+ </ParamField>+ <ParamField body="status" type="ProductChangeStatus">+ One of `pending`, `confirmed`, `declined`, `canceled`; audit-trail rows are created already `confirmed`.+ </ParamField>+ <ParamField body="created_by" type="string">+ Actor id who authored the change.+ </ParamField>+ <ParamField body="internal_note" type="string">+ Operator-only note.+ </ParamField>+ <ParamField body="external_note" type="string">+ Vendor-facing note.+ </ParamField>+ <ParamField body="confirmed_by" type="string">+ Confirming actor id, for pre-confirmed rows.+ </ParamField>+ <ParamField body="confirmed_at" type="Date">+ Confirmation timestamp, for pre-confirmed rows.+ </ParamField>+ <ParamField body="metadata" type="object">+ Arbitrary key-value data stored on the change.+ </ParamField>+ </Expandable>+</ParamField>++<ParamField body="additional_data" type="object">+ Arbitrary data forwarded to the `productChangeCreated` hook.+</ParamField>++## Result++<ResponseField name="result" type="ProductChangeDTO[]">+ The created change records with ids, statuses, and timestamps.+</ResponseField>++## Hooks++<ResponseField name="validate" type="hook">+ Runs first with `{ input }` — use it to reject invalid payloads before creation.+</ResponseField>++<ResponseField name="productChangeCreated" type="hook">+ Runs after creation with `{ changes, additional_data }`.+</ResponseField>diff --git a/apps/docs/rc/references/workflows/product-edit/reject-product-change.mdx b/apps/docs/rc/references/workflows/product-edit/reject-product-change.mdxnew file mode 100644index 000000000..fc14d81a7--- /dev/null+++ b/apps/docs/rc/references/workflows/product-edit/reject-product-change.mdx@@ -0,0 +1,54 @@+---+title: "rejectProductChangeWorkflow"+description: "Decline a pending ProductChange with an optional reason for the vendor."+---++Declines a pending `ProductChange`: validates the change exists and is still `pending`, then sets it to `declined` with `declined_by`, `declined_at`, and `declined_reason` — the staged actions are never applied to the master product. Emits `product-change.declined` with `{ id }`.++## Usage++```ts+import { rejectProductChangeWorkflow } from "@mercurjs/core/workflows"++await rejectProductChangeWorkflow(container).run({+ input: {+ id: "prch_01H...",+ declined_by: "user_01H...",+ declined_reason: "Price change exceeds allowed range",+ },+})+```++## Input++<ParamField body="id" type="string" required>+ Id of the product change to decline. Must exist and be in `pending` status.+</ParamField>++<ParamField body="declined_by" type="string">+ Actor id recorded as the decliner on the change.+</ParamField>++<ParamField body="declined_reason" type="string">+ Vendor-facing reason stored on the change.+</ParamField>++<ParamField body="additional_data" type="object">+ Arbitrary data forwarded to the `productChangeRejected` hook.+</ParamField>++## Result++<ResponseField name="result" type="void">+ Returns nothing; the change status is updated in place.+</ResponseField>++## Hooks++<ResponseField name="validate" type="hook">+ Runs first with `{ input }` — use it to block rejection.+</ResponseField>++<ResponseField name="productChangeRejected" type="hook">+ Runs after the decline with `{ id, additional_data }`.+</ResponseField>diff --git a/apps/docs/rc/references/workflows/product-edit/stage-product-change.mdx b/apps/docs/rc/references/workflows/product-edit/stage-product-change.mdxnew file mode 100644index 000000000..16f3c01c8--- /dev/null+++ b/apps/docs/rc/references/workflows/product-edit/stage-product-change.mdx@@ -0,0 +1,75 @@+---+title: "stageProductChangeWorkflow"+description: "Stage a pending ProductChange with its actions and optionally auto-confirm it."+---++Creates a `pending` `ProductChange` for one product, attaches the given actions to it, then runs `autoConfirmProductChangeWorkflow` — so the change is applied immediately when `auto_confirm` is `true` or the `product_request` feature flag is disabled. This is the engine behind the vendor product-edit workflows (`productEditUpdateProduct`, `productEditUpdateVariants`, `productEditUpdateAttributes`, `productEditDeleteProduct`). Emits `product-change.created`.++## Usage++```ts+import { stageProductChangeWorkflow } from "@mercurjs/core/workflows"++const { result } = await stageProductChangeWorkflow(container).run({+ input: {+ product_id: "prod_01H...",+ created_by: "sel_01H...",+ actions: [+ {+ product_id: "prod_01H...",+ action: "UPDATE",+ details: { title: "Linen Shirt v2" },+ },+ ],+ },+})+```++## Input++<ParamField body="product_id" type="string" required>+ Id of the product the change targets.+</ParamField>++<ParamField body="actions" type="object[]" required>+ Actions to stage on the change (`CreateProductChangeActionDTO` without `product_change_id`, which is stamped automatically).+ <Expandable title="properties">+ <ParamField body="product_id" type="string" required>+ Id of the product the action applies to.+ </ParamField>+ <ParamField body="action" type="string" required>+ Action type, e.g. `UPDATE`, `VARIANT_ADD`, `VARIANT_UPDATE`, `VARIANT_REMOVE`, `ATTRIBUTE_ADD`, `ATTRIBUTE_UPDATE`, `ATTRIBUTE_REMOVE`, `PRODUCT_DELETE`, `STATUS_CHANGE`.+ </ParamField>+ <ParamField body="details" type="object">+ Operation payload applied when the change is confirmed.+ </ParamField>+ <ParamField body="internal_note" type="string">+ Operator-only note on the action.+ </ParamField>+ <ParamField body="applied" type="boolean">+ Whether the action is already applied; leave unset for staged edits.+ </ParamField>+ </Expandable>+</ParamField>++<ParamField body="created_by" type="string">+ Actor id who staged the change; also used as `confirmed_by` on auto-confirm.+</ParamField>++<ParamField body="internal_note" type="string">+ Operator-only note stored on the change.+</ParamField>++<ParamField body="external_note" type="string">+ Vendor-facing note stored on the change.+</ParamField>++<ParamField body="auto_confirm" type="boolean">+ Force immediate confirmation even when the `product_request` feature flag is enabled.+</ParamField>++## Result++<ResponseField name="result" type="ProductChangeDTO">+ The created change record; still `pending` unless it was auto-confirmed.+</ResponseField>diff --git a/apps/docs/rc/references/workflows/product/confirm-products.mdx b/apps/docs/rc/references/workflows/product/confirm-products.mdxnew file mode 100644index 000000000..7810c532d--- /dev/null+++ b/apps/docs/rc/references/workflows/product/confirm-products.mdx@@ -0,0 +1,46 @@+---+title: "confirmProductsWorkflow"+description: "Approve proposed products and publish them to the catalog."+---++Approves products awaiting review: validates every product is in `proposed` status, sets them to `published`, and records a confirmed `STATUS_CHANGE` audit action per product. Triggered by `POST /admin/products/:id/confirm`. Emits `product.published` with one `{ id, internal_note }` entry per product.++## Usage++```ts+import { confirmProductsWorkflow } from "@mercurjs/core/workflows"++await confirmProductsWorkflow(container).run({+ input: {+ product_ids: ["prod_01H..."],+ actor_id: "user_01H...",+ internal_note: "Approved after review",+ },+})+```++## Input++<ParamField body="product_ids" type="string[]" required>+ Ids of the products to publish. Every product must currently be in `proposed` status.+</ParamField>++<ParamField body="actor_id" type="string">+ Actor id recorded on the audit trail entry.+</ParamField>++<ParamField body="internal_note" type="string">+ Operator-only note stored on the audit change and included in the emitted event.+</ParamField>++## Result++<ResponseField name="result" type="void">+ Returns nothing; the products are updated in place.+</ResponseField>++## Hooks++<ResponseField name="productsConfirmed" type="hook">+ Runs after publishing with `{ product_ids, internal_note }`.+</ResponseField>diff --git a/apps/docs/rc/references/workflows/product/create-products.mdx b/apps/docs/rc/references/workflows/product/create-products.mdxnew file mode 100644index 000000000..6e8800d12--- /dev/null+++ b/apps/docs/rc/references/workflows/product/create-products.mdx@@ -0,0 +1,63 @@+---+title: "createProductsWorkflow"+description: "Create master catalog products with seller eligibility and creator attribution."+---++Creates master catalog products, resolving Mercur `attributes` inputs into native product options and value links, linking each product to its eligible sellers (`product_seller` links), and recording a confirmed `PRODUCT_ADD` audit action attributed to `created_by`. Triggered by `POST /admin/products` and `POST /vendor/products`. Variants default to `manage_inventory: false` unless set explicitly. Emits `product.created`.++## Usage++```ts+import { createProductsWorkflow } from "@mercurjs/core/workflows"++const { result } = await createProductsWorkflow(container).run({+ input: {+ products: [{ title: "Linen Shirt", seller_ids: ["sel_01H..."] }],+ created_by: "sel_01H...",+ },+})+```++## Input++<ParamField body="products" type="object[]" required>+ Products to create.+ <Expandable title="properties">+ <ParamField body="title" type="string" required>+ The product title. All Medusa `CreateProductDTO` fields (handle, description, status, variants, categories, images, etc.) are accepted, except `options`.+ </ParamField>+ <ParamField body="attributes" type="ProductAttributeBatchAdd[]">+ Attribute inputs resolved into native options and value links — `{ id, value_ids }` / `{ id, value }` for existing attributes, or `{ title, values, is_variant_axis }` / `{ title, type, value }` for inline ones. Do not pass native `options`.+ </ParamField>+ <ParamField body="seller_ids" type="string[]">+ Seller ids to link to the product as eligible sellers.+ </ParamField>+ <ParamField body="variants" type="object[]">+ Variants to create; `options` name-maps bind them to axis attributes. `manage_inventory` defaults to `false`.+ </ParamField>+ </Expandable>+</ParamField>++<ParamField body="created_by" type="string" required>+ Actor id recorded on the `PRODUCT_ADD` audit action.+</ParamField>++<ParamField body="additional_data" type="object">+ Arbitrary data forwarded to the underlying Medusa create workflows and the `productsCreated` hook.+</ParamField>++## Result++<ResponseField name="result" type="ProductDTO[]">+ The created products, including their generated ids, options, and statuses.+</ResponseField>++## Hooks++<ResponseField name="validate" type="hook">+ Runs first with `{ input, products }` — use it to reject invalid payloads before anything is created.+</ResponseField>++<ResponseField name="productsCreated" type="hook">+ Runs after creation with `{ products, additional_data }`.+</ResponseField>diff --git a/apps/docs/rc/references/workflows/product/link-sellers-to-product-category.mdx b/apps/docs/rc/references/workflows/product/link-sellers-to-product-category.mdxnew file mode 100644index 000000000..2560992d4--- /dev/null+++ b/apps/docs/rc/references/workflows/product/link-sellers-to-product-category.mdx@@ -0,0 +1,40 @@+---+title: "linkSellersToProductCategoryWorkflow"+description: "Add or remove seller eligibility links on a product category."+---++Updates which sellers are allowed to sell in a product category by creating and removing seller–category links in one call — the mechanism behind restricted categories. Triggered by `POST /admin/product-categories/:id/sellers`. No events are emitted.++## Usage++```ts+import { linkSellersToProductCategoryWorkflow } from "@mercurjs/core/workflows"++await linkSellersToProductCategoryWorkflow(container).run({+ input: {+ id: "pcat_01H...",+ add: ["sel_01H..."],+ remove: ["sel_01J..."],+ },+})+```++## Input++<ParamField body="id" type="string" required>+ Id of the product category whose seller links are being updated.+</ParamField>++<ParamField body="add" type="string[]">+ Seller ids to link to the category.+</ParamField>++<ParamField body="remove" type="string[]">+ Seller ids to unlink from the category.+</ParamField>++## Result++<ResponseField name="result" type="void">+ Returns nothing; the links are created and removed in place.+</ResponseField>diff --git a/apps/docs/rc/references/workflows/product/link-sellers-to-product.mdx b/apps/docs/rc/references/workflows/product/link-sellers-to-product.mdxnew file mode 100644index 000000000..58c5b8b8d--- /dev/null+++ b/apps/docs/rc/references/workflows/product/link-sellers-to-product.mdx@@ -0,0 +1,40 @@+---+title: "linkSellersToProductWorkflow"+description: "Add or remove seller eligibility links on a master product."+---++Updates which sellers are eligible for a master product by creating and removing `product_seller` links in one call. Triggered by `POST /admin/products/:id/sellers`. No events are emitted and the product record itself is untouched.++## Usage++```ts+import { linkSellersToProductWorkflow } from "@mercurjs/core/workflows"++await linkSellersToProductWorkflow(container).run({+ input: {+ id: "prod_01H...",+ add: ["sel_01H..."],+ remove: ["sel_01J..."],+ },+})+```++## Input++<ParamField body="id" type="string" required>+ Id of the product whose seller links are being updated.+</ParamField>++<ParamField body="add" type="string[]">+ Seller ids to link to the product.+</ParamField>++<ParamField body="remove" type="string[]">+ Seller ids to unlink from the product.+</ParamField>++## Result++<ResponseField name="result" type="void">+ Returns nothing; the links are created and removed in place.+</ResponseField>diff --git a/apps/docs/rc/references/workflows/product/reject-product.mdx b/apps/docs/rc/references/workflows/product/reject-product.mdxnew file mode 100644index 000000000..06cf4d10a--- /dev/null+++ b/apps/docs/rc/references/workflows/product/reject-product.mdx@@ -0,0 +1,46 @@+---+title: "rejectProductWorkflow"+description: "Reject a proposed product submission with an optional message to the vendor."+---++Rejects a product awaiting review: validates the product is in `proposed` status, sets it to `rejected`, and records a confirmed `STATUS_CHANGE` audit action whose `external_note` carries the rejection message. Triggered by `POST /admin/products/:id/reject`. Emits `product.rejected` with `{ id, message }`.++## Usage++```ts+import { rejectProductWorkflow } from "@mercurjs/core/workflows"++await rejectProductWorkflow(container).run({+ input: {+ product_id: "prod_01H...",+ message: "Images do not meet marketplace guidelines",+ actor_id: "user_01H...",+ },+})+```++## Input++<ParamField body="product_id" type="string" required>+ Id of the product to reject. Must currently be in `proposed` status.+</ParamField>++<ParamField body="message" type="string">+ Vendor-facing rejection reason, stored as the audit change's `external_note` and included in the emitted event.+</ParamField>++<ParamField body="actor_id" type="string">+ Actor id recorded on the audit trail entry.+</ParamField>++## Result++<ResponseField name="result" type="void">+ Returns nothing; the product status is updated in place.+</ResponseField>++## Hooks++<ResponseField name="productRejected" type="hook">+ Runs after rejection with `{ product_id, message }`.+</ResponseField>diff --git a/apps/docs/rc/references/workflows/product/request-product-change.mdx b/apps/docs/rc/references/workflows/product/request-product-change.mdxnew file mode 100644index 000000000..d0b9c2f1a--- /dev/null+++ b/apps/docs/rc/references/workflows/product/request-product-change.mdx@@ -0,0 +1,46 @@+---+title: "requestProductChangeWorkflow"+description: "Ask a vendor to revise a proposed product submission without changing its status."+---++Records an operator's request for revisions on a product awaiting review. Validates the product is in `proposed` status and records a confirmed `CHANGE_REQUESTED` audit action — the product itself is not mutated; the audit entry and its `external_note` are the durable signal to the vendor. Triggered by `POST /admin/products/:id/request-changes`. Emits `product.change-requested` with `{ id, message, actor_id }`.++## Usage++```ts+import { requestProductChangeWorkflow } from "@mercurjs/core/workflows"++await requestProductChangeWorkflow(container).run({+ input: {+ product_id: "prod_01H...",+ message: "Please add care instructions to the description",+ actor_id: "user_01H...",+ },+})+```++## Input++<ParamField body="product_id" type="string" required>+ Id of the product to request changes on. Must currently be in `proposed` status.+</ParamField>++<ParamField body="message" type="string">+ Vendor-facing revision request, stored as the audit change's `external_note` and in the action's `details.message`.+</ParamField>++<ParamField body="actor_id" type="string">+ Actor id recorded on the audit trail entry.+</ParamField>++## Result++<ResponseField name="result" type="void">+ Returns nothing; only an audit entry is created.+</ResponseField>++## Hooks++<ResponseField name="productChangeRequested" type="hook">+ Runs after the audit entry is recorded with `{ product_id, message }`.+</ResponseField>diff --git a/apps/docs/rc/references/workflows/seller/approve-seller.mdx b/apps/docs/rc/references/workflows/seller/approve-seller.mdxnew file mode 100644index 000000000..726882f27--- /dev/null+++ b/apps/docs/rc/references/workflows/seller/approve-seller.mdx@@ -0,0 +1,34 @@+---+title: "approveSellerWorkflow"+description: "Approve a pending seller and open its store."+---++Validates the seller can be approved, sets `status` to `open`, clears `status_reason`, and stamps `approved_at` on first approval. Triggered by `POST /admin/sellers/:id/approve`. Emits `seller.approved`.++## Usage++```ts+import { approveSellerWorkflow } from "@mercurjs/core/workflows"++await approveSellerWorkflow(container).run({+ input: { seller_id: "sel_123" },+})+```++## Input++<ParamField body="seller_id" type="string" required>Id of the seller to approve.</ParamField>++## Result++<ResponseField name="result" type="void">Nothing is returned.</ResponseField>++## Hooks++- `sellerApproved` — runs after approval with `{ seller_id }`.++```ts+approveSellerWorkflow.hooks.sellerApproved(async ({ seller_id }) => {+ // e.g. send a welcome email+})+```diff --git a/apps/docs/rc/references/workflows/seller/create-seller-account.mdx b/apps/docs/rc/references/workflows/seller/create-seller-account.mdxnew file mode 100644index 000000000..82c437956--- /dev/null+++ b/apps/docs/rc/references/workflows/seller/create-seller-account.mdx@@ -0,0 +1,59 @@+---+title: "createSellerAccountWorkflow"+description: "Create a seller with its owner member during self-registration."+---++Creates a seller with `pending_approval` status, ensures the default seller roles exist, creates (or reuses) the owner member, and links the member's auth identity via app metadata. Optionally sets the seller address, professional details, and payment details in the same run. Triggered by `POST /vendor/sellers` during vendor registration. Emits `seller.created`.++## Usage++```ts+import { createSellerAccountWorkflow } from "@mercurjs/core/workflows"++const { result } = await createSellerAccountWorkflow(container).run({+ input: {+ auth_identity_id: "authid_123",+ seller: { name: "Acme", email: "[email protected]", currency_code: "usd" },+ member_email: "[email protected]",+ first_name: "Jane",+ last_name: "Doe",+ },+})+```++## Input++<ParamField body="auth_identity_id" type="string" required>Auth identity to bind to the owner member.</ParamField>+<ParamField body="seller" type="CreateSellerDTO" required>+ Seller to create; `status` is forced to `pending_approval`.+ <Expandable title="properties">+ <ParamField body="name" type="string" required>Display name of the seller.</ParamField>+ <ParamField body="email" type="string" required>Contact email of the seller.</ParamField>+ <ParamField body="currency_code" type="string" required>Default currency of the seller.</ParamField>+ <ParamField body="handle" type="string">URL handle; auto-generated when omitted.</ParamField>+ <ParamField body="description" type="string">Public seller description.</ParamField>+ <ParamField body="metadata" type="object">Custom key-value data.</ParamField>+ </Expandable>+</ParamField>+<ParamField body="member_email" type="string">Email for the new owner member; required when `member_id` is not provided.</ParamField>+<ParamField body="member_id" type="string">Existing member to link as owner instead of creating one.</ParamField>+<ParamField body="first_name" type="string">Owner member first name.</ParamField>+<ParamField body="last_name" type="string">Owner member last name.</ParamField>+<ParamField body="address" type="UpdateSellerAddressDTO">Seller address to set after creation.</ParamField>+<ParamField body="professional_details" type="UpdateProfessionalDetailsDTO">Professional details to set after creation.</ParamField>+<ParamField body="payment_details" type="UpdatePaymentDetailsDTO">Payment details to set after creation.</ParamField>+<ParamField body="additional_data" type="object">Custom data passed through to the workflow hooks.</ParamField>++## Result++<ResponseField name="result" type="SellerDTO">The created seller.</ResponseField>++## Hooks++- `sellerAccountCreated` — runs after the account is assembled with `{ seller, additional_data }`.++```ts+createSellerAccountWorkflow.hooks.sellerAccountCreated(async ({ seller }) => {+ // provision extra resources for the new seller+})+```diff --git a/apps/docs/rc/references/workflows/seller/create-seller-defaults.mdx b/apps/docs/rc/references/workflows/seller/create-seller-defaults.mdxnew file mode 100644index 000000000..8162ed00e--- /dev/null+++ b/apps/docs/rc/references/workflows/seller/create-seller-defaults.mdx@@ -0,0 +1,22 @@+---+title: "createSellerDefaultsWorkflow"+description: "Ensure the default seller roles exist."+---++Idempotently creates the built-in seller roles (administration, inventory management, order management, accounting, support). Run before assigning roles to members; also executed automatically by `createSellerAccountWorkflow` and `acceptMemberInviteWorkflow`.++## Usage++```ts+import { createSellerDefaultsWorkflow } from "@mercurjs/core/workflows"++await createSellerDefaultsWorkflow(container).run({})+```++## Input++No input.++## Result++<ResponseField name="result" type="void">Nothing is returned.</ResponseField>diff --git a/apps/docs/rc/references/workflows/seller/create-sellers.mdx b/apps/docs/rc/references/workflows/seller/create-sellers.mdxnew file mode 100644index 000000000..cf92f57e1--- /dev/null+++ b/apps/docs/rc/references/workflows/seller/create-sellers.mdx@@ -0,0 +1,65 @@+---+title: "createSellersWorkflow"+description: "Create one or more sellers and invite their first member."+---++Creates sellers (defaulting `status` to `pending_approval`), then runs `createMemberInvitesWorkflow` to invite each seller's initial member with the seller administration role. Triggered by `POST /admin/sellers`. Emits `seller.created` and `member_invite.created`.++## Usage++```ts+import { createSellersWorkflow } from "@mercurjs/core/workflows"++const { result } = await createSellersWorkflow(container).run({+ input: {+ sellers: [+ {+ name: "Acme",+ email: "[email protected]",+ currency_code: "usd",+ member: { email: "[email protected]" },+ },+ ],+ },+})+```++## Input++<ParamField body="sellers" type="object[]" required>+ Sellers to create.+ <Expandable title="properties">+ <ParamField body="name" type="string" required>Display name of the seller.</ParamField>+ <ParamField body="email" type="string" required>Contact email of the seller.</ParamField>+ <ParamField body="currency_code" type="string" required>Default currency of the seller.</ParamField>+ <ParamField body="member" type="object" required>Initial member to invite; `{ email: string }`.</ParamField>+ <ParamField body="handle" type="string">URL handle; auto-generated from the name when omitted.</ParamField>+ <ParamField body="description" type="string">Public seller description.</ParamField>+ <ParamField body="logo" type="string">Logo URL.</ParamField>+ <ParamField body="banner" type="string">Banner URL.</ParamField>+ <ParamField body="website_url" type="string">Seller website URL.</ParamField>+ <ParamField body="external_id" type="string">External system identifier.</ParamField>+ <ParamField body="status" type="string">One of `open`, `pending_approval`, `suspended`, `terminated`; defaults to `pending_approval`.</ParamField>+ <ParamField body="status_reason" type="string">Reason attached to the current status.</ParamField>+ <ParamField body="is_premium" type="boolean">Marks the seller as premium.</ParamField>+ <ParamField body="closed_from" type="Date">Start of a store closure window.</ParamField>+ <ParamField body="closed_to" type="Date">End of a store closure window.</ParamField>+ <ParamField body="metadata" type="object">Custom key-value data.</ParamField>+ </Expandable>+</ParamField>+<ParamField body="additional_data" type="object">Custom data passed through to the workflow hooks.</ParamField>++## Result++<ResponseField name="result" type="SellerDTO[]">The created sellers.</ResponseField>++## Hooks++- `validate` — runs before creation with `{ input }`.+- `sellersCreated` — runs after creation with `{ sellers, additional_data }`.++```ts+createSellersWorkflow.hooks.sellersCreated(async ({ sellers, additional_data }) => {+ // react to new sellers+})+```diff --git a/apps/docs/rc/references/workflows/seller/delete-seller-professional-details.mdx b/apps/docs/rc/references/workflows/seller/delete-seller-professional-details.mdxnew file mode 100644index 000000000..b671b1565--- /dev/null+++ b/apps/docs/rc/references/workflows/seller/delete-seller-professional-details.mdx@@ -0,0 +1,37 @@+---+title: "deleteSellerProfessionalDetailsWorkflow"+description: "Remove a seller's professional details."+---++Deletes the professional details record attached to a seller.++## Usage++```ts+import { deleteSellerProfessionalDetailsWorkflow } from "@mercurjs/core/workflows"++await deleteSellerProfessionalDetailsWorkflow(container).run({+ input: { seller_id: "sel_123" },+})+```++## Input++<ParamField body="seller_id" type="string" required>Id of the seller whose professional details are removed.</ParamField>+<ParamField body="additional_data" type="object">Custom data passed through to the workflow hooks.</ParamField>++## Result++<ResponseField name="result" type="void">Nothing is returned.</ResponseField>++## Hooks++- `professionalDetailsDeleted` — runs after deletion with `{ seller_id, additional_data }`.++```ts+deleteSellerProfessionalDetailsWorkflow.hooks.professionalDetailsDeleted(+ async ({ seller_id }) => {+ // e.g. flag the seller for re-verification+ }+)+```diff --git a/apps/docs/rc/references/workflows/seller/delete-sellers.mdx b/apps/docs/rc/references/workflows/seller/delete-sellers.mdxnew file mode 100644index 000000000..b02f2a452--- /dev/null+++ b/apps/docs/rc/references/workflows/seller/delete-sellers.mdx@@ -0,0 +1,24 @@+---+title: "deleteSellersWorkflow"+description: "Delete sellers by id."+---++Soft-deletes the given sellers. Emits `seller.deleted` for each id.++## Usage++```ts+import { deleteSellersWorkflow } from "@mercurjs/core/workflows"++await deleteSellersWorkflow(container).run({+ input: { ids: ["sel_123"] },+})+```++## Input++<ParamField body="ids" type="string[]" required>Ids of the sellers to delete.</ParamField>++## Result++<ResponseField name="result" type="void">Nothing is returned.</ResponseField>diff --git a/apps/docs/rc/references/workflows/seller/invite-seller.mdx b/apps/docs/rc/references/workflows/seller/invite-seller.mdxnew file mode 100644index 000000000..9bb8b4d9d--- /dev/null+++ b/apps/docs/rc/references/workflows/seller/invite-seller.mdx@@ -0,0 +1,28 @@+---+title: "inviteSellerWorkflow"+description: "Send a marketplace invitation email to a prospective seller."+---++Sends an invitation email (via the notification module, `email` channel) inviting someone to register as a seller, optionally with a registration link. Not wired to a core API route — run it from your own routes or automations. Does not create any seller records.++## Usage++```ts+import { inviteSellerWorkflow } from "@mercurjs/core/workflows"++const { result } = await inviteSellerWorkflow(container).run({+ input: {+ email: "[email protected]",+ registration_url: "https://vendor.example.com/register",+ },+})+```++## Input++<ParamField body="email" type="string" required>Recipient of the invitation email.</ParamField>+<ParamField body="registration_url" type="string">Link rendered as the email's call-to-action button.</ParamField>++## Result++<ResponseField name="result" type="NotificationDTO">The created email notification.</ResponseField>diff --git a/apps/docs/rc/references/workflows/seller/suspend-seller.mdx b/apps/docs/rc/references/workflows/seller/suspend-seller.mdxnew file mode 100644index 000000000..511b4f11e--- /dev/null+++ b/apps/docs/rc/references/workflows/seller/suspend-seller.mdx@@ -0,0 +1,35 @@+---+title: "suspendSellerWorkflow"+description: "Suspend a seller with an optional reason."+---++Validates the seller can be suspended, sets `status` to `suspended`, records the reason, and stamps `rejected_at` on first suspension. Triggered by `POST /admin/sellers/:id/suspend`. Emits `seller.suspended`.++## Usage++```ts+import { suspendSellerWorkflow } from "@mercurjs/core/workflows"++await suspendSellerWorkflow(container).run({+ input: { seller_id: "sel_123", reason: "Policy violation" },+})+```++## Input++<ParamField body="seller_id" type="string" required>Id of the seller to suspend.</ParamField>+<ParamField body="reason" type="string">Reason stored in `status_reason`.</ParamField>++## Result++<ResponseField name="result" type="void">Nothing is returned.</ResponseField>++## Hooks++- `sellerSuspended` — runs after suspension with `{ seller_id }`.++```ts+suspendSellerWorkflow.hooks.sellerSuspended(async ({ seller_id }) => {+ // e.g. pause the seller's listings+})+```diff --git a/apps/docs/rc/references/workflows/seller/terminate-seller.mdx b/apps/docs/rc/references/workflows/seller/terminate-seller.mdxnew file mode 100644index 000000000..3cd01c741--- /dev/null+++ b/apps/docs/rc/references/workflows/seller/terminate-seller.mdx@@ -0,0 +1,35 @@+---+title: "terminateSellerWorkflow"+description: "Terminate a seller with an optional reason."+---++Validates the seller can be terminated, then sets `status` to `terminated` and records the reason. Emits `seller.terminated`.++## Usage++```ts+import { terminateSellerWorkflow } from "@mercurjs/core/workflows"++await terminateSellerWorkflow(container).run({+ input: { seller_id: "sel_123", reason: "Account closure requested" },+})+```++## Input++<ParamField body="seller_id" type="string" required>Id of the seller to terminate.</ParamField>+<ParamField body="reason" type="string">Reason stored in `status_reason`.</ParamField>++## Result++<ResponseField name="result" type="void">Nothing is returned.</ResponseField>++## Hooks++- `sellerTerminated` — runs after termination with `{ seller_id }`.++```ts+terminateSellerWorkflow.hooks.sellerTerminated(async ({ seller_id }) => {+ // e.g. archive the seller's data+})+```diff --git a/apps/docs/rc/references/workflows/seller/unsuspend-seller.mdx b/apps/docs/rc/references/workflows/seller/unsuspend-seller.mdxnew file mode 100644index 000000000..551605548--- /dev/null+++ b/apps/docs/rc/references/workflows/seller/unsuspend-seller.mdx@@ -0,0 +1,34 @@+---+title: "unsuspendSellerWorkflow"+description: "Lift a seller suspension."+---++Validates the seller is currently suspended, then sets `status` back to `open` and clears `status_reason`. Triggered by `POST /admin/sellers/:id/unsuspend`. Emits `seller.unsuspended`.++## Usage++```ts+import { unsuspendSellerWorkflow } from "@mercurjs/core/workflows"++await unsuspendSellerWorkflow(container).run({+ input: { seller_id: "sel_123" },+})+```++## Input++<ParamField body="seller_id" type="string" required>Id of the suspended seller.</ParamField>++## Result++<ResponseField name="result" type="void">Nothing is returned.</ResponseField>++## Hooks++- `sellerUnsuspended` — runs after the status change with `{ seller_id }`.++```ts+unsuspendSellerWorkflow.hooks.sellerUnsuspended(async ({ seller_id }) => {+ // e.g. re-enable listings+})+```diff --git a/apps/docs/rc/references/workflows/seller/unterminate-seller.mdx b/apps/docs/rc/references/workflows/seller/unterminate-seller.mdxnew file mode 100644index 000000000..f977eb62e--- /dev/null+++ b/apps/docs/rc/references/workflows/seller/unterminate-seller.mdx@@ -0,0 +1,34 @@+---+title: "unterminateSellerWorkflow"+description: "Revert a terminated seller back to suspended."+---++Validates the seller is currently terminated, then sets `status` to `suspended` and clears `status_reason`. The seller must be unsuspended separately to reopen the store. Emits `seller.unterminated`.++## Usage++```ts+import { unterminateSellerWorkflow } from "@mercurjs/core/workflows"++await unterminateSellerWorkflow(container).run({+ input: { seller_id: "sel_123" },+})+```++## Input++<ParamField body="seller_id" type="string" required>Id of the terminated seller.</ParamField>++## Result++<ResponseField name="result" type="void">Nothing is returned.</ResponseField>++## Hooks++- `sellerUnterminated` — runs after the status change with `{ seller_id }`.++```ts+unterminateSellerWorkflow.hooks.sellerUnterminated(async ({ seller_id }) => {+ // e.g. notify the operator+})+```diff --git a/apps/docs/rc/references/workflows/seller/update-seller-address.mdx b/apps/docs/rc/references/workflows/seller/update-seller-address.mdxnew file mode 100644index 000000000..eb79efae0--- /dev/null+++ b/apps/docs/rc/references/workflows/seller/update-seller-address.mdx@@ -0,0 +1,55 @@+---+title: "updateSellerAddressWorkflow"+description: "Upsert a seller's address."+---++Creates or updates the address record attached to a seller. Also run as a step by `createSellerAccountWorkflow` when an address is provided at registration.++## Usage++```ts+import { updateSellerAddressWorkflow } from "@mercurjs/core/workflows"++const { result } = await updateSellerAddressWorkflow(container).run({+ input: {+ seller_id: "sel_123",+ data: { address_1: "1 Main St", city: "Berlin", country_code: "de" },+ },+})+```++## Input++<ParamField body="seller_id" type="string" required>Id of the seller whose address is updated.</ParamField>+<ParamField body="data" type="UpdateSellerAddressDTO" required>+ Address fields to set; all optional.+ <Expandable title="properties">+ <ParamField body="name" type="string">Address label.</ParamField>+ <ParamField body="company" type="string">Company name.</ParamField>+ <ParamField body="first_name" type="string">Contact first name.</ParamField>+ <ParamField body="last_name" type="string">Contact last name.</ParamField>+ <ParamField body="address_1" type="string">Street address, line 1.</ParamField>+ <ParamField body="address_2" type="string">Street address, line 2.</ParamField>+ <ParamField body="city" type="string">City.</ParamField>+ <ParamField body="country_code" type="string">ISO 2-letter country code.</ParamField>+ <ParamField body="province" type="string">Province or state.</ParamField>+ <ParamField body="postal_code" type="string">Postal code.</ParamField>+ <ParamField body="phone" type="string">Phone number.</ParamField>+ <ParamField body="metadata" type="object">Custom key-value data.</ParamField>+ </Expandable>+</ParamField>+<ParamField body="additional_data" type="object">Custom data passed through to the workflow hooks.</ParamField>++## Result++<ResponseField name="result" type="SellerAddressDTO">The updated address.</ResponseField>++## Hooks++- `addressUpdated` — runs after the update with `{ address, additional_data }`.++```ts+updateSellerAddressWorkflow.hooks.addressUpdated(async ({ address }) => {+ // e.g. re-verify tax settings+})+```diff --git a/apps/docs/rc/references/workflows/seller/update-seller-payment-details.mdx b/apps/docs/rc/references/workflows/seller/update-seller-payment-details.mdxnew file mode 100644index 000000000..81a3c0770--- /dev/null+++ b/apps/docs/rc/references/workflows/seller/update-seller-payment-details.mdx@@ -0,0 +1,52 @@+---+title: "updateSellerPaymentDetailsWorkflow"+description: "Upsert a seller's bank payment details."+---++Creates or updates the payment details record attached to a seller. Also run as a step by `createSellerAccountWorkflow` when payment details are provided at registration.++## Usage++```ts+import { updateSellerPaymentDetailsWorkflow } from "@mercurjs/core/workflows"++const { result } = await updateSellerPaymentDetailsWorkflow(container).run({+ input: {+ seller_id: "sel_123",+ data: { holder_name: "Acme GmbH", iban: "DE89370400440532013000" },+ },+})+```++## Input++<ParamField body="seller_id" type="string" required>Id of the seller whose payment details are updated.</ParamField>+<ParamField body="data" type="UpdatePaymentDetailsDTO" required>+ Payment fields to set; all optional.+ <Expandable title="properties">+ <ParamField body="country_code" type="string">Bank country code.</ParamField>+ <ParamField body="holder_name" type="string">Account holder name.</ParamField>+ <ParamField body="bank_name" type="string">Bank name.</ParamField>+ <ParamField body="iban" type="string">IBAN.</ParamField>+ <ParamField body="bic" type="string">BIC / SWIFT code.</ParamField>+ <ParamField body="routing_number" type="string">Routing number.</ParamField>+ <ParamField body="account_number" type="string">Account number.</ParamField>+ </Expandable>+</ParamField>+<ParamField body="additional_data" type="object">Custom data passed through to the workflow hooks.</ParamField>++## Result++<ResponseField name="result" type="PaymentDetailsDTO">The updated payment details.</ResponseField>++## Hooks++- `paymentDetailsUpdated` — runs after the update with `{ payment_details, additional_data }`.++```ts+updateSellerPaymentDetailsWorkflow.hooks.paymentDetailsUpdated(+ async ({ payment_details }) => {+ // e.g. trigger payout account re-verification+ }+)+```diff --git a/apps/docs/rc/references/workflows/seller/update-seller-professional-details.mdx b/apps/docs/rc/references/workflows/seller/update-seller-professional-details.mdxnew file mode 100644index 000000000..43389f8d2--- /dev/null+++ b/apps/docs/rc/references/workflows/seller/update-seller-professional-details.mdx@@ -0,0 +1,48 @@+---+title: "updateSellerProfessionalDetailsWorkflow"+description: "Upsert a seller's professional (business) details."+---++Creates or updates the professional details record attached to a seller. Also run as a step by `createSellerAccountWorkflow` when professional details are provided at registration.++## Usage++```ts+import { updateSellerProfessionalDetailsWorkflow } from "@mercurjs/core/workflows"++const { result } = await updateSellerProfessionalDetailsWorkflow(container).run({+ input: {+ seller_id: "sel_123",+ data: { corporate_name: "Acme GmbH", tax_id: "DE123456789" },+ },+})+```++## Input++<ParamField body="seller_id" type="string" required>Id of the seller whose professional details are updated.</ParamField>+<ParamField body="data" type="UpdateProfessionalDetailsDTO" required>+ Fields to set; all optional.+ <Expandable title="properties">+ <ParamField body="corporate_name" type="string">Registered corporate name.</ParamField>+ <ParamField body="registration_number" type="string">Company registration number.</ParamField>+ <ParamField body="tax_id" type="string">Tax identifier.</ParamField>+ </Expandable>+</ParamField>+<ParamField body="additional_data" type="object">Custom data passed through to the workflow hooks.</ParamField>++## Result++<ResponseField name="result" type="ProfessionalDetailsDTO">The updated professional details.</ResponseField>++## Hooks++- `professionalDetailsUpdated` — runs after the update with `{ professional_details, additional_data }`.++```ts+updateSellerProfessionalDetailsWorkflow.hooks.professionalDetailsUpdated(+ async ({ professional_details }) => {+ // e.g. re-run KYB checks+ }+)+```diff --git a/apps/docs/rc/references/workflows/seller/update-sellers.mdx b/apps/docs/rc/references/workflows/seller/update-sellers.mdxnew file mode 100644index 000000000..91c48b5c9--- /dev/null+++ b/apps/docs/rc/references/workflows/seller/update-sellers.mdx@@ -0,0 +1,57 @@+---+title: "updateSellersWorkflow"+description: "Update sellers matching a selector."+---++Updates every seller matching the selector with the given data. Triggered by `POST /admin/sellers/:id` and `POST /vendor/sellers/:id`. Emits `seller.updated` for each updated seller.++## Usage++```ts+import { updateSellersWorkflow } from "@mercurjs/core/workflows"++const { result } = await updateSellersWorkflow(container).run({+ input: {+ selector: { id: "sel_123" },+ update: { name: "Acme Inc." },+ },+})+```++## Input++<ParamField body="selector" type="object" required>Filter selecting the sellers to update, e.g. `{ id: "sel_123" }`.</ParamField>+<ParamField body="update" type="UpdateSellerDTO" required>+ Fields to update; all optional.+ <Expandable title="properties">+ <ParamField body="name" type="string">Display name.</ParamField>+ <ParamField body="handle" type="string">URL handle.</ParamField>+ <ParamField body="email" type="string">Contact email.</ParamField>+ <ParamField body="description" type="string">Public description.</ParamField>+ <ParamField body="logo" type="string">Logo URL.</ParamField>+ <ParamField body="banner" type="string">Banner URL.</ParamField>+ <ParamField body="website_url" type="string">Website URL.</ParamField>+ <ParamField body="external_id" type="string">External system identifier.</ParamField>+ <ParamField body="status" type="string">One of `open`, `pending_approval`, `suspended`, `terminated`.</ParamField>+ <ParamField body="status_reason" type="string">Reason attached to the status.</ParamField>+ <ParamField body="is_premium" type="boolean">Premium flag.</ParamField>+ <ParamField body="closed_from" type="Date">Start of a store closure window.</ParamField>+ <ParamField body="closed_to" type="Date">End of a store closure window.</ParamField>+ <ParamField body="metadata" type="object">Custom key-value data.</ParamField>+ </Expandable>+</ParamField>+<ParamField body="additional_data" type="object">Custom data passed through to the workflow hooks.</ParamField>++## Result++<ResponseField name="result" type="SellerDTO[]">The updated sellers.</ResponseField>++## Hooks++- `sellersUpdated` — runs after the update with `{ sellers, additional_data }`.++```ts+updateSellersWorkflow.hooks.sellersUpdated(async ({ sellers }) => {+ // sync updated sellers elsewhere+})+```diff --git a/apps/docs/rc/resources/ai/llms.mdx b/apps/docs/rc/resources/ai/llms.mdxnew file mode 100644index 000000000..248e4c4d5--- /dev/null+++ b/apps/docs/rc/resources/ai/llms.mdx@@ -0,0 +1,74 @@+---+title: "LLMs"+description: "Feed Mercur documentation directly to LLMs for accurate, context-aware assistance."+---++# LLMs++Mercur documentation is optimized for Large Language Models using the [llms.txt standard](https://llmstxt.org). This gives AI tools a structured map of all documentation — so they can answer technical questions accurately instead of guessing.++Think of it like a sitemap, but for AI: a machine-readable file that describes what documentation exists, how it's organized, and where to find specific topics.++<Note>+ This page is for **chat assistants and hosted tools** (Claude, ChatGPT). If you're using a coding agent *inside* a Mercur project, prefer the version-matched docs bundled in `node_modules/@mercurjs/docs/` — see [Building with AI](/rc/resources/ai/overview).+</Note>++---++## Available files++### llms.txt++A structured index of all Mercur documentation pages with descriptions and links.++```+https://docs.mercurjs.com/llms.txt+```++Use this when your AI tool supports llms.txt natively or when you want to give it an overview of what's available without sending the full content.++### llms-full.txt++The entire Mercur documentation compiled into a single plain-text file.++```+https://docs.mercurjs.com/llms-full.txt+```++Use this when you want to give an LLM the complete context in one shot — ideal for complex questions that span multiple topics.++---++## How to use++<Tabs>+ <Tab title="Claude Projects">+ 1. Open [Claude](https://claude.ai) and create a new Project+ 2. In project knowledge, add a URL: `https://docs.mercurjs.com/llms-full.txt`+ 3. Claude now has full Mercur documentation context in every conversation within that project+ </Tab>+ <Tab title="ChatGPT">+ 1. Download `https://docs.mercurjs.com/llms-full.txt`+ 2. Upload it as a file in your conversation or attach it to a Custom GPT's knowledge base+ </Tab>+ <Tab title="AI IDE (paste)">+ For any AI coding tool that accepts context:+ 1. Fetch the file: `curl -o mercur-docs.txt https://docs.mercurjs.com/llms-full.txt`+ 2. Attach it to your conversation or project context+ </Tab>+</Tabs>++<Tip>+ Both files are auto-generated and always reflect the latest documentation. No maintenance required.+</Tip>++---++## When to use llms.txt vs MCP++| Approach | Best for |+|----------|----------|+| **llms.txt / llms-full.txt** | One-time context loading, tools without MCP support, offline use |+| **[MCP Server](/rc/resources/ai/mcp)** | Live search, always up-to-date results, integrated AI environments |++For the best experience, use the [MCP server](/rc/resources/ai/mcp) if your tool supports it. Fall back to llms.txt when MCP isn't available.diff --git a/apps/docs/rc/resources/ai/mcp.mdx b/apps/docs/rc/resources/ai/mcp.mdxnew file mode 100644index 000000000..37b5d7d17--- /dev/null+++ b/apps/docs/rc/resources/ai/mcp.mdx@@ -0,0 +1,152 @@+---+title: "MCP Server"+description: "Connect your AI environment to Mercur documentation via Model Context Protocol."+---++# MCP Server++Mercur exposes a [Model Context Protocol](https://modelcontextprotocol.io) (MCP) server that lets AI tools **search Mercur documentation directly**. Instead of relying on training data that may be outdated, your AI assistant queries the actual docs in real time.++```+https://docs.mercurjs.com/mcp+```++---++## Available tool++### SearchMercurJsDocumentation++Searches across all Mercur documentation and returns:++- Relevant excerpts matching your query+- Page titles for context+- Direct links to documentation pages++Use it when you need to look up API references, understand how a module works, find CLI commands, or retrieve examples during development.++---++## Connect to your AI environment++<Tabs>+ <Tab title="Cursor">+ <Steps>+ <Step title="Open MCP settings">+ 1. Press <kbd>Cmd</kbd> + <kbd>Shift</kbd> + <kbd>P</kbd>+ 2. Search for **Open MCP settings**+ 3. Select **Add custom MCP**+ </Step>+ <Step title="Configure the server">+ Add the following to your `mcp.json`:++ ```json+ {+ "mcpServers": {+ "mercur": {+ "url": "https://docs.mercurjs.com/mcp"+ }+ }+ }+ ```+ </Step>+ <Step title="Use it">+ Restart Cursor and ask: **"Search Mercur docs for how to add a block"**+ </Step>+ </Steps>++ See [Cursor MCP docs](https://docs.cursor.com/en/context/mcp) for more.+ </Tab>+ <Tab title="VS Code">+ <Steps>+ <Step title="Create MCP config">+ Create a file at `.vscode/mcp.json` in your project root.+ </Step>+ <Step title="Configure the server">+ ```json+ {+ "servers": {+ "mercur": {+ "type": "http",+ "url": "https://docs.mercurjs.com/mcp"+ }+ }+ }+ ```+ </Step>+ <Step title="Use it">+ Open the Copilot Chat panel and ask: **"List available MCP servers."**+ </Step>+ </Steps>++ See [VS Code MCP docs](https://code.visualstudio.com/docs/copilot/chat/mcp-servers) for more.+ </Tab>+ <Tab title="Windsurf">+ <Steps>+ <Step title="Open MCP config">+ 1. Press <kbd>Cmd</kbd> + <kbd>Shift</kbd> + <kbd>P</kbd>+ 2. Search for **Open Windsurf MCP Configuration**+ </Step>+ <Step title="Configure the server">+ ```json+ {+ "mcpServers": {+ "mercur": {+ "serverUrl": "https://docs.mercurjs.com/mcp"+ }+ }+ }+ ```+ </Step>+ <Step title="Use it">+ Open Cascade and ask: **"Search Mercur docs for seller setup"**+ </Step>+ </Steps>+ </Tab>+ <Tab title="Claude">+ <Steps>+ <Step title="Add the MCP server">+ 1. Go to Claude → Settings → **Connectors**+ 2. Select **Add custom connector**+ 3. Enter:+ - **Name**: Mercur+ - **URL**: `https://docs.mercurjs.com/mcp`+ 4. Save+ </Step>+ <Step title="Use it">+ In chat, click the **attachments (+)** button and select your Mercur MCP connector.+ </Step>+ </Steps>++ See [Claude connector docs](https://modelcontextprotocol.io/docs/tutorials/use-remote-mcp-server) for more.+ </Tab>+ <Tab title="Claude Code">+ <Steps>+ <Step title="Install the MCP server">+ ```bash+ claude mcp add --transport http mercur https://docs.mercurjs.com/mcp+ ```+ </Step>+ <Step title="Verify installation">+ ```bash+ claude mcp list+ ```+ </Step>+ <Step title="Use it">+ Claude Code can now query Mercur documentation directly during any conversation.+ </Step>+ </Steps>++ See [Claude Code MCP docs](https://docs.anthropic.com/en/docs/claude-code/mcp) for more.+ </Tab>+</Tabs>++---++## Choosing an approach++| Approach | Best for |+|----------|----------|+| **[Bundled docs](/rc/resources/ai/overview)** | Coding agents inside a project — version-matched, offline, no setup |+| **MCP Server** | Live search from your editor, always the latest published docs |+| **[llms.txt](/rc/resources/ai/llms)** | Feeding full context to a chat assistant (Claude, ChatGPT) |diff --git a/apps/docs/rc/resources/ai/overview.mdx b/apps/docs/rc/resources/ai/overview.mdxnew file mode 100644index 000000000..0e74ccdf0--- /dev/null+++ b/apps/docs/rc/resources/ai/overview.mdx@@ -0,0 +1,97 @@+---+title: "Building with AI"+description: "Mercur ships version-matched docs inside your project so AI coding agents build from accurate APIs instead of stale training data."+---++Mercur is built so AI coding agents work from **accurate, version-matched documentation** instead of their training data — which is almost always out of date for a fast-moving framework. The docs ship *inside your project's dependencies*, and your project tells agents to read them before writing any code.++<Info>+ **Why agents do well here.** Every extension surface an agent touches has a machine-checkable contract: routes generate the [typed client](/rc/tools/api-client) (wrong calls fail to compile), pages follow [file conventions](/rc/resources/customization/extending-panels) the SDK validates at build time, and blocks are diffable source. An agent doesn't need to guess whether its change works — the toolchain tells it.+</Info>++## How it works++When you install a Mercur project, the documentation is bundled as a dependency at `node_modules/@mercurjs/docs/`. It mirrors the structure of this site:++```txt+node_modules/@mercurjs/docs/+├── llms.txt # index: every page with a one-line description+└── content/+ ├── learn/ # concepts — sellers, products, offers, commissions…+ ├── resources/ # tutorials, integrations, deployment, this guide+ ├── tools/ # CLI, API client, dashboard SDK+ ├── references/ # module, HTTP API, and configuration reference+ └── user-guide/ # admin and vendor panel usage+```++Because the docs travel with the package, an agent always has documentation that **matches your installed version** — no network request, no external lookup, and no drift between what the agent reads and what your code actually runs.++## Set up your project++### New projects++Projects created with `bunx @mercurjs/cli@rc create` are ready out of the box. The template ships:++- `@mercurjs/docs` as a dependency, so the docs land in `node_modules` on install+- an `AGENTS.md` and a `CLAUDE.md` at the project root that tell agents to read the bundled docs first++Most AI coding agents — Claude Code, Cursor, GitHub Copilot, and others — read `AGENTS.md` automatically when they start a session. There is nothing else to configure.++### Existing projects++Add the docs dependency:++```bash+bun add @mercurjs/docs+```++Then create an `AGENTS.md` at the project root with a single, focused instruction:++```md AGENTS.md+# Mercur: read the docs before coding++Before any non-trivial change, read the bundled documentation — it is+version-matched to this project's installed packages, and far more accurate+than training data.++1. Read the index: `node_modules/@mercurjs/docs/llms.txt`+2. Open the pages it points to under `node_modules/@mercurjs/docs/content/`++Don't guess at an API, data model, or file convention the docs already describe.+```++[Claude Code](https://docs.anthropic.com/en/docs/claude-code) reads `CLAUDE.md`; point it at the same instructions instead of duplicating them:++```md CLAUDE.md+```++## What the agent reads++The workflow is deliberately simple: **index first, then the page.** An agent reads `llms.txt` to see what exists, then opens the one or two `content/` pages relevant to the task before implementing. The bundled docs cover the full domain model (sellers, products, offers, attributes, commissions, payouts, order groups), the CLI, the typed API client, the dashboard SDK, module references, and how-to guides — so the agent looks up the correct contract rather than inventing one.++## Verify its work++Mercur gives an agent a fast, machine-checkable way to know whether a change is correct — the equivalent of a grading loop it can run itself:++| Check | What it proves |+|-------|----------------|+| `bun run build` | Types resolve and the generated client matches the routes |+| `bun run lint` | Code conforms to the project's rules |+| Integration tests (`packages/api`) | Backend behavior still holds |+| `bunx @mercurjs/cli@rc diff` | Local blocks vs. the registry — what changed and what drifted |++Because these are objective, an agent can define what "done" looks like, run the checks, read the output, and iterate until they pass — instead of stopping at "looks plausible."++## Beyond bundled docs++The bundled docs are for agents working *inside your project*. For chat assistants and hosted tools, Mercur also publishes its docs online:++<CardGroup cols={2}>+ <Card title="llms.txt" href="/rc/resources/ai/llms">+ Feed the full documentation to Claude, ChatGPT, or any LLM.+ </Card>+ <Card title="MCP server" href="/rc/resources/ai/mcp">+ Let your editor search the docs live via Model Context Protocol.+ </Card>+</CardGroup>diff --git a/apps/docs/rc/resources/customization/custom-fields.mdx b/apps/docs/rc/resources/customization/custom-fields.mdxnew file mode 100644index 000000000..d25d39d6f--- /dev/null+++ b/apps/docs/rc/resources/customization/custom-fields.mdx@@ -0,0 +1,182 @@+---+title: "Custom Fields"+description: "Extend any Medusa entity with additional fields without modifying core code."+---++Custom Fields let you attach extra data to any existing Medusa entity — products, customers, orders, and more — through configuration alone. No migrations to write, no models to define. The module handles table creation and schema updates automatically when you run `db:migrate`.++<Info>+ **Where this sits in the stack.** Custom Fields is a Mercur module (`@mercurjs/core/modules/custom-fields`) layered on top of Medusa's standard module-link system — it generates the side table, the link, and the schema for you. It's the lightest way to add data to an entity.+</Info>++## When to use Custom Fields++<Tip>+ **Use Custom Fields when** the data is a plain property of an existing entity — it belongs to exactly one record, has no lifecycle of its own, and you mostly read it alongside its parent. Typical cases:++ - A `brand`, `warranty_months`, or `is_featured` flag on a product+ - A `company_name` or loyalty `tier` on a customer+ - An internal `source` or `priority` tag on an order++ You get a typed column, a default value, and queryability through `query.graph` — for the cost of one config entry and a `db:migrate`.+</Tip>++<Warning>+ **Build a custom Medusa module instead when** the data outgrows "extra columns":++ - It has its **own lifecycle** — created, updated, and deleted independently of the parent (e.g. reviews, support tickets)+ - It has **relations** to more than one entity, or many records per parent+ - It carries **business logic** — validation rules, state transitions, workflows+ - You need **its own API routes** and permissions around it++ Custom Fields is strictly one row per parent entity. Forcing a one-to-many or stateful concept into a JSON field works until it doesn't — model it as a module (or check whether a [block](/rc/learn/blocks) already ships it).+</Warning>++## How it works++The Custom Fields module creates a separate table for each entity you extend (e.g. `product_custom_fields`). Each table is linked back to the original entity via a foreign key with a unique constraint, ensuring a one-to-one relationship. The module automatically registers these links so you can query custom fields through Medusa's standard remote query.++## Set up custom fields++<Steps>+ <Step title="Define your fields in medusa-config.ts">+ Register the Custom Fields module and describe your fields in the `customFields` option:++ ```ts medusa-config.ts+ import { Modules } from "@medusajs/framework/utils";++ module.exports = defineConfig({+ // ...+ modules: [+ {+ resolve: "@mercurjs/core/modules/custom-fields",+ options: {+ customFields: {+ Product: {+ brand: { type: "string", nullable: true },+ is_featured: { type: "boolean", defaultValue: false },+ weight: { type: "float", nullable: true },+ },+ Customer: {+ company_name: { type: "string", nullable: true },+ tier: {+ type: "enum",+ enum: ["bronze", "silver", "gold"],+ defaultValue: "bronze",+ },+ },+ },+ },+ },+ ],+ });+ ```++ <Warning>+ The key in `customFields` (e.g. `Product`, `Customer`) must match the entity name as registered in Medusa's joiner configuration — a mismatched name fails at link resolution, not at config load, so double-check spelling and casing.+ </Warning>+ </Step>+ <Step title="Run migrations">+ ```bash+ bunx medusa db:migrate+ ```++ The module generates and applies the schema for each side table automatically.+ </Step>+ <Step title="Query the fields">+ Custom fields are automatically linked to their parent entity. Retrieve them with Medusa's remote query:++ ```ts+ const products = await query.graph({+ entity: "product",+ fields: ["id", "title", "custom_fields.*"],+ });+ ```+ </Step>+</Steps>++## Supported field types++| Type | Description |+| ---------- | --------------------------------------------------------- |+| `string` | Short text |+| `text` | Long text |+| `integer` | Whole number |+| `float` | Decimal number |+| `boolean` | True/false |+| `date` | Date only |+| `time` | Time only |+| `datetime` | Date and time |+| `json` | JSON object |+| `array` | Array of values |+| `enum` | One of a predefined set of values (requires `enum` array) |++### Field options++| Option | Type | Default | Description |+| -------------- | ---------- | ------- | ------------------------------------------------ |+| `nullable` | `boolean` | `true` | Whether the field can be null |+| `defaultValue` | `any` | `null` | Default value for the field |+| `enum` | `string[]` | — | Required for `enum` type. List of allowed values |++## Using the service directly++The Custom Fields module exposes a service with `upsert`, `delete`, and `list` methods. You can use these in your own workflows and API routes:++```ts+import { MercurModules } from "@mercurjs/types";++// In a step or API route+const customFieldsService = container.resolve(MercurModules.CUSTOM_FIELDS);++// Create or update custom fields for a product+await customFieldsService.upsert("product", {+ id: "prod_123",+ brand: "Acme",+ is_featured: true,+});++// Delete custom fields by record ID+await customFieldsService.delete("product", ["cf_456"]);+```++The `upsert` method accepts either a single object or an array. If a record already exists for the given entity ID, it updates it; otherwise, it creates a new one.++## Workflow steps++The module ships with two workflow steps you can compose into your own workflows:++```ts+import {+ upsertCustomFieldsStep,+ deleteCustomFieldsStep,+} from "@mercurjs/core/workflows";+```++- **`upsertCustomFieldsStep`** — Takes `{ alias, data }` where `alias` is the entity name (e.g. `"product"`) and `data` contains the entity ID and field values.+- **`deleteCustomFieldsStep`** — Takes `{ alias, ids }` to soft-delete custom field records by their IDs.++## FAQ++<AccordionGroup>+ <Accordion title="Can I add or change fields after the first migration?">+ Yes — edit the `customFields` config and run `db:migrate` again; the module updates the side table's schema. Removing a field from config stops exposing it; treat destructive column changes with the same care as any schema migration.+ </Accordion>+ <Accordion title="How do vendors or admins edit these values from the panels?">+ Through your own UI: add a page or re-compose an existing one ([extending panels](/rc/resources/customization/extending-panels)) and call an API route that uses the service's `upsert` — or compose `upsertCustomFieldsStep` into a workflow behind a [custom route](/rc/resources/tutorials/custom-api-route).+ </Accordion>+ <Accordion title="Can one entity have multiple custom-field records?">+ No — the side table has a unique constraint on the parent ID, enforcing one-to-one. If you need many records per parent, that's a custom module, not custom fields.+ </Accordion>+</AccordionGroup>++## Next steps++<CardGroup cols={2}>+ <Card title="Add a custom API route" href="/rc/resources/tutorials/custom-api-route">+ Expose your custom fields through a typed endpoint.+ </Card>+ <Card title="Extend a workflow" href="/rc/resources/customization/extend-a-workflow">+ Write custom fields from inside existing business flows.+ </Card>+</CardGroup>diff --git a/apps/docs/rc/resources/customization/extend-a-workflow.mdx b/apps/docs/rc/resources/customization/extend-a-workflow.mdxnew file mode 100644index 000000000..7236d8790--- /dev/null+++ b/apps/docs/rc/resources/customization/extend-a-workflow.mdx@@ -0,0 +1,39 @@+---+title: "Extend a workflow"+description: "Inject custom logic into an existing Mercur workflow through hooks — without rewriting it."+---++<Note>+ This guide is being written. The outline below is the intended structure.+</Note>++<Info>+ **Workflows are Medusa's extension model — Mercur keeps it.** Unlike the panels (where Mercur ships [its own customization framework](/rc/resources/customization/extending-panels)), backend logic follows Medusa conventions unchanged: Mercur's workflows expose hooks you inject steps into, with the same compensation/rollback semantics as any Medusa workflow. Skills learned in plain Medusa transfer here one-to-one.+</Info>++## Why hooks++Extend behavior without forking or rewriting the workflow.++<Steps>+ <Step title="Pick the target hook">+ The `completeCartWithSplitOrdersWorkflow` and where its hooks sit.+ </Step>+ <Step title="Inject a step">+ The shape of a hook and how to register your step.+ </Step>+ <Step title="Handle compensation and rollback">+ How your step participates in automatic rollback on failure.+ </Step>+</Steps>++## Verify++Confirm the injected behavior runs and rolls back correctly.++## Next steps++<CardGroup cols={2}>+ <Card title="Add a custom API route" href="/rc/resources/tutorials/custom-api-route" />+ <Card title="Custom fields" href="/rc/resources/customization/custom-fields" />+</CardGroup>diff --git a/apps/docs/rc/resources/customization/extending-panels.mdx b/apps/docs/rc/resources/customization/extending-panels.mdxnew file mode 100644index 000000000..ffb7d6b2e--- /dev/null+++ b/apps/docs/rc/resources/customization/extending-panels.mdx@@ -0,0 +1,309 @@+---+title: "Extending Panels"+description: "Add pages, customize navigation, branding, and replace components in the admin and vendor panels."+---++Both the admin panel and vendor portal use the same SDK (`@mercurjs/dashboard-sdk`). Customization is file-based and convention-driven — you add pages by creating files, configure navigation through exports, and override components through config.++<Info>+ **Mercur does not use Medusa's admin customization.** If you're coming from Medusa, forget `defineWidgetConfig`, `defineRouteConfig`, and widget injection zones — none of them exist here. Mercur ships its own admin **and** vendor panels, built on a shared extension framework with three mechanisms: **drop-in routes** (file-based pages that can also *replace* built-in pages), **compound-component re-composition** (every built-in page exposes its parts as slots), and **named layout overrides** (sidebar, topbar, store setup). The trade: instead of injecting widgets into fixed zones around a page Medusa controls, you compose the actual page — which is what makes a two-panel marketplace customizable without forking.+</Info>++## Choosing your extension mechanism++Junior-friendly rule of thumb: **adding something new? Drop in a route. Changing something that exists? Re-compose it. Changing the frame around every page? Override a component. Sharing it across projects? Make it a block.**++| You want to… | Use | Why it's the right tool |+|--------------|-----|------------------------|+| Add a new screen or feature | A drop-in `page.tsx` route | New URL, auto-registered, sidebar entry via the `config` export — see [Add a page](#add-a-page) |+| Change part of an existing page | A drop-in route **at the same path**, re-composing the page's compound slots | Your route replaces the built-in one; untouched slots keep all their behavior — see the [re-compose tutorial](/rc/resources/tutorials/recompose-a-page) |+| Change global chrome (sidebar, topbar, store setup) | A component override in the plugin config | One component, applied everywhere its slot renders — see [Replace components](#replace-components) |+| Reuse a feature across projects | A [block](/rc/learn/blocks) | Ships API + admin + vendor files installable with `mercurjs add` — see the [build-a-block tutorial](/rc/resources/tutorials/build-a-block) |++<Note>+ The middle row is the one Medusa developers miss most. Because built-in pages are exported as compound components (e.g. `ProductListPage` from `@mercurjs/vendor/pages` with `Header`, `HeaderActions`, `DataTable` slots), "customize the products page" doesn't mean forking it — it means rendering it with your own composition and reusing the slots you don't change.+</Note>++## Set up++All configuration lives in the panel app's Vite config — there is no separate config file.++<Steps>+ <Step title="Register the plugin">+ Add `mercurDashboardPlugin` to the panel app's `vite.config.ts`. The only required option is `medusaConfigPath` — the plugin reads panel paths and ports from your API's Medusa config:++ ```typescript vite.config.ts+ import { defineConfig } from 'vite'+ import react from '@vitejs/plugin-react'+ import { mercurDashboardPlugin } from '@mercurjs/dashboard-sdk'++ export default defineConfig({+ plugins: [+ react(),+ mercurDashboardPlugin({+ medusaConfigPath: '../../packages/api/medusa-config.ts',+ name: 'My Marketplace',+ logo: 'https://example.com/logo.svg',+ }),+ ],+ })+ ```++ Projects created with `create-mercur-app` ship with this already wired for both panels.+ </Step>+ <Step title="Pass environment values explicitly">+ The plugin doesn't read `.env` itself — load environment variables in `vite.config.ts` (e.g. with Vite's `loadEnv`) and pass them into the plugin options, as the starter template does with `backendUrl`.+ </Step>+ <Step title="Restart after config changes">+ Options are applied at build time through virtual modules. Adding or removing routes hot-reloads automatically, but changes to the plugin options require a dev-server restart.+ </Step>+</Steps>++### Configuration options++| Option | Type | Description |+|--------|------|-------------|+| `medusaConfigPath` | `string` | **Required.** Path to your API's `medusa-config.ts`, relative to the panel project root |+| `backendUrl` | `string` | Medusa backend URL (default: `http://localhost:9000`) |+| `vendorUrl` | `string` | Absolute vendor portal URL including its path prefix |+| `name` | `string` | Application name shown in the sidebar |+| `logo` | `string` | URL to a logo image |+| `components` | `object` | Component overrides (see [Replace components](#replace-components)) |+| `i18n` | `object` | Internationalization settings (`{ defaultLanguage }`) |+| `enableSellerRegistration` | `boolean` | Enable the public seller registration flow (vendor portal) |+| `imageLimit` | `number` | Max upload size for images in bytes (default: 2 MB) |++## Add a page++<Steps>+ <Step title="Create the route file">+ Create a `page.tsx` inside `src/routes/` and export a default React component. The route is determined by the file path:++ ```tsx src/routes/reviews/page.tsx+ import { Star } from "@medusajs/icons"+ import type { RouteConfig } from "@mercurjs/dashboard-sdk"++ export const config: RouteConfig = {+ label: "Reviews",+ icon: Star,+ rank: 10,+ }++ export default function ReviewsPage() {+ return <div>Reviews</div>+ }+ ```+ </Step>+ <Step title="Add the config export for navigation">+ A sidebar item is generated only when the page exports a `config` with a `label`. Pages without one are still routed — they just don't appear in the menu.++ | Property | Type | Description |+ |----------|------|-------------|+ | `label` | `string` | **Required.** Text shown in the sidebar menu |+ | `icon` | `ComponentType` | Icon component (e.g. from `@medusajs/icons`) |+ | `rank` | `number` | Sort order — lower numbers appear first |+ | `nested` | `string` | Parent path for nested menu items |+ | `translationNs` | `string` | i18n namespace for the label |+ | `public` | `boolean` | If `true`, the route is accessible without authentication |++ Route files may also export a `loader` (React Router data loader) and `handle` (route metadata) alongside the default component.+ </Step>+ <Step title="Open it in the running panel">+ Start the dev server — the SDK picks the file up automatically. This example creates a `/reviews` route with a "Reviews" sidebar item. No route registration, no configuration file.+ </Step>+</Steps>++<Info>+ **Matching paths replace, new paths append.** If your route's path matches a built-in page (e.g. `src/routes/products/page.tsx` → `/products`), your page **replaces** the built-in one — that's the override mechanism, no registration needed. Any other path is added alongside the built-in routes. Delete the file and the built-in page returns.+</Info>++### Routing conventions++File paths map to URL routes automatically:++| File path | Route | Description |+|-----------|-------|-------------|+| `src/routes/page.tsx` | `/` | Root page |+| `src/routes/reviews/page.tsx` | `/reviews` | Static segment |+| `src/routes/reviews/[id]/page.tsx` | `/reviews/:id` | Dynamic segment |+| `src/routes/reviews/[[id]]/page.tsx` | `/reviews/:id?` | Optional dynamic segment |+| `src/routes/search/[*]/page.tsx` | `/search/*` | Catch-all |+| `src/routes/(settings)/page.tsx` | Route grouping | Groups routes without adding a URL segment |+| `src/routes/dashboard/@sidebar/page.tsx` | Parallel route | Renders alongside parent |++## Navigation++Sidebar items are generated from pages that export a `config` with a `label`.++### Ordering++Use `rank` to control the order. Lower values appear higher:++```tsx+// src/routes/orders/page.tsx+export const config: RouteConfig = {+ label: "Orders",+ icon: ShoppingCart,+ rank: 1,+}++// src/routes/products/page.tsx+export const config: RouteConfig = {+ label: "Products",+ icon: Tag,+ rank: 2,+}+```++### Nested menus++Use `nested` to group pages under a parent:++```tsx src/routes/settings/shipping/page.tsx+export const config: RouteConfig = {+ label: "Shipping",+ nested: "/settings",+}+```++This places "Shipping" as a child item under `/settings` in the sidebar.++## Branding++Set `name` and `logo` in the plugin options to customize the sidebar header:++```typescript vite.config.ts+mercurDashboardPlugin({+ medusaConfigPath: '../../packages/api/medusa-config.ts',+ name: 'WeTest',+ logo: 'https://ui-avatars.com/api/?name=WeTest&background=18181B&color=fff&size=200&bold=true&format=svg',+})+```++## Replace components++<Steps>+ <Step title="Write the replacement">+ Create the component anywhere under `src/`. It must have a default export:++ ```tsx src/components/custom-topbar-actions.tsx+ export default function CustomTopbarActions() {+ return (+ <div>+ <button>Help</button>+ <button>Notifications</button>+ </div>+ )+ }+ ```+ </Step>+ <Step title="Point the config at it">+ Register it in the `components` option. Paths are relative to `src/`:++ ```typescript vite.config.ts+ mercurDashboardPlugin({+ medusaConfigPath: '../../packages/api/medusa-config.ts',+ name: 'My Marketplace',+ components: {+ MainSidebar: 'components/custom-sidebar',+ SettingsSidebar: 'components/custom-settings-sidebar',+ TopbarActions: 'components/custom-topbar-actions',+ },+ })+ ```+ </Step>+ <Step title="Restart and verify">+ Restart the dev server — your component now renders everywhere its slot appears. Remove the entry and restart to get the built-in back; the originals are never modified.+ </Step>+</Steps>++| Component | Description |+|-----------|-------------|+| `MainSidebar` | Primary navigation sidebar |+| `SettingsSidebar` | Settings section sidebar |+| `TopbarActions` | Action buttons in the top bar |+| `StoreSetup` | Store setup screen for new sellers (vendor portal) |++<Warning>+ These four slots are the complete list — there is no generic "replace any component" registry. If what you want to change isn't one of them, it's a page concern: [re-compose the page](/rc/resources/tutorials/recompose-a-page) instead.+</Warning>++## Internationalization++<Steps>+ <Step title="Create translation resources">+ ```typescript src/i18n/index.ts+ export default {+ en: {+ reviews: {+ title: "Reviews",+ description: "Manage product reviews",+ },+ },+ de: {+ reviews: {+ title: "Bewertungen",+ description: "Produktbewertungen verwalten",+ },+ },+ }+ ```+ </Step>+ <Step title="Reference the namespace in your page config">+ ```tsx src/routes/reviews/page.tsx+ export const config: RouteConfig = {+ label: "reviews.title",+ icon: Star,+ translationNs: "reviews",+ }+ ```+ </Step>+ <Step title="Set the default language">+ ```typescript vite.config.ts+ mercurDashboardPlugin({+ medusaConfigPath: '../../packages/api/medusa-config.ts',+ name: 'My Marketplace',+ i18n: {+ defaultLanguage: 'en',+ },+ })+ ```+ </Step>+</Steps>++## FAQ++<AccordionGroup>+ <Accordion title="Can I use Medusa's defineWidgetConfig or widget zones?">+ No. The Mercur panels don't load Medusa's admin extension system — there are no widget zones to inject into. The equivalent workflows are: drop-in routes for new pages, [compound-component re-composition](/rc/resources/tutorials/recompose-a-page) for changing existing pages, and the four `components` overrides for global chrome. Backend customization (workflows, modules, subscribers) still follows standard Medusa conventions.+ </Accordion>+ <Accordion title="How do I change just one part of a built-in page?">+ Import the page from the `/pages` subpath (`@mercurjs/vendor/pages` or `@mercurjs/admin/pages`), drop a route at the same path, and re-compose its slots — keep the slots you don't change and they retain all their behavior (data fetching, filters, pagination). The [re-compose tutorial](/rc/resources/tutorials/recompose-a-page) walks through a real example.+ </Accordion>+ <Accordion title="Why doesn't my page show up in the sidebar?">+ A sidebar item is only generated when the route file exports a `config` object with a `label`. Also check that the file is named exactly `page.tsx` (or `.ts`/`.jsx`/`.js`) under `src/routes/` and has a **default** export — files without one are skipped entirely.+ </Accordion>+ <Accordion title="Is there a mercur.config.ts file?">+ No — all panel configuration is passed inline to `mercurDashboardPlugin()` in `vite.config.ts`. If you've seen references to a separate config file, they're outdated.+ </Accordion>+ <Accordion title="Does this apply to both the admin panel and the vendor portal?">+ Yes — both panels use the same SDK and the same conventions. The differences are which built-in pages exist (`@mercurjs/admin/pages` vs `@mercurjs/vendor/pages`) and a few vendor-only options like `StoreSetup` and `enableSellerRegistration`.+ </Accordion>+</AccordionGroup>++## Next steps++<CardGroup cols={2}>+ <Card title="Add a custom panel page" href="/rc/resources/tutorials/custom-panel-page">+ Hands-on: your first drop-in route, end to end.+ </Card>+ <Card title="Re-compose a built-in page" href="/rc/resources/tutorials/recompose-a-page">+ Hands-on: override the vendor products page while keeping its table.+ </Card>+ <Card title="Replace panel components" href="/rc/resources/tutorials/replace-panel-components">+ Hands-on: swap the topbar actions and sidebar.+ </Card>+ <Card title="Build your own block" href="/rc/resources/tutorials/build-a-block">+ Package your customization and share it across projects.+ </Card>+</CardGroup>diff --git a/apps/docs/rc/resources/deployment/medusa-cloud.mdx b/apps/docs/rc/resources/deployment/medusa-cloud.mdxnew file mode 100644index 000000000..66c7e0f0f--- /dev/null+++ b/apps/docs/rc/resources/deployment/medusa-cloud.mdx@@ -0,0 +1,167 @@+---+title: "Medusa Cloud deployment"+description: "Deploy Mercur — backend, admin panel, and vendor panel — on Medusa Cloud."+---++## Introduction++[Medusa Cloud](https://cloud.medusajs.com) is a dedicated hosting service for Medusa-based applications. It automatically detects changes on your repository, pulls and builds the code, and provisions a database, Redis, and file storage.++Head to the [Medusa Cloud signup page](https://cloud.medusajs.com/signup) to get started. After registration is complete and your account is active, authorize the Medusa Cloud GitHub app in your organization or personal account.++<Info>+ A single Medusa Cloud deployment serves everything: the backend API, the+ **admin panel** at `/dashboard`, and the **vendor panel** at `/seller`. The+ panels are built together with the backend and served from the same origin —+ no separate hosting is needed.+</Info>++## How it works++The `basic` template wires this up out of the box:++- During `build`, the API package builds both panels and bundles their production+ output into the Medusa build artifact (`.medusa/server/dashboards/<name>`), so hosts+ that deploy only the artifact — like Medusa Cloud — carry the panels with it+ (`packages/api/scripts/bundle-dashboards.mjs`).+- At runtime, the `admin-ui` and `vendor-ui` modules detect the bundled builds and+ serve them statically at their configured paths (`/dashboard`, `/seller`).+- The panels bake the backend URL at build time from the `MERCUR_BACKEND_URL`+ environment variable. Because they are served from the backend's own origin, all+ API calls are same-origin — no cross-site cookie or CORS gymnastics.++Medusa Cloud builds the monorepo with `NODE_ENV=production`. In that mode the build+**fails fast** when `MERCUR_BACKEND_URL` is missing instead of shipping panels that+silently point at `http://localhost:9000` — so make sure to set it as described below.++## Prerequisites++- A Mercur project created with [`@mercurjs/cli`](/rc/learn/installation) and pushed to a GitHub repository+- A [Medusa Cloud](https://cloud.medusajs.com) account with the GitHub app authorized+- API keys for any third-party services you plan to use (Stripe, Resend, Algolia, etc.)++## Setup++<Steps>+ <Step title="Import your repository">+ From the Medusa Cloud dashboard, choose **Import your existing repository into the Cloud** (the Mercur project lives in your own GitHub repo, not in the bundled DTC/B2B starters).+ + </Step>+ <Step title="Pick the repository">+ On the **Repository** step, make sure the Medusa Cloud GitHub app is installed, pick your Mercur repository from the list, and click **Continue**.+ + </Step>+ <Step title="Configure the project">+ On the **Configure** step, fill in:++ - **Project name** and **Custom subdomain**. The subdomain determines your backend URL (`https://<subdomain>.medusajs.app`) — you will reference it in the environment variables below.+ - **Region** closest to your users.+ - **Medusa root directory**: `/packages/api`.+ - **Initial user** — the first admin email and password.++ Leave **Storefront root directory** empty — the Mercur basic template doesn't ship a storefront.+ + </Step>+ <Step title="Set environment variables">+ Scroll down to **Environment variables** and add the **Backend Environment Variables** below. Medusa Cloud provisions the database, Redis, and file storage automatically, so you don't need to set those.+ ++ Only the following variables should be set:++ ```bash+ # Panels (build-time): the deployed backend origin, baked into the admin and+ # vendor panels. Enable the **Build** toggle for this variable — the panels+ # read it while they are being built, not at runtime.+ MERCUR_BACKEND_URL=https://<your-subdomain>.medusajs.app++ # CORS — the panels are served from the backend's own origin, so it is enough+ # to list that origin (plus your storefront URL in STORE_CORS, if you have one)+ STORE_CORS=https://<your-subdomain>.medusajs.app+ ADMIN_CORS=https://<your-subdomain>.medusajs.app+ VENDOR_CORS=https://<your-subdomain>.medusajs.app+ AUTH_CORS=https://<your-subdomain>.medusajs.app++ # Secrets+ JWT_SECRET=+ COOKIE_SECRET=++ # Vendor panel URL used in seller emails and onboarding flows+ MERCUR_VENDOR_URL=https://<your-subdomain>.medusajs.app/seller++ # Stripe (customer payments + Mercur payout provider)+ STRIPE_API_KEY=+ STRIPE_WEBHOOK_SECRET=+ STRIPE_PAYOUT_WEBHOOK_SECRET=++ # Email (optional, e.g. Resend)+ RESEND_API_KEY=+ RESEND_FROM_EMAIL=++ # Search (optional)+ ALGOLIA_APP_ID=+ ALGOLIA_API_KEY=+ ```++ <Warning>+ `MERCUR_BACKEND_URL` must have the **Build** toggle enabled in the Medusa Cloud+ environment-variable settings. Without it, the production build stops with a clear+ error rather than baking the localhost default into the panels.+ </Warning>++ <Info>+ For Stripe setup, including which keys go where and how to wire both webhooks,+ see the [Stripe Connect integration+ guide](/rc/resources/integrations/stripe-connect).+ </Info>+ </Step>+ <Step title="Create and deploy">+ Click **Create**. The build and deploy process will start and can take a few minutes to complete.+ </Step>+</Steps>++You can change these variables later from the project's environment settings, and switch the deployment branch at any time. Medusa Cloud will automatically pull and rebuild your environment whenever a new commit is pushed to the selected branch. Remember that `MERCUR_BACKEND_URL` is baked into the panels at build time — changing it requires a redeploy.++## After deployment++Once the build succeeds, everything is served from `https://<your-subdomain>.medusajs.app`:++| Surface | URL |+| ------------ | ------------------------------------------------ |+| Backend API | `https://<your-subdomain>.medusajs.app` |+| Admin panel | `https://<your-subdomain>.medusajs.app/dashboard` |+| Vendor panel | `https://<your-subdomain>.medusajs.app/seller` |++Open the admin panel and sign in with the **Initial user** you configured in the setup step. If a panel shows a "Dashboard not built" page, the bundling step did not run — check the deployment's build logs for output from `bundle-dashboards`.++<Tip>+ Prefer hosting the panels separately (for example on Vercel or Netlify)? That+ still works: deploy `apps/admin` and `apps/vendor` as static Vite builds, set+ `MERCUR_BACKEND_URL` (or `VITE_MERCUR_BACKEND_URL`) to the backend URL at build+ time, and add the panel URLs to the backend's `ADMIN_CORS`, `VENDOR_CORS`, and+ `AUTH_CORS` variables.+</Tip>++## FAQ++<AccordionGroup>+ <Accordion title="A panel shows a 'Dashboard not built' page — what went wrong?">+ The bundling step didn't run during the build. Check the deployment's build logs for output from `bundle-dashboards`; the most common cause is a build that failed earlier (often a missing `MERCUR_BACKEND_URL` with the Build toggle off).+ </Accordion>+ <Accordion title="I changed MERCUR_BACKEND_URL but the panels still call the old URL">+ The backend URL is **baked into the panels at build time**, not read at runtime. After changing the variable, trigger a redeploy so the panels rebuild with the new value.+ </Accordion>+ <Accordion title="Do I need to configure a database or Redis?">+ No — Medusa Cloud provisions Postgres, Redis, and file storage automatically and injects their connection variables. Only set the variables listed in the setup step.+ </Accordion>+</AccordionGroup>++## Next steps++<CardGroup cols={2}>+ <Card title="Stripe Connect" href="/rc/resources/integrations/stripe-connect">+ Wire payments and payouts on the deployed environment.+ </Card>+ <Card title="Build your first marketplace" href="/rc/resources/tutorials/first-marketplace">+ Run the end-to-end flow against your new deployment.+ </Card>+</CardGroup>diff --git a/apps/docs/rc/resources/integrations/notifications.mdx b/apps/docs/rc/resources/integrations/notifications.mdxnew file mode 100644index 000000000..ad908b5be--- /dev/null+++ b/apps/docs/rc/resources/integrations/notifications.mdx@@ -0,0 +1,39 @@+---+title: "Notifications"+description: "Send transactional emails and marketplace notifications with Resend."+---++<Note>+ This guide is being written. The outline below is the intended structure.+</Note>++<Info>+ **Two notification surfaces.** Mercur sends provider-backed transactional email (seller approvals, invites, order events) *and* keeps an in-app vendor notification feed in the Vendor Portal. The email side uses Medusa's standard notification-provider model — Resend is the documented default, but any Medusa notification provider plugs in the same way.+</Info>++## What Resend powers++The emails and notifications Mercur sends, and where they're triggered.++<Steps>+ <Step title="Prerequisites">+ Resend account, API key, and environment variables.+ </Step>+ <Step title="Configure the provider">+ Wire Resend as the notification provider.+ </Step>+ <Step title="Send a test notification">+ Trigger a test notification and confirm delivery.+ </Step>+</Steps>++## Verify++Trigger a test notification and confirm delivery.++## Next steps++<CardGroup cols={2}>+ <Card title="Search" href="/rc/resources/integrations/search" />+ <Card title="Deploy to Medusa Cloud" href="/rc/resources/deployment/medusa-cloud" />+</CardGroup>diff --git a/apps/docs/rc/resources/integrations/search.mdx b/apps/docs/rc/resources/integrations/search.mdxnew file mode 100644index 000000000..7d1a4efed--- /dev/null+++ b/apps/docs/rc/resources/integrations/search.mdx@@ -0,0 +1,122 @@+---+title: "Search"+description: "Mercur's provider-agnostic search module — zero-infrastructure Orama by default, swappable for Algolia, Meilisearch, or your own provider."+---++Mercur ships a **Search module** in `@mercurjs/core`, modeled on Medusa's pluggable-provider pattern (like the `file` and `notification` modules). The module owns a stable contract — `index`, `remove`, `search` — and delegates storage to exactly one active **provider**. Out of the box that provider is [Orama](https://docs.orama.com): an in-process, in-memory index that needs zero external infrastructure.++<Warning>+ The search module is a release-candidate feature and its surface may still evolve before the stable release.+</Warning>++<Info>+ **Everything above the provider is provider-agnostic.** Subscribers index and remove documents on product, offer, and seller events; the store route calls `search.search(query)`; boot reindexing is event-driven. Swapping Orama for Algolia or Meilisearch means changing one provider registration — no changes to subscribers, the store route, or your storefront.+</Info>++## What gets indexed++Products **and offers** are searchable. Offers are indexed as **per-offer documents** — one hit per vendor listing — each carrying the offer's scoped price, so search results price identically to `GET /store/offers`. Index updates are driven by subscribers on product, offer, and seller events; you never call `index()` from application code.++## Searching from the storefront++The Store API exposes one endpoint:++```bash+curl -X POST "http://localhost:9000/store/search" \+ -H "x-publishable-api-key: <key>" \+ -H "Content-Type: application/json" \+ -d '{+ "q": "t-shirt",+ "limit": 12,+ "offset": 0,+ "region_id": "reg_123"+ }'+```++| Field | Description |+|-------|-------------|+| `q` | Search query (defaults to `""` — browse mode) |+| `limit` / `offset` | Pagination (limit 1–100, default 12) |+| `region_id`, `country_code`, `province` | Pricing context — the provider projects the matching price onto each hit's `calculated_price` |+| `filters` | Passed straight to the active provider, which owns its shape |++The response returns `hits`, `count`, and `facets`.++## The default provider: Orama++The bundled `search-orama` provider keeps the index in RAM inside the API process. That means:++- **Zero setup** — no accounts, keys, or services. Search works on a fresh project.+- **Boot reindex** — an in-memory index is empty after a restart, so the module emits a reindex event on application start and a subscriber rebuilds the index from the database.++<Note>+ In-memory search fits development and small-to-medium catalogs. For large catalogs or multi-instance deployments, use a persistent provider — the index then lives in the external service and the boot reindex is unnecessary.+</Note>++## Swapping in Algolia or Meilisearch++Ready-made provider integrations ship as blocks:++```bash+bunx @mercurjs/cli@rc add algolia+# or+bunx @mercurjs/cli@rc add meilisearch+```++| Provider | Hosting | Best for |+|----------|---------|----------|+| Orama (default) | In-process | Zero-infra development and smaller catalogs |+| Algolia | Managed SaaS | Fastest setup, hosted relevance tuning |+| Meilisearch | Self-hosted or cloud | Full control, open source |++Each block installs the provider source and prints the configuration steps (API keys, module options). Follow the block's post-install docs to register the provider and set environment variables.++## Writing your own provider++A provider extends `AbstractSearchProvider` from `@mercurjs/core` and implements three methods:++```typescript+import { AbstractSearchProvider } from "@mercurjs/core/modules/search"+import { SearchDoc, SearchQueryBase, SearchResults } from "@mercurjs/types"++export class MySearchProvider extends AbstractSearchProvider {+ static identifier = "my-search"++ async index(docs: SearchDoc[]): Promise<void> { /* upsert documents */ }+ async remove(ids: string[]): Promise<void> { /* delete by id */ }+ async search(query: SearchQueryBase): Promise<SearchResults> { /* query + facets */ }+}+```++Because subscribers and the store route only talk to the module contract, your provider slots in without touching anything else. Use the Algolia or Meilisearch block source as a working reference.++## Verify++1. Start a fresh project and `POST /store/search` with an empty `q` — published products return without any search service configured (that's Orama).+2. Publish a product and search for its title — it appears without a manual reindex (subscribers indexed it).+3. Restart the API and search again — results still return (the boot reindex rebuilt the in-memory index).++## FAQ++<AccordionGroup>+ <Accordion title="Can I run two providers at once, e.g. Orama locally and Algolia in production?">+ Only one provider is active at a time — the module has no multi-provider machinery. But because the provider is chosen by configuration, you can register different providers per environment (default Orama in development, Algolia in production) without touching any other code.+ </Accordion>+ <Accordion title="Do I ever need to trigger a reindex manually?">+ Normally no — subscribers keep the index current, and in-memory providers rebuild on boot. A manual full reindex is only interesting after bulk data changes outside normal flows (e.g. direct DB imports); persistent providers ignore the boot event entirely.+ </Accordion>+ <Accordion title="Why does each offer appear as its own search hit?">+ Because pricing and availability are per offer, not per product. One hit per vendor listing lets results carry the correct `calculated_price` for each seller — the same numbers as `GET /store/offers` — instead of an ambiguous product-level price.+ </Accordion>+</AccordionGroup>++## Next steps++<CardGroup cols={2}>+ <Card title="Offers" href="/rc/learn/offers">+ Why offers are indexed per seller with scoped prices.+ </Card>+ <Card title="Add a feature with a block" href="/rc/resources/tutorials/add-a-block">+ How provider blocks are installed and configured.+ </Card>+</CardGroup>diff --git a/apps/docs/rc/resources/integrations/stripe-connect.mdx b/apps/docs/rc/resources/integrations/stripe-connect.mdxnew file mode 100644index 000000000..3087e141d--- /dev/null+++ b/apps/docs/rc/resources/integrations/stripe-connect.mdx@@ -0,0 +1,395 @@+---+title: "Stripe Connect Integration"+description: "Set up Stripe Connect for marketplace payments and seller payouts — from Stripe Dashboard configuration to the full end-to-end payment lifecycle."+---++A Mercur marketplace needs **two** Stripe integrations working together. The first is the standard Medusa payment provider, which charges customers at checkout. The second is the Mercur payout provider, which transfers funds from the platform to sellers after orders are fulfilled.++This guide covers both — setting up Stripe, configuring both providers, wiring up webhooks, and understanding how money flows from customer to seller.++<Tip>+ This page is the configuration reference. For a hands-on walkthrough that takes one seller from onboarding to a settled payout, follow the [Set up seller payouts](/rc/resources/tutorials/seller-payouts-stripe) tutorial after completing the setup below.+</Tip>++<Info>+ Mercur uses Stripe's [Separate Charges and Transfers](https://docs.stripe.com/connect/separate-charges-and-transfers) model. The platform collects the full payment from the customer, then creates transfers to each seller's connected account. This makes the platform the **Merchant of Record**, responsible for VAT, disputes, and chargebacks.+</Info>++## Prerequisites++- A [Stripe account](https://dashboard.stripe.com) with Connect enabled+- Stripe Secret API key and Publishable API key+- A running Mercur project ([installation guide](/rc/learn/installation))+- Node.js 20+++## Architecture overview++The payment lifecycle in a Mercur marketplace flows through two distinct Stripe integrations:++```mermaid+flowchart LR+ C[Customer] -->|PaymentIntent| P[Platform Stripe Account]+ P -->|Transfer| S1[Seller A Connected Account]+ P -->|Transfer| S2[Seller B Connected Account]+ S1 -->|Payout| B1[Seller A Bank]+ S2 -->|Payout| B2[Seller B Bank]+```++The two integrations serve different purposes:++| Integration | Package | Purpose | Webhook endpoint |+|---|---|---|---|+| Customer payments | `@medusajs/medusa/payment-stripe` | Charges customers at checkout | `/hooks/payment/stripe_stripe` |+| Seller payouts | `@mercurjs/payout-stripe-connect` | Transfers funds to sellers | `/hooks/payout` |++## Stripe Dashboard setup++<Steps>+ <Step title="Enable Connect">+ In your Stripe Dashboard, go to **Settings → Connect settings** and enable Connect. If you're starting fresh, Stripe will walk you through an onboarding flow to activate your platform account.+ </Step>+ <Step title="Find your API keys">+ Go to **Developers → API keys**. You'll need:++ - **Secret key** — starts with `sk_test_` (test mode) or `sk_live_` (production)+ - **Publishable key** — starts with `pk_test_` or `pk_live_`+ </Step>+ <Step title="Set environment variables">+ Add the following to your `.env` file:++ ```bash+ STRIPE_API_KEY=sk_test_...+ STRIPE_WEBHOOK_SECRET=whsec_...+ STRIPE_PAYOUT_WEBHOOK_SECRET=whsec_...+ ```+ </Step>+</Steps>++## Configure Medusa payment provider++The Medusa payment provider handles customer-facing charges. Add it to your `medusa-config.ts`:++```ts+module.exports = defineConfig({+ // ...+ modules: [+ {+ resolve: "@medusajs/medusa/payment",+ options: {+ providers: [+ {+ resolve: "@medusajs/medusa/payment-stripe",+ id: "stripe",+ options: {+ apiKey: process.env.STRIPE_API_KEY,+ webhookSecret: process.env.STRIPE_WEBHOOK_SECRET,+ capture: false, // Use manual capture for marketplace flow+ automatic_payment_methods: true,+ },+ },+ ],+ },+ },+ ],+})+```++### Provider options++| Option | Type | Description |+|--------|------|-------------|+| `apiKey` | `string` | Stripe secret API key |+| `webhookSecret` | `string` | Signing secret for the payment webhook endpoint |+| `capture` | `boolean` | Set to `false` for manual capture (required for marketplace split flow) |+| `automatic_payment_methods` | `boolean` | Enable Stripe's automatic payment method detection |+| `paymentDescription` | `string` | Optional description shown on customer's bank statement |++<Info>+ After configuring the provider, enable Stripe as a payment method in your Admin Panel: **Settings → Regions → Edit region → Payment providers → Stripe**.+</Info>++## Configure Mercur payout provider++The payout provider handles transfers from the platform to seller connected accounts. Add it alongside the payment provider in `medusa-config.ts`:++```ts+module.exports = defineConfig({+ // ...+ modules: [+ // ... payment provider above+ {+ resolve: "@mercurjs/core/modules/payout",+ options: {+ providers: [+ {+ resolve: "@mercurjs/payout-stripe-connect",+ id: "stripe-connect",+ options: {+ apiKey: process.env.STRIPE_API_KEY,+ webhookSecret: process.env.STRIPE_PAYOUT_WEBHOOK_SECRET,+ accountValidation: {+ detailsSubmitted: true,+ chargesEnabled: true,+ payoutsEnabled: true,+ noOutstandingRequirements: true,+ requiredCapabilities: [],+ },+ },+ },+ ],+ },+ },+ ],+})+```++### Payout provider options++| Option | Type | Default | Description |+|--------|------|---------|-------------|+| `apiKey` | `string` | — | Stripe secret API key |+| `webhookSecret` | `string` | — | Signing secret for the payout webhook endpoint |+| `accountValidation` | `object` | See below | Controls when a connected account is considered `ACTIVE` |++### Account validation options++These options determine what conditions a Stripe connected account must meet before Mercur marks it as `ACTIVE` and allows payouts:++| Option | Type | Default | Description |+|--------|------|---------|-------------|+| `detailsSubmitted` | `boolean` | `true` | Require Stripe to mark onboarding details as submitted |+| `chargesEnabled` | `boolean` | `true` | Require the account to be enabled for charges |+| `payoutsEnabled` | `boolean` | `true` | Require the account to be enabled for payouts |+| `noOutstandingRequirements` | `boolean` | `true` | Treat any pending Stripe requirements as a restricted account |+| `requiredCapabilities` | `string[]` | `[]` | Require specific Stripe capabilities to be active (e.g. `["card_payments", "transfers"]`) |++### Payout module options++The payout module itself accepts timing options that control the capture and payout pipeline:++| Option | Type | Default | Description |+|--------|------|---------|-------------|+| `disabled` | `boolean` | `false` | Disable automatic capture checks and daily payout jobs |+| `authorizationWindowMs` | `number` | `604800000` (7 days) | How long a payment authorization remains valid |+| `sellerActionWindowMs` | `number` | `259200000` (72 hours) | How long sellers have to accept/fulfill before cancellation |+| `captureSafetyBufferMs` | `number` | `86400000` (24 hours) | Safety margin before authorization expiry — capture happens before `authorization expiry - buffer` |+| `requiredFulfillmentStatus` | `string` | `"fulfilled"` | Minimum fulfillment status before an order is eligible for capture |++## Set up webhooks++You need **two separate webhook endpoints** in Stripe — one for payment events, one for payout events.++<Warning>+ These are two distinct webhook endpoints, each with its own signing secret. Do not combine them into a single endpoint.+</Warning>++<Steps>+ <Step title="Add the payment webhook (Medusa)">+ In the Stripe Dashboard, go to **Developers → Webhooks → Add endpoint**.++ - **Endpoint URL**: `https://{your-backend-url}/hooks/payment/stripe_stripe`+ - **Events to subscribe to**:+ - `payment_intent.succeeded`+ - `payment_intent.amount_capturable_updated`+ - `payment_intent.payment_failed`+ - `charge.refunded`++ Copy the signing secret and set it as `STRIPE_WEBHOOK_SECRET` in your `.env`.+ </Step>+ <Step title="Add the payout webhook (Mercur)">+ Add a second webhook endpoint in the Stripe Dashboard.++ - **Endpoint URL**: `https://{your-backend-url}/hooks/payout`+ - **Events to subscribe to**:+ - `account.updated`++ Copy the signing secret and set it as `STRIPE_PAYOUT_WEBHOOK_SECRET` in your `.env`.+ </Step>+</Steps>++## How the payment flow works++Here's a concrete example. A customer buys items from two sellers:++- **Seller A**: €40 (product)+- **Seller B**: €30 (product)+- **Shipping**: €10+- **Cart total**: €80++### Step 1 — Authorize payment++At checkout, a single `PaymentIntent` is created for €80 with `capture_method: "manual"`. The customer authenticates once (SCA-compliant). No money moves yet — the funds are held on the customer's card.++### Step 2 — Split orders++Mercur's `completeCartWithSplitOrdersWorkflow` groups items by seller and creates separate orders — one for Seller A (€40) and one for Seller B (€30), plus shipping allocation.++### Step 3 — Seller acceptance and fulfillment++Each seller reviews and fulfills their order through the Vendor Portal. The payout module's `sellerActionWindowMs` (default: 72 hours) defines how long sellers have to act.++### Step 4 — Capture payment++Once orders meet the `requiredFulfillmentStatus` (default: `"fulfilled"`), the platform captures the authorized payment. The capture-check job runs automatically and respects the `captureSafetyBufferMs` to ensure capture happens before authorization expiry.++<Warning>+ Card authorizations typically expire after **7 days**. The default configuration gives sellers 72 hours to fulfill, with a 24-hour safety buffer before capture. If your business requires longer seller action windows, consider whether the 7-day authorization window is sufficient.+</Warning>++### Step 5 — Commission calculation and transfers++After capture, Mercur calculates commission for each order and creates Stripe Transfers for the net amounts:++```+Seller A net = €40 - commission+Seller B net = €30 - commission+```++Each transfer is linked to the original charge via `source_transaction` and grouped by `transfer_group` (the order ID).++### Step 6 — Bank payouts++Stripe automatically pays out connected account balances to sellers' bank accounts on the configured payout schedule. Mercur tracks payout status changes via the `account.updated` webhook.++## Seller onboarding++When a seller creates a payout account, the following lifecycle begins:++```+PENDING → (Stripe onboarding) → ACTIVE+ ↓+ RESTRICTED → ACTIVE (remediation)+ ↓+ REJECTED (permanent)+```++1. **Account creation** — Mercur calls `stripe.accounts.create({ type: "express" })`, creating a Stripe Express connected account. The payout account starts in `PENDING` status.++2. **Onboarding link** — The seller receives a Stripe-hosted onboarding URL via `stripe.accountLinks.create()`. They complete identity verification, bank account setup, and any required compliance steps directly on Stripe.++3. **Webhook activation** — When the seller completes onboarding, Stripe sends an `account.updated` webhook. The provider evaluates the account against the `accountValidation` options and transitions the status:+ - All validation checks pass → `ACTIVE`+ - Missing requirements or disabled reason → `RESTRICTED`+ - Disabled reason starts with `rejected.` → `REJECTED`++4. **Ongoing monitoring** — Stripe may send additional `account.updated` events if requirements change. The provider re-evaluates and updates the status accordingly.++For more details on payout accounts, balances, and transactions, see [Payout](/rc/learn/payouts).++## Transfers vs payouts++Stripe uses two distinct concepts for moving money, and it's important to understand the difference:++| | Transfer | Payout |+|---|---|---|+| **What it does** | Moves funds from platform balance to connected account balance | Moves funds from connected account balance to seller's bank account |+| **Speed** | Instant ledger movement | 1–3 business days (varies by country) |+| **Status lifecycle** | None — transfers are immediate | `pending` → `in_transit` → `paid` / `failed` |+| **Who triggers it** | Mercur (via `stripe.transfers.create()`) | Stripe (on the connected account's payout schedule) |+| **Mercur tracking** | Transfer created with status `PAID` immediately | Status tracked via webhooks |++When Mercur's `createPayout` method is called, the Stripe Connect provider creates a **Transfer** (platform → connected account). The actual bank payout (connected account → bank) happens automatically on Stripe's schedule.++## Refunds and reversals++Refunding a charge does **not** automatically reverse the associated transfers. These are two separate operations:++1. **Refund the PaymentIntent** — Returns funds to the customer's payment method+2. **Reverse the Transfer(s)** — Claws back funds from the connected account(s)++For a full refund of a multi-seller order, you would need to reverse each seller's transfer individually. For partial refunds, you need to calculate how much to reverse from each seller based on which items are being refunded.++<Info>+ Refund and transfer reversal orchestration is an area where custom workflow logic may be needed depending on your business rules. See Stripe's documentation on [reversing transfers](https://docs.stripe.com/connect/separate-charges-and-transfers#reverse-transfers) for the API details.+</Info>++## EU/EEA considerations++### Merchant of Record++Using Separate Charges and Transfers makes the platform the Merchant of Record. This means:++- The platform collects and remits VAT+- The platform handles consumer disputes and chargebacks+- The platform is responsible for PSD2 compliance++### Strong Customer Authentication (SCA)++SCA is enforced at **authorization time**, not capture time. Since the customer authenticates once during checkout, no additional SCA step is needed when the platform captures later. The single authorization at checkout satisfies the SCA requirement for the entire order.++### Authorization windows++Card authorizations in Europe typically last **7 days**. Design your seller acceptance workflow to complete well within this window. The payout module options give you control over the timing:++```ts+{+ resolve: "@mercurjs/core/modules/payout",+ options: {+ authorizationWindowMs: 7 * 24 * 60 * 60 * 1000, // 7 days+ sellerActionWindowMs: 72 * 60 * 60 * 1000, // 72 hours+ captureSafetyBufferMs: 24 * 60 * 60 * 1000, // 24 hours+ // ...providers+ },+}+```++## Testing++### Test mode++Use Stripe test mode keys (`sk_test_`, `pk_test_`) during development. All connected accounts and payments created in test mode are isolated from production.++**Test card number**: `4242 4242 4242 4242` (any future expiry, any CVC)++### Webhook forwarding with Stripe CLI++Since webhooks need to reach your local machine during development, use the [Stripe CLI](https://docs.stripe.com/stripe-cli) to forward events. You need **two separate listeners** — one for each webhook endpoint:++```bash+# Terminal 1 — Payment webhooks+stripe listen --forward-to localhost:9000/hooks/payment/stripe_stripe++# Terminal 2 — Payout webhooks+stripe listen --forward-to localhost:9000/hooks/payout+```++<Tip>+ Each `stripe listen` process outputs its own webhook signing secret. Use these as your `STRIPE_WEBHOOK_SECRET` and `STRIPE_PAYOUT_WEBHOOK_SECRET` respectively during local development.+</Tip>++### Testing the full flow++1. Create a seller and complete Stripe's test onboarding flow+2. Add products from the seller to a cart+3. Complete checkout using the test card+4. Verify orders are split by seller in the Admin Panel+5. Fulfill the orders through the Vendor Portal+6. Confirm transfers appear in the Stripe Dashboard under the connected account++## FAQ++<AccordionGroup>+ <Accordion title="Why do I need two webhook endpoints with two secrets?">+ They belong to two different integrations: the payment webhook feeds Medusa's payment provider (charges, captures, refunds), while the payout webhook feeds Mercur's payout provider (connected-account status, transfer status). Each endpoint verifies its own signing secret — combining them silently breaks whichever side's signature doesn't match.+ </Accordion>+ <Accordion title="Why must capture be set to false on the payment provider?">+ The marketplace flow authorizes at checkout and captures later, after sellers fulfill. Automatic capture would take the money before the split-order pipeline (fulfillment checks, commission, payouts) has run — `capture: false` hands that timing to the payout module's capture job.+ </Accordion>+ <Accordion title="A seller finished Stripe onboarding but is still not ACTIVE — why?">+ Check the `accountValidation` options: by default the account must have details submitted, charges and payouts enabled, and **no outstanding requirements**. Stripe often adds follow-up requirements (e.g. extra KYC) after initial onboarding — the account shows as `RESTRICTED` until they're cleared.+ </Accordion>+ <Accordion title="Who handles VAT, disputes, and chargebacks?">+ The platform. Separate Charges and Transfers makes the platform the Merchant of Record — see [EU/EEA considerations](#eueea-considerations) for what that entails.+ </Accordion>+</AccordionGroup>++## Next steps++<CardGroup cols={2}>+ <Card title="Set up seller payouts" href="/rc/resources/tutorials/seller-payouts-stripe">+ Hands-on: one seller from onboarding to a settled payout.+ </Card>+ <Card title="Payout" href="/rc/learn/payouts">+ The pipeline reference — statuses, jobs, and webhook events.+ </Card>+</CardGroup>diff --git a/apps/docs/rc/resources/tutorials/add-a-block.mdx b/apps/docs/rc/resources/tutorials/add-a-block.mdxnew file mode 100644index 000000000..41ed37c29--- /dev/null+++ b/apps/docs/rc/resources/tutorials/add-a-block.mdx@@ -0,0 +1,74 @@+---+title: "Add a feature with a block"+description: "Install the reviews block end-to-end and see it live across the admin, vendor, and storefront surfaces."+---++Blocks are complete features — backend module, workflows, API routes, and panel UI — installed as **source code** into your project. This tutorial installs the `reviews` block and follows it across every surface it touches.++<Info>+ **Blocks are copied, not installed as dependencies.** `add` writes the block's source files into your project via the aliases in `blocks.json` — you own and can edit every file afterwards. Updates are opt-in through `diff` and `add --overwrite`. When you outgrow the catalog, [build your own block](/rc/resources/tutorials/build-a-block).+</Info>++## Goal++Install reviews as a block and see it running everywhere it appears.++## Install the block++<Steps>+ <Step title="Discover the block">+ Search the registry and inspect what the block ships before installing:++ ```bash+ bunx @mercurjs/cli@rc search --query reviews+ bunx @mercurjs/cli@rc view reviews+ ```++ `view` lists the block's files by target (API, admin, vendor) and its dependencies.+ </Step>+ <Step title="Install it">+ ```bash+ bunx @mercurjs/cli@rc add reviews+ ```++ The CLI copies the source into the directories mapped by your `blocks.json` aliases and prints the block's post-install instructions — module registration, middlewares, migrations.+ </Step>+ <Step title="Run migrations and codegen">+ The block introduced a reviews module, so generate and run its migrations, then refresh the typed route map:++ ```bash+ cd packages/api+ bunx medusa db:generate reviews+ bunx medusa db:migrate+ bunx @mercurjs/cli@rc codegen+ ```+ </Step>+ <Step title="See it live">+ Start the project — reviews now appear in the admin panel (moderation), the vendor portal (per-seller reviews), and the Store API (customer-facing review routes).+ </Step>+</Steps>++## Verify++1. The block's files exist in your repo under the alias-mapped paths.+2. Migrations ran cleanly and the API boots.+3. The admin and vendor panels show their reviews pages; the store review endpoints respond.+4. `bunx @mercurjs/cli@rc diff reviews` reports no drift from the registry.++## FAQ++<AccordionGroup>+ <Accordion title="What if I've already modified files the block wants to write?">+ The CLI asks before overwriting existing files (or force it with `--overwrite`). If you've customized a page the block also ships, merge by hand — you're merging source, not resolving package versions.+ </Accordion>+ <Accordion title="How do I update a block later?">+ `bunx @mercurjs/cli@rc diff reviews` shows what changed in the registry since you installed. Take updates with `add reviews --overwrite`, re-applying any local edits afterwards.+ </Accordion>+</AccordionGroup>++## Next steps++<CardGroup cols={2}>+ <Card title="Add a custom panel page" href="/rc/resources/tutorials/custom-panel-page" />+ <Card title="Build your own block" href="/rc/resources/tutorials/build-a-block" />+</CardGroup>diff --git a/apps/docs/rc/resources/tutorials/attributes-and-variant-axes.mdx b/apps/docs/rc/resources/tutorials/attributes-and-variant-axes.mdxnew file mode 100644index 000000000..971b0b965--- /dev/null+++ b/apps/docs/rc/resources/tutorials/attributes-and-variant-axes.mdx@@ -0,0 +1,111 @@+---+title: "Create attributes and variant axes"+description: "Build the attribute catalog: a filterable attribute, a variant axis backed by a native product option, and an inline product-scoped axis."+---++Attributes give the shared catalog structured, typed data — and for `multi_select` attributes, they can drive variant generation. This tutorial sets up the two kinds that matter most: a plain filterable attribute and a **variant axis**, which under the hood is a native Medusa global product option.++<Warning>+ This is a release-candidate feature built on Medusa's global product options (Medusa 2.16 preview). Details may still shift before the stable release.+</Warning>++<Info>+ **A variant axis IS a product option.** Attributes marked `is_variant_axis` aren't a parallel system bolted onto products — each one mirrors one-to-one onto a Medusa `ProductOption` and its values. Variants are then built with Medusa's standard machinery (`variants[].options`), exactly as in a plain Medusa project. Non-axis attributes never become options; they attach as plain value links. This is why only `multi_select` attributes can be axes — an axis needs an enumerable set of values to combine into variants.+</Info>++## What you'll build++- A global `Material` attribute (multi-select, filterable) used for storefront filtering.+- A global `Color` variant axis shared across the catalog.+- An inline, product-scoped `Fit` axis created on the fly from a product form.++## Global vs product-scoped++| Kind | Backed by | Appears in the global catalog? | Use for |+|------|-----------|-------------------------------|---------|+| Global attribute | Shared `ProductOption` (when axis) or value links | Yes | Data every product can use — Material, Color, Condition |+| Product-scoped attribute | Exclusive, product-owned option (when axis) | No | One-off fields or axes for a single product |++## Build the attribute catalog++<Steps>+ <Step title="Create a filterable attribute">+ In the Admin Panel, the operator owns the attribute catalog. Create **Material** as a global `multi_select` attribute with values like Cotton, Wool, Linen, and turn on `is_filterable`. Global attributes (`product_id = null`) can be attached to any product and linked to categories so the right attributes surface for the right product types.++ Since it's not a variant axis, Material describes the product — it will never generate variants.+ </Step>+ <Step title="Create a variant axis">+ Create **Color** the same way, but enable `is_variant_axis`. This is only allowed for `multi_select` attributes — the platform rejects the flag on any other type.++ Because Color is a **global** axis, it's backed by one shared product option. Every product that uses it links to that option, restricted to the subset of values the product actually offers — so "Color" means the same thing across the whole catalog, while one product can offer only Red and Blue.+ </Step>+ <Step title="Attach attributes to a product">+ Products manage attributes through one **batch** endpoint that adds, removes, and updates in a single request:++ ```bash+ curl -X POST "http://localhost:9000/vendor/products/prod_123/attributes/batch" \+ -H "Authorization: Bearer <token>" \+ -H "Content-Type: application/json" \+ -d '{+ "add": [+ { "id": "pattr_material", "value_ids": ["pattrval_cotton"] },+ { "id": "pattr_color", "value_ids": ["pattrval_red", "pattrval_blue"] }+ ]+ }'+ ```++ At product create time, the same entry shape is passed as a unified `attributes[]` array. Because Color is an axis, selecting Red and Blue makes them available as variant options — variants are then defined with standard Medusa `variants[].options` mapping `"Color"` to `"Red"` or `"Blue"`.+ </Step>+ <Step title="Add an inline product-scoped axis">+ Sometimes one product needs an axis that doesn't belong in the shared catalog. Define it **inline** by `title` instead of referencing an `id`:++ ```bash+ curl -X POST "http://localhost:9000/vendor/products/prod_123/attributes/batch" \+ -H "Authorization: Bearer <token>" \+ -H "Content-Type: application/json" \+ -d '{+ "add": [+ { "title": "Fit", "values": ["Slim", "Regular"], "is_variant_axis": true }+ ]+ }'+ ```++ This creates a product-scoped attribute on the fly, backed by an **exclusive**, product-owned option. It won't appear in the global attribute list — it belongs to this product alone.+ </Step>+</Steps>++<Note>+ Attribute changes on products submitted by vendors flow through the same [change-request pipeline](/rc/learn/product-requests) as other product edits — `ATTRIBUTE_ADD` / `ATTRIBUTE_UPDATE` / `ATTRIBUTE_REMOVE` actions the operator reviews.+</Note>++## Verify++1. **Material** and **Color** appear in the Admin Panel's attribute catalog; **Fit** does not (it's product-scoped).+2. The product detail shows Material as descriptive data and Color/Fit as variant axes.+3. The product's variants combine the selected Color and Fit values, built from real product options.+4. The Store API exposes Material for filtering on product listings (`is_filterable`).++## FAQ++<AccordionGroup>+ <Accordion title="Why can't a text or toggle attribute be a variant axis?">+ An axis needs an enumerable, finite value set to combine into variants — Red/Blue × Slim/Regular. Free text has no enumerable values, and a toggle's two fixed values rarely describe purchasable variations. Only `multi_select` qualifies, and the platform enforces it.+ </Accordion>+ <Accordion title="What's the difference between a value link and an option?">+ Non-axis attributes attach to a product as plain **value links** — descriptive data for display and filtering. Axis attributes are mirrored onto real Medusa **product options**, which participate in variant generation. Same authoring UI, structurally different underneath.+ </Accordion>+ <Accordion title="Can I promote a product-scoped attribute to a global one later?">+ Not automatically — a product-scoped axis is backed by an exclusive option owned by that product. Create the global attribute in the catalog and re-attach products to it; treat inline attributes as intentionally local.+ </Accordion>+</AccordionGroup>++## Next steps++<CardGroup cols={2}>+ <Card title="Product Attributes" href="/rc/learn/attributes">+ Types, fields, and the full attribute-to-option mapping.+ </Card>+ <Card title="Master products & offers" href="/rc/resources/tutorials/master-products-and-offers">+ How sellers list against the variants your axes generate.+ </Card>+</CardGroup>diff --git a/apps/docs/rc/resources/tutorials/build-a-block.mdx b/apps/docs/rc/resources/tutorials/build-a-block.mdxnew file mode 100644index 000000000..d367be5b0--- /dev/null+++ b/apps/docs/rc/resources/tutorials/build-a-block.mdx@@ -0,0 +1,134 @@+---+title: "Build your own block"+description: "Author a reusable feature as a block — backend, panel UI, and docs — build it into a registry, and install it into any Mercur project."+---++Blocks are how features travel between Mercur projects: not as npm packages you depend on, but as **source code copied into the target project**. Anything you've built once — a module, workflows, routes, panel pages — can be packaged as a block, published through a registry, and installed with `mercurjs add`. This tutorial builds a minimal "announcements" block and ships it through your own registry.++<Info>+ **Blocks are source, not dependencies.** When someone installs your block, they get the files — editable, diffable, theirs. Updates are opt-in via `mercurjs diff` and `add --overwrite`, never forced through a lockfile. That's the trade: you give up automatic upgrades, users gain full ownership. Design blocks so they're readable after install.+</Info>++## What you'll build++An `announcements` block containing a module (data model + service), a vendor API route, and a vendor portal page — built into registry JSON and installed into a Mercur project.++## File types and where they land++Each file in a block carries a `type` that maps to an alias in the consumer's `blocks.json`:++| Type | Lands at (default aliases) |+|------|---------------------------|+| `registry:module` | the API package's modules directory |+| `registry:workflow` | the API package's workflows directory |+| `registry:api` | `packages/api/src` |+| `registry:link` | the API package's links directory |+| `registry:vendor` | `apps/vendor/src` |+| `registry:admin` | `apps/admin/src` |+| `registry:lib` | shared lib directory |++## Author and ship the block++<Steps>+ <Step title="Lay out the block source">+ A registry is a project with a `registry.json` and block sources under `src/`. Each block follows the standard directory convention, one folder per concern:++ ```+ my-registry/+ ├── registry.json+ └── src/+ └── announcements/+ ├── modules/announcements/ # data model, service, index+ ├── api/vendor/announcements/ # route.ts, validators.ts+ └── vendor/routes/announcements/+ └── page.tsx # vendor portal page+ ```++ Write the files exactly as they should land in a consumer's project — real imports, real Medusa module definitions. The build step resolves imports and rewrites them to the consumer's path aliases at install time. For the panel page, use the same conventions as any [custom panel page](/rc/resources/tutorials/custom-panel-page): a default export plus a `config` for the sidebar entry.+ </Step>+ <Step title="Declare it in registry.json">+ ```json registry.json+ {+ "$schema": "https://registry.mercurjs.com/registry.json",+ "name": "@my-org",+ "homepage": "https://my-org.com",+ "items": [+ {+ "name": "announcements",+ "description": "Marketplace announcements with a vendor portal feed.",+ "dependencies": [],+ "registryDependencies": [],+ "docs": "## Setup\n\nRegister the module in `medusa-config.ts`, then run `bunx medusa db:generate announcements && bunx medusa db:migrate`, and finally `bunx @mercurjs/cli@rc codegen`.",+ "categories": ["module", "api", "vendor"],+ "files": [+ { "path": "announcements/modules/announcements/index.ts", "type": "registry:module" },+ { "path": "announcements/api/vendor/announcements/route.ts", "type": "registry:api" },+ { "path": "announcements/vendor/routes/announcements/page.tsx", "type": "registry:vendor" }+ ]+ }+ ]+ }+ ```++ Two fields do the heavy lifting: **`type`** on each file decides where it lands, and **`docs`** is the markdown shown after install. Put every manual step in `docs` — module registration, migrations, middleware, codegen. It's the only instruction the installer sees.+ </Step>+ <Step title="Build the registry">+ ```bash+ bunx @mercurjs/cli@rc build+ ```++ This reads `registry.json`, resolves each block's imports, embeds file contents, and writes one JSON per block into `r/` — `r/announcements.json`, plus an index `r/registry.json`.+ </Step>+ <Step title="Host it">+ Serve the `r/` directory from any static host (GitHub Pages, Vercel, S3 — anything that makes `{name}.json` publicly reachable).+ </Step>+ <Step title="Install it into a project">+ In a consumer project, register your registry in `blocks.json` and install:++ ```json blocks.json+ {+ "registries": {+ "@my-org": "https://my-registry.example.com/r/{name}.json"+ }+ }+ ```++ ```bash+ bunx @mercurjs/cli@rc add @my-org/announcements+ ```++ The CLI fetches the JSON, maps each file's `type` to the consumer's aliases, rewrites imports, and prints your `docs` instructions.+ </Step>+</Steps>++## Verify++1. `r/announcements.json` exists after the build and embeds every file's content.+2. In the consumer project, the files landed under the alias-mapped paths and imports resolve.+3. After following your own `docs` steps (module registration, migrations, codegen), `bun run build` passes and the vendor portal shows the Announcements page.+4. `bunx @mercurjs/cli@rc diff @my-org/announcements` reports no changes — the installed copy matches the registry.++## FAQ++<AccordionGroup>+ <Accordion title="How do I depend on another block or an npm package?">+ Other blocks go in `registryDependencies` (e.g. `@my-org/reviews`) — the CLI installs them in order automatically. NPM packages go in `dependencies`; the build also auto-detects them from your imports, so you rarely list transitive ones by hand.+ </Accordion>+ <Accordion title="Can I make the registry private?">+ Yes — use the object form with headers in the consumer's `blocks.json`: `{ "url": "…/{name}.json", "headers": { "Authorization": "Bearer ${REGISTRY_TOKEN}" } }`. The env var is resolved from the installer's environment. See [Registry](/rc/learn/registry).+ </Accordion>+ <Accordion title="How do consumers get updates to my block?">+ They run `mercurjs diff <block>` to compare their local copy against your registry, then `add --overwrite` to take the new version. Because blocks are source, consumers with local edits merge deliberately rather than being force-upgraded.+ </Accordion>+</AccordionGroup>++## Next steps++<CardGroup cols={2}>+ <Card title="Registry" href="/rc/learn/registry">+ The full registry.json schema, auth, and block dependencies.+ </Card>+ <Card title="Blocks" href="/rc/learn/blocks">+ What blocks can contain and how consumers manage them.+ </Card>+</CardGroup>diff --git a/apps/docs/rc/resources/tutorials/configure-commissions.mdx b/apps/docs/rc/resources/tutorials/configure-commissions.mdxnew file mode 100644index 000000000..b731ff267--- /dev/null+++ b/apps/docs/rc/resources/tutorials/configure-commissions.mdx@@ -0,0 +1,127 @@+---+title: "Configure commissions"+description: "Set the global commission, add scoped rules for categories and sellers, and confirm the right rate lands on an order."+---++Commissions are how your marketplace earns. Mercur matches a **commission rate** to every order line item through rules, with one **global commission** as the catch-all. In this tutorial you'll set up a realistic three-tier configuration and verify which rate wins on a real order.++<Info>+ **The most specific rate wins.** Rules combine with AND across dimensions and OR within a dimension, and among matching rates the one scoping the most dimensions applies. You never order rates by priority — specificity is the priority. The full algorithm is in [Commission](/rc/learn/commissions).+</Info>++## What you'll build++- A global commission of 15% that also commissions shipping.+- A 12% rate for the Electronics category.+- An 8% rate for Electronics sold by one specific premium seller.++An electronics order from the premium seller should produce commission lines at 8% — not 12%, not 15%.++## Set up the rates++<Steps>+ <Step title="Set the global commission">+ Every marketplace needs exactly one default rate — the fallback when nothing more specific matches. Create it with `is_default`:++ ```bash+ curl -X POST http://localhost:9000/admin/commission-rates \+ -H "Authorization: Bearer <admin-token>" \+ -H "Content-Type: application/json" \+ -d '{+ "name": "Global Commission",+ "code": "global",+ "type": "percentage",+ "value": 15,+ "is_default": true,+ "include_shipping": true+ }'+ ```++ <Note>+ `include_shipping` only has an effect on the global commission — shipping methods are always commissioned from the global rate, never from scoped rates. In the Admin Panel this lives on the Global Commission card under **Settings → Commissions**.+ </Note>+ </Step>+ <Step title="Add a category-scoped rate">+ A rate becomes scoped by attaching **rules**. Each rule names a dimension (`reference`) and a value (`reference_id`):++ ```bash+ curl -X POST http://localhost:9000/admin/commission-rates \+ -H "Authorization: Bearer <admin-token>" \+ -H "Content-Type: application/json" \+ -d '{+ "name": "Electronics Commission",+ "code": "electronics",+ "type": "percentage",+ "value": 12,+ "rules": [+ { "reference": "product_category", "reference_id": "pcat_electronics" }+ ]+ }'+ ```++ Available dimensions: `product`, `product_type`, `product_collection`, `product_category`, and `seller`.+ </Step>+ <Step title="Add a two-dimension rate for the premium seller">+ Combining a `seller` rule with a `product_category` rule means *both* must match — this rate applies only to that seller's electronics:++ ```bash+ curl -X POST http://localhost:9000/admin/commission-rates \+ -H "Authorization: Bearer <admin-token>" \+ -H "Content-Type: application/json" \+ -d '{+ "name": "Premium seller electronics",+ "code": "premium-electronics",+ "type": "percentage",+ "value": 8,+ "rules": [+ { "reference": "seller", "reference_id": "slr_premium" },+ { "reference": "product_category", "reference_id": "pcat_electronics" }+ ]+ }'+ ```++ Because it scopes two dimensions, it beats the one-dimension Electronics rate whenever both match — regardless of which rate was created first.+ </Step>+ <Step title="Place a test order">+ Commission lines are calculated when an order is placed — rates are never applied retroactively. Place an order containing an electronics item from the premium seller (via your storefront or the Store API), then inspect the order's commission lines.+ </Step>+</Steps>++## Verify++1. List the rates and confirm all three exist and are enabled:+ ```bash+ curl http://localhost:9000/admin/commission-rates \+ -H "Authorization: Bearer <admin-token>"+ ```+2. On the placed order, each electronics line item from the premium seller has a commission line with `code: "premium-electronics"` and `rate: 8`.+3. The order's shipping method has a commission line from the **global** rate (because `include_shipping` is on).+4. Change a rate now and confirm the existing order's commission lines are untouched — `CommissionLine` records are a permanent audit trail.++## FAQ++<AccordionGroup>+ <Accordion title="How do I charge a flat fee instead of a percentage?">+ Use `"type": "fixed"` with per-currency `values`: `[{ "currency_code": "usd", "amount": 2 }, { "currency_code": "eur", "amount": 1.8 }]`. The scalar `value` is the fallback for currencies without an entry.+ </Accordion>+ <Accordion title="What happens when two rates tie on specificity?">+ Ties break deterministically to the **oldest rate**. But if you find yourself relying on tie-breaking, prefer making one rate more specific — it reads better in the Admin Panel and survives audits.+ </Accordion>+ <Accordion title="Do rate changes affect existing orders?">+ No. Commission is snapshotted into `CommissionLine` records at order placement. Changing or disabling a rate only affects future orders — the lines on past orders are a permanent audit trail that payouts read from.+ </Accordion>+ <Accordion title="Can a rate match multiple values in one dimension?">+ Yes — rules within the same dimension are OR'd. A rate with two `product_category` rules matches items in either category, and still counts as one dimension for specificity.+ </Accordion>+</AccordionGroup>++## Next steps++<CardGroup cols={2}>+ <Card title="Commission" href="/rc/learn/commissions">+ The full matching algorithm, calculation pipeline, and data model.+ </Card>+ <Card title="Set up seller payouts" href="/rc/resources/tutorials/seller-payouts-stripe">+ Where commission is deducted — the settlement side of the marketplace.+ </Card>+</CardGroup>diff --git a/apps/docs/rc/resources/tutorials/custom-api-route.mdx b/apps/docs/rc/resources/tutorials/custom-api-route.mdxnew file mode 100644index 000000000..841d9040c--- /dev/null+++ b/apps/docs/rc/resources/tutorials/custom-api-route.mdx@@ -0,0 +1,142 @@+---+title: "Add a custom API route"+description: "Create a backend endpoint, regenerate the route map, and call it from a panel page with full type safety end to end."+---++Mercur's typed API client isn't hand-maintained — its types are **generated from your actual route files**. That means a custom endpoint you add to the API package becomes a first-class, fully typed client call after one codegen run. This tutorial walks the whole loop: route → codegen → typed call from a custom panel page.++<Info>+ **The contract is generated, not declared.** You never write an interface for your endpoint. `mercurjs codegen` reads the route's handler and validators and emits the `Routes` type the client consumes — so the panel call site breaks at compile time the moment the backend changes. This loop is also what makes Mercur projects reliable targets for AI agents: see [Building with AI](/rc/resources/ai/overview).+</Info>++## What you'll build++A `GET /vendor/sales-summary` endpoint returning the seller's order count, called from a custom vendor portal page via `client.vendor.salesSummary.query()` with inferred types.++## Build the loop++<Steps>+ <Step title="Create the route">+ API routes follow Medusa's file conventions inside your API package. The URL path mirrors the directory path:++ ```typescript packages/api/src/api/vendor/sales-summary/route.ts+ import { AuthenticatedMedusaRequest, MedusaResponse } from "@medusajs/framework/http"+ import { ContainerRegistrationKeys } from "@medusajs/framework/utils"++ export async function GET(+ req: AuthenticatedMedusaRequest,+ res: MedusaResponse+ ) {+ const query = req.scope.resolve(ContainerRegistrationKeys.QUERY)++ const { data: orders } = await query.graph({+ entity: "order",+ fields: ["id"],+ filters: { seller_id: req.auth_context.actor_id },+ })++ res.json({ order_count: orders.length })+ }+ ```++ Routes under `src/api/vendor/*` run behind the vendor authentication middleware, so `req.auth_context` identifies the calling seller. Use `src/api/admin/*` for operator endpoints and `src/api/store/*` for public storefront endpoints.+ </Step>+ <Step title="Regenerate the route map">+ ```bash+ bunx @mercurjs/cli@rc codegen+ ```++ Codegen scans your route files and rewrites the generated `Routes` type that your panel apps already import:++ ```typescript apps/vendor/src/lib/client.ts+ import { createClient, type InferClient } from "@mercurjs/client"+ import type { Routes } from "@acme/api/_generated"++ declare const __BACKEND_URL__: string++ export const client: InferClient<Routes> = createClient({+ baseUrl: __BACKEND_URL__,+ fetchOptions: { credentials: "include" },+ })+ ```++ This file ships with the starter template — you don't need to touch it. After codegen, `client.vendor.salesSummary` simply exists, typed.++ <Tip>+ Run `bunx @mercurjs/cli@rc codegen --watch` during development so the route map regenerates as you edit route files.+ </Tip>+ </Step>+ <Step title="Call it from a panel page">+ Drop a page into the vendor app and call the endpoint through the client. Route segments map to camelCase properties, and the HTTP method is chosen by the terminal call: `query` (GET), `mutate` (POST), `delete` (DELETE).++ ```tsx apps/vendor/src/routes/sales-summary/page.tsx+ import { useQuery } from "@tanstack/react-query"+ import { Container, Heading, Text } from "@medusajs/ui"+ import { ChartBar } from "@medusajs/icons"+ import type { RouteConfig } from "@mercurjs/dashboard-sdk"+ import type { InferClientOutput } from "@mercurjs/client"+ import { client } from "../../lib/client"++ export const config: RouteConfig = {+ label: "Sales summary",+ icon: ChartBar,+ }++ type Summary = InferClientOutput<typeof client.vendor.salesSummary.query>++ export default function SalesSummaryPage() {+ const { data } = useQuery<Summary>({+ queryKey: ["sales-summary"],+ queryFn: () => client.vendor.salesSummary.query(),+ })++ return (+ <Container className="divide-y p-0">+ <div className="flex items-center justify-between px-6 py-4">+ <Heading>Sales summary</Heading>+ </div>+ <div className="px-6 py-4">+ <Text size="small" className="text-ui-fg-subtle">+ Orders: {data?.order_count ?? "—"}+ </Text>+ </div>+ </Container>+ )+ }+ ```++ `InferClientOutput` extracts the response type straight from the client method — change the route's response shape, rerun codegen, and this component stops compiling until you update it.+ </Step>+</Steps>++## Verify++1. Start the project (`bun run dev`) and log into the vendor portal.+2. **Sales summary** appears in the sidebar (the `config` export registered it); the page shows the order count.+3. `curl http://localhost:9000/vendor/sales-summary` without a token returns an authentication error — the vendor middleware guards your route.+4. Change the route to return `{ count: ... }` instead of `{ order_count: ... }`, rerun codegen, and confirm the page fails to type-check — that's the generated contract doing its job. Revert after.++## FAQ++<AccordionGroup>+ <Accordion title="How do path parameters work in the client?">+ Use `$`-prefixed segments: a route at `src/api/vendor/things/[id]/route.ts` is called as `client.vendor.things.$id.query({ $id: "thing_123" })`. The `$id` key is threaded into the URL path; everything else in the object becomes query params (GET) or the JSON body (POST).+ </Accordion>+ <Accordion title="How do I handle errors from the client?">+ Failed requests throw `ClientError` from `@mercurjs/client`, carrying `status`, `statusText`, and the backend's `message`. Wrap calls in try/catch or let TanStack Query surface the error. Full reference: [API Client](/rc/tools/api-client).+ </Accordion>+ <Accordion title="Where do request validation schemas go?">+ Follow Medusa conventions: a `validators.ts` next to the route with a Zod schema, wired through the route's middleware. Codegen reads validators too, so the client's input type reflects them.+ </Accordion>+</AccordionGroup>++## Next steps++<CardGroup cols={2}>+ <Card title="API Client" href="/rc/tools/api-client">+ Everything the typed client can do — inputs, outputs, errors, React Query.+ </Card>+ <Card title="Extend a workflow" href="/rc/resources/customization/extend-a-workflow">+ Put multi-step business logic behind your endpoint with rollback support.+ </Card>+</CardGroup>diff --git a/apps/docs/rc/resources/tutorials/custom-panel-page.mdx b/apps/docs/rc/resources/tutorials/custom-panel-page.mdxnew file mode 100644index 000000000..3887bc21d--- /dev/null+++ b/apps/docs/rc/resources/tutorials/custom-panel-page.mdx@@ -0,0 +1,78 @@+---+title: "Add a custom panel page"+description: "Add a page to the vendor portal with file-based routing — the dashboard SDK wires it in automatically."+---++Adding a page to the admin panel or vendor portal takes one file. The dashboard SDK scans `src/routes/` at build time, registers the route, and — if you export a `config` — adds it to the sidebar with a label and icon. No route table, no registration call.++<Info>+ **Adding vs changing.** This tutorial *adds* a brand-new page — the right move for new features. To *change* an existing page, don't rebuild it: drop a route at the same path and [re-compose the built-in page's slots](/rc/resources/tutorials/recompose-a-page). The [decision guide](/rc/resources/customization/extending-panels#choosing-your-extension-mechanism) compares every extension mechanism.+</Info>++## What you'll build++A `/reviews` page in the vendor portal with a sidebar entry — from a single file.++## Add the page++<Steps>+ <Step title="Create the route file">+ Drop a `page.tsx` under `src/routes/` in your vendor app. The file path becomes the URL, and the default export is the page:++ ```tsx apps/vendor/src/routes/reviews/page.tsx+ import { Container, Heading } from "@medusajs/ui"+ import { Star } from "@medusajs/icons"+ import type { RouteConfig } from "@mercurjs/dashboard-sdk"++ export const config: RouteConfig = {+ label: "Reviews",+ icon: Star,+ rank: 10,+ }++ export default function ReviewsPage() {+ return (+ <Container className="divide-y p-0">+ <div className="flex items-center justify-between px-6 py-4">+ <Heading>Reviews</Heading>+ </div>+ </Container>+ )+ }+ ```+ </Step>+ <Step title="Let the SDK wire it up">+ At build time the SDK registers the `/reviews` route, generates the sidebar item from `config` (`label`, `icon`, `rank`), and hot-reloads the route tree when you add or remove page files. Dynamic segments use brackets — `src/routes/reviews/[id]/page.tsx` becomes `/reviews/:id`. The full path-to-route table is in [Extending Panels](/rc/resources/customization/extending-panels#routing-conventions).+ </Step>+ <Step title="Open it in the running panel">+ Start the project (`bun run dev`) and open the vendor portal — **Reviews** appears in the sidebar at the position set by `rank`, and `/reviews` renders your component.+ </Step>+</Steps>++## Verify++1. The sidebar shows **Reviews** with the star icon.+2. Navigating to `/reviews` renders the page inside the standard panel layout (sidebar and topbar intact).+3. Removing the `config` export keeps the route working but drops the sidebar item.+4. Deleting the file removes the route entirely.++## FAQ++<AccordionGroup>+ <Accordion title="How do I fetch data on my page?">+ Use the [typed API client](/rc/tools/api-client) with TanStack Query — the panels already ship both. For a full loop including a custom backend endpoint, follow [Add a custom API route](/rc/resources/tutorials/custom-api-route).+ </Accordion>+ <Accordion title="Can the page live under /settings?">+ Yes — place the file under a `settings/` route segment and set `nested: "/settings"` in the config to group its sidebar item under Settings.+ </Accordion>+ <Accordion title="Does the same work for the admin panel?">+ Identically — drop the file in the admin app's `src/routes/` instead. Both panels use the same SDK and conventions.+ </Accordion>+</AccordionGroup>++## Next steps++<CardGroup cols={2}>+ <Card title="Re-compose a built-in page" href="/rc/resources/tutorials/recompose-a-page" />+ <Card title="Add a custom API route" href="/rc/resources/tutorials/custom-api-route" />+</CardGroup>diff --git a/apps/docs/rc/resources/tutorials/first-marketplace.mdx b/apps/docs/rc/resources/tutorials/first-marketplace.mdxnew file mode 100644index 000000000..7b7e82392--- /dev/null+++ b/apps/docs/rc/resources/tutorials/first-marketplace.mdx@@ -0,0 +1,45 @@+---+title: "Build your first marketplace"+description: "Go end-to-end: create a project, approve a seller, list a product, place a split order, and watch a payout settle."+---++<Note>+ This tutorial is being written. The outline below is the intended structure.+</Note>++<Info>+ **One order, three perspectives.** The same purchase looks different on every surface: the customer sees one checkout, the operator sees an order group with per-seller child orders, and each seller sees only their slice. Keeping those three views straight is the core mental model of a Mercur marketplace — this tutorial walks all three.+</Info>++## What you'll build++A working marketplace with one approved seller, one product, and one split order that settles into a payout. Prerequisites listed up front.++<Steps>+ <Step title="Create the project">+ Condensed link back to [Installation](/rc/learn/installation).+ </Step>+ <Step title="Approve a seller">+ From the Admin Panel.+ </Step>+ <Step title="List a product">+ From the Vendor Panel.+ </Step>+ <Step title="Place a split order">+ From the storefront or Store API.+ </Step>+ <Step title="See the payout">+ From the Vendor Panel.+ </Step>+</Steps>++## Verify++A checklist of what "done" looks like — the observable end state to confirm every step worked.++## Next steps++<CardGroup cols={2}>+ <Card title="Add a feature with a block" href="/rc/resources/tutorials/add-a-block" />+ <Card title="Configure commissions" href="/rc/resources/tutorials/configure-commissions" />+</CardGroup>diff --git a/apps/docs/rc/resources/tutorials/handle-product-requests.mdx b/apps/docs/rc/resources/tutorials/handle-product-requests.mdxnew file mode 100644index 000000000..cbfa57441--- /dev/null+++ b/apps/docs/rc/resources/tutorials/handle-product-requests.mdx@@ -0,0 +1,80 @@+---+title: "Handle product requests"+description: "Walk a vendor's product submission and a follow-up edit through the operator review pipeline — confirm, decline, or send back."+---++Because Mercur's catalog is [shared](/rc/learn/products), vendors never mutate products directly. New products and edits arrive as **product changes** — reviewable requests the operator confirms, declines, or sends back for revision. This tutorial plays both roles: the vendor submitting, and the operator reviewing.++<Info>+ **Nothing touches the live product while a change is pending.** A `ProductChange` bundles ordered actions (`UPDATE`, `VARIANT_ADD`, `ATTRIBUTE_UPDATE`, …) that are applied only on confirmation. Declining or canceling leaves the product exactly as it was — and confirmed changes are never deleted, so the same records double as the product's audit trail.+</Info>++## What you'll build++One complete review cycle: a vendor submits a new product, the operator requests a revision, the vendor resubmits, the operator publishes. Then a smaller edit request on the now-live product.++## Review outcomes++The review queue on the admin product detail offers three outcomes:++| Action | Effect |+|--------|--------|+| **Confirm** | The product is published into the shared catalog |+| **Reject** | Status becomes `rejected`; the product stays out of the catalog |+| **Request changes** | The submission returns to the vendor with a reason (`requires_action_by` / `requires_action_reason`) |++## Run the review cycle++<Steps>+ <Step title="Submit a product as the vendor">+ In the Vendor Portal, create a product. Vendor-created products enter the catalog with status **`proposed`** — visible only to their creator, not to other sellers or the storefront.++ Behind the scenes the platform records a `ProductChange` with a `PRODUCT_ADD` action and `created_by` set to the submitting member. That attribution is what keeps the seller's unpublished submissions in their own product list.+ </Step>+ <Step title="Request changes as the operator">+ In the Admin Panel, open the product and choose **Request changes** with a note — say, "add product dimensions". Use the external note for the vendor-visible message; internal notes stay operator-only.+ </Step>+ <Step title="Revise and resubmit as the vendor">+ Back in the Vendor Portal, the product page shows the revision request and the operator's note. The vendor updates the product and resubmits. As the operator, **Confirm** this time — the product's status flips to `published` and it enters the shared catalog for every eligible seller.+ </Step>+ <Step title="Request an edit on the live product">+ Now that the product is published, edits also flow through review. As the vendor, change the product's description. This creates a new `ProductChange` in `pending` with an `UPDATE` action — the live product is unchanged until the operator confirms. Confirm it and watch the description update.+ </Step>+</Steps>++<Note>+ Any seller may propose changes to any published product — the shared catalog is collaborative. Selling-eligibility restrictions limit who may *sell* a product, not who may *suggest improvements* to it.+</Note>++## Verify++1. After step 1, the product is `proposed`: visible in the submitting vendor's list, absent from other vendors' lists and the Store API.+2. After **Request changes**, the vendor sees the revision note; the change is flagged `requires action`.+3. After the final **Confirm** in step 3, the product is `published` and appears in the Store API.+4. During step 4, the storefront still shows the old description while the change is `pending` — and the new one after confirmation.+5. The product's change history lists every change with who requested it, who reviewed it, and when.++## FAQ++<AccordionGroup>+ <Accordion title="Do all edits require operator review?">+ No — some low-risk edits are **auto-confirmed**: they still create a change record for the audit trail but apply immediately without waiting. Structural changes (variants, attributes, status) go through review.+ </Accordion>+ <Accordion title="Can the vendor withdraw a pending request?">+ Yes — a pending change can be **canceled** by its requester, recorded with the same audit fields (`canceled_by`, timestamp). Once confirmed or declined, the outcome is final; a new change is needed for further edits.+ </Accordion>+ <Accordion title="What's the difference between rejecting and requesting changes?">+ **Reject** is terminal for a submission — the product is marked `rejected` and stays out of the catalog. **Request changes** keeps the change alive and hands it back to the vendor with a reason; it's the "revise and resubmit" path.+ </Accordion>+</AccordionGroup>++## Next steps++<CardGroup cols={2}>+ <Card title="Product Requests & Approvals" href="/rc/learn/product-requests">+ The full ProductChange data model, actions, and lifecycle.+ </Card>+ <Card title="Master products & offers" href="/rc/resources/tutorials/master-products-and-offers">+ What happens after publication — sellers listing against the shared record.+ </Card>+</CardGroup>diff --git a/apps/docs/rc/resources/tutorials/import-export-products.mdx b/apps/docs/rc/resources/tutorials/import-export-products.mdxnew file mode 100644index 000000000..7667bbfc9--- /dev/null+++ b/apps/docs/rc/resources/tutorials/import-export-products.mdx@@ -0,0 +1,96 @@+---+title: "Import and export products via CSV"+description: "Install the product-import-export block and give vendors CSV import and export drawers on their product list."+---++Bulk catalog operations belong to vendors, not the operator — a seller migrating from another platform needs to bring hundreds of listings with them. The `product-import-export` block adds CSV import and export to the Vendor Portal: API routes, workflows built on Medusa's product CSV steps, and drawer UIs wired into the product list.++<Info>+ **This block is also a masterclass in Mercur's extension model.** It ships backend workflows and routes into your API package, and it overrides the vendor `/products` page by dropping a route file that [re-composes the built-in page's compound slots](/rc/resources/tutorials/recompose-a-page) — adding Import/Export buttons while keeping the stock table untouched. After installing, read its source; you own every file.+</Info>++## What you'll build++A vendor product list with **Import** and **Export** header buttons, a working CSV round-trip, and the block's source code in your project.++## Install and wire the block++<Steps>+ <Step title="Install the block">+ ```bash+ bunx @mercurjs/cli@rc add product-import-export+ ```++ The CLI copies the block's files into the directories mapped by your `blocks.json` aliases — workflows and routes into the API package, pages and hooks into the vendor app.+ </Step>+ <Step title="Install its dependencies">+ The block uses Medusa's CSV flows and `multer` for uploads. Install them in the **API workspace**, not the project root:++ ```bash+ cd packages/api+ bun add @medusajs/core-flows multer @types/multer+ ```+ </Step>+ <Step title="Register the middleware">+ The import route needs its upload middleware. Add it to your API's `middlewares.ts`:++ ```typescript packages/api/src/api/middlewares.ts+ import { defineMiddlewares } from '@medusajs/medusa'+ import { productImportExportMiddlewares } from './vendor/products/middlewares'++ export default defineMiddlewares({+ routes: [...productImportExportMiddlewares],+ })+ ```+ </Step>+ <Step title="Regenerate types">+ The block added `POST /vendor/products/import` and `GET /vendor/products/export`. Regenerate the route map so the vendor app's typed client knows about them:++ ```bash+ bunx @mercurjs/cli@rc codegen+ ```++ <Note>+ No new modules and no migrations — the block reuses Medusa's built-in product CSV steps, so there's nothing to add to `medusa-config.ts` for this one. Always read a block's post-install output: each block declares its own setup steps.+ </Note>+ </Step>+ <Step title="Run a round-trip">+ Start the project and open the Vendor Portal's **Products** page — the header now shows Import and Export next to Create.++ 1. **Export** — opens the drawer at `/products/export` and downloads the seller's current products as CSV.+ 2. Edit the CSV: tweak a title, add a row.+ 3. **Import** — the drawer at `/products/import` accepts the file, validates rows, and shows an import summary before applying.+ </Step>+</Steps>++## Verify++1. The Products header shows Import and Export buttons; the rest of the page (search, filters, pagination) behaves exactly as before.+2. The exported CSV contains the seller's products — and only theirs; the workflow scopes to the authenticated seller.+3. After importing the edited CSV, the changed title appears in the product list.+4. The block's source lives in your repo (e.g. `packages/api/src/workflows/import-seller-products.ts`, `apps/vendor/src/routes/products/page.tsx`) — run `bunx @mercurjs/cli@rc diff product-import-export` to compare against the registry later.++## FAQ++<AccordionGroup>+ <Accordion title="Can I customize the CSV columns or validation?">+ Yes — the block is source code in your repo. The import workflow (`import-seller-products.ts`) and its validation step are yours to edit; the drawer UI under `routes/products/import/` includes the CSV template helper you can extend.+ </Accordion>+ <Accordion title="I already customized my /products page — will the block overwrite it?">+ The block ships its own `routes/products/page.tsx`. If you already have one, the CLI asks before overwriting (or use `--overwrite` explicitly). Merge by hand in that case: keep your composition and add the block's Import/Export buttons to your `HeaderActions`.+ </Accordion>+ <Accordion title="Does import respect the product approval flow?">+ Imported products enter through the same vendor create path as manual submissions — so they follow the [product-request pipeline](/rc/resources/tutorials/handle-product-requests) and land as `proposed` for operator review, not as instantly published records.+ </Accordion>+</AccordionGroup>++## Next steps++<CardGroup cols={2}>+ <Card title="Re-compose a built-in page" href="/rc/resources/tutorials/recompose-a-page">+ The page-override technique this block uses, explained step by step.+ </Card>+ <Card title="Build your own block" href="/rc/resources/tutorials/build-a-block">+ Package a feature like this one and publish it to your own registry.+ </Card>+</CardGroup>diff --git a/apps/docs/rc/resources/tutorials/master-products-and-offers.mdx b/apps/docs/rc/resources/tutorials/master-products-and-offers.mdxnew file mode 100644index 000000000..fde47bb0c--- /dev/null+++ b/apps/docs/rc/resources/tutorials/master-products-and-offers.mdx@@ -0,0 +1,89 @@+---+title: "Work with master products and offers"+description: "Two sellers compete on one catalog entry: publish a master product, create competing offers, and read per-offer prices from the Store API."+---++Mercur's catalog is a **master catalog**: one canonical product record, many sellers listing against it. The product defines *what the item is*; each seller's **offer** defines *how they sell it* — their SKU, price, stock, and shipping. This tutorial builds the classic "buy box" scenario: two sellers, one product, two competing offers.++<Info>+ **No seller owns a product.** There is no owner column. Creating a product adds a candidate to the shared catalog — the creator gets attribution (so their unpublished submissions appear in their own list) but no rights over the record after publication. What looks like ownership elsewhere is split into selling eligibility, creator attribution, and the status lifecycle. See [Products](/rc/learn/products).+</Info>++## What you'll build++A published master product with offers from two sellers at different prices, visible side by side through the Store API with per-offer calculated prices.++## Product vs offer++| Concern | Lives on | Example |+|---------|----------|---------|+| What the item is | Master product | "Classic White T-Shirt", variants, attributes |+| Who may sell it | `product_seller` allowlist | Empty = every seller; assigned = only those sellers |+| How a seller sells it | Offer | SKU, price, stock, shipping profile |++## Build the buy box++<Steps>+ <Step title="Publish a master product">+ As Seller A, create a product in the Vendor Portal — say "Classic White T-Shirt" with a size variant. It enters as `proposed`; as the operator, confirm it in the Admin Panel so it's `published` (the review flow is covered in [Handle product requests](/rc/resources/tutorials/handle-product-requests)).++ The published product now belongs to the shared catalog. Note what it does **not** have: a seller price or seller stock.+ </Step>+ <Step title="Seller A creates an offer">+ In Seller A's Vendor Portal, create an offer against the product's variant: their own SKU, a price of $25, stock of 100, and one of their shipping profiles.++ <Warning>+ Offer inventory is linked to the **offer, not the variant**. Each seller manages stock for their own listing independently — a variant has no marketplace-wide stock figure, and its own `inventory_items` relation is empty for offer-based listings. Always read stock through the offer.+ </Warning>+ </Step>+ <Step title="Seller B lists the same product">+ As Seller B, find the same published product in the catalog and create a competing offer on the same variant — different SKU, $23, stock of 40. The `(seller_id, sku)` pair is unique per seller, so both sellers can use whatever SKU scheme they like.++ Nothing about the master product changed. Two commercial listings now point at one catalog entry.+ </Step>+ <Step title="Read the buy box from the Store API">+ The Store API exposes offers directly, each with its own calculated price:++ ```bash+ curl "http://localhost:9000/store/offers?product_id=prod_123" \+ -H "x-publishable-api-key: <key>"+ ```++ Offers share the variant's price set scoped by an offer rule — each offer carries its own prices without duplicating the variant, and the storefront computes a `calculated_price` per offer. A buy-box storefront fetches the product once, then renders every seller's offer against it.+ </Step>+ <Step title="Check out against an offer">+ Add Seller B's offer to a cart and place the order. The cart line item links to the **specific offer** purchased, and that link is preserved onto the order line item — so fulfillment, [commission calculation](/rc/learn/commissions), and [payouts](/rc/learn/payouts) all resolve to Seller B, even though both sellers list the same variant.+ </Step>+</Steps>++## Verify++1. Both offers appear in `GET /store/offers?product_id=...` with different `calculated_price` values.+2. Each seller's Vendor Portal shows only their own offer; the Admin Panel lists both with store, pricing, and inventory.+3. After the checkout in step 5, the order lands with Seller B; Seller A's offer and stock are untouched.+4. Reducing Seller B's offer stock doesn't affect Seller A's availability — inventory is per offer.++## FAQ++<AccordionGroup>+ <Accordion title="How do I restrict who may sell a product?">+ The operator manages the `product_seller` allowlist: a product with assignments is visible and sellable only for those sellers, while a product with **no** assignments is open to every seller. Eligibility limits selling — it does not limit who may propose edits to the shared record.+ </Accordion>+ <Accordion title="Can two sellers use the same SKU?">+ Yes — SKU uniqueness is per seller (`seller_id` + `sku`). Seller A and Seller B can both use `TSHIRT-WHITE-M`; a single seller cannot list the same SKU twice.+ </Accordion>+ <Accordion title="Who fulfills, refunds, and gets paid when several sellers list the same variant?">+ Always the seller whose **offer** was purchased. The offer link travels from cart line to order line, so fulfillment, returns, commission, and payout all resolve through it — the variant alone is never enough to identify the seller.+ </Accordion>+</AccordionGroup>++## Next steps++<CardGroup cols={2}>+ <Card title="Offers" href="/rc/learn/offers">+ The offer data model, relationships, and checkout links.+ </Card>+ <Card title="Order Groups" href="/rc/learn/order-groups">+ What happens when a cart spans both sellers — the multi-vendor split.+ </Card>+</CardGroup>diff --git a/apps/docs/rc/resources/tutorials/recompose-a-page.mdx b/apps/docs/rc/resources/tutorials/recompose-a-page.mdxnew file mode 100644index 000000000..7470b87d3--- /dev/null+++ b/apps/docs/rc/resources/tutorials/recompose-a-page.mdx@@ -0,0 +1,129 @@+---+title: "Re-compose a built-in page"+description: "Override a built-in panel page by dropping a route file at the same path and re-composing its compound component slots."+---++Every page in the admin and vendor panels is exported as a **compound component** — a root plus named slots like `Header`, `HeaderActions`, and `DataTable`. That means you never fork a page to change one part of it: you drop a `page.tsx` at the same route path, render the original page, and swap only the slot you care about. Everything you don't touch keeps its default behavior — data fetching, filters, pagination, i18n, all of it.++<Info>+ **This is not Medusa's widget system.** Medusa's admin lets you inject widgets into predefined zones around a page. Mercur takes a different approach: pages are React compound components you re-compose directly. There are no injection zones and no `defineWidgetConfig` — you get the actual page component and decide what renders inside it. See [Extending Panels](/rc/resources/customization/extending-panels) for the full comparison.+</Info>++## What you'll build++A vendor portal `/products` page with **Import** and **Export** buttons added next to the built-in Create button — while the table, search, filters, and everything else stay exactly as shipped. This is the same technique the official `product-import-export` block uses.++## Slot anatomy++Built-in pages are exported from the `/pages` subpath of each panel package:++```typescript+import { ProductListPage } from "@mercurjs/vendor/pages" // vendor portal+import { CustomerListPage } from "@mercurjs/admin/pages" // admin panel+```++Each list page exposes the same family of slots:++| Slot | Renders |+|------|---------|+| `Table` | The `Container` shell holding header + table |+| `Header` | The title/actions row |+| `HeaderTitle` | Heading and subtitle |+| `HeaderActions` | The action button cluster |+| `HeaderCreateButton` | The built-in Create button |+| `DataTable` | The wired data table — fetching, columns, filters, pagination |++Detail pages expose section slots instead (e.g. `CustomerDetailPage.Main`, `CustomerDetailPage.Sidebar`, `CustomerDetailPage.MainGeneralSection`).++## Override the page++<Steps>+ <Step title="Drop a route file at the same path">+ Create the file in your vendor app at the path that matches the built-in route. `/products` maps to `src/routes/products/page.tsx`:++ ```tsx apps/vendor/src/routes/products/page.tsx+ import { Link } from "react-router-dom"+ import { Button } from "@medusajs/ui"+ import { ArrowDownTray, ArrowUpTray } from "@medusajs/icons"+ import { ProductListPage } from "@mercurjs/vendor/pages"++ export default function ProductsWithImportExport() {+ return (+ <ProductListPage>+ <ProductListPage.Table>+ <ProductListPage.Header>+ <ProductListPage.HeaderTitle />+ <ProductListPage.HeaderActions>+ <Button size="small" variant="secondary" asChild>+ <Link to="import">+ <ArrowUpTray />+ Import+ </Link>+ </Button>+ <Button size="small" variant="secondary" asChild>+ <Link to="export">+ <ArrowDownTray />+ Export+ </Link>+ </Button>+ <ProductListPage.HeaderCreateButton />+ </ProductListPage.HeaderActions>+ </ProductListPage.Header>+ <ProductListPage.DataTable />+ </ProductListPage.Table>+ </ProductListPage>+ )+ }+ ```+ </Step>+ <Step title="Reuse the slots you don't change">+ Note what happened in that file: `HeaderTitle`, `HeaderCreateButton`, and `DataTable` are the originals, rendered untouched. Only `HeaderActions` gained two buttons. You re-compose top-down — render the page, re-declare only the branch you're changing, and keep original slots for everything inside it.+ </Step>+ <Step title="Reload the panel">+ The dashboard SDK picks the file up automatically (adding or removing a route file triggers a full reload in dev). Because the path matches a built-in route, **your page replaces the built-in one** — no configuration, no registration.+ </Step>+</Steps>++<Note>+ When a custom route's path matches a built-in route, your page replaces the built-in one. Routes at new paths are appended instead. That one rule is the entire override mechanism.+</Note>++## How defaults work++If you render a compound page with **no children**, it renders its full default composition — so `<ProductListPage />` alone is identical to the built-in page. Every page root follows the pattern:++```tsx+Children.count(children) > 0 ? children : <DefaultComposition />+```++## Verify++1. Run your project (`bun run dev`) and open the vendor portal.+2. Navigate to **Products** — the list should look identical to before, plus Import and Export buttons in the header.+3. Search, filter, and paginate the table — all built-in behavior must still work, since `DataTable` is untouched.+4. Delete your `src/routes/products/page.tsx` and reload — the built-in page comes back. Nothing was forked.++## FAQ++<AccordionGroup>+ <Accordion title="Where do I find which slots a page exposes?">+ Import the page from `@mercurjs/vendor/pages` or `@mercurjs/admin/pages` and let your editor's autocomplete list the attached members — every slot is a static property on the page component. The naming is consistent across pages: list pages expose `Table`/`Header`/`HeaderTitle`/`HeaderActions`/`HeaderCreateButton`/`DataTable`; detail pages expose `Main`/`Sidebar` plus one property per section.+ </Accordion>+ <Accordion title="Can I remove a built-in element, like the Create button?">+ Yes — re-composition is declarative. Anything you don't render doesn't appear: re-declare `HeaderActions` with only your own buttons and omit `HeaderCreateButton`.+ </Accordion>+ <Accordion title="What about changing the table columns?">+ `DataTable` is a single slot — you either keep it wholesale or replace it with your own table. For a different column set, replace the slot with your own component built on the shared `DataTable`/`useDataTable` primitives from the panel package.+ </Accordion>+</AccordionGroup>++## Next steps++<CardGroup cols={2}>+ <Card title="Replace panel components" href="/rc/resources/tutorials/replace-panel-components">+ Swap global chrome like the sidebar or topbar instead of a single page.+ </Card>+ <Card title="Add a custom API route" href="/rc/resources/tutorials/custom-api-route">+ Back your custom page with a typed endpoint of your own.+ </Card>+</CardGroup>diff --git a/apps/docs/rc/resources/tutorials/replace-panel-components.mdx b/apps/docs/rc/resources/tutorials/replace-panel-components.mdxnew file mode 100644index 000000000..68f546c46--- /dev/null+++ b/apps/docs/rc/resources/tutorials/replace-panel-components.mdx@@ -0,0 +1,116 @@+---+title: "Replace panel components"+description: "Swap the sidebar, topbar actions, or store setup screen for your own components through dashboard SDK configuration."+---++Some customizations aren't about one page — they change the panel's global chrome. For those, the dashboard SDK exposes a small set of **named component overrides**: you point the plugin config at your own file, and the panel renders your component in place of the built-in one everywhere it appears.++<Info>+ **Choose the right tool.** A component override replaces one of four global layout slots across the whole panel. If you want to change a single page, [re-compose it](/rc/resources/tutorials/recompose-a-page) instead — and if you want to add a new screen, just [drop in a route](/rc/resources/tutorials/custom-panel-page). The decision guide in [Extending Panels](/rc/resources/customization/extending-panels#choosing-your-extension-mechanism) compares all three.+</Info>++## What you'll build++A vendor portal with custom topbar actions (a help link and a status badge) and a custom main sidebar, configured entirely from `vite.config.ts`.++## The available slots++Exactly four layout components can be replaced:++| Component | Where it renders |+|-----------|------------------|+| `MainSidebar` | Primary navigation sidebar on every main page |+| `SettingsSidebar` | Sidebar of the `/settings` section |+| `TopbarActions` | Action cluster on the right side of the top bar |+| `StoreSetup` | The store setup screen shown to new sellers (vendor portal) |++Anything else — a page, a section, a table — is customized through routes and compound components, not through overrides.++## Set up the override++<Steps>+ <Step title="Write the replacement component">+ Create the component anywhere under `src/`. It must have a **default export**:++ ```tsx apps/vendor/src/components/topbar-actions.tsx+ import { Badge, Button } from "@medusajs/ui"++ export default function TopbarActions() {+ return (+ <div className="flex items-center gap-x-2">+ <Badge size="2xsmall" color="green">+ All systems operational+ </Badge>+ <Button size="small" variant="transparent" asChild>+ <a href="https://help.example.com" target="_blank" rel="noreferrer">+ Help+ </a>+ </Button>+ </div>+ )+ }+ ```+ </Step>+ <Step title="Register it in the Vite config">+ Component overrides live in the `components` option of `mercurDashboardPlugin`, in your panel app's `vite.config.ts`. Paths are **relative to `src/`**:++ ```typescript apps/vendor/vite.config.ts+ import { defineConfig } from 'vite'+ import react from '@vitejs/plugin-react'+ import { mercurDashboardPlugin } from '@mercurjs/dashboard-sdk'++ export default defineConfig({+ plugins: [+ react(),+ mercurDashboardPlugin({+ medusaConfigPath: '../../packages/api/medusa-config.ts',+ components: {+ TopbarActions: 'components/topbar-actions',+ MainSidebar: 'components/main-sidebar',+ },+ }),+ ],+ })+ ```++ The plugin resolves each path at build time and swaps your component in through the `virtual:mercur/components` module — no runtime registration, no context providers to wire.+ </Step>+ <Step title="Restart the dev server">+ Vite config changes require a restart. After it, your components render everywhere their slots appear.+ </Step>+</Steps>++<Tip>+ Build overrides with `@medusajs/ui` components and Medusa UI color tokens so they match the rest of the panel. The panels ship no other UI library.+</Tip>++## Verify++1. Open the vendor portal — the top bar shows your badge and Help link on every page.+2. Navigate between main pages and `/settings` — the override applies everywhere its slot renders.+3. Remove the `components` entry and restart — the built-in components return. The originals were never modified.++## FAQ++<AccordionGroup>+ <Accordion title="If I replace MainSidebar, do my custom routes still show up in the menu?">+ Only if your sidebar renders them. A `MainSidebar` override replaces the **entire** navigation sidebar, including the auto-generated menu items from route `config` exports — read them from `virtual:mercur/menu-items` if you want to keep automatic navigation. If you only want to add or reorder items, you don't need an override at all: the `config` export on route files (with `rank` and `nested`) covers that.+ </Accordion>+ <Accordion title="Can I override other components, like the login page or a form?">+ No — these four slots are the complete list. The login flow, forms, and everything page-level are customized through drop-in routes and [compound re-composition](/rc/resources/tutorials/recompose-a-page).+ </Accordion>+ <Accordion title="Do overrides apply to both panels?">+ Each panel app has its own `vite.config.ts`, so overrides are configured per panel. `StoreSetup` only exists in the vendor portal; the other three slots exist in both.+ </Accordion>+</AccordionGroup>++## Next steps++<CardGroup cols={2}>+ <Card title="Re-compose a built-in page" href="/rc/resources/tutorials/recompose-a-page">+ Change one page's composition instead of global chrome.+ </Card>+ <Card title="Extending Panels" href="/rc/resources/customization/extending-panels">+ The full reference for routes, navigation, branding, and overrides.+ </Card>+</CardGroup>diff --git a/apps/docs/rc/resources/tutorials/seller-payouts-stripe.mdx b/apps/docs/rc/resources/tutorials/seller-payouts-stripe.mdxnew file mode 100644index 000000000..73f85c006--- /dev/null+++ b/apps/docs/rc/resources/tutorials/seller-payouts-stripe.mdx@@ -0,0 +1,89 @@+---+title: "Set up seller payouts"+description: "Take a seller from zero to paid: Stripe Connect onboarding, an order through fulfillment, capture, and the automated payout."+---++Payouts are the last mile of a marketplace — the marketplace collects the customer's payment, deducts its commission, and transfers the remainder to the seller. In Mercur that pipeline is **fully automated**: once a seller is onboarded and an order is fulfilled, scheduled jobs and subscribers handle capture and transfer without any manual step. This tutorial follows one order through the entire pipeline.++<Info>+ **Nothing pays out until the seller's account is `ACTIVE`.** Every stage of the pipeline checks the payout account status. A seller who skips onboarding can sell, but their orders sit uncaptured until the authorization window forces the issue — which is exactly why surfacing onboarding status in the vendor portal matters.+</Info>++## What you'll build++A working payout loop: a seller with an active Stripe Connect account, one fulfilled order, a captured payment, and a payout record that settles via webhook.++## Prerequisites++Stripe Connect must be configured first — provider registration, API keys, and **both** webhooks (payment and payout). Follow the [Stripe Connect integration guide](/rc/resources/integrations/stripe-connect) up to and including "Set up webhooks", then come back here. For local development, keep `stripe listen` forwarding running.++## Run the pipeline++<Steps>+ <Step title="Onboard the seller">+ In the Vendor Portal, the seller opens **Settings → Payouts** and starts onboarding. Under the hood this creates a `PayoutAccount` (status `PENDING`) and an `Onboarding` record holding the Stripe onboarding link:++ ```bash+ curl -X POST http://localhost:9000/vendor/payout-accounts/<account-id>/onboarding \+ -H "Authorization: Bearer <seller-token>" \+ -H "Content-Type: application/json" \+ -d '{ "context": { "return_url": "http://localhost:7001/settings/payouts" } }'+ ```++ The seller completes Stripe's hosted flow (identity, bank account) — in test mode, Stripe's test data completes it in a minute. When Stripe activates the account, the payout webhook delivers an `account.activated` event and Mercur flips the account to `ACTIVE`. No polling — the webhook is the source of truth.+ </Step>+ <Step title="Place and fulfill an order">+ Place an order for one of the seller's listings, then in the Vendor Portal fulfill it. Fulfillment matters: by default, capture requires the order to reach `fulfilled` status (configurable via the payout module's `requiredFulfillmentStatus` option).+ </Step>+ <Step title="Watch the capture">+ A scheduled job runs every 15 minutes looking for orders that are ready: payment `authorized`, seller `ACTIVE`, fulfillment status met, no payout yet. When the capture deadline approaches it emits `order.capture_requested`, and a subscriber captures the payment.++ To move faster while testing, wait for the next 15-minute tick after fulfillment.++ <Warning>+ Payment authorizations expire — 7 days by default (`authorizationWindowMs`). Sellers who don't fulfill within the window (`sellerActionWindowMs`, 72h default) risk the capture buffer kicking in or the authorization expiring entirely. Tune these in the payout module options with your fulfillment SLAs in mind.+ </Warning>+ </Step>+ <Step title="The payout lands">+ Once per day (1 AM UTC) a job scans captured orders without payouts and emits `payout.requested` per order. The `createPayoutWorkflow` then:++ 1. Loads the order with its commission lines.+ 2. Calculates `payout_amount = order.total − total_commission`.+ 3. Calls Stripe to create the transfer and records a `Payout` (status `PENDING`).++ Stripe's webhook then walks the payout through `PROCESSING` → `PAID` (or `FAILED`).+ </Step>+</Steps>++## Verify++1. **Account**: `GET /vendor/payout-accounts/<id>` returns `status: "ACTIVE"` after onboarding.+2. **Capture**: after fulfillment plus one job tick, the order's payment shows as captured.+3. **Payout**: `GET /admin/payouts` lists a payout for the order, with `amount` equal to the order total minus the commission lines from your [commission configuration](/rc/resources/tutorials/configure-commissions).+4. **Vendor view**: the seller sees the payout and its status in the Vendor Portal's payout history.+5. **Stripe**: the transfer appears on the connected account in the Stripe test dashboard.++## FAQ++<AccordionGroup>+ <Accordion title="What if the seller never completes onboarding?">+ Their orders stay uncaptured. The capture job skips orders whose seller isn't `ACTIVE`, and once the authorization window lapses the payment expires (an `order.authorization_expired` event fires). Surface the onboarding status prominently and chase incomplete sellers early.+ </Accordion>+ <Accordion title="Why hasn't a payout appeared even though the order is captured?">+ The payout job runs once per day at 1 AM UTC — a captured order waits for the next daily tick. Also check that no payout already exists for the order and that the seller's account is still `ACTIVE` (a `RESTRICTED` account pauses payouts until the provider clears it).+ </Accordion>+ <Accordion title="What do the payout statuses mean?">+ `PENDING` — transfer initiated; `PROCESSING` — the provider is moving funds; `PAID` — settled; `FAILED` / `CANCELED` — the transfer didn't complete. All transitions after `PENDING` come from provider webhook events, so a stuck status usually means the payout webhook isn't reaching your API.+ </Accordion>+</AccordionGroup>++## Next steps++<CardGroup cols={2}>+ <Card title="Payout" href="/rc/learn/payouts">+ The full pipeline reference — statuses, jobs, webhook events, module options.+ </Card>+ <Card title="Stripe Connect" href="/rc/resources/integrations/stripe-connect">+ Provider configuration, transfers vs payouts, refunds, and EU considerations.+ </Card>+</CardGroup>diff --git a/apps/docs/rc/telemetry.mdx b/apps/docs/rc/telemetry.mdxnew file mode 100644index 000000000..0b706c24b--- /dev/null+++ b/apps/docs/rc/telemetry.mdx@@ -0,0 +1,67 @@+---+title: "Telemetry"+description: "Learn about the anonymous usage data collected by the Mercur CLI"+---++## Overview++The Mercur CLI collects **anonymous usage data** to help us understand how the CLI is used and improve the developer experience. This data is collected by default but can be easily disabled.++## What We Collect++When you run CLI commands (`create`, `init`, `add`, `registry:build`), the following data is sent:++| Data | Description |+|------|-------------|+| Event type | Which command was run and its outcome |+| Node.js version | Your Node.js runtime version |+| Node environment | The `NODE_ENV` value |+| Mercur version | Version of `@mercurjs/cli` in your project |+| Medusa version | Version of `@medusajs/framework` in your project |+| Package manager | npm, yarn, pnpm, or bun |+| Project structure | Whether `src/` directory is used, alias prefix |+| System info | OS, platform, architecture, CPU model/speed/count, RAM |+| Environment | Whether running in WSL, Docker, or a TTY |+| Deployment vendor | Detected hosting platform (Railway, Fly.io, Heroku, etc.) |+| Project ID | SHA-256 hash (base64) of your git remote URL — **not the URL itself** |+| Project config | Contents of your `blocks.json` configuration |+| Email | **Only** if you voluntarily provided it during `create-mercur-app` |++## What We Do NOT Collect++- Source code or file contents+- File names or directory structure+- Git history or commit messages+- Personal data (beyond the optional email above)++## How to Opt Out++### Using the CLI++```bash+mercurjs telemetry --disable+```++### Using an environment variable++```bash+export MERCUR_DISABLE_TELEMETRY=true+```++This is useful for CI/CD environments or shared configurations.++### Check current status++```bash+mercurjs telemetry+```++## Where Data Goes++Telemetry events are sent to `https://telemetry.mercurjs.com`. The data is used exclusively by the Mercur team to prioritize features and fix issues.++## Re-enabling Telemetry++```bash+mercurjs telemetry --enable+```diff --git a/apps/docs/rc/tools/api-client.mdx b/apps/docs/rc/tools/api-client.mdxnew file mode 100644index 000000000..15998e5d9--- /dev/null+++ b/apps/docs/rc/tools/api-client.mdx@@ -0,0 +1,155 @@+---+title: "API Client"+description: "Type-safe client for consuming Mercur APIs."+---++`@mercurjs/client` provides a type-safe way to interact with your Mercur backend. Every endpoint, request input, and response is fully typed — inferred directly from your backend routes.++## Installation++```bash+bun add @mercurjs/client+```++## Create a client++```typescript+import { createClient } from "@mercurjs/client";+import type { Routes } from "./.mercur/_generated";++export const client = createClient<Routes>({+ baseUrl: "http://localhost:9000",+});+```++<Info>+ The `Routes` type is generated from your backend using `@mercurjs/cli@rc+ codegen`. This gives the client full type safety with zero manual type+ definitions.+</Info>++You can pass default fetch options for authentication or other headers:++```typescript+export const client = createClient<Routes>({+ baseUrl: "http://localhost:9000",+ fetchOptions: {+ credentials: "include",+ headers: {+ Authorization: `Bearer ${token}`,+ },+ },+});+```++## Calling APIs++The client exposes three methods:++```typescript+// GET — fetch data+const { reviews } = await client.vendor.reviews.query({ limit: 10 });++// POST — create or update+const { product } = await client.vendor.products.mutate({+ title: "New Product",+ status: "draft",+});++// DELETE — remove a resource+await client.vendor.reviews.$id.delete({ $id: "rev_123" });+```++Use `$`-prefixed keys for path parameters:++```typescript+const { review } = await client.vendor.reviews.$id.query({+ $id: "rev_123",+});+```++Override fetch options per request when needed:++```typescript+const { reviews } = await client.vendor.reviews.query({+ fetchOptions: {+ signal: abortController.signal,+ },+});+```++## Inferring types++Extract input and output types from any client method using `InferClientInput` and `InferClientOutput`:++```typescript+import type { InferClientInput, InferClientOutput } from "@mercurjs/client";++type ListInput = InferClientInput<typeof client.vendor.reviews.query>;+type ReviewDTO = InferClientOutput<+ typeof client.vendor.reviews.$id.query+>["review"];+```++## React Query++The client returns plain Promises, so it works with any data-fetching library. Here's a typical pattern with TanStack React Query:++```typescript+import { useQuery } from "@tanstack/react-query";+import { client } from "../lib/client";++export function useReviews(+ query?: InferClientInput<typeof client.vendor.reviews.query>,+) {+ const { data, ...rest } = useQuery({+ queryKey: ["reviews", query],+ queryFn: () => client.vendor.reviews.query(query),+ });++ return { ...data, ...rest };+}+```++## Error handling++Failed requests throw a `ClientError`:++```typescript+import { ClientError } from "@mercurjs/client";++try {+ await client.vendor.reviews.$id.query({ $id: "invalid" });+} catch (error) {+ if (error instanceof ClientError) {+ error.message; // "Review not found"+ error.status; // 404+ error.statusText; // "Not Found"+ }+}+```++## FAQ++<AccordionGroup>+ <Accordion title="Why is a route missing from the client after I added it?">+ The client's types come from the generated route map — run `bunx @mercurjs/cli@rc codegen` after adding or changing route files. During development, `codegen --watch` keeps the map current automatically.+ </Accordion>+ <Accordion title="How are URLs derived from property access?">+ Each property becomes a kebab-cased path segment (`client.vendor.salesSummary` → `/vendor/sales-summary`), `$`-prefixed keys fill path parameters, and the terminal method picks the HTTP verb: `query` → GET, `mutate` → POST, `delete` → DELETE.+ </Accordion>+ <Accordion title="Can I upload files through the client?">+ Yes — pass `Blob`/`File` values in the payload and the client switches to multipart form data automatically.+ </Accordion>+</AccordionGroup>++## Next steps++<CardGroup cols={2}>+ <Card title="Add a custom API route" href="/rc/resources/tutorials/custom-api-route">+ Build a route and call it through the client, end to end.+ </Card>+ <Card title="CLI" href="/rc/tools/cli">+ The codegen command that generates the client's route map.+ </Card>+</CardGroup>diff --git a/apps/docs/rc/tools/cli.mdx b/apps/docs/rc/tools/cli.mdxnew file mode 100644index 000000000..ece46cbed--- /dev/null+++ b/apps/docs/rc/tools/cli.mdx@@ -0,0 +1,196 @@+---+title: "CLI"+description: "Install blocks, scaffold projects, and generate types from the command line."+---++The Mercur CLI (`@mercurjs/cli@rc`) manages your marketplace project — installing blocks, generating types, and checking for updates. To create a new project, use [`create-mercur-app`](https://www.npmjs.com/package/create-mercur-app).++## Installation++```bash+bun add -g @mercurjs/cli@rc+```++## Commands++### create++Scaffolding new projects lives in the standalone [`create-mercur-app`](https://www.npmjs.com/package/create-mercur-app) package, so it downloads fast and works with every package manager's `create` command.++```bash+bun create mercur-app@rc my-marketplace+# or+npm create mercur-app@rc my-marketplace+```++It will prompt you for database credentials and install dependencies automatically.++| Option | Description |+|--------|-------------|+| `-t, --template <template>` | Template to use (default: `basic`) |+| `--no-deps` | Skip dependency installation |+| `--skip-db` | Skip database configuration |+| `--db-connection-string <string>` | PostgreSQL connection string |++### init++Initialize an existing project by creating a `blocks.json` configuration file.++```bash+bunx @mercurjs/cli@rc init+```++This sets up path aliases so the CLI knows where to place blocks in your project:++```json+{+ "aliases": {+ "api": "packages/api/src",+ "vendor": "apps/vendor/src",+ "admin": "apps/admin/src"+ }+}+```++| Option | Description |+|--------|-------------|+| `-d, --defaults` | Use default paths without prompting |+| `-s, --silent` | Suppress output |++### add++Install blocks from the registry into your project.++```bash+bunx @mercurjs/cli@rc add wishlist+bunx @mercurjs/cli@rc add product-review order-tracking+```++Blocks are copied directly into your project as source code. The CLI resolves dependencies, transforms imports to match your path aliases, and installs required packages.++| Option | Description |+|--------|-------------|+| `-o, --overwrite` | Overwrite existing files |+| `-y, --yes` | Skip confirmation |+| `-s, --silent` | Suppress output |++### search++Find available blocks in the registry.++```bash+bunx @mercurjs/cli@rc search --query wishlist+```++| Option | Description |+|--------|-------------|+| `-q, --query <query>` | Search by name or description |+| `-r, --registry <registry>` | Registry to search (default: `@mercurjs`) |++### view++Display detailed information about a block.++```bash+bunx @mercurjs/cli@rc view wishlist+```++### diff++Compare local blocks against registry versions to check for updates.++```bash+bunx @mercurjs/cli@rc diff wishlist+```++If there are changes you want, update with:++```bash+bunx @mercurjs/cli@rc add wishlist --overwrite+```++### codegen++Generate TypeScript types from your API routes. Used by the [API Client](/rc/tools/api-client) for type-safe requests.++```bash+bunx @mercurjs/cli@rc codegen+```++| Option | Description |+|--------|-------------|+| `-w, --watch` | Watch for changes and regenerate automatically |++### registry:build++Build a custom registry from a `registry.json` file.++```bash+bunx @mercurjs/cli@rc build+```++| Option | Description |+|--------|-------------|+| `-o, --output <path>` | Output directory (default: `./r`) |+| `-v, --verbose` | Show detailed output |++### info++Display project configuration and diagnostics.++```bash+bunx @mercurjs/cli@rc info+```++### telemetry++Control anonymous usage data collection.++```bash+bunx @mercurjs/cli@rc telemetry --disable+bunx @mercurjs/cli@rc telemetry --enable+```++## Custom registries++Add custom block registries to your `blocks.json`:++```json+{+ "registries": {+ "@mercurjs": "https://registry.mercurjs.com/{name}",+ "@my-registry": "https://my-registry.com/blocks/{name}.json"+ }+}+```++Use `{name}` as a placeholder for block names. Reference custom registries with the `-r` flag:++```bash+bunx @mercurjs/cli@rc search --query review --registry @my-registry+```++## FAQ++<AccordionGroup>+ <Accordion title="When do I use create vs init?">+ `create` scaffolds a brand-new project from a template. `init` only writes a `blocks.json` into an **existing** project so the CLI knows where to place blocks — use it when adopting blocks in a repo that wasn't created by the CLI.+ </Accordion>+ <Accordion title="When do I need to run codegen?">+ After any change to API route files — added routes, changed validators, renamed paths. The [typed client](/rc/tools/api-client) reads the generated route map, so stale types mean `codegen` hasn't run.+ </Accordion>+ <Accordion title="Will add overwrite my local changes to a block?">+ Not silently — the CLI asks before overwriting existing files unless you pass `--overwrite`. Use `diff` first to see exactly what changed between your copy and the registry.+ </Accordion>+</AccordionGroup>++## Next steps++<CardGroup cols={2}>+ <Card title="Add a feature with a block" href="/rc/resources/tutorials/add-a-block">+ The install workflow end to end — search, view, add, migrate.+ </Card>+ <Card title="API Client" href="/rc/tools/api-client">+ What codegen's route map powers on the frontend.+ </Card>+</CardGroup>diff --git a/apps/docs/rc/tools/dashboard-sdk.mdx b/apps/docs/rc/tools/dashboard-sdk.mdxnew file mode 100644index 000000000..2ccd3c280--- /dev/null+++ b/apps/docs/rc/tools/dashboard-sdk.mdx@@ -0,0 +1,35 @@+---+title: "Dashboard SDK"+description: "The Vite plugin that powers admin and vendor panel extension — file-based routing, virtual modules, and block resolution."+---++<Note>+ This reference is being written. The outline below is the intended structure.+</Note>++<Info>+ **Not Medusa's admin-vite-plugin.** The dashboard SDK is Mercur's own extension framework for both panels — it scans `src/routes/**/page.tsx` files, generates navigation, and injects everything through `virtual:mercur/*` modules at build time. Medusa's `defineWidgetConfig` / `defineRouteConfig` and widget zones are not part of this model. Start with [Extending Panels](/rc/resources/customization/extending-panels) for the authoring guide; this page covers the plugin's internals and options.+</Info>++## What it does++File-based routing, virtual route modules, and block resolution for the admin and vendor panels.++## Setup in a host app++Registering `mercurDashboardPlugin` in a Vite app.++## Configuration options++Backend and vendor URLs, i18n, and build-time config.++## Extension entry points++`admin_ui` and `vendor_ui` entry points exported by block packages.++## Next steps++<CardGroup cols={2}>+ <Card title="Extending the panels" href="/rc/resources/customization/extending-panels" />+ <Card title="API client" href="/rc/tools/api-client" />+</CardGroup>diff --git a/apps/docs/rc/user-guide/admin/overview.mdx b/apps/docs/rc/user-guide/admin/overview.mdxnew file mode 100644index 000000000..9816091c1--- /dev/null+++ b/apps/docs/rc/user-guide/admin/overview.mdx@@ -0,0 +1,23 @@+---+title: "Admin Panel"+description: "What marketplace operators do in the Admin Panel — no technical knowledge required."+---++<Note>+ This guide is being written. The outline below is the intended structure.+</Note>++## What you can do here++Manage sellers, configure commissions, monitor orders and payouts, and control marketplace settings.++## Common tasks++Links to the per-area guides as they are added.++## Next steps++<CardGroup cols={2}>+ <Card title="Stores" href="/rc/user-guide/admin/stores" />+ <Card title="Vendor Panel" href="/rc/user-guide/vendor/overview" />+</CardGroup>diff --git a/apps/docs/rc/user-guide/admin/stores.mdx b/apps/docs/rc/user-guide/admin/stores.mdxnew file mode 100644index 000000000..3aeaf8302--- /dev/null+++ b/apps/docs/rc/user-guide/admin/stores.mdx@@ -0,0 +1,193 @@+---+title: "Stores in Mercur Admin Panel"+sidebarTitle: "Stores"+mode: "default"+---++This guide explains how to manage stores in the Mercur Admin Panel.++## View Stores++To view all stores, select “Stores” in the sidebar menu in your panel.++The table shows store details like name, email, status, date and and whether the admin featured the store. Use search, filter, and sort to find a specific store.++One vendor can have multiple stores, each displayed separately in the list.++.png)++## Create Store++To create a store:++1. Go to “Stores” in the sidebar.+2. Click on the “Create” button.++This opens a form with two steps: “Details” and “Admin”++### 1. Details Step++In the first “Details” step, you can enter the store general information:++1. Enter “Name” and “Email”+2. Optionally enter “Handle” and “Phone”. The “Handle” field value appears in the store storefront URL. It creates a human-readable URL and must be unique across all stores, containing only lowercase letters, numbers, and hyphens. If left blank, Mercur generates a handle from the name.+3. Select “Currency.” Each store can have only one currency.+4. Once you're done, click the "Continue" button.++++### 2. Admin Step++In the second “Admin” step, you assign an admin vendor to manage this store. You can select an existing user or invite a new one. As you type, suggestions will appear: select one or add a new email. Once the store is created, the selected user will receive an email invitation to join.++++Once you create the store, it appears on the list with pending status. The store details entered by the admin during creation can be overwritten by the vendor during onboarding. You can block this depending on the onboarding flow you want.++## Store Details++To view store details:++1. Go to “Stores” in the sidebar.+2. Choose the store from the list.++This opens the store details page. Here, you can view and edit store details, address, company details, payment details, and access their orders, products, users, and time off.++.png)++### Edit Store Details++To edit store details:++1. Go to “Stores” in the sidebar.+2. Choose the store from the list.+3. Click the icon in the section’s header.+4. Choose “Edit” from the dropdown.+5. In the side window that opens, you can edit the store:+ - Status. There are three statuses: Active, Pending, Inactive. When a store is “Inactive” or “Pending”, their products won’t be visible on the storefront.+ - Name+ - Description+ - Handle+ - Phone+ - Website+ - Featured Store Settings. If checked, the store will be highlighted with a special badge for internal use or promotional purposes.+ - Media. You can add logo and banner. This media will be visible on the storefront.+6. Once you’re done, click the “Save” button.++<Warning>+ Once the currency is set, it cannot be changed.+</Warning>++<Note>+ Once the admin edits store details, the vendor is notified in their panel.+</Note>++.png)++### Edit Store Address++To edit store address:++1. Go to “Stores” in the sidebar.+2. Choose the store from the list.+3. Click the icon in the “Address” header.+4. Choose “Edit” from the dropdown.+5. In the side window that opens, you can edit:+ - Name+ - Address+ - Apartment, suite, etc.+ - Postal Code+ - City+ - Country+ - State+6. Once you're done, click the “Save” button.++.png)++### Edit Store Company Details++To edit company details:++1. Go to “Stores” in the sidebar.+2. Choose the store from the list.+3. Click the icon in the “Company Details” header.+4. Choose “Edit” from the dropdown.+5. In the side window that opens, you can edit:+ - Company+ - Registration number+ - Tax ID+6. Once you're done, click the “Save” button.++.png)++### Edit Store Payment Details++To edit payment details:++1. Go to “Stores” in the sidebar.+2. Choose the store from the list.+3. Click the icon in the “Payment Details” header.+4. Choose “Edit” from the dropdown.+5. In the side window, you can edit payment details:+ 1. For all countries except the United States, provide the following details based on your needs:+ - Account name+ - IBAN+ - Account number+ - SWIFT/BIC+ 2. For United States:+ - Account name+ - Account number+ - ACH routing number+6. Once you're done, click the “Save” button.++.png)++## Users++In the “Users” tab, view all store team members who manage the store. You can add new users by selecting existing ones from your base or inviting new members. You can also remove users from the store.++The user added during store creation is the main admin and cannot be removed. This user is marked with an “Admin” badge.++.png)++### Add New User++To add a new user:++1. Go to “Stores” in the sidebar.+2. Choose the store from the list.+3. Select the “Users” tab+4. Click the “Add” button in the section's header.+5. In the form that opens add:+ 1. Email. As you type, suggestions will appear; select one or add a new email.+ 2. Role. There are five roles:+ - Store Administration+ - Inventory Management+ - Order Management+ - Accounting+ - Support+6. Once you're done, click the “Save” button.++.png)++## Time Off++In the “Time off” tab, view the store's time off. It specifies the period when the store will be unavailable to receive orders. The vendor can specify one time off period and add a note. During this period, the store’s products will not be visible on the storefront.++.png)++## Store Request++The vendor can submit a request to create a new store. Once submitted, the store appears on the list with “Pending” status. On the store details page, a block appears at the top with two actions:++- Confirm+- Reject++You can review the request, make necessary updates, and choose to confirm and publish the store or reject the request. Once confirmed, the store status changes to Active.++<Note>+ Once the admin confirms or rejects the store creation request, the vendor receives an email.+</Note>++.png)\ No newline at end of filediff --git a/apps/docs/rc/user-guide/vendor/overview.mdx b/apps/docs/rc/user-guide/vendor/overview.mdxnew file mode 100644index 000000000..20a9acd5a--- /dev/null+++ b/apps/docs/rc/user-guide/vendor/overview.mdx@@ -0,0 +1,23 @@+---+title: "Vendor Panel"+description: "What sellers do in the Vendor Panel — no technical knowledge required."+---++<Note>+ This guide is being written. The outline below is the intended structure.+</Note>++## What you can do here++Manage products, process orders, configure shipping, track payouts, and complete onboarding.++## Common tasks++Links to the per-area guides as they are added.++## Next steps++<CardGroup cols={2}>+ <Card title="Stores" href="/rc/user-guide/vendor/stores" />+ <Card title="Admin Panel" href="/rc/user-guide/admin/overview" />+</CardGroup>diff --git a/apps/docs/rc/user-guide/vendor/stores.mdx b/apps/docs/rc/user-guide/vendor/stores.mdxnew file mode 100644index 000000000..157a4524a--- /dev/null+++ b/apps/docs/rc/user-guide/vendor/stores.mdx@@ -0,0 +1,209 @@+---+title: "Store in Mercur Vendor Panel"+sidebarTitle: "Store"+---++This guide explains how to manage store in the Mercur Vendor Panel.++## Store Set Up++You can set up a store in Mercur in three ways:++1. Admin Invitation: The admin invites you to join the platform and set up your first store.+2. Vendor Request: You create a new store in your panel, which the admin then confirms.+3. Vendor Self-Registration. When enabled, you can apply to join the platform through the storefront or other available entry points.++### Admin Invitation++Once the admin creates the store and invites you, you receive an email with a link to join as the store's admin. After accepting the invitation, you are redirected to the setup page, where you enter your details and set a password. Once completed, click “Continue” to start onboarding.++.png)++The onboarding setup is customizable depending on marketplace needs and may include:++- Store Details+- Address+- Company Details+- Payment Details++.png)++Depending on the marketplace configuration, you need to complete all required steps during onboarding or later in the store profile. The “Complete profile” block shows any missing information required by the marketplace. Once all required information is added, the block disappears.++.png)++### Vendor Request++A vendor can have multiple stores in Mercur. If you already have one, you can create another.++To create a store:++1. Click the store name in the upper left corner.+2. A menu appears showing your available stores, with the active one selected.+3. Click the “Add new store” button.+4. This opens a new page for store setup. The setup is customizable based on marketplace needs and may include:+ - Store Details+ - Address+ - Company Details+ - Payment Details++After creating the store, you are redirected to the store details page with a "Pending" status.++Depending on the marketplace setup, a “Complete profile” block may appear showing any missing information required by the marketplace. Once all required information is added, the block disappears.++<Frame>+ .png)+</Frame>++### Vendor Self-Registration++When the marketplace admin enables self-registration, you can apply to join the platform through the storefront or other entry points. You are then redirected to the registration page to set up an admin account and create the first store.++After creating the store, you are redirected to the store details page with a "Pending" status.++Depending on the marketplace setup, a “Complete profile” block may appear showing any missing information required by the marketplace. Once all required information is added, the block disappears.++.png)++## Store Details++To view store details:++1. Go to “Settings” in the sidebar.+2. Go to “Store” in the sidebar.++This opens the store details page. Here, you can view and edit store details, address, company details, payment details, time off.++.png)++### Edit Store Details++To edit store details:++1. Go to “Settings” in the sidebar.+2. Go to “Store” in the sidebar.+3. Click the icon in the section's header.+4. Choose “Edit” from the dropdown.+5. In the side window that opens, you can edit the store:+ - Name+ - Description+ - Handle+ - Phone+ - Website+ - Media. You can add logo and banner. This media will be visible on the storefront.+6. Once you’re done, click the “Save” button.++<Warning>+ A vendor can have only one currency per store. Once set, the vendor cannot change the currency.+</Warning>++.png)++### Edit Store Address++To edit store address:++1. Go to “Settings” in the sidebar.+2. Go to “Store” in the sidebar.+3. Click the icon in the “Address” header.+4. Choose “Edit” from the dropdown.+5. In the side window that opens, you can edit:+ - Name+ - Address+ - Apartment, suite, etc.+ - Postal Code+ - City+ - Country+ - State+6. Once you're done, click the “Save” button.++.png)++### Edit Store Company Details++To edit company details:++1. Go to “Settings” in the sidebar.+2. Go to “Store” in the sidebar.+3. Click the icon in the “Company Details” header.+4. Choose “Edit” from the dropdown.+5. In the side window that opens, you can edit:+ 1. Company+ 2. Registration number+ 3. Tax ID+6. Once you're done, click the “Save” button.++.png)++### Edit Store Payment Details++To edit payment details:++1. Go to “Settings” in the sidebar.+2. Go to “Store” in the sidebar.+3. Click the icon in the “Payment Details” header.+4. Choose “Edit” from the dropdown.+5. In the side window, you can edit payment details:+ 1. For all countries except the United States, provide the following details based on your needs:+ - Account name+ - IBAN+ - Account number+ - SWIFT/BIC+ 2. For United States:+ - Account name+ - Account number+ - ACH routing number+6. Once you're done, click the “Save” button.++.png)++## Time Off++In the “Time off” section, you can manage your store's time off. It specifies when the store will be unavailable to receive orders. You can specify one time off period and add a note. During this period, the store’s products will not be visible on the storefront.++<Frame>+ .png)+</Frame>++### Create Time Off++To create a time off:++1. Go to “Settings” in the sidebar.+2. Go to “Store” in the sidebar.+3. Click the “Create” button in the “Time off” section.+4. In the side window, you can enter:+ - First day+ - Last day. If you leave this field empty, the store will be closed indefinitely.+ - Note+5. Once you're done, click the “Save” button.++Once time off expires, it will disappear.++++### Edit Time Off++To edit a time off:++1. Go to “Settings” in the sidebar.+2. Go to “Store” in the sidebar.+3. Click the icon in the time off row.+4. Choose “Edit” from the dropdown.+5. In the side window, you can edit:+ - First day+ - Last day. If you leave this field empty, the store will be closed indefinitely.+ - Note+6. Once you're done, click the “Save” button.++++### Delete Time Off++To delete a time off:++1. Go to “Settings” in the sidebar.+2. Go to “Store” in the sidebar.+3. Click the icon in the time off row.+4. Choose “Delete” from the dropdown.\ No newline at end of filediff --git a/apps/docs/style.css b/apps/docs/style.cssnew file mode 100644index 000000000..50412685e--- /dev/null+++ b/apps/docs/style.css@@ -0,0 +1,43 @@+/* Blurred brand-color glow in the page background (à la bun.com/docs). */+body {+ position: relative;+}++body::before {+ content: "";+ position: absolute;+ top: -18rem;+ left: 50%;+ transform: translateX(-50%);+ width: 60rem;+ height: 40rem;+ z-index: 0;+ pointer-events: none;+ border-radius: 9999px;+ filter: blur(120px);+ opacity: 0.28;+ background: radial-gradient(+ closest-side,+ #3139fb 0%,+ rgba(49, 57, 251, 0.45) 45%,+ rgba(49, 57, 251, 0) 100%+ );+}++/* Slightly stronger and cooler on the dark theme so it reads on near-black. */+.dark body::before {+ opacity: 0.4;+ background: radial-gradient(+ closest-side,+ #4b52ff 0%,+ rgba(75, 82, 255, 0.5) 45%,+ rgba(75, 82, 255, 0) 100%+ );+}++/* Keep the actual content above the glow. */+#content-area,+main {+ position: relative;+ z-index: 1;+}diff --git a/apps/docs/telemetry.mdx b/apps/docs/telemetry.mdxindex 1a7e43df6..0b706c24b 100644--- a/apps/docs/telemetry.mdx+++ b/apps/docs/telemetry.mdx@@ -25,7 +25,7 @@ When you run CLI commands (`create`, `init`, `add`, `registry:build`), the follo| Deployment vendor | Detected hosting platform (Railway, Fly.io, Heroku, etc.) || Project ID | SHA-256 hash (base64) of your git remote URL — **not the URL itself** || Project config | Contents of your `blocks.json` configuration |-| Email | **Only** if you voluntarily provided it during `mercurjs create` |+| Email | **Only** if you voluntarily provided it during `create-mercur-app` |## What We Do NOT Collectdiff --git a/apps/vendor/package.json b/apps/vendor/package.jsonindex c6547a8e1..43545b892 100644--- a/apps/vendor/package.json+++ b/apps/vendor/package.json@@ -10,8 +10,8 @@},"dependencies": {"@hookform/resolvers": "3.4.2",- "@medusajs/icons": "options-preview",- "@medusajs/ui": "options-preview",+ "@medusajs/icons": "2.17.2",+ "@medusajs/ui": "4.1.19","@mercurjs/client": "*","@mercurjs/dashboard-sdk": "*","@mercurjs/dashboard-shared": "*",@@ -48,4 +48,4 @@"@types/node": "^24.10.1","@mercurjs/types": "workspace:*"}-}\ No newline at end of file+}diff --git a/bun.lock b/bun.lockindex 1b264f668..df2e15c62 100644--- a/bun.lock+++ b/bun.lock@@ -12,6 +12,7 @@"eslint": "^9.39.2","globals": "^17.0.0","oxlint": "^1.64.0",+ "pg-god": "^1.0.12","prettier": "^3.7.4","turbo": "^2.7.4","typescript": "5.9.3",@@ -23,8 +24,8 @@"version": "0.0.0","dependencies": {"@hookform/resolvers": "3.4.2",- "@medusajs/icons": "options-preview",- "@medusajs/ui": "options-preview",+ "@medusajs/icons": "2.17.2",+ "@medusajs/ui": "4.1.19","@mercurjs/admin": "*","@mercurjs/client": "*","@mercurjs/dashboard-sdk": "*",@@ -64,20 +65,20 @@"name": "@acme/api","version": "0.0.1","dependencies": {- "@medusajs/admin-sdk": "options-preview",- "@medusajs/admin-shared": "options-preview",- "@medusajs/cli": "options-preview",- "@medusajs/dashboard": "options-preview",- "@medusajs/draft-order": "options-preview",- "@medusajs/framework": "options-preview",- "@medusajs/medusa": "options-preview",+ "@medusajs/admin-sdk": "2.17.2",+ "@medusajs/admin-shared": "2.17.2",+ "@medusajs/cli": "2.17.2",+ "@medusajs/dashboard": "2.17.2",+ "@medusajs/draft-order": "2.17.2",+ "@medusajs/framework": "2.17.2",+ "@medusajs/medusa": "2.17.2","@mercurjs/cli": "*","@mercurjs/core": "*","@mercurjs/types": "*","http-proxy-middleware": "^3.0.3",},"devDependencies": {- "@medusajs/test-utils": "options-preview",+ "@medusajs/test-utils": "2.17.2","@swc/core": "^1.7.28","@swc/jest": "^0.2.36","@types/jest": "^29.5.13",@@ -92,8 +93,8 @@"version": "0.0.0","dependencies": {"@hookform/resolvers": "3.4.2",- "@medusajs/icons": "options-preview",- "@medusajs/ui": "options-preview",+ "@medusajs/icons": "2.17.2",+ "@medusajs/ui": "4.1.19","@mercurjs/client": "*","@mercurjs/dashboard-sdk": "*","@mercurjs/dashboard-shared": "*",@@ -131,22 +132,13 @@"vite": "^5.4.21",},},- "e2e-tests": {- "name": "@mercurjs/e2e-tests",- "version": "0.0.1",- "devDependencies": {- "@playwright/test": "^1.50.0",- "@types/node": "^20.12.11",- "typescript": "5.9.3",- },- },"integration-tests": {"name": "@mercurjs/integration-tests","version": "0.0.1","dependencies": {- "@medusajs/draft-order": "options-preview",- "@medusajs/framework": "options-preview",- "@medusajs/medusa": "options-preview",+ "@medusajs/draft-order": "2.17.2",+ "@medusajs/framework": "2.17.2",+ "@medusajs/medusa": "2.17.2","@mercurjs/core": "*","jsonwebtoken": "^9.0.2","meilisearch": "^0.47.0",@@ -154,8 +146,8 @@},"devDependencies": {"@jest/test-sequencer": "^30.2.0",- "@medusajs/test-utils": "options-preview",- "@medusajs/types": "options-preview",+ "@medusajs/test-utils": "2.17.2",+ "@medusajs/types": "2.17.2","@mercurjs/types": "*","@swc/core": "^1.7.28","@swc/jest": "^0.2.36",@@ -167,7 +159,7 @@},"packages/admin": {"name": "@mercurjs/admin",- "version": "2.2.0-canary.39",+ "version": "2.2.0-canary.40","dependencies": {"@ariakit/react": "^0.4.15","@babel/runtime": "^7.26.10",@@ -176,12 +168,12 @@"@dnd-kit/utilities": "^3.2.2","@hookform/error-message": "^2.0.1","@hookform/resolvers": "3.4.2",- "@medusajs/admin-shared": "options-preview",- "@medusajs/dashboard": "options-preview",- "@medusajs/icons": "options-preview",- "@medusajs/ui": "options-preview",- "@mercurjs/client": "2.2.0-canary.37",- "@mercurjs/dashboard-shared": "2.2.0-canary.37",+ "@medusajs/admin-shared": "2.17.2",+ "@medusajs/dashboard": "2.17.2",+ "@medusajs/icons": "2.17.2",+ "@medusajs/ui": "4.1.19",+ "@mercurjs/client": "2.2.0-canary.39",+ "@mercurjs/dashboard-shared": "2.2.0-canary.39","@radix-ui/react-dialog": "1.1.4","@radix-ui/react-dismissable-layer": "1.1.4","@tanstack/react-query": "5.64.2",@@ -210,11 +202,11 @@"zod": "3.25.76",},"devDependencies": {- "@medusajs/types": "options-preview",- "@medusajs/ui-preset": "options-preview",- "@mercurjs/core": "2.2.0-canary.37",- "@mercurjs/dashboard-sdk": "2.2.0-canary.37",- "@mercurjs/types": "2.2.0-canary.37",+ "@medusajs/types": "2.17.2",+ "@medusajs/ui-preset": "2.17.2",+ "@mercurjs/core": "2.2.0-canary.39",+ "@mercurjs/dashboard-sdk": "2.2.0-canary.39",+ "@mercurjs/types": "2.2.0-canary.39","@types/react": "^18.2.66","@types/react-dom": "^18.2.22","autoprefixer": "^10.4.20",@@ -230,72 +222,49 @@},"packages/cli": {"name": "@mercurjs/cli",- "version": "2.2.0-canary.39",+ "version": "2.2.0-canary.40","bin": {"mercurjs": "./dist/index.js",},"dependencies": {"@antfu/ni": "^27.0.1",- "@medusajs/admin-bundler": "options-preview",- "@medusajs/admin-shared": "options-preview",- "@medusajs/admin-vite-plugin": "options-preview",- "@medusajs/dashboard": "options-preview",- "@medusajs/framework": "options-preview",+ "@medusajs/admin-bundler": "2.17.2",+ "@medusajs/framework": "2.17.2","@mercurjs/dashboard-sdk": "2.2.0-canary.39",- "@types/cross-spawn": "^6.0.6","@vitejs/plugin-react": "^4.2.1",- "autoprefixer": "^10.4.19","commander": "^14.0.2",- "compression": "^1.8.0","cosmiconfig": "^9.0.0",- "cross-spawn": "^7.0.6","deepmerge": "^4.3.1","diff": "^8.0.2","execa": "^9.6.0",- "express": "^4.21.0","fast-glob": "^3.3.3","fs-extra": "^11.3.2",- "get-port": "^5.1.1",- "glob": "11.1.0","kleur": "^4.1.5",- "open": "^11.0.0","ora": "^9.0.0",- "outdent": "^0.8.0",- "pg": "^8.17.1","pkg-dir": "^9.0.0",- "postcss": "^8.4.38","prompts": "^2.4.2","resolve-cwd": "^3.0.0",- "tailwindcss": "^3.4.3",- "tar": "^7.5.2",- "terminal-link": "^5.0.0","ts-morph": "^27.0.2","tsconfig-paths": "^4.2.0",- "typescript": "5.9.3",- "validate-npm-package-name": "^7.0.2","vite": "^5.4.21",- "wait-on": "^9.0.3","zod": "3.25.76",},"devDependencies": {"@types/fs-extra": "^11.0.4",- "@types/pg": "^8.16.0","@types/prompts": "^2.4.9",- "@types/tar": "^6.1.13",- "@types/validate-npm-package-name": "^4.0.2",- "@types/wait-on": "^5.3.4","tsup": "^8.5.0",+ "typescript": "5.9.3",},},"packages/client": {"name": "@mercurjs/client",- "version": "2.2.0-canary.39",+ "version": "2.2.0-canary.40","dependencies": {"@tanstack/react-query": "^5.64.2","qs": "^6.12.1",},"devDependencies": {- "@medusajs/framework": "options-preview",+ "@medusajs/framework": "2.17.2","@types/qs": "^6.9.18","tsup": "^8.5.0","typescript": "5.9.3",@@ -306,21 +275,21 @@},"packages/core": {"name": "@mercurjs/core",- "version": "2.2.0-canary.39",+ "version": "2.2.0-canary.40","dependencies": {"@orama/orama": "^3.1.18","pkg-dir": "4","resolve-cwd": "^3.0.0",},"devDependencies": {- "@medusajs/cli": "options-preview",- "@medusajs/core-flows": "options-preview",- "@medusajs/framework": "options-preview",- "@medusajs/icons": "options-preview",- "@medusajs/medusa": "options-preview",- "@medusajs/test-utils": "options-preview",- "@medusajs/types": "options-preview",- "@medusajs/ui": "options-preview",+ "@medusajs/cli": "2.17.2",+ "@medusajs/core-flows": "2.17.2",+ "@medusajs/framework": "2.17.2",+ "@medusajs/icons": "2.17.2",+ "@medusajs/medusa": "2.17.2",+ "@medusajs/test-utils": "2.17.2",+ "@medusajs/types": "2.17.2",+ "@medusajs/ui": "4.1.19","@mercurjs/cli": "2.2.0-canary.39","@mercurjs/types": "2.2.0-canary.39","@swc/core": "^1.7.28",@@ -344,18 +313,50 @@"zod": "3.25.76",},"peerDependencies": {- "@medusajs/admin-sdk": ">=2.16.0-0",- "@medusajs/cli": ">=2.16.0-0",- "@medusajs/framework": ">=2.16.0-0",- "@medusajs/icons": ">=2.16.0-0",- "@medusajs/medusa": ">=2.16.0-0",- "@medusajs/test-utils": ">=2.16.0-0",+ "@medusajs/admin-sdk": ">=2.17.2",+ "@medusajs/cli": ">=2.17.2",+ "@medusajs/framework": ">=2.17.2",+ "@medusajs/icons": ">=2.17.2",+ "@medusajs/medusa": ">=2.17.2",+ "@medusajs/test-utils": ">=2.17.2","express": "^4.21.0",},},+ "packages/create-mercur-app": {+ "name": "create-mercur-app",+ "version": "2.2.0-canary.40",+ "bin": {+ "create-mercur-app": "./dist/index.js",+ },+ "dependencies": {+ "@antfu/ni": "^27.0.1",+ "commander": "^14.0.2",+ "execa": "^9.6.0",+ "fs-extra": "^11.3.2",+ "kleur": "^4.1.5",+ "open": "^11.0.0",+ "ora": "^9.0.0",+ "pg": "^8.17.1",+ "prompts": "^2.4.2",+ "tar": "^7.5.2",+ "terminal-link": "^5.0.0",+ "validate-npm-package-name": "^7.0.2",+ "wait-on": "^9.0.3",+ },+ "devDependencies": {+ "@types/fs-extra": "^11.0.4",+ "@types/pg": "^8.16.0",+ "@types/prompts": "^2.4.9",+ "@types/tar": "^6.1.13",+ "@types/validate-npm-package-name": "^4.0.2",+ "@types/wait-on": "^5.3.4",+ "tsup": "^8.5.0",+ "typescript": "5.9.3",+ },+ },"packages/dashboard-sdk": {"name": "@mercurjs/dashboard-sdk",- "version": "2.2.0-canary.39",+ "version": "2.2.0-canary.40","dependencies": {"@babel/parser": "7.25.6","@babel/traverse": "7.25.6",@@ -372,7 +373,7 @@},"packages/dashboard-shared": {"name": "@mercurjs/dashboard-shared",- "version": "2.2.0-canary.39",+ "version": "2.2.0-canary.40","dependencies": {"@ariakit/react": "^0.4.15","@babel/runtime": "^7.26.10",@@ -381,11 +382,11 @@"@dnd-kit/utilities": "^3.2.2","@hookform/error-message": "^2.0.1","@hookform/resolvers": "3.4.2",- "@medusajs/admin-shared": "options-preview",- "@medusajs/dashboard": "options-preview",- "@medusajs/icons": "options-preview",- "@medusajs/ui": "options-preview",- "@mercurjs/client": "2.2.0-canary.37",+ "@medusajs/admin-shared": "2.17.2",+ "@medusajs/dashboard": "2.17.2",+ "@medusajs/icons": "2.17.2",+ "@medusajs/ui": "4.1.19",+ "@mercurjs/client": "2.2.0-canary.39","@radix-ui/react-dialog": "1.1.4","@radix-ui/react-dismissable-layer": "1.1.4","@tanstack/react-query": "5.64.2",@@ -414,9 +415,9 @@"zod": "3.25.76",},"devDependencies": {- "@mercurjs/core": "2.2.0-canary.37",- "@mercurjs/dashboard-sdk": "2.2.0-canary.37",- "@mercurjs/types": "2.2.0-canary.37",+ "@mercurjs/core": "2.2.0-canary.39",+ "@mercurjs/dashboard-sdk": "2.2.0-canary.39",+ "@mercurjs/types": "2.2.0-canary.39","@types/lodash.debounce": "^4.0.8","@types/react": "^18.2.66","@types/react-dom": "^18.2.22",@@ -424,36 +425,40 @@"typescript": "5.9.3",},},+ "packages/docs": {+ "name": "@mercurjs/docs",+ "version": "2.2.0-canary.40",+ },"packages/providers/payout-stripe-connect": {"name": "@mercurjs/payout-stripe-connect",- "version": "2.2.0-canary.39",+ "version": "2.2.0-canary.40","dependencies": {"stripe": "^15.5.0",},"devDependencies": {- "@medusajs/framework": "options-preview",- "@mercurjs/types": "workspace:*",+ "@medusajs/framework": "2.17.2",+ "@mercurjs/types": "2.2.0-canary.39","tsup": "^8.5.0",},"peerDependencies": {- "@medusajs/framework": ">=2.16.0-0",+ "@medusajs/framework": ">=2.17.2",},},"packages/registry": {"name": "@mercurjs/registry",- "version": "2.2.0-canary.39",+ "version": "2.2.0-canary.40","dependencies": {"@hookform/resolvers": "3.4.2",- "@medusajs/core-flows": "options-preview",- "@medusajs/framework": "options-preview",- "@medusajs/icons": "options-preview",- "@medusajs/medusa": "options-preview",- "@medusajs/ui": "options-preview",- "@mercurjs/client": "workspace:*",- "@mercurjs/core": "workspace:*",- "@mercurjs/dashboard-sdk": "workspace:*",- "@mercurjs/dashboard-shared": "workspace:*",- "@mercurjs/vendor": "workspace:*",+ "@medusajs/core-flows": "2.17.2",+ "@medusajs/framework": "2.17.2",+ "@medusajs/icons": "2.17.2",+ "@medusajs/medusa": "2.17.2",+ "@medusajs/ui": "4.1.19",+ "@mercurjs/client": "2.2.0-canary.39",+ "@mercurjs/core": "2.2.0-canary.39",+ "@mercurjs/dashboard-sdk": "2.2.0-canary.39",+ "@mercurjs/dashboard-shared": "2.2.0-canary.39",+ "@mercurjs/vendor": "2.2.0-canary.39","@talkjs/react": "^0.1.11","@tanstack/react-query": "5.64.2","@tanstack/react-table": "8.20.5",@@ -467,9 +472,9 @@"zod": "3.25.76",},"devDependencies": {- "@medusajs/cli": "options-preview",- "@mercurjs/cli": "workspace:*",- "@mercurjs/types": "workspace:*",+ "@medusajs/cli": "2.17.2",+ "@mercurjs/cli": "2.2.0-canary.39",+ "@mercurjs/types": "2.2.0-canary.39","@swc/core": "^1.7.28","@swc/jest": "^0.2.36","@types/jest": "^29.5.13",@@ -484,9 +489,9 @@},"packages/types": {"name": "@mercurjs/types",- "version": "2.2.0-canary.39",+ "version": "2.2.0-canary.40","dependencies": {- "@medusajs/types": "options-preview",+ "@medusajs/types": "2.17.2",},"devDependencies": {"typescript": "5.9.3",@@ -494,7 +499,7 @@},"packages/vendor": {"name": "@mercurjs/vendor",- "version": "2.2.0-canary.39",+ "version": "2.2.0-canary.40","dependencies": {"@ariakit/react": "^0.4.15","@babel/runtime": "^7.26.10",@@ -503,12 +508,12 @@"@dnd-kit/utilities": "^3.2.2","@hookform/error-message": "^2.0.1","@hookform/resolvers": "3.4.2",- "@medusajs/admin-shared": "options-preview",- "@medusajs/dashboard": "options-preview",- "@medusajs/icons": "options-preview",- "@medusajs/ui": "options-preview",- "@mercurjs/client": "workspace:*",- "@mercurjs/dashboard-shared": "workspace:*",+ "@medusajs/admin-shared": "2.17.2",+ "@medusajs/dashboard": "2.17.2",+ "@medusajs/icons": "2.17.2",+ "@medusajs/ui": "4.1.19",+ "@mercurjs/client": "2.2.0-canary.39",+ "@mercurjs/dashboard-shared": "2.2.0-canary.39","@radix-ui/react-dialog": "1.1.4","@radix-ui/react-dismissable-layer": "1.1.4","@tanstack/react-query": "5.64.2",@@ -537,11 +542,11 @@"zod": "3.25.76",},"devDependencies": {- "@medusajs/types": "options-preview",- "@medusajs/ui-preset": "options-preview",- "@mercurjs/core": "workspace:*",- "@mercurjs/dashboard-sdk": "workspace:*",- "@mercurjs/types": "workspace:*",+ "@medusajs/types": "2.17.2",+ "@medusajs/ui-preset": "2.17.2",+ "@mercurjs/core": "2.2.0-canary.39",+ "@mercurjs/dashboard-sdk": "2.2.0-canary.39",+ "@mercurjs/types": "2.2.0-canary.39","@types/react": "^18.2.66","@types/react-dom": "^18.2.22","autoprefixer": "^10.4.20",@@ -557,21 +562,21 @@},},"overrides": {- "@medusajs/admin-bundler": "2.16.0-options-preview-20260605124754",- "@medusajs/admin-sdk": "2.16.0-options-preview-20260605124754",- "@medusajs/admin-shared": "2.16.0-options-preview-20260605124754",- "@medusajs/admin-vite-plugin": "2.16.0-options-preview-20260605124754",- "@medusajs/cli": "2.16.0-options-preview-20260605124754",- "@medusajs/core-flows": "2.16.0-options-preview-20260605124754",- "@medusajs/dashboard": "2.16.0-options-preview-20260605124754",- "@medusajs/draft-order": "2.16.0-options-preview-20260605124754",- "@medusajs/framework": "2.16.0-options-preview-20260605124754",- "@medusajs/icons": "2.16.0-options-preview-20260605124754",- "@medusajs/medusa": "2.16.0-options-preview-20260605124754",- "@medusajs/test-utils": "2.16.0-options-preview-20260605124754",- "@medusajs/types": "2.16.0-options-preview-20260605124754",- "@medusajs/ui": "4.1.16-options-preview-20260605124754",- "@medusajs/ui-preset": "2.16.0-options-preview-20260605124754",+ "@medusajs/admin-bundler": "2.17.2",+ "@medusajs/admin-sdk": "2.17.2",+ "@medusajs/admin-shared": "2.17.2",+ "@medusajs/admin-vite-plugin": "2.17.2",+ "@medusajs/cli": "2.17.2",+ "@medusajs/core-flows": "2.17.2",+ "@medusajs/dashboard": "2.17.2",+ "@medusajs/draft-order": "2.17.2",+ "@medusajs/framework": "2.17.2",+ "@medusajs/icons": "2.17.2",+ "@medusajs/medusa": "2.17.2",+ "@medusajs/test-utils": "2.17.2",+ "@medusajs/types": "2.17.2",+ "@medusajs/ui": "4.1.19",+ "@medusajs/ui-preset": "2.17.2","zod": "3.25.76",},"packages": {@@ -951,7 +956,7 @@"@ioredis/commands": ["@ioredis/[email protected]", "", {}, "sha512-JH8ZL/ywcJyR9MmJ5BNqZllXNZQqQbnVZOqpPQqE1vHiFgAw4NHbvE0FOduNU8IX9babitBT46571OnPTT0Zcw=="],- "@isaacs/cliui": ["@isaacs/[email protected]", "", {}, "sha512-AokJm4tuBHillT+FpMtxQ60n8ObyXBatq7jD2/JA9dxbDDokKQm8KMht5ibGzLVU9IJDIKK4TPKgMHEYMn3lMg=="],+ "@isaacs/cliui": ["@isaacs/[email protected]", "", { "dependencies": { "string-width": "^5.1.2", "string-width-cjs": "npm:string-width@^4.2.0", "strip-ansi": "^7.0.1", "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", "wrap-ansi": "^8.1.0", "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" } }, "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA=="],"@isaacs/fs-minipass": ["@isaacs/[email protected]", "", { "dependencies": { "minipass": "^7.0.4" } }, "sha512-wgm9Ehl2jpeqP3zw/7mo3kRHFp5MEDhqAdwy1fTGkHAwnkGOVsgpvQhL8B5n1qlb01jV3n/bI0ZfZp5lWA1k4w=="],@@ -1011,145 +1016,145 @@"@js-sdsl/ordered-map": ["@js-sdsl/[email protected]", "", {}, "sha512-iUKgm52T8HOE/makSxjqoWhe95ZJA1/G1sYsGev2JDKUSS14KAgg1LHb+Ba+IPow0xflbnSkOsZcO08C7w1gYw=="],- "@medusajs/admin-bundler": ["@medusajs/[email protected]", "", { "dependencies": { "@medusajs/admin-shared": "2.16.0-options-preview-20260605124754", "@medusajs/admin-vite-plugin": "2.16.0-options-preview-20260605124754", "@medusajs/dashboard": "2.16.0-options-preview-20260605124754", "@vitejs/plugin-react": "^4.2.1", "autoprefixer": "^10.4.19", "compression": "^1.8.0", "express": "^4.21.0", "get-port": "^5.1.1", "glob": "13.0.6", "outdent": "^0.8.0", "postcss": "^8.4.38", "tailwindcss": "^3.4.3", "vite": "^5.4.21" } }, "sha512-APj/qST8tYGsYpiXxD+r+6TT7ZZnmiCIZ8l2gkEV2jMlP1jyMSKpd42HWkAd62i/DZtHPi8dLgmxXElimvAdaA=="],+ "@medusajs/admin-bundler": ["@medusajs/[email protected]", "", { "dependencies": { "@medusajs/admin-shared": "2.17.2", "@medusajs/admin-vite-plugin": "2.17.2", "@medusajs/dashboard": "2.17.2", "@vitejs/plugin-react": "^4.2.1", "autoprefixer": "^10.4.19", "compression": "^1.8.0", "express": "^4.21.0", "get-port": "^5.1.1", "glob": "13.0.6", "outdent": "^0.8.0", "postcss": "^8.4.38", "tailwindcss": "^3.4.3", "vite": "^5.4.21" } }, "sha512-wVfTUPg2sy5jms309UNZkbXsTVQzvX4P1iWkaU0RECo3DOF7he9sHN/43Gp9x7DvHiP2cevz0c2tU6z7RNkArA=="],- "@medusajs/admin-sdk": ["@medusajs/[email protected]", "", { "dependencies": { "@medusajs/admin-shared": "2.16.0-options-preview-20260605124754", "zod": "4.2.0" } }, "sha512-F3V3Cm+3BE+FsKbOj3bdJ/r91fdbEnYYhoVCdalI5pkx/3jABZsub+RHT/4ohfgTemy9WGa1VTYRlmgE1CD74w=="],+ "@medusajs/admin-sdk": ["@medusajs/[email protected]", "", { "dependencies": { "@medusajs/admin-shared": "2.17.2", "zod": "4.2.0" } }, "sha512-m3hQ0/tjb3i97Td1i01NsSJsI0vPMLVUplzsfE3mgYucFbKzoK9++2iHwmty0dwbabJS6v8dYBNq/xBQTS5ZJw=="],- "@medusajs/admin-shared": ["@medusajs/[email protected]", "", {}, "sha512-543/5e7V6y1TOB6gjnP7QlG7K+erH/SqkDx7KXrU//SX3lyWuWpkKNHvhSqOp1c+nUEP8u54LYi2okNqhrEbJw=="],+ "@medusajs/admin-shared": ["@medusajs/[email protected]", "", {}, "sha512-siyrqfYUtY22oDHca39vRtm0dQOwNZJ+IkX8ea17hyhZGajMy9KIb/OiUlX/5oqvBFqblpAp05wp6tYBnqV9bA=="],- "@medusajs/admin-vite-plugin": ["@medusajs/[email protected]", "", { "dependencies": { "@babel/parser": "7.25.6", "@babel/traverse": "7.25.6", "@babel/types": "7.25.6", "@medusajs/admin-shared": "2.16.0-options-preview-20260605124754", "chokidar": "^3.5.3", "fdir": "6.1.1", "magic-string": "0.30.5", "outdent": "^0.8.0", "picocolors": "^1.1.0" }, "peerDependencies": { "vite": "^5.4.21" } }, "sha512-rEQVYFlWfhMxlXnKL0rYIIYpyEc2kV9SE6PZzI5lV2PC26Ax/7HYlVvodtUzz+qSPrdZcxBRNBaNJts75JX31Q=="],+ "@medusajs/admin-vite-plugin": ["@medusajs/[email protected]", "", { "dependencies": { "@babel/parser": "7.25.6", "@babel/traverse": "7.25.6", "@babel/types": "7.25.6", "@medusajs/admin-shared": "2.17.2", "chokidar": "^3.5.3", "fdir": "6.1.1", "magic-string": "0.30.5", "outdent": "^0.8.0", "picocolors": "^1.1.0" }, "peerDependencies": { "vite": "^5.4.21" } }, "sha512-EhdelgC+g/LFfHJV3baKasrbh4f8jF4HMQIEd8cxXOMA3xIm1kX2zaqzD5j3JmpnBos6HwoI4rnTU1WlcqTWNA=="],- "@medusajs/analytics": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.16.0-options-preview-20260605124754" } }, "sha512-B6Foh/fYPNJAkcGVDjmESJ2Pu4DytFBsLS0jS5yr/+3bugt50HzD/KgemoE6V6ev70glyT7jukJ4gHtlvkXivA=="],+ "@medusajs/analytics": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.17.2" } }, "sha512-u3FHs4vop9DJY6VRzeomz5Mp3F+21q6Eq6YAsnXQSx6EFwpYmflCsNB3VIxc90seibA08s9jevb3adi2nqgujw=="],- "@medusajs/analytics-local": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.16.0-options-preview-20260605124754" } }, "sha512-bGzMcySXiw51LvDU+lzbUeEgFnann2c/eAWR2wGuUHluLO7V2tp6zbzaqLfYKx9Hx8/RC5kyO8sTRduuJWaycA=="],+ "@medusajs/analytics-local": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.17.2" } }, "sha512-ajBzRYOO4NNLyTC6hgJATMhGWin0sMRGftsdqL2pEyy76uGXr1RHXxTKsp0/7RRHHKCAvKpmcRQ4Rd1ZOC+krA=="],- "@medusajs/analytics-posthog": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.16.0-options-preview-20260605124754", "posthog-node": "^5.11.0" } }, "sha512-tC2hcRqX8KeflFD91W0KgL5TTYA1im/NgTBBRlgQO/m74WcrFw0TUs7pWAK/8pDp63aBPVLD4ikshVBHPac+4w=="],+ "@medusajs/analytics-posthog": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.17.2", "posthog-node": "^5.11.0" } }, "sha512-uqtGmhR8qqpxDBV3+8F/GfqsySdZ9y0QNyq92DHuz7a3WMvAak4qzzJMPCAahB6Vb+pTkhmAtGzmRSoQqv5W6g=="],- "@medusajs/api-key": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.16.0-options-preview-20260605124754" } }, "sha512-CtaG7nZLLgDkfO3j41T11VTf0AaND+juWCw7tjz9GhqeD2hooD9KTMFVdW/Ozzu4EnCy/rpNF2fLItFX1zJHzw=="],+ "@medusajs/api-key": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.17.2" } }, "sha512-ve0jqhIsDeKACGkRscMa4XmbE4LiyA23dlg+7nuOIugONNKj0izkXWwYi6ujTjFJxEttKNXjmoGuu+IQxsX7vQ=="],- "@medusajs/auth": ["@medusajs/[email protected]", "", { "dependencies": { "@otplib/core": "^13.4.0", "@otplib/plugin-crypto-node": "^13.4.0", "@otplib/totp": "^13.4.0", "@otplib/uri": "^13.4.0", "scrypt-kdf": "^2.0.1" }, "peerDependencies": { "@medusajs/framework": "2.16.0-options-preview-20260605124754" } }, "sha512-X6DmLFvwMjNCooPLR2iY45buuDQ6FK3R5rxjzTgGsu1udVURW6rYJV2KL6uxfQYPdjNo4F7jGOuvO7N7F1liGg=="],+ "@medusajs/auth": ["@medusajs/[email protected]", "", { "dependencies": { "@otplib/core": "^13.4.0", "@otplib/plugin-crypto-node": "^13.4.0", "@otplib/totp": "^13.4.0", "@otplib/uri": "^13.4.0", "jsonwebtoken": "^9.0.2", "jwks-rsa": "^3.1.0", "scrypt-kdf": "^2.0.1" }, "peerDependencies": { "@medusajs/framework": "2.17.2" } }, "sha512-g2vbEPNkFUS9RkOQ19rfmw9hOFHim6SzgoBRJ0U9ocxkRXycWZoHb+/Gl8Gh0j2LCp6D8VZtG0otldfKKO7Osw=="],- "@medusajs/auth-emailpass": ["@medusajs/[email protected]", "", { "dependencies": { "scrypt-kdf": "^2.0.1" }, "peerDependencies": { "@medusajs/framework": "2.16.0-options-preview-20260605124754" } }, "sha512-b6Zaw0Pvl1CBRXUWTD+Be3Q6vBbSlhAyyVK707EG2B3rty6ZNqtDskwEOzLz19Mwawg/lu34+Edkr3sF4KWgxQ=="],+ "@medusajs/auth-emailpass": ["@medusajs/[email protected]", "", { "dependencies": { "scrypt-kdf": "^2.0.1" }, "peerDependencies": { "@medusajs/framework": "2.17.2" } }, "sha512-HgTh4d9Rw3mwXq9Zz30bdlsNkkV+jm9T3aMeJmNszmYDOGOyaIRaGRT9AggBX8hxzE373ubJ2fDModr1VbxTGA=="],- "@medusajs/auth-github": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.16.0-options-preview-20260605124754" } }, "sha512-RVn0jn+Q9AXbOUvnuRhHHjkrNK31X14byBWbSUsQQAG7Opn2EQlZ2XxdUU95lH+DhSl1GePK/5oaCVgZU0jeJA=="],+ "@medusajs/auth-github": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.17.2" } }, "sha512-ajfCbON8cTek9lC51TxUKOhUz88B2Om4WYeN5ZWg6bJgytY7Nv9af8capgJFlRtSt/iSoBPAgiGBzvsgBKNVZw=="],- "@medusajs/auth-google": ["@medusajs/[email protected]", "", { "dependencies": { "jsonwebtoken": "^9.0.2" }, "peerDependencies": { "@medusajs/framework": "2.16.0-options-preview-20260605124754" } }, "sha512-jAoIylrmzm+8nQ8t5xiEimPwvle+ETmsc39XHuNWImJEvuGpN0sJoXWwyz6s6Cfl2do/McFyR+FyvR5KkzSPGg=="],+ "@medusajs/auth-google": ["@medusajs/[email protected]", "", { "dependencies": { "jsonwebtoken": "^9.0.2", "jwks-rsa": "^3.1.0" }, "peerDependencies": { "@medusajs/framework": "2.17.2" } }, "sha512-IDN919kjq/LSwXV17Ytq/qZ/w421okGpURM7KPL2FrUv+vEgxoYW5u/t+wwK6MwvdWbN9cxSEOTUxO/LvvMrSg=="],- "@medusajs/cache-inmemory": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.16.0-options-preview-20260605124754" } }, "sha512-IkyoQccfIVKyeO7pExscoCyFToM+q4HcyWP7gVR70UxWQQF4NNwKhBQcJPx7AN+oWbxwYweY1e9rgK7QPgwmrw=="],+ "@medusajs/cache-inmemory": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.17.2" } }, "sha512-wGZYTofOTGcFPCfxJE3YvDIHy/Wpjl+PFUtGYPtpZ3LPOTXBVcfjmHEZxJG1cddbv97DoLXpZHD8YYN6fPpfCQ=="],- "@medusajs/cache-redis": ["@medusajs/[email protected]", "", { "dependencies": { "ioredis": "^5.4.1" }, "peerDependencies": { "@medusajs/framework": "2.16.0-options-preview-20260605124754" } }, "sha512-weN7YB+4FMDfyE6XzGcMqgDqJBl2Hb1p4sh6iScuWxfE/9axbSJTxkShHkqKKGj3iw7nVNXl/X7V14aKNStpWw=="],+ "@medusajs/cache-redis": ["@medusajs/[email protected]", "", { "dependencies": { "ioredis": "^5.4.1" }, "peerDependencies": { "@medusajs/framework": "2.17.2" } }, "sha512-cWFB51CDV/SJEU72Zjv0kYhP3pcfLyHN3zgBXFbEnKzaQHQGFg9Wz4vn3R0jQ4kezVRbOxfu+3Y6ksMbDuRVkg=="],- "@medusajs/caching": ["@medusajs/[email protected]", "", { "dependencies": { "fast-json-stable-stringify": "^2.1.0", "node-cache": "^5.1.2", "xxhash-wasm": "^1.1.0" }, "peerDependencies": { "@medusajs/framework": "2.16.0-options-preview-20260605124754", "awilix": "^8.0.1" } }, "sha512-WR7ZI0b7/CvparalhxuQkHvGmdGohxe5Wrd+wSenvy1VI473wyC/SCx11rfgUx4b7Rxz9yz3yAQ1pU6WjORUHA=="],+ "@medusajs/caching": ["@medusajs/[email protected]", "", { "dependencies": { "fast-json-stable-stringify": "^2.1.0", "node-cache": "^5.1.2", "xxhash-wasm": "^1.1.0" }, "peerDependencies": { "@medusajs/framework": "2.17.2", "awilix": "^8.0.1" } }, "sha512-v6DFmFis2fTIDyKZR14sfP7rm4pPjShZRcOsO1GOEOHIH2y6OpwMCM+AHWdqszv7dJwe7Ecz9qUw8TjTzLlbAw=="],- "@medusajs/caching-redis": ["@medusajs/[email protected]", "", { "dependencies": { "ioredis": "^5.4.1", "xxhash-wasm": "^1.1.0" }, "peerDependencies": { "@medusajs/framework": "2.16.0-options-preview-20260605124754" } }, "sha512-5utni9I0QYGPzGNoQ5sqAv2Yx4cHp1hY5T33grJgNzPf8Wiu/om8f1/PB2T0swM+wnvf6B0iZyt1M5yQok5I1A=="],+ "@medusajs/caching-redis": ["@medusajs/[email protected]", "", { "dependencies": { "ioredis": "^5.4.1", "xxhash-wasm": "^1.1.0" }, "peerDependencies": { "@medusajs/framework": "2.17.2" } }, "sha512-BSBSaT6G/y/0KQMHfZ5LOA7MtQACVhc+g3OWYn4WqjNaAKgImJQwKTYCFkQxocoIayN5jMFeI0J65iy33kP5Fg=="],- "@medusajs/cart": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.16.0-options-preview-20260605124754" } }, "sha512-M7GMYKGUpiw0t35GSs9iCQTZ2K42b2+NpirN2RI2WbivguxkLzol3IiZXn8zs48Uk7HOdMSGnNte4eOac75MGg=="],+ "@medusajs/cart": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.17.2" } }, "sha512-ydYlkroPXqlbZYRD2OMkwpuPp0q4ipfK4A3sA0R94Ib5SNUUNeydbdNwEflOJvhI0iWbaqVBunAg3KBQhE8xDw=="],- "@medusajs/cli": ["@medusajs/[email protected]", "", { "dependencies": { "@medusajs/deps": "2.16.0-options-preview-20260605124754", "@medusajs/telemetry": "2.16.0-options-preview-20260605124754", "@medusajs/utils": "2.16.0-options-preview-20260605124754", "@types/express": "^4.17.21", "chalk": "^4.1.2", "configstore": "^5.0.1", "dotenv": "^16.4.5", "execa": "^5.1.1", "express": "^4.21.0", "fs-exists-cached": "^1.0.0", "fs-extra": "^11.1.1", "glob": "13.0.6", "hosted-git-info": "^4.0.2", "inquirer": "^8.0.0", "is-valid-path": "^0.1.1", "meant": "^1.0.3", "ora": "^5.4.1", "pg-god": "^1.0.12", "prompts": "^2.4.2", "resolve-cwd": "^3.0.0", "stack-trace": "^0.0.10", "ulid": "^2.3.0", "winston": "^3.9.0", "yargs": "^17.7.2" }, "bin": { "medusa": "cli.js" } }, "sha512-qCBoY2+GlwKkl1IifWntCPyUPKSAc3JaKBL4MFrNwDSZOrN1WrYYDejZMFDMxUGTETpdHZj6NBMQ3f9RLtByCg=="],+ "@medusajs/cli": ["@medusajs/[email protected]", "", { "dependencies": { "@medusajs/deps": "2.17.2", "@medusajs/telemetry": "2.17.2", "@medusajs/utils": "2.17.2", "@types/express": "^4.17.21", "chalk": "^4.1.2", "configstore": "^5.0.1", "dotenv": "^16.4.5", "execa": "^5.1.1", "express": "^4.21.0", "fs-exists-cached": "^1.0.0", "fs-extra": "^11.1.1", "glob": "13.0.6", "hosted-git-info": "^4.0.2", "inquirer": "^8.0.0", "is-valid-path": "^0.1.1", "meant": "^1.0.3", "ora": "^5.4.1", "prompts": "^2.4.2", "resolve-cwd": "^3.0.0", "stack-trace": "^0.0.10", "ulid": "^2.3.0", "winston": "^3.9.0", "yargs": "^17.7.2" }, "bin": { "medusa": "cli.js" } }, "sha512-ydkW5oac9AKMvM0oDJG4CSN/ii6XAy+nUAm79TPGVPJ9iRx/JwpjDGzlfuEdWKCR9W2VDQxvGcI5crw2zsGkKg=="],- "@medusajs/core-flows": ["@medusajs/[email protected]", "", { "dependencies": { "csv-parse": "^5.6.0", "json-2-csv": "^5.5.4" }, "peerDependencies": { "@medusajs/framework": "2.16.0-options-preview-20260605124754" } }, "sha512-La/6TEeHbkxeyZtyHQjUxs+g4ippSYpegBwV78En+FXCwW3YCKp7i17DDBVBlYTR8EzXqRmB8egs2wloS0HYCw=="],+ "@medusajs/core-flows": ["@medusajs/[email protected]", "", { "dependencies": { "csv-parse": "^5.6.0", "json-2-csv": "^5.5.4" }, "peerDependencies": { "@medusajs/framework": "2.17.2" } }, "sha512-Bu35PBqsUgBsY9dM84N4wO+jcITVTiGTKlGNu6WZZRUjMgtE/tBV/zxSYoSq+ebtGSwVu6isCfALzEcLiQONDg=="],- "@medusajs/currency": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.16.0-options-preview-20260605124754" } }, "sha512-dXjo63OTDqyQLrgJuUAuGdFgsYY1GDMZLIte2xIR82I2hTVkwC0boPEqVS7vMZCsdeZjcwhJ0ni9EmfhzP/Lng=="],+ "@medusajs/currency": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.17.2" } }, "sha512-oqhdvcDL5h/FXVm7bxd8vqzDn76j2+maF+hjcL3ia8Jr7oMCWxyiXl6MSso5vARh47eLNj8UgTr+O4bnF372eA=="],- "@medusajs/customer": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.16.0-options-preview-20260605124754" } }, "sha512-zl7xwQ7OA8LfKhsGaVvzvR8dAXnk75DzaFVL1aCLjuAcRHjkGs0gc5hqyQvpkfkpqVOnPyGUp36YyYipKm2mmA=="],+ "@medusajs/customer": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.17.2" } }, "sha512-uB1drcf8jGbnFl9v7IR91Hd4mKW1FYgVrEqSL5B6ZrGnwQ+iUOF/N6oLHvpApl3NfZVfeVhvPm35lkGUS9WNkg=="],- "@medusajs/dashboard": ["@medusajs/[email protected]", "", { "dependencies": { "@ariakit/react": "^0.4.15", "@babel/runtime": "^7.26.10", "@dnd-kit/core": "^6.1.0", "@dnd-kit/sortable": "^8.0.0", "@dnd-kit/utilities": "^3.2.2", "@hookform/error-message": "^2.0.1", "@hookform/resolvers": "3.4.2", "@medusajs/admin-shared": "2.16.0-options-preview-20260605124754", "@medusajs/icons": "2.16.0-options-preview-20260605124754", "@medusajs/js-sdk": "2.16.0-options-preview-20260605124754", "@medusajs/ui": "4.1.16-options-preview-20260605124754", "@radix-ui/react-dialog": "1.1.4", "@radix-ui/react-dismissable-layer": "1.1.4", "@tanstack/react-query": "5.64.2", "@tanstack/react-table": "8.20.5", "@tanstack/react-virtual": "^3.8.3", "@uiw/react-json-view": "^2.0.0-alpha.17", "cmdk": "^0.2.0", "copy-to-clipboard": "^3.3.3", "date-fns": "^3.6.0", "i18next": "23.7.11", "i18next-browser-languagedetector": "7.2.0", "i18next-http-backend": "2.4.2", "lodash.debounce": "^4.0.8", "lodash.isequal": "^4.5.0", "match-sorter": "^6.3.4", "motion": "^11.15.0", "qrcode": "^1.5.4", "qs": "^6.12.1", "radix-ui": "1.1.2", "react": "^18.3.1", "react-country-flag": "^3.1.0", "react-currency-input-field": "^3.6.11", "react-dom": "^18.3.1", "react-helmet-async": "^2.0.5", "react-hook-form": "7.49.1", "react-i18next": "13.5.0", "react-jwt": "^1.2.0", "react-router-dom": "6.30.3", "zod": "4.2.0" } }, "sha512-3rQRN/M+a+hi4/Ey/tTRfMxdu6MTWFQcMelnOMQEJs47x1NxKNECP3QT5QX62KvAtFvUKB7hSr4gb2/4yG3ZQg=="],+ "@medusajs/dashboard": ["@medusajs/[email protected]", "", { "dependencies": { "@ariakit/react": "^0.4.15", "@babel/runtime": "^7.26.10", "@dnd-kit/core": "^6.1.0", "@dnd-kit/sortable": "^8.0.0", "@dnd-kit/utilities": "^3.2.2", "@hookform/error-message": "^2.0.1", "@hookform/resolvers": "3.4.2", "@medusajs/admin-shared": "2.17.2", "@medusajs/icons": "2.17.2", "@medusajs/js-sdk": "2.17.2", "@medusajs/ui": "4.1.19", "@radix-ui/react-dialog": "1.1.4", "@radix-ui/react-dismissable-layer": "1.1.4", "@tanstack/react-query": "5.64.2", "@tanstack/react-table": "8.20.5", "@tanstack/react-virtual": "^3.8.3", "@uiw/react-json-view": "^2.0.0-alpha.17", "cmdk": "^0.2.0", "copy-to-clipboard": "^3.3.3", "date-fns": "^3.6.0", "i18next": "23.7.11", "i18next-browser-languagedetector": "7.2.0", "lodash.debounce": "^4.0.8", "lodash.isequal": "^4.5.0", "match-sorter": "^6.3.4", "motion": "^11.15.0", "qrcode": "^1.5.4", "qs": "^6.12.1", "radix-ui": "1.1.2", "react": "^18.3.1", "react-country-flag": "^3.1.0", "react-currency-input-field": "^3.6.11", "react-dom": "^18.3.1", "react-helmet-async": "^2.0.5", "react-hook-form": "7.49.1", "react-i18next": "13.5.0", "react-jwt": "^1.2.0", "react-router-dom": "6.30.4", "zod": "4.2.0" } }, "sha512-ugbGHEVSFI/e4JbMoZrR0SQ9Op71qEeNhqKZ0V+lt2Y7XdgtPCkJ2IoDxcQv4ipD5Oi2lB3sLjafb+6c3pIlmw=="],- "@medusajs/deps": ["@medusajs/[email protected]", "", { "dependencies": { "@mikro-orm/cli": "6.6.12", "@mikro-orm/core": "6.6.12", "@mikro-orm/knex": "6.6.12", "@mikro-orm/migrations": "6.6.12", "@mikro-orm/postgresql": "6.6.12", "@opentelemetry/api": "^1.9.0", "@opentelemetry/instrumentation-pg": "^0.52.0", "@opentelemetry/resources": "^2.0.0", "@opentelemetry/sdk-node": "^0.200.0", "@opentelemetry/sdk-trace-node": "^2.0.0", "awilix": "^8.0.1", "pg": "^8.16.3", "zod": "4.2.0" } }, "sha512-M5tDzJu46rXGN0BC8kD1dXO21w4lGNoYF0OEguduIL5szJtcX5ZyOWlBDmjp6TTz5bekFoD7zGL9CfLoia+G3w=="],+ "@medusajs/deps": ["@medusajs/[email protected]", "", { "dependencies": { "@mikro-orm/cli": "6.6.14", "@mikro-orm/core": "6.6.14", "@mikro-orm/knex": "6.6.14", "@mikro-orm/migrations": "6.6.14", "@mikro-orm/postgresql": "6.6.14", "@opentelemetry/api": "^1.9.0", "@opentelemetry/instrumentation-pg": "^0.52.0", "@opentelemetry/resources": "^2.0.0", "@opentelemetry/sdk-node": "^0.218.0", "@opentelemetry/sdk-trace-node": "^2.0.0", "awilix": "^8.0.1", "pg": "^8.16.3", "zod": "4.2.0" } }, "sha512-uJwbKh8Vs2jY2e0H/GE8nYOT5llHA12arUXgzEujWL5uE7UMSk1B7fgC894K6Ck6qyQb8loxm+uNuITnKVgKLw=="],- "@medusajs/draft-order": ["@medusajs/[email protected]", "", { "dependencies": { "@ariakit/react": "^0.4.15", "@babel/runtime": "^7.26.10", "@hookform/resolvers": "3.4.2", "@medusajs/js-sdk": "2.16.0-options-preview-20260605124754", "@tanstack/react-query": "5.64.2", "@uiw/react-json-view": "^2.0.0-alpha.17", "date-fns": "^3.6.0", "lodash.debounce": "^4.0.8", "lodash.isequal": "^4.5.0", "match-sorter": "^6.3.4", "radix-ui": "1.1.2", "react-hook-form": "7.49.1" }, "peerDependencies": { "@medusajs/admin-sdk": "2.16.0-options-preview-20260605124754", "@medusajs/cli": "2.16.0-options-preview-20260605124754", "@medusajs/framework": "2.16.0-options-preview-20260605124754", "@medusajs/icons": "2.16.0-options-preview-20260605124754", "@medusajs/test-utils": "2.16.0-options-preview-20260605124754", "@medusajs/ui": "4.1.16-options-preview-20260605124754", "react": "^18.3.1", "react-dom": "^18.3.1", "react-router-dom": "6.30.3" }, "optionalPeers": ["@medusajs/admin-sdk", "@medusajs/cli", "@medusajs/icons", "@medusajs/test-utils", "@medusajs/ui", "react", "react-dom", "react-router-dom"] }, "sha512-SGYteog9++6Blf71oQCSZnyhO3bNPzkrlB1ZIBKtHvq8Wzs5hFeEhdtyWnmmcdvhEPjoeAa2Goz7eDU8qThTYA=="],+ "@medusajs/draft-order": ["@medusajs/[email protected]", "", { "dependencies": { "@ariakit/react": "^0.4.15", "@babel/runtime": "^7.26.10", "@hookform/resolvers": "3.4.2", "@medusajs/js-sdk": "2.17.2", "@tanstack/react-query": "5.64.2", "@uiw/react-json-view": "^2.0.0-alpha.17", "date-fns": "^3.6.0", "lodash.debounce": "^4.0.8", "lodash.isequal": "^4.5.0", "match-sorter": "^6.3.4", "radix-ui": "1.1.2", "react-hook-form": "7.49.1" }, "peerDependencies": { "@medusajs/admin-sdk": "2.17.2", "@medusajs/cli": "2.17.2", "@medusajs/dashboard": "2.17.2", "@medusajs/framework": "2.17.2", "@medusajs/icons": "2.17.2", "@medusajs/test-utils": "2.17.2", "@medusajs/ui": "4.1.19", "react": "^18.3.1", "react-dom": "^18.3.1", "react-router-dom": "6.30.4" }, "optionalPeers": ["@medusajs/admin-sdk", "@medusajs/cli", "@medusajs/dashboard", "@medusajs/icons", "@medusajs/test-utils", "@medusajs/ui", "react", "react-dom", "react-router-dom"] }, "sha512-KLxWnrvoLUIRAtlEzsK149S5O3uPCs/hJiioTIE7D6eTrJBwA4VonzZwPaAT7Y0jpbbNi2LpkHyI7QgMmMeFEg=="],- "@medusajs/event-bus-local": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.16.0-options-preview-20260605124754" } }, "sha512-lk9dGixHhkV90xo9fnCjO8UTJ7vqpn3iW3B0jDfwgRv2PYo0wa1lVz6yi/AuVo725bmIwVQh6qgMm9aatPC4oA=="],+ "@medusajs/event-bus-local": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.17.2" } }, "sha512-XpO9rsvQMwn3zocb8BrKIO7FAkcffXuGYwsetkMXZ84peLtesWSRY/k+AemF6IfV6HKURzLbZbd2tTLBtNSEXQ=="],- "@medusajs/event-bus-redis": ["@medusajs/[email protected]", "", { "dependencies": { "bullmq": "5.13.0", "ioredis": "^5.4.1" }, "peerDependencies": { "@medusajs/framework": "2.16.0-options-preview-20260605124754" } }, "sha512-Ozes2PtCpTOB8nBmMjZhmCs5LMNXHVmLtsm3kCBAbRfZZZGVkN2s44nudgOG10+z+9y5dPMNd63QIdJscnIjoQ=="],+ "@medusajs/event-bus-redis": ["@medusajs/[email protected]", "", { "dependencies": { "bullmq": "5.13.0", "ioredis": "^5.4.1" }, "peerDependencies": { "@medusajs/framework": "2.17.2" } }, "sha512-oZVyymxxGW9tGqxExHCaeuTLmuIYA6CL1yAcsIek8JHHUaX8JY8kM4blpFaAivfSkJbeHuK+z/RUaIhKj0B9DQ=="],- "@medusajs/file": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.16.0-options-preview-20260605124754" } }, "sha512-6WgnXp99bAXIMJfgFnnTfNA/Xceu7tfDbfr4ij2SjXoO0bz6jEEVuSysrrX4OQn4vWhZd+zfiZWu+gQoA4A+6Q=="],+ "@medusajs/file": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.17.2" } }, "sha512-jBeBCVRv+MY6daVyyBa3mdhlMr2IlGSXVxSWuISpEjwU7YRq6oX2mSNgbH9pe2Mx9N4AVt4YtT2cFMapeEDWvg=="],- "@medusajs/file-local": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.16.0-options-preview-20260605124754" } }, "sha512-DBZEH+UNgrrxy6qnswT0AyCCfKmrYSi3Btxj9r/MhMZ2ZJxRPB1Z7mkU7YycwJsCgkbP44kDPONTuLkLx6ZtwA=="],+ "@medusajs/file-local": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.17.2" } }, "sha512-xYGzsjlxRW5V++WiPgHpvFc/8ks43X3pOX6C8t8S8dj+kiZzAjQM7OG+rybbgsQS+A3grusBkqm9z7IZtkSTAg=="],- "@medusajs/file-s3": ["@medusajs/[email protected]", "", { "dependencies": { "@aws-sdk/client-s3": "^3.556.0", "@aws-sdk/lib-storage": "^3.556.0", "@aws-sdk/s3-request-presigner": "^3.556.0", "ulid": "^2.3.0" }, "peerDependencies": { "@medusajs/framework": "2.16.0-options-preview-20260605124754" } }, "sha512-xlf5EgNk9xw11tZDSExa4golJrrdE9YeE7IgedImNU5esJuunonwKGVHQgx9n6uh2Xzqviq4y64lQfZoDpsBfA=="],+ "@medusajs/file-s3": ["@medusajs/[email protected]", "", { "dependencies": { "@aws-sdk/client-s3": "^3.556.0", "@aws-sdk/lib-storage": "^3.556.0", "@aws-sdk/s3-request-presigner": "^3.556.0", "ulid": "^2.3.0" }, "peerDependencies": { "@medusajs/framework": "2.17.2" } }, "sha512-vDEydn/PwqweH/pH+ubGIi8j3rFni/kNhr/U5pkLDpAJGlmox6WdWULiH/k1c1plOnkwwHDbWphVZizDpPuxRQ=="],- "@medusajs/framework": ["@medusajs/[email protected]", "", { "dependencies": { "@aws-sdk/client-dynamodb": "^3.218.0", "@jercle/yargonaut": "^1.1.5", "@medusajs/deps": "2.16.0-options-preview-20260605124754", "@medusajs/modules-sdk": "2.16.0-options-preview-20260605124754", "@medusajs/orchestration": "2.16.0-options-preview-20260605124754", "@medusajs/telemetry": "2.16.0-options-preview-20260605124754", "@medusajs/types": "2.16.0-options-preview-20260605124754", "@medusajs/utils": "2.16.0-options-preview-20260605124754", "@medusajs/workflows-sdk": "2.16.0-options-preview-20260605124754", "@types/express": "^4.17.21", "chokidar": "^4.0.3", "compression": "^1.8.1", "connect-dynamodb": "^3.0.5", "connect-redis": "5.2.0", "cookie-parser": "^1.4.6", "cors": "^2.8.5", "express": "^4.21.0", "express-session": "^1.17.3", "glob": "13.0.6", "jsonwebtoken": "^9.0.2", "lodash.memoize": "^4.1.2", "morgan": "^1.9.1", "path-to-regexp": "^8.2.0", "tsconfig-paths": "^4.2.0", "zod-validation-error": "5.0.0" }, "peerDependencies": { "@medusajs/cli": "2.16.0-options-preview-20260605124754", "ioredis": "^5.4.1" }, "optionalPeers": ["ioredis"], "bin": { "medusa-mikro-orm": "dist/mikro-orm-cli/bin.js" } }, "sha512-FwYtSM88Toynd/FrU3EeDEjDXRC3jkdHXTZEzADYJ9bP9WZdmKO1UYrBOLGoG4rhGSzeeV9GZ4tgR8ebKVUj0g=="],+ "@medusajs/framework": ["@medusajs/[email protected]", "", { "dependencies": { "@aws-sdk/client-dynamodb": "^3.218.0", "@jercle/yargonaut": "^1.1.5", "@medusajs/deps": "2.17.2", "@medusajs/modules-sdk": "2.17.2", "@medusajs/orchestration": "2.17.2", "@medusajs/telemetry": "2.17.2", "@medusajs/types": "2.17.2", "@medusajs/utils": "2.17.2", "@medusajs/workflows-sdk": "2.17.2", "@types/express": "^4.17.21", "chokidar": "^4.0.3", "compression": "^1.8.1", "connect-dynamodb": "^3.0.5", "connect-redis": "5.2.0", "cookie-parser": "^1.4.6", "cors": "^2.8.5", "express": "^4.21.0", "express-session": "^1.17.3", "glob": "13.0.6", "http-errors": "2.0.0", "jsonwebtoken": "^9.0.2", "lodash.memoize": "^4.1.2", "morgan": "^1.9.1", "path-to-regexp": "^8.2.0", "tsconfig-paths": "^4.2.0", "zod-validation-error": "5.0.0" }, "peerDependencies": { "@medusajs/cli": "2.17.2", "ioredis": "^5.4.1" }, "optionalPeers": ["ioredis"], "bin": { "medusa-mikro-orm": "dist/mikro-orm-cli/bin.js" } }, "sha512-zc/Nii2pSoE/ZbT1xaOyHIA/xx7N6s8mR1TFhd8Bt/Dj+YMTVBw3XmNaOv7LdnEbd/msfVsBpQuNU6D60a09dg=="],- "@medusajs/fulfillment": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.16.0-options-preview-20260605124754" } }, "sha512-Vc5TUy9plN6kfXcfjjchgsVz6rIaaHMO8yxbB3aJcVFeUEAW0LYPqJycAio+o4u46gZuysl2tkmiB+3xGCNv6A=="],+ "@medusajs/fulfillment": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.17.2" } }, "sha512-Y8r+P8huIgg7MT2U3hUev2hTJ0NARhd/O7laQ9dfEOSGiCVtaNaLtI3nAQTXF13R0bfR4FWqb4CaUY/6Gb1UGw=="],- "@medusajs/fulfillment-manual": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.16.0-options-preview-20260605124754" } }, "sha512-seZ80kzn5IFYH32V40W/6pLBEJ2m1TrejvCG9fiUoCuC9CNA0hMfbh8eOB0Rgp5eEbQhBzpSne/xqid2HXN/Xg=="],+ "@medusajs/fulfillment-manual": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.17.2" } }, "sha512-FmeW9ItBfir+X0QikhMLs8LPyNDnLOIuSEbuA81FV9cnbxTTo3YJGyw6HMcXUex0hHAFIeUSAeRivOpdxD1UYw=="],- "@medusajs/icons": ["@medusajs/[email protected]", "", { "peerDependencies": { "react": "^18.3.1 || ^19.0.0" } }, "sha512-VS5NWjHnicNDeqBRneBWDaVbEtbNZb5mQBCxOkaqHwuz7GowkIDuFuTUqwgRAo11oFXJS6XjZgOmLD826SDqxg=="],+ "@medusajs/icons": ["@medusajs/[email protected]", "", { "peerDependencies": { "react": "^18.3.1 || ^19.0.0" } }, "sha512-5K+mcipc3zhgSeF/jHG1mWpuK8JJAXhVXUfuBCF9cKoNalCvbPS19rPZv3speWp+Is7EEnGb3qOBDycM5menCQ=="],- "@medusajs/index": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.16.0-options-preview-20260605124754" } }, "sha512-AMg5MFO7HgYbDhZtNURB1Kt2qCROSbyt6XjQK+ukMoLIm3duYhi9swWmO4WUlc10P5PL8ULyZN0u7gfxSOSDJg=="],+ "@medusajs/index": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.17.2" } }, "sha512-mDjCZxQuAK+Xc6bTlqRHIfDowJh0PNK7ek0WWlLhhI1tNOFn4czDLH5S6zReZcAkfMcP5AWwKS8iwwliHEXE1Q=="],- "@medusajs/inventory": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.16.0-options-preview-20260605124754" } }, "sha512-6NRK0yLt8uxpgd+4VVaBlI78hycZN6j5bqI8rhBHAkyRaphvrH8aTDFtLewoHY9sJAKBHJsz08agt+YCAEF6Xw=="],+ "@medusajs/inventory": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.17.2" } }, "sha512-+6ET8qHSZOVnl7WetyEKVsrdq2ppx8Cb5EaHv7m1CKIyuGWZBFeQUPoW/Tmjr3FLjTfU19gFA5j4nAmzh/8Q7Q=="],- "@medusajs/js-sdk": ["@medusajs/[email protected]", "", { "dependencies": { "fetch-event-stream": "^0.1.5", "qs": "^6.12.1" } }, "sha512-+rAEBDWfNvrKXpQCFo6BQxP4VTo9fu/FbZ8V6bkxG5olzGUNqpBcAHEYmi0lpskNyOW3GH9Yr6D2BUceLYtvxw=="],+ "@medusajs/js-sdk": ["@medusajs/[email protected]", "", { "dependencies": { "fetch-event-stream": "^0.1.5", "qs": "^6.12.1" } }, "sha512-7NeHXfgCfC2m1Wyuvjh+oTVC/U1iJRKhgsvEFJj43jXXHWl2Yno+1d86SH3M18WlKlswv11EqE1gB7q7rSPsmg=="],- "@medusajs/link-modules": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.16.0-options-preview-20260605124754" } }, "sha512-dLdSX1kvgBqiZcjsU6gCiLJxqE0CbZk9Q6BUprJEUx4pTLP6J/5rwt+G1JDmnXY19QDDNJP6D6rpDoRWcDPIqg=="],+ "@medusajs/link-modules": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.17.2" } }, "sha512-MjhbiFuu4MkfQamDX1//1sfn5qdN6O5HZbOTNWEz287HF+viDO3T28O0oxnNmMi50C5xl9f7Ft3xS9XOEaYxpA=="],- "@medusajs/locking": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.16.0-options-preview-20260605124754" } }, "sha512-ToK1tm1qM9Act7/oxu3HoeaWzd6OTMOcyJakfHZLE0AvtnKpP4x4tsFCuNzK0Ra0NelGZx8/96qbMmt2OSQUHQ=="],+ "@medusajs/locking": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.17.2" } }, "sha512-nGQvbERB2ijG6o1D37QKuhwmG64VSWPXqqhJBf3aimNXaFJbtz9t+NvQYFFi4yugzqe45uAGNiXJKfogd+aHrg=="],- "@medusajs/locking-postgres": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.16.0-options-preview-20260605124754" } }, "sha512-AAdxdzqkdQ1PFdCpSLshmQGYV92t8+xe+FbrnpKqmxxOm5uRixsrO6tQvjZ7RKNCxVYrAbHGCNsErY2aip9NYw=="],+ "@medusajs/locking-postgres": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.17.2" } }, "sha512-tHuYfP0BWh1seQa+8xWtKL74+F5u2U9YZy+0RC4eK3T/rcoSCHQLz+hOfSmkvT4Ng077xCVx9yKpaGJ5rnjfvA=="],- "@medusajs/locking-redis": ["@medusajs/[email protected]", "", { "dependencies": { "ioredis": "^5.4.1" }, "peerDependencies": { "@medusajs/framework": "2.16.0-options-preview-20260605124754" } }, "sha512-og9v2jbuhj9Gi+Hlbfew5ZfxBlGrGsSjAgrGpYbt8oASzfWbgO6pKDST+wG7sG6ZwjCvKh2NWAqNvgKMDqUcTQ=="],+ "@medusajs/locking-redis": ["@medusajs/[email protected]", "", { "dependencies": { "ioredis": "^5.4.1" }, "peerDependencies": { "@medusajs/framework": "2.17.2" } }, "sha512-6+4FuBN4Y0WlwRFj7IDUdbBsp+oplQSA0S1LAd4nzDwYTWh9AYt2IlCLdu/xrODdbgFIIHm0eMRlLbNVc1lc7Q=="],- "@medusajs/medusa": ["@medusajs/[email protected]", "", { "dependencies": { "@inquirer/checkbox": "^2.3.11", "@inquirer/confirm": "^2.0.17", "@inquirer/input": "^2.2.9", "@medusajs/admin-bundler": "2.16.0-options-preview-20260605124754", "@medusajs/analytics": "2.16.0-options-preview-20260605124754", "@medusajs/analytics-local": "2.16.0-options-preview-20260605124754", "@medusajs/analytics-posthog": "2.16.0-options-preview-20260605124754", "@medusajs/api-key": "2.16.0-options-preview-20260605124754", "@medusajs/auth": "2.16.0-options-preview-20260605124754", "@medusajs/auth-emailpass": "2.16.0-options-preview-20260605124754", "@medusajs/auth-github": "2.16.0-options-preview-20260605124754", "@medusajs/auth-google": "2.16.0-options-preview-20260605124754", "@medusajs/cache-inmemory": "2.16.0-options-preview-20260605124754", "@medusajs/cache-redis": "2.16.0-options-preview-20260605124754", "@medusajs/caching": "2.16.0-options-preview-20260605124754", "@medusajs/caching-redis": "2.16.0-options-preview-20260605124754", "@medusajs/cart": "2.16.0-options-preview-20260605124754", "@medusajs/core-flows": "2.16.0-options-preview-20260605124754", "@medusajs/currency": "2.16.0-options-preview-20260605124754", "@medusajs/customer": "2.16.0-options-preview-20260605124754", "@medusajs/draft-order": "2.16.0-options-preview-20260605124754", "@medusajs/event-bus-local": "2.16.0-options-preview-20260605124754", "@medusajs/event-bus-redis": "2.16.0-options-preview-20260605124754", "@medusajs/file": "2.16.0-options-preview-20260605124754", "@medusajs/file-local": "2.16.0-options-preview-20260605124754", "@medusajs/file-s3": "2.16.0-options-preview-20260605124754", "@medusajs/fulfillment": "2.16.0-options-preview-20260605124754", "@medusajs/fulfillment-manual": "2.16.0-options-preview-20260605124754", "@medusajs/index": "2.16.0-options-preview-20260605124754", "@medusajs/inventory": "2.16.0-options-preview-20260605124754", "@medusajs/link-modules": "2.16.0-options-preview-20260605124754", "@medusajs/locking": "2.16.0-options-preview-20260605124754", "@medusajs/locking-postgres": "2.16.0-options-preview-20260605124754", "@medusajs/locking-redis": "2.16.0-options-preview-20260605124754", "@medusajs/notification": "2.16.0-options-preview-20260605124754", "@medusajs/notification-local": "2.16.0-options-preview-20260605124754", "@medusajs/notification-sendgrid": "2.16.0-options-preview-20260605124754", "@medusajs/order": "2.16.0-options-preview-20260605124754", "@medusajs/payment": "2.16.0-options-preview-20260605124754", "@medusajs/payment-stripe": "2.16.0-options-preview-20260605124754", "@medusajs/pricing": "2.16.0-options-preview-20260605124754", "@medusajs/product": "2.16.0-options-preview-20260605124754", "@medusajs/promotion": "2.16.0-options-preview-20260605124754", "@medusajs/rbac": "2.16.0-options-preview-20260605124754", "@medusajs/region": "2.16.0-options-preview-20260605124754", "@medusajs/sales-channel": "2.16.0-options-preview-20260605124754", "@medusajs/settings": "2.16.0-options-preview-20260605124754", "@medusajs/stock-location": "2.16.0-options-preview-20260605124754", "@medusajs/store": "2.16.0-options-preview-20260605124754", "@medusajs/tax": "2.16.0-options-preview-20260605124754", "@medusajs/telemetry": "2.16.0-options-preview-20260605124754", "@medusajs/translation": "2.16.0-options-preview-20260605124754", "@medusajs/user": "2.16.0-options-preview-20260605124754", "@medusajs/workflow-engine-inmemory": "2.16.0-options-preview-20260605124754", "@medusajs/workflow-engine-redis": "2.16.0-options-preview-20260605124754", "boxen": "^5.0.1", "chalk": "^4.1.2", "chokidar": "^4.0.3", "compression": "^1.8.0", "express": "^4.21.0", "fs-exists-cached": "^1.0.0", "jsonwebtoken": "^9.0.2", "multer": "^2.0.2", "node-schedule": "^2.1.1", "qs": "^6.12.1", "request-ip": "^3.3.0", "slugify": "^1.6.6", "uuid": "^9.0.0" }, "peerDependencies": { "@medusajs/framework": "2.16.0-options-preview-20260605124754", "@swc/core": "^1.7.28", "posthog-node": "^5.11.0", "react-dom": "^18.3.1", "yalc": "^1.0.0-pre.53" }, "optionalPeers": ["@swc/core", "posthog-node", "react-dom", "yalc"] }, "sha512-1QaWhzcUlFIQjmJHEGKRNk1C74ApwaackBGRsstUCuhagk3Fd2HAcoDIDWVtdDX0CET8XJNwZdCXsud67rc54Q=="],+ "@medusajs/medusa": ["@medusajs/[email protected]", "", { "dependencies": { "@inquirer/checkbox": "^2.3.11", "@inquirer/confirm": "^2.0.17", "@inquirer/input": "^2.2.9", "@medusajs/admin-bundler": "2.17.2", "@medusajs/analytics": "2.17.2", "@medusajs/analytics-local": "2.17.2", "@medusajs/analytics-posthog": "2.17.2", "@medusajs/api-key": "2.17.2", "@medusajs/auth": "2.17.2", "@medusajs/auth-emailpass": "2.17.2", "@medusajs/auth-github": "2.17.2", "@medusajs/auth-google": "2.17.2", "@medusajs/cache-inmemory": "2.17.2", "@medusajs/cache-redis": "2.17.2", "@medusajs/caching": "2.17.2", "@medusajs/caching-redis": "2.17.2", "@medusajs/cart": "2.17.2", "@medusajs/core-flows": "2.17.2", "@medusajs/currency": "2.17.2", "@medusajs/customer": "2.17.2", "@medusajs/draft-order": "2.17.2", "@medusajs/event-bus-local": "2.17.2", "@medusajs/event-bus-redis": "2.17.2", "@medusajs/file": "2.17.2", "@medusajs/file-local": "2.17.2", "@medusajs/file-s3": "2.17.2", "@medusajs/fulfillment": "2.17.2", "@medusajs/fulfillment-manual": "2.17.2", "@medusajs/index": "2.17.2", "@medusajs/inventory": "2.17.2", "@medusajs/link-modules": "2.17.2", "@medusajs/locking": "2.17.2", "@medusajs/locking-postgres": "2.17.2", "@medusajs/locking-redis": "2.17.2", "@medusajs/notification": "2.17.2", "@medusajs/notification-local": "2.17.2", "@medusajs/notification-sendgrid": "2.17.2", "@medusajs/order": "2.17.2", "@medusajs/payment": "2.17.2", "@medusajs/payment-stripe": "2.17.2", "@medusajs/pricing": "2.17.2", "@medusajs/product": "2.17.2", "@medusajs/promotion": "2.17.2", "@medusajs/rbac": "2.17.2", "@medusajs/region": "2.17.2", "@medusajs/sales-channel": "2.17.2", "@medusajs/settings": "2.17.2", "@medusajs/stock-location": "2.17.2", "@medusajs/store": "2.17.2", "@medusajs/tax": "2.17.2", "@medusajs/telemetry": "2.17.2", "@medusajs/translation": "2.17.2", "@medusajs/user": "2.17.2", "@medusajs/workflow-engine-inmemory": "2.17.2", "@medusajs/workflow-engine-redis": "2.17.2", "boxen": "^5.0.1", "chalk": "^4.1.2", "chokidar": "^4.0.3", "compression": "^1.8.0", "express": "^4.21.0", "fs-exists-cached": "^1.0.0", "jsonwebtoken": "^9.0.2", "multer": "^2.0.2", "node-schedule": "^2.1.1", "qs": "^6.12.1", "request-ip": "^3.3.0", "slugify": "^1.6.6", "uuid": "^11.1.1" }, "peerDependencies": { "@medusajs/framework": "2.17.2", "@swc/core": "^1.7.28", "posthog-node": "^5.11.0", "react-dom": "^18.3.1", "yalc": "^1.0.0-pre.53" }, "optionalPeers": ["@swc/core", "posthog-node", "react-dom", "yalc"] }, "sha512-XuaVdKZKyLA1T5M1JY3xTK5AtJfDKe2oAkV/GeFYEDVS3WSQo1F7ttrx1FKvQzkoQz2n6jRRT0jp56WYgsc1Zw=="],- "@medusajs/modules-sdk": ["@medusajs/[email protected]", "", { "dependencies": { "@medusajs/deps": "2.16.0-options-preview-20260605124754", "@medusajs/orchestration": "2.16.0-options-preview-20260605124754", "@medusajs/utils": "2.16.0-options-preview-20260605124754" } }, "sha512-0U6OgISyJ+1Gb2y+Qn0fYyarOhhInk/YL8XxAYQlY+1QdAmEutEsWpyof76Ti69l9DGrlgEdKQo1ZIJcRynzEA=="],+ "@medusajs/modules-sdk": ["@medusajs/[email protected]", "", { "dependencies": { "@medusajs/deps": "2.17.2", "@medusajs/utils": "2.17.2" } }, "sha512-22TYcnWwStBeJc5GvgBGQewHCIFOZ+8Rk/FQaHBe6WMFZ1dJGpe9YD4Neb3gH6D7awp1OYB9569SBroNgXEiNQ=="],- "@medusajs/notification": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.16.0-options-preview-20260605124754" } }, "sha512-gryL4RvYU3SWi9+PMw9UlnsMLXvGaF3lfSiRmyayua3imgPwBBU6LZIfQOsJwAdPpONlyizDxXEvEL2o3AiNzA=="],+ "@medusajs/notification": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.17.2" } }, "sha512-ixxQ6jq5qtr+qzwcak1YzKWxSOA3P/PK/F/v4W2zULrCGAVPKjbibxL4xTGdiyjyFU0M2qog90Li1sCaiceEMQ=="],- "@medusajs/notification-local": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.16.0-options-preview-20260605124754" } }, "sha512-M2CJdYlvzKqUyp6/JAeL4uYsbDdiprLvhitR6JBjvt89g46iCUeviMveq1YmpN+7+iYZxbQXHsCeDe8ZKeDOKw=="],+ "@medusajs/notification-local": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.17.2" } }, "sha512-maYD6OOnChtGWGECDQErtykZWaO553kPhu/WDGtn3s8fkwtRDHZFPVRCPhxYsV3S5RaEM/muTVZ4Gj+1ajTw8Q=="],- "@medusajs/notification-sendgrid": ["@medusajs/[email protected]", "", { "dependencies": { "@sendgrid/mail": "^8.1.6" }, "peerDependencies": { "@medusajs/framework": "2.16.0-options-preview-20260605124754" } }, "sha512-EKDlTHXDGE5DCuzGttSvc/sFmGZyBnvoQ98wlxn/cKzOhSiNBwQa+973GlUPbQlfXEi/pNf5vmZaeDezT/d0fA=="],+ "@medusajs/notification-sendgrid": ["@medusajs/[email protected]", "", { "dependencies": { "@sendgrid/mail": "^8.1.6" }, "peerDependencies": { "@medusajs/framework": "2.17.2" } }, "sha512-KJZT5AfHoF3Ch02lQK3cp/Oq4MbxJQmr1Ypb5oRGpmUYP9Dy1nv5izlxfiIIp+xabQpPulQ7bxVXGPGbIGLQ9A=="],- "@medusajs/orchestration": ["@medusajs/[email protected]", "", { "dependencies": { "@medusajs/deps": "2.16.0-options-preview-20260605124754", "@medusajs/utils": "2.16.0-options-preview-20260605124754", "ulid": "^2.3.0" } }, "sha512-s94cHSYbtK8WYKhfS7uuhPiLNzSlS2CL9+9bmmIOqpfpCTB44ZA50SOO9JOuTitA9dYmdAg8iftgyGSnHCAsow=="],+ "@medusajs/orchestration": ["@medusajs/[email protected]", "", { "dependencies": { "@medusajs/deps": "2.17.2", "@medusajs/utils": "2.17.2", "ulid": "^2.3.0" } }, "sha512-hkc5z5d4H5keeuWlDFHhr0/P+v3k+cPoM4gvH7gbn9mQnCJUFFOqXkvWoNBegi+jXNvpMy6uor13BqoydsIV+g=="],- "@medusajs/order": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.16.0-options-preview-20260605124754" } }, "sha512-1O4vnNbYKVQjoW6GZyjvgHJueI4uG27sBPZsO0TPX5/EAjVEaBDb9yYPFeY8ST1nhPSP5e/jD106YB/NMe0jqg=="],+ "@medusajs/order": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.17.2" } }, "sha512-PQk8O8xlmqF0r2daWyRa361r6gZNB4PVWfQlGKPBTB+g8jh1wsZp6flfFYn5Wicw2pZ+AZYDsbXu5wJdLN/0AQ=="],- "@medusajs/payment": ["@medusajs/[email protected]", "", { "dependencies": { "stripe": "19.1.0" }, "peerDependencies": { "@medusajs/framework": "2.16.0-options-preview-20260605124754" } }, "sha512-dzXSsRNEq4V6oQT6XnjH4BGVShz6fGopf0m/u4sguwmHw8IRpUQEPp7HBrqwjtr91XjrKLWXmjnti7CzAtVHwQ=="],+ "@medusajs/payment": ["@medusajs/[email protected]", "", { "dependencies": { "stripe": "19.1.0" }, "peerDependencies": { "@medusajs/framework": "2.17.2" } }, "sha512-4zbF25PJ1wa+hfxR7c5RaOzte1LdgqsFg7nKcEbEjFaBofiEIamPxoxIEINM+l1djb/0oP3IMHRstZ06BJWUzg=="],- "@medusajs/payment-stripe": ["@medusajs/[email protected]", "", { "dependencies": { "stripe": "^15.5.0" }, "peerDependencies": { "@medusajs/framework": "2.16.0-options-preview-20260605124754" } }, "sha512-smMwOaT7WVUxdqC0Wl/e3hXfJhB21V3BD0BFXqjtSeBdBbNO2nbeemt2Ea/+g8a5HuUzFKX08GV5Ax6KAj+ShA=="],+ "@medusajs/payment-stripe": ["@medusajs/[email protected]", "", { "dependencies": { "stripe": "^15.5.0" }, "peerDependencies": { "@medusajs/framework": "2.17.2" } }, "sha512-/8EDUijsAbjWUD+RP1d1f/gchmI0vuzp9PdRbmo729oESsvwScjSHqyjQIof+fIN19e9EygwRhkre5rvGEjRPw=="],- "@medusajs/pricing": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.16.0-options-preview-20260605124754" } }, "sha512-lCcD2/fD1u2gWliderLtW45g5oShNfWNyw2XbWW7KPQ5/Xv0LvIUO79b3VookoNyMwSevDjU83BPJtywYsf1nw=="],+ "@medusajs/pricing": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.17.2" } }, "sha512-dsOX8TiWoPt0cON1PL3bbNHq6zau7bEsZnfwwPj+XoSPigdL7fjzTKcbK/lcpcK8BnNEpuKD4JTjHbRtf12LrQ=="],- "@medusajs/product": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.16.0-options-preview-20260605124754" } }, "sha512-A/56huK9g7EGeQ/4hgq7WyP5fLvC9e33CzbYPQH/zDUHNoYpQOuqwf8z0SN2fJRs2YvPwdK0q/fheV0hyJHCtg=="],+ "@medusajs/product": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.17.2" } }, "sha512-BkG36166I7ulF1Vz2MmHpi6Z8PK8Vogvc8qDmLJzhavn//ZZPO1I8KhFZrRukC6lVvEoxqY7012DGFSzC8zzMA=="],- "@medusajs/promotion": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.16.0-options-preview-20260605124754" } }, "sha512-XRA5qSwCPCxbHqZ6kdOTXXyXNfH1T7R651LIyxqsYv2Lr6An1Dqzxtb6EzlwhA3+bBea7Ut3cZ45f0stAgt1Ag=="],+ "@medusajs/promotion": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.17.2" } }, "sha512-RS3hqgS8p62IPxTAbJsbMUSSBRkeGCGeBrD5w2ZB61huMRkN7R8EjnQfkfFozqvrLIF30IZMxRZVAdyI1peP/Q=="],- "@medusajs/rbac": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.16.0-options-preview-20260605124754" } }, "sha512-F8FFsJNgrEUi0i5I/yaFOLlHvIVH2fSMgo+PQl0VeEQpD/j7sc5ikwuiAEghCvTQ233rUOCn+BRWKqpHn0cT3Q=="],+ "@medusajs/rbac": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.17.2" } }, "sha512-JJ93utb0NH/6fpYxDoLKq6sRkovOdiFIq1keXHV/F4IaD2ScTAI2q/N5cFBi1+Rnq5V7vd1ZNyVeqkjoaLFB8Q=="],- "@medusajs/region": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.16.0-options-preview-20260605124754" } }, "sha512-Mre2kO7oPjHXMifYaUDrOiTPUMh5Q5VWL0e4GD5qB3cFfyvoGv54lvkNOeCGDcZcic6lLFbmiLAAgL32Zeb4fQ=="],+ "@medusajs/region": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.17.2" } }, "sha512-82npGJkl5N9EzppxYfxM2w6nUnkhUZUFc1oYKMib44EFkPCXpsudnHlSzA+4FaYS1Qke2jbaMgoNuymF5XODRQ=="],- "@medusajs/sales-channel": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.16.0-options-preview-20260605124754" } }, "sha512-QCQY4EmaTqdUHI/XlkuG4jfWxCVJwmyRpQWZdINFsmnUcjoMhCYcnwysP4wkGZs9zk78F3Rc/wraX25n3ya/DQ=="],+ "@medusajs/sales-channel": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.17.2" } }, "sha512-F+n7QqnHYuSqjqQsDAu+HsyAkW7ZHEhOHpt3km/SiDOeLP/8dWdjLfpZdB9ZAkq2PzDhoFU+3lZK0REbeUZSow=="],- "@medusajs/settings": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.16.0-options-preview-20260605124754" } }, "sha512-sa2QeBfUKu/yOC1bTVZkYI88fRBXeQKdAQ5CnjMDPUbgig4SBMjqHorlBF0yGTMvN0sAqgJLQtNyt7D9LtaH9Q=="],+ "@medusajs/settings": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.17.2" } }, "sha512-CgonGEgS/ujnaMoT+ohmzo9WyA2mV/ujSV7MYz2fWCn4agFD2/1OApANQhCGOLCbjPiGXTEC42X0iQrtLcwvoQ=="],- "@medusajs/stock-location": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.16.0-options-preview-20260605124754" } }, "sha512-D4BGe+18XvLtW19Yob85p4kvxWN6ZUzFcXIM/7f2PVZk3hDLk0xdNtEjZjkB454rwgtSoAgvUgQRITatHPIaXQ=="],+ "@medusajs/stock-location": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.17.2" } }, "sha512-NneyMqVqfZ8/JS/gmL75PBsIyQr/mYdsMXqzTwREZboIzNBnngOEv7wWdHLnj80pwSZe2AnL7ADtkqvFXCCXtg=="],- "@medusajs/store": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.16.0-options-preview-20260605124754" } }, "sha512-z5TQLgFrBcN1dIDZ4loXCjkHfCf1ORxqoE9RxOblOrtoIk/ne3L8X/kzJqPXjOUXUU6duJkr4XjiAqxqyUAF2A=="],+ "@medusajs/store": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.17.2" } }, "sha512-XUgFKrOd+lL+yuz4LaT+v2EwdKDH/DuqBWHjSgPKrHwYzareDV5yyrGe6h+C7uQuTXlTVkl+hCWmjK+GGWp5QQ=="],- "@medusajs/tax": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.16.0-options-preview-20260605124754" } }, "sha512-suxSAkPzS7wcu2DqrrBPqQ8q5RIVF109jnsTcEYuImKI7Gefr5rG45VNFRv8d//Yq/hSyjAkGeze0wQ4SS58MA=="],+ "@medusajs/tax": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.17.2" } }, "sha512-YYnqpTzpTBwikP1TONdyOjVr8OOShQUy+eaCCA3Uly5WFPJz/Bkb5Y6InpOuI2snt2I8hqSJTA9KEKNj2OsJRg=="],- "@medusajs/telemetry": ["@medusajs/[email protected]", "", { "dependencies": { "@babel/runtime": "^7.26.10", "axios": "^1.13.1", "axios-retry": "^3.1.9", "boxen": "^5.0.1", "ci-info": "^3.2.0", "configstore": "^5.0.1", "is-docker": "^2.2.1", "remove-trailing-slash": "^0.1.1", "uuid": "^9.0.0" } }, "sha512-54yrPMLszXcR1zW7zgk8vGl1tEkKpt0Laz2ObDxGbST5loKf56Equ2HrY7oOaAaRS18gcdwiEsLXvbiuKxs6pQ=="],+ "@medusajs/telemetry": ["@medusajs/[email protected]", "", { "dependencies": { "@babel/runtime": "^7.26.10", "axios": "^1.13.1", "axios-retry": "^3.1.9", "boxen": "^5.0.1", "ci-info": "^3.2.0", "configstore": "^5.0.1", "is-docker": "^2.2.1", "remove-trailing-slash": "^0.1.1", "uuid": "^11.1.1" } }, "sha512-5GcSjT/8mQ/k0UDMdrg8iGZElM8OsHEsaB5HPhRigA02RBiu42GfR79d/tNjmLwKJM8p+GEJEkYzUysmzscJqg=="],- "@medusajs/test-utils": ["@medusajs/[email protected]", "", { "dependencies": { "@types/express": "^4.17.21", "axios": "^1.13.1", "express": "^4.21.0", "get-port": "^5.1.1", "ulid": "^2.3.0" }, "peerDependencies": { "@medusajs/core-flows": "2.16.0-options-preview-20260605124754", "@medusajs/framework": "2.16.0-options-preview-20260605124754", "@medusajs/medusa": "2.16.0-options-preview-20260605124754" }, "optionalPeers": ["@medusajs/core-flows", "@medusajs/medusa"] }, "sha512-iNS3Qyzr98N0gmkDJsJRxNK4K/7VER/Lqg3UHuVtoxxmPwWLn4dxCaDij2ach4wMufdNHFDVy5XhHHFg6yaEDQ=="],+ "@medusajs/test-utils": ["@medusajs/[email protected]", "", { "dependencies": { "@types/express": "^4.17.21", "axios": "^1.13.1", "express": "^4.21.0", "get-port": "^5.1.1", "ulid": "^2.3.0" }, "peerDependencies": { "@medusajs/core-flows": "2.17.2", "@medusajs/framework": "2.17.2", "@medusajs/medusa": "2.17.2" }, "optionalPeers": ["@medusajs/core-flows", "@medusajs/medusa"] }, "sha512-wwDOvyIZxOmj+Y50tcIzoicoNQaL06SsEhLxLJy5h+6DHnJHar2NBuckL+a9kmwSdVmF0am2109CP5+xdIbXQw=="],- "@medusajs/translation": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.16.0-options-preview-20260605124754" } }, "sha512-aEm83pBqe2JmUnFlNgQJk3vlPW5zT7VtmMoxBjfR2AwsmHDIMhrR6+OKwIYYrXcnr21vjehmHnmC9XRpHKnWSQ=="],+ "@medusajs/translation": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.17.2" } }, "sha512-c7fP6WFEvWDyOh/6q2EZlUwi3/9HSd0HIEeLwNWUyvG8l2lrG7Fu3f2AGKMpXtD2v2bzTng636oX6g2G4jXqhQ=="],- "@medusajs/types": ["@medusajs/[email protected]", "", { "dependencies": { "bignumber.js": "^9.1.2" }, "peerDependencies": { "ioredis": "^5.4.1", "vite": "^5.4.21" }, "optionalPeers": ["ioredis", "vite"] }, "sha512-hzLtGGI9qt1R+MEN+YUOzxyO1oNqs6pC+BmSNQ3nJbxbLfi5684nnogJtvHzK2gY31pYYRw/49zGv17en57N3w=="],+ "@medusajs/types": ["@medusajs/[email protected]", "", { "dependencies": { "bignumber.js": "^9.1.2" }, "peerDependencies": { "ioredis": "^5.4.1", "vite": "^5.4.21" }, "optionalPeers": ["ioredis", "vite"] }, "sha512-52JdjyvvgiopdVfv9aA0NO0f3Ks1ndLMEzOuTBX5Gs2I4egwz7JpKpcEaHA8cOZk4JxuiFPZ6WrAbJrKcoe96Q=="],- "@medusajs/ui": ["@medusajs/[email protected]", "", { "dependencies": { "@dnd-kit/core": "^6.1.0", "@dnd-kit/sortable": "^8.0.0", "@dnd-kit/utilities": "^3.2.2", "@medusajs/icons": "2.16.0-options-preview-20260605124754", "@radix-ui/react-dialog": "1.1.4", "@radix-ui/react-dismissable-layer": "1.1.4", "@tanstack/react-table": "8.20.5", "clsx": "^1.2.1", "copy-to-clipboard": "^3.3.3", "cva": "1.0.0-beta.1", "lodash.isequal": "^4.5.0", "prism-react-renderer": "^2.0.6", "prismjs": "^1.30.0", "radix-ui": "1.1.2", "react-aria": "^3.33.1", "react-currency-input-field": "^3.6.11", "react-stately": "^3.31.1", "sonner": "^1.5.0", "tailwind-merge": "^2.2.1" }, "peerDependencies": { "react": "^18.3.1", "react-dom": "^18.3.1" } }, "sha512-l1RSgKPqg26BxVOLLCJyTdqhChsW3J8bFLlP+/dhYTSnt86sGNYpyvAfP7Ifk8aQNIImG5e3LDRdb61vDDPCdA=="],+ "@medusajs/ui": ["@medusajs/[email protected]", "", { "dependencies": { "@dnd-kit/core": "^6.1.0", "@dnd-kit/sortable": "^8.0.0", "@dnd-kit/utilities": "^3.2.2", "@medusajs/icons": "2.17.2", "@radix-ui/react-dialog": "1.1.4", "@radix-ui/react-dismissable-layer": "1.1.4", "@tanstack/react-table": "8.20.5", "clsx": "^1.2.1", "copy-to-clipboard": "^3.3.3", "cva": "1.0.0-beta.1", "lodash.isequal": "^4.5.0", "prism-react-renderer": "^2.0.6", "prismjs": "^1.30.0", "radix-ui": "1.1.2", "react-aria": "^3.33.1", "react-currency-input-field": "^3.6.11", "react-stately": "^3.31.1", "sonner": "^1.5.0", "tailwind-merge": "^2.2.1" }, "peerDependencies": { "react": "^18.3.1", "react-dom": "^18.3.1" } }, "sha512-SBUN9SLd5CVlJpWA0AzhCkUx6yIHZaukPBzk5Q471qsSLTpspqvc8pnUaZ4Y3eTIFI/KPeV52bawnNOdKg4Pfw=="],- "@medusajs/ui-preset": ["@medusajs/[email protected]", "", { "dependencies": { "@tailwindcss/forms": "^0.5.3", "tailwindcss-animate": "^1.0.6" }, "peerDependencies": { "tailwindcss": "^3.4.3" } }, "sha512-5RvVocK2Y4pAQQlK4G2MlhhDGZOEoKSDWxBtbLHCdbHfEYAeeb/yOECXAkeKxYBN0OuFvKGHNIeEOXIVRIkTdQ=="],+ "@medusajs/ui-preset": ["@medusajs/[email protected]", "", { "dependencies": { "@tailwindcss/forms": "^0.5.3", "tailwindcss-animate": "^1.0.6" }, "peerDependencies": { "tailwindcss": "^3.4.3" } }, "sha512-6ScPPkBfK2pU3JhBujXaQt6R6ShAiKwgV44o1bxda6E1879LYbeW0+nlEmPymND/7fRlx6piF7GxbAW01vy9+g=="],- "@medusajs/user": ["@medusajs/[email protected]", "", { "dependencies": { "jsonwebtoken": "^9.0.2" }, "peerDependencies": { "@medusajs/framework": "2.16.0-options-preview-20260605124754" } }, "sha512-ZPsz0ncevmPpFut/7YcJ+J2KSWDpyzHsRec+U4zb8PiHlWLFPlXcf60i+Cn0dEFjb6TaoMO0zTRBJ9jLmOo72Q=="],+ "@medusajs/user": ["@medusajs/[email protected]", "", { "dependencies": { "jsonwebtoken": "^9.0.2" }, "peerDependencies": { "@medusajs/framework": "2.17.2" } }, "sha512-BPgPErarg/Ogq4N1zJQmn8bDkcDBz2tS+1Pg09P65o2r1hpurJ0TRiJEmm4C64DkJ4SRfx6KX0NvV8B+GgD50A=="],- "@medusajs/utils": ["@medusajs/[email protected]", "", { "dependencies": { "@graphql-codegen/core": "^4.0.2", "@graphql-codegen/typescript": "^4.0.9", "@graphql-tools/merge": "^9.0.7", "@graphql-tools/schema": "^10.0.6", "@medusajs/deps": "2.16.0-options-preview-20260605124754", "@types/pluralize": "^0.0.33", "bignumber.js": "^9.1.2", "dotenv": "^16.4.5", "dotenv-expand": "^11.0.6", "graphql": "^16.9.0", "jsonwebtoken": "^9.0.2", "pg-connection-string": "^2.7.0", "pluralize": "^8.0.0", "ulid": "^2.3.0" }, "peerDependencies": { "express": "^4.21.0" } }, "sha512-WPGk2i0OZqPkabj8dAoVqvjX3xumynVm2fxZnZFSkZWqJ53udMjFqUffjpK1yw4wJZgJLlvhBDsbRC/TG9zamw=="],+ "@medusajs/utils": ["@medusajs/[email protected]", "", { "dependencies": { "@graphql-codegen/core": "^4.0.2", "@graphql-codegen/typescript": "^4.0.9", "@graphql-tools/merge": "^9.0.7", "@graphql-tools/schema": "^10.0.6", "@medusajs/deps": "2.17.2", "@types/pluralize": "^0.0.33", "bignumber.js": "^9.1.2", "dotenv": "^16.4.5", "dotenv-expand": "^11.0.6", "graphql": "^16.9.0", "jsonwebtoken": "^9.0.2", "pg-connection-string": "^2.7.0", "pluralize": "^8.0.0", "ulid": "^2.3.0" }, "peerDependencies": { "express": "^4.21.0" } }, "sha512-5s6HWq0romojGGqwJ4R9wtI5ShS0GTUKW0mdvrjyj2Ony29mNSakwCK+am8vtWsfWpcEmv08knuaCI+UeWej0A=="],- "@medusajs/workflow-engine-inmemory": ["@medusajs/[email protected]", "", { "dependencies": { "cron-parser": "^4.9.0", "ulid": "^2.3.0" }, "peerDependencies": { "@medusajs/framework": "2.16.0-options-preview-20260605124754" } }, "sha512-kL6fd/CFLAqbnaTJCu3l6m+PwtvgiF26XUGJ74Lcvv/aGB9RxMOuVLbZA8ls1mfxxFHz0AUHcdpWxs/MHqlHnw=="],+ "@medusajs/workflow-engine-inmemory": ["@medusajs/[email protected]", "", { "dependencies": { "cron-parser": "^4.9.0", "ulid": "^2.3.0" }, "peerDependencies": { "@medusajs/framework": "2.17.2" } }, "sha512-t15S1hB197IiqDhaU9iGlULdTxX1tJn0lgZJopYoxynuRuuW17OMuv2QT92oNqxdonOFdES1Qnn7nIAdtpGODQ=="],- "@medusajs/workflow-engine-redis": ["@medusajs/[email protected]", "", { "dependencies": { "bullmq": "5.13.0", "ioredis": "^5.4.1", "ulid": "^2.3.0" }, "peerDependencies": { "@medusajs/framework": "2.16.0-options-preview-20260605124754" } }, "sha512-hOhLhpDLxnrqZy+qnkqYaBDyt68KK9XWyYWS4IruxrEBJlaQGzeuR5VENP5QJpPWSkQ7hYCdqbZ5K/oY7DfyhQ=="],+ "@medusajs/workflow-engine-redis": ["@medusajs/[email protected]", "", { "dependencies": { "bullmq": "5.13.0", "ioredis": "^5.4.1", "ulid": "^2.3.0" }, "peerDependencies": { "@medusajs/framework": "2.17.2" } }, "sha512-kNrajeqQQyWUJsf0H7AKtwjO9Mr+B3KVM3q5xh3VlBHkqJUATU0NtFJ7U6APnc3K//VKyHG0iQiaX4Z8B2OAvA=="],- "@medusajs/workflows-sdk": ["@medusajs/[email protected]", "", { "dependencies": { "@medusajs/deps": "2.16.0-options-preview-20260605124754", "@medusajs/modules-sdk": "2.16.0-options-preview-20260605124754", "@medusajs/orchestration": "2.16.0-options-preview-20260605124754", "@medusajs/utils": "2.16.0-options-preview-20260605124754", "ulid": "^2.3.0" } }, "sha512-8Rq6BzBEFM439YJ7nXMx1/TzrGbZbP5IZnb3clxPqBkfa77HvDqET5QF+CNXAvUfJ0F7zKJJs+F7tWQdBVA3wQ=="],+ "@medusajs/workflows-sdk": ["@medusajs/[email protected]", "", { "dependencies": { "@medusajs/deps": "2.17.2", "@medusajs/modules-sdk": "2.17.2", "@medusajs/orchestration": "2.17.2", "@medusajs/utils": "2.17.2", "ulid": "^2.3.0" } }, "sha512-ZcmlnOGeTW4dgOvo3tOkz+EggesFH4AveCjZVkyNaHuAT2lX3ue+VvmMJlqrYVvYChG/OyPlzjxYgPpWhlnwig=="],"@mercurjs/admin": ["@mercurjs/admin@workspace:packages/admin"],@@ -1163,7 +1168,7 @@"@mercurjs/dashboard-shared": ["@mercurjs/dashboard-shared@workspace:packages/dashboard-shared"],- "@mercurjs/e2e-tests": ["@mercurjs/e2e-tests@workspace:e2e-tests"],+ "@mercurjs/docs": ["@mercurjs/docs@workspace:packages/docs"],"@mercurjs/integration-tests": ["@mercurjs/integration-tests@workspace:integration-tests"],@@ -1175,15 +1180,15 @@"@mercurjs/vendor": ["@mercurjs/vendor@workspace:packages/vendor"],- "@mikro-orm/cli": ["@mikro-orm/[email protected]", "", { "dependencies": { "@jercle/yargonaut": "1.1.5", "@mikro-orm/core": "6.6.12", "@mikro-orm/knex": "6.6.12", "fs-extra": "11.3.3", "tsconfig-paths": "4.2.0", "yargs": "17.7.2" }, "bin": { "mikro-orm": "cli", "mikro-orm-esm": "esm" } }, "sha512-NDsPRFgthHz7yXfhADF/xeZDliY0lCjsZvTHLnXJe4PlPy4r8OeaOGILwJJMPrkjrq4EF9t4JrMi8XCEPoVHBg=="],+ "@mikro-orm/cli": ["@mikro-orm/[email protected]", "", { "dependencies": { "@jercle/yargonaut": "1.1.5", "@mikro-orm/core": "6.6.14", "@mikro-orm/knex": "6.6.14", "fs-extra": "11.3.3", "tsconfig-paths": "4.2.0", "yargs": "17.7.2" }, "bin": { "mikro-orm": "cli", "mikro-orm-esm": "esm" } }, "sha512-pYo6BBWJEaA9rOBJAyu6IK81v8wed8ScJ9Z3/suyHVAdul6h/Y37qU/FGQqnA8qM7801pMkCWr/36ybgAaYjeQ=="],- "@mikro-orm/core": ["@mikro-orm/[email protected]", "", { "dependencies": { "dataloader": "2.2.3", "dotenv": "17.3.1", "esprima": "4.0.1", "fs-extra": "11.3.3", "globby": "11.1.0", "mikro-orm": "6.6.12", "reflect-metadata": "0.2.2" } }, "sha512-LgLfRfaGdRUNkJ457H1GsuzoiZJuBY3HKgP+BZMTaFr/l6ah6JbyubodbVXxH+Ffji62TtbHFFRr0tj4wNwLRg=="],+ "@mikro-orm/core": ["@mikro-orm/[email protected]", "", { "dependencies": { "dataloader": "2.2.3", "dotenv": "17.3.1", "esprima": "4.0.1", "fs-extra": "11.3.3", "globby": "11.1.0", "mikro-orm": "6.6.14", "reflect-metadata": "0.2.2" } }, "sha512-jKdtf1A2wI2D48phOPJzTc3h7Bev64Ype0FHwbUgHEdZ5VxrCNLKOziFnYqMfPmBe0piVExLaPN2qXgbzCiApw=="],- "@mikro-orm/knex": ["@mikro-orm/[email protected]", "", { "dependencies": { "fs-extra": "11.3.3", "knex": "3.2.8", "sqlstring": "2.3.3" }, "peerDependencies": { "@mikro-orm/core": "^6.0.0", "better-sqlite3": "*", "libsql": "*", "mariadb": "*" }, "optionalPeers": ["better-sqlite3", "libsql", "mariadb"] }, "sha512-4enhWqWEEt2ijFI9G7zg07gRNq/UkJ2ihCYfMWooQU5cZQZJl1DnKJae9Q/StoKP2Ttyg4e+GgQXFm94/9MhnQ=="],+ "@mikro-orm/knex": ["@mikro-orm/[email protected]", "", { "dependencies": { "fs-extra": "11.3.3", "knex": "3.2.10", "sqlstring": "2.3.3" }, "peerDependencies": { "@mikro-orm/core": "^6.0.0", "better-sqlite3": "*", "libsql": "*", "mariadb": "*" }, "optionalPeers": ["better-sqlite3", "libsql", "mariadb"] }, "sha512-xQWq9+7TwE8LLul1RkhjB7/0/iCHMlkSmEToVpz+NNFoPj6M32DfY9mhNnM6qPZ/HF50WjpcVgCgi9ADrEBSFA=="],- "@mikro-orm/migrations": ["@mikro-orm/[email protected]", "", { "dependencies": { "@mikro-orm/knex": "6.6.12", "fs-extra": "11.3.3", "umzug": "3.8.2" }, "peerDependencies": { "@mikro-orm/core": "^6.0.0" } }, "sha512-uSF477rga32+7cnIxuixXPqupuDw8YtKkwbzrcuGmozeTSGc0Lw5MajZgPbmtaA+Fyu5B4Io7Z/gxDQDhWZdaw=="],+ "@mikro-orm/migrations": ["@mikro-orm/[email protected]", "", { "dependencies": { "@mikro-orm/knex": "6.6.14", "fs-extra": "11.3.3", "umzug": "3.8.2" }, "peerDependencies": { "@mikro-orm/core": "^6.0.0" } }, "sha512-rigk6pVUF8499yuR3kJOa9B0hzkacLYeWYmNuH5005ECQNcbT2d4qqTvWjE96/PqxxnMesKg4RmesSIC7sIXvg=="],- "@mikro-orm/postgresql": ["@mikro-orm/[email protected]", "", { "dependencies": { "@mikro-orm/knex": "6.6.12", "pg": "8.20.0", "postgres-array": "3.0.4", "postgres-date": "2.1.0", "postgres-interval": "4.0.2" }, "peerDependencies": { "@mikro-orm/core": "^6.0.0" } }, "sha512-AB1ww3NqKcIlAgugJFImx8Z/KRg5S2ajtE2vS3HrIFl7Y9Ong7dMj3qAQw7sGlFDAUpeBqgYoDBl/M7YyAfzGg=="],+ "@mikro-orm/postgresql": ["@mikro-orm/[email protected]", "", { "dependencies": { "@mikro-orm/knex": "6.6.14", "pg": "8.20.0", "postgres-array": "3.0.4", "postgres-date": "2.1.0", "postgres-interval": "4.0.2" }, "peerDependencies": { "@mikro-orm/core": "^6.0.0" } }, "sha512-hgyxpuTaXK0nYhhkmPkz8lx1nzhsqtOQuqQ+oabtyEKuqzPeANRJaV2TczIFYMIczyxKWOylV7g//13qrwqmNQ=="],"@msgpackr-extract/msgpackr-extract-darwin-arm64": ["@msgpackr-extract/[email protected]", "", { "os": "darwin", "cpu": "arm64" }, "sha512-LCkGo6JDfaBhgST7UpPWgNgLINpcpabaHfyz5OBx75nUYxBsaEPxjnyNjWpeb/xBup/682QnBfRBy2/LvPutZQ=="],@@ -1225,57 +1230,59 @@"@opentelemetry/api": ["@opentelemetry/[email protected]", "", {}, "sha512-gLyJlPHPZYdAk1JENA9LeHejZe1Ti77/pTeFm/nMXmQH/HFZlcS/O2XJB+L8fkbrNSqhdtlvjBVjxwUYanNH5Q=="],- "@opentelemetry/api-logs": ["@opentelemetry/[email protected]", "", { "dependencies": { "@opentelemetry/api": "^1.3.0" } }, "sha512-IKJBQxh91qJ+3ssRly5hYEJ8NDHu9oY/B1PXVSCWf7zytmYO9RNLB0Ox9XQ/fJ8m6gY6Q6NtBWlmXfaXt5Uc4Q=="],+ "@opentelemetry/api-logs": ["@opentelemetry/[email protected]", "", { "dependencies": { "@opentelemetry/api": "^1.3.0" } }, "sha512-fmEWp5kXlGEc3i/lR698Hz41DfGyN4Tbe4g7L1AxSc7fF8Xeh/FQ9Quqpa9dVA413Q1Ad43QOLzU4JoXgbFPWw=="],++ "@opentelemetry/configuration": ["@opentelemetry/[email protected]", "", { "dependencies": { "@opentelemetry/core": "2.7.1", "yaml": "^2.0.0" }, "peerDependencies": { "@opentelemetry/api": "^1.9.0" } }, "sha512-W8wIz7H2R1pufR5jfjb3gU2XkMpm2x/7b1RJcsuzvd70Il/rWWE+g5/Od7hQKrxRTSrTrOWlru101PWXz5I1EQ=="],"@opentelemetry/context-async-hooks": ["@opentelemetry/[email protected]", "", { "peerDependencies": { "@opentelemetry/api": ">=1.0.0 <1.10.0" } }, "sha512-OPFBYuXEn1E4ja3Y6eeA7O+ZnLBNcXTV5Cgsn1VaqBZ6hC5FnpZPLBNme1LJY8ZtF4aOujPKFoeWN4ik487KuQ=="],"@opentelemetry/core": ["@opentelemetry/[email protected]", "", { "dependencies": { "@opentelemetry/semantic-conventions": "^1.29.0" }, "peerDependencies": { "@opentelemetry/api": ">=1.0.0 <1.10.0" } }, "sha512-QAqIj32AtK6+pEVNG7EOVxHdE06RP+FM5qpiEJ4RtDcFIqKUZHYhl7/7UY5efhwmwNAg7j8QbJVBLxMerc0+gw=="],- "@opentelemetry/exporter-logs-otlp-grpc": ["@opentelemetry/[email protected]", "", { "dependencies": { "@grpc/grpc-js": "^1.7.1", "@opentelemetry/core": "2.0.0", "@opentelemetry/otlp-exporter-base": "0.200.0", "@opentelemetry/otlp-grpc-exporter-base": "0.200.0", "@opentelemetry/otlp-transformer": "0.200.0", "@opentelemetry/sdk-logs": "0.200.0" }, "peerDependencies": { "@opentelemetry/api": "^1.3.0" } }, "sha512-+3MDfa5YQPGM3WXxW9kqGD85Q7s9wlEMVNhXXG7tYFLnIeaseUt9YtCeFhEDFzfEktacdFpOtXmJuNW8cHbU5A=="],+ "@opentelemetry/exporter-logs-otlp-grpc": ["@opentelemetry/[email protected]", "", { "dependencies": { "@grpc/grpc-js": "^1.14.3", "@opentelemetry/core": "2.7.1", "@opentelemetry/otlp-exporter-base": "0.218.0", "@opentelemetry/otlp-grpc-exporter-base": "0.218.0", "@opentelemetry/otlp-transformer": "0.218.0", "@opentelemetry/sdk-logs": "0.218.0" }, "peerDependencies": { "@opentelemetry/api": "^1.3.0" } }, "sha512-hoxrNH1l/Xy6F9WTJ5IK+6j1r9nQFlPOmrnTlhYHTySdunfXLmUCPv3bQtKYntxag9h3wLYBZQ2HI6FOx+BT2g=="],- "@opentelemetry/exporter-logs-otlp-http": ["@opentelemetry/[email protected]", "", { "dependencies": { "@opentelemetry/api-logs": "0.200.0", "@opentelemetry/core": "2.0.0", "@opentelemetry/otlp-exporter-base": "0.200.0", "@opentelemetry/otlp-transformer": "0.200.0", "@opentelemetry/sdk-logs": "0.200.0" }, "peerDependencies": { "@opentelemetry/api": "^1.3.0" } }, "sha512-KfWw49htbGGp9s8N4KI8EQ9XuqKJ0VG+yVYVYFiCYSjEV32qpQ5qZ9UZBzOZ6xRb+E16SXOSCT3RkqBVSABZ+g=="],+ "@opentelemetry/exporter-logs-otlp-http": ["@opentelemetry/[email protected]", "", { "dependencies": { "@opentelemetry/api-logs": "0.218.0", "@opentelemetry/core": "2.7.1", "@opentelemetry/otlp-exporter-base": "0.218.0", "@opentelemetry/otlp-transformer": "0.218.0", "@opentelemetry/sdk-logs": "0.218.0" }, "peerDependencies": { "@opentelemetry/api": "^1.3.0" } }, "sha512-Qx+4rpVHzgg89dawcWRHyt+XRXeLnhFz/qBtvggmjkcgPUdr+NAB0/u/eIPA8yAeJV0J80Vz43JZCh/XFvZFGw=="],- "@opentelemetry/exporter-logs-otlp-proto": ["@opentelemetry/[email protected]", "", { "dependencies": { "@opentelemetry/api-logs": "0.200.0", "@opentelemetry/core": "2.0.0", "@opentelemetry/otlp-exporter-base": "0.200.0", "@opentelemetry/otlp-transformer": "0.200.0", "@opentelemetry/resources": "2.0.0", "@opentelemetry/sdk-logs": "0.200.0", "@opentelemetry/sdk-trace-base": "2.0.0" }, "peerDependencies": { "@opentelemetry/api": "^1.3.0" } }, "sha512-GmahpUU/55hxfH4TP77ChOfftADsCq/nuri73I/AVLe2s4NIglvTsaACkFVZAVmnXXyPS00Fk3x27WS3yO07zA=="],+ "@opentelemetry/exporter-logs-otlp-proto": ["@opentelemetry/[email protected]", "", { "dependencies": { "@opentelemetry/api-logs": "0.218.0", "@opentelemetry/core": "2.7.1", "@opentelemetry/otlp-exporter-base": "0.218.0", "@opentelemetry/otlp-transformer": "0.218.0", "@opentelemetry/resources": "2.7.1", "@opentelemetry/sdk-logs": "0.218.0", "@opentelemetry/sdk-trace-base": "2.7.1" }, "peerDependencies": { "@opentelemetry/api": "^1.3.0" } }, "sha512-1/noQNsp9gXD75HPzgjBrcF1+XTtry7pFAUfxVEJgg7mPv2AawKQuYkhMmJ8qjxz4Ubc3Y8bwvfxevXsKTq4cg=="],- "@opentelemetry/exporter-metrics-otlp-grpc": ["@opentelemetry/[email protected]", "", { "dependencies": { "@grpc/grpc-js": "^1.7.1", "@opentelemetry/core": "2.0.0", "@opentelemetry/exporter-metrics-otlp-http": "0.200.0", "@opentelemetry/otlp-exporter-base": "0.200.0", "@opentelemetry/otlp-grpc-exporter-base": "0.200.0", "@opentelemetry/otlp-transformer": "0.200.0", "@opentelemetry/resources": "2.0.0", "@opentelemetry/sdk-metrics": "2.0.0" }, "peerDependencies": { "@opentelemetry/api": "^1.3.0" } }, "sha512-uHawPRvKIrhqH09GloTuYeq2BjyieYHIpiklOvxm9zhrCL2eRsnI/6g9v2BZTVtGp8tEgIa7rCQ6Ltxw6NBgew=="],+ "@opentelemetry/exporter-metrics-otlp-grpc": ["@opentelemetry/[email protected]", "", { "dependencies": { "@grpc/grpc-js": "^1.14.3", "@opentelemetry/core": "2.7.1", "@opentelemetry/exporter-metrics-otlp-http": "0.218.0", "@opentelemetry/otlp-exporter-base": "0.218.0", "@opentelemetry/otlp-grpc-exporter-base": "0.218.0", "@opentelemetry/otlp-transformer": "0.218.0", "@opentelemetry/resources": "2.7.1", "@opentelemetry/sdk-metrics": "2.7.1" }, "peerDependencies": { "@opentelemetry/api": "^1.3.0" } }, "sha512-YapQ9vNMX0NSZF6LK5pWAFfjpJleV2O9uYWfYGeb/5F1Kb9rPGK8tZDMJFa/sOksgdFuflDvYuA0B4qjDB4fjQ=="],- "@opentelemetry/exporter-metrics-otlp-http": ["@opentelemetry/[email protected]", "", { "dependencies": { "@opentelemetry/core": "2.0.0", "@opentelemetry/otlp-exporter-base": "0.200.0", "@opentelemetry/otlp-transformer": "0.200.0", "@opentelemetry/resources": "2.0.0", "@opentelemetry/sdk-metrics": "2.0.0" }, "peerDependencies": { "@opentelemetry/api": "^1.3.0" } }, "sha512-5BiR6i8yHc9+qW7F6LqkuUnIzVNA7lt0qRxIKcKT+gq3eGUPHZ3DY29sfxI3tkvnwMgtnHDMNze5DdxW39HsAw=="],+ "@opentelemetry/exporter-metrics-otlp-http": ["@opentelemetry/[email protected]", "", { "dependencies": { "@opentelemetry/core": "2.7.1", "@opentelemetry/otlp-exporter-base": "0.218.0", "@opentelemetry/otlp-transformer": "0.218.0", "@opentelemetry/resources": "2.7.1", "@opentelemetry/sdk-metrics": "2.7.1" }, "peerDependencies": { "@opentelemetry/api": "^1.3.0" } }, "sha512-bV7d2OuMpZu2+gAaxUAhzfZ0h3WVZk8ETQUEE3DNSntbTaMpuITjtm8I0rNyHFdm7Ax57K6ty7SgFXlBmOLIvQ=="],- "@opentelemetry/exporter-metrics-otlp-proto": ["@opentelemetry/[email protected]", "", { "dependencies": { "@opentelemetry/core": "2.0.0", "@opentelemetry/exporter-metrics-otlp-http": "0.200.0", "@opentelemetry/otlp-exporter-base": "0.200.0", "@opentelemetry/otlp-transformer": "0.200.0", "@opentelemetry/resources": "2.0.0", "@opentelemetry/sdk-metrics": "2.0.0" }, "peerDependencies": { "@opentelemetry/api": "^1.3.0" } }, "sha512-E+uPj0yyvz81U9pvLZp3oHtFrEzNSqKGVkIViTQY1rH3TOobeJPSpLnTVXACnCwkPR5XeTvPnK3pZ2Kni8AFMg=="],+ "@opentelemetry/exporter-metrics-otlp-proto": ["@opentelemetry/[email protected]", "", { "dependencies": { "@opentelemetry/core": "2.7.1", "@opentelemetry/exporter-metrics-otlp-http": "0.218.0", "@opentelemetry/otlp-exporter-base": "0.218.0", "@opentelemetry/otlp-transformer": "0.218.0", "@opentelemetry/resources": "2.7.1", "@opentelemetry/sdk-metrics": "2.7.1" }, "peerDependencies": { "@opentelemetry/api": "^1.3.0" } }, "sha512-ubLddKjWULhla9YZRCj/rTBeppjJYE4e9w0icx5mTu3eFhWjQzbV75NYjXuIlEG+NJsBl6d+sTFw5Qu+oej4oQ=="],- "@opentelemetry/exporter-prometheus": ["@opentelemetry/[email protected]", "", { "dependencies": { "@opentelemetry/core": "2.0.0", "@opentelemetry/resources": "2.0.0", "@opentelemetry/sdk-metrics": "2.0.0" }, "peerDependencies": { "@opentelemetry/api": "^1.3.0" } }, "sha512-ZYdlU9r0USuuYppiDyU2VFRA0kFl855ylnb3N/2aOlXrbA4PMCznen7gmPbetGQu7pz8Jbaf4fwvrDnVdQQXSw=="],+ "@opentelemetry/exporter-prometheus": ["@opentelemetry/[email protected]", "", { "dependencies": { "@opentelemetry/core": "2.7.1", "@opentelemetry/resources": "2.7.1", "@opentelemetry/sdk-metrics": "2.7.1", "@opentelemetry/semantic-conventions": "^1.29.0" }, "peerDependencies": { "@opentelemetry/api": "^1.3.0" } }, "sha512-RT5oEyu1kddZJ1vt7/BUo5wV+P7hpNAESsR3dUd3+8deHuX7gWNoCOZn+SfDT+hJHlIJ5h/AxiCLXIrutswDJg=="],- "@opentelemetry/exporter-trace-otlp-grpc": ["@opentelemetry/[email protected]", "", { "dependencies": { "@grpc/grpc-js": "^1.7.1", "@opentelemetry/core": "2.0.0", "@opentelemetry/otlp-exporter-base": "0.200.0", "@opentelemetry/otlp-grpc-exporter-base": "0.200.0", "@opentelemetry/otlp-transformer": "0.200.0", "@opentelemetry/resources": "2.0.0", "@opentelemetry/sdk-trace-base": "2.0.0" }, "peerDependencies": { "@opentelemetry/api": "^1.3.0" } }, "sha512-hmeZrUkFl1YMsgukSuHCFPYeF9df0hHoKeHUthRKFCxiURs+GwF1VuabuHmBMZnjTbsuvNjOB+JSs37Csem/5Q=="],+ "@opentelemetry/exporter-trace-otlp-grpc": ["@opentelemetry/[email protected]", "", { "dependencies": { "@grpc/grpc-js": "^1.14.3", "@opentelemetry/core": "2.7.1", "@opentelemetry/otlp-exporter-base": "0.218.0", "@opentelemetry/otlp-grpc-exporter-base": "0.218.0", "@opentelemetry/otlp-transformer": "0.218.0", "@opentelemetry/resources": "2.7.1", "@opentelemetry/sdk-trace-base": "2.7.1" }, "peerDependencies": { "@opentelemetry/api": "^1.3.0" } }, "sha512-3fXxVQEj9TNAFaCi79JeFKfeLd0sDtInaR3gaZDVlzNSPHtz8PZuCV34JKWjD4XXzT20IdMe8IpX6mRVNDA4Tw=="],- "@opentelemetry/exporter-trace-otlp-http": ["@opentelemetry/[email protected]", "", { "dependencies": { "@opentelemetry/core": "2.0.0", "@opentelemetry/otlp-exporter-base": "0.200.0", "@opentelemetry/otlp-transformer": "0.200.0", "@opentelemetry/resources": "2.0.0", "@opentelemetry/sdk-trace-base": "2.0.0" }, "peerDependencies": { "@opentelemetry/api": "^1.3.0" } }, "sha512-Goi//m/7ZHeUedxTGVmEzH19NgqJY+Bzr6zXo1Rni1+hwqaksEyJ44gdlEMREu6dzX1DlAaH/qSykSVzdrdafA=="],+ "@opentelemetry/exporter-trace-otlp-http": ["@opentelemetry/[email protected]", "", { "dependencies": { "@opentelemetry/core": "2.7.1", "@opentelemetry/otlp-exporter-base": "0.218.0", "@opentelemetry/otlp-transformer": "0.218.0", "@opentelemetry/resources": "2.7.1", "@opentelemetry/sdk-trace-base": "2.7.1" }, "peerDependencies": { "@opentelemetry/api": "^1.3.0" } }, "sha512-8dqezsmPhtKitIK/eTipZhYl9EX2/gNQ5zUMhaz3uxEURwfkNf8IPvo6yNfrzbxdtpAOybS/+h7wmIWYqFSpiw=="],- "@opentelemetry/exporter-trace-otlp-proto": ["@opentelemetry/[email protected]", "", { "dependencies": { "@opentelemetry/core": "2.0.0", "@opentelemetry/otlp-exporter-base": "0.200.0", "@opentelemetry/otlp-transformer": "0.200.0", "@opentelemetry/resources": "2.0.0", "@opentelemetry/sdk-trace-base": "2.0.0" }, "peerDependencies": { "@opentelemetry/api": "^1.3.0" } }, "sha512-V9TDSD3PjK1OREw2iT9TUTzNYEVWJk4Nhodzhp9eiz4onDMYmPy3LaGbPv81yIR6dUb/hNp/SIhpiCHwFUq2Vg=="],+ "@opentelemetry/exporter-trace-otlp-proto": ["@opentelemetry/[email protected]", "", { "dependencies": { "@opentelemetry/core": "2.7.1", "@opentelemetry/otlp-exporter-base": "0.218.0", "@opentelemetry/otlp-transformer": "0.218.0", "@opentelemetry/resources": "2.7.1", "@opentelemetry/sdk-trace-base": "2.7.1" }, "peerDependencies": { "@opentelemetry/api": "^1.3.0" } }, "sha512-r1Msf8SNLRmwh9J6XQ5uh82D7CdDWMNHnPB7LAVHjzut0TkSeKc5KcIvr4SvHvfk/xwN5gxC+VLKQ1k0o8PSPw=="],- "@opentelemetry/exporter-zipkin": ["@opentelemetry/[email protected]", "", { "dependencies": { "@opentelemetry/core": "2.0.0", "@opentelemetry/resources": "2.0.0", "@opentelemetry/sdk-trace-base": "2.0.0", "@opentelemetry/semantic-conventions": "^1.29.0" }, "peerDependencies": { "@opentelemetry/api": "^1.0.0" } }, "sha512-icxaKZ+jZL/NHXX8Aru4HGsrdhK0MLcuRXkX5G5IRmCgoRLw+Br6I/nMVozX2xjGGwV7hw2g+4Slj8K7s4HbVg=="],+ "@opentelemetry/exporter-zipkin": ["@opentelemetry/[email protected]", "", { "dependencies": { "@opentelemetry/core": "2.7.1", "@opentelemetry/resources": "2.7.1", "@opentelemetry/sdk-trace-base": "2.7.1", "@opentelemetry/semantic-conventions": "^1.29.0" }, "peerDependencies": { "@opentelemetry/api": "^1.0.0" } }, "sha512-mfsD9bKAxcKrh5+y08TPodvClBO0CznBE3p79YAGnO81WI4LrdsGA65T53e4iTSbCalW4WaUpkbeJcbpyIUHfg=="],"@opentelemetry/instrumentation": ["@opentelemetry/[email protected]", "", { "dependencies": { "@opentelemetry/api-logs": "0.200.0", "@types/shimmer": "^1.2.0", "import-in-the-middle": "^1.8.1", "require-in-the-middle": "^7.1.1", "shimmer": "^1.2.1" }, "peerDependencies": { "@opentelemetry/api": "^1.3.0" } }, "sha512-pmPlzfJd+vvgaZd/reMsC8RWgTXn2WY1OWT5RT42m3aOn5532TozwXNDhg1vzqJ+jnvmkREcdLr27ebJEQt0Jg=="],"@opentelemetry/instrumentation-pg": ["@opentelemetry/[email protected]", "", { "dependencies": { "@opentelemetry/core": "^2.0.0", "@opentelemetry/instrumentation": "^0.200.0", "@opentelemetry/semantic-conventions": "^1.27.0", "@opentelemetry/sql-common": "^0.41.0", "@types/pg": "8.6.1", "@types/pg-pool": "2.0.6" }, "peerDependencies": { "@opentelemetry/api": "^1.3.0" } }, "sha512-OBpqlxTqmFkZGHaHV4Pzd95HkyKVS+vf0N5wVX3BSb8uqsvOrW62I1qt+2jNsZ13dtG5eOzvcsQTMGND76wizA=="],- "@opentelemetry/otlp-exporter-base": ["@opentelemetry/[email protected]", "", { "dependencies": { "@opentelemetry/core": "2.0.0", "@opentelemetry/otlp-transformer": "0.200.0" }, "peerDependencies": { "@opentelemetry/api": "^1.3.0" } }, "sha512-IxJgA3FD7q4V6gGq4bnmQM5nTIyMDkoGFGrBrrDjB6onEiq1pafma55V+bHvGYLWvcqbBbRfezr1GED88lacEQ=="],+ "@opentelemetry/otlp-exporter-base": ["@opentelemetry/[email protected]", "", { "dependencies": { "@opentelemetry/core": "2.7.1", "@opentelemetry/otlp-transformer": "0.218.0" }, "peerDependencies": { "@opentelemetry/api": "^1.3.0" } }, "sha512-ZwqpkNL5W7RyGJPDZ9g06DvKp8KFTWPJPN12anpMQYSKpTSU0z3EIZuPq9vPGpS8siFyOqDYDAuCwlNO9FqgbA=="],- "@opentelemetry/otlp-grpc-exporter-base": ["@opentelemetry/[email protected]", "", { "dependencies": { "@grpc/grpc-js": "^1.7.1", "@opentelemetry/core": "2.0.0", "@opentelemetry/otlp-exporter-base": "0.200.0", "@opentelemetry/otlp-transformer": "0.200.0" }, "peerDependencies": { "@opentelemetry/api": "^1.3.0" } }, "sha512-CK2S+bFgOZ66Bsu5hlDeOX6cvW5FVtVjFFbWuaJP0ELxJKBB6HlbLZQ2phqz/uLj1cWap5xJr/PsR3iGoB7Vqw=="],+ "@opentelemetry/otlp-grpc-exporter-base": ["@opentelemetry/[email protected]", "", { "dependencies": { "@grpc/grpc-js": "^1.14.3", "@opentelemetry/core": "2.7.1", "@opentelemetry/otlp-exporter-base": "0.218.0", "@opentelemetry/otlp-transformer": "0.218.0" }, "peerDependencies": { "@opentelemetry/api": "^1.3.0" } }, "sha512-H/lCGJ536N98VpYJOaWTQOkv4Dx6TnmStK6Rqfu1W7KkFbPAx04hjdYEMZF/YbnHzPUSIK4kM6OE2GKGBTpV9A=="],- "@opentelemetry/otlp-transformer": ["@opentelemetry/[email protected]", "", { "dependencies": { "@opentelemetry/api-logs": "0.200.0", "@opentelemetry/core": "2.0.0", "@opentelemetry/resources": "2.0.0", "@opentelemetry/sdk-logs": "0.200.0", "@opentelemetry/sdk-metrics": "2.0.0", "@opentelemetry/sdk-trace-base": "2.0.0", "protobufjs": "^7.3.0" }, "peerDependencies": { "@opentelemetry/api": "^1.3.0" } }, "sha512-+9YDZbYybOnv7sWzebWOeK6gKyt2XE7iarSyBFkwwnP559pEevKOUD8NyDHhRjCSp13ybh9iVXlMfcj/DwF/yw=="],+ "@opentelemetry/otlp-transformer": ["@opentelemetry/[email protected]", "", { "dependencies": { "@opentelemetry/api-logs": "0.218.0", "@opentelemetry/core": "2.7.1", "@opentelemetry/resources": "2.7.1", "@opentelemetry/sdk-logs": "0.218.0", "@opentelemetry/sdk-metrics": "2.7.1", "@opentelemetry/sdk-trace-base": "2.7.1" }, "peerDependencies": { "@opentelemetry/api": "^1.3.0" } }, "sha512-CFaKH87WAzjuJ4awowTTLzUvMfaRfiOFG5+qm5S5ncyalRtN4ecQ+YmuANJSCrVPuvZFEkUgKhBPBndxi3rHsQ=="],- "@opentelemetry/propagator-b3": ["@opentelemetry/[email protected]", "", { "dependencies": { "@opentelemetry/core": "2.0.0" }, "peerDependencies": { "@opentelemetry/api": ">=1.0.0 <1.10.0" } }, "sha512-blx9S2EI49Ycuw6VZq+bkpaIoiJFhsDuvFGhBIoH3vJ5oYjJ2U0s3fAM5jYft99xVIAv6HqoPtlP9gpVA2IZtA=="],+ "@opentelemetry/propagator-b3": ["@opentelemetry/[email protected]", "", { "dependencies": { "@opentelemetry/core": "2.7.1" }, "peerDependencies": { "@opentelemetry/api": ">=1.0.0 <1.10.0" } }, "sha512-RJid6E2CKyeGfKBzXKF21ejabGMHypFkPAh3qZ+NvI+SGjuIye79t3PmiqcDgtRzdKH6ynXzbfslQ8DfpRUg2A=="],- "@opentelemetry/propagator-jaeger": ["@opentelemetry/[email protected]", "", { "dependencies": { "@opentelemetry/core": "2.0.0" }, "peerDependencies": { "@opentelemetry/api": ">=1.0.0 <1.10.0" } }, "sha512-Mbm/LSFyAtQKP0AQah4AfGgsD+vsZcyreZoQ5okFBk33hU7AquU4TltgyL9dvaO8/Zkoud8/0gEvwfOZ5d7EPA=="],+ "@opentelemetry/propagator-jaeger": ["@opentelemetry/[email protected]", "", { "dependencies": { "@opentelemetry/core": "2.7.1" }, "peerDependencies": { "@opentelemetry/api": ">=1.0.0 <1.10.0" } }, "sha512-KMjVBHzP4N60bOzxja76M1F1hZZ43lGPga5ix+mkv9+kk1nx9SbkxSvJsMbuVUxdPQmsPTqGShmhN8ulrMOg6Q=="],"@opentelemetry/resources": ["@opentelemetry/[email protected]", "", { "dependencies": { "@opentelemetry/core": "2.7.1", "@opentelemetry/semantic-conventions": "^1.29.0" }, "peerDependencies": { "@opentelemetry/api": ">=1.3.0 <1.10.0" } }, "sha512-DeT6KKolmC4e/dRQvMQ/RwlnzhaqeiFOXY5ngoOPJ07GgVVKxZOg9EcrNZb5aTzUn+iCrJldAgOfQm1O/QfPAQ=="],- "@opentelemetry/sdk-logs": ["@opentelemetry/[email protected]", "", { "dependencies": { "@opentelemetry/api-logs": "0.200.0", "@opentelemetry/core": "2.0.0", "@opentelemetry/resources": "2.0.0" }, "peerDependencies": { "@opentelemetry/api": ">=1.4.0 <1.10.0" } }, "sha512-VZG870063NLfObmQQNtCVcdXXLzI3vOjjrRENmU37HYiPFa0ZXpXVDsTD02Nh3AT3xYJzQaWKl2X2lQ2l7TWJA=="],+ "@opentelemetry/sdk-logs": ["@opentelemetry/[email protected]", "", { "dependencies": { "@opentelemetry/api-logs": "0.218.0", "@opentelemetry/core": "2.7.1", "@opentelemetry/resources": "2.7.1", "@opentelemetry/semantic-conventions": "^1.29.0" }, "peerDependencies": { "@opentelemetry/api": ">=1.4.0 <1.10.0" } }, "sha512-QvnNdugatFTVCJXH0Mcu7GOOJSylA9j127kIezOE4YwTI4YbowRons2K4WZTv5FMS8T4q9P0NdaRHdkSmeAIag=="],- "@opentelemetry/sdk-metrics": ["@opentelemetry/[email protected]", "", { "dependencies": { "@opentelemetry/core": "2.0.0", "@opentelemetry/resources": "2.0.0" }, "peerDependencies": { "@opentelemetry/api": ">=1.9.0 <1.10.0" } }, "sha512-Bvy8QDjO05umd0+j+gDeWcTaVa1/R2lDj/eOvjzpm8VQj1K1vVZJuyjThpV5/lSHyYW2JaHF2IQ7Z8twJFAhjA=="],+ "@opentelemetry/sdk-metrics": ["@opentelemetry/[email protected]", "", { "dependencies": { "@opentelemetry/core": "2.7.1", "@opentelemetry/resources": "2.7.1" }, "peerDependencies": { "@opentelemetry/api": ">=1.9.0 <1.10.0" } }, "sha512-MpDJdkiFDs3Pm1RHO3KByuZbuBdJEXEAkiC0+yJdsZGVCdf1RpHR6n+LHDcS7ffmfrt5kVCzJSCfm4z2C7v0uQ=="],- "@opentelemetry/sdk-node": ["@opentelemetry/[email protected]", "", { "dependencies": { "@opentelemetry/api-logs": "0.200.0", "@opentelemetry/core": "2.0.0", "@opentelemetry/exporter-logs-otlp-grpc": "0.200.0", "@opentelemetry/exporter-logs-otlp-http": "0.200.0", "@opentelemetry/exporter-logs-otlp-proto": "0.200.0", "@opentelemetry/exporter-metrics-otlp-grpc": "0.200.0", "@opentelemetry/exporter-metrics-otlp-http": "0.200.0", "@opentelemetry/exporter-metrics-otlp-proto": "0.200.0", "@opentelemetry/exporter-prometheus": "0.200.0", "@opentelemetry/exporter-trace-otlp-grpc": "0.200.0", "@opentelemetry/exporter-trace-otlp-http": "0.200.0", "@opentelemetry/exporter-trace-otlp-proto": "0.200.0", "@opentelemetry/exporter-zipkin": "2.0.0", "@opentelemetry/instrumentation": "0.200.0", "@opentelemetry/propagator-b3": "2.0.0", "@opentelemetry/propagator-jaeger": "2.0.0", "@opentelemetry/resources": "2.0.0", "@opentelemetry/sdk-logs": "0.200.0", "@opentelemetry/sdk-metrics": "2.0.0", "@opentelemetry/sdk-trace-base": "2.0.0", "@opentelemetry/sdk-trace-node": "2.0.0", "@opentelemetry/semantic-conventions": "^1.29.0" }, "peerDependencies": { "@opentelemetry/api": ">=1.3.0 <1.10.0" } }, "sha512-S/YSy9GIswnhYoDor1RusNkmRughipvTCOQrlF1dzI70yQaf68qgf5WMnzUxdlCl3/et/pvaO75xfPfuEmCK5A=="],+ "@opentelemetry/sdk-node": ["@opentelemetry/[email protected]", "", { "dependencies": { "@opentelemetry/api-logs": "0.218.0", "@opentelemetry/configuration": "0.218.0", "@opentelemetry/context-async-hooks": "2.7.1", "@opentelemetry/core": "2.7.1", "@opentelemetry/exporter-logs-otlp-grpc": "0.218.0", "@opentelemetry/exporter-logs-otlp-http": "0.218.0", "@opentelemetry/exporter-logs-otlp-proto": "0.218.0", "@opentelemetry/exporter-metrics-otlp-grpc": "0.218.0", "@opentelemetry/exporter-metrics-otlp-http": "0.218.0", "@opentelemetry/exporter-metrics-otlp-proto": "0.218.0", "@opentelemetry/exporter-prometheus": "0.218.0", "@opentelemetry/exporter-trace-otlp-grpc": "0.218.0", "@opentelemetry/exporter-trace-otlp-http": "0.218.0", "@opentelemetry/exporter-trace-otlp-proto": "0.218.0", "@opentelemetry/exporter-zipkin": "2.7.1", "@opentelemetry/instrumentation": "0.218.0", "@opentelemetry/otlp-exporter-base": "0.218.0", "@opentelemetry/propagator-b3": "2.7.1", "@opentelemetry/propagator-jaeger": "2.7.1", "@opentelemetry/resources": "2.7.1", "@opentelemetry/sdk-logs": "0.218.0", "@opentelemetry/sdk-metrics": "2.7.1", "@opentelemetry/sdk-trace-base": "2.7.1", "@opentelemetry/sdk-trace-node": "2.7.1", "@opentelemetry/semantic-conventions": "^1.29.0" }, "peerDependencies": { "@opentelemetry/api": ">=1.3.0 <1.10.0" } }, "sha512-tPMjHrLV5gsfNdYqoRHjeGbCAZBXXD9c1Qo/2ut7VwnUABDNh76xNxrT0SEhkIIJuCN45bbN1vZnYL1gY0IkOg=="],- "@opentelemetry/sdk-trace-base": ["@opentelemetry/[email protected]", "", { "dependencies": { "@opentelemetry/core": "2.0.0", "@opentelemetry/resources": "2.0.0", "@opentelemetry/semantic-conventions": "^1.29.0" }, "peerDependencies": { "@opentelemetry/api": ">=1.3.0 <1.10.0" } }, "sha512-qQnYdX+ZCkonM7tA5iU4fSRsVxbFGml8jbxOgipRGMFHKaXKHQ30js03rTobYjKjIfnOsZSbHKWF0/0v0OQGfw=="],+ "@opentelemetry/sdk-trace-base": ["@opentelemetry/[email protected]", "", { "dependencies": { "@opentelemetry/core": "2.7.1", "@opentelemetry/resources": "2.7.1", "@opentelemetry/semantic-conventions": "^1.29.0" }, "peerDependencies": { "@opentelemetry/api": ">=1.3.0 <1.10.0" } }, "sha512-NAYIlsF8MPUsKqJMiDQJTMPOmlbawC1Iz/omMLygZ1C9am8fTKYjTaI+OZM+WTY3t3Glo0wnOg/6/pac6RGPPw=="],"@opentelemetry/sdk-trace-node": ["@opentelemetry/[email protected]", "", { "dependencies": { "@opentelemetry/context-async-hooks": "2.7.1", "@opentelemetry/core": "2.7.1", "@opentelemetry/sdk-trace-base": "2.7.1" }, "peerDependencies": { "@opentelemetry/api": ">=1.0.0 <1.10.0" } }, "sha512-pCpQxU68lV+I9s9svqMyVu5iHdDDUnqUpSxqwyCU8A9ejEsSnMPCbearwsUO4yk08ZJzAIUCFuReMdVQvHrdvg=="],@@ -1337,8 +1344,6 @@"@pkgr/core": ["@pkgr/[email protected]", "", {}, "sha512-QNqXyfVS2wm9hweSYD2O7F0G06uurj9kZ96TRQE5Y9hU7+tgdZwIkbAKc5Ocy1HxEY2kuDQa6cQ1WRs/O5LFKA=="],- "@playwright/test": ["@playwright/[email protected]", "", { "dependencies": { "playwright": "1.60.0" }, "bin": { "playwright": "cli.js" } }, "sha512-O71yZIbAh/PxDMNGns37GHBIfrVkEVyn+AXyIa5dOTfb4/xNvRWV+Vv/NMbNCtODB/pO7vLlF2OTmMVLhmr7Ag=="],-"@posthog/core": ["@posthog/[email protected]", "", { "dependencies": { "@posthog/types": "1.376.1" } }, "sha512-j4wa+E8z3dNM7tEb/tvUjEw7hHQQzHy4K/WRwwBwWdsOfOYRsLmnz15r4Men6ZQNIKyMUkK2RanWwptdGT4oIg=="],"@posthog/types": ["@posthog/[email protected]", "", {}, "sha512-aat3Fvb7sbBpA6DSaNp7Vy3IAL2j28wkg/AVgYSwxX9Fae0K2W42DWQpNpUS4HSFcJb7RpC5XJboKddpVDXfQw=="],@@ -1665,8 +1670,6 @@"@types/cors": ["@types/[email protected]", "", { "dependencies": { "@types/node": "*" } }, "sha512-mFNylyeyqN93lfe/9CSxOGREz8cpzAhH+E93xJ4xWQf62V8sQ/24reV2nyzUWM6H6Xji+GGHpkbLe7pVoUEskg=="],- "@types/cross-spawn": ["@types/[email protected]", "", { "dependencies": { "@types/node": "*" } }, "sha512-fXRhhUkG4H3TQk5dBhQ7m/JDdSNHKwR2BBia62lhwEIq9xGiQKLxd6LymNhn47SjXhsUEPmxi+PKw2OkW4LLjA=="],-"@types/estree": ["@types/[email protected]", "", {}, "sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg=="],"@types/express": ["@types/[email protected]", "", { "dependencies": { "@types/body-parser": "*", "@types/express-serve-static-core": "^4.17.33", "@types/qs": "*", "@types/serve-static": "^1" } }, "sha512-dVd04UKsfpINUnK0yBoYHDF3xu7xVH4BuDotC/xGuycx4CgbP48X/KF/586bcObxT0HENHXEU8Nqtu6NR+eKhw=="],@@ -2065,6 +2068,8 @@"create-jest": ["[email protected]", "", { "dependencies": { "@jest/types": "^29.6.3", "chalk": "^4.0.0", "exit": "^0.1.2", "graceful-fs": "^4.2.9", "jest-config": "^29.7.0", "jest-util": "^29.7.0", "prompts": "^2.0.1" }, "bin": { "create-jest": "bin/create-jest.js" } }, "sha512-Adz2bdH0Vq3F53KEMJOoftQFutWCukm6J24wbPWRO4k1kMY7gS7ds/uoJkNuV8wDCtWWnuwGcJwpWcih+zEW1Q=="],+ "create-mercur-app": ["create-mercur-app@workspace:packages/create-mercur-app"],+"create-require": ["[email protected]", "", {}, "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ=="],"cron-parser": ["[email protected]", "", { "dependencies": { "luxon": "^3.2.1" } }, "sha512-p0SaNjrHOnQeR8/VnfGbmg9te2kfyYSQ7Sc/j/6DtPL3JQvKxmjO9TSjNFpujqV3vEYYBvNNvXSxzyksBWAx1Q=="],@@ -2251,7 +2256,7 @@"fb-watchman": ["[email protected]", "", { "dependencies": { "bser": "2.1.1" } }, "sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA=="],- "fdir": ["[email protected]", "", { "peerDependencies": { "picomatch": "3.x" }, "optionalPeers": ["picomatch"] }, "sha512-QfKBVg453Dyn3mr0Q0O+Tkr1r79lOTAKSi9f/Ot4+qVEwxWhav2Z+SudrG9vQjM2aYRMQQZ2/Q1zdA8ACM1pDg=="],+ "fdir": ["[email protected]", "", { "peerDependencies": { "picomatch": "^3 || ^4" }, "optionalPeers": ["picomatch"] }, "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg=="],"fecha": ["[email protected]", "", {}, "sha512-OP2IUU6HeYKJi3i0z4A19kHMQoLVs4Hc+DPqqxI2h/DPZHTm/vjsfC6P0b4jCMy14XizLBqvndQ+UilD7707Jw=="],@@ -2325,7 +2330,7 @@"getopts": ["[email protected]", "", {}, "sha512-5eDf9fuSXwxBL6q5HX+dhDj+dslFGWzU5thZ9kNKUkcPtaPdatmUFKwHFrLb/uf/WpA4BHET+AX3Scl56cAjpA=="],- "glob": ["[email protected]", "", { "dependencies": { "foreground-child": "^3.3.1", "jackspeak": "^4.1.1", "minimatch": "^10.1.1", "minipass": "^7.1.2", "package-json-from-dist": "^1.0.0", "path-scurry": "^2.0.0" }, "bin": { "glob": "dist/esm/bin.mjs" } }, "sha512-vuNwKSaKiqm7g0THUBu2x7ckSs3XJLXE+2ssL7/MfTGPLLcrJQ/4Uq1CjPTtO5cCIiRxqvN6Twy1qOwhL0Xjcw=="],+ "glob": ["[email protected]", "", { "dependencies": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", "inherits": "2", "minimatch": "^3.1.1", "once": "^1.3.0", "path-is-absolute": "^1.0.0" } }, "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q=="],"glob-parent": ["[email protected]", "", { "dependencies": { "is-glob": "^4.0.3" } }, "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A=="],@@ -2361,7 +2366,7 @@"html-parse-stringify": ["[email protected]", "", { "dependencies": { "void-elements": "3.1.0" } }, "sha512-KknJ50kTInJ7qIScF3jeaFRpMpE8/lfiTdzf/twXyPBLAGrLRTmkz3AdTnKeh40X8k9L2fdYwEp/42WGXIRGcg=="],- "http-errors": ["[email protected]", "", { "dependencies": { "depd": "~2.0.0", "inherits": "~2.0.4", "setprototypeof": "~1.2.0", "statuses": "~2.0.2", "toidentifier": "~1.0.1" } }, "sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ=="],+ "http-errors": ["[email protected]", "", { "dependencies": { "depd": "2.0.0", "inherits": "2.0.4", "setprototypeof": "1.2.0", "statuses": "2.0.1", "toidentifier": "1.0.1" } }, "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ=="],"http-proxy": ["[email protected]", "", { "dependencies": { "eventemitter3": "^4.0.0", "follow-redirects": "^1.0.0", "requires-port": "^1.0.0" } }, "sha512-7mz/721AbnJwIVbnaSv1Cz3Am0ZLT/UBwkC92VlxhXv/k/BBQfM2fXElQNC27BVGr0uwUpplYPQM9LnaBMR5NQ=="],@@ -2473,7 +2478,7 @@"is-windows": ["[email protected]", "", {}, "sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA=="],- "is-wsl": ["[email protected]", "", { "dependencies": { "is-inside-container": "^1.0.0" } }, "sha512-e6rvdUCiQCAuumZslxRJWR/Doq4VpPR82kqclvcS0efgt430SlGIk05vdCN58+VrzgtIcfNODjozVielycD4Sw=="],+ "is-wsl": ["[email protected]", "", { "dependencies": { "is-docker": "^2.0.0" } }, "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww=="],"isexe": ["[email protected]", "", {}, "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw=="],@@ -2487,7 +2492,7 @@"istanbul-reports": ["[email protected]", "", { "dependencies": { "html-escaper": "^2.0.0", "istanbul-lib-report": "^3.0.0" } }, "sha512-HGYWWS/ehqTV3xN10i23tkPkpH46MLCIMFNCaaKNavAXTF1RkqxawEPtnjnGZ6XKSInBKkiOA5BKS+aZiY3AvA=="],- "jackspeak": ["[email protected]", "", { "dependencies": { "@isaacs/cliui": "^9.0.0" } }, "sha512-ykkVRwrYvFm1nb2AJfKKYPr0emF6IiXDYUaFx4Zn9ZuIH7MrzEZ3sD5RlqGXNRpHtvUHJyOnCEFxOlNDtGo7wg=="],+ "jackspeak": ["[email protected]", "", { "dependencies": { "@isaacs/cliui": "^8.0.2" }, "optionalDependencies": { "@pkgjs/parseargs": "^0.11.0" } }, "sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw=="],"jest": ["[email protected]", "", { "dependencies": { "@jest/core": "^29.7.0", "@jest/types": "^29.6.3", "import-local": "^3.0.2", "jest-cli": "^29.7.0" }, "peerDependencies": { "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" }, "optionalPeers": ["node-notifier"], "bin": { "jest": "bin/jest.js" } }, "sha512-NIy3oAFp9shda19hy4HK0HRTWKtPJmGdnvywu01nOqNC2vZg+Z+fvJDxpMQA88eb2I9EcafcdjYgsDthnYTvGw=="],@@ -2547,6 +2552,8 @@"joi": ["[email protected]", "", { "dependencies": { "@hapi/address": "^5.1.1", "@hapi/formula": "^3.0.2", "@hapi/hoek": "^11.0.7", "@hapi/pinpoint": "^2.0.1", "@hapi/tlds": "^1.1.1", "@hapi/topo": "^6.0.2", "@standard-schema/spec": "^1.1.0" } }, "sha512-2/OKlogiESf2Nh3TFCrRjrr9z1DRHeW0I+KReF67+4J0Ns+8hBtHRmoWAZ2OFU6I5+TWLEe6sVlSdXPjHm5UbQ=="],+ "jose": ["[email protected]", "", {}, "sha512-1vUQX+IdDMVPj4k8kOxgUqlcK518yluMuGZwqlr44FS1ppZB/5GWh4rZG89erpOBOJjU/OBsnCVFfapsRz6nEA=="],+"joycon": ["[email protected]", "", {}, "sha512-34wB/Y7MW7bzjKRjUKTa46I2Z7eV62Rkhva+KkopW7Qvv/OSWBqvkSY7vusOPrNuZcUG3tApvdVgNB8POj3SPw=="],"js-tokens": ["[email protected]", "", {}, "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ=="],@@ -2575,13 +2582,15 @@"jwa": ["[email protected]", "", { "dependencies": { "buffer-equal-constant-time": "^1.0.1", "ecdsa-sig-formatter": "1.0.11", "safe-buffer": "^5.0.1" } }, "sha512-eeH5JO+21J78qMvTIDdBXidBd6nG2kZjg5Ohz/1fpa28Z4CcsWUzJ1ZZyFq/3z3N17aZy+ZuBoHljASbL1WfOw=="],+ "jwks-rsa": ["[email protected]", "", { "dependencies": { "@types/jsonwebtoken": "^9.0.4", "debug": "^4.3.4", "jose": "^4.15.4", "limiter": "^1.1.5", "lru-memoizer": "^2.2.0" } }, "sha512-BqTyEDV+lS8F2trk3A+qJnxV5Q9EqKCBJOPti3W97r7qTympCZjb7h2X6f2kc+0K3rsSTY1/6YG2eaXKoj497w=="],+"jws": ["[email protected]", "", { "dependencies": { "jwa": "^1.4.2", "safe-buffer": "^5.0.1" } }, "sha512-byiJ0FLRdLdSVSReO/U4E7RoEyOCKnEnEPMjq3HxWtvzLsV08/i5RQKsFVNkCldrCaPr2vDNAOMsfs8T/Hze7g=="],"keyv": ["[email protected]", "", { "dependencies": { "json-buffer": "3.0.1" } }, "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw=="],"kleur": ["[email protected]", "", {}, "sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ=="],- "knex": ["[email protected]", "", { "dependencies": { "colorette": "2.0.19", "commander": "^10.0.0", "debug": "4.3.4", "escalade": "^3.1.1", "esm": "^3.2.25", "get-package-type": "^0.1.0", "getopts": "2.3.0", "interpret": "^2.2.0", "lodash": "^4.17.21", "pg-connection-string": "2.6.2", "rechoir": "^0.8.0", "resolve-from": "^5.0.0", "tarn": "^3.0.2", "tildify": "2.0.0" }, "peerDependencies": { "pg-query-stream": "^4.14.0" }, "optionalPeers": ["pg-query-stream"], "bin": { "knex": "bin/cli.js" } }, "sha512-ElXXxu9Nq+5hWYdBUddYIWIT5yKKs5KNCsmKGbJSHPyaMpAABp3xs4L55GgdQoAs6QQ7dv72ai3M4pxYQ8utEg=="],+ "knex": ["[email protected]", "", { "dependencies": { "colorette": "2.0.19", "commander": "^10.0.0", "debug": "4.3.4", "escalade": "^3.1.1", "esm": "^3.2.25", "get-package-type": "^0.1.0", "getopts": "2.3.0", "interpret": "^2.2.0", "lodash": "^4.18.1", "pg-connection-string": "2.6.2", "rechoir": "^0.8.0", "resolve-from": "^5.0.0", "tarn": "^3.0.2", "tildify": "2.0.0" }, "peerDependencies": { "pg-query-stream": "^4.14.0" }, "optionalPeers": ["pg-query-stream"], "bin": { "knex": "bin/cli.js" } }, "sha512-oypTHfrc9i72iyxaUQBKHOxhcr0xM65MPf6FpN02nimsftXwzXprIkLjfXdubvhbu4PMWLp023q8o8CYvHSuZw=="],"kuler": ["[email protected]", "", {}, "sha512-Xq9nH7KlWZmXAtodXDDRE7vs6DU1gTU8zYDHDiWLSip45Egwq3plLHzPn27NgvzL2r1LMPC1vdqh98sQxtqj4A=="],@@ -2591,6 +2600,8 @@"lilconfig": ["[email protected]", "", {}, "sha512-/vlFKAoH5Cgt3Ie+JLhRbwOsCQePABiU3tJ1egGvyQ+33R/vcwM2Zl2QR/LzjsBeItPt3oSVXapn+m4nQDvpzw=="],+ "limiter": ["[email protected]", "", {}, "sha512-FWWMIEOxz3GwUI4Ts/IvgVy6LPvoMPgjMdQ185nN6psJyBJ4yOpzqm695/h5umdLJg2vW3GR5iG11MAkR2AzJA=="],+"lines-and-columns": ["[email protected]", "", {}, "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg=="],"load-tsconfig": ["[email protected]", "", {}, "sha512-IXO6OCs9yg8tMKzfPZ1YmheJbZCiEsnBdcB03l0OcfK9prKnJb96siuHCr5Fl37/yo9DnKU+TLpxzTUspw9shg=="],@@ -2601,6 +2612,8 @@"lodash.camelcase": ["[email protected]", "", {}, "sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA=="],+ "lodash.clonedeep": ["[email protected]", "", {}, "sha512-H5ZhCF25riFd9uB5UCkVKo61m3S/xZk1x4wA6yp/L3RFP6Z/eHH1ymQcGLo7J3GMPfm0V/7m1tryHuGVxpqEBQ=="],+"lodash.debounce": ["[email protected]", "", {}, "sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow=="],"lodash.defaults": ["[email protected]", "", {}, "sha512-qjxPLHd3r5DnsdGacqOMU6pb/avJzdh9tFX2ymgoZE27BmjXrNy/y4LoaiTeAb+O3gL8AfpJGtqfX/ae2leYYQ=="],@@ -2643,9 +2656,11 @@"lru-cache": ["[email protected]", "", { "dependencies": { "yallist": "^4.0.0" } }, "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA=="],+ "lru-memoizer": ["[email protected]", "", { "dependencies": { "lodash.clonedeep": "^4.5.0", "lru-cache": "6.0.0" } }, "sha512-GXn7gyHAMhO13WSKrIiNfztwxodVsP8IoZ3XfrJV4yH2x0/OeTO/FIaAHTY5YekdGgW94njfuKmyyt1E0mR6Ug=="],+"luxon": ["[email protected]", "", {}, "sha512-vtEhXh/gNjI9Yg1u4jX/0YVPMvxzHuGgCm6tC5kZyb08yjGWGnqAjGJvcXbqQR2P3MyMEFnRbpcdFS6PBcLqew=="],- "magic-string": ["[email protected]", "", { "dependencies": { "@jridgewell/sourcemap-codec": "^1.4.15" } }, "sha512-7xlpfBaQaP/T6Vh8MO/EqXSW5En6INHEvEXQiuff7Gku0PWjU3uf6w/j9o7O+SpB5fOAkrI5HeoNgwjEO0pFsA=="],+ "magic-string": ["[email protected]", "", { "dependencies": { "@jridgewell/sourcemap-codec": "^1.5.5" } }, "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ=="],"make-dir": ["[email protected]", "", { "dependencies": { "semver": "^6.0.0" } }, "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw=="],@@ -2675,7 +2690,7 @@"micromatch": ["[email protected]", "", { "dependencies": { "braces": "^3.0.3", "picomatch": "^2.3.1" } }, "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA=="],- "mikro-orm": ["[email protected]", "", {}, "sha512-gT1Qxpsa0NC8qZKodo5u54DzuaMJrCbN1GIpOfgADkCg9eru9LdMhFBIWIB7qKe5W2WFZCGPSxAa9LsSPB2W4Q=="],+ "mikro-orm": ["[email protected]", "", {}, "sha512-SRVEqIrANwlVwZxJUoSXHgpzGgSpaoOiG7XrnYlh7TYehbJRbxE3xIhJNdNw0t7FIItixFUvLnD6A20bvLnUNw=="],"mime": ["[email protected]", "", { "bin": { "mime": "cli.js" } }, "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg=="],@@ -2873,10 +2888,6 @@"pkg-types": ["[email protected]", "", { "dependencies": { "confbox": "^0.1.8", "mlly": "^1.7.4", "pathe": "^2.0.1" } }, "sha512-/Jm5M4RvtBFVkKWRu2BLUTNP8/M2a+UwuAX+ae4770q1qVGtfjG+WTCupoZixokjmHiry8uI+dlY8KXYV5HVVQ=="],- "playwright": ["[email protected]", "", { "dependencies": { "playwright-core": "1.60.0" }, "optionalDependencies": { "fsevents": "2.3.2" }, "bin": { "playwright": "cli.js" } }, "sha512-hheHdokM8cdqCb0lcE3s+zT4t4W+vvjpGxsZlDnikarzx8tSzMebh3UiFtgqwFwnTnjYQcsyMF8ei2mCO/tpeA=="],-- "playwright-core": ["[email protected]", "", { "bin": { "playwright-core": "cli.js" } }, "sha512-9bW6zvX/m0lEbgTKJ6YppOKx8H3VOPBMOCFh2irXFOT4BbHgrx5hPjwJYLT40Lu+4qtD36qKc/Hn56StUW57IA=="],-"pluralize": ["[email protected]", "", {}, "sha512-Nc3IT5yHzflTfbjgqWcCPpo7DaKy4FnpB0l/zCAW0Tc7jxAiuqSxHasntB3D7887LSrA93kDJ9IXovxJYxyLCA=="],"pngjs": ["[email protected]", "", {}, "sha512-40QW5YalBNfQo5yRYmiw7Yz6TKKVr3h6970B2YE+3fQpsWcrbj1PzJgxeJ19DRQjhMbKPIuMY8rFaXc8moolVw=="],@@ -3217,7 +3228,7 @@"tsconfig-paths": ["[email protected]", "", { "dependencies": { "json5": "^2.2.2", "minimist": "^1.2.6", "strip-bom": "^3.0.0" } }, "sha512-NoZ4roiN7LnbKn9QqE1amc9DJfzvZXxF4xDavcOWt1BPkdx+m+0gJuPM+S0vCe7zTJMYUP0R8pO2XMr+Y8oLIg=="],- "tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],+ "tslib": ["[email protected]", "", {}, "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg=="],"tsup": ["[email protected]", "", { "dependencies": { "bundle-require": "^5.1.0", "cac": "^6.7.14", "chokidar": "^4.0.3", "consola": "^3.4.0", "debug": "^4.4.0", "esbuild": "^0.27.0", "fix-dts-default-cjs-exports": "^1.0.0", "joycon": "^3.1.1", "picocolors": "^1.1.1", "postcss-load-config": "^6.0.1", "resolve-from": "^5.0.0", "rollup": "^4.34.8", "source-map": "^0.7.6", "sucrase": "^3.35.0", "tinyexec": "^0.3.2", "tinyglobby": "^0.2.11", "tree-kill": "^1.2.2" }, "peerDependencies": { "@microsoft/api-extractor": "^7.36.0", "@swc/core": "^1", "postcss": "^8.4.12", "typescript": ">=4.5.0" }, "optionalPeers": ["@microsoft/api-extractor", "@swc/core", "postcss", "typescript"], "bin": { "tsup": "dist/cli-default.js", "tsup-node": "dist/cli-node.js" } }, "sha512-xtgkqwdhpKWr3tKPmCkvYmS9xnQK3m3XgxZHwSUjvfTjp7YfXe5tT3GgWi0F2N+ZSMsOeWeZFh7ZZFg5iPhing=="],@@ -3281,7 +3292,7 @@"utils-merge": ["[email protected]", "", {}, "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA=="],- "uuid": ["[email protected]", "", { "bin": { "uuid": "dist/bin/uuid" } }, "sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA=="],+ "uuid": ["[email protected]", "", { "bin": { "uuid": "dist/esm/bin/uuid" } }, "sha512-vIYxrBCC/N/K+Js3qSN88go7kIfNPssr/hHCesKCQNAjmgvYS2oqr69kIufEG+O4+PfezOH4EbIeHCfFov8ZgQ=="],"v8-compile-cache-lib": ["[email protected]", "", {}, "sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg=="],@@ -3341,6 +3352,8 @@"yallist": ["[email protected]", "", {}, "sha512-YgvUTfwqyc7UXVMrB+SImsVYSmTS8X/tSrtdNZMImM+n7+QTriRXyXim0mBrTXNeqzVF0KWGgHPeiyViFFrNDw=="],+ "yaml": ["[email protected]", "", { "bin": { "yaml": "bin.mjs" } }, "sha512-2AvhNX3mb8zd6Zy7INTtSpl1F15HW6Wnqj0srWlkKLcpYl/gMIMJiyuGq2KeI2YFxUPjdlB+3Lc10seMLtL4cA=="],+"yargs": ["[email protected]", "", { "dependencies": { "cliui": "^7.0.2", "escalade": "^3.1.1", "get-caller-file": "^2.0.5", "require-directory": "^2.1.1", "string-width": "^4.2.0", "y18n": "^5.0.5", "yargs-parser": "^20.2.2" } }, "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw=="],"yargs-parser": ["[email protected]", "", {}, "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w=="],@@ -3365,6 +3378,78 @@"@antfu/ni/tinyexec": ["[email protected]", "", {}, "sha512-M/Q0B2cp4K7kynaT/vnED1j8TlLY+Pp7C6Wl2bl/7u/F0mUVwdyOpwomQb8JpYLitHUssAJRmLZdMCGsrx7i+g=="],+ "@aws-crypto/crc32/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],++ "@aws-crypto/crc32c/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],++ "@aws-crypto/sha1-browser/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],++ "@aws-crypto/sha256-browser/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],++ "@aws-crypto/sha256-js/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],++ "@aws-crypto/supports-web-crypto/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],++ "@aws-crypto/util/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],++ "@aws-sdk/client-dynamodb/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],++ "@aws-sdk/client-s3/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],++ "@aws-sdk/core/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],++ "@aws-sdk/crc64-nvme/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],++ "@aws-sdk/credential-provider-env/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],++ "@aws-sdk/credential-provider-http/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],++ "@aws-sdk/credential-provider-ini/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],++ "@aws-sdk/credential-provider-login/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],++ "@aws-sdk/credential-provider-node/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],++ "@aws-sdk/credential-provider-process/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],++ "@aws-sdk/credential-provider-sso/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],++ "@aws-sdk/credential-provider-web-identity/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],++ "@aws-sdk/dynamodb-codec/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],++ "@aws-sdk/endpoint-cache/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],++ "@aws-sdk/lib-storage/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],++ "@aws-sdk/middleware-bucket-endpoint/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],++ "@aws-sdk/middleware-endpoint-discovery/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],++ "@aws-sdk/middleware-expect-continue/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],++ "@aws-sdk/middleware-flexible-checksums/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],++ "@aws-sdk/middleware-location-constraint/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],++ "@aws-sdk/middleware-sdk-s3/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],++ "@aws-sdk/middleware-ssec/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],++ "@aws-sdk/nested-clients/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],++ "@aws-sdk/s3-request-presigner/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],++ "@aws-sdk/signature-v4-multi-region/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],++ "@aws-sdk/token-providers/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],++ "@aws-sdk/types/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],++ "@aws-sdk/util-locate-window/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],++ "@aws-sdk/xml-builder/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],+"@babel/core/@babel/parser": ["@babel/[email protected]", "", { "dependencies": { "@babel/types": "^7.29.7" }, "bin": "./bin/babel-parser.js" }, "sha512-hnORnjP/1P/zFEndoeX+n+t1RwWRJiJpM/jO7FW32Kn9r5+sJB2JWOdYo4L6k78j15eCwY3Gm/7364B1EMwtNg=="],"@babel/core/@babel/traverse": ["@babel/[email protected]", "", { "dependencies": { "@babel/code-frame": "^7.29.7", "@babel/generator": "^7.29.7", "@babel/helper-globals": "^7.29.7", "@babel/parser": "^7.29.7", "@babel/template": "^7.29.7", "@babel/types": "^7.29.7", "debug": "^4.3.1" } }, "sha512-EhlfNQtZ+NK22w5BM61ciuiq1m58ed33Wr1Xan//ZRTy6hgjnwyCffRYwzsGXdASJSUJ1guZILsErh1eQcl+zw=="],@@ -3397,6 +3482,20 @@"@babel/traverse/globals": ["[email protected]", "", {}, "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA=="],+ "@dnd-kit/accessibility/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],++ "@dnd-kit/core/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],++ "@dnd-kit/sortable/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],++ "@dnd-kit/utilities/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],++ "@emnapi/core/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],++ "@emnapi/runtime/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],++ "@emnapi/wasi-threads/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],+"@eslint-community/eslint-utils/eslint-visitor-keys": ["[email protected]", "", {}, "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag=="],"@eslint/eslintrc/globals": ["[email protected]", "", {}, "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ=="],@@ -3415,10 +3514,20 @@"@graphql-tools/merge/@graphql-tools/utils": ["@graphql-tools/[email protected]", "", { "dependencies": { "@graphql-typed-document-node/core": "^3.1.1", "@whatwg-node/promise-helpers": "^1.0.0", "cross-inspect": "1.0.1", "tslib": "^2.4.0" }, "peerDependencies": { "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" } }, "sha512-PtFVG4r8Z2LEBSaPYQMusBiB3o6kjLVJyjCLbnWem/SpSuM21v6LTmgpkXfYU1qpBV2UGsFyuEnSJInl8fR1Ag=="],+ "@graphql-tools/merge/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],++ "@graphql-tools/optimize/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],+"@graphql-tools/relay-operation-optimizer/@graphql-tools/utils": ["@graphql-tools/[email protected]", "", { "dependencies": { "@graphql-typed-document-node/core": "^3.1.1", "@whatwg-node/promise-helpers": "^1.0.0", "cross-inspect": "1.0.1", "tslib": "^2.4.0" }, "peerDependencies": { "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" } }, "sha512-PtFVG4r8Z2LEBSaPYQMusBiB3o6kjLVJyjCLbnWem/SpSuM21v6LTmgpkXfYU1qpBV2UGsFyuEnSJInl8fR1Ag=="],+ "@graphql-tools/relay-operation-optimizer/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],+"@graphql-tools/schema/@graphql-tools/utils": ["@graphql-tools/[email protected]", "", { "dependencies": { "@graphql-typed-document-node/core": "^3.1.1", "@whatwg-node/promise-helpers": "^1.0.0", "cross-inspect": "1.0.1", "tslib": "^2.4.0" }, "peerDependencies": { "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" } }, "sha512-PtFVG4r8Z2LEBSaPYQMusBiB3o6kjLVJyjCLbnWem/SpSuM21v6LTmgpkXfYU1qpBV2UGsFyuEnSJInl8fR1Ag=="],+ "@graphql-tools/schema/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],++ "@graphql-tools/utils/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],+"@grpc/proto-loader/yargs": ["[email protected]", "", { "dependencies": { "cliui": "^8.0.1", "escalade": "^3.1.1", "get-caller-file": "^2.0.5", "require-directory": "^2.1.1", "string-width": "^4.2.3", "y18n": "^5.0.5", "yargs-parser": "^21.1.1" } }, "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w=="],"@inquirer/checkbox/ansi-escapes": ["[email protected]", "", { "dependencies": { "type-fest": "^0.21.3" } }, "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ=="],@@ -3439,6 +3548,12 @@"@inquirer/type/mute-stream": ["[email protected]", "", {}, "sha512-avsJQhyd+680gKXyG/sQc0nXaC6rBkPOfyHYcFb9+hdkqQkR9bdnkJ0AMZhke0oesPqIO+mFFJ+IdBc7mst4IA=="],+ "@isaacs/cliui/string-width": ["[email protected]", "", { "dependencies": { "eastasianwidth": "^0.2.0", "emoji-regex": "^9.2.2", "strip-ansi": "^7.0.1" } }, "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA=="],++ "@isaacs/cliui/strip-ansi": ["[email protected]", "", { "dependencies": { "ansi-regex": "^6.2.2" } }, "sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w=="],++ "@isaacs/cliui/wrap-ansi": ["[email protected]", "", { "dependencies": { "ansi-styles": "^6.1.0", "string-width": "^5.0.1", "strip-ansi": "^7.0.1" } }, "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ=="],+"@isaacs/fs-minipass/minipass": ["[email protected]", "", {}, "sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A=="],"@istanbuljs/load-nyc-config/camelcase": ["[email protected]", "", {}, "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg=="],@@ -3461,8 +3576,6 @@"@jest/reporters/@jridgewell/trace-mapping": ["@jridgewell/[email protected]", "", { "dependencies": { "@jridgewell/resolve-uri": "^3.1.0", "@jridgewell/sourcemap-codec": "^1.4.14" } }, "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw=="],- "@jest/reporters/glob": ["[email protected]", "", { "dependencies": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", "inherits": "2", "minimatch": "^3.1.1", "once": "^1.3.0", "path-is-absolute": "^1.0.0" } }, "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q=="],-"@jest/reporters/jest-worker": ["[email protected]", "", { "dependencies": { "@types/node": "*", "jest-util": "^29.7.0", "merge-stream": "^2.0.0", "supports-color": "^8.0.0" } }, "sha512-eIz2msL/EzL9UFTFFx7jBTkeZfku0yUAyZZZmJ93H2TYEiroIx2PQjEXcwYtYl8zXCxb+PAmA2hLIt/6ZEkPHw=="],"@jest/snapshot-utils/@jest/types": ["@jest/[email protected]", "", { "dependencies": { "@jest/pattern": "30.4.0", "@jest/schemas": "30.4.1", "@types/istanbul-lib-coverage": "^2.0.6", "@types/istanbul-reports": "^3.0.4", "@types/node": "*", "@types/yargs": "^17.0.33", "chalk": "^4.1.2" } }, "sha512-f1x/vJXIfjOlEmejYpbkbgw1gOqpPECwMvMEtBqe47j7H2Hg8h8w3o3ikhSXq3MI15kg+oQ0exWO0uCtTNJLoQ=="],@@ -3487,6 +3600,10 @@"@medusajs/admin-vite-plugin/chokidar": ["[email protected]", "", { "dependencies": { "anymatch": "~3.1.2", "braces": "~3.0.2", "glob-parent": "~5.1.2", "is-binary-path": "~2.1.0", "is-glob": "~4.0.1", "normalize-path": "~3.0.0", "readdirp": "~3.6.0" }, "optionalDependencies": { "fsevents": "~2.3.2" } }, "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw=="],+ "@medusajs/admin-vite-plugin/fdir": ["[email protected]", "", { "peerDependencies": { "picomatch": "3.x" }, "optionalPeers": ["picomatch"] }, "sha512-QfKBVg453Dyn3mr0Q0O+Tkr1r79lOTAKSi9f/Ot4+qVEwxWhav2Z+SudrG9vQjM2aYRMQQZ2/Q1zdA8ACM1pDg=="],++ "@medusajs/admin-vite-plugin/magic-string": ["[email protected]", "", { "dependencies": { "@jridgewell/sourcemap-codec": "^1.4.15" } }, "sha512-7xlpfBaQaP/T6Vh8MO/EqXSW5En6INHEvEXQiuff7Gku0PWjU3uf6w/j9o7O+SpB5fOAkrI5HeoNgwjEO0pFsA=="],+"@medusajs/cli/execa": ["[email protected]", "", { "dependencies": { "cross-spawn": "^7.0.3", "get-stream": "^6.0.0", "human-signals": "^2.1.0", "is-stream": "^2.0.0", "merge-stream": "^2.0.0", "npm-run-path": "^4.0.1", "onetime": "^5.1.2", "signal-exit": "^3.0.3", "strip-final-newline": "^2.0.0" } }, "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg=="],"@medusajs/cli/glob": ["[email protected]", "", { "dependencies": { "minimatch": "^10.2.2", "minipass": "^7.1.3", "path-scurry": "^2.0.2" } }, "sha512-Wjlyrolmm8uDpm/ogGyXZXb1Z+Ca2B8NbJwqBVg0axK9GbBeoS7yGV6vjXnYdGm6X53iehEuxxbyiKp8QmN4Vw=="],@@ -3497,6 +3614,8 @@"@medusajs/dashboard/react-jwt": ["[email protected]", "", { "optionalDependencies": { "fsevents": "^2.3.2" }, "peerDependencies": { "react": "^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" } }, "sha512-aC+X6q8pi63zoO7A060/4mfF5jM6Ay+4YyY4QgdD8dDOqp89sPcg0IhWEHyPACnVETMjBWzmxMPgIPosQNeYyw=="],+ "@medusajs/dashboard/react-router-dom": ["[email protected]", "", { "dependencies": { "@remix-run/router": "1.23.3", "react-router": "6.30.4" }, "peerDependencies": { "react": ">=16.8", "react-dom": ">=16.8" } }, "sha512-q4HvNl+mmDdkS0g+MqiBZNteQJCuimWoOyHMy4T/RQLAn9Z29+E91QXRaxOujeMl2HTzRSS0KFPd7lxX3PjV0Q=="],+"@medusajs/framework/glob": ["[email protected]", "", { "dependencies": { "minimatch": "^10.2.2", "minipass": "^7.1.3", "path-scurry": "^2.0.2" } }, "sha512-Wjlyrolmm8uDpm/ogGyXZXb1Z+Ca2B8NbJwqBVg0axK9GbBeoS7yGV6vjXnYdGm6X53iehEuxxbyiKp8QmN4Vw=="],"@medusajs/framework/zod-validation-error": ["[email protected]", "", { "peerDependencies": { "zod": "^3.25.0 || ^4.0.0" } }, "sha512-hmk+pkyKq7Q71PiWVSDUc3VfpzpvcRHZ3QPw9yEMVvmtCekaMeOHnbr3WbxfrgEnQTv6haGP4cmv0Ojmihzsxw=="],@@ -3513,8 +3632,6 @@"@mercurjs/dashboard-shared/react-jwt": ["[email protected]", "", { "optionalDependencies": { "fsevents": "^2.3.2" }, "peerDependencies": { "react": "^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" } }, "sha512-aC+X6q8pi63zoO7A060/4mfF5jM6Ay+4YyY4QgdD8dDOqp89sPcg0IhWEHyPACnVETMjBWzmxMPgIPosQNeYyw=="],- "@mercurjs/e2e-tests/@types/node": ["@types/[email protected]", "", { "dependencies": { "undici-types": "~6.21.0" } }, "sha512-ECymXOukMnOoVkC2bb1Vc/w/836DXncOg5m8Xj1RH7xSHZJWNYY6Zh7EH477vcnD5egKNNfy2RpNOmuChhFPgQ=="],-"@mercurjs/integration-tests/@types/node": ["@types/[email protected]", "", { "dependencies": { "undici-types": "~6.21.0" } }, "sha512-ECymXOukMnOoVkC2bb1Vc/w/836DXncOg5m8Xj1RH7xSHZJWNYY6Zh7EH477vcnD5egKNNfy2RpNOmuChhFPgQ=="],"@mercurjs/integration-tests/jest": ["[email protected]", "", { "dependencies": { "@jest/core": "30.4.2", "@jest/types": "30.4.1", "import-local": "^3.2.0", "jest-cli": "30.4.2" }, "peerDependencies": { "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" }, "optionalPeers": ["node-notifier"], "bin": "./bin/jest.js" }, "sha512-Yi1jqNC/Oq0N4hBgNH/YvBpP1P57QqundgytzYqy3yqAa7NZPNjSoi4SGbRAXDMdBzNE6xBCi5U7RgfrvMEUVQ=="],@@ -3547,7 +3664,7 @@"@mikro-orm/postgresql/postgres-interval": ["[email protected]", "", {}, "sha512-EMsphSQ1YkQqKZL2cuG0zHkmjCCzQqQ71l2GXITqRwjhRleCdv00bDk/ktaSi0LnlaPzAc3535KTrjXsTdtx7A=="],- "@oclif/config/is-wsl": ["[email protected]", "", { "dependencies": { "is-docker": "^2.0.0" } }, "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww=="],+ "@oclif/config/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],"@oclif/errors/fs-extra": ["[email protected]", "", { "dependencies": { "graceful-fs": "^4.2.0", "jsonfile": "^4.0.0", "universalify": "^0.1.0" } }, "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g=="],@@ -3557,100 +3674,56 @@"@oclif/help/string-width": ["[email protected]", "", { "dependencies": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", "strip-ansi": "^6.0.1" } }, "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g=="],+ "@oclif/parser/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],+"@oclif/plugin-help/@oclif/config": ["@oclif/[email protected]", "", { "dependencies": { "@oclif/errors": "^1.3.3", "@oclif/parser": "^3.8.0", "debug": "^4.1.1", "globby": "^11.0.1", "is-wsl": "^2.1.1", "tslib": "^2.0.0" } }, "sha512-cE3qfHWv8hGRCP31j7fIS7BfCflm/BNZ2HNqHexH+fDrdF2f1D5S8VmXWLC77ffv3oDvWyvE9AZeR0RfmHCCaA=="],"@oclif/plugin-help/@oclif/errors": ["@oclif/[email protected]", "", { "dependencies": { "clean-stack": "^3.0.0", "fs-extra": "^8.1", "indent-string": "^4.0.0", "strip-ansi": "^6.0.0", "wrap-ansi": "^7.0.0" } }, "sha512-OivucXPH/eLLlOT7FkCMoZXiaVYf8I/w1eTAM1+gKzfhALwWTusxEx7wBmW0uzvkSg/9ovWLycPaBgJbM3LOCQ=="],"@oclif/plugin-help/string-width": ["[email protected]", "", { "dependencies": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", "strip-ansi": "^6.0.1" } }, "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g=="],- "@opentelemetry/exporter-logs-otlp-grpc/@opentelemetry/core": ["@opentelemetry/[email protected]", "", { "dependencies": { "@opentelemetry/semantic-conventions": "^1.29.0" }, "peerDependencies": { "@opentelemetry/api": ">=1.0.0 <1.10.0" } }, "sha512-SLX36allrcnVaPYG3R78F/UZZsBsvbc7lMCLx37LyH5MJ1KAAZ2E3mW9OAD3zGz0G8q/BtoS5VUrjzDydhD6LQ=="],-- "@opentelemetry/exporter-logs-otlp-http/@opentelemetry/core": ["@opentelemetry/[email protected]", "", { "dependencies": { "@opentelemetry/semantic-conventions": "^1.29.0" }, "peerDependencies": { "@opentelemetry/api": ">=1.0.0 <1.10.0" } }, "sha512-SLX36allrcnVaPYG3R78F/UZZsBsvbc7lMCLx37LyH5MJ1KAAZ2E3mW9OAD3zGz0G8q/BtoS5VUrjzDydhD6LQ=="],-- "@opentelemetry/exporter-logs-otlp-proto/@opentelemetry/core": ["@opentelemetry/[email protected]", "", { "dependencies": { "@opentelemetry/semantic-conventions": "^1.29.0" }, "peerDependencies": { "@opentelemetry/api": ">=1.0.0 <1.10.0" } }, "sha512-SLX36allrcnVaPYG3R78F/UZZsBsvbc7lMCLx37LyH5MJ1KAAZ2E3mW9OAD3zGz0G8q/BtoS5VUrjzDydhD6LQ=="],-- "@opentelemetry/exporter-logs-otlp-proto/@opentelemetry/resources": ["@opentelemetry/[email protected]", "", { "dependencies": { "@opentelemetry/core": "2.0.0", "@opentelemetry/semantic-conventions": "^1.29.0" }, "peerDependencies": { "@opentelemetry/api": ">=1.3.0 <1.10.0" } }, "sha512-rnZr6dML2z4IARI4zPGQV4arDikF/9OXZQzrC01dLmn0CZxU5U5OLd/m1T7YkGRj5UitjeoCtg/zorlgMQcdTg=="],-- "@opentelemetry/exporter-metrics-otlp-grpc/@opentelemetry/core": ["@opentelemetry/[email protected]", "", { "dependencies": { "@opentelemetry/semantic-conventions": "^1.29.0" }, "peerDependencies": { "@opentelemetry/api": ">=1.0.0 <1.10.0" } }, "sha512-SLX36allrcnVaPYG3R78F/UZZsBsvbc7lMCLx37LyH5MJ1KAAZ2E3mW9OAD3zGz0G8q/BtoS5VUrjzDydhD6LQ=="],-- "@opentelemetry/exporter-metrics-otlp-grpc/@opentelemetry/resources": ["@opentelemetry/[email protected]", "", { "dependencies": { "@opentelemetry/core": "2.0.0", "@opentelemetry/semantic-conventions": "^1.29.0" }, "peerDependencies": { "@opentelemetry/api": ">=1.3.0 <1.10.0" } }, "sha512-rnZr6dML2z4IARI4zPGQV4arDikF/9OXZQzrC01dLmn0CZxU5U5OLd/m1T7YkGRj5UitjeoCtg/zorlgMQcdTg=="],-- "@opentelemetry/exporter-metrics-otlp-http/@opentelemetry/core": ["@opentelemetry/[email protected]", "", { "dependencies": { "@opentelemetry/semantic-conventions": "^1.29.0" }, "peerDependencies": { "@opentelemetry/api": ">=1.0.0 <1.10.0" } }, "sha512-SLX36allrcnVaPYG3R78F/UZZsBsvbc7lMCLx37LyH5MJ1KAAZ2E3mW9OAD3zGz0G8q/BtoS5VUrjzDydhD6LQ=="],-- "@opentelemetry/exporter-metrics-otlp-http/@opentelemetry/resources": ["@opentelemetry/[email protected]", "", { "dependencies": { "@opentelemetry/core": "2.0.0", "@opentelemetry/semantic-conventions": "^1.29.0" }, "peerDependencies": { "@opentelemetry/api": ">=1.3.0 <1.10.0" } }, "sha512-rnZr6dML2z4IARI4zPGQV4arDikF/9OXZQzrC01dLmn0CZxU5U5OLd/m1T7YkGRj5UitjeoCtg/zorlgMQcdTg=="],-- "@opentelemetry/exporter-metrics-otlp-proto/@opentelemetry/core": ["@opentelemetry/[email protected]", "", { "dependencies": { "@opentelemetry/semantic-conventions": "^1.29.0" }, "peerDependencies": { "@opentelemetry/api": ">=1.0.0 <1.10.0" } }, "sha512-SLX36allrcnVaPYG3R78F/UZZsBsvbc7lMCLx37LyH5MJ1KAAZ2E3mW9OAD3zGz0G8q/BtoS5VUrjzDydhD6LQ=="],-- "@opentelemetry/exporter-metrics-otlp-proto/@opentelemetry/resources": ["@opentelemetry/[email protected]", "", { "dependencies": { "@opentelemetry/core": "2.0.0", "@opentelemetry/semantic-conventions": "^1.29.0" }, "peerDependencies": { "@opentelemetry/api": ">=1.3.0 <1.10.0" } }, "sha512-rnZr6dML2z4IARI4zPGQV4arDikF/9OXZQzrC01dLmn0CZxU5U5OLd/m1T7YkGRj5UitjeoCtg/zorlgMQcdTg=="],-- "@opentelemetry/exporter-prometheus/@opentelemetry/core": ["@opentelemetry/[email protected]", "", { "dependencies": { "@opentelemetry/semantic-conventions": "^1.29.0" }, "peerDependencies": { "@opentelemetry/api": ">=1.0.0 <1.10.0" } }, "sha512-SLX36allrcnVaPYG3R78F/UZZsBsvbc7lMCLx37LyH5MJ1KAAZ2E3mW9OAD3zGz0G8q/BtoS5VUrjzDydhD6LQ=="],-- "@opentelemetry/exporter-prometheus/@opentelemetry/resources": ["@opentelemetry/[email protected]", "", { "dependencies": { "@opentelemetry/core": "2.0.0", "@opentelemetry/semantic-conventions": "^1.29.0" }, "peerDependencies": { "@opentelemetry/api": ">=1.3.0 <1.10.0" } }, "sha512-rnZr6dML2z4IARI4zPGQV4arDikF/9OXZQzrC01dLmn0CZxU5U5OLd/m1T7YkGRj5UitjeoCtg/zorlgMQcdTg=="],-- "@opentelemetry/exporter-trace-otlp-grpc/@opentelemetry/core": ["@opentelemetry/[email protected]", "", { "dependencies": { "@opentelemetry/semantic-conventions": "^1.29.0" }, "peerDependencies": { "@opentelemetry/api": ">=1.0.0 <1.10.0" } }, "sha512-SLX36allrcnVaPYG3R78F/UZZsBsvbc7lMCLx37LyH5MJ1KAAZ2E3mW9OAD3zGz0G8q/BtoS5VUrjzDydhD6LQ=="],-- "@opentelemetry/exporter-trace-otlp-grpc/@opentelemetry/resources": ["@opentelemetry/[email protected]", "", { "dependencies": { "@opentelemetry/core": "2.0.0", "@opentelemetry/semantic-conventions": "^1.29.0" }, "peerDependencies": { "@opentelemetry/api": ">=1.3.0 <1.10.0" } }, "sha512-rnZr6dML2z4IARI4zPGQV4arDikF/9OXZQzrC01dLmn0CZxU5U5OLd/m1T7YkGRj5UitjeoCtg/zorlgMQcdTg=="],-- "@opentelemetry/exporter-trace-otlp-http/@opentelemetry/core": ["@opentelemetry/[email protected]", "", { "dependencies": { "@opentelemetry/semantic-conventions": "^1.29.0" }, "peerDependencies": { "@opentelemetry/api": ">=1.0.0 <1.10.0" } }, "sha512-SLX36allrcnVaPYG3R78F/UZZsBsvbc7lMCLx37LyH5MJ1KAAZ2E3mW9OAD3zGz0G8q/BtoS5VUrjzDydhD6LQ=="],-- "@opentelemetry/exporter-trace-otlp-http/@opentelemetry/resources": ["@opentelemetry/[email protected]", "", { "dependencies": { "@opentelemetry/core": "2.0.0", "@opentelemetry/semantic-conventions": "^1.29.0" }, "peerDependencies": { "@opentelemetry/api": ">=1.3.0 <1.10.0" } }, "sha512-rnZr6dML2z4IARI4zPGQV4arDikF/9OXZQzrC01dLmn0CZxU5U5OLd/m1T7YkGRj5UitjeoCtg/zorlgMQcdTg=="],-- "@opentelemetry/exporter-trace-otlp-proto/@opentelemetry/core": ["@opentelemetry/[email protected]", "", { "dependencies": { "@opentelemetry/semantic-conventions": "^1.29.0" }, "peerDependencies": { "@opentelemetry/api": ">=1.0.0 <1.10.0" } }, "sha512-SLX36allrcnVaPYG3R78F/UZZsBsvbc7lMCLx37LyH5MJ1KAAZ2E3mW9OAD3zGz0G8q/BtoS5VUrjzDydhD6LQ=="],-- "@opentelemetry/exporter-trace-otlp-proto/@opentelemetry/resources": ["@opentelemetry/[email protected]", "", { "dependencies": { "@opentelemetry/core": "2.0.0", "@opentelemetry/semantic-conventions": "^1.29.0" }, "peerDependencies": { "@opentelemetry/api": ">=1.3.0 <1.10.0" } }, "sha512-rnZr6dML2z4IARI4zPGQV4arDikF/9OXZQzrC01dLmn0CZxU5U5OLd/m1T7YkGRj5UitjeoCtg/zorlgMQcdTg=="],-- "@opentelemetry/exporter-zipkin/@opentelemetry/core": ["@opentelemetry/[email protected]", "", { "dependencies": { "@opentelemetry/semantic-conventions": "^1.29.0" }, "peerDependencies": { "@opentelemetry/api": ">=1.0.0 <1.10.0" } }, "sha512-SLX36allrcnVaPYG3R78F/UZZsBsvbc7lMCLx37LyH5MJ1KAAZ2E3mW9OAD3zGz0G8q/BtoS5VUrjzDydhD6LQ=="],-- "@opentelemetry/exporter-zipkin/@opentelemetry/resources": ["@opentelemetry/[email protected]", "", { "dependencies": { "@opentelemetry/core": "2.0.0", "@opentelemetry/semantic-conventions": "^1.29.0" }, "peerDependencies": { "@opentelemetry/api": ">=1.3.0 <1.10.0" } }, "sha512-rnZr6dML2z4IARI4zPGQV4arDikF/9OXZQzrC01dLmn0CZxU5U5OLd/m1T7YkGRj5UitjeoCtg/zorlgMQcdTg=="],+ "@opentelemetry/instrumentation/@opentelemetry/api-logs": ["@opentelemetry/[email protected]", "", { "dependencies": { "@opentelemetry/api": "^1.3.0" } }, "sha512-IKJBQxh91qJ+3ssRly5hYEJ8NDHu9oY/B1PXVSCWf7zytmYO9RNLB0Ox9XQ/fJ8m6gY6Q6NtBWlmXfaXt5Uc4Q=="],"@opentelemetry/instrumentation-pg/@types/pg": ["@types/[email protected]", "", { "dependencies": { "@types/node": "*", "pg-protocol": "*", "pg-types": "^2.2.0" } }, "sha512-1Kc4oAGzAl7uqUStZCDvaLFqZrW9qWSjXOmBfdgyBP5La7Us6Mg4GBvRlSoaZMhQF/zSj1C8CtKMBkoiT8eL8w=="],- "@opentelemetry/otlp-exporter-base/@opentelemetry/core": ["@opentelemetry/[email protected]", "", { "dependencies": { "@opentelemetry/semantic-conventions": "^1.29.0" }, "peerDependencies": { "@opentelemetry/api": ">=1.0.0 <1.10.0" } }, "sha512-SLX36allrcnVaPYG3R78F/UZZsBsvbc7lMCLx37LyH5MJ1KAAZ2E3mW9OAD3zGz0G8q/BtoS5VUrjzDydhD6LQ=="],-- "@opentelemetry/otlp-grpc-exporter-base/@opentelemetry/core": ["@opentelemetry/[email protected]", "", { "dependencies": { "@opentelemetry/semantic-conventions": "^1.29.0" }, "peerDependencies": { "@opentelemetry/api": ">=1.0.0 <1.10.0" } }, "sha512-SLX36allrcnVaPYG3R78F/UZZsBsvbc7lMCLx37LyH5MJ1KAAZ2E3mW9OAD3zGz0G8q/BtoS5VUrjzDydhD6LQ=="],-- "@opentelemetry/otlp-transformer/@opentelemetry/core": ["@opentelemetry/[email protected]", "", { "dependencies": { "@opentelemetry/semantic-conventions": "^1.29.0" }, "peerDependencies": { "@opentelemetry/api": ">=1.0.0 <1.10.0" } }, "sha512-SLX36allrcnVaPYG3R78F/UZZsBsvbc7lMCLx37LyH5MJ1KAAZ2E3mW9OAD3zGz0G8q/BtoS5VUrjzDydhD6LQ=="],-- "@opentelemetry/otlp-transformer/@opentelemetry/resources": ["@opentelemetry/[email protected]", "", { "dependencies": { "@opentelemetry/core": "2.0.0", "@opentelemetry/semantic-conventions": "^1.29.0" }, "peerDependencies": { "@opentelemetry/api": ">=1.3.0 <1.10.0" } }, "sha512-rnZr6dML2z4IARI4zPGQV4arDikF/9OXZQzrC01dLmn0CZxU5U5OLd/m1T7YkGRj5UitjeoCtg/zorlgMQcdTg=="],+ "@opentelemetry/sdk-node/@opentelemetry/instrumentation": ["@opentelemetry/[email protected]", "", { "dependencies": { "@opentelemetry/api-logs": "0.218.0", "import-in-the-middle": "^3.0.0", "require-in-the-middle": "^8.0.0" }, "peerDependencies": { "@opentelemetry/api": "^1.3.0" } }, "sha512-mIZil8Es+sYDK5m+DQiwAwF57F14TF2YlEqvIjZ/RQWcxDBwRGsKfdK2Tv65OU9meQKCMzSIFS9mxAcnAb6Bkg=="],- "@opentelemetry/propagator-b3/@opentelemetry/core": ["@opentelemetry/[email protected]", "", { "dependencies": { "@opentelemetry/semantic-conventions": "^1.29.0" }, "peerDependencies": { "@opentelemetry/api": ">=1.0.0 <1.10.0" } }, "sha512-SLX36allrcnVaPYG3R78F/UZZsBsvbc7lMCLx37LyH5MJ1KAAZ2E3mW9OAD3zGz0G8q/BtoS5VUrjzDydhD6LQ=="],-- "@opentelemetry/propagator-jaeger/@opentelemetry/core": ["@opentelemetry/[email protected]", "", { "dependencies": { "@opentelemetry/semantic-conventions": "^1.29.0" }, "peerDependencies": { "@opentelemetry/api": ">=1.0.0 <1.10.0" } }, "sha512-SLX36allrcnVaPYG3R78F/UZZsBsvbc7lMCLx37LyH5MJ1KAAZ2E3mW9OAD3zGz0G8q/BtoS5VUrjzDydhD6LQ=="],-- "@opentelemetry/sdk-logs/@opentelemetry/core": ["@opentelemetry/[email protected]", "", { "dependencies": { "@opentelemetry/semantic-conventions": "^1.29.0" }, "peerDependencies": { "@opentelemetry/api": ">=1.0.0 <1.10.0" } }, "sha512-SLX36allrcnVaPYG3R78F/UZZsBsvbc7lMCLx37LyH5MJ1KAAZ2E3mW9OAD3zGz0G8q/BtoS5VUrjzDydhD6LQ=="],+ "@radix-ui/react-alert-dialog/@radix-ui/react-dialog": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/primitive": "1.1.1", "@radix-ui/react-compose-refs": "1.1.1", "@radix-ui/react-context": "1.1.1", "@radix-ui/react-dismissable-layer": "1.1.4", "@radix-ui/react-focus-guards": "1.1.1", "@radix-ui/react-focus-scope": "1.1.1", "@radix-ui/react-id": "1.1.0", "@radix-ui/react-portal": "1.1.3", "@radix-ui/react-presence": "1.1.2", "@radix-ui/react-primitive": "2.0.1", "@radix-ui/react-slot": "1.1.1", "@radix-ui/react-use-controllable-state": "1.1.0", "aria-hidden": "^1.2.4", "react-remove-scroll": "^2.6.2" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-LaO3e5h/NOEL4OfXjxD43k9Dx+vn+8n+PCFt6uhX/BADFflllyv3WJG6rgvvSVBxpTch938Qq/LGc2MMxipXPw=="],- "@opentelemetry/sdk-logs/@opentelemetry/resources": ["@opentelemetry/[email protected]", "", { "dependencies": { "@opentelemetry/core": "2.0.0", "@opentelemetry/semantic-conventions": "^1.29.0" }, "peerDependencies": { "@opentelemetry/api": ">=1.3.0 <1.10.0" } }, "sha512-rnZr6dML2z4IARI4zPGQV4arDikF/9OXZQzrC01dLmn0CZxU5U5OLd/m1T7YkGRj5UitjeoCtg/zorlgMQcdTg=="],+ "@radix-ui/react-dialog/@radix-ui/react-dismissable-layer": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/primitive": "1.1.1", "@radix-ui/react-compose-refs": "1.1.1", "@radix-ui/react-primitive": "2.0.1", "@radix-ui/react-use-callback-ref": "1.1.0", "@radix-ui/react-use-escape-keydown": "1.1.0" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-onrWn/72lQoEucDmJnr8uczSNTujT0vJnA/X5+3AkChVPowr8n1yvIKIabhWyMQeMvvmdpsvcyDqx3X1LEXCPg=="],- "@opentelemetry/sdk-metrics/@opentelemetry/core": ["@opentelemetry/[email protected]", "", { "dependencies": { "@opentelemetry/semantic-conventions": "^1.29.0" }, "peerDependencies": { "@opentelemetry/api": ">=1.0.0 <1.10.0" } }, "sha512-SLX36allrcnVaPYG3R78F/UZZsBsvbc7lMCLx37LyH5MJ1KAAZ2E3mW9OAD3zGz0G8q/BtoS5VUrjzDydhD6LQ=="],+ "@rushstack/node-core-library/ajv": ["[email protected]", "", { "dependencies": { "fast-deep-equal": "^3.1.3", "json-schema-traverse": "^1.0.0", "require-from-string": "^2.0.2", "uri-js": "^4.4.1" } }, "sha512-PRA911Blj99jR5RMeTunVbNXMF6Lp4vZXnk5GQjcnUWUTsrXtekg/pnmFFI2u/I36Y/2bITGS30GZCXei6uNkA=="],- "@opentelemetry/sdk-metrics/@opentelemetry/resources": ["@opentelemetry/[email protected]", "", { "dependencies": { "@opentelemetry/core": "2.0.0", "@opentelemetry/semantic-conventions": "^1.29.0" }, "peerDependencies": { "@opentelemetry/api": ">=1.3.0 <1.10.0" } }, "sha512-rnZr6dML2z4IARI4zPGQV4arDikF/9OXZQzrC01dLmn0CZxU5U5OLd/m1T7YkGRj5UitjeoCtg/zorlgMQcdTg=="],+ "@rushstack/node-core-library/semver": ["[email protected]", "", { "dependencies": { "lru-cache": "^6.0.0" }, "bin": { "semver": "bin/semver.js" } }, "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA=="],- "@opentelemetry/sdk-node/@opentelemetry/core": ["@opentelemetry/[email protected]", "", { "dependencies": { "@opentelemetry/semantic-conventions": "^1.29.0" }, "peerDependencies": { "@opentelemetry/api": ">=1.0.0 <1.10.0" } }, "sha512-SLX36allrcnVaPYG3R78F/UZZsBsvbc7lMCLx37LyH5MJ1KAAZ2E3mW9OAD3zGz0G8q/BtoS5VUrjzDydhD6LQ=="],+ "@rushstack/terminal/supports-color": ["[email protected]", "", { "dependencies": { "has-flag": "^4.0.0" } }, "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q=="],- "@opentelemetry/sdk-node/@opentelemetry/resources": ["@opentelemetry/[email protected]", "", { "dependencies": { "@opentelemetry/core": "2.0.0", "@opentelemetry/semantic-conventions": "^1.29.0" }, "peerDependencies": { "@opentelemetry/api": ">=1.3.0 <1.10.0" } }, "sha512-rnZr6dML2z4IARI4zPGQV4arDikF/9OXZQzrC01dLmn0CZxU5U5OLd/m1T7YkGRj5UitjeoCtg/zorlgMQcdTg=="],+ "@rushstack/ts-command-line/argparse": ["[email protected]", "", { "dependencies": { "sprintf-js": "~1.0.2" } }, "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg=="],- "@opentelemetry/sdk-node/@opentelemetry/sdk-trace-node": ["@opentelemetry/[email protected]", "", { "dependencies": { "@opentelemetry/context-async-hooks": "2.0.0", "@opentelemetry/core": "2.0.0", "@opentelemetry/sdk-trace-base": "2.0.0" }, "peerDependencies": { "@opentelemetry/api": ">=1.0.0 <1.10.0" } }, "sha512-omdilCZozUjQwY3uZRBwbaRMJ3p09l4t187Lsdf0dGMye9WKD4NGcpgZRvqhI1dwcH6og+YXQEtoO9Wx3ykilg=="],+ "@smithy/core/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],- "@opentelemetry/sdk-trace-base/@opentelemetry/core": ["@opentelemetry/[email protected]", "", { "dependencies": { "@opentelemetry/semantic-conventions": "^1.29.0" }, "peerDependencies": { "@opentelemetry/api": ">=1.0.0 <1.10.0" } }, "sha512-SLX36allrcnVaPYG3R78F/UZZsBsvbc7lMCLx37LyH5MJ1KAAZ2E3mW9OAD3zGz0G8q/BtoS5VUrjzDydhD6LQ=="],+ "@smithy/credential-provider-imds/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],- "@opentelemetry/sdk-trace-base/@opentelemetry/resources": ["@opentelemetry/[email protected]", "", { "dependencies": { "@opentelemetry/core": "2.0.0", "@opentelemetry/semantic-conventions": "^1.29.0" }, "peerDependencies": { "@opentelemetry/api": ">=1.3.0 <1.10.0" } }, "sha512-rnZr6dML2z4IARI4zPGQV4arDikF/9OXZQzrC01dLmn0CZxU5U5OLd/m1T7YkGRj5UitjeoCtg/zorlgMQcdTg=="],+ "@smithy/fetch-http-handler/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],- "@opentelemetry/sdk-trace-node/@opentelemetry/sdk-trace-base": ["@opentelemetry/[email protected]", "", { "dependencies": { "@opentelemetry/core": "2.7.1", "@opentelemetry/resources": "2.7.1", "@opentelemetry/semantic-conventions": "^1.29.0" }, "peerDependencies": { "@opentelemetry/api": ">=1.3.0 <1.10.0" } }, "sha512-NAYIlsF8MPUsKqJMiDQJTMPOmlbawC1Iz/omMLygZ1C9am8fTKYjTaI+OZM+WTY3t3Glo0wnOg/6/pac6RGPPw=="],+ "@smithy/is-array-buffer/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],- "@radix-ui/react-alert-dialog/@radix-ui/react-dialog": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/primitive": "1.1.1", "@radix-ui/react-compose-refs": "1.1.1", "@radix-ui/react-context": "1.1.1", "@radix-ui/react-dismissable-layer": "1.1.4", "@radix-ui/react-focus-guards": "1.1.1", "@radix-ui/react-focus-scope": "1.1.1", "@radix-ui/react-id": "1.1.0", "@radix-ui/react-portal": "1.1.3", "@radix-ui/react-presence": "1.1.2", "@radix-ui/react-primitive": "2.0.1", "@radix-ui/react-slot": "1.1.1", "@radix-ui/react-use-controllable-state": "1.1.0", "aria-hidden": "^1.2.4", "react-remove-scroll": "^2.6.2" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-LaO3e5h/NOEL4OfXjxD43k9Dx+vn+8n+PCFt6uhX/BADFflllyv3WJG6rgvvSVBxpTch938Qq/LGc2MMxipXPw=="],+ "@smithy/node-http-handler/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],- "@radix-ui/react-dialog/@radix-ui/react-dismissable-layer": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/primitive": "1.1.1", "@radix-ui/react-compose-refs": "1.1.1", "@radix-ui/react-primitive": "2.0.1", "@radix-ui/react-use-callback-ref": "1.1.0", "@radix-ui/react-use-escape-keydown": "1.1.0" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-onrWn/72lQoEucDmJnr8uczSNTujT0vJnA/X5+3AkChVPowr8n1yvIKIabhWyMQeMvvmdpsvcyDqx3X1LEXCPg=="],+ "@smithy/signature-v4/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],- "@rushstack/node-core-library/ajv": ["[email protected]", "", { "dependencies": { "fast-deep-equal": "^3.1.3", "json-schema-traverse": "^1.0.0", "require-from-string": "^2.0.2", "uri-js": "^4.4.1" } }, "sha512-PRA911Blj99jR5RMeTunVbNXMF6Lp4vZXnk5GQjcnUWUTsrXtekg/pnmFFI2u/I36Y/2bITGS30GZCXei6uNkA=="],+ "@smithy/types/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],- "@rushstack/node-core-library/semver": ["[email protected]", "", { "dependencies": { "lru-cache": "^6.0.0" }, "bin": { "semver": "bin/semver.js" } }, "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA=="],+ "@smithy/util-buffer-from/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],- "@rushstack/terminal/supports-color": ["[email protected]", "", { "dependencies": { "has-flag": "^4.0.0" } }, "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q=="],+ "@smithy/util-utf8/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],- "@rushstack/ts-command-line/argparse": ["[email protected]", "", { "dependencies": { "sprintf-js": "~1.0.2" } }, "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg=="],+ "@swc/helpers/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],"@ts-morph/common/minimatch": ["[email protected]", "", { "dependencies": { "brace-expansion": "^5.0.5" } }, "sha512-MULkVLfKGYDFYejP07QOurDLLQpcjk7Fw+7jXS2R2czRQzR56yHRveU5NDJEOviH+hETZKSkIk5c+T23GjFUMg=="],+ "@tybys/wasm-util/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],+"@types/babel__core/@babel/parser": ["@babel/[email protected]", "", { "dependencies": { "@babel/types": "^7.29.7" }, "bin": "./bin/babel-parser.js" }, "sha512-hnORnjP/1P/zFEndoeX+n+t1RwWRJiJpM/jO7FW32Kn9r5+sJB2JWOdYo4L6k78j15eCwY3Gm/7364B1EMwtNg=="],"@types/babel__core/@babel/types": ["@babel/[email protected]", "", { "dependencies": { "@babel/helper-string-parser": "^7.29.7", "@babel/helper-validator-identifier": "^7.29.7" } }, "sha512-4zBIxpPzowiZpusoFkyGVwakdRJUyuH5PxQ/PrqghfdFWWasvnCdPfQXHrenDai+gyLARulZjZowCOj6fjT4pA=="],@@ -3671,12 +3744,16 @@"@typescript-eslint/visitor-keys/eslint-visitor-keys": ["[email protected]", "", {}, "sha512-tD40eHxA35h0PEIZNeIjkHoDR4YjjJp34biM0mDvplBe//mB+IHCqHDGV7pxF+7MklTvighcCPPZC7ynWyjdTA=="],+ "@whatwg-node/promise-helpers/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],+"accepts/negotiator": ["[email protected]", "", {}, "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg=="],"ajv-formats/ajv": ["[email protected]", "", { "dependencies": { "fast-deep-equal": "^3.1.3", "json-schema-traverse": "^1.0.0", "require-from-string": "^2.0.2", "uri-js": "^4.4.1" } }, "sha512-PRA911Blj99jR5RMeTunVbNXMF6Lp4vZXnk5GQjcnUWUTsrXtekg/pnmFFI2u/I36Y/2bITGS30GZCXei6uNkA=="],"ansi-align/string-width": ["[email protected]", "", { "dependencies": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", "strip-ansi": "^6.0.1" } }, "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g=="],+ "aria-hidden/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],+"babel-plugin-istanbul/istanbul-lib-instrument": ["[email protected]", "", { "dependencies": { "@babel/core": "^7.12.3", "@babel/parser": "^7.14.7", "@istanbuljs/schema": "^0.1.2", "istanbul-lib-coverage": "^3.2.0", "semver": "^6.3.0" } }, "sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg=="],"babel-plugin-jest-hoist/@babel/types": ["@babel/[email protected]", "", { "dependencies": { "@babel/helper-string-parser": "^7.29.7", "@babel/helper-validator-identifier": "^7.29.7" } }, "sha512-4zBIxpPzowiZpusoFkyGVwakdRJUyuH5PxQ/PrqghfdFWWasvnCdPfQXHrenDai+gyLARulZjZowCOj6fjT4pA=="],@@ -3685,18 +3762,28 @@"body-parser/debug": ["[email protected]", "", { "dependencies": { "ms": "2.0.0" } }, "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA=="],+ "body-parser/http-errors": ["[email protected]", "", { "dependencies": { "depd": "~2.0.0", "inherits": "~2.0.4", "setprototypeof": "~1.2.0", "statuses": "~2.0.2", "toidentifier": "~1.0.1" } }, "sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ=="],+"boxen/string-width": ["[email protected]", "", { "dependencies": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", "strip-ansi": "^6.0.1" } }, "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g=="],"boxen/wrap-ansi": ["[email protected]", "", { "dependencies": { "ansi-styles": "^4.0.0", "string-width": "^4.1.0", "strip-ansi": "^6.0.0" } }, "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q=="],+ "bullmq/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],++ "bullmq/uuid": ["[email protected]", "", { "bin": { "uuid": "dist/bin/uuid" } }, "sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA=="],++ "camel-case/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],++ "capital-case/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],++ "change-case/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],+"cli-progress/string-width": ["[email protected]", "", { "dependencies": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", "strip-ansi": "^6.0.1" } }, "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g=="],"cli-ux/ansi-escapes": ["[email protected]", "", { "dependencies": { "type-fest": "^0.21.3" } }, "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ=="],"cli-ux/fs-extra": ["[email protected]", "", { "dependencies": { "graceful-fs": "^4.2.0", "jsonfile": "^4.0.0", "universalify": "^0.1.0" } }, "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g=="],- "cli-ux/is-wsl": ["[email protected]", "", { "dependencies": { "is-docker": "^2.0.0" } }, "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww=="],-"cli-ux/js-yaml": ["[email protected]", "", { "dependencies": { "argparse": "^1.0.7", "esprima": "^4.0.0" }, "bin": { "js-yaml": "bin/js-yaml.js" } }, "sha512-PMSmkqxr106Xa156c2M265Z+FTrPl+oxd/rgOQy2tijQeK5TxQ43psO1ZCwhVOSdnn+RzkzlRz/eY4BgJBYVpg=="],"cli-ux/string-width": ["[email protected]", "", { "dependencies": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", "strip-ansi": "^6.0.1" } }, "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g=="],@@ -3705,6 +3792,8 @@"cli-ux/supports-hyperlinks": ["[email protected]", "", { "dependencies": { "has-flag": "^4.0.0", "supports-color": "^7.0.0" } }, "sha512-RpsAZlpWcDwOPQA22aCH4J0t7L8JmAvsCxfOSEwm7cQs3LshN36QaTkwd70DnBOXDWGssw2eUoc8CaRWT0XunA=="],+ "cli-ux/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],+"cliui/string-width": ["[email protected]", "", { "dependencies": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", "strip-ansi": "^6.0.1" } }, "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g=="],"cliui/wrap-ansi": ["[email protected]", "", { "dependencies": { "ansi-styles": "^4.0.0", "string-width": "^4.1.0", "strip-ansi": "^6.0.0" } }, "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q=="],@@ -3717,27 +3806,39 @@"compression/debug": ["[email protected]", "", { "dependencies": { "ms": "2.0.0" } }, "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA=="],+ "constant-case/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],+"cookie-parser/cookie-signature": ["[email protected]", "", {}, "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ=="],+ "cross-inspect/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],+"cva/clsx": ["[email protected]", "", {}, "sha512-rQ1+kcj+ttHG0MKVGBUXwayCCF1oh39BF5COIpRzuCEv8Mwjv0XucrI2ExNTOn9IlLifGClWQcU9BrZORvtw6Q=="],"defaults/clone": ["[email protected]", "", {}, "sha512-JQHZ2QMW6l3aH/j6xCqQThY/9OH4D/9ls34cgkUBiEeocRTU04tHfKPBsUK1PqZCUQM7GiA0IIXJSuXHI64Kbg=="],+ "dot-case/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],+"express/debug": ["[email protected]", "", { "dependencies": { "ms": "2.0.0" } }, "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA=="],+ "express/http-errors": ["[email protected]", "", { "dependencies": { "depd": "~2.0.0", "inherits": "~2.0.4", "setprototypeof": "~1.2.0", "statuses": "~2.0.2", "toidentifier": "~1.0.1" } }, "sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ=="],+"express/path-to-regexp": ["[email protected]", "", {}, "sha512-A/AGNMFN3c8bOlvV9RreMdrv7jsmF9XIfDeCd87+I8RNg6s78BhJxMu69NEMHBSJFxKidViTEdruRwEk/WIKqA=="],"express-session/debug": ["[email protected]", "", { "dependencies": { "ms": "2.0.0" } }, "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA=="],"fast-glob/glob-parent": ["[email protected]", "", { "dependencies": { "is-glob": "^4.0.1" } }, "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow=="],+ "fdir/picomatch": ["[email protected]", "", {}, "sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A=="],+"finalhandler/debug": ["[email protected]", "", { "dependencies": { "ms": "2.0.0" } }, "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA=="],- "fix-dts-default-cjs-exports/magic-string": ["[email protected]", "", { "dependencies": { "@jridgewell/sourcemap-codec": "^1.5.5" } }, "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ=="],+ "framer-motion/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],- "glob/minimatch": ["[email protected]", "", { "dependencies": { "brace-expansion": "^5.0.5" } }, "sha512-MULkVLfKGYDFYejP07QOurDLLQpcjk7Fw+7jXS2R2czRQzR56yHRveU5NDJEOviH+hETZKSkIk5c+T23GjFUMg=="],+ "graphql-tag/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],- "glob/minipass": ["[email protected]", "", {}, "sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A=="],+ "header-case/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],++ "http-errors/statuses": ["[email protected]", "", {}, "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ=="],"import-fresh/resolve-from": ["[email protected]", "", {}, "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g=="],@@ -3757,6 +3858,10 @@"is-invalid-path/is-glob": ["[email protected]", "", { "dependencies": { "is-extglob": "^1.0.0" } }, "sha512-a1dBeB19NXsf/E0+FHqkagizel/LQw2DjSQpvQrj3zT+jYPpaUCryPnrQajXKFLCMuf4I6FhRpaGtw4lPrG6Eg=="],+ "is-lower-case/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],++ "is-upper-case/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],+"istanbul-lib-instrument/@babel/parser": ["@babel/[email protected]", "", { "dependencies": { "@babel/types": "^7.29.7" }, "bin": "./bin/babel-parser.js" }, "sha512-hnORnjP/1P/zFEndoeX+n+t1RwWRJiJpM/jO7FW32Kn9r5+sJB2JWOdYo4L6k78j15eCwY3Gm/7364B1EMwtNg=="],"istanbul-lib-report/make-dir": ["[email protected]", "", { "dependencies": { "semver": "^7.5.3" } }, "sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw=="],@@ -3773,8 +3878,6 @@"jest-config/@jest/test-sequencer": ["@jest/[email protected]", "", { "dependencies": { "@jest/test-result": "^29.7.0", "graceful-fs": "^4.2.9", "jest-haste-map": "^29.7.0", "slash": "^3.0.0" } }, "sha512-GQwJ5WZVrKnOJuiYiAF52UNUJXgTZx1NHjFSEB0qEMmSZKAkdMoIzw/Cj6x6NF4AvV23AUqDpFzQkN/eYCYTxw=="],- "jest-config/glob": ["[email protected]", "", { "dependencies": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", "inherits": "2", "minimatch": "^3.1.1", "once": "^1.3.0", "path-is-absolute": "^1.0.0" } }, "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q=="],-"jest-haste-map/@jest/types": ["@jest/[email protected]", "", { "dependencies": { "@jest/pattern": "30.4.0", "@jest/schemas": "30.4.1", "@types/istanbul-lib-coverage": "^2.0.6", "@types/istanbul-reports": "^3.0.4", "@types/node": "*", "@types/yargs": "^17.0.33", "chalk": "^4.1.2" } }, "sha512-f1x/vJXIfjOlEmejYpbkbgw1gOqpPECwMvMEtBqe47j7H2Hg8h8w3o3ikhSXq3MI15kg+oQ0exWO0uCtTNJLoQ=="],"jest-haste-map/jest-regex-util": ["[email protected]", "", {}, "sha512-mWlvLviKIgIQ8VCuM1xRdD0TWp3zlzionlmDBjuXVBs+VkmXq6FgW9T4Emr7oGz/Rk6feDCGyiugolcQEyp3mg=="],@@ -3793,8 +3896,6 @@"jest-runtime/@jest/test-result": ["@jest/[email protected]", "", { "dependencies": { "@jest/console": "^29.7.0", "@jest/types": "^29.6.3", "@types/istanbul-lib-coverage": "^2.0.0", "collect-v8-coverage": "^1.0.0" } }, "sha512-Fdx+tv6x1zlkJPcWXmMDAG2HBnaR9XPSd5aDWQVsfrZmLVT3lU1cwyxLgRmXR9yrq4NBoEm9BMsfgFzTQAbJYA=="],- "jest-runtime/glob": ["[email protected]", "", { "dependencies": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", "inherits": "2", "minimatch": "^3.1.1", "once": "^1.3.0", "path-is-absolute": "^1.0.0" } }, "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q=="],-"jest-runtime/jest-haste-map": ["[email protected]", "", { "dependencies": { "@jest/types": "^29.6.3", "@types/graceful-fs": "^4.1.3", "@types/node": "*", "anymatch": "^3.0.3", "fb-watchman": "^2.0.0", "graceful-fs": "^4.2.9", "jest-regex-util": "^29.6.3", "jest-util": "^29.7.0", "jest-worker": "^29.7.0", "micromatch": "^4.0.4", "walker": "^1.0.8" }, "optionalDependencies": { "fsevents": "^2.3.2" } }, "sha512-fP8u2pyfqx0K1rGn1R9pyE0/KTn+G7PxktWidOBTqFPLYX0b9ksaMFkhK5vrS3DVun09pckLdlx90QthlW7AmA=="],"jest-runtime/strip-bom": ["[email protected]", "", {}, "sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w=="],@@ -3815,6 +3916,10 @@"knex/pg-connection-string": ["[email protected]", "", {}, "sha512-ch6OwaeaPYcova4kKZ15sbJ2hKb/VP48ZD2gE7i1J+L4MspCtBMAx8nMgz7bksc7IojCIIWuEhHibSMFH8m8oA=="],+ "lower-case/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],++ "lower-case-first/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],+"lru-cache/yallist": ["[email protected]", "", {}, "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A=="],"make-dir/semver": ["[email protected]", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA=="],@@ -3825,22 +3930,26 @@"morgan/on-finished": ["[email protected]", "", { "dependencies": { "ee-first": "1.1.1" } }, "sha512-ikqdkGAAyf/X/gPhXGvfgAytDZtDbr+bkNUJ0N9h5MI/dmdgCs3l6hoHrcUv41sRKew3jIwrp4qQDXiK99Utww=="],- "npm-packlist/glob": ["[email protected]", "", { "dependencies": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", "inherits": "2", "minimatch": "^3.1.1", "once": "^1.3.0", "path-is-absolute": "^1.0.0" } }, "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q=="],+ "motion/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],++ "no-case/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],"npm-run-path/path-key": ["[email protected]", "", {}, "sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ=="],"ora/chalk": ["[email protected]", "", {}, "sha512-7NzBL0rN6fMUW+f7A6Io4h40qQlG+xGmtMxfbnH/K7TAtt8JQWVQK+6g0UXKMeVJoyV5EkkNsErQ8pVD3bLHbA=="],+ "param-case/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],++ "pascal-case/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],+"password-prompt/ansi-escapes": ["[email protected]", "", { "dependencies": { "type-fest": "^0.21.3" } }, "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ=="],+ "path-case/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],+"path-scurry/lru-cache": ["[email protected]", "", {}, "sha512-5YgH9UJd7wVb9hIouI2adWpgqrrICkt070Dnj8EUY1+B4B2P9eRLPAkAAo6NICA7CEhOIeBHl46u9zSNpNu7zA=="],"path-scurry/minipass": ["[email protected]", "", {}, "sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A=="],- "pg-god/tslib": ["[email protected]", "", {}, "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg=="],-- "playwright/fsevents": ["[email protected]", "", { "os": "darwin" }, "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA=="],-"pretty-format/ansi-styles": ["[email protected]", "", {}, "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA=="],"pretty-format/react-is": ["[email protected]", "", {}, "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg=="],@@ -3853,16 +3962,34 @@"radix-ui/@radix-ui/react-dialog": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/primitive": "1.1.1", "@radix-ui/react-compose-refs": "1.1.1", "@radix-ui/react-context": "1.1.1", "@radix-ui/react-dismissable-layer": "1.1.4", "@radix-ui/react-focus-guards": "1.1.1", "@radix-ui/react-focus-scope": "1.1.1", "@radix-ui/react-id": "1.1.0", "@radix-ui/react-portal": "1.1.3", "@radix-ui/react-presence": "1.1.2", "@radix-ui/react-primitive": "2.0.1", "@radix-ui/react-slot": "1.1.1", "@radix-ui/react-use-controllable-state": "1.1.0", "aria-hidden": "^1.2.4", "react-remove-scroll": "^2.6.2" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-LaO3e5h/NOEL4OfXjxD43k9Dx+vn+8n+PCFt6uhX/BADFflllyv3WJG6rgvvSVBxpTch938Qq/LGc2MMxipXPw=="],+ "raw-body/http-errors": ["[email protected]", "", { "dependencies": { "depd": "~2.0.0", "inherits": "~2.0.4", "setprototypeof": "~1.2.0", "statuses": "~2.0.2", "toidentifier": "~1.0.1" } }, "sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ=="],+"react-aria/clsx": ["[email protected]", "", {}, "sha512-rQ1+kcj+ttHG0MKVGBUXwayCCF1oh39BF5COIpRzuCEv8Mwjv0XucrI2ExNTOn9IlLifGClWQcU9BrZORvtw6Q=="],+ "react-remove-scroll/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],++ "react-remove-scroll-bar/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],++ "react-style-singleton/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],+"restore-cursor/onetime": ["[email protected]", "", { "dependencies": { "mimic-function": "^5.0.0" } }, "sha512-VXJjc87FScF88uafS3JllDgvAm+c/Slfz06lorj2uAY34rlUu0Nt+v8wreiImcrgAjjIHp1rXpTDlLOGw29WwQ=="],"rollup/@types/estree": ["@types/[email protected]", "", {}, "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w=="],+ "rxjs/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],+"send/debug": ["[email protected]", "", { "dependencies": { "ms": "2.0.0" } }, "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA=="],+ "send/http-errors": ["[email protected]", "", { "dependencies": { "depd": "~2.0.0", "inherits": "~2.0.4", "setprototypeof": "~1.2.0", "statuses": "~2.0.2", "toidentifier": "~1.0.1" } }, "sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ=="],++ "sentence-case/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],++ "snake-case/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],+"source-map-support/source-map": ["[email protected]", "", {}, "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g=="],+ "sponge-case/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],+"stack-utils/escape-string-regexp": ["[email protected]", "", {}, "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w=="],"string-width/strip-ansi": ["[email protected]", "", { "dependencies": { "ansi-regex": "^6.2.2" } }, "sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w=="],@@ -3873,18 +4000,18 @@"supports-hyperlinks/supports-color": ["[email protected]", "", {}, "sha512-SS+jx45GF1QjgEXQx4NJZV9ImqmO2NPz5FNsIHrsDjh2YsHnawpan7SNQ1o8NuhrbHZy9AZhIoCUiCeaW/C80g=="],+ "swap-case/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],+"tailwindcss/arg": ["[email protected]", "", {}, "sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg=="],"tailwindcss/chokidar": ["[email protected]", "", { "dependencies": { "anymatch": "~3.1.2", "braces": "~3.0.2", "glob-parent": "~5.1.2", "is-binary-path": "~2.1.0", "is-glob": "~4.0.1", "normalize-path": "~3.0.0", "readdirp": "~3.6.0" }, "optionalDependencies": { "fsevents": "~2.3.2" } }, "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw=="],"tar/minipass": ["[email protected]", "", {}, "sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A=="],- "test-exclude/glob": ["[email protected]", "", { "dependencies": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", "inherits": "2", "minimatch": "^3.1.1", "once": "^1.3.0", "path-is-absolute": "^1.0.0" } }, "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q=="],-- "tinyglobby/fdir": ["[email protected]", "", { "peerDependencies": { "picomatch": "^3 || ^4" }, "optionalPeers": ["picomatch"] }, "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg=="],-"tinyglobby/picomatch": ["[email protected]", "", {}, "sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A=="],+ "title-case/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],+"ts-node/diff": ["[email protected]", "", {}, "sha512-X07nttJQkwkfKfvTPG/KSnE2OMdcUCao6+eXF3wmnIQRn2aPAHH3VxDbDOdegkd6JbPsXqShpvEOHfAT+nCNwQ=="],"tsup/esbuild": ["[email protected]", "", { "optionalDependencies": { "@esbuild/aix-ppc64": "0.27.7", "@esbuild/android-arm": "0.27.7", "@esbuild/android-arm64": "0.27.7", "@esbuild/android-x64": "0.27.7", "@esbuild/darwin-arm64": "0.27.7", "@esbuild/darwin-x64": "0.27.7", "@esbuild/freebsd-arm64": "0.27.7", "@esbuild/freebsd-x64": "0.27.7", "@esbuild/linux-arm": "0.27.7", "@esbuild/linux-arm64": "0.27.7", "@esbuild/linux-ia32": "0.27.7", "@esbuild/linux-loong64": "0.27.7", "@esbuild/linux-mips64el": "0.27.7", "@esbuild/linux-ppc64": "0.27.7", "@esbuild/linux-riscv64": "0.27.7", "@esbuild/linux-s390x": "0.27.7", "@esbuild/linux-x64": "0.27.7", "@esbuild/netbsd-arm64": "0.27.7", "@esbuild/netbsd-x64": "0.27.7", "@esbuild/openbsd-arm64": "0.27.7", "@esbuild/openbsd-x64": "0.27.7", "@esbuild/openharmony-arm64": "0.27.7", "@esbuild/sunos-x64": "0.27.7", "@esbuild/win32-arm64": "0.27.7", "@esbuild/win32-ia32": "0.27.7", "@esbuild/win32-x64": "0.27.7" }, "bin": { "esbuild": "bin/esbuild" } }, "sha512-IxpibTjyVnmrIQo5aqNpCgoACA/dTKLTlhMHihVHhdkxKyPO1uBBthumT0rdHmcsk9uMonIWS0m4FljWzILh3w=="],@@ -3893,6 +4020,14 @@"umzug/type-fest": ["[email protected]", "", {}, "sha512-TeTSQ6H5YHvpqVwBRcnLDCBnDOHWYu7IvGbHT6N8AOymcr9PJGjc1GTtiWZTYg0NCgYwvnYWEkVChQAr9bjfwA=="],+ "upper-case/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],++ "upper-case-first/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],++ "use-callback-ref/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],++ "use-sidecar/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],+"v8-to-istanbul/@jridgewell/trace-mapping": ["@jridgewell/[email protected]", "", { "dependencies": { "@jridgewell/resolve-uri": "^3.1.0", "@jridgewell/sourcemap-codec": "^1.4.14" } }, "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw=="],"widest-line/string-width": ["[email protected]", "", { "dependencies": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", "strip-ansi": "^6.0.1" } }, "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g=="],@@ -3905,9 +4040,9 @@"write-file-atomic/signal-exit": ["[email protected]", "", {}, "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ=="],- "yalc/fs-extra": ["[email protected]", "", { "dependencies": { "graceful-fs": "^4.2.0", "jsonfile": "^4.0.0", "universalify": "^0.1.0" } }, "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g=="],+ "wsl-utils/is-wsl": ["[email protected]", "", { "dependencies": { "is-inside-container": "^1.0.0" } }, "sha512-e6rvdUCiQCAuumZslxRJWR/Doq4VpPR82kqclvcS0efgt430SlGIk05vdCN58+VrzgtIcfNODjozVielycD4Sw=="],- "yalc/glob": ["[email protected]", "", { "dependencies": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", "inherits": "2", "minimatch": "^3.1.1", "once": "^1.3.0", "path-is-absolute": "^1.0.0" } }, "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q=="],+ "yalc/fs-extra": ["[email protected]", "", { "dependencies": { "graceful-fs": "^4.2.0", "jsonfile": "^4.0.0", "universalify": "^0.1.0" } }, "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g=="],"yargs/string-width": ["[email protected]", "", { "dependencies": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", "strip-ansi": "^6.0.1" } }, "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g=="],@@ -3947,6 +4082,12 @@"@inquirer/core/ansi-escapes/type-fest": ["[email protected]", "", {}, "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w=="],+ "@isaacs/cliui/string-width/emoji-regex": ["[email protected]", "", {}, "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg=="],++ "@isaacs/cliui/strip-ansi/ansi-regex": ["[email protected]", "", {}, "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg=="],++ "@isaacs/cliui/wrap-ansi/ansi-styles": ["[email protected]", "", {}, "sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg=="],+"@istanbuljs/load-nyc-config/find-up/locate-path": ["[email protected]", "", { "dependencies": { "p-locate": "^4.1.0" } }, "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g=="],"@istanbuljs/load-nyc-config/js-yaml/argparse": ["[email protected]", "", { "dependencies": { "sprintf-js": "~1.0.2" } }, "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg=="],@@ -4011,6 +4152,10 @@"@medusajs/cli/yargs/yargs-parser": ["[email protected]", "", {}, "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw=="],+ "@medusajs/dashboard/react-router-dom/@remix-run/router": ["@remix-run/[email protected]", "", {}, "sha512-4An71tdz9X8+3sI4Qqqd2LWd9vS39J7sqd9EU4Scw7TJE/qB10Flv/UuqbPVgfQV9XoK8Np6jNquZitnZq5i+Q=="],++ "@medusajs/dashboard/react-router-dom/react-router": ["[email protected]", "", { "dependencies": { "@remix-run/router": "1.23.3" }, "peerDependencies": { "react": ">=16.8" } }, "sha512-SVUsDe+DybHM/WmYKIVYhZh1o5Dcuf16yM6WjG02Q9XVFMZIJyHYhwrr6bFBXZkVP6z69kNkMyBCujt8FaFLJA=="],+"@medusajs/framework/glob/minimatch": ["[email protected]", "", { "dependencies": { "brace-expansion": "^5.0.5" } }, "sha512-MULkVLfKGYDFYejP07QOurDLLQpcjk7Fw+7jXS2R2czRQzR56yHRveU5NDJEOviH+hETZKSkIk5c+T23GjFUMg=="],"@medusajs/framework/glob/minipass": ["[email protected]", "", {}, "sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A=="],@@ -4021,8 +4166,6 @@"@mercurjs/dashboard-sdk/@types/node/undici-types": ["[email protected]", "", {}, "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ=="],- "@mercurjs/e2e-tests/@types/node/undici-types": ["[email protected]", "", {}, "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ=="],-"@mercurjs/integration-tests/@types/node/undici-types": ["[email protected]", "", {}, "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ=="],"@mercurjs/integration-tests/jest/@jest/core": ["@jest/[email protected]", "", { "dependencies": { "@jest/console": "30.4.1", "@jest/pattern": "30.4.0", "@jest/reporters": "30.4.1", "@jest/test-result": "30.4.1", "@jest/transform": "30.4.1", "@jest/types": "30.4.1", "@types/node": "*", "ansi-escapes": "^4.3.2", "chalk": "^4.1.2", "ci-info": "^4.2.0", "exit-x": "^0.2.2", "fast-json-stable-stringify": "^2.1.0", "graceful-fs": "^4.2.11", "jest-changed-files": "30.4.1", "jest-config": "30.4.2", "jest-haste-map": "30.4.1", "jest-message-util": "30.4.1", "jest-regex-util": "30.4.0", "jest-resolve": "30.4.1", "jest-resolve-dependencies": "30.4.2", "jest-runner": "30.4.2", "jest-runtime": "30.4.2", "jest-snapshot": "30.4.1", "jest-util": "30.4.1", "jest-validate": "30.4.1", "jest-watcher": "30.4.1", "pretty-format": "30.4.1", "slash": "^3.0.0" }, "peerDependencies": { "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" }, "optionalPeers": ["node-notifier"] }, "sha512-TZJA6cPJUFxoWhxaLo8t0VX/MZX2wPWr0uIDvLSHIvN4gu9h02vSzqI2kBADG1ExqQlC+cY09xKMSreivvrChQ=="],@@ -4051,17 +4194,19 @@"@oclif/errors/wrap-ansi/string-width": ["[email protected]", "", { "dependencies": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", "strip-ansi": "^6.0.1" } }, "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g=="],- "@oclif/help/@oclif/config/is-wsl": ["[email protected]", "", { "dependencies": { "is-docker": "^2.0.0" } }, "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww=="],+ "@oclif/help/@oclif/config/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],"@oclif/plugin-help/@oclif/config/@oclif/errors": ["@oclif/[email protected]", "", { "dependencies": { "clean-stack": "^3.0.0", "fs-extra": "^8.1", "indent-string": "^4.0.0", "strip-ansi": "^6.0.1", "wrap-ansi": "^7.0.0" } }, "sha512-fYaU4aDceETd89KXP+3cLyg9EHZsLD3RxF2IU9yxahhBpspWjkWi3Dy3bTgcwZ3V47BgxQaGapzJWDM33XIVDQ=="],- "@oclif/plugin-help/@oclif/config/is-wsl": ["[email protected]", "", { "dependencies": { "is-docker": "^2.0.0" } }, "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww=="],+ "@oclif/plugin-help/@oclif/config/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],"@oclif/plugin-help/@oclif/errors/fs-extra": ["[email protected]", "", { "dependencies": { "graceful-fs": "^4.2.0", "jsonfile": "^4.0.0", "universalify": "^0.1.0" } }, "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g=="],"@oclif/plugin-help/@oclif/errors/wrap-ansi": ["[email protected]", "", { "dependencies": { "ansi-styles": "^4.0.0", "string-width": "^4.1.0", "strip-ansi": "^6.0.0" } }, "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q=="],- "@opentelemetry/sdk-node/@opentelemetry/sdk-trace-node/@opentelemetry/context-async-hooks": ["@opentelemetry/[email protected]", "", { "peerDependencies": { "@opentelemetry/api": ">=1.0.0 <1.10.0" } }, "sha512-IEkJGzK1A9v3/EHjXh3s2IiFc6L4jfK+lNgKVgUjeUJQRRhnVFMIO3TAvKwonm9O1HebCuoOt98v8bZW7oVQHA=="],+ "@opentelemetry/sdk-node/@opentelemetry/instrumentation/import-in-the-middle": ["[email protected]", "", { "dependencies": { "acorn": "^8.15.0", "acorn-import-attributes": "^1.9.5", "cjs-module-lexer": "^2.2.0", "module-details-from-path": "^1.0.4" } }, "sha512-vR2B6HKIhaBjcZr2bLpFiJ1VbzOlRQ7aby4/gw5WPIzToLjqpfWw3VJ4sk1uDchoOODEirvO2jyrSPtUSL5CrQ=="],++ "@opentelemetry/sdk-node/@opentelemetry/instrumentation/require-in-the-middle": ["[email protected]", "", { "dependencies": { "debug": "^4.3.5", "module-details-from-path": "^1.0.3" } }, "sha512-QT7FVMXfWOYFbeRBF6nu+I6tr2Tf3u0q8RIEjNob/heKY/nh7drD/k7eeMFmSQgnTtCzLDcCu/XEnpW2wk4xCQ=="],"@rushstack/node-core-library/ajv/json-schema-traverse": ["[email protected]", "", {}, "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug=="],@@ -4129,8 +4274,6 @@"finalhandler/debug/ms": ["[email protected]", "", {}, "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A=="],- "glob/minimatch/brace-expansion": ["[email protected]", "", { "dependencies": { "balanced-match": "^4.0.2" } }, "sha512-kLpxurY4Z4r9sgMsyG0Z9uzsBlgiU/EFKhj/h91/8yHu0edo7XuixOIH3VcJ8kkxs6/jPzoI6U9Vj3WqbMQ94g=="],-"import-local/pkg-dir/find-up": ["[email protected]", "", { "dependencies": { "locate-path": "^5.0.0", "path-exists": "^4.0.0" } }, "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw=="],"inquirer/ansi-escapes/type-fest": ["[email protected]", "", {}, "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w=="],@@ -4471,6 +4614,8 @@"@oclif/plugin-help/@oclif/errors/fs-extra/universalify": ["[email protected]", "", {}, "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg=="],+ "@opentelemetry/sdk-node/@opentelemetry/instrumentation/import-in-the-middle/cjs-module-lexer": ["[email protected]", "", {}, "sha512-4bHTS2YuzUvtoLjdy+98ykbNB5jS0+07EvFNXerqZQJ89F7DI6ET7OQo/HJuW6K0aVsKA9hj9/RVb2kQVOrPDQ=="],+"@ts-morph/common/minimatch/brace-expansion/balanced-match": ["[email protected]", "", {}, "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA=="],"@typescript-eslint/typescript-estree/minimatch/brace-expansion/balanced-match": ["[email protected]", "", {}, "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA=="],@@ -4489,7 +4634,7 @@"cmdk/@radix-ui/react-dialog/@radix-ui/react-use-controllable-state/@radix-ui/react-use-callback-ref": ["@radix-ui/[email protected]", "", { "dependencies": { "@babel/runtime": "^7.13.10" }, "peerDependencies": { "react": "^16.8 || ^17.0 || ^18.0" } }, "sha512-GZtyzoHz95Rhs6S63D2t/eqvdFCm7I+yHMLVQheKM7nBD8mbZIt+ct1jz4536MDnaOGKIxynJ8eHTkVGVVkoTg=="],- "glob/minimatch/brace-expansion/balanced-match": ["[email protected]", "", {}, "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA=="],+ "cmdk/@radix-ui/react-dialog/react-remove-scroll/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],"import-local/pkg-dir/find-up/locate-path": ["[email protected]", "", { "dependencies": { "p-locate": "^4.1.0" } }, "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g=="],@@ -4761,8 +4906,6 @@"@mercurjs/core/pkg-dir/find-up/locate-path/p-locate/p-limit": ["[email protected]", "", { "dependencies": { "p-try": "^2.0.0" } }, "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w=="],- "@mercurjs/integration-tests/jest/@jest/core/@jest/reporters/glob/jackspeak": ["[email protected]", "", { "dependencies": { "@isaacs/cliui": "^8.0.2" }, "optionalDependencies": { "@pkgjs/parseargs": "^0.11.0" } }, "sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw=="],-"@mercurjs/integration-tests/jest/@jest/core/@jest/reporters/glob/minimatch": ["[email protected]", "", { "dependencies": { "brace-expansion": "^2.0.2" } }, "sha512-OBwBN9AL4dqmETlpS2zasx+vTeWclWzkblfZk7KTA5j3jeOONz/tRCnZomUyvNg83wL5Zv9Ss6HMJXAgL8R2Yg=="],"@mercurjs/integration-tests/jest/@jest/core/@jest/reporters/glob/minipass": ["[email protected]", "", {}, "sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A=="],@@ -4785,8 +4928,6 @@"@mercurjs/integration-tests/jest/@jest/core/jest-config/babel-jest/babel-preset-jest": ["[email protected]", "", { "dependencies": { "babel-plugin-jest-hoist": "30.4.0", "babel-preset-current-node-syntax": "^1.2.0" }, "peerDependencies": { "@babel/core": "^7.11.0 || ^8.0.0-beta.1" } }, "sha512-lBY4jxsNmCnSiu7kquw8ZC9F4+XLMOKypT3RnNHPvU2Kpd4W0xaPuLr5ZkRyOsvLYAY4yaW1ZwTW4xB7NIiZzg=="],- "@mercurjs/integration-tests/jest/@jest/core/jest-config/glob/jackspeak": ["[email protected]", "", { "dependencies": { "@isaacs/cliui": "^8.0.2" }, "optionalDependencies": { "@pkgjs/parseargs": "^0.11.0" } }, "sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw=="],-"@mercurjs/integration-tests/jest/@jest/core/jest-config/glob/minimatch": ["[email protected]", "", { "dependencies": { "brace-expansion": "^2.0.2" } }, "sha512-OBwBN9AL4dqmETlpS2zasx+vTeWclWzkblfZk7KTA5j3jeOONz/tRCnZomUyvNg83wL5Zv9Ss6HMJXAgL8R2Yg=="],"@mercurjs/integration-tests/jest/@jest/core/jest-config/glob/minipass": ["[email protected]", "", {}, "sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A=="],@@ -4823,8 +4964,6 @@"@mercurjs/integration-tests/jest/@jest/core/jest-runtime/@jest/source-map/@jridgewell/trace-mapping": ["@jridgewell/[email protected]", "", { "dependencies": { "@jridgewell/resolve-uri": "^3.1.0", "@jridgewell/sourcemap-codec": "^1.4.14" } }, "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw=="],- "@mercurjs/integration-tests/jest/@jest/core/jest-runtime/glob/jackspeak": ["[email protected]", "", { "dependencies": { "@isaacs/cliui": "^8.0.2" }, "optionalDependencies": { "@pkgjs/parseargs": "^0.11.0" } }, "sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw=="],-"@mercurjs/integration-tests/jest/@jest/core/jest-runtime/glob/minimatch": ["[email protected]", "", { "dependencies": { "brace-expansion": "^2.0.2" } }, "sha512-OBwBN9AL4dqmETlpS2zasx+vTeWclWzkblfZk7KTA5j3jeOONz/tRCnZomUyvNg83wL5Zv9Ss6HMJXAgL8R2Yg=="],"@mercurjs/integration-tests/jest/@jest/core/jest-runtime/glob/minipass": ["[email protected]", "", {}, "sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A=="],@@ -4841,8 +4980,6 @@"@mercurjs/integration-tests/jest/jest-cli/jest-config/babel-jest/babel-preset-jest": ["[email protected]", "", { "dependencies": { "babel-plugin-jest-hoist": "30.4.0", "babel-preset-current-node-syntax": "^1.2.0" }, "peerDependencies": { "@babel/core": "^7.11.0 || ^8.0.0-beta.1" } }, "sha512-lBY4jxsNmCnSiu7kquw8ZC9F4+XLMOKypT3RnNHPvU2Kpd4W0xaPuLr5ZkRyOsvLYAY4yaW1ZwTW4xB7NIiZzg=="],- "@mercurjs/integration-tests/jest/jest-cli/jest-config/glob/jackspeak": ["[email protected]", "", { "dependencies": { "@isaacs/cliui": "^8.0.2" }, "optionalDependencies": { "@pkgjs/parseargs": "^0.11.0" } }, "sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw=="],-"@mercurjs/integration-tests/jest/jest-cli/jest-config/glob/minimatch": ["[email protected]", "", { "dependencies": { "brace-expansion": "^2.0.2" } }, "sha512-OBwBN9AL4dqmETlpS2zasx+vTeWclWzkblfZk7KTA5j3jeOONz/tRCnZomUyvNg83wL5Zv9Ss6HMJXAgL8R2Yg=="],"@mercurjs/integration-tests/jest/jest-cli/jest-config/glob/minipass": ["[email protected]", "", {}, "sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A=="],@@ -4901,8 +5038,6 @@"@mercurjs/integration-tests/jest/jest-cli/yargs/cliui/wrap-ansi": ["[email protected]", "", { "dependencies": { "ansi-styles": "^4.0.0", "string-width": "^4.1.0", "strip-ansi": "^6.0.0" } }, "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q=="],- "@mercurjs/registry/jest/@jest/core/@jest/reporters/glob/jackspeak": ["[email protected]", "", { "dependencies": { "@isaacs/cliui": "^8.0.2" }, "optionalDependencies": { "@pkgjs/parseargs": "^0.11.0" } }, "sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw=="],-"@mercurjs/registry/jest/@jest/core/@jest/reporters/glob/minimatch": ["[email protected]", "", { "dependencies": { "brace-expansion": "^2.0.2" } }, "sha512-OBwBN9AL4dqmETlpS2zasx+vTeWclWzkblfZk7KTA5j3jeOONz/tRCnZomUyvNg83wL5Zv9Ss6HMJXAgL8R2Yg=="],"@mercurjs/registry/jest/@jest/core/@jest/reporters/glob/minipass": ["[email protected]", "", {}, "sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A=="],@@ -4925,8 +5060,6 @@"@mercurjs/registry/jest/@jest/core/jest-config/babel-jest/babel-preset-jest": ["[email protected]", "", { "dependencies": { "babel-plugin-jest-hoist": "30.4.0", "babel-preset-current-node-syntax": "^1.2.0" }, "peerDependencies": { "@babel/core": "^7.11.0 || ^8.0.0-beta.1" } }, "sha512-lBY4jxsNmCnSiu7kquw8ZC9F4+XLMOKypT3RnNHPvU2Kpd4W0xaPuLr5ZkRyOsvLYAY4yaW1ZwTW4xB7NIiZzg=="],- "@mercurjs/registry/jest/@jest/core/jest-config/glob/jackspeak": ["[email protected]", "", { "dependencies": { "@isaacs/cliui": "^8.0.2" }, "optionalDependencies": { "@pkgjs/parseargs": "^0.11.0" } }, "sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw=="],-"@mercurjs/registry/jest/@jest/core/jest-config/glob/minimatch": ["[email protected]", "", { "dependencies": { "brace-expansion": "^2.0.2" } }, "sha512-OBwBN9AL4dqmETlpS2zasx+vTeWclWzkblfZk7KTA5j3jeOONz/tRCnZomUyvNg83wL5Zv9Ss6HMJXAgL8R2Yg=="],"@mercurjs/registry/jest/@jest/core/jest-config/glob/minipass": ["[email protected]", "", {}, "sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A=="],@@ -4963,8 +5096,6 @@"@mercurjs/registry/jest/@jest/core/jest-runtime/@jest/source-map/@jridgewell/trace-mapping": ["@jridgewell/[email protected]", "", { "dependencies": { "@jridgewell/resolve-uri": "^3.1.0", "@jridgewell/sourcemap-codec": "^1.4.14" } }, "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw=="],- "@mercurjs/registry/jest/@jest/core/jest-runtime/glob/jackspeak": ["[email protected]", "", { "dependencies": { "@isaacs/cliui": "^8.0.2" }, "optionalDependencies": { "@pkgjs/parseargs": "^0.11.0" } }, "sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw=="],-"@mercurjs/registry/jest/@jest/core/jest-runtime/glob/minimatch": ["[email protected]", "", { "dependencies": { "brace-expansion": "^2.0.2" } }, "sha512-OBwBN9AL4dqmETlpS2zasx+vTeWclWzkblfZk7KTA5j3jeOONz/tRCnZomUyvNg83wL5Zv9Ss6HMJXAgL8R2Yg=="],"@mercurjs/registry/jest/@jest/core/jest-runtime/glob/minipass": ["[email protected]", "", {}, "sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A=="],@@ -4981,8 +5112,6 @@"@mercurjs/registry/jest/jest-cli/jest-config/babel-jest/babel-preset-jest": ["[email protected]", "", { "dependencies": { "babel-plugin-jest-hoist": "30.4.0", "babel-preset-current-node-syntax": "^1.2.0" }, "peerDependencies": { "@babel/core": "^7.11.0 || ^8.0.0-beta.1" } }, "sha512-lBY4jxsNmCnSiu7kquw8ZC9F4+XLMOKypT3RnNHPvU2Kpd4W0xaPuLr5ZkRyOsvLYAY4yaW1ZwTW4xB7NIiZzg=="],- "@mercurjs/registry/jest/jest-cli/jest-config/glob/jackspeak": ["[email protected]", "", { "dependencies": { "@isaacs/cliui": "^8.0.2" }, "optionalDependencies": { "@pkgjs/parseargs": "^0.11.0" } }, "sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw=="],-"@mercurjs/registry/jest/jest-cli/jest-config/glob/minimatch": ["[email protected]", "", { "dependencies": { "brace-expansion": "^2.0.2" } }, "sha512-OBwBN9AL4dqmETlpS2zasx+vTeWclWzkblfZk7KTA5j3jeOONz/tRCnZomUyvNg83wL5Zv9Ss6HMJXAgL8R2Yg=="],"@mercurjs/registry/jest/jest-cli/jest-config/glob/minipass": ["[email protected]", "", {}, "sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A=="],@@ -5047,16 +5176,12 @@"qrcode/yargs/find-up/locate-path/p-locate/p-limit": ["[email protected]", "", { "dependencies": { "p-try": "^2.0.0" } }, "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w=="],- "@mercurjs/integration-tests/jest/@jest/core/@jest/reporters/glob/jackspeak/@isaacs/cliui": ["@isaacs/[email protected]", "", { "dependencies": { "string-width": "^5.1.2", "string-width-cjs": "npm:string-width@^4.2.0", "strip-ansi": "^7.0.1", "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", "wrap-ansi": "^8.1.0", "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" } }, "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA=="],-"@mercurjs/integration-tests/jest/@jest/core/@jest/reporters/glob/minimatch/brace-expansion": ["[email protected]", "", { "dependencies": { "balanced-match": "^1.0.0" } }, "sha512-WR1cURNjuvBLMZBMbqM0UoE+WAfdUcEV1ccD8PVBVOI+Z3ND4+SZbN8RsfT2bMuG1qwz5RFvPukSZm5fF2D5eA=="],"@mercurjs/integration-tests/jest/@jest/core/@jest/reporters/glob/path-scurry/lru-cache": ["[email protected]", "", {}, "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ=="],"@mercurjs/integration-tests/jest/@jest/core/jest-config/babel-jest/babel-preset-jest/babel-plugin-jest-hoist": ["[email protected]", "", { "dependencies": { "@types/babel__core": "^7.20.5" } }, "sha512-9EdtWM/sSfXLOGLwSn+GS6pIXyBnL07/8gyJlwFXjWy4DxMOyItqyUT29d4lQiS380EZwYlX7/At4PgBS+m2aA=="],- "@mercurjs/integration-tests/jest/@jest/core/jest-config/glob/jackspeak/@isaacs/cliui": ["@isaacs/[email protected]", "", { "dependencies": { "string-width": "^5.1.2", "string-width-cjs": "npm:string-width@^4.2.0", "strip-ansi": "^7.0.1", "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", "wrap-ansi": "^8.1.0", "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" } }, "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA=="],-"@mercurjs/integration-tests/jest/@jest/core/jest-config/glob/minimatch/brace-expansion": ["[email protected]", "", { "dependencies": { "balanced-match": "^1.0.0" } }, "sha512-WR1cURNjuvBLMZBMbqM0UoE+WAfdUcEV1ccD8PVBVOI+Z3ND4+SZbN8RsfT2bMuG1qwz5RFvPukSZm5fF2D5eA=="],"@mercurjs/integration-tests/jest/@jest/core/jest-config/glob/path-scurry/lru-cache": ["[email protected]", "", {}, "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ=="],@@ -5077,8 +5202,6 @@"@mercurjs/integration-tests/jest/@jest/core/jest-runtime/@jest/globals/@jest/expect/expect": ["[email protected]", "", { "dependencies": { "@jest/expect-utils": "30.4.1", "@jest/get-type": "30.1.0", "jest-matcher-utils": "30.4.1", "jest-message-util": "30.4.1", "jest-mock": "30.4.1", "jest-util": "30.4.1" } }, "sha512-PMARsyh/JtqC20HoGqlFcIlQAyqUtW4PlI1rup1uhYJtKuwAjbvWi3GQMAn+STdHum/dk8xrKfUM1+5SAwpolA=="],- "@mercurjs/integration-tests/jest/@jest/core/jest-runtime/glob/jackspeak/@isaacs/cliui": ["@isaacs/[email protected]", "", { "dependencies": { "string-width": "^5.1.2", "string-width-cjs": "npm:string-width@^4.2.0", "strip-ansi": "^7.0.1", "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", "wrap-ansi": "^8.1.0", "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" } }, "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA=="],-"@mercurjs/integration-tests/jest/@jest/core/jest-runtime/glob/minimatch/brace-expansion": ["[email protected]", "", { "dependencies": { "balanced-match": "^1.0.0" } }, "sha512-WR1cURNjuvBLMZBMbqM0UoE+WAfdUcEV1ccD8PVBVOI+Z3ND4+SZbN8RsfT2bMuG1qwz5RFvPukSZm5fF2D5eA=="],"@mercurjs/integration-tests/jest/@jest/core/jest-runtime/glob/path-scurry/lru-cache": ["[email protected]", "", {}, "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ=="],@@ -5089,8 +5212,6 @@"@mercurjs/integration-tests/jest/jest-cli/jest-config/babel-jest/babel-preset-jest/babel-plugin-jest-hoist": ["[email protected]", "", { "dependencies": { "@types/babel__core": "^7.20.5" } }, "sha512-9EdtWM/sSfXLOGLwSn+GS6pIXyBnL07/8gyJlwFXjWy4DxMOyItqyUT29d4lQiS380EZwYlX7/At4PgBS+m2aA=="],- "@mercurjs/integration-tests/jest/jest-cli/jest-config/glob/jackspeak/@isaacs/cliui": ["@isaacs/[email protected]", "", { "dependencies": { "string-width": "^5.1.2", "string-width-cjs": "npm:string-width@^4.2.0", "strip-ansi": "^7.0.1", "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", "wrap-ansi": "^8.1.0", "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" } }, "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA=="],-"@mercurjs/integration-tests/jest/jest-cli/jest-config/glob/minimatch/brace-expansion": ["[email protected]", "", { "dependencies": { "balanced-match": "^1.0.0" } }, "sha512-WR1cURNjuvBLMZBMbqM0UoE+WAfdUcEV1ccD8PVBVOI+Z3ND4+SZbN8RsfT2bMuG1qwz5RFvPukSZm5fF2D5eA=="],"@mercurjs/integration-tests/jest/jest-cli/jest-config/glob/path-scurry/lru-cache": ["[email protected]", "", {}, "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ=="],@@ -5165,16 +5286,12 @@"@mercurjs/integration-tests/jest/jest-cli/jest-validate/pretty-format/@jest/schemas/@sinclair/typebox": ["@sinclair/[email protected]", "", {}, "sha512-brySQQs7Jtn0joV8Xh9ZV/hZb9Ozb0pmazDIASBkYKCjXrXU3mpcFahmK/z4YDhGkQvP9mWJbVyahdtU5wQA+A=="],- "@mercurjs/registry/jest/@jest/core/@jest/reporters/glob/jackspeak/@isaacs/cliui": ["@isaacs/[email protected]", "", { "dependencies": { "string-width": "^5.1.2", "string-width-cjs": "npm:string-width@^4.2.0", "strip-ansi": "^7.0.1", "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", "wrap-ansi": "^8.1.0", "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" } }, "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA=="],-"@mercurjs/registry/jest/@jest/core/@jest/reporters/glob/minimatch/brace-expansion": ["[email protected]", "", { "dependencies": { "balanced-match": "^1.0.0" } }, "sha512-WR1cURNjuvBLMZBMbqM0UoE+WAfdUcEV1ccD8PVBVOI+Z3ND4+SZbN8RsfT2bMuG1qwz5RFvPukSZm5fF2D5eA=="],"@mercurjs/registry/jest/@jest/core/@jest/reporters/glob/path-scurry/lru-cache": ["[email protected]", "", {}, "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ=="],"@mercurjs/registry/jest/@jest/core/jest-config/babel-jest/babel-preset-jest/babel-plugin-jest-hoist": ["[email protected]", "", { "dependencies": { "@types/babel__core": "^7.20.5" } }, "sha512-9EdtWM/sSfXLOGLwSn+GS6pIXyBnL07/8gyJlwFXjWy4DxMOyItqyUT29d4lQiS380EZwYlX7/At4PgBS+m2aA=="],- "@mercurjs/registry/jest/@jest/core/jest-config/glob/jackspeak/@isaacs/cliui": ["@isaacs/[email protected]", "", { "dependencies": { "string-width": "^5.1.2", "string-width-cjs": "npm:string-width@^4.2.0", "strip-ansi": "^7.0.1", "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", "wrap-ansi": "^8.1.0", "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" } }, "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA=="],-"@mercurjs/registry/jest/@jest/core/jest-config/glob/minimatch/brace-expansion": ["[email protected]", "", { "dependencies": { "balanced-match": "^1.0.0" } }, "sha512-WR1cURNjuvBLMZBMbqM0UoE+WAfdUcEV1ccD8PVBVOI+Z3ND4+SZbN8RsfT2bMuG1qwz5RFvPukSZm5fF2D5eA=="],"@mercurjs/registry/jest/@jest/core/jest-config/glob/path-scurry/lru-cache": ["[email protected]", "", {}, "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ=="],@@ -5195,8 +5312,6 @@"@mercurjs/registry/jest/@jest/core/jest-runtime/@jest/globals/@jest/expect/expect": ["[email protected]", "", { "dependencies": { "@jest/expect-utils": "30.4.1", "@jest/get-type": "30.1.0", "jest-matcher-utils": "30.4.1", "jest-message-util": "30.4.1", "jest-mock": "30.4.1", "jest-util": "30.4.1" } }, "sha512-PMARsyh/JtqC20HoGqlFcIlQAyqUtW4PlI1rup1uhYJtKuwAjbvWi3GQMAn+STdHum/dk8xrKfUM1+5SAwpolA=="],- "@mercurjs/registry/jest/@jest/core/jest-runtime/glob/jackspeak/@isaacs/cliui": ["@isaacs/[email protected]", "", { "dependencies": { "string-width": "^5.1.2", "string-width-cjs": "npm:string-width@^4.2.0", "strip-ansi": "^7.0.1", "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", "wrap-ansi": "^8.1.0", "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" } }, "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA=="],-"@mercurjs/registry/jest/@jest/core/jest-runtime/glob/minimatch/brace-expansion": ["[email protected]", "", { "dependencies": { "balanced-match": "^1.0.0" } }, "sha512-WR1cURNjuvBLMZBMbqM0UoE+WAfdUcEV1ccD8PVBVOI+Z3ND4+SZbN8RsfT2bMuG1qwz5RFvPukSZm5fF2D5eA=="],"@mercurjs/registry/jest/@jest/core/jest-runtime/glob/path-scurry/lru-cache": ["[email protected]", "", {}, "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ=="],@@ -5207,8 +5322,6 @@"@mercurjs/registry/jest/jest-cli/jest-config/babel-jest/babel-preset-jest/babel-plugin-jest-hoist": ["[email protected]", "", { "dependencies": { "@types/babel__core": "^7.20.5" } }, "sha512-9EdtWM/sSfXLOGLwSn+GS6pIXyBnL07/8gyJlwFXjWy4DxMOyItqyUT29d4lQiS380EZwYlX7/At4PgBS+m2aA=="],- "@mercurjs/registry/jest/jest-cli/jest-config/glob/jackspeak/@isaacs/cliui": ["@isaacs/[email protected]", "", { "dependencies": { "string-width": "^5.1.2", "string-width-cjs": "npm:string-width@^4.2.0", "strip-ansi": "^7.0.1", "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", "wrap-ansi": "^8.1.0", "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" } }, "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA=="],-"@mercurjs/registry/jest/jest-cli/jest-config/glob/minimatch/brace-expansion": ["[email protected]", "", { "dependencies": { "balanced-match": "^1.0.0" } }, "sha512-WR1cURNjuvBLMZBMbqM0UoE+WAfdUcEV1ccD8PVBVOI+Z3ND4+SZbN8RsfT2bMuG1qwz5RFvPukSZm5fF2D5eA=="],"@mercurjs/registry/jest/jest-cli/jest-config/glob/path-scurry/lru-cache": ["[email protected]", "", {}, "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ=="],@@ -5283,18 +5396,6 @@"@mercurjs/registry/jest/jest-cli/jest-validate/pretty-format/@jest/schemas/@sinclair/typebox": ["@sinclair/[email protected]", "", {}, "sha512-brySQQs7Jtn0joV8Xh9ZV/hZb9Ozb0pmazDIASBkYKCjXrXU3mpcFahmK/z4YDhGkQvP9mWJbVyahdtU5wQA+A=="],- "@mercurjs/integration-tests/jest/@jest/core/@jest/reporters/glob/jackspeak/@isaacs/cliui/string-width": ["[email protected]", "", { "dependencies": { "eastasianwidth": "^0.2.0", "emoji-regex": "^9.2.2", "strip-ansi": "^7.0.1" } }, "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA=="],-- "@mercurjs/integration-tests/jest/@jest/core/@jest/reporters/glob/jackspeak/@isaacs/cliui/strip-ansi": ["[email protected]", "", { "dependencies": { "ansi-regex": "^6.2.2" } }, "sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w=="],-- "@mercurjs/integration-tests/jest/@jest/core/@jest/reporters/glob/jackspeak/@isaacs/cliui/wrap-ansi": ["[email protected]", "", { "dependencies": { "ansi-styles": "^6.1.0", "string-width": "^5.0.1", "strip-ansi": "^7.0.1" } }, "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ=="],-- "@mercurjs/integration-tests/jest/@jest/core/jest-config/glob/jackspeak/@isaacs/cliui/string-width": ["[email protected]", "", { "dependencies": { "eastasianwidth": "^0.2.0", "emoji-regex": "^9.2.2", "strip-ansi": "^7.0.1" } }, "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA=="],-- "@mercurjs/integration-tests/jest/@jest/core/jest-config/glob/jackspeak/@isaacs/cliui/strip-ansi": ["[email protected]", "", { "dependencies": { "ansi-regex": "^6.2.2" } }, "sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w=="],-- "@mercurjs/integration-tests/jest/@jest/core/jest-config/glob/jackspeak/@isaacs/cliui/wrap-ansi": ["[email protected]", "", { "dependencies": { "ansi-styles": "^6.1.0", "string-width": "^5.0.1", "strip-ansi": "^7.0.1" } }, "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ=="],-"@mercurjs/integration-tests/jest/@jest/core/jest-config/jest-circus/@jest/environment/@jest/fake-timers/@sinonjs/fake-timers": ["@sinonjs/[email protected]", "", { "dependencies": { "@sinonjs/commons": "^3.0.1" } }, "sha512-DsG+8/LscQIQg68J6Ef3dv10u6nVyetYn923s3/sus5eaGfTo1of5WMZSLf0UJc9KDuKPilPH0UDJCjvNbDNCA=="],"@mercurjs/integration-tests/jest/@jest/core/jest-config/jest-circus/@jest/expect/expect/@jest/expect-utils": ["@jest/[email protected]", "", { "dependencies": { "@jest/get-type": "30.1.0" } }, "sha512-ZBn5CglH8fBsQsvs4VWNzD4aWfUYks+IdOOQU3MEK71ol/BcVm+P+rtb1KpiFBpSWSCE27uOahyyf1vfqOVbcQ=="],@@ -5305,18 +5406,6 @@"@mercurjs/integration-tests/jest/@jest/core/jest-runtime/@jest/globals/@jest/expect/expect/jest-matcher-utils": ["[email protected]", "", { "dependencies": { "@jest/get-type": "30.1.0", "chalk": "^4.1.2", "jest-diff": "30.4.1", "pretty-format": "30.4.1" } }, "sha512-zvYfX5CaeEkFrrLS9suWe9rvJrm9J1Iv3ua8kIBv9GEPzcnsfBf0bob37la7s67fs0nlBC3EuvkOLnXQKxtx4A=="],- "@mercurjs/integration-tests/jest/@jest/core/jest-runtime/glob/jackspeak/@isaacs/cliui/string-width": ["[email protected]", "", { "dependencies": { "eastasianwidth": "^0.2.0", "emoji-regex": "^9.2.2", "strip-ansi": "^7.0.1" } }, "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA=="],-- "@mercurjs/integration-tests/jest/@jest/core/jest-runtime/glob/jackspeak/@isaacs/cliui/strip-ansi": ["[email protected]", "", { "dependencies": { "ansi-regex": "^6.2.2" } }, "sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w=="],-- "@mercurjs/integration-tests/jest/@jest/core/jest-runtime/glob/jackspeak/@isaacs/cliui/wrap-ansi": ["[email protected]", "", { "dependencies": { "ansi-styles": "^6.1.0", "string-width": "^5.0.1", "strip-ansi": "^7.0.1" } }, "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ=="],-- "@mercurjs/integration-tests/jest/jest-cli/jest-config/glob/jackspeak/@isaacs/cliui/string-width": ["[email protected]", "", { "dependencies": { "eastasianwidth": "^0.2.0", "emoji-regex": "^9.2.2", "strip-ansi": "^7.0.1" } }, "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA=="],-- "@mercurjs/integration-tests/jest/jest-cli/jest-config/glob/jackspeak/@isaacs/cliui/strip-ansi": ["[email protected]", "", { "dependencies": { "ansi-regex": "^6.2.2" } }, "sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w=="],-- "@mercurjs/integration-tests/jest/jest-cli/jest-config/glob/jackspeak/@isaacs/cliui/wrap-ansi": ["[email protected]", "", { "dependencies": { "ansi-styles": "^6.1.0", "string-width": "^5.0.1", "strip-ansi": "^7.0.1" } }, "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ=="],-"@mercurjs/integration-tests/jest/jest-cli/jest-config/jest-circus/@jest/environment/@jest/fake-timers/@sinonjs/fake-timers": ["@sinonjs/[email protected]", "", { "dependencies": { "@sinonjs/commons": "^3.0.1" } }, "sha512-DsG+8/LscQIQg68J6Ef3dv10u6nVyetYn923s3/sus5eaGfTo1of5WMZSLf0UJc9KDuKPilPH0UDJCjvNbDNCA=="],"@mercurjs/integration-tests/jest/jest-cli/jest-config/jest-circus/@jest/expect/expect/@jest/expect-utils": ["@jest/[email protected]", "", { "dependencies": { "@jest/get-type": "30.1.0" } }, "sha512-ZBn5CglH8fBsQsvs4VWNzD4aWfUYks+IdOOQU3MEK71ol/BcVm+P+rtb1KpiFBpSWSCE27uOahyyf1vfqOVbcQ=="],@@ -5363,18 +5452,6 @@"@mercurjs/integration-tests/jest/jest-cli/jest-config/jest-runner/jest-watcher/ansi-escapes/type-fest": ["[email protected]", "", {}, "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w=="],- "@mercurjs/registry/jest/@jest/core/@jest/reporters/glob/jackspeak/@isaacs/cliui/string-width": ["[email protected]", "", { "dependencies": { "eastasianwidth": "^0.2.0", "emoji-regex": "^9.2.2", "strip-ansi": "^7.0.1" } }, "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA=="],-- "@mercurjs/registry/jest/@jest/core/@jest/reporters/glob/jackspeak/@isaacs/cliui/strip-ansi": ["[email protected]", "", { "dependencies": { "ansi-regex": "^6.2.2" } }, "sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w=="],-- "@mercurjs/registry/jest/@jest/core/@jest/reporters/glob/jackspeak/@isaacs/cliui/wrap-ansi": ["[email protected]", "", { "dependencies": { "ansi-styles": "^6.1.0", "string-width": "^5.0.1", "strip-ansi": "^7.0.1" } }, "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ=="],-- "@mercurjs/registry/jest/@jest/core/jest-config/glob/jackspeak/@isaacs/cliui/string-width": ["[email protected]", "", { "dependencies": { "eastasianwidth": "^0.2.0", "emoji-regex": "^9.2.2", "strip-ansi": "^7.0.1" } }, "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA=="],-- "@mercurjs/registry/jest/@jest/core/jest-config/glob/jackspeak/@isaacs/cliui/strip-ansi": ["[email protected]", "", { "dependencies": { "ansi-regex": "^6.2.2" } }, "sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w=="],-- "@mercurjs/registry/jest/@jest/core/jest-config/glob/jackspeak/@isaacs/cliui/wrap-ansi": ["[email protected]", "", { "dependencies": { "ansi-styles": "^6.1.0", "string-width": "^5.0.1", "strip-ansi": "^7.0.1" } }, "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ=="],-"@mercurjs/registry/jest/@jest/core/jest-config/jest-circus/@jest/environment/@jest/fake-timers/@sinonjs/fake-timers": ["@sinonjs/[email protected]", "", { "dependencies": { "@sinonjs/commons": "^3.0.1" } }, "sha512-DsG+8/LscQIQg68J6Ef3dv10u6nVyetYn923s3/sus5eaGfTo1of5WMZSLf0UJc9KDuKPilPH0UDJCjvNbDNCA=="],"@mercurjs/registry/jest/@jest/core/jest-config/jest-circus/@jest/expect/expect/@jest/expect-utils": ["@jest/[email protected]", "", { "dependencies": { "@jest/get-type": "30.1.0" } }, "sha512-ZBn5CglH8fBsQsvs4VWNzD4aWfUYks+IdOOQU3MEK71ol/BcVm+P+rtb1KpiFBpSWSCE27uOahyyf1vfqOVbcQ=="],@@ -5385,18 +5462,6 @@"@mercurjs/registry/jest/@jest/core/jest-runtime/@jest/globals/@jest/expect/expect/jest-matcher-utils": ["[email protected]", "", { "dependencies": { "@jest/get-type": "30.1.0", "chalk": "^4.1.2", "jest-diff": "30.4.1", "pretty-format": "30.4.1" } }, "sha512-zvYfX5CaeEkFrrLS9suWe9rvJrm9J1Iv3ua8kIBv9GEPzcnsfBf0bob37la7s67fs0nlBC3EuvkOLnXQKxtx4A=="],- "@mercurjs/registry/jest/@jest/core/jest-runtime/glob/jackspeak/@isaacs/cliui/string-width": ["[email protected]", "", { "dependencies": { "eastasianwidth": "^0.2.0", "emoji-regex": "^9.2.2", "strip-ansi": "^7.0.1" } }, "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA=="],-- "@mercurjs/registry/jest/@jest/core/jest-runtime/glob/jackspeak/@isaacs/cliui/strip-ansi": ["[email protected]", "", { "dependencies": { "ansi-regex": "^6.2.2" } }, "sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w=="],-- "@mercurjs/registry/jest/@jest/core/jest-runtime/glob/jackspeak/@isaacs/cliui/wrap-ansi": ["[email protected]", "", { "dependencies": { "ansi-styles": "^6.1.0", "string-width": "^5.0.1", "strip-ansi": "^7.0.1" } }, "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ=="],-- "@mercurjs/registry/jest/jest-cli/jest-config/glob/jackspeak/@isaacs/cliui/string-width": ["[email protected]", "", { "dependencies": { "eastasianwidth": "^0.2.0", "emoji-regex": "^9.2.2", "strip-ansi": "^7.0.1" } }, "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA=="],-- "@mercurjs/registry/jest/jest-cli/jest-config/glob/jackspeak/@isaacs/cliui/strip-ansi": ["[email protected]", "", { "dependencies": { "ansi-regex": "^6.2.2" } }, "sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w=="],-- "@mercurjs/registry/jest/jest-cli/jest-config/glob/jackspeak/@isaacs/cliui/wrap-ansi": ["[email protected]", "", { "dependencies": { "ansi-styles": "^6.1.0", "string-width": "^5.0.1", "strip-ansi": "^7.0.1" } }, "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ=="],-"@mercurjs/registry/jest/jest-cli/jest-config/jest-circus/@jest/environment/@jest/fake-timers/@sinonjs/fake-timers": ["@sinonjs/[email protected]", "", { "dependencies": { "@sinonjs/commons": "^3.0.1" } }, "sha512-DsG+8/LscQIQg68J6Ef3dv10u6nVyetYn923s3/sus5eaGfTo1of5WMZSLf0UJc9KDuKPilPH0UDJCjvNbDNCA=="],"@mercurjs/registry/jest/jest-cli/jest-config/jest-circus/@jest/expect/expect/@jest/expect-utils": ["@jest/[email protected]", "", { "dependencies": { "@jest/get-type": "30.1.0" } }, "sha512-ZBn5CglH8fBsQsvs4VWNzD4aWfUYks+IdOOQU3MEK71ol/BcVm+P+rtb1KpiFBpSWSCE27uOahyyf1vfqOVbcQ=="],@@ -5443,60 +5508,12 @@"@mercurjs/registry/jest/jest-cli/jest-config/jest-runner/jest-watcher/ansi-escapes/type-fest": ["[email protected]", "", {}, "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w=="],- "@mercurjs/integration-tests/jest/@jest/core/@jest/reporters/glob/jackspeak/@isaacs/cliui/string-width/emoji-regex": ["[email protected]", "", {}, "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg=="],-- "@mercurjs/integration-tests/jest/@jest/core/@jest/reporters/glob/jackspeak/@isaacs/cliui/strip-ansi/ansi-regex": ["[email protected]", "", {}, "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg=="],-- "@mercurjs/integration-tests/jest/@jest/core/@jest/reporters/glob/jackspeak/@isaacs/cliui/wrap-ansi/ansi-styles": ["[email protected]", "", {}, "sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg=="],-- "@mercurjs/integration-tests/jest/@jest/core/jest-config/glob/jackspeak/@isaacs/cliui/string-width/emoji-regex": ["[email protected]", "", {}, "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg=="],-- "@mercurjs/integration-tests/jest/@jest/core/jest-config/glob/jackspeak/@isaacs/cliui/strip-ansi/ansi-regex": ["[email protected]", "", {}, "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg=="],-- "@mercurjs/integration-tests/jest/@jest/core/jest-config/glob/jackspeak/@isaacs/cliui/wrap-ansi/ansi-styles": ["[email protected]", "", {}, "sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg=="],-"@mercurjs/integration-tests/jest/@jest/core/jest-runtime/@jest/globals/@jest/expect/expect/jest-matcher-utils/jest-diff": ["[email protected]", "", { "dependencies": { "@jest/diff-sequences": "30.4.0", "@jest/get-type": "30.1.0", "chalk": "^4.1.2", "pretty-format": "30.4.1" } }, "sha512-CRpFK0RtLriVDGcPPAnR6HMVI8bSR2jnUIgralhauzYQZIb4RH9AtEInTuQr65LmmGggGcRT6HIASxwqsVsmlA=="],- "@mercurjs/integration-tests/jest/@jest/core/jest-runtime/glob/jackspeak/@isaacs/cliui/string-width/emoji-regex": ["[email protected]", "", {}, "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg=="],-- "@mercurjs/integration-tests/jest/@jest/core/jest-runtime/glob/jackspeak/@isaacs/cliui/strip-ansi/ansi-regex": ["[email protected]", "", {}, "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg=="],-- "@mercurjs/integration-tests/jest/@jest/core/jest-runtime/glob/jackspeak/@isaacs/cliui/wrap-ansi/ansi-styles": ["[email protected]", "", {}, "sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg=="],-- "@mercurjs/integration-tests/jest/jest-cli/jest-config/glob/jackspeak/@isaacs/cliui/string-width/emoji-regex": ["[email protected]", "", {}, "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg=="],-- "@mercurjs/integration-tests/jest/jest-cli/jest-config/glob/jackspeak/@isaacs/cliui/strip-ansi/ansi-regex": ["[email protected]", "", {}, "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg=="],-- "@mercurjs/integration-tests/jest/jest-cli/jest-config/glob/jackspeak/@isaacs/cliui/wrap-ansi/ansi-styles": ["[email protected]", "", {}, "sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg=="],-"@mercurjs/integration-tests/jest/jest-cli/jest-config/jest-runner/jest-runtime/@jest/globals/@jest/expect/expect": ["[email protected]", "", { "dependencies": { "@jest/expect-utils": "30.4.1", "@jest/get-type": "30.1.0", "jest-matcher-utils": "30.4.1", "jest-message-util": "30.4.1", "jest-mock": "30.4.1", "jest-util": "30.4.1" } }, "sha512-PMARsyh/JtqC20HoGqlFcIlQAyqUtW4PlI1rup1uhYJtKuwAjbvWi3GQMAn+STdHum/dk8xrKfUM1+5SAwpolA=="],- "@mercurjs/registry/jest/@jest/core/@jest/reporters/glob/jackspeak/@isaacs/cliui/string-width/emoji-regex": ["[email protected]", "", {}, "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg=="],-- "@mercurjs/registry/jest/@jest/core/@jest/reporters/glob/jackspeak/@isaacs/cliui/strip-ansi/ansi-regex": ["[email protected]", "", {}, "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg=="],-- "@mercurjs/registry/jest/@jest/core/@jest/reporters/glob/jackspeak/@isaacs/cliui/wrap-ansi/ansi-styles": ["[email protected]", "", {}, "sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg=="],-- "@mercurjs/registry/jest/@jest/core/jest-config/glob/jackspeak/@isaacs/cliui/string-width/emoji-regex": ["[email protected]", "", {}, "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg=="],-- "@mercurjs/registry/jest/@jest/core/jest-config/glob/jackspeak/@isaacs/cliui/strip-ansi/ansi-regex": ["[email protected]", "", {}, "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg=="],-- "@mercurjs/registry/jest/@jest/core/jest-config/glob/jackspeak/@isaacs/cliui/wrap-ansi/ansi-styles": ["[email protected]", "", {}, "sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg=="],-"@mercurjs/registry/jest/@jest/core/jest-runtime/@jest/globals/@jest/expect/expect/jest-matcher-utils/jest-diff": ["[email protected]", "", { "dependencies": { "@jest/diff-sequences": "30.4.0", "@jest/get-type": "30.1.0", "chalk": "^4.1.2", "pretty-format": "30.4.1" } }, "sha512-CRpFK0RtLriVDGcPPAnR6HMVI8bSR2jnUIgralhauzYQZIb4RH9AtEInTuQr65LmmGggGcRT6HIASxwqsVsmlA=="],- "@mercurjs/registry/jest/@jest/core/jest-runtime/glob/jackspeak/@isaacs/cliui/string-width/emoji-regex": ["[email protected]", "", {}, "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg=="],-- "@mercurjs/registry/jest/@jest/core/jest-runtime/glob/jackspeak/@isaacs/cliui/strip-ansi/ansi-regex": ["[email protected]", "", {}, "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg=="],-- "@mercurjs/registry/jest/@jest/core/jest-runtime/glob/jackspeak/@isaacs/cliui/wrap-ansi/ansi-styles": ["[email protected]", "", {}, "sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg=="],-- "@mercurjs/registry/jest/jest-cli/jest-config/glob/jackspeak/@isaacs/cliui/string-width/emoji-regex": ["[email protected]", "", {}, "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg=="],-- "@mercurjs/registry/jest/jest-cli/jest-config/glob/jackspeak/@isaacs/cliui/strip-ansi/ansi-regex": ["[email protected]", "", {}, "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg=="],-- "@mercurjs/registry/jest/jest-cli/jest-config/glob/jackspeak/@isaacs/cliui/wrap-ansi/ansi-styles": ["[email protected]", "", {}, "sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg=="],-"@mercurjs/registry/jest/jest-cli/jest-config/jest-runner/jest-runtime/@jest/globals/@jest/expect/expect": ["[email protected]", "", { "dependencies": { "@jest/expect-utils": "30.4.1", "@jest/get-type": "30.1.0", "jest-matcher-utils": "30.4.1", "jest-message-util": "30.4.1", "jest-mock": "30.4.1", "jest-util": "30.4.1" } }, "sha512-PMARsyh/JtqC20HoGqlFcIlQAyqUtW4PlI1rup1uhYJtKuwAjbvWi3GQMAn+STdHum/dk8xrKfUM1+5SAwpolA=="],"@mercurjs/integration-tests/jest/jest-cli/jest-config/jest-runner/jest-runtime/@jest/globals/@jest/expect/expect/@jest/expect-utils": ["@jest/[email protected]", "", { "dependencies": { "@jest/get-type": "30.1.0" } }, "sha512-ZBn5CglH8fBsQsvs4VWNzD4aWfUYks+IdOOQU3MEK71ol/BcVm+P+rtb1KpiFBpSWSCE27uOahyyf1vfqOVbcQ=="],diff --git a/docs/ARCHITECTURE.md b/docs/ARCHITECTURE.mdindex 8bfb267d1..9fb99b321 100644--- a/docs/ARCHITECTURE.md+++ b/docs/ARCHITECTURE.md@@ -66,7 +66,7 @@ The Medusa plugin that holds all marketplace business logic. Wired into the API### `packages/cli` — `mercurjs` commandScaffolds and operates projects. Key commands:-- `create`, `init` — bootstrap a new project from `templates/basic` (or `plugin` / `registry`).+- `init` — initialize an existing project with a `blocks.json` configuration. (Bootstrapping new projects from `templates/basic` / `plugin` lives in the standalone `create-mercur-app` package under `packages/create-mercur-app`.)- `add`, `search`, `view`, `diff` — discover and install **blocks** declared in `blocks.json`.- `develop`, `start`, `build` — run the API + dashboards.- `codegen`, `registry-codegen`, `plugin-build`, `registry-build` — generate the typed route map consumed by `@mercurjs/client` and build registry/plugin artefacts.@@ -109,7 +109,7 @@ Stripe Connect implementation for the `payout` module: creates connected account## Templates (consumed by the CLI)-- **`templates/basic`** — full marketplace starter (API + Admin + Vendor + workspace tooling). What `mercurjs create` produces. Ships with `.claude/skills/` for `dashboard-page-ui`, `dashboard-form-ui`, `dashboard-tab-ui`, `mercur-cli`, `mercur-blocks`.+- **`templates/basic`** — full marketplace starter (API + Admin + Vendor + workspace tooling). What `create-mercur-app` produces. Ships with `.claude/skills/` for `dashboard-page-ui`, `dashboard-form-ui`, `dashboard-tab-ui`, `mercur-cli`, `mercur-blocks`.- **`templates/plugin`** — scaffold for building a reusable Medusa/Mercur plugin that can be installed as a block into projects.- **`templates/registry`** — scaffold for hosting a custom block registry (alternative to the default `@mercurjs/registry`).diff --git a/integration-tests/package.json b/integration-tests/package.jsonindex 483816f80..9a0e141c4 100644--- a/integration-tests/package.json+++ b/integration-tests/package.json@@ -7,24 +7,24 @@"test:integration:meilisearch": "TEST_TYPE=integration:http MEILISEARCH_HOST=http://localhost:7700 MEILISEARCH_API_KEY=masterKey NODE_OPTIONS=--experimental-vm-modules jest --silent=false --runInBand --forceExit --testPathPattern=meilisearch"},"dependencies": {- "@medusajs/framework": "options-preview",- "@medusajs/medusa": "options-preview",+ "@medusajs/framework": "2.17.2",+ "@medusajs/medusa": "2.17.2","@mercurjs/core": "*","jsonwebtoken": "^9.0.2","scrypt-kdf": "^2.0.1",- "@medusajs/draft-order": "options-preview",+ "@medusajs/draft-order": "2.17.2","meilisearch": "^0.47.0"},"devDependencies": {"@mercurjs/types": "*","@jest/test-sequencer": "^30.2.0",- "@medusajs/test-utils": "options-preview",+ "@medusajs/test-utils": "2.17.2","@swc/core": "^1.7.28","@swc/jest": "^0.2.36","@types/jest": "^29.5.13","@types/node": "^20.12.11","jest": "^30.2.0","typescript": "5.9.3",- "@medusajs/types": "options-preview"+ "@medusajs/types": "2.17.2"}-}\ No newline at end of file+}diff --git a/package.json b/package.jsonindex 0a76a9853..61d3c0191 100644--- a/package.json+++ b/package.json@@ -5,8 +5,7 @@"build": "turbo run build","dev": "turbo run dev","lint": "oxlint --quiet",- "test:integration:http": "cd integration-tests && bun run test:integration:http",- "test:e2e": "cd e2e-tests && bun run test"+ "test:integration:http": "cd integration-tests && bun run test:integration:http"},"dependencies": {"@mercurjs/core": "workspace:*"@@ -16,6 +15,7 @@"eslint": "^9.39.2","globals": "^17.0.0","oxlint": "^1.64.0",+ "pg-god": "^1.0.12","prettier": "^3.7.4","turbo": "^2.7.4","typescript": "5.9.3",@@ -29,25 +29,24 @@"apps/*","packages/*","packages/providers/*",- "integration-tests",- "e2e-tests"+ "integration-tests"],"overrides": {- "@medusajs/admin-bundler": "2.16.0-options-preview-20260605124754",- "@medusajs/admin-sdk": "2.16.0-options-preview-20260605124754",- "@medusajs/admin-shared": "2.16.0-options-preview-20260605124754",- "@medusajs/admin-vite-plugin": "2.16.0-options-preview-20260605124754",- "@medusajs/cli": "2.16.0-options-preview-20260605124754",- "@medusajs/core-flows": "2.16.0-options-preview-20260605124754",- "@medusajs/dashboard": "2.16.0-options-preview-20260605124754",- "@medusajs/draft-order": "2.16.0-options-preview-20260605124754",- "@medusajs/framework": "2.16.0-options-preview-20260605124754",- "@medusajs/icons": "2.16.0-options-preview-20260605124754",- "@medusajs/medusa": "2.16.0-options-preview-20260605124754",- "@medusajs/test-utils": "2.16.0-options-preview-20260605124754",- "@medusajs/types": "2.16.0-options-preview-20260605124754",- "@medusajs/ui": "4.1.16-options-preview-20260605124754",- "@medusajs/ui-preset": "2.16.0-options-preview-20260605124754",+ "@medusajs/admin-bundler": "2.17.2",+ "@medusajs/admin-sdk": "2.17.2",+ "@medusajs/admin-shared": "2.17.2",+ "@medusajs/admin-vite-plugin": "2.17.2",+ "@medusajs/cli": "2.17.2",+ "@medusajs/core-flows": "2.17.2",+ "@medusajs/dashboard": "2.17.2",+ "@medusajs/draft-order": "2.17.2",+ "@medusajs/framework": "2.17.2",+ "@medusajs/icons": "2.17.2",+ "@medusajs/medusa": "2.17.2",+ "@medusajs/test-utils": "2.17.2",+ "@medusajs/types": "2.17.2",+ "@medusajs/ui": "4.1.19",+ "@medusajs/ui-preset": "2.17.2","zod": "3.25.76"}-}\ No newline at end of file+}diff --git a/packages/admin/package.json b/packages/admin/package.jsonindex 2d2e4a1f3..c299a5745 100644--- a/packages/admin/package.json+++ b/packages/admin/package.json@@ -1,6 +1,6 @@{"name": "@mercurjs/admin",- "version": "2.2.0-canary.39",+ "version": "2.2.0-canary.40","repository": {"type": "git","url": "https://github.com/mercurjs/mercur",@@ -29,8 +29,8 @@"lint": "oxlint --max-warnings 0"},"dependencies": {- "@mercurjs/dashboard-shared": "2.2.0-canary.39",- "@mercurjs/client": "2.2.0-canary.39",+ "@mercurjs/dashboard-shared": "2.2.0-canary.40",+ "@mercurjs/client": "2.2.0-canary.40","@ariakit/react": "^0.4.15","@babel/runtime": "^7.26.10","@dnd-kit/core": "^6.1.0",@@ -38,10 +38,10 @@"@dnd-kit/utilities": "^3.2.2","@hookform/error-message": "^2.0.1","@hookform/resolvers": "3.4.2",- "@medusajs/admin-shared": "options-preview",- "@medusajs/dashboard": "options-preview",- "@medusajs/icons": "options-preview",- "@medusajs/ui": "options-preview",+ "@medusajs/admin-shared": "2.17.2",+ "@medusajs/dashboard": "2.17.2",+ "@medusajs/icons": "2.17.2",+ "@medusajs/ui": "4.1.19","@radix-ui/react-dialog": "1.1.4","@radix-ui/react-dismissable-layer": "1.1.4","@tanstack/react-query": "5.64.2",@@ -74,7 +74,7 @@"react-dom": "^18.0.0"},"devDependencies": {- "@medusajs/ui-preset": "options-preview",+ "@medusajs/ui-preset": "2.17.2","@types/react": "^18.2.66","@types/react-dom": "^18.2.22","autoprefixer": "^10.4.20",@@ -82,9 +82,9 @@"tailwindcss": "^3.4.19","tsup": "^8.0.2","typescript": "5.9.3",- "@medusajs/types": "options-preview",- "@mercurjs/core": "2.2.0-canary.39",- "@mercurjs/dashboard-sdk": "2.2.0-canary.39",- "@mercurjs/types": "2.2.0-canary.39"+ "@medusajs/types": "2.17.2",+ "@mercurjs/core": "2.2.0-canary.40",+ "@mercurjs/dashboard-sdk": "2.2.0-canary.40",+ "@mercurjs/types": "2.2.0-canary.40"}}diff --git a/packages/cli/package.json b/packages/cli/package.jsonindex 339f93a58..2c6033d7f 100644--- a/packages/cli/package.json+++ b/packages/cli/package.json@@ -1,6 +1,6 @@{"name": "@mercurjs/cli",- "version": "2.2.0-canary.39",+ "version": "2.2.0-canary.40","repository": {"type": "git","url": "https://github.com/mercurjs/mercur",@@ -39,54 +39,31 @@},"dependencies": {"@antfu/ni": "^27.0.1",- "@medusajs/admin-bundler": "options-preview",- "@medusajs/admin-shared": "options-preview",- "@medusajs/admin-vite-plugin": "options-preview",- "@medusajs/dashboard": "options-preview",- "@medusajs/framework": "options-preview",- "@mercurjs/dashboard-sdk": "2.2.0-canary.39",- "@types/cross-spawn": "^6.0.6",+ "@medusajs/admin-bundler": "2.17.2",+ "@medusajs/framework": "2.17.2",+ "@mercurjs/dashboard-sdk": "2.2.0-canary.40","@vitejs/plugin-react": "^4.2.1",- "autoprefixer": "^10.4.19","commander": "^14.0.2",- "compression": "^1.8.0","cosmiconfig": "^9.0.0",- "cross-spawn": "^7.0.6","deepmerge": "^4.3.1","diff": "^8.0.2","execa": "^9.6.0",- "express": "^4.21.0","fast-glob": "^3.3.3","fs-extra": "^11.3.2",- "get-port": "^5.1.1",- "glob": "11.1.0","kleur": "^4.1.5",- "open": "^11.0.0","ora": "^9.0.0",- "outdent": "^0.8.0",- "pg": "^8.17.1","pkg-dir": "^9.0.0",- "postcss": "^8.4.38","prompts": "^2.4.2","resolve-cwd": "^3.0.0",- "tailwindcss": "^3.4.3",- "tar": "^7.5.2",- "terminal-link": "^5.0.0","ts-morph": "^27.0.2","tsconfig-paths": "^4.2.0",- "typescript": "5.9.3",- "validate-npm-package-name": "^7.0.2","vite": "^5.4.21",- "wait-on": "^9.0.3","zod": "3.25.76"},"devDependencies": {"@types/fs-extra": "^11.0.4",- "@types/pg": "^8.16.0","@types/prompts": "^2.4.9",- "@types/tar": "^6.1.13",- "@types/validate-npm-package-name": "^4.0.2",- "@types/wait-on": "^5.3.4",- "tsup": "^8.5.0"+ "tsup": "^8.5.0",+ "typescript": "5.9.3"}}diff --git a/packages/cli/routes-manifest.json b/packages/cli/routes-manifest.jsonindex 58df91b15..d07dfcf5d 100644--- a/packages/cli/routes-manifest.json+++ b/packages/cli/routes-manifest.json@@ -82,6 +82,8 @@"/admin/invites/:id": "typeof import(\"@medusajs/medusa/api/admin/invites/[id]/route\")","/admin/invites/:id/resend": "typeof import(\"@medusajs/medusa/api/admin/invites/[id]/resend/route\")","/admin/invites/accept": "typeof import(\"@medusajs/medusa/api/admin/invites/accept/route\")",+ "/admin/layouts/:zone/configuration": "typeof import(\"@medusajs/medusa/api/admin/layouts/[zone]/configuration/route\")",+ "/admin/layouts/configurations": "typeof import(\"@medusajs/medusa/api/admin/layouts/configurations/route\")","/admin/locales": "typeof import(\"@medusajs/medusa/api/admin/locales/route\")","/admin/locales/:code": "typeof import(\"@medusajs/medusa/api/admin/locales/[code]/route\")","/admin/members": "typeof import(\"@mercurjs/core/api/admin/members/route\")",@@ -116,6 +118,7 @@"/admin/orders/:id/fulfillments/:fulfillment_id/shipments": "typeof import(\"@medusajs/medusa/api/admin/orders/[id]/fulfillments/[fulfillment_id]/shipments/route\")","/admin/orders/:id/line-items": "typeof import(\"@medusajs/medusa/api/admin/orders/[id]/line-items/route\")","/admin/orders/:id/order-group": "typeof import(\"@mercurjs/core/api/admin/orders/[id]/order-group/route\")",+ "/admin/orders/:id/payment-sessions/authorize": "typeof import(\"@medusajs/medusa/api/admin/orders/[id]/payment-sessions/authorize/route\")","/admin/orders/:id/preview": "typeof import(\"@medusajs/medusa/api/admin/orders/[id]/preview/route\")","/admin/orders/:id/shipping-options": "typeof import(\"@medusajs/medusa/api/admin/orders/[id]/shipping-options/route\")","/admin/orders/:id/transfer": "typeof import(\"@medusajs/medusa/api/admin/orders/[id]/transfer/route\")",@@ -152,6 +155,8 @@"/admin/product-changes/:id/confirm": "typeof import(\"@mercurjs/core/api/admin/product-changes/[id]/confirm/route\")","/admin/product-options": "typeof import(\"@medusajs/medusa/api/admin/product-options/route\")","/admin/product-options/:id": "typeof import(\"@medusajs/medusa/api/admin/product-options/[id]/route\")",+ "/admin/product-options/:id/values": "typeof import(\"@medusajs/medusa/api/admin/product-options/[id]/values/route\")",+ "/admin/product-options/:id/values/:value_id": "typeof import(\"@medusajs/medusa/api/admin/product-options/[id]/values/[value_id]/route\")","/admin/product-tags": "typeof import(\"@medusajs/medusa/api/admin/product-tags/route\")","/admin/product-tags/:id": "typeof import(\"@medusajs/medusa/api/admin/product-tags/[id]/route\")","/admin/product-types": "typeof import(\"@medusajs/medusa/api/admin/product-types/route\")",@@ -195,11 +200,14 @@"/admin/rbac/me/permissions": "typeof import(\"@medusajs/medusa/api/admin/rbac/me/permissions/route\")","/admin/rbac/policies": "typeof import(\"@medusajs/medusa/api/admin/rbac/policies/route\")","/admin/rbac/policies/:id": "typeof import(\"@medusajs/medusa/api/admin/rbac/policies/[id]/route\")",+ "/admin/rbac/policies/:id/roles": "typeof import(\"@medusajs/medusa/api/admin/rbac/policies/[id]/roles/route\")",+ "/admin/rbac/policies/assignable": "typeof import(\"@medusajs/medusa/api/admin/rbac/policies/assignable/route\")","/admin/rbac/roles": "typeof import(\"@medusajs/medusa/api/admin/rbac/roles/route\")","/admin/rbac/roles/:id": "typeof import(\"@medusajs/medusa/api/admin/rbac/roles/[id]/route\")","/admin/rbac/roles/:id/policies": "typeof import(\"@medusajs/medusa/api/admin/rbac/roles/[id]/policies/route\")","/admin/rbac/roles/:id/policies/:policy_id": "typeof import(\"@medusajs/medusa/api/admin/rbac/roles/[id]/policies/[policy_id]/route\")","/admin/rbac/roles/:id/users": "typeof import(\"@medusajs/medusa/api/admin/rbac/roles/[id]/users/route\")",+ "/admin/rbac/roles/assignable": "typeof import(\"@medusajs/medusa/api/admin/rbac/roles/assignable/route\")","/admin/refund-reasons": "typeof import(\"@medusajs/medusa/api/admin/refund-reasons/route\")","/admin/refund-reasons/:id": "typeof import(\"@medusajs/medusa/api/admin/refund-reasons/[id]/route\")","/admin/regions": "typeof import(\"@medusajs/medusa/api/admin/regions/route\")",@@ -295,8 +303,6 @@"/auth/:actor_type/:auth_provider/register": "typeof import(\"@medusajs/medusa/api/auth/[actor_type]/[auth_provider]/register/route\")","/auth/:actor_type/:auth_provider/reset-password": "typeof import(\"@medusajs/medusa/api/auth/[actor_type]/[auth_provider]/reset-password/route\")","/auth/:actor_type/:auth_provider/update": "typeof import(\"@medusajs/medusa/api/auth/[actor_type]/[auth_provider]/update/route\")",- "/auth/:actor_type/:auth_provider/verification/confirm": "typeof import(\"@medusajs/medusa/api/auth/[actor_type]/[auth_provider]/verification/confirm/route\")",- "/auth/:actor_type/:auth_provider/verification/request": "typeof import(\"@medusajs/medusa/api/auth/[actor_type]/[auth_provider]/verification/request/route\")","/auth/mfa/challenges/:id/verify": "typeof import(\"@medusajs/medusa/api/auth/mfa/challenges/[id]/verify/route\")","/auth/mfa/factors": "typeof import(\"@medusajs/medusa/api/auth/mfa/factors/route\")","/auth/mfa/factors/:id": "typeof import(\"@medusajs/medusa/api/auth/mfa/factors/[id]/route\")",@@ -304,6 +310,8 @@"/auth/mfa/recovery-codes": "typeof import(\"@medusajs/medusa/api/auth/mfa/recovery-codes/route\")","/auth/session": "typeof import(\"@medusajs/medusa/api/auth/session/route\")","/auth/token/refresh": "typeof import(\"@medusajs/medusa/api/auth/token/refresh/route\")",+ "/auth/verification/confirm": "typeof import(\"@medusajs/medusa/api/auth/verification/confirm/route\")",+ "/auth/verification/request": "typeof import(\"@medusajs/medusa/api/auth/verification/request/route\")","/cloud/auth": "typeof import(\"@medusajs/medusa/api/cloud/auth/route\")","/cloud/auth/users": "typeof import(\"@medusajs/medusa/api/cloud/auth/users/route\")","/hooks/payment/:provider": "typeof import(\"@medusajs/medusa/api/hooks/payment/[provider]/route\")",diff --git a/packages/cli/src/index.ts b/packages/cli/src/index.tsindex 5c8786d10..08f06683e 100755--- a/packages/cli/src/index.ts+++ b/packages/cli/src/index.ts@@ -5,7 +5,6 @@ import { add } from "./commands/add";import { registryBuild } from "./commands/registry-build";import { registryCodegen } from "./commands/registry-codegen";import { codegen } from "./commands/codegen";-import { create } from "./commands/create";import { diff } from "./commands/diff";import { info } from "./commands/info";import { init } from "./commands/init";@@ -32,7 +31,6 @@ async function main() {.addCommand(registryBuild).addCommand(registryCodegen).addCommand(codegen)- .addCommand(create).addCommand(diff).addCommand(info).addCommand(init)diff --git a/packages/client/package.json b/packages/client/package.jsonindex 498a05a83..162040b5b 100644--- a/packages/client/package.json+++ b/packages/client/package.json@@ -1,6 +1,6 @@{"name": "@mercurjs/client",- "version": "2.2.0-canary.39",+ "version": "2.2.0-canary.40","repository": {"type": "git","url": "https://github.com/mercurjs/mercur",@@ -39,7 +39,7 @@"qs": "^6.12.1"},"devDependencies": {- "@medusajs/framework": "options-preview",+ "@medusajs/framework": "2.17.2","@types/qs": "^6.9.18","tsup": "^8.5.0","typescript": "5.9.3"diff --git a/packages/core/.mercur/routes.d.ts b/packages/core/.mercur/routes.d.tsindex d0dbd6c7d..e19626d2a 100644--- a/packages/core/.mercur/routes.d.ts+++ b/packages/core/.mercur/routes.d.ts@@ -611,6 +611,7 @@ export type Routes = {$id: typeof import("@medusajs/medusa/api/store/return-reasons/[id]/route");};returns: typeof import("@medusajs/medusa/api/store/returns/route");+ search: typeof import("../src/api/store/search/route");sellers: typeof import("../src/api/store/sellers/route") & {$id: typeof import("../src/api/store/sellers/[id]/route");};@@ -619,7 +620,6 @@ export type Routes = {calculate: typeof import("@medusajs/medusa/api/store/shipping-options/[id]/calculate/route");};};- search: typeof import("../src/api/store/search/route");};vendor: {campaigns: typeof import("../src/api/vendor/campaigns/route") & {diff --git a/packages/core/package.json b/packages/core/package.jsonindex c4f102b48..bf9133815 100644--- a/packages/core/package.json+++ b/packages/core/package.json@@ -1,6 +1,6 @@{"name": "@mercurjs/core",- "version": "2.2.0-canary.39",+ "version": "2.2.0-canary.40","repository": {"type": "git","url": "https://github.com/mercurjs/mercur",@@ -53,14 +53,14 @@},"devDependencies": {"cors": "^2.8.5",- "@medusajs/core-flows": "options-preview",- "@medusajs/cli": "options-preview",- "@medusajs/framework": "options-preview",- "@medusajs/icons": "options-preview",- "@medusajs/medusa": "options-preview",- "@medusajs/test-utils": "options-preview",- "@medusajs/ui": "options-preview",- "@mercurjs/types": "2.2.0-canary.39",+ "@medusajs/core-flows": "2.17.2",+ "@medusajs/cli": "2.17.2",+ "@medusajs/framework": "2.17.2",+ "@medusajs/icons": "2.17.2",+ "@medusajs/medusa": "2.17.2",+ "@medusajs/test-utils": "2.17.2",+ "@medusajs/ui": "4.1.19",+ "@mercurjs/types": "2.2.0-canary.40","@swc/core": "^1.7.28","@types/cors": "^2.8.17","@types/express": "^4.17.21",@@ -75,20 +75,20 @@"tsx": "^4.19.2","typescript": "5.9.3","yalc": "^1.0.0-pre.53",- "@medusajs/types": "options-preview",+ "@medusajs/types": "2.17.2","zod": "3.25.76","multer": "^2.0.2","http-proxy-middleware": "^3.0.3","jsonwebtoken": "^9.0.2",- "@mercurjs/cli": "2.2.0-canary.39"+ "@mercurjs/cli": "2.2.0-canary.40"},"peerDependencies": {- "@medusajs/admin-sdk": ">=2.16.0-0",- "@medusajs/cli": ">=2.16.0-0",- "@medusajs/framework": ">=2.16.0-0",- "@medusajs/icons": ">=2.16.0-0",- "@medusajs/medusa": ">=2.16.0-0",- "@medusajs/test-utils": ">=2.16.0-0",+ "@medusajs/admin-sdk": ">=2.17.2",+ "@medusajs/cli": ">=2.17.2",+ "@medusajs/framework": ">=2.17.2",+ "@medusajs/icons": ">=2.17.2",+ "@medusajs/medusa": ">=2.17.2",+ "@medusajs/test-utils": ">=2.17.2","express": "^4.21.0"},"engines": {diff --git a/packages/core/src/api/store/carts/[id]/shipping-methods/route.ts b/packages/core/src/api/store/carts/[id]/shipping-methods/route.tsindex 3d90d2a70..c44b8d79e 100644--- a/packages/core/src/api/store/carts/[id]/shipping-methods/route.ts+++ b/packages/core/src/api/store/carts/[id]/shipping-methods/route.ts@@ -10,10 +10,14 @@ export const POST = async (res: MedusaResponse<HttpTypes.StoreCartResponse>) => {const payload = req.validatedBody+ const normalizedOptions = Array.isArray(payload) ? payload : [payload]await addSellerShippingMethodToCartWorkflow(req.scope).run({input: {- options: [{ id: payload.option_id, data: payload.data }],+ options: normalizedOptions.map((option) => ({+ id: option.option_id,+ data: option.data,+ })),cart_id: req.params.id,additional_data: payload.additional_data,},diff --git a/packages/create-mercur-app/README.md b/packages/create-mercur-app/README.mdnew file mode 100644index 000000000..148645359--- /dev/null+++ b/packages/create-mercur-app/README.md@@ -0,0 +1,37 @@+# create-mercur-app++The fastest way to start a new [Mercur](https://mercurjs.com) marketplace project.++## Usage++```bash+npm create mercur-app@latest+# or+bun create mercur-app+# or+pnpm create mercur-app+# or+yarn create mercur-app+```++You can also pass a project name and options directly:++```bash+npm create mercur-app@latest my-marketplace -- --template basic+```++## Options++| Option | Description |+| --- | --- |+| `-t, --template <template>` | Template to use (`basic` or `plugin`) |+| `-c, --cwd <cwd>` | Working directory (defaults to the current directory) |+| `--no-deps` | Skip installing dependencies |+| `--skip-db` | Skip database configuration |+| `--db-connection-string <string>` | PostgreSQL connection string |+| `--db-host <host>` | PostgreSQL host (default `localhost`) |+| `--db-port <port>` | PostgreSQL port (default `5432`) |++## Documentation++Visit [docs.mercurjs.com](https://docs.mercurjs.com) to learn more.diff --git a/packages/create-mercur-app/package.json b/packages/create-mercur-app/package.jsonnew file mode 100644index 000000000..130c75661--- /dev/null+++ b/packages/create-mercur-app/package.json@@ -0,0 +1,68 @@+{+ "name": "create-mercur-app",+ "version": "2.2.0-canary.40",+ "repository": {+ "type": "git",+ "url": "https://github.com/mercurjs/mercur",+ "directory": "packages/create-mercur-app"+ },+ "type": "module",+ "description": "Create a new Mercur marketplace project",+ "author": "MercurJS (https://github.com/mercurjs)",+ "keywords": [+ "marketplace",+ "multi-vendor",+ "medusajs",+ "ecommerce",+ "open-source-marketplace",+ "headless-commerce",+ "create-mercur-app",+ "marketplace-framework"+ ],+ "publishConfig": {+ "access": "public"+ },+ "files": [+ "dist"+ ],+ "bin": {+ "create-mercur-app": "./dist/index.js"+ },+ "exports": {+ ".": "./dist/lib.js",+ "./package.json": "./package.json"+ },+ "scripts": {+ "typecheck": "tsc --noEmit",+ "dev": "tsup --watch",+ "build": "tsup"+ },+ "dependencies": {+ "@antfu/ni": "^27.0.1",+ "commander": "^14.0.2",+ "execa": "^9.6.0",+ "fs-extra": "^11.3.2",+ "kleur": "^4.1.5",+ "open": "^11.0.0",+ "ora": "^9.0.0",+ "pg": "^8.17.1",+ "prompts": "^2.4.2",+ "tar": "^7.5.2",+ "terminal-link": "^5.0.0",+ "validate-npm-package-name": "^7.0.2",+ "wait-on": "^9.0.3"+ },+ "devDependencies": {+ "@types/fs-extra": "^11.0.4",+ "@types/pg": "^8.16.0",+ "@types/prompts": "^2.4.9",+ "@types/tar": "^6.1.13",+ "@types/validate-npm-package-name": "^4.0.2",+ "@types/wait-on": "^5.3.4",+ "tsup": "^8.5.0",+ "typescript": "5.9.3"+ },+ "engines": {+ "node": ">=20"+ }+}diff --git a/packages/cli/src/commands/create.ts b/packages/create-mercur-app/src/commands/create.tssimilarity index 95%rename from packages/cli/src/commands/create.tsrename to packages/create-mercur-app/src/commands/create.tsindex 710f8e41a..2403cd062 100644--- a/packages/cli/src/commands/create.ts+++ b/packages/create-mercur-app/src/commands/create.ts@@ -3,18 +3,6 @@ import { Readable } from "node:stream";import { pipeline } from "node:stream/promises";import path from "path";-import { clearRegistryContext } from "@/src/registry/context";-import { sendTelemetryEvent, setTelemetryEmail, showTelemetryNoticeIfNeeded } from "@/src/telemetry";-import { setupDatabase, type SetupDatabaseResult } from "@/src/utils/create-db";-import {- resolveProjectPackageManager,- type PackageManager,-} from "@/src/utils/get-package-manager";-import { handleError } from "@/src/utils/handle-error";-import { highlighter } from "@/src/utils/highlighter";-import { logger } from "@/src/utils/logger";-import { manageEnvFiles } from "@/src/utils/manage-env-files";-import { spinner } from "@/src/utils/spinner";import { Command } from "commander";import { execa } from "execa";import fs from "fs-extra";@@ -27,6 +15,21 @@ import validateProjectName from "validate-npm-package-name";import waitOn from "wait-on";import packageJson from "../../package.json";+import {+ sendTelemetryEvent,+ setTelemetryEmail,+ showTelemetryNoticeIfNeeded,+} from "../telemetry";+import { setupDatabase, type SetupDatabaseResult } from "../utils/create-db";+import {+ resolveProjectPackageManager,+ type PackageManager,+} from "../utils/get-package-manager";+import { handleError } from "../utils/handle-error";+import { highlighter } from "../utils/highlighter";+import { logger } from "../utils/logger";+import { manageEnvFiles } from "../utils/manage-env-files";+import { spinner } from "../utils/spinner";const IS_PRERELEASE =packageJson.version?.includes("-canary") || packageJson.version?.includes("-rc");@@ -156,7 +159,7 @@ export const create = new Command()downloadSpinner.succeed("Template downloaded successfully.");const packageManager = await resolveProjectPackageManager();- await setPackageManagerField(projectDir, packageManager);+ await updateRootPackageJson(projectDir, projectName, packageManager);if (!opts.deps) {spinner("Dependency installation skipped.").warn();@@ -303,8 +306,6 @@ export const create = new Command()} catch (error) {logger.break();handleError(error);- } finally {- clearRegistryContext();}});@@ -451,13 +452,16 @@ function createTerminalLink(text: string, url: string) {});}-async function setPackageManagerField(+async function updateRootPackageJson(projectDir: string,+ projectName: string,packageManager: string): Promise<void> {const packageJsonPath = path.join(projectDir, "package.json");const packageJson = await fs.readJSON(packageJsonPath);+ packageJson.name = projectName;+try {const { stdout: version } = await execa(packageManager, ["--version"]);packageJson.packageManager = `${packageManager}@${version.trim()}`;diff --git a/packages/create-mercur-app/src/index.ts b/packages/create-mercur-app/src/index.tsnew file mode 100644index 000000000..ffb24dbc6--- /dev/null+++ b/packages/create-mercur-app/src/index.ts@@ -0,0 +1,21 @@+#!/usr/bin/env node+import { Command } from "commander";++import packageJson from "../package.json";+import { create } from "./commands/create";++process.on("SIGINT", () => process.exit(0));+process.on("SIGTERM", () => process.exit(0));++const program = new Command()+ .name("create-mercur-app")+ .description("create a new Mercur project")+ .version(+ packageJson.version || "0.0.0",+ "-v, --version",+ "display the version number"+ );++program.addCommand(create, { isDefault: true });++program.parse();diff --git a/packages/create-mercur-app/src/lib.ts b/packages/create-mercur-app/src/lib.tsnew file mode 100644index 000000000..ae3f3d40e--- /dev/null+++ b/packages/create-mercur-app/src/lib.ts@@ -0,0 +1 @@+export { create } from "./commands/create";diff --git a/packages/create-mercur-app/src/telemetry/detect-system-info.ts b/packages/create-mercur-app/src/telemetry/detect-system-info.tsnew file mode 100644index 000000000..5e3bbad6f--- /dev/null+++ b/packages/create-mercur-app/src/telemetry/detect-system-info.ts@@ -0,0 +1,145 @@+export const importRuntime = <T>(m: string): Promise<T> => {+ return (Function("mm", "return import(mm)") as any)(m);+};++function getVendor() {+ const hasAny = (...keys: string[]) =>+ keys.some((k) => Boolean(process.env[k]));++ if (+ hasAny(+ "MEDUSA_CLOUD_ENVIRONMENT_HANDLE",+ "MEDUSA_CLOUD_SANDBOX_HANDLE",+ "MEDUSA_CLOUD_API_KEY",+ )+ ) {+ return "medusa-cloud";+ }++ if (+ hasAny(+ "RENDER",+ "RENDER_URL",+ "RENDER_INTERNAL_HOSTNAME",+ "RENDER_SERVICE_ID",+ )+ ) {+ return "render";+ }++ if (hasAny("FLY_APP_NAME", "FLY_REGION", "FLY_ALLOC_ID")) return "fly-io";++ if (hasAny("RAILWAY_STATIC_URL", "RAILWAY_ENVIRONMENT_NAME"))+ return "railway";++ if (hasAny("DYNO", "HEROKU_APP_NAME")) return "heroku";++ if (hasAny("DO_DEPLOYMENT_ID", "DO_APP_NAME", "DIGITALOCEAN"))+ return "digitalocean";++ if (hasAny("KOYEB", "KOYEB_DEPLOYMENT_ID", "KOYEB_APP_NAME")) return "koyeb";++ return null;+}++export async function detectSystemInfo() {+ try {+ //check if it's cloudflare+ const os = await importRuntime<typeof import("os")>("os");+ const cpus = os.cpus();+ return {+ deploymentVendor: getVendor(),+ systemPlatform: os.platform(),+ systemRelease: os.release(),+ systemArchitecture: os.arch(),+ cpuCount: cpus.length,+ cpuModel: cpus.length ? cpus[0]!.model : null,+ cpuSpeed: cpus.length ? cpus[0]!.speed : null,+ memory: os.totalmem(),+ isWSL: await isWsl(),+ isDocker: await isDocker(),+ isTTY:+ typeof process !== "undefined" && (process as any).stdout+ ? (process as any).stdout.isTTY+ : null,+ };+ } catch {+ return {+ systemPlatform: null,+ systemRelease: null,+ systemArchitecture: null,+ cpuCount: null,+ cpuModel: null,+ cpuSpeed: null,+ memory: null,+ isWSL: null,+ isDocker: null,+ isTTY: null,+ };+ }+}+++async function isWsl() {+ try {+ if (typeof process === "undefined" || process?.platform !== "linux") {+ return false;+ }+ const fs = await importRuntime<typeof import("fs")>("fs");+ const os = await importRuntime<typeof import("os")>("os");+ if (os.release().toLowerCase().includes("microsoft")) {+ if (await isInsideContainer()) {+ return false;+ }++ return true;+ }++ return fs+ .readFileSync("/proc/version", "utf8")+ .toLowerCase()+ .includes("microsoft")+ ? !(await isInsideContainer())+ : false;+ } catch {+ return false;+ }+}+const hasContainerEnv = async () => {+ try {+ const fs = await importRuntime<typeof import("fs")>("fs");+ fs.statSync("/run/.containerenv");+ return true;+ } catch {+ return false;+ }+};++async function isDocker() {+ return (await hasDockerEnv()) || (await hasDockerCGroup());+}+++async function hasDockerEnv() {+ try {+ const fs = await importRuntime<typeof import("fs")>("fs");+ fs.statSync("/.dockerenv");+ return true;+ } catch {+ return false;+ }+}++async function hasDockerCGroup() {+ try {+ const fs = await importRuntime<typeof import("fs")>("fs");+ return fs.readFileSync("/proc/self/cgroup", "utf8").includes("docker");+ } catch {+ return false;+ }+}+++async function isInsideContainer() {+ return (await hasContainerEnv()) || (await isDocker());+}\ No newline at end of filediff --git a/packages/create-mercur-app/src/telemetry/hash.ts b/packages/create-mercur-app/src/telemetry/hash.tsnew file mode 100644index 000000000..a3bab2416--- /dev/null+++ b/packages/create-mercur-app/src/telemetry/hash.ts@@ -0,0 +1,5 @@+import { createHash } from "crypto";++export const hashToBase64 = (input: string): string => {+ return createHash("sha256").update(input).digest("base64");+};diff --git a/packages/create-mercur-app/src/telemetry/index.ts b/packages/create-mercur-app/src/telemetry/index.tsnew file mode 100644index 000000000..caa8ec77c--- /dev/null+++ b/packages/create-mercur-app/src/telemetry/index.ts@@ -0,0 +1,178 @@+import { execSync } from "child_process";+import path from "path";++import fs from "fs-extra";++import { highlighter } from "../utils/highlighter";+import { getPackageManager } from "../utils/get-package-manager";+import { detectSystemInfo } from "./detect-system-info";+import { hashToBase64 } from "./hash";+import { configStore } from "./store";++const TELEMETRY_URL =+ process.env.MERCUR_TELEMETRY_PROXY_URL ||+ "https://telemetry.mercurjs.com/api/v1/events";++export interface TelemetryEvent {+ type: string;+ payload?: Record<string, unknown>;+}++export const setTelemetryEmail = (email: string) => {+ configStore.set("telemetry_email", email);+};++export const TELEMETRY_DOCS_URL = "https://docs.mercurjs.com/telemetry";++export const showTelemetryNoticeIfNeeded = () => {+ if (configStore.get("notice_shown")) {+ return;+ }++ configStore.set("notice_shown", true);++ if (process.env.MERCUR_DISABLE_TELEMETRY === "true") {+ return;+ }++ console.error(+ [+ "",+ "Mercur collects anonymous usage data to improve the CLI experience.",+ `You can disable this at any time by running: ${highlighter.info("mercurjs telemetry --disable")}`,+ `Or by setting ${highlighter.info("MERCUR_DISABLE_TELEMETRY=true")}`,+ `Learn more: ${highlighter.info(TELEMETRY_DOCS_URL)}`,+ "",+ ].join("\n")+ );+};++const isTelemetryEnabled = () => {+ return (+ configStore.get("telemetry_enabled") &&+ process.env.MERCUR_DISABLE_TELEMETRY !== "true"+ );+};++export const sendTelemetryEvent = async (+ event: TelemetryEvent,+ options: { cwd: string }+) => {+ try {+ if (!isTelemetryEnabled()) {+ return;+ }++ const projectInfo = await getProjectInfo(options.cwd);++ const baseEvent = {+ nodeEnv: process.env.NODE_ENV || "development",+ nodeVersion: process.version,+ mercurVersion: projectInfo.mercurVersion,+ medusaVersion: projectInfo.medusaVersion,+ isSrcDir: projectInfo.isSrcDir,+ aliasPrefix: projectInfo.aliasPrefix,+ config: projectInfo.config,+ projectId: getProjectId(options.cwd),+ systemInfo: await detectSystemInfo(),+ packageManager: await getPackageManager(options.cwd),+ email: getTelemetryEmail(),+ };++ await fetch(TELEMETRY_URL, {+ body: JSON.stringify({ ...baseEvent, ...event }),+ headers: {+ "Content-Type": "application/json",+ },+ method: "post",+ });+ } catch {+ // Eat any errors in sending telemetry event+ }+};++const getGitID = () => {+ try {+ const originBuffer = execSync(+ "git config --local --get remote.origin.url",+ {+ stdio: "pipe",+ timeout: 1000,+ }+ );++ return String(originBuffer).trim();+ } catch {+ return null;+ }+};++const getProjectId = (cwd: string): string => {+ const gitID = getGitID();+ if (gitID) {+ return hashToBase64(gitID);+ }++ return hashToBase64(cwd);+};++export const getTelemetryEmail = () => {+ return configStore.get("telemetry_email") || undefined;+};++interface ProjectInfo {+ isSrcDir: boolean;+ aliasPrefix: string | null;+ medusaVersion: string | null;+ config: unknown;+ mercurVersion: string | null;+}++/**+ * Lightweight project introspection for freshly scaffolded projects. The full+ * CLI resolves this via tsconfig-paths/fast-glob/cosmiconfig; here the project+ * always has the template layout, so plain file reads at known paths suffice+ * and keep this package's dependency tree minimal.+ */+async function getProjectInfo(cwd: string): Promise<ProjectInfo> {+ const readJson = async (relPath: string): Promise<Record<string, unknown> | null> => {+ try {+ return await fs.readJSON(path.join(cwd, relPath));+ } catch {+ return null;+ }+ };++ const [isSrcDir, rootPkg, apiPkg, config, tsconfig] = await Promise.all([+ fs.pathExists(path.join(cwd, "src")),+ readJson("package.json"),+ readJson("packages/api/package.json"),+ readJson("blocks.json"),+ readJson("tsconfig.json"),+ ]);++ const dependenciesOf = (pkg: Record<string, unknown> | null) =>+ (pkg?.dependencies ?? {}) as Record<string, string | undefined>;++ const findDep = (name: string): string | null =>+ dependenciesOf(rootPkg)[name] ?? dependenciesOf(apiPkg)[name] ?? null;++ const compilerOptions = (tsconfig?.compilerOptions ?? {}) as {+ paths?: Record<string, unknown>;+ };+ const paths = compilerOptions.paths ?? {};+ const firstPath = Object.keys(paths)[0];+ const aliasPrefix = firstPath+ ? firstPath.includes("*")+ ? firstPath.replace("/*", "")+ : firstPath.replace("/", "")+ : null;++ return {+ isSrcDir,+ aliasPrefix,+ medusaVersion: findDep("@medusajs/framework"),+ mercurVersion: findDep("@mercurjs/cli"),+ config,+ };+}diff --git a/packages/create-mercur-app/src/telemetry/store.ts b/packages/create-mercur-app/src/telemetry/store.tsnew file mode 100644index 000000000..6b6fca13b--- /dev/null+++ b/packages/create-mercur-app/src/telemetry/store.ts@@ -0,0 +1,57 @@+import { existsSync, mkdirSync, readFileSync, writeFileSync } from "fs";+import { homedir } from "os";+import { join } from "path";++interface TelemetryConfig {+ telemetry_enabled: boolean;+ telemetry_email: string | null;+ notice_shown: boolean;+}++const CONFIG_DIR = join(homedir(), ".mercur");+const CONFIG_PATH = join(CONFIG_DIR, "config.json");++const DEFAULTS: TelemetryConfig = {+ telemetry_enabled: true,+ telemetry_email: null,+ notice_shown: false,+};++class ConfigStore {+ get<K extends keyof TelemetryConfig>(key: K): TelemetryConfig[K] {+ const config = this.read();+ return config[key];+ }++ set<K extends keyof TelemetryConfig>(key: K, value: TelemetryConfig[K]): void {+ const config = this.read();+ config[key] = value;+ this.write(config);+ }++ private read(): TelemetryConfig {+ try {+ if (!existsSync(CONFIG_PATH)) {+ return { ...DEFAULTS };+ }+ const raw = readFileSync(CONFIG_PATH, "utf-8");+ const parsed = JSON.parse(raw);+ return { ...DEFAULTS, ...parsed };+ } catch {+ return { ...DEFAULTS };+ }+ }++ private write(config: TelemetryConfig): void {+ try {+ mkdirSync(CONFIG_DIR, { recursive: true });+ writeFileSync(CONFIG_PATH, JSON.stringify(config, null, 2) + "\n", {+ mode: 0o600,+ });+ } catch {+ // Silently fail — telemetry config is non-critical+ }+ }+}++export const configStore = new ConfigStore();diff --git a/packages/cli/src/utils/create-db.ts b/packages/create-mercur-app/src/utils/create-db.tssimilarity index 97%rename from packages/cli/src/utils/create-db.tsrename to packages/create-mercur-app/src/utils/create-db.tsindex cec8b1837..06295bba9 100644--- a/packages/cli/src/utils/create-db.ts+++ b/packages/create-mercur-app/src/utils/create-db.ts@@ -1,7 +1,7 @@-import { getPackageManager } from "@/src/utils/get-package-manager";-import { logger } from "@/src/utils/logger";-import { manageEnvFiles } from "@/src/utils/manage-env-files";-import { spinner } from "@/src/utils/spinner";+import { getPackageManager } from "./get-package-manager";+import { logger } from "./logger";+import { manageEnvFiles } from "./manage-env-files";+import { spinner } from "./spinner";import { execa } from "execa";import type { Ora } from "ora";import path from "path";diff --git a/packages/create-mercur-app/src/utils/get-package-manager.ts b/packages/create-mercur-app/src/utils/get-package-manager.tsnew file mode 100644index 000000000..bf511d5a1--- /dev/null+++ b/packages/create-mercur-app/src/utils/get-package-manager.ts@@ -0,0 +1,93 @@+import { detect } from "@antfu/ni";+import { execa } from "execa";++export type PackageManager = "yarn" | "pnpm" | "bun" | "npm" | "deno";++const SUPPORTED_PACKAGE_MANAGERS: PackageManager[] = [+ "bun",+ "yarn",+ "pnpm",+ "deno",+ "npm",+];++function normalizePackageManager(+ value: string | null | undefined,+): PackageManager | undefined {+ if (!value) return undefined;+ return SUPPORTED_PACKAGE_MANAGERS.find((pm) => value.startsWith(pm));+}++/**+ * Detect the package manager that invoked the CLI from `npm_config_user_agent`.+ * This is the most reliable signal for what the user actually has and intends+ * to use (e.g. `npx`, `bunx`, `pnpm dlx`, `yarn dlx`).+ */+export function getPackageManagerFromUserAgent(): PackageManager | undefined {+ return normalizePackageManager(process.env.npm_config_user_agent);+}++/**+ * Check whether a package manager is actually installed and runnable, so we+ * never hand back a manager that would crash with `spawn <pm> ENOENT`.+ */+export async function isPackageManagerInstalled(+ packageManager: PackageManager,+): Promise<boolean> {+ try {+ await execa(packageManager, ["--version"]);+ return true;+ } catch {+ return false;+ }+}++export async function getPackageManager(+ targetDir: string,+): Promise<PackageManager> {+ const detected = normalizePackageManager(+ await detect({ programmatic: true, cwd: targetDir }),+ );++ // Respect the project's declared/lockfile package manager, but only if it is+ // actually installed — otherwise commands like `<pm> --version` blow up.+ if (detected && (await isPackageManagerInstalled(detected))) {+ return detected;+ }++ const fromUserAgent = getPackageManagerFromUserAgent();+ if (fromUserAgent && (await isPackageManagerInstalled(fromUserAgent))) {+ return fromUserAgent;+ }++ return "npm";+}++/**+ * Resolve the package manager to use for a brand-new project.+ *+ * Mirrors how the Medusa CLI picks a package manager: detect what the user+ * invoked the CLI with (`npm_config_user_agent`), verify it is actually+ * installed, and fall back to npm otherwise. The downloaded template's own+ * `packageManager` field (e.g. `[email protected]`) is intentionally ignored — it+ * reflects the template author's tooling, not the user's environment, and was+ * the cause of `spawn yarn ENOENT` crashes for users without yarn installed.+ */+export async function resolveProjectPackageManager(): Promise<PackageManager> {+ const fromUserAgent = getPackageManagerFromUserAgent();+ if (fromUserAgent && (await isPackageManagerInstalled(fromUserAgent))) {+ return fromUserAgent;+ }++ return "npm";+}++export async function getPackageRunner(cwd: string) {+ const packageManager = await getPackageManager(cwd);++ if (packageManager === "pnpm") return "pnpm dlx";++ if (packageManager === "bun") return "bunx";++ return "npx";+}diff --git a/packages/create-mercur-app/src/utils/handle-error.ts b/packages/create-mercur-app/src/utils/handle-error.tsnew file mode 100644index 000000000..0a66e79d1--- /dev/null+++ b/packages/create-mercur-app/src/utils/handle-error.ts@@ -0,0 +1,19 @@+import { logger } from "./logger";++export function handleError(error: unknown) {+ logger.break();+ logger.error(+ `Something went wrong. Please check the error below for more details.`+ );+ logger.error(`If the problem persists, please open an issue on GitHub.`);+ logger.error("");++ if (typeof error === "string") {+ logger.error(error);+ } else if (error instanceof Error) {+ logger.error(error.message);+ }++ logger.break();+ process.exit(1);+}diff --git a/packages/create-mercur-app/src/utils/highlighter.ts b/packages/create-mercur-app/src/utils/highlighter.tsnew file mode 100644index 000000000..7e8512d6d--- /dev/null+++ b/packages/create-mercur-app/src/utils/highlighter.ts@@ -0,0 +1,9 @@+import kleur from "kleur";++export const highlighter = {+ error: (text: string) => kleur.red(text),+ warn: (text: string) => kleur.yellow(text),+ info: (text: string) => kleur.blue(text),+ success: (text: string) => kleur.green(text),+ dim: (text: string) => kleur.cyan(text),+};diff --git a/packages/create-mercur-app/src/utils/logger.ts b/packages/create-mercur-app/src/utils/logger.tsnew file mode 100644index 000000000..0fab766aa--- /dev/null+++ b/packages/create-mercur-app/src/utils/logger.ts@@ -0,0 +1,22 @@+import { highlighter } from "./highlighter";++export const logger = {+ error(...args: unknown[]) {+ console.log(highlighter.error(args.join(" ")));+ },+ warn(...args: unknown[]) {+ console.log(highlighter.warn(args.join(" ")));+ },+ info(...args: unknown[]) {+ console.log(highlighter.info(args.join(" ")));+ },+ success(...args: unknown[]) {+ console.log(highlighter.success(args.join(" ")));+ },+ log(...args: unknown[]) {+ console.log(args.join(" "));+ },+ break() {+ console.log("");+ },+};diff --git a/packages/cli/src/utils/manage-env-files.ts b/packages/create-mercur-app/src/utils/manage-env-files.tssimilarity index 98%rename from packages/cli/src/utils/manage-env-files.tsrename to packages/create-mercur-app/src/utils/manage-env-files.tsindex c17e041f3..1d13c09a3 100644--- a/packages/cli/src/utils/manage-env-files.ts+++ b/packages/create-mercur-app/src/utils/manage-env-files.ts@@ -1,4 +1,4 @@-import { logger } from "@/src/utils/logger";+import { logger } from "./logger";import fs from "fs-extra";import path from "path";diff --git a/packages/create-mercur-app/src/utils/spinner.ts b/packages/create-mercur-app/src/utils/spinner.tsnew file mode 100644index 000000000..1d2c1638c--- /dev/null+++ b/packages/create-mercur-app/src/utils/spinner.ts@@ -0,0 +1,13 @@+import ora, { type Options } from "ora";++export function spinner(+ text: Options["text"],+ options?: {+ silent?: boolean;+ }+) {+ return ora({+ text,+ isSilent: options?.silent ?? false,+ });+}diff --git a/packages/create-mercur-app/tsconfig.json b/packages/create-mercur-app/tsconfig.jsonnew file mode 100644index 000000000..edb430726--- /dev/null+++ b/packages/create-mercur-app/tsconfig.json@@ -0,0 +1,18 @@+{+ "compilerOptions": {+ "lib": ["ESNext"],+ "target": "ESNext",+ "module": "Preserve",+ "moduleDetection": "force",+ "moduleResolution": "bundler",+ "verbatimModuleSyntax": true,+ "noEmit": true,+ "strict": true,+ "noFallthroughCasesInSwitch": true,+ "noImplicitOverride": true,+ "esModuleInterop": true,+ "skipLibCheck": true,+ "resolveJsonModule": true+ },+ "include": ["src/**/*"]+}diff --git a/packages/create-mercur-app/tsup.config.ts b/packages/create-mercur-app/tsup.config.tsnew file mode 100644index 000000000..345751935--- /dev/null+++ b/packages/create-mercur-app/tsup.config.ts@@ -0,0 +1,13 @@+import { defineConfig } from "tsup";++export default defineConfig({+ clean: true,+ dts: true,+ entry: ["src/index.ts", "src/lib.ts"],+ format: ["esm"],+ sourcemap: true,+ minify: true,+ target: "esnext",+ outDir: "dist",+ treeshake: true,+});diff --git a/packages/dashboard-sdk/package.json b/packages/dashboard-sdk/package.jsonindex ec0770859..38acf61b0 100644--- a/packages/dashboard-sdk/package.json+++ b/packages/dashboard-sdk/package.json@@ -1,6 +1,6 @@{"name": "@mercurjs/dashboard-sdk",- "version": "2.2.0-canary.39",+ "version": "2.2.0-canary.40","repository": {"type": "git","url": "https://github.com/mercurjs/mercur",diff --git a/packages/dashboard-shared/package.json b/packages/dashboard-shared/package.jsonindex 510190e54..d290f36f1 100644--- a/packages/dashboard-shared/package.json+++ b/packages/dashboard-shared/package.json@@ -1,6 +1,6 @@{"name": "@mercurjs/dashboard-shared",- "version": "2.2.0-canary.39",+ "version": "2.2.0-canary.40","repository": {"type": "git","url": "https://github.com/mercurjs/mercur",@@ -23,7 +23,7 @@"build": "tsup"},"dependencies": {- "@mercurjs/client": "2.2.0-canary.39",+ "@mercurjs/client": "2.2.0-canary.40","@ariakit/react": "^0.4.15","@babel/runtime": "^7.26.10","@dnd-kit/core": "^6.1.0",@@ -31,10 +31,10 @@"@dnd-kit/utilities": "^3.2.2","@hookform/error-message": "^2.0.1","@hookform/resolvers": "3.4.2",- "@medusajs/admin-shared": "options-preview",- "@medusajs/dashboard": "options-preview",- "@medusajs/icons": "options-preview",- "@medusajs/ui": "options-preview",+ "@medusajs/admin-shared": "2.17.2",+ "@medusajs/dashboard": "2.17.2",+ "@medusajs/icons": "2.17.2",+ "@medusajs/ui": "4.1.19","@radix-ui/react-dialog": "1.1.4","@radix-ui/react-dismissable-layer": "1.1.4","@tanstack/react-query": "5.64.2",@@ -63,9 +63,9 @@"zod": "3.25.76"},"devDependencies": {- "@mercurjs/types": "2.2.0-canary.39",- "@mercurjs/core": "2.2.0-canary.39",- "@mercurjs/dashboard-sdk": "2.2.0-canary.39",+ "@mercurjs/types": "2.2.0-canary.40",+ "@mercurjs/core": "2.2.0-canary.40",+ "@mercurjs/dashboard-sdk": "2.2.0-canary.40","tsup": "^8.0.2","typescript": "5.9.3","@types/lodash.debounce": "^4.0.8",diff --git a/packages/docs/.gitignore b/packages/docs/.gitignorenew file mode 100644index 000000000..917227201--- /dev/null+++ b/packages/docs/.gitignore@@ -0,0 +1,2 @@+content/+llms.txtdiff --git a/packages/docs/README.md b/packages/docs/README.mdnew file mode 100644index 000000000..bb7587317--- /dev/null+++ b/packages/docs/README.md@@ -0,0 +1,24 @@+# @mercurjs/docs++Bundled Mercur documentation, shipped as a dependency so AI agents can read it+locally — offline and version-matched to the installed packages.++## For agents++1. Read `llms.txt` — a grouped index of every page with its description.+2. Open the referenced file under `content/` for the full page before implementing.++Paths in `llms.txt` are relative to this package+(`node_modules/@mercurjs/docs/`).++## Contents++- `llms.txt` — the index.+- `content/**/*.mdx` — the documentation pages, mirroring the structure of the+ docs site (`learn/`, `resources/`, `tools/`, `references/`, `user-guide/`,+ `migration/`).++## Build++`content/` and `llms.txt` are generated from `apps/docs/rc` by+`scripts/build.mjs` (run via `turbo run build`). They are not committed.diff --git a/packages/docs/package.json b/packages/docs/package.jsonnew file mode 100644index 000000000..e70c1c3aa--- /dev/null+++ b/packages/docs/package.json@@ -0,0 +1,33 @@+{+ "name": "@mercurjs/docs",+ "version": "2.2.0-canary.40",+ "repository": {+ "type": "git",+ "url": "https://github.com/mercurjs/mercur",+ "directory": "packages/docs"+ },+ "keywords": [+ "marketplace",+ "multi-vendor",+ "medusajs",+ "documentation",+ "llms"+ ],+ "description": "Bundled Mercur documentation for AI agents — read node_modules/@mercurjs/docs/llms.txt, then open the referenced content/*.mdx.",+ "author": "Mercur",+ "license": "MIT",+ "files": [+ "content",+ "llms.txt"+ ],+ "scripts": {+ "build": "node ./scripts/build.mjs",+ "dev": "node ./scripts/build.mjs"+ },+ "publishConfig": {+ "access": "public"+ },+ "engines": {+ "node": ">=20"+ }+}diff --git a/packages/docs/scripts/build.mjs b/packages/docs/scripts/build.mjsnew file mode 100644index 000000000..b7b494b4f--- /dev/null+++ b/packages/docs/scripts/build.mjs@@ -0,0 +1,110 @@+import fs from "node:fs"+import path from "node:path"+import { fileURLToPath } from "node:url"++const __dirname = path.dirname(fileURLToPath(import.meta.url))+const PKG_DIR = path.resolve(__dirname, "..")+const SOURCE_DIR = path.resolve(__dirname, "../../../apps/docs/rc")+const CONTENT_DIR = path.resolve(PKG_DIR, "content")+const INDEX_FILE = path.resolve(PKG_DIR, "llms.txt")++// First path segment of a doc → the heading it appears under in the index.+const GROUP_LABELS = {+ learn: "Learn — concepts and getting started",+ resources: "Resources — tutorials, integrations, deployment",+ tools: "Tools — CLI, API client, dashboard SDK",+ references: "References — modules, HTTP API, configuration",+ "user-guide": "User Guide — admin and vendor panels",+ migration: "Migration",+}++function walk(dir) {+ const out = []+ for (const entry of fs.readdirSync(dir, { withFileTypes: true })) {+ const full = path.join(dir, entry.name)+ if (entry.isDirectory()) {+ out.push(...walk(full))+ } else if (entry.name.endsWith(".mdx")) {+ out.push(full)+ }+ }+ return out+}++// Minimal frontmatter reader — the docs only use flat `key: value` frontmatter.+function readFrontmatter(raw) {+ const match = raw.match(/^---\n([\s\S]*?)\n---/)+ if (!match) {+ return {}+ }+ const meta = {}+ for (const line of match[1].split("\n")) {+ const kv = line.match(/^(\w[\w-]*):\s*(.*)$/)+ if (!kv) {+ continue+ }+ meta[kv[1]] = kv[2].trim().replace(/^["']|["']$/g, "")+ }+ return meta+}++function main() {+ if (!fs.existsSync(SOURCE_DIR)) {+ throw new Error(`Docs source not found at ${SOURCE_DIR}`)+ }++ fs.rmSync(CONTENT_DIR, { recursive: true, force: true })+ fs.mkdirSync(CONTENT_DIR, { recursive: true })++ const files = walk(SOURCE_DIR).sort()+ const groups = new Map()++ for (const file of files) {+ const rel = path.relative(SOURCE_DIR, file)+ const dest = path.join(CONTENT_DIR, rel)+ fs.mkdirSync(path.dirname(dest), { recursive: true })+ const raw = fs.readFileSync(file, "utf8")+ fs.writeFileSync(dest, raw)++ const meta = readFrontmatter(raw)+ const segment = rel.split(path.sep)[0]+ const groupKey = GROUP_LABELS[segment] ? segment : "other"+ const bucket = groups.get(groupKey) ?? []+ bucket.push({+ title: meta.title || rel.replace(/\.mdx$/, ""),+ description: meta.description || "",+ path: `content/${rel.split(path.sep).join("/")}`,+ })+ groups.set(groupKey, bucket)+ }++ const orderedKeys = [...Object.keys(GROUP_LABELS), "other"].filter((k) =>+ groups.has(k)+ )++ const lines = [+ "# Mercur Documentation",+ "",+ "Bundled documentation for the Mercur marketplace framework. AI agents:",+ "read this index, then open the referenced file under `content/` for the",+ "full page before implementing anything. Paths are relative to this",+ "package (`node_modules/@mercurjs/docs/`).",+ "",+ ]++ for (const key of orderedKeys) {+ lines.push(`## ${GROUP_LABELS[key] || "Other"}`, "")+ for (const doc of groups.get(key)) {+ const suffix = doc.description ? ` — ${doc.description}` : ""+ lines.push(`- [${doc.title}](${doc.path})${suffix}`)+ }+ lines.push("")+ }++ fs.writeFileSync(INDEX_FILE, lines.join("\n"))++ const total = files.length+ console.log(`@mercurjs/docs: bundled ${total} pages → content/, wrote llms.txt`)+}++main()diff --git a/packages/docs/turbo.json b/packages/docs/turbo.jsonnew file mode 100644index 000000000..afc9b5193--- /dev/null+++ b/packages/docs/turbo.json@@ -0,0 +1,10 @@+{+ "$schema": "https://turborepo.dev/schema.json",+ "extends": ["//"],+ "tasks": {+ "build": {+ "inputs": ["scripts/**", "../../apps/docs/rc/**"],+ "outputs": ["content/**", "llms.txt"]+ }+ }+}diff --git a/packages/providers/payout-stripe-connect/package.json b/packages/providers/payout-stripe-connect/package.jsonindex 081eacb4f..b644ae578 100644--- a/packages/providers/payout-stripe-connect/package.json+++ b/packages/providers/payout-stripe-connect/package.json@@ -1,6 +1,6 @@{"name": "@mercurjs/payout-stripe-connect",- "version": "2.2.0-canary.39",+ "version": "2.2.0-canary.40","description": "Stripe Connect payment provider for Mercur","private": false,"type": "module",@@ -25,11 +25,11 @@"build": "tsup"},"peerDependencies": {- "@medusajs/framework": ">=2.16.0-0"+ "@medusajs/framework": ">=2.17.2"},"devDependencies": {- "@medusajs/framework": "options-preview",- "@mercurjs/types": "2.2.0-canary.39",+ "@medusajs/framework": "2.17.2",+ "@mercurjs/types": "2.2.0-canary.40","tsup": "^8.5.0"},"dependencies": {diff --git a/packages/registry/package.json b/packages/registry/package.jsonindex fb49f1241..d80b9f9c3 100644--- a/packages/registry/package.json+++ b/packages/registry/package.json@@ -1,6 +1,6 @@{"name": "@mercurjs/registry",- "version": "2.2.0-canary.39",+ "version": "2.2.0-canary.40","private": true,"type": "module","scripts": {@@ -10,21 +10,21 @@"test": "jest --config jest.config.cjs"},"dependencies": {- "@medusajs/framework": "options-preview",- "@medusajs/medusa": "options-preview",- "@mercurjs/dashboard-shared": "2.2.0-canary.39",- "@mercurjs/dashboard-sdk": "2.2.0-canary.39",- "@medusajs/ui": "options-preview",- "@medusajs/icons": "options-preview",+ "@medusajs/framework": "2.17.2",+ "@medusajs/medusa": "2.17.2",+ "@mercurjs/dashboard-shared": "2.2.0-canary.40",+ "@mercurjs/dashboard-sdk": "2.2.0-canary.40",+ "@medusajs/ui": "4.1.19",+ "@medusajs/icons": "2.17.2","@tanstack/react-query": "5.64.2","react-i18next": "13.5.0","react-router-dom": "6.30.3","@tanstack/react-table": "8.20.5",- "@mercurjs/client": "2.2.0-canary.39",+ "@mercurjs/client": "2.2.0-canary.40","zod": "3.25.76",- "@mercurjs/core": "2.2.0-canary.39",- "@mercurjs/vendor": "2.2.0-canary.39",- "@medusajs/core-flows": "options-preview",+ "@mercurjs/core": "2.2.0-canary.40",+ "@mercurjs/vendor": "2.2.0-canary.40",+ "@medusajs/core-flows": "2.17.2","react-hook-form": "7.49.1","@hookform/resolvers": "3.4.2","jsonwebtoken": "9.0.2",@@ -34,13 +34,13 @@"@talkjs/react": "^0.1.11"},"devDependencies": {- "@mercurjs/types": "2.2.0-canary.39",- "@mercurjs/cli": "2.2.0-canary.39",+ "@mercurjs/types": "2.2.0-canary.40",+ "@mercurjs/cli": "2.2.0-canary.40","@types/react": "^18.2.66","@types/react-dom": "^18.2.22","@types/node": "^22","@types/unzipper": "^0.10.10",- "@medusajs/cli": "options-preview",+ "@medusajs/cli": "2.17.2","@types/multer": "^2.0.0","@types/jsonwebtoken": "^9.0.9","@swc/core": "^1.7.28",diff --git a/packages/types/package.json b/packages/types/package.jsonindex b5e8280da..851571e11 100644--- a/packages/types/package.json+++ b/packages/types/package.json@@ -1,6 +1,6 @@{"name": "@mercurjs/types",- "version": "2.2.0-canary.39",+ "version": "2.2.0-canary.40","repository": {"type": "git","url": "https://github.com/mercurjs/mercur",@@ -36,7 +36,7 @@"dev": "tsc --watch"},"dependencies": {- "@medusajs/types": "options-preview"+ "@medusajs/types": "2.17.2"},"devDependencies": {"typescript": "5.9.3"diff --git a/packages/vendor/package.json b/packages/vendor/package.jsonindex b700556c6..9cd41d69f 100644--- a/packages/vendor/package.json+++ b/packages/vendor/package.json@@ -1,6 +1,6 @@{"name": "@mercurjs/vendor",- "version": "2.2.0-canary.39",+ "version": "2.2.0-canary.40","repository": {"type": "git","url": "https://github.com/mercurjs/mercur",@@ -29,8 +29,8 @@"lint": "oxlint --max-warnings 0"},"dependencies": {- "@mercurjs/dashboard-shared": "2.2.0-canary.39",- "@mercurjs/client": "2.2.0-canary.39",+ "@mercurjs/dashboard-shared": "2.2.0-canary.40",+ "@mercurjs/client": "2.2.0-canary.40","@ariakit/react": "^0.4.15","@babel/runtime": "^7.26.10","@dnd-kit/core": "^6.1.0",@@ -38,10 +38,10 @@"@dnd-kit/utilities": "^3.2.2","@hookform/error-message": "^2.0.1","@hookform/resolvers": "3.4.2",- "@medusajs/admin-shared": "options-preview",- "@medusajs/dashboard": "options-preview",- "@medusajs/icons": "options-preview",- "@medusajs/ui": "options-preview",+ "@medusajs/admin-shared": "2.17.2",+ "@medusajs/dashboard": "2.17.2",+ "@medusajs/icons": "2.17.2",+ "@medusajs/ui": "4.1.19","@radix-ui/react-dialog": "1.1.4","@radix-ui/react-dismissable-layer": "1.1.4","@tanstack/react-query": "5.64.2",@@ -74,7 +74,7 @@"react-dom": "^18.0.0"},"devDependencies": {- "@medusajs/ui-preset": "options-preview",+ "@medusajs/ui-preset": "2.17.2","@types/react": "^18.2.66","@types/react-dom": "^18.2.22","autoprefixer": "^10.4.20",@@ -82,9 +82,9 @@"tailwindcss": "^3.4.19","tsup": "^8.0.2","typescript": "5.9.3",- "@medusajs/types": "options-preview",- "@mercurjs/core": "2.2.0-canary.39",- "@mercurjs/dashboard-sdk": "2.2.0-canary.39",- "@mercurjs/types": "2.2.0-canary.39"+ "@medusajs/types": "2.17.2",+ "@mercurjs/core": "2.2.0-canary.40",+ "@mercurjs/dashboard-sdk": "2.2.0-canary.40",+ "@mercurjs/types": "2.2.0-canary.40"}}diff --git a/templates/basic/.claude/skills/README.md b/templates/basic/.claude/skills/README.mddeleted file mode 100644index 0aca54cb4..000000000--- a/templates/basic/.claude/skills/README.md+++ /dev/null@@ -1,14 +0,0 @@-# Mercur Basic Starter Skills--This directory contains the canonical, starter-safe skills shipped with the `basic` Mercur template.--Use these skills for repeated workflows in a project created from this starter.--## Available skills--- `mercur-cli`-- `mercur-blocks`-- `medusa-ui-conformance`-- `dashboard-page-ui`-- `dashboard-form-ui`-- `dashboard-tab-ui`diff --git a/templates/basic/.claude/skills/dashboard-form-ui/SKILL.md b/templates/basic/.claude/skills/dashboard-form-ui/SKILL.mddeleted file mode 100644index c9ca01587..000000000--- a/templates/basic/.claude/skills/dashboard-form-ui/SKILL.md+++ /dev/null@@ -1,124 +0,0 @@-----name: dashboard-form-ui-description: Create or modify forms in admin or vendor dashboards in the Mercur basic starter using stable form structure, validation, submission guards, and dashboard UI conventions.------# Dashboard Form UI--Use this skill when:-- adding or editing a form in admin or vendor-- wiring page-level create or edit flows-- reviewing submission, validation, or field structure--Applies equally to **admin** and **vendor** dashboards.--## Core rule--Prefer the existing Mercur form pattern already present in the screen or package. Do not introduce a parallel form system just because it is locally convenient.--Before introducing custom field wrappers, selectors, overlays, or other interactive form UI, apply `medusa-ui-conformance`.--## Required imports--Forms use `react-hook-form` with `zod` validation and components from `@mercurjs/dashboard-shared` and `@medusajs/ui`.--## Standard form page structure--A create/edit form page is a `RouteFocusModal` drawer route:--```tsx-// The page default export wraps RouteFocusModal (provides context)-const CreatePage = () => (- <RouteFocusModal>- <CreateForm />- </RouteFocusModal>-);-export default CreatePage;--// The form component uses RouteFocusModal.Form, .Header, .Body, .Footer-const CreateForm = () => {- const { t } = useTranslation();- const { handleSuccess } = useRouteModal();- const form = useForm({ defaultValues: { ... }, resolver: zodResolver(schema) });-- const handleSubmit = form.handleSubmit(async (data) => {- await mutateAsync(data, {- onSuccess: () => { toast.success("Created"); handleSuccess("/route"); },- onError: (error) => toast.error(error.message),- });- });-- return (- <RouteFocusModal.Form form={form}>- <form onSubmit={handleSubmit} className="flex h-full flex-col overflow-hidden">- <RouteFocusModal.Header />- <RouteFocusModal.Body className="flex size-full flex-col items-center p-16">- <div className="flex w-full max-w-[720px] flex-col gap-y-8">- {/* Heading, fields */}- </div>- </RouteFocusModal.Body>- <RouteFocusModal.Footer>- <RouteFocusModal.Close asChild>- <Button size="small" variant="secondary">{t("actions.cancel")}</Button>- </RouteFocusModal.Close>- <Button size="small" variant="primary" type="submit" isLoading={isPending}>- {t("actions.create")}- </Button>- </RouteFocusModal.Footer>- </form>- </RouteFocusModal.Form>- );-};-```--## Two form containers--### RouteFocusModal — for create flows-Full-screen modal overlay. Used for creating new entities.-- Page wraps `RouteFocusModal` (provides context), form uses `.Form`, `.Header`, `.Body`, `.Footer`, `.Close`-- `useRouteModal()` must be called inside the provider-- If using `TabbedForm`, do NOT use `RouteFocusModal.Form` — `TabbedForm` renders it internally. See `dashboard-tab-ui`.--### RouteDrawer — for edit flows-Side panel from the right. Used for editing existing entities.-- Same pattern: page wraps `RouteDrawer`, form uses `.Form`, `.Header`, `.Title`, `.Description`, `.Body`, `.Footer`, `.Close`-- **Critical:** Edit drawer route must use `@` prefix directory (e.g. `[id]/@edit/page.tsx`) to create a parallel route. Without `@`, the detail page unmounts. See `dashboard-page-ui` for full pattern.--## Key components--- `RouteFocusModal` / `RouteDrawer` — wraps the page, provides modal provider context-- `.Form` — wraps the form, connects react-hook-form-- `.Header` — modal/drawer header (RouteFocusModal has close button built in; RouteDrawer uses `.Title` and `.Description`)-- `.Body` — scrollable content area-- `.Footer` — sticky footer with actions-- `.Close` — closes the modal/drawer (use with `asChild` on Cancel button)-- `Form.Field` / `Form.Item` / `Form.Label` / `Form.Control` / `Form.ErrorMessage` — form field composition-- `Form.Label optional` — marks a field as optional in the UI--## Hard rules--1. Do not hardcode labels, hints, or button text; use i18n.-2. Do not ship forms without explicit validation behavior.-3. Do not rely only on button disabled state; submission guards must also protect non-button submit paths.-4. Do not flatten large forms into one unstructured wall of fields.-5. Do not add ad hoc field wrappers when the existing project already has a preferred form composition.-6. Do not use `useRouteModal()` outside a `RouteFocusModal` provider.--## Preferred patterns--- Use schema-driven validation (`zod` + `zodResolver`) when the form is non-trivial.-- Group related fields together and keep labels, hints, and errors predictable.-- Preserve loading, pending, success, and failure behavior in submission flows.-- When extending an existing form, follow its established wrapper, field, and footer shape.--## When to switch skills--- If the task is mainly page structure, use `dashboard-page-ui`.-- If the task is mainly a tabbed wizard, use `dashboard-tab-ui`.--## Verification--- confirm validation fires on the expected fields-- confirm the submit path is guarded during pending async work-- confirm translated copy, hints, and errors remain coherent-- run app build or lint after non-trivial form changesdiff --git a/templates/basic/.claude/skills/dashboard-page-ui/SKILL.md b/templates/basic/.claude/skills/dashboard-page-ui/SKILL.mddeleted file mode 100644index d05ff1b40..000000000--- a/templates/basic/.claude/skills/dashboard-page-ui/SKILL.md+++ /dev/null@@ -1,180 +0,0 @@-----name: dashboard-page-ui-description: Create or modify pages in admin or vendor dashboards in the Mercur basic starter using correct routing, page composition, i18n, and dashboard UI conventions.------# Dashboard Page UI--Use this skill when:-- adding a new page under `apps/admin/src/routes` or `apps/vendor/src/routes`-- extending a list or detail page in either dashboard-- adding page-level actions, sections, or empty states--Applies equally to **admin** and **vendor** dashboards — they share the same component library and routing conventions.--## First checks--- Route files belong under `src/routes` (NOT `src/pages` — the `mercurDashboardPlugin` scans `src/routes` only).-- Decide whether the task is page-level, form-level, or tab-level.-- Before inventing custom UI, apply `medusa-ui-conformance`.-- If it is form-only, use `dashboard-form-ui`.-- If it is tabbed wizard work, use `dashboard-tab-ui`.--## Hard rules--1. Do not hardcode user-facing strings; use i18n.-2. Do not hide route behavior behind unclear folder structure; keep file-based routing obvious.-3. Do not ship a page without explicit loading, empty, error, and success-state thinking.-4. Do not invent a brand-new page anatomy when an existing dashboard page pattern already fits.-5. Do not scatter action buttons and page actions without a clear header structure.-6. Do not place route files in `src/pages` — the `mercurDashboardPlugin` scans `src/routes` only.--## Sidebar navigation--For a page to appear in the sidebar, its `page.tsx` must export a named `config`:--```tsx-import type { RouteConfig } from "@mercurjs/dashboard-sdk";-import { Star } from "@medusajs/icons";--export const config: RouteConfig = {- label: "My Page",- icon: Star,-};-```--Without this export the page is reachable by URL but invisible in navigation.--## List page pattern--Use `_DataTable`, `SingleColumnPage`, and `useDataTable` from `@mercurjs/dashboard-shared`.--A list page should include:-- `SingleColumnPage` wrapper-- `Container` with heading and action buttons (Create via `Link` to the create route)-- `_DataTable` with `pagination`, `search`, `filters`, `orderBy`, `count`, `pageSize`, `noRecords`-- `navigateTo` on `_DataTable` to link rows to detail pages--## Detail page pattern--Detail pages use `TwoColumnPage` with `.Main` and `.Sidebar` from `@mercurjs/dashboard-shared`.--### Structure--```tsx-<TwoColumnPage data={entity} showJSON showMetadata>- <TwoColumnPage.Main>- <Container className="divide-y p-0">- {/* Header: title, StatusBadge for status, ActionMenu for actions */}- <SectionRow title="Field Label" value={entity.field} />- </Container>- {/* Group related fields into separate Container blocks with Heading level="h2" */}- </TwoColumnPage.Main>-- <TwoColumnPage.Sidebar>- <Container className="divide-y p-0">- {/* Secondary info: organization, inventory, metadata */}- <SectionRow title="Field Label" value={entity.field} />- </Container>- </TwoColumnPage.Sidebar>-</TwoColumnPage>-```--### Detail page conventions--- Use `SectionRow` for key-value pairs — `title` is the label, `value` is string or ReactNode.-- Use `StatusBadge` only for statuses (published, draft, active, etc.) — never `Badge`.-- Use plain text for categories, types, and other descriptive values — never wrap in `Badge`.-- Use `ActionMenu` with `groups` for contextual actions (Edit, Delete). Put destructive actions in a separate group.-- Main column: primary content, descriptions, key details.-- Sidebar: secondary info, organization, metadata.--## Create page pattern--Create pages live at `src/routes/<entity>/create/page.tsx` and open as a `RouteFocusModal` full-screen overlay:--```tsx-const CreatePage = () => (- <RouteFocusModal>- <CreateForm />- </RouteFocusModal>-);-export default CreatePage;-```--The form component inside uses `useRouteModal()` for `handleSuccess`. See `dashboard-form-ui` or `dashboard-tab-ui` for form details.--## Edit drawer pattern--Edit pages use `RouteDrawer` — a side panel that slides in from the right over the detail page.--**Critical:** The edit directory must use the `@` prefix to create a parallel route:-- Correct: `src/routes/<entity>/[id]/@edit/page.tsx`-- Wrong: `src/routes/<entity>/[id]/edit/page.tsx`--Without `@`, the SDK creates a flat route that **replaces** the detail page — the background disappears. With `@`, it creates a child route that renders inside the parent's `Outlet`.--The detail page must set `hasOutlet` to render the child route:-```tsx-<TwoColumnPage data={entity} showJSON showMetadata hasOutlet>-```--Edit drawer structure:-```tsx-const EditForm = () => {- const { handleSuccess } = useRouteModal();- const form = useForm({ ... });- const handleSubmit = form.handleSubmit(async (data) => {- handleSuccess(`/<entity>/${id}`);- });-- return (- <RouteDrawer.Form form={form}>- <form onSubmit={handleSubmit} className="flex h-full flex-col overflow-hidden">- <RouteDrawer.Header>- <RouteDrawer.Title>Edit Entity</RouteDrawer.Title>- <RouteDrawer.Description>Update details.</RouteDrawer.Description>- </RouteDrawer.Header>- <RouteDrawer.Body className="flex flex-col gap-y-4 overflow-y-auto p-6">- {/* Form.Field components */}- </RouteDrawer.Body>- <RouteDrawer.Footer>- <RouteDrawer.Close asChild>- <Button size="small" variant="secondary">{t("actions.cancel")}</Button>- </RouteDrawer.Close>- <Button size="small" variant="primary" type="submit">{t("actions.save")}</Button>- </RouteDrawer.Footer>- </form>- </RouteDrawer.Form>- );-};--const EditPage = () => (- <RouteDrawer>- <EditForm />- </RouteDrawer>-);-export default EditPage;-```--Link to edit from the detail page ActionMenu:-```tsx-{ label: "Edit", icon: <PencilSquare />, onClick: () => navigate(`/<entity>/${id}/edit`) }-```--## Routing expectations--- `page.tsx` controls the route.-- Export `config: RouteConfig` when the page should appear in navigation.-- Detail pages: `src/routes/<entity>/[id]/page.tsx`-- Create pages: `src/routes/<entity>/create/page.tsx`-- Edit drawers: `src/routes/<entity>/[id]/@edit/page.tsx` (note `@` prefix)-- Keep nested routes and dynamic segments easy to infer from the folder path.--## Verification--- confirm the route resolves and appears in sidebar (if config is exported)-- confirm the page copy is translated or translation-ready-- confirm loading and error behavior still make sense-- confirm StatusBadge is used for statuses, plain text for descriptive values-- run app build or lint after non-trivial page workdiff --git a/templates/basic/.claude/skills/dashboard-tab-ui/SKILL.md b/templates/basic/.claude/skills/dashboard-tab-ui/SKILL.mddeleted file mode 100644index 847ab887a..000000000--- a/templates/basic/.claude/skills/dashboard-tab-ui/SKILL.md+++ /dev/null@@ -1,109 +0,0 @@-----name: dashboard-tab-ui-description: Create or modify tabbed workflows in admin or vendor dashboards in the Mercur basic starter using stable tab structure, validation scope, and i18n-aware wizard conventions.------# Dashboard Tab UI--Use this skill when:-- adding a custom tab to a tabbed flow in admin or vendor-- extending a multi-step wizard-- reviewing tab layout, validation scope, or navigation behavior--Applies equally to **admin** and **vendor** dashboards.--Before introducing custom interactive UI inside a tab, apply `medusa-ui-conformance`.--## Required component--Always use `TabbedForm` from `@mercurjs/dashboard-shared` — do NOT build custom tab navigation with `ProgressTabs` from `@medusajs/ui` directly.--## TabbedForm API--`TabbedForm` handles internally: `RouteFocusModal.Form`, `ProgressTabs` in the header navbar, `KeyboundForm`, and a default footer with Cancel/Continue/Save.--### Props--- `form` — `UseFormReturn` from `react-hook-form`-- `onSubmit` — submit handler from `form.handleSubmit()`-- `isLoading` (optional) — disables submit button-- `footer` (optional) — custom footer render prop; omit to use the default--### TabbedForm.Tab props--- `id` (string, required) — unique tab identifier-- `label` (string, required) — display label in the tab bar-- `validationFields` (FieldPath[], optional) — fields to validate on this tab-- `isVisible` ((form) => boolean, optional) — dynamic tab visibility--## Page structure--The create page wraps `RouteFocusModal` around the form component:--```tsx-const CreatePage = () => (- <RouteFocusModal>- <CreateForm />- </RouteFocusModal>-);-export default CreatePage;-```--The form component renders `TabbedForm` directly — do NOT nest it inside another `RouteFocusModal.Form`:--```tsx-const CreateForm = () => {- const { handleSuccess } = useRouteModal();- const form = useForm({ resolver: zodResolver(schema), defaultValues: { ... } });- const handleSubmit = form.handleSubmit(async (data) => {- handleSuccess("/entity-route");- });-- return (- <TabbedForm form={form} onSubmit={handleSubmit}>- <TabbedForm.Tab id="general" label="General">- <div className="flex flex-col gap-y-4 p-8">- {/* Form.Field components */}- </div>- </TabbedForm.Tab>- </TabbedForm>- );-};-```--## Known issue: validation blocks Continue--`TabbedForm`'s internal `onNext` calls `form.trigger()` without arguments, which validates the **entire** form — not just the active tab's fields. Required fields on later tabs will prevent Continue from working.--**Workaround:** Only mark fields as required (`.min(1)`) if they are on the first tab. Use `.optional()` for fields on later tabs and validate at submit time if needed.--## Hard rules--1. Do not hardcode tab labels; use i18n-aware metadata.-2. Do not put all fields into one flat tab without section structure.-3. Do not build custom tab UI with `ProgressTabs` directly — use `TabbedForm`.-4. Do not wrap `TabbedForm` in `RouteFocusModal.Form` — it does this internally.-5. Do not provide a custom `footer` unless you need to change button labels — the default footer handles Cancel/Continue/Save correctly.-6. Do not add required zod validation to fields on tabs beyond the first (see known issue above).-7. Do not break keyboard or submit behavior when adding a tab.-8. Do not assume tabs are static if visibility depends on form state.--## Preferred patterns--- Give each tab a single clear purpose.-- Keep a visible header (`Heading level="h2"`) and grouped sections inside each tab body.-- Add `className="p-8"` to the wrapping div inside each `TabbedForm.Tab` for consistent spacing.-- Use `Form.Field` / `Form.Item` / `Form.Label` / `Form.Control` / `Form.ErrorMessage` from `@mercurjs/dashboard-shared`.-- Use `zodResolver` with `react-hook-form` for schema validation.--## When to switch skills--- Page shell work -> `dashboard-page-ui`-- Form field work without wizard concerns -> `dashboard-form-ui`--## Verification--- confirm Continue navigates to the next tab (check that later-tab fields are not required in zod schema)-- confirm tab labels and content are translation-ready-- confirm dynamic visibility does not leave the flow in an invalid state-- run app build or lint after non-trivial tab workdiff --git a/templates/basic/.claude/skills/medusa-ui-conformance/SKILL.md b/templates/basic/.claude/skills/medusa-ui-conformance/SKILL.mddeleted file mode 100644index ab1f3cd4e..000000000--- a/templates/basic/.claude/skills/medusa-ui-conformance/SKILL.md+++ /dev/null@@ -1,99 +0,0 @@-----name: medusa-ui-conformance-description: Keep custom admin and vendor UI in the Mercur basic starter aligned with local wrappers and @medusajs/ui. Use when adding reusable UI, interactive primitives, overlays, menus, selectors, or custom dashboard components.------# Medusa UI Conformance--Use this skill when:-- adding custom admin or vendor UI-- creating reusable components-- deciding whether to build, reuse, or compose an interaction pattern--This starter does not assume direct Radix usage on day one.--Use this order:-1. `@mercurjs/dashboard-shared` components (TabbedForm, _DataTable, SingleColumnPage, TwoColumnPage, RouteFocusModal, Form, etc.)-2. `@medusajs/ui` components (Button, Input, Select, Container, Heading, Text, StatusBadge, toast, etc.)-3. composition of the above-4. only then add a lower-level primitive if the project genuinely needs it--## Available from @mercurjs/dashboard-shared--Layout: `SingleColumnPage`, `TwoColumnPage` (.Main, .Sidebar), `SectionRow`-Data: `_DataTable`, `useDataTable`, `DataGrid`-Modal: `RouteFocusModal` (.Form, .Header, .Body, .Footer, .Close), `RouteDrawer`, `StackedFocusModal`, `StackedDrawer`-Form: `Form` (.Field, .Item, .Label, .Control, .ErrorMessage), `TabbedForm` (.Tab, .useForm)-Actions: `ActionMenu` (with `groups` of actions)-Hooks: `useRouteModal`, `useStackedModal`, `useTabManagement`, `useTabbedForm`, `useDataTable`, `useQueryParams`--## Available from @medusajs/ui--Primitives: `Button`, `Input`, `Textarea`, `Select`, `Checkbox`, `Switch`, `RadioGroup`-Layout: `Container`, `Heading`, `Text`, `Table`, `Tabs`, `ProgressTabs`-Status: `StatusBadge` — for statuses with colored dot (e.g. published, draft, active)-Tags: `Badge` — for counts and tags only, never for statuses-Feedback: `toast`-Icons: import from `@medusajs/icons`--## Component usage rules--### StatusBadge vs Badge vs plain text--- `StatusBadge` — statuses only (published, draft, active, pending, etc.). Takes `color`: "green", "orange", "red", "blue", "grey".-- `Badge` — counts and tags only (e.g. "3 items", "+2 more"). Never for statuses.-- Plain text — categories, types, names, descriptions, and any other descriptive values. Do not wrap in Badge or StatusBadge.--### SectionRow--- Key-value display in detail pages. `title` is the label, `value` is string or ReactNode.-- Keep values simple: plain text, `StatusBadge`, or minimal formatted content.--### ActionMenu--- Contextual actions (Edit, Delete, etc.) on detail pages and row-level.-- `groups` array — each group is visually separated. Put destructive actions in their own group.--### TabbedForm--- Multi-step form wizard inside `RouteFocusModal`. Renders `ProgressTabs` in the header navbar automatically.-- Do NOT build tab navigation manually with `ProgressTabs` — use `TabbedForm` which handles form context, keyboard shortcuts, and footer.--### _DataTable--- Data tables with pagination, search, filters, sorting.-- Do NOT build custom tables with `Table` from `@medusajs/ui` when `_DataTable` covers the use case.--## Hard rules--1. Do not build custom dropdowns, dialogs, drawers, tooltips, popovers, tabs, accordions, or selects if `@medusajs/ui` already covers the interaction.-2. Do not build custom tabbed forms — use `TabbedForm` from `@mercurjs/dashboard-shared`.-3. Do not build custom data tables — use `_DataTable` from `@mercurjs/dashboard-shared`.-4. Do not add a new shared component when an existing wrapper already solves the pattern.-5. Do not introduce custom interactive UI without keyboard behavior, focus handling, and i18n.-6. Do not create a one-off visual language that fights the rest of the dashboard.-7. Do not use `ProgressTabs` directly for multi-step forms — use `TabbedForm`.-8. Do not use `Badge` for status display — use `StatusBadge`.-9. Do not wrap categories, types, or descriptive text in `Badge` or `StatusBadge` — use plain text.--## Decision checks--Before creating custom UI, ask:-- does `@mercurjs/dashboard-shared` export a component for this?-- can `@medusajs/ui` solve this directly?-- can I compose the solution from existing wrappers and `@medusajs/ui`?-- if not, is the gap real and reusable enough to justify a new component?--## Review checklist--- reused `@mercurjs/dashboard-shared` where applicable-- preferred `@medusajs/ui` over custom primitives-- `StatusBadge` for statuses, plain text for descriptive values-- copy is translation-ready-- interaction is accessible and testable--## Verification--- run the relevant app lint/build-- manually check keyboard and focus behavior for non-trivial interactions-- verify StatusBadge vs Badge vs plain text usagediff --git a/templates/basic/.claude/skills/mercur-blocks/SKILL.md b/templates/basic/.claude/skills/mercur-blocks/SKILL.mddeleted file mode 100644index 2f0883705..000000000--- a/templates/basic/.claude/skills/mercur-blocks/SKILL.md+++ /dev/null@@ -1,84 +0,0 @@-----name: mercur-blocks-description: Discover, evaluate, install, and verify Mercur blocks in the basic starter using `blocks.json` aliases and CLI workflows.------# Mercur Blocks Workflow--Use this skill when:-- evaluating whether a block fits the starter project-- adding a block-- checking installed block impact-- updating a block and reviewing drift--## Alias map--In the basic starter:-- `api` -> `packages/api/src`-- `admin` -> `apps/admin/src`-- `vendor` -> `apps/vendor/src`--Think about block impact by alias destination, not just by name.--## Workflow--1. Search if the exact block name is not known.-2. View the block before installation.-3. Identify which aliases and workspaces it will touch.-4. Add the block.-5. When CLI asks to overwrite `middlewares.ts` — **always decline** and merge manually.-6. Inspect the installed files and the block docs output.-7. Apply all configuration from the block docs (middleware, medusa-config, env vars, migrations).-8. Run `bun run dev` from `packages/api` and check for startup errors before moving on.--## Post-install checklist--- Did files land under `packages/api/src`, `apps/admin/src`, or `apps/vendor/src`?-- Does `packages/api/medusa-config.ts` need module or provider registration?-- Did the block docs specify middleware to add to `src/api/middlewares.ts`?- - Check the **actual export names and paths** in the installed middleware files — block docs may have wrong paths.- - Verify the import path matches `./actual/folder/middlewares` not a generic path from docs.-- Did the block add custom modules that need `db:generate <module>` and `db:migrate`?- - Even if docs don't mention migrations, check if the module has a `models/` directory — if it does, migrations are needed.-- Did the block add UI routes? They must be under `src/routes/` (not `src/pages/`) for the dashboard SDK to detect them.-- Did the block add UI pages that need `export const config: RouteConfig` for sidebar visibility?-- Did the block docs require env vars, plugin options, or config changes?-- Did the block specify npm dependencies? Install any that CLI didn't handle automatically.--## Known issues with block docs--Block docs may contain inaccurate information. Always verify:-- **Middleware import paths**: docs may reference generic paths like `./admin/middlewares` when the actual file is at `./admin/<feature>/middlewares`.-- **Middleware export names**: check the actual `export const` name in the installed file.-- **Missing dependencies**: some blocks import npm packages not listed in their `dependencies` array.-- **Missing migration instructions**: some blocks with custom modules don't mention `db:generate` / `db:migrate` in docs.-- **File conflicts**: multiple blocks may try to write the same file (e.g. workflow hooks). Decline overwrites and merge manually.--## Middleware merging--When adding a block's middleware to `src/api/middlewares.ts`:-1. Read the actual installed middleware file to get the correct export name and path.-2. Add the import to the existing `middlewares.ts`.-3. Spread it into the existing `routes` array.--Do NOT accept CLI's middleware overwrite — it replaces the entire file.--## Useful commands--```bash-npx @mercurjs/cli@latest search --query <keyword>-npx @mercurjs/cli@latest view <block>-npx @mercurjs/cli@latest add <block>-npx @mercurjs/cli@latest diff <block>-```--Run CLI commands from the project root where `blocks.json` lives.-Run `medusa` commands (db:generate, db:migrate) from `packages/api`.--## Avoid--- adding blocks without reviewing their docs first-- accepting middleware.ts overwrite from CLI-- ignoring config or env follow-up after install-- skipping `diff` when reviewing block updates-- trusting docs blindly — verify import paths and dependencies against installed filesdiff --git a/templates/basic/.claude/skills/mercur-cli/SKILL.md b/templates/basic/.claude/skills/mercur-cli/SKILL.mddeleted file mode 100644index 05bc00869..000000000--- a/templates/basic/.claude/skills/mercur-cli/SKILL.md+++ /dev/null@@ -1,77 +0,0 @@-----name: mercur-cli-description: Use Mercur CLI commands correctly inside a project created from the Mercur basic starter. Use when choosing between `create`, `init`, `add`, `search`, `view`, and `diff`.------# Mercur CLI--Use this skill when:-- creating a new Mercur project-- initializing `blocks.json`-- searching, viewing, adding, or diffing blocks-- deciding whether a command should run from the project root or a workspace--## Command map--- `create` — create a new Mercur project-- `init` — create `blocks.json` in an existing project-- `search` — search the registry-- `view` — inspect a block before installation-- `add` — install a block-- `diff` — compare local installed block files against the registry--## Where commands run--- Run Mercur CLI registry commands (`search`, `view`, `add`, `diff`) from the **project root** where `blocks.json` lives.-- Run `medusa` commands (`db:generate`, `db:migrate`) from `packages/api` using `bunx medusa`.-- Run admin or vendor verification from `apps/admin` or `apps/vendor`.--## Common flows--### Discover and inspect a block--```bash-npx @mercurjs/cli@latest search --query <keyword>-npx @mercurjs/cli@latest view <block-name>-```--### Add a block--```bash-npx @mercurjs/cli@latest add <block-name>-```--**Important:** When CLI asks to overwrite `middlewares.ts`, always decline (`n`) and merge manually.--### Check local drift--```bash-npx @mercurjs/cli@latest diff <block-name>-```--## After `add`--Follow the block docs output, but verify everything against the actual installed files:--1. **Middleware**: Read the actual middleware file to get the correct export name and path. Add the import and spread to `src/api/middlewares.ts`.-2. **medusa-config.ts**: Add modules, providers, plugin options, or env-driven config as docs specify.-3. **Migrations**: If the block added a module with models, run `bunx medusa db:generate <module>` and `bunx medusa db:migrate` from `packages/api`.-4. **Dependencies**: If the dev server fails with "Cannot find module", install the missing dependency with `bun add <package>` in the correct workspace.-5. **Env vars**: Add any required environment variables to `.env`.-6. **Validation**: Run the dev server and check for startup errors before moving on.--## Known CLI behaviors--- CLI may prompt "You need to create a blocks.json" even when it exists — this happens when running from the wrong directory.-- CLI's `add` outputs the block docs after installation — read them carefully but verify against installed files.-- CLI may install files from one block that overlap with another block (shared files). Declining overwrites preserves existing work.-- The `search` command with `--query ""` returns all available blocks.--## Avoid--- running registry commands outside the project root-- guessing block names without `search` or `view`-- accepting `middlewares.ts` overwrite from CLI-- assuming an installed block only changed one workspace-- trusting block docs blindly for import paths or dependencies-- skipping dev server validation after installing a blockdiff --git a/templates/basic/.claude/skills/migration-guide/SKILL.md b/templates/basic/.claude/skills/migration-guide/SKILL.mddeleted file mode 100644index b09f67431..000000000--- a/templates/basic/.claude/skills/migration-guide/SKILL.md+++ /dev/null@@ -1,160 +0,0 @@-----name: migration-guide-description: Analyze a Mercur 1.x project and guide migration to 2.0. Self-contained — works without access to the mercur monorepo.-argument-hint: "[path-to-old-project]"------# Migration Guide: Mercur 1.x → 2.0--Use this skill when:-- Migrating an existing Mercur 1.x project to 2.0-- Evaluating migration scope or effort-- Porting custom backend or dashboard code--## Package Mapping--| 1.x | 2.0 |-|-------|--------|-| `@mercurjs/b2c-core` | `@mercurjs/core` — all core modules built in |-| `@mercurjs/commission` | Built into core |-| `@mercurjs/algolia` | Registry block: `mercurjs add algolia` |-| `@mercurjs/resend` | No 2.0 equivalent — port manually |-| `@mercurjs/payment-stripe-connect` | No 2.0 equivalent — port manually |-| `@mercurjs/stripe-tax-provider` | No 2.0 equivalent — port manually |-| `@medusajs/admin-vite-plugin` | `@mercurjs/dashboard-sdk` |-| `@medusajs/js-sdk` | `@mercurjs/client` (generated typed client) |--## Directory Mapping--| 1.x | 2.0 |-|-------|--------|-| `apps/backend/src/*` | `packages/api/src/*` |-| `apps/backend/src/modules/` | `packages/api/src/modules/` |-| `apps/backend/src/workflows/` | `packages/api/src/workflows/` |-| `apps/backend/src/api/` | `packages/api/src/api/` |-| `apps/backend/src/subscribers/` | `packages/api/src/subscribers/` |-| `apps/backend/src/links/` | `packages/api/src/links/` |-| `apps/admin/src/routes/` | `apps/admin/src/routes/` |-| `apps/vendor/src/routes/` | `apps/vendor/src/routes/` |--## Import Changes--| Old | New |-|-----|-----|-| `from "@medusajs/utils"` | `from "@medusajs/framework/utils"` |-| `from "@medusajs/js-sdk"` | `from "@mercurjs/client"` |-| `from "@custom-types/*"` | `from "@mercurjs/types"` |-| `from "@hooks/*"` | `from "@mercurjs/dashboard-shared"` or local |-| `from "@components/*"` | `from "@mercurjs/dashboard-shared"` |-| `from "@lib/*"` | `from "@mercurjs/dashboard-shared"` |-| `from "@mercurjs/b2c-core"` | `from "@mercurjs/core"` |--## Provider Registration--Custom providers in `medusa-config.ts` must use `./src/` prefix:--```typescript-// Wrong (will fail with "Cannot find module")-resolve: './providers/my-provider'--// Correct-resolve: './src/providers/my-provider'-```--Provider entry files must import from `@medusajs/framework/utils`, not `@medusajs/utils`:--```typescript-import { Modules, ModuleProvider } from "@medusajs/framework/utils"-```--## Config Migration--`medusa-config.ts` plugin registration changed:--```typescript-// 1.x-plugins: [{ resolve: "@mercurjs/b2c-core", options: {} }]--// 2.0-plugins: [{ resolve: "@mercurjs/core", options: {} }]-// + individual module registrations in modules array-```--## Workflow--### Step 1: Analyze the old project--Scan the 1.x project the user provides:-- Read `package.json` — list all `@mercurjs/*` and `@medusajs/*` dependencies. Note the `@mercurjs/b2c-core` version to determine project version.-- If version < 1.4.0: custom admin code is inside the backend repo (not `apps/admin/`) — search `apps/backend/` when scanning for custom dashboard pages-- Read `medusa-config.ts` — list plugins, modules, providers-- Scan `src/modules/` — count and list custom modules-- Scan `src/workflows/` — count custom workflows-- Scan `src/api/` — count custom API routes-- Scan `src/subscribers/` — count subscribers-- Scan `src/links/` — count custom links-- Check `apps/admin/src/` and `apps/vendor/src/` for custom pages--### Step 2: Classify--| Level | Criteria |-|-------|----------|-| **Starter** | No custom code beyond configuration |-| **Light custom** | < 10 custom endpoints, < 5 workflows, no custom modules |-| **Heavy custom** | Custom modules, > 10 workflows, custom admin pages, third-party integrations |--Communicate classification to user before proceeding.--### Step 3: Map each element--For every custom element found, determine:-- Has 2.0 equivalent in core? → skip, already there-- Has registry block? → install with `mercurjs add <block>`-- Needs manual port? → queue for Step 4--### Step 4: Execute migration--Port in this order:-1. **Config** — update `medusa-config.ts` (plugins, modules, providers)-2. **Providers** — copy to `packages/api/src/providers/`, fix imports-3. **Modules** — copy to `packages/api/src/modules/`, register in config-4. **Workflows** — copy to `packages/api/src/workflows/<entity>/`-5. **Links** — copy to `packages/api/src/links/` (skip core duplicates)-6. **Subscribers** — copy to `packages/api/src/subscribers/`-7. **API routes** — copy to `packages/api/src/api/`, type both generics-8. **Middleware** — merge into `packages/api/src/api/middlewares.ts`-9. **Dashboard pages** — move to `src/routes/` (NOT `src/pages/` — dashboard SDK scans `src/routes/`), update imports--After each group: run `bun medusa develop` and verify server starts.--After API routes: run `bunx @mercurjs/cli@latest codegen`.--After dashboard: run `bun vite build` in `apps/admin` and `apps/vendor`.--### Step 5: Verify--- Server starts without errors-- All custom endpoints respond-- Dashboard builds without errors-- Custom pages render in browser--## Stop Conditions--Stop and ask the user when:-- A custom module depends on internal APIs not in core-- A third-party integration has no clear migration path-- Database schema conflicts arise-- The old project uses MedusaJS core modifications-- You cannot classify the project difficulty-- Server fails to start after porting and the cause is unclear--## Avoid--- Do not attempt in-place upgrades of 1.x projects-- Do not install 1.x packages in a 2.0 project-- Do not create barrel `index.ts` files in `workflows/` or `steps/` (conflicts with block installation)-- Do not duplicate links that core already provides--## More Info--Full migration documentation: https://docs.mercur.js/v2/migrations/overviewdiff --git a/templates/basic/AGENTS.md b/templates/basic/AGENTS.mdindex d01cffe22..53141a63c 100644--- a/templates/basic/AGENTS.md+++ b/templates/basic/AGENTS.md@@ -2,11 +2,14 @@**This is a Mercur marketplace project — an open-source AI-native multi-vendor marketplace built on MedusaJS v2.**-## Architecture+## Read the docs first-- **Foundation**: MedusaJS v2 (headless commerce)-- **Language**: TypeScript (strict)-- **Pattern**: Block-based — modules, workflows, API routes, and UI extensions installed via CLI+Before any non-trivial change, read the **bundled documentation** — it ships as a dependency, so it is offline and version-matched to this project's packages:++1. Index: `node_modules/@mercurjs/docs/llms.txt`+2. Full pages: `node_modules/@mercurjs/docs/content/**/*.mdx`++It covers the domain model (sellers, products, offers, attributes, commissions, payouts, order groups), the CLI, the typed API client, the dashboard SDK, and module references. Don't guess at an API or data model the docs already describe.### Project Structure@@ -19,51 +22,10 @@## Documentation-- **Docs**: https://docs.mercurjs.com+- **Bundled docs (read first)**: `node_modules/@mercurjs/docs/llms.txt` → `content/**/*.mdx`+- **Online docs**: https://docs.mercurjs.com- **MCP Server**: https://docs.mercurjs.com/mcp — connect your AI agent for documentation search-- **llms.txt**: https://docs.mercurjs.com/llms.txt — machine-readable project summary--## CLI Commands--```bash-# Add blocks from the Mercur registry-bunx @mercurjs/cli add <block-name>--# Search available blocks-bunx @mercurjs/cli search -q "commission"--# Generate TypeScript types from API routes-bunx @mercurjs/cli codegen--# Start development server-bun run dev-```--## Block System--Mercur uses reusable blocks installed into your project:--- **Modules** — data models and business logic (sellers, commissions, offers)-- **Links** — relationships between modules-- **Workflows** — multi-step business processes (order splitting, payouts)-- **API Routes** — HTTP endpoints for admin, vendor, and storefront-- **Admin Extensions** — UI components for the admin dashboard-- **Vendor Extensions** — UI components for the vendor portal--Install blocks:--```bash-bunx @mercurjs/cli add seller commission payout-```--## Skills--This project includes `.claude/skills/` with domain-specific patterns for:-- Admin and vendor UI (pages, forms, tabs)-- Block discovery and installation-- Code review and UI conformance--Skills are auto-loaded by Claude Code. See `CLAUDE.md` for the full workflow guide.+- **llms.txt (online)**: https://docs.mercurjs.com/llms.txt## Configuration Files@@ -79,6 +41,7 @@ bun run dev```This starts:+- Backend API at `http://localhost:9000`-- Admin Panel at `http://localhost:7000`-- Vendor Panel at `http://localhost:7001`+- Admin Panel at `http://localhost:9000/seller`+- Vendor Panel at `http://localhost:9000/dashboard`diff --git a/templates/basic/CLAUDE.md b/templates/basic/CLAUDE.mdindex ed0305886..43c994c2d 100644--- a/templates/basic/CLAUDE.md+++ b/templates/basic/CLAUDE.md@@ -1,113 +1 @@-# Mercur Basic Starter Agent Guide--This file is the primary workflow guide for agents working inside a project created from the `basic` Mercur template.--Use this file to answer four questions before making a non-trivial change:-- where should I work?-- which starter contract surfaces am I touching?-- which shared skill should I use?-- what should I verify before I finish?--This starter does not require a spec-first workflow. Teams can add planning artifacts later if they want, but this template focuses on operational knowledge for shipping changes safely.--## Adding Features — Check the Registry First--Before implementing any new marketplace feature from scratch, always search the official Mercur registry:--```bash-npx @mercurjs/cli@latest search --query <keyword>-```--Many common features (reviews, team management, wishlists, notifications, chat, CSV import/export, approval flows, Algolia search) are already available as registry blocks. Installing a block is always faster and safer than building from scratch. Use the `mercur-blocks` skill when a block looks like a match.--Only build custom code when the registry has no suitable block.--## Workflow--For any non-trivial task:-1. understand the request-2. read this file-3. if the request is a feature addition — search the registry before touching any code-4. read every matching area guide from the Task Router-5. load a matching skill from `.claude/skills/` when the task is a repeated workflow-6. implement in small steps-7. run the smallest relevant verification set-8. report what was verified and what was not--## Task Router--- Backend API, modules, workflows, links, subscribers, jobs: `packages/api/CLAUDE.md`-- Admin extensions, custom pages, forms, tabs: `apps/admin/CLAUDE.md`-- Vendor extensions, custom pages, vendor flows: `apps/vendor/CLAUDE.md`--## Starter Contract Surfaces--Treat these as public starter contracts. Do not change them silently:--- `blocks.json` aliases and registry configuration-- `packages/api/src/*` structure and custom backend entrypoints-- `packages/api/medusa-config.ts`-- `@acme/api/_generated` route types and codegen-dependent behavior-- `apps/admin/src/*` route and page structure-- `apps/vendor/src/*` route and page structure-- `apps/admin/vite.config.ts` — panel bootstrap via `mercurDashboardPlugin`-- `apps/vendor/vite.config.ts` — panel bootstrap via `mercurDashboardPlugin`--## Shared Skills--Canonical shared skills live in `.claude/skills/`.--Focused core skills in this starter:-- `mercur-cli`-- `mercur-blocks`-- `medusa-ui-conformance`-- `admin-page-ui`-- `admin-form-ui`-- `admin-tab-ui`-- `migration-guide`--Runtime mirrors exist in:-- `.claude/skills/`-- `.codex/skills/`--Use `.claude/skills/` as the source of truth. The runtime folders are compatibility mirrors.--## Typical Verification--Run only what matches the touched area, but do not skip checks that prove a touched contract still holds.--Typical checks:-- root build or workspace build-- backend tests from `packages/api`-- admin or vendor lint/build-- codegen when routes or generated types changed-- manual verification for new pages, routes, or block installs--## Starter Notes--- Mercur CLI registry commands run from the project root where `blocks.json` lives.-- Backend verification often runs from `packages/api`.-- Admin and vendor custom routes are file-based under `src/pages`.-- If a task is about blocks, always use `mercur-blocks`.-- If a task is about CLI choice, initialization, or registry commands, use `mercur-cli`.-- If a task adds custom admin or vendor UI, load `medusa-ui-conformance` before inventing new components.--## AI Resources--- **Docs**: https://docs.mercurjs.com-- **MCP Server**: https://docs.mercurjs.com/mcp — connect your AI agent for documentation search-- **llms.txt**: https://docs.mercurjs.com/llms.txt — machine-readable project summary-- **Skills**: `.claude/skills/` — domain-specific patterns auto-loaded by Claude Code-- **AI Development Guide**: https://docs.mercurjs.com/v2/ai-development/mcp--## Lessons Learned--When you encounter a repeatable bug, a non-obvious gotcha, or learn something that would save time in future sessions, write it to `.claude/lessons.md`.--This file acts as a shared knowledge base across agents and sessions. Before starting non-trivial work, check `.claude/lessons.md` for known issues that might apply.--Format each entry as:-```-### <short title>-<what happened, why, and what to do instead>-```\ No newline at end of filediff --git a/templates/basic/README.md b/templates/basic/README.mdindex 34c169d8f..acd36b4de 100644--- a/templates/basic/README.md+++ b/templates/basic/README.md@@ -133,6 +133,15 @@ To build all apps and packages:bun run build```+## AI agents++This project bundles its documentation as a dependency (`@mercurjs/docs`), so AI agents can read it offline and version-matched to your installed packages. Point your agent at:++- `node_modules/@mercurjs/docs/llms.txt` — an index of every page+- `node_modules/@mercurjs/docs/content/**/*.mdx` — the full pages++`CLAUDE.md` and `AGENTS.md` instruct agents to read these before making changes. The same docs are online at [docs.mercurjs.com](https://docs.mercurjs.com).+## QuestionsIf you have any issues or questions start a [GitHub discussion](https://github.com/mercurjs/mercur/discussions).diff --git a/templates/basic/apps/admin/package.json b/templates/basic/apps/admin/package.jsonindex cb2191037..065e06023 100644--- a/templates/basic/apps/admin/package.json+++ b/templates/basic/apps/admin/package.json@@ -10,7 +10,7 @@"preview": "vite preview --port 7000"},"dependencies": {- "@mercurjs/admin": "2.2.0-canary.39"+ "@mercurjs/admin": "2.2.0-canary.40"},"devDependencies": {"@types/node": "^24.10.1"diff --git a/templates/basic/apps/vendor/package.json b/templates/basic/apps/vendor/package.jsonindex 879ca25c8..8cb2ea801 100644--- a/templates/basic/apps/vendor/package.json+++ b/templates/basic/apps/vendor/package.json@@ -10,7 +10,7 @@"preview": "vite preview --port 7001"},"dependencies": {- "@mercurjs/vendor": "2.2.0-canary.39"+ "@mercurjs/vendor": "2.2.0-canary.40"},"devDependencies": {"@types/node": "^24.10.1"diff --git a/templates/basic/package.json b/templates/basic/package.jsonindex b24aae0b9..d92be59b0 100644--- a/templates/basic/package.json+++ b/templates/basic/package.json@@ -1,5 +1,5 @@{- "name": "create-mercur",+ "name": "@acme/monorepo","private": true,"scripts": {"build": "turbo run build",@@ -9,14 +9,15 @@"check-types": "turbo run check-types"},"dependencies": {- "react": "^18.3.1",- "react-dom": "^18.3.1",+ "react": "18.3.1",+ "react-dom": "18.3.1","zod": "3.25.76",- "@medusajs/icons": "2.16.0-options-preview-20260605124754",- "@medusajs/ui": "4.1.16-options-preview-20260605124754",- "@mercurjs/dashboard-sdk": "2.2.0-canary.39",- "@mercurjs/dashboard-shared": "2.2.0-canary.39",- "@mercurjs/client": "2.2.0-canary.39",+ "@medusajs/icons": "2.17.2",+ "@medusajs/ui": "4.1.19",+ "@mercurjs/dashboard-sdk": "2.2.0-canary.40",+ "@mercurjs/dashboard-shared": "2.2.0-canary.40",+ "@mercurjs/client": "2.2.0-canary.40",+ "@mercurjs/docs": "2.2.0-canary.40","react-i18next": "13.5.0","@tanstack/react-query": "5.64.2","react-router-dom": "6.30.3",@@ -24,7 +25,7 @@"react-hook-form": "7.49.1","@hookform/resolvers": "3.4.2","jsonwebtoken": "9.0.2",- "react-jwt": "^2.0.0"+ "react-jwt": "2.1.1"},"devDependencies": {"@types/react": "^18.3.2",@@ -48,20 +49,52 @@"node": ">=20"},"resolutions": {- "@medusajs/admin-sdk": "2.16.0-options-preview-20260605124754",- "@medusajs/admin-shared": "2.16.0-options-preview-20260605124754",- "@medusajs/cli": "2.16.0-options-preview-20260605124754",- "@medusajs/core-flows": "2.16.0-options-preview-20260605124754",- "@medusajs/dashboard": "2.16.0-options-preview-20260605124754",- "@medusajs/draft-order": "2.16.0-options-preview-20260605124754",- "@medusajs/framework": "2.16.0-options-preview-20260605124754",- "@medusajs/icons": "2.16.0-options-preview-20260605124754",- "@medusajs/medusa": "2.16.0-options-preview-20260605124754",- "@medusajs/test-utils": "2.16.0-options-preview-20260605124754",- "@medusajs/types": "2.16.0-options-preview-20260605124754",- "@medusajs/ui": "4.1.16-options-preview-20260605124754",+ "@medusajs/admin-sdk": "2.17.2",+ "@medusajs/admin-shared": "2.17.2",+ "@medusajs/cli": "2.17.2",+ "@medusajs/core-flows": "2.17.2",+ "@medusajs/dashboard": "2.17.2",+ "@medusajs/draft-order": "2.17.2",+ "@medusajs/framework": "2.17.2",+ "@medusajs/icons": "2.17.2",+ "@medusajs/medusa": "2.17.2",+ "@medusajs/test-utils": "2.17.2",+ "@medusajs/types": "2.17.2",+ "@medusajs/ui": "4.1.19","zod": "3.25.76"},+ "overrides": {+ "@medusajs/admin-sdk": "2.17.2",+ "@medusajs/admin-shared": "2.17.2",+ "@medusajs/cli": "2.17.2",+ "@medusajs/core-flows": "2.17.2",+ "@medusajs/dashboard": "2.17.2",+ "@medusajs/draft-order": "2.17.2",+ "@medusajs/framework": "2.17.2",+ "@medusajs/icons": "2.17.2",+ "@medusajs/medusa": "2.17.2",+ "@medusajs/test-utils": "2.17.2",+ "@medusajs/types": "2.17.2",+ "@medusajs/ui": "4.1.19",+ "zod": "3.25.76"+ },+ "pnpm": {+ "overrides": {+ "@medusajs/admin-sdk": "2.17.2",+ "@medusajs/admin-shared": "2.17.2",+ "@medusajs/cli": "2.17.2",+ "@medusajs/core-flows": "2.17.2",+ "@medusajs/dashboard": "2.17.2",+ "@medusajs/draft-order": "2.17.2",+ "@medusajs/framework": "2.17.2",+ "@medusajs/icons": "2.17.2",+ "@medusajs/medusa": "2.17.2",+ "@medusajs/test-utils": "2.17.2",+ "@medusajs/types": "2.17.2",+ "@medusajs/ui": "4.1.19",+ "zod": "3.25.76"+ }+ },"workspaces": ["packages/*","apps/*"diff --git a/templates/basic/packages/api/package.json b/templates/basic/packages/api/package.jsonindex 90fb5b4e0..0724803eb 100644--- a/templates/basic/packages/api/package.json+++ b/templates/basic/packages/api/package.json@@ -29,22 +29,22 @@"cloud:prebuild": "mercurjs codegen"},"dependencies": {- "@medusajs/admin-sdk": "2.16.0-options-preview-20260605124754",- "@medusajs/cli": "2.16.0-options-preview-20260605124754",- "@medusajs/framework": "2.16.0-options-preview-20260605124754",- "@medusajs/dashboard": "2.16.0-options-preview-20260605124754",- "@medusajs/admin-shared": "2.16.0-options-preview-20260605124754",- "@medusajs/medusa": "2.16.0-options-preview-20260605124754",- "@medusajs/draft-order": "2.16.0-options-preview-20260605124754",- "@mercurjs/core": "2.2.0-canary.39",- "@mercurjs/types": "2.2.0-canary.39",- "http-proxy-middleware": "^3.0.3",- "@mercurjs/cli": "2.2.0-canary.39"+ "@medusajs/admin-sdk": "2.17.2",+ "@medusajs/cli": "2.17.2",+ "@medusajs/framework": "2.17.2",+ "@medusajs/dashboard": "2.17.2",+ "@medusajs/admin-shared": "2.17.2",+ "@medusajs/medusa": "2.17.2",+ "@medusajs/draft-order": "2.17.2",+ "@mercurjs/core": "2.2.0-canary.40",+ "@mercurjs/types": "2.2.0-canary.40",+ "http-proxy-middleware": "3.0.5",+ "@mercurjs/cli": "2.2.0-canary.40"},"devDependencies": {"@acme/admin": "*","@acme/vendor": "*",- "@medusajs/test-utils": "2.16.0-options-preview-20260605124754",+ "@medusajs/test-utils": "2.17.2","@swc/core": "^1.7.28","@swc/jest": "^0.2.36","@types/jest": "^29.5.13",diff --git a/templates/plugin/package.json b/templates/plugin/package.jsonindex 27254b54b..cc095499f 100644--- a/templates/plugin/package.json+++ b/templates/plugin/package.json@@ -39,13 +39,13 @@"prepublishOnly": "npx @mercurjs/cli@latest plugin:build"},"devDependencies": {- "@medusajs/admin-sdk": "2.13.4",- "@medusajs/cli": "2.13.4",- "@medusajs/framework": "2.13.4",- "@medusajs/medusa": "2.13.4",- "@medusajs/test-utils": "2.13.4",- "@medusajs/ui": "4.0.25",- "@medusajs/icons": "2.13.4",+ "@medusajs/admin-sdk": "2.17.2",+ "@medusajs/cli": "2.17.2",+ "@medusajs/framework": "2.17.2",+ "@medusajs/medusa": "2.17.2",+ "@medusajs/test-utils": "2.17.2",+ "@medusajs/ui": "4.1.19",+ "@medusajs/icons": "2.17.2","@swc/core": "^1.7.28","@types/node": "^20.0.0","@types/react": "^18.3.2",@@ -59,17 +59,17 @@"yalc": "^1.0.0-pre.53"},"peerDependencies": {- "@medusajs/admin-sdk": "2.13.4",- "@medusajs/admin-shared": "2.13.4",- "@medusajs/cli": "2.13.4",- "@medusajs/framework": "2.13.4",- "@medusajs/test-utils": "2.13.4",- "@medusajs/medusa": "2.13.4",- "@medusajs/ui": "4.0.25",- "@medusajs/icons": "2.13.4"+ "@medusajs/admin-sdk": ">=2.17.2",+ "@medusajs/admin-shared": ">=2.17.2",+ "@medusajs/cli": ">=2.17.2",+ "@medusajs/framework": ">=2.17.2",+ "@medusajs/test-utils": ">=2.17.2",+ "@medusajs/medusa": ">=2.17.2",+ "@medusajs/ui": ">=4.1.19",+ "@medusajs/icons": ">=2.17.2"},"engines": {"node": ">=20"},"packageManager": "[email protected]"-}\ No newline at end of file+}diff --git a/templates/registry/package.json b/templates/registry/package.jsonindex 7f013f9b8..a6dce7b42 100644--- a/templates/registry/package.json+++ b/templates/registry/package.json@@ -13,9 +13,9 @@"@mercurjs/cli": "*","@types/node": "^22","@types/unzipper": "^0.10.10",- "@medusajs/admin-sdk": "^2.13.4",- "@medusajs/cli": "^2.13.4",- "@medusajs/framework": "^2.13.4",- "@medusajs/medusa": "^2.13.4"+ "@medusajs/admin-sdk": "2.17.2",+ "@medusajs/cli": "2.17.2",+ "@medusajs/framework": "2.17.2",+ "@medusajs/medusa": "2.17.2"}}