@gitbook/api 0.40.0 → 0.42.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.40.0";
175
+ var version = "0.42.0";
176
176
 
177
177
  // src/client.ts
178
178
  var import_event_iterator = __toESM(require_node(), 1);
@@ -1141,6 +1141,14 @@ var Api = class extends HttpClient {
1141
1141
  format: "json",
1142
1142
  ...params
1143
1143
  }),
1144
+ listSpaceFileBacklinks: (spaceId, fileId, query, params = {}) => this.request({
1145
+ path: `/spaces/${spaceId}/content/files/${fileId}/backlinks`,
1146
+ method: "GET",
1147
+ query,
1148
+ secure: true,
1149
+ format: "json",
1150
+ ...params
1151
+ }),
1144
1152
  getPageById: (spaceId, pageId, query, params = {}) => this.request({
1145
1153
  path: `/spaces/${spaceId}/content/page/${pageId}`,
1146
1154
  method: "GET",
@@ -1392,6 +1400,14 @@ var Api = class extends HttpClient {
1392
1400
  format: "json",
1393
1401
  ...params
1394
1402
  }),
1403
+ listChangeRequestFileBacklinks: (spaceId, changeRequestId, fileId, query, params = {}) => this.request({
1404
+ path: `/spaces/${spaceId}/change-requests/${changeRequestId}/content/files/${fileId}/backlinks`,
1405
+ method: "GET",
1406
+ query,
1407
+ secure: true,
1408
+ format: "json",
1409
+ ...params
1410
+ }),
1395
1411
  getPageInChangeRequestById: (spaceId, changeRequestId, pageId, query, params = {}) => this.request({
1396
1412
  path: `/spaces/${spaceId}/change-requests/${changeRequestId}/content/page/${pageId}`,
1397
1413
  method: "GET",
@@ -2274,15 +2290,6 @@ var Api = class extends HttpClient {
2274
2290
  format: "json",
2275
2291
  ...params
2276
2292
  }),
2277
- transferOrganization: (organizationId, data, params = {}) => this.request({
2278
- path: `/orgs/${organizationId}/transfer`,
2279
- method: "POST",
2280
- body: data,
2281
- secure: true,
2282
- type: "application/json" /* Json */,
2283
- format: "json",
2284
- ...params
2285
- }),
2286
2293
  searchOrganizationContent: (organizationId, query, params = {}) => this.request({
2287
2294
  path: `/orgs/${organizationId}/search`,
2288
2295
  method: "GET",
@@ -2459,13 +2466,6 @@ var Api = class extends HttpClient {
2459
2466
  format: "json",
2460
2467
  ...params
2461
2468
  }),
2462
- getSeatsUsageForOrganizationById: (organizationId, params = {}) => this.request({
2463
- path: `/orgs/${organizationId}/usage/seats`,
2464
- method: "GET",
2465
- secure: true,
2466
- format: "json",
2467
- ...params
2468
- }),
2469
2469
  listEntitySchemas: (organizationId, query, params = {}) => this.request({
2470
2470
  path: `/orgs/${organizationId}/schemas`,
2471
2471
  method: "GET",
@@ -2869,71 +2869,22 @@ var Api = class extends HttpClient {
2869
2869
  format: "json",
2870
2870
  ...params
2871
2871
  }),
2872
- listPermissionsAggregateInSite: (organizationId, siteId, query, params = {}) => this.request({
2873
- path: `/orgs/${organizationId}/sites/${siteId}/permissions/aggregate`,
2874
- method: "GET",
2875
- query,
2876
- secure: true,
2877
- format: "json",
2878
- ...params
2879
- }),
2880
- listSeatsInOrganizationById: (organizationId, params = {}) => this.request({
2881
- path: `/orgs/${organizationId}/seats`,
2882
- method: "GET",
2883
- secure: true,
2884
- format: "json",
2885
- ...params
2886
- }),
2887
- addSeatsToOrganizationById: (organizationId, data, params = {}) => this.request({
2888
- path: `/orgs/${organizationId}/seats`,
2872
+ moveSiteSpace: (organizationId, siteId, siteSpaceId, data, params = {}) => this.request({
2873
+ path: `/orgs/${organizationId}/sites/${siteId}/spaces/${siteSpaceId}/move`,
2889
2874
  method: "POST",
2890
2875
  body: data,
2891
2876
  secure: true,
2892
2877
  type: "application/json" /* Json */,
2878
+ format: "json",
2893
2879
  ...params
2894
2880
  }),
2895
- removeSeatsFromOrganizationById: (organizationId, data, params = {}) => this.request({
2896
- path: `/orgs/${organizationId}/seats`,
2897
- method: "DELETE",
2898
- body: data,
2899
- secure: true,
2900
- type: "application/json" /* Json */,
2901
- ...params
2902
- }),
2903
- assignSeatsToMembersInOrganizationById: (organizationId, data, params = {}) => this.request({
2904
- path: `/orgs/${organizationId}/seats/members`,
2905
- method: "PUT",
2906
- body: data,
2907
- secure: true,
2908
- type: "application/json" /* Json */,
2909
- ...params
2910
- }),
2911
- revokeSeatsFromMembersInOrganizationById: (organizationId, data, params = {}) => this.request({
2912
- path: `/orgs/${organizationId}/seats/members`,
2913
- method: "DELETE",
2914
- body: data,
2915
- secure: true,
2916
- type: "application/json" /* Json */,
2917
- ...params
2918
- }),
2919
- getSeatForMemberInOrganizationById: (organizationId, userId, params = {}) => this.request({
2920
- path: `/orgs/${organizationId}/seats/members/${userId}`,
2881
+ listPermissionsAggregateInSite: (organizationId, siteId, query, params = {}) => this.request({
2882
+ path: `/orgs/${organizationId}/sites/${siteId}/permissions/aggregate`,
2921
2883
  method: "GET",
2884
+ query,
2922
2885
  secure: true,
2923
2886
  format: "json",
2924
2887
  ...params
2925
- }),
2926
- assignSeatToMemberInOrganizationById: (organizationId, userId, params = {}) => this.request({
2927
- path: `/orgs/${organizationId}/seats/members/${userId}`,
2928
- method: "PUT",
2929
- secure: true,
2930
- ...params
2931
- }),
2932
- revokeSeatFromMemberInOrganizationById: (organizationId, userId, params = {}) => this.request({
2933
- path: `/orgs/${organizationId}/seats/members/${userId}`,
2934
- method: "DELETE",
2935
- secure: true,
2936
- ...params
2937
2888
  })
2938
2889
  };
2939
2890
  this.customHostnames = {
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.40.0",
7
+ "version": "0.42.0",
8
8
  "sideEffects": false,
9
9
  "files": [
10
10
  "README.md",