@gitbook/api 0.183.0 → 0.184.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
@@ -82,11 +82,6 @@ export declare enum RevisionSemanticChangeType {
82
82
  export declare enum GitBookUsers {
83
83
  GitbookAgent = "gitbook:agent"
84
84
  }
85
- /** Which side should be treated as the source of truth when Git Sync is configured. */
86
- export declare enum GitSyncInstallationPriority {
87
- Git = "git",
88
- Gitbook = "gitbook"
89
- }
90
85
  /** The provider of the Git Sync installation. */
91
86
  export declare enum GitSyncInstallationProvider {
92
87
  Github = "github",
@@ -416,6 +411,15 @@ export declare enum SiteExternalLinksTarget {
416
411
  Self = "self",
417
412
  Blank = "blank"
418
413
  }
414
+ /** Type of a built-in page action that can be displayed in the page actions menu of a published page. */
415
+ export declare enum CustomizationPageActionType {
416
+ Assistant = "assistant",
417
+ ExternalAi = "external-ai",
418
+ Markdown = "markdown",
419
+ Mcp = "mcp",
420
+ Git = "git",
421
+ Pdf = "pdf"
422
+ }
419
423
  export declare enum CustomizationAIMode {
420
424
  None = "none",
421
425
  Search = "search",
@@ -624,6 +628,11 @@ export declare enum CustomizationTheme {
624
628
  Bold = "bold",
625
629
  Gradient = "gradient"
626
630
  }
631
+ /** Which side should be treated as the source of truth when Git Sync is configured. */
632
+ export declare enum GitSyncInstallationPriority {
633
+ Git = "git",
634
+ Gitbook = "gitbook"
635
+ }
627
636
  export declare enum StorageUploadKind {
628
637
  CustomizationFont = "customization_font",
629
638
  ImportFile = "import_file"
@@ -1090,18 +1099,6 @@ export declare enum ContentVisibility {
1090
1099
  export type APIChannelData = APIChannelGitSyncOperationData | APIChannelSpaceContentRefsData | APIChannelChangeRequestContentRefsData | APIChannelTranslationRunData | APIChannelImportRunData | APIChannelMutationData;
1091
1100
  /** Channel to subscribe to for realtime updates. */
1092
1101
  export type APIChannel = APIChannelSpaceInfo | APIChannelSpaceContent | APIChannelSpaceGitInfo | APIChannelSpacePublishingAuth | APIChannelSpacePublishingCustomization | APIChannelSpaceContentRefs | APIChannelSpaceIntegrations | APIChannelUserAPITokens | APIChannelUserOrganizations | APIChannelUserProfile | APIChannelChangeRequest | APIChannelChangeRequests | APIChannelChangeRequestReviews | APIChannelChangeRequestContentRefs | APIChannelCollection | APIChannelCollectionPublishingCustomization | APIChannelOrganizationInfo | APIChannelOrganizationAgentData | APIChannelOrganizationInviteLinks | APIChannelOrganizationMembers | APIChannelOrganizationMember | APIChannelOrganizationSAML | APIChannelOrganizationTeams | APIChannelOrganizationTeam | APIChannelOrganizationTeamMembers | APIChannelOrganizationTeamMember | APIChannelOrganizationSpaces | APIChannelOrganizationCollections | APIChannelOrganizationIntegrations | APIChannelOrganizationInstallations | APIChannelOrganizationSites | APIChannelOrganizationOpenAPISpecs | APIChannelOrganizationTranslations | APIChannelOrganizationTranslationsGlossary | APIChannelOrganizationCustomFonts | APIChannelOrganizationAgentInstructions | APIChannelOrganizationChangeRequests | APIChannelSpaceComments | APIChannelChangeRequestComments | APIChannelCommentInfo | APIChannelCommentReplies | APIChannelIntegration | APIChannelIntegrationInstallation | APIChannelIntegrationSpaceInstallation | APIChannelIntegrationSpaceInstallations | APIChannelIntegrationSiteInstallation | APIChannelIntegrationSiteInstallations | APIChannelPublishedContentSite | APIChannelSiteRedirects | APIChannelSite | APIChannelSiteChannels | APIChannelSiteContext | APIChannelSiteCustomization | APIChannelSiteAgentSettings | APIChannelSiteIntegrations | APIChannelSiteSpace | APIChannelSiteSpaceCustomization | APIChannelSiteStructure | APIChannelSiteAdaptiveSchema | APIChannelSitePublishingAuth | APIChannelSiteShareLinks | APIChannelSiteShareLink | APIChannelSiteMcpServers | APIChannelSiteMcpServer | APIChannelSiteSection | APIChannelCustomHostname | APIChannelGitSyncInstallation | APIChannelGitSyncOperation | APIChannelOpenAPISpec | APIChannelSubdomain | APIChannelTranslation | APIChannelTranslationRun | APIChannelImportRun;
1093
- /** Resource targeted by a Git Sync installation. */
1094
- export type GitSyncInstallationTarget = {
1095
- /** Type of resource targeted by the Git Sync installation. */
1096
- type: "space";
1097
- /** Unique identifier of the space targeted by the Git Sync installation. */
1098
- spaceId: string;
1099
- } | {
1100
- /** Type of resource targeted by the Git Sync installation. */
1101
- type: "site";
1102
- /** Unique identifier of the site targeted by the Git Sync installation. */
1103
- siteId: string;
1104
- };
1105
1102
  export type PublishedContentRedirect = {
1106
1103
  /** Type of target for the redirect */
1107
1104
  target: "application" | "content";
@@ -1116,6 +1113,18 @@ export type PublishedContentRedirect = {
1116
1113
  /** Result of a search */
1117
1114
  export type AIToolCallSearchResult = AIToolCallSearchResultPage | AIToolCallSearchResultRecord;
1118
1115
  export type SiteQuestionAnswerSource = SiteQuestionAnswerSourcePage | SiteQuestionAnswerSourceRecord;
1116
+ /** Resource targeted by a Git Sync installation. */
1117
+ export type GitSyncInstallationTarget = {
1118
+ /** Type of resource targeted by the Git Sync installation. */
1119
+ type: "space";
1120
+ /** Unique identifier of the space targeted by the Git Sync installation. */
1121
+ spaceId: string;
1122
+ } | {
1123
+ /** Type of resource targeted by the Git Sync installation. */
1124
+ type: "site";
1125
+ /** Unique identifier of the site targeted by the Git Sync installation. */
1126
+ siteId: string;
1127
+ };
1119
1128
  export type SearchAIAnswerSource = SearchAIAnswerSourcePage | SearchAIAnswerSourceRecord;
1120
1129
  /** Element used as root */
1121
1130
  export type ContentKitRootElement = ContentKitBlock | ContentKitModal | ContentKitConfiguration;
@@ -2291,6 +2300,8 @@ export interface DocumentBlockOpenAPIOperation {
2291
2300
  key?: string;
2292
2301
  data: OpenAPIOperationPointer & {
2293
2302
  ref: ContentRefOpenAPI;
2303
+ /** When true, the block omits its own title and description; the page renders them instead. Set by the computed one-operation-per-page layout; not intended to be set manually. */
2304
+ headless?: boolean;
2294
2305
  };
2295
2306
  isVoid: true;
2296
2307
  meta?: {
@@ -2336,6 +2347,8 @@ export interface DocumentBlockOpenAPIWebhook {
2336
2347
  key?: string;
2337
2348
  data: OpenAPIWebhookPointer & {
2338
2349
  ref: ContentRefOpenAPI;
2350
+ /** When true, the block omits its own title and description; the page renders them instead. Set by the computed one-operation-per-page layout; not intended to be set manually. */
2351
+ headless?: boolean;
2339
2352
  };
2340
2353
  isVoid: true;
2341
2354
  meta?: {
@@ -2551,6 +2564,8 @@ export type ComputedContentSourceRevisionOpenAPI = ComputedContentSourceOpenAPIB
2551
2564
  models: boolean;
2552
2565
  /** Whether to show a link to download the OpenAPI spec. */
2553
2566
  downloadLink?: boolean;
2567
+ /** How GitBook will group generated pages. "by-tag" groups operations under their tag; "by-operation" creates a separate page per operation. Defaults to "by-tag" when absent. */
2568
+ grouping?: "by-tag" | "by-operation";
2554
2569
  };
2555
2570
  };
2556
2571
  export interface TranslationRef {
@@ -2686,6 +2701,16 @@ export type ComputedContentSourceDocumentOpenAPI = ComputedContentSourceOpenAPIB
2686
2701
  doc: "operations" | "info";
2687
2702
  /** @minLength 1 */
2688
2703
  page: string;
2704
+ } | {
2705
+ doc: "operation";
2706
+ /** @minLength 1 */
2707
+ page: string;
2708
+ method: "get" | "post" | "put" | "delete" | "patch" | "options" | "head" | "trace" | "hook";
2709
+ deprecated?: boolean;
2710
+ } | {
2711
+ doc: "tag";
2712
+ /** @minLength 1 */
2713
+ page: string;
2689
2714
  };
2690
2715
  };
2691
2716
  /** Parameters for a document translation computed content source */
@@ -3917,6 +3942,11 @@ export interface Integration {
3917
3942
  * @format uri
3918
3943
  */
3919
3944
  publicEndpoint: string;
3945
+ /**
3946
+ * Public endpoint serving the integration's rendered content (e.g. WebFrames), isolated from the cookie-bearing publicEndpoint origin. Equals publicEndpoint when no separate content origin is configured.
3947
+ * @format uri
3948
+ */
3949
+ publicContentEndpoint: string;
3920
3950
  };
3921
3951
  /** The set of permissions for the integration */
3922
3952
  permissions: {
@@ -4026,6 +4056,11 @@ export interface IntegrationInstallation {
4026
4056
  * @format uri
4027
4057
  */
4028
4058
  publicEndpoint: string;
4059
+ /**
4060
+ * Public endpoint serving the integration's rendered content (e.g. WebFrames), isolated from the cookie-bearing publicEndpoint origin. Equals publicEndpoint when no separate content origin is configured.
4061
+ * @format uri
4062
+ */
4063
+ publicContentEndpoint: string;
4029
4064
  };
4030
4065
  /** External IDs assigned by the integration. */
4031
4066
  externalIds: IntegrationInstallationExternalIds;
@@ -4390,6 +4425,11 @@ export interface IntegrationContentInstallationBase {
4390
4425
  * @format uri
4391
4426
  */
4392
4427
  publicEndpoint: string;
4428
+ /**
4429
+ * Public endpoint serving the integration's rendered content (e.g. WebFrames), isolated from the cookie-bearing publicEndpoint origin. Equals publicEndpoint when no separate content origin is configured.
4430
+ * @format uri
4431
+ */
4432
+ publicContentEndpoint: string;
4393
4433
  };
4394
4434
  }
4395
4435
  export type IntegrationSpaceInstallation = IntegrationContentInstallationBase & {
@@ -5810,6 +5850,74 @@ export type SitePublishOperationPreviewResponse = {
5810
5850
  type: "checkout";
5811
5851
  invoice?: BillingInvoicePreview;
5812
5852
  };
5853
+ /** Common setup fields for a Git Sync installation. */
5854
+ export interface GitSyncInstallationSetupCommon {
5855
+ /** Optional directory used when syncing a monorepo subdirectory. */
5856
+ projectDirectory?: string;
5857
+ /** Optional template used when generating commit messages. */
5858
+ commitMessageTemplate?: string;
5859
+ /**
5860
+ * Whether previews should be generated from branches outside the configured branch.
5861
+ * @default false
5862
+ */
5863
+ previewExternalBranches?: boolean;
5864
+ /** Which side should be treated as the source of truth when Git Sync is configured. */
5865
+ priority?: GitSyncInstallationPriority;
5866
+ }
5867
+ /** GitHub provider configuration for a Git Sync installation. */
5868
+ export interface GitSyncInstallationSetupGitHub {
5869
+ provider: "github";
5870
+ /** GitHub specific configuration for the Git Sync installation. */
5871
+ providerConfiguration: {
5872
+ /** GitHub repository identifier. */
5873
+ repositoryId?: number;
5874
+ /**
5875
+ * GitHub repository branch ref.
5876
+ * @pattern ^refs/heads/.+$
5877
+ */
5878
+ branch?: string;
5879
+ };
5880
+ }
5881
+ /** GitLab provider configuration for a Git Sync installation. */
5882
+ export interface GitSyncInstallationSetupGitLab {
5883
+ provider: "gitlab";
5884
+ /** GitLab specific configuration for the Git Sync installation. */
5885
+ providerConfiguration: {
5886
+ /** GitLab project identifier. */
5887
+ projectId?: number;
5888
+ /** GitLab access token with appropriate scopes for repository access. */
5889
+ accessToken?: string;
5890
+ /** Custom GitLab instance URL, if using a self-hosted GitLab. Use null to clear a self-hosted URL. */
5891
+ customInstanceURL?: string | null;
5892
+ /**
5893
+ * GitLab repository branch ref.
5894
+ * @pattern ^refs/heads/.+$
5895
+ */
5896
+ branch?: string;
5897
+ };
5898
+ }
5899
+ /** Provider-specific setup payload for a Git Sync installation. */
5900
+ export type GitSyncInstallationSetup = GitSyncInstallationSetupCommon & (GitSyncInstallationSetupGitHub | GitSyncInstallationSetupGitLab);
5901
+ export type GitSyncInstallation = GitSyncInstallationSetup & {
5902
+ object: "git-sync-installation";
5903
+ /** Unique identifier of the Git Sync installation. */
5904
+ id: string;
5905
+ /** Resource targeted by a Git Sync installation. */
5906
+ target: GitSyncInstallationTarget;
5907
+ status: GitSyncInstallationStatus;
5908
+ createdAt: Timestamp;
5909
+ /** Identifier of the user who created the installation. */
5910
+ createdBy: string;
5911
+ updatedAt: Timestamp;
5912
+ /** URLs associated with the installation */
5913
+ urls: {
5914
+ /**
5915
+ * URL of the installation endpoint in the API
5916
+ * @format uri
5917
+ */
5918
+ location: string;
5919
+ };
5920
+ };
5813
5921
  export type SiteAdaptiveDeterministicJSONSchemaPrimitives = {
5814
5922
  type: "boolean";
5815
5923
  description: string;
@@ -6063,7 +6171,10 @@ export interface SiteCustomizationSettingsBase {
6063
6171
  toggeable: boolean;
6064
6172
  };
6065
6173
  pdf: {
6066
- /** If true, PDF export is enabled for the published site. */
6174
+ /**
6175
+ * Deprecated: use `pageActions.items` instead. If true, PDF export is enabled for the published site. Kept in sync with the presence of `pdf` in `pageActions.items`.
6176
+ * @deprecated
6177
+ */
6067
6178
  enabled: boolean;
6068
6179
  };
6069
6180
  feedback: {
@@ -6080,16 +6191,39 @@ export interface SiteCustomizationSettingsBase {
6080
6191
  enabled: boolean;
6081
6192
  };
6082
6193
  git: {
6083
- /** Whether the published site should show a link to edit the content on the git provider set up in the Git Sync */
6194
+ /**
6195
+ * Deprecated: use `pageActions.items` instead. Whether the published site should show a link to edit the content on the git provider set up in the Git Sync. Kept in sync with the presence of `git` in `pageActions.items`.
6196
+ * @deprecated
6197
+ */
6084
6198
  showEditLink: boolean;
6085
6199
  };
6086
6200
  pageActions: {
6087
- /** Whether actions to open ChatGPT, Anthropic, etc. should be available in the page menu. */
6201
+ /**
6202
+ * Deprecated: use `items` instead. Whether actions to open ChatGPT, Anthropic, etc. should be available in the page menu. Kept in sync with the presence of `external-ai` in `items`.
6203
+ * @deprecated
6204
+ */
6088
6205
  externalAI: boolean;
6089
- /** Whether the copy and open the markdown version of the page should be available in the page menu. */
6206
+ /**
6207
+ * Deprecated: use `items` instead. Whether the copy and open the markdown version of the page should be available in the page menu. Kept in sync with the presence of `markdown` in `items`.
6208
+ * @deprecated
6209
+ */
6090
6210
  markdown: boolean;
6091
- /** Whether an action to connect to the docs using the MCP server should be available in the page menu. */
6211
+ /**
6212
+ * Deprecated: use `items` instead. Whether an action to connect to the docs using the MCP server should be available in the page menu. Kept in sync with the presence of `mcp` in `items`.
6213
+ * @deprecated
6214
+ */
6092
6215
  mcp: boolean;
6216
+ /**
6217
+ * Ordered list of the page actions enabled in the page menu. This is the source of truth for
6218
+ * which actions are enabled and in which order: the position defines the display order, the
6219
+ * first action is the default one, surfaced as the main button on the page, and actions not
6220
+ * present in the list are disabled. When omitted on input, the deprecated `externalAI`,
6221
+ * `markdown`, `mcp`, `pdf` and `git` flags are used to derive the list. The `assistant` action
6222
+ * is governed by the `ai.mode` setting rather than this list: it is always present (prepended
6223
+ * by default if missing, otherwise keeping its position) when the assistant is enabled, and
6224
+ * always absent when it is disabled.
6225
+ */
6226
+ items: CustomizationPageActionType[];
6093
6227
  };
6094
6228
  externalLinks: {
6095
6229
  /**
@@ -6920,6 +7054,20 @@ export interface AIToolCallUpdateVariables {
6920
7054
  /** The page whose variables are being updated. Omitted when updating space variables. */
6921
7055
  page?: ChangedRevisionPage;
6922
7056
  }
7057
+ export interface AIToolCallGetTags {
7058
+ tool: "getTags";
7059
+ /** The ID of the space being accessed. */
7060
+ spaceId: string;
7061
+ /** The revision ID of the space. */
7062
+ revisionId: string;
7063
+ }
7064
+ export interface AIToolCallUpdateTags {
7065
+ tool: "updateTags";
7066
+ /** The ID of the space being edited. */
7067
+ spaceId: string;
7068
+ /** The base revision ID used to compare the change in the current conversation. */
7069
+ baseRevisionId: string;
7070
+ }
6923
7071
  export interface AIToolCallCreateChangeRequest {
6924
7072
  tool: "createChangeRequest";
6925
7073
  /** The ID of the space the change request belongs to. */
@@ -6990,7 +7138,7 @@ export interface AIToolCallOther {
6990
7138
  /** Summary of a generic tool call. */
6991
7139
  summary: AIToolCallOtherSummary;
6992
7140
  }
6993
- export type AIToolCall = AIToolCallGetPageContent | AIToolCallGetRecordContent | AIToolCallGetPages | AIToolCallGetReusableContents | AIToolCallSearch | AIToolCallEditPage | AIToolCallCreatePage | AIToolCallDeletePage | AIToolCallRenamePage | AIToolCallMovePage | AIToolCallListModifiedPages | AIToolCallGetPageDiff | AIToolCallCreateReusableContent | AIToolCallEditReusableContent | AIToolCallGetReusableContent | AIToolCallGetVariables | AIToolCallUpdateVariables | AIToolCallCreateChangeRequest | AIToolCallComment | AIToolCallReplyToComment | AIToolCallSubmitChangeRequestReview | AIToolCallMCP | AIToolCallOther;
7141
+ export type AIToolCall = AIToolCallGetPageContent | AIToolCallGetRecordContent | AIToolCallGetPages | AIToolCallGetReusableContents | AIToolCallSearch | AIToolCallEditPage | AIToolCallCreatePage | AIToolCallDeletePage | AIToolCallRenamePage | AIToolCallMovePage | AIToolCallListModifiedPages | AIToolCallGetPageDiff | AIToolCallCreateReusableContent | AIToolCallEditReusableContent | AIToolCallGetReusableContent | AIToolCallGetVariables | AIToolCallUpdateVariables | AIToolCallGetTags | AIToolCallUpdateTags | AIToolCallCreateChangeRequest | AIToolCallComment | AIToolCallReplyToComment | AIToolCallSubmitChangeRequestReview | AIToolCallMCP | AIToolCallOther;
6994
7142
  export interface Timerange {
6995
7143
  start: Timestamp;
6996
7144
  end: Timestamp;
@@ -8132,74 +8280,6 @@ export interface SiteVisitorPayload {
8132
8280
  jwtToken?: string;
8133
8281
  unsignedClaims?: PlainObject;
8134
8282
  }
8135
- /** Common setup fields for a Git Sync installation. */
8136
- export interface GitSyncInstallationSetupCommon {
8137
- /** Optional directory used when syncing a monorepo subdirectory. */
8138
- projectDirectory?: string;
8139
- /** Optional template used when generating commit messages. */
8140
- commitMessageTemplate?: string;
8141
- /**
8142
- * Whether previews should be generated from branches outside the configured branch.
8143
- * @default false
8144
- */
8145
- previewExternalBranches?: boolean;
8146
- /** Which side should be treated as the source of truth when Git Sync is configured. */
8147
- priority?: GitSyncInstallationPriority;
8148
- }
8149
- /** GitHub provider configuration for a Git Sync installation. */
8150
- export interface GitSyncInstallationSetupGitHub {
8151
- provider: "github";
8152
- /** GitHub specific configuration for the Git Sync installation. */
8153
- providerConfiguration: {
8154
- /** GitHub repository identifier. */
8155
- repositoryId?: number;
8156
- /**
8157
- * GitHub repository branch ref.
8158
- * @pattern ^refs/heads/.+$
8159
- */
8160
- branch?: string;
8161
- };
8162
- }
8163
- /** GitLab provider configuration for a Git Sync installation. */
8164
- export interface GitSyncInstallationSetupGitLab {
8165
- provider: "gitlab";
8166
- /** GitLab specific configuration for the Git Sync installation. */
8167
- providerConfiguration: {
8168
- /** GitLab project identifier. */
8169
- projectId?: number;
8170
- /** GitLab access token with appropriate scopes for repository access. */
8171
- accessToken?: string;
8172
- /** Custom GitLab instance URL, if using a self-hosted GitLab. Use null to clear a self-hosted URL. */
8173
- customInstanceURL?: string | null;
8174
- /**
8175
- * GitLab repository branch ref.
8176
- * @pattern ^refs/heads/.+$
8177
- */
8178
- branch?: string;
8179
- };
8180
- }
8181
- /** Provider-specific setup payload for a Git Sync installation. */
8182
- export type GitSyncInstallationSetup = GitSyncInstallationSetupCommon & (GitSyncInstallationSetupGitHub | GitSyncInstallationSetupGitLab);
8183
- export type GitSyncInstallation = GitSyncInstallationSetup & {
8184
- object: "git-sync-installation";
8185
- /** Unique identifier of the Git Sync installation. */
8186
- id: string;
8187
- /** Resource targeted by a Git Sync installation. */
8188
- target: GitSyncInstallationTarget;
8189
- status: GitSyncInstallationStatus;
8190
- createdAt: Timestamp;
8191
- /** Identifier of the user who created the installation. */
8192
- createdBy: string;
8193
- updatedAt: Timestamp;
8194
- /** URLs associated with the installation */
8195
- urls: {
8196
- /**
8197
- * URL of the installation endpoint in the API
8198
- * @format uri
8199
- */
8200
- location: string;
8201
- };
8202
- };
8203
8283
  /** GitHub repository that can be selected for Git Sync. */
8204
8284
  export interface GitSyncGitHubRepository {
8205
8285
  id: number;
@@ -13492,6 +13572,36 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
13492
13572
  * @secure
13493
13573
  */
13494
13574
  deleteSiteById: (organizationId: EntityId, siteId: string, params?: RequestParams) => Promise<HttpResponse<void, any>>;
13575
+ /**
13576
+ * No description
13577
+ *
13578
+ * @tags git
13579
+ * @name ListSiteGitSyncInstallations
13580
+ * @summary List the Git Sync installations for a site and its spaces
13581
+ * @request GET:/orgs/{organizationId}/sites/{siteId}/spaces/git/installations
13582
+ * @secure
13583
+ */
13584
+ listSiteGitSyncInstallations: (organizationId: EntityId, siteId: string, params?: RequestParams) => Promise<HttpResponse<{
13585
+ items: GitSyncInstallation[];
13586
+ }, {
13587
+ error: {
13588
+ /** @format int32 */
13589
+ code: 400;
13590
+ message: string;
13591
+ };
13592
+ } | {
13593
+ error: {
13594
+ /** @format int32 */
13595
+ code: 401;
13596
+ message: string;
13597
+ };
13598
+ } | {
13599
+ error: {
13600
+ /** @format int32 */
13601
+ code: 404;
13602
+ message: string;
13603
+ };
13604
+ }>>;
13495
13605
  /**
13496
13606
  * No description
13497
13607
  *
@@ -14243,6 +14353,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
14243
14353
  type?: SiteFindingType;
14244
14354
  /** Filter findings by estimated severity. */
14245
14355
  severity?: SiteFindingSeverity;
14356
+ /** Filter findings that have at least one associated change request. */
14357
+ hasChangeRequests?: boolean;
14246
14358
  }, params?: RequestParams) => Promise<HttpResponse<List & {
14247
14359
  items: SiteFinding[];
14248
14360
  }, any>>;
@@ -110,6 +110,7 @@ export declare const FONT_FAMILY_MAX_LENGTH = 50;
110
110
  export declare const FONT_FAMILY_MIN_LENGTH = 1;
111
111
  export declare const STORAGE_FILE_KEY_MAX_LENGTH = 512;
112
112
  export declare const STORAGE_FILE_KEY_MIN_LENGTH = 1;
113
+ export declare const GIT_SYNC_INSTALLATION_PRIORITY_ENUM: ["git", "gitbook"];
113
114
  export declare const CUSTOMIZATION_THEME_ENUM: ["clean", "muted", "bold", "gradient"];
114
115
  export declare const COLOR_PATTERN = "^#(?:[0-9a-fA-F]{3}){1,2}$";
115
116
  export declare const CUSTOMIZATION_CORNERS_ENUM: ["straight", "rounded", "circular"];
@@ -132,6 +133,7 @@ export declare const CUSTOMIZATION_DEFAULT_THEME_MODE_ENUM: ["light", "dark", "s
132
133
  export declare const CUSTOMIZATION_AIMODE_ENUM: ["none", "search", "assistant"];
133
134
  export declare const CUSTOMIZATION_SUGGESTED_QUESTION_MAX_LENGTH = 64;
134
135
  export declare const CUSTOMIZATION_SUGGESTED_QUESTION_MIN_LENGTH = 3;
136
+ export declare const CUSTOMIZATION_PAGE_ACTION_TYPE_ENUM: ["assistant", "external-ai", "markdown", "mcp", "git", "pdf"];
135
137
  export declare const SITE_EXTERNAL_LINKS_TARGET_ENUM: ["self", "blank"];
136
138
  export declare const SITE_SOCIAL_ACCOUNT_PLATFORM_ENUM: ["twitter", "instagram", "facebook", "linkedin", "github", "discord", "slack", "youtube", "tiktok", "reddit", "bluesky", "mastodon", "threads", "medium"];
137
139
  export declare const SITE_SOCIAL_ACCOUNT_HANDLE_MAX_LENGTH = 128;
@@ -193,7 +195,6 @@ export declare const CLOUDFLARE_HOSTNAME_STATUS_ENUM: ["pending", "active", "blo
193
195
  export declare const CLOUDFLARE_HOSTNAME_TLSSTATUS_ENUM: ["initializing", "pending_validation", "pending_issuance", "pending_deployment", "active", "pending_deletion", "pending_cleanup", "deleted"];
194
196
  export declare const CLOUDFLARE_HOSTNAME_TLSVALIDATION_METHOD_ENUM: ["http", "txt", "email"];
195
197
  export declare const GIT_SYNC_INSTALLATION_PROVIDER_ENUM: ["github", "gitlab"];
196
- export declare const GIT_SYNC_INSTALLATION_PRIORITY_ENUM: ["git", "gitbook"];
197
198
  export declare const SHA256_MAX_LENGTH = 64;
198
199
  export declare const SHA256_MIN_LENGTH = 64;
199
200
  export declare const GIT_BOOK_USERS_ENUM: ["gitbook:agent"];
package/dist/index.cjs CHANGED
@@ -254,6 +254,7 @@ __export(src_exports, {
254
254
  CUSTOMIZATION_ICONS_STYLE_ENUM: () => CUSTOMIZATION_ICONS_STYLE_ENUM,
255
255
  CUSTOMIZATION_LINKS_STYLE_ENUM: () => CUSTOMIZATION_LINKS_STYLE_ENUM,
256
256
  CUSTOMIZATION_LOCALE_ENUM: () => CUSTOMIZATION_LOCALE_ENUM,
257
+ CUSTOMIZATION_PAGE_ACTION_TYPE_ENUM: () => CUSTOMIZATION_PAGE_ACTION_TYPE_ENUM,
257
258
  CUSTOMIZATION_SEARCH_STYLE_ENUM: () => CUSTOMIZATION_SEARCH_STYLE_ENUM,
258
259
  CUSTOMIZATION_SIDEBAR_BACKGROUND_STYLE_ENUM: () => CUSTOMIZATION_SIDEBAR_BACKGROUND_STYLE_ENUM,
259
260
  CUSTOMIZATION_SIDEBAR_LIST_STYLE_ENUM: () => CUSTOMIZATION_SIDEBAR_LIST_STYLE_ENUM,
@@ -294,6 +295,7 @@ __export(src_exports, {
294
295
  CustomizationIconsStyle: () => CustomizationIconsStyle,
295
296
  CustomizationLinksStyle: () => CustomizationLinksStyle,
296
297
  CustomizationLocale: () => CustomizationLocale,
298
+ CustomizationPageActionType: () => CustomizationPageActionType,
297
299
  CustomizationSearchStyle: () => CustomizationSearchStyle,
298
300
  CustomizationSidebarBackgroundStyle: () => CustomizationSidebarBackgroundStyle,
299
301
  CustomizationSidebarListStyle: () => CustomizationSidebarListStyle,
@@ -521,7 +523,7 @@ module.exports = __toCommonJS(src_exports);
521
523
 
522
524
  // package.json
523
525
  var name = "@gitbook/api";
524
- var version = "0.183.0";
526
+ var version = "0.184.0";
525
527
 
526
528
  // src/client.ts
527
529
  var import_event_iterator = __toESM(require_node(), 1);
@@ -705,11 +707,6 @@ var GitBookUsers = /* @__PURE__ */ ((GitBookUsers2) => {
705
707
  GitBookUsers2["GitbookAgent"] = "gitbook:agent";
706
708
  return GitBookUsers2;
707
709
  })(GitBookUsers || {});
708
- var GitSyncInstallationPriority = /* @__PURE__ */ ((GitSyncInstallationPriority2) => {
709
- GitSyncInstallationPriority2["Git"] = "git";
710
- GitSyncInstallationPriority2["Gitbook"] = "gitbook";
711
- return GitSyncInstallationPriority2;
712
- })(GitSyncInstallationPriority || {});
713
710
  var GitSyncInstallationProvider = /* @__PURE__ */ ((GitSyncInstallationProvider2) => {
714
711
  GitSyncInstallationProvider2["Github"] = "github";
715
712
  GitSyncInstallationProvider2["Gitlab"] = "gitlab";
@@ -1045,6 +1042,15 @@ var SiteExternalLinksTarget = /* @__PURE__ */ ((SiteExternalLinksTarget2) => {
1045
1042
  SiteExternalLinksTarget2["Blank"] = "blank";
1046
1043
  return SiteExternalLinksTarget2;
1047
1044
  })(SiteExternalLinksTarget || {});
1045
+ var CustomizationPageActionType = /* @__PURE__ */ ((CustomizationPageActionType2) => {
1046
+ CustomizationPageActionType2["Assistant"] = "assistant";
1047
+ CustomizationPageActionType2["ExternalAi"] = "external-ai";
1048
+ CustomizationPageActionType2["Markdown"] = "markdown";
1049
+ CustomizationPageActionType2["Mcp"] = "mcp";
1050
+ CustomizationPageActionType2["Git"] = "git";
1051
+ CustomizationPageActionType2["Pdf"] = "pdf";
1052
+ return CustomizationPageActionType2;
1053
+ })(CustomizationPageActionType || {});
1048
1054
  var CustomizationAIMode = /* @__PURE__ */ ((CustomizationAIMode2) => {
1049
1055
  CustomizationAIMode2["None"] = "none";
1050
1056
  CustomizationAIMode2["Search"] = "search";
@@ -1226,6 +1232,11 @@ var CustomizationTheme = /* @__PURE__ */ ((CustomizationTheme2) => {
1226
1232
  CustomizationTheme2["Gradient"] = "gradient";
1227
1233
  return CustomizationTheme2;
1228
1234
  })(CustomizationTheme || {});
1235
+ var GitSyncInstallationPriority = /* @__PURE__ */ ((GitSyncInstallationPriority2) => {
1236
+ GitSyncInstallationPriority2["Git"] = "git";
1237
+ GitSyncInstallationPriority2["Gitbook"] = "gitbook";
1238
+ return GitSyncInstallationPriority2;
1239
+ })(GitSyncInstallationPriority || {});
1229
1240
  var StorageUploadKind = /* @__PURE__ */ ((StorageUploadKind2) => {
1230
1241
  StorageUploadKind2["CustomizationFont"] = "customization_font";
1231
1242
  StorageUploadKind2["ImportFile"] = "import_file";
@@ -3663,6 +3674,13 @@ var Api = class extends HttpClient {
3663
3674
  secure: true,
3664
3675
  ...params
3665
3676
  }),
3677
+ listSiteGitSyncInstallations: (organizationId, siteId, params = {}) => this.request({
3678
+ path: `/orgs/${organizationId}/sites/${siteId}/spaces/git/installations`,
3679
+ method: "GET",
3680
+ secure: true,
3681
+ format: "json",
3682
+ ...params
3683
+ }),
3666
3684
  getSiteAdaptiveSchema: (organizationId, siteId, params = {}) => this.request({
3667
3685
  path: `/orgs/${organizationId}/sites/${siteId}/adaptive-schema`,
3668
3686
  method: "GET",
@@ -4796,6 +4814,7 @@ var FONT_FAMILY_MAX_LENGTH = 50;
4796
4814
  var FONT_FAMILY_MIN_LENGTH = 1;
4797
4815
  var STORAGE_FILE_KEY_MAX_LENGTH = 512;
4798
4816
  var STORAGE_FILE_KEY_MIN_LENGTH = 1;
4817
+ var GIT_SYNC_INSTALLATION_PRIORITY_ENUM = ["git", "gitbook"];
4799
4818
  var CUSTOMIZATION_THEME_ENUM = ["clean", "muted", "bold", "gradient"];
4800
4819
  var COLOR_PATTERN = "^#(?:[0-9a-fA-F]{3}){1,2}$";
4801
4820
  var CUSTOMIZATION_CORNERS_ENUM = ["straight", "rounded", "circular"];
@@ -4818,6 +4837,7 @@ var CUSTOMIZATION_DEFAULT_THEME_MODE_ENUM = ["light", "dark", "system"];
4818
4837
  var CUSTOMIZATION_AIMODE_ENUM = ["none", "search", "assistant"];
4819
4838
  var CUSTOMIZATION_SUGGESTED_QUESTION_MAX_LENGTH = 64;
4820
4839
  var CUSTOMIZATION_SUGGESTED_QUESTION_MIN_LENGTH = 3;
4840
+ var CUSTOMIZATION_PAGE_ACTION_TYPE_ENUM = ["assistant", "external-ai", "markdown", "mcp", "git", "pdf"];
4821
4841
  var SITE_EXTERNAL_LINKS_TARGET_ENUM = ["self", "blank"];
4822
4842
  var SITE_SOCIAL_ACCOUNT_PLATFORM_ENUM = ["twitter", "instagram", "facebook", "linkedin", "github", "discord", "slack", "youtube", "tiktok", "reddit", "bluesky", "mastodon", "threads", "medium"];
4823
4843
  var SITE_SOCIAL_ACCOUNT_HANDLE_MAX_LENGTH = 128;
@@ -4879,7 +4899,6 @@ var CLOUDFLARE_HOSTNAME_STATUS_ENUM = ["pending", "active", "blocked", "moved",
4879
4899
  var CLOUDFLARE_HOSTNAME_TLSSTATUS_ENUM = ["initializing", "pending_validation", "pending_issuance", "pending_deployment", "active", "pending_deletion", "pending_cleanup", "deleted"];
4880
4900
  var CLOUDFLARE_HOSTNAME_TLSVALIDATION_METHOD_ENUM = ["http", "txt", "email"];
4881
4901
  var GIT_SYNC_INSTALLATION_PROVIDER_ENUM = ["github", "gitlab"];
4882
- var GIT_SYNC_INSTALLATION_PRIORITY_ENUM = ["git", "gitbook"];
4883
4902
  var SHA256_MAX_LENGTH = 64;
4884
4903
  var SHA256_MIN_LENGTH = 64;
4885
4904
  var GIT_BOOK_USERS_ENUM = ["gitbook:agent"];
@@ -5038,6 +5057,7 @@ var GitBookAPI = class extends Api {
5038
5057
  CUSTOMIZATION_ICONS_STYLE_ENUM,
5039
5058
  CUSTOMIZATION_LINKS_STYLE_ENUM,
5040
5059
  CUSTOMIZATION_LOCALE_ENUM,
5060
+ CUSTOMIZATION_PAGE_ACTION_TYPE_ENUM,
5041
5061
  CUSTOMIZATION_SEARCH_STYLE_ENUM,
5042
5062
  CUSTOMIZATION_SIDEBAR_BACKGROUND_STYLE_ENUM,
5043
5063
  CUSTOMIZATION_SIDEBAR_LIST_STYLE_ENUM,
@@ -5078,6 +5098,7 @@ var GitBookAPI = class extends Api {
5078
5098
  CustomizationIconsStyle,
5079
5099
  CustomizationLinksStyle,
5080
5100
  CustomizationLocale,
5101
+ CustomizationPageActionType,
5081
5102
  CustomizationSearchStyle,
5082
5103
  CustomizationSidebarBackgroundStyle,
5083
5104
  CustomizationSidebarListStyle,