@gitbook/api 0.92.0 → 0.94.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 +608 -712
- package/dist/index.cjs +125 -153
- package/dist/index.js +123 -152
- package/package.json +1 -1
- package/spec/openapi.json +1847 -2358
- package/spec/openapi.yaml +1549 -1855
package/dist/index.cjs
CHANGED
|
@@ -232,6 +232,8 @@ __export(src_exports, {
|
|
|
232
232
|
IntegrationTarget: () => IntegrationTarget,
|
|
233
233
|
IntegrationVisibility: () => IntegrationVisibility,
|
|
234
234
|
MemberRole: () => MemberRole,
|
|
235
|
+
OpenAPISpecProcessingErrorCode: () => OpenAPISpecProcessingErrorCode,
|
|
236
|
+
OpenAPISpecProcessingState: () => OpenAPISpecProcessingState,
|
|
235
237
|
OrganizationBlockReason: () => OrganizationBlockReason,
|
|
236
238
|
OrganizationCommunityType: () => OrganizationCommunityType,
|
|
237
239
|
OrganizationType: () => OrganizationType,
|
|
@@ -257,7 +259,6 @@ __export(src_exports, {
|
|
|
257
259
|
SiteToMigrateFeature: () => SiteToMigrateFeature,
|
|
258
260
|
SiteType: () => SiteType,
|
|
259
261
|
SiteVisibility: () => SiteVisibility,
|
|
260
|
-
SpaceBlockReason: () => SpaceBlockReason,
|
|
261
262
|
SpaceEditMode: () => SpaceEditMode,
|
|
262
263
|
TeamMemberRole: () => TeamMemberRole
|
|
263
264
|
});
|
|
@@ -265,7 +266,7 @@ module.exports = __toCommonJS(src_exports);
|
|
|
265
266
|
|
|
266
267
|
// package.json
|
|
267
268
|
var name = "@gitbook/api";
|
|
268
|
-
var version = "0.
|
|
269
|
+
var version = "0.94.0";
|
|
269
270
|
|
|
270
271
|
// src/client.ts
|
|
271
272
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -480,49 +481,18 @@ var OrganizationBlockReason = /* @__PURE__ */ ((OrganizationBlockReason2) => {
|
|
|
480
481
|
OrganizationBlockReason2["Security"] = "security";
|
|
481
482
|
return OrganizationBlockReason2;
|
|
482
483
|
})(OrganizationBlockReason || {});
|
|
483
|
-
var
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
})(IntegrationVisibility || {});
|
|
496
|
-
var IntegrationScope = /* @__PURE__ */ ((IntegrationScope2) => {
|
|
497
|
-
IntegrationScope2["SnippetsRead"] = "snippets:read";
|
|
498
|
-
IntegrationScope2["CaptureWrite"] = "capture:write";
|
|
499
|
-
IntegrationScope2["SpaceViewsRead"] = "space:views:read";
|
|
500
|
-
IntegrationScope2["SpaceContentRead"] = "space:content:read";
|
|
501
|
-
IntegrationScope2["SpaceContentWrite"] = "space:content:write";
|
|
502
|
-
IntegrationScope2["SpaceMetadataRead"] = "space:metadata:read";
|
|
503
|
-
IntegrationScope2["SpaceMetadataWrite"] = "space:metadata:write";
|
|
504
|
-
IntegrationScope2["SpaceScriptInject"] = "space:script:inject";
|
|
505
|
-
IntegrationScope2["SpaceScriptCookies"] = "space:script:cookies";
|
|
506
|
-
IntegrationScope2["SpaceGitSync"] = "space:git:sync";
|
|
507
|
-
IntegrationScope2["SpaceVisitorAuth"] = "space:visitor:auth";
|
|
508
|
-
IntegrationScope2["SiteMetadataRead"] = "site:metadata:read";
|
|
509
|
-
IntegrationScope2["SiteViewsRead"] = "site:views:read";
|
|
510
|
-
IntegrationScope2["SiteScriptInject"] = "site:script:inject";
|
|
511
|
-
IntegrationScope2["SiteScriptCookies"] = "site:script:cookies";
|
|
512
|
-
IntegrationScope2["SiteVisitorAuth"] = "site:visitor:auth";
|
|
513
|
-
return IntegrationScope2;
|
|
514
|
-
})(IntegrationScope || {});
|
|
515
|
-
var IntegrationCategory = /* @__PURE__ */ ((IntegrationCategory2) => {
|
|
516
|
-
IntegrationCategory2["Analytics"] = "analytics";
|
|
517
|
-
IntegrationCategory2["Captures"] = "captures";
|
|
518
|
-
IntegrationCategory2["Collaboration"] = "collaboration";
|
|
519
|
-
IntegrationCategory2["Content"] = "content";
|
|
520
|
-
IntegrationCategory2["Gitsync"] = "gitsync";
|
|
521
|
-
IntegrationCategory2["Marketing"] = "marketing";
|
|
522
|
-
IntegrationCategory2["VisitorAuth"] = "visitor-auth";
|
|
523
|
-
IntegrationCategory2["Other"] = "other";
|
|
524
|
-
return IntegrationCategory2;
|
|
525
|
-
})(IntegrationCategory || {});
|
|
484
|
+
var OpenAPISpecProcessingState = /* @__PURE__ */ ((OpenAPISpecProcessingState2) => {
|
|
485
|
+
OpenAPISpecProcessingState2["Pending"] = "pending";
|
|
486
|
+
OpenAPISpecProcessingState2["Progress"] = "progress";
|
|
487
|
+
OpenAPISpecProcessingState2["Complete"] = "complete";
|
|
488
|
+
return OpenAPISpecProcessingState2;
|
|
489
|
+
})(OpenAPISpecProcessingState || {});
|
|
490
|
+
var OpenAPISpecProcessingErrorCode = /* @__PURE__ */ ((OpenAPISpecProcessingErrorCode2) => {
|
|
491
|
+
OpenAPISpecProcessingErrorCode2["FETCH_TIMEOUT"] = "FETCH_TIMEOUT";
|
|
492
|
+
OpenAPISpecProcessingErrorCode2["FETCH_ERROR"] = "FETCH_ERROR";
|
|
493
|
+
OpenAPISpecProcessingErrorCode2["PARSE_ERROR"] = "PARSE_ERROR";
|
|
494
|
+
return OpenAPISpecProcessingErrorCode2;
|
|
495
|
+
})(OpenAPISpecProcessingErrorCode || {});
|
|
526
496
|
var ContentReferenceStatus = /* @__PURE__ */ ((ContentReferenceStatus2) => {
|
|
527
497
|
ContentReferenceStatus2["Ok"] = "ok";
|
|
528
498
|
ContentReferenceStatus2["Broken"] = "broken";
|
|
@@ -630,6 +600,48 @@ var CustomizationThemeMode = /* @__PURE__ */ ((CustomizationThemeMode2) => {
|
|
|
630
600
|
CustomizationThemeMode2["Dark"] = "dark";
|
|
631
601
|
return CustomizationThemeMode2;
|
|
632
602
|
})(CustomizationThemeMode || {});
|
|
603
|
+
var IntegrationTarget = /* @__PURE__ */ ((IntegrationTarget2) => {
|
|
604
|
+
IntegrationTarget2["All"] = "all";
|
|
605
|
+
IntegrationTarget2["Site"] = "site";
|
|
606
|
+
IntegrationTarget2["Space"] = "space";
|
|
607
|
+
IntegrationTarget2["Organization"] = "organization";
|
|
608
|
+
return IntegrationTarget2;
|
|
609
|
+
})(IntegrationTarget || {});
|
|
610
|
+
var IntegrationVisibility = /* @__PURE__ */ ((IntegrationVisibility2) => {
|
|
611
|
+
IntegrationVisibility2["Public"] = "public";
|
|
612
|
+
IntegrationVisibility2["Private"] = "private";
|
|
613
|
+
IntegrationVisibility2["Unlisted"] = "unlisted";
|
|
614
|
+
return IntegrationVisibility2;
|
|
615
|
+
})(IntegrationVisibility || {});
|
|
616
|
+
var IntegrationScope = /* @__PURE__ */ ((IntegrationScope2) => {
|
|
617
|
+
IntegrationScope2["SpaceViewsRead"] = "space:views:read";
|
|
618
|
+
IntegrationScope2["SpaceContentRead"] = "space:content:read";
|
|
619
|
+
IntegrationScope2["SpaceContentWrite"] = "space:content:write";
|
|
620
|
+
IntegrationScope2["SpaceMetadataRead"] = "space:metadata:read";
|
|
621
|
+
IntegrationScope2["SpaceMetadataWrite"] = "space:metadata:write";
|
|
622
|
+
IntegrationScope2["SpaceScriptInject"] = "space:script:inject";
|
|
623
|
+
IntegrationScope2["SpaceScriptCookies"] = "space:script:cookies";
|
|
624
|
+
IntegrationScope2["SpaceGitSync"] = "space:git:sync";
|
|
625
|
+
IntegrationScope2["SpaceVisitorAuth"] = "space:visitor:auth";
|
|
626
|
+
IntegrationScope2["SiteMetadataRead"] = "site:metadata:read";
|
|
627
|
+
IntegrationScope2["SiteViewsRead"] = "site:views:read";
|
|
628
|
+
IntegrationScope2["SiteScriptInject"] = "site:script:inject";
|
|
629
|
+
IntegrationScope2["SiteScriptCookies"] = "site:script:cookies";
|
|
630
|
+
IntegrationScope2["SiteVisitorAuth"] = "site:visitor:auth";
|
|
631
|
+
IntegrationScope2["OpenapiRead"] = "openapi:read";
|
|
632
|
+
IntegrationScope2["OpenapiWrite"] = "openapi:write";
|
|
633
|
+
return IntegrationScope2;
|
|
634
|
+
})(IntegrationScope || {});
|
|
635
|
+
var IntegrationCategory = /* @__PURE__ */ ((IntegrationCategory2) => {
|
|
636
|
+
IntegrationCategory2["Analytics"] = "analytics";
|
|
637
|
+
IntegrationCategory2["Collaboration"] = "collaboration";
|
|
638
|
+
IntegrationCategory2["Content"] = "content";
|
|
639
|
+
IntegrationCategory2["Gitsync"] = "gitsync";
|
|
640
|
+
IntegrationCategory2["Marketing"] = "marketing";
|
|
641
|
+
IntegrationCategory2["VisitorAuth"] = "visitor-auth";
|
|
642
|
+
IntegrationCategory2["Other"] = "other";
|
|
643
|
+
return IntegrationCategory2;
|
|
644
|
+
})(IntegrationCategory || {});
|
|
633
645
|
var CustomFieldType = /* @__PURE__ */ ((CustomFieldType2) => {
|
|
634
646
|
CustomFieldType2["Text"] = "text";
|
|
635
647
|
CustomFieldType2["Number"] = "number";
|
|
@@ -901,14 +913,6 @@ var CloudflareHostnameTLSValidationMethod = /* @__PURE__ */ ((CloudflareHostname
|
|
|
901
913
|
CloudflareHostnameTLSValidationMethod2["Email"] = "email";
|
|
902
914
|
return CloudflareHostnameTLSValidationMethod2;
|
|
903
915
|
})(CloudflareHostnameTLSValidationMethod || {});
|
|
904
|
-
var SpaceBlockReason = /* @__PURE__ */ ((SpaceBlockReason2) => {
|
|
905
|
-
SpaceBlockReason2["DMCA"] = "DMCA";
|
|
906
|
-
SpaceBlockReason2["THREAT_TYPE_UNSPECIFIED"] = "THREAT_TYPE_UNSPECIFIED";
|
|
907
|
-
SpaceBlockReason2["MALWARE"] = "MALWARE";
|
|
908
|
-
SpaceBlockReason2["SOCIAL_ENGINEERING"] = "SOCIAL_ENGINEERING";
|
|
909
|
-
SpaceBlockReason2["UNWANTED_SOFTWARE"] = "UNWANTED_SOFTWARE";
|
|
910
|
-
return SpaceBlockReason2;
|
|
911
|
-
})(SpaceBlockReason || {});
|
|
912
916
|
var RevisionSemanticChangeType = /* @__PURE__ */ ((RevisionSemanticChangeType2) => {
|
|
913
917
|
RevisionSemanticChangeType2["PageCreated"] = "page_created";
|
|
914
918
|
RevisionSemanticChangeType2["PageEdited"] = "page_edited";
|
|
@@ -2944,105 +2948,6 @@ var Api = class extends HttpClient {
|
|
|
2944
2948
|
format: "json",
|
|
2945
2949
|
...params
|
|
2946
2950
|
}),
|
|
2947
|
-
listCaptures: (organizationId, query, params = {}) => this.request({
|
|
2948
|
-
path: `/orgs/${organizationId}/captures`,
|
|
2949
|
-
method: "GET",
|
|
2950
|
-
query,
|
|
2951
|
-
secure: true,
|
|
2952
|
-
format: "json",
|
|
2953
|
-
...params
|
|
2954
|
-
}),
|
|
2955
|
-
startCapture: (organizationId, data, params = {}) => this.request({
|
|
2956
|
-
path: `/orgs/${organizationId}/captures`,
|
|
2957
|
-
method: "POST",
|
|
2958
|
-
body: data,
|
|
2959
|
-
secure: true,
|
|
2960
|
-
type: "application/json" /* Json */,
|
|
2961
|
-
format: "json",
|
|
2962
|
-
...params
|
|
2963
|
-
}),
|
|
2964
|
-
getCapture: (organizationId, captureId, query, params = {}) => this.request({
|
|
2965
|
-
path: `/orgs/${organizationId}/captures/${captureId}`,
|
|
2966
|
-
method: "GET",
|
|
2967
|
-
query,
|
|
2968
|
-
secure: true,
|
|
2969
|
-
format: "json",
|
|
2970
|
-
...params
|
|
2971
|
-
}),
|
|
2972
|
-
addEventsToCapture: (organizationId, captureId, data, params = {}) => this.request({
|
|
2973
|
-
path: `/orgs/${organizationId}/captures/${captureId}/events`,
|
|
2974
|
-
method: "POST",
|
|
2975
|
-
body: data,
|
|
2976
|
-
secure: true,
|
|
2977
|
-
type: "application/json" /* Json */,
|
|
2978
|
-
...params
|
|
2979
|
-
}),
|
|
2980
|
-
stopCapture: (organizationId, captureId, data, query, params = {}) => this.request({
|
|
2981
|
-
path: `/orgs/${organizationId}/captures/${captureId}/stop`,
|
|
2982
|
-
method: "POST",
|
|
2983
|
-
query,
|
|
2984
|
-
body: data,
|
|
2985
|
-
secure: true,
|
|
2986
|
-
type: "application/json" /* Json */,
|
|
2987
|
-
format: "json",
|
|
2988
|
-
...params
|
|
2989
|
-
}),
|
|
2990
|
-
listSnippets: (organizationId, query, params = {}) => this.request({
|
|
2991
|
-
path: `/orgs/${organizationId}/snippets`,
|
|
2992
|
-
method: "GET",
|
|
2993
|
-
query,
|
|
2994
|
-
secure: true,
|
|
2995
|
-
format: "json",
|
|
2996
|
-
...params
|
|
2997
|
-
}),
|
|
2998
|
-
createSnippet: (organizationId, data, params = {}) => this.request({
|
|
2999
|
-
path: `/orgs/${organizationId}/snippets`,
|
|
3000
|
-
method: "POST",
|
|
3001
|
-
body: data,
|
|
3002
|
-
secure: true,
|
|
3003
|
-
type: "application/json" /* Json */,
|
|
3004
|
-
format: "json",
|
|
3005
|
-
...params
|
|
3006
|
-
}),
|
|
3007
|
-
getSnippet: (organizationId, snippetId, params = {}) => this.request({
|
|
3008
|
-
path: `/orgs/${organizationId}/snippets/${snippetId}`,
|
|
3009
|
-
method: "GET",
|
|
3010
|
-
secure: true,
|
|
3011
|
-
format: "json",
|
|
3012
|
-
...params
|
|
3013
|
-
}),
|
|
3014
|
-
deleteSnippet: (organizationId, snippetId, params = {}) => this.request({
|
|
3015
|
-
path: `/orgs/${organizationId}/snippets/${snippetId}`,
|
|
3016
|
-
method: "DELETE",
|
|
3017
|
-
secure: true,
|
|
3018
|
-
...params
|
|
3019
|
-
}),
|
|
3020
|
-
updateSnippet: (organizationId, snippetId, data, params = {}) => this.request({
|
|
3021
|
-
path: `/orgs/${organizationId}/snippets/${snippetId}`,
|
|
3022
|
-
method: "PUT",
|
|
3023
|
-
body: data,
|
|
3024
|
-
secure: true,
|
|
3025
|
-
type: "application/json" /* Json */,
|
|
3026
|
-
format: "json",
|
|
3027
|
-
...params
|
|
3028
|
-
}),
|
|
3029
|
-
moveSnippet: (organizationId, snippetId, data, params = {}) => this.request({
|
|
3030
|
-
path: `/orgs/${organizationId}/snippets/${snippetId}/move`,
|
|
3031
|
-
method: "POST",
|
|
3032
|
-
body: data,
|
|
3033
|
-
secure: true,
|
|
3034
|
-
type: "application/json" /* Json */,
|
|
3035
|
-
format: "json",
|
|
3036
|
-
...params
|
|
3037
|
-
}),
|
|
3038
|
-
getSnippetSuggestedLocations: (organizationId, snippetId, query, params = {}) => this.request({
|
|
3039
|
-
path: `/orgs/${organizationId}/snippets/${snippetId}/move`,
|
|
3040
|
-
method: "GET",
|
|
3041
|
-
query,
|
|
3042
|
-
secure: true,
|
|
3043
|
-
format: "json",
|
|
3044
|
-
...params
|
|
3045
|
-
}),
|
|
3046
2951
|
askInOrganization: (organizationId, data, query, params = {}) => this.request({
|
|
3047
2952
|
path: `/orgs/${organizationId}/ask`,
|
|
3048
2953
|
method: "POST",
|
|
@@ -3583,6 +3488,72 @@ var Api = class extends HttpClient {
|
|
|
3583
3488
|
secure: true,
|
|
3584
3489
|
format: "json",
|
|
3585
3490
|
...params
|
|
3491
|
+
}),
|
|
3492
|
+
listOpenApiSpecs: (organizationId, query, params = {}) => this.request({
|
|
3493
|
+
path: `/orgs/${organizationId}/openapi`,
|
|
3494
|
+
method: "GET",
|
|
3495
|
+
query,
|
|
3496
|
+
secure: true,
|
|
3497
|
+
format: "json",
|
|
3498
|
+
...params
|
|
3499
|
+
}),
|
|
3500
|
+
getOpenApiSpecBySlug: (organizationId, specSlug, params = {}) => this.request({
|
|
3501
|
+
path: `/orgs/${organizationId}/openapi/${specSlug}`,
|
|
3502
|
+
method: "GET",
|
|
3503
|
+
secure: true,
|
|
3504
|
+
format: "json",
|
|
3505
|
+
...params
|
|
3506
|
+
}),
|
|
3507
|
+
createOrUpdateOpenApiSpecBySlug: (organizationId, specSlug, data, params = {}) => this.request({
|
|
3508
|
+
path: `/orgs/${organizationId}/openapi/${specSlug}`,
|
|
3509
|
+
method: "PUT",
|
|
3510
|
+
body: data,
|
|
3511
|
+
secure: true,
|
|
3512
|
+
type: "application/json" /* Json */,
|
|
3513
|
+
format: "json",
|
|
3514
|
+
...params
|
|
3515
|
+
}),
|
|
3516
|
+
deleteOpenApiSpecBySlug: (organizationId, specSlug, params = {}) => this.request({
|
|
3517
|
+
path: `/orgs/${organizationId}/openapi/${specSlug}`,
|
|
3518
|
+
method: "DELETE",
|
|
3519
|
+
secure: true,
|
|
3520
|
+
...params
|
|
3521
|
+
}),
|
|
3522
|
+
listOpenApiSpecVersions: (organizationId, specSlug, query, params = {}) => this.request({
|
|
3523
|
+
path: `/orgs/${organizationId}/openapi/${specSlug}/versions`,
|
|
3524
|
+
method: "GET",
|
|
3525
|
+
query,
|
|
3526
|
+
secure: true,
|
|
3527
|
+
format: "json",
|
|
3528
|
+
...params
|
|
3529
|
+
}),
|
|
3530
|
+
getLatestOpenApiSpecVersion: (organizationId, specSlug, params = {}) => this.request({
|
|
3531
|
+
path: `/orgs/${organizationId}/openapi/${specSlug}/versions/latest`,
|
|
3532
|
+
method: "GET",
|
|
3533
|
+
secure: true,
|
|
3534
|
+
format: "json",
|
|
3535
|
+
...params
|
|
3536
|
+
}),
|
|
3537
|
+
getLatestOpenApiSpecVersionContent: (organizationId, specSlug, params = {}) => this.request({
|
|
3538
|
+
path: `/orgs/${organizationId}/openapi/${specSlug}/versions/latest/content`,
|
|
3539
|
+
method: "GET",
|
|
3540
|
+
secure: true,
|
|
3541
|
+
format: "json",
|
|
3542
|
+
...params
|
|
3543
|
+
}),
|
|
3544
|
+
getOpenApiSpecVersionById: (organizationId, specSlug, versionId, params = {}) => this.request({
|
|
3545
|
+
path: `/orgs/${organizationId}/openapi/${specSlug}/versions/${versionId}`,
|
|
3546
|
+
method: "GET",
|
|
3547
|
+
secure: true,
|
|
3548
|
+
format: "json",
|
|
3549
|
+
...params
|
|
3550
|
+
}),
|
|
3551
|
+
getOpenApiSpecVersionContentById: (organizationId, specSlug, versionId, params = {}) => this.request({
|
|
3552
|
+
path: `/orgs/${organizationId}/openapi/${specSlug}/versions/${versionId}/content`,
|
|
3553
|
+
method: "GET",
|
|
3554
|
+
secure: true,
|
|
3555
|
+
format: "json",
|
|
3556
|
+
...params
|
|
3586
3557
|
})
|
|
3587
3558
|
};
|
|
3588
3559
|
customHostnames = {
|
|
@@ -3812,6 +3783,8 @@ var GitBookAPI = class extends Api {
|
|
|
3812
3783
|
IntegrationTarget,
|
|
3813
3784
|
IntegrationVisibility,
|
|
3814
3785
|
MemberRole,
|
|
3786
|
+
OpenAPISpecProcessingErrorCode,
|
|
3787
|
+
OpenAPISpecProcessingState,
|
|
3815
3788
|
OrganizationBlockReason,
|
|
3816
3789
|
OrganizationCommunityType,
|
|
3817
3790
|
OrganizationType,
|
|
@@ -3837,7 +3810,6 @@ var GitBookAPI = class extends Api {
|
|
|
3837
3810
|
SiteToMigrateFeature,
|
|
3838
3811
|
SiteType,
|
|
3839
3812
|
SiteVisibility,
|
|
3840
|
-
SpaceBlockReason,
|
|
3841
3813
|
SpaceEditMode,
|
|
3842
3814
|
TeamMemberRole
|
|
3843
3815
|
});
|
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.94.0";
|
|
176
176
|
|
|
177
177
|
// src/client.ts
|
|
178
178
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -387,49 +387,18 @@ var OrganizationBlockReason = /* @__PURE__ */ ((OrganizationBlockReason2) => {
|
|
|
387
387
|
OrganizationBlockReason2["Security"] = "security";
|
|
388
388
|
return OrganizationBlockReason2;
|
|
389
389
|
})(OrganizationBlockReason || {});
|
|
390
|
-
var
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
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 || {});
|
|
390
|
+
var OpenAPISpecProcessingState = /* @__PURE__ */ ((OpenAPISpecProcessingState2) => {
|
|
391
|
+
OpenAPISpecProcessingState2["Pending"] = "pending";
|
|
392
|
+
OpenAPISpecProcessingState2["Progress"] = "progress";
|
|
393
|
+
OpenAPISpecProcessingState2["Complete"] = "complete";
|
|
394
|
+
return OpenAPISpecProcessingState2;
|
|
395
|
+
})(OpenAPISpecProcessingState || {});
|
|
396
|
+
var OpenAPISpecProcessingErrorCode = /* @__PURE__ */ ((OpenAPISpecProcessingErrorCode2) => {
|
|
397
|
+
OpenAPISpecProcessingErrorCode2["FETCH_TIMEOUT"] = "FETCH_TIMEOUT";
|
|
398
|
+
OpenAPISpecProcessingErrorCode2["FETCH_ERROR"] = "FETCH_ERROR";
|
|
399
|
+
OpenAPISpecProcessingErrorCode2["PARSE_ERROR"] = "PARSE_ERROR";
|
|
400
|
+
return OpenAPISpecProcessingErrorCode2;
|
|
401
|
+
})(OpenAPISpecProcessingErrorCode || {});
|
|
433
402
|
var ContentReferenceStatus = /* @__PURE__ */ ((ContentReferenceStatus2) => {
|
|
434
403
|
ContentReferenceStatus2["Ok"] = "ok";
|
|
435
404
|
ContentReferenceStatus2["Broken"] = "broken";
|
|
@@ -537,6 +506,48 @@ var CustomizationThemeMode = /* @__PURE__ */ ((CustomizationThemeMode2) => {
|
|
|
537
506
|
CustomizationThemeMode2["Dark"] = "dark";
|
|
538
507
|
return CustomizationThemeMode2;
|
|
539
508
|
})(CustomizationThemeMode || {});
|
|
509
|
+
var IntegrationTarget = /* @__PURE__ */ ((IntegrationTarget2) => {
|
|
510
|
+
IntegrationTarget2["All"] = "all";
|
|
511
|
+
IntegrationTarget2["Site"] = "site";
|
|
512
|
+
IntegrationTarget2["Space"] = "space";
|
|
513
|
+
IntegrationTarget2["Organization"] = "organization";
|
|
514
|
+
return IntegrationTarget2;
|
|
515
|
+
})(IntegrationTarget || {});
|
|
516
|
+
var IntegrationVisibility = /* @__PURE__ */ ((IntegrationVisibility2) => {
|
|
517
|
+
IntegrationVisibility2["Public"] = "public";
|
|
518
|
+
IntegrationVisibility2["Private"] = "private";
|
|
519
|
+
IntegrationVisibility2["Unlisted"] = "unlisted";
|
|
520
|
+
return IntegrationVisibility2;
|
|
521
|
+
})(IntegrationVisibility || {});
|
|
522
|
+
var IntegrationScope = /* @__PURE__ */ ((IntegrationScope2) => {
|
|
523
|
+
IntegrationScope2["SpaceViewsRead"] = "space:views:read";
|
|
524
|
+
IntegrationScope2["SpaceContentRead"] = "space:content:read";
|
|
525
|
+
IntegrationScope2["SpaceContentWrite"] = "space:content:write";
|
|
526
|
+
IntegrationScope2["SpaceMetadataRead"] = "space:metadata:read";
|
|
527
|
+
IntegrationScope2["SpaceMetadataWrite"] = "space:metadata:write";
|
|
528
|
+
IntegrationScope2["SpaceScriptInject"] = "space:script:inject";
|
|
529
|
+
IntegrationScope2["SpaceScriptCookies"] = "space:script:cookies";
|
|
530
|
+
IntegrationScope2["SpaceGitSync"] = "space:git:sync";
|
|
531
|
+
IntegrationScope2["SpaceVisitorAuth"] = "space:visitor:auth";
|
|
532
|
+
IntegrationScope2["SiteMetadataRead"] = "site:metadata:read";
|
|
533
|
+
IntegrationScope2["SiteViewsRead"] = "site:views:read";
|
|
534
|
+
IntegrationScope2["SiteScriptInject"] = "site:script:inject";
|
|
535
|
+
IntegrationScope2["SiteScriptCookies"] = "site:script:cookies";
|
|
536
|
+
IntegrationScope2["SiteVisitorAuth"] = "site:visitor:auth";
|
|
537
|
+
IntegrationScope2["OpenapiRead"] = "openapi:read";
|
|
538
|
+
IntegrationScope2["OpenapiWrite"] = "openapi:write";
|
|
539
|
+
return IntegrationScope2;
|
|
540
|
+
})(IntegrationScope || {});
|
|
541
|
+
var IntegrationCategory = /* @__PURE__ */ ((IntegrationCategory2) => {
|
|
542
|
+
IntegrationCategory2["Analytics"] = "analytics";
|
|
543
|
+
IntegrationCategory2["Collaboration"] = "collaboration";
|
|
544
|
+
IntegrationCategory2["Content"] = "content";
|
|
545
|
+
IntegrationCategory2["Gitsync"] = "gitsync";
|
|
546
|
+
IntegrationCategory2["Marketing"] = "marketing";
|
|
547
|
+
IntegrationCategory2["VisitorAuth"] = "visitor-auth";
|
|
548
|
+
IntegrationCategory2["Other"] = "other";
|
|
549
|
+
return IntegrationCategory2;
|
|
550
|
+
})(IntegrationCategory || {});
|
|
540
551
|
var CustomFieldType = /* @__PURE__ */ ((CustomFieldType2) => {
|
|
541
552
|
CustomFieldType2["Text"] = "text";
|
|
542
553
|
CustomFieldType2["Number"] = "number";
|
|
@@ -808,14 +819,6 @@ var CloudflareHostnameTLSValidationMethod = /* @__PURE__ */ ((CloudflareHostname
|
|
|
808
819
|
CloudflareHostnameTLSValidationMethod2["Email"] = "email";
|
|
809
820
|
return CloudflareHostnameTLSValidationMethod2;
|
|
810
821
|
})(CloudflareHostnameTLSValidationMethod || {});
|
|
811
|
-
var SpaceBlockReason = /* @__PURE__ */ ((SpaceBlockReason2) => {
|
|
812
|
-
SpaceBlockReason2["DMCA"] = "DMCA";
|
|
813
|
-
SpaceBlockReason2["THREAT_TYPE_UNSPECIFIED"] = "THREAT_TYPE_UNSPECIFIED";
|
|
814
|
-
SpaceBlockReason2["MALWARE"] = "MALWARE";
|
|
815
|
-
SpaceBlockReason2["SOCIAL_ENGINEERING"] = "SOCIAL_ENGINEERING";
|
|
816
|
-
SpaceBlockReason2["UNWANTED_SOFTWARE"] = "UNWANTED_SOFTWARE";
|
|
817
|
-
return SpaceBlockReason2;
|
|
818
|
-
})(SpaceBlockReason || {});
|
|
819
822
|
var RevisionSemanticChangeType = /* @__PURE__ */ ((RevisionSemanticChangeType2) => {
|
|
820
823
|
RevisionSemanticChangeType2["PageCreated"] = "page_created";
|
|
821
824
|
RevisionSemanticChangeType2["PageEdited"] = "page_edited";
|
|
@@ -2851,105 +2854,6 @@ var Api = class extends HttpClient {
|
|
|
2851
2854
|
format: "json",
|
|
2852
2855
|
...params
|
|
2853
2856
|
}),
|
|
2854
|
-
listCaptures: (organizationId, query, params = {}) => this.request({
|
|
2855
|
-
path: `/orgs/${organizationId}/captures`,
|
|
2856
|
-
method: "GET",
|
|
2857
|
-
query,
|
|
2858
|
-
secure: true,
|
|
2859
|
-
format: "json",
|
|
2860
|
-
...params
|
|
2861
|
-
}),
|
|
2862
|
-
startCapture: (organizationId, data, params = {}) => this.request({
|
|
2863
|
-
path: `/orgs/${organizationId}/captures`,
|
|
2864
|
-
method: "POST",
|
|
2865
|
-
body: data,
|
|
2866
|
-
secure: true,
|
|
2867
|
-
type: "application/json" /* Json */,
|
|
2868
|
-
format: "json",
|
|
2869
|
-
...params
|
|
2870
|
-
}),
|
|
2871
|
-
getCapture: (organizationId, captureId, query, params = {}) => this.request({
|
|
2872
|
-
path: `/orgs/${organizationId}/captures/${captureId}`,
|
|
2873
|
-
method: "GET",
|
|
2874
|
-
query,
|
|
2875
|
-
secure: true,
|
|
2876
|
-
format: "json",
|
|
2877
|
-
...params
|
|
2878
|
-
}),
|
|
2879
|
-
addEventsToCapture: (organizationId, captureId, data, params = {}) => this.request({
|
|
2880
|
-
path: `/orgs/${organizationId}/captures/${captureId}/events`,
|
|
2881
|
-
method: "POST",
|
|
2882
|
-
body: data,
|
|
2883
|
-
secure: true,
|
|
2884
|
-
type: "application/json" /* Json */,
|
|
2885
|
-
...params
|
|
2886
|
-
}),
|
|
2887
|
-
stopCapture: (organizationId, captureId, data, query, params = {}) => this.request({
|
|
2888
|
-
path: `/orgs/${organizationId}/captures/${captureId}/stop`,
|
|
2889
|
-
method: "POST",
|
|
2890
|
-
query,
|
|
2891
|
-
body: data,
|
|
2892
|
-
secure: true,
|
|
2893
|
-
type: "application/json" /* Json */,
|
|
2894
|
-
format: "json",
|
|
2895
|
-
...params
|
|
2896
|
-
}),
|
|
2897
|
-
listSnippets: (organizationId, query, params = {}) => this.request({
|
|
2898
|
-
path: `/orgs/${organizationId}/snippets`,
|
|
2899
|
-
method: "GET",
|
|
2900
|
-
query,
|
|
2901
|
-
secure: true,
|
|
2902
|
-
format: "json",
|
|
2903
|
-
...params
|
|
2904
|
-
}),
|
|
2905
|
-
createSnippet: (organizationId, data, params = {}) => this.request({
|
|
2906
|
-
path: `/orgs/${organizationId}/snippets`,
|
|
2907
|
-
method: "POST",
|
|
2908
|
-
body: data,
|
|
2909
|
-
secure: true,
|
|
2910
|
-
type: "application/json" /* Json */,
|
|
2911
|
-
format: "json",
|
|
2912
|
-
...params
|
|
2913
|
-
}),
|
|
2914
|
-
getSnippet: (organizationId, snippetId, params = {}) => this.request({
|
|
2915
|
-
path: `/orgs/${organizationId}/snippets/${snippetId}`,
|
|
2916
|
-
method: "GET",
|
|
2917
|
-
secure: true,
|
|
2918
|
-
format: "json",
|
|
2919
|
-
...params
|
|
2920
|
-
}),
|
|
2921
|
-
deleteSnippet: (organizationId, snippetId, params = {}) => this.request({
|
|
2922
|
-
path: `/orgs/${organizationId}/snippets/${snippetId}`,
|
|
2923
|
-
method: "DELETE",
|
|
2924
|
-
secure: true,
|
|
2925
|
-
...params
|
|
2926
|
-
}),
|
|
2927
|
-
updateSnippet: (organizationId, snippetId, data, params = {}) => this.request({
|
|
2928
|
-
path: `/orgs/${organizationId}/snippets/${snippetId}`,
|
|
2929
|
-
method: "PUT",
|
|
2930
|
-
body: data,
|
|
2931
|
-
secure: true,
|
|
2932
|
-
type: "application/json" /* Json */,
|
|
2933
|
-
format: "json",
|
|
2934
|
-
...params
|
|
2935
|
-
}),
|
|
2936
|
-
moveSnippet: (organizationId, snippetId, data, params = {}) => this.request({
|
|
2937
|
-
path: `/orgs/${organizationId}/snippets/${snippetId}/move`,
|
|
2938
|
-
method: "POST",
|
|
2939
|
-
body: data,
|
|
2940
|
-
secure: true,
|
|
2941
|
-
type: "application/json" /* Json */,
|
|
2942
|
-
format: "json",
|
|
2943
|
-
...params
|
|
2944
|
-
}),
|
|
2945
|
-
getSnippetSuggestedLocations: (organizationId, snippetId, query, params = {}) => this.request({
|
|
2946
|
-
path: `/orgs/${organizationId}/snippets/${snippetId}/move`,
|
|
2947
|
-
method: "GET",
|
|
2948
|
-
query,
|
|
2949
|
-
secure: true,
|
|
2950
|
-
format: "json",
|
|
2951
|
-
...params
|
|
2952
|
-
}),
|
|
2953
2857
|
askInOrganization: (organizationId, data, query, params = {}) => this.request({
|
|
2954
2858
|
path: `/orgs/${organizationId}/ask`,
|
|
2955
2859
|
method: "POST",
|
|
@@ -3490,6 +3394,72 @@ var Api = class extends HttpClient {
|
|
|
3490
3394
|
secure: true,
|
|
3491
3395
|
format: "json",
|
|
3492
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
|
|
3493
3463
|
})
|
|
3494
3464
|
};
|
|
3495
3465
|
customHostnames = {
|
|
@@ -3718,6 +3688,8 @@ export {
|
|
|
3718
3688
|
IntegrationTarget,
|
|
3719
3689
|
IntegrationVisibility,
|
|
3720
3690
|
MemberRole,
|
|
3691
|
+
OpenAPISpecProcessingErrorCode,
|
|
3692
|
+
OpenAPISpecProcessingState,
|
|
3721
3693
|
OrganizationBlockReason,
|
|
3722
3694
|
OrganizationCommunityType,
|
|
3723
3695
|
OrganizationType,
|
|
@@ -3743,7 +3715,6 @@ export {
|
|
|
3743
3715
|
SiteToMigrateFeature,
|
|
3744
3716
|
SiteType,
|
|
3745
3717
|
SiteVisibility,
|
|
3746
|
-
SpaceBlockReason,
|
|
3747
3718
|
SpaceEditMode,
|
|
3748
3719
|
TeamMemberRole
|
|
3749
3720
|
};
|