@gitbook/api 0.110.0 → 0.111.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
@@ -981,7 +981,9 @@ export interface DocumentBlockTabs {
981
981
  key?: string;
982
982
  nodes: DocumentBlockTabsItem[];
983
983
  isVoid?: false;
984
- data?: object;
984
+ data?: {
985
+ fullWidth?: boolean;
986
+ };
985
987
  }
986
988
  /** Pointer to an operation in the OpenAPI spec. */
987
989
  export interface OpenAPIOperationPointer {
@@ -1042,6 +1044,26 @@ export interface DocumentBlockOpenAPISchemas {
1042
1044
  id: string;
1043
1045
  };
1044
1046
  }
1047
+ /** Pointer to a webhook in the OpenAPI spec. */
1048
+ export interface OpenAPIWebhookPointer {
1049
+ /** Name of the webhook in the OpenAPI spec. */
1050
+ name: string;
1051
+ /** HTTP method of the webhook in the OpenAPI spec. */
1052
+ method: string;
1053
+ }
1054
+ export interface DocumentBlockOpenAPIWebhook {
1055
+ object: 'block';
1056
+ type: 'openapi-webhook';
1057
+ key?: string;
1058
+ data: OpenAPIWebhookPointer & {
1059
+ ref: ContentRefOpenAPI;
1060
+ };
1061
+ isVoid: true;
1062
+ meta?: {
1063
+ /** Unique ID to be used in an URL for the block. */
1064
+ id: string;
1065
+ };
1066
+ }
1045
1067
  export interface DocumentBlockStepperStep {
1046
1068
  object: 'block';
1047
1069
  type: 'stepper-step';
@@ -1060,7 +1082,7 @@ export interface DocumentBlockStepper {
1060
1082
  isVoid?: false;
1061
1083
  data?: object;
1062
1084
  }
1063
- export type DocumentBlock = DocumentBlockParagraph | DocumentBlockHeading | DocumentBlockListOrdered | DocumentBlockListUnordered | DocumentBlockListTasks | DocumentBlockListItem | DocumentBlockDivider | DocumentBlockQuote | DocumentBlockHint | DocumentBlockImages | DocumentBlockImage | DocumentBlockFile | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockCode | DocumentBlockCodeLine | DocumentBlockMath | DocumentBlockExpandable | DocumentBlockTabs | DocumentBlockTabsItem | DocumentBlockTable | DocumentBlockOpenAPI | DocumentBlockOpenAPIOperation | DocumentBlockOpenAPISchemas | DocumentBlockContentRef | DocumentBlockIntegration | DocumentBlockReusableContent | DocumentBlockStepper | DocumentBlockStepperStep;
1085
+ export type DocumentBlock = DocumentBlockParagraph | DocumentBlockHeading | DocumentBlockListOrdered | DocumentBlockListUnordered | DocumentBlockListTasks | DocumentBlockListItem | DocumentBlockDivider | DocumentBlockQuote | DocumentBlockHint | DocumentBlockImages | DocumentBlockImage | DocumentBlockFile | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockCode | DocumentBlockCodeLine | DocumentBlockMath | DocumentBlockExpandable | DocumentBlockTabs | DocumentBlockTabsItem | DocumentBlockTable | DocumentBlockOpenAPI | DocumentBlockOpenAPIOperation | DocumentBlockOpenAPISchemas | DocumentBlockOpenAPIWebhook | DocumentBlockContentRef | DocumentBlockIntegration | DocumentBlockReusableContent | DocumentBlockStepper | DocumentBlockStepperStep;
1064
1086
  export interface DocumentInlineMention {
1065
1087
  object: 'inline';
1066
1088
  type: 'mention';
@@ -1084,7 +1106,7 @@ export interface DocumentInlineButton {
1084
1106
  };
1085
1107
  isVoid: true;
1086
1108
  }
1087
- export type DocumentBlocksTopLevels = DocumentBlocksEssentials | DocumentBlockQuote | DocumentBlockHint | DocumentBlockImages | DocumentBlockFile | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockCode | DocumentBlockMath | DocumentBlockExpandable | DocumentBlockTabs | DocumentBlockTable | DocumentBlockOpenAPI | DocumentBlockOpenAPIOperation | DocumentBlockOpenAPISchemas | DocumentBlockContentRef | DocumentBlockIntegration | DocumentBlockReusableContent | DocumentBlockStepper;
1109
+ export type DocumentBlocksTopLevels = DocumentBlocksEssentials | DocumentBlockQuote | DocumentBlockHint | DocumentBlockImages | DocumentBlockFile | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockCode | DocumentBlockMath | DocumentBlockExpandable | DocumentBlockTabs | DocumentBlockTable | DocumentBlockOpenAPI | DocumentBlockOpenAPIOperation | DocumentBlockOpenAPISchemas | DocumentBlockOpenAPIWebhook | DocumentBlockContentRef | DocumentBlockIntegration | DocumentBlockReusableContent | DocumentBlockStepper;
1088
1110
  export interface JSONDocument {
1089
1111
  object: 'document';
1090
1112
  data: {
@@ -1507,8 +1529,7 @@ export declare enum ImportContentSource {
1507
1529
  DropboxPaper = "dropbox-paper",
1508
1530
  Notion = "notion",
1509
1531
  Quip = "quip",
1510
- GoogleDocs = "google-docs",
1511
- OpenApi = "open-api"
1532
+ GoogleDocs = "google-docs"
1512
1533
  }
1513
1534
  export interface ImportContent {
1514
1535
  /**
package/dist/index.cjs CHANGED
@@ -269,7 +269,7 @@ module.exports = __toCommonJS(src_exports);
269
269
 
270
270
  // package.json
271
271
  var name = "@gitbook/api";
272
- var version = "0.110.0";
272
+ var version = "0.111.0";
273
273
 
274
274
  // src/client.ts
275
275
  var import_event_iterator = __toESM(require_node(), 1);
@@ -461,7 +461,6 @@ var ImportContentSource = /* @__PURE__ */ ((ImportContentSource2) => {
461
461
  ImportContentSource2["Notion"] = "notion";
462
462
  ImportContentSource2["Quip"] = "quip";
463
463
  ImportContentSource2["GoogleDocs"] = "google-docs";
464
- ImportContentSource2["OpenApi"] = "open-api";
465
464
  return ImportContentSource2;
466
465
  })(ImportContentSource || {});
467
466
  var OrganizationType = /* @__PURE__ */ ((OrganizationType2) => {
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.110.0";
175
+ var version = "0.111.0";
176
176
 
177
177
  // src/client.ts
178
178
  var import_event_iterator = __toESM(require_node(), 1);
@@ -364,7 +364,6 @@ var ImportContentSource = /* @__PURE__ */ ((ImportContentSource2) => {
364
364
  ImportContentSource2["Notion"] = "notion";
365
365
  ImportContentSource2["Quip"] = "quip";
366
366
  ImportContentSource2["GoogleDocs"] = "google-docs";
367
- ImportContentSource2["OpenApi"] = "open-api";
368
367
  return ImportContentSource2;
369
368
  })(ImportContentSource || {});
370
369
  var OrganizationType = /* @__PURE__ */ ((OrganizationType2) => {
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.110.0",
7
+ "version": "0.111.0",
8
8
  "sideEffects": false,
9
9
  "files": [
10
10
  "README.md",
package/spec/openapi.json CHANGED
@@ -19588,7 +19588,11 @@
19588
19588
  },
19589
19589
  "data": {
19590
19590
  "type": "object",
19591
- "properties": {},
19591
+ "properties": {
19592
+ "fullWidth": {
19593
+ "type": "boolean"
19594
+ }
19595
+ },
19592
19596
  "additionalProperties": false
19593
19597
  }
19594
19598
  },
@@ -19840,6 +19844,86 @@
19840
19844
  "isVoid"
19841
19845
  ]
19842
19846
  },
19847
+ "OpenAPIWebhookPointer": {
19848
+ "type": "object",
19849
+ "description": "Pointer to a webhook in the OpenAPI spec.",
19850
+ "properties": {
19851
+ "name": {
19852
+ "type": "string",
19853
+ "description": "Name of the webhook in the OpenAPI spec."
19854
+ },
19855
+ "method": {
19856
+ "type": "string",
19857
+ "description": "HTTP method of the webhook in the OpenAPI spec."
19858
+ }
19859
+ },
19860
+ "required": [
19861
+ "name",
19862
+ "method"
19863
+ ]
19864
+ },
19865
+ "DocumentBlockOpenAPIWebhook": {
19866
+ "type": "object",
19867
+ "properties": {
19868
+ "object": {
19869
+ "type": "string",
19870
+ "enum": [
19871
+ "block"
19872
+ ]
19873
+ },
19874
+ "type": {
19875
+ "type": "string",
19876
+ "enum": [
19877
+ "openapi-webhook"
19878
+ ]
19879
+ },
19880
+ "key": {
19881
+ "type": "string"
19882
+ },
19883
+ "data": {
19884
+ "allOf": [
19885
+ {
19886
+ "$ref": "#/components/schemas/OpenAPIWebhookPointer"
19887
+ },
19888
+ {
19889
+ "type": "object",
19890
+ "properties": {
19891
+ "ref": {
19892
+ "$ref": "#/components/schemas/ContentRefOpenAPI"
19893
+ }
19894
+ },
19895
+ "required": [
19896
+ "ref"
19897
+ ]
19898
+ }
19899
+ ]
19900
+ },
19901
+ "isVoid": {
19902
+ "type": "boolean",
19903
+ "enum": [
19904
+ true
19905
+ ]
19906
+ },
19907
+ "meta": {
19908
+ "type": "object",
19909
+ "properties": {
19910
+ "id": {
19911
+ "description": "Unique ID to be used in an URL for the block.",
19912
+ "type": "string"
19913
+ }
19914
+ },
19915
+ "required": [
19916
+ "id"
19917
+ ]
19918
+ }
19919
+ },
19920
+ "required": [
19921
+ "object",
19922
+ "type",
19923
+ "data",
19924
+ "isVoid"
19925
+ ]
19926
+ },
19843
19927
  "DocumentBlockStepperStep": {
19844
19928
  "type": "object",
19845
19929
  "properties": {
@@ -20036,6 +20120,9 @@
20036
20120
  {
20037
20121
  "$ref": "#/components/schemas/DocumentBlockOpenAPISchemas"
20038
20122
  },
20123
+ {
20124
+ "$ref": "#/components/schemas/DocumentBlockOpenAPIWebhook"
20125
+ },
20039
20126
  {
20040
20127
  "$ref": "#/components/schemas/DocumentBlockContentRef"
20041
20128
  },
@@ -20213,6 +20300,9 @@
20213
20300
  {
20214
20301
  "$ref": "#/components/schemas/DocumentBlockOpenAPISchemas"
20215
20302
  },
20303
+ {
20304
+ "$ref": "#/components/schemas/DocumentBlockOpenAPIWebhook"
20305
+ },
20216
20306
  {
20217
20307
  "$ref": "#/components/schemas/DocumentBlockContentRef"
20218
20308
  },
@@ -21592,8 +21682,7 @@
21592
21682
  "dropbox-paper",
21593
21683
  "notion",
21594
21684
  "quip",
21595
- "google-docs",
21596
- "open-api"
21685
+ "google-docs"
21597
21686
  ]
21598
21687
  },
21599
21688
  "ImportContent": {
package/spec/openapi.yaml CHANGED
@@ -11519,7 +11519,9 @@ components:
11519
11519
  - false
11520
11520
  data:
11521
11521
  type: object
11522
- properties: {}
11522
+ properties:
11523
+ fullWidth:
11524
+ type: boolean
11523
11525
  additionalProperties: false
11524
11526
  required:
11525
11527
  - object
@@ -11679,6 +11681,58 @@ components:
11679
11681
  - type
11680
11682
  - data
11681
11683
  - isVoid
11684
+ OpenAPIWebhookPointer:
11685
+ type: object
11686
+ description: Pointer to a webhook in the OpenAPI spec.
11687
+ properties:
11688
+ name:
11689
+ type: string
11690
+ description: Name of the webhook in the OpenAPI spec.
11691
+ method:
11692
+ type: string
11693
+ description: HTTP method of the webhook in the OpenAPI spec.
11694
+ required:
11695
+ - name
11696
+ - method
11697
+ DocumentBlockOpenAPIWebhook:
11698
+ type: object
11699
+ properties:
11700
+ object:
11701
+ type: string
11702
+ enum:
11703
+ - block
11704
+ type:
11705
+ type: string
11706
+ enum:
11707
+ - openapi-webhook
11708
+ key:
11709
+ type: string
11710
+ data:
11711
+ allOf:
11712
+ - $ref: "#/components/schemas/OpenAPIWebhookPointer"
11713
+ - type: object
11714
+ properties:
11715
+ ref:
11716
+ $ref: "#/components/schemas/ContentRefOpenAPI"
11717
+ required:
11718
+ - ref
11719
+ isVoid:
11720
+ type: boolean
11721
+ enum:
11722
+ - true
11723
+ meta:
11724
+ type: object
11725
+ properties:
11726
+ id:
11727
+ description: Unique ID to be used in an URL for the block.
11728
+ type: string
11729
+ required:
11730
+ - id
11731
+ required:
11732
+ - object
11733
+ - type
11734
+ - data
11735
+ - isVoid
11682
11736
  DocumentBlockStepperStep:
11683
11737
  type: object
11684
11738
  properties:
@@ -11776,6 +11830,7 @@ components:
11776
11830
  - $ref: "#/components/schemas/DocumentBlockOpenAPI"
11777
11831
  - $ref: "#/components/schemas/DocumentBlockOpenAPIOperation"
11778
11832
  - $ref: "#/components/schemas/DocumentBlockOpenAPISchemas"
11833
+ - $ref: "#/components/schemas/DocumentBlockOpenAPIWebhook"
11779
11834
  - $ref: "#/components/schemas/DocumentBlockContentRef"
11780
11835
  - $ref: "#/components/schemas/DocumentBlockIntegration"
11781
11836
  - $ref: "#/components/schemas/DocumentBlockReusableContent"
@@ -11870,6 +11925,7 @@ components:
11870
11925
  - $ref: "#/components/schemas/DocumentBlockOpenAPI"
11871
11926
  - $ref: "#/components/schemas/DocumentBlockOpenAPIOperation"
11872
11927
  - $ref: "#/components/schemas/DocumentBlockOpenAPISchemas"
11928
+ - $ref: "#/components/schemas/DocumentBlockOpenAPIWebhook"
11873
11929
  - $ref: "#/components/schemas/DocumentBlockContentRef"
11874
11930
  - $ref: "#/components/schemas/DocumentBlockIntegration"
11875
11931
  - $ref: "#/components/schemas/DocumentBlockReusableContent"
@@ -12756,7 +12812,6 @@ components:
12756
12812
  - notion
12757
12813
  - quip
12758
12814
  - google-docs
12759
- - open-api
12760
12815
  ImportContent:
12761
12816
  type: object
12762
12817
  properties: