@gitbook/api 0.47.0 → 0.48.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 +7 -7
- package/dist/index.cjs +8 -8
- package/dist/index.js +8 -8
- package/package.json +1 -1
- package/spec/openapi.json +4 -4
- package/spec/openapi.yaml +4 -4
package/dist/client.d.ts
CHANGED
|
@@ -8937,7 +8937,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8937
8937
|
* @tags sites
|
|
8938
8938
|
* @name AddSpaceToSite
|
|
8939
8939
|
* @summary Add a space to a site in an organization
|
|
8940
|
-
* @request POST:/orgs/{organizationId}/sites/{siteId}/spaces
|
|
8940
|
+
* @request POST:/orgs/{organizationId}/sites/{siteId}/site-spaces
|
|
8941
8941
|
* @secure
|
|
8942
8942
|
*/
|
|
8943
8943
|
addSpaceToSite: (organizationId: string, siteId: string, data: {
|
|
@@ -8950,7 +8950,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8950
8950
|
* @tags sites
|
|
8951
8951
|
* @name ListSiteSpaces
|
|
8952
8952
|
* @summary List all the site spaces under a site in an organization
|
|
8953
|
-
* @request GET:/orgs/{organizationId}/sites/{siteId}/spaces
|
|
8953
|
+
* @request GET:/orgs/{organizationId}/sites/{siteId}/site-spaces
|
|
8954
8954
|
* @secure
|
|
8955
8955
|
*/
|
|
8956
8956
|
listSiteSpaces: (organizationId: string, siteId: string, query?: {
|
|
@@ -8971,7 +8971,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8971
8971
|
* @tags sites
|
|
8972
8972
|
* @name UpdateSiteSpaceById
|
|
8973
8973
|
* @summary Update a space on a site in an organization
|
|
8974
|
-
* @request PATCH:/orgs/{organizationId}/sites/{siteId}/spaces/{siteSpaceId}
|
|
8974
|
+
* @request PATCH:/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}
|
|
8975
8975
|
* @secure
|
|
8976
8976
|
*/
|
|
8977
8977
|
updateSiteSpaceById: (organizationId: string, siteId: string, siteSpaceId: string, data: {
|
|
@@ -8984,7 +8984,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8984
8984
|
* @tags sites
|
|
8985
8985
|
* @name DeleteSiteSpaceById
|
|
8986
8986
|
* @summary Delete a space on a site in an organization
|
|
8987
|
-
* @request DELETE:/orgs/{organizationId}/sites/{siteId}/spaces/{siteSpaceId}
|
|
8987
|
+
* @request DELETE:/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}
|
|
8988
8988
|
* @secure
|
|
8989
8989
|
*/
|
|
8990
8990
|
deleteSiteSpaceById: (organizationId: string, siteId: string, siteSpaceId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
@@ -8994,7 +8994,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8994
8994
|
* @tags sites
|
|
8995
8995
|
* @name GetSiteSpaceCustomizationById
|
|
8996
8996
|
* @summary Get the customization configuration for a site space.
|
|
8997
|
-
* @request GET:/orgs/{organizationId}/sites/{siteId}/spaces/{siteSpaceId}/customization
|
|
8997
|
+
* @request GET:/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}/customization
|
|
8998
8998
|
* @secure
|
|
8999
8999
|
*/
|
|
9000
9000
|
getSiteSpaceCustomizationById: (organizationId: string, siteId: string, siteSpaceId: string, query?: {
|
|
@@ -9016,7 +9016,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
9016
9016
|
* @tags sites
|
|
9017
9017
|
* @name OverrideSiteSpaceCustomizationById
|
|
9018
9018
|
* @summary Override the customization configuration for a site space.
|
|
9019
|
-
* @request PATCH:/orgs/{organizationId}/sites/{siteId}/spaces/{siteSpaceId}/customization
|
|
9019
|
+
* @request PATCH:/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}/customization
|
|
9020
9020
|
* @secure
|
|
9021
9021
|
*/
|
|
9022
9022
|
overrideSiteSpaceCustomizationById: (organizationId: string, siteId: string, siteSpaceId: string, data: SiteSpaceCustomizationOverrides, params?: RequestParams) => Promise<HttpResponse<SiteCustomizationSettings, Error | {
|
|
@@ -9032,7 +9032,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
9032
9032
|
* @tags sites
|
|
9033
9033
|
* @name MoveSiteSpace
|
|
9034
9034
|
* @summary Move a site space to a new position in the site.
|
|
9035
|
-
* @request POST:/orgs/{organizationId}/sites/{siteId}/spaces/{siteSpaceId}/move
|
|
9035
|
+
* @request POST:/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}/move
|
|
9036
9036
|
* @secure
|
|
9037
9037
|
*/
|
|
9038
9038
|
moveSiteSpace: (organizationId: string, siteId: string, siteSpaceId: string, data: {
|
package/dist/index.cjs
CHANGED
|
@@ -238,7 +238,7 @@ module.exports = __toCommonJS(src_exports);
|
|
|
238
238
|
|
|
239
239
|
// package.json
|
|
240
240
|
var name = "@gitbook/api";
|
|
241
|
-
var version = "0.
|
|
241
|
+
var version = "0.48.0";
|
|
242
242
|
|
|
243
243
|
// src/client.ts
|
|
244
244
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -2964,7 +2964,7 @@ var Api = class extends HttpClient {
|
|
|
2964
2964
|
...params
|
|
2965
2965
|
}),
|
|
2966
2966
|
addSpaceToSite: (organizationId, siteId, data, params = {}) => this.request({
|
|
2967
|
-
path: `/orgs/${organizationId}/sites/${siteId}/spaces`,
|
|
2967
|
+
path: `/orgs/${organizationId}/sites/${siteId}/site-spaces`,
|
|
2968
2968
|
method: "POST",
|
|
2969
2969
|
body: data,
|
|
2970
2970
|
secure: true,
|
|
@@ -2973,7 +2973,7 @@ var Api = class extends HttpClient {
|
|
|
2973
2973
|
...params
|
|
2974
2974
|
}),
|
|
2975
2975
|
listSiteSpaces: (organizationId, siteId, query, params = {}) => this.request({
|
|
2976
|
-
path: `/orgs/${organizationId}/sites/${siteId}/spaces`,
|
|
2976
|
+
path: `/orgs/${organizationId}/sites/${siteId}/site-spaces`,
|
|
2977
2977
|
method: "GET",
|
|
2978
2978
|
query,
|
|
2979
2979
|
secure: true,
|
|
@@ -2981,7 +2981,7 @@ var Api = class extends HttpClient {
|
|
|
2981
2981
|
...params
|
|
2982
2982
|
}),
|
|
2983
2983
|
updateSiteSpaceById: (organizationId, siteId, siteSpaceId, data, params = {}) => this.request({
|
|
2984
|
-
path: `/orgs/${organizationId}/sites/${siteId}/spaces/${siteSpaceId}`,
|
|
2984
|
+
path: `/orgs/${organizationId}/sites/${siteId}/site-spaces/${siteSpaceId}`,
|
|
2985
2985
|
method: "PATCH",
|
|
2986
2986
|
body: data,
|
|
2987
2987
|
secure: true,
|
|
@@ -2990,13 +2990,13 @@ var Api = class extends HttpClient {
|
|
|
2990
2990
|
...params
|
|
2991
2991
|
}),
|
|
2992
2992
|
deleteSiteSpaceById: (organizationId, siteId, siteSpaceId, params = {}) => this.request({
|
|
2993
|
-
path: `/orgs/${organizationId}/sites/${siteId}/spaces/${siteSpaceId}`,
|
|
2993
|
+
path: `/orgs/${organizationId}/sites/${siteId}/site-spaces/${siteSpaceId}`,
|
|
2994
2994
|
method: "DELETE",
|
|
2995
2995
|
secure: true,
|
|
2996
2996
|
...params
|
|
2997
2997
|
}),
|
|
2998
2998
|
getSiteSpaceCustomizationById: (organizationId, siteId, siteSpaceId, query, params = {}) => this.request({
|
|
2999
|
-
path: `/orgs/${organizationId}/sites/${siteId}/spaces/${siteSpaceId}/customization`,
|
|
2999
|
+
path: `/orgs/${organizationId}/sites/${siteId}/site-spaces/${siteSpaceId}/customization`,
|
|
3000
3000
|
method: "GET",
|
|
3001
3001
|
query,
|
|
3002
3002
|
secure: true,
|
|
@@ -3004,7 +3004,7 @@ var Api = class extends HttpClient {
|
|
|
3004
3004
|
...params
|
|
3005
3005
|
}),
|
|
3006
3006
|
overrideSiteSpaceCustomizationById: (organizationId, siteId, siteSpaceId, data, params = {}) => this.request({
|
|
3007
|
-
path: `/orgs/${organizationId}/sites/${siteId}/spaces/${siteSpaceId}/customization`,
|
|
3007
|
+
path: `/orgs/${organizationId}/sites/${siteId}/site-spaces/${siteSpaceId}/customization`,
|
|
3008
3008
|
method: "PATCH",
|
|
3009
3009
|
body: data,
|
|
3010
3010
|
secure: true,
|
|
@@ -3013,7 +3013,7 @@ var Api = class extends HttpClient {
|
|
|
3013
3013
|
...params
|
|
3014
3014
|
}),
|
|
3015
3015
|
moveSiteSpace: (organizationId, siteId, siteSpaceId, data, params = {}) => this.request({
|
|
3016
|
-
path: `/orgs/${organizationId}/sites/${siteId}/spaces/${siteSpaceId}/move`,
|
|
3016
|
+
path: `/orgs/${organizationId}/sites/${siteId}/site-spaces/${siteSpaceId}/move`,
|
|
3017
3017
|
method: "POST",
|
|
3018
3018
|
body: data,
|
|
3019
3019
|
secure: true,
|
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.48.0";
|
|
176
176
|
|
|
177
177
|
// src/client.ts
|
|
178
178
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -2898,7 +2898,7 @@ var Api = class extends HttpClient {
|
|
|
2898
2898
|
...params
|
|
2899
2899
|
}),
|
|
2900
2900
|
addSpaceToSite: (organizationId, siteId, data, params = {}) => this.request({
|
|
2901
|
-
path: `/orgs/${organizationId}/sites/${siteId}/spaces`,
|
|
2901
|
+
path: `/orgs/${organizationId}/sites/${siteId}/site-spaces`,
|
|
2902
2902
|
method: "POST",
|
|
2903
2903
|
body: data,
|
|
2904
2904
|
secure: true,
|
|
@@ -2907,7 +2907,7 @@ var Api = class extends HttpClient {
|
|
|
2907
2907
|
...params
|
|
2908
2908
|
}),
|
|
2909
2909
|
listSiteSpaces: (organizationId, siteId, query, params = {}) => this.request({
|
|
2910
|
-
path: `/orgs/${organizationId}/sites/${siteId}/spaces`,
|
|
2910
|
+
path: `/orgs/${organizationId}/sites/${siteId}/site-spaces`,
|
|
2911
2911
|
method: "GET",
|
|
2912
2912
|
query,
|
|
2913
2913
|
secure: true,
|
|
@@ -2915,7 +2915,7 @@ var Api = class extends HttpClient {
|
|
|
2915
2915
|
...params
|
|
2916
2916
|
}),
|
|
2917
2917
|
updateSiteSpaceById: (organizationId, siteId, siteSpaceId, data, params = {}) => this.request({
|
|
2918
|
-
path: `/orgs/${organizationId}/sites/${siteId}/spaces/${siteSpaceId}`,
|
|
2918
|
+
path: `/orgs/${organizationId}/sites/${siteId}/site-spaces/${siteSpaceId}`,
|
|
2919
2919
|
method: "PATCH",
|
|
2920
2920
|
body: data,
|
|
2921
2921
|
secure: true,
|
|
@@ -2924,13 +2924,13 @@ var Api = class extends HttpClient {
|
|
|
2924
2924
|
...params
|
|
2925
2925
|
}),
|
|
2926
2926
|
deleteSiteSpaceById: (organizationId, siteId, siteSpaceId, params = {}) => this.request({
|
|
2927
|
-
path: `/orgs/${organizationId}/sites/${siteId}/spaces/${siteSpaceId}`,
|
|
2927
|
+
path: `/orgs/${organizationId}/sites/${siteId}/site-spaces/${siteSpaceId}`,
|
|
2928
2928
|
method: "DELETE",
|
|
2929
2929
|
secure: true,
|
|
2930
2930
|
...params
|
|
2931
2931
|
}),
|
|
2932
2932
|
getSiteSpaceCustomizationById: (organizationId, siteId, siteSpaceId, query, params = {}) => this.request({
|
|
2933
|
-
path: `/orgs/${organizationId}/sites/${siteId}/spaces/${siteSpaceId}/customization`,
|
|
2933
|
+
path: `/orgs/${organizationId}/sites/${siteId}/site-spaces/${siteSpaceId}/customization`,
|
|
2934
2934
|
method: "GET",
|
|
2935
2935
|
query,
|
|
2936
2936
|
secure: true,
|
|
@@ -2938,7 +2938,7 @@ var Api = class extends HttpClient {
|
|
|
2938
2938
|
...params
|
|
2939
2939
|
}),
|
|
2940
2940
|
overrideSiteSpaceCustomizationById: (organizationId, siteId, siteSpaceId, data, params = {}) => this.request({
|
|
2941
|
-
path: `/orgs/${organizationId}/sites/${siteId}/spaces/${siteSpaceId}/customization`,
|
|
2941
|
+
path: `/orgs/${organizationId}/sites/${siteId}/site-spaces/${siteSpaceId}/customization`,
|
|
2942
2942
|
method: "PATCH",
|
|
2943
2943
|
body: data,
|
|
2944
2944
|
secure: true,
|
|
@@ -2947,7 +2947,7 @@ var Api = class extends HttpClient {
|
|
|
2947
2947
|
...params
|
|
2948
2948
|
}),
|
|
2949
2949
|
moveSiteSpace: (organizationId, siteId, siteSpaceId, data, params = {}) => this.request({
|
|
2950
|
-
path: `/orgs/${organizationId}/sites/${siteId}/spaces/${siteSpaceId}/move`,
|
|
2950
|
+
path: `/orgs/${organizationId}/sites/${siteId}/site-spaces/${siteSpaceId}/move`,
|
|
2951
2951
|
method: "POST",
|
|
2952
2952
|
body: data,
|
|
2953
2953
|
secure: true,
|
package/package.json
CHANGED
package/spec/openapi.json
CHANGED
|
@@ -28985,7 +28985,7 @@
|
|
|
28985
28985
|
}
|
|
28986
28986
|
}
|
|
28987
28987
|
},
|
|
28988
|
-
"/orgs/{organizationId}/sites/{siteId}/spaces": {
|
|
28988
|
+
"/orgs/{organizationId}/sites/{siteId}/site-spaces": {
|
|
28989
28989
|
"post": {
|
|
28990
28990
|
"operationId": "addSpaceToSite",
|
|
28991
28991
|
"summary": "Add a space to a site in an organization",
|
|
@@ -29108,7 +29108,7 @@
|
|
|
29108
29108
|
}
|
|
29109
29109
|
}
|
|
29110
29110
|
},
|
|
29111
|
-
"/orgs/{organizationId}/sites/{siteId}/spaces/{siteSpaceId}": {
|
|
29111
|
+
"/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}": {
|
|
29112
29112
|
"patch": {
|
|
29113
29113
|
"operationId": "updateSiteSpaceById",
|
|
29114
29114
|
"summary": "Update a space on a site in an organization",
|
|
@@ -29194,7 +29194,7 @@
|
|
|
29194
29194
|
}
|
|
29195
29195
|
}
|
|
29196
29196
|
},
|
|
29197
|
-
"/orgs/{organizationId}/sites/{siteId}/spaces/{siteSpaceId}/customization": {
|
|
29197
|
+
"/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}/customization": {
|
|
29198
29198
|
"get": {
|
|
29199
29199
|
"operationId": "getSiteSpaceCustomizationById",
|
|
29200
29200
|
"summary": "Get the customization configuration for a site space.",
|
|
@@ -29292,7 +29292,7 @@
|
|
|
29292
29292
|
}
|
|
29293
29293
|
}
|
|
29294
29294
|
},
|
|
29295
|
-
"/orgs/{organizationId}/sites/{siteId}/spaces/{siteSpaceId}/move": {
|
|
29295
|
+
"/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}/move": {
|
|
29296
29296
|
"post": {
|
|
29297
29297
|
"operationId": "moveSiteSpace",
|
|
29298
29298
|
"summary": "Move a site space to a new position in the site.",
|
package/spec/openapi.yaml
CHANGED
|
@@ -17827,7 +17827,7 @@ paths:
|
|
|
17827
17827
|
$ref: "#/components/schemas/Integration"
|
|
17828
17828
|
default:
|
|
17829
17829
|
$ref: "#/components/responses/UnexpectedError"
|
|
17830
|
-
"/orgs/{organizationId}/sites/{siteId}/spaces":
|
|
17830
|
+
"/orgs/{organizationId}/sites/{siteId}/site-spaces":
|
|
17831
17831
|
post:
|
|
17832
17832
|
operationId: addSpaceToSite
|
|
17833
17833
|
summary: Add a space to a site in an organization
|
|
@@ -17894,7 +17894,7 @@ paths:
|
|
|
17894
17894
|
$ref: "#/components/schemas/SiteSpace"
|
|
17895
17895
|
default:
|
|
17896
17896
|
$ref: "#/components/responses/UnexpectedError"
|
|
17897
|
-
"/orgs/{organizationId}/sites/{siteId}/spaces/{siteSpaceId}":
|
|
17897
|
+
"/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}":
|
|
17898
17898
|
patch:
|
|
17899
17899
|
operationId: updateSiteSpaceById
|
|
17900
17900
|
summary: Update a space on a site in an organization
|
|
@@ -17940,7 +17940,7 @@ paths:
|
|
|
17940
17940
|
description: Site space has been deleted
|
|
17941
17941
|
default:
|
|
17942
17942
|
$ref: "#/components/responses/UnexpectedError"
|
|
17943
|
-
"/orgs/{organizationId}/sites/{siteId}/spaces/{siteSpaceId}/customization":
|
|
17943
|
+
"/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}/customization":
|
|
17944
17944
|
get:
|
|
17945
17945
|
operationId: getSiteSpaceCustomizationById
|
|
17946
17946
|
summary: Get the customization configuration for a site space.
|
|
@@ -17993,7 +17993,7 @@ paths:
|
|
|
17993
17993
|
$ref: "#/components/responses/BadRequestError"
|
|
17994
17994
|
default:
|
|
17995
17995
|
$ref: "#/components/responses/UnexpectedError"
|
|
17996
|
-
"/orgs/{organizationId}/sites/{siteId}/spaces/{siteSpaceId}/move":
|
|
17996
|
+
"/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}/move":
|
|
17997
17997
|
post:
|
|
17998
17998
|
operationId: moveSiteSpace
|
|
17999
17999
|
summary: Move a site space to a new position in the site.
|