@gitbook/api 0.142.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
@@ -1251,7 +1251,7 @@ export interface DocumentBlockColumn {
1251
1251
  object: 'block';
1252
1252
  type: 'column';
1253
1253
  key?: string;
1254
- nodes: (DocumentBlocksEssentials | DocumentBlockImages | DocumentBlockCode | DocumentBlockHint | DocumentBlockContentRef | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockFile | DocumentBlockIntegration | DocumentBlockMath | DocumentBlockQuote)[];
1254
+ nodes: (DocumentBlocksEssentials | DocumentBlockImages | DocumentBlockCode | DocumentBlockHint | DocumentBlockContentRef | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockFile | DocumentBlockIntegration | DocumentBlockMath | DocumentBlockQuote | DocumentBlockTable)[];
1255
1255
  isVoid?: false;
1256
1256
  data: {
1257
1257
  width?: Length;
@@ -2305,6 +2305,8 @@ export interface ChangeRequestReview {
2305
2305
  requestedBy?: User;
2306
2306
  /** The status of the review. */
2307
2307
  status: ChangeRequestReviewStatus;
2308
+ /** Whether this review has been superseded by a newer review request or submission. */
2309
+ outdated: boolean;
2308
2310
  comment?: Comment;
2309
2311
  createdAt: Timestamp;
2310
2312
  updatedAt: Timestamp;
@@ -2613,6 +2615,7 @@ export declare enum IntegrationScope {
2613
2615
  SpaceMetadataRead = "space:metadata:read",
2614
2616
  SpaceMetadataWrite = "space:metadata:write",
2615
2617
  SpaceGitSync = "space:git:sync",
2618
+ PageFeedbackRead = "page:feedback:read",
2616
2619
  SiteMetadataRead = "site:metadata:read",
2617
2620
  SiteViewsRead = "site:views:read",
2618
2621
  SiteScriptInject = "site:script:inject",
@@ -3011,6 +3014,19 @@ export type SiteInstallationDeletedEvent = SiteEvent & {
3011
3014
  configuration?: object;
3012
3015
  };
3013
3016
  };
3017
+ /** Analytics info on the GitBook's content visitor. */
3018
+ export interface EventVisitor {
3019
+ /** GitBook's unique identifier of the visitor. */
3020
+ anonymousId: string;
3021
+ /** The visitors cookies. */
3022
+ cookies: Record<string, string>;
3023
+ /** User-agent of the visitor. */
3024
+ userAgent: string;
3025
+ /** IP address of the visitor. */
3026
+ ip: string;
3027
+ /** Language of the visitor. */
3028
+ language?: string;
3029
+ }
3014
3030
  /** Event received when a page has been visited on a site. */
3015
3031
  export type SiteViewEvent = SiteEvent & {
3016
3032
  type: 'site_view';
@@ -3024,18 +3040,7 @@ export type SiteViewEvent = SiteEvent & {
3024
3040
  /** Unique identifier of the visited page. */
3025
3041
  pageId?: string;
3026
3042
  /** Analytics info on the GitBook's content visitor. */
3027
- visitor: {
3028
- /** GitBook's unique identifier of the visitor. */
3029
- anonymousId: string;
3030
- /** The visitors cookies. */
3031
- cookies: Record<string, string>;
3032
- /** User-agent of the visitor. */
3033
- userAgent: string;
3034
- /** IP address of the visitor. */
3035
- ip: string;
3036
- /** Language of the visitor. */
3037
- language?: string;
3038
- };
3043
+ visitor: EventVisitor;
3039
3044
  /** The GitBook content's URL visited (including URL params). */
3040
3045
  url: string;
3041
3046
  /** The URL of referrer that linked to the page. */
@@ -3194,8 +3199,44 @@ export type ContentComputeDocumentEvent = ContentComputeEvent & {
3194
3199
  export type ContentComputeRevisionEvent = ContentComputeEvent & {
3195
3200
  type: 'content_compute_revision';
3196
3201
  };
3202
+ export declare enum PageFeedbackRating {
3203
+ Bad = "bad",
3204
+ Ok = "ok",
3205
+ Good = "good"
3206
+ }
3207
+ /** Event received when feedback has been submitted on a page. */
3208
+ export type PageFeedbackEvent = BaseEvent & {
3209
+ type: 'page_feedback';
3210
+ /** ID of the integration installation */
3211
+ installationId: string;
3212
+ /**
3213
+ * Unique identifier of the space in the site.
3214
+ * @deprecated
3215
+ */
3216
+ spaceId?: string;
3217
+ /** Unique identifier of the site. */
3218
+ siteId: string;
3219
+ /** Unique identifier of the page where feedback was submitted. */
3220
+ pageId?: string;
3221
+ /** The feedback data submitted by the visitor. */
3222
+ feedback: {
3223
+ rating: PageFeedbackRating;
3224
+ /**
3225
+ * Optional comment provided with the feedback.
3226
+ * @minLength 1
3227
+ * @maxLength 512
3228
+ */
3229
+ comment?: string;
3230
+ };
3231
+ /** Analytics info on the GitBook's content visitor. */
3232
+ visitor: EventVisitor;
3233
+ /** The GitBook content's URL where feedback was submitted. */
3234
+ url: string;
3235
+ /** The URL of referrer that linked to the page. */
3236
+ referrer: string;
3237
+ };
3197
3238
  /** Any event that can be received from GitBook. */
3198
- export type Event = InstallationSetupEvent | InstallationDeletedEvent | SpaceInstallationSetupEvent | SpaceInstallationDeletedEvent | SiteInstallationSetupEvent | SiteInstallationDeletedEvent | SiteViewEvent | SpaceContentUpdatedEvent | SpaceGitSyncCompletedEvent | SpaceGitSyncStartedEvent | SpaceVisibilityUpdatedEvent | FetchEvent | FetchPublishedScriptEvent | FetchVisitorAuthenticationEvent | UIRenderEvent | ContentComputeDocumentEvent | ContentComputeRevisionEvent;
3239
+ export type Event = InstallationSetupEvent | InstallationDeletedEvent | SpaceInstallationSetupEvent | SpaceInstallationDeletedEvent | SiteInstallationSetupEvent | SiteInstallationDeletedEvent | SiteViewEvent | SpaceContentUpdatedEvent | SpaceGitSyncCompletedEvent | SpaceGitSyncStartedEvent | SpaceVisibilityUpdatedEvent | FetchEvent | FetchPublishedScriptEvent | FetchVisitorAuthenticationEvent | UIRenderEvent | ContentComputeDocumentEvent | ContentComputeRevisionEvent | PageFeedbackEvent;
3199
3240
  export interface IntegrationEvent {
3200
3241
  /** Unique ID of the event. */
3201
3242
  id: string;
@@ -4766,7 +4807,8 @@ export interface StorageFileMetadata {
4766
4807
  size: number;
4767
4808
  }
4768
4809
  export declare enum StorageUploadKind {
4769
- CustomizationFont = "customization_font"
4810
+ CustomizationFont = "customization_font",
4811
+ ImportFile = "import_file"
4770
4812
  }
4771
4813
  export interface StorageUploadURL {
4772
4814
  /** The kind of file to upload */
@@ -4832,18 +4874,21 @@ export type CustomizationFontDefinition = CustomizationFontDefinitionInput & {
4832
4874
  * @maxLength 512
4833
4875
  */
4834
4876
  export type StorageFileKey = string;
4835
- export interface ContentImportSource {
4877
+ export type ContentImportSource = {
4836
4878
  type: 'website';
4837
4879
  url: URL;
4838
- }
4839
- export interface ChangeRequestPointer {
4840
- type: 'change-request';
4841
- /** Unique identifier for the space */
4880
+ } | {
4881
+ type: 'file';
4882
+ files: string[];
4883
+ };
4884
+ export interface ContentImportTarget {
4885
+ /** ID of the space to import in */
4842
4886
  space: string;
4843
- /** Unique identifier for the change request */
4844
- 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;
4845
4891
  }
4846
- export type ContentImportTarget = SpacePointer | ChangeRequestPointer;
4847
4892
  export interface ContentImportRun {
4848
4893
  /** Unique ID of the import */
4849
4894
  id: string;
@@ -5766,11 +5811,6 @@ export type SiteInsightsEventSearchOpenResult = SiteInsightsEventBase & {
5766
5811
  pageId: string;
5767
5812
  };
5768
5813
  };
5769
- export declare enum PageFeedbackRating {
5770
- Bad = "bad",
5771
- Ok = "ok",
5772
- Good = "good"
5773
- }
5774
5814
  export type SiteInsightsEventPagePostFeedback = SiteInsightsEventBase & {
5775
5815
  type: 'page_post_feedback';
5776
5816
  feedback: {
@@ -7998,10 +8038,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7998
8038
  /** Output format for the content. */
7999
8039
  format?: "document" | "markdown";
8000
8040
  /**
8001
- * 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.
8002
8045
  * @default false
8003
8046
  */
8004
- evaluated?: boolean;
8047
+ evaluated?: boolean | "deterministic-only";
8005
8048
  /**
8006
8049
  * If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
8007
8050
  * @default true
@@ -8086,10 +8129,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8086
8129
  /** Output format for the content. */
8087
8130
  format?: "document" | "markdown";
8088
8131
  /**
8089
- * 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.
8090
8136
  * @default false
8091
8137
  */
8092
- evaluated?: boolean;
8138
+ evaluated?: boolean | "deterministic-only";
8093
8139
  /**
8094
8140
  * If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
8095
8141
  * @default true
@@ -8286,6 +8332,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8286
8332
  getReviewsByChangeRequestId: (spaceId: string, changeRequestId: string, query?: {
8287
8333
  /** Output format for the content. */
8288
8334
  format?: "document" | "markdown";
8335
+ /** Filter reviews marked as outdated. */
8336
+ outdated?: boolean;
8289
8337
  /** Identifier of the page results to fetch. */
8290
8338
  page?: string;
8291
8339
  /**
@@ -8712,10 +8760,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8712
8760
  /** Output format for the content. */
8713
8761
  format?: "document" | "markdown";
8714
8762
  /**
8715
- * 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.
8716
8767
  * @default false
8717
8768
  */
8718
- evaluated?: boolean;
8769
+ evaluated?: boolean | "deterministic-only";
8719
8770
  /**
8720
8771
  * If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
8721
8772
  * @default true
@@ -8793,10 +8844,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8793
8844
  /** Output format for the content. */
8794
8845
  format?: "document" | "markdown";
8795
8846
  /**
8796
- * 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.
8797
8851
  * @default false
8798
8852
  */
8799
- evaluated?: boolean;
8853
+ evaluated?: boolean | "deterministic-only";
8800
8854
  /**
8801
8855
  * If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
8802
8856
  * @default true
@@ -9004,10 +9058,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
9004
9058
  /** Output format for the content. */
9005
9059
  format?: "document" | "markdown";
9006
9060
  /**
9007
- * 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.
9008
9065
  * @default false
9009
9066
  */
9010
- evaluated?: boolean;
9067
+ evaluated?: boolean | "deterministic-only";
9011
9068
  /**
9012
9069
  * If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
9013
9070
  * @default true
@@ -9030,10 +9087,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
9030
9087
  */
9031
9088
  getPageDocumentInRevisionById: (spaceId: string, revisionId: string, pageId: string, query?: {
9032
9089
  /**
9033
- * 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.
9034
9094
  * @default false
9035
9095
  */
9036
- evaluated?: boolean;
9096
+ evaluated?: boolean | "deterministic-only";
9037
9097
  }, params?: RequestParams) => Promise<HttpResponse<JSONDocument, any>>;
9038
9098
  /**
9039
9099
  * No description
@@ -9048,10 +9108,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
9048
9108
  /** Output format for the content. */
9049
9109
  format?: "document" | "markdown";
9050
9110
  /**
9051
- * 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.
9052
9115
  * @default false
9053
9116
  */
9054
- evaluated?: boolean;
9117
+ evaluated?: boolean | "deterministic-only";
9055
9118
  /**
9056
9119
  * If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
9057
9120
  * @default true
@@ -9095,10 +9158,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
9095
9158
  */
9096
9159
  getReusableContentDocumentInRevisionById: (spaceId: string, revisionId: string, reusableContentId: string, query?: {
9097
9160
  /**
9098
- * 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.
9099
9165
  * @default false
9100
9166
  */
9101
- evaluated?: boolean;
9167
+ evaluated?: boolean | "deterministic-only";
9102
9168
  }, params?: RequestParams) => Promise<HttpResponse<JSONDocument, any>>;
9103
9169
  /**
9104
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.142.0";
285
+ var version = "0.143.1";
286
286
 
287
287
  // src/client.ts
288
288
  var import_event_iterator = __toESM(require_node(), 1);
@@ -618,6 +618,7 @@ var IntegrationScope = /* @__PURE__ */ ((IntegrationScope2) => {
618
618
  IntegrationScope2["SpaceMetadataRead"] = "space:metadata:read";
619
619
  IntegrationScope2["SpaceMetadataWrite"] = "space:metadata:write";
620
620
  IntegrationScope2["SpaceGitSync"] = "space:git:sync";
621
+ IntegrationScope2["PageFeedbackRead"] = "page:feedback:read";
621
622
  IntegrationScope2["SiteMetadataRead"] = "site:metadata:read";
622
623
  IntegrationScope2["SiteViewsRead"] = "site:views:read";
623
624
  IntegrationScope2["SiteScriptInject"] = "site:script:inject";
@@ -656,6 +657,12 @@ var IntegrationInstallationSiteSelection = /* @__PURE__ */ ((IntegrationInstalla
656
657
  IntegrationInstallationSiteSelection2["Selected"] = "selected";
657
658
  return IntegrationInstallationSiteSelection2;
658
659
  })(IntegrationInstallationSiteSelection || {});
660
+ var PageFeedbackRating = /* @__PURE__ */ ((PageFeedbackRating2) => {
661
+ PageFeedbackRating2["Bad"] = "bad";
662
+ PageFeedbackRating2["Ok"] = "ok";
663
+ PageFeedbackRating2["Good"] = "good";
664
+ return PageFeedbackRating2;
665
+ })(PageFeedbackRating || {});
659
666
  var SiteType = /* @__PURE__ */ ((SiteType2) => {
660
667
  SiteType2["Basic"] = "basic";
661
668
  SiteType2["Premium"] = "premium";
@@ -785,6 +792,7 @@ var TranslationStatus = /* @__PURE__ */ ((TranslationStatus2) => {
785
792
  })(TranslationStatus || {});
786
793
  var StorageUploadKind = /* @__PURE__ */ ((StorageUploadKind2) => {
787
794
  StorageUploadKind2["CustomizationFont"] = "customization_font";
795
+ StorageUploadKind2["ImportFile"] = "import_file";
788
796
  return StorageUploadKind2;
789
797
  })(StorageUploadKind || {});
790
798
  var CustomizationTheme = /* @__PURE__ */ ((CustomizationTheme2) => {
@@ -917,12 +925,6 @@ var SiteInsightsDisplayContext = /* @__PURE__ */ ((SiteInsightsDisplayContext2)
917
925
  SiteInsightsDisplayContext2["Embed"] = "embed";
918
926
  return SiteInsightsDisplayContext2;
919
927
  })(SiteInsightsDisplayContext || {});
920
- var PageFeedbackRating = /* @__PURE__ */ ((PageFeedbackRating2) => {
921
- PageFeedbackRating2["Bad"] = "bad";
922
- PageFeedbackRating2["Ok"] = "ok";
923
- PageFeedbackRating2["Good"] = "good";
924
- return PageFeedbackRating2;
925
- })(PageFeedbackRating || {});
926
928
  var SiteInsightsLinkPosition = /* @__PURE__ */ ((SiteInsightsLinkPosition2) => {
927
929
  SiteInsightsLinkPosition2["Announcement"] = "announcement";
928
930
  SiteInsightsLinkPosition2["Header"] = "header";
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.142.0";
175
+ var version = "0.143.1";
176
176
 
177
177
  // src/client.ts
178
178
  var import_event_iterator = __toESM(require_node(), 1);
@@ -508,6 +508,7 @@ var IntegrationScope = /* @__PURE__ */ ((IntegrationScope2) => {
508
508
  IntegrationScope2["SpaceMetadataRead"] = "space:metadata:read";
509
509
  IntegrationScope2["SpaceMetadataWrite"] = "space:metadata:write";
510
510
  IntegrationScope2["SpaceGitSync"] = "space:git:sync";
511
+ IntegrationScope2["PageFeedbackRead"] = "page:feedback:read";
511
512
  IntegrationScope2["SiteMetadataRead"] = "site:metadata:read";
512
513
  IntegrationScope2["SiteViewsRead"] = "site:views:read";
513
514
  IntegrationScope2["SiteScriptInject"] = "site:script:inject";
@@ -546,6 +547,12 @@ var IntegrationInstallationSiteSelection = /* @__PURE__ */ ((IntegrationInstalla
546
547
  IntegrationInstallationSiteSelection2["Selected"] = "selected";
547
548
  return IntegrationInstallationSiteSelection2;
548
549
  })(IntegrationInstallationSiteSelection || {});
550
+ var PageFeedbackRating = /* @__PURE__ */ ((PageFeedbackRating2) => {
551
+ PageFeedbackRating2["Bad"] = "bad";
552
+ PageFeedbackRating2["Ok"] = "ok";
553
+ PageFeedbackRating2["Good"] = "good";
554
+ return PageFeedbackRating2;
555
+ })(PageFeedbackRating || {});
549
556
  var SiteType = /* @__PURE__ */ ((SiteType2) => {
550
557
  SiteType2["Basic"] = "basic";
551
558
  SiteType2["Premium"] = "premium";
@@ -675,6 +682,7 @@ var TranslationStatus = /* @__PURE__ */ ((TranslationStatus2) => {
675
682
  })(TranslationStatus || {});
676
683
  var StorageUploadKind = /* @__PURE__ */ ((StorageUploadKind2) => {
677
684
  StorageUploadKind2["CustomizationFont"] = "customization_font";
685
+ StorageUploadKind2["ImportFile"] = "import_file";
678
686
  return StorageUploadKind2;
679
687
  })(StorageUploadKind || {});
680
688
  var CustomizationTheme = /* @__PURE__ */ ((CustomizationTheme2) => {
@@ -807,12 +815,6 @@ var SiteInsightsDisplayContext = /* @__PURE__ */ ((SiteInsightsDisplayContext2)
807
815
  SiteInsightsDisplayContext2["Embed"] = "embed";
808
816
  return SiteInsightsDisplayContext2;
809
817
  })(SiteInsightsDisplayContext || {});
810
- var PageFeedbackRating = /* @__PURE__ */ ((PageFeedbackRating2) => {
811
- PageFeedbackRating2["Bad"] = "bad";
812
- PageFeedbackRating2["Ok"] = "ok";
813
- PageFeedbackRating2["Good"] = "good";
814
- return PageFeedbackRating2;
815
- })(PageFeedbackRating || {});
816
818
  var SiteInsightsLinkPosition = /* @__PURE__ */ ((SiteInsightsLinkPosition2) => {
817
819
  SiteInsightsLinkPosition2["Announcement"] = "announcement";
818
820
  SiteInsightsLinkPosition2["Header"] = "header";
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.142.0",
7
+ "version": "0.143.1",
8
8
  "sideEffects": false,
9
9
  "files": [
10
10
  "README.md",
package/spec/openapi.json CHANGED
@@ -2694,6 +2694,14 @@
2694
2694
  {
2695
2695
  "$ref": "#/components/parameters/documentFormat"
2696
2696
  },
2697
+ {
2698
+ "in": "query",
2699
+ "name": "outdated",
2700
+ "description": "Filter reviews marked as outdated.",
2701
+ "schema": {
2702
+ "type": "boolean"
2703
+ }
2704
+ },
2697
2705
  {
2698
2706
  "$ref": "#/components/parameters/listPage"
2699
2707
  },
@@ -16732,9 +16740,19 @@
16732
16740
  "documentEvaluated": {
16733
16741
  "name": "evaluated",
16734
16742
  "in": "query",
16735
- "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",
16736
16744
  "schema": {
16737
- "type": "boolean",
16745
+ "oneOf": [
16746
+ {
16747
+ "type": "boolean"
16748
+ },
16749
+ {
16750
+ "type": "string",
16751
+ "enum": [
16752
+ "deterministic-only"
16753
+ ]
16754
+ }
16755
+ ],
16738
16756
  "default": false
16739
16757
  }
16740
16758
  },
@@ -22188,6 +22206,9 @@
22188
22206
  },
22189
22207
  {
22190
22208
  "$ref": "#/components/schemas/DocumentBlockQuote"
22209
+ },
22210
+ {
22211
+ "$ref": "#/components/schemas/DocumentBlockTable"
22191
22212
  }
22192
22213
  ]
22193
22214
  }
@@ -25391,6 +25412,10 @@
25391
25412
  "description": "The status of the review.",
25392
25413
  "$ref": "#/components/schemas/ChangeRequestReviewStatus"
25393
25414
  },
25415
+ "outdated": {
25416
+ "type": "boolean",
25417
+ "description": "Whether this review has been superseded by a newer review request or submission."
25418
+ },
25394
25419
  "comment": {
25395
25420
  "$ref": "#/components/schemas/Comment"
25396
25421
  },
@@ -25407,6 +25432,7 @@
25407
25432
  "revision",
25408
25433
  "reviewer",
25409
25434
  "status",
25435
+ "outdated",
25410
25436
  "createdAt",
25411
25437
  "updatedAt"
25412
25438
  ]
@@ -26382,6 +26408,7 @@
26382
26408
  "space:metadata:read",
26383
26409
  "space:metadata:write",
26384
26410
  "space:git:sync",
26411
+ "page:feedback:read",
26385
26412
  "site:metadata:read",
26386
26413
  "site:views:read",
26387
26414
  "site:script:inject",
@@ -27438,6 +27465,41 @@
27438
27465
  }
27439
27466
  ]
27440
27467
  },
27468
+ "EventVisitor": {
27469
+ "type": "object",
27470
+ "description": "Analytics info on the GitBook's content visitor.",
27471
+ "properties": {
27472
+ "anonymousId": {
27473
+ "type": "string",
27474
+ "description": "GitBook's unique identifier of the visitor."
27475
+ },
27476
+ "cookies": {
27477
+ "type": "object",
27478
+ "description": "The visitors cookies.",
27479
+ "additionalProperties": {
27480
+ "type": "string"
27481
+ }
27482
+ },
27483
+ "userAgent": {
27484
+ "type": "string",
27485
+ "description": "User-agent of the visitor."
27486
+ },
27487
+ "ip": {
27488
+ "type": "string",
27489
+ "description": "IP address of the visitor."
27490
+ },
27491
+ "language": {
27492
+ "type": "string",
27493
+ "description": "Language of the visitor."
27494
+ }
27495
+ },
27496
+ "required": [
27497
+ "anonymousId",
27498
+ "cookies",
27499
+ "userAgent",
27500
+ "ip"
27501
+ ]
27502
+ },
27441
27503
  "SiteViewEvent": {
27442
27504
  "allOf": [
27443
27505
  {
@@ -27467,39 +27529,7 @@
27467
27529
  "description": "Unique identifier of the visited page."
27468
27530
  },
27469
27531
  "visitor": {
27470
- "type": "object",
27471
- "description": "Analytics info on the GitBook's content visitor.",
27472
- "properties": {
27473
- "anonymousId": {
27474
- "type": "string",
27475
- "description": "GitBook's unique identifier of the visitor."
27476
- },
27477
- "cookies": {
27478
- "type": "object",
27479
- "description": "The visitors cookies.",
27480
- "additionalProperties": {
27481
- "type": "string"
27482
- }
27483
- },
27484
- "userAgent": {
27485
- "type": "string",
27486
- "description": "User-agent of the visitor."
27487
- },
27488
- "ip": {
27489
- "type": "string",
27490
- "description": "IP address of the visitor."
27491
- },
27492
- "language": {
27493
- "type": "string",
27494
- "description": "Language of the visitor."
27495
- }
27496
- },
27497
- "required": [
27498
- "anonymousId",
27499
- "cookies",
27500
- "userAgent",
27501
- "ip"
27502
- ]
27532
+ "$ref": "#/components/schemas/EventVisitor"
27503
27533
  },
27504
27534
  "url": {
27505
27535
  "type": "string",
@@ -28092,6 +28122,88 @@
28092
28122
  }
28093
28123
  ]
28094
28124
  },
28125
+ "PageFeedbackRating": {
28126
+ "type": "string",
28127
+ "enum": [
28128
+ "bad",
28129
+ "ok",
28130
+ "good"
28131
+ ]
28132
+ },
28133
+ "PageFeedbackEvent": {
28134
+ "allOf": [
28135
+ {
28136
+ "$ref": "#/components/schemas/BaseEvent"
28137
+ },
28138
+ {
28139
+ "type": "object",
28140
+ "description": "Event received when feedback has been submitted on a page.",
28141
+ "properties": {
28142
+ "type": {
28143
+ "type": "string",
28144
+ "enum": [
28145
+ "page_feedback"
28146
+ ]
28147
+ },
28148
+ "installationId": {
28149
+ "type": "string",
28150
+ "description": "ID of the integration installation"
28151
+ },
28152
+ "spaceId": {
28153
+ "type": "string",
28154
+ "description": "Unique identifier of the space in the site.",
28155
+ "deprecated": true
28156
+ },
28157
+ "siteId": {
28158
+ "type": "string",
28159
+ "description": "Unique identifier of the site."
28160
+ },
28161
+ "pageId": {
28162
+ "type": "string",
28163
+ "description": "Unique identifier of the page where feedback was submitted."
28164
+ },
28165
+ "feedback": {
28166
+ "type": "object",
28167
+ "description": "The feedback data submitted by the visitor.",
28168
+ "properties": {
28169
+ "rating": {
28170
+ "$ref": "#/components/schemas/PageFeedbackRating"
28171
+ },
28172
+ "comment": {
28173
+ "type": "string",
28174
+ "description": "Optional comment provided with the feedback.",
28175
+ "minLength": 1,
28176
+ "maxLength": 512
28177
+ }
28178
+ },
28179
+ "required": [
28180
+ "rating"
28181
+ ]
28182
+ },
28183
+ "visitor": {
28184
+ "$ref": "#/components/schemas/EventVisitor"
28185
+ },
28186
+ "url": {
28187
+ "type": "string",
28188
+ "description": "The GitBook content's URL where feedback was submitted."
28189
+ },
28190
+ "referrer": {
28191
+ "type": "string",
28192
+ "description": "The URL of referrer that linked to the page."
28193
+ }
28194
+ },
28195
+ "required": [
28196
+ "type",
28197
+ "installationId",
28198
+ "siteId",
28199
+ "feedback",
28200
+ "visitor",
28201
+ "url",
28202
+ "referrer"
28203
+ ]
28204
+ }
28205
+ ]
28206
+ },
28095
28207
  "Event": {
28096
28208
  "description": "Any event that can be received from GitBook.",
28097
28209
  "oneOf": [
@@ -28145,6 +28257,9 @@
28145
28257
  },
28146
28258
  {
28147
28259
  "$ref": "#/components/schemas/ContentComputeRevisionEvent"
28260
+ },
28261
+ {
28262
+ "$ref": "#/components/schemas/PageFeedbackEvent"
28148
28263
  }
28149
28264
  ],
28150
28265
  "discriminator": {
@@ -32706,7 +32821,8 @@
32706
32821
  "StorageUploadKind": {
32707
32822
  "type": "string",
32708
32823
  "enum": [
32709
- "customization_font"
32824
+ "customization_font",
32825
+ "import_file"
32710
32826
  ]
32711
32827
  },
32712
32828
  "StorageUploadURL": {
@@ -32854,55 +32970,67 @@
32854
32970
  "maxLength": 512
32855
32971
  },
32856
32972
  "ContentImportSource": {
32857
- "type": "object",
32858
- "properties": {
32859
- "type": {
32860
- "type": "string",
32861
- "enum": [
32862
- "website"
32973
+ "oneOf": [
32974
+ {
32975
+ "type": "object",
32976
+ "properties": {
32977
+ "type": {
32978
+ "type": "string",
32979
+ "enum": [
32980
+ "website"
32981
+ ]
32982
+ },
32983
+ "url": {
32984
+ "$ref": "#/components/schemas/URL"
32985
+ }
32986
+ },
32987
+ "required": [
32988
+ "type",
32989
+ "url"
32863
32990
  ]
32864
32991
  },
32865
- "url": {
32866
- "$ref": "#/components/schemas/URL"
32992
+ {
32993
+ "type": "object",
32994
+ "properties": {
32995
+ "type": {
32996
+ "type": "string",
32997
+ "enum": [
32998
+ "file"
32999
+ ]
33000
+ },
33001
+ "files": {
33002
+ "type": "array",
33003
+ "items": {
33004
+ "description": "Key of file",
33005
+ "type": "string"
33006
+ }
33007
+ }
33008
+ },
33009
+ "required": [
33010
+ "type",
33011
+ "files"
33012
+ ]
32867
33013
  }
32868
- },
32869
- "required": [
32870
- "type",
32871
- "url"
32872
33014
  ]
32873
33015
  },
32874
- "ChangeRequestPointer": {
33016
+ "ContentImportTarget": {
32875
33017
  "type": "object",
32876
33018
  "properties": {
32877
- "type": {
32878
- "type": "string",
32879
- "enum": [
32880
- "change-request"
32881
- ]
32882
- },
32883
33019
  "space": {
32884
33020
  "type": "string",
32885
- "description": "Unique identifier for the space"
33021
+ "description": "ID of the space to import in"
32886
33022
  },
32887
33023
  "changeRequest": {
32888
33024
  "type": "string",
32889
- "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"
32890
33030
  }
32891
33031
  },
32892
33032
  "required": [
32893
- "type",
32894
- "space",
32895
- "changeRequest"
32896
- ]
32897
- },
32898
- "ContentImportTarget": {
32899
- "oneOf": [
32900
- {
32901
- "$ref": "#/components/schemas/SpacePointer"
32902
- },
32903
- {
32904
- "$ref": "#/components/schemas/ChangeRequestPointer"
32905
- }
33033
+ "space"
32906
33034
  ]
32907
33035
  },
32908
33036
  "ContentImportRun": {
@@ -35574,14 +35702,6 @@
35574
35702
  }
35575
35703
  ]
35576
35704
  },
35577
- "PageFeedbackRating": {
35578
- "type": "string",
35579
- "enum": [
35580
- "bad",
35581
- "ok",
35582
- "good"
35583
- ]
35584
- },
35585
35705
  "SiteInsightsEventPagePostFeedback": {
35586
35706
  "allOf": [
35587
35707
  {
package/spec/openapi.yaml CHANGED
@@ -1745,6 +1745,11 @@ paths:
1745
1745
  - $ref: "#/components/parameters/spaceId"
1746
1746
  - $ref: "#/components/parameters/changeRequestId"
1747
1747
  - $ref: "#/components/parameters/documentFormat"
1748
+ - in: query
1749
+ name: outdated
1750
+ description: Filter reviews marked as outdated.
1751
+ schema:
1752
+ type: boolean
1748
1753
  - $ref: "#/components/parameters/listPage"
1749
1754
  - $ref: "#/components/parameters/listLimit"
1750
1755
  responses:
@@ -9506,9 +9511,17 @@ components:
9506
9511
  documentEvaluated:
9507
9512
  name: evaluated
9508
9513
  in: query
9509
- 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.
9510
9519
  schema:
9511
- type: boolean
9520
+ oneOf:
9521
+ - type: boolean
9522
+ - type: string
9523
+ enum:
9524
+ - deterministic-only
9512
9525
  default: false
9513
9526
  pagePath:
9514
9527
  name: pagePath
@@ -13081,6 +13094,7 @@ components:
13081
13094
  - $ref: "#/components/schemas/DocumentBlockIntegration"
13082
13095
  - $ref: "#/components/schemas/DocumentBlockMath"
13083
13096
  - $ref: "#/components/schemas/DocumentBlockQuote"
13097
+ - $ref: "#/components/schemas/DocumentBlockTable"
13084
13098
  isVoid:
13085
13099
  type: boolean
13086
13100
  enum:
@@ -15200,6 +15214,9 @@ components:
15200
15214
  status:
15201
15215
  description: The status of the review.
15202
15216
  $ref: "#/components/schemas/ChangeRequestReviewStatus"
15217
+ outdated:
15218
+ type: boolean
15219
+ description: Whether this review has been superseded by a newer review request or submission.
15203
15220
  comment:
15204
15221
  $ref: "#/components/schemas/Comment"
15205
15222
  createdAt:
@@ -15212,6 +15229,7 @@ components:
15212
15229
  - revision
15213
15230
  - reviewer
15214
15231
  - status
15232
+ - outdated
15215
15233
  - createdAt
15216
15234
  - updatedAt
15217
15235
  Team:
@@ -15864,6 +15882,7 @@ components:
15864
15882
  - space:metadata:read
15865
15883
  - space:metadata:write
15866
15884
  - space:git:sync
15885
+ - page:feedback:read
15867
15886
  - site:metadata:read
15868
15887
  - site:views:read
15869
15888
  - site:script:inject
@@ -16573,6 +16592,32 @@ components:
16573
16592
  required:
16574
16593
  - type
16575
16594
  - previous
16595
+ EventVisitor:
16596
+ type: object
16597
+ description: Analytics info on the GitBook's content visitor.
16598
+ properties:
16599
+ anonymousId:
16600
+ type: string
16601
+ description: GitBook's unique identifier of the visitor.
16602
+ cookies:
16603
+ type: object
16604
+ description: The visitors cookies.
16605
+ additionalProperties:
16606
+ type: string
16607
+ userAgent:
16608
+ type: string
16609
+ description: User-agent of the visitor.
16610
+ ip:
16611
+ type: string
16612
+ description: IP address of the visitor.
16613
+ language:
16614
+ type: string
16615
+ description: Language of the visitor.
16616
+ required:
16617
+ - anonymousId
16618
+ - cookies
16619
+ - userAgent
16620
+ - ip
16576
16621
  SiteViewEvent:
16577
16622
  allOf:
16578
16623
  - $ref: "#/components/schemas/SiteEvent"
@@ -16594,31 +16639,7 @@ components:
16594
16639
  type: string
16595
16640
  description: Unique identifier of the visited page.
16596
16641
  visitor:
16597
- type: object
16598
- description: Analytics info on the GitBook's content visitor.
16599
- properties:
16600
- anonymousId:
16601
- type: string
16602
- description: GitBook's unique identifier of the visitor.
16603
- cookies:
16604
- type: object
16605
- description: The visitors cookies.
16606
- additionalProperties:
16607
- type: string
16608
- userAgent:
16609
- type: string
16610
- description: User-agent of the visitor.
16611
- ip:
16612
- type: string
16613
- description: IP address of the visitor.
16614
- language:
16615
- type: string
16616
- description: Language of the visitor.
16617
- required:
16618
- - anonymousId
16619
- - cookies
16620
- - userAgent
16621
- - ip
16642
+ $ref: "#/components/schemas/EventVisitor"
16622
16643
  url:
16623
16644
  type: string
16624
16645
  description: The GitBook content's URL visited (including URL params).
@@ -16979,6 +17000,64 @@ components:
16979
17000
  - content_compute_revision
16980
17001
  required:
16981
17002
  - type
17003
+ PageFeedbackRating:
17004
+ type: string
17005
+ enum:
17006
+ - bad
17007
+ - ok
17008
+ - good
17009
+ PageFeedbackEvent:
17010
+ allOf:
17011
+ - $ref: "#/components/schemas/BaseEvent"
17012
+ - type: object
17013
+ description: Event received when feedback has been submitted on a page.
17014
+ properties:
17015
+ type:
17016
+ type: string
17017
+ enum:
17018
+ - page_feedback
17019
+ installationId:
17020
+ type: string
17021
+ description: ID of the integration installation
17022
+ spaceId:
17023
+ type: string
17024
+ description: Unique identifier of the space in the site.
17025
+ deprecated: true
17026
+ siteId:
17027
+ type: string
17028
+ description: Unique identifier of the site.
17029
+ pageId:
17030
+ type: string
17031
+ description: Unique identifier of the page where feedback was submitted.
17032
+ feedback:
17033
+ type: object
17034
+ description: The feedback data submitted by the visitor.
17035
+ properties:
17036
+ rating:
17037
+ $ref: "#/components/schemas/PageFeedbackRating"
17038
+ comment:
17039
+ type: string
17040
+ description: Optional comment provided with the feedback.
17041
+ minLength: 1
17042
+ maxLength: 512
17043
+ required:
17044
+ - rating
17045
+ visitor:
17046
+ $ref: "#/components/schemas/EventVisitor"
17047
+ url:
17048
+ type: string
17049
+ description: The GitBook content's URL where feedback was submitted.
17050
+ referrer:
17051
+ type: string
17052
+ description: The URL of referrer that linked to the page.
17053
+ required:
17054
+ - type
17055
+ - installationId
17056
+ - siteId
17057
+ - feedback
17058
+ - visitor
17059
+ - url
17060
+ - referrer
16982
17061
  Event:
16983
17062
  description: Any event that can be received from GitBook.
16984
17063
  oneOf:
@@ -16999,6 +17078,7 @@ components:
16999
17078
  - $ref: "#/components/schemas/UIRenderEvent"
17000
17079
  - $ref: "#/components/schemas/ContentComputeDocumentEvent"
17001
17080
  - $ref: "#/components/schemas/ContentComputeRevisionEvent"
17081
+ - $ref: "#/components/schemas/PageFeedbackEvent"
17002
17082
  discriminator:
17003
17083
  propertyName: type
17004
17084
  IntegrationEvent:
@@ -20103,6 +20183,7 @@ components:
20103
20183
  type: string
20104
20184
  enum:
20105
20185
  - customization_font
20186
+ - import_file
20106
20187
  StorageUploadURL:
20107
20188
  type: object
20108
20189
  properties:
@@ -20206,38 +20287,46 @@ components:
20206
20287
  minLength: 1
20207
20288
  maxLength: 512
20208
20289
  ContentImportSource:
20290
+ oneOf:
20291
+ - type: object
20292
+ properties:
20293
+ type:
20294
+ type: string
20295
+ enum:
20296
+ - website
20297
+ url:
20298
+ $ref: "#/components/schemas/URL"
20299
+ required:
20300
+ - type
20301
+ - url
20302
+ - type: object
20303
+ properties:
20304
+ type:
20305
+ type: string
20306
+ enum:
20307
+ - file
20308
+ files:
20309
+ type: array
20310
+ items:
20311
+ description: Key of file
20312
+ type: string
20313
+ required:
20314
+ - type
20315
+ - files
20316
+ ContentImportTarget:
20209
20317
  type: object
20210
20318
  properties:
20211
- type:
20212
- type: string
20213
- enum:
20214
- - website
20215
- url:
20216
- $ref: "#/components/schemas/URL"
20217
- required:
20218
- - type
20219
- - url
20220
- ChangeRequestPointer:
20221
- type: object
20222
- properties:
20223
- type:
20224
- type: string
20225
- enum:
20226
- - change-request
20227
20319
  space:
20228
20320
  type: string
20229
- description: Unique identifier for the space
20321
+ description: ID of the space to import in
20230
20322
  changeRequest:
20231
20323
  type: string
20232
- 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
20233
20328
  required:
20234
- - type
20235
20329
  - space
20236
- - changeRequest
20237
- ContentImportTarget:
20238
- oneOf:
20239
- - $ref: "#/components/schemas/SpacePointer"
20240
- - $ref: "#/components/schemas/ChangeRequestPointer"
20241
20330
  ContentImportRun:
20242
20331
  type: object
20243
20332
  properties:
@@ -22110,12 +22199,6 @@ components:
22110
22199
  - type
22111
22200
  - query
22112
22201
  - result
22113
- PageFeedbackRating:
22114
- type: string
22115
- enum:
22116
- - bad
22117
- - ok
22118
- - good
22119
22202
  SiteInsightsEventPagePostFeedback:
22120
22203
  allOf:
22121
22204
  - $ref: "#/components/schemas/SiteInsightsEventBase"