@gitbook/api 0.109.0 → 0.110.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.cjs CHANGED
@@ -185,6 +185,7 @@ __export(src_exports, {
185
185
  Api: () => Api,
186
186
  BillingInterval: () => BillingInterval,
187
187
  BillingProduct: () => BillingProduct,
188
+ BillingSwitchAction: () => BillingSwitchAction,
188
189
  BillingTrialStatus: () => BillingTrialStatus,
189
190
  ChangeRequestBrainstormActor: () => ChangeRequestBrainstormActor,
190
191
  ChangeRequestBrainstormPlanStatus: () => ChangeRequestBrainstormPlanStatus,
@@ -268,7 +269,7 @@ module.exports = __toCommonJS(src_exports);
268
269
 
269
270
  // package.json
270
271
  var name = "@gitbook/api";
271
- var version = "0.109.0";
272
+ var version = "0.110.0";
272
273
 
273
274
  // src/client.ts
274
275
  var import_event_iterator = __toESM(require_node(), 1);
@@ -711,6 +712,15 @@ var TeamMemberRole = /* @__PURE__ */ ((TeamMemberRole2) => {
711
712
  TeamMemberRole2["Member"] = "member";
712
713
  return TeamMemberRole2;
713
714
  })(TeamMemberRole || {});
715
+ var BillingSwitchAction = /* @__PURE__ */ ((BillingSwitchAction2) => {
716
+ BillingSwitchAction2["Trial"] = "trial";
717
+ BillingSwitchAction2["Upgrade"] = "upgrade";
718
+ BillingSwitchAction2["UpgradePassive"] = "upgrade_passive";
719
+ BillingSwitchAction2["Downgrade"] = "downgrade";
720
+ BillingSwitchAction2["UndoCancel"] = "undo_cancel";
721
+ BillingSwitchAction2["SwitchInterval"] = "switch_interval";
722
+ return BillingSwitchAction2;
723
+ })(BillingSwitchAction || {});
714
724
  var StorageUploadKind = /* @__PURE__ */ ((StorageUploadKind2) => {
715
725
  StorageUploadKind2["CustomizationFont"] = "customization_font";
716
726
  return StorageUploadKind2;
@@ -1794,22 +1804,6 @@ var Api = class extends HttpClient {
1794
1804
  format: "json",
1795
1805
  ...params
1796
1806
  }),
1797
- streamBrainstormChangeRequest: (spaceId, changeRequestId, data, params = {}) => this.streamRequest({
1798
- path: `/spaces/${spaceId}/change-requests/${changeRequestId}/task/brainstorm`,
1799
- method: "POST",
1800
- body: data,
1801
- secure: true,
1802
- type: "application/json" /* Json */,
1803
- ...params
1804
- }),
1805
- streamImplementChangeRequestTask: (spaceId, changeRequestId, data, params = {}) => this.streamRequest({
1806
- path: `/spaces/${spaceId}/change-requests/${changeRequestId}/task/implement`,
1807
- method: "POST",
1808
- body: data,
1809
- secure: true,
1810
- type: "application/json" /* Json */,
1811
- ...params
1812
- }),
1813
1807
  getRevisionById: (spaceId, revisionId, query, params = {}) => this.request({
1814
1808
  path: `/spaces/${spaceId}/revisions/${revisionId}`,
1815
1809
  method: "GET",
@@ -2977,6 +2971,22 @@ var Api = class extends HttpClient {
2977
2971
  secure: true,
2978
2972
  ...params
2979
2973
  }),
2974
+ getSiteAdaptiveSchema: (organizationId, siteId, params = {}) => this.request({
2975
+ path: `/orgs/${organizationId}/sites/${siteId}/adaptive-schema`,
2976
+ method: "GET",
2977
+ secure: true,
2978
+ format: "json",
2979
+ ...params
2980
+ }),
2981
+ createOrUpdateSiteAdaptiveSchema: (organizationId, siteId, data, params = {}) => this.request({
2982
+ path: `/orgs/${organizationId}/sites/${siteId}/adaptive-schema`,
2983
+ method: "PUT",
2984
+ body: data,
2985
+ secure: true,
2986
+ type: "application/json" /* Json */,
2987
+ format: "json",
2988
+ ...params
2989
+ }),
2980
2990
  getPublishedContentSite: (organizationId, siteId, query, params = {}) => this.request({
2981
2991
  path: `/orgs/${organizationId}/sites/${siteId}/published`,
2982
2992
  method: "GET",
@@ -3552,6 +3562,7 @@ var GitBookAPI = class extends Api {
3552
3562
  Api,
3553
3563
  BillingInterval,
3554
3564
  BillingProduct,
3565
+ BillingSwitchAction,
3555
3566
  BillingTrialStatus,
3556
3567
  ChangeRequestBrainstormActor,
3557
3568
  ChangeRequestBrainstormPlanStatus,
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.109.0";
175
+ var version = "0.110.0";
176
176
 
177
177
  // src/client.ts
178
178
  var import_event_iterator = __toESM(require_node(), 1);
@@ -615,6 +615,15 @@ var TeamMemberRole = /* @__PURE__ */ ((TeamMemberRole2) => {
615
615
  TeamMemberRole2["Member"] = "member";
616
616
  return TeamMemberRole2;
617
617
  })(TeamMemberRole || {});
618
+ var BillingSwitchAction = /* @__PURE__ */ ((BillingSwitchAction2) => {
619
+ BillingSwitchAction2["Trial"] = "trial";
620
+ BillingSwitchAction2["Upgrade"] = "upgrade";
621
+ BillingSwitchAction2["UpgradePassive"] = "upgrade_passive";
622
+ BillingSwitchAction2["Downgrade"] = "downgrade";
623
+ BillingSwitchAction2["UndoCancel"] = "undo_cancel";
624
+ BillingSwitchAction2["SwitchInterval"] = "switch_interval";
625
+ return BillingSwitchAction2;
626
+ })(BillingSwitchAction || {});
618
627
  var StorageUploadKind = /* @__PURE__ */ ((StorageUploadKind2) => {
619
628
  StorageUploadKind2["CustomizationFont"] = "customization_font";
620
629
  return StorageUploadKind2;
@@ -1698,22 +1707,6 @@ var Api = class extends HttpClient {
1698
1707
  format: "json",
1699
1708
  ...params
1700
1709
  }),
1701
- streamBrainstormChangeRequest: (spaceId, changeRequestId, data, params = {}) => this.streamRequest({
1702
- path: `/spaces/${spaceId}/change-requests/${changeRequestId}/task/brainstorm`,
1703
- method: "POST",
1704
- body: data,
1705
- secure: true,
1706
- type: "application/json" /* Json */,
1707
- ...params
1708
- }),
1709
- streamImplementChangeRequestTask: (spaceId, changeRequestId, data, params = {}) => this.streamRequest({
1710
- path: `/spaces/${spaceId}/change-requests/${changeRequestId}/task/implement`,
1711
- method: "POST",
1712
- body: data,
1713
- secure: true,
1714
- type: "application/json" /* Json */,
1715
- ...params
1716
- }),
1717
1710
  getRevisionById: (spaceId, revisionId, query, params = {}) => this.request({
1718
1711
  path: `/spaces/${spaceId}/revisions/${revisionId}`,
1719
1712
  method: "GET",
@@ -2881,6 +2874,22 @@ var Api = class extends HttpClient {
2881
2874
  secure: true,
2882
2875
  ...params
2883
2876
  }),
2877
+ getSiteAdaptiveSchema: (organizationId, siteId, params = {}) => this.request({
2878
+ path: `/orgs/${organizationId}/sites/${siteId}/adaptive-schema`,
2879
+ method: "GET",
2880
+ secure: true,
2881
+ format: "json",
2882
+ ...params
2883
+ }),
2884
+ createOrUpdateSiteAdaptiveSchema: (organizationId, siteId, data, params = {}) => this.request({
2885
+ path: `/orgs/${organizationId}/sites/${siteId}/adaptive-schema`,
2886
+ method: "PUT",
2887
+ body: data,
2888
+ secure: true,
2889
+ type: "application/json" /* Json */,
2890
+ format: "json",
2891
+ ...params
2892
+ }),
2884
2893
  getPublishedContentSite: (organizationId, siteId, query, params = {}) => this.request({
2885
2894
  path: `/orgs/${organizationId}/sites/${siteId}/published`,
2886
2895
  method: "GET",
@@ -3455,6 +3464,7 @@ export {
3455
3464
  Api,
3456
3465
  BillingInterval,
3457
3466
  BillingProduct,
3467
+ BillingSwitchAction,
3458
3468
  BillingTrialStatus,
3459
3469
  ChangeRequestBrainstormActor,
3460
3470
  ChangeRequestBrainstormPlanStatus,
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.109.0",
7
+ "version": "0.110.0",
8
8
  "sideEffects": false,
9
9
  "files": [
10
10
  "README.md",