@gitbook/api 0.72.0 → 0.74.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 +28 -286
- package/dist/index.cjs +1 -86
- package/dist/index.js +1 -86
- package/package.json +1 -1
- package/spec/openapi.json +105 -1004
- package/spec/openapi.yaml +32 -571
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.74.0";
|
|
176
176
|
|
|
177
177
|
// src/client.ts
|
|
178
178
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -1095,14 +1095,6 @@ var Api = class extends HttpClient {
|
|
|
1095
1095
|
type: "application/json" /* Json */,
|
|
1096
1096
|
...params
|
|
1097
1097
|
}),
|
|
1098
|
-
syncGitRepository: (spaceId, data, params = {}) => this.request({
|
|
1099
|
-
path: `/spaces/${spaceId}/git/sync`,
|
|
1100
|
-
method: "POST",
|
|
1101
|
-
body: data,
|
|
1102
|
-
secure: true,
|
|
1103
|
-
type: "application/json" /* Json */,
|
|
1104
|
-
...params
|
|
1105
|
-
}),
|
|
1106
1098
|
getSpaceGitInfo: (spaceId, params = {}) => this.request({
|
|
1107
1099
|
path: `/spaces/${spaceId}/git/info`,
|
|
1108
1100
|
method: "GET",
|
|
@@ -1552,15 +1544,6 @@ var Api = class extends HttpClient {
|
|
|
1552
1544
|
format: "json",
|
|
1553
1545
|
...params
|
|
1554
1546
|
}),
|
|
1555
|
-
touchContentInChangeRequest: (spaceId, changeRequestId, data, params = {}) => this.request({
|
|
1556
|
-
path: `/spaces/${spaceId}/change-requests/${changeRequestId}/touched-content`,
|
|
1557
|
-
method: "POST",
|
|
1558
|
-
body: data,
|
|
1559
|
-
secure: true,
|
|
1560
|
-
type: "application/json" /* Json */,
|
|
1561
|
-
format: "json",
|
|
1562
|
-
...params
|
|
1563
|
-
}),
|
|
1564
1547
|
getChangeRequestPdf: (spaceId, changeRequestId, query, params = {}) => this.request({
|
|
1565
1548
|
path: `/spaces/${spaceId}/change-requests/${changeRequestId}/pdf`,
|
|
1566
1549
|
method: "GET",
|
|
@@ -1569,13 +1552,6 @@ var Api = class extends HttpClient {
|
|
|
1569
1552
|
format: "json",
|
|
1570
1553
|
...params
|
|
1571
1554
|
}),
|
|
1572
|
-
getSyncedBlockContentInChangeRequest: (spaceId, changeRequestId, syncedBlockId, params = {}) => this.request({
|
|
1573
|
-
path: `/spaces/${spaceId}/change-requests/${changeRequestId}/synced-blocks/${syncedBlockId}/content`,
|
|
1574
|
-
method: "GET",
|
|
1575
|
-
secure: true,
|
|
1576
|
-
format: "json",
|
|
1577
|
-
...params
|
|
1578
|
-
}),
|
|
1579
1555
|
getRevisionById: (spaceId, revisionId, query, params = {}) => this.request({
|
|
1580
1556
|
path: `/spaces/${spaceId}/revisions/${revisionId}`,
|
|
1581
1557
|
method: "GET",
|
|
@@ -2732,67 +2708,6 @@ var Api = class extends HttpClient {
|
|
|
2732
2708
|
format: "json",
|
|
2733
2709
|
...params
|
|
2734
2710
|
}),
|
|
2735
|
-
listSyncedBlocks: (organizationId, query, params = {}) => this.request({
|
|
2736
|
-
path: `/orgs/${organizationId}/synced-blocks`,
|
|
2737
|
-
method: "GET",
|
|
2738
|
-
query,
|
|
2739
|
-
secure: true,
|
|
2740
|
-
format: "json",
|
|
2741
|
-
...params
|
|
2742
|
-
}),
|
|
2743
|
-
createSyncedBlock: (organizationId, data, params = {}) => this.request({
|
|
2744
|
-
path: `/orgs/${organizationId}/synced-blocks`,
|
|
2745
|
-
method: "POST",
|
|
2746
|
-
body: data,
|
|
2747
|
-
secure: true,
|
|
2748
|
-
type: "application/json" /* Json */,
|
|
2749
|
-
format: "json",
|
|
2750
|
-
...params
|
|
2751
|
-
}),
|
|
2752
|
-
getSyncedBlock: (organizationId, syncedBlockId, params = {}) => this.request({
|
|
2753
|
-
path: `/orgs/${organizationId}/synced-blocks/${syncedBlockId}`,
|
|
2754
|
-
method: "GET",
|
|
2755
|
-
secure: true,
|
|
2756
|
-
format: "json",
|
|
2757
|
-
...params
|
|
2758
|
-
}),
|
|
2759
|
-
updateSyncedBlock: (organizationId, syncedBlockId, data, params = {}) => this.request({
|
|
2760
|
-
path: `/orgs/${organizationId}/synced-blocks/${syncedBlockId}`,
|
|
2761
|
-
method: "PATCH",
|
|
2762
|
-
body: data,
|
|
2763
|
-
secure: true,
|
|
2764
|
-
type: "application/json" /* Json */,
|
|
2765
|
-
...params
|
|
2766
|
-
}),
|
|
2767
|
-
deleteSyncedBlock: (organizationId, syncedBlockId, params = {}) => this.request({
|
|
2768
|
-
path: `/orgs/${organizationId}/synced-blocks/${syncedBlockId}`,
|
|
2769
|
-
method: "DELETE",
|
|
2770
|
-
secure: true,
|
|
2771
|
-
...params
|
|
2772
|
-
}),
|
|
2773
|
-
getSyncedBlockContent: (organizationId, syncedBlockId, params = {}) => this.request({
|
|
2774
|
-
path: `/orgs/${organizationId}/synced-blocks/${syncedBlockId}/content`,
|
|
2775
|
-
method: "GET",
|
|
2776
|
-
secure: true,
|
|
2777
|
-
format: "json",
|
|
2778
|
-
...params
|
|
2779
|
-
}),
|
|
2780
|
-
listSyncedBlockBacklinks: (organizationId, syncedBlockId, query, params = {}) => this.request({
|
|
2781
|
-
path: `/orgs/${organizationId}/synced-blocks/${syncedBlockId}/backlinks`,
|
|
2782
|
-
method: "GET",
|
|
2783
|
-
query,
|
|
2784
|
-
secure: true,
|
|
2785
|
-
format: "json",
|
|
2786
|
-
...params
|
|
2787
|
-
}),
|
|
2788
|
-
listSyncedBlockSpaces: (organizationId, syncedBlockId, query, params = {}) => this.request({
|
|
2789
|
-
path: `/orgs/${organizationId}/synced-blocks/${syncedBlockId}/usage/spaces`,
|
|
2790
|
-
method: "GET",
|
|
2791
|
-
query,
|
|
2792
|
-
secure: true,
|
|
2793
|
-
format: "json",
|
|
2794
|
-
...params
|
|
2795
|
-
}),
|
|
2796
2711
|
askInOrganization: (organizationId, data, query, params = {}) => this.request({
|
|
2797
2712
|
path: `/orgs/${organizationId}/ask`,
|
|
2798
2713
|
method: "POST",
|