@gitbook/api 0.127.0 → 0.129.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 +437 -208
- package/dist/index.cjs +127 -65
- package/dist/index.js +121 -64
- package/package.json +1 -1
- package/spec/openapi.json +1245 -517
- package/spec/openapi.yaml +899 -385
package/dist/index.cjs
CHANGED
|
@@ -186,6 +186,7 @@ __export(src_exports, {
|
|
|
186
186
|
AgentTaskStatus: () => AgentTaskStatus,
|
|
187
187
|
Api: () => Api,
|
|
188
188
|
BillingInterval: () => BillingInterval,
|
|
189
|
+
BillingMeter: () => BillingMeter,
|
|
189
190
|
BillingProduct: () => BillingProduct,
|
|
190
191
|
BillingSwitchAction: () => BillingSwitchAction,
|
|
191
192
|
BillingTrialStatus: () => BillingTrialStatus,
|
|
@@ -202,9 +203,11 @@ __export(src_exports, {
|
|
|
202
203
|
CustomHostnameDnsStatus: () => CustomHostnameDnsStatus,
|
|
203
204
|
CustomHostnameErrorStatus: () => CustomHostnameErrorStatus,
|
|
204
205
|
CustomHostnameSslStatus: () => CustomHostnameSslStatus,
|
|
206
|
+
CustomizationAIMode: () => CustomizationAIMode,
|
|
205
207
|
CustomizationBackground: () => CustomizationBackground,
|
|
206
208
|
CustomizationCorners: () => CustomizationCorners,
|
|
207
209
|
CustomizationDefaultFont: () => CustomizationDefaultFont,
|
|
210
|
+
CustomizationDefaultMonospaceFont: () => CustomizationDefaultMonospaceFont,
|
|
208
211
|
CustomizationDepth: () => CustomizationDepth,
|
|
209
212
|
CustomizationHeaderPreset: () => CustomizationHeaderPreset,
|
|
210
213
|
CustomizationIconsStyle: () => CustomizationIconsStyle,
|
|
@@ -235,6 +238,7 @@ __export(src_exports, {
|
|
|
235
238
|
MemberRole: () => MemberRole,
|
|
236
239
|
OpenAPISpecProcessingErrorCode: () => OpenAPISpecProcessingErrorCode,
|
|
237
240
|
OpenAPISpecProcessingState: () => OpenAPISpecProcessingState,
|
|
241
|
+
OpenAPISpecVisibility: () => OpenAPISpecVisibility,
|
|
238
242
|
OrganizationBlockReason: () => OrganizationBlockReason,
|
|
239
243
|
OrganizationCommunityType: () => OrganizationCommunityType,
|
|
240
244
|
OrganizationType: () => OrganizationType,
|
|
@@ -268,13 +272,14 @@ __export(src_exports, {
|
|
|
268
272
|
StorageUploadKind: () => StorageUploadKind,
|
|
269
273
|
TeamMemberRole: () => TeamMemberRole,
|
|
270
274
|
TextAlignment: () => TextAlignment,
|
|
271
|
-
TranslationLanguage: () => TranslationLanguage
|
|
275
|
+
TranslationLanguage: () => TranslationLanguage,
|
|
276
|
+
TranslationStatus: () => TranslationStatus
|
|
272
277
|
});
|
|
273
278
|
module.exports = __toCommonJS(src_exports);
|
|
274
279
|
|
|
275
280
|
// package.json
|
|
276
281
|
var name = "@gitbook/api";
|
|
277
|
-
var version = "0.
|
|
282
|
+
var version = "0.129.0";
|
|
278
283
|
|
|
279
284
|
// src/client.ts
|
|
280
285
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -409,45 +414,6 @@ var TextAlignment = /* @__PURE__ */ ((TextAlignment2) => {
|
|
|
409
414
|
TextAlignment2["End"] = "end";
|
|
410
415
|
return TextAlignment2;
|
|
411
416
|
})(TextAlignment || {});
|
|
412
|
-
var TranslationLanguage = /* @__PURE__ */ ((TranslationLanguage2) => {
|
|
413
|
-
TranslationLanguage2["En"] = "en";
|
|
414
|
-
TranslationLanguage2["Fr"] = "fr";
|
|
415
|
-
TranslationLanguage2["De"] = "de";
|
|
416
|
-
TranslationLanguage2["Es"] = "es";
|
|
417
|
-
TranslationLanguage2["It"] = "it";
|
|
418
|
-
TranslationLanguage2["Pt"] = "pt";
|
|
419
|
-
TranslationLanguage2["Ru"] = "ru";
|
|
420
|
-
TranslationLanguage2["Ja"] = "ja";
|
|
421
|
-
TranslationLanguage2["Zh"] = "zh";
|
|
422
|
-
TranslationLanguage2["Ko"] = "ko";
|
|
423
|
-
TranslationLanguage2["Ar"] = "ar";
|
|
424
|
-
TranslationLanguage2["Hi"] = "hi";
|
|
425
|
-
TranslationLanguage2["Nl"] = "nl";
|
|
426
|
-
TranslationLanguage2["Pl"] = "pl";
|
|
427
|
-
TranslationLanguage2["Tr"] = "tr";
|
|
428
|
-
TranslationLanguage2["Sv"] = "sv";
|
|
429
|
-
TranslationLanguage2["No"] = "no";
|
|
430
|
-
TranslationLanguage2["Da"] = "da";
|
|
431
|
-
TranslationLanguage2["Fi"] = "fi";
|
|
432
|
-
TranslationLanguage2["El"] = "el";
|
|
433
|
-
TranslationLanguage2["Cs"] = "cs";
|
|
434
|
-
TranslationLanguage2["Hu"] = "hu";
|
|
435
|
-
TranslationLanguage2["Ro"] = "ro";
|
|
436
|
-
TranslationLanguage2["Th"] = "th";
|
|
437
|
-
TranslationLanguage2["Vi"] = "vi";
|
|
438
|
-
TranslationLanguage2["Id"] = "id";
|
|
439
|
-
TranslationLanguage2["Ms"] = "ms";
|
|
440
|
-
TranslationLanguage2["He"] = "he";
|
|
441
|
-
TranslationLanguage2["Uk"] = "uk";
|
|
442
|
-
TranslationLanguage2["Sk"] = "sk";
|
|
443
|
-
TranslationLanguage2["Bg"] = "bg";
|
|
444
|
-
TranslationLanguage2["Hr"] = "hr";
|
|
445
|
-
TranslationLanguage2["Lt"] = "lt";
|
|
446
|
-
TranslationLanguage2["Lv"] = "lv";
|
|
447
|
-
TranslationLanguage2["Et"] = "et";
|
|
448
|
-
TranslationLanguage2["Sl"] = "sl";
|
|
449
|
-
return TranslationLanguage2;
|
|
450
|
-
})(TranslationLanguage || {});
|
|
451
417
|
var RevisionPageLayoutOptionsWidth = /* @__PURE__ */ ((RevisionPageLayoutOptionsWidth2) => {
|
|
452
418
|
RevisionPageLayoutOptionsWidth2["Default"] = "default";
|
|
453
419
|
RevisionPageLayoutOptionsWidth2["Wide"] = "wide";
|
|
@@ -534,6 +500,11 @@ var OpenAPISpecProcessingState = /* @__PURE__ */ ((OpenAPISpecProcessingState2)
|
|
|
534
500
|
OpenAPISpecProcessingState2["Complete"] = "complete";
|
|
535
501
|
return OpenAPISpecProcessingState2;
|
|
536
502
|
})(OpenAPISpecProcessingState || {});
|
|
503
|
+
var OpenAPISpecVisibility = /* @__PURE__ */ ((OpenAPISpecVisibility2) => {
|
|
504
|
+
OpenAPISpecVisibility2["Private"] = "private";
|
|
505
|
+
OpenAPISpecVisibility2["Public"] = "public";
|
|
506
|
+
return OpenAPISpecVisibility2;
|
|
507
|
+
})(OpenAPISpecVisibility || {});
|
|
537
508
|
var OpenAPISpecProcessingErrorCode = /* @__PURE__ */ ((OpenAPISpecProcessingErrorCode2) => {
|
|
538
509
|
OpenAPISpecProcessingErrorCode2["FETCH_TIMEOUT"] = "FETCH_TIMEOUT";
|
|
539
510
|
OpenAPISpecProcessingErrorCode2["FETCH_ERROR"] = "FETCH_ERROR";
|
|
@@ -662,6 +633,7 @@ var SiteFeatureKey = /* @__PURE__ */ ((SiteFeatureKey2) => {
|
|
|
662
633
|
SiteFeatureKey2["SitesAdvancedInsights"] = "sites-advanced-insights";
|
|
663
634
|
SiteFeatureKey2["SitesAds"] = "sites-ads";
|
|
664
635
|
SiteFeatureKey2["SitesAiSearch"] = "sites-ai-search";
|
|
636
|
+
SiteFeatureKey2["SitesAiAssistant"] = "sites-ai-assistant";
|
|
665
637
|
SiteFeatureKey2["SitesApiPlayground"] = "sites-api-playground";
|
|
666
638
|
SiteFeatureKey2["SitesBasicCustomization"] = "sites-basic-customization";
|
|
667
639
|
SiteFeatureKey2["SitesCustomDomain"] = "sites-custom-domain";
|
|
@@ -732,6 +704,12 @@ var BillingSwitchAction = /* @__PURE__ */ ((BillingSwitchAction2) => {
|
|
|
732
704
|
BillingSwitchAction2["SwitchInterval"] = "switch_interval";
|
|
733
705
|
return BillingSwitchAction2;
|
|
734
706
|
})(BillingSwitchAction || {});
|
|
707
|
+
var BillingMeter = /* @__PURE__ */ ((BillingMeter2) => {
|
|
708
|
+
BillingMeter2["AiResponses"] = "ai_responses";
|
|
709
|
+
BillingMeter2["AiAgentResponses"] = "ai_agent_responses";
|
|
710
|
+
BillingMeter2["TranslationWords"] = "translation_words";
|
|
711
|
+
return BillingMeter2;
|
|
712
|
+
})(BillingMeter || {});
|
|
735
713
|
var SAMLProviderStatus = /* @__PURE__ */ ((SAMLProviderStatus2) => {
|
|
736
714
|
SAMLProviderStatus2["Active"] = "active";
|
|
737
715
|
SAMLProviderStatus2["Pending"] = "pending";
|
|
@@ -744,6 +722,51 @@ var AgentTaskStatus = /* @__PURE__ */ ((AgentTaskStatus2) => {
|
|
|
744
722
|
AgentTaskStatus2["Canceled"] = "canceled";
|
|
745
723
|
return AgentTaskStatus2;
|
|
746
724
|
})(AgentTaskStatus || {});
|
|
725
|
+
var TranslationStatus = /* @__PURE__ */ ((TranslationStatus2) => {
|
|
726
|
+
TranslationStatus2["Pending"] = "pending";
|
|
727
|
+
TranslationStatus2["Running"] = "running";
|
|
728
|
+
TranslationStatus2["Completed"] = "completed";
|
|
729
|
+
return TranslationStatus2;
|
|
730
|
+
})(TranslationStatus || {});
|
|
731
|
+
var TranslationLanguage = /* @__PURE__ */ ((TranslationLanguage2) => {
|
|
732
|
+
TranslationLanguage2["En"] = "en";
|
|
733
|
+
TranslationLanguage2["Fr"] = "fr";
|
|
734
|
+
TranslationLanguage2["De"] = "de";
|
|
735
|
+
TranslationLanguage2["Es"] = "es";
|
|
736
|
+
TranslationLanguage2["It"] = "it";
|
|
737
|
+
TranslationLanguage2["Pt"] = "pt";
|
|
738
|
+
TranslationLanguage2["Ru"] = "ru";
|
|
739
|
+
TranslationLanguage2["Ja"] = "ja";
|
|
740
|
+
TranslationLanguage2["Zh"] = "zh";
|
|
741
|
+
TranslationLanguage2["Ko"] = "ko";
|
|
742
|
+
TranslationLanguage2["Ar"] = "ar";
|
|
743
|
+
TranslationLanguage2["Hi"] = "hi";
|
|
744
|
+
TranslationLanguage2["Nl"] = "nl";
|
|
745
|
+
TranslationLanguage2["Pl"] = "pl";
|
|
746
|
+
TranslationLanguage2["Tr"] = "tr";
|
|
747
|
+
TranslationLanguage2["Sv"] = "sv";
|
|
748
|
+
TranslationLanguage2["No"] = "no";
|
|
749
|
+
TranslationLanguage2["Da"] = "da";
|
|
750
|
+
TranslationLanguage2["Fi"] = "fi";
|
|
751
|
+
TranslationLanguage2["El"] = "el";
|
|
752
|
+
TranslationLanguage2["Cs"] = "cs";
|
|
753
|
+
TranslationLanguage2["Hu"] = "hu";
|
|
754
|
+
TranslationLanguage2["Ro"] = "ro";
|
|
755
|
+
TranslationLanguage2["Th"] = "th";
|
|
756
|
+
TranslationLanguage2["Vi"] = "vi";
|
|
757
|
+
TranslationLanguage2["Id"] = "id";
|
|
758
|
+
TranslationLanguage2["Ms"] = "ms";
|
|
759
|
+
TranslationLanguage2["He"] = "he";
|
|
760
|
+
TranslationLanguage2["Uk"] = "uk";
|
|
761
|
+
TranslationLanguage2["Sk"] = "sk";
|
|
762
|
+
TranslationLanguage2["Bg"] = "bg";
|
|
763
|
+
TranslationLanguage2["Hr"] = "hr";
|
|
764
|
+
TranslationLanguage2["Lt"] = "lt";
|
|
765
|
+
TranslationLanguage2["Lv"] = "lv";
|
|
766
|
+
TranslationLanguage2["Et"] = "et";
|
|
767
|
+
TranslationLanguage2["Sl"] = "sl";
|
|
768
|
+
return TranslationLanguage2;
|
|
769
|
+
})(TranslationLanguage || {});
|
|
747
770
|
var StorageUploadKind = /* @__PURE__ */ ((StorageUploadKind2) => {
|
|
748
771
|
StorageUploadKind2["CustomizationFont"] = "customization_font";
|
|
749
772
|
return StorageUploadKind2;
|
|
@@ -789,6 +812,17 @@ var CustomizationDefaultFont = /* @__PURE__ */ ((CustomizationDefaultFont2) => {
|
|
|
789
812
|
CustomizationDefaultFont2["FiraSans"] = "FiraSans";
|
|
790
813
|
return CustomizationDefaultFont2;
|
|
791
814
|
})(CustomizationDefaultFont || {});
|
|
815
|
+
var CustomizationDefaultMonospaceFont = /* @__PURE__ */ ((CustomizationDefaultMonospaceFont2) => {
|
|
816
|
+
CustomizationDefaultMonospaceFont2["FiraCode"] = "FiraCode";
|
|
817
|
+
CustomizationDefaultMonospaceFont2["IBMPlexMono"] = "IBMPlexMono";
|
|
818
|
+
CustomizationDefaultMonospaceFont2["JetBrainsMono"] = "JetBrainsMono";
|
|
819
|
+
CustomizationDefaultMonospaceFont2["SourceCodePro"] = "SourceCodePro";
|
|
820
|
+
CustomizationDefaultMonospaceFont2["RobotoMono"] = "RobotoMono";
|
|
821
|
+
CustomizationDefaultMonospaceFont2["SpaceMono"] = "SpaceMono";
|
|
822
|
+
CustomizationDefaultMonospaceFont2["DMMono"] = "DMMono";
|
|
823
|
+
CustomizationDefaultMonospaceFont2["Inconsolata"] = "Inconsolata";
|
|
824
|
+
return CustomizationDefaultMonospaceFont2;
|
|
825
|
+
})(CustomizationDefaultMonospaceFont || {});
|
|
792
826
|
var CustomizationBackground = /* @__PURE__ */ ((CustomizationBackground2) => {
|
|
793
827
|
CustomizationBackground2["Plain"] = "plain";
|
|
794
828
|
CustomizationBackground2["Match"] = "match";
|
|
@@ -843,6 +877,12 @@ var CustomizationThemeMode = /* @__PURE__ */ ((CustomizationThemeMode2) => {
|
|
|
843
877
|
CustomizationThemeMode2["Dark"] = "dark";
|
|
844
878
|
return CustomizationThemeMode2;
|
|
845
879
|
})(CustomizationThemeMode || {});
|
|
880
|
+
var CustomizationAIMode = /* @__PURE__ */ ((CustomizationAIMode2) => {
|
|
881
|
+
CustomizationAIMode2["None"] = "none";
|
|
882
|
+
CustomizationAIMode2["Search"] = "search";
|
|
883
|
+
CustomizationAIMode2["Assistant"] = "assistant";
|
|
884
|
+
return CustomizationAIMode2;
|
|
885
|
+
})(CustomizationAIMode || {});
|
|
846
886
|
var SiteExternalLinksTarget = /* @__PURE__ */ ((SiteExternalLinksTarget2) => {
|
|
847
887
|
SiteExternalLinksTarget2["Self"] = "self";
|
|
848
888
|
SiteExternalLinksTarget2["Blank"] = "blank";
|
|
@@ -888,6 +928,7 @@ var SiteInsightsEventType = /* @__PURE__ */ ((SiteInsightsEventType2) => {
|
|
|
888
928
|
SiteInsightsEventType2["PagePostFeedback"] = "page_post_feedback";
|
|
889
929
|
SiteInsightsEventType2["PagePostFeedbackComment"] = "page_post_feedback_comment";
|
|
890
930
|
SiteInsightsEventType2["AskQuestion"] = "ask_question";
|
|
931
|
+
SiteInsightsEventType2["AskRateResponse"] = "ask_rate_response";
|
|
891
932
|
SiteInsightsEventType2["LinkClick"] = "link_click";
|
|
892
933
|
SiteInsightsEventType2["ApiClientOpen"] = "api_client_open";
|
|
893
934
|
SiteInsightsEventType2["ApiClientRequest"] = "api_client_request";
|
|
@@ -1398,6 +1439,12 @@ var Api = class extends HttpClient {
|
|
|
1398
1439
|
format: "json",
|
|
1399
1440
|
...params
|
|
1400
1441
|
}),
|
|
1442
|
+
deleteLegacyGitInstallation: (spaceId, params = {}) => this.request({
|
|
1443
|
+
path: `/spaces/${spaceId}/git/legacy-installation`,
|
|
1444
|
+
method: "DELETE",
|
|
1445
|
+
secure: true,
|
|
1446
|
+
...params
|
|
1447
|
+
}),
|
|
1401
1448
|
inviteToSpace: (spaceId, data, params = {}) => this.request({
|
|
1402
1449
|
path: `/spaces/${spaceId}/permissions`,
|
|
1403
1450
|
method: "POST",
|
|
@@ -1467,6 +1514,14 @@ var Api = class extends HttpClient {
|
|
|
1467
1514
|
format: "json",
|
|
1468
1515
|
...params
|
|
1469
1516
|
}),
|
|
1517
|
+
applyTemplateToSpace: (spaceId, data, params = {}) => this.request({
|
|
1518
|
+
path: `/spaces/${spaceId}/content/template`,
|
|
1519
|
+
method: "POST",
|
|
1520
|
+
body: data,
|
|
1521
|
+
secure: true,
|
|
1522
|
+
type: "application/json" /* Json */,
|
|
1523
|
+
...params
|
|
1524
|
+
}),
|
|
1470
1525
|
listPages: (spaceId, query, params = {}) => this.request({
|
|
1471
1526
|
path: `/spaces/${spaceId}/content/pages`,
|
|
1472
1527
|
method: "GET",
|
|
@@ -2820,6 +2875,15 @@ var Api = class extends HttpClient {
|
|
|
2820
2875
|
format: "json",
|
|
2821
2876
|
...params
|
|
2822
2877
|
}),
|
|
2878
|
+
updateOpenApiSpecBySlug: (organizationId, specSlug, data, params = {}) => this.request({
|
|
2879
|
+
path: `/orgs/${organizationId}/openapi/${specSlug}`,
|
|
2880
|
+
method: "PATCH",
|
|
2881
|
+
body: data,
|
|
2882
|
+
secure: true,
|
|
2883
|
+
type: "application/json" /* Json */,
|
|
2884
|
+
format: "json",
|
|
2885
|
+
...params
|
|
2886
|
+
}),
|
|
2823
2887
|
deleteOpenApiSpecBySlug: (organizationId, specSlug, params = {}) => this.request({
|
|
2824
2888
|
path: `/orgs/${organizationId}/openapi/${specSlug}`,
|
|
2825
2889
|
method: "DELETE",
|
|
@@ -2924,7 +2988,7 @@ var Api = class extends HttpClient {
|
|
|
2924
2988
|
format: "json",
|
|
2925
2989
|
...params
|
|
2926
2990
|
}),
|
|
2927
|
-
|
|
2991
|
+
listTranslations: (organizationId, query, params = {}) => this.request({
|
|
2928
2992
|
path: `/orgs/${organizationId}/translations`,
|
|
2929
2993
|
method: "GET",
|
|
2930
2994
|
query,
|
|
@@ -2932,7 +2996,7 @@ var Api = class extends HttpClient {
|
|
|
2932
2996
|
format: "json",
|
|
2933
2997
|
...params
|
|
2934
2998
|
}),
|
|
2935
|
-
|
|
2999
|
+
createTranslation: (organizationId, data, params = {}) => this.request({
|
|
2936
3000
|
path: `/orgs/${organizationId}/translations`,
|
|
2937
3001
|
method: "POST",
|
|
2938
3002
|
body: data,
|
|
@@ -2941,15 +3005,15 @@ var Api = class extends HttpClient {
|
|
|
2941
3005
|
format: "json",
|
|
2942
3006
|
...params
|
|
2943
3007
|
}),
|
|
2944
|
-
|
|
2945
|
-
path: `/orgs/${organizationId}/translations/${
|
|
3008
|
+
getTranslation: (organizationId, translationId, params = {}) => this.request({
|
|
3009
|
+
path: `/orgs/${organizationId}/translations/${translationId}`,
|
|
2946
3010
|
method: "GET",
|
|
2947
3011
|
secure: true,
|
|
2948
3012
|
format: "json",
|
|
2949
3013
|
...params
|
|
2950
3014
|
}),
|
|
2951
|
-
|
|
2952
|
-
path: `/orgs/${organizationId}/translations/${
|
|
3015
|
+
updateTranslation: (organizationId, translationId, data, params = {}) => this.request({
|
|
3016
|
+
path: `/orgs/${organizationId}/translations/${translationId}`,
|
|
2953
3017
|
method: "PUT",
|
|
2954
3018
|
body: data,
|
|
2955
3019
|
secure: true,
|
|
@@ -2957,40 +3021,33 @@ var Api = class extends HttpClient {
|
|
|
2957
3021
|
format: "json",
|
|
2958
3022
|
...params
|
|
2959
3023
|
}),
|
|
2960
|
-
|
|
2961
|
-
path: `/orgs/${organizationId}/translations/${
|
|
3024
|
+
deleteTranslation: (organizationId, translationId, params = {}) => this.request({
|
|
3025
|
+
path: `/orgs/${organizationId}/translations/${translationId}`,
|
|
2962
3026
|
method: "DELETE",
|
|
2963
3027
|
secure: true,
|
|
2964
3028
|
...params
|
|
2965
3029
|
}),
|
|
2966
|
-
|
|
2967
|
-
path: `/orgs/${organizationId}/translations
|
|
3030
|
+
listGlossaryEntries: (organizationId, query, params = {}) => this.request({
|
|
3031
|
+
path: `/orgs/${organizationId}/translations-glossary`,
|
|
2968
3032
|
method: "GET",
|
|
2969
3033
|
query,
|
|
2970
3034
|
secure: true,
|
|
2971
3035
|
format: "json",
|
|
2972
3036
|
...params
|
|
2973
3037
|
}),
|
|
2974
|
-
|
|
2975
|
-
path: `/orgs/${organizationId}/translations
|
|
2976
|
-
method: "GET",
|
|
2977
|
-
secure: true,
|
|
2978
|
-
format: "json",
|
|
2979
|
-
...params
|
|
2980
|
-
}),
|
|
2981
|
-
createOrUpdateTranslationLanguage: (organizationId, translationSettingsId, translationLanguage, data, params = {}) => this.request({
|
|
2982
|
-
path: `/orgs/${organizationId}/translations/${translationSettingsId}/languages/${translationLanguage}`,
|
|
3038
|
+
updateGlossaryEntries: (organizationId, data, params = {}) => this.request({
|
|
3039
|
+
path: `/orgs/${organizationId}/translations-glossary`,
|
|
2983
3040
|
method: "PUT",
|
|
2984
3041
|
body: data,
|
|
2985
3042
|
secure: true,
|
|
2986
3043
|
type: "application/json" /* Json */,
|
|
2987
|
-
format: "json",
|
|
2988
3044
|
...params
|
|
2989
3045
|
}),
|
|
2990
|
-
|
|
2991
|
-
path: `/orgs/${organizationId}/translations/${
|
|
2992
|
-
method: "
|
|
3046
|
+
getGlossaryEntry: (organizationId, glossaryEntryId, params = {}) => this.request({
|
|
3047
|
+
path: `/orgs/${organizationId}/translations-glossary/${glossaryEntryId}`,
|
|
3048
|
+
method: "GET",
|
|
2993
3049
|
secure: true,
|
|
3050
|
+
format: "json",
|
|
2994
3051
|
...params
|
|
2995
3052
|
}),
|
|
2996
3053
|
generateStorageUploadUrl: (organizationId, data, params = {}) => this.request({
|
|
@@ -3741,6 +3798,7 @@ var GitBookAPI = class extends Api {
|
|
|
3741
3798
|
AgentTaskStatus,
|
|
3742
3799
|
Api,
|
|
3743
3800
|
BillingInterval,
|
|
3801
|
+
BillingMeter,
|
|
3744
3802
|
BillingProduct,
|
|
3745
3803
|
BillingSwitchAction,
|
|
3746
3804
|
BillingTrialStatus,
|
|
@@ -3757,9 +3815,11 @@ var GitBookAPI = class extends Api {
|
|
|
3757
3815
|
CustomHostnameDnsStatus,
|
|
3758
3816
|
CustomHostnameErrorStatus,
|
|
3759
3817
|
CustomHostnameSslStatus,
|
|
3818
|
+
CustomizationAIMode,
|
|
3760
3819
|
CustomizationBackground,
|
|
3761
3820
|
CustomizationCorners,
|
|
3762
3821
|
CustomizationDefaultFont,
|
|
3822
|
+
CustomizationDefaultMonospaceFont,
|
|
3763
3823
|
CustomizationDepth,
|
|
3764
3824
|
CustomizationHeaderPreset,
|
|
3765
3825
|
CustomizationIconsStyle,
|
|
@@ -3790,6 +3850,7 @@ var GitBookAPI = class extends Api {
|
|
|
3790
3850
|
MemberRole,
|
|
3791
3851
|
OpenAPISpecProcessingErrorCode,
|
|
3792
3852
|
OpenAPISpecProcessingState,
|
|
3853
|
+
OpenAPISpecVisibility,
|
|
3793
3854
|
OrganizationBlockReason,
|
|
3794
3855
|
OrganizationCommunityType,
|
|
3795
3856
|
OrganizationType,
|
|
@@ -3823,5 +3884,6 @@ var GitBookAPI = class extends Api {
|
|
|
3823
3884
|
StorageUploadKind,
|
|
3824
3885
|
TeamMemberRole,
|
|
3825
3886
|
TextAlignment,
|
|
3826
|
-
TranslationLanguage
|
|
3887
|
+
TranslationLanguage,
|
|
3888
|
+
TranslationStatus
|
|
3827
3889
|
});
|