@gitbook/api 0.41.0 → 0.43.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.41.0";
175
+ var version = "0.43.0";
176
176
 
177
177
  // src/client.ts
178
178
  var import_event_iterator = __toESM(require_node(), 1);
@@ -449,6 +449,7 @@ var IntegrationScope = /* @__PURE__ */ ((IntegrationScope2) => {
449
449
  IntegrationScope2["SpaceGitSync"] = "space:git:sync";
450
450
  IntegrationScope2["SpaceVisitorAuth"] = "space:visitor:auth";
451
451
  IntegrationScope2["SiteScriptInject"] = "site:script:inject";
452
+ IntegrationScope2["SiteScriptCookies"] = "site:script:cookies";
452
453
  IntegrationScope2["SiteVisitorAuth"] = "site:visitor:auth";
453
454
  return IntegrationScope2;
454
455
  })(IntegrationScope || {});
@@ -1141,6 +1142,14 @@ var Api = class extends HttpClient {
1141
1142
  format: "json",
1142
1143
  ...params
1143
1144
  }),
1145
+ listSpaceFileBacklinks: (spaceId, fileId, query, params = {}) => this.request({
1146
+ path: `/spaces/${spaceId}/content/files/${fileId}/backlinks`,
1147
+ method: "GET",
1148
+ query,
1149
+ secure: true,
1150
+ format: "json",
1151
+ ...params
1152
+ }),
1144
1153
  getPageById: (spaceId, pageId, query, params = {}) => this.request({
1145
1154
  path: `/spaces/${spaceId}/content/page/${pageId}`,
1146
1155
  method: "GET",
@@ -1392,6 +1401,14 @@ var Api = class extends HttpClient {
1392
1401
  format: "json",
1393
1402
  ...params
1394
1403
  }),
1404
+ listChangeRequestFileBacklinks: (spaceId, changeRequestId, fileId, query, params = {}) => this.request({
1405
+ path: `/spaces/${spaceId}/change-requests/${changeRequestId}/content/files/${fileId}/backlinks`,
1406
+ method: "GET",
1407
+ query,
1408
+ secure: true,
1409
+ format: "json",
1410
+ ...params
1411
+ }),
1395
1412
  getPageInChangeRequestById: (spaceId, changeRequestId, pageId, query, params = {}) => this.request({
1396
1413
  path: `/spaces/${spaceId}/change-requests/${changeRequestId}/content/page/${pageId}`,
1397
1414
  method: "GET",
@@ -2274,15 +2291,6 @@ var Api = class extends HttpClient {
2274
2291
  format: "json",
2275
2292
  ...params
2276
2293
  }),
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
2294
  searchOrganizationContent: (organizationId, query, params = {}) => this.request({
2287
2295
  path: `/orgs/${organizationId}/search`,
2288
2296
  method: "GET",
@@ -2459,13 +2467,6 @@ var Api = class extends HttpClient {
2459
2467
  format: "json",
2460
2468
  ...params
2461
2469
  }),
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
2470
  listEntitySchemas: (organizationId, query, params = {}) => this.request({
2470
2471
  path: `/orgs/${organizationId}/schemas`,
2471
2472
  method: "GET",
@@ -2821,6 +2822,13 @@ var Api = class extends HttpClient {
2821
2822
  format: "json",
2822
2823
  ...params
2823
2824
  }),
2825
+ listSiteIntegrationScripts: (organizationId, siteId, params = {}) => this.request({
2826
+ path: `/orgs/${organizationId}/sites/${siteId}/integration-scripts`,
2827
+ method: "GET",
2828
+ secure: true,
2829
+ format: "json",
2830
+ ...params
2831
+ }),
2824
2832
  addSpaceToSite: (organizationId, siteId, data, params = {}) => this.request({
2825
2833
  path: `/orgs/${organizationId}/sites/${siteId}/spaces`,
2826
2834
  method: "POST",
@@ -2869,71 +2877,22 @@ var Api = class extends HttpClient {
2869
2877
  format: "json",
2870
2878
  ...params
2871
2879
  }),
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`,
2880
+ moveSiteSpace: (organizationId, siteId, siteSpaceId, data, params = {}) => this.request({
2881
+ path: `/orgs/${organizationId}/sites/${siteId}/spaces/${siteSpaceId}/move`,
2889
2882
  method: "POST",
2890
2883
  body: data,
2891
2884
  secure: true,
2892
2885
  type: "application/json" /* Json */,
2886
+ format: "json",
2893
2887
  ...params
2894
2888
  }),
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}`,
2889
+ listPermissionsAggregateInSite: (organizationId, siteId, query, params = {}) => this.request({
2890
+ path: `/orgs/${organizationId}/sites/${siteId}/permissions/aggregate`,
2921
2891
  method: "GET",
2892
+ query,
2922
2893
  secure: true,
2923
2894
  format: "json",
2924
2895
  ...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
2896
  })
2938
2897
  };
2939
2898
  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.41.0",
7
+ "version": "0.43.0",
8
8
  "sideEffects": false,
9
9
  "files": [
10
10
  "README.md",