@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/client.d.ts +289 -25
- package/dist/index.cjs +12 -1
- package/dist/index.js +12 -1
- package/package.json +1 -1
- package/spec/openapi.json +767 -61
- package/spec/openapi.yaml +429 -29
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.
|
|
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",
|