@gitbook/api 0.111.0 → 0.113.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
@@ -217,12 +217,18 @@ export interface Space {
217
217
  changeRequestsDraft: number;
218
218
  /** The set of permissions for the space */
219
219
  permissions: {
220
+ /** Can the user view the space content. */
221
+ view: boolean;
220
222
  /** Can the user access the space in the application. */
221
223
  access: boolean;
222
224
  /** Can the user edit the title, install integrations, and manage the space. */
223
225
  admin: boolean;
226
+ /** Can the user view the invite links of the space. */
227
+ viewInviteLinks: boolean;
224
228
  /** Can the user edit the content of the space by creating a change request. */
225
229
  edit: boolean;
230
+ /** Can the user trigger a git sync. */
231
+ triggerGitSync: boolean;
226
232
  /** Can the user comment on the content. */
227
233
  comment: boolean;
228
234
  /** Can the user merge change requests. */
@@ -412,6 +418,13 @@ export interface OrganizationTeam {
412
418
  spaces: number;
413
419
  /** Date at which the team was created. */
414
420
  createdAt: Timestamp;
421
+ /** The set of permissions for the team */
422
+ permissions: {
423
+ /** Can the user manage the team */
424
+ admin: boolean;
425
+ /** Can the user view the team and list its members */
426
+ view: boolean;
427
+ };
415
428
  }
416
429
  /**
417
430
  * Name of the icon
@@ -537,6 +550,8 @@ export interface ContentRefSpace {
537
550
  export interface ContentRefReusableContent {
538
551
  kind: 'reusable-content';
539
552
  reusableContent: string;
553
+ /** The space in which the reusable content is defined. If undefined, the reusable content is assumed to be in the same space as the content reference. */
554
+ space?: string;
540
555
  }
541
556
  export interface ContentRefOpenAPI {
542
557
  kind: 'openapi';
@@ -878,6 +893,10 @@ export interface DocumentBlockReusableContent {
878
893
  ref: ContentRefReusableContent;
879
894
  };
880
895
  isVoid: true;
896
+ meta?: {
897
+ /** A content token that can be used to fetch the reusable content from the API. */
898
+ token?: string;
899
+ };
881
900
  }
882
901
  export interface DocumentBlockExpandable {
883
902
  object: 'block';
@@ -1701,10 +1720,22 @@ export interface Organization {
1701
1720
  };
1702
1721
  /** The set of permissions for the organization */
1703
1722
  permissions: {
1723
+ /** Can the user view the organization. */
1724
+ view: boolean;
1704
1725
  /** Can the user manage the title, members, etc. */
1705
1726
  admin: boolean;
1706
- /** Can the user create new spaces/collections in the organization */
1727
+ /** Is the user a team owner. */
1728
+ ownTeam: boolean;
1729
+ /** Can the user view the billing details of the organization. */
1730
+ viewBilling?: boolean;
1731
+ /** Can the user list the members of the organization. */
1732
+ listMembers?: boolean;
1733
+ /** Can the user list the teams in the organization. */
1734
+ listTeams?: boolean;
1735
+ /** Can the user create new spaces/collections in the organization. */
1707
1736
  createContent: boolean;
1737
+ /** Can the user list the integrations in the organization. */
1738
+ listIntegrations?: boolean;
1708
1739
  };
1709
1740
  }
1710
1741
  export interface ContentLocationRevisionContext {
@@ -1789,8 +1820,12 @@ export interface Collection {
1789
1820
  };
1790
1821
  /** The set of permissions for the collection */
1791
1822
  permissions: {
1823
+ /** Can the user view the collection. */
1824
+ view: boolean;
1792
1825
  /** Can the user edit the title/description. */
1793
1826
  admin: boolean;
1827
+ /** Can the user view the invite links of the collection. */
1828
+ viewInviteLinks: boolean;
1794
1829
  /** Can the user create spaces/collections in this collection. */
1795
1830
  create: boolean;
1796
1831
  };
@@ -1853,8 +1888,10 @@ export interface OpenAPISpec {
1853
1888
  lastProcessErrorCode?: OpenAPISpecProcessingErrorCode;
1854
1889
  /** The set of permissions for the OpenAPI specification. */
1855
1890
  permissions: {
1891
+ /** Can the user view the specification. */
1892
+ view: boolean;
1856
1893
  /** Can the user edit the specification. */
1857
- edit?: boolean;
1894
+ edit: boolean;
1858
1895
  };
1859
1896
  /** URLs associated with the object */
1860
1897
  urls: {
@@ -2676,6 +2713,12 @@ export interface CustomField {
2676
2713
  */
2677
2714
  location: string;
2678
2715
  };
2716
+ permissions?: {
2717
+ /** Whether the user can view the object */
2718
+ view: boolean;
2719
+ /** Whether the user can edit the object */
2720
+ edit: boolean;
2721
+ };
2679
2722
  }
2680
2723
  export type CustomFieldValues = {
2681
2724
  /** Custom field */
@@ -3124,6 +3167,168 @@ export type IntegrationSpaceInstallation = IntegrationContentInstallationBase &
3124
3167
  /** The space the integration is installed on. Using the string value is deprecated in favor of space.id */
3125
3168
  space: string | Space;
3126
3169
  };
3170
+ /** The type of the site */
3171
+ export declare enum SiteType {
3172
+ Basic = "basic",
3173
+ Premium = "premium",
3174
+ Ultimate = "ultimate",
3175
+ Sponsored = "sponsored",
3176
+ LegacyBasic = "legacy-basic",
3177
+ LegacyPremium = "legacy-premium"
3178
+ }
3179
+ /**
3180
+ * Title of the site
3181
+ * @minLength 2
3182
+ * @maxLength 128
3183
+ */
3184
+ export type SiteTitle = string;
3185
+ /**
3186
+ * Custom hostname for the site, for e.g. docs.mycompany.com
3187
+ * @maxLength 512
3188
+ * @pattern ^([a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?[.]){2,}[a-z0-9][a-z0-9-]{0,61}[a-z0-9]$
3189
+ */
3190
+ export type SiteHostname = string;
3191
+ /**
3192
+ * Basename for the site. For e.g. api
3193
+ * @minLength 1
3194
+ * @maxLength 100
3195
+ */
3196
+ export type SiteBasename = string;
3197
+ /**
3198
+ * Proxy URL for the site, for e.g. company.com/docs or www.company.com/developer/docs etc.
3199
+ * @maxLength 512
3200
+ * @pattern ^([\w-]+\.)*[\w-]+\.[a-zA-Z]{2,}(\/[\w-]+)+$
3201
+ */
3202
+ export type SiteProxyOrigin = string;
3203
+ export interface SiteProxy {
3204
+ /** Proxy URL for the site, for e.g. company.com/docs or www.company.com/developer/docs etc. */
3205
+ origin: SiteProxyOrigin;
3206
+ /** The target URL to which the requests at the origin URL should be proxied to. */
3207
+ target: string;
3208
+ }
3209
+ /**
3210
+ * The visibility setting of the site determines the audience of the site.
3211
+ * * `public`: Anyone can access the site, and the site is indexed by search engines.
3212
+ * * `unlisted`: Anyone can access the site, and the site is not indexed by search engines
3213
+ * * `share-link`: Anyone with a secret token in the url can access the site.
3214
+ * * `visitor-auth`: Anyone authenticated through a JWT token can access the site.
3215
+ */
3216
+ export declare enum SiteVisibility {
3217
+ Public = "public",
3218
+ Unlisted = "unlisted",
3219
+ ShareLink = "share-link",
3220
+ VisitorAuth = "visitor-auth"
3221
+ }
3222
+ export interface SiteAdaptiveContent {
3223
+ /** Whether adaptive content should be enabled on the site. */
3224
+ enabled: boolean;
3225
+ }
3226
+ /** Topic of the content */
3227
+ export declare enum SiteAdsTopic {
3228
+ Webdev = "webdev",
3229
+ Crypto = "crypto"
3230
+ }
3231
+ export type SiteAds = {
3232
+ status: 'pending';
3233
+ /** True if the user can submit the site for review. */
3234
+ submittable: boolean;
3235
+ } | {
3236
+ status: 'in-review';
3237
+ /** Topic of the content */
3238
+ topic: SiteAdsTopic;
3239
+ } | {
3240
+ status: 'rejected';
3241
+ /** Reason for the rejection */
3242
+ reason?: string;
3243
+ } | {
3244
+ status: 'live' | 'disabled';
3245
+ /** Topic of the content */
3246
+ topic: SiteAdsTopic;
3247
+ /** The ad network zone ID */
3248
+ zoneId: string;
3249
+ };
3250
+ /** A list of all premium customizations. */
3251
+ export declare enum SiteCustomizationFeature {
3252
+ HeaderLogo = "header-logo",
3253
+ ThemePreset = "theme-preset",
3254
+ PremiumFonts = "premium-fonts",
3255
+ CustomIcons = "custom-icons",
3256
+ FooterLogo = "footer-logo",
3257
+ FooterLinks = "footer-links",
3258
+ FooterCopyright = "footer-copyright",
3259
+ SemanticColors = "semantic-colors"
3260
+ }
3261
+ /** A site feature and the plan it is available on. */
3262
+ export type SiteFeature = {
3263
+ /** The feature identifier, matching the feature table keys in the pricing definition */
3264
+ id: 'sites-sections' | 'sites-visitor-authentication' | 'sites-adaptive-content' | 'sites-redirects' | 'sites-custom-domain' | 'sites-ai-search' | 'sites-pdf-export' | 'sites-page-feedback' | 'sites-unlisted-visibility' | 'sites-share-links' | 'sites-custom-fonts';
3265
+ /** The type of the site */
3266
+ plan: SiteType;
3267
+ /** A frozen feature is still enabled but cannot be changed or modified. */
3268
+ frozen: boolean;
3269
+ } | {
3270
+ /** The feature identifier, always set to `sites-advanced-customization` */
3271
+ id: 'sites-advanced-customization';
3272
+ /** The type of the site */
3273
+ plan: SiteType;
3274
+ /** A frozen feature is still enabled but cannot be changed or modified. */
3275
+ frozen: boolean;
3276
+ /** A list of the actual advanced customizations used */
3277
+ customizations: SiteCustomizationFeature[];
3278
+ };
3279
+ export interface Site {
3280
+ object: 'site';
3281
+ /** Unique identifier of the site */
3282
+ id: string;
3283
+ /** The type of the site */
3284
+ type: SiteType;
3285
+ /** Title of the site */
3286
+ title: SiteTitle;
3287
+ /** Custom hostname for the site, for e.g. docs.mycompany.com */
3288
+ hostname?: SiteHostname;
3289
+ /** Basename for the site. For e.g. api */
3290
+ basename?: SiteBasename;
3291
+ proxy?: SiteProxy;
3292
+ /**
3293
+ * The visibility setting of the site determines the audience of the site.
3294
+ * * `public`: Anyone can access the site, and the site is indexed by search engines.
3295
+ * * `unlisted`: Anyone can access the site, and the site is not indexed by search engines
3296
+ * * `share-link`: Anyone with a secret token in the url can access the site.
3297
+ * * `visitor-auth`: Anyone authenticated through a JWT token can access the site.
3298
+ */
3299
+ visibility: SiteVisibility;
3300
+ /** Whether the site is live or not. If true, the site is accessible to the audience defined by the visibility setting. */
3301
+ published: boolean;
3302
+ siteSpaces: number;
3303
+ /** @format date-time */
3304
+ createdAt: string;
3305
+ adaptiveContent?: SiteAdaptiveContent;
3306
+ ads?: SiteAds;
3307
+ /** A list of all premium features enabled on this site. For each feature we list the plan they belong to and whether the feature is frozen. A frozen feature is still enabled but cannot be changed or modified. */
3308
+ features: SiteFeature[];
3309
+ /** URLs associated with the object */
3310
+ urls: {
3311
+ /**
3312
+ * URL of the site in the API
3313
+ * @format uri
3314
+ */
3315
+ location: string;
3316
+ /**
3317
+ * URL of the site in the application
3318
+ * @format uri
3319
+ */
3320
+ app: string;
3321
+ /**
3322
+ * URL of the published version of the site. Only defined when site is published.
3323
+ * @format uri
3324
+ */
3325
+ published?: string;
3326
+ };
3327
+ }
3328
+ export type IntegrationSiteInstallation = IntegrationContentInstallationBase & {
3329
+ /** The site the integration is installed on. Using the string value is deprecated in favor of site.id */
3330
+ site: string | Site;
3331
+ };
3127
3332
  export declare enum ContentKitIcon {
3128
3333
  Close = "close",
3129
3334
  Edit = "edit",
@@ -3139,7 +3344,9 @@ export declare enum ContentKitIcon {
3139
3344
  Link = "link",
3140
3345
  LinkExternal = "link-external",
3141
3346
  Eye = "eye",
3142
- Lock = "lock"
3347
+ Lock = "lock",
3348
+ Check = "check",
3349
+ CheckCircle = "check-circle"
3143
3350
  }
3144
3351
  /** A confirm object that defines an optional confirmation dialog after the input is clicked. */
3145
3352
  export interface ContentKitConfirm {
@@ -3494,168 +3701,6 @@ export interface UpdateIntegrationSpaceInstallation {
3494
3701
  /** Configuration of the integration at the account level */
3495
3702
  configuration?: IntegrationInstallationConfiguration;
3496
3703
  }
3497
- /** The type of the site */
3498
- export declare enum SiteType {
3499
- Basic = "basic",
3500
- Premium = "premium",
3501
- Ultimate = "ultimate",
3502
- Sponsored = "sponsored",
3503
- LegacyBasic = "legacy-basic",
3504
- LegacyPremium = "legacy-premium"
3505
- }
3506
- /**
3507
- * Title of the site
3508
- * @minLength 2
3509
- * @maxLength 128
3510
- */
3511
- export type SiteTitle = string;
3512
- /**
3513
- * Custom hostname for the site, for e.g. docs.mycompany.com
3514
- * @maxLength 512
3515
- * @pattern ^([a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?[.]){2,}[a-z0-9][a-z0-9-]{0,61}[a-z0-9]$
3516
- */
3517
- export type SiteHostname = string;
3518
- /**
3519
- * Basename for the site. For e.g. api
3520
- * @minLength 1
3521
- * @maxLength 100
3522
- */
3523
- export type SiteBasename = string;
3524
- /**
3525
- * Proxy URL for the site, for e.g. company.com/docs or www.company.com/developer/docs etc.
3526
- * @maxLength 512
3527
- * @pattern ^([\w-]+\.)*[\w-]+\.[a-zA-Z]{2,}(\/[\w-]+)+$
3528
- */
3529
- export type SiteProxyOrigin = string;
3530
- export interface SiteProxy {
3531
- /** Proxy URL for the site, for e.g. company.com/docs or www.company.com/developer/docs etc. */
3532
- origin: SiteProxyOrigin;
3533
- /** The target URL to which the requests at the origin URL should be proxied to. */
3534
- target: string;
3535
- }
3536
- /**
3537
- * The visibility setting of the site determines the audience of the site.
3538
- * * `public`: Anyone can access the site, and the site is indexed by search engines.
3539
- * * `unlisted`: Anyone can access the site, and the site is not indexed by search engines
3540
- * * `share-link`: Anyone with a secret token in the url can access the site.
3541
- * * `visitor-auth`: Anyone authenticated through a JWT token can access the site.
3542
- */
3543
- export declare enum SiteVisibility {
3544
- Public = "public",
3545
- Unlisted = "unlisted",
3546
- ShareLink = "share-link",
3547
- VisitorAuth = "visitor-auth"
3548
- }
3549
- export interface SiteAdaptiveContent {
3550
- /** Whether adaptive content should be enabled on the site. */
3551
- enabled: boolean;
3552
- }
3553
- /** Topic of the content */
3554
- export declare enum SiteAdsTopic {
3555
- Webdev = "webdev",
3556
- Crypto = "crypto"
3557
- }
3558
- export type SiteAds = {
3559
- status: 'pending';
3560
- /** True if the user can submit the site for review. */
3561
- submittable: boolean;
3562
- } | {
3563
- status: 'in-review';
3564
- /** Topic of the content */
3565
- topic: SiteAdsTopic;
3566
- } | {
3567
- status: 'rejected';
3568
- /** Reason for the rejection */
3569
- reason?: string;
3570
- } | {
3571
- status: 'live' | 'disabled';
3572
- /** Topic of the content */
3573
- topic: SiteAdsTopic;
3574
- /** The ad network zone ID */
3575
- zoneId: string;
3576
- };
3577
- /** A list of all premium customizations. */
3578
- export declare enum SiteCustomizationFeature {
3579
- HeaderLogo = "header-logo",
3580
- ThemePreset = "theme-preset",
3581
- PremiumFonts = "premium-fonts",
3582
- CustomIcons = "custom-icons",
3583
- FooterLogo = "footer-logo",
3584
- FooterLinks = "footer-links",
3585
- FooterCopyright = "footer-copyright",
3586
- SemanticColors = "semantic-colors"
3587
- }
3588
- /** A site feature and the plan it is available on. */
3589
- export type SiteFeature = {
3590
- /** The feature identifier, matching the feature table keys in the pricing definition */
3591
- id: 'sites-sections' | 'sites-visitor-authentication' | 'sites-adaptive-content' | 'sites-redirects' | 'sites-custom-domain' | 'sites-ai-search' | 'sites-pdf-export' | 'sites-page-feedback' | 'sites-unlisted-visibility' | 'sites-share-links' | 'sites-custom-fonts';
3592
- /** The type of the site */
3593
- plan: SiteType;
3594
- /** A frozen feature is still enabled but cannot be changed or modified. */
3595
- frozen: boolean;
3596
- } | {
3597
- /** The feature identifier, always set to `sites-advanced-customization` */
3598
- id: 'sites-advanced-customization';
3599
- /** The type of the site */
3600
- plan: SiteType;
3601
- /** A frozen feature is still enabled but cannot be changed or modified. */
3602
- frozen: boolean;
3603
- /** A list of the actual advanced customizations used */
3604
- customizations: SiteCustomizationFeature[];
3605
- };
3606
- export interface Site {
3607
- object: 'site';
3608
- /** Unique identifier of the site */
3609
- id: string;
3610
- /** The type of the site */
3611
- type: SiteType;
3612
- /** Title of the site */
3613
- title: SiteTitle;
3614
- /** Custom hostname for the site, for e.g. docs.mycompany.com */
3615
- hostname?: SiteHostname;
3616
- /** Basename for the site. For e.g. api */
3617
- basename?: SiteBasename;
3618
- proxy?: SiteProxy;
3619
- /**
3620
- * The visibility setting of the site determines the audience of the site.
3621
- * * `public`: Anyone can access the site, and the site is indexed by search engines.
3622
- * * `unlisted`: Anyone can access the site, and the site is not indexed by search engines
3623
- * * `share-link`: Anyone with a secret token in the url can access the site.
3624
- * * `visitor-auth`: Anyone authenticated through a JWT token can access the site.
3625
- */
3626
- visibility: SiteVisibility;
3627
- /** Whether the site is live or not. If true, the site is accessible to the audience defined by the visibility setting. */
3628
- published: boolean;
3629
- siteSpaces: number;
3630
- /** @format date-time */
3631
- createdAt: string;
3632
- adaptiveContent?: SiteAdaptiveContent;
3633
- ads?: SiteAds;
3634
- /** A list of all premium features enabled on this site. For each feature we list the plan they belong to and whether the feature is frozen. A frozen feature is still enabled but cannot be changed or modified. */
3635
- features: SiteFeature[];
3636
- /** URLs associated with the object */
3637
- urls: {
3638
- /**
3639
- * URL of the site in the API
3640
- * @format uri
3641
- */
3642
- location: string;
3643
- /**
3644
- * URL of the site in the application
3645
- * @format uri
3646
- */
3647
- app: string;
3648
- /**
3649
- * URL of the published version of the site. Only defined when site is published.
3650
- * @format uri
3651
- */
3652
- published?: string;
3653
- };
3654
- }
3655
- export type IntegrationSiteInstallation = IntegrationContentInstallationBase & {
3656
- /** The site the integration is installed on. Using the string value is deprecated in favor of site.id */
3657
- site: string | Site;
3658
- };
3659
3704
  export interface UpdateIntegrationSiteInstallation {
3660
3705
  /** External IDs assigned by the integration. */
3661
3706
  externalIds?: IntegrationInstallationExternalIds;
@@ -3851,6 +3896,11 @@ export interface OrganizationTeamMember {
3851
3896
  organization: OrganizationMember;
3852
3897
  /** User information as a team member */
3853
3898
  team: TeamMember;
3899
+ /** The set of permissions for the team member */
3900
+ permissions: {
3901
+ /** Can the user view the team member */
3902
+ view: boolean;
3903
+ };
3854
3904
  }
3855
3905
  export interface UpdateMembersInOrganizationTeam {
3856
3906
  add?: string[];
@@ -4187,6 +4237,11 @@ export interface OrganizationUsage {
4187
4237
  members: OrganizationUsageMembers;
4188
4238
  /** Team members usage metrics of an organization */
4189
4239
  teamMembers: OrganizationUsageTeamMembers;
4240
+ /** The set of permissions for the organization's usage. */
4241
+ permissions: {
4242
+ /** Can the user view the organization's usage. */
4243
+ view: boolean;
4244
+ };
4190
4245
  }
4191
4246
  export interface SearchAIQuery {
4192
4247
  query: string;
@@ -4255,8 +4310,6 @@ export interface OpenAPISpecVersion {
4255
4310
  urls: {
4256
4311
  /** URL of the OpenAPI specification version in the API */
4257
4312
  location: URL;
4258
- /** URL of the OpenAPI specification version in the application */
4259
- app: URL;
4260
4313
  };
4261
4314
  }
4262
4315
  /** Content of the specification available through filesystem or public URL. */
@@ -4283,6 +4336,8 @@ export interface TranslationSettings {
4283
4336
  /** @format date-time */
4284
4337
  updatedAt: string;
4285
4338
  permissions: {
4339
+ /** Whether the user can view the object */
4340
+ view: boolean;
4286
4341
  /** Whether the user can edit the object */
4287
4342
  edit: boolean;
4288
4343
  };
@@ -4357,7 +4412,7 @@ export interface FontFace {
4357
4412
  sources: FontSource[];
4358
4413
  }
4359
4414
  /** Defines a font family along with its various font-face declarations for use in CSS '@font-face' rules. */
4360
- export interface CustomizationFontDefinition {
4415
+ export interface CustomizationFontDefinitionInput {
4361
4416
  /** A globally unique identifier for the font definition. */
4362
4417
  id: string;
4363
4418
  /** Whether the font is a custom font. If false, this font is provided by GitBook. */
@@ -4370,6 +4425,13 @@ export interface CustomizationFontDefinition {
4370
4425
  */
4371
4426
  fontFaces: FontFace[];
4372
4427
  }
4428
+ export type CustomizationFontDefinition = CustomizationFontDefinitionInput & {
4429
+ /** The set of permissions for the font definition */
4430
+ permissions: {
4431
+ /** Can the user edit the font definition */
4432
+ edit: boolean;
4433
+ };
4434
+ };
4373
4435
  /**
4374
4436
  * The path of the file in the storage bucket
4375
4437
  * @minLength 1
@@ -4489,7 +4551,7 @@ export declare enum CustomizationDefaultFont {
4489
4551
  Poppins = "Poppins",
4490
4552
  FiraSans = "FiraSans"
4491
4553
  }
4492
- export type CustomizationFont = CustomizationDefaultFont | CustomizationFontDefinition;
4554
+ export type CustomizationFont = CustomizationDefaultFont | CustomizationFontDefinitionInput;
4493
4555
  /**
4494
4556
  * The background style has been deprecated and will be removed in a future release. Use the `tint` settings instead.
4495
4557
  * @deprecated
@@ -8900,6 +8962,34 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8900
8962
  }, params?: RequestParams) => Promise<HttpResponse<List & {
8901
8963
  items: IntegrationSpaceInstallation[];
8902
8964
  }, any>>;
8965
+ /**
8966
+ * No description
8967
+ *
8968
+ * @tags integrations
8969
+ * @name ListIntegrationSiteInstallations
8970
+ * @summary List all integration site installations
8971
+ * @request GET:/integrations/{integrationName}/sites
8972
+ * @secure
8973
+ */
8974
+ listIntegrationSiteInstallations: (integrationName: string, query?: {
8975
+ /** Identifier of the page results to fetch. */
8976
+ page?: string;
8977
+ /**
8978
+ * The number of results per page
8979
+ * @min 0
8980
+ * @max 1000
8981
+ */
8982
+ limit?: number;
8983
+ /** External ID to filter by */
8984
+ externalId?: string;
8985
+ /**
8986
+ * If true, returns the site object in each items. If false, returns the site ID in each items.
8987
+ * @default false
8988
+ */
8989
+ extended?: boolean;
8990
+ }, params?: RequestParams) => Promise<HttpResponse<List & {
8991
+ items: IntegrationSiteInstallation[];
8992
+ }, any>>;
8903
8993
  /**
8904
8994
  * No description
8905
8995
  *
package/dist/index.cjs CHANGED
@@ -269,7 +269,7 @@ module.exports = __toCommonJS(src_exports);
269
269
 
270
270
  // package.json
271
271
  var name = "@gitbook/api";
272
- var version = "0.111.0";
272
+ var version = "0.113.0";
273
273
 
274
274
  // src/client.ts
275
275
  var import_event_iterator = __toESM(require_node(), 1);
@@ -656,24 +656,6 @@ var IntegrationInstallationSiteSelection = /* @__PURE__ */ ((IntegrationInstalla
656
656
  IntegrationInstallationSiteSelection2["Selected"] = "selected";
657
657
  return IntegrationInstallationSiteSelection2;
658
658
  })(IntegrationInstallationSiteSelection || {});
659
- var ContentKitIcon = /* @__PURE__ */ ((ContentKitIcon2) => {
660
- ContentKitIcon2["Close"] = "close";
661
- ContentKitIcon2["Edit"] = "edit";
662
- ContentKitIcon2["Github"] = "github";
663
- ContentKitIcon2["Gitlab"] = "gitlab";
664
- ContentKitIcon2["Maximize"] = "maximize";
665
- ContentKitIcon2["Email"] = "email";
666
- ContentKitIcon2["Settings"] = "settings";
667
- ContentKitIcon2["Search"] = "search";
668
- ContentKitIcon2["Delete"] = "delete";
669
- ContentKitIcon2["Star"] = "star";
670
- ContentKitIcon2["Warning"] = "warning";
671
- ContentKitIcon2["Link"] = "link";
672
- ContentKitIcon2["LinkExternal"] = "link-external";
673
- ContentKitIcon2["Eye"] = "eye";
674
- ContentKitIcon2["Lock"] = "lock";
675
- return ContentKitIcon2;
676
- })(ContentKitIcon || {});
677
659
  var SiteType = /* @__PURE__ */ ((SiteType2) => {
678
660
  SiteType2["Basic"] = "basic";
679
661
  SiteType2["Premium"] = "premium";
@@ -706,6 +688,26 @@ var SiteCustomizationFeature = /* @__PURE__ */ ((SiteCustomizationFeature2) => {
706
688
  SiteCustomizationFeature2["SemanticColors"] = "semantic-colors";
707
689
  return SiteCustomizationFeature2;
708
690
  })(SiteCustomizationFeature || {});
691
+ var ContentKitIcon = /* @__PURE__ */ ((ContentKitIcon2) => {
692
+ ContentKitIcon2["Close"] = "close";
693
+ ContentKitIcon2["Edit"] = "edit";
694
+ ContentKitIcon2["Github"] = "github";
695
+ ContentKitIcon2["Gitlab"] = "gitlab";
696
+ ContentKitIcon2["Maximize"] = "maximize";
697
+ ContentKitIcon2["Email"] = "email";
698
+ ContentKitIcon2["Settings"] = "settings";
699
+ ContentKitIcon2["Search"] = "search";
700
+ ContentKitIcon2["Delete"] = "delete";
701
+ ContentKitIcon2["Star"] = "star";
702
+ ContentKitIcon2["Warning"] = "warning";
703
+ ContentKitIcon2["Link"] = "link";
704
+ ContentKitIcon2["LinkExternal"] = "link-external";
705
+ ContentKitIcon2["Eye"] = "eye";
706
+ ContentKitIcon2["Lock"] = "lock";
707
+ ContentKitIcon2["Check"] = "check";
708
+ ContentKitIcon2["CheckCircle"] = "check-circle";
709
+ return ContentKitIcon2;
710
+ })(ContentKitIcon || {});
709
711
  var TeamMemberRole = /* @__PURE__ */ ((TeamMemberRole2) => {
710
712
  TeamMemberRole2["Owner"] = "owner";
711
713
  TeamMemberRole2["Member"] = "member";
@@ -2190,6 +2192,14 @@ var Api = class extends HttpClient {
2190
2192
  format: "json",
2191
2193
  ...params
2192
2194
  }),
2195
+ listIntegrationSiteInstallations: (integrationName, query, params = {}) => this.request({
2196
+ path: `/integrations/${integrationName}/sites`,
2197
+ method: "GET",
2198
+ query,
2199
+ secure: true,
2200
+ format: "json",
2201
+ ...params
2202
+ }),
2193
2203
  setIntegrationDevelopmentMode: (integrationName, data, params = {}) => this.request({
2194
2204
  path: `/integrations/${integrationName}/dev`,
2195
2205
  method: "PUT",