@gitbook/api 0.46.0 → 0.48.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 +189 -66
- package/dist/index.cjs +68 -27
- package/dist/index.js +67 -25
- package/package.json +1 -1
- package/spec/openapi.json +617 -173
- package/spec/openapi.yaml +338 -100
package/dist/index.cjs
CHANGED
|
@@ -228,8 +228,7 @@ __export(src_exports, {
|
|
|
228
228
|
RevisionPageLayoutPreset: () => RevisionPageLayoutPreset,
|
|
229
229
|
RevisionPageType: () => RevisionPageType,
|
|
230
230
|
RevisionSemanticChangeType: () => RevisionSemanticChangeType,
|
|
231
|
-
|
|
232
|
-
SiteSubscriptionType: () => SiteSubscriptionType,
|
|
231
|
+
SiteType: () => SiteType,
|
|
233
232
|
SiteVisibility: () => SiteVisibility,
|
|
234
233
|
SpaceBlockReason: () => SpaceBlockReason,
|
|
235
234
|
SpaceEditMode: () => SpaceEditMode,
|
|
@@ -239,7 +238,7 @@ module.exports = __toCommonJS(src_exports);
|
|
|
239
238
|
|
|
240
239
|
// package.json
|
|
241
240
|
var name = "@gitbook/api";
|
|
242
|
-
var version = "0.
|
|
241
|
+
var version = "0.48.0";
|
|
243
242
|
|
|
244
243
|
// src/client.ts
|
|
245
244
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -539,6 +538,7 @@ var IntegrationCategory = /* @__PURE__ */ ((IntegrationCategory2) => {
|
|
|
539
538
|
IntegrationCategory2["Content"] = "content";
|
|
540
539
|
IntegrationCategory2["Gitsync"] = "gitsync";
|
|
541
540
|
IntegrationCategory2["Marketing"] = "marketing";
|
|
541
|
+
IntegrationCategory2["VisitorAuth"] = "visitor-auth";
|
|
542
542
|
IntegrationCategory2["Other"] = "other";
|
|
543
543
|
return IntegrationCategory2;
|
|
544
544
|
})(IntegrationCategory || {});
|
|
@@ -568,7 +568,7 @@ var BillingProduct = /* @__PURE__ */ ((BillingProduct2) => {
|
|
|
568
568
|
BillingProduct2["Free2024"] = "free_2024";
|
|
569
569
|
BillingProduct2["Plus2024"] = "plus_2024";
|
|
570
570
|
BillingProduct2["Pro2024"] = "pro_2024";
|
|
571
|
-
BillingProduct2["
|
|
571
|
+
BillingProduct2["Enterprise2024"] = "enterprise_2024";
|
|
572
572
|
BillingProduct2["Free"] = "free";
|
|
573
573
|
BillingProduct2["Plus"] = "plus";
|
|
574
574
|
BillingProduct2["Pro"] = "pro";
|
|
@@ -576,6 +576,7 @@ var BillingProduct = /* @__PURE__ */ ((BillingProduct2) => {
|
|
|
576
576
|
BillingProduct2["Business"] = "business";
|
|
577
577
|
BillingProduct2["Legacy"] = "legacy";
|
|
578
578
|
BillingProduct2["Startup"] = "startup";
|
|
579
|
+
BillingProduct2["Enterprise"] = "enterprise";
|
|
579
580
|
return BillingProduct2;
|
|
580
581
|
})(BillingProduct || {});
|
|
581
582
|
var APIIntegrationScope = /* @__PURE__ */ ((APIIntegrationScope2) => {
|
|
@@ -705,25 +706,19 @@ var PageFeedbackRating = /* @__PURE__ */ ((PageFeedbackRating2) => {
|
|
|
705
706
|
PageFeedbackRating2["Good"] = "good";
|
|
706
707
|
return PageFeedbackRating2;
|
|
707
708
|
})(PageFeedbackRating || {});
|
|
709
|
+
var SiteType = /* @__PURE__ */ ((SiteType2) => {
|
|
710
|
+
SiteType2["Basic"] = "basic";
|
|
711
|
+
SiteType2["Standard"] = "standard";
|
|
712
|
+
SiteType2["Premium"] = "premium";
|
|
713
|
+
return SiteType2;
|
|
714
|
+
})(SiteType || {});
|
|
708
715
|
var SiteVisibility = /* @__PURE__ */ ((SiteVisibility2) => {
|
|
709
716
|
SiteVisibility2["Public"] = "public";
|
|
710
717
|
SiteVisibility2["Unlisted"] = "unlisted";
|
|
711
718
|
SiteVisibility2["ShareLink"] = "share-link";
|
|
712
719
|
SiteVisibility2["VisitorAuth"] = "visitor-auth";
|
|
713
|
-
SiteVisibility2["Unpublished"] = "unpublished";
|
|
714
720
|
return SiteVisibility2;
|
|
715
721
|
})(SiteVisibility || {});
|
|
716
|
-
var SiteSubscriptionStatus = /* @__PURE__ */ ((SiteSubscriptionStatus2) => {
|
|
717
|
-
SiteSubscriptionStatus2["Active"] = "active";
|
|
718
|
-
SiteSubscriptionStatus2["Inactive"] = "inactive";
|
|
719
|
-
return SiteSubscriptionStatus2;
|
|
720
|
-
})(SiteSubscriptionStatus || {});
|
|
721
|
-
var SiteSubscriptionType = /* @__PURE__ */ ((SiteSubscriptionType2) => {
|
|
722
|
-
SiteSubscriptionType2["Basic"] = "basic";
|
|
723
|
-
SiteSubscriptionType2["Premium"] = "premium";
|
|
724
|
-
SiteSubscriptionType2["PremiumVa"] = "premium_va";
|
|
725
|
-
return SiteSubscriptionType2;
|
|
726
|
-
})(SiteSubscriptionType || {});
|
|
727
722
|
var CustomHostnameDnsStatus = /* @__PURE__ */ ((CustomHostnameDnsStatus2) => {
|
|
728
723
|
CustomHostnameDnsStatus2["DnsPassed"] = "dns_passed";
|
|
729
724
|
CustomHostnameDnsStatus2["DnsWrongCname"] = "dns_wrong_cname";
|
|
@@ -2480,6 +2475,14 @@ var Api = class extends HttpClient {
|
|
|
2480
2475
|
format: "json",
|
|
2481
2476
|
...params
|
|
2482
2477
|
}),
|
|
2478
|
+
listOrganizationIntegrationsStatus: (organizationId, query, params = {}) => this.request({
|
|
2479
|
+
path: `/orgs/${organizationId}/integrations/installations-status`,
|
|
2480
|
+
method: "GET",
|
|
2481
|
+
query,
|
|
2482
|
+
secure: true,
|
|
2483
|
+
format: "json",
|
|
2484
|
+
...params
|
|
2485
|
+
}),
|
|
2483
2486
|
listOrgExperimentalFeatures: (organizationId, params = {}) => this.request({
|
|
2484
2487
|
path: `/orgs/${organizationId}/experiments`,
|
|
2485
2488
|
method: "GET",
|
|
@@ -2835,6 +2838,36 @@ var Api = class extends HttpClient {
|
|
|
2835
2838
|
secure: true,
|
|
2836
2839
|
...params
|
|
2837
2840
|
}),
|
|
2841
|
+
checkoutSite: (organizationId, siteId, data, params = {}) => this.request({
|
|
2842
|
+
path: `/orgs/${organizationId}/sites/${siteId}/checkout`,
|
|
2843
|
+
method: "POST",
|
|
2844
|
+
body: data,
|
|
2845
|
+
secure: true,
|
|
2846
|
+
type: "application/json" /* Json */,
|
|
2847
|
+
format: "json",
|
|
2848
|
+
...params
|
|
2849
|
+
}),
|
|
2850
|
+
getSiteCheckoutById: (organizationId, siteId, params = {}) => this.request({
|
|
2851
|
+
path: `/orgs/${organizationId}/sites/${siteId}/checkout`,
|
|
2852
|
+
method: "GET",
|
|
2853
|
+
secure: true,
|
|
2854
|
+
format: "json",
|
|
2855
|
+
...params
|
|
2856
|
+
}),
|
|
2857
|
+
publishSite: (organizationId, siteId, params = {}) => this.request({
|
|
2858
|
+
path: `/orgs/${organizationId}/sites/${siteId}/publish`,
|
|
2859
|
+
method: "POST",
|
|
2860
|
+
secure: true,
|
|
2861
|
+
format: "json",
|
|
2862
|
+
...params
|
|
2863
|
+
}),
|
|
2864
|
+
unpublishSite: (organizationId, siteId, params = {}) => this.request({
|
|
2865
|
+
path: `/orgs/${organizationId}/sites/${siteId}/unpublish`,
|
|
2866
|
+
method: "POST",
|
|
2867
|
+
secure: true,
|
|
2868
|
+
format: "json",
|
|
2869
|
+
...params
|
|
2870
|
+
}),
|
|
2838
2871
|
listSiteShareLinks: (organizationId, siteId, query, params = {}) => this.request({
|
|
2839
2872
|
path: `/orgs/${organizationId}/sites/${siteId}/share-links`,
|
|
2840
2873
|
method: "GET",
|
|
@@ -2883,6 +2916,13 @@ var Api = class extends HttpClient {
|
|
|
2883
2916
|
format: "json",
|
|
2884
2917
|
...params
|
|
2885
2918
|
}),
|
|
2919
|
+
regenerateSitePublishingAuthById: (organizationId, siteId, params = {}) => this.request({
|
|
2920
|
+
path: `/orgs/${organizationId}/sites/${siteId}/publishing/auth/regenerate`,
|
|
2921
|
+
method: "POST",
|
|
2922
|
+
secure: true,
|
|
2923
|
+
format: "json",
|
|
2924
|
+
...params
|
|
2925
|
+
}),
|
|
2886
2926
|
getSitePublishingPreviewById: (organizationId, siteId, query, params = {}) => this.request({
|
|
2887
2927
|
path: `/orgs/${organizationId}/sites/${siteId}/publishing/preview`,
|
|
2888
2928
|
method: "GET",
|
|
@@ -2891,9 +2931,10 @@ var Api = class extends HttpClient {
|
|
|
2891
2931
|
format: "json",
|
|
2892
2932
|
...params
|
|
2893
2933
|
}),
|
|
2894
|
-
getSiteCustomizationById: (organizationId, siteId, params = {}) => this.request({
|
|
2934
|
+
getSiteCustomizationById: (organizationId, siteId, query, params = {}) => this.request({
|
|
2895
2935
|
path: `/orgs/${organizationId}/sites/${siteId}/customization`,
|
|
2896
2936
|
method: "GET",
|
|
2937
|
+
query,
|
|
2897
2938
|
secure: true,
|
|
2898
2939
|
format: "json",
|
|
2899
2940
|
...params
|
|
@@ -2923,7 +2964,7 @@ var Api = class extends HttpClient {
|
|
|
2923
2964
|
...params
|
|
2924
2965
|
}),
|
|
2925
2966
|
addSpaceToSite: (organizationId, siteId, data, params = {}) => this.request({
|
|
2926
|
-
path: `/orgs/${organizationId}/sites/${siteId}/spaces`,
|
|
2967
|
+
path: `/orgs/${organizationId}/sites/${siteId}/site-spaces`,
|
|
2927
2968
|
method: "POST",
|
|
2928
2969
|
body: data,
|
|
2929
2970
|
secure: true,
|
|
@@ -2932,7 +2973,7 @@ var Api = class extends HttpClient {
|
|
|
2932
2973
|
...params
|
|
2933
2974
|
}),
|
|
2934
2975
|
listSiteSpaces: (organizationId, siteId, query, params = {}) => this.request({
|
|
2935
|
-
path: `/orgs/${organizationId}/sites/${siteId}/spaces`,
|
|
2976
|
+
path: `/orgs/${organizationId}/sites/${siteId}/site-spaces`,
|
|
2936
2977
|
method: "GET",
|
|
2937
2978
|
query,
|
|
2938
2979
|
secure: true,
|
|
@@ -2940,7 +2981,7 @@ var Api = class extends HttpClient {
|
|
|
2940
2981
|
...params
|
|
2941
2982
|
}),
|
|
2942
2983
|
updateSiteSpaceById: (organizationId, siteId, siteSpaceId, data, params = {}) => this.request({
|
|
2943
|
-
path: `/orgs/${organizationId}/sites/${siteId}/spaces/${siteSpaceId}`,
|
|
2984
|
+
path: `/orgs/${organizationId}/sites/${siteId}/site-spaces/${siteSpaceId}`,
|
|
2944
2985
|
method: "PATCH",
|
|
2945
2986
|
body: data,
|
|
2946
2987
|
secure: true,
|
|
@@ -2949,20 +2990,21 @@ var Api = class extends HttpClient {
|
|
|
2949
2990
|
...params
|
|
2950
2991
|
}),
|
|
2951
2992
|
deleteSiteSpaceById: (organizationId, siteId, siteSpaceId, params = {}) => this.request({
|
|
2952
|
-
path: `/orgs/${organizationId}/sites/${siteId}/spaces/${siteSpaceId}`,
|
|
2993
|
+
path: `/orgs/${organizationId}/sites/${siteId}/site-spaces/${siteSpaceId}`,
|
|
2953
2994
|
method: "DELETE",
|
|
2954
2995
|
secure: true,
|
|
2955
2996
|
...params
|
|
2956
2997
|
}),
|
|
2957
|
-
getSiteSpaceCustomizationById: (organizationId, siteId, siteSpaceId, params = {}) => this.request({
|
|
2958
|
-
path: `/orgs/${organizationId}/sites/${siteId}/spaces/${siteSpaceId}/customization`,
|
|
2998
|
+
getSiteSpaceCustomizationById: (organizationId, siteId, siteSpaceId, query, params = {}) => this.request({
|
|
2999
|
+
path: `/orgs/${organizationId}/sites/${siteId}/site-spaces/${siteSpaceId}/customization`,
|
|
2959
3000
|
method: "GET",
|
|
3001
|
+
query,
|
|
2960
3002
|
secure: true,
|
|
2961
3003
|
format: "json",
|
|
2962
3004
|
...params
|
|
2963
3005
|
}),
|
|
2964
3006
|
overrideSiteSpaceCustomizationById: (organizationId, siteId, siteSpaceId, data, params = {}) => this.request({
|
|
2965
|
-
path: `/orgs/${organizationId}/sites/${siteId}/spaces/${siteSpaceId}/customization`,
|
|
3007
|
+
path: `/orgs/${organizationId}/sites/${siteId}/site-spaces/${siteSpaceId}/customization`,
|
|
2966
3008
|
method: "PATCH",
|
|
2967
3009
|
body: data,
|
|
2968
3010
|
secure: true,
|
|
@@ -2971,7 +3013,7 @@ var Api = class extends HttpClient {
|
|
|
2971
3013
|
...params
|
|
2972
3014
|
}),
|
|
2973
3015
|
moveSiteSpace: (organizationId, siteId, siteSpaceId, data, params = {}) => this.request({
|
|
2974
|
-
path: `/orgs/${organizationId}/sites/${siteId}/spaces/${siteSpaceId}/move`,
|
|
3016
|
+
path: `/orgs/${organizationId}/sites/${siteId}/site-spaces/${siteSpaceId}/move`,
|
|
2975
3017
|
method: "POST",
|
|
2976
3018
|
body: data,
|
|
2977
3019
|
secure: true,
|
|
@@ -3197,8 +3239,7 @@ var GitBookAPI = class extends Api {
|
|
|
3197
3239
|
RevisionPageLayoutPreset,
|
|
3198
3240
|
RevisionPageType,
|
|
3199
3241
|
RevisionSemanticChangeType,
|
|
3200
|
-
|
|
3201
|
-
SiteSubscriptionType,
|
|
3242
|
+
SiteType,
|
|
3202
3243
|
SiteVisibility,
|
|
3203
3244
|
SpaceBlockReason,
|
|
3204
3245
|
SpaceEditMode,
|
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.48.0";
|
|
176
176
|
|
|
177
177
|
// src/client.ts
|
|
178
178
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -472,6 +472,7 @@ var IntegrationCategory = /* @__PURE__ */ ((IntegrationCategory2) => {
|
|
|
472
472
|
IntegrationCategory2["Content"] = "content";
|
|
473
473
|
IntegrationCategory2["Gitsync"] = "gitsync";
|
|
474
474
|
IntegrationCategory2["Marketing"] = "marketing";
|
|
475
|
+
IntegrationCategory2["VisitorAuth"] = "visitor-auth";
|
|
475
476
|
IntegrationCategory2["Other"] = "other";
|
|
476
477
|
return IntegrationCategory2;
|
|
477
478
|
})(IntegrationCategory || {});
|
|
@@ -501,7 +502,7 @@ var BillingProduct = /* @__PURE__ */ ((BillingProduct2) => {
|
|
|
501
502
|
BillingProduct2["Free2024"] = "free_2024";
|
|
502
503
|
BillingProduct2["Plus2024"] = "plus_2024";
|
|
503
504
|
BillingProduct2["Pro2024"] = "pro_2024";
|
|
504
|
-
BillingProduct2["
|
|
505
|
+
BillingProduct2["Enterprise2024"] = "enterprise_2024";
|
|
505
506
|
BillingProduct2["Free"] = "free";
|
|
506
507
|
BillingProduct2["Plus"] = "plus";
|
|
507
508
|
BillingProduct2["Pro"] = "pro";
|
|
@@ -509,6 +510,7 @@ var BillingProduct = /* @__PURE__ */ ((BillingProduct2) => {
|
|
|
509
510
|
BillingProduct2["Business"] = "business";
|
|
510
511
|
BillingProduct2["Legacy"] = "legacy";
|
|
511
512
|
BillingProduct2["Startup"] = "startup";
|
|
513
|
+
BillingProduct2["Enterprise"] = "enterprise";
|
|
512
514
|
return BillingProduct2;
|
|
513
515
|
})(BillingProduct || {});
|
|
514
516
|
var APIIntegrationScope = /* @__PURE__ */ ((APIIntegrationScope2) => {
|
|
@@ -638,25 +640,19 @@ var PageFeedbackRating = /* @__PURE__ */ ((PageFeedbackRating2) => {
|
|
|
638
640
|
PageFeedbackRating2["Good"] = "good";
|
|
639
641
|
return PageFeedbackRating2;
|
|
640
642
|
})(PageFeedbackRating || {});
|
|
643
|
+
var SiteType = /* @__PURE__ */ ((SiteType2) => {
|
|
644
|
+
SiteType2["Basic"] = "basic";
|
|
645
|
+
SiteType2["Standard"] = "standard";
|
|
646
|
+
SiteType2["Premium"] = "premium";
|
|
647
|
+
return SiteType2;
|
|
648
|
+
})(SiteType || {});
|
|
641
649
|
var SiteVisibility = /* @__PURE__ */ ((SiteVisibility2) => {
|
|
642
650
|
SiteVisibility2["Public"] = "public";
|
|
643
651
|
SiteVisibility2["Unlisted"] = "unlisted";
|
|
644
652
|
SiteVisibility2["ShareLink"] = "share-link";
|
|
645
653
|
SiteVisibility2["VisitorAuth"] = "visitor-auth";
|
|
646
|
-
SiteVisibility2["Unpublished"] = "unpublished";
|
|
647
654
|
return SiteVisibility2;
|
|
648
655
|
})(SiteVisibility || {});
|
|
649
|
-
var SiteSubscriptionStatus = /* @__PURE__ */ ((SiteSubscriptionStatus2) => {
|
|
650
|
-
SiteSubscriptionStatus2["Active"] = "active";
|
|
651
|
-
SiteSubscriptionStatus2["Inactive"] = "inactive";
|
|
652
|
-
return SiteSubscriptionStatus2;
|
|
653
|
-
})(SiteSubscriptionStatus || {});
|
|
654
|
-
var SiteSubscriptionType = /* @__PURE__ */ ((SiteSubscriptionType2) => {
|
|
655
|
-
SiteSubscriptionType2["Basic"] = "basic";
|
|
656
|
-
SiteSubscriptionType2["Premium"] = "premium";
|
|
657
|
-
SiteSubscriptionType2["PremiumVa"] = "premium_va";
|
|
658
|
-
return SiteSubscriptionType2;
|
|
659
|
-
})(SiteSubscriptionType || {});
|
|
660
656
|
var CustomHostnameDnsStatus = /* @__PURE__ */ ((CustomHostnameDnsStatus2) => {
|
|
661
657
|
CustomHostnameDnsStatus2["DnsPassed"] = "dns_passed";
|
|
662
658
|
CustomHostnameDnsStatus2["DnsWrongCname"] = "dns_wrong_cname";
|
|
@@ -2413,6 +2409,14 @@ var Api = class extends HttpClient {
|
|
|
2413
2409
|
format: "json",
|
|
2414
2410
|
...params
|
|
2415
2411
|
}),
|
|
2412
|
+
listOrganizationIntegrationsStatus: (organizationId, query, params = {}) => this.request({
|
|
2413
|
+
path: `/orgs/${organizationId}/integrations/installations-status`,
|
|
2414
|
+
method: "GET",
|
|
2415
|
+
query,
|
|
2416
|
+
secure: true,
|
|
2417
|
+
format: "json",
|
|
2418
|
+
...params
|
|
2419
|
+
}),
|
|
2416
2420
|
listOrgExperimentalFeatures: (organizationId, params = {}) => this.request({
|
|
2417
2421
|
path: `/orgs/${organizationId}/experiments`,
|
|
2418
2422
|
method: "GET",
|
|
@@ -2768,6 +2772,36 @@ var Api = class extends HttpClient {
|
|
|
2768
2772
|
secure: true,
|
|
2769
2773
|
...params
|
|
2770
2774
|
}),
|
|
2775
|
+
checkoutSite: (organizationId, siteId, data, params = {}) => this.request({
|
|
2776
|
+
path: `/orgs/${organizationId}/sites/${siteId}/checkout`,
|
|
2777
|
+
method: "POST",
|
|
2778
|
+
body: data,
|
|
2779
|
+
secure: true,
|
|
2780
|
+
type: "application/json" /* Json */,
|
|
2781
|
+
format: "json",
|
|
2782
|
+
...params
|
|
2783
|
+
}),
|
|
2784
|
+
getSiteCheckoutById: (organizationId, siteId, params = {}) => this.request({
|
|
2785
|
+
path: `/orgs/${organizationId}/sites/${siteId}/checkout`,
|
|
2786
|
+
method: "GET",
|
|
2787
|
+
secure: true,
|
|
2788
|
+
format: "json",
|
|
2789
|
+
...params
|
|
2790
|
+
}),
|
|
2791
|
+
publishSite: (organizationId, siteId, params = {}) => this.request({
|
|
2792
|
+
path: `/orgs/${organizationId}/sites/${siteId}/publish`,
|
|
2793
|
+
method: "POST",
|
|
2794
|
+
secure: true,
|
|
2795
|
+
format: "json",
|
|
2796
|
+
...params
|
|
2797
|
+
}),
|
|
2798
|
+
unpublishSite: (organizationId, siteId, params = {}) => this.request({
|
|
2799
|
+
path: `/orgs/${organizationId}/sites/${siteId}/unpublish`,
|
|
2800
|
+
method: "POST",
|
|
2801
|
+
secure: true,
|
|
2802
|
+
format: "json",
|
|
2803
|
+
...params
|
|
2804
|
+
}),
|
|
2771
2805
|
listSiteShareLinks: (organizationId, siteId, query, params = {}) => this.request({
|
|
2772
2806
|
path: `/orgs/${organizationId}/sites/${siteId}/share-links`,
|
|
2773
2807
|
method: "GET",
|
|
@@ -2816,6 +2850,13 @@ var Api = class extends HttpClient {
|
|
|
2816
2850
|
format: "json",
|
|
2817
2851
|
...params
|
|
2818
2852
|
}),
|
|
2853
|
+
regenerateSitePublishingAuthById: (organizationId, siteId, params = {}) => this.request({
|
|
2854
|
+
path: `/orgs/${organizationId}/sites/${siteId}/publishing/auth/regenerate`,
|
|
2855
|
+
method: "POST",
|
|
2856
|
+
secure: true,
|
|
2857
|
+
format: "json",
|
|
2858
|
+
...params
|
|
2859
|
+
}),
|
|
2819
2860
|
getSitePublishingPreviewById: (organizationId, siteId, query, params = {}) => this.request({
|
|
2820
2861
|
path: `/orgs/${organizationId}/sites/${siteId}/publishing/preview`,
|
|
2821
2862
|
method: "GET",
|
|
@@ -2824,9 +2865,10 @@ var Api = class extends HttpClient {
|
|
|
2824
2865
|
format: "json",
|
|
2825
2866
|
...params
|
|
2826
2867
|
}),
|
|
2827
|
-
getSiteCustomizationById: (organizationId, siteId, params = {}) => this.request({
|
|
2868
|
+
getSiteCustomizationById: (organizationId, siteId, query, params = {}) => this.request({
|
|
2828
2869
|
path: `/orgs/${organizationId}/sites/${siteId}/customization`,
|
|
2829
2870
|
method: "GET",
|
|
2871
|
+
query,
|
|
2830
2872
|
secure: true,
|
|
2831
2873
|
format: "json",
|
|
2832
2874
|
...params
|
|
@@ -2856,7 +2898,7 @@ var Api = class extends HttpClient {
|
|
|
2856
2898
|
...params
|
|
2857
2899
|
}),
|
|
2858
2900
|
addSpaceToSite: (organizationId, siteId, data, params = {}) => this.request({
|
|
2859
|
-
path: `/orgs/${organizationId}/sites/${siteId}/spaces`,
|
|
2901
|
+
path: `/orgs/${organizationId}/sites/${siteId}/site-spaces`,
|
|
2860
2902
|
method: "POST",
|
|
2861
2903
|
body: data,
|
|
2862
2904
|
secure: true,
|
|
@@ -2865,7 +2907,7 @@ var Api = class extends HttpClient {
|
|
|
2865
2907
|
...params
|
|
2866
2908
|
}),
|
|
2867
2909
|
listSiteSpaces: (organizationId, siteId, query, params = {}) => this.request({
|
|
2868
|
-
path: `/orgs/${organizationId}/sites/${siteId}/spaces`,
|
|
2910
|
+
path: `/orgs/${organizationId}/sites/${siteId}/site-spaces`,
|
|
2869
2911
|
method: "GET",
|
|
2870
2912
|
query,
|
|
2871
2913
|
secure: true,
|
|
@@ -2873,7 +2915,7 @@ var Api = class extends HttpClient {
|
|
|
2873
2915
|
...params
|
|
2874
2916
|
}),
|
|
2875
2917
|
updateSiteSpaceById: (organizationId, siteId, siteSpaceId, data, params = {}) => this.request({
|
|
2876
|
-
path: `/orgs/${organizationId}/sites/${siteId}/spaces/${siteSpaceId}`,
|
|
2918
|
+
path: `/orgs/${organizationId}/sites/${siteId}/site-spaces/${siteSpaceId}`,
|
|
2877
2919
|
method: "PATCH",
|
|
2878
2920
|
body: data,
|
|
2879
2921
|
secure: true,
|
|
@@ -2882,20 +2924,21 @@ var Api = class extends HttpClient {
|
|
|
2882
2924
|
...params
|
|
2883
2925
|
}),
|
|
2884
2926
|
deleteSiteSpaceById: (organizationId, siteId, siteSpaceId, params = {}) => this.request({
|
|
2885
|
-
path: `/orgs/${organizationId}/sites/${siteId}/spaces/${siteSpaceId}`,
|
|
2927
|
+
path: `/orgs/${organizationId}/sites/${siteId}/site-spaces/${siteSpaceId}`,
|
|
2886
2928
|
method: "DELETE",
|
|
2887
2929
|
secure: true,
|
|
2888
2930
|
...params
|
|
2889
2931
|
}),
|
|
2890
|
-
getSiteSpaceCustomizationById: (organizationId, siteId, siteSpaceId, params = {}) => this.request({
|
|
2891
|
-
path: `/orgs/${organizationId}/sites/${siteId}/spaces/${siteSpaceId}/customization`,
|
|
2932
|
+
getSiteSpaceCustomizationById: (organizationId, siteId, siteSpaceId, query, params = {}) => this.request({
|
|
2933
|
+
path: `/orgs/${organizationId}/sites/${siteId}/site-spaces/${siteSpaceId}/customization`,
|
|
2892
2934
|
method: "GET",
|
|
2935
|
+
query,
|
|
2893
2936
|
secure: true,
|
|
2894
2937
|
format: "json",
|
|
2895
2938
|
...params
|
|
2896
2939
|
}),
|
|
2897
2940
|
overrideSiteSpaceCustomizationById: (organizationId, siteId, siteSpaceId, data, params = {}) => this.request({
|
|
2898
|
-
path: `/orgs/${organizationId}/sites/${siteId}/spaces/${siteSpaceId}/customization`,
|
|
2941
|
+
path: `/orgs/${organizationId}/sites/${siteId}/site-spaces/${siteSpaceId}/customization`,
|
|
2899
2942
|
method: "PATCH",
|
|
2900
2943
|
body: data,
|
|
2901
2944
|
secure: true,
|
|
@@ -2904,7 +2947,7 @@ var Api = class extends HttpClient {
|
|
|
2904
2947
|
...params
|
|
2905
2948
|
}),
|
|
2906
2949
|
moveSiteSpace: (organizationId, siteId, siteSpaceId, data, params = {}) => this.request({
|
|
2907
|
-
path: `/orgs/${organizationId}/sites/${siteId}/spaces/${siteSpaceId}/move`,
|
|
2950
|
+
path: `/orgs/${organizationId}/sites/${siteId}/site-spaces/${siteSpaceId}/move`,
|
|
2908
2951
|
method: "POST",
|
|
2909
2952
|
body: data,
|
|
2910
2953
|
secure: true,
|
|
@@ -3129,8 +3172,7 @@ export {
|
|
|
3129
3172
|
RevisionPageLayoutPreset,
|
|
3130
3173
|
RevisionPageType,
|
|
3131
3174
|
RevisionSemanticChangeType,
|
|
3132
|
-
|
|
3133
|
-
SiteSubscriptionType,
|
|
3175
|
+
SiteType,
|
|
3134
3176
|
SiteVisibility,
|
|
3135
3177
|
SpaceBlockReason,
|
|
3136
3178
|
SpaceEditMode,
|