@bitefoundry/onenote 0.4.6 → 0.4.8

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/docs/API.md CHANGED
@@ -49,7 +49,7 @@ All OneNote endpoints are served under both `/v1/onenote/...` and the shorter `/
49
49
  | `POST` | `/v1/onenote/notebooks` | Create notebook (`{ name, group_id?, site_id? }`) |
50
50
  | `GET` | `/v1/onenote/sections` | List sections (`?notebook=...&refresh=false&offline=false`) |
51
51
  | `POST` | `/v1/onenote/sections` | Create section (`{ notebook, name }`) |
52
- | `GET` | `/v1/onenote/pages` | List pages in a section (`?section=...&limit=50&refresh=false&offline=false`) |
52
+ | `GET` | `/v1/onenote/pages` | List pages in a section (`?section=...&limit=50&cursor=...&refresh=false&offline=false`); the response carries `has_more` and `next_cursor` for the next request's `cursor` |
53
53
  | `POST` | `/v1/onenote/pages` | Create a top-level page (`{ section, title, markdown?, level?, image_paths? }`). `level` defaults to 0. |
54
54
  | `GET` | `/v1/onenote/pages/{page}` | Get structured page detail (`?section=...&offline=false`) |
55
55
  | `PATCH` | `/v1/onenote/pages/{page}` | Update block or page (`{ block_id?, title?, markdown?, expected_content?, force?, section? }`) |
package/docs/openapi.yaml CHANGED
@@ -127,6 +127,10 @@ paths:
127
127
  - name: limit
128
128
  in: query
129
129
  schema: { type: integer, default: 50 }
130
+ - name: cursor
131
+ in: query
132
+ description: `next_cursor` from the previous response
133
+ schema: { type: string }
130
134
  - name: refresh
131
135
  in: query
132
136
  schema: { type: boolean, default: false }
@@ -135,7 +139,9 @@ paths:
135
139
  schema: { type: boolean, default: false }
136
140
  responses:
137
141
  '200':
138
- description: Page summaries
142
+ description: Page summaries with `returned`, `has_more` and `next_cursor` (null on the last page)
143
+ '400':
144
+ description: Invalid cursor
139
145
  post:
140
146
  summary: Create a top-level OneNote page from Markdown
141
147
  security:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitefoundry/onenote",
3
- "version": "0.4.6",
3
+ "version": "0.4.8",
4
4
  "description": "Microsoft OneNote terminal client & AI agent toolkit — Notebooks, Sections, Pages, XHTML/Markdown & Resources (CLI, TUI, HTTP API, MCP)",
5
5
  "repository": {
6
6
  "type": "git",
@@ -40,11 +40,11 @@
40
40
  "build:npm": "node scripts/build-npm.mjs"
41
41
  },
42
42
  "optionalDependencies": {
43
- "@bitefoundry/onenote-win32-x64": "0.4.6",
44
- "@bitefoundry/onenote-win32-arm64": "0.4.6",
45
- "@bitefoundry/onenote-darwin-x64": "0.4.6",
46
- "@bitefoundry/onenote-darwin-arm64": "0.4.6",
47
- "@bitefoundry/onenote-linux-x64": "0.4.6",
48
- "@bitefoundry/onenote-linux-arm64": "0.4.6"
43
+ "@bitefoundry/onenote-win32-x64": "0.4.8",
44
+ "@bitefoundry/onenote-win32-arm64": "0.4.8",
45
+ "@bitefoundry/onenote-darwin-x64": "0.4.8",
46
+ "@bitefoundry/onenote-darwin-arm64": "0.4.8",
47
+ "@bitefoundry/onenote-linux-x64": "0.4.8",
48
+ "@bitefoundry/onenote-linux-arm64": "0.4.8"
49
49
  }
50
50
  }