# Outdoor Grid documentation Practical guides for your shop, your website and your developer tools. Find the right path and get started. ## Choose your path ### For shop owners - [Connect your AI](/docs/your-ai/connect-chatgpt): Let your assistant answer questions about your shop. - [Show your shop in ChatGPT](/docs/get-found/show-your-shop-in-chatgpt): Help nearby guests discover you. ### For your website - [Add booking to your website](/docs/your-website/add-booking-to-your-website): Give visitors a clear path to book. ### For developers - [API reference](/docs/api): Every public endpoint and response. - [Shop MCP](/docs/api/mcp): Tools that connect your shop to AI clients. - [Booking Elements](/docs/api/booking-elements): Typed components for booking websites. - [API keys (Preview)](/docs/api-keys/overview): Plan a server integration for shop data. ## Popular - [Which page is for me?](/docs/start-here/which-page-is-for-me) - [What your AI can see](/docs/your-ai/what-your-ai-can-see) - [Catalog API](/docs/api/catalog) # What your AI can do for your shop Your AI is an app such as ChatGPT or Claude that you connect to your shop. It can read shop information and answer questions. It cannot change, add or delete anything. ## Try a question 1. [Connect ChatGPT](/docs/your-ai/connect-chatgpt) or [connect Claude](/docs/your-ai/connect-claude). 2. Ask one question at a time. For example: 1. What bookings do we have today? 2. Which bikes are free tomorrow? 3. Which equipment is marked as damaged? 4. Who is on duty this afternoon? 5. What tours leave this weekend? 6. What is waiting in the workshop? 7. Which stock is running low? 8. What were our earnings this month? 3. Check an important answer in Outdoor Grid before acting on it. Information can change while you talk. Your AI acts as you. It sees only the information you can see in Outdoor Grid. A mechanic's AI cannot see the shop's money. Guest phone numbers and email addresses are not shown to the AI in this build. It cannot make a booking, send a message, take a payment or change a record. [See what your AI can read](/docs/your-ai/what-your-ai-can-see). # Which page is for me? An API is a way for one computer program to ask another for information. 1. If you run a shop, start with [Your AI](/docs/your-ai/connect-chatgpt), [Get found](/docs/get-found/show-your-shop-in-chatgpt) or [Your website](/docs/your-website/add-booking-to-your-website). 2. If you look after a shop's website, start with [Add booking to your website](/docs/your-website/add-booking-to-your-website) and [Site keys](/docs/your-website/site-keys). 3. If you build software for a shop, start with [Shop API](/docs/api-keys/overview), [Booking API](/docs/booking-api/overview) and [Connect any AI app](/docs/shop-mcp/connect-any-client). 4. If you are an AI app reading these pages, use [/docs/llms.txt](/docs/llms.txt) to find pages, [/docs/llms-full.txt](/docs/llms-full.txt) for their full text and [Connect any AI app](/docs/shop-mcp/connect-any-client) to reach a shop. Shop owners can follow the first path without using an API. # Connect ChatGPT to your shop Each person connects with their own Outdoor Grid sign in. Ask the owner or a manager to switch on **Allow AI connections** first. 1. In Outdoor Grid, open **Settings**, then **Oracle and assistants**, then **AI connections**. 2. Under **How to connect**, find **Your shop's AI address** and press **Copy**. 3. In ChatGPT, open **Settings** and find **Apps and connectors**. Switch on **Developer mode** if ChatGPT asks. This mode lets you add a connection yourself. 4. Choose **Create**, name it **Outdoor Grid**, and paste the address you copied. 5. When Outdoor Grid opens, sign in. Check the name of the AI app and pick the shop it may read. 6. Press **Allow**. You return to ChatGPT. Ask it a question about your shop. Coming soon: If **AI connections** says it is not available here yet, Outdoor Grid must enable it for this system first. # Connect Claude to your shop Each person connects with their own Outdoor Grid sign in. Ask the owner or a manager to switch on **Allow AI connections** first. 1. In Outdoor Grid, open **Settings**, then **Oracle and assistants**, then **AI connections**. 2. Under **How to connect**, find **Your shop's AI address** and press **Copy**. 3. In Claude, open **Settings** and find **Connectors**. 4. Choose **Add custom connector**, paste the address, and press **Connect**. A connector is the link between Claude and Outdoor Grid. 5. When Outdoor Grid opens, sign in. Check the AI app's name and pick the shop it may read. 6. Press **Allow**. You return to Claude. Ask it a question about your shop. Coming soon: If **AI connections** says it is not available here yet, Outdoor Grid must enable it for this system first. # Use another AI app Many AI apps can connect like ChatGPT or Claude. If yours can sign in to Outdoor Grid, use your shop's AI address. 1. Open **Settings**, then **Oracle and assistants**, then **AI connections**. 2. Under **How to connect**, press **Copy** beside **Your shop's AI address**. 3. In your AI app, add a new outside connection and paste that address. 4. If Outdoor Grid asks you to sign in, choose the shop and press **Allow**. If the app cannot sign in, it may need a private key instead. A key is a secret string that lets that app read as you. On the same **AI connections** page, press **Make a key**, give it a name, then press **Make the key**. Press **Copy** while it is shown. You will not see it again. Paste the key only into the AI app's private key field. Keep it like a password. See [API keys](/docs/api-keys/overview) for setup and sharing rules. Never put a key in a website address. # What your AI can see 1. Open **Settings**, then **Oracle and assistants**, then **AI connections**. 2. Check **Allow AI connections**. The owner or a manager can switch it on or off for the shop. 3. Look under **Connected AI** to see the apps connected to this shop. If you manage these settings, you can see the whole team's connections. Other staff see their own. The AI acts as the person who connected it. It sees only what that person can see in the app. A mechanic's AI cannot see money if the mechanic cannot. Each person must sign in and choose the shop before pressing **Allow**. Guest phone numbers and email addresses are not shown to the AI in this build. It only reads and cannot change anything. If you no longer want an app connected, [turn it off or remove it](/docs/your-ai/turn-it-off). # Disconnect or turn off your AI Choose how much you want to stop. ## Disconnect one AI 1. Open **Settings**, then **Oracle and assistants**, then **AI connections**. 2. Under **Connected AI**, find the app and press **Remove**. 3. Read the confirmation and confirm **Remove**. That connection stops at once. ## Stop one key 1. On the same page, find the key under **Keys** and press **Remove**. 2. Confirm **Remove**. The app using that key stops at once. You cannot bring the key back. ## Stop every AI for this shop 1. On the same page, switch off **Allow AI connections**. 2. Wait for **Saved**. Existing connections stay listed but stop working while the switch is off. You can remove your own connection. The owner or a manager can manage the shop's other connections. # Show your shop in ChatGPT 1. Open **Settings**, then **What you rent and sell**, then **Online booking**. 2. Find **Your shop in ChatGPT** and turn on **Show my shop in ChatGPT**. 3. Press **Save changes** in the bar at the bottom of the page. Travellers who ask ChatGPT where to rent or ride may then see your shop, prices and what is free. They go to your own booking page to book and pay. ChatGPT does not take their booking or payment. Your shop appears only when online booking is on and your booking page has its address. Coming soon: If the page says the setting cannot be saved yet, it will work after an update. # Help people find your website 1. Open **Settings**, then **What you rent and sell**, then **Online booking**. 2. Find **Let search engines and AI find my site**. 3. Leave **Show my website in search** on, or turn it on if you switched it off before. 4. If you changed the switch, press **Save changes** in the bar at the bottom of the page. This lets Google and AI search find your website when it has an address. It does not promise where your shop will appear in search results. Coming soon: If the page says the setting cannot be saved yet, it will work after an update. # Add booking to your website You can add a booking button or a full booking box to your website. Bookings still arrive in Outdoor Grid. A web person is whoever makes changes to your website. 1. Open **Settings**, then **What you rent and sell**, then **Online booking**. 2. Under **On your own website**, choose **A booking button** or **The full booking box**. 3. Press **Copy** beside **The code for your website**. Send the copied line and the place you want it to appear to your web person. The line looks like this. Replace `your-shop` with the address shown on your own page. Your web person can paste it into your website: ```js ``` For a button, the code shown in the app adds `data-mode="button"` inside the opening script tag. Copy the app's line so it has your exact address and choice. If the code is not shown, your booking page is not live yet. Ask the Outdoor Grid team in the chat to set it up. # Make a booking link with a trip filled in A booking link can fill in some choices for a guest. The guest checks the trip and finishes the booking on your own booking page. 1. Open **Settings**, then **What you rent and sell**, then **Online booking**. Press **Copy** under **Your booking page** and send the address to your web person. 2. Ask your web person to use a hosted booking address for a link with choices filled in. The link must start with `https://your-shop.outdoorgrid.ai/book`. If your booking page shows your own domain, use `https://www.outdoorgrid.ai/s/your-shop/book` instead. Replace `your-shop` with your shop's short address. 3. Ask them to add the choices you want. For example, this link chooses three days and two people: ```js https://your-shop.outdoorgrid.ai/book?first=2026-12-20&last=2026-12-22&people=2 ``` 4. Open the finished link yourself before sharing it. Check that the right trip appears. Your web person can also add `tour=` followed by a tour's link name to open that tour. A date in the past or a tour that is not free may be left out. [See the link details](/docs/booking-api/booking-links). # Give your website a site key A site key is a private password for a website that builds its own booking page. It lets that website send bookings to your shop. A booking button or booking box from Outdoor Grid does not ask you to make one. 1. If your web person is building a separate booking page, tell the Outdoor Grid team in the chat which website will use it. 2. The team creates the key under **Settings**, **What you rent and sell**, **Online booking**, **Keys for developers**, **Website keys** and shares it with the person who runs that website. 3. Ask your web person to keep it on the website's server, which is the computer that runs the site. It must never appear on a public page or in a website address. The key works for your shop only. The guest still confirms their own booking. The team can revoke the key if the website stops using it. Website key controls are currently shown to Outdoor Grid staff, so ask the team if you need one. # Bring guests back to your site after paying This is for a website that has its own booking page and a site key. The return address is the main address of that website. 1. Ask your web person for the secure main address, such as `https://www.yourshop.com`. 2. Send that address to the Outdoor Grid team in the chat. Ask them to set **Return address after paying** on your website key. 3. Ask your web person to check the booking and cancelled pages on your site before sending guests there. Use only the main address, with nothing after the website name. If it is empty, guests return to the Outdoor Grid booking page. The same setting also directs booking email links back to your site. The website key controls are currently shown to Outdoor Grid staff. # API keys Preview: opening soon. The [reference](/docs/api) will list each route as it opens. An API key lets a server program read Outdoor Grid data as one person in one shop. It sees at most what that person can see now. Its selected areas can narrow that access further. Owner-only data requires the person to be an owner and the key to hold **Shop owner items**. Phase one keys are read only. They cannot change bookings, create payments, manage people, or create more keys. The first routes will be a reviewed subset of the existing `/v1/shops/{organization_id}/...` API. A valid key receives 404 for routes outside that subset. Do not assume every staff app route is open. Keys are useful for a private shop website server, a spreadsheet sync, Zapier through a server step, or an agency integration. For an AI client that supports MCP, see [Connect any client](/docs/shop-mcp/connect-any-client). For guest bookings on your website, use the separate [public booking API](/docs/booking-api/overview). The available areas are **Bookings**, **Customers and companies**, **Fleet and stock**, **Tours and schedules**, **Workshop**, **Money**, **Finance and costs**, **Team**, **Team pay**, **Tasks and inbox**, **Knowledge and documents**, **Activity log**, **Settings (read)**, **Shop owner items**, and **AI connector (MCP)**. Customer phone, email, and address also require the separate **Customer contact details** choice, which starts off. The exact area required by each open route appears in the [generated reference](/docs/api). # API key quickstart Preview: opening soon. These examples become callable when API keys and an exposed route are enabled. Use the [reference](/docs/api) to choose a route that has opened. 1. Ask the shop owner to turn on **Allow API keys** in Settings, Developers. A person with **Can create API keys** opens **Settings, Developers, API keys** and chooses **Create**. 2. Name the key, select only the areas needed, choose an expiry, and complete the email code or passkey check. The key appears once. Save it in your server's secret store. 3. Find an open `GET /v1/shops/{organization_id}/...` route in the [reference](/docs/api). Replace the path placeholder below with that exact route and replace the organization ID with the key's shop ID. A key for another shop returns 404. Set `OG_KEY` to the real key in your server environment. `og_live_YOUR_KEY` below is a placeholder. Run the command in a private shell, since pasted keys can enter shell history. The example path is a template, not a published endpoint. ```bash : "${OG_KEY:?Set OG_KEY to your key first}" SHOP_ID='00000000-0000-4000-8000-000000000001' OPEN_ROUTE='...' curl -i -H "Authorization: Bearer ${OG_KEY}" "https://api.outdoorgrid.ai/v1/shops/${SHOP_ID}/${OPEN_ROUTE}" ``` Save the following as `first-call.mjs` and run `node first-call.mjs` with Node 20 or newer: ```js const key = process.env.OG_KEY ?? "og_live_YOUR_KEY"; const shopId = "00000000-0000-4000-8000-000000000001"; const openRoute = "..."; const response = await fetch(`https://api.outdoorgrid.ai/v1/shops/${shopId}/${openRoute}`, { headers: { Authorization: `Bearer ${key}` }, }); const body = await response.json(); console.log(response.status, body); ``` Install httpx with `python3 -m pip install httpx`, save the following as `first_call.py`, then run `python3 first_call.py`: ```python import os import httpx key = os.environ.get("OG_KEY", "og_live_YOUR_KEY") shop_id = "00000000-0000-4000-8000-000000000001" open_route = "..." url = f"https://api.outdoorgrid.ai/v1/shops/{shop_id}/{open_route}" with httpx.Client(timeout=10) as client: response = client.get(url, headers={"Authorization": f"Bearer {key}"}) print(response.status_code, response.json()) ``` A successful response is JSON for that route. Check its field descriptions and paging rules in the reference. A non-success response may be an [API problem](/docs/api-keys/errors). A 404 can mean the route is not open, the shop does not match the key, or the record is unavailable. # Authenticate with an API key Preview: opening soon. These rules describe the planned key gate; the [reference](/docs/api) shows open routes. Send one key in one header: `Authorization: Bearer og_live_YOUR_KEY`. Never put the key in a URL, query string, JSON body, or second header. A misplaced or repeated key gets 400 `key_misplaced`. A URL can be logged before Outdoor Grid receives it. Call from a trusted server, command line, or server automation. Never embed the key in browser JavaScript, a public repository, or a spreadsheet shared with guests. Requests with an `Origin` header get 403 `key_from_browser`; this is a leak safeguard, not a way to secure a browser app. Each key belongs to one person in one shop. The person's current access, the selected areas, the shop's API switch, and the key's state are checked on use. A revoked, unknown, malformed, or expired key gets 401 `invalid_key`. An optional IP allowlist accepts only its saved network ranges; calls from elsewhere get 403 `ip_not_allowed`. Expiry choices are 7, 30, 90, or 365 days, or Never when the shop permits it. The default is 90 days. For planned rotation, use **Replace this key** in Settings, Developers, API keys. Update the server's secret first; the old key has a 24 hour grace period, then stops working. If a key leaks, revoke it immediately instead of waiting for the grace period. # API key errors Preview: opening soon. Error names here describe the planned key gate; route errors appear in the [reference](/docs/api). API key refusals are JSON (`application/json`) with an HTTP status and a machine readable `code`. Read `code`; `message` is for people and its words may change. A refusal from the key gate looks like this: ```json { "error": "ApiKeyRefused", "code": "invalid_key", "message": "This API key is not valid. It may be revoked or expired", "context": {}, "path": "/v1/shops/00000000-0000-4000-8000-000000000001/bookings", "method": "GET" } ``` A refusal from the route itself, such as `scope_missing` or `read_only_key`, has the same fields with another `error` name. `scope_missing` names the area the key lacks in `context.area`. A route that is not open answers 404 with `{"detail": "Not Found"}`, exactly like an address that does not exist. Every answer to a key carries `Cache-Control: no-store`. | Status | Code | What to do | | ------ | --------------------------- | ------------------------------------------------------------------------------------------------------------ | | 400 | `key_misplaced` | Send one key only in the bearer header. Remove it from the URL and body. | | 401 | `invalid_key` | Check the secret and whether it has expired or been revoked. | | 403 | `scope_missing` | Check the route's area and the person's current access. A key cannot widen either. | | 403 | `read_only_key` | Remove the write. Phase one keys can only read. | | 403 | `ip_not_allowed` | Call from a saved IP range or update the allowlist in Settings. | | 403 | `key_from_browser` | Move the call to a server without a browser `Origin` header. | | 403 | `api_keys_off` | The shop's owner switched API keys off. Keys work again when it is switched back on. | | 404 | Route or record unavailable | Check the generated reference, shop ID, and record ID. Closed routes also answer 404. | | 413 | `body_too_large` | Send a smaller request body. | | 429 | `too_many_requests` | Too many calls in a minute, or too many invalid keys from one address. Wait `Retry-After` seconds. | | 429 | `daily_quota` | The key or the shop reached its daily limit. It resets at midnight, shop time; honor `Retry-After`. | | 429 | `customer_budget` | The key read its daily number of customer records. Honor `Retry-After`; see [limits](/docs/api-keys/limits). | Do not log the bearer value or the full request URL while debugging. The status and `code` are enough for a support report. # API key limits Preview: opening soon. These budgets are the planned phase one limits. | Budget | Limit | | --------------------------------------- | --------------------------------------------------------- | | Each key per API replica | 120 requests per minute | | Each key | 20,000 requests per day | | Each shop | 100,000 requests per day | | Customer records per key | 2,000 per day by default; an owner can raise it to 20,000 | | Invalid key attempts per client address | 20 per minute, before a database lookup | The minute counter runs separately on each API replica. It is not a global reservation of 120 requests per minute. The daily counters apply across replicas. A customer record budget overrun returns 429 `customer_budget` and notifies the owner. Every 429 from the key gate includes `Retry-After` (the daily ones count to the shop's next midnight); wait that many seconds before retrying. Use paging and incremental syncs instead of repeatedly downloading a full list. An edge limit also protects `/v1/` per client IP. Its count is per edge location, so it is not a per-key quota. Limits may be lower for a particular route; use the [reference](/docs/api) for the route's page size. # Data conventions Preview: opening soon. Confirm each open route's exact fields in the [reference](/docs/api). - **Money:** an integer in the currency's minor unit, paired with an ISO 4217 currency such as `EUR`. For example, `1250` and `EUR` mean EUR 12.50. A few answers do not name the currency; their amounts are in the shop's own currency (workshop service prices: the selling company's). Do not parse formatted display text to calculate totals. - **Time:** timestamps are UTC ISO 8601 values. A date without a time is a calendar day in the shop's time zone, not midnight UTC. Some answers name the time zone, such as `Europe/Rome`; where one does not, the reference says it is the shop's. - **IDs:** use the opaque ID the route returns. Do not derive it from a display name or assume an ID from a different shop is accepted. - **Lists:** use the route's opaque cursor and stable sort. Send the returned next cursor as the reference specifies; do not build one yourself. Data may change between pages. An erased customer is absent from later reads. - **Stability:** `preview` routes may change shape. `v1` routes have a frozen contract. Read the badge on each operation and the [changelog](/docs/changelog) before upgrading an integration. Never cache customer or other personal data in a shared cache. API key answers use `Cache-Control: no-store`. # Keep an API key safe Preview: opening soon. These controls describe the planned key lifecycle. Treat an API key like a password for the person and shop named on it. Put it in a server secret store, restrict who can read that store, and give each integration its own key with only the areas it needs. The key is shown once. Outdoor Grid stores a hash and a short hint, not a recoverable copy. Never put a key in browser code, a URL, an issue, a log, or a screenshot. Redact `og_live_` secrets before sharing traces. If you think a key leaked, revoke it in **Settings, Developers, API keys**, replace the server secret, and review the key's usage. Revocation takes effect on the next call. Use **Replace this key** for a planned rotation. Its old key works for 24 hours to let a server switch over. Revoke a compromised key immediately. A Never expiry key keeps working until revoked and sends no expiry reminder; review its last used date and remove it when the program stops using it. A shop may hide Never by setting a maximum expiry. Customer phone, email, and address need the separate **Customer contact details** choice, which starts off. Customer list reads also have a [daily record budget](/docs/api-keys/limits). Shop access ending or the API key switch turning off stops use regardless of the saved expiry. # Connect any MCP client Preview: opening soon. Shop MCP connections are unavailable until Outdoor Grid enables the server. Use the shop MCP server URL `https://mcp.outdoorgrid.ai/shop/mcp`. This is the private, read only shop connection. The public shop discovery server at `/mcp` is a different service. ChatGPT and Claude can use **Sign in with Outdoor Grid** when the connection opens. Sign in as the person whose shop data the client should read, select one shop on the consent page, and approve. The server uses OAuth 2.1 with PKCE. Production currently allows only ChatGPT and Claude OAuth callbacks. Cursor, Codex, and MCP Inspector need an API key with the **AI connector (MCP)** area and the read areas they need once [API keys](/docs/api-keys/overview) open. Keep that key in private client settings, never in the URL or a checked in config file. Inspector browser sign in works on QA only. ## ChatGPT developer mode In ChatGPT on the web, enable developer mode if your workspace offers it. Open **Settings, Apps, Create**, enter the server URL above, choose OAuth, then scan tools and complete Outdoor Grid sign in. Select the draft app in a chat and ask it to call `shop_context`. Workspace administrators may need to enable or approve custom apps. See [ChatGPT's current setup guide](https://help.openai.com/en/articles/12584461-developer-mode-and-full-mcp-connectors-in-chatgpt). ## Claude custom connector Open **Customize, Connectors, Add custom connector**. Name it Outdoor Grid, enter the server URL, choose sign in and automatic registration or Claude's published identity, then connect your Outdoor Grid account. On a managed workspace, an owner may need to add the connector first. See [Claude's current connector guide](https://support.claude.com/en/articles/11175166-get-started-with-custom-connectors-using-remote-mcp). ## MCP Inspector Once API keys open, set `OG_KEY` in a private terminal and list tools over Streamable HTTP: ```bash : "${OG_KEY:?Set OG_KEY to your API key first}" pnpm dlx @modelcontextprotocol/inspector --cli https://mcp.outdoorgrid.ai/shop/mcp --transport http --method tools/list --header "Authorization: Bearer ${OG_KEY}" ``` The Inspector's browser OAuth flow is available on QA with its separate QA server and loopback callback. Production does not allow that callback. See the [Inspector CLI guide](https://github.com/modelcontextprotocol/inspector/blob/main/clients/cli/README.md). ## Cursor Once API keys open, add this to your personal `~/.cursor/mcp.json`. Set `OG_KEY` in Cursor's process environment so it can fill the private bearer header. Do not commit this personal configuration or a key. ```json { "mcpServers": { "outdoor-grid-shop": { "url": "https://mcp.outdoorgrid.ai/shop/mcp", "headers": { "Authorization": "Bearer ${env:OG_KEY}" } } } } ``` See [Cursor's MCP configuration guide](https://cursor.com/docs/context/mcp). ## Codex Once API keys open, set `OG_KEY` in Codex's process environment and add the server with a bearer token from that variable: ```bash : "${OG_KEY:?Set OG_KEY to your API key first}" codex mcp add outdoor-grid-shop --url https://mcp.outdoorgrid.ai/shop/mcp --bearer-token-env-var OG_KEY codex mcp list ``` See [Codex MCP configuration](https://developers.openai.com/codex/mcp). Each client sees only the tools allowed to that person in that shop. Test with `shop_context`, then check the [tool guide](/docs/shop-mcp/tools). If the shop has switched off AI connections or the MCP server is not enabled in that environment, connection attempts fail until it is enabled. # Shop MCP OAuth details Preview: opening soon. Shop MCP connections are unavailable until Outdoor Grid enables the server. The protected resource is `https://mcp.outdoorgrid.ai/shop/mcp`. Discover its authorization server from `https://mcp.outdoorgrid.ai/.well-known/oauth-protected-resource/shop/mcp`. The authorization server is `https://api.outdoorgrid.ai/oauth`, with metadata at `https://api.outdoorgrid.ai/.well-known/oauth-authorization-server/oauth`. Its own metadata URL, `https://api.outdoorgrid.ai/oauth/.well-known/oauth-authorization-server`, serves the same document. Use OAuth 2.1 authorization code with PKCE S256. The metadata advertises the authorize and token endpoints, the revocation endpoint, and the signing keys. It advertises dynamic client registration when that feature is enabled in the deployment. Send the MCP resource as the `resource` parameter. A token is for this MCP resource, not for the REST API. Production accepts only the configured ChatGPT and Claude OAuth callbacks. QA also accepts loopback callbacks for MCP Inspector. Cursor and Codex use [API keys](/docs/api-keys/overview) when those keys open; their OAuth callbacks are not in the current allowlist. | Scope | Meaning | | ---------------- | ----------------------------------------------------- | | `shop:read` | Required to list and call read tools. | | `offline_access` | Requests a refresh token for a continuing connection. | The default consent requests both. A client can request only `shop:read`, but must sign in again after its access token expires. Consent chooses one person and one shop for this connection. A separate shop needs a separate consent. The selected person's current permissions still decide each tool answer; OAuth consent does not widen them. Access tokens last 15 minutes. A refresh token slides for 30 days with a 90 day absolute limit. Every refresh rotates the token; reuse outside the short duplicate window revokes the family and grant. Authorization codes last 60 seconds. The consent request lasts 10 minutes. A revoked connection, removed shop access, or an AI switch turned off stops future calls. Revoke a connection in Outdoor Grid's AI connections settings; clients can also use the advertised OAuth revocation endpoint for their refresh token. QA has a separate resource, `https://mcp-qa.outdoorgrid.ai/shop/mcp`, and authorization server `https://api-qa.outdoorgrid.ai/oauth`. QA credentials do not work against production. For tool names and arguments, use the [generated MCP reference](/docs/api/mcp). # Shop MCP tools Preview: opening soon. Shop MCP connections are unavailable until Outdoor Grid enables the server. Tools read data as the connected person in the chosen shop. The client lists only tools in areas that person can read. A call checks the area again and the underlying shop permissions decide the result. A mechanic's connection, for example, does not gain money access by asking for a money tool. The tools are read only. Call `shop_context` first for the shop's places, current day, and time zone. Then use the tools returned by `tools/list`. These may include bookings, equipment, customers, tours, schedules, workshop, stock, and money reads according to access. The [generated tool reference](/docs/api/mcp) gives the current names, inputs, and areas; do not guess a tool from a staff screen name. `search_docs` finds documentation pages by question and returns up to five titles, links, and excerpts. `get_doc` reads one page as Markdown by path. Use these for setup instructions and product behavior, then use shop tools for current shop data. Documentation tools may appear only after the docs MCP update is enabled. The server allows 60 tool calls per minute per person, shop, and client connection, counted separately in each API process. Over the limit, a tool result has `isError: true` and `structuredContent` with `{"error":"rate_limited"}`. A denied read has `{"refused":"not_allowed"}` or another refusal reason. Treat refusals as final for that question, not as an invitation to try a broader tool. # Public booking API The public booking API serves a shop's own website and Outdoor Grid's hosted booking pages. It provides public shop details, products, availability, quotes, bookings, and guest views. Production uses `https://api.outdoorgrid.ai`; QA uses `https://api-qa.outdoorgrid.ai`. The current operations and schemas are in the [generated reference](/docs/api), backed by the [public OpenAPI document](https://api.outdoorgrid.ai/v1/openapi.json). Public catalog and availability reads do not require a staff login. A shop website server can send a [site key](/docs/booking-api/site-keys) to select its shop and keep return links on its own domain. A site key is a server credential and stays off the browser. Creating or reading a particular booking requires a separate guest booking capability or view token. A site key by itself cannot read a guest's trip. For a website on Next.js, start with [Booking Elements](/docs/booking-api/booking-elements). Its server route manages the site key, guest capability, cookies, allowed operations, and same origin checks. For a simple link from a website button, use [booking links](/docs/booking-api/booking-links). For a custom server integration, read the reference operation's authentication and response schema before calling it. Public booking errors use coded JSON. The exact body and status depend on the operation. A declined price or unavailable line may use a structured 409 response; read the operation's response models rather than treating every non-200 as the same error. # Booking Elements `@ogattermayr/outdoor-grid-booking` is the booking package used by Outdoor Grid's hosted guest flow. It provides typed calls in `/core`, React hooks in `/hooks`, controlled visual parts and full flows in `/react`, CSS in `/styles.css`, and a server route in `/next`. The site keeps its own domain, navigation, words, and look. ## Install Read access to the package is granted by Outdoor Grid. Ask the Outdoor Grid team in the chat in your shop's app. The package is private on GitHub Packages. Add this registry configuration to the site repository's `.npmrc` and set `NPM_TOKEN` in the package install environment: ```bash printf '%s\n' '@ogattermayr:registry=https://npm.pkg.github.com' '//npm.pkg.github.com/:_authToken=${NPM_TOKEN}' > .npmrc pnpm add @ogattermayr/outdoor-grid-booking@0.4.5 --save-exact pnpm add react@^19 @tanstack/react-query@^5.104 ``` Read the package's CHANGELOG before changing an exact pin. The site key belongs in a server only secret named `OUTDOOR_GRID_SITE_KEY`, never in a `NEXT_PUBLIC_` variable. ## One server route In a Next.js app deployed on Vercel, create `app/api/outdoor-grid/[op]/route.js`: ```js import { createBookingRoute, clientIpFrom } from "@ogattermayr/outdoor-grid-booking/next"; export const { POST } = createBookingRoute({ apiUrl: "https://api.outdoorgrid.ai", siteKey: process.env.OUTDOOR_GRID_SITE_KEY, // Set this on the server. shop: "your-shop-slug", clientIp: clientIpFrom.vercel, }); ``` The route accepts only its listed operations, checks the page's origin, and keeps the booking capability in an HttpOnly cookie. `clientIpFrom.vercel` is for Vercel, which supplies the trusted address. On another host, choose that host's trusted helper or pass `clientIp: null` deliberately. Payment operations require explicit opt in; see [payments and returns](/docs/booking-api/payments-and-returns). ## A controlled element Import the package CSS once in your Next app's layout. A `PeopleStepper` accepts a value and a callback. This complete `app/book/page.jsx` shows one controlled element; use the full `GuestBookingFlow` to collect a real booking. ```js "use client"; import { useState } from "react"; import { PeopleStepper } from "@ogattermayr/outdoor-grid-booking/react"; import "@ogattermayr/outdoor-grid-booking/styles.css"; export default function BookPage() { const [people, setPeople] = useState(2); return (

Book a trip

{people} riders

); } ``` Elements expose `data-og-part` names for styling. Set the package's CSS theme tokens in the site's CSS for surfaces, type, shape, and the primary action. `BookingProvider` or `GuestBookingProvider` can also receive a theme and shop words. The full `GuestBookingFlow` accepts a router, optional shop looks, Stripe loader, and `onBooked` callback; its price and availability still come from the API. For every exported prop and part, use the [Booking Elements reference](/docs/api/booking-elements). # Booking links Use `https://{slug}.outdoorgrid.ai/book` for a shop subdomain, or `https://www.outdoorgrid.ai/s/{slug}/book` on the platform host. A custom shop domain does not serve the hosted `/book` flow. All parameters are optional; an invalid or unavailable choice is ignored or trimmed after the page checks the live catalog. A link never jumps straight to Pay. | Parameter | Value | Effect | | ------------------- | ------------------------------------------- | ----------------------------------------------------------------------- | | `first`, `last` | `YYYY-MM-DD` | Trip dates. `last` defaults to `first`; the trip is at most 28 days. | | `days` | 1 to 28 | Length when `last` is absent and `first` is present. | | `people` | 1 to 20 | Party size. | | `set` | Item ID with optional `:quantity` | Rental pick. Repeat the parameter or separate picks with commas. | | `item`, `kind` | Item or kind ID | Open the rental choice. | | `tour`, `departure` | Tour ID or slug, departure UUID | Open a particular tour and departure. | | `day`, `period` | Day, then `full`, `morning`, or `afternoon` | Choose a tour day and part of day. | | `activity` | Activity ID | Choose the What card. | | `lang` | `en`, `it`, `de`, or `fr` | Guest language when the shop offers it. | | `src` | `chatgpt` | Count a booking sent by the ChatGPT app. Other values are not recorded. | Build the URL with `URL` and `searchParams` so values are encoded. This Node 20 example prints a complete link; replace the shop slug and the catalog ID with your own values: ```js const url = new URL("https://www.outdoorgrid.ai/s/your-shop-slug/book"); url.searchParams.set("first", "2026-12-20"); url.searchParams.set("last", "2026-12-22"); url.searchParams.set("people", "2"); url.searchParams.append("set", "your-rental-id:2"); console.log(url.toString()); ``` For a day only tour link, include `tour`, `day`, and `people`. If several times fit, the guest chooses one. The page validates all picks against the shop's current stock, capacity, and local clock. Never add `return` or `embed` when building a normal link; those are reserved for the website integration. # Site keys A site key is for the server behind a shop's own website. Send it as `X-Outdoor-Grid-Site-Key: og_site_YOUR_KEY` on public booking calls. It selects one shop and can set the origin of guest return links. It is different from a person bound, read only [shop API key](/docs/api-keys/overview). Never put a site key in browser JavaScript, a public bundle, a URL, or a page's HTML. With a site key, a request for another shop's slug returns 404. The key alone never reads or changes a booking or trip. Guest booking calls still need their booking capability, booking view token, trip token, or guest session, according to the [reference](/docs/api). The `return_base_url` saved on the key may be a bare HTTPS origin such as `https://shop.example`. It has no path, port, query, fragment, or trailing slash. Outdoor Grid builds fixed booking and trip return paths from that origin. It cannot be overridden by a guest request. If no return origin is set, guest links use the Outdoor Grid host. For a Next.js site, [Booking Elements](/docs/booking-api/booking-elements) provides a server route that adds the key and keeps guest credentials in HttpOnly cookies. Its browser calls its own site's route. For a custom server, send the header only from that server and implement the guest capability, same origin, and token handling shown in the generated [public booking reference](/docs/api). # Payments and returns The shop's online booking rules decide whether guests pay a deposit, the full amount, at the shop, or send a request. Product rules may narrow those choices. A booking response tells the client what happens next: `pay_deposit`, `pay_full`, `done`, or `requested`. Use the [generated reference](/docs/api) for the current request and response fields. For an online payment, the server starts the checkout with the guest's booking capability. The payment amount comes from the booking's frozen price, not a browser supplied total. A guest who completes payment returns to the booking view; cancelling payment returns to its cancelled path. A payment can settle after the browser returns, so the view should read the current booking state instead of assuming success from a return address. With a site key that has `return_base_url: https://shop.example`, confirmation links lead to that site's `/booking` page and payment cancellation to `/booking/cancelled`. The view token is carried in the URL fragment, `#t=`, so it is not sent to the web server as part of the URL request. The site's page reads the fragment and sends the token to its own server route; that route reads the booking view using `X-Booking-View`. The view includes booking stage, lines, times, and money in integer minor units with an ISO currency. The Booking Elements server route leaves payment operations off by default. Explicitly enable only the payment operations your site implements, and add Stripe's required script, frame, and connect origins to that booking page's content security policy. A site using the package's full guest flow can pass `loadStripe` for embedded Checkout. Keep payment and booking secrets on the server or in HttpOnly cookies as the package specifies. For a request or a booking paid at the shop, there is no online checkout. Show the returned stage and the shop's instructions. A `payment_account_missing` refusal means the business cannot currently receive that online payment; use a listed fallback choice only after the guest agrees to it. # Changelog ## Booking Elements Each `## [X.Y.Z]` maps to a pushed `booking-vX.Y.Z` tag. Pre-1.0 a MINOR may break and carries a "Downstream migration" note with each consumer's steps and the rollback (the previous exact pin). ### [0.5.0] - 2026-10-29 #### Fixed - 3-1028-1157-8783 (MINOR) **The card form survives a turn of the phone.** `PayCheckout` drew Stripe's form in a different place on the computer (`side`) and the phone (`stack`), so any flip across 768px (a phone turned to landscape at 844px, a window resized) destroyed and remade it: the guest saw "Opening the secure card form" again, lost what they typed, and each flip spent 1 to 2 of the 6 GBF-30 calls a booking page may make, so a few flips ended in a 429 and "The card form did not open". `PayCheckout` is now one tree: the form's div (key `form`) stays put and only the parts around it change; same markup as before. New `/core` `keepSessions()` (with `SESSION_SPARE_MS`, a minute): the page's in-memory sessions by key, so a form drawn again mounts Stripe on the open session (one GBF-30 call while it lasts; a refused call, a session within a minute of its end, or `drop(key)` opens anew). `GuestBookingFlow`'s Pay keeps its sessions by way and booking and drops one when its form did not open, so Try again still asks for a new one; `guest_payment_started` is told once per session. Downstream migration: nothing to change for `GuestBookingFlow`; a site drawing its own `StripeCheckout` may wrap its `openSession` in `keepSessions().open(key, start, Date.now())`. Rollback: the previous exact pin. Tests in `tests/booking-elements-react-pay.test.mjs` (a react-dom/client run on `tests/helpers/fake-dom.mjs`). - QA 2026-10-28 G6: `SizeChart` draws a band to the end of its last cm (heights are whole cm, both ends in), so two sizes next to each other meet on the track: Any that fits on Evolve (S 163 to 172, M 173 to 179, L from 180) showed a gap at each step. The bands' numbers and the fit are unchanged. Downstream migration: nothing to change. Test in `tests/booking-elements-bikes.test.mjs`. - QA 2026-10-27 G7: `WhenStep` takes `tourOnly` (the flow passes it for a trip with a tour and no rental): the sub asks for the tour's day (`when_sub_tour`, `when_sub_tour_more`), and the halves with the shop's rental hours, the days line, the Your days panel and sheet are not drawn. `TourStep` takes `included` (drawn under the title, `.og-tour-included`, both widths); the flow passes `tour_included_own` or `tour_included_rent`. New words in en, it, de, fr. - QA 2026-10-27 G4: a price per bike and per tour before Plan. `/hooks` `pricesQuery` and `useDayPrices(firstDay)` (W7-21, one day from the trip's first day, 5 minutes stale time); `BikesStep` and `bikesFromGroup` take `dayPrices` (a site's `looks` price still wins, Any that fits is "from" the lowest); the flow wires it on Bikes only. `/next` `ROUTE_OPERATIONS` serves `prices` (no credential, on by default). The tour card's price line is no longer hidden on a phone. - QA 2026-10-27 guest minor: `StepperBand` numbers only the steps the guest goes through. A skipped step keeps its computer column without a number and has no phone bar; the phone's "n of m" counts seen steps only. - QA 27 Oct G8 and the sold out minor. **A bike's card moves only the riders it fits.** While the group rides one bike, a tap on another bike moved everyone, a 140 cm kid onto an adult e-bike, who then blocked Next. `bikesPickEvents(assign, id, models, riders)` moves only the riders the bike has a size for (no height, or a bike with no fit ranges: they move); nobody it fits, nobody moves. When a size is gone, Next names only the riders on the bike it brings into view (`outOnBike`), not a rider on another bike. Downstream migration: callers of `bikesPickEvents` pass the step's models and riders to get the new rule; with two arguments it behaves as before. Tests in `tests/booking-elements-bikes.test.mjs`. - QA 27 Oct G6 **One size chart with no gaps.** Any that fits showed the bands its models share (Evolve: S 163 to 170, M 175 to 178), so a 172 cm rider sat on no size on the chart and the fit put them on one by another rule. New `/core` `withoutGaps`: a gap between two sizes is split at its middle (S to 172, M from 173), overlaps stay. `anyBikeRanges`, `chartRangesOf` and a model's catalog fit (`fitOfProduct`) close their gaps, and `placeAnyBikeSizes` books the size the Any chart shows for the height (on the model whose band holds it first). Downstream migration: nothing to change; a height in a former gap now gets the chart's size. Tests in `tests/booking-elements-bikes.test.mjs`. - QA 27 Oct: below 1024px the flow frame is at least a screen tall and the step foot (`.og-flow-frame > .og-foot`) sticks to the bottom, with the safe area; Plan's bar ends the page with no gap under it. - QA 27 Oct G10: `GuestBookingFlow` brings back what the guest typed after a reload or a remount: `kept.ts` `draftOf`, `withDraft`, `useKeptDraft` (page memory, then `history.state` key `ogFlowDraft` written on `pagehide`; never browser storage; never the password, promo, terms tick or anything paid), `keptState(raw, draft, shop)`. `withPage` (router): while the availability read is on its way the address's step stands. `PlanStep` `openWho` (additive): opens on who books it when the trip came back with it typed. #### Added - 3-1029-1649-f45e (MINOR) **The riding atlas's Book link (job H1c, outdoor-grid-api `docs/destination-guides.md` 5.1, 5.3).** `BOOKING_SOURCES` gains `atlas`. New `/core` `linkSizes` and `handoffFromQuery`: `prefillFromQuery` reads `sizes=M,L` (one size per rider in rider order, an empty entry is none, at most 20 of 1 to 20 characters) into `FlowPrefill.sizes`, and `handoffFromQuery` reads `handoff` (43 to 128 base64url characters); anything that does not read is dropped quietly. `LINK_PREFILL_KEYS` gains `sizes` and `handoff`, so the guest's first move takes both out of the address. `doorFromQuery`: days, a count and a size for every rider (`sizesForAll`) is a rent door, also with no `set`. `GuestBookingFlow` takes a new `handoff` prop, keeps it on the trip (`GroupState.handoff`, memory and the tab's draft only, never the kept picks) and books with `atlas_handoff` when `source` is `atlas` (`groupBookingOf` option `atlasHandoff`). Such a link opens on Bikes past Who, each rider's size picked when the product has an option of that label free on every day (`prefillSizesOf`); Book on Plan opens Who first, once, when a name or a renter's height is missing (`whoLeftOf`, words `who_before_pay`). Plan from the atlas lists what goes to the shop (`PlanStep` / `PlanBoard` `sharedWith`, part `plan-shared`, words `plan_shared_*` in en, it, de, fr). The generated types follow the contract on dev (W7-08 `atlas_handoff`, `source` `atlas`; the guest code schemas are now `features__shop_site__flow_contracts__CodeSend` and `__CodeCheck`). Downstream migration: additive; a shop's own site (evolvefinale.com, job H2) passes `source={sourceFromQuery(query)}` and `handoff={handoffFromQuery(query)}` to `GuestBookingFlow`. Rollback: the previous exact pin. Tests in `tests/booking-elements-link.test.mjs`, `tests/booking-flow-prefill.test.mjs`, `tests/booking-flow-group-request.test.mjs`, `tests/booking-flow-react-group.test.mjs`, `tests/booking-flow-guest-flow.test.mjs`. - 2-1027-2217-ced0 **`google_ttd` is a booking source (distribution J13).** `BOOKING_SOURCES` is `["chatgpt", "google_ttd"]`: a link with `src=google_ttd` (Google Things to Do's deep links) books with `source: "google_ttd"`, which the API keeps as the booking's `came_from`. Downstream migration: nothing to change, additive. - 2-1027-2009-aa01 **`relayFlowEvents`, an `onEvent` that sends the guest's events to Outdoor Grid (PostHog plan 2026-10-26, job 6).** New `/core` `relay.ts`: `relayFlowEvents({ url, fetch?, beacon?, delayMs?, setTimer?, clearTimer?, listen? })` returns a `GuestEventSink` that keeps events in memory and posts them as `{"events":[...]}` (text/plain, `keepalive`, `credentials: "omit"`, no preflight) 2 s after the first, at once at 20, and through `navigator.sendBeacon` on `guest_flow_abandoned` or when the page is hidden or closed (the listener is added on the first event, browser only). Batches never pass 20 events or 16 KB (`relayBodies`, `RELAY_MAX_EVENTS`, `RELAY_MAX_BYTES`); `guest_booking_paid` is never sent (the server tells it). It never throws, retries, logs or stores, and sets no cookie. The hosted flow now passes it to `GuestBookingFlow`. Downstream migration: additive; evolvefinale.com passes `onEvent={relayFlowEvents({ url: "https://api.outdoorgrid.ai/v1/public/shops//flow-events" })}` to `GuestBookingFlow`. - 2-1027-2009-aa01 **`guest_step_viewed` leaves `step_index` out for a page outside the flow's order** instead of sending -1, which the API's relay refuses. Downstream migration: nothing to change. - 2-1027-2009-be38 **`BookingFlow` (the single flow) tells the same events through `onEvent`.** Steps viewed and completed (`BOOKING_STEPS`, with the kind, party and days buckets), a Next or Book that waits (`guest_step_blocked`: `incomplete` for the site's own problem, never its words; the quote's code when the shop refuses), a refused booking and leaving before booking. New optional props `onEvent` and `hostKind`. Downstream migration: nothing to change, additive. - 2-1027-2009-be38 **`GuestBookingFlow` tells the site's analytics through a new `onEvent` (PostHog plan 2026-10-26, job 5).** Each step viewed and completed (from the root's ref callback, so a page per step or a second render tells nothing twice), a Next that waits (`guest_step_blocked` with the step's problem code), Pay opening (`guest_payment_started`, the amount as a band) and the card form not opening (`guest_payment_form_failed`), a refused booking (`guest_booking_refused` with `bookFailureCode`) and leaving the tab before Booked (`guest_flow_abandoned`, on `pagehide`). New optional props `onEvent` and `hostKind` (left out, read from the address), `PayPage` `onPayStart` and `onFormFailed`, `StripeCheckout` `onFailed`. Nothing a guest typed is ever in an event. Downstream migration: nothing to change; a site that wants the funnel passes `onEvent` to its relay (evolvefinale.com: one prop). - 2-1027-2009-be38 **The guest flow's events, pure (PostHog plan 2026-10-26, job 5).** New `/core` `events.ts`: `pageViewed` and `flowLeft` over an in-memory `FlowTrack` (a random flow id per tab, never stored) make `guest_flow_opened`, `guest_step_viewed`, `guest_step_completed` (seconds on the step, party and days buckets, the kind picked) and `guest_flow_abandoned`; `stepBlocked`, `paymentStarted` (a money band, never the amount), `paymentFormFailed` and `bookingRefused` make the rest; `deliver` lays the base on (`shop_slug`, `flow`, `host_kind` from `hostKindOf`, `locale`) and scrubs every event against the contract before the host hears it; `flowEvents` keeps one flow per shop across a page per step. The contract gains `shop_slug` on every guest event (the public site read names the shop by its slug) and `kind` on `guest_step_completed`. `/react` `bookFailureCode` names a refused booking as one code. Downstream migration: nothing to change, additive. - 2-1027-1148-6ec9 **The guest analytics contract (PostHog plan 2026-10-26, job 1).** New `/core` `analytics.ts`: `GUEST_EVENTS` and `GUEST_BASE` (each guest booking event and the properties it may carry, steps from `FLOW_STEPS` and `BOOKING_STEPS`), the value kinds (`PropKind`, `PropsOf`), `scrubProps` and `scrubGuestEvent` (only listed properties whose values fit; a code never holds spaces, `@` or a long digit run) and `isPiiShapedKey`. Nothing is emitted yet; `onEvent` comes in a later job. Downstream migration: nothing to change, additive. #### Fixed - QA-1027 B4: `GuestBookingFlow` books nothing when paying online is the shop's only way and Stripe cannot open (`flowWaysOf(...).phoneOnly`, now also after a 409 `payment_choice_unavailable` on booking): Pay gives the shop's phone instead of holding the gear 15 minutes for a payment nobody can take. - QA-1027 G10 follow-up (Codex round 1): the reload draft written into the page's history entry keeps no name, email, phone or who books (`withoutContact`): only the riders' measures and levels by place. Names and contacts stay in the page's memory and are lost on a reload. Tests: `tests/booking-flow-react-group.test.mjs`. - QA-1027 G1 follow-up (Codex round 1): `ChoiceCard` never shows a broken image: a photo that fails to load (a 404, or a path on the shop's own site this host does not serve, as Evolve's kind stills on the hosted page) falls back to the card's media or icon ground, also when it failed before hydration. Tests: `tests/guest-qa-1027-static-miss.test.mjs`. - QA-1027 G4 follow-up (Codex round 2): the Bikes step's prices are the one-day price (W7-21 `days: [1]`), now always said as a day price on the model rail and the bike view: "€90 a day", "from €70 a day" for Any that fits (new `bikes_from_a_day` in en, it, de, fr), never a bare amount on a longer trip. Tests: `tests/guest-qa-1027.test.mjs`. - QA-1027 G10 follow-up (Codex round 2): what the guest typed (names, measures, levels, the lead's contact, who books) is kept in this tab's sessionStorage (key `og-flow-draft:` plus the shop, `kept.ts` `keepDraft` / `readDraft`), written with the picks by the event handler, read through useSyncExternalStore; it lasts 30 minutes from the last change, goes when the trip is booked and with the tab, and is never in the history entry. A reload keeps names and contacts again. Tests: `tests/booking-flow-react-group.test.mjs`; `tests/source-policy.test.mjs` allows the one store. ### [0.4.12] - 2026-10-24 #### Added - 4-1024-0147-1ecd **The confirmed page's Your bike card can show the shop's own photo of the model (evolvefinale.com, OG-1131: a Pivot Firebird showed the glyph, Oliver asked for a picture of the bike).** New optional `FlowLooks.booked.bikes` (per bike product id, the booking read's `ViewLine.product.id`, a `FlowPhoto`) and `BookedTrip` prop `bikePhotos`: the host's photo is drawn instead of the read's `product.image`; left out, the read's image, else the ODG gear glyph as before. Downstream migration: nothing to change; a host that wants its own bike photos passes `looks.booked.bikes`. #### Changed - 4-1024-0114-eef0 **The guest flow follows what the shop rents (QA night 24 Oct, S-04, S-14, S-15).** The API now names each product's and extra's gear (W7-06 `products[].gear`, `extras[].gear`: `bike`, `ski` or `other`). New `/core` `gear.ts` reads it: `rentedGearOf`, `wordsGearOf`, `productsForGear`, `extraFits`, `siteLeadGearOf`, `termsOf`. A shop that rents skis and bikes gets a What card for each, `rent-ski` and `rent-bike` (`FlowShop.activities[].gear`), in the order its home page shows them. The Bikes step shows the gear the trip picked. The words follow the trip's gear: a ski trip reads "Rent skis", "Skis", "Next: your skis" and skiing levels; a trip of skis and bikes together reads plain words. New `/react` `words/gear.ts` (`GEAR_WORDS`, `gearWordList`, `withGearWords`) holds these words, and the host's own `words` still win key by key. New `useGearLook`, `LookOverride` and `wordsOfLook` in `look.tsx`. Kit offers only the extras that fit the gear the trip rents (no ski locker with a bike), and keeps an extra the trip already took. A plain `rent` pick, from a website link or a kept trip, lands on the card of its gear. The Any card's heading reads "Who gets any bike in their size?" (`bikes_who_any`), never "Who rides the Any that fits?". Downstream migration: nothing to change. A read with no `gear`, such as an older API, keeps one rent card and the bike words. A bike shop reads exactly as before (evolvefinale.com). A host that passes `looks.activities` keeps its own cards. - 4-1024-0114-eef0 **The optional account starts unticked (S-05).** `initialGroup().password` is now null, so "Make an account with this email" is off until the guest ticks it, and a new trip never waits on a password. Downstream migration: none. A host that relied on the tick being on from the start now sees it off. - 4-1024-0114-eef0 **The shop did not answer: the shop's bar stays, the trip is kept (S-07).** When the site read fails (a 503, the network), the host's `bar` now stays around the error. The error reads "We could not reach the shop. Your trip is kept. Try again in a moment. Nothing was booked.", and Try again waits while it reads again. #### Added - 4-1024-0114-eef0 **The rental terms open in a sheet (S-17).** On Plan, "rental terms" opens the new `TermsSheet` (exported from `/react`). The sheet shows the shop's own cancelling terms (W7-05 `booking.terms.cancellation`, read with `termsOf`) and how this page takes payment (`termsPayOf`). A shop with no terms online gets a line to ask them, with its phone. It opens when the host gives no `termsHref`. Also new: `PlanStep` `rentalTerms` and `WhoBooksForm` `onTermsOpen`, both additive, and new words `terms_*` in en, it, de and fr. ### [0.4.11] - 2026-10-24 #### Changed - 4-1023-2252-6b5e **The confirmed page's first pick up shows the shop icon tile, not a stand in photo (design 28, Oliver 23 Oct).** `BookedTrip` draws a photo there only when the shop uploaded one for that place: the booking read's `pickup.photo_url`, else the site's place of the same name (`PublicSitePlace.photo_url`), never for a meeting point from the shop's place. Without one the card opens on a 52px tile in the brand's soft accent (`--og-free` over `--og-bg-2`, so it follows the theme, light and dark) with a storefront icon (a map pin for a meeting point), the place's name and "where your trip starts" (`confirmed_starts`, en, it, de, fr). The `place` prop and `FlowLooks.booked.place` are deprecated and no longer drawn: a photo the host hands in is not the shop's own photo of that place. New `store` icon. Downstream migration: nothing to change; a host that passed `booked.place` (a stock or workshop photo) now gets the tile, drop the prop when convenient. ### [0.4.10] - 2026-10-23 #### Fixed - **Pay could sit on "Opening the secure card form" for ever (evolvefinale.com, 23 Oct).** `mountCheckout` waited with no limit on the payment session, Stripe.js and Stripe's own start, so one that never answered left the guest on the still bar. Now a card form not in the page within 10 s (`CHECKOUT_OPEN_MS`, `timeoutMs` on `StripeCheckout` and `mountCheckout`) stops that run and shows "The card form did not open" with Try again (a new session); a form Stripe makes after that is destroyed, never mounted. - **A 100% deposit read as a deposit.** A shop whose deposit is the whole trip (`booking.deposit_percent` 100, or a quote whose deposit covers the total) no longer offers "A deposit now, the rest at the shop, 100%" beside "All of it now": the deposit way goes when the shop also takes all now (`waysWithoutWholeDeposit`, `depositIsAll` in `/core`), so Pay opens on all now, and PayCheckout titles a deposit with nothing left at pick up "Pay for your trip", not "Pay the deposit". #### Added - 3-1023-1654-482e **The booking read names what the confirmed page draws (BC1, contract).** `PublicBookingView` gains `payments` (method, amount, date, deposit) and each `ViewLine` gains `unit_minor`, `units`, `unit`, `product` (`ViewProduct`: image, glyph, model, e-bike, facts) and `departures` (`ViewDeparture`: day, start, end, `ViewMeeting`). All optional: an older API answers without them. - 3-1023-1654-482e `FlowLooks.booked` (`FlowBookedLook`: `hero`, `place`): the shop's own photos for the confirmed page, additive. - 3-1023-1654-482e **The confirmed page after paying (design 28, approved 23 Oct).** The flow's Booked page now shows the new `BookedTrip` (react/finish) for a booked booking. A request or a line still asked of the shop keeps `Booked`. The page has a hero with the shop's photo (`FlowLooks.booked.hero`, else the site's hero photo, else the brand's band), the paid badge, the reference and "See you Monday". It has one primary, Open my trip, plus Add to calendar. Then come the summary cards, the week as a timeline (a day list on a phone), the bike with its studio photo or ODG gear glyph and its kit and pedals, and who is riding with Add height and weight and Send the form. Send the form brings the guest to the share card. What you booked lists unit prices. The side column has the first pick up, the payment with its method and day, the share slot, and change, cancel and questions. New `/core` `booked.ts` provides `bookedSummary`, `bookedWeek`, `bookedDayList`, `bookedBikes`, `bookedRiders`, `bookedLines`, `bookedMoney`, `kitGlyphOf`, `siteHeroPhoto`, `bookedIcs` (the calendar file) and `bookedReceipt` (a printable receipt). Both files are built in their click handlers. The BC1 fields are optional, and each block draws less without them. Other changes: the band is off on Booked; the page runs edge to edge from 1024px; `ShareTrip` has a new `send="outline"`; there is a `credit-card` icon; the new words `confirmed_*` come in en, it, de and fr; the new `flow-booked.css`. Tests: `tests/booking-elements-booked-trip.test.mjs`. - 3-1023-1654-482e The confirmed page's What you booked lists the kit that comes included as one row naming every piece ("Helmet, chest and back protection and knee and elbow pads", included), with no "1 at €0". - 3-1023-1654-482e Review fixes to the confirmed page: - A one day rental shows both its pick up and its return on the phone. - A newer paid amount from GBF-31 that the listed payments do not reach adds one plain Paid row, on the page and in the receipt. - A meeting point's Directions never fall back to the shop's place. - A US or Canadian shop's ranges read both ends the same way ("Mon, Nov 2 to Fri, Nov 6"). - Badges stay on one line. The phone's summary cards line up, with the label under the icon. - The shop's terms keep "pick up" and their last two words together, and so do our own "pick up" lines (new `keepLastWords`, new word `confirmed_chip_day` in en, it, de and fr). ### [0.4.9] - 2026-10-23 #### Fixed - **A booker with a one-word name could not book (evolvefinale.com, 23 Oct).** Who books it takes one name and splits it into first and last, so "Oliver" sent `first_name: "Oliver", last_name: null`. The API takes either `name` or both halves, so it answered 422 and the page showed "Not booked yet". The account and the password had nothing to do with it. New core `leadNameOf` sends first and last name when both are given, and otherwise the one given as `name`. `groupBookingOf` and `siteBookingOf` both use it, so the single-trip flow with a blank last name is fixed too. Tests: `tests/booking-elements-request.test.mjs`, `tests/booking-flow-group-request.test.mjs`. #### Changed - **The phone's country is a search (evolvefinale.com, 23 Oct).** In `PhoneField` the browser's own long select is replaced by a button with the flag and calling code. The button opens a search above a list of countries: - **Matching:** type a country's name in the guest's language or in English ("brasile", "Brazil"; accents and case aside), its two letters ("it", "ch"), what guests call it ("UK", "USA") or its calling code ("39", "+39", "0039"). A calling code lists the country it reads as first (+1 the US, +44 the UK). - **Keys:** the arrows move the highlight and keep it in view, and Enter picks. Escape clears the search, and a second Escape closes back to the button. A tap outside, Tab or a click on the number closes it; putting a phone's keyboard away keeps it open. - **Accessibility:** the search is a `combobox` with a `listbox` of `option`s. - **API:** new core `phoneCountrySearch` and `PhoneCountryEntry`. New words `plan_country_search` and `plan_country_none` in en, it, de and fr. The country is still sent with the form as a hidden `tel-country`. - **Tests:** `tests/booking-elements-plan.test.mjs`, `tests/booking-elements-react-plan.test.mjs`. ### [0.4.8] - 2026-10-23 #### Changed - **Who books it: the phone has its country, the account is ticked from the start, and Pay puts the trip beside the choice (evolvefinale.com, 23 Oct).** - **Phone:** new `PhoneField` (react/plan): the browser's own country select, drawn as the flag and calling code in front of the number. It starts on the region of the browser's first language, then the shop's country (`site.shop.country_code`, new `country` prop on `PlanStep`, `WhoBooks`, `WhoBooksForm` and `PhoneField`; "en-US" gives way to a shop outside the US). A code typed or pasted with "+" or "00" picks its country and keeps it while the rest is typed. The field keeps "+39 340 326 0080". The booking's `lead.phone` goes as E.164 (`+393403260080`) from `groupBookingOf` and `leadOf`, with the trunk prefix dropped where the country drops it (0; 06 for +36; 1 for +1, 8 for +7 and 80 for +375 only when the number is too long without dropping it, so St Petersburg's 812 stays; kept for +39, +378, +225, +242). New core `phone.ts` provides `PHONE_COUNTRIES`, `phoneParts`, `phoneValue`, `phoneTyped`, `phoneDial`, `phoneProblem`, `phoneE164`, `phoneCountryOf`, `flagOf`, `regionOf` and `dialOf`. A waiting Book brings the focus to the control marked wrong (the number, not the country select before it). A number with no "+" (an older trip) is still checked and sent as before. `plan_err_phone` and `stitch_problem_phone` now read "Check the number for this country", and there is a new word `plan_country`, both in en, it, de and fr. - **Email:** the field no longer starts with a capital or autocorrects on a phone (`Field` takes `autoCapitalize` and `spellCheck`). A browser's autofill no longer paints its blue box over the fields; it keeps the field's ground and text colours. - **Account:** "Make an account with this email" is ticked from the start, with its password asked, so the guest can see the booking later (`initialGroup().password` is `""`; `null` is unticked). Before, ticking the box sent an empty password, which the state read as "no account", so the box unticked itself. A signed in guest gets no account box (`PlanStep accounts` is off for them) and their booking sends no account. The trip kept in the browser is cleared once Booked shows the booking. - **Pay:** on a computer, Pay's "How do you want to pay?" now sits on the left with the trip card (lines, Total, Today, Pay) on the right, sticky, as every step's aside. Before, both were stacked in one column. - **Tests:** `tests/booking-elements-plan.test.mjs`, `tests/booking-elements-react-plan.test.mjs`, `tests/booking-flow-react-plan.test.mjs`, `tests/booking-flow-group-state.test.mjs`, `tests/booking-flow-group-request.test.mjs`, `tests/booking-flow-next-waits.test.mjs`. ### [0.4.7] - 2026-10-23 #### Fixed - **A tour a day, every bike the same size, and the tour named first (evolvefinale.com, 23 Oct).** The Tour step was one choice for the whole trip: picking a tour on Tuesday took Monday's out, so the summary and the price counted one tour. A pick now replaces only the tours on its day: `tourEventsOf(state, choice, tours, zone, day?)` takes the day shown (a seat with no date is placed by its departure's day, and one whose departure the read no longer lists goes with any pick), with no day it clears every day as before (`leaveTourEvents`, prefill). New `tourChoicesOf(state)` lists every seat, guide pick and request; `tourChoiceOf(state, day?)` takes a day. `TourStep` takes `elsewhere` (the tours on the other days) and calls `onChange(choice, day)`; its rail marks a day with a tour ("your tour", ringed), Next is ready with a tour on any day once every day's tour fits (else Next opens the day that needs a way on), and the summary says "Tours on Mon 20 and Tue 21" (new `tourDaysSummary`, words `tour_day_picked`, `tour_sum_days` in en, it, de, fr). `GuestBookingFlow` keeps the day shown and books every day's tour. Each seat is still one `tour_seat` line for the whole group (`riders: null`). The plan bar names the tour before the bike ("Classic + Firebird, M"), so a long bike name no longer hides it, and changing a tour day from Plan starts with everyone on that tour, not only the rider tapped (`changeFor`, now given the tapped part of the day by `PlanStep`). The Bikes stage gives the bike a box of the row's height (at most 560 px) centred in the stage, so a long parts list grows the ground, not the bike. Tests `tests/booking-flow-wire.test.mjs`, `tests/booking-elements-react-tour.test.mjs`, `tests/booking-elements-plan.test.mjs`, `tests/booking-elements-react-plan.test.mjs`, `tests/booking-flow-react-plan.test.mjs`. ### [0.4.6] - 2026-10-22 #### Changed - 3-1022-2033-bccc **Guest booking says why a booking is refused for too many today** (prod smoke after v0.19.57, bug 6): a 429 `too_many_bookings` answer reads "This email already started several bookings today. Contact the shop." (en, it, de, fr) with the shop's phone, not "Not booked yet ... Try again" (`flow/bookFailure.ts`, both `BookingFlow` and `GuestBookingFlow`). Needs a Booking Elements release before evolvefinale.com shows it. Tests: `tests/booking-elements-book-limit.test.mjs`. ### [0.4.5] - 2026-10-22 #### Changed - **The default primary is Outdoor Grid's spruce** (`DEFAULT_THEME.accent` `#1c6a45`, `accent-edge` `#124a30`, `on-accent` `#ffffff`, and the same `@property` initial values in `theme-defaults.css`), not yellow. A shop's own colours still win; a site that sets none now draws green buttons. #### Fixed - **A kept trip's refusal waits for When (evolvefinale.com, 22 Oct).** A trip kept in the browser (`og-flow:`) is priced on reload; when its bike had been taken since, `GuestBookingFlow` opened on What with "Your bike is not free. 1 bike is not free on Fri 23 and Sat 24." above "What are we doing?", before the guest had seen any days (and a cache clear keeps `localStorage`). Running short and the refused days' Status (`too soon`, `closed`, ...) now show only from When on (new pure `tripRefusalShownOn(page)` in `react/group/flow/wire.ts`); on What and Who a refused trip shows nothing, never "We could not price the trip". With nothing free the first way says what it does: "Put your bike on the waitlist" / "Put all \{n\} \{items\} on the waitlist" (new `short_ask_none_one`; `short_ask_none` takes `{n}`), was "Book the rest now", in en, it, de, fr. Tests `tests/booking-flow-guest-flow.test.mjs`, `tests/booking-flow-wire.test.mjs`, `tests/booking-elements-react-short.test.mjs`. - **A day-only tour link picks the tour.** `prefillLanding` and `prefillOf` take the door in their reads (`PrefillReads.door`): a tour door with a `date` and no `departureId` (the ChatGPT app's `tour` + `day`) takes the tour's one departure that day with a place for everyone as the seat (as `tourEventsOf` books a pick), else returns `tour: AskedTour` (`several` or `none`, with the tour's name). `TourStep` takes `asked` (`{ tourId, day }`) and `onOthers`: on that day the asked tour shows alone as "Your tour", the guide pick hides, and the foot says "Pick a time for \{tour\}"; `TourCard` takes `asked`. `GuestBookingFlow` wires both and names the tour in the note when none fits (a tour the day's read does not list is named from one availability read of the weeks around the day, asked only in that case). New words `tour_sum_asked`, `tour_others`, `tour_asked_none` (en, it, de, fr). Tests `tests/booking-flow-prefill.test.mjs`, `tests/booking-elements-react-tour.test.mjs`, `tests/booking-flow-guest-flow.test.mjs`. - **A site with no kinds of ride still rents (QA-K lane H).** `flowActivitiesOf` offered the Rent card only when the site read published `booking.kinds`; a shop that never published its website (the default config has none) showed only its tours. It now also offers renting when the availability read lists a product that is not kit. Test `tests/booking-flow-wire.test.mjs`. - **A website's Book link keeps the picked bike or ski (QA-K lane H).** `item=` was read only as "open on renting", so the guest had to find the thing again. `linkSets` (`/core` `link.ts`) now takes `item` as one more set of 1 marked `quiet` (after the `set`s, at most `MAX_RIDERS` sets; a `set` naming the same id wins; `people` does not multiply it), and `LINK_PREFILL_KEYS` gains `item` so the guest's first move takes it out of the address. `FlowPrefill.sets` entries take an optional `quiet`. `prefillOf` (`react/group/flow/prefill.ts`) leaves a quiet set the shop does not rent (a lesson, a service, a tour, unknown), or one with no read, out without the "left out" line; a rented one is checked like any set. An `item` alone (`quietPrefill`) keeps the guest's kept trip: laid on it when rented (`prefillLanding` answers `applied`), else the kept trip stays. Additive. Tests `tests/booking-elements-link.test.mjs`, `tests/booking-flow-prefill.test.mjs`, `tests/guest-flow-site.test.mjs`. - **A tour's day without a departure stays in the trip.** `reduceGroup`'s `door` event puts a tour door's `date` in the trip whether or not it names a departure (before, only with one): no trip yet, the day is the trip; outside the link's days the trip widens to hold it (at most `PREFILL_MAX_DAYS`, else the day is the trip). A replay without the link's prefill on a trip the guest already has leaves it alone. Evolve's /book can drop its own widening (`flowLink.ts` `tripWith`). Test `tests/booking-flow-prefill.test.mjs`. #### Changed - QA-K (lane A5): the When step showed the shop's usual half-day times on every day, so a Sunday open only 09:00 to 12:30 read "Morning 8:30 to 12:30" and a whole Sunday "8:30 to 18:30". `freeByDay` now keeps a W7-20 or W7-06 day's own `hours` (`WhenDayFree.hours`, new type `DayHours`; left out when it does not read), and `halfState`, `wholeDay` and `todayOpen` take that day's times before the shop's halves (new `dayHalves`); the products' fallback days (`productDaysOf`, when the kinds read answers none) keep them, and today's whole day says its pick up from the day's own opening (`whenSummary`). Additive: a read without `hours` behaves as before. ### [0.4.4] - 2026-10-22 #### Added - **Guest passkeys (4-1022-0856-ac17, API GP-01 to GP-07).** Seven opt in operations, `passkey-sign-in-options`, `passkey-sign-in`, `passkeys`, `passkey-options`, `passkey-add`, `passkey-rename`, `passkey-remove` (`PASSKEY_SITE_OPERATIONS`, wire shapes by hand in `core/passkeys.ts`), and the browser half with no dependency: `isPasskeySupported`, `getPasskey`, `createPasskey`, `abortPasskey`, base64url, the options from JSON (the browser's parsers when present, else by hand), the credential to JSON, `passkeyProblem` (`cancelled`, `notSupported`, `alreadyAdded`, `noPasskey`, `generic`). The route (`next/flow.ts`, `PASSKEY_ROUTE_OPERATIONS`, never in `DEFAULT_ROUTE_OPERATIONS`) sends the page origin it accepted as `X-Guest-Origin` on these only (a bare https origin, or http on localhost, else 403), `passkey-sign-in` sets the session cookie like `code-check`, the others send it as `X-Guest-Session`, a 404 drops it only on `session_unavailable`, a 400 `unknown_origin` answers 503. `/hooks`: `usePasskeyCalls`, `usePasskeySupported`, `usePasskeys`, `useRenamePasskey`, `useRemovePasskey`. `GuestBookingFlow` takes `passkeys` (default off): "Sign in with a passkey" in the sign in sheet, a neutral button where the browser can, and after a code or password sign in the offer "Add a passkey" / "Not now", the dismissal kept 30 days in `localStorage` (`og-booking-passkey-later`, an end time only). Words in en, it, de, fr. Additive. Tests in `tests/booking-elements-passkeys.test.mjs`, `tests/booking-elements-route.test.mjs`. - **The shop's country decides how money and dates read (3-1022-0831-316e, A2 North America).** New `/core` `format.ts` (`intlTag(locale, country)`: English reads en-US for a US shop, en-CA for a Canadian one, else en-GB; money in the shop's currency); the flow's words carry the shop's `country` from the site read (`PublicSiteShop.country_code`, added to `openapi/public.json` and the generated types), so a US shop's guest sees $, month first days and a 12 hour clock. Without a country everything reads as before. Additive. - **The deep link's reader in `/core` (job 2-1022-1003-0940, Evolve /book).** `doorFromQuery`, `prefillFromQuery`, `sourceFromQuery`, `linkDays`, `linkSets`, `withoutPrefill` and `LINK_PREFILL_KEYS` (`src/core/link.ts`) read the one guest booking link (`docs/guest-booking-link.md`) into the flow's door with its prefill and the booking's `source`, from Next's `searchParams` or a `URLSearchParams`. Moved here from the hosted page (`features/guest-flow-site/model.ts` now re-exports them, same behaviour), so a shop's own site on Booking Elements (Evolve's /book) reads a ChatGPT link exactly as the hosted flow does. Additive. Test `tests/booking-elements-link.test.mjs`. - **Where the guest came from (3-1022-0416-028e).** `GuestBookingFlow` and `BookingFlow` take an optional `source` prop (`BookingSource`, today only `"chatgpt"`; `BOOKING_SOURCES`), and `groupBookingOf` / `siteBookingOf` take `source` in their options and put it on the W7-08 body only when set, so a booking without it sends the same body as before. `openapi/public.json` and the generated types gain `SiteBookingCreate.source`. Additive. - **W7-21 prices (QA-P3).** The site operation `prices` (`{ first_day, days: [1 to 3 lengths] }`, answer `SitePrices`: per length, product id to the price of one) calls `GET /v1/public/sites/{slug}/prices`, a read that books nothing. `SitePrices` is written by hand until the API contract is regenerated. - **A link's prefill (3-1022-0256-3fec, outdoor-grid-frontend `docs/guest-booking-link.md`).** `FlowDoor` (every kind) takes an optional `prefill: FlowPrefill` (`first`, `last`, `people`, `sets: {id, qty}[]`); the `door` event gives the trip the count, then the days (a tour's `date` outside them widens the trip, at most 28 days in all, else the tour's day is the trip and the note says the link's days were left out) (`prefillTrip`, `prefillPeople`, `PREFILL_MAX_DAYS` 28 in `/core`). On a fresh link at the flow's start only (a reload or a shared step keeps the kept picks and replays the door without its prefill; a link in the fragment wins), `GuestBookingFlow` waits for the shop's reads (a loading state), then checks the sets (a product, or a kind's products in turn, each as far as it has room on every day of the trip; a failed read leaves them out, said) and the door's tour seat (listed, with a place for everyone), and opens on the furthest step the prefill fills, never Pay (What, Who when the count is missing or someone rents, When, Tour, Bikes, Kit when Next would wait, else Plan); the address follows on the guest's first change. Anything left out says so in one line (`stitch_link_dropped`, en, it, de, fr). The lines above a step (this one, days that passed, running short) now sit in one part, `flow-notes`, apart from each other and from the step's title (they touched before). Pure `prefillOf`, `prefillLandingOf`, `prefillLanding`, `freeOnTrip`, `doorPrefill` in `react/group/flow/prefill.ts`. Additive: a door without a prefill opens as before. Tests `tests/booking-flow-prefill.test.mjs`, `tests/booking-flow-guest-flow.test.mjs`. #### Changed - QA-K (lane A4): the made up Firnfink look's fix colour (`FIRNFINK_FLOW_TOKENS.warn` in `react/group/theme.ts`) was amber `#875a00`, which reads as the primary's yellow; it is burnt orange `#9a4a1c` (still at least 4.5:1 on its grounds). Only the demo look changes. - QA-F2 Booked ticket: a booking of only tour seats showed the shop's opening as "First pick up"; when the view's `pickup.meeting` is true it shows "Meeting point", the departure's day and time, and the point's name and address (en, it, de, fr). `ViewPickup` gains optional `meeting` and `address`. - **Return check and damage on the real API (job 2-1021-1950-9e37, API docs/return-check.md section 5).** Damage cover never goes on a quote or booking line any more (`PublicLineInput` refuses unknown fields, so `damage_cover: true` answered 422): `groupLinesOf` sends the same lines ticked or not, and `FlowShop.coverOptions` is gone. New site operation `damage-cover` (RC-42, `client.damageCover`, `useDamageCover`): `PUT /v1/public/sites/{slug}/bookings/damage-cover` with the booking's view token as `X-Booking-View`, `Idempotency-Key` as a header and the body exactly `{ category_ids }` (0 to 200 distinct uuids, empty takes it off); `createBookingRoute` serves it by default (only `category_ids` goes on) and the hosted flow BFF lists it. `GuestBookingFlow` sends it in the booking's answer, before Pay, with the categories of the trip's offers while the group ticked the cover, then reads the booking again (`current`) so Pay shows the total and deposit with the cover; the booking stands whatever the cover call answers, and Pay or Booked says so in the guest's words (`cover_failed_not_offered` for 409 `cover_not_offered`, `cover_failed_closed` for `cover_closed`, `cover_failed`, `cover_added`). Offers read the API's extras exactly (`SiteExtra`/`SiteQuoteExtra` of kind `damage_cover`: `id`, `category_id` uuid, `name`, `covers`, `not_covered` as words per language, `price_per_day_minor`, `excess_minor`, `max_per_booking_minor`, the quote's `units` and `amount_minor`). Plan's price for the cover is the quote's extra `amount_minor`, added to the receipt as one "Damage cover" line and to the total while ticked (a deposit way then says the total; Pay says the deposit); else price a day x days x items within the shop's cap, said beside the offer only. `DamageCoverOffer` shows the shop's name for it and what it does not cover (`cover_not_what`). New in `/core`: `coverCategoriesOf`, `coverSavedOf`, `coverRefusalOf`, `coverWords`, `payLinkOf`; `coverQuoteOf` now reads the quote's extras; `react/group/flow/wire.ts` `coverToSendOf`, `coverInTotalOf`. Types regenerated from the API contract (`SiteDamageCoverSave`, `SiteDamageCoverSaved`, `SiteQuoteExtra`, `TripDamage`; `SiteExtra` gains the cover fields and `per: "item_day"`). - **The trip page's damage report reads the API's block exactly.** `tripDamageOf` takes the trip read's `damage` as the contract has it (`state`, `items` with `name`, `tag`, `severity` each nullable and `photo_urls`, `total_minor`, `paid_minor`, `left_minor`, `pay_link`), and `pay_link` is the trip page's own path (`/s/{slug}/trip/{token}#pay`): a path with one slash in front and no scheme, backslash or space, or an http(s) link (`payLinkOf`). The other fields stay optional. `TripDamage` adds up from the contract alone: the repair, what the guest was not charged as a minus (`damage_not_charged`), on settle what was paid already (`damage_already_paid`), then You paid or You pay. Words in en, it, de, fr. Tests in `tests/booking-elements-damage.test.mjs`, `tests/booking-elements-route.test.mjs`, `tests/booking-elements-flow-operations.test.mjs`, `tests/site-flow-bff.test.mjs`. ##### Downstream migration A host that serves its own route with an explicit `operations` list adds `damage-cover` to take the cover at booking; `DEFAULT_ROUTE_OPERATIONS` has it. A host that read `FlowShop.coverOptions` or the quote's `damage_cover` lines reads `groupCoverOf` and `coverQuoteOf(quote)` instead. Rollback: the previous exact pin. ### [0.4.3] - 2026-10-21 #### Fixed - **Evolve feedback 19 Oct 1: When no longer offers a day the quote then refuses as too soon.** The calendar greyed today only by its clock and `notice.cutoff_today`, and the site read sends a null cut off when today is already too soon, so after the shop's notice today stayed open and the quote refused it (too_soon). The When context now reads `notice.first_day` (`WhenContext.firstDay`, `whenContextOf`): every day from today to the day before it is too soon (`blockedDays`, a closed day keeps its own reason), today's halves are gone, `pickDay` never starts on a day that cannot be picked, and `firstOpenDay` (the trim of a kept trip) never starts before it. A day that cannot be picked (too soon, closed, full) says why: on hover its title, and a tap shows one line under the months (part `when-why`, `aria-disabled` in place of `disabled`; a past day stays disabled), as one quiet line of text in the secondary text colour with the small info icon (no fill, no border, no coloured surface), and the first day that works (`firstPickable`, which also passes full days) as an underlined text button that moves the trip there, the same length (`moveTrip`, `WhenCalendar` `onMove`, additive): "Mon 19 Oct is too soon to book online. Start on Tue 20 Oct". Without `onMove` the line names the day in words. New pure `blockedWhy` and words `when_why_too_soon`, `when_why_too_soon_plain`, `when_why_closed`, `when_why_full` in en, it, de, fr. Tests in `tests/booking-elements-when.test.mjs` and `tests/booking-flow-wire.test.mjs`. - **Evolve feedback 19 Oct 2: a refused trip says why and offers the next day that works, never "We could not price the trip".** The quote's `409 quote_refused` (the shop's prices or booking rules refuse a line: `too_soon`, `too_far`, `too_many_days`, ...) reached the flow as a bare code, so it said the price failed. The route (`next/flow.ts`) now passes a `quote_refused` body's `refusals` on (each `{ code, line }`, machine words only, nothing else), and the client keeps it as `BookingCallError.body` (additive). In `/react` (`react/group/flow/wire.ts`): `refusedWhyOf` (too-soon, too-far, too-long, closed, full or other, from the answer or the 409), `nextTripOf` (the trip moved to the next day that works, the same length, past greyed and full days; its When events) and `refusedSayOf` (the words). GuestBookingFlow shows a Status in the guest's words ("Wed 21 Oct is too soon to book online. The shop needs more notice to get everything ready." / "The first day that works is Thu 22 Oct.") with one primary tap, "Start on Thu 22 Oct", and the shop's phone; Plan says the same where the price goes. A too_soon refusal also reads the site and the calendars again (`useQuote`), so When greys the day. Words `stitch_refused_*` in en, it, de, fr. Tests in `tests/booking-flow-wire.test.mjs`, `tests/booking-elements-route.test.mjs`, `tests/booking-elements-core.test.mjs`. - **Evolve feedback 19 Oct 3: a kinds read with no kinds (`kinds: []`, Evolve) falls back to the products.** When's counts came only from the W7-20 kinds read, so with no kinds the calendar showed nothing free. Now, on When, a kinds read that answered no kinds (`kindsMissing`) makes the availability read (W7-06) ask for the calendar's days, and the calendar counts from the products themselves (`productDaysOf` in `react/group/flow/wire.ts`): the group's bike's product when the read lists it, else every product, each day's sizes added up (full at 0, few at 1 to 4, plenty from 5), the halves likewise, the parts any size offers; a day every product is closed is closed. Test in `tests/booking-flow-wire.test.mjs`. - Gallery states (guest-flow, wired flow) `when-too-soon`, `when-no-kinds` and `plan-refused`, in both looks. - **Running short counts bikes only.** `shortOfRefusal` (the "We have 3 of your 4 bikes" card) counted the riders on every refused line, so a refused helmet or tour seat read as a missing bike. It now counts the rentals' lines (and a line with no key); a refusal of kit, extras or seats alone draws no bike card. The README's Parts names every part the components set. - **4-1021-2014-220f: a resumed saved trip dates its tour seats.** A tour_seat line carries no day (the API takes none on it), so `groupFromSavedTrip` now takes a seat's day and part from the kit of a rider on it who rents no bike and rides only that seat (their kit goes on the days of their tours, less their guide picks' and tour requests' days); the seat's riders ride that day and the trip covers it, so a trip of tour seats only keeps its trip. A seat its lines do not pin, or pin to two days, stays undated as before. `datedState` dates every seat the departures read lists from that departure (its day and part win over a day read from the kit) through the group's `service` event, so a rider without a bike (on no rental) stays on the seat once it is dated instead of dropping off its line; a rented bike on the seat comes back as `line:`. Tests in `tests/booking-flow-group-request.test.mjs` and `tests/booking-flow-wire.test.mjs`. - **4-1021-2014-220f: Plan waits for an undated seat's departures.** While a resumed trip still holds a seat with no day and the trip's availability read is on its way, `GuestBookingFlow` shows Plan loading (`data-og-part="plan-wait"`, the shop loading words) and prices nothing, so no quote goes out for a seat that names only the own bikes; the read then dates it, or a departure it no longer lists comes out as before (Tour says which). A read that failed, or no trip to read, shows the seat as it is. New pure `seatsWaitOf` in `wire.ts`. The Tour step already waited for its tours. Tests in `tests/booking-flow-guest-flow.test.mjs`. ### [0.4.2] - 2026-10-21 #### Changed - **Retest 21 Oct: Plan says the whole deposit split.** With a deposit the side says "€48 today, the other €112 when you pick up." and the amount due (phone bar, who books it) gets "of €160, the rest at pick up" under it; the phone showed only "Today €48" and a computer only "Total €160". `PlanDue.note` (new, optional), words `plan_pay_deposit`, `plan_pay_deposit_short` in en, it, de and fr. Test in `tests/booking-flow-react-plan.test.mjs`. ### [0.4.1] - 2026-10-21 #### Changed - **R6-flow: the whole tour card picks the tour.** On a computer a tour card lights up on hover (ring in the pick colour, a small lift; times light up too); a click anywhere on the card picks its first time with room for everyone (with others first), else its first time with a seat; the times and See the ride keep their own action. Each card shows a `Pick this tour` marker (`Your tour` once picked) so a phone shows it can be tapped. New words `tour_pick`, `tour_picked_tour` in en, it, de and fr. `TourCard` in `src/react/tour/TourStep.tsx`, styles in `src/flow-tour.css`; test in `tests/booking-elements-react-tour.test.mjs`. #### Added - **3-1021-1804-c0bd: My booking states E and F (evolvefinale.com/trip/<ref>#t=<trip token>).** New trip operations, the trip token in the path and `Idempotency-Key` required: `trip-asked-answer` (`POST /v1/public/trips/{token}/asked/{line_no}/answer`, API W6-15: GBF-15 by the trip token, body `SiteAskedOfferAnswer`, answer `SiteAskedOfferAnswered` whose `payment` is an embedded Checkout session for a difference), `trip-asked-withdraw` (`.../asked/{line_no}/withdraw`, W6-16, answer `TripAskedWithdrawn`) and `trip-payment-session` (`.../payment-session`, W6-17, answer `TripPaymentSession`: `SitePaymentSession` plus `purpose` deposit, full or balance). `line_no` is the trip read's `asked[].line_no` (1 to 20). `createBookingRoute` serves `trip-asked-withdraw` by default; `trip-asked-answer` and `trip-payment-session` start payments, so they are opt in like `asked-offer-answer`. Types regenerated from the API contract: `GuestTrip.asked`, `TripBooking.held`, `TripPayment.card_brand`, `card_last4`, `receipt_number` (additive). Tests in `tests/booking-elements-flow-operations.test.mjs` and `tests/booking-elements-route.test.mjs`. - **2-1021-1649-a19b: Send the trip to your group from My booking (evolvefinale.com/trip/<ref>#t=<trip token>).** New trip operation `trip-share` (`TRIP_OPERATIONS`, `client.tripShare`, served by `createBookingRoute` by default): `POST /v1/public/trips/{token}/share` (API W6-14) with the trip token in the path, `Idempotency-Key` required, body `TripLinkShare` (`locale`, `riders: [{rider_no, email?}]`, riders by their `rider_no` on the `trip` read), answer `TripLinkShared` (GBF-60's riders plus `rider_no`). The route passes on only `riders` and `locale`. Additive; `share` (GBF-60 by the view token) is unchanged. Types regenerated from the API contract (also picks up two small earlier API changes). Tests in `tests/booking-elements-flow-operations.test.mjs` and `tests/booking-elements-route.test.mjs`. - **Return check and damage: damage cover at booking (contract 5, board GuestKitCover).** The availability read's `extras` may carry `{ kind: "damage_cover", category_id, price_per_day_minor, excess_minor, covers }` (built by the API job in parallel; read defensively, not in the generated contract yet). New in `/core` (`cover.ts`): `coverExtrasOf`, `coverOffersOf` (a cover per covered category, the read's sizes by their product's `parts[].item_type_id`), `coverOptionsOf`, `coverSummaryOf`, `coverEstimateOf`, `coverQuoteOf`, `isCoverLine`, `plainExtrasOf` (the Kit step's extras leave the cover out). The group machine takes one tick for the group (`{ type: "cover", on }`, `GroupState.cover`, never ticked by default, memory only); while ticked every booked rental line in a covered size sends `damage_cover: true` in the quote and the booking (`FlowShop.coverOptions`; an asked line never). Plan shows it as one line under the plan (new part `DamageCoverOffer`, `data-og-part="cover-offer"`: "Damage cover", "Ride without worrying. If something breaks you pay at most €100 a bike.", "€8 a day", a tick; ticked, "What Damage cover covers" opens under it). The price is always the quote's: the quote's `damage_cover` lines are one "Damage cover" line on Plan's and Pay's receipt, taken out of the riders' parts only when their shares tell it apart (`quoteLines`). `PlanBoard` and `PlanStep` take `cover` (additive); `GuestBookingFlow` wires it (`groupCoverOf`). - **Return check and damage: the trip page's damage report (boards GuestTrip, GuestPhone 2).** `/core` `tripDamageOf(trip)` reads the trip read's `damage` block (`state` to_follow, settle or done, `items` with `name`, `tag`, `severity`, `photo_urls`, `rider`, `total_minor`, `paid_minor`, `left_minor`, `pay_link`, and the additive `checked_at`, `lines`, `covered_minor`, `excess_minor`, `paid_by { way, card_last4, card_brand }`, `incident { happened_at, place, signed_at, report_url }`, `receipt_number`, `receipt_url`) defensively: http(s) links only, a block whose state or total does not read is none. New Element `TripDamage` (`/react` and `react/trip`, `data-og-part="trip-damage"`): done (the lines, the cover as a minus, "You paid, Visa ending 4242", a Paid badge, the receipt), to follow (the mechanic sentence, the photos, When, Where, Signed, the crash report), settle (the lines, the cover's minus, "You pay", one primary "Pay €100" to the link through `safeHref`); "Question about this? Email us". Phone 390 and 360 with no sideways scroll (`flow-damage.css`). Words `cover_*` and `damage_*` in en, it, de, fr. Tests in `tests/booking-elements-damage.test.mjs`; gallery states `plan-cover-offer`, `plan-cover-ticked` (guest-flow) and `trip-damage-done`, `trip-damage-to-follow`, `trip-damage-settle` (booking-elements). ##### Downstream migration Additive: no host change. A shop with no damage cover in its read sees nothing new. Hosts that draw the trip page on their own site may draw `TripDamage` with `tripDamageOf(trip)`. Needs the API job's `damage_cover` extras, line flag, quote lines and the trip read's `damage` to show anything; before it, nothing changes. ### [0.4.0] - 2026-10-21 #### Changed - **R5-flow 1: a trip that rents always has a Tour step, which asks "Would you like to join a guided tour?" (Oliver, evolvefinale.com, 21 Oct: the band's "+ Add a tour" was hard to see).** At a shop with a tour card, `groupSteps` shows Tour after When also when the guest picked only Rent on What (new `offersTours`); there the step is the question alone (new part `TourJoin`, `data-og-part="tour-join"`, two radios: the arrows move between them, Enter or Space picks, and the picked radio keeps the focus when the step draws again; `joinKeyTarget`), **No picked by default** so one tap on Next goes on (`stepProblem` waits on nothing while no tour is picked; the band says "no tour", `band_sum_tour_none`), and **Yes** picks the shop's first tour card and opens the tour picker with the question kept above it (No there takes the tour picks out again). The band no longer offers "Add a tour" (`addableStepsOf` answers Bikes only); "Add bikes" stays. A tours only trip is unchanged. New words `tour_join_title`, `tour_join_line`, `tour_join_no`, `tour_join_yes`, `tour_join_sum_no` in en, it, de, fr. Gallery state `tour-join`. Tests in `tests/booking-flow-group-steps.test.mjs`, `tests/booking-flow-wire.test.mjs`, `tests/booking-flow-group-request.test.mjs`, `tests/booking-flow-guest-flow.test.mjs`. - **R5-flow 2: no running price panel beside the steps; the tour card keeps its shape at any width.** On Tour the "Your trip" panel squeezed the card (the name ran into the times, the line wrapped one word a line). GuestBookingFlow passes no `aside` (nor the phone's trip pill) on any step; Bikes and Kit keep their own totals and the price is on Plan. The tour card lays out by its list's room (`container: og-tours`): photo, words and times side by side from 1100 px of list, else the times under the photo and words; a long name wraps (`overflow-wrap: anywhere`, the computer's size from 26 to 40 px), times wrap onto a second row on a phone. `flow-tour.css`. Checked at 1440, 1100, 390 and 360 wide. - **R5-flow 3: a done step on the band reads and behaves as a link back to it.** Its pick is underlined at rest (thicker on hover), the keyboard focus draws a ring, and on a computer a small back chevron leads the step's name with a soft hover ground; still the band's ink, never the accent or the primary. `flow-chrome.css`; the steps were already buttons labelled "Go back to ...". #### Fixed - **R5-flow 4 and 5: the days that have passed come out of the trip, also while the page stays open (evolvefinale.com, 21 Oct).** A trip kept from an earlier visit, or a tab left open, still started on a gone day: When showed today with Full day and Half day gone while the trip said "4 days", the foot "3 full days" and the quote priced the gone day; a kept trip with yesterday made the quote answer 422 and the flow said "We could not price the trip just now" for ever. Now `withoutPassed` (`react/group/flow/wire.ts`) starts the trip on the first day the group can still ride (`firstOpenDay`: today while some of it is left, else tomorrow), takes out the days, seats, guide picks, requests and extra days before it, and keeps only what is left of today (a gone morning makes a full day the afternoon, so the counts, the lines and the price agree); a trip with no day left (all passed, or a one day trip whose part has passed) has no days and goes back to When, whatever the address says, and the first change there moves the address to When. GuestBookingFlow applies it while rendering (never while booking, on a held booking, paying or on Booked), the kept trip (`og-flow:`) forgets the days too, and one line says "We took out the days that have passed. Your trip starts on the first day you can still ride." (or, when only part of today has passed, "Part of today has passed, so today keeps only what is left of it.") (`stitch_days_passed`, four languages). The shop's clock now moves while the page is open (`useOpenClock` in `kept.ts`: useSyncExternalStore, every 30 seconds and when the tab comes back), and the shop's today follows it past midnight (`todayOf`: the read's today, or the clock's when it is one day on). A quote the API refuses as unreadable (422 `invalid_request`, a passed day or a gone half day) reads the site and the calendars again (`useQuote`). Tests in `tests/booking-flow-wire.test.mjs` and `tests/booking-flow-guest-flow.test.mjs`; gallery state `passed`. - **R5-flow 6: Book it never waits without a word.** On Plan, with no price Book it was greyed out and nothing said why (a quote that failed, a trip the shop refused, nothing to book). `PlanStep` takes `noPrice` (additive) and says it where the price goes and beside Book it: "The price did not load, so Book it waits. Try again above." (with Try again at the top), "The shop cannot take this trip online. Call the shop and they book it for you.", "Nothing to book yet. Pick a bike or a tour first." ("Pick a bike first." at a shop with no tours) (`stitch_no_price_failed`, `stitch_no_price_refused`, `stitch_no_price_empty`, `stitch_no_price_empty_tour`, `stitch_today_passed`, four languages). Test in `tests/booking-flow-guest-flow.test.mjs`. - **R5-flow 7: a booking the API refuses says why, and a size that filled while booking shows its ways out (evolvefinale.com, 21 Oct, deposits on).** A book refused with 409 reached the page as `{"code":null,"reason":null}`: the API's booking refusals (`lines_unavailable`, `quote_refused`, `payment_account_missing`, `promo_refused`) name themselves `error`, which neither the route (`next/flow.ts` `refusal`) nor the client (`core/client.ts`) read, so the flow said "We could not book this" where it should show the decision card. Both now read a booking refusal (`ok: false`) by its `error`, before `code` (a promo refusal's `code` is the guest's own promo code, never passed as the refusal), other refusals by `code` and `detail.code` as before; a `lines_unavailable` refusal keeps its own fields through the route (`error`, `lines` with only the fields the flow reads, `can_ask`, `can_save`: option ids, dates and free counts, nothing about the guest), and `BookingCallError` carries it as `body` (additive; the flow's `refusalOfError` reads it). Seen with one AMPD M on 30 Oct: the size was full. Tests in `tests/booking-elements-route.test.mjs` and `tests/booking-elements-core.test.mjs`. - **R4-desk: "Not booked yet" waits for the read that settles a refused departure (R3-flow review).** When a booking was refused because its departure closed or filled, the flow reads the shop again to take the seat out; an error left from an earlier read made it say "Not booked yet" while that read was still on its way. It now says so only once the read made after the refusal has failed (`refusalUnsettled` in `react/group/flow/wire.ts`, used by `GuestBookingFlow`). Test in `tests/booking-flow-wire.test.mjs`. ##### Downstream migration No API change needed. Hosts that draw `GuestBookingFlow` change nothing; a trip that rents now passes a Tour step (No picked, one tap) and no trip panel shows beside the steps. **Evolve:** its own clearing of a kept trip's past days (`features/booking/v2/keptPicks.ts`, "We cleared the days that have passed.") is now the package's; take it out with the repin (evolve-frontend `fix/r5-flow`) or the guest can see both lines. A host that draws `PlanStep` itself may pass `noPrice`. Rollback is the exact pin `0.3.2`. ### [0.3.2] - 2026-10-21 #### Fixed - **R3-small: the When calendar's key for one person no longer reads "Bikes for all 1" (evolvefinale.com retest, 21 Oct).** `WhenKey` with one rider says "Bikes free" (new word `when_key_one`: "\{Items\} free", "\{Items\} disponibili", "\{Items\} frei", "\{Items\} disponibles") and "Full or closed"; "Not for all" cannot happen for one and is left out. A group keeps "Bikes for all 5" and "Not for all 5" (the count is the group's size). The day buttons' labels are unchanged. Test in `tests/booking-elements-when.test.mjs`. - **Every rider is booked again, also one no line names (R3-flow, evolvefinale.com retest 21 Oct).** 0.3.1 left a rider who rides on no line (their own bike on a trip of rentals) out of the booking, so the shop never got their details. `groupBookingOf` sends every rider as a person again; the API (outdoor-grid-api `R3-flow`, migration `20261119560010_lineless_riders.sql`) books them as one of the group on no line and saves them on the shop's record with their height, weight, level and own bike. Test in `tests/booking-flow-group-request.test.mjs`. - **A kept trip's tour that can no longer be booked comes out, and the guest is told (R3-flow).** A trip kept in the browser (`og-flow:`) held a tour departure whose online booking had closed; the quote answered 409 `departure_closed` and the flow said the price did not load, for ever. GuestBookingFlow now takes such a seat out of the trip, once, and the kept trip forgets it (`goneServicesOf`, `departureGoneOf` in `react/group/flow/wire.ts`): a departure on the trip's days that the current availability read no longer lists (the read lists only departures open for booking, so a kept trip's closed or past departure goes on restore). A departure the quote or the booking refuses with `departure_closed` or `departure_full` (the public SQLSTATE map's OG102 and OG101) makes the shop's read stale: `useQuote` and the booking read it again, and the seat is chosen only on that newer read (the one it no longer lists; for full, the first with fewer places than its riders; else the trip's first departure). Never while booking, paying or on Booked. The Tour step opens, as long as the address stays where it was, with one line per seat: "The \{tour\} on \{day\} can no longer be booked. Pick another day.", or "The tour on \{day\} ..." when the read no longer names the tour (`stitch_departure_gone`, `stitch_departure_gone_day`, en, it, de and fr). Tests in `tests/booking-flow-wire.test.mjs` and `tests/booking-flow-guest-flow.test.mjs`. - **A kept trip reopened on Plan whose size is now full shows its ways out (R3-flow).** Reopened straight on `?step=plan`, a quote answering `lines_unavailable` left Plan on "Working out the price" and "Checking bikes, sizes and seats" for ever. PlanStep now opens who books it with the decision card at once (the neighbour size first, ask the shop, save), once per refusal, as when a booking is refused, and the total says "Choose how to go on to see the price" (`plan_no_price`, four languages; `PlanDue.waiting`, `PlanCostsProps.waiting`). Tests in `tests/booking-flow-react-plan.test.mjs` and `tests/booking-flow-guest-flow.test.mjs`. - **No raw product id while the shop's read loads (R3-flow).** After a reload the step bar and the Plan rows showed "3f907eda-..." for a moment. `namesOf` answers `NAME_PENDING` ("…") for an id the reads do not name yet. Test in `tests/booking-flow-wire.test.mjs`. ##### Downstream migration Release the API first: outdoor-grid-api with `R3-flow` (`20261119560010_lineless_riders.sql` applied) must be live before a host takes this version, because the API before it refuses a booking with a rider no line names (422), which this version sends again. Hosts change nothing else. Rollback is the exact pin `0.3.1`. ### [0.3.1] - 2026-10-21 #### Fixed - **A trip with a rider on their own bike and rentals only books again (evolvefinale.com retest, 21 Oct).** `groupBookingOf` sent every rider as a person, and the API books a person only on a line that names them, so a group where one rider brings their own bike and nobody takes a tour was refused whole (422, "Something went wrong and nothing was booked"). People no line names stay out of the booking for now; the API will keep such a rider on the booking next. No API or host change. Test in `tests/booking-flow-group-request.test.mjs`. ### [0.3.0] - 2026-10-21 #### Added - **The flow has a complete look under any theme (Evolve test run H1).** A host that set only some tokens (the hosted page sets the accent) drew cards, fields and sheets with no background or border. New `DEFAULT_THEME` (every `BookingTheme` token: warm light ground, never white, the yellow primary with a dark press, statuses green, orange and teal) and `themePropertiesCss`; `/styles.css` imports the new `theme-defaults.css`, which registers each `--og-*` token with `@property` and the default as its initial value, so anything a site sets, inline or in its own CSS on a parent, wins. `surface-2` and `radius-sm` stay unregistered (`UNREGISTERED_TOKENS`: a part falls back from them to `surface` and `radius`), and the default radii are the parts' own fallbacks (14, 18, 12 px). Tests in `tests/booking-elements-package.test.mjs`. ##### Downstream migration A site that sets every token (Evolve, `missingTokens(theme)` empty) sees no change. A site that leaves a token out now draws the default for it, not the part's own fallback or the page's font: a host that left out `font-body`, `font-head` or `btn-font` showed its own page font and now draws the default system font, and `font-head` no longer falls back to `font-body` (set all three). Check with `missingTokens` and set what is missing. Rollback is the exact pin `0.2.6`. #### Fixed - **A rental sized at the counter books online (QA Test Bike Shop run, 4.02).** A rental whose one option has no size (the shop fits the rider at pick up, as Outdoor Grid's Add equipment made them) left every rider on Bikes with "Pick a size for ..." and no size to pick, so no guest could book. Each rider on it now gets that option (on the model and on Any that fits, where a kids' bike is never handed out that way: `BikePoolModel.kids`), the bikes placed before counting, else it is short as any size is (`picksOn`, new `counterOptionsOf` in `react/bikes/view.ts`). - **A kit item's rental is offered on Kit, not Bikes (4.02b).** The rail listed the shop's rented helmet beside the bikes. GuestBookingFlow now hands Bikes `bikeProductsOf(read.products, read.kit)`: no product a kit item rents (the Kit step offers it in each rider's size); one no kit item rents stays, so it can still be booked; a shop that rents only kit keeps them all (`react/group/flow/wire.ts`). - **A rider on their own bike rides on the Plan (4.06).** The timeline and the day list read "not riding" on every day for an own-bike rider. `planOfGroup` gives them a bar of their own on their days that nothing else holds (`PlanLook.ownBike`, the words' "Own bike"; `PlanBlock.own`, never the bike under their name). - **A rider who brings their own bike keeps their height and weight (E2).** Seen on evolvefinale.com: a rider marked "Brings own bike" typed 165 cm and 60 kg, and the booking stored neither, because `personOf` (`core/group/request.ts`) dropped both for own-bike riders. They are now sent like any rider's, so the shop keeps them on the rider's record for the next booking (the API already stores them). Tests in `tests/booking-flow-group-request.test.mjs`. - **A phone asks and shows an own-bike rider's height and weight (E2).** The rider sheet on a phone (`RiderSheet`) hid both for a rider who brings their own bike, while the computer's bib (`RiderBib`) asked them, so a guest on a phone could not enter what the booking now sends. The sheet now asks height and weight for every rider, and the phone row (`RiderRow`) and the saved riders card (`savedFit`, `SavedRiders`) show them after "own bike" ("own bike · 168 cm · 60 kg · some experience"); with no measures they read as before. `row_level_only` is no longer used by the package (kept in the words for now). The style guide's Who and no-any bike fixtures keep an own-bike rider's measures too. Tests in `tests/booking-elements-guest-who.test.mjs`, `tests/booking-elements-guest-signin.test.mjs` and `tests/booking-flow-group-request.test.mjs` (`groupBookingOf` and `savedTripOf` people). - **A quote that fails can be tried again (E1).** Seen on evolvefinale.com: when a call to the API dropped, the flow said "We could not price the trip just now" and gave the guest no way on. The message now has a **Try again** button (secondary, busy while it asks) that asks for the same quote again (`quoted.refetch()`); it uses the existing `stitch_retry` word, already in en, it, de and fr. Test in `tests/booking-flow-guest-flow.test.mjs`. - **Plan on a phone lists the rented bike beside the tour (E7a).** On a tour day the phone's day list read only the tour ("All 5 · Classic tour"), so a rider's rental bike, priced in the total, was missing from the plan. Each line now names everything the riders have that day, a bike by its model and the tour by its name ("Marco, Giulia · AMPD + Classic tour"), riders who do the same thing still on one line; the tour leads the line's icon and gives the times. The computer's timeline already showed both. `planDays` (`/core`); riders who rent different models no longer share a tour day's line, so the change sheet's "same day" riders (`likeRiders`) follow the same reading. Tests in `tests/booking-elements-plan.test.mjs`, `tests/booking-elements-react-plan.test.mjs`, `tests/booking-flow-react-plan.test.mjs`. - **A signed out guest's `me` is no longer a 404 on every visit (E7b).** The route (`createFlowRoute`, `/next`) answers `me` with no guest session as 204 with no body and asks the API nothing (it clears a malformed session cookie as before); `people`, `again` and `link` without a session stay 404 `session_unavailable`, and a session the API no longer knows is still a 404 that clears the cookie. `GuestBookingFlow` reads an empty answer as signed out: the guest is signed in only when `me` answers a guest, and the sign in handler and the saved riders read `people` null safely, so a 204 can never crash them. **Small break:** the `me` answer is typed `GuestPage | null` (`BookingAnswers`, `/core`). Tests in `tests/booking-elements-route-session.test.mjs`, `tests/site-flow-bff.test.mjs`, `tests/booking-flow-guest-flow.test.mjs`. #### Downstream migration - **Evolve** (draws `GuestBookingFlow`, serves the route with `createBookingRoute`): no code change; repin and the signed out `me` call answers 204. Rollback: the previous exact pin. - **A host that reads `useGuestMe`, `guestMeQuery` or `client.me` itself:** a signed out guest now resolves `{ data: null }` instead of rejecting with a 404. Read `answer.data?.guest` (null is signed out). The hosted app (`outdoor-grid-frontend`) does not read them. ### [0.2.6] - 2026-10-20 The running short card Oliver asked for while testing evolvefinale.com. Pre-1.0 PATCH with small breaks, all inside the package's own parts: Evolve draws `GuestBookingFlow` and needs no code change; a host that draws `RunningShort` itself passes `days` (was `day` and `period`) and `onRequest`, and drops `change`; a host that builds a `GroupState` literal adds `request: false`. Rollback is the exact pin `0.2.5`. #### Changed - **Running short: two ways, the whole way is the press, saving is a link.** Seen on evolvefinale.com: the suggested way was drawn as already picked, so its hover showed nothing and its radio never filled, and four cards were too many choices. Now it is one decision for the whole trip, never one per day: "We have 3 of your 4 bikes." with the short days as a detail ("1 bike is not free on Sun 25."); **breaking:** `GroupState` has a new required field `request` (a host or test that builds a `GroupState` literal adds `request: false`); `day` and `period` are replaced by `days` (the short dates), `free` and `of` count the trip's bikes (`shortOfRefusal` returns `{ days, free, of }`), words `short_title`, `short_title_none`, `short_days_one`, `short_days`, `short_and` replace `short_title_one`, `short_day_morning`, `short_day_afternoon`. The card has two ways, both when the shop takes asks: **"Book the 3 free bikes now"** (the rest on the waitlist: asked lines as before, nothing to pay for them until the shop finds them) and **"Send the request to the shop"** (new, `onRequest`, `ShortWay` `"request"`: the refused lines asked and the trip sent as a request, nothing paid now, the shop confirms it all). Saving the trip is a quiet link under them ("Or save the trip and finish later"), never a card. **Breaking:** the change of days way is gone (`change` prop and type `ShortDayChange` removed, `ShortWay` is `"ask" | "request" | "save"`, `shortChoices` takes `{ ask, request }`); no consumer passed it. No way is lit until the guest presses one (`GuestBookingFlow` passes `picked`), and hover lifts the whole card onto `--og-surface-2` with a `--og-text-2` border (no motion with reduced motion). New state `request` and event `{ type: "request", on }` (`/core`), `requestedOf`; `groupBasketOf` sends `mode: "request"` and no payment choice while a rental is asked; the flag clears itself when the last ask goes (`reduceGroup`), and a saved trip sent as a request opens as one again (`groupFromSavedTrip`); a request has no Pay step (`groupSteps`); `GroupEvent` has a new variant `request` and `refusalAskEvents` now ends with `{ type: "request", on: false }`; a pick belongs to the refusal it was made on, so a new shortage opens with nothing lit; one rider reads "Your bike is not free." (`short_title_none_one`, `short_ask_text_none_one`); `refusalRequestEvents` (`/react`). Plan says "Send to the shop" and "Nothing to pay now. The shop confirms your trip, then tells you how to pay."; its toast no longer says everything is free while a bike waits; Booked on a request (`stage` `request`) says "Sent to the shop" and that nothing is booked or paid yet. Asked bikes read "on the waitlist" on the ask card, Plan's receipt and Booked. Words in en, it, de, fr: new `short_ask_left_one`, `short_ask_text_one`, `short_ask_text_none`, `short_request`, `short_request_text`, `short_save_link`, `short_save_only`, `plan_send`, `plan_pay_request`, `plan_pay_request_short`, `plan_toast_waitlist`, `done_title_request`, `done_title_request_plain`, `done_lead_request`; changed `short_ask`, `short_ask_none`, `short_ask_text`, `part_ask_with`, `part_ask_free`, `asked_asked`, `asked_note`, `done_lead_asked*`, `plan_asked_line`; removed `short_ask_one`, `short_later`, `short_change`, `short_save`, `short_save_text`. Tests in `tests/booking-elements-react-short.test.mjs`, `tests/booking-flow-group-request.test.mjs`, `tests/booking-elements-react-booked.test.mjs`. ### [0.2.5] - 2026-10-20 #### Fixed - **Plan: a size that is short on the change sheet no longer loses the change or loops.** Seen on evolvefinale.com: Lena and Tom moved to Tue and Thu mornings, the check said "No Pivot Shuttle LT in S on Tue, Wed, Thu and Fri morning" and "Use the ... in M" swapped the size and closed the sheet without the mornings. Now the clash names only the days asked ("No LT in S on Tue and Thu morning."); riders short of the same size are one clash, and its way takes them all; taking it sends the change and the size together (`PlanStep` and `ChangeSheet` call `onWay(way, change)` with the change's events; the flow sends `planWayEventsOf(state, way, change)`, new in `/react`); a way to the very size that is short is never offered (`planWaysOut`), and "Keep" is never the suggested way; a sheet that changes nothing shows no clash (the trip's own refusal is who books it's decision card); Book it is no longer greyed out on a trip refused as it stands, it opens who books it with the ways out; a way never gives a rider a bike on a day they do not ride (`wayEventsOf`). New pure `sheetClashOf`, `sheetApplyOf` (`group/steps/plan/clash.ts`). No new words. Additive: a page that draws `PlanStep` or `ChangeSheet` itself and passes `onWay` should send the second argument's events with the way (`planWayEventsOf`); one that ignores it behaves as 0.2.4. Tests in `tests/booking-flow-react-plan.test.mjs`. - **Bikes: the group can split from one bike.** With everyone on one bike, tapping another bike's card moves the whole group (kept), and a name under "Who rides the X?" that is already on that bike now goes back to the bike the group just came from, so Lena and Tom ride the Shuttle LT while Marco and Giulia keep the Firebird in two taps. Before, that name did nothing and the only way back moved everyone again. A name on another bike still moves onto the bike in view; once the riders are split a card only shows its bike; the rail's cards name who rides each. `WhoRides` and `BikesView` take `back` (the model to go back to) and `WhoRides`'s `onMove` now gets the model too; new pure `bikeWhoTapTo` (`/react`), `bikesPickEvents`, `bikesBackOf`, type `BikeMove`; word `bikes_move_back` in en, it, de, fr ("Tap a name to put them back on the \{model\}", shown on a computer and a phone). Additive. Tests in `tests/booking-elements-bikes.test.mjs`. #### Changed - **A bike reads as the guest says it, not as the shop's product name.** The stepper band, the plan bars, the plan's rider line and Booked showed "Pivot Shuttle AMPD e-bike rental" and "Pivot Firebird rental M". They now say the model ("Firebird"; the site's own name in `looks.bikes[id].name` wins), else the product name without a trailing " rental" / " e-bike rental" (and a size after it), and the plan adds the size: "Firebird, M". The band says "Firebird" for one model and "3 bikes" for two or more (new word `band_sum_bikes` in en, it, de, fr). `namesOf` takes the looks' bikes as a last argument (`GuestBookingFlow` passes `looks.bikes`); new pure `bikeNameOf`, `plainBikeName` in `/react`. The Bikes rail still shows the product's name with its model above it. Additive. Tests in `tests/booking-flow-wire.test.mjs`, `tests/booking-flow-react-plan.test.mjs`. ### [0.2.4] - 2026-10-20 Three changes Oliver asked for while testing evolvefinale.com. Pre-1.0 PATCH, additive: nothing to change downstream; Evolve passes `anyThatFits={false}` (and `kitIncluded` if it includes protection) to `GuestBookingFlow`. A page that draws `DayHalves` or `WhenDays` itself should pass the new `onPart`. Rollback is the exact pin `0.2.3`. #### Changed - **When: each day is one choice, Full day or Half day.** "Your days" (computer), the phone's days sheet and a one-day trip's choice under the calendar no longer show two Morning and Afternoon tiles both on: a day is "Full day" (the default) or "Half day", and a half day is the morning, with a small Morning | Afternoon under it only while Half day is on (one tap to the afternoon; part `when-half-pick`, the pick in `--og-pick`). Same data underneath (`parts`: absent full, `morning`, `afternoon`). Today after lunch: Full day says gone, Half day takes the afternoon from the earliest pick up, Morning shows gone. A day the shop does not split keeps its one whole-day block. `DayHalves` and `WhenDays` take `onPart` (WhenStep passes it; a page that passes only `onToggle` gets one call per half that switches, two for Morning to Afternoon, so it must apply them on top of each other: pass `onPart`); new pure `dayChoiceOf`, `setDayLength`, `setDayHalf`, `halfSteps`, types `DayChoice`, `DayLength`, `DayPick`; `toggleHalf`, `toggleDay` unchanged. Words `when_half_day`, `when_half_pick` and new `when_tip`, `when_sheet_line` in en, it, de, fr. Additive. Tests in `tests/booking-elements-when.test.mjs`; gallery `when-half-afternoon` and the When frames. - **A shop or site can turn off "Any that fits" on Bikes.** `GuestBookingFlow` and `BikesStep` take `anyThatFits` (true when left out; Evolve passes false). Off: no Any card in the rail; the group starts on the first model with a fitting size free on every rider's days (by height, else any size free; none fits all: the first model), so the panel shows that bike's build straight away; Next writes the bike for the riders still on no product (`bike` for the whole group, or with `riders`), a size already tapped again, then the sizes as before. Nothing is written during render. The 0.2.3 rule stays: a rider whose size is gone keeps Next on Bikes, and with Any off the reason says "Pick another size or another bike." (`bikes_size_gone_next_model` in en, it, de, fr). New pure `firstFittingBike` (`/react`), `sizeGoneSaid`; `bikesFromGroup` takes `anyThatFits`. Additive. Tests in `tests/booking-elements-bikes.test.mjs`; gallery `bikes-no-any`, `bikes-phone-no-any`. - **The stepper band says what a skipped step means, and a step not picked can be added from it.** Tour, when only Rent a bike was picked, says "Add a tour"; Bikes, when only a tour, says "Add bikes" (the shop's word for its bikes; not when every rider brings their own bike). Tapping it, on a computer or a phone, adds that activity to the trip (the What pick of the shop's first card of that kind) and opens the step: back to it when the guest is past it, on through the steps between once the trip is past When (stopping where Next would wait), and on What, Who and When it is only added. Kit skipped says "included" when the shop includes protection (GuestBookingFlow's new `kitIncluded`, false when left out) and "nothing to rent" otherwise; Pay skipped says "at the shop". `BandStep` takes `add` and `note`, `StepperBand` takes `onAdd` (part `band-add`); new pure `addableStepsOf`, `addStepEventsOf`, `bandStepsOf` options `addable`, `itemsWord`, `kitIncluded`; words `band_sum_add_tour`, `band_sum_add_bikes`, `band_sum_kit_included` in en, it, de, fr. Additive. Tests in `tests/booking-elements-guest-chrome.test.mjs`, `tests/booking-flow-wire.test.mjs`; gallery `what-blocks-band-add`. ### [0.2.3] - 2026-10-20 #### Fixed - **Bikes no longer lets a guest on with a size that is gone.** A rider whose size on their bike has no bike left on one of their days (the size chip says the days out) kept Next working, and the plan then waited on a booking it could not make, with Book it greyed out. Next now stays on Bikes, says "No bike left in that size for Oliver on your days. Pick another size, or Any that fits." beside it and brings the guest to that rider's sizes (`ridersOutOfSize` in `group/steps/bikes/BikesStep.tsx`, words `bikes_size_gone_next` in en, it, de, fr). Seen on evolvefinale.com: a 185 cm rider on the Shuttle AMPD in L, Wed 21 to Sat 24, while the Shuttle LT had an L free. - **A rider who brings their own bike keeps height and weight on Who.** The bib hid both once Brings own bike was on; protection and the guide still size by them (`guest/RiderBib.tsx`). ### [0.2.2] - 2026-10-20 Fixes the Bikes step for a shop that asks the guest for the size, which kept the new flow off Evolve's site, and makes every step's Next that waits say why. Pre-1.0 PATCH, additive: nothing to change downstream (a site that styles the foot may want `.og-foot-why`, the reason beside Next on every width); rollback is the exact pin `0.2.1`. - `/react` Bikes for a shop that asks the guest for the size (W7-06 `pick_size`, as Evolve's read answers it: no catalog `fit`, options with only `size_label`, size charts with no heights). Before, the stage showed no size, Next waited on `pick_size` without a word and the quote held no bike line. Now each rider on the model in view gets its sizes as small chips right under who rides it (`RiderSizePicks`, part `bike-pick-size`; the pick in `--og-pick`, olive on Evolve), with the heights a size is for when the shop's chart says them; a size with no bike left on the rider's days, after the other riders' sizes, is off and says the days. With a height and a fit or chart heights the size is already picked and a tap changes it. A model with one size gives it. Next that waits says why beside it ("Pick a size for Marco, Giulia.", role alert), rings each rider it waits on and brings the guest to the first one (shows their model, scrolls to and focuses their sizes). Any that fits pools every product, so a size picked on it books any model free in that size (the API books a rental by its option; a rental with no option is refused `option_required`). New: `/core` `bikeChartOf`, `chartRangesOf`, `sortSizeLabels`, `takeBike`, `BikeSizeHint`, `BikeChart` (`placeAnyBikeSizes` keeps a hand pick on a product with no fit ranges); `/react` `RiderSizePicks`, `bikeSizeChipsOf`, `bikesShowSizePicks`, `bikeSizeHintOf`, `bikeFitOfProduct` (a product's fit, with ranges from its chart's heights), `chartOfProduct` (the chart of the part the guest sizes, matched to its options' sizes, never a helmet's), `BikeModelView` `pickSize`, `hints`, `sizeOrder`, `BikesView` and `BikesStep` `problem` (and `missing` on `BikesView`), words `bikes_sizes_lead`, `bikes_sizes_any`, `bikes_size_for`, `bikes_size_wait`, `bikes_size_range`, `bikes_size_from`, `bikes_size_upto` in en, it, de and fr (a shop rewords them through the provider's `words`). Additive. Tests `tests/booking-elements-pick-size.test.mjs`. - `/react` GuestBookingFlow: every step's Next that waits says why beside it, on a computer and a phone (role alert, in `--og-bad` ink), and brings the guest to what is missing (scrolled into view and focused, the part marked `data-og-missing="on"`; `bringToMissing`, `missingPart`, `missingControl` in `group/flow/missing.ts`, run from the click, never an Effect). What marks its cards; When the calendar (no days) or the days (nobody rides); Kit the must item's cell or the rider's row; Tour no longer disables Next: pressing it says what is missing (nothing picked, nobody going, too few seats, a request still open; `TourStep` `tried`); Plan names the first field to fix right above Book (`whoBooksFirst`, `whoBooksWhy`, `PlanBoard` `why`, `Field` `missing`); Pay brings a failed pay at the shop into view. `StepFoot` takes `why` (shown on every width; `note` stays the phone's plain note), and the Bikes reason reads the same. New words `stitch_problem_email_bad`, `stitch_problem_name_long`, `stitch_problem_phone`, `stitch_problem_password`, `stitch_problem_terms`, `stitch_problem_tour_who`, `stitch_problem_tour_seats`, `stitch_problem_tour_ask` in en, it, de, fr. Additive. Tests `tests/booking-flow-next-waits.test.mjs`. - `/core` API types regenerated from outdoor-grid-api dev: `SiteBrand` gains the optional `band`, `band_ink` and `pick_ring` (the shop's stepper band, its text and the selection ring; null or absent: the package's own), and `SiteContrast` their checks (`band_ink_ratio`, `band_text_ok`, `pick_ring_ratio`, `pick_ring_ok`). Additive, no code change. ### [0.2.1] - 2026-10-19 Fixes from Evolve's wiring of 0.2.0 into its site. Pre-1.0 PATCH, additive: nothing to change downstream; rollback is the exact pin `0.2.0`. - `/react` Bikes on a computer: the stage takes at least 60% of the row (`.og-bk-body`'s panel is 540px at most and 40% of the row), and GuestBookingFlow runs the Bikes step edge to edge from 1024px through FlowFrame's new `bleed` (no page margins, no trip beside it: the panel carries the total; what sits above the step keeps the margins; `data-og-bleed="on"`), so the stage is 900 of 1440 as on the canvas (Bikes 5A). The panel cap applies to every BikesView on a computer, so a standalone Bikes element's panel is a little narrower from 1024 to 1440. The phone is unchanged. - `/react` words: the stepper band's summary words are lines like every other (`words/band.ts`, `band_sum_*` in en, it, de and fr), so a shop rewords them through the provider's `words`; GuestBookingFlow reads them through the new `bandWordsOf` (where a step stands stays StepperBand's `band_now`, `band_next`, `band_then`, `band_skipped`), and `StepperWordsOptions` takes `words`. `FLOW_SUMMARY_WORDS` keeps its shape and values. A shuttle What card says a shuttle day (`stitch_shuttle_name`, `_line`, `_short`, `_phrase`, en, it, de, fr) instead of a guided tour's words, rewordable the same way; a card's look still wins. Additive. - `/react` GuestBookingFlow: the Tour step lists only the tours of the kinds the picked What card books, so Guided tour lists the tours and Shuttle day the shuttles (both picked: both). `FlowActivityLook.tours` names a card's kinds (W7-06 `tours[].kind`); left out, a card keyed `shuttle` or `transfer` books shuttles and transfers and another tour card every kind no card claims; a tour the trip already holds stays listed. New pure `cardTourKindsOf`, `toursForCards`, `isShuttleCard`, `TOUR_KINDS`, `SHUTTLE_KINDS` (`wire.ts`). Additive. - `/react` GuestBookingFlow: on Booked the stepper band names the trip (bikes, tours) from the booking's own read (W7-09's view, each line's client key to the group's rental or seat) instead of the availability read Booked does not ask, so it no longer shows raw product ids. `namesOf` takes the booked trip as an optional fifth argument and `bookedNamesOf` is new (pure, `wire.ts`); Booked's reads live in `useBookedTrip`, held by the flow. - `/core` API types regenerated from outdoor-grid-api dev (`pnpm booking:generate`): `PublicFlowSettings` gains `answer_within_hours` and `answer_by_day_before` (A2a, the shop's answer time), `SiteKitItem` gains `product_id` (required, null when the item rents no catalog product), `RiderTripItem.status` gains `declined`, `expired` and `withdrawn` (A2b), and four paths say their real answers (the asked offer answer and withdraw, the held booking's pay at the shop and payment session: 409, 422, 503 in place of `not_built`). A fixture typed as `SiteKitItem` adds `product_id: null`. - `/react` `RiderTripPage`: a line the shop said no to, that ran out or that was withdrawn reads "Not booked" (`part_rider_not_booked` in en, it, de, fr); before, every line not booked read "With the shop". - The shop's answer time is live: the public read's `booking.flow` now carries `answer_within_hours` and `answer_by_day_before` (outdoor-grid-api's stitch, `site_read_flow`), so `/core` `shopAnswerOf` reads them and the Plan's asked bars and running short say "within 12 hours" or "by the day before" from the shop's own settings. An API before the stitch still reads as the neutral line. No API change. ### [0.2.0] , 2026-10-19 The guest booking flow as ONE working flow (the UI stitch). Pre-1.0 MINOR, additive for the Elements; the new flow is `GuestBookingFlow`. - `/react` `GuestBookingProvider` and `GuestBookingFlow`: every step (What, Who, When, Tour, Bikes, Kit and extras, Plan, Pay, Booked) mounted in E1's router on E2's chrome (`FlowFrame`: `ShopBar`, `StepperBand`, the step, `StepFoot`; the trip beside the step from 1024px and in a sheet on a phone), with running short, saving a trip, a held booking, the shop's offer and a rider's own trip page (`RiderTripPage`) on the way. Props: `router`, `door`, `bar`, `footer`, `looks` (the shop's own photos and words per activity, bike and tour), `links` (`#s=`, `#r=`, `#o=`), `loadStripe`, `termsHref`, `accountHref`, `onBooked`, `now`, `layout`, `returnBase`, and `start`, `booked`, `holding`, `remember` for tests and galleries. Cards take the shop's photos through props. The Plan quotes a pending change as a draft (`onDraft`, `draft`) with a real W7-07 call. - `/react` flow tokens `nav`, `on-nav`, `band`, `on-band`, `band-soft`, `band-mark`, `pick-ring` (on top of `bar`, `on-bar`, `pick`, `on-pick`, `pick-soft`, `bib`, `own`, `warn`), with `EVOLVE_FLOW_TOKENS` (olive pick `#49583c`, sage ring `#a3b78f`) and `FIRNFINK_FLOW_TOKENS`; the steps still ahead on the band are its ink at 60%, Firnfink's fix colour is amber. - `/hooks` the flow's own calls (`hooks/flow.ts`): a saved trip, a held booking, the shop's offer, a rider's own trip, sign in, the saved riders, pay at the shop and a payment session; one Idempotency-Key per guest action, never retried blind. - `/core` `payment.ts` (ways to pay, return polling, the trip day by day, `isKitLine` for kit the view sends as an `extra`), `fit.ts` (sizes from the riders' heights on the models free on their days, imperial units), `names.ts` (`cleanName`, `nameOr`: a guest's name in a title, trimmed and capped); `/react` words `stitch` (typed in en, it, de, fr). - `/next` `createFlowRoute` and the flow's operations with each call's one credential header (see the entries below). - Embedded Checkout: the site passes `loadStripe` from `@stripe/stripe-js` (an optional peer, `^10.1.0`); the package itself imports no Stripe code. - Early steps (What, Who, When, Tour): a shop's own photos win on choice cards and tour cards (`TourStep` `photos`, `tourPhotos`, `RidePhotos` with tappable photo dots on a phone, part `ride-photos`), and with no photo there is no photo block; a quiet empty tour day for shops that take no requests (`tour-empty` `sparse`); a weight or height typed with a decimal rounds to whole cm and kg, metric and imperial, with the decimal keypad on the bib and the rider sheet (`Field` `inputMode` takes `decimal`); guest names cleaned for titles and pills (`cleanName`, `nameOr`, `tidyName`, `NAME_MAX`); arrow keys, Home and End in the Tour day rail, the request chips, the photo dots and the When calendar (`rovingIndex`, `calendarDay`, `calendarLanding`); `whenFromGroup` and `whenToGroup` map the group's days to the When step. Words `tour_photos`, `tour_empty_sparse` in en, it, de, fr. Tests `tests/booking-elements-guest-{chrome,signin,who}.test.mjs`, `tests/booking-elements-when.test.mjs`, `tests/booking-elements-react-tour.test.mjs`. - `/next`: `createFlowRoute`, the booking route's core, which takes a host's own API call and a server secret for the capability; `createBookingRoute` runs on it with unchanged behaviour. The route keeps the guest session (`code-check`, `password`, `session` with the `#c=` confirm's password) in its own HttpOnly cookie `og_booking_session`, answers the page only the name, email and end time, and sends `X-Guest-Session` on `me`, `people`, `again`, `link`, `sign-out` and on `book` when signed in; `sign-out` and a 404 clear it. Every GBF token operation sends exactly one credential header (`credentialHeaders`, exported). `@stripe/stripe-js` is an optional peer dependency (the package keeps its own structural types). Tests `tests/booking-elements-route-session.test.mjs`, `tests/booking-elements-route.test.mjs`, `tests/booking-elements-flow-operations.test.mjs`. - `/core` `kit.ts`, the Kit and extras step's model (BUILD.md step 6, canvas page 6, phone 6A to 6E): `KitPlan` (per rider kit menu and cells: rent in a size, own, not needed, fitted at the shop; head size; extras with who and which days), `kitItemsOf`, `kitFor`, `kitSuggest`, `kitCell`, `kitPickMenu`, `kitFullForAll`, `kitSetCell`, `kitSetHead`, `kitProblems`, `kitWaysOut`, `kitTakeWayOut`, `kitToggleExtra`, `kitSetExtra`. Pure, no prices made: an item's day price is the read's, totals are the quote's. Additive. - `/react` `KitBoard`, the booking flow's step 6 (canvas page 6 Kit A to H, phone 6A to 6E), and its parts `KitBib`, `KitMenuPick`, `KitCircle`, `KitLegend`, `KitDecision`, `KitCost`, `KitExtras`, `KitCellSheet`, `KitRiderSheet`; `kitSummary`, `kitBand` and the other sayers (`react/kit/say.ts`), words `words/kit.ts` in en, it, de, fr. Computer: riders across with a kit menu each, items down, a circle per rider per item, the cell editor (rent, own, not needed, sizes with what is free, a helmet's head size, fitted at the shop), What it costs, Full kit for everyone, extras. Phone: a row per rider, their kit in a sheet, extras under the riders. A must left out is a decision card (a sheet on a phone) and Next waits. New parts `kit-step`, `kit-bib`, `kit-menu`, `kit-circle`, `kit-legend`, `kit-decision`, `kit-cost`, `kit-extras`, `kit-extra`, `kit-cell`, `kit-rider`. No theme token added. - Kit and extras on the group state (E1): the group step `KitStep` (react/group) draws the board (`KitBoard`, react/kit, controlled by a `KitPlan`) from the group state and sends what changed; `KitGrid`, `KitMenuPicker`, `KitSizeSheet` and `ExtrasList` are drawn. `/core` `kitRidersOf`, `kitPlanOf`, `kitEventsOf`, `kitItemInfo`; the board's menus are the group's `KitMenu` ("helmet" for the musts only). The group event `kit-menu` takes optional `choices` (the cells the step made, sizes from each rider's fit). The kit and extra lines are the group's (`groupLinesOf`). Additive over E1: `KitStepProps` gains optional `kindOf`, `kitTotal`, `defaultOpen`; `KitMenuPickerProps` optional `items`; `KitGridProps` optional `sizes`; `KitSizeSheetProps` optional `headCm`. - `/core` API types regenerated from the booking flow contract (outdoor-grid-api C0, `docs/booking-flow-contract.md` part B): `ProductFit` (build, geometry, fit ranges), per day `periods`, `morning` and `afternoon` free words, `neighbour_size` and `stand_in` alternatives. - `/core` `fit.ts`, the Bikes step's pure model: `bikeFitOf` (W7-06 `products[].fit`, read defensively), `motorOf`, `bestSizeFor`, `sizesFitting`, `fitScale`, `fitPercent`, `bikeFreeOn`, `bikeShortDays`, `placeBikeSizes` (each rider's size from their height and what is free on their days: the best size, else a size away the shop's fit ranges allow, else short), `bikeShortOf` (the `neighbour_size` and `stand_in` offers of a `lines_unavailable` refusal), `ridersByModel`, `bikeDayCounts`, `sameBikeDays`. - `/react` the Bikes step (canvas page 5 A to D, 6b A and B, phone 5A to 5E), both layouts (`side`, `stack`). E1's stubs in `react/group/steps/bikes` are filled: `BikesStep` on the group state (reads the riders, their days and main rentals; writes `bike` and `size`; Next writes the shown sizes, then `next` with the step's problem; `bikesFromGroup`, `bikesNextEvents`, `ANY_BIKE`, `BikeLook` for what the site adds per model: 3D stage, still, picture, day price), `BikeRail`, `BikeShowcase`, `SizeChart` (each rider on the height scale; riders take an optional `size`) and `BikeGeometry` (takes an optional `marked`). The step drawn from props is `BikesView`, with `BikeStage` (the shop's 3D bike in a slot, Pause / Turn), `ModelRail`, `WhoRides`, `BikeBuild` (the motor badge first), `RiderSizeRow`, `SizeAway`, `StandIn` and `bikeStandInOf` (a refusal's stand in as the decision card's ways on); the `bikes_*` words in en, it, de and fr; `.og-bk-*` styles on the theme tokens only. Additive. - `/react` the Plan step of the flow (E5a), E1's stubs filled: `PlanStep`, `PlanTimeline`, `PlanDayList`, `ChangeSheet`, `PlanReceipt`, `WhoBooks` and `AccountOffer` (react/group, parts `flow-plan`, `flow-timeline`, `flow-day-list`, `flow-change`, `flow-receipt`, `flow-who-books`, `flow-account`) on the group state: canvas page 7 A to F and phone 7A to 7C. A tap opens the change sheet (who, which days, when on the day, the bike, the quote's difference from the caller before Apply); Apply sends the change as `part` events and Undo sends them back with the seats it took; a refusal of the change is a clash with its ways out; Book it opens who books it (one Name over the lead's first and last name, the rider who books or someone else, the optional account, the rental terms ticked by the guest), then `onBook`; a refusal of the booking (`taken`) is the decision card there, its way through `onWay`. The receipt is the quote rider by rider, then shared, asked lines with no price. - `/react` the view Elements under it (react/plan): `PlanBoard`, `PlanGrid`, `PlanDays`, `PlanLegend`, `PlanSheet`, `PlanDecision`, `PlanCosts`, `WhoBooksForm`, `AccountBox` (parts `plan-board`, `plan-grid`, `plan-days`, `plan-legend`, `plan-sheet`, `plan-decision`, `plan-costs`, `who-books-form`): the trip as a timeline from 1024px and a day list below, one calm bar per rider per whole or half day with an icon per thing (bike, tour, shuttle), dashed when asked of the shop; the change sheet (a bottom sheet on a phone over the day being changed), a clash as a decision card (its ways as radios, the first suggested), Undo, who books it. Controlled on a `Plan`; money only from the quote; `icons` takes a shop's own icons; `clashTitle` and `takenTitle` say a clash in the guest's words. Words `plan_*` in en, it, de and fr; styles in `flow-plan.css` on the `--og-*` tokens and the flow's (a pick is `pick` with its `pick-ring`, a clash rings in `warn`, bibs in `bib` and `own`). - `/core` `plan.ts`: the Plan's pure model on the C0 contract (`planRows`, `barsOf`, `planDays`, `likeRiders`, `changeFor`, `toggleChip`, `toggleEveryone`, `partOf`, `changesPlan`, `applyChange`, `reducePlanEdit` with a `stamp` so Undo's timer settles only its own change, `planWaysOut`, `refusedLine`, `askFor`) and who books it (`WhoBooksValue`, `whoBooksProblems`, `leadOf` for W7-08 `lead`, `accountOf` for `account`), and the flow's group state as a plan (`planOfGroup` with a `PlanLook` of catalog words, `planEventsOf`, `planUndoOf`, `clashFor`). `PLAN_UNDO_MS` is the Plan's Undo time (the group's `UNDO_MS` is for removing a rider). Line keys stay: a change for some riders of a line moves them together onto `-` (`from` the old key), a change for all of them edits the line in place, and `askFor` asks only for the short riders and days (`-ask`), keys cut to the contract's 24. - `/react` the guest booking flow's Elements as typed stubs (`react/group`), one file each for jobs E2 to E5 (the frame, the decision card and rider chips; Bikes; Kit and extras; Plan; the asked line card, the asked offer, the rider's trip page; Pay, Booked, sharing, saving and running short are the real ones in `react/finish`; the chrome, What, sign in and Who are the real ones in `react/guest`, When and Tour in `react/when` and `react/tour`), each drawing its `og-flow-*` root; `StepRouter` with `flowRouter` and `routedPage`; the stepper band's words `stepperView` / `summaryWords` in en, it, de and fr; the flow's theme tokens (`FLOW_THEME_TOKENS`: bar, band, pick ring, bib, own, warn, each falling back to a BookingTheme token; selection stays `pick`), `flowThemeStyle`, Evolve's and Firnfink's flow tokens. `/styles.css` imports one `flow-*.css` per job (copied beside it in `dist/`). - `/core` the guest booking flow's group machine (`core/group`): `GroupState` (what, riders with name, height, weight, head, level, first time and own bike, units, the trip with same days or per rider day parts, rentals with asked lines, tour seats, guide picks, tour requests, kit per rider with the kit menu, extras, the lead, who books, payment, account, saved trip), `reduceGroup` with its events (`door`, `riders`, `remove-rider` with a 10 s undo, `saved-riders` for signed-in riders, `part`, `copy-days`, `bike`, `size`, `rental`, `ask`, `service`, `guide-pick`, `tour-request`, `kit`, `kit-menu`, `extra`, ...), `FLOW_STEPS` and `groupSteps`, `stepProblem`, the stepper summary model `stepperOf`, the request builders `groupBasketOf`, `groupBookingOf`, `savedTripOf` and back `groupFromSavedTrip`, the browser's picks `groupPicksOf` / `groupFromPicks` (no names or measures), `riderTotalsOf`, and metric / imperial helpers. Measures always go to the API in metric. A seat sits only on its riders' riding days (a seat on a day off the trip is refused; a part set off takes the rider off that day's seats); an extra for riders is one each; Next on Bikes waits for a size (`pick_size`). - `/core` the guest booking flow's public routes as operations (`FLOW_SITE_OPERATIONS`): `saved-trip-save`, `saved-trip`, `saved-trip-delete`, `held`, `asked-offer`, `asked-offer-answer`, `withdraw`, `share`, `rider-trip`, `code`, `code-check`, `password`, `payment-session`, `payment`, `pay-at-shop`. Tokens travel as headers (`X-Saved-Trip`, `X-Resume-Token`, `X-Offer-Token`, `X-Rider-Trip`), never in a path. `/next` `createBookingRoute` serves the token ones by default and the payment ones opt in (the capability cookie unless a resume or offer token names the booking; `asked-offer-answer` too, as it can answer a payment session); each flow write sends on only its contract's fields, never the browser's return address; a token call carries that one credential and no other; the email code and password sign in are not route operations (a guest session never reaches page JavaScript). - `/core` API types regenerated from the guest booking flow contract (outdoor-grid-api C0, `docs/booking-flow-contract.md` Part B): lines with riders, day sets and periods, kit, guide picks, tour requests and asked lines; the quote per rider and shared; saved trips, email codes, the embedded Checkout session, rider trip links. Additive: no schema or path removed. - E5b: the generated API types follow the guest booking flow contract (C0, outdoor-grid-api `docs/booking-flow-contract.md`). `/core` `payment.ts`, pure: the shop's ways to pay (`paymentWays`, `onlineWays`, `payStepSkipped`, `payChoiceShown`, `defaultWay`), the return page's polling of GBF-31 (`CHECKOUT_POLL`, `checkoutPollDelay`, `checkoutView`; it never trusts the URL), the trip day by day for Booked (`agendaOf`, `localDay`, `riderNames`), running short (`shortDays`, `shortWays`) and GBF-60's body (`tripShareBody`, `isEmail`), with the contract's answer types (`CheckoutSession`, `CheckoutState`, `HeldTripAnswer`, `SavedTripAnswer`, `TripSharedAnswer`, `AskedLineView`, `FlowBookingView`, `LinesUnavailable`). Words for paying, Booked, sharing, running short and coming back (`words/checkout.ts`, `booked.ts`, `short.ts`) in en, it, de and fr. Additive. - E5b `/react` running short and coming back (Short C, Pay F): `RunningShort` (the short day and the ways on: book what is free and ask the shop, save the trip, the host's change; the first allowed one suggested in the pick colours), `SaveTripSheet` (GBF-10 by email, `saveTripStep`), `TripWaiting` (a held trip from the payment email or a saved trip, `waitingOfHeld`, `waitingOfSaved`) and `TripGone`. Helpers named `ShortDayChange`, `shortDayLabel` and `bookedWeekday` so they never clash with the When step's. - E5b `/react` Booked (Plan G, Pay E, Short D, phone 8B): `Booked` with the status line (paid and booked, the reference), "See you Tuesday, Marco", the ticket (first pick up, Directions, Add to calendar, only through `safeHref`), `TripAgenda` (the trip day by day in plain sentences, `agendaSentence`), the asked lines with their badges, and `ShareTrip` (send the trip to the group: an email per rider, GBF-60 once per press, then a link to copy per rider; never the booker's payment or contact details). - E5b `/react` Pay online (Pay A to D, phone 8A): `PayChoice` and `PayAside` (only the shop's ways; full only draws no choice), `PayCheckout` (the trip beside Stripe's own form; declined adds "Your trip is kept, held until"), `StripeCheckout` (Stripe embedded Checkout mounted through a ref callback, loading and did not open; the package has no Stripe dependency: the site passes `loadStripe` from `@stripe/stripe-js`, and both `createEmbeddedCheckoutPage` and the older `initEmbeddedCheckout` are taken) and `PaymentReturn` (checking, still waiting, declined, hold ran out). `/hooks` `useCheckoutState` polls GBF-31 every 2 s for a minute, never trusting the URL, and stops at once on a 401, 403 or 404 (`refusedForGood`). `shortDays` carries the API's free words per day, in the day's order; `ShareTrip` takes the shop's `timeZone`; a held trip shows the API's amount as it is; a tour's sentence on Booked drops the day its words repeat (`tourName`). - `/core` generated types regenerated from the booking flow contract (outdoor-grid-api C0, `docs/booking-flow-contract.md`): the public site read's `booking.flow` (`PublicFlowSettings`), `kit` (`SiteKitItem`) and the other C0 shapes. Types only, no runtime change. - `/core` generated types follow the guest booking flow contract (C0): `PublicFlowSettings`, `CodeSend`, `CodeCheck`, `PasswordSignIn`, `GuestSession`, saved riders with `own_bike` and `head_cm`. Additive. - `/react` the guest flow's chrome and first steps (`react/guest`, words `words/guest.ts` in en, it, de, fr): `ShopBar`, `StepperBand`, `StepFoot`, `ChoiceCard`, `WhatStep`, `whatSummary`, `whoSummary`; `SignInPrompt`, `SignInSheet` (email code or password; the site passes the GBF-20 to GBF-22 calls), `signInReducer` and its helpers, `SavedRiders`; `WhoStep`, `RiderBib`, `RiderRow`, `RiderSheet`, `LevelPick`, `UnitsSwitch`, `Toggle`. New parts `shop-bar`, `band`, `foot`, `choice`, `what`, `sign-in-prompt`, `sign-in`, `saved-riders`, `who`, `bib`, `rider-row`, `rider-sheet`, `level`, `units`, `toggle`. - `LevelWord.tip` (optional): what a level means, shown as its tip; the package's bike levels carry one. - Units: heights and weights stay in cm and kg; `heightText`, `weightText`, `heightInput`, `weightInput`, `parseHeight`, `parseWeight`, `otherUnits`. `useUnits` remembers metric or imperial per browser in localStorage (`og-booking-units`, a device setting, never personal data). - Additive: no export removed or renamed, no theme token added; no migration. - `/react` `TourStep`, the booking flow's step 4 (canvas page 4 Tour, phone 4A to 4E), and its parts `TourDayRail`, `GuidePick`, `TourCard`, `WhoGoes`, `SeatDecision`, `TourDayEmpty`, `TourAsk`, `RideSheet`, `TourFoot`: photo rows with the kinds of riding and a level meter, real times grouped with others and just your group, See the ride from the catalog, Let the guide pick, Who goes, the not enough seats decision card (a sheet on a phone), a day with nothing left, and private and new group requests. Controlled on a `TourChoice`; prices only from the read's `price_minor`. Words `tour_*` in en, it, de and fr; styles under `og-tour*` on the `--og-*` tokens only. - `/core` `tour.ts`: the Tour step's pure model on the C0 contract (`tourRows`, `tourDays`, `waysOut`, `seatShort`, `toggleRider`, `tourReady`, `tourFlowOf`) and `tourLineOf`, which builds the `tour_seat`, `guide_pick` and `tour_request` line with key, riders, days, bikes and note. - API types regenerated from the C0 contract (`openapi/public.json`, `src/core/generated`). Additive: no change to an existing export. - E3a: the API types regenerated from the C0 booking flow contract (outdoor-grid-api `contracts/openapi.json`): `booking.rental_periods`, `booking.flow`, the per day `periods`, `morning` and `afternoon` free words on W7-06 and W7-20, and the rest of Part B. Additive. - E3a: `/react` the When step of the booking flow (canvas page 3, phone 3A to 3E): `WhenStep`, `WhenCalendar`, `WhenKey`, `WhenDays`, `DayHalves`, `ShortDayCard`, the pure model (`pickDay`, `toggleHalf`, `partOf`, `shortDays`, `askFor`, `shortChange`, `applyChange`, `daySet`, `whenReady`, `freeByDay`, `shopClock`, `halfState`, `blockedDays`, `toggleDay`, `wholeDay`, and `whenContextOf` from W7-05's `booking` and W7-20's days) and the lines (`whenSummary`, `whenStepLine`, `whenLine`, `shortTitle`, `askLine`, `changeLine`). Words `when_*` in en, it, de and fr; styles under `og-when-*`, read only from the theme tokens. Additive. #### Downstream migration - Evolve and the hosted page: pin `0.2.0` exactly, in its own reviewed change, with the previous pin as the rollback. To book on the new flow draw `GuestBookingFlow` inside `GuestBookingProvider` (README "The guest flow") and serve the route with `createBookingRoute` (nothing changes for it) or `createFlowRoute`; add `@stripe/stripe-js` and allow `js.stripe.com` (script and frame) in the page's CSP on the booking pages. The older `BookingFlow` keeps working. - Evolve's theme: set `pick` `#49583c`, `on-pick` `#f7f1de`, `pick-ring` `#a3b78f` (it was cream), and `nav` for the bar. - Ops at release: the Stripe publishable key on QA and production, and each shop's domain as a Stripe payment method domain for Apple Pay. ### [0.1.3] , 2026-10-19 - `/core` `BookingRider` takes an optional `name` and `weight` (kg, for the bike's setup), set with the `rider` event, kept in memory only like the height (never in `picksOf` or the quote). `siteBookingOf` sends them on each person (`name` trimmed to at most 120 characters, `weight` in whole kilograms from 10 to 250; anything else is left out, never refused): `riderNameOf`, `riderWeightOf`, `RIDER_NAME_MAX`, `RIDER_WEIGHT_KG`. - `/react` `RiderCard` shows a Weight field with `onWeight` (`weightFrom`, `WEIGHT_KG`), and the closed row says the rider's name and weight when given. Words `rider_weight`, `rider_kg`, `rider_weight_kg`, `rider_weight_hint` in en, it, de and fr. Additive: no API change, no migration; repin the exact version. ### [0.1.2] , 2026-10-18 - `/core` `siteBasketOf` and `siteBookingOf`: when some riders of a rent line have a size and others do not, the riders without one join the line of the size that is the line's own option instead of a second line on the same option, so the quote no longer answers 422 "Give each size once and set its quantity" while a guest fills in Who. No API change; repin the exact version. ### [0.1.1] , 2026-10-18 - First published version (0.1.0 was tagged but never published). - First version (B2): `/core` (the client typed from the public booking contract, the operation table, `reduceBooking`, the trip basket store, kinds of ride readers), `/hooks` (TanStack Query hooks and `useBasket`) and `/next` (`createBookingRoute`, `loadBookingServer`). No fluxos-lib-ui peer. - B3: `/react` (the styled Elements, `BookingProvider`, `BookingFlow`) and `/styles.css` (reads only the `--og-*` theme tokens). React is a peer for `/hooks` and `/react` only. # API reference # API reference Use Outdoor Grid's public API to read a shop's catalog, check availability and send guests into booking. ## Base URL `https://api.outdoorgrid.ai` Public booking reads use a site key or a published shop host. Guest booking capabilities protect a particular trip. Shop API keys are Preview. ## First request ```bash curl "https://api.outdoorgrid.ai/v1/public/rental-catalog" \ -H "X-Outdoor-Grid-Site-Key: $SITE_KEY" ``` ```json { "currency": "EUR", "days": 2, "first_day": "2026-07-18", "products": [ { "from_price_minor": 4500, "id": "79f21745-76f2-47f2-84f2-75f210f972f2", "includes": { "de": "Helmet and lock included.", "en": "Helmet and lock included.", "fr": "Helmet and lock included.", "it": "Casco e lucchetto inclusi." }, "kind": "bike", "name": { "de": "Trailbike Verleih", "en": "Trail bike rental", "fr": "Location de vélo trail", "it": "Bici da trail" }, "options": [ { "free": { "level": "plenty" }, "id": "98ef4278-9bef-4aef-8def-9cef48c49fef", "price_minor": 4500, "rider_hint": "Fits riders from 160 to 185 cm.", "size_label": "M" } ], "price_for_days_minor": 4500, "size_mode": "at_booking" } ], "rental_day": { "closes": "18:00", "opens": "09:00" } } ``` ## Resources - [Catalog](https://www.outdoorgrid.ai/docs/api/catalog.md): 1 endpoint - [Tours](https://www.outdoorgrid.ai/docs/api/tours.md): 2 endpoints - [Availability](https://www.outdoorgrid.ai/docs/api/availability.md): 2 endpoints - [Site](https://www.outdoorgrid.ai/docs/api/site.md): 1 endpoint - [Bookings](https://www.outdoorgrid.ai/docs/api/bookings.md): 4 endpoints - [Payments](https://www.outdoorgrid.ai/docs/api/payments.md): 1 endpoint - [Directory](https://www.outdoorgrid.ai/docs/api/directory.md): 1 endpoint - [Shop MCP tools](https://www.outdoorgrid.ai/docs/api/mcp.md) - [Booking Elements](https://www.outdoorgrid.ai/docs/api/booking-elements.md) # Introduction # Introduction Use Outdoor Grid's public API to read a shop's catalog, check availability and send guests into booking. ## Base URLs Production: https://api.outdoorgrid.ai. QA: https://api-qa.outdoorgrid.ai. ## Choose a path The public booking routes serve shop websites. Shop API keys are Preview. For an AI client, use Shop MCP. [Read the guide](/docs/booking-api/overview) ```bash curl "https://api.outdoorgrid.ai/v1/public/rental-catalog" \ -H "X-Outdoor-Grid-Site-Key: $SITE_KEY" ``` ```json { "currency": "EUR", "days": 2, "first_day": "2026-07-18", "products": [ { "from_price_minor": 4500, "id": "79f21745-76f2-47f2-84f2-75f210f972f2", "includes": { "de": "Helmet and lock included.", "en": "Helmet and lock included.", "fr": "Helmet and lock included.", "it": "Casco e lucchetto inclusi." }, "kind": "bike", "name": { "de": "Trailbike Verleih", "en": "Trail bike rental", "fr": "Location de vélo trail", "it": "Bici da trail" }, "options": [ { "free": { "level": "plenty" }, "id": "98ef4278-9bef-4aef-8def-9cef48c49fef", "price_minor": 4500, "rider_hint": "Fits riders from 160 to 185 cm.", "size_label": "M" } ], "price_for_days_minor": 4500, "size_mode": "at_booking" } ], "rental_day": { "closes": "18:00", "opens": "09:00" } } ``` # Authentication # Authentication Each operation states the credential it accepts. Keep server credentials on your server. ## Public reads Catalog and availability can be read without a staff login. A shop website server may send a site key to select a shop. [Read the guide](/docs/booking-api/site-keys) ## Guest bookings A booking capability or view token protects a particular guest trip. A site key alone cannot read it. ## Shop API keys · Preview A key belongs to one person and one shop. Send it in the bearer header from a trusted server. [Read the guide](/docs/api-keys/authentication) ```bash # Shop site key for a public catalog read curl "https://api.outdoorgrid.ai/v1/public/rental-catalog" \ -H "X-Outdoor-Grid-Site-Key: $SITE_KEY" # Guest booking capability for the current trip curl "https://api.outdoorgrid.ai/v1/public/bookings/current" \ -H "Authorization: Booking $BOOKING_TOKEN" # View token from a guest booking link curl "https://api.outdoorgrid.ai/v1/public/booking-view" \ -H "X-Booking-View: $BOOKING_VIEW" ``` # Errors # Errors Use the HTTP status and coded body to decide what to show or retry. ## Route errors Each endpoint lists the statuses in its OpenAPI contract. Booking availability or price changes can produce a structured 409 response. [Read the guide](/docs/booking-api/overview) ## API key errors · Preview Key refusals use application/problem+json with a machine readable code. The guide lists the planned codes. [Read the guide](/docs/api-keys/errors) ## HTTP status codes - 404: A published page, resource, or guest booking was not found or is unavailable. - 409: Availability, price, payment choice, or booking state conflicts with the request. - 422: The request failed field or parameter validation. - 429: Too many requests or promo code attempts. Back off before retrying. - 501: This booking shape is not available yet. - 503: Public booking login is not configured. ```http HTTP/1.1 409 Conflict Content-Type: application/json ``` ```json { "error": "quote_refused", "ok": false, "refusals": [ { "line": 1, "code": "no_price" } ] } ``` # Versioning # Versioning The public contract marks operation stability and carries a revision for tracking changes. ## Stable and Preview Check the stability label on each endpoint. The current contract and changelog are the source for changes. ## Contract The public OpenAPI document is available at GET /v1/openapi.json. MCP tools are listed at GET /v1/mcp/tools.json. ```bash curl "https://api.outdoorgrid.ai/v1/openapi.json" ``` # Rate limits # Rate limits Back off when the API returns 429 and honor Retry-After when present. ## Shop API keys · Preview Planned key budgets are described in the API key limits guide. Some routes may have lower limits. [Read the guide](/docs/api-keys/limits) ## Public routes See each endpoint's error responses for 429. Avoid polling availability unnecessarily. ```http HTTP/1.1 429 Too Many Requests Retry-After: 30 ``` # Catalog # Catalog Show guests the shop's published rental products, sizes, and starting prices. ## Get the rental catalog `GET /v1/public/rental-catalog` A shop website reads rental products, prices and availability using its published host or site key; an unpublished or closed shop returns 404. ### Parameters - `first_day` (string · date): First day of the requested rental in the shop's local calendar. - `days` (integer): Number of rental days to include. - `locale` (string): Language requested for the catalog: en, it, de or fr. Product names include all languages the shop supplied. - `X-Outdoor-Grid-Site-Key` (string): Site key for a shop website server. Optional when the published shop host identifies the shop. ### Body parameters None. ### Returns A JSON response with booking_locales, currency, days. ### Errors - 404: The shop has no published booking page or online booking is closed. - 422: A field or parameter failed validation. ### Request ```bash API_BASE="https://api.outdoorgrid.ai" curl -X GET "$API_BASE/v1/public/rental-catalog" \ -H "X-Outdoor-Grid-Site-Key: $SITE_KEY" ``` ```javascript const url = "https://api.outdoorgrid.ai" + "/v1/public/rental-catalog"; const response = await fetch(url, { method: "GET", headers: { "X-Outdoor-Grid-Site-Key": process.env.SITE_KEY, }, }); const data = await response.json(); ``` ```python import os import requests url = ( "https://api.outdoorgrid.ai" "/v1/public/rental-catalog" ) response = requests.get( url, headers={ "X-Outdoor-Grid-Site-Key": os.environ["SITE_KEY"], }, timeout=10, ) response.raise_for_status() print(response.json()) ``` ### Response ```json { "currency": "EUR", "days": 2, "first_day": "2026-07-18", "products": [ { "from_price_minor": 4500, "id": "79f21745-76f2-47f2-84f2-75f210f972f2", "includes": { "de": "Helmet and lock included.", "en": "Helmet and lock included.", "fr": "Helmet and lock included.", "it": "Casco e lucchetto inclusi." }, "kind": "bike", "name": { "de": "Trailbike Verleih", "en": "Trail bike rental", "fr": "Location de vélo trail", "it": "Bici da trail" }, "options": [ { "free": { "level": "plenty" }, "id": "98ef4278-9bef-4aef-8def-9cef48c49fef", "price_minor": 4500, "rider_hint": "Fits riders from 160 to 185 cm.", "size_label": "M" } ], "price_for_days_minor": 4500, "size_mode": "at_booking" } ], "rental_day": { "closes": "18:00", "opens": "09:00" } } ``` ## The Product object - `asks` (object[]): Questions a guest answers for this product, based on its parts. - `builtin` (boolean, required): True: the answer goes to the rider's own height, weight, shoe or level - `help` (object): The line under the question - `de` (string, required): - `en` (string, required): - `fr` (string, required): - `it` (string, required): - `item_type_id` (string · uuid, required): The category that asks it: an answer names it back - `key` (string, required): A built-in (height_cm, weight_kg, shoe_eu, level) or the shop's own key - `kind` (string): Built-ins: number, or choice for level Values: `text`, `number`, `choice`, `multi_choice`, `boolean`, `date`. - `label` (object, required): Translated words in English, Italian, German and French, with fallback to another available language. - `de` (string, required): - `en` (string, required): - `fr` (string, required): - `it` (string, required): - `maximum` (number): - `minimum` (number): - `options` (object[]): Choice kinds only - `hint` (object): Translated words in English, Italian, German and French, with fallback to another available language. - `de` (string, required): - `en` (string, required): - `fr` (string, required): - `it` (string, required): - `key` (string, required): - `label` (object, required): Translated words in English, Italian, German and French, with fallback to another available language. - `de` (string, required): - `en` (string, required): - `fr` (string, required): - `it` (string, required): - `per` (string): rider: each person on a line of this category; booking: once. Built-ins are rider Values: `rider`, `booking`. - `required` (boolean): - `unit` (string): Number kinds: cm, kg, EU or the shop's own unit - `bike_type` (string): Kind of bike, from the starter item the shop chose: e_bike, mountain_bike or kids_bike; null for any other product. Values: `e_bike`, `mountain_bike`, `kids_bike`. - `from_price_minor` (integer, required): Lowest displayed rental price, in minor currency units. - `id` (string · uuid, required): Use this product ID when referring to this rental product. - `images` (object[]): The product's photos, cover first; empty when it has none - `alt` (object): Alternative text for this photo, by language. - `de` (string, required): - `en` (string, required): - `fr` (string, required): - `it` (string, required): - `height` (integer): Image height in pixels. - `url` (string, required): Link to the guest-facing image rendition; the link remains usable for several days. - `width` (integer): Image width in pixels. - `includes` (object, required): What is included with the rental; null when the shop has not supplied it. - `de` (string, required): - `en` (string, required): - `fr` (string, required): - `it` (string, required): - `kind` (string, required): Product category: ski, bike or other. Values: `ski`, `bike`, `other`. - `model` (string): Maker and model as the shop wrote them on the product, e.g. "Pivot Shuttle AMPD"; null when not set. - `name` (object, required): Name shown to guests. - `de` (string, required): - `en` (string, required): - `fr` (string, required): - `it` (string, required): - `options` (object[], required): Bookable sizes or options. - `free` (object, required): Null without days - `left` (integer): Only when level is few - `level` (string, required): Availability: plenty means at least five free, few means one to four, and full means none. Values: `plenty`, `few`, `full`. - `id` (string · uuid, required): Use this option ID in a rental booking line. - `price_minor` (integer, required): Null without days - `rider_hint` (string, required): Advice to help a guest choose this size; null when no hint is set. - `size_label` (string, required): Guest-visible size name. - `pick_size` (boolean): Whether the guest selects the size of at least one part. - `price_for_days_minor` (integer, required): Price for the requested number of days, in minor currency units; null without dates. - `size_mode` (string, required): When size is selected: at_counter at pickup or at_booking while booking. Values: `at_counter`, `at_booking`. ```json { "from_price_minor": 4500, "id": "b09afbd6-af9a-4e9a-859b-b49b0222b39b", "includes": { "de": "Helmet and lock included.", "en": "Helmet and lock included.", "fr": "Helmet and lock included.", "it": "Casco e lucchetto inclusi." }, "kind": "bike", "name": { "de": "Trailbike Verleih", "en": "Trail bike rental", "fr": "Location de vélo trail", "it": "Bici da trail" }, "options": [ { "free": { "level": "plenty" }, "id": "6a9c0e8d-679c-489c-859c-669c0841639c", "price_minor": 4500, "rider_hint": "Fits riders from 160 to 185 cm.", "size_label": "M" } ], "price_for_days_minor": 4500, "size_mode": "at_booking" } ``` # Tours # Tours List published tours and the departures guests can join. ## List tours `GET /v1/public/tours` A shop website lists bookable tours using its published host or site key; an unpublished or closed shop returns 404. ### Parameters - `X-Outdoor-Grid-Site-Key` (string): Site key for a shop website server. Optional when the published shop host identifies the shop. ### Body parameters None. ### Returns A JSON response with currency, tours. ### Errors - 404: The shop has no published booking page or online booking is closed. ### Request ```bash API_BASE="https://api.outdoorgrid.ai" curl -X GET "$API_BASE/v1/public/tours" \ -H "X-Outdoor-Grid-Site-Key: $SITE_KEY" ``` ```javascript const url = "https://api.outdoorgrid.ai" + "/v1/public/tours"; const response = await fetch(url, { method: "GET", headers: { "X-Outdoor-Grid-Site-Key": process.env.SITE_KEY, }, }); const data = await response.json(); ``` ```python import os import requests url = ( "https://api.outdoorgrid.ai" "/v1/public/tours" ) response = requests.get( url, headers={ "X-Outdoor-Grid-Site-Key": os.environ["SITE_KEY"], }, timeout=10, ) response.raise_for_status() print(response.json()) ``` ### Response ```json { "currency": "EUR", "tours": [ { "description": { "de": "Trailbike Verleih", "en": "Trail bike rental", "fr": "Location de vélo trail", "it": "Bici da trail" }, "duration_minutes": 2, "id": "6d1be72e-6c1b-4b1b-821b-711bed7a701b", "kind": "group_tour", "name": { "de": "Trailbike Verleih", "en": "Trail bike rental", "fr": "Location de vélo trail", "it": "Bici da trail" }, "next_departure_at": "2026-07-18T09:00:00Z", "price_from_minor": 4500, "slug": "alpine-trail-demo" } ] } ``` ## List tour departures `GET /v1/public/tours/{slug}/departures` A shop website reads open departures for one tour using its published host or site key; unknown tours and closed shops return 404. ### Parameters - `slug` (string, required): Tour slug from the public tours list. - `from` (string · date): First local day, default today - `to` (string · date): Last local day, default 30 days after from; at most 62 days - `X-Outdoor-Grid-Site-Key` (string): Site key for a shop website server. Optional when the published shop host identifies the shop. ### Body parameters None. ### Returns A JSON response with currency, departures, from. ### Errors - 404: The tour or published booking page was not found, or online booking is closed. - 422: A field or parameter failed validation. ### Request ```bash API_BASE="https://api.outdoorgrid.ai" curl -X GET "$API_BASE/v1/public/tours/alpine-trail-demo/departures" \ -H "X-Outdoor-Grid-Site-Key: $SITE_KEY" ``` ```javascript const url = "https://api.outdoorgrid.ai" + "/v1/public/tours/alpine-trail-demo/departures"; const response = await fetch(url, { method: "GET", headers: { "X-Outdoor-Grid-Site-Key": process.env.SITE_KEY, }, }); const data = await response.json(); ``` ```python import os import requests url = ( "https://api.outdoorgrid.ai" "/v1/public/tours/alpine-trail-demo/departures" ) response = requests.get( url, headers={ "X-Outdoor-Grid-Site-Key": os.environ["SITE_KEY"], }, timeout=10, ) response.raise_for_status() print(response.json()) ``` ### Response ```json { "currency": "EUR", "departures": [ { "ends_at": "2026-07-18T09:00:00Z", "id": "8448ae2c-8748-4648-8148-8048a7e08348", "language": "English", "price_minor": 4500, "seats_left": 2, "starts_at": "2026-07-18T09:00:00Z" } ], "from": "2026-07-18", "name": { "de": "Trailbike Verleih", "en": "Trail bike rental", "fr": "Location de vélo trail", "it": "Bici da trail" }, "slug": "alpine-trail-demo", "to": "2026-07-18" } ``` ## The Tour object - `description` (object, required): Description shown to guests. - `de` (string, required): - `en` (string, required): - `fr` (string, required): - `it` (string, required): - `duration_minutes` (integer, required): Length of the tour in minutes. - `id` (string · uuid, required): Identifier of this tour, used in tour listings. - `images` (object[]): The tour's photos, cover first; empty when it has none - `alt` (object): Alternative text for this photo, by language. - `de` (string, required): - `en` (string, required): - `fr` (string, required): - `it` (string, required): - `height` (integer): Image height in pixels. - `url` (string, required): Link to the guest-facing image rendition; the link remains usable for several days. - `width` (integer): Image width in pixels. - `kind` (string, required): Tour type: group_tour, private_tour, lesson, shuttle or transfer. Values: `group_tour`, `private_tour`, `shuttle`, `transfer`, `lesson`. - `name` (object, required): Name shown to guests. - `de` (string, required): - `en` (string, required): - `fr` (string, required): - `it` (string, required): - `next_departure_at` (string · date-time, required): Start of the next open departure; null when none is open. - `price_from_minor` (integer, required): One seat on the next open departure; null when none is open or it has no price - `slug` (string, required): Public address name used in the URL. ```json { "description": { "de": "Trailbike Verleih", "en": "Trail bike rental", "fr": "Location de vélo trail", "it": "Bici da trail" }, "duration_minutes": 2, "id": "e0f9b6ce-dff9-4ef9-85f9-e4f9bd1ae3f9", "kind": "group_tour", "name": { "de": "Trailbike Verleih", "en": "Trail bike rental", "fr": "Location de vélo trail", "it": "Bici da trail" }, "next_departure_at": "2026-07-18T09:00:00Z", "price_from_minor": 4500, "slug": "alpine-trail-demo" } ``` # Availability # Availability Check rental dates and time slots before a guest starts booking. ## Get rental availability `GET /v1/public/rental-availability` A shop website reads daily rental availability using its published host or site key; invalid date ranges return 422 and unavailable shops return 404. ### Parameters - `from` (string · date): First local day, default today - `to` (string · date): Last local day, default 29 days after from; at most 62 days in all - `X-Outdoor-Grid-Site-Key` (string): Site key for a shop website server. Optional when the published shop host identifies the shop. ### Body parameters None. ### Returns A JSON response with from, products, to. ### Errors - 404: The shop has no published booking page or online booking is closed. - 422: A field or parameter failed validation. ### Request ```bash API_BASE="https://api.outdoorgrid.ai" curl -X GET "$API_BASE/v1/public/rental-availability" \ -H "X-Outdoor-Grid-Site-Key: $SITE_KEY" ``` ```javascript const url = "https://api.outdoorgrid.ai" + "/v1/public/rental-availability"; const response = await fetch(url, { method: "GET", headers: { "X-Outdoor-Grid-Site-Key": process.env.SITE_KEY, }, }); const data = await response.json(); ``` ```python import os import requests url = ( "https://api.outdoorgrid.ai" "/v1/public/rental-availability" ) response = requests.get( url, headers={ "X-Outdoor-Grid-Site-Key": os.environ["SITE_KEY"], }, timeout=10, ) response.raise_for_status() print(response.json()) ``` ### Response ```json { "from": "2026-07-18", "products": [ { "closed_days": [ "2026-07-18" ], "id": "79f21745-76f2-47f2-84f2-75f210f972f2", "name": { "de": "Trailbike Verleih", "en": "Trail bike rental", "fr": "Location de vélo trail", "it": "Bici da trail" }, "options": [ { "days": [ { "day": null, "free": null } ], "id": "98ef4278-9bef-4aef-8def-9cef48c49fef", "size_label": "M" } ] } ], "to": "2026-07-18" } ``` ## Get rental slots `GET /v1/public/rental-slots` A shop website reads whole day and timed rental slots using its published host or site key; incomplete times return 422 and unavailable shops return 404. ### Parameters - `day` (string · date, required): The local day - `starts` (string): A chosen time: local "HH:MM" start, with ends - `ends` (string): A chosen time: local "HH:MM" end, with starts - `X-Outdoor-Grid-Site-Key` (string): Site key for a shop website server. Optional when the published shop host identifies the shop. ### Body parameters None. ### Returns A JSON response with custom, day, products. ### Errors - 404: The shop has no published booking page or online booking is closed. - 422: A field or parameter failed validation. ### Request ```bash API_BASE="https://api.outdoorgrid.ai" curl -X GET "$API_BASE/v1/public/rental-slots?day=Trail%20bike%20rental" \ -H "X-Outdoor-Grid-Site-Key: $SITE_KEY" ``` ```javascript const url = "https://api.outdoorgrid.ai" + "/v1/public/rental-slots?day=Trail%20bike%20rental"; const response = await fetch(url, { method: "GET", headers: { "X-Outdoor-Grid-Site-Key": process.env.SITE_KEY, }, }); const data = await response.json(); ``` ```python import os import requests url = ( "https://api.outdoorgrid.ai" "/v1/public/rental-slots?day=Trail%20bike%20rental" ) response = requests.get( url, headers={ "X-Outdoor-Grid-Site-Key": os.environ["SITE_KEY"], }, timeout=10, ) response.raise_for_status() print(response.json()) ``` ### Response ```json { "custom": { "ends": "Trail bike rental", "starts": "Trail bike rental" }, "day": "2026-07-18", "products": [ { "closed": true, "id": "79f21745-76f2-47f2-84f2-75f210f972f2", "name": { "de": "Trailbike Verleih", "en": "Trail bike rental", "fr": "Location de vélo trail", "it": "Bici da trail" }, "options": [ { "afternoon": { "level": "plenty" }, "custom": { "level": "plenty" }, "day": { "level": "plenty" }, "id": "98ef4278-9bef-4aef-8def-9cef48c49fef", "morning": { "level": "plenty" }, "size_label": "M" } ], "periods": { "half_day": { "from_minor": 4500 }, "hourly": { "from_minor": 4500 } } } ], "rental_day": { "closes": "18:00", "opens": "09:00" }, "slots": { "afternoon": { "ends": "Trail bike rental", "starts": "Trail bike rental" }, "morning": { "ends": "Trail bike rental", "starts": "Trail bike rental" } } } ``` ## The Availability object - `asks` (object[]): What a guest booking it answers; answers name the ask's item_type_id - `builtin` (boolean, required): True: the answer goes to the rider's own height, weight, shoe or level - `help` (object): The line under the question - `de` (string, required): - `en` (string, required): - `fr` (string, required): - `it` (string, required): - `item_type_id` (string · uuid, required): The category that asks it: an answer names it back - `key` (string, required): A built-in (height_cm, weight_kg, shoe_eu, level) or the shop's own key - `kind` (string): Built-ins: number, or choice for level Values: `text`, `number`, `choice`, `multi_choice`, `boolean`, `date`. - `label` (object, required): Translated words in English, Italian, German and French, with fallback to another available language. - `de` (string, required): - `en` (string, required): - `fr` (string, required): - `it` (string, required): - `maximum` (number): - `minimum` (number): - `options` (object[]): Choice kinds only - `hint` (object): Translated words in English, Italian, German and French, with fallback to another available language. - `de` (string, required): - `en` (string, required): - `fr` (string, required): - `it` (string, required): - `key` (string, required): - `label` (object, required): Translated words in English, Italian, German and French, with fallback to another available language. - `de` (string, required): - `en` (string, required): - `fr` (string, required): - `it` (string, required): - `per` (string): rider: each person on a line of this category; booking: once. Built-ins are rider Values: `rider`, `booking`. - `required` (boolean): - `unit` (string): Number kinds: cm, kg, EU or the shop's own unit - `blurb` (object): The longer words of the product - `de` (string, required): - `en` (string, required): - `fr` (string, required): - `it` (string, required): - `charts` (object[]): One per part with a size chart - `item_type_id` (string · uuid, required): Identifier of the product part this size chart describes. - `measure` (string, required): What the ranges measure; null when the chart has no ranges Values: `height_cm`, `weight_kg`, `shoe_eu`, `mondopoint`, `age_years`, `head_cm`. - `sizes` (object[], required): Smallest first - `fits` (string): Who the size fits, in the chart's words; null when it has none - `label` (string, required): Size label displayed to the guest for this fit range. - `max` (number, required): Not included; null: open above - `min` (number, required): Included; null: open below - `closed_days` (string · date[], required): Days a closure of the product's place covers - `facts` (object[]): The guest visible fields of its item types with its values, in part order then field order, at most 24 - `item_type_id` (string · uuid, required): Identifier of the product part that owns this fact. - `key` (string, required): The field's key in its item type - `kind` (string, required): Value type: text, number, choice, multi_choice, boolean or date. Values: `text`, `number`, `choice`, `multi_choice`, `boolean`, `date`. - `label` (object, required): The field's label - `de` (string, required): - `en` (string, required): - `fr` (string, required): - `it` (string, required): - `text` (object, required): The value in plain words: '800 Wh', '1,5 kg', the option's label, Yes or No - `de` (string, required): - `en` (string, required): - `fr` (string, required): - `it` (string, required): - `unit` (string): Number fields: the unit (Wh, mm, kg); else null - `value` (any, required): As stored: a number, an option key, a list of option keys, true or false, text, YYYY-MM-DD - `fit` (object): The product's build, geometry and fit ranges, when the catalog has them; null when no fit data is available. - `build` (object[], required): - `key` (string, required): - `label` (object, required): Translated words in English, Italian, German and French, with fallback to another available language. - `de` (string, required): - `en` (string, required): - `fr` (string, required): - `it` (string, required): - `more` (string, required): - `value` (string, required): - `geometry` (object[], required): - `key` (string, required): - `label` (object, required): Translated words in English, Italian, German and French, with fallback to another available language. - `de` (string, required): - `en` (string, required): - `fr` (string, required): - `it` (string, required): - `unit` (string, required): - `values` (object, required): - `ranges` (object[], required): - `best_max` (integer, required): - `best_min` (integer, required): - `fits_max` (integer, required): - `fits_min` (integer, required): - `option_id` (string · uuid, required): - `size` (string, required): - `gear` (string): What the product rents: bike or ski (its kind, else its words), other for anything else; the guest flow names its tabs and offers extras by it. Null from a read that does not say Values: `ski`, `bike`, `other`. - `id` (string · uuid, required): Identifier of the rental product whose availability is shown. - `image` (object): The product's photo for the Bikes step (the one the fleet shows as its model's): its cover, else its first; null when it has none or the link cannot be made - `alt` (object): Alternative text for this photo, by language. - `de` (string, required): - `en` (string, required): - `fr` (string, required): - `it` (string, required): - `height` (integer): Image height in pixels. - `url` (string, required): Link to the guest-facing image rendition; the link remains usable for several days. - `width` (integer): Image width in pixels. - `line` (object): The short line under the name: what is included - `de` (string, required): - `en` (string, required): - `fr` (string, required): - `it` (string, required): - `model` (object): 'Allround, 2026 model': the model the product rents - `de` (string, required): - `en` (string, required): - `fr` (string, required): - `it` (string, required): - `name` (object, required): Name shown to guests. - `de` (string, required): - `en` (string, required): - `fr` (string, required): - `it` (string, required): - `notice` (object): The notice rules its quote uses (its own booking rules, else the shop's), in its place's time zone; days before first_day are too_soon. Null from a read that does not say - `cutoff_today` (string): HH:MM: a rental starting today can be booked until then; null when today is already too soon or closed - `first_day` (string · date, required): The first local day a whole-day rental can start (today or later) - `max_booking_lead_days` (integer): The latest start is today plus this many days; null when the shop sets no limit - `max_rental_days` (integer): The longest rental in days; null when the shop sets none - `min_notice_minutes` (integer, required): The least notice before a start - `timezone` (string, required): The shop's time zone - `today` (string · date, required): The shop's local date now - `options` (object[], required): Bookable sizes or options. - `days` (object[], required): Availability for each requested local day, expressed in words. - `afternoon` (object): Afternoon availability in words; null when the product does not offer afternoons. - `left` (integer): Only when level is few - `level` (string, required): Availability: plenty means at least five free, few means one to four, and full means none. Values: `plenty`, `few`, `full`. - `day` (string · date, required): Local calendar day. - `free` (object, required): Free for a one day rental of that day, in words - `left` (integer): Only when level is few - `level` (string, required): Availability: plenty means at least five free, few means one to four, and full means none. Values: `plenty`, `few`, `full`. - `hours` (object): Local pickup, return and half-day times at the product's place, when available. - `afternoon` (object): That day's afternoon; null when the day has none - `ends` (string, required): Local end time. - `starts` (string, required): Local start time. - `closes` (string, required): and brought back by this - `morning` (object): That day's morning; null when the day has none - `ends` (string, required): Local end time. - `starts` (string, required): Local start time. - `opens` (string, required): Rentals that day are picked up from this - `morning` (object): Morning availability in words; null when the product does not offer mornings. - `left` (integer): Only when level is few - `level` (string, required): Availability: plenty means at least five free, few means one to four, and full means none. Values: `plenty`, `few`, `full`. - `periods` (string[]): Parts of this day the product offers: full, morning or afternoon. - `id` (string · uuid, required): The option_id a rental line books - `max_cm` (number): The highest rider height it fits, in cm; null: open or unknown - `min_cm` (number): The lowest rider height it fits, in cm: from rider_hint, else the size of the same label on a height chart of the product's parts; null: open or unknown - `rider_hint` (string): Who the size fits, in the shop's words ('180 to 193 cm') - `size_label` (string, required): Guest-visible size name. - `parts` (object[]): Product parts and their guest-visible labels. - `asks` (object[]): The category's booking questions (its effective guest_fields) - `builtin` (boolean, required): True: the answer goes to the rider's own height, weight, shoe or level - `help` (object): The line under the question - `de` (string, required): - `en` (string, required): - `fr` (string, required): - `it` (string, required): - `item_type_id` (string · uuid, required): The category that asks it: an answer names it back - `key` (string, required): A built-in (height_cm, weight_kg, shoe_eu, level) or the shop's own key - `kind` (string): Built-ins: number, or choice for level Values: `text`, `number`, `choice`, `multi_choice`, `boolean`, `date`. - `label` (object, required): Translated words in English, Italian, German and French, with fallback to another available language. - `de` (string, required): - `en` (string, required): - `fr` (string, required): - `it` (string, required): - `maximum` (number): - `minimum` (number): - `options` (object[]): Choice kinds only - `hint` (object): Translated words in English, Italian, German and French, with fallback to another available language. - `de` (string, required): - `en` (string, required): - `fr` (string, required): - `it` (string, required): - `key` (string, required): - `label` (object, required): Translated words in English, Italian, German and French, with fallback to another available language. - `de` (string, required): - `en` (string, required): - `fr` (string, required): - `it` (string, required): - `per` (string): rider: each person on a line of this category; booking: once. Built-ins are rider Values: `rider`, `booking`. - `required` (boolean): - `unit` (string): Number kinds: cm, kg, EU or the shop's own unit - `glyph` (string, required): A key of the frontend glyph catalogue; null when the category has none - `item_type_id` (string · uuid, required): Identifier of this type of product part. - `label` (object, required): Guest-visible name of the product part, by language. - `de` (string, required): - `en` (string, required): - `fr` (string, required): - `it` (string, required): - `pick_size` (boolean): The guest picks a size of this part: the category lets guests pick and has a chart - `pick_size` (boolean): The guest picks the size of at least one part ```json { "closed_days": [ "2026-07-18" ], "id": "e99e2500-ec9e-4b9e-8e9e-ed9e2b4cf09e", "name": { "de": "Trailbike Verleih", "en": "Trail bike rental", "fr": "Location de vélo trail", "it": "Bici da trail" }, "options": [ { "days": [ { "day": "2026-07-18", "free": { "level": "plenty" } } ], "id": "77d556ab-78d5-49d5-8ad5-7bd55cf77cd5", "size_label": "M" } ] } ``` # Site # Site Read the booking page's shop details, payment choices, and guest settings. ## Get the booking profile `GET /v1/public/booking-profile` A shop website reads booking rules, payment choices and meeting places using its published host or site key; an unavailable shop returns 404. ### Parameters - `X-Outdoor-Grid-Site-Key` (string): Site key for a shop website server. Optional when the published shop host identifies the shop. ### Body parameters None. ### Returns A JSON response with address, cancellation_text, currency. ### Errors - 404: The shop has no published booking page or online booking is closed. ### Request ```bash API_BASE="https://api.outdoorgrid.ai" curl -X GET "$API_BASE/v1/public/booking-profile" \ -H "X-Outdoor-Grid-Site-Key: $SITE_KEY" ``` ```javascript const url = "https://api.outdoorgrid.ai" + "/v1/public/booking-profile"; const response = await fetch(url, { method: "GET", headers: { "X-Outdoor-Grid-Site-Key": process.env.SITE_KEY, }, }); const data = await response.json(); ``` ```python import os import requests url = ( "https://api.outdoorgrid.ai" "/v1/public/booking-profile" ) response = requests.get( url, headers={ "X-Outdoor-Grid-Site-Key": os.environ["SITE_KEY"], }, timeout=10, ) response.raise_for_status() print(response.json()) ``` ### Response ```json { "address": "Trail bike rental", "cancellation_text": { "de": "Trailbike Verleih", "en": "Trail bike rental", "fr": "Location de vélo trail", "it": "Bici da trail" }, "currency": "EUR", "default_locale": "en", "email": "guest@example.com", "intro_text": { "de": "Trailbike Verleih", "en": "Trail bike rental", "fr": "Location de vélo trail", "it": "Bici da trail" }, "locales": [ "Trail bike rental" ], "name": "Trail bike rental", "payment": { "at_shop_without_rentals": true, "choices": [ "deposit" ], "deposit_min_minor": 4500, "deposit_percent": 2, "mode": "pay_at_shop" }, "phone": "+CC 000 000 0000", "places": [ { "address": "Trail bike rental", "closures": [ { "ends_on": "2026-07-18", "starts_on": "2026-07-18" } ], "email": "guest@example.com", "hours": [ { "days": [ { "closes": null, "opens": null, "weekday": null } ], "valid_from": "2026-07-18", "valid_until": "2026-07-18" } ], "id": "76a924d9-73a9-44a9-89a9-7aa92b2577a9", "kind": "rental", "name": "Trail bike rental", "phone": "+CC 000 000 0000", "return_allowed": true, "time_zone": "Europe/Rome" } ], "rental_day": { "closes": "18:00", "opens": "09:00" } } ``` ## The Booking profile object - `address` (string, required): Main address displayed on the booking page, if supplied. - `cancellation_text` (object, required): Cancellation terms displayed before booking, if supplied. - `de` (string, required): - `en` (string, required): - `fr` (string, required): - `it` (string, required): - `currency` (string, required): ISO currency code for all money amounts in this answer. - `default_locale` (string, required): Default language for the shop's guest pages. - `email` (string, required): Guest or shop email address. - `intro_text` (object, required): Introductory text displayed on the booking page, if supplied. - `de` (string, required): - `en` (string, required): - `fr` (string, required): - `it` (string, required): - `locales` (string[], required): Languages offered on the shop's guest pages. - `name` (string, required): Name shown to guests. - `online_booking` (string): How the site takes guests: "book" books online; "ask" takes booking requests instead (POST /v1/public/booking-requests); a booking then answers 409 online_booking_ask Values: `book`, `ask`. - `payment` (object, required): Online payment mode and choices offered by the shop. - `at_shop_without_rentals` (boolean, required): A basket without rented sizes (tour seats, extras without sizes) may also choose at_shop - `choices` (string[], required): Payment choices accepted for a basket under the shop's default rules; a product can narrow them. - `deposit_min_minor` (integer, required): Deposit mode only: the least deposit of a booking - `deposit_percent` (integer, required): Deposit mode only: the share of the total paid online, rounded up to whole units - `mode` (string, required): The shop's online mode Values: `pay_at_shop`, `deposit`. - `phone` (string, required): Guest or shop telephone number. - `places` (object[], required): The shop first, then meeting and pick-up points, at most 20 - `address` (string, required): Address of this place; null when the shop has not supplied it. - `closures` (object[], required): Closures that have not ended, at most 30 - `ends_on` (string · date, required): Last local day the place is closed. - `starts_on` (string · date, required): First local day the place is closed. - `email` (string, required): Guest or shop email address. - `hours` (object[], required): Hours sets still in force or still to come, at most 10 - `days` (object[], required): A weekday that is not listed is closed - `closes` (string, required): Local closing time. - `opens` (string, required): Local opening time. - `weekday` (integer, required): ISO weekday: 1 is Monday, 7 is Sunday. A weekday may appear twice (a lunch break) - `valid_from` (string · date, required): Null: since always - `valid_until` (string · date, required): Null: until further notice - `id` (string · uuid, required): Identifier of this shop place or meeting point. - `kind` (string, required): Place type: rental, retail, rental_retail, workshop, depot, meeting_point, pickup, office or partner_desk. Values: `rental`, `retail`, `rental_retail`, `workshop`, `depot`, `meeting_point`, `pickup`, `office`, `partner_desk`. - `name` (string, required): Name shown to guests. - `phone` (string, required): Guest or shop telephone number. - `return_allowed` (boolean, required): Whether guests may return rentals at this place. - `time_zone` (string, required): IANA time zone used for this place's opening hours. - `rental_day` (object, required): Rentals are picked up from opens on the first day and brought back by closes on the last - `closes` (string · time, required): - `opens` (string · time, required): - `rental_periods` (object): Half-day and custom-hour options guests may book. - `half_day` (object, required): Morning and afternoon periods offered for rentals; null when unavailable. - `product_ids` (string · uuid[], required): Products of the rental catalog with a half-day price online - `slots` (object[], required): The shop's morning and afternoon start and end times, in local time. - `ends` (string, required): Local end time. - `kind` (string, required): Named half day: morning or afternoon. Values: `morning`, `afternoon`. - `starts` (string, required): Local start time. - `hourly` (object, required): Rules for choosing custom rental hours; null when unavailable. - `closes` (string, required): and ends at or before this - `min_minutes` (integer, required): The shortest chosen time - `opens` (string, required): A chosen time starts at or after this - `product_ids` (string · uuid[], required): Products of the rental catalog with an hourly price online - `step_minutes` (integer, required): Times fall on these steps - `time_zone` (string, required): The shop's time zone: local days of every public read are in it ```json { "address": "Trail bike rental", "cancellation_text": { "de": "Trailbike Verleih", "en": "Trail bike rental", "fr": "Location de vélo trail", "it": "Bici da trail" }, "currency": "EUR", "default_locale": "en", "email": "guest@example.com", "intro_text": { "de": "Trailbike Verleih", "en": "Trail bike rental", "fr": "Location de vélo trail", "it": "Bici da trail" }, "locales": [ "Trail bike rental" ], "name": "Trail bike rental", "payment": { "at_shop_without_rentals": true, "choices": [ "deposit" ], "deposit_min_minor": 4500, "deposit_percent": 2, "mode": "pay_at_shop" }, "phone": "+CC 000 000 0000", "places": [ { "address": "Trail bike rental", "closures": [ { "ends_on": "2026-07-18", "starts_on": "2026-07-18" } ], "email": "guest@example.com", "hours": [ { "days": [ { "closes": null, "opens": null, "weekday": null } ], "valid_from": "2026-07-18", "valid_until": "2026-07-18" } ], "id": "c03c8b09-bd3c-4e3c-833c-c43c9155c13c", "kind": "rental", "name": "Trail bike rental", "phone": "+CC 000 000 0000", "return_allowed": true, "time_zone": "Europe/Rome" } ], "rental_day": { "closes": "18:00", "opens": "09:00" } } ``` # Bookings # Bookings Create a guest booking and read its current state with a booking capability. ## Ask the shop for a booking `POST /v1/public/booking-requests` A shop website sends a guest's booking request with its published host or site key; the shop and the guest get an email and nothing is booked. Works whether the shop books online or takes requests. ### Parameters - `X-Outdoor-Grid-Site-Key` (string): Site key for a shop website server. Optional when the published shop host identifies the shop. ### Body parameters - `bike_product_ids` (string · uuid[]): Rental products the guest liked; others are dropped - `email` (string · email, required): - `first_day` (string · date, required): - `language` (string, required): Values: `en`, `it`, `de`, `fr`. - `last_day` (string · date, required): On or after first_day, at most 60 days after it - `name` (string, required): - `note` (string): - `phone` (string): E.164, for example +41793106078 - `riders` (integer, required): - `tour` (object): - `length` (string): Values: `full`, `half`. - `private` (boolean): - `product_id` (string · uuid): A tour product of the shop; another shop's or an unknown one is dropped - `wants` (string[], required): At least one, each once - `website` (string): Leave empty ### Returns A JSON response with ref. ### Errors - 404: booking_unavailable: no shop on this host; online_booking_closed: the shop takes nothing online - 413: too_large: the body is over 16 KB - 422: invalid_request (context.field) - 429: too_many_requests: from this guest address (5 a minute, 20 an hour) for this email (5 an hour) or for the shop (60 an hour) ### Request ```bash API_BASE="https://api.outdoorgrid.ai" curl -X POST "$API_BASE/v1/public/booking-requests" \ -H "X-Outdoor-Grid-Site-Key: $SITE_KEY" \ -H "Content-Type: application/json" \ -d '{ "email": "guest@example.com", "first_day": "2026-07-18", "language": "en", "last_day": "2026-07-18", "name": "Trail bike rental", "riders": 2, "wants": [ "rent" ] }' ``` ```javascript const url = "https://api.outdoorgrid.ai" + "/v1/public/booking-requests"; const response = await fetch(url, { method: "POST", headers: { "X-Outdoor-Grid-Site-Key": process.env.SITE_KEY, "Content-Type": "application/json", }, body: JSON.stringify({ "email": "guest@example.com", "first_day": "2026-07-18", "language": "en", "last_day": "2026-07-18", "name": "Trail bike rental", "riders": 2, "wants": [ "rent" ] }), }); const data = await response.json(); ``` ```python import os import requests url = ( "https://api.outdoorgrid.ai" "/v1/public/booking-requests" ) response = requests.post( url, headers={ "X-Outdoor-Grid-Site-Key": os.environ["SITE_KEY"], "Content-Type": "application/json", }, json={ "email": "guest@example.com", "first_day": "2026-07-18", "language": "en", "last_day": "2026-07-18", "name": "Trail bike rental", "riders": 2, "wants": [ "rent", ], }, timeout=10, ) response.raise_for_status() print(response.json()) ``` ### Response ```json { "ref": "Trail bike rental" } ``` ## Get a booking view `GET /v1/public/booking-view` A confirmation page reads booking details with X-Booking-View; a missing or invalid view token returns 404. ### Parameters - `X-Booking-View` (string): The view token from the confirmation link - `X-Outdoor-Grid-Site-Key` (string): Site key for a shop website server. Optional when the published shop host identifies the shop. ### Body parameters None. ### Returns A JSON response with currency, days, first_day. ### Errors - 404: The view token or booking was not found. - 422: A field or parameter failed validation. ### Request ```bash API_BASE="https://api.outdoorgrid.ai" curl -X GET "$API_BASE/v1/public/booking-view" \ -H "X-Booking-View: $BOOKING_VIEW" ``` ```javascript const url = "https://api.outdoorgrid.ai" + "/v1/public/booking-view"; const response = await fetch(url, { method: "GET", headers: { "X-Booking-View": process.env.BOOKING_VIEW, }, }); const data = await response.json(); ``` ```python import os import requests url = ( "https://api.outdoorgrid.ai" "/v1/public/booking-view" ) response = requests.get( url, headers={ "X-Booking-View": os.environ["BOOKING_VIEW"], }, timeout=10, ) response.raise_for_status() print(response.json()) ``` ### Response ```json { "currency": "EUR", "days": 2, "first_day": "2026-07-18", "lines": [ { "label": { "de": "Trailbike Verleih", "en": "Trail bike rental", "fr": "Location de vélo trail", "it": "Bici da trail" }, "quantity": 2, "size": "M", "total_minor": 4500 } ], "locale": "en", "money": { "due_minor": 4500, "paid_minor": 0, "status": "not_paid", "total_minor": 4500 }, "pickup_at": "2026-07-18T09:00:00Z", "reference": "OG-7K2P9", "return_by_at": "2026-07-18T09:00:00Z", "riders": [ { "height_cm": 2, "level": "Trail bike rental", "line": 2, "name": "Trail bike rental", "weight_kg": 2 } ], "shop": { "address": "Trail bike rental", "cancellation_text": { "de": "Trailbike Verleih", "en": "Trail bike rental", "fr": "Location de vélo trail", "it": "Bici da trail" }, "email": "guest@example.com", "name": "Trail bike rental", "phone": "+CC 000 000 0000" }, "stage": "booked" } ``` ## Create a booking `POST /v1/public/bookings` A guest books rentals or tour seats with Authorization: Booking and a published shop host; unavailable lines return 409 and unfinished shapes return 501. ### Parameters - `Authorization` (string, required): Guest booking capability in the Booking authorization scheme. - `X-Outdoor-Grid-Site-Key` (string): Site key for a shop website server. Optional when the published shop host identifies the shop. ### Body parameters - `answers` (object[]): Questions the shop asks once per booking for rented products, based on their categories. - `item_type_id` (string · uuid, required): - `key` (string, required): height_cm, weight_kg, shoe_eu, level or the shop's own key - `value` (any, required): - `days` (integer): Number of whole rental days; optional when each line supplies its own dates. - `first_day` (string · date): First local rental day. - `guest` (object, required): Contact details for the person making the booking. - `email` (string · email, required): Guest or shop email address. - `first_name` (string): Guest's given name when the request uses split name fields. - `last_name` (string): Guest's family name when the request uses split name fields. - `locale` (string, required): Language for this guest's booking and messages: en, it, de or fr. Values: `en`, `it`, `de`, `fr`. - `name` (string): Name shown to guests. - `phone` (string): Guest or shop telephone number. - `idempotency_key` (string · uuid, required): Unique UUID for a safe retry of this request. - `lines` (object[], required): Items in the booking. - `asked` (boolean): True to ask the shop for a rental instead of reserving it immediately. - `bikes` (object): For each rider on a tour line, own means their bike or line: names a rental line. - `days` (object[]): This line's dates and parts of day; omit to use the booking's whole date range. - `date` (string · date, required): Local calendar date. - `period` (string, required): Part of the day covered by this item. Values: `full`, `morning`, `afternoon`. - `departure_id` (string · uuid): Departure ID from the tour departures read for a tour seat. - `fit_at_shop` (boolean): True when a kit size will be chosen at the shop instead of by option ID. - `group` (string): Tour request type: new_group or private. Values: `new_group`, `private`. - `key` (string): Client-assigned line key, stable across edits to the booking. - `kind` (string): Line to book: rental, extra, tour_seat, kit, guide_pick or tour_request. Values: `rental`, `extra`, `tour_seat`, `kit`, `guide_pick`, `tour_request`. - `kit_item_id` (string · uuid): Identifier of the kit item shown in availability. - `note` (string): Optional note for a guide choice or tour request. - `option_id` (string · uuid): Public rental option identifier. - `or_options` (string · uuid[]): Other rental option IDs the guest would accept if the first is unavailable. - `parent_line_key` (string): Key of the rental or tour line this extra or kit item belongs with. - `parent_line_no` (integer): One-based number of the rental or tour line this extra follows. - `period` (object): Part of the day covered by this item. - `ends` (string): Local end time. - `kind` (string, required): Rental period: morning, afternoon or custom hours. Values: `morning`, `afternoon`, `custom`. - `starts` (string): Local start time. - `product_id` (string · uuid): Public product identifier. - `quantity` (integer, required): Number of units requested. - `riders` (string[]): Person keys assigned to this line; each appears once and the count matches quantity. - `mode` (string): Choose book to reserve now or request to ask the shop to confirm. Values: `book`, `request`. - `origin` (object): Where the booking came from: the store product the guest pressed Rent this on. Kept on a new booking of the same shop only; an unknown id books the same and keeps nothing; a replay changes nothing - `id` (string · uuid, required): The store product's id - `kind` (string, required): - `payment_choice` (string): How the guest pays: deposit, full or at_shop. Values: `deposit`, `full`, `at_shop`. - `promo_code` (string): Guest's promotion code, three to 32 letters, digits, underscores or hyphens; surrounding spaces are removed. - `riders` (object[]): People taking part in the booked lines. - `answers` (object[]): Questions the shop asks about this rider for the category of their booked line. - `item_type_id` (string · uuid, required): - `key` (string, required): height_cm, weight_kg, shoe_eu, level or the shop's own key - `value` (any, required): - `details` (object): Equipment choices and measurements supplied by the rider. - `brakes` (string): The lever that works the front brake Values: `front_left`, `front_right`. - `first_visit` (boolean): First time riding with this shop - `own_bike` (boolean): The rider brings their own bike - `pedals` (string): Pedal choice: flat, clipless or own_pedals; null when not supplied. Values: `flat`, `clipless`, `own_pedals`. - `wheel_size` (string): Of the bike the rider brings Values: `20`, `24`, `26`, `27.5`, `29`, `mixed`. - `first_time` (boolean): Whether this is the rider's first time riding at this shop's place. - `head_cm` (integer): Rider's head circumference in centimetres for a helmet. - `height_cm` (integer): Rider height in centimetres, used to choose a suitable size. - `key` (string): Client-assigned key that identifies this rider within the booking request. - `kit_own` (string · uuid[]): Identifiers of kit items the rider is bringing rather than renting. - `level` (string): Rider's skill level as supplied by the guest. - `line` (integer): One-based number of the booking line this rider joins. - `name` (string): Name shown to guests. - `note` (string): Optional note about this rider for the shop. - `own_bike` (object): Kind and make of the bike the rider is bringing. - `kind` (any, required): One of the shop's kinds of ride (booking.kinds), or other - `make` (string): Brand of the bike the rider brings; null when not supplied. - `shoe_eu` (any): Rider's European shoe size in half-size steps. - `stance` (string): Snowboard lines only: regular, goofy or unsure (dropped on other lines) Values: `regular`, `goofy`, `unsure`. - `weight_kg` (integer): Rider weight in kilograms when needed to prepare equipment. ### Returns A JSON response with asked, at_shop_minor, currency. ### Errors - 404: The booking page or Booking capability is unavailable. - 409: Some lines are no longer free (lines_unavailable), the shop's prices or rules refuse a line (quote_refused), a business cannot take online payments yet (payment_account_missing), the promo code does not apply (promo_refused), or a coded conflict: departure_full, departure_closed, payment_choice_unavailable, promo_used_up - 422: A field or parameter failed validation. - 429: too_many_codes: too many promo codes were refused from this client or shop - 501: not_built: this booking shape is not available yet ### Request ```bash API_BASE="https://api.outdoorgrid.ai" curl -X POST "$API_BASE/v1/public/bookings" \ -H "Authorization: Booking $BOOKING_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "idempotency_key": "7a6f9780-7d6f-4c6f-8f6f-7e6f9dcc816f", "first_day": "2027-07-18", "days": 1, "lines": [ { "kind": "rental", "option_id": "98ef4278-9bef-4aef-8def-9cef48c49fef", "quantity": 1 } ], "guest": { "name": "Alex Rivera", "email": "alex@example.com", "locale": "en" } }' ``` ```javascript const credential = process.env.BOOKING_TOKEN; const url = "https://api.outdoorgrid.ai" + "/v1/public/bookings"; const response = await fetch(url, { method: "POST", headers: { "Authorization": `Booking ${credential}`, "Content-Type": "application/json", }, body: JSON.stringify({ "idempotency_key": "7a6f9780-7d6f-4c6f-8f6f-7e6f9dcc816f", "first_day": "2027-07-18", "days": 1, "lines": [ { "kind": "rental", "option_id": "98ef4278-9bef-4aef-8def-9cef48c49fef", "quantity": 1 } ], "guest": { "name": "Alex Rivera", "email": "alex@example.com", "locale": "en" } }), }); const data = await response.json(); ``` ```python import os import requests credential = os.environ["BOOKING_TOKEN"] authorization = f"Booking {credential}" url = ( "https://api.outdoorgrid.ai" "/v1/public/bookings" ) response = requests.post( url, headers={ "Authorization": authorization, "Content-Type": "application/json", }, json={ "idempotency_key": ( "7a6f9780-7d6f-4c6f-8f6f" "-7e6f9dcc816f" ), "first_day": "2027-07-18", "days": 1, "lines": [ { "kind": "rental", "option_id": ( "98ef4278-9bef-4aef-8def" "-9cef48c49fef" ), "quantity": 1, }, ], "guest": { "name": "Alex Rivera", "email": "alex@example.com", "locale": "en", }, }, timeout=10, ) response.raise_for_status() print(response.json()) ``` ### Response ```json { "at_shop_minor": 4500, "currency": "EUR", "days": 1, "deposit_minor": 0, "first_day": "2027-07-18", "hold_expires_at": null, "next": "done", "paid_minor": 0, "reference": "OG-7K2P9", "stage": "booked", "total_minor": 4500 } ``` ## Get the current booking `GET /v1/public/bookings/current` A guest reads the current booking with Authorization: Booking; a missing or invalid booking returns 404. ### Parameters - `Authorization` (string, required): Guest booking capability in the Booking authorization scheme. - `X-Outdoor-Grid-Site-Key` (string): Site key for a shop website server. Optional when the published shop host identifies the shop. ### Body parameters None. ### Returns A JSON response with asked, at_shop_minor, currency. ### Errors - 404: The Booking capability or current booking was not found. - 422: A field or parameter failed validation. ### Request ```bash API_BASE="https://api.outdoorgrid.ai" curl -X GET "$API_BASE/v1/public/bookings/current" \ -H "Authorization: Booking $BOOKING_TOKEN" ``` ```javascript const credential = process.env.BOOKING_TOKEN; const url = "https://api.outdoorgrid.ai" + "/v1/public/bookings/current"; const response = await fetch(url, { method: "GET", headers: { "Authorization": `Booking ${credential}`, }, }); const data = await response.json(); ``` ```python import os import requests credential = os.environ["BOOKING_TOKEN"] authorization = f"Booking {credential}" url = ( "https://api.outdoorgrid.ai" "/v1/public/bookings/current" ) response = requests.get( url, headers={ "Authorization": authorization, }, timeout=10, ) response.raise_for_status() print(response.json()) ``` ### Response ```json { "at_shop_minor": 4500, "currency": "EUR", "days": 2, "deposit_minor": 0, "first_day": "2026-07-18", "hold_expires_at": null, "next": "done", "paid_minor": 0, "reference": "OG-7K2P9", "stage": "booked", "total_minor": 4500 } ``` ## The Booking object - `asked` (object[]): Lines the guest has asked the shop to supply and each line's current state. They are not charged until assigned. - `answer_by` (string · date-time, required): The shop answers by then (the running short settings) - `days` (object[], required): Dates and parts of day requested by the guest. - `date` (string · date, required): Local calendar date. - `period` (string, required): Part of the day covered by this item. Values: `full`, `morning`, `afternoon`. - `difference_minor` (integer): offered: what the guest pays more (0: the same) - `key` (string, required): Client key of the line the guest asked the shop to supply. - `label` (object, required): Guest-visible name of the requested item. - `de` (string, required): - `en` (string, required): - `fr` (string, required): - `it` (string, required): - `line` (integer, required): The 1-based line of the request - `riders` (string[], required): Person keys - `sizes` (string[], required): The size asked first, then the other sizes that would do - `status` (string, required): State of the request: asked, offered, assigned, declined, expired or withdrawn. Values: `asked`, `offered`, `assigned`, `declined`, `expired`, `withdrawn`. - `at_shop_minor` (integer, required): Amount due at the shop, in minor currency units. - `currency` (string, required): ISO currency code for all money amounts in this answer. - `days` (integer, required): Number of days covered by the booking. - `deposit_minor` (integer, required): What is paid online: the deposit, or the total for full; 0 at the shop or for a request - `first_day` (string · date, required): First local rental day. - `hold_expires_at` (string · date-time, required): Null once confirmed - `next` (string, required): Next action: done, pay_deposit, pay_full or requested. Values: `done`, `pay_deposit`, `pay_full`, `requested`. - `paid_minor` (integer, required): Amount already paid, in minor currency units. - `payment_choice` (string): Null for a request Values: `deposit`, `full`, `at_shop`. - `promo` (object): Promotion code applied to the booking, when available. - `capped` (boolean, required): The shop's most discount per booking limited the basket - `code` (string, required): Promotion code that reduced the booking total. - `discount_minor` (integer, required): What the code took off the total, VAT included - `reference` (string, required): Guest-facing booking reference. - `stage` (string, required): Current booking stage. Values: `request`, `lapsed`, `waiting_payment`, `not_finished`, `needs_you`, `booked`, `not_collected`, `out`, `late`, `back`, `cancelled`. - `total_minor` (integer, required): Total price in minor currency units. - `view_token` (string): Confirmation view token, returned when a booking is confirmed immediately for payment at the shop. ```json { "at_shop_minor": 4500, "currency": "EUR", "days": 2, "deposit_minor": 0, "first_day": "2026-07-18", "hold_expires_at": null, "next": "done", "paid_minor": 0, "reference": "OG-7K2P9", "stage": "booked", "total_minor": 4500 } ``` # Payments # Payments Start the deposit payment for the current guest booking. ## Start a deposit payment `POST /v1/public/bookings/current/deposit` A guest starts Stripe Checkout for the current booking with Authorization: Booking; an invalid capability returns 404 and payment conflicts return 409. ### Parameters - `Authorization` (string, required): Guest booking capability in the Booking authorization scheme. - `X-Outdoor-Grid-Site-Key` (string): Site key for a shop website server. Optional when the published shop host identifies the shop. ### Body parameters - `idempotency_key` (string · uuid, required): Unique UUID for a safe retry of this request. ### Returns A JSON response with checkout_url, expires_at. ### Errors - 404: The Booking capability or current booking was not found. - 409: The booking or payment account cannot start this payment. - 422: A field or parameter failed validation. ### Request ```bash API_BASE="https://api.outdoorgrid.ai" curl -X POST "$API_BASE/v1/public/bookings/current/deposit" \ -H "Authorization: Booking $BOOKING_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "idempotency_key": "7a6f9780-7d6f-4c6f-8f6f-7e6f9dcc816f" }' ``` ```javascript const credential = process.env.BOOKING_TOKEN; const url = "https://api.outdoorgrid.ai" + "/v1/public/bookings/current/deposit"; const response = await fetch(url, { method: "POST", headers: { "Authorization": `Booking ${credential}`, "Content-Type": "application/json", }, body: JSON.stringify({ "idempotency_key": "7a6f9780-7d6f-4c6f-8f6f-7e6f9dcc816f" }), }); const data = await response.json(); ``` ```python import os import requests credential = os.environ["BOOKING_TOKEN"] authorization = f"Booking {credential}" url = ( "https://api.outdoorgrid.ai" "/v1/public/bookings/current/deposit" ) response = requests.post( url, headers={ "Authorization": authorization, "Content-Type": "application/json", }, json={ "idempotency_key": ( "7a6f9780-7d6f-4c6f-8f6f" "-7e6f9dcc816f" ), }, timeout=10, ) response.raise_for_status() print(response.json()) ``` ### Response ```json { "checkout_url": "https://example.com/bikes", "expires_at": "2026-07-18T09:00:00Z" } ``` ## The Payment object - `at_shop_without_rentals` (boolean, required): A basket without rented sizes (tour seats, extras without sizes) may also choose at_shop - `choices` (string[], required): Payment choices accepted for a basket under the shop's default rules; a product can narrow them. - `deposit_min_minor` (integer, required): Deposit mode only: the least deposit of a booking - `deposit_percent` (integer, required): Deposit mode only: the share of the total paid online, rounded up to whole units - `mode` (string, required): The shop's online mode Values: `pay_at_shop`, `deposit`. ```json { "at_shop_without_rentals": true, "choices": [ "deposit" ], "deposit_min_minor": 4500, "deposit_percent": 2, "mode": "pay_at_shop" } ``` # Directory # Directory Find public shops by place and the activities they offer. ## Find shops `GET /v1/public/directory/shops` The ChatGPT app or a website lists published shops near a place without signing in; invalid filters return 422 and rate limits return 429. ### Parameters - `latitude` (number): Degrees; with longitude - `longitude` (number): Degrees; with latitude - `radius_km` (integer): With coordinates only; default 50 - `place` (string): 2 to 80 characters (trimmed): a town, province, region or country, or a two letter country code - `activity` (string): rentals, tours, or a kind of ride id such as e-bike - `language` (string): The language of kind names; default en - `limit` (integer): Default 8 ### Body parameters None. ### Returns A JSON response with shops. ### Errors - 422: invalid_request: a bound, latitude without longitude (or the reverse), or radius_km without coordinates - 429: Too many requests - 503: The public booking login is not configured ### Request ```bash API_BASE="https://api.outdoorgrid.ai" curl -X GET "$API_BASE/v1/public/directory/shops" ``` ```javascript const url = "https://api.outdoorgrid.ai" + "/v1/public/directory/shops"; const response = await fetch(url, { method: "GET", headers: { }, }); const data = await response.json(); ``` ```python import os import requests url = ( "https://api.outdoorgrid.ai" "/v1/public/directory/shops" ) response = requests.get( url, headers={ }, timeout=10, ) response.raise_for_status() print(response.json()) ``` ### Response ```json { "shops": [ { "name": "Trail bike rental", "offers": { "rentals": true, "tours": true }, "place": { "country": "Trail bike rental", "latitude": 46.54, "longitude": 12.14, "region": "Trail bike rental", "town": "Trail bike rental" }, "slug": "alpine-trail-demo" } ] } ``` ## The Shop object - `cover_url` (string): A public signed link to the site's first hero photo the shop uploaded, or null - `distance_km` (number): From the coordinates to that place, one decimal; null without coordinates - `from_price` (object): null when no online rental is priced - `amount_minor` (integer, required): The cheapest first day of the shop's online rentals, in minor units - `currency` (string, required): The shop's currency, ISO 4217 - `languages` (string[]): The languages of the shop's site - `logo_url` (string): A public signed link to the logo, or null - `name` (string, required): Name shown to guests. - `offers` (object, required): Whether this shop offers rentals or tours and which ride kinds it publishes. - `rental_kinds` (object[]): The published site's kinds of ride, by sort - `id` (string, required): A kind of ride the shop publishes on its site, for example "e-bike" - `name` (string, required): In the language asked for, else English, else the first - `rentals` (boolean, required): At least one active rental product online - `tours` (boolean, required): At least one active group or private tour online - `place` (object, required): The matching guest-visible place nearest the coordinates, else the first. Never a street, phone, email or person - `country` (string): Two letter country code, for example "IT" - `latitude` (number): The place on the map; null when the shop has not set it - `longitude` (number): Longitude of this public place; null when the shop has not supplied it. - `region` (string): The region, else the province - `town` (string): The place's town (address.city) - `site_url` (string): The shop's booking page, where the guest books and pays - `slug` (string, required): The shop's address name, as in https://{slug}.outdoorgrid.ai ```json { "name": "Trail bike rental", "offers": { "rentals": true, "tours": true }, "place": { "country": "Trail bike rental", "latitude": 46.54, "longitude": 12.14, "region": "Trail bike rental", "town": "Trail bike rental" }, "slug": "alpine-trail-demo" } ``` # Shop MCP tools # Shop MCP tools ## Shop basics ### shop_context The shop as this person sees it: name, time zone, today, currency, places with their ids, modules and the person's role. No database call. ```json { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "shop_context", "arguments": {} } } ``` Result example: ```json { "jsonrpc": "2.0", "id": 1, "result": { "content": [ { "type": "text", "text": "Alpine & Trail Demo is open today from 09:00 to 18:00. Currency: EUR. Time zone: Europe/Rome." } ] } } ``` ### find Search every area of the shop the person can open for a name, number or reference. Use it to find what someone means before a narrower tool. When a name matches a few records it gives a card to ask which one; when the person picked one on that card, call find with their words and it answers with that one record. - `q` (string, required): What to look for: a name, a number, a reference. ```json { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "find", "arguments": { "q": "Trail bike rental" } } } ``` Result example: ```json { "jsonrpc": "2.0", "id": 1, "result": { "content": [ { "type": "text", "text": "Found a trail bike rental and a guided mountain ride." } ] } } ``` ### shop_report A report for a question no other read answers: counts and sums over a range of days (from and to, at most two years), grouped by up to 3 dimensions, with filters. Use the fixed reads first (bookings_read, money_takings, balances_read, workshop_read). Datasets: bookings (a row is a booking, on its first day): group by day, week, month, weekday, location, kind, source, came_from, state, stage, money_status, customer_country, staff; measures bookings, riders, days, total, paid, due, average_total; booking_lines (a row is a booking line, on the booking's first day): group by day, week, month, weekday, location, booking_kind, source, product, product_kind, sell_kind, state; measures lines, quantity, gross; rental_days (a row is a unit on hire, on each day it is out): group by day, week, month, weekday, location, product, product_kind; measures unit_days, bookings; payments (a row is a payment or refund, on the day it was taken): group by day, week, month, location, method, kind, deposit, booking_kind, staff; measures payments, paid, refunded, net; workshop_jobs (a row is a workshop job, on the day it was taken in): group by day, week, month, location, state, kind, subject_kind, source, mechanic, customer_country; measures jobs, collected, gross, worked_minutes, planned_minutes; till_sales (a row is a till sale, on its day): group by day, week, month, location, state, payment_state, refund_state, staff, customer_country; measures sales, lines, total, goods_gross, discount, refunded. Bookings and booking lines leave out unfinished drafts and holds that ran out; cancelled bookings count unless you filter state open. Till sales leave out voided sales; payments are paid ones only. Money measures need the money totals permission; staff, mechanic and customer_country need the team or customer permission. totals are over every group; quote rows and totals exactly, never add, convert or round. truncated means there are more groups than rows; rows_cut means you see only the first rows_shown of them. - `dataset` (string, required): What to count: bookings, booking_lines, rental_days (one row per unit on hire per day), payments, workshop_jobs or till_sales. Values: `bookings`, `booking_lines`, `rental_days`, `payments`, `workshop_jobs`, `till_sales`. - `from` (string · date, required): The first day, YYYY-MM-DD, in the shop's time zone. - `to` (string · date, required): The last day, YYYY-MM-DD, at most 731 days after from. - `group_by` (string[]): Up to 3 dimensions of the dataset to group by. None: one row of totals. - `measures` (string[], required): 1 to 6 measures of the dataset. - `filters` (any[]): Up to 5 filters on its dimensions. - `order` (any): Default: time dimensions oldest first, else the first measure largest first. - `limit` (integer): How many groups at most (1 to 200). - `location_ids` (string · uuid[]): Place ids from shop_context, only when the person named a place. ```json { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "shop_report", "arguments": { "dataset": "bookings", "from": "2026-07-18", "to": "2026-07-18", "measures": [ "bookings" ] } } } ``` Result example: ```json { "jsonrpc": "2.0", "id": 1, "result": { "content": [ { "type": "text", "text": "Today: three bookings, two pickups, and one return." } ] } } ``` ### places_read The shop's places this person may see, each with its kind, town, time zone and opening hours: whether it is open today and today's hours, then each of the next seven dates (days) with that date's hours (open false: closed that date, with the reason when a closed day shuts it; open null: no opening hours set for that date), and its next closed days with their reason. For a date further ahead, say the hours may differ. No phone, email or street address. - `location_ids` (string · uuid[]): Place ids from shop_context, only when the person named a place. ```json { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "places_read", "arguments": { "location_ids": null } } } ``` Result example: ```json { "jsonrpc": "2.0", "id": 1, "result": { "content": [ { "type": "text", "text": "The shop's places this person may see, each with its kind, town, time zone and opening hours: whether it is open today and today's hours, then each of the next seven dates (days) with that date's hours (open false: closed that date, with the reason when a closed day shuts it; open null: no opening hours set for that date), and its next closed days with their reason. For a date further ahead, say the hours may differ. No phone, email or street address." } ] } } ``` ### opening_days_read Whether each place is open on each day of a range, beyond the next seven days places_read gives: 'is the shop open on 8 December', 'which days are we closed in December'. first_day to last_day (at most 62 days; one day: both the same). One row per place and day: open true with its hours, false when closed (closed_reason when a closed day shuts it), null when no opening hours are set for that day. Facts open_days, closed_days, no_hours_days, and open (yes, no or unknown) for one place and one day: quote display exactly; never count rows yourself. - `first_day` (string · date): First day; default today. - `last_day` (string · date): Last day, at most 62 days after first_day; default first_day + 6. One day: first_day and last_day the same. - `location_ids` (string · uuid[]): Place ids from shop_context, only when the person named a place. ```json { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "opening_days_read", "arguments": { "first_day": null, "last_day": null, "location_ids": null } } } ``` Result example: ```json { "jsonrpc": "2.0", "id": 1, "result": { "content": [ { "type": "text", "text": "Whether each place is open on each day of a range, beyond the next seven days places_read gives: 'is the shop open on 8 December', 'which days are we closed in December'. first_day to last_day (at most 62 days; one day: both the same). One row per place and day: open true with its hours, false when closed (closed_reason when a closed day shuts it), null when no opening hours are set for that day. Facts open_days, closed_days, no_hours_days, and open (yes, no or unknown) for one place and one day: quote display exactly; never count rows yourself." } ] } } ``` ### search_docs Search Outdoor Grid's public guides for how the product works and how to set it up. Returns up to five pages. - `q` (string, required): Words to search for in Outdoor Grid's public guides. ```json { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "search_docs", "arguments": { "q": "Trail bike rental" } } } ``` Result example: ```json { "jsonrpc": "2.0", "id": 1, "result": { "content": [ { "type": "text", "text": "Found the rental pickup guide and the cancellation policy." } ] } } ``` ### get_doc Read one Outdoor Grid public guide as Markdown by its docs path. - `path` (string, required): A guide path such as /docs/your-ai/connect-chatgpt or your-ai/connect-chatgpt. ```json { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "get_doc", "arguments": { "path": "Trail bike rental" } } } ``` Result example: ```json { "jsonrpc": "2.0", "id": 1, "result": { "content": [ { "type": "text", "text": "Rental pickup: bring your booking reference to the shop counter from 09:00." } ] } } ``` ## Equipment and stock ### inventory_find Rental bikes and gear by number, serial or model, with their state now and where they are. Never parts on the shelf (tyres, brake pads): stock_find. - `q` (string): Bike or item number, serial, or the product name or kind, for example E-MTB. - `state` (string): Only items in this state, for example ready, out, needs_check. - `location_ids` (string · uuid[]): Place ids from shop_context, only when the person named a place. - `limit` (integer): How many rows at most (1 to 50). ```json { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "inventory_find", "arguments": { "q": null, "state": null, "location_ids": null, "limit": 20 } } } ``` Result example: ```json { "jsonrpc": "2.0", "id": 1, "result": { "content": [ { "type": "text", "text": "Trail bike, size M: 3 units in the fleet." } ] } } ``` ### inventory_status How many rental bikes and gear items are in each state (ready, out, needs a check, out of service). Counts come from here, never add them up yourself. Never parts in stock: stock_find. - `q` (string): Narrow to a product name or kind, for example E-MTB or e-bike. - `state` (string): - `location_ids` (string · uuid[]): Place ids from shop_context, only when the person named a place. ```json { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "inventory_status", "arguments": { "q": null, "state": null, "location_ids": null } } } ``` Result example: ```json { "jsonrpc": "2.0", "id": 1, "result": { "content": [ { "type": "text", "text": "Trail bike, size M: ready to rent." } ] } } ``` ### inventory_availability What is free to rent per product and size, free of how many, on each day of a range (1 to 31 days), as the booking screens count it. Facts: free and of_total for one day, the tightest product and day, how many cells are full. For a product over all its sizes quote free_per_product. Quote facts[*].display exactly; never add, convert or round. - `first_day` (string · date, required): First day, YYYY-MM-DD, in the shop's time zone. - `days` (integer): How many days from first_day, one cell each (1 to 31). - `q` (string): Narrow by words, every word must match: a product, type or size, or a type and a size together, for example e-bike, e-bike M, Shuttle XS. - `location_ids` (string · uuid[]): Place ids from shop_context, only when the person named a place. - `cursor` (string): Where to carry on, from a list a read gave earlier. Only for Show all. - `limit` (integer): How many rows at most (1 to 50). ```json { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "inventory_availability", "arguments": { "first_day": "2026-07-18" } } } ``` Result example: ```json { "jsonrpc": "2.0", "id": 1, "result": { "content": [ { "type": "text", "text": "Trail bike, size M: available on 18 July 2026." } ] } } ``` ### damage_read Damage: rentals that came back damaged or needing a check, damage on the vehicles, and where each case is now (damaged, needs a check, in the workshop, fixed), newest first. Facts: total, open, in_workshop, and charged (what customers were charged for damage, money scope only). Quote facts[*].display exactly; never add, convert or round. not_covered names sources this person cannot see. - `state` (string): open: not fixed yet (damaged, needs a check, in the workshop); all: every report in the range, fixed ones too. Values: `open`, `all`. - `first_day` (string · date): Reports from this day on. Default: no lower bound for open, the last 30 days for all. - `last_day` (string · date): Up to this day, at most 366 days after first_day. Default: today. - `source` (string): rental_return: rentals that came back damaged; vehicle: the vehicles; workshop: the cases the workshop holds a job for. Values: `all`, `rental_return`, `vehicle`, `workshop`. - `location_ids` (string · uuid[]): Place ids from shop_context, only when the person named a place. - `facet` (string): Only for Show all: a quick filter from the card. Values: `rental_return`, `vehicle`, `workshop`. - `cursor` (string): Where to carry on, from a list a read gave earlier. Only for Show all. - `limit` (integer): How many rows at most (1 to 50). ```json { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "damage_read", "arguments": { "state": "open", "first_day": null, "last_day": null, "source": "all", "location_ids": null, "facet": null, "cursor": null, "limit": 20 } } } ``` Result example: ```json { "jsonrpc": "2.0", "id": 1, "result": { "content": [ { "type": "text", "text": "No open damage record for the selected bike." } ] } } ``` ### workshop_read Workshop jobs. mode bench: what is being worked on (checked in, in progress, waiting for the customer or for parts); waiting_parts: jobs waiting for a part, with the parts; ready: jobs ready to collect, oldest first, and whether the customer was told; one: one job by its reference (W-1042). A job is late when its promised day has passed and it is not ready; late and waiting for parts can both be true. facts count every open job the question covers by state (on_bench, booked, waiting_parts, waiting_customer, ready, not_told); total and late count this mode's jobs. Quote facts[*].display exactly, never add or round. - `mode` (string, required): bench: jobs being worked on; waiting_parts: jobs waiting for a part; ready: jobs ready to collect; one: one job in full. Values: `bench`, `waiting_parts`, `ready`, `one`. - `location_ids` (string · uuid[]): Place ids from shop_context, only when the person named a place. - `q` (string): A bike number, customer name or job words. - `job_ref` (string): mode one: the job reference the person said. - `facet` (string): Only for Show all: a quick filter from the card. Values: `late`, `not_told`. - `cursor` (string): Where to carry on, from a list a read gave earlier. Only for Show all. - `limit` (integer): How many rows at most (1 to 50). ```json { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "workshop_read", "arguments": { "mode": "bench" } } } ``` Result example: ```json { "jsonrpc": "2.0", "id": 1, "result": { "content": [ { "type": "text", "text": "One bike service is due tomorrow." } ] } } ``` ### vehicles_read Vans and other vehicles. mode list: every van with its state now (ready, out_today, in_the_workshop, off_the_road), next service and papers; pass service_due_before for 'which vans need a service' (the last day of the period). mode one: one van in full by its name, number (V-03) or plate in q. mode free: which vans are free over an interval, from and to with the shop's offset (at most 14 days); each busy van says what holds it (run, hire, out_of_service, workshop). Quote facts[*].display exactly; never count rows yourself. - `mode` (string, required): list: the vans; one: one van in full; free: vans free in an interval. Values: `list`, `one`, `free`. - `q` (string): A van's name, number or plate words. Needed for mode one. - `from` (string · date-time): mode free: interval start, with the shop's offset. - `to` (string · date-time): mode free: interval end, at most 14 days after from. - `service_due_before` (string · date): mode list: only vans whose service is due on or before this day. - `location_ids` (string · uuid[]): Place ids from shop_context, only when the person named a place. - `facet` (string): Only for Show all: a quick filter from the card. Values: `service_due`, `papers_due`, `not_ready`, `free`, `busy`. - `cursor` (string): Where to carry on, from a list a read gave earlier. Only for Show all. - `limit` (integer): How many rows at most (1 to 50). ```json { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "vehicles_read", "arguments": { "mode": "list" } } } ``` Result example: ```json { "jsonrpc": "2.0", "id": 1, "result": { "content": [ { "type": "text", "text": "Trail bike, size M: ready for the next rental." } ] } } ``` ### stock_find Parts, accessories and consumables the shop keeps on the shelf (tyres, tubes, brake pads, chains, cassettes; gomme, copertoni, pastiglie, catene) and how many are in stock, per place. Searches like the stock screen: name, brand, category, part code, barcode, sizes such as 29, English or Italian words, typos. facts: parts (that match), parts_in_stock, units_on_hand and units_free over every match; by_place the same per place. Quote facts[*].display; never add them up. Never for rental bikes or gear (inventory_find). - `q` (string, required): The part in the person's words, English or Italian, without 'how many' or 'in stock': tyres, 29 tyres, brake pads, pastiglie, Shimano pads, a brand, a part code or a barcode. - `limit` (integer): How many parts to list (1 to 25). The counts cover every match. ```json { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "stock_find", "arguments": { "q": "Trail bike rental" } } } ``` Result example: ```json { "jsonrpc": "2.0", "id": 1, "result": { "content": [ { "type": "text", "text": "Brake pads: two matching stock items." } ] } } ``` ### stock_levels Clothes and other products the shop sells off the shelf by size and colour (t-shirts, hoodies, jackets, socks, gloves; magliette, felpe), and how many are on the shelf per size: 'how many white t-shirts do I have in the shop', 'do we still have the hoodie in M'. q is the product without colour or size words; colour, size and place only when said. Per size: on_shelf, free, sold_4w (sold in 4 weeks), per_week, and note (when it runs out or since when it is sold out: quote it as it is). facts: products, units_on_shelf, units_free; quote facts[*].display, never add them up. place_match none or several: the counts cover every place. Parts and consumables without sizes (tyres, pads): stock_find. - `q` (string, required): The product in the person's words, without the colour, the size, 'how many' or 'in the shop' when you can split them: t-shirt, hoodie, socks, maglietta, a brand or a code. - `colour` (string): The colour, only when the person said one: white, bianco. - `size` (string): The size, only when the person said one: M, 42, XL. - `place` (string): The place as the person said it, only when they named one: the lake shop, Riva. - `limit` (integer): How many products to list (1 to 10). ```json { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "stock_levels", "arguments": { "q": "Trail bike rental" } } } ``` Result example: ```json { "jsonrpc": "2.0", "id": 1, "result": { "content": [ { "type": "text", "text": "Brake pads: 12 on hand, reorder point 6." } ] } } ``` ### stock_reorder_read What is running low and what to reorder: products below their minimum or out of stock, per place, out of stock first. Each row: product (with colour and size), place, on_hand, free, min_qty, reorder_qty, to_order (how many to order now, after what is on order), on_order (on open purchase orders), supplier. facts: low, out_of_stock, to_order_units, on_order_units; quote facts[*].display exactly, never add rows up. what out: out of stock only. One product by size: stock_levels. - `what` (string): low: below the minimum or out of stock (default); out: out of stock only. Values: `low`, `out`. - `q` (string): The product's words (name, code, brand, colour, size), only when the person named products: 'pads', 'tubes 29'. - `location_ids` (string · uuid[]): Place ids from shop_context, only when the person named a place. - `limit` (integer): How many rows at most (1 to 50). ```json { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "stock_reorder_read", "arguments": { "what": "low", "q": null, "location_ids": null, "limit": 20 } } } ``` Result example: ```json { "jsonrpc": "2.0", "id": 1, "result": { "content": [ { "type": "text", "text": "What is running low and what to reorder: products below their minimum or out of stock, per place, out of stock first. Each row: product (with colour and size), place, on_hand, free, min_qty, reorder_qty, to_order (how many to order now, after what is on order), on_order (on open purchase orders), supplier. facts: low, out_of_stock, to_order_units, on_order_units; quote facts[*].display exactly, never add rows up. what out: out of stock only. One product by size: stock_levels." } ] } } ``` ### demand_misses_read Customers turned away: the days customers asked, on the website or at the desk, for something the shop did not have free, by day, product and size, with how many times it was asked and how many units were short. Use it for 'did we turn anyone away', 'what did people ask for that we did not have', 'which sizes run out'. Default the last 365 days; first_day and last_day together, at most 366 days apart. Quote facts[*].display exactly (misses, days, units_short); never count rows yourself. misses 0 means none are recorded: say so, never that there is no data. - `first_day` (string · date): The first asked day counted. With last_day. - `last_day` (string · date): The last asked day, at most 366 days after first_day. Leave both out for the last 365 days. - `location_ids` (string · uuid[]): Place ids from shop_context, only when the person named a place. - `limit` (integer): How many rows at most (1 to 50). ```json { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "demand_misses_read", "arguments": { "first_day": null, "last_day": null, "location_ids": null, "limit": 20 } } } ``` Result example: ```json { "jsonrpc": "2.0", "id": 1, "result": { "content": [ { "type": "text", "text": "Customers turned away: the days customers asked, on the website or at the desk, for something the shop did not have free, by day, product and size, with how many times it was asked and how many units were short. Use it for 'did we turn anyone away', 'what did people ask for that we did not have', 'which sizes run out'. Default the last 365 days; first_day and last_day together, at most 366 days apart. Quote facts[*].display exactly (misses, days, units_short); never count rows yourself. misses 0 means none are recorded: say so, never that there is no data." } ] } } ``` ### fleet_upkeep_read The rental fleet's upkeep and earnings per unit. mode service_due: units due a service now or soon (Which bikes are due a service?), each with its rule, how much it was used of the interval and its state (overdue, due, soon); facts due, overdue, soon. mode earnings: what each unit earned, cost in repairs and left this season (season is the period), lowest first; facts units, rental_days, earned, repairs, net. mode retire: which units to sell (Which bikes should I retire or sell?), each with its reason (repairs_over_earnings, loses_money, low_use, often_repaired); facts to_sell and advice (the unit numbers to name). Pass q for a kind or model (bikes, e-bikes). Quote facts[*].display exactly; never add, convert or round. If hidden names money, give no amount. - `mode` (string, required): service_due: units due a service now or soon; earnings: what each unit earned and cost in repairs this season; retire: which units to sell, each with its reason. Values: `service_due`, `earnings`, `retire`. - `q` (string): Only units of this kind, model or number, as the person named it (bikes, e-bikes, skis, 7). - `location_ids` (string · uuid[]): Place ids from shop_context, only when the person named a place. - `limit` (integer): How many rows at most (1 to 50). ```json { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "fleet_upkeep_read", "arguments": { "mode": "service_due" } } } ``` Result example: ```json { "jsonrpc": "2.0", "id": 1, "result": { "content": [ { "type": "text", "text": "The rental fleet's upkeep and earnings per unit. mode service_due: units due a service now or soon (Which bikes are due a service?), each with its rule, how much it was used of the interval and its state (overdue, due, soon); facts due, overdue, soon. mode earnings: what each unit earned, cost in repairs and left this season (season is the period), lowest first; facts units, rental_days, earned, repairs, net. mode retire: which units to sell (Which bikes should I retire or sell?), each with its reason (repairs_over_earnings, loses_money, low_use, often_repaired); facts to_sell and advice (the unit numbers to name). Pass q for a kind or model (bikes, e-bikes). Quote facts[*].display exactly; never add, convert or round. If hidden names money, give no amount." } ] } } ``` ### gear_booked Gear booked over a range of days, from the shop's own bookings: how many skis, bikes or helmets are booked, the most booked on one day (facts.booked_peak, facts.peak_day), the busiest days and each model with how many it owns. Answers 'how many skis are booked next month', 'what is our busiest day'. Quote facts[*].display and suggestion.say exactly; never add, convert or round, never invent a number; if complete is false say 'at least'. One call for the whole range; for several gear questions call the gear tools together in one step. - `first_day` (string · date, required): First day of the range, YYYY-MM-DD, in the shop's time zone (today for 'coming up'). - `last_day` (string · date, required): Last day of the range, YYYY-MM-DD, up to 61 days after first_day (next month: today to 30 days on). The same as first_day for one day. - `q` (string): Gear words only, to narrow to a type, model or size: skis, e-bike, helmet, kids. Never the question ('how many skis' is q skis); leave it out for all gear. - `location_ids` (string · uuid[]): Place ids from shop_context, only when the person named a place. - `cursor` (string): Where to carry on, from a list a read gave earlier. Only for Show all. - `limit` (integer): How many rows at most (1 to 50). ```json { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "gear_booked", "arguments": { "first_day": "2026-07-18", "last_day": "2026-07-18" } } } ``` Result example: ```json { "jsonrpc": "2.0", "id": 1, "result": { "content": [ { "type": "text", "text": "Gear booked over a range of days, from the shop's own bookings: how many skis, bikes or helmets are booked, the most booked on one day (facts.booked_peak, facts.peak_day), the busiest days and each model with how many it owns. Answers 'how many skis are booked next month', 'what is our busiest day'. Quote facts[*].display and suggestion.say exactly; never add, convert or round, never invent a number; if complete is false say 'at least'. One call for the whole range; for several gear questions call the gear tools together in one step." } ] } } ``` ### gear_short Short days for gear over a range: the days every rentable unit of a model is taken (short) or more is booked than there is (over), per model with the days and how many short. Answers 'are we short', 'is there a shortage of equipment', 'which days are we short'. When facts.short_days is 0 say plainly there is no shortage for the period. Quote facts[*].display and suggestion.say exactly; never add, convert or round, never invent a number; if complete is false say 'at least'. One call for the whole range; for several gear questions call the gear tools together in one step. - `first_day` (string · date, required): First day of the range, YYYY-MM-DD, in the shop's time zone (today for 'coming up'). - `last_day` (string · date, required): Last day of the range, YYYY-MM-DD, up to 61 days after first_day (next month: today to 30 days on). The same as first_day for one day. - `q` (string): Gear words only, to narrow to a type, model or size: skis, e-bike, helmet, kids. Never the question ('how many skis' is q skis); leave it out for all gear. - `location_ids` (string · uuid[]): Place ids from shop_context, only when the person named a place. - `cursor` (string): Where to carry on, from a list a read gave earlier. Only for Show all. - `limit` (integer): How many rows at most (1 to 50). ```json { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "gear_short", "arguments": { "first_day": "2026-07-18", "last_day": "2026-07-18" } } } ``` Result example: ```json { "jsonrpc": "2.0", "id": 1, "result": { "content": [ { "type": "text", "text": "Short days for gear over a range: the days every rentable unit of a model is taken (short) or more is booked than there is (over), per model with the days and how many short. Answers 'are we short', 'is there a shortage of equipment', 'which days are we short'. When facts.short_days is 0 say plainly there is no shortage for the period. Quote facts[*].display and suggestion.say exactly; never add, convert or round, never invent a number; if complete is false say 'at least'. One call for the whole range; for several gear questions call the gear tools together in one step." } ] } } ``` ### gear_buy What to buy or move for the short days of a range: per model the read's own suggestion (buy, move from another place, or fully booked with no booking at risk) and facts.buy_units, facts.move_units. Answers 'do I need to buy more', 'what should I buy'. Be honest: when nothing is short there is no need to buy more. Recommend only what suggestion says. Quote facts[*].display and suggestion.say exactly; never add, convert or round, never invent a number; if complete is false say 'at least'. One call for the whole range; for several gear questions call the gear tools together in one step. - `first_day` (string · date, required): First day of the range, YYYY-MM-DD, in the shop's time zone (today for 'coming up'). - `last_day` (string · date, required): Last day of the range, YYYY-MM-DD, up to 61 days after first_day (next month: today to 30 days on). The same as first_day for one day. - `q` (string): Gear words only, to narrow to a type, model or size: skis, e-bike, helmet, kids. Never the question ('how many skis' is q skis); leave it out for all gear. - `location_ids` (string · uuid[]): Place ids from shop_context, only when the person named a place. - `cursor` (string): Where to carry on, from a list a read gave earlier. Only for Show all. - `limit` (integer): How many rows at most (1 to 50). ```json { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "gear_buy", "arguments": { "first_day": "2026-07-18", "last_day": "2026-07-18" } } } ``` Result example: ```json { "jsonrpc": "2.0", "id": 1, "result": { "content": [ { "type": "text", "text": "What to buy or move for the short days of a range: per model the read's own suggestion (buy, move from another place, or fully booked with no booking at risk) and facts.buy_units, facts.move_units. Answers 'do I need to buy more', 'what should I buy'. Be honest: when nothing is short there is no need to buy more. Recommend only what suggestion says. Quote facts[*].display and suggestion.say exactly; never add, convert or round, never invent a number; if complete is false say 'at least'. One call for the whole range; for several gear questions call the gear tools together in one step." } ] } } ``` ### store_products_find Products in the shop's online store by words (a name, a brand, a model): their slug, state (draft, live, archived), price range in cents and what they still need before going live. Use it before any other store tool that names a product, and say titles, never slugs. - `q` (string, required): The product in the person's words: a name, a brand, a model. - `limit` (integer): How many rows at most (1 to 50). ```json { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "store_products_find", "arguments": { "q": "Trail bike rental" } } } ``` Result example: ```json { "jsonrpc": "2.0", "id": 1, "result": { "content": [ { "type": "text", "text": "Products in the shop's online store by words (a name, a brand, a model): their slug, state (draft, live, archived), price range in cents and what they still need before going live. Use it before any other store tool that names a product, and say titles, never slugs." } ] } } ``` ### store_proposals The Oracle's store proposals (price lists, product pages, photo cleanups, words, grouping) with how many price changes, new models, already right and need the person each holds. Say the say sentence; they review and apply them in Store, Approvals. - `state` (string): to_review (the default) for what waits; applied for what was done. Values: `to_review`, `applied`, `undone`, `discarded`. - `kind` (string): Only one kind, when asked. Values: `price_list`, `link`, `photos`, `words`, `grouping`, `markdown`, `stranded`. - `limit` (integer): How many rows at most (1 to 50). ```json { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "store_proposals", "arguments": { "state": "to_review", "kind": null, "limit": 20 } } } ``` Result example: ```json { "jsonrpc": "2.0", "id": 1, "result": { "content": [ { "type": "text", "text": "The Oracle's store proposals (price lists, product pages, photo cleanups, words, grouping) with how many price changes, new models, already right and need the person each holds. Say the say sentence; they review and apply them in Store, Approvals." } ] } } ``` ## People and shifts ### people_find Team members and customers the person may see, by name, number or reference. - `q` (string): A name, number or reference. - `limit` (integer): How many rows at most (1 to 50). ```json { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "people_find", "arguments": { "q": null, "limit": 20 } } } ``` Result example: ```json { "jsonrpc": "2.0", "id": 1, "result": { "content": [ { "type": "text", "text": "Found one matching team member in the demo shop." } ] } } ``` ### people_on_duty Who is on a shift or a tour crew in a time window (at most 7 days). - `starts_at` (string · date-time, required): Window start, ISO date and time with the shop's offset. - `ends_at` (string · date-time, required): Window end, at most 7 days after the start. - `limit` (integer): How many rows at most (1 to 50). ```json { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "people_on_duty", "arguments": { "starts_at": "2026-07-18T09:00:00Z", "ends_at": "2026-07-18T09:00:00Z" } } } ``` Result example: ```json { "jsonrpc": "2.0", "id": 1, "result": { "content": [ { "type": "text", "text": "Two team members are on duty today." } ] } } ``` ### schedules_shifts The published shifts for a day range (at most 14 days). Crew see only their own shifts. - `first_day` (string · date, required): - `last_day` (string · date, required): At most 14 days after first_day. - `location_ids` (string · uuid[]): Place ids from shop_context, only when the person named a place. - `limit` (integer): How many rows at most (1 to 50). ```json { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "schedules_shifts", "arguments": { "first_day": "2026-07-18", "last_day": "2026-07-18" } } } ``` Result example: ```json { "jsonrpc": "2.0", "id": 1, "result": { "content": [ { "type": "text", "text": "Two shifts are scheduled for Saturday, 18 July." } ] } } ``` ### customer_read One customer: since when, their upcoming bookings (up to 3, with how many), how many bookings before and the last one's day, how many units of theirs came back damaged, what they still owe, whether the next booking's waiver is signed and whether a waiver is on file, their open workshop jobs and how many were done, and family: the customer (relation self) and each family rider with their newest sizes on file (height, weight, shoe, level, bike size; a size not listed was never recorded). Pass customer_id from a read in this request, or q with their name or a booking reference. If the answer says ambiguous, ask which one they mean (the choice card lists them) and call again with that customer_id; never guess. Quote facts[*].display exactly. Contact details are never returned. - `customer_id` (string · uuid): A customer id a read returned in this request. - `q` (string): The customer's name (or part of it) or a booking reference, when no read gave an id. ```json { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "customer_read", "arguments": { "customer_id": null, "q": null } } } ``` Result example: ```json { "jsonrpc": "2.0", "id": 1, "result": { "content": [ { "type": "text", "text": "The selected guest has one upcoming booking." } ] } } ``` ### time_off_read Time off and open shifts over a range of days (first_day to last_day, at most 31 days; default today and the next six days). Rows by kind: off (approved time off overlapping the days: person, leave_kind holiday, sick, off or permit, starts_on, ends_on, part day times), request (a time off request still waiting for a decision, whatever its days, with asked_on) and open_shift (a published shift with nobody on it: work_date, starts, ends, position, place, asks: how many asked to take it). what narrows to one kind. Facts people_off, open_requests, open_shifts: quote their display exactly; never count rows yourself. - `first_day` (string · date): First day; default today. - `last_day` (string · date): Last day, at most 31 days after first_day; default first_day + 6. - `what` (string): all; off: approved time off; requests: requests waiting for a decision; open_shifts: published shifts with nobody on them. Values: `all`, `off`, `requests`, `open_shifts`. - `location_ids` (string · uuid[]): Place ids from shop_context, only when the person named a place. - `facet` (string): Only for Show all: a quick filter from the card. Values: `off`, `requests`, `open_shifts`. - `limit` (integer): How many rows at most (1 to 50). ```json { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "time_off_read", "arguments": { "first_day": null, "last_day": null, "what": "all", "location_ids": null, "facet": null, "limit": 20 } } } ``` Result example: ```json { "jsonrpc": "2.0", "id": 1, "result": { "content": [ { "type": "text", "text": "Time off and open shifts over a range of days (first_day to last_day, at most 31 days; default today and the next six days). Rows by kind: off (approved time off overlapping the days: person, leave_kind holiday, sick, off or permit, starts_on, ends_on, part day times), request (a time off request still waiting for a decision, whatever its days, with asked_on) and open_shift (a published shift with nobody on it: work_date, starts, ends, position, place, asks: how many asked to take it). what narrows to one kind. Facts people_off, open_requests, open_shifts: quote their display exactly; never count rows yourself." } ] } } ``` ## Tours ### tours_departures Tour departures in a day range (at most 31 days), soonest first: each with its key, who guides and drives, seats left, and whether crew is missing or it is below the minimum. Facts: departures, below_minimum, crew_missing. For one departure in full (guests, waivers, crew slots), call tours_departure with its key. Quote facts[*].display exactly. - `first_day` (string · date, required): - `last_day` (string · date, required): At most 31 days after first_day. - `location_ids` (string · uuid[]): Place ids from shop_context, only when the person named a place. - `status` (string): - `facet` (string): Only for Show all: a quick filter from the card. Values: `crew_missing`, `below_minimum`. - `cursor` (string): Where to carry on, from a list a read gave earlier. Only for Show all. - `limit` (integer): How many rows at most (1 to 50). ```json { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "tours_departures", "arguments": { "first_day": "2026-07-18", "last_day": "2026-07-18" } } } ``` Result example: ```json { "jsonrpc": "2.0", "id": 1, "result": { "content": [ { "type": "text", "text": "The mountain ride has two published departures this week." } ] } } ``` ### tours_departure One tour departure in full, by a key tours_departures returned in this request: seats taken of seats, the meeting point, every crew slot with what is missing, the vehicle, and the guest bookings with how many have not signed a waiver. Facts: seats_taken, seats, seats_left, guests, people, not_signed, crew_missing, day, starts_at. Quote facts[*].display exactly. - `departure_key` (string, required): A departure key tours_departures returned in this request. ```json { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "tours_departure", "arguments": { "departure_key": "Trail bike rental" } } } ``` Result example: ```json { "jsonrpc": "2.0", "id": 1, "result": { "content": [ { "type": "text", "text": "Mountain ride, 18 July at 09:30: four places remain." } ] } } ``` ### tours_go_no_go_read Departures that have not started, are not cancelled and have fewer riders than their minimum, soonest first (first_day to last_day, at most 31 days; default today and the next 30 days): 'which tours should I call off', 'which departures are below the minimum'. Each with key, tour, starts_at, seats_taken, min_riders, short_by, go_no_go_at, decision as stored, and advice: call_off (the go or no go time has passed or is within 24 hours and it is still short), decide_soon (within 72 hours), wait (later), no_time (the tour sets no go or no go time). Facts below_minimum, call_off, decide_today, next_decision_at: quote display exactly; never count rows yourself. Nothing is cancelled by this read. - `first_day` (string · date): First day; default today. - `last_day` (string · date): Last day, at most 31 days after first_day; default first_day + 30. - `location_ids` (string · uuid[]): Place ids from shop_context, only when the person named a place. - `limit` (integer): How many rows at most (1 to 50). ```json { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "tours_go_no_go_read", "arguments": { "first_day": null, "last_day": null, "location_ids": null, "limit": 20 } } } ``` Result example: ```json { "jsonrpc": "2.0", "id": 1, "result": { "content": [ { "type": "text", "text": "Departures that have not started, are not cancelled and have fewer riders than their minimum, soonest first (first_day to last_day, at most 31 days; default today and the next 30 days): 'which tours should I call off', 'which departures are below the minimum'. Each with key, tour, starts_at, seats_taken, min_riders, short_by, go_no_go_at, decision as stored, and advice: call_off (the go or no go time has passed or is within 24 hours and it is still short), decide_soon (within 72 hours), wait (later), no_time (the tour sets no go or no go time). Facts below_minimum, call_off, decide_today, next_decision_at: quote display exactly; never count rows yourself. Nothing is cancelled by this read." } ] } } ``` ## Bookings and money ### money_takings Money for a day range by area, from the same money in as Finance: rentals, tours, shuttles (the value booked, by the booking's first day, not money received), the workshop, shop sales, online payments, the till (in its parts), or all of them with a breakdown; by day up to 31 days, by week beyond; compare with the period before or the same days last year. received (rentals, tours, shuttles, workshop, shop, all) is the money actually paid over the days for those streams; booked_paid and still_owed (rentals, tours, shuttles, all) are what the bookings starting in the period paid and still owe, owing_bookings how many owe. comparable no: the two periods hold different kinds of money (main_stream, compare_main_stream), so there is no change to give. Quote facts[*].display exactly: total, count, compare_total, change_pct with direction up, down or same; _total for all; for the till (from its tenders) paid_total, to_collect, on_account, refunded_total, kept_total; for the days in costs_window: booked_in, costs, booked_less_costs (the booked value less costs, never money the shop has) and booked_vs_costs (above, below or even); received_less_costs and received_result (made, lost or even, all only: the whole shop), the only figures that say whether the shop made money; with a comparison compare_booked_in, compare_costs_total, compare_booked_less_costs (or compare_costs not_recorded when the comparison has no cost on record); for one day came_in, the money that came in that day. Never add, convert or round. hidden booked_less_costs: costs are not shown for their role. - `area` (string, required): rentals, tours, shuttles: the value booked on bookings by their first day, as Finance counts money in (booked, not money received: received, booked_paid and still_owed say what came in and what is owed); workshop: the value of jobs collected (an invoice or link may be unpaid); shop: the till's goods sold (shop sales); online: paid online; till: what the till rang up, with paid, still to collect and refunded; all: every stream with a breakdown. Values: `rentals`, `tours`, `shuttles`, `workshop`, `shop`, `online`, `till`, `all`. - `first_day` (string · date, required): - `last_day` (string · date, required): At most 366 days after first_day. "This week" is Monday to today. Up to 31 days comes by day, longer by week. - `compare` (string): previous_period: the same length just before; last_year: the same days a year earlier. Values: `none`, `previous_period`, `last_year`. - `location_ids` (string · uuid[]): Place ids from shop_context, only when the person named a place. ```json { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "money_takings", "arguments": { "area": "rentals", "first_day": "2026-07-18", "last_day": "2026-07-18" } } } ``` Result example: ```json { "jsonrpc": "2.0", "id": 1, "result": { "content": [ { "type": "text", "text": "Today: EUR 180.00 collected from three bookings." } ] } } ``` ### bookings_read Bookings: who comes in (which=starting) and who returns (which=ending) on a day or over a range of days (day and to, for example this week: one call for the whole range), who is out on hire (out), or all of them; bookings matching a customer name or a reference (mode find); or one booking in full with its lines, the unit numbers given out, what is paid and owed, and its waivers (mode one, by the reference the person gave, OG-1014 or 1014, or a booking_id a read returned in this request). Facts give the total, the first time, on a day or range with which all also starting (pick ups), ending (returns) and on_hire (bookings with gear out over the day), how many still owe and how many have not signed: quote facts[*].display exactly; never add, convert or round. A range also gives summary: the bookings per week and per kind with how many still owe (owed as display text); answer 'how many bookings next month' from facts.total and the summary, never from the rows. Without the money scope the amounts are hidden. - `mode` (string, required): day: who comes in and who returns on a day; find: bookings matching words or a reference; one: one booking in full. Values: `day`, `find`, `one`. - `day` (string · date): mode day: the day, YYYY-MM-DD, in the shop's time zone; with to, the first day. - `to` (string · date): mode day: the last day of a range (this week, next week, a weekend), YYYY-MM-DD, up to 30 days after day. One call for the whole range, never one call per day. - `which` (string): mode day: starting (pick-ups), ending (returns), out (on hire and not back yet, on that day or any day of the range) or all. Values: `all`, `starting`, `ending`, `out`. - `q` (string): mode find: customer name words or a booking reference. - `booking_id` (string · uuid): mode one: a booking id a read returned in this request. - `reference` (string): mode one: the booking's reference as the person said or wrote it (OG-1014, og 1014, #1014 or just 1014). - `location_ids` (string · uuid[]): Place ids from shop_context, only when the person named a place. - `facet` (string): Only for Show all: a quick filter from the card. Values: `owes`, `not_signed`, `tours`, `transfers`, `starting`, `ending`. - `cursor` (string): Where to carry on, from a list a read gave earlier. Only for Show all. - `limit` (integer): How many rows at most (1 to 50). ```json { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "bookings_read", "arguments": { "mode": "day" } } } ``` Result example: ```json { "jsonrpc": "2.0", "id": 1, "result": { "content": [ { "type": "text", "text": "Booking OG-7K2P9 is confirmed for 18 July." } ] } } ``` ### balances_read What customers still owe on open bookings, largest first: the total to collect, how many bookings, how many are late (their first day has passed), and each booking with its customer, what it is and its amount. Quote facts[*].display exactly; never add, convert or round. Without the money scope the amounts are hidden. - `overdue_only` (boolean): Only bookings whose first day has passed and still owe. - `location_ids` (string · uuid[]): Place ids from shop_context, only when the person named a place. - `facet` (string): Only for Show all: a quick filter from the card. Values: `overdue`, `due_soon`. - `cursor` (string): Where to carry on, from a list a read gave earlier. Only for Show all. - `limit` (integer): How many rows at most (1 to 50). ```json { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "balances_read", "arguments": { "overdue_only": false, "location_ids": null, "facet": null, "cursor": null, "limit": 20 } } } ``` Result example: ```json { "jsonrpc": "2.0", "id": 1, "result": { "content": [ { "type": "text", "text": "The selected booking has EUR 45.00 due at the shop." } ] } } ``` ### finance_read The shop's Finance figures, as the Finance screen shows them. mode overview: money in and money out for a period (this month, this season, this year, or from and to) with the change against last year, fees, left over, money in by stream and money out by kind of cost (staff, stock, rent, vans, fees, software; rows with this period, last_year and change_pct), and the bank by month (bank_months, bank_line; facts cash_low and cash_low_month: when cash is lowest this year). mode forecast_month: what the forecast expects for one month (facts expected, low, high), why (steps from last year to the expected, each with its label and amount, events among them), every scenario's value, and how sure (confidence: quote it). Quote facts[*].display and the display text exactly; never add, subtract, convert or round. hidden details or cash: that part is not shown for their role. - `mode` (string, required): overview: money in and out for a period, costs by kind, fees, left over and the bank line by month (when cash is lowest). forecast_month: what the forecast expects for one month and why. Values: `overview`, `forecast_month`. - `period` (string): overview only: this month, this season (the busy months around today) or this year (the default). Values: `month`, `season`, `year`. - `from` (string · date): overview only: the first day of a custom range, with to. - `to` (string · date): overview only: the last day of a custom range, at most 366 days after from. - `month` (string): forecast_month only: the month, as 2026-10. - `scenario` (string): forecast_month only: expected (the default), careful or bold. - `location_ids` (string · uuid[]): Place ids from shop_context, only when the person named a place. ```json { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "finance_read", "arguments": { "mode": "overview" } } } ``` Result example: ```json { "jsonrpc": "2.0", "id": 1, "result": { "content": [ { "type": "text", "text": "July rental revenue so far: EUR 1,240.00." } ] } } ``` ### cancellations_read Cancelled bookings and no shows by reason, for bookings whose first day is in a span (default this month): each reason (customer_cancelled, did_not_come, other, or none when no reason was given) with its count, its share and, for someone who sees money, what those bookings were worth. Use it for 'how many cancellations in September', 'how many no shows', 'why do people cancel'. first_day and last_day together, at most 366 days apart. Quote facts[*].display exactly (cancelled, no_shows, customer_cancelled, bookings, cancel_rate_pct, lost); never add the rows yourself. - `first_day` (string · date): The first day of the bookings counted (their first day). With last_day. - `last_day` (string · date): The last day, at most 366 days after first_day. Leave both out for this month. - `location_ids` (string · uuid[]): Place ids from shop_context, only when the person named a place. ```json { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "cancellations_read", "arguments": { "first_day": null, "last_day": null, "location_ids": null } } } ``` Result example: ```json { "jsonrpc": "2.0", "id": 1, "result": { "content": [ { "type": "text", "text": "Cancelled bookings and no shows by reason, for bookings whose first day is in a span (default this month): each reason (customer_cancelled, did_not_come, other, or none when no reason was given) with its count, its share and, for someone who sees money, what those bookings were worth. Use it for 'how many cancellations in September', 'how many no shows', 'why do people cancel'. first_day and last_day together, at most 366 days apart. Quote facts[*].display exactly (cancelled, no_shows, customer_cancelled, bookings, cancel_rate_pct, lost); never add the rows yourself." } ] } } ``` ## Purchasing ### supplier_orders_read Purchase orders to suppliers: which are open (draft, sent, partly received), which are late (sent and past the expected day), when the next delivery is due, or every order. Each row: reference, supplier, state, lines, total (text to quote, money scope only), expected_on, sent_on, late, received (part received). facts: open_orders, drafts, sent, late, arriving_this_week, next_arrival, open_value; they cover every open order whatever the state asked. Quote facts[*].display exactly; never count rows or add totals yourself. - `state` (string): open: drafts, sent and partly received orders (default); late: sent and past their expected day; all: every order, open ones first. Values: `open`, `late`, `all`. - `q` (string): Part of a supplier's name or an order reference (PO-0012), only when the person named one. - `limit` (integer): How many rows at most (1 to 50). ```json { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "supplier_orders_read", "arguments": { "state": "open", "q": null, "limit": 20 } } } ``` Result example: ```json { "jsonrpc": "2.0", "id": 1, "result": { "content": [ { "type": "text", "text": "Purchase orders to suppliers: which are open (draft, sent, partly received), which are late (sent and past the expected day), when the next delivery is due, or every order. Each row: reference, supplier, state, lines, total (text to quote, money scope only), expected_on, sent_on, late, received (part received). facts: open_orders, drafts, sent, late, arriving_this_week, next_arrival, open_value; they cover every open order whatever the state asked. Quote facts[*].display exactly; never count rows or add totals yourself." } ] } } ``` ## Vat ### vat_read VAT for a quarter, the same figures as the Finance VAT screen: VAT on sales by rate, VAT on purchases the shop can claim back, and the VAT owed (sales less purchases). quarter as 2026-Q3; leave it out for this quarter, which counts the months begun so far (so_far: the quarter is not over). due_on is the next day a return must be paid when the company's form has one; else due_rule says when in words. Quote facts[*].display and the row texts exactly (vat_out, vat_in, vat_owed, sales_net, due_on); never add, subtract or round. - `quarter` (string): The quarter, as 2026-Q3. Leave it out for this quarter. ```json { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "vat_read", "arguments": { "quarter": null } } } ``` Result example: ```json { "jsonrpc": "2.0", "id": 1, "result": { "content": [ { "type": "text", "text": "VAT for a quarter, the same figures as the Finance VAT screen: VAT on sales by rate, VAT on purchases the shop can claim back, and the VAT owed (sales less purchases). quarter as 2026-Q3; leave it out for this quarter, which counts the months begun so far (so_far: the quarter is not over). due_on is the next day a return must be paid when the company's form has one; else due_rule says when in words. Quote facts[*].display and the row texts exactly (vat_out, vat_in, vat_owed, sales_net, due_on); never add, subtract or round." } ] } } ``` ## Inbox ### messages_read Guest conversations nobody has answered yet (WhatsApp, email, Instagram, Facebook, website chat): the guest wrote last and no reply went out after it, oldest wait first. Each row: the guest's name (who, absent when unknown), channel, waiting_since and waiting_minutes. Pass channel only when the person named one. Never quote a phone number, an email or what a guest wrote: the read has none. Quote facts[*].display exactly (unanswered, over_24h, oldest_since); never count rows yourself. - `channel` (string): Only conversations on this channel, when the person named one. Values: `web_chat`, `email`, `whatsapp`, `instagram`, `facebook`, `sms`. - `limit` (integer): How many rows at most (1 to 50). ```json { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "messages_read", "arguments": { "channel": null, "limit": 20 } } } ``` Result example: ```json { "jsonrpc": "2.0", "id": 1, "result": { "content": [ { "type": "text", "text": "Guest conversations nobody has answered yet (WhatsApp, email, Instagram, Facebook, website chat): the guest wrote last and no reply went out after it, oldest wait first. Each row: the guest's name (who, absent when unknown), channel, waiting_since and waiting_minutes. Pass channel only when the person named one. Never quote a phone number, an email or what a guest wrote: the read has none. Quote facts[*].display exactly (unanswered, over_24h, oldest_since); never count rows yourself." } ] } } ``` ## Setup ### setup_gaps_read The shop's setup checklist steps not done yet, the same list as Before you open and Settings, in checklist order: each step's label (en, it), its number, whether going live needs it (required_for_live) and the page that fixes it. go_live_ready says whether the shop can go live. Use it for 'what is left to set up', 'can we go live', 'what is missing'. Quote facts[*].display exactly (gaps, required_left, done, total); never count rows yourself. - `limit` (integer): How many rows at most (1 to 50). ```json { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "setup_gaps_read", "arguments": { "limit": 20 } } } ``` Result example: ```json { "jsonrpc": "2.0", "id": 1, "result": { "content": [ { "type": "text", "text": "The shop's setup checklist steps not done yet, the same list as Before you open and Settings, in checklist order: each step's label (en, it), its number, whether going live needs it (required_for_live) and the page that fixes it. go_live_ready says whether the shop can go live. Use it for 'what is left to set up', 'can we go live', 'what is missing'. Quote facts[*].display exactly (gaps, required_left, done, total); never count rows yourself." } ] } } ``` # Booking Elements # Booking Elements The package is private on GitHub Packages. Outdoor Grid grants read access. Keep your site key on the server. ## Install ```bash # GitHub Packages access is granted by Outdoor Grid. printf '%s\n' '@ogattermayr:registry=https://npm.pkg.github.com' '//npm.pkg.github.com/:_authToken=${NPM_TOKEN}' > .npmrc pnpm add @ogattermayr/outdoor-grid-booking@0.4.5 --save-exact pnpm add react@^19 @tanstack/react-query@^5.104 ``` ## Use a controlled element ```jsx "use client"; import { useState } from "react"; import { PeopleStepper } from "@ogattermayr/outdoor-grid-booking/react"; import "@ogattermayr/outdoor-grid-booking/styles.css"; export default function BookPage() { const [people, setPeople] = useState(2); return ( ); } ``` ## BookingProviderProps - `shop` (string, required): The shop's slug: the basket is `og-trip:`, every query key starts with it. - `theme` (Partial): The shop's tokens; leave out when the site's CSS sets `--og-*` on a parent. - `words` (ShopWordList): - `locale` (string): en, it, de or fr. - `currency` (string): ISO 4217, from the site read. - `country` (string): The shop's ISO country, from the site read (`shop.country_code`): US and CA read $, month first and 2:30 PM. - `transport` (BookingTransport): How the client calls the site's route; defaults to `routeTransport()` (`/api/outdoor-grid/`). - `client` (BookingClient): A client made by the site (a test's, a check's); wins over `transport`. - `storage` (PicksStorage): Where the basket keeps the picks; defaults to localStorage (memory when it is refused). - `children` (ReactNode): ## GuestBookingFlowProps - `router` (FlowRouter, required): - `door` (FlowDoor): How the guest came in (a kind of riding, a tour and its day); `start` when left out. - `bar` ({ logo?: ReactNode; nav?: ReactNode; end?: ReactNode; }): The site's bar: its logo, its navigation and the end slot (language, the trip). Null: no bar (inside the site's own header). - `footer` (ReactNode): Under the step's foot: the site's own footer. - `looks` (FlowLooks): - `links` (FlowLinks): - `loadStripe` (StripeLoader): `loadStripe` from - `termsHref` (string): The shop's rental terms, linked on who books it. - `accountHref` (string): The guest's own page (their trips), opened from their name in the bar. - `onBooked` ((booked: FlowBooked) => void): Booked: the reference and the view token. The flow shows Booked itself. - `now` (FlowNow): The shop's clock now; left out, the site read's notice. - `start` (Partial): (Stitch, additive.) Where the flow opens: laid over the fresh trip once, when it mounts (the gallery, tests, a site restoring its own copy). Memory only, like the rest of the trip. - `layout` ("stack" | "side"): (Stitch, additive.) The computer's layout or the phone's; left out, the screen's width decides (768px). - `returnBase` (string): (Stitch, additive.) The shop site's own origin for Stripe's return (`https://shop.example`, HO1); left out, the page's origin when it reads as one. - `booked` (FlowBooked): (Stitch, additive.) A trip booked before this page drew (a site that kept the answer in memory, the gallery): Booked reads its confirmation with the view token. - `holding` ({ asked?: components["schemas"]["PublicAskedLine"][] | null; at_shop_minor: number; currency: string; days: number; deposit_minor: number; first_day: string; hold_expires_at: string | null; next: "done" | "pay_deposit" | "pay_full" | "requested"; paid_minor: number; payment_choice?: ("deposit" | "full" | "at_shop") | null; promo?: components["schemas"]["PublicPromo"] | null; reference: string; stage: "request" | "lapsed" | "waiting_payment" | "not_finished" | "needs_you" | "booked" | "not_collected" | "out" | "late" | "back" | "cancelled"; total_minor: number; view_token?: string | null; }): (Stitch, additive.) A booking already held for payment (W7-08's answer the site kept in memory, the gallery): Pay opens on it. Never read from storage. - `remember` (boolean): (Stitch, additive.) Keep the trip's picks (groupPicksOf: no names, measures or contacts) in this browser for a reload; true when left out. The gallery and tests turn it off. - `anyThatFits` (boolean): Bikes offers "Any that fits" (true when left out). False: no Any card; the group starts on the first model with a fitting size free on every rider's days, and Next writes that bike. - `cart` (FlowCart): (Additive, one cart.) The shop's one cart: Plan's Add to cart beside Book it now, for a trip the cart holds. Left out (a booking-only shop, a custom front that has not opted in): Book it alone, as before. - `kitIncluded` (boolean): The shop includes protection with every bike: a Kit step the trip skips says "included" in the band instead of "nothing to rent". Left out: false. - `source` ("store" | "chatgpt" | "google_ttd" | "atlas"): (Additive.) Who sent the guest: `chatgpt` when the ChatGPT app's booking link opened the flow (`?src=chatgpt`). Sent with the booking as `source` (the shop sees where it came from); left out or null, the booking sends none. Never sent on a quote or a saved trip. - `handoff` (string): (Additive, job H1c.) The riding atlas's handoff token (`?handoff=`, `/core` handoffFromQuery): sent with the booking as `atlas_handoff` when `source` is `atlas`, kept in memory and the tab's draft once the address drops it. Never a sign in. - `partner` (string): (Additive, DIST-NETWORK.) The Network partner who sent the guest (`?partner=`, `/core` partnerFromQuery): sent with the booking as `partner_code`, never on a quote or a saved trip. The page reads it from the address, which keeps it on every step. Left out: none. - `place` (string): (Additive, unify spec B.) The pickup place the link asks for (`?place=`, `/core` placeFromQuery): sent with the booking as `pickup_location_id` when the site lists it with pickup hours, else dropped quietly. The page reads it from the address, which keeps it. - `origin` (BookingOrigin): (Additive, unify spec B.) The store product a test ride was booked from (`?from=` with `src=store`, `/core` originFromQuery): sent with the booking as `origin`. Left out: none. - `passkeys` (boolean): (Additive.) Guest passkeys: "Sign in with a passkey" in the sign in sheet and, after a code or password sign in, the offer to add one. Off when left out. Turn it on only on the shop's own domain (its custom domain or `{slug}.outdoorgrid.ai`, never outdoorgrid.ai itself) with the site route serving PASSKEY_ROUTE_OPERATIONS; it shows only where the browser can use a passkey. - `onEvent` (GuestEventSink): (Additive.) The guest's way through the flow for the site's analytics (PostHog plan 2c): each step viewed and completed, a Next that waits, Pay opening or failing, a refused booking and leaving before booking. Codes, counts, buckets and money bands only, scrubbed against the contract (`GUEST_EVENTS`): never a name, email, phone or anything the guest typed. Left out, nothing is sent anywhere. - `hostKind` ("hosted" | "subdomain" | "custom_domain"): (Additive.) How the page is served, for `onEvent`; left out, read from the page's address (`hostKindOf`). - `className` (string): ## GuestBookingProviderProps - `shop` (string, required): The shop's slug: every query key starts with it. - `theme` (Partial): The shop's tokens and the flow's; leave out when the site's CSS sets `--og-*` on a parent. - `words` (ShopWordList): The shop's words over the package's (typed: every line of every step). - `locale` (string): en, it, de or fr. - `currency` (string): ISO 4217, from the site read. - `country` (string): The shop's ISO country, from the site read (`shop.country_code`): US and CA read $, month first and 2:30 PM. - `transport` (BookingTransport): How the client calls the site's route; defaults to `routeTransport()` (`/api/outdoor-grid/`). - `client` (BookingClient): A client made by the site (a test's, the gallery's in-memory shop); wins over `transport`. - `children` (ReactNode): ## AccountBoxProps - `on` (boolean, required): Ticked: make an account with the email, with this password. - `password` (string, required): - `onChange` ((patch: { account: boolean; password: string; }) => void, required): - `error` (string): The reason the password is not right yet. - `missing` (boolean): The password is what Book waits on (`data-og-missing`). ## AccountOfferProps - `password` (string, required): - `onPassword` ((password: string | null) => void, required): - `tried` (boolean): Book was pressed: a password not right yet says why. - `className` (string): ## AddOnsProps - `items` (AddOnView[], required): - `onQty` ((id: string, qty: number) => void, required): - `className` (string): ## AddRiderProps - `onAdd` (() => void, required): - `sub` (string): - `disabled` (boolean): - `className` (string): ## ApiTransportOptions - `apiUrl` (string, required): The API origin, `https://api.outdoorgrid.ai` (http only for localhost or 127.0.0.1). - `siteKey` (string, required): The shop's site key, `og_site_...`. Server only. - `shop` (string, required): The shop's slug. - `fetch` ({ (input: RequestInfo | URL, init?: RequestInit): Promise; (input: string | URL | Request, init?: RequestInit): Promise; }): - `timeoutMs` (number): Per call, in milliseconds (8000). - `headers` ((call: BookingCall) => Record | undefined): Extra headers for a call: the credential (CREDENTIAL_HEADER) and the signed guest address. - `next` (NextFetchOptions): Next's data cache for reads (`loadBookingServer`); without it every call is `no-store`. ## AskedOfferProps - `offer` ({ answer_by: string | null; currency: string; days: components["schemas"]["DaySlot"][]; difference_minor: number; offered: components["schemas"]["Words-Output"]; pay: "online" | "at_shop" | "with_booking" | "none"; reference: string; rider: string | null; size: string | null; status: "asked" | "offered" | "assigned" | "declined" | "expired" | "withdrawn"; was: components["schemas"]["Words-Output"]; } & { [key: string]: unknown; }, required): - `onAnswer` ((accept: boolean) => void, required): - `answered` ({ next: "done" | "pay_online" | "pay_at_shop"; payment: components["schemas"]["SitePaymentSession"] | null; status: "asked" | "offered" | "assigned" | "declined" | "expired" | "withdrawn"; } & { [key: string]: unknown; }): After GBF-15. - `busy` (boolean): - `onPay` (() => void): (Stitch, optional.) After a yes that is paid online: open the payment for the difference. - `timeZone` (string): (Stitch, optional.) The shop's IANA zone for the time to answer by; UTC when left out. - `className` (string): ## AskTheShopCardProps - `asked` (readonly ({ answer_by: string | null; days: components["schemas"]["DaySlot"][]; key: string | null; label: components["schemas"]["Words-Output"]; line: number; riders: string[]; sizes: string[]; } & { [key: string]: unknown; })[], required): - `onAsk` (() => void, required): - `onWithdraw` ((key: string) => void): - `riderName` ((key: string) => string): (Stitch, optional.) A rider key to their name; "Rider 2" by the order of the line's riders when left out. - `timeZone` (string): (Stitch, optional.) The shop's IANA zone for the time it answers by; UTC when left out. - `busy` (boolean): (Stitch, optional.) The ask is on its way: the button takes no second press. - `className` (string): ## BasketBarElementProps - `totalMinor` (number, required): - `text` (string): Words where the total goes when there is no price to show: "2 e-bikes" (MSoldOut). - `className` (string): - `note` (string): - `action` (PrimaryAction, required): - `from` (boolean): "from": the total is a from price. ## BasketBarProps - `totalMinor` (number, required): - `from` (boolean): "from": the total is a from price. - `note` (string): - `action` (PrimaryAction, required): - `className` (string): ## BasketSummaryElementProps - `lines` (TripLineView[], required): - `totalLabel` (string): "Total"; "From" while the trip is a from price. - `children` (ReactNode): Under the title, before the lines: the promo code once it is open. - `className` (string): - `title` (string): - `note` (string): Under the total: "Pay at the shop". - `totalMinor` (number, required): - `titleAside` (ReactNode): Right of the title: the promo code link. ## BasketSummaryProps - `lines` (SummaryLine[], required): - `totalMinor` (number, required): - `note` (string): Under the total: "Pay at the shop". - `title` (string): - `titleAside` (ReactNode): Right of the title: the promo code link. - `className` (string): ## BikeBuildProps - `fit` (BikeFit, required): - `note` (boolean): The note under the parts (the catalog's word); left out on a phone. - `className` (string): ## BikeDecisionProps - `title` (string, required): - `ways` ({ way: BikeWay; kick: string; title: string; line: string; }[], required): - `onWay` ((way: BikeWay) => void, required): - `onBack` (() => void, required): "Pick another time": the time comes off. - `missing` (boolean): Next waits on a way out: marked missing, Next brings the guest here. - `className` (string): ## BikeGeometryProps - `fit` (({ build: components["schemas"]["ModelBuildPart"][]; geometry: components["schemas"]["GeometryRow"][]; ranges: components["schemas"]["FitRange"][]; } & { [key: string]: unknown; }) | BikeFit, required): - `marked` (Readonly>): A size label to the riders who get it ("L": ["Marco", "Tom"]): those columns are marked. - `className` (string): ## BikeRailProps - `bikes` (readonly { key: string; type: string; name: string; price: string | null; riders: readonly string[]; any?: boolean; thumb?: string | null; chip?: string | null; }[], required): - `value` (string, required): null: any that fits. - `onSelect` ((key: string | null) => void, required): - `layout` ("cards" | "chips"): Cards with a picture (computer, the default) or chips you swipe (phone). - `className` (string): ## BikeShowcaseProps - `name` (string, required): - `kicker` (string, required): - `blurb` (string, required): - `fit` (({ build: components["schemas"]["ModelBuildPart"][]; geometry: components["schemas"]["GeometryRow"][]; ranges: components["schemas"]["FitRange"][]; } & { [key: string]: unknown; }) | BikeFit, required): - `stage` (ReactNode): - `still` (string): The still while the site's 3D bike loads, or when it has none. - `word` (string): The big word behind the bike ("AMPD"); the name when left out. - `spinning` (boolean): - `onSpin` ((spinning: boolean) => void): - `className` (string): ## BikesStepProps - `products` (readonly { asks?: components["schemas"]["GuestAsk"][]; blurb?: components["schemas"]["Words-Output"] | null; charts?: components["schemas"]["PublicSizeChart"][]; closed_days: string[]; facts?: components["schemas"]["GearFact"][]; fit?: components["schemas"]["ProductFit"] | null; gear?: ("ski" | "bike" | "other") | null; id: string; image?: components["schemas"]["PublicImage"] | null; line?: components["schemas"]["Words-Output"] | null; model?: components["schemas"]["Words-Output"] | null; name: components["schemas"]["Words-Output"]; notice?: components["schemas"]["PublicSiteNotice"] | null; options: components["schemas"]["PublicAvailabilityOption"][]; parts?: components["schemas"]["PublicProductPart"][]; pick_size: boolean; }[], required): The models to rent on the trip's days (W7-06 `products`, with `fit` when the shop wrote it). - `layout` ("stack" | "side"): The computer's stage beside the panel, or the phone's stack. - `looks` (Readonly>>>): Per product id (or `any`): what the site adds. The day price is the site read's, never made here. - `dayPrices` (Readonly>): QA 27 Oct (G4): each product's day price from the trip's first day (W7-21 `prices`, product id to minor units), so a price shows per model before Plan; Any that fits says "from" the lowest. A site's own `looks` price still wins. - `totalMinor` (number): The quote's total so far; null while it is coming. - `standIn` (Omit): A kind running short (6b B, bikeStandInOf on the quote's refusal): the decision card. - `next` (string): Next's label; "Next: protection" when left out. - `problem` (string): Why Next waits, in the guest's words; left out, the step says the group's own reason once Next was pressed. - `busy` (boolean): - `loading` (boolean): The availability read is on its way. - `anyThatFits` (boolean): The rail's "Any that fits" (default on). Off: no Any card; a rider on no model yet is shown on the first model that fits the whole group (firstFittingBike) and Next writes that model for them before their sizes. - `state` (GroupState, required): - `send` ((event: GroupEvent) => void, required): - `shop` (FlowShop, required): - `nameOf` ((id: string) => string): A product, kind or tour id to its name in the guest's language (the site read). - `className` (string): ## BikeStageProps - `word` (string, required): The big word behind the bike ("AMPD", "Any"). - `still` (string): - `alt` (string): - `children` (ReactNode): The shop's 3D bike. - `spinning` (boolean): Whether the shop's bike turns; with onSpin, a Pause / Turn button. - `onSpin` ((spinning: boolean) => void): - `height` (string | number): CSS height; the stage fills its width. - `className` (string): ## BikesViewProps - `layout` ("stack" | "side"): The computer's stage beside the panel, or the phone's stack. - `models` (BikeModelView[], required): - `riders` (BikeRiderView[], required): - `assign` (Record, required): - `value` (string, required): The model in view. - `onPick` ((modelId: string) => void, required): - `onMove` ((riderKey: string, modelId: string) => void, required): Tap a name: move that rider to the model in view (a rider on it: back to `back`). - `back` (string): The model the group just came from: a tap on a name on the model in view puts that rider back on it. - `chosen` (Record): Sizes tapped by hand, by rider key. - `onSize` ((riderKey: string, optionId: string) => void, required): - `tab` (BikesTab): The open tab; left out, the step picks one (sizes for any, else the build). - `onTab` ((tab: BikesTab) => void): - `buildOpen` (boolean): The phone's build fold and sizes sheet. - `onBuildOpen` ((open: boolean) => void): - `sheetOpen` (boolean): - `onSheetOpen` ((open: boolean) => void): - `spinning` (boolean): - `onSpin` ((spinning: boolean) => void): - `totalMinor` (number, required): The quote's total for the trip so far; null while it is coming. - `standIn` (Omit): A kind running short (6b B): the decision card, and Next waits for a pick. - `next` (string): Next's label; "Next: protection" when left out. - `onNext` (() => void, required): - `problem` (string): Why Next waits, in the guest's words, shown beside it ("Pick a size for Marco."). - `missing` (readonly string[]): The riders Next waits on for a size: their size chips say so. - `busy` (boolean): - `loading` (boolean): The models are still loading. - `units` (BikeUnits): Heights in cm (the default) or ft and in (the group's `units`). - `className` (string): ## BookedProps - `view` ({ currency: string; days: number; first_day: string; lines: components["schemas"]["ViewLine"][]; locale: "en" | "it" | "de" | "fr"; money: components["schemas"]["BookingMoney"]; payments?: components["schemas"]["ViewPayment"][] | null; pickup?: components["schemas"]["ViewPickup"] | null; pickup_at: string; reference: string; return_by_at: string; riders: components["schemas"]["ViewRider"][]; shop: components["schemas"]["ViewShop"]; stage: "request" | "lapsed" | "waiting_payment" | "not_finished" | "needs_you" | "booked" | "not_collected" | "out" | "late" | "back" | "cancelled"; trip_url?: string | null; }, required): W7-11: the booking as booked. - `timeZone` (string, required): The shop's IANA zone: tour starts and the pick up time are read there. - `leadName` (string): The booker's first name for the heading; left out: "See you Tuesday". - `paid` (BookedPaid): Paid online now (Pay E); null or left out: paid at the shop. - `asked` (readonly { answer_by: string | null; days: components["schemas"]["DaySlot"][]; difference_minor?: number | null; key: string | null; label: components["schemas"]["Words-Output"]; line: number; riders: string[]; sizes: string[]; status: "asked" | "offered" | "assigned" | "declined" | "expired" | "withdrawn"; }[]): W7-08 `asked`: lines asked of the shop (Running short D). - `share` (ReactNode): The site's "send the trip to your group" card (ShareTrip), under the ticket. - `calendarHref` (string): An .ics address for "Add to calendar"; left out: no button. - `tripHref` (string): The guest trip page; left out: the booking's own `trip_url`. - `layout` ("stack" | "side"): stack: the phone; side: the computer, the ticket and the share card on the right. - `className` (string): ## BookedTripProps - `view` ({ currency: string; days: number; first_day: string; lines: components["schemas"]["ViewLine"][]; locale: "en" | "it" | "de" | "fr"; money: components["schemas"]["BookingMoney"]; payments?: components["schemas"]["ViewPayment"][] | null; pickup?: components["schemas"]["ViewPickup"] | null; pickup_at: string; reference: string; return_by_at: string; riders: components["schemas"]["ViewRider"][]; shop: components["schemas"]["ViewShop"]; stage: "request" | "lapsed" | "waiting_payment" | "not_finished" | "needs_you" | "booked" | "not_collected" | "out" | "late" | "back" | "cancelled"; trip_url?: string | null; }, required): W7-11: the booking as booked (BC1 fields optional). - `timeZone` (string, required): The shop's IANA zone: days, times and the calendar file are read there. - `layout` ("stack" | "side"): side: the computer, a main column and a side column; stack: the phone's order. - `site` ({ booking: components["schemas"]["PublicSiteBooking"]; booking_locales?: ("en" | "it" | "de" | "fr")[]; brand: components["schemas"]["SiteBrand"]; default_locale?: string | null; languages: string[]; mode: "live" | "sample" | "try"; photos: { [key: string]: string; }; places: components["schemas"]["PublicSitePlace"][]; reviews_score: components["schemas"]["PublicSiteReviewScore"] | null; season: components["schemas"]["PublicSiteSeason"]; sections: { [key: string]: unknown; }[]; shop: components["schemas"]["PublicSiteShop"]; version: number; }): The site read: its hero photo, the place's address, town and hours. - `hero` (BookedTripPhoto): The shop's hero photo (FlowLooks.booked.hero); left out, the site's, else the brand's band. - `bikePhotos` (Readonly>): The shop's photo of each bike by its product id (FlowLooks.booked.bikes), shown instead of the read's `product.image`; left out, the read's, else the gear glyph. - `place` (BookedTripPhoto): - `share` (ReactNode): The site's "send the trip to your group" card (ShareTrip). - `shareKeys` (readonly string[]): The riders the share card lists: "Send the form" brings the guest to their email field. - `paidMinor` (number): A newer paid amount (GBF-31 right after Stripe said paid). - `tripHref` (string): The guest trip page; left out, the booking's own `trip_url`. - `onFile` ((file: BookedTripFile) => void): Takes the calendar file and the receipt instead of the browser's download (a test, a native shell). - `className` (string): ## BookingFlowProps - `router` (BookingRouter, required): - `needs` (TripNeeds, required): What the trip asks for: which steps it has. - `screens` (Partial>, required): The site's screen for each step (its Elements wired to the machine). - `problem` (string): Why the step is not ready (a rider with no height, no dates): Next stays put and says it. - `summary` (FlowSummary): The trip's lines and total; leave out for the server's quote of the trip. - `onBooked` ((answer: BookingAnswered>) => void): Booked: the answer (its reference, its view token for `/booking#t=`). - `title` (string): The step's title, when the site says it its own way. - `subtitle` (string): The line under the title (the boards' italic one); null: none. Kind, Who and Pay have one by default. - `phone` (string): The shop's phone, offered when something cannot be booked online. - `className` (string): - `source` ("store" | "chatgpt" | "google_ttd" | "atlas"): (Additive.) Who sent the guest (`chatgpt`); sent with the booking as `source` only when set. - `partner` (string): (Additive, DIST-NETWORK.) The Network partner's code (`?partner=`, partnerFromQuery); sent as `partner_code` only when set. - `onEvent` (GuestEventSink): (Additive.) The guest's way through the flow for the site's analytics (PostHog plan 2c): each step viewed and completed, a Next that waits, a refused booking and leaving before booking. Codes, counts and buckets only, scrubbed against `GUEST_EVENTS`: never a name, email, phone or the problem's words. Left out, nothing is sent anywhere. - `hostKind` ("hosted" | "subdomain" | "custom_domain"): (Additive.) How the page is served, for `onEvent`; left out, read from the page's address. ## BookingLookProps - `theme` (Partial): The shop's tokens. Leave out when the site's own CSS sets `--og-*` on a parent. - `words` (ShopWordList): The shop's trade words and its own lines, per language. - `locale` (string): en, it, de or fr; anything else reads English. - `currency` (string): ISO 4217, from the site read (`currency`). - `country` (string): The shop's ISO 3166 country, from the site read (`shop.country_code`); null or left out reads as before. - `children` (ReactNode): ## BookingRouteOptions - `apiUrl` (string, required): The API origin, `https://api.outdoorgrid.ai`. - `siteKey` (string, required): The shop's site key, from a server only variable that no browser bundle ever reads. - `shop` (string, required): The shop's slug. - `operations` (readonly ("link" | "site" | "availability" | "quote" | "book" | "current" | "checkout" | "view" | "session" | "me" | "people" | "again" | "sign-out" | "prices" | "kind-availability" | "saved-trip-save" | "saved-trip" | "saved-trip-delete" | "held" | "asked-offer" | "asked-offer-answer" | "withdraw" | "share" | "rider-trip" | "code" | "code-check" | "password" | "payment-session" | "payment" | "pay-at-shop" | "damage-cover" | "departure-bikes" | "passkey-sign-in-options" | "passkey-sign-in" | "passkeys" | "passkey-options" | "passkey-add" | "passkey-rename" | "passkey-remove" | "trip" | "trip-options" | "trip-cancel" | "trip-pay" | "trip-rider" | "trip-waivers" | "trip-waiver-sign" | "trip-share" | "trip-asked-answer" | "trip-asked-withdraw" | "trip-payment-session")[]): The operations served (DEFAULT_ROUTE_OPERATIONS). List `checkout`, `trip-pay`, `payment-session`, `payment`, `pay-at-shop` or `asked-offer-answer` to take payments. - `clientIp` ((request: Request) => string | null, required): The guest's address from the host's trusted source (`clientIpFrom.vercel` on Vercel only, where Vercel overwrites the header). Required, so no site shares one rate limit bucket for all its guests by forgetting it; `null` says on purpose that the host has no trusted source. - `origins` (readonly string[]): Other origins the site's pages are served from, when the request URL is not the public one. - `basePath` (string): Where the route lives (`/api/outdoor-grid`); both cookies' Path. - `fetch` ({ (input: RequestInfo | URL, init?: RequestInit): Promise; (input: string | URL | Request, init?: RequestInit): Promise; }): - `timeoutMs` (number): - `now` (() => number): The clock in milliseconds (Date.now), for the address signature and the session cookie. ## BookingServerOptions - `apiUrl` (string, required): - `siteKey` (string, required): - `shop` (string, required): - `revalidate` (number): Seconds the site read is reused (60). - `fetch` ({ (input: RequestInfo | URL, init?: RequestInit): Promise; (input: string | URL | Request, init?: RequestInit): Promise; }): ## BookingTripButtonProps - `className` (string): - `onClick` (() => void): - `open` (boolean): The trip sheet or popover is open: the button shows it (DBasket). - `labelled` (boolean): "Your trip" beside the bag (a computer's header). - `href` (string): ## ButtonProps - `variant` (ButtonVariant): - `size` ("sm" | "md" | "lg"): - `wide` (boolean): - `icon` ("bus" | "users" | "map-pin" | "store" | "clock" | "star" | "arrow-right" | "arrow-left" | "menu" | "globe" | "check" | "calendar" | "mountain" | "bike" | "wrench" | "shield-check" | "x" | "chevron-down" | "chevron-right" | "camera" | "phone" | "mail" | "rotate-3d" | "hand" | "info" | "external-link" | "sun" | "battery-charging" | "ruler" | "zap" | "hard-hat" | "route" | "timer" | "gauge" | "navigation" | "coffee" | "message-circle" | "key-round" | "lock" | "shopping-bag" | "move-horizontal" | "circle-check" | "ticket" | "credit-card"): The icon after the label (arrow-right by default on a primary; null for none). - `busy` (boolean): Waiting for the server: the button stays, says so and takes no second press. - `href` (string): A link instead of a button (the site's own address; see safeHref: an unsafe one draws a button). - `children` (ReactNode, required): - `disabled` (boolean): - `form` (string): - `formAction` (string | ((formData: FormData) => void | Promise)): - `formEncType` (string): - `formMethod` (string): - `formNoValidate` (boolean): - `formTarget` (string): - `name` (string): - `type` ("submit" | "reset" | "button"): - `value` (string | number | readonly string[]): - `defaultChecked` (boolean): - `defaultValue` (string | number | readonly string[]): - `suppressContentEditableWarning` (boolean): - `suppressHydrationWarning` (boolean): - `accessKey` (string): - `autoCapitalize` ("none" | "off" | "on" | "sentences" | "words" | "characters" | (string & {})): - `autoFocus` (boolean): - `className` (string): - `contentEditable` (Booleanish | "inherit" | "plaintext-only"): - `contextMenu` (string): - `dir` (string): - `draggable` (Booleanish): - `enterKeyHint` ("enter" | "done" | "go" | "next" | "previous" | "search" | "send"): - `hidden` (boolean): - `id` (string): - `lang` (string): - `nonce` (string): - `slot` (string): - `spellCheck` (Booleanish): - `style` (CSSProperties): - `tabIndex` (number): - `title` (string): - `translate` ("yes" | "no"): - `radioGroup` (string): - `role` (AriaRole): - `about` (string): - `content` (string): - `datatype` (string): - `inlist` (any): - `prefix` (string): - `property` (string): - `rel` (string): - `resource` (string): - `rev` (string): - `typeof` (string): - `vocab` (string): - `autoCorrect` (string): - `autoSave` (string): - `color` (string): - `itemProp` (string): - `itemScope` (boolean): - `itemType` (string): - `itemID` (string): - `itemRef` (string): - `results` (number): - `security` (string): - `unselectable` ("off" | "on"): - `popover` ("" | "auto" | "manual" | "hint"): - `popoverTargetAction` ("toggle" | "show" | "hide"): - `popoverTarget` (string): - `inert` (boolean): - `inputMode` ("text" | "none" | "search" | "tel" | "url" | "email" | "numeric" | "decimal"): Hints at the type of data that might be entered by the user while editing the element or its contents - `is` (string): Specify that a standard HTML element should behave like a defined custom built-in element - `exportparts` (string): - `part` (string): - `aria-activedescendant` (string): Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application. - `aria-atomic` (Booleanish): Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute. - `aria-autocomplete` ("none" | "list" | "inline" | "both"): Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be presented if they are made. - `aria-braillelabel` (string): Defines a string value that labels the current element, which is intended to be converted into Braille. - `aria-brailleroledescription` (string): Defines a human-readable, author-localized abbreviated description for the role of an element, which is intended to be converted into Braille. - `aria-busy` (Booleanish): - `aria-checked` (boolean | "true" | "false" | "mixed"): Indicates the current "checked" state of checkboxes, radio buttons, and other widgets. - `aria-colcount` (number): Defines the total number of columns in a table, grid, or treegrid. - `aria-colindex` (number): Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid. - `aria-colindextext` (string): Defines a human readable text alternative of aria-colindex. - `aria-colspan` (number): Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid. - `aria-controls` (string): Identifies the element (or elements) whose contents or presence are controlled by the current element. - `aria-current` (boolean | "true" | "false" | "page" | "step" | "location" | "date" | "time"): Indicates the element that represents the current item within a container or set of related elements. - `aria-describedby` (string): Identifies the element (or elements) that describes the object. - `aria-description` (string): Defines a string value that describes or annotates the current element. - `aria-details` (string): Identifies the element that provides a detailed, extended description for the object. - `aria-disabled` (Booleanish): Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable. - `aria-dropeffect` ("none" | "link" | "copy" | "execute" | "move" | "popup"): Indicates what functions can be performed when a dragged object is released on the drop target. - `aria-errormessage` (string): Identifies the element that provides an error message for the object. - `aria-expanded` (Booleanish): Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed. - `aria-flowto` (string): Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion, allows assistive technology to override the general default of reading in document source order. - `aria-grabbed` (Booleanish): Indicates an element's "grabbed" state in a drag-and-drop operation. - `aria-haspopup` (boolean | "menu" | "true" | "false" | "dialog" | "grid" | "listbox" | "tree"): Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element. - `aria-hidden` (Booleanish): Indicates whether the element is exposed to an accessibility API. - `aria-invalid` (boolean | "true" | "false" | "grammar" | "spelling"): Indicates the entered value does not conform to the format expected by the application. - `aria-keyshortcuts` (string): Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element. - `aria-label` (string): Defines a string value that labels the current element. - `aria-labelledby` (string): Identifies the element (or elements) that labels the current element. - `aria-level` (number): Defines the hierarchical level of an element within a structure. - `aria-live` ("off" | "assertive" | "polite"): Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region. - `aria-modal` (Booleanish): Indicates whether an element is modal when displayed. - `aria-multiline` (Booleanish): Indicates whether a text box accepts multiple lines of input or only a single line. - `aria-multiselectable` (Booleanish): Indicates that the user may select more than one item from the current selectable descendants. - `aria-orientation` ("horizontal" | "vertical"): Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous. - `aria-owns` (string): Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship between DOM elements where the DOM hierarchy cannot be used to represent the relationship. - `aria-placeholder` (string): Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value. A hint could be a sample value or a brief description of the expected format. - `aria-posinset` (number): Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM. - `aria-pressed` (boolean | "true" | "false" | "mixed"): Indicates the current "pressed" state of toggle buttons. - `aria-readonly` (Booleanish): Indicates that the element is not editable, but is otherwise operable. - `aria-relevant` ("text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals"): Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified. - `aria-required` (Booleanish): Indicates that user input is required on the element before a form may be submitted. - `aria-roledescription` (string): Defines a human-readable, author-localized description for the role of an element. - `aria-rowcount` (number): Defines the total number of rows in a table, grid, or treegrid. - `aria-rowindex` (number): Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid. - `aria-rowindextext` (string): Defines a human readable text alternative of aria-rowindex. - `aria-rowspan` (number): Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid. - `aria-selected` (Booleanish): Indicates the current "selected" state of various widgets. - `aria-setsize` (number): Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM. - `aria-sort` ("none" | "ascending" | "descending" | "other"): Indicates if items in a table or grid are sorted in ascending or descending order. - `aria-valuemax` (number): Defines the maximum allowed value for a range widget. - `aria-valuemin` (number): Defines the minimum allowed value for a range widget. - `aria-valuenow` (number): Defines the current value for a range widget. - `aria-valuetext` (string): Defines the human readable text alternative of aria-valuenow for a range widget. - `dangerouslySetInnerHTML` ({ __html: string | TrustedHTML; }): - `onCopy` (ClipboardEventHandler): - `onCopyCapture` (ClipboardEventHandler): - `onCut` (ClipboardEventHandler): - `onCutCapture` (ClipboardEventHandler): - `onPaste` (ClipboardEventHandler): - `onPasteCapture` (ClipboardEventHandler): - `onCompositionEnd` (CompositionEventHandler): - `onCompositionEndCapture` (CompositionEventHandler): - `onCompositionStart` (CompositionEventHandler): - `onCompositionStartCapture` (CompositionEventHandler): - `onCompositionUpdate` (CompositionEventHandler): - `onCompositionUpdateCapture` (CompositionEventHandler): - `onFocus` (FocusEventHandler): - `onFocusCapture` (FocusEventHandler): - `onBlur` (FocusEventHandler): - `onBlurCapture` (FocusEventHandler): - `onChange` (ChangeEventHandler): - `onChangeCapture` (ChangeEventHandler): - `onBeforeInput` (InputEventHandler): - `onBeforeInputCapture` (InputEventHandler): - `onInput` (InputEventHandler): - `onInputCapture` (InputEventHandler): - `onReset` (ReactEventHandler): - `onResetCapture` (ReactEventHandler): - `onSubmit` (SubmitEventHandler): - `onSubmitCapture` (SubmitEventHandler): - `onInvalid` (ReactEventHandler): - `onInvalidCapture` (ReactEventHandler): - `onLoad` (ReactEventHandler): - `onLoadCapture` (ReactEventHandler): - `onError` (ReactEventHandler): - `onErrorCapture` (ReactEventHandler): - `onKeyDown` (KeyboardEventHandler): - `onKeyDownCapture` (KeyboardEventHandler): - `onKeyPress` (KeyboardEventHandler): - `onKeyPressCapture` (KeyboardEventHandler): - `onKeyUp` (KeyboardEventHandler): - `onKeyUpCapture` (KeyboardEventHandler): - `onAbort` (ReactEventHandler): - `onAbortCapture` (ReactEventHandler): - `onCanPlay` (ReactEventHandler): - `onCanPlayCapture` (ReactEventHandler): - `onCanPlayThrough` (ReactEventHandler): - `onCanPlayThroughCapture` (ReactEventHandler): - `onDurationChange` (ReactEventHandler): - `onDurationChangeCapture` (ReactEventHandler): - `onEmptied` (ReactEventHandler): - `onEmptiedCapture` (ReactEventHandler): - `onEncrypted` (ReactEventHandler): - `onEncryptedCapture` (ReactEventHandler): - `onEnded` (ReactEventHandler): - `onEndedCapture` (ReactEventHandler): - `onLoadedData` (ReactEventHandler): - `onLoadedDataCapture` (ReactEventHandler): - `onLoadedMetadata` (ReactEventHandler): - `onLoadedMetadataCapture` (ReactEventHandler): - `onLoadStart` (ReactEventHandler): - `onLoadStartCapture` (ReactEventHandler): - `onPause` (ReactEventHandler): - `onPauseCapture` (ReactEventHandler): - `onPlay` (ReactEventHandler): - `onPlayCapture` (ReactEventHandler): - `onPlaying` (ReactEventHandler): - `onPlayingCapture` (ReactEventHandler): - `onProgress` (ReactEventHandler): - `onProgressCapture` (ReactEventHandler): - `onRateChange` (ReactEventHandler): - `onRateChangeCapture` (ReactEventHandler): - `onSeeked` (ReactEventHandler): - `onSeekedCapture` (ReactEventHandler): - `onSeeking` (ReactEventHandler): - `onSeekingCapture` (ReactEventHandler): - `onStalled` (ReactEventHandler): - `onStalledCapture` (ReactEventHandler): - `onSuspend` (ReactEventHandler): - `onSuspendCapture` (ReactEventHandler): - `onTimeUpdate` (ReactEventHandler): - `onTimeUpdateCapture` (ReactEventHandler): - `onVolumeChange` (ReactEventHandler): - `onVolumeChangeCapture` (ReactEventHandler): - `onWaiting` (ReactEventHandler): - `onWaitingCapture` (ReactEventHandler): - `onAuxClick` (MouseEventHandler): - `onAuxClickCapture` (MouseEventHandler): - `onClick` (MouseEventHandler): - `onClickCapture` (MouseEventHandler): - `onContextMenu` (MouseEventHandler): - `onContextMenuCapture` (MouseEventHandler): - `onDoubleClick` (MouseEventHandler): - `onDoubleClickCapture` (MouseEventHandler): - `onDrag` (DragEventHandler): - `onDragCapture` (DragEventHandler): - `onDragEnd` (DragEventHandler): - `onDragEndCapture` (DragEventHandler): - `onDragEnter` (DragEventHandler): - `onDragEnterCapture` (DragEventHandler): - `onDragExit` (DragEventHandler): - `onDragExitCapture` (DragEventHandler): - `onDragLeave` (DragEventHandler): - `onDragLeaveCapture` (DragEventHandler): - `onDragOver` (DragEventHandler): - `onDragOverCapture` (DragEventHandler): - `onDragStart` (DragEventHandler): - `onDragStartCapture` (DragEventHandler): - `onDrop` (DragEventHandler): - `onDropCapture` (DragEventHandler): - `onMouseDown` (MouseEventHandler): - `onMouseDownCapture` (MouseEventHandler): - `onMouseEnter` (MouseEventHandler): - `onMouseLeave` (MouseEventHandler): - `onMouseMove` (MouseEventHandler): - `onMouseMoveCapture` (MouseEventHandler): - `onMouseOut` (MouseEventHandler): - `onMouseOutCapture` (MouseEventHandler): - `onMouseOver` (MouseEventHandler): - `onMouseOverCapture` (MouseEventHandler): - `onMouseUp` (MouseEventHandler): - `onMouseUpCapture` (MouseEventHandler): - `onSelect` (ReactEventHandler): - `onSelectCapture` (ReactEventHandler): - `onTouchCancel` (TouchEventHandler): - `onTouchCancelCapture` (TouchEventHandler): - `onTouchEnd` (TouchEventHandler): - `onTouchEndCapture` (TouchEventHandler): - `onTouchMove` (TouchEventHandler): - `onTouchMoveCapture` (TouchEventHandler): - `onTouchStart` (TouchEventHandler): - `onTouchStartCapture` (TouchEventHandler): - `onPointerDown` (PointerEventHandler): - `onPointerDownCapture` (PointerEventHandler): - `onPointerMove` (PointerEventHandler): - `onPointerMoveCapture` (PointerEventHandler): - `onPointerUp` (PointerEventHandler): - `onPointerUpCapture` (PointerEventHandler): - `onPointerCancel` (PointerEventHandler): - `onPointerCancelCapture` (PointerEventHandler): - `onPointerEnter` (PointerEventHandler): - `onPointerLeave` (PointerEventHandler): - `onPointerOver` (PointerEventHandler): - `onPointerOverCapture` (PointerEventHandler): - `onPointerOut` (PointerEventHandler): - `onPointerOutCapture` (PointerEventHandler): - `onGotPointerCapture` (PointerEventHandler): - `onGotPointerCaptureCapture` (PointerEventHandler): - `onLostPointerCapture` (PointerEventHandler): - `onLostPointerCaptureCapture` (PointerEventHandler): - `onScroll` (UIEventHandler): - `onScrollCapture` (UIEventHandler): - `onScrollEnd` (UIEventHandler): - `onScrollEndCapture` (UIEventHandler): - `onWheel` (WheelEventHandler): - `onWheelCapture` (WheelEventHandler): - `onAnimationStart` (AnimationEventHandler): - `onAnimationStartCapture` (AnimationEventHandler): - `onAnimationEnd` (AnimationEventHandler): - `onAnimationEndCapture` (AnimationEventHandler): - `onAnimationIteration` (AnimationEventHandler): - `onAnimationIterationCapture` (AnimationEventHandler): - `onToggle` (ToggleEventHandler): - `onBeforeToggle` (ToggleEventHandler): - `onTransitionCancel` (TransitionEventHandler): - `onTransitionCancelCapture` (TransitionEventHandler): - `onTransitionEnd` (TransitionEventHandler): - `onTransitionEndCapture` (TransitionEventHandler): - `onTransitionRun` (TransitionEventHandler): - `onTransitionRunCapture` (TransitionEventHandler): - `onTransitionStart` (TransitionEventHandler): - `onTransitionStartCapture` (TransitionEventHandler): ## CalendarKeyOwnProps - `soon` (boolean): Also explain the too soon mark (a clock). - `closed` (boolean): Also explain the closed mark. - `unit` (string, required): "e-bikes free". - `className` (string): ## CalendarKeyProps - `unit` (string, required): "e-bikes free". - `className` (string): ## ChangeSheetProps - `state` (GroupState, required): - `riders` (readonly string[], required): - `dates` (readonly string[], required): - `difference` (number, required): The difference the API quoted for the change (minor units); null while it loads. - `onApply` ((events: readonly GroupEvent[]) => void, required): - `onClose` (() => void, required): - `look` (PlanLook): - `onDraft` ((events: readonly GroupEvent[]) => void): The change as it is being made, as the group's events (for the caller to quote). - `refusal` ({ can_ask?: boolean | null; can_save?: boolean | null; error: "lines_unavailable"; lines: components["schemas"]["PublicUnavailableLine"][]; ok: false; }): The API refused the change: a clash, its ways out. - `onWay` ((way: PlanWay, change?: readonly GroupEvent[]) => void): A way out picked and applied (a neighbour size, a stand in); keep only closes. `change` is the change it was asked for, as the group's events: send both (`planWayEventsOf`). - `halfDays` (readonly string[]): The days the shop rents half days on. - `onOtherItem` ((riders: readonly string[]) => void): "Other bike": back to the bikes for these riders. - `className` (string): ## ChipProps - `children` (ReactNode, required): - `tone` ("notice" | "on"): on: the chosen chip; notice: a warning in the brand's notice tile. - `dot` ("" | "few" | "none"): - `className` (string): - `style` (CSSProperties): ## ChoiceCardProps - `title` (string, required): - `line` (string): One line under the title. - `meta` (ReactNode): Small words at the foot, left: "Half or full days", "Next: tomorrow 9:00". - `price` (ReactNode): Right of the meta: a price the API gave, already in words ("from €70 a day"). - `image` ({ src: string; alt: string; }): The shop's own photo (cover, its `alt` read out). Given, it wins over `media`; only with neither does the card draw its ground with `icon`. - `media` (ReactNode): The site's own media instead of the photo (the GearStage with its 3D viewer). - `icon` ("bus" | "users" | "map-pin" | "store" | "clock" | "star" | "arrow-right" | "arrow-left" | "menu" | "globe" | "check" | "calendar" | "mountain" | "bike" | "wrench" | "shield-check" | "x" | "chevron-down" | "chevron-right" | "camera" | "phone" | "mail" | "rotate-3d" | "hand" | "info" | "external-link" | "sun" | "battery-charging" | "ruler" | "zap" | "hard-hat" | "route" | "timer" | "gauge" | "navigation" | "coffee" | "message-circle" | "key-round" | "lock" | "shopping-bag" | "move-horizontal" | "circle-check" | "ticket" | "credit-card"): - `selected` (boolean): - `unavailable` (string): Not on the guest's days: the reason, shown instead of the line ("Next free: Sat 24"). Not tappable. - `problem` (string): Needs a fix: the problem in one line ("2 seats, you are 5"), shown instead of the line. - `fixLabel` (string): The fix's way out, a small pill under the problem ("See the ways out"); calls `onFix`. - `onFix` (() => void): - `onToggle` (() => void): Toggles the pick. Absent: the card only shows. - `multi` (boolean): Several may be picked (aria-pressed) or one (role radio inside a radiogroup). Default true. - `className` (string): ## ConfirmationElementProps - `shopName` (string): Fills "Now relax and enjoy the ride with {shop}!"; leave out for no line. - `heading` (string): "You're booked" by default. - `next` (NextView[]): What happens next. Left out: the email and "before your day"; null: none. - `layout` ("stack" | "side"): stack: the phone; side: the computer, the ticket on the right. - `aside` (ReactNode): Under the ticket on a computer: the shop on the site's map. - `reference` (string, required): - `title` (string, required): - `sub` (string): - `rows` ({ icon: IconName; label: string; value: string; }[], required): - `actions` (ReactNode): Under the ticket: add to calendar, the map, My booking. - `className` (string): ## ConfirmationProps - `reference` (string, required): - `title` (string, required): - `sub` (string): - `rows` ({ icon: IconName; label: string; value: string; }[], required): - `actions` (ReactNode): Under the ticket: add to calendar, the map, My booking. - `className` (string): ## ConsentTickProps - `on` (boolean, required): - `onChange` ((on: boolean) => void, required): - `shopName` (string, required): - `className` (string): ## DamageCoverOfferProps - `offers` (readonly CoverOfferRead[], required): The covers the trip can take (core coverOffersOf with the trip's rentals). - `on` (boolean, required): Ticked. - `onChange` ((on: boolean) => void, required): - `trip` ({ minor: number; quoted: boolean; }): The cover for this trip: `quoted` is the quote's own price (its `damage_cover` extras, in Plan's total while ticked), else the offer's own sum, price a day x days x items (never in a total). Null: not said. - `className` (string): ## DateRangeCalendarOwnProps - `unit` (string): After a day's count for a screen reader: "e-bikes free". The calendar's own "free" when left out. - `month` (string, required): The first day of the first month shown. - `months` (1 | 2): - `first` (string, required): - `last` (string, required): - `today` (string, required): The shop's today (never the browser's). - `free` (Record, required): - `blocked` (Record): Days the guest may not pick and why (before `notice.first_day`, closed days). - `onPick` ((day: string) => void, required): - `onMonth` ((month: string) => void): - `minMonth` (string): Before this month the back arrow is off (the shop's today's month). - `maxMonth` (string): - `className` (string): ## DateRangeCalendarProps - `month` (string, required): The first day of the first month shown. - `months` (1 | 2): - `first` (string, required): - `last` (string, required): - `today` (string, required): The shop's today (never the browser's). - `free` (Record, required): - `blocked` (Record): Days the guest may not pick and why (before `notice.first_day`, closed days). - `onPick` ((day: string) => void, required): - `onMonth` ((month: string) => void): - `minMonth` (string): Before this month the back arrow is off (the shop's today's month). - `maxMonth` (string): - `className` (string): ## DayHalvesProps - `value` (WhenValue, required): - `ctx` (WhenContext, required): - `day` (string, required): - `onToggle` ((day: string, half: Half | null) => void, required): A half switched, or the whole day (null) on a day the shop does not split. Without `onPart`, a split day's pick calls it once per half that switches (on first, then off): Morning to Afternoon is two calls, so a page that passes only this must apply each on top of the last (a functional update). Pass `onPart` instead. - `onPart` ((day: string, part: DayPick) => void): Full day, or a half day's morning or afternoon, picked on a day the shop splits (setDayLength, setDayHalf). - `look` (HalvesLook): - `className` (string): ## DayStripOwnProps - `exact` (boolean): Show the exact count the API gives (seats). Off: plenty above 4 reads "5+" (gear). On by default. - `days` (DayView[], required): - `value` (string, required): - `onChange` ((day: string) => void, required): - `unit` (string): After the number: "seats". - `className` (string): ## DayStripProps - `days` (DayView[], required): - `value` (string, required): - `onChange` ((day: string) => void, required): - `unit` (string): After the number: "seats". - `className` (string): ## DecisionCardProps - `title` (string, required): - `sub` (string): - `options` (readonly DecisionOption[], required): - `picked` (string): The way out picked, if any. - `onPick` ((key: string) => void, required): - `className` (string): ## DeparturePickerOwnProps - `exact` (boolean): Show the exact seats the API gives. On by default (README: "tour seats exact"). - `departures` (DepartureView[], required): - `value` (string, required): - `onChange` ((id: string) => void, required): - `unit` (string): - `className` (string): ## DeparturePickerProps - `departures` (DepartureView[], required): - `value` (string, required): - `onChange` ((id: string) => void, required): - `unit` (string): - `className` (string): ## EmbeddedCheckoutOptions - `fetchClientSecret` (() => Promise, required): Resolves with the Checkout Session's client secret. The only place the secret goes. - `onComplete` (() => void): Stripe says the payment is done (only with `redirect_on_completion: if_required`; else Stripe goes to the return address). ## ExtrasListProps - `extras` (readonly { productId: string; name: string; line: string; price: string | null; added: boolean; }[], required): - `onToggle` ((productId: string) => void, required): - `className` (string): ## FieldProps - `label` (string, required): - `value` (string, required): - `onChange` ((value: string) => void, required): - `placeholder` (string): - `type` ("number" | "text" | "tel" | "email"): - `inputMode` ("text" | "tel" | "email" | "numeric" | "decimal"): - `autoComplete` (string): - `autoCapitalize` ("none" | "off" | "sentences" | "words"): Off for an email: a phone's keyboard does not start it with a capital or correct it. - `spellCheck` (boolean): - `error` (string): The reason it is not right yet, shown under it once the guest tried. - `unit` (string): A unit after the value: "cm". - `name` (string): - `missing` (boolean): The first field a waiting Next brings the guest to (`data-og-missing`). - `className` (string): ## FinderProps - `open` (boolean, required): - `onClose` (() => void, required): - `questions` ({ id: string; text: string; answers: { id: string; text: string; }[]; }[], required): - `answers` (string[], required): The answer picked for each question, by index. - `onAnswer` ((question: number, answer: string) => void, required): - `result` ({ kind: RideKindView; why?: string | null; }, required): The kind both answers pick, with one line why; null until both are answered (or no rule). - `onTake` ((kindId: string) => void, required): - `className` (string): ## FlowFrameProps - `bar` (ReactNode): The shop's bar (ShopBar with the site's logo and navigation). - `stepper` (ReactNode, required): The stepper band (StepperBand). - `children` (ReactNode, required): - `footer` (ReactNode): The step's foot (StepFoot): its summary, Back and the one primary. - `aside` (ReactNode): The trip beside the content (desktop) or in the bottom sheet (phone). - `tripLabel` (string): The trip's name on the phone's pill and the sheet; "Your trip" when left out. - `tripNote` (string): A short line on the phone's pill after its name (the quote's total in words). - `bleed` (boolean): (0.2.1, additive.) From 1024px the step runs edge to edge under the band, with no trip beside it (Bikes: the stage beside its panel, which carries the total, as on the canvas). What sits above the step keeps the page's margins; the phone is unchanged. - `className` (string): ## FlowRouteOptions - `shop` (string, required): The shop's slug. - `api` (FlowApi, required): - `capabilitySecret` (string, required): The server only secret the booking capability is derived from (createBookingRoute: the site key). - `capabilityContext` (string): Sets one host's capabilities apart from another's under the same secret (CAPABILITY_CONTEXT). - `operations` (readonly ("link" | "site" | "availability" | "quote" | "book" | "current" | "checkout" | "view" | "session" | "me" | "people" | "again" | "sign-out" | "prices" | "kind-availability" | "saved-trip-save" | "saved-trip" | "saved-trip-delete" | "held" | "asked-offer" | "asked-offer-answer" | "withdraw" | "share" | "rider-trip" | "code" | "code-check" | "password" | "payment-session" | "payment" | "pay-at-shop" | "damage-cover" | "departure-bikes" | "passkey-sign-in-options" | "passkey-sign-in" | "passkeys" | "passkey-options" | "passkey-add" | "passkey-rename" | "passkey-remove" | "trip" | "trip-options" | "trip-cancel" | "trip-pay" | "trip-rider" | "trip-waivers" | "trip-waiver-sign" | "trip-share" | "trip-asked-answer" | "trip-asked-withdraw" | "trip-payment-session")[]): The operations served (DEFAULT_ROUTE_OPERATIONS); list the payment ones to take payments. - `origins` (readonly string[]): Other origins the site's pages are served from, when the request URL is not the public one. - `allowOrigin` ((origin: string, request: Request) => boolean): Replaces the Origin check (the request URL's origin or one of `origins`), e.g. a same site rule. - `basePath` (string): Where the route lives (`/api/outdoor-grid`); both cookies' Path. - `cookies` ({ booking?: string; session?: string; }): The cookies' names (BOOKING_COOKIE, GUEST_SESSION_COOKIE). - `now` (() => number): The clock in milliseconds (Date.now), for the session cookie's Max-Age. ## FlowRouterOptions - `pathname` (string, required): `usePathname()`: the path now, without query or fragment. - `push` ((href: string) => void, required): `useRouter().push`. - `base` (string, required): The flow's base (`/book`). - `paths` (Partial>): Other addresses for some pages; the rest keep FLOW_PATHS. - `locales` (readonly string[]): Language prefixes kept in front (`/it/book/who`). Default en, it, de, fr. ## FlowStepProps - `state` (GroupState, required): - `send` ((event: GroupEvent) => void, required): - `shop` (FlowShop, required): - `nameOf` ((id: string) => string): A product, kind or tour id to its name in the guest's language (the site read). - `className` (string): ## FreeProps - `free` (FreeCount, required): The API's free words for a day, a kind or a departure. - `unit` (string): What follows the number: "free", "seats", "e-bikes free". Empty for the number alone. - `className` (string): ## GearStageOwnProps - `as` ("div" | "span"): The element drawn: a span when the stage sits inside a button (a closed kind's row). - `style` (CSSProperties): - `still` (string, required): The still frame's address (the kind's `poster_url`). Null: the ground alone. - `alt` (string): - `height` (number, required): Pixels; the stage fills its width. - `stillWidth` (number): The still's drawn width in pixels (it overflows the stage, as on the boards). - `spinning` (boolean): Shows "Spinning, drag to turn" while the site's model turns. - `round` ("none" | "all" | "top"): Which corners are round: the top ones inside a card, all alone, none in a row. - `children` (ReactNode): - `className` (string): ## GearStageProps - `still` (string, required): The still frame's address (the kind's `poster_url`). Null: the ground alone. - `alt` (string): - `height` (number, required): Pixels; the stage fills its width. - `stillWidth` (number): The still's drawn width in pixels (it overflows the stage, as on the boards). - `spinning` (boolean): Shows "Spinning, drag to turn" while the site's model turns. - `round` ("none" | "all" | "top"): Which corners are round: the top ones inside a card, all alone, none in a row. - `children` (ReactNode): - `className` (string): ## GuidePickProps - `on` (boolean, required): - `onPick` (() => void, required): - `className` (string): ## IconProps - `name` ("bus" | "users" | "map-pin" | "store" | "clock" | "star" | "arrow-right" | "arrow-left" | "menu" | "globe" | "check" | "calendar" | "mountain" | "bike" | "wrench" | "shield-check" | "x" | "chevron-down" | "chevron-right" | "camera" | "phone" | "mail" | "rotate-3d" | "hand" | "info" | "external-link" | "sun" | "battery-charging" | "ruler" | "zap" | "hard-hat" | "route" | "timer" | "gauge" | "navigation" | "coffee" | "message-circle" | "key-round" | "lock" | "shopping-bag" | "move-horizontal" | "circle-check" | "ticket" | "credit-card", required): - `size` (number): - `stroke` (number): - `className` (string): ## ItemPickerProps - `items` (ItemView[], required): - `value` (string, required): - `onChange` ((id: string) => void, required): - `layout` ("list" | "table"): - `className` (string): ## KindCardProps - `kind` (RideKindView, required): - `on` (boolean, required): - `onPick` ((id: string) => void, required): - `look` (KindCardLook): - `stageHeight` (number): The stage's height in pixels: 178 open, 330 side by default. - `stillWidth` (number): The still's drawn width in pixels: 262 open, 500 side by default. - `className` (string): ## KitBibProps - `rider` (KitRider, required): - `riders` (readonly KitRider[], required): - `className` (string): ## KitBoardProps - `items` (readonly ({ fit_at_shop: boolean; for_kinds: string[]; for_tours: boolean; id: string; must: boolean; name: components["schemas"]["Words-Output"]; price_minor: number | null; product_id: string | null; recommended: boolean; rentable: boolean; sized_by: "height" | "head" | "none"; sizes: components["schemas"]["SiteKitSize"][]; } & { [key: string]: unknown; })[], required): W7-06 `kit`; null while the read is on its way. - `extras` (readonly KitExtraView[]): The shop's extras with their words and price words (`kitExtraView` from W7-06 `extras`); none: no extras card. - `riders` (readonly KitRider[], required): The group, in Who's order, with their fit, kinds, tour and days. - `value` (KitPlan, required): - `onChange` ((value: KitPlan) => void, required): - `units` (Units): The guest's units (Who's switch): sizes and the head size are shown and typed in them. - `kindNames` (Readonly>): The names of the kinds of ride (`booking.kinds`), for "For Backcountry". - `kitTotal` (number): The kit's total from the quote (W7-07), minor units; null while it prices; leave out to hide it. - `fullKitTotal` (number): Full kit for everyone's total from the quote, when the site asked it. - `price` (string): The quote's price for the foot's summary, in words; null: none yet. - `next` (PrimaryAction): The foot's Next (the site names the next step). Waits while a must is not settled. - `onBack` (() => void): The foot's Back (computer). - `defaultOpen` (KitOpen): The editor open at first (a gallery frame, a shared link). - `children` (ReactNode): Drawn above the riders (the site's own line). - `missing` (boolean): Next was pressed with a must left out: the must's circle (computer) and the rider's row (phone) are marked missing (`data-og-missing`), so Next brings the guest there. - `className` (string): ## KitCellSheetProps - `item` ({ fit_at_shop: boolean; for_kinds: string[]; for_tours: boolean; id: string; must: boolean; name: components["schemas"]["Words-Output"]; price_minor: number | null; product_id: string | null; recommended: boolean; rentable: boolean; sized_by: "height" | "head" | "none"; sizes: components["schemas"]["SiteKitSize"][]; } & { [key: string]: unknown; }, required): - `rider` (KitRider, required): - `riders` (readonly KitRider[], required): - `value` (KitPlan, required): - `onChange` ((value: KitPlan) => void, required): - `units` (Units): - `open` (boolean, required): - `onClose` (() => void, required): - `className` (string): ## KitCircleProps - `view` (KitCellView, required): - `label` (string, required): - `text` (string, required): - `onTap` (() => void): - `small` (boolean): - `pressed` (boolean): Draw as picked or not (the rider sheet's three circles). - `className` (string): ## KitCostProps - `items` (readonly ({ fit_at_shop: boolean; for_kinds: string[]; for_tours: boolean; id: string; must: boolean; name: components["schemas"]["Words-Output"]; price_minor: number | null; product_id: string | null; recommended: boolean; rentable: boolean; sized_by: "height" | "head" | "none"; sizes: components["schemas"]["SiteKitSize"][]; } & { [key: string]: unknown; })[], required): - `days` (number, required): The trip's days the kit covers. - `total` (number): The kit's total from the quote, minor units; null while it prices; undefined: not shown. - `allFull` (boolean, required): - `fullTotal` (number): Full kit for everyone's price from the quote, when the site asked it; else the button has none. - `onAll` (() => void, required): - `className` (string): ## KitDecisionProps - `title` (string, required): - `ways` ({ way: KitWayOut; kick: string; title: string; line: string; }[], required): - `onWay` ((way: KitWayOut) => void, required): - `onBack` (() => void, required): Closes the sheet on a phone; the foot still says what is missing. - `className` (string): ## KitExtrasProps - `extras` (readonly KitExtraView[], required): - `riders` (readonly KitRider[], required): - `value` (KitPlan, required): - `onToggle` ((extra: KitExtraView) => void, required): - `head` ("none" | "title" | "label"): The heading as a big title (the phone's Extras) or a small label (the computer's side card); `none` under a page title that already says Extras (W3 P4: no kit items). - `className` (string): ## KitGridProps - `items` (readonly { id: string; name: string; note: string; must: boolean; rentable: boolean; }[], required): - `riders` (readonly { key: string; label: string; }[], required): - `kit` (Readonly>>>, required): - `onCell` ((rider: string, itemId: string) => void, required): - `sizes` (Readonly>): A size option's label ("M"), for a rented cell. - `className` (string): ## KitMenuPickerProps - `rider` (string, required): - `value` (KitMenu, required): - `onPick` ((menu: KitMenu) => void, required): - `items` (readonly ({ fit_at_shop: boolean; for_kinds: string[]; for_tours: boolean; id: string; must: boolean; name: components["schemas"]["Words-Output"]; price_minor: number | null; product_id: string | null; recommended: boolean; rentable: boolean; sized_by: "height" | "head" | "none"; sizes: components["schemas"]["SiteKitSize"][]; } & { [key: string]: unknown; })[]): The shop's kit items: "Helmet only" says the must's name, and is left out with no must. - `className` (string): ## KitMenuPickProps - `value` (KitMenu, required): - `items` (readonly ({ fit_at_shop: boolean; for_kinds: string[]; for_tours: boolean; id: string; must: boolean; name: components["schemas"]["Words-Output"]; price_minor: number | null; product_id: string | null; recommended: boolean; rentable: boolean; sized_by: "height" | "head" | "none"; sizes: components["schemas"]["SiteKitSize"][]; } & { [key: string]: unknown; })[], required): - `onPick` ((menu: KitMenu) => void, required): - `as` ("list" | "chips"): chips: the phone sheet's two by two; list: the computer's drop down. - `className` (string): ## KitRiderSheetProps - `rider` (KitRider, required): - `riders` (readonly KitRider[], required): - `items` (readonly ({ fit_at_shop: boolean; for_kinds: string[]; for_tours: boolean; id: string; must: boolean; name: components["schemas"]["Words-Output"]; price_minor: number | null; product_id: string | null; recommended: boolean; rentable: boolean; sized_by: "height" | "head" | "none"; sizes: components["schemas"]["SiteKitSize"][]; } & { [key: string]: unknown; })[], required): - `value` (KitPlan, required): - `onChange` ((value: KitPlan) => void, required): - `onCell` ((item: SiteKitItem) => void, required): Opens a rented item's size (or head size). - `open` (boolean, required): - `onClose` (() => void, required): - `className` (string): ## KitSizeSheetProps - `item` ({ fit_at_shop: boolean; for_kinds: string[]; for_tours: boolean; id: string; must: boolean; name: components["schemas"]["Words-Output"]; price_minor: number | null; product_id: string | null; recommended: boolean; rentable: boolean; sized_by: "height" | "head" | "none"; sizes: components["schemas"]["SiteKitSize"][]; } & { [key: string]: unknown; }, required): - `rider` (string, required): - `units` (Units, required): - `optionId` (string, required): - `fitAtShop` (boolean, required): - `onPick` ((optionId: string | null, fitAtShop: boolean) => void, required): - `onHead` ((cm: number | null) => void): - `onClose` (() => void, required): - `headCm` (number): The rider's head size now, in cm (an item sized by head). - `className` (string): ## KitStepProps - `items` (readonly ({ fit_at_shop: boolean; for_kinds: string[]; for_tours: boolean; id: string; must: boolean; name: components["schemas"]["Words-Output"]; price_minor: number | null; product_id: string | null; recommended: boolean; rentable: boolean; sized_by: "height" | "head" | "none"; sizes: components["schemas"]["SiteKitSize"][]; } & { [key: string]: unknown; })[], required): The shop's kit items (W7-06 `kit`). - `extras` (readonly KitExtraView[], required): The shop's extras on the trip's days, with their price words from the API (`kitExtraView`). - `kindOf` ((productId: string) => string | null | undefined): A rented model's kind of ride (`booking.kinds`), for items only some kinds need. - `kitTotal` (number): The kit's total from the quote (W7-07), minor units; null while it prices; leave out to hide it. - `defaultOpen` (KitOpen): The editor open at first (a gallery frame, a shared link). - `missing` (boolean): Next was pressed with a must left out: the board marks it missing, Next brings the guest there. - `state` (GroupState, required): - `send` ((event: GroupEvent) => void, required): - `shop` (FlowShop, required): - `nameOf` ((id: string) => string): A product, kind or tour id to its name in the guest's language (the site read). - `className` (string): ## LevelPickProps - `value` (string, required): - `onChange` ((level: string) => void, required): - `look` ("words" | "bars"): - `className` (string): ## LevelsProps - `value` (string, required): - `onChange` ((level: string) => void, required): - `className` (string): ## ModelRailProps - `models` (BikeModelView[], required): - `value` (string, required): The model in view. - `riders` (BikeRiderView[], required): - `assign` (Record, required): Rider key to the model they ride (null or missing: none; own bike riders are never here). - `onPick` ((modelId: string) => void, required): - `layout` ("cards" | "chips"): Cards with a picture (computer) or chips you swipe (phone). - `className` (string): ## MountCheckoutOptions - `loadStripe` (StripeLoader, required): - `openSession` ((signal: AbortSignal) => Promise, required): GBF-30, with the site's one Idempotency-Key for this session. Aborted when the form goes. - `onSession` ((session: CheckoutSessionShown) => void): The session opened (without its secret): the amount, the hold, the way. - `onComplete` (() => void): Stripe says it is done: the site then reads GBF-31. - `onState` ((state: Exclude) => void, required): ready once Stripe's form is in the element, failed when any part of the open fails or is late. - `timeoutMs` (number): How long the open may take before it counts as failed; CHECKOUT_OPEN_MS when left out, Infinity for no limit. ## MyTripElementProps - `title` (string): "Before your day" by default; null for no heading. - `todos` (TodoView[], required): - `className` (string): ## MyTripProps - `todos` (TodoView[], required): - `className` (string): ## NextFetchOptions - `revalidate` (number | false): - `tags` (string[]): ## NotSureProps - `onClick` (() => void, required): - `large` (boolean): The computer's size (DBikeKind). - `className` (string): ## PartProps - `className` (string): ## PathRouterOptions - `pathname` (string, required): The page's path now (`usePathname()`), without query or fragment. - `push` ((href: string) => void, required): Goes to a path (`useRouter().push`). - `paths` (Partial>, required): Each step's path, under `base`: `{ kind: "/book/bike", when: "/book/bike/dates", who: "/book/who" }`. Two steps on one path read as the earlier one. A step with no path goes nowhere. - `base` (string): A path in front of every path: `/book` with `{ who: "/who" }` is `/book/who`. - `locales` (readonly string[]): The language prefixes the site uses (`/it/book/who`); a prefix in front is kept. Default en, it, de, fr. ## PayAsideProps - `way` (PaymentWay, required): The way chosen: its amount is Today and on the button; at the shop says the shop's pay line. - `lines` (TripLineView[], required): - `amounts` (PayAmounts, required): - `onPay` (() => void, required): - `busy` (boolean): - `disabled` (boolean): - `title` (string): "Your trip". - `className` (string): ## PayAtShopElementProps - `lines` (TripLineView[], required): - `layout` ("stack" | "side"): stack: the phone (MPay); side: the computer's form, the trip in the TripAside beside it (DPay). - `className` (string): - `totalMinor` (number, required): - `lead` (BookingLead, required): - `onLead` ((patch: Partial) => void, required): - `errors` (Partial>): - `consent` (boolean, required): - `onConsent` ((on: boolean) => void, required): - `shopName` (string, required): - `termsHref` (string): - `promo` (PromoCodeProps): - `payNote` (string): "Nothing to pay now. Pay at the shop when you pick up: cash or card." ## PayAtShopProps - `lead` (BookingLead, required): - `onLead` ((patch: Partial) => void, required): - `errors` (Partial>): - `consent` (boolean, required): - `onConsent` ((on: boolean) => void, required): - `shopName` (string, required): - `termsHref` (string): - `lines` (SummaryLine[], required): - `totalMinor` (number, required): - `promo` (PromoCodeProps): - `payNote` (string): "Nothing to pay now. Pay at the shop when you pick up: cash or card." - `className` (string): ## PayCheckoutProps - `shopName` (string, required): - `way` ("full" | "deposit", required): The way being paid now. - `lines` (PayLineView[], required): - `totalMinor` (number, required): - `nowMinor` (number, required): Paid today (the session's amount). - `restMinor` (number): Left for pick up, as the site has it from the quote; 0 or null: nothing left. - `depositMinor` (number): The quote's deposit, for the phone's Deposit tile. - `pickupDay` (string, required): The first pick up day, YYYY-MM-DD. - `cancelText` (string): The shop's own cancel words. - `onBack` (() => void): Back to the plan. - `state` ({ can_pay_at_shop: boolean; currency: string; declined_reason: ("card_declined" | "authentication_failed" | "expired_card" | "other") | null; due_now_minor: number; hold_expires_at: string | null; paid_minor: number; reference: string; status: "held" | "paid" | "expired" | "declined"; view_token: string | null; } & { [key: string]: unknown; }): GBF-31 after a try: declined draws the "Your trip is kept" card. - `timeZone` (string, required): The shop's zone, for the hold's time. - `today` (string): The shop's today (YYYY-MM-DD): a hold ending on another day says the day. - `onPayAtShop` (() => void): Switch to paying at the shop (GBF-32); shown after a decline when the state allows it. - `payAtShopBusy` (boolean): - `ways` (readonly PaymentWay[]): The phone's toggle: the shop's ways. A new way is a new session (remount the slot with a key). - `onWay` ((way: PaymentWay) => void): - `checkout` (ReactNode, required): Stripe's form: a StripeCheckout. - `layout` ("stack" | "side"): side: the computer, the trip beside Stripe (B to D); stack: the phone (8A). - `className` (string): ## PayChoiceProps - `ways` (readonly PaymentWay[], required): The shop's ways, in order (paymentWays). - `value` (PaymentWay, required): - `onChange` ((way: PaymentWay) => void, required): - `amounts` (PayAmounts, required): - `depositPercent` (number): The shop's deposit %: "30% today". Left out: "Part today". - `cancelText` (string): The shop's own cancel words, under the options (side only). - `layout` ("stack" | "side"): side: the computer's radio cards with the heading (Pay A); stack: the phone's tiles (8A). - `className` (string): ## PaymentReturnProps - `view` (CheckoutView, required): checkoutView(state, tries): useCheckoutState's `view`. - `state` ({ can_pay_at_shop: boolean; currency: string; declined_reason: ("card_declined" | "authentication_failed" | "expired_card" | "other") | null; due_now_minor: number; hold_expires_at: string | null; paid_minor: number; reference: string; status: "held" | "paid" | "expired" | "declined"; view_token: string | null; } & { [key: string]: unknown; }): GBF-31's answer; null while the first read is on its way. - `timeZone` (string, required): The shop's zone, for the hold's time. - `today` (string): The shop's today (YYYY-MM-DD): a hold ending on another day says the day. - `onAgain` (() => void): Waiting: read GBF-31 again (useCheckoutState's `again`). - `onPlan` (() => void): Expired: back to the plan to check it again. - `onRetry` (() => void): Declined: back to Pay for a new try. - `onPayAtShop` (() => void): Declined, when the state allows it: pay at the shop instead (GBF-32). - `busy` (boolean): - `className` (string): ## PeopleStepperProps - `label` (string, required): - `sub` (string): - `value` (number, required): - `min` (number): - `max` (number): - `onChange` ((n: number) => void, required): - `className` (string): ## PhoneFieldProps - `label` (string, required): - `value` (string, required): What the field keeps: "+39 340 326 0080", or a number with no country as it was given. - `onChange` ((value: string) => void, required): - `country` (string): The shop's ISO country (the site read's `shop.country_code`); left out: the look's. - `error` (string): - `missing` (boolean): The first field a waiting action brings the guest to (`data-og-missing`). - `name` (string): - `className` (string): ## PlanBoardProps - `plan` (Plan, required): - `panel` (PlanPanel, required): - `onTap` (PlanTap): A tap on a bar, an empty cell or a phone line: the caller opens the change (`changeFor`). - `bad` (PlanTarget): A cell ringed in the bad colour: the clash on the sheet, a line taken while booking. - `checked` ("checking" | "ok"): The check of bikes, sizes and seats for the plan: on its way, done; null: not shown. - `receipt` (Omit, required): What it costs, from the API's quote. - `sheet` (Omit): The change sheet's own props, when the panel is a change. - `who` (Omit): Who books it, when the panel is who. - `due` (PlanDue): What is paid when the action is pressed; left out: the quote's total. - `action` (PrimaryAction): The one action: Book it (opens who books it), then Book it or Next: pay. - `second` (PrimaryAction): (Additive, one cart.) What it costs only: a second way under the action, outlined (Book it now under Add to cart), and why the action did not go through. Left out: the one action, as before. - `alert` (string): - `toast` (string): The bar's words: what just happened; left out while changing: "Editing Lena and Tom on Thursday". - `onUndo` (() => void): Undo the last change, while it shows. - `footNote` (string): The bar's right side on a computer: "Pay at the shop". - `why` (string): Why the action waits (who books it), beside it on both widths and said out loud. - `icons` (Partial>): The shop's own icons for its things (a ski shop's skis). - `answer` (ShopAnswer): When the shop answers an asked line (core shopAnswerOf on W7-05 `booking.flow`); left out: "the shop answers". - `cover` (Omit): Damage cover for the trip (board GuestKitCover), one line under the plan on every width; left out or with no offers: nothing shows. - `sharedWith` (string): (Additive, job H1c.) The shop's name when the riding atlas sent the guest: under the plan on every width, what goes to the shop with this booking and what never does. Left out: nothing. - `className` (string): ## PlanCostsProps - `lines` (SummaryLine[], required): The quote's lines ("4 bikes, 12 bike days"), from the API. - `totalMinor` (number, required): - `pricing` (boolean): The quote is on its way: the amounts wait. - `note` (string): Under the total: "Nothing to pay now. Pay at the shop when you pick up." - `waiting` (string): Said instead of the total when there is none to wait for (a trip refused as it stands). - `action` (PrimaryAction): - `second` (PrimaryAction): (Additive, one cart.) A second way under the action, outlined (a shop with the store: Book it now under Add to cart). Left out: the one action. - `alert` (string): (Additive, one cart.) Why the action did not go through, over it and said out loud. Left out: nothing. - `className` (string): ## PlanDayListProps - `state` (GroupState, required): - `onDay` ((date: string, riders?: readonly string[]) => void, required): - `look` (PlanLook): - `icons` (Partial>): - `answer` (ShopAnswer): When the shop answers an asked line (core shopAnswerOf on W7-05 `booking.flow`); left out: "the shop answers". - `className` (string): ## PlanDaysProps - `plan` (Plan, required): - `marked` (PlanChange): The change on the sheet: the lines of its riders on its days are marked. - `only` (readonly string[]): Only these days (the sheet's day on a phone, 7B); left out: every day. - `onTap` (PlanTap): - `icons` (Partial>): - `answer` (ShopAnswer): When the shop answers an asked line (core shopAnswerOf); left out: "the shop answers". - `className` (string): ## PlanDecisionProps - `clash` (PlanClash, required): - `className` (string): ## PlanGridProps - `plan` (Plan, required): - `marked` (PlanChange): The change on the sheet: its riders' cells on its days are marked. - `bad` (PlanTarget): A cell that clashes (a size gone): ringed in the theme's bad colour. - `onTap` (PlanTap): Tapping a bar or an empty cell. Left out: the plan is read only. - `icons` (Partial>): - `answer` (ShopAnswer): When the shop answers an asked line (core shopAnswerOf); left out: "the shop answers". - `className` (string): ## PlanLegendProps - `plan` (Plan, required): - `icons` (Partial>): - `className` (string): ## PlanReceiptProps - `quote` ({ add_ons?: components["schemas"]["SiteQuoteAddOn"][]; asked?: components["schemas"]["SiteQuoteAsked"][] | null; at_shop_minor: number; currency: string; days: number; deposit_minor: number; extras?: components["schemas"]["SiteQuoteExtra"][]; first_day: string; lines: components["schemas"]["SiteQuoteLine"][]; next: "done" | "pay_deposit" | "pay_full" | "requested"; ok: true; payment_choice: ("deposit" | "full" | "at_shop") | null; promo?: components["schemas"]["PublicPromo"] | null; riders?: components["schemas"]["SiteQuoteRider"][] | null; services?: components["schemas"]["SiteQuoteService"][]; shared?: components["schemas"]["SiteQuoteShared"] | null; total_minor: number; }, required): - `riderName` ((key: string) => string, required): A rider key to their name. - `action` (PrimaryAction): The one action under the total (Book it). - `className` (string): ## PlanSheetProps - `plan` (Plan, required): - `target` (PlanTarget, required): What was tapped: its rider comes first among Who. - `change` (PlanChange, required): - `onChange` ((change: PlanChange) => void, required): - `onClose` (() => void, required): - `onApply` (() => void, required): Apply (or the picked way of a clash). Done by the caller, then the sheet closes. - `halfDays` (readonly string[]): The days the shop offers half days on (W7-06 `periods`); left out: every day. - `item` (string): The bike line, when the change holds a bike: "Shuttle LT, M and L". - `onOtherItem` (() => void): "Other bike": back to the bikes for these riders. Left out: no link. - `price` (PlanPrice): - `clash` (PlanClash): - `busy` (boolean): Apply is being done (a quote, a re-check). - `id` (string): The sheet's id, for the bar that opened it (aria-controls). - `focusRef` ((node: HTMLDivElement | null) => void): The sheet's node as it comes and goes (PlanBoard moves the focus in and back with it). Left out, the sheet does it itself (ChangeSheet). - `className` (string): ## PlanStepProps - `quote` ({ add_ons?: components["schemas"]["SiteQuoteAddOn"][]; asked?: components["schemas"]["SiteQuoteAsked"][] | null; at_shop_minor: number; currency: string; days: number; deposit_minor: number; extras?: components["schemas"]["SiteQuoteExtra"][]; first_day: string; lines: components["schemas"]["SiteQuoteLine"][]; next: "done" | "pay_deposit" | "pay_full" | "requested"; ok: true; payment_choice: ("deposit" | "full" | "at_shop") | null; promo?: components["schemas"]["PublicPromo"] | null; riders?: components["schemas"]["SiteQuoteRider"][] | null; services?: components["schemas"]["SiteQuoteService"][]; shared?: components["schemas"]["SiteQuoteShared"] | null; total_minor: number; }, required): The quote of the trip as it stands (W7-07); null while it loads. Prices only from here. - `onBook` (() => void, required): - `busy` (boolean): - `bookWait` (string): (Additive, W3 review.) Why Book it waits: the price on screen is not yet the price of what it would send (a newer basket is pricing). Book it is disabled and says this beside it. Left out: it does not wait. - `look` (PlanLook): The catalog's words for the bars (names, sizes, times); `nameOf` is the step's own. - `icons` (Partial>): - `halfDays` (readonly string[]): The days the shop rents half days on (W7-06 `periods`); left out: every day. - `draft` ({ difference: number | null; refusal?: PlanRefusal | null; }): The change on the sheet as quoted by the caller: the difference from the quote now, or a refusal. - `onDraft` ((events: readonly GroupEvent[] | null) => void): The change on the sheet as the group's events, to quote; null when the sheet closes. - `taken` ({ can_ask?: boolean | null; can_save?: boolean | null; error: "lines_unavailable"; lines: components["schemas"]["PublicUnavailableLine"][]; ok: false; }): The booking was refused a line (taken while booking): the decision card on who books it. - `noPrice` (string): R5-flow: why there is no price (the quote failed, the shop refused the trip, nothing to book): said where the price goes and beside Book it, which waits. Null while it prices. - `onWay` ((way: PlanWay, change?: readonly GroupEvent[]) => void): A way out picked: a neighbour size or a stand in, or ask the shop. Keep only closes. On the change sheet `change` is the change the way was asked for, as the group's events: send them with the way's, worked out on the trip they make (`planWayEventsOf`). - `onOtherItem` ((riders: readonly string[]) => void): "Other bike": back to the bikes for these riders. - `termsHref` (string): - `rentalTerms` (Omit): (Additive, QA night 24 Oct S-17.) The shop's rental terms: "rental terms" opens them in a sheet (TermsSheet) instead of following `termsHref`. Left out: the link as before. - `accounts` (boolean): The shop takes accounts at booking (W7-05 `booking.flow.accounts`). - `country` (string): The shop's ISO country (the site read's `shop.country_code`): the phone's country to start. - `answer` (ShopAnswer): When the shop answers an asked line (core shopAnswerOf on W7-05 `booking.flow`); left out: "the shop answers". - `cover` (Omit): Damage cover (API return check section 5, board GuestKitCover): the trip's covers, ticked or not, and the cover's price for the trip; the tick goes out as the caller's (GuestBookingFlow sends the group's `cover` event). While ticked, the quote's own price for it (`trip.quoted`) is one "Damage cover" line on the receipt and in the total: the cover is added to the booking once it is made, so the quote's total leaves it out. Left out or no offers: nothing shows. - `openWho` (boolean): (Additive, G10.) The trip was brought back after a reload with who books it typed: Plan opens on who books it, as the guest left it. Read when the step mounts. - `sharedWith` (string): (Additive, job H1c.) The shop's name when the riding atlas sent the guest (`source` atlas): Plan, the step before Pay, lists what goes to the shop with this booking. Left out: nothing shows. - `account` (WhoBooksAccount): (Additive, W2 walk.) The signed-in guest's card: its name (when the booking rider has none), email and phone fill who books it's empty fields as it opens. Left out: only the rider's name. - `cart` ({ onAdd: () => void; busy?: boolean; failed?: string | null; }): (Additive, one cart.) A shop with the store and a trip its cart can hold: what it costs offers Add to cart (the one primary action, `onAdd`) with Book it now under it (who books it, as before). `busy` while it goes in; `failed` says why it did not. Left out: Book it alone, as before. - `state` (GroupState, required): - `send` ((event: GroupEvent) => void, required): - `shop` (FlowShop, required): - `nameOf` ((id: string) => string): A product, kind or tour id to its name in the guest's language (the site read). - `className` (string): ## PlanTimelineProps - `state` (GroupState, required): - `selected` ({ rider: string; date: string; }): - `bad` ({ rider: string; date: string; }): A cell with a problem (a clash). - `onCell` ((rider: string, date: string) => void, required): - `look` (PlanLook): The catalog's words for the bars (names, sizes, times); left out: the ids. - `icons` (Partial>): - `answer` (ShopAnswer): When the shop answers an asked line (core shopAnswerOf on W7-05 `booking.flow`); left out: "the shop answers". - `className` (string): ## PromoCodeProps - `promo` (PromoState, required): - `onOpen` (() => void, required): - `onCode` ((code: string) => void, required): - `onApply` (() => void, required): - `onRemove` (() => void, required): - `className` (string): ## RideKindPickerProps - `kinds` (RideKindView[], required): - `value` (string, required): - `onChange` ((id: string) => void, required): - `layout` ("stack" | "side"): - `onNotSure` (() => void): Opens the Finder; leave out when the shop has no finder. Draws the "Not sure?" tile. - `className` (string): ## RidePhotosProps - `photos` (readonly TourPhoto[], required): - `defaultAt` (number): The photo shown first on a phone (0 based). - `className` (string): ## RiderBibProps - `n` (number, required): 1 based. - `rider` (WhoRider, required): - `units` (Units, required): - `place` (string): - `askOwn` (boolean): (W3 P4, additive.) Ask "Brings own {item}": only when the trip rents. Default true. - `onRider` ((patch: Partial) => void, required): - `className` (string): ## RiderCardOwnProps - `name` (string): The rider's name, when the shop asks it here ("Later is fine"). The field shows with `onName`. - `onName` ((name: string) => void): - `onWeight` ((kg: number | null) => void): The rider's weight in kilograms, for the bike's setup. The field shows with `onWeight`. - `n` (number, required): - `rider` (RiderView, required): - `you` (boolean): - `open` (boolean): - `size` (string): The size picked, shown on the closed row. - `onHeight` ((cm: number | null) => void, required): - `onLevel` ((level: string) => void, required): - `onOpen` (() => void): - `extra` (ReactNode): - `problem` (string): The reason it is not ready, once the guest pressed Next. - `className` (string): ## RiderCardProps - `n` (number, required): - `rider` (RiderView, required): - `you` (boolean): - `open` (boolean): - `size` (string): The size picked, shown on the closed row. - `onHeight` ((cm: number | null) => void, required): - `onLevel` ((level: string) => void, required): - `onOpen` (() => void): - `extra` (ReactNode): - `problem` (string): The reason it is not ready, once the guest pressed Next. - `className` (string): ## RiderChipsProps - `riders` (readonly RiderChipView[], required): - `onToggle` ((key: string) => void, required): - `note` (string): Under the chips (`5 of 6 seats`, `Lena and Tom ride on their own`). - `label` (string): (Stitch, optional.) The group's name for a screen reader; "Who it is for" when left out. - `className` (string): ## RiderRowProps - `n` (number, required): - `rider` (WhoRider, required): - `units` (Units, required): - `onOpen` (() => void, required): - `className` (string): ## RiderSheetProps - `open` (boolean, required): - `onClose` (() => void, required): - `n` (number, required): - `rider` (WhoRider, required): - `units` (Units, required): - `onUnits` ((units: Units) => void, required): - `place` (string): - `askOwn` (boolean): (W3 P4, additive.) Ask "Brings own {item}": only when the trip rents. Default true. - `onRider` ((patch: Partial) => void, required): - `onNext` (() => void): Next rider; absent on the last, where the button says Done and closes. - `className` (string): ## RiderSizePicksProps - `model` (BikeModelView, required): - `riders` (BikeRiderView[], required): The riders on this model. - `picks` (Record, required): Each rider's size on it (picksOn). - `onSize` ((riderKey: string, optionId: string) => void, required): - `missing` (readonly string[]): The riders Next waits on for a size: their row says so and takes the focus. - `units` (BikeUnits): Heights in cm (the default) or ft and in. - `className` (string): ## RiderSizeRowProps - `rider` (BikeRiderView, required): - `model` (BikeModelView, required): - `pick` (BikeSizePick, required): - `onSize` ((optionId: string) => void, required): - `compact` (boolean): A phone's sheet row: the name and the size chips only. - `units` (BikeUnits): Heights in cm (the default) or ft and in. - `className` (string): ## RiderTripPageProps - `trip` ({ bring: components["schemas"]["Words-Output"][]; days: components["schemas"]["RiderTripDay"][]; expires_at: string; level: string | null; own_bike: { [key: string]: string | null; } | null; pickup: components["schemas"]["RiderTripPlace"] | null; reference: string; rider: string | null; shop: components["schemas"]["RiderTripShop"]; } & { [key: string]: unknown; }, required): - `timeZone` (string): (Stitch, optional.) The shop's IANA zone for the tours' times and the link's last day; UTC when left out. - `className` (string): ## RideSheetProps - `tour` ({ content?: components["schemas"]["TourContent"] | null; departures: components["schemas"]["SiteDeparture"][]; id: string; kind: "group_tour" | "private_tour" | "shuttle" | "transfer" | "lesson"; name: components["schemas"]["Words-Output"]; new_groups?: components["schemas"]["SiteNewGroup"][] | null; schedule?: components["schemas"]["Words-Output"] | null; slug: string; text?: components["schemas"]["Words-Output"] | null; }, required): - `onClose` (() => void, required): - `take` ({ label: string; onTake: () => void; }): Takes the time the button names for the group, then closes. - `photos` (readonly TourPhoto[]): The site's own photos of the tour; they win over the catalog's. - `defaultPhoto` (number): The photo shown first on a phone (0 based; a gallery frame). - `className` (string): ## RunningShortProps - `days` (readonly string[], required): The short days, YYYY-MM-DD in the shop's zone, in order: said once, as a detail. - `free` (number, required): How many of the trip's bikes the shop has (0 or more). - `of` (number, required): How many bikes the trip needs: every rider who rents. - `noneElse` (boolean): "No other size or bike is free then either.": neighbour sizes and stand-ins are gone too. - `onAsk` (() => void): Book the free bikes now, the rest on the waitlist. Null when the shop takes no asks. - `onRequest` (() => void): Send the request to the shop: the trip goes as a request, nothing paid now. Null: not offered. - `onSave` (() => void): Save the trip, finish later (opens SaveTripSheet). Null when the shop keeps no saved trips. - `picked` (ShortWay): The way the guest picked; the pick colours follow it. - `busy` (boolean): Waiting for the server: the ways take no press. - `answer` (ShopAnswer): When the shop answers (core shopAnswerOf on W7-05 `booking.flow`); null: a neutral line. - `className` (string): ## SavedRidersProps - `riders` (readonly SavedRiderView[], required): - `picked` (readonly string[], required): - `onToggle` ((id: string) => void, required): - `units` (Units, required): - `since` (string): "July": when they last booked. Absent: "from last time". - `onAddNew` (() => void): Shows "Add a new rider". - `className` (string): ## SaveTripSheetProps - `open` (boolean, required): - `onClose` (() => void, required): - `email` (string, required): The address, held by the host (a lead's email it already has fills it). - `onEmail` ((email: string) => void, required): - `onSave` ((email: string) => Promise, required): GBF-10 with the host's Idempotency-Key: the trip, the people, the step and this address. - `timeZone` (string, required): The shop's zone (IANA), for the link's last day. - `start` (SaveTripState): Where the sheet starts (the gallery draws each state); the form by default. - `className` (string): ## SeatDecisionProps - `title` (string, required): - `ways` ({ way: WayOut; kick: string; title: string; line: string; }[], required): - `onWay` ((way: WayOut) => void, required): - `onBack` (() => void, required): - `missing` (boolean): Next waits on a way out: marked missing, Next brings the guest here. - `className` (string): ## ShareTripProps - `riders` (readonly ShareRiderView[], required): The riders to send to, in Who's order; the site leaves the booker out. - `locale` ("en" | "it" | "de" | "fr", required): The language of the riders' emails. - `onShare` ((body: TripShareBody) => Promise, required): The site calls GBF-60 with this body and its own Idempotency-Key, once per call. - `copy` ((text: string) => Promise): Copies text; left out: the browser's clipboard. - `timeZone` (string, required): The shop's IANA zone for the links' end day. - `initial` (Partial): Where the card starts (the gallery draws each state; a site leaves it out). - `send` ("primary" | "outline"): (Additive.) The send button's style: the primary by default; `outline` on a page whose one primary is elsewhere (the confirmed page's Open my trip). - `rents` (boolean): (W3 P4, additive.) The trip rents something: the line names the gear and its size. False (a guided walk): "their own days and where to be". Default true. - `className` (string): ## SheetProps - `open` (boolean, required): - `onClose` (() => void, required): - `title` (string, required): The sheet's name for screen readers and its title row. - `as` ("auto" | "sheet" | "pop"): pop: the desktop header popover; sheet: the phone's bottom sheet. Both are drawn by CSS per width when "auto". - `children` (ReactNode, required): - `className` (string): ## ShopBarProps - `logo` (ReactNode): The shop's mark, usually a link home. - `children` (ReactNode): The site's own navigation; hidden below 768px (the site's menu takes over). - `end` (ReactNode): After the sign in pill: the language, the trip button. - `account` (ShopBarAccount): The guest: signed out shows "Sign in" (with `onSignIn`), signed in shows their name. Null: no pill. - `className` (string): ## ShortDayCardProps - `short` (ShortDay, required): - `canAsk` (boolean, required): The shop takes asked lines (W7-05 `booking.flow.can_ask`). - `onSave` (() => void): Save the trip and finish later, when the shop keeps saved trips (`can_save`) and the page can. - `change` (ShortChange, required): End the day before, start the day after, or skip the day; null when the trip is that one day. - `onAsk` ((day: string) => void, required): - `onChange` ((change: ShortChange) => void, required): - `look` ("sheet" | "card"): card: the computer's panel; sheet: the phone's options, each with its small label. - `title` (boolean): The sheet's title is the sheet's own; the card says it. - `className` (string): ## SignInPromptProps - `onSignIn` (() => void, required): - `onDismiss` (() => void): Shows "No thanks" (computer). - `className` (string): ## SignInSheetProps - `open` (boolean, required): - `onClose` (() => void, required): - `sendCode` ((email: string) => Promise, required): GBF-20: email a code. Resolves when sent (always, for any email). - `checkCode` ((email: string, code: string) => Promise, required): GBF-21: check the 6 digits. Resolves when signed in. - `signIn` ((email: string, password: string) => Promise, required): GBF-22: email and password. Resolves when signed in. - `onSignedIn` (() => void, required): Signed in: after checkCode or signIn resolved (and the passkey offer, when there is one, was answered or closed), or after passkeySignIn resolved. - `passkeySignIn` (() => Promise): GP-01 and GP-02 with the browser's window: shows "Sign in with a passkey" (a neutral button beside the code and the password; the code stays the primary). Pass it only when the site turns passkeys on and the browser can. Resolves when signed in. - `addPasskey` (() => Promise): GP-04 and GP-05 with the browser's window: after a code or password sign in the sheet offers "Add a passkey" or "Not now". Pass it only when passkeys are on, the browser can and the guest has not said Not now on this device lately. - `onPasskeyLater` (() => void): "Not now" on the offer (or closing it): the site remembers it for this device. - `onPasskeyAbort` (() => void): Stops the browser's passkey window when the sheet closes. - `initial` (Partial): Where the sheet starts (the gallery draws each state; a site may prefill the email). - `className` (string): ## SizeAwayProps - `rider` (BikeRiderView, required): - `model` (BikeModelView, required): - `pick` (BikeSizePick, required): - `units` (BikeUnits): Heights in cm (the default) or ft and in. - `className` (string): ## SizeChartProps - `sizes` (readonly { label: string; best: [number, number]; fits: [number, number]; }[], required): - `riders` (readonly { key: string; label: string; height: number; size?: string | null; }[], required): `label`: what the mark says ("Marco 178"). `size`: the size label the rider gets, when known. - `units` ("metric" | "imperial"): The scale's words in cm (the default) or ft and in; the bands stay in cm. - `className` (string): ## SizeFromHeightProps - `n` (number, required): - `model` (string, required): "E-bike". - `height` (number, required): - `sizes` ({ id: string; label: string; free?: FreeCount | null; }[], required): - `fits` (string, required): The size the chart gives for the height (dashed when not picked). - `value` (string, required): - `onChange` ((id: string) => void, required): - `className` (string): ## StandInProps - `model` (string, required): The model running short. - `left` (number, required): How many are left on the short day, and how many of you want it. - `wanted` (number, required): - `shortDays` (string[], required): The short days (YYYY-MM-DD) and the days that are fine. - `fineDays` (string[], required): - `offers` (StandInOffer[], required): - `value` (string, required): - `onPick` ((offerId: string) => void, required): - `answer` (ShopAnswer): When the shop answers an ask (W7-05 `booking.flow`, read with shopAnswerOf): "The shop answers within 12 hours". Null or left out: a neutral line. - `className` (string): ## StatusElementProps - `icon` ("bus" | "users" | "map-pin" | "store" | "clock" | "star" | "arrow-right" | "arrow-left" | "menu" | "globe" | "check" | "calendar" | "mountain" | "bike" | "wrench" | "shield-check" | "x" | "chevron-down" | "chevron-right" | "camera" | "phone" | "mail" | "rotate-3d" | "hand" | "info" | "external-link" | "sun" | "battery-charging" | "ruler" | "zap" | "hard-hat" | "route" | "timer" | "gauge" | "navigation" | "coffee" | "message-circle" | "key-round" | "lock" | "shopping-bag" | "move-horizontal" | "circle-check" | "ticket" | "credit-card"): The tile's icon; each kind has its own by default ("bike" reads well for a sold out bike). - `lines` (number): Loading: how many still bars stand where the content goes (0 for the line alone). - `kind` (StatusKind, required): - `title` (string): - `text` (string): - `phone` (string): The shop's phone, as a tel: link (error, closed, too soon). - `actions` (ReactNode): - `className` (string): ## StatusProps - `kind` (StatusKind, required): - `title` (string): - `text` (string): - `phone` (string): The shop's phone, as a tel: link (error, closed, too soon). - `actions` (ReactNode): - `className` (string): ## StepFootProps - `summary` (ReactNode): "Rent a bike and a guided tour", "5 riders, 4 bikes, Sara brings their own". Computer only. - `note` (ReactNode): A short line over the button on a phone: "Missing sizes? We fit them at the shop." - `why` (ReactNode): Why Next waits, in the guest's words, beside Next on every width and said out loud: "Pick at least one to go on." Shown in place of the note. - `next` (PrimaryAction, required): - `onBack` (() => void): Shows Back (computer). - `className` (string): ## StepperBandProps - `steps` (readonly BandStep[], required): - `onStep` ((id: string) => void): Go back to a done step. Without it the band only shows. - `onAdd` ((id: string) => void): Add a skipped step that carries `add` to the trip (and open it). Without it `add` shows as words only. - `count` (boolean): (W3 P7, additive.) Number the steps ("2 of 6 · Who"). False: the step's name only, for while the steps are not known yet (What, before the trip is picked), so no number later changes. Default true. - `className` (string): ## StepperProps - `value` (number, required): - `min` (number): - `max` (number): - `onChange` ((value: number) => void, required): - `label` (string, required): What the buttons say to a screen reader: "Riders". - `small` (boolean): ## StepperWordsOptions - `locale` ("en" | "it" | "de" | "fr" | "pt-BR", required): - `nameOf` ((id: string) => string, required): An activity, product or tour id to its short name (`Bike`, `Tour`, `Shuttle AMPD`, `Classic`). - `riderName` ((key: string) => string | null): A rider key to their name, or null when unnamed. - `words` (SummaryWords): The band's words with a shop's own (bandWordsOf over the resolved words); the locale's when left out. - `intl` (string): The tag the shop reads with (`words.intl`): en-US and en-CA put the month first. ## StepRouterProps - `page` (FlowPage, required): - `steps` (readonly ("pay" | "bikes" | "when" | "who" | "what" | "tour" | "kit" | "plan")[], required): - `render` (Partial ReactNode>>, required): - `fallback` (ReactNode): Drawn when the address is none of the flow's or a page has no render. ## StepsProps - `current` (number, required): 1-based. - `total` (number, required): - `label` (string, required): - `next` (string): - `className` (string): ## StripeCheckoutProps - `loadStripe` (StripeLoader, required): `loadStripe` from - `openSession` ((signal: AbortSignal) => Promise, required): GBF-30 with the site's Idempotency-Key. A new way is a new session: remount with a new `key`. Called once per mounted form: wrap it in `keepSessions` so a form drawn again reuses the session. - `onSession` ((session: CheckoutSessionShown) => void): - `onComplete` (() => void): - `timeoutMs` (number): How long the form may take to open before Try again shows; CHECKOUT_OPEN_MS when left out, Infinity for no limit. - `onFailed` (() => void): (Additive.) The form did not open (late or refused): Try again shows. Once per run. - `className` (string): ## TermsSheetProps - `open` (boolean, required): - `onClose` (() => void, required): - `cancellation` (string, required): The shop's cancelling terms in the guest's language; null: the shop put none online. - `pay` (TermsPay, required): - `phone` (string): The shop's phone, to ask about terms it did not put online. ## ToggleProps - `label` (string, required): - `on` (boolean, required): - `onChange` ((on: boolean) => void, required): - `look` ("switch" | "chip"): - `className` (string): ## TourAskProps - `value` ({ kind: "tour_request"; group: "new_group" | "private"; tourId: string; day: string; period: TourPeriod; riders: string[]; note?: string | null; }, required): - `tours` (readonly { content?: components["schemas"]["TourContent"] | null; departures: components["schemas"]["SiteDeparture"][]; id: string; kind: "group_tour" | "private_tour" | "shuttle" | "transfer" | "lesson"; name: components["schemas"]["Words-Output"]; new_groups?: components["schemas"]["SiteNewGroup"][] | null; schedule?: components["schemas"]["Words-Output"] | null; slug: string; text?: components["schemas"]["Words-Output"] | null; }[], required): - `riders` (readonly TourRider[], required): - `onChange` ((value: Request) => void, required): - `onSend` (() => void, required): - `onBack` (() => void): Leaves the request for the tours of the day. - `missing` (boolean): Next waits on the request being sent: marked missing, Next brings the guest here. - `className` (string): ## TourCardProps - `row` (TourRow, required): - `going` (number, required): - `onSlot` ((slot: TourSlot) => void, required): - `onSee` (() => void): - `photos` (readonly TourPhoto[]): The site's own photos of this tour; they win over the catalog's. None at all: no photo block. - `asked` (boolean): The tour the guest's link asked for: it shows as theirs, and only a time picks it. - `className` (string): ## TourDayEmptyProps - `day` (string, required): - `state` ("none" | "full", required): full: departures, all full; none: no tour that day. - `other` (string, required): Another trip day with seats ("See Thu 22"). - `onOther` ((day: string) => void, required): - `asked` (number, required): Riders already asking a new group that day; null: the shop opens no new groups. - `onNewGroup` (() => void): - `onPrivate` (() => void): - `className` (string): ## TourDayRailProps - `days` (readonly TourDay[], required): - `value` (string, required): - `onChange` ((day: string) => void, required): - `picked` (readonly string[]): The days with a tour picked: they say so in place of the count. - `className` (string): ## TourFootProps - `summary` (string, required): - `next` (PrimaryAction): - `onSkip` (() => void, required): - `why` (string): Why Next waits, beside it on every width and said out loud. - `className` (string): ## TourJoinProps - `joining` (boolean, required): Yes is picked: the tours show. No (false) is the trip as it is, picked by default. - `onChange` ((joining: boolean) => void, required): - `standalone` (boolean): The step's own title (h1) when the question is the whole page; else a heading inside a card. - `className` (string): ## TourStepProps - `tours` (readonly { content?: components["schemas"]["TourContent"] | null; departures: components["schemas"]["SiteDeparture"][]; id: string; kind: "group_tour" | "private_tour" | "shuttle" | "transfer" | "lesson"; name: components["schemas"]["Words-Output"]; new_groups?: components["schemas"]["SiteNewGroup"][] | null; schedule?: components["schemas"]["Words-Output"] | null; slug: string; text?: components["schemas"]["Words-Output"] | null; }[], required): W7-06 `tours` for the trip's days; null while the read is on its way. - `days` (readonly string[], required): The trip's days, YYYY-MM-DD in the shop's zone. - `riders` (readonly TourRider[], required): The group, in Who's order. - `value` (TourChoice, required): The tour on the day shown (a tour a day when `elsewhere` is given), else the trip's one tour. - `onChange` ((value: TourChoice | null, day: string) => void, required): The new choice, and the day whose tour it replaces (the old choice's day, else the day shown). - `elsewhere` (readonly TourChoice[]): The group's tours on the trip's other days, a tour a day: the rail marks their days, the foot names them all, and Next goes on with them while the day shown has none. Left out: one tour. - `flow` (TourFlow, required): What the shop's settings allow (tourFlowOf on W7-05 `booking.flow`). - `zone` (string, required): The shop's time zone (W7-05 `booking.notice.timezone`). - `day` (string): The day shown; leave out and the step keeps its own. - `onDay` ((day: string) => void): - `periods` (Readonly>): The group's part of each day (from When), for a guide pick or a request. Full by default. - `next` (PrimaryAction): The foot's Next (the site names the next step). Always pressable: while the choice does not fit it says why and brings the guest to what is missing; with nothing picked it is still pressed (the flow's `next` keeps the reason), so the flow knows the guest tried. - `tried` (boolean): Next was pressed while the step waited (the flow's `tried`): the reason shows from the start. - `onSkip` (() => void, required): "No tour this time": the guest goes on without a tour. Always offered, so nobody is stuck on the step. - `defaultRide` (string): The tour whose See the ride is open at first (a gallery frame, a shared link). - `defaultAsk` (boolean): The request form is open at first while the choice is a request. - `children` (ReactNode): Drawn above the tours (the site's own line). - `photos` (Readonly>): The site's own photos per tour product id; they win over the catalog's (`tours[].content.photos`) on the card and in See the ride. A tour with neither has no photo block at all. - `defaultPhoto` (number): The photo See the ride shows first on a phone (0 based; a gallery frame). - `asked` ({ tourId: string; day: string; }): The tour the guest's link asked for and its day (a day-only tour link, the ChatGPT app's): on that day it shows alone, as theirs, and the step asks only for its time. Null: every tour. - `onOthers` (() => void): "See the other tours": the guest leaves the asked tour for the whole list. - `included` (string): QA 27 Oct (G7): what the tour's price covers, under the title ("each rider's place on the guided tour", whether a bike is in it). Null or left out: nothing is said. - `bikes` (TourBikes): XP-HOLD: the picked departure's free bikes per size; null or left out: the tour holds none, or not read yet. - `bikesRefused` ({ size: string | null; }): XP-HOLD: the booking was refused because a size ran out meanwhile (409 `bikes_short`); the card shows with what happened. `size` the size it names, null when it named none. - `onBikesSeen` (() => void): The guest picked a way out of the refusal (or another time): the site forgets it. - `className` (string): ## TripAgendaProps - `view` ({ currency: string; days: number; first_day: string; lines: components["schemas"]["ViewLine"][]; locale: "en" | "it" | "de" | "fr"; money: components["schemas"]["BookingMoney"]; payments?: components["schemas"]["ViewPayment"][] | null; pickup?: components["schemas"]["ViewPickup"] | null; pickup_at: string; reference: string; return_by_at: string; riders: components["schemas"]["ViewRider"][]; shop: components["schemas"]["ViewShop"]; stage: "request" | "lapsed" | "waiting_payment" | "not_finished" | "needs_you" | "booked" | "not_collected" | "out" | "late" | "back" | "cancelled"; trip_url?: string | null; }, required): W7-11: the booking as booked. - `timeZone` (string, required): The shop's IANA zone: a tour's start and its day are read there. - `className` (string): ## TripAsideElementProps - `lines` (TripLineView[], required): - `children` (ReactNode): - `className` (string): - `title` (string): - `note` (string): - `totalMinor` (number, required): - `totalLabel` (string): - `action` (PrimaryAction): ## TripAsideProps - `title` (string): - `lines` (SummaryLine[], required): - `totalMinor` (number, required): - `totalLabel` (string): - `note` (string): - `action` (PrimaryAction): - `children` (ReactNode): - `className` (string): ## TripButtonElementProps - `open` (boolean): The trip sheet or popover is open: the button shows it (DBasket). - `count` (number, required): - `labelled` (boolean): "Your trip" beside the bag (a computer's header). - `onClick` (() => void): - `href` (string): - `className` (string): ## TripButtonProps - `count` (number, required): - `labelled` (boolean): "Your trip" beside the bag (a computer's header). - `onClick` (() => void): - `href` (string): - `className` (string): ## TripDamageProps - `damage` (TripDamageReport, required): The trip read's damage block (core tripDamageOf); null draws nothing. - `zone` (string): The shop's time zone, for when it was checked, happened and signed. - `email` (string): The shop's email, for "Question about this? Email us". - `className` (string): ## TripGoneProps - `onStart` (() => void, required): "Start again": the booking's first step. - `className` (string): ## TripSheetElementProps - `lines` (TripLineView[], required): - `totalLabel` (string): "So far" by default: the trip is not booked yet. - `onEmpty` (() => void): "Empty the trip": the computer's second link (DBasket). - `notice` (ReactNode): Picks were kept from before and checked again: a line that went full is flagged here. - `className` (string): - `note` (string): - `open` (boolean, required): - `totalMinor` (number, required): - `action` (PrimaryAction, required): - `onClose` (() => void, required): - `as` ("auto" | "sheet" | "pop"): - `sub` (string): "Sun 18 to Tue 20 Oct, 2 riders". - `onKeepLooking` (() => void): "Keep looking": closes. ## TripSheetProps - `open` (boolean, required): - `onClose` (() => void, required): - `as` ("auto" | "sheet" | "pop"): - `lines` (SummaryLine[], required): - `totalMinor` (number, required): - `note` (string): - `sub` (string): "Sun 18 to Tue 20 Oct, 2 riders". - `action` (PrimaryAction, required): - `onKeepLooking` (() => void): "Keep looking": closes. - `notice` (ReactNode): Picks were kept from before and checked again: a line that went full is flagged here. - `className` (string): ## TripWaitingProps - `timeZone` (string, required): The shop's zone (IANA), for the hold's time and the saved day. - `today` (string): Today in the shop's zone (YYYY-MM-DD). When the hold ends on another day, the day is said too. - `onPlan` (() => void, required): "See the plan". - `onPay` (() => void): Held: "Pay {amount}". - `onGoOn` (() => void): Saved: "Go on where you left off". - `busy` (boolean): Waiting for the server: the primary says so. - `layout` ("stack" | "side"): side: the computer, the trip card beside the words (Pay F); stack: the phone, under them. - `kind` ("held" | "saved", required): - `name` (string): The first rider's first name, for "Welcome back, Marco" (GBF-11 and GBF-13 carry no lead name: the booker rides first). Cleaned before it is shown; null, empty or only spaces: "Welcome back". - `holdUntil` (string): Held: the hold's end (an instant). - `savedUntil` (string): Saved: the link's end (an instant). - `stillFree` (boolean): Saved: false when some of it is no longer free; null when not checked. - `firstDay` (string, required): The trip's first and last day, YYYY-MM-DD; null when the trip has no days yet. - `lastDay` (string, required): - `riders` (number, required): How many ride. - `nowMinor` (number): Held: what is paid now (the API's deposit, or the whole trip), minor units. - `className` (string): ## UnitsSwitchProps - `value` (Units, required): - `onChange` ((units: Units) => void, required): - `look` ("pair" | "chip"): - `className` (string): ## WhatStepProps - `activities` (readonly ActivityView[], required): - `picked` (readonly string[], required): - `onToggle` ((id: string) => void, required): - `missing` (boolean): Next waits for a pick: the cards are marked missing (`data-og-missing`), Next brings the guest there. - `className` (string): ## WhenCalendarProps - `value` (WhenValue, required): - `ctx` (WhenContext, required): - `month` (string, required): The first month shown. - `onMonth` ((month: string) => void, required): - `onPick` ((day: string) => void, required): - `onMove` ((day: string) => void): Move the trip to start on this day (the "Start on" button under a day that cannot be picked). - `maxMonth` (string): After this month the forward arrow is off (the shop's last bookable day). - `className` (string): ## WhenDaysProps - `value` (WhenValue, required): - `ctx` (WhenContext, required): - `onToggle` ((day: string, half: Half | null) => void, required): A half switched, or the whole day (null) on a day the shop does not split. - `onPart` ((day: string, part: DayPick) => void): Full day, or a half day's morning or afternoon (DayHalves `onPart`). - `notes` (Record): A few words beside a day: "tour day". - `children` (ReactNode): The panel's right column below the days (the short day's card). - `missing` (boolean): Next waits for a day someone rides: the days are marked missing, Next brings the guest here. - `className` (string): ## WhenKeyProps - `riders` (number, required): How many in the group rent. - `className` (string): ## WhenStepProps - `value` (WhenValue, required): - `onChange` ((value: WhenValue) => void, required): - `ctx` (WhenContext, required): - `notes` (Record): A few words beside a day: "tour day". - `canAsk` (boolean): The shop takes asked lines (W7-05 `booking.flow.can_ask`). - `onSave` (() => void): Save the trip and finish later (`booking.flow.can_save`); left out, the way is not offered. - `onAsk` ((day: string) => void): After a short day's "ask the shop": the flow writes the asked line from `value.ask`. - `title` (string): The title; the shop's "When are you riding?" when left out. - `maxMonth` (string): The last month the arrows reach (the shop's booking lead). - `openDays` (boolean): Open the phone's days sheet on the first draw (the gallery's 3C). - `missing` ("days" | "tour" | "riding"): What Next waits on, once pressed: `days`, no trip yet (the calendar is marked missing); `riding`, nobody rides a day (the days are); `tour`, a picked tour has no departure on the trip's days (the note under the calendar is). Next brings the guest to the part marked. - `onDropTour` (() => void): (QA v0.23.3.) The trip picked a tour with no departure on its days: "Go on without the tour" (a trip that also rents) or "Pick something else" (`tourOnly`) takes it out of the trip. Left out, the note offers only the days the tour runs. - `tourOnly` (boolean): QA 27 Oct (G7): the trip has a tour and rents nothing. The words ask for the tour's day (not a first and a last day) and no rental hours show: the tour's own times come on the Tour step. - `picked` (string): (Additive, unify spec B.) What the guest already picked on the shop's store page, said under the title ("Your bike: Ampd, size L."); left out, nothing. - `className` (string): ## WhoBooksFormProps - `value` (WhoBooksValue, required): - `onChange` ((patch: Partial) => void, required): - `tried` (boolean): Book was pressed while something was not right: the reasons show under the fields. - `accounts` (boolean): The shop takes accounts at booking (W7-05 `booking.flow.accounts`); false: no account box. - `country` (string): The shop's ISO country: the phone's country until the guest's browser or the guest says another. - `termsHref` (string): The shop's rental terms page. - `onTermsOpen` (() => void): (Additive, QA night 24 Oct S-17.) Opens the shop's rental terms in a sheet: the "rental terms" words become a link button that calls it (it wins over `termsHref`). - `taken` (PlanClash): A line was taken while booking: the decision card above the total. - `due` (PlanDue): What is paid when the action is pressed; left out: no amount (the step's bar says it). - `action` (PrimaryAction): - `why` (string): Why the action waits, beside it and said out loud (`whoBooksWhy`); null: nothing waits. - `booker` ({ riders: readonly { key: string; label: string; }[]; value: string | null; onPick: (rider: string | null) => void; }): Who books it, as a choice under the title: one of the riders or someone else (left out: none). - `className` (string): ## WhoBooksProps - `lead` (FlowLead, required): - `riders` (readonly GroupRider[], required): - `booker` (string, required): - `onLead` ((patch: Partial) => void, required): - `onBooker` ((rider: string | null) => void, required): - `onRiderName` ((rider: string, name: string) => void): (Additive, W2 review.) The name of the rider who books it, as typed here: one name for the booker and their rider, so a correction reaches the booking and Who never asks for it again. - `password` (string): The account's password (null: none); left out: no account box. - `onPassword` ((password: string | null) => void): - `terms` (boolean): The rental terms, ticked by the guest. - `onTerms` ((on: boolean) => void): - `tried` (boolean): - `termsHref` (string): - `country` (string): The shop's ISO country: the phone's country to start. - `taken` (PlanClash): - `due` (PlanDue): - `action` (PrimaryAction): - `className` (string): ## WhoGoesProps - `riders` (readonly TourRider[], required): - `value` (readonly string[], required): - `onToggle` ((key: string) => void, required): - `left` (number, required): Seats left on the picked time; null for a request or a guide pick. - `missing` (boolean): Next waits on who goes: marked missing, Next brings the guest here. - `className` (string): ## WhoRidesProps - `model` (BikeModelView, required): - `models` (BikeModelView[], required): - `riders` (BikeRiderView[], required): - `assign` (Record, required): - `sizes` (Record): The size each rider of this model gets, by rider key ("L"); shown on the phone's chips. - `back` (string): The model the group just came from (a card tapped while everyone rode one bike): a tap on a rider already on this model puts them back on it, so the group splits. Left out: a rider on this model stays put. - `onMove` ((riderKey: string, modelId: string) => void, required): Move a rider: onto the model in view, or back onto `back`. - `layout` ("stack" | "bar"): - `className` (string): ## WhoStepProps - `riders` (readonly WhoRider[], required): - `onCount` ((n: number) => void, required): The counter: the flow adds or drops riders from the end. - `onRider` ((index: number, patch: Partial) => void, required): One rider changed. - `units` (Units, required): - `onUnits` ((units: Units) => void, required): - `place` (string): The shop's place for "First time in Finale"; null: the question is not asked. - `askOwn` (boolean): (W3 P4, additive.) Ask "Brings own {item}": only when the trip rents. Default true. - `min` (number): Default 1 and 20. - `max` (number): - `top` (ReactNode): Over the riders: the SignInPrompt, or the SavedRiders once signed in. - `className` (string): ## YourDaysProps - `days` (DayTimesView[], required): - `onPick` ((day: string, time: string) => void, required): - `className` (string):