@gitbook/api 0.91.0 → 0.93.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 +800 -824
- package/dist/index.cjs +161 -153
- package/dist/index.js +160 -153
- package/package.json +1 -1
- package/spec/openapi.json +9260 -9452
- package/spec/openapi.yaml +1908 -2015
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.93.0";
|
|
176
176
|
|
|
177
177
|
// src/client.ts
|
|
178
178
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -387,49 +387,6 @@ var OrganizationBlockReason = /* @__PURE__ */ ((OrganizationBlockReason2) => {
|
|
|
387
387
|
OrganizationBlockReason2["Security"] = "security";
|
|
388
388
|
return OrganizationBlockReason2;
|
|
389
389
|
})(OrganizationBlockReason || {});
|
|
390
|
-
var IntegrationTarget = /* @__PURE__ */ ((IntegrationTarget2) => {
|
|
391
|
-
IntegrationTarget2["All"] = "all";
|
|
392
|
-
IntegrationTarget2["Site"] = "site";
|
|
393
|
-
IntegrationTarget2["Space"] = "space";
|
|
394
|
-
IntegrationTarget2["Organization"] = "organization";
|
|
395
|
-
return IntegrationTarget2;
|
|
396
|
-
})(IntegrationTarget || {});
|
|
397
|
-
var IntegrationVisibility = /* @__PURE__ */ ((IntegrationVisibility2) => {
|
|
398
|
-
IntegrationVisibility2["Public"] = "public";
|
|
399
|
-
IntegrationVisibility2["Private"] = "private";
|
|
400
|
-
IntegrationVisibility2["Unlisted"] = "unlisted";
|
|
401
|
-
return IntegrationVisibility2;
|
|
402
|
-
})(IntegrationVisibility || {});
|
|
403
|
-
var IntegrationScope = /* @__PURE__ */ ((IntegrationScope2) => {
|
|
404
|
-
IntegrationScope2["SnippetsRead"] = "snippets:read";
|
|
405
|
-
IntegrationScope2["CaptureWrite"] = "capture:write";
|
|
406
|
-
IntegrationScope2["SpaceViewsRead"] = "space:views:read";
|
|
407
|
-
IntegrationScope2["SpaceContentRead"] = "space:content:read";
|
|
408
|
-
IntegrationScope2["SpaceContentWrite"] = "space:content:write";
|
|
409
|
-
IntegrationScope2["SpaceMetadataRead"] = "space:metadata:read";
|
|
410
|
-
IntegrationScope2["SpaceMetadataWrite"] = "space:metadata:write";
|
|
411
|
-
IntegrationScope2["SpaceScriptInject"] = "space:script:inject";
|
|
412
|
-
IntegrationScope2["SpaceScriptCookies"] = "space:script:cookies";
|
|
413
|
-
IntegrationScope2["SpaceGitSync"] = "space:git:sync";
|
|
414
|
-
IntegrationScope2["SpaceVisitorAuth"] = "space:visitor:auth";
|
|
415
|
-
IntegrationScope2["SiteMetadataRead"] = "site:metadata:read";
|
|
416
|
-
IntegrationScope2["SiteViewsRead"] = "site:views:read";
|
|
417
|
-
IntegrationScope2["SiteScriptInject"] = "site:script:inject";
|
|
418
|
-
IntegrationScope2["SiteScriptCookies"] = "site:script:cookies";
|
|
419
|
-
IntegrationScope2["SiteVisitorAuth"] = "site:visitor:auth";
|
|
420
|
-
return IntegrationScope2;
|
|
421
|
-
})(IntegrationScope || {});
|
|
422
|
-
var IntegrationCategory = /* @__PURE__ */ ((IntegrationCategory2) => {
|
|
423
|
-
IntegrationCategory2["Analytics"] = "analytics";
|
|
424
|
-
IntegrationCategory2["Captures"] = "captures";
|
|
425
|
-
IntegrationCategory2["Collaboration"] = "collaboration";
|
|
426
|
-
IntegrationCategory2["Content"] = "content";
|
|
427
|
-
IntegrationCategory2["Gitsync"] = "gitsync";
|
|
428
|
-
IntegrationCategory2["Marketing"] = "marketing";
|
|
429
|
-
IntegrationCategory2["VisitorAuth"] = "visitor-auth";
|
|
430
|
-
IntegrationCategory2["Other"] = "other";
|
|
431
|
-
return IntegrationCategory2;
|
|
432
|
-
})(IntegrationCategory || {});
|
|
433
390
|
var ContentReferenceStatus = /* @__PURE__ */ ((ContentReferenceStatus2) => {
|
|
434
391
|
ContentReferenceStatus2["Ok"] = "ok";
|
|
435
392
|
ContentReferenceStatus2["Broken"] = "broken";
|
|
@@ -537,6 +494,46 @@ var CustomizationThemeMode = /* @__PURE__ */ ((CustomizationThemeMode2) => {
|
|
|
537
494
|
CustomizationThemeMode2["Dark"] = "dark";
|
|
538
495
|
return CustomizationThemeMode2;
|
|
539
496
|
})(CustomizationThemeMode || {});
|
|
497
|
+
var IntegrationTarget = /* @__PURE__ */ ((IntegrationTarget2) => {
|
|
498
|
+
IntegrationTarget2["All"] = "all";
|
|
499
|
+
IntegrationTarget2["Site"] = "site";
|
|
500
|
+
IntegrationTarget2["Space"] = "space";
|
|
501
|
+
IntegrationTarget2["Organization"] = "organization";
|
|
502
|
+
return IntegrationTarget2;
|
|
503
|
+
})(IntegrationTarget || {});
|
|
504
|
+
var IntegrationVisibility = /* @__PURE__ */ ((IntegrationVisibility2) => {
|
|
505
|
+
IntegrationVisibility2["Public"] = "public";
|
|
506
|
+
IntegrationVisibility2["Private"] = "private";
|
|
507
|
+
IntegrationVisibility2["Unlisted"] = "unlisted";
|
|
508
|
+
return IntegrationVisibility2;
|
|
509
|
+
})(IntegrationVisibility || {});
|
|
510
|
+
var IntegrationScope = /* @__PURE__ */ ((IntegrationScope2) => {
|
|
511
|
+
IntegrationScope2["SpaceViewsRead"] = "space:views:read";
|
|
512
|
+
IntegrationScope2["SpaceContentRead"] = "space:content:read";
|
|
513
|
+
IntegrationScope2["SpaceContentWrite"] = "space:content:write";
|
|
514
|
+
IntegrationScope2["SpaceMetadataRead"] = "space:metadata:read";
|
|
515
|
+
IntegrationScope2["SpaceMetadataWrite"] = "space:metadata:write";
|
|
516
|
+
IntegrationScope2["SpaceScriptInject"] = "space:script:inject";
|
|
517
|
+
IntegrationScope2["SpaceScriptCookies"] = "space:script:cookies";
|
|
518
|
+
IntegrationScope2["SpaceGitSync"] = "space:git:sync";
|
|
519
|
+
IntegrationScope2["SpaceVisitorAuth"] = "space:visitor:auth";
|
|
520
|
+
IntegrationScope2["SiteMetadataRead"] = "site:metadata:read";
|
|
521
|
+
IntegrationScope2["SiteViewsRead"] = "site:views:read";
|
|
522
|
+
IntegrationScope2["SiteScriptInject"] = "site:script:inject";
|
|
523
|
+
IntegrationScope2["SiteScriptCookies"] = "site:script:cookies";
|
|
524
|
+
IntegrationScope2["SiteVisitorAuth"] = "site:visitor:auth";
|
|
525
|
+
return IntegrationScope2;
|
|
526
|
+
})(IntegrationScope || {});
|
|
527
|
+
var IntegrationCategory = /* @__PURE__ */ ((IntegrationCategory2) => {
|
|
528
|
+
IntegrationCategory2["Analytics"] = "analytics";
|
|
529
|
+
IntegrationCategory2["Collaboration"] = "collaboration";
|
|
530
|
+
IntegrationCategory2["Content"] = "content";
|
|
531
|
+
IntegrationCategory2["Gitsync"] = "gitsync";
|
|
532
|
+
IntegrationCategory2["Marketing"] = "marketing";
|
|
533
|
+
IntegrationCategory2["VisitorAuth"] = "visitor-auth";
|
|
534
|
+
IntegrationCategory2["Other"] = "other";
|
|
535
|
+
return IntegrationCategory2;
|
|
536
|
+
})(IntegrationCategory || {});
|
|
540
537
|
var CustomFieldType = /* @__PURE__ */ ((CustomFieldType2) => {
|
|
541
538
|
CustomFieldType2["Text"] = "text";
|
|
542
539
|
CustomFieldType2["Number"] = "number";
|
|
@@ -816,6 +813,12 @@ var SpaceBlockReason = /* @__PURE__ */ ((SpaceBlockReason2) => {
|
|
|
816
813
|
SpaceBlockReason2["UNWANTED_SOFTWARE"] = "UNWANTED_SOFTWARE";
|
|
817
814
|
return SpaceBlockReason2;
|
|
818
815
|
})(SpaceBlockReason || {});
|
|
816
|
+
var OpenAPISpecProcessingState = /* @__PURE__ */ ((OpenAPISpecProcessingState2) => {
|
|
817
|
+
OpenAPISpecProcessingState2["Pending"] = "pending";
|
|
818
|
+
OpenAPISpecProcessingState2["Progress"] = "progress";
|
|
819
|
+
OpenAPISpecProcessingState2["Complete"] = "complete";
|
|
820
|
+
return OpenAPISpecProcessingState2;
|
|
821
|
+
})(OpenAPISpecProcessingState || {});
|
|
819
822
|
var RevisionSemanticChangeType = /* @__PURE__ */ ((RevisionSemanticChangeType2) => {
|
|
820
823
|
RevisionSemanticChangeType2["PageCreated"] = "page_created";
|
|
821
824
|
RevisionSemanticChangeType2["PageEdited"] = "page_edited";
|
|
@@ -1457,19 +1460,22 @@ var Api = class extends HttpClient {
|
|
|
1457
1460
|
format: "json",
|
|
1458
1461
|
...params
|
|
1459
1462
|
}),
|
|
1460
|
-
getComputedDocument: (spaceId, query, params = {}) => this.request({
|
|
1463
|
+
getComputedDocument: (spaceId, data, query, params = {}) => this.request({
|
|
1461
1464
|
path: `/spaces/${spaceId}/content/computed/document`,
|
|
1462
|
-
method: "
|
|
1465
|
+
method: "POST",
|
|
1463
1466
|
query,
|
|
1467
|
+
body: data,
|
|
1464
1468
|
secure: true,
|
|
1469
|
+
type: "application/json" /* Json */,
|
|
1465
1470
|
format: "json",
|
|
1466
1471
|
...params
|
|
1467
1472
|
}),
|
|
1468
|
-
|
|
1469
|
-
path: `/spaces/${spaceId}/content/computed/
|
|
1470
|
-
method: "
|
|
1471
|
-
|
|
1473
|
+
getComputedRevision: (spaceId, data, params = {}) => this.request({
|
|
1474
|
+
path: `/spaces/${spaceId}/content/computed/revision`,
|
|
1475
|
+
method: "POST",
|
|
1476
|
+
body: data,
|
|
1472
1477
|
secure: true,
|
|
1478
|
+
type: "application/json" /* Json */,
|
|
1473
1479
|
format: "json",
|
|
1474
1480
|
...params
|
|
1475
1481
|
}),
|
|
@@ -2602,11 +2608,12 @@ var Api = class extends HttpClient {
|
|
|
2602
2608
|
type: "application/json" /* Json */,
|
|
2603
2609
|
...params
|
|
2604
2610
|
}),
|
|
2605
|
-
previewMigrateOrganizationPlan: (organizationId,
|
|
2606
|
-
path: `/orgs/${organizationId}/billing/migrate`,
|
|
2607
|
-
method: "
|
|
2608
|
-
|
|
2611
|
+
previewMigrateOrganizationPlan: (organizationId, data, params = {}) => this.request({
|
|
2612
|
+
path: `/orgs/${organizationId}/billing/migrate/preview`,
|
|
2613
|
+
method: "POST",
|
|
2614
|
+
body: data,
|
|
2609
2615
|
secure: true,
|
|
2616
|
+
type: "application/json" /* Json */,
|
|
2610
2617
|
format: "json",
|
|
2611
2618
|
...params
|
|
2612
2619
|
}),
|
|
@@ -2847,105 +2854,6 @@ var Api = class extends HttpClient {
|
|
|
2847
2854
|
format: "json",
|
|
2848
2855
|
...params
|
|
2849
2856
|
}),
|
|
2850
|
-
listCaptures: (organizationId, query, params = {}) => this.request({
|
|
2851
|
-
path: `/orgs/${organizationId}/captures`,
|
|
2852
|
-
method: "GET",
|
|
2853
|
-
query,
|
|
2854
|
-
secure: true,
|
|
2855
|
-
format: "json",
|
|
2856
|
-
...params
|
|
2857
|
-
}),
|
|
2858
|
-
startCapture: (organizationId, data, params = {}) => this.request({
|
|
2859
|
-
path: `/orgs/${organizationId}/captures`,
|
|
2860
|
-
method: "POST",
|
|
2861
|
-
body: data,
|
|
2862
|
-
secure: true,
|
|
2863
|
-
type: "application/json" /* Json */,
|
|
2864
|
-
format: "json",
|
|
2865
|
-
...params
|
|
2866
|
-
}),
|
|
2867
|
-
getCapture: (organizationId, captureId, query, params = {}) => this.request({
|
|
2868
|
-
path: `/orgs/${organizationId}/captures/${captureId}`,
|
|
2869
|
-
method: "GET",
|
|
2870
|
-
query,
|
|
2871
|
-
secure: true,
|
|
2872
|
-
format: "json",
|
|
2873
|
-
...params
|
|
2874
|
-
}),
|
|
2875
|
-
addEventsToCapture: (organizationId, captureId, data, params = {}) => this.request({
|
|
2876
|
-
path: `/orgs/${organizationId}/captures/${captureId}/events`,
|
|
2877
|
-
method: "POST",
|
|
2878
|
-
body: data,
|
|
2879
|
-
secure: true,
|
|
2880
|
-
type: "application/json" /* Json */,
|
|
2881
|
-
...params
|
|
2882
|
-
}),
|
|
2883
|
-
stopCapture: (organizationId, captureId, data, query, params = {}) => this.request({
|
|
2884
|
-
path: `/orgs/${organizationId}/captures/${captureId}/stop`,
|
|
2885
|
-
method: "POST",
|
|
2886
|
-
query,
|
|
2887
|
-
body: data,
|
|
2888
|
-
secure: true,
|
|
2889
|
-
type: "application/json" /* Json */,
|
|
2890
|
-
format: "json",
|
|
2891
|
-
...params
|
|
2892
|
-
}),
|
|
2893
|
-
listSnippets: (organizationId, query, params = {}) => this.request({
|
|
2894
|
-
path: `/orgs/${organizationId}/snippets`,
|
|
2895
|
-
method: "GET",
|
|
2896
|
-
query,
|
|
2897
|
-
secure: true,
|
|
2898
|
-
format: "json",
|
|
2899
|
-
...params
|
|
2900
|
-
}),
|
|
2901
|
-
createSnippet: (organizationId, data, params = {}) => this.request({
|
|
2902
|
-
path: `/orgs/${organizationId}/snippets`,
|
|
2903
|
-
method: "POST",
|
|
2904
|
-
body: data,
|
|
2905
|
-
secure: true,
|
|
2906
|
-
type: "application/json" /* Json */,
|
|
2907
|
-
format: "json",
|
|
2908
|
-
...params
|
|
2909
|
-
}),
|
|
2910
|
-
getSnippet: (organizationId, snippetId, params = {}) => this.request({
|
|
2911
|
-
path: `/orgs/${organizationId}/snippets/${snippetId}`,
|
|
2912
|
-
method: "GET",
|
|
2913
|
-
secure: true,
|
|
2914
|
-
format: "json",
|
|
2915
|
-
...params
|
|
2916
|
-
}),
|
|
2917
|
-
deleteSnippet: (organizationId, snippetId, params = {}) => this.request({
|
|
2918
|
-
path: `/orgs/${organizationId}/snippets/${snippetId}`,
|
|
2919
|
-
method: "DELETE",
|
|
2920
|
-
secure: true,
|
|
2921
|
-
...params
|
|
2922
|
-
}),
|
|
2923
|
-
updateSnippet: (organizationId, snippetId, data, params = {}) => this.request({
|
|
2924
|
-
path: `/orgs/${organizationId}/snippets/${snippetId}`,
|
|
2925
|
-
method: "PUT",
|
|
2926
|
-
body: data,
|
|
2927
|
-
secure: true,
|
|
2928
|
-
type: "application/json" /* Json */,
|
|
2929
|
-
format: "json",
|
|
2930
|
-
...params
|
|
2931
|
-
}),
|
|
2932
|
-
moveSnippet: (organizationId, snippetId, data, params = {}) => this.request({
|
|
2933
|
-
path: `/orgs/${organizationId}/snippets/${snippetId}/move`,
|
|
2934
|
-
method: "POST",
|
|
2935
|
-
body: data,
|
|
2936
|
-
secure: true,
|
|
2937
|
-
type: "application/json" /* Json */,
|
|
2938
|
-
format: "json",
|
|
2939
|
-
...params
|
|
2940
|
-
}),
|
|
2941
|
-
getSnippetSuggestedLocations: (organizationId, snippetId, query, params = {}) => this.request({
|
|
2942
|
-
path: `/orgs/${organizationId}/snippets/${snippetId}/move`,
|
|
2943
|
-
method: "GET",
|
|
2944
|
-
query,
|
|
2945
|
-
secure: true,
|
|
2946
|
-
format: "json",
|
|
2947
|
-
...params
|
|
2948
|
-
}),
|
|
2949
2857
|
askInOrganization: (organizationId, data, query, params = {}) => this.request({
|
|
2950
2858
|
path: `/orgs/${organizationId}/ask`,
|
|
2951
2859
|
method: "POST",
|
|
@@ -3190,6 +3098,14 @@ var Api = class extends HttpClient {
|
|
|
3190
3098
|
format: "json",
|
|
3191
3099
|
...params
|
|
3192
3100
|
}),
|
|
3101
|
+
listSiteSectionGroups: (organizationId, siteId, query, params = {}) => this.request({
|
|
3102
|
+
path: `/orgs/${organizationId}/sites/${siteId}/section-groups`,
|
|
3103
|
+
method: "GET",
|
|
3104
|
+
query,
|
|
3105
|
+
secure: true,
|
|
3106
|
+
format: "json",
|
|
3107
|
+
...params
|
|
3108
|
+
}),
|
|
3193
3109
|
addSectionGroupToSite: (organizationId, siteId, data, params = {}) => this.request({
|
|
3194
3110
|
path: `/orgs/${organizationId}/sites/${siteId}/section-groups`,
|
|
3195
3111
|
method: "POST",
|
|
@@ -3214,6 +3130,21 @@ var Api = class extends HttpClient {
|
|
|
3214
3130
|
secure: true,
|
|
3215
3131
|
...params
|
|
3216
3132
|
}),
|
|
3133
|
+
addSectionToGroup: (organizationId, siteId, siteSectionGroupId, data, params = {}) => this.request({
|
|
3134
|
+
path: `/orgs/${organizationId}/sites/${siteId}/section-groups/${siteSectionGroupId}/sections`,
|
|
3135
|
+
method: "POST",
|
|
3136
|
+
body: data,
|
|
3137
|
+
secure: true,
|
|
3138
|
+
type: "application/json" /* Json */,
|
|
3139
|
+
format: "json",
|
|
3140
|
+
...params
|
|
3141
|
+
}),
|
|
3142
|
+
removeSectionFromGroup: (organizationId, siteId, siteSectionGroupId, siteSectionId, params = {}) => this.request({
|
|
3143
|
+
path: `/orgs/${organizationId}/sites/${siteId}/section-groups/${siteSectionGroupId}/sections/${siteSectionId}`,
|
|
3144
|
+
method: "DELETE",
|
|
3145
|
+
secure: true,
|
|
3146
|
+
...params
|
|
3147
|
+
}),
|
|
3217
3148
|
addSectionToSite: (organizationId, siteId, data, params = {}) => this.request({
|
|
3218
3149
|
path: `/orgs/${organizationId}/sites/${siteId}/sections`,
|
|
3219
3150
|
method: "POST",
|
|
@@ -3333,6 +3264,15 @@ var Api = class extends HttpClient {
|
|
|
3333
3264
|
format: "json",
|
|
3334
3265
|
...params
|
|
3335
3266
|
}),
|
|
3267
|
+
moveSiteSectionGroup: (organizationId, siteId, siteSectionGroupId, data, params = {}) => this.request({
|
|
3268
|
+
path: `/orgs/${organizationId}/sites/${siteId}/section-groups/${siteSectionGroupId}/move`,
|
|
3269
|
+
method: "POST",
|
|
3270
|
+
body: data,
|
|
3271
|
+
secure: true,
|
|
3272
|
+
type: "application/json" /* Json */,
|
|
3273
|
+
format: "json",
|
|
3274
|
+
...params
|
|
3275
|
+
}),
|
|
3336
3276
|
moveSiteSection: (organizationId, siteId, siteSectionId, data, params = {}) => this.request({
|
|
3337
3277
|
path: `/orgs/${organizationId}/sites/${siteId}/sections/${siteSectionId}/move`,
|
|
3338
3278
|
method: "POST",
|
|
@@ -3454,6 +3394,72 @@ var Api = class extends HttpClient {
|
|
|
3454
3394
|
secure: true,
|
|
3455
3395
|
format: "json",
|
|
3456
3396
|
...params
|
|
3397
|
+
}),
|
|
3398
|
+
listOpenApiSpecs: (organizationId, query, params = {}) => this.request({
|
|
3399
|
+
path: `/orgs/${organizationId}/openapi`,
|
|
3400
|
+
method: "GET",
|
|
3401
|
+
query,
|
|
3402
|
+
secure: true,
|
|
3403
|
+
format: "json",
|
|
3404
|
+
...params
|
|
3405
|
+
}),
|
|
3406
|
+
getOpenApiSpecBySlug: (organizationId, specSlug, params = {}) => this.request({
|
|
3407
|
+
path: `/orgs/${organizationId}/openapi/${specSlug}`,
|
|
3408
|
+
method: "GET",
|
|
3409
|
+
secure: true,
|
|
3410
|
+
format: "json",
|
|
3411
|
+
...params
|
|
3412
|
+
}),
|
|
3413
|
+
createOrUpdateOpenApiSpecBySlug: (organizationId, specSlug, data, params = {}) => this.request({
|
|
3414
|
+
path: `/orgs/${organizationId}/openapi/${specSlug}`,
|
|
3415
|
+
method: "PUT",
|
|
3416
|
+
body: data,
|
|
3417
|
+
secure: true,
|
|
3418
|
+
type: "application/json" /* Json */,
|
|
3419
|
+
format: "json",
|
|
3420
|
+
...params
|
|
3421
|
+
}),
|
|
3422
|
+
deleteOpenApiSpecBySlug: (organizationId, specSlug, params = {}) => this.request({
|
|
3423
|
+
path: `/orgs/${organizationId}/openapi/${specSlug}`,
|
|
3424
|
+
method: "DELETE",
|
|
3425
|
+
secure: true,
|
|
3426
|
+
...params
|
|
3427
|
+
}),
|
|
3428
|
+
listOpenApiSpecVersions: (organizationId, specSlug, query, params = {}) => this.request({
|
|
3429
|
+
path: `/orgs/${organizationId}/openapi/${specSlug}/versions`,
|
|
3430
|
+
method: "GET",
|
|
3431
|
+
query,
|
|
3432
|
+
secure: true,
|
|
3433
|
+
format: "json",
|
|
3434
|
+
...params
|
|
3435
|
+
}),
|
|
3436
|
+
getLatestOpenApiSpecVersion: (organizationId, specSlug, params = {}) => this.request({
|
|
3437
|
+
path: `/orgs/${organizationId}/openapi/${specSlug}/versions/latest`,
|
|
3438
|
+
method: "GET",
|
|
3439
|
+
secure: true,
|
|
3440
|
+
format: "json",
|
|
3441
|
+
...params
|
|
3442
|
+
}),
|
|
3443
|
+
getLatestOpenApiSpecVersionContent: (organizationId, specSlug, params = {}) => this.request({
|
|
3444
|
+
path: `/orgs/${organizationId}/openapi/${specSlug}/versions/latest/content`,
|
|
3445
|
+
method: "GET",
|
|
3446
|
+
secure: true,
|
|
3447
|
+
format: "json",
|
|
3448
|
+
...params
|
|
3449
|
+
}),
|
|
3450
|
+
getOpenApiSpecVersionById: (organizationId, specSlug, versionId, params = {}) => this.request({
|
|
3451
|
+
path: `/orgs/${organizationId}/openapi/${specSlug}/versions/${versionId}`,
|
|
3452
|
+
method: "GET",
|
|
3453
|
+
secure: true,
|
|
3454
|
+
format: "json",
|
|
3455
|
+
...params
|
|
3456
|
+
}),
|
|
3457
|
+
getOpenApiSpecVersionContentById: (organizationId, specSlug, versionId, params = {}) => this.request({
|
|
3458
|
+
path: `/orgs/${organizationId}/openapi/${specSlug}/versions/${versionId}/content`,
|
|
3459
|
+
method: "GET",
|
|
3460
|
+
secure: true,
|
|
3461
|
+
format: "json",
|
|
3462
|
+
...params
|
|
3457
3463
|
})
|
|
3458
3464
|
};
|
|
3459
3465
|
customHostnames = {
|
|
@@ -3682,6 +3688,7 @@ export {
|
|
|
3682
3688
|
IntegrationTarget,
|
|
3683
3689
|
IntegrationVisibility,
|
|
3684
3690
|
MemberRole,
|
|
3691
|
+
OpenAPISpecProcessingState,
|
|
3685
3692
|
OrganizationBlockReason,
|
|
3686
3693
|
OrganizationCommunityType,
|
|
3687
3694
|
OrganizationType,
|