@gitbook/api 0.91.0 → 0.92.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.91.0";
175
+ var version = "0.92.0";
176
176
 
177
177
  // src/client.ts
178
178
  var import_event_iterator = __toESM(require_node(), 1);
@@ -1457,19 +1457,22 @@ var Api = class extends HttpClient {
1457
1457
  format: "json",
1458
1458
  ...params
1459
1459
  }),
1460
- getComputedDocument: (spaceId, query, params = {}) => this.request({
1460
+ getComputedDocument: (spaceId, data, query, params = {}) => this.request({
1461
1461
  path: `/spaces/${spaceId}/content/computed/document`,
1462
- method: "GET",
1462
+ method: "POST",
1463
1463
  query,
1464
+ body: data,
1464
1465
  secure: true,
1466
+ type: "application/json" /* Json */,
1465
1467
  format: "json",
1466
1468
  ...params
1467
1469
  }),
1468
- getComputedPage: (spaceId, query, params = {}) => this.request({
1469
- path: `/spaces/${spaceId}/content/computed/page`,
1470
- method: "GET",
1471
- query,
1470
+ getComputedRevision: (spaceId, data, params = {}) => this.request({
1471
+ path: `/spaces/${spaceId}/content/computed/revision`,
1472
+ method: "POST",
1473
+ body: data,
1472
1474
  secure: true,
1475
+ type: "application/json" /* Json */,
1473
1476
  format: "json",
1474
1477
  ...params
1475
1478
  }),
@@ -2602,11 +2605,12 @@ var Api = class extends HttpClient {
2602
2605
  type: "application/json" /* Json */,
2603
2606
  ...params
2604
2607
  }),
2605
- previewMigrateOrganizationPlan: (organizationId, query, params = {}) => this.request({
2606
- path: `/orgs/${organizationId}/billing/migrate`,
2607
- method: "GET",
2608
- query,
2608
+ previewMigrateOrganizationPlan: (organizationId, data, params = {}) => this.request({
2609
+ path: `/orgs/${organizationId}/billing/migrate/preview`,
2610
+ method: "POST",
2611
+ body: data,
2609
2612
  secure: true,
2613
+ type: "application/json" /* Json */,
2610
2614
  format: "json",
2611
2615
  ...params
2612
2616
  }),
@@ -3190,6 +3194,14 @@ var Api = class extends HttpClient {
3190
3194
  format: "json",
3191
3195
  ...params
3192
3196
  }),
3197
+ listSiteSectionGroups: (organizationId, siteId, query, params = {}) => this.request({
3198
+ path: `/orgs/${organizationId}/sites/${siteId}/section-groups`,
3199
+ method: "GET",
3200
+ query,
3201
+ secure: true,
3202
+ format: "json",
3203
+ ...params
3204
+ }),
3193
3205
  addSectionGroupToSite: (organizationId, siteId, data, params = {}) => this.request({
3194
3206
  path: `/orgs/${organizationId}/sites/${siteId}/section-groups`,
3195
3207
  method: "POST",
@@ -3214,6 +3226,21 @@ var Api = class extends HttpClient {
3214
3226
  secure: true,
3215
3227
  ...params
3216
3228
  }),
3229
+ addSectionToGroup: (organizationId, siteId, siteSectionGroupId, data, params = {}) => this.request({
3230
+ path: `/orgs/${organizationId}/sites/${siteId}/section-groups/${siteSectionGroupId}/sections`,
3231
+ method: "POST",
3232
+ body: data,
3233
+ secure: true,
3234
+ type: "application/json" /* Json */,
3235
+ format: "json",
3236
+ ...params
3237
+ }),
3238
+ removeSectionFromGroup: (organizationId, siteId, siteSectionGroupId, siteSectionId, params = {}) => this.request({
3239
+ path: `/orgs/${organizationId}/sites/${siteId}/section-groups/${siteSectionGroupId}/sections/${siteSectionId}`,
3240
+ method: "DELETE",
3241
+ secure: true,
3242
+ ...params
3243
+ }),
3217
3244
  addSectionToSite: (organizationId, siteId, data, params = {}) => this.request({
3218
3245
  path: `/orgs/${organizationId}/sites/${siteId}/sections`,
3219
3246
  method: "POST",
@@ -3333,6 +3360,15 @@ var Api = class extends HttpClient {
3333
3360
  format: "json",
3334
3361
  ...params
3335
3362
  }),
3363
+ moveSiteSectionGroup: (organizationId, siteId, siteSectionGroupId, data, params = {}) => this.request({
3364
+ path: `/orgs/${organizationId}/sites/${siteId}/section-groups/${siteSectionGroupId}/move`,
3365
+ method: "POST",
3366
+ body: data,
3367
+ secure: true,
3368
+ type: "application/json" /* Json */,
3369
+ format: "json",
3370
+ ...params
3371
+ }),
3336
3372
  moveSiteSection: (organizationId, siteId, siteSectionId, data, params = {}) => this.request({
3337
3373
  path: `/orgs/${organizationId}/sites/${siteId}/sections/${siteSectionId}/move`,
3338
3374
  method: "POST",
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.91.0",
7
+ "version": "0.92.0",
8
8
  "sideEffects": false,
9
9
  "files": [
10
10
  "README.md",