@gitbook/api 0.142.0 → 0.143.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
@@ -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,10 +4874,13 @@ 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
- }
4880
+ } | {
4881
+ type: 'file';
4882
+ files: string[];
4883
+ };
4839
4884
  export interface ChangeRequestPointer {
4840
4885
  type: 'change-request';
4841
4886
  /** Unique identifier for the space */
@@ -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: {
@@ -8286,6 +8326,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8286
8326
  getReviewsByChangeRequestId: (spaceId: string, changeRequestId: string, query?: {
8287
8327
  /** Output format for the content. */
8288
8328
  format?: "document" | "markdown";
8329
+ /** Filter reviews marked as outdated. */
8330
+ outdated?: boolean;
8289
8331
  /** Identifier of the page results to fetch. */
8290
8332
  page?: string;
8291
8333
  /**
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.0";
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.0";
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.0",
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
  },
@@ -22188,6 +22196,9 @@
22188
22196
  },
22189
22197
  {
22190
22198
  "$ref": "#/components/schemas/DocumentBlockQuote"
22199
+ },
22200
+ {
22201
+ "$ref": "#/components/schemas/DocumentBlockTable"
22191
22202
  }
22192
22203
  ]
22193
22204
  }
@@ -25391,6 +25402,10 @@
25391
25402
  "description": "The status of the review.",
25392
25403
  "$ref": "#/components/schemas/ChangeRequestReviewStatus"
25393
25404
  },
25405
+ "outdated": {
25406
+ "type": "boolean",
25407
+ "description": "Whether this review has been superseded by a newer review request or submission."
25408
+ },
25394
25409
  "comment": {
25395
25410
  "$ref": "#/components/schemas/Comment"
25396
25411
  },
@@ -25407,6 +25422,7 @@
25407
25422
  "revision",
25408
25423
  "reviewer",
25409
25424
  "status",
25425
+ "outdated",
25410
25426
  "createdAt",
25411
25427
  "updatedAt"
25412
25428
  ]
@@ -26382,6 +26398,7 @@
26382
26398
  "space:metadata:read",
26383
26399
  "space:metadata:write",
26384
26400
  "space:git:sync",
26401
+ "page:feedback:read",
26385
26402
  "site:metadata:read",
26386
26403
  "site:views:read",
26387
26404
  "site:script:inject",
@@ -27438,6 +27455,41 @@
27438
27455
  }
27439
27456
  ]
27440
27457
  },
27458
+ "EventVisitor": {
27459
+ "type": "object",
27460
+ "description": "Analytics info on the GitBook's content visitor.",
27461
+ "properties": {
27462
+ "anonymousId": {
27463
+ "type": "string",
27464
+ "description": "GitBook's unique identifier of the visitor."
27465
+ },
27466
+ "cookies": {
27467
+ "type": "object",
27468
+ "description": "The visitors cookies.",
27469
+ "additionalProperties": {
27470
+ "type": "string"
27471
+ }
27472
+ },
27473
+ "userAgent": {
27474
+ "type": "string",
27475
+ "description": "User-agent of the visitor."
27476
+ },
27477
+ "ip": {
27478
+ "type": "string",
27479
+ "description": "IP address of the visitor."
27480
+ },
27481
+ "language": {
27482
+ "type": "string",
27483
+ "description": "Language of the visitor."
27484
+ }
27485
+ },
27486
+ "required": [
27487
+ "anonymousId",
27488
+ "cookies",
27489
+ "userAgent",
27490
+ "ip"
27491
+ ]
27492
+ },
27441
27493
  "SiteViewEvent": {
27442
27494
  "allOf": [
27443
27495
  {
@@ -27467,39 +27519,7 @@
27467
27519
  "description": "Unique identifier of the visited page."
27468
27520
  },
27469
27521
  "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
- ]
27522
+ "$ref": "#/components/schemas/EventVisitor"
27503
27523
  },
27504
27524
  "url": {
27505
27525
  "type": "string",
@@ -28092,6 +28112,88 @@
28092
28112
  }
28093
28113
  ]
28094
28114
  },
28115
+ "PageFeedbackRating": {
28116
+ "type": "string",
28117
+ "enum": [
28118
+ "bad",
28119
+ "ok",
28120
+ "good"
28121
+ ]
28122
+ },
28123
+ "PageFeedbackEvent": {
28124
+ "allOf": [
28125
+ {
28126
+ "$ref": "#/components/schemas/BaseEvent"
28127
+ },
28128
+ {
28129
+ "type": "object",
28130
+ "description": "Event received when feedback has been submitted on a page.",
28131
+ "properties": {
28132
+ "type": {
28133
+ "type": "string",
28134
+ "enum": [
28135
+ "page_feedback"
28136
+ ]
28137
+ },
28138
+ "installationId": {
28139
+ "type": "string",
28140
+ "description": "ID of the integration installation"
28141
+ },
28142
+ "spaceId": {
28143
+ "type": "string",
28144
+ "description": "Unique identifier of the space in the site.",
28145
+ "deprecated": true
28146
+ },
28147
+ "siteId": {
28148
+ "type": "string",
28149
+ "description": "Unique identifier of the site."
28150
+ },
28151
+ "pageId": {
28152
+ "type": "string",
28153
+ "description": "Unique identifier of the page where feedback was submitted."
28154
+ },
28155
+ "feedback": {
28156
+ "type": "object",
28157
+ "description": "The feedback data submitted by the visitor.",
28158
+ "properties": {
28159
+ "rating": {
28160
+ "$ref": "#/components/schemas/PageFeedbackRating"
28161
+ },
28162
+ "comment": {
28163
+ "type": "string",
28164
+ "description": "Optional comment provided with the feedback.",
28165
+ "minLength": 1,
28166
+ "maxLength": 512
28167
+ }
28168
+ },
28169
+ "required": [
28170
+ "rating"
28171
+ ]
28172
+ },
28173
+ "visitor": {
28174
+ "$ref": "#/components/schemas/EventVisitor"
28175
+ },
28176
+ "url": {
28177
+ "type": "string",
28178
+ "description": "The GitBook content's URL where feedback was submitted."
28179
+ },
28180
+ "referrer": {
28181
+ "type": "string",
28182
+ "description": "The URL of referrer that linked to the page."
28183
+ }
28184
+ },
28185
+ "required": [
28186
+ "type",
28187
+ "installationId",
28188
+ "siteId",
28189
+ "feedback",
28190
+ "visitor",
28191
+ "url",
28192
+ "referrer"
28193
+ ]
28194
+ }
28195
+ ]
28196
+ },
28095
28197
  "Event": {
28096
28198
  "description": "Any event that can be received from GitBook.",
28097
28199
  "oneOf": [
@@ -28145,6 +28247,9 @@
28145
28247
  },
28146
28248
  {
28147
28249
  "$ref": "#/components/schemas/ContentComputeRevisionEvent"
28250
+ },
28251
+ {
28252
+ "$ref": "#/components/schemas/PageFeedbackEvent"
28148
28253
  }
28149
28254
  ],
28150
28255
  "discriminator": {
@@ -32706,7 +32811,8 @@
32706
32811
  "StorageUploadKind": {
32707
32812
  "type": "string",
32708
32813
  "enum": [
32709
- "customization_font"
32814
+ "customization_font",
32815
+ "import_file"
32710
32816
  ]
32711
32817
  },
32712
32818
  "StorageUploadURL": {
@@ -32854,21 +32960,47 @@
32854
32960
  "maxLength": 512
32855
32961
  },
32856
32962
  "ContentImportSource": {
32857
- "type": "object",
32858
- "properties": {
32859
- "type": {
32860
- "type": "string",
32861
- "enum": [
32862
- "website"
32963
+ "oneOf": [
32964
+ {
32965
+ "type": "object",
32966
+ "properties": {
32967
+ "type": {
32968
+ "type": "string",
32969
+ "enum": [
32970
+ "website"
32971
+ ]
32972
+ },
32973
+ "url": {
32974
+ "$ref": "#/components/schemas/URL"
32975
+ }
32976
+ },
32977
+ "required": [
32978
+ "type",
32979
+ "url"
32863
32980
  ]
32864
32981
  },
32865
- "url": {
32866
- "$ref": "#/components/schemas/URL"
32982
+ {
32983
+ "type": "object",
32984
+ "properties": {
32985
+ "type": {
32986
+ "type": "string",
32987
+ "enum": [
32988
+ "file"
32989
+ ]
32990
+ },
32991
+ "files": {
32992
+ "type": "array",
32993
+ "items": {
32994
+ "description": "Key of file",
32995
+ "type": "string"
32996
+ }
32997
+ }
32998
+ },
32999
+ "required": [
33000
+ "type",
33001
+ "files"
33002
+ ]
32867
33003
  }
32868
- },
32869
- "required": [
32870
- "type",
32871
- "url"
32872
33004
  ]
32873
33005
  },
32874
33006
  "ChangeRequestPointer": {
@@ -35574,14 +35706,6 @@
35574
35706
  }
35575
35707
  ]
35576
35708
  },
35577
- "PageFeedbackRating": {
35578
- "type": "string",
35579
- "enum": [
35580
- "bad",
35581
- "ok",
35582
- "good"
35583
- ]
35584
- },
35585
35709
  "SiteInsightsEventPagePostFeedback": {
35586
35710
  "allOf": [
35587
35711
  {
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:
@@ -13081,6 +13086,7 @@ components:
13081
13086
  - $ref: "#/components/schemas/DocumentBlockIntegration"
13082
13087
  - $ref: "#/components/schemas/DocumentBlockMath"
13083
13088
  - $ref: "#/components/schemas/DocumentBlockQuote"
13089
+ - $ref: "#/components/schemas/DocumentBlockTable"
13084
13090
  isVoid:
13085
13091
  type: boolean
13086
13092
  enum:
@@ -15200,6 +15206,9 @@ components:
15200
15206
  status:
15201
15207
  description: The status of the review.
15202
15208
  $ref: "#/components/schemas/ChangeRequestReviewStatus"
15209
+ outdated:
15210
+ type: boolean
15211
+ description: Whether this review has been superseded by a newer review request or submission.
15203
15212
  comment:
15204
15213
  $ref: "#/components/schemas/Comment"
15205
15214
  createdAt:
@@ -15212,6 +15221,7 @@ components:
15212
15221
  - revision
15213
15222
  - reviewer
15214
15223
  - status
15224
+ - outdated
15215
15225
  - createdAt
15216
15226
  - updatedAt
15217
15227
  Team:
@@ -15864,6 +15874,7 @@ components:
15864
15874
  - space:metadata:read
15865
15875
  - space:metadata:write
15866
15876
  - space:git:sync
15877
+ - page:feedback:read
15867
15878
  - site:metadata:read
15868
15879
  - site:views:read
15869
15880
  - site:script:inject
@@ -16573,6 +16584,32 @@ components:
16573
16584
  required:
16574
16585
  - type
16575
16586
  - previous
16587
+ EventVisitor:
16588
+ type: object
16589
+ description: Analytics info on the GitBook's content visitor.
16590
+ properties:
16591
+ anonymousId:
16592
+ type: string
16593
+ description: GitBook's unique identifier of the visitor.
16594
+ cookies:
16595
+ type: object
16596
+ description: The visitors cookies.
16597
+ additionalProperties:
16598
+ type: string
16599
+ userAgent:
16600
+ type: string
16601
+ description: User-agent of the visitor.
16602
+ ip:
16603
+ type: string
16604
+ description: IP address of the visitor.
16605
+ language:
16606
+ type: string
16607
+ description: Language of the visitor.
16608
+ required:
16609
+ - anonymousId
16610
+ - cookies
16611
+ - userAgent
16612
+ - ip
16576
16613
  SiteViewEvent:
16577
16614
  allOf:
16578
16615
  - $ref: "#/components/schemas/SiteEvent"
@@ -16594,31 +16631,7 @@ components:
16594
16631
  type: string
16595
16632
  description: Unique identifier of the visited page.
16596
16633
  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
16634
+ $ref: "#/components/schemas/EventVisitor"
16622
16635
  url:
16623
16636
  type: string
16624
16637
  description: The GitBook content's URL visited (including URL params).
@@ -16979,6 +16992,64 @@ components:
16979
16992
  - content_compute_revision
16980
16993
  required:
16981
16994
  - type
16995
+ PageFeedbackRating:
16996
+ type: string
16997
+ enum:
16998
+ - bad
16999
+ - ok
17000
+ - good
17001
+ PageFeedbackEvent:
17002
+ allOf:
17003
+ - $ref: "#/components/schemas/BaseEvent"
17004
+ - type: object
17005
+ description: Event received when feedback has been submitted on a page.
17006
+ properties:
17007
+ type:
17008
+ type: string
17009
+ enum:
17010
+ - page_feedback
17011
+ installationId:
17012
+ type: string
17013
+ description: ID of the integration installation
17014
+ spaceId:
17015
+ type: string
17016
+ description: Unique identifier of the space in the site.
17017
+ deprecated: true
17018
+ siteId:
17019
+ type: string
17020
+ description: Unique identifier of the site.
17021
+ pageId:
17022
+ type: string
17023
+ description: Unique identifier of the page where feedback was submitted.
17024
+ feedback:
17025
+ type: object
17026
+ description: The feedback data submitted by the visitor.
17027
+ properties:
17028
+ rating:
17029
+ $ref: "#/components/schemas/PageFeedbackRating"
17030
+ comment:
17031
+ type: string
17032
+ description: Optional comment provided with the feedback.
17033
+ minLength: 1
17034
+ maxLength: 512
17035
+ required:
17036
+ - rating
17037
+ visitor:
17038
+ $ref: "#/components/schemas/EventVisitor"
17039
+ url:
17040
+ type: string
17041
+ description: The GitBook content's URL where feedback was submitted.
17042
+ referrer:
17043
+ type: string
17044
+ description: The URL of referrer that linked to the page.
17045
+ required:
17046
+ - type
17047
+ - installationId
17048
+ - siteId
17049
+ - feedback
17050
+ - visitor
17051
+ - url
17052
+ - referrer
16982
17053
  Event:
16983
17054
  description: Any event that can be received from GitBook.
16984
17055
  oneOf:
@@ -16999,6 +17070,7 @@ components:
16999
17070
  - $ref: "#/components/schemas/UIRenderEvent"
17000
17071
  - $ref: "#/components/schemas/ContentComputeDocumentEvent"
17001
17072
  - $ref: "#/components/schemas/ContentComputeRevisionEvent"
17073
+ - $ref: "#/components/schemas/PageFeedbackEvent"
17002
17074
  discriminator:
17003
17075
  propertyName: type
17004
17076
  IntegrationEvent:
@@ -20103,6 +20175,7 @@ components:
20103
20175
  type: string
20104
20176
  enum:
20105
20177
  - customization_font
20178
+ - import_file
20106
20179
  StorageUploadURL:
20107
20180
  type: object
20108
20181
  properties:
@@ -20206,17 +20279,32 @@ components:
20206
20279
  minLength: 1
20207
20280
  maxLength: 512
20208
20281
  ContentImportSource:
20209
- type: object
20210
- properties:
20211
- type:
20212
- type: string
20213
- enum:
20214
- - website
20215
- url:
20216
- $ref: "#/components/schemas/URL"
20217
- required:
20218
- - type
20219
- - url
20282
+ oneOf:
20283
+ - type: object
20284
+ properties:
20285
+ type:
20286
+ type: string
20287
+ enum:
20288
+ - website
20289
+ url:
20290
+ $ref: "#/components/schemas/URL"
20291
+ required:
20292
+ - type
20293
+ - url
20294
+ - type: object
20295
+ properties:
20296
+ type:
20297
+ type: string
20298
+ enum:
20299
+ - file
20300
+ files:
20301
+ type: array
20302
+ items:
20303
+ description: Key of file
20304
+ type: string
20305
+ required:
20306
+ - type
20307
+ - files
20220
20308
  ChangeRequestPointer:
20221
20309
  type: object
20222
20310
  properties:
@@ -22110,12 +22198,6 @@ components:
22110
22198
  - type
22111
22199
  - query
22112
22200
  - result
22113
- PageFeedbackRating:
22114
- type: string
22115
- enum:
22116
- - bad
22117
- - ok
22118
- - good
22119
22201
  SiteInsightsEventPagePostFeedback:
22120
22202
  allOf:
22121
22203
  - $ref: "#/components/schemas/SiteInsightsEventBase"