@gitbook/api 0.214.0 → 0.215.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +352 -182
- package/dist/constants.d.ts +8 -2
- package/dist/index.cjs +68 -49
- package/dist/index.js +59 -49
- package/package.json +1 -1
- package/spec/openapi.json +853 -419
- package/spec/openapi.yaml +577 -267
package/dist/client.d.ts
CHANGED
|
@@ -56,6 +56,11 @@ export declare enum BillingStatus {
|
|
|
56
56
|
Unpaid = "unpaid",
|
|
57
57
|
Paused = "paused"
|
|
58
58
|
}
|
|
59
|
+
/** The type of change between two site revisions. */
|
|
60
|
+
export declare enum SiteRevisionChangeType {
|
|
61
|
+
SpaceContentEdited = "space_content_edited",
|
|
62
|
+
OpenapiSpecEdited = "openapi_spec_edited"
|
|
63
|
+
}
|
|
59
64
|
/** Lifecycle state of a pull or merge request on the Git provider. */
|
|
60
65
|
export declare enum GitProviderChangeState {
|
|
61
66
|
Open = "open",
|
|
@@ -315,6 +320,12 @@ export declare enum AIModel {
|
|
|
315
320
|
ReasoningMedium = "reasoning-medium",
|
|
316
321
|
ReasoningHigh = "reasoning-high"
|
|
317
322
|
}
|
|
323
|
+
/** Type of a node of the site's structure. */
|
|
324
|
+
export declare enum SiteRevisionNodeType {
|
|
325
|
+
SectionGroup = "section-group",
|
|
326
|
+
Section = "section",
|
|
327
|
+
Space = "space"
|
|
328
|
+
}
|
|
318
329
|
/** The phase of a step in a message from the AI agent. */
|
|
319
330
|
export declare enum AIMessageStepPhase {
|
|
320
331
|
Commentary = "commentary",
|
|
@@ -712,6 +723,18 @@ export declare enum BillingMeter {
|
|
|
712
723
|
AiAgentResponses = "ai_agent_responses",
|
|
713
724
|
TranslationWords = "translation_words"
|
|
714
725
|
}
|
|
726
|
+
/**
|
|
727
|
+
* What happens to the members that SCIM provisioned or linked through the connection.
|
|
728
|
+
* - `keep`: They keep their access. Those the identity provider deactivated become disabled by an admin.
|
|
729
|
+
* - `disable`: They are disabled by an admin, and keep their role.
|
|
730
|
+
* - `remove`: They are removed from the organization.
|
|
731
|
+
* The admin who deletes the connection is never disabled or removed.
|
|
732
|
+
*/
|
|
733
|
+
export declare enum IdPConnectionMembersAction {
|
|
734
|
+
Keep = "keep",
|
|
735
|
+
Disable = "disable",
|
|
736
|
+
Remove = "remove"
|
|
737
|
+
}
|
|
715
738
|
/**
|
|
716
739
|
* State of a SAML provider's email domain in the organization.
|
|
717
740
|
* - `verified`: People with an email on this domain can sign in through the provider.
|
|
@@ -1447,7 +1470,7 @@ export declare enum ContentVisibility {
|
|
|
1447
1470
|
/** Data passed through a realtime channel */
|
|
1448
1471
|
export type APIChannelData = APIChannelGitSyncOperationData | APIChannelGitSyncSiteOperationData | APIChannelTranslationRunData | APIChannelImportRunData | APIChannelMutationData;
|
|
1449
1472
|
/** Channel to subscribe to for realtime updates. */
|
|
1450
|
-
export type APIChannel = APIChannelSpaceInfo | APIChannelSpaceContent | APIChannelSpaceGitInfo | APIChannelSpacePublishingAuth | APIChannelSpacePublishingCustomization | APIChannelSpaceIntegrations | APIChannelUserAPITokens | APIChannelUserOrganizations | APIChannelUserPasskeys | APIChannelUserProfile | APIChannelChangeRequest | APIChannelChangeRequests | APIChannelChangeRequestReviews | APIChannelCollection | APIChannelCollectionPublishingCustomization | APIChannelOrganizationInfo | APIChannelOrganizationAgentData | APIChannelOrganizationInviteLinks | APIChannelOrganizationMembers | APIChannelOrganizationMember | APIChannelOrganizationSAML | APIChannelOrganizationTeams | APIChannelOrganizationTeam | APIChannelOrganizationTeamMembers | APIChannelOrganizationTeamMember | APIChannelOrganizationSpaces | APIChannelOrganizationCollections | APIChannelOrganizationIntegrations | APIChannelOrganizationInstallations | APIChannelOrganizationSites | APIChannelOrganizationOpenAPISpecs | APIChannelOrganizationTranslations | APIChannelOrganizationTranslationsGlossary |
|
|
1473
|
+
export type APIChannel = APIChannelSpaceInfo | APIChannelSpaceContent | APIChannelSpaceGitInfo | APIChannelSpacePublishingAuth | APIChannelSpacePublishingCustomization | APIChannelSpaceIntegrations | APIChannelUserAPITokens | APIChannelUserOrganizations | APIChannelUserPasskeys | APIChannelUserProfile | APIChannelChangeRequest | APIChannelChangeRequests | APIChannelChangeRequestReviews | APIChannelCollection | APIChannelCollectionPublishingCustomization | APIChannelOrganizationInfo | APIChannelOrganizationAgentData | APIChannelOrganizationInviteLinks | APIChannelOrganizationMembers | APIChannelOrganizationMember | APIChannelOrganizationSAML | APIChannelOrganizationTeams | APIChannelOrganizationTeam | APIChannelOrganizationTeamMembers | APIChannelOrganizationTeamMember | APIChannelOrganizationSpaces | APIChannelOrganizationCollections | APIChannelOrganizationIntegrations | APIChannelOrganizationInstallations | APIChannelOrganizationSites | APIChannelOrganizationOpenAPISpecs | APIChannelOrganizationTranslations | APIChannelOrganizationTranslationsGlossary | APIChannelOrganizationDomains | APIChannelOrganizationIdPConnections | APIChannelOrganizationCustomFonts | APIChannelOrganizationAgentInstructions | APIChannelOrganizationChangeRequests | APIChannelSpaceComments | APIChannelChangeRequestComments | APIChannelCommentInfo | APIChannelCommentReplies | APIChannelIntegration | APIChannelIntegrationInstallation | APIChannelIntegrationSpaceInstallation | APIChannelIntegrationSpaceInstallations | APIChannelIntegrationSiteInstallation | APIChannelIntegrationSiteInstallations | APIChannelPublishedContentSite | APIChannelSiteRedirects | APIChannelSite | APIChannelSiteChannels | APIChannelSiteContext | APIChannelSiteCustomization | APIChannelSiteAgentSettings | APIChannelSiteIntegrations | APIChannelSiteSpace | APIChannelSiteSpaceCustomization | APIChannelSiteStructure | APIChannelSiteAdaptiveSchema | APIChannelSitePublishingAuth | APIChannelSiteShareLinks | APIChannelSiteShareLink | APIChannelSiteMcpServers | APIChannelSiteMcpServer | APIChannelSiteSection | APIChannelCustomHostname | APIChannelGitSyncInstallation | APIChannelGitSyncOperation | APIChannelGitSyncSiteOperation | APIChannelOpenAPISpec | APIChannelSubdomain | APIChannelTranslation | APIChannelTranslationRun | APIChannelImportRun;
|
|
1451
1474
|
/** The plan upgrade that would make a feature available. */
|
|
1452
1475
|
export type FeatureUpgradeRequirement = {
|
|
1453
1476
|
type: "organization";
|
|
@@ -1497,6 +1520,13 @@ export type PublishedContentRedirect = {
|
|
|
1497
1520
|
site: string;
|
|
1498
1521
|
redirect: URL;
|
|
1499
1522
|
};
|
|
1523
|
+
/**
|
|
1524
|
+
* Site revision node content
|
|
1525
|
+
* Content a space node shows.
|
|
1526
|
+
*/
|
|
1527
|
+
export type SiteRevisionNodeContent = {
|
|
1528
|
+
type: "space";
|
|
1529
|
+
} & SiteRevisionNodeContentSpace;
|
|
1500
1530
|
/** Result of a search */
|
|
1501
1531
|
export type AIToolCallSearchResult = AIToolCallSearchResultPage | AIToolCallSearchResultRecord;
|
|
1502
1532
|
export type SiteQuestionAnswerSource = SiteQuestionAnswerSourcePage | SiteQuestionAnswerSourceRecord;
|
|
@@ -2496,7 +2526,7 @@ export interface DocumentBlockParagraph {
|
|
|
2496
2526
|
export type DocumentInline = DocumentInlineLink | DocumentInlineEmoji | DocumentInlineIcon | DocumentInlineExpression | DocumentInlineMath | DocumentInlineImage | DocumentInlineAnnotation | DocumentInlineMention | DocumentInlineButton;
|
|
2497
2527
|
export interface DocumentBlockHeading {
|
|
2498
2528
|
object: "block";
|
|
2499
|
-
type: "heading-1" | "heading-2" | "heading-3";
|
|
2529
|
+
type: "heading-1" | "heading-2" | "heading-3" | "heading-4";
|
|
2500
2530
|
key?: string;
|
|
2501
2531
|
nodes: (DocumentInline | DocumentText)[];
|
|
2502
2532
|
data: {
|
|
@@ -3608,6 +3638,12 @@ export type RevisionTypeEdits = RevisionBase & {
|
|
|
3608
3638
|
/** Revision created by editing the content. */
|
|
3609
3639
|
type: "edits";
|
|
3610
3640
|
};
|
|
3641
|
+
export interface ChangeRequestReference {
|
|
3642
|
+
/** ID of the change request */
|
|
3643
|
+
id: string;
|
|
3644
|
+
/** Number of the change request within its space */
|
|
3645
|
+
number: number;
|
|
3646
|
+
}
|
|
3611
3647
|
/**
|
|
3612
3648
|
* Subject of the change request
|
|
3613
3649
|
* @minLength 0
|
|
@@ -3690,6 +3726,10 @@ export interface ChangeRequest {
|
|
|
3690
3726
|
id: string;
|
|
3691
3727
|
/** Incremental identifier of the change request */
|
|
3692
3728
|
number: number;
|
|
3729
|
+
/** The merged change request this change request reverts. */
|
|
3730
|
+
reverts?: ChangeRequestReference;
|
|
3731
|
+
/** The change request created to revert this merge. */
|
|
3732
|
+
revertedBy?: ChangeRequestReference;
|
|
3693
3733
|
status: ChangeRequestStatus;
|
|
3694
3734
|
/** Subject of the change request */
|
|
3695
3735
|
subject: ChangeRequestSubject;
|
|
@@ -5221,6 +5261,10 @@ export interface OrganizationMember {
|
|
|
5221
5261
|
user: User;
|
|
5222
5262
|
/** Why the member is disabled, or false when the member is active. A disabled member cannot access the organization or its content. */
|
|
5223
5263
|
disabled: MemberDisabled;
|
|
5264
|
+
/** Label of the identity provider connection that manages this membership. */
|
|
5265
|
+
directoryManagedBy?: string;
|
|
5266
|
+
/** Display name supplied by the identity provider for this organization membership. The GitBook account name is available in user.displayName. */
|
|
5267
|
+
directoryDisplayName?: string;
|
|
5224
5268
|
/** Date at which the user joined the organization. */
|
|
5225
5269
|
joinedAt: Timestamp;
|
|
5226
5270
|
/** Date at which the user was last seen active in the organization. */
|
|
@@ -7501,47 +7545,6 @@ export interface OrganizationDomain {
|
|
|
7501
7545
|
location: URL;
|
|
7502
7546
|
};
|
|
7503
7547
|
}
|
|
7504
|
-
/**
|
|
7505
|
-
* Name of the SCIM connection, shown to organization admins.
|
|
7506
|
-
* @minLength 1
|
|
7507
|
-
* @maxLength 100
|
|
7508
|
-
*/
|
|
7509
|
-
export type SCIMConnectionLabel = string;
|
|
7510
|
-
/** A SCIM connection through which an identity provider provisions organization members. */
|
|
7511
|
-
export interface OrganizationSCIMConnection {
|
|
7512
|
-
/** The object type, which is always "scim-connection" */
|
|
7513
|
-
object: "scim-connection";
|
|
7514
|
-
/** Unique identifier of the SCIM connection */
|
|
7515
|
-
id: string;
|
|
7516
|
-
/** Name of the SCIM connection, shown to organization admins. */
|
|
7517
|
-
label: SCIMConnectionLabel;
|
|
7518
|
-
/** Identity provider behind the connection. */
|
|
7519
|
-
provider: IdPConnectionProvider;
|
|
7520
|
-
/** SCIM base URL to configure in the identity provider */
|
|
7521
|
-
baseURL: URL;
|
|
7522
|
-
/** Last characters of the current token, to identify it */
|
|
7523
|
-
tokenHint: string;
|
|
7524
|
-
/** Date the current token was created */
|
|
7525
|
-
tokenCreatedAt: Timestamp;
|
|
7526
|
-
/** Date of the last request authenticated with the token */
|
|
7527
|
-
lastUsedAt?: Timestamp;
|
|
7528
|
-
/** Date of creation */
|
|
7529
|
-
createdAt: Timestamp;
|
|
7530
|
-
/** Date of the last update */
|
|
7531
|
-
updatedAt: Timestamp;
|
|
7532
|
-
/** URLs associated with the object */
|
|
7533
|
-
urls: {
|
|
7534
|
-
/** URL of the SCIM connection in the API */
|
|
7535
|
-
location: URL;
|
|
7536
|
-
};
|
|
7537
|
-
}
|
|
7538
|
-
/** A SCIM connection with its token, returned only when the token is created. */
|
|
7539
|
-
export interface OrganizationSCIMConnectionWithToken {
|
|
7540
|
-
/** A SCIM connection through which an identity provider provisions organization members. */
|
|
7541
|
-
connection: OrganizationSCIMConnection;
|
|
7542
|
-
/** Bearer token to configure in the identity provider. It can't be retrieved again. */
|
|
7543
|
-
token: string;
|
|
7544
|
-
}
|
|
7545
7548
|
export interface OrganizationSSOProviderLogin {
|
|
7546
7549
|
/** Unique identifier for the provider. */
|
|
7547
7550
|
id: string;
|
|
@@ -9850,6 +9853,159 @@ export type SiteSpaceCustomizationSettings = SiteCustomizationSettings & {
|
|
|
9850
9853
|
/** Indicates whether the site customization settings have been overridden. */
|
|
9851
9854
|
hasOverrides: boolean;
|
|
9852
9855
|
};
|
|
9856
|
+
/**
|
|
9857
|
+
* Site revision node content from a space
|
|
9858
|
+
* A space, at a revision.
|
|
9859
|
+
*/
|
|
9860
|
+
export interface SiteRevisionNodeContentSpace {
|
|
9861
|
+
type: "space";
|
|
9862
|
+
/** ID of the space. */
|
|
9863
|
+
space: string;
|
|
9864
|
+
/** ID of the revision. */
|
|
9865
|
+
revision: string;
|
|
9866
|
+
}
|
|
9867
|
+
export interface SiteRevisionChangePageCreated {
|
|
9868
|
+
type: "page_created";
|
|
9869
|
+
/** ID of the page. */
|
|
9870
|
+
page: string;
|
|
9871
|
+
}
|
|
9872
|
+
export interface SiteRevisionChangePageEdited {
|
|
9873
|
+
type: "page_edited";
|
|
9874
|
+
/** ID of the page. */
|
|
9875
|
+
page: string;
|
|
9876
|
+
/** Attributes of the page that changed. */
|
|
9877
|
+
attributes: {
|
|
9878
|
+
title?: ChangeAttributeString;
|
|
9879
|
+
emoji?: ChangeAttributeString;
|
|
9880
|
+
} | (RevisionPageDocumentChangeAttributes | RevisionPageGroupChangeAttributes | RevisionPageLinkChangeAttributes);
|
|
9881
|
+
}
|
|
9882
|
+
export interface SiteRevisionChangePageDeleted {
|
|
9883
|
+
type: "page_deleted";
|
|
9884
|
+
/** ID of the page. */
|
|
9885
|
+
page: string;
|
|
9886
|
+
}
|
|
9887
|
+
export interface SiteRevisionChangePageMoved {
|
|
9888
|
+
type: "page_moved";
|
|
9889
|
+
/** ID of the page. */
|
|
9890
|
+
page: string;
|
|
9891
|
+
/** ID of the page it is in. Null at the top of the node. */
|
|
9892
|
+
parent: {
|
|
9893
|
+
before: string | null;
|
|
9894
|
+
after: string | null;
|
|
9895
|
+
};
|
|
9896
|
+
}
|
|
9897
|
+
/**
|
|
9898
|
+
* Site revision content change
|
|
9899
|
+
* A change of a page or of the library of a space.
|
|
9900
|
+
*/
|
|
9901
|
+
export type SiteRevisionContentChange = SiteRevisionChangePageCreated | SiteRevisionChangePageEdited | SiteRevisionChangePageDeleted | SiteRevisionChangePageMoved | RevisionSemanticChangeFileCreated | RevisionSemanticChangeFileEdited | RevisionSemanticChangeFileDeleted | RevisionSemanticChangeVariablesEdited | RevisionSemanticChangeReusableContentCreated | RevisionSemanticChangeReusableContentDeleted | RevisionSemanticChangeReusableContentEdited | RevisionSemanticChangeTagCreated | RevisionSemanticChangeTagDeleted | RevisionSemanticChangeTagEdited;
|
|
9902
|
+
/** The content of the space a node shows changed. `before` and `after` are always the same space; a node that shows another space is a different change. A space shown by several nodes has this change, with the same page changes, under each of them. Pages the changes refer to are listed under the node in `includes.pages`. */
|
|
9903
|
+
export interface SiteRevisionChangeSpaceContentEdited {
|
|
9904
|
+
type: "space_content_edited";
|
|
9905
|
+
/** Key of the space node. */
|
|
9906
|
+
node: string;
|
|
9907
|
+
content: {
|
|
9908
|
+
/** Content in the base. Absent when the base has none, in which case every page is listed as created. */
|
|
9909
|
+
before?: SiteRevisionNodeContent;
|
|
9910
|
+
/** Content in the site revision. */
|
|
9911
|
+
after: SiteRevisionNodeContent;
|
|
9912
|
+
};
|
|
9913
|
+
/** Changes of the content's pages and library. */
|
|
9914
|
+
changes: SiteRevisionContentChange[];
|
|
9915
|
+
}
|
|
9916
|
+
/**
|
|
9917
|
+
* Site revision structure change
|
|
9918
|
+
* A change to a node of the site's structure.
|
|
9919
|
+
*/
|
|
9920
|
+
export type SiteRevisionStructureChange = SiteRevisionChangeSpaceContentEdited;
|
|
9921
|
+
/** An OpenAPI spec of the organization. */
|
|
9922
|
+
export interface ChangedOpenAPISpec {
|
|
9923
|
+
/** ID of the spec. */
|
|
9924
|
+
id: string;
|
|
9925
|
+
/** Slug of the spec. */
|
|
9926
|
+
slug: string;
|
|
9927
|
+
}
|
|
9928
|
+
/** An OpenAPI spec is at another version. */
|
|
9929
|
+
export interface SiteRevisionChangeOpenAPISpecEdited {
|
|
9930
|
+
type: "openapi_spec_edited";
|
|
9931
|
+
/** An OpenAPI spec of the organization. */
|
|
9932
|
+
spec: ChangedOpenAPISpec;
|
|
9933
|
+
/** Version of the spec. */
|
|
9934
|
+
version: {
|
|
9935
|
+
/** Version in the base. Absent when the base has none. */
|
|
9936
|
+
before?: string;
|
|
9937
|
+
/** Version in the site revision. */
|
|
9938
|
+
after: string;
|
|
9939
|
+
};
|
|
9940
|
+
}
|
|
9941
|
+
/**
|
|
9942
|
+
* Site revision OpenAPI change
|
|
9943
|
+
* A change to an OpenAPI spec.
|
|
9944
|
+
*/
|
|
9945
|
+
export type SiteRevisionOpenAPIChange = SiteRevisionChangeOpenAPISpecEdited;
|
|
9946
|
+
/** A node of the site's structure: a section group, a section or a space. A space node is a place where the site shows content; the same content can be shown by several of them. Fields hold the node as it is in the site revision, whether or not they changed; a change to one is listed as its own change. */
|
|
9947
|
+
export interface SiteRevisionNode {
|
|
9948
|
+
/** Key of the node, unique across the nodes of the site. It is the node's key in the site's Git Sync configuration, or the key exporting the site would store for it when it has none yet. */
|
|
9949
|
+
key: string;
|
|
9950
|
+
/** Type of a node of the site's structure. */
|
|
9951
|
+
type: SiteRevisionNodeType;
|
|
9952
|
+
/** Key of the node it is in. Null for a node at the top of the site. */
|
|
9953
|
+
parent: string | null;
|
|
9954
|
+
title: string;
|
|
9955
|
+
/** Path of a section or space in the site's URLs. */
|
|
9956
|
+
path?: string;
|
|
9957
|
+
/** Icon of a section or section group, if it has one. */
|
|
9958
|
+
icon?: Icon;
|
|
9959
|
+
/** Emoji of the space a space node shows. It'll match the emoji shown in the GitBook app. */
|
|
9960
|
+
emoji?: Emoji;
|
|
9961
|
+
/** URL of the icon of the space a space node shows, if defined. */
|
|
9962
|
+
iconURL?: URL;
|
|
9963
|
+
/** Whether the node is a draft, not shown on the live site. */
|
|
9964
|
+
draft: boolean;
|
|
9965
|
+
/** Whether a space node is hidden from the site's navigation. Only on space nodes: a section is hidden when all of its space nodes are. */
|
|
9966
|
+
hidden?: boolean;
|
|
9967
|
+
/** Content a space node shows. */
|
|
9968
|
+
content?: SiteRevisionNodeContent;
|
|
9969
|
+
}
|
|
9970
|
+
/** A page of the content a space node shows. Fields hold the page as it is in the site revision, or in the base for a page deleted since. */
|
|
9971
|
+
export interface SiteRevisionPage {
|
|
9972
|
+
/** Key of the space node showing the page. */
|
|
9973
|
+
node: string;
|
|
9974
|
+
/** ID of the page, unique within the node. */
|
|
9975
|
+
id: string;
|
|
9976
|
+
type: RevisionPageType;
|
|
9977
|
+
title: string;
|
|
9978
|
+
/** Path of the page within the node. Absent for a link. */
|
|
9979
|
+
path?: string;
|
|
9980
|
+
/** ID of the page it is in. Null for a page at the top of the node. */
|
|
9981
|
+
parent: string | null;
|
|
9982
|
+
}
|
|
9983
|
+
/**
|
|
9984
|
+
* Site revision changes
|
|
9985
|
+
* Changes between a site revision and its base. A space or spec the site revision doesn't pin is read live, so it is never a change. Changes refer to nodes and pages, which are listed once in `includes`.
|
|
9986
|
+
*/
|
|
9987
|
+
export interface SiteRevisionChanges {
|
|
9988
|
+
/** Site revision whose changes are listed. */
|
|
9989
|
+
head: string;
|
|
9990
|
+
/** Site revision compared against. Absent when compared against the live site. */
|
|
9991
|
+
base?: string;
|
|
9992
|
+
/** Changes to the site's structure and the content it shows, in site order. */
|
|
9993
|
+
structure: {
|
|
9994
|
+
/** Changes the caller can view. */
|
|
9995
|
+
changes: SiteRevisionStructureChange[];
|
|
9996
|
+
};
|
|
9997
|
+
/** Changes to OpenAPI specs. Empty when the caller can't read the organization's specs. */
|
|
9998
|
+
openapi: {
|
|
9999
|
+
changes: SiteRevisionOpenAPIChange[];
|
|
10000
|
+
};
|
|
10001
|
+
/** What the changes refer to, with their ancestors, each listed once. Every entry comes after its parent, so a tree can be built in one pass. */
|
|
10002
|
+
includes: {
|
|
10003
|
+
/** Nodes of the site's structure the changes refer to, and their ancestors, as a flat list in site order. Nodes are linked to their parent by `parent`. */
|
|
10004
|
+
structure: SiteRevisionNode[];
|
|
10005
|
+
/** Pages the changes refer to, and their ancestors, under the space node showing them. Pages come in the order of the node's content; a page deleted since the base comes after those of the site revision. */
|
|
10006
|
+
pages: SiteRevisionPage[];
|
|
10007
|
+
};
|
|
10008
|
+
}
|
|
9853
10009
|
export interface SiteSectionGroupPointer {
|
|
9854
10010
|
type: "site-section" | "site-section-group";
|
|
9855
10011
|
/** Unique identifier for the site section */
|
|
@@ -10936,7 +11092,7 @@ export interface APIProfilingSession {
|
|
|
10936
11092
|
id: string;
|
|
10937
11093
|
status: "active" | "stopped" | "expired";
|
|
10938
11094
|
/** The profiler selected for this session. Earlier sessions without this field use CPU profiling. */
|
|
10939
|
-
mode?: "cpu" | "allocations";
|
|
11095
|
+
mode?: "cpu" | "allocations" | "heap-snapshot";
|
|
10940
11096
|
releaseVersion: string;
|
|
10941
11097
|
releaseBuild: string;
|
|
10942
11098
|
/** @format date-time */
|
|
@@ -11816,6 +11972,22 @@ export type GitSyncSiteStructureNode = GitSyncSiteStructureSectionGroup | GitSyn
|
|
|
11816
11972
|
* languages at the same time.
|
|
11817
11973
|
*/
|
|
11818
11974
|
export type GitSyncSiteStructure = GitSyncSiteStructureNode[];
|
|
11975
|
+
/**
|
|
11976
|
+
* Path of a YAML or JSON file, relative to the directory holding
|
|
11977
|
+
* `gitbook-docs.yaml`. The path must stay inside that directory.
|
|
11978
|
+
* @minLength 1
|
|
11979
|
+
* @maxLength 1024
|
|
11980
|
+
* @pattern \.(ya?ml|json)$
|
|
11981
|
+
*/
|
|
11982
|
+
export type GitSyncSiteOpenAPISpecPath = string;
|
|
11983
|
+
/**
|
|
11984
|
+
* An OpenAPI specification imported from the repository. Either the path of
|
|
11985
|
+
* the specification file, or an object with the file as `source`.
|
|
11986
|
+
*/
|
|
11987
|
+
export type GitSyncSiteOpenAPISpec = GitSyncSiteOpenAPISpecPath | {
|
|
11988
|
+
/** Path of the specification file. */
|
|
11989
|
+
source: GitSyncSiteOpenAPISpecPath;
|
|
11990
|
+
};
|
|
11819
11991
|
/**
|
|
11820
11992
|
* Schema for a site `gitbook-docs.yaml` file — the canonical contract for what
|
|
11821
11993
|
* can be authored in Git Sync to drive a site's structure.
|
|
@@ -11928,7 +12100,36 @@ export interface GitSyncSiteConfig {
|
|
|
11928
12100
|
*/
|
|
11929
12101
|
structure: GitSyncSiteStructure;
|
|
11930
12102
|
};
|
|
12103
|
+
/**
|
|
12104
|
+
* OpenAPI specifications imported from the repository, keyed by the slug
|
|
12105
|
+
* of the organization's specification they update. Each value is either
|
|
12106
|
+
* the path of the specification file, or an object with the file as
|
|
12107
|
+
* `source`:
|
|
12108
|
+
*
|
|
12109
|
+
* ```yaml
|
|
12110
|
+
* openapi:
|
|
12111
|
+
* petstore: ./petstore.yaml
|
|
12112
|
+
* billing:
|
|
12113
|
+
* source: ./billing.yaml
|
|
12114
|
+
* ```
|
|
12115
|
+
*
|
|
12116
|
+
* This is in early rollout: it may not take effect for your organization
|
|
12117
|
+
* yet, in which case listed specifications are not imported.
|
|
12118
|
+
*
|
|
12119
|
+
* Each commit that changes a listed file updates the specification, which
|
|
12120
|
+
* is created private if the organization has none with that slug. Changes
|
|
12121
|
+
* made in GitBook are not written back to the repository: the next commit
|
|
12122
|
+
* to the file replaces them. Removing an entry leaves the specification in
|
|
12123
|
+
* GitBook.
|
|
12124
|
+
*/
|
|
12125
|
+
openapi?: Record<OpenAPISpecSlug, GitSyncSiteOpenAPISpec>;
|
|
11931
12126
|
}
|
|
12127
|
+
/**
|
|
12128
|
+
* Name of the SCIM connection, shown to organization admins.
|
|
12129
|
+
* @minLength 1
|
|
12130
|
+
* @maxLength 100
|
|
12131
|
+
*/
|
|
12132
|
+
export type SCIMConnectionLabel = string;
|
|
11932
12133
|
export type IntegrationEnvironmentSpaceInstallation = IntegrationContentInstallationBase & {
|
|
11933
12134
|
/** The space the integration is installed on. */
|
|
11934
12135
|
space: string;
|
|
@@ -12466,11 +12667,6 @@ export interface APIChannelOrganizationTranslationsGlossary {
|
|
|
12466
12667
|
channel: "organization-translations-glossary";
|
|
12467
12668
|
organization: string;
|
|
12468
12669
|
}
|
|
12469
|
-
/** Subscription channel for changes in the SCIM connections of an organization. */
|
|
12470
|
-
export interface APIChannelOrganizationSCIMConnections {
|
|
12471
|
-
channel: "organization-scim-connections";
|
|
12472
|
-
organization: string;
|
|
12473
|
-
}
|
|
12474
12670
|
/** Subscription channel for changes in the email domains of an organization. */
|
|
12475
12671
|
export interface APIChannelOrganizationDomains {
|
|
12476
12672
|
channel: "organization-domains";
|
|
@@ -13768,6 +13964,61 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
13768
13964
|
revision: string;
|
|
13769
13965
|
result: "merge" | "conflicts";
|
|
13770
13966
|
}, any>>;
|
|
13967
|
+
/**
|
|
13968
|
+
* @description Checks whether a revert draft can be created for a merged change request without creating one. Requires permission to edit the space and returns whether the merge can be reverted along with the first blocker when it cannot.
|
|
13969
|
+
*
|
|
13970
|
+
* @tags change-requests
|
|
13971
|
+
* @name GetChangeRequestRevert
|
|
13972
|
+
* @summary Check whether a merged change request can be reverted
|
|
13973
|
+
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/revert
|
|
13974
|
+
* @secure
|
|
13975
|
+
*/
|
|
13976
|
+
getChangeRequestRevert: (spaceId: EntityId, changeRequestId: EntityId, params?: RequestParams) => Promise<HttpResponse<{
|
|
13977
|
+
/** Whether a revert draft can be created for this change request. */
|
|
13978
|
+
revertable: boolean;
|
|
13979
|
+
/** Reason the change request cannot be reverted, when revertable is false. */
|
|
13980
|
+
reason?: string;
|
|
13981
|
+
}, {
|
|
13982
|
+
error: {
|
|
13983
|
+
/** @format int32 */
|
|
13984
|
+
code: 403;
|
|
13985
|
+
message: string;
|
|
13986
|
+
};
|
|
13987
|
+
} | {
|
|
13988
|
+
error: {
|
|
13989
|
+
/** @format int32 */
|
|
13990
|
+
code: 404;
|
|
13991
|
+
message: string;
|
|
13992
|
+
};
|
|
13993
|
+
}>>;
|
|
13994
|
+
/**
|
|
13995
|
+
* @description Creates a draft that restores all changed page bodies from before a merge. The draft starts from current content and follows the space's ordinary review and merge rules. This operation may be unavailable for some spaces. It requires permission to edit the space. It returns a conflict when a complete undo is impossible. For example, the merge may have changed more than 100 pages or made changes beyond page bodies. An affected page or its visibility may have changed since the merge, or the earlier content may be unavailable. Restored pages resolve references against current content. Repeating the operation returns the same revert change request in any status.
|
|
13996
|
+
*
|
|
13997
|
+
* @tags change-requests
|
|
13998
|
+
* @name RevertChangeRequest
|
|
13999
|
+
* @summary Create a change request that undoes a merge
|
|
14000
|
+
* @request POST:/spaces/{spaceId}/change-requests/{changeRequestId}/revert
|
|
14001
|
+
* @secure
|
|
14002
|
+
*/
|
|
14003
|
+
revertChangeRequest: (spaceId: EntityId, changeRequestId: EntityId, params?: RequestParams) => Promise<HttpResponse<ChangeRequest, {
|
|
14004
|
+
error: {
|
|
14005
|
+
/** @format int32 */
|
|
14006
|
+
code: 403;
|
|
14007
|
+
message: string;
|
|
14008
|
+
};
|
|
14009
|
+
} | {
|
|
14010
|
+
error: {
|
|
14011
|
+
/** @format int32 */
|
|
14012
|
+
code: 404;
|
|
14013
|
+
message: string;
|
|
14014
|
+
};
|
|
14015
|
+
} | {
|
|
14016
|
+
error: {
|
|
14017
|
+
/** @format int32 */
|
|
14018
|
+
code: 409;
|
|
14019
|
+
message: string;
|
|
14020
|
+
};
|
|
14021
|
+
}>>;
|
|
13771
14022
|
/**
|
|
13772
14023
|
* @description Rebases the change request onto the latest primary revision of the space, pulling in any changes that were merged to the live space since this change request was created. Run this before merging to minimise conflicts, especially if the change request has been open for a while.
|
|
13773
14024
|
*
|
|
@@ -16272,11 +16523,17 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
16272
16523
|
updateMemberInOrganizationById: (organizationId: EntityId, userId: string, data: {
|
|
16273
16524
|
/** The role of a member in an organization, null for guests */
|
|
16274
16525
|
role?: MemberRoleOrGuest;
|
|
16275
|
-
/** Disable or re-enable the member. Only members disabled by an admin can be re-enabled. */
|
|
16526
|
+
/** Disable or re-enable the member. Directory-managed access is changed through the identity provider. Only members disabled by an admin can be re-enabled through this operation. */
|
|
16276
16527
|
disabled?: boolean;
|
|
16277
|
-
}, params?: RequestParams) => Promise<HttpResponse<OrganizationMember,
|
|
16528
|
+
}, params?: RequestParams) => Promise<HttpResponse<OrganizationMember, {
|
|
16529
|
+
error: {
|
|
16530
|
+
/** @format int32 */
|
|
16531
|
+
code: 412;
|
|
16532
|
+
message: string;
|
|
16533
|
+
};
|
|
16534
|
+
}>>;
|
|
16278
16535
|
/**
|
|
16279
|
-
* @description Users cannot remove their own membership. Ask another organization admin to remove it.
|
|
16536
|
+
* @description Users cannot remove their own membership. Ask another organization admin to remove it. Remove directory-managed members through the identity provider.
|
|
16280
16537
|
*
|
|
16281
16538
|
* @tags organization-members
|
|
16282
16539
|
* @name RemoveMemberFromOrganizationById
|
|
@@ -16284,7 +16541,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
16284
16541
|
* @request DELETE:/orgs/{organizationId}/members/{userId}
|
|
16285
16542
|
* @secure
|
|
16286
16543
|
*/
|
|
16287
|
-
removeMemberFromOrganizationById: (organizationId: EntityId, userId: string, params?: RequestParams) => Promise<HttpResponse<void,
|
|
16544
|
+
removeMemberFromOrganizationById: (organizationId: EntityId, userId: string, params?: RequestParams) => Promise<HttpResponse<void, {
|
|
16545
|
+
error: {
|
|
16546
|
+
/** @format int32 */
|
|
16547
|
+
code: 412;
|
|
16548
|
+
message: string;
|
|
16549
|
+
};
|
|
16550
|
+
}>>;
|
|
16288
16551
|
/**
|
|
16289
16552
|
* No description
|
|
16290
16553
|
*
|
|
@@ -16625,7 +16888,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
16625
16888
|
* @request DELETE:/orgs/{organizationId}/idp-connections/{idpConnectionId}
|
|
16626
16889
|
* @secure
|
|
16627
16890
|
*/
|
|
16628
|
-
deleteOrganizationIdPConnection: (organizationId: EntityId, idpConnectionId: string,
|
|
16891
|
+
deleteOrganizationIdPConnection: (organizationId: EntityId, idpConnectionId: string, query?: {
|
|
16892
|
+
/**
|
|
16893
|
+
* What happens to the members linked to the connection through SCIM.
|
|
16894
|
+
* @default "keep"
|
|
16895
|
+
*/
|
|
16896
|
+
members?: IdPConnectionMembersAction;
|
|
16897
|
+
}, params?: RequestParams) => Promise<HttpResponse<void, {
|
|
16629
16898
|
error: {
|
|
16630
16899
|
/** @format int32 */
|
|
16631
16900
|
code: 404;
|
|
@@ -17277,124 +17546,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
17277
17546
|
message: string;
|
|
17278
17547
|
};
|
|
17279
17548
|
}>>;
|
|
17280
|
-
/**
|
|
17281
|
-
* No description
|
|
17282
|
-
*
|
|
17283
|
-
* @tags scim
|
|
17284
|
-
* @name ListOrganizationScimConnections
|
|
17285
|
-
* @summary List SCIM connections
|
|
17286
|
-
* @request GET:/orgs/{organizationId}/scim/connections
|
|
17287
|
-
* @secure
|
|
17288
|
-
*/
|
|
17289
|
-
listOrganizationScimConnections: (organizationId: EntityId, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
17290
|
-
items: OrganizationSCIMConnection[];
|
|
17291
|
-
}, {
|
|
17292
|
-
error: {
|
|
17293
|
-
/** @format int32 */
|
|
17294
|
-
code: 404;
|
|
17295
|
-
message: string;
|
|
17296
|
-
};
|
|
17297
|
-
}>>;
|
|
17298
|
-
/**
|
|
17299
|
-
* @description Creates a SCIM connection and its token. The token is only returned in this response.
|
|
17300
|
-
*
|
|
17301
|
-
* @tags scim
|
|
17302
|
-
* @name CreateOrganizationScimConnection
|
|
17303
|
-
* @summary Create a SCIM connection
|
|
17304
|
-
* @request POST:/orgs/{organizationId}/scim/connections
|
|
17305
|
-
* @secure
|
|
17306
|
-
*/
|
|
17307
|
-
createOrganizationScimConnection: (organizationId: EntityId, data: {
|
|
17308
|
-
/** Name of the SCIM connection, shown to organization admins. */
|
|
17309
|
-
label: SCIMConnectionLabel;
|
|
17310
|
-
/** Identity provider behind the connection. */
|
|
17311
|
-
provider: IdPConnectionProvider;
|
|
17312
|
-
}, params?: RequestParams) => Promise<HttpResponse<OrganizationSCIMConnectionWithToken, {
|
|
17313
|
-
error: {
|
|
17314
|
-
/** @format int32 */
|
|
17315
|
-
code: 400;
|
|
17316
|
-
message: string;
|
|
17317
|
-
};
|
|
17318
|
-
} | {
|
|
17319
|
-
error: {
|
|
17320
|
-
/** @format int32 */
|
|
17321
|
-
code: 404;
|
|
17322
|
-
message: string;
|
|
17323
|
-
};
|
|
17324
|
-
}>>;
|
|
17325
|
-
/**
|
|
17326
|
-
* No description
|
|
17327
|
-
*
|
|
17328
|
-
* @tags scim
|
|
17329
|
-
* @name GetOrganizationScimConnection
|
|
17330
|
-
* @summary Get a SCIM connection by its ID
|
|
17331
|
-
* @request GET:/orgs/{organizationId}/scim/connections/{scimConnectionId}
|
|
17332
|
-
* @secure
|
|
17333
|
-
*/
|
|
17334
|
-
getOrganizationScimConnection: (organizationId: EntityId, scimConnectionId: string, params?: RequestParams) => Promise<HttpResponse<OrganizationSCIMConnection, {
|
|
17335
|
-
error: {
|
|
17336
|
-
/** @format int32 */
|
|
17337
|
-
code: 404;
|
|
17338
|
-
message: string;
|
|
17339
|
-
};
|
|
17340
|
-
}>>;
|
|
17341
|
-
/**
|
|
17342
|
-
* No description
|
|
17343
|
-
*
|
|
17344
|
-
* @tags scim
|
|
17345
|
-
* @name UpdateOrganizationScimConnection
|
|
17346
|
-
* @summary Update a SCIM connection
|
|
17347
|
-
* @request PATCH:/orgs/{organizationId}/scim/connections/{scimConnectionId}
|
|
17348
|
-
* @secure
|
|
17349
|
-
*/
|
|
17350
|
-
updateOrganizationScimConnection: (organizationId: EntityId, scimConnectionId: string, data: {
|
|
17351
|
-
/** Name of the SCIM connection, shown to organization admins. */
|
|
17352
|
-
label: SCIMConnectionLabel;
|
|
17353
|
-
}, params?: RequestParams) => Promise<HttpResponse<OrganizationSCIMConnection, {
|
|
17354
|
-
error: {
|
|
17355
|
-
/** @format int32 */
|
|
17356
|
-
code: 400;
|
|
17357
|
-
message: string;
|
|
17358
|
-
};
|
|
17359
|
-
} | {
|
|
17360
|
-
error: {
|
|
17361
|
-
/** @format int32 */
|
|
17362
|
-
code: 404;
|
|
17363
|
-
message: string;
|
|
17364
|
-
};
|
|
17365
|
-
}>>;
|
|
17366
|
-
/**
|
|
17367
|
-
* @description Deletes a SCIM connection. Its token stops working immediately.
|
|
17368
|
-
*
|
|
17369
|
-
* @tags scim
|
|
17370
|
-
* @name DeleteOrganizationScimConnection
|
|
17371
|
-
* @summary Delete a SCIM connection
|
|
17372
|
-
* @request DELETE:/orgs/{organizationId}/scim/connections/{scimConnectionId}
|
|
17373
|
-
* @secure
|
|
17374
|
-
*/
|
|
17375
|
-
deleteOrganizationScimConnection: (organizationId: EntityId, scimConnectionId: string, params?: RequestParams) => Promise<HttpResponse<void, {
|
|
17376
|
-
error: {
|
|
17377
|
-
/** @format int32 */
|
|
17378
|
-
code: 404;
|
|
17379
|
-
message: string;
|
|
17380
|
-
};
|
|
17381
|
-
}>>;
|
|
17382
|
-
/**
|
|
17383
|
-
* @description Replaces the token of a SCIM connection. The previous token stops working immediately, and the new token is only returned in this response.
|
|
17384
|
-
*
|
|
17385
|
-
* @tags scim
|
|
17386
|
-
* @name RotateOrganizationScimConnectionToken
|
|
17387
|
-
* @summary Rotate the token of a SCIM connection
|
|
17388
|
-
* @request POST:/orgs/{organizationId}/scim/connections/{scimConnectionId}/token
|
|
17389
|
-
* @secure
|
|
17390
|
-
*/
|
|
17391
|
-
rotateOrganizationScimConnectionToken: (organizationId: EntityId, scimConnectionId: string, params?: RequestParams) => Promise<HttpResponse<OrganizationSCIMConnectionWithToken, {
|
|
17392
|
-
error: {
|
|
17393
|
-
/** @format int32 */
|
|
17394
|
-
code: 404;
|
|
17395
|
-
message: string;
|
|
17396
|
-
};
|
|
17397
|
-
}>>;
|
|
17398
17549
|
/**
|
|
17399
17550
|
* No description
|
|
17400
17551
|
*
|
|
@@ -20204,7 +20355,26 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
20204
20355
|
};
|
|
20205
20356
|
}>>;
|
|
20206
20357
|
/**
|
|
20207
|
-
* @description
|
|
20358
|
+
* @description Returns the changes between two site revisions.
|
|
20359
|
+
*
|
|
20360
|
+
* @tags sites
|
|
20361
|
+
* @name GetSiteRevisionChanges
|
|
20362
|
+
* @summary Get the changes of a site revision
|
|
20363
|
+
* @request GET:/orgs/{organizationId}/sites/{siteId}/revisions/{siteRevisionId}/changes
|
|
20364
|
+
* @secure
|
|
20365
|
+
*/
|
|
20366
|
+
getSiteRevisionChanges: (organizationId: EntityId, siteId: string, siteRevisionId: string, query?: {
|
|
20367
|
+
/** Site revision to compare against. Defaults to the live site. */
|
|
20368
|
+
base?: string;
|
|
20369
|
+
}, params?: RequestParams) => Promise<HttpResponse<SiteRevisionChanges, {
|
|
20370
|
+
error: {
|
|
20371
|
+
/** @format int32 */
|
|
20372
|
+
code: 404;
|
|
20373
|
+
message: string;
|
|
20374
|
+
};
|
|
20375
|
+
}>>;
|
|
20376
|
+
/**
|
|
20377
|
+
* @description Returns the revision of a space at a site revision.
|
|
20208
20378
|
*
|
|
20209
20379
|
* @tags sites
|
|
20210
20380
|
* @name GetRevisionInSiteRevision
|
|
@@ -20225,7 +20395,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
20225
20395
|
computed?: boolean;
|
|
20226
20396
|
}, params?: RequestParams) => Promise<HttpResponse<Revision, any>>;
|
|
20227
20397
|
/**
|
|
20228
|
-
* @description Returns a page
|
|
20398
|
+
* @description Returns a page of a space at a site revision.
|
|
20229
20399
|
*
|
|
20230
20400
|
* @tags sites
|
|
20231
20401
|
* @name GetPageInSiteRevision
|
|
@@ -20272,7 +20442,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
20272
20442
|
computed?: boolean;
|
|
20273
20443
|
}, params?: RequestParams) => Promise<HttpResponse<RevisionPage, any>>;
|
|
20274
20444
|
/**
|
|
20275
|
-
* @description Returns the meta links of a page
|
|
20445
|
+
* @description Returns the meta links of a page at a site revision.
|
|
20276
20446
|
*
|
|
20277
20447
|
* @tags sites
|
|
20278
20448
|
* @name ListPageMetaLinksInSiteRevision
|
|
@@ -20282,7 +20452,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
20282
20452
|
*/
|
|
20283
20453
|
listPageMetaLinksInSiteRevision: (organizationId: EntityId, siteId: string, siteRevisionId: string, spaceId: EntityId, pageId: EntityId, params?: RequestParams) => Promise<HttpResponse<RevisionPageMetaLinks, any>>;
|
|
20284
20454
|
/**
|
|
20285
|
-
* @description Returns
|
|
20455
|
+
* @description Returns a page of a space by its path at a site revision.
|
|
20286
20456
|
*
|
|
20287
20457
|
* @tags sites
|
|
20288
20458
|
* @name GetPageByPathInSiteRevision
|
|
@@ -20334,7 +20504,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
20334
20504
|
computed?: boolean;
|
|
20335
20505
|
}, params?: RequestParams) => Promise<HttpResponse<RevisionPageDocument | RevisionPageGroup, any>>;
|
|
20336
20506
|
/**
|
|
20337
|
-
* @description Returns the document of a reusable content
|
|
20507
|
+
* @description Returns the document of a reusable content at a site revision.
|
|
20338
20508
|
*
|
|
20339
20509
|
* @tags sites
|
|
20340
20510
|
* @name GetReusableContentDocumentInSiteRevision
|
|
@@ -20361,7 +20531,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
20361
20531
|
dereferenced?: boolean | "reusable-contents";
|
|
20362
20532
|
}, params?: RequestParams) => Promise<HttpResponse<JSONDocument, any>>;
|
|
20363
20533
|
/**
|
|
20364
|
-
* @description Returns the
|
|
20534
|
+
* @description Returns the document of a page at a site revision.
|
|
20365
20535
|
*
|
|
20366
20536
|
* @tags sites
|
|
20367
20537
|
* @name GetPageDocumentInSiteRevision
|
|
@@ -20388,7 +20558,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
20388
20558
|
dereferenced?: boolean | "reusable-contents";
|
|
20389
20559
|
}, params?: RequestParams) => Promise<HttpResponse<JSONDocument, any>>;
|
|
20390
20560
|
/**
|
|
20391
|
-
* @description
|
|
20561
|
+
* @description Returns the content of an OpenAPI spec at a site revision.
|
|
20392
20562
|
*
|
|
20393
20563
|
* @tags sites
|
|
20394
20564
|
* @name GetOpenApiSpecContentInSiteRevision
|
|
@@ -20883,7 +21053,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
20883
21053
|
destination: SiteRedirectInputDestination;
|
|
20884
21054
|
}, params?: RequestParams) => Promise<HttpResponse<SiteRedirect, any>>;
|
|
20885
21055
|
/**
|
|
20886
|
-
* @description Processes up to
|
|
21056
|
+
* @description Processes up to 2,000 redirect operations in a single request. Each redirect in the array is processed independently and the response includes per-item status. Prefer this over individual create/update calls when managing large sets of redirects.
|
|
20887
21057
|
*
|
|
20888
21058
|
* @tags site-redirects
|
|
20889
21059
|
* @name BulkUpsertSiteRedirects
|
|
@@ -20893,7 +21063,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
20893
21063
|
*/
|
|
20894
21064
|
bulkUpsertSiteRedirects: (organizationId: EntityId, siteId: string, data: {
|
|
20895
21065
|
/**
|
|
20896
|
-
* @maxItems
|
|
21066
|
+
* @maxItems 2000
|
|
20897
21067
|
* @minItems 1
|
|
20898
21068
|
*/
|
|
20899
21069
|
redirects: ({
|
|
@@ -20985,7 +21155,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
20985
21155
|
* @max 1000
|
|
20986
21156
|
*/
|
|
20987
21157
|
limit?: number;
|
|
20988
|
-
/** Search for a redirect by path */
|
|
21158
|
+
/** Search for a redirect by path. Values starting with "/" match by prefix; other values match any substring. */
|
|
20989
21159
|
search?: string;
|
|
20990
21160
|
/**
|
|
20991
21161
|
* Filter redirects by draft mode.
|