@gitbook/api 0.4.0 → 0.5.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 +224 -22
- package/dist/index.cjs +47 -0
- package/dist/index.js +46 -0
- package/package.json +1 -1
- package/spec/openapi.json +684 -30
- package/spec/openapi.yaml +418 -26
package/spec/openapi.yaml
CHANGED
|
@@ -138,6 +138,13 @@ components:
|
|
|
138
138
|
description: The unique id of the organization
|
|
139
139
|
schema:
|
|
140
140
|
type: string
|
|
141
|
+
recordingId:
|
|
142
|
+
name: recordingId
|
|
143
|
+
in: path
|
|
144
|
+
required: true
|
|
145
|
+
description: The unique id of a recording
|
|
146
|
+
schema:
|
|
147
|
+
type: string
|
|
141
148
|
userId:
|
|
142
149
|
name: userId
|
|
143
150
|
in: path
|
|
@@ -426,6 +433,9 @@ components:
|
|
|
426
433
|
standalone:
|
|
427
434
|
type: boolean
|
|
428
435
|
description: If true, the import will generate a revision without updating the space primary content.
|
|
436
|
+
gitInfo:
|
|
437
|
+
description: Optional metadata to store on the space about the Git provider
|
|
438
|
+
$ref: "#/components/schemas/RequestUpdateSpaceGitInfo"
|
|
429
439
|
required:
|
|
430
440
|
- url
|
|
431
441
|
- ref
|
|
@@ -455,6 +465,9 @@ components:
|
|
|
455
465
|
description: Path to a root directory for the project in the repository.
|
|
456
466
|
force:
|
|
457
467
|
type: boolean
|
|
468
|
+
gitInfo:
|
|
469
|
+
description: Optional metadata to store on the space about the Git provider
|
|
470
|
+
$ref: "#/components/schemas/RequestUpdateSpaceGitInfo"
|
|
458
471
|
required:
|
|
459
472
|
- url
|
|
460
473
|
- ref
|
|
@@ -500,9 +513,6 @@ components:
|
|
|
500
513
|
componentId:
|
|
501
514
|
type: string
|
|
502
515
|
description: ID of the component to render in the integration.
|
|
503
|
-
spaceId:
|
|
504
|
-
type: string
|
|
505
|
-
description: ID of the space to render.
|
|
506
516
|
props:
|
|
507
517
|
type: object
|
|
508
518
|
description: Current properties of the UI.
|
|
@@ -515,7 +525,6 @@ components:
|
|
|
515
525
|
$ref: "#/components/schemas/ContentKitAction"
|
|
516
526
|
required:
|
|
517
527
|
- componentId
|
|
518
|
-
- spaceId
|
|
519
528
|
- props
|
|
520
529
|
- context
|
|
521
530
|
RequestUpdateContentPublishingAuth:
|
|
@@ -538,6 +547,19 @@ components:
|
|
|
538
547
|
$ref: "#/components/schemas/OrganizationUseCase"
|
|
539
548
|
required:
|
|
540
549
|
- title
|
|
550
|
+
RequestUpdateSpaceGitInfo:
|
|
551
|
+
type: object
|
|
552
|
+
description: Update metadata about the Git provider on the space
|
|
553
|
+
properties:
|
|
554
|
+
provider:
|
|
555
|
+
type: string
|
|
556
|
+
description: The git provider
|
|
557
|
+
enum:
|
|
558
|
+
- github
|
|
559
|
+
- gitlab
|
|
560
|
+
url:
|
|
561
|
+
type: string
|
|
562
|
+
description: The repository's tree URL
|
|
541
563
|
ApiInformation:
|
|
542
564
|
type: object
|
|
543
565
|
properties:
|
|
@@ -940,6 +962,8 @@ components:
|
|
|
940
962
|
$ref: "#/components/schemas/Date"
|
|
941
963
|
updatedAt:
|
|
942
964
|
$ref: "#/components/schemas/Date"
|
|
965
|
+
deletedAt:
|
|
966
|
+
$ref: "#/components/schemas/Date"
|
|
943
967
|
urls:
|
|
944
968
|
type: object
|
|
945
969
|
description: URLs associated with the object
|
|
@@ -1308,7 +1332,10 @@ components:
|
|
|
1308
1332
|
$ref: "#/components/schemas/GitSyncOperation"
|
|
1309
1333
|
url:
|
|
1310
1334
|
type: string
|
|
1311
|
-
description: The URL to the repository, used when rendering public content.
|
|
1335
|
+
description: The URL to the repository tree, used when rendering public content.
|
|
1336
|
+
updatedAt:
|
|
1337
|
+
description: When the Git provider details were last updated
|
|
1338
|
+
$ref: "#/components/schemas/Date"
|
|
1312
1339
|
GitSyncOperation:
|
|
1313
1340
|
type: object
|
|
1314
1341
|
properties:
|
|
@@ -1558,6 +1585,9 @@ components:
|
|
|
1558
1585
|
members:
|
|
1559
1586
|
type: integer
|
|
1560
1587
|
description: Count of members in this team.
|
|
1588
|
+
spaces:
|
|
1589
|
+
type: number
|
|
1590
|
+
description: Count of spaces this team has access to.
|
|
1561
1591
|
createdAt:
|
|
1562
1592
|
description: Date at which the team was created.
|
|
1563
1593
|
$ref: "#/components/schemas/Date"
|
|
@@ -1566,6 +1596,7 @@ components:
|
|
|
1566
1596
|
- id
|
|
1567
1597
|
- title
|
|
1568
1598
|
- members
|
|
1599
|
+
- spaces
|
|
1569
1600
|
- createdAt
|
|
1570
1601
|
TeamMember:
|
|
1571
1602
|
type: object
|
|
@@ -1583,6 +1614,102 @@ components:
|
|
|
1583
1614
|
enum:
|
|
1584
1615
|
- admin
|
|
1585
1616
|
- participant
|
|
1617
|
+
Recording:
|
|
1618
|
+
type: object
|
|
1619
|
+
properties:
|
|
1620
|
+
id:
|
|
1621
|
+
type: string
|
|
1622
|
+
description: Unique identifier for the recording
|
|
1623
|
+
context:
|
|
1624
|
+
$ref: "#/components/schemas/RecordingContext"
|
|
1625
|
+
startedAt:
|
|
1626
|
+
type: string
|
|
1627
|
+
format: date-time
|
|
1628
|
+
stoppedAt:
|
|
1629
|
+
type: string
|
|
1630
|
+
format: date-time
|
|
1631
|
+
required:
|
|
1632
|
+
- id
|
|
1633
|
+
- context
|
|
1634
|
+
- startedAt
|
|
1635
|
+
RecordingEvent:
|
|
1636
|
+
oneOf:
|
|
1637
|
+
- $ref: "#/components/schemas/RecordingTerminalCommandEvent"
|
|
1638
|
+
- $ref: "#/components/schemas/RecordingSpeechEvent"
|
|
1639
|
+
RecordingContext:
|
|
1640
|
+
type: string
|
|
1641
|
+
enum:
|
|
1642
|
+
- meeting
|
|
1643
|
+
- conversation
|
|
1644
|
+
- walkthrough
|
|
1645
|
+
BaseRecordingEvent:
|
|
1646
|
+
type: object
|
|
1647
|
+
properties:
|
|
1648
|
+
type:
|
|
1649
|
+
type: string
|
|
1650
|
+
description: The type of event
|
|
1651
|
+
timestamp:
|
|
1652
|
+
type: string
|
|
1653
|
+
format: date-time
|
|
1654
|
+
description: When the event happened
|
|
1655
|
+
source:
|
|
1656
|
+
type: string
|
|
1657
|
+
description: Optionally, provide the source of the event. GitBook may use this to improve the generated content.
|
|
1658
|
+
maxLength: 50
|
|
1659
|
+
actor:
|
|
1660
|
+
type: object
|
|
1661
|
+
description: Optionally, provide the actor of the event, in the context of multiple people contributing to the recording.
|
|
1662
|
+
properties:
|
|
1663
|
+
name:
|
|
1664
|
+
type: string
|
|
1665
|
+
required:
|
|
1666
|
+
- name
|
|
1667
|
+
required:
|
|
1668
|
+
- type
|
|
1669
|
+
- timestamp
|
|
1670
|
+
RecordingSpeechEvent:
|
|
1671
|
+
allOf:
|
|
1672
|
+
- $ref: "#/components/schemas/BaseRecordingEvent"
|
|
1673
|
+
- type: object
|
|
1674
|
+
properties:
|
|
1675
|
+
type:
|
|
1676
|
+
type: string
|
|
1677
|
+
enum:
|
|
1678
|
+
- speech
|
|
1679
|
+
required:
|
|
1680
|
+
- type
|
|
1681
|
+
- oneOf:
|
|
1682
|
+
- type: object
|
|
1683
|
+
properties:
|
|
1684
|
+
audio:
|
|
1685
|
+
description: WAV audio file, encoded as base64
|
|
1686
|
+
type: string
|
|
1687
|
+
required:
|
|
1688
|
+
- audio
|
|
1689
|
+
- type: object
|
|
1690
|
+
properties:
|
|
1691
|
+
transcript:
|
|
1692
|
+
description: Transcript of the speech
|
|
1693
|
+
type: string
|
|
1694
|
+
required:
|
|
1695
|
+
- transcript
|
|
1696
|
+
RecordingTerminalCommandEvent:
|
|
1697
|
+
allOf:
|
|
1698
|
+
- $ref: "#/components/schemas/BaseRecordingEvent"
|
|
1699
|
+
- type: object
|
|
1700
|
+
properties:
|
|
1701
|
+
type:
|
|
1702
|
+
type: string
|
|
1703
|
+
enum:
|
|
1704
|
+
- terminal.command
|
|
1705
|
+
command:
|
|
1706
|
+
type: string
|
|
1707
|
+
stdout:
|
|
1708
|
+
type: string
|
|
1709
|
+
required:
|
|
1710
|
+
- type
|
|
1711
|
+
- command
|
|
1712
|
+
- stdout
|
|
1586
1713
|
ChangeRequest:
|
|
1587
1714
|
type: object
|
|
1588
1715
|
properties:
|
|
@@ -2196,6 +2323,7 @@ components:
|
|
|
2196
2323
|
- space:metadata:write
|
|
2197
2324
|
- space:script:inject
|
|
2198
2325
|
- space:script:cookies
|
|
2326
|
+
- space:git:sync
|
|
2199
2327
|
IntegrationCategories:
|
|
2200
2328
|
type: array
|
|
2201
2329
|
description: Categories for which the integration is listed in the marketplace
|
|
@@ -2334,7 +2462,7 @@ components:
|
|
|
2334
2462
|
type: object
|
|
2335
2463
|
properties:
|
|
2336
2464
|
account:
|
|
2337
|
-
$ref: "#/components/schemas/
|
|
2465
|
+
$ref: "#/components/schemas/IntegrationConfiguration"
|
|
2338
2466
|
space:
|
|
2339
2467
|
$ref: "#/components/schemas/IntegrationConfiguration"
|
|
2340
2468
|
IntegrationConfiguration:
|
|
@@ -2511,12 +2639,10 @@ components:
|
|
|
2511
2639
|
type: object
|
|
2512
2640
|
description: Runtime environment provided during the execution of integration's code.
|
|
2513
2641
|
properties:
|
|
2514
|
-
apiEndpoint:
|
|
2515
|
-
type: string
|
|
2516
|
-
description: URL of the HTTP API
|
|
2517
2642
|
authToken:
|
|
2518
2643
|
type: string
|
|
2519
|
-
description: Authentication token to use with the HTTP API
|
|
2644
|
+
description: Authentication token to use with the HTTP API. Depending on the context, the token might be representing the installation or the integration.
|
|
2645
|
+
deprecated: true
|
|
2520
2646
|
integration:
|
|
2521
2647
|
$ref: "#/components/schemas/Integration"
|
|
2522
2648
|
installation:
|
|
@@ -2525,8 +2651,23 @@ components:
|
|
|
2525
2651
|
$ref: "#/components/schemas/IntegrationSpaceInstallation"
|
|
2526
2652
|
secrets:
|
|
2527
2653
|
$ref: "#/components/schemas/IntegrationSecrets"
|
|
2654
|
+
apiEndpoint:
|
|
2655
|
+
type: string
|
|
2656
|
+
description: URL of the HTTP API
|
|
2657
|
+
apiTokens:
|
|
2658
|
+
type: object
|
|
2659
|
+
properties:
|
|
2660
|
+
integration:
|
|
2661
|
+
type: string
|
|
2662
|
+
description: API authentication token representing the integration.
|
|
2663
|
+
installation:
|
|
2664
|
+
type: string
|
|
2665
|
+
description: API authentication token representing the current installation.
|
|
2666
|
+
required:
|
|
2667
|
+
- integration
|
|
2528
2668
|
required:
|
|
2529
2669
|
- apiEndpoint
|
|
2670
|
+
- apiTokens
|
|
2530
2671
|
- integration
|
|
2531
2672
|
- secrets
|
|
2532
2673
|
IntegrationInstallationTarget:
|
|
@@ -2970,7 +3111,9 @@ components:
|
|
|
2970
3111
|
- type
|
|
2971
3112
|
UIRenderEvent:
|
|
2972
3113
|
allOf:
|
|
2973
|
-
-
|
|
3114
|
+
- oneOf:
|
|
3115
|
+
- $ref: "#/components/schemas/SpaceEvent"
|
|
3116
|
+
- $ref: "#/components/schemas/InstallationEvent"
|
|
2974
3117
|
- type: object
|
|
2975
3118
|
description: Event generated when rendering a UI
|
|
2976
3119
|
properties:
|
|
@@ -3396,26 +3539,74 @@ components:
|
|
|
3396
3539
|
description: Temporary access token to authenticate with the API
|
|
3397
3540
|
required:
|
|
3398
3541
|
- token
|
|
3542
|
+
ContentKitContextBase:
|
|
3543
|
+
type: object
|
|
3544
|
+
description: Common properties for ContentKit context.
|
|
3545
|
+
properties:
|
|
3546
|
+
theme:
|
|
3547
|
+
type: string
|
|
3548
|
+
enum:
|
|
3549
|
+
- dark
|
|
3550
|
+
- light
|
|
3551
|
+
required:
|
|
3552
|
+
- theme
|
|
3399
3553
|
ContentKitContext:
|
|
3554
|
+
description: Object representing the context in which a ContentKit component is rendered.
|
|
3400
3555
|
oneOf:
|
|
3556
|
+
- $ref: "#/components/schemas/ContentKitContextConfigurationAccount"
|
|
3557
|
+
- $ref: "#/components/schemas/ContentKitContextConfigurationSpace"
|
|
3558
|
+
- $ref: "#/components/schemas/ContentKitContextDocument"
|
|
3559
|
+
ContentKitContextConfigurationAccount:
|
|
3560
|
+
allOf:
|
|
3561
|
+
- $ref: "#/components/schemas/ContentKitContextBase"
|
|
3401
3562
|
- type: object
|
|
3563
|
+
description: Context while rendering in an account installation's configuration.
|
|
3564
|
+
properties:
|
|
3565
|
+
type:
|
|
3566
|
+
type: string
|
|
3567
|
+
enum:
|
|
3568
|
+
- configuration_account
|
|
3569
|
+
organizationId:
|
|
3570
|
+
type: string
|
|
3571
|
+
description: ID of the organization the account installation configuration is in.
|
|
3572
|
+
required:
|
|
3573
|
+
- type
|
|
3574
|
+
- organizationId
|
|
3575
|
+
ContentKitContextConfigurationSpace:
|
|
3576
|
+
allOf:
|
|
3577
|
+
- $ref: "#/components/schemas/ContentKitContextBase"
|
|
3578
|
+
- type: object
|
|
3579
|
+
description: Context while rendering in a space-installation's configuration.
|
|
3402
3580
|
properties:
|
|
3403
3581
|
type:
|
|
3404
3582
|
type: string
|
|
3405
3583
|
enum:
|
|
3406
|
-
- document
|
|
3407
3584
|
- configuration_space
|
|
3408
|
-
|
|
3409
|
-
type:
|
|
3410
|
-
|
|
3585
|
+
spaceId:
|
|
3586
|
+
type: string
|
|
3587
|
+
description: ID of the space the space-installation configuration is in.
|
|
3588
|
+
required:
|
|
3589
|
+
- type
|
|
3590
|
+
- spaceId
|
|
3591
|
+
ContentKitContextDocument:
|
|
3592
|
+
allOf:
|
|
3593
|
+
- $ref: "#/components/schemas/ContentKitContextBase"
|
|
3594
|
+
- type: object
|
|
3595
|
+
description: Context while rendering in a document.
|
|
3596
|
+
properties:
|
|
3597
|
+
type:
|
|
3411
3598
|
type: string
|
|
3412
3599
|
enum:
|
|
3413
|
-
-
|
|
3414
|
-
|
|
3600
|
+
- document
|
|
3601
|
+
spaceId:
|
|
3602
|
+
type: string
|
|
3603
|
+
description: ID of the space content the document is in.
|
|
3604
|
+
editable:
|
|
3605
|
+
type: boolean
|
|
3415
3606
|
required:
|
|
3416
3607
|
- type
|
|
3608
|
+
- spaceId
|
|
3417
3609
|
- editable
|
|
3418
|
-
- theme
|
|
3419
3610
|
ContentKitDynamicBinding:
|
|
3420
3611
|
type: object
|
|
3421
3612
|
description: Binding between a property and a state value.
|
|
@@ -3481,6 +3672,8 @@ components:
|
|
|
3481
3672
|
$ref: "#/components/schemas/ContentKitAction"
|
|
3482
3673
|
icon:
|
|
3483
3674
|
$ref: "#/components/schemas/ContentKitIcon"
|
|
3675
|
+
trailingIcon:
|
|
3676
|
+
$ref: "#/components/schemas/ContentKitIcon"
|
|
3484
3677
|
label:
|
|
3485
3678
|
type: string
|
|
3486
3679
|
tooltip:
|
|
@@ -3555,6 +3748,21 @@ components:
|
|
|
3555
3748
|
required:
|
|
3556
3749
|
- type
|
|
3557
3750
|
- children
|
|
3751
|
+
ContentKitHint:
|
|
3752
|
+
type: object
|
|
3753
|
+
description: Element used to contextualize other elements or info.
|
|
3754
|
+
properties:
|
|
3755
|
+
type:
|
|
3756
|
+
type: string
|
|
3757
|
+
enum:
|
|
3758
|
+
- hint
|
|
3759
|
+
children:
|
|
3760
|
+
type: array
|
|
3761
|
+
items:
|
|
3762
|
+
$ref: "#/components/schemas/ContentKitInlineElement"
|
|
3763
|
+
required:
|
|
3764
|
+
- type
|
|
3765
|
+
- children
|
|
3558
3766
|
ContentKitHStack:
|
|
3559
3767
|
type: object
|
|
3560
3768
|
description: Horizontal stack of boxes.
|
|
@@ -3934,6 +4142,10 @@ components:
|
|
|
3934
4142
|
type: string
|
|
3935
4143
|
label:
|
|
3936
4144
|
type: string
|
|
4145
|
+
icon:
|
|
4146
|
+
oneOf:
|
|
4147
|
+
- $ref: "#/components/schemas/ContentKitIcon"
|
|
4148
|
+
- $ref: "#/components/schemas/ContentKitImage"
|
|
3937
4149
|
required:
|
|
3938
4150
|
- id
|
|
3939
4151
|
- label
|
|
@@ -3955,6 +4167,8 @@ components:
|
|
|
3955
4167
|
- type: array
|
|
3956
4168
|
items:
|
|
3957
4169
|
type: string
|
|
4170
|
+
onValueChange:
|
|
4171
|
+
$ref: "#/components/schemas/ContentKitAction"
|
|
3958
4172
|
placeholder:
|
|
3959
4173
|
description: Text that appears in the form control when it has no value set
|
|
3960
4174
|
type: string
|
|
@@ -3962,16 +4176,19 @@ components:
|
|
|
3962
4176
|
description: Should the select accept the selection of multiple options. If true, the state will be an array.
|
|
3963
4177
|
type: boolean
|
|
3964
4178
|
options:
|
|
4179
|
+
description: Array of options to display in the select.
|
|
3965
4180
|
oneOf:
|
|
3966
4181
|
- type: array
|
|
3967
4182
|
description: Static list of options
|
|
3968
4183
|
items:
|
|
3969
4184
|
$ref: "#/components/schemas/ContentKitSelectOption"
|
|
3970
4185
|
- type: object
|
|
3971
|
-
description: External source of options. The URL should respond with an array of options.
|
|
3972
4186
|
properties:
|
|
3973
4187
|
url:
|
|
3974
|
-
|
|
4188
|
+
oneOf:
|
|
4189
|
+
- type: string
|
|
4190
|
+
description: External source of options. The URL should respond with an array of options.
|
|
4191
|
+
- $ref: "#/components/schemas/ContentKitURL"
|
|
3975
4192
|
required:
|
|
3976
4193
|
- url
|
|
3977
4194
|
required:
|
|
@@ -3992,6 +4209,8 @@ components:
|
|
|
3992
4209
|
initialValue:
|
|
3993
4210
|
description: Value to initialize the switch with.
|
|
3994
4211
|
type: boolean
|
|
4212
|
+
onValueChange:
|
|
4213
|
+
$ref: "#/components/schemas/ContentKitAction"
|
|
3995
4214
|
confirm:
|
|
3996
4215
|
$ref: "#/components/schemas/ContentKitConfirm"
|
|
3997
4216
|
required:
|
|
@@ -4091,6 +4310,7 @@ components:
|
|
|
4091
4310
|
- $ref: "#/components/schemas/ContentKitCheckbox"
|
|
4092
4311
|
- $ref: "#/components/schemas/ContentKitRadio"
|
|
4093
4312
|
- $ref: "#/components/schemas/ContentKitText"
|
|
4313
|
+
- $ref: "#/components/schemas/ContentKitHint"
|
|
4094
4314
|
discriminator:
|
|
4095
4315
|
propertyName: type
|
|
4096
4316
|
ContentKitInlineElement:
|
|
@@ -4100,10 +4320,32 @@ components:
|
|
|
4100
4320
|
- $ref: "#/components/schemas/ContentKitImage"
|
|
4101
4321
|
discriminator:
|
|
4102
4322
|
propertyName: type
|
|
4323
|
+
ContentKitURL:
|
|
4324
|
+
type: object
|
|
4325
|
+
description: Specification for an URL in ContentKit.
|
|
4326
|
+
properties:
|
|
4327
|
+
host:
|
|
4328
|
+
type: string
|
|
4329
|
+
description: Hostname of the URL along with the port number if required.
|
|
4330
|
+
example: api.example.com
|
|
4331
|
+
pathname:
|
|
4332
|
+
type: string
|
|
4333
|
+
description: Path of the URL prefixed with a `/`.
|
|
4334
|
+
example: /v1/options
|
|
4335
|
+
query:
|
|
4336
|
+
type: object
|
|
4337
|
+
additionalProperties:
|
|
4338
|
+
oneOf:
|
|
4339
|
+
- type: string
|
|
4340
|
+
- $ref: "#/components/schemas/ContentKitDynamicBinding"
|
|
4341
|
+
required:
|
|
4342
|
+
- host
|
|
4343
|
+
- pathname
|
|
4103
4344
|
SubscriptionChannel:
|
|
4104
4345
|
description: Channel to subscribe to for API updates.
|
|
4105
4346
|
oneOf:
|
|
4106
4347
|
- $ref: "#/components/schemas/SpaceInfoChannel"
|
|
4348
|
+
- $ref: "#/components/schemas/SpaceGitInfoChannel"
|
|
4107
4349
|
- $ref: "#/components/schemas/SpacePublishingAuthChannel"
|
|
4108
4350
|
- $ref: "#/components/schemas/SpaceRelationsChannel"
|
|
4109
4351
|
- $ref: "#/components/schemas/SpaceEntitiesChannel"
|
|
@@ -4201,6 +4443,18 @@ components:
|
|
|
4201
4443
|
required:
|
|
4202
4444
|
- channel
|
|
4203
4445
|
- space
|
|
4446
|
+
SpaceGitInfoChannel:
|
|
4447
|
+
type: object
|
|
4448
|
+
properties:
|
|
4449
|
+
channel:
|
|
4450
|
+
type: string
|
|
4451
|
+
enum:
|
|
4452
|
+
- space-git-info
|
|
4453
|
+
space:
|
|
4454
|
+
type: string
|
|
4455
|
+
required:
|
|
4456
|
+
- channel
|
|
4457
|
+
- space
|
|
4204
4458
|
SpacePublishingAuthChannel:
|
|
4205
4459
|
type: object
|
|
4206
4460
|
properties:
|
|
@@ -4547,9 +4801,7 @@ components:
|
|
|
4547
4801
|
title:
|
|
4548
4802
|
$ref: "#/components/schemas/EnvironmentTitle"
|
|
4549
4803
|
primary:
|
|
4550
|
-
|
|
4551
|
-
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.
|
|
4552
|
-
type: boolean
|
|
4804
|
+
$ref: "#/components/schemas/EnvironmentPrimary"
|
|
4553
4805
|
urls:
|
|
4554
4806
|
type: object
|
|
4555
4807
|
description: URLs associated with the object
|
|
@@ -4569,6 +4821,10 @@ components:
|
|
|
4569
4821
|
EnvironmentTitle:
|
|
4570
4822
|
type: string
|
|
4571
4823
|
maxLength: 100
|
|
4824
|
+
EnvironmentPrimary:
|
|
4825
|
+
description: |
|
|
4826
|
+
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.
|
|
4827
|
+
type: boolean
|
|
4572
4828
|
EnvironmentName:
|
|
4573
4829
|
type: string
|
|
4574
4830
|
pattern: ^[a-zA-Z_\-0-9]+$
|
|
@@ -4581,7 +4837,7 @@ components:
|
|
|
4581
4837
|
title:
|
|
4582
4838
|
$ref: "#/components/schemas/EnvironmentTitle"
|
|
4583
4839
|
primary:
|
|
4584
|
-
$ref: "#/components/schemas/
|
|
4840
|
+
$ref: "#/components/schemas/EnvironmentPrimary"
|
|
4585
4841
|
required:
|
|
4586
4842
|
- name
|
|
4587
4843
|
- title
|
|
@@ -4592,7 +4848,7 @@ components:
|
|
|
4592
4848
|
title:
|
|
4593
4849
|
$ref: "#/components/schemas/EnvironmentTitle"
|
|
4594
4850
|
primary:
|
|
4595
|
-
$ref: "#/components/schemas/
|
|
4851
|
+
$ref: "#/components/schemas/EnvironmentPrimary"
|
|
4596
4852
|
responses:
|
|
4597
4853
|
UnexpectedError:
|
|
4598
4854
|
description: Unexpected Error
|
|
@@ -5087,6 +5343,28 @@ paths:
|
|
|
5087
5343
|
application/json:
|
|
5088
5344
|
schema:
|
|
5089
5345
|
$ref: "#/components/schemas/RequestExportToGitRepository"
|
|
5346
|
+
"/spaces/{spaceId}/git/info":
|
|
5347
|
+
get:
|
|
5348
|
+
operationId: getSpaceGitInfo
|
|
5349
|
+
summary: Get metadata about the Git Sync provider currently set up on the space
|
|
5350
|
+
tags:
|
|
5351
|
+
- spaces
|
|
5352
|
+
security:
|
|
5353
|
+
- user: []
|
|
5354
|
+
parameters:
|
|
5355
|
+
- $ref: "#/components/parameters/spaceId"
|
|
5356
|
+
responses:
|
|
5357
|
+
"200":
|
|
5358
|
+
description: The Git Sync info for the space
|
|
5359
|
+
content:
|
|
5360
|
+
application/json:
|
|
5361
|
+
schema:
|
|
5362
|
+
$ref: "#/components/schemas/GitSyncState"
|
|
5363
|
+
"404":
|
|
5364
|
+
description: No Git provider currently set up on the space
|
|
5365
|
+
$ref: "#/components/responses/NotFoundError"
|
|
5366
|
+
default:
|
|
5367
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
5090
5368
|
"/spaces/{spaceId}/insights/content":
|
|
5091
5369
|
get:
|
|
5092
5370
|
operationId: getContentAnalyticsForSpaceById
|
|
@@ -7238,6 +7516,27 @@ paths:
|
|
|
7238
7516
|
schema:
|
|
7239
7517
|
$ref: "#/components/schemas/RequestRenderIntegrationUI"
|
|
7240
7518
|
"/integrations/{integrationName}/installations/{installationId}":
|
|
7519
|
+
get:
|
|
7520
|
+
operationId: getIntegrationInstallationById
|
|
7521
|
+
summary: Get a specific integration's installation by its ID
|
|
7522
|
+
tags:
|
|
7523
|
+
- integrations
|
|
7524
|
+
security:
|
|
7525
|
+
- user: []
|
|
7526
|
+
parameters:
|
|
7527
|
+
- $ref: "#/components/parameters/integrationName"
|
|
7528
|
+
- $ref: "#/components/parameters/installationId"
|
|
7529
|
+
responses:
|
|
7530
|
+
"200":
|
|
7531
|
+
description: Integration installation
|
|
7532
|
+
content:
|
|
7533
|
+
application/json:
|
|
7534
|
+
schema:
|
|
7535
|
+
$ref: "#/components/schemas/IntegrationInstallation"
|
|
7536
|
+
"404":
|
|
7537
|
+
$ref: "#/components/responses/NotFoundError"
|
|
7538
|
+
default:
|
|
7539
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
7241
7540
|
patch:
|
|
7242
7541
|
operationId: updateIntegrationInstallation
|
|
7243
7542
|
summary: Update external IDs and configurations of an integration's installation
|
|
@@ -7408,7 +7707,8 @@ paths:
|
|
|
7408
7707
|
$ref: "#/components/responses/UnexpectedError"
|
|
7409
7708
|
post:
|
|
7410
7709
|
operationId: syncIntegrationEntities
|
|
7411
|
-
summary: Update all entities for an integration installation.
|
|
7710
|
+
summary: Update all entities for an integration installation.
|
|
7711
|
+
description: Update all entities for an integration installation. Entities will be created and updated, missing entities will be deleted.
|
|
7412
7712
|
tags:
|
|
7413
7713
|
- integrations
|
|
7414
7714
|
security:
|
|
@@ -8818,6 +9118,98 @@ paths:
|
|
|
8818
9118
|
description: Environment has been deleted
|
|
8819
9119
|
default:
|
|
8820
9120
|
$ref: "#/components/responses/UnexpectedError"
|
|
9121
|
+
"/orgs/{organizationId}/recordings":
|
|
9122
|
+
post:
|
|
9123
|
+
operationId: startRecording
|
|
9124
|
+
summary: Start a recording
|
|
9125
|
+
tags:
|
|
9126
|
+
- organizations
|
|
9127
|
+
security:
|
|
9128
|
+
- user: []
|
|
9129
|
+
parameters:
|
|
9130
|
+
- $ref: "#/components/parameters/organizationId"
|
|
9131
|
+
requestBody:
|
|
9132
|
+
content:
|
|
9133
|
+
application/json:
|
|
9134
|
+
schema:
|
|
9135
|
+
type: object
|
|
9136
|
+
properties:
|
|
9137
|
+
space:
|
|
9138
|
+
description: The space in which the docs should be generated
|
|
9139
|
+
type: string
|
|
9140
|
+
context:
|
|
9141
|
+
$ref: "#/components/schemas/RecordingContext"
|
|
9142
|
+
required:
|
|
9143
|
+
- space
|
|
9144
|
+
- context
|
|
9145
|
+
responses:
|
|
9146
|
+
"201":
|
|
9147
|
+
description: Recording started
|
|
9148
|
+
headers:
|
|
9149
|
+
Location:
|
|
9150
|
+
description: API URL for the newly created recording
|
|
9151
|
+
schema:
|
|
9152
|
+
type: string
|
|
9153
|
+
content:
|
|
9154
|
+
application/json:
|
|
9155
|
+
schema:
|
|
9156
|
+
$ref: "#/components/schemas/Recording"
|
|
9157
|
+
default:
|
|
9158
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
9159
|
+
"/orgs/{organizationId}/recordings/{recordingId}/events":
|
|
9160
|
+
post:
|
|
9161
|
+
operationId: addEventsToRecording
|
|
9162
|
+
summary: Add events to a running recording
|
|
9163
|
+
tags:
|
|
9164
|
+
- organizations
|
|
9165
|
+
security:
|
|
9166
|
+
- user: []
|
|
9167
|
+
parameters:
|
|
9168
|
+
- $ref: "#/components/parameters/organizationId"
|
|
9169
|
+
- $ref: "#/components/parameters/recordingId"
|
|
9170
|
+
requestBody:
|
|
9171
|
+
content:
|
|
9172
|
+
application/json:
|
|
9173
|
+
schema:
|
|
9174
|
+
type: object
|
|
9175
|
+
properties:
|
|
9176
|
+
events:
|
|
9177
|
+
type: array
|
|
9178
|
+
items:
|
|
9179
|
+
$ref: "#/components/schemas/RecordingEvent"
|
|
9180
|
+
required:
|
|
9181
|
+
- events
|
|
9182
|
+
responses:
|
|
9183
|
+
"200":
|
|
9184
|
+
description: Events added
|
|
9185
|
+
default:
|
|
9186
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
9187
|
+
"/orgs/{organizationId}/recordings/{recordingId}/stop":
|
|
9188
|
+
post:
|
|
9189
|
+
operationId: stopRecording
|
|
9190
|
+
summary: Stop a recording
|
|
9191
|
+
tags:
|
|
9192
|
+
- organizations
|
|
9193
|
+
security:
|
|
9194
|
+
- user: []
|
|
9195
|
+
parameters:
|
|
9196
|
+
- $ref: "#/components/parameters/organizationId"
|
|
9197
|
+
- $ref: "#/components/parameters/recordingId"
|
|
9198
|
+
responses:
|
|
9199
|
+
"200":
|
|
9200
|
+
description: Recording stopped
|
|
9201
|
+
content:
|
|
9202
|
+
application/json:
|
|
9203
|
+
schema:
|
|
9204
|
+
type: object
|
|
9205
|
+
properties:
|
|
9206
|
+
url:
|
|
9207
|
+
description: URL of the generated document
|
|
9208
|
+
type: string
|
|
9209
|
+
required:
|
|
9210
|
+
- url
|
|
9211
|
+
default:
|
|
9212
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
8821
9213
|
/internal/hive/token:
|
|
8822
9214
|
post:
|
|
8823
9215
|
operationId: generateHiveAccessToken
|