@gitbook/api 0.46.0 → 0.47.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.46.0";
175
+ var version = "0.47.0";
176
176
 
177
177
  // src/client.ts
178
178
  var import_event_iterator = __toESM(require_node(), 1);
@@ -472,6 +472,7 @@ var IntegrationCategory = /* @__PURE__ */ ((IntegrationCategory2) => {
472
472
  IntegrationCategory2["Content"] = "content";
473
473
  IntegrationCategory2["Gitsync"] = "gitsync";
474
474
  IntegrationCategory2["Marketing"] = "marketing";
475
+ IntegrationCategory2["VisitorAuth"] = "visitor-auth";
475
476
  IntegrationCategory2["Other"] = "other";
476
477
  return IntegrationCategory2;
477
478
  })(IntegrationCategory || {});
@@ -501,7 +502,7 @@ var BillingProduct = /* @__PURE__ */ ((BillingProduct2) => {
501
502
  BillingProduct2["Free2024"] = "free_2024";
502
503
  BillingProduct2["Plus2024"] = "plus_2024";
503
504
  BillingProduct2["Pro2024"] = "pro_2024";
504
- BillingProduct2["Enterprise"] = "enterprise";
505
+ BillingProduct2["Enterprise2024"] = "enterprise_2024";
505
506
  BillingProduct2["Free"] = "free";
506
507
  BillingProduct2["Plus"] = "plus";
507
508
  BillingProduct2["Pro"] = "pro";
@@ -509,6 +510,7 @@ var BillingProduct = /* @__PURE__ */ ((BillingProduct2) => {
509
510
  BillingProduct2["Business"] = "business";
510
511
  BillingProduct2["Legacy"] = "legacy";
511
512
  BillingProduct2["Startup"] = "startup";
513
+ BillingProduct2["Enterprise"] = "enterprise";
512
514
  return BillingProduct2;
513
515
  })(BillingProduct || {});
514
516
  var APIIntegrationScope = /* @__PURE__ */ ((APIIntegrationScope2) => {
@@ -638,25 +640,19 @@ var PageFeedbackRating = /* @__PURE__ */ ((PageFeedbackRating2) => {
638
640
  PageFeedbackRating2["Good"] = "good";
639
641
  return PageFeedbackRating2;
640
642
  })(PageFeedbackRating || {});
643
+ var SiteType = /* @__PURE__ */ ((SiteType2) => {
644
+ SiteType2["Basic"] = "basic";
645
+ SiteType2["Standard"] = "standard";
646
+ SiteType2["Premium"] = "premium";
647
+ return SiteType2;
648
+ })(SiteType || {});
641
649
  var SiteVisibility = /* @__PURE__ */ ((SiteVisibility2) => {
642
650
  SiteVisibility2["Public"] = "public";
643
651
  SiteVisibility2["Unlisted"] = "unlisted";
644
652
  SiteVisibility2["ShareLink"] = "share-link";
645
653
  SiteVisibility2["VisitorAuth"] = "visitor-auth";
646
- SiteVisibility2["Unpublished"] = "unpublished";
647
654
  return SiteVisibility2;
648
655
  })(SiteVisibility || {});
649
- var SiteSubscriptionStatus = /* @__PURE__ */ ((SiteSubscriptionStatus2) => {
650
- SiteSubscriptionStatus2["Active"] = "active";
651
- SiteSubscriptionStatus2["Inactive"] = "inactive";
652
- return SiteSubscriptionStatus2;
653
- })(SiteSubscriptionStatus || {});
654
- var SiteSubscriptionType = /* @__PURE__ */ ((SiteSubscriptionType2) => {
655
- SiteSubscriptionType2["Basic"] = "basic";
656
- SiteSubscriptionType2["Premium"] = "premium";
657
- SiteSubscriptionType2["PremiumVa"] = "premium_va";
658
- return SiteSubscriptionType2;
659
- })(SiteSubscriptionType || {});
660
656
  var CustomHostnameDnsStatus = /* @__PURE__ */ ((CustomHostnameDnsStatus2) => {
661
657
  CustomHostnameDnsStatus2["DnsPassed"] = "dns_passed";
662
658
  CustomHostnameDnsStatus2["DnsWrongCname"] = "dns_wrong_cname";
@@ -2413,6 +2409,14 @@ var Api = class extends HttpClient {
2413
2409
  format: "json",
2414
2410
  ...params
2415
2411
  }),
2412
+ listOrganizationIntegrationsStatus: (organizationId, query, params = {}) => this.request({
2413
+ path: `/orgs/${organizationId}/integrations/installations-status`,
2414
+ method: "GET",
2415
+ query,
2416
+ secure: true,
2417
+ format: "json",
2418
+ ...params
2419
+ }),
2416
2420
  listOrgExperimentalFeatures: (organizationId, params = {}) => this.request({
2417
2421
  path: `/orgs/${organizationId}/experiments`,
2418
2422
  method: "GET",
@@ -2768,6 +2772,36 @@ var Api = class extends HttpClient {
2768
2772
  secure: true,
2769
2773
  ...params
2770
2774
  }),
2775
+ checkoutSite: (organizationId, siteId, data, params = {}) => this.request({
2776
+ path: `/orgs/${organizationId}/sites/${siteId}/checkout`,
2777
+ method: "POST",
2778
+ body: data,
2779
+ secure: true,
2780
+ type: "application/json" /* Json */,
2781
+ format: "json",
2782
+ ...params
2783
+ }),
2784
+ getSiteCheckoutById: (organizationId, siteId, params = {}) => this.request({
2785
+ path: `/orgs/${organizationId}/sites/${siteId}/checkout`,
2786
+ method: "GET",
2787
+ secure: true,
2788
+ format: "json",
2789
+ ...params
2790
+ }),
2791
+ publishSite: (organizationId, siteId, params = {}) => this.request({
2792
+ path: `/orgs/${organizationId}/sites/${siteId}/publish`,
2793
+ method: "POST",
2794
+ secure: true,
2795
+ format: "json",
2796
+ ...params
2797
+ }),
2798
+ unpublishSite: (organizationId, siteId, params = {}) => this.request({
2799
+ path: `/orgs/${organizationId}/sites/${siteId}/unpublish`,
2800
+ method: "POST",
2801
+ secure: true,
2802
+ format: "json",
2803
+ ...params
2804
+ }),
2771
2805
  listSiteShareLinks: (organizationId, siteId, query, params = {}) => this.request({
2772
2806
  path: `/orgs/${organizationId}/sites/${siteId}/share-links`,
2773
2807
  method: "GET",
@@ -2816,6 +2850,13 @@ var Api = class extends HttpClient {
2816
2850
  format: "json",
2817
2851
  ...params
2818
2852
  }),
2853
+ regenerateSitePublishingAuthById: (organizationId, siteId, params = {}) => this.request({
2854
+ path: `/orgs/${organizationId}/sites/${siteId}/publishing/auth/regenerate`,
2855
+ method: "POST",
2856
+ secure: true,
2857
+ format: "json",
2858
+ ...params
2859
+ }),
2819
2860
  getSitePublishingPreviewById: (organizationId, siteId, query, params = {}) => this.request({
2820
2861
  path: `/orgs/${organizationId}/sites/${siteId}/publishing/preview`,
2821
2862
  method: "GET",
@@ -2824,9 +2865,10 @@ var Api = class extends HttpClient {
2824
2865
  format: "json",
2825
2866
  ...params
2826
2867
  }),
2827
- getSiteCustomizationById: (organizationId, siteId, params = {}) => this.request({
2868
+ getSiteCustomizationById: (organizationId, siteId, query, params = {}) => this.request({
2828
2869
  path: `/orgs/${organizationId}/sites/${siteId}/customization`,
2829
2870
  method: "GET",
2871
+ query,
2830
2872
  secure: true,
2831
2873
  format: "json",
2832
2874
  ...params
@@ -2887,9 +2929,10 @@ var Api = class extends HttpClient {
2887
2929
  secure: true,
2888
2930
  ...params
2889
2931
  }),
2890
- getSiteSpaceCustomizationById: (organizationId, siteId, siteSpaceId, params = {}) => this.request({
2932
+ getSiteSpaceCustomizationById: (organizationId, siteId, siteSpaceId, query, params = {}) => this.request({
2891
2933
  path: `/orgs/${organizationId}/sites/${siteId}/spaces/${siteSpaceId}/customization`,
2892
2934
  method: "GET",
2935
+ query,
2893
2936
  secure: true,
2894
2937
  format: "json",
2895
2938
  ...params
@@ -3129,8 +3172,7 @@ export {
3129
3172
  RevisionPageLayoutPreset,
3130
3173
  RevisionPageType,
3131
3174
  RevisionSemanticChangeType,
3132
- SiteSubscriptionStatus,
3133
- SiteSubscriptionType,
3175
+ SiteType,
3134
3176
  SiteVisibility,
3135
3177
  SpaceBlockReason,
3136
3178
  SpaceEditMode,
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.46.0",
7
+ "version": "0.47.0",
8
8
  "sideEffects": false,
9
9
  "files": [
10
10
  "README.md",