sbuilder-mcp 0.109.1 → 0.110.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +25 -0
- package/CHANGELOG.vi.md +25 -0
- package/README.md +16 -15
- package/README.vi.md +15 -15
- package/dist/catalog/api.generated.js +162 -5
- package/dist/catalog/deadkeys.generated.js +3 -3
- package/dist/catalog/elements.generated.js +95 -13
- package/dist/catalog/overlays.generated.js +2 -0
- package/dist/catalog/shapes.generated.js +23 -5
- package/dist/catalog/source.generated.js +2 -2
- package/dist/catalog/storepages.generated.js +2 -0
- package/dist/catalog/translations.generated.js +4 -1
- package/dist/core/tree.js +28 -0
- package/dist/domains/site/builder.js +68 -4
- package/dist/domains/site/document.js +9 -1
- package/dist/domains/site/inert.js +10 -8
- package/dist/index.js +13 -0
- package/dist/install/guided.js +260 -0
- package/dist/install/index.js +18 -90
- package/dist/tools/page.js +9 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,31 @@ All notable changes to this project are documented in this file.
|
|
|
6
6
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
7
7
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
8
8
|
|
|
9
|
+
## [0.110.1] - 2026-11-19
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
- `sb_add` takes `menu_item_id` to turn a menu row into a mega panel, and `sb_outline` tags the panel with its row id and label.
|
|
13
|
+
- The `sale-badge` element gains a `tag` mode that binds product tags, and `product-variants` gains a `showAttributes` option.
|
|
14
|
+
- The API catalog grows to 1009 operations, adding `POST /api/v1/code-components/preview` and `GET /api/v1/pages/{id}/preview`.
|
|
15
|
+
|
|
16
|
+
### Changed
|
|
17
|
+
- `sb_remove` of a mega panel clears its menu row's `panelId` in the same save.
|
|
18
|
+
|
|
19
|
+
### Fixed
|
|
20
|
+
- `sb_move` of a menu's mega panel and a same-page `sb_duplicate` of one are refused with a pointer to `sb_remove` or `menu_item_id`, instead of leaving a row that points at nothing.
|
|
21
|
+
- A mega panel added under its menu with `menu_item_id` no longer warns that it never renders.
|
|
22
|
+
|
|
23
|
+
## [0.110.0] - 2026-11-19
|
|
24
|
+
|
|
25
|
+
### Added
|
|
26
|
+
- `install` runs as a single guided command, `npx -y sbuilder-mcp@latest install`, that signs in through the browser by default, lets you pick a store by number, and installs into every agent in three steps.
|
|
27
|
+
- Running `npx sbuilder-mcp` with no arguments in a terminal prints the command to run instead of sitting silent.
|
|
28
|
+
- The installer speaks Vietnamese when the machine language is Vietnamese or `--lang vi` is passed.
|
|
29
|
+
|
|
30
|
+
### Changed
|
|
31
|
+
- `install` targets the live platform (`https://api.sbuilder.io.vn`) by default, so `--api` is only needed for a local platform.
|
|
32
|
+
- Client configs written by a login-style install pin `sbuilder-mcp@latest`, so a stale npx cache cannot run a version that cannot read the login session.
|
|
33
|
+
|
|
9
34
|
## [0.109.1] - 2026-11-19
|
|
10
35
|
|
|
11
36
|
### Fixed
|
package/CHANGELOG.vi.md
CHANGED
|
@@ -6,6 +6,31 @@ Mọi thay đổi đáng chú ý của dự án được ghi lại trong file n
|
|
|
6
6
|
Định dạng dựa trên [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
7
7
|
và dự án tuân theo [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
8
8
|
|
|
9
|
+
## [0.110.1] - 2026-11-19
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
- `sb_add` nhận `menu_item_id` để biến một hàng menu thành mega panel, và `sb_outline` gắn nhãn panel bằng id và nhãn của hàng đó.
|
|
13
|
+
- Phần tử `sale-badge` có thêm chế độ `tag` gắn thẻ sản phẩm, và `product-variants` có thêm tùy chọn `showAttributes`.
|
|
14
|
+
- Danh mục API tăng lên 1009 thao tác, thêm `POST /api/v1/code-components/preview` và `GET /api/v1/pages/{id}/preview`.
|
|
15
|
+
|
|
16
|
+
### Changed
|
|
17
|
+
- `sb_remove` một mega panel xoá `panelId` của hàng menu tương ứng trong cùng một lần lưu.
|
|
18
|
+
|
|
19
|
+
### Fixed
|
|
20
|
+
- `sb_move` mega panel của menu và `sb_duplicate` nó trong cùng trang bị từ chối kèm gợi ý dùng `sb_remove` hoặc `menu_item_id`, thay vì để lại một hàng trỏ vào chỗ không có gì.
|
|
21
|
+
- Mega panel thêm vào menu bằng `menu_item_id` không còn bị cảnh báo là không bao giờ hiển thị.
|
|
22
|
+
|
|
23
|
+
## [0.110.0] - 2026-11-19
|
|
24
|
+
|
|
25
|
+
### Added
|
|
26
|
+
- `install` chạy bằng một lệnh có hướng dẫn, `npx -y sbuilder-mcp@latest install`, mặc định đăng nhập bằng trình duyệt, chọn cửa hàng bằng số và cài vào mọi agent qua ba bước.
|
|
27
|
+
- Chạy `npx sbuilder-mcp` không kèm tham số trong terminal sẽ in ra lệnh cần chạy thay vì đứng im.
|
|
28
|
+
- Trình cài đặt nói tiếng Việt khi máy dùng tiếng Việt hoặc khi truyền `--lang vi`.
|
|
29
|
+
|
|
30
|
+
### Changed
|
|
31
|
+
- `install` mặc định dùng nền tảng thật (`https://api.sbuilder.io.vn`), nên chỉ cần `--api` khi dùng nền tảng local.
|
|
32
|
+
- Cấu hình client do cài đặt kiểu đăng nhập ghi ra dùng `sbuilder-mcp@latest`, nên bản cũ trong cache npx không thể chạy một phiên bản không đọc được phiên đăng nhập.
|
|
33
|
+
|
|
9
34
|
## [0.109.1] - 2026-11-19
|
|
10
35
|
|
|
11
36
|
### Fixed
|
package/README.md
CHANGED
|
@@ -8,27 +8,28 @@ publish it — with no human clicking anything.
|
|
|
8
8
|
|
|
9
9
|
## Install
|
|
10
10
|
|
|
11
|
-
One command
|
|
11
|
+
One command, nothing to copy:
|
|
12
12
|
|
|
13
13
|
```bash
|
|
14
|
-
npx -y sbuilder-mcp install
|
|
14
|
+
npx -y sbuilder-mcp@latest install
|
|
15
15
|
```
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
It walks you through three steps: **sign in** (a browser page opens — type the code shown in
|
|
18
|
+
the terminal and press Approve), **choose your store** (type its number), and **install** into
|
|
19
|
+
every agent client it finds. Then restart your agent and ask it something like *"list the pages
|
|
20
|
+
of my store"*. No key, no password and no config file to edit. It speaks Vietnamese on a
|
|
21
|
+
Vietnamese machine (or with `--lang vi`), and run with no arguments it just tells you this
|
|
22
|
+
command. Local development: add `--api http://localhost:8080`.
|
|
23
|
+
|
|
24
|
+
The store's **Apps → AI agent** screen hands you the same command with the store already
|
|
25
|
+
chosen (`--site`).
|
|
26
|
+
|
|
27
|
+
### With an API key instead (one store, scripts, CI)
|
|
18
28
|
|
|
19
29
|
```bash
|
|
20
|
-
npx -y sbuilder-mcp
|
|
30
|
+
npx -y sbuilder-mcp install --token wbk_… --api https://your-host --site site_…
|
|
21
31
|
```
|
|
22
32
|
|
|
23
|
-
It prints a code and opens the platform's sign-in page: type the code, check it matches, press
|
|
24
|
-
**Approve**. No key and no password is written anywhere — the login is kept in
|
|
25
|
-
`~/.config/sb/credentials.json` (owner-only), **the same file `sb login` uses**, so one approval
|
|
26
|
-
signs in the CLI and every agent window together, and survives restarts. `--site` is the site
|
|
27
|
-
the agent starts on; with the account it can reach every site you can, and `sb_site_use` moves
|
|
28
|
-
it. Already signed in? The command says so and skips the browser. Inside a chat, `sb_login`
|
|
29
|
-
does the same thing (the first call returns the code, the next one waits for the approval), and
|
|
30
|
-
`sb_login action:"logout"` signs the machine out.
|
|
31
|
-
|
|
32
33
|
It knows Claude Code, Claude Desktop, Cursor, Windsurf, VS Code and Codex, and installs into
|
|
33
34
|
the ones it finds. Name them with `--client cursor,codex`, or rehearse with `--dry-run`. An
|
|
34
35
|
option it does not know is **refused**, not ignored — a flag that silently does nothing is
|
|
@@ -109,7 +110,7 @@ in this client: one would put the very key the platform exists to hold back into
|
|
|
109
110
|
| `sb_node_read` | One node in full, with a warning if it is a shared global |
|
|
110
111
|
| `sb_catalog_search` | Find an element by what it should do, using the platform's own AI hints |
|
|
111
112
|
| `sb_traits_for` | An element's inspector — tabs, groups, controls and what each declared one writes — plus its AI hints, defaults and containment rules |
|
|
112
|
-
| `sb_add` | Add an element — or a whole nested subtree — in one call; a filter arrives with its option rows read from the catalogue |
|
|
113
|
+
| `sb_add` | Add an element — or a whole nested subtree — in one call; a filter arrives with its option rows read from the catalogue; `menu_item_id` turns a menu row into a mega panel |
|
|
113
114
|
| `sb_set` | Write style/config/specials. Per breakpoint by default |
|
|
114
115
|
| `sb_move` | Move a node to another parent |
|
|
115
116
|
| `sb_remove` | Remove a node and its subtree |
|
|
@@ -141,7 +142,7 @@ in this client: one would put the very key the platform exists to hold back into
|
|
|
141
142
|
| `sb_store` | Run a store flow that must happen in a fixed order — `checkout` (the four writes that make a working one), `checkout_sync` (the store's current payment and delivery methods into every existing order form, checkout page republished), `form` (any of the platform's 17 templates with its own field document), `chrome` (one shared header or footer on a real site menu — site name linked home, desktop menu, mobile drawer, search, cart and account icons), `menu` (a menu node bound to the site's menu, its links resolved), `overlay_attach` (a pop-up or quick view on the open page), `cart` (the site's cart drawer, when it has none; `relocalize` puts an existing one in the site's language) and `app` (a built-in app plus the pages it needs), `global_attach` / `global_detach` (put an EXISTING shared section on the open page, or take it off), `global_promote` (make a section on the page a NEW shared section) and `template_save` (save a section as a reusable template) |
|
|
142
143
|
| `sb_undo` | Undo / redo this session's writes — page and form edits and `sb_api_call` PUTs, each named by tool and target, the open page's by default (`all: true` for every page); a page is refused if someone else saved it since. The platform's versions and history (`sb_page_version`) outlive this process |
|
|
143
144
|
|
|
144
|
-
Forty tools, **
|
|
145
|
+
Forty tools, **1011 API operations** (375 of the 466 writes carrying a body shape read
|
|
145
146
|
off the handler), 125 elements, 96 binding sources. `sb_api_find`
|
|
146
147
|
is an index rather than a tool per endpoint, so the tool list stays short while everything
|
|
147
148
|
the platform can do stays reachable — and operations added to the platform arrive with the
|
package/README.vi.md
CHANGED
|
@@ -8,27 +8,27 @@ quả rồi xuất bản — mà không cần người bấm gì.
|
|
|
8
8
|
|
|
9
9
|
## Cài đặt
|
|
10
10
|
|
|
11
|
-
Một lệnh
|
|
11
|
+
Một lệnh, không phải chép gì:
|
|
12
12
|
|
|
13
13
|
```bash
|
|
14
|
-
npx -y sbuilder-mcp install
|
|
14
|
+
npx -y sbuilder-mcp@latest install
|
|
15
15
|
```
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
Lệnh dẫn bạn qua ba bước: **đăng nhập** (trang trình duyệt mở ra — gõ mã hiện trong terminal rồi
|
|
18
|
+
bấm Chấp thuận), **chọn cửa hàng** (gõ số), và **cài** vào mọi agent client tìm thấy trên máy.
|
|
19
|
+
Sau đó mở lại agent và hỏi thử *"liệt kê các trang của cửa hàng tôi"*. Không khoá, không mật khẩu,
|
|
20
|
+
không file cấu hình nào phải sửa. Máy tiếng Việt (hoặc `--lang vi`) thì lệnh nói tiếng Việt; chạy
|
|
21
|
+
`npx sbuilder-mcp` không kèm gì thì nó chỉ nhắc lệnh này. Phát triển ở local: thêm
|
|
22
|
+
`--api http://localhost:8080`.
|
|
23
|
+
|
|
24
|
+
Màn **Ứng dụng → AI agent** của cửa hàng đưa sẵn đúng lệnh này với cửa hàng đã chọn (`--site`).
|
|
25
|
+
|
|
26
|
+
### Hoặc dùng khoá API (một cửa hàng, script, CI)
|
|
18
27
|
|
|
19
28
|
```bash
|
|
20
|
-
npx -y sbuilder-mcp
|
|
29
|
+
npx -y sbuilder-mcp install --token wbk_… --api https://your-host --site site_…
|
|
21
30
|
```
|
|
22
31
|
|
|
23
|
-
Lệnh in ra một mã và mở trang đăng nhập của nền tảng: gõ mã, kiểm tra khớp, bấm **Đồng ý**.
|
|
24
|
-
Không khoá, không mật khẩu nào bị ghi ra — phiên đăng nhập được giữ trong
|
|
25
|
-
`~/.config/sb/credentials.json` (chỉ chủ máy đọc được), **cùng file với `sb login`**, nên một lần
|
|
26
|
-
đồng ý là CLI và mọi cửa sổ agent đều đăng nhập, và vẫn còn sau khi khởi động lại. `--site` là
|
|
27
|
-
site agent bắt đầu làm; với cả tài khoản nó với tới mọi site bạn có quyền, và `sb_site_use`
|
|
28
|
-
chuyển site. Đã đăng nhập rồi thì lệnh báo và bỏ qua trình duyệt. Ngay trong cuộc chat,
|
|
29
|
-
`sb_login` làm việc tương tự (lần gọi đầu trả mã, lần sau chờ bạn đồng ý), và
|
|
30
|
-
`sb_login action:"logout"` đăng xuất máy.
|
|
31
|
-
|
|
32
32
|
Nó biết Claude Code, Claude Desktop, Cursor, Windsurf, VS Code và Codex, và cài vào những
|
|
33
33
|
cái nó tìm thấy. Chỉ định bằng `--client cursor,codex`, hoặc diễn thử với `--dry-run`. Một
|
|
34
34
|
tuỳ chọn nó không biết sẽ bị **từ chối**, không phải bỏ qua — một cờ âm thầm không làm gì
|
|
@@ -106,7 +106,7 @@ nhét ngược lại vào mọi bản cài.
|
|
|
106
106
|
| `sb_node_read` | Một node đầy đủ, kèm cảnh báo nếu nó là global dùng chung |
|
|
107
107
|
| `sb_catalog_search` | Tìm element theo việc nó cần làm, dùng chính AI hints của nền tảng |
|
|
108
108
|
| `sb_traits_for` | Inspector của element — tab, nhóm, control và mỗi control khai báo sẵn ghi vào đâu — kèm AI hints, default và luật chứa con |
|
|
109
|
-
| `sb_add` | Thêm một element — hoặc cả cây con lồng nhau — trong một lần gọi; filter được tạo kèm sẵn các dòng lấy từ catalogue |
|
|
109
|
+
| `sb_add` | Thêm một element — hoặc cả cây con lồng nhau — trong một lần gọi; filter được tạo kèm sẵn các dòng lấy từ catalogue; `menu_item_id` biến một dòng menu thành mega panel |
|
|
110
110
|
| `sb_set` | Ghi style/config/specials. Mặc định theo breakpoint |
|
|
111
111
|
| `sb_move` | Chuyển node sang cha khác |
|
|
112
112
|
| `sb_remove` | Xoá node và cả cây con |
|
|
@@ -138,7 +138,7 @@ nhét ngược lại vào mọi bản cài.
|
|
|
138
138
|
| `sb_store` | Chạy một luồng cửa hàng bắt buộc đúng thứ tự — `checkout` (bốn lệnh ghi tạo nên trang thanh toán), `checkout_sync` (đưa phương thức thanh toán và giao hàng hiện tại vào mọi form đặt hàng đã có, publish lại trang thanh toán), `form` (một trong 17 template của nền tảng kèm field document của nó), `chrome` (một header hoặc footer dùng chung trên menu thật của site — tên site dẫn về trang chủ, menu desktop, drawer mobile, ô tìm kiếm, icon giỏ hàng và tài khoản), `menu` (một node menu bind vào menu của site, link đã phân giải), `overlay_attach` (một pop-up hay quick view trên trang đang mở), `cart` (ngăn giỏ hàng của site, khi chưa có; `relocalize` đưa ngăn giỏ đã có về ngôn ngữ của site), `app` (một app dựng sẵn kèm những trang nó cần), và `global_attach` / `global_detach` (đặt một section dùng chung ĐÃ CÓ lên trang đang mở, hoặc gỡ ra), `global_promote` (biến một section trên trang thành section dùng chung MỚI) và `template_save` (lưu một section làm mẫu dùng lại) |
|
|
139
139
|
| `sb_undo` | Hoàn tác / làm lại các thao tác ghi trong phiên — chỉnh sửa trang, form và PUT qua `sb_api_call`, mỗi mục ghi tên tool và đối tượng, mặc định của trang đang mở (`all: true` cho mọi trang); trang bị từ chối nếu người khác đã lưu sau đó. Version và history của nền tảng (`sb_page_version`) sống lâu hơn process này |
|
|
140
140
|
|
|
141
|
-
Bốn mươi tool, **
|
|
141
|
+
Bốn mươi tool, **1011 operation API** (375 trong 466 lệnh ghi có hình dạng body đọc thẳng
|
|
142
142
|
từ handler), 125 element, 96 nguồn binding. `sb_api_find` là
|
|
143
143
|
một chỉ mục chứ không phải mỗi endpoint một tool, nên danh sách tool vẫn ngắn trong khi mọi
|
|
144
144
|
thứ nền tảng làm được vẫn với tới — và operation mới thêm bên nền tảng sẽ tự có sau lần
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export const SWAGGER_SOURCE = {
|
|
2
|
-
"operations":
|
|
3
|
-
"definitions":
|
|
4
|
-
"bodyCarrying":
|
|
2
|
+
"operations": 1011,
|
|
3
|
+
"definitions": 444,
|
|
4
|
+
"bodyCarrying": 487,
|
|
5
5
|
"bodyUndescribed": 122,
|
|
6
6
|
"generatedFrom": "server/docs/swagger.json"
|
|
7
7
|
};
|
|
@@ -28999,6 +28999,27 @@ export const API_OPERATIONS = [
|
|
|
28999
28999
|
"bodyRef": "internal_publicapi.CodeComponentInput",
|
|
29000
29000
|
"credential": "apiKey"
|
|
29001
29001
|
},
|
|
29002
|
+
{
|
|
29003
|
+
"id": "post:/api/v1/code-components/preview",
|
|
29004
|
+
"method": "POST",
|
|
29005
|
+
"path": "/api/v1/code-components/preview",
|
|
29006
|
+
"tags": [
|
|
29007
|
+
"v1"
|
|
29008
|
+
],
|
|
29009
|
+
"summary": "Render an unstored SSR bundle once, before uploading it",
|
|
29010
|
+
"params": [
|
|
29011
|
+
{
|
|
29012
|
+
"name": "preview",
|
|
29013
|
+
"in": "body",
|
|
29014
|
+
"required": true,
|
|
29015
|
+
"type": "object",
|
|
29016
|
+
"description": "Bundle, props schema and props"
|
|
29017
|
+
}
|
|
29018
|
+
],
|
|
29019
|
+
"bodyDescribed": true,
|
|
29020
|
+
"bodyRef": "internal_publicapi.CodeComponentPreviewInput",
|
|
29021
|
+
"credential": "apiKey"
|
|
29022
|
+
},
|
|
29002
29023
|
{
|
|
29003
29024
|
"id": "get:/api/v1/code-components/{name}",
|
|
29004
29025
|
"method": "GET",
|
|
@@ -31135,6 +31156,27 @@ export const API_OPERATIONS = [
|
|
|
31135
31156
|
"bodyRef": "internal_publicapi.PageDocumentInput",
|
|
31136
31157
|
"credential": "apiKey"
|
|
31137
31158
|
},
|
|
31159
|
+
{
|
|
31160
|
+
"id": "get:/api/v1/pages/{id}/preview",
|
|
31161
|
+
"method": "GET",
|
|
31162
|
+
"path": "/api/v1/pages/{id}/preview",
|
|
31163
|
+
"tags": [
|
|
31164
|
+
"v1"
|
|
31165
|
+
],
|
|
31166
|
+
"summary": "Mint a draft-preview link for one page",
|
|
31167
|
+
"params": [
|
|
31168
|
+
{
|
|
31169
|
+
"name": "id",
|
|
31170
|
+
"in": "path",
|
|
31171
|
+
"required": true,
|
|
31172
|
+
"type": "string",
|
|
31173
|
+
"description": "Page ID"
|
|
31174
|
+
}
|
|
31175
|
+
],
|
|
31176
|
+
"bodyDescribed": false,
|
|
31177
|
+
"bodyRef": null,
|
|
31178
|
+
"credential": "apiKey"
|
|
31179
|
+
},
|
|
31138
31180
|
{
|
|
31139
31181
|
"id": "post:/api/v1/pages/{id}/publish",
|
|
31140
31182
|
"method": "POST",
|
|
@@ -31394,6 +31436,48 @@ export const API_OPERATIONS = [
|
|
|
31394
31436
|
"bodyRef": "internal_publicapi.ProductInput",
|
|
31395
31437
|
"credential": "apiKey"
|
|
31396
31438
|
},
|
|
31439
|
+
{
|
|
31440
|
+
"id": "get:/api/v1/site-settings",
|
|
31441
|
+
"method": "GET",
|
|
31442
|
+
"path": "/api/v1/site-settings",
|
|
31443
|
+
"tags": [
|
|
31444
|
+
"v1"
|
|
31445
|
+
],
|
|
31446
|
+
"summary": "Read or save the site's settings",
|
|
31447
|
+
"params": [
|
|
31448
|
+
{
|
|
31449
|
+
"name": "siteSettings",
|
|
31450
|
+
"in": "body",
|
|
31451
|
+
"required": false,
|
|
31452
|
+
"type": "object",
|
|
31453
|
+
"description": "The settings to save (PUT only)"
|
|
31454
|
+
}
|
|
31455
|
+
],
|
|
31456
|
+
"bodyDescribed": true,
|
|
31457
|
+
"bodyRef": "internal_publicapi.SiteSettingsInput",
|
|
31458
|
+
"credential": "apiKey"
|
|
31459
|
+
},
|
|
31460
|
+
{
|
|
31461
|
+
"id": "put:/api/v1/site-settings",
|
|
31462
|
+
"method": "PUT",
|
|
31463
|
+
"path": "/api/v1/site-settings",
|
|
31464
|
+
"tags": [
|
|
31465
|
+
"v1"
|
|
31466
|
+
],
|
|
31467
|
+
"summary": "Read or save the site's settings",
|
|
31468
|
+
"params": [
|
|
31469
|
+
{
|
|
31470
|
+
"name": "siteSettings",
|
|
31471
|
+
"in": "body",
|
|
31472
|
+
"required": false,
|
|
31473
|
+
"type": "object",
|
|
31474
|
+
"description": "The settings to save (PUT only)"
|
|
31475
|
+
}
|
|
31476
|
+
],
|
|
31477
|
+
"bodyDescribed": true,
|
|
31478
|
+
"bodyRef": "internal_publicapi.SiteSettingsInput",
|
|
31479
|
+
"credential": "apiKey"
|
|
31480
|
+
},
|
|
31397
31481
|
{
|
|
31398
31482
|
"id": "get:/api/v1/theme",
|
|
31399
31483
|
"method": "GET",
|
|
@@ -40619,6 +40703,29 @@ export const API_DEFINITIONS = {
|
|
|
40619
40703
|
}
|
|
40620
40704
|
}
|
|
40621
40705
|
},
|
|
40706
|
+
"internal_publicapi.CodeComponentPreviewInput": {
|
|
40707
|
+
"type": "object",
|
|
40708
|
+
"properties": {
|
|
40709
|
+
"props": {
|
|
40710
|
+
"type": "object",
|
|
40711
|
+
"additionalProperties": {}
|
|
40712
|
+
},
|
|
40713
|
+
"propsSchema": {
|
|
40714
|
+
"type": "object"
|
|
40715
|
+
},
|
|
40716
|
+
"ssrBundle": {
|
|
40717
|
+
"type": "string"
|
|
40718
|
+
}
|
|
40719
|
+
}
|
|
40720
|
+
},
|
|
40721
|
+
"internal_publicapi.CodeComponentPreviewResponse": {
|
|
40722
|
+
"type": "object",
|
|
40723
|
+
"properties": {
|
|
40724
|
+
"html": {
|
|
40725
|
+
"type": "string"
|
|
40726
|
+
}
|
|
40727
|
+
}
|
|
40728
|
+
},
|
|
40622
40729
|
"internal_publicapi.CodeComponentResponse": {
|
|
40623
40730
|
"type": "object",
|
|
40624
40731
|
"properties": {
|
|
@@ -42057,6 +42164,23 @@ export const API_DEFINITIONS = {
|
|
|
42057
42164
|
}
|
|
42058
42165
|
}
|
|
42059
42166
|
},
|
|
42167
|
+
"internal_publicapi.PagePreview": {
|
|
42168
|
+
"type": "object",
|
|
42169
|
+
"properties": {
|
|
42170
|
+
"url": {
|
|
42171
|
+
"description": "URL opens the page's saved draft as a visitor would see it. Signed, valid\nfor one hour, needs no credential: whoever holds it can view the draft.",
|
|
42172
|
+
"type": "string"
|
|
42173
|
+
}
|
|
42174
|
+
}
|
|
42175
|
+
},
|
|
42176
|
+
"internal_publicapi.PagePreviewResponse": {
|
|
42177
|
+
"type": "object",
|
|
42178
|
+
"properties": {
|
|
42179
|
+
"preview": {
|
|
42180
|
+
"$ref": "#/definitions/internal_publicapi.PagePreview"
|
|
42181
|
+
}
|
|
42182
|
+
}
|
|
42183
|
+
},
|
|
42060
42184
|
"internal_publicapi.PageResponse": {
|
|
42061
42185
|
"type": "object",
|
|
42062
42186
|
"properties": {
|
|
@@ -42281,16 +42405,49 @@ export const API_DEFINITIONS = {
|
|
|
42281
42405
|
}
|
|
42282
42406
|
}
|
|
42283
42407
|
},
|
|
42284
|
-
"internal_publicapi.
|
|
42408
|
+
"internal_publicapi.SiteSettings": {
|
|
42409
|
+
"type": "object",
|
|
42410
|
+
"properties": {
|
|
42411
|
+
"document": {
|
|
42412
|
+
"description": "Document is null until settings have been saved.",
|
|
42413
|
+
"type": "object"
|
|
42414
|
+
},
|
|
42415
|
+
"updatedAt": {
|
|
42416
|
+
"description": "UpdatedAt is \"\" until settings have been saved. Send it back as\nexpectedUpdatedAt.",
|
|
42417
|
+
"type": "string"
|
|
42418
|
+
}
|
|
42419
|
+
}
|
|
42420
|
+
},
|
|
42421
|
+
"internal_publicapi.SiteSettingsInput": {
|
|
42285
42422
|
"type": "object",
|
|
42286
42423
|
"properties": {
|
|
42287
42424
|
"document": {
|
|
42288
|
-
"description": "Document is null until a theme has been saved.",
|
|
42289
42425
|
"type": "array",
|
|
42290
42426
|
"items": {
|
|
42291
42427
|
"type": "integer"
|
|
42292
42428
|
}
|
|
42293
42429
|
},
|
|
42430
|
+
"expectedUpdatedAt": {
|
|
42431
|
+
"description": "ExpectedUpdatedAt is the `updatedAt` you read (\"\" when none was saved\nyet). REQUIRED to be present: a settings save replaces the whole document\nand is live at once, so a blind write is refused rather than defaulted.",
|
|
42432
|
+
"type": "string"
|
|
42433
|
+
}
|
|
42434
|
+
}
|
|
42435
|
+
},
|
|
42436
|
+
"internal_publicapi.SiteSettingsResponse": {
|
|
42437
|
+
"type": "object",
|
|
42438
|
+
"properties": {
|
|
42439
|
+
"siteSettings": {
|
|
42440
|
+
"$ref": "#/definitions/internal_publicapi.SiteSettings"
|
|
42441
|
+
}
|
|
42442
|
+
}
|
|
42443
|
+
},
|
|
42444
|
+
"internal_publicapi.Theme": {
|
|
42445
|
+
"type": "object",
|
|
42446
|
+
"properties": {
|
|
42447
|
+
"document": {
|
|
42448
|
+
"description": "Document is null until a theme has been saved.",
|
|
42449
|
+
"type": "object"
|
|
42450
|
+
},
|
|
42294
42451
|
"updatedAt": {
|
|
42295
42452
|
"description": "UpdatedAt is \"\" until a theme has been saved. Send it back as\nexpectedUpdatedAt.",
|
|
42296
42453
|
"type": "string"
|