@gitbook/api 0.57.0 → 0.58.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 +8 -2
- package/dist/index.cjs +3 -2
- package/dist/index.js +3 -2
- package/package.json +1 -1
- package/spec/openapi.json +28 -9
- package/spec/openapi.yaml +16 -7
package/dist/client.d.ts
CHANGED
|
@@ -4849,7 +4849,10 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4849
4849
|
* @request GET:/spaces/{spaceId}
|
|
4850
4850
|
* @secure
|
|
4851
4851
|
*/
|
|
4852
|
-
getSpaceById: (spaceId: string,
|
|
4852
|
+
getSpaceById: (spaceId: string, query?: {
|
|
4853
|
+
/** For sites published via share-links, the share key is useful to resolve published URLs. */
|
|
4854
|
+
shareKey?: string;
|
|
4855
|
+
}, params?: RequestParams) => Promise<HttpResponse<Space, Error>>;
|
|
4853
4856
|
/**
|
|
4854
4857
|
* No description
|
|
4855
4858
|
*
|
|
@@ -9043,7 +9046,10 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
9043
9046
|
* @request GET:/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}/customization/raw
|
|
9044
9047
|
* @secure
|
|
9045
9048
|
*/
|
|
9046
|
-
getSiteSpaceRawCustomizationById: (organizationId: string, siteId: string, siteSpaceId: string, params?: RequestParams) => Promise<HttpResponse<SiteCustomizationSettings
|
|
9049
|
+
getSiteSpaceRawCustomizationById: (organizationId: string, siteId: string, siteSpaceId: string, params?: RequestParams) => Promise<HttpResponse<SiteCustomizationSettings & {
|
|
9050
|
+
/** Indicates whether the site customization settings have been overridden. */
|
|
9051
|
+
hasOverrides: boolean;
|
|
9052
|
+
}, Error | {
|
|
9047
9053
|
error: {
|
|
9048
9054
|
/** @format int32 */
|
|
9049
9055
|
code: 400;
|
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.58.0";
|
|
242
242
|
|
|
243
243
|
// src/client.ts
|
|
244
244
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -1009,9 +1009,10 @@ var Api = class extends HttpClient {
|
|
|
1009
1009
|
})
|
|
1010
1010
|
};
|
|
1011
1011
|
this.spaces = {
|
|
1012
|
-
getSpaceById: (spaceId, params = {}) => this.request({
|
|
1012
|
+
getSpaceById: (spaceId, query, params = {}) => this.request({
|
|
1013
1013
|
path: `/spaces/${spaceId}`,
|
|
1014
1014
|
method: "GET",
|
|
1015
|
+
query,
|
|
1015
1016
|
secure: true,
|
|
1016
1017
|
format: "json",
|
|
1017
1018
|
...params
|
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.58.0";
|
|
176
176
|
|
|
177
177
|
// src/client.ts
|
|
178
178
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -943,9 +943,10 @@ var Api = class extends HttpClient {
|
|
|
943
943
|
})
|
|
944
944
|
};
|
|
945
945
|
this.spaces = {
|
|
946
|
-
getSpaceById: (spaceId, params = {}) => this.request({
|
|
946
|
+
getSpaceById: (spaceId, query, params = {}) => this.request({
|
|
947
947
|
path: `/spaces/${spaceId}`,
|
|
948
948
|
method: "GET",
|
|
949
|
+
query,
|
|
949
950
|
secure: true,
|
|
950
951
|
format: "json",
|
|
951
952
|
...params
|
package/package.json
CHANGED
package/spec/openapi.json
CHANGED
|
@@ -364,6 +364,9 @@
|
|
|
364
364
|
"parameters": [
|
|
365
365
|
{
|
|
366
366
|
"$ref": "#/components/parameters/spaceId"
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
"$ref": "#/components/parameters/siteShareKey"
|
|
367
370
|
}
|
|
368
371
|
],
|
|
369
372
|
"responses": {
|
|
@@ -13216,7 +13219,23 @@
|
|
|
13216
13219
|
"content": {
|
|
13217
13220
|
"application/json": {
|
|
13218
13221
|
"schema": {
|
|
13219
|
-
"
|
|
13222
|
+
"allOf": [
|
|
13223
|
+
{
|
|
13224
|
+
"$ref": "#/components/schemas/SiteCustomizationSettings"
|
|
13225
|
+
},
|
|
13226
|
+
{
|
|
13227
|
+
"type": "object",
|
|
13228
|
+
"properties": {
|
|
13229
|
+
"hasOverrides": {
|
|
13230
|
+
"type": "boolean",
|
|
13231
|
+
"description": "Indicates whether the site customization settings have been overridden."
|
|
13232
|
+
}
|
|
13233
|
+
},
|
|
13234
|
+
"required": [
|
|
13235
|
+
"hasOverrides"
|
|
13236
|
+
]
|
|
13237
|
+
}
|
|
13238
|
+
]
|
|
13220
13239
|
}
|
|
13221
13240
|
}
|
|
13222
13241
|
}
|
|
@@ -13974,6 +13993,14 @@
|
|
|
13974
13993
|
"type": "string"
|
|
13975
13994
|
}
|
|
13976
13995
|
},
|
|
13996
|
+
"siteShareKey": {
|
|
13997
|
+
"name": "shareKey",
|
|
13998
|
+
"in": "query",
|
|
13999
|
+
"description": "For sites published via share-links, the share key is useful to resolve published URLs.",
|
|
14000
|
+
"schema": {
|
|
14001
|
+
"type": "string"
|
|
14002
|
+
}
|
|
14003
|
+
},
|
|
13977
14004
|
"revisionMetadata": {
|
|
13978
14005
|
"name": "metadata",
|
|
13979
14006
|
"in": "query",
|
|
@@ -14248,14 +14275,6 @@
|
|
|
14248
14275
|
"default": false
|
|
14249
14276
|
}
|
|
14250
14277
|
},
|
|
14251
|
-
"siteShareKey": {
|
|
14252
|
-
"name": "shareKey",
|
|
14253
|
-
"in": "query",
|
|
14254
|
-
"description": "For sites published via share-links, the share key is useful to resolve published URLs.",
|
|
14255
|
-
"schema": {
|
|
14256
|
-
"type": "string"
|
|
14257
|
-
}
|
|
14258
|
-
},
|
|
14259
14278
|
"siteSpaceId": {
|
|
14260
14279
|
"name": "siteSpaceId",
|
|
14261
14280
|
"in": "path",
|
package/spec/openapi.yaml
CHANGED
|
@@ -214,6 +214,7 @@ paths:
|
|
|
214
214
|
- user: []
|
|
215
215
|
parameters:
|
|
216
216
|
- $ref: "#/components/parameters/spaceId"
|
|
217
|
+
- $ref: "#/components/parameters/siteShareKey"
|
|
217
218
|
responses:
|
|
218
219
|
"200":
|
|
219
220
|
description: OK
|
|
@@ -7375,7 +7376,15 @@ paths:
|
|
|
7375
7376
|
content:
|
|
7376
7377
|
application/json:
|
|
7377
7378
|
schema:
|
|
7378
|
-
|
|
7379
|
+
allOf:
|
|
7380
|
+
- $ref: "#/components/schemas/SiteCustomizationSettings"
|
|
7381
|
+
- type: object
|
|
7382
|
+
properties:
|
|
7383
|
+
hasOverrides:
|
|
7384
|
+
type: boolean
|
|
7385
|
+
description: Indicates whether the site customization settings have been overridden.
|
|
7386
|
+
required:
|
|
7387
|
+
- hasOverrides
|
|
7379
7388
|
"400":
|
|
7380
7389
|
$ref: "#/components/responses/BadRequestError"
|
|
7381
7390
|
default:
|
|
@@ -7819,6 +7828,12 @@ components:
|
|
|
7819
7828
|
description: The unique id of the space
|
|
7820
7829
|
schema:
|
|
7821
7830
|
type: string
|
|
7831
|
+
siteShareKey:
|
|
7832
|
+
name: shareKey
|
|
7833
|
+
in: query
|
|
7834
|
+
description: For sites published via share-links, the share key is useful to resolve published URLs.
|
|
7835
|
+
schema:
|
|
7836
|
+
type: string
|
|
7822
7837
|
revisionMetadata:
|
|
7823
7838
|
name: metadata
|
|
7824
7839
|
in: query
|
|
@@ -8033,12 +8048,6 @@ components:
|
|
|
8033
8048
|
schema:
|
|
8034
8049
|
type: boolean
|
|
8035
8050
|
default: false
|
|
8036
|
-
siteShareKey:
|
|
8037
|
-
name: shareKey
|
|
8038
|
-
in: query
|
|
8039
|
-
description: For sites published via share-links, the share key is useful to resolve published URLs.
|
|
8040
|
-
schema:
|
|
8041
|
-
type: string
|
|
8042
8051
|
siteSpaceId:
|
|
8043
8052
|
name: siteSpaceId
|
|
8044
8053
|
in: path
|