@gitbook/api 0.213.0 → 0.215.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/client.d.ts CHANGED
@@ -56,6 +56,11 @@ export declare enum BillingStatus {
56
56
  Unpaid = "unpaid",
57
57
  Paused = "paused"
58
58
  }
59
+ /** The type of change between two site revisions. */
60
+ export declare enum SiteRevisionChangeType {
61
+ SpaceContentEdited = "space_content_edited",
62
+ OpenapiSpecEdited = "openapi_spec_edited"
63
+ }
59
64
  /** Lifecycle state of a pull or merge request on the Git provider. */
60
65
  export declare enum GitProviderChangeState {
61
66
  Open = "open",
@@ -315,6 +320,12 @@ export declare enum AIModel {
315
320
  ReasoningMedium = "reasoning-medium",
316
321
  ReasoningHigh = "reasoning-high"
317
322
  }
323
+ /** Type of a node of the site's structure. */
324
+ export declare enum SiteRevisionNodeType {
325
+ SectionGroup = "section-group",
326
+ Section = "section",
327
+ Space = "space"
328
+ }
318
329
  /** The phase of a step in a message from the AI agent. */
319
330
  export declare enum AIMessageStepPhase {
320
331
  Commentary = "commentary",
@@ -712,6 +723,18 @@ export declare enum BillingMeter {
712
723
  AiAgentResponses = "ai_agent_responses",
713
724
  TranslationWords = "translation_words"
714
725
  }
726
+ /**
727
+ * What happens to the members that SCIM provisioned or linked through the connection.
728
+ * - `keep`: They keep their access. Those the identity provider deactivated become disabled by an admin.
729
+ * - `disable`: They are disabled by an admin, and keep their role.
730
+ * - `remove`: They are removed from the organization.
731
+ * The admin who deletes the connection is never disabled or removed.
732
+ */
733
+ export declare enum IdPConnectionMembersAction {
734
+ Keep = "keep",
735
+ Disable = "disable",
736
+ Remove = "remove"
737
+ }
715
738
  /**
716
739
  * State of a SAML provider's email domain in the organization.
717
740
  * - `verified`: People with an email on this domain can sign in through the provider.
@@ -1447,7 +1470,7 @@ export declare enum ContentVisibility {
1447
1470
  /** Data passed through a realtime channel */
1448
1471
  export type APIChannelData = APIChannelGitSyncOperationData | APIChannelGitSyncSiteOperationData | APIChannelTranslationRunData | APIChannelImportRunData | APIChannelMutationData;
1449
1472
  /** Channel to subscribe to for realtime updates. */
1450
- export type APIChannel = APIChannelSpaceInfo | APIChannelSpaceContent | APIChannelSpaceGitInfo | APIChannelSpacePublishingAuth | APIChannelSpacePublishingCustomization | APIChannelSpaceIntegrations | APIChannelUserAPITokens | APIChannelUserOrganizations | APIChannelUserPasskeys | APIChannelUserProfile | APIChannelChangeRequest | APIChannelChangeRequests | APIChannelChangeRequestReviews | APIChannelCollection | APIChannelCollectionPublishingCustomization | APIChannelOrganizationInfo | APIChannelOrganizationAgentData | APIChannelOrganizationInviteLinks | APIChannelOrganizationMembers | APIChannelOrganizationMember | APIChannelOrganizationSAML | APIChannelOrganizationTeams | APIChannelOrganizationTeam | APIChannelOrganizationTeamMembers | APIChannelOrganizationTeamMember | APIChannelOrganizationSpaces | APIChannelOrganizationCollections | APIChannelOrganizationIntegrations | APIChannelOrganizationInstallations | APIChannelOrganizationSites | APIChannelOrganizationOpenAPISpecs | APIChannelOrganizationTranslations | APIChannelOrganizationTranslationsGlossary | APIChannelOrganizationSCIMConnections | APIChannelOrganizationDomains | APIChannelOrganizationIdPConnections | APIChannelOrganizationCustomFonts | APIChannelOrganizationAgentInstructions | APIChannelOrganizationChangeRequests | APIChannelSpaceComments | APIChannelChangeRequestComments | APIChannelCommentInfo | APIChannelCommentReplies | APIChannelIntegration | APIChannelIntegrationInstallation | APIChannelIntegrationSpaceInstallation | APIChannelIntegrationSpaceInstallations | APIChannelIntegrationSiteInstallation | APIChannelIntegrationSiteInstallations | APIChannelPublishedContentSite | APIChannelSiteRedirects | APIChannelSite | APIChannelSiteChannels | APIChannelSiteContext | APIChannelSiteCustomization | APIChannelSiteAgentSettings | APIChannelSiteIntegrations | APIChannelSiteSpace | APIChannelSiteSpaceCustomization | APIChannelSiteStructure | APIChannelSiteAdaptiveSchema | APIChannelSitePublishingAuth | APIChannelSiteShareLinks | APIChannelSiteShareLink | APIChannelSiteMcpServers | APIChannelSiteMcpServer | APIChannelSiteSection | APIChannelCustomHostname | APIChannelGitSyncInstallation | APIChannelGitSyncOperation | APIChannelGitSyncSiteOperation | APIChannelOpenAPISpec | APIChannelSubdomain | APIChannelTranslation | APIChannelTranslationRun | APIChannelImportRun;
1473
+ export type APIChannel = APIChannelSpaceInfo | APIChannelSpaceContent | APIChannelSpaceGitInfo | APIChannelSpacePublishingAuth | APIChannelSpacePublishingCustomization | APIChannelSpaceIntegrations | APIChannelUserAPITokens | APIChannelUserOrganizations | APIChannelUserPasskeys | APIChannelUserProfile | APIChannelChangeRequest | APIChannelChangeRequests | APIChannelChangeRequestReviews | APIChannelCollection | APIChannelCollectionPublishingCustomization | APIChannelOrganizationInfo | APIChannelOrganizationAgentData | APIChannelOrganizationInviteLinks | APIChannelOrganizationMembers | APIChannelOrganizationMember | APIChannelOrganizationSAML | APIChannelOrganizationTeams | APIChannelOrganizationTeam | APIChannelOrganizationTeamMembers | APIChannelOrganizationTeamMember | APIChannelOrganizationSpaces | APIChannelOrganizationCollections | APIChannelOrganizationIntegrations | APIChannelOrganizationInstallations | APIChannelOrganizationSites | APIChannelOrganizationOpenAPISpecs | APIChannelOrganizationTranslations | APIChannelOrganizationTranslationsGlossary | APIChannelOrganizationDomains | APIChannelOrganizationIdPConnections | APIChannelOrganizationCustomFonts | APIChannelOrganizationAgentInstructions | APIChannelOrganizationChangeRequests | APIChannelSpaceComments | APIChannelChangeRequestComments | APIChannelCommentInfo | APIChannelCommentReplies | APIChannelIntegration | APIChannelIntegrationInstallation | APIChannelIntegrationSpaceInstallation | APIChannelIntegrationSpaceInstallations | APIChannelIntegrationSiteInstallation | APIChannelIntegrationSiteInstallations | APIChannelPublishedContentSite | APIChannelSiteRedirects | APIChannelSite | APIChannelSiteChannels | APIChannelSiteContext | APIChannelSiteCustomization | APIChannelSiteAgentSettings | APIChannelSiteIntegrations | APIChannelSiteSpace | APIChannelSiteSpaceCustomization | APIChannelSiteStructure | APIChannelSiteAdaptiveSchema | APIChannelSitePublishingAuth | APIChannelSiteShareLinks | APIChannelSiteShareLink | APIChannelSiteMcpServers | APIChannelSiteMcpServer | APIChannelSiteSection | APIChannelCustomHostname | APIChannelGitSyncInstallation | APIChannelGitSyncOperation | APIChannelGitSyncSiteOperation | APIChannelOpenAPISpec | APIChannelSubdomain | APIChannelTranslation | APIChannelTranslationRun | APIChannelImportRun;
1451
1474
  /** The plan upgrade that would make a feature available. */
1452
1475
  export type FeatureUpgradeRequirement = {
1453
1476
  type: "organization";
@@ -1497,6 +1520,13 @@ export type PublishedContentRedirect = {
1497
1520
  site: string;
1498
1521
  redirect: URL;
1499
1522
  };
1523
+ /**
1524
+ * Site revision node content
1525
+ * Content a space node shows.
1526
+ */
1527
+ export type SiteRevisionNodeContent = {
1528
+ type: "space";
1529
+ } & SiteRevisionNodeContentSpace;
1500
1530
  /** Result of a search */
1501
1531
  export type AIToolCallSearchResult = AIToolCallSearchResultPage | AIToolCallSearchResultRecord;
1502
1532
  export type SiteQuestionAnswerSource = SiteQuestionAnswerSourcePage | SiteQuestionAnswerSourceRecord;
@@ -2496,7 +2526,7 @@ export interface DocumentBlockParagraph {
2496
2526
  export type DocumentInline = DocumentInlineLink | DocumentInlineEmoji | DocumentInlineIcon | DocumentInlineExpression | DocumentInlineMath | DocumentInlineImage | DocumentInlineAnnotation | DocumentInlineMention | DocumentInlineButton;
2497
2527
  export interface DocumentBlockHeading {
2498
2528
  object: "block";
2499
- type: "heading-1" | "heading-2" | "heading-3";
2529
+ type: "heading-1" | "heading-2" | "heading-3" | "heading-4";
2500
2530
  key?: string;
2501
2531
  nodes: (DocumentInline | DocumentText)[];
2502
2532
  data: {
@@ -3233,6 +3263,11 @@ export type RevisionPageDocument = RevisionPageBase & Document & {
3233
3263
  /** Complete path to access the page in the revision. */
3234
3264
  path: string;
3235
3265
  description?: string;
3266
+ /**
3267
+ * Authored terms and phrases that can help readers find this page.
3268
+ * @maxItems 20
3269
+ */
3270
+ keywords?: string[];
3236
3271
  /**
3237
3272
  * Optional title for the page's HTML `<title>` tag. When set, it replaces the page title in the composed `<title>` (`<tagTitle || title> | <section> | <site>`), while the page's visible heading and navigation title remain unchanged. Use this when the search result or browser tab should use a different title from the page itself.
3238
3273
  * @maxLength 100
@@ -3603,6 +3638,12 @@ export type RevisionTypeEdits = RevisionBase & {
3603
3638
  /** Revision created by editing the content. */
3604
3639
  type: "edits";
3605
3640
  };
3641
+ export interface ChangeRequestReference {
3642
+ /** ID of the change request */
3643
+ id: string;
3644
+ /** Number of the change request within its space */
3645
+ number: number;
3646
+ }
3606
3647
  /**
3607
3648
  * Subject of the change request
3608
3649
  * @minLength 0
@@ -3685,6 +3726,10 @@ export interface ChangeRequest {
3685
3726
  id: string;
3686
3727
  /** Incremental identifier of the change request */
3687
3728
  number: number;
3729
+ /** The merged change request this change request reverts. */
3730
+ reverts?: ChangeRequestReference;
3731
+ /** The change request created to revert this merge. */
3732
+ revertedBy?: ChangeRequestReference;
3688
3733
  status: ChangeRequestStatus;
3689
3734
  /** Subject of the change request */
3690
3735
  subject: ChangeRequestSubject;
@@ -4654,6 +4699,11 @@ export interface RevisionPageUpdate {
4654
4699
  * @maxLength 100
4655
4700
  */
4656
4701
  linkTitle?: string;
4702
+ /**
4703
+ * Search terms and phrases for a document page. Replaces the entire list. Use an empty array to clear it. Omit the field to keep the existing list.
4704
+ * @maxItems 20
4705
+ */
4706
+ keywords?: string[];
4657
4707
  /**
4658
4708
  * Optional title for the page's HTML `<title>` tag. When set, it replaces the page title in the composed `<title>` (`<tagTitle || title> | <section> | <site>`), while the page's visible heading and navigation title remain unchanged. Use this when the search result or browser tab should use a different title from the page itself. Set to an empty string to remove it.
4659
4709
  * @maxLength 100
@@ -5031,6 +5081,10 @@ export interface ChangeAttributeVariables {
5031
5081
  export interface RevisionPageDocumentChangeAttributes {
5032
5082
  title?: ChangeAttributeString;
5033
5083
  description?: ChangeAttributeString;
5084
+ keywords?: {
5085
+ before?: string[];
5086
+ after?: string[];
5087
+ };
5034
5088
  slug?: ChangeAttributeString;
5035
5089
  document?: ChangeAttributeString;
5036
5090
  cover?: ChangeAttributeRevisionPageDocumentCover;
@@ -5207,6 +5261,10 @@ export interface OrganizationMember {
5207
5261
  user: User;
5208
5262
  /** Why the member is disabled, or false when the member is active. A disabled member cannot access the organization or its content. */
5209
5263
  disabled: MemberDisabled;
5264
+ /** Label of the identity provider connection that manages this membership. */
5265
+ directoryManagedBy?: string;
5266
+ /** Display name supplied by the identity provider for this organization membership. The GitBook account name is available in user.displayName. */
5267
+ directoryDisplayName?: string;
5210
5268
  /** Date at which the user joined the organization. */
5211
5269
  joinedAt: Timestamp;
5212
5270
  /** Date at which the user was last seen active in the organization. */
@@ -6863,6 +6921,8 @@ export interface OrganizationIdPConnection {
6863
6921
  defaultTeam?: OrganizationTeam;
6864
6922
  /** Whether people join the team of the verified email domain they signed in with, instead of `defaultTeam`. */
6865
6923
  defaultTeamFromDomain: boolean;
6924
+ /** Whether the identity provider decides each member's teams through SCIM, instead of `defaultTeam`. */
6925
+ defaultTeamFromSCIM: boolean;
6866
6926
  /** SAML sign-in through the connection. */
6867
6927
  saml: {
6868
6928
  /** The identity provider's single sign-on URL. Absent until it is set. */
@@ -7485,47 +7545,6 @@ export interface OrganizationDomain {
7485
7545
  location: URL;
7486
7546
  };
7487
7547
  }
7488
- /**
7489
- * Name of the SCIM connection, shown to organization admins.
7490
- * @minLength 1
7491
- * @maxLength 100
7492
- */
7493
- export type SCIMConnectionLabel = string;
7494
- /** A SCIM connection through which an identity provider provisions organization members. */
7495
- export interface OrganizationSCIMConnection {
7496
- /** The object type, which is always "scim-connection" */
7497
- object: "scim-connection";
7498
- /** Unique identifier of the SCIM connection */
7499
- id: string;
7500
- /** Name of the SCIM connection, shown to organization admins. */
7501
- label: SCIMConnectionLabel;
7502
- /** Identity provider behind the connection. */
7503
- provider: IdPConnectionProvider;
7504
- /** SCIM base URL to configure in the identity provider */
7505
- baseURL: URL;
7506
- /** Last characters of the current token, to identify it */
7507
- tokenHint: string;
7508
- /** Date the current token was created */
7509
- tokenCreatedAt: Timestamp;
7510
- /** Date of the last request authenticated with the token */
7511
- lastUsedAt?: Timestamp;
7512
- /** Date of creation */
7513
- createdAt: Timestamp;
7514
- /** Date of the last update */
7515
- updatedAt: Timestamp;
7516
- /** URLs associated with the object */
7517
- urls: {
7518
- /** URL of the SCIM connection in the API */
7519
- location: URL;
7520
- };
7521
- }
7522
- /** A SCIM connection with its token, returned only when the token is created. */
7523
- export interface OrganizationSCIMConnectionWithToken {
7524
- /** A SCIM connection through which an identity provider provisions organization members. */
7525
- connection: OrganizationSCIMConnection;
7526
- /** Bearer token to configure in the identity provider. It can't be retrieved again. */
7527
- token: string;
7528
- }
7529
7548
  export interface OrganizationSSOProviderLogin {
7530
7549
  /** Unique identifier for the provider. */
7531
7550
  id: string;
@@ -8248,6 +8267,13 @@ export type SitePublishingAuthUpdate = (VisitorAuthCustomBackend | VisitorAuthIn
8248
8267
  logoutURL?: string | null;
8249
8268
  };
8250
8269
  export type SiteCustomizationSettingsInput = SiteCustomizationSettingsBase;
8270
+ /**
8271
+ * Client-generated 128-bit identifier for a search request, encoded as hexadecimal.
8272
+ * @minLength 32
8273
+ * @maxLength 32
8274
+ * @pattern ^[0-9A-Fa-f]{32}$
8275
+ */
8276
+ export type SiteSearchId = string;
8251
8277
  export type SiteSearchScope = {
8252
8278
  /** Search across all sections of a site, only including the default content of each section. This scope is wide and shallow. You may optionally specify a list of additional site spaces to search in alongside the default content. */
8253
8279
  mode: "default";
@@ -9827,6 +9853,159 @@ export type SiteSpaceCustomizationSettings = SiteCustomizationSettings & {
9827
9853
  /** Indicates whether the site customization settings have been overridden. */
9828
9854
  hasOverrides: boolean;
9829
9855
  };
9856
+ /**
9857
+ * Site revision node content from a space
9858
+ * A space, at a revision.
9859
+ */
9860
+ export interface SiteRevisionNodeContentSpace {
9861
+ type: "space";
9862
+ /** ID of the space. */
9863
+ space: string;
9864
+ /** ID of the revision. */
9865
+ revision: string;
9866
+ }
9867
+ export interface SiteRevisionChangePageCreated {
9868
+ type: "page_created";
9869
+ /** ID of the page. */
9870
+ page: string;
9871
+ }
9872
+ export interface SiteRevisionChangePageEdited {
9873
+ type: "page_edited";
9874
+ /** ID of the page. */
9875
+ page: string;
9876
+ /** Attributes of the page that changed. */
9877
+ attributes: {
9878
+ title?: ChangeAttributeString;
9879
+ emoji?: ChangeAttributeString;
9880
+ } | (RevisionPageDocumentChangeAttributes | RevisionPageGroupChangeAttributes | RevisionPageLinkChangeAttributes);
9881
+ }
9882
+ export interface SiteRevisionChangePageDeleted {
9883
+ type: "page_deleted";
9884
+ /** ID of the page. */
9885
+ page: string;
9886
+ }
9887
+ export interface SiteRevisionChangePageMoved {
9888
+ type: "page_moved";
9889
+ /** ID of the page. */
9890
+ page: string;
9891
+ /** ID of the page it is in. Null at the top of the node. */
9892
+ parent: {
9893
+ before: string | null;
9894
+ after: string | null;
9895
+ };
9896
+ }
9897
+ /**
9898
+ * Site revision content change
9899
+ * A change of a page or of the library of a space.
9900
+ */
9901
+ export type SiteRevisionContentChange = SiteRevisionChangePageCreated | SiteRevisionChangePageEdited | SiteRevisionChangePageDeleted | SiteRevisionChangePageMoved | RevisionSemanticChangeFileCreated | RevisionSemanticChangeFileEdited | RevisionSemanticChangeFileDeleted | RevisionSemanticChangeVariablesEdited | RevisionSemanticChangeReusableContentCreated | RevisionSemanticChangeReusableContentDeleted | RevisionSemanticChangeReusableContentEdited | RevisionSemanticChangeTagCreated | RevisionSemanticChangeTagDeleted | RevisionSemanticChangeTagEdited;
9902
+ /** The content of the space a node shows changed. `before` and `after` are always the same space; a node that shows another space is a different change. A space shown by several nodes has this change, with the same page changes, under each of them. Pages the changes refer to are listed under the node in `includes.pages`. */
9903
+ export interface SiteRevisionChangeSpaceContentEdited {
9904
+ type: "space_content_edited";
9905
+ /** Key of the space node. */
9906
+ node: string;
9907
+ content: {
9908
+ /** Content in the base. Absent when the base has none, in which case every page is listed as created. */
9909
+ before?: SiteRevisionNodeContent;
9910
+ /** Content in the site revision. */
9911
+ after: SiteRevisionNodeContent;
9912
+ };
9913
+ /** Changes of the content's pages and library. */
9914
+ changes: SiteRevisionContentChange[];
9915
+ }
9916
+ /**
9917
+ * Site revision structure change
9918
+ * A change to a node of the site's structure.
9919
+ */
9920
+ export type SiteRevisionStructureChange = SiteRevisionChangeSpaceContentEdited;
9921
+ /** An OpenAPI spec of the organization. */
9922
+ export interface ChangedOpenAPISpec {
9923
+ /** ID of the spec. */
9924
+ id: string;
9925
+ /** Slug of the spec. */
9926
+ slug: string;
9927
+ }
9928
+ /** An OpenAPI spec is at another version. */
9929
+ export interface SiteRevisionChangeOpenAPISpecEdited {
9930
+ type: "openapi_spec_edited";
9931
+ /** An OpenAPI spec of the organization. */
9932
+ spec: ChangedOpenAPISpec;
9933
+ /** Version of the spec. */
9934
+ version: {
9935
+ /** Version in the base. Absent when the base has none. */
9936
+ before?: string;
9937
+ /** Version in the site revision. */
9938
+ after: string;
9939
+ };
9940
+ }
9941
+ /**
9942
+ * Site revision OpenAPI change
9943
+ * A change to an OpenAPI spec.
9944
+ */
9945
+ export type SiteRevisionOpenAPIChange = SiteRevisionChangeOpenAPISpecEdited;
9946
+ /** A node of the site's structure: a section group, a section or a space. A space node is a place where the site shows content; the same content can be shown by several of them. Fields hold the node as it is in the site revision, whether or not they changed; a change to one is listed as its own change. */
9947
+ export interface SiteRevisionNode {
9948
+ /** Key of the node, unique across the nodes of the site. It is the node's key in the site's Git Sync configuration, or the key exporting the site would store for it when it has none yet. */
9949
+ key: string;
9950
+ /** Type of a node of the site's structure. */
9951
+ type: SiteRevisionNodeType;
9952
+ /** Key of the node it is in. Null for a node at the top of the site. */
9953
+ parent: string | null;
9954
+ title: string;
9955
+ /** Path of a section or space in the site's URLs. */
9956
+ path?: string;
9957
+ /** Icon of a section or section group, if it has one. */
9958
+ icon?: Icon;
9959
+ /** Emoji of the space a space node shows. It'll match the emoji shown in the GitBook app. */
9960
+ emoji?: Emoji;
9961
+ /** URL of the icon of the space a space node shows, if defined. */
9962
+ iconURL?: URL;
9963
+ /** Whether the node is a draft, not shown on the live site. */
9964
+ draft: boolean;
9965
+ /** Whether a space node is hidden from the site's navigation. Only on space nodes: a section is hidden when all of its space nodes are. */
9966
+ hidden?: boolean;
9967
+ /** Content a space node shows. */
9968
+ content?: SiteRevisionNodeContent;
9969
+ }
9970
+ /** A page of the content a space node shows. Fields hold the page as it is in the site revision, or in the base for a page deleted since. */
9971
+ export interface SiteRevisionPage {
9972
+ /** Key of the space node showing the page. */
9973
+ node: string;
9974
+ /** ID of the page, unique within the node. */
9975
+ id: string;
9976
+ type: RevisionPageType;
9977
+ title: string;
9978
+ /** Path of the page within the node. Absent for a link. */
9979
+ path?: string;
9980
+ /** ID of the page it is in. Null for a page at the top of the node. */
9981
+ parent: string | null;
9982
+ }
9983
+ /**
9984
+ * Site revision changes
9985
+ * Changes between a site revision and its base. A space or spec the site revision doesn't pin is read live, so it is never a change. Changes refer to nodes and pages, which are listed once in `includes`.
9986
+ */
9987
+ export interface SiteRevisionChanges {
9988
+ /** Site revision whose changes are listed. */
9989
+ head: string;
9990
+ /** Site revision compared against. Absent when compared against the live site. */
9991
+ base?: string;
9992
+ /** Changes to the site's structure and the content it shows, in site order. */
9993
+ structure: {
9994
+ /** Changes the caller can view. */
9995
+ changes: SiteRevisionStructureChange[];
9996
+ };
9997
+ /** Changes to OpenAPI specs. Empty when the caller can't read the organization's specs. */
9998
+ openapi: {
9999
+ changes: SiteRevisionOpenAPIChange[];
10000
+ };
10001
+ /** What the changes refer to, with their ancestors, each listed once. Every entry comes after its parent, so a tree can be built in one pass. */
10002
+ includes: {
10003
+ /** Nodes of the site's structure the changes refer to, and their ancestors, as a flat list in site order. Nodes are linked to their parent by `parent`. */
10004
+ structure: SiteRevisionNode[];
10005
+ /** Pages the changes refer to, and their ancestors, under the space node showing them. Pages come in the order of the node's content; a page deleted since the base comes after those of the site revision. */
10006
+ pages: SiteRevisionPage[];
10007
+ };
10008
+ }
9830
10009
  export interface SiteSectionGroupPointer {
9831
10010
  type: "site-section" | "site-section-group";
9832
10011
  /** Unique identifier for the site section */
@@ -10193,10 +10372,22 @@ export type SiteInsightsEventSearchTypeQuery = SiteInsightsEventBase & {
10193
10372
  /** Query of the search. */
10194
10373
  query: string;
10195
10374
  };
10375
+ /**
10376
+ * Published site search displays up to ten page results and ten supplemental records per request.
10377
+ * @min 1
10378
+ * @max 20
10379
+ */
10380
+ export type SiteInsightsSearchResultNumber = number;
10196
10381
  export type SiteInsightsEventSearchOpenResult = SiteInsightsEventBase & {
10197
10382
  type: "search_open_result";
10198
10383
  /** Query of the search. */
10199
10384
  query: string;
10385
+ /** One-based position of the opened result in the displayed list. */
10386
+ position?: SiteInsightsSearchResultNumber;
10387
+ /** Number of results in the displayed list. */
10388
+ resultsCount?: SiteInsightsSearchResultNumber;
10389
+ /** Client-generated 128-bit identifier for a search request, encoded as hexadecimal. */
10390
+ searchId?: SiteSearchId;
10200
10391
  /** Target of the opened search result. */
10201
10392
  result: {
10202
10393
  /** ID of the concerned space. */
@@ -10383,8 +10574,12 @@ export type SiteInsightsQueryEventsColumn = SiteInsightsQueryDateTimeColumn | {
10383
10574
  column: "eventMarkdownSource";
10384
10575
  } | {
10385
10576
  column: "eventSearchQuery";
10577
+ } | {
10578
+ column: "eventNormalizedSearchQuery";
10386
10579
  } | {
10387
10580
  column: "eventSearchResultRecordId";
10581
+ } | {
10582
+ column: "eventSearchResultPositionBucket";
10388
10583
  } | {
10389
10584
  column: "eventPageFeedbackRating";
10390
10585
  } | {
@@ -10425,10 +10620,7 @@ export type SiteInsightsQueryEventsColumn = SiteInsightsQueryDateTimeColumn | {
10425
10620
  } | {
10426
10621
  column: "eventTrademarkPlacement";
10427
10622
  };
10428
- /**
10429
- * Ratings submitted on a page, counted once per rating a reader submitted rather than once
10430
- * per event.
10431
- */
10623
+ /** Search query in lowercase with leading and trailing whitespace removed and internal whitespace collapsed. */
10432
10624
  export type SiteInsightsQueryEventsValues = {
10433
10625
  column: "datetime";
10434
10626
  values: Timestamp[];
@@ -10546,9 +10738,15 @@ export type SiteInsightsQueryEventsValues = {
10546
10738
  } | {
10547
10739
  column: "eventSearchQuery";
10548
10740
  values: string[];
10741
+ } | {
10742
+ column: "eventNormalizedSearchQuery";
10743
+ values: string[];
10549
10744
  } | {
10550
10745
  column: "eventSearchResultRecordId";
10551
10746
  values: (string | null)[];
10747
+ } | {
10748
+ column: "eventSearchResultPositionBucket";
10749
+ values: (null | "first" | "secondToFourth" | "fifthOrLater")[];
10552
10750
  } | {
10553
10751
  column: "pageFeedbackRating";
10554
10752
  values: {
@@ -10629,10 +10827,39 @@ export interface SiteInsightsQueryEventsAggregation {
10629
10827
  * @default 1000
10630
10828
  */
10631
10829
  limit?: number;
10830
+ /** Return the site's earliest recorded ranked browser search open by a human. The date is independent of the query's range and filters. */
10831
+ includeSearchRankTrackingStart?: boolean;
10832
+ /** Count only search opens at position 5 or later, and return page details for each query. Group by eventNormalizedSearchQuery alone. The page size is capped at 50. */
10833
+ includeLowSearchResultPages?: boolean;
10632
10834
  /** The `next.page` value of a previous result, to fetch the rows that follow it. Send the rest of the query unchanged. Relative ranges stay fixed to the time of the first page, but events recorded while paging can still move rows between pages. */
10633
10835
  page?: string;
10634
10836
  }
10837
+ export interface SiteInsightsLowSearchResultPage {
10838
+ /** Normalized search query. */
10839
+ query: string;
10840
+ /** The page with the most opens at position 5 or later for this query. */
10841
+ page: {
10842
+ /** ID of the space that contains the opened page. */
10843
+ space: string;
10844
+ /** ID of the opened page. */
10845
+ page: string;
10846
+ };
10847
+ /** Median position across opens of this page at position 5 or later. */
10848
+ medianPosition: number;
10849
+ /**
10850
+ * Number of other distinct pages opened at position 5 or later for this query.
10851
+ * @min 0
10852
+ */
10853
+ otherPagesCount: number;
10854
+ }
10635
10855
  export type SiteInsightsQueryEventsAggregationResult = List & {
10856
+ /**
10857
+ * Returned when requested. Null if the site has no recorded ranked search opens.
10858
+ * @format date-time
10859
+ */
10860
+ searchRankTrackingStart?: string | null;
10861
+ /** Returned when requested. Queries with no page opens are omitted. */
10862
+ lowSearchResultPages?: SiteInsightsLowSearchResultPage[];
10636
10863
  columns: SiteInsightsQueryEventsValues[];
10637
10864
  };
10638
10865
  /** A segment of visitors with the same characteristics. */
@@ -10865,7 +11092,7 @@ export interface APIProfilingSession {
10865
11092
  id: string;
10866
11093
  status: "active" | "stopped" | "expired";
10867
11094
  /** The profiler selected for this session. Earlier sessions without this field use CPU profiling. */
10868
- mode?: "cpu" | "allocations";
11095
+ mode?: "cpu" | "allocations" | "heap-snapshot";
10869
11096
  releaseVersion: string;
10870
11097
  releaseBuild: string;
10871
11098
  /** @format date-time */
@@ -11745,6 +11972,22 @@ export type GitSyncSiteStructureNode = GitSyncSiteStructureSectionGroup | GitSyn
11745
11972
  * languages at the same time.
11746
11973
  */
11747
11974
  export type GitSyncSiteStructure = GitSyncSiteStructureNode[];
11975
+ /**
11976
+ * Path of a YAML or JSON file, relative to the directory holding
11977
+ * `gitbook-docs.yaml`. The path must stay inside that directory.
11978
+ * @minLength 1
11979
+ * @maxLength 1024
11980
+ * @pattern \.(ya?ml|json)$
11981
+ */
11982
+ export type GitSyncSiteOpenAPISpecPath = string;
11983
+ /**
11984
+ * An OpenAPI specification imported from the repository. Either the path of
11985
+ * the specification file, or an object with the file as `source`.
11986
+ */
11987
+ export type GitSyncSiteOpenAPISpec = GitSyncSiteOpenAPISpecPath | {
11988
+ /** Path of the specification file. */
11989
+ source: GitSyncSiteOpenAPISpecPath;
11990
+ };
11748
11991
  /**
11749
11992
  * Schema for a site `gitbook-docs.yaml` file — the canonical contract for what
11750
11993
  * can be authored in Git Sync to drive a site's structure.
@@ -11857,7 +12100,36 @@ export interface GitSyncSiteConfig {
11857
12100
  */
11858
12101
  structure: GitSyncSiteStructure;
11859
12102
  };
12103
+ /**
12104
+ * OpenAPI specifications imported from the repository, keyed by the slug
12105
+ * of the organization's specification they update. Each value is either
12106
+ * the path of the specification file, or an object with the file as
12107
+ * `source`:
12108
+ *
12109
+ * ```yaml
12110
+ * openapi:
12111
+ * petstore: ./petstore.yaml
12112
+ * billing:
12113
+ * source: ./billing.yaml
12114
+ * ```
12115
+ *
12116
+ * This is in early rollout: it may not take effect for your organization
12117
+ * yet, in which case listed specifications are not imported.
12118
+ *
12119
+ * Each commit that changes a listed file updates the specification, which
12120
+ * is created private if the organization has none with that slug. Changes
12121
+ * made in GitBook are not written back to the repository: the next commit
12122
+ * to the file replaces them. Removing an entry leaves the specification in
12123
+ * GitBook.
12124
+ */
12125
+ openapi?: Record<OpenAPISpecSlug, GitSyncSiteOpenAPISpec>;
11860
12126
  }
12127
+ /**
12128
+ * Name of the SCIM connection, shown to organization admins.
12129
+ * @minLength 1
12130
+ * @maxLength 100
12131
+ */
12132
+ export type SCIMConnectionLabel = string;
11861
12133
  export type IntegrationEnvironmentSpaceInstallation = IntegrationContentInstallationBase & {
11862
12134
  /** The space the integration is installed on. */
11863
12135
  space: string;
@@ -12395,11 +12667,6 @@ export interface APIChannelOrganizationTranslationsGlossary {
12395
12667
  channel: "organization-translations-glossary";
12396
12668
  organization: string;
12397
12669
  }
12398
- /** Subscription channel for changes in the SCIM connections of an organization. */
12399
- export interface APIChannelOrganizationSCIMConnections {
12400
- channel: "organization-scim-connections";
12401
- organization: string;
12402
- }
12403
12670
  /** Subscription channel for changes in the email domains of an organization. */
12404
12671
  export interface APIChannelOrganizationDomains {
12405
12672
  channel: "organization-domains";
@@ -13697,6 +13964,61 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
13697
13964
  revision: string;
13698
13965
  result: "merge" | "conflicts";
13699
13966
  }, any>>;
13967
+ /**
13968
+ * @description Checks whether a revert draft can be created for a merged change request without creating one. Requires permission to edit the space and returns whether the merge can be reverted along with the first blocker when it cannot.
13969
+ *
13970
+ * @tags change-requests
13971
+ * @name GetChangeRequestRevert
13972
+ * @summary Check whether a merged change request can be reverted
13973
+ * @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/revert
13974
+ * @secure
13975
+ */
13976
+ getChangeRequestRevert: (spaceId: EntityId, changeRequestId: EntityId, params?: RequestParams) => Promise<HttpResponse<{
13977
+ /** Whether a revert draft can be created for this change request. */
13978
+ revertable: boolean;
13979
+ /** Reason the change request cannot be reverted, when revertable is false. */
13980
+ reason?: string;
13981
+ }, {
13982
+ error: {
13983
+ /** @format int32 */
13984
+ code: 403;
13985
+ message: string;
13986
+ };
13987
+ } | {
13988
+ error: {
13989
+ /** @format int32 */
13990
+ code: 404;
13991
+ message: string;
13992
+ };
13993
+ }>>;
13994
+ /**
13995
+ * @description Creates a draft that restores all changed page bodies from before a merge. The draft starts from current content and follows the space's ordinary review and merge rules. This operation may be unavailable for some spaces. It requires permission to edit the space. It returns a conflict when a complete undo is impossible. For example, the merge may have changed more than 100 pages or made changes beyond page bodies. An affected page or its visibility may have changed since the merge, or the earlier content may be unavailable. Restored pages resolve references against current content. Repeating the operation returns the same revert change request in any status.
13996
+ *
13997
+ * @tags change-requests
13998
+ * @name RevertChangeRequest
13999
+ * @summary Create a change request that undoes a merge
14000
+ * @request POST:/spaces/{spaceId}/change-requests/{changeRequestId}/revert
14001
+ * @secure
14002
+ */
14003
+ revertChangeRequest: (spaceId: EntityId, changeRequestId: EntityId, params?: RequestParams) => Promise<HttpResponse<ChangeRequest, {
14004
+ error: {
14005
+ /** @format int32 */
14006
+ code: 403;
14007
+ message: string;
14008
+ };
14009
+ } | {
14010
+ error: {
14011
+ /** @format int32 */
14012
+ code: 404;
14013
+ message: string;
14014
+ };
14015
+ } | {
14016
+ error: {
14017
+ /** @format int32 */
14018
+ code: 409;
14019
+ message: string;
14020
+ };
14021
+ }>>;
13700
14022
  /**
13701
14023
  * @description Rebases the change request onto the latest primary revision of the space, pulling in any changes that were merged to the live space since this change request was created. Run this before merging to minimise conflicts, especially if the change request has been open for a while.
13702
14024
  *
@@ -16201,11 +16523,17 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
16201
16523
  updateMemberInOrganizationById: (organizationId: EntityId, userId: string, data: {
16202
16524
  /** The role of a member in an organization, null for guests */
16203
16525
  role?: MemberRoleOrGuest;
16204
- /** Disable or re-enable the member. Only members disabled by an admin can be re-enabled. */
16526
+ /** Disable or re-enable the member. Directory-managed access is changed through the identity provider. Only members disabled by an admin can be re-enabled through this operation. */
16205
16527
  disabled?: boolean;
16206
- }, params?: RequestParams) => Promise<HttpResponse<OrganizationMember, any>>;
16528
+ }, params?: RequestParams) => Promise<HttpResponse<OrganizationMember, {
16529
+ error: {
16530
+ /** @format int32 */
16531
+ code: 412;
16532
+ message: string;
16533
+ };
16534
+ }>>;
16207
16535
  /**
16208
- * @description Users cannot remove their own membership. Ask another organization admin to remove it.
16536
+ * @description Users cannot remove their own membership. Ask another organization admin to remove it. Remove directory-managed members through the identity provider.
16209
16537
  *
16210
16538
  * @tags organization-members
16211
16539
  * @name RemoveMemberFromOrganizationById
@@ -16213,7 +16541,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
16213
16541
  * @request DELETE:/orgs/{organizationId}/members/{userId}
16214
16542
  * @secure
16215
16543
  */
16216
- removeMemberFromOrganizationById: (organizationId: EntityId, userId: string, params?: RequestParams) => Promise<HttpResponse<void, any>>;
16544
+ removeMemberFromOrganizationById: (organizationId: EntityId, userId: string, params?: RequestParams) => Promise<HttpResponse<void, {
16545
+ error: {
16546
+ /** @format int32 */
16547
+ code: 412;
16548
+ message: string;
16549
+ };
16550
+ }>>;
16217
16551
  /**
16218
16552
  * No description
16219
16553
  *
@@ -16455,7 +16789,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
16455
16789
  };
16456
16790
  }>>;
16457
16791
  /**
16458
- * @description Creates a connection with its SAML service provider URLs and a SCIM token. The token is only returned in this response.
16792
+ * @description Creates a connection with its SAML service provider URLs. SAML and SCIM are set up afterwards, once the connection has a verified email domain: SAML by updating the connection with the identity provider's settings, SCIM by creating its token.
16459
16793
  *
16460
16794
  * @tags sso
16461
16795
  * @name CreateOrganizationIdPConnection
@@ -16477,7 +16811,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
16477
16811
  certificate?: SAMLProviderCertificate;
16478
16812
  /** Email domains the provider signs people in for. Each one must be an email domain of the organization. Only emails on a verified domain in this list can sign in through the provider. */
16479
16813
  domains?: SAMLProviderDomains;
16480
- }, params?: RequestParams) => Promise<HttpResponse<OrganizationIdPConnectionWithToken, {
16814
+ }, params?: RequestParams) => Promise<HttpResponse<OrganizationIdPConnection, {
16481
16815
  error: {
16482
16816
  /** @format int32 */
16483
16817
  code: 400;
@@ -16507,7 +16841,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
16507
16841
  };
16508
16842
  }>>;
16509
16843
  /**
16510
- * No description
16844
+ * @description Updates a connection. Setting any of `defaultTeam`, `defaultTeamFromDomain` and `defaultTeamFromSCIM` replaces the default team, and at most one of them can be set. Email domains, when set, must include a verified one, and so must the connection's domains when the request sets SAML settings.
16511
16845
  *
16512
16846
  * @tags sso
16513
16847
  * @name UpdateOrganizationIdPConnection
@@ -16525,6 +16859,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
16525
16859
  /** Team to add members to, or null to add them to none. */
16526
16860
  defaultTeam?: string | null;
16527
16861
  defaultTeamFromDomain?: boolean;
16862
+ /** Let the identity provider decide each member's teams through SCIM. Only accepted while SCIM is set up. */
16863
+ defaultTeamFromSCIM?: boolean;
16528
16864
  ssoURL?: URL;
16529
16865
  entityID?: SAMLProviderEntityID;
16530
16866
  certificate?: SAMLProviderCertificate;
@@ -16552,7 +16888,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
16552
16888
  * @request DELETE:/orgs/{organizationId}/idp-connections/{idpConnectionId}
16553
16889
  * @secure
16554
16890
  */
16555
- deleteOrganizationIdPConnection: (organizationId: EntityId, idpConnectionId: string, params?: RequestParams) => Promise<HttpResponse<void, {
16891
+ deleteOrganizationIdPConnection: (organizationId: EntityId, idpConnectionId: string, query?: {
16892
+ /**
16893
+ * What happens to the members linked to the connection through SCIM.
16894
+ * @default "keep"
16895
+ */
16896
+ members?: IdPConnectionMembersAction;
16897
+ }, params?: RequestParams) => Promise<HttpResponse<void, {
16556
16898
  error: {
16557
16899
  /** @format int32 */
16558
16900
  code: 404;
@@ -16560,15 +16902,21 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
16560
16902
  };
16561
16903
  }>>;
16562
16904
  /**
16563
- * @description Creates a new SCIM token for a connection. The previous token stops working immediately, and the new token is only returned in this response.
16905
+ * @description Creates a new SCIM token for a connection. The previous token stops working immediately, and the new token is only returned in this response. Setting up SCIM, when the connection has no token yet, needs a verified email domain on the connection.
16564
16906
  *
16565
16907
  * @tags sso
16566
16908
  * @name RotateOrganizationIdPConnectionToken
16567
- * @summary Replace the SCIM token of an identity provider connection
16909
+ * @summary Rotate the SCIM token of an identity provider connection
16568
16910
  * @request POST:/orgs/{organizationId}/idp-connections/{idpConnectionId}/token
16569
16911
  * @secure
16570
16912
  */
16571
16913
  rotateOrganizationIdPConnectionToken: (organizationId: EntityId, idpConnectionId: string, params?: RequestParams) => Promise<HttpResponse<OrganizationIdPConnectionWithToken, {
16914
+ error: {
16915
+ /** @format int32 */
16916
+ code: 400;
16917
+ message: string;
16918
+ };
16919
+ } | {
16572
16920
  error: {
16573
16921
  /** @format int32 */
16574
16922
  code: 404;
@@ -17198,124 +17546,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
17198
17546
  message: string;
17199
17547
  };
17200
17548
  }>>;
17201
- /**
17202
- * No description
17203
- *
17204
- * @tags scim
17205
- * @name ListOrganizationScimConnections
17206
- * @summary List SCIM connections
17207
- * @request GET:/orgs/{organizationId}/scim/connections
17208
- * @secure
17209
- */
17210
- listOrganizationScimConnections: (organizationId: EntityId, params?: RequestParams) => Promise<HttpResponse<List & {
17211
- items: OrganizationSCIMConnection[];
17212
- }, {
17213
- error: {
17214
- /** @format int32 */
17215
- code: 404;
17216
- message: string;
17217
- };
17218
- }>>;
17219
- /**
17220
- * @description Creates a SCIM connection and its token. The token is only returned in this response.
17221
- *
17222
- * @tags scim
17223
- * @name CreateOrganizationScimConnection
17224
- * @summary Create a SCIM connection
17225
- * @request POST:/orgs/{organizationId}/scim/connections
17226
- * @secure
17227
- */
17228
- createOrganizationScimConnection: (organizationId: EntityId, data: {
17229
- /** Name of the SCIM connection, shown to organization admins. */
17230
- label: SCIMConnectionLabel;
17231
- /** Identity provider behind the connection. */
17232
- provider: IdPConnectionProvider;
17233
- }, params?: RequestParams) => Promise<HttpResponse<OrganizationSCIMConnectionWithToken, {
17234
- error: {
17235
- /** @format int32 */
17236
- code: 400;
17237
- message: string;
17238
- };
17239
- } | {
17240
- error: {
17241
- /** @format int32 */
17242
- code: 404;
17243
- message: string;
17244
- };
17245
- }>>;
17246
- /**
17247
- * No description
17248
- *
17249
- * @tags scim
17250
- * @name GetOrganizationScimConnection
17251
- * @summary Get a SCIM connection by its ID
17252
- * @request GET:/orgs/{organizationId}/scim/connections/{scimConnectionId}
17253
- * @secure
17254
- */
17255
- getOrganizationScimConnection: (organizationId: EntityId, scimConnectionId: string, params?: RequestParams) => Promise<HttpResponse<OrganizationSCIMConnection, {
17256
- error: {
17257
- /** @format int32 */
17258
- code: 404;
17259
- message: string;
17260
- };
17261
- }>>;
17262
- /**
17263
- * No description
17264
- *
17265
- * @tags scim
17266
- * @name UpdateOrganizationScimConnection
17267
- * @summary Update a SCIM connection
17268
- * @request PATCH:/orgs/{organizationId}/scim/connections/{scimConnectionId}
17269
- * @secure
17270
- */
17271
- updateOrganizationScimConnection: (organizationId: EntityId, scimConnectionId: string, data: {
17272
- /** Name of the SCIM connection, shown to organization admins. */
17273
- label: SCIMConnectionLabel;
17274
- }, params?: RequestParams) => Promise<HttpResponse<OrganizationSCIMConnection, {
17275
- error: {
17276
- /** @format int32 */
17277
- code: 400;
17278
- message: string;
17279
- };
17280
- } | {
17281
- error: {
17282
- /** @format int32 */
17283
- code: 404;
17284
- message: string;
17285
- };
17286
- }>>;
17287
- /**
17288
- * @description Deletes a SCIM connection. Its token stops working immediately.
17289
- *
17290
- * @tags scim
17291
- * @name DeleteOrganizationScimConnection
17292
- * @summary Delete a SCIM connection
17293
- * @request DELETE:/orgs/{organizationId}/scim/connections/{scimConnectionId}
17294
- * @secure
17295
- */
17296
- deleteOrganizationScimConnection: (organizationId: EntityId, scimConnectionId: string, params?: RequestParams) => Promise<HttpResponse<void, {
17297
- error: {
17298
- /** @format int32 */
17299
- code: 404;
17300
- message: string;
17301
- };
17302
- }>>;
17303
- /**
17304
- * @description Replaces the token of a SCIM connection. The previous token stops working immediately, and the new token is only returned in this response.
17305
- *
17306
- * @tags scim
17307
- * @name RotateOrganizationScimConnectionToken
17308
- * @summary Rotate the token of a SCIM connection
17309
- * @request POST:/orgs/{organizationId}/scim/connections/{scimConnectionId}/token
17310
- * @secure
17311
- */
17312
- rotateOrganizationScimConnectionToken: (organizationId: EntityId, scimConnectionId: string, params?: RequestParams) => Promise<HttpResponse<OrganizationSCIMConnectionWithToken, {
17313
- error: {
17314
- /** @format int32 */
17315
- code: 404;
17316
- message: string;
17317
- };
17318
- }>>;
17319
17549
  /**
17320
17550
  * No description
17321
17551
  *
@@ -18983,6 +19213,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
18983
19213
  searchSiteContent: (organizationId: EntityId, siteId: string, data: {
18984
19214
  /** @maxLength 512 */
18985
19215
  query: string;
19216
+ /** Client-generated 128-bit identifier for a search request, encoded as hexadecimal. */
19217
+ searchId?: SiteSearchId;
18986
19218
  } & ({
18987
19219
  /** Define the scope of the search. */
18988
19220
  scope: SiteSearchScope;
@@ -20123,7 +20355,26 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
20123
20355
  };
20124
20356
  }>>;
20125
20357
  /**
20126
- * @description Retrieves the revision a space of the site was at when the site revision was recorded, including the full page tree structure and associated files. A space the site revision does not record returns 404.
20358
+ * @description Returns the changes between two site revisions.
20359
+ *
20360
+ * @tags sites
20361
+ * @name GetSiteRevisionChanges
20362
+ * @summary Get the changes of a site revision
20363
+ * @request GET:/orgs/{organizationId}/sites/{siteId}/revisions/{siteRevisionId}/changes
20364
+ * @secure
20365
+ */
20366
+ getSiteRevisionChanges: (organizationId: EntityId, siteId: string, siteRevisionId: string, query?: {
20367
+ /** Site revision to compare against. Defaults to the live site. */
20368
+ base?: string;
20369
+ }, params?: RequestParams) => Promise<HttpResponse<SiteRevisionChanges, {
20370
+ error: {
20371
+ /** @format int32 */
20372
+ code: 404;
20373
+ message: string;
20374
+ };
20375
+ }>>;
20376
+ /**
20377
+ * @description Returns the revision of a space at a site revision.
20127
20378
  *
20128
20379
  * @tags sites
20129
20380
  * @name GetRevisionInSiteRevision
@@ -20144,7 +20395,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
20144
20395
  computed?: boolean;
20145
20396
  }, params?: RequestParams) => Promise<HttpResponse<Revision, any>>;
20146
20397
  /**
20147
- * @description Returns a page in the revision a space was at when the site revision was recorded. A space the site revision does not record returns 404.
20398
+ * @description Returns a page of a space at a site revision.
20148
20399
  *
20149
20400
  * @tags sites
20150
20401
  * @name GetPageInSiteRevision
@@ -20191,7 +20442,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
20191
20442
  computed?: boolean;
20192
20443
  }, params?: RequestParams) => Promise<HttpResponse<RevisionPage, any>>;
20193
20444
  /**
20194
- * @description Returns the meta links of a page in the revision a space was at when the site revision was recorded. A space the site revision does not record returns 404.
20445
+ * @description Returns the meta links of a page at a site revision.
20195
20446
  *
20196
20447
  * @tags sites
20197
20448
  * @name ListPageMetaLinksInSiteRevision
@@ -20201,7 +20452,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
20201
20452
  */
20202
20453
  listPageMetaLinksInSiteRevision: (organizationId: EntityId, siteId: string, siteRevisionId: string, spaceId: EntityId, pageId: EntityId, params?: RequestParams) => Promise<HttpResponse<RevisionPageMetaLinks, any>>;
20203
20454
  /**
20204
- * @description Returns the page at a path in the revision a space was at when the site revision was recorded. A space the site revision does not record returns 404.
20455
+ * @description Returns a page of a space by its path at a site revision.
20205
20456
  *
20206
20457
  * @tags sites
20207
20458
  * @name GetPageByPathInSiteRevision
@@ -20253,7 +20504,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
20253
20504
  computed?: boolean;
20254
20505
  }, params?: RequestParams) => Promise<HttpResponse<RevisionPageDocument | RevisionPageGroup, any>>;
20255
20506
  /**
20256
- * @description Returns the document of a reusable content in the revision a space was at when the site revision was recorded. A space the site revision does not record returns 404.
20507
+ * @description Returns the document of a reusable content at a site revision.
20257
20508
  *
20258
20509
  * @tags sites
20259
20510
  * @name GetReusableContentDocumentInSiteRevision
@@ -20280,7 +20531,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
20280
20531
  dereferenced?: boolean | "reusable-contents";
20281
20532
  }, params?: RequestParams) => Promise<HttpResponse<JSONDocument, any>>;
20282
20533
  /**
20283
- * @description Returns the structured JSON document of a page in the revision a space was at when the site revision was recorded. A space the site revision does not record returns 404.
20534
+ * @description Returns the document of a page at a site revision.
20284
20535
  *
20285
20536
  * @tags sites
20286
20537
  * @name GetPageDocumentInSiteRevision
@@ -20307,7 +20558,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
20307
20558
  dereferenced?: boolean | "reusable-contents";
20308
20559
  }, params?: RequestParams) => Promise<HttpResponse<JSONDocument, any>>;
20309
20560
  /**
20310
- * @description Retrieves the content of the OpenAPI spec version the site revision pins. A spec the site revision does not record returns 404.
20561
+ * @description Returns the content of an OpenAPI spec at a site revision.
20311
20562
  *
20312
20563
  * @tags sites
20313
20564
  * @name GetOpenApiSpecContentInSiteRevision
@@ -20802,7 +21053,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
20802
21053
  destination: SiteRedirectInputDestination;
20803
21054
  }, params?: RequestParams) => Promise<HttpResponse<SiteRedirect, any>>;
20804
21055
  /**
20805
- * @description Processes up to 500 redirect operations in a single request. Each redirect in the array is processed independently and the response includes per-item status. Prefer this over individual create/update calls when managing large sets of redirects.
21056
+ * @description Processes up to 2,000 redirect operations in a single request. Each redirect in the array is processed independently and the response includes per-item status. Prefer this over individual create/update calls when managing large sets of redirects.
20806
21057
  *
20807
21058
  * @tags site-redirects
20808
21059
  * @name BulkUpsertSiteRedirects
@@ -20812,7 +21063,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
20812
21063
  */
20813
21064
  bulkUpsertSiteRedirects: (organizationId: EntityId, siteId: string, data: {
20814
21065
  /**
20815
- * @maxItems 500
21066
+ * @maxItems 2000
20816
21067
  * @minItems 1
20817
21068
  */
20818
21069
  redirects: ({
@@ -20904,7 +21155,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
20904
21155
  * @max 1000
20905
21156
  */
20906
21157
  limit?: number;
20907
- /** Search for a redirect by path */
21158
+ /** Search for a redirect by path. Values starting with "/" match by prefix; other values match any substring. */
20908
21159
  search?: string;
20909
21160
  /**
20910
21161
  * Filter redirects by draft mode.