@gitbook/api 0.184.0 → 0.186.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
@@ -277,14 +277,6 @@ export declare enum AIModel {
277
277
  ReasoningMedium = "reasoning-medium",
278
278
  ReasoningHigh = "reasoning-high"
279
279
  }
280
- /**
281
- * The mode influences the response time and quality of the AI's answer. Fast mode will prioritize quicker responses with potentially less well reasoned answers and normal mode will allow for more comprehensive responses at the cost of longer response time.
282
- * @default "normal"
283
- */
284
- export declare enum AIMessageMode {
285
- Normal = "normal",
286
- Fast = "fast"
287
- }
288
280
  /** The phase of a step in a message from the AI agent. */
289
281
  export declare enum AIMessageStepPhase {
290
282
  Commentary = "commentary",
@@ -1134,6 +1126,13 @@ export type ContentKitInlineElement = ContentKitText | ContentKitImage | Content
1134
1126
  export type ContentKitDescendantElement = ContentKitButton | ContentKitTextInput | ContentKitHStack | ContentKitVStack | ContentKitBox | ContentKitDivider | ContentKitWebFrame | ContentKitCodeBlock | ContentKitMarkdown | ContentKitCard | ContentKitImage | ContentKitInput | ContentKitSelect | ContentKitSwitch | ContentKitCheckbox | ContentKitRadio | ContentKitText | ContentKitHint | ContentKitLink | ContentKitStepperStep;
1135
1127
  /** Any event that can be received from GitBook. */
1136
1128
  export type Event = InstallationSetupEvent | InstallationDeletedEvent | SpaceInstallationSetupEvent | SpaceInstallationDeletedEvent | SiteInstallationSetupEvent | SiteInstallationDeletedEvent | SiteViewEvent | SpaceContentUpdatedEvent | SpaceGitSyncCompletedEvent | SpaceGitSyncStartedEvent | SpaceVisibilityUpdatedEvent | TaskEvent | FetchEvent | FetchPublishedScriptEvent | FetchVisitorAuthenticationEvent | UIRenderEvent | ContentComputeDocumentEvent | ContentComputeRevisionEvent | PageFeedbackEvent;
1129
+ export type ChangeRequestContentChange = ({
1130
+ operation: "update_page";
1131
+ } & ChangeRequestContentChangeUpdatePage) | ({
1132
+ operation: "insert_page";
1133
+ } & ChangeRequestContentChangeInsertPage) | ({
1134
+ operation: "delete_page";
1135
+ } & ChangeRequestContentChangeDeletePage);
1137
1136
  /** An absolute reference to content in GitBook. */
1138
1137
  export type ContentLocation = ContentLocationFile | ContentLocationURL | ContentLocationPage | ContentLocationUser | ContentLocationCollection | ContentLocationSpace | ContentLocationReusableContent | ContentLocationOpenAPI;
1139
1138
  export type Revision = RevisionTypeEdits | RevisionTypeMerge | RevisionTypeRollback | RevisionTypeUpdate | RevisionTypeComputed;
@@ -1635,7 +1634,13 @@ export interface RevisionPageBase {
1635
1634
  updatedAt?: Timestamp;
1636
1635
  }
1637
1636
  export interface MarkdownDocument {
1638
- /** Content of the document formatted as markdown */
1637
+ /**
1638
+ * Content of the document formatted as markdown
1639
+ * @example "# Hello World
1640
+ *
1641
+ * This is a markdown document linking to [another page](/pages/page_id).
1642
+ * "
1643
+ */
1639
1644
  markdown: string;
1640
1645
  }
1641
1646
  export interface DocumentMarkBold {
@@ -2023,6 +2028,8 @@ export interface DocumentBlockTable {
2023
2028
  definition: Record<string, DocumentTableDefinition>;
2024
2029
  /** Whether to render the block as a full width one */
2025
2030
  fullWidth?: boolean;
2031
+ /** Whether to show the search bar on the table. When unset, search is shown automatically on grid tables once they have enough rows. */
2032
+ search?: boolean;
2026
2033
  };
2027
2034
  fragments: DocumentFragment[];
2028
2035
  }
@@ -2070,7 +2077,24 @@ export interface DocumentBlockDivider {
2070
2077
  isVoid: true;
2071
2078
  data: object;
2072
2079
  }
2073
- export type DocumentBlocksTopLevels = DocumentBlocksEssentials | DocumentBlockQuote | DocumentBlockHint | DocumentBlockImages | DocumentBlockFile | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockCode | DocumentBlockMath | DocumentBlockExpandable | DocumentBlockTabs | DocumentBlockTable | DocumentBlockOpenAPI | DocumentBlockOpenAPIOperation | DocumentBlockOpenAPISchemas | DocumentBlockOpenAPIWebhook | DocumentBlockContentRef | DocumentBlockIntegration | DocumentBlockReusableContent | DocumentBlockStepper | DocumentBlockIf | DocumentBlockColumns | DocumentBlockUpdates;
2080
+ export interface DocumentBlockPrompt {
2081
+ object: "block";
2082
+ type: "prompt";
2083
+ key?: string;
2084
+ data: {
2085
+ description: string;
2086
+ /** Name of the icon */
2087
+ icon?: Icon;
2088
+ openInAIProviders?: boolean;
2089
+ };
2090
+ /**
2091
+ * @maxItems 1
2092
+ * @minItems 1
2093
+ */
2094
+ nodes: DocumentBlockCode[];
2095
+ isVoid?: false;
2096
+ }
2097
+ export type DocumentBlocksTopLevels = DocumentBlocksEssentials | DocumentBlockQuote | DocumentBlockHint | DocumentBlockPrompt | DocumentBlockImages | DocumentBlockFile | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockCode | DocumentBlockMath | DocumentBlockExpandable | DocumentBlockTabs | DocumentBlockTable | DocumentBlockOpenAPI | DocumentBlockOpenAPIOperation | DocumentBlockOpenAPISchemas | DocumentBlockOpenAPIWebhook | DocumentBlockContentRef | DocumentBlockIntegration | DocumentBlockReusableContent | DocumentBlockStepper | DocumentBlockIf | DocumentBlockColumns | DocumentBlockUpdates;
2074
2098
  export interface DocumentBlockIf {
2075
2099
  object: "block";
2076
2100
  type: "if";
@@ -2228,7 +2252,7 @@ export interface DocumentBlockExpandable {
2228
2252
  fragment: "expandable-body";
2229
2253
  type: "expandable-body";
2230
2254
  /** @minItems 1 */
2231
- nodes: (DocumentBlocksEssentials | DocumentBlockFile | DocumentBlockImages | DocumentBlockCode | DocumentBlockTable | DocumentBlockHint | DocumentBlockQuote | DocumentBlockReusableContent | DocumentBlockIntegration)[];
2255
+ nodes: (DocumentBlocksEssentials | DocumentBlockFile | DocumentBlockImages | DocumentBlockCode | DocumentBlockTable | DocumentBlockHint | DocumentBlockPrompt | DocumentBlockQuote | DocumentBlockReusableContent | DocumentBlockIntegration)[];
2232
2256
  }))[];
2233
2257
  meta?: {
2234
2258
  /** Unique ID to be used in an URL for the block. */
@@ -2249,7 +2273,7 @@ export interface DocumentBlockTabsItem {
2249
2273
  object: "block";
2250
2274
  type: "tabs-item";
2251
2275
  key?: string;
2252
- nodes: (DocumentBlocksEssentials | DocumentBlockContentRef | DocumentBlockCode | DocumentBlockEmbed | DocumentBlockFile | DocumentBlockImages | DocumentBlockDrawing | DocumentBlockHint | DocumentBlockQuote | DocumentBlockMath | DocumentBlockIntegration)[];
2276
+ nodes: (DocumentBlocksEssentials | DocumentBlockContentRef | DocumentBlockCode | DocumentBlockEmbed | DocumentBlockFile | DocumentBlockImages | DocumentBlockDrawing | DocumentBlockHint | DocumentBlockPrompt | DocumentBlockQuote | DocumentBlockMath | DocumentBlockIntegration)[];
2253
2277
  data: {
2254
2278
  title?: string;
2255
2279
  /** Name of the icon */
@@ -2360,7 +2384,7 @@ export interface DocumentBlockStepperStep {
2360
2384
  object: "block";
2361
2385
  type: "stepper-step";
2362
2386
  key?: string;
2363
- nodes: (DocumentBlocksEssentials | DocumentBlockContentRef | DocumentBlockCode | DocumentBlockEmbed | DocumentBlockFile | DocumentBlockImages | DocumentBlockDrawing | DocumentBlockHint | DocumentBlockQuote | DocumentBlockMath | DocumentBlockIntegration | DocumentBlockExpandable)[];
2387
+ nodes: (DocumentBlocksEssentials | DocumentBlockContentRef | DocumentBlockCode | DocumentBlockEmbed | DocumentBlockFile | DocumentBlockImages | DocumentBlockDrawing | DocumentBlockHint | DocumentBlockPrompt | DocumentBlockQuote | DocumentBlockMath | DocumentBlockIntegration | DocumentBlockExpandable)[];
2364
2388
  data: {
2365
2389
  icon?: string;
2366
2390
  };
@@ -2378,7 +2402,7 @@ export interface DocumentBlockColumn {
2378
2402
  object: "block";
2379
2403
  type: "column";
2380
2404
  key?: string;
2381
- nodes: (DocumentBlocksEssentials | DocumentBlockImages | DocumentBlockCode | DocumentBlockHint | DocumentBlockContentRef | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockFile | DocumentBlockIntegration | DocumentBlockMath | DocumentBlockQuote | DocumentBlockTable | DocumentBlockExpandable | DocumentBlockStepper)[];
2405
+ nodes: (DocumentBlocksEssentials | DocumentBlockImages | DocumentBlockCode | DocumentBlockHint | DocumentBlockPrompt | DocumentBlockContentRef | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockFile | DocumentBlockIntegration | DocumentBlockMath | DocumentBlockQuote | DocumentBlockTable | DocumentBlockExpandable | DocumentBlockStepper)[];
2382
2406
  isVoid?: false;
2383
2407
  data: {
2384
2408
  width?: Length;
@@ -2399,7 +2423,7 @@ export interface DocumentBlockUpdate {
2399
2423
  object: "block";
2400
2424
  type: "update";
2401
2425
  key?: string;
2402
- nodes: (DocumentBlocksEssentials | DocumentBlockContentRef | DocumentBlockCode | DocumentBlockEmbed | DocumentBlockFile | DocumentBlockImages | DocumentBlockDrawing | DocumentBlockHint | DocumentBlockQuote | DocumentBlockMath | DocumentBlockIntegration | DocumentBlockTabs | DocumentBlockExpandable)[];
2426
+ nodes: (DocumentBlocksEssentials | DocumentBlockContentRef | DocumentBlockCode | DocumentBlockEmbed | DocumentBlockFile | DocumentBlockImages | DocumentBlockDrawing | DocumentBlockHint | DocumentBlockPrompt | DocumentBlockQuote | DocumentBlockMath | DocumentBlockIntegration | DocumentBlockTabs | DocumentBlockExpandable)[];
2403
2427
  data: {
2404
2428
  date: Timestamp;
2405
2429
  /** Array of tags. Each tag is id'ed by its slug. */
@@ -2418,7 +2442,7 @@ export interface DocumentBlockUpdates {
2418
2442
  format: "numeric" | "full" | "short";
2419
2443
  };
2420
2444
  }
2421
- export type DocumentBlock = DocumentBlockParagraph | DocumentBlockHeading | DocumentBlockListOrdered | DocumentBlockListUnordered | DocumentBlockListTasks | DocumentBlockListItem | DocumentBlockDivider | DocumentBlockQuote | DocumentBlockHint | DocumentBlockIf | DocumentBlockImages | DocumentBlockImage | DocumentBlockFile | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockCode | DocumentBlockCodeLine | DocumentBlockMath | DocumentBlockExpandable | DocumentBlockTabs | DocumentBlockTabsItem | DocumentBlockTable | DocumentBlockOpenAPI | DocumentBlockOpenAPIOperation | DocumentBlockOpenAPISchemas | DocumentBlockOpenAPIWebhook | DocumentBlockContentRef | DocumentBlockIntegration | DocumentBlockReusableContent | DocumentBlockStepper | DocumentBlockStepperStep | DocumentBlockColumns | DocumentBlockColumn | DocumentBlockUpdates | DocumentBlockUpdate;
2445
+ export type DocumentBlock = DocumentBlockParagraph | DocumentBlockHeading | DocumentBlockListOrdered | DocumentBlockListUnordered | DocumentBlockListTasks | DocumentBlockListItem | DocumentBlockDivider | DocumentBlockQuote | DocumentBlockHint | DocumentBlockPrompt | DocumentBlockIf | DocumentBlockImages | DocumentBlockImage | DocumentBlockFile | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockCode | DocumentBlockCodeLine | DocumentBlockMath | DocumentBlockExpandable | DocumentBlockTabs | DocumentBlockTabsItem | DocumentBlockTable | DocumentBlockOpenAPI | DocumentBlockOpenAPIOperation | DocumentBlockOpenAPISchemas | DocumentBlockOpenAPIWebhook | DocumentBlockContentRef | DocumentBlockIntegration | DocumentBlockReusableContent | DocumentBlockStepper | DocumentBlockStepperStep | DocumentBlockColumns | DocumentBlockColumn | DocumentBlockUpdates | DocumentBlockUpdate;
2422
2446
  export interface DocumentInlineMention {
2423
2447
  object: "inline";
2424
2448
  type: "mention";
@@ -2453,6 +2477,7 @@ export interface DocumentInlineButton {
2453
2477
  });
2454
2478
  isVoid: true;
2455
2479
  }
2480
+ /** @example {"object":"document","data":{},"nodes":[{"object":"block","type":"paragraph","data":{},"nodes":[{"object":"text","leaves":[{"object":"leaf","text":"Hello world","marks":[]}]}]}]} */
2456
2481
  export interface JSONDocument {
2457
2482
  object: "document";
2458
2483
  data: {
@@ -3037,6 +3062,10 @@ export interface OrganizationBilling {
3037
3062
  paidPremiumSites?: number;
3038
3063
  /** The number of paid ultimate sites on the current subscription. */
3039
3064
  paidUltimateSites?: number;
3065
+ /** Whether changing billing interval is allowed */
3066
+ canChangeInterval: boolean;
3067
+ /** Whether configuring SAML is allowed */
3068
+ canUseSAML: boolean;
3040
3069
  }
3041
3070
  /**
3042
3071
  * A short description giving context on the reason for the block.
@@ -3497,6 +3526,16 @@ export type ChangeRequestRequestedReviewer = {
3497
3526
  /** The team who was requested to review. */
3498
3527
  team: Team;
3499
3528
  });
3529
+ export interface AgentConversation {
3530
+ /** Type of Object, always equals to "agent-conversation" */
3531
+ object: "agent-conversation";
3532
+ /** The unique ID of the conversation. This is the client-generated identifier used to address the conversation; for the default conversation of a change request it is "default". */
3533
+ id: string;
3534
+ /** The title of the conversation, generated from the first message. Absent until generated. */
3535
+ title?: string;
3536
+ createdAt: Timestamp;
3537
+ updatedAt: Timestamp;
3538
+ }
3500
3539
  export interface PostCommentSchema {
3501
3540
  /** The node to which the comment is posted, if any. */
3502
3541
  node?: string;
@@ -3555,6 +3594,42 @@ export interface PostCommentReplySchema {
3555
3594
  export type ChangeRequestUserContributor = UserContributor & {
3556
3595
  actionType: "edit" | "comment";
3557
3596
  };
3597
+ /**
3598
+ * Replace the document of an existing page with another document.
3599
+ * @example {"operation":"update_page","page":"page_id","document":{"markdown":"# Hello World\n\nThis is a markdown document linking to [another page](/pages/page_id).\n"}}
3600
+ */
3601
+ export interface ChangeRequestContentChangeUpdatePage {
3602
+ operation: "update_page";
3603
+ /** ID of the page whose content should be updated. */
3604
+ page: string;
3605
+ document: Document;
3606
+ }
3607
+ /**
3608
+ * Insert a new page into the change request.
3609
+ * @example {"operation":"insert_page","title":"New page","document":{"markdown":"# New page\n\nThis is a new page.\n"}}
3610
+ */
3611
+ export interface ChangeRequestContentChangeInsertPage {
3612
+ operation: "insert_page";
3613
+ /** Title of the new page. */
3614
+ title: string;
3615
+ /** ID of the parent page to insert the new page into. If omitted, the page is inserted as a root page. */
3616
+ into?: string;
3617
+ /**
3618
+ * Zero-based index to insert the page at among its siblings. If omitted, the page is appended at the end.
3619
+ * @min 0
3620
+ */
3621
+ at?: number;
3622
+ document: Document;
3623
+ }
3624
+ /**
3625
+ * Delete an existing page (and its subpages) from the change request.
3626
+ * @example {"operation":"delete_page","page":"page_id"}
3627
+ */
3628
+ export interface ChangeRequestContentChangeDeletePage {
3629
+ operation: "delete_page";
3630
+ /** ID of the page to delete. */
3631
+ page: string;
3632
+ }
3558
3633
  export interface ChangedRevisionPage {
3559
3634
  id: string;
3560
3635
  type: RevisionPageType;
@@ -6170,13 +6245,6 @@ export interface SiteCustomizationSettingsBase {
6170
6245
  /** Should the reader be able to switch between dark and light mode */
6171
6246
  toggeable: boolean;
6172
6247
  };
6173
- pdf: {
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
- */
6178
- enabled: boolean;
6179
- };
6180
6248
  feedback: {
6181
6249
  /** If true, feedback gathering is enabled */
6182
6250
  enabled: boolean;
@@ -6190,38 +6258,14 @@ export interface SiteCustomizationSettingsBase {
6190
6258
  /** If true, Advanced customization is enabled */
6191
6259
  enabled: boolean;
6192
6260
  };
6193
- git: {
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
- */
6198
- showEditLink: boolean;
6199
- };
6200
6261
  pageActions: {
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
- */
6205
- externalAI: boolean;
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
- */
6210
- markdown: boolean;
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
- */
6215
- mcp: boolean;
6216
6262
  /**
6217
6263
  * Ordered list of the page actions enabled in the page menu. This is the source of truth for
6218
6264
  * which actions are enabled and in which order: the position defines the display order, the
6219
6265
  * 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.
6266
+ * present in the list are disabled. The `assistant` action is governed by the `ai.mode` setting
6267
+ * rather than this list: it is always present (prepended by default if missing, otherwise
6268
+ * keeping its position) when the assistant is enabled, and always absent when it is disabled.
6225
6269
  */
6226
6270
  items: CustomizationPageActionType[];
6227
6271
  };
@@ -6406,7 +6450,7 @@ export interface SiteInsightsSession {
6406
6450
  sessionId: string;
6407
6451
  }
6408
6452
  /** Integration source */
6409
- export type ContextConnector = string | "builtin:email" | "builtin:api" | "builtin:website" | "builtin:youtube" | "builtin:github-discussions" | "builtin:github-issues" | "builtin:intercom";
6453
+ export type ContextConnector = string | "builtin:email" | "builtin:api" | "builtin:website" | "builtin:youtube" | "builtin:github-discussions" | "builtin:github-issues" | "builtin:intercom" | "builtin:zendesk";
6410
6454
  /**
6411
6455
  * Title for the context record
6412
6456
  * @minLength 1
@@ -6700,6 +6744,16 @@ export type ContextConnectorSetup = {
6700
6744
  /** @minLength 1 */
6701
6745
  token: string;
6702
6746
  };
6747
+ } | {
6748
+ connector: "builtin:zendesk";
6749
+ setupSettings: {
6750
+ /** @minLength 1 */
6751
+ subdomain: string;
6752
+ /** @minLength 1 */
6753
+ email: string;
6754
+ /** @minLength 1 */
6755
+ apiToken: string;
6756
+ };
6703
6757
  };
6704
6758
  export type ContextConnection = {
6705
6759
  object: "context-connection";
@@ -7082,6 +7136,20 @@ export interface AIToolCallCreateChangeRequest {
7082
7136
  subject: string;
7083
7137
  };
7084
7138
  }
7139
+ export interface AIToolCallGetChangeRequestDetails {
7140
+ tool: "getChangeRequestDetails";
7141
+ /** The ID of the space the change request belongs to. */
7142
+ spaceId: string;
7143
+ /** The ID of the change request. */
7144
+ changeRequestId: string;
7145
+ }
7146
+ export interface AIToolCallSetChangeRequestDetails {
7147
+ tool: "setChangeRequestDetails";
7148
+ /** The ID of the space the change request belongs to. */
7149
+ spaceId: string;
7150
+ /** The ID of the change request. */
7151
+ changeRequestId: string;
7152
+ }
7085
7153
  export interface AIToolCallComment {
7086
7154
  tool: "comment";
7087
7155
  /** The ID of the space being commented. */
@@ -7138,7 +7206,7 @@ export interface AIToolCallOther {
7138
7206
  /** Summary of a generic tool call. */
7139
7207
  summary: AIToolCallOtherSummary;
7140
7208
  }
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;
7209
+ export type AIToolCall = AIToolCallGetPageContent | AIToolCallGetRecordContent | AIToolCallGetPages | AIToolCallGetReusableContents | AIToolCallSearch | AIToolCallEditPage | AIToolCallCreatePage | AIToolCallDeletePage | AIToolCallRenamePage | AIToolCallMovePage | AIToolCallListModifiedPages | AIToolCallGetPageDiff | AIToolCallCreateReusableContent | AIToolCallEditReusableContent | AIToolCallGetReusableContent | AIToolCallGetVariables | AIToolCallUpdateVariables | AIToolCallGetTags | AIToolCallUpdateTags | AIToolCallCreateChangeRequest | AIToolCallGetChangeRequestDetails | AIToolCallSetChangeRequestDetails | AIToolCallComment | AIToolCallReplyToComment | AIToolCallSubmitChangeRequestReview | AIToolCallMCP | AIToolCallOther;
7142
7210
  export interface Timerange {
7143
7211
  start: Timestamp;
7144
7212
  end: Timestamp;
@@ -7323,8 +7391,6 @@ export interface AIMessageInput {
7323
7391
  /** Context about the current user sending a message. */
7324
7392
  context?: AIMessageContext;
7325
7393
  attachments?: AIAttachment[];
7326
- /** The mode influences the response time and quality of the AI's answer. Fast mode will prioritize quicker responses with potentially less well reasoned answers and normal mode will allow for more comprehensive responses at the cost of longer response time. */
7327
- mode?: AIMessageMode;
7328
7394
  }
7329
7395
  /** Description of a tool that can be called from an AI agent. */
7330
7396
  export interface AIToolDefinition {
@@ -8234,6 +8300,33 @@ export interface Index {
8234
8300
  collections: Record<string, UserCollectionsPermissions>;
8235
8301
  spaces: Record<string, UserSpacesPermissions>;
8236
8302
  }
8303
+ /** Date-based billing override value, either indefinite or a timestamp. */
8304
+ export type OrganizationBillingDateOverride = true | Timestamp;
8305
+ /**
8306
+ * Current numeric billing override, when set.
8307
+ * @min 0
8308
+ */
8309
+ export type OrganizationBillingNumericOverride = number;
8310
+ export interface OrganizationBillingOverrides {
8311
+ overrides: {
8312
+ /** Current interval-change override, when set. */
8313
+ frozenInterval?: OrganizationBillingDateOverride;
8314
+ /** Current SAML override, when set. */
8315
+ enableSAML?: OrganizationBillingDateOverride;
8316
+ /** Current minimum users override, when set. */
8317
+ minUsers?: OrganizationBillingNumericOverride;
8318
+ /** Current maximum users override, when set. */
8319
+ maxUsers?: OrganizationBillingNumericOverride;
8320
+ /** Current minimum premium sites override, when set. */
8321
+ minPremiumSites?: OrganizationBillingNumericOverride;
8322
+ /** Current maximum premium sites override, when set. */
8323
+ maxPremiumSites?: OrganizationBillingNumericOverride;
8324
+ /** Current minimum ultimate sites override, when set. */
8325
+ minUltimateSites?: OrganizationBillingNumericOverride;
8326
+ /** Current maximum ultimate sites override, when set. */
8327
+ maxUltimateSites?: OrganizationBillingNumericOverride;
8328
+ };
8329
+ }
8237
8330
  export type BackOfficeSite = Site & {
8238
8331
  /** ID of the organization owning this site */
8239
8332
  organization: string;
@@ -8498,6 +8591,613 @@ export interface GitSyncOperation {
8498
8591
  /** Error details, defined if state is `failure`. */
8499
8592
  error?: string;
8500
8593
  }
8594
+ /**
8595
+ * A section group — a container that nests sections (and other section
8596
+ * groups). Discriminated by `type: section-group`. Up to one level of nested
8597
+ * section groups is allowed.
8598
+ */
8599
+ export interface GitSyncSiteStructureSectionGroup {
8600
+ /** Discriminator for a section group node. */
8601
+ type: "section-group";
8602
+ /**
8603
+ * Stable identifier for this section group, used as the Git Sync key.
8604
+ * Must be unique amongst all other section groups of the site. For
8605
+ * example: `section-group-product` or `section-group-1`.
8606
+ * @minLength 1
8607
+ */
8608
+ key: string;
8609
+ /** Title of the site section group */
8610
+ title: SiteSectionGroupTitle;
8611
+ /** Localized string value with a 128 character limit, keyed by locale. Contains overrides for non-default languages only. */
8612
+ localizedTitle?: LocalizedString128;
8613
+ /** Name of the icon */
8614
+ icon?: Icon;
8615
+ /** Whether the section group is draft and not live. */
8616
+ draft?: boolean;
8617
+ /** Section or section group nodes nested under this group. */
8618
+ children?: (GitSyncSiteStructureSectionGroup | GitSyncSiteStructureSection)[];
8619
+ }
8620
+ /**
8621
+ * A space — a single content unit in the site's navigation tree. Discriminated
8622
+ * by `type: space`.
8623
+ *
8624
+ * The space's content lives in the synced repository at the directory pointed
8625
+ * to by `content.directory`. Hierarchy comes from where the space appears in
8626
+ * the YAML (under a section, a section group, or at the root), not from an
8627
+ * explicit parent reference.
8628
+ */
8629
+ export interface GitSyncSiteStructureSpace {
8630
+ /** Discriminator for a space node. */
8631
+ type: "space";
8632
+ /**
8633
+ * Stable identifier for this space, used as the Git Sync key. Must be
8634
+ * unique amongst all other spaces of the site. For example: `space-docs`
8635
+ * or `space-1`.
8636
+ * @minLength 1
8637
+ */
8638
+ key: string;
8639
+ /** @minLength 1 */
8640
+ title: string;
8641
+ /** Localized string value with a 128 character limit, keyed by locale. Contains overrides for non-default languages only. */
8642
+ localizedTitle?: LocalizedString128;
8643
+ /** Path to the space on the site */
8644
+ path: SiteSpacePath;
8645
+ /** Whether this is the default space for the site. */
8646
+ default?: boolean;
8647
+ /** Whether the space is hidden from the site's navigation. */
8648
+ hidden?: boolean;
8649
+ /** Whether the space is draft and not live. */
8650
+ draft?: boolean;
8651
+ /** Expression to evaluate */
8652
+ condition?: Expression;
8653
+ /** Where the space's content lives in the synced repository. */
8654
+ content: {
8655
+ /**
8656
+ * Repository-relative directory containing this space's content.
8657
+ * @minLength 1
8658
+ */
8659
+ directory: string;
8660
+ language?: TranslationLanguage;
8661
+ };
8662
+ }
8663
+ /**
8664
+ * A section — a group of spaces sharing a top-level navigation entry.
8665
+ * Discriminated by `type: section`.
8666
+ *
8667
+ * Spaces inside a section are listed inline under `children`. A site with
8668
+ * sections must mark exactly one section with `default: true`.
8669
+ */
8670
+ export interface GitSyncSiteStructureSection {
8671
+ /** Discriminator for a section node. */
8672
+ type: "section";
8673
+ /**
8674
+ * Stable identifier for this section, used as the Git Sync key. Must be
8675
+ * unique amongst all other sections of the site. For example:
8676
+ * `section-guides` or `section-1`.
8677
+ * @minLength 1
8678
+ */
8679
+ key: string;
8680
+ /** Title of the site section */
8681
+ title: SiteSectionTitle;
8682
+ /** Localized string value with a 128 character limit, keyed by locale. Contains overrides for non-default languages only. */
8683
+ localizedTitle?: LocalizedString128;
8684
+ /** Description of the site section */
8685
+ description?: SiteSectionDescription;
8686
+ /** Localized string value with a 256 character limit, keyed by locale. Contains overrides for non-default languages only. */
8687
+ localizedDescription?: LocalizedString256;
8688
+ /** Name of the icon */
8689
+ icon?: Icon;
8690
+ /** Whether this is the default section for the site. */
8691
+ default?: boolean;
8692
+ /** Whether the section is draft and not live. */
8693
+ draft?: boolean;
8694
+ /** Path to the section on the site */
8695
+ path: SiteSectionPath;
8696
+ /** Expression to evaluate */
8697
+ condition?: Expression;
8698
+ /** Space nodes nested under this section. */
8699
+ children?: GitSyncSiteStructureSpace[];
8700
+ }
8701
+ /**
8702
+ * A single node in a Git Sync site structure tree — a section group, a
8703
+ * section, or a space, discriminated by `type`.
8704
+ */
8705
+ export type GitSyncSiteStructureNode = GitSyncSiteStructureSectionGroup | GitSyncSiteStructureSection | GitSyncSiteStructureSpace;
8706
+ /**
8707
+ * Hierarchical structure of a site in a Git Sync YAML. Each entry is one of
8708
+ * three node types: a section group, a section, or a space.
8709
+ */
8710
+ export type GitSyncSiteStructure = GitSyncSiteStructureNode[];
8711
+ /**
8712
+ * Reserved repository-relative path to the font file:
8713
+ * `.gitbook/assets/<key>-<weight>.<ext>`, where `<key>` is the parent
8714
+ * font definition's `key`, `<weight>` is this face's `weight`, and
8715
+ * `<ext>` is one of `woff2`, `woff`.
8716
+ *
8717
+ * For example, a font with `key: brand` and a `700` face is read from
8718
+ * `.gitbook/assets/brand-700.woff2`. Any other path is rejected.
8719
+ * @minLength 1
8720
+ */
8721
+ export type GitSyncSiteCustomizationFontSource = string;
8722
+ /**
8723
+ * Custom font definition for a `site.fonts[]` entry. Referenced from
8724
+ * `customization.styling.font` or `customization.styling.monospaceFont` via
8725
+ * its `key`.
8726
+ *
8727
+ * Rules enforced on a definition:
8728
+ * - It must declare exactly one face for the `400` weight and one for the
8729
+ * `700` weight; the `600` weight is optional. No other weights are allowed,
8730
+ * and a weight may not be declared more than once.
8731
+ * - Each face has a single source file whose `url` is the reserved repository
8732
+ * asset path `.gitbook/assets/<key>-<weight>.<ext>` (`<ext>` is `woff2` or
8733
+ * `woff`). For example a definition with `key: brand` is read from
8734
+ * `.gitbook/assets/brand-400.woff2` and `.gitbook/assets/brand-700.woff2`.
8735
+ */
8736
+ export interface GitSyncSiteCustomizationFontDefinition {
8737
+ /**
8738
+ * Stable identifier referenced from `styling.font` /
8739
+ * `styling.monospaceFont`, and used as the prefix of each face's
8740
+ * reserved asset path (`.gitbook/assets/<key>-<weight>.<ext>`).
8741
+ * @minLength 1
8742
+ * @pattern ^[A-Za-z0-9][A-Za-z0-9_-]*$
8743
+ */
8744
+ key: string;
8745
+ /** The human-readable font-family name used in CSS (e.g., "Open Sans", "Playfair Display"). */
8746
+ fontFamily: FontFamily;
8747
+ /**
8748
+ * Font-face declarations keyed by weight, each specifying its single
8749
+ * source file. The `400` and `700` weights are required; `600` is
8750
+ * optional.
8751
+ */
8752
+ fontFaces: {
8753
+ /**
8754
+ * Reserved repository-relative path to the font file:
8755
+ * `.gitbook/assets/<key>-<weight>.<ext>`, where `<key>` is the parent
8756
+ * font definition's `key`, `<weight>` is this face's `weight`, and
8757
+ * `<ext>` is one of `woff2`, `woff`.
8758
+ *
8759
+ * For example, a font with `key: brand` and a `700` face is read from
8760
+ * `.gitbook/assets/brand-700.woff2`. Any other path is rejected.
8761
+ */
8762
+ "400": GitSyncSiteCustomizationFontSource;
8763
+ /**
8764
+ * Reserved repository-relative path to the font file:
8765
+ * `.gitbook/assets/<key>-<weight>.<ext>`, where `<key>` is the parent
8766
+ * font definition's `key`, `<weight>` is this face's `weight`, and
8767
+ * `<ext>` is one of `woff2`, `woff`.
8768
+ *
8769
+ * For example, a font with `key: brand` and a `700` face is read from
8770
+ * `.gitbook/assets/brand-700.woff2`. Any other path is rejected.
8771
+ */
8772
+ "600"?: GitSyncSiteCustomizationFontSource;
8773
+ /**
8774
+ * Reserved repository-relative path to the font file:
8775
+ * `.gitbook/assets/<key>-<weight>.<ext>`, where `<key>` is the parent
8776
+ * font definition's `key`, `<weight>` is this face's `weight`, and
8777
+ * `<ext>` is one of `woff2`, `woff`.
8778
+ *
8779
+ * For example, a font with `key: brand` and a `700` face is read from
8780
+ * `.gitbook/assets/brand-700.woff2`. Any other path is rejected.
8781
+ */
8782
+ "700": GitSyncSiteCustomizationFontSource;
8783
+ };
8784
+ }
8785
+ /** Themed color (light + dark). */
8786
+ export interface GitSyncSiteCustomizationThemedColor {
8787
+ light: Color;
8788
+ dark: Color;
8789
+ }
8790
+ /** Tint configuration. */
8791
+ export interface GitSyncSiteCustomizationTint {
8792
+ /** Themed color (light + dark). */
8793
+ color: GitSyncSiteCustomizationThemedColor;
8794
+ }
8795
+ /** Reference to a custom font defined under `site.fonts[]`. Matches by `key`. */
8796
+ export interface GitSyncSiteCustomizationFontReference {
8797
+ /**
8798
+ * Matches the `key` of an entry in `site.fonts[]`.
8799
+ * @minLength 1
8800
+ */
8801
+ key: string;
8802
+ }
8803
+ /**
8804
+ * Body font for the site. Either one of the built-in `CustomizationDefaultFont`
8805
+ * values, or a reference to a custom font declared in `site.fonts[]`.
8806
+ */
8807
+ export type GitSyncSiteCustomizationFont = CustomizationDefaultFont | GitSyncSiteCustomizationFontReference;
8808
+ /**
8809
+ * Monospace font for the site. Either one of the built-in
8810
+ * `CustomizationDefaultMonospaceFont` values, or a reference to a custom font
8811
+ * declared in `site.fonts[]`.
8812
+ */
8813
+ export type GitSyncSiteCustomizationMonospaceFont = CustomizationDefaultMonospaceFont | GitSyncSiteCustomizationFontReference;
8814
+ /** Themed code theme (light + dark). */
8815
+ export interface GitSyncSiteCustomizationThemedCodeTheme {
8816
+ light: CustomizationCodeTheme;
8817
+ dark: CustomizationCodeTheme;
8818
+ }
8819
+ /** Code-block syntax-highlighting themes — one for default code blocks and one for OpenAPI request/response samples. */
8820
+ export interface GitSyncSiteCustomizationCodeThemes {
8821
+ /** Themed code theme (light + dark). */
8822
+ default: GitSyncSiteCustomizationThemedCodeTheme;
8823
+ /** Themed code theme (light + dark). */
8824
+ openapi: GitSyncSiteCustomizationThemedCodeTheme;
8825
+ }
8826
+ /** Sidebar style settings. */
8827
+ export interface GitSyncSiteCustomizationSidebar {
8828
+ /**
8829
+ * - `default`: No background, content sits directly against sidebar edge.
8830
+ * - `filled`: Muted background color that extends to sidebar edges.
8831
+ */
8832
+ background: CustomizationSidebarBackgroundStyle;
8833
+ /**
8834
+ * - `default`: Simple list items without special styling, groups are inset with a line.
8835
+ * - `pill`: Rounded capsule shape around selected/active items.
8836
+ * - `line`: Continuous line next to all items, with colored line part for selected/active items.
8837
+ */
8838
+ list: CustomizationSidebarListStyle;
8839
+ }
8840
+ /** Styling settings. */
8841
+ export interface GitSyncSiteCustomizationStyling {
8842
+ /**
8843
+ * The theme to apply to the site. Supercedes the old header preset themes.
8844
+ * - `clean`: Modern theme featuring translucency and minimally-styled elements.
8845
+ * - `muted`: Sophisticated theme with decreased contrast between elements.
8846
+ * - `bold`: High-impact theme with prominent colors and strong contrasts.
8847
+ * - `gradient`: Trendy theme featuring colorful gradients and splashes of color.
8848
+ */
8849
+ theme?: CustomizationTheme;
8850
+ /** Themed color (light + dark). */
8851
+ primaryColor?: GitSyncSiteCustomizationThemedColor;
8852
+ /** Tint configuration. */
8853
+ tint?: GitSyncSiteCustomizationTint;
8854
+ /** Themed color (light + dark). */
8855
+ infoColor?: GitSyncSiteCustomizationThemedColor;
8856
+ /** Themed color (light + dark). */
8857
+ successColor?: GitSyncSiteCustomizationThemedColor;
8858
+ /** Themed color (light + dark). */
8859
+ warningColor?: GitSyncSiteCustomizationThemedColor;
8860
+ /** Themed color (light + dark). */
8861
+ dangerColor?: GitSyncSiteCustomizationThemedColor;
8862
+ corners?: CustomizationCorners;
8863
+ /**
8864
+ * The degree of visual depth (through shadows, gradients and elevation effects) of elements on the site.
8865
+ * - `subtle`: Subtle shadows and minimal elevation.
8866
+ * - `flat`: Flat elements, no shadows and no elevation.
8867
+ */
8868
+ depth?: CustomizationDepth;
8869
+ /**
8870
+ * The style used for regular links in the main content, header and footer. Sidebar items are styled separately.
8871
+ * - `default`: Links are colored in the primary color and feature an underline in the same color.
8872
+ * - `accent`: Links are colored the same as body text and feature an underline in the primary color.
8873
+ */
8874
+ links?: CustomizationLinksStyle;
8875
+ /**
8876
+ * Body font for the site. Either one of the built-in `CustomizationDefaultFont`
8877
+ * values, or a reference to a custom font declared in `site.fonts[]`.
8878
+ */
8879
+ font?: GitSyncSiteCustomizationFont;
8880
+ /**
8881
+ * Monospace font for the site. Either one of the built-in
8882
+ * `CustomizationDefaultMonospaceFont` values, or a reference to a custom font
8883
+ * declared in `site.fonts[]`.
8884
+ */
8885
+ monospaceFont?: GitSyncSiteCustomizationMonospaceFont;
8886
+ icons?: CustomizationIconsStyle;
8887
+ /** Code-block syntax-highlighting themes — one for default code blocks and one for OpenAPI request/response samples. */
8888
+ codeTheme?: GitSyncSiteCustomizationCodeThemes;
8889
+ /** Sidebar style settings. */
8890
+ sidebar?: GitSyncSiteCustomizationSidebar;
8891
+ /**
8892
+ * The style of the search button.
8893
+ * - `prominent`: large search bar in the middle of the header, with less room for other header items,
8894
+ * - `subtle`: small search bar in the corner of the header, with more room for other header items.
8895
+ */
8896
+ search?: CustomizationSearchStyle;
8897
+ }
8898
+ /**
8899
+ * Repository-relative path to an asset in a site Git Sync, e.g.
8900
+ * `.gitbook/assets/header-logo-light.svg`. Absolute URLs are not accepted
8901
+ * here — Git Sync assets must live in the synced repository under
8902
+ * `.gitbook/assets/`.
8903
+ *
8904
+ * This is the shared base type and only validates the `.gitbook/assets/`
8905
+ * prefix. Each field that uses it additionally reserves a specific filename
8906
+ * and set of allowed extensions (e.g. the header logo must be
8907
+ * `header-logo-light.<ext>` / `header-logo-dark.<ext>`); see the description
8908
+ * on the consuming field for the exact reserved path.
8909
+ * @maxLength 2048
8910
+ * @pattern ^\.gitbook/assets/.+
8911
+ */
8912
+ export type GitSyncSiteCustomizationAssetPath = string;
8913
+ /**
8914
+ * Light/dark variants of a Git Sync repository asset path. Used for logos and
8915
+ * favicons that switch with the active theme. Both variants are required.
8916
+ *
8917
+ * Each consuming field reserves the exact light/dark filenames and allowed
8918
+ * extensions (e.g. header logo → `header-logo-light.<ext>` /
8919
+ * `header-logo-dark.<ext>`); see the description on the consuming field.
8920
+ */
8921
+ export interface GitSyncSiteCustomizationThemedAssetPath {
8922
+ /**
8923
+ * Repository-relative path to an asset in a site Git Sync, e.g.
8924
+ * `.gitbook/assets/header-logo-light.svg`. Absolute URLs are not accepted
8925
+ * here — Git Sync assets must live in the synced repository under
8926
+ * `.gitbook/assets/`.
8927
+ *
8928
+ * This is the shared base type and only validates the `.gitbook/assets/`
8929
+ * prefix. Each field that uses it additionally reserves a specific filename
8930
+ * and set of allowed extensions (e.g. the header logo must be
8931
+ * `header-logo-light.<ext>` / `header-logo-dark.<ext>`); see the description
8932
+ * on the consuming field for the exact reserved path.
8933
+ */
8934
+ light: GitSyncSiteCustomizationAssetPath;
8935
+ /**
8936
+ * Repository-relative path to an asset in a site Git Sync, e.g.
8937
+ * `.gitbook/assets/header-logo-light.svg`. Absolute URLs are not accepted
8938
+ * here — Git Sync assets must live in the synced repository under
8939
+ * `.gitbook/assets/`.
8940
+ *
8941
+ * This is the shared base type and only validates the `.gitbook/assets/`
8942
+ * prefix. Each field that uses it additionally reserves a specific filename
8943
+ * and set of allowed extensions (e.g. the header logo must be
8944
+ * `header-logo-light.<ext>` / `header-logo-dark.<ext>`); see the description
8945
+ * on the consuming field for the exact reserved path.
8946
+ */
8947
+ dark: GitSyncSiteCustomizationAssetPath;
8948
+ }
8949
+ /** Favicon for the published site. The `icon` variant references a repository asset path; the `emoji` variant uses a single emoji character; */
8950
+ export type GitSyncSiteCustomizationFavicon = {
8951
+ /**
8952
+ * Themed favicon. Each variant must use its reserved repository
8953
+ * asset path — light: `.gitbook/assets/favicon-light.<ext>`,
8954
+ * dark: `.gitbook/assets/favicon-dark.<ext>`, where `<ext>` is
8955
+ * the image's file extension (e.g. `png`, `svg`, `ico`). Any
8956
+ * other filename is rejected.
8957
+ */
8958
+ icon: GitSyncSiteCustomizationThemedAssetPath;
8959
+ } | {
8960
+ /** Unicode codepoint or character of the emoji */
8961
+ emoji: Emoji;
8962
+ };
8963
+ /**
8964
+ * Link destination, written as a path-string in YAML. Same format as
8965
+ * markdown content links, e.g. `https://example.com`, `/pages/<id>`,
8966
+ * `/spaces/<id>/pages/<id>`, `#anchor`, `/files/<id>`, `/spaces/<id>`.
8967
+ */
8968
+ export type GitSyncSiteCustomizationContentLinkTo = string;
8969
+ /** A label plus a destination, used inside header items, footer groups, and announcements. */
8970
+ export interface GitSyncSiteCustomizationContentLink {
8971
+ title: CustomizationContentLinkTitle;
8972
+ /** Localized overrides for the link title, keyed by locale. */
8973
+ localizedTitle?: LocalizedString64;
8974
+ /**
8975
+ * Link destination, written as a path-string in YAML. Same format as
8976
+ * markdown content links, e.g. `https://example.com`, `/pages/<id>`,
8977
+ * `/spaces/<id>/pages/<id>`, `#anchor`, `/files/<id>`, `/spaces/<id>`.
8978
+ */
8979
+ to: GitSyncSiteCustomizationContentLinkTo;
8980
+ }
8981
+ /** A single item in the published site's top navigation bar. */
8982
+ export interface GitSyncSiteCustomizationHeaderItem {
8983
+ title: string;
8984
+ /** Localized overrides for the header item title, keyed by locale. */
8985
+ localizedTitle?: LocalizedString;
8986
+ style?: "link" | "button-primary" | "button-secondary";
8987
+ /**
8988
+ * Header item destination. Use `null` for items that act as a
8989
+ * dropdown root without a link of their own.
8990
+ */
8991
+ to: GitSyncSiteCustomizationContentLinkTo | null;
8992
+ /** Sub-links shown as a dropdown under this header item. Empty array means no dropdown. */
8993
+ links: GitSyncSiteCustomizationContentLink[];
8994
+ /** Conditional expression evaluated to decide whether the item is shown to the visitor. */
8995
+ condition?: Expression;
8996
+ }
8997
+ /** Header settings. */
8998
+ export interface GitSyncSiteCustomizationHeader {
8999
+ /**
9000
+ * Themed header logo. Each variant must use its reserved repository
9001
+ * asset path — light: `.gitbook/assets/header-logo-light.<ext>`, dark:
9002
+ * `.gitbook/assets/header-logo-dark.<ext>`, where `<ext>` is the
9003
+ * image's file extension (e.g. `png`, `svg`). Any other filename is
9004
+ * rejected.
9005
+ */
9006
+ logo?: GitSyncSiteCustomizationThemedAssetPath;
9007
+ /**
9008
+ * Link destination, written as a path-string in YAML. Same format as
9009
+ * markdown content links, e.g. `https://example.com`, `/pages/<id>`,
9010
+ * `/spaces/<id>/pages/<id>`, `#anchor`, `/files/<id>`, `/spaces/<id>`.
9011
+ */
9012
+ primaryLink?: GitSyncSiteCustomizationContentLinkTo;
9013
+ links?: GitSyncSiteCustomizationHeaderItem[];
9014
+ }
9015
+ /** A group of links shown in the published site's footer. */
9016
+ export interface GitSyncSiteCustomizationFooterGroup {
9017
+ title: string;
9018
+ /** Localized overrides for the footer group title, keyed by locale. */
9019
+ localizedTitle?: LocalizedString;
9020
+ links: GitSyncSiteCustomizationContentLink[];
9021
+ }
9022
+ /** Footer settings. */
9023
+ export interface GitSyncSiteCustomizationFooter {
9024
+ /**
9025
+ * Themed footer logo. Each variant must use its reserved repository
9026
+ * asset path — light: `.gitbook/assets/footer-logo-light.<ext>`, dark:
9027
+ * `.gitbook/assets/footer-logo-dark.<ext>`, where `<ext>` is the
9028
+ * image's file extension (e.g. `png`, `svg`). Any other filename is
9029
+ * rejected.
9030
+ */
9031
+ logo?: GitSyncSiteCustomizationThemedAssetPath;
9032
+ groups?: GitSyncSiteCustomizationFooterGroup[];
9033
+ /** @maxLength 300 */
9034
+ copyright?: string;
9035
+ }
9036
+ /** Announcement banner shown above the published site. */
9037
+ export interface GitSyncSiteCustomizationAnnouncement {
9038
+ /** Whether to show the site's announcement. */
9039
+ enabled: boolean;
9040
+ /** The text content of the announcement. */
9041
+ message: CustomizationAnnouncementMessage;
9042
+ /** Localized overrides for the announcement message, keyed by locale. */
9043
+ localizedMessage?: LocalizedString128;
9044
+ /** The content or URL the announcement links to when clicked. */
9045
+ link?: GitSyncSiteCustomizationContentLink;
9046
+ /** Semantic style of the announcement banner. */
9047
+ style: "info" | "warning" | "danger" | "success";
9048
+ }
9049
+ /** Dark/light theme mode settings. */
9050
+ export interface GitSyncSiteCustomizationThemeModes {
9051
+ default: CustomizationDefaultThemeMode;
9052
+ /** Whether readers can switch between dark and light mode. */
9053
+ toggeable: boolean;
9054
+ }
9055
+ /** Reader feedback settings. */
9056
+ export interface GitSyncSiteCustomizationFeedback {
9057
+ /** Whether reader feedback gathering is enabled. */
9058
+ enabled: boolean;
9059
+ }
9060
+ /** AI assistant settings. */
9061
+ export interface GitSyncSiteCustomizationAI {
9062
+ mode: CustomizationAIMode;
9063
+ /** Suggested questions to display at the start of the chosen AI mode. */
9064
+ suggestions?: CustomizationSuggestedQuestions;
9065
+ }
9066
+ /**
9067
+ * Ordered page-level action buttons exposed in the published site's page menu.
9068
+ * @uniqueItems true
9069
+ */
9070
+ export type GitSyncSiteCustomizationPageActions = CustomizationPageActionType[];
9071
+ /** External link behavior. */
9072
+ export interface GitSyncSiteCustomizationExternalLinks {
9073
+ /**
9074
+ * How external links should open when clicked.
9075
+ * - `self`: External links open in the current tab.
9076
+ * - `blank`: External links open in a new browser tab.
9077
+ */
9078
+ target: SiteExternalLinksTarget;
9079
+ }
9080
+ /** Pagination navigation settings. */
9081
+ export interface GitSyncSiteCustomizationPagination {
9082
+ /** Whether the prev/next pagination navigation is shown on pages. */
9083
+ enabled: boolean;
9084
+ }
9085
+ /** Privacy policy link shown on the published site. */
9086
+ export interface GitSyncSiteCustomizationPrivacyPolicy {
9087
+ url?: URL;
9088
+ }
9089
+ /** Social preview asset. */
9090
+ export interface GitSyncSiteCustomizationSocialPreview {
9091
+ /**
9092
+ * Reserved repository asset path for the social preview image:
9093
+ * `.gitbook/assets/social-preview.<ext>`, where `<ext>` is the
9094
+ * image's file extension (e.g. `png`, `jpg`). Any other filename is
9095
+ * rejected.
9096
+ */
9097
+ url?: GitSyncSiteCustomizationAssetPath;
9098
+ }
9099
+ /** A single social account entry. */
9100
+ export interface GitSyncSiteCustomizationSocialAccount {
9101
+ /** The platform of the social handle. */
9102
+ platform: SiteSocialAccountPlatform;
9103
+ /** A handle on a social platform, without prefixes like the @ symbol. */
9104
+ handle: SiteSocialAccountHandle;
9105
+ display: {
9106
+ footer: boolean;
9107
+ header: boolean;
9108
+ };
9109
+ }
9110
+ /** Visitor insights settings. */
9111
+ export interface GitSyncSiteCustomizationInsights {
9112
+ /** Whether GitBook identifies visitors on the site using a cookie. */
9113
+ trackingCookie: boolean;
9114
+ }
9115
+ /**
9116
+ * Customization settings for the published site, authored in `docs.yaml`.
9117
+ *
9118
+ * Every top-level field is optional — a Git Sync YAML is a **sparse override** of
9119
+ * the live customization. Fields you don't include stay at whatever the site
9120
+ * has as default.
9121
+ *
9122
+ * Custom fonts referenced from `styling.font` / `styling.monospaceFont` must
9123
+ * have a matching definition under `site.fonts[]`.
9124
+ */
9125
+ export interface GitSyncSiteCustomization {
9126
+ /** Title to use for the published site. If omitted, falls back to the default site title. */
9127
+ publishedTitle?: SiteTitle;
9128
+ /** Localized titles for the published site, keyed by locale. */
9129
+ localizedPublishedTitles?: LocalizedString128;
9130
+ /** Styling settings. */
9131
+ styling?: GitSyncSiteCustomizationStyling;
9132
+ /** Favicon for the published site. The `icon` variant references a repository asset path; the `emoji` variant uses a single emoji character; */
9133
+ favicon?: GitSyncSiteCustomizationFavicon;
9134
+ /** Header settings. */
9135
+ header?: GitSyncSiteCustomizationHeader;
9136
+ /** Footer settings. */
9137
+ footer?: GitSyncSiteCustomizationFooter;
9138
+ /** Announcement banner shown above the published site. */
9139
+ announcement?: GitSyncSiteCustomizationAnnouncement;
9140
+ /** Dark/light theme mode settings. */
9141
+ themeModes?: GitSyncSiteCustomizationThemeModes;
9142
+ /** Reader feedback settings. */
9143
+ feedback?: GitSyncSiteCustomizationFeedback;
9144
+ /** AI assistant settings. */
9145
+ ai?: GitSyncSiteCustomizationAI;
9146
+ /** Ordered page-level action buttons exposed in the published site's page menu. */
9147
+ pageActions?: GitSyncSiteCustomizationPageActions;
9148
+ /** External link behavior. */
9149
+ externalLinks?: GitSyncSiteCustomizationExternalLinks;
9150
+ /** Pagination navigation settings. */
9151
+ pagination?: GitSyncSiteCustomizationPagination;
9152
+ /** Privacy policy link shown on the published site. */
9153
+ privacyPolicy?: GitSyncSiteCustomizationPrivacyPolicy;
9154
+ /** Social preview asset. */
9155
+ socialPreview?: GitSyncSiteCustomizationSocialPreview;
9156
+ /**
9157
+ * Social accounts to surface on the site.
9158
+ * @maxItems 10
9159
+ */
9160
+ socialAccounts?: GitSyncSiteCustomizationSocialAccount[];
9161
+ /** Visitor insights settings. */
9162
+ insights?: GitSyncSiteCustomizationInsights;
9163
+ }
9164
+ /**
9165
+ * Schema for a site `docs.yaml` file — the canonical contract for what
9166
+ * can be authored in Git Sync to drive a site's customization and structure.
9167
+ */
9168
+ export interface GitSyncSiteConfig {
9169
+ /**
9170
+ * Reserved for future use. When a breaking schema change ships, this
9171
+ * field lets the parser branch on the version; absence means v1.
9172
+ * @default 1
9173
+ */
9174
+ version?: 1;
9175
+ site: {
9176
+ /**
9177
+ * Display title for the site.
9178
+ * @minLength 1
9179
+ */
9180
+ title: string;
9181
+ /**
9182
+ * Hierarchical structure of a site in a Git Sync YAML. Each entry is one of
9183
+ * three node types: a section group, a section, or a space.
9184
+ */
9185
+ structure: GitSyncSiteStructure;
9186
+ /** Custom font definitions referenced from `site.customization.styling`. */
9187
+ fonts?: GitSyncSiteCustomizationFontDefinition[];
9188
+ /**
9189
+ * Customization settings for the published site, authored in `docs.yaml`.
9190
+ *
9191
+ * Every top-level field is optional — a Git Sync YAML is a **sparse override** of
9192
+ * the live customization. Fields you don't include stay at whatever the site
9193
+ * has as default.
9194
+ *
9195
+ * Custom fonts referenced from `styling.font` / `styling.monospaceFont` must
9196
+ * have a matching definition under `site.fonts[]`.
9197
+ */
9198
+ customization?: GitSyncSiteCustomization;
9199
+ };
9200
+ }
8501
9201
  export type IntegrationEnvironmentSpaceInstallation = IntegrationContentInstallationBase & {
8502
9202
  /** The space the integration is installed on. */
8503
9203
  space: string;
@@ -9005,12 +9705,39 @@ export interface AgentStreamMessageResponse {
9005
9705
  type: "message_response";
9006
9706
  response: AIStreamResponse;
9007
9707
  }
9708
+ /** Describes what the agent is currently doing while processing, used to display a live activity indicator in the conversation. */
9709
+ export interface AgentActivity {
9710
+ /** The kind of activity the agent is currently performing. `thinking` while it reasons or decides on a next action, `tool` while it runs a tool, and `responding` while it writes its answer. */
9711
+ type: "thinking" | "tool" | "responding";
9712
+ /** When `type` is `tool`, the name of the tool being called (matches `AIToolCall.tool`). */
9713
+ tool?: string;
9714
+ }
9715
+ /** An option the user can pick when answering a question asked by the agent. */
9716
+ export interface AgentQuestionOption {
9717
+ /** Short label for the option, displayed as a button and used as the answer. */
9718
+ label: string;
9719
+ /** Optional longer description to clarify what the option means. */
9720
+ description?: string;
9721
+ }
9722
+ /** A question the agent is waiting for the user to answer. While set, the client replaces the prompt with a choice control. The user can pick one of the options or answer with a custom free-text message; either way the answer resolves the pending tool call. */
9723
+ export interface AgentPendingQuestion {
9724
+ /** ID of the tool call this question resolves, used to continue the conversation. */
9725
+ toolCallId: string;
9726
+ /** The question to display to the user. */
9727
+ question: string;
9728
+ /** The options the user can choose from. */
9729
+ options: AgentQuestionOption[];
9730
+ }
9008
9731
  export interface AgentState {
9009
9732
  status: AgentStatus;
9010
9733
  /** List of response suggestions for the user to select from. */
9011
9734
  suggestions: string[];
9012
9735
  /** List of messages sent by the users queued to processed. */
9013
9736
  queuedMessages: AIMessageInput[];
9737
+ /** What the agent is currently doing. Only set while the agent is processing. */
9738
+ activity?: AgentActivity;
9739
+ /** A question the agent is waiting for the user to answer. While set, the client replaces the prompt with a choice control. */
9740
+ pendingQuestion?: AgentPendingQuestion;
9014
9741
  }
9015
9742
  /** Payload emitted by the agent with its current state. */
9016
9743
  export interface AgentStreamState {
@@ -10124,6 +10851,50 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
10124
10851
  * @secure
10125
10852
  */
10126
10853
  removeRequestedReviewerFromChangeRequest: (spaceId: EntityId, changeRequestId: EntityId, userId: string, params?: RequestParams) => Promise<HttpResponse<void, any>>;
10854
+ /**
10855
+ * No description
10856
+ *
10857
+ * @tags change-request-conversations
10858
+ * @name ListChangeRequestConversations
10859
+ * @summary List the agent conversations of a change request
10860
+ * @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/conversations
10861
+ * @secure
10862
+ */
10863
+ listChangeRequestConversations: (spaceId: EntityId, changeRequestId: EntityId, query?: {
10864
+ /** Identifier of the page results to fetch. */
10865
+ page?: string;
10866
+ /**
10867
+ * The number of results per page
10868
+ * @min 0
10869
+ * @max 1000
10870
+ */
10871
+ limit?: number;
10872
+ }, params?: RequestParams) => Promise<HttpResponse<List & {
10873
+ items: AgentConversation[];
10874
+ }, any>>;
10875
+ /**
10876
+ * No description
10877
+ *
10878
+ * @tags change-request-conversations
10879
+ * @name UpdateChangeRequestConversation
10880
+ * @summary Update an agent conversation
10881
+ * @request PATCH:/spaces/{spaceId}/change-requests/{changeRequestId}/conversations/{conversationId}
10882
+ * @secure
10883
+ */
10884
+ updateChangeRequestConversation: (spaceId: EntityId, changeRequestId: EntityId, conversationId: string, data: {
10885
+ /** The new title of the conversation. */
10886
+ title: string;
10887
+ }, params?: RequestParams) => Promise<HttpResponse<AgentConversation, any>>;
10888
+ /**
10889
+ * No description
10890
+ *
10891
+ * @tags change-request-conversations
10892
+ * @name DeleteChangeRequestConversation
10893
+ * @summary Delete an agent conversation
10894
+ * @request DELETE:/spaces/{spaceId}/change-requests/{changeRequestId}/conversations/{conversationId}
10895
+ * @secure
10896
+ */
10897
+ deleteChangeRequestConversation: (spaceId: EntityId, changeRequestId: EntityId, conversationId: string, params?: RequestParams) => Promise<HttpResponse<void, any>>;
10127
10898
  /**
10128
10899
  * No description
10129
10900
  *
@@ -10348,6 +11119,28 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
10348
11119
  */
10349
11120
  computed?: boolean;
10350
11121
  }, params?: RequestParams) => Promise<HttpResponse<Revision, any>>;
11122
+ /**
11123
+ * @description This endpoint allows you to update the content of a change request by providing an array of changes. Each change is ran sequentially. This operation will create a single new revision in the change request, apply all changes, and then point the change request to the new revision. This endpoint will only run if all changes in the request are valid. If any change fails, the entire request will fail and no changes will be applied.
11124
+ *
11125
+ * @tags change-request-content
11126
+ * @name UpdateChangeRequestContent
11127
+ * @summary Update the content of a change request
11128
+ * @request POST:/spaces/{spaceId}/change-requests/{changeRequestId}/content
11129
+ * @secure
11130
+ */
11131
+ updateChangeRequestContent: (spaceId: EntityId, changeRequestId: EntityId, data: {
11132
+ /**
11133
+ * @maxItems 50
11134
+ * @minItems 1
11135
+ */
11136
+ changes: ChangeRequestContentChange[];
11137
+ }, params?: RequestParams) => Promise<HttpResponse<ChangeRequest, {
11138
+ error: {
11139
+ /** @format int32 */
11140
+ code: 404;
11141
+ message: string;
11142
+ };
11143
+ }>>;
10351
11144
  /**
10352
11145
  * No description
10353
11146
  *
@@ -12599,6 +13392,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
12599
13392
  space?: string;
12600
13393
  /** If defined, only change requests linked to this site topic will be returned. */
12601
13394
  topic?: string;
13395
+ /** Controls whether change requests from triage are included. Pass `none` to exclude change requests from triage, or `all` to include them. Default is `none`. */
13396
+ finding?: "none" | "all";
12602
13397
  /** The field to sort change requests by. Defaults to 'updatedAt'. */
12603
13398
  orderBy?: ChangeRequestOrderBy;
12604
13399
  }, params?: RequestParams) => Promise<HttpResponse<List & {
@@ -14204,6 +14999,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
14204
14999
  /** You may optionally provide additional information about the context of the question. This doesn't affect the scope of the search, but GitBook may use this information to provide a better answer. Generally speaking, you should provide as much context as possible. */
14205
15000
  context?: {
14206
15001
  siteSpaceId?: string;
15002
+ /**
15003
+ * The end goal the agent is trying to accomplish on behalf of the user. Unlike the question, which is the immediate query, the goal describes the broader task or outcome the agent is working towards. GitBook uses this to steer the answer towards what is ultimately useful for that goal.
15004
+ * @maxLength 1024
15005
+ */
15006
+ goal?: string;
14207
15007
  };
14208
15008
  scope: SiteSearchScope;
14209
15009
  /** Identifiers for a GitBook site session, used for analytics and adaptive content. */
@@ -14378,7 +15178,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
14378
15178
  * @secure
14379
15179
  */
14380
15180
  updateSiteFindingById: (organizationId: EntityId, siteId: string, siteFindingId: string, data: {
14381
- status: "open" | "canceled";
15181
+ status: "open" | "done" | "canceled";
14382
15182
  }, params?: RequestParams) => Promise<HttpResponse<SiteFinding, any>>;
14383
15183
  /**
14384
15184
  * No description
@@ -14952,18 +15752,10 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
14952
15752
  /** Should the reader be able to switch between dark and light mode. Set to null to reset the override. */
14953
15753
  toggeable?: boolean | null;
14954
15754
  };
14955
- pdf?: {
14956
- /** If true, PDF export is enabled for the published site. Set to null to reset the override. */
14957
- enabled: boolean | null;
14958
- };
14959
15755
  feedback?: {
14960
15756
  /** If true, feedback gathering is enabled. Set to null to reset the override. */
14961
15757
  enabled: boolean | null;
14962
15758
  };
14963
- git?: {
14964
- /** Whether the published site should show a link to edit the content on the git provider set up in the Git Sync. Set to null to reset the override. */
14965
- showEditLink: boolean | null;
14966
- };
14967
15759
  externalLinks?: {
14968
15760
  /** How external links should open. Set to null to reset the override. */
14969
15761
  target: SiteExternalLinksTarget | null;