@gitbook/api 0.132.0 → 0.133.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
@@ -277,6 +277,8 @@ export interface Space {
277
277
  merge: boolean;
278
278
  /** Can the user review change requests. */
279
279
  review: boolean;
280
+ /** Can the user install integrations in the space. */
281
+ installIntegration: boolean;
280
282
  };
281
283
  }
282
284
  export interface SpacePointer {
@@ -780,6 +782,8 @@ export interface DocumentTableViewCards {
780
782
  targetDefinition?: string;
781
783
  /** Definition ID to use as a cover image */
782
784
  coverDefinition?: string;
785
+ /** Definition ID to use as a dark mode cover image */
786
+ coverDefinitionDark?: string;
783
787
  /** Should we display the column title or not */
784
788
  hideColumnTitle?: boolean;
785
789
  }
@@ -827,7 +831,10 @@ export type DocumentTableDefinitionSelect = DocumentTableDefinitionBase & {
827
831
  export type DocumentTableDefinitionContentRef = DocumentTableDefinitionBase & {
828
832
  type: 'content-ref';
829
833
  };
830
- export type DocumentTableDefinition = DocumentTableDefinitionText | DocumentTableDefinitionNumber | DocumentTableDefinitionCheckbox | DocumentTableDefinitionFiles | DocumentTableDefinitionUsers | DocumentTableDefinitionRating | DocumentTableDefinitionSelect | DocumentTableDefinitionContentRef;
834
+ export type DocumentTableDefinitionImage = DocumentTableDefinitionBase & {
835
+ type: 'image';
836
+ };
837
+ export type DocumentTableDefinition = DocumentTableDefinitionText | DocumentTableDefinitionNumber | DocumentTableDefinitionCheckbox | DocumentTableDefinitionFiles | DocumentTableDefinitionUsers | DocumentTableDefinitionRating | DocumentTableDefinitionSelect | DocumentTableDefinitionContentRef | DocumentTableDefinitionImage;
831
838
  export interface DocumentFragment {
832
839
  object: 'fragment';
833
840
  key?: string;
@@ -1862,6 +1869,8 @@ export interface Organization {
1862
1869
  listIntegrations: boolean;
1863
1870
  /** Can the user list the integration installations in the organization. */
1864
1871
  listInstallations: boolean;
1872
+ /** Can the user install integrations in the organization. */
1873
+ installIntegration: boolean;
1865
1874
  };
1866
1875
  }
1867
1876
  export interface ContentLocationRevisionContext {
@@ -2717,8 +2726,6 @@ export interface Integration {
2717
2726
  /** The set of permissions for the integration */
2718
2727
  permissions: {
2719
2728
  admin: boolean;
2720
- /** Integration can be installed whatever the permissions of the user. */
2721
- install: boolean;
2722
2729
  };
2723
2730
  /**
2724
2731
  * Security policy to validate the content of the integrations scripts and Contentkit. Will be sent as
package/dist/index.cjs CHANGED
@@ -279,7 +279,7 @@ module.exports = __toCommonJS(src_exports);
279
279
 
280
280
  // package.json
281
281
  var name = "@gitbook/api";
282
- var version = "0.132.0";
282
+ var version = "0.133.0";
283
283
 
284
284
  // src/client.ts
285
285
  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.132.0";
175
+ var version = "0.133.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.132.0",
7
+ "version": "0.133.0",
8
8
  "sideEffects": false,
9
9
  "files": [
10
10
  "README.md",
package/spec/openapi.json CHANGED
@@ -17520,6 +17520,10 @@
17520
17520
  "review": {
17521
17521
  "type": "boolean",
17522
17522
  "description": "Can the user review change requests."
17523
+ },
17524
+ "installIntegration": {
17525
+ "type": "boolean",
17526
+ "description": "Can the user install integrations in the space."
17523
17527
  }
17524
17528
  },
17525
17529
  "required": [
@@ -17531,7 +17535,8 @@
17531
17535
  "triggerGitSync",
17532
17536
  "comment",
17533
17537
  "merge",
17534
- "review"
17538
+ "review",
17539
+ "installIntegration"
17535
17540
  ]
17536
17541
  }
17537
17542
  },
@@ -19539,6 +19544,10 @@
19539
19544
  "type": "string",
19540
19545
  "description": "Definition ID to use as a cover image"
19541
19546
  },
19547
+ "coverDefinitionDark": {
19548
+ "type": "string",
19549
+ "description": "Definition ID to use as a dark mode cover image"
19550
+ },
19542
19551
  "hideColumnTitle": {
19543
19552
  "type": "boolean",
19544
19553
  "description": "Should we display the column title or not"
@@ -19826,6 +19835,27 @@
19826
19835
  }
19827
19836
  ]
19828
19837
  },
19838
+ "DocumentTableDefinitionImage": {
19839
+ "allOf": [
19840
+ {
19841
+ "$ref": "#/components/schemas/DocumentTableDefinitionBase"
19842
+ },
19843
+ {
19844
+ "type": "object",
19845
+ "properties": {
19846
+ "type": {
19847
+ "type": "string",
19848
+ "enum": [
19849
+ "image"
19850
+ ]
19851
+ }
19852
+ },
19853
+ "required": [
19854
+ "type"
19855
+ ]
19856
+ }
19857
+ ]
19858
+ },
19829
19859
  "DocumentTableDefinition": {
19830
19860
  "oneOf": [
19831
19861
  {
@@ -19851,6 +19881,9 @@
19851
19881
  },
19852
19882
  {
19853
19883
  "$ref": "#/components/schemas/DocumentTableDefinitionContentRef"
19884
+ },
19885
+ {
19886
+ "$ref": "#/components/schemas/DocumentTableDefinitionImage"
19854
19887
  }
19855
19888
  ]
19856
19889
  },
@@ -23916,6 +23949,10 @@
23916
23949
  "listInstallations": {
23917
23950
  "type": "boolean",
23918
23951
  "description": "Can the user list the integration installations in the organization."
23952
+ },
23953
+ "installIntegration": {
23954
+ "type": "boolean",
23955
+ "description": "Can the user install integrations in the organization."
23919
23956
  }
23920
23957
  },
23921
23958
  "required": [
@@ -23929,7 +23966,8 @@
23929
23966
  "listMembers",
23930
23967
  "listTeams",
23931
23968
  "listIntegrations",
23932
- "listInstallations"
23969
+ "listInstallations",
23970
+ "installIntegration"
23933
23971
  ]
23934
23972
  }
23935
23973
  },
@@ -26350,15 +26388,10 @@
26350
26388
  "properties": {
26351
26389
  "admin": {
26352
26390
  "type": "boolean"
26353
- },
26354
- "install": {
26355
- "description": "Integration can be installed whatever the permissions of the user.",
26356
- "type": "boolean"
26357
26391
  }
26358
26392
  },
26359
26393
  "required": [
26360
- "admin",
26361
- "install"
26394
+ "admin"
26362
26395
  ]
26363
26396
  },
26364
26397
  "contentSecurityPolicy": {
package/spec/openapi.yaml CHANGED
@@ -10131,6 +10131,9 @@ components:
10131
10131
  review:
10132
10132
  type: boolean
10133
10133
  description: Can the user review change requests.
10134
+ installIntegration:
10135
+ type: boolean
10136
+ description: Can the user install integrations in the space.
10134
10137
  required:
10135
10138
  - view
10136
10139
  - access
@@ -10141,6 +10144,7 @@ components:
10141
10144
  - comment
10142
10145
  - merge
10143
10146
  - review
10147
+ - installIntegration
10144
10148
  required:
10145
10149
  - object
10146
10150
  - id
@@ -11471,6 +11475,9 @@ components:
11471
11475
  coverDefinition:
11472
11476
  type: string
11473
11477
  description: Definition ID to use as a cover image
11478
+ coverDefinitionDark:
11479
+ type: string
11480
+ description: Definition ID to use as a dark mode cover image
11474
11481
  hideColumnTitle:
11475
11482
  type: boolean
11476
11483
  description: Should we display the column title or not
@@ -11636,6 +11643,17 @@ components:
11636
11643
  - content-ref
11637
11644
  required:
11638
11645
  - type
11646
+ DocumentTableDefinitionImage:
11647
+ allOf:
11648
+ - $ref: "#/components/schemas/DocumentTableDefinitionBase"
11649
+ - type: object
11650
+ properties:
11651
+ type:
11652
+ type: string
11653
+ enum:
11654
+ - image
11655
+ required:
11656
+ - type
11639
11657
  DocumentTableDefinition:
11640
11658
  oneOf:
11641
11659
  - $ref: "#/components/schemas/DocumentTableDefinitionText"
@@ -11646,6 +11664,7 @@ components:
11646
11664
  - $ref: "#/components/schemas/DocumentTableDefinitionRating"
11647
11665
  - $ref: "#/components/schemas/DocumentTableDefinitionSelect"
11648
11666
  - $ref: "#/components/schemas/DocumentTableDefinitionContentRef"
11667
+ - $ref: "#/components/schemas/DocumentTableDefinitionImage"
11649
11668
  DocumentFragment:
11650
11669
  type: object
11651
11670
  properties:
@@ -14202,6 +14221,9 @@ components:
14202
14221
  listInstallations:
14203
14222
  type: boolean
14204
14223
  description: Can the user list the integration installations in the organization.
14224
+ installIntegration:
14225
+ type: boolean
14226
+ description: Can the user install integrations in the organization.
14205
14227
  required:
14206
14228
  - view
14207
14229
  - admin
@@ -14214,6 +14236,7 @@ components:
14214
14236
  - listTeams
14215
14237
  - listIntegrations
14216
14238
  - listInstallations
14239
+ - installIntegration
14217
14240
  required:
14218
14241
  - object
14219
14242
  - id
@@ -15867,12 +15890,8 @@ components:
15867
15890
  properties:
15868
15891
  admin:
15869
15892
  type: boolean
15870
- install:
15871
- description: Integration can be installed whatever the permissions of the user.
15872
- type: boolean
15873
15893
  required:
15874
15894
  - admin
15875
- - install
15876
15895
  contentSecurityPolicy:
15877
15896
  $ref: "#/components/schemas/IntegrationContentSecurityPolicy"
15878
15897
  required: