@gitbook/api 0.108.0 → 0.109.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
@@ -476,7 +476,15 @@ export interface DocumentMarkColor {
476
476
  background: 'default' | 'green' | 'blue' | 'red' | 'orange' | 'yellow' | 'purple';
477
477
  };
478
478
  }
479
- export type DocumentTextMark = DocumentMarkBold | DocumentMarkItalic | DocumentMarkCode | DocumentMarkKeyboard | DocumentMarkStrikethrough | DocumentMarkColor;
479
+ export interface DocumentMarkSuperscript {
480
+ object: 'mark';
481
+ type: 'superscript';
482
+ }
483
+ export interface DocumentMarkSubscript {
484
+ object: 'mark';
485
+ type: 'subscript';
486
+ }
487
+ export type DocumentTextMark = DocumentMarkBold | DocumentMarkItalic | DocumentMarkCode | DocumentMarkKeyboard | DocumentMarkStrikethrough | DocumentMarkColor | DocumentMarkSuperscript | DocumentMarkSubscript;
480
488
  export interface DocumentTextLeaf {
481
489
  object: 'leaf';
482
490
  text: string;
@@ -581,7 +589,7 @@ export interface DocumentBlockParagraph {
581
589
  isVoid?: false;
582
590
  data?: object;
583
591
  }
584
- export type DocumentInline = DocumentInlineLink | DocumentInlineEmoji | DocumentInlineMath | DocumentInlineImage | DocumentInlineAnnotation | DocumentInlineMention;
592
+ export type DocumentInline = DocumentInlineLink | DocumentInlineEmoji | DocumentInlineMath | DocumentInlineImage | DocumentInlineAnnotation | DocumentInlineMention | DocumentInlineButton;
585
593
  export interface DocumentBlockHeading {
586
594
  object: 'block';
587
595
  type: 'heading-1' | 'heading-2' | 'heading-3';
@@ -1070,6 +1078,19 @@ export interface DocumentInlineMention {
1070
1078
  };
1071
1079
  isVoid: true;
1072
1080
  }
1081
+ export interface DocumentInlineButton {
1082
+ object: 'inline';
1083
+ type: 'button';
1084
+ key?: string;
1085
+ data: {
1086
+ label: string;
1087
+ kind: 'primary' | 'secondary';
1088
+ } & {
1089
+ /** A relative reference to content in GitBook. */
1090
+ ref: ContentRef;
1091
+ };
1092
+ isVoid: true;
1093
+ }
1073
1094
  export type DocumentBlocksTopLevels = DocumentBlocksEssentials | DocumentBlockQuote | DocumentBlockHint | DocumentBlockImages | DocumentBlockFile | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockCode | DocumentBlockMath | DocumentBlockExpandable | DocumentBlockTabs | DocumentBlockTable | DocumentBlockOpenAPI | DocumentBlockOpenAPIOperation | DocumentBlockOpenAPISchemas | DocumentBlockContentRef | DocumentBlockIntegration | DocumentBlockReusableContent | DocumentBlockStepper;
1074
1095
  export interface JSONDocument {
1075
1096
  object: 'document';
package/dist/index.cjs CHANGED
@@ -268,7 +268,7 @@ module.exports = __toCommonJS(src_exports);
268
268
 
269
269
  // package.json
270
270
  var name = "@gitbook/api";
271
- var version = "0.108.0";
271
+ var version = "0.109.0";
272
272
 
273
273
  // src/client.ts
274
274
  var import_event_iterator = __toESM(require_node(), 1);
package/dist/index.js CHANGED
@@ -172,7 +172,7 @@ var require_node = __commonJS({
172
172
 
173
173
  // package.json
174
174
  var name = "@gitbook/api";
175
- var version = "0.108.0";
175
+ var version = "0.109.0";
176
176
 
177
177
  // src/client.ts
178
178
  var import_event_iterator = __toESM(require_node(), 1);
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "main": "./dist/index.cjs",
5
5
  "module": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
7
- "version": "0.108.0",
7
+ "version": "0.109.0",
8
8
  "sideEffects": false,
9
9
  "files": [
10
10
  "README.md",
package/spec/openapi.json CHANGED
@@ -17508,6 +17508,48 @@
17508
17508
  "data"
17509
17509
  ]
17510
17510
  },
17511
+ "DocumentMarkSuperscript": {
17512
+ "type": "object",
17513
+ "properties": {
17514
+ "object": {
17515
+ "type": "string",
17516
+ "enum": [
17517
+ "mark"
17518
+ ]
17519
+ },
17520
+ "type": {
17521
+ "type": "string",
17522
+ "enum": [
17523
+ "superscript"
17524
+ ]
17525
+ }
17526
+ },
17527
+ "required": [
17528
+ "object",
17529
+ "type"
17530
+ ]
17531
+ },
17532
+ "DocumentMarkSubscript": {
17533
+ "type": "object",
17534
+ "properties": {
17535
+ "object": {
17536
+ "type": "string",
17537
+ "enum": [
17538
+ "mark"
17539
+ ]
17540
+ },
17541
+ "type": {
17542
+ "type": "string",
17543
+ "enum": [
17544
+ "subscript"
17545
+ ]
17546
+ }
17547
+ },
17548
+ "required": [
17549
+ "object",
17550
+ "type"
17551
+ ]
17552
+ },
17511
17553
  "DocumentTextMark": {
17512
17554
  "oneOf": [
17513
17555
  {
@@ -17527,6 +17569,12 @@
17527
17569
  },
17528
17570
  {
17529
17571
  "$ref": "#/components/schemas/DocumentMarkColor"
17572
+ },
17573
+ {
17574
+ "$ref": "#/components/schemas/DocumentMarkSuperscript"
17575
+ },
17576
+ {
17577
+ "$ref": "#/components/schemas/DocumentMarkSubscript"
17530
17578
  }
17531
17579
  ]
17532
17580
  },
@@ -18066,6 +18114,9 @@
18066
18114
  },
18067
18115
  {
18068
18116
  "$ref": "#/components/schemas/DocumentInlineMention"
18117
+ },
18118
+ {
18119
+ "$ref": "#/components/schemas/DocumentInlineButton"
18069
18120
  }
18070
18121
  ]
18071
18122
  },
@@ -20648,6 +20699,76 @@
20648
20699
  "isVoid"
20649
20700
  ]
20650
20701
  },
20702
+ "DocumentInlineButton": {
20703
+ "type": "object",
20704
+ "properties": {
20705
+ "object": {
20706
+ "type": "string",
20707
+ "enum": [
20708
+ "inline"
20709
+ ]
20710
+ },
20711
+ "type": {
20712
+ "type": "string",
20713
+ "enum": [
20714
+ "button"
20715
+ ]
20716
+ },
20717
+ "key": {
20718
+ "type": "string"
20719
+ },
20720
+ "data": {
20721
+ "allOf": [
20722
+ {
20723
+ "type": "object",
20724
+ "properties": {
20725
+ "label": {
20726
+ "type": "string"
20727
+ },
20728
+ "kind": {
20729
+ "type": "string",
20730
+ "enum": [
20731
+ "primary",
20732
+ "secondary"
20733
+ ]
20734
+ }
20735
+ },
20736
+ "required": [
20737
+ "label",
20738
+ "kind"
20739
+ ]
20740
+ },
20741
+ {
20742
+ "oneOf": [
20743
+ {
20744
+ "type": "object",
20745
+ "properties": {
20746
+ "ref": {
20747
+ "$ref": "#/components/schemas/ContentRef"
20748
+ }
20749
+ },
20750
+ "required": [
20751
+ "ref"
20752
+ ]
20753
+ }
20754
+ ]
20755
+ }
20756
+ ]
20757
+ },
20758
+ "isVoid": {
20759
+ "type": "boolean",
20760
+ "enum": [
20761
+ true
20762
+ ]
20763
+ }
20764
+ },
20765
+ "required": [
20766
+ "object",
20767
+ "type",
20768
+ "data",
20769
+ "isVoid"
20770
+ ]
20771
+ },
20651
20772
  "DocumentBlocksTopLevels": {
20652
20773
  "oneOf": [
20653
20774
  {
package/spec/openapi.yaml CHANGED
@@ -10068,6 +10068,34 @@ components:
10068
10068
  - object
10069
10069
  - type
10070
10070
  - data
10071
+ DocumentMarkSuperscript:
10072
+ type: object
10073
+ properties:
10074
+ object:
10075
+ type: string
10076
+ enum:
10077
+ - mark
10078
+ type:
10079
+ type: string
10080
+ enum:
10081
+ - superscript
10082
+ required:
10083
+ - object
10084
+ - type
10085
+ DocumentMarkSubscript:
10086
+ type: object
10087
+ properties:
10088
+ object:
10089
+ type: string
10090
+ enum:
10091
+ - mark
10092
+ type:
10093
+ type: string
10094
+ enum:
10095
+ - subscript
10096
+ required:
10097
+ - object
10098
+ - type
10071
10099
  DocumentTextMark:
10072
10100
  oneOf:
10073
10101
  - $ref: "#/components/schemas/DocumentMarkBold"
@@ -10076,6 +10104,8 @@ components:
10076
10104
  - $ref: "#/components/schemas/DocumentMarkKeyboard"
10077
10105
  - $ref: "#/components/schemas/DocumentMarkStrikethrough"
10078
10106
  - $ref: "#/components/schemas/DocumentMarkColor"
10107
+ - $ref: "#/components/schemas/DocumentMarkSuperscript"
10108
+ - $ref: "#/components/schemas/DocumentMarkSubscript"
10079
10109
  DocumentTextLeaf:
10080
10110
  type: object
10081
10111
  properties:
@@ -10413,6 +10443,7 @@ components:
10413
10443
  - $ref: "#/components/schemas/DocumentInlineImage"
10414
10444
  - $ref: "#/components/schemas/DocumentInlineAnnotation"
10415
10445
  - $ref: "#/components/schemas/DocumentInlineMention"
10446
+ - $ref: "#/components/schemas/DocumentInlineButton"
10416
10447
  DocumentBlockHeading:
10417
10448
  type: object
10418
10449
  properties:
@@ -12000,6 +12031,49 @@ components:
12000
12031
  - type
12001
12032
  - data
12002
12033
  - isVoid
12034
+ DocumentInlineButton:
12035
+ type: object
12036
+ properties:
12037
+ object:
12038
+ type: string
12039
+ enum:
12040
+ - inline
12041
+ type:
12042
+ type: string
12043
+ enum:
12044
+ - button
12045
+ key:
12046
+ type: string
12047
+ data:
12048
+ allOf:
12049
+ - type: object
12050
+ properties:
12051
+ label:
12052
+ type: string
12053
+ kind:
12054
+ type: string
12055
+ enum:
12056
+ - primary
12057
+ - secondary
12058
+ required:
12059
+ - label
12060
+ - kind
12061
+ - oneOf:
12062
+ - type: object
12063
+ properties:
12064
+ ref:
12065
+ $ref: "#/components/schemas/ContentRef"
12066
+ required:
12067
+ - ref
12068
+ isVoid:
12069
+ type: boolean
12070
+ enum:
12071
+ - true
12072
+ required:
12073
+ - object
12074
+ - type
12075
+ - data
12076
+ - isVoid
12003
12077
  DocumentBlocksTopLevels:
12004
12078
  oneOf:
12005
12079
  - $ref: "#/components/schemas/DocumentBlocksEssentials"