@gitbook/api 0.179.0 → 0.180.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 +133 -13
- package/dist/constants.d.ts +1 -0
- package/dist/index.cjs +23 -1
- package/dist/index.js +21 -1
- package/package.json +1 -1
- package/spec/openapi.json +237 -70
- package/spec/openapi.yaml +167 -51
package/dist/client.d.ts
CHANGED
|
@@ -166,6 +166,8 @@ export declare enum SiteInsightsVisitorBot {
|
|
|
166
166
|
Facebookbot = "facebookbot",
|
|
167
167
|
Applebot = "applebot",
|
|
168
168
|
Chatgpt = "chatgpt",
|
|
169
|
+
Openai = "openai",
|
|
170
|
+
Claude = "claude",
|
|
169
171
|
Anthropic = "anthropic",
|
|
170
172
|
Gemini = "gemini",
|
|
171
173
|
Perplexity = "perplexity",
|
|
@@ -179,7 +181,9 @@ export declare enum SiteInsightsVisitorBot {
|
|
|
179
181
|
Youbot = "youbot",
|
|
180
182
|
Cursor = "cursor",
|
|
181
183
|
Vscode = "vscode",
|
|
182
|
-
ClaudeCode = "claude-code"
|
|
184
|
+
ClaudeCode = "claude-code",
|
|
185
|
+
Codex = "codex",
|
|
186
|
+
Opencode = "opencode"
|
|
183
187
|
}
|
|
184
188
|
export declare enum SiteInsightsVisitorOS {
|
|
185
189
|
Windows = "windows",
|
|
@@ -988,6 +992,11 @@ export declare enum GitSyncProvider {
|
|
|
988
992
|
Gitlab = "gitlab",
|
|
989
993
|
GithubLegacy = "github-legacy"
|
|
990
994
|
}
|
|
995
|
+
export declare enum GitSyncInstallationStatus {
|
|
996
|
+
Unauthenticated = "unauthenticated",
|
|
997
|
+
Active = "active",
|
|
998
|
+
Pending = "pending"
|
|
999
|
+
}
|
|
991
1000
|
export declare enum TranslationLanguage {
|
|
992
1001
|
En = "en",
|
|
993
1002
|
Fr = "fr",
|
|
@@ -1058,9 +1067,7 @@ export declare enum ContentVisibility {
|
|
|
1058
1067
|
/** Data passed through a realtime channel */
|
|
1059
1068
|
export type APIChannelData = APIChannelGitSyncOperationData | APIChannelSpaceContentRefsData | APIChannelChangeRequestContentRefsData | APIChannelTranslationRunData | APIChannelImportRunData | APIChannelMutationData;
|
|
1060
1069
|
/** Channel to subscribe to for realtime updates. */
|
|
1061
|
-
export type APIChannel = APIChannelSpaceInfo | APIChannelSpaceContent | APIChannelSpaceGitInfo | APIChannelSpacePublishingAuth | APIChannelSpacePublishingCustomization | APIChannelSpaceContentRefs | APIChannelSpaceIntegrations | APIChannelUserAPITokens | APIChannelUserOrganizations | APIChannelUserProfile | APIChannelChangeRequest | APIChannelChangeRequests | APIChannelChangeRequestReviews | APIChannelChangeRequestContentRefs | APIChannelCollection | APIChannelCollectionPublishingCustomization | APIChannelOrganizationInfo | APIChannelOrganizationAgentData | APIChannelOrganizationInviteLinks | APIChannelOrganizationMembers | APIChannelOrganizationMember | APIChannelOrganizationSAML | APIChannelOrganizationTeams | APIChannelOrganizationTeam | APIChannelOrganizationTeamMembers | APIChannelOrganizationTeamMember | APIChannelOrganizationSpaces | APIChannelOrganizationCollections | APIChannelOrganizationIntegrations | APIChannelOrganizationInstallations | APIChannelOrganizationSites | APIChannelOrganizationOpenAPISpecs | APIChannelOrganizationTranslations | APIChannelOrganizationTranslationsGlossary | 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 | APIChannelGitSyncOperation | APIChannelOpenAPISpec | APIChannelSubdomain | APIChannelTranslation | APIChannelTranslationRun | APIChannelImportRun;
|
|
1062
|
-
/** Provider-specific setup payload for a Git Sync installation. */
|
|
1063
|
-
export type GitSyncInstallationSetup = GitSyncInstallationSetupGitHub | GitSyncInstallationSetupGitLab;
|
|
1070
|
+
export type APIChannel = APIChannelSpaceInfo | APIChannelSpaceContent | APIChannelSpaceGitInfo | APIChannelSpacePublishingAuth | APIChannelSpacePublishingCustomization | APIChannelSpaceContentRefs | APIChannelSpaceIntegrations | APIChannelUserAPITokens | APIChannelUserOrganizations | APIChannelUserProfile | APIChannelChangeRequest | APIChannelChangeRequests | APIChannelChangeRequestReviews | APIChannelChangeRequestContentRefs | APIChannelCollection | APIChannelCollectionPublishingCustomization | APIChannelOrganizationInfo | APIChannelOrganizationAgentData | APIChannelOrganizationInviteLinks | APIChannelOrganizationMembers | APIChannelOrganizationMember | APIChannelOrganizationSAML | APIChannelOrganizationTeams | APIChannelOrganizationTeam | APIChannelOrganizationTeamMembers | APIChannelOrganizationTeamMember | APIChannelOrganizationSpaces | APIChannelOrganizationCollections | APIChannelOrganizationIntegrations | APIChannelOrganizationInstallations | APIChannelOrganizationSites | APIChannelOrganizationOpenAPISpecs | APIChannelOrganizationTranslations | APIChannelOrganizationTranslationsGlossary | 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 | APIChannelOpenAPISpec | APIChannelSubdomain | APIChannelTranslation | APIChannelTranslationRun | APIChannelImportRun;
|
|
1064
1071
|
export type PublishedContentRedirect = {
|
|
1065
1072
|
/** Type of target for the redirect */
|
|
1066
1073
|
target: "application" | "content";
|
|
@@ -1210,10 +1217,16 @@ export type MergeRulesSpaceConfiguration = MergeRulesConfigurationInherit | Merg
|
|
|
1210
1217
|
export interface GitSyncState {
|
|
1211
1218
|
/** Repository name. */
|
|
1212
1219
|
repoName?: string;
|
|
1220
|
+
installationStatus?: GitSyncInstallationStatus;
|
|
1213
1221
|
/** The provider of the Git Sync installation. */
|
|
1214
1222
|
installationProvider?: GitSyncProvider;
|
|
1215
|
-
/**
|
|
1223
|
+
/**
|
|
1224
|
+
* The integration name providing the Git Sync.
|
|
1225
|
+
* @deprecated
|
|
1226
|
+
*/
|
|
1216
1227
|
integration?: string;
|
|
1228
|
+
/** The ID of the Git Sync installation. */
|
|
1229
|
+
installationId?: string;
|
|
1217
1230
|
/** The URL to the repository tree, used when rendering public content. */
|
|
1218
1231
|
url?: string;
|
|
1219
1232
|
/** When the Git provider details were last updated */
|
|
@@ -5688,6 +5701,8 @@ export interface ContentImportRun {
|
|
|
5688
5701
|
completedAt?: Timestamp;
|
|
5689
5702
|
/** Status of the import */
|
|
5690
5703
|
status: "pending" | "in-progress" | "completed" | "failed" | "cancelled";
|
|
5704
|
+
/** Reason for the import failure when `status` is `failed`. */
|
|
5705
|
+
reason?: string;
|
|
5691
5706
|
/** Pages included in the import */
|
|
5692
5707
|
pages?: {
|
|
5693
5708
|
/** ID of page */
|
|
@@ -6717,24 +6732,32 @@ export interface AIToolCallEditPage {
|
|
|
6717
6732
|
tool: "editPage";
|
|
6718
6733
|
/** The ID of the space being edited. */
|
|
6719
6734
|
spaceId: string;
|
|
6735
|
+
/** The base revision ID used to compare the page change in the current conversation. */
|
|
6736
|
+
baseRevisionId: string;
|
|
6720
6737
|
page: ChangedRevisionPage;
|
|
6721
6738
|
}
|
|
6722
6739
|
export interface AIToolCallCreatePage {
|
|
6723
6740
|
tool: "createPage";
|
|
6724
6741
|
/** The ID of the space being edited. */
|
|
6725
6742
|
spaceId: string;
|
|
6743
|
+
/** The base revision ID used to compare the page change in the current conversation. */
|
|
6744
|
+
baseRevisionId: string;
|
|
6726
6745
|
page: ChangedRevisionPage;
|
|
6727
6746
|
}
|
|
6728
6747
|
export interface AIToolCallDeletePage {
|
|
6729
6748
|
tool: "deletePage";
|
|
6730
6749
|
/** The ID of the space being edited. */
|
|
6731
6750
|
spaceId: string;
|
|
6751
|
+
/** The base revision ID used to compare the page deletion in the current conversation. */
|
|
6752
|
+
baseRevisionId: string;
|
|
6732
6753
|
page: ChangedRevisionPage;
|
|
6733
6754
|
}
|
|
6734
6755
|
export interface AIToolCallRenamePage {
|
|
6735
6756
|
tool: "renamePage";
|
|
6736
6757
|
/** The ID of the space being edited. */
|
|
6737
6758
|
spaceId: string;
|
|
6759
|
+
/** The base revision ID used to compare the page rename in the current conversation. */
|
|
6760
|
+
baseRevisionId: string;
|
|
6738
6761
|
page: ChangedRevisionPage;
|
|
6739
6762
|
/** The new title of the page. */
|
|
6740
6763
|
title: string;
|
|
@@ -6743,6 +6766,8 @@ export interface AIToolCallMovePage {
|
|
|
6743
6766
|
tool: "movePage";
|
|
6744
6767
|
/** The ID of the space being edited. */
|
|
6745
6768
|
spaceId: string;
|
|
6769
|
+
/** The base revision ID used to compare the page move in the current conversation. */
|
|
6770
|
+
baseRevisionId: string;
|
|
6746
6771
|
page: ChangedRevisionPage;
|
|
6747
6772
|
to?: ChangedRevisionPage;
|
|
6748
6773
|
/**
|
|
@@ -6768,12 +6793,16 @@ export interface AIToolCallCreateReusableContent {
|
|
|
6768
6793
|
tool: "createReusableContent";
|
|
6769
6794
|
/** The ID of the space being edited. */
|
|
6770
6795
|
spaceId: string;
|
|
6796
|
+
/** The base revision ID used to compare the reusable content change in the current conversation. */
|
|
6797
|
+
baseRevisionId: string;
|
|
6771
6798
|
reusableContent: ChangedRevisionReusableContent;
|
|
6772
6799
|
}
|
|
6773
6800
|
export interface AIToolCallEditReusableContent {
|
|
6774
6801
|
tool: "editReusableContent";
|
|
6775
6802
|
/** The ID of the space being edited. */
|
|
6776
6803
|
spaceId: string;
|
|
6804
|
+
/** The base revision ID used to compare the reusable content change in the current conversation. */
|
|
6805
|
+
baseRevisionId: string;
|
|
6777
6806
|
reusableContent: ChangedRevisionReusableContent;
|
|
6778
6807
|
}
|
|
6779
6808
|
export interface AIToolCallGetReusableContent {
|
|
@@ -7996,18 +8025,21 @@ export interface GitSyncInstallationSetupCommon {
|
|
|
7996
8025
|
priority?: GitSyncInstallationPriority;
|
|
7997
8026
|
}
|
|
7998
8027
|
/** GitHub provider configuration for a Git Sync installation. */
|
|
7999
|
-
export
|
|
8028
|
+
export interface GitSyncInstallationSetupGitHub {
|
|
8000
8029
|
provider: "github";
|
|
8001
8030
|
/** GitHub specific configuration for the Git Sync installation. */
|
|
8002
8031
|
providerConfiguration: {
|
|
8003
8032
|
/** GitHub repository identifier. */
|
|
8004
8033
|
repositoryId?: number;
|
|
8005
|
-
/**
|
|
8034
|
+
/**
|
|
8035
|
+
* GitHub repository branch ref.
|
|
8036
|
+
* @pattern ^refs/heads/.+$
|
|
8037
|
+
*/
|
|
8006
8038
|
branch?: string;
|
|
8007
8039
|
};
|
|
8008
|
-
}
|
|
8040
|
+
}
|
|
8009
8041
|
/** GitLab provider configuration for a Git Sync installation. */
|
|
8010
|
-
export
|
|
8042
|
+
export interface GitSyncInstallationSetupGitLab {
|
|
8011
8043
|
provider: "gitlab";
|
|
8012
8044
|
/** GitLab specific configuration for the Git Sync installation. */
|
|
8013
8045
|
providerConfiguration: {
|
|
@@ -8015,22 +8047,36 @@ export type GitSyncInstallationSetupGitLab = GitSyncInstallationSetupCommon & {
|
|
|
8015
8047
|
projectId?: number;
|
|
8016
8048
|
/** GitLab access token with appropriate scopes for repository access. */
|
|
8017
8049
|
accessToken?: string;
|
|
8018
|
-
/** Custom GitLab instance URL, if using a self-hosted GitLab. */
|
|
8019
|
-
customInstanceURL?: string;
|
|
8020
|
-
/**
|
|
8050
|
+
/** Custom GitLab instance URL, if using a self-hosted GitLab. Use null to clear a self-hosted URL. */
|
|
8051
|
+
customInstanceURL?: string | null;
|
|
8052
|
+
/**
|
|
8053
|
+
* GitLab repository branch ref.
|
|
8054
|
+
* @pattern ^refs/heads/.+$
|
|
8055
|
+
*/
|
|
8021
8056
|
branch?: string;
|
|
8022
8057
|
};
|
|
8023
|
-
}
|
|
8058
|
+
}
|
|
8059
|
+
/** Provider-specific setup payload for a Git Sync installation. */
|
|
8060
|
+
export type GitSyncInstallationSetup = GitSyncInstallationSetupCommon & (GitSyncInstallationSetupGitHub | GitSyncInstallationSetupGitLab);
|
|
8024
8061
|
export type GitSyncInstallation = GitSyncInstallationSetup & {
|
|
8025
8062
|
object: "git-sync-installation";
|
|
8026
8063
|
/** Unique identifier of the Git Sync installation. */
|
|
8027
8064
|
id: string;
|
|
8028
8065
|
/** Resource targeted by a Git Sync installation. Currently only spaces are supported. */
|
|
8029
8066
|
target: GitSyncInstallationTarget;
|
|
8067
|
+
status: GitSyncInstallationStatus;
|
|
8030
8068
|
createdAt: Timestamp;
|
|
8031
8069
|
/** Identifier of the user who created the installation. */
|
|
8032
8070
|
createdBy: string;
|
|
8033
8071
|
updatedAt: Timestamp;
|
|
8072
|
+
/** URLs associated with the installation */
|
|
8073
|
+
urls: {
|
|
8074
|
+
/**
|
|
8075
|
+
* URL of the installation endpoint in the API
|
|
8076
|
+
* @format uri
|
|
8077
|
+
*/
|
|
8078
|
+
location: string;
|
|
8079
|
+
};
|
|
8034
8080
|
};
|
|
8035
8081
|
/** GitHub repository that can be selected for Git Sync. */
|
|
8036
8082
|
export interface GitSyncGitHubRepository {
|
|
@@ -8657,6 +8703,10 @@ export interface APIChannelCustomHostname {
|
|
|
8657
8703
|
channel: "custom-hostname";
|
|
8658
8704
|
customHostname: string;
|
|
8659
8705
|
}
|
|
8706
|
+
export interface APIChannelGitSyncInstallation {
|
|
8707
|
+
channel: "git-sync-installation";
|
|
8708
|
+
installation: string;
|
|
8709
|
+
}
|
|
8660
8710
|
export interface APIChannelGitSyncOperation {
|
|
8661
8711
|
channel: "space-gitsync-operation";
|
|
8662
8712
|
space: string;
|
|
@@ -9433,6 +9483,14 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
9433
9483
|
getPageById: (spaceId: EntityId, pageId: EntityId, query?: {
|
|
9434
9484
|
/** Output format for the content. */
|
|
9435
9485
|
format?: "document" | "markdown";
|
|
9486
|
+
/**
|
|
9487
|
+
* Controls how content references are formatted in markdown output. Ignored unless `format=markdown`.
|
|
9488
|
+
*
|
|
9489
|
+
* - `relative`: Format page references as relative links from the current page. Other references might not be handled.
|
|
9490
|
+
* - `stable`: Format content references as stable idempotent refs containing their identifiers.
|
|
9491
|
+
* @default "relative"
|
|
9492
|
+
*/
|
|
9493
|
+
"format.markdown.refs"?: "relative" | "stable";
|
|
9436
9494
|
/**
|
|
9437
9495
|
* Controls whether the document should be evaluated.
|
|
9438
9496
|
* - When set to `true`, the entire document will be evaluated.
|
|
@@ -9531,6 +9589,14 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
9531
9589
|
getPageByPath: (spaceId: EntityId, pagePath: string, query?: {
|
|
9532
9590
|
/** Output format for the content. */
|
|
9533
9591
|
format?: "document" | "markdown";
|
|
9592
|
+
/**
|
|
9593
|
+
* Controls how content references are formatted in markdown output. Ignored unless `format=markdown`.
|
|
9594
|
+
*
|
|
9595
|
+
* - `relative`: Format page references as relative links from the current page. Other references might not be handled.
|
|
9596
|
+
* - `stable`: Format content references as stable idempotent refs containing their identifiers.
|
|
9597
|
+
* @default "relative"
|
|
9598
|
+
*/
|
|
9599
|
+
"format.markdown.refs"?: "relative" | "stable";
|
|
9534
9600
|
/**
|
|
9535
9601
|
* Controls whether the document should be evaluated.
|
|
9536
9602
|
* - When set to `true`, the entire document will be evaluated.
|
|
@@ -10187,6 +10253,14 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10187
10253
|
getPageInChangeRequestById: (spaceId: EntityId, changeRequestId: EntityId, pageId: EntityId, query?: {
|
|
10188
10254
|
/** Output format for the content. */
|
|
10189
10255
|
format?: "document" | "markdown";
|
|
10256
|
+
/**
|
|
10257
|
+
* Controls how content references are formatted in markdown output. Ignored unless `format=markdown`.
|
|
10258
|
+
*
|
|
10259
|
+
* - `relative`: Format page references as relative links from the current page. Other references might not be handled.
|
|
10260
|
+
* - `stable`: Format content references as stable idempotent refs containing their identifiers.
|
|
10261
|
+
* @default "relative"
|
|
10262
|
+
*/
|
|
10263
|
+
"format.markdown.refs"?: "relative" | "stable";
|
|
10190
10264
|
/**
|
|
10191
10265
|
* Controls whether the document should be evaluated.
|
|
10192
10266
|
* - When set to `true`, the entire document will be evaluated.
|
|
@@ -10461,6 +10535,14 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10461
10535
|
getPageInRevisionById: (spaceId: EntityId, revisionId: EntityId, pageId: EntityId, query?: {
|
|
10462
10536
|
/** Output format for the content. */
|
|
10463
10537
|
format?: "document" | "markdown";
|
|
10538
|
+
/**
|
|
10539
|
+
* Controls how content references are formatted in markdown output. Ignored unless `format=markdown`.
|
|
10540
|
+
*
|
|
10541
|
+
* - `relative`: Format page references as relative links from the current page. Other references might not be handled.
|
|
10542
|
+
* - `stable`: Format content references as stable idempotent refs containing their identifiers.
|
|
10543
|
+
* @default "relative"
|
|
10544
|
+
*/
|
|
10545
|
+
"format.markdown.refs"?: "relative" | "stable";
|
|
10464
10546
|
/**
|
|
10465
10547
|
* Controls whether the document should be evaluated.
|
|
10466
10548
|
* - When set to `true`, the entire document will be evaluated.
|
|
@@ -10525,6 +10607,14 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10525
10607
|
getPageInRevisionByPath: (spaceId: EntityId, revisionId: EntityId, pagePath: string, query?: {
|
|
10526
10608
|
/** Output format for the content. */
|
|
10527
10609
|
format?: "document" | "markdown";
|
|
10610
|
+
/**
|
|
10611
|
+
* Controls how content references are formatted in markdown output. Ignored unless `format=markdown`.
|
|
10612
|
+
*
|
|
10613
|
+
* - `relative`: Format page references as relative links from the current page. Other references might not be handled.
|
|
10614
|
+
* - `stable`: Format content references as stable idempotent refs containing their identifiers.
|
|
10615
|
+
* @default "relative"
|
|
10616
|
+
*/
|
|
10617
|
+
"format.markdown.refs"?: "relative" | "stable";
|
|
10528
10618
|
/**
|
|
10529
10619
|
* Controls whether the document should be evaluated.
|
|
10530
10620
|
* - When set to `true`, the entire document will be evaluated.
|
|
@@ -10573,6 +10663,14 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10573
10663
|
getPageInChangeRequestByPath: (spaceId: EntityId, changeRequestId: EntityId, pagePath: string, query?: {
|
|
10574
10664
|
/** Output format for the content. */
|
|
10575
10665
|
format?: "document" | "markdown";
|
|
10666
|
+
/**
|
|
10667
|
+
* Controls how content references are formatted in markdown output. Ignored unless `format=markdown`.
|
|
10668
|
+
*
|
|
10669
|
+
* - `relative`: Format page references as relative links from the current page. Other references might not be handled.
|
|
10670
|
+
* - `stable`: Format content references as stable idempotent refs containing their identifiers.
|
|
10671
|
+
* @default "relative"
|
|
10672
|
+
*/
|
|
10673
|
+
"format.markdown.refs"?: "relative" | "stable";
|
|
10576
10674
|
/**
|
|
10577
10675
|
* Controls whether the document should be evaluated.
|
|
10578
10676
|
* - When set to `true`, the entire document will be evaluated.
|
|
@@ -15650,6 +15748,28 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
15650
15748
|
message: string;
|
|
15651
15749
|
};
|
|
15652
15750
|
}>>;
|
|
15751
|
+
/**
|
|
15752
|
+
* No description
|
|
15753
|
+
*
|
|
15754
|
+
* @tags git
|
|
15755
|
+
* @name GetGitSyncInstallationById
|
|
15756
|
+
* @summary Get a Git Sync installation
|
|
15757
|
+
* @request GET:/git/installations/{installationId}
|
|
15758
|
+
* @secure
|
|
15759
|
+
*/
|
|
15760
|
+
getGitSyncInstallationById: (installationId: string, params?: RequestParams) => Promise<HttpResponse<GitSyncInstallation, {
|
|
15761
|
+
error: {
|
|
15762
|
+
/** @format int32 */
|
|
15763
|
+
code: 401;
|
|
15764
|
+
message: string;
|
|
15765
|
+
};
|
|
15766
|
+
} | {
|
|
15767
|
+
error: {
|
|
15768
|
+
/** @format int32 */
|
|
15769
|
+
code: 404;
|
|
15770
|
+
message: string;
|
|
15771
|
+
};
|
|
15772
|
+
}>>;
|
|
15653
15773
|
/**
|
|
15654
15774
|
* No description
|
|
15655
15775
|
*
|
package/dist/constants.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export declare const SPACE_EDIT_MODE_ENUM: ["live", "locked"];
|
|
|
8
8
|
export declare const EXPRESSION_MAX_LENGTH = 1024;
|
|
9
9
|
export declare const EXPRESSION_MIN_LENGTH = 0;
|
|
10
10
|
export declare const TRANSLATION_LANGUAGE_ENUM: ["en", "fr", "de", "es", "it", "pt", "pt-br", "ru", "ja", "zh", "zh-tw", "yue", "ko", "ar", "hi", "nl", "pl", "tr", "sv", "no", "da", "fi", "el", "cs", "hu", "ro", "th", "vi", "id", "ms", "he", "uk", "sk", "bg", "hr", "lt", "lv", "et", "sl"];
|
|
11
|
+
export declare const GIT_SYNC_INSTALLATION_STATUS_ENUM: ["unauthenticated", "active", "pending"];
|
|
11
12
|
export declare const GIT_SYNC_PROVIDER_ENUM: ["github", "gitlab", "github-legacy"];
|
|
12
13
|
export declare const MEMBER_ROLE_ENUM: ["admin", "create", "edit", "review", "comment", "read"];
|
|
13
14
|
export declare const ORGANIZATION_TEAM_TITLE_MAX_LENGTH = 64;
|
package/dist/index.cjs
CHANGED
|
@@ -309,6 +309,7 @@ __export(src_exports, {
|
|
|
309
309
|
GIT_HUB_REPOSITORY_PATTERN_PATTERN: () => GIT_HUB_REPOSITORY_PATTERN_PATTERN,
|
|
310
310
|
GIT_SYNC_INSTALLATION_PRIORITY_ENUM: () => GIT_SYNC_INSTALLATION_PRIORITY_ENUM,
|
|
311
311
|
GIT_SYNC_INSTALLATION_PROVIDER_ENUM: () => GIT_SYNC_INSTALLATION_PROVIDER_ENUM,
|
|
312
|
+
GIT_SYNC_INSTALLATION_STATUS_ENUM: () => GIT_SYNC_INSTALLATION_STATUS_ENUM,
|
|
312
313
|
GIT_SYNC_OPERATION_DIRECTION_ENUM: () => GIT_SYNC_OPERATION_DIRECTION_ENUM,
|
|
313
314
|
GIT_SYNC_OPERATION_STAGE_ENUM: () => GIT_SYNC_OPERATION_STAGE_ENUM,
|
|
314
315
|
GIT_SYNC_OPERATION_STATE_ENUM: () => GIT_SYNC_OPERATION_STATE_ENUM,
|
|
@@ -318,6 +319,7 @@ __export(src_exports, {
|
|
|
318
319
|
GitBookUsers: () => GitBookUsers,
|
|
319
320
|
GitSyncInstallationPriority: () => GitSyncInstallationPriority,
|
|
320
321
|
GitSyncInstallationProvider: () => GitSyncInstallationProvider,
|
|
322
|
+
GitSyncInstallationStatus: () => GitSyncInstallationStatus,
|
|
321
323
|
GitSyncOperationDirection: () => GitSyncOperationDirection,
|
|
322
324
|
GitSyncOperationStage: () => GitSyncOperationStage,
|
|
323
325
|
GitSyncOperationState: () => GitSyncOperationState,
|
|
@@ -513,7 +515,7 @@ module.exports = __toCommonJS(src_exports);
|
|
|
513
515
|
|
|
514
516
|
// package.json
|
|
515
517
|
var name = "@gitbook/api";
|
|
516
|
-
var version = "0.
|
|
518
|
+
var version = "0.180.0";
|
|
517
519
|
|
|
518
520
|
// src/client.ts
|
|
519
521
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -788,6 +790,8 @@ var SiteInsightsVisitorBot = /* @__PURE__ */ ((SiteInsightsVisitorBot2) => {
|
|
|
788
790
|
SiteInsightsVisitorBot2["Facebookbot"] = "facebookbot";
|
|
789
791
|
SiteInsightsVisitorBot2["Applebot"] = "applebot";
|
|
790
792
|
SiteInsightsVisitorBot2["Chatgpt"] = "chatgpt";
|
|
793
|
+
SiteInsightsVisitorBot2["Openai"] = "openai";
|
|
794
|
+
SiteInsightsVisitorBot2["Claude"] = "claude";
|
|
791
795
|
SiteInsightsVisitorBot2["Anthropic"] = "anthropic";
|
|
792
796
|
SiteInsightsVisitorBot2["Gemini"] = "gemini";
|
|
793
797
|
SiteInsightsVisitorBot2["Perplexity"] = "perplexity";
|
|
@@ -802,6 +806,8 @@ var SiteInsightsVisitorBot = /* @__PURE__ */ ((SiteInsightsVisitorBot2) => {
|
|
|
802
806
|
SiteInsightsVisitorBot2["Cursor"] = "cursor";
|
|
803
807
|
SiteInsightsVisitorBot2["Vscode"] = "vscode";
|
|
804
808
|
SiteInsightsVisitorBot2["ClaudeCode"] = "claude-code";
|
|
809
|
+
SiteInsightsVisitorBot2["Codex"] = "codex";
|
|
810
|
+
SiteInsightsVisitorBot2["Opencode"] = "opencode";
|
|
805
811
|
return SiteInsightsVisitorBot2;
|
|
806
812
|
})(SiteInsightsVisitorBot || {});
|
|
807
813
|
var SiteInsightsVisitorOS = /* @__PURE__ */ ((SiteInsightsVisitorOS2) => {
|
|
@@ -1566,6 +1572,12 @@ var GitSyncProvider = /* @__PURE__ */ ((GitSyncProvider2) => {
|
|
|
1566
1572
|
GitSyncProvider2["GithubLegacy"] = "github-legacy";
|
|
1567
1573
|
return GitSyncProvider2;
|
|
1568
1574
|
})(GitSyncProvider || {});
|
|
1575
|
+
var GitSyncInstallationStatus = /* @__PURE__ */ ((GitSyncInstallationStatus2) => {
|
|
1576
|
+
GitSyncInstallationStatus2["Unauthenticated"] = "unauthenticated";
|
|
1577
|
+
GitSyncInstallationStatus2["Active"] = "active";
|
|
1578
|
+
GitSyncInstallationStatus2["Pending"] = "pending";
|
|
1579
|
+
return GitSyncInstallationStatus2;
|
|
1580
|
+
})(GitSyncInstallationStatus || {});
|
|
1569
1581
|
var TranslationLanguage = /* @__PURE__ */ ((TranslationLanguage2) => {
|
|
1570
1582
|
TranslationLanguage2["En"] = "en";
|
|
1571
1583
|
TranslationLanguage2["Fr"] = "fr";
|
|
@@ -4568,6 +4580,13 @@ var Api = class extends HttpClient {
|
|
|
4568
4580
|
format: "json",
|
|
4569
4581
|
...params
|
|
4570
4582
|
}),
|
|
4583
|
+
getGitSyncInstallationById: (installationId, params = {}) => this.request({
|
|
4584
|
+
path: `/git/installations/${installationId}`,
|
|
4585
|
+
method: "GET",
|
|
4586
|
+
secure: true,
|
|
4587
|
+
format: "json",
|
|
4588
|
+
...params
|
|
4589
|
+
}),
|
|
4571
4590
|
updateGitSyncInstallationById: (installationId, data, params = {}) => this.request({
|
|
4572
4591
|
path: `/git/installations/${installationId}`,
|
|
4573
4592
|
method: "PATCH",
|
|
@@ -4640,6 +4659,7 @@ var SPACE_EDIT_MODE_ENUM = ["live", "locked"];
|
|
|
4640
4659
|
var EXPRESSION_MAX_LENGTH = 1024;
|
|
4641
4660
|
var EXPRESSION_MIN_LENGTH = 0;
|
|
4642
4661
|
var TRANSLATION_LANGUAGE_ENUM = ["en", "fr", "de", "es", "it", "pt", "pt-br", "ru", "ja", "zh", "zh-tw", "yue", "ko", "ar", "hi", "nl", "pl", "tr", "sv", "no", "da", "fi", "el", "cs", "hu", "ro", "th", "vi", "id", "ms", "he", "uk", "sk", "bg", "hr", "lt", "lv", "et", "sl"];
|
|
4662
|
+
var GIT_SYNC_INSTALLATION_STATUS_ENUM = ["unauthenticated", "active", "pending"];
|
|
4643
4663
|
var GIT_SYNC_PROVIDER_ENUM = ["github", "gitlab", "github-legacy"];
|
|
4644
4664
|
var MEMBER_ROLE_ENUM = ["admin", "create", "edit", "review", "comment", "read"];
|
|
4645
4665
|
var ORGANIZATION_TEAM_TITLE_MAX_LENGTH = 64;
|
|
@@ -5035,6 +5055,7 @@ var GitBookAPI = class extends Api {
|
|
|
5035
5055
|
GIT_HUB_REPOSITORY_PATTERN_PATTERN,
|
|
5036
5056
|
GIT_SYNC_INSTALLATION_PRIORITY_ENUM,
|
|
5037
5057
|
GIT_SYNC_INSTALLATION_PROVIDER_ENUM,
|
|
5058
|
+
GIT_SYNC_INSTALLATION_STATUS_ENUM,
|
|
5038
5059
|
GIT_SYNC_OPERATION_DIRECTION_ENUM,
|
|
5039
5060
|
GIT_SYNC_OPERATION_STAGE_ENUM,
|
|
5040
5061
|
GIT_SYNC_OPERATION_STATE_ENUM,
|
|
@@ -5044,6 +5065,7 @@ var GitBookAPI = class extends Api {
|
|
|
5044
5065
|
GitBookUsers,
|
|
5045
5066
|
GitSyncInstallationPriority,
|
|
5046
5067
|
GitSyncInstallationProvider,
|
|
5068
|
+
GitSyncInstallationStatus,
|
|
5047
5069
|
GitSyncOperationDirection,
|
|
5048
5070
|
GitSyncOperationStage,
|
|
5049
5071
|
GitSyncOperationState,
|
package/dist/index.js
CHANGED
|
@@ -172,7 +172,7 @@ var require_node = __commonJS({
|
|
|
172
172
|
|
|
173
173
|
// package.json
|
|
174
174
|
var name = "@gitbook/api";
|
|
175
|
-
var version = "0.
|
|
175
|
+
var version = "0.180.0";
|
|
176
176
|
|
|
177
177
|
// src/client.ts
|
|
178
178
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -447,6 +447,8 @@ var SiteInsightsVisitorBot = /* @__PURE__ */ ((SiteInsightsVisitorBot2) => {
|
|
|
447
447
|
SiteInsightsVisitorBot2["Facebookbot"] = "facebookbot";
|
|
448
448
|
SiteInsightsVisitorBot2["Applebot"] = "applebot";
|
|
449
449
|
SiteInsightsVisitorBot2["Chatgpt"] = "chatgpt";
|
|
450
|
+
SiteInsightsVisitorBot2["Openai"] = "openai";
|
|
451
|
+
SiteInsightsVisitorBot2["Claude"] = "claude";
|
|
450
452
|
SiteInsightsVisitorBot2["Anthropic"] = "anthropic";
|
|
451
453
|
SiteInsightsVisitorBot2["Gemini"] = "gemini";
|
|
452
454
|
SiteInsightsVisitorBot2["Perplexity"] = "perplexity";
|
|
@@ -461,6 +463,8 @@ var SiteInsightsVisitorBot = /* @__PURE__ */ ((SiteInsightsVisitorBot2) => {
|
|
|
461
463
|
SiteInsightsVisitorBot2["Cursor"] = "cursor";
|
|
462
464
|
SiteInsightsVisitorBot2["Vscode"] = "vscode";
|
|
463
465
|
SiteInsightsVisitorBot2["ClaudeCode"] = "claude-code";
|
|
466
|
+
SiteInsightsVisitorBot2["Codex"] = "codex";
|
|
467
|
+
SiteInsightsVisitorBot2["Opencode"] = "opencode";
|
|
464
468
|
return SiteInsightsVisitorBot2;
|
|
465
469
|
})(SiteInsightsVisitorBot || {});
|
|
466
470
|
var SiteInsightsVisitorOS = /* @__PURE__ */ ((SiteInsightsVisitorOS2) => {
|
|
@@ -1225,6 +1229,12 @@ var GitSyncProvider = /* @__PURE__ */ ((GitSyncProvider2) => {
|
|
|
1225
1229
|
GitSyncProvider2["GithubLegacy"] = "github-legacy";
|
|
1226
1230
|
return GitSyncProvider2;
|
|
1227
1231
|
})(GitSyncProvider || {});
|
|
1232
|
+
var GitSyncInstallationStatus = /* @__PURE__ */ ((GitSyncInstallationStatus2) => {
|
|
1233
|
+
GitSyncInstallationStatus2["Unauthenticated"] = "unauthenticated";
|
|
1234
|
+
GitSyncInstallationStatus2["Active"] = "active";
|
|
1235
|
+
GitSyncInstallationStatus2["Pending"] = "pending";
|
|
1236
|
+
return GitSyncInstallationStatus2;
|
|
1237
|
+
})(GitSyncInstallationStatus || {});
|
|
1228
1238
|
var TranslationLanguage = /* @__PURE__ */ ((TranslationLanguage2) => {
|
|
1229
1239
|
TranslationLanguage2["En"] = "en";
|
|
1230
1240
|
TranslationLanguage2["Fr"] = "fr";
|
|
@@ -4227,6 +4237,13 @@ var Api = class extends HttpClient {
|
|
|
4227
4237
|
format: "json",
|
|
4228
4238
|
...params
|
|
4229
4239
|
}),
|
|
4240
|
+
getGitSyncInstallationById: (installationId, params = {}) => this.request({
|
|
4241
|
+
path: `/git/installations/${installationId}`,
|
|
4242
|
+
method: "GET",
|
|
4243
|
+
secure: true,
|
|
4244
|
+
format: "json",
|
|
4245
|
+
...params
|
|
4246
|
+
}),
|
|
4230
4247
|
updateGitSyncInstallationById: (installationId, data, params = {}) => this.request({
|
|
4231
4248
|
path: `/git/installations/${installationId}`,
|
|
4232
4249
|
method: "PATCH",
|
|
@@ -4299,6 +4316,7 @@ var SPACE_EDIT_MODE_ENUM = ["live", "locked"];
|
|
|
4299
4316
|
var EXPRESSION_MAX_LENGTH = 1024;
|
|
4300
4317
|
var EXPRESSION_MIN_LENGTH = 0;
|
|
4301
4318
|
var TRANSLATION_LANGUAGE_ENUM = ["en", "fr", "de", "es", "it", "pt", "pt-br", "ru", "ja", "zh", "zh-tw", "yue", "ko", "ar", "hi", "nl", "pl", "tr", "sv", "no", "da", "fi", "el", "cs", "hu", "ro", "th", "vi", "id", "ms", "he", "uk", "sk", "bg", "hr", "lt", "lv", "et", "sl"];
|
|
4319
|
+
var GIT_SYNC_INSTALLATION_STATUS_ENUM = ["unauthenticated", "active", "pending"];
|
|
4302
4320
|
var GIT_SYNC_PROVIDER_ENUM = ["github", "gitlab", "github-legacy"];
|
|
4303
4321
|
var MEMBER_ROLE_ENUM = ["admin", "create", "edit", "review", "comment", "read"];
|
|
4304
4322
|
var ORGANIZATION_TEAM_TITLE_MAX_LENGTH = 64;
|
|
@@ -4693,6 +4711,7 @@ export {
|
|
|
4693
4711
|
GIT_HUB_REPOSITORY_PATTERN_PATTERN,
|
|
4694
4712
|
GIT_SYNC_INSTALLATION_PRIORITY_ENUM,
|
|
4695
4713
|
GIT_SYNC_INSTALLATION_PROVIDER_ENUM,
|
|
4714
|
+
GIT_SYNC_INSTALLATION_STATUS_ENUM,
|
|
4696
4715
|
GIT_SYNC_OPERATION_DIRECTION_ENUM,
|
|
4697
4716
|
GIT_SYNC_OPERATION_STAGE_ENUM,
|
|
4698
4717
|
GIT_SYNC_OPERATION_STATE_ENUM,
|
|
@@ -4702,6 +4721,7 @@ export {
|
|
|
4702
4721
|
GitBookUsers,
|
|
4703
4722
|
GitSyncInstallationPriority,
|
|
4704
4723
|
GitSyncInstallationProvider,
|
|
4724
|
+
GitSyncInstallationStatus,
|
|
4705
4725
|
GitSyncOperationDirection,
|
|
4706
4726
|
GitSyncOperationStage,
|
|
4707
4727
|
GitSyncOperationState,
|