@gitbook/api 0.6.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/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
- type: string
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:
@@ -2363,6 +2346,9 @@ components:
2363
2346
  name:
2364
2347
  type: string
2365
2348
  description: Unique named identifier for the integration
2349
+ version:
2350
+ type: number
2351
+ description: Version of the integration
2366
2352
  title:
2367
2353
  $ref: "#/components/schemas/IntegrationTitle"
2368
2354
  description:
@@ -2416,6 +2402,7 @@ components:
2416
2402
  required:
2417
2403
  - object
2418
2404
  - name
2405
+ - version
2419
2406
  - title
2420
2407
  - scopes
2421
2408
  - categories
@@ -2444,7 +2431,7 @@ components:
2444
2431
  IntegrationScope:
2445
2432
  type: string
2446
2433
  enum:
2447
- - organization:entities:write
2434
+ - entities:write
2448
2435
  - recording:write
2449
2436
  - space:views:read
2450
2437
  - space:content:read
@@ -2726,6 +2713,12 @@ components:
2726
2713
  type: object
2727
2714
  description: Installation of an integration at a space level
2728
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
2729
2722
  space:
2730
2723
  description: ID of the space the integration is installed on.
2731
2724
  type: string
@@ -2747,6 +2740,8 @@ components:
2747
2740
  required:
2748
2741
  - publicEndpoint
2749
2742
  required:
2743
+ - integration
2744
+ - installation
2750
2745
  - space
2751
2746
  - status
2752
2747
  - configuration
@@ -2899,56 +2894,244 @@ components:
2899
2894
  type: array
2900
2895
  items:
2901
2896
  $ref: "#/components/schemas/IntegrationBlock"
2902
- UpsertIntegrationEntity:
2897
+ UpsertEntity:
2903
2898
  type: object
2904
2899
  description: Entity to create or update in an integration's installation.
2905
2900
  properties:
2906
2901
  entityId:
2907
- type: string
2908
- description: Unique ID of the entity in the context of the integration's installation
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:
2902
+ $ref: "#/components/schemas/EntityId"
2903
+ properties:
2924
2904
  type: object
2925
- description: Metadata stored by the integration on the entity
2905
+ description: Map of values stored as properties on the entity
2926
2906
  additionalProperties:
2927
2907
  oneOf:
2928
2908
  - type: string
2929
2909
  - type: number
2930
2910
  - type: boolean
2911
+ - type: object
2912
+ properties:
2913
+ entityId:
2914
+ type: string
2915
+ required:
2916
+ - entityId
2931
2917
  required:
2932
2918
  - entityId
2933
- - title
2934
- - description
2935
- - metadata
2936
- - target
2937
- IntegrationEntity:
2919
+ - properties
2920
+ Entity:
2938
2921
  allOf:
2939
- - $ref: "#/components/schemas/UpsertIntegrationEntity"
2922
+ - $ref: "#/components/schemas/UpsertEntity"
2940
2923
  - type: object
2941
- description: Entity created and managed by an integration, representing a resource on an external service.
2924
+ description: Entity created and managed by an integration, representing an external element.
2942
2925
  properties:
2943
2926
  id:
2944
2927
  type: string
2945
2928
  description: Unique ID for the entity in GitBook
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
2941
+ required:
2942
+ - id
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:
2959
+ type: object
2960
+ description: Schema for a type of entities
2961
+ properties:
2962
+ type:
2963
+ $ref: "#/components/schemas/EntityType"
2964
+ title:
2965
+ type: object
2966
+ description: Title of the entity type
2967
+ properties:
2968
+ singular:
2969
+ $ref: "#/components/schemas/EntitySchemaTitle"
2970
+ plural:
2971
+ $ref: "#/components/schemas/EntitySchemaTitle"
2972
+ required:
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:
2985
+ allOf:
2986
+ - $ref: "#/components/schemas/EntityRawSchema"
2987
+ - type: object
2988
+ properties:
2989
+ entities:
2990
+ description: Count of entities created in this schema.
2991
+ type: number
2946
2992
  integration:
2993
+ description: Integration managing this schema.
2994
+ $ref: "#/components/schemas/Integration"
2995
+ urls:
2996
+ type: object
2997
+ description: URLs associated with the object
2998
+ properties:
2999
+ location:
3000
+ type: string
3001
+ description: URL of the entity schema in the API
3002
+ format: uri
3003
+ required:
3004
+ - location
3005
+ required:
3006
+ - entities
3007
+ - urls
3008
+ EntityPropertySchema:
3009
+ allOf:
3010
+ - type: object
3011
+ properties:
3012
+ name:
3013
+ type: string
3014
+ description: Name of the property in the object
3015
+ title:
2947
3016
  type: string
2948
- description: ID of the integration.
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
2949
3024
  required:
2950
- - id
2951
- - integration
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
2952
3135
  Event:
2953
3136
  description: Any event that can be received from GitBook.
2954
3137
  oneOf:
@@ -4259,9 +4442,11 @@ components:
4259
4442
  required:
4260
4443
  - url
4261
4444
  children:
4262
- type: array
4263
- items:
4264
- type: string
4445
+ oneOf:
4446
+ - type: string
4447
+ - type: array
4448
+ items:
4449
+ type: string
4265
4450
  required:
4266
4451
  - type
4267
4452
  - target
@@ -4529,6 +4714,7 @@ components:
4529
4714
  - $ref: "#/components/schemas/OrganizationSpaceRelationsChannel"
4530
4715
  - $ref: "#/components/schemas/OrganizationSpacesChannel"
4531
4716
  - $ref: "#/components/schemas/OrganizationEntitiesChannel"
4717
+ - $ref: "#/components/schemas/OrganizationSchemasChannel"
4532
4718
  - $ref: "#/components/schemas/OrganizationRecordingsChannel"
4533
4719
  - type: object
4534
4720
  properties:
@@ -4845,7 +5031,7 @@ components:
4845
5031
  - organization
4846
5032
  OrganizationEntitiesChannel:
4847
5033
  type: object
4848
- description: Subscription channel for all integration entities in an organization.
5034
+ description: Subscription channel for entities in an organization.
4849
5035
  properties:
4850
5036
  channel:
4851
5037
  type: string
@@ -4853,6 +5039,22 @@ components:
4853
5039
  - organization-entities
4854
5040
  organization:
4855
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
4856
5058
  required:
4857
5059
  - channel
4858
5060
  - organization
@@ -4934,12 +5136,17 @@ components:
4934
5136
  - text
4935
5137
  - number
4936
5138
  - boolean
5139
+ - tags
4937
5140
  CustomFieldValue:
4938
5141
  oneOf:
4939
5142
  - type: string
4940
5143
  maxLength: 256
4941
5144
  - type: number
4942
5145
  - type: boolean
5146
+ - type: array
5147
+ items:
5148
+ type: string
5149
+ maxLength: 256
4943
5150
  CustomFieldValues:
4944
5151
  type: array
4945
5152
  items:
@@ -7055,164 +7262,34 @@ paths:
7055
7262
  description: Custom fields updated
7056
7263
  default:
7057
7264
  $ref: "#/components/responses/UnexpectedError"
7058
- "/spaces/{spaceId}/entities":
7265
+ "/collections/{collectionId}":
7059
7266
  get:
7060
- operationId: listSpaceEntities
7061
- summary: List all entities linked to a space
7267
+ operationId: getCollectionById
7268
+ summary: Get the details about a collection using its ID
7062
7269
  tags:
7063
- - spaces
7270
+ - collections
7271
+ security:
7272
+ - user: []
7064
7273
  parameters:
7065
- - $ref: "#/components/parameters/spaceId"
7066
- - $ref: "#/components/parameters/listPage"
7067
- - $ref: "#/components/parameters/listLimit"
7274
+ - $ref: "#/components/parameters/collectionId"
7068
7275
  responses:
7069
7276
  "200":
7070
7277
  description: OK
7071
7278
  content:
7072
7279
  application/json:
7073
7280
  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"
7281
+ $ref: "#/components/schemas/Collection"
7084
7282
  default:
7085
7283
  $ref: "#/components/responses/UnexpectedError"
7086
- post:
7087
- operationId: addSpaceEntities
7088
- summary: Link the space to entities
7284
+ patch:
7285
+ operationId: updateCollectionById
7286
+ summary: Update the details of a collection
7089
7287
  tags:
7090
- - spaces
7288
+ - collections
7289
+ security:
7290
+ - user: []
7091
7291
  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
- "/collections/{collectionId}":
7189
- get:
7190
- operationId: getCollectionById
7191
- summary: Get the details about a collection using its ID
7192
- tags:
7193
- - collections
7194
- security:
7195
- - user: []
7196
- parameters:
7197
- - $ref: "#/components/parameters/collectionId"
7198
- responses:
7199
- "200":
7200
- description: OK
7201
- content:
7202
- application/json:
7203
- schema:
7204
- $ref: "#/components/schemas/Collection"
7205
- default:
7206
- $ref: "#/components/responses/UnexpectedError"
7207
- patch:
7208
- operationId: updateCollectionById
7209
- summary: Update the details of a collection
7210
- tags:
7211
- - collections
7212
- security:
7213
- - user: []
7214
- parameters:
7215
- - $ref: "#/components/parameters/collectionId"
7292
+ - $ref: "#/components/parameters/collectionId"
7216
7293
  requestBody:
7217
7294
  required: true
7218
7295
  content:
@@ -7817,6 +7894,26 @@ paths:
7817
7894
  default:
7818
7895
  $ref: "#/components/responses/UnexpectedError"
7819
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"
7820
7917
  patch:
7821
7918
  operationId: updateIntegrationSpaceInstallation
7822
7919
  summary: Update external IDs and configurations of an integration's installation for a space
@@ -7851,69 +7948,6 @@ paths:
7851
7948
  description: The space installation has been deleted.
7852
7949
  default:
7853
7950
  $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
7951
  /orgs:
7918
7952
  get:
7919
7953
  operationId: listOrganizationsForAuthenticatedUser
@@ -9144,34 +9178,6 @@ paths:
9144
9178
  $ref: "#/components/schemas/SpaceRelationPair"
9145
9179
  default:
9146
9180
  $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
9181
  "/orgs/{organizationId}/environments":
9176
9182
  get:
9177
9183
  operationId: listEnvironments
@@ -9295,6 +9301,186 @@ paths:
9295
9301
  description: Environment has been deleted
9296
9302
  default:
9297
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"
9298
9484
  "/orgs/{organizationId}/recordings":
9299
9485
  get:
9300
9486
  operationId: listRecordings
@@ -9445,7 +9631,17 @@ paths:
9445
9631
  content:
9446
9632
  application/json:
9447
9633
  schema:
9448
- $ref: "#/components/schemas/RecordingOutput"
9634
+ type: object
9635
+ properties:
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
9643
+ required:
9644
+ - recording
9449
9645
  default:
9450
9646
  $ref: "#/components/responses/UnexpectedError"
9451
9647
  /internal/hive/token: