@gitbook/api 0.211.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 +585 -63
- package/dist/constants.d.ts +7 -4
- package/dist/index.cjs +145 -23
- package/dist/index.js +139 -21
- package/package.json +1 -1
- package/spec/openapi.json +1283 -162
- package/spec/openapi.yaml +792 -127
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 that provisions members through the SCIM connection. */
|
|
652
|
-
export declare enum SCIMConnectionProvider {
|
|
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";
|
|
@@ -1642,6 +1651,12 @@ export interface PasskeyRegistrationResponse {
|
|
|
1642
1651
|
clientExtensionResults: Record<string, any>;
|
|
1643
1652
|
authenticatorAttachment?: "platform" | "cross-platform";
|
|
1644
1653
|
}
|
|
1654
|
+
/** WebAuthn options for signing in with a passkey (PublicKeyCredentialRequestOptionsJSON), to pass unchanged to the browser. */
|
|
1655
|
+
export interface PasskeySignInOptions {
|
|
1656
|
+
/** Single-use challenge the passkey must sign. */
|
|
1657
|
+
challenge: string;
|
|
1658
|
+
[key: string]: any;
|
|
1659
|
+
}
|
|
1645
1660
|
/** WebAuthn options for creating a passkey (PublicKeyCredentialCreationOptionsJSON), to pass unchanged to the browser. */
|
|
1646
1661
|
export interface PasskeyRegistrationOptions {
|
|
1647
1662
|
/** Single-use challenge the new passkey must sign. */
|
|
@@ -1677,10 +1692,15 @@ export interface UserAPIToken {
|
|
|
1677
1692
|
label: APITokenLabel;
|
|
1678
1693
|
/** The API token creation date. */
|
|
1679
1694
|
createdAt: Timestamp;
|
|
1680
|
-
/**
|
|
1695
|
+
/**
|
|
1696
|
+
* Whether the API token can no longer be used to authenticate, because it was revoked or has expired. Deprecated, use `revokedAt` instead.
|
|
1697
|
+
* @deprecated
|
|
1698
|
+
*/
|
|
1681
1699
|
revoked: boolean;
|
|
1682
1700
|
/** When the API token stops authenticating. Absent for a token that never expires. */
|
|
1683
1701
|
expiresAt?: Timestamp;
|
|
1702
|
+
/** When the API token was revoked. Absent when it was not revoked. */
|
|
1703
|
+
revokedAt?: Timestamp;
|
|
1684
1704
|
/**
|
|
1685
1705
|
* IP rules restricting where the token can be used from. Absent when unrestricted.
|
|
1686
1706
|
* @maxItems 20
|
|
@@ -1688,6 +1708,8 @@ export interface UserAPIToken {
|
|
|
1688
1708
|
ipRules?: APITokenIPRule[];
|
|
1689
1709
|
/** When the API token last authenticated a request, accurate to within an hour. Absent for a token that has never been used. */
|
|
1690
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;
|
|
1691
1713
|
/** Operations the token can call. `write` allows everything the user can do, while `read` only allows reading. Fixed at creation. */
|
|
1692
1714
|
scope: "read" | "write";
|
|
1693
1715
|
}
|
|
@@ -4080,6 +4102,12 @@ export type CustomizationSuggestedQuestions = CustomizationSuggestedQuestion[];
|
|
|
4080
4102
|
* @maxLength 10000
|
|
4081
4103
|
*/
|
|
4082
4104
|
export type CustomizationAIInstructions = string;
|
|
4105
|
+
/**
|
|
4106
|
+
* Conditions restricting page actions to the visitors matching them, keyed by page action type.
|
|
4107
|
+
* A page action without a condition is shown to every visitor. Only enabled page actions can have
|
|
4108
|
+
* a condition, and the `assistant` action cannot have one.
|
|
4109
|
+
*/
|
|
4110
|
+
export type CustomizationPageActionConditions = Record<CustomizationPageActionType, Expression>;
|
|
4083
4111
|
/**
|
|
4084
4112
|
* A handle on a social platform, without prefixes like the @ symbol.
|
|
4085
4113
|
* @minLength 1
|
|
@@ -4246,6 +4274,13 @@ export interface SiteCustomizationSettingsBase {
|
|
|
4246
4274
|
* When the menu is off, the assistant stays reachable from the header via `ai.mode`.
|
|
4247
4275
|
*/
|
|
4248
4276
|
items: CustomizationPageActionType[];
|
|
4277
|
+
/**
|
|
4278
|
+
* Conditions restricting enabled page actions to the visitors matching them. Returned by the
|
|
4279
|
+
* customization endpoints when a page action has one, and left out of published content,
|
|
4280
|
+
* where they are already applied to the visitor. When updating, leaving it out keeps the
|
|
4281
|
+
* current conditions and an empty object removes them.
|
|
4282
|
+
*/
|
|
4283
|
+
conditions?: CustomizationPageActionConditions;
|
|
4249
4284
|
};
|
|
4250
4285
|
externalLinks: {
|
|
4251
4286
|
/**
|
|
@@ -4687,7 +4722,7 @@ export interface ChangeRequestContentChangeDeletePage {
|
|
|
4687
4722
|
page: string;
|
|
4688
4723
|
}
|
|
4689
4724
|
/**
|
|
4690
|
-
* 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.
|
|
4691
4726
|
* @example {"operation":"revert_page","page":"page_id"}
|
|
4692
4727
|
*/
|
|
4693
4728
|
export interface ChangeRequestContentChangeRevertPage {
|
|
@@ -6011,7 +6046,7 @@ export interface Site {
|
|
|
6011
6046
|
/** Can the user edit the adaptive schema of the site. */
|
|
6012
6047
|
editAdaptiveSchema: boolean;
|
|
6013
6048
|
};
|
|
6014
|
-
/** 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. */
|
|
6015
6050
|
publicChangeRequestPreviews: boolean;
|
|
6016
6051
|
/** Whether the site is live or not. If true, the site is accessible to the audience defined by the visibility setting. */
|
|
6017
6052
|
published: boolean;
|
|
@@ -6784,6 +6819,111 @@ export interface UpdateMembersInOrganizationTeam {
|
|
|
6784
6819
|
memberships?: Record<string, TeamMember>;
|
|
6785
6820
|
remove?: string[];
|
|
6786
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
|
+
}
|
|
6787
6927
|
/**
|
|
6788
6928
|
* User email
|
|
6789
6929
|
* @format email
|
|
@@ -7264,23 +7404,6 @@ export interface InstalledIntegration {
|
|
|
7264
7404
|
* @maxLength 30
|
|
7265
7405
|
*/
|
|
7266
7406
|
export type SAMLProviderLabel = string;
|
|
7267
|
-
/** @maxLength 1024 */
|
|
7268
|
-
export type SAMLProviderEntityID = string;
|
|
7269
|
-
/** @maxLength 10000 */
|
|
7270
|
-
export type SAMLProviderCertificate = string;
|
|
7271
|
-
/** 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. */
|
|
7272
|
-
export type SAMLProviderDefaultRole = MemberRole | null | "default" | "domain";
|
|
7273
|
-
/** An email domain of a SAML provider, with its verification state in the organization. */
|
|
7274
|
-
export interface SAMLProviderDomain {
|
|
7275
|
-
domain: string;
|
|
7276
|
-
/**
|
|
7277
|
-
* State of a SAML provider's email domain in the organization.
|
|
7278
|
-
* - `verified`: People with an email on this domain can sign in through the provider.
|
|
7279
|
-
* - `pending`, `error`, `legacy`: The domain isn't verified yet, so it doesn't let anyone sign in.
|
|
7280
|
-
* - `removed`: The organization no longer has this domain.
|
|
7281
|
-
*/
|
|
7282
|
-
status: SAMLProviderDomainStatus;
|
|
7283
|
-
}
|
|
7284
7407
|
export interface OrganizationSAMLProvider {
|
|
7285
7408
|
/** Type of Object, always equals to "saml-provider" */
|
|
7286
7409
|
object: "saml-provider";
|
|
@@ -7328,12 +7451,6 @@ export interface OrganizationSAMLProvider {
|
|
|
7328
7451
|
location: string;
|
|
7329
7452
|
};
|
|
7330
7453
|
}
|
|
7331
|
-
/**
|
|
7332
|
-
* 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.
|
|
7333
|
-
* @maxItems 50
|
|
7334
|
-
* @uniqueItems true
|
|
7335
|
-
*/
|
|
7336
|
-
export type SAMLProviderDomains = string[];
|
|
7337
7454
|
/** Role given to people who join through the domain. "default" uses the organization's default role, and "guest" adds them as guests. */
|
|
7338
7455
|
export type OrganizationDomainDefaultRole = MemberRole | "default" | "guest";
|
|
7339
7456
|
/** An email domain of an organization. */
|
|
@@ -7382,8 +7499,8 @@ export interface OrganizationSCIMConnection {
|
|
|
7382
7499
|
id: string;
|
|
7383
7500
|
/** Name of the SCIM connection, shown to organization admins. */
|
|
7384
7501
|
label: SCIMConnectionLabel;
|
|
7385
|
-
/** Identity provider
|
|
7386
|
-
provider:
|
|
7502
|
+
/** Identity provider behind the connection. */
|
|
7503
|
+
provider: IdPConnectionProvider;
|
|
7387
7504
|
/** SCIM base URL to configure in the identity provider */
|
|
7388
7505
|
baseURL: URL;
|
|
7389
7506
|
/** Last characters of the current token, to identify it */
|
|
@@ -10710,12 +10827,6 @@ export interface PasskeyAuthenticationResponse {
|
|
|
10710
10827
|
clientExtensionResults: Record<string, any>;
|
|
10711
10828
|
authenticatorAttachment?: "platform" | "cross-platform";
|
|
10712
10829
|
}
|
|
10713
|
-
/** WebAuthn options for signing in with a passkey (PublicKeyCredentialRequestOptionsJSON), to pass unchanged to the browser. */
|
|
10714
|
-
export interface PasskeySignInOptions {
|
|
10715
|
-
/** Single-use challenge the passkey must sign. */
|
|
10716
|
-
challenge: string;
|
|
10717
|
-
[key: string]: any;
|
|
10718
|
-
}
|
|
10719
10830
|
export interface UnsplashImage {
|
|
10720
10831
|
kind: "unsplash_image";
|
|
10721
10832
|
id: string;
|
|
@@ -10939,8 +11050,40 @@ export type BackOfficeSite = Site & {
|
|
|
10939
11050
|
/** ID of the organization owning this site */
|
|
10940
11051
|
organization: string;
|
|
10941
11052
|
};
|
|
10942
|
-
/**
|
|
10943
|
-
|
|
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 = {
|
|
10944
11087
|
/** ID of the site matching. */
|
|
10945
11088
|
site: string;
|
|
10946
11089
|
/** ID of the site-section matching. */
|
|
@@ -10949,10 +11092,6 @@ export interface PublishedSiteContent {
|
|
|
10949
11092
|
siteSpace: string;
|
|
10950
11093
|
/** ID of the space matching. */
|
|
10951
11094
|
space: string;
|
|
10952
|
-
/** Identifier of the change request being previewed in this URL. */
|
|
10953
|
-
changeRequest?: string;
|
|
10954
|
-
/** Identifier of the revision being previewed in this URL. */
|
|
10955
|
-
revision?: string;
|
|
10956
11095
|
/** Path of the content relative to the input URL being resolved */
|
|
10957
11096
|
pathname: string;
|
|
10958
11097
|
/** Prefix of the path in the input URL being resolved */
|
|
@@ -10973,7 +11112,7 @@ export interface PublishedSiteContent {
|
|
|
10973
11112
|
canonicalUrl: string;
|
|
10974
11113
|
/** Whether the URL is a preview URL */
|
|
10975
11114
|
preview?: boolean;
|
|
10976
|
-
}
|
|
11115
|
+
} & (PublishedSiteContentLive | PublishedSiteContentAtRevision | PublishedSiteContentInChangeRequest | PublishedSiteContentAtSiteRevision);
|
|
10977
11116
|
export type PublishedSiteContentLookup = PublishedContentRedirect | PublishedSiteContent;
|
|
10978
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. */
|
|
10979
11118
|
export interface SiteVisitorPayload {
|
|
@@ -12266,6 +12405,11 @@ export interface APIChannelOrganizationDomains {
|
|
|
12266
12405
|
channel: "organization-domains";
|
|
12267
12406
|
organization: string;
|
|
12268
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
|
+
}
|
|
12269
12413
|
/** Subscription channel for changes in custom fonts in an organization. */
|
|
12270
12414
|
export interface APIChannelOrganizationCustomFonts {
|
|
12271
12415
|
channel: "organization-fonts";
|
|
@@ -16292,6 +16436,145 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
16292
16436
|
* @secure
|
|
16293
16437
|
*/
|
|
16294
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
|
+
}>>;
|
|
16295
16578
|
/**
|
|
16296
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.
|
|
16297
16580
|
*
|
|
@@ -16945,8 +17228,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
16945
17228
|
createOrganizationScimConnection: (organizationId: EntityId, data: {
|
|
16946
17229
|
/** Name of the SCIM connection, shown to organization admins. */
|
|
16947
17230
|
label: SCIMConnectionLabel;
|
|
16948
|
-
/** Identity provider
|
|
16949
|
-
provider:
|
|
17231
|
+
/** Identity provider behind the connection. */
|
|
17232
|
+
provider: IdPConnectionProvider;
|
|
16950
17233
|
}, params?: RequestParams) => Promise<HttpResponse<OrganizationSCIMConnectionWithToken, {
|
|
16951
17234
|
error: {
|
|
16952
17235
|
/** @format int32 */
|
|
@@ -18067,6 +18350,45 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
18067
18350
|
message: string;
|
|
18068
18351
|
};
|
|
18069
18352
|
}>>;
|
|
18353
|
+
/**
|
|
18354
|
+
* @description Merges every space edited in the change request into its published content, as one publication: either all of them are published or none of them are. If any space reports conflicts, nothing is published and those spaces are listed so they can be resolved and the change request merged again.
|
|
18355
|
+
*
|
|
18356
|
+
* @tags site-change-requests
|
|
18357
|
+
* @name MergeSiteChangeRequest
|
|
18358
|
+
* @summary Merge a site change request into the site's live content
|
|
18359
|
+
* @request POST:/orgs/{organizationId}/sites/{siteId}/change-requests/{changeRequestId}/merge
|
|
18360
|
+
* @secure
|
|
18361
|
+
*/
|
|
18362
|
+
mergeSiteChangeRequest: (organizationId: EntityId, siteId: string, changeRequestId: EntityId, params?: RequestParams) => Promise<HttpResponse<{
|
|
18363
|
+
/** "merge" when every space was published, "conflicts" when nothing was published. Each space that conflicts now serves a revision holding them, the same as a space change request, so read the change request's spaces to find which. */
|
|
18364
|
+
result: "merge" | "conflicts";
|
|
18365
|
+
/** ID of the site revision recording the merge. Absent when the result is "conflicts", since nothing was published. */
|
|
18366
|
+
revision?: string;
|
|
18367
|
+
}, {
|
|
18368
|
+
error: {
|
|
18369
|
+
/** @format int32 */
|
|
18370
|
+
code: 403;
|
|
18371
|
+
message: string;
|
|
18372
|
+
};
|
|
18373
|
+
} | {
|
|
18374
|
+
error: {
|
|
18375
|
+
/** @format int32 */
|
|
18376
|
+
code: 404;
|
|
18377
|
+
message: string;
|
|
18378
|
+
};
|
|
18379
|
+
} | {
|
|
18380
|
+
error: {
|
|
18381
|
+
/** @format int32 */
|
|
18382
|
+
code: 409;
|
|
18383
|
+
message: string;
|
|
18384
|
+
};
|
|
18385
|
+
} | {
|
|
18386
|
+
error: {
|
|
18387
|
+
/** @format int32 */
|
|
18388
|
+
code: 412;
|
|
18389
|
+
message: string;
|
|
18390
|
+
};
|
|
18391
|
+
}>>;
|
|
18070
18392
|
/**
|
|
18071
18393
|
* @description Returns a paginated list of share links configured for the site. Share links grant access to a private site without requiring full authentication. Use this to audit existing share links, check their active status, or find a link ID before updating or revoking it.
|
|
18072
18394
|
*
|
|
@@ -19800,6 +20122,206 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
19800
20122
|
message: string;
|
|
19801
20123
|
};
|
|
19802
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
|
+
}>>;
|
|
19803
20325
|
/**
|
|
19804
20326
|
* No description
|
|
19805
20327
|
*
|