@gitbook/api 0.5.0 → 0.7.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 +303 -165
- package/dist/index.cjs +82 -70
- package/dist/index.js +82 -69
- package/package.json +1 -1
- package/spec/openapi.json +1579 -836
- package/spec/openapi.yaml +825 -391
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
|
|
@@ -179,7 +183,14 @@ components:
|
|
|
179
183
|
required: true
|
|
180
184
|
description: ID of the entity in the space
|
|
181
185
|
schema:
|
|
182
|
-
|
|
186
|
+
$ref: "#/components/schemas/EntityId"
|
|
187
|
+
entityType:
|
|
188
|
+
name: entityType
|
|
189
|
+
in: path
|
|
190
|
+
required: true
|
|
191
|
+
description: Type of the entity
|
|
192
|
+
schema:
|
|
193
|
+
$ref: "#/components/schemas/EntityType"
|
|
183
194
|
environmentName:
|
|
184
195
|
name: environmentName
|
|
185
196
|
in: path
|
|
@@ -345,6 +356,11 @@ components:
|
|
|
345
356
|
$ref: "#/components/schemas/IntegrationSecrets"
|
|
346
357
|
contentSecurityPolicy:
|
|
347
358
|
$ref: "#/components/schemas/IntegrationContentSecurityPolicy"
|
|
359
|
+
entities:
|
|
360
|
+
type: array
|
|
361
|
+
maxItems: 100
|
|
362
|
+
items:
|
|
363
|
+
$ref: "#/components/schemas/EntityRawSchema"
|
|
348
364
|
required:
|
|
349
365
|
- title
|
|
350
366
|
- description
|
|
@@ -1088,36 +1104,7 @@ components:
|
|
|
1088
1104
|
required:
|
|
1089
1105
|
- target
|
|
1090
1106
|
- source
|
|
1091
|
-
|
|
1092
|
-
type: array
|
|
1093
|
-
description: Environments the entity is linked to
|
|
1094
|
-
minItems: 1
|
|
1095
|
-
maxItems: 100
|
|
1096
|
-
items:
|
|
1097
|
-
type: string
|
|
1098
|
-
SpaceEntity:
|
|
1099
|
-
type: object
|
|
1100
|
-
description: Link between an integration entity and a space.
|
|
1101
|
-
properties:
|
|
1102
|
-
entity:
|
|
1103
|
-
$ref: "#/components/schemas/IntegrationEntity"
|
|
1104
|
-
environments:
|
|
1105
|
-
$ref: "#/components/schemas/SpaceEntityEnvironments"
|
|
1106
|
-
urls:
|
|
1107
|
-
type: object
|
|
1108
|
-
description: URLs associated with the object
|
|
1109
|
-
properties:
|
|
1110
|
-
location:
|
|
1111
|
-
type: string
|
|
1112
|
-
description: URL of the space entity in the API
|
|
1113
|
-
format: uri
|
|
1114
|
-
required:
|
|
1115
|
-
- location
|
|
1116
|
-
required:
|
|
1117
|
-
- entity
|
|
1118
|
-
- environments
|
|
1119
|
-
- urls
|
|
1120
|
-
Revision:
|
|
1107
|
+
RevisionBase:
|
|
1121
1108
|
type: object
|
|
1122
1109
|
properties:
|
|
1123
1110
|
object:
|
|
@@ -1185,6 +1172,65 @@ components:
|
|
|
1185
1172
|
- pages
|
|
1186
1173
|
- files
|
|
1187
1174
|
- urls
|
|
1175
|
+
RevisionTypeMerge:
|
|
1176
|
+
allOf:
|
|
1177
|
+
- $ref: "#/components/schemas/RevisionBase"
|
|
1178
|
+
- type: object
|
|
1179
|
+
properties:
|
|
1180
|
+
type:
|
|
1181
|
+
type: string
|
|
1182
|
+
description: Revision created when merging a change request with primary.
|
|
1183
|
+
enum:
|
|
1184
|
+
- merge
|
|
1185
|
+
mergedFrom:
|
|
1186
|
+
$ref: "#/components/schemas/ChangeRequest"
|
|
1187
|
+
required:
|
|
1188
|
+
- type
|
|
1189
|
+
- mergedFrom
|
|
1190
|
+
RevisionTypeRollback:
|
|
1191
|
+
allOf:
|
|
1192
|
+
- $ref: "#/components/schemas/RevisionBase"
|
|
1193
|
+
- type: object
|
|
1194
|
+
properties:
|
|
1195
|
+
type:
|
|
1196
|
+
type: string
|
|
1197
|
+
description: Revision created as a rollback of a previous revision.
|
|
1198
|
+
enum:
|
|
1199
|
+
- rollback
|
|
1200
|
+
required:
|
|
1201
|
+
- type
|
|
1202
|
+
RevisionTypeUpdate:
|
|
1203
|
+
allOf:
|
|
1204
|
+
- $ref: "#/components/schemas/RevisionBase"
|
|
1205
|
+
- type: object
|
|
1206
|
+
properties:
|
|
1207
|
+
type:
|
|
1208
|
+
type: string
|
|
1209
|
+
description: Revision created when updating a change request with changes from primary.
|
|
1210
|
+
enum:
|
|
1211
|
+
- update
|
|
1212
|
+
required:
|
|
1213
|
+
- type
|
|
1214
|
+
RevisionTypeEdits:
|
|
1215
|
+
allOf:
|
|
1216
|
+
- $ref: "#/components/schemas/RevisionBase"
|
|
1217
|
+
- type: object
|
|
1218
|
+
properties:
|
|
1219
|
+
type:
|
|
1220
|
+
type: string
|
|
1221
|
+
description: Revision created by editing the content.
|
|
1222
|
+
enum:
|
|
1223
|
+
- edits
|
|
1224
|
+
required:
|
|
1225
|
+
- type
|
|
1226
|
+
Revision:
|
|
1227
|
+
oneOf:
|
|
1228
|
+
- $ref: "#/components/schemas/RevisionTypeEdits"
|
|
1229
|
+
- $ref: "#/components/schemas/RevisionTypeMerge"
|
|
1230
|
+
- $ref: "#/components/schemas/RevisionTypeRollback"
|
|
1231
|
+
- $ref: "#/components/schemas/RevisionTypeUpdate"
|
|
1232
|
+
discriminator:
|
|
1233
|
+
propertyName: type
|
|
1188
1234
|
RevisionPage:
|
|
1189
1235
|
oneOf:
|
|
1190
1236
|
- $ref: "#/components/schemas/RevisionPageDocument"
|
|
@@ -1617,31 +1663,97 @@ components:
|
|
|
1617
1663
|
Recording:
|
|
1618
1664
|
type: object
|
|
1619
1665
|
properties:
|
|
1666
|
+
object:
|
|
1667
|
+
type: string
|
|
1668
|
+
description: Type of Object, always equals to "recording"
|
|
1669
|
+
enum:
|
|
1670
|
+
- recording
|
|
1620
1671
|
id:
|
|
1621
1672
|
type: string
|
|
1622
1673
|
description: Unique identifier for the recording
|
|
1674
|
+
title:
|
|
1675
|
+
$ref: "#/components/schemas/RecordingTitle"
|
|
1623
1676
|
context:
|
|
1624
1677
|
$ref: "#/components/schemas/RecordingContext"
|
|
1625
|
-
|
|
1678
|
+
externalId:
|
|
1679
|
+
type: string
|
|
1680
|
+
description: ID in the original source of the recording.
|
|
1681
|
+
externalURL:
|
|
1682
|
+
type: string
|
|
1683
|
+
format: uri
|
|
1684
|
+
description: URL of the source from which the recording originated
|
|
1685
|
+
createdAt:
|
|
1626
1686
|
type: string
|
|
1627
1687
|
format: date-time
|
|
1628
1688
|
stoppedAt:
|
|
1629
1689
|
type: string
|
|
1630
1690
|
format: date-time
|
|
1691
|
+
events:
|
|
1692
|
+
description: Count of events recorded.
|
|
1693
|
+
properties:
|
|
1694
|
+
terminal.command:
|
|
1695
|
+
type: integer
|
|
1696
|
+
speech:
|
|
1697
|
+
type: integer
|
|
1698
|
+
contributors:
|
|
1699
|
+
type: array
|
|
1700
|
+
minItems: 1
|
|
1701
|
+
items:
|
|
1702
|
+
oneOf:
|
|
1703
|
+
- $ref: "#/components/schemas/Integration"
|
|
1704
|
+
- $ref: "#/components/schemas/User"
|
|
1705
|
+
output:
|
|
1706
|
+
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.
|
|
1707
|
+
$ref: "#/components/schemas/RecordingOutput"
|
|
1708
|
+
urls:
|
|
1709
|
+
type: object
|
|
1710
|
+
description: URLs associated with the object
|
|
1711
|
+
properties:
|
|
1712
|
+
location:
|
|
1713
|
+
type: string
|
|
1714
|
+
description: URL of the recording in the API
|
|
1715
|
+
format: uri
|
|
1716
|
+
required:
|
|
1717
|
+
- location
|
|
1631
1718
|
required:
|
|
1719
|
+
- object
|
|
1632
1720
|
- id
|
|
1721
|
+
- title
|
|
1633
1722
|
- context
|
|
1634
|
-
-
|
|
1723
|
+
- events
|
|
1724
|
+
- createdAt
|
|
1725
|
+
- contributors
|
|
1726
|
+
- urls
|
|
1727
|
+
RecordingTitle:
|
|
1728
|
+
type: string
|
|
1729
|
+
description: Optional title describing the recording
|
|
1730
|
+
maxLength: 100
|
|
1731
|
+
RecordingOutput:
|
|
1732
|
+
type: object
|
|
1733
|
+
properties:
|
|
1734
|
+
url:
|
|
1735
|
+
type: string
|
|
1736
|
+
format: uri
|
|
1737
|
+
description: URL of the generated page
|
|
1738
|
+
space:
|
|
1739
|
+
$ref: "#/components/schemas/Space"
|
|
1740
|
+
page:
|
|
1741
|
+
$ref: "#/components/schemas/RevisionPageDocument"
|
|
1742
|
+
required:
|
|
1743
|
+
- url
|
|
1744
|
+
- space
|
|
1745
|
+
- page
|
|
1635
1746
|
RecordingEvent:
|
|
1636
1747
|
oneOf:
|
|
1637
1748
|
- $ref: "#/components/schemas/RecordingTerminalCommandEvent"
|
|
1638
1749
|
- $ref: "#/components/schemas/RecordingSpeechEvent"
|
|
1639
1750
|
RecordingContext:
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1751
|
+
oneOf:
|
|
1752
|
+
- type: string
|
|
1753
|
+
enum:
|
|
1754
|
+
- meeting
|
|
1755
|
+
- conversation
|
|
1756
|
+
- walkthrough
|
|
1645
1757
|
BaseRecordingEvent:
|
|
1646
1758
|
type: object
|
|
1647
1759
|
properties:
|
|
@@ -2234,6 +2346,9 @@ components:
|
|
|
2234
2346
|
name:
|
|
2235
2347
|
type: string
|
|
2236
2348
|
description: Unique named identifier for the integration
|
|
2349
|
+
version:
|
|
2350
|
+
type: number
|
|
2351
|
+
description: Version of the integration
|
|
2237
2352
|
title:
|
|
2238
2353
|
$ref: "#/components/schemas/IntegrationTitle"
|
|
2239
2354
|
description:
|
|
@@ -2287,6 +2402,7 @@ components:
|
|
|
2287
2402
|
required:
|
|
2288
2403
|
- object
|
|
2289
2404
|
- name
|
|
2405
|
+
- version
|
|
2290
2406
|
- title
|
|
2291
2407
|
- scopes
|
|
2292
2408
|
- categories
|
|
@@ -2315,7 +2431,8 @@ components:
|
|
|
2315
2431
|
IntegrationScope:
|
|
2316
2432
|
type: string
|
|
2317
2433
|
enum:
|
|
2318
|
-
-
|
|
2434
|
+
- entities:write
|
|
2435
|
+
- recording:write
|
|
2319
2436
|
- space:views:read
|
|
2320
2437
|
- space:content:read
|
|
2321
2438
|
- space:content:write
|
|
@@ -2596,6 +2713,12 @@ components:
|
|
|
2596
2713
|
type: object
|
|
2597
2714
|
description: Installation of an integration at a space level
|
|
2598
2715
|
properties:
|
|
2716
|
+
integration:
|
|
2717
|
+
description: Unique name identifier of the integration
|
|
2718
|
+
type: string
|
|
2719
|
+
installation:
|
|
2720
|
+
description: ID of the integration installation
|
|
2721
|
+
type: string
|
|
2599
2722
|
space:
|
|
2600
2723
|
description: ID of the space the integration is installed on.
|
|
2601
2724
|
type: string
|
|
@@ -2617,6 +2740,8 @@ components:
|
|
|
2617
2740
|
required:
|
|
2618
2741
|
- publicEndpoint
|
|
2619
2742
|
required:
|
|
2743
|
+
- integration
|
|
2744
|
+
- installation
|
|
2620
2745
|
- space
|
|
2621
2746
|
- status
|
|
2622
2747
|
- configuration
|
|
@@ -2769,151 +2894,339 @@ components:
|
|
|
2769
2894
|
type: array
|
|
2770
2895
|
items:
|
|
2771
2896
|
$ref: "#/components/schemas/IntegrationBlock"
|
|
2772
|
-
|
|
2897
|
+
UpsertEntity:
|
|
2773
2898
|
type: object
|
|
2774
2899
|
description: Entity to create or update in an integration's installation.
|
|
2775
2900
|
properties:
|
|
2776
2901
|
entityId:
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
title:
|
|
2780
|
-
type: string
|
|
2781
|
-
description: Title of the entity
|
|
2782
|
-
minLength: 1
|
|
2783
|
-
maxLength: 60
|
|
2784
|
-
description:
|
|
2785
|
-
type: string
|
|
2786
|
-
description: Longer text description of the entity
|
|
2787
|
-
minLength: 0
|
|
2788
|
-
maxLength: 256
|
|
2789
|
-
target:
|
|
2790
|
-
type: string
|
|
2791
|
-
description: URL to open the entity
|
|
2792
|
-
format: uri
|
|
2793
|
-
metadata:
|
|
2902
|
+
$ref: "#/components/schemas/EntityId"
|
|
2903
|
+
properties:
|
|
2794
2904
|
type: object
|
|
2795
|
-
description:
|
|
2905
|
+
description: Map of values stored as properties on the entity
|
|
2796
2906
|
additionalProperties:
|
|
2797
2907
|
oneOf:
|
|
2798
2908
|
- type: string
|
|
2799
2909
|
- type: number
|
|
2800
2910
|
- type: boolean
|
|
2911
|
+
- type: object
|
|
2912
|
+
properties:
|
|
2913
|
+
entityId:
|
|
2914
|
+
type: string
|
|
2915
|
+
required:
|
|
2916
|
+
- entityId
|
|
2801
2917
|
required:
|
|
2802
2918
|
- entityId
|
|
2803
|
-
-
|
|
2804
|
-
|
|
2805
|
-
- metadata
|
|
2806
|
-
- target
|
|
2807
|
-
IntegrationEntity:
|
|
2919
|
+
- properties
|
|
2920
|
+
Entity:
|
|
2808
2921
|
allOf:
|
|
2809
|
-
- $ref: "#/components/schemas/
|
|
2922
|
+
- $ref: "#/components/schemas/UpsertEntity"
|
|
2810
2923
|
- type: object
|
|
2811
|
-
description: Entity created and managed by an integration, representing
|
|
2924
|
+
description: Entity created and managed by an integration, representing an external element.
|
|
2812
2925
|
properties:
|
|
2813
2926
|
id:
|
|
2814
2927
|
type: string
|
|
2815
2928
|
description: Unique ID for the entity in GitBook
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2929
|
+
type:
|
|
2930
|
+
$ref: "#/components/schemas/EntityType"
|
|
2931
|
+
urls:
|
|
2932
|
+
type: object
|
|
2933
|
+
description: URLs associated with the object
|
|
2934
|
+
properties:
|
|
2935
|
+
location:
|
|
2936
|
+
type: string
|
|
2937
|
+
description: URL of the entity in the API
|
|
2938
|
+
format: uri
|
|
2939
|
+
required:
|
|
2940
|
+
- location
|
|
2819
2941
|
required:
|
|
2820
2942
|
- id
|
|
2821
|
-
-
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
BaseEvent:
|
|
2838
|
-
description: Common properties for all events.
|
|
2943
|
+
- type
|
|
2944
|
+
- urls
|
|
2945
|
+
EntityType:
|
|
2946
|
+
type: string
|
|
2947
|
+
description: Type of an entity
|
|
2948
|
+
minLength: 1
|
|
2949
|
+
maxLength: 64
|
|
2950
|
+
EntityId:
|
|
2951
|
+
type: string
|
|
2952
|
+
description: Unique ID of the entity in the context of the integration's entity type
|
|
2953
|
+
minLength: 1
|
|
2954
|
+
maxLength: 256
|
|
2955
|
+
EntitySchemaTitle:
|
|
2956
|
+
type: string
|
|
2957
|
+
maxLength: 50
|
|
2958
|
+
EntityRawSchema:
|
|
2839
2959
|
type: object
|
|
2960
|
+
description: Schema for a type of entities
|
|
2840
2961
|
properties:
|
|
2841
|
-
eventId:
|
|
2842
|
-
description: Unique identifier for the event.
|
|
2843
|
-
type: string
|
|
2844
2962
|
type:
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
- type
|
|
2850
|
-
InstallationEvent:
|
|
2851
|
-
allOf:
|
|
2852
|
-
- $ref: "#/components/schemas/BaseEvent"
|
|
2853
|
-
- type: object
|
|
2854
|
-
description: Common properties for all events related to an installation
|
|
2855
|
-
properties:
|
|
2856
|
-
installationId:
|
|
2857
|
-
type: string
|
|
2858
|
-
description: ID of the integration installation
|
|
2859
|
-
required:
|
|
2860
|
-
- installationId
|
|
2861
|
-
SpaceEvent:
|
|
2862
|
-
allOf:
|
|
2863
|
-
- $ref: "#/components/schemas/InstallationEvent"
|
|
2864
|
-
- type: object
|
|
2865
|
-
description: Common properties for all events related to a specific space.
|
|
2963
|
+
$ref: "#/components/schemas/EntityType"
|
|
2964
|
+
title:
|
|
2965
|
+
type: object
|
|
2966
|
+
description: Title of the entity type
|
|
2866
2967
|
properties:
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
2968
|
+
singular:
|
|
2969
|
+
$ref: "#/components/schemas/EntitySchemaTitle"
|
|
2970
|
+
plural:
|
|
2971
|
+
$ref: "#/components/schemas/EntitySchemaTitle"
|
|
2870
2972
|
required:
|
|
2871
|
-
-
|
|
2872
|
-
|
|
2973
|
+
- singular
|
|
2974
|
+
- plural
|
|
2975
|
+
properties:
|
|
2976
|
+
type: array
|
|
2977
|
+
description: Ordered list of all properties stored in entities.
|
|
2978
|
+
items:
|
|
2979
|
+
$ref: "#/components/schemas/EntityPropertySchema"
|
|
2980
|
+
required:
|
|
2981
|
+
- type
|
|
2982
|
+
- title
|
|
2983
|
+
- properties
|
|
2984
|
+
EntitySchema:
|
|
2873
2985
|
allOf:
|
|
2874
|
-
- $ref: "#/components/schemas/
|
|
2986
|
+
- $ref: "#/components/schemas/EntityRawSchema"
|
|
2875
2987
|
- type: object
|
|
2876
|
-
description: Event received when integration has been installed or updated.
|
|
2877
2988
|
properties:
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
$ref: "#/components/schemas/
|
|
2884
|
-
|
|
2989
|
+
entities:
|
|
2990
|
+
description: Count of entities created in this schema.
|
|
2991
|
+
type: number
|
|
2992
|
+
integration:
|
|
2993
|
+
description: Integration managing this schema.
|
|
2994
|
+
$ref: "#/components/schemas/Integration"
|
|
2995
|
+
urls:
|
|
2885
2996
|
type: object
|
|
2886
|
-
description:
|
|
2997
|
+
description: URLs associated with the object
|
|
2887
2998
|
properties:
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
description: The previous configuration of the installation at the account level.
|
|
2999
|
+
location:
|
|
3000
|
+
type: string
|
|
3001
|
+
description: URL of the entity schema in the API
|
|
3002
|
+
format: uri
|
|
2893
3003
|
required:
|
|
2894
|
-
-
|
|
3004
|
+
- location
|
|
2895
3005
|
required:
|
|
2896
|
-
-
|
|
2897
|
-
-
|
|
2898
|
-
|
|
3006
|
+
- entities
|
|
3007
|
+
- urls
|
|
3008
|
+
EntityPropertySchema:
|
|
2899
3009
|
allOf:
|
|
2900
|
-
- $ref: "#/components/schemas/SpaceEvent"
|
|
2901
3010
|
- type: object
|
|
2902
|
-
description: Event received when integration has been installed or updated on a space.
|
|
2903
3011
|
properties:
|
|
2904
|
-
|
|
3012
|
+
name:
|
|
2905
3013
|
type: string
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
type:
|
|
2912
|
-
description:
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
3014
|
+
description: Name of the property in the object
|
|
3015
|
+
title:
|
|
3016
|
+
type: string
|
|
3017
|
+
description: Title displayed to the users
|
|
3018
|
+
description:
|
|
3019
|
+
type: string
|
|
3020
|
+
description: Description of the property
|
|
3021
|
+
deprecated:
|
|
3022
|
+
type: boolean
|
|
3023
|
+
description: If true, the property is no longer required and not taken into consideration
|
|
3024
|
+
required:
|
|
3025
|
+
- name
|
|
3026
|
+
- title
|
|
3027
|
+
- oneOf:
|
|
3028
|
+
- type: object
|
|
3029
|
+
properties:
|
|
3030
|
+
type:
|
|
3031
|
+
type: string
|
|
3032
|
+
enum:
|
|
3033
|
+
- text
|
|
3034
|
+
role:
|
|
3035
|
+
type: string
|
|
3036
|
+
enum:
|
|
3037
|
+
- title
|
|
3038
|
+
required:
|
|
3039
|
+
- type
|
|
3040
|
+
- type: object
|
|
3041
|
+
properties:
|
|
3042
|
+
type:
|
|
3043
|
+
type: string
|
|
3044
|
+
enum:
|
|
3045
|
+
- longtext
|
|
3046
|
+
role:
|
|
3047
|
+
type: string
|
|
3048
|
+
enum:
|
|
3049
|
+
- body
|
|
3050
|
+
required:
|
|
3051
|
+
- type
|
|
3052
|
+
- type: object
|
|
3053
|
+
properties:
|
|
3054
|
+
type:
|
|
3055
|
+
type: string
|
|
3056
|
+
enum:
|
|
3057
|
+
- url
|
|
3058
|
+
role:
|
|
3059
|
+
type: string
|
|
3060
|
+
enum:
|
|
3061
|
+
- target
|
|
3062
|
+
- icon
|
|
3063
|
+
required:
|
|
3064
|
+
- type
|
|
3065
|
+
- type: object
|
|
3066
|
+
properties:
|
|
3067
|
+
type:
|
|
3068
|
+
type: string
|
|
3069
|
+
enum:
|
|
3070
|
+
- number
|
|
3071
|
+
required:
|
|
3072
|
+
- type
|
|
3073
|
+
- type: object
|
|
3074
|
+
properties:
|
|
3075
|
+
type:
|
|
3076
|
+
type: string
|
|
3077
|
+
enum:
|
|
3078
|
+
- boolean
|
|
3079
|
+
required:
|
|
3080
|
+
- type
|
|
3081
|
+
- type: object
|
|
3082
|
+
properties:
|
|
3083
|
+
type:
|
|
3084
|
+
type: string
|
|
3085
|
+
enum:
|
|
3086
|
+
- enum
|
|
3087
|
+
values:
|
|
3088
|
+
type: array
|
|
3089
|
+
items:
|
|
3090
|
+
type: object
|
|
3091
|
+
properties:
|
|
3092
|
+
label:
|
|
3093
|
+
type: string
|
|
3094
|
+
value:
|
|
3095
|
+
type: string
|
|
3096
|
+
required:
|
|
3097
|
+
- label
|
|
3098
|
+
- value
|
|
3099
|
+
required:
|
|
3100
|
+
- type
|
|
3101
|
+
- values
|
|
3102
|
+
- type: object
|
|
3103
|
+
properties:
|
|
3104
|
+
type:
|
|
3105
|
+
type: string
|
|
3106
|
+
enum:
|
|
3107
|
+
- date
|
|
3108
|
+
required:
|
|
3109
|
+
- type
|
|
3110
|
+
- type: object
|
|
3111
|
+
properties:
|
|
3112
|
+
type:
|
|
3113
|
+
type: string
|
|
3114
|
+
enum:
|
|
3115
|
+
- user
|
|
3116
|
+
required:
|
|
3117
|
+
- type
|
|
3118
|
+
- type: object
|
|
3119
|
+
description: reference to another entity, creating a relation
|
|
3120
|
+
properties:
|
|
3121
|
+
type:
|
|
3122
|
+
type: string
|
|
3123
|
+
enum:
|
|
3124
|
+
- relation
|
|
3125
|
+
entity:
|
|
3126
|
+
type: object
|
|
3127
|
+
properties:
|
|
3128
|
+
type:
|
|
3129
|
+
$ref: "#/components/schemas/EntityType"
|
|
3130
|
+
required:
|
|
3131
|
+
- type
|
|
3132
|
+
required:
|
|
3133
|
+
- type
|
|
3134
|
+
- entity
|
|
3135
|
+
Event:
|
|
3136
|
+
description: Any event that can be received from GitBook.
|
|
3137
|
+
oneOf:
|
|
3138
|
+
- $ref: "#/components/schemas/InstallationSetupEvent"
|
|
3139
|
+
- $ref: "#/components/schemas/SpaceInstallationSetupEvent"
|
|
3140
|
+
- $ref: "#/components/schemas/SpaceViewEvent"
|
|
3141
|
+
- $ref: "#/components/schemas/SpaceContentUpdatedEvent"
|
|
3142
|
+
- $ref: "#/components/schemas/SpaceGitSyncCompletedEvent"
|
|
3143
|
+
- $ref: "#/components/schemas/SpaceGitSyncStartedEvent"
|
|
3144
|
+
- $ref: "#/components/schemas/SpaceVisibilityUpdatedEvent"
|
|
3145
|
+
- $ref: "#/components/schemas/FetchEvent"
|
|
3146
|
+
- $ref: "#/components/schemas/FetchPublishedScriptEvent"
|
|
3147
|
+
- $ref: "#/components/schemas/UIRenderEvent"
|
|
3148
|
+
discriminator:
|
|
3149
|
+
propertyName: type
|
|
3150
|
+
BaseEvent:
|
|
3151
|
+
description: Common properties for all events.
|
|
3152
|
+
type: object
|
|
3153
|
+
properties:
|
|
3154
|
+
eventId:
|
|
3155
|
+
description: Unique identifier for the event.
|
|
3156
|
+
type: string
|
|
3157
|
+
type:
|
|
3158
|
+
description: Type of the event.
|
|
3159
|
+
type: string
|
|
3160
|
+
required:
|
|
3161
|
+
- eventId
|
|
3162
|
+
- type
|
|
3163
|
+
InstallationEvent:
|
|
3164
|
+
allOf:
|
|
3165
|
+
- $ref: "#/components/schemas/BaseEvent"
|
|
3166
|
+
- type: object
|
|
3167
|
+
description: Common properties for all events related to an installation
|
|
3168
|
+
properties:
|
|
3169
|
+
installationId:
|
|
3170
|
+
type: string
|
|
3171
|
+
description: ID of the integration installation
|
|
3172
|
+
required:
|
|
3173
|
+
- installationId
|
|
3174
|
+
SpaceEvent:
|
|
3175
|
+
allOf:
|
|
3176
|
+
- $ref: "#/components/schemas/InstallationEvent"
|
|
3177
|
+
- type: object
|
|
3178
|
+
description: Common properties for all events related to a specific space.
|
|
3179
|
+
properties:
|
|
3180
|
+
spaceId:
|
|
3181
|
+
type: string
|
|
3182
|
+
description: ID of the space
|
|
3183
|
+
required:
|
|
3184
|
+
- spaceId
|
|
3185
|
+
InstallationSetupEvent:
|
|
3186
|
+
allOf:
|
|
3187
|
+
- $ref: "#/components/schemas/InstallationEvent"
|
|
3188
|
+
- type: object
|
|
3189
|
+
description: Event received when integration has been installed or updated.
|
|
3190
|
+
properties:
|
|
3191
|
+
type:
|
|
3192
|
+
type: string
|
|
3193
|
+
enum:
|
|
3194
|
+
- installation_setup
|
|
3195
|
+
status:
|
|
3196
|
+
$ref: "#/components/schemas/IntegrationInstallationStatus"
|
|
3197
|
+
previous:
|
|
3198
|
+
type: object
|
|
3199
|
+
description: The state of the installation at the account level before it was updated.
|
|
3200
|
+
properties:
|
|
3201
|
+
status:
|
|
3202
|
+
$ref: "#/components/schemas/IntegrationInstallationStatus"
|
|
3203
|
+
configuration:
|
|
3204
|
+
type: object
|
|
3205
|
+
description: The previous configuration of the installation at the account level.
|
|
3206
|
+
required:
|
|
3207
|
+
- status
|
|
3208
|
+
required:
|
|
3209
|
+
- type
|
|
3210
|
+
- status
|
|
3211
|
+
SpaceInstallationSetupEvent:
|
|
3212
|
+
allOf:
|
|
3213
|
+
- $ref: "#/components/schemas/SpaceEvent"
|
|
3214
|
+
- type: object
|
|
3215
|
+
description: Event received when integration has been installed or updated on a space.
|
|
3216
|
+
properties:
|
|
3217
|
+
type:
|
|
3218
|
+
type: string
|
|
3219
|
+
enum:
|
|
3220
|
+
- space_installation_setup
|
|
3221
|
+
status:
|
|
3222
|
+
$ref: "#/components/schemas/IntegrationInstallationStatus"
|
|
3223
|
+
previous:
|
|
3224
|
+
type: object
|
|
3225
|
+
description: The state of the Space installation before it was updated.
|
|
3226
|
+
properties:
|
|
3227
|
+
status:
|
|
3228
|
+
$ref: "#/components/schemas/IntegrationInstallationStatus"
|
|
3229
|
+
configuration:
|
|
2917
3230
|
type: object
|
|
2918
3231
|
description: The previous configuration of the Space installation.
|
|
2919
3232
|
required:
|
|
@@ -3723,11 +4036,14 @@ components:
|
|
|
3723
4036
|
- code
|
|
3724
4037
|
- strikethrough
|
|
3725
4038
|
children:
|
|
3726
|
-
|
|
3727
|
-
|
|
3728
|
-
|
|
3729
|
-
|
|
3730
|
-
|
|
4039
|
+
oneOf:
|
|
4040
|
+
- type: string
|
|
4041
|
+
- type: array
|
|
4042
|
+
items:
|
|
4043
|
+
oneOf:
|
|
4044
|
+
- type: string
|
|
4045
|
+
- $ref: "#/components/schemas/ContentKitText"
|
|
4046
|
+
- $ref: "#/components/schemas/ContentKitLink"
|
|
3731
4047
|
required:
|
|
3732
4048
|
- type
|
|
3733
4049
|
- children
|
|
@@ -3905,6 +4221,7 @@ components:
|
|
|
3905
4221
|
- close
|
|
3906
4222
|
- edit
|
|
3907
4223
|
- github
|
|
4224
|
+
- gitlab
|
|
3908
4225
|
- maximize
|
|
3909
4226
|
- email
|
|
3910
4227
|
- settings
|
|
@@ -3914,6 +4231,7 @@ components:
|
|
|
3914
4231
|
- warning
|
|
3915
4232
|
- link
|
|
3916
4233
|
- link-external
|
|
4234
|
+
- eye
|
|
3917
4235
|
ContentKitModal:
|
|
3918
4236
|
type: object
|
|
3919
4237
|
description: Overlay modal.
|
|
@@ -4107,6 +4425,32 @@ components:
|
|
|
4107
4425
|
- type
|
|
4108
4426
|
- source
|
|
4109
4427
|
- aspectRatio
|
|
4428
|
+
ContentKitLink:
|
|
4429
|
+
type: object
|
|
4430
|
+
properties:
|
|
4431
|
+
type:
|
|
4432
|
+
type: string
|
|
4433
|
+
enum:
|
|
4434
|
+
- link
|
|
4435
|
+
target:
|
|
4436
|
+
type: object
|
|
4437
|
+
properties:
|
|
4438
|
+
url:
|
|
4439
|
+
oneOf:
|
|
4440
|
+
- type: string
|
|
4441
|
+
- $ref: "#/components/schemas/ContentKitURL"
|
|
4442
|
+
required:
|
|
4443
|
+
- url
|
|
4444
|
+
children:
|
|
4445
|
+
oneOf:
|
|
4446
|
+
- type: string
|
|
4447
|
+
- type: array
|
|
4448
|
+
items:
|
|
4449
|
+
type: string
|
|
4450
|
+
required:
|
|
4451
|
+
- type
|
|
4452
|
+
- target
|
|
4453
|
+
- children
|
|
4110
4454
|
ContentKitInput:
|
|
4111
4455
|
type: object
|
|
4112
4456
|
description: Field for an input.
|
|
@@ -4175,6 +4519,9 @@ components:
|
|
|
4175
4519
|
multiple:
|
|
4176
4520
|
description: Should the select accept the selection of multiple options. If true, the state will be an array.
|
|
4177
4521
|
type: boolean
|
|
4522
|
+
acceptInput:
|
|
4523
|
+
description: Should the filter input be allowed to be selected as an option.
|
|
4524
|
+
type: boolean
|
|
4178
4525
|
options:
|
|
4179
4526
|
description: Array of options to display in the select.
|
|
4180
4527
|
oneOf:
|
|
@@ -4311,6 +4658,7 @@ components:
|
|
|
4311
4658
|
- $ref: "#/components/schemas/ContentKitRadio"
|
|
4312
4659
|
- $ref: "#/components/schemas/ContentKitText"
|
|
4313
4660
|
- $ref: "#/components/schemas/ContentKitHint"
|
|
4661
|
+
- $ref: "#/components/schemas/ContentKitLink"
|
|
4314
4662
|
discriminator:
|
|
4315
4663
|
propertyName: type
|
|
4316
4664
|
ContentKitInlineElement:
|
|
@@ -4318,6 +4666,7 @@ components:
|
|
|
4318
4666
|
oneOf:
|
|
4319
4667
|
- $ref: "#/components/schemas/ContentKitText"
|
|
4320
4668
|
- $ref: "#/components/schemas/ContentKitImage"
|
|
4669
|
+
- $ref: "#/components/schemas/ContentKitLink"
|
|
4321
4670
|
discriminator:
|
|
4322
4671
|
propertyName: type
|
|
4323
4672
|
ContentKitURL:
|
|
@@ -4365,6 +4714,8 @@ components:
|
|
|
4365
4714
|
- $ref: "#/components/schemas/OrganizationSpaceRelationsChannel"
|
|
4366
4715
|
- $ref: "#/components/schemas/OrganizationSpacesChannel"
|
|
4367
4716
|
- $ref: "#/components/schemas/OrganizationEntitiesChannel"
|
|
4717
|
+
- $ref: "#/components/schemas/OrganizationSchemasChannel"
|
|
4718
|
+
- $ref: "#/components/schemas/OrganizationRecordingsChannel"
|
|
4368
4719
|
- type: object
|
|
4369
4720
|
properties:
|
|
4370
4721
|
channel:
|
|
@@ -4680,7 +5031,7 @@ components:
|
|
|
4680
5031
|
- organization
|
|
4681
5032
|
OrganizationEntitiesChannel:
|
|
4682
5033
|
type: object
|
|
4683
|
-
description: Subscription channel for
|
|
5034
|
+
description: Subscription channel for entities in an organization.
|
|
4684
5035
|
properties:
|
|
4685
5036
|
channel:
|
|
4686
5037
|
type: string
|
|
@@ -4688,6 +5039,22 @@ components:
|
|
|
4688
5039
|
- organization-entities
|
|
4689
5040
|
organization:
|
|
4690
5041
|
type: string
|
|
5042
|
+
entityType:
|
|
5043
|
+
type: string
|
|
5044
|
+
required:
|
|
5045
|
+
- channel
|
|
5046
|
+
- organization
|
|
5047
|
+
- entityType
|
|
5048
|
+
OrganizationSchemasChannel:
|
|
5049
|
+
type: object
|
|
5050
|
+
description: Subscription channel for all entity schemas in an organization.
|
|
5051
|
+
properties:
|
|
5052
|
+
channel:
|
|
5053
|
+
type: string
|
|
5054
|
+
enum:
|
|
5055
|
+
- organization-schemas
|
|
5056
|
+
organization:
|
|
5057
|
+
type: string
|
|
4691
5058
|
required:
|
|
4692
5059
|
- channel
|
|
4693
5060
|
- organization
|
|
@@ -4703,6 +5070,18 @@ components:
|
|
|
4703
5070
|
required:
|
|
4704
5071
|
- channel
|
|
4705
5072
|
- organization
|
|
5073
|
+
OrganizationRecordingsChannel:
|
|
5074
|
+
type: object
|
|
5075
|
+
properties:
|
|
5076
|
+
channel:
|
|
5077
|
+
type: string
|
|
5078
|
+
enum:
|
|
5079
|
+
- organization-recordings
|
|
5080
|
+
organization:
|
|
5081
|
+
type: string
|
|
5082
|
+
required:
|
|
5083
|
+
- channel
|
|
5084
|
+
- organization
|
|
4706
5085
|
CustomField:
|
|
4707
5086
|
type: object
|
|
4708
5087
|
description: Custom field
|
|
@@ -4757,12 +5136,17 @@ components:
|
|
|
4757
5136
|
- text
|
|
4758
5137
|
- number
|
|
4759
5138
|
- boolean
|
|
5139
|
+
- tags
|
|
4760
5140
|
CustomFieldValue:
|
|
4761
5141
|
oneOf:
|
|
4762
5142
|
- type: string
|
|
4763
5143
|
maxLength: 256
|
|
4764
5144
|
- type: number
|
|
4765
5145
|
- type: boolean
|
|
5146
|
+
- type: array
|
|
5147
|
+
items:
|
|
5148
|
+
type: string
|
|
5149
|
+
maxLength: 256
|
|
4766
5150
|
CustomFieldValues:
|
|
4767
5151
|
type: array
|
|
4768
5152
|
items:
|
|
@@ -6878,146 +7262,16 @@ paths:
|
|
|
6878
7262
|
description: Custom fields updated
|
|
6879
7263
|
default:
|
|
6880
7264
|
$ref: "#/components/responses/UnexpectedError"
|
|
6881
|
-
"/
|
|
7265
|
+
"/collections/{collectionId}":
|
|
6882
7266
|
get:
|
|
6883
|
-
operationId:
|
|
6884
|
-
summary:
|
|
7267
|
+
operationId: getCollectionById
|
|
7268
|
+
summary: Get the details about a collection using its ID
|
|
6885
7269
|
tags:
|
|
6886
|
-
-
|
|
7270
|
+
- collections
|
|
7271
|
+
security:
|
|
7272
|
+
- user: []
|
|
6887
7273
|
parameters:
|
|
6888
|
-
- $ref: "#/components/parameters/
|
|
6889
|
-
- $ref: "#/components/parameters/listPage"
|
|
6890
|
-
- $ref: "#/components/parameters/listLimit"
|
|
6891
|
-
responses:
|
|
6892
|
-
"200":
|
|
6893
|
-
description: OK
|
|
6894
|
-
content:
|
|
6895
|
-
application/json:
|
|
6896
|
-
schema:
|
|
6897
|
-
allOf:
|
|
6898
|
-
- $ref: "#/components/schemas/List"
|
|
6899
|
-
- type: object
|
|
6900
|
-
required:
|
|
6901
|
-
- items
|
|
6902
|
-
properties:
|
|
6903
|
-
items:
|
|
6904
|
-
type: array
|
|
6905
|
-
items:
|
|
6906
|
-
$ref: "#/components/schemas/SpaceEntity"
|
|
6907
|
-
default:
|
|
6908
|
-
$ref: "#/components/responses/UnexpectedError"
|
|
6909
|
-
post:
|
|
6910
|
-
operationId: addSpaceEntities
|
|
6911
|
-
summary: Link the space to entities
|
|
6912
|
-
tags:
|
|
6913
|
-
- spaces
|
|
6914
|
-
parameters:
|
|
6915
|
-
- $ref: "#/components/parameters/spaceId"
|
|
6916
|
-
requestBody:
|
|
6917
|
-
required: true
|
|
6918
|
-
content:
|
|
6919
|
-
application/json:
|
|
6920
|
-
schema:
|
|
6921
|
-
type: object
|
|
6922
|
-
required:
|
|
6923
|
-
- entities
|
|
6924
|
-
properties:
|
|
6925
|
-
entities:
|
|
6926
|
-
type: array
|
|
6927
|
-
description: Array of entities to link to the space
|
|
6928
|
-
minItems: 1
|
|
6929
|
-
maxItems: 10
|
|
6930
|
-
items:
|
|
6931
|
-
type: object
|
|
6932
|
-
properties:
|
|
6933
|
-
integration:
|
|
6934
|
-
type: string
|
|
6935
|
-
description: ID of the integration owning the entity
|
|
6936
|
-
entityId:
|
|
6937
|
-
type: string
|
|
6938
|
-
description: ID of the entity in the integration
|
|
6939
|
-
environments:
|
|
6940
|
-
type: array
|
|
6941
|
-
description: Environments the entity is linked to
|
|
6942
|
-
items:
|
|
6943
|
-
type: string
|
|
6944
|
-
required:
|
|
6945
|
-
- integration
|
|
6946
|
-
- entityId
|
|
6947
|
-
- environments
|
|
6948
|
-
responses:
|
|
6949
|
-
"204":
|
|
6950
|
-
description: OK
|
|
6951
|
-
default:
|
|
6952
|
-
$ref: "#/components/responses/UnexpectedError"
|
|
6953
|
-
"/spaces/{spaceId}/entities/{integrationName}/{entityId}":
|
|
6954
|
-
get:
|
|
6955
|
-
operationId: getSpaceEntity
|
|
6956
|
-
summary: Get a space entity
|
|
6957
|
-
tags:
|
|
6958
|
-
- spaces
|
|
6959
|
-
parameters:
|
|
6960
|
-
- $ref: "#/components/parameters/spaceId"
|
|
6961
|
-
- $ref: "#/components/parameters/integrationName"
|
|
6962
|
-
- $ref: "#/components/parameters/entityId"
|
|
6963
|
-
responses:
|
|
6964
|
-
"200":
|
|
6965
|
-
description: OK
|
|
6966
|
-
content:
|
|
6967
|
-
application/json:
|
|
6968
|
-
schema:
|
|
6969
|
-
$ref: "#/components/schemas/SpaceEntity"
|
|
6970
|
-
default:
|
|
6971
|
-
$ref: "#/components/responses/UnexpectedError"
|
|
6972
|
-
patch:
|
|
6973
|
-
operationId: updateSpaceEntity
|
|
6974
|
-
summary: Update a space entity
|
|
6975
|
-
tags:
|
|
6976
|
-
- spaces
|
|
6977
|
-
parameters:
|
|
6978
|
-
- $ref: "#/components/parameters/spaceId"
|
|
6979
|
-
- $ref: "#/components/parameters/integrationName"
|
|
6980
|
-
- $ref: "#/components/parameters/entityId"
|
|
6981
|
-
requestBody:
|
|
6982
|
-
required: true
|
|
6983
|
-
content:
|
|
6984
|
-
application/json:
|
|
6985
|
-
schema:
|
|
6986
|
-
type: object
|
|
6987
|
-
required:
|
|
6988
|
-
- environments
|
|
6989
|
-
properties:
|
|
6990
|
-
environments:
|
|
6991
|
-
$ref: "#/components/schemas/SpaceEntityEnvironments"
|
|
6992
|
-
responses:
|
|
6993
|
-
"204":
|
|
6994
|
-
description: Space entity has been updated
|
|
6995
|
-
default:
|
|
6996
|
-
$ref: "#/components/responses/UnexpectedError"
|
|
6997
|
-
delete:
|
|
6998
|
-
operationId: deleteSpaceEntity
|
|
6999
|
-
summary: Delete a space entity
|
|
7000
|
-
tags:
|
|
7001
|
-
- spaces
|
|
7002
|
-
parameters:
|
|
7003
|
-
- $ref: "#/components/parameters/spaceId"
|
|
7004
|
-
- $ref: "#/components/parameters/integrationName"
|
|
7005
|
-
- $ref: "#/components/parameters/entityId"
|
|
7006
|
-
responses:
|
|
7007
|
-
"204":
|
|
7008
|
-
description: Space entity has been deleted
|
|
7009
|
-
default:
|
|
7010
|
-
$ref: "#/components/responses/UnexpectedError"
|
|
7011
|
-
"/collections/{collectionId}":
|
|
7012
|
-
get:
|
|
7013
|
-
operationId: getCollectionById
|
|
7014
|
-
summary: Get the details about a collection using its ID
|
|
7015
|
-
tags:
|
|
7016
|
-
- collections
|
|
7017
|
-
security:
|
|
7018
|
-
- user: []
|
|
7019
|
-
parameters:
|
|
7020
|
-
- $ref: "#/components/parameters/collectionId"
|
|
7274
|
+
- $ref: "#/components/parameters/collectionId"
|
|
7021
7275
|
responses:
|
|
7022
7276
|
"200":
|
|
7023
7277
|
description: OK
|
|
@@ -7640,6 +7894,26 @@ paths:
|
|
|
7640
7894
|
default:
|
|
7641
7895
|
$ref: "#/components/responses/UnexpectedError"
|
|
7642
7896
|
"/integrations/{integrationName}/installations/{installationId}/spaces/{spaceId}":
|
|
7897
|
+
get:
|
|
7898
|
+
operationId: getIntegrationSpaceInstallation
|
|
7899
|
+
summary: Get a specific integration's space installation
|
|
7900
|
+
tags:
|
|
7901
|
+
- integrations
|
|
7902
|
+
parameters:
|
|
7903
|
+
- $ref: "#/components/parameters/integrationName"
|
|
7904
|
+
- $ref: "#/components/parameters/installationId"
|
|
7905
|
+
- $ref: "#/components/parameters/spaceId"
|
|
7906
|
+
responses:
|
|
7907
|
+
"200":
|
|
7908
|
+
description: Integration space installation
|
|
7909
|
+
content:
|
|
7910
|
+
application/json:
|
|
7911
|
+
schema:
|
|
7912
|
+
$ref: "#/components/schemas/IntegrationSpaceInstallation"
|
|
7913
|
+
"404":
|
|
7914
|
+
$ref: "#/components/responses/NotFoundError"
|
|
7915
|
+
default:
|
|
7916
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
7643
7917
|
patch:
|
|
7644
7918
|
operationId: updateIntegrationSpaceInstallation
|
|
7645
7919
|
summary: Update external IDs and configurations of an integration's installation for a space
|
|
@@ -7674,69 +7948,6 @@ paths:
|
|
|
7674
7948
|
description: The space installation has been deleted.
|
|
7675
7949
|
default:
|
|
7676
7950
|
$ref: "#/components/responses/UnexpectedError"
|
|
7677
|
-
"/integrations/{integrationName}/installations/{installationId}/entities":
|
|
7678
|
-
get:
|
|
7679
|
-
operationId: getIntegrationEntities
|
|
7680
|
-
summary: List entities managed by an integration in an installation.
|
|
7681
|
-
tags:
|
|
7682
|
-
- integrations
|
|
7683
|
-
security:
|
|
7684
|
-
- integration: []
|
|
7685
|
-
parameters:
|
|
7686
|
-
- $ref: "#/components/parameters/integrationName"
|
|
7687
|
-
- $ref: "#/components/parameters/installationId"
|
|
7688
|
-
responses:
|
|
7689
|
-
"200":
|
|
7690
|
-
description: Entity
|
|
7691
|
-
content:
|
|
7692
|
-
application/json:
|
|
7693
|
-
schema:
|
|
7694
|
-
allOf:
|
|
7695
|
-
- $ref: "#/components/schemas/List"
|
|
7696
|
-
- type: object
|
|
7697
|
-
required:
|
|
7698
|
-
- items
|
|
7699
|
-
properties:
|
|
7700
|
-
items:
|
|
7701
|
-
type: array
|
|
7702
|
-
items:
|
|
7703
|
-
$ref: "#/components/schemas/IntegrationEntity"
|
|
7704
|
-
"404":
|
|
7705
|
-
$ref: "#/components/responses/NotFoundError"
|
|
7706
|
-
default:
|
|
7707
|
-
$ref: "#/components/responses/UnexpectedError"
|
|
7708
|
-
post:
|
|
7709
|
-
operationId: syncIntegrationEntities
|
|
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.
|
|
7712
|
-
tags:
|
|
7713
|
-
- integrations
|
|
7714
|
-
security:
|
|
7715
|
-
- integration: []
|
|
7716
|
-
parameters:
|
|
7717
|
-
- $ref: "#/components/parameters/integrationName"
|
|
7718
|
-
- $ref: "#/components/parameters/installationId"
|
|
7719
|
-
requestBody:
|
|
7720
|
-
required: true
|
|
7721
|
-
content:
|
|
7722
|
-
application/json:
|
|
7723
|
-
schema:
|
|
7724
|
-
type: object
|
|
7725
|
-
required:
|
|
7726
|
-
- entities
|
|
7727
|
-
properties:
|
|
7728
|
-
entities:
|
|
7729
|
-
type: array
|
|
7730
|
-
description: Array of entities to synchronize. Entities will be created and updated, missing entities will be deleted.
|
|
7731
|
-
items:
|
|
7732
|
-
$ref: "#/components/schemas/UpsertIntegrationEntity"
|
|
7733
|
-
responses:
|
|
7734
|
-
"204":
|
|
7735
|
-
description: Entities have been updated
|
|
7736
|
-
"404":
|
|
7737
|
-
$ref: "#/components/responses/NotFoundError"
|
|
7738
|
-
default:
|
|
7739
|
-
$ref: "#/components/responses/UnexpectedError"
|
|
7740
7951
|
/orgs:
|
|
7741
7952
|
get:
|
|
7742
7953
|
operationId: listOrganizationsForAuthenticatedUser
|
|
@@ -8967,34 +9178,6 @@ paths:
|
|
|
8967
9178
|
$ref: "#/components/schemas/SpaceRelationPair"
|
|
8968
9179
|
default:
|
|
8969
9180
|
$ref: "#/components/responses/UnexpectedError"
|
|
8970
|
-
"/orgs/{organizationId}/entities":
|
|
8971
|
-
get:
|
|
8972
|
-
operationId: listEntitiesInOrganization
|
|
8973
|
-
summary: List all entities in an organization.
|
|
8974
|
-
tags:
|
|
8975
|
-
- spaces
|
|
8976
|
-
parameters:
|
|
8977
|
-
- $ref: "#/components/parameters/organizationId"
|
|
8978
|
-
- $ref: "#/components/parameters/listPage"
|
|
8979
|
-
- $ref: "#/components/parameters/listLimit"
|
|
8980
|
-
responses:
|
|
8981
|
-
"200":
|
|
8982
|
-
description: OK
|
|
8983
|
-
content:
|
|
8984
|
-
application/json:
|
|
8985
|
-
schema:
|
|
8986
|
-
allOf:
|
|
8987
|
-
- $ref: "#/components/schemas/List"
|
|
8988
|
-
- type: object
|
|
8989
|
-
required:
|
|
8990
|
-
- items
|
|
8991
|
-
properties:
|
|
8992
|
-
items:
|
|
8993
|
-
type: array
|
|
8994
|
-
items:
|
|
8995
|
-
$ref: "#/components/schemas/IntegrationEntity"
|
|
8996
|
-
default:
|
|
8997
|
-
$ref: "#/components/responses/UnexpectedError"
|
|
8998
9181
|
"/orgs/{organizationId}/environments":
|
|
8999
9182
|
get:
|
|
9000
9183
|
operationId: listEnvironments
|
|
@@ -9118,7 +9301,218 @@ paths:
|
|
|
9118
9301
|
description: Environment has been deleted
|
|
9119
9302
|
default:
|
|
9120
9303
|
$ref: "#/components/responses/UnexpectedError"
|
|
9304
|
+
"/orgs/{organizationId}/schemas":
|
|
9305
|
+
get:
|
|
9306
|
+
operationId: listEntitySchemas
|
|
9307
|
+
summary: List the entity schemas in an organization.
|
|
9308
|
+
tags:
|
|
9309
|
+
- organizations
|
|
9310
|
+
security:
|
|
9311
|
+
- user: []
|
|
9312
|
+
parameters:
|
|
9313
|
+
- $ref: "#/components/parameters/organizationId"
|
|
9314
|
+
- $ref: "#/components/parameters/listPage"
|
|
9315
|
+
- $ref: "#/components/parameters/listLimit"
|
|
9316
|
+
responses:
|
|
9317
|
+
"200":
|
|
9318
|
+
description: OK
|
|
9319
|
+
content:
|
|
9320
|
+
application/json:
|
|
9321
|
+
schema:
|
|
9322
|
+
allOf:
|
|
9323
|
+
- $ref: "#/components/schemas/List"
|
|
9324
|
+
- type: object
|
|
9325
|
+
required:
|
|
9326
|
+
- items
|
|
9327
|
+
properties:
|
|
9328
|
+
items:
|
|
9329
|
+
type: array
|
|
9330
|
+
items:
|
|
9331
|
+
$ref: "#/components/schemas/EntitySchema"
|
|
9332
|
+
default:
|
|
9333
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
9334
|
+
"/orgs/{organizationId}/schemas/{entityType}":
|
|
9335
|
+
get:
|
|
9336
|
+
operationId: getEntitySchema
|
|
9337
|
+
summary: Get an entity schema by its type.
|
|
9338
|
+
tags:
|
|
9339
|
+
- organizations
|
|
9340
|
+
security:
|
|
9341
|
+
- user: []
|
|
9342
|
+
parameters:
|
|
9343
|
+
- $ref: "#/components/parameters/organizationId"
|
|
9344
|
+
- $ref: "#/components/parameters/entityType"
|
|
9345
|
+
responses:
|
|
9346
|
+
"200":
|
|
9347
|
+
description: OK
|
|
9348
|
+
content:
|
|
9349
|
+
application/json:
|
|
9350
|
+
schema:
|
|
9351
|
+
$ref: "#/components/schemas/EntitySchema"
|
|
9352
|
+
default:
|
|
9353
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
9354
|
+
put:
|
|
9355
|
+
operationId: setEntitySchema
|
|
9356
|
+
summary: Create or update an entity schema.
|
|
9357
|
+
tags:
|
|
9358
|
+
- organizations
|
|
9359
|
+
security:
|
|
9360
|
+
- user: []
|
|
9361
|
+
parameters:
|
|
9362
|
+
- $ref: "#/components/parameters/organizationId"
|
|
9363
|
+
- $ref: "#/components/parameters/entityType"
|
|
9364
|
+
requestBody:
|
|
9365
|
+
required: true
|
|
9366
|
+
content:
|
|
9367
|
+
application/json:
|
|
9368
|
+
schema:
|
|
9369
|
+
$ref: "#/components/schemas/EntityRawSchema"
|
|
9370
|
+
responses:
|
|
9371
|
+
"204":
|
|
9372
|
+
description: OK
|
|
9373
|
+
default:
|
|
9374
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
9375
|
+
delete:
|
|
9376
|
+
operationId: deleteEntitySchema
|
|
9377
|
+
summary: Delete an entity schema.
|
|
9378
|
+
tags:
|
|
9379
|
+
- organizations
|
|
9380
|
+
security:
|
|
9381
|
+
- user: []
|
|
9382
|
+
parameters:
|
|
9383
|
+
- $ref: "#/components/parameters/organizationId"
|
|
9384
|
+
- $ref: "#/components/parameters/entityType"
|
|
9385
|
+
responses:
|
|
9386
|
+
"204":
|
|
9387
|
+
description: OK
|
|
9388
|
+
default:
|
|
9389
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
9390
|
+
"/orgs/{organizationId}/schemas/{entityType}/entities":
|
|
9391
|
+
get:
|
|
9392
|
+
operationId: listSchemaEntities
|
|
9393
|
+
summary: List entities in an organization for a given type.
|
|
9394
|
+
tags:
|
|
9395
|
+
- organizations
|
|
9396
|
+
security:
|
|
9397
|
+
- user: []
|
|
9398
|
+
parameters:
|
|
9399
|
+
- $ref: "#/components/parameters/organizationId"
|
|
9400
|
+
- $ref: "#/components/parameters/entityType"
|
|
9401
|
+
- $ref: "#/components/parameters/listPage"
|
|
9402
|
+
- $ref: "#/components/parameters/listLimit"
|
|
9403
|
+
- name: query
|
|
9404
|
+
in: query
|
|
9405
|
+
description: "Query to filter entities with, ex: a == 'something' && b >= 10"
|
|
9406
|
+
schema:
|
|
9407
|
+
type: string
|
|
9408
|
+
responses:
|
|
9409
|
+
"200":
|
|
9410
|
+
description: OK
|
|
9411
|
+
content:
|
|
9412
|
+
application/json:
|
|
9413
|
+
schema:
|
|
9414
|
+
allOf:
|
|
9415
|
+
- $ref: "#/components/schemas/List"
|
|
9416
|
+
- type: object
|
|
9417
|
+
required:
|
|
9418
|
+
- items
|
|
9419
|
+
properties:
|
|
9420
|
+
items:
|
|
9421
|
+
type: array
|
|
9422
|
+
items:
|
|
9423
|
+
$ref: "#/components/schemas/Entity"
|
|
9424
|
+
default:
|
|
9425
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
9426
|
+
put:
|
|
9427
|
+
operationId: upsertSchemaEntities
|
|
9428
|
+
summary: Update/Create/Delete entities in a schema.
|
|
9429
|
+
tags:
|
|
9430
|
+
- organizations
|
|
9431
|
+
security:
|
|
9432
|
+
- user: []
|
|
9433
|
+
parameters:
|
|
9434
|
+
- $ref: "#/components/parameters/organizationId"
|
|
9435
|
+
- $ref: "#/components/parameters/entityType"
|
|
9436
|
+
requestBody:
|
|
9437
|
+
required: true
|
|
9438
|
+
content:
|
|
9439
|
+
application/json:
|
|
9440
|
+
schema:
|
|
9441
|
+
type: object
|
|
9442
|
+
required:
|
|
9443
|
+
- entities
|
|
9444
|
+
properties:
|
|
9445
|
+
delete:
|
|
9446
|
+
oneOf:
|
|
9447
|
+
- type: boolean
|
|
9448
|
+
description: If true, all entities not listed in the requests will be deleted
|
|
9449
|
+
- type: array
|
|
9450
|
+
description: List of entityIds to delete
|
|
9451
|
+
items:
|
|
9452
|
+
$ref: "#/components/schemas/EntityId"
|
|
9453
|
+
entities:
|
|
9454
|
+
type: array
|
|
9455
|
+
description: Array of entities to create/update.
|
|
9456
|
+
items:
|
|
9457
|
+
$ref: "#/components/schemas/UpsertEntity"
|
|
9458
|
+
responses:
|
|
9459
|
+
"204":
|
|
9460
|
+
description: OK
|
|
9461
|
+
default:
|
|
9462
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
9463
|
+
"/orgs/{organizationId}/schemas/{entityType}/entities/{entityId}":
|
|
9464
|
+
get:
|
|
9465
|
+
operationId: getEntity
|
|
9466
|
+
summary: Get an entity using its ID.
|
|
9467
|
+
tags:
|
|
9468
|
+
- organizations
|
|
9469
|
+
security:
|
|
9470
|
+
- user: []
|
|
9471
|
+
parameters:
|
|
9472
|
+
- $ref: "#/components/parameters/organizationId"
|
|
9473
|
+
- $ref: "#/components/parameters/entityType"
|
|
9474
|
+
- $ref: "#/components/parameters/entityId"
|
|
9475
|
+
responses:
|
|
9476
|
+
"200":
|
|
9477
|
+
description: OK
|
|
9478
|
+
content:
|
|
9479
|
+
application/json:
|
|
9480
|
+
schema:
|
|
9481
|
+
$ref: "#/components/schemas/Entity"
|
|
9482
|
+
default:
|
|
9483
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
9121
9484
|
"/orgs/{organizationId}/recordings":
|
|
9485
|
+
get:
|
|
9486
|
+
operationId: listRecordings
|
|
9487
|
+
summary: List recordings
|
|
9488
|
+
description: |
|
|
9489
|
+
List recordings in an organization.
|
|
9490
|
+
tags:
|
|
9491
|
+
- organizations
|
|
9492
|
+
security:
|
|
9493
|
+
- user: []
|
|
9494
|
+
parameters:
|
|
9495
|
+
- $ref: "#/components/parameters/organizationId"
|
|
9496
|
+
- $ref: "#/components/parameters/listPage"
|
|
9497
|
+
- $ref: "#/components/parameters/listLimit"
|
|
9498
|
+
responses:
|
|
9499
|
+
"200":
|
|
9500
|
+
description: OK
|
|
9501
|
+
content:
|
|
9502
|
+
application/json:
|
|
9503
|
+
schema:
|
|
9504
|
+
allOf:
|
|
9505
|
+
- $ref: "#/components/schemas/List"
|
|
9506
|
+
- type: object
|
|
9507
|
+
required:
|
|
9508
|
+
- items
|
|
9509
|
+
properties:
|
|
9510
|
+
items:
|
|
9511
|
+
type: array
|
|
9512
|
+
items:
|
|
9513
|
+
$ref: "#/components/schemas/Recording"
|
|
9514
|
+
default:
|
|
9515
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
9122
9516
|
post:
|
|
9123
9517
|
operationId: startRecording
|
|
9124
9518
|
summary: Start a recording
|
|
@@ -9134,13 +9528,18 @@ paths:
|
|
|
9134
9528
|
schema:
|
|
9135
9529
|
type: object
|
|
9136
9530
|
properties:
|
|
9137
|
-
|
|
9138
|
-
|
|
9139
|
-
type: string
|
|
9531
|
+
title:
|
|
9532
|
+
$ref: "#/components/schemas/RecordingTitle"
|
|
9140
9533
|
context:
|
|
9141
9534
|
$ref: "#/components/schemas/RecordingContext"
|
|
9535
|
+
externalId:
|
|
9536
|
+
type: string
|
|
9537
|
+
description: ID in the original source of the recording.
|
|
9538
|
+
externalURL:
|
|
9539
|
+
type: string
|
|
9540
|
+
format: uri
|
|
9541
|
+
description: URL of the original source of the recording.
|
|
9142
9542
|
required:
|
|
9143
|
-
- space
|
|
9144
9543
|
- context
|
|
9145
9544
|
responses:
|
|
9146
9545
|
"201":
|
|
@@ -9156,6 +9555,26 @@ paths:
|
|
|
9156
9555
|
$ref: "#/components/schemas/Recording"
|
|
9157
9556
|
default:
|
|
9158
9557
|
$ref: "#/components/responses/UnexpectedError"
|
|
9558
|
+
"/orgs/{organizationId}/recordings/{recordingId}":
|
|
9559
|
+
get:
|
|
9560
|
+
operationId: getRecording
|
|
9561
|
+
summary: Get a recording by its ID
|
|
9562
|
+
tags:
|
|
9563
|
+
- organizations
|
|
9564
|
+
security:
|
|
9565
|
+
- user: []
|
|
9566
|
+
parameters:
|
|
9567
|
+
- $ref: "#/components/parameters/organizationId"
|
|
9568
|
+
- $ref: "#/components/parameters/recordingId"
|
|
9569
|
+
responses:
|
|
9570
|
+
"200":
|
|
9571
|
+
description: OK
|
|
9572
|
+
content:
|
|
9573
|
+
application/json:
|
|
9574
|
+
schema:
|
|
9575
|
+
$ref: "#/components/schemas/Recording"
|
|
9576
|
+
default:
|
|
9577
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
9159
9578
|
"/orgs/{organizationId}/recordings/{recordingId}/events":
|
|
9160
9579
|
post:
|
|
9161
9580
|
operationId: addEventsToRecording
|
|
@@ -9180,7 +9599,7 @@ paths:
|
|
|
9180
9599
|
required:
|
|
9181
9600
|
- events
|
|
9182
9601
|
responses:
|
|
9183
|
-
"
|
|
9602
|
+
"204":
|
|
9184
9603
|
description: Events added
|
|
9185
9604
|
default:
|
|
9186
9605
|
$ref: "#/components/responses/UnexpectedError"
|
|
@@ -9195,6 +9614,17 @@ paths:
|
|
|
9195
9614
|
parameters:
|
|
9196
9615
|
- $ref: "#/components/parameters/organizationId"
|
|
9197
9616
|
- $ref: "#/components/parameters/recordingId"
|
|
9617
|
+
requestBody:
|
|
9618
|
+
content:
|
|
9619
|
+
application/json:
|
|
9620
|
+
schema:
|
|
9621
|
+
type: object
|
|
9622
|
+
properties:
|
|
9623
|
+
space:
|
|
9624
|
+
description: The space in which the docs should be generated
|
|
9625
|
+
type: string
|
|
9626
|
+
required:
|
|
9627
|
+
- space
|
|
9198
9628
|
responses:
|
|
9199
9629
|
"200":
|
|
9200
9630
|
description: Recording stopped
|
|
@@ -9203,11 +9633,15 @@ paths:
|
|
|
9203
9633
|
schema:
|
|
9204
9634
|
type: object
|
|
9205
9635
|
properties:
|
|
9206
|
-
|
|
9207
|
-
|
|
9208
|
-
|
|
9636
|
+
recording:
|
|
9637
|
+
$ref: "#/components/schemas/RecordingOutput"
|
|
9638
|
+
followupQuestions:
|
|
9639
|
+
description: Example questions that would be answered by the content of this recording.
|
|
9640
|
+
type: array
|
|
9641
|
+
items:
|
|
9642
|
+
type: string
|
|
9209
9643
|
required:
|
|
9210
|
-
-
|
|
9644
|
+
- recording
|
|
9211
9645
|
default:
|
|
9212
9646
|
$ref: "#/components/responses/UnexpectedError"
|
|
9213
9647
|
/internal/hive/token:
|