@gitbook/api 0.150.0 → 0.151.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
@@ -627,6 +627,8 @@ export interface ContentRefURL {
627
627
  export interface ContentRefFile {
628
628
  kind: 'file';
629
629
  file: string;
630
+ /** ID of the space the file is in. The file is considered as in the current space if none is provided. */
631
+ space?: string;
630
632
  }
631
633
  export interface DocumentInlineImage {
632
634
  object: 'inline';
@@ -4002,6 +4004,8 @@ export interface SiteSpace {
4002
4004
  */
4003
4005
  published?: string;
4004
4006
  };
4007
+ /** Whether the site space is hidden. If true, the site space will not be shown in the site's navigation. */
4008
+ hidden?: boolean;
4005
4009
  }
4006
4010
  export interface SiteSection {
4007
4011
  /** The object type, which is always "site-section" */
@@ -12682,6 +12686,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
12682
12686
  condition?: Expression | null;
12683
12687
  /** The content that this site space points to. If not set, the space will remain unchanged. */
12684
12688
  spaceId?: string;
12689
+ /** Whether the site space is hidden. If true, the site space will not be shown in the site's navigation. If not set, the hidden state will remain unchanged. If set to false, the site space will be shown in site navigation. */
12690
+ hidden?: boolean;
12685
12691
  }, params?: RequestParams) => Promise<HttpResponse<SiteSpace, any>>;
12686
12692
  /**
12687
12693
  * No description
package/dist/index.cjs CHANGED
@@ -441,7 +441,7 @@ module.exports = __toCommonJS(src_exports);
441
441
 
442
442
  // package.json
443
443
  var name = "@gitbook/api";
444
- var version = "0.150.0";
444
+ var version = "0.151.0";
445
445
 
446
446
  // src/client.ts
447
447
  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.150.0";
175
+ var version = "0.151.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.150.0",
7
+ "version": "0.151.0",
8
8
  "sideEffects": false,
9
9
  "files": [
10
10
  "README.md",
package/spec/openapi.json CHANGED
@@ -14314,6 +14314,10 @@
14314
14314
  "spaceId": {
14315
14315
  "type": "string",
14316
14316
  "description": "The content that this site space points to. If not set, the space will remain unchanged."
14317
+ },
14318
+ "hidden": {
14319
+ "type": "boolean",
14320
+ "description": "Whether the site space is hidden. If true, the site space will not be shown in the site's navigation. If not set, the hidden state will remain unchanged. If set to false, the site space will be shown in site navigation."
14317
14321
  }
14318
14322
  }
14319
14323
  }
@@ -19018,6 +19022,10 @@
19018
19022
  },
19019
19023
  "file": {
19020
19024
  "type": "string"
19025
+ },
19026
+ "space": {
19027
+ "description": "ID of the space the file is in. The file is considered as in the current space if none is provided.",
19028
+ "type": "string"
19021
19029
  }
19022
19030
  },
19023
19031
  "required": [
@@ -30707,6 +30715,10 @@
30707
30715
  "format": "uri"
30708
30716
  }
30709
30717
  }
30718
+ },
30719
+ "hidden": {
30720
+ "type": "boolean",
30721
+ "description": "Whether the site space is hidden. If true, the site space will not be shown in the site's navigation."
30710
30722
  }
30711
30723
  },
30712
30724
  "required": [
package/spec/openapi.yaml CHANGED
@@ -8107,6 +8107,9 @@ paths:
8107
8107
  spaceId:
8108
8108
  type: string
8109
8109
  description: The content that this site space points to. If not set, the space will remain unchanged.
8110
+ hidden:
8111
+ type: boolean
8112
+ description: Whether the site space is hidden. If true, the site space will not be shown in the site's navigation. If not set, the hidden state will remain unchanged. If set to false, the site space will be shown in site navigation.
8110
8113
  responses:
8111
8114
  "200":
8112
8115
  description: OK
@@ -11129,6 +11132,9 @@ components:
11129
11132
  - file
11130
11133
  file:
11131
11134
  type: string
11135
+ space:
11136
+ description: ID of the space the file is in. The file is considered as in the current space if none is provided.
11137
+ type: string
11132
11138
  required:
11133
11139
  - kind
11134
11140
  - file
@@ -18662,6 +18668,9 @@ components:
18662
18668
  type: string
18663
18669
  description: URL of the published version of the site-space. Only defined when site is published.
18664
18670
  format: uri
18671
+ hidden:
18672
+ type: boolean
18673
+ description: Whether the site space is hidden. If true, the site space will not be shown in the site's navigation.
18665
18674
  required:
18666
18675
  - object
18667
18676
  - id