@gitbook/api 0.67.0 → 0.69.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
@@ -149,8 +149,12 @@ export interface ContentRefSyncedBlock {
149
149
  kind: 'synced-block';
150
150
  syncedBlock: string;
151
151
  }
152
+ export interface ContentRefReusableContent {
153
+ kind: 'reusable-content';
154
+ reusableContent: string;
155
+ }
152
156
  /** A relative reference to content in GitBook. */
153
- export type ContentRef = ContentRefFile | ContentRefURL | ContentRefPage | ContentRefAnchor | ContentRefUser | ContentRefCollection | ContentRefSpace | ContentRefSnippet | ContentRefSyncedBlock;
157
+ export type ContentRef = ContentRefFile | ContentRefURL | ContentRefPage | ContentRefAnchor | ContentRefUser | ContentRefCollection | ContentRefSpace | ContentRefSnippet | ContentRefSyncedBlock | ContentRefReusableContent;
154
158
  export interface DocumentInlineLink {
155
159
  object: 'inline';
156
160
  type: 'link';
@@ -625,7 +629,34 @@ export interface DocumentBlockSyncedBlock {
625
629
  };
626
630
  isVoid: true;
627
631
  }
628
- export type DocumentBlocksTopLevels = DocumentBlocksEssentials | DocumentBlockQuote | DocumentBlockHint | DocumentBlockImages | DocumentBlockFile | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockCode | DocumentBlockMath | DocumentBlockExpandable | DocumentBlockTabs | DocumentBlockTable | DocumentBlockSwagger | DocumentBlockContentRef | DocumentBlockIntegration | DocumentBlockSyncedBlock;
632
+ export interface DocumentBlockReusableContent {
633
+ object: 'block';
634
+ type: 'reusable-content';
635
+ key?: string;
636
+ data: {
637
+ ref: ContentRefReusableContent;
638
+ };
639
+ isVoid: true;
640
+ }
641
+ export interface DocumentBlockStepperStep {
642
+ object: 'block';
643
+ type: 'stepper-step';
644
+ key?: string;
645
+ nodes: (DocumentBlocksEssentials | DocumentBlockContentRef | DocumentBlockCode | DocumentBlockEmbed | DocumentBlockFile | DocumentBlockImages | DocumentBlockDrawing | DocumentBlockHint | DocumentBlockQuote | DocumentBlockMath | DocumentBlockIntegration)[];
646
+ data: {
647
+ icon?: string;
648
+ };
649
+ isVoid?: false;
650
+ }
651
+ export interface DocumentBlockStepper {
652
+ object: 'block';
653
+ type: 'stepper';
654
+ key?: string;
655
+ nodes: DocumentBlockStepperStep[];
656
+ isVoid?: false;
657
+ data?: object;
658
+ }
659
+ export type DocumentBlocksTopLevels = DocumentBlocksEssentials | DocumentBlockQuote | DocumentBlockHint | DocumentBlockImages | DocumentBlockFile | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockCode | DocumentBlockMath | DocumentBlockExpandable | DocumentBlockTabs | DocumentBlockTable | DocumentBlockSwagger | DocumentBlockContentRef | DocumentBlockIntegration | DocumentBlockSyncedBlock | DocumentBlockReusableContent | DocumentBlockStepper;
629
660
  export interface JSONDocument {
630
661
  object: 'document';
631
662
  data: {
@@ -1628,9 +1659,12 @@ export type IntegrationDescription = string;
1628
1659
  * @maxLength 2048
1629
1660
  */
1630
1661
  export type IntegrationSummary = string;
1662
+ /** The target on which the integration can operate and needs to be configured for */
1631
1663
  export declare enum IntegrationTarget {
1632
- Organization = "organization",
1633
- All = "all"
1664
+ All = "all",
1665
+ Site = "site",
1666
+ Space = "space",
1667
+ Organization = "organization"
1634
1668
  }
1635
1669
  export declare enum IntegrationVisibility {
1636
1670
  Public = "public",
@@ -1789,6 +1823,7 @@ export interface Integration {
1789
1823
  * @maxItems 3
1790
1824
  */
1791
1825
  previewImages: string[];
1826
+ /** The target on which the integration can operate and needs to be configured for */
1792
1827
  target: IntegrationTarget;
1793
1828
  /** If true, the integration has been verified by the GitBook team */
1794
1829
  verified: boolean;
@@ -4530,7 +4565,7 @@ export interface ContentPublishingAuth {
4530
4565
  */
4531
4566
  fallbackURL?: string;
4532
4567
  }
4533
- export type DocumentBlock = DocumentBlockParagraph | DocumentBlockHeading | DocumentBlockListOrdered | DocumentBlockListUnordered | DocumentBlockListTasks | DocumentBlockListItem | DocumentBlockDivider | DocumentBlockQuote | DocumentBlockHint | DocumentBlockImages | DocumentBlockImage | DocumentBlockFile | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockCode | DocumentBlockCodeLine | DocumentBlockMath | DocumentBlockExpandable | DocumentBlockTabs | DocumentBlockTabsItem | DocumentBlockTable | DocumentBlockSwagger | DocumentBlockContentRef | DocumentBlockIntegration | DocumentBlockSyncedBlock;
4568
+ export type DocumentBlock = DocumentBlockParagraph | DocumentBlockHeading | DocumentBlockListOrdered | DocumentBlockListUnordered | DocumentBlockListTasks | DocumentBlockListItem | DocumentBlockDivider | DocumentBlockQuote | DocumentBlockHint | DocumentBlockImages | DocumentBlockImage | DocumentBlockFile | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockCode | DocumentBlockCodeLine | DocumentBlockMath | DocumentBlockExpandable | DocumentBlockTabs | DocumentBlockTabsItem | DocumentBlockTable | DocumentBlockSwagger | DocumentBlockContentRef | DocumentBlockIntegration | DocumentBlockSyncedBlock | DocumentBlockReusableContent | DocumentBlockStepper | DocumentBlockStepperStep;
4534
4569
  export type InputPageBase = {
4535
4570
  /**
4536
4571
  * Optional unique identifier for the page.
package/dist/index.cjs CHANGED
@@ -242,7 +242,7 @@ module.exports = __toCommonJS(src_exports);
242
242
 
243
243
  // package.json
244
244
  var name = "@gitbook/api";
245
- var version = "0.67.0";
245
+ var version = "0.69.0";
246
246
 
247
247
  // src/client.ts
248
248
  var import_event_iterator = __toESM(require_node(), 1);
@@ -460,8 +460,10 @@ var OrganizationCommunityType = /* @__PURE__ */ ((OrganizationCommunityType2) =>
460
460
  return OrganizationCommunityType2;
461
461
  })(OrganizationCommunityType || {});
462
462
  var IntegrationTarget = /* @__PURE__ */ ((IntegrationTarget2) => {
463
- IntegrationTarget2["Organization"] = "organization";
464
463
  IntegrationTarget2["All"] = "all";
464
+ IntegrationTarget2["Site"] = "site";
465
+ IntegrationTarget2["Space"] = "space";
466
+ IntegrationTarget2["Organization"] = "organization";
465
467
  return IntegrationTarget2;
466
468
  })(IntegrationTarget || {});
467
469
  var IntegrationVisibility = /* @__PURE__ */ ((IntegrationVisibility2) => {
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.67.0";
175
+ var version = "0.69.0";
176
176
 
177
177
  // src/client.ts
178
178
  var import_event_iterator = __toESM(require_node(), 1);
@@ -390,8 +390,10 @@ var OrganizationCommunityType = /* @__PURE__ */ ((OrganizationCommunityType2) =>
390
390
  return OrganizationCommunityType2;
391
391
  })(OrganizationCommunityType || {});
392
392
  var IntegrationTarget = /* @__PURE__ */ ((IntegrationTarget2) => {
393
- IntegrationTarget2["Organization"] = "organization";
394
393
  IntegrationTarget2["All"] = "all";
394
+ IntegrationTarget2["Site"] = "site";
395
+ IntegrationTarget2["Space"] = "space";
396
+ IntegrationTarget2["Organization"] = "organization";
395
397
  return IntegrationTarget2;
396
398
  })(IntegrationTarget || {});
397
399
  var IntegrationVisibility = /* @__PURE__ */ ((IntegrationVisibility2) => {
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.67.0",
7
+ "version": "0.69.0",
8
8
  "sideEffects": false,
9
9
  "files": [
10
10
  "README.md",
package/spec/openapi.json CHANGED
@@ -16635,6 +16635,24 @@
16635
16635
  "syncedBlock"
16636
16636
  ]
16637
16637
  },
16638
+ "ContentRefReusableContent": {
16639
+ "type": "object",
16640
+ "properties": {
16641
+ "kind": {
16642
+ "type": "string",
16643
+ "enum": [
16644
+ "reusable-content"
16645
+ ]
16646
+ },
16647
+ "reusableContent": {
16648
+ "type": "string"
16649
+ }
16650
+ },
16651
+ "required": [
16652
+ "kind",
16653
+ "reusableContent"
16654
+ ]
16655
+ },
16638
16656
  "ContentRef": {
16639
16657
  "description": "A relative reference to content in GitBook.",
16640
16658
  "oneOf": [
@@ -16664,6 +16682,9 @@
16664
16682
  },
16665
16683
  {
16666
16684
  "$ref": "#/components/schemas/ContentRefSyncedBlock"
16685
+ },
16686
+ {
16687
+ "$ref": "#/components/schemas/ContentRefReusableContent"
16667
16688
  }
16668
16689
  ]
16669
16690
  },
@@ -19086,6 +19107,171 @@
19086
19107
  "isVoid"
19087
19108
  ]
19088
19109
  },
19110
+ "DocumentBlockReusableContent": {
19111
+ "type": "object",
19112
+ "properties": {
19113
+ "object": {
19114
+ "type": "string",
19115
+ "enum": [
19116
+ "block"
19117
+ ]
19118
+ },
19119
+ "type": {
19120
+ "type": "string",
19121
+ "enum": [
19122
+ "reusable-content"
19123
+ ]
19124
+ },
19125
+ "key": {
19126
+ "type": "string"
19127
+ },
19128
+ "data": {
19129
+ "type": "object",
19130
+ "properties": {
19131
+ "ref": {
19132
+ "$ref": "#/components/schemas/ContentRefReusableContent"
19133
+ }
19134
+ },
19135
+ "required": [
19136
+ "ref"
19137
+ ]
19138
+ },
19139
+ "isVoid": {
19140
+ "type": "boolean",
19141
+ "enum": [
19142
+ true
19143
+ ]
19144
+ }
19145
+ },
19146
+ "required": [
19147
+ "object",
19148
+ "type",
19149
+ "data",
19150
+ "isVoid"
19151
+ ]
19152
+ },
19153
+ "DocumentBlockStepperStep": {
19154
+ "type": "object",
19155
+ "properties": {
19156
+ "object": {
19157
+ "type": "string",
19158
+ "enum": [
19159
+ "block"
19160
+ ]
19161
+ },
19162
+ "type": {
19163
+ "type": "string",
19164
+ "enum": [
19165
+ "stepper-step"
19166
+ ]
19167
+ },
19168
+ "key": {
19169
+ "type": "string"
19170
+ },
19171
+ "nodes": {
19172
+ "type": "array",
19173
+ "items": {
19174
+ "oneOf": [
19175
+ {
19176
+ "$ref": "#/components/schemas/DocumentBlocksEssentials"
19177
+ },
19178
+ {
19179
+ "$ref": "#/components/schemas/DocumentBlockContentRef"
19180
+ },
19181
+ {
19182
+ "$ref": "#/components/schemas/DocumentBlockCode"
19183
+ },
19184
+ {
19185
+ "$ref": "#/components/schemas/DocumentBlockEmbed"
19186
+ },
19187
+ {
19188
+ "$ref": "#/components/schemas/DocumentBlockFile"
19189
+ },
19190
+ {
19191
+ "$ref": "#/components/schemas/DocumentBlockImages"
19192
+ },
19193
+ {
19194
+ "$ref": "#/components/schemas/DocumentBlockDrawing"
19195
+ },
19196
+ {
19197
+ "$ref": "#/components/schemas/DocumentBlockHint"
19198
+ },
19199
+ {
19200
+ "$ref": "#/components/schemas/DocumentBlockQuote"
19201
+ },
19202
+ {
19203
+ "$ref": "#/components/schemas/DocumentBlockMath"
19204
+ },
19205
+ {
19206
+ "$ref": "#/components/schemas/DocumentBlockIntegration"
19207
+ }
19208
+ ]
19209
+ }
19210
+ },
19211
+ "data": {
19212
+ "type": "object",
19213
+ "properties": {
19214
+ "icon": {
19215
+ "type": "string"
19216
+ }
19217
+ }
19218
+ },
19219
+ "isVoid": {
19220
+ "type": "boolean",
19221
+ "enum": [
19222
+ false
19223
+ ]
19224
+ }
19225
+ },
19226
+ "required": [
19227
+ "object",
19228
+ "type",
19229
+ "nodes",
19230
+ "data"
19231
+ ]
19232
+ },
19233
+ "DocumentBlockStepper": {
19234
+ "type": "object",
19235
+ "properties": {
19236
+ "object": {
19237
+ "type": "string",
19238
+ "enum": [
19239
+ "block"
19240
+ ]
19241
+ },
19242
+ "type": {
19243
+ "type": "string",
19244
+ "enum": [
19245
+ "stepper"
19246
+ ]
19247
+ },
19248
+ "key": {
19249
+ "type": "string"
19250
+ },
19251
+ "nodes": {
19252
+ "type": "array",
19253
+ "items": {
19254
+ "$ref": "#/components/schemas/DocumentBlockStepperStep"
19255
+ }
19256
+ },
19257
+ "isVoid": {
19258
+ "type": "boolean",
19259
+ "enum": [
19260
+ false
19261
+ ]
19262
+ },
19263
+ "data": {
19264
+ "type": "object",
19265
+ "properties": {},
19266
+ "additionalProperties": false
19267
+ }
19268
+ },
19269
+ "required": [
19270
+ "object",
19271
+ "type",
19272
+ "nodes"
19273
+ ]
19274
+ },
19089
19275
  "DocumentBlocksTopLevels": {
19090
19276
  "oneOf": [
19091
19277
  {
@@ -19135,6 +19321,12 @@
19135
19321
  },
19136
19322
  {
19137
19323
  "$ref": "#/components/schemas/DocumentBlockSyncedBlock"
19324
+ },
19325
+ {
19326
+ "$ref": "#/components/schemas/DocumentBlockReusableContent"
19327
+ },
19328
+ {
19329
+ "$ref": "#/components/schemas/DocumentBlockStepper"
19138
19330
  }
19139
19331
  ]
19140
19332
  },
@@ -21780,9 +21972,12 @@
21780
21972
  },
21781
21973
  "IntegrationTarget": {
21782
21974
  "type": "string",
21975
+ "description": "The target on which the integration can operate and needs to be configured for",
21783
21976
  "enum": [
21784
- "organization",
21785
- "all"
21977
+ "all",
21978
+ "site",
21979
+ "space",
21980
+ "organization"
21786
21981
  ]
21787
21982
  },
21788
21983
  "IntegrationVisibility": {
@@ -30509,6 +30704,15 @@
30509
30704
  },
30510
30705
  {
30511
30706
  "$ref": "#/components/schemas/DocumentBlockSyncedBlock"
30707
+ },
30708
+ {
30709
+ "$ref": "#/components/schemas/DocumentBlockReusableContent"
30710
+ },
30711
+ {
30712
+ "$ref": "#/components/schemas/DocumentBlockStepper"
30713
+ },
30714
+ {
30715
+ "$ref": "#/components/schemas/DocumentBlockStepperStep"
30512
30716
  }
30513
30717
  ]
30514
30718
  },
package/spec/openapi.yaml CHANGED
@@ -9446,6 +9446,18 @@ components:
9446
9446
  required:
9447
9447
  - kind
9448
9448
  - syncedBlock
9449
+ ContentRefReusableContent:
9450
+ type: object
9451
+ properties:
9452
+ kind:
9453
+ type: string
9454
+ enum:
9455
+ - reusable-content
9456
+ reusableContent:
9457
+ type: string
9458
+ required:
9459
+ - kind
9460
+ - reusableContent
9449
9461
  ContentRef:
9450
9462
  description: A relative reference to content in GitBook.
9451
9463
  oneOf:
@@ -9458,6 +9470,7 @@ components:
9458
9470
  - $ref: "#/components/schemas/ContentRefSpace"
9459
9471
  - $ref: "#/components/schemas/ContentRefSnippet"
9460
9472
  - $ref: "#/components/schemas/ContentRefSyncedBlock"
9473
+ - $ref: "#/components/schemas/ContentRefReusableContent"
9461
9474
  DocumentInlineLink:
9462
9475
  type: object
9463
9476
  properties:
@@ -10979,6 +10992,106 @@ components:
10979
10992
  - type
10980
10993
  - data
10981
10994
  - isVoid
10995
+ DocumentBlockReusableContent:
10996
+ type: object
10997
+ properties:
10998
+ object:
10999
+ type: string
11000
+ enum:
11001
+ - block
11002
+ type:
11003
+ type: string
11004
+ enum:
11005
+ - reusable-content
11006
+ key:
11007
+ type: string
11008
+ data:
11009
+ type: object
11010
+ properties:
11011
+ ref:
11012
+ $ref: "#/components/schemas/ContentRefReusableContent"
11013
+ required:
11014
+ - ref
11015
+ isVoid:
11016
+ type: boolean
11017
+ enum:
11018
+ - true
11019
+ required:
11020
+ - object
11021
+ - type
11022
+ - data
11023
+ - isVoid
11024
+ DocumentBlockStepperStep:
11025
+ type: object
11026
+ properties:
11027
+ object:
11028
+ type: string
11029
+ enum:
11030
+ - block
11031
+ type:
11032
+ type: string
11033
+ enum:
11034
+ - stepper-step
11035
+ key:
11036
+ type: string
11037
+ nodes:
11038
+ type: array
11039
+ items:
11040
+ oneOf:
11041
+ - $ref: "#/components/schemas/DocumentBlocksEssentials"
11042
+ - $ref: "#/components/schemas/DocumentBlockContentRef"
11043
+ - $ref: "#/components/schemas/DocumentBlockCode"
11044
+ - $ref: "#/components/schemas/DocumentBlockEmbed"
11045
+ - $ref: "#/components/schemas/DocumentBlockFile"
11046
+ - $ref: "#/components/schemas/DocumentBlockImages"
11047
+ - $ref: "#/components/schemas/DocumentBlockDrawing"
11048
+ - $ref: "#/components/schemas/DocumentBlockHint"
11049
+ - $ref: "#/components/schemas/DocumentBlockQuote"
11050
+ - $ref: "#/components/schemas/DocumentBlockMath"
11051
+ - $ref: "#/components/schemas/DocumentBlockIntegration"
11052
+ data:
11053
+ type: object
11054
+ properties:
11055
+ icon:
11056
+ type: string
11057
+ isVoid:
11058
+ type: boolean
11059
+ enum:
11060
+ - false
11061
+ required:
11062
+ - object
11063
+ - type
11064
+ - nodes
11065
+ - data
11066
+ DocumentBlockStepper:
11067
+ type: object
11068
+ properties:
11069
+ object:
11070
+ type: string
11071
+ enum:
11072
+ - block
11073
+ type:
11074
+ type: string
11075
+ enum:
11076
+ - stepper
11077
+ key:
11078
+ type: string
11079
+ nodes:
11080
+ type: array
11081
+ items:
11082
+ $ref: "#/components/schemas/DocumentBlockStepperStep"
11083
+ isVoid:
11084
+ type: boolean
11085
+ enum:
11086
+ - false
11087
+ data:
11088
+ type: object
11089
+ properties: {}
11090
+ additionalProperties: false
11091
+ required:
11092
+ - object
11093
+ - type
11094
+ - nodes
10982
11095
  DocumentBlocksTopLevels:
10983
11096
  oneOf:
10984
11097
  - $ref: "#/components/schemas/DocumentBlocksEssentials"
@@ -10997,6 +11110,8 @@ components:
10997
11110
  - $ref: "#/components/schemas/DocumentBlockContentRef"
10998
11111
  - $ref: "#/components/schemas/DocumentBlockIntegration"
10999
11112
  - $ref: "#/components/schemas/DocumentBlockSyncedBlock"
11113
+ - $ref: "#/components/schemas/DocumentBlockReusableContent"
11114
+ - $ref: "#/components/schemas/DocumentBlockStepper"
11000
11115
  JSONDocument:
11001
11116
  type: object
11002
11117
  properties:
@@ -12824,9 +12939,12 @@ components:
12824
12939
  maxLength: 2048
12825
12940
  IntegrationTarget:
12826
12941
  type: string
12942
+ description: The target on which the integration can operate and needs to be configured for
12827
12943
  enum:
12828
- - organization
12829
12944
  - all
12945
+ - site
12946
+ - space
12947
+ - organization
12830
12948
  IntegrationVisibility:
12831
12949
  type: string
12832
12950
  enum:
@@ -18622,6 +18740,9 @@ components:
18622
18740
  - $ref: "#/components/schemas/DocumentBlockContentRef"
18623
18741
  - $ref: "#/components/schemas/DocumentBlockIntegration"
18624
18742
  - $ref: "#/components/schemas/DocumentBlockSyncedBlock"
18743
+ - $ref: "#/components/schemas/DocumentBlockReusableContent"
18744
+ - $ref: "#/components/schemas/DocumentBlockStepper"
18745
+ - $ref: "#/components/schemas/DocumentBlockStepperStep"
18625
18746
  InputPageBase:
18626
18747
  allOf:
18627
18748
  - type: object