@gitbook/api 0.136.0 → 0.137.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;
@@ -5623,7 +5639,7 @@ export interface SiteInsightsEventBase {
5623
5639
  session: SiteInsightsEventSession;
5624
5640
  /** Location of the event. */
5625
5641
  location: SiteInsightsEventLocation;
5626
- /** Optional timestamp of the event. If not provided, the current timestamp will be used. */
5642
+ /** Optional timestamp of the event. If not provided, the current timestamp will be used. Must be within 5 minutes of the current time. */
5627
5643
  timestamp?: Timestamp;
5628
5644
  }
5629
5645
  export type SiteInsightsEventPageView = SiteInsightsEventBase & {
package/dist/index.cjs CHANGED
@@ -273,13 +273,14 @@ __export(src_exports, {
273
273
  TeamMemberRole: () => TeamMemberRole,
274
274
  TextAlignment: () => TextAlignment,
275
275
  TranslationLanguage: () => TranslationLanguage,
276
- TranslationStatus: () => TranslationStatus
276
+ TranslationStatus: () => TranslationStatus,
277
+ VerticalAlignment: () => VerticalAlignment
277
278
  });
278
279
  module.exports = __toCommonJS(src_exports);
279
280
 
280
281
  // package.json
281
282
  var name = "@gitbook/api";
282
- var version = "0.136.0";
283
+ var version = "0.137.0";
283
284
 
284
285
  // src/client.ts
285
286
  var import_event_iterator = __toESM(require_node(), 1);
@@ -404,6 +405,7 @@ var TranslationLanguage = /* @__PURE__ */ ((TranslationLanguage2) => {
404
405
  TranslationLanguage2["Ru"] = "ru";
405
406
  TranslationLanguage2["Ja"] = "ja";
406
407
  TranslationLanguage2["Zh"] = "zh";
408
+ TranslationLanguage2["Yue"] = "yue";
407
409
  TranslationLanguage2["Ko"] = "ko";
408
410
  TranslationLanguage2["Ar"] = "ar";
409
411
  TranslationLanguage2["Hi"] = "hi";
@@ -454,6 +456,12 @@ var TextAlignment = /* @__PURE__ */ ((TextAlignment2) => {
454
456
  TextAlignment2["End"] = "end";
455
457
  return TextAlignment2;
456
458
  })(TextAlignment || {});
459
+ var VerticalAlignment = /* @__PURE__ */ ((VerticalAlignment2) => {
460
+ VerticalAlignment2["Top"] = "top";
461
+ VerticalAlignment2["Middle"] = "middle";
462
+ VerticalAlignment2["Bottom"] = "bottom";
463
+ return VerticalAlignment2;
464
+ })(VerticalAlignment || {});
457
465
  var RevisionPageLayoutOptionsWidth = /* @__PURE__ */ ((RevisionPageLayoutOptionsWidth2) => {
458
466
  RevisionPageLayoutOptionsWidth2["Default"] = "default";
459
467
  RevisionPageLayoutOptionsWidth2["Wide"] = "wide";
@@ -3905,5 +3913,6 @@ var GitBookAPI = class extends Api {
3905
3913
  TeamMemberRole,
3906
3914
  TextAlignment,
3907
3915
  TranslationLanguage,
3908
- TranslationStatus
3916
+ TranslationStatus,
3917
+ VerticalAlignment
3909
3918
  });
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.137.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";
@@ -3797,5 +3804,6 @@ export {
3797
3804
  TeamMemberRole,
3798
3805
  TextAlignment,
3799
3806
  TranslationLanguage,
3800
- TranslationStatus
3807
+ TranslationStatus,
3808
+ VerticalAlignment
3801
3809
  };
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.137.0",
8
8
  "sideEffects": false,
9
9
  "files": [
10
10
  "README.md",
package/spec/openapi.json CHANGED
@@ -17220,6 +17220,7 @@
17220
17220
  "ru",
17221
17221
  "ja",
17222
17222
  "zh",
17223
+ "yue",
17223
17224
  "ko",
17224
17225
  "ar",
17225
17226
  "hi",
@@ -19623,6 +19624,14 @@
19623
19624
  "title"
19624
19625
  ]
19625
19626
  },
19627
+ "VerticalAlignment": {
19628
+ "type": "string",
19629
+ "enum": [
19630
+ "top",
19631
+ "middle",
19632
+ "bottom"
19633
+ ]
19634
+ },
19626
19635
  "DocumentTableDefinitionText": {
19627
19636
  "allOf": [
19628
19637
  {
@@ -19646,12 +19655,7 @@
19646
19655
  ]
19647
19656
  },
19648
19657
  "verticalAlignment": {
19649
- "type": "string",
19650
- "enum": [
19651
- "top",
19652
- "middle",
19653
- "bottom"
19654
- ]
19658
+ "$ref": "#/components/schemas/VerticalAlignment"
19655
19659
  }
19656
19660
  },
19657
19661
  "required": [
@@ -21797,6 +21801,9 @@
21797
21801
  "properties": {
21798
21802
  "width": {
21799
21803
  "$ref": "#/components/schemas/Length"
21804
+ },
21805
+ "verticalAlignment": {
21806
+ "$ref": "#/components/schemas/VerticalAlignment"
21800
21807
  }
21801
21808
  },
21802
21809
  "additionalProperties": false
@@ -26777,6 +26784,39 @@
26777
26784
  }
26778
26785
  ]
26779
26786
  },
26787
+ "InstallationDeletedEvent": {
26788
+ "allOf": [
26789
+ {
26790
+ "$ref": "#/components/schemas/InstallationEvent"
26791
+ },
26792
+ {
26793
+ "type": "object",
26794
+ "description": "Event received when integration has been uninstalled from an organization.",
26795
+ "properties": {
26796
+ "type": {
26797
+ "type": "string",
26798
+ "enum": [
26799
+ "installation_deleted"
26800
+ ]
26801
+ },
26802
+ "previous": {
26803
+ "type": "object",
26804
+ "description": "The state of the installation before it was deleted.",
26805
+ "properties": {
26806
+ "configuration": {
26807
+ "type": "object",
26808
+ "description": "The previous configuration of the installation."
26809
+ }
26810
+ }
26811
+ }
26812
+ },
26813
+ "required": [
26814
+ "type",
26815
+ "previous"
26816
+ ]
26817
+ }
26818
+ ]
26819
+ },
26780
26820
  "SpaceEvent": {
26781
26821
  "allOf": [
26782
26822
  {
@@ -27713,6 +27753,9 @@
27713
27753
  {
27714
27754
  "$ref": "#/components/schemas/InstallationSetupEvent"
27715
27755
  },
27756
+ {
27757
+ "$ref": "#/components/schemas/InstallationDeletedEvent"
27758
+ },
27716
27759
  {
27717
27760
  "$ref": "#/components/schemas/SpaceInstallationSetupEvent"
27718
27761
  },
@@ -34895,7 +34938,7 @@
34895
34938
  "$ref": "#/components/schemas/SiteInsightsEventLocation"
34896
34939
  },
34897
34940
  "timestamp": {
34898
- "description": "Optional timestamp of the event. If not provided, the current timestamp will be used.",
34941
+ "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
34942
  "$ref": "#/components/schemas/Timestamp"
34900
34943
  }
34901
34944
  },
package/spec/openapi.yaml CHANGED
@@ -9911,6 +9911,7 @@ components:
9911
9911
  - ru
9912
9912
  - ja
9913
9913
  - zh
9914
+ - yue
9914
9915
  - ko
9915
9916
  - ar
9916
9917
  - hi
@@ -11525,6 +11526,12 @@ components:
11525
11526
  required:
11526
11527
  - id
11527
11528
  - title
11529
+ VerticalAlignment:
11530
+ type: string
11531
+ enum:
11532
+ - top
11533
+ - middle
11534
+ - bottom
11528
11535
  DocumentTableDefinitionText:
11529
11536
  allOf:
11530
11537
  - $ref: "#/components/schemas/DocumentTableDefinitionBase"
@@ -11541,11 +11548,7 @@ components:
11541
11548
  - right
11542
11549
  - left
11543
11550
  verticalAlignment:
11544
- type: string
11545
- enum:
11546
- - top
11547
- - middle
11548
- - bottom
11551
+ $ref: "#/components/schemas/VerticalAlignment"
11549
11552
  required:
11550
11553
  - type
11551
11554
  - textAlignment
@@ -12839,6 +12842,8 @@ components:
12839
12842
  properties:
12840
12843
  width:
12841
12844
  $ref: "#/components/schemas/Length"
12845
+ verticalAlignment:
12846
+ $ref: "#/components/schemas/VerticalAlignment"
12842
12847
  additionalProperties: false
12843
12848
  required:
12844
12849
  - object
@@ -16165,6 +16170,26 @@ components:
16165
16170
  required:
16166
16171
  - type
16167
16172
  - status
16173
+ InstallationDeletedEvent:
16174
+ allOf:
16175
+ - $ref: "#/components/schemas/InstallationEvent"
16176
+ - type: object
16177
+ description: Event received when integration has been uninstalled from an organization.
16178
+ properties:
16179
+ type:
16180
+ type: string
16181
+ enum:
16182
+ - installation_deleted
16183
+ previous:
16184
+ type: object
16185
+ description: The state of the installation before it was deleted.
16186
+ properties:
16187
+ configuration:
16188
+ type: object
16189
+ description: The previous configuration of the installation.
16190
+ required:
16191
+ - type
16192
+ - previous
16168
16193
  SpaceEvent:
16169
16194
  allOf:
16170
16195
  - $ref: "#/components/schemas/InstallationEvent"
@@ -16743,6 +16768,7 @@ components:
16743
16768
  description: Any event that can be received from GitBook.
16744
16769
  oneOf:
16745
16770
  - $ref: "#/components/schemas/InstallationSetupEvent"
16771
+ - $ref: "#/components/schemas/InstallationDeletedEvent"
16746
16772
  - $ref: "#/components/schemas/SpaceInstallationSetupEvent"
16747
16773
  - $ref: "#/components/schemas/SpaceInstallationDeletedEvent"
16748
16774
  - $ref: "#/components/schemas/SiteInstallationSetupEvent"
@@ -21680,7 +21706,7 @@ components:
21680
21706
  location:
21681
21707
  $ref: "#/components/schemas/SiteInsightsEventLocation"
21682
21708
  timestamp:
21683
- description: Optional timestamp of the event. If not provided, the current timestamp will be used.
21709
+ 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
21710
  $ref: "#/components/schemas/Timestamp"
21685
21711
  required:
21686
21712
  - session