@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 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
- * Site URL that can be used as context for the request to resolve other URLs.
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.50.0";
241
+ var version = "0.51.0";
242
242
 
243
243
  // src/client.ts
244
244
  var import_event_iterator = __toESM(require_node(), 1);
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.50.0";
175
+ var version = "0.51.0";
176
176
 
177
177
  // src/client.ts
178
178
  var import_event_iterator = __toESM(require_node(), 1);
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "main": "./dist/index.cjs",
5
5
  "module": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
7
- "version": "0.50.0",
7
+ "version": "0.51.0",
8
8
  "sideEffects": false,
9
9
  "files": [
10
10
  "README.md",
package/spec/openapi.json CHANGED
@@ -158,13 +158,12 @@
158
158
  "default": false
159
159
  }
160
160
  },
161
- "siteUrlContext": {
162
- "name": "context",
161
+ "siteShareKey": {
162
+ "name": "shareKey",
163
163
  "in": "query",
164
- "description": "Site URL that can be used as context for the request to resolve other URLs.",
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/siteUrlContext"
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
- siteUrlContext:
115
- name: context
114
+ siteShareKey:
115
+ name: shareKey
116
116
  in: query
117
- description: Site URL that can be used as context for the request to resolve other URLs.
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/siteUrlContext"
17975
+ - $ref: "#/components/parameters/siteShareKey"
17974
17976
  - $ref: "#/components/parameters/listPage"
17975
17977
  - $ref: "#/components/parameters/listLimit"
17976
17978
  responses: