@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/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. */
@@ -1148,8 +1150,7 @@ export interface ContentLocationFile {
1148
1150
  kind: 'file';
1149
1151
  organization: Organization;
1150
1152
  space: Space;
1151
- changeRequest?: ChangeRequest;
1152
- revision?: Revision;
1153
+ versionContext?: ContentLocationRevisionContext | ContentLocationChangeRequestContext;
1153
1154
  file: RevisionFile;
1154
1155
  }
1155
1156
  export interface ContentLocationPage {
@@ -1157,12 +1158,16 @@ export interface ContentLocationPage {
1157
1158
  organization: Organization;
1158
1159
  page: RevisionPage;
1159
1160
  space: Space;
1160
- changeRequest?: ChangeRequest;
1161
- revision?: Revision;
1162
- /** The anchor within the page. */
1163
- anchor?: string;
1164
- /** The node id within the page. */
1165
- 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
+ };
1166
1171
  }
1167
1172
  export interface ContentLocationUser {
1168
1173
  kind: 'user';
@@ -1188,6 +1193,14 @@ export interface ContentLocationSyncedBlock {
1188
1193
  organization: Organization;
1189
1194
  syncedBlock: SyncedBlock;
1190
1195
  }
1196
+ export interface ContentLocationChangeRequestContext {
1197
+ type: 'changeRequest';
1198
+ changeRequest: ChangeRequest;
1199
+ }
1200
+ export interface ContentLocationRevisionContext {
1201
+ type: 'revision';
1202
+ revision: Revision;
1203
+ }
1191
1204
  export interface Space {
1192
1205
  /** Type of Object, always equals to "space" */
1193
1206
  object: 'space';
@@ -1851,8 +1864,6 @@ export interface OrganizationUsageSites {
1851
1864
  shareLink: number;
1852
1865
  /** Count of all visitor-authenticated sites */
1853
1866
  visitorAuth: number;
1854
- /** Count of all unpublished sites */
1855
- unpublished: number;
1856
1867
  }
1857
1868
  /** Members usage metrics of an organization */
1858
1869
  export interface OrganizationUsageMembers {
@@ -2104,26 +2115,9 @@ export interface ContentReferenceUsage {
2104
2115
  */
2105
2116
  status: ContentReferenceStatus;
2106
2117
  /** The reference target where a list of pages are pointing at */
2107
- targetReference: ContentReferenceResolved;
2108
- /** All pages where the target is being referenced. */
2109
- locationReferences: ContentReferenceResolved[];
2110
- }
2111
- export interface ContentReferenceResolved {
2112
- /** Text to display to represent the reference */
2113
- text: string;
2114
- /** The type of the content reference */
2115
- type: 'space' | 'page' | 'file' | 'anchor' | 'collection' | 'user' | 'snippet' | 'url' | 'synced-block';
2116
- /** Target in-app url for the reference */
2117
- url: string;
2118
- extra: {
2119
- collection?: Collection;
2120
- space?: Space;
2121
- page?: RevisionPage;
2122
- anchor?: RevisionPage;
2123
- file?: RevisionFile;
2124
- snippet?: Snippet;
2125
- user?: User;
2126
- };
2118
+ targetReference?: ContentLocation;
2119
+ /** Pages locations where a link to the target is found. */
2120
+ locationReferences: ContentLocation[];
2127
2121
  }
2128
2122
  /**
2129
2123
  * Text to display to represent the reference. Possible values include:
@@ -2695,6 +2689,7 @@ export declare enum IntegrationCategory {
2695
2689
  Content = "content",
2696
2690
  Gitsync = "gitsync",
2697
2691
  Marketing = "marketing",
2692
+ VisitorAuth = "visitor-auth",
2698
2693
  Other = "other"
2699
2694
  }
2700
2695
  export interface IntegrationConfigurations {
@@ -3282,14 +3277,15 @@ export declare enum BillingProduct {
3282
3277
  Free2024 = "free_2024",
3283
3278
  Plus2024 = "plus_2024",
3284
3279
  Pro2024 = "pro_2024",
3285
- Enterprise = "enterprise",
3280
+ Enterprise2024 = "enterprise_2024",
3286
3281
  Free = "free",
3287
3282
  Plus = "plus",
3288
3283
  Pro = "pro",
3289
3284
  Team = "team",
3290
3285
  Business = "business",
3291
3286
  Legacy = "legacy",
3292
- Startup = "startup"
3287
+ Startup = "startup",
3288
+ Enterprise = "enterprise"
3293
3289
  }
3294
3290
  export declare type BillingUpgrade = {
3295
3291
  result: 'checkout';
@@ -4360,6 +4356,8 @@ export interface Site {
4360
4356
  object: 'site';
4361
4357
  /** Unique identifier of the site */
4362
4358
  id: string;
4359
+ /** The type of the site */
4360
+ type: SiteType;
4363
4361
  /** Title of the site */
4364
4362
  title: SiteTitle;
4365
4363
  /** Custom hostname for the site, for e.g. docs.mycompany.com */
@@ -4367,17 +4365,18 @@ export interface Site {
4367
4365
  /** Basename for the site. For e.g. api */
4368
4366
  basename?: SiteBasename;
4369
4367
  /**
4368
+ * The visibility setting of the site determines the audience of the site.
4370
4369
  * * `public`: Anyone can access the site, and the site is indexed by search engines.
4371
4370
  * * `unlisted`: Anyone can access the site, and the site is not indexed by search engines
4372
4371
  * * `share-link`: Anyone with a secret token in the url can access the site.
4373
4372
  * * `visitor-auth`: Anyone authenticated through a JWT token can access the site.
4374
- * * `unpublished`: The site is not accessible to anyone.
4375
4373
  */
4376
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;
4377
4377
  siteSpaces: number;
4378
4378
  /** @format date-time */
4379
4379
  createdAt: string;
4380
- subscription: SiteSubscription;
4381
4380
  /** URLs associated with the object */
4382
4381
  urls: {
4383
4382
  /**
@@ -4391,12 +4390,18 @@ export interface Site {
4391
4390
  */
4392
4391
  app: string;
4393
4392
  /**
4394
- * 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.
4395
4394
  * @format uri
4396
4395
  */
4397
4396
  published?: string;
4398
4397
  };
4399
4398
  }
4399
+ /** The type of the site */
4400
+ export declare enum SiteType {
4401
+ Basic = "basic",
4402
+ Standard = "standard",
4403
+ Premium = "premium"
4404
+ }
4400
4405
  /**
4401
4406
  * Title of the site
4402
4407
  * @minLength 2
@@ -4452,6 +4457,10 @@ export interface SiteCustomizationSettings {
4452
4457
  /** If true, AI search is enabled */
4453
4458
  enabled: boolean;
4454
4459
  };
4460
+ advancedCustomization: {
4461
+ /** If true, Advanced customization is enabled */
4462
+ enabled: boolean;
4463
+ };
4455
4464
  git: {
4456
4465
  /** Whether the published site should show a link to edit the content on the git provider set up in the Git Sync */
4457
4466
  showEditLink: boolean;
@@ -4558,20 +4567,19 @@ export interface SiteSpaceCustomizationOverrides {
4558
4567
  };
4559
4568
  }
4560
4569
  /**
4570
+ * The visibility setting of the site determines the audience of the site.
4561
4571
  * * `public`: Anyone can access the site, and the site is indexed by search engines.
4562
4572
  * * `unlisted`: Anyone can access the site, and the site is not indexed by search engines
4563
4573
  * * `share-link`: Anyone with a secret token in the url can access the site.
4564
4574
  * * `visitor-auth`: Anyone authenticated through a JWT token can access the site.
4565
- * * `unpublished`: The site is not accessible to anyone.
4566
4575
  */
4567
4576
  export declare enum SiteVisibility {
4568
4577
  Public = "public",
4569
4578
  Unlisted = "unlisted",
4570
4579
  ShareLink = "share-link",
4571
- VisitorAuth = "visitor-auth",
4572
- Unpublished = "unpublished"
4580
+ VisitorAuth = "visitor-auth"
4573
4581
  }
4574
- export declare type SitePublishingAuth = {
4582
+ export declare type SitePublishingAuth = (SpaceVisitorAuthCustomBackend | SpaceVisitorAuthIntegrationBackend) & {
4575
4583
  /** Type of Object, always equals to "publishing-auth" */
4576
4584
  object: 'publishing-auth';
4577
4585
  /** Private key used to sign JWT tokens. */
@@ -4581,7 +4589,12 @@ export declare type SitePublishingAuth = {
4581
4589
  * @format uri
4582
4590
  */
4583
4591
  fallbackURL?: string;
4584
- } & 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
+ };
4585
4598
  export declare type SitePublishingAuthUpdate = (SpaceVisitorAuthCustomBackend | SpaceVisitorAuthIntegrationBackend) & {
4586
4599
  /**
4587
4600
  * A fallback URL that will be used if authentication fails.
@@ -4610,10 +4623,12 @@ export interface SiteSpace {
4610
4623
  space: Space;
4611
4624
  /** Whether this is the default space for the site */
4612
4625
  default?: boolean;
4626
+ /** Whether the space has advanced customization feature enabled */
4627
+ hasAdvancedCustomizationFeature?: boolean;
4613
4628
  /** URLs associated with the object */
4614
4629
  urls: {
4615
4630
  /**
4616
- * 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.
4617
4632
  * @format uri
4618
4633
  */
4619
4634
  published?: string;
@@ -4635,19 +4650,6 @@ export interface SiteSpacePointer {
4635
4650
  /** Unique identifier for the site space */
4636
4651
  siteSpace: string;
4637
4652
  }
4638
- export declare enum SiteSubscriptionStatus {
4639
- Active = "active",
4640
- Inactive = "inactive"
4641
- }
4642
- export declare enum SiteSubscriptionType {
4643
- Basic = "basic",
4644
- Premium = "premium",
4645
- PremiumVa = "premium_va"
4646
- }
4647
- export interface SiteSubscription {
4648
- type: SiteSubscriptionType;
4649
- status: SiteSubscriptionStatus;
4650
- }
4651
4653
  export interface CustomHostname {
4652
4654
  object: 'custom-hostname';
4653
4655
  /** Custom hostname for the site, for e.g. docs.mycompany.com */
@@ -7924,6 +7926,32 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7924
7926
  integration: Integration;
7925
7927
  }[];
7926
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>>;
7927
7955
  /**
7928
7956
  * No description
7929
7957
  *
@@ -8579,11 +8607,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8579
8607
  /** Title of the site */
8580
8608
  title?: SiteTitle;
8581
8609
  /**
8610
+ * The visibility setting of the site determines the audience of the site.
8582
8611
  * * `public`: Anyone can access the site, and the site is indexed by search engines.
8583
8612
  * * `unlisted`: Anyone can access the site, and the site is not indexed by search engines
8584
8613
  * * `share-link`: Anyone with a secret token in the url can access the site.
8585
8614
  * * `visitor-auth`: Anyone authenticated through a JWT token can access the site.
8586
- * * `unpublished`: The site is not accessible to anyone.
8587
8615
  */
8588
8616
  visibility?: SiteVisibility;
8589
8617
  /** ID of spaces to be added to the site */
@@ -8618,11 +8646,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8618
8646
  /** Title of the site */
8619
8647
  title?: SiteTitle;
8620
8648
  /**
8649
+ * The visibility setting of the site determines the audience of the site.
8621
8650
  * * `public`: Anyone can access the site, and the site is indexed by search engines.
8622
8651
  * * `unlisted`: Anyone can access the site, and the site is not indexed by search engines
8623
8652
  * * `share-link`: Anyone with a secret token in the url can access the site.
8624
8653
  * * `visitor-auth`: Anyone authenticated through a JWT token can access the site.
8625
- * * `unpublished`: The site is not accessible to anyone.
8626
8654
  */
8627
8655
  visibility?: SiteVisibility;
8628
8656
  /** Basename for the site. For e.g. api */
@@ -8640,6 +8668,73 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8640
8668
  * @secure
8641
8669
  */
8642
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>>;
8643
8738
  /**
8644
8739
  * No description
8645
8740
  *
@@ -8730,6 +8825,22 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8730
8825
  message: string;
8731
8826
  };
8732
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
+ }>>;
8733
8844
  /**
8734
8845
  * No description
8735
8846
  *
@@ -8760,7 +8871,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8760
8871
  * @request GET:/orgs/{organizationId}/sites/{siteId}/customization
8761
8872
  * @secure
8762
8873
  */
8763
- 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 | {
8764
8881
  error: {
8765
8882
  /** @format int32 */
8766
8883
  code: 400;
@@ -8880,7 +8997,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8880
8997
  * @request GET:/orgs/{organizationId}/sites/{siteId}/spaces/{siteSpaceId}/customization
8881
8998
  * @secure
8882
8999
  */
8883
- 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 | {
8884
9007
  error: {
8885
9008
  /** @format int32 */
8886
9009
  code: 400;
@@ -8962,7 +9085,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8962
9085
  permission: MemberRole;
8963
9086
  user: User;
8964
9087
  /** The content or organization that enforced this permission level. */
8965
- origin: SpacePointer;
9088
+ origin: SpacePointer | OrganizationPointer;
8966
9089
  }[];
8967
9090
  }, Error>>;
8968
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.46.0";
241
+ var version = "0.47.0";
243
242
 
244
243
  // src/client.ts
245
244
  var import_event_iterator = __toESM(require_node(), 1);
@@ -539,6 +538,7 @@ var IntegrationCategory = /* @__PURE__ */ ((IntegrationCategory2) => {
539
538
  IntegrationCategory2["Content"] = "content";
540
539
  IntegrationCategory2["Gitsync"] = "gitsync";
541
540
  IntegrationCategory2["Marketing"] = "marketing";
541
+ IntegrationCategory2["VisitorAuth"] = "visitor-auth";
542
542
  IntegrationCategory2["Other"] = "other";
543
543
  return IntegrationCategory2;
544
544
  })(IntegrationCategory || {});
@@ -568,7 +568,7 @@ var BillingProduct = /* @__PURE__ */ ((BillingProduct2) => {
568
568
  BillingProduct2["Free2024"] = "free_2024";
569
569
  BillingProduct2["Plus2024"] = "plus_2024";
570
570
  BillingProduct2["Pro2024"] = "pro_2024";
571
- BillingProduct2["Enterprise"] = "enterprise";
571
+ BillingProduct2["Enterprise2024"] = "enterprise_2024";
572
572
  BillingProduct2["Free"] = "free";
573
573
  BillingProduct2["Plus"] = "plus";
574
574
  BillingProduct2["Pro"] = "pro";
@@ -576,6 +576,7 @@ var BillingProduct = /* @__PURE__ */ ((BillingProduct2) => {
576
576
  BillingProduct2["Business"] = "business";
577
577
  BillingProduct2["Legacy"] = "legacy";
578
578
  BillingProduct2["Startup"] = "startup";
579
+ BillingProduct2["Enterprise"] = "enterprise";
579
580
  return BillingProduct2;
580
581
  })(BillingProduct || {});
581
582
  var APIIntegrationScope = /* @__PURE__ */ ((APIIntegrationScope2) => {
@@ -705,25 +706,19 @@ var PageFeedbackRating = /* @__PURE__ */ ((PageFeedbackRating2) => {
705
706
  PageFeedbackRating2["Good"] = "good";
706
707
  return PageFeedbackRating2;
707
708
  })(PageFeedbackRating || {});
709
+ var SiteType = /* @__PURE__ */ ((SiteType2) => {
710
+ SiteType2["Basic"] = "basic";
711
+ SiteType2["Standard"] = "standard";
712
+ SiteType2["Premium"] = "premium";
713
+ return SiteType2;
714
+ })(SiteType || {});
708
715
  var SiteVisibility = /* @__PURE__ */ ((SiteVisibility2) => {
709
716
  SiteVisibility2["Public"] = "public";
710
717
  SiteVisibility2["Unlisted"] = "unlisted";
711
718
  SiteVisibility2["ShareLink"] = "share-link";
712
719
  SiteVisibility2["VisitorAuth"] = "visitor-auth";
713
- SiteVisibility2["Unpublished"] = "unpublished";
714
720
  return SiteVisibility2;
715
721
  })(SiteVisibility || {});
716
- var SiteSubscriptionStatus = /* @__PURE__ */ ((SiteSubscriptionStatus2) => {
717
- SiteSubscriptionStatus2["Active"] = "active";
718
- SiteSubscriptionStatus2["Inactive"] = "inactive";
719
- return SiteSubscriptionStatus2;
720
- })(SiteSubscriptionStatus || {});
721
- var SiteSubscriptionType = /* @__PURE__ */ ((SiteSubscriptionType2) => {
722
- SiteSubscriptionType2["Basic"] = "basic";
723
- SiteSubscriptionType2["Premium"] = "premium";
724
- SiteSubscriptionType2["PremiumVa"] = "premium_va";
725
- return SiteSubscriptionType2;
726
- })(SiteSubscriptionType || {});
727
722
  var CustomHostnameDnsStatus = /* @__PURE__ */ ((CustomHostnameDnsStatus2) => {
728
723
  CustomHostnameDnsStatus2["DnsPassed"] = "dns_passed";
729
724
  CustomHostnameDnsStatus2["DnsWrongCname"] = "dns_wrong_cname";
@@ -2480,6 +2475,14 @@ var Api = class extends HttpClient {
2480
2475
  format: "json",
2481
2476
  ...params
2482
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
+ }),
2483
2486
  listOrgExperimentalFeatures: (organizationId, params = {}) => this.request({
2484
2487
  path: `/orgs/${organizationId}/experiments`,
2485
2488
  method: "GET",
@@ -2835,6 +2838,36 @@ var Api = class extends HttpClient {
2835
2838
  secure: true,
2836
2839
  ...params
2837
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
+ }),
2838
2871
  listSiteShareLinks: (organizationId, siteId, query, params = {}) => this.request({
2839
2872
  path: `/orgs/${organizationId}/sites/${siteId}/share-links`,
2840
2873
  method: "GET",
@@ -2883,6 +2916,13 @@ var Api = class extends HttpClient {
2883
2916
  format: "json",
2884
2917
  ...params
2885
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
+ }),
2886
2926
  getSitePublishingPreviewById: (organizationId, siteId, query, params = {}) => this.request({
2887
2927
  path: `/orgs/${organizationId}/sites/${siteId}/publishing/preview`,
2888
2928
  method: "GET",
@@ -2891,9 +2931,10 @@ var Api = class extends HttpClient {
2891
2931
  format: "json",
2892
2932
  ...params
2893
2933
  }),
2894
- getSiteCustomizationById: (organizationId, siteId, params = {}) => this.request({
2934
+ getSiteCustomizationById: (organizationId, siteId, query, params = {}) => this.request({
2895
2935
  path: `/orgs/${organizationId}/sites/${siteId}/customization`,
2896
2936
  method: "GET",
2937
+ query,
2897
2938
  secure: true,
2898
2939
  format: "json",
2899
2940
  ...params
@@ -2954,9 +2995,10 @@ var Api = class extends HttpClient {
2954
2995
  secure: true,
2955
2996
  ...params
2956
2997
  }),
2957
- getSiteSpaceCustomizationById: (organizationId, siteId, siteSpaceId, params = {}) => this.request({
2998
+ getSiteSpaceCustomizationById: (organizationId, siteId, siteSpaceId, query, params = {}) => this.request({
2958
2999
  path: `/orgs/${organizationId}/sites/${siteId}/spaces/${siteSpaceId}/customization`,
2959
3000
  method: "GET",
3001
+ query,
2960
3002
  secure: true,
2961
3003
  format: "json",
2962
3004
  ...params
@@ -3197,8 +3239,7 @@ var GitBookAPI = class extends Api {
3197
3239
  RevisionPageLayoutPreset,
3198
3240
  RevisionPageType,
3199
3241
  RevisionSemanticChangeType,
3200
- SiteSubscriptionStatus,
3201
- SiteSubscriptionType,
3242
+ SiteType,
3202
3243
  SiteVisibility,
3203
3244
  SpaceBlockReason,
3204
3245
  SpaceEditMode,