@gitbook/api 0.212.0 → 0.214.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
@@ -648,12 +648,6 @@ export declare enum OpenAPISpecProcessingState {
648
648
  Progress = "progress",
649
649
  Complete = "complete"
650
650
  }
651
- /** Identity provider behind the connection. */
652
- export declare enum IdPConnectionProvider {
653
- Okta = "okta",
654
- Entra = "entra",
655
- Generic = "generic"
656
- }
657
651
  /** Verification status of the domain. "legacy" is a domain added before verification existed: it keeps letting people join automatically without being verified. */
658
652
  export declare enum OrganizationDomainStatus {
659
653
  Legacy = "legacy",
@@ -661,19 +655,6 @@ export declare enum OrganizationDomainStatus {
661
655
  Verified = "verified",
662
656
  Error = "error"
663
657
  }
664
- /**
665
- * State of a SAML provider's email domain in the organization.
666
- * - `verified`: People with an email on this domain can sign in through the provider.
667
- * - `pending`, `error`, `legacy`: The domain isn't verified yet, so it doesn't let anyone sign in.
668
- * - `removed`: The organization no longer has this domain.
669
- */
670
- export declare enum SAMLProviderDomainStatus {
671
- Verified = "verified",
672
- Pending = "pending",
673
- Error = "error",
674
- Legacy = "legacy",
675
- Removed = "removed"
676
- }
677
658
  /**
678
659
  * Status of the provider.
679
660
  * - `active`: The provider is active and can be used to authenticate users.
@@ -731,6 +712,34 @@ export declare enum BillingMeter {
731
712
  AiAgentResponses = "ai_agent_responses",
732
713
  TranslationWords = "translation_words"
733
714
  }
715
+ /**
716
+ * State of a SAML provider's email domain in the organization.
717
+ * - `verified`: People with an email on this domain can sign in through the provider.
718
+ * - `pending`, `error`, `legacy`: The domain isn't verified yet, so it doesn't let anyone sign in.
719
+ * - `removed`: The organization no longer has this domain.
720
+ */
721
+ export declare enum SAMLProviderDomainStatus {
722
+ Verified = "verified",
723
+ Pending = "pending",
724
+ Error = "error",
725
+ Legacy = "legacy",
726
+ Removed = "removed"
727
+ }
728
+ /**
729
+ * Status of the connection.
730
+ * - `pending`: GitBook hasn't seen the identity provider use the connection yet.
731
+ * - `ready`: A member signed in with SAML through the connection, or the identity provider sent an authenticated SCIM request.
732
+ */
733
+ export declare enum IdPConnectionStatus {
734
+ Pending = "pending",
735
+ Ready = "ready"
736
+ }
737
+ /** Identity provider behind the connection. */
738
+ export declare enum IdPConnectionProvider {
739
+ Okta = "okta",
740
+ Entra = "entra",
741
+ Generic = "generic"
742
+ }
734
743
  /**
735
744
  * "The role of a team member.
736
745
  * "owner": Can manage team members.
@@ -1438,7 +1447,7 @@ export declare enum ContentVisibility {
1438
1447
  /** Data passed through a realtime channel */
1439
1448
  export type APIChannelData = APIChannelGitSyncOperationData | APIChannelGitSyncSiteOperationData | APIChannelTranslationRunData | APIChannelImportRunData | APIChannelMutationData;
1440
1449
  /** Channel to subscribe to for realtime updates. */
1441
- 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 | 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;
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;
1442
1451
  /** The plan upgrade that would make a feature available. */
1443
1452
  export type FeatureUpgradeRequirement = {
1444
1453
  type: "organization";
@@ -1699,6 +1708,8 @@ export interface UserAPIToken {
1699
1708
  ipRules?: APITokenIPRule[];
1700
1709
  /** When the API token last authenticated a request, accurate to within an hour. Absent for a token that has never been used. */
1701
1710
  lastUsedAt?: Timestamp;
1711
+ /** ID of the token that replaced this one through a rotation. This token keeps working until `expiresAt`. Absent when the token was not rotated. */
1712
+ replacedBy?: string;
1702
1713
  /** Operations the token can call. `write` allows everything the user can do, while `read` only allows reading. Fixed at creation. */
1703
1714
  scope: "read" | "write";
1704
1715
  }
@@ -3222,6 +3233,11 @@ export type RevisionPageDocument = RevisionPageBase & Document & {
3222
3233
  /** Complete path to access the page in the revision. */
3223
3234
  path: string;
3224
3235
  description?: string;
3236
+ /**
3237
+ * Authored terms and phrases that can help readers find this page.
3238
+ * @maxItems 20
3239
+ */
3240
+ keywords?: string[];
3225
3241
  /**
3226
3242
  * 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.
3227
3243
  * @maxLength 100
@@ -4643,6 +4659,11 @@ export interface RevisionPageUpdate {
4643
4659
  * @maxLength 100
4644
4660
  */
4645
4661
  linkTitle?: string;
4662
+ /**
4663
+ * 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.
4664
+ * @maxItems 20
4665
+ */
4666
+ keywords?: string[];
4646
4667
  /**
4647
4668
  * 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.
4648
4669
  * @maxLength 100
@@ -4711,7 +4732,7 @@ export interface ChangeRequestContentChangeDeletePage {
4711
4732
  page: string;
4712
4733
  }
4713
4734
  /**
4714
- * Revert a page to the state it had in a given revision. If `revision` is omitted, the page is reverted to the change request's base revision. Without `block`, the whole page is reverted — added pages are removed, deleted pages are restored, and modified pages have their document reset. With `block`, only the listed block-level changes in the page's document are reverted (each block is removed if it was added, restored if it was deleted, or reset if it was modified or moved); other blocks and the page's properties/metadata are left untouched.
4735
+ * Revert a page to the state it had in a given revision. If `revision` is omitted, the page is reverted to the change request's base revision. Without `block`, the whole page is reverted — added pages are removed, deleted pages are restored, and modified pages have their document and properties (title, description, slug, tags, cover, icon and other page settings) reset; the page keeps its position. With `block`, only the listed block-level changes in the page's document are reverted (each block is removed if it was added, restored if it was deleted, or reset if it was modified or moved); other blocks and the page's properties/metadata are left untouched.
4715
4736
  * @example {"operation":"revert_page","page":"page_id"}
4716
4737
  */
4717
4738
  export interface ChangeRequestContentChangeRevertPage {
@@ -5020,6 +5041,10 @@ export interface ChangeAttributeVariables {
5020
5041
  export interface RevisionPageDocumentChangeAttributes {
5021
5042
  title?: ChangeAttributeString;
5022
5043
  description?: ChangeAttributeString;
5044
+ keywords?: {
5045
+ before?: string[];
5046
+ after?: string[];
5047
+ };
5023
5048
  slug?: ChangeAttributeString;
5024
5049
  document?: ChangeAttributeString;
5025
5050
  cover?: ChangeAttributeRevisionPageDocumentCover;
@@ -6035,7 +6060,7 @@ export interface Site {
6035
6060
  /** Can the user edit the adaptive schema of the site. */
6036
6061
  editAdaptiveSchema: boolean;
6037
6062
  };
6038
- /** Whether visitors can preview change requests and historical revisions on the published site. Previews inside GitBook are not affected. */
6063
+ /** Whether visitors can preview change requests and historical revisions on the published site. Disabled for new sites. Existing sites keep their configured value. Previews inside GitBook are not affected. */
6039
6064
  publicChangeRequestPreviews: boolean;
6040
6065
  /** Whether the site is live or not. If true, the site is accessible to the audience defined by the visibility setting. */
6041
6066
  published: boolean;
@@ -6808,6 +6833,113 @@ export interface UpdateMembersInOrganizationTeam {
6808
6833
  memberships?: Record<string, TeamMember>;
6809
6834
  remove?: string[];
6810
6835
  }
6836
+ /**
6837
+ * Name of the identity provider connection, shown to organization admins.
6838
+ * @minLength 1
6839
+ * @maxLength 100
6840
+ */
6841
+ export type IdPConnectionLabel = string;
6842
+ /** Role given to people on their first sign-in through the provider. null adds them as guests, "default" uses the organization's default role, and "domain" uses the role of the verified email domain they signed in with. */
6843
+ export type SAMLProviderDefaultRole = MemberRole | null | "default" | "domain";
6844
+ /** @maxLength 1024 */
6845
+ export type SAMLProviderEntityID = string;
6846
+ /** @maxLength 10000 */
6847
+ export type SAMLProviderCertificate = string;
6848
+ /** An email domain of a SAML provider, with its verification state in the organization. */
6849
+ export interface SAMLProviderDomain {
6850
+ domain: string;
6851
+ /**
6852
+ * State of a SAML provider's email domain in the organization.
6853
+ * - `verified`: People with an email on this domain can sign in through the provider.
6854
+ * - `pending`, `error`, `legacy`: The domain isn't verified yet, so it doesn't let anyone sign in.
6855
+ * - `removed`: The organization no longer has this domain.
6856
+ */
6857
+ status: SAMLProviderDomainStatus;
6858
+ }
6859
+ /** A connection to an identity provider, which signs organization members in with SAML and provisions them with SCIM. */
6860
+ export interface OrganizationIdPConnection {
6861
+ /** The object type, which is always "idp-connection" */
6862
+ object: "idp-connection";
6863
+ /** Unique identifier of the connection */
6864
+ id: string;
6865
+ /** Name of the identity provider connection, shown to organization admins. */
6866
+ label: IdPConnectionLabel;
6867
+ /** Identity provider behind the connection. */
6868
+ provider: IdPConnectionProvider;
6869
+ /**
6870
+ * Status of the connection.
6871
+ * - `pending`: GitBook hasn't seen the identity provider use the connection yet.
6872
+ * - `ready`: A member signed in with SAML through the connection, or the identity provider sent an authenticated SCIM request.
6873
+ */
6874
+ status: IdPConnectionStatus;
6875
+ /** Role given to people on their first sign-in through the provider. null adds them as guests, "default" uses the organization's default role, and "domain" uses the role of the verified email domain they signed in with. */
6876
+ defaultRole: SAMLProviderDefaultRole;
6877
+ defaultTeam?: OrganizationTeam;
6878
+ /** Whether people join the team of the verified email domain they signed in with, instead of `defaultTeam`. */
6879
+ defaultTeamFromDomain: boolean;
6880
+ /** Whether the identity provider decides each member's teams through SCIM, instead of `defaultTeam`. */
6881
+ defaultTeamFromSCIM: boolean;
6882
+ /** SAML sign-in through the connection. */
6883
+ saml: {
6884
+ /** The identity provider's single sign-on URL. Absent until it is set. */
6885
+ ssoURL?: URL;
6886
+ /** Entity ID of the identity provider. Absent until it is set. */
6887
+ entityID?: SAMLProviderEntityID;
6888
+ /** X.509 certificate of the identity provider. Absent until it is set. */
6889
+ certificate?: SAMLProviderCertificate;
6890
+ /** Email domains the connection signs people in for. Absent on connections created before domains existed, which accept any email. */
6891
+ domains?: SAMLProviderDomain[];
6892
+ /** Service provider values to configure in the identity provider. */
6893
+ service: {
6894
+ /**
6895
+ * Assertion Consumer Service (ACS) URL
6896
+ * @format uri
6897
+ */
6898
+ acsURL: string;
6899
+ /**
6900
+ * Start URL for the identity provider
6901
+ * @format uri
6902
+ */
6903
+ startURL: string;
6904
+ entityID: SAMLProviderEntityID;
6905
+ };
6906
+ /** Date of the last successful sign-in through the connection */
6907
+ lastUsedAt?: Timestamp;
6908
+ };
6909
+ /** SCIM provisioning through the connection. Absent on connections created before SCIM, until their SCIM token is created. */
6910
+ scim?: {
6911
+ /** SCIM base URL to configure in the identity provider */
6912
+ baseURL: URL;
6913
+ /** Last characters of the current token, to identify it */
6914
+ tokenHint: string;
6915
+ /** Date the current token was created */
6916
+ tokenCreatedAt: Timestamp;
6917
+ /** Date of the last request authenticated with the token */
6918
+ lastUsedAt?: Timestamp;
6919
+ };
6920
+ /** Date of creation */
6921
+ createdAt: Timestamp;
6922
+ /** Date of the last update */
6923
+ updatedAt: Timestamp;
6924
+ /** URLs associated with the object */
6925
+ urls: {
6926
+ /** URL of the connection in the API */
6927
+ location: URL;
6928
+ };
6929
+ }
6930
+ /**
6931
+ * 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.
6932
+ * @maxItems 50
6933
+ * @uniqueItems true
6934
+ */
6935
+ export type SAMLProviderDomains = string[];
6936
+ /** An identity provider connection, with the SCIM token the request created. The token can't be retrieved again. */
6937
+ export interface OrganizationIdPConnectionWithToken {
6938
+ /** A connection to an identity provider, which signs organization members in with SAML and provisions them with SCIM. */
6939
+ connection: OrganizationIdPConnection;
6940
+ /** SCIM bearer token to configure in the identity provider. */
6941
+ token: string;
6942
+ }
6811
6943
  /**
6812
6944
  * User email
6813
6945
  * @format email
@@ -7288,23 +7420,6 @@ export interface InstalledIntegration {
7288
7420
  * @maxLength 30
7289
7421
  */
7290
7422
  export type SAMLProviderLabel = string;
7291
- /** @maxLength 1024 */
7292
- export type SAMLProviderEntityID = string;
7293
- /** @maxLength 10000 */
7294
- export type SAMLProviderCertificate = string;
7295
- /** Role given to people on their first sign-in through the provider. null adds them as guests, "default" uses the organization's default role, and "domain" uses the role of the verified email domain they signed in with. */
7296
- export type SAMLProviderDefaultRole = MemberRole | null | "default" | "domain";
7297
- /** An email domain of a SAML provider, with its verification state in the organization. */
7298
- export interface SAMLProviderDomain {
7299
- domain: string;
7300
- /**
7301
- * State of a SAML provider's email domain in the organization.
7302
- * - `verified`: People with an email on this domain can sign in through the provider.
7303
- * - `pending`, `error`, `legacy`: The domain isn't verified yet, so it doesn't let anyone sign in.
7304
- * - `removed`: The organization no longer has this domain.
7305
- */
7306
- status: SAMLProviderDomainStatus;
7307
- }
7308
7423
  export interface OrganizationSAMLProvider {
7309
7424
  /** Type of Object, always equals to "saml-provider" */
7310
7425
  object: "saml-provider";
@@ -7352,12 +7467,6 @@ export interface OrganizationSAMLProvider {
7352
7467
  location: string;
7353
7468
  };
7354
7469
  }
7355
- /**
7356
- * 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.
7357
- * @maxItems 50
7358
- * @uniqueItems true
7359
- */
7360
- export type SAMLProviderDomains = string[];
7361
7470
  /** Role given to people who join through the domain. "default" uses the organization's default role, and "guest" adds them as guests. */
7362
7471
  export type OrganizationDomainDefaultRole = MemberRole | "default" | "guest";
7363
7472
  /** An email domain of an organization. */
@@ -8155,6 +8264,13 @@ export type SitePublishingAuthUpdate = (VisitorAuthCustomBackend | VisitorAuthIn
8155
8264
  logoutURL?: string | null;
8156
8265
  };
8157
8266
  export type SiteCustomizationSettingsInput = SiteCustomizationSettingsBase;
8267
+ /**
8268
+ * Client-generated 128-bit identifier for a search request, encoded as hexadecimal.
8269
+ * @minLength 32
8270
+ * @maxLength 32
8271
+ * @pattern ^[0-9A-Fa-f]{32}$
8272
+ */
8273
+ export type SiteSearchId = string;
8158
8274
  export type SiteSearchScope = {
8159
8275
  /** 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. */
8160
8276
  mode: "default";
@@ -10100,10 +10216,22 @@ export type SiteInsightsEventSearchTypeQuery = SiteInsightsEventBase & {
10100
10216
  /** Query of the search. */
10101
10217
  query: string;
10102
10218
  };
10219
+ /**
10220
+ * Published site search displays up to ten page results and ten supplemental records per request.
10221
+ * @min 1
10222
+ * @max 20
10223
+ */
10224
+ export type SiteInsightsSearchResultNumber = number;
10103
10225
  export type SiteInsightsEventSearchOpenResult = SiteInsightsEventBase & {
10104
10226
  type: "search_open_result";
10105
10227
  /** Query of the search. */
10106
10228
  query: string;
10229
+ /** One-based position of the opened result in the displayed list. */
10230
+ position?: SiteInsightsSearchResultNumber;
10231
+ /** Number of results in the displayed list. */
10232
+ resultsCount?: SiteInsightsSearchResultNumber;
10233
+ /** Client-generated 128-bit identifier for a search request, encoded as hexadecimal. */
10234
+ searchId?: SiteSearchId;
10107
10235
  /** Target of the opened search result. */
10108
10236
  result: {
10109
10237
  /** ID of the concerned space. */
@@ -10290,8 +10418,12 @@ export type SiteInsightsQueryEventsColumn = SiteInsightsQueryDateTimeColumn | {
10290
10418
  column: "eventMarkdownSource";
10291
10419
  } | {
10292
10420
  column: "eventSearchQuery";
10421
+ } | {
10422
+ column: "eventNormalizedSearchQuery";
10293
10423
  } | {
10294
10424
  column: "eventSearchResultRecordId";
10425
+ } | {
10426
+ column: "eventSearchResultPositionBucket";
10295
10427
  } | {
10296
10428
  column: "eventPageFeedbackRating";
10297
10429
  } | {
@@ -10332,10 +10464,7 @@ export type SiteInsightsQueryEventsColumn = SiteInsightsQueryDateTimeColumn | {
10332
10464
  } | {
10333
10465
  column: "eventTrademarkPlacement";
10334
10466
  };
10335
- /**
10336
- * Ratings submitted on a page, counted once per rating a reader submitted rather than once
10337
- * per event.
10338
- */
10467
+ /** Search query in lowercase with leading and trailing whitespace removed and internal whitespace collapsed. */
10339
10468
  export type SiteInsightsQueryEventsValues = {
10340
10469
  column: "datetime";
10341
10470
  values: Timestamp[];
@@ -10453,9 +10582,15 @@ export type SiteInsightsQueryEventsValues = {
10453
10582
  } | {
10454
10583
  column: "eventSearchQuery";
10455
10584
  values: string[];
10585
+ } | {
10586
+ column: "eventNormalizedSearchQuery";
10587
+ values: string[];
10456
10588
  } | {
10457
10589
  column: "eventSearchResultRecordId";
10458
10590
  values: (string | null)[];
10591
+ } | {
10592
+ column: "eventSearchResultPositionBucket";
10593
+ values: (null | "first" | "secondToFourth" | "fifthOrLater")[];
10459
10594
  } | {
10460
10595
  column: "pageFeedbackRating";
10461
10596
  values: {
@@ -10536,10 +10671,39 @@ export interface SiteInsightsQueryEventsAggregation {
10536
10671
  * @default 1000
10537
10672
  */
10538
10673
  limit?: number;
10674
+ /** Return the site's earliest recorded ranked browser search open by a human. The date is independent of the query's range and filters. */
10675
+ includeSearchRankTrackingStart?: boolean;
10676
+ /** 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. */
10677
+ includeLowSearchResultPages?: boolean;
10539
10678
  /** 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. */
10540
10679
  page?: string;
10541
10680
  }
10681
+ export interface SiteInsightsLowSearchResultPage {
10682
+ /** Normalized search query. */
10683
+ query: string;
10684
+ /** The page with the most opens at position 5 or later for this query. */
10685
+ page: {
10686
+ /** ID of the space that contains the opened page. */
10687
+ space: string;
10688
+ /** ID of the opened page. */
10689
+ page: string;
10690
+ };
10691
+ /** Median position across opens of this page at position 5 or later. */
10692
+ medianPosition: number;
10693
+ /**
10694
+ * Number of other distinct pages opened at position 5 or later for this query.
10695
+ * @min 0
10696
+ */
10697
+ otherPagesCount: number;
10698
+ }
10542
10699
  export type SiteInsightsQueryEventsAggregationResult = List & {
10700
+ /**
10701
+ * Returned when requested. Null if the site has no recorded ranked search opens.
10702
+ * @format date-time
10703
+ */
10704
+ searchRankTrackingStart?: string | null;
10705
+ /** Returned when requested. Queries with no page opens are omitted. */
10706
+ lowSearchResultPages?: SiteInsightsLowSearchResultPage[];
10543
10707
  columns: SiteInsightsQueryEventsValues[];
10544
10708
  };
10545
10709
  /** A segment of visitors with the same characteristics. */
@@ -10957,8 +11121,40 @@ export type BackOfficeSite = Site & {
10957
11121
  /** ID of the organization owning this site */
10958
11122
  organization: string;
10959
11123
  };
10960
- /** Site Content */
10961
- export interface PublishedSiteContent {
11124
+ /**
11125
+ * Live content
11126
+ * Site content at the live revision of its spaces.
11127
+ */
11128
+ export type PublishedSiteContentLive = object;
11129
+ /**
11130
+ * Content at a revision
11131
+ * Site content previewed at a revision of its space.
11132
+ */
11133
+ export interface PublishedSiteContentAtRevision {
11134
+ /** Identifier of the revision being previewed in this URL. */
11135
+ revision: string;
11136
+ }
11137
+ /**
11138
+ * Content in a change request
11139
+ * Site content previewed in a change request of its space.
11140
+ */
11141
+ export interface PublishedSiteContentInChangeRequest {
11142
+ /** Identifier of the change request being previewed in this URL. */
11143
+ changeRequest: string;
11144
+ }
11145
+ /**
11146
+ * Content at a site revision
11147
+ * Site content previewed at a site revision: each space is read at the revision the site revision pins, and live when it pins none.
11148
+ */
11149
+ export interface PublishedSiteContentAtSiteRevision {
11150
+ /** Identifier of the site revision being previewed in this URL. */
11151
+ siteRevision: string;
11152
+ }
11153
+ /**
11154
+ * Site Content
11155
+ * Content a site URL resolves to: live, or previewed at a space revision, a change request or a site revision named in the URL. At most one of `revision`, `changeRequest` and `siteRevision` is returned.
11156
+ */
11157
+ export type PublishedSiteContent = {
10962
11158
  /** ID of the site matching. */
10963
11159
  site: string;
10964
11160
  /** ID of the site-section matching. */
@@ -10967,10 +11163,6 @@ export interface PublishedSiteContent {
10967
11163
  siteSpace: string;
10968
11164
  /** ID of the space matching. */
10969
11165
  space: string;
10970
- /** Identifier of the change request being previewed in this URL. */
10971
- changeRequest?: string;
10972
- /** Identifier of the revision being previewed in this URL. */
10973
- revision?: string;
10974
11166
  /** Path of the content relative to the input URL being resolved */
10975
11167
  pathname: string;
10976
11168
  /** Prefix of the path in the input URL being resolved */
@@ -10991,7 +11183,7 @@ export interface PublishedSiteContent {
10991
11183
  canonicalUrl: string;
10992
11184
  /** Whether the URL is a preview URL */
10993
11185
  preview?: boolean;
10994
- }
11186
+ } & (PublishedSiteContentLive | PublishedSiteContentAtRevision | PublishedSiteContentInChangeRequest | PublishedSiteContentAtSiteRevision);
10995
11187
  export type PublishedSiteContentLookup = PublishedContentRedirect | PublishedSiteContent;
10996
11188
  /** An object that describes the payload of site visitor info. It can include a jwt token with signed claims and/or a record of its unsigned claims. */
10997
11189
  export interface SiteVisitorPayload {
@@ -12284,6 +12476,11 @@ export interface APIChannelOrganizationDomains {
12284
12476
  channel: "organization-domains";
12285
12477
  organization: string;
12286
12478
  }
12479
+ /** Subscription channel for changes in the identity provider connections of an organization. */
12480
+ export interface APIChannelOrganizationIdPConnections {
12481
+ channel: "organization-idp-connections";
12482
+ organization: string;
12483
+ }
12287
12484
  /** Subscription channel for changes in custom fonts in an organization. */
12288
12485
  export interface APIChannelOrganizationCustomFonts {
12289
12486
  channel: "organization-fonts";
@@ -16310,6 +16507,153 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
16310
16507
  * @secure
16311
16508
  */
16312
16509
  deleteMemberFromOrganizationTeamById: (organizationId: EntityId, teamId: EntityId, userId: string, params?: RequestParams) => Promise<HttpResponse<void, any>>;
16510
+ /**
16511
+ * No description
16512
+ *
16513
+ * @tags sso
16514
+ * @name ListOrganizationIdPConnections
16515
+ * @summary List identity provider connections
16516
+ * @request GET:/orgs/{organizationId}/idp-connections
16517
+ * @secure
16518
+ */
16519
+ listOrganizationIdPConnections: (organizationId: EntityId, params?: RequestParams) => Promise<HttpResponse<List & {
16520
+ items: OrganizationIdPConnection[];
16521
+ }, {
16522
+ error: {
16523
+ /** @format int32 */
16524
+ code: 404;
16525
+ message: string;
16526
+ };
16527
+ }>>;
16528
+ /**
16529
+ * @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.
16530
+ *
16531
+ * @tags sso
16532
+ * @name CreateOrganizationIdPConnection
16533
+ * @summary Create an identity provider connection
16534
+ * @request POST:/orgs/{organizationId}/idp-connections
16535
+ * @secure
16536
+ */
16537
+ createOrganizationIdPConnection: (organizationId: EntityId, data: {
16538
+ /** Name of the identity provider connection, shown to organization admins. */
16539
+ label: IdPConnectionLabel;
16540
+ /** Identity provider behind the connection. */
16541
+ provider: IdPConnectionProvider;
16542
+ /** Role given to people on their first sign-in through the provider. null adds them as guests, "default" uses the organization's default role, and "domain" uses the role of the verified email domain they signed in with. */
16543
+ defaultRole?: SAMLProviderDefaultRole;
16544
+ defaultTeam?: string;
16545
+ defaultTeamFromDomain?: boolean;
16546
+ ssoURL?: URL;
16547
+ entityID?: SAMLProviderEntityID;
16548
+ certificate?: SAMLProviderCertificate;
16549
+ /** 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. */
16550
+ domains?: SAMLProviderDomains;
16551
+ }, params?: RequestParams) => Promise<HttpResponse<OrganizationIdPConnection, {
16552
+ error: {
16553
+ /** @format int32 */
16554
+ code: 400;
16555
+ message: string;
16556
+ };
16557
+ } | {
16558
+ error: {
16559
+ /** @format int32 */
16560
+ code: 404;
16561
+ message: string;
16562
+ };
16563
+ }>>;
16564
+ /**
16565
+ * No description
16566
+ *
16567
+ * @tags sso
16568
+ * @name GetOrganizationIdPConnection
16569
+ * @summary Get an identity provider connection by its ID
16570
+ * @request GET:/orgs/{organizationId}/idp-connections/{idpConnectionId}
16571
+ * @secure
16572
+ */
16573
+ getOrganizationIdPConnection: (organizationId: EntityId, idpConnectionId: string, params?: RequestParams) => Promise<HttpResponse<OrganizationIdPConnection, {
16574
+ error: {
16575
+ /** @format int32 */
16576
+ code: 404;
16577
+ message: string;
16578
+ };
16579
+ }>>;
16580
+ /**
16581
+ * @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.
16582
+ *
16583
+ * @tags sso
16584
+ * @name UpdateOrganizationIdPConnection
16585
+ * @summary Update an identity provider connection
16586
+ * @request PATCH:/orgs/{organizationId}/idp-connections/{idpConnectionId}
16587
+ * @secure
16588
+ */
16589
+ updateOrganizationIdPConnection: (organizationId: EntityId, idpConnectionId: string, data: {
16590
+ /** Name of the identity provider connection, shown to organization admins. */
16591
+ label?: IdPConnectionLabel;
16592
+ /** Identity provider behind the connection. */
16593
+ provider?: IdPConnectionProvider;
16594
+ /** Role given to people on their first sign-in through the provider. null adds them as guests, "default" uses the organization's default role, and "domain" uses the role of the verified email domain they signed in with. */
16595
+ defaultRole?: SAMLProviderDefaultRole;
16596
+ /** Team to add members to, or null to add them to none. */
16597
+ defaultTeam?: string | null;
16598
+ defaultTeamFromDomain?: boolean;
16599
+ /** Let the identity provider decide each member's teams through SCIM. Only accepted while SCIM is set up. */
16600
+ defaultTeamFromSCIM?: boolean;
16601
+ ssoURL?: URL;
16602
+ entityID?: SAMLProviderEntityID;
16603
+ certificate?: SAMLProviderCertificate;
16604
+ /** 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. */
16605
+ domains?: SAMLProviderDomains;
16606
+ }, params?: RequestParams) => Promise<HttpResponse<OrganizationIdPConnection, {
16607
+ error: {
16608
+ /** @format int32 */
16609
+ code: 400;
16610
+ message: string;
16611
+ };
16612
+ } | {
16613
+ error: {
16614
+ /** @format int32 */
16615
+ code: 404;
16616
+ message: string;
16617
+ };
16618
+ }>>;
16619
+ /**
16620
+ * @description Deletes a connection. Members can no longer sign in through it and its SCIM token stops working immediately. Deleting the last connection with SAML turns off Enforce SSO login.
16621
+ *
16622
+ * @tags sso
16623
+ * @name DeleteOrganizationIdPConnection
16624
+ * @summary Delete an identity provider connection
16625
+ * @request DELETE:/orgs/{organizationId}/idp-connections/{idpConnectionId}
16626
+ * @secure
16627
+ */
16628
+ deleteOrganizationIdPConnection: (organizationId: EntityId, idpConnectionId: string, params?: RequestParams) => Promise<HttpResponse<void, {
16629
+ error: {
16630
+ /** @format int32 */
16631
+ code: 404;
16632
+ message: string;
16633
+ };
16634
+ }>>;
16635
+ /**
16636
+ * @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.
16637
+ *
16638
+ * @tags sso
16639
+ * @name RotateOrganizationIdPConnectionToken
16640
+ * @summary Rotate the SCIM token of an identity provider connection
16641
+ * @request POST:/orgs/{organizationId}/idp-connections/{idpConnectionId}/token
16642
+ * @secure
16643
+ */
16644
+ rotateOrganizationIdPConnectionToken: (organizationId: EntityId, idpConnectionId: string, params?: RequestParams) => Promise<HttpResponse<OrganizationIdPConnectionWithToken, {
16645
+ error: {
16646
+ /** @format int32 */
16647
+ code: 400;
16648
+ message: string;
16649
+ };
16650
+ } | {
16651
+ error: {
16652
+ /** @format int32 */
16653
+ code: 404;
16654
+ message: string;
16655
+ };
16656
+ }>>;
16313
16657
  /**
16314
16658
  * @description Optionally adds invitees to teams using teamIds. Team owners may invite organization Guests into teams they own. Other organization invitations require an organization admin.
16315
16659
  *
@@ -18718,6 +19062,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
18718
19062
  searchSiteContent: (organizationId: EntityId, siteId: string, data: {
18719
19063
  /** @maxLength 512 */
18720
19064
  query: string;
19065
+ /** Client-generated 128-bit identifier for a search request, encoded as hexadecimal. */
19066
+ searchId?: SiteSearchId;
18721
19067
  } & ({
18722
19068
  /** Define the scope of the search. */
18723
19069
  scope: SiteSearchScope;
@@ -19857,6 +20203,206 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
19857
20203
  message: string;
19858
20204
  };
19859
20205
  }>>;
20206
+ /**
20207
+ * @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.
20208
+ *
20209
+ * @tags sites
20210
+ * @name GetRevisionInSiteRevision
20211
+ * @summary Get the content revision of a space at a site revision
20212
+ * @request GET:/orgs/{organizationId}/sites/{siteId}/revisions/{siteRevisionId}/content/{spaceId}
20213
+ * @secure
20214
+ */
20215
+ getRevisionInSiteRevision: (organizationId: EntityId, siteId: string, siteRevisionId: string, spaceId: EntityId, query?: {
20216
+ /**
20217
+ * If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
20218
+ * @default true
20219
+ */
20220
+ metadata?: boolean;
20221
+ /**
20222
+ * If `false` is passed, content will not be computed
20223
+ * @default true
20224
+ */
20225
+ computed?: boolean;
20226
+ }, params?: RequestParams) => Promise<HttpResponse<Revision, any>>;
20227
+ /**
20228
+ * @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.
20229
+ *
20230
+ * @tags sites
20231
+ * @name GetPageInSiteRevision
20232
+ * @summary Get a page of a space at a site revision
20233
+ * @request GET:/orgs/{organizationId}/sites/{siteId}/revisions/{siteRevisionId}/content/{spaceId}/page/{pageId}
20234
+ * @secure
20235
+ */
20236
+ getPageInSiteRevision: (organizationId: EntityId, siteId: string, siteRevisionId: string, spaceId: EntityId, pageId: EntityId, query?: {
20237
+ /** Output format for the content. */
20238
+ format?: "document" | "markdown";
20239
+ /**
20240
+ * Controls how content references are formatted in markdown output. Ignored unless `format=markdown`.
20241
+ *
20242
+ * - `relative`: Format page references as relative links from the current page. Other references might not be handled.
20243
+ * - `stable`: Format content references as stable idempotent refs containing their identifiers.
20244
+ * @default "relative"
20245
+ */
20246
+ "format.markdown.refs"?: "relative" | "stable";
20247
+ /**
20248
+ * Controls whether the document should be evaluated.
20249
+ * - When set to `true`, the entire document will be evaluated.
20250
+ * - When set to `deterministic-only`, only expressions that depend
20251
+ * exclusively on deterministic inputs will be evaluated.
20252
+ * @default false
20253
+ */
20254
+ evaluated?: boolean | "deterministic-only";
20255
+ /**
20256
+ * Controls whether references to other content are resolved and expanded.
20257
+ * - When set to `false`, references are preserved, including reusable content includes in Markdown.
20258
+ * - When set to `true`, all supported content references are expanded.
20259
+ * - When set to `reusable-contents`, only reusable content references are expanded.
20260
+ * When omitted, Markdown responses expand all supported content references, while document responses preserve them.
20261
+ */
20262
+ dereferenced?: boolean | "reusable-contents";
20263
+ /**
20264
+ * If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
20265
+ * @default true
20266
+ */
20267
+ metadata?: boolean;
20268
+ /**
20269
+ * If `false` is passed, content will not be computed
20270
+ * @default true
20271
+ */
20272
+ computed?: boolean;
20273
+ }, params?: RequestParams) => Promise<HttpResponse<RevisionPage, any>>;
20274
+ /**
20275
+ * @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.
20276
+ *
20277
+ * @tags sites
20278
+ * @name ListPageMetaLinksInSiteRevision
20279
+ * @summary List the meta links of a page at a site revision
20280
+ * @request GET:/orgs/{organizationId}/sites/{siteId}/revisions/{siteRevisionId}/content/{spaceId}/page/{pageId}/meta-links
20281
+ * @secure
20282
+ */
20283
+ listPageMetaLinksInSiteRevision: (organizationId: EntityId, siteId: string, siteRevisionId: string, spaceId: EntityId, pageId: EntityId, params?: RequestParams) => Promise<HttpResponse<RevisionPageMetaLinks, any>>;
20284
+ /**
20285
+ * @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.
20286
+ *
20287
+ * @tags sites
20288
+ * @name GetPageByPathInSiteRevision
20289
+ * @summary Get a page of a space by its path at a site revision
20290
+ * @request GET:/orgs/{organizationId}/sites/{siteId}/revisions/{siteRevisionId}/content/{spaceId}/path/{pagePath}
20291
+ * @secure
20292
+ */
20293
+ getPageByPathInSiteRevision: (organizationId: EntityId, siteId: string, siteRevisionId: string, spaceId: EntityId, pagePath: string, query?: {
20294
+ /** Output format for the content. */
20295
+ format?: "document" | "markdown";
20296
+ /**
20297
+ * Controls how content references are formatted in markdown output. Ignored unless `format=markdown`.
20298
+ *
20299
+ * - `relative`: Format page references as relative links from the current page. Other references might not be handled.
20300
+ * - `stable`: Format content references as stable idempotent refs containing their identifiers.
20301
+ * @default "relative"
20302
+ */
20303
+ "format.markdown.refs"?: "relative" | "stable";
20304
+ /**
20305
+ * Controls whether the document should be evaluated.
20306
+ * - When set to `true`, the entire document will be evaluated.
20307
+ * - When set to `deterministic-only`, only expressions that depend
20308
+ * exclusively on deterministic inputs will be evaluated.
20309
+ * @default false
20310
+ */
20311
+ evaluated?: boolean | "deterministic-only";
20312
+ /**
20313
+ * Controls whether references to other content are resolved and expanded.
20314
+ * - When set to `false`, references are preserved, including reusable content includes in Markdown.
20315
+ * - When set to `true`, all supported content references are expanded.
20316
+ * - When set to `reusable-contents`, only reusable content references are expanded.
20317
+ * When omitted, Markdown responses expand all supported content references, while document responses preserve them.
20318
+ */
20319
+ dereferenced?: boolean | "reusable-contents";
20320
+ /**
20321
+ * If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
20322
+ * @default true
20323
+ */
20324
+ metadata?: boolean;
20325
+ /**
20326
+ * If `true` is passed, mutable Git metadata may be served from a cache.
20327
+ * @default false
20328
+ */
20329
+ cachedMetadata?: boolean;
20330
+ /**
20331
+ * If `false` is passed, content will not be computed
20332
+ * @default true
20333
+ */
20334
+ computed?: boolean;
20335
+ }, params?: RequestParams) => Promise<HttpResponse<RevisionPageDocument | RevisionPageGroup, any>>;
20336
+ /**
20337
+ * @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.
20338
+ *
20339
+ * @tags sites
20340
+ * @name GetReusableContentDocumentInSiteRevision
20341
+ * @summary Get the document of a reusable content at a site revision
20342
+ * @request GET:/orgs/{organizationId}/sites/{siteId}/revisions/{siteRevisionId}/content/{spaceId}/reusable-contents/{reusableContentId}/document
20343
+ * @secure
20344
+ */
20345
+ getReusableContentDocumentInSiteRevision: (organizationId: EntityId, siteId: string, siteRevisionId: string, spaceId: EntityId, reusableContentId: EntityId, query?: {
20346
+ /**
20347
+ * Controls whether the document should be evaluated.
20348
+ * - When set to `true`, the entire document will be evaluated.
20349
+ * - When set to `deterministic-only`, only expressions that depend
20350
+ * exclusively on deterministic inputs will be evaluated.
20351
+ * @default false
20352
+ */
20353
+ evaluated?: boolean | "deterministic-only";
20354
+ /**
20355
+ * Controls whether references to other content are resolved and expanded.
20356
+ * - When set to `false`, references are preserved, including reusable content includes in Markdown.
20357
+ * - When set to `true`, all supported content references are expanded.
20358
+ * - When set to `reusable-contents`, only reusable content references are expanded.
20359
+ * When omitted, Markdown responses expand all supported content references, while document responses preserve them.
20360
+ */
20361
+ dereferenced?: boolean | "reusable-contents";
20362
+ }, params?: RequestParams) => Promise<HttpResponse<JSONDocument, any>>;
20363
+ /**
20364
+ * @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.
20365
+ *
20366
+ * @tags sites
20367
+ * @name GetPageDocumentInSiteRevision
20368
+ * @summary Get the document of a page in a space at a site revision
20369
+ * @request GET:/orgs/{organizationId}/sites/{siteId}/revisions/{siteRevisionId}/content/{spaceId}/page/{pageId}/document
20370
+ * @secure
20371
+ */
20372
+ getPageDocumentInSiteRevision: (organizationId: EntityId, siteId: string, siteRevisionId: string, spaceId: EntityId, pageId: EntityId, query?: {
20373
+ /**
20374
+ * Controls whether the document should be evaluated.
20375
+ * - When set to `true`, the entire document will be evaluated.
20376
+ * - When set to `deterministic-only`, only expressions that depend
20377
+ * exclusively on deterministic inputs will be evaluated.
20378
+ * @default false
20379
+ */
20380
+ evaluated?: boolean | "deterministic-only";
20381
+ /**
20382
+ * Controls whether references to other content are resolved and expanded.
20383
+ * - When set to `false`, references are preserved, including reusable content includes in Markdown.
20384
+ * - When set to `true`, all supported content references are expanded.
20385
+ * - When set to `reusable-contents`, only reusable content references are expanded.
20386
+ * When omitted, Markdown responses expand all supported content references, while document responses preserve them.
20387
+ */
20388
+ dereferenced?: boolean | "reusable-contents";
20389
+ }, params?: RequestParams) => Promise<HttpResponse<JSONDocument, any>>;
20390
+ /**
20391
+ * @description Retrieves the content of the OpenAPI spec version the site revision pins. A spec the site revision does not record returns 404.
20392
+ *
20393
+ * @tags sites
20394
+ * @name GetOpenApiSpecContentInSiteRevision
20395
+ * @summary Get the content of an OpenAPI spec at a site revision
20396
+ * @request GET:/orgs/{organizationId}/sites/{siteId}/revisions/{siteRevisionId}/openapi/{specSlug}/content
20397
+ * @secure
20398
+ */
20399
+ getOpenApiSpecContentInSiteRevision: (organizationId: EntityId, siteId: string, siteRevisionId: string, specSlug: string, params?: RequestParams) => Promise<HttpResponse<OpenAPISpecContent, {
20400
+ error: {
20401
+ /** @format int32 */
20402
+ code: 404;
20403
+ message: string;
20404
+ };
20405
+ }>>;
19860
20406
  /**
19861
20407
  * No description
19862
20408
  *