@gitbook/api 0.50.0 → 0.51.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 +4 -5
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/spec/openapi.json +9 -6
- package/spec/openapi.yaml +7 -5
package/dist/client.d.ts
CHANGED
|
@@ -565,6 +565,8 @@ export declare type PublishedSiteContentLookup = {
|
|
|
565
565
|
apiToken: string;
|
|
566
566
|
/** ID of the organization. */
|
|
567
567
|
organization: string;
|
|
568
|
+
/** Share link key of the site in case the site was published with share-links. */
|
|
569
|
+
shareKey?: string;
|
|
568
570
|
};
|
|
569
571
|
export interface SpacePointer {
|
|
570
572
|
type: 'space';
|
|
@@ -9016,11 +9018,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
9016
9018
|
* @secure
|
|
9017
9019
|
*/
|
|
9018
9020
|
listSiteSpaces: (organizationId: string, siteId: string, query?: {
|
|
9019
|
-
/**
|
|
9020
|
-
|
|
9021
|
-
* @format uri
|
|
9022
|
-
*/
|
|
9023
|
-
context?: string;
|
|
9021
|
+
/** For sites published via share-links, the share key is useful to resolve published URLs. */
|
|
9022
|
+
shareKey?: string;
|
|
9024
9023
|
/** Identifier of the page results to fetch. */
|
|
9025
9024
|
page?: string;
|
|
9026
9025
|
/**
|
package/dist/index.cjs
CHANGED
package/dist/index.js
CHANGED
package/package.json
CHANGED
package/spec/openapi.json
CHANGED
|
@@ -158,13 +158,12 @@
|
|
|
158
158
|
"default": false
|
|
159
159
|
}
|
|
160
160
|
},
|
|
161
|
-
"
|
|
162
|
-
"name": "
|
|
161
|
+
"siteShareKey": {
|
|
162
|
+
"name": "shareKey",
|
|
163
163
|
"in": "query",
|
|
164
|
-
"description": "
|
|
164
|
+
"description": "For sites published via share-links, the share key is useful to resolve published URLs.",
|
|
165
165
|
"schema": {
|
|
166
|
-
"type": "string"
|
|
167
|
-
"format": "uri"
|
|
166
|
+
"type": "string"
|
|
168
167
|
}
|
|
169
168
|
},
|
|
170
169
|
"spaceId": {
|
|
@@ -1875,6 +1874,10 @@
|
|
|
1875
1874
|
"organization": {
|
|
1876
1875
|
"type": "string",
|
|
1877
1876
|
"description": "ID of the organization."
|
|
1877
|
+
},
|
|
1878
|
+
"shareKey": {
|
|
1879
|
+
"type": "string",
|
|
1880
|
+
"description": "Share link key of the site in case the site was published with share-links."
|
|
1878
1881
|
}
|
|
1879
1882
|
},
|
|
1880
1883
|
"required": [
|
|
@@ -29245,7 +29248,7 @@
|
|
|
29245
29248
|
"$ref": "#/components/parameters/siteId"
|
|
29246
29249
|
},
|
|
29247
29250
|
{
|
|
29248
|
-
"$ref": "#/components/parameters/
|
|
29251
|
+
"$ref": "#/components/parameters/siteShareKey"
|
|
29249
29252
|
},
|
|
29250
29253
|
{
|
|
29251
29254
|
"$ref": "#/components/parameters/listPage"
|
package/spec/openapi.yaml
CHANGED
|
@@ -111,13 +111,12 @@ components:
|
|
|
111
111
|
schema:
|
|
112
112
|
type: boolean
|
|
113
113
|
default: false
|
|
114
|
-
|
|
115
|
-
name:
|
|
114
|
+
siteShareKey:
|
|
115
|
+
name: shareKey
|
|
116
116
|
in: query
|
|
117
|
-
description:
|
|
117
|
+
description: For sites published via share-links, the share key is useful to resolve published URLs.
|
|
118
118
|
schema:
|
|
119
119
|
type: string
|
|
120
|
-
format: uri
|
|
121
120
|
spaceId:
|
|
122
121
|
name: spaceId
|
|
123
122
|
in: path
|
|
@@ -1352,6 +1351,9 @@ components:
|
|
|
1352
1351
|
organization:
|
|
1353
1352
|
type: string
|
|
1354
1353
|
description: ID of the organization.
|
|
1354
|
+
shareKey:
|
|
1355
|
+
type: string
|
|
1356
|
+
description: Share link key of the site in case the site was published with share-links.
|
|
1355
1357
|
required:
|
|
1356
1358
|
- site
|
|
1357
1359
|
- siteSpace
|
|
@@ -17970,7 +17972,7 @@ paths:
|
|
|
17970
17972
|
parameters:
|
|
17971
17973
|
- $ref: "#/components/parameters/organizationId"
|
|
17972
17974
|
- $ref: "#/components/parameters/siteId"
|
|
17973
|
-
- $ref: "#/components/parameters/
|
|
17975
|
+
- $ref: "#/components/parameters/siteShareKey"
|
|
17974
17976
|
- $ref: "#/components/parameters/listPage"
|
|
17975
17977
|
- $ref: "#/components/parameters/listLimit"
|
|
17976
17978
|
responses:
|