@gitbook/api 0.64.1 → 0.65.0

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/dist/index.js CHANGED
@@ -172,7 +172,7 @@ var require_node = __commonJS({
172
172
 
173
173
  // package.json
174
174
  var name = "@gitbook/api";
175
- var version = "0.64.1";
175
+ var version = "0.65.0";
176
176
 
177
177
  // src/client.ts
178
178
  var import_event_iterator = __toESM(require_node(), 1);
@@ -445,6 +445,7 @@ var RevisionPageType = /* @__PURE__ */ ((RevisionPageType2) => {
445
445
  RevisionPageType2["Document"] = "document";
446
446
  RevisionPageType2["Group"] = "group";
447
447
  RevisionPageType2["Link"] = "link";
448
+ RevisionPageType2["Computed"] = "computed";
448
449
  return RevisionPageType2;
449
450
  })(RevisionPageType || {});
450
451
  var RevisionPageLayoutPreset = /* @__PURE__ */ ((RevisionPageLayoutPreset2) => {
@@ -1236,6 +1237,16 @@ var Api = class extends HttpClient {
1236
1237
  format: "json",
1237
1238
  ...params
1238
1239
  }),
1240
+ computePageDocument: (spaceId, data, query, params = {}) => this.request({
1241
+ path: `/spaces/${spaceId}/content/computed/document`,
1242
+ method: "POST",
1243
+ query,
1244
+ body: data,
1245
+ secure: true,
1246
+ type: "application/json" /* Json */,
1247
+ format: "json",
1248
+ ...params
1249
+ }),
1239
1250
  getDocumentById: (spaceId, documentId, query, params = {}) => this.request({
1240
1251
  path: `/spaces/${spaceId}/documents/${documentId}`,
1241
1252
  method: "GET",
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "main": "./dist/index.cjs",
5
5
  "module": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
7
- "version": "0.64.1",
7
+ "version": "0.65.0",
8
8
  "sideEffects": false,
9
9
  "files": [
10
10
  "README.md",