@gitbook/api 0.212.0 → 0.213.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 +517 -52
- package/dist/constants.d.ts +7 -4
- package/dist/index.cjs +134 -19
- package/dist/index.js +130 -19
- package/package.json +1 -1
- package/spec/openapi.json +1170 -145
- package/spec/openapi.yaml +711 -114
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
|
}
|
|
@@ -4711,7 +4722,7 @@ export interface ChangeRequestContentChangeDeletePage {
|
|
|
4711
4722
|
page: string;
|
|
4712
4723
|
}
|
|
4713
4724
|
/**
|
|
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.
|
|
4725
|
+
* 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
4726
|
* @example {"operation":"revert_page","page":"page_id"}
|
|
4716
4727
|
*/
|
|
4717
4728
|
export interface ChangeRequestContentChangeRevertPage {
|
|
@@ -6035,7 +6046,7 @@ export interface Site {
|
|
|
6035
6046
|
/** Can the user edit the adaptive schema of the site. */
|
|
6036
6047
|
editAdaptiveSchema: boolean;
|
|
6037
6048
|
};
|
|
6038
|
-
/** Whether visitors can preview change requests and historical revisions on the published site. Previews inside GitBook are not affected. */
|
|
6049
|
+
/** 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
6050
|
publicChangeRequestPreviews: boolean;
|
|
6040
6051
|
/** Whether the site is live or not. If true, the site is accessible to the audience defined by the visibility setting. */
|
|
6041
6052
|
published: boolean;
|
|
@@ -6808,6 +6819,111 @@ export interface UpdateMembersInOrganizationTeam {
|
|
|
6808
6819
|
memberships?: Record<string, TeamMember>;
|
|
6809
6820
|
remove?: string[];
|
|
6810
6821
|
}
|
|
6822
|
+
/**
|
|
6823
|
+
* Name of the identity provider connection, shown to organization admins.
|
|
6824
|
+
* @minLength 1
|
|
6825
|
+
* @maxLength 100
|
|
6826
|
+
*/
|
|
6827
|
+
export type IdPConnectionLabel = string;
|
|
6828
|
+
/** 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. */
|
|
6829
|
+
export type SAMLProviderDefaultRole = MemberRole | null | "default" | "domain";
|
|
6830
|
+
/** @maxLength 1024 */
|
|
6831
|
+
export type SAMLProviderEntityID = string;
|
|
6832
|
+
/** @maxLength 10000 */
|
|
6833
|
+
export type SAMLProviderCertificate = string;
|
|
6834
|
+
/** An email domain of a SAML provider, with its verification state in the organization. */
|
|
6835
|
+
export interface SAMLProviderDomain {
|
|
6836
|
+
domain: string;
|
|
6837
|
+
/**
|
|
6838
|
+
* State of a SAML provider's email domain in the organization.
|
|
6839
|
+
* - `verified`: People with an email on this domain can sign in through the provider.
|
|
6840
|
+
* - `pending`, `error`, `legacy`: The domain isn't verified yet, so it doesn't let anyone sign in.
|
|
6841
|
+
* - `removed`: The organization no longer has this domain.
|
|
6842
|
+
*/
|
|
6843
|
+
status: SAMLProviderDomainStatus;
|
|
6844
|
+
}
|
|
6845
|
+
/** A connection to an identity provider, which signs organization members in with SAML and provisions them with SCIM. */
|
|
6846
|
+
export interface OrganizationIdPConnection {
|
|
6847
|
+
/** The object type, which is always "idp-connection" */
|
|
6848
|
+
object: "idp-connection";
|
|
6849
|
+
/** Unique identifier of the connection */
|
|
6850
|
+
id: string;
|
|
6851
|
+
/** Name of the identity provider connection, shown to organization admins. */
|
|
6852
|
+
label: IdPConnectionLabel;
|
|
6853
|
+
/** Identity provider behind the connection. */
|
|
6854
|
+
provider: IdPConnectionProvider;
|
|
6855
|
+
/**
|
|
6856
|
+
* Status of the connection.
|
|
6857
|
+
* - `pending`: GitBook hasn't seen the identity provider use the connection yet.
|
|
6858
|
+
* - `ready`: A member signed in with SAML through the connection, or the identity provider sent an authenticated SCIM request.
|
|
6859
|
+
*/
|
|
6860
|
+
status: IdPConnectionStatus;
|
|
6861
|
+
/** 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. */
|
|
6862
|
+
defaultRole: SAMLProviderDefaultRole;
|
|
6863
|
+
defaultTeam?: OrganizationTeam;
|
|
6864
|
+
/** Whether people join the team of the verified email domain they signed in with, instead of `defaultTeam`. */
|
|
6865
|
+
defaultTeamFromDomain: boolean;
|
|
6866
|
+
/** SAML sign-in through the connection. */
|
|
6867
|
+
saml: {
|
|
6868
|
+
/** The identity provider's single sign-on URL. Absent until it is set. */
|
|
6869
|
+
ssoURL?: URL;
|
|
6870
|
+
/** Entity ID of the identity provider. Absent until it is set. */
|
|
6871
|
+
entityID?: SAMLProviderEntityID;
|
|
6872
|
+
/** X.509 certificate of the identity provider. Absent until it is set. */
|
|
6873
|
+
certificate?: SAMLProviderCertificate;
|
|
6874
|
+
/** Email domains the connection signs people in for. Absent on connections created before domains existed, which accept any email. */
|
|
6875
|
+
domains?: SAMLProviderDomain[];
|
|
6876
|
+
/** Service provider values to configure in the identity provider. */
|
|
6877
|
+
service: {
|
|
6878
|
+
/**
|
|
6879
|
+
* Assertion Consumer Service (ACS) URL
|
|
6880
|
+
* @format uri
|
|
6881
|
+
*/
|
|
6882
|
+
acsURL: string;
|
|
6883
|
+
/**
|
|
6884
|
+
* Start URL for the identity provider
|
|
6885
|
+
* @format uri
|
|
6886
|
+
*/
|
|
6887
|
+
startURL: string;
|
|
6888
|
+
entityID: SAMLProviderEntityID;
|
|
6889
|
+
};
|
|
6890
|
+
/** Date of the last successful sign-in through the connection */
|
|
6891
|
+
lastUsedAt?: Timestamp;
|
|
6892
|
+
};
|
|
6893
|
+
/** SCIM provisioning through the connection. Absent on connections created before SCIM, until their SCIM token is created. */
|
|
6894
|
+
scim?: {
|
|
6895
|
+
/** SCIM base URL to configure in the identity provider */
|
|
6896
|
+
baseURL: URL;
|
|
6897
|
+
/** Last characters of the current token, to identify it */
|
|
6898
|
+
tokenHint: string;
|
|
6899
|
+
/** Date the current token was created */
|
|
6900
|
+
tokenCreatedAt: Timestamp;
|
|
6901
|
+
/** Date of the last request authenticated with the token */
|
|
6902
|
+
lastUsedAt?: Timestamp;
|
|
6903
|
+
};
|
|
6904
|
+
/** Date of creation */
|
|
6905
|
+
createdAt: Timestamp;
|
|
6906
|
+
/** Date of the last update */
|
|
6907
|
+
updatedAt: Timestamp;
|
|
6908
|
+
/** URLs associated with the object */
|
|
6909
|
+
urls: {
|
|
6910
|
+
/** URL of the connection in the API */
|
|
6911
|
+
location: URL;
|
|
6912
|
+
};
|
|
6913
|
+
}
|
|
6914
|
+
/**
|
|
6915
|
+
* 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.
|
|
6916
|
+
* @maxItems 50
|
|
6917
|
+
* @uniqueItems true
|
|
6918
|
+
*/
|
|
6919
|
+
export type SAMLProviderDomains = string[];
|
|
6920
|
+
/** An identity provider connection, with the SCIM token the request created. The token can't be retrieved again. */
|
|
6921
|
+
export interface OrganizationIdPConnectionWithToken {
|
|
6922
|
+
/** A connection to an identity provider, which signs organization members in with SAML and provisions them with SCIM. */
|
|
6923
|
+
connection: OrganizationIdPConnection;
|
|
6924
|
+
/** SCIM bearer token to configure in the identity provider. */
|
|
6925
|
+
token: string;
|
|
6926
|
+
}
|
|
6811
6927
|
/**
|
|
6812
6928
|
* User email
|
|
6813
6929
|
* @format email
|
|
@@ -7288,23 +7404,6 @@ export interface InstalledIntegration {
|
|
|
7288
7404
|
* @maxLength 30
|
|
7289
7405
|
*/
|
|
7290
7406
|
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
7407
|
export interface OrganizationSAMLProvider {
|
|
7309
7408
|
/** Type of Object, always equals to "saml-provider" */
|
|
7310
7409
|
object: "saml-provider";
|
|
@@ -7352,12 +7451,6 @@ export interface OrganizationSAMLProvider {
|
|
|
7352
7451
|
location: string;
|
|
7353
7452
|
};
|
|
7354
7453
|
}
|
|
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
7454
|
/** Role given to people who join through the domain. "default" uses the organization's default role, and "guest" adds them as guests. */
|
|
7362
7455
|
export type OrganizationDomainDefaultRole = MemberRole | "default" | "guest";
|
|
7363
7456
|
/** An email domain of an organization. */
|
|
@@ -10957,8 +11050,40 @@ export type BackOfficeSite = Site & {
|
|
|
10957
11050
|
/** ID of the organization owning this site */
|
|
10958
11051
|
organization: string;
|
|
10959
11052
|
};
|
|
10960
|
-
/**
|
|
10961
|
-
|
|
11053
|
+
/**
|
|
11054
|
+
* Live content
|
|
11055
|
+
* Site content at the live revision of its spaces.
|
|
11056
|
+
*/
|
|
11057
|
+
export type PublishedSiteContentLive = object;
|
|
11058
|
+
/**
|
|
11059
|
+
* Content at a revision
|
|
11060
|
+
* Site content previewed at a revision of its space.
|
|
11061
|
+
*/
|
|
11062
|
+
export interface PublishedSiteContentAtRevision {
|
|
11063
|
+
/** Identifier of the revision being previewed in this URL. */
|
|
11064
|
+
revision: string;
|
|
11065
|
+
}
|
|
11066
|
+
/**
|
|
11067
|
+
* Content in a change request
|
|
11068
|
+
* Site content previewed in a change request of its space.
|
|
11069
|
+
*/
|
|
11070
|
+
export interface PublishedSiteContentInChangeRequest {
|
|
11071
|
+
/** Identifier of the change request being previewed in this URL. */
|
|
11072
|
+
changeRequest: string;
|
|
11073
|
+
}
|
|
11074
|
+
/**
|
|
11075
|
+
* Content at a site revision
|
|
11076
|
+
* Site content previewed at a site revision: each space is read at the revision the site revision pins, and live when it pins none.
|
|
11077
|
+
*/
|
|
11078
|
+
export interface PublishedSiteContentAtSiteRevision {
|
|
11079
|
+
/** Identifier of the site revision being previewed in this URL. */
|
|
11080
|
+
siteRevision: string;
|
|
11081
|
+
}
|
|
11082
|
+
/**
|
|
11083
|
+
* Site Content
|
|
11084
|
+
* 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.
|
|
11085
|
+
*/
|
|
11086
|
+
export type PublishedSiteContent = {
|
|
10962
11087
|
/** ID of the site matching. */
|
|
10963
11088
|
site: string;
|
|
10964
11089
|
/** ID of the site-section matching. */
|
|
@@ -10967,10 +11092,6 @@ export interface PublishedSiteContent {
|
|
|
10967
11092
|
siteSpace: string;
|
|
10968
11093
|
/** ID of the space matching. */
|
|
10969
11094
|
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
11095
|
/** Path of the content relative to the input URL being resolved */
|
|
10975
11096
|
pathname: string;
|
|
10976
11097
|
/** Prefix of the path in the input URL being resolved */
|
|
@@ -10991,7 +11112,7 @@ export interface PublishedSiteContent {
|
|
|
10991
11112
|
canonicalUrl: string;
|
|
10992
11113
|
/** Whether the URL is a preview URL */
|
|
10993
11114
|
preview?: boolean;
|
|
10994
|
-
}
|
|
11115
|
+
} & (PublishedSiteContentLive | PublishedSiteContentAtRevision | PublishedSiteContentInChangeRequest | PublishedSiteContentAtSiteRevision);
|
|
10995
11116
|
export type PublishedSiteContentLookup = PublishedContentRedirect | PublishedSiteContent;
|
|
10996
11117
|
/** 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
11118
|
export interface SiteVisitorPayload {
|
|
@@ -12284,6 +12405,11 @@ export interface APIChannelOrganizationDomains {
|
|
|
12284
12405
|
channel: "organization-domains";
|
|
12285
12406
|
organization: string;
|
|
12286
12407
|
}
|
|
12408
|
+
/** Subscription channel for changes in the identity provider connections of an organization. */
|
|
12409
|
+
export interface APIChannelOrganizationIdPConnections {
|
|
12410
|
+
channel: "organization-idp-connections";
|
|
12411
|
+
organization: string;
|
|
12412
|
+
}
|
|
12287
12413
|
/** Subscription channel for changes in custom fonts in an organization. */
|
|
12288
12414
|
export interface APIChannelOrganizationCustomFonts {
|
|
12289
12415
|
channel: "organization-fonts";
|
|
@@ -16310,6 +16436,145 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
16310
16436
|
* @secure
|
|
16311
16437
|
*/
|
|
16312
16438
|
deleteMemberFromOrganizationTeamById: (organizationId: EntityId, teamId: EntityId, userId: string, params?: RequestParams) => Promise<HttpResponse<void, any>>;
|
|
16439
|
+
/**
|
|
16440
|
+
* No description
|
|
16441
|
+
*
|
|
16442
|
+
* @tags sso
|
|
16443
|
+
* @name ListOrganizationIdPConnections
|
|
16444
|
+
* @summary List identity provider connections
|
|
16445
|
+
* @request GET:/orgs/{organizationId}/idp-connections
|
|
16446
|
+
* @secure
|
|
16447
|
+
*/
|
|
16448
|
+
listOrganizationIdPConnections: (organizationId: EntityId, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
16449
|
+
items: OrganizationIdPConnection[];
|
|
16450
|
+
}, {
|
|
16451
|
+
error: {
|
|
16452
|
+
/** @format int32 */
|
|
16453
|
+
code: 404;
|
|
16454
|
+
message: string;
|
|
16455
|
+
};
|
|
16456
|
+
}>>;
|
|
16457
|
+
/**
|
|
16458
|
+
* @description Creates a connection with its SAML service provider URLs and a SCIM token. The token is only returned in this response.
|
|
16459
|
+
*
|
|
16460
|
+
* @tags sso
|
|
16461
|
+
* @name CreateOrganizationIdPConnection
|
|
16462
|
+
* @summary Create an identity provider connection
|
|
16463
|
+
* @request POST:/orgs/{organizationId}/idp-connections
|
|
16464
|
+
* @secure
|
|
16465
|
+
*/
|
|
16466
|
+
createOrganizationIdPConnection: (organizationId: EntityId, data: {
|
|
16467
|
+
/** Name of the identity provider connection, shown to organization admins. */
|
|
16468
|
+
label: IdPConnectionLabel;
|
|
16469
|
+
/** Identity provider behind the connection. */
|
|
16470
|
+
provider: IdPConnectionProvider;
|
|
16471
|
+
/** 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. */
|
|
16472
|
+
defaultRole?: SAMLProviderDefaultRole;
|
|
16473
|
+
defaultTeam?: string;
|
|
16474
|
+
defaultTeamFromDomain?: boolean;
|
|
16475
|
+
ssoURL?: URL;
|
|
16476
|
+
entityID?: SAMLProviderEntityID;
|
|
16477
|
+
certificate?: SAMLProviderCertificate;
|
|
16478
|
+
/** 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
|
+
domains?: SAMLProviderDomains;
|
|
16480
|
+
}, params?: RequestParams) => Promise<HttpResponse<OrganizationIdPConnectionWithToken, {
|
|
16481
|
+
error: {
|
|
16482
|
+
/** @format int32 */
|
|
16483
|
+
code: 400;
|
|
16484
|
+
message: string;
|
|
16485
|
+
};
|
|
16486
|
+
} | {
|
|
16487
|
+
error: {
|
|
16488
|
+
/** @format int32 */
|
|
16489
|
+
code: 404;
|
|
16490
|
+
message: string;
|
|
16491
|
+
};
|
|
16492
|
+
}>>;
|
|
16493
|
+
/**
|
|
16494
|
+
* No description
|
|
16495
|
+
*
|
|
16496
|
+
* @tags sso
|
|
16497
|
+
* @name GetOrganizationIdPConnection
|
|
16498
|
+
* @summary Get an identity provider connection by its ID
|
|
16499
|
+
* @request GET:/orgs/{organizationId}/idp-connections/{idpConnectionId}
|
|
16500
|
+
* @secure
|
|
16501
|
+
*/
|
|
16502
|
+
getOrganizationIdPConnection: (organizationId: EntityId, idpConnectionId: string, params?: RequestParams) => Promise<HttpResponse<OrganizationIdPConnection, {
|
|
16503
|
+
error: {
|
|
16504
|
+
/** @format int32 */
|
|
16505
|
+
code: 404;
|
|
16506
|
+
message: string;
|
|
16507
|
+
};
|
|
16508
|
+
}>>;
|
|
16509
|
+
/**
|
|
16510
|
+
* No description
|
|
16511
|
+
*
|
|
16512
|
+
* @tags sso
|
|
16513
|
+
* @name UpdateOrganizationIdPConnection
|
|
16514
|
+
* @summary Update an identity provider connection
|
|
16515
|
+
* @request PATCH:/orgs/{organizationId}/idp-connections/{idpConnectionId}
|
|
16516
|
+
* @secure
|
|
16517
|
+
*/
|
|
16518
|
+
updateOrganizationIdPConnection: (organizationId: EntityId, idpConnectionId: string, data: {
|
|
16519
|
+
/** Name of the identity provider connection, shown to organization admins. */
|
|
16520
|
+
label?: IdPConnectionLabel;
|
|
16521
|
+
/** Identity provider behind the connection. */
|
|
16522
|
+
provider?: IdPConnectionProvider;
|
|
16523
|
+
/** 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. */
|
|
16524
|
+
defaultRole?: SAMLProviderDefaultRole;
|
|
16525
|
+
/** Team to add members to, or null to add them to none. */
|
|
16526
|
+
defaultTeam?: string | null;
|
|
16527
|
+
defaultTeamFromDomain?: boolean;
|
|
16528
|
+
ssoURL?: URL;
|
|
16529
|
+
entityID?: SAMLProviderEntityID;
|
|
16530
|
+
certificate?: SAMLProviderCertificate;
|
|
16531
|
+
/** 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. */
|
|
16532
|
+
domains?: SAMLProviderDomains;
|
|
16533
|
+
}, params?: RequestParams) => Promise<HttpResponse<OrganizationIdPConnection, {
|
|
16534
|
+
error: {
|
|
16535
|
+
/** @format int32 */
|
|
16536
|
+
code: 400;
|
|
16537
|
+
message: string;
|
|
16538
|
+
};
|
|
16539
|
+
} | {
|
|
16540
|
+
error: {
|
|
16541
|
+
/** @format int32 */
|
|
16542
|
+
code: 404;
|
|
16543
|
+
message: string;
|
|
16544
|
+
};
|
|
16545
|
+
}>>;
|
|
16546
|
+
/**
|
|
16547
|
+
* @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.
|
|
16548
|
+
*
|
|
16549
|
+
* @tags sso
|
|
16550
|
+
* @name DeleteOrganizationIdPConnection
|
|
16551
|
+
* @summary Delete an identity provider connection
|
|
16552
|
+
* @request DELETE:/orgs/{organizationId}/idp-connections/{idpConnectionId}
|
|
16553
|
+
* @secure
|
|
16554
|
+
*/
|
|
16555
|
+
deleteOrganizationIdPConnection: (organizationId: EntityId, idpConnectionId: string, params?: RequestParams) => Promise<HttpResponse<void, {
|
|
16556
|
+
error: {
|
|
16557
|
+
/** @format int32 */
|
|
16558
|
+
code: 404;
|
|
16559
|
+
message: string;
|
|
16560
|
+
};
|
|
16561
|
+
}>>;
|
|
16562
|
+
/**
|
|
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.
|
|
16564
|
+
*
|
|
16565
|
+
* @tags sso
|
|
16566
|
+
* @name RotateOrganizationIdPConnectionToken
|
|
16567
|
+
* @summary Replace the SCIM token of an identity provider connection
|
|
16568
|
+
* @request POST:/orgs/{organizationId}/idp-connections/{idpConnectionId}/token
|
|
16569
|
+
* @secure
|
|
16570
|
+
*/
|
|
16571
|
+
rotateOrganizationIdPConnectionToken: (organizationId: EntityId, idpConnectionId: string, params?: RequestParams) => Promise<HttpResponse<OrganizationIdPConnectionWithToken, {
|
|
16572
|
+
error: {
|
|
16573
|
+
/** @format int32 */
|
|
16574
|
+
code: 404;
|
|
16575
|
+
message: string;
|
|
16576
|
+
};
|
|
16577
|
+
}>>;
|
|
16313
16578
|
/**
|
|
16314
16579
|
* @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
16580
|
*
|
|
@@ -19857,6 +20122,206 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
19857
20122
|
message: string;
|
|
19858
20123
|
};
|
|
19859
20124
|
}>>;
|
|
20125
|
+
/**
|
|
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.
|
|
20127
|
+
*
|
|
20128
|
+
* @tags sites
|
|
20129
|
+
* @name GetRevisionInSiteRevision
|
|
20130
|
+
* @summary Get the content revision of a space at a site revision
|
|
20131
|
+
* @request GET:/orgs/{organizationId}/sites/{siteId}/revisions/{siteRevisionId}/content/{spaceId}
|
|
20132
|
+
* @secure
|
|
20133
|
+
*/
|
|
20134
|
+
getRevisionInSiteRevision: (organizationId: EntityId, siteId: string, siteRevisionId: string, spaceId: EntityId, query?: {
|
|
20135
|
+
/**
|
|
20136
|
+
* If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
|
|
20137
|
+
* @default true
|
|
20138
|
+
*/
|
|
20139
|
+
metadata?: boolean;
|
|
20140
|
+
/**
|
|
20141
|
+
* If `false` is passed, content will not be computed
|
|
20142
|
+
* @default true
|
|
20143
|
+
*/
|
|
20144
|
+
computed?: boolean;
|
|
20145
|
+
}, params?: RequestParams) => Promise<HttpResponse<Revision, any>>;
|
|
20146
|
+
/**
|
|
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.
|
|
20148
|
+
*
|
|
20149
|
+
* @tags sites
|
|
20150
|
+
* @name GetPageInSiteRevision
|
|
20151
|
+
* @summary Get a page of a space at a site revision
|
|
20152
|
+
* @request GET:/orgs/{organizationId}/sites/{siteId}/revisions/{siteRevisionId}/content/{spaceId}/page/{pageId}
|
|
20153
|
+
* @secure
|
|
20154
|
+
*/
|
|
20155
|
+
getPageInSiteRevision: (organizationId: EntityId, siteId: string, siteRevisionId: string, spaceId: EntityId, pageId: EntityId, query?: {
|
|
20156
|
+
/** Output format for the content. */
|
|
20157
|
+
format?: "document" | "markdown";
|
|
20158
|
+
/**
|
|
20159
|
+
* Controls how content references are formatted in markdown output. Ignored unless `format=markdown`.
|
|
20160
|
+
*
|
|
20161
|
+
* - `relative`: Format page references as relative links from the current page. Other references might not be handled.
|
|
20162
|
+
* - `stable`: Format content references as stable idempotent refs containing their identifiers.
|
|
20163
|
+
* @default "relative"
|
|
20164
|
+
*/
|
|
20165
|
+
"format.markdown.refs"?: "relative" | "stable";
|
|
20166
|
+
/**
|
|
20167
|
+
* Controls whether the document should be evaluated.
|
|
20168
|
+
* - When set to `true`, the entire document will be evaluated.
|
|
20169
|
+
* - When set to `deterministic-only`, only expressions that depend
|
|
20170
|
+
* exclusively on deterministic inputs will be evaluated.
|
|
20171
|
+
* @default false
|
|
20172
|
+
*/
|
|
20173
|
+
evaluated?: boolean | "deterministic-only";
|
|
20174
|
+
/**
|
|
20175
|
+
* Controls whether references to other content are resolved and expanded.
|
|
20176
|
+
* - When set to `false`, references are preserved, including reusable content includes in Markdown.
|
|
20177
|
+
* - When set to `true`, all supported content references are expanded.
|
|
20178
|
+
* - When set to `reusable-contents`, only reusable content references are expanded.
|
|
20179
|
+
* When omitted, Markdown responses expand all supported content references, while document responses preserve them.
|
|
20180
|
+
*/
|
|
20181
|
+
dereferenced?: boolean | "reusable-contents";
|
|
20182
|
+
/**
|
|
20183
|
+
* If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
|
|
20184
|
+
* @default true
|
|
20185
|
+
*/
|
|
20186
|
+
metadata?: boolean;
|
|
20187
|
+
/**
|
|
20188
|
+
* If `false` is passed, content will not be computed
|
|
20189
|
+
* @default true
|
|
20190
|
+
*/
|
|
20191
|
+
computed?: boolean;
|
|
20192
|
+
}, params?: RequestParams) => Promise<HttpResponse<RevisionPage, any>>;
|
|
20193
|
+
/**
|
|
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.
|
|
20195
|
+
*
|
|
20196
|
+
* @tags sites
|
|
20197
|
+
* @name ListPageMetaLinksInSiteRevision
|
|
20198
|
+
* @summary List the meta links of a page at a site revision
|
|
20199
|
+
* @request GET:/orgs/{organizationId}/sites/{siteId}/revisions/{siteRevisionId}/content/{spaceId}/page/{pageId}/meta-links
|
|
20200
|
+
* @secure
|
|
20201
|
+
*/
|
|
20202
|
+
listPageMetaLinksInSiteRevision: (organizationId: EntityId, siteId: string, siteRevisionId: string, spaceId: EntityId, pageId: EntityId, params?: RequestParams) => Promise<HttpResponse<RevisionPageMetaLinks, any>>;
|
|
20203
|
+
/**
|
|
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.
|
|
20205
|
+
*
|
|
20206
|
+
* @tags sites
|
|
20207
|
+
* @name GetPageByPathInSiteRevision
|
|
20208
|
+
* @summary Get a page of a space by its path at a site revision
|
|
20209
|
+
* @request GET:/orgs/{organizationId}/sites/{siteId}/revisions/{siteRevisionId}/content/{spaceId}/path/{pagePath}
|
|
20210
|
+
* @secure
|
|
20211
|
+
*/
|
|
20212
|
+
getPageByPathInSiteRevision: (organizationId: EntityId, siteId: string, siteRevisionId: string, spaceId: EntityId, pagePath: string, query?: {
|
|
20213
|
+
/** Output format for the content. */
|
|
20214
|
+
format?: "document" | "markdown";
|
|
20215
|
+
/**
|
|
20216
|
+
* Controls how content references are formatted in markdown output. Ignored unless `format=markdown`.
|
|
20217
|
+
*
|
|
20218
|
+
* - `relative`: Format page references as relative links from the current page. Other references might not be handled.
|
|
20219
|
+
* - `stable`: Format content references as stable idempotent refs containing their identifiers.
|
|
20220
|
+
* @default "relative"
|
|
20221
|
+
*/
|
|
20222
|
+
"format.markdown.refs"?: "relative" | "stable";
|
|
20223
|
+
/**
|
|
20224
|
+
* Controls whether the document should be evaluated.
|
|
20225
|
+
* - When set to `true`, the entire document will be evaluated.
|
|
20226
|
+
* - When set to `deterministic-only`, only expressions that depend
|
|
20227
|
+
* exclusively on deterministic inputs will be evaluated.
|
|
20228
|
+
* @default false
|
|
20229
|
+
*/
|
|
20230
|
+
evaluated?: boolean | "deterministic-only";
|
|
20231
|
+
/**
|
|
20232
|
+
* Controls whether references to other content are resolved and expanded.
|
|
20233
|
+
* - When set to `false`, references are preserved, including reusable content includes in Markdown.
|
|
20234
|
+
* - When set to `true`, all supported content references are expanded.
|
|
20235
|
+
* - When set to `reusable-contents`, only reusable content references are expanded.
|
|
20236
|
+
* When omitted, Markdown responses expand all supported content references, while document responses preserve them.
|
|
20237
|
+
*/
|
|
20238
|
+
dereferenced?: boolean | "reusable-contents";
|
|
20239
|
+
/**
|
|
20240
|
+
* If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
|
|
20241
|
+
* @default true
|
|
20242
|
+
*/
|
|
20243
|
+
metadata?: boolean;
|
|
20244
|
+
/**
|
|
20245
|
+
* If `true` is passed, mutable Git metadata may be served from a cache.
|
|
20246
|
+
* @default false
|
|
20247
|
+
*/
|
|
20248
|
+
cachedMetadata?: boolean;
|
|
20249
|
+
/**
|
|
20250
|
+
* If `false` is passed, content will not be computed
|
|
20251
|
+
* @default true
|
|
20252
|
+
*/
|
|
20253
|
+
computed?: boolean;
|
|
20254
|
+
}, params?: RequestParams) => Promise<HttpResponse<RevisionPageDocument | RevisionPageGroup, any>>;
|
|
20255
|
+
/**
|
|
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.
|
|
20257
|
+
*
|
|
20258
|
+
* @tags sites
|
|
20259
|
+
* @name GetReusableContentDocumentInSiteRevision
|
|
20260
|
+
* @summary Get the document of a reusable content at a site revision
|
|
20261
|
+
* @request GET:/orgs/{organizationId}/sites/{siteId}/revisions/{siteRevisionId}/content/{spaceId}/reusable-contents/{reusableContentId}/document
|
|
20262
|
+
* @secure
|
|
20263
|
+
*/
|
|
20264
|
+
getReusableContentDocumentInSiteRevision: (organizationId: EntityId, siteId: string, siteRevisionId: string, spaceId: EntityId, reusableContentId: EntityId, query?: {
|
|
20265
|
+
/**
|
|
20266
|
+
* Controls whether the document should be evaluated.
|
|
20267
|
+
* - When set to `true`, the entire document will be evaluated.
|
|
20268
|
+
* - When set to `deterministic-only`, only expressions that depend
|
|
20269
|
+
* exclusively on deterministic inputs will be evaluated.
|
|
20270
|
+
* @default false
|
|
20271
|
+
*/
|
|
20272
|
+
evaluated?: boolean | "deterministic-only";
|
|
20273
|
+
/**
|
|
20274
|
+
* Controls whether references to other content are resolved and expanded.
|
|
20275
|
+
* - When set to `false`, references are preserved, including reusable content includes in Markdown.
|
|
20276
|
+
* - When set to `true`, all supported content references are expanded.
|
|
20277
|
+
* - When set to `reusable-contents`, only reusable content references are expanded.
|
|
20278
|
+
* When omitted, Markdown responses expand all supported content references, while document responses preserve them.
|
|
20279
|
+
*/
|
|
20280
|
+
dereferenced?: boolean | "reusable-contents";
|
|
20281
|
+
}, params?: RequestParams) => Promise<HttpResponse<JSONDocument, any>>;
|
|
20282
|
+
/**
|
|
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.
|
|
20284
|
+
*
|
|
20285
|
+
* @tags sites
|
|
20286
|
+
* @name GetPageDocumentInSiteRevision
|
|
20287
|
+
* @summary Get the document of a page in a space at a site revision
|
|
20288
|
+
* @request GET:/orgs/{organizationId}/sites/{siteId}/revisions/{siteRevisionId}/content/{spaceId}/page/{pageId}/document
|
|
20289
|
+
* @secure
|
|
20290
|
+
*/
|
|
20291
|
+
getPageDocumentInSiteRevision: (organizationId: EntityId, siteId: string, siteRevisionId: string, spaceId: EntityId, pageId: EntityId, query?: {
|
|
20292
|
+
/**
|
|
20293
|
+
* Controls whether the document should be evaluated.
|
|
20294
|
+
* - When set to `true`, the entire document will be evaluated.
|
|
20295
|
+
* - When set to `deterministic-only`, only expressions that depend
|
|
20296
|
+
* exclusively on deterministic inputs will be evaluated.
|
|
20297
|
+
* @default false
|
|
20298
|
+
*/
|
|
20299
|
+
evaluated?: boolean | "deterministic-only";
|
|
20300
|
+
/**
|
|
20301
|
+
* Controls whether references to other content are resolved and expanded.
|
|
20302
|
+
* - When set to `false`, references are preserved, including reusable content includes in Markdown.
|
|
20303
|
+
* - When set to `true`, all supported content references are expanded.
|
|
20304
|
+
* - When set to `reusable-contents`, only reusable content references are expanded.
|
|
20305
|
+
* When omitted, Markdown responses expand all supported content references, while document responses preserve them.
|
|
20306
|
+
*/
|
|
20307
|
+
dereferenced?: boolean | "reusable-contents";
|
|
20308
|
+
}, params?: RequestParams) => Promise<HttpResponse<JSONDocument, any>>;
|
|
20309
|
+
/**
|
|
20310
|
+
* @description Retrieves the content of the OpenAPI spec version the site revision pins. A spec the site revision does not record returns 404.
|
|
20311
|
+
*
|
|
20312
|
+
* @tags sites
|
|
20313
|
+
* @name GetOpenApiSpecContentInSiteRevision
|
|
20314
|
+
* @summary Get the content of an OpenAPI spec at a site revision
|
|
20315
|
+
* @request GET:/orgs/{organizationId}/sites/{siteId}/revisions/{siteRevisionId}/openapi/{specSlug}/content
|
|
20316
|
+
* @secure
|
|
20317
|
+
*/
|
|
20318
|
+
getOpenApiSpecContentInSiteRevision: (organizationId: EntityId, siteId: string, siteRevisionId: string, specSlug: string, params?: RequestParams) => Promise<HttpResponse<OpenAPISpecContent, {
|
|
20319
|
+
error: {
|
|
20320
|
+
/** @format int32 */
|
|
20321
|
+
code: 404;
|
|
20322
|
+
message: string;
|
|
20323
|
+
};
|
|
20324
|
+
}>>;
|
|
19860
20325
|
/**
|
|
19861
20326
|
* No description
|
|
19862
20327
|
*
|