@gitbook/api 0.184.0 → 0.185.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
@@ -1134,6 +1134,7 @@ export type ContentKitInlineElement = ContentKitText | ContentKitImage | Content
1134
1134
  export type ContentKitDescendantElement = ContentKitButton | ContentKitTextInput | ContentKitHStack | ContentKitVStack | ContentKitBox | ContentKitDivider | ContentKitWebFrame | ContentKitCodeBlock | ContentKitMarkdown | ContentKitCard | ContentKitImage | ContentKitInput | ContentKitSelect | ContentKitSwitch | ContentKitCheckbox | ContentKitRadio | ContentKitText | ContentKitHint | ContentKitLink | ContentKitStepperStep;
1135
1135
  /** Any event that can be received from GitBook. */
1136
1136
  export type Event = InstallationSetupEvent | InstallationDeletedEvent | SpaceInstallationSetupEvent | SpaceInstallationDeletedEvent | SiteInstallationSetupEvent | SiteInstallationDeletedEvent | SiteViewEvent | SpaceContentUpdatedEvent | SpaceGitSyncCompletedEvent | SpaceGitSyncStartedEvent | SpaceVisibilityUpdatedEvent | TaskEvent | FetchEvent | FetchPublishedScriptEvent | FetchVisitorAuthenticationEvent | UIRenderEvent | ContentComputeDocumentEvent | ContentComputeRevisionEvent | PageFeedbackEvent;
1137
+ export type ChangeRequestContentChange = ChangeRequestContentChangeUpdatePage;
1137
1138
  /** An absolute reference to content in GitBook. */
1138
1139
  export type ContentLocation = ContentLocationFile | ContentLocationURL | ContentLocationPage | ContentLocationUser | ContentLocationCollection | ContentLocationSpace | ContentLocationReusableContent | ContentLocationOpenAPI;
1139
1140
  export type Revision = RevisionTypeEdits | RevisionTypeMerge | RevisionTypeRollback | RevisionTypeUpdate | RevisionTypeComputed;
@@ -2070,7 +2071,24 @@ export interface DocumentBlockDivider {
2070
2071
  isVoid: true;
2071
2072
  data: object;
2072
2073
  }
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;
2074
+ export interface DocumentBlockPrompt {
2075
+ object: "block";
2076
+ type: "prompt";
2077
+ key?: string;
2078
+ data: {
2079
+ description: string;
2080
+ /** Name of the icon */
2081
+ icon?: Icon;
2082
+ openInAIProviders?: boolean;
2083
+ };
2084
+ /**
2085
+ * @maxItems 1
2086
+ * @minItems 1
2087
+ */
2088
+ nodes: DocumentBlockCode[];
2089
+ isVoid?: false;
2090
+ }
2091
+ 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
2092
  export interface DocumentBlockIf {
2075
2093
  object: "block";
2076
2094
  type: "if";
@@ -2228,7 +2246,7 @@ export interface DocumentBlockExpandable {
2228
2246
  fragment: "expandable-body";
2229
2247
  type: "expandable-body";
2230
2248
  /** @minItems 1 */
2231
- nodes: (DocumentBlocksEssentials | DocumentBlockFile | DocumentBlockImages | DocumentBlockCode | DocumentBlockTable | DocumentBlockHint | DocumentBlockQuote | DocumentBlockReusableContent | DocumentBlockIntegration)[];
2249
+ nodes: (DocumentBlocksEssentials | DocumentBlockFile | DocumentBlockImages | DocumentBlockCode | DocumentBlockTable | DocumentBlockHint | DocumentBlockPrompt | DocumentBlockQuote | DocumentBlockReusableContent | DocumentBlockIntegration)[];
2232
2250
  }))[];
2233
2251
  meta?: {
2234
2252
  /** Unique ID to be used in an URL for the block. */
@@ -2249,7 +2267,7 @@ export interface DocumentBlockTabsItem {
2249
2267
  object: "block";
2250
2268
  type: "tabs-item";
2251
2269
  key?: string;
2252
- nodes: (DocumentBlocksEssentials | DocumentBlockContentRef | DocumentBlockCode | DocumentBlockEmbed | DocumentBlockFile | DocumentBlockImages | DocumentBlockDrawing | DocumentBlockHint | DocumentBlockQuote | DocumentBlockMath | DocumentBlockIntegration)[];
2270
+ nodes: (DocumentBlocksEssentials | DocumentBlockContentRef | DocumentBlockCode | DocumentBlockEmbed | DocumentBlockFile | DocumentBlockImages | DocumentBlockDrawing | DocumentBlockHint | DocumentBlockPrompt | DocumentBlockQuote | DocumentBlockMath | DocumentBlockIntegration)[];
2253
2271
  data: {
2254
2272
  title?: string;
2255
2273
  /** Name of the icon */
@@ -2360,7 +2378,7 @@ export interface DocumentBlockStepperStep {
2360
2378
  object: "block";
2361
2379
  type: "stepper-step";
2362
2380
  key?: string;
2363
- nodes: (DocumentBlocksEssentials | DocumentBlockContentRef | DocumentBlockCode | DocumentBlockEmbed | DocumentBlockFile | DocumentBlockImages | DocumentBlockDrawing | DocumentBlockHint | DocumentBlockQuote | DocumentBlockMath | DocumentBlockIntegration | DocumentBlockExpandable)[];
2381
+ nodes: (DocumentBlocksEssentials | DocumentBlockContentRef | DocumentBlockCode | DocumentBlockEmbed | DocumentBlockFile | DocumentBlockImages | DocumentBlockDrawing | DocumentBlockHint | DocumentBlockPrompt | DocumentBlockQuote | DocumentBlockMath | DocumentBlockIntegration | DocumentBlockExpandable)[];
2364
2382
  data: {
2365
2383
  icon?: string;
2366
2384
  };
@@ -2378,7 +2396,7 @@ export interface DocumentBlockColumn {
2378
2396
  object: "block";
2379
2397
  type: "column";
2380
2398
  key?: string;
2381
- nodes: (DocumentBlocksEssentials | DocumentBlockImages | DocumentBlockCode | DocumentBlockHint | DocumentBlockContentRef | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockFile | DocumentBlockIntegration | DocumentBlockMath | DocumentBlockQuote | DocumentBlockTable | DocumentBlockExpandable | DocumentBlockStepper)[];
2399
+ nodes: (DocumentBlocksEssentials | DocumentBlockImages | DocumentBlockCode | DocumentBlockHint | DocumentBlockPrompt | DocumentBlockContentRef | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockFile | DocumentBlockIntegration | DocumentBlockMath | DocumentBlockQuote | DocumentBlockTable | DocumentBlockExpandable | DocumentBlockStepper)[];
2382
2400
  isVoid?: false;
2383
2401
  data: {
2384
2402
  width?: Length;
@@ -2399,7 +2417,7 @@ export interface DocumentBlockUpdate {
2399
2417
  object: "block";
2400
2418
  type: "update";
2401
2419
  key?: string;
2402
- nodes: (DocumentBlocksEssentials | DocumentBlockContentRef | DocumentBlockCode | DocumentBlockEmbed | DocumentBlockFile | DocumentBlockImages | DocumentBlockDrawing | DocumentBlockHint | DocumentBlockQuote | DocumentBlockMath | DocumentBlockIntegration | DocumentBlockTabs | DocumentBlockExpandable)[];
2420
+ nodes: (DocumentBlocksEssentials | DocumentBlockContentRef | DocumentBlockCode | DocumentBlockEmbed | DocumentBlockFile | DocumentBlockImages | DocumentBlockDrawing | DocumentBlockHint | DocumentBlockPrompt | DocumentBlockQuote | DocumentBlockMath | DocumentBlockIntegration | DocumentBlockTabs | DocumentBlockExpandable)[];
2403
2421
  data: {
2404
2422
  date: Timestamp;
2405
2423
  /** Array of tags. Each tag is id'ed by its slug. */
@@ -2418,7 +2436,7 @@ export interface DocumentBlockUpdates {
2418
2436
  format: "numeric" | "full" | "short";
2419
2437
  };
2420
2438
  }
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;
2439
+ 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
2440
  export interface DocumentInlineMention {
2423
2441
  object: "inline";
2424
2442
  type: "mention";
@@ -3037,6 +3055,10 @@ export interface OrganizationBilling {
3037
3055
  paidPremiumSites?: number;
3038
3056
  /** The number of paid ultimate sites on the current subscription. */
3039
3057
  paidUltimateSites?: number;
3058
+ /** Whether changing billing interval is allowed */
3059
+ canChangeInterval: boolean;
3060
+ /** Whether configuring SAML is allowed */
3061
+ canUseSAML: boolean;
3040
3062
  }
3041
3063
  /**
3042
3064
  * A short description giving context on the reason for the block.
@@ -3497,6 +3519,16 @@ export type ChangeRequestRequestedReviewer = {
3497
3519
  /** The team who was requested to review. */
3498
3520
  team: Team;
3499
3521
  });
3522
+ export interface AgentConversation {
3523
+ /** Type of Object, always equals to "agent-conversation" */
3524
+ object: "agent-conversation";
3525
+ /** 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". */
3526
+ id: string;
3527
+ /** The title of the conversation, generated from the first message. Absent until generated. */
3528
+ title?: string;
3529
+ createdAt: Timestamp;
3530
+ updatedAt: Timestamp;
3531
+ }
3500
3532
  export interface PostCommentSchema {
3501
3533
  /** The node to which the comment is posted, if any. */
3502
3534
  node?: string;
@@ -3555,6 +3587,13 @@ export interface PostCommentReplySchema {
3555
3587
  export type ChangeRequestUserContributor = UserContributor & {
3556
3588
  actionType: "edit" | "comment";
3557
3589
  };
3590
+ /** Replace the document of an existing page with another document. */
3591
+ export interface ChangeRequestContentChangeUpdatePage {
3592
+ operation: "update_page";
3593
+ /** ID of the page whose content should be updated. */
3594
+ page: string;
3595
+ document: Document;
3596
+ }
3558
3597
  export interface ChangedRevisionPage {
3559
3598
  id: string;
3560
3599
  type: RevisionPageType;
@@ -6406,7 +6445,7 @@ export interface SiteInsightsSession {
6406
6445
  sessionId: string;
6407
6446
  }
6408
6447
  /** Integration source */
6409
- export type ContextConnector = string | "builtin:email" | "builtin:api" | "builtin:website" | "builtin:youtube" | "builtin:github-discussions" | "builtin:github-issues" | "builtin:intercom";
6448
+ export type ContextConnector = string | "builtin:email" | "builtin:api" | "builtin:website" | "builtin:youtube" | "builtin:github-discussions" | "builtin:github-issues" | "builtin:intercom" | "builtin:zendesk";
6410
6449
  /**
6411
6450
  * Title for the context record
6412
6451
  * @minLength 1
@@ -6700,6 +6739,16 @@ export type ContextConnectorSetup = {
6700
6739
  /** @minLength 1 */
6701
6740
  token: string;
6702
6741
  };
6742
+ } | {
6743
+ connector: "builtin:zendesk";
6744
+ setupSettings: {
6745
+ /** @minLength 1 */
6746
+ subdomain: string;
6747
+ /** @minLength 1 */
6748
+ email: string;
6749
+ /** @minLength 1 */
6750
+ apiToken: string;
6751
+ };
6703
6752
  };
6704
6753
  export type ContextConnection = {
6705
6754
  object: "context-connection";
@@ -8234,6 +8283,33 @@ export interface Index {
8234
8283
  collections: Record<string, UserCollectionsPermissions>;
8235
8284
  spaces: Record<string, UserSpacesPermissions>;
8236
8285
  }
8286
+ /** Date-based billing override value, either indefinite or a timestamp. */
8287
+ export type OrganizationBillingDateOverride = true | Timestamp;
8288
+ /**
8289
+ * Current numeric billing override, when set.
8290
+ * @min 0
8291
+ */
8292
+ export type OrganizationBillingNumericOverride = number;
8293
+ export interface OrganizationBillingOverrides {
8294
+ overrides: {
8295
+ /** Current interval-change override, when set. */
8296
+ frozenInterval?: OrganizationBillingDateOverride;
8297
+ /** Current SAML override, when set. */
8298
+ enableSAML?: OrganizationBillingDateOverride;
8299
+ /** Current minimum users override, when set. */
8300
+ minUsers?: OrganizationBillingNumericOverride;
8301
+ /** Current maximum users override, when set. */
8302
+ maxUsers?: OrganizationBillingNumericOverride;
8303
+ /** Current minimum premium sites override, when set. */
8304
+ minPremiumSites?: OrganizationBillingNumericOverride;
8305
+ /** Current maximum premium sites override, when set. */
8306
+ maxPremiumSites?: OrganizationBillingNumericOverride;
8307
+ /** Current minimum ultimate sites override, when set. */
8308
+ minUltimateSites?: OrganizationBillingNumericOverride;
8309
+ /** Current maximum ultimate sites override, when set. */
8310
+ maxUltimateSites?: OrganizationBillingNumericOverride;
8311
+ };
8312
+ }
8237
8313
  export type BackOfficeSite = Site & {
8238
8314
  /** ID of the organization owning this site */
8239
8315
  organization: string;
@@ -8498,6 +8574,613 @@ export interface GitSyncOperation {
8498
8574
  /** Error details, defined if state is `failure`. */
8499
8575
  error?: string;
8500
8576
  }
8577
+ /**
8578
+ * A section group — a container that nests sections (and other section
8579
+ * groups). Discriminated by `type: section-group`. Up to one level of nested
8580
+ * section groups is allowed.
8581
+ */
8582
+ export interface GitSyncSiteStructureSectionGroup {
8583
+ /** Discriminator for a section group node. */
8584
+ type: "section-group";
8585
+ /**
8586
+ * Stable identifier for this section group, used as the Git Sync key.
8587
+ * Must be unique amongst all other section groups of the site. For
8588
+ * example: `section-group-product` or `section-group-1`.
8589
+ * @minLength 1
8590
+ */
8591
+ key: string;
8592
+ /** Title of the site section group */
8593
+ title: SiteSectionGroupTitle;
8594
+ /** Localized string value with a 128 character limit, keyed by locale. Contains overrides for non-default languages only. */
8595
+ localizedTitle?: LocalizedString128;
8596
+ /** Name of the icon */
8597
+ icon?: Icon;
8598
+ /** Whether the section group is draft and not live. */
8599
+ draft?: boolean;
8600
+ /** Section or section group nodes nested under this group. */
8601
+ children?: (GitSyncSiteStructureSectionGroup | GitSyncSiteStructureSection)[];
8602
+ }
8603
+ /**
8604
+ * A space — a single content unit in the site's navigation tree. Discriminated
8605
+ * by `type: space`.
8606
+ *
8607
+ * The space's content lives in the synced repository at the directory pointed
8608
+ * to by `content.directory`. Hierarchy comes from where the space appears in
8609
+ * the YAML (under a section, a section group, or at the root), not from an
8610
+ * explicit parent reference.
8611
+ */
8612
+ export interface GitSyncSiteStructureSpace {
8613
+ /** Discriminator for a space node. */
8614
+ type: "space";
8615
+ /**
8616
+ * Stable identifier for this space, used as the Git Sync key. Must be
8617
+ * unique amongst all other spaces of the site. For example: `space-docs`
8618
+ * or `space-1`.
8619
+ * @minLength 1
8620
+ */
8621
+ key: string;
8622
+ /** @minLength 1 */
8623
+ title: string;
8624
+ /** Localized string value with a 128 character limit, keyed by locale. Contains overrides for non-default languages only. */
8625
+ localizedTitle?: LocalizedString128;
8626
+ /** Path to the space on the site */
8627
+ path: SiteSpacePath;
8628
+ /** Whether this is the default space for the site. */
8629
+ default?: boolean;
8630
+ /** Whether the space is hidden from the site's navigation. */
8631
+ hidden?: boolean;
8632
+ /** Whether the space is draft and not live. */
8633
+ draft?: boolean;
8634
+ /** Expression to evaluate */
8635
+ condition?: Expression;
8636
+ /** Where the space's content lives in the synced repository. */
8637
+ content: {
8638
+ /**
8639
+ * Repository-relative directory containing this space's content.
8640
+ * @minLength 1
8641
+ */
8642
+ directory: string;
8643
+ language?: TranslationLanguage;
8644
+ };
8645
+ }
8646
+ /**
8647
+ * A section — a group of spaces sharing a top-level navigation entry.
8648
+ * Discriminated by `type: section`.
8649
+ *
8650
+ * Spaces inside a section are listed inline under `children`. A site with
8651
+ * sections must mark exactly one section with `default: true`.
8652
+ */
8653
+ export interface GitSyncSiteStructureSection {
8654
+ /** Discriminator for a section node. */
8655
+ type: "section";
8656
+ /**
8657
+ * Stable identifier for this section, used as the Git Sync key. Must be
8658
+ * unique amongst all other sections of the site. For example:
8659
+ * `section-guides` or `section-1`.
8660
+ * @minLength 1
8661
+ */
8662
+ key: string;
8663
+ /** Title of the site section */
8664
+ title: SiteSectionTitle;
8665
+ /** Localized string value with a 128 character limit, keyed by locale. Contains overrides for non-default languages only. */
8666
+ localizedTitle?: LocalizedString128;
8667
+ /** Description of the site section */
8668
+ description?: SiteSectionDescription;
8669
+ /** Localized string value with a 256 character limit, keyed by locale. Contains overrides for non-default languages only. */
8670
+ localizedDescription?: LocalizedString256;
8671
+ /** Name of the icon */
8672
+ icon?: Icon;
8673
+ /** Whether this is the default section for the site. */
8674
+ default?: boolean;
8675
+ /** Whether the section is draft and not live. */
8676
+ draft?: boolean;
8677
+ /** Path to the section on the site */
8678
+ path: SiteSectionPath;
8679
+ /** Expression to evaluate */
8680
+ condition?: Expression;
8681
+ /** Space nodes nested under this section. */
8682
+ children?: GitSyncSiteStructureSpace[];
8683
+ }
8684
+ /**
8685
+ * A single node in a Git Sync site structure tree — a section group, a
8686
+ * section, or a space, discriminated by `type`.
8687
+ */
8688
+ export type GitSyncSiteStructureNode = GitSyncSiteStructureSectionGroup | GitSyncSiteStructureSection | GitSyncSiteStructureSpace;
8689
+ /**
8690
+ * Hierarchical structure of a site in a Git Sync YAML. Each entry is one of
8691
+ * three node types: a section group, a section, or a space.
8692
+ */
8693
+ export type GitSyncSiteStructure = GitSyncSiteStructureNode[];
8694
+ /**
8695
+ * Reserved repository-relative path to the font file:
8696
+ * `.gitbook/assets/<key>-<weight>.<ext>`, where `<key>` is the parent
8697
+ * font definition's `key`, `<weight>` is this face's `weight`, and
8698
+ * `<ext>` is one of `woff2`, `woff`.
8699
+ *
8700
+ * For example, a font with `key: brand` and a `700` face is read from
8701
+ * `.gitbook/assets/brand-700.woff2`. Any other path is rejected.
8702
+ * @minLength 1
8703
+ */
8704
+ export type GitSyncSiteCustomizationFontSource = string;
8705
+ /**
8706
+ * Custom font definition for a `site.fonts[]` entry. Referenced from
8707
+ * `customization.styling.font` or `customization.styling.monospaceFont` via
8708
+ * its `key`.
8709
+ *
8710
+ * Rules enforced on a definition:
8711
+ * - It must declare exactly one face for the `400` weight and one for the
8712
+ * `700` weight; the `600` weight is optional. No other weights are allowed,
8713
+ * and a weight may not be declared more than once.
8714
+ * - Each face has a single source file whose `url` is the reserved repository
8715
+ * asset path `.gitbook/assets/<key>-<weight>.<ext>` (`<ext>` is `woff2` or
8716
+ * `woff`). For example a definition with `key: brand` is read from
8717
+ * `.gitbook/assets/brand-400.woff2` and `.gitbook/assets/brand-700.woff2`.
8718
+ */
8719
+ export interface GitSyncSiteCustomizationFontDefinition {
8720
+ /**
8721
+ * Stable identifier referenced from `styling.font` /
8722
+ * `styling.monospaceFont`, and used as the prefix of each face's
8723
+ * reserved asset path (`.gitbook/assets/<key>-<weight>.<ext>`).
8724
+ * @minLength 1
8725
+ * @pattern ^[A-Za-z0-9][A-Za-z0-9_-]*$
8726
+ */
8727
+ key: string;
8728
+ /** The human-readable font-family name used in CSS (e.g., "Open Sans", "Playfair Display"). */
8729
+ fontFamily: FontFamily;
8730
+ /**
8731
+ * Font-face declarations keyed by weight, each specifying its single
8732
+ * source file. The `400` and `700` weights are required; `600` is
8733
+ * optional.
8734
+ */
8735
+ fontFaces: {
8736
+ /**
8737
+ * Reserved repository-relative path to the font file:
8738
+ * `.gitbook/assets/<key>-<weight>.<ext>`, where `<key>` is the parent
8739
+ * font definition's `key`, `<weight>` is this face's `weight`, and
8740
+ * `<ext>` is one of `woff2`, `woff`.
8741
+ *
8742
+ * For example, a font with `key: brand` and a `700` face is read from
8743
+ * `.gitbook/assets/brand-700.woff2`. Any other path is rejected.
8744
+ */
8745
+ "400": GitSyncSiteCustomizationFontSource;
8746
+ /**
8747
+ * Reserved repository-relative path to the font file:
8748
+ * `.gitbook/assets/<key>-<weight>.<ext>`, where `<key>` is the parent
8749
+ * font definition's `key`, `<weight>` is this face's `weight`, and
8750
+ * `<ext>` is one of `woff2`, `woff`.
8751
+ *
8752
+ * For example, a font with `key: brand` and a `700` face is read from
8753
+ * `.gitbook/assets/brand-700.woff2`. Any other path is rejected.
8754
+ */
8755
+ "600"?: GitSyncSiteCustomizationFontSource;
8756
+ /**
8757
+ * Reserved repository-relative path to the font file:
8758
+ * `.gitbook/assets/<key>-<weight>.<ext>`, where `<key>` is the parent
8759
+ * font definition's `key`, `<weight>` is this face's `weight`, and
8760
+ * `<ext>` is one of `woff2`, `woff`.
8761
+ *
8762
+ * For example, a font with `key: brand` and a `700` face is read from
8763
+ * `.gitbook/assets/brand-700.woff2`. Any other path is rejected.
8764
+ */
8765
+ "700": GitSyncSiteCustomizationFontSource;
8766
+ };
8767
+ }
8768
+ /** Themed color (light + dark). */
8769
+ export interface GitSyncSiteCustomizationThemedColor {
8770
+ light: Color;
8771
+ dark: Color;
8772
+ }
8773
+ /** Tint configuration. */
8774
+ export interface GitSyncSiteCustomizationTint {
8775
+ /** Themed color (light + dark). */
8776
+ color: GitSyncSiteCustomizationThemedColor;
8777
+ }
8778
+ /** Reference to a custom font defined under `site.fonts[]`. Matches by `key`. */
8779
+ export interface GitSyncSiteCustomizationFontReference {
8780
+ /**
8781
+ * Matches the `key` of an entry in `site.fonts[]`.
8782
+ * @minLength 1
8783
+ */
8784
+ key: string;
8785
+ }
8786
+ /**
8787
+ * Body font for the site. Either one of the built-in `CustomizationDefaultFont`
8788
+ * values, or a reference to a custom font declared in `site.fonts[]`.
8789
+ */
8790
+ export type GitSyncSiteCustomizationFont = CustomizationDefaultFont | GitSyncSiteCustomizationFontReference;
8791
+ /**
8792
+ * Monospace font for the site. Either one of the built-in
8793
+ * `CustomizationDefaultMonospaceFont` values, or a reference to a custom font
8794
+ * declared in `site.fonts[]`.
8795
+ */
8796
+ export type GitSyncSiteCustomizationMonospaceFont = CustomizationDefaultMonospaceFont | GitSyncSiteCustomizationFontReference;
8797
+ /** Themed code theme (light + dark). */
8798
+ export interface GitSyncSiteCustomizationThemedCodeTheme {
8799
+ light: CustomizationCodeTheme;
8800
+ dark: CustomizationCodeTheme;
8801
+ }
8802
+ /** Code-block syntax-highlighting themes — one for default code blocks and one for OpenAPI request/response samples. */
8803
+ export interface GitSyncSiteCustomizationCodeThemes {
8804
+ /** Themed code theme (light + dark). */
8805
+ default: GitSyncSiteCustomizationThemedCodeTheme;
8806
+ /** Themed code theme (light + dark). */
8807
+ openapi: GitSyncSiteCustomizationThemedCodeTheme;
8808
+ }
8809
+ /** Sidebar style settings. */
8810
+ export interface GitSyncSiteCustomizationSidebar {
8811
+ /**
8812
+ * - `default`: No background, content sits directly against sidebar edge.
8813
+ * - `filled`: Muted background color that extends to sidebar edges.
8814
+ */
8815
+ background: CustomizationSidebarBackgroundStyle;
8816
+ /**
8817
+ * - `default`: Simple list items without special styling, groups are inset with a line.
8818
+ * - `pill`: Rounded capsule shape around selected/active items.
8819
+ * - `line`: Continuous line next to all items, with colored line part for selected/active items.
8820
+ */
8821
+ list: CustomizationSidebarListStyle;
8822
+ }
8823
+ /** Styling settings. */
8824
+ export interface GitSyncSiteCustomizationStyling {
8825
+ /**
8826
+ * The theme to apply to the site. Supercedes the old header preset themes.
8827
+ * - `clean`: Modern theme featuring translucency and minimally-styled elements.
8828
+ * - `muted`: Sophisticated theme with decreased contrast between elements.
8829
+ * - `bold`: High-impact theme with prominent colors and strong contrasts.
8830
+ * - `gradient`: Trendy theme featuring colorful gradients and splashes of color.
8831
+ */
8832
+ theme?: CustomizationTheme;
8833
+ /** Themed color (light + dark). */
8834
+ primaryColor?: GitSyncSiteCustomizationThemedColor;
8835
+ /** Tint configuration. */
8836
+ tint?: GitSyncSiteCustomizationTint;
8837
+ /** Themed color (light + dark). */
8838
+ infoColor?: GitSyncSiteCustomizationThemedColor;
8839
+ /** Themed color (light + dark). */
8840
+ successColor?: GitSyncSiteCustomizationThemedColor;
8841
+ /** Themed color (light + dark). */
8842
+ warningColor?: GitSyncSiteCustomizationThemedColor;
8843
+ /** Themed color (light + dark). */
8844
+ dangerColor?: GitSyncSiteCustomizationThemedColor;
8845
+ corners?: CustomizationCorners;
8846
+ /**
8847
+ * The degree of visual depth (through shadows, gradients and elevation effects) of elements on the site.
8848
+ * - `subtle`: Subtle shadows and minimal elevation.
8849
+ * - `flat`: Flat elements, no shadows and no elevation.
8850
+ */
8851
+ depth?: CustomizationDepth;
8852
+ /**
8853
+ * The style used for regular links in the main content, header and footer. Sidebar items are styled separately.
8854
+ * - `default`: Links are colored in the primary color and feature an underline in the same color.
8855
+ * - `accent`: Links are colored the same as body text and feature an underline in the primary color.
8856
+ */
8857
+ links?: CustomizationLinksStyle;
8858
+ /**
8859
+ * Body font for the site. Either one of the built-in `CustomizationDefaultFont`
8860
+ * values, or a reference to a custom font declared in `site.fonts[]`.
8861
+ */
8862
+ font?: GitSyncSiteCustomizationFont;
8863
+ /**
8864
+ * Monospace font for the site. Either one of the built-in
8865
+ * `CustomizationDefaultMonospaceFont` values, or a reference to a custom font
8866
+ * declared in `site.fonts[]`.
8867
+ */
8868
+ monospaceFont?: GitSyncSiteCustomizationMonospaceFont;
8869
+ icons?: CustomizationIconsStyle;
8870
+ /** Code-block syntax-highlighting themes — one for default code blocks and one for OpenAPI request/response samples. */
8871
+ codeTheme?: GitSyncSiteCustomizationCodeThemes;
8872
+ /** Sidebar style settings. */
8873
+ sidebar?: GitSyncSiteCustomizationSidebar;
8874
+ /**
8875
+ * The style of the search button.
8876
+ * - `prominent`: large search bar in the middle of the header, with less room for other header items,
8877
+ * - `subtle`: small search bar in the corner of the header, with more room for other header items.
8878
+ */
8879
+ search?: CustomizationSearchStyle;
8880
+ }
8881
+ /**
8882
+ * Repository-relative path to an asset in a site Git Sync, e.g.
8883
+ * `.gitbook/assets/header-logo-light.svg`. Absolute URLs are not accepted
8884
+ * here — Git Sync assets must live in the synced repository under
8885
+ * `.gitbook/assets/`.
8886
+ *
8887
+ * This is the shared base type and only validates the `.gitbook/assets/`
8888
+ * prefix. Each field that uses it additionally reserves a specific filename
8889
+ * and set of allowed extensions (e.g. the header logo must be
8890
+ * `header-logo-light.<ext>` / `header-logo-dark.<ext>`); see the description
8891
+ * on the consuming field for the exact reserved path.
8892
+ * @maxLength 2048
8893
+ * @pattern ^\.gitbook/assets/.+
8894
+ */
8895
+ export type GitSyncSiteCustomizationAssetPath = string;
8896
+ /**
8897
+ * Light/dark variants of a Git Sync repository asset path. Used for logos and
8898
+ * favicons that switch with the active theme. Both variants are required.
8899
+ *
8900
+ * Each consuming field reserves the exact light/dark filenames and allowed
8901
+ * extensions (e.g. header logo → `header-logo-light.<ext>` /
8902
+ * `header-logo-dark.<ext>`); see the description on the consuming field.
8903
+ */
8904
+ export interface GitSyncSiteCustomizationThemedAssetPath {
8905
+ /**
8906
+ * Repository-relative path to an asset in a site Git Sync, e.g.
8907
+ * `.gitbook/assets/header-logo-light.svg`. Absolute URLs are not accepted
8908
+ * here — Git Sync assets must live in the synced repository under
8909
+ * `.gitbook/assets/`.
8910
+ *
8911
+ * This is the shared base type and only validates the `.gitbook/assets/`
8912
+ * prefix. Each field that uses it additionally reserves a specific filename
8913
+ * and set of allowed extensions (e.g. the header logo must be
8914
+ * `header-logo-light.<ext>` / `header-logo-dark.<ext>`); see the description
8915
+ * on the consuming field for the exact reserved path.
8916
+ */
8917
+ light: GitSyncSiteCustomizationAssetPath;
8918
+ /**
8919
+ * Repository-relative path to an asset in a site Git Sync, e.g.
8920
+ * `.gitbook/assets/header-logo-light.svg`. Absolute URLs are not accepted
8921
+ * here — Git Sync assets must live in the synced repository under
8922
+ * `.gitbook/assets/`.
8923
+ *
8924
+ * This is the shared base type and only validates the `.gitbook/assets/`
8925
+ * prefix. Each field that uses it additionally reserves a specific filename
8926
+ * and set of allowed extensions (e.g. the header logo must be
8927
+ * `header-logo-light.<ext>` / `header-logo-dark.<ext>`); see the description
8928
+ * on the consuming field for the exact reserved path.
8929
+ */
8930
+ dark: GitSyncSiteCustomizationAssetPath;
8931
+ }
8932
+ /** Favicon for the published site. The `icon` variant references a repository asset path; the `emoji` variant uses a single emoji character; */
8933
+ export type GitSyncSiteCustomizationFavicon = {
8934
+ /**
8935
+ * Themed favicon. Each variant must use its reserved repository
8936
+ * asset path — light: `.gitbook/assets/favicon-light.<ext>`,
8937
+ * dark: `.gitbook/assets/favicon-dark.<ext>`, where `<ext>` is
8938
+ * the image's file extension (e.g. `png`, `svg`, `ico`). Any
8939
+ * other filename is rejected.
8940
+ */
8941
+ icon: GitSyncSiteCustomizationThemedAssetPath;
8942
+ } | {
8943
+ /** Unicode codepoint or character of the emoji */
8944
+ emoji: Emoji;
8945
+ };
8946
+ /**
8947
+ * Link destination, written as a path-string in YAML. Same format as
8948
+ * markdown content links, e.g. `https://example.com`, `/pages/<id>`,
8949
+ * `/spaces/<id>/pages/<id>`, `#anchor`, `/files/<id>`, `/spaces/<id>`.
8950
+ */
8951
+ export type GitSyncSiteCustomizationContentLinkTo = string;
8952
+ /** A label plus a destination, used inside header items, footer groups, and announcements. */
8953
+ export interface GitSyncSiteCustomizationContentLink {
8954
+ title: CustomizationContentLinkTitle;
8955
+ /** Localized overrides for the link title, keyed by locale. */
8956
+ localizedTitle?: LocalizedString64;
8957
+ /**
8958
+ * Link destination, written as a path-string in YAML. Same format as
8959
+ * markdown content links, e.g. `https://example.com`, `/pages/<id>`,
8960
+ * `/spaces/<id>/pages/<id>`, `#anchor`, `/files/<id>`, `/spaces/<id>`.
8961
+ */
8962
+ to: GitSyncSiteCustomizationContentLinkTo;
8963
+ }
8964
+ /** A single item in the published site's top navigation bar. */
8965
+ export interface GitSyncSiteCustomizationHeaderItem {
8966
+ title: string;
8967
+ /** Localized overrides for the header item title, keyed by locale. */
8968
+ localizedTitle?: LocalizedString;
8969
+ style?: "link" | "button-primary" | "button-secondary";
8970
+ /**
8971
+ * Header item destination. Use `null` for items that act as a
8972
+ * dropdown root without a link of their own.
8973
+ */
8974
+ to: GitSyncSiteCustomizationContentLinkTo | null;
8975
+ /** Sub-links shown as a dropdown under this header item. Empty array means no dropdown. */
8976
+ links: GitSyncSiteCustomizationContentLink[];
8977
+ /** Conditional expression evaluated to decide whether the item is shown to the visitor. */
8978
+ condition?: Expression;
8979
+ }
8980
+ /** Header settings. */
8981
+ export interface GitSyncSiteCustomizationHeader {
8982
+ /**
8983
+ * Themed header logo. Each variant must use its reserved repository
8984
+ * asset path — light: `.gitbook/assets/header-logo-light.<ext>`, dark:
8985
+ * `.gitbook/assets/header-logo-dark.<ext>`, where `<ext>` is the
8986
+ * image's file extension (e.g. `png`, `svg`). Any other filename is
8987
+ * rejected.
8988
+ */
8989
+ logo?: GitSyncSiteCustomizationThemedAssetPath;
8990
+ /**
8991
+ * Link destination, written as a path-string in YAML. Same format as
8992
+ * markdown content links, e.g. `https://example.com`, `/pages/<id>`,
8993
+ * `/spaces/<id>/pages/<id>`, `#anchor`, `/files/<id>`, `/spaces/<id>`.
8994
+ */
8995
+ primaryLink?: GitSyncSiteCustomizationContentLinkTo;
8996
+ links?: GitSyncSiteCustomizationHeaderItem[];
8997
+ }
8998
+ /** A group of links shown in the published site's footer. */
8999
+ export interface GitSyncSiteCustomizationFooterGroup {
9000
+ title: string;
9001
+ /** Localized overrides for the footer group title, keyed by locale. */
9002
+ localizedTitle?: LocalizedString;
9003
+ links: GitSyncSiteCustomizationContentLink[];
9004
+ }
9005
+ /** Footer settings. */
9006
+ export interface GitSyncSiteCustomizationFooter {
9007
+ /**
9008
+ * Themed footer logo. Each variant must use its reserved repository
9009
+ * asset path — light: `.gitbook/assets/footer-logo-light.<ext>`, dark:
9010
+ * `.gitbook/assets/footer-logo-dark.<ext>`, where `<ext>` is the
9011
+ * image's file extension (e.g. `png`, `svg`). Any other filename is
9012
+ * rejected.
9013
+ */
9014
+ logo?: GitSyncSiteCustomizationThemedAssetPath;
9015
+ groups?: GitSyncSiteCustomizationFooterGroup[];
9016
+ /** @maxLength 300 */
9017
+ copyright?: string;
9018
+ }
9019
+ /** Announcement banner shown above the published site. */
9020
+ export interface GitSyncSiteCustomizationAnnouncement {
9021
+ /** Whether to show the site's announcement. */
9022
+ enabled: boolean;
9023
+ /** The text content of the announcement. */
9024
+ message: CustomizationAnnouncementMessage;
9025
+ /** Localized overrides for the announcement message, keyed by locale. */
9026
+ localizedMessage?: LocalizedString128;
9027
+ /** The content or URL the announcement links to when clicked. */
9028
+ link?: GitSyncSiteCustomizationContentLink;
9029
+ /** Semantic style of the announcement banner. */
9030
+ style: "info" | "warning" | "danger" | "success";
9031
+ }
9032
+ /** Dark/light theme mode settings. */
9033
+ export interface GitSyncSiteCustomizationThemeModes {
9034
+ default: CustomizationDefaultThemeMode;
9035
+ /** Whether readers can switch between dark and light mode. */
9036
+ toggeable: boolean;
9037
+ }
9038
+ /** Reader feedback settings. */
9039
+ export interface GitSyncSiteCustomizationFeedback {
9040
+ /** Whether reader feedback gathering is enabled. */
9041
+ enabled: boolean;
9042
+ }
9043
+ /** AI assistant settings. */
9044
+ export interface GitSyncSiteCustomizationAI {
9045
+ mode: CustomizationAIMode;
9046
+ /** Suggested questions to display at the start of the chosen AI mode. */
9047
+ suggestions?: CustomizationSuggestedQuestions;
9048
+ }
9049
+ /**
9050
+ * Ordered page-level action buttons exposed in the published site's page menu.
9051
+ * @uniqueItems true
9052
+ */
9053
+ export type GitSyncSiteCustomizationPageActions = CustomizationPageActionType[];
9054
+ /** External link behavior. */
9055
+ export interface GitSyncSiteCustomizationExternalLinks {
9056
+ /**
9057
+ * How external links should open when clicked.
9058
+ * - `self`: External links open in the current tab.
9059
+ * - `blank`: External links open in a new browser tab.
9060
+ */
9061
+ target: SiteExternalLinksTarget;
9062
+ }
9063
+ /** Pagination navigation settings. */
9064
+ export interface GitSyncSiteCustomizationPagination {
9065
+ /** Whether the prev/next pagination navigation is shown on pages. */
9066
+ enabled: boolean;
9067
+ }
9068
+ /** Privacy policy link shown on the published site. */
9069
+ export interface GitSyncSiteCustomizationPrivacyPolicy {
9070
+ url?: URL;
9071
+ }
9072
+ /** Social preview asset. */
9073
+ export interface GitSyncSiteCustomizationSocialPreview {
9074
+ /**
9075
+ * Reserved repository asset path for the social preview image:
9076
+ * `.gitbook/assets/social-preview.<ext>`, where `<ext>` is the
9077
+ * image's file extension (e.g. `png`, `jpg`). Any other filename is
9078
+ * rejected.
9079
+ */
9080
+ url?: GitSyncSiteCustomizationAssetPath;
9081
+ }
9082
+ /** A single social account entry. */
9083
+ export interface GitSyncSiteCustomizationSocialAccount {
9084
+ /** The platform of the social handle. */
9085
+ platform: SiteSocialAccountPlatform;
9086
+ /** A handle on a social platform, without prefixes like the @ symbol. */
9087
+ handle: SiteSocialAccountHandle;
9088
+ display: {
9089
+ footer: boolean;
9090
+ header: boolean;
9091
+ };
9092
+ }
9093
+ /** Visitor insights settings. */
9094
+ export interface GitSyncSiteCustomizationInsights {
9095
+ /** Whether GitBook identifies visitors on the site using a cookie. */
9096
+ trackingCookie: boolean;
9097
+ }
9098
+ /**
9099
+ * Customization settings for the published site, authored in `docs.yaml`.
9100
+ *
9101
+ * Every top-level field is optional — a Git Sync YAML is a **sparse override** of
9102
+ * the live customization. Fields you don't include stay at whatever the site
9103
+ * has as default.
9104
+ *
9105
+ * Custom fonts referenced from `styling.font` / `styling.monospaceFont` must
9106
+ * have a matching definition under `site.fonts[]`.
9107
+ */
9108
+ export interface GitSyncSiteCustomization {
9109
+ /** Title to use for the published site. If omitted, falls back to the default site title. */
9110
+ publishedTitle?: SiteTitle;
9111
+ /** Localized titles for the published site, keyed by locale. */
9112
+ localizedPublishedTitles?: LocalizedString128;
9113
+ /** Styling settings. */
9114
+ styling?: GitSyncSiteCustomizationStyling;
9115
+ /** Favicon for the published site. The `icon` variant references a repository asset path; the `emoji` variant uses a single emoji character; */
9116
+ favicon?: GitSyncSiteCustomizationFavicon;
9117
+ /** Header settings. */
9118
+ header?: GitSyncSiteCustomizationHeader;
9119
+ /** Footer settings. */
9120
+ footer?: GitSyncSiteCustomizationFooter;
9121
+ /** Announcement banner shown above the published site. */
9122
+ announcement?: GitSyncSiteCustomizationAnnouncement;
9123
+ /** Dark/light theme mode settings. */
9124
+ themeModes?: GitSyncSiteCustomizationThemeModes;
9125
+ /** Reader feedback settings. */
9126
+ feedback?: GitSyncSiteCustomizationFeedback;
9127
+ /** AI assistant settings. */
9128
+ ai?: GitSyncSiteCustomizationAI;
9129
+ /** Ordered page-level action buttons exposed in the published site's page menu. */
9130
+ pageActions?: GitSyncSiteCustomizationPageActions;
9131
+ /** External link behavior. */
9132
+ externalLinks?: GitSyncSiteCustomizationExternalLinks;
9133
+ /** Pagination navigation settings. */
9134
+ pagination?: GitSyncSiteCustomizationPagination;
9135
+ /** Privacy policy link shown on the published site. */
9136
+ privacyPolicy?: GitSyncSiteCustomizationPrivacyPolicy;
9137
+ /** Social preview asset. */
9138
+ socialPreview?: GitSyncSiteCustomizationSocialPreview;
9139
+ /**
9140
+ * Social accounts to surface on the site.
9141
+ * @maxItems 10
9142
+ */
9143
+ socialAccounts?: GitSyncSiteCustomizationSocialAccount[];
9144
+ /** Visitor insights settings. */
9145
+ insights?: GitSyncSiteCustomizationInsights;
9146
+ }
9147
+ /**
9148
+ * Schema for a site `docs.yaml` file — the canonical contract for what
9149
+ * can be authored in Git Sync to drive a site's customization and structure.
9150
+ */
9151
+ export interface GitSyncSiteConfig {
9152
+ /**
9153
+ * Reserved for future use. When a breaking schema change ships, this
9154
+ * field lets the parser branch on the version; absence means v1.
9155
+ * @default 1
9156
+ */
9157
+ version?: 1;
9158
+ site: {
9159
+ /**
9160
+ * Display title for the site.
9161
+ * @minLength 1
9162
+ */
9163
+ title: string;
9164
+ /**
9165
+ * Hierarchical structure of a site in a Git Sync YAML. Each entry is one of
9166
+ * three node types: a section group, a section, or a space.
9167
+ */
9168
+ structure: GitSyncSiteStructure;
9169
+ /** Custom font definitions referenced from `site.customization.styling`. */
9170
+ fonts?: GitSyncSiteCustomizationFontDefinition[];
9171
+ /**
9172
+ * Customization settings for the published site, authored in `docs.yaml`.
9173
+ *
9174
+ * Every top-level field is optional — a Git Sync YAML is a **sparse override** of
9175
+ * the live customization. Fields you don't include stay at whatever the site
9176
+ * has as default.
9177
+ *
9178
+ * Custom fonts referenced from `styling.font` / `styling.monospaceFont` must
9179
+ * have a matching definition under `site.fonts[]`.
9180
+ */
9181
+ customization?: GitSyncSiteCustomization;
9182
+ };
9183
+ }
8501
9184
  export type IntegrationEnvironmentSpaceInstallation = IntegrationContentInstallationBase & {
8502
9185
  /** The space the integration is installed on. */
8503
9186
  space: string;
@@ -9005,12 +9688,21 @@ export interface AgentStreamMessageResponse {
9005
9688
  type: "message_response";
9006
9689
  response: AIStreamResponse;
9007
9690
  }
9691
+ /** Describes what the agent is currently doing while processing, used to display a live activity indicator in the conversation. */
9692
+ export interface AgentActivity {
9693
+ /** 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. */
9694
+ type: "thinking" | "tool" | "responding";
9695
+ /** When `type` is `tool`, the name of the tool being called (matches `AIToolCall.tool`). */
9696
+ tool?: string;
9697
+ }
9008
9698
  export interface AgentState {
9009
9699
  status: AgentStatus;
9010
9700
  /** List of response suggestions for the user to select from. */
9011
9701
  suggestions: string[];
9012
9702
  /** List of messages sent by the users queued to processed. */
9013
9703
  queuedMessages: AIMessageInput[];
9704
+ /** What the agent is currently doing. Only set while the agent is processing. */
9705
+ activity?: AgentActivity;
9014
9706
  }
9015
9707
  /** Payload emitted by the agent with its current state. */
9016
9708
  export interface AgentStreamState {
@@ -10124,6 +10816,50 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
10124
10816
  * @secure
10125
10817
  */
10126
10818
  removeRequestedReviewerFromChangeRequest: (spaceId: EntityId, changeRequestId: EntityId, userId: string, params?: RequestParams) => Promise<HttpResponse<void, any>>;
10819
+ /**
10820
+ * No description
10821
+ *
10822
+ * @tags change-request-conversations
10823
+ * @name ListChangeRequestConversations
10824
+ * @summary List the agent conversations of a change request
10825
+ * @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/conversations
10826
+ * @secure
10827
+ */
10828
+ listChangeRequestConversations: (spaceId: EntityId, changeRequestId: EntityId, query?: {
10829
+ /** Identifier of the page results to fetch. */
10830
+ page?: string;
10831
+ /**
10832
+ * The number of results per page
10833
+ * @min 0
10834
+ * @max 1000
10835
+ */
10836
+ limit?: number;
10837
+ }, params?: RequestParams) => Promise<HttpResponse<List & {
10838
+ items: AgentConversation[];
10839
+ }, any>>;
10840
+ /**
10841
+ * No description
10842
+ *
10843
+ * @tags change-request-conversations
10844
+ * @name UpdateChangeRequestConversation
10845
+ * @summary Update an agent conversation
10846
+ * @request PATCH:/spaces/{spaceId}/change-requests/{changeRequestId}/conversations/{conversationId}
10847
+ * @secure
10848
+ */
10849
+ updateChangeRequestConversation: (spaceId: EntityId, changeRequestId: EntityId, conversationId: string, data: {
10850
+ /** The new title of the conversation. */
10851
+ title: string;
10852
+ }, params?: RequestParams) => Promise<HttpResponse<AgentConversation, any>>;
10853
+ /**
10854
+ * No description
10855
+ *
10856
+ * @tags change-request-conversations
10857
+ * @name DeleteChangeRequestConversation
10858
+ * @summary Delete an agent conversation
10859
+ * @request DELETE:/spaces/{spaceId}/change-requests/{changeRequestId}/conversations/{conversationId}
10860
+ * @secure
10861
+ */
10862
+ deleteChangeRequestConversation: (spaceId: EntityId, changeRequestId: EntityId, conversationId: string, params?: RequestParams) => Promise<HttpResponse<void, any>>;
10127
10863
  /**
10128
10864
  * No description
10129
10865
  *
@@ -10349,6 +11085,30 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
10349
11085
  computed?: boolean;
10350
11086
  }, params?: RequestParams) => Promise<HttpResponse<Revision, any>>;
10351
11087
  /**
11088
+ * No description
11089
+ *
11090
+ * @tags change-request-content
11091
+ * @name UpdateChangeRequestContent
11092
+ * @summary Update the content of a change request. This endpoint allows you to update the content of a change request by providing an array of changes.
11093
+ 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.
11094
+ 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.
11095
+ * @request POST:/spaces/{spaceId}/change-requests/{changeRequestId}/content
11096
+ * @secure
11097
+ */
11098
+ updateChangeRequestContent: (spaceId: EntityId, changeRequestId: EntityId, data: {
11099
+ /**
11100
+ * @maxItems 50
11101
+ * @minItems 1
11102
+ */
11103
+ changes: ChangeRequestContentChange[];
11104
+ }, params?: RequestParams) => Promise<HttpResponse<ChangeRequest, {
11105
+ error: {
11106
+ /** @format int32 */
11107
+ code: 404;
11108
+ message: string;
11109
+ };
11110
+ }>>;
11111
+ /**
10352
11112
  * No description
10353
11113
  *
10354
11114
  * @tags change-request-content
@@ -12599,6 +13359,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
12599
13359
  space?: string;
12600
13360
  /** If defined, only change requests linked to this site topic will be returned. */
12601
13361
  topic?: string;
13362
+ /** Controls whether change requests from triage are included. Pass `none` to exclude change requests from triage, or `all` to include them. Default is `none`. */
13363
+ finding?: "none" | "all";
12602
13364
  /** The field to sort change requests by. Defaults to 'updatedAt'. */
12603
13365
  orderBy?: ChangeRequestOrderBy;
12604
13366
  }, params?: RequestParams) => Promise<HttpResponse<List & {
@@ -14204,6 +14966,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
14204
14966
  /** 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
14967
  context?: {
14206
14968
  siteSpaceId?: string;
14969
+ /**
14970
+ * 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.
14971
+ * @maxLength 1024
14972
+ */
14973
+ goal?: string;
14207
14974
  };
14208
14975
  scope: SiteSearchScope;
14209
14976
  /** Identifiers for a GitBook site session, used for analytics and adaptive content. */