@gitbook/api 0.4.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.json CHANGED
@@ -33,6 +33,9 @@
33
33
  },
34
34
  {
35
35
  "integration": []
36
+ },
37
+ {
38
+ "integration-installation": []
36
39
  }
37
40
  ],
38
41
  "components": {
@@ -52,6 +55,10 @@
52
55
  "integration": {
53
56
  "type": "http",
54
57
  "scheme": "bearer"
58
+ },
59
+ "integration-installation": {
60
+ "type": "http",
61
+ "scheme": "bearer"
55
62
  }
56
63
  },
57
64
  "parameters": {
@@ -196,6 +203,15 @@
196
203
  "type": "string"
197
204
  }
198
205
  },
206
+ "recordingId": {
207
+ "name": "recordingId",
208
+ "in": "path",
209
+ "required": true,
210
+ "description": "The unique id of a recording",
211
+ "schema": {
212
+ "type": "string"
213
+ }
214
+ },
199
215
  "userId": {
200
216
  "name": "userId",
201
217
  "in": "path",
@@ -597,6 +613,10 @@
597
613
  "standalone": {
598
614
  "type": "boolean",
599
615
  "description": "If true, the import will generate a revision without updating the space primary content."
616
+ },
617
+ "gitInfo": {
618
+ "description": "Optional metadata to store on the space about the Git provider",
619
+ "$ref": "#/components/schemas/RequestUpdateSpaceGitInfo"
600
620
  }
601
621
  },
602
622
  "required": [
@@ -637,6 +657,10 @@
637
657
  },
638
658
  "force": {
639
659
  "type": "boolean"
660
+ },
661
+ "gitInfo": {
662
+ "description": "Optional metadata to store on the space about the Git provider",
663
+ "$ref": "#/components/schemas/RequestUpdateSpaceGitInfo"
640
664
  }
641
665
  },
642
666
  "required": [
@@ -702,10 +726,6 @@
702
726
  "type": "string",
703
727
  "description": "ID of the component to render in the integration."
704
728
  },
705
- "spaceId": {
706
- "type": "string",
707
- "description": "ID of the space to render."
708
- },
709
729
  "props": {
710
730
  "type": "object",
711
731
  "description": "Current properties of the UI."
@@ -723,7 +743,6 @@
723
743
  },
724
744
  "required": [
725
745
  "componentId",
726
- "spaceId",
727
746
  "props",
728
747
  "context"
729
748
  ]
@@ -758,6 +777,24 @@
758
777
  "title"
759
778
  ]
760
779
  },
780
+ "RequestUpdateSpaceGitInfo": {
781
+ "type": "object",
782
+ "description": "Update metadata about the Git provider on the space",
783
+ "properties": {
784
+ "provider": {
785
+ "type": "string",
786
+ "description": "The git provider",
787
+ "enum": [
788
+ "github",
789
+ "gitlab"
790
+ ]
791
+ },
792
+ "url": {
793
+ "type": "string",
794
+ "description": "The repository's tree URL"
795
+ }
796
+ }
797
+ },
761
798
  "ApiInformation": {
762
799
  "type": "object",
763
800
  "properties": {
@@ -1329,6 +1366,9 @@
1329
1366
  "updatedAt": {
1330
1367
  "$ref": "#/components/schemas/Date"
1331
1368
  },
1369
+ "deletedAt": {
1370
+ "$ref": "#/components/schemas/Date"
1371
+ },
1332
1372
  "urls": {
1333
1373
  "type": "object",
1334
1374
  "description": "URLs associated with the object",
@@ -1534,7 +1574,7 @@
1534
1574
  "urls"
1535
1575
  ]
1536
1576
  },
1537
- "Revision": {
1577
+ "RevisionBase": {
1538
1578
  "type": "object",
1539
1579
  "properties": {
1540
1580
  "object": {
@@ -1627,6 +1667,117 @@
1627
1667
  "urls"
1628
1668
  ]
1629
1669
  },
1670
+ "RevisionTypeMerge": {
1671
+ "allOf": [
1672
+ {
1673
+ "$ref": "#/components/schemas/RevisionBase"
1674
+ },
1675
+ {
1676
+ "type": "object",
1677
+ "properties": {
1678
+ "type": {
1679
+ "type": "string",
1680
+ "description": "Revision created when merging a change request with primary.",
1681
+ "enum": [
1682
+ "merge"
1683
+ ]
1684
+ },
1685
+ "mergedFrom": {
1686
+ "$ref": "#/components/schemas/ChangeRequest"
1687
+ }
1688
+ },
1689
+ "required": [
1690
+ "type",
1691
+ "mergedFrom"
1692
+ ]
1693
+ }
1694
+ ]
1695
+ },
1696
+ "RevisionTypeRollback": {
1697
+ "allOf": [
1698
+ {
1699
+ "$ref": "#/components/schemas/RevisionBase"
1700
+ },
1701
+ {
1702
+ "type": "object",
1703
+ "properties": {
1704
+ "type": {
1705
+ "type": "string",
1706
+ "description": "Revision created as a rollback of a previous revision.",
1707
+ "enum": [
1708
+ "rollback"
1709
+ ]
1710
+ }
1711
+ },
1712
+ "required": [
1713
+ "type"
1714
+ ]
1715
+ }
1716
+ ]
1717
+ },
1718
+ "RevisionTypeUpdate": {
1719
+ "allOf": [
1720
+ {
1721
+ "$ref": "#/components/schemas/RevisionBase"
1722
+ },
1723
+ {
1724
+ "type": "object",
1725
+ "properties": {
1726
+ "type": {
1727
+ "type": "string",
1728
+ "description": "Revision created when updating a change request with changes from primary.",
1729
+ "enum": [
1730
+ "update"
1731
+ ]
1732
+ }
1733
+ },
1734
+ "required": [
1735
+ "type"
1736
+ ]
1737
+ }
1738
+ ]
1739
+ },
1740
+ "RevisionTypeEdits": {
1741
+ "allOf": [
1742
+ {
1743
+ "$ref": "#/components/schemas/RevisionBase"
1744
+ },
1745
+ {
1746
+ "type": "object",
1747
+ "properties": {
1748
+ "type": {
1749
+ "type": "string",
1750
+ "description": "Revision created by editing the content.",
1751
+ "enum": [
1752
+ "edits"
1753
+ ]
1754
+ }
1755
+ },
1756
+ "required": [
1757
+ "type"
1758
+ ]
1759
+ }
1760
+ ]
1761
+ },
1762
+ "Revision": {
1763
+ "oneOf": [
1764
+ {
1765
+ "$ref": "#/components/schemas/RevisionTypeEdits"
1766
+ },
1767
+ {
1768
+ "$ref": "#/components/schemas/RevisionTypeMerge"
1769
+ },
1770
+ {
1771
+ "$ref": "#/components/schemas/RevisionTypeRollback"
1772
+ },
1773
+ {
1774
+ "$ref": "#/components/schemas/RevisionTypeUpdate"
1775
+ }
1776
+ ],
1777
+ "discriminator": {
1778
+ "propertyName": "type"
1779
+ }
1780
+ },
1630
1781
  "RevisionPage": {
1631
1782
  "oneOf": [
1632
1783
  {
@@ -1857,7 +2008,11 @@
1857
2008
  },
1858
2009
  "url": {
1859
2010
  "type": "string",
1860
- "description": "The URL to the repository, used when rendering public content."
2011
+ "description": "The URL to the repository tree, used when rendering public content."
2012
+ },
2013
+ "updatedAt": {
2014
+ "description": "When the Git provider details were last updated",
2015
+ "$ref": "#/components/schemas/Date"
1861
2016
  }
1862
2017
  }
1863
2018
  },
@@ -2196,6 +2351,10 @@
2196
2351
  "type": "integer",
2197
2352
  "description": "Count of members in this team."
2198
2353
  },
2354
+ "spaces": {
2355
+ "type": "number",
2356
+ "description": "Count of spaces this team has access to."
2357
+ },
2199
2358
  "createdAt": {
2200
2359
  "description": "Date at which the team was created.",
2201
2360
  "$ref": "#/components/schemas/Date"
@@ -2206,6 +2365,7 @@
2206
2365
  "id",
2207
2366
  "title",
2208
2367
  "members",
2368
+ "spaces",
2209
2369
  "createdAt"
2210
2370
  ]
2211
2371
  },
@@ -2228,6 +2388,259 @@
2228
2388
  "participant"
2229
2389
  ]
2230
2390
  },
2391
+ "Recording": {
2392
+ "type": "object",
2393
+ "properties": {
2394
+ "object": {
2395
+ "type": "string",
2396
+ "description": "Type of Object, always equals to \"recording\"",
2397
+ "enum": [
2398
+ "recording"
2399
+ ]
2400
+ },
2401
+ "id": {
2402
+ "type": "string",
2403
+ "description": "Unique identifier for the recording"
2404
+ },
2405
+ "title": {
2406
+ "$ref": "#/components/schemas/RecordingTitle"
2407
+ },
2408
+ "context": {
2409
+ "$ref": "#/components/schemas/RecordingContext"
2410
+ },
2411
+ "externalId": {
2412
+ "type": "string",
2413
+ "description": "ID in the original source of the recording."
2414
+ },
2415
+ "externalURL": {
2416
+ "type": "string",
2417
+ "format": "uri",
2418
+ "description": "URL of the source from which the recording originated"
2419
+ },
2420
+ "createdAt": {
2421
+ "type": "string",
2422
+ "format": "date-time"
2423
+ },
2424
+ "stoppedAt": {
2425
+ "type": "string",
2426
+ "format": "date-time"
2427
+ },
2428
+ "events": {
2429
+ "description": "Count of events recorded.",
2430
+ "properties": {
2431
+ "terminal.command": {
2432
+ "type": "integer"
2433
+ },
2434
+ "speech": {
2435
+ "type": "integer"
2436
+ }
2437
+ }
2438
+ },
2439
+ "contributors": {
2440
+ "type": "array",
2441
+ "minItems": 1,
2442
+ "items": {
2443
+ "oneOf": [
2444
+ {
2445
+ "$ref": "#/components/schemas/Integration"
2446
+ },
2447
+ {
2448
+ "$ref": "#/components/schemas/User"
2449
+ }
2450
+ ]
2451
+ }
2452
+ },
2453
+ "output": {
2454
+ "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.",
2455
+ "$ref": "#/components/schemas/RecordingOutput"
2456
+ },
2457
+ "urls": {
2458
+ "type": "object",
2459
+ "description": "URLs associated with the object",
2460
+ "properties": {
2461
+ "location": {
2462
+ "type": "string",
2463
+ "description": "URL of the recording in the API",
2464
+ "format": "uri"
2465
+ }
2466
+ },
2467
+ "required": [
2468
+ "location"
2469
+ ]
2470
+ }
2471
+ },
2472
+ "required": [
2473
+ "object",
2474
+ "id",
2475
+ "title",
2476
+ "context",
2477
+ "events",
2478
+ "createdAt",
2479
+ "contributors",
2480
+ "urls"
2481
+ ]
2482
+ },
2483
+ "RecordingTitle": {
2484
+ "type": "string",
2485
+ "description": "Optional title describing the recording",
2486
+ "maxLength": 100
2487
+ },
2488
+ "RecordingOutput": {
2489
+ "type": "object",
2490
+ "properties": {
2491
+ "url": {
2492
+ "type": "string",
2493
+ "format": "uri",
2494
+ "description": "URL of the generated page"
2495
+ },
2496
+ "space": {
2497
+ "$ref": "#/components/schemas/Space"
2498
+ },
2499
+ "page": {
2500
+ "$ref": "#/components/schemas/RevisionPageDocument"
2501
+ }
2502
+ },
2503
+ "required": [
2504
+ "url",
2505
+ "space",
2506
+ "page"
2507
+ ]
2508
+ },
2509
+ "RecordingEvent": {
2510
+ "oneOf": [
2511
+ {
2512
+ "$ref": "#/components/schemas/RecordingTerminalCommandEvent"
2513
+ },
2514
+ {
2515
+ "$ref": "#/components/schemas/RecordingSpeechEvent"
2516
+ }
2517
+ ]
2518
+ },
2519
+ "RecordingContext": {
2520
+ "oneOf": [
2521
+ {
2522
+ "type": "string",
2523
+ "enum": [
2524
+ "meeting",
2525
+ "conversation",
2526
+ "walkthrough"
2527
+ ]
2528
+ }
2529
+ ]
2530
+ },
2531
+ "BaseRecordingEvent": {
2532
+ "type": "object",
2533
+ "properties": {
2534
+ "type": {
2535
+ "type": "string",
2536
+ "description": "The type of event"
2537
+ },
2538
+ "timestamp": {
2539
+ "type": "string",
2540
+ "format": "date-time",
2541
+ "description": "When the event happened"
2542
+ },
2543
+ "source": {
2544
+ "type": "string",
2545
+ "description": "Optionally, provide the source of the event. GitBook may use this to improve the generated content.",
2546
+ "maxLength": 50
2547
+ },
2548
+ "actor": {
2549
+ "type": "object",
2550
+ "description": "Optionally, provide the actor of the event, in the context of multiple people contributing to the recording.",
2551
+ "properties": {
2552
+ "name": {
2553
+ "type": "string"
2554
+ }
2555
+ },
2556
+ "required": [
2557
+ "name"
2558
+ ]
2559
+ }
2560
+ },
2561
+ "required": [
2562
+ "type",
2563
+ "timestamp"
2564
+ ]
2565
+ },
2566
+ "RecordingSpeechEvent": {
2567
+ "allOf": [
2568
+ {
2569
+ "$ref": "#/components/schemas/BaseRecordingEvent"
2570
+ },
2571
+ {
2572
+ "type": "object",
2573
+ "properties": {
2574
+ "type": {
2575
+ "type": "string",
2576
+ "enum": [
2577
+ "speech"
2578
+ ]
2579
+ }
2580
+ },
2581
+ "required": [
2582
+ "type"
2583
+ ]
2584
+ },
2585
+ {
2586
+ "oneOf": [
2587
+ {
2588
+ "type": "object",
2589
+ "properties": {
2590
+ "audio": {
2591
+ "description": "WAV audio file, encoded as base64",
2592
+ "type": "string"
2593
+ }
2594
+ },
2595
+ "required": [
2596
+ "audio"
2597
+ ]
2598
+ },
2599
+ {
2600
+ "type": "object",
2601
+ "properties": {
2602
+ "transcript": {
2603
+ "description": "Transcript of the speech",
2604
+ "type": "string"
2605
+ }
2606
+ },
2607
+ "required": [
2608
+ "transcript"
2609
+ ]
2610
+ }
2611
+ ]
2612
+ }
2613
+ ]
2614
+ },
2615
+ "RecordingTerminalCommandEvent": {
2616
+ "allOf": [
2617
+ {
2618
+ "$ref": "#/components/schemas/BaseRecordingEvent"
2619
+ },
2620
+ {
2621
+ "type": "object",
2622
+ "properties": {
2623
+ "type": {
2624
+ "type": "string",
2625
+ "enum": [
2626
+ "terminal.command"
2627
+ ]
2628
+ },
2629
+ "command": {
2630
+ "type": "string"
2631
+ },
2632
+ "stdout": {
2633
+ "type": "string"
2634
+ }
2635
+ },
2636
+ "required": [
2637
+ "type",
2638
+ "command",
2639
+ "stdout"
2640
+ ]
2641
+ }
2642
+ ]
2643
+ },
2231
2644
  "ChangeRequest": {
2232
2645
  "type": "object",
2233
2646
  "properties": {
@@ -3078,13 +3491,15 @@
3078
3491
  "type": "string",
3079
3492
  "enum": [
3080
3493
  "organization:entities:write",
3494
+ "recording:write",
3081
3495
  "space:views:read",
3082
3496
  "space:content:read",
3083
3497
  "space:content:write",
3084
3498
  "space:metadata:read",
3085
3499
  "space:metadata:write",
3086
3500
  "space:script:inject",
3087
- "space:script:cookies"
3501
+ "space:script:cookies",
3502
+ "space:git:sync"
3088
3503
  ]
3089
3504
  },
3090
3505
  "IntegrationCategories": {
@@ -3278,7 +3693,7 @@
3278
3693
  "type": "object",
3279
3694
  "properties": {
3280
3695
  "account": {
3281
- "$ref": "#/components/schemas/IntegrationConfigurationSchema"
3696
+ "$ref": "#/components/schemas/IntegrationConfiguration"
3282
3697
  },
3283
3698
  "space": {
3284
3699
  "$ref": "#/components/schemas/IntegrationConfiguration"
@@ -3545,13 +3960,10 @@
3545
3960
  "type": "object",
3546
3961
  "description": "Runtime environment provided during the execution of integration's code.",
3547
3962
  "properties": {
3548
- "apiEndpoint": {
3549
- "type": "string",
3550
- "description": "URL of the HTTP API"
3551
- },
3552
3963
  "authToken": {
3553
3964
  "type": "string",
3554
- "description": "Authentication token to use with the HTTP API"
3965
+ "description": "Authentication token to use with the HTTP API. Depending on the context, the token might be representing the installation or the integration.",
3966
+ "deprecated": true
3555
3967
  },
3556
3968
  "integration": {
3557
3969
  "$ref": "#/components/schemas/Integration"
@@ -3564,10 +3976,31 @@
3564
3976
  },
3565
3977
  "secrets": {
3566
3978
  "$ref": "#/components/schemas/IntegrationSecrets"
3979
+ },
3980
+ "apiEndpoint": {
3981
+ "type": "string",
3982
+ "description": "URL of the HTTP API"
3983
+ },
3984
+ "apiTokens": {
3985
+ "type": "object",
3986
+ "properties": {
3987
+ "integration": {
3988
+ "type": "string",
3989
+ "description": "API authentication token representing the integration."
3990
+ },
3991
+ "installation": {
3992
+ "type": "string",
3993
+ "description": "API authentication token representing the current installation."
3994
+ }
3995
+ },
3996
+ "required": [
3997
+ "integration"
3998
+ ]
3567
3999
  }
3568
4000
  },
3569
4001
  "required": [
3570
4002
  "apiEndpoint",
4003
+ "apiTokens",
3571
4004
  "integration",
3572
4005
  "secrets"
3573
4006
  ]
@@ -4275,7 +4708,14 @@
4275
4708
  "UIRenderEvent": {
4276
4709
  "allOf": [
4277
4710
  {
4278
- "$ref": "#/components/schemas/SpaceEvent"
4711
+ "oneOf": [
4712
+ {
4713
+ "$ref": "#/components/schemas/SpaceEvent"
4714
+ },
4715
+ {
4716
+ "$ref": "#/components/schemas/InstallationEvent"
4717
+ }
4718
+ ]
4279
4719
  },
4280
4720
  {
4281
4721
  "type": "object",
@@ -4892,33 +5332,117 @@
4892
5332
  "token"
4893
5333
  ]
4894
5334
  },
5335
+ "ContentKitContextBase": {
5336
+ "type": "object",
5337
+ "description": "Common properties for ContentKit context.",
5338
+ "properties": {
5339
+ "theme": {
5340
+ "type": "string",
5341
+ "enum": [
5342
+ "dark",
5343
+ "light"
5344
+ ]
5345
+ }
5346
+ },
5347
+ "required": [
5348
+ "theme"
5349
+ ]
5350
+ },
4895
5351
  "ContentKitContext": {
5352
+ "description": "Object representing the context in which a ContentKit component is rendered.",
4896
5353
  "oneOf": [
5354
+ {
5355
+ "$ref": "#/components/schemas/ContentKitContextConfigurationAccount"
5356
+ },
5357
+ {
5358
+ "$ref": "#/components/schemas/ContentKitContextConfigurationSpace"
5359
+ },
5360
+ {
5361
+ "$ref": "#/components/schemas/ContentKitContextDocument"
5362
+ }
5363
+ ]
5364
+ },
5365
+ "ContentKitContextConfigurationAccount": {
5366
+ "allOf": [
5367
+ {
5368
+ "$ref": "#/components/schemas/ContentKitContextBase"
5369
+ },
5370
+ {
5371
+ "type": "object",
5372
+ "description": "Context while rendering in an account installation's configuration.",
5373
+ "properties": {
5374
+ "type": {
5375
+ "type": "string",
5376
+ "enum": [
5377
+ "configuration_account"
5378
+ ]
5379
+ },
5380
+ "organizationId": {
5381
+ "type": "string",
5382
+ "description": "ID of the organization the account installation configuration is in."
5383
+ }
5384
+ },
5385
+ "required": [
5386
+ "type",
5387
+ "organizationId"
5388
+ ]
5389
+ }
5390
+ ]
5391
+ },
5392
+ "ContentKitContextConfigurationSpace": {
5393
+ "allOf": [
5394
+ {
5395
+ "$ref": "#/components/schemas/ContentKitContextBase"
5396
+ },
5397
+ {
5398
+ "type": "object",
5399
+ "description": "Context while rendering in a space-installation's configuration.",
5400
+ "properties": {
5401
+ "type": {
5402
+ "type": "string",
5403
+ "enum": [
5404
+ "configuration_space"
5405
+ ]
5406
+ },
5407
+ "spaceId": {
5408
+ "type": "string",
5409
+ "description": "ID of the space the space-installation configuration is in."
5410
+ }
5411
+ },
5412
+ "required": [
5413
+ "type",
5414
+ "spaceId"
5415
+ ]
5416
+ }
5417
+ ]
5418
+ },
5419
+ "ContentKitContextDocument": {
5420
+ "allOf": [
5421
+ {
5422
+ "$ref": "#/components/schemas/ContentKitContextBase"
5423
+ },
4897
5424
  {
4898
5425
  "type": "object",
5426
+ "description": "Context while rendering in a document.",
4899
5427
  "properties": {
4900
5428
  "type": {
4901
5429
  "type": "string",
4902
5430
  "enum": [
4903
- "document",
4904
- "configuration_space"
5431
+ "document"
4905
5432
  ]
4906
5433
  },
5434
+ "spaceId": {
5435
+ "type": "string",
5436
+ "description": "ID of the space content the document is in."
5437
+ },
4907
5438
  "editable": {
4908
5439
  "type": "boolean"
4909
- },
4910
- "theme": {
4911
- "type": "string",
4912
- "enum": [
4913
- "dark",
4914
- "light"
4915
- ]
4916
5440
  }
4917
5441
  },
4918
5442
  "required": [
4919
5443
  "type",
4920
- "editable",
4921
- "theme"
5444
+ "spaceId",
5445
+ "editable"
4922
5446
  ]
4923
5447
  }
4924
5448
  ]
@@ -5020,6 +5544,9 @@
5020
5544
  "icon": {
5021
5545
  "$ref": "#/components/schemas/ContentKitIcon"
5022
5546
  },
5547
+ "trailingIcon": {
5548
+ "$ref": "#/components/schemas/ContentKitIcon"
5549
+ },
5023
5550
  "label": {
5024
5551
  "type": "string"
5025
5552
  },
@@ -5089,17 +5616,27 @@
5089
5616
  ]
5090
5617
  },
5091
5618
  "children": {
5092
- "type": "array",
5093
- "items": {
5094
- "oneOf": [
5095
- {
5096
- "type": "string"
5097
- },
5098
- {
5099
- "$ref": "#/components/schemas/ContentKitText"
5619
+ "oneOf": [
5620
+ {
5621
+ "type": "string"
5622
+ },
5623
+ {
5624
+ "type": "array",
5625
+ "items": {
5626
+ "oneOf": [
5627
+ {
5628
+ "type": "string"
5629
+ },
5630
+ {
5631
+ "$ref": "#/components/schemas/ContentKitText"
5632
+ },
5633
+ {
5634
+ "$ref": "#/components/schemas/ContentKitLink"
5635
+ }
5636
+ ]
5100
5637
  }
5101
- ]
5102
- }
5638
+ }
5639
+ ]
5103
5640
  }
5104
5641
  },
5105
5642
  "required": [
@@ -5132,6 +5669,28 @@
5132
5669
  "children"
5133
5670
  ]
5134
5671
  },
5672
+ "ContentKitHint": {
5673
+ "type": "object",
5674
+ "description": "Element used to contextualize other elements or info.",
5675
+ "properties": {
5676
+ "type": {
5677
+ "type": "string",
5678
+ "enum": [
5679
+ "hint"
5680
+ ]
5681
+ },
5682
+ "children": {
5683
+ "type": "array",
5684
+ "items": {
5685
+ "$ref": "#/components/schemas/ContentKitInlineElement"
5686
+ }
5687
+ }
5688
+ },
5689
+ "required": [
5690
+ "type",
5691
+ "children"
5692
+ ]
5693
+ },
5135
5694
  "ContentKitHStack": {
5136
5695
  "type": "object",
5137
5696
  "description": "Horizontal stack of boxes.",
@@ -5346,6 +5905,7 @@
5346
5905
  "close",
5347
5906
  "edit",
5348
5907
  "github",
5908
+ "gitlab",
5349
5909
  "maximize",
5350
5910
  "email",
5351
5911
  "settings",
@@ -5354,7 +5914,8 @@
5354
5914
  "star",
5355
5915
  "warning",
5356
5916
  "link",
5357
- "link-external"
5917
+ "link-external",
5918
+ "eye"
5358
5919
  ]
5359
5920
  },
5360
5921
  "ContentKitModal": {
@@ -5660,6 +6221,46 @@
5660
6221
  "aspectRatio"
5661
6222
  ]
5662
6223
  },
6224
+ "ContentKitLink": {
6225
+ "type": "object",
6226
+ "properties": {
6227
+ "type": {
6228
+ "type": "string",
6229
+ "enum": [
6230
+ "link"
6231
+ ]
6232
+ },
6233
+ "target": {
6234
+ "type": "object",
6235
+ "properties": {
6236
+ "url": {
6237
+ "oneOf": [
6238
+ {
6239
+ "type": "string"
6240
+ },
6241
+ {
6242
+ "$ref": "#/components/schemas/ContentKitURL"
6243
+ }
6244
+ ]
6245
+ }
6246
+ },
6247
+ "required": [
6248
+ "url"
6249
+ ]
6250
+ },
6251
+ "children": {
6252
+ "type": "array",
6253
+ "items": {
6254
+ "type": "string"
6255
+ }
6256
+ }
6257
+ },
6258
+ "required": [
6259
+ "type",
6260
+ "target",
6261
+ "children"
6262
+ ]
6263
+ },
5663
6264
  "ContentKitInput": {
5664
6265
  "type": "object",
5665
6266
  "description": "Field for an input.",
@@ -5722,6 +6323,16 @@
5722
6323
  },
5723
6324
  "label": {
5724
6325
  "type": "string"
6326
+ },
6327
+ "icon": {
6328
+ "oneOf": [
6329
+ {
6330
+ "$ref": "#/components/schemas/ContentKitIcon"
6331
+ },
6332
+ {
6333
+ "$ref": "#/components/schemas/ContentKitImage"
6334
+ }
6335
+ ]
5725
6336
  }
5726
6337
  },
5727
6338
  "required": [
@@ -5757,6 +6368,9 @@
5757
6368
  }
5758
6369
  ]
5759
6370
  },
6371
+ "onValueChange": {
6372
+ "$ref": "#/components/schemas/ContentKitAction"
6373
+ },
5760
6374
  "placeholder": {
5761
6375
  "description": "Text that appears in the form control when it has no value set",
5762
6376
  "type": "string"
@@ -5765,7 +6379,12 @@
5765
6379
  "description": "Should the select accept the selection of multiple options. If true, the state will be an array.",
5766
6380
  "type": "boolean"
5767
6381
  },
6382
+ "acceptInput": {
6383
+ "description": "Should the filter input be allowed to be selected as an option.",
6384
+ "type": "boolean"
6385
+ },
5768
6386
  "options": {
6387
+ "description": "Array of options to display in the select.",
5769
6388
  "oneOf": [
5770
6389
  {
5771
6390
  "type": "array",
@@ -5776,10 +6395,17 @@
5776
6395
  },
5777
6396
  {
5778
6397
  "type": "object",
5779
- "description": "External source of options. The URL should respond with an array of options.",
5780
6398
  "properties": {
5781
6399
  "url": {
5782
- "type": "string"
6400
+ "oneOf": [
6401
+ {
6402
+ "type": "string",
6403
+ "description": "External source of options. The URL should respond with an array of options."
6404
+ },
6405
+ {
6406
+ "$ref": "#/components/schemas/ContentKitURL"
6407
+ }
6408
+ ]
5783
6409
  }
5784
6410
  },
5785
6411
  "required": [
@@ -5813,6 +6439,9 @@
5813
6439
  "description": "Value to initialize the switch with.",
5814
6440
  "type": "boolean"
5815
6441
  },
6442
+ "onValueChange": {
6443
+ "$ref": "#/components/schemas/ContentKitAction"
6444
+ },
5816
6445
  "confirm": {
5817
6446
  "$ref": "#/components/schemas/ContentKitConfirm"
5818
6447
  }
@@ -5990,6 +6619,12 @@
5990
6619
  },
5991
6620
  {
5992
6621
  "$ref": "#/components/schemas/ContentKitText"
6622
+ },
6623
+ {
6624
+ "$ref": "#/components/schemas/ContentKitHint"
6625
+ },
6626
+ {
6627
+ "$ref": "#/components/schemas/ContentKitLink"
5993
6628
  }
5994
6629
  ],
5995
6630
  "discriminator": {
@@ -6004,18 +6639,57 @@
6004
6639
  },
6005
6640
  {
6006
6641
  "$ref": "#/components/schemas/ContentKitImage"
6642
+ },
6643
+ {
6644
+ "$ref": "#/components/schemas/ContentKitLink"
6007
6645
  }
6008
6646
  ],
6009
6647
  "discriminator": {
6010
6648
  "propertyName": "type"
6011
6649
  }
6012
6650
  },
6651
+ "ContentKitURL": {
6652
+ "type": "object",
6653
+ "description": "Specification for an URL in ContentKit.",
6654
+ "properties": {
6655
+ "host": {
6656
+ "type": "string",
6657
+ "description": "Hostname of the URL along with the port number if required.",
6658
+ "example": "api.example.com"
6659
+ },
6660
+ "pathname": {
6661
+ "type": "string",
6662
+ "description": "Path of the URL prefixed with a `/`.",
6663
+ "example": "/v1/options"
6664
+ },
6665
+ "query": {
6666
+ "type": "object",
6667
+ "additionalProperties": {
6668
+ "oneOf": [
6669
+ {
6670
+ "type": "string"
6671
+ },
6672
+ {
6673
+ "$ref": "#/components/schemas/ContentKitDynamicBinding"
6674
+ }
6675
+ ]
6676
+ }
6677
+ }
6678
+ },
6679
+ "required": [
6680
+ "host",
6681
+ "pathname"
6682
+ ]
6683
+ },
6013
6684
  "SubscriptionChannel": {
6014
6685
  "description": "Channel to subscribe to for API updates.",
6015
6686
  "oneOf": [
6016
6687
  {
6017
6688
  "$ref": "#/components/schemas/SpaceInfoChannel"
6018
6689
  },
6690
+ {
6691
+ "$ref": "#/components/schemas/SpaceGitInfoChannel"
6692
+ },
6019
6693
  {
6020
6694
  "$ref": "#/components/schemas/SpacePublishingAuthChannel"
6021
6695
  },
@@ -6073,6 +6747,9 @@
6073
6747
  {
6074
6748
  "$ref": "#/components/schemas/OrganizationEntitiesChannel"
6075
6749
  },
6750
+ {
6751
+ "$ref": "#/components/schemas/OrganizationRecordingsChannel"
6752
+ },
6076
6753
  {
6077
6754
  "type": "object",
6078
6755
  "properties": {
@@ -6196,6 +6873,24 @@
6196
6873
  "space"
6197
6874
  ]
6198
6875
  },
6876
+ "SpaceGitInfoChannel": {
6877
+ "type": "object",
6878
+ "properties": {
6879
+ "channel": {
6880
+ "type": "string",
6881
+ "enum": [
6882
+ "space-git-info"
6883
+ ]
6884
+ },
6885
+ "space": {
6886
+ "type": "string"
6887
+ }
6888
+ },
6889
+ "required": [
6890
+ "channel",
6891
+ "space"
6892
+ ]
6893
+ },
6199
6894
  "SpacePublishingAuthChannel": {
6200
6895
  "type": "object",
6201
6896
  "properties": {
@@ -6564,6 +7259,24 @@
6564
7259
  "organization"
6565
7260
  ]
6566
7261
  },
7262
+ "OrganizationRecordingsChannel": {
7263
+ "type": "object",
7264
+ "properties": {
7265
+ "channel": {
7266
+ "type": "string",
7267
+ "enum": [
7268
+ "organization-recordings"
7269
+ ]
7270
+ },
7271
+ "organization": {
7272
+ "type": "string"
7273
+ }
7274
+ },
7275
+ "required": [
7276
+ "channel",
7277
+ "organization"
7278
+ ]
7279
+ },
6567
7280
  "CustomField": {
6568
7281
  "type": "object",
6569
7282
  "description": "Custom field",
@@ -6706,8 +7419,7 @@
6706
7419
  "$ref": "#/components/schemas/EnvironmentTitle"
6707
7420
  },
6708
7421
  "primary": {
6709
- "description": "Whether or not an environment is considered to have elevated responsibilities over other environments. Useful for distinguishing a production environment from a staging environment. Multiple primary environments are allowed. Your organization must have at least one primary environment.\n",
6710
- "type": "boolean"
7422
+ "$ref": "#/components/schemas/EnvironmentPrimary"
6711
7423
  },
6712
7424
  "urls": {
6713
7425
  "type": "object",
@@ -6736,6 +7448,10 @@
6736
7448
  "type": "string",
6737
7449
  "maxLength": 100
6738
7450
  },
7451
+ "EnvironmentPrimary": {
7452
+ "description": "Whether or not an environment is considered to have elevated responsibilities over other environments. Useful for distinguishing a production environment from a staging environment. Multiple primary environments are allowed. Your organization must have at least one primary environment.\n",
7453
+ "type": "boolean"
7454
+ },
6739
7455
  "EnvironmentName": {
6740
7456
  "type": "string",
6741
7457
  "pattern": "^[a-zA-Z_\\-0-9]+$",
@@ -6751,7 +7467,7 @@
6751
7467
  "$ref": "#/components/schemas/EnvironmentTitle"
6752
7468
  },
6753
7469
  "primary": {
6754
- "$ref": "#/components/schemas/Environment/properties/primary"
7470
+ "$ref": "#/components/schemas/EnvironmentPrimary"
6755
7471
  }
6756
7472
  },
6757
7473
  "required": [
@@ -6767,7 +7483,7 @@
6767
7483
  "$ref": "#/components/schemas/EnvironmentTitle"
6768
7484
  },
6769
7485
  "primary": {
6770
- "$ref": "#/components/schemas/Environment/properties/primary"
7486
+ "$ref": "#/components/schemas/EnvironmentPrimary"
6771
7487
  }
6772
7488
  }
6773
7489
  }
@@ -7620,6 +8336,44 @@
7620
8336
  }
7621
8337
  }
7622
8338
  },
8339
+ "/spaces/{spaceId}/git/info": {
8340
+ "get": {
8341
+ "operationId": "getSpaceGitInfo",
8342
+ "summary": "Get metadata about the Git Sync provider currently set up on the space",
8343
+ "tags": [
8344
+ "spaces"
8345
+ ],
8346
+ "security": [
8347
+ {
8348
+ "user": []
8349
+ }
8350
+ ],
8351
+ "parameters": [
8352
+ {
8353
+ "$ref": "#/components/parameters/spaceId"
8354
+ }
8355
+ ],
8356
+ "responses": {
8357
+ "200": {
8358
+ "description": "The Git Sync info for the space",
8359
+ "content": {
8360
+ "application/json": {
8361
+ "schema": {
8362
+ "$ref": "#/components/schemas/GitSyncState"
8363
+ }
8364
+ }
8365
+ }
8366
+ },
8367
+ "404": {
8368
+ "description": "No Git provider currently set up on the space",
8369
+ "$ref": "#/components/responses/NotFoundError"
8370
+ },
8371
+ "default": {
8372
+ "$ref": "#/components/responses/UnexpectedError"
8373
+ }
8374
+ }
8375
+ }
8376
+ },
7623
8377
  "/spaces/{spaceId}/insights/content": {
7624
8378
  "get": {
7625
8379
  "operationId": "getContentAnalyticsForSpaceById",
@@ -11524,28 +12278,66 @@
11524
12278
  "headers": {
11525
12279
  "Cache-Control": {
11526
12280
  "schema": {
11527
- "type": "string"
12281
+ "type": "string"
12282
+ }
12283
+ }
12284
+ }
12285
+ },
12286
+ "default": {
12287
+ "$ref": "#/components/responses/UnexpectedError"
12288
+ }
12289
+ },
12290
+ "requestBody": {
12291
+ "required": true,
12292
+ "content": {
12293
+ "application/json": {
12294
+ "schema": {
12295
+ "$ref": "#/components/schemas/RequestRenderIntegrationUI"
12296
+ }
12297
+ }
12298
+ }
12299
+ }
12300
+ }
12301
+ },
12302
+ "/integrations/{integrationName}/installations/{installationId}": {
12303
+ "get": {
12304
+ "operationId": "getIntegrationInstallationById",
12305
+ "summary": "Get a specific integration's installation by its ID",
12306
+ "tags": [
12307
+ "integrations"
12308
+ ],
12309
+ "security": [
12310
+ {
12311
+ "user": []
12312
+ }
12313
+ ],
12314
+ "parameters": [
12315
+ {
12316
+ "$ref": "#/components/parameters/integrationName"
12317
+ },
12318
+ {
12319
+ "$ref": "#/components/parameters/installationId"
12320
+ }
12321
+ ],
12322
+ "responses": {
12323
+ "200": {
12324
+ "description": "Integration installation",
12325
+ "content": {
12326
+ "application/json": {
12327
+ "schema": {
12328
+ "$ref": "#/components/schemas/IntegrationInstallation"
11528
12329
  }
11529
12330
  }
11530
12331
  }
11531
12332
  },
12333
+ "404": {
12334
+ "$ref": "#/components/responses/NotFoundError"
12335
+ },
11532
12336
  "default": {
11533
12337
  "$ref": "#/components/responses/UnexpectedError"
11534
12338
  }
11535
- },
11536
- "requestBody": {
11537
- "required": true,
11538
- "content": {
11539
- "application/json": {
11540
- "schema": {
11541
- "$ref": "#/components/schemas/RequestRenderIntegrationUI"
11542
- }
11543
- }
11544
- }
11545
12339
  }
11546
- }
11547
- },
11548
- "/integrations/{integrationName}/installations/{installationId}": {
12340
+ },
11549
12341
  "patch": {
11550
12342
  "operationId": "updateIntegrationInstallation",
11551
12343
  "summary": "Update external IDs and configurations of an integration's installation",
@@ -11798,7 +12590,7 @@
11798
12590
  ],
11799
12591
  "security": [
11800
12592
  {
11801
- "integration": []
12593
+ "integration-installation": []
11802
12594
  }
11803
12595
  ],
11804
12596
  "parameters": [
@@ -11848,13 +12640,14 @@
11848
12640
  },
11849
12641
  "post": {
11850
12642
  "operationId": "syncIntegrationEntities",
11851
- "summary": "Update all entities for an integration installation. Entities will be created and updated, missing entities will be deleted.",
12643
+ "summary": "Update all entities for an integration installation.",
12644
+ "description": "Update all entities for an integration installation. Entities will be created and updated, missing entities will be deleted.",
11852
12645
  "tags": [
11853
12646
  "integrations"
11854
12647
  ],
11855
12648
  "security": [
11856
12649
  {
11857
- "integration": []
12650
+ "integration-installation": []
11858
12651
  }
11859
12652
  ],
11860
12653
  "parameters": [
@@ -14296,6 +15089,276 @@
14296
15089
  }
14297
15090
  }
14298
15091
  },
15092
+ "/orgs/{organizationId}/recordings": {
15093
+ "get": {
15094
+ "operationId": "listRecordings",
15095
+ "summary": "List recordings",
15096
+ "description": "List recordings in an organization.\n",
15097
+ "tags": [
15098
+ "organizations"
15099
+ ],
15100
+ "security": [
15101
+ {
15102
+ "user": []
15103
+ }
15104
+ ],
15105
+ "parameters": [
15106
+ {
15107
+ "$ref": "#/components/parameters/organizationId"
15108
+ },
15109
+ {
15110
+ "$ref": "#/components/parameters/listPage"
15111
+ },
15112
+ {
15113
+ "$ref": "#/components/parameters/listLimit"
15114
+ }
15115
+ ],
15116
+ "responses": {
15117
+ "200": {
15118
+ "description": "OK",
15119
+ "content": {
15120
+ "application/json": {
15121
+ "schema": {
15122
+ "allOf": [
15123
+ {
15124
+ "$ref": "#/components/schemas/List"
15125
+ },
15126
+ {
15127
+ "type": "object",
15128
+ "required": [
15129
+ "items"
15130
+ ],
15131
+ "properties": {
15132
+ "items": {
15133
+ "type": "array",
15134
+ "items": {
15135
+ "$ref": "#/components/schemas/Recording"
15136
+ }
15137
+ }
15138
+ }
15139
+ }
15140
+ ]
15141
+ }
15142
+ }
15143
+ }
15144
+ },
15145
+ "default": {
15146
+ "$ref": "#/components/responses/UnexpectedError"
15147
+ }
15148
+ }
15149
+ },
15150
+ "post": {
15151
+ "operationId": "startRecording",
15152
+ "summary": "Start a recording",
15153
+ "tags": [
15154
+ "organizations"
15155
+ ],
15156
+ "security": [
15157
+ {
15158
+ "user": []
15159
+ }
15160
+ ],
15161
+ "parameters": [
15162
+ {
15163
+ "$ref": "#/components/parameters/organizationId"
15164
+ }
15165
+ ],
15166
+ "requestBody": {
15167
+ "content": {
15168
+ "application/json": {
15169
+ "schema": {
15170
+ "type": "object",
15171
+ "properties": {
15172
+ "title": {
15173
+ "$ref": "#/components/schemas/RecordingTitle"
15174
+ },
15175
+ "context": {
15176
+ "$ref": "#/components/schemas/RecordingContext"
15177
+ },
15178
+ "externalId": {
15179
+ "type": "string",
15180
+ "description": "ID in the original source of the recording."
15181
+ },
15182
+ "externalURL": {
15183
+ "type": "string",
15184
+ "format": "uri",
15185
+ "description": "URL of the original source of the recording."
15186
+ }
15187
+ },
15188
+ "required": [
15189
+ "context"
15190
+ ]
15191
+ }
15192
+ }
15193
+ }
15194
+ },
15195
+ "responses": {
15196
+ "201": {
15197
+ "description": "Recording started",
15198
+ "headers": {
15199
+ "Location": {
15200
+ "description": "API URL for the newly created recording",
15201
+ "schema": {
15202
+ "type": "string"
15203
+ }
15204
+ }
15205
+ },
15206
+ "content": {
15207
+ "application/json": {
15208
+ "schema": {
15209
+ "$ref": "#/components/schemas/Recording"
15210
+ }
15211
+ }
15212
+ }
15213
+ },
15214
+ "default": {
15215
+ "$ref": "#/components/responses/UnexpectedError"
15216
+ }
15217
+ }
15218
+ }
15219
+ },
15220
+ "/orgs/{organizationId}/recordings/{recordingId}": {
15221
+ "get": {
15222
+ "operationId": "getRecording",
15223
+ "summary": "Get a recording by its ID",
15224
+ "tags": [
15225
+ "organizations"
15226
+ ],
15227
+ "security": [
15228
+ {
15229
+ "user": []
15230
+ }
15231
+ ],
15232
+ "parameters": [
15233
+ {
15234
+ "$ref": "#/components/parameters/organizationId"
15235
+ },
15236
+ {
15237
+ "$ref": "#/components/parameters/recordingId"
15238
+ }
15239
+ ],
15240
+ "responses": {
15241
+ "200": {
15242
+ "description": "OK",
15243
+ "content": {
15244
+ "application/json": {
15245
+ "schema": {
15246
+ "$ref": "#/components/schemas/Recording"
15247
+ }
15248
+ }
15249
+ }
15250
+ },
15251
+ "default": {
15252
+ "$ref": "#/components/responses/UnexpectedError"
15253
+ }
15254
+ }
15255
+ }
15256
+ },
15257
+ "/orgs/{organizationId}/recordings/{recordingId}/events": {
15258
+ "post": {
15259
+ "operationId": "addEventsToRecording",
15260
+ "summary": "Add events to a running recording",
15261
+ "tags": [
15262
+ "organizations"
15263
+ ],
15264
+ "security": [
15265
+ {
15266
+ "user": []
15267
+ }
15268
+ ],
15269
+ "parameters": [
15270
+ {
15271
+ "$ref": "#/components/parameters/organizationId"
15272
+ },
15273
+ {
15274
+ "$ref": "#/components/parameters/recordingId"
15275
+ }
15276
+ ],
15277
+ "requestBody": {
15278
+ "content": {
15279
+ "application/json": {
15280
+ "schema": {
15281
+ "type": "object",
15282
+ "properties": {
15283
+ "events": {
15284
+ "type": "array",
15285
+ "items": {
15286
+ "$ref": "#/components/schemas/RecordingEvent"
15287
+ }
15288
+ }
15289
+ },
15290
+ "required": [
15291
+ "events"
15292
+ ]
15293
+ }
15294
+ }
15295
+ }
15296
+ },
15297
+ "responses": {
15298
+ "204": {
15299
+ "description": "Events added"
15300
+ },
15301
+ "default": {
15302
+ "$ref": "#/components/responses/UnexpectedError"
15303
+ }
15304
+ }
15305
+ }
15306
+ },
15307
+ "/orgs/{organizationId}/recordings/{recordingId}/stop": {
15308
+ "post": {
15309
+ "operationId": "stopRecording",
15310
+ "summary": "Stop a recording",
15311
+ "tags": [
15312
+ "organizations"
15313
+ ],
15314
+ "security": [
15315
+ {
15316
+ "user": []
15317
+ }
15318
+ ],
15319
+ "parameters": [
15320
+ {
15321
+ "$ref": "#/components/parameters/organizationId"
15322
+ },
15323
+ {
15324
+ "$ref": "#/components/parameters/recordingId"
15325
+ }
15326
+ ],
15327
+ "requestBody": {
15328
+ "content": {
15329
+ "application/json": {
15330
+ "schema": {
15331
+ "type": "object",
15332
+ "properties": {
15333
+ "space": {
15334
+ "description": "The space in which the docs should be generated",
15335
+ "type": "string"
15336
+ }
15337
+ },
15338
+ "required": [
15339
+ "space"
15340
+ ]
15341
+ }
15342
+ }
15343
+ }
15344
+ },
15345
+ "responses": {
15346
+ "200": {
15347
+ "description": "Recording stopped",
15348
+ "content": {
15349
+ "application/json": {
15350
+ "schema": {
15351
+ "$ref": "#/components/schemas/RecordingOutput"
15352
+ }
15353
+ }
15354
+ }
15355
+ },
15356
+ "default": {
15357
+ "$ref": "#/components/responses/UnexpectedError"
15358
+ }
15359
+ }
15360
+ }
15361
+ },
14299
15362
  "/internal/hive/token": {
14300
15363
  "post": {
14301
15364
  "operationId": "generateHiveAccessToken",