@gitbook/api 0.178.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 +422 -11
- package/dist/constants.d.ts +5 -2
- package/dist/index.cjs +104 -3
- package/dist/index.js +98 -3
- package/package.json +1 -1
- package/spec/openapi.json +930 -21
- package/spec/openapi.yaml +597 -13
package/dist/constants.d.ts
CHANGED
|
@@ -7,13 +7,14 @@ export declare const CONTENT_VISIBILITY_ENUM: ["public", "unlisted", "share-link
|
|
|
7
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
|
-
export declare const TRANSLATION_LANGUAGE_ENUM: ["en", "fr", "de", "es", "it", "pt", "pt-br", "ru", "ja", "zh", "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"];
|
|
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;
|
|
14
15
|
export declare const ORGANIZATION_TEAM_TITLE_MIN_LENGTH = 1;
|
|
15
16
|
export declare const ICON_MAX_LENGTH = 50;
|
|
16
|
-
export declare const DOCUMENT_TEXT_COLOR_ENUM: ["default", "green", "blue", "red", "orange", "yellow", "purple", "$primary", "$info", "$success", "$warning", "$danger"];
|
|
17
|
+
export declare const DOCUMENT_TEXT_COLOR_ENUM: ["default", "green", "blue", "red", "orange", "yellow", "purple", "pink", "violet", "cyan", "$primary", "$info", "$success", "$warning", "$danger", "$tint"];
|
|
17
18
|
export declare const TEXT_ALIGNMENT_ENUM: ["start", "center", "end"];
|
|
18
19
|
export declare const CARDS_IMAGE_OBJECT_FIT_ENUM: ["contain", "fill", "cover"];
|
|
19
20
|
export declare const VERTICAL_ALIGNMENT_ENUM: ["top", "middle", "bottom"];
|
|
@@ -188,6 +189,8 @@ export declare const CUSTOM_HOSTNAME_ERROR_STATUS_ENUM: ["invalid_domain", "inte
|
|
|
188
189
|
export declare const CLOUDFLARE_HOSTNAME_STATUS_ENUM: ["pending", "active", "blocked", "moved", "deleted"];
|
|
189
190
|
export declare const CLOUDFLARE_HOSTNAME_TLSSTATUS_ENUM: ["initializing", "pending_validation", "pending_issuance", "pending_deployment", "active", "pending_deletion", "pending_cleanup", "deleted"];
|
|
190
191
|
export declare const CLOUDFLARE_HOSTNAME_TLSVALIDATION_METHOD_ENUM: ["http", "txt", "email"];
|
|
192
|
+
export declare const GIT_SYNC_INSTALLATION_PROVIDER_ENUM: ["github", "gitlab"];
|
|
193
|
+
export declare const GIT_SYNC_INSTALLATION_PRIORITY_ENUM: ["git", "gitbook"];
|
|
191
194
|
export declare const SHA256_MAX_LENGTH = 64;
|
|
192
195
|
export declare const SHA256_MIN_LENGTH = 64;
|
|
193
196
|
export declare const GIT_BOOK_USERS_ENUM: ["gitbook:agent"];
|
package/dist/index.cjs
CHANGED
|
@@ -307,6 +307,9 @@ __export(src_exports, {
|
|
|
307
307
|
GITBOOK_DEFAULT_ENDPOINT: () => GITBOOK_DEFAULT_ENDPOINT,
|
|
308
308
|
GIT_BOOK_USERS_ENUM: () => GIT_BOOK_USERS_ENUM,
|
|
309
309
|
GIT_HUB_REPOSITORY_PATTERN_PATTERN: () => GIT_HUB_REPOSITORY_PATTERN_PATTERN,
|
|
310
|
+
GIT_SYNC_INSTALLATION_PRIORITY_ENUM: () => GIT_SYNC_INSTALLATION_PRIORITY_ENUM,
|
|
311
|
+
GIT_SYNC_INSTALLATION_PROVIDER_ENUM: () => GIT_SYNC_INSTALLATION_PROVIDER_ENUM,
|
|
312
|
+
GIT_SYNC_INSTALLATION_STATUS_ENUM: () => GIT_SYNC_INSTALLATION_STATUS_ENUM,
|
|
310
313
|
GIT_SYNC_OPERATION_DIRECTION_ENUM: () => GIT_SYNC_OPERATION_DIRECTION_ENUM,
|
|
311
314
|
GIT_SYNC_OPERATION_STAGE_ENUM: () => GIT_SYNC_OPERATION_STAGE_ENUM,
|
|
312
315
|
GIT_SYNC_OPERATION_STATE_ENUM: () => GIT_SYNC_OPERATION_STATE_ENUM,
|
|
@@ -314,6 +317,9 @@ __export(src_exports, {
|
|
|
314
317
|
GitBookAPI: () => GitBookAPI,
|
|
315
318
|
GitBookAPIError: () => GitBookAPIError,
|
|
316
319
|
GitBookUsers: () => GitBookUsers,
|
|
320
|
+
GitSyncInstallationPriority: () => GitSyncInstallationPriority,
|
|
321
|
+
GitSyncInstallationProvider: () => GitSyncInstallationProvider,
|
|
322
|
+
GitSyncInstallationStatus: () => GitSyncInstallationStatus,
|
|
317
323
|
GitSyncOperationDirection: () => GitSyncOperationDirection,
|
|
318
324
|
GitSyncOperationStage: () => GitSyncOperationStage,
|
|
319
325
|
GitSyncOperationState: () => GitSyncOperationState,
|
|
@@ -509,7 +515,7 @@ module.exports = __toCommonJS(src_exports);
|
|
|
509
515
|
|
|
510
516
|
// package.json
|
|
511
517
|
var name = "@gitbook/api";
|
|
512
|
-
var version = "0.
|
|
518
|
+
var version = "0.180.0";
|
|
513
519
|
|
|
514
520
|
// src/client.ts
|
|
515
521
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -693,6 +699,16 @@ var GitBookUsers = /* @__PURE__ */ ((GitBookUsers2) => {
|
|
|
693
699
|
GitBookUsers2["GitbookAgent"] = "gitbook:agent";
|
|
694
700
|
return GitBookUsers2;
|
|
695
701
|
})(GitBookUsers || {});
|
|
702
|
+
var GitSyncInstallationPriority = /* @__PURE__ */ ((GitSyncInstallationPriority2) => {
|
|
703
|
+
GitSyncInstallationPriority2["Git"] = "git";
|
|
704
|
+
GitSyncInstallationPriority2["Gitbook"] = "gitbook";
|
|
705
|
+
return GitSyncInstallationPriority2;
|
|
706
|
+
})(GitSyncInstallationPriority || {});
|
|
707
|
+
var GitSyncInstallationProvider = /* @__PURE__ */ ((GitSyncInstallationProvider2) => {
|
|
708
|
+
GitSyncInstallationProvider2["Github"] = "github";
|
|
709
|
+
GitSyncInstallationProvider2["Gitlab"] = "gitlab";
|
|
710
|
+
return GitSyncInstallationProvider2;
|
|
711
|
+
})(GitSyncInstallationProvider || {});
|
|
696
712
|
var CloudflareHostnameTLSValidationMethod = /* @__PURE__ */ ((CloudflareHostnameTLSValidationMethod2) => {
|
|
697
713
|
CloudflareHostnameTLSValidationMethod2["Http"] = "http";
|
|
698
714
|
CloudflareHostnameTLSValidationMethod2["Txt"] = "txt";
|
|
@@ -774,6 +790,8 @@ var SiteInsightsVisitorBot = /* @__PURE__ */ ((SiteInsightsVisitorBot2) => {
|
|
|
774
790
|
SiteInsightsVisitorBot2["Facebookbot"] = "facebookbot";
|
|
775
791
|
SiteInsightsVisitorBot2["Applebot"] = "applebot";
|
|
776
792
|
SiteInsightsVisitorBot2["Chatgpt"] = "chatgpt";
|
|
793
|
+
SiteInsightsVisitorBot2["Openai"] = "openai";
|
|
794
|
+
SiteInsightsVisitorBot2["Claude"] = "claude";
|
|
777
795
|
SiteInsightsVisitorBot2["Anthropic"] = "anthropic";
|
|
778
796
|
SiteInsightsVisitorBot2["Gemini"] = "gemini";
|
|
779
797
|
SiteInsightsVisitorBot2["Perplexity"] = "perplexity";
|
|
@@ -788,6 +806,8 @@ var SiteInsightsVisitorBot = /* @__PURE__ */ ((SiteInsightsVisitorBot2) => {
|
|
|
788
806
|
SiteInsightsVisitorBot2["Cursor"] = "cursor";
|
|
789
807
|
SiteInsightsVisitorBot2["Vscode"] = "vscode";
|
|
790
808
|
SiteInsightsVisitorBot2["ClaudeCode"] = "claude-code";
|
|
809
|
+
SiteInsightsVisitorBot2["Codex"] = "codex";
|
|
810
|
+
SiteInsightsVisitorBot2["Opencode"] = "opencode";
|
|
791
811
|
return SiteInsightsVisitorBot2;
|
|
792
812
|
})(SiteInsightsVisitorBot || {});
|
|
793
813
|
var SiteInsightsVisitorOS = /* @__PURE__ */ ((SiteInsightsVisitorOS2) => {
|
|
@@ -1526,11 +1546,15 @@ var DocumentTextColor = /* @__PURE__ */ ((DocumentTextColor2) => {
|
|
|
1526
1546
|
DocumentTextColor2["Orange"] = "orange";
|
|
1527
1547
|
DocumentTextColor2["Yellow"] = "yellow";
|
|
1528
1548
|
DocumentTextColor2["Purple"] = "purple";
|
|
1549
|
+
DocumentTextColor2["Pink"] = "pink";
|
|
1550
|
+
DocumentTextColor2["Violet"] = "violet";
|
|
1551
|
+
DocumentTextColor2["Cyan"] = "cyan";
|
|
1529
1552
|
DocumentTextColor2["Primary"] = "$primary";
|
|
1530
1553
|
DocumentTextColor2["Info"] = "$info";
|
|
1531
1554
|
DocumentTextColor2["Success"] = "$success";
|
|
1532
1555
|
DocumentTextColor2["Warning"] = "$warning";
|
|
1533
1556
|
DocumentTextColor2["Danger"] = "$danger";
|
|
1557
|
+
DocumentTextColor2["Tint"] = "$tint";
|
|
1534
1558
|
return DocumentTextColor2;
|
|
1535
1559
|
})(DocumentTextColor || {});
|
|
1536
1560
|
var MemberRole = /* @__PURE__ */ ((MemberRole2) => {
|
|
@@ -1548,6 +1572,12 @@ var GitSyncProvider = /* @__PURE__ */ ((GitSyncProvider2) => {
|
|
|
1548
1572
|
GitSyncProvider2["GithubLegacy"] = "github-legacy";
|
|
1549
1573
|
return GitSyncProvider2;
|
|
1550
1574
|
})(GitSyncProvider || {});
|
|
1575
|
+
var GitSyncInstallationStatus = /* @__PURE__ */ ((GitSyncInstallationStatus2) => {
|
|
1576
|
+
GitSyncInstallationStatus2["Unauthenticated"] = "unauthenticated";
|
|
1577
|
+
GitSyncInstallationStatus2["Active"] = "active";
|
|
1578
|
+
GitSyncInstallationStatus2["Pending"] = "pending";
|
|
1579
|
+
return GitSyncInstallationStatus2;
|
|
1580
|
+
})(GitSyncInstallationStatus || {});
|
|
1551
1581
|
var TranslationLanguage = /* @__PURE__ */ ((TranslationLanguage2) => {
|
|
1552
1582
|
TranslationLanguage2["En"] = "en";
|
|
1553
1583
|
TranslationLanguage2["Fr"] = "fr";
|
|
@@ -1559,6 +1589,7 @@ var TranslationLanguage = /* @__PURE__ */ ((TranslationLanguage2) => {
|
|
|
1559
1589
|
TranslationLanguage2["Ru"] = "ru";
|
|
1560
1590
|
TranslationLanguage2["Ja"] = "ja";
|
|
1561
1591
|
TranslationLanguage2["Zh"] = "zh";
|
|
1592
|
+
TranslationLanguage2["ZhTw"] = "zh-tw";
|
|
1562
1593
|
TranslationLanguage2["Yue"] = "yue";
|
|
1563
1594
|
TranslationLanguage2["Ko"] = "ko";
|
|
1564
1595
|
TranslationLanguage2["Ar"] = "ar";
|
|
@@ -4539,6 +4570,67 @@ var Api = class extends HttpClient {
|
|
|
4539
4570
|
...params
|
|
4540
4571
|
})
|
|
4541
4572
|
};
|
|
4573
|
+
git = {
|
|
4574
|
+
installGitSyncProviderOnTarget: (data, params = {}) => this.request({
|
|
4575
|
+
path: `/git/installations`,
|
|
4576
|
+
method: "POST",
|
|
4577
|
+
body: data,
|
|
4578
|
+
secure: true,
|
|
4579
|
+
type: "application/json" /* Json */,
|
|
4580
|
+
format: "json",
|
|
4581
|
+
...params
|
|
4582
|
+
}),
|
|
4583
|
+
getGitSyncInstallationById: (installationId, params = {}) => this.request({
|
|
4584
|
+
path: `/git/installations/${installationId}`,
|
|
4585
|
+
method: "GET",
|
|
4586
|
+
secure: true,
|
|
4587
|
+
format: "json",
|
|
4588
|
+
...params
|
|
4589
|
+
}),
|
|
4590
|
+
updateGitSyncInstallationById: (installationId, data, params = {}) => this.request({
|
|
4591
|
+
path: `/git/installations/${installationId}`,
|
|
4592
|
+
method: "PATCH",
|
|
4593
|
+
body: data,
|
|
4594
|
+
secure: true,
|
|
4595
|
+
type: "application/json" /* Json */,
|
|
4596
|
+
format: "json",
|
|
4597
|
+
...params
|
|
4598
|
+
}),
|
|
4599
|
+
uninstallGitSyncInstallation: (installationId, params = {}) => this.request({
|
|
4600
|
+
path: `/git/installations/${installationId}`,
|
|
4601
|
+
method: "DELETE",
|
|
4602
|
+
secure: true,
|
|
4603
|
+
...params
|
|
4604
|
+
}),
|
|
4605
|
+
listGitHubRepositoriesForGitSyncInstallation: (installationId, params = {}) => this.request({
|
|
4606
|
+
path: `/git/installations/${installationId}/github/repos`,
|
|
4607
|
+
method: "GET",
|
|
4608
|
+
secure: true,
|
|
4609
|
+
format: "json",
|
|
4610
|
+
...params
|
|
4611
|
+
}),
|
|
4612
|
+
listGitHubRepoBranchesForGitSyncInstallation: (installationId, accountName, repositoryName, params = {}) => this.request({
|
|
4613
|
+
path: `/git/installations/${installationId}/github/repos/${accountName}/${repositoryName}/branches`,
|
|
4614
|
+
method: "GET",
|
|
4615
|
+
secure: true,
|
|
4616
|
+
format: "json",
|
|
4617
|
+
...params
|
|
4618
|
+
}),
|
|
4619
|
+
listGitLabProjectsForGitSyncInstallation: (installationId, params = {}) => this.request({
|
|
4620
|
+
path: `/git/installations/${installationId}/gitlab/projects`,
|
|
4621
|
+
method: "GET",
|
|
4622
|
+
secure: true,
|
|
4623
|
+
format: "json",
|
|
4624
|
+
...params
|
|
4625
|
+
}),
|
|
4626
|
+
listGitLabProjectBranchesForGitSyncInstallation: (installationId, projectId, params = {}) => this.request({
|
|
4627
|
+
path: `/git/installations/${installationId}/gitlab/projects/${projectId}/branches`,
|
|
4628
|
+
method: "GET",
|
|
4629
|
+
secure: true,
|
|
4630
|
+
format: "json",
|
|
4631
|
+
...params
|
|
4632
|
+
})
|
|
4633
|
+
};
|
|
4542
4634
|
};
|
|
4543
4635
|
|
|
4544
4636
|
// src/GitBookAPIError.ts
|
|
@@ -4566,13 +4658,14 @@ var CONTENT_VISIBILITY_ENUM = ["public", "unlisted", "share-link", "visitor-auth
|
|
|
4566
4658
|
var SPACE_EDIT_MODE_ENUM = ["live", "locked"];
|
|
4567
4659
|
var EXPRESSION_MAX_LENGTH = 1024;
|
|
4568
4660
|
var EXPRESSION_MIN_LENGTH = 0;
|
|
4569
|
-
var TRANSLATION_LANGUAGE_ENUM = ["en", "fr", "de", "es", "it", "pt", "pt-br", "ru", "ja", "zh", "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"];
|
|
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"];
|
|
4570
4663
|
var GIT_SYNC_PROVIDER_ENUM = ["github", "gitlab", "github-legacy"];
|
|
4571
4664
|
var MEMBER_ROLE_ENUM = ["admin", "create", "edit", "review", "comment", "read"];
|
|
4572
4665
|
var ORGANIZATION_TEAM_TITLE_MAX_LENGTH = 64;
|
|
4573
4666
|
var ORGANIZATION_TEAM_TITLE_MIN_LENGTH = 1;
|
|
4574
4667
|
var ICON_MAX_LENGTH = 50;
|
|
4575
|
-
var DOCUMENT_TEXT_COLOR_ENUM = ["default", "green", "blue", "red", "orange", "yellow", "purple", "$primary", "$info", "$success", "$warning", "$danger"];
|
|
4668
|
+
var DOCUMENT_TEXT_COLOR_ENUM = ["default", "green", "blue", "red", "orange", "yellow", "purple", "pink", "violet", "cyan", "$primary", "$info", "$success", "$warning", "$danger", "$tint"];
|
|
4576
4669
|
var TEXT_ALIGNMENT_ENUM = ["start", "center", "end"];
|
|
4577
4670
|
var CARDS_IMAGE_OBJECT_FIT_ENUM = ["contain", "fill", "cover"];
|
|
4578
4671
|
var VERTICAL_ALIGNMENT_ENUM = ["top", "middle", "bottom"];
|
|
@@ -4747,6 +4840,8 @@ var CUSTOM_HOSTNAME_ERROR_STATUS_ENUM = ["invalid_domain", "internal_error"];
|
|
|
4747
4840
|
var CLOUDFLARE_HOSTNAME_STATUS_ENUM = ["pending", "active", "blocked", "moved", "deleted"];
|
|
4748
4841
|
var CLOUDFLARE_HOSTNAME_TLSSTATUS_ENUM = ["initializing", "pending_validation", "pending_issuance", "pending_deployment", "active", "pending_deletion", "pending_cleanup", "deleted"];
|
|
4749
4842
|
var CLOUDFLARE_HOSTNAME_TLSVALIDATION_METHOD_ENUM = ["http", "txt", "email"];
|
|
4843
|
+
var GIT_SYNC_INSTALLATION_PROVIDER_ENUM = ["github", "gitlab"];
|
|
4844
|
+
var GIT_SYNC_INSTALLATION_PRIORITY_ENUM = ["git", "gitbook"];
|
|
4750
4845
|
var SHA256_MAX_LENGTH = 64;
|
|
4751
4846
|
var SHA256_MIN_LENGTH = 64;
|
|
4752
4847
|
var GIT_BOOK_USERS_ENUM = ["gitbook:agent"];
|
|
@@ -4958,6 +5053,9 @@ var GitBookAPI = class extends Api {
|
|
|
4958
5053
|
GITBOOK_DEFAULT_ENDPOINT,
|
|
4959
5054
|
GIT_BOOK_USERS_ENUM,
|
|
4960
5055
|
GIT_HUB_REPOSITORY_PATTERN_PATTERN,
|
|
5056
|
+
GIT_SYNC_INSTALLATION_PRIORITY_ENUM,
|
|
5057
|
+
GIT_SYNC_INSTALLATION_PROVIDER_ENUM,
|
|
5058
|
+
GIT_SYNC_INSTALLATION_STATUS_ENUM,
|
|
4961
5059
|
GIT_SYNC_OPERATION_DIRECTION_ENUM,
|
|
4962
5060
|
GIT_SYNC_OPERATION_STAGE_ENUM,
|
|
4963
5061
|
GIT_SYNC_OPERATION_STATE_ENUM,
|
|
@@ -4965,6 +5063,9 @@ var GitBookAPI = class extends Api {
|
|
|
4965
5063
|
GitBookAPI,
|
|
4966
5064
|
GitBookAPIError,
|
|
4967
5065
|
GitBookUsers,
|
|
5066
|
+
GitSyncInstallationPriority,
|
|
5067
|
+
GitSyncInstallationProvider,
|
|
5068
|
+
GitSyncInstallationStatus,
|
|
4968
5069
|
GitSyncOperationDirection,
|
|
4969
5070
|
GitSyncOperationStage,
|
|
4970
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);
|
|
@@ -356,6 +356,16 @@ var GitBookUsers = /* @__PURE__ */ ((GitBookUsers2) => {
|
|
|
356
356
|
GitBookUsers2["GitbookAgent"] = "gitbook:agent";
|
|
357
357
|
return GitBookUsers2;
|
|
358
358
|
})(GitBookUsers || {});
|
|
359
|
+
var GitSyncInstallationPriority = /* @__PURE__ */ ((GitSyncInstallationPriority2) => {
|
|
360
|
+
GitSyncInstallationPriority2["Git"] = "git";
|
|
361
|
+
GitSyncInstallationPriority2["Gitbook"] = "gitbook";
|
|
362
|
+
return GitSyncInstallationPriority2;
|
|
363
|
+
})(GitSyncInstallationPriority || {});
|
|
364
|
+
var GitSyncInstallationProvider = /* @__PURE__ */ ((GitSyncInstallationProvider2) => {
|
|
365
|
+
GitSyncInstallationProvider2["Github"] = "github";
|
|
366
|
+
GitSyncInstallationProvider2["Gitlab"] = "gitlab";
|
|
367
|
+
return GitSyncInstallationProvider2;
|
|
368
|
+
})(GitSyncInstallationProvider || {});
|
|
359
369
|
var CloudflareHostnameTLSValidationMethod = /* @__PURE__ */ ((CloudflareHostnameTLSValidationMethod2) => {
|
|
360
370
|
CloudflareHostnameTLSValidationMethod2["Http"] = "http";
|
|
361
371
|
CloudflareHostnameTLSValidationMethod2["Txt"] = "txt";
|
|
@@ -437,6 +447,8 @@ var SiteInsightsVisitorBot = /* @__PURE__ */ ((SiteInsightsVisitorBot2) => {
|
|
|
437
447
|
SiteInsightsVisitorBot2["Facebookbot"] = "facebookbot";
|
|
438
448
|
SiteInsightsVisitorBot2["Applebot"] = "applebot";
|
|
439
449
|
SiteInsightsVisitorBot2["Chatgpt"] = "chatgpt";
|
|
450
|
+
SiteInsightsVisitorBot2["Openai"] = "openai";
|
|
451
|
+
SiteInsightsVisitorBot2["Claude"] = "claude";
|
|
440
452
|
SiteInsightsVisitorBot2["Anthropic"] = "anthropic";
|
|
441
453
|
SiteInsightsVisitorBot2["Gemini"] = "gemini";
|
|
442
454
|
SiteInsightsVisitorBot2["Perplexity"] = "perplexity";
|
|
@@ -451,6 +463,8 @@ var SiteInsightsVisitorBot = /* @__PURE__ */ ((SiteInsightsVisitorBot2) => {
|
|
|
451
463
|
SiteInsightsVisitorBot2["Cursor"] = "cursor";
|
|
452
464
|
SiteInsightsVisitorBot2["Vscode"] = "vscode";
|
|
453
465
|
SiteInsightsVisitorBot2["ClaudeCode"] = "claude-code";
|
|
466
|
+
SiteInsightsVisitorBot2["Codex"] = "codex";
|
|
467
|
+
SiteInsightsVisitorBot2["Opencode"] = "opencode";
|
|
454
468
|
return SiteInsightsVisitorBot2;
|
|
455
469
|
})(SiteInsightsVisitorBot || {});
|
|
456
470
|
var SiteInsightsVisitorOS = /* @__PURE__ */ ((SiteInsightsVisitorOS2) => {
|
|
@@ -1189,11 +1203,15 @@ var DocumentTextColor = /* @__PURE__ */ ((DocumentTextColor2) => {
|
|
|
1189
1203
|
DocumentTextColor2["Orange"] = "orange";
|
|
1190
1204
|
DocumentTextColor2["Yellow"] = "yellow";
|
|
1191
1205
|
DocumentTextColor2["Purple"] = "purple";
|
|
1206
|
+
DocumentTextColor2["Pink"] = "pink";
|
|
1207
|
+
DocumentTextColor2["Violet"] = "violet";
|
|
1208
|
+
DocumentTextColor2["Cyan"] = "cyan";
|
|
1192
1209
|
DocumentTextColor2["Primary"] = "$primary";
|
|
1193
1210
|
DocumentTextColor2["Info"] = "$info";
|
|
1194
1211
|
DocumentTextColor2["Success"] = "$success";
|
|
1195
1212
|
DocumentTextColor2["Warning"] = "$warning";
|
|
1196
1213
|
DocumentTextColor2["Danger"] = "$danger";
|
|
1214
|
+
DocumentTextColor2["Tint"] = "$tint";
|
|
1197
1215
|
return DocumentTextColor2;
|
|
1198
1216
|
})(DocumentTextColor || {});
|
|
1199
1217
|
var MemberRole = /* @__PURE__ */ ((MemberRole2) => {
|
|
@@ -1211,6 +1229,12 @@ var GitSyncProvider = /* @__PURE__ */ ((GitSyncProvider2) => {
|
|
|
1211
1229
|
GitSyncProvider2["GithubLegacy"] = "github-legacy";
|
|
1212
1230
|
return GitSyncProvider2;
|
|
1213
1231
|
})(GitSyncProvider || {});
|
|
1232
|
+
var GitSyncInstallationStatus = /* @__PURE__ */ ((GitSyncInstallationStatus2) => {
|
|
1233
|
+
GitSyncInstallationStatus2["Unauthenticated"] = "unauthenticated";
|
|
1234
|
+
GitSyncInstallationStatus2["Active"] = "active";
|
|
1235
|
+
GitSyncInstallationStatus2["Pending"] = "pending";
|
|
1236
|
+
return GitSyncInstallationStatus2;
|
|
1237
|
+
})(GitSyncInstallationStatus || {});
|
|
1214
1238
|
var TranslationLanguage = /* @__PURE__ */ ((TranslationLanguage2) => {
|
|
1215
1239
|
TranslationLanguage2["En"] = "en";
|
|
1216
1240
|
TranslationLanguage2["Fr"] = "fr";
|
|
@@ -1222,6 +1246,7 @@ var TranslationLanguage = /* @__PURE__ */ ((TranslationLanguage2) => {
|
|
|
1222
1246
|
TranslationLanguage2["Ru"] = "ru";
|
|
1223
1247
|
TranslationLanguage2["Ja"] = "ja";
|
|
1224
1248
|
TranslationLanguage2["Zh"] = "zh";
|
|
1249
|
+
TranslationLanguage2["ZhTw"] = "zh-tw";
|
|
1225
1250
|
TranslationLanguage2["Yue"] = "yue";
|
|
1226
1251
|
TranslationLanguage2["Ko"] = "ko";
|
|
1227
1252
|
TranslationLanguage2["Ar"] = "ar";
|
|
@@ -4202,6 +4227,67 @@ var Api = class extends HttpClient {
|
|
|
4202
4227
|
...params
|
|
4203
4228
|
})
|
|
4204
4229
|
};
|
|
4230
|
+
git = {
|
|
4231
|
+
installGitSyncProviderOnTarget: (data, params = {}) => this.request({
|
|
4232
|
+
path: `/git/installations`,
|
|
4233
|
+
method: "POST",
|
|
4234
|
+
body: data,
|
|
4235
|
+
secure: true,
|
|
4236
|
+
type: "application/json" /* Json */,
|
|
4237
|
+
format: "json",
|
|
4238
|
+
...params
|
|
4239
|
+
}),
|
|
4240
|
+
getGitSyncInstallationById: (installationId, params = {}) => this.request({
|
|
4241
|
+
path: `/git/installations/${installationId}`,
|
|
4242
|
+
method: "GET",
|
|
4243
|
+
secure: true,
|
|
4244
|
+
format: "json",
|
|
4245
|
+
...params
|
|
4246
|
+
}),
|
|
4247
|
+
updateGitSyncInstallationById: (installationId, data, params = {}) => this.request({
|
|
4248
|
+
path: `/git/installations/${installationId}`,
|
|
4249
|
+
method: "PATCH",
|
|
4250
|
+
body: data,
|
|
4251
|
+
secure: true,
|
|
4252
|
+
type: "application/json" /* Json */,
|
|
4253
|
+
format: "json",
|
|
4254
|
+
...params
|
|
4255
|
+
}),
|
|
4256
|
+
uninstallGitSyncInstallation: (installationId, params = {}) => this.request({
|
|
4257
|
+
path: `/git/installations/${installationId}`,
|
|
4258
|
+
method: "DELETE",
|
|
4259
|
+
secure: true,
|
|
4260
|
+
...params
|
|
4261
|
+
}),
|
|
4262
|
+
listGitHubRepositoriesForGitSyncInstallation: (installationId, params = {}) => this.request({
|
|
4263
|
+
path: `/git/installations/${installationId}/github/repos`,
|
|
4264
|
+
method: "GET",
|
|
4265
|
+
secure: true,
|
|
4266
|
+
format: "json",
|
|
4267
|
+
...params
|
|
4268
|
+
}),
|
|
4269
|
+
listGitHubRepoBranchesForGitSyncInstallation: (installationId, accountName, repositoryName, params = {}) => this.request({
|
|
4270
|
+
path: `/git/installations/${installationId}/github/repos/${accountName}/${repositoryName}/branches`,
|
|
4271
|
+
method: "GET",
|
|
4272
|
+
secure: true,
|
|
4273
|
+
format: "json",
|
|
4274
|
+
...params
|
|
4275
|
+
}),
|
|
4276
|
+
listGitLabProjectsForGitSyncInstallation: (installationId, params = {}) => this.request({
|
|
4277
|
+
path: `/git/installations/${installationId}/gitlab/projects`,
|
|
4278
|
+
method: "GET",
|
|
4279
|
+
secure: true,
|
|
4280
|
+
format: "json",
|
|
4281
|
+
...params
|
|
4282
|
+
}),
|
|
4283
|
+
listGitLabProjectBranchesForGitSyncInstallation: (installationId, projectId, params = {}) => this.request({
|
|
4284
|
+
path: `/git/installations/${installationId}/gitlab/projects/${projectId}/branches`,
|
|
4285
|
+
method: "GET",
|
|
4286
|
+
secure: true,
|
|
4287
|
+
format: "json",
|
|
4288
|
+
...params
|
|
4289
|
+
})
|
|
4290
|
+
};
|
|
4205
4291
|
};
|
|
4206
4292
|
|
|
4207
4293
|
// src/GitBookAPIError.ts
|
|
@@ -4229,13 +4315,14 @@ var CONTENT_VISIBILITY_ENUM = ["public", "unlisted", "share-link", "visitor-auth
|
|
|
4229
4315
|
var SPACE_EDIT_MODE_ENUM = ["live", "locked"];
|
|
4230
4316
|
var EXPRESSION_MAX_LENGTH = 1024;
|
|
4231
4317
|
var EXPRESSION_MIN_LENGTH = 0;
|
|
4232
|
-
var TRANSLATION_LANGUAGE_ENUM = ["en", "fr", "de", "es", "it", "pt", "pt-br", "ru", "ja", "zh", "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"];
|
|
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"];
|
|
4233
4320
|
var GIT_SYNC_PROVIDER_ENUM = ["github", "gitlab", "github-legacy"];
|
|
4234
4321
|
var MEMBER_ROLE_ENUM = ["admin", "create", "edit", "review", "comment", "read"];
|
|
4235
4322
|
var ORGANIZATION_TEAM_TITLE_MAX_LENGTH = 64;
|
|
4236
4323
|
var ORGANIZATION_TEAM_TITLE_MIN_LENGTH = 1;
|
|
4237
4324
|
var ICON_MAX_LENGTH = 50;
|
|
4238
|
-
var DOCUMENT_TEXT_COLOR_ENUM = ["default", "green", "blue", "red", "orange", "yellow", "purple", "$primary", "$info", "$success", "$warning", "$danger"];
|
|
4325
|
+
var DOCUMENT_TEXT_COLOR_ENUM = ["default", "green", "blue", "red", "orange", "yellow", "purple", "pink", "violet", "cyan", "$primary", "$info", "$success", "$warning", "$danger", "$tint"];
|
|
4239
4326
|
var TEXT_ALIGNMENT_ENUM = ["start", "center", "end"];
|
|
4240
4327
|
var CARDS_IMAGE_OBJECT_FIT_ENUM = ["contain", "fill", "cover"];
|
|
4241
4328
|
var VERTICAL_ALIGNMENT_ENUM = ["top", "middle", "bottom"];
|
|
@@ -4410,6 +4497,8 @@ var CUSTOM_HOSTNAME_ERROR_STATUS_ENUM = ["invalid_domain", "internal_error"];
|
|
|
4410
4497
|
var CLOUDFLARE_HOSTNAME_STATUS_ENUM = ["pending", "active", "blocked", "moved", "deleted"];
|
|
4411
4498
|
var CLOUDFLARE_HOSTNAME_TLSSTATUS_ENUM = ["initializing", "pending_validation", "pending_issuance", "pending_deployment", "active", "pending_deletion", "pending_cleanup", "deleted"];
|
|
4412
4499
|
var CLOUDFLARE_HOSTNAME_TLSVALIDATION_METHOD_ENUM = ["http", "txt", "email"];
|
|
4500
|
+
var GIT_SYNC_INSTALLATION_PROVIDER_ENUM = ["github", "gitlab"];
|
|
4501
|
+
var GIT_SYNC_INSTALLATION_PRIORITY_ENUM = ["git", "gitbook"];
|
|
4413
4502
|
var SHA256_MAX_LENGTH = 64;
|
|
4414
4503
|
var SHA256_MIN_LENGTH = 64;
|
|
4415
4504
|
var GIT_BOOK_USERS_ENUM = ["gitbook:agent"];
|
|
@@ -4620,6 +4709,9 @@ export {
|
|
|
4620
4709
|
GITBOOK_DEFAULT_ENDPOINT,
|
|
4621
4710
|
GIT_BOOK_USERS_ENUM,
|
|
4622
4711
|
GIT_HUB_REPOSITORY_PATTERN_PATTERN,
|
|
4712
|
+
GIT_SYNC_INSTALLATION_PRIORITY_ENUM,
|
|
4713
|
+
GIT_SYNC_INSTALLATION_PROVIDER_ENUM,
|
|
4714
|
+
GIT_SYNC_INSTALLATION_STATUS_ENUM,
|
|
4623
4715
|
GIT_SYNC_OPERATION_DIRECTION_ENUM,
|
|
4624
4716
|
GIT_SYNC_OPERATION_STAGE_ENUM,
|
|
4625
4717
|
GIT_SYNC_OPERATION_STATE_ENUM,
|
|
@@ -4627,6 +4719,9 @@ export {
|
|
|
4627
4719
|
GitBookAPI,
|
|
4628
4720
|
GitBookAPIError,
|
|
4629
4721
|
GitBookUsers,
|
|
4722
|
+
GitSyncInstallationPriority,
|
|
4723
|
+
GitSyncInstallationProvider,
|
|
4724
|
+
GitSyncInstallationStatus,
|
|
4630
4725
|
GitSyncOperationDirection,
|
|
4631
4726
|
GitSyncOperationStage,
|
|
4632
4727
|
GitSyncOperationState,
|