@gitbook/api 0.128.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 +405 -201
- package/dist/index.cjs +105 -65
- package/dist/index.js +101 -64
- package/package.json +1 -1
- package/spec/openapi.json +1088 -429
- package/spec/openapi.yaml +794 -328
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,
|
|
@@ -237,6 +238,7 @@ __export(src_exports, {
|
|
|
237
238
|
MemberRole: () => MemberRole,
|
|
238
239
|
OpenAPISpecProcessingErrorCode: () => OpenAPISpecProcessingErrorCode,
|
|
239
240
|
OpenAPISpecProcessingState: () => OpenAPISpecProcessingState,
|
|
241
|
+
OpenAPISpecVisibility: () => OpenAPISpecVisibility,
|
|
240
242
|
OrganizationBlockReason: () => OrganizationBlockReason,
|
|
241
243
|
OrganizationCommunityType: () => OrganizationCommunityType,
|
|
242
244
|
OrganizationType: () => OrganizationType,
|
|
@@ -270,13 +272,14 @@ __export(src_exports, {
|
|
|
270
272
|
StorageUploadKind: () => StorageUploadKind,
|
|
271
273
|
TeamMemberRole: () => TeamMemberRole,
|
|
272
274
|
TextAlignment: () => TextAlignment,
|
|
273
|
-
TranslationLanguage: () => TranslationLanguage
|
|
275
|
+
TranslationLanguage: () => TranslationLanguage,
|
|
276
|
+
TranslationStatus: () => TranslationStatus
|
|
274
277
|
});
|
|
275
278
|
module.exports = __toCommonJS(src_exports);
|
|
276
279
|
|
|
277
280
|
// package.json
|
|
278
281
|
var name = "@gitbook/api";
|
|
279
|
-
var version = "0.
|
|
282
|
+
var version = "0.129.0";
|
|
280
283
|
|
|
281
284
|
// src/client.ts
|
|
282
285
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -411,45 +414,6 @@ var TextAlignment = /* @__PURE__ */ ((TextAlignment2) => {
|
|
|
411
414
|
TextAlignment2["End"] = "end";
|
|
412
415
|
return TextAlignment2;
|
|
413
416
|
})(TextAlignment || {});
|
|
414
|
-
var TranslationLanguage = /* @__PURE__ */ ((TranslationLanguage2) => {
|
|
415
|
-
TranslationLanguage2["En"] = "en";
|
|
416
|
-
TranslationLanguage2["Fr"] = "fr";
|
|
417
|
-
TranslationLanguage2["De"] = "de";
|
|
418
|
-
TranslationLanguage2["Es"] = "es";
|
|
419
|
-
TranslationLanguage2["It"] = "it";
|
|
420
|
-
TranslationLanguage2["Pt"] = "pt";
|
|
421
|
-
TranslationLanguage2["Ru"] = "ru";
|
|
422
|
-
TranslationLanguage2["Ja"] = "ja";
|
|
423
|
-
TranslationLanguage2["Zh"] = "zh";
|
|
424
|
-
TranslationLanguage2["Ko"] = "ko";
|
|
425
|
-
TranslationLanguage2["Ar"] = "ar";
|
|
426
|
-
TranslationLanguage2["Hi"] = "hi";
|
|
427
|
-
TranslationLanguage2["Nl"] = "nl";
|
|
428
|
-
TranslationLanguage2["Pl"] = "pl";
|
|
429
|
-
TranslationLanguage2["Tr"] = "tr";
|
|
430
|
-
TranslationLanguage2["Sv"] = "sv";
|
|
431
|
-
TranslationLanguage2["No"] = "no";
|
|
432
|
-
TranslationLanguage2["Da"] = "da";
|
|
433
|
-
TranslationLanguage2["Fi"] = "fi";
|
|
434
|
-
TranslationLanguage2["El"] = "el";
|
|
435
|
-
TranslationLanguage2["Cs"] = "cs";
|
|
436
|
-
TranslationLanguage2["Hu"] = "hu";
|
|
437
|
-
TranslationLanguage2["Ro"] = "ro";
|
|
438
|
-
TranslationLanguage2["Th"] = "th";
|
|
439
|
-
TranslationLanguage2["Vi"] = "vi";
|
|
440
|
-
TranslationLanguage2["Id"] = "id";
|
|
441
|
-
TranslationLanguage2["Ms"] = "ms";
|
|
442
|
-
TranslationLanguage2["He"] = "he";
|
|
443
|
-
TranslationLanguage2["Uk"] = "uk";
|
|
444
|
-
TranslationLanguage2["Sk"] = "sk";
|
|
445
|
-
TranslationLanguage2["Bg"] = "bg";
|
|
446
|
-
TranslationLanguage2["Hr"] = "hr";
|
|
447
|
-
TranslationLanguage2["Lt"] = "lt";
|
|
448
|
-
TranslationLanguage2["Lv"] = "lv";
|
|
449
|
-
TranslationLanguage2["Et"] = "et";
|
|
450
|
-
TranslationLanguage2["Sl"] = "sl";
|
|
451
|
-
return TranslationLanguage2;
|
|
452
|
-
})(TranslationLanguage || {});
|
|
453
417
|
var RevisionPageLayoutOptionsWidth = /* @__PURE__ */ ((RevisionPageLayoutOptionsWidth2) => {
|
|
454
418
|
RevisionPageLayoutOptionsWidth2["Default"] = "default";
|
|
455
419
|
RevisionPageLayoutOptionsWidth2["Wide"] = "wide";
|
|
@@ -536,6 +500,11 @@ var OpenAPISpecProcessingState = /* @__PURE__ */ ((OpenAPISpecProcessingState2)
|
|
|
536
500
|
OpenAPISpecProcessingState2["Complete"] = "complete";
|
|
537
501
|
return OpenAPISpecProcessingState2;
|
|
538
502
|
})(OpenAPISpecProcessingState || {});
|
|
503
|
+
var OpenAPISpecVisibility = /* @__PURE__ */ ((OpenAPISpecVisibility2) => {
|
|
504
|
+
OpenAPISpecVisibility2["Private"] = "private";
|
|
505
|
+
OpenAPISpecVisibility2["Public"] = "public";
|
|
506
|
+
return OpenAPISpecVisibility2;
|
|
507
|
+
})(OpenAPISpecVisibility || {});
|
|
539
508
|
var OpenAPISpecProcessingErrorCode = /* @__PURE__ */ ((OpenAPISpecProcessingErrorCode2) => {
|
|
540
509
|
OpenAPISpecProcessingErrorCode2["FETCH_TIMEOUT"] = "FETCH_TIMEOUT";
|
|
541
510
|
OpenAPISpecProcessingErrorCode2["FETCH_ERROR"] = "FETCH_ERROR";
|
|
@@ -735,6 +704,12 @@ var BillingSwitchAction = /* @__PURE__ */ ((BillingSwitchAction2) => {
|
|
|
735
704
|
BillingSwitchAction2["SwitchInterval"] = "switch_interval";
|
|
736
705
|
return BillingSwitchAction2;
|
|
737
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 || {});
|
|
738
713
|
var SAMLProviderStatus = /* @__PURE__ */ ((SAMLProviderStatus2) => {
|
|
739
714
|
SAMLProviderStatus2["Active"] = "active";
|
|
740
715
|
SAMLProviderStatus2["Pending"] = "pending";
|
|
@@ -747,6 +722,51 @@ var AgentTaskStatus = /* @__PURE__ */ ((AgentTaskStatus2) => {
|
|
|
747
722
|
AgentTaskStatus2["Canceled"] = "canceled";
|
|
748
723
|
return AgentTaskStatus2;
|
|
749
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 || {});
|
|
750
770
|
var StorageUploadKind = /* @__PURE__ */ ((StorageUploadKind2) => {
|
|
751
771
|
StorageUploadKind2["CustomizationFont"] = "customization_font";
|
|
752
772
|
return StorageUploadKind2;
|
|
@@ -908,6 +928,7 @@ var SiteInsightsEventType = /* @__PURE__ */ ((SiteInsightsEventType2) => {
|
|
|
908
928
|
SiteInsightsEventType2["PagePostFeedback"] = "page_post_feedback";
|
|
909
929
|
SiteInsightsEventType2["PagePostFeedbackComment"] = "page_post_feedback_comment";
|
|
910
930
|
SiteInsightsEventType2["AskQuestion"] = "ask_question";
|
|
931
|
+
SiteInsightsEventType2["AskRateResponse"] = "ask_rate_response";
|
|
911
932
|
SiteInsightsEventType2["LinkClick"] = "link_click";
|
|
912
933
|
SiteInsightsEventType2["ApiClientOpen"] = "api_client_open";
|
|
913
934
|
SiteInsightsEventType2["ApiClientRequest"] = "api_client_request";
|
|
@@ -1418,6 +1439,12 @@ var Api = class extends HttpClient {
|
|
|
1418
1439
|
format: "json",
|
|
1419
1440
|
...params
|
|
1420
1441
|
}),
|
|
1442
|
+
deleteLegacyGitInstallation: (spaceId, params = {}) => this.request({
|
|
1443
|
+
path: `/spaces/${spaceId}/git/legacy-installation`,
|
|
1444
|
+
method: "DELETE",
|
|
1445
|
+
secure: true,
|
|
1446
|
+
...params
|
|
1447
|
+
}),
|
|
1421
1448
|
inviteToSpace: (spaceId, data, params = {}) => this.request({
|
|
1422
1449
|
path: `/spaces/${spaceId}/permissions`,
|
|
1423
1450
|
method: "POST",
|
|
@@ -1487,6 +1514,14 @@ var Api = class extends HttpClient {
|
|
|
1487
1514
|
format: "json",
|
|
1488
1515
|
...params
|
|
1489
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
|
+
}),
|
|
1490
1525
|
listPages: (spaceId, query, params = {}) => this.request({
|
|
1491
1526
|
path: `/spaces/${spaceId}/content/pages`,
|
|
1492
1527
|
method: "GET",
|
|
@@ -2840,6 +2875,15 @@ var Api = class extends HttpClient {
|
|
|
2840
2875
|
format: "json",
|
|
2841
2876
|
...params
|
|
2842
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
|
+
}),
|
|
2843
2887
|
deleteOpenApiSpecBySlug: (organizationId, specSlug, params = {}) => this.request({
|
|
2844
2888
|
path: `/orgs/${organizationId}/openapi/${specSlug}`,
|
|
2845
2889
|
method: "DELETE",
|
|
@@ -2944,7 +2988,7 @@ var Api = class extends HttpClient {
|
|
|
2944
2988
|
format: "json",
|
|
2945
2989
|
...params
|
|
2946
2990
|
}),
|
|
2947
|
-
|
|
2991
|
+
listTranslations: (organizationId, query, params = {}) => this.request({
|
|
2948
2992
|
path: `/orgs/${organizationId}/translations`,
|
|
2949
2993
|
method: "GET",
|
|
2950
2994
|
query,
|
|
@@ -2952,7 +2996,7 @@ var Api = class extends HttpClient {
|
|
|
2952
2996
|
format: "json",
|
|
2953
2997
|
...params
|
|
2954
2998
|
}),
|
|
2955
|
-
|
|
2999
|
+
createTranslation: (organizationId, data, params = {}) => this.request({
|
|
2956
3000
|
path: `/orgs/${organizationId}/translations`,
|
|
2957
3001
|
method: "POST",
|
|
2958
3002
|
body: data,
|
|
@@ -2961,15 +3005,15 @@ var Api = class extends HttpClient {
|
|
|
2961
3005
|
format: "json",
|
|
2962
3006
|
...params
|
|
2963
3007
|
}),
|
|
2964
|
-
|
|
2965
|
-
path: `/orgs/${organizationId}/translations/${
|
|
3008
|
+
getTranslation: (organizationId, translationId, params = {}) => this.request({
|
|
3009
|
+
path: `/orgs/${organizationId}/translations/${translationId}`,
|
|
2966
3010
|
method: "GET",
|
|
2967
3011
|
secure: true,
|
|
2968
3012
|
format: "json",
|
|
2969
3013
|
...params
|
|
2970
3014
|
}),
|
|
2971
|
-
|
|
2972
|
-
path: `/orgs/${organizationId}/translations/${
|
|
3015
|
+
updateTranslation: (organizationId, translationId, data, params = {}) => this.request({
|
|
3016
|
+
path: `/orgs/${organizationId}/translations/${translationId}`,
|
|
2973
3017
|
method: "PUT",
|
|
2974
3018
|
body: data,
|
|
2975
3019
|
secure: true,
|
|
@@ -2977,40 +3021,33 @@ var Api = class extends HttpClient {
|
|
|
2977
3021
|
format: "json",
|
|
2978
3022
|
...params
|
|
2979
3023
|
}),
|
|
2980
|
-
|
|
2981
|
-
path: `/orgs/${organizationId}/translations/${
|
|
3024
|
+
deleteTranslation: (organizationId, translationId, params = {}) => this.request({
|
|
3025
|
+
path: `/orgs/${organizationId}/translations/${translationId}`,
|
|
2982
3026
|
method: "DELETE",
|
|
2983
3027
|
secure: true,
|
|
2984
3028
|
...params
|
|
2985
3029
|
}),
|
|
2986
|
-
|
|
2987
|
-
path: `/orgs/${organizationId}/translations
|
|
3030
|
+
listGlossaryEntries: (organizationId, query, params = {}) => this.request({
|
|
3031
|
+
path: `/orgs/${organizationId}/translations-glossary`,
|
|
2988
3032
|
method: "GET",
|
|
2989
3033
|
query,
|
|
2990
3034
|
secure: true,
|
|
2991
3035
|
format: "json",
|
|
2992
3036
|
...params
|
|
2993
3037
|
}),
|
|
2994
|
-
|
|
2995
|
-
path: `/orgs/${organizationId}/translations
|
|
2996
|
-
method: "GET",
|
|
2997
|
-
secure: true,
|
|
2998
|
-
format: "json",
|
|
2999
|
-
...params
|
|
3000
|
-
}),
|
|
3001
|
-
createOrUpdateTranslationLanguage: (organizationId, translationSettingsId, translationLanguage, data, params = {}) => this.request({
|
|
3002
|
-
path: `/orgs/${organizationId}/translations/${translationSettingsId}/languages/${translationLanguage}`,
|
|
3038
|
+
updateGlossaryEntries: (organizationId, data, params = {}) => this.request({
|
|
3039
|
+
path: `/orgs/${organizationId}/translations-glossary`,
|
|
3003
3040
|
method: "PUT",
|
|
3004
3041
|
body: data,
|
|
3005
3042
|
secure: true,
|
|
3006
3043
|
type: "application/json" /* Json */,
|
|
3007
|
-
format: "json",
|
|
3008
3044
|
...params
|
|
3009
3045
|
}),
|
|
3010
|
-
|
|
3011
|
-
path: `/orgs/${organizationId}/translations/${
|
|
3012
|
-
method: "
|
|
3046
|
+
getGlossaryEntry: (organizationId, glossaryEntryId, params = {}) => this.request({
|
|
3047
|
+
path: `/orgs/${organizationId}/translations-glossary/${glossaryEntryId}`,
|
|
3048
|
+
method: "GET",
|
|
3013
3049
|
secure: true,
|
|
3050
|
+
format: "json",
|
|
3014
3051
|
...params
|
|
3015
3052
|
}),
|
|
3016
3053
|
generateStorageUploadUrl: (organizationId, data, params = {}) => this.request({
|
|
@@ -3761,6 +3798,7 @@ var GitBookAPI = class extends Api {
|
|
|
3761
3798
|
AgentTaskStatus,
|
|
3762
3799
|
Api,
|
|
3763
3800
|
BillingInterval,
|
|
3801
|
+
BillingMeter,
|
|
3764
3802
|
BillingProduct,
|
|
3765
3803
|
BillingSwitchAction,
|
|
3766
3804
|
BillingTrialStatus,
|
|
@@ -3812,6 +3850,7 @@ var GitBookAPI = class extends Api {
|
|
|
3812
3850
|
MemberRole,
|
|
3813
3851
|
OpenAPISpecProcessingErrorCode,
|
|
3814
3852
|
OpenAPISpecProcessingState,
|
|
3853
|
+
OpenAPISpecVisibility,
|
|
3815
3854
|
OrganizationBlockReason,
|
|
3816
3855
|
OrganizationCommunityType,
|
|
3817
3856
|
OrganizationType,
|
|
@@ -3845,5 +3884,6 @@ var GitBookAPI = class extends Api {
|
|
|
3845
3884
|
StorageUploadKind,
|
|
3846
3885
|
TeamMemberRole,
|
|
3847
3886
|
TextAlignment,
|
|
3848
|
-
TranslationLanguage
|
|
3887
|
+
TranslationLanguage,
|
|
3888
|
+
TranslationStatus
|
|
3849
3889
|
});
|
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.129.0";
|
|
176
176
|
|
|
177
177
|
// src/client.ts
|
|
178
178
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -307,45 +307,6 @@ var TextAlignment = /* @__PURE__ */ ((TextAlignment2) => {
|
|
|
307
307
|
TextAlignment2["End"] = "end";
|
|
308
308
|
return TextAlignment2;
|
|
309
309
|
})(TextAlignment || {});
|
|
310
|
-
var TranslationLanguage = /* @__PURE__ */ ((TranslationLanguage2) => {
|
|
311
|
-
TranslationLanguage2["En"] = "en";
|
|
312
|
-
TranslationLanguage2["Fr"] = "fr";
|
|
313
|
-
TranslationLanguage2["De"] = "de";
|
|
314
|
-
TranslationLanguage2["Es"] = "es";
|
|
315
|
-
TranslationLanguage2["It"] = "it";
|
|
316
|
-
TranslationLanguage2["Pt"] = "pt";
|
|
317
|
-
TranslationLanguage2["Ru"] = "ru";
|
|
318
|
-
TranslationLanguage2["Ja"] = "ja";
|
|
319
|
-
TranslationLanguage2["Zh"] = "zh";
|
|
320
|
-
TranslationLanguage2["Ko"] = "ko";
|
|
321
|
-
TranslationLanguage2["Ar"] = "ar";
|
|
322
|
-
TranslationLanguage2["Hi"] = "hi";
|
|
323
|
-
TranslationLanguage2["Nl"] = "nl";
|
|
324
|
-
TranslationLanguage2["Pl"] = "pl";
|
|
325
|
-
TranslationLanguage2["Tr"] = "tr";
|
|
326
|
-
TranslationLanguage2["Sv"] = "sv";
|
|
327
|
-
TranslationLanguage2["No"] = "no";
|
|
328
|
-
TranslationLanguage2["Da"] = "da";
|
|
329
|
-
TranslationLanguage2["Fi"] = "fi";
|
|
330
|
-
TranslationLanguage2["El"] = "el";
|
|
331
|
-
TranslationLanguage2["Cs"] = "cs";
|
|
332
|
-
TranslationLanguage2["Hu"] = "hu";
|
|
333
|
-
TranslationLanguage2["Ro"] = "ro";
|
|
334
|
-
TranslationLanguage2["Th"] = "th";
|
|
335
|
-
TranslationLanguage2["Vi"] = "vi";
|
|
336
|
-
TranslationLanguage2["Id"] = "id";
|
|
337
|
-
TranslationLanguage2["Ms"] = "ms";
|
|
338
|
-
TranslationLanguage2["He"] = "he";
|
|
339
|
-
TranslationLanguage2["Uk"] = "uk";
|
|
340
|
-
TranslationLanguage2["Sk"] = "sk";
|
|
341
|
-
TranslationLanguage2["Bg"] = "bg";
|
|
342
|
-
TranslationLanguage2["Hr"] = "hr";
|
|
343
|
-
TranslationLanguage2["Lt"] = "lt";
|
|
344
|
-
TranslationLanguage2["Lv"] = "lv";
|
|
345
|
-
TranslationLanguage2["Et"] = "et";
|
|
346
|
-
TranslationLanguage2["Sl"] = "sl";
|
|
347
|
-
return TranslationLanguage2;
|
|
348
|
-
})(TranslationLanguage || {});
|
|
349
310
|
var RevisionPageLayoutOptionsWidth = /* @__PURE__ */ ((RevisionPageLayoutOptionsWidth2) => {
|
|
350
311
|
RevisionPageLayoutOptionsWidth2["Default"] = "default";
|
|
351
312
|
RevisionPageLayoutOptionsWidth2["Wide"] = "wide";
|
|
@@ -432,6 +393,11 @@ var OpenAPISpecProcessingState = /* @__PURE__ */ ((OpenAPISpecProcessingState2)
|
|
|
432
393
|
OpenAPISpecProcessingState2["Complete"] = "complete";
|
|
433
394
|
return OpenAPISpecProcessingState2;
|
|
434
395
|
})(OpenAPISpecProcessingState || {});
|
|
396
|
+
var OpenAPISpecVisibility = /* @__PURE__ */ ((OpenAPISpecVisibility2) => {
|
|
397
|
+
OpenAPISpecVisibility2["Private"] = "private";
|
|
398
|
+
OpenAPISpecVisibility2["Public"] = "public";
|
|
399
|
+
return OpenAPISpecVisibility2;
|
|
400
|
+
})(OpenAPISpecVisibility || {});
|
|
435
401
|
var OpenAPISpecProcessingErrorCode = /* @__PURE__ */ ((OpenAPISpecProcessingErrorCode2) => {
|
|
436
402
|
OpenAPISpecProcessingErrorCode2["FETCH_TIMEOUT"] = "FETCH_TIMEOUT";
|
|
437
403
|
OpenAPISpecProcessingErrorCode2["FETCH_ERROR"] = "FETCH_ERROR";
|
|
@@ -631,6 +597,12 @@ var BillingSwitchAction = /* @__PURE__ */ ((BillingSwitchAction2) => {
|
|
|
631
597
|
BillingSwitchAction2["SwitchInterval"] = "switch_interval";
|
|
632
598
|
return BillingSwitchAction2;
|
|
633
599
|
})(BillingSwitchAction || {});
|
|
600
|
+
var BillingMeter = /* @__PURE__ */ ((BillingMeter2) => {
|
|
601
|
+
BillingMeter2["AiResponses"] = "ai_responses";
|
|
602
|
+
BillingMeter2["AiAgentResponses"] = "ai_agent_responses";
|
|
603
|
+
BillingMeter2["TranslationWords"] = "translation_words";
|
|
604
|
+
return BillingMeter2;
|
|
605
|
+
})(BillingMeter || {});
|
|
634
606
|
var SAMLProviderStatus = /* @__PURE__ */ ((SAMLProviderStatus2) => {
|
|
635
607
|
SAMLProviderStatus2["Active"] = "active";
|
|
636
608
|
SAMLProviderStatus2["Pending"] = "pending";
|
|
@@ -643,6 +615,51 @@ var AgentTaskStatus = /* @__PURE__ */ ((AgentTaskStatus2) => {
|
|
|
643
615
|
AgentTaskStatus2["Canceled"] = "canceled";
|
|
644
616
|
return AgentTaskStatus2;
|
|
645
617
|
})(AgentTaskStatus || {});
|
|
618
|
+
var TranslationStatus = /* @__PURE__ */ ((TranslationStatus2) => {
|
|
619
|
+
TranslationStatus2["Pending"] = "pending";
|
|
620
|
+
TranslationStatus2["Running"] = "running";
|
|
621
|
+
TranslationStatus2["Completed"] = "completed";
|
|
622
|
+
return TranslationStatus2;
|
|
623
|
+
})(TranslationStatus || {});
|
|
624
|
+
var TranslationLanguage = /* @__PURE__ */ ((TranslationLanguage2) => {
|
|
625
|
+
TranslationLanguage2["En"] = "en";
|
|
626
|
+
TranslationLanguage2["Fr"] = "fr";
|
|
627
|
+
TranslationLanguage2["De"] = "de";
|
|
628
|
+
TranslationLanguage2["Es"] = "es";
|
|
629
|
+
TranslationLanguage2["It"] = "it";
|
|
630
|
+
TranslationLanguage2["Pt"] = "pt";
|
|
631
|
+
TranslationLanguage2["Ru"] = "ru";
|
|
632
|
+
TranslationLanguage2["Ja"] = "ja";
|
|
633
|
+
TranslationLanguage2["Zh"] = "zh";
|
|
634
|
+
TranslationLanguage2["Ko"] = "ko";
|
|
635
|
+
TranslationLanguage2["Ar"] = "ar";
|
|
636
|
+
TranslationLanguage2["Hi"] = "hi";
|
|
637
|
+
TranslationLanguage2["Nl"] = "nl";
|
|
638
|
+
TranslationLanguage2["Pl"] = "pl";
|
|
639
|
+
TranslationLanguage2["Tr"] = "tr";
|
|
640
|
+
TranslationLanguage2["Sv"] = "sv";
|
|
641
|
+
TranslationLanguage2["No"] = "no";
|
|
642
|
+
TranslationLanguage2["Da"] = "da";
|
|
643
|
+
TranslationLanguage2["Fi"] = "fi";
|
|
644
|
+
TranslationLanguage2["El"] = "el";
|
|
645
|
+
TranslationLanguage2["Cs"] = "cs";
|
|
646
|
+
TranslationLanguage2["Hu"] = "hu";
|
|
647
|
+
TranslationLanguage2["Ro"] = "ro";
|
|
648
|
+
TranslationLanguage2["Th"] = "th";
|
|
649
|
+
TranslationLanguage2["Vi"] = "vi";
|
|
650
|
+
TranslationLanguage2["Id"] = "id";
|
|
651
|
+
TranslationLanguage2["Ms"] = "ms";
|
|
652
|
+
TranslationLanguage2["He"] = "he";
|
|
653
|
+
TranslationLanguage2["Uk"] = "uk";
|
|
654
|
+
TranslationLanguage2["Sk"] = "sk";
|
|
655
|
+
TranslationLanguage2["Bg"] = "bg";
|
|
656
|
+
TranslationLanguage2["Hr"] = "hr";
|
|
657
|
+
TranslationLanguage2["Lt"] = "lt";
|
|
658
|
+
TranslationLanguage2["Lv"] = "lv";
|
|
659
|
+
TranslationLanguage2["Et"] = "et";
|
|
660
|
+
TranslationLanguage2["Sl"] = "sl";
|
|
661
|
+
return TranslationLanguage2;
|
|
662
|
+
})(TranslationLanguage || {});
|
|
646
663
|
var StorageUploadKind = /* @__PURE__ */ ((StorageUploadKind2) => {
|
|
647
664
|
StorageUploadKind2["CustomizationFont"] = "customization_font";
|
|
648
665
|
return StorageUploadKind2;
|
|
@@ -804,6 +821,7 @@ var SiteInsightsEventType = /* @__PURE__ */ ((SiteInsightsEventType2) => {
|
|
|
804
821
|
SiteInsightsEventType2["PagePostFeedback"] = "page_post_feedback";
|
|
805
822
|
SiteInsightsEventType2["PagePostFeedbackComment"] = "page_post_feedback_comment";
|
|
806
823
|
SiteInsightsEventType2["AskQuestion"] = "ask_question";
|
|
824
|
+
SiteInsightsEventType2["AskRateResponse"] = "ask_rate_response";
|
|
807
825
|
SiteInsightsEventType2["LinkClick"] = "link_click";
|
|
808
826
|
SiteInsightsEventType2["ApiClientOpen"] = "api_client_open";
|
|
809
827
|
SiteInsightsEventType2["ApiClientRequest"] = "api_client_request";
|
|
@@ -1314,6 +1332,12 @@ var Api = class extends HttpClient {
|
|
|
1314
1332
|
format: "json",
|
|
1315
1333
|
...params
|
|
1316
1334
|
}),
|
|
1335
|
+
deleteLegacyGitInstallation: (spaceId, params = {}) => this.request({
|
|
1336
|
+
path: `/spaces/${spaceId}/git/legacy-installation`,
|
|
1337
|
+
method: "DELETE",
|
|
1338
|
+
secure: true,
|
|
1339
|
+
...params
|
|
1340
|
+
}),
|
|
1317
1341
|
inviteToSpace: (spaceId, data, params = {}) => this.request({
|
|
1318
1342
|
path: `/spaces/${spaceId}/permissions`,
|
|
1319
1343
|
method: "POST",
|
|
@@ -1383,6 +1407,14 @@ var Api = class extends HttpClient {
|
|
|
1383
1407
|
format: "json",
|
|
1384
1408
|
...params
|
|
1385
1409
|
}),
|
|
1410
|
+
applyTemplateToSpace: (spaceId, data, params = {}) => this.request({
|
|
1411
|
+
path: `/spaces/${spaceId}/content/template`,
|
|
1412
|
+
method: "POST",
|
|
1413
|
+
body: data,
|
|
1414
|
+
secure: true,
|
|
1415
|
+
type: "application/json" /* Json */,
|
|
1416
|
+
...params
|
|
1417
|
+
}),
|
|
1386
1418
|
listPages: (spaceId, query, params = {}) => this.request({
|
|
1387
1419
|
path: `/spaces/${spaceId}/content/pages`,
|
|
1388
1420
|
method: "GET",
|
|
@@ -2736,6 +2768,15 @@ var Api = class extends HttpClient {
|
|
|
2736
2768
|
format: "json",
|
|
2737
2769
|
...params
|
|
2738
2770
|
}),
|
|
2771
|
+
updateOpenApiSpecBySlug: (organizationId, specSlug, data, params = {}) => this.request({
|
|
2772
|
+
path: `/orgs/${organizationId}/openapi/${specSlug}`,
|
|
2773
|
+
method: "PATCH",
|
|
2774
|
+
body: data,
|
|
2775
|
+
secure: true,
|
|
2776
|
+
type: "application/json" /* Json */,
|
|
2777
|
+
format: "json",
|
|
2778
|
+
...params
|
|
2779
|
+
}),
|
|
2739
2780
|
deleteOpenApiSpecBySlug: (organizationId, specSlug, params = {}) => this.request({
|
|
2740
2781
|
path: `/orgs/${organizationId}/openapi/${specSlug}`,
|
|
2741
2782
|
method: "DELETE",
|
|
@@ -2840,7 +2881,7 @@ var Api = class extends HttpClient {
|
|
|
2840
2881
|
format: "json",
|
|
2841
2882
|
...params
|
|
2842
2883
|
}),
|
|
2843
|
-
|
|
2884
|
+
listTranslations: (organizationId, query, params = {}) => this.request({
|
|
2844
2885
|
path: `/orgs/${organizationId}/translations`,
|
|
2845
2886
|
method: "GET",
|
|
2846
2887
|
query,
|
|
@@ -2848,7 +2889,7 @@ var Api = class extends HttpClient {
|
|
|
2848
2889
|
format: "json",
|
|
2849
2890
|
...params
|
|
2850
2891
|
}),
|
|
2851
|
-
|
|
2892
|
+
createTranslation: (organizationId, data, params = {}) => this.request({
|
|
2852
2893
|
path: `/orgs/${organizationId}/translations`,
|
|
2853
2894
|
method: "POST",
|
|
2854
2895
|
body: data,
|
|
@@ -2857,15 +2898,15 @@ var Api = class extends HttpClient {
|
|
|
2857
2898
|
format: "json",
|
|
2858
2899
|
...params
|
|
2859
2900
|
}),
|
|
2860
|
-
|
|
2861
|
-
path: `/orgs/${organizationId}/translations/${
|
|
2901
|
+
getTranslation: (organizationId, translationId, params = {}) => this.request({
|
|
2902
|
+
path: `/orgs/${organizationId}/translations/${translationId}`,
|
|
2862
2903
|
method: "GET",
|
|
2863
2904
|
secure: true,
|
|
2864
2905
|
format: "json",
|
|
2865
2906
|
...params
|
|
2866
2907
|
}),
|
|
2867
|
-
|
|
2868
|
-
path: `/orgs/${organizationId}/translations/${
|
|
2908
|
+
updateTranslation: (organizationId, translationId, data, params = {}) => this.request({
|
|
2909
|
+
path: `/orgs/${organizationId}/translations/${translationId}`,
|
|
2869
2910
|
method: "PUT",
|
|
2870
2911
|
body: data,
|
|
2871
2912
|
secure: true,
|
|
@@ -2873,40 +2914,33 @@ var Api = class extends HttpClient {
|
|
|
2873
2914
|
format: "json",
|
|
2874
2915
|
...params
|
|
2875
2916
|
}),
|
|
2876
|
-
|
|
2877
|
-
path: `/orgs/${organizationId}/translations/${
|
|
2917
|
+
deleteTranslation: (organizationId, translationId, params = {}) => this.request({
|
|
2918
|
+
path: `/orgs/${organizationId}/translations/${translationId}`,
|
|
2878
2919
|
method: "DELETE",
|
|
2879
2920
|
secure: true,
|
|
2880
2921
|
...params
|
|
2881
2922
|
}),
|
|
2882
|
-
|
|
2883
|
-
path: `/orgs/${organizationId}/translations
|
|
2923
|
+
listGlossaryEntries: (organizationId, query, params = {}) => this.request({
|
|
2924
|
+
path: `/orgs/${organizationId}/translations-glossary`,
|
|
2884
2925
|
method: "GET",
|
|
2885
2926
|
query,
|
|
2886
2927
|
secure: true,
|
|
2887
2928
|
format: "json",
|
|
2888
2929
|
...params
|
|
2889
2930
|
}),
|
|
2890
|
-
|
|
2891
|
-
path: `/orgs/${organizationId}/translations
|
|
2892
|
-
method: "GET",
|
|
2893
|
-
secure: true,
|
|
2894
|
-
format: "json",
|
|
2895
|
-
...params
|
|
2896
|
-
}),
|
|
2897
|
-
createOrUpdateTranslationLanguage: (organizationId, translationSettingsId, translationLanguage, data, params = {}) => this.request({
|
|
2898
|
-
path: `/orgs/${organizationId}/translations/${translationSettingsId}/languages/${translationLanguage}`,
|
|
2931
|
+
updateGlossaryEntries: (organizationId, data, params = {}) => this.request({
|
|
2932
|
+
path: `/orgs/${organizationId}/translations-glossary`,
|
|
2899
2933
|
method: "PUT",
|
|
2900
2934
|
body: data,
|
|
2901
2935
|
secure: true,
|
|
2902
2936
|
type: "application/json" /* Json */,
|
|
2903
|
-
format: "json",
|
|
2904
2937
|
...params
|
|
2905
2938
|
}),
|
|
2906
|
-
|
|
2907
|
-
path: `/orgs/${organizationId}/translations/${
|
|
2908
|
-
method: "
|
|
2939
|
+
getGlossaryEntry: (organizationId, glossaryEntryId, params = {}) => this.request({
|
|
2940
|
+
path: `/orgs/${organizationId}/translations-glossary/${glossaryEntryId}`,
|
|
2941
|
+
method: "GET",
|
|
2909
2942
|
secure: true,
|
|
2943
|
+
format: "json",
|
|
2910
2944
|
...params
|
|
2911
2945
|
}),
|
|
2912
2946
|
generateStorageUploadUrl: (organizationId, data, params = {}) => this.request({
|
|
@@ -3656,6 +3690,7 @@ export {
|
|
|
3656
3690
|
AgentTaskStatus,
|
|
3657
3691
|
Api,
|
|
3658
3692
|
BillingInterval,
|
|
3693
|
+
BillingMeter,
|
|
3659
3694
|
BillingProduct,
|
|
3660
3695
|
BillingSwitchAction,
|
|
3661
3696
|
BillingTrialStatus,
|
|
@@ -3707,6 +3742,7 @@ export {
|
|
|
3707
3742
|
MemberRole,
|
|
3708
3743
|
OpenAPISpecProcessingErrorCode,
|
|
3709
3744
|
OpenAPISpecProcessingState,
|
|
3745
|
+
OpenAPISpecVisibility,
|
|
3710
3746
|
OrganizationBlockReason,
|
|
3711
3747
|
OrganizationCommunityType,
|
|
3712
3748
|
OrganizationType,
|
|
@@ -3740,5 +3776,6 @@ export {
|
|
|
3740
3776
|
StorageUploadKind,
|
|
3741
3777
|
TeamMemberRole,
|
|
3742
3778
|
TextAlignment,
|
|
3743
|
-
TranslationLanguage
|
|
3779
|
+
TranslationLanguage,
|
|
3780
|
+
TranslationStatus
|
|
3744
3781
|
};
|