@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/client.d.ts CHANGED
@@ -1445,7 +1445,10 @@ export declare enum ImportContentSource {
1445
1445
  OpenApi = "open-api"
1446
1446
  }
1447
1447
  export interface ImportContent {
1448
- /** URL of the content to import. */
1448
+ /**
1449
+ * URL of the content to import.
1450
+ * @format uri
1451
+ */
1449
1452
  url: string;
1450
1453
  source: ImportContentSource;
1451
1454
  }
@@ -3735,6 +3738,8 @@ export interface SiteSection {
3735
3738
  path: SiteSectionPath;
3736
3739
  /** Conditional expression used to evaluate whether the site section should be shown to the site's visitor. */
3737
3740
  condition?: Condition;
3741
+ /** ID of the section group the section belongs to in the site */
3742
+ sectionGroup?: string;
3738
3743
  siteSpaces: SiteSpace[];
3739
3744
  /** URLs associated with the object */
3740
3745
  urls: {
@@ -3966,6 +3971,32 @@ export type BillingUpgrade = {
3966
3971
  } | {
3967
3972
  result: 'interval_changed';
3968
3973
  };
3974
+ /** These are all the features we check to determine the new pricing site type. */
3975
+ export declare enum SiteToMigrateFeature {
3976
+ Sections = "sections",
3977
+ VisitorAuth = "visitor-auth",
3978
+ Redirects = "redirects",
3979
+ CustomHostname = "custom-hostname",
3980
+ AISearch = "AI-search",
3981
+ PDFExport = "PDF-export",
3982
+ PageRatings = "page-ratings",
3983
+ CustomLogo = "custom-logo",
3984
+ CustomThemePreset = "custom-theme-preset",
3985
+ CustomFonts = "custom-fonts",
3986
+ CustomIcons = "custom-icons",
3987
+ CustomFooterLogo = "custom-footer-logo",
3988
+ CustomFooterCopyright = "custom-footer-copyright",
3989
+ CustomFooterLinks = "custom-footer-links",
3990
+ Unlisted = "unlisted",
3991
+ ShareLinks = "share-links"
3992
+ }
3993
+ export interface SiteToMigrate {
3994
+ object: 'site-to-migrate';
3995
+ site: Site;
3996
+ /** The new type of the site */
3997
+ newType: SiteType;
3998
+ features: SiteToMigrateFeature[];
3999
+ }
3969
4000
  export interface BillingPortal {
3970
4001
  /** URL to the billing portal for an organization */
3971
4002
  url: string;
@@ -4433,6 +4464,24 @@ export type SitePublishingAuthUpdate = (VisitorAuthCustomBackend | VisitorAuthIn
4433
4464
  */
4434
4465
  fallbackURL?: string;
4435
4466
  };
4467
+ /**
4468
+ * Title of the site section group
4469
+ * @minLength 1
4470
+ * @maxLength 100
4471
+ */
4472
+ export type SiteSectionGroupTitle = string;
4473
+ export interface SiteSectionGroup {
4474
+ /** The object type, which is always "site-section-group" */
4475
+ object: 'site-section-group';
4476
+ /** Unique identifier of the site section group */
4477
+ id: string;
4478
+ /** Title of the site section group */
4479
+ title: SiteSectionGroupTitle;
4480
+ /** List of site section ids that are members of the group */
4481
+ sections: SiteSection[];
4482
+ /** Name of the icon */
4483
+ icon?: Icon;
4484
+ }
4436
4485
  export type SiteSearchScope = {
4437
4486
  /** Search across all sections of a site, only including the default content of each section. This scope is wide and shallow. You may optionally specify a list of additional site spaces to search in alongside the default content. */
4438
4487
  mode: 'default';
@@ -4603,6 +4652,17 @@ export type SiteInsightsEventPagePostFeedback = SiteInsightsEventBase & {
4603
4652
  rating: PageFeedbackRating;
4604
4653
  };
4605
4654
  };
4655
+ export type SiteInsightsEventPagePostFeedbackComment = SiteInsightsEventBase & {
4656
+ type: 'page_post_feedback_comment';
4657
+ feedback: {
4658
+ rating: PageFeedbackRating;
4659
+ /**
4660
+ * @minLength 1
4661
+ * @maxLength 512
4662
+ */
4663
+ comment: string;
4664
+ };
4665
+ };
4606
4666
  export type SiteInsightsEventAskQuestion = SiteInsightsEventBase & {
4607
4667
  type: 'ask_question';
4608
4668
  /** Question being asked. */
@@ -4632,17 +4692,46 @@ export type SiteInsightsEventAPIClientRequest = SiteInsightsEventBase & {
4632
4692
  /** Pointer to an operation in the OpenAPI spec. */
4633
4693
  operation: OpenAPIOperationPointer;
4634
4694
  };
4635
- export type SiteInsightsEvent = SiteInsightsEventPageView | SiteInsightsEventSearchOpen | SiteInsightsEventSearchTypeQuery | SiteInsightsEventSearchOpenResult | SiteInsightsEventPagePostFeedback | SiteInsightsEventAskQuestion | SiteInsightsEventLinkClick | SiteInsightsEventAPIClientOpen | SiteInsightsEventAPIClientRequest;
4695
+ export declare enum SiteInsightsTrademarkPlacement {
4696
+ Sidebar = "sidebar",
4697
+ Ad = "ad",
4698
+ Footer = "footer"
4699
+ }
4700
+ export type SiteInsightsEventTrademarkClick = SiteInsightsEventBase & {
4701
+ type: 'trademark_click';
4702
+ placement: SiteInsightsTrademarkPlacement;
4703
+ };
4704
+ export declare enum SiteInsightsAdPlacement {
4705
+ Aside = "aside"
4706
+ }
4707
+ export interface SiteInsightsAd {
4708
+ domain: string;
4709
+ zoneId: string;
4710
+ placement: SiteInsightsAdPlacement;
4711
+ }
4712
+ export type SiteInsightsEventAdClick = SiteInsightsEventBase & {
4713
+ type: 'ad_click';
4714
+ ad: SiteInsightsAd;
4715
+ };
4716
+ export type SiteInsightsEventAdDisplay = SiteInsightsEventBase & {
4717
+ type: 'ad_display';
4718
+ ad: SiteInsightsAd;
4719
+ };
4720
+ export type SiteInsightsEvent = SiteInsightsEventPageView | SiteInsightsEventSearchOpen | SiteInsightsEventSearchTypeQuery | SiteInsightsEventSearchOpenResult | SiteInsightsEventPagePostFeedback | SiteInsightsEventPagePostFeedbackComment | SiteInsightsEventAskQuestion | SiteInsightsEventLinkClick | SiteInsightsEventAPIClientOpen | SiteInsightsEventAPIClientRequest | SiteInsightsEventTrademarkClick | SiteInsightsEventAdClick | SiteInsightsEventAdDisplay;
4636
4721
  export declare enum SiteInsightsEventType {
4637
4722
  PageView = "page_view",
4638
4723
  SearchOpen = "search_open",
4639
4724
  SearchTypeQuery = "search_type_query",
4640
4725
  SearchOpenResult = "search_open_result",
4641
4726
  PagePostFeedback = "page_post_feedback",
4727
+ PagePostFeedbackComment = "page_post_feedback_comment",
4642
4728
  AskQuestion = "ask_question",
4643
4729
  LinkClick = "link_click",
4644
4730
  ApiClientOpen = "api_client_open",
4645
- ApiClientRequest = "api_client_request"
4731
+ ApiClientRequest = "api_client_request",
4732
+ AdClick = "ad_click",
4733
+ AdDisplay = "ad_display",
4734
+ TrademarkClick = "trademark_click"
4646
4735
  }
4647
4736
  export declare enum SiteInsightsVisitorBrowser {
4648
4737
  Chrome = "chrome",
@@ -4781,6 +4870,15 @@ export type SiteInsightsQueryEventsValues = {
4781
4870
  } | {
4782
4871
  column: 'utmContent';
4783
4872
  values: string[];
4873
+ } | {
4874
+ column: 'eventAdDomain';
4875
+ values: string[];
4876
+ } | {
4877
+ column: 'eventAdPlacement';
4878
+ values: SiteInsightsAdPlacement[];
4879
+ } | {
4880
+ column: 'eventTrademarkPlacement';
4881
+ values: SiteInsightsTrademarkPlacement[];
4784
4882
  };
4785
4883
  export declare enum SiteInsightsQueryOperator {
4786
4884
  In = "in",
@@ -4860,6 +4958,12 @@ export type SiteInsightsQueryEventsColumn = SiteInsightsQueryDateTimeColumn | {
4860
4958
  } | {
4861
4959
  column: 'visitorClaim';
4862
4960
  claim: string;
4961
+ } | {
4962
+ column: 'eventAdDomain';
4963
+ } | {
4964
+ column: 'eventAdPlacement';
4965
+ } | {
4966
+ column: 'eventTrademarkPlacement';
4863
4967
  };
4864
4968
  export declare enum SiteInsightsQueryRange {
4865
4969
  LastYear = "lastYear",
@@ -6359,6 +6463,22 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6359
6463
  message: string;
6360
6464
  };
6361
6465
  }>>;
6466
+ /**
6467
+ * No description
6468
+ *
6469
+ * @tags spaces
6470
+ * @name RemoveUserFromSpace
6471
+ * @summary Remove a user from a space
6472
+ * @request DELETE:/spaces/{spaceId}/permissions/users/{userId}
6473
+ * @secure
6474
+ */
6475
+ removeUserFromSpace: (spaceId: string, userId: string, params?: RequestParams) => Promise<HttpResponse<void, Error | {
6476
+ error: {
6477
+ /** @format int32 */
6478
+ code: 404;
6479
+ message: string;
6480
+ };
6481
+ }>>;
6362
6482
  /**
6363
6483
  * No description
6364
6484
  *
@@ -7973,6 +8093,38 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7973
8093
  message: string;
7974
8094
  };
7975
8095
  }>>;
8096
+ /**
8097
+ * No description
8098
+ *
8099
+ * @tags collections
8100
+ * @name RemoveTeamFromCollection
8101
+ * @summary Remove a team from a collection
8102
+ * @request DELETE:/collections/{collectionId}/permissions/teams/{teamId}
8103
+ * @secure
8104
+ */
8105
+ removeTeamFromCollection: (collectionId: string, teamId: string, params?: RequestParams) => Promise<HttpResponse<void, Error | {
8106
+ error: {
8107
+ /** @format int32 */
8108
+ code: 404;
8109
+ message: string;
8110
+ };
8111
+ }>>;
8112
+ /**
8113
+ * No description
8114
+ *
8115
+ * @tags collections
8116
+ * @name RemoveUserFromCollection
8117
+ * @summary Remove a user from a collection
8118
+ * @request DELETE:/collections/{collectionId}/permissions/users/{userId}
8119
+ * @secure
8120
+ */
8121
+ removeUserFromCollection: (collectionId: string, userId: string, params?: RequestParams) => Promise<HttpResponse<void, Error | {
8122
+ error: {
8123
+ /** @format int32 */
8124
+ code: 404;
8125
+ message: string;
8126
+ };
8127
+ }>>;
7976
8128
  /**
7977
8129
  * No description
7978
8130
  *
@@ -9021,6 +9173,59 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
9021
9173
  /** The app screen URL to bring the user back to after a canceled checkout. */
9022
9174
  cancelReturnURL?: string;
9023
9175
  }, params?: RequestParams) => Promise<HttpResponse<BillingUpgrade, Error>>;
9176
+ /**
9177
+ * No description
9178
+ *
9179
+ * @tags organizations
9180
+ * @name MigrateOrganizationPlan
9181
+ * @summary Migrate an organization's legacy billing plan to new pricing
9182
+ * @request POST:/orgs/{organizationId}/billing/migrate
9183
+ * @secure
9184
+ */
9185
+ migrateOrganizationPlan: (organizationId: string, query: {
9186
+ /** The desired billing interval */
9187
+ interval: BillingInterval;
9188
+ /** The new product to upgrade to */
9189
+ product: "free_2024" | "plus_2024" | "pro_2024";
9190
+ }, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
9191
+ /**
9192
+ * No description
9193
+ *
9194
+ * @tags organizations
9195
+ * @name PreviewMigrateOrganizationPlan
9196
+ * @summary Preview a migration of an organization to new pricing.
9197
+ * @request GET:/orgs/{organizationId}/billing/migrate
9198
+ * @secure
9199
+ */
9200
+ previewMigrateOrganizationPlan: (organizationId: string, query: {
9201
+ /** The desired billing interval */
9202
+ interval: BillingInterval;
9203
+ /** The new product to upgrade to */
9204
+ product: "free_2024" | "plus_2024" | "pro_2024";
9205
+ }, params?: RequestParams) => Promise<HttpResponse<{
9206
+ invoice?: BillingInvoicePreview;
9207
+ }, Error>>;
9208
+ /**
9209
+ * No description
9210
+ *
9211
+ * @tags organizations, sites
9212
+ * @name ListSitesToMigrate
9213
+ * @summary Lists all legacy sites of an org and computes their new type and contributing features
9214
+ * @request GET:/orgs/{organizationId}/billing/migrate/sites
9215
+ * @secure
9216
+ */
9217
+ listSitesToMigrate: (organizationId: string, query?: {
9218
+ /** Identifier of the page results to fetch. */
9219
+ page?: string;
9220
+ /**
9221
+ * The number of results per page
9222
+ * @min 0
9223
+ * @max 1000
9224
+ */
9225
+ limit?: number;
9226
+ }, params?: RequestParams) => Promise<HttpResponse<List & {
9227
+ items: SiteToMigrate[];
9228
+ }, Error>>;
9024
9229
  /**
9025
9230
  * No description
9026
9231
  *
@@ -10277,6 +10482,45 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
10277
10482
  }, params?: RequestParams) => Promise<HttpResponse<List & {
10278
10483
  items: SiteSpace[];
10279
10484
  }, Error>>;
10485
+ /**
10486
+ * No description
10487
+ *
10488
+ * @tags sites
10489
+ * @name AddSectionGroupToSite
10490
+ * @summary Add a section group to a site in an organization
10491
+ * @request POST:/orgs/{organizationId}/sites/{siteId}/section-groups
10492
+ * @secure
10493
+ */
10494
+ addSectionGroupToSite: (organizationId: string, siteId: string, data: {
10495
+ /** Title of the site section group */
10496
+ title: SiteSectionGroupTitle;
10497
+ /** IDs of the sections to be added to the section group */
10498
+ sections?: string[];
10499
+ }, params?: RequestParams) => Promise<HttpResponse<SiteSectionGroup, Error>>;
10500
+ /**
10501
+ * No description
10502
+ *
10503
+ * @tags sites
10504
+ * @name UpdateSiteSectionGroupById
10505
+ * @summary Update a section group on a site in an organization
10506
+ * @request PATCH:/orgs/{organizationId}/sites/{siteId}/section-groups/{siteSectionGroupId}
10507
+ * @secure
10508
+ */
10509
+ updateSiteSectionGroupById: (organizationId: string, siteId: string, siteSectionGroupId: string, data: {
10510
+ /** Title of the site section group */
10511
+ title?: SiteSectionGroupTitle;
10512
+ icon?: Icon | null;
10513
+ }, params?: RequestParams) => Promise<HttpResponse<SiteSectionGroup, Error>>;
10514
+ /**
10515
+ * No description
10516
+ *
10517
+ * @tags sites
10518
+ * @name DeleteSiteSectionGroupById
10519
+ * @summary Delete a section group on a site in an organization
10520
+ * @request DELETE:/orgs/{organizationId}/sites/{siteId}/section-groups/{siteSectionGroupId}
10521
+ * @secure
10522
+ */
10523
+ deleteSiteSectionGroupById: (organizationId: string, siteId: string, siteSectionGroupId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
10280
10524
  /**
10281
10525
  * No description
10282
10526
  *
@@ -10984,14 +11228,29 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
10984
11228
  * @max 1000
10985
11229
  */
10986
11230
  limit?: number;
11231
+ /**
11232
+ * Filter sites by their ads review status
11233
+ * @default "in-review"
11234
+ */
11235
+ status?: "in-review" | "live" | "rejected";
10987
11236
  }, params?: RequestParams) => Promise<HttpResponse<List & {
10988
- items: {
11237
+ items: ({
10989
11238
  id: string;
10990
11239
  url: string;
10991
11240
  email: string;
10992
11241
  /** Topic of the content */
10993
11242
  topic: SiteAdsTopic;
10994
- }[];
11243
+ } & ({
11244
+ status: "in-review";
11245
+ } | {
11246
+ status: "live";
11247
+ /** The ad network zone ID */
11248
+ zoneId: string;
11249
+ } | {
11250
+ status: "rejected";
11251
+ /** Reason for the rejection */
11252
+ reason?: string;
11253
+ }))[];
10995
11254
  }, Error>>;
10996
11255
  /**
10997
11256
  * No description
package/dist/index.cjs CHANGED
@@ -243,14 +243,17 @@ __export(src_exports, {
243
243
  RevisionSemanticChangeType: () => RevisionSemanticChangeType,
244
244
  SiteAdsStatus: () => SiteAdsStatus,
245
245
  SiteAdsTopic: () => SiteAdsTopic,
246
+ SiteInsightsAdPlacement: () => SiteInsightsAdPlacement,
246
247
  SiteInsightsEventType: () => SiteInsightsEventType,
247
248
  SiteInsightsLinkPosition: () => SiteInsightsLinkPosition,
248
249
  SiteInsightsQueryOperator: () => SiteInsightsQueryOperator,
249
250
  SiteInsightsQueryRange: () => SiteInsightsQueryRange,
251
+ SiteInsightsTrademarkPlacement: () => SiteInsightsTrademarkPlacement,
250
252
  SiteInsightsVisitorBot: () => SiteInsightsVisitorBot,
251
253
  SiteInsightsVisitorBrowser: () => SiteInsightsVisitorBrowser,
252
254
  SiteInsightsVisitorDevice: () => SiteInsightsVisitorDevice,
253
255
  SiteInsightsVisitorOS: () => SiteInsightsVisitorOS,
256
+ SiteToMigrateFeature: () => SiteToMigrateFeature,
254
257
  SiteType: () => SiteType,
255
258
  SiteVisibility: () => SiteVisibility,
256
259
  SpaceBlockReason: () => SpaceBlockReason,
@@ -261,7 +264,7 @@ module.exports = __toCommonJS(src_exports);
261
264
 
262
265
  // package.json
263
266
  var name = "@gitbook/api";
264
- var version = "0.88.1";
267
+ var version = "0.89.0";
265
268
 
266
269
  // src/client.ts
267
270
  var import_event_iterator = __toESM(require_node(), 1);
@@ -706,6 +709,25 @@ var BillingInterval = /* @__PURE__ */ ((BillingInterval2) => {
706
709
  BillingInterval2["Yearly"] = "yearly";
707
710
  return BillingInterval2;
708
711
  })(BillingInterval || {});
712
+ var SiteToMigrateFeature = /* @__PURE__ */ ((SiteToMigrateFeature2) => {
713
+ SiteToMigrateFeature2["Sections"] = "sections";
714
+ SiteToMigrateFeature2["VisitorAuth"] = "visitor-auth";
715
+ SiteToMigrateFeature2["Redirects"] = "redirects";
716
+ SiteToMigrateFeature2["CustomHostname"] = "custom-hostname";
717
+ SiteToMigrateFeature2["AISearch"] = "AI-search";
718
+ SiteToMigrateFeature2["PDFExport"] = "PDF-export";
719
+ SiteToMigrateFeature2["PageRatings"] = "page-ratings";
720
+ SiteToMigrateFeature2["CustomLogo"] = "custom-logo";
721
+ SiteToMigrateFeature2["CustomThemePreset"] = "custom-theme-preset";
722
+ SiteToMigrateFeature2["CustomFonts"] = "custom-fonts";
723
+ SiteToMigrateFeature2["CustomIcons"] = "custom-icons";
724
+ SiteToMigrateFeature2["CustomFooterLogo"] = "custom-footer-logo";
725
+ SiteToMigrateFeature2["CustomFooterCopyright"] = "custom-footer-copyright";
726
+ SiteToMigrateFeature2["CustomFooterLinks"] = "custom-footer-links";
727
+ SiteToMigrateFeature2["Unlisted"] = "unlisted";
728
+ SiteToMigrateFeature2["ShareLinks"] = "share-links";
729
+ return SiteToMigrateFeature2;
730
+ })(SiteToMigrateFeature || {});
709
731
  var CustomizationIconsStyle = /* @__PURE__ */ ((CustomizationIconsStyle2) => {
710
732
  CustomizationIconsStyle2["Regular"] = "regular";
711
733
  CustomizationIconsStyle2["Solid"] = "solid";
@@ -732,16 +754,30 @@ var SiteInsightsLinkPosition = /* @__PURE__ */ ((SiteInsightsLinkPosition2) => {
732
754
  SiteInsightsLinkPosition2["Content"] = "content";
733
755
  return SiteInsightsLinkPosition2;
734
756
  })(SiteInsightsLinkPosition || {});
757
+ var SiteInsightsTrademarkPlacement = /* @__PURE__ */ ((SiteInsightsTrademarkPlacement2) => {
758
+ SiteInsightsTrademarkPlacement2["Sidebar"] = "sidebar";
759
+ SiteInsightsTrademarkPlacement2["Ad"] = "ad";
760
+ SiteInsightsTrademarkPlacement2["Footer"] = "footer";
761
+ return SiteInsightsTrademarkPlacement2;
762
+ })(SiteInsightsTrademarkPlacement || {});
763
+ var SiteInsightsAdPlacement = /* @__PURE__ */ ((SiteInsightsAdPlacement2) => {
764
+ SiteInsightsAdPlacement2["Aside"] = "aside";
765
+ return SiteInsightsAdPlacement2;
766
+ })(SiteInsightsAdPlacement || {});
735
767
  var SiteInsightsEventType = /* @__PURE__ */ ((SiteInsightsEventType2) => {
736
768
  SiteInsightsEventType2["PageView"] = "page_view";
737
769
  SiteInsightsEventType2["SearchOpen"] = "search_open";
738
770
  SiteInsightsEventType2["SearchTypeQuery"] = "search_type_query";
739
771
  SiteInsightsEventType2["SearchOpenResult"] = "search_open_result";
740
772
  SiteInsightsEventType2["PagePostFeedback"] = "page_post_feedback";
773
+ SiteInsightsEventType2["PagePostFeedbackComment"] = "page_post_feedback_comment";
741
774
  SiteInsightsEventType2["AskQuestion"] = "ask_question";
742
775
  SiteInsightsEventType2["LinkClick"] = "link_click";
743
776
  SiteInsightsEventType2["ApiClientOpen"] = "api_client_open";
744
777
  SiteInsightsEventType2["ApiClientRequest"] = "api_client_request";
778
+ SiteInsightsEventType2["AdClick"] = "ad_click";
779
+ SiteInsightsEventType2["AdDisplay"] = "ad_display";
780
+ SiteInsightsEventType2["TrademarkClick"] = "trademark_click";
745
781
  return SiteInsightsEventType2;
746
782
  })(SiteInsightsEventType || {});
747
783
  var SiteInsightsVisitorBrowser = /* @__PURE__ */ ((SiteInsightsVisitorBrowser2) => {
@@ -1369,6 +1405,12 @@ var Api = class extends HttpClient {
1369
1405
  secure: true,
1370
1406
  ...params
1371
1407
  }),
1408
+ removeUserFromSpace: (spaceId, userId, params = {}) => this.request({
1409
+ path: `/spaces/${spaceId}/permissions/users/${userId}`,
1410
+ method: "DELETE",
1411
+ secure: true,
1412
+ ...params
1413
+ }),
1372
1414
  getCurrentRevision: (spaceId, query, params = {}) => this.request({
1373
1415
  path: `/spaces/${spaceId}/content`,
1374
1416
  method: "GET",
@@ -2085,6 +2127,18 @@ var Api = class extends HttpClient {
2085
2127
  type: "application/json" /* Json */,
2086
2128
  ...params
2087
2129
  }),
2130
+ removeTeamFromCollection: (collectionId, teamId, params = {}) => this.request({
2131
+ path: `/collections/${collectionId}/permissions/teams/${teamId}`,
2132
+ method: "DELETE",
2133
+ secure: true,
2134
+ ...params
2135
+ }),
2136
+ removeUserFromCollection: (collectionId, userId, params = {}) => this.request({
2137
+ path: `/collections/${collectionId}/permissions/users/${userId}`,
2138
+ method: "DELETE",
2139
+ secure: true,
2140
+ ...params
2141
+ }),
2088
2142
  listPermissionsAggregateInCollection: (collectionId, query, params = {}) => this.request({
2089
2143
  path: `/collections/${collectionId}/permissions/aggregate`,
2090
2144
  method: "GET",
@@ -2560,6 +2614,29 @@ var Api = class extends HttpClient {
2560
2614
  format: "json",
2561
2615
  ...params
2562
2616
  }),
2617
+ migrateOrganizationPlan: (organizationId, query, params = {}) => this.request({
2618
+ path: `/orgs/${organizationId}/billing/migrate`,
2619
+ method: "POST",
2620
+ query,
2621
+ secure: true,
2622
+ ...params
2623
+ }),
2624
+ previewMigrateOrganizationPlan: (organizationId, query, params = {}) => this.request({
2625
+ path: `/orgs/${organizationId}/billing/migrate`,
2626
+ method: "GET",
2627
+ query,
2628
+ secure: true,
2629
+ format: "json",
2630
+ ...params
2631
+ }),
2632
+ listSitesToMigrate: (organizationId, query, params = {}) => this.request({
2633
+ path: `/orgs/${organizationId}/billing/migrate/sites`,
2634
+ method: "GET",
2635
+ query,
2636
+ secure: true,
2637
+ format: "json",
2638
+ ...params
2639
+ }),
2563
2640
  getOrganizationBillingPortal: (organizationId, params = {}) => this.request({
2564
2641
  path: `/orgs/${organizationId}/billing/portal`,
2565
2642
  method: "GET",
@@ -3132,6 +3209,30 @@ var Api = class extends HttpClient {
3132
3209
  format: "json",
3133
3210
  ...params
3134
3211
  }),
3212
+ addSectionGroupToSite: (organizationId, siteId, data, params = {}) => this.request({
3213
+ path: `/orgs/${organizationId}/sites/${siteId}/section-groups`,
3214
+ method: "POST",
3215
+ body: data,
3216
+ secure: true,
3217
+ type: "application/json" /* Json */,
3218
+ format: "json",
3219
+ ...params
3220
+ }),
3221
+ updateSiteSectionGroupById: (organizationId, siteId, siteSectionGroupId, data, params = {}) => this.request({
3222
+ path: `/orgs/${organizationId}/sites/${siteId}/section-groups/${siteSectionGroupId}`,
3223
+ method: "PATCH",
3224
+ body: data,
3225
+ secure: true,
3226
+ type: "application/json" /* Json */,
3227
+ format: "json",
3228
+ ...params
3229
+ }),
3230
+ deleteSiteSectionGroupById: (organizationId, siteId, siteSectionGroupId, params = {}) => this.request({
3231
+ path: `/orgs/${organizationId}/sites/${siteId}/section-groups/${siteSectionGroupId}`,
3232
+ method: "DELETE",
3233
+ secure: true,
3234
+ ...params
3235
+ }),
3135
3236
  addSectionToSite: (organizationId, siteId, data, params = {}) => this.request({
3136
3237
  path: `/orgs/${organizationId}/sites/${siteId}/sections`,
3137
3238
  method: "POST",
@@ -3599,14 +3700,17 @@ var GitBookAPI = class extends Api {
3599
3700
  RevisionSemanticChangeType,
3600
3701
  SiteAdsStatus,
3601
3702
  SiteAdsTopic,
3703
+ SiteInsightsAdPlacement,
3602
3704
  SiteInsightsEventType,
3603
3705
  SiteInsightsLinkPosition,
3604
3706
  SiteInsightsQueryOperator,
3605
3707
  SiteInsightsQueryRange,
3708
+ SiteInsightsTrademarkPlacement,
3606
3709
  SiteInsightsVisitorBot,
3607
3710
  SiteInsightsVisitorBrowser,
3608
3711
  SiteInsightsVisitorDevice,
3609
3712
  SiteInsightsVisitorOS,
3713
+ SiteToMigrateFeature,
3610
3714
  SiteType,
3611
3715
  SiteVisibility,
3612
3716
  SpaceBlockReason,