@gitbook/api 0.99.0 → 0.101.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 +440 -313
- package/dist/index.cjs +103 -80
- package/dist/index.js +103 -80
- package/package.json +1 -1
- package/spec/openapi.json +1789 -1449
- package/spec/openapi.yaml +2047 -1831
package/dist/index.cjs
CHANGED
|
@@ -265,7 +265,7 @@ module.exports = __toCommonJS(src_exports);
|
|
|
265
265
|
|
|
266
266
|
// package.json
|
|
267
267
|
var name = "@gitbook/api";
|
|
268
|
-
var version = "0.
|
|
268
|
+
var version = "0.101.0";
|
|
269
269
|
|
|
270
270
|
// src/client.ts
|
|
271
271
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -651,6 +651,7 @@ var SiteAdsTopic = /* @__PURE__ */ ((SiteAdsTopic2) => {
|
|
|
651
651
|
var SiteCustomizationFeature = /* @__PURE__ */ ((SiteCustomizationFeature2) => {
|
|
652
652
|
SiteCustomizationFeature2["HeaderLogo"] = "header-logo";
|
|
653
653
|
SiteCustomizationFeature2["ThemePreset"] = "theme-preset";
|
|
654
|
+
SiteCustomizationFeature2["PremiumFonts"] = "premium-fonts";
|
|
654
655
|
SiteCustomizationFeature2["CustomFonts"] = "custom-fonts";
|
|
655
656
|
SiteCustomizationFeature2["CustomIcons"] = "custom-icons";
|
|
656
657
|
SiteCustomizationFeature2["FooterLogo"] = "footer-logo";
|
|
@@ -669,6 +670,10 @@ var BillingInterval = /* @__PURE__ */ ((BillingInterval2) => {
|
|
|
669
670
|
BillingInterval2["Yearly"] = "yearly";
|
|
670
671
|
return BillingInterval2;
|
|
671
672
|
})(BillingInterval || {});
|
|
673
|
+
var StorageUploadKind = /* @__PURE__ */ ((StorageUploadKind2) => {
|
|
674
|
+
StorageUploadKind2["CustomizationFont"] = "customization_font";
|
|
675
|
+
return StorageUploadKind2;
|
|
676
|
+
})(StorageUploadKind || {});
|
|
672
677
|
var CustomizationTheme = /* @__PURE__ */ ((CustomizationTheme2) => {
|
|
673
678
|
CustomizationTheme2["Clean"] = "clean";
|
|
674
679
|
CustomizationTheme2["Muted"] = "muted";
|
|
@@ -852,10 +857,6 @@ var SiteInsightsQueryRange = /* @__PURE__ */ ((SiteInsightsQueryRange2) => {
|
|
|
852
857
|
SiteInsightsQueryRange2["Last24Hours"] = "last24Hours";
|
|
853
858
|
return SiteInsightsQueryRange2;
|
|
854
859
|
})(SiteInsightsQueryRange || {});
|
|
855
|
-
var StorageUploadKind = /* @__PURE__ */ ((StorageUploadKind2) => {
|
|
856
|
-
StorageUploadKind2["CustomizationFont"] = "customization_font";
|
|
857
|
-
return StorageUploadKind2;
|
|
858
|
-
})(StorageUploadKind || {});
|
|
859
860
|
var CustomHostnameDnsStatus = /* @__PURE__ */ ((CustomHostnameDnsStatus2) => {
|
|
860
861
|
CustomHostnameDnsStatus2["DnsPassed"] = "dns_passed";
|
|
861
862
|
CustomHostnameDnsStatus2["DnsWrongCname"] = "dns_wrong_cname";
|
|
@@ -2685,6 +2686,103 @@ var Api = class extends HttpClient {
|
|
|
2685
2686
|
secure: true,
|
|
2686
2687
|
...params
|
|
2687
2688
|
}),
|
|
2689
|
+
listOpenApiSpecs: (organizationId, query, params = {}) => this.request({
|
|
2690
|
+
path: `/orgs/${organizationId}/openapi`,
|
|
2691
|
+
method: "GET",
|
|
2692
|
+
query,
|
|
2693
|
+
secure: true,
|
|
2694
|
+
format: "json",
|
|
2695
|
+
...params
|
|
2696
|
+
}),
|
|
2697
|
+
getOpenApiSpecBySlug: (organizationId, specSlug, params = {}) => this.request({
|
|
2698
|
+
path: `/orgs/${organizationId}/openapi/${specSlug}`,
|
|
2699
|
+
method: "GET",
|
|
2700
|
+
secure: true,
|
|
2701
|
+
format: "json",
|
|
2702
|
+
...params
|
|
2703
|
+
}),
|
|
2704
|
+
createOrUpdateOpenApiSpecBySlug: (organizationId, specSlug, data, params = {}) => this.request({
|
|
2705
|
+
path: `/orgs/${organizationId}/openapi/${specSlug}`,
|
|
2706
|
+
method: "PUT",
|
|
2707
|
+
body: data,
|
|
2708
|
+
secure: true,
|
|
2709
|
+
type: "application/json" /* Json */,
|
|
2710
|
+
format: "json",
|
|
2711
|
+
...params
|
|
2712
|
+
}),
|
|
2713
|
+
deleteOpenApiSpecBySlug: (organizationId, specSlug, params = {}) => this.request({
|
|
2714
|
+
path: `/orgs/${organizationId}/openapi/${specSlug}`,
|
|
2715
|
+
method: "DELETE",
|
|
2716
|
+
secure: true,
|
|
2717
|
+
...params
|
|
2718
|
+
}),
|
|
2719
|
+
listOpenApiSpecVersions: (organizationId, specSlug, query, params = {}) => this.request({
|
|
2720
|
+
path: `/orgs/${organizationId}/openapi/${specSlug}/versions`,
|
|
2721
|
+
method: "GET",
|
|
2722
|
+
query,
|
|
2723
|
+
secure: true,
|
|
2724
|
+
format: "json",
|
|
2725
|
+
...params
|
|
2726
|
+
}),
|
|
2727
|
+
getLatestOpenApiSpecVersion: (organizationId, specSlug, params = {}) => this.request({
|
|
2728
|
+
path: `/orgs/${organizationId}/openapi/${specSlug}/versions/latest`,
|
|
2729
|
+
method: "GET",
|
|
2730
|
+
secure: true,
|
|
2731
|
+
format: "json",
|
|
2732
|
+
...params
|
|
2733
|
+
}),
|
|
2734
|
+
getLatestOpenApiSpecVersionContent: (organizationId, specSlug, params = {}) => this.request({
|
|
2735
|
+
path: `/orgs/${organizationId}/openapi/${specSlug}/versions/latest/content`,
|
|
2736
|
+
method: "GET",
|
|
2737
|
+
secure: true,
|
|
2738
|
+
format: "json",
|
|
2739
|
+
...params
|
|
2740
|
+
}),
|
|
2741
|
+
getOpenApiSpecVersionById: (organizationId, specSlug, versionId, params = {}) => this.request({
|
|
2742
|
+
path: `/orgs/${organizationId}/openapi/${specSlug}/versions/${versionId}`,
|
|
2743
|
+
method: "GET",
|
|
2744
|
+
secure: true,
|
|
2745
|
+
format: "json",
|
|
2746
|
+
...params
|
|
2747
|
+
}),
|
|
2748
|
+
getOpenApiSpecVersionContentById: (organizationId, specSlug, versionId, params = {}) => this.request({
|
|
2749
|
+
path: `/orgs/${organizationId}/openapi/${specSlug}/versions/${versionId}/content`,
|
|
2750
|
+
method: "GET",
|
|
2751
|
+
secure: true,
|
|
2752
|
+
format: "json",
|
|
2753
|
+
...params
|
|
2754
|
+
}),
|
|
2755
|
+
generateStorageUploadUrl: (organizationId, data, params = {}) => this.request({
|
|
2756
|
+
path: `/orgs/${organizationId}/storage/upload`,
|
|
2757
|
+
method: "POST",
|
|
2758
|
+
body: data,
|
|
2759
|
+
secure: true,
|
|
2760
|
+
type: "application/json" /* Json */,
|
|
2761
|
+
format: "json",
|
|
2762
|
+
...params
|
|
2763
|
+
}),
|
|
2764
|
+
listCustomFonts: (organizationId, params = {}) => this.request({
|
|
2765
|
+
path: `/orgs/${organizationId}/fonts`,
|
|
2766
|
+
method: "GET",
|
|
2767
|
+
secure: true,
|
|
2768
|
+
format: "json",
|
|
2769
|
+
...params
|
|
2770
|
+
}),
|
|
2771
|
+
createCustomFont: (organizationId, data, params = {}) => this.request({
|
|
2772
|
+
path: `/orgs/${organizationId}/fonts`,
|
|
2773
|
+
method: "PUT",
|
|
2774
|
+
body: data,
|
|
2775
|
+
secure: true,
|
|
2776
|
+
type: "application/json" /* Json */,
|
|
2777
|
+
format: "json",
|
|
2778
|
+
...params
|
|
2779
|
+
}),
|
|
2780
|
+
deleteCustomFont: (organizationId, fontId, params = {}) => this.request({
|
|
2781
|
+
path: `/orgs/${organizationId}/fonts/${fontId}`,
|
|
2782
|
+
method: "DELETE",
|
|
2783
|
+
secure: true,
|
|
2784
|
+
...params
|
|
2785
|
+
}),
|
|
2688
2786
|
listSites: (organizationId, query, params = {}) => this.request({
|
|
2689
2787
|
path: `/orgs/${organizationId}/sites`,
|
|
2690
2788
|
method: "GET",
|
|
@@ -3114,81 +3212,6 @@ var Api = class extends HttpClient {
|
|
|
3114
3212
|
secure: true,
|
|
3115
3213
|
format: "json",
|
|
3116
3214
|
...params
|
|
3117
|
-
}),
|
|
3118
|
-
generateSiteStorageUploadUrl: (organizationId, siteId, data, params = {}) => this.request({
|
|
3119
|
-
path: `/orgs/${organizationId}/sites/${siteId}/storage/upload`,
|
|
3120
|
-
method: "POST",
|
|
3121
|
-
body: data,
|
|
3122
|
-
secure: true,
|
|
3123
|
-
type: "application/json" /* Json */,
|
|
3124
|
-
format: "json",
|
|
3125
|
-
...params
|
|
3126
|
-
}),
|
|
3127
|
-
listOpenApiSpecs: (organizationId, query, params = {}) => this.request({
|
|
3128
|
-
path: `/orgs/${organizationId}/openapi`,
|
|
3129
|
-
method: "GET",
|
|
3130
|
-
query,
|
|
3131
|
-
secure: true,
|
|
3132
|
-
format: "json",
|
|
3133
|
-
...params
|
|
3134
|
-
}),
|
|
3135
|
-
getOpenApiSpecBySlug: (organizationId, specSlug, params = {}) => this.request({
|
|
3136
|
-
path: `/orgs/${organizationId}/openapi/${specSlug}`,
|
|
3137
|
-
method: "GET",
|
|
3138
|
-
secure: true,
|
|
3139
|
-
format: "json",
|
|
3140
|
-
...params
|
|
3141
|
-
}),
|
|
3142
|
-
createOrUpdateOpenApiSpecBySlug: (organizationId, specSlug, data, params = {}) => this.request({
|
|
3143
|
-
path: `/orgs/${organizationId}/openapi/${specSlug}`,
|
|
3144
|
-
method: "PUT",
|
|
3145
|
-
body: data,
|
|
3146
|
-
secure: true,
|
|
3147
|
-
type: "application/json" /* Json */,
|
|
3148
|
-
format: "json",
|
|
3149
|
-
...params
|
|
3150
|
-
}),
|
|
3151
|
-
deleteOpenApiSpecBySlug: (organizationId, specSlug, params = {}) => this.request({
|
|
3152
|
-
path: `/orgs/${organizationId}/openapi/${specSlug}`,
|
|
3153
|
-
method: "DELETE",
|
|
3154
|
-
secure: true,
|
|
3155
|
-
...params
|
|
3156
|
-
}),
|
|
3157
|
-
listOpenApiSpecVersions: (organizationId, specSlug, query, params = {}) => this.request({
|
|
3158
|
-
path: `/orgs/${organizationId}/openapi/${specSlug}/versions`,
|
|
3159
|
-
method: "GET",
|
|
3160
|
-
query,
|
|
3161
|
-
secure: true,
|
|
3162
|
-
format: "json",
|
|
3163
|
-
...params
|
|
3164
|
-
}),
|
|
3165
|
-
getLatestOpenApiSpecVersion: (organizationId, specSlug, params = {}) => this.request({
|
|
3166
|
-
path: `/orgs/${organizationId}/openapi/${specSlug}/versions/latest`,
|
|
3167
|
-
method: "GET",
|
|
3168
|
-
secure: true,
|
|
3169
|
-
format: "json",
|
|
3170
|
-
...params
|
|
3171
|
-
}),
|
|
3172
|
-
getLatestOpenApiSpecVersionContent: (organizationId, specSlug, params = {}) => this.request({
|
|
3173
|
-
path: `/orgs/${organizationId}/openapi/${specSlug}/versions/latest/content`,
|
|
3174
|
-
method: "GET",
|
|
3175
|
-
secure: true,
|
|
3176
|
-
format: "json",
|
|
3177
|
-
...params
|
|
3178
|
-
}),
|
|
3179
|
-
getOpenApiSpecVersionById: (organizationId, specSlug, versionId, params = {}) => this.request({
|
|
3180
|
-
path: `/orgs/${organizationId}/openapi/${specSlug}/versions/${versionId}`,
|
|
3181
|
-
method: "GET",
|
|
3182
|
-
secure: true,
|
|
3183
|
-
format: "json",
|
|
3184
|
-
...params
|
|
3185
|
-
}),
|
|
3186
|
-
getOpenApiSpecVersionContentById: (organizationId, specSlug, versionId, params = {}) => this.request({
|
|
3187
|
-
path: `/orgs/${organizationId}/openapi/${specSlug}/versions/${versionId}/content`,
|
|
3188
|
-
method: "GET",
|
|
3189
|
-
secure: true,
|
|
3190
|
-
format: "json",
|
|
3191
|
-
...params
|
|
3192
3215
|
})
|
|
3193
3216
|
};
|
|
3194
3217
|
customHostnames = {
|
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.101.0";
|
|
176
176
|
|
|
177
177
|
// src/client.ts
|
|
178
178
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -558,6 +558,7 @@ var SiteAdsTopic = /* @__PURE__ */ ((SiteAdsTopic2) => {
|
|
|
558
558
|
var SiteCustomizationFeature = /* @__PURE__ */ ((SiteCustomizationFeature2) => {
|
|
559
559
|
SiteCustomizationFeature2["HeaderLogo"] = "header-logo";
|
|
560
560
|
SiteCustomizationFeature2["ThemePreset"] = "theme-preset";
|
|
561
|
+
SiteCustomizationFeature2["PremiumFonts"] = "premium-fonts";
|
|
561
562
|
SiteCustomizationFeature2["CustomFonts"] = "custom-fonts";
|
|
562
563
|
SiteCustomizationFeature2["CustomIcons"] = "custom-icons";
|
|
563
564
|
SiteCustomizationFeature2["FooterLogo"] = "footer-logo";
|
|
@@ -576,6 +577,10 @@ var BillingInterval = /* @__PURE__ */ ((BillingInterval2) => {
|
|
|
576
577
|
BillingInterval2["Yearly"] = "yearly";
|
|
577
578
|
return BillingInterval2;
|
|
578
579
|
})(BillingInterval || {});
|
|
580
|
+
var StorageUploadKind = /* @__PURE__ */ ((StorageUploadKind2) => {
|
|
581
|
+
StorageUploadKind2["CustomizationFont"] = "customization_font";
|
|
582
|
+
return StorageUploadKind2;
|
|
583
|
+
})(StorageUploadKind || {});
|
|
579
584
|
var CustomizationTheme = /* @__PURE__ */ ((CustomizationTheme2) => {
|
|
580
585
|
CustomizationTheme2["Clean"] = "clean";
|
|
581
586
|
CustomizationTheme2["Muted"] = "muted";
|
|
@@ -759,10 +764,6 @@ var SiteInsightsQueryRange = /* @__PURE__ */ ((SiteInsightsQueryRange2) => {
|
|
|
759
764
|
SiteInsightsQueryRange2["Last24Hours"] = "last24Hours";
|
|
760
765
|
return SiteInsightsQueryRange2;
|
|
761
766
|
})(SiteInsightsQueryRange || {});
|
|
762
|
-
var StorageUploadKind = /* @__PURE__ */ ((StorageUploadKind2) => {
|
|
763
|
-
StorageUploadKind2["CustomizationFont"] = "customization_font";
|
|
764
|
-
return StorageUploadKind2;
|
|
765
|
-
})(StorageUploadKind || {});
|
|
766
767
|
var CustomHostnameDnsStatus = /* @__PURE__ */ ((CustomHostnameDnsStatus2) => {
|
|
767
768
|
CustomHostnameDnsStatus2["DnsPassed"] = "dns_passed";
|
|
768
769
|
CustomHostnameDnsStatus2["DnsWrongCname"] = "dns_wrong_cname";
|
|
@@ -2592,6 +2593,103 @@ var Api = class extends HttpClient {
|
|
|
2592
2593
|
secure: true,
|
|
2593
2594
|
...params
|
|
2594
2595
|
}),
|
|
2596
|
+
listOpenApiSpecs: (organizationId, query, params = {}) => this.request({
|
|
2597
|
+
path: `/orgs/${organizationId}/openapi`,
|
|
2598
|
+
method: "GET",
|
|
2599
|
+
query,
|
|
2600
|
+
secure: true,
|
|
2601
|
+
format: "json",
|
|
2602
|
+
...params
|
|
2603
|
+
}),
|
|
2604
|
+
getOpenApiSpecBySlug: (organizationId, specSlug, params = {}) => this.request({
|
|
2605
|
+
path: `/orgs/${organizationId}/openapi/${specSlug}`,
|
|
2606
|
+
method: "GET",
|
|
2607
|
+
secure: true,
|
|
2608
|
+
format: "json",
|
|
2609
|
+
...params
|
|
2610
|
+
}),
|
|
2611
|
+
createOrUpdateOpenApiSpecBySlug: (organizationId, specSlug, data, params = {}) => this.request({
|
|
2612
|
+
path: `/orgs/${organizationId}/openapi/${specSlug}`,
|
|
2613
|
+
method: "PUT",
|
|
2614
|
+
body: data,
|
|
2615
|
+
secure: true,
|
|
2616
|
+
type: "application/json" /* Json */,
|
|
2617
|
+
format: "json",
|
|
2618
|
+
...params
|
|
2619
|
+
}),
|
|
2620
|
+
deleteOpenApiSpecBySlug: (organizationId, specSlug, params = {}) => this.request({
|
|
2621
|
+
path: `/orgs/${organizationId}/openapi/${specSlug}`,
|
|
2622
|
+
method: "DELETE",
|
|
2623
|
+
secure: true,
|
|
2624
|
+
...params
|
|
2625
|
+
}),
|
|
2626
|
+
listOpenApiSpecVersions: (organizationId, specSlug, query, params = {}) => this.request({
|
|
2627
|
+
path: `/orgs/${organizationId}/openapi/${specSlug}/versions`,
|
|
2628
|
+
method: "GET",
|
|
2629
|
+
query,
|
|
2630
|
+
secure: true,
|
|
2631
|
+
format: "json",
|
|
2632
|
+
...params
|
|
2633
|
+
}),
|
|
2634
|
+
getLatestOpenApiSpecVersion: (organizationId, specSlug, params = {}) => this.request({
|
|
2635
|
+
path: `/orgs/${organizationId}/openapi/${specSlug}/versions/latest`,
|
|
2636
|
+
method: "GET",
|
|
2637
|
+
secure: true,
|
|
2638
|
+
format: "json",
|
|
2639
|
+
...params
|
|
2640
|
+
}),
|
|
2641
|
+
getLatestOpenApiSpecVersionContent: (organizationId, specSlug, params = {}) => this.request({
|
|
2642
|
+
path: `/orgs/${organizationId}/openapi/${specSlug}/versions/latest/content`,
|
|
2643
|
+
method: "GET",
|
|
2644
|
+
secure: true,
|
|
2645
|
+
format: "json",
|
|
2646
|
+
...params
|
|
2647
|
+
}),
|
|
2648
|
+
getOpenApiSpecVersionById: (organizationId, specSlug, versionId, params = {}) => this.request({
|
|
2649
|
+
path: `/orgs/${organizationId}/openapi/${specSlug}/versions/${versionId}`,
|
|
2650
|
+
method: "GET",
|
|
2651
|
+
secure: true,
|
|
2652
|
+
format: "json",
|
|
2653
|
+
...params
|
|
2654
|
+
}),
|
|
2655
|
+
getOpenApiSpecVersionContentById: (organizationId, specSlug, versionId, params = {}) => this.request({
|
|
2656
|
+
path: `/orgs/${organizationId}/openapi/${specSlug}/versions/${versionId}/content`,
|
|
2657
|
+
method: "GET",
|
|
2658
|
+
secure: true,
|
|
2659
|
+
format: "json",
|
|
2660
|
+
...params
|
|
2661
|
+
}),
|
|
2662
|
+
generateStorageUploadUrl: (organizationId, data, params = {}) => this.request({
|
|
2663
|
+
path: `/orgs/${organizationId}/storage/upload`,
|
|
2664
|
+
method: "POST",
|
|
2665
|
+
body: data,
|
|
2666
|
+
secure: true,
|
|
2667
|
+
type: "application/json" /* Json */,
|
|
2668
|
+
format: "json",
|
|
2669
|
+
...params
|
|
2670
|
+
}),
|
|
2671
|
+
listCustomFonts: (organizationId, params = {}) => this.request({
|
|
2672
|
+
path: `/orgs/${organizationId}/fonts`,
|
|
2673
|
+
method: "GET",
|
|
2674
|
+
secure: true,
|
|
2675
|
+
format: "json",
|
|
2676
|
+
...params
|
|
2677
|
+
}),
|
|
2678
|
+
createCustomFont: (organizationId, data, params = {}) => this.request({
|
|
2679
|
+
path: `/orgs/${organizationId}/fonts`,
|
|
2680
|
+
method: "PUT",
|
|
2681
|
+
body: data,
|
|
2682
|
+
secure: true,
|
|
2683
|
+
type: "application/json" /* Json */,
|
|
2684
|
+
format: "json",
|
|
2685
|
+
...params
|
|
2686
|
+
}),
|
|
2687
|
+
deleteCustomFont: (organizationId, fontId, params = {}) => this.request({
|
|
2688
|
+
path: `/orgs/${organizationId}/fonts/${fontId}`,
|
|
2689
|
+
method: "DELETE",
|
|
2690
|
+
secure: true,
|
|
2691
|
+
...params
|
|
2692
|
+
}),
|
|
2595
2693
|
listSites: (organizationId, query, params = {}) => this.request({
|
|
2596
2694
|
path: `/orgs/${organizationId}/sites`,
|
|
2597
2695
|
method: "GET",
|
|
@@ -3021,81 +3119,6 @@ var Api = class extends HttpClient {
|
|
|
3021
3119
|
secure: true,
|
|
3022
3120
|
format: "json",
|
|
3023
3121
|
...params
|
|
3024
|
-
}),
|
|
3025
|
-
generateSiteStorageUploadUrl: (organizationId, siteId, data, params = {}) => this.request({
|
|
3026
|
-
path: `/orgs/${organizationId}/sites/${siteId}/storage/upload`,
|
|
3027
|
-
method: "POST",
|
|
3028
|
-
body: data,
|
|
3029
|
-
secure: true,
|
|
3030
|
-
type: "application/json" /* Json */,
|
|
3031
|
-
format: "json",
|
|
3032
|
-
...params
|
|
3033
|
-
}),
|
|
3034
|
-
listOpenApiSpecs: (organizationId, query, params = {}) => this.request({
|
|
3035
|
-
path: `/orgs/${organizationId}/openapi`,
|
|
3036
|
-
method: "GET",
|
|
3037
|
-
query,
|
|
3038
|
-
secure: true,
|
|
3039
|
-
format: "json",
|
|
3040
|
-
...params
|
|
3041
|
-
}),
|
|
3042
|
-
getOpenApiSpecBySlug: (organizationId, specSlug, params = {}) => this.request({
|
|
3043
|
-
path: `/orgs/${organizationId}/openapi/${specSlug}`,
|
|
3044
|
-
method: "GET",
|
|
3045
|
-
secure: true,
|
|
3046
|
-
format: "json",
|
|
3047
|
-
...params
|
|
3048
|
-
}),
|
|
3049
|
-
createOrUpdateOpenApiSpecBySlug: (organizationId, specSlug, data, params = {}) => this.request({
|
|
3050
|
-
path: `/orgs/${organizationId}/openapi/${specSlug}`,
|
|
3051
|
-
method: "PUT",
|
|
3052
|
-
body: data,
|
|
3053
|
-
secure: true,
|
|
3054
|
-
type: "application/json" /* Json */,
|
|
3055
|
-
format: "json",
|
|
3056
|
-
...params
|
|
3057
|
-
}),
|
|
3058
|
-
deleteOpenApiSpecBySlug: (organizationId, specSlug, params = {}) => this.request({
|
|
3059
|
-
path: `/orgs/${organizationId}/openapi/${specSlug}`,
|
|
3060
|
-
method: "DELETE",
|
|
3061
|
-
secure: true,
|
|
3062
|
-
...params
|
|
3063
|
-
}),
|
|
3064
|
-
listOpenApiSpecVersions: (organizationId, specSlug, query, params = {}) => this.request({
|
|
3065
|
-
path: `/orgs/${organizationId}/openapi/${specSlug}/versions`,
|
|
3066
|
-
method: "GET",
|
|
3067
|
-
query,
|
|
3068
|
-
secure: true,
|
|
3069
|
-
format: "json",
|
|
3070
|
-
...params
|
|
3071
|
-
}),
|
|
3072
|
-
getLatestOpenApiSpecVersion: (organizationId, specSlug, params = {}) => this.request({
|
|
3073
|
-
path: `/orgs/${organizationId}/openapi/${specSlug}/versions/latest`,
|
|
3074
|
-
method: "GET",
|
|
3075
|
-
secure: true,
|
|
3076
|
-
format: "json",
|
|
3077
|
-
...params
|
|
3078
|
-
}),
|
|
3079
|
-
getLatestOpenApiSpecVersionContent: (organizationId, specSlug, params = {}) => this.request({
|
|
3080
|
-
path: `/orgs/${organizationId}/openapi/${specSlug}/versions/latest/content`,
|
|
3081
|
-
method: "GET",
|
|
3082
|
-
secure: true,
|
|
3083
|
-
format: "json",
|
|
3084
|
-
...params
|
|
3085
|
-
}),
|
|
3086
|
-
getOpenApiSpecVersionById: (organizationId, specSlug, versionId, params = {}) => this.request({
|
|
3087
|
-
path: `/orgs/${organizationId}/openapi/${specSlug}/versions/${versionId}`,
|
|
3088
|
-
method: "GET",
|
|
3089
|
-
secure: true,
|
|
3090
|
-
format: "json",
|
|
3091
|
-
...params
|
|
3092
|
-
}),
|
|
3093
|
-
getOpenApiSpecVersionContentById: (organizationId, specSlug, versionId, params = {}) => this.request({
|
|
3094
|
-
path: `/orgs/${organizationId}/openapi/${specSlug}/versions/${versionId}/content`,
|
|
3095
|
-
method: "GET",
|
|
3096
|
-
secure: true,
|
|
3097
|
-
format: "json",
|
|
3098
|
-
...params
|
|
3099
3122
|
})
|
|
3100
3123
|
};
|
|
3101
3124
|
customHostnames = {
|