@gitbook/api 0.120.0 → 0.122.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 +174 -155
- package/dist/index.cjs +56 -1
- package/dist/index.js +54 -1
- package/package.json +1 -1
- package/spec/openapi.json +463 -455
- package/spec/openapi.yaml +304 -329
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.122.0";
|
|
176
176
|
|
|
177
177
|
// src/client.ts
|
|
178
178
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -301,6 +301,12 @@ var MemberRole = /* @__PURE__ */ ((MemberRole2) => {
|
|
|
301
301
|
MemberRole2["Read"] = "read";
|
|
302
302
|
return MemberRole2;
|
|
303
303
|
})(MemberRole || {});
|
|
304
|
+
var TextAlignment = /* @__PURE__ */ ((TextAlignment2) => {
|
|
305
|
+
TextAlignment2["Start"] = "start";
|
|
306
|
+
TextAlignment2["Center"] = "center";
|
|
307
|
+
TextAlignment2["End"] = "end";
|
|
308
|
+
return TextAlignment2;
|
|
309
|
+
})(TextAlignment || {});
|
|
304
310
|
var TranslationLanguage = /* @__PURE__ */ ((TranslationLanguage2) => {
|
|
305
311
|
TranslationLanguage2["En"] = "en";
|
|
306
312
|
TranslationLanguage2["Fr"] = "fr";
|
|
@@ -554,6 +560,36 @@ var SiteAgentsContext = /* @__PURE__ */ ((SiteAgentsContext2) => {
|
|
|
554
560
|
SiteAgentsContext2["Included"] = "included";
|
|
555
561
|
return SiteAgentsContext2;
|
|
556
562
|
})(SiteAgentsContext || {});
|
|
563
|
+
var SiteFeatureKey = /* @__PURE__ */ ((SiteFeatureKey2) => {
|
|
564
|
+
SiteFeatureKey2["SitesAdaptiveContent"] = "sites-adaptive-content";
|
|
565
|
+
SiteFeatureKey2["SitesAdvancedCustomization"] = "sites-advanced-customization";
|
|
566
|
+
SiteFeatureKey2["SitesAdvancedInsights"] = "sites-advanced-insights";
|
|
567
|
+
SiteFeatureKey2["SitesAds"] = "sites-ads";
|
|
568
|
+
SiteFeatureKey2["SitesAiSearch"] = "sites-ai-search";
|
|
569
|
+
SiteFeatureKey2["SitesApiPlayground"] = "sites-api-playground";
|
|
570
|
+
SiteFeatureKey2["SitesBasicCustomization"] = "sites-basic-customization";
|
|
571
|
+
SiteFeatureKey2["SitesCustomDomain"] = "sites-custom-domain";
|
|
572
|
+
SiteFeatureKey2["SitesCustomFonts"] = "sites-custom-fonts";
|
|
573
|
+
SiteFeatureKey2["SitesCustomSubdirectory"] = "sites-custom-subdirectory";
|
|
574
|
+
SiteFeatureKey2["SitesFullTextSearch"] = "sites-full-text-search";
|
|
575
|
+
SiteFeatureKey2["SitesMultivariantSite"] = "sites-multivariant-site";
|
|
576
|
+
SiteFeatureKey2["SitesNoCustomDomain"] = "sites-no-custom-domain";
|
|
577
|
+
SiteFeatureKey2["SitesPageFeedback"] = "sites-page-feedback";
|
|
578
|
+
SiteFeatureKey2["SitesPageTrafficInsights"] = "sites-page-traffic-insights";
|
|
579
|
+
SiteFeatureKey2["SitesPdfExport"] = "sites-pdf-export";
|
|
580
|
+
SiteFeatureKey2["SitesPreviewDeployments"] = "sites-preview-deployments";
|
|
581
|
+
SiteFeatureKey2["SitesPublicVisibility"] = "sites-public-visibility";
|
|
582
|
+
SiteFeatureKey2["SitesRedirects"] = "sites-redirects";
|
|
583
|
+
SiteFeatureKey2["SitesSearchInsights"] = "sites-search-insights";
|
|
584
|
+
SiteFeatureKey2["SitesSections"] = "sites-sections";
|
|
585
|
+
SiteFeatureKey2["SitesSeo"] = "sites-seo";
|
|
586
|
+
SiteFeatureKey2["SitesShareLinks"] = "sites-share-links";
|
|
587
|
+
SiteFeatureKey2["SitesUnlistedVisibility"] = "sites-unlisted-visibility";
|
|
588
|
+
SiteFeatureKey2["SitesUserContribution"] = "sites-user-contribution";
|
|
589
|
+
SiteFeatureKey2["SitesVisitorAuthentication"] = "sites-visitor-authentication";
|
|
590
|
+
SiteFeatureKey2["SitesVisitors"] = "sites-visitors";
|
|
591
|
+
return SiteFeatureKey2;
|
|
592
|
+
})(SiteFeatureKey || {});
|
|
557
593
|
var SiteCustomizationFeature = /* @__PURE__ */ ((SiteCustomizationFeature2) => {
|
|
558
594
|
SiteCustomizationFeature2["HeaderLogo"] = "header-logo";
|
|
559
595
|
SiteCustomizationFeature2["ThemePreset"] = "theme-preset";
|
|
@@ -1518,6 +1554,12 @@ var Api = class extends HttpClient {
|
|
|
1518
1554
|
format: "json",
|
|
1519
1555
|
...params
|
|
1520
1556
|
}),
|
|
1557
|
+
removeRequestedReviewerFromChangeRequest: (spaceId, changeRequestId, userId, params = {}) => this.request({
|
|
1558
|
+
path: `/spaces/${spaceId}/change-requests/${changeRequestId}/requested-reviewers/${userId}`,
|
|
1559
|
+
method: "DELETE",
|
|
1560
|
+
secure: true,
|
|
1561
|
+
...params
|
|
1562
|
+
}),
|
|
1521
1563
|
listChangeRequestLinks: (spaceId, changeRequestId, query, params = {}) => this.request({
|
|
1522
1564
|
path: `/spaces/${spaceId}/change-requests/${changeRequestId}/links`,
|
|
1523
1565
|
method: "GET",
|
|
@@ -3012,6 +3054,15 @@ var Api = class extends HttpClient {
|
|
|
3012
3054
|
format: "json",
|
|
3013
3055
|
...params
|
|
3014
3056
|
}),
|
|
3057
|
+
sortSiteStructure: (organizationId, siteId, data, params = {}) => this.request({
|
|
3058
|
+
path: `/orgs/${organizationId}/sites/${siteId}/structure/sort`,
|
|
3059
|
+
method: "PATCH",
|
|
3060
|
+
body: data,
|
|
3061
|
+
secure: true,
|
|
3062
|
+
type: "application/json" /* Json */,
|
|
3063
|
+
format: "json",
|
|
3064
|
+
...params
|
|
3065
|
+
}),
|
|
3015
3066
|
getSitePublishingAuthById: (organizationId, siteId, params = {}) => this.request({
|
|
3016
3067
|
path: `/orgs/${organizationId}/sites/${siteId}/publishing/auth`,
|
|
3017
3068
|
method: "GET",
|
|
@@ -3597,6 +3648,7 @@ export {
|
|
|
3597
3648
|
SiteAdsTopic,
|
|
3598
3649
|
SiteAgentsContext,
|
|
3599
3650
|
SiteCustomizationFeature,
|
|
3651
|
+
SiteFeatureKey,
|
|
3600
3652
|
SiteInsightsAdPlacement,
|
|
3601
3653
|
SiteInsightsEventType,
|
|
3602
3654
|
SiteInsightsLinkPosition,
|
|
@@ -3612,5 +3664,6 @@ export {
|
|
|
3612
3664
|
SpaceEditMode,
|
|
3613
3665
|
StorageUploadKind,
|
|
3614
3666
|
TeamMemberRole,
|
|
3667
|
+
TextAlignment,
|
|
3615
3668
|
TranslationLanguage
|
|
3616
3669
|
};
|