@gitbook/api 0.76.0 → 0.78.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 +191 -172
- package/dist/index.cjs +41 -65
- package/dist/index.js +41 -65
- package/package.json +1 -1
- package/spec/openapi.json +746 -661
- package/spec/openapi.yaml +358 -281
package/dist/index.cjs
CHANGED
|
@@ -244,7 +244,7 @@ module.exports = __toCommonJS(src_exports);
|
|
|
244
244
|
|
|
245
245
|
// package.json
|
|
246
246
|
var name = "@gitbook/api";
|
|
247
|
-
var version = "0.
|
|
247
|
+
var version = "0.78.0";
|
|
248
248
|
|
|
249
249
|
// src/client.ts
|
|
250
250
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -1871,30 +1871,6 @@ var Api = class extends HttpClient {
|
|
|
1871
1871
|
format: "json",
|
|
1872
1872
|
...params
|
|
1873
1873
|
}),
|
|
1874
|
-
createSpaceShareLink: (spaceId, data, params = {}) => this.request({
|
|
1875
|
-
path: `/spaces/${spaceId}/share-links`,
|
|
1876
|
-
method: "POST",
|
|
1877
|
-
body: data,
|
|
1878
|
-
secure: true,
|
|
1879
|
-
type: "application/json" /* Json */,
|
|
1880
|
-
format: "json",
|
|
1881
|
-
...params
|
|
1882
|
-
}),
|
|
1883
|
-
updateSpaceShareLinkById: (spaceId, shareLinkId, data, params = {}) => this.request({
|
|
1884
|
-
path: `/spaces/${spaceId}/share-links/${shareLinkId}`,
|
|
1885
|
-
method: "PATCH",
|
|
1886
|
-
body: data,
|
|
1887
|
-
secure: true,
|
|
1888
|
-
type: "application/json" /* Json */,
|
|
1889
|
-
format: "json",
|
|
1890
|
-
...params
|
|
1891
|
-
}),
|
|
1892
|
-
deleteSpaceShareLinkById: (spaceId, shareLinkId, params = {}) => this.request({
|
|
1893
|
-
path: `/spaces/${spaceId}/share-links/${shareLinkId}`,
|
|
1894
|
-
method: "DELETE",
|
|
1895
|
-
secure: true,
|
|
1896
|
-
...params
|
|
1897
|
-
}),
|
|
1898
1874
|
listSpaceLinks: (spaceId, query, params = {}) => this.request({
|
|
1899
1875
|
path: `/spaces/${spaceId}/links`,
|
|
1900
1876
|
method: "GET",
|
|
@@ -1960,46 +1936,6 @@ var Api = class extends HttpClient {
|
|
|
1960
1936
|
secure: true,
|
|
1961
1937
|
format: "json",
|
|
1962
1938
|
...params
|
|
1963
|
-
}),
|
|
1964
|
-
getCollectionPublishingCustomizationById: (collectionId, params = {}) => this.request({
|
|
1965
|
-
path: `/collections/${collectionId}/publishing/customization`,
|
|
1966
|
-
method: "GET",
|
|
1967
|
-
secure: true,
|
|
1968
|
-
format: "json",
|
|
1969
|
-
...params
|
|
1970
|
-
}),
|
|
1971
|
-
updateCollectionPublishingCustomizationById: (collectionId, data, params = {}) => this.request({
|
|
1972
|
-
path: `/collections/${collectionId}/publishing/customization`,
|
|
1973
|
-
method: "PUT",
|
|
1974
|
-
body: data,
|
|
1975
|
-
secure: true,
|
|
1976
|
-
type: "application/json" /* Json */,
|
|
1977
|
-
format: "json",
|
|
1978
|
-
...params
|
|
1979
|
-
}),
|
|
1980
|
-
createCollectionShareLink: (collectionId, data, params = {}) => this.request({
|
|
1981
|
-
path: `/collections/${collectionId}/share-links`,
|
|
1982
|
-
method: "POST",
|
|
1983
|
-
body: data,
|
|
1984
|
-
secure: true,
|
|
1985
|
-
type: "application/json" /* Json */,
|
|
1986
|
-
format: "json",
|
|
1987
|
-
...params
|
|
1988
|
-
}),
|
|
1989
|
-
updateCollectionShareLinkById: (collectionId, shareLinkId, data, params = {}) => this.request({
|
|
1990
|
-
path: `/collections/${collectionId}/share-links/${shareLinkId}`,
|
|
1991
|
-
method: "PATCH",
|
|
1992
|
-
body: data,
|
|
1993
|
-
secure: true,
|
|
1994
|
-
type: "application/json" /* Json */,
|
|
1995
|
-
format: "json",
|
|
1996
|
-
...params
|
|
1997
|
-
}),
|
|
1998
|
-
deleteCollectionShareLinkById: (collectionId, shareLinkId, params = {}) => this.request({
|
|
1999
|
-
path: `/collections/${collectionId}/share-links/${shareLinkId}`,
|
|
2000
|
-
method: "DELETE",
|
|
2001
|
-
secure: true,
|
|
2002
|
-
...params
|
|
2003
1939
|
})
|
|
2004
1940
|
};
|
|
2005
1941
|
integrations = {
|
|
@@ -3210,6 +3146,46 @@ var Api = class extends HttpClient {
|
|
|
3210
3146
|
secure: true,
|
|
3211
3147
|
type: "application/json" /* Json */,
|
|
3212
3148
|
...params
|
|
3149
|
+
}),
|
|
3150
|
+
createSiteRedirect: (organizationId, siteId, data, params = {}) => this.request({
|
|
3151
|
+
path: `/orgs/${organizationId}/sites/${siteId}/redirects`,
|
|
3152
|
+
method: "POST",
|
|
3153
|
+
body: data,
|
|
3154
|
+
secure: true,
|
|
3155
|
+
type: "application/json" /* Json */,
|
|
3156
|
+
format: "json",
|
|
3157
|
+
...params
|
|
3158
|
+
}),
|
|
3159
|
+
listSiteRedirects: (organizationId, siteId, query, params = {}) => this.request({
|
|
3160
|
+
path: `/orgs/${organizationId}/sites/${siteId}/redirects`,
|
|
3161
|
+
method: "GET",
|
|
3162
|
+
query,
|
|
3163
|
+
secure: true,
|
|
3164
|
+
format: "json",
|
|
3165
|
+
...params
|
|
3166
|
+
}),
|
|
3167
|
+
updateSiteRedirectById: (organizationId, siteId, siteRedirectId, data, params = {}) => this.request({
|
|
3168
|
+
path: `/orgs/${organizationId}/sites/${siteId}/redirects/${siteRedirectId}`,
|
|
3169
|
+
method: "PATCH",
|
|
3170
|
+
body: data,
|
|
3171
|
+
secure: true,
|
|
3172
|
+
type: "application/json" /* Json */,
|
|
3173
|
+
format: "json",
|
|
3174
|
+
...params
|
|
3175
|
+
}),
|
|
3176
|
+
deleteSiteRedirectById: (organizationId, siteId, siteRedirectId, params = {}) => this.request({
|
|
3177
|
+
path: `/orgs/${organizationId}/sites/${siteId}/redirects/${siteRedirectId}`,
|
|
3178
|
+
method: "DELETE",
|
|
3179
|
+
secure: true,
|
|
3180
|
+
...params
|
|
3181
|
+
}),
|
|
3182
|
+
getSiteRedirectBySource: (organizationId, siteId, query, params = {}) => this.request({
|
|
3183
|
+
path: `/orgs/${organizationId}/sites/${siteId}/redirect`,
|
|
3184
|
+
method: "GET",
|
|
3185
|
+
query,
|
|
3186
|
+
secure: true,
|
|
3187
|
+
format: "json",
|
|
3188
|
+
...params
|
|
3213
3189
|
})
|
|
3214
3190
|
};
|
|
3215
3191
|
customHostnames = {
|
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.78.0";
|
|
176
176
|
|
|
177
177
|
// src/client.ts
|
|
178
178
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -1799,30 +1799,6 @@ var Api = class extends HttpClient {
|
|
|
1799
1799
|
format: "json",
|
|
1800
1800
|
...params
|
|
1801
1801
|
}),
|
|
1802
|
-
createSpaceShareLink: (spaceId, data, params = {}) => this.request({
|
|
1803
|
-
path: `/spaces/${spaceId}/share-links`,
|
|
1804
|
-
method: "POST",
|
|
1805
|
-
body: data,
|
|
1806
|
-
secure: true,
|
|
1807
|
-
type: "application/json" /* Json */,
|
|
1808
|
-
format: "json",
|
|
1809
|
-
...params
|
|
1810
|
-
}),
|
|
1811
|
-
updateSpaceShareLinkById: (spaceId, shareLinkId, data, params = {}) => this.request({
|
|
1812
|
-
path: `/spaces/${spaceId}/share-links/${shareLinkId}`,
|
|
1813
|
-
method: "PATCH",
|
|
1814
|
-
body: data,
|
|
1815
|
-
secure: true,
|
|
1816
|
-
type: "application/json" /* Json */,
|
|
1817
|
-
format: "json",
|
|
1818
|
-
...params
|
|
1819
|
-
}),
|
|
1820
|
-
deleteSpaceShareLinkById: (spaceId, shareLinkId, params = {}) => this.request({
|
|
1821
|
-
path: `/spaces/${spaceId}/share-links/${shareLinkId}`,
|
|
1822
|
-
method: "DELETE",
|
|
1823
|
-
secure: true,
|
|
1824
|
-
...params
|
|
1825
|
-
}),
|
|
1826
1802
|
listSpaceLinks: (spaceId, query, params = {}) => this.request({
|
|
1827
1803
|
path: `/spaces/${spaceId}/links`,
|
|
1828
1804
|
method: "GET",
|
|
@@ -1888,46 +1864,6 @@ var Api = class extends HttpClient {
|
|
|
1888
1864
|
secure: true,
|
|
1889
1865
|
format: "json",
|
|
1890
1866
|
...params
|
|
1891
|
-
}),
|
|
1892
|
-
getCollectionPublishingCustomizationById: (collectionId, params = {}) => this.request({
|
|
1893
|
-
path: `/collections/${collectionId}/publishing/customization`,
|
|
1894
|
-
method: "GET",
|
|
1895
|
-
secure: true,
|
|
1896
|
-
format: "json",
|
|
1897
|
-
...params
|
|
1898
|
-
}),
|
|
1899
|
-
updateCollectionPublishingCustomizationById: (collectionId, data, params = {}) => this.request({
|
|
1900
|
-
path: `/collections/${collectionId}/publishing/customization`,
|
|
1901
|
-
method: "PUT",
|
|
1902
|
-
body: data,
|
|
1903
|
-
secure: true,
|
|
1904
|
-
type: "application/json" /* Json */,
|
|
1905
|
-
format: "json",
|
|
1906
|
-
...params
|
|
1907
|
-
}),
|
|
1908
|
-
createCollectionShareLink: (collectionId, data, params = {}) => this.request({
|
|
1909
|
-
path: `/collections/${collectionId}/share-links`,
|
|
1910
|
-
method: "POST",
|
|
1911
|
-
body: data,
|
|
1912
|
-
secure: true,
|
|
1913
|
-
type: "application/json" /* Json */,
|
|
1914
|
-
format: "json",
|
|
1915
|
-
...params
|
|
1916
|
-
}),
|
|
1917
|
-
updateCollectionShareLinkById: (collectionId, shareLinkId, data, params = {}) => this.request({
|
|
1918
|
-
path: `/collections/${collectionId}/share-links/${shareLinkId}`,
|
|
1919
|
-
method: "PATCH",
|
|
1920
|
-
body: data,
|
|
1921
|
-
secure: true,
|
|
1922
|
-
type: "application/json" /* Json */,
|
|
1923
|
-
format: "json",
|
|
1924
|
-
...params
|
|
1925
|
-
}),
|
|
1926
|
-
deleteCollectionShareLinkById: (collectionId, shareLinkId, params = {}) => this.request({
|
|
1927
|
-
path: `/collections/${collectionId}/share-links/${shareLinkId}`,
|
|
1928
|
-
method: "DELETE",
|
|
1929
|
-
secure: true,
|
|
1930
|
-
...params
|
|
1931
1867
|
})
|
|
1932
1868
|
};
|
|
1933
1869
|
integrations = {
|
|
@@ -3138,6 +3074,46 @@ var Api = class extends HttpClient {
|
|
|
3138
3074
|
secure: true,
|
|
3139
3075
|
type: "application/json" /* Json */,
|
|
3140
3076
|
...params
|
|
3077
|
+
}),
|
|
3078
|
+
createSiteRedirect: (organizationId, siteId, data, params = {}) => this.request({
|
|
3079
|
+
path: `/orgs/${organizationId}/sites/${siteId}/redirects`,
|
|
3080
|
+
method: "POST",
|
|
3081
|
+
body: data,
|
|
3082
|
+
secure: true,
|
|
3083
|
+
type: "application/json" /* Json */,
|
|
3084
|
+
format: "json",
|
|
3085
|
+
...params
|
|
3086
|
+
}),
|
|
3087
|
+
listSiteRedirects: (organizationId, siteId, query, params = {}) => this.request({
|
|
3088
|
+
path: `/orgs/${organizationId}/sites/${siteId}/redirects`,
|
|
3089
|
+
method: "GET",
|
|
3090
|
+
query,
|
|
3091
|
+
secure: true,
|
|
3092
|
+
format: "json",
|
|
3093
|
+
...params
|
|
3094
|
+
}),
|
|
3095
|
+
updateSiteRedirectById: (organizationId, siteId, siteRedirectId, data, params = {}) => this.request({
|
|
3096
|
+
path: `/orgs/${organizationId}/sites/${siteId}/redirects/${siteRedirectId}`,
|
|
3097
|
+
method: "PATCH",
|
|
3098
|
+
body: data,
|
|
3099
|
+
secure: true,
|
|
3100
|
+
type: "application/json" /* Json */,
|
|
3101
|
+
format: "json",
|
|
3102
|
+
...params
|
|
3103
|
+
}),
|
|
3104
|
+
deleteSiteRedirectById: (organizationId, siteId, siteRedirectId, params = {}) => this.request({
|
|
3105
|
+
path: `/orgs/${organizationId}/sites/${siteId}/redirects/${siteRedirectId}`,
|
|
3106
|
+
method: "DELETE",
|
|
3107
|
+
secure: true,
|
|
3108
|
+
...params
|
|
3109
|
+
}),
|
|
3110
|
+
getSiteRedirectBySource: (organizationId, siteId, query, params = {}) => this.request({
|
|
3111
|
+
path: `/orgs/${organizationId}/sites/${siteId}/redirect`,
|
|
3112
|
+
method: "GET",
|
|
3113
|
+
query,
|
|
3114
|
+
secure: true,
|
|
3115
|
+
format: "json",
|
|
3116
|
+
...params
|
|
3141
3117
|
})
|
|
3142
3118
|
};
|
|
3143
3119
|
customHostnames = {
|