@gitbook/api 0.118.0 → 0.119.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
@@ -1374,7 +1374,9 @@ export interface RevisionPageLayoutOptions {
1374
1374
  }
1375
1375
  export interface RevisionPageDocumentCover {
1376
1376
  /** Content reference pointing to the source image. */
1377
- ref?: ContentRefFile;
1377
+ ref?: ContentRefFile | ContentRefURL;
1378
+ /** Content reference pointing to the source image for dark mode. */
1379
+ refDark?: ContentRefFile | ContentRefURL;
1378
1380
  /** Vertical position of the cover image. */
1379
1381
  yPos: number;
1380
1382
  }
package/dist/index.cjs CHANGED
@@ -271,7 +271,7 @@ module.exports = __toCommonJS(src_exports);
271
271
 
272
272
  // package.json
273
273
  var name = "@gitbook/api";
274
- var version = "0.118.0";
274
+ var version = "0.119.0";
275
275
 
276
276
  // src/client.ts
277
277
  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.118.0";
175
+ var version = "0.119.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.118.0",
7
+ "version": "0.119.0",
8
8
  "sideEffects": false,
9
9
  "files": [
10
10
  "README.md",
package/spec/openapi.json CHANGED
@@ -22016,7 +22016,25 @@
22016
22016
  "properties": {
22017
22017
  "ref": {
22018
22018
  "description": "Content reference pointing to the source image.",
22019
- "$ref": "#/components/schemas/ContentRefFile"
22019
+ "oneOf": [
22020
+ {
22021
+ "$ref": "#/components/schemas/ContentRefFile"
22022
+ },
22023
+ {
22024
+ "$ref": "#/components/schemas/ContentRefURL"
22025
+ }
22026
+ ]
22027
+ },
22028
+ "refDark": {
22029
+ "description": "Content reference pointing to the source image for dark mode.",
22030
+ "oneOf": [
22031
+ {
22032
+ "$ref": "#/components/schemas/ContentRefFile"
22033
+ },
22034
+ {
22035
+ "$ref": "#/components/schemas/ContentRefURL"
22036
+ }
22037
+ ]
22020
22038
  },
22021
22039
  "yPos": {
22022
22040
  "description": "Vertical position of the cover image.",
package/spec/openapi.yaml CHANGED
@@ -12980,7 +12980,14 @@ components:
12980
12980
  properties:
12981
12981
  ref:
12982
12982
  description: Content reference pointing to the source image.
12983
- $ref: "#/components/schemas/ContentRefFile"
12983
+ oneOf:
12984
+ - $ref: "#/components/schemas/ContentRefFile"
12985
+ - $ref: "#/components/schemas/ContentRefURL"
12986
+ refDark:
12987
+ description: Content reference pointing to the source image for dark mode.
12988
+ oneOf:
12989
+ - $ref: "#/components/schemas/ContentRefFile"
12990
+ - $ref: "#/components/schemas/ContentRefURL"
12984
12991
  yPos:
12985
12992
  description: Vertical position of the cover image.
12986
12993
  type: number