@gitbook/api 0.109.0 → 0.111.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 +888 -792
- package/dist/index.cjs +28 -18
- package/dist/index.js +27 -18
- package/package.json +1 -1
- package/spec/openapi.json +1301 -1534
- package/spec/openapi.yaml +1213 -1192
package/dist/index.cjs
CHANGED
|
@@ -185,6 +185,7 @@ __export(src_exports, {
|
|
|
185
185
|
Api: () => Api,
|
|
186
186
|
BillingInterval: () => BillingInterval,
|
|
187
187
|
BillingProduct: () => BillingProduct,
|
|
188
|
+
BillingSwitchAction: () => BillingSwitchAction,
|
|
188
189
|
BillingTrialStatus: () => BillingTrialStatus,
|
|
189
190
|
ChangeRequestBrainstormActor: () => ChangeRequestBrainstormActor,
|
|
190
191
|
ChangeRequestBrainstormPlanStatus: () => ChangeRequestBrainstormPlanStatus,
|
|
@@ -268,7 +269,7 @@ module.exports = __toCommonJS(src_exports);
|
|
|
268
269
|
|
|
269
270
|
// package.json
|
|
270
271
|
var name = "@gitbook/api";
|
|
271
|
-
var version = "0.
|
|
272
|
+
var version = "0.111.0";
|
|
272
273
|
|
|
273
274
|
// src/client.ts
|
|
274
275
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -460,7 +461,6 @@ var ImportContentSource = /* @__PURE__ */ ((ImportContentSource2) => {
|
|
|
460
461
|
ImportContentSource2["Notion"] = "notion";
|
|
461
462
|
ImportContentSource2["Quip"] = "quip";
|
|
462
463
|
ImportContentSource2["GoogleDocs"] = "google-docs";
|
|
463
|
-
ImportContentSource2["OpenApi"] = "open-api";
|
|
464
464
|
return ImportContentSource2;
|
|
465
465
|
})(ImportContentSource || {});
|
|
466
466
|
var OrganizationType = /* @__PURE__ */ ((OrganizationType2) => {
|
|
@@ -711,6 +711,15 @@ var TeamMemberRole = /* @__PURE__ */ ((TeamMemberRole2) => {
|
|
|
711
711
|
TeamMemberRole2["Member"] = "member";
|
|
712
712
|
return TeamMemberRole2;
|
|
713
713
|
})(TeamMemberRole || {});
|
|
714
|
+
var BillingSwitchAction = /* @__PURE__ */ ((BillingSwitchAction2) => {
|
|
715
|
+
BillingSwitchAction2["Trial"] = "trial";
|
|
716
|
+
BillingSwitchAction2["Upgrade"] = "upgrade";
|
|
717
|
+
BillingSwitchAction2["UpgradePassive"] = "upgrade_passive";
|
|
718
|
+
BillingSwitchAction2["Downgrade"] = "downgrade";
|
|
719
|
+
BillingSwitchAction2["UndoCancel"] = "undo_cancel";
|
|
720
|
+
BillingSwitchAction2["SwitchInterval"] = "switch_interval";
|
|
721
|
+
return BillingSwitchAction2;
|
|
722
|
+
})(BillingSwitchAction || {});
|
|
714
723
|
var StorageUploadKind = /* @__PURE__ */ ((StorageUploadKind2) => {
|
|
715
724
|
StorageUploadKind2["CustomizationFont"] = "customization_font";
|
|
716
725
|
return StorageUploadKind2;
|
|
@@ -1794,22 +1803,6 @@ var Api = class extends HttpClient {
|
|
|
1794
1803
|
format: "json",
|
|
1795
1804
|
...params
|
|
1796
1805
|
}),
|
|
1797
|
-
streamBrainstormChangeRequest: (spaceId, changeRequestId, data, params = {}) => this.streamRequest({
|
|
1798
|
-
path: `/spaces/${spaceId}/change-requests/${changeRequestId}/task/brainstorm`,
|
|
1799
|
-
method: "POST",
|
|
1800
|
-
body: data,
|
|
1801
|
-
secure: true,
|
|
1802
|
-
type: "application/json" /* Json */,
|
|
1803
|
-
...params
|
|
1804
|
-
}),
|
|
1805
|
-
streamImplementChangeRequestTask: (spaceId, changeRequestId, data, params = {}) => this.streamRequest({
|
|
1806
|
-
path: `/spaces/${spaceId}/change-requests/${changeRequestId}/task/implement`,
|
|
1807
|
-
method: "POST",
|
|
1808
|
-
body: data,
|
|
1809
|
-
secure: true,
|
|
1810
|
-
type: "application/json" /* Json */,
|
|
1811
|
-
...params
|
|
1812
|
-
}),
|
|
1813
1806
|
getRevisionById: (spaceId, revisionId, query, params = {}) => this.request({
|
|
1814
1807
|
path: `/spaces/${spaceId}/revisions/${revisionId}`,
|
|
1815
1808
|
method: "GET",
|
|
@@ -2977,6 +2970,22 @@ var Api = class extends HttpClient {
|
|
|
2977
2970
|
secure: true,
|
|
2978
2971
|
...params
|
|
2979
2972
|
}),
|
|
2973
|
+
getSiteAdaptiveSchema: (organizationId, siteId, params = {}) => this.request({
|
|
2974
|
+
path: `/orgs/${organizationId}/sites/${siteId}/adaptive-schema`,
|
|
2975
|
+
method: "GET",
|
|
2976
|
+
secure: true,
|
|
2977
|
+
format: "json",
|
|
2978
|
+
...params
|
|
2979
|
+
}),
|
|
2980
|
+
createOrUpdateSiteAdaptiveSchema: (organizationId, siteId, data, params = {}) => this.request({
|
|
2981
|
+
path: `/orgs/${organizationId}/sites/${siteId}/adaptive-schema`,
|
|
2982
|
+
method: "PUT",
|
|
2983
|
+
body: data,
|
|
2984
|
+
secure: true,
|
|
2985
|
+
type: "application/json" /* Json */,
|
|
2986
|
+
format: "json",
|
|
2987
|
+
...params
|
|
2988
|
+
}),
|
|
2980
2989
|
getPublishedContentSite: (organizationId, siteId, query, params = {}) => this.request({
|
|
2981
2990
|
path: `/orgs/${organizationId}/sites/${siteId}/published`,
|
|
2982
2991
|
method: "GET",
|
|
@@ -3552,6 +3561,7 @@ var GitBookAPI = class extends Api {
|
|
|
3552
3561
|
Api,
|
|
3553
3562
|
BillingInterval,
|
|
3554
3563
|
BillingProduct,
|
|
3564
|
+
BillingSwitchAction,
|
|
3555
3565
|
BillingTrialStatus,
|
|
3556
3566
|
ChangeRequestBrainstormActor,
|
|
3557
3567
|
ChangeRequestBrainstormPlanStatus,
|
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.111.0";
|
|
176
176
|
|
|
177
177
|
// src/client.ts
|
|
178
178
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -364,7 +364,6 @@ var ImportContentSource = /* @__PURE__ */ ((ImportContentSource2) => {
|
|
|
364
364
|
ImportContentSource2["Notion"] = "notion";
|
|
365
365
|
ImportContentSource2["Quip"] = "quip";
|
|
366
366
|
ImportContentSource2["GoogleDocs"] = "google-docs";
|
|
367
|
-
ImportContentSource2["OpenApi"] = "open-api";
|
|
368
367
|
return ImportContentSource2;
|
|
369
368
|
})(ImportContentSource || {});
|
|
370
369
|
var OrganizationType = /* @__PURE__ */ ((OrganizationType2) => {
|
|
@@ -615,6 +614,15 @@ var TeamMemberRole = /* @__PURE__ */ ((TeamMemberRole2) => {
|
|
|
615
614
|
TeamMemberRole2["Member"] = "member";
|
|
616
615
|
return TeamMemberRole2;
|
|
617
616
|
})(TeamMemberRole || {});
|
|
617
|
+
var BillingSwitchAction = /* @__PURE__ */ ((BillingSwitchAction2) => {
|
|
618
|
+
BillingSwitchAction2["Trial"] = "trial";
|
|
619
|
+
BillingSwitchAction2["Upgrade"] = "upgrade";
|
|
620
|
+
BillingSwitchAction2["UpgradePassive"] = "upgrade_passive";
|
|
621
|
+
BillingSwitchAction2["Downgrade"] = "downgrade";
|
|
622
|
+
BillingSwitchAction2["UndoCancel"] = "undo_cancel";
|
|
623
|
+
BillingSwitchAction2["SwitchInterval"] = "switch_interval";
|
|
624
|
+
return BillingSwitchAction2;
|
|
625
|
+
})(BillingSwitchAction || {});
|
|
618
626
|
var StorageUploadKind = /* @__PURE__ */ ((StorageUploadKind2) => {
|
|
619
627
|
StorageUploadKind2["CustomizationFont"] = "customization_font";
|
|
620
628
|
return StorageUploadKind2;
|
|
@@ -1698,22 +1706,6 @@ var Api = class extends HttpClient {
|
|
|
1698
1706
|
format: "json",
|
|
1699
1707
|
...params
|
|
1700
1708
|
}),
|
|
1701
|
-
streamBrainstormChangeRequest: (spaceId, changeRequestId, data, params = {}) => this.streamRequest({
|
|
1702
|
-
path: `/spaces/${spaceId}/change-requests/${changeRequestId}/task/brainstorm`,
|
|
1703
|
-
method: "POST",
|
|
1704
|
-
body: data,
|
|
1705
|
-
secure: true,
|
|
1706
|
-
type: "application/json" /* Json */,
|
|
1707
|
-
...params
|
|
1708
|
-
}),
|
|
1709
|
-
streamImplementChangeRequestTask: (spaceId, changeRequestId, data, params = {}) => this.streamRequest({
|
|
1710
|
-
path: `/spaces/${spaceId}/change-requests/${changeRequestId}/task/implement`,
|
|
1711
|
-
method: "POST",
|
|
1712
|
-
body: data,
|
|
1713
|
-
secure: true,
|
|
1714
|
-
type: "application/json" /* Json */,
|
|
1715
|
-
...params
|
|
1716
|
-
}),
|
|
1717
1709
|
getRevisionById: (spaceId, revisionId, query, params = {}) => this.request({
|
|
1718
1710
|
path: `/spaces/${spaceId}/revisions/${revisionId}`,
|
|
1719
1711
|
method: "GET",
|
|
@@ -2881,6 +2873,22 @@ var Api = class extends HttpClient {
|
|
|
2881
2873
|
secure: true,
|
|
2882
2874
|
...params
|
|
2883
2875
|
}),
|
|
2876
|
+
getSiteAdaptiveSchema: (organizationId, siteId, params = {}) => this.request({
|
|
2877
|
+
path: `/orgs/${organizationId}/sites/${siteId}/adaptive-schema`,
|
|
2878
|
+
method: "GET",
|
|
2879
|
+
secure: true,
|
|
2880
|
+
format: "json",
|
|
2881
|
+
...params
|
|
2882
|
+
}),
|
|
2883
|
+
createOrUpdateSiteAdaptiveSchema: (organizationId, siteId, data, params = {}) => this.request({
|
|
2884
|
+
path: `/orgs/${organizationId}/sites/${siteId}/adaptive-schema`,
|
|
2885
|
+
method: "PUT",
|
|
2886
|
+
body: data,
|
|
2887
|
+
secure: true,
|
|
2888
|
+
type: "application/json" /* Json */,
|
|
2889
|
+
format: "json",
|
|
2890
|
+
...params
|
|
2891
|
+
}),
|
|
2884
2892
|
getPublishedContentSite: (organizationId, siteId, query, params = {}) => this.request({
|
|
2885
2893
|
path: `/orgs/${organizationId}/sites/${siteId}/published`,
|
|
2886
2894
|
method: "GET",
|
|
@@ -3455,6 +3463,7 @@ export {
|
|
|
3455
3463
|
Api,
|
|
3456
3464
|
BillingInterval,
|
|
3457
3465
|
BillingProduct,
|
|
3466
|
+
BillingSwitchAction,
|
|
3458
3467
|
BillingTrialStatus,
|
|
3459
3468
|
ChangeRequestBrainstormActor,
|
|
3460
3469
|
ChangeRequestBrainstormPlanStatus,
|