@gitbook/api 0.6.0 → 0.8.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 +269 -158
- package/dist/index.cjs +73 -61
- package/dist/index.js +73 -61
- package/package.json +1 -1
- package/spec/openapi.json +1459 -866
- package/spec/openapi.yaml +641 -288
package/spec/openapi.yaml
CHANGED
|
@@ -183,7 +183,14 @@ components:
|
|
|
183
183
|
required: true
|
|
184
184
|
description: ID of the entity in the space
|
|
185
185
|
schema:
|
|
186
|
-
|
|
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"
|
|
187
194
|
environmentName:
|
|
188
195
|
name: environmentName
|
|
189
196
|
in: path
|
|
@@ -349,6 +356,11 @@ components:
|
|
|
349
356
|
$ref: "#/components/schemas/IntegrationSecrets"
|
|
350
357
|
contentSecurityPolicy:
|
|
351
358
|
$ref: "#/components/schemas/IntegrationContentSecurityPolicy"
|
|
359
|
+
entities:
|
|
360
|
+
type: array
|
|
361
|
+
maxItems: 100
|
|
362
|
+
items:
|
|
363
|
+
$ref: "#/components/schemas/EntityRawSchema"
|
|
352
364
|
required:
|
|
353
365
|
- title
|
|
354
366
|
- description
|
|
@@ -1092,35 +1104,6 @@ components:
|
|
|
1092
1104
|
required:
|
|
1093
1105
|
- target
|
|
1094
1106
|
- source
|
|
1095
|
-
SpaceEntityEnvironments:
|
|
1096
|
-
type: array
|
|
1097
|
-
description: Environments the entity is linked to
|
|
1098
|
-
minItems: 1
|
|
1099
|
-
maxItems: 100
|
|
1100
|
-
items:
|
|
1101
|
-
type: string
|
|
1102
|
-
SpaceEntity:
|
|
1103
|
-
type: object
|
|
1104
|
-
description: Link between an integration entity and a space.
|
|
1105
|
-
properties:
|
|
1106
|
-
entity:
|
|
1107
|
-
$ref: "#/components/schemas/IntegrationEntity"
|
|
1108
|
-
environments:
|
|
1109
|
-
$ref: "#/components/schemas/SpaceEntityEnvironments"
|
|
1110
|
-
urls:
|
|
1111
|
-
type: object
|
|
1112
|
-
description: URLs associated with the object
|
|
1113
|
-
properties:
|
|
1114
|
-
location:
|
|
1115
|
-
type: string
|
|
1116
|
-
description: URL of the space entity in the API
|
|
1117
|
-
format: uri
|
|
1118
|
-
required:
|
|
1119
|
-
- location
|
|
1120
|
-
required:
|
|
1121
|
-
- entity
|
|
1122
|
-
- environments
|
|
1123
|
-
- urls
|
|
1124
1107
|
RevisionBase:
|
|
1125
1108
|
type: object
|
|
1126
1109
|
properties:
|
|
@@ -1712,6 +1695,8 @@ components:
|
|
|
1712
1695
|
type: integer
|
|
1713
1696
|
speech:
|
|
1714
1697
|
type: integer
|
|
1698
|
+
thread.message:
|
|
1699
|
+
type: integer
|
|
1715
1700
|
contributors:
|
|
1716
1701
|
type: array
|
|
1717
1702
|
minItems: 1
|
|
@@ -1764,12 +1749,16 @@ components:
|
|
|
1764
1749
|
oneOf:
|
|
1765
1750
|
- $ref: "#/components/schemas/RecordingTerminalCommandEvent"
|
|
1766
1751
|
- $ref: "#/components/schemas/RecordingSpeechEvent"
|
|
1752
|
+
- $ref: "#/components/schemas/RecordingThreadMessageEvent"
|
|
1753
|
+
- $ref: "#/components/schemas/RecordingFileAddedEvent"
|
|
1754
|
+
- $ref: "#/components/schemas/RecordingFileChangedEvent"
|
|
1755
|
+
- $ref: "#/components/schemas/RecordingFileRemovedEvent"
|
|
1767
1756
|
RecordingContext:
|
|
1768
1757
|
oneOf:
|
|
1769
1758
|
- type: string
|
|
1770
1759
|
enum:
|
|
1771
1760
|
- meeting
|
|
1772
|
-
-
|
|
1761
|
+
- thread
|
|
1773
1762
|
- walkthrough
|
|
1774
1763
|
BaseRecordingEvent:
|
|
1775
1764
|
type: object
|
|
@@ -1839,6 +1828,73 @@ components:
|
|
|
1839
1828
|
- type
|
|
1840
1829
|
- command
|
|
1841
1830
|
- stdout
|
|
1831
|
+
RecordingThreadMessageEvent:
|
|
1832
|
+
allOf:
|
|
1833
|
+
- $ref: "#/components/schemas/BaseRecordingEvent"
|
|
1834
|
+
- type: object
|
|
1835
|
+
properties:
|
|
1836
|
+
type:
|
|
1837
|
+
type: string
|
|
1838
|
+
enum:
|
|
1839
|
+
- thread.message
|
|
1840
|
+
isFirst:
|
|
1841
|
+
type: boolean
|
|
1842
|
+
text:
|
|
1843
|
+
type: string
|
|
1844
|
+
required:
|
|
1845
|
+
- type
|
|
1846
|
+
- text
|
|
1847
|
+
RecordingFileAddedEvent:
|
|
1848
|
+
allOf:
|
|
1849
|
+
- $ref: "#/components/schemas/BaseRecordingEvent"
|
|
1850
|
+
- type: object
|
|
1851
|
+
properties:
|
|
1852
|
+
type:
|
|
1853
|
+
type: string
|
|
1854
|
+
enum:
|
|
1855
|
+
- file.added
|
|
1856
|
+
filename:
|
|
1857
|
+
type: string
|
|
1858
|
+
fileSnapshot:
|
|
1859
|
+
type: string
|
|
1860
|
+
required:
|
|
1861
|
+
- type
|
|
1862
|
+
- filename
|
|
1863
|
+
- fileSnapshot
|
|
1864
|
+
RecordingFileChangedEvent:
|
|
1865
|
+
allOf:
|
|
1866
|
+
- $ref: "#/components/schemas/BaseRecordingEvent"
|
|
1867
|
+
- type: object
|
|
1868
|
+
properties:
|
|
1869
|
+
type:
|
|
1870
|
+
type: string
|
|
1871
|
+
enum:
|
|
1872
|
+
- file.changed
|
|
1873
|
+
filename:
|
|
1874
|
+
type: string
|
|
1875
|
+
fileDiff:
|
|
1876
|
+
type: string
|
|
1877
|
+
required:
|
|
1878
|
+
- type
|
|
1879
|
+
- filename
|
|
1880
|
+
- fileDiff
|
|
1881
|
+
RecordingFileRemovedEvent:
|
|
1882
|
+
allOf:
|
|
1883
|
+
- $ref: "#/components/schemas/BaseRecordingEvent"
|
|
1884
|
+
- type: object
|
|
1885
|
+
properties:
|
|
1886
|
+
type:
|
|
1887
|
+
type: string
|
|
1888
|
+
enum:
|
|
1889
|
+
- file.removed
|
|
1890
|
+
filename:
|
|
1891
|
+
type: string
|
|
1892
|
+
fileSnapshot:
|
|
1893
|
+
type: string
|
|
1894
|
+
required:
|
|
1895
|
+
- type
|
|
1896
|
+
- filename
|
|
1897
|
+
- fileSnapshot
|
|
1842
1898
|
ChangeRequest:
|
|
1843
1899
|
type: object
|
|
1844
1900
|
properties:
|
|
@@ -2363,6 +2419,9 @@ components:
|
|
|
2363
2419
|
name:
|
|
2364
2420
|
type: string
|
|
2365
2421
|
description: Unique named identifier for the integration
|
|
2422
|
+
version:
|
|
2423
|
+
type: number
|
|
2424
|
+
description: Version of the integration
|
|
2366
2425
|
title:
|
|
2367
2426
|
$ref: "#/components/schemas/IntegrationTitle"
|
|
2368
2427
|
description:
|
|
@@ -2416,6 +2475,7 @@ components:
|
|
|
2416
2475
|
required:
|
|
2417
2476
|
- object
|
|
2418
2477
|
- name
|
|
2478
|
+
- version
|
|
2419
2479
|
- title
|
|
2420
2480
|
- scopes
|
|
2421
2481
|
- categories
|
|
@@ -2444,7 +2504,7 @@ components:
|
|
|
2444
2504
|
IntegrationScope:
|
|
2445
2505
|
type: string
|
|
2446
2506
|
enum:
|
|
2447
|
-
-
|
|
2507
|
+
- entities:write
|
|
2448
2508
|
- recording:write
|
|
2449
2509
|
- space:views:read
|
|
2450
2510
|
- space:content:read
|
|
@@ -2587,6 +2647,7 @@ components:
|
|
|
2587
2647
|
- collaboration
|
|
2588
2648
|
- marketing
|
|
2589
2649
|
- content
|
|
2650
|
+
- gitsync
|
|
2590
2651
|
- other
|
|
2591
2652
|
IntegrationConfigurations:
|
|
2592
2653
|
type: object
|
|
@@ -2726,6 +2787,12 @@ components:
|
|
|
2726
2787
|
type: object
|
|
2727
2788
|
description: Installation of an integration at a space level
|
|
2728
2789
|
properties:
|
|
2790
|
+
integration:
|
|
2791
|
+
description: Unique name identifier of the integration
|
|
2792
|
+
type: string
|
|
2793
|
+
installation:
|
|
2794
|
+
description: ID of the integration installation
|
|
2795
|
+
type: string
|
|
2729
2796
|
space:
|
|
2730
2797
|
description: ID of the space the integration is installed on.
|
|
2731
2798
|
type: string
|
|
@@ -2747,6 +2814,8 @@ components:
|
|
|
2747
2814
|
required:
|
|
2748
2815
|
- publicEndpoint
|
|
2749
2816
|
required:
|
|
2817
|
+
- integration
|
|
2818
|
+
- installation
|
|
2750
2819
|
- space
|
|
2751
2820
|
- status
|
|
2752
2821
|
- configuration
|
|
@@ -2781,6 +2850,9 @@ components:
|
|
|
2781
2850
|
$ref: "#/components/schemas/IntegrationSpaceInstallation"
|
|
2782
2851
|
secrets:
|
|
2783
2852
|
$ref: "#/components/schemas/IntegrationSecrets"
|
|
2853
|
+
signingSecret:
|
|
2854
|
+
type: string
|
|
2855
|
+
description: Secret that can be used to verify the authenticity of incoming HTTP requests to the integration.
|
|
2784
2856
|
apiEndpoint:
|
|
2785
2857
|
type: string
|
|
2786
2858
|
description: URL of the HTTP API
|
|
@@ -2899,61 +2971,250 @@ components:
|
|
|
2899
2971
|
type: array
|
|
2900
2972
|
items:
|
|
2901
2973
|
$ref: "#/components/schemas/IntegrationBlock"
|
|
2902
|
-
|
|
2974
|
+
UpsertEntity:
|
|
2903
2975
|
type: object
|
|
2904
2976
|
description: Entity to create or update in an integration's installation.
|
|
2905
2977
|
properties:
|
|
2906
2978
|
entityId:
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
title:
|
|
2910
|
-
type: string
|
|
2911
|
-
description: Title of the entity
|
|
2912
|
-
minLength: 1
|
|
2913
|
-
maxLength: 60
|
|
2914
|
-
description:
|
|
2915
|
-
type: string
|
|
2916
|
-
description: Longer text description of the entity
|
|
2917
|
-
minLength: 0
|
|
2918
|
-
maxLength: 256
|
|
2919
|
-
target:
|
|
2920
|
-
type: string
|
|
2921
|
-
description: URL to open the entity
|
|
2922
|
-
format: uri
|
|
2923
|
-
metadata:
|
|
2979
|
+
$ref: "#/components/schemas/EntityId"
|
|
2980
|
+
properties:
|
|
2924
2981
|
type: object
|
|
2925
|
-
description:
|
|
2982
|
+
description: Map of values stored as properties on the entity
|
|
2926
2983
|
additionalProperties:
|
|
2927
2984
|
oneOf:
|
|
2928
2985
|
- type: string
|
|
2929
2986
|
- type: number
|
|
2930
2987
|
- type: boolean
|
|
2988
|
+
- type: object
|
|
2989
|
+
properties:
|
|
2990
|
+
entityId:
|
|
2991
|
+
type: string
|
|
2992
|
+
required:
|
|
2993
|
+
- entityId
|
|
2931
2994
|
required:
|
|
2932
2995
|
- entityId
|
|
2933
|
-
-
|
|
2934
|
-
|
|
2935
|
-
- metadata
|
|
2936
|
-
- target
|
|
2937
|
-
IntegrationEntity:
|
|
2996
|
+
- properties
|
|
2997
|
+
Entity:
|
|
2938
2998
|
allOf:
|
|
2939
|
-
- $ref: "#/components/schemas/
|
|
2999
|
+
- $ref: "#/components/schemas/UpsertEntity"
|
|
2940
3000
|
- type: object
|
|
2941
|
-
description: Entity created and managed by an integration, representing
|
|
3001
|
+
description: Entity created and managed by an integration, representing an external element.
|
|
2942
3002
|
properties:
|
|
2943
3003
|
id:
|
|
2944
3004
|
type: string
|
|
2945
3005
|
description: Unique ID for the entity in GitBook
|
|
3006
|
+
type:
|
|
3007
|
+
$ref: "#/components/schemas/EntityType"
|
|
3008
|
+
urls:
|
|
3009
|
+
type: object
|
|
3010
|
+
description: URLs associated with the object
|
|
3011
|
+
properties:
|
|
3012
|
+
location:
|
|
3013
|
+
type: string
|
|
3014
|
+
description: URL of the entity in the API
|
|
3015
|
+
format: uri
|
|
3016
|
+
required:
|
|
3017
|
+
- location
|
|
3018
|
+
required:
|
|
3019
|
+
- id
|
|
3020
|
+
- type
|
|
3021
|
+
- urls
|
|
3022
|
+
EntityType:
|
|
3023
|
+
type: string
|
|
3024
|
+
description: Type of an entity
|
|
3025
|
+
minLength: 1
|
|
3026
|
+
maxLength: 64
|
|
3027
|
+
EntityId:
|
|
3028
|
+
type: string
|
|
3029
|
+
description: Unique ID of the entity in the context of the integration's entity type
|
|
3030
|
+
minLength: 1
|
|
3031
|
+
maxLength: 256
|
|
3032
|
+
EntitySchemaTitle:
|
|
3033
|
+
type: string
|
|
3034
|
+
maxLength: 50
|
|
3035
|
+
EntityRawSchema:
|
|
3036
|
+
type: object
|
|
3037
|
+
description: Schema for a type of entities
|
|
3038
|
+
properties:
|
|
3039
|
+
type:
|
|
3040
|
+
$ref: "#/components/schemas/EntityType"
|
|
3041
|
+
title:
|
|
3042
|
+
type: object
|
|
3043
|
+
description: Title of the entity type
|
|
3044
|
+
properties:
|
|
3045
|
+
singular:
|
|
3046
|
+
$ref: "#/components/schemas/EntitySchemaTitle"
|
|
3047
|
+
plural:
|
|
3048
|
+
$ref: "#/components/schemas/EntitySchemaTitle"
|
|
3049
|
+
required:
|
|
3050
|
+
- singular
|
|
3051
|
+
- plural
|
|
3052
|
+
properties:
|
|
3053
|
+
type: array
|
|
3054
|
+
description: Ordered list of all properties stored in entities.
|
|
3055
|
+
items:
|
|
3056
|
+
$ref: "#/components/schemas/EntityPropertySchema"
|
|
3057
|
+
required:
|
|
3058
|
+
- type
|
|
3059
|
+
- title
|
|
3060
|
+
- properties
|
|
3061
|
+
EntitySchema:
|
|
3062
|
+
allOf:
|
|
3063
|
+
- $ref: "#/components/schemas/EntityRawSchema"
|
|
3064
|
+
- type: object
|
|
3065
|
+
properties:
|
|
3066
|
+
entities:
|
|
3067
|
+
description: Count of entities created in this schema.
|
|
3068
|
+
type: number
|
|
2946
3069
|
integration:
|
|
3070
|
+
description: Integration managing this schema.
|
|
3071
|
+
$ref: "#/components/schemas/Integration"
|
|
3072
|
+
urls:
|
|
3073
|
+
type: object
|
|
3074
|
+
description: URLs associated with the object
|
|
3075
|
+
properties:
|
|
3076
|
+
location:
|
|
3077
|
+
type: string
|
|
3078
|
+
description: URL of the entity schema in the API
|
|
3079
|
+
format: uri
|
|
3080
|
+
required:
|
|
3081
|
+
- location
|
|
3082
|
+
required:
|
|
3083
|
+
- entities
|
|
3084
|
+
- urls
|
|
3085
|
+
EntityPropertySchema:
|
|
3086
|
+
allOf:
|
|
3087
|
+
- type: object
|
|
3088
|
+
properties:
|
|
3089
|
+
name:
|
|
3090
|
+
type: string
|
|
3091
|
+
description: Name of the property in the object
|
|
3092
|
+
title:
|
|
2947
3093
|
type: string
|
|
2948
|
-
description:
|
|
3094
|
+
description: Title displayed to the users
|
|
3095
|
+
description:
|
|
3096
|
+
type: string
|
|
3097
|
+
description: Description of the property
|
|
3098
|
+
deprecated:
|
|
3099
|
+
type: boolean
|
|
3100
|
+
description: If true, the property is no longer required and not taken into consideration
|
|
2949
3101
|
required:
|
|
2950
|
-
-
|
|
2951
|
-
-
|
|
3102
|
+
- name
|
|
3103
|
+
- title
|
|
3104
|
+
- oneOf:
|
|
3105
|
+
- type: object
|
|
3106
|
+
properties:
|
|
3107
|
+
type:
|
|
3108
|
+
type: string
|
|
3109
|
+
enum:
|
|
3110
|
+
- text
|
|
3111
|
+
role:
|
|
3112
|
+
type: string
|
|
3113
|
+
enum:
|
|
3114
|
+
- title
|
|
3115
|
+
required:
|
|
3116
|
+
- type
|
|
3117
|
+
- type: object
|
|
3118
|
+
properties:
|
|
3119
|
+
type:
|
|
3120
|
+
type: string
|
|
3121
|
+
enum:
|
|
3122
|
+
- longtext
|
|
3123
|
+
role:
|
|
3124
|
+
type: string
|
|
3125
|
+
enum:
|
|
3126
|
+
- body
|
|
3127
|
+
required:
|
|
3128
|
+
- type
|
|
3129
|
+
- type: object
|
|
3130
|
+
properties:
|
|
3131
|
+
type:
|
|
3132
|
+
type: string
|
|
3133
|
+
enum:
|
|
3134
|
+
- url
|
|
3135
|
+
role:
|
|
3136
|
+
type: string
|
|
3137
|
+
enum:
|
|
3138
|
+
- target
|
|
3139
|
+
- icon
|
|
3140
|
+
required:
|
|
3141
|
+
- type
|
|
3142
|
+
- type: object
|
|
3143
|
+
properties:
|
|
3144
|
+
type:
|
|
3145
|
+
type: string
|
|
3146
|
+
enum:
|
|
3147
|
+
- number
|
|
3148
|
+
required:
|
|
3149
|
+
- type
|
|
3150
|
+
- type: object
|
|
3151
|
+
properties:
|
|
3152
|
+
type:
|
|
3153
|
+
type: string
|
|
3154
|
+
enum:
|
|
3155
|
+
- boolean
|
|
3156
|
+
required:
|
|
3157
|
+
- type
|
|
3158
|
+
- type: object
|
|
3159
|
+
properties:
|
|
3160
|
+
type:
|
|
3161
|
+
type: string
|
|
3162
|
+
enum:
|
|
3163
|
+
- enum
|
|
3164
|
+
values:
|
|
3165
|
+
type: array
|
|
3166
|
+
items:
|
|
3167
|
+
type: object
|
|
3168
|
+
properties:
|
|
3169
|
+
label:
|
|
3170
|
+
type: string
|
|
3171
|
+
value:
|
|
3172
|
+
type: string
|
|
3173
|
+
required:
|
|
3174
|
+
- label
|
|
3175
|
+
- value
|
|
3176
|
+
required:
|
|
3177
|
+
- type
|
|
3178
|
+
- values
|
|
3179
|
+
- type: object
|
|
3180
|
+
properties:
|
|
3181
|
+
type:
|
|
3182
|
+
type: string
|
|
3183
|
+
enum:
|
|
3184
|
+
- date
|
|
3185
|
+
required:
|
|
3186
|
+
- type
|
|
3187
|
+
- type: object
|
|
3188
|
+
properties:
|
|
3189
|
+
type:
|
|
3190
|
+
type: string
|
|
3191
|
+
enum:
|
|
3192
|
+
- user
|
|
3193
|
+
required:
|
|
3194
|
+
- type
|
|
3195
|
+
- type: object
|
|
3196
|
+
description: reference to another entity, creating a relation
|
|
3197
|
+
properties:
|
|
3198
|
+
type:
|
|
3199
|
+
type: string
|
|
3200
|
+
enum:
|
|
3201
|
+
- relation
|
|
3202
|
+
entity:
|
|
3203
|
+
type: object
|
|
3204
|
+
properties:
|
|
3205
|
+
type:
|
|
3206
|
+
$ref: "#/components/schemas/EntityType"
|
|
3207
|
+
required:
|
|
3208
|
+
- type
|
|
3209
|
+
required:
|
|
3210
|
+
- type
|
|
3211
|
+
- entity
|
|
2952
3212
|
Event:
|
|
2953
3213
|
description: Any event that can be received from GitBook.
|
|
2954
3214
|
oneOf:
|
|
2955
3215
|
- $ref: "#/components/schemas/InstallationSetupEvent"
|
|
2956
3216
|
- $ref: "#/components/schemas/SpaceInstallationSetupEvent"
|
|
3217
|
+
- $ref: "#/components/schemas/SpaceInstallationDeletedEvent"
|
|
2957
3218
|
- $ref: "#/components/schemas/SpaceViewEvent"
|
|
2958
3219
|
- $ref: "#/components/schemas/SpaceContentUpdatedEvent"
|
|
2959
3220
|
- $ref: "#/components/schemas/SpaceGitSyncCompletedEvent"
|
|
@@ -3051,6 +3312,26 @@ components:
|
|
|
3051
3312
|
required:
|
|
3052
3313
|
- type
|
|
3053
3314
|
- status
|
|
3315
|
+
SpaceInstallationDeletedEvent:
|
|
3316
|
+
allOf:
|
|
3317
|
+
- $ref: "#/components/schemas/SpaceEvent"
|
|
3318
|
+
- type: object
|
|
3319
|
+
description: Event received when integration has been uninstalled from a space.
|
|
3320
|
+
properties:
|
|
3321
|
+
type:
|
|
3322
|
+
type: string
|
|
3323
|
+
enum:
|
|
3324
|
+
- space_installation_deleted
|
|
3325
|
+
previous:
|
|
3326
|
+
type: object
|
|
3327
|
+
description: The state of the Space installation before it was deleted.
|
|
3328
|
+
properties:
|
|
3329
|
+
configuration:
|
|
3330
|
+
type: object
|
|
3331
|
+
description: The previous configuration of the Space installation.
|
|
3332
|
+
required:
|
|
3333
|
+
- type
|
|
3334
|
+
- previous
|
|
3054
3335
|
SpaceViewEvent:
|
|
3055
3336
|
allOf:
|
|
3056
3337
|
- $ref: "#/components/schemas/SpaceEvent"
|
|
@@ -4049,6 +4330,7 @@ components:
|
|
|
4049
4330
|
- link
|
|
4050
4331
|
- link-external
|
|
4051
4332
|
- eye
|
|
4333
|
+
- lock
|
|
4052
4334
|
ContentKitModal:
|
|
4053
4335
|
type: object
|
|
4054
4336
|
description: Overlay modal.
|
|
@@ -4259,9 +4541,11 @@ components:
|
|
|
4259
4541
|
required:
|
|
4260
4542
|
- url
|
|
4261
4543
|
children:
|
|
4262
|
-
|
|
4263
|
-
|
|
4264
|
-
type:
|
|
4544
|
+
oneOf:
|
|
4545
|
+
- type: string
|
|
4546
|
+
- type: array
|
|
4547
|
+
items:
|
|
4548
|
+
type: string
|
|
4265
4549
|
required:
|
|
4266
4550
|
- type
|
|
4267
4551
|
- target
|
|
@@ -4529,6 +4813,7 @@ components:
|
|
|
4529
4813
|
- $ref: "#/components/schemas/OrganizationSpaceRelationsChannel"
|
|
4530
4814
|
- $ref: "#/components/schemas/OrganizationSpacesChannel"
|
|
4531
4815
|
- $ref: "#/components/schemas/OrganizationEntitiesChannel"
|
|
4816
|
+
- $ref: "#/components/schemas/OrganizationSchemasChannel"
|
|
4532
4817
|
- $ref: "#/components/schemas/OrganizationRecordingsChannel"
|
|
4533
4818
|
- type: object
|
|
4534
4819
|
properties:
|
|
@@ -4845,7 +5130,7 @@ components:
|
|
|
4845
5130
|
- organization
|
|
4846
5131
|
OrganizationEntitiesChannel:
|
|
4847
5132
|
type: object
|
|
4848
|
-
description: Subscription channel for
|
|
5133
|
+
description: Subscription channel for entities in an organization.
|
|
4849
5134
|
properties:
|
|
4850
5135
|
channel:
|
|
4851
5136
|
type: string
|
|
@@ -4853,6 +5138,22 @@ components:
|
|
|
4853
5138
|
- organization-entities
|
|
4854
5139
|
organization:
|
|
4855
5140
|
type: string
|
|
5141
|
+
entityType:
|
|
5142
|
+
type: string
|
|
5143
|
+
required:
|
|
5144
|
+
- channel
|
|
5145
|
+
- organization
|
|
5146
|
+
- entityType
|
|
5147
|
+
OrganizationSchemasChannel:
|
|
5148
|
+
type: object
|
|
5149
|
+
description: Subscription channel for all entity schemas in an organization.
|
|
5150
|
+
properties:
|
|
5151
|
+
channel:
|
|
5152
|
+
type: string
|
|
5153
|
+
enum:
|
|
5154
|
+
- organization-schemas
|
|
5155
|
+
organization:
|
|
5156
|
+
type: string
|
|
4856
5157
|
required:
|
|
4857
5158
|
- channel
|
|
4858
5159
|
- organization
|
|
@@ -4894,6 +5195,10 @@ components:
|
|
|
4894
5195
|
$ref: "#/components/schemas/CustomFieldDescription"
|
|
4895
5196
|
type:
|
|
4896
5197
|
$ref: "#/components/schemas/CustomFieldType"
|
|
5198
|
+
placeholder:
|
|
5199
|
+
$ref: "#/components/schemas/CustomFieldPlaceholder"
|
|
5200
|
+
options:
|
|
5201
|
+
$ref: "#/components/schemas/CustomFieldOptions"
|
|
4897
5202
|
createdAt:
|
|
4898
5203
|
$ref: "#/components/schemas/Date"
|
|
4899
5204
|
updatedAt:
|
|
@@ -4913,13 +5218,14 @@ components:
|
|
|
4913
5218
|
- name
|
|
4914
5219
|
- title
|
|
4915
5220
|
- description
|
|
5221
|
+
- placeholder
|
|
4916
5222
|
- type
|
|
4917
5223
|
- createdAt
|
|
4918
5224
|
- updatedAt
|
|
4919
5225
|
- urls
|
|
4920
5226
|
CustomFieldName:
|
|
4921
5227
|
type: string
|
|
4922
|
-
pattern: ^[a-
|
|
5228
|
+
pattern: ^[a-z_\-0-9]+$
|
|
4923
5229
|
minLength: 1
|
|
4924
5230
|
maxLength: 50
|
|
4925
5231
|
CustomFieldTitle:
|
|
@@ -4934,12 +5240,19 @@ components:
|
|
|
4934
5240
|
- text
|
|
4935
5241
|
- number
|
|
4936
5242
|
- boolean
|
|
5243
|
+
- tags
|
|
5244
|
+
- select:multi
|
|
5245
|
+
- select:single
|
|
4937
5246
|
CustomFieldValue:
|
|
4938
5247
|
oneOf:
|
|
4939
5248
|
- type: string
|
|
4940
5249
|
maxLength: 256
|
|
4941
5250
|
- type: number
|
|
4942
5251
|
- type: boolean
|
|
5252
|
+
- type: array
|
|
5253
|
+
items:
|
|
5254
|
+
type: string
|
|
5255
|
+
maxLength: 256
|
|
4943
5256
|
CustomFieldValues:
|
|
4944
5257
|
type: array
|
|
4945
5258
|
items:
|
|
@@ -4967,6 +5280,17 @@ components:
|
|
|
4967
5280
|
- value
|
|
4968
5281
|
required:
|
|
4969
5282
|
- values
|
|
5283
|
+
CustomFieldOptions:
|
|
5284
|
+
type: array
|
|
5285
|
+
minItems: 1
|
|
5286
|
+
maxItems: 50
|
|
5287
|
+
items:
|
|
5288
|
+
type: string
|
|
5289
|
+
minLength: 1
|
|
5290
|
+
maxLength: 40
|
|
5291
|
+
CustomFieldPlaceholder:
|
|
5292
|
+
type: string
|
|
5293
|
+
maxLength: 100
|
|
4970
5294
|
Environment:
|
|
4971
5295
|
type: object
|
|
4972
5296
|
description: An environment
|
|
@@ -7055,136 +7379,6 @@ paths:
|
|
|
7055
7379
|
description: Custom fields updated
|
|
7056
7380
|
default:
|
|
7057
7381
|
$ref: "#/components/responses/UnexpectedError"
|
|
7058
|
-
"/spaces/{spaceId}/entities":
|
|
7059
|
-
get:
|
|
7060
|
-
operationId: listSpaceEntities
|
|
7061
|
-
summary: List all entities linked to a space
|
|
7062
|
-
tags:
|
|
7063
|
-
- spaces
|
|
7064
|
-
parameters:
|
|
7065
|
-
- $ref: "#/components/parameters/spaceId"
|
|
7066
|
-
- $ref: "#/components/parameters/listPage"
|
|
7067
|
-
- $ref: "#/components/parameters/listLimit"
|
|
7068
|
-
responses:
|
|
7069
|
-
"200":
|
|
7070
|
-
description: OK
|
|
7071
|
-
content:
|
|
7072
|
-
application/json:
|
|
7073
|
-
schema:
|
|
7074
|
-
allOf:
|
|
7075
|
-
- $ref: "#/components/schemas/List"
|
|
7076
|
-
- type: object
|
|
7077
|
-
required:
|
|
7078
|
-
- items
|
|
7079
|
-
properties:
|
|
7080
|
-
items:
|
|
7081
|
-
type: array
|
|
7082
|
-
items:
|
|
7083
|
-
$ref: "#/components/schemas/SpaceEntity"
|
|
7084
|
-
default:
|
|
7085
|
-
$ref: "#/components/responses/UnexpectedError"
|
|
7086
|
-
post:
|
|
7087
|
-
operationId: addSpaceEntities
|
|
7088
|
-
summary: Link the space to entities
|
|
7089
|
-
tags:
|
|
7090
|
-
- spaces
|
|
7091
|
-
parameters:
|
|
7092
|
-
- $ref: "#/components/parameters/spaceId"
|
|
7093
|
-
requestBody:
|
|
7094
|
-
required: true
|
|
7095
|
-
content:
|
|
7096
|
-
application/json:
|
|
7097
|
-
schema:
|
|
7098
|
-
type: object
|
|
7099
|
-
required:
|
|
7100
|
-
- entities
|
|
7101
|
-
properties:
|
|
7102
|
-
entities:
|
|
7103
|
-
type: array
|
|
7104
|
-
description: Array of entities to link to the space
|
|
7105
|
-
minItems: 1
|
|
7106
|
-
maxItems: 10
|
|
7107
|
-
items:
|
|
7108
|
-
type: object
|
|
7109
|
-
properties:
|
|
7110
|
-
integration:
|
|
7111
|
-
type: string
|
|
7112
|
-
description: ID of the integration owning the entity
|
|
7113
|
-
entityId:
|
|
7114
|
-
type: string
|
|
7115
|
-
description: ID of the entity in the integration
|
|
7116
|
-
environments:
|
|
7117
|
-
type: array
|
|
7118
|
-
description: Environments the entity is linked to
|
|
7119
|
-
items:
|
|
7120
|
-
type: string
|
|
7121
|
-
required:
|
|
7122
|
-
- integration
|
|
7123
|
-
- entityId
|
|
7124
|
-
- environments
|
|
7125
|
-
responses:
|
|
7126
|
-
"204":
|
|
7127
|
-
description: OK
|
|
7128
|
-
default:
|
|
7129
|
-
$ref: "#/components/responses/UnexpectedError"
|
|
7130
|
-
"/spaces/{spaceId}/entities/{integrationName}/{entityId}":
|
|
7131
|
-
get:
|
|
7132
|
-
operationId: getSpaceEntity
|
|
7133
|
-
summary: Get a space entity
|
|
7134
|
-
tags:
|
|
7135
|
-
- spaces
|
|
7136
|
-
parameters:
|
|
7137
|
-
- $ref: "#/components/parameters/spaceId"
|
|
7138
|
-
- $ref: "#/components/parameters/integrationName"
|
|
7139
|
-
- $ref: "#/components/parameters/entityId"
|
|
7140
|
-
responses:
|
|
7141
|
-
"200":
|
|
7142
|
-
description: OK
|
|
7143
|
-
content:
|
|
7144
|
-
application/json:
|
|
7145
|
-
schema:
|
|
7146
|
-
$ref: "#/components/schemas/SpaceEntity"
|
|
7147
|
-
default:
|
|
7148
|
-
$ref: "#/components/responses/UnexpectedError"
|
|
7149
|
-
patch:
|
|
7150
|
-
operationId: updateSpaceEntity
|
|
7151
|
-
summary: Update a space entity
|
|
7152
|
-
tags:
|
|
7153
|
-
- spaces
|
|
7154
|
-
parameters:
|
|
7155
|
-
- $ref: "#/components/parameters/spaceId"
|
|
7156
|
-
- $ref: "#/components/parameters/integrationName"
|
|
7157
|
-
- $ref: "#/components/parameters/entityId"
|
|
7158
|
-
requestBody:
|
|
7159
|
-
required: true
|
|
7160
|
-
content:
|
|
7161
|
-
application/json:
|
|
7162
|
-
schema:
|
|
7163
|
-
type: object
|
|
7164
|
-
required:
|
|
7165
|
-
- environments
|
|
7166
|
-
properties:
|
|
7167
|
-
environments:
|
|
7168
|
-
$ref: "#/components/schemas/SpaceEntityEnvironments"
|
|
7169
|
-
responses:
|
|
7170
|
-
"204":
|
|
7171
|
-
description: Space entity has been updated
|
|
7172
|
-
default:
|
|
7173
|
-
$ref: "#/components/responses/UnexpectedError"
|
|
7174
|
-
delete:
|
|
7175
|
-
operationId: deleteSpaceEntity
|
|
7176
|
-
summary: Delete a space entity
|
|
7177
|
-
tags:
|
|
7178
|
-
- spaces
|
|
7179
|
-
parameters:
|
|
7180
|
-
- $ref: "#/components/parameters/spaceId"
|
|
7181
|
-
- $ref: "#/components/parameters/integrationName"
|
|
7182
|
-
- $ref: "#/components/parameters/entityId"
|
|
7183
|
-
responses:
|
|
7184
|
-
"204":
|
|
7185
|
-
description: Space entity has been deleted
|
|
7186
|
-
default:
|
|
7187
|
-
$ref: "#/components/responses/UnexpectedError"
|
|
7188
7382
|
"/collections/{collectionId}":
|
|
7189
7383
|
get:
|
|
7190
7384
|
operationId: getCollectionById
|
|
@@ -7692,6 +7886,40 @@ paths:
|
|
|
7692
7886
|
application/json:
|
|
7693
7887
|
schema:
|
|
7694
7888
|
$ref: "#/components/schemas/RequestRenderIntegrationUI"
|
|
7889
|
+
"/integrations/{integrationName}/tasks":
|
|
7890
|
+
post:
|
|
7891
|
+
operationId: queueIntegrationTask
|
|
7892
|
+
summary: Queue a task for an integration to be executed later
|
|
7893
|
+
tags:
|
|
7894
|
+
- integrations
|
|
7895
|
+
security:
|
|
7896
|
+
- integration: []
|
|
7897
|
+
parameters:
|
|
7898
|
+
- $ref: "#/components/parameters/integrationName"
|
|
7899
|
+
requestBody:
|
|
7900
|
+
required: true
|
|
7901
|
+
content:
|
|
7902
|
+
application/json:
|
|
7903
|
+
schema:
|
|
7904
|
+
type: object
|
|
7905
|
+
properties:
|
|
7906
|
+
task:
|
|
7907
|
+
type: object
|
|
7908
|
+
description: Payload for the integration task
|
|
7909
|
+
schedule:
|
|
7910
|
+
type: number
|
|
7911
|
+
description: Number of seconds to wait before executing the task, defaults to 0
|
|
7912
|
+
minimum: 0
|
|
7913
|
+
maximum: 86400
|
|
7914
|
+
required:
|
|
7915
|
+
- task
|
|
7916
|
+
responses:
|
|
7917
|
+
"204":
|
|
7918
|
+
description: Integration task created successfully
|
|
7919
|
+
"404":
|
|
7920
|
+
$ref: "#/components/responses/NotFoundError"
|
|
7921
|
+
default:
|
|
7922
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
7695
7923
|
"/integrations/{integrationName}/installations/{installationId}":
|
|
7696
7924
|
get:
|
|
7697
7925
|
operationId: getIntegrationInstallationById
|
|
@@ -7817,6 +8045,26 @@ paths:
|
|
|
7817
8045
|
default:
|
|
7818
8046
|
$ref: "#/components/responses/UnexpectedError"
|
|
7819
8047
|
"/integrations/{integrationName}/installations/{installationId}/spaces/{spaceId}":
|
|
8048
|
+
get:
|
|
8049
|
+
operationId: getIntegrationSpaceInstallation
|
|
8050
|
+
summary: Get a specific integration's space installation
|
|
8051
|
+
tags:
|
|
8052
|
+
- integrations
|
|
8053
|
+
parameters:
|
|
8054
|
+
- $ref: "#/components/parameters/integrationName"
|
|
8055
|
+
- $ref: "#/components/parameters/installationId"
|
|
8056
|
+
- $ref: "#/components/parameters/spaceId"
|
|
8057
|
+
responses:
|
|
8058
|
+
"200":
|
|
8059
|
+
description: Integration space installation
|
|
8060
|
+
content:
|
|
8061
|
+
application/json:
|
|
8062
|
+
schema:
|
|
8063
|
+
$ref: "#/components/schemas/IntegrationSpaceInstallation"
|
|
8064
|
+
"404":
|
|
8065
|
+
$ref: "#/components/responses/NotFoundError"
|
|
8066
|
+
default:
|
|
8067
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
7820
8068
|
patch:
|
|
7821
8069
|
operationId: updateIntegrationSpaceInstallation
|
|
7822
8070
|
summary: Update external IDs and configurations of an integration's installation for a space
|
|
@@ -7851,69 +8099,6 @@ paths:
|
|
|
7851
8099
|
description: The space installation has been deleted.
|
|
7852
8100
|
default:
|
|
7853
8101
|
$ref: "#/components/responses/UnexpectedError"
|
|
7854
|
-
"/integrations/{integrationName}/installations/{installationId}/entities":
|
|
7855
|
-
get:
|
|
7856
|
-
operationId: getIntegrationEntities
|
|
7857
|
-
summary: List entities managed by an integration in an installation.
|
|
7858
|
-
tags:
|
|
7859
|
-
- integrations
|
|
7860
|
-
security:
|
|
7861
|
-
- integration-installation: []
|
|
7862
|
-
parameters:
|
|
7863
|
-
- $ref: "#/components/parameters/integrationName"
|
|
7864
|
-
- $ref: "#/components/parameters/installationId"
|
|
7865
|
-
responses:
|
|
7866
|
-
"200":
|
|
7867
|
-
description: Entity
|
|
7868
|
-
content:
|
|
7869
|
-
application/json:
|
|
7870
|
-
schema:
|
|
7871
|
-
allOf:
|
|
7872
|
-
- $ref: "#/components/schemas/List"
|
|
7873
|
-
- type: object
|
|
7874
|
-
required:
|
|
7875
|
-
- items
|
|
7876
|
-
properties:
|
|
7877
|
-
items:
|
|
7878
|
-
type: array
|
|
7879
|
-
items:
|
|
7880
|
-
$ref: "#/components/schemas/IntegrationEntity"
|
|
7881
|
-
"404":
|
|
7882
|
-
$ref: "#/components/responses/NotFoundError"
|
|
7883
|
-
default:
|
|
7884
|
-
$ref: "#/components/responses/UnexpectedError"
|
|
7885
|
-
post:
|
|
7886
|
-
operationId: syncIntegrationEntities
|
|
7887
|
-
summary: Update all entities for an integration installation.
|
|
7888
|
-
description: Update all entities for an integration installation. Entities will be created and updated, missing entities will be deleted.
|
|
7889
|
-
tags:
|
|
7890
|
-
- integrations
|
|
7891
|
-
security:
|
|
7892
|
-
- integration-installation: []
|
|
7893
|
-
parameters:
|
|
7894
|
-
- $ref: "#/components/parameters/integrationName"
|
|
7895
|
-
- $ref: "#/components/parameters/installationId"
|
|
7896
|
-
requestBody:
|
|
7897
|
-
required: true
|
|
7898
|
-
content:
|
|
7899
|
-
application/json:
|
|
7900
|
-
schema:
|
|
7901
|
-
type: object
|
|
7902
|
-
required:
|
|
7903
|
-
- entities
|
|
7904
|
-
properties:
|
|
7905
|
-
entities:
|
|
7906
|
-
type: array
|
|
7907
|
-
description: Array of entities to synchronize. Entities will be created and updated, missing entities will be deleted.
|
|
7908
|
-
items:
|
|
7909
|
-
$ref: "#/components/schemas/UpsertIntegrationEntity"
|
|
7910
|
-
responses:
|
|
7911
|
-
"204":
|
|
7912
|
-
description: Entities have been updated
|
|
7913
|
-
"404":
|
|
7914
|
-
$ref: "#/components/responses/NotFoundError"
|
|
7915
|
-
default:
|
|
7916
|
-
$ref: "#/components/responses/UnexpectedError"
|
|
7917
8102
|
/orgs:
|
|
7918
8103
|
get:
|
|
7919
8104
|
operationId: listOrganizationsForAuthenticatedUser
|
|
@@ -9016,6 +9201,10 @@ paths:
|
|
|
9016
9201
|
$ref: "#/components/schemas/CustomFieldTitle"
|
|
9017
9202
|
description:
|
|
9018
9203
|
$ref: "#/components/schemas/CustomFieldDescription"
|
|
9204
|
+
placeholder:
|
|
9205
|
+
$ref: "#/components/schemas/CustomFieldPlaceholder"
|
|
9206
|
+
options:
|
|
9207
|
+
$ref: "#/components/schemas/CustomFieldOptions"
|
|
9019
9208
|
required:
|
|
9020
9209
|
- name
|
|
9021
9210
|
- type
|
|
@@ -9087,6 +9276,10 @@ paths:
|
|
|
9087
9276
|
$ref: "#/components/schemas/CustomFieldTitle"
|
|
9088
9277
|
description:
|
|
9089
9278
|
$ref: "#/components/schemas/CustomFieldDescription"
|
|
9279
|
+
placeholder:
|
|
9280
|
+
$ref: "#/components/schemas/CustomFieldPlaceholder"
|
|
9281
|
+
options:
|
|
9282
|
+
$ref: "#/components/schemas/CustomFieldOptions"
|
|
9090
9283
|
responses:
|
|
9091
9284
|
"200":
|
|
9092
9285
|
description: OK
|
|
@@ -9144,34 +9337,6 @@ paths:
|
|
|
9144
9337
|
$ref: "#/components/schemas/SpaceRelationPair"
|
|
9145
9338
|
default:
|
|
9146
9339
|
$ref: "#/components/responses/UnexpectedError"
|
|
9147
|
-
"/orgs/{organizationId}/entities":
|
|
9148
|
-
get:
|
|
9149
|
-
operationId: listEntitiesInOrganization
|
|
9150
|
-
summary: List all entities in an organization.
|
|
9151
|
-
tags:
|
|
9152
|
-
- spaces
|
|
9153
|
-
parameters:
|
|
9154
|
-
- $ref: "#/components/parameters/organizationId"
|
|
9155
|
-
- $ref: "#/components/parameters/listPage"
|
|
9156
|
-
- $ref: "#/components/parameters/listLimit"
|
|
9157
|
-
responses:
|
|
9158
|
-
"200":
|
|
9159
|
-
description: OK
|
|
9160
|
-
content:
|
|
9161
|
-
application/json:
|
|
9162
|
-
schema:
|
|
9163
|
-
allOf:
|
|
9164
|
-
- $ref: "#/components/schemas/List"
|
|
9165
|
-
- type: object
|
|
9166
|
-
required:
|
|
9167
|
-
- items
|
|
9168
|
-
properties:
|
|
9169
|
-
items:
|
|
9170
|
-
type: array
|
|
9171
|
-
items:
|
|
9172
|
-
$ref: "#/components/schemas/IntegrationEntity"
|
|
9173
|
-
default:
|
|
9174
|
-
$ref: "#/components/responses/UnexpectedError"
|
|
9175
9340
|
"/orgs/{organizationId}/environments":
|
|
9176
9341
|
get:
|
|
9177
9342
|
operationId: listEnvironments
|
|
@@ -9295,6 +9460,184 @@ paths:
|
|
|
9295
9460
|
description: Environment has been deleted
|
|
9296
9461
|
default:
|
|
9297
9462
|
$ref: "#/components/responses/UnexpectedError"
|
|
9463
|
+
"/orgs/{organizationId}/schemas":
|
|
9464
|
+
get:
|
|
9465
|
+
operationId: listEntitySchemas
|
|
9466
|
+
summary: List the entity schemas in an organization.
|
|
9467
|
+
tags:
|
|
9468
|
+
- organizations
|
|
9469
|
+
security:
|
|
9470
|
+
- user: []
|
|
9471
|
+
parameters:
|
|
9472
|
+
- $ref: "#/components/parameters/organizationId"
|
|
9473
|
+
- $ref: "#/components/parameters/listPage"
|
|
9474
|
+
- $ref: "#/components/parameters/listLimit"
|
|
9475
|
+
responses:
|
|
9476
|
+
"200":
|
|
9477
|
+
description: OK
|
|
9478
|
+
content:
|
|
9479
|
+
application/json:
|
|
9480
|
+
schema:
|
|
9481
|
+
allOf:
|
|
9482
|
+
- $ref: "#/components/schemas/List"
|
|
9483
|
+
- type: object
|
|
9484
|
+
required:
|
|
9485
|
+
- items
|
|
9486
|
+
properties:
|
|
9487
|
+
items:
|
|
9488
|
+
type: array
|
|
9489
|
+
items:
|
|
9490
|
+
$ref: "#/components/schemas/EntitySchema"
|
|
9491
|
+
default:
|
|
9492
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
9493
|
+
"/orgs/{organizationId}/schemas/{entityType}":
|
|
9494
|
+
get:
|
|
9495
|
+
operationId: getEntitySchema
|
|
9496
|
+
summary: Get an entity schema by its type.
|
|
9497
|
+
tags:
|
|
9498
|
+
- organizations
|
|
9499
|
+
security:
|
|
9500
|
+
- user: []
|
|
9501
|
+
parameters:
|
|
9502
|
+
- $ref: "#/components/parameters/organizationId"
|
|
9503
|
+
- $ref: "#/components/parameters/entityType"
|
|
9504
|
+
responses:
|
|
9505
|
+
"200":
|
|
9506
|
+
description: OK
|
|
9507
|
+
content:
|
|
9508
|
+
application/json:
|
|
9509
|
+
schema:
|
|
9510
|
+
$ref: "#/components/schemas/EntitySchema"
|
|
9511
|
+
default:
|
|
9512
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
9513
|
+
put:
|
|
9514
|
+
operationId: setEntitySchema
|
|
9515
|
+
summary: Create or update an entity schema.
|
|
9516
|
+
tags:
|
|
9517
|
+
- organizations
|
|
9518
|
+
security:
|
|
9519
|
+
- user: []
|
|
9520
|
+
parameters:
|
|
9521
|
+
- $ref: "#/components/parameters/organizationId"
|
|
9522
|
+
- $ref: "#/components/parameters/entityType"
|
|
9523
|
+
requestBody:
|
|
9524
|
+
required: true
|
|
9525
|
+
content:
|
|
9526
|
+
application/json:
|
|
9527
|
+
schema:
|
|
9528
|
+
$ref: "#/components/schemas/EntityRawSchema"
|
|
9529
|
+
responses:
|
|
9530
|
+
"204":
|
|
9531
|
+
description: OK
|
|
9532
|
+
default:
|
|
9533
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
9534
|
+
delete:
|
|
9535
|
+
operationId: deleteEntitySchema
|
|
9536
|
+
summary: Delete an entity schema.
|
|
9537
|
+
tags:
|
|
9538
|
+
- organizations
|
|
9539
|
+
security:
|
|
9540
|
+
- user: []
|
|
9541
|
+
parameters:
|
|
9542
|
+
- $ref: "#/components/parameters/organizationId"
|
|
9543
|
+
- $ref: "#/components/parameters/entityType"
|
|
9544
|
+
responses:
|
|
9545
|
+
"204":
|
|
9546
|
+
description: OK
|
|
9547
|
+
default:
|
|
9548
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
9549
|
+
"/orgs/{organizationId}/schemas/{entityType}/entities":
|
|
9550
|
+
get:
|
|
9551
|
+
operationId: listSchemaEntities
|
|
9552
|
+
summary: List entities in an organization for a given type.
|
|
9553
|
+
tags:
|
|
9554
|
+
- organizations
|
|
9555
|
+
security:
|
|
9556
|
+
- user: []
|
|
9557
|
+
parameters:
|
|
9558
|
+
- $ref: "#/components/parameters/organizationId"
|
|
9559
|
+
- $ref: "#/components/parameters/entityType"
|
|
9560
|
+
- $ref: "#/components/parameters/listPage"
|
|
9561
|
+
- $ref: "#/components/parameters/listLimit"
|
|
9562
|
+
- name: query
|
|
9563
|
+
in: query
|
|
9564
|
+
description: "Query to filter entities with, ex: a == 'something' && b >= 10"
|
|
9565
|
+
schema:
|
|
9566
|
+
type: string
|
|
9567
|
+
responses:
|
|
9568
|
+
"200":
|
|
9569
|
+
description: OK
|
|
9570
|
+
content:
|
|
9571
|
+
application/json:
|
|
9572
|
+
schema:
|
|
9573
|
+
allOf:
|
|
9574
|
+
- $ref: "#/components/schemas/List"
|
|
9575
|
+
- type: object
|
|
9576
|
+
required:
|
|
9577
|
+
- items
|
|
9578
|
+
properties:
|
|
9579
|
+
items:
|
|
9580
|
+
type: array
|
|
9581
|
+
items:
|
|
9582
|
+
$ref: "#/components/schemas/Entity"
|
|
9583
|
+
default:
|
|
9584
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
9585
|
+
put:
|
|
9586
|
+
operationId: upsertSchemaEntities
|
|
9587
|
+
summary: Update/Create/Delete entities in a schema.
|
|
9588
|
+
tags:
|
|
9589
|
+
- organizations
|
|
9590
|
+
security:
|
|
9591
|
+
- user: []
|
|
9592
|
+
parameters:
|
|
9593
|
+
- $ref: "#/components/parameters/organizationId"
|
|
9594
|
+
- $ref: "#/components/parameters/entityType"
|
|
9595
|
+
requestBody:
|
|
9596
|
+
required: true
|
|
9597
|
+
content:
|
|
9598
|
+
application/json:
|
|
9599
|
+
schema:
|
|
9600
|
+
type: object
|
|
9601
|
+
properties:
|
|
9602
|
+
delete:
|
|
9603
|
+
oneOf:
|
|
9604
|
+
- type: boolean
|
|
9605
|
+
description: If true, all entities not listed in the requests will be deleted
|
|
9606
|
+
- type: array
|
|
9607
|
+
description: List of entityIds to delete
|
|
9608
|
+
items:
|
|
9609
|
+
$ref: "#/components/schemas/EntityId"
|
|
9610
|
+
entities:
|
|
9611
|
+
type: array
|
|
9612
|
+
description: Array of entities to create/update.
|
|
9613
|
+
items:
|
|
9614
|
+
$ref: "#/components/schemas/UpsertEntity"
|
|
9615
|
+
responses:
|
|
9616
|
+
"204":
|
|
9617
|
+
description: OK
|
|
9618
|
+
default:
|
|
9619
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
9620
|
+
"/orgs/{organizationId}/schemas/{entityType}/entities/{entityId}":
|
|
9621
|
+
get:
|
|
9622
|
+
operationId: getEntity
|
|
9623
|
+
summary: Get an entity using its ID.
|
|
9624
|
+
tags:
|
|
9625
|
+
- organizations
|
|
9626
|
+
security:
|
|
9627
|
+
- user: []
|
|
9628
|
+
parameters:
|
|
9629
|
+
- $ref: "#/components/parameters/organizationId"
|
|
9630
|
+
- $ref: "#/components/parameters/entityType"
|
|
9631
|
+
- $ref: "#/components/parameters/entityId"
|
|
9632
|
+
responses:
|
|
9633
|
+
"200":
|
|
9634
|
+
description: OK
|
|
9635
|
+
content:
|
|
9636
|
+
application/json:
|
|
9637
|
+
schema:
|
|
9638
|
+
$ref: "#/components/schemas/Entity"
|
|
9639
|
+
default:
|
|
9640
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
9298
9641
|
"/orgs/{organizationId}/recordings":
|
|
9299
9642
|
get:
|
|
9300
9643
|
operationId: listRecordings
|
|
@@ -9445,7 +9788,17 @@ paths:
|
|
|
9445
9788
|
content:
|
|
9446
9789
|
application/json:
|
|
9447
9790
|
schema:
|
|
9448
|
-
|
|
9791
|
+
type: object
|
|
9792
|
+
properties:
|
|
9793
|
+
recording:
|
|
9794
|
+
$ref: "#/components/schemas/RecordingOutput"
|
|
9795
|
+
followupQuestions:
|
|
9796
|
+
description: Example questions that would be answered by the content of this recording.
|
|
9797
|
+
type: array
|
|
9798
|
+
items:
|
|
9799
|
+
type: string
|
|
9800
|
+
required:
|
|
9801
|
+
- recording
|
|
9449
9802
|
default:
|
|
9450
9803
|
$ref: "#/components/responses/UnexpectedError"
|
|
9451
9804
|
/internal/hive/token:
|