@gitbook/api 0.143.0 → 0.143.1

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
@@ -4881,14 +4881,14 @@ export type ContentImportSource = {
4881
4881
  type: 'file';
4882
4882
  files: string[];
4883
4883
  };
4884
- export interface ChangeRequestPointer {
4885
- type: 'change-request';
4886
- /** Unique identifier for the space */
4884
+ export interface ContentImportTarget {
4885
+ /** ID of the space to import in */
4887
4886
  space: string;
4888
- /** Unique identifier for the change request */
4889
- changeRequest: string;
4887
+ /** ID of the change request to import in */
4888
+ changeRequest?: string;
4889
+ /** ID of the page to import in */
4890
+ page?: string;
4890
4891
  }
4891
- export type ContentImportTarget = SpacePointer | ChangeRequestPointer;
4892
4892
  export interface ContentImportRun {
4893
4893
  /** Unique ID of the import */
4894
4894
  id: string;
@@ -8038,10 +8038,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8038
8038
  /** Output format for the content. */
8039
8039
  format?: "document" | "markdown";
8040
8040
  /**
8041
- * If `true` is passed, the document will be evaluated
8041
+ * Controls whether the document should be evaluated.
8042
+ * - When set to `true`, the entire document will be evaluated.
8043
+ * - When set to `deterministic-only`, only expressions that depend
8044
+ * exclusively on deterministic inputs will be evaluated.
8042
8045
  * @default false
8043
8046
  */
8044
- evaluated?: boolean;
8047
+ evaluated?: boolean | "deterministic-only";
8045
8048
  /**
8046
8049
  * If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
8047
8050
  * @default true
@@ -8126,10 +8129,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8126
8129
  /** Output format for the content. */
8127
8130
  format?: "document" | "markdown";
8128
8131
  /**
8129
- * If `true` is passed, the document will be evaluated
8132
+ * Controls whether the document should be evaluated.
8133
+ * - When set to `true`, the entire document will be evaluated.
8134
+ * - When set to `deterministic-only`, only expressions that depend
8135
+ * exclusively on deterministic inputs will be evaluated.
8130
8136
  * @default false
8131
8137
  */
8132
- evaluated?: boolean;
8138
+ evaluated?: boolean | "deterministic-only";
8133
8139
  /**
8134
8140
  * If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
8135
8141
  * @default true
@@ -8754,10 +8760,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8754
8760
  /** Output format for the content. */
8755
8761
  format?: "document" | "markdown";
8756
8762
  /**
8757
- * If `true` is passed, the document will be evaluated
8763
+ * Controls whether the document should be evaluated.
8764
+ * - When set to `true`, the entire document will be evaluated.
8765
+ * - When set to `deterministic-only`, only expressions that depend
8766
+ * exclusively on deterministic inputs will be evaluated.
8758
8767
  * @default false
8759
8768
  */
8760
- evaluated?: boolean;
8769
+ evaluated?: boolean | "deterministic-only";
8761
8770
  /**
8762
8771
  * If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
8763
8772
  * @default true
@@ -8835,10 +8844,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8835
8844
  /** Output format for the content. */
8836
8845
  format?: "document" | "markdown";
8837
8846
  /**
8838
- * If `true` is passed, the document will be evaluated
8847
+ * Controls whether the document should be evaluated.
8848
+ * - When set to `true`, the entire document will be evaluated.
8849
+ * - When set to `deterministic-only`, only expressions that depend
8850
+ * exclusively on deterministic inputs will be evaluated.
8839
8851
  * @default false
8840
8852
  */
8841
- evaluated?: boolean;
8853
+ evaluated?: boolean | "deterministic-only";
8842
8854
  /**
8843
8855
  * If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
8844
8856
  * @default true
@@ -9046,10 +9058,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
9046
9058
  /** Output format for the content. */
9047
9059
  format?: "document" | "markdown";
9048
9060
  /**
9049
- * If `true` is passed, the document will be evaluated
9061
+ * Controls whether the document should be evaluated.
9062
+ * - When set to `true`, the entire document will be evaluated.
9063
+ * - When set to `deterministic-only`, only expressions that depend
9064
+ * exclusively on deterministic inputs will be evaluated.
9050
9065
  * @default false
9051
9066
  */
9052
- evaluated?: boolean;
9067
+ evaluated?: boolean | "deterministic-only";
9053
9068
  /**
9054
9069
  * If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
9055
9070
  * @default true
@@ -9072,10 +9087,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
9072
9087
  */
9073
9088
  getPageDocumentInRevisionById: (spaceId: string, revisionId: string, pageId: string, query?: {
9074
9089
  /**
9075
- * If `true` is passed, the document will be evaluated
9090
+ * Controls whether the document should be evaluated.
9091
+ * - When set to `true`, the entire document will be evaluated.
9092
+ * - When set to `deterministic-only`, only expressions that depend
9093
+ * exclusively on deterministic inputs will be evaluated.
9076
9094
  * @default false
9077
9095
  */
9078
- evaluated?: boolean;
9096
+ evaluated?: boolean | "deterministic-only";
9079
9097
  }, params?: RequestParams) => Promise<HttpResponse<JSONDocument, any>>;
9080
9098
  /**
9081
9099
  * No description
@@ -9090,10 +9108,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
9090
9108
  /** Output format for the content. */
9091
9109
  format?: "document" | "markdown";
9092
9110
  /**
9093
- * If `true` is passed, the document will be evaluated
9111
+ * Controls whether the document should be evaluated.
9112
+ * - When set to `true`, the entire document will be evaluated.
9113
+ * - When set to `deterministic-only`, only expressions that depend
9114
+ * exclusively on deterministic inputs will be evaluated.
9094
9115
  * @default false
9095
9116
  */
9096
- evaluated?: boolean;
9117
+ evaluated?: boolean | "deterministic-only";
9097
9118
  /**
9098
9119
  * If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
9099
9120
  * @default true
@@ -9137,10 +9158,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
9137
9158
  */
9138
9159
  getReusableContentDocumentInRevisionById: (spaceId: string, revisionId: string, reusableContentId: string, query?: {
9139
9160
  /**
9140
- * If `true` is passed, the document will be evaluated
9161
+ * Controls whether the document should be evaluated.
9162
+ * - When set to `true`, the entire document will be evaluated.
9163
+ * - When set to `deterministic-only`, only expressions that depend
9164
+ * exclusively on deterministic inputs will be evaluated.
9141
9165
  * @default false
9142
9166
  */
9143
- evaluated?: boolean;
9167
+ evaluated?: boolean | "deterministic-only";
9144
9168
  }, params?: RequestParams) => Promise<HttpResponse<JSONDocument, any>>;
9145
9169
  /**
9146
9170
  * No description
package/dist/index.cjs CHANGED
@@ -282,7 +282,7 @@ module.exports = __toCommonJS(src_exports);
282
282
 
283
283
  // package.json
284
284
  var name = "@gitbook/api";
285
- var version = "0.143.0";
285
+ var version = "0.143.1";
286
286
 
287
287
  // src/client.ts
288
288
  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.143.0";
175
+ var version = "0.143.1";
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.143.0",
7
+ "version": "0.143.1",
8
8
  "sideEffects": false,
9
9
  "files": [
10
10
  "README.md",
package/spec/openapi.json CHANGED
@@ -16740,9 +16740,19 @@
16740
16740
  "documentEvaluated": {
16741
16741
  "name": "evaluated",
16742
16742
  "in": "query",
16743
- "description": "If `true` is passed, the document will be evaluated",
16743
+ "description": "Controls whether the document should be evaluated.\n- When set to `true`, the entire document will be evaluated.\n- When set to `deterministic-only`, only expressions that depend\n exclusively on deterministic inputs will be evaluated.\n",
16744
16744
  "schema": {
16745
- "type": "boolean",
16745
+ "oneOf": [
16746
+ {
16747
+ "type": "boolean"
16748
+ },
16749
+ {
16750
+ "type": "string",
16751
+ "enum": [
16752
+ "deterministic-only"
16753
+ ]
16754
+ }
16755
+ ],
16746
16756
  "default": false
16747
16757
  }
16748
16758
  },
@@ -33003,38 +33013,24 @@
33003
33013
  }
33004
33014
  ]
33005
33015
  },
33006
- "ChangeRequestPointer": {
33016
+ "ContentImportTarget": {
33007
33017
  "type": "object",
33008
33018
  "properties": {
33009
- "type": {
33010
- "type": "string",
33011
- "enum": [
33012
- "change-request"
33013
- ]
33014
- },
33015
33019
  "space": {
33016
33020
  "type": "string",
33017
- "description": "Unique identifier for the space"
33021
+ "description": "ID of the space to import in"
33018
33022
  },
33019
33023
  "changeRequest": {
33020
33024
  "type": "string",
33021
- "description": "Unique identifier for the change request"
33025
+ "description": "ID of the change request to import in"
33026
+ },
33027
+ "page": {
33028
+ "type": "string",
33029
+ "description": "ID of the page to import in"
33022
33030
  }
33023
33031
  },
33024
33032
  "required": [
33025
- "type",
33026
- "space",
33027
- "changeRequest"
33028
- ]
33029
- },
33030
- "ContentImportTarget": {
33031
- "oneOf": [
33032
- {
33033
- "$ref": "#/components/schemas/SpacePointer"
33034
- },
33035
- {
33036
- "$ref": "#/components/schemas/ChangeRequestPointer"
33037
- }
33033
+ "space"
33038
33034
  ]
33039
33035
  },
33040
33036
  "ContentImportRun": {
package/spec/openapi.yaml CHANGED
@@ -9511,9 +9511,17 @@ components:
9511
9511
  documentEvaluated:
9512
9512
  name: evaluated
9513
9513
  in: query
9514
- description: If `true` is passed, the document will be evaluated
9514
+ description: |
9515
+ Controls whether the document should be evaluated.
9516
+ - When set to `true`, the entire document will be evaluated.
9517
+ - When set to `deterministic-only`, only expressions that depend
9518
+ exclusively on deterministic inputs will be evaluated.
9515
9519
  schema:
9516
- type: boolean
9520
+ oneOf:
9521
+ - type: boolean
9522
+ - type: string
9523
+ enum:
9524
+ - deterministic-only
9517
9525
  default: false
9518
9526
  pagePath:
9519
9527
  name: pagePath
@@ -20305,27 +20313,20 @@ components:
20305
20313
  required:
20306
20314
  - type
20307
20315
  - files
20308
- ChangeRequestPointer:
20316
+ ContentImportTarget:
20309
20317
  type: object
20310
20318
  properties:
20311
- type:
20312
- type: string
20313
- enum:
20314
- - change-request
20315
20319
  space:
20316
20320
  type: string
20317
- description: Unique identifier for the space
20321
+ description: ID of the space to import in
20318
20322
  changeRequest:
20319
20323
  type: string
20320
- description: Unique identifier for the change request
20324
+ description: ID of the change request to import in
20325
+ page:
20326
+ type: string
20327
+ description: ID of the page to import in
20321
20328
  required:
20322
- - type
20323
20329
  - space
20324
- - changeRequest
20325
- ContentImportTarget:
20326
- oneOf:
20327
- - $ref: "#/components/schemas/SpacePointer"
20328
- - $ref: "#/components/schemas/ChangeRequestPointer"
20329
20330
  ContentImportRun:
20330
20331
  type: object
20331
20332
  properties: