@gitbook/api 0.49.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 +5 -6
- package/dist/index.cjs +2 -2
- package/dist/index.js +2 -2
- package/package.json +1 -1
- package/spec/openapi.json +10 -7
- package/spec/openapi.yaml +8 -6
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';
|
|
@@ -4246,7 +4248,7 @@ export declare enum CustomizationLocale {
|
|
|
4246
4248
|
Zh = "zh",
|
|
4247
4249
|
Ja = "ja",
|
|
4248
4250
|
De = "de",
|
|
4249
|
-
|
|
4251
|
+
PtBr = "pt-br"
|
|
4250
4252
|
}
|
|
4251
4253
|
export declare enum CustomizationFont {
|
|
4252
4254
|
ABCFavorit = "ABCFavorit",
|
|
@@ -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
|
@@ -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.51.0";
|
|
242
242
|
|
|
243
243
|
// src/client.ts
|
|
244
244
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -661,7 +661,7 @@ var CustomizationLocale = /* @__PURE__ */ ((CustomizationLocale2) => {
|
|
|
661
661
|
CustomizationLocale2["Zh"] = "zh";
|
|
662
662
|
CustomizationLocale2["Ja"] = "ja";
|
|
663
663
|
CustomizationLocale2["De"] = "de";
|
|
664
|
-
CustomizationLocale2["
|
|
664
|
+
CustomizationLocale2["PtBr"] = "pt-br";
|
|
665
665
|
return CustomizationLocale2;
|
|
666
666
|
})(CustomizationLocale || {});
|
|
667
667
|
var CustomizationFont = /* @__PURE__ */ ((CustomizationFont2) => {
|
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.51.0";
|
|
176
176
|
|
|
177
177
|
// src/client.ts
|
|
178
178
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -595,7 +595,7 @@ var CustomizationLocale = /* @__PURE__ */ ((CustomizationLocale2) => {
|
|
|
595
595
|
CustomizationLocale2["Zh"] = "zh";
|
|
596
596
|
CustomizationLocale2["Ja"] = "ja";
|
|
597
597
|
CustomizationLocale2["De"] = "de";
|
|
598
|
-
CustomizationLocale2["
|
|
598
|
+
CustomizationLocale2["PtBr"] = "pt-br";
|
|
599
599
|
return CustomizationLocale2;
|
|
600
600
|
})(CustomizationLocale || {});
|
|
601
601
|
var CustomizationFont = /* @__PURE__ */ ((CustomizationFont2) => {
|
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": [
|
|
@@ -14798,7 +14801,7 @@
|
|
|
14798
14801
|
"zh",
|
|
14799
14802
|
"ja",
|
|
14800
14803
|
"de",
|
|
14801
|
-
"br"
|
|
14804
|
+
"pt-br"
|
|
14802
14805
|
]
|
|
14803
14806
|
},
|
|
14804
14807
|
"CustomizationFont": {
|
|
@@ -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
|
|
@@ -9767,7 +9769,7 @@ components:
|
|
|
9767
9769
|
- zh
|
|
9768
9770
|
- ja
|
|
9769
9771
|
- de
|
|
9770
|
-
- br
|
|
9772
|
+
- pt-br
|
|
9771
9773
|
CustomizationFont:
|
|
9772
9774
|
type: string
|
|
9773
9775
|
enum:
|
|
@@ -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:
|