@gitbook/api 0.45.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/client.d.ts CHANGED
@@ -147,6 +147,8 @@ export interface RequestUpdateIntegrationInstallation {
147
147
  configuration?: IntegrationInstallationConfiguration;
148
148
  /** Describe whether all spaces have been selected or there's a selection involved */
149
149
  space_selection?: IntegrationInstallationSpaceSelection;
150
+ /** Describe whether all sites have been selected or there's a selection involved */
151
+ site_selection?: IntegrationInstallationSiteSelection;
150
152
  }
151
153
  export interface RequestUpdateIntegrationSpaceInstallation {
152
154
  /** External IDs assigned by the integration. */
@@ -439,6 +441,8 @@ export declare type Embed = {
439
441
  html: string;
440
442
  } | {
441
443
  type: 'integration';
444
+ /** The identifier of the integration performing the rendering */
445
+ integration: string;
442
446
  block: IntegrationBlock;
443
447
  });
444
448
  export declare type Comment = {
@@ -1146,8 +1150,7 @@ export interface ContentLocationFile {
1146
1150
  kind: 'file';
1147
1151
  organization: Organization;
1148
1152
  space: Space;
1149
- changeRequest?: ChangeRequest;
1150
- revision?: Revision;
1153
+ versionContext?: ContentLocationRevisionContext | ContentLocationChangeRequestContext;
1151
1154
  file: RevisionFile;
1152
1155
  }
1153
1156
  export interface ContentLocationPage {
@@ -1155,12 +1158,16 @@ export interface ContentLocationPage {
1155
1158
  organization: Organization;
1156
1159
  page: RevisionPage;
1157
1160
  space: Space;
1158
- changeRequest?: ChangeRequest;
1159
- revision?: Revision;
1160
- /** The anchor within the page. */
1161
- anchor?: string;
1162
- /** The node id within the page. */
1163
- node?: string;
1161
+ versionContext?: ContentLocationRevisionContext | ContentLocationChangeRequestContext;
1162
+ internalLocation?: {
1163
+ type: 'anchor';
1164
+ /** The anchor within the page. */
1165
+ anchor: string;
1166
+ } | {
1167
+ type: 'node';
1168
+ /** The node id within the page. */
1169
+ node: string;
1170
+ };
1164
1171
  }
1165
1172
  export interface ContentLocationUser {
1166
1173
  kind: 'user';
@@ -1186,6 +1193,14 @@ export interface ContentLocationSyncedBlock {
1186
1193
  organization: Organization;
1187
1194
  syncedBlock: SyncedBlock;
1188
1195
  }
1196
+ export interface ContentLocationChangeRequestContext {
1197
+ type: 'changeRequest';
1198
+ changeRequest: ChangeRequest;
1199
+ }
1200
+ export interface ContentLocationRevisionContext {
1201
+ type: 'revision';
1202
+ revision: Revision;
1203
+ }
1189
1204
  export interface Space {
1190
1205
  /** Type of Object, always equals to "space" */
1191
1206
  object: 'space';
@@ -1849,8 +1864,6 @@ export interface OrganizationUsageSites {
1849
1864
  shareLink: number;
1850
1865
  /** Count of all visitor-authenticated sites */
1851
1866
  visitorAuth: number;
1852
- /** Count of all unpublished sites */
1853
- unpublished: number;
1854
1867
  }
1855
1868
  /** Members usage metrics of an organization */
1856
1869
  export interface OrganizationUsageMembers {
@@ -2102,26 +2115,9 @@ export interface ContentReferenceUsage {
2102
2115
  */
2103
2116
  status: ContentReferenceStatus;
2104
2117
  /** The reference target where a list of pages are pointing at */
2105
- targetReference: ContentReferenceResolved;
2106
- /** All pages where the target is being referenced. */
2107
- locationReferences: ContentReferenceResolved[];
2108
- }
2109
- export interface ContentReferenceResolved {
2110
- /** Text to display to represent the reference */
2111
- text: string;
2112
- /** The type of the content reference */
2113
- type: 'space' | 'page' | 'file' | 'anchor' | 'collection' | 'user' | 'snippet' | 'url' | 'synced-block';
2114
- /** Target in-app url for the reference */
2115
- url: string;
2116
- extra: {
2117
- collection?: Collection;
2118
- space?: Space;
2119
- page?: RevisionPage;
2120
- anchor?: RevisionPage;
2121
- file?: RevisionFile;
2122
- snippet?: Snippet;
2123
- user?: User;
2124
- };
2118
+ targetReference?: ContentLocation;
2119
+ /** Pages locations where a link to the target is found. */
2120
+ locationReferences: ContentLocation[];
2125
2121
  }
2126
2122
  /**
2127
2123
  * Text to display to represent the reference. Possible values include:
@@ -2604,6 +2600,7 @@ export declare enum IntegrationScope {
2604
2600
  SpaceScriptCookies = "space:script:cookies",
2605
2601
  SpaceGitSync = "space:git:sync",
2606
2602
  SpaceVisitorAuth = "space:visitor:auth",
2603
+ SiteMetadataRead = "site:metadata:read",
2607
2604
  SiteViewsRead = "site:views:read",
2608
2605
  SiteScriptInject = "site:script:inject",
2609
2606
  SiteScriptCookies = "site:script:cookies",
@@ -2692,6 +2689,7 @@ export declare enum IntegrationCategory {
2692
2689
  Content = "content",
2693
2690
  Gitsync = "gitsync",
2694
2691
  Marketing = "marketing",
2692
+ VisitorAuth = "visitor-auth",
2695
2693
  Other = "other"
2696
2694
  }
2697
2695
  export interface IntegrationConfigurations {
@@ -3279,14 +3277,15 @@ export declare enum BillingProduct {
3279
3277
  Free2024 = "free_2024",
3280
3278
  Plus2024 = "plus_2024",
3281
3279
  Pro2024 = "pro_2024",
3282
- Enterprise = "enterprise",
3280
+ Enterprise2024 = "enterprise_2024",
3283
3281
  Free = "free",
3284
3282
  Plus = "plus",
3285
3283
  Pro = "pro",
3286
3284
  Team = "team",
3287
3285
  Business = "business",
3288
3286
  Legacy = "legacy",
3289
- Startup = "startup"
3287
+ Startup = "startup",
3288
+ Enterprise = "enterprise"
3290
3289
  }
3291
3290
  export declare type BillingUpgrade = {
3292
3291
  result: 'checkout';
@@ -4357,6 +4356,8 @@ export interface Site {
4357
4356
  object: 'site';
4358
4357
  /** Unique identifier of the site */
4359
4358
  id: string;
4359
+ /** The type of the site */
4360
+ type: SiteType;
4360
4361
  /** Title of the site */
4361
4362
  title: SiteTitle;
4362
4363
  /** Custom hostname for the site, for e.g. docs.mycompany.com */
@@ -4364,17 +4365,18 @@ export interface Site {
4364
4365
  /** Basename for the site. For e.g. api */
4365
4366
  basename?: SiteBasename;
4366
4367
  /**
4368
+ * The visibility setting of the site determines the audience of the site.
4367
4369
  * * `public`: Anyone can access the site, and the site is indexed by search engines.
4368
4370
  * * `unlisted`: Anyone can access the site, and the site is not indexed by search engines
4369
4371
  * * `share-link`: Anyone with a secret token in the url can access the site.
4370
4372
  * * `visitor-auth`: Anyone authenticated through a JWT token can access the site.
4371
- * * `unpublished`: The site is not accessible to anyone.
4372
4373
  */
4373
4374
  visibility: SiteVisibility;
4375
+ /** Whether the site is live or not. If true, the site is accessible to the audience defined by the visibility setting. */
4376
+ published: boolean;
4374
4377
  siteSpaces: number;
4375
4378
  /** @format date-time */
4376
4379
  createdAt: string;
4377
- subscription: SiteSubscription;
4378
4380
  /** URLs associated with the object */
4379
4381
  urls: {
4380
4382
  /**
@@ -4388,12 +4390,18 @@ export interface Site {
4388
4390
  */
4389
4391
  app: string;
4390
4392
  /**
4391
- * URL of the published version of the site. Only defined when visibility is not "unpublished."
4393
+ * URL of the published version of the site. Only defined when site is published.
4392
4394
  * @format uri
4393
4395
  */
4394
4396
  published?: string;
4395
4397
  };
4396
4398
  }
4399
+ /** The type of the site */
4400
+ export declare enum SiteType {
4401
+ Basic = "basic",
4402
+ Standard = "standard",
4403
+ Premium = "premium"
4404
+ }
4397
4405
  /**
4398
4406
  * Title of the site
4399
4407
  * @minLength 2
@@ -4449,6 +4457,10 @@ export interface SiteCustomizationSettings {
4449
4457
  /** If true, AI search is enabled */
4450
4458
  enabled: boolean;
4451
4459
  };
4460
+ advancedCustomization: {
4461
+ /** If true, Advanced customization is enabled */
4462
+ enabled: boolean;
4463
+ };
4452
4464
  git: {
4453
4465
  /** Whether the published site should show a link to edit the content on the git provider set up in the Git Sync */
4454
4466
  showEditLink: boolean;
@@ -4555,20 +4567,19 @@ export interface SiteSpaceCustomizationOverrides {
4555
4567
  };
4556
4568
  }
4557
4569
  /**
4570
+ * The visibility setting of the site determines the audience of the site.
4558
4571
  * * `public`: Anyone can access the site, and the site is indexed by search engines.
4559
4572
  * * `unlisted`: Anyone can access the site, and the site is not indexed by search engines
4560
4573
  * * `share-link`: Anyone with a secret token in the url can access the site.
4561
4574
  * * `visitor-auth`: Anyone authenticated through a JWT token can access the site.
4562
- * * `unpublished`: The site is not accessible to anyone.
4563
4575
  */
4564
4576
  export declare enum SiteVisibility {
4565
4577
  Public = "public",
4566
4578
  Unlisted = "unlisted",
4567
4579
  ShareLink = "share-link",
4568
- VisitorAuth = "visitor-auth",
4569
- Unpublished = "unpublished"
4580
+ VisitorAuth = "visitor-auth"
4570
4581
  }
4571
- export declare type SitePublishingAuth = {
4582
+ export declare type SitePublishingAuth = (SpaceVisitorAuthCustomBackend | SpaceVisitorAuthIntegrationBackend) & {
4572
4583
  /** Type of Object, always equals to "publishing-auth" */
4573
4584
  object: 'publishing-auth';
4574
4585
  /** Private key used to sign JWT tokens. */
@@ -4578,7 +4589,12 @@ export declare type SitePublishingAuth = {
4578
4589
  * @format uri
4579
4590
  */
4580
4591
  fallbackURL?: string;
4581
- } & SpaceVisitorAuth;
4592
+ /**
4593
+ * Name of the Visitor Authentication integration installed on the site (if any).
4594
+ * It is also the one being used as VA backend when the published auth settings are configured to use "integration" as backend.
4595
+ */
4596
+ integration?: string;
4597
+ };
4582
4598
  export declare type SitePublishingAuthUpdate = (SpaceVisitorAuthCustomBackend | SpaceVisitorAuthIntegrationBackend) & {
4583
4599
  /**
4584
4600
  * A fallback URL that will be used if authentication fails.
@@ -4607,10 +4623,12 @@ export interface SiteSpace {
4607
4623
  space: Space;
4608
4624
  /** Whether this is the default space for the site */
4609
4625
  default?: boolean;
4626
+ /** Whether the space has advanced customization feature enabled */
4627
+ hasAdvancedCustomizationFeature?: boolean;
4610
4628
  /** URLs associated with the object */
4611
4629
  urls: {
4612
4630
  /**
4613
- * URL of the published version of the site-space. Only defined when site is not "unpublished"
4631
+ * URL of the published version of the site-space. Only defined when site is published.
4614
4632
  * @format uri
4615
4633
  */
4616
4634
  published?: string;
@@ -4632,19 +4650,6 @@ export interface SiteSpacePointer {
4632
4650
  /** Unique identifier for the site space */
4633
4651
  siteSpace: string;
4634
4652
  }
4635
- export declare enum SiteSubscriptionStatus {
4636
- Active = "active",
4637
- Inactive = "inactive"
4638
- }
4639
- export declare enum SiteSubscriptionType {
4640
- Basic = "basic",
4641
- Premium = "premium",
4642
- PremiumVa = "premium_va"
4643
- }
4644
- export interface SiteSubscription {
4645
- type: SiteSubscriptionType;
4646
- status: SiteSubscriptionStatus;
4647
- }
4648
4653
  export interface CustomHostname {
4649
4654
  object: 'custom-hostname';
4650
4655
  /** Custom hostname for the site, for e.g. docs.mycompany.com */
@@ -7921,6 +7926,32 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7921
7926
  integration: Integration;
7922
7927
  }[];
7923
7928
  }, Error>>;
7929
+ /**
7930
+ * No description
7931
+ *
7932
+ * @tags integrations
7933
+ * @name ListOrganizationIntegrationsStatus
7934
+ * @summary List the statuses of all integrations installed in an organization
7935
+ * @request GET:/orgs/{organizationId}/integrations/installations-status
7936
+ * @secure
7937
+ */
7938
+ listOrganizationIntegrationsStatus: (organizationId: string, query?: {
7939
+ /** Identifier of the page results to fetch. */
7940
+ page?: string;
7941
+ /**
7942
+ * The number of results per page
7943
+ * @min 0
7944
+ * @max 1000
7945
+ */
7946
+ limit?: number;
7947
+ /** A search string to filter integrations by name */
7948
+ search?: any;
7949
+ }, params?: RequestParams) => Promise<HttpResponse<List & {
7950
+ items: {
7951
+ status: IntegrationInstallationStatus;
7952
+ integration: Integration;
7953
+ }[];
7954
+ }, Error>>;
7924
7955
  /**
7925
7956
  * No description
7926
7957
  *
@@ -8576,11 +8607,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8576
8607
  /** Title of the site */
8577
8608
  title?: SiteTitle;
8578
8609
  /**
8610
+ * The visibility setting of the site determines the audience of the site.
8579
8611
  * * `public`: Anyone can access the site, and the site is indexed by search engines.
8580
8612
  * * `unlisted`: Anyone can access the site, and the site is not indexed by search engines
8581
8613
  * * `share-link`: Anyone with a secret token in the url can access the site.
8582
8614
  * * `visitor-auth`: Anyone authenticated through a JWT token can access the site.
8583
- * * `unpublished`: The site is not accessible to anyone.
8584
8615
  */
8585
8616
  visibility?: SiteVisibility;
8586
8617
  /** ID of spaces to be added to the site */
@@ -8615,11 +8646,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8615
8646
  /** Title of the site */
8616
8647
  title?: SiteTitle;
8617
8648
  /**
8649
+ * The visibility setting of the site determines the audience of the site.
8618
8650
  * * `public`: Anyone can access the site, and the site is indexed by search engines.
8619
8651
  * * `unlisted`: Anyone can access the site, and the site is not indexed by search engines
8620
8652
  * * `share-link`: Anyone with a secret token in the url can access the site.
8621
8653
  * * `visitor-auth`: Anyone authenticated through a JWT token can access the site.
8622
- * * `unpublished`: The site is not accessible to anyone.
8623
8654
  */
8624
8655
  visibility?: SiteVisibility;
8625
8656
  /** Basename for the site. For e.g. api */
@@ -8637,6 +8668,73 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8637
8668
  * @secure
8638
8669
  */
8639
8670
  deleteSiteById: (organizationId: string, siteId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
8671
+ /**
8672
+ * No description
8673
+ *
8674
+ * @tags sites
8675
+ * @name CheckoutSite
8676
+ * @summary Initiate a payment checkout for a site
8677
+ * @request POST:/orgs/{organizationId}/sites/{siteId}/checkout
8678
+ * @secure
8679
+ */
8680
+ checkoutSite: (organizationId: string, siteId: string, data: {
8681
+ /** Reason leading to the site checkout */
8682
+ reason: string;
8683
+ }, params?: RequestParams) => Promise<HttpResponse<{
8684
+ result: 'success' | 'failure';
8685
+ } | {
8686
+ result: 'checkout';
8687
+ /** Stripe payment session ID */
8688
+ sessionId: string;
8689
+ }, Error>>;
8690
+ /**
8691
+ * No description
8692
+ *
8693
+ * @tags sites
8694
+ * @name GetSiteCheckoutById
8695
+ * @summary Returns checkout information about a site prior to publishing.
8696
+ * @request GET:/orgs/{organizationId}/sites/{siteId}/checkout
8697
+ * @secure
8698
+ */
8699
+ getSiteCheckoutById: (organizationId: string, siteId: string, params?: RequestParams) => Promise<HttpResponse<{
8700
+ downgrade?: boolean;
8701
+ } & ({
8702
+ type: 'simple-checkout';
8703
+ } | {
8704
+ type: 'advanced-checkout';
8705
+ } | {
8706
+ type: 'no-permissions';
8707
+ } | {
8708
+ type: 'publish';
8709
+ } | {
8710
+ type: 'legacy-upgrade';
8711
+ }), Error | {
8712
+ error: {
8713
+ /** @format int32 */
8714
+ code: 404;
8715
+ message: string;
8716
+ };
8717
+ }>>;
8718
+ /**
8719
+ * No description
8720
+ *
8721
+ * @tags sites
8722
+ * @name PublishSite
8723
+ * @summary Publishes the site to the audience defined in the site's visibility setting.
8724
+ * @request POST:/orgs/{organizationId}/sites/{siteId}/publish
8725
+ * @secure
8726
+ */
8727
+ publishSite: (organizationId: string, siteId: string, params?: RequestParams) => Promise<HttpResponse<Site, Error>>;
8728
+ /**
8729
+ * No description
8730
+ *
8731
+ * @tags sites
8732
+ * @name UnpublishSite
8733
+ * @summary Unpublishes the site.
8734
+ * @request POST:/orgs/{organizationId}/sites/{siteId}/unpublish
8735
+ * @secure
8736
+ */
8737
+ unpublishSite: (organizationId: string, siteId: string, params?: RequestParams) => Promise<HttpResponse<Site, Error>>;
8640
8738
  /**
8641
8739
  * No description
8642
8740
  *
@@ -8727,6 +8825,22 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8727
8825
  message: string;
8728
8826
  };
8729
8827
  }>>;
8828
+ /**
8829
+ * No description
8830
+ *
8831
+ * @tags sites
8832
+ * @name RegenerateSitePublishingAuthById
8833
+ * @summary Regenerate the publishing authentication settings for a site. This will re-generate the private key.
8834
+ * @request POST:/orgs/{organizationId}/sites/{siteId}/publishing/auth/regenerate
8835
+ * @secure
8836
+ */
8837
+ regenerateSitePublishingAuthById: (organizationId: string, siteId: string, params?: RequestParams) => Promise<HttpResponse<SitePublishingAuth, Error | {
8838
+ error: {
8839
+ /** @format int32 */
8840
+ code: 400;
8841
+ message: string;
8842
+ };
8843
+ }>>;
8730
8844
  /**
8731
8845
  * No description
8732
8846
  *
@@ -8757,7 +8871,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8757
8871
  * @request GET:/orgs/{organizationId}/sites/{siteId}/customization
8758
8872
  * @secure
8759
8873
  */
8760
- getSiteCustomizationById: (organizationId: string, siteId: string, params?: RequestParams) => Promise<HttpResponse<SiteCustomizationSettings, Error | {
8874
+ getSiteCustomizationById: (organizationId: string, siteId: string, query?: {
8875
+ /**
8876
+ * Access the customization settings without applying any masking from the advanced customization flag.
8877
+ * @default false
8878
+ */
8879
+ unmasked?: boolean;
8880
+ }, params?: RequestParams) => Promise<HttpResponse<SiteCustomizationSettings, Error | {
8761
8881
  error: {
8762
8882
  /** @format int32 */
8763
8883
  code: 400;
@@ -8877,7 +8997,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8877
8997
  * @request GET:/orgs/{organizationId}/sites/{siteId}/spaces/{siteSpaceId}/customization
8878
8998
  * @secure
8879
8999
  */
8880
- getSiteSpaceCustomizationById: (organizationId: string, siteId: string, siteSpaceId: string, params?: RequestParams) => Promise<HttpResponse<SiteCustomizationSettings, Error | {
9000
+ getSiteSpaceCustomizationById: (organizationId: string, siteId: string, siteSpaceId: string, query?: {
9001
+ /**
9002
+ * Access the customization settings without applying any masking from the advanced customization flag.
9003
+ * @default false
9004
+ */
9005
+ unmasked?: boolean;
9006
+ }, params?: RequestParams) => Promise<HttpResponse<SiteCustomizationSettings, Error | {
8881
9007
  error: {
8882
9008
  /** @format int32 */
8883
9009
  code: 400;
@@ -8959,7 +9085,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8959
9085
  permission: MemberRole;
8960
9086
  user: User;
8961
9087
  /** The content or organization that enforced this permission level. */
8962
- origin: SpacePointer;
9088
+ origin: SpacePointer | OrganizationPointer;
8963
9089
  }[];
8964
9090
  }, Error>>;
8965
9091
  /**
package/dist/index.cjs CHANGED
@@ -228,8 +228,7 @@ __export(src_exports, {
228
228
  RevisionPageLayoutPreset: () => RevisionPageLayoutPreset,
229
229
  RevisionPageType: () => RevisionPageType,
230
230
  RevisionSemanticChangeType: () => RevisionSemanticChangeType,
231
- SiteSubscriptionStatus: () => SiteSubscriptionStatus,
232
- SiteSubscriptionType: () => SiteSubscriptionType,
231
+ SiteType: () => SiteType,
233
232
  SiteVisibility: () => SiteVisibility,
234
233
  SpaceBlockReason: () => SpaceBlockReason,
235
234
  SpaceEditMode: () => SpaceEditMode,
@@ -239,7 +238,7 @@ module.exports = __toCommonJS(src_exports);
239
238
 
240
239
  // package.json
241
240
  var name = "@gitbook/api";
242
- var version = "0.45.0";
241
+ var version = "0.47.0";
243
242
 
244
243
  // src/client.ts
245
244
  var import_event_iterator = __toESM(require_node(), 1);
@@ -515,6 +514,7 @@ var IntegrationScope = /* @__PURE__ */ ((IntegrationScope2) => {
515
514
  IntegrationScope2["SpaceScriptCookies"] = "space:script:cookies";
516
515
  IntegrationScope2["SpaceGitSync"] = "space:git:sync";
517
516
  IntegrationScope2["SpaceVisitorAuth"] = "space:visitor:auth";
517
+ IntegrationScope2["SiteMetadataRead"] = "site:metadata:read";
518
518
  IntegrationScope2["SiteViewsRead"] = "site:views:read";
519
519
  IntegrationScope2["SiteScriptInject"] = "site:script:inject";
520
520
  IntegrationScope2["SiteScriptCookies"] = "site:script:cookies";
@@ -538,6 +538,7 @@ var IntegrationCategory = /* @__PURE__ */ ((IntegrationCategory2) => {
538
538
  IntegrationCategory2["Content"] = "content";
539
539
  IntegrationCategory2["Gitsync"] = "gitsync";
540
540
  IntegrationCategory2["Marketing"] = "marketing";
541
+ IntegrationCategory2["VisitorAuth"] = "visitor-auth";
541
542
  IntegrationCategory2["Other"] = "other";
542
543
  return IntegrationCategory2;
543
544
  })(IntegrationCategory || {});
@@ -567,7 +568,7 @@ var BillingProduct = /* @__PURE__ */ ((BillingProduct2) => {
567
568
  BillingProduct2["Free2024"] = "free_2024";
568
569
  BillingProduct2["Plus2024"] = "plus_2024";
569
570
  BillingProduct2["Pro2024"] = "pro_2024";
570
- BillingProduct2["Enterprise"] = "enterprise";
571
+ BillingProduct2["Enterprise2024"] = "enterprise_2024";
571
572
  BillingProduct2["Free"] = "free";
572
573
  BillingProduct2["Plus"] = "plus";
573
574
  BillingProduct2["Pro"] = "pro";
@@ -575,6 +576,7 @@ var BillingProduct = /* @__PURE__ */ ((BillingProduct2) => {
575
576
  BillingProduct2["Business"] = "business";
576
577
  BillingProduct2["Legacy"] = "legacy";
577
578
  BillingProduct2["Startup"] = "startup";
579
+ BillingProduct2["Enterprise"] = "enterprise";
578
580
  return BillingProduct2;
579
581
  })(BillingProduct || {});
580
582
  var APIIntegrationScope = /* @__PURE__ */ ((APIIntegrationScope2) => {
@@ -704,25 +706,19 @@ var PageFeedbackRating = /* @__PURE__ */ ((PageFeedbackRating2) => {
704
706
  PageFeedbackRating2["Good"] = "good";
705
707
  return PageFeedbackRating2;
706
708
  })(PageFeedbackRating || {});
709
+ var SiteType = /* @__PURE__ */ ((SiteType2) => {
710
+ SiteType2["Basic"] = "basic";
711
+ SiteType2["Standard"] = "standard";
712
+ SiteType2["Premium"] = "premium";
713
+ return SiteType2;
714
+ })(SiteType || {});
707
715
  var SiteVisibility = /* @__PURE__ */ ((SiteVisibility2) => {
708
716
  SiteVisibility2["Public"] = "public";
709
717
  SiteVisibility2["Unlisted"] = "unlisted";
710
718
  SiteVisibility2["ShareLink"] = "share-link";
711
719
  SiteVisibility2["VisitorAuth"] = "visitor-auth";
712
- SiteVisibility2["Unpublished"] = "unpublished";
713
720
  return SiteVisibility2;
714
721
  })(SiteVisibility || {});
715
- var SiteSubscriptionStatus = /* @__PURE__ */ ((SiteSubscriptionStatus2) => {
716
- SiteSubscriptionStatus2["Active"] = "active";
717
- SiteSubscriptionStatus2["Inactive"] = "inactive";
718
- return SiteSubscriptionStatus2;
719
- })(SiteSubscriptionStatus || {});
720
- var SiteSubscriptionType = /* @__PURE__ */ ((SiteSubscriptionType2) => {
721
- SiteSubscriptionType2["Basic"] = "basic";
722
- SiteSubscriptionType2["Premium"] = "premium";
723
- SiteSubscriptionType2["PremiumVa"] = "premium_va";
724
- return SiteSubscriptionType2;
725
- })(SiteSubscriptionType || {});
726
722
  var CustomHostnameDnsStatus = /* @__PURE__ */ ((CustomHostnameDnsStatus2) => {
727
723
  CustomHostnameDnsStatus2["DnsPassed"] = "dns_passed";
728
724
  CustomHostnameDnsStatus2["DnsWrongCname"] = "dns_wrong_cname";
@@ -2479,6 +2475,14 @@ var Api = class extends HttpClient {
2479
2475
  format: "json",
2480
2476
  ...params
2481
2477
  }),
2478
+ listOrganizationIntegrationsStatus: (organizationId, query, params = {}) => this.request({
2479
+ path: `/orgs/${organizationId}/integrations/installations-status`,
2480
+ method: "GET",
2481
+ query,
2482
+ secure: true,
2483
+ format: "json",
2484
+ ...params
2485
+ }),
2482
2486
  listOrgExperimentalFeatures: (organizationId, params = {}) => this.request({
2483
2487
  path: `/orgs/${organizationId}/experiments`,
2484
2488
  method: "GET",
@@ -2834,6 +2838,36 @@ var Api = class extends HttpClient {
2834
2838
  secure: true,
2835
2839
  ...params
2836
2840
  }),
2841
+ checkoutSite: (organizationId, siteId, data, params = {}) => this.request({
2842
+ path: `/orgs/${organizationId}/sites/${siteId}/checkout`,
2843
+ method: "POST",
2844
+ body: data,
2845
+ secure: true,
2846
+ type: "application/json" /* Json */,
2847
+ format: "json",
2848
+ ...params
2849
+ }),
2850
+ getSiteCheckoutById: (organizationId, siteId, params = {}) => this.request({
2851
+ path: `/orgs/${organizationId}/sites/${siteId}/checkout`,
2852
+ method: "GET",
2853
+ secure: true,
2854
+ format: "json",
2855
+ ...params
2856
+ }),
2857
+ publishSite: (organizationId, siteId, params = {}) => this.request({
2858
+ path: `/orgs/${organizationId}/sites/${siteId}/publish`,
2859
+ method: "POST",
2860
+ secure: true,
2861
+ format: "json",
2862
+ ...params
2863
+ }),
2864
+ unpublishSite: (organizationId, siteId, params = {}) => this.request({
2865
+ path: `/orgs/${organizationId}/sites/${siteId}/unpublish`,
2866
+ method: "POST",
2867
+ secure: true,
2868
+ format: "json",
2869
+ ...params
2870
+ }),
2837
2871
  listSiteShareLinks: (organizationId, siteId, query, params = {}) => this.request({
2838
2872
  path: `/orgs/${organizationId}/sites/${siteId}/share-links`,
2839
2873
  method: "GET",
@@ -2882,6 +2916,13 @@ var Api = class extends HttpClient {
2882
2916
  format: "json",
2883
2917
  ...params
2884
2918
  }),
2919
+ regenerateSitePublishingAuthById: (organizationId, siteId, params = {}) => this.request({
2920
+ path: `/orgs/${organizationId}/sites/${siteId}/publishing/auth/regenerate`,
2921
+ method: "POST",
2922
+ secure: true,
2923
+ format: "json",
2924
+ ...params
2925
+ }),
2885
2926
  getSitePublishingPreviewById: (organizationId, siteId, query, params = {}) => this.request({
2886
2927
  path: `/orgs/${organizationId}/sites/${siteId}/publishing/preview`,
2887
2928
  method: "GET",
@@ -2890,9 +2931,10 @@ var Api = class extends HttpClient {
2890
2931
  format: "json",
2891
2932
  ...params
2892
2933
  }),
2893
- getSiteCustomizationById: (organizationId, siteId, params = {}) => this.request({
2934
+ getSiteCustomizationById: (organizationId, siteId, query, params = {}) => this.request({
2894
2935
  path: `/orgs/${organizationId}/sites/${siteId}/customization`,
2895
2936
  method: "GET",
2937
+ query,
2896
2938
  secure: true,
2897
2939
  format: "json",
2898
2940
  ...params
@@ -2953,9 +2995,10 @@ var Api = class extends HttpClient {
2953
2995
  secure: true,
2954
2996
  ...params
2955
2997
  }),
2956
- getSiteSpaceCustomizationById: (organizationId, siteId, siteSpaceId, params = {}) => this.request({
2998
+ getSiteSpaceCustomizationById: (organizationId, siteId, siteSpaceId, query, params = {}) => this.request({
2957
2999
  path: `/orgs/${organizationId}/sites/${siteId}/spaces/${siteSpaceId}/customization`,
2958
3000
  method: "GET",
3001
+ query,
2959
3002
  secure: true,
2960
3003
  format: "json",
2961
3004
  ...params
@@ -3196,8 +3239,7 @@ var GitBookAPI = class extends Api {
3196
3239
  RevisionPageLayoutPreset,
3197
3240
  RevisionPageType,
3198
3241
  RevisionSemanticChangeType,
3199
- SiteSubscriptionStatus,
3200
- SiteSubscriptionType,
3242
+ SiteType,
3201
3243
  SiteVisibility,
3202
3244
  SpaceBlockReason,
3203
3245
  SpaceEditMode,