@gitbook/api 0.5.0 → 0.6.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
@@ -18,6 +18,7 @@ security:
18
18
  - user-internal: []
19
19
  - user-staff: []
20
20
  - integration: []
21
+ - integration-installation: []
21
22
  components:
22
23
  securitySchemes:
23
24
  user:
@@ -32,6 +33,9 @@ components:
32
33
  integration:
33
34
  type: http
34
35
  scheme: bearer
36
+ integration-installation:
37
+ type: http
38
+ scheme: bearer
35
39
  parameters:
36
40
  listLimit:
37
41
  name: limit
@@ -1117,7 +1121,7 @@ components:
1117
1121
  - entity
1118
1122
  - environments
1119
1123
  - urls
1120
- Revision:
1124
+ RevisionBase:
1121
1125
  type: object
1122
1126
  properties:
1123
1127
  object:
@@ -1185,6 +1189,65 @@ components:
1185
1189
  - pages
1186
1190
  - files
1187
1191
  - urls
1192
+ RevisionTypeMerge:
1193
+ allOf:
1194
+ - $ref: "#/components/schemas/RevisionBase"
1195
+ - type: object
1196
+ properties:
1197
+ type:
1198
+ type: string
1199
+ description: Revision created when merging a change request with primary.
1200
+ enum:
1201
+ - merge
1202
+ mergedFrom:
1203
+ $ref: "#/components/schemas/ChangeRequest"
1204
+ required:
1205
+ - type
1206
+ - mergedFrom
1207
+ RevisionTypeRollback:
1208
+ allOf:
1209
+ - $ref: "#/components/schemas/RevisionBase"
1210
+ - type: object
1211
+ properties:
1212
+ type:
1213
+ type: string
1214
+ description: Revision created as a rollback of a previous revision.
1215
+ enum:
1216
+ - rollback
1217
+ required:
1218
+ - type
1219
+ RevisionTypeUpdate:
1220
+ allOf:
1221
+ - $ref: "#/components/schemas/RevisionBase"
1222
+ - type: object
1223
+ properties:
1224
+ type:
1225
+ type: string
1226
+ description: Revision created when updating a change request with changes from primary.
1227
+ enum:
1228
+ - update
1229
+ required:
1230
+ - type
1231
+ RevisionTypeEdits:
1232
+ allOf:
1233
+ - $ref: "#/components/schemas/RevisionBase"
1234
+ - type: object
1235
+ properties:
1236
+ type:
1237
+ type: string
1238
+ description: Revision created by editing the content.
1239
+ enum:
1240
+ - edits
1241
+ required:
1242
+ - type
1243
+ Revision:
1244
+ oneOf:
1245
+ - $ref: "#/components/schemas/RevisionTypeEdits"
1246
+ - $ref: "#/components/schemas/RevisionTypeMerge"
1247
+ - $ref: "#/components/schemas/RevisionTypeRollback"
1248
+ - $ref: "#/components/schemas/RevisionTypeUpdate"
1249
+ discriminator:
1250
+ propertyName: type
1188
1251
  RevisionPage:
1189
1252
  oneOf:
1190
1253
  - $ref: "#/components/schemas/RevisionPageDocument"
@@ -1617,31 +1680,97 @@ components:
1617
1680
  Recording:
1618
1681
  type: object
1619
1682
  properties:
1683
+ object:
1684
+ type: string
1685
+ description: Type of Object, always equals to "recording"
1686
+ enum:
1687
+ - recording
1620
1688
  id:
1621
1689
  type: string
1622
1690
  description: Unique identifier for the recording
1691
+ title:
1692
+ $ref: "#/components/schemas/RecordingTitle"
1623
1693
  context:
1624
1694
  $ref: "#/components/schemas/RecordingContext"
1625
- startedAt:
1695
+ externalId:
1696
+ type: string
1697
+ description: ID in the original source of the recording.
1698
+ externalURL:
1699
+ type: string
1700
+ format: uri
1701
+ description: URL of the source from which the recording originated
1702
+ createdAt:
1626
1703
  type: string
1627
1704
  format: date-time
1628
1705
  stoppedAt:
1629
1706
  type: string
1630
1707
  format: date-time
1708
+ events:
1709
+ description: Count of events recorded.
1710
+ properties:
1711
+ terminal.command:
1712
+ type: integer
1713
+ speech:
1714
+ type: integer
1715
+ contributors:
1716
+ type: array
1717
+ minItems: 1
1718
+ items:
1719
+ oneOf:
1720
+ - $ref: "#/components/schemas/Integration"
1721
+ - $ref: "#/components/schemas/User"
1722
+ output:
1723
+ description: Output document for the recording. Is not set when recording is not finished, the user has not access to the space, or content has been deleted.
1724
+ $ref: "#/components/schemas/RecordingOutput"
1725
+ urls:
1726
+ type: object
1727
+ description: URLs associated with the object
1728
+ properties:
1729
+ location:
1730
+ type: string
1731
+ description: URL of the recording in the API
1732
+ format: uri
1733
+ required:
1734
+ - location
1631
1735
  required:
1736
+ - object
1632
1737
  - id
1738
+ - title
1633
1739
  - context
1634
- - startedAt
1740
+ - events
1741
+ - createdAt
1742
+ - contributors
1743
+ - urls
1744
+ RecordingTitle:
1745
+ type: string
1746
+ description: Optional title describing the recording
1747
+ maxLength: 100
1748
+ RecordingOutput:
1749
+ type: object
1750
+ properties:
1751
+ url:
1752
+ type: string
1753
+ format: uri
1754
+ description: URL of the generated page
1755
+ space:
1756
+ $ref: "#/components/schemas/Space"
1757
+ page:
1758
+ $ref: "#/components/schemas/RevisionPageDocument"
1759
+ required:
1760
+ - url
1761
+ - space
1762
+ - page
1635
1763
  RecordingEvent:
1636
1764
  oneOf:
1637
1765
  - $ref: "#/components/schemas/RecordingTerminalCommandEvent"
1638
1766
  - $ref: "#/components/schemas/RecordingSpeechEvent"
1639
1767
  RecordingContext:
1640
- type: string
1641
- enum:
1642
- - meeting
1643
- - conversation
1644
- - walkthrough
1768
+ oneOf:
1769
+ - type: string
1770
+ enum:
1771
+ - meeting
1772
+ - conversation
1773
+ - walkthrough
1645
1774
  BaseRecordingEvent:
1646
1775
  type: object
1647
1776
  properties:
@@ -2316,6 +2445,7 @@ components:
2316
2445
  type: string
2317
2446
  enum:
2318
2447
  - organization:entities:write
2448
+ - recording:write
2319
2449
  - space:views:read
2320
2450
  - space:content:read
2321
2451
  - space:content:write
@@ -3723,11 +3853,14 @@ components:
3723
3853
  - code
3724
3854
  - strikethrough
3725
3855
  children:
3726
- type: array
3727
- items:
3728
- oneOf:
3729
- - type: string
3730
- - $ref: "#/components/schemas/ContentKitText"
3856
+ oneOf:
3857
+ - type: string
3858
+ - type: array
3859
+ items:
3860
+ oneOf:
3861
+ - type: string
3862
+ - $ref: "#/components/schemas/ContentKitText"
3863
+ - $ref: "#/components/schemas/ContentKitLink"
3731
3864
  required:
3732
3865
  - type
3733
3866
  - children
@@ -3905,6 +4038,7 @@ components:
3905
4038
  - close
3906
4039
  - edit
3907
4040
  - github
4041
+ - gitlab
3908
4042
  - maximize
3909
4043
  - email
3910
4044
  - settings
@@ -3914,6 +4048,7 @@ components:
3914
4048
  - warning
3915
4049
  - link
3916
4050
  - link-external
4051
+ - eye
3917
4052
  ContentKitModal:
3918
4053
  type: object
3919
4054
  description: Overlay modal.
@@ -4107,6 +4242,30 @@ components:
4107
4242
  - type
4108
4243
  - source
4109
4244
  - aspectRatio
4245
+ ContentKitLink:
4246
+ type: object
4247
+ properties:
4248
+ type:
4249
+ type: string
4250
+ enum:
4251
+ - link
4252
+ target:
4253
+ type: object
4254
+ properties:
4255
+ url:
4256
+ oneOf:
4257
+ - type: string
4258
+ - $ref: "#/components/schemas/ContentKitURL"
4259
+ required:
4260
+ - url
4261
+ children:
4262
+ type: array
4263
+ items:
4264
+ type: string
4265
+ required:
4266
+ - type
4267
+ - target
4268
+ - children
4110
4269
  ContentKitInput:
4111
4270
  type: object
4112
4271
  description: Field for an input.
@@ -4175,6 +4334,9 @@ components:
4175
4334
  multiple:
4176
4335
  description: Should the select accept the selection of multiple options. If true, the state will be an array.
4177
4336
  type: boolean
4337
+ acceptInput:
4338
+ description: Should the filter input be allowed to be selected as an option.
4339
+ type: boolean
4178
4340
  options:
4179
4341
  description: Array of options to display in the select.
4180
4342
  oneOf:
@@ -4311,6 +4473,7 @@ components:
4311
4473
  - $ref: "#/components/schemas/ContentKitRadio"
4312
4474
  - $ref: "#/components/schemas/ContentKitText"
4313
4475
  - $ref: "#/components/schemas/ContentKitHint"
4476
+ - $ref: "#/components/schemas/ContentKitLink"
4314
4477
  discriminator:
4315
4478
  propertyName: type
4316
4479
  ContentKitInlineElement:
@@ -4318,6 +4481,7 @@ components:
4318
4481
  oneOf:
4319
4482
  - $ref: "#/components/schemas/ContentKitText"
4320
4483
  - $ref: "#/components/schemas/ContentKitImage"
4484
+ - $ref: "#/components/schemas/ContentKitLink"
4321
4485
  discriminator:
4322
4486
  propertyName: type
4323
4487
  ContentKitURL:
@@ -4365,6 +4529,7 @@ components:
4365
4529
  - $ref: "#/components/schemas/OrganizationSpaceRelationsChannel"
4366
4530
  - $ref: "#/components/schemas/OrganizationSpacesChannel"
4367
4531
  - $ref: "#/components/schemas/OrganizationEntitiesChannel"
4532
+ - $ref: "#/components/schemas/OrganizationRecordingsChannel"
4368
4533
  - type: object
4369
4534
  properties:
4370
4535
  channel:
@@ -4703,6 +4868,18 @@ components:
4703
4868
  required:
4704
4869
  - channel
4705
4870
  - organization
4871
+ OrganizationRecordingsChannel:
4872
+ type: object
4873
+ properties:
4874
+ channel:
4875
+ type: string
4876
+ enum:
4877
+ - organization-recordings
4878
+ organization:
4879
+ type: string
4880
+ required:
4881
+ - channel
4882
+ - organization
4706
4883
  CustomField:
4707
4884
  type: object
4708
4885
  description: Custom field
@@ -7681,7 +7858,7 @@ paths:
7681
7858
  tags:
7682
7859
  - integrations
7683
7860
  security:
7684
- - integration: []
7861
+ - integration-installation: []
7685
7862
  parameters:
7686
7863
  - $ref: "#/components/parameters/integrationName"
7687
7864
  - $ref: "#/components/parameters/installationId"
@@ -7712,7 +7889,7 @@ paths:
7712
7889
  tags:
7713
7890
  - integrations
7714
7891
  security:
7715
- - integration: []
7892
+ - integration-installation: []
7716
7893
  parameters:
7717
7894
  - $ref: "#/components/parameters/integrationName"
7718
7895
  - $ref: "#/components/parameters/installationId"
@@ -9119,6 +9296,37 @@ paths:
9119
9296
  default:
9120
9297
  $ref: "#/components/responses/UnexpectedError"
9121
9298
  "/orgs/{organizationId}/recordings":
9299
+ get:
9300
+ operationId: listRecordings
9301
+ summary: List recordings
9302
+ description: |
9303
+ List recordings in an organization.
9304
+ tags:
9305
+ - organizations
9306
+ security:
9307
+ - user: []
9308
+ parameters:
9309
+ - $ref: "#/components/parameters/organizationId"
9310
+ - $ref: "#/components/parameters/listPage"
9311
+ - $ref: "#/components/parameters/listLimit"
9312
+ responses:
9313
+ "200":
9314
+ description: OK
9315
+ content:
9316
+ application/json:
9317
+ schema:
9318
+ allOf:
9319
+ - $ref: "#/components/schemas/List"
9320
+ - type: object
9321
+ required:
9322
+ - items
9323
+ properties:
9324
+ items:
9325
+ type: array
9326
+ items:
9327
+ $ref: "#/components/schemas/Recording"
9328
+ default:
9329
+ $ref: "#/components/responses/UnexpectedError"
9122
9330
  post:
9123
9331
  operationId: startRecording
9124
9332
  summary: Start a recording
@@ -9134,13 +9342,18 @@ paths:
9134
9342
  schema:
9135
9343
  type: object
9136
9344
  properties:
9137
- space:
9138
- description: The space in which the docs should be generated
9139
- type: string
9345
+ title:
9346
+ $ref: "#/components/schemas/RecordingTitle"
9140
9347
  context:
9141
9348
  $ref: "#/components/schemas/RecordingContext"
9349
+ externalId:
9350
+ type: string
9351
+ description: ID in the original source of the recording.
9352
+ externalURL:
9353
+ type: string
9354
+ format: uri
9355
+ description: URL of the original source of the recording.
9142
9356
  required:
9143
- - space
9144
9357
  - context
9145
9358
  responses:
9146
9359
  "201":
@@ -9156,6 +9369,26 @@ paths:
9156
9369
  $ref: "#/components/schemas/Recording"
9157
9370
  default:
9158
9371
  $ref: "#/components/responses/UnexpectedError"
9372
+ "/orgs/{organizationId}/recordings/{recordingId}":
9373
+ get:
9374
+ operationId: getRecording
9375
+ summary: Get a recording by its ID
9376
+ tags:
9377
+ - organizations
9378
+ security:
9379
+ - user: []
9380
+ parameters:
9381
+ - $ref: "#/components/parameters/organizationId"
9382
+ - $ref: "#/components/parameters/recordingId"
9383
+ responses:
9384
+ "200":
9385
+ description: OK
9386
+ content:
9387
+ application/json:
9388
+ schema:
9389
+ $ref: "#/components/schemas/Recording"
9390
+ default:
9391
+ $ref: "#/components/responses/UnexpectedError"
9159
9392
  "/orgs/{organizationId}/recordings/{recordingId}/events":
9160
9393
  post:
9161
9394
  operationId: addEventsToRecording
@@ -9180,7 +9413,7 @@ paths:
9180
9413
  required:
9181
9414
  - events
9182
9415
  responses:
9183
- "200":
9416
+ "204":
9184
9417
  description: Events added
9185
9418
  default:
9186
9419
  $ref: "#/components/responses/UnexpectedError"
@@ -9195,19 +9428,24 @@ paths:
9195
9428
  parameters:
9196
9429
  - $ref: "#/components/parameters/organizationId"
9197
9430
  - $ref: "#/components/parameters/recordingId"
9431
+ requestBody:
9432
+ content:
9433
+ application/json:
9434
+ schema:
9435
+ type: object
9436
+ properties:
9437
+ space:
9438
+ description: The space in which the docs should be generated
9439
+ type: string
9440
+ required:
9441
+ - space
9198
9442
  responses:
9199
9443
  "200":
9200
9444
  description: Recording stopped
9201
9445
  content:
9202
9446
  application/json:
9203
9447
  schema:
9204
- type: object
9205
- properties:
9206
- url:
9207
- description: URL of the generated document
9208
- type: string
9209
- required:
9210
- - url
9448
+ $ref: "#/components/schemas/RecordingOutput"
9211
9449
  default:
9212
9450
  $ref: "#/components/responses/UnexpectedError"
9213
9451
  /internal/hive/token: