@gitbook/api 0.64.1 → 0.65.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/spec/openapi.yaml CHANGED
@@ -829,6 +829,7 @@ paths:
829
829
  parameters:
830
830
  - $ref: "#/components/parameters/spaceId"
831
831
  - $ref: "#/components/parameters/revisionMetadata"
832
+ - $ref: "#/components/parameters/revisionComputed"
832
833
  responses:
833
834
  "200":
834
835
  description: OK
@@ -875,6 +876,7 @@ paths:
875
876
  parameters:
876
877
  - $ref: "#/components/parameters/spaceId"
877
878
  - $ref: "#/components/parameters/revisionMetadata"
879
+ - $ref: "#/components/parameters/revisionComputed"
878
880
  responses:
879
881
  "200":
880
882
  description: OK
@@ -902,6 +904,7 @@ paths:
902
904
  - $ref: "#/components/parameters/listPage"
903
905
  - $ref: "#/components/parameters/listLimit"
904
906
  - $ref: "#/components/parameters/revisionMetadata"
907
+ - $ref: "#/components/parameters/revisionComputed"
905
908
  responses:
906
909
  "200":
907
910
  description: OK
@@ -930,6 +933,7 @@ paths:
930
933
  - $ref: "#/components/parameters/spaceId"
931
934
  - $ref: "#/components/parameters/fileId"
932
935
  - $ref: "#/components/parameters/revisionMetadata"
936
+ - $ref: "#/components/parameters/revisionComputed"
933
937
  responses:
934
938
  "200":
935
939
  description: OK
@@ -981,6 +985,7 @@ paths:
981
985
  - $ref: "#/components/parameters/pageId"
982
986
  - $ref: "#/components/parameters/documentFormat"
983
987
  - $ref: "#/components/parameters/revisionMetadata"
988
+ - $ref: "#/components/parameters/revisionComputed"
984
989
  responses:
985
990
  "200":
986
991
  description: OK
@@ -1100,6 +1105,7 @@ paths:
1100
1105
  - $ref: "#/components/parameters/pagePath"
1101
1106
  - $ref: "#/components/parameters/documentFormat"
1102
1107
  - $ref: "#/components/parameters/revisionMetadata"
1108
+ - $ref: "#/components/parameters/revisionComputed"
1103
1109
  responses:
1104
1110
  "200":
1105
1111
  description: OK
@@ -1111,6 +1117,35 @@ paths:
1111
1117
  - $ref: "#/components/schemas/RevisionPageGroup"
1112
1118
  default:
1113
1119
  $ref: "#/components/responses/UnexpectedError"
1120
+ "/spaces/{spaceId}/content/computed/document":
1121
+ post:
1122
+ operationId: computePageDocument
1123
+ summary: Get the document for a page in a computed content.
1124
+ security:
1125
+ - user: []
1126
+ parameters:
1127
+ - $ref: "#/components/parameters/spaceId"
1128
+ - $ref: "#/components/parameters/documentFormat"
1129
+ requestBody:
1130
+ required: true
1131
+ content:
1132
+ application/json:
1133
+ schema:
1134
+ type: object
1135
+ properties:
1136
+ source:
1137
+ $ref: "#/components/schemas/ComputedContentSource"
1138
+ required:
1139
+ - source
1140
+ responses:
1141
+ "200":
1142
+ description: Document computed
1143
+ content:
1144
+ application/json:
1145
+ schema:
1146
+ $ref: "#/components/schemas/Document"
1147
+ default:
1148
+ $ref: "#/components/responses/UnexpectedError"
1114
1149
  "/spaces/{spaceId}/documents/{documentId}":
1115
1150
  get:
1116
1151
  operationId: getDocumentById
@@ -1813,6 +1848,7 @@ paths:
1813
1848
  - $ref: "#/components/parameters/spaceId"
1814
1849
  - $ref: "#/components/parameters/changeRequestId"
1815
1850
  - $ref: "#/components/parameters/revisionMetadata"
1851
+ - $ref: "#/components/parameters/revisionComputed"
1816
1852
  responses:
1817
1853
  "200":
1818
1854
  description: OK
@@ -1861,6 +1897,7 @@ paths:
1861
1897
  - $ref: "#/components/parameters/spaceId"
1862
1898
  - $ref: "#/components/parameters/changeRequestId"
1863
1899
  - $ref: "#/components/parameters/revisionMetadata"
1900
+ - $ref: "#/components/parameters/revisionComputed"
1864
1901
  responses:
1865
1902
  "200":
1866
1903
  description: OK
@@ -1889,6 +1926,7 @@ paths:
1889
1926
  - $ref: "#/components/parameters/listPage"
1890
1927
  - $ref: "#/components/parameters/listLimit"
1891
1928
  - $ref: "#/components/parameters/revisionMetadata"
1929
+ - $ref: "#/components/parameters/revisionComputed"
1892
1930
  responses:
1893
1931
  "200":
1894
1932
  description: OK
@@ -1918,6 +1956,7 @@ paths:
1918
1956
  - $ref: "#/components/parameters/changeRequestId"
1919
1957
  - $ref: "#/components/parameters/fileId"
1920
1958
  - $ref: "#/components/parameters/revisionMetadata"
1959
+ - $ref: "#/components/parameters/revisionComputed"
1921
1960
  responses:
1922
1961
  "200":
1923
1962
  description: OK
@@ -1971,6 +2010,7 @@ paths:
1971
2010
  - $ref: "#/components/parameters/pageId"
1972
2011
  - $ref: "#/components/parameters/documentFormat"
1973
2012
  - $ref: "#/components/parameters/revisionMetadata"
2013
+ - $ref: "#/components/parameters/revisionComputed"
1974
2014
  responses:
1975
2015
  "200":
1976
2016
  description: OK
@@ -2089,6 +2129,7 @@ paths:
2089
2129
  - $ref: "#/components/parameters/pagePath"
2090
2130
  - $ref: "#/components/parameters/documentFormat"
2091
2131
  - $ref: "#/components/parameters/revisionMetadata"
2132
+ - $ref: "#/components/parameters/revisionComputed"
2092
2133
  responses:
2093
2134
  "200":
2094
2135
  description: OK
@@ -2188,6 +2229,7 @@ paths:
2188
2229
  - $ref: "#/components/parameters/spaceId"
2189
2230
  - $ref: "#/components/parameters/revisionId"
2190
2231
  - $ref: "#/components/parameters/revisionMetadata"
2232
+ - $ref: "#/components/parameters/revisionComputed"
2191
2233
  responses:
2192
2234
  "200":
2193
2235
  description: OK
@@ -2207,6 +2249,7 @@ paths:
2207
2249
  - $ref: "#/components/parameters/spaceId"
2208
2250
  - $ref: "#/components/parameters/revisionId"
2209
2251
  - $ref: "#/components/parameters/revisionMetadata"
2252
+ - $ref: "#/components/parameters/revisionComputed"
2210
2253
  - name: limit
2211
2254
  in: query
2212
2255
  description: Limit the number of changes returned
@@ -2232,6 +2275,7 @@ paths:
2232
2275
  - $ref: "#/components/parameters/spaceId"
2233
2276
  - $ref: "#/components/parameters/revisionId"
2234
2277
  - $ref: "#/components/parameters/revisionMetadata"
2278
+ - $ref: "#/components/parameters/revisionComputed"
2235
2279
  responses:
2236
2280
  "200":
2237
2281
  description: OK
@@ -2260,6 +2304,7 @@ paths:
2260
2304
  - $ref: "#/components/parameters/listPage"
2261
2305
  - $ref: "#/components/parameters/listLimit"
2262
2306
  - $ref: "#/components/parameters/revisionMetadata"
2307
+ - $ref: "#/components/parameters/revisionComputed"
2263
2308
  responses:
2264
2309
  "200":
2265
2310
  description: OK
@@ -2289,6 +2334,7 @@ paths:
2289
2334
  - $ref: "#/components/parameters/revisionId"
2290
2335
  - $ref: "#/components/parameters/fileId"
2291
2336
  - $ref: "#/components/parameters/revisionMetadata"
2337
+ - $ref: "#/components/parameters/revisionComputed"
2292
2338
  responses:
2293
2339
  "200":
2294
2340
  description: OK
@@ -2310,6 +2356,7 @@ paths:
2310
2356
  - $ref: "#/components/parameters/pageId"
2311
2357
  - $ref: "#/components/parameters/documentFormat"
2312
2358
  - $ref: "#/components/parameters/revisionMetadata"
2359
+ - $ref: "#/components/parameters/revisionComputed"
2313
2360
  responses:
2314
2361
  "200":
2315
2362
  description: OK
@@ -2331,6 +2378,7 @@ paths:
2331
2378
  - $ref: "#/components/parameters/pagePath"
2332
2379
  - $ref: "#/components/parameters/documentFormat"
2333
2380
  - $ref: "#/components/parameters/revisionMetadata"
2381
+ - $ref: "#/components/parameters/revisionComputed"
2334
2382
  responses:
2335
2383
  "200":
2336
2384
  description: OK
@@ -6271,15 +6319,10 @@ paths:
6271
6319
  application/json:
6272
6320
  schema:
6273
6321
  type: object
6274
- required:
6275
- - content
6276
6322
  properties:
6277
6323
  title:
6278
6324
  type: string
6279
6325
  description: Title of synced block
6280
- content:
6281
- description: The content of the synced block. For now, only JSON documents are supported.
6282
- $ref: "#/components/schemas/Document"
6283
6326
  responses:
6284
6327
  "201":
6285
6328
  description: Synced block created
@@ -6729,7 +6772,10 @@ paths:
6729
6772
  $ref: "#/components/schemas/SiteBasename"
6730
6773
  defaultSiteSpace:
6731
6774
  type: string
6732
- description: ID of the site-space to be used as the default
6775
+ description: ID of the site-space to be used as the default at the root level. If site has sections, this will mark the default site space in the site's default section.
6776
+ defaultSiteSection:
6777
+ type: string
6778
+ description: ID of the site-section to be used as the default.
6733
6779
  responses:
6734
6780
  "200":
6735
6781
  description: OK
@@ -7464,8 +7510,13 @@ paths:
7464
7510
  schema:
7465
7511
  type: object
7466
7512
  properties:
7513
+ title:
7514
+ $ref: "#/components/schemas/SiteSectionTitle"
7467
7515
  path:
7468
7516
  $ref: "#/components/schemas/SiteSectionPath"
7517
+ defaultSiteSpace:
7518
+ type: string
7519
+ description: ID of the site-space to be used as the default in this section.
7469
7520
  responses:
7470
7521
  "200":
7471
7522
  description: OK
@@ -8586,6 +8637,13 @@ components:
8586
8637
  schema:
8587
8638
  type: boolean
8588
8639
  default: true
8640
+ revisionComputed:
8641
+ name: computed
8642
+ in: query
8643
+ description: If `false` is passed, content will not be computed
8644
+ schema:
8645
+ type: boolean
8646
+ default: true
8589
8647
  fileId:
8590
8648
  name: fileId
8591
8649
  in: path
@@ -10210,7 +10268,7 @@ components:
10210
10268
  - $ref: "#/components/schemas/DocumentFragment"
10211
10269
  - type: object
10212
10270
  properties:
10213
- type:
10271
+ fragment:
10214
10272
  type: string
10215
10273
  enum:
10216
10274
  - caption
@@ -10220,7 +10278,7 @@ components:
10220
10278
  $ref: "#/components/schemas/DocumentBlockParagraph"
10221
10279
  required:
10222
10280
  - nodes
10223
- - type
10281
+ - fragment
10224
10282
  isVoid:
10225
10283
  type: boolean
10226
10284
  enum:
@@ -10262,7 +10320,7 @@ components:
10262
10320
  isVoid:
10263
10321
  type: boolean
10264
10322
  enum:
10265
- - true
10323
+ - false
10266
10324
  required:
10267
10325
  - object
10268
10326
  - type
@@ -10471,6 +10529,21 @@ components:
10471
10529
  - type
10472
10530
  - data
10473
10531
  - isVoid
10532
+ PlainObject:
10533
+ properties: {}
10534
+ additionalProperties:
10535
+ oneOf:
10536
+ - $ref: "#/components/schemas/PlainObject"
10537
+ - type: string
10538
+ - type: boolean
10539
+ - type: number
10540
+ - type: array
10541
+ items:
10542
+ oneOf:
10543
+ - type: string
10544
+ - type: boolean
10545
+ - type: number
10546
+ - $ref: "#/components/schemas/PlainObject"
10474
10547
  ContentKitDefaultAction:
10475
10548
  oneOf:
10476
10549
  - type: object
@@ -10483,7 +10556,7 @@ components:
10483
10556
  componentId:
10484
10557
  type: string
10485
10558
  props:
10486
- type: object
10559
+ $ref: "#/components/schemas/PlainObject"
10487
10560
  required:
10488
10561
  - action
10489
10562
  - componentId
@@ -10496,7 +10569,19 @@ components:
10496
10569
  enum:
10497
10570
  - "@ui.modal.close"
10498
10571
  returnValue:
10499
- type: object
10572
+ $ref: "#/components/schemas/PlainObject"
10573
+ required:
10574
+ - action
10575
+ - returnValue
10576
+ - type: object
10577
+ description: Action to submit the current flow the user is in.
10578
+ properties:
10579
+ action:
10580
+ type: string
10581
+ enum:
10582
+ - "@ui.submit"
10583
+ returnValue:
10584
+ $ref: "#/components/schemas/PlainObject"
10500
10585
  required:
10501
10586
  - action
10502
10587
  - returnValue
@@ -10532,7 +10617,7 @@ components:
10532
10617
  enum:
10533
10618
  - "@editor.node.updateProps"
10534
10619
  props:
10535
- type: object
10620
+ $ref: "#/components/schemas/PlainObject"
10536
10621
  required:
10537
10622
  - action
10538
10623
  - props
@@ -10570,10 +10655,8 @@ components:
10570
10655
  type: string
10571
10656
  description: ID of the block in the integration
10572
10657
  props:
10573
- type: object
10574
10658
  description: Properties passed to the block during rendering
10575
- additionalProperties:
10576
- description: Any value
10659
+ $ref: "#/components/schemas/PlainObject"
10577
10660
  action:
10578
10661
  $ref: "#/components/schemas/ContentKitAction"
10579
10662
  url:
@@ -11525,7 +11608,7 @@ components:
11525
11608
  title:
11526
11609
  description: Title of the page
11527
11610
  type: string
11528
- maxLength: 100
11611
+ minLength: 1
11529
11612
  emoji:
11530
11613
  description: Emoji of the page, if one has been set.
11531
11614
  $ref: "#/components/schemas/Emoji"
@@ -11580,6 +11663,7 @@ components:
11580
11663
  oneOf:
11581
11664
  - $ref: "#/components/schemas/RevisionPageDocument"
11582
11665
  - $ref: "#/components/schemas/RevisionPageLink"
11666
+ - $ref: "#/components/schemas/RevisionPageComputed"
11583
11667
  git:
11584
11668
  $ref: "#/components/schemas/GitSyncBlob"
11585
11669
  layout:
@@ -11598,6 +11682,9 @@ components:
11598
11682
  type: boolean
11599
11683
  description: If true, the page is not indexable by search engine robots.
11600
11684
  default: false
11685
+ computed:
11686
+ description: Defined when the page was generated by a computed content.
11687
+ $ref: "#/components/schemas/ComputedContentSource"
11601
11688
  required:
11602
11689
  - kind
11603
11690
  - type
@@ -11632,6 +11719,45 @@ components:
11632
11719
  - kind
11633
11720
  - type
11634
11721
  - target
11722
+ ComputedContentDependency:
11723
+ oneOf:
11724
+ - $ref: "#/components/schemas/ContentRefSpace"
11725
+ ComputedContentSource:
11726
+ type: object
11727
+ description: Parameters for a computed content
11728
+ properties:
11729
+ integration:
11730
+ type: string
11731
+ description: Name of the integration
11732
+ source:
11733
+ type: string
11734
+ description: Identifier of the source used for computation
11735
+ props:
11736
+ description: Properties to be passed to the computation
11737
+ $ref: "#/components/schemas/PlainObject"
11738
+ dependsOn:
11739
+ type: array
11740
+ description: Dependencies the computation depend on. When the dependency's targets are updated, the computation will be updated.
11741
+ items:
11742
+ $ref: "#/components/schemas/ComputedContentDependency"
11743
+ required:
11744
+ - integration
11745
+ - source
11746
+ - props
11747
+ RevisionPageComputed:
11748
+ allOf:
11749
+ - $ref: "#/components/schemas/RevisionPageBase"
11750
+ - type: object
11751
+ properties:
11752
+ type:
11753
+ type: string
11754
+ enum:
11755
+ - computed
11756
+ computed:
11757
+ $ref: "#/components/schemas/ComputedContentSource"
11758
+ required:
11759
+ - type
11760
+ - computed
11635
11761
  GitSyncBlob:
11636
11762
  type: object
11637
11763
  properties:
@@ -11909,6 +12035,7 @@ components:
11909
12035
  oneOf:
11910
12036
  - $ref: "#/components/schemas/RevisionPageDocument"
11911
12037
  - $ref: "#/components/schemas/RevisionPageLink"
12038
+ - $ref: "#/components/schemas/RevisionPageComputed"
11912
12039
  required:
11913
12040
  - kind
11914
12041
  - type
@@ -11920,6 +12047,7 @@ components:
11920
12047
  - $ref: "#/components/schemas/RevisionPageDocument"
11921
12048
  - $ref: "#/components/schemas/RevisionPageGroup"
11922
12049
  - $ref: "#/components/schemas/RevisionPageLink"
12050
+ - $ref: "#/components/schemas/RevisionPageComputed"
11923
12051
  discriminator:
11924
12052
  propertyName: type
11925
12053
  RevisionFile:
@@ -12147,12 +12275,25 @@ components:
12147
12275
  - update
12148
12276
  required:
12149
12277
  - type
12278
+ RevisionTypeComputed:
12279
+ allOf:
12280
+ - $ref: "#/components/schemas/RevisionBase"
12281
+ - type: object
12282
+ properties:
12283
+ type:
12284
+ type: string
12285
+ description: Virtual revision, computed from a source revision
12286
+ enum:
12287
+ - computed
12288
+ required:
12289
+ - type
12150
12290
  Revision:
12151
12291
  oneOf:
12152
12292
  - $ref: "#/components/schemas/RevisionTypeEdits"
12153
12293
  - $ref: "#/components/schemas/RevisionTypeMerge"
12154
12294
  - $ref: "#/components/schemas/RevisionTypeRollback"
12155
12295
  - $ref: "#/components/schemas/RevisionTypeUpdate"
12296
+ - $ref: "#/components/schemas/RevisionTypeComputed"
12156
12297
  discriminator:
12157
12298
  propertyName: type
12158
12299
  ImportContentSource:
@@ -12603,6 +12744,40 @@ components:
12603
12744
  description: Custom blocks defined by this integration.
12604
12745
  items:
12605
12746
  $ref: "#/components/schemas/IntegrationBlock"
12747
+ IntegrationConfigurationComponent:
12748
+ type: object
12749
+ description: ContentKit component for configuration
12750
+ properties:
12751
+ componentId:
12752
+ type: string
12753
+ description: ID of the ContentKit component defined in the integration
12754
+ required:
12755
+ - componentId
12756
+ IntegrationContentSource:
12757
+ type: object
12758
+ description: Definition of a content source provided by the integration.
12759
+ properties:
12760
+ id:
12761
+ type: string
12762
+ description: Unique ID in the integration for the source.
12763
+ title:
12764
+ type: string
12765
+ description: Short descriptive title for the source.
12766
+ minLength: 2
12767
+ maxLength: 40
12768
+ description:
12769
+ type: string
12770
+ description: Long descriptive text for the source.
12771
+ minLength: 0
12772
+ maxLength: 150
12773
+ icon:
12774
+ type: string
12775
+ description: URL of the icon to represent this source.
12776
+ configuration:
12777
+ $ref: "#/components/schemas/IntegrationConfigurationComponent"
12778
+ required:
12779
+ - id
12780
+ - title
12606
12781
  IntegrationConfigurationSchema:
12607
12782
  type: object
12608
12783
  description: Schema for a configuration
@@ -12671,15 +12846,6 @@ components:
12671
12846
  type: string
12672
12847
  required:
12673
12848
  - properties
12674
- IntegrationConfigurationComponent:
12675
- type: object
12676
- description: ContentKit component for configuration
12677
- properties:
12678
- componentId:
12679
- type: string
12680
- description: ID of the ContentKit component defined in the integration
12681
- required:
12682
- - componentId
12683
12849
  IntegrationConfiguration:
12684
12850
  oneOf:
12685
12851
  - $ref: "#/components/schemas/IntegrationConfigurationSchema"
@@ -12815,6 +12981,10 @@ components:
12815
12981
  $ref: "#/components/schemas/IntegrationCategories"
12816
12982
  blocks:
12817
12983
  $ref: "#/components/schemas/IntegrationBlocks"
12984
+ contentSources:
12985
+ type: array
12986
+ items:
12987
+ $ref: "#/components/schemas/IntegrationContentSource"
12818
12988
  configurations:
12819
12989
  $ref: "#/components/schemas/IntegrationConfigurations"
12820
12990
  externalLinks:
@@ -13455,6 +13625,7 @@ components:
13455
13625
  - document
13456
13626
  - group
13457
13627
  - link
13628
+ - computed
13458
13629
  ChangedRevisionPage:
13459
13630
  type: object
13460
13631
  properties:
@@ -14339,6 +14510,10 @@ components:
14339
14510
  $ref: "#/components/schemas/IntegrationCategories"
14340
14511
  blocks:
14341
14512
  $ref: "#/components/schemas/IntegrationBlocks"
14513
+ contentSources:
14514
+ type: array
14515
+ items:
14516
+ $ref: "#/components/schemas/IntegrationContentSource"
14342
14517
  externalLinks:
14343
14518
  $ref: "#/components/schemas/IntegrationExternalLinks"
14344
14519
  configurations:
@@ -14944,6 +15119,22 @@ components:
14944
15119
  required:
14945
15120
  - type
14946
15121
  - siteId
15122
+ ContentKitContextConfigurationContentSource:
15123
+ allOf:
15124
+ - $ref: "#/components/schemas/ContentKitContextBase"
15125
+ - type: object
15126
+ description: Context while rendering the configuration flow of a content source.
15127
+ properties:
15128
+ type:
15129
+ type: string
15130
+ enum:
15131
+ - configuration_contentsource
15132
+ organizationId:
15133
+ type: string
15134
+ description: ID of the organization the content source installation configuration is in.
15135
+ required:
15136
+ - type
15137
+ - organizationId
14947
15138
  ContentKitContextDocument:
14948
15139
  allOf:
14949
15140
  - $ref: "#/components/schemas/ContentKitContextBase"
@@ -14969,6 +15160,7 @@ components:
14969
15160
  - $ref: "#/components/schemas/ContentKitContextConfigurationAccount"
14970
15161
  - $ref: "#/components/schemas/ContentKitContextConfigurationSpace"
14971
15162
  - $ref: "#/components/schemas/ContentKitContextConfigurationSite"
15163
+ - $ref: "#/components/schemas/ContentKitContextConfigurationContentSource"
14972
15164
  - $ref: "#/components/schemas/ContentKitContextDocument"
14973
15165
  UIRenderEvent:
14974
15166
  allOf:
@@ -15008,6 +15200,48 @@ components:
15008
15200
  - componentId
15009
15201
  - props
15010
15202
  - context
15203
+ ContentComputeEvent:
15204
+ allOf:
15205
+ - $ref: "#/components/schemas/SpaceEvent"
15206
+ - type: object
15207
+ description: Generic event when computing the content of a space
15208
+ properties:
15209
+ sourceId:
15210
+ type: string
15211
+ props:
15212
+ description: Properties passed to the rendering.
15213
+ $ref: "#/components/schemas/PlainObject"
15214
+ required:
15215
+ - sourceId
15216
+ - props
15217
+ ContentComputeDocumentEvent:
15218
+ allOf:
15219
+ - $ref: "#/components/schemas/ContentComputeEvent"
15220
+ - type: object
15221
+ description: |
15222
+ Event generated when computing the document of a pages.
15223
+ The integration should respond with a `Document`.
15224
+ properties:
15225
+ type:
15226
+ type: string
15227
+ enum:
15228
+ - content_compute_document
15229
+ required:
15230
+ - type
15231
+ ContentComputeRevisionEvent:
15232
+ allOf:
15233
+ - $ref: "#/components/schemas/ContentComputeEvent"
15234
+ - type: object
15235
+ description: |
15236
+ Event generated when computing revision in a content.
15237
+ The integration should respond with an array of pages and files.
15238
+ properties:
15239
+ type:
15240
+ type: string
15241
+ enum:
15242
+ - content_compute_revision
15243
+ required:
15244
+ - type
15011
15245
  Event:
15012
15246
  description: Any event that can be received from GitBook.
15013
15247
  oneOf:
@@ -15026,6 +15260,8 @@ components:
15026
15260
  - $ref: "#/components/schemas/FetchPublishedScriptEvent"
15027
15261
  - $ref: "#/components/schemas/FetchVisitorAuthenticationEvent"
15028
15262
  - $ref: "#/components/schemas/UIRenderEvent"
15263
+ - $ref: "#/components/schemas/ContentComputeDocumentEvent"
15264
+ - $ref: "#/components/schemas/ContentComputeRevisionEvent"
15029
15265
  discriminator:
15030
15266
  propertyName: type
15031
15267
  IntegrationEvent:
@@ -15905,7 +16141,7 @@ components:
15905
16141
  state:
15906
16142
  type: object
15907
16143
  props:
15908
- type: object
16144
+ $ref: "#/components/schemas/PlainObject"
15909
16145
  required:
15910
16146
  - element
15911
16147
  - state
@@ -15917,8 +16153,8 @@ components:
15917
16153
  type: string
15918
16154
  description: ID of the component to render in the integration.
15919
16155
  props:
15920
- type: object
15921
16156
  description: Current properties of the UI.
16157
+ $ref: "#/components/schemas/PlainObject"
15922
16158
  state:
15923
16159
  type: object
15924
16160
  description: Current local state of the UI.
@@ -17131,6 +17367,11 @@ components:
17131
17367
  required:
17132
17368
  - type
17133
17369
  - plan
17370
+ SiteSectionTitle:
17371
+ type: string
17372
+ description: Title of the site section
17373
+ minLength: 2
17374
+ maxLength: 128
17134
17375
  SiteSectionPath:
17135
17376
  type: string
17136
17377
  description: Path to the section on the site
@@ -17195,8 +17436,7 @@ components:
17195
17436
  type: string
17196
17437
  description: Unique identifier of the site section
17197
17438
  title:
17198
- type: string
17199
- description: Title of the site section
17439
+ $ref: "#/components/schemas/SiteSectionTitle"
17200
17440
  default:
17201
17441
  type: boolean
17202
17442
  description: Whether this is the default section for the site
@@ -18116,6 +18356,146 @@ components:
18116
18356
  - $ref: "#/components/schemas/DocumentBlockContentRef"
18117
18357
  - $ref: "#/components/schemas/DocumentBlockIntegration"
18118
18358
  - $ref: "#/components/schemas/DocumentBlockSyncedBlock"
18359
+ InputPageBase:
18360
+ allOf:
18361
+ - type: object
18362
+ properties:
18363
+ id:
18364
+ type: string
18365
+ description: |
18366
+ Optional unique identifier for the page.
18367
+ It can be used to reference pages in document links.
18368
+ title:
18369
+ type: string
18370
+ minLength: 1
18371
+ required:
18372
+ - title
18373
+ - oneOf:
18374
+ - type: object
18375
+ properties:
18376
+ emoji:
18377
+ description: Emoji of the page.
18378
+ $ref: "#/components/schemas/Emoji"
18379
+ required:
18380
+ - emoji
18381
+ - type: object
18382
+ properties:
18383
+ icon:
18384
+ description: Icon of the page.
18385
+ $ref: "#/components/schemas/Icon"
18386
+ InputPageDocument:
18387
+ allOf:
18388
+ - $ref: "#/components/schemas/InputPageBase"
18389
+ - type: object
18390
+ properties:
18391
+ type:
18392
+ type: string
18393
+ enum:
18394
+ - document
18395
+ description:
18396
+ type: string
18397
+ maxLength: 300
18398
+ minLength: 0
18399
+ slug:
18400
+ description: Page's slug in its direct parent
18401
+ type: string
18402
+ pages:
18403
+ type: array
18404
+ items:
18405
+ oneOf:
18406
+ - $ref: "#/components/schemas/InputPageDocument"
18407
+ - $ref: "#/components/schemas/InputPageLink"
18408
+ - $ref: "#/components/schemas/InputPageComputed"
18409
+ computed:
18410
+ $ref: "#/components/schemas/ComputedContentSource"
18411
+ required:
18412
+ - type
18413
+ InputPageLink:
18414
+ allOf:
18415
+ - $ref: "#/components/schemas/InputPageBase"
18416
+ - type: object
18417
+ properties:
18418
+ type:
18419
+ type: string
18420
+ enum:
18421
+ - link
18422
+ target:
18423
+ $ref: "#/components/schemas/ContentRef"
18424
+ required:
18425
+ - type
18426
+ - target
18427
+ InputPageComputed:
18428
+ allOf:
18429
+ - $ref: "#/components/schemas/InputPageBase"
18430
+ - type: object
18431
+ properties:
18432
+ type:
18433
+ type: string
18434
+ enum:
18435
+ - computed
18436
+ computed:
18437
+ $ref: "#/components/schemas/ComputedContentSource"
18438
+ required:
18439
+ - type
18440
+ - computed
18441
+ InputPageGroup:
18442
+ allOf:
18443
+ - $ref: "#/components/schemas/InputPageBase"
18444
+ - type: object
18445
+ properties:
18446
+ type:
18447
+ type: string
18448
+ enum:
18449
+ - group
18450
+ slug:
18451
+ description: Page's slug in its direct parent
18452
+ type: string
18453
+ pages:
18454
+ type: array
18455
+ minLength: 1
18456
+ items:
18457
+ oneOf:
18458
+ - $ref: "#/components/schemas/InputPageDocument"
18459
+ - $ref: "#/components/schemas/InputPageLink"
18460
+ - $ref: "#/components/schemas/InputPageComputed"
18461
+ required:
18462
+ - type
18463
+ - pages
18464
+ InputPage:
18465
+ oneOf:
18466
+ - $ref: "#/components/schemas/InputPageDocument"
18467
+ - $ref: "#/components/schemas/InputPageLink"
18468
+ - $ref: "#/components/schemas/InputPageComputed"
18469
+ - $ref: "#/components/schemas/InputPageGroup"
18470
+ InputFile:
18471
+ type: object
18472
+ properties:
18473
+ id:
18474
+ type: string
18475
+ name:
18476
+ type: string
18477
+ contentType:
18478
+ type: string
18479
+ downloadURL:
18480
+ type: string
18481
+ size:
18482
+ type: number
18483
+ dimensions:
18484
+ type: object
18485
+ description: For images, it contains the dimensions of it.
18486
+ properties:
18487
+ width:
18488
+ type: number
18489
+ height:
18490
+ type: number
18491
+ required:
18492
+ - width
18493
+ - height
18494
+ required:
18495
+ - name
18496
+ - contentType
18497
+ - downloadURL
18498
+ - size
18119
18499
  RevisionSemanticChangeType:
18120
18500
  type: string
18121
18501
  description: The type of semantic change.
@@ -18198,6 +18578,26 @@ components:
18198
18578
  - integration
18199
18579
  - signingSecrets
18200
18580
  - secrets
18581
+ ContentComputeDocumentEventResponse:
18582
+ type: object
18583
+ description: Response expected for an event of type `content_compute_document`.
18584
+ properties:
18585
+ document:
18586
+ $ref: "#/components/schemas/Document"
18587
+ required:
18588
+ - document
18589
+ ContentComputeRevisionEventResponse:
18590
+ type: object
18591
+ description: Response expected for an event of type `content_compute_pages`.
18592
+ properties:
18593
+ pages:
18594
+ type: array
18595
+ items:
18596
+ $ref: "#/components/schemas/InputPage"
18597
+ files:
18598
+ type: array
18599
+ items:
18600
+ $ref: "#/components/schemas/InputFile"
18201
18601
  BillingTrialStatus:
18202
18602
  type: string
18203
18603
  enum: