@gitbook/api 0.88.1 → 0.90.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
@@ -212,6 +212,7 @@ __export(src_exports, {
212
212
  CustomizationLocale: () => CustomizationLocale,
213
213
  CustomizationSidebarBackgroundStyle: () => CustomizationSidebarBackgroundStyle,
214
214
  CustomizationSidebarListStyle: () => CustomizationSidebarListStyle,
215
+ CustomizationTheme: () => CustomizationTheme,
215
216
  CustomizationThemeMode: () => CustomizationThemeMode,
216
217
  GITBOOK_DEFAULT_ENDPOINT: () => GITBOOK_DEFAULT_ENDPOINT,
217
218
  GitBookAPI: () => GitBookAPI,
@@ -243,14 +244,17 @@ __export(src_exports, {
243
244
  RevisionSemanticChangeType: () => RevisionSemanticChangeType,
244
245
  SiteAdsStatus: () => SiteAdsStatus,
245
246
  SiteAdsTopic: () => SiteAdsTopic,
247
+ SiteInsightsAdPlacement: () => SiteInsightsAdPlacement,
246
248
  SiteInsightsEventType: () => SiteInsightsEventType,
247
249
  SiteInsightsLinkPosition: () => SiteInsightsLinkPosition,
248
250
  SiteInsightsQueryOperator: () => SiteInsightsQueryOperator,
249
251
  SiteInsightsQueryRange: () => SiteInsightsQueryRange,
252
+ SiteInsightsTrademarkPlacement: () => SiteInsightsTrademarkPlacement,
250
253
  SiteInsightsVisitorBot: () => SiteInsightsVisitorBot,
251
254
  SiteInsightsVisitorBrowser: () => SiteInsightsVisitorBrowser,
252
255
  SiteInsightsVisitorDevice: () => SiteInsightsVisitorDevice,
253
256
  SiteInsightsVisitorOS: () => SiteInsightsVisitorOS,
257
+ SiteToMigrateFeature: () => SiteToMigrateFeature,
254
258
  SiteType: () => SiteType,
255
259
  SiteVisibility: () => SiteVisibility,
256
260
  SpaceBlockReason: () => SpaceBlockReason,
@@ -261,7 +265,7 @@ module.exports = __toCommonJS(src_exports);
261
265
 
262
266
  // package.json
263
267
  var name = "@gitbook/api";
264
- var version = "0.88.1";
268
+ var version = "0.90.0";
265
269
 
266
270
  // src/client.ts
267
271
  var import_event_iterator = __toESM(require_node(), 1);
@@ -706,6 +710,32 @@ var BillingInterval = /* @__PURE__ */ ((BillingInterval2) => {
706
710
  BillingInterval2["Yearly"] = "yearly";
707
711
  return BillingInterval2;
708
712
  })(BillingInterval || {});
713
+ var SiteToMigrateFeature = /* @__PURE__ */ ((SiteToMigrateFeature2) => {
714
+ SiteToMigrateFeature2["Sections"] = "sections";
715
+ SiteToMigrateFeature2["VisitorAuth"] = "visitor-auth";
716
+ SiteToMigrateFeature2["Redirects"] = "redirects";
717
+ SiteToMigrateFeature2["CustomHostname"] = "custom-hostname";
718
+ SiteToMigrateFeature2["AISearch"] = "AI-search";
719
+ SiteToMigrateFeature2["PDFExport"] = "PDF-export";
720
+ SiteToMigrateFeature2["PageRatings"] = "page-ratings";
721
+ SiteToMigrateFeature2["CustomLogo"] = "custom-logo";
722
+ SiteToMigrateFeature2["CustomThemePreset"] = "custom-theme-preset";
723
+ SiteToMigrateFeature2["CustomFonts"] = "custom-fonts";
724
+ SiteToMigrateFeature2["CustomIcons"] = "custom-icons";
725
+ SiteToMigrateFeature2["CustomFooterLogo"] = "custom-footer-logo";
726
+ SiteToMigrateFeature2["CustomFooterCopyright"] = "custom-footer-copyright";
727
+ SiteToMigrateFeature2["CustomFooterLinks"] = "custom-footer-links";
728
+ SiteToMigrateFeature2["Unlisted"] = "unlisted";
729
+ SiteToMigrateFeature2["ShareLinks"] = "share-links";
730
+ return SiteToMigrateFeature2;
731
+ })(SiteToMigrateFeature || {});
732
+ var CustomizationTheme = /* @__PURE__ */ ((CustomizationTheme2) => {
733
+ CustomizationTheme2["Clean"] = "clean";
734
+ CustomizationTheme2["Muted"] = "muted";
735
+ CustomizationTheme2["Bold"] = "bold";
736
+ CustomizationTheme2["Gradient"] = "gradient";
737
+ return CustomizationTheme2;
738
+ })(CustomizationTheme || {});
709
739
  var CustomizationIconsStyle = /* @__PURE__ */ ((CustomizationIconsStyle2) => {
710
740
  CustomizationIconsStyle2["Regular"] = "regular";
711
741
  CustomizationIconsStyle2["Solid"] = "solid";
@@ -732,16 +762,31 @@ var SiteInsightsLinkPosition = /* @__PURE__ */ ((SiteInsightsLinkPosition2) => {
732
762
  SiteInsightsLinkPosition2["Content"] = "content";
733
763
  return SiteInsightsLinkPosition2;
734
764
  })(SiteInsightsLinkPosition || {});
765
+ var SiteInsightsTrademarkPlacement = /* @__PURE__ */ ((SiteInsightsTrademarkPlacement2) => {
766
+ SiteInsightsTrademarkPlacement2["Sidebar"] = "sidebar";
767
+ SiteInsightsTrademarkPlacement2["Ad"] = "ad";
768
+ SiteInsightsTrademarkPlacement2["Footer"] = "footer";
769
+ SiteInsightsTrademarkPlacement2["Pdf"] = "pdf";
770
+ return SiteInsightsTrademarkPlacement2;
771
+ })(SiteInsightsTrademarkPlacement || {});
772
+ var SiteInsightsAdPlacement = /* @__PURE__ */ ((SiteInsightsAdPlacement2) => {
773
+ SiteInsightsAdPlacement2["Aside"] = "aside";
774
+ return SiteInsightsAdPlacement2;
775
+ })(SiteInsightsAdPlacement || {});
735
776
  var SiteInsightsEventType = /* @__PURE__ */ ((SiteInsightsEventType2) => {
736
777
  SiteInsightsEventType2["PageView"] = "page_view";
737
778
  SiteInsightsEventType2["SearchOpen"] = "search_open";
738
779
  SiteInsightsEventType2["SearchTypeQuery"] = "search_type_query";
739
780
  SiteInsightsEventType2["SearchOpenResult"] = "search_open_result";
740
781
  SiteInsightsEventType2["PagePostFeedback"] = "page_post_feedback";
782
+ SiteInsightsEventType2["PagePostFeedbackComment"] = "page_post_feedback_comment";
741
783
  SiteInsightsEventType2["AskQuestion"] = "ask_question";
742
784
  SiteInsightsEventType2["LinkClick"] = "link_click";
743
785
  SiteInsightsEventType2["ApiClientOpen"] = "api_client_open";
744
786
  SiteInsightsEventType2["ApiClientRequest"] = "api_client_request";
787
+ SiteInsightsEventType2["AdClick"] = "ad_click";
788
+ SiteInsightsEventType2["AdDisplay"] = "ad_display";
789
+ SiteInsightsEventType2["TrademarkClick"] = "trademark_click";
745
790
  return SiteInsightsEventType2;
746
791
  })(SiteInsightsEventType || {});
747
792
  var SiteInsightsVisitorBrowser = /* @__PURE__ */ ((SiteInsightsVisitorBrowser2) => {
@@ -1363,12 +1408,50 @@ var Api = class extends HttpClient {
1363
1408
  type: "application/json" /* Json */,
1364
1409
  ...params
1365
1410
  }),
1411
+ updateTeamPermissionInSpace: (spaceId, teamId, data, params = {}) => this.request({
1412
+ path: `/spaces/${spaceId}/permissions/teams/${teamId}`,
1413
+ method: "PATCH",
1414
+ body: data,
1415
+ secure: true,
1416
+ type: "application/json" /* Json */,
1417
+ ...params
1418
+ }),
1366
1419
  removeTeamFromSpace: (spaceId, teamId, params = {}) => this.request({
1367
1420
  path: `/spaces/${spaceId}/permissions/teams/${teamId}`,
1368
1421
  method: "DELETE",
1369
1422
  secure: true,
1370
1423
  ...params
1371
1424
  }),
1425
+ listUserPermissionsInSpace: (spaceId, query, params = {}) => this.request({
1426
+ path: `/spaces/${spaceId}/permissions/users`,
1427
+ method: "GET",
1428
+ query,
1429
+ secure: true,
1430
+ format: "json",
1431
+ ...params
1432
+ }),
1433
+ updateUserPermissionInSpace: (spaceId, userId, data, params = {}) => this.request({
1434
+ path: `/spaces/${spaceId}/permissions/users/${userId}`,
1435
+ method: "PATCH",
1436
+ body: data,
1437
+ secure: true,
1438
+ type: "application/json" /* Json */,
1439
+ ...params
1440
+ }),
1441
+ removeUserFromSpace: (spaceId, userId, params = {}) => this.request({
1442
+ path: `/spaces/${spaceId}/permissions/users/${userId}`,
1443
+ method: "DELETE",
1444
+ secure: true,
1445
+ ...params
1446
+ }),
1447
+ listTeamPermissionsInSpace: (spaceId, query, params = {}) => this.request({
1448
+ path: `/spaces/${spaceId}/permissions/teams`,
1449
+ method: "GET",
1450
+ query,
1451
+ secure: true,
1452
+ format: "json",
1453
+ ...params
1454
+ }),
1372
1455
  getCurrentRevision: (spaceId, query, params = {}) => this.request({
1373
1456
  path: `/spaces/${spaceId}/content`,
1374
1457
  method: "GET",
@@ -2085,6 +2168,50 @@ var Api = class extends HttpClient {
2085
2168
  type: "application/json" /* Json */,
2086
2169
  ...params
2087
2170
  }),
2171
+ listTeamPermissionsInCollection: (collectionId, query, params = {}) => this.request({
2172
+ path: `/collections/${collectionId}/permissions/teams`,
2173
+ method: "GET",
2174
+ query,
2175
+ secure: true,
2176
+ format: "json",
2177
+ ...params
2178
+ }),
2179
+ updateTeamPermissionInCollection: (collectionId, teamId, data, params = {}) => this.request({
2180
+ path: `/collections/${collectionId}/permissions/teams/${teamId}`,
2181
+ method: "PATCH",
2182
+ body: data,
2183
+ secure: true,
2184
+ type: "application/json" /* Json */,
2185
+ ...params
2186
+ }),
2187
+ removeTeamFromCollection: (collectionId, teamId, params = {}) => this.request({
2188
+ path: `/collections/${collectionId}/permissions/teams/${teamId}`,
2189
+ method: "DELETE",
2190
+ secure: true,
2191
+ ...params
2192
+ }),
2193
+ listUserPermissionsInCollection: (collectionId, query, params = {}) => this.request({
2194
+ path: `/collections/${collectionId}/permissions/users`,
2195
+ method: "GET",
2196
+ query,
2197
+ secure: true,
2198
+ format: "json",
2199
+ ...params
2200
+ }),
2201
+ updateUserPermissionInCollection: (collectionId, userId, data, params = {}) => this.request({
2202
+ path: `/collections/${collectionId}/permissions/users/${userId}`,
2203
+ method: "PATCH",
2204
+ body: data,
2205
+ secure: true,
2206
+ type: "application/json" /* Json */,
2207
+ ...params
2208
+ }),
2209
+ removeUserFromCollection: (collectionId, userId, params = {}) => this.request({
2210
+ path: `/collections/${collectionId}/permissions/users/${userId}`,
2211
+ method: "DELETE",
2212
+ secure: true,
2213
+ ...params
2214
+ }),
2088
2215
  listPermissionsAggregateInCollection: (collectionId, query, params = {}) => this.request({
2089
2216
  path: `/collections/${collectionId}/permissions/aggregate`,
2090
2217
  method: "GET",
@@ -2560,6 +2687,30 @@ var Api = class extends HttpClient {
2560
2687
  format: "json",
2561
2688
  ...params
2562
2689
  }),
2690
+ migrateOrganizationPlan: (organizationId, data, params = {}) => this.request({
2691
+ path: `/orgs/${organizationId}/billing/migrate`,
2692
+ method: "POST",
2693
+ body: data,
2694
+ secure: true,
2695
+ type: "application/json" /* Json */,
2696
+ ...params
2697
+ }),
2698
+ previewMigrateOrganizationPlan: (organizationId, query, params = {}) => this.request({
2699
+ path: `/orgs/${organizationId}/billing/migrate`,
2700
+ method: "GET",
2701
+ query,
2702
+ secure: true,
2703
+ format: "json",
2704
+ ...params
2705
+ }),
2706
+ listSitesToMigrate: (organizationId, query, params = {}) => this.request({
2707
+ path: `/orgs/${organizationId}/billing/migrate/sites`,
2708
+ method: "GET",
2709
+ query,
2710
+ secure: true,
2711
+ format: "json",
2712
+ ...params
2713
+ }),
2563
2714
  getOrganizationBillingPortal: (organizationId, params = {}) => this.request({
2564
2715
  path: `/orgs/${organizationId}/billing/portal`,
2565
2716
  method: "GET",
@@ -3132,6 +3283,30 @@ var Api = class extends HttpClient {
3132
3283
  format: "json",
3133
3284
  ...params
3134
3285
  }),
3286
+ addSectionGroupToSite: (organizationId, siteId, data, params = {}) => this.request({
3287
+ path: `/orgs/${organizationId}/sites/${siteId}/section-groups`,
3288
+ method: "POST",
3289
+ body: data,
3290
+ secure: true,
3291
+ type: "application/json" /* Json */,
3292
+ format: "json",
3293
+ ...params
3294
+ }),
3295
+ updateSiteSectionGroupById: (organizationId, siteId, siteSectionGroupId, data, params = {}) => this.request({
3296
+ path: `/orgs/${organizationId}/sites/${siteId}/section-groups/${siteSectionGroupId}`,
3297
+ method: "PATCH",
3298
+ body: data,
3299
+ secure: true,
3300
+ type: "application/json" /* Json */,
3301
+ format: "json",
3302
+ ...params
3303
+ }),
3304
+ deleteSiteSectionGroupById: (organizationId, siteId, siteSectionGroupId, params = {}) => this.request({
3305
+ path: `/orgs/${organizationId}/sites/${siteId}/section-groups/${siteSectionGroupId}`,
3306
+ method: "DELETE",
3307
+ secure: true,
3308
+ ...params
3309
+ }),
3135
3310
  addSectionToSite: (organizationId, siteId, data, params = {}) => this.request({
3136
3311
  path: `/orgs/${organizationId}/sites/${siteId}/sections`,
3137
3312
  method: "POST",
@@ -3183,6 +3358,12 @@ var Api = class extends HttpClient {
3183
3358
  type: "application/json" /* Json */,
3184
3359
  ...params
3185
3360
  }),
3361
+ streamRecommendedQuestionsInSite: (organizationId, siteId, params = {}) => this.streamRequest({
3362
+ path: `/orgs/${organizationId}/sites/${siteId}/ask/questions`,
3363
+ method: "GET",
3364
+ secure: true,
3365
+ ...params
3366
+ }),
3186
3367
  updateSiteSpaceById: (organizationId, siteId, siteSpaceId, data, params = {}) => this.request({
3187
3368
  path: `/orgs/${organizationId}/sites/${siteId}/site-spaces/${siteSpaceId}`,
3188
3369
  method: "PATCH",
@@ -3296,6 +3477,13 @@ var Api = class extends HttpClient {
3296
3477
  format: "json",
3297
3478
  ...params
3298
3479
  }),
3480
+ listSiteVisitorSegments: (organizationId, siteId, params = {}) => this.request({
3481
+ path: `/orgs/${organizationId}/sites/${siteId}/insights/visitor-segments`,
3482
+ method: "GET",
3483
+ secure: true,
3484
+ format: "json",
3485
+ ...params
3486
+ }),
3299
3487
  getAdsInsightsForSiteById: (organizationId, siteId, query, params = {}) => this.request({
3300
3488
  path: `/orgs/${organizationId}/sites/${siteId}/insights/ads`,
3301
3489
  method: "GET",
@@ -3568,6 +3756,7 @@ var GitBookAPI = class extends Api {
3568
3756
  CustomizationLocale,
3569
3757
  CustomizationSidebarBackgroundStyle,
3570
3758
  CustomizationSidebarListStyle,
3759
+ CustomizationTheme,
3571
3760
  CustomizationThemeMode,
3572
3761
  GITBOOK_DEFAULT_ENDPOINT,
3573
3762
  GitBookAPI,
@@ -3599,14 +3788,17 @@ var GitBookAPI = class extends Api {
3599
3788
  RevisionSemanticChangeType,
3600
3789
  SiteAdsStatus,
3601
3790
  SiteAdsTopic,
3791
+ SiteInsightsAdPlacement,
3602
3792
  SiteInsightsEventType,
3603
3793
  SiteInsightsLinkPosition,
3604
3794
  SiteInsightsQueryOperator,
3605
3795
  SiteInsightsQueryRange,
3796
+ SiteInsightsTrademarkPlacement,
3606
3797
  SiteInsightsVisitorBot,
3607
3798
  SiteInsightsVisitorBrowser,
3608
3799
  SiteInsightsVisitorDevice,
3609
3800
  SiteInsightsVisitorOS,
3801
+ SiteToMigrateFeature,
3610
3802
  SiteType,
3611
3803
  SiteVisibility,
3612
3804
  SpaceBlockReason,
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.90.0";
176
176
 
177
177
  // src/client.ts
178
178
  var import_event_iterator = __toESM(require_node(), 1);
@@ -617,6 +617,32 @@ 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 || {});
639
+ var CustomizationTheme = /* @__PURE__ */ ((CustomizationTheme2) => {
640
+ CustomizationTheme2["Clean"] = "clean";
641
+ CustomizationTheme2["Muted"] = "muted";
642
+ CustomizationTheme2["Bold"] = "bold";
643
+ CustomizationTheme2["Gradient"] = "gradient";
644
+ return CustomizationTheme2;
645
+ })(CustomizationTheme || {});
620
646
  var CustomizationIconsStyle = /* @__PURE__ */ ((CustomizationIconsStyle2) => {
621
647
  CustomizationIconsStyle2["Regular"] = "regular";
622
648
  CustomizationIconsStyle2["Solid"] = "solid";
@@ -643,16 +669,31 @@ var SiteInsightsLinkPosition = /* @__PURE__ */ ((SiteInsightsLinkPosition2) => {
643
669
  SiteInsightsLinkPosition2["Content"] = "content";
644
670
  return SiteInsightsLinkPosition2;
645
671
  })(SiteInsightsLinkPosition || {});
672
+ var SiteInsightsTrademarkPlacement = /* @__PURE__ */ ((SiteInsightsTrademarkPlacement2) => {
673
+ SiteInsightsTrademarkPlacement2["Sidebar"] = "sidebar";
674
+ SiteInsightsTrademarkPlacement2["Ad"] = "ad";
675
+ SiteInsightsTrademarkPlacement2["Footer"] = "footer";
676
+ SiteInsightsTrademarkPlacement2["Pdf"] = "pdf";
677
+ return SiteInsightsTrademarkPlacement2;
678
+ })(SiteInsightsTrademarkPlacement || {});
679
+ var SiteInsightsAdPlacement = /* @__PURE__ */ ((SiteInsightsAdPlacement2) => {
680
+ SiteInsightsAdPlacement2["Aside"] = "aside";
681
+ return SiteInsightsAdPlacement2;
682
+ })(SiteInsightsAdPlacement || {});
646
683
  var SiteInsightsEventType = /* @__PURE__ */ ((SiteInsightsEventType2) => {
647
684
  SiteInsightsEventType2["PageView"] = "page_view";
648
685
  SiteInsightsEventType2["SearchOpen"] = "search_open";
649
686
  SiteInsightsEventType2["SearchTypeQuery"] = "search_type_query";
650
687
  SiteInsightsEventType2["SearchOpenResult"] = "search_open_result";
651
688
  SiteInsightsEventType2["PagePostFeedback"] = "page_post_feedback";
689
+ SiteInsightsEventType2["PagePostFeedbackComment"] = "page_post_feedback_comment";
652
690
  SiteInsightsEventType2["AskQuestion"] = "ask_question";
653
691
  SiteInsightsEventType2["LinkClick"] = "link_click";
654
692
  SiteInsightsEventType2["ApiClientOpen"] = "api_client_open";
655
693
  SiteInsightsEventType2["ApiClientRequest"] = "api_client_request";
694
+ SiteInsightsEventType2["AdClick"] = "ad_click";
695
+ SiteInsightsEventType2["AdDisplay"] = "ad_display";
696
+ SiteInsightsEventType2["TrademarkClick"] = "trademark_click";
656
697
  return SiteInsightsEventType2;
657
698
  })(SiteInsightsEventType || {});
658
699
  var SiteInsightsVisitorBrowser = /* @__PURE__ */ ((SiteInsightsVisitorBrowser2) => {
@@ -1274,12 +1315,50 @@ var Api = class extends HttpClient {
1274
1315
  type: "application/json" /* Json */,
1275
1316
  ...params
1276
1317
  }),
1318
+ updateTeamPermissionInSpace: (spaceId, teamId, data, params = {}) => this.request({
1319
+ path: `/spaces/${spaceId}/permissions/teams/${teamId}`,
1320
+ method: "PATCH",
1321
+ body: data,
1322
+ secure: true,
1323
+ type: "application/json" /* Json */,
1324
+ ...params
1325
+ }),
1277
1326
  removeTeamFromSpace: (spaceId, teamId, params = {}) => this.request({
1278
1327
  path: `/spaces/${spaceId}/permissions/teams/${teamId}`,
1279
1328
  method: "DELETE",
1280
1329
  secure: true,
1281
1330
  ...params
1282
1331
  }),
1332
+ listUserPermissionsInSpace: (spaceId, query, params = {}) => this.request({
1333
+ path: `/spaces/${spaceId}/permissions/users`,
1334
+ method: "GET",
1335
+ query,
1336
+ secure: true,
1337
+ format: "json",
1338
+ ...params
1339
+ }),
1340
+ updateUserPermissionInSpace: (spaceId, userId, data, params = {}) => this.request({
1341
+ path: `/spaces/${spaceId}/permissions/users/${userId}`,
1342
+ method: "PATCH",
1343
+ body: data,
1344
+ secure: true,
1345
+ type: "application/json" /* Json */,
1346
+ ...params
1347
+ }),
1348
+ removeUserFromSpace: (spaceId, userId, params = {}) => this.request({
1349
+ path: `/spaces/${spaceId}/permissions/users/${userId}`,
1350
+ method: "DELETE",
1351
+ secure: true,
1352
+ ...params
1353
+ }),
1354
+ listTeamPermissionsInSpace: (spaceId, query, params = {}) => this.request({
1355
+ path: `/spaces/${spaceId}/permissions/teams`,
1356
+ method: "GET",
1357
+ query,
1358
+ secure: true,
1359
+ format: "json",
1360
+ ...params
1361
+ }),
1283
1362
  getCurrentRevision: (spaceId, query, params = {}) => this.request({
1284
1363
  path: `/spaces/${spaceId}/content`,
1285
1364
  method: "GET",
@@ -1996,6 +2075,50 @@ var Api = class extends HttpClient {
1996
2075
  type: "application/json" /* Json */,
1997
2076
  ...params
1998
2077
  }),
2078
+ listTeamPermissionsInCollection: (collectionId, query, params = {}) => this.request({
2079
+ path: `/collections/${collectionId}/permissions/teams`,
2080
+ method: "GET",
2081
+ query,
2082
+ secure: true,
2083
+ format: "json",
2084
+ ...params
2085
+ }),
2086
+ updateTeamPermissionInCollection: (collectionId, teamId, data, params = {}) => this.request({
2087
+ path: `/collections/${collectionId}/permissions/teams/${teamId}`,
2088
+ method: "PATCH",
2089
+ body: data,
2090
+ secure: true,
2091
+ type: "application/json" /* Json */,
2092
+ ...params
2093
+ }),
2094
+ removeTeamFromCollection: (collectionId, teamId, params = {}) => this.request({
2095
+ path: `/collections/${collectionId}/permissions/teams/${teamId}`,
2096
+ method: "DELETE",
2097
+ secure: true,
2098
+ ...params
2099
+ }),
2100
+ listUserPermissionsInCollection: (collectionId, query, params = {}) => this.request({
2101
+ path: `/collections/${collectionId}/permissions/users`,
2102
+ method: "GET",
2103
+ query,
2104
+ secure: true,
2105
+ format: "json",
2106
+ ...params
2107
+ }),
2108
+ updateUserPermissionInCollection: (collectionId, userId, data, params = {}) => this.request({
2109
+ path: `/collections/${collectionId}/permissions/users/${userId}`,
2110
+ method: "PATCH",
2111
+ body: data,
2112
+ secure: true,
2113
+ type: "application/json" /* Json */,
2114
+ ...params
2115
+ }),
2116
+ removeUserFromCollection: (collectionId, userId, params = {}) => this.request({
2117
+ path: `/collections/${collectionId}/permissions/users/${userId}`,
2118
+ method: "DELETE",
2119
+ secure: true,
2120
+ ...params
2121
+ }),
1999
2122
  listPermissionsAggregateInCollection: (collectionId, query, params = {}) => this.request({
2000
2123
  path: `/collections/${collectionId}/permissions/aggregate`,
2001
2124
  method: "GET",
@@ -2471,6 +2594,30 @@ var Api = class extends HttpClient {
2471
2594
  format: "json",
2472
2595
  ...params
2473
2596
  }),
2597
+ migrateOrganizationPlan: (organizationId, data, params = {}) => this.request({
2598
+ path: `/orgs/${organizationId}/billing/migrate`,
2599
+ method: "POST",
2600
+ body: data,
2601
+ secure: true,
2602
+ type: "application/json" /* Json */,
2603
+ ...params
2604
+ }),
2605
+ previewMigrateOrganizationPlan: (organizationId, query, params = {}) => this.request({
2606
+ path: `/orgs/${organizationId}/billing/migrate`,
2607
+ method: "GET",
2608
+ query,
2609
+ secure: true,
2610
+ format: "json",
2611
+ ...params
2612
+ }),
2613
+ listSitesToMigrate: (organizationId, query, params = {}) => this.request({
2614
+ path: `/orgs/${organizationId}/billing/migrate/sites`,
2615
+ method: "GET",
2616
+ query,
2617
+ secure: true,
2618
+ format: "json",
2619
+ ...params
2620
+ }),
2474
2621
  getOrganizationBillingPortal: (organizationId, params = {}) => this.request({
2475
2622
  path: `/orgs/${organizationId}/billing/portal`,
2476
2623
  method: "GET",
@@ -3043,6 +3190,30 @@ var Api = class extends HttpClient {
3043
3190
  format: "json",
3044
3191
  ...params
3045
3192
  }),
3193
+ addSectionGroupToSite: (organizationId, siteId, data, params = {}) => this.request({
3194
+ path: `/orgs/${organizationId}/sites/${siteId}/section-groups`,
3195
+ method: "POST",
3196
+ body: data,
3197
+ secure: true,
3198
+ type: "application/json" /* Json */,
3199
+ format: "json",
3200
+ ...params
3201
+ }),
3202
+ updateSiteSectionGroupById: (organizationId, siteId, siteSectionGroupId, data, params = {}) => this.request({
3203
+ path: `/orgs/${organizationId}/sites/${siteId}/section-groups/${siteSectionGroupId}`,
3204
+ method: "PATCH",
3205
+ body: data,
3206
+ secure: true,
3207
+ type: "application/json" /* Json */,
3208
+ format: "json",
3209
+ ...params
3210
+ }),
3211
+ deleteSiteSectionGroupById: (organizationId, siteId, siteSectionGroupId, params = {}) => this.request({
3212
+ path: `/orgs/${organizationId}/sites/${siteId}/section-groups/${siteSectionGroupId}`,
3213
+ method: "DELETE",
3214
+ secure: true,
3215
+ ...params
3216
+ }),
3046
3217
  addSectionToSite: (organizationId, siteId, data, params = {}) => this.request({
3047
3218
  path: `/orgs/${organizationId}/sites/${siteId}/sections`,
3048
3219
  method: "POST",
@@ -3094,6 +3265,12 @@ var Api = class extends HttpClient {
3094
3265
  type: "application/json" /* Json */,
3095
3266
  ...params
3096
3267
  }),
3268
+ streamRecommendedQuestionsInSite: (organizationId, siteId, params = {}) => this.streamRequest({
3269
+ path: `/orgs/${organizationId}/sites/${siteId}/ask/questions`,
3270
+ method: "GET",
3271
+ secure: true,
3272
+ ...params
3273
+ }),
3097
3274
  updateSiteSpaceById: (organizationId, siteId, siteSpaceId, data, params = {}) => this.request({
3098
3275
  path: `/orgs/${organizationId}/sites/${siteId}/site-spaces/${siteSpaceId}`,
3099
3276
  method: "PATCH",
@@ -3207,6 +3384,13 @@ var Api = class extends HttpClient {
3207
3384
  format: "json",
3208
3385
  ...params
3209
3386
  }),
3387
+ listSiteVisitorSegments: (organizationId, siteId, params = {}) => this.request({
3388
+ path: `/orgs/${organizationId}/sites/${siteId}/insights/visitor-segments`,
3389
+ method: "GET",
3390
+ secure: true,
3391
+ format: "json",
3392
+ ...params
3393
+ }),
3210
3394
  getAdsInsightsForSiteById: (organizationId, siteId, query, params = {}) => this.request({
3211
3395
  path: `/orgs/${organizationId}/sites/${siteId}/insights/ads`,
3212
3396
  method: "GET",
@@ -3478,6 +3662,7 @@ export {
3478
3662
  CustomizationLocale,
3479
3663
  CustomizationSidebarBackgroundStyle,
3480
3664
  CustomizationSidebarListStyle,
3665
+ CustomizationTheme,
3481
3666
  CustomizationThemeMode,
3482
3667
  GITBOOK_DEFAULT_ENDPOINT,
3483
3668
  GitBookAPI,
@@ -3509,14 +3694,17 @@ export {
3509
3694
  RevisionSemanticChangeType,
3510
3695
  SiteAdsStatus,
3511
3696
  SiteAdsTopic,
3697
+ SiteInsightsAdPlacement,
3512
3698
  SiteInsightsEventType,
3513
3699
  SiteInsightsLinkPosition,
3514
3700
  SiteInsightsQueryOperator,
3515
3701
  SiteInsightsQueryRange,
3702
+ SiteInsightsTrademarkPlacement,
3516
3703
  SiteInsightsVisitorBot,
3517
3704
  SiteInsightsVisitorBrowser,
3518
3705
  SiteInsightsVisitorDevice,
3519
3706
  SiteInsightsVisitorOS,
3707
+ SiteToMigrateFeature,
3520
3708
  SiteType,
3521
3709
  SiteVisibility,
3522
3710
  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.90.0",
8
8
  "sideEffects": false,
9
9
  "files": [
10
10
  "README.md",