@gitbook/api 0.136.0 → 0.138.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
@@ -104,6 +104,7 @@ export declare enum TranslationLanguage {
104
104
  Ru = "ru",
105
105
  Ja = "ja",
106
106
  Zh = "zh",
107
+ Yue = "yue",
107
108
  Ko = "ko",
108
109
  Ar = "ar",
109
110
  Hi = "hi",
@@ -796,10 +797,15 @@ export interface DocumentTableDefinitionBase {
796
797
  /** Title for the column */
797
798
  title: string;
798
799
  }
800
+ export declare enum VerticalAlignment {
801
+ Top = "top",
802
+ Middle = "middle",
803
+ Bottom = "bottom"
804
+ }
799
805
  export type DocumentTableDefinitionText = DocumentTableDefinitionBase & {
800
806
  type: 'text';
801
807
  textAlignment: 'center' | 'right' | 'left';
802
- verticalAlignment?: 'top' | 'middle' | 'bottom';
808
+ verticalAlignment?: VerticalAlignment;
803
809
  };
804
810
  export type DocumentTableDefinitionNumber = DocumentTableDefinitionBase & {
805
811
  type: 'number';
@@ -1195,6 +1201,7 @@ export interface DocumentBlockColumn {
1195
1201
  isVoid?: false;
1196
1202
  data: {
1197
1203
  width?: Length;
1204
+ verticalAlignment?: VerticalAlignment;
1198
1205
  };
1199
1206
  }
1200
1207
  export interface DocumentBlockColumns {
@@ -2879,6 +2886,15 @@ export type InstallationSetupEvent = InstallationEvent & {
2879
2886
  configuration?: object;
2880
2887
  };
2881
2888
  };
2889
+ /** Event received when integration has been uninstalled from an organization. */
2890
+ export type InstallationDeletedEvent = InstallationEvent & {
2891
+ type: 'installation_deleted';
2892
+ /** The state of the installation before it was deleted. */
2893
+ previous: {
2894
+ /** The previous configuration of the installation. */
2895
+ configuration?: object;
2896
+ };
2897
+ };
2882
2898
  /** Common properties for all events related to a specific space. */
2883
2899
  export type SpaceEvent = InstallationEvent & {
2884
2900
  /** ID of the space */
@@ -3136,7 +3152,7 @@ export type ContentComputeRevisionEvent = ContentComputeEvent & {
3136
3152
  type: 'content_compute_revision';
3137
3153
  };
3138
3154
  /** Any event that can be received from GitBook. */
3139
- export type Event = InstallationSetupEvent | SpaceInstallationSetupEvent | SpaceInstallationDeletedEvent | SiteInstallationSetupEvent | SiteInstallationDeletedEvent | SpaceViewEvent | SiteViewEvent | SpaceContentUpdatedEvent | SpaceGitSyncCompletedEvent | SpaceGitSyncStartedEvent | SpaceVisibilityUpdatedEvent | FetchEvent | FetchPublishedScriptEvent | FetchVisitorAuthenticationEvent | UIRenderEvent | ContentComputeDocumentEvent | ContentComputeRevisionEvent;
3155
+ export type Event = InstallationSetupEvent | InstallationDeletedEvent | SpaceInstallationSetupEvent | SpaceInstallationDeletedEvent | SiteInstallationSetupEvent | SiteInstallationDeletedEvent | SpaceViewEvent | SiteViewEvent | SpaceContentUpdatedEvent | SpaceGitSyncCompletedEvent | SpaceGitSyncStartedEvent | SpaceVisibilityUpdatedEvent | FetchEvent | FetchPublishedScriptEvent | FetchVisitorAuthenticationEvent | UIRenderEvent | ContentComputeDocumentEvent | ContentComputeRevisionEvent;
3140
3156
  export interface IntegrationEvent {
3141
3157
  /** Unique ID of the event. */
3142
3158
  id: string;
@@ -4949,7 +4965,10 @@ export declare enum CustomizationSearchStyle {
4949
4965
  Prominent = "prominent",
4950
4966
  Subtle = "subtle"
4951
4967
  }
4952
- /** Language for the UI element */
4968
+ /**
4969
+ * Language for the UI element
4970
+ * @deprecated
4971
+ */
4953
4972
  export declare enum CustomizationLocale {
4954
4973
  En = "en",
4955
4974
  Fr = "fr",
@@ -5086,6 +5105,7 @@ export interface SiteCustomizationSettings {
5086
5105
  */
5087
5106
  search: CustomizationSearchStyle;
5088
5107
  };
5108
+ /** @deprecated */
5089
5109
  internationalization: {
5090
5110
  /** Language for the UI element */
5091
5111
  locale: CustomizationLocale;
@@ -5601,10 +5621,20 @@ export interface SiteInsightsEventSession {
5601
5621
  */
5602
5622
  visitorAuthClaims?: PlainObject;
5603
5623
  }
5624
+ /** Context in which the event was recorded. */
5625
+ export declare enum SiteInsightsDisplayContext {
5626
+ Site = "site",
5627
+ Embed = "embed"
5628
+ }
5604
5629
  /** Location of the event. */
5605
5630
  export interface SiteInsightsEventLocation {
5606
5631
  /** URL of the location. */
5607
5632
  url: URL;
5633
+ /**
5634
+ * Whether the event was tracked on the site or an embed widget.
5635
+ * @default "site"
5636
+ */
5637
+ displayContext?: SiteInsightsDisplayContext;
5608
5638
  /** ID of the concerned site section. */
5609
5639
  siteSection: string | null;
5610
5640
  /** ID of the concerned site space. */
@@ -5623,7 +5653,7 @@ export interface SiteInsightsEventBase {
5623
5653
  session: SiteInsightsEventSession;
5624
5654
  /** Location of the event. */
5625
5655
  location: SiteInsightsEventLocation;
5626
- /** Optional timestamp of the event. If not provided, the current timestamp will be used. */
5656
+ /** Optional timestamp of the event. If not provided, the current timestamp will be used. Must be within 5 minutes of the current time. */
5627
5657
  timestamp?: Timestamp;
5628
5658
  }
5629
5659
  export type SiteInsightsEventPageView = SiteInsightsEventBase & {
@@ -5675,6 +5705,10 @@ export type SiteInsightsEventAskQuestion = SiteInsightsEventBase & {
5675
5705
  /** Question being asked. */
5676
5706
  query: string;
5677
5707
  };
5708
+ /** Event when a user views the ask UI. */
5709
+ export type SiteInsightsEventAskView = SiteInsightsEventBase & {
5710
+ type: 'ask_view';
5711
+ };
5678
5712
  export type SiteInsightsEventAskRateResponse = SiteInsightsEventBase & {
5679
5713
  type: 'ask_rate_response';
5680
5714
  /** Question asked. */
@@ -5734,7 +5768,7 @@ export type SiteInsightsEventAdDisplay = SiteInsightsEventBase & {
5734
5768
  type: 'ad_display';
5735
5769
  ad: SiteInsightsAd;
5736
5770
  };
5737
- export type SiteInsightsEvent = SiteInsightsEventPageView | SiteInsightsEventSearchOpen | SiteInsightsEventSearchTypeQuery | SiteInsightsEventSearchOpenResult | SiteInsightsEventPagePostFeedback | SiteInsightsEventPagePostFeedbackComment | SiteInsightsEventAskQuestion | SiteInsightsEventAskRateResponse | SiteInsightsEventLinkClick | SiteInsightsEventAPIClientOpen | SiteInsightsEventAPIClientRequest | SiteInsightsEventTrademarkClick | SiteInsightsEventAdClick | SiteInsightsEventAdDisplay;
5771
+ export type SiteInsightsEvent = SiteInsightsEventPageView | SiteInsightsEventSearchOpen | SiteInsightsEventSearchTypeQuery | SiteInsightsEventSearchOpenResult | SiteInsightsEventPagePostFeedback | SiteInsightsEventPagePostFeedbackComment | SiteInsightsEventAskQuestion | SiteInsightsEventAskView | SiteInsightsEventAskRateResponse | SiteInsightsEventLinkClick | SiteInsightsEventAPIClientOpen | SiteInsightsEventAPIClientRequest | SiteInsightsEventTrademarkClick | SiteInsightsEventAdClick | SiteInsightsEventAdDisplay;
5738
5772
  export interface SiteInsightsQueryDateTimeColumn {
5739
5773
  column: 'datetime';
5740
5774
  interval?: 'hour' | 'day' | 'week' | 'month';
@@ -5755,6 +5789,8 @@ export type SiteInsightsQueryEventsColumn = SiteInsightsQueryDateTimeColumn | {
5755
5789
  column: 'siteSpace';
5756
5790
  } | {
5757
5791
  column: 'siteShareKey';
5792
+ } | {
5793
+ column: 'displayContext';
5758
5794
  } | {
5759
5795
  column: 'page';
5760
5796
  } | {
@@ -5834,6 +5870,7 @@ export declare enum SiteInsightsEventType {
5834
5870
  PagePostFeedback = "page_post_feedback",
5835
5871
  PagePostFeedbackComment = "page_post_feedback_comment",
5836
5872
  AskQuestion = "ask_question",
5873
+ AskView = "ask_view",
5837
5874
  AskRateResponse = "ask_rate_response",
5838
5875
  LinkClick = "link_click",
5839
5876
  ApiClientOpen = "api_client_open",
@@ -5930,6 +5967,9 @@ export type SiteInsightsQueryEventsValues = {
5930
5967
  } | {
5931
5968
  column: 'siteShareKey';
5932
5969
  values: (string | null)[];
5970
+ } | {
5971
+ column: 'displayContext';
5972
+ values: SiteInsightsDisplayContext[];
5933
5973
  } | {
5934
5974
  column: 'page';
5935
5975
  values: (null | {
@@ -12356,6 +12396,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
12356
12396
  /** The style of background to use. Set to null to reset the override. */
12357
12397
  background?: CustomizationBackground | null;
12358
12398
  };
12399
+ /** @deprecated */
12359
12400
  internationalization?: {
12360
12401
  /** The locale to use for the non-custom elements of the UI. Set to null to reset the override. */
12361
12402
  locale: CustomizationLocale | null;
package/dist/index.cjs CHANGED
@@ -257,6 +257,7 @@ __export(src_exports, {
257
257
  SiteExternalLinksTarget: () => SiteExternalLinksTarget,
258
258
  SiteFeatureKey: () => SiteFeatureKey,
259
259
  SiteInsightsAdPlacement: () => SiteInsightsAdPlacement,
260
+ SiteInsightsDisplayContext: () => SiteInsightsDisplayContext,
260
261
  SiteInsightsEventType: () => SiteInsightsEventType,
261
262
  SiteInsightsLinkPosition: () => SiteInsightsLinkPosition,
262
263
  SiteInsightsQueryOperator: () => SiteInsightsQueryOperator,
@@ -273,13 +274,14 @@ __export(src_exports, {
273
274
  TeamMemberRole: () => TeamMemberRole,
274
275
  TextAlignment: () => TextAlignment,
275
276
  TranslationLanguage: () => TranslationLanguage,
276
- TranslationStatus: () => TranslationStatus
277
+ TranslationStatus: () => TranslationStatus,
278
+ VerticalAlignment: () => VerticalAlignment
277
279
  });
278
280
  module.exports = __toCommonJS(src_exports);
279
281
 
280
282
  // package.json
281
283
  var name = "@gitbook/api";
282
- var version = "0.136.0";
284
+ var version = "0.138.0";
283
285
 
284
286
  // src/client.ts
285
287
  var import_event_iterator = __toESM(require_node(), 1);
@@ -404,6 +406,7 @@ var TranslationLanguage = /* @__PURE__ */ ((TranslationLanguage2) => {
404
406
  TranslationLanguage2["Ru"] = "ru";
405
407
  TranslationLanguage2["Ja"] = "ja";
406
408
  TranslationLanguage2["Zh"] = "zh";
409
+ TranslationLanguage2["Yue"] = "yue";
407
410
  TranslationLanguage2["Ko"] = "ko";
408
411
  TranslationLanguage2["Ar"] = "ar";
409
412
  TranslationLanguage2["Hi"] = "hi";
@@ -454,6 +457,12 @@ var TextAlignment = /* @__PURE__ */ ((TextAlignment2) => {
454
457
  TextAlignment2["End"] = "end";
455
458
  return TextAlignment2;
456
459
  })(TextAlignment || {});
460
+ var VerticalAlignment = /* @__PURE__ */ ((VerticalAlignment2) => {
461
+ VerticalAlignment2["Top"] = "top";
462
+ VerticalAlignment2["Middle"] = "middle";
463
+ VerticalAlignment2["Bottom"] = "bottom";
464
+ return VerticalAlignment2;
465
+ })(VerticalAlignment || {});
457
466
  var RevisionPageLayoutOptionsWidth = /* @__PURE__ */ ((RevisionPageLayoutOptionsWidth2) => {
458
467
  RevisionPageLayoutOptionsWidth2["Default"] = "default";
459
468
  RevisionPageLayoutOptionsWidth2["Wide"] = "wide";
@@ -900,6 +909,11 @@ var AIModel = /* @__PURE__ */ ((AIModel2) => {
900
909
  AIModel2["ReasoningHigh"] = "reasoning-high";
901
910
  return AIModel2;
902
911
  })(AIModel || {});
912
+ var SiteInsightsDisplayContext = /* @__PURE__ */ ((SiteInsightsDisplayContext2) => {
913
+ SiteInsightsDisplayContext2["Site"] = "site";
914
+ SiteInsightsDisplayContext2["Embed"] = "embed";
915
+ return SiteInsightsDisplayContext2;
916
+ })(SiteInsightsDisplayContext || {});
903
917
  var PageFeedbackRating = /* @__PURE__ */ ((PageFeedbackRating2) => {
904
918
  PageFeedbackRating2["Bad"] = "bad";
905
919
  PageFeedbackRating2["Ok"] = "ok";
@@ -933,6 +947,7 @@ var SiteInsightsEventType = /* @__PURE__ */ ((SiteInsightsEventType2) => {
933
947
  SiteInsightsEventType2["PagePostFeedback"] = "page_post_feedback";
934
948
  SiteInsightsEventType2["PagePostFeedbackComment"] = "page_post_feedback_comment";
935
949
  SiteInsightsEventType2["AskQuestion"] = "ask_question";
950
+ SiteInsightsEventType2["AskView"] = "ask_view";
936
951
  SiteInsightsEventType2["AskRateResponse"] = "ask_rate_response";
937
952
  SiteInsightsEventType2["LinkClick"] = "link_click";
938
953
  SiteInsightsEventType2["ApiClientOpen"] = "api_client_open";
@@ -3889,6 +3904,7 @@ var GitBookAPI = class extends Api {
3889
3904
  SiteExternalLinksTarget,
3890
3905
  SiteFeatureKey,
3891
3906
  SiteInsightsAdPlacement,
3907
+ SiteInsightsDisplayContext,
3892
3908
  SiteInsightsEventType,
3893
3909
  SiteInsightsLinkPosition,
3894
3910
  SiteInsightsQueryOperator,
@@ -3905,5 +3921,6 @@ var GitBookAPI = class extends Api {
3905
3921
  TeamMemberRole,
3906
3922
  TextAlignment,
3907
3923
  TranslationLanguage,
3908
- TranslationStatus
3924
+ TranslationStatus,
3925
+ VerticalAlignment
3909
3926
  });
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.136.0";
175
+ var version = "0.138.0";
176
176
 
177
177
  // src/client.ts
178
178
  var import_event_iterator = __toESM(require_node(), 1);
@@ -297,6 +297,7 @@ var TranslationLanguage = /* @__PURE__ */ ((TranslationLanguage2) => {
297
297
  TranslationLanguage2["Ru"] = "ru";
298
298
  TranslationLanguage2["Ja"] = "ja";
299
299
  TranslationLanguage2["Zh"] = "zh";
300
+ TranslationLanguage2["Yue"] = "yue";
300
301
  TranslationLanguage2["Ko"] = "ko";
301
302
  TranslationLanguage2["Ar"] = "ar";
302
303
  TranslationLanguage2["Hi"] = "hi";
@@ -347,6 +348,12 @@ var TextAlignment = /* @__PURE__ */ ((TextAlignment2) => {
347
348
  TextAlignment2["End"] = "end";
348
349
  return TextAlignment2;
349
350
  })(TextAlignment || {});
351
+ var VerticalAlignment = /* @__PURE__ */ ((VerticalAlignment2) => {
352
+ VerticalAlignment2["Top"] = "top";
353
+ VerticalAlignment2["Middle"] = "middle";
354
+ VerticalAlignment2["Bottom"] = "bottom";
355
+ return VerticalAlignment2;
356
+ })(VerticalAlignment || {});
350
357
  var RevisionPageLayoutOptionsWidth = /* @__PURE__ */ ((RevisionPageLayoutOptionsWidth2) => {
351
358
  RevisionPageLayoutOptionsWidth2["Default"] = "default";
352
359
  RevisionPageLayoutOptionsWidth2["Wide"] = "wide";
@@ -793,6 +800,11 @@ var AIModel = /* @__PURE__ */ ((AIModel2) => {
793
800
  AIModel2["ReasoningHigh"] = "reasoning-high";
794
801
  return AIModel2;
795
802
  })(AIModel || {});
803
+ var SiteInsightsDisplayContext = /* @__PURE__ */ ((SiteInsightsDisplayContext2) => {
804
+ SiteInsightsDisplayContext2["Site"] = "site";
805
+ SiteInsightsDisplayContext2["Embed"] = "embed";
806
+ return SiteInsightsDisplayContext2;
807
+ })(SiteInsightsDisplayContext || {});
796
808
  var PageFeedbackRating = /* @__PURE__ */ ((PageFeedbackRating2) => {
797
809
  PageFeedbackRating2["Bad"] = "bad";
798
810
  PageFeedbackRating2["Ok"] = "ok";
@@ -826,6 +838,7 @@ var SiteInsightsEventType = /* @__PURE__ */ ((SiteInsightsEventType2) => {
826
838
  SiteInsightsEventType2["PagePostFeedback"] = "page_post_feedback";
827
839
  SiteInsightsEventType2["PagePostFeedbackComment"] = "page_post_feedback_comment";
828
840
  SiteInsightsEventType2["AskQuestion"] = "ask_question";
841
+ SiteInsightsEventType2["AskView"] = "ask_view";
829
842
  SiteInsightsEventType2["AskRateResponse"] = "ask_rate_response";
830
843
  SiteInsightsEventType2["LinkClick"] = "link_click";
831
844
  SiteInsightsEventType2["ApiClientOpen"] = "api_client_open";
@@ -3781,6 +3794,7 @@ export {
3781
3794
  SiteExternalLinksTarget,
3782
3795
  SiteFeatureKey,
3783
3796
  SiteInsightsAdPlacement,
3797
+ SiteInsightsDisplayContext,
3784
3798
  SiteInsightsEventType,
3785
3799
  SiteInsightsLinkPosition,
3786
3800
  SiteInsightsQueryOperator,
@@ -3797,5 +3811,6 @@ export {
3797
3811
  TeamMemberRole,
3798
3812
  TextAlignment,
3799
3813
  TranslationLanguage,
3800
- TranslationStatus
3814
+ TranslationStatus,
3815
+ VerticalAlignment
3801
3816
  };
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.136.0",
7
+ "version": "0.138.0",
8
8
  "sideEffects": false,
9
9
  "files": [
10
10
  "README.md",
package/spec/openapi.json CHANGED
@@ -14409,6 +14409,7 @@
14409
14409
  },
14410
14410
  "internationalization": {
14411
14411
  "type": "object",
14412
+ "deprecated": true,
14412
14413
  "properties": {
14413
14414
  "locale": {
14414
14415
  "description": "The locale to use for the non-custom elements of the UI. Set to null to reset the override.",
@@ -17220,6 +17221,7 @@
17220
17221
  "ru",
17221
17222
  "ja",
17222
17223
  "zh",
17224
+ "yue",
17223
17225
  "ko",
17224
17226
  "ar",
17225
17227
  "hi",
@@ -19623,6 +19625,14 @@
19623
19625
  "title"
19624
19626
  ]
19625
19627
  },
19628
+ "VerticalAlignment": {
19629
+ "type": "string",
19630
+ "enum": [
19631
+ "top",
19632
+ "middle",
19633
+ "bottom"
19634
+ ]
19635
+ },
19626
19636
  "DocumentTableDefinitionText": {
19627
19637
  "allOf": [
19628
19638
  {
@@ -19646,12 +19656,7 @@
19646
19656
  ]
19647
19657
  },
19648
19658
  "verticalAlignment": {
19649
- "type": "string",
19650
- "enum": [
19651
- "top",
19652
- "middle",
19653
- "bottom"
19654
- ]
19659
+ "$ref": "#/components/schemas/VerticalAlignment"
19655
19660
  }
19656
19661
  },
19657
19662
  "required": [
@@ -21797,6 +21802,9 @@
21797
21802
  "properties": {
21798
21803
  "width": {
21799
21804
  "$ref": "#/components/schemas/Length"
21805
+ },
21806
+ "verticalAlignment": {
21807
+ "$ref": "#/components/schemas/VerticalAlignment"
21800
21808
  }
21801
21809
  },
21802
21810
  "additionalProperties": false
@@ -26777,6 +26785,39 @@
26777
26785
  }
26778
26786
  ]
26779
26787
  },
26788
+ "InstallationDeletedEvent": {
26789
+ "allOf": [
26790
+ {
26791
+ "$ref": "#/components/schemas/InstallationEvent"
26792
+ },
26793
+ {
26794
+ "type": "object",
26795
+ "description": "Event received when integration has been uninstalled from an organization.",
26796
+ "properties": {
26797
+ "type": {
26798
+ "type": "string",
26799
+ "enum": [
26800
+ "installation_deleted"
26801
+ ]
26802
+ },
26803
+ "previous": {
26804
+ "type": "object",
26805
+ "description": "The state of the installation before it was deleted.",
26806
+ "properties": {
26807
+ "configuration": {
26808
+ "type": "object",
26809
+ "description": "The previous configuration of the installation."
26810
+ }
26811
+ }
26812
+ }
26813
+ },
26814
+ "required": [
26815
+ "type",
26816
+ "previous"
26817
+ ]
26818
+ }
26819
+ ]
26820
+ },
26780
26821
  "SpaceEvent": {
26781
26822
  "allOf": [
26782
26823
  {
@@ -27713,6 +27754,9 @@
27713
27754
  {
27714
27755
  "$ref": "#/components/schemas/InstallationSetupEvent"
27715
27756
  },
27757
+ {
27758
+ "$ref": "#/components/schemas/InstallationDeletedEvent"
27759
+ },
27716
27760
  {
27717
27761
  "$ref": "#/components/schemas/SpaceInstallationSetupEvent"
27718
27762
  },
@@ -32926,6 +32970,7 @@
32926
32970
  "CustomizationLocale": {
32927
32971
  "type": "string",
32928
32972
  "description": "Language for the UI element",
32973
+ "deprecated": true,
32929
32974
  "enum": [
32930
32975
  "en",
32931
32976
  "fr",
@@ -33186,6 +33231,7 @@
33186
33231
  },
33187
33232
  "internationalization": {
33188
33233
  "type": "object",
33234
+ "deprecated": true,
33189
33235
  "properties": {
33190
33236
  "locale": {
33191
33237
  "$ref": "#/components/schemas/CustomizationLocale"
@@ -34076,8 +34122,7 @@
34076
34122
  },
34077
34123
  "required": [
34078
34124
  "name",
34079
- "description",
34080
- "confirmation"
34125
+ "description"
34081
34126
  ]
34082
34127
  },
34083
34128
  "AIToolCallOtherSummary": {
@@ -34836,6 +34881,14 @@
34836
34881
  "referrer"
34837
34882
  ]
34838
34883
  },
34884
+ "SiteInsightsDisplayContext": {
34885
+ "type": "string",
34886
+ "description": "Context in which the event was recorded.",
34887
+ "enum": [
34888
+ "site",
34889
+ "embed"
34890
+ ]
34891
+ },
34839
34892
  "SiteInsightsEventLocation": {
34840
34893
  "type": "object",
34841
34894
  "description": "Location of the event.",
@@ -34844,6 +34897,11 @@
34844
34897
  "description": "URL of the location.",
34845
34898
  "$ref": "#/components/schemas/URL"
34846
34899
  },
34900
+ "displayContext": {
34901
+ "description": "Whether the event was tracked on the site or an embed widget.",
34902
+ "$ref": "#/components/schemas/SiteInsightsDisplayContext",
34903
+ "default": "site"
34904
+ },
34847
34905
  "siteSection": {
34848
34906
  "type": "string",
34849
34907
  "description": "ID of the concerned site section.",
@@ -34895,7 +34953,7 @@
34895
34953
  "$ref": "#/components/schemas/SiteInsightsEventLocation"
34896
34954
  },
34897
34955
  "timestamp": {
34898
- "description": "Optional timestamp of the event. If not provided, the current timestamp will be used.",
34956
+ "description": "Optional timestamp of the event. If not provided, the current timestamp will be used. Must be within 5 minutes of the current time.",
34899
34957
  "$ref": "#/components/schemas/Timestamp"
34900
34958
  }
34901
34959
  },
@@ -35122,6 +35180,28 @@
35122
35180
  }
35123
35181
  ]
35124
35182
  },
35183
+ "SiteInsightsEventAskView": {
35184
+ "description": "Event when a user views the ask UI.",
35185
+ "allOf": [
35186
+ {
35187
+ "$ref": "#/components/schemas/SiteInsightsEventBase"
35188
+ },
35189
+ {
35190
+ "type": "object",
35191
+ "properties": {
35192
+ "type": {
35193
+ "type": "string",
35194
+ "enum": [
35195
+ "ask_view"
35196
+ ]
35197
+ }
35198
+ },
35199
+ "required": [
35200
+ "type"
35201
+ ]
35202
+ }
35203
+ ]
35204
+ },
35125
35205
  "SiteInsightsEventAskRateResponse": {
35126
35206
  "allOf": [
35127
35207
  {
@@ -35390,6 +35470,9 @@
35390
35470
  {
35391
35471
  "$ref": "#/components/schemas/SiteInsightsEventAskQuestion"
35392
35472
  },
35473
+ {
35474
+ "$ref": "#/components/schemas/SiteInsightsEventAskView"
35475
+ },
35393
35476
  {
35394
35477
  "$ref": "#/components/schemas/SiteInsightsEventAskRateResponse"
35395
35478
  },
@@ -35553,6 +35636,20 @@
35553
35636
  }
35554
35637
  }
35555
35638
  },
35639
+ {
35640
+ "type": "object",
35641
+ "required": [
35642
+ "column"
35643
+ ],
35644
+ "properties": {
35645
+ "column": {
35646
+ "type": "string",
35647
+ "enum": [
35648
+ "displayContext"
35649
+ ]
35650
+ }
35651
+ }
35652
+ },
35556
35653
  {
35557
35654
  "type": "object",
35558
35655
  "required": [
@@ -36022,6 +36119,7 @@
36022
36119
  "page_post_feedback",
36023
36120
  "page_post_feedback_comment",
36024
36121
  "ask_question",
36122
+ "ask_view",
36025
36123
  "ask_rate_response",
36026
36124
  "link_click",
36027
36125
  "api_client_open",
@@ -36484,6 +36582,27 @@
36484
36582
  }
36485
36583
  }
36486
36584
  },
36585
+ {
36586
+ "type": "object",
36587
+ "required": [
36588
+ "column",
36589
+ "values"
36590
+ ],
36591
+ "properties": {
36592
+ "column": {
36593
+ "type": "string",
36594
+ "enum": [
36595
+ "displayContext"
36596
+ ]
36597
+ },
36598
+ "values": {
36599
+ "type": "array",
36600
+ "items": {
36601
+ "$ref": "#/components/schemas/SiteInsightsDisplayContext"
36602
+ }
36603
+ }
36604
+ }
36605
+ },
36487
36606
  {
36488
36607
  "type": "object",
36489
36608
  "required": [
package/spec/openapi.yaml CHANGED
@@ -8138,6 +8138,7 @@ paths:
8138
8138
  - null
8139
8139
  internationalization:
8140
8140
  type: object
8141
+ deprecated: true
8141
8142
  properties:
8142
8143
  locale:
8143
8144
  description: The locale to use for the non-custom elements of the UI. Set to null to reset the override.
@@ -9911,6 +9912,7 @@ components:
9911
9912
  - ru
9912
9913
  - ja
9913
9914
  - zh
9915
+ - yue
9914
9916
  - ko
9915
9917
  - ar
9916
9918
  - hi
@@ -11525,6 +11527,12 @@ components:
11525
11527
  required:
11526
11528
  - id
11527
11529
  - title
11530
+ VerticalAlignment:
11531
+ type: string
11532
+ enum:
11533
+ - top
11534
+ - middle
11535
+ - bottom
11528
11536
  DocumentTableDefinitionText:
11529
11537
  allOf:
11530
11538
  - $ref: "#/components/schemas/DocumentTableDefinitionBase"
@@ -11541,11 +11549,7 @@ components:
11541
11549
  - right
11542
11550
  - left
11543
11551
  verticalAlignment:
11544
- type: string
11545
- enum:
11546
- - top
11547
- - middle
11548
- - bottom
11552
+ $ref: "#/components/schemas/VerticalAlignment"
11549
11553
  required:
11550
11554
  - type
11551
11555
  - textAlignment
@@ -12839,6 +12843,8 @@ components:
12839
12843
  properties:
12840
12844
  width:
12841
12845
  $ref: "#/components/schemas/Length"
12846
+ verticalAlignment:
12847
+ $ref: "#/components/schemas/VerticalAlignment"
12842
12848
  additionalProperties: false
12843
12849
  required:
12844
12850
  - object
@@ -16165,6 +16171,26 @@ components:
16165
16171
  required:
16166
16172
  - type
16167
16173
  - status
16174
+ InstallationDeletedEvent:
16175
+ allOf:
16176
+ - $ref: "#/components/schemas/InstallationEvent"
16177
+ - type: object
16178
+ description: Event received when integration has been uninstalled from an organization.
16179
+ properties:
16180
+ type:
16181
+ type: string
16182
+ enum:
16183
+ - installation_deleted
16184
+ previous:
16185
+ type: object
16186
+ description: The state of the installation before it was deleted.
16187
+ properties:
16188
+ configuration:
16189
+ type: object
16190
+ description: The previous configuration of the installation.
16191
+ required:
16192
+ - type
16193
+ - previous
16168
16194
  SpaceEvent:
16169
16195
  allOf:
16170
16196
  - $ref: "#/components/schemas/InstallationEvent"
@@ -16743,6 +16769,7 @@ components:
16743
16769
  description: Any event that can be received from GitBook.
16744
16770
  oneOf:
16745
16771
  - $ref: "#/components/schemas/InstallationSetupEvent"
16772
+ - $ref: "#/components/schemas/InstallationDeletedEvent"
16746
16773
  - $ref: "#/components/schemas/SpaceInstallationSetupEvent"
16747
16774
  - $ref: "#/components/schemas/SpaceInstallationDeletedEvent"
16748
16775
  - $ref: "#/components/schemas/SiteInstallationSetupEvent"
@@ -20296,6 +20323,7 @@ components:
20296
20323
  CustomizationLocale:
20297
20324
  type: string
20298
20325
  description: Language for the UI element
20326
+ deprecated: true
20299
20327
  enum:
20300
20328
  - en
20301
20329
  - fr
@@ -20488,6 +20516,7 @@ components:
20488
20516
  - search
20489
20517
  internationalization:
20490
20518
  type: object
20519
+ deprecated: true
20491
20520
  properties:
20492
20521
  locale:
20493
20522
  $ref: "#/components/schemas/CustomizationLocale"
@@ -21086,7 +21115,6 @@ components:
21086
21115
  required:
21087
21116
  - name
21088
21117
  - description
21089
- - confirmation
21090
21118
  AIToolCallOtherSummary:
21091
21119
  type: object
21092
21120
  description: Summary of a generic tool call.
@@ -21633,6 +21661,12 @@ components:
21633
21661
  - userAgent
21634
21662
  - language
21635
21663
  - referrer
21664
+ SiteInsightsDisplayContext:
21665
+ type: string
21666
+ description: Context in which the event was recorded.
21667
+ enum:
21668
+ - site
21669
+ - embed
21636
21670
  SiteInsightsEventLocation:
21637
21671
  type: object
21638
21672
  description: Location of the event.
@@ -21640,6 +21674,10 @@ components:
21640
21674
  url:
21641
21675
  description: URL of the location.
21642
21676
  $ref: "#/components/schemas/URL"
21677
+ displayContext:
21678
+ description: Whether the event was tracked on the site or an embed widget.
21679
+ $ref: "#/components/schemas/SiteInsightsDisplayContext"
21680
+ default: site
21643
21681
  siteSection:
21644
21682
  type: string
21645
21683
  description: ID of the concerned site section.
@@ -21680,7 +21718,7 @@ components:
21680
21718
  location:
21681
21719
  $ref: "#/components/schemas/SiteInsightsEventLocation"
21682
21720
  timestamp:
21683
- description: Optional timestamp of the event. If not provided, the current timestamp will be used.
21721
+ description: Optional timestamp of the event. If not provided, the current timestamp will be used. Must be within 5 minutes of the current time.
21684
21722
  $ref: "#/components/schemas/Timestamp"
21685
21723
  required:
21686
21724
  - session
@@ -21814,6 +21852,18 @@ components:
21814
21852
  required:
21815
21853
  - type
21816
21854
  - query
21855
+ SiteInsightsEventAskView:
21856
+ description: Event when a user views the ask UI.
21857
+ allOf:
21858
+ - $ref: "#/components/schemas/SiteInsightsEventBase"
21859
+ - type: object
21860
+ properties:
21861
+ type:
21862
+ type: string
21863
+ enum:
21864
+ - ask_view
21865
+ required:
21866
+ - type
21817
21867
  SiteInsightsEventAskRateResponse:
21818
21868
  allOf:
21819
21869
  - $ref: "#/components/schemas/SiteInsightsEventBase"
@@ -21972,6 +22022,7 @@ components:
21972
22022
  - $ref: "#/components/schemas/SiteInsightsEventPagePostFeedback"
21973
22023
  - $ref: "#/components/schemas/SiteInsightsEventPagePostFeedbackComment"
21974
22024
  - $ref: "#/components/schemas/SiteInsightsEventAskQuestion"
22025
+ - $ref: "#/components/schemas/SiteInsightsEventAskView"
21975
22026
  - $ref: "#/components/schemas/SiteInsightsEventAskRateResponse"
21976
22027
  - $ref: "#/components/schemas/SiteInsightsEventLinkClick"
21977
22028
  - $ref: "#/components/schemas/SiteInsightsEventAPIClientOpen"
@@ -22062,6 +22113,14 @@ components:
22062
22113
  type: string
22063
22114
  enum:
22064
22115
  - siteShareKey
22116
+ - type: object
22117
+ required:
22118
+ - column
22119
+ properties:
22120
+ column:
22121
+ type: string
22122
+ enum:
22123
+ - displayContext
22065
22124
  - type: object
22066
22125
  required:
22067
22126
  - column
@@ -22335,6 +22394,7 @@ components:
22335
22394
  - page_post_feedback
22336
22395
  - page_post_feedback_comment
22337
22396
  - ask_question
22397
+ - ask_view
22338
22398
  - ask_rate_response
22339
22399
  - link_click
22340
22400
  - api_client_open
@@ -22635,6 +22695,19 @@ components:
22635
22695
  items:
22636
22696
  type: string
22637
22697
  nullable: true
22698
+ - type: object
22699
+ required:
22700
+ - column
22701
+ - values
22702
+ properties:
22703
+ column:
22704
+ type: string
22705
+ enum:
22706
+ - displayContext
22707
+ values:
22708
+ type: array
22709
+ items:
22710
+ $ref: "#/components/schemas/SiteInsightsDisplayContext"
22638
22711
  - type: object
22639
22712
  required:
22640
22713
  - column