@gitbook/api 0.63.0 → 0.64.1

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
@@ -83,7 +83,7 @@ export interface DocumentMarkColor {
83
83
  background: 'default' | 'green' | 'blue' | 'red' | 'orange' | 'yellow' | 'purple';
84
84
  };
85
85
  }
86
- export declare type DocumentTextMark = DocumentMarkBold | DocumentMarkItalic | DocumentMarkCode | DocumentMarkStrikethrough | DocumentMarkColor;
86
+ export type DocumentTextMark = DocumentMarkBold | DocumentMarkItalic | DocumentMarkCode | DocumentMarkStrikethrough | DocumentMarkColor;
87
87
  export interface DocumentTextLeaf {
88
88
  object: 'leaf';
89
89
  text: string;
@@ -150,7 +150,7 @@ export interface ContentRefSyncedBlock {
150
150
  syncedBlock: string;
151
151
  }
152
152
  /** A relative reference to content in GitBook. */
153
- export declare type ContentRef = ContentRefFile | ContentRefURL | ContentRefPage | ContentRefAnchor | ContentRefUser | ContentRefCollection | ContentRefSpace | ContentRefSnippet | ContentRefSyncedBlock;
153
+ export type ContentRef = ContentRefFile | ContentRefURL | ContentRefPage | ContentRefAnchor | ContentRefUser | ContentRefCollection | ContentRefSpace | ContentRefSnippet | ContentRefSyncedBlock;
154
154
  export interface DocumentInlineLink {
155
155
  object: 'inline';
156
156
  type: 'link';
@@ -180,7 +180,7 @@ export interface DocumentInlineMath {
180
180
  };
181
181
  isVoid: true;
182
182
  }
183
- export declare type DocumentBlocksEssentials = DocumentBlockParagraph | DocumentBlockHeading | DocumentBlockListOrdered | DocumentBlockListUnordered | DocumentBlockListTasks | DocumentBlockDivider;
183
+ export type DocumentBlocksEssentials = DocumentBlockParagraph | DocumentBlockHeading | DocumentBlockListOrdered | DocumentBlockListUnordered | DocumentBlockListTasks | DocumentBlockDivider;
184
184
  export interface DocumentFragment {
185
185
  object: 'fragment';
186
186
  key?: string;
@@ -236,7 +236,7 @@ export interface DocumentInlineMention {
236
236
  };
237
237
  isVoid: true;
238
238
  }
239
- export declare type DocumentInline = DocumentInlineLink | DocumentInlineEmoji | DocumentInlineMath | DocumentInlineImage | DocumentInlineAnnotation | DocumentInlineMention;
239
+ export type DocumentInline = DocumentInlineLink | DocumentInlineEmoji | DocumentInlineMath | DocumentInlineImage | DocumentInlineAnnotation | DocumentInlineMention;
240
240
  export interface DocumentBlockParagraph {
241
241
  object: 'block';
242
242
  type: 'paragraph';
@@ -332,24 +332,24 @@ export interface DocumentTableDefinitionBase {
332
332
  /** Title for the column */
333
333
  title: string;
334
334
  }
335
- export declare type DocumentTableDefinitionText = DocumentTableDefinitionBase & {
335
+ export type DocumentTableDefinitionText = DocumentTableDefinitionBase & {
336
336
  type: 'text';
337
337
  textAlignment: 'center' | 'right' | 'left';
338
338
  };
339
- export declare type DocumentTableDefinitionNumber = DocumentTableDefinitionBase & {
339
+ export type DocumentTableDefinitionNumber = DocumentTableDefinitionBase & {
340
340
  type: 'number';
341
341
  };
342
- export declare type DocumentTableDefinitionCheckbox = DocumentTableDefinitionBase & {
342
+ export type DocumentTableDefinitionCheckbox = DocumentTableDefinitionBase & {
343
343
  type: 'checkbox';
344
344
  };
345
- export declare type DocumentTableDefinitionFiles = DocumentTableDefinitionBase & {
345
+ export type DocumentTableDefinitionFiles = DocumentTableDefinitionBase & {
346
346
  type: 'files';
347
347
  };
348
- export declare type DocumentTableDefinitionUsers = DocumentTableDefinitionBase & {
348
+ export type DocumentTableDefinitionUsers = DocumentTableDefinitionBase & {
349
349
  type: 'users';
350
350
  multiple: boolean;
351
351
  };
352
- export declare type DocumentTableDefinitionRating = DocumentTableDefinitionBase & {
352
+ export type DocumentTableDefinitionRating = DocumentTableDefinitionBase & {
353
353
  type: 'rating';
354
354
  max: number;
355
355
  };
@@ -358,15 +358,15 @@ export interface DocumentTableSelectOption {
358
358
  label: string;
359
359
  color: string;
360
360
  }
361
- export declare type DocumentTableDefinitionSelect = DocumentTableDefinitionBase & {
361
+ export type DocumentTableDefinitionSelect = DocumentTableDefinitionBase & {
362
362
  type: 'select';
363
363
  multiple: boolean;
364
364
  options: DocumentTableSelectOption[];
365
365
  };
366
- export declare type DocumentTableDefinitionContentRef = DocumentTableDefinitionBase & {
366
+ export type DocumentTableDefinitionContentRef = DocumentTableDefinitionBase & {
367
367
  type: 'content-ref';
368
368
  };
369
- export declare type DocumentTableDefinition = DocumentTableDefinitionText | DocumentTableDefinitionNumber | DocumentTableDefinitionCheckbox | DocumentTableDefinitionFiles | DocumentTableDefinitionUsers | DocumentTableDefinitionRating | DocumentTableDefinitionSelect | DocumentTableDefinitionContentRef;
369
+ export type DocumentTableDefinition = DocumentTableDefinitionText | DocumentTableDefinitionNumber | DocumentTableDefinitionCheckbox | DocumentTableDefinitionFiles | DocumentTableDefinitionUsers | DocumentTableDefinitionRating | DocumentTableDefinitionSelect | DocumentTableDefinitionContentRef;
370
370
  export interface DocumentBlockTable {
371
371
  object: 'block';
372
372
  type: 'table';
@@ -425,7 +425,7 @@ export interface DocumentBlockDivider {
425
425
  isVoid: true;
426
426
  data: object;
427
427
  }
428
- export declare type DocumentBlockImageDimension = number | {
428
+ export type DocumentBlockImageDimension = number | {
429
429
  unit: string;
430
430
  value: number;
431
431
  };
@@ -521,7 +521,7 @@ export interface DocumentBlockContentRef {
521
521
  isVoid: true;
522
522
  }
523
523
  /** Action to open an overlay modal defined by "componentId". */
524
- export declare type ContentKitDefaultAction = {
524
+ export type ContentKitDefaultAction = {
525
525
  action: '@ui.modal.open';
526
526
  componentId: string;
527
527
  props: object;
@@ -539,7 +539,7 @@ export declare type ContentKitDefaultAction = {
539
539
  props: object;
540
540
  };
541
541
  /** Custom action to re-render the block. */
542
- export declare type ContentKitAction = {
542
+ export type ContentKitAction = {
543
543
  action: string;
544
544
  [key: string]: any;
545
545
  } | ContentKitDefaultAction;
@@ -621,7 +621,7 @@ export interface DocumentBlockSyncedBlock {
621
621
  };
622
622
  isVoid: true;
623
623
  }
624
- export declare type DocumentBlocksTopLevels = DocumentBlocksEssentials | DocumentBlockQuote | DocumentBlockHint | DocumentBlockImages | DocumentBlockFile | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockCode | DocumentBlockMath | DocumentBlockExpandable | DocumentBlockTabs | DocumentBlockTable | DocumentBlockSwagger | DocumentBlockContentRef | DocumentBlockIntegration | DocumentBlockSyncedBlock;
624
+ export type DocumentBlocksTopLevels = DocumentBlocksEssentials | DocumentBlockQuote | DocumentBlockHint | DocumentBlockImages | DocumentBlockFile | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockCode | DocumentBlockMath | DocumentBlockExpandable | DocumentBlockTabs | DocumentBlockTable | DocumentBlockSwagger | DocumentBlockContentRef | DocumentBlockIntegration | DocumentBlockSyncedBlock;
625
625
  export interface JSONDocument {
626
626
  object: 'document';
627
627
  data: {
@@ -631,10 +631,10 @@ export interface JSONDocument {
631
631
  };
632
632
  nodes: DocumentBlocksTopLevels[];
633
633
  }
634
- export declare type Document = MarkdownDocument | {
634
+ export type Document = MarkdownDocument | {
635
635
  document: JSONDocument;
636
636
  } | object;
637
- export declare type SearchAIAnswerSource = {
637
+ export type SearchAIAnswerSource = {
638
638
  type: 'page' | 'capture';
639
639
  } & ({
640
640
  type: 'page';
@@ -701,7 +701,7 @@ export interface User {
701
701
  };
702
702
  }
703
703
  /** @format date-time */
704
- export declare type Timestamp = string;
704
+ export type Timestamp = string;
705
705
  /** The API token details, excluding the token itself. */
706
706
  export interface UserAPIToken {
707
707
  /** The API token ID. */
@@ -712,7 +712,7 @@ export interface UserAPIToken {
712
712
  createdAt: Timestamp;
713
713
  }
714
714
  /** The API token details, including the token itself. */
715
- export declare type UserAPITokenExtended = UserAPIToken & {
715
+ export type UserAPITokenExtended = UserAPIToken & {
716
716
  /** The actual token value. */
717
717
  token: string;
718
718
  };
@@ -720,13 +720,13 @@ export declare type UserAPITokenExtended = UserAPIToken & {
720
720
  * Title of the space
721
721
  * @maxLength 50
722
722
  */
723
- export declare type SpaceTitle = string;
723
+ export type SpaceTitle = string;
724
724
  /**
725
725
  * Unicode codepoint or character of the emoji
726
726
  * @maxLength 50
727
727
  * @example "🎉"
728
728
  */
729
- export declare type Emoji = string;
729
+ export type Emoji = string;
730
730
  /**
731
731
  * * `public`: Anyone can access the content, and the content is indexed by search engines.
732
732
  * * `unlisted`: Anyone can access the content, and the content is not indexed by search engines
@@ -754,7 +754,7 @@ export declare enum SpaceEditMode {
754
754
  Locked = "locked"
755
755
  }
756
756
  /** @format uri */
757
- export declare type URL = string;
757
+ export type URL = string;
758
758
  /**
759
759
  * * `running`: The operation is still running
760
760
  * * `failure`: The operation failed
@@ -797,7 +797,7 @@ export interface VisitorAuthIntegrationBackend {
797
797
  /** Integration as backend for Visitor Authentication */
798
798
  backend: 'integration';
799
799
  }
800
- export declare type VisitorAuth = VisitorAuthCustomBackend | (VisitorAuthIntegrationBackend & {
800
+ export type VisitorAuth = VisitorAuthCustomBackend | (VisitorAuthIntegrationBackend & {
801
801
  /** Name of integration being used as the backend for Visitor Authentication */
802
802
  integration: string;
803
803
  });
@@ -819,9 +819,9 @@ export declare enum MemberRole {
819
819
  Read = "read"
820
820
  }
821
821
  /** The role of a member in an organization, null for guests */
822
- export declare type MemberRoleOrGuest = MemberRole | null;
822
+ export type MemberRoleOrGuest = MemberRole | null;
823
823
  /** Default level for a piece of content */
824
- export declare type DefaultLevel = MemberRoleOrGuest | 'inherit';
824
+ export type DefaultLevel = MemberRoleOrGuest | 'inherit';
825
825
  export interface Space {
826
826
  /** Type of Object, always equals to "space" */
827
827
  object: 'space';
@@ -902,7 +902,7 @@ export interface ContentPosition {
902
902
  after?: SpacePointer | CollectionPointer;
903
903
  }
904
904
  /** Format the custom block as a codeblock */
905
- export declare type IntegrationBlockMarkdown = {
905
+ export type IntegrationBlockMarkdown = {
906
906
  /** Code block syntax to use to identify the block. */
907
907
  codeblock: string;
908
908
  /** Key of the property to use as body of the codeblock. */
@@ -930,7 +930,7 @@ export interface IntegrationBlock {
930
930
  /** Format the custom block as a codeblock */
931
931
  markdown?: IntegrationBlockMarkdown;
932
932
  }
933
- export declare type Embed = {
933
+ export type Embed = {
934
934
  title: string;
935
935
  site: string;
936
936
  icon?: string;
@@ -1031,7 +1031,7 @@ export interface SyncGitRepository {
1031
1031
  * @maxLength 50
1032
1032
  * @example "gear"
1033
1033
  */
1034
- export declare type Icon = string;
1034
+ export type Icon = string;
1035
1035
  export interface RevisionPageBase {
1036
1036
  /** Unique identifier for the page in the revision */
1037
1037
  id: string;
@@ -1049,7 +1049,7 @@ export interface RevisionPageBase {
1049
1049
  /** When the page was last edited. Only present if page has been edited at least once. */
1050
1050
  updatedAt?: Timestamp;
1051
1051
  }
1052
- export declare type RevisionPageDocument = RevisionPageBase & Document & {
1052
+ export type RevisionPageDocument = RevisionPageBase & Document & {
1053
1053
  /** @deprecated */
1054
1054
  kind: 'sheet';
1055
1055
  type: 'document';
@@ -1084,7 +1084,7 @@ export declare type RevisionPageDocument = RevisionPageBase & Document & {
1084
1084
  */
1085
1085
  noRobotsIndex?: boolean;
1086
1086
  };
1087
- export declare type RevisionPageLink = RevisionPageBase & {
1087
+ export type RevisionPageLink = RevisionPageBase & {
1088
1088
  /** @deprecated */
1089
1089
  kind: 'link';
1090
1090
  type: 'link';
@@ -1230,7 +1230,7 @@ export interface InviteEmailsUsersTeamsToSpace {
1230
1230
  /** Role to set on the team. */
1231
1231
  role: MemberRoleOrGuest;
1232
1232
  }
1233
- export declare type RevisionPageGroup = RevisionPageBase & {
1233
+ export type RevisionPageGroup = RevisionPageBase & {
1234
1234
  /** @deprecated */
1235
1235
  kind: 'group';
1236
1236
  type: 'group';
@@ -1255,7 +1255,7 @@ export declare type RevisionPageGroup = RevisionPageBase & {
1255
1255
  noRobotsIndex?: boolean;
1256
1256
  pages: (RevisionPageDocument | RevisionPageLink)[];
1257
1257
  };
1258
- export declare type RevisionPage = RevisionPageDocument | RevisionPageGroup | RevisionPageLink;
1258
+ export type RevisionPage = RevisionPageDocument | RevisionPageGroup | RevisionPageLink;
1259
1259
  export interface RevisionFile {
1260
1260
  id: string;
1261
1261
  name: string;
@@ -1312,7 +1312,7 @@ export interface RevisionBase {
1312
1312
  public?: string;
1313
1313
  };
1314
1314
  }
1315
- export declare type RevisionTypeEdits = RevisionBase & {
1315
+ export type RevisionTypeEdits = RevisionBase & {
1316
1316
  /** Revision created by editing the content. */
1317
1317
  type: 'edits';
1318
1318
  };
@@ -1327,7 +1327,7 @@ export declare enum ChangeRequestStatus {
1327
1327
  * @minLength 0
1328
1328
  * @maxLength 100
1329
1329
  */
1330
- export declare type ChangeRequestSubject = string;
1330
+ export type ChangeRequestSubject = string;
1331
1331
  export interface ChangeRequest {
1332
1332
  /** Type of Object, always equals to "change-request" */
1333
1333
  object: 'change-request';
@@ -1357,20 +1357,20 @@ export interface ChangeRequest {
1357
1357
  location: string;
1358
1358
  };
1359
1359
  }
1360
- export declare type RevisionTypeMerge = RevisionBase & {
1360
+ export type RevisionTypeMerge = RevisionBase & {
1361
1361
  /** Revision created when merging a change request with primary. */
1362
1362
  type: 'merge';
1363
1363
  mergedFrom: ChangeRequest;
1364
1364
  };
1365
- export declare type RevisionTypeRollback = RevisionBase & {
1365
+ export type RevisionTypeRollback = RevisionBase & {
1366
1366
  /** Revision created as a rollback of a previous revision. */
1367
1367
  type: 'rollback';
1368
1368
  };
1369
- export declare type RevisionTypeUpdate = RevisionBase & {
1369
+ export type RevisionTypeUpdate = RevisionBase & {
1370
1370
  /** Revision created when updating a change request with changes from primary. */
1371
1371
  type: 'update';
1372
1372
  };
1373
- export declare type Revision = RevisionTypeEdits | RevisionTypeMerge | RevisionTypeRollback | RevisionTypeUpdate;
1373
+ export type Revision = RevisionTypeEdits | RevisionTypeMerge | RevisionTypeRollback | RevisionTypeUpdate;
1374
1374
  export declare enum ImportContentSource {
1375
1375
  Website = "website",
1376
1376
  Docx = "docx",
@@ -1403,14 +1403,14 @@ export interface ImportContentResult {
1403
1403
  * @minLength 2
1404
1404
  * @maxLength 255
1405
1405
  */
1406
- export declare type OrganizationTitle = string;
1407
- export declare type OrganizationEmailDomains = string[];
1406
+ export type OrganizationTitle = string;
1407
+ export type OrganizationEmailDomains = string[];
1408
1408
  /**
1409
1409
  * Default hostname for the organization's public content, e.g. <org-hostname>.gitbook.io
1410
1410
  * @minLength 3
1411
1411
  * @maxLength 32
1412
1412
  */
1413
- export declare type OrganizationHostname = string;
1413
+ export type OrganizationHostname = string;
1414
1414
  export declare enum OrganizationType {
1415
1415
  Business = "business",
1416
1416
  Community = "community"
@@ -1437,7 +1437,7 @@ export interface SitePointer {
1437
1437
  site: string;
1438
1438
  }
1439
1439
  /** The default content for the organization */
1440
- export declare type OrganizationDefaultContent = SpacePointer | CollectionPointer | SitePointer;
1440
+ export type OrganizationDefaultContent = SpacePointer | CollectionPointer | SitePointer;
1441
1441
  export interface Organization {
1442
1442
  /** Type of Object, always equals to "organization" */
1443
1443
  object: 'organization';
@@ -1521,13 +1521,13 @@ export interface ContentLocationUser {
1521
1521
  * Title of the collection
1522
1522
  * @maxLength 50
1523
1523
  */
1524
- export declare type CollectionTitle = string;
1524
+ export type CollectionTitle = string;
1525
1525
  /**
1526
1526
  * Description of the collection
1527
1527
  * @minLength 0
1528
1528
  * @maxLength 100
1529
1529
  */
1530
- export declare type CollectionDescription = string;
1530
+ export type CollectionDescription = string;
1531
1531
  export interface Collection {
1532
1532
  /** Type of Object, always equals to "collection" */
1533
1533
  object: 'collection';
@@ -1590,17 +1590,17 @@ export interface ContentLocationSpace {
1590
1590
  * @minLength 2
1591
1591
  * @maxLength 30
1592
1592
  */
1593
- export declare type IntegrationTitle = string;
1593
+ export type IntegrationTitle = string;
1594
1594
  /**
1595
1595
  * Description of the integration
1596
1596
  * @maxLength 100
1597
1597
  */
1598
- export declare type IntegrationDescription = string;
1598
+ export type IntegrationDescription = string;
1599
1599
  /**
1600
1600
  * Long form markdown summary of the integration
1601
1601
  * @maxLength 2048
1602
1602
  */
1603
- export declare type IntegrationSummary = string;
1603
+ export type IntegrationSummary = string;
1604
1604
  export declare enum IntegrationTarget {
1605
1605
  Organization = "organization",
1606
1606
  All = "all"
@@ -1629,7 +1629,7 @@ export declare enum IntegrationScope {
1629
1629
  SiteVisitorAuth = "site:visitor:auth"
1630
1630
  }
1631
1631
  /** Permissions that should be granted to the integration */
1632
- export declare type IntegrationScopes = IntegrationScope[];
1632
+ export type IntegrationScopes = IntegrationScope[];
1633
1633
  export declare enum IntegrationCategory {
1634
1634
  Analytics = "analytics",
1635
1635
  Captures = "captures",
@@ -1641,9 +1641,9 @@ export declare enum IntegrationCategory {
1641
1641
  Other = "other"
1642
1642
  }
1643
1643
  /** Categories for which the integration is listed in the marketplace */
1644
- export declare type IntegrationCategories = IntegrationCategory[];
1644
+ export type IntegrationCategories = IntegrationCategory[];
1645
1645
  /** Custom blocks defined by this integration. */
1646
- export declare type IntegrationBlocks = IntegrationBlock[];
1646
+ export type IntegrationBlocks = IntegrationBlock[];
1647
1647
  /** Schema for a configuration */
1648
1648
  export interface IntegrationConfigurationSchema {
1649
1649
  properties: Record<string, {
@@ -1673,7 +1673,7 @@ export interface IntegrationConfigurationComponent {
1673
1673
  /** ID of the ContentKit component defined in the integration */
1674
1674
  componentId: string;
1675
1675
  }
1676
- export declare type IntegrationConfiguration = IntegrationConfigurationSchema | IntegrationConfigurationComponent;
1676
+ export type IntegrationConfiguration = IntegrationConfigurationSchema | IntegrationConfigurationComponent;
1677
1677
  export interface IntegrationConfigurations {
1678
1678
  account?: IntegrationConfiguration;
1679
1679
  space?: IntegrationConfiguration;
@@ -1683,7 +1683,7 @@ export interface IntegrationConfigurations {
1683
1683
  * External urls configured by the developer of the integration
1684
1684
  * @maxItems 5
1685
1685
  */
1686
- export declare type IntegrationExternalLinks = {
1686
+ export type IntegrationExternalLinks = {
1687
1687
  url: URL;
1688
1688
  label: string;
1689
1689
  }[];
@@ -1691,7 +1691,7 @@ export declare type IntegrationExternalLinks = {
1691
1691
  * Security policy to validate the content of the integrations scripts and Contentkit. Will be sent as
1692
1692
  * headers when processing the script fetch event and the blocks fetch events.
1693
1693
  */
1694
- export declare type IntegrationContentSecurityPolicy = string | {
1694
+ export type IntegrationContentSecurityPolicy = string | {
1695
1695
  'base-uri'?: string;
1696
1696
  'block-all-mixed-content'?: string;
1697
1697
  'child-src'?: string;
@@ -1848,11 +1848,17 @@ export interface SyncedBlock {
1848
1848
  organization: string;
1849
1849
  /** @format date-time */
1850
1850
  createdAt: string;
1851
+ createdBy: User;
1851
1852
  /**
1852
1853
  * Title describing the synced block.
1853
1854
  * @maxLength 100
1854
1855
  */
1855
1856
  title?: string;
1857
+ /**
1858
+ * Description of the synced block.
1859
+ * @maxLength 500
1860
+ */
1861
+ description?: string;
1856
1862
  /** Usage of synced block */
1857
1863
  usage: {
1858
1864
  /** Number of spaces where the synced block is used in */
@@ -1862,6 +1868,8 @@ export interface SyncedBlock {
1862
1868
  urls: {
1863
1869
  /** URL of the synced block in the API */
1864
1870
  location: URL;
1871
+ /** URL of the synced block in the app */
1872
+ app: URL;
1865
1873
  };
1866
1874
  }
1867
1875
  export interface ContentLocationSyncedBlock {
@@ -1870,7 +1878,41 @@ export interface ContentLocationSyncedBlock {
1870
1878
  syncedBlock: SyncedBlock;
1871
1879
  }
1872
1880
  /** An absolute reference to content in GitBook. */
1873
- export declare type ContentLocation = ContentLocationFile | ContentLocationURL | ContentLocationPage | ContentLocationUser | ContentLocationCollection | ContentLocationSpace | ContentLocationSnippet | ContentLocationSyncedBlock;
1881
+ export type ContentLocation = ContentLocationFile | ContentLocationURL | ContentLocationPage | ContentLocationUser | ContentLocationCollection | ContentLocationSpace | ContentLocationSnippet | ContentLocationSyncedBlock;
1882
+ /**
1883
+ * Text to display to represent the reference. Possible values include:
1884
+ * - `ok` - No problems detected for this content reference.
1885
+ * - `broken` - The target does not exist in the revision.
1886
+ * - `in-app` - The target is a URL link pointing to an internal location in the app.
1887
+ */
1888
+ export declare enum ContentReferenceStatus {
1889
+ Ok = "ok",
1890
+ Broken = "broken",
1891
+ InApp = "in-app"
1892
+ }
1893
+ export interface ContentReferencesStats {
1894
+ /** Total count of links */
1895
+ total: number;
1896
+ broken: {
1897
+ /** Count of broken links */
1898
+ total: number;
1899
+ /** Count of broken links that were broken in current change request, if applicable. */
1900
+ changeRequest?: number;
1901
+ };
1902
+ }
1903
+ export interface ContentReferenceUsage {
1904
+ /**
1905
+ * Text to display to represent the reference. Possible values include:
1906
+ * - `ok` - No problems detected for this content reference.
1907
+ * - `broken` - The target does not exist in the revision.
1908
+ * - `in-app` - The target is a URL link pointing to an internal location in the app.
1909
+ */
1910
+ status: ContentReferenceStatus;
1911
+ /** The reference target where a list of pages are pointing at */
1912
+ targetReference?: ContentLocation;
1913
+ /** Pages locations where a link to the target is found. */
1914
+ locationReferences: ContentLocation[];
1915
+ }
1874
1916
  export interface CreateChangeRequest {
1875
1917
  /** Subject of the change-request */
1876
1918
  subject?: string;
@@ -1892,8 +1934,8 @@ export interface EmojiReaction {
1892
1934
  reactedAt: Timestamp;
1893
1935
  }[];
1894
1936
  }
1895
- export declare type EmojiReactions = EmojiReaction[];
1896
- export declare type Comment = {
1937
+ export type EmojiReactions = EmojiReaction[];
1938
+ export type Comment = {
1897
1939
  /** Type of Object, always equals to "comment" */
1898
1940
  object: 'comment';
1899
1941
  /** Unique identifier for the comment. */
@@ -1975,7 +2017,7 @@ export interface Team {
1975
2017
  /** Unique identifier for the team */
1976
2018
  id: string;
1977
2019
  }
1978
- export declare type ChangeRequestRequestedReviewer = {
2020
+ export type ChangeRequestRequestedReviewer = {
1979
2021
  /** Type of Object, always equals to "change-request-requested-reviewer" */
1980
2022
  object: 'change-request-requested-reviewer';
1981
2023
  /** The revision of the content when the request was made. */
@@ -1992,40 +2034,6 @@ export declare type ChangeRequestRequestedReviewer = {
1992
2034
  /** The team who was requested to review. */
1993
2035
  team: Team;
1994
2036
  });
1995
- /**
1996
- * Text to display to represent the reference. Possible values include:
1997
- * - `ok` - No problems detected for this content reference.
1998
- * - `broken` - The target does not exist in the revision.
1999
- * - `in-app` - The target is a URL link pointing to an internal location in the app.
2000
- */
2001
- export declare enum ContentReferenceStatus {
2002
- Ok = "ok",
2003
- Broken = "broken",
2004
- InApp = "in-app"
2005
- }
2006
- export interface ContentReferencesStats {
2007
- /** Total count of links */
2008
- total: number;
2009
- broken: {
2010
- /** Count of broken links */
2011
- total: number;
2012
- /** Count of broken links that were broken in current change request, if applicable. */
2013
- changeRequest?: number;
2014
- };
2015
- }
2016
- export interface ContentReferenceUsage {
2017
- /**
2018
- * Text to display to represent the reference. Possible values include:
2019
- * - `ok` - No problems detected for this content reference.
2020
- * - `broken` - The target does not exist in the revision.
2021
- * - `in-app` - The target is a URL link pointing to an internal location in the app.
2022
- */
2023
- status: ContentReferenceStatus;
2024
- /** The reference target where a list of pages are pointing at */
2025
- targetReference?: ContentLocation;
2026
- /** Pages locations where a link to the target is found. */
2027
- locationReferences: ContentLocation[];
2028
- }
2029
2037
  export interface PostCommentSchema {
2030
2038
  /** The node to which the comment is posted, if any. */
2031
2039
  node?: string;
@@ -2103,12 +2111,12 @@ export declare enum RevisionPageLayoutPreset {
2103
2111
  Editorial = "editorial",
2104
2112
  Landing = "landing"
2105
2113
  }
2106
- export declare type RevisionPageLayout = RevisionPageLayoutPreset | RevisionPageLayoutOptions;
2114
+ export type RevisionPageLayout = RevisionPageLayoutPreset | RevisionPageLayoutOptions;
2107
2115
  export interface ChangeAttributeRevisionPageLayout {
2108
2116
  before?: RevisionPageLayout;
2109
2117
  after?: RevisionPageLayout;
2110
2118
  }
2111
- export declare type CustomFieldValue = string | number | boolean | string[];
2119
+ export type CustomFieldValue = string | number | boolean | string[];
2112
2120
  export interface ChangeAttributeCustomFields {
2113
2121
  before?: Record<string, {
2114
2122
  value: CustomFieldValue;
@@ -2204,7 +2212,7 @@ export interface RevisionSemanticChangeCustomFieldsEdited {
2204
2212
  type: 'custom_fields_edited';
2205
2213
  customFields: ChangeAttributeCustomFields;
2206
2214
  }
2207
- export declare type RevisionSemanticChange = RevisionSemanticChangePageCreated | RevisionSemanticChangePageEdited | RevisionSemanticChangePageDeleted | RevisionSemanticChangePageMoved | RevisionSemanticChangeFileCreated | RevisionSemanticChangeFileEdited | RevisionSemanticChangeFileDeleted | RevisionSemanticChangeCustomFieldsEdited;
2215
+ export type RevisionSemanticChange = RevisionSemanticChangePageCreated | RevisionSemanticChangePageEdited | RevisionSemanticChangePageDeleted | RevisionSemanticChangePageMoved | RevisionSemanticChangeFileCreated | RevisionSemanticChangeFileEdited | RevisionSemanticChangeFileDeleted | RevisionSemanticChangeCustomFieldsEdited;
2208
2216
  export interface RevisionSemanticChanges {
2209
2217
  changes: RevisionSemanticChange[];
2210
2218
  /** How many changes were omitted because above the result limit */
@@ -2233,7 +2241,7 @@ export interface UserContentPermission {
2233
2241
  user: User;
2234
2242
  }
2235
2243
  /** @pattern ^#(?:[0-9a-fA-F]{3}){1,2}$ */
2236
- export declare type Color = string;
2244
+ export type Color = string;
2237
2245
  export interface CustomizationThemedColor {
2238
2246
  light: Color;
2239
2247
  dark: Color;
@@ -2291,7 +2299,8 @@ export interface CustomizationContentLink {
2291
2299
  /** A relative reference to content in GitBook. */
2292
2300
  to: ContentRef;
2293
2301
  }
2294
- export declare type CustomizationHeaderLink = CustomizationContentLink & {
2302
+ export type CustomizationHeaderLink = CustomizationContentLink & {
2303
+ style?: 'link' | 'button-primary' | 'button-secondary';
2295
2304
  links?: CustomizationContentLink[];
2296
2305
  };
2297
2306
  export interface CustomizationFooterGroup {
@@ -2374,7 +2383,7 @@ export interface CustomizationSettings {
2374
2383
  url?: URL;
2375
2384
  };
2376
2385
  }
2377
- export declare type SpaceIntegrationBlocks = {
2386
+ export type SpaceIntegrationBlocks = {
2378
2387
  /** Unique named identifier for the integration */
2379
2388
  name: string;
2380
2389
  blocks: IntegrationBlock[];
@@ -2392,11 +2401,11 @@ export interface SpaceIntegrationScript {
2392
2401
  * @maxLength 50
2393
2402
  * @pattern ^[a-z_\-0-9]+$
2394
2403
  */
2395
- export declare type CustomFieldName = string;
2404
+ export type CustomFieldName = string;
2396
2405
  /** @maxLength 100 */
2397
- export declare type CustomFieldTitle = string;
2406
+ export type CustomFieldTitle = string;
2398
2407
  /** @maxLength 200 */
2399
- export declare type CustomFieldDescription = string;
2408
+ export type CustomFieldDescription = string;
2400
2409
  export declare enum CustomFieldType {
2401
2410
  Text = "text",
2402
2411
  Number = "number",
@@ -2406,12 +2415,12 @@ export declare enum CustomFieldType {
2406
2415
  SelectSingle = "select:single"
2407
2416
  }
2408
2417
  /** @maxLength 100 */
2409
- export declare type CustomFieldPlaceholder = string;
2418
+ export type CustomFieldPlaceholder = string;
2410
2419
  /**
2411
2420
  * @maxItems 50
2412
2421
  * @minItems 1
2413
2422
  */
2414
- export declare type CustomFieldOptions = string[];
2423
+ export type CustomFieldOptions = string[];
2415
2424
  /** Custom field */
2416
2425
  export interface CustomField {
2417
2426
  id: string;
@@ -2432,7 +2441,7 @@ export interface CustomField {
2432
2441
  location: string;
2433
2442
  };
2434
2443
  }
2435
- export declare type CustomFieldValues = {
2444
+ export type CustomFieldValues = {
2436
2445
  /** Custom field */
2437
2446
  customField: CustomField;
2438
2447
  value?: CustomFieldValue;
@@ -2469,7 +2478,7 @@ export interface PageFeedback {
2469
2478
  * @minLength 0
2470
2479
  * @maxLength 50
2471
2480
  */
2472
- export declare type ShareLinkName = string;
2481
+ export type ShareLinkName = string;
2473
2482
  export interface ShareLink {
2474
2483
  /** Type of Object, always equals to "share-link" */
2475
2484
  object: 'share-link';
@@ -2488,14 +2497,14 @@ export interface ShareLink {
2488
2497
  published?: string;
2489
2498
  };
2490
2499
  }
2491
- export declare type CustomizationCollectionSettings = CustomizationSettings & {
2500
+ export type CustomizationCollectionSettings = CustomizationSettings & {
2492
2501
  collection: {
2493
2502
  /** ID of the space used by default in the collection */
2494
2503
  defaultSpace?: string;
2495
2504
  };
2496
2505
  };
2497
2506
  /** Secrets stored on the integration and passed at runtime. */
2498
- export declare type IntegrationSecrets = Record<string, string>;
2507
+ export type IntegrationSecrets = Record<string, string>;
2499
2508
  export interface PublishIntegration {
2500
2509
  /**
2501
2510
  * Base64 content of the icon
@@ -2550,16 +2559,16 @@ export declare enum IntegrationInstallationSiteSelection {
2550
2559
  Selected = "selected"
2551
2560
  }
2552
2561
  /** Configuration of the integration at the account level */
2553
- export declare type IntegrationInstallationConfiguration = Record<string, any>;
2562
+ export type IntegrationInstallationConfiguration = Record<string, any>;
2554
2563
  /**
2555
2564
  * External IDs assigned by the integration.
2556
2565
  * @maxItems 5
2557
2566
  */
2558
- export declare type IntegrationInstallationExternalIds = string[];
2567
+ export type IntegrationInstallationExternalIds = string[];
2559
2568
  export interface OrganizationTarget {
2560
2569
  organization: string;
2561
2570
  }
2562
- export declare type IntegrationInstallationTarget = OrganizationTarget;
2571
+ export type IntegrationInstallationTarget = OrganizationTarget;
2563
2572
  /** Installation of an integration on an account */
2564
2573
  export interface IntegrationInstallation {
2565
2574
  id: string;
@@ -2605,12 +2614,12 @@ export interface BaseEvent {
2605
2614
  type: string;
2606
2615
  }
2607
2616
  /** Common properties for all events related to an installation */
2608
- export declare type InstallationEvent = BaseEvent & {
2617
+ export type InstallationEvent = BaseEvent & {
2609
2618
  /** ID of the integration installation */
2610
2619
  installationId: string;
2611
2620
  };
2612
2621
  /** Event received when integration has been installed or updated. */
2613
- export declare type InstallationSetupEvent = InstallationEvent & {
2622
+ export type InstallationSetupEvent = InstallationEvent & {
2614
2623
  type: 'installation_setup';
2615
2624
  status: IntegrationInstallationStatus;
2616
2625
  /** The state of the installation at the account level before it was updated. */
@@ -2621,12 +2630,12 @@ export declare type InstallationSetupEvent = InstallationEvent & {
2621
2630
  };
2622
2631
  };
2623
2632
  /** Common properties for all events related to a specific space. */
2624
- export declare type SpaceEvent = InstallationEvent & {
2633
+ export type SpaceEvent = InstallationEvent & {
2625
2634
  /** ID of the space */
2626
2635
  spaceId: string;
2627
2636
  };
2628
2637
  /** Event received when integration has been installed or updated on a space. */
2629
- export declare type SpaceInstallationSetupEvent = SpaceEvent & {
2638
+ export type SpaceInstallationSetupEvent = SpaceEvent & {
2630
2639
  type: 'space_installation_setup';
2631
2640
  status: IntegrationInstallationStatus;
2632
2641
  /** The state of the Space installation before it was updated. */
@@ -2637,7 +2646,7 @@ export declare type SpaceInstallationSetupEvent = SpaceEvent & {
2637
2646
  };
2638
2647
  };
2639
2648
  /** Event received when integration has been uninstalled from a space. */
2640
- export declare type SpaceInstallationDeletedEvent = SpaceEvent & {
2649
+ export type SpaceInstallationDeletedEvent = SpaceEvent & {
2641
2650
  type: 'space_installation_deleted';
2642
2651
  /** The state of the Space installation before it was deleted. */
2643
2652
  previous: {
@@ -2646,12 +2655,12 @@ export declare type SpaceInstallationDeletedEvent = SpaceEvent & {
2646
2655
  };
2647
2656
  };
2648
2657
  /** Common properties for all events related to a specific site. */
2649
- export declare type SiteEvent = InstallationEvent & {
2658
+ export type SiteEvent = InstallationEvent & {
2650
2659
  /** ID of the site */
2651
2660
  siteId: string;
2652
2661
  };
2653
2662
  /** Event received when integration has been installed or updated on a site. */
2654
- export declare type SiteInstallationSetupEvent = SiteEvent & {
2663
+ export type SiteInstallationSetupEvent = SiteEvent & {
2655
2664
  type: 'site_installation_setup';
2656
2665
  status: IntegrationInstallationStatus;
2657
2666
  /** The state of the site installation before it was updated. */
@@ -2662,7 +2671,7 @@ export declare type SiteInstallationSetupEvent = SiteEvent & {
2662
2671
  };
2663
2672
  };
2664
2673
  /** Event received when integration has been uninstalled from a site. */
2665
- export declare type SiteInstallationDeletedEvent = SiteEvent & {
2674
+ export type SiteInstallationDeletedEvent = SiteEvent & {
2666
2675
  type: 'site_installation_deleted';
2667
2676
  /** The state of the site installation before it was deleted. */
2668
2677
  previous: {
@@ -2671,7 +2680,7 @@ export declare type SiteInstallationDeletedEvent = SiteEvent & {
2671
2680
  };
2672
2681
  };
2673
2682
  /** Event received when a page has been visited. */
2674
- export declare type SpaceViewEvent = SpaceEvent & {
2683
+ export type SpaceViewEvent = SpaceEvent & {
2675
2684
  type: 'space_view';
2676
2685
  /** Unique identifier of the visited page. */
2677
2686
  pageId?: string;
@@ -2694,7 +2703,7 @@ export declare type SpaceViewEvent = SpaceEvent & {
2694
2703
  referrer: string;
2695
2704
  };
2696
2705
  /** Event received when a page has been visited on a site. */
2697
- export declare type SiteViewEvent = SiteEvent & {
2706
+ export type SiteViewEvent = SiteEvent & {
2698
2707
  type: 'site_view';
2699
2708
  /** Unique identifier of the visited space in the site. */
2700
2709
  spaceId: string;
@@ -2719,13 +2728,13 @@ export declare type SiteViewEvent = SiteEvent & {
2719
2728
  referrer: string;
2720
2729
  };
2721
2730
  /** Event when the primary content of a space has been updated. */
2722
- export declare type SpaceContentUpdatedEvent = SpaceEvent & {
2731
+ export type SpaceContentUpdatedEvent = SpaceEvent & {
2723
2732
  type: 'space_content_updated';
2724
2733
  /** Unique identifier of the new content revision */
2725
2734
  revisionId: string;
2726
2735
  };
2727
2736
  /** Event when a GitSync operation has been completed. */
2728
- export declare type SpaceGitSyncCompletedEvent = SpaceEvent & {
2737
+ export type SpaceGitSyncCompletedEvent = SpaceEvent & {
2729
2738
  type: 'space_gitsync_completed';
2730
2739
  state: 'success' | 'failure';
2731
2740
  /** Unique identifier of the new content revision */
@@ -2734,7 +2743,7 @@ export declare type SpaceGitSyncCompletedEvent = SpaceEvent & {
2734
2743
  commitId: string;
2735
2744
  };
2736
2745
  /** Event when a GitSync operation has been started. */
2737
- export declare type SpaceGitSyncStartedEvent = SpaceEvent & {
2746
+ export type SpaceGitSyncStartedEvent = SpaceEvent & {
2738
2747
  type: 'space_gitsync_started';
2739
2748
  /** Unique identifier of the new content revision */
2740
2749
  revisionId: string;
@@ -2742,7 +2751,7 @@ export declare type SpaceGitSyncStartedEvent = SpaceEvent & {
2742
2751
  commitId: string;
2743
2752
  };
2744
2753
  /** Event when the visibility of the space has been changed. */
2745
- export declare type SpaceVisibilityUpdatedEvent = SpaceEvent & {
2754
+ export type SpaceVisibilityUpdatedEvent = SpaceEvent & {
2746
2755
  type: 'space_visibility_updated';
2747
2756
  /**
2748
2757
  * * `public`: Anyone can access the content, and the content is indexed by search engines.
@@ -2771,7 +2780,7 @@ export interface FetchRequest {
2771
2780
  headers: Record<string, string>;
2772
2781
  }
2773
2782
  /** Event representing an incoming HTTP request. */
2774
- export declare type FetchEvent = BaseEvent & {
2783
+ export type FetchEvent = BaseEvent & {
2775
2784
  /** The space ID, if requests are specific to a single space */
2776
2785
  spaceId?: string;
2777
2786
  /** The site ID, if requests are specific to a single site */
@@ -2786,11 +2795,11 @@ export declare type FetchEvent = BaseEvent & {
2786
2795
  request: FetchRequest;
2787
2796
  };
2788
2797
  /** Common properties for all events related to fetching a published script from an installation */
2789
- export declare type FetchPublishedScriptEvent = (SpaceEvent | SiteEvent) & {
2798
+ export type FetchPublishedScriptEvent = (SpaceEvent | SiteEvent) & {
2790
2799
  type: 'fetch_published_script';
2791
2800
  };
2792
2801
  /** Common properties for all events related to visitor authentication from an installation */
2793
- export declare type FetchVisitorAuthenticationEvent = (SpaceEvent | SiteEvent) & {
2802
+ export type FetchVisitorAuthenticationEvent = (SpaceEvent | SiteEvent) & {
2794
2803
  type: 'fetch_visitor_authentication';
2795
2804
  location?: string;
2796
2805
  };
@@ -2799,34 +2808,34 @@ export interface ContentKitContextBase {
2799
2808
  theme: 'dark' | 'light';
2800
2809
  }
2801
2810
  /** Context while rendering in an account installation's configuration. */
2802
- export declare type ContentKitContextConfigurationAccount = ContentKitContextBase & {
2811
+ export type ContentKitContextConfigurationAccount = ContentKitContextBase & {
2803
2812
  type: 'configuration_account';
2804
2813
  /** ID of the organization the account installation configuration is in. */
2805
2814
  organizationId: string;
2806
2815
  };
2807
2816
  /** Context while rendering in a space-installation's configuration. */
2808
- export declare type ContentKitContextConfigurationSpace = ContentKitContextBase & {
2817
+ export type ContentKitContextConfigurationSpace = ContentKitContextBase & {
2809
2818
  type: 'configuration_space';
2810
2819
  /** ID of the space the space-installation configuration is in. */
2811
2820
  spaceId: string;
2812
2821
  };
2813
2822
  /** Context while rendering in a site-installation's configuration. */
2814
- export declare type ContentKitContextConfigurationSite = ContentKitContextBase & {
2823
+ export type ContentKitContextConfigurationSite = ContentKitContextBase & {
2815
2824
  type: 'configuration_site';
2816
2825
  /** ID of the site the site-installation configuration is in. */
2817
2826
  siteId: string;
2818
2827
  };
2819
2828
  /** Context while rendering in a document. */
2820
- export declare type ContentKitContextDocument = ContentKitContextBase & {
2829
+ export type ContentKitContextDocument = ContentKitContextBase & {
2821
2830
  type: 'document';
2822
2831
  /** ID of the space content the document is in. */
2823
2832
  spaceId: string;
2824
2833
  editable: boolean;
2825
2834
  };
2826
2835
  /** Object representing the context in which a ContentKit component is rendered. */
2827
- export declare type ContentKitContext = ContentKitContextConfigurationAccount | ContentKitContextConfigurationSpace | ContentKitContextConfigurationSite | ContentKitContextDocument;
2836
+ export type ContentKitContext = ContentKitContextConfigurationAccount | ContentKitContextConfigurationSpace | ContentKitContextConfigurationSite | ContentKitContextDocument;
2828
2837
  /** Event generated when rendering a UI */
2829
- export declare type UIRenderEvent = (SpaceEvent | SiteEvent | InstallationEvent) & {
2838
+ export type UIRenderEvent = (SpaceEvent | SiteEvent | InstallationEvent) & {
2830
2839
  auth?: {
2831
2840
  /** The user's ID. */
2832
2841
  userId: string;
@@ -2842,7 +2851,7 @@ export declare type UIRenderEvent = (SpaceEvent | SiteEvent | InstallationEvent)
2842
2851
  action?: object;
2843
2852
  };
2844
2853
  /** Any event that can be received from GitBook. */
2845
- export declare type Event = InstallationSetupEvent | SpaceInstallationSetupEvent | SpaceInstallationDeletedEvent | SiteInstallationSetupEvent | SiteInstallationDeletedEvent | SpaceViewEvent | SiteViewEvent | SpaceContentUpdatedEvent | SpaceGitSyncCompletedEvent | SpaceGitSyncStartedEvent | SpaceVisibilityUpdatedEvent | FetchEvent | FetchPublishedScriptEvent | FetchVisitorAuthenticationEvent | UIRenderEvent;
2854
+ export type Event = InstallationSetupEvent | SpaceInstallationSetupEvent | SpaceInstallationDeletedEvent | SiteInstallationSetupEvent | SiteInstallationDeletedEvent | SpaceViewEvent | SiteViewEvent | SpaceContentUpdatedEvent | SpaceGitSyncCompletedEvent | SpaceGitSyncStartedEvent | SpaceVisibilityUpdatedEvent | FetchEvent | FetchPublishedScriptEvent | FetchVisitorAuthenticationEvent | UIRenderEvent;
2846
2855
  export interface IntegrationEvent {
2847
2856
  /** Unique ID of the event. */
2848
2857
  id: string;
@@ -2958,7 +2967,7 @@ export interface ContentKitTextInput {
2958
2967
  inputType?: 'text' | 'password';
2959
2968
  }
2960
2969
  /** Any element that can be used as children. */
2961
- export declare type ContentKitDescendantElement = ContentKitButton | ContentKitTextInput | ContentKitHStack | ContentKitVStack | ContentKitBox | ContentKitDivider | ContentKitWebFrame | ContentKitCodeBlock | ContentKitMarkdown | ContentKitCard | ContentKitImage | ContentKitInput | ContentKitSelect | ContentKitSwitch | ContentKitCheckbox | ContentKitRadio | ContentKitText | ContentKitHint | ContentKitLink;
2970
+ export type ContentKitDescendantElement = ContentKitButton | ContentKitTextInput | ContentKitHStack | ContentKitVStack | ContentKitBox | ContentKitDivider | ContentKitWebFrame | ContentKitCodeBlock | ContentKitMarkdown | ContentKitCard | ContentKitImage | ContentKitInput | ContentKitSelect | ContentKitSwitch | ContentKitCheckbox | ContentKitRadio | ContentKitText | ContentKitHint | ContentKitLink | ContentKitStepperStep;
2962
2971
  /** Horizontal stack of boxes. */
2963
2972
  export interface ContentKitHStack {
2964
2973
  type: 'hstack';
@@ -3065,7 +3074,7 @@ export interface ContentKitImage {
3065
3074
  aspectRatio: number;
3066
3075
  }
3067
3076
  /** Any element that is inline. */
3068
- export declare type ContentKitInlineElement = ContentKitText | ContentKitImage | ContentKitLink;
3077
+ export type ContentKitInlineElement = ContentKitText | ContentKitImage | ContentKitLink;
3069
3078
  export interface ContentKitCard {
3070
3079
  type: 'card';
3071
3080
  title?: string;
@@ -3150,6 +3159,23 @@ export interface ContentKitHint {
3150
3159
  type: 'hint';
3151
3160
  children: ContentKitInlineElement[];
3152
3161
  }
3162
+ export interface ContentKitStepperStep {
3163
+ type: 'step';
3164
+ /** unique identifier for the step */
3165
+ id: string;
3166
+ /**
3167
+ * title of the step
3168
+ * @maxLength 50
3169
+ */
3170
+ title?: string;
3171
+ /**
3172
+ * indicates if the user can progress to the next step based on some internal validation or condition
3173
+ * @default false
3174
+ */
3175
+ next?: boolean;
3176
+ /** @minItems 1 */
3177
+ children: ContentKitDescendantElement[];
3178
+ }
3153
3179
  /** Control menu item displayed for the block. */
3154
3180
  export interface ContentKitBlockControl {
3155
3181
  icon?: ContentKitIcon;
@@ -3177,8 +3203,24 @@ export interface ContentKitModal {
3177
3203
  /** Pressable button triggering an action. */
3178
3204
  submit?: ContentKitButton;
3179
3205
  }
3206
+ export interface ContentKitStepper {
3207
+ type: 'stepper';
3208
+ /** id of the currently active step */
3209
+ activeStep: string;
3210
+ /** Custom action to re-render the block. */
3211
+ onStepChange: ContentKitAction;
3212
+ /** Custom action to re-render the block. */
3213
+ onComplete: ContentKitAction;
3214
+ /** @minItems 1 */
3215
+ children: ContentKitStepperStep[];
3216
+ }
3217
+ /** Higher level element to define a configuration block. Does not add any UI elements or wrappers. Must be used as a top level element for any configuration component. */
3218
+ export interface ContentKitConfiguration {
3219
+ type: 'configuration';
3220
+ children: ContentKitStepper[] | ContentKitDescendantElement[];
3221
+ }
3180
3222
  /** Element used as root */
3181
- export declare type ContentKitRootElement = ContentKitBlock | ContentKitModal;
3223
+ export type ContentKitRootElement = ContentKitBlock | ContentKitModal | ContentKitConfiguration;
3182
3224
  /** Output of the integration when rendering an UI. */
3183
3225
  export interface ContentKitRenderOutput {
3184
3226
  /** Element used as root */
@@ -3296,7 +3338,7 @@ export interface MemberContentPermission {
3296
3338
  * @minLength 1
3297
3339
  * @maxLength 64
3298
3340
  */
3299
- export declare type OrganizationTeamTitle = string;
3341
+ export type OrganizationTeamTitle = string;
3300
3342
  export interface OrganizationTeam {
3301
3343
  /** Type of Object, always equals to "team" */
3302
3344
  object: 'team';
@@ -3366,7 +3408,7 @@ export interface CreateInviteToCollection {
3366
3408
  /** The ID of collection the member has been invited to */
3367
3409
  collection: string;
3368
3410
  }
3369
- export declare type CreateOrganizationInvite = CreateInviteToOrganization | CreateInviteToSpace | CreateInviteToCollection;
3411
+ export type CreateOrganizationInvite = CreateInviteToOrganization | CreateInviteToSpace | CreateInviteToCollection;
3370
3412
  export interface InviteToOrganization {
3371
3413
  /** The role of the member in the organization */
3372
3414
  role: MemberRoleOrGuest;
@@ -3383,7 +3425,7 @@ export interface InviteToCollection {
3383
3425
  /** The collection the member has been invited to */
3384
3426
  collection: Collection;
3385
3427
  }
3386
- export declare type OrganizationInvite = {
3428
+ export type OrganizationInvite = {
3387
3429
  /** Type of Object, always equals to "invite" */
3388
3430
  object: 'invite';
3389
3431
  /** Unique identifier for the organization invite */
@@ -3420,9 +3462,10 @@ export interface UpgradeOrganizationBilling {
3420
3462
  interval: BillingInterval;
3421
3463
  /** Members to remove or sites to unpublish before upgrading */
3422
3464
  exclude?: {
3423
- members?: string[];
3424
- premiumSites?: string[];
3425
- audienceSites?: string[];
3465
+ /** A list of member identifiers to be removed, `all` to remove all members but the current admin */
3466
+ members?: string[] | 'all';
3467
+ /** A list of site identifiers to be unpublished, 'all' to unpublish all sites */
3468
+ sites?: string[] | 'all';
3426
3469
  };
3427
3470
  /** Reason that triggered the billing upgrade */
3428
3471
  reason?: string;
@@ -3446,7 +3489,7 @@ export interface BillingInvoicePreview {
3446
3489
  periodEnd: Timestamp;
3447
3490
  }[];
3448
3491
  }
3449
- export declare type BillingUpgrade = {
3492
+ export type BillingUpgrade = {
3450
3493
  result: 'checkout';
3451
3494
  /** Stripe payment session ID */
3452
3495
  sessionId: string;
@@ -3489,11 +3532,11 @@ export interface OrganizationExperimentalFeature {
3489
3532
  * @minLength 1
3490
3533
  * @maxLength 30
3491
3534
  */
3492
- export declare type SAMLProviderLabel = string;
3535
+ export type SAMLProviderLabel = string;
3493
3536
  /** @maxLength 1024 */
3494
- export declare type SAMLProviderEntityID = string;
3537
+ export type SAMLProviderEntityID = string;
3495
3538
  /** @maxLength 10000 */
3496
- export declare type SAMLProviderCertificate = string;
3539
+ export type SAMLProviderCertificate = string;
3497
3540
  export interface OrganizationSAMLProvider {
3498
3541
  /** Type of Object, always equals to "saml-provider" */
3499
3542
  object: 'saml-provider';
@@ -3542,7 +3585,7 @@ export interface OrganizationUsageCollections {
3542
3585
  total: number;
3543
3586
  }
3544
3587
  /** Sites usage metrics of an organization */
3545
- export declare type OrganizationUsageSites = {
3588
+ export type OrganizationUsageSites = {
3546
3589
  /** Count of all sites */
3547
3590
  total: number;
3548
3591
  /** Count of all legacy basic sites */
@@ -3556,8 +3599,8 @@ export declare type OrganizationUsageSites = {
3556
3599
  basic: number;
3557
3600
  /** Count of all premium sites */
3558
3601
  premium: number;
3559
- /** Count of all audience sites */
3560
- audience: number;
3602
+ /** Count of all ultimate sites */
3603
+ ultimate: number;
3561
3604
  };
3562
3605
  /** Team members usage metrics of an organization */
3563
3606
  export interface OrganizationUsageTeams {
@@ -3613,8 +3656,8 @@ export interface OrganizationUsage {
3613
3656
  * Optional title describing the capture
3614
3657
  * @maxLength 100
3615
3658
  */
3616
- export declare type CaptureTitle = string;
3617
- export declare type CaptureContext = 'thread' | 'walkthrough' | 'document';
3659
+ export type CaptureTitle = string;
3660
+ export type CaptureContext = 'thread' | 'walkthrough' | 'document';
3618
3661
  export interface Capture {
3619
3662
  /** Unique identifier for the capture */
3620
3663
  id: string;
@@ -3679,12 +3722,12 @@ export interface BaseCaptureEvent {
3679
3722
  name: string;
3680
3723
  };
3681
3724
  }
3682
- export declare type CaptureTerminalCommandEvent = BaseCaptureEvent & {
3725
+ export type CaptureTerminalCommandEvent = BaseCaptureEvent & {
3683
3726
  type: 'terminal.command';
3684
3727
  command: string;
3685
3728
  stdout: string;
3686
3729
  };
3687
- export declare type CaptureSpeechEvent = BaseCaptureEvent & {
3730
+ export type CaptureSpeechEvent = BaseCaptureEvent & {
3688
3731
  type: 'speech';
3689
3732
  } & ({
3690
3733
  /** WAV audio file, encoded as base64 */
@@ -3693,27 +3736,27 @@ export declare type CaptureSpeechEvent = BaseCaptureEvent & {
3693
3736
  /** Transcript of the speech */
3694
3737
  transcript: string;
3695
3738
  });
3696
- export declare type CaptureThreadMessageEvent = BaseCaptureEvent & {
3739
+ export type CaptureThreadMessageEvent = BaseCaptureEvent & {
3697
3740
  type: 'thread.message';
3698
3741
  isFirst?: boolean;
3699
3742
  text: string;
3700
3743
  };
3701
- export declare type CaptureFileAddedEvent = BaseCaptureEvent & {
3744
+ export type CaptureFileAddedEvent = BaseCaptureEvent & {
3702
3745
  type: 'file.added';
3703
3746
  filename: string;
3704
3747
  fileSnapshot: string;
3705
3748
  };
3706
- export declare type CaptureFileChangedEvent = BaseCaptureEvent & {
3749
+ export type CaptureFileChangedEvent = BaseCaptureEvent & {
3707
3750
  type: 'file.changed';
3708
3751
  filename: string;
3709
3752
  fileDiff: string;
3710
3753
  };
3711
- export declare type CaptureFileRemovedEvent = BaseCaptureEvent & {
3754
+ export type CaptureFileRemovedEvent = BaseCaptureEvent & {
3712
3755
  type: 'file.removed';
3713
3756
  filename: string;
3714
3757
  fileSnapshot: string;
3715
3758
  };
3716
- export declare type CaptureEvent = CaptureTerminalCommandEvent | CaptureSpeechEvent | CaptureThreadMessageEvent | CaptureFileAddedEvent | CaptureFileChangedEvent | CaptureFileRemovedEvent;
3759
+ export type CaptureEvent = CaptureTerminalCommandEvent | CaptureSpeechEvent | CaptureThreadMessageEvent | CaptureFileAddedEvent | CaptureFileChangedEvent | CaptureFileRemovedEvent;
3717
3760
  export interface UpdateSnippetSchema {
3718
3761
  /** A new title for the snippet. */
3719
3762
  title?: string;
@@ -3722,7 +3765,7 @@ export interface UpdateSnippetSchema {
3722
3765
  export declare enum SiteType {
3723
3766
  Basic = "basic",
3724
3767
  Premium = "premium",
3725
- Audience = "audience",
3768
+ Ultimate = "ultimate",
3726
3769
  LegacyBasic = "legacy-basic",
3727
3770
  LegacyPremium = "legacy-premium"
3728
3771
  }
@@ -3731,18 +3774,18 @@ export declare enum SiteType {
3731
3774
  * @minLength 2
3732
3775
  * @maxLength 128
3733
3776
  */
3734
- export declare type SiteTitle = string;
3777
+ export type SiteTitle = string;
3735
3778
  /**
3736
3779
  * Custom hostname for the site, for e.g. docs.mycompany.com
3737
3780
  * @pattern ^([a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?[.]){2,}[a-z0-9][a-z0-9-]{0,61}[a-z0-9]$
3738
3781
  */
3739
- export declare type SiteHostname = string;
3782
+ export type SiteHostname = string;
3740
3783
  /**
3741
3784
  * Basename for the site. For e.g. api
3742
3785
  * @minLength 1
3743
3786
  * @maxLength 100
3744
3787
  */
3745
- export declare type SiteBasename = string;
3788
+ export type SiteBasename = string;
3746
3789
  /**
3747
3790
  * The visibility setting of the site determines the audience of the site.
3748
3791
  * * `public`: Anyone can access the site, and the site is indexed by search engines.
@@ -3761,7 +3804,7 @@ export declare enum SiteAdsTopic {
3761
3804
  Webdev = "webdev",
3762
3805
  Crypto = "crypto"
3763
3806
  }
3764
- export declare type SiteAds = {
3807
+ export type SiteAds = {
3765
3808
  status: 'pending';
3766
3809
  /** True if the user can submit the site for review. */
3767
3810
  submittable: boolean;
@@ -3824,7 +3867,7 @@ export interface Site {
3824
3867
  };
3825
3868
  }
3826
3869
  /** A response to a request to preview a paid operation or action. A user might preview an operation before executing it to see which billing steps would be required (if any). This schema defines the response of that preview request. */
3827
- export declare type BillingOperationPreviewResponse = {
3870
+ export type BillingOperationPreviewResponse = {
3828
3871
  /** User can go ahead with the operation without any additional steps. Their subscription will be updated to reflect the new changes. */
3829
3872
  type: 'go-ahead';
3830
3873
  } | {
@@ -3844,7 +3887,64 @@ export declare type BillingOperationPreviewResponse = {
3844
3887
  plan: BillingProduct;
3845
3888
  invoice?: BillingInvoicePreview;
3846
3889
  };
3847
- export declare type SitePublishingAuth = (VisitorAuthCustomBackend | VisitorAuthIntegrationBackend) & {
3890
+ /**
3891
+ * Path to the section on the site
3892
+ * @minLength 1
3893
+ * @maxLength 100
3894
+ */
3895
+ export type SiteSectionPath = string;
3896
+ /**
3897
+ * Path to the space on the site
3898
+ * @minLength 1
3899
+ * @maxLength 100
3900
+ */
3901
+ export type SiteSpacePath = string;
3902
+ export interface SiteSpace {
3903
+ /** The object type, which is always "site-space" */
3904
+ object?: 'site-space';
3905
+ /** Unique identifier of the site-space */
3906
+ id: string;
3907
+ /** Path to the space on the site */
3908
+ path: SiteSpacePath;
3909
+ /** ID of the section the space belongs to in the site */
3910
+ section?: string;
3911
+ space: Space;
3912
+ title: string;
3913
+ /** Whether this is the default space for the site */
3914
+ default?: boolean;
3915
+ /** Whether the space has advanced customization feature enabled */
3916
+ hasAdvancedCustomizationFeature?: boolean;
3917
+ /** URLs associated with the object */
3918
+ urls: {
3919
+ /**
3920
+ * URL of the published version of the site-space. Only defined when site is published.
3921
+ * @format uri
3922
+ */
3923
+ published?: string;
3924
+ };
3925
+ }
3926
+ export interface SiteSection {
3927
+ /** The object type, which is always "site-section" */
3928
+ object?: 'site-section';
3929
+ /** Unique identifier of the site section */
3930
+ id: string;
3931
+ /** Title of the site section */
3932
+ title: string;
3933
+ /** Whether this is the default section for the site */
3934
+ default?: boolean;
3935
+ /** Path to the section on the site */
3936
+ path: SiteSectionPath;
3937
+ siteSpaces: SiteSpace[];
3938
+ /** URLs associated with the object */
3939
+ urls: {
3940
+ /**
3941
+ * URL of the published version of the site section. Only defined when site is published.
3942
+ * @format uri
3943
+ */
3944
+ published?: string;
3945
+ };
3946
+ }
3947
+ export type SitePublishingAuth = (VisitorAuthCustomBackend | VisitorAuthIntegrationBackend) & {
3848
3948
  /** Type of Object, always equals to "publishing-auth" */
3849
3949
  object: 'publishing-auth';
3850
3950
  /** Private key used to sign JWT tokens. */
@@ -3860,7 +3960,7 @@ export declare type SitePublishingAuth = (VisitorAuthCustomBackend | VisitorAuth
3860
3960
  */
3861
3961
  integration?: string;
3862
3962
  };
3863
- export declare type SitePublishingAuthUpdate = (VisitorAuthCustomBackend | VisitorAuthIntegrationBackend) & {
3963
+ export type SitePublishingAuthUpdate = (VisitorAuthCustomBackend | VisitorAuthIntegrationBackend) & {
3864
3964
  /**
3865
3965
  * A fallback URL that will be used if authentication fails.
3866
3966
  * @format uri
@@ -3955,122 +4055,6 @@ export interface SiteIntegrationScript {
3955
4055
  /** If true, the script will potentially load use cookies and visitors should be aware. */
3956
4056
  cookies: boolean;
3957
4057
  }
3958
- /**
3959
- * Path to the space on the site
3960
- * @minLength 1
3961
- * @maxLength 100
3962
- */
3963
- export declare type SiteSpacePath = string;
3964
- export interface SiteSpace {
3965
- /** The object type, which is always "site-space" */
3966
- object?: 'site-space';
3967
- /** Unique identifier of the site-space */
3968
- id: string;
3969
- /** Path to the space on the site */
3970
- path: SiteSpacePath;
3971
- space: Space;
3972
- title: string;
3973
- /** Whether this is the default space for the site */
3974
- default?: boolean;
3975
- /** Whether the space has advanced customization feature enabled */
3976
- hasAdvancedCustomizationFeature?: boolean;
3977
- /** URLs associated with the object */
3978
- urls: {
3979
- /**
3980
- * URL of the published version of the site-space. Only defined when site is published.
3981
- * @format uri
3982
- */
3983
- published?: string;
3984
- };
3985
- }
3986
- export interface SiteSpaceCustomizationOverrides {
3987
- /** Title to use for the published site variant. If not defined, it'll fallback to the content title. */
3988
- title?: SiteTitle;
3989
- styling?: {
3990
- /** The primary color used for links and UI text. Set to null to reset the override. */
3991
- primaryColor?: CustomizationThemedColor | null;
3992
- /** The style of the corners to use. Set to null to reset the override. */
3993
- corners?: CustomizationCorners | null;
3994
- /** The font family to use for the content. Set to null to reset the override. */
3995
- font?: CustomizationFont | null;
3996
- /** The icons style to use for the content. Set to null to reset the override. */
3997
- icons?: CustomizationIconsStyle | null;
3998
- /** The style of background to use. Set to null to reset the override. */
3999
- background?: CustomizationBackground | null;
4000
- };
4001
- internationalization?: {
4002
- /** The locale to use for the non-custom elements of the UI. Set to null to reset the override. */
4003
- locale: CustomizationLocale | null;
4004
- };
4005
- /** The favicon to use. Set to null to reset the override. */
4006
- favicon?: {
4007
- icon: CustomizationThemedURL;
4008
- } | {
4009
- /** Unicode codepoint or character of the emoji */
4010
- emoji: Emoji;
4011
- } | object | null;
4012
- header?: {
4013
- /** The theme preset to use. Set to null to reset the override. */
4014
- preset?: CustomizationHeaderPreset | null;
4015
- /** The header logo to use. Set to null to reset the override. */
4016
- logo?: CustomizationThemedURL | null;
4017
- /** The background color used in the header. Set to null to reset the override. */
4018
- backgroundColor?: CustomizationThemedColor | null;
4019
- /** The color used by the links in the header. Set to null to reset the override. */
4020
- linkColor?: CustomizationThemedColor | null;
4021
- /** The links that are displayed in the header. Set to null to reset the override. */
4022
- links?: CustomizationHeaderLink[] | null;
4023
- };
4024
- footer?: {
4025
- /** The logo displayed in the footer. Set to null to reset the override. */
4026
- logo?: CustomizationThemedURL | null;
4027
- /** The links groups that are displayed in the footer. Set to null to reset the override. */
4028
- groups?: CustomizationFooterGroup[] | null;
4029
- /**
4030
- * The copyright text that is displayed in the footer. Set to null to reset the override.
4031
- * @maxLength 300
4032
- */
4033
- copyright?: string | null;
4034
- };
4035
- themes?: {
4036
- /** The theme mode default value. Set to null to reset the override. */
4037
- default?: CustomizationThemeMode | null;
4038
- /** Should the reader be able to switch between dark and light mode. Set to null to reset the override. */
4039
- toggeable?: boolean | null;
4040
- };
4041
- pdf?: {
4042
- /** If true, PDF export is enabled for the published site. Set to null to reset the override. */
4043
- enabled: boolean | null;
4044
- };
4045
- feedback?: {
4046
- /** If true, feedback gathering is enabled. Set to null to reset the override. */
4047
- enabled: boolean | null;
4048
- };
4049
- aiSearch?: {
4050
- /** If true, AI search is enabled. Set to null to reset the override. */
4051
- enabled: boolean | null;
4052
- };
4053
- git?: {
4054
- /** 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. */
4055
- showEditLink: boolean | null;
4056
- };
4057
- pagination?: {
4058
- /** Whether the pagination navigation should be displayed on pages. Set to null to reset the override. */
4059
- enabled: boolean | null;
4060
- };
4061
- trademark?: {
4062
- /** Whether the GitBook trademark ("Powered by GitBook") should be visible. Set to null to reset the override. */
4063
- enabled: boolean | null;
4064
- };
4065
- privacyPolicy?: {
4066
- /** The custom link to the privacy policy. Set to null to reset the override. */
4067
- url?: URL | null;
4068
- };
4069
- socialPreview?: {
4070
- /** The URL for the social preview image. Set to null to reset the override. */
4071
- url?: URL | null;
4072
- };
4073
- }
4074
4058
  export interface SiteSpacePointer {
4075
4059
  type: 'site-space';
4076
4060
  /** Unique identifier for the site space */
@@ -4155,7 +4139,7 @@ export declare enum CustomHostnameErrorStatus {
4155
4139
  InvalidDomain = "invalid_domain",
4156
4140
  InternalError = "internal_error"
4157
4141
  }
4158
- export declare type CustomHostnameStatus = CustomHostnameDnsStatus | CustomHostnameSslStatus | CustomHostnameErrorStatus;
4142
+ export type CustomHostnameStatus = CustomHostnameDnsStatus | CustomHostnameSslStatus | CustomHostnameErrorStatus;
4159
4143
  export interface CustomHostname {
4160
4144
  object: 'custom-hostname';
4161
4145
  /** Custom hostname for the site, for e.g. docs.mycompany.com */
@@ -4289,7 +4273,7 @@ export interface UserImpersonationInfo {
4289
4273
  impersonatorId: string;
4290
4274
  }
4291
4275
  /** The info returned when impersonating a GitBook User. */
4292
- export declare type UserImpersonation = UserBackOfficeInfo & {
4276
+ export type UserImpersonation = UserBackOfficeInfo & {
4293
4277
  /** The GitBook User impersonation info. */
4294
4278
  impersonation: UserImpersonationInfo;
4295
4279
  };
@@ -4339,11 +4323,11 @@ export declare enum SpaceBlockReason {
4339
4323
  SOCIAL_ENGINEERING = "SOCIAL_ENGINEERING",
4340
4324
  UNWANTED_SOFTWARE = "UNWANTED_SOFTWARE"
4341
4325
  }
4342
- export declare type BackOfficeSite = Site & {
4326
+ export type BackOfficeSite = Site & {
4343
4327
  /** ID of the organization owning this site */
4344
4328
  organization: string;
4345
4329
  };
4346
- export declare type PublishedSiteContentLookup = {
4330
+ export type PublishedSiteContentLookup = {
4347
4331
  /** Type of target for the redirect */
4348
4332
  target: 'application' | 'content' | 'external';
4349
4333
  redirect: URL;
@@ -4368,6 +4352,8 @@ export declare type PublishedSiteContentLookup = {
4368
4352
  organization: string;
4369
4353
  /** Share link key of the site in case the site was published with share-links. */
4370
4354
  shareKey?: string;
4355
+ /** Whether the resolved site URL is complete and at it's terminal point, meaning no more site path segments can be further expected before any page path segments. */
4356
+ complete: boolean;
4371
4357
  };
4372
4358
  export interface UpdateContentPublishingAuth {
4373
4359
  /**
@@ -4396,7 +4382,7 @@ export interface ContentPublishingAuth {
4396
4382
  */
4397
4383
  fallbackURL?: string;
4398
4384
  }
4399
- export declare type DocumentBlock = DocumentBlockParagraph | DocumentBlockHeading | DocumentBlockListOrdered | DocumentBlockListUnordered | DocumentBlockListTasks | DocumentBlockListItem | DocumentBlockDivider | DocumentBlockQuote | DocumentBlockHint | DocumentBlockImages | DocumentBlockImage | DocumentBlockFile | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockCode | DocumentBlockCodeLine | DocumentBlockMath | DocumentBlockExpandable | DocumentBlockTabs | DocumentBlockTabsItem | DocumentBlockTable | DocumentBlockSwagger | DocumentBlockContentRef | DocumentBlockIntegration | DocumentBlockSyncedBlock;
4385
+ export type DocumentBlock = DocumentBlockParagraph | DocumentBlockHeading | DocumentBlockListOrdered | DocumentBlockListUnordered | DocumentBlockListTasks | DocumentBlockListItem | DocumentBlockDivider | DocumentBlockQuote | DocumentBlockHint | DocumentBlockImages | DocumentBlockImage | DocumentBlockFile | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockCode | DocumentBlockCodeLine | DocumentBlockMath | DocumentBlockExpandable | DocumentBlockTabs | DocumentBlockTabsItem | DocumentBlockTable | DocumentBlockSwagger | DocumentBlockContentRef | DocumentBlockIntegration | DocumentBlockSyncedBlock;
4400
4386
  /** The type of semantic change. */
4401
4387
  export declare enum RevisionSemanticChangeType {
4402
4388
  PageCreated = "page_created",
@@ -4467,7 +4453,7 @@ export declare enum APIIntegrationScope {
4467
4453
  IntegrationInstallationRead = "integration:installation:read",
4468
4454
  IntegrationInstallationUpdate = "integration:installation:update"
4469
4455
  }
4470
- export declare type APIScope = IntegrationScope | APIIntegrationScope;
4456
+ export type APIScope = IntegrationScope | APIIntegrationScope;
4471
4457
  /** Common properties for all Content API tokens. */
4472
4458
  export interface ContentAPIBaseToken {
4473
4459
  /** ID of the organization that owns the content. A content token is always scoped to spaces from the same organization. */
@@ -4477,17 +4463,17 @@ export interface ContentAPIBaseToken {
4477
4463
  /** Multiplier for the rate limit applied to the token. */
4478
4464
  rateLimitMultiplier?: number;
4479
4465
  }
4480
- export declare type SpaceAPIToken = ContentAPIBaseToken & {
4466
+ export type SpaceAPIToken = ContentAPIBaseToken & {
4481
4467
  kind: 'space';
4482
4468
  /** ID of the space that the token is allowed to access. */
4483
4469
  space: string;
4484
4470
  };
4485
- export declare type CollectionAPIToken = ContentAPIBaseToken & {
4471
+ export type CollectionAPIToken = ContentAPIBaseToken & {
4486
4472
  kind: 'collection';
4487
4473
  /** ID of the collection that the token is allowed to access. */
4488
4474
  collection: string;
4489
4475
  };
4490
- export declare type SiteAPIToken = ContentAPIBaseToken & {
4476
+ export type SiteAPIToken = ContentAPIBaseToken & {
4491
4477
  kind: 'site';
4492
4478
  /** ID of the site that the token is allowed to access. */
4493
4479
  site: string;
@@ -4497,7 +4483,7 @@ export declare type SiteAPIToken = ContentAPIBaseToken & {
4497
4483
  space: string;
4498
4484
  };
4499
4485
  /** Content properties stored in a Content API token. */
4500
- export declare type ContentAPITokenPayload = SpaceAPIToken | CollectionAPIToken | SiteAPIToken;
4486
+ export type ContentAPITokenPayload = SpaceAPIToken | CollectionAPIToken | SiteAPIToken;
4501
4487
  export interface SpaceInfoChannel {
4502
4488
  channel: 'space';
4503
4489
  space: string;
@@ -4747,12 +4733,22 @@ export interface SiteShareLinkChannel {
4747
4733
  site: string;
4748
4734
  siteShareLink: string;
4749
4735
  }
4736
+ /** Subscription channel for changes in site sections in an organization. */
4737
+ export interface SiteSectionsChannel {
4738
+ channel: 'site-sections';
4739
+ site: string;
4740
+ }
4741
+ export interface SiteSectionChannel {
4742
+ channel: 'site-section';
4743
+ site: string;
4744
+ siteSection: string;
4745
+ }
4750
4746
  export interface CustomHostnameChannel {
4751
4747
  channel: 'custom-hostname';
4752
4748
  customHostname: string;
4753
4749
  }
4754
4750
  /** Channel to subscribe to for API updates. */
4755
- export declare type SubscriptionChannel = SpaceInfoChannel | SpaceGitInfoChannel | SpacePublishingAuthChannel | SpacePublishingCustomizationChannel | SpaceCustomFieldsChannel | SpaceBrokenLinksChannel | BackofficeUserInfoChannel | SpaceIntegrationsChannel | OrganizationCustomFieldsChannel | UserAPITokensChannel | UserOrganizationsChannel | UserProfileChannel | ChangeRequestChannel | ChangeRequestsChannel | ChangeRequestReviewsChannel | ChangeRequestBrokenLinksChannel | CollectionChannel | CollectionPublishingCustomizationChannel | OrganizationInfoChannel | OrganizationMembersChannel | OrganizationMemberChannel | OrganizationSAMLChannel | OrganizationTeamsChannel | OrganizationTeamChannel | OrganizationTeamMembersChannel | OrganizationTeamMemberChannel | OrganizationSpacesChannel | OrganizationCollectionsChannel | OrganizationCapturesChannel | OrganizationIntegrationsChannel | OrganizationInstallationsChannel | OrganizationSitesChannel | OrganizationExperimentalFeaturesChannel | OrganizationSyncedBlocksChannel | OrganizationSyncedBlockChannel | CommentsChannel | CommentInfoChannel | CommentReplyInfoChannel | CommentRepliesChannel | IntegrationChannel | IntegrationInstallationChannel | IntegrationSpaceInstallationChannel | IntegrationSpaceInstallationsChannel | IntegrationSiteInstallationChannel | IntegrationSiteInstallationsChannel | SiteChannel | SiteCustomizationChannel | SiteIntegrationsChannel | SiteSpaceChannel | SiteSpaceCustomizationChannel | SiteSpacesChannel | SitePublishingAuthChannel | SiteShareLinksChannel | SiteShareLinkChannel | CustomHostnameChannel;
4751
+ export type SubscriptionChannel = SpaceInfoChannel | SpaceGitInfoChannel | SpacePublishingAuthChannel | SpacePublishingCustomizationChannel | SpaceCustomFieldsChannel | SpaceBrokenLinksChannel | BackofficeUserInfoChannel | SpaceIntegrationsChannel | OrganizationCustomFieldsChannel | UserAPITokensChannel | UserOrganizationsChannel | UserProfileChannel | ChangeRequestChannel | ChangeRequestsChannel | ChangeRequestReviewsChannel | ChangeRequestBrokenLinksChannel | CollectionChannel | CollectionPublishingCustomizationChannel | OrganizationInfoChannel | OrganizationMembersChannel | OrganizationMemberChannel | OrganizationSAMLChannel | OrganizationTeamsChannel | OrganizationTeamChannel | OrganizationTeamMembersChannel | OrganizationTeamMemberChannel | OrganizationSpacesChannel | OrganizationCollectionsChannel | OrganizationCapturesChannel | OrganizationIntegrationsChannel | OrganizationInstallationsChannel | OrganizationSitesChannel | OrganizationExperimentalFeaturesChannel | OrganizationSyncedBlocksChannel | OrganizationSyncedBlockChannel | CommentsChannel | CommentInfoChannel | CommentReplyInfoChannel | CommentRepliesChannel | IntegrationChannel | IntegrationInstallationChannel | IntegrationSpaceInstallationChannel | IntegrationSpaceInstallationsChannel | IntegrationSiteInstallationChannel | IntegrationSiteInstallationsChannel | SiteChannel | SiteCustomizationChannel | SiteIntegrationsChannel | SiteSpaceChannel | SiteSpaceCustomizationChannel | SiteSpacesChannel | SitePublishingAuthChannel | SiteShareLinksChannel | SiteShareLinkChannel | SiteSectionsChannel | SiteSectionChannel | CustomHostnameChannel;
4756
4752
  /** The status of ads on the site */
4757
4753
  export declare enum SiteAdsStatus {
4758
4754
  Pending = "pending",
@@ -4772,32 +4768,32 @@ export interface Seat {
4772
4768
  /** @format date-time */
4773
4769
  updatedAt: string;
4774
4770
  }
4775
- export declare type RequestSpaceTrackPageView = SpaceTrackPageView;
4776
- export declare type RequestSiteTrackPageView = SiteTrackPageView;
4777
- export declare type RequestPublishIntegration = PublishIntegration;
4778
- export declare type RequestUpdateIntegrationInstallation = UpdateIntegrationInstallation;
4779
- export declare type RequestUpdateIntegrationSpaceInstallation = UpdateIntegrationSpaceInstallation;
4780
- export declare type RequestUpdateIntegrationSiteInstallation = UpdateIntegrationSiteInstallation;
4781
- export declare type RequestUpgradeOrganizationBilling = UpgradeOrganizationBilling;
4782
- export declare type RequestInviteUsersToOrganization = InviteUsersToOrganization;
4783
- export declare type RequestImportGitRepository = ImportGitRepository;
4784
- export declare type RequestSyncGitRepository = SyncGitRepository;
4785
- export declare type RequestExportToGitRepository = ExportToGitRepository;
4786
- export declare type RequestImportContent = ImportContent;
4787
- export declare type RequestCreateSpace = CreateSpace;
4788
- export declare type RequestCreateChangeRequest = CreateChangeRequest;
4789
- export declare type RequestRenderIntegrationUI = RenderIntegrationUI;
4790
- export declare type RequestUpdateContentPublishingAuth = UpdateContentPublishingAuth;
4791
- export declare type RequestCreateOrganization = CreateOrganization;
4792
- export declare type RequestUpdateSpaceGitInfo = UpdateSpaceGitInfo;
4793
- export declare type RequestPurgeCDNCacheContext = PurgeCDNCacheContext;
4794
- export declare type SpaceVisitorAuth = VisitorAuth;
4795
- export declare type SpaceVisitorAuthCustomBackend = VisitorAuthCustomBackend;
4796
- export declare type SpaceVisitorAuthIntegrationBackend = VisitorAuthIntegrationBackend;
4797
- export declare type UserPermissions = Index;
4771
+ export type RequestSpaceTrackPageView = SpaceTrackPageView;
4772
+ export type RequestSiteTrackPageView = SiteTrackPageView;
4773
+ export type RequestPublishIntegration = PublishIntegration;
4774
+ export type RequestUpdateIntegrationInstallation = UpdateIntegrationInstallation;
4775
+ export type RequestUpdateIntegrationSpaceInstallation = UpdateIntegrationSpaceInstallation;
4776
+ export type RequestUpdateIntegrationSiteInstallation = UpdateIntegrationSiteInstallation;
4777
+ export type RequestUpgradeOrganizationBilling = UpgradeOrganizationBilling;
4778
+ export type RequestInviteUsersToOrganization = InviteUsersToOrganization;
4779
+ export type RequestImportGitRepository = ImportGitRepository;
4780
+ export type RequestSyncGitRepository = SyncGitRepository;
4781
+ export type RequestExportToGitRepository = ExportToGitRepository;
4782
+ export type RequestImportContent = ImportContent;
4783
+ export type RequestCreateSpace = CreateSpace;
4784
+ export type RequestCreateChangeRequest = CreateChangeRequest;
4785
+ export type RequestRenderIntegrationUI = RenderIntegrationUI;
4786
+ export type RequestUpdateContentPublishingAuth = UpdateContentPublishingAuth;
4787
+ export type RequestCreateOrganization = CreateOrganization;
4788
+ export type RequestUpdateSpaceGitInfo = UpdateSpaceGitInfo;
4789
+ export type RequestPurgeCDNCacheContext = PurgeCDNCacheContext;
4790
+ export type SpaceVisitorAuth = VisitorAuth;
4791
+ export type SpaceVisitorAuthCustomBackend = VisitorAuthCustomBackend;
4792
+ export type SpaceVisitorAuthIntegrationBackend = VisitorAuthIntegrationBackend;
4793
+ export type UserPermissions = Index;
4798
4794
  import { EventIterator } from 'event-iterator';
4799
- export declare type QueryParamsType = Record<string | number, any>;
4800
- export declare type ResponseFormat = keyof Omit<Body, 'body' | 'bodyUsed'>;
4795
+ export type QueryParamsType = Record<string | number, any>;
4796
+ export type ResponseFormat = keyof Omit<Body, 'body' | 'bodyUsed'>;
4801
4797
  export interface FullRequestParams extends Omit<RequestInit, 'body'> {
4802
4798
  /** set parameter to `true` for call `securityWorker` for this request */
4803
4799
  secure?: boolean;
@@ -4816,7 +4812,7 @@ export interface FullRequestParams extends Omit<RequestInit, 'body'> {
4816
4812
  /** request cancellation token */
4817
4813
  cancelToken?: CancelToken;
4818
4814
  }
4819
- export declare type RequestParams = Omit<FullRequestParams, 'body' | 'method' | 'query' | 'path'>;
4815
+ export type RequestParams = Omit<FullRequestParams, 'body' | 'method' | 'query' | 'path'>;
4820
4816
  export interface ApiConfig<SecurityDataType = unknown> {
4821
4817
  baseUrl?: string;
4822
4818
  baseApiParams?: Omit<RequestParams, 'baseUrl' | 'cancelToken' | 'signal'>;
@@ -4827,7 +4823,7 @@ export interface HttpResponse<D extends unknown, E extends unknown = unknown> ex
4827
4823
  data: D;
4828
4824
  error: E;
4829
4825
  }
4830
- declare type CancelToken = Symbol | string | number;
4826
+ type CancelToken = Symbol | string | number;
4831
4827
  export declare enum ContentType {
4832
4828
  Json = "application/json",
4833
4829
  FormData = "multipart/form-data",
@@ -4853,7 +4849,7 @@ export declare class HttpClient<SecurityDataType = unknown> {
4853
4849
  protected createAbortSignal: (cancelToken: CancelToken) => AbortSignal | undefined;
4854
4850
  abortRequest: (cancelToken: CancelToken) => void;
4855
4851
  request: <T = any, E = any>({ body, secure, path, type, query, format, baseUrl, cancelToken, ...params }: FullRequestParams) => Promise<HttpResponse<T, E>>;
4856
- streamRequest: <T, E>({ path, baseUrl, cancelToken, secure, ...params }: FullRequestParams) => EventIterator<T>;
4852
+ streamRequest: <T, E = any>({ path, baseUrl, cancelToken, secure, ...params }: FullRequestParams) => EventIterator<T>;
4857
4853
  }
4858
4854
  /**
4859
4855
  * @title GitBook API
@@ -4910,7 +4906,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4910
4906
  askQueryWithGet: (query: {
4911
4907
  query: string;
4912
4908
  /** Output format for the content. */
4913
- format?: 'document' | 'markdown';
4909
+ format?: "document" | "markdown";
4914
4910
  /** Return query details in the result */
4915
4911
  details?: boolean;
4916
4912
  }, params?: RequestParams) => Promise<HttpResponse<{
@@ -4927,7 +4923,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4927
4923
  */
4928
4924
  askQuery: (data: SearchAIQuery, query?: {
4929
4925
  /** Output format for the content. */
4930
- format?: 'document' | 'markdown';
4926
+ format?: "document" | "markdown";
4931
4927
  /** Return query details in the result */
4932
4928
  details?: boolean;
4933
4929
  }, params?: RequestParams) => Promise<HttpResponse<{
@@ -5158,7 +5154,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5158
5154
  askQueryInSpaceWithGet: (spaceId: string, query: {
5159
5155
  query: string;
5160
5156
  /** Output format for the content. */
5161
- format?: 'document' | 'markdown';
5157
+ format?: "document" | "markdown";
5162
5158
  /** Return query details in the result */
5163
5159
  details?: boolean;
5164
5160
  }, params?: RequestParams) => Promise<HttpResponse<{
@@ -5175,7 +5171,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5175
5171
  */
5176
5172
  askQueryInSpace: (spaceId: string, data: SearchAIQuery, query?: {
5177
5173
  /** Output format for the content. */
5178
- format?: 'document' | 'markdown';
5174
+ format?: "document" | "markdown";
5179
5175
  /** Return query details in the result */
5180
5176
  details?: boolean;
5181
5177
  }, params?: RequestParams) => Promise<HttpResponse<{
@@ -5193,7 +5189,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5193
5189
  streamAskInSpace: (spaceId: string, query: {
5194
5190
  query: string;
5195
5191
  /** Output format for the content. */
5196
- format?: 'document' | 'markdown';
5192
+ format?: "document" | "markdown";
5197
5193
  /** Ensure that the response is never null */
5198
5194
  details?: boolean;
5199
5195
  }, params?: RequestParams) => EventIterator<SearchAIAnswerStream>;
@@ -5455,20 +5451,49 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5455
5451
  */
5456
5452
  getPageById: (spaceId: string, pageId: string, query?: {
5457
5453
  /** Output format for the content. */
5458
- format?: 'document' | 'markdown';
5454
+ format?: "document" | "markdown";
5459
5455
  /**
5460
5456
  * If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
5461
5457
  * @default true
5462
5458
  */
5463
5459
  metadata?: boolean;
5464
5460
  }, params?: RequestParams) => Promise<HttpResponse<RevisionPage, Error>>;
5461
+ /**
5462
+ * No description
5463
+ *
5464
+ * @tags spaces, links
5465
+ * @name ListPageLinksInSpace
5466
+ * @summary List all links in a page
5467
+ * @request GET:/spaces/{spaceId}/content/page/{pageId}/links
5468
+ * @secure
5469
+ */
5470
+ listPageLinksInSpace: (spaceId: string, pageId: string, query?: {
5471
+ /** Identifier of the page results to fetch. */
5472
+ page?: string;
5473
+ /**
5474
+ * The number of results per page
5475
+ * @min 0
5476
+ * @max 1000
5477
+ */
5478
+ limit?: number;
5479
+ /**
5480
+ * Text to display to represent the reference. Possible values include:
5481
+ * - `ok` - No problems detected for this content reference.
5482
+ * - `broken` - The target does not exist in the revision.
5483
+ * - `in-app` - The target is a URL link pointing to an internal location in the app.
5484
+ */
5485
+ status?: ContentReferenceStatus;
5486
+ }, params?: RequestParams) => Promise<HttpResponse<List & {
5487
+ stats: ContentReferencesStats;
5488
+ items: ContentReferenceUsage[];
5489
+ }, Error>>;
5465
5490
  /**
5466
5491
  * No description
5467
5492
  *
5468
5493
  * @tags spaces
5469
5494
  * @name ListSpacePageBacklinks
5470
5495
  * @summary Get backlink locations for a page existing in a space.
5471
- * @request GET:/spaces/{spaceId}/content/pages/{pageId}/backlinks
5496
+ * @request GET:/spaces/{spaceId}/content/page/{pageId}/backlinks
5472
5497
  * @secure
5473
5498
  */
5474
5499
  listSpacePageBacklinks: (spaceId: string, pageId: string, query?: {
@@ -5502,7 +5527,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5502
5527
  */
5503
5528
  getPageByPath: (spaceId: string, pagePath: string, query?: {
5504
5529
  /** Output format for the content. */
5505
- format?: 'document' | 'markdown';
5530
+ format?: "document" | "markdown";
5506
5531
  /**
5507
5532
  * If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
5508
5533
  * @default true
@@ -5519,7 +5544,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5519
5544
  */
5520
5545
  getDocumentById: (spaceId: string, documentId: string, query?: {
5521
5546
  /** Version of the schema used for the document. */
5522
- schema?: 'current' | 'next';
5547
+ schema?: "current" | "next";
5523
5548
  }, params?: RequestParams) => Promise<HttpResponse<JSONDocument, Error>>;
5524
5549
  /**
5525
5550
  * No description
@@ -5585,7 +5610,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5585
5610
  updateChangeRequestById: (spaceId: string, changeRequestId: string, data: {
5586
5611
  /** Subject of the change request */
5587
5612
  subject?: ChangeRequestSubject;
5588
- status?: 'draft' | 'open' | 'archived';
5613
+ status?: "draft" | "open" | "archived";
5589
5614
  }, params?: RequestParams) => Promise<HttpResponse<ChangeRequest, Error>>;
5590
5615
  /**
5591
5616
  * No description
@@ -5599,7 +5624,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5599
5624
  mergeChangeRequest: (spaceId: string, changeRequestId: string, params?: RequestParams) => Promise<HttpResponse<{
5600
5625
  /** ID of the resulting revision */
5601
5626
  revision: string;
5602
- result: 'merge' | 'conflicts';
5627
+ result: "merge" | "conflicts";
5603
5628
  }, Error>>;
5604
5629
  /**
5605
5630
  * No description
@@ -5613,7 +5638,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5613
5638
  updateChangeRequest: (spaceId: string, changeRequestId: string, params?: RequestParams) => Promise<HttpResponse<{
5614
5639
  /** ID of the resulting revision */
5615
5640
  revision: string;
5616
- result: 'update' | 'conflicts';
5641
+ result: "update" | "conflicts";
5617
5642
  }, Error>>;
5618
5643
  /**
5619
5644
  * No description
@@ -5626,7 +5651,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5626
5651
  */
5627
5652
  getReviewsByChangeRequestId: (spaceId: string, changeRequestId: string, query?: {
5628
5653
  /** Output format for the content. */
5629
- format?: 'document' | 'markdown';
5654
+ format?: "document" | "markdown";
5630
5655
  /** Identifier of the page results to fetch. */
5631
5656
  page?: string;
5632
5657
  /**
@@ -5723,7 +5748,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5723
5748
  * - `in-app` - The target is a URL link pointing to an internal location in the app.
5724
5749
  */
5725
5750
  status?: ContentReferenceStatus;
5726
- brokenContext?: 'change-request' | 'space';
5751
+ brokenContext?: "change-request" | "space";
5727
5752
  }, params?: RequestParams) => Promise<HttpResponse<List & {
5728
5753
  stats: ContentReferencesStats;
5729
5754
  items: ContentReferenceUsage[];
@@ -5756,14 +5781,14 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5756
5781
  * An order for the items in the list
5757
5782
  * @default "desc"
5758
5783
  */
5759
- order?: 'asc' | 'desc';
5784
+ order?: "asc" | "desc";
5760
5785
  /** Output format for the content. */
5761
- format?: 'document' | 'markdown';
5786
+ format?: "document" | "markdown";
5762
5787
  /**
5763
5788
  * When provided, only comments with the given status are returned. Defaults to "all".
5764
5789
  * @default "all"
5765
5790
  */
5766
- status?: 'all' | 'open' | 'resolved';
5791
+ status?: "all" | "open" | "resolved";
5767
5792
  /** The target page of the comment */
5768
5793
  targetPage?: string;
5769
5794
  }, params?: RequestParams) => Promise<HttpResponse<List & {
@@ -5790,7 +5815,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5790
5815
  */
5791
5816
  getCommentInChangeRequest: (spaceId: string, changeRequestId: string, commentId: string, query?: {
5792
5817
  /** Output format for the content. */
5793
- format?: 'document' | 'markdown';
5818
+ format?: "document" | "markdown";
5794
5819
  }, params?: RequestParams) => Promise<HttpResponse<Comment, Error>>;
5795
5820
  /**
5796
5821
  * No description
@@ -5831,7 +5856,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5831
5856
  */
5832
5857
  limit?: number;
5833
5858
  /** Output format for the content. */
5834
- format?: 'document' | 'markdown';
5859
+ format?: "document" | "markdown";
5835
5860
  }, params?: RequestParams) => Promise<HttpResponse<List & {
5836
5861
  items: CommentReply[];
5837
5862
  }, Error>>;
@@ -5846,7 +5871,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5846
5871
  */
5847
5872
  postCommentReplyInChangeRequest: (spaceId: string, changeRequestId: string, commentId: string, data: PostCommentReplySchema, query?: {
5848
5873
  /** Output format for the content. */
5849
- format?: 'document' | 'markdown';
5874
+ format?: "document" | "markdown";
5850
5875
  }, params?: RequestParams) => Promise<HttpResponse<CommentReply, Error>>;
5851
5876
  /**
5852
5877
  * No description
@@ -5859,7 +5884,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5859
5884
  */
5860
5885
  getCommentReplyInChangeRequest: (spaceId: string, changeRequestId: string, commentId: string, commentReplyId: string, query?: {
5861
5886
  /** Output format for the content. */
5862
- format?: 'document' | 'markdown';
5887
+ format?: "document" | "markdown";
5863
5888
  }, params?: RequestParams) => Promise<HttpResponse<CommentReply, Error>>;
5864
5889
  /**
5865
5890
  * No description
@@ -6011,13 +6036,35 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6011
6036
  */
6012
6037
  getPageInChangeRequestById: (spaceId: string, changeRequestId: string, pageId: string, query?: {
6013
6038
  /** Output format for the content. */
6014
- format?: 'document' | 'markdown';
6039
+ format?: "document" | "markdown";
6015
6040
  /**
6016
6041
  * If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
6017
6042
  * @default true
6018
6043
  */
6019
6044
  metadata?: boolean;
6020
6045
  }, params?: RequestParams) => Promise<HttpResponse<RevisionPage, Error>>;
6046
+ /**
6047
+ * No description
6048
+ *
6049
+ * @tags spaces
6050
+ * @name ListPageLinksInChangeRequest
6051
+ * @summary List all links in a page inside a change request.
6052
+ * @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/content/page/{pageId}/links
6053
+ * @secure
6054
+ */
6055
+ listPageLinksInChangeRequest: (spaceId: string, changeRequestId: string, pageId: string, query?: {
6056
+ /** Identifier of the page results to fetch. */
6057
+ page?: string;
6058
+ /**
6059
+ * The number of results per page
6060
+ * @min 0
6061
+ * @max 1000
6062
+ */
6063
+ limit?: number;
6064
+ }, params?: RequestParams) => Promise<HttpResponse<List & {
6065
+ stats: ContentReferencesStats;
6066
+ items: ContentReferenceUsage[];
6067
+ }, Error>>;
6021
6068
  /**
6022
6069
  * No description
6023
6070
  *
@@ -6058,7 +6105,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6058
6105
  */
6059
6106
  getPageInChangeRequestByPath: (spaceId: string, changeRequestId: string, pagePath: string, query?: {
6060
6107
  /** Output format for the content. */
6061
- format?: 'document' | 'markdown';
6108
+ format?: "document" | "markdown";
6062
6109
  /**
6063
6110
  * If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
6064
6111
  * @default true
@@ -6080,7 +6127,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6080
6127
  /** The branch id of the touched content. */
6081
6128
  branchId: string;
6082
6129
  /** The relation of the touched content to the change request. */
6083
- relation: 'synced-block';
6130
+ relation: "synced-block";
6084
6131
  }, params?: RequestParams) => Promise<HttpResponse<ChangeRequest, Error>>;
6085
6132
  /**
6086
6133
  * No description
@@ -6202,7 +6249,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6202
6249
  */
6203
6250
  getPageInRevisionById: (spaceId: string, revisionId: string, pageId: string, query?: {
6204
6251
  /** Output format for the content. */
6205
- format?: 'document' | 'markdown';
6252
+ format?: "document" | "markdown";
6206
6253
  /**
6207
6254
  * If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
6208
6255
  * @default true
@@ -6219,7 +6266,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6219
6266
  */
6220
6267
  getPageInRevisionByPath: (spaceId: string, revisionId: string, pagePath: string, query?: {
6221
6268
  /** Output format for the content. */
6222
- format?: 'document' | 'markdown';
6269
+ format?: "document" | "markdown";
6223
6270
  /**
6224
6271
  * If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
6225
6272
  * @default true
@@ -6248,14 +6295,14 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6248
6295
  * An order for the items in the list
6249
6296
  * @default "desc"
6250
6297
  */
6251
- order?: 'asc' | 'desc';
6298
+ order?: "asc" | "desc";
6252
6299
  /**
6253
6300
  * When provided, only comments with the given status are returned. Defaults to "all".
6254
6301
  * @default "all"
6255
6302
  */
6256
- status?: 'all' | 'open' | 'resolved';
6303
+ status?: "all" | "open" | "resolved";
6257
6304
  /** Output format for the content. */
6258
- format?: 'document' | 'markdown';
6305
+ format?: "document" | "markdown";
6259
6306
  /** The target page of the comment */
6260
6307
  targetPage?: string;
6261
6308
  }, params?: RequestParams) => Promise<HttpResponse<List & {
@@ -6282,7 +6329,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6282
6329
  */
6283
6330
  getCommentInSpace: (spaceId: string, commentId: string, query?: {
6284
6331
  /** Output format for the content. */
6285
- format?: 'document' | 'markdown';
6332
+ format?: "document" | "markdown";
6286
6333
  }, params?: RequestParams) => Promise<HttpResponse<Comment, Error>>;
6287
6334
  /**
6288
6335
  * No description
@@ -6323,7 +6370,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6323
6370
  */
6324
6371
  limit?: number;
6325
6372
  /** Output format for the content. */
6326
- format?: 'document' | 'markdown';
6373
+ format?: "document" | "markdown";
6327
6374
  }, params?: RequestParams) => Promise<HttpResponse<List & {
6328
6375
  items: CommentReply[];
6329
6376
  }, Error>>;
@@ -6348,7 +6395,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6348
6395
  */
6349
6396
  getCommentReplyInSpace: (spaceId: string, commentId: string, commentReplyId: string, query?: {
6350
6397
  /** Output format for the content. */
6351
- format?: 'document' | 'markdown';
6398
+ format?: "document" | "markdown";
6352
6399
  }, params?: RequestParams) => Promise<HttpResponse<CommentReply, Error>>;
6353
6400
  /**
6354
6401
  * No description
@@ -6574,7 +6621,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6574
6621
  *
6575
6622
  * @tags spaces, links
6576
6623
  * @name ListSpaceLinks
6577
- * @summary Get all links in the context of a space including their status and location where they appear.
6624
+ * @summary Get all links in a space including their status and location where they appear.
6578
6625
  * @request GET:/spaces/{spaceId}/links
6579
6626
  * @secure
6580
6627
  */
@@ -6860,6 +6907,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6860
6907
  * @pattern ^[a-zA-Z0-9-_.]+$
6861
6908
  */
6862
6909
  blockDomain?: string;
6910
+ /** If true, returns only integrations with blocks. If false, returns only integrations without blocks. */
6911
+ blocks?: boolean;
6863
6912
  }, params?: RequestParams) => Promise<HttpResponse<List & {
6864
6913
  items: Integration[];
6865
6914
  }, Error>>;
@@ -7011,18 +7060,23 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7011
7060
  * No description
7012
7061
  *
7013
7062
  * @tags integrations
7014
- * @name UpdateIntegrationDevSpace
7015
- * @summary Update the development space for an integration
7016
- * @request PUT:/integrations/{integrationName}/spaces/{spaceId}/dev
7063
+ * @name SetIntegrationDevelopmentMode
7064
+ * @summary Update an integration to be in development mode.
7065
+ * @request PUT:/integrations/{integrationName}/dev
7017
7066
  * @secure
7018
7067
  */
7019
- updateIntegrationDevSpace: (integrationName: string, spaceId: string, data: {
7068
+ setIntegrationDevelopmentMode: (integrationName: string, data: {
7020
7069
  /**
7021
7070
  * URL of the tunnel to dispatch integration events to
7022
7071
  * @minLength 1
7023
7072
  * @maxLength 256
7024
7073
  */
7025
7074
  tunnelUrl: string;
7075
+ /**
7076
+ * If set to true, all requests will be forwarded to the tunnel, not just from the owning organization.
7077
+ * @default false
7078
+ */
7079
+ all?: boolean;
7026
7080
  }, params?: RequestParams) => Promise<HttpResponse<void, Error | {
7027
7081
  error: {
7028
7082
  /** @format int32 */
@@ -7034,18 +7088,12 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7034
7088
  * No description
7035
7089
  *
7036
7090
  * @tags integrations
7037
- * @name RemoveIntegrationDevSpace
7038
- * @summary Remove the development space for an integration
7039
- * @request DELETE:/integrations/{integrationName}/spaces/{spaceId}/dev
7091
+ * @name DisableIntegrationDevelopmentMode
7092
+ * @summary Disable the development mode on an integration.
7093
+ * @request DELETE:/integrations/{integrationName}/dev
7040
7094
  * @secure
7041
7095
  */
7042
- removeIntegrationDevSpace: (integrationName: string, spaceId: string, params?: RequestParams) => Promise<HttpResponse<void, Error | {
7043
- error: {
7044
- /** @format int32 */
7045
- code: 404;
7046
- message: string;
7047
- };
7048
- }>>;
7096
+ disableIntegrationDevelopmentMode: (integrationName: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
7049
7097
  /**
7050
7098
  * No description
7051
7099
  *
@@ -7412,16 +7460,16 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7412
7460
  * An order for the items in the list
7413
7461
  * @default "desc"
7414
7462
  */
7415
- order?: 'asc' | 'desc';
7463
+ order?: "asc" | "desc";
7416
7464
  /** The Role to filter the member list by */
7417
- role?: MemberRole | 'guest';
7465
+ role?: MemberRole | "guest";
7418
7466
  /** A query to filter the member list (displayName and email) */
7419
7467
  search?: string;
7420
7468
  /**
7421
7469
  * The property to sort the results by. When sorting by lastSeenAt, only active members will be listed.
7422
7470
  * @default "joinedAt"
7423
7471
  */
7424
- sort?: 'joinedAt' | 'lastSeenAt';
7472
+ sort?: "joinedAt" | "lastSeenAt";
7425
7473
  }, params?: RequestParams) => Promise<HttpResponse<List & {
7426
7474
  items: OrganizationMember[];
7427
7475
  }, Error>>;
@@ -7732,7 +7780,12 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7732
7780
  * @request POST:/orgs/{organizationId}/billing
7733
7781
  * @secure
7734
7782
  */
7735
- upgradeOrganizationPlan: (organizationId: string, data: UpgradeOrganizationBilling, params?: RequestParams) => Promise<HttpResponse<BillingUpgrade, Error>>;
7783
+ upgradeOrganizationPlan: (organizationId: string, data: UpgradeOrganizationBilling, query?: {
7784
+ /** The app screen URL to bring the user back to after a successful checkout. */
7785
+ successReturnURL?: string;
7786
+ /** The app screen URL to bring the user back to after a canceled checkout. */
7787
+ cancelReturnURL?: string;
7788
+ }, params?: RequestParams) => Promise<HttpResponse<BillingUpgrade, Error>>;
7736
7789
  /**
7737
7790
  * No description
7738
7791
  *
@@ -7761,8 +7814,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7761
7814
  members?: number;
7762
7815
  /** The desired amount of published premium sites */
7763
7816
  premiumSites?: number;
7764
- /** The desired amount of published audience sites */
7765
- audienceSites?: number;
7817
+ /** The desired amount of published ultimate sites */
7818
+ ultimateSites?: number;
7766
7819
  }, params?: RequestParams) => Promise<HttpResponse<BillingInvoicePreview, Error>>;
7767
7820
  /**
7768
7821
  * No description
@@ -8269,7 +8322,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8269
8322
  */
8270
8323
  listCaptures: (organizationId: string, query?: {
8271
8324
  /** Output format for the content. */
8272
- format?: 'document' | 'markdown';
8325
+ format?: "document" | "markdown";
8273
8326
  /** Identifier of the page results to fetch. */
8274
8327
  page?: string;
8275
8328
  /**
@@ -8279,7 +8332,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8279
8332
  */
8280
8333
  limit?: number;
8281
8334
  /** The context in which the item was captured */
8282
- context?: 'walkthrough' | 'thread';
8335
+ context?: "walkthrough" | "thread";
8283
8336
  }, params?: RequestParams) => Promise<HttpResponse<List & {
8284
8337
  items: Capture[];
8285
8338
  }, Error>>;
@@ -8316,7 +8369,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8316
8369
  */
8317
8370
  getCapture: (organizationId: string, captureId: string, query?: {
8318
8371
  /** Output format for the content. */
8319
- format?: 'document' | 'markdown';
8372
+ format?: "document" | "markdown";
8320
8373
  }, params?: RequestParams) => Promise<HttpResponse<Capture, Error>>;
8321
8374
  /**
8322
8375
  * No description
@@ -8341,7 +8394,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8341
8394
  */
8342
8395
  stopCapture: (organizationId: string, captureId: string, data: object, query?: {
8343
8396
  /** Output format for the content. */
8344
- format?: 'document' | 'markdown';
8397
+ format?: "document" | "markdown";
8345
8398
  }, params?: RequestParams) => Promise<HttpResponse<{
8346
8399
  capture: Capture;
8347
8400
  /** Example questions that would be answered by the content of this capture. */
@@ -8486,6 +8539,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8486
8539
  * @max 1000
8487
8540
  */
8488
8541
  limit?: number;
8542
+ /** A list of IDs to filter the synced blocks. */
8543
+ ids?: string[];
8489
8544
  }, params?: RequestParams) => Promise<HttpResponse<List & {
8490
8545
  items: SyncedBlock[];
8491
8546
  }, Error>>;
@@ -8520,13 +8575,25 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8520
8575
  * @tags organizations
8521
8576
  * @name UpdateSyncedBlock
8522
8577
  * @summary Update an existing synced block.
8523
- * @request PUT:/orgs/{organizationId}/synced-blocks/{syncedBlockId}
8578
+ * @request PATCH:/orgs/{organizationId}/synced-blocks/{syncedBlockId}
8524
8579
  * @secure
8525
8580
  */
8526
8581
  updateSyncedBlock: (organizationId: string, syncedBlockId: string, data: {
8527
8582
  /** A new title for the Synced Block. */
8528
8583
  title?: string;
8584
+ /** A new description for the Synced Block. */
8585
+ description?: string;
8529
8586
  }, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
8587
+ /**
8588
+ * No description
8589
+ *
8590
+ * @tags organizations
8591
+ * @name DeleteSyncedBlock
8592
+ * @summary Delete a synced block by its ID
8593
+ * @request DELETE:/orgs/{organizationId}/synced-blocks/{syncedBlockId}
8594
+ * @secure
8595
+ */
8596
+ deleteSyncedBlock: (organizationId: string, syncedBlockId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
8530
8597
  /**
8531
8598
  * No description
8532
8599
  *
@@ -8558,6 +8625,10 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8558
8625
  * @max 1000
8559
8626
  */
8560
8627
  limit?: number;
8628
+ /** Filter backlinks relative to a change request. */
8629
+ changeRequestId?: string;
8630
+ /** Filter backlinks relative to a space. */
8631
+ spaceId?: string;
8561
8632
  }, params?: RequestParams) => Promise<HttpResponse<List & {
8562
8633
  items: ContentLocationPage[];
8563
8634
  }, Error>>;
@@ -8592,7 +8663,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8592
8663
  */
8593
8664
  askInOrganization: (organizationId: string, data: SearchAIQuery, query?: {
8594
8665
  /** Output format for the content. */
8595
- format?: 'document' | 'markdown';
8666
+ format?: "document" | "markdown";
8596
8667
  /** Return query details in the result */
8597
8668
  details?: boolean;
8598
8669
  }, params?: RequestParams) => Promise<HttpResponse<{
@@ -8628,7 +8699,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8628
8699
  streamAskInOrganization: (organizationId: string, query: {
8629
8700
  query: string;
8630
8701
  /** Output format for the content. */
8631
- format?: 'document' | 'markdown';
8702
+ format?: "document" | "markdown";
8632
8703
  /** Return query details in the result */
8633
8704
  details?: boolean;
8634
8705
  }, params?: RequestParams) => EventIterator<SearchAIAnswerStream>;
@@ -8656,6 +8727,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8656
8727
  title?: string;
8657
8728
  /** Filter sites by their published status */
8658
8729
  published?: boolean;
8730
+ /** Filter by site type */
8731
+ type?: SiteType[];
8659
8732
  }, params?: RequestParams) => Promise<HttpResponse<List & {
8660
8733
  items: Site[];
8661
8734
  }, Error>>;
@@ -8682,7 +8755,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8682
8755
  */
8683
8756
  visibility?: SiteVisibility;
8684
8757
  /** ID of spaces to be added to the site */
8685
- spaces?: string[] | 'sample' | 'empty';
8758
+ spaces?: string[] | "sample" | "empty";
8686
8759
  }, params?: RequestParams) => Promise<HttpResponse<Site, Error>>;
8687
8760
  /**
8688
8761
  * No description
@@ -8758,7 +8831,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8758
8831
  * @secure
8759
8832
  */
8760
8833
  publishSite: (organizationId: string, siteId: string, params?: RequestParams) => Promise<HttpResponse<Site | {
8761
- type: 'checkout';
8834
+ type: "checkout";
8762
8835
  /** Stripe payment session ID */
8763
8836
  sessionId: string;
8764
8837
  }, Error>>;
@@ -8830,6 +8903,31 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8830
8903
  * @secure
8831
8904
  */
8832
8905
  deleteSiteShareLinkById: (organizationId: string, siteId: string, shareLinkId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
8906
+ /**
8907
+ * No description
8908
+ *
8909
+ * @tags sites
8910
+ * @name GetSiteStructure
8911
+ * @summary Get the structure of a site which includes site-sections and site-spaces
8912
+ * @request GET:/orgs/{organizationId}/sites/{siteId}/structure
8913
+ * @secure
8914
+ */
8915
+ getSiteStructure: (organizationId: string, siteId: string, query?: {
8916
+ /** For sites published via share-links, the share key is useful to resolve published URLs. */
8917
+ shareKey?: string;
8918
+ }, params?: RequestParams) => Promise<HttpResponse<{
8919
+ type?: "sections";
8920
+ structure?: SiteSection[];
8921
+ } | {
8922
+ type?: "siteSpaces";
8923
+ structure?: SiteSpace[];
8924
+ }, Error | {
8925
+ error: {
8926
+ /** @format int32 */
8927
+ code: 404;
8928
+ message: string;
8929
+ };
8930
+ }>>;
8833
8931
  /**
8834
8932
  * No description
8835
8933
  *
@@ -8845,23 +8943,23 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8845
8943
  /** Desired interval for new subscriptions. Defaults to the existing billing interval. */
8846
8944
  interval?: BillingInterval;
8847
8945
  }, query?: {
8848
- /** The app screen URL to bring the user back to after a succesfull checkout. */
8946
+ /** The app screen URL to bring the user back to after a successful checkout. */
8849
8947
  successReturnURL?: string;
8850
8948
  /** The app screen URL to bring the user back to after a canceled checkout. */
8851
8949
  cancelReturnURL?: string;
8852
8950
  }, params?: RequestParams) => Promise<HttpResponse<{
8853
8951
  /** User must checkout to complete the update. */
8854
- type: 'checkout';
8952
+ type: "checkout";
8855
8953
  /** Stripe payment session ID */
8856
8954
  sessionId: string;
8857
8955
  } | {
8858
8956
  /** User needs to go through the legacy update flow. */
8859
- type: 'legacy-checkout';
8957
+ type: "legacy-checkout";
8860
8958
  /** Stripe payment session ID */
8861
8959
  sessionId: string;
8862
8960
  } | {
8863
8961
  /** The site plan was successfully updated. */
8864
- type: 'success';
8962
+ type: "success";
8865
8963
  }, Error>>;
8866
8964
  /**
8867
8965
  * No description
@@ -9049,6 +9147,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
9049
9147
  addSpaceToSite: (organizationId: string, siteId: string, data: {
9050
9148
  /** ID of the space */
9051
9149
  spaceId: string;
9150
+ /** ID of the section to add the space to. If not provided, the space will be added to the default section or at the root level if the site has no sections. */
9151
+ sectionId?: string;
9052
9152
  }, params?: RequestParams) => Promise<HttpResponse<SiteSpace, Error>>;
9053
9153
  /**
9054
9154
  * No description
@@ -9075,6 +9175,70 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
9075
9175
  }, params?: RequestParams) => Promise<HttpResponse<List & {
9076
9176
  items: SiteSpace[];
9077
9177
  }, Error>>;
9178
+ /**
9179
+ * No description
9180
+ *
9181
+ * @tags sites
9182
+ * @name AddSectionToSite
9183
+ * @summary Add a section to a site in an organization
9184
+ * @request POST:/orgs/{organizationId}/sites/{siteId}/sections
9185
+ * @secure
9186
+ */
9187
+ addSectionToSite: (organizationId: string, siteId: string, data: {
9188
+ /** ID of the space to be added to the section as a site space variant */
9189
+ spaceId: string;
9190
+ /**
9191
+ * Title of the section
9192
+ * @maxLength 64
9193
+ */
9194
+ title?: string;
9195
+ }, params?: RequestParams) => Promise<HttpResponse<SiteSection, Error>>;
9196
+ /**
9197
+ * No description
9198
+ *
9199
+ * @tags sites
9200
+ * @name ListSiteSections
9201
+ * @summary List all the site sections under a site in an organization
9202
+ * @request GET:/orgs/{organizationId}/sites/{siteId}/sections
9203
+ * @secure
9204
+ */
9205
+ listSiteSections: (organizationId: string, siteId: string, query?: {
9206
+ /** For sites published via share-links, the share key is useful to resolve published URLs. */
9207
+ shareKey?: string;
9208
+ /** Identifier of the page results to fetch. */
9209
+ page?: string;
9210
+ /**
9211
+ * The number of results per page
9212
+ * @min 0
9213
+ * @max 1000
9214
+ */
9215
+ limit?: number;
9216
+ }, params?: RequestParams) => Promise<HttpResponse<List & {
9217
+ items: SiteSection[];
9218
+ }, Error>>;
9219
+ /**
9220
+ * No description
9221
+ *
9222
+ * @tags sites
9223
+ * @name UpdateSiteSectionById
9224
+ * @summary Update a section on a site in an organization
9225
+ * @request PATCH:/orgs/{organizationId}/sites/{siteId}/sections/{siteSectionId}
9226
+ * @secure
9227
+ */
9228
+ updateSiteSectionById: (organizationId: string, siteId: string, siteSectionId: string, data: {
9229
+ /** Path to the section on the site */
9230
+ path?: SiteSectionPath;
9231
+ }, params?: RequestParams) => Promise<HttpResponse<SiteSection, Error>>;
9232
+ /**
9233
+ * No description
9234
+ *
9235
+ * @tags sites
9236
+ * @name DeleteSiteSectionById
9237
+ * @summary Delete a section on a site in an organization
9238
+ * @request DELETE:/orgs/{organizationId}/sites/{siteId}/sections/{siteSectionId}
9239
+ * @secure
9240
+ */
9241
+ deleteSiteSectionById: (organizationId: string, siteId: string, siteSectionId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
9078
9242
  /**
9079
9243
  * No description
9080
9244
  *
@@ -9154,7 +9318,94 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
9154
9318
  * @request PATCH:/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}/customization
9155
9319
  * @secure
9156
9320
  */
9157
- overrideSiteSpaceCustomizationById: (organizationId: string, siteId: string, siteSpaceId: string, data: SiteSpaceCustomizationOverrides, params?: RequestParams) => Promise<HttpResponse<SiteCustomizationSettings, Error | {
9321
+ overrideSiteSpaceCustomizationById: (organizationId: string, siteId: string, siteSpaceId: string, data: {
9322
+ /** Title to use for the published site variant. If not defined, the title will not be changed. If set to null, the title will be unset and will fallback to the content title. */
9323
+ title?: SiteTitle | null;
9324
+ styling?: {
9325
+ /** The primary color used for links and UI text. Set to null to reset the override. */
9326
+ primaryColor?: CustomizationThemedColor | null;
9327
+ /** The style of the corners to use. Set to null to reset the override. */
9328
+ corners?: CustomizationCorners | null;
9329
+ /** The font family to use for the content. Set to null to reset the override. */
9330
+ font?: CustomizationFont | null;
9331
+ /** The icons style to use for the content. Set to null to reset the override. */
9332
+ icons?: CustomizationIconsStyle | null;
9333
+ /** The style of background to use. Set to null to reset the override. */
9334
+ background?: CustomizationBackground | null;
9335
+ };
9336
+ internationalization?: {
9337
+ /** The locale to use for the non-custom elements of the UI. Set to null to reset the override. */
9338
+ locale: CustomizationLocale | null;
9339
+ };
9340
+ /** The favicon to use. Set to null to reset the override. */
9341
+ favicon?: {
9342
+ icon: CustomizationThemedURL;
9343
+ } | {
9344
+ /** Unicode codepoint or character of the emoji */
9345
+ emoji: Emoji;
9346
+ } | object | null;
9347
+ header?: {
9348
+ /** The theme preset to use. Set to null to reset the override. */
9349
+ preset?: CustomizationHeaderPreset | null;
9350
+ /** The header logo to use. Set to null to reset the override. */
9351
+ logo?: CustomizationThemedURL | null;
9352
+ /** The background color used in the header. Set to null to reset the override. */
9353
+ backgroundColor?: CustomizationThemedColor | null;
9354
+ /** The color used by the links in the header. Set to null to reset the override. */
9355
+ linkColor?: CustomizationThemedColor | null;
9356
+ /** The links that are displayed in the header. Set to null to reset the override. */
9357
+ links?: CustomizationHeaderLink[] | null;
9358
+ };
9359
+ footer?: {
9360
+ /** The logo displayed in the footer. Set to null to reset the override. */
9361
+ logo?: CustomizationThemedURL | null;
9362
+ /** The links groups that are displayed in the footer. Set to null to reset the override. */
9363
+ groups?: CustomizationFooterGroup[] | null;
9364
+ /**
9365
+ * The copyright text that is displayed in the footer. Set to null to reset the override.
9366
+ * @maxLength 300
9367
+ */
9368
+ copyright?: string | null;
9369
+ };
9370
+ themes?: {
9371
+ /** The theme mode default value. Set to null to reset the override. */
9372
+ default?: CustomizationThemeMode | null;
9373
+ /** Should the reader be able to switch between dark and light mode. Set to null to reset the override. */
9374
+ toggeable?: boolean | null;
9375
+ };
9376
+ pdf?: {
9377
+ /** If true, PDF export is enabled for the published site. Set to null to reset the override. */
9378
+ enabled: boolean | null;
9379
+ };
9380
+ feedback?: {
9381
+ /** If true, feedback gathering is enabled. Set to null to reset the override. */
9382
+ enabled: boolean | null;
9383
+ };
9384
+ aiSearch?: {
9385
+ /** If true, AI search is enabled. Set to null to reset the override. */
9386
+ enabled: boolean | null;
9387
+ };
9388
+ git?: {
9389
+ /** 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. */
9390
+ showEditLink: boolean | null;
9391
+ };
9392
+ pagination?: {
9393
+ /** Whether the pagination navigation should be displayed on pages. Set to null to reset the override. */
9394
+ enabled: boolean | null;
9395
+ };
9396
+ trademark?: {
9397
+ /** Whether the GitBook trademark ("Powered by GitBook") should be visible. Set to null to reset the override. */
9398
+ enabled: boolean | null;
9399
+ };
9400
+ privacyPolicy?: {
9401
+ /** The custom link to the privacy policy. Set to null to reset the override. */
9402
+ url?: URL | null;
9403
+ };
9404
+ socialPreview?: {
9405
+ /** The URL for the social preview image. Set to null to reset the override. */
9406
+ url?: URL | null;
9407
+ };
9408
+ }, params?: RequestParams) => Promise<HttpResponse<SiteCustomizationSettings, Error | {
9158
9409
  error: {
9159
9410
  /** @format int32 */
9160
9411
  code: 400;
@@ -9189,7 +9440,9 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
9189
9440
  * @request GET:/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}/insights/content
9190
9441
  * @secure
9191
9442
  */
9192
- getContentAnalyticsForSiteSpaceById: (organizationId: string, siteId: string, siteSpaceId: string, params?: RequestParams) => Promise<HttpResponse<AnalyticsContentPages, Error>>;
9443
+ getContentAnalyticsForSiteSpaceById: (organizationId: string, siteId: string, siteSpaceId: string, query?: {
9444
+ period?: AnalyticsSearchPeriod;
9445
+ }, params?: RequestParams) => Promise<HttpResponse<AnalyticsContentPages, Error>>;
9193
9446
  /**
9194
9447
  * No description
9195
9448
  *
@@ -9264,12 +9517,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
9264
9517
  * @tags analytics, sites
9265
9518
  * @name GetSearchAnalyticsForSiteById
9266
9519
  * @summary Get an overview of the top search queries in a site.
9267
- * @request POST:/orgs/{organizationId}/sites/{siteId}/insights/search
9520
+ * @request GET:/orgs/{organizationId}/sites/{siteId}/insights/search
9268
9521
  * @secure
9269
9522
  */
9270
- getSearchAnalyticsForSiteById: (organizationId: string, siteId: string, data: {
9271
- siteSpaceIds?: string[];
9523
+ getSearchAnalyticsForSiteById: (organizationId: string, siteId: string, query?: {
9272
9524
  period?: AnalyticsSearchPeriod;
9525
+ /** The site spaces to filter the search on */
9526
+ siteSpaceIds?: string[];
9273
9527
  }, params?: RequestParams) => Promise<HttpResponse<AnalyticsTopSearches, Error>>;
9274
9528
  /**
9275
9529
  * No description
@@ -9281,7 +9535,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
9281
9535
  * @secure
9282
9536
  */
9283
9537
  updateSiteAdsById: (organizationId: string, siteId: string, data?: {
9284
- status?: 'in-review' | 'disabled';
9538
+ status?: "in-review" | "disabled";
9285
9539
  /** Topic of the content */
9286
9540
  topic?: SiteAdsTopic;
9287
9541
  }, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
@@ -9414,15 +9668,15 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
9414
9668
  * @secure
9415
9669
  */
9416
9670
  adsUpdateSite: (siteId: string, data: {
9417
- status: 'live';
9671
+ status: "live";
9418
9672
  /** ID of the zone */
9419
9673
  zoneId: string;
9420
9674
  /** ID to fetch reporting data */
9421
9675
  reportingId: string;
9422
9676
  } | {
9423
- status: 'rejected';
9677
+ status: "rejected";
9424
9678
  } | {
9425
- status: 'pending';
9679
+ status: "pending";
9426
9680
  }, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
9427
9681
  };
9428
9682
  internal: {