@gitbook/api 0.88.1 → 0.89.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.88.1";
175
+ var version = "0.89.0";
176
176
 
177
177
  // src/client.ts
178
178
  var import_event_iterator = __toESM(require_node(), 1);
@@ -617,6 +617,25 @@ var BillingInterval = /* @__PURE__ */ ((BillingInterval2) => {
617
617
  BillingInterval2["Yearly"] = "yearly";
618
618
  return BillingInterval2;
619
619
  })(BillingInterval || {});
620
+ var SiteToMigrateFeature = /* @__PURE__ */ ((SiteToMigrateFeature2) => {
621
+ SiteToMigrateFeature2["Sections"] = "sections";
622
+ SiteToMigrateFeature2["VisitorAuth"] = "visitor-auth";
623
+ SiteToMigrateFeature2["Redirects"] = "redirects";
624
+ SiteToMigrateFeature2["CustomHostname"] = "custom-hostname";
625
+ SiteToMigrateFeature2["AISearch"] = "AI-search";
626
+ SiteToMigrateFeature2["PDFExport"] = "PDF-export";
627
+ SiteToMigrateFeature2["PageRatings"] = "page-ratings";
628
+ SiteToMigrateFeature2["CustomLogo"] = "custom-logo";
629
+ SiteToMigrateFeature2["CustomThemePreset"] = "custom-theme-preset";
630
+ SiteToMigrateFeature2["CustomFonts"] = "custom-fonts";
631
+ SiteToMigrateFeature2["CustomIcons"] = "custom-icons";
632
+ SiteToMigrateFeature2["CustomFooterLogo"] = "custom-footer-logo";
633
+ SiteToMigrateFeature2["CustomFooterCopyright"] = "custom-footer-copyright";
634
+ SiteToMigrateFeature2["CustomFooterLinks"] = "custom-footer-links";
635
+ SiteToMigrateFeature2["Unlisted"] = "unlisted";
636
+ SiteToMigrateFeature2["ShareLinks"] = "share-links";
637
+ return SiteToMigrateFeature2;
638
+ })(SiteToMigrateFeature || {});
620
639
  var CustomizationIconsStyle = /* @__PURE__ */ ((CustomizationIconsStyle2) => {
621
640
  CustomizationIconsStyle2["Regular"] = "regular";
622
641
  CustomizationIconsStyle2["Solid"] = "solid";
@@ -643,16 +662,30 @@ var SiteInsightsLinkPosition = /* @__PURE__ */ ((SiteInsightsLinkPosition2) => {
643
662
  SiteInsightsLinkPosition2["Content"] = "content";
644
663
  return SiteInsightsLinkPosition2;
645
664
  })(SiteInsightsLinkPosition || {});
665
+ var SiteInsightsTrademarkPlacement = /* @__PURE__ */ ((SiteInsightsTrademarkPlacement2) => {
666
+ SiteInsightsTrademarkPlacement2["Sidebar"] = "sidebar";
667
+ SiteInsightsTrademarkPlacement2["Ad"] = "ad";
668
+ SiteInsightsTrademarkPlacement2["Footer"] = "footer";
669
+ return SiteInsightsTrademarkPlacement2;
670
+ })(SiteInsightsTrademarkPlacement || {});
671
+ var SiteInsightsAdPlacement = /* @__PURE__ */ ((SiteInsightsAdPlacement2) => {
672
+ SiteInsightsAdPlacement2["Aside"] = "aside";
673
+ return SiteInsightsAdPlacement2;
674
+ })(SiteInsightsAdPlacement || {});
646
675
  var SiteInsightsEventType = /* @__PURE__ */ ((SiteInsightsEventType2) => {
647
676
  SiteInsightsEventType2["PageView"] = "page_view";
648
677
  SiteInsightsEventType2["SearchOpen"] = "search_open";
649
678
  SiteInsightsEventType2["SearchTypeQuery"] = "search_type_query";
650
679
  SiteInsightsEventType2["SearchOpenResult"] = "search_open_result";
651
680
  SiteInsightsEventType2["PagePostFeedback"] = "page_post_feedback";
681
+ SiteInsightsEventType2["PagePostFeedbackComment"] = "page_post_feedback_comment";
652
682
  SiteInsightsEventType2["AskQuestion"] = "ask_question";
653
683
  SiteInsightsEventType2["LinkClick"] = "link_click";
654
684
  SiteInsightsEventType2["ApiClientOpen"] = "api_client_open";
655
685
  SiteInsightsEventType2["ApiClientRequest"] = "api_client_request";
686
+ SiteInsightsEventType2["AdClick"] = "ad_click";
687
+ SiteInsightsEventType2["AdDisplay"] = "ad_display";
688
+ SiteInsightsEventType2["TrademarkClick"] = "trademark_click";
656
689
  return SiteInsightsEventType2;
657
690
  })(SiteInsightsEventType || {});
658
691
  var SiteInsightsVisitorBrowser = /* @__PURE__ */ ((SiteInsightsVisitorBrowser2) => {
@@ -1280,6 +1313,12 @@ var Api = class extends HttpClient {
1280
1313
  secure: true,
1281
1314
  ...params
1282
1315
  }),
1316
+ removeUserFromSpace: (spaceId, userId, params = {}) => this.request({
1317
+ path: `/spaces/${spaceId}/permissions/users/${userId}`,
1318
+ method: "DELETE",
1319
+ secure: true,
1320
+ ...params
1321
+ }),
1283
1322
  getCurrentRevision: (spaceId, query, params = {}) => this.request({
1284
1323
  path: `/spaces/${spaceId}/content`,
1285
1324
  method: "GET",
@@ -1996,6 +2035,18 @@ var Api = class extends HttpClient {
1996
2035
  type: "application/json" /* Json */,
1997
2036
  ...params
1998
2037
  }),
2038
+ removeTeamFromCollection: (collectionId, teamId, params = {}) => this.request({
2039
+ path: `/collections/${collectionId}/permissions/teams/${teamId}`,
2040
+ method: "DELETE",
2041
+ secure: true,
2042
+ ...params
2043
+ }),
2044
+ removeUserFromCollection: (collectionId, userId, params = {}) => this.request({
2045
+ path: `/collections/${collectionId}/permissions/users/${userId}`,
2046
+ method: "DELETE",
2047
+ secure: true,
2048
+ ...params
2049
+ }),
1999
2050
  listPermissionsAggregateInCollection: (collectionId, query, params = {}) => this.request({
2000
2051
  path: `/collections/${collectionId}/permissions/aggregate`,
2001
2052
  method: "GET",
@@ -2471,6 +2522,29 @@ var Api = class extends HttpClient {
2471
2522
  format: "json",
2472
2523
  ...params
2473
2524
  }),
2525
+ migrateOrganizationPlan: (organizationId, query, params = {}) => this.request({
2526
+ path: `/orgs/${organizationId}/billing/migrate`,
2527
+ method: "POST",
2528
+ query,
2529
+ secure: true,
2530
+ ...params
2531
+ }),
2532
+ previewMigrateOrganizationPlan: (organizationId, query, params = {}) => this.request({
2533
+ path: `/orgs/${organizationId}/billing/migrate`,
2534
+ method: "GET",
2535
+ query,
2536
+ secure: true,
2537
+ format: "json",
2538
+ ...params
2539
+ }),
2540
+ listSitesToMigrate: (organizationId, query, params = {}) => this.request({
2541
+ path: `/orgs/${organizationId}/billing/migrate/sites`,
2542
+ method: "GET",
2543
+ query,
2544
+ secure: true,
2545
+ format: "json",
2546
+ ...params
2547
+ }),
2474
2548
  getOrganizationBillingPortal: (organizationId, params = {}) => this.request({
2475
2549
  path: `/orgs/${organizationId}/billing/portal`,
2476
2550
  method: "GET",
@@ -3043,6 +3117,30 @@ var Api = class extends HttpClient {
3043
3117
  format: "json",
3044
3118
  ...params
3045
3119
  }),
3120
+ addSectionGroupToSite: (organizationId, siteId, data, params = {}) => this.request({
3121
+ path: `/orgs/${organizationId}/sites/${siteId}/section-groups`,
3122
+ method: "POST",
3123
+ body: data,
3124
+ secure: true,
3125
+ type: "application/json" /* Json */,
3126
+ format: "json",
3127
+ ...params
3128
+ }),
3129
+ updateSiteSectionGroupById: (organizationId, siteId, siteSectionGroupId, data, params = {}) => this.request({
3130
+ path: `/orgs/${organizationId}/sites/${siteId}/section-groups/${siteSectionGroupId}`,
3131
+ method: "PATCH",
3132
+ body: data,
3133
+ secure: true,
3134
+ type: "application/json" /* Json */,
3135
+ format: "json",
3136
+ ...params
3137
+ }),
3138
+ deleteSiteSectionGroupById: (organizationId, siteId, siteSectionGroupId, params = {}) => this.request({
3139
+ path: `/orgs/${organizationId}/sites/${siteId}/section-groups/${siteSectionGroupId}`,
3140
+ method: "DELETE",
3141
+ secure: true,
3142
+ ...params
3143
+ }),
3046
3144
  addSectionToSite: (organizationId, siteId, data, params = {}) => this.request({
3047
3145
  path: `/orgs/${organizationId}/sites/${siteId}/sections`,
3048
3146
  method: "POST",
@@ -3509,14 +3607,17 @@ export {
3509
3607
  RevisionSemanticChangeType,
3510
3608
  SiteAdsStatus,
3511
3609
  SiteAdsTopic,
3610
+ SiteInsightsAdPlacement,
3512
3611
  SiteInsightsEventType,
3513
3612
  SiteInsightsLinkPosition,
3514
3613
  SiteInsightsQueryOperator,
3515
3614
  SiteInsightsQueryRange,
3615
+ SiteInsightsTrademarkPlacement,
3516
3616
  SiteInsightsVisitorBot,
3517
3617
  SiteInsightsVisitorBrowser,
3518
3618
  SiteInsightsVisitorDevice,
3519
3619
  SiteInsightsVisitorOS,
3620
+ SiteToMigrateFeature,
3520
3621
  SiteType,
3521
3622
  SiteVisibility,
3522
3623
  SpaceBlockReason,
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.88.1",
7
+ "version": "0.89.0",
8
8
  "sideEffects": false,
9
9
  "files": [
10
10
  "README.md",