@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/spec/openapi.json CHANGED
@@ -33,6 +33,9 @@
33
33
  },
34
34
  {
35
35
  "integration": []
36
+ },
37
+ {
38
+ "integration-installation": []
36
39
  }
37
40
  ],
38
41
  "components": {
@@ -52,6 +55,10 @@
52
55
  "integration": {
53
56
  "type": "http",
54
57
  "scheme": "bearer"
58
+ },
59
+ "integration-installation": {
60
+ "type": "http",
61
+ "scheme": "bearer"
55
62
  }
56
63
  },
57
64
  "parameters": {
@@ -247,7 +254,16 @@
247
254
  "required": true,
248
255
  "description": "ID of the entity in the space",
249
256
  "schema": {
250
- "type": "string"
257
+ "$ref": "#/components/schemas/EntityId"
258
+ }
259
+ },
260
+ "entityType": {
261
+ "name": "entityType",
262
+ "in": "path",
263
+ "required": true,
264
+ "description": "Type of the entity",
265
+ "schema": {
266
+ "$ref": "#/components/schemas/EntityType"
251
267
  }
252
268
  },
253
269
  "environmentName": {
@@ -479,6 +495,13 @@
479
495
  },
480
496
  "contentSecurityPolicy": {
481
497
  "$ref": "#/components/schemas/IntegrationContentSecurityPolicy"
498
+ },
499
+ "entities": {
500
+ "type": "array",
501
+ "maxItems": 100,
502
+ "items": {
503
+ "$ref": "#/components/schemas/EntityRawSchema"
504
+ }
482
505
  }
483
506
  },
484
507
  "required": [
@@ -1527,47 +1550,7 @@
1527
1550
  }
1528
1551
  ]
1529
1552
  },
1530
- "SpaceEntityEnvironments": {
1531
- "type": "array",
1532
- "description": "Environments the entity is linked to",
1533
- "minItems": 1,
1534
- "maxItems": 100,
1535
- "items": {
1536
- "type": "string"
1537
- }
1538
- },
1539
- "SpaceEntity": {
1540
- "type": "object",
1541
- "description": "Link between an integration entity and a space.",
1542
- "properties": {
1543
- "entity": {
1544
- "$ref": "#/components/schemas/IntegrationEntity"
1545
- },
1546
- "environments": {
1547
- "$ref": "#/components/schemas/SpaceEntityEnvironments"
1548
- },
1549
- "urls": {
1550
- "type": "object",
1551
- "description": "URLs associated with the object",
1552
- "properties": {
1553
- "location": {
1554
- "type": "string",
1555
- "description": "URL of the space entity in the API",
1556
- "format": "uri"
1557
- }
1558
- },
1559
- "required": [
1560
- "location"
1561
- ]
1562
- }
1563
- },
1564
- "required": [
1565
- "entity",
1566
- "environments",
1567
- "urls"
1568
- ]
1569
- },
1570
- "Revision": {
1553
+ "RevisionBase": {
1571
1554
  "type": "object",
1572
1555
  "properties": {
1573
1556
  "object": {
@@ -1660,6 +1643,117 @@
1660
1643
  "urls"
1661
1644
  ]
1662
1645
  },
1646
+ "RevisionTypeMerge": {
1647
+ "allOf": [
1648
+ {
1649
+ "$ref": "#/components/schemas/RevisionBase"
1650
+ },
1651
+ {
1652
+ "type": "object",
1653
+ "properties": {
1654
+ "type": {
1655
+ "type": "string",
1656
+ "description": "Revision created when merging a change request with primary.",
1657
+ "enum": [
1658
+ "merge"
1659
+ ]
1660
+ },
1661
+ "mergedFrom": {
1662
+ "$ref": "#/components/schemas/ChangeRequest"
1663
+ }
1664
+ },
1665
+ "required": [
1666
+ "type",
1667
+ "mergedFrom"
1668
+ ]
1669
+ }
1670
+ ]
1671
+ },
1672
+ "RevisionTypeRollback": {
1673
+ "allOf": [
1674
+ {
1675
+ "$ref": "#/components/schemas/RevisionBase"
1676
+ },
1677
+ {
1678
+ "type": "object",
1679
+ "properties": {
1680
+ "type": {
1681
+ "type": "string",
1682
+ "description": "Revision created as a rollback of a previous revision.",
1683
+ "enum": [
1684
+ "rollback"
1685
+ ]
1686
+ }
1687
+ },
1688
+ "required": [
1689
+ "type"
1690
+ ]
1691
+ }
1692
+ ]
1693
+ },
1694
+ "RevisionTypeUpdate": {
1695
+ "allOf": [
1696
+ {
1697
+ "$ref": "#/components/schemas/RevisionBase"
1698
+ },
1699
+ {
1700
+ "type": "object",
1701
+ "properties": {
1702
+ "type": {
1703
+ "type": "string",
1704
+ "description": "Revision created when updating a change request with changes from primary.",
1705
+ "enum": [
1706
+ "update"
1707
+ ]
1708
+ }
1709
+ },
1710
+ "required": [
1711
+ "type"
1712
+ ]
1713
+ }
1714
+ ]
1715
+ },
1716
+ "RevisionTypeEdits": {
1717
+ "allOf": [
1718
+ {
1719
+ "$ref": "#/components/schemas/RevisionBase"
1720
+ },
1721
+ {
1722
+ "type": "object",
1723
+ "properties": {
1724
+ "type": {
1725
+ "type": "string",
1726
+ "description": "Revision created by editing the content.",
1727
+ "enum": [
1728
+ "edits"
1729
+ ]
1730
+ }
1731
+ },
1732
+ "required": [
1733
+ "type"
1734
+ ]
1735
+ }
1736
+ ]
1737
+ },
1738
+ "Revision": {
1739
+ "oneOf": [
1740
+ {
1741
+ "$ref": "#/components/schemas/RevisionTypeEdits"
1742
+ },
1743
+ {
1744
+ "$ref": "#/components/schemas/RevisionTypeMerge"
1745
+ },
1746
+ {
1747
+ "$ref": "#/components/schemas/RevisionTypeRollback"
1748
+ },
1749
+ {
1750
+ "$ref": "#/components/schemas/RevisionTypeUpdate"
1751
+ }
1752
+ ],
1753
+ "discriminator": {
1754
+ "propertyName": "type"
1755
+ }
1756
+ },
1663
1757
  "RevisionPage": {
1664
1758
  "oneOf": [
1665
1759
  {
@@ -2273,26 +2367,119 @@
2273
2367
  "Recording": {
2274
2368
  "type": "object",
2275
2369
  "properties": {
2370
+ "object": {
2371
+ "type": "string",
2372
+ "description": "Type of Object, always equals to \"recording\"",
2373
+ "enum": [
2374
+ "recording"
2375
+ ]
2376
+ },
2276
2377
  "id": {
2277
2378
  "type": "string",
2278
2379
  "description": "Unique identifier for the recording"
2279
2380
  },
2381
+ "title": {
2382
+ "$ref": "#/components/schemas/RecordingTitle"
2383
+ },
2280
2384
  "context": {
2281
2385
  "$ref": "#/components/schemas/RecordingContext"
2282
2386
  },
2283
- "startedAt": {
2387
+ "externalId": {
2388
+ "type": "string",
2389
+ "description": "ID in the original source of the recording."
2390
+ },
2391
+ "externalURL": {
2392
+ "type": "string",
2393
+ "format": "uri",
2394
+ "description": "URL of the source from which the recording originated"
2395
+ },
2396
+ "createdAt": {
2284
2397
  "type": "string",
2285
2398
  "format": "date-time"
2286
2399
  },
2287
2400
  "stoppedAt": {
2288
2401
  "type": "string",
2289
2402
  "format": "date-time"
2403
+ },
2404
+ "events": {
2405
+ "description": "Count of events recorded.",
2406
+ "properties": {
2407
+ "terminal.command": {
2408
+ "type": "integer"
2409
+ },
2410
+ "speech": {
2411
+ "type": "integer"
2412
+ }
2413
+ }
2414
+ },
2415
+ "contributors": {
2416
+ "type": "array",
2417
+ "minItems": 1,
2418
+ "items": {
2419
+ "oneOf": [
2420
+ {
2421
+ "$ref": "#/components/schemas/Integration"
2422
+ },
2423
+ {
2424
+ "$ref": "#/components/schemas/User"
2425
+ }
2426
+ ]
2427
+ }
2428
+ },
2429
+ "output": {
2430
+ "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.",
2431
+ "$ref": "#/components/schemas/RecordingOutput"
2432
+ },
2433
+ "urls": {
2434
+ "type": "object",
2435
+ "description": "URLs associated with the object",
2436
+ "properties": {
2437
+ "location": {
2438
+ "type": "string",
2439
+ "description": "URL of the recording in the API",
2440
+ "format": "uri"
2441
+ }
2442
+ },
2443
+ "required": [
2444
+ "location"
2445
+ ]
2290
2446
  }
2291
2447
  },
2292
2448
  "required": [
2449
+ "object",
2293
2450
  "id",
2451
+ "title",
2294
2452
  "context",
2295
- "startedAt"
2453
+ "events",
2454
+ "createdAt",
2455
+ "contributors",
2456
+ "urls"
2457
+ ]
2458
+ },
2459
+ "RecordingTitle": {
2460
+ "type": "string",
2461
+ "description": "Optional title describing the recording",
2462
+ "maxLength": 100
2463
+ },
2464
+ "RecordingOutput": {
2465
+ "type": "object",
2466
+ "properties": {
2467
+ "url": {
2468
+ "type": "string",
2469
+ "format": "uri",
2470
+ "description": "URL of the generated page"
2471
+ },
2472
+ "space": {
2473
+ "$ref": "#/components/schemas/Space"
2474
+ },
2475
+ "page": {
2476
+ "$ref": "#/components/schemas/RevisionPageDocument"
2477
+ }
2478
+ },
2479
+ "required": [
2480
+ "url",
2481
+ "space",
2482
+ "page"
2296
2483
  ]
2297
2484
  },
2298
2485
  "RecordingEvent": {
@@ -2306,11 +2493,15 @@
2306
2493
  ]
2307
2494
  },
2308
2495
  "RecordingContext": {
2309
- "type": "string",
2310
- "enum": [
2311
- "meeting",
2312
- "conversation",
2313
- "walkthrough"
2496
+ "oneOf": [
2497
+ {
2498
+ "type": "string",
2499
+ "enum": [
2500
+ "meeting",
2501
+ "conversation",
2502
+ "walkthrough"
2503
+ ]
2504
+ }
2314
2505
  ]
2315
2506
  },
2316
2507
  "BaseRecordingEvent": {
@@ -3167,6 +3358,10 @@
3167
3358
  "type": "string",
3168
3359
  "description": "Unique named identifier for the integration"
3169
3360
  },
3361
+ "version": {
3362
+ "type": "number",
3363
+ "description": "Version of the integration"
3364
+ },
3170
3365
  "title": {
3171
3366
  "$ref": "#/components/schemas/IntegrationTitle"
3172
3367
  },
@@ -3240,6 +3435,7 @@
3240
3435
  "required": [
3241
3436
  "object",
3242
3437
  "name",
3438
+ "version",
3243
3439
  "title",
3244
3440
  "scopes",
3245
3441
  "categories",
@@ -3275,7 +3471,8 @@
3275
3471
  "IntegrationScope": {
3276
3472
  "type": "string",
3277
3473
  "enum": [
3278
- "organization:entities:write",
3474
+ "entities:write",
3475
+ "recording:write",
3279
3476
  "space:views:read",
3280
3477
  "space:content:read",
3281
3478
  "space:content:write",
@@ -3686,6 +3883,14 @@
3686
3883
  "type": "object",
3687
3884
  "description": "Installation of an integration at a space level",
3688
3885
  "properties": {
3886
+ "integration": {
3887
+ "description": "Unique name identifier of the integration",
3888
+ "type": "string"
3889
+ },
3890
+ "installation": {
3891
+ "description": "ID of the integration installation",
3892
+ "type": "string"
3893
+ },
3689
3894
  "space": {
3690
3895
  "description": "ID of the space the integration is installed on.",
3691
3896
  "type": "string"
@@ -3716,6 +3921,8 @@
3716
3921
  }
3717
3922
  },
3718
3923
  "required": [
3924
+ "integration",
3925
+ "installation",
3719
3926
  "space",
3720
3927
  "status",
3721
3928
  "configuration",
@@ -3940,34 +4147,16 @@
3940
4147
  }
3941
4148
  }
3942
4149
  },
3943
- "UpsertIntegrationEntity": {
4150
+ "UpsertEntity": {
3944
4151
  "type": "object",
3945
4152
  "description": "Entity to create or update in an integration's installation.",
3946
4153
  "properties": {
3947
4154
  "entityId": {
3948
- "type": "string",
3949
- "description": "Unique ID of the entity in the context of the integration's installation"
3950
- },
3951
- "title": {
3952
- "type": "string",
3953
- "description": "Title of the entity",
3954
- "minLength": 1,
3955
- "maxLength": 60
3956
- },
3957
- "description": {
3958
- "type": "string",
3959
- "description": "Longer text description of the entity",
3960
- "minLength": 0,
3961
- "maxLength": 256
3962
- },
3963
- "target": {
3964
- "type": "string",
3965
- "description": "URL to open the entity",
3966
- "format": "uri"
4155
+ "$ref": "#/components/schemas/EntityId"
3967
4156
  },
3968
- "metadata": {
4157
+ "properties": {
3969
4158
  "type": "object",
3970
- "description": "Metadata stored by the integration on the entity",
4159
+ "description": "Map of values stored as properties on the entity",
3971
4160
  "additionalProperties": {
3972
4161
  "oneOf": [
3973
4162
  {
@@ -3978,6 +4167,17 @@
3978
4167
  },
3979
4168
  {
3980
4169
  "type": "boolean"
4170
+ },
4171
+ {
4172
+ "type": "object",
4173
+ "properties": {
4174
+ "entityId": {
4175
+ "type": "string"
4176
+ }
4177
+ },
4178
+ "required": [
4179
+ "entityId"
4180
+ ]
3981
4181
  }
3982
4182
  ]
3983
4183
  }
@@ -3985,35 +4185,347 @@
3985
4185
  },
3986
4186
  "required": [
3987
4187
  "entityId",
3988
- "title",
3989
- "description",
3990
- "metadata",
3991
- "target"
4188
+ "properties"
3992
4189
  ]
3993
4190
  },
3994
- "IntegrationEntity": {
4191
+ "Entity": {
3995
4192
  "allOf": [
3996
4193
  {
3997
- "$ref": "#/components/schemas/UpsertIntegrationEntity"
4194
+ "$ref": "#/components/schemas/UpsertEntity"
3998
4195
  },
3999
4196
  {
4000
4197
  "type": "object",
4001
- "description": "Entity created and managed by an integration, representing a resource on an external service.",
4198
+ "description": "Entity created and managed by an integration, representing an external element.",
4002
4199
  "properties": {
4003
4200
  "id": {
4004
4201
  "type": "string",
4005
4202
  "description": "Unique ID for the entity in GitBook"
4006
4203
  },
4007
- "integration": {
4008
- "type": "string",
4009
- "description": "ID of the integration."
4010
- }
4011
- },
4012
- "required": [
4013
- "id",
4014
- "integration"
4015
- ]
4016
- }
4204
+ "type": {
4205
+ "$ref": "#/components/schemas/EntityType"
4206
+ },
4207
+ "urls": {
4208
+ "type": "object",
4209
+ "description": "URLs associated with the object",
4210
+ "properties": {
4211
+ "location": {
4212
+ "type": "string",
4213
+ "description": "URL of the entity in the API",
4214
+ "format": "uri"
4215
+ }
4216
+ },
4217
+ "required": [
4218
+ "location"
4219
+ ]
4220
+ }
4221
+ },
4222
+ "required": [
4223
+ "id",
4224
+ "type",
4225
+ "urls"
4226
+ ]
4227
+ }
4228
+ ]
4229
+ },
4230
+ "EntityType": {
4231
+ "type": "string",
4232
+ "description": "Type of an entity",
4233
+ "minLength": 1,
4234
+ "maxLength": 64
4235
+ },
4236
+ "EntityId": {
4237
+ "type": "string",
4238
+ "description": "Unique ID of the entity in the context of the integration's entity type",
4239
+ "minLength": 1,
4240
+ "maxLength": 256
4241
+ },
4242
+ "EntitySchemaTitle": {
4243
+ "type": "string",
4244
+ "maxLength": 50
4245
+ },
4246
+ "EntityRawSchema": {
4247
+ "type": "object",
4248
+ "description": "Schema for a type of entities",
4249
+ "properties": {
4250
+ "type": {
4251
+ "$ref": "#/components/schemas/EntityType"
4252
+ },
4253
+ "title": {
4254
+ "type": "object",
4255
+ "description": "Title of the entity type",
4256
+ "properties": {
4257
+ "singular": {
4258
+ "$ref": "#/components/schemas/EntitySchemaTitle"
4259
+ },
4260
+ "plural": {
4261
+ "$ref": "#/components/schemas/EntitySchemaTitle"
4262
+ }
4263
+ },
4264
+ "required": [
4265
+ "singular",
4266
+ "plural"
4267
+ ]
4268
+ },
4269
+ "properties": {
4270
+ "type": "array",
4271
+ "description": "Ordered list of all properties stored in entities.",
4272
+ "items": {
4273
+ "$ref": "#/components/schemas/EntityPropertySchema"
4274
+ }
4275
+ }
4276
+ },
4277
+ "required": [
4278
+ "type",
4279
+ "title",
4280
+ "properties"
4281
+ ]
4282
+ },
4283
+ "EntitySchema": {
4284
+ "allOf": [
4285
+ {
4286
+ "$ref": "#/components/schemas/EntityRawSchema"
4287
+ },
4288
+ {
4289
+ "type": "object",
4290
+ "properties": {
4291
+ "entities": {
4292
+ "description": "Count of entities created in this schema.",
4293
+ "type": "number"
4294
+ },
4295
+ "integration": {
4296
+ "description": "Integration managing this schema.",
4297
+ "$ref": "#/components/schemas/Integration"
4298
+ },
4299
+ "urls": {
4300
+ "type": "object",
4301
+ "description": "URLs associated with the object",
4302
+ "properties": {
4303
+ "location": {
4304
+ "type": "string",
4305
+ "description": "URL of the entity schema in the API",
4306
+ "format": "uri"
4307
+ }
4308
+ },
4309
+ "required": [
4310
+ "location"
4311
+ ]
4312
+ }
4313
+ },
4314
+ "required": [
4315
+ "entities",
4316
+ "urls"
4317
+ ]
4318
+ }
4319
+ ]
4320
+ },
4321
+ "EntityPropertySchema": {
4322
+ "allOf": [
4323
+ {
4324
+ "type": "object",
4325
+ "properties": {
4326
+ "name": {
4327
+ "type": "string",
4328
+ "description": "Name of the property in the object"
4329
+ },
4330
+ "title": {
4331
+ "type": "string",
4332
+ "description": "Title displayed to the users"
4333
+ },
4334
+ "description": {
4335
+ "type": "string",
4336
+ "description": "Description of the property"
4337
+ },
4338
+ "deprecated": {
4339
+ "type": "boolean",
4340
+ "description": "If true, the property is no longer required and not taken into consideration"
4341
+ }
4342
+ },
4343
+ "required": [
4344
+ "name",
4345
+ "title"
4346
+ ]
4347
+ },
4348
+ {
4349
+ "oneOf": [
4350
+ {
4351
+ "type": "object",
4352
+ "properties": {
4353
+ "type": {
4354
+ "type": "string",
4355
+ "enum": [
4356
+ "text"
4357
+ ]
4358
+ },
4359
+ "role": {
4360
+ "type": "string",
4361
+ "enum": [
4362
+ "title"
4363
+ ]
4364
+ }
4365
+ },
4366
+ "required": [
4367
+ "type"
4368
+ ]
4369
+ },
4370
+ {
4371
+ "type": "object",
4372
+ "properties": {
4373
+ "type": {
4374
+ "type": "string",
4375
+ "enum": [
4376
+ "longtext"
4377
+ ]
4378
+ },
4379
+ "role": {
4380
+ "type": "string",
4381
+ "enum": [
4382
+ "body"
4383
+ ]
4384
+ }
4385
+ },
4386
+ "required": [
4387
+ "type"
4388
+ ]
4389
+ },
4390
+ {
4391
+ "type": "object",
4392
+ "properties": {
4393
+ "type": {
4394
+ "type": "string",
4395
+ "enum": [
4396
+ "url"
4397
+ ]
4398
+ },
4399
+ "role": {
4400
+ "type": "string",
4401
+ "enum": [
4402
+ "target",
4403
+ "icon"
4404
+ ]
4405
+ }
4406
+ },
4407
+ "required": [
4408
+ "type"
4409
+ ]
4410
+ },
4411
+ {
4412
+ "type": "object",
4413
+ "properties": {
4414
+ "type": {
4415
+ "type": "string",
4416
+ "enum": [
4417
+ "number"
4418
+ ]
4419
+ }
4420
+ },
4421
+ "required": [
4422
+ "type"
4423
+ ]
4424
+ },
4425
+ {
4426
+ "type": "object",
4427
+ "properties": {
4428
+ "type": {
4429
+ "type": "string",
4430
+ "enum": [
4431
+ "boolean"
4432
+ ]
4433
+ }
4434
+ },
4435
+ "required": [
4436
+ "type"
4437
+ ]
4438
+ },
4439
+ {
4440
+ "type": "object",
4441
+ "properties": {
4442
+ "type": {
4443
+ "type": "string",
4444
+ "enum": [
4445
+ "enum"
4446
+ ]
4447
+ },
4448
+ "values": {
4449
+ "type": "array",
4450
+ "items": {
4451
+ "type": "object",
4452
+ "properties": {
4453
+ "label": {
4454
+ "type": "string"
4455
+ },
4456
+ "value": {
4457
+ "type": "string"
4458
+ }
4459
+ },
4460
+ "required": [
4461
+ "label",
4462
+ "value"
4463
+ ]
4464
+ }
4465
+ }
4466
+ },
4467
+ "required": [
4468
+ "type",
4469
+ "values"
4470
+ ]
4471
+ },
4472
+ {
4473
+ "type": "object",
4474
+ "properties": {
4475
+ "type": {
4476
+ "type": "string",
4477
+ "enum": [
4478
+ "date"
4479
+ ]
4480
+ }
4481
+ },
4482
+ "required": [
4483
+ "type"
4484
+ ]
4485
+ },
4486
+ {
4487
+ "type": "object",
4488
+ "properties": {
4489
+ "type": {
4490
+ "type": "string",
4491
+ "enum": [
4492
+ "user"
4493
+ ]
4494
+ }
4495
+ },
4496
+ "required": [
4497
+ "type"
4498
+ ]
4499
+ },
4500
+ {
4501
+ "type": "object",
4502
+ "description": "reference to another entity, creating a relation",
4503
+ "properties": {
4504
+ "type": {
4505
+ "type": "string",
4506
+ "enum": [
4507
+ "relation"
4508
+ ]
4509
+ },
4510
+ "entity": {
4511
+ "type": "object",
4512
+ "properties": {
4513
+ "type": {
4514
+ "$ref": "#/components/schemas/EntityType"
4515
+ }
4516
+ },
4517
+ "required": [
4518
+ "type"
4519
+ ]
4520
+ }
4521
+ },
4522
+ "required": [
4523
+ "type",
4524
+ "entity"
4525
+ ]
4526
+ }
4527
+ ]
4528
+ }
4017
4529
  ]
4018
4530
  },
4019
4531
  "Event": {
@@ -5400,17 +5912,27 @@
5400
5912
  ]
5401
5913
  },
5402
5914
  "children": {
5403
- "type": "array",
5404
- "items": {
5405
- "oneOf": [
5406
- {
5407
- "type": "string"
5408
- },
5409
- {
5410
- "$ref": "#/components/schemas/ContentKitText"
5915
+ "oneOf": [
5916
+ {
5917
+ "type": "string"
5918
+ },
5919
+ {
5920
+ "type": "array",
5921
+ "items": {
5922
+ "oneOf": [
5923
+ {
5924
+ "type": "string"
5925
+ },
5926
+ {
5927
+ "$ref": "#/components/schemas/ContentKitText"
5928
+ },
5929
+ {
5930
+ "$ref": "#/components/schemas/ContentKitLink"
5931
+ }
5932
+ ]
5411
5933
  }
5412
- ]
5413
- }
5934
+ }
5935
+ ]
5414
5936
  }
5415
5937
  },
5416
5938
  "required": [
@@ -5679,6 +6201,7 @@
5679
6201
  "close",
5680
6202
  "edit",
5681
6203
  "github",
6204
+ "gitlab",
5682
6205
  "maximize",
5683
6206
  "email",
5684
6207
  "settings",
@@ -5687,7 +6210,8 @@
5687
6210
  "star",
5688
6211
  "warning",
5689
6212
  "link",
5690
- "link-external"
6213
+ "link-external",
6214
+ "eye"
5691
6215
  ]
5692
6216
  },
5693
6217
  "ContentKitModal": {
@@ -5959,38 +6483,85 @@
5959
6483
  }
5960
6484
  },
5961
6485
  "required": [
5962
- "type"
6486
+ "type"
6487
+ ]
6488
+ },
6489
+ "ContentKitImage": {
6490
+ "type": "object",
6491
+ "properties": {
6492
+ "type": {
6493
+ "type": "string",
6494
+ "enum": [
6495
+ "image"
6496
+ ]
6497
+ },
6498
+ "source": {
6499
+ "type": "object",
6500
+ "properties": {
6501
+ "url": {
6502
+ "type": "string",
6503
+ "format": "uri"
6504
+ }
6505
+ },
6506
+ "required": [
6507
+ "url"
6508
+ ]
6509
+ },
6510
+ "aspectRatio": {
6511
+ "type": "number"
6512
+ }
6513
+ },
6514
+ "required": [
6515
+ "type",
6516
+ "source",
6517
+ "aspectRatio"
5963
6518
  ]
5964
6519
  },
5965
- "ContentKitImage": {
6520
+ "ContentKitLink": {
5966
6521
  "type": "object",
5967
6522
  "properties": {
5968
6523
  "type": {
5969
6524
  "type": "string",
5970
6525
  "enum": [
5971
- "image"
6526
+ "link"
5972
6527
  ]
5973
6528
  },
5974
- "source": {
6529
+ "target": {
5975
6530
  "type": "object",
5976
6531
  "properties": {
5977
6532
  "url": {
5978
- "type": "string",
5979
- "format": "uri"
6533
+ "oneOf": [
6534
+ {
6535
+ "type": "string"
6536
+ },
6537
+ {
6538
+ "$ref": "#/components/schemas/ContentKitURL"
6539
+ }
6540
+ ]
5980
6541
  }
5981
6542
  },
5982
6543
  "required": [
5983
6544
  "url"
5984
6545
  ]
5985
6546
  },
5986
- "aspectRatio": {
5987
- "type": "number"
6547
+ "children": {
6548
+ "oneOf": [
6549
+ {
6550
+ "type": "string"
6551
+ },
6552
+ {
6553
+ "type": "array",
6554
+ "items": {
6555
+ "type": "string"
6556
+ }
6557
+ }
6558
+ ]
5988
6559
  }
5989
6560
  },
5990
6561
  "required": [
5991
6562
  "type",
5992
- "source",
5993
- "aspectRatio"
6563
+ "target",
6564
+ "children"
5994
6565
  ]
5995
6566
  },
5996
6567
  "ContentKitInput": {
@@ -6111,6 +6682,10 @@
6111
6682
  "description": "Should the select accept the selection of multiple options. If true, the state will be an array.",
6112
6683
  "type": "boolean"
6113
6684
  },
6685
+ "acceptInput": {
6686
+ "description": "Should the filter input be allowed to be selected as an option.",
6687
+ "type": "boolean"
6688
+ },
6114
6689
  "options": {
6115
6690
  "description": "Array of options to display in the select.",
6116
6691
  "oneOf": [
@@ -6350,6 +6925,9 @@
6350
6925
  },
6351
6926
  {
6352
6927
  "$ref": "#/components/schemas/ContentKitHint"
6928
+ },
6929
+ {
6930
+ "$ref": "#/components/schemas/ContentKitLink"
6353
6931
  }
6354
6932
  ],
6355
6933
  "discriminator": {
@@ -6364,6 +6942,9 @@
6364
6942
  },
6365
6943
  {
6366
6944
  "$ref": "#/components/schemas/ContentKitImage"
6945
+ },
6946
+ {
6947
+ "$ref": "#/components/schemas/ContentKitLink"
6367
6948
  }
6368
6949
  ],
6369
6950
  "discriminator": {
@@ -6469,6 +7050,12 @@
6469
7050
  {
6470
7051
  "$ref": "#/components/schemas/OrganizationEntitiesChannel"
6471
7052
  },
7053
+ {
7054
+ "$ref": "#/components/schemas/OrganizationSchemasChannel"
7055
+ },
7056
+ {
7057
+ "$ref": "#/components/schemas/OrganizationRecordingsChannel"
7058
+ },
6472
7059
  {
6473
7060
  "type": "object",
6474
7061
  "properties": {
@@ -6943,7 +7530,7 @@
6943
7530
  },
6944
7531
  "OrganizationEntitiesChannel": {
6945
7532
  "type": "object",
6946
- "description": "Subscription channel for all integration entities in an organization.",
7533
+ "description": "Subscription channel for entities in an organization.",
6947
7534
  "properties": {
6948
7535
  "channel": {
6949
7536
  "type": "string",
@@ -6951,6 +7538,29 @@
6951
7538
  "organization-entities"
6952
7539
  ]
6953
7540
  },
7541
+ "organization": {
7542
+ "type": "string"
7543
+ },
7544
+ "entityType": {
7545
+ "type": "string"
7546
+ }
7547
+ },
7548
+ "required": [
7549
+ "channel",
7550
+ "organization",
7551
+ "entityType"
7552
+ ]
7553
+ },
7554
+ "OrganizationSchemasChannel": {
7555
+ "type": "object",
7556
+ "description": "Subscription channel for all entity schemas in an organization.",
7557
+ "properties": {
7558
+ "channel": {
7559
+ "type": "string",
7560
+ "enum": [
7561
+ "organization-schemas"
7562
+ ]
7563
+ },
6954
7564
  "organization": {
6955
7565
  "type": "string"
6956
7566
  }
@@ -6978,6 +7588,24 @@
6978
7588
  "organization"
6979
7589
  ]
6980
7590
  },
7591
+ "OrganizationRecordingsChannel": {
7592
+ "type": "object",
7593
+ "properties": {
7594
+ "channel": {
7595
+ "type": "string",
7596
+ "enum": [
7597
+ "organization-recordings"
7598
+ ]
7599
+ },
7600
+ "organization": {
7601
+ "type": "string"
7602
+ }
7603
+ },
7604
+ "required": [
7605
+ "channel",
7606
+ "organization"
7607
+ ]
7608
+ },
6981
7609
  "CustomField": {
6982
7610
  "type": "object",
6983
7611
  "description": "Custom field",
@@ -7048,7 +7676,8 @@
7048
7676
  "enum": [
7049
7677
  "text",
7050
7678
  "number",
7051
- "boolean"
7679
+ "boolean",
7680
+ "tags"
7052
7681
  ]
7053
7682
  },
7054
7683
  "CustomFieldValue": {
@@ -7062,6 +7691,13 @@
7062
7691
  },
7063
7692
  {
7064
7693
  "type": "boolean"
7694
+ },
7695
+ {
7696
+ "type": "array",
7697
+ "items": {
7698
+ "type": "string",
7699
+ "maxLength": 256
7700
+ }
7065
7701
  }
7066
7702
  ]
7067
7703
  },
@@ -10746,247 +11382,59 @@
10746
11382
  "in": "path",
10747
11383
  "required": true,
10748
11384
  "description": "The ID of the other space",
10749
- "schema": {
10750
- "type": "string"
10751
- }
10752
- }
10753
- ],
10754
- "responses": {
10755
- "200": {
10756
- "description": "OK",
10757
- "content": {
10758
- "application/json": {
10759
- "schema": {
10760
- "$ref": "#/components/schemas/SpaceRelation"
10761
- }
10762
- }
10763
- }
10764
- },
10765
- "404": {
10766
- "description": "No matching relation found",
10767
- "$ref": "#/components/responses/NotFoundError"
10768
- },
10769
- "default": {
10770
- "$ref": "#/components/responses/UnexpectedError"
10771
- }
10772
- }
10773
- },
10774
- "delete": {
10775
- "operationId": "deleteSpaceRelation",
10776
- "summary": "Delete a relation between spaces",
10777
- "tags": [
10778
- "spaces"
10779
- ],
10780
- "security": [
10781
- {
10782
- "user": []
10783
- }
10784
- ],
10785
- "parameters": [
10786
- {
10787
- "$ref": "#/components/parameters/spaceId"
10788
- },
10789
- {
10790
- "name": "targetSpaceId",
10791
- "in": "path",
10792
- "required": true,
10793
- "description": "The ID of the other space",
10794
- "schema": {
10795
- "type": "string"
10796
- }
10797
- }
10798
- ],
10799
- "responses": {
10800
- "204": {
10801
- "description": "Relation has been deleted"
10802
- },
10803
- "default": {
10804
- "$ref": "#/components/responses/UnexpectedError"
10805
- }
10806
- }
10807
- }
10808
- },
10809
- "/spaces/{spaceId}/custom-fields": {
10810
- "get": {
10811
- "operationId": "getSpaceCustomFields",
10812
- "summary": "Get the values of the custom fields set on a space",
10813
- "tags": [
10814
- "spaces"
10815
- ],
10816
- "security": [
10817
- {
10818
- "user": []
10819
- }
10820
- ],
10821
- "parameters": [
10822
- {
10823
- "$ref": "#/components/parameters/spaceId"
10824
- }
10825
- ],
10826
- "responses": {
10827
- "200": {
10828
- "description": "OK",
10829
- "content": {
10830
- "application/json": {
10831
- "schema": {
10832
- "$ref": "#/components/schemas/CustomFieldValues"
10833
- }
10834
- }
10835
- }
10836
- },
10837
- "default": {
10838
- "$ref": "#/components/responses/UnexpectedError"
10839
- }
10840
- }
10841
- },
10842
- "patch": {
10843
- "operationId": "updateSpaceCustomFields",
10844
- "summary": "Update the custom fields in a space",
10845
- "tags": [
10846
- "spaces"
10847
- ],
10848
- "security": [
10849
- {
10850
- "user": []
10851
- }
10852
- ],
10853
- "parameters": [
10854
- {
10855
- "$ref": "#/components/parameters/spaceId"
10856
- }
10857
- ],
10858
- "requestBody": {
10859
- "required": true,
10860
- "content": {
10861
- "application/json": {
10862
- "schema": {
10863
- "$ref": "#/components/schemas/UpdateCustomFieldValues"
10864
- }
10865
- }
10866
- }
10867
- },
10868
- "responses": {
10869
- "204": {
10870
- "description": "Custom fields updated"
10871
- },
10872
- "default": {
10873
- "$ref": "#/components/responses/UnexpectedError"
10874
- }
10875
- }
10876
- }
10877
- },
10878
- "/spaces/{spaceId}/entities": {
10879
- "get": {
10880
- "operationId": "listSpaceEntities",
10881
- "summary": "List all entities linked to a space",
10882
- "tags": [
10883
- "spaces"
10884
- ],
10885
- "parameters": [
10886
- {
10887
- "$ref": "#/components/parameters/spaceId"
10888
- },
10889
- {
10890
- "$ref": "#/components/parameters/listPage"
10891
- },
10892
- {
10893
- "$ref": "#/components/parameters/listLimit"
10894
- }
10895
- ],
10896
- "responses": {
10897
- "200": {
10898
- "description": "OK",
10899
- "content": {
10900
- "application/json": {
10901
- "schema": {
10902
- "allOf": [
10903
- {
10904
- "$ref": "#/components/schemas/List"
10905
- },
10906
- {
10907
- "type": "object",
10908
- "required": [
10909
- "items"
10910
- ],
10911
- "properties": {
10912
- "items": {
10913
- "type": "array",
10914
- "items": {
10915
- "$ref": "#/components/schemas/SpaceEntity"
10916
- }
10917
- }
10918
- }
10919
- }
10920
- ]
11385
+ "schema": {
11386
+ "type": "string"
11387
+ }
11388
+ }
11389
+ ],
11390
+ "responses": {
11391
+ "200": {
11392
+ "description": "OK",
11393
+ "content": {
11394
+ "application/json": {
11395
+ "schema": {
11396
+ "$ref": "#/components/schemas/SpaceRelation"
10921
11397
  }
10922
11398
  }
10923
11399
  }
10924
11400
  },
11401
+ "404": {
11402
+ "description": "No matching relation found",
11403
+ "$ref": "#/components/responses/NotFoundError"
11404
+ },
10925
11405
  "default": {
10926
11406
  "$ref": "#/components/responses/UnexpectedError"
10927
11407
  }
10928
11408
  }
10929
11409
  },
10930
- "post": {
10931
- "operationId": "addSpaceEntities",
10932
- "summary": "Link the space to entities",
11410
+ "delete": {
11411
+ "operationId": "deleteSpaceRelation",
11412
+ "summary": "Delete a relation between spaces",
10933
11413
  "tags": [
10934
11414
  "spaces"
10935
11415
  ],
10936
- "parameters": [
11416
+ "security": [
10937
11417
  {
10938
- "$ref": "#/components/parameters/spaceId"
11418
+ "user": []
10939
11419
  }
10940
11420
  ],
10941
- "requestBody": {
10942
- "required": true,
10943
- "content": {
10944
- "application/json": {
10945
- "schema": {
10946
- "type": "object",
10947
- "required": [
10948
- "entities"
10949
- ],
10950
- "properties": {
10951
- "entities": {
10952
- "type": "array",
10953
- "description": "Array of entities to link to the space",
10954
- "minItems": 1,
10955
- "maxItems": 10,
10956
- "items": {
10957
- "type": "object",
10958
- "properties": {
10959
- "integration": {
10960
- "type": "string",
10961
- "description": "ID of the integration owning the entity"
10962
- },
10963
- "entityId": {
10964
- "type": "string",
10965
- "description": "ID of the entity in the integration"
10966
- },
10967
- "environments": {
10968
- "type": "array",
10969
- "description": "Environments the entity is linked to",
10970
- "items": {
10971
- "type": "string"
10972
- }
10973
- }
10974
- },
10975
- "required": [
10976
- "integration",
10977
- "entityId",
10978
- "environments"
10979
- ]
10980
- }
10981
- }
10982
- }
10983
- }
11421
+ "parameters": [
11422
+ {
11423
+ "$ref": "#/components/parameters/spaceId"
11424
+ },
11425
+ {
11426
+ "name": "targetSpaceId",
11427
+ "in": "path",
11428
+ "required": true,
11429
+ "description": "The ID of the other space",
11430
+ "schema": {
11431
+ "type": "string"
10984
11432
  }
10985
11433
  }
10986
- },
11434
+ ],
10987
11435
  "responses": {
10988
11436
  "204": {
10989
- "description": "OK"
11437
+ "description": "Relation has been deleted"
10990
11438
  },
10991
11439
  "default": {
10992
11440
  "$ref": "#/components/responses/UnexpectedError"
@@ -10994,22 +11442,21 @@
10994
11442
  }
10995
11443
  }
10996
11444
  },
10997
- "/spaces/{spaceId}/entities/{integrationName}/{entityId}": {
11445
+ "/spaces/{spaceId}/custom-fields": {
10998
11446
  "get": {
10999
- "operationId": "getSpaceEntity",
11000
- "summary": "Get a space entity",
11447
+ "operationId": "getSpaceCustomFields",
11448
+ "summary": "Get the values of the custom fields set on a space",
11001
11449
  "tags": [
11002
11450
  "spaces"
11003
11451
  ],
11452
+ "security": [
11453
+ {
11454
+ "user": []
11455
+ }
11456
+ ],
11004
11457
  "parameters": [
11005
11458
  {
11006
11459
  "$ref": "#/components/parameters/spaceId"
11007
- },
11008
- {
11009
- "$ref": "#/components/parameters/integrationName"
11010
- },
11011
- {
11012
- "$ref": "#/components/parameters/entityId"
11013
11460
  }
11014
11461
  ],
11015
11462
  "responses": {
@@ -11018,7 +11465,7 @@
11018
11465
  "content": {
11019
11466
  "application/json": {
11020
11467
  "schema": {
11021
- "$ref": "#/components/schemas/SpaceEntity"
11468
+ "$ref": "#/components/schemas/CustomFieldValues"
11022
11469
  }
11023
11470
  }
11024
11471
  }
@@ -11029,20 +11476,19 @@
11029
11476
  }
11030
11477
  },
11031
11478
  "patch": {
11032
- "operationId": "updateSpaceEntity",
11033
- "summary": "Update a space entity",
11479
+ "operationId": "updateSpaceCustomFields",
11480
+ "summary": "Update the custom fields in a space",
11034
11481
  "tags": [
11035
11482
  "spaces"
11036
11483
  ],
11484
+ "security": [
11485
+ {
11486
+ "user": []
11487
+ }
11488
+ ],
11037
11489
  "parameters": [
11038
11490
  {
11039
11491
  "$ref": "#/components/parameters/spaceId"
11040
- },
11041
- {
11042
- "$ref": "#/components/parameters/integrationName"
11043
- },
11044
- {
11045
- "$ref": "#/components/parameters/entityId"
11046
11492
  }
11047
11493
  ],
11048
11494
  "requestBody": {
@@ -11050,48 +11496,14 @@
11050
11496
  "content": {
11051
11497
  "application/json": {
11052
11498
  "schema": {
11053
- "type": "object",
11054
- "required": [
11055
- "environments"
11056
- ],
11057
- "properties": {
11058
- "environments": {
11059
- "$ref": "#/components/schemas/SpaceEntityEnvironments"
11060
- }
11061
- }
11499
+ "$ref": "#/components/schemas/UpdateCustomFieldValues"
11062
11500
  }
11063
11501
  }
11064
11502
  }
11065
11503
  },
11066
11504
  "responses": {
11067
11505
  "204": {
11068
- "description": "Space entity has been updated"
11069
- },
11070
- "default": {
11071
- "$ref": "#/components/responses/UnexpectedError"
11072
- }
11073
- }
11074
- },
11075
- "delete": {
11076
- "operationId": "deleteSpaceEntity",
11077
- "summary": "Delete a space entity",
11078
- "tags": [
11079
- "spaces"
11080
- ],
11081
- "parameters": [
11082
- {
11083
- "$ref": "#/components/parameters/spaceId"
11084
- },
11085
- {
11086
- "$ref": "#/components/parameters/integrationName"
11087
- },
11088
- {
11089
- "$ref": "#/components/parameters/entityId"
11090
- }
11091
- ],
11092
- "responses": {
11093
- "204": {
11094
- "description": "Space entity has been deleted"
11506
+ "description": "Custom fields updated"
11095
11507
  },
11096
11508
  "default": {
11097
11509
  "$ref": "#/components/responses/UnexpectedError"
@@ -12218,9 +12630,12 @@
12218
12630
  }
12219
12631
  },
12220
12632
  "/integrations/{integrationName}/installations/{installationId}/spaces/{spaceId}": {
12221
- "patch": {
12222
- "operationId": "updateIntegrationSpaceInstallation",
12223
- "summary": "Update external IDs and configurations of an integration's installation for a space",
12633
+ "get": {
12634
+ "operationId": "getIntegrationSpaceInstallation",
12635
+ "summary": "Get a specific integration's space installation",
12636
+ "tags": [
12637
+ "integrations"
12638
+ ],
12224
12639
  "parameters": [
12225
12640
  {
12226
12641
  "$ref": "#/components/parameters/integrationName"
@@ -12234,7 +12649,7 @@
12234
12649
  ],
12235
12650
  "responses": {
12236
12651
  "200": {
12237
- "description": "The space installation has been updated.",
12652
+ "description": "Integration space installation",
12238
12653
  "content": {
12239
12654
  "application/json": {
12240
12655
  "schema": {
@@ -12243,24 +12658,17 @@
12243
12658
  }
12244
12659
  }
12245
12660
  },
12661
+ "404": {
12662
+ "$ref": "#/components/responses/NotFoundError"
12663
+ },
12246
12664
  "default": {
12247
12665
  "$ref": "#/components/responses/UnexpectedError"
12248
12666
  }
12249
- },
12250
- "requestBody": {
12251
- "required": true,
12252
- "content": {
12253
- "application/json": {
12254
- "schema": {
12255
- "$ref": "#/components/schemas/RequestUpdateIntegrationInstallation"
12256
- }
12257
- }
12258
- }
12259
12667
  }
12260
12668
  },
12261
- "delete": {
12262
- "operationId": "uninstallIntegrationFromSpace",
12263
- "summary": "Uninstall the integration from a space",
12669
+ "patch": {
12670
+ "operationId": "updateIntegrationSpaceInstallation",
12671
+ "summary": "Update external IDs and configurations of an integration's installation for a space",
12264
12672
  "parameters": [
12265
12673
  {
12266
12674
  "$ref": "#/components/parameters/integrationName"
@@ -12272,121 +12680,49 @@
12272
12680
  "$ref": "#/components/parameters/spaceId"
12273
12681
  }
12274
12682
  ],
12275
- "responses": {
12276
- "204": {
12277
- "description": "The space installation has been deleted."
12278
- },
12279
- "default": {
12280
- "$ref": "#/components/responses/UnexpectedError"
12281
- }
12282
- }
12283
- }
12284
- },
12285
- "/integrations/{integrationName}/installations/{installationId}/entities": {
12286
- "get": {
12287
- "operationId": "getIntegrationEntities",
12288
- "summary": "List entities managed by an integration in an installation.",
12289
- "tags": [
12290
- "integrations"
12291
- ],
12292
- "security": [
12293
- {
12294
- "integration": []
12295
- }
12296
- ],
12297
- "parameters": [
12298
- {
12299
- "$ref": "#/components/parameters/integrationName"
12300
- },
12301
- {
12302
- "$ref": "#/components/parameters/installationId"
12303
- }
12304
- ],
12305
12683
  "responses": {
12306
12684
  "200": {
12307
- "description": "Entity",
12685
+ "description": "The space installation has been updated.",
12308
12686
  "content": {
12309
12687
  "application/json": {
12310
12688
  "schema": {
12311
- "allOf": [
12312
- {
12313
- "$ref": "#/components/schemas/List"
12314
- },
12315
- {
12316
- "type": "object",
12317
- "required": [
12318
- "items"
12319
- ],
12320
- "properties": {
12321
- "items": {
12322
- "type": "array",
12323
- "items": {
12324
- "$ref": "#/components/schemas/IntegrationEntity"
12325
- }
12326
- }
12327
- }
12328
- }
12329
- ]
12689
+ "$ref": "#/components/schemas/IntegrationSpaceInstallation"
12330
12690
  }
12331
12691
  }
12332
12692
  }
12333
12693
  },
12334
- "404": {
12335
- "$ref": "#/components/responses/NotFoundError"
12336
- },
12337
12694
  "default": {
12338
12695
  "$ref": "#/components/responses/UnexpectedError"
12339
12696
  }
12697
+ },
12698
+ "requestBody": {
12699
+ "required": true,
12700
+ "content": {
12701
+ "application/json": {
12702
+ "schema": {
12703
+ "$ref": "#/components/schemas/RequestUpdateIntegrationInstallation"
12704
+ }
12705
+ }
12706
+ }
12340
12707
  }
12341
12708
  },
12342
- "post": {
12343
- "operationId": "syncIntegrationEntities",
12344
- "summary": "Update all entities for an integration installation.",
12345
- "description": "Update all entities for an integration installation. Entities will be created and updated, missing entities will be deleted.",
12346
- "tags": [
12347
- "integrations"
12348
- ],
12349
- "security": [
12350
- {
12351
- "integration": []
12352
- }
12353
- ],
12709
+ "delete": {
12710
+ "operationId": "uninstallIntegrationFromSpace",
12711
+ "summary": "Uninstall the integration from a space",
12354
12712
  "parameters": [
12355
12713
  {
12356
12714
  "$ref": "#/components/parameters/integrationName"
12357
12715
  },
12358
12716
  {
12359
12717
  "$ref": "#/components/parameters/installationId"
12718
+ },
12719
+ {
12720
+ "$ref": "#/components/parameters/spaceId"
12360
12721
  }
12361
12722
  ],
12362
- "requestBody": {
12363
- "required": true,
12364
- "content": {
12365
- "application/json": {
12366
- "schema": {
12367
- "type": "object",
12368
- "required": [
12369
- "entities"
12370
- ],
12371
- "properties": {
12372
- "entities": {
12373
- "type": "array",
12374
- "description": "Array of entities to synchronize. Entities will be created and updated, missing entities will be deleted.",
12375
- "items": {
12376
- "$ref": "#/components/schemas/UpsertIntegrationEntity"
12377
- }
12378
- }
12379
- }
12380
- }
12381
- }
12382
- }
12383
- },
12384
12723
  "responses": {
12385
12724
  "204": {
12386
- "description": "Entities have been updated"
12387
- },
12388
- "404": {
12389
- "$ref": "#/components/responses/NotFoundError"
12725
+ "description": "The space installation has been deleted."
12390
12726
  },
12391
12727
  "default": {
12392
12728
  "$ref": "#/components/responses/UnexpectedError"
@@ -13907,43 +14243,286 @@
13907
14243
  "$ref": "#/components/schemas/GitSyncOperationState"
13908
14244
  }
13909
14245
  }
13910
- ],
14246
+ ],
14247
+ "responses": {
14248
+ "200": {
14249
+ "description": "OK",
14250
+ "content": {
14251
+ "application/json": {
14252
+ "schema": {
14253
+ "allOf": [
14254
+ {
14255
+ "$ref": "#/components/schemas/List"
14256
+ },
14257
+ {
14258
+ "type": "object",
14259
+ "required": [
14260
+ "items"
14261
+ ],
14262
+ "properties": {
14263
+ "items": {
14264
+ "type": "array",
14265
+ "items": {
14266
+ "type": "object",
14267
+ "properties": {
14268
+ "space": {
14269
+ "$ref": "#/components/schemas/Space"
14270
+ },
14271
+ "gitSync": {
14272
+ "$ref": "#/components/schemas/GitSyncState"
14273
+ }
14274
+ },
14275
+ "required": [
14276
+ "space"
14277
+ ]
14278
+ }
14279
+ }
14280
+ }
14281
+ }
14282
+ ]
14283
+ }
14284
+ }
14285
+ }
14286
+ },
14287
+ "default": {
14288
+ "$ref": "#/components/responses/UnexpectedError"
14289
+ }
14290
+ }
14291
+ }
14292
+ },
14293
+ "/orgs/{organizationId}/collections": {
14294
+ "get": {
14295
+ "operationId": "listCollectionsInOrganizationById",
14296
+ "summary": "List organization collections",
14297
+ "description": "Lists collections for the specified organization.\n",
14298
+ "tags": [
14299
+ "organizations"
14300
+ ],
14301
+ "security": [
14302
+ {
14303
+ "user": []
14304
+ }
14305
+ ],
14306
+ "parameters": [
14307
+ {
14308
+ "$ref": "#/components/parameters/organizationId"
14309
+ },
14310
+ {
14311
+ "$ref": "#/components/parameters/listPage"
14312
+ },
14313
+ {
14314
+ "$ref": "#/components/parameters/listLimit"
14315
+ },
14316
+ {
14317
+ "name": "nested",
14318
+ "in": "query",
14319
+ "description": "If true, all nested collections will be listed",
14320
+ "schema": {
14321
+ "type": "boolean",
14322
+ "default": true
14323
+ }
14324
+ }
14325
+ ],
14326
+ "responses": {
14327
+ "200": {
14328
+ "description": "OK",
14329
+ "content": {
14330
+ "application/json": {
14331
+ "schema": {
14332
+ "allOf": [
14333
+ {
14334
+ "$ref": "#/components/schemas/List"
14335
+ },
14336
+ {
14337
+ "type": "object",
14338
+ "required": [
14339
+ "items"
14340
+ ],
14341
+ "properties": {
14342
+ "items": {
14343
+ "type": "array",
14344
+ "items": {
14345
+ "$ref": "#/components/schemas/Collection"
14346
+ }
14347
+ }
14348
+ }
14349
+ }
14350
+ ]
14351
+ }
14352
+ }
14353
+ }
14354
+ },
14355
+ "default": {
14356
+ "$ref": "#/components/responses/UnexpectedError"
14357
+ }
14358
+ }
14359
+ }
14360
+ },
14361
+ "/orgs/{organizationId}/dsync": {
14362
+ "post": {
14363
+ "operationId": "setupDirectorySync",
14364
+ "summary": "Set up Directory Sync in an organization.",
14365
+ "tags": [
14366
+ "organizations",
14367
+ "dsync"
14368
+ ],
14369
+ "security": [
14370
+ {
14371
+ "user-internal": []
14372
+ }
14373
+ ],
14374
+ "parameters": [
14375
+ {
14376
+ "$ref": "#/components/parameters/organizationId"
14377
+ }
14378
+ ],
14379
+ "responses": {
14380
+ "200": {
14381
+ "description": "Directory Sync has been properly initialized for the organization.",
14382
+ "content": {
14383
+ "application/json": {
14384
+ "schema": {
14385
+ "type": "object",
14386
+ "required": [
14387
+ "setupUrl"
14388
+ ],
14389
+ "properties": {
14390
+ "setupUrl": {
14391
+ "description": "The URL to navigate to to continue Directory Sync setup.",
14392
+ "type": "string"
14393
+ }
14394
+ }
14395
+ }
14396
+ }
14397
+ }
14398
+ },
14399
+ "default": {
14400
+ "$ref": "#/components/responses/UnexpectedError"
14401
+ }
14402
+ }
14403
+ }
14404
+ },
14405
+ "/orgs/{organizationId}/dsync/groups": {
14406
+ "get": {
14407
+ "operationId": "listDirectorySyncGroups",
14408
+ "summary": "Lists the groups exposed to the synced Directory on an organization.",
14409
+ "tags": [
14410
+ "organizations",
14411
+ "dsync"
14412
+ ],
14413
+ "security": [
14414
+ {
14415
+ "user-internal": []
14416
+ }
14417
+ ],
14418
+ "parameters": [
14419
+ {
14420
+ "$ref": "#/components/parameters/organizationId"
14421
+ }
14422
+ ],
14423
+ "responses": {
14424
+ "200": {
14425
+ "description": "A list of all of a Directory's group configured for the given identity provider.\nOnly groups pushed to the SCIM sync will be listed in this result.\n",
14426
+ "content": {
14427
+ "application/json": {
14428
+ "schema": {
14429
+ "type": "object",
14430
+ "description": "All the groups.",
14431
+ "required": [
14432
+ "groups"
14433
+ ],
14434
+ "properties": {
14435
+ "groups": {
14436
+ "type": "array",
14437
+ "items": {
14438
+ "$ref": "#/components/schemas/OrganizationDirectorySyncGroup"
14439
+ }
14440
+ }
14441
+ }
14442
+ }
14443
+ }
14444
+ }
14445
+ },
14446
+ "default": {
14447
+ "$ref": "#/components/responses/UnexpectedError"
14448
+ }
14449
+ }
14450
+ }
14451
+ },
14452
+ "/orgs/{organizationId}/dsync/teams": {
14453
+ "post": {
14454
+ "operationId": "syncDirectorySyncGroupsToTeams",
14455
+ "summary": "Syncs a list of group/team unique identifiers pairs together.",
14456
+ "description": "Each pair will lead the team being synced to the group (unless it is already synced to another) and the members of the group will then be synced to the team.\nEach sync is independent, the endpoint will still succeed if some of the syncs fail.\nCheck the response to know more about the success or failure of the entire sync.\n",
14457
+ "tags": [
14458
+ "organizations",
14459
+ "dsync"
14460
+ ],
14461
+ "security": [
14462
+ {
14463
+ "user-internal": []
14464
+ }
14465
+ ],
14466
+ "parameters": [
14467
+ {
14468
+ "$ref": "#/components/parameters/organizationId"
14469
+ }
14470
+ ],
14471
+ "requestBody": {
14472
+ "required": true,
14473
+ "content": {
14474
+ "application/json": {
14475
+ "schema": {
14476
+ "type": "object",
14477
+ "description": "Parameters for syncing a list of Directory Sync groups to a GitBook team, syncing all members of those groups to the assigned teams.\nThe endpoint can be used for one or many groups to team syncs.\n",
14478
+ "required": [
14479
+ "to_sync"
14480
+ ],
14481
+ "properties": {
14482
+ "to_sync": {
14483
+ "type": "array",
14484
+ "description": "A list of groups to teams pairs to sync.\nThe group_id is required and the team_id is optional.\nIf the latter is omitted, a new team will be created from the group's data.\n",
14485
+ "items": {
14486
+ "type": "object",
14487
+ "required": [
14488
+ "group_id"
14489
+ ],
14490
+ "properties": {
14491
+ "group_id": {
14492
+ "type": "string",
14493
+ "description": "The unique identifier of the group for the given identity provider."
14494
+ },
14495
+ "team_id": {
14496
+ "type": "string",
14497
+ "description": "The unique identifier of the team for the given identity provider."
14498
+ }
14499
+ }
14500
+ }
14501
+ }
14502
+ }
14503
+ }
14504
+ }
14505
+ }
14506
+ },
13911
14507
  "responses": {
13912
14508
  "200": {
13913
- "description": "OK",
14509
+ "description": "A list of the results of the synchronization.\nThis will return regardless of the status of the sync.\nCheck the content to know if the sync was successful.\n",
13914
14510
  "content": {
13915
14511
  "application/json": {
13916
14512
  "schema": {
13917
- "allOf": [
13918
- {
13919
- "$ref": "#/components/schemas/List"
13920
- },
13921
- {
13922
- "type": "object",
13923
- "required": [
13924
- "items"
13925
- ],
13926
- "properties": {
13927
- "items": {
13928
- "type": "array",
13929
- "items": {
13930
- "type": "object",
13931
- "properties": {
13932
- "space": {
13933
- "$ref": "#/components/schemas/Space"
13934
- },
13935
- "gitSync": {
13936
- "$ref": "#/components/schemas/GitSyncState"
13937
- }
13938
- },
13939
- "required": [
13940
- "space"
13941
- ]
13942
- }
13943
- }
14513
+ "type": "object",
14514
+ "required": [
14515
+ "synced"
14516
+ ],
14517
+ "properties": {
14518
+ "synced": {
14519
+ "type": "array",
14520
+ "description": "The list of synced pairs, mapped to the original pairs given to the sync parameters.\nEither the group_id and team_id will be defined, or the error will be defined to describe why it failed.\nUse the success parameter to know if the pair sync was sucessful or not.\n",
14521
+ "items": {
14522
+ "$ref": "#/components/schemas/OrganizationDirectorySyncGroupTeamStatus"
13944
14523
  }
13945
14524
  }
13946
- ]
14525
+ }
13947
14526
  }
13948
14527
  }
13949
14528
  }
@@ -13954,11 +14533,10 @@
13954
14533
  }
13955
14534
  }
13956
14535
  },
13957
- "/orgs/{organizationId}/collections": {
14536
+ "/orgs/{organizationId}/custom-fields": {
13958
14537
  "get": {
13959
- "operationId": "listCollectionsInOrganizationById",
13960
- "summary": "List organization collections",
13961
- "description": "Lists collections for the specified organization.\n",
14538
+ "operationId": "listOrganizationCustomFields",
14539
+ "summary": "Get the custom fields for spaces in an organization",
13962
14540
  "tags": [
13963
14541
  "organizations"
13964
14542
  ],
@@ -13976,15 +14554,6 @@
13976
14554
  },
13977
14555
  {
13978
14556
  "$ref": "#/components/parameters/listLimit"
13979
- },
13980
- {
13981
- "name": "nested",
13982
- "in": "query",
13983
- "description": "If true, all nested collections will be listed",
13984
- "schema": {
13985
- "type": "boolean",
13986
- "default": true
13987
- }
13988
14557
  }
13989
14558
  ],
13990
14559
  "responses": {
@@ -14006,7 +14575,7 @@
14006
14575
  "items": {
14007
14576
  "type": "array",
14008
14577
  "items": {
14009
- "$ref": "#/components/schemas/Collection"
14578
+ "$ref": "#/components/schemas/CustomField"
14010
14579
  }
14011
14580
  }
14012
14581
  }
@@ -14020,19 +14589,16 @@
14020
14589
  "$ref": "#/components/responses/UnexpectedError"
14021
14590
  }
14022
14591
  }
14023
- }
14024
- },
14025
- "/orgs/{organizationId}/dsync": {
14592
+ },
14026
14593
  "post": {
14027
- "operationId": "setupDirectorySync",
14028
- "summary": "Set up Directory Sync in an organization.",
14594
+ "operationId": "createOrganizationCustomField",
14595
+ "summary": "Create a new custom field in an orgamization",
14029
14596
  "tags": [
14030
- "organizations",
14031
- "dsync"
14597
+ "organizations"
14032
14598
  ],
14033
14599
  "security": [
14034
14600
  {
14035
- "user-internal": []
14601
+ "user": []
14036
14602
  }
14037
14603
  ],
14038
14604
  "parameters": [
@@ -14040,22 +14606,49 @@
14040
14606
  "$ref": "#/components/parameters/organizationId"
14041
14607
  }
14042
14608
  ],
14609
+ "requestBody": {
14610
+ "required": true,
14611
+ "content": {
14612
+ "application/json": {
14613
+ "schema": {
14614
+ "type": "object",
14615
+ "properties": {
14616
+ "name": {
14617
+ "$ref": "#/components/schemas/CustomFieldName"
14618
+ },
14619
+ "type": {
14620
+ "$ref": "#/components/schemas/CustomFieldType"
14621
+ },
14622
+ "title": {
14623
+ "$ref": "#/components/schemas/CustomFieldTitle"
14624
+ },
14625
+ "description": {
14626
+ "$ref": "#/components/schemas/CustomFieldDescription"
14627
+ }
14628
+ },
14629
+ "required": [
14630
+ "name",
14631
+ "type"
14632
+ ]
14633
+ }
14634
+ }
14635
+ }
14636
+ },
14043
14637
  "responses": {
14044
- "200": {
14045
- "description": "Directory Sync has been properly initialized for the organization.",
14638
+ "201": {
14639
+ "description": "Custom field created",
14640
+ "headers": {
14641
+ "Location": {
14642
+ "description": "API URL for the newly created custom field",
14643
+ "schema": {
14644
+ "type": "string"
14645
+ }
14646
+ }
14647
+ },
14046
14648
  "content": {
14047
14649
  "application/json": {
14048
14650
  "schema": {
14049
- "type": "object",
14050
- "required": [
14051
- "setupUrl"
14052
- ],
14053
- "properties": {
14054
- "setupUrl": {
14055
- "description": "The URL to navigate to to continue Directory Sync setup.",
14056
- "type": "string"
14057
- }
14058
- }
14651
+ "$ref": "#/components/schemas/CustomField"
14059
14652
  }
14060
14653
  }
14061
14654
  }
@@ -14066,70 +14659,75 @@
14066
14659
  }
14067
14660
  }
14068
14661
  },
14069
- "/orgs/{organizationId}/dsync/groups": {
14662
+ "/orgs/{organizationId}/custom-fields/{fieldName}": {
14070
14663
  "get": {
14071
- "operationId": "listDirectorySyncGroups",
14072
- "summary": "Lists the groups exposed to the synced Directory on an organization.",
14664
+ "operationId": "getOrganizationCustomFieldByName",
14665
+ "summary": "Get a custom field by its name",
14073
14666
  "tags": [
14074
- "organizations",
14075
- "dsync"
14667
+ "organizations"
14076
14668
  ],
14077
14669
  "security": [
14078
14670
  {
14079
- "user-internal": []
14671
+ "user": []
14080
14672
  }
14081
14673
  ],
14082
14674
  "parameters": [
14083
14675
  {
14084
14676
  "$ref": "#/components/parameters/organizationId"
14677
+ },
14678
+ {
14679
+ "name": "fieldName",
14680
+ "in": "path",
14681
+ "required": true,
14682
+ "description": "The name of the custom field",
14683
+ "schema": {
14684
+ "type": "string"
14685
+ }
14085
14686
  }
14086
14687
  ],
14087
14688
  "responses": {
14088
14689
  "200": {
14089
- "description": "A list of all of a Directory's group configured for the given identity provider.\nOnly groups pushed to the SCIM sync will be listed in this result.\n",
14690
+ "description": "OK",
14090
14691
  "content": {
14091
14692
  "application/json": {
14092
14693
  "schema": {
14093
- "type": "object",
14094
- "description": "All the groups.",
14095
- "required": [
14096
- "groups"
14097
- ],
14098
- "properties": {
14099
- "groups": {
14100
- "type": "array",
14101
- "items": {
14102
- "$ref": "#/components/schemas/OrganizationDirectorySyncGroup"
14103
- }
14104
- }
14105
- }
14694
+ "$ref": "#/components/schemas/CustomField"
14106
14695
  }
14107
14696
  }
14108
14697
  }
14109
14698
  },
14699
+ "404": {
14700
+ "description": "No matching custom field found",
14701
+ "$ref": "#/components/responses/NotFoundError"
14702
+ },
14110
14703
  "default": {
14111
14704
  "$ref": "#/components/responses/UnexpectedError"
14112
14705
  }
14113
14706
  }
14114
- }
14115
- },
14116
- "/orgs/{organizationId}/dsync/teams": {
14117
- "post": {
14118
- "operationId": "syncDirectorySyncGroupsToTeams",
14119
- "summary": "Syncs a list of group/team unique identifiers pairs together.",
14120
- "description": "Each pair will lead the team being synced to the group (unless it is already synced to another) and the members of the group will then be synced to the team.\nEach sync is independent, the endpoint will still succeed if some of the syncs fail.\nCheck the response to know more about the success or failure of the entire sync.\n",
14707
+ },
14708
+ "patch": {
14709
+ "operationId": "updateOrganizationCustomField",
14710
+ "summary": "Update a custom field in an organization",
14121
14711
  "tags": [
14122
- "organizations",
14123
- "dsync"
14712
+ "organizations"
14124
14713
  ],
14125
14714
  "security": [
14126
14715
  {
14127
- "user-internal": []
14716
+ "user": []
14128
14717
  }
14129
14718
  ],
14130
14719
  "parameters": [
14131
14720
  {
14132
14721
  "$ref": "#/components/parameters/organizationId"
14722
+ },
14723
+ {
14724
+ "name": "fieldName",
14725
+ "in": "path",
14726
+ "required": true,
14727
+ "description": "The name of the custom field",
14728
+ "schema": {
14729
+ "type": "string"
14730
+ }
14133
14731
  }
14134
14732
  ],
14135
14733
  "requestBody": {
@@ -14138,55 +14736,112 @@
14138
14736
  "application/json": {
14139
14737
  "schema": {
14140
14738
  "type": "object",
14141
- "description": "Parameters for syncing a list of Directory Sync groups to a GitBook team, syncing all members of those groups to the assigned teams.\nThe endpoint can be used for one or many groups to team syncs.\n",
14142
- "required": [
14143
- "to_sync"
14144
- ],
14145
14739
  "properties": {
14146
- "to_sync": {
14147
- "type": "array",
14148
- "description": "A list of groups to teams pairs to sync.\nThe group_id is required and the team_id is optional.\nIf the latter is omitted, a new team will be created from the group's data.\n",
14149
- "items": {
14150
- "type": "object",
14151
- "required": [
14152
- "group_id"
14153
- ],
14154
- "properties": {
14155
- "group_id": {
14156
- "type": "string",
14157
- "description": "The unique identifier of the group for the given identity provider."
14158
- },
14159
- "team_id": {
14160
- "type": "string",
14161
- "description": "The unique identifier of the team for the given identity provider."
14162
- }
14163
- }
14164
- }
14740
+ "title": {
14741
+ "$ref": "#/components/schemas/CustomFieldTitle"
14742
+ },
14743
+ "description": {
14744
+ "$ref": "#/components/schemas/CustomFieldDescription"
14165
14745
  }
14166
14746
  }
14167
14747
  }
14168
14748
  }
14169
14749
  }
14170
- },
14750
+ },
14751
+ "responses": {
14752
+ "200": {
14753
+ "description": "OK",
14754
+ "content": {
14755
+ "application/json": {
14756
+ "schema": {
14757
+ "$ref": "#/components/schemas/CustomField"
14758
+ }
14759
+ }
14760
+ }
14761
+ },
14762
+ "default": {
14763
+ "$ref": "#/components/responses/UnexpectedError"
14764
+ }
14765
+ }
14766
+ },
14767
+ "delete": {
14768
+ "operationId": "deleteOrganizationCustomField",
14769
+ "summary": "Delete a custom field in an organization",
14770
+ "tags": [
14771
+ "organizations"
14772
+ ],
14773
+ "security": [
14774
+ {
14775
+ "user": []
14776
+ }
14777
+ ],
14778
+ "parameters": [
14779
+ {
14780
+ "$ref": "#/components/parameters/organizationId"
14781
+ },
14782
+ {
14783
+ "name": "fieldName",
14784
+ "in": "path",
14785
+ "required": true,
14786
+ "description": "The name of the custom field",
14787
+ "schema": {
14788
+ "type": "string"
14789
+ }
14790
+ }
14791
+ ],
14792
+ "responses": {
14793
+ "204": {
14794
+ "description": "Custom field has been deleted"
14795
+ },
14796
+ "default": {
14797
+ "$ref": "#/components/responses/UnexpectedError"
14798
+ }
14799
+ }
14800
+ }
14801
+ },
14802
+ "/orgs/{organizationId}/space-relations": {
14803
+ "get": {
14804
+ "operationId": "listSpaceRelationsInOrganization",
14805
+ "summary": "List all relations between spaces in an organization",
14806
+ "tags": [
14807
+ "spaces"
14808
+ ],
14809
+ "parameters": [
14810
+ {
14811
+ "$ref": "#/components/parameters/organizationId"
14812
+ },
14813
+ {
14814
+ "$ref": "#/components/parameters/listPage"
14815
+ },
14816
+ {
14817
+ "$ref": "#/components/parameters/listLimit"
14818
+ }
14819
+ ],
14171
14820
  "responses": {
14172
14821
  "200": {
14173
- "description": "A list of the results of the synchronization.\nThis will return regardless of the status of the sync.\nCheck the content to know if the sync was successful.\n",
14822
+ "description": "OK",
14174
14823
  "content": {
14175
14824
  "application/json": {
14176
14825
  "schema": {
14177
- "type": "object",
14178
- "required": [
14179
- "synced"
14180
- ],
14181
- "properties": {
14182
- "synced": {
14183
- "type": "array",
14184
- "description": "The list of synced pairs, mapped to the original pairs given to the sync parameters.\nEither the group_id and team_id will be defined, or the error will be defined to describe why it failed.\nUse the success parameter to know if the pair sync was sucessful or not.\n",
14185
- "items": {
14186
- "$ref": "#/components/schemas/OrganizationDirectorySyncGroupTeamStatus"
14826
+ "allOf": [
14827
+ {
14828
+ "$ref": "#/components/schemas/List"
14829
+ },
14830
+ {
14831
+ "type": "object",
14832
+ "required": [
14833
+ "items"
14834
+ ],
14835
+ "properties": {
14836
+ "items": {
14837
+ "type": "array",
14838
+ "items": {
14839
+ "$ref": "#/components/schemas/SpaceRelationPair"
14840
+ }
14841
+ }
14187
14842
  }
14188
14843
  }
14189
- }
14844
+ ]
14190
14845
  }
14191
14846
  }
14192
14847
  }
@@ -14197,12 +14852,13 @@
14197
14852
  }
14198
14853
  }
14199
14854
  },
14200
- "/orgs/{organizationId}/custom-fields": {
14855
+ "/orgs/{organizationId}/environments": {
14201
14856
  "get": {
14202
- "operationId": "listOrganizationCustomFields",
14203
- "summary": "Get the custom fields for spaces in an organization",
14857
+ "operationId": "listEnvironments",
14858
+ "summary": "Get the environments in an organization",
14204
14859
  "tags": [
14205
- "organizations"
14860
+ "organizations",
14861
+ "environments"
14206
14862
  ],
14207
14863
  "security": [
14208
14864
  {
@@ -14232,14 +14888,11 @@
14232
14888
  },
14233
14889
  {
14234
14890
  "type": "object",
14235
- "required": [
14236
- "items"
14237
- ],
14238
14891
  "properties": {
14239
14892
  "items": {
14240
14893
  "type": "array",
14241
14894
  "items": {
14242
- "$ref": "#/components/schemas/CustomField"
14895
+ "$ref": "#/components/schemas/Environment"
14243
14896
  }
14244
14897
  }
14245
14898
  }
@@ -14248,17 +14901,15 @@
14248
14901
  }
14249
14902
  }
14250
14903
  }
14251
- },
14252
- "default": {
14253
- "$ref": "#/components/responses/UnexpectedError"
14254
14904
  }
14255
14905
  }
14256
14906
  },
14257
14907
  "post": {
14258
- "operationId": "createOrganizationCustomField",
14259
- "summary": "Create a new custom field in an orgamization",
14908
+ "operationId": "createEnvironment",
14909
+ "summary": "Create a new environment within an organization",
14260
14910
  "tags": [
14261
- "organizations"
14911
+ "organizations",
14912
+ "environments"
14262
14913
  ],
14263
14914
  "security": [
14264
14915
  {
@@ -14275,35 +14926,17 @@
14275
14926
  "content": {
14276
14927
  "application/json": {
14277
14928
  "schema": {
14278
- "type": "object",
14279
- "properties": {
14280
- "name": {
14281
- "$ref": "#/components/schemas/CustomFieldName"
14282
- },
14283
- "type": {
14284
- "$ref": "#/components/schemas/CustomFieldType"
14285
- },
14286
- "title": {
14287
- "$ref": "#/components/schemas/CustomFieldTitle"
14288
- },
14289
- "description": {
14290
- "$ref": "#/components/schemas/CustomFieldDescription"
14291
- }
14292
- },
14293
- "required": [
14294
- "name",
14295
- "type"
14296
- ]
14929
+ "$ref": "#/components/schemas/CreateEnvironment"
14297
14930
  }
14298
14931
  }
14299
14932
  }
14300
14933
  },
14301
14934
  "responses": {
14302
14935
  "201": {
14303
- "description": "Custom field created",
14936
+ "description": "OK",
14304
14937
  "headers": {
14305
14938
  "Location": {
14306
- "description": "API URL for the newly created custom field",
14939
+ "description": "API URL for the newly created environment",
14307
14940
  "schema": {
14308
14941
  "type": "string"
14309
14942
  }
@@ -14312,7 +14945,7 @@
14312
14945
  "content": {
14313
14946
  "application/json": {
14314
14947
  "schema": {
14315
- "$ref": "#/components/schemas/CustomField"
14948
+ "$ref": "#/components/schemas/Environment"
14316
14949
  }
14317
14950
  }
14318
14951
  }
@@ -14323,12 +14956,13 @@
14323
14956
  }
14324
14957
  }
14325
14958
  },
14326
- "/orgs/{organizationId}/custom-fields/{fieldName}": {
14959
+ "/orgs/{organizationId}/environments/{environmentName}": {
14327
14960
  "get": {
14328
- "operationId": "getOrganizationCustomFieldByName",
14329
- "summary": "Get a custom field by its name",
14961
+ "operationId": "getEnvironmentByName",
14962
+ "summary": "Get an environment by its name",
14330
14963
  "tags": [
14331
- "organizations"
14964
+ "organizations",
14965
+ "environments"
14332
14966
  ],
14333
14967
  "security": [
14334
14968
  {
@@ -14340,13 +14974,7 @@
14340
14974
  "$ref": "#/components/parameters/organizationId"
14341
14975
  },
14342
14976
  {
14343
- "name": "fieldName",
14344
- "in": "path",
14345
- "required": true,
14346
- "description": "The name of the custom field",
14347
- "schema": {
14348
- "type": "string"
14349
- }
14977
+ "$ref": "#/components/parameters/environmentName"
14350
14978
  }
14351
14979
  ],
14352
14980
  "responses": {
@@ -14355,13 +14983,13 @@
14355
14983
  "content": {
14356
14984
  "application/json": {
14357
14985
  "schema": {
14358
- "$ref": "#/components/schemas/CustomField"
14986
+ "$ref": "#/components/schemas/Environment"
14359
14987
  }
14360
14988
  }
14361
14989
  }
14362
14990
  },
14363
14991
  "404": {
14364
- "description": "No matching custom field found",
14992
+ "description": "No matching environment found",
14365
14993
  "$ref": "#/components/responses/NotFoundError"
14366
14994
  },
14367
14995
  "default": {
@@ -14370,10 +14998,11 @@
14370
14998
  }
14371
14999
  },
14372
15000
  "patch": {
14373
- "operationId": "updateOrganizationCustomField",
14374
- "summary": "Update a custom field in an organization",
15001
+ "operationId": "updateEnvironment",
15002
+ "summary": "Update an existing environment within an organization",
14375
15003
  "tags": [
14376
- "organizations"
15004
+ "organizations",
15005
+ "environments"
14377
15006
  ],
14378
15007
  "security": [
14379
15008
  {
@@ -14385,13 +15014,7 @@
14385
15014
  "$ref": "#/components/parameters/organizationId"
14386
15015
  },
14387
15016
  {
14388
- "name": "fieldName",
14389
- "in": "path",
14390
- "required": true,
14391
- "description": "The name of the custom field",
14392
- "schema": {
14393
- "type": "string"
14394
- }
15017
+ "$ref": "#/components/parameters/environmentName"
14395
15018
  }
14396
15019
  ],
14397
15020
  "requestBody": {
@@ -14399,15 +15022,7 @@
14399
15022
  "content": {
14400
15023
  "application/json": {
14401
15024
  "schema": {
14402
- "type": "object",
14403
- "properties": {
14404
- "title": {
14405
- "$ref": "#/components/schemas/CustomFieldTitle"
14406
- },
14407
- "description": {
14408
- "$ref": "#/components/schemas/CustomFieldDescription"
14409
- }
14410
- }
15025
+ "$ref": "#/components/schemas/UpdateEnvironment"
14411
15026
  }
14412
15027
  }
14413
15028
  }
@@ -14418,7 +15033,7 @@
14418
15033
  "content": {
14419
15034
  "application/json": {
14420
15035
  "schema": {
14421
- "$ref": "#/components/schemas/CustomField"
15036
+ "$ref": "#/components/schemas/Environment"
14422
15037
  }
14423
15038
  }
14424
15039
  }
@@ -14429,10 +15044,11 @@
14429
15044
  }
14430
15045
  },
14431
15046
  "delete": {
14432
- "operationId": "deleteOrganizationCustomField",
14433
- "summary": "Delete a custom field in an organization",
15047
+ "operationId": "deleteEnvironment",
15048
+ "summary": "Delete an environment in an organization",
14434
15049
  "tags": [
14435
- "organizations"
15050
+ "organizations",
15051
+ "environments"
14436
15052
  ],
14437
15053
  "security": [
14438
15054
  {
@@ -14444,18 +15060,12 @@
14444
15060
  "$ref": "#/components/parameters/organizationId"
14445
15061
  },
14446
15062
  {
14447
- "name": "fieldName",
14448
- "in": "path",
14449
- "required": true,
14450
- "description": "The name of the custom field",
14451
- "schema": {
14452
- "type": "string"
14453
- }
15063
+ "$ref": "#/components/parameters/environmentName"
14454
15064
  }
14455
15065
  ],
14456
15066
  "responses": {
14457
15067
  "204": {
14458
- "description": "Custom field has been deleted"
15068
+ "description": "Environment has been deleted"
14459
15069
  },
14460
15070
  "default": {
14461
15071
  "$ref": "#/components/responses/UnexpectedError"
@@ -14463,12 +15073,17 @@
14463
15073
  }
14464
15074
  }
14465
15075
  },
14466
- "/orgs/{organizationId}/space-relations": {
15076
+ "/orgs/{organizationId}/schemas": {
14467
15077
  "get": {
14468
- "operationId": "listSpaceRelationsInOrganization",
14469
- "summary": "List all relations between spaces in an organization",
15078
+ "operationId": "listEntitySchemas",
15079
+ "summary": "List the entity schemas in an organization.",
14470
15080
  "tags": [
14471
- "spaces"
15081
+ "organizations"
15082
+ ],
15083
+ "security": [
15084
+ {
15085
+ "user": []
15086
+ }
14472
15087
  ],
14473
15088
  "parameters": [
14474
15089
  {
@@ -14500,7 +15115,7 @@
14500
15115
  "items": {
14501
15116
  "type": "array",
14502
15117
  "items": {
14503
- "$ref": "#/components/schemas/SpaceRelationPair"
15118
+ "$ref": "#/components/schemas/EntitySchema"
14504
15119
  }
14505
15120
  }
14506
15121
  }
@@ -14516,22 +15131,24 @@
14516
15131
  }
14517
15132
  }
14518
15133
  },
14519
- "/orgs/{organizationId}/entities": {
15134
+ "/orgs/{organizationId}/schemas/{entityType}": {
14520
15135
  "get": {
14521
- "operationId": "listEntitiesInOrganization",
14522
- "summary": "List all entities in an organization.",
15136
+ "operationId": "getEntitySchema",
15137
+ "summary": "Get an entity schema by its type.",
14523
15138
  "tags": [
14524
- "spaces"
15139
+ "organizations"
15140
+ ],
15141
+ "security": [
15142
+ {
15143
+ "user": []
15144
+ }
14525
15145
  ],
14526
15146
  "parameters": [
14527
15147
  {
14528
15148
  "$ref": "#/components/parameters/organizationId"
14529
15149
  },
14530
15150
  {
14531
- "$ref": "#/components/parameters/listPage"
14532
- },
14533
- {
14534
- "$ref": "#/components/parameters/listLimit"
15151
+ "$ref": "#/components/parameters/entityType"
14535
15152
  }
14536
15153
  ],
14537
15154
  "responses": {
@@ -14540,25 +15157,7 @@
14540
15157
  "content": {
14541
15158
  "application/json": {
14542
15159
  "schema": {
14543
- "allOf": [
14544
- {
14545
- "$ref": "#/components/schemas/List"
14546
- },
14547
- {
14548
- "type": "object",
14549
- "required": [
14550
- "items"
14551
- ],
14552
- "properties": {
14553
- "items": {
14554
- "type": "array",
14555
- "items": {
14556
- "$ref": "#/components/schemas/IntegrationEntity"
14557
- }
14558
- }
14559
- }
14560
- }
14561
- ]
15160
+ "$ref": "#/components/schemas/EntitySchema"
14562
15161
  }
14563
15162
  }
14564
15163
  }
@@ -14567,15 +15166,80 @@
14567
15166
  "$ref": "#/components/responses/UnexpectedError"
14568
15167
  }
14569
15168
  }
15169
+ },
15170
+ "put": {
15171
+ "operationId": "setEntitySchema",
15172
+ "summary": "Create or update an entity schema.",
15173
+ "tags": [
15174
+ "organizations"
15175
+ ],
15176
+ "security": [
15177
+ {
15178
+ "user": []
15179
+ }
15180
+ ],
15181
+ "parameters": [
15182
+ {
15183
+ "$ref": "#/components/parameters/organizationId"
15184
+ },
15185
+ {
15186
+ "$ref": "#/components/parameters/entityType"
15187
+ }
15188
+ ],
15189
+ "requestBody": {
15190
+ "required": true,
15191
+ "content": {
15192
+ "application/json": {
15193
+ "schema": {
15194
+ "$ref": "#/components/schemas/EntityRawSchema"
15195
+ }
15196
+ }
15197
+ }
15198
+ },
15199
+ "responses": {
15200
+ "204": {
15201
+ "description": "OK"
15202
+ },
15203
+ "default": {
15204
+ "$ref": "#/components/responses/UnexpectedError"
15205
+ }
15206
+ }
15207
+ },
15208
+ "delete": {
15209
+ "operationId": "deleteEntitySchema",
15210
+ "summary": "Delete an entity schema.",
15211
+ "tags": [
15212
+ "organizations"
15213
+ ],
15214
+ "security": [
15215
+ {
15216
+ "user": []
15217
+ }
15218
+ ],
15219
+ "parameters": [
15220
+ {
15221
+ "$ref": "#/components/parameters/organizationId"
15222
+ },
15223
+ {
15224
+ "$ref": "#/components/parameters/entityType"
15225
+ }
15226
+ ],
15227
+ "responses": {
15228
+ "204": {
15229
+ "description": "OK"
15230
+ },
15231
+ "default": {
15232
+ "$ref": "#/components/responses/UnexpectedError"
15233
+ }
15234
+ }
14570
15235
  }
14571
15236
  },
14572
- "/orgs/{organizationId}/environments": {
15237
+ "/orgs/{organizationId}/schemas/{entityType}/entities": {
14573
15238
  "get": {
14574
- "operationId": "listEnvironments",
14575
- "summary": "Get the environments in an organization",
15239
+ "operationId": "listSchemaEntities",
15240
+ "summary": "List entities in an organization for a given type.",
14576
15241
  "tags": [
14577
- "organizations",
14578
- "environments"
15242
+ "organizations"
14579
15243
  ],
14580
15244
  "security": [
14581
15245
  {
@@ -14586,11 +15250,22 @@
14586
15250
  {
14587
15251
  "$ref": "#/components/parameters/organizationId"
14588
15252
  },
15253
+ {
15254
+ "$ref": "#/components/parameters/entityType"
15255
+ },
14589
15256
  {
14590
15257
  "$ref": "#/components/parameters/listPage"
14591
15258
  },
14592
15259
  {
14593
15260
  "$ref": "#/components/parameters/listLimit"
15261
+ },
15262
+ {
15263
+ "name": "query",
15264
+ "in": "query",
15265
+ "description": "Query to filter entities with, ex: a == 'something' && b >= 10",
15266
+ "schema": {
15267
+ "type": "string"
15268
+ }
14594
15269
  }
14595
15270
  ],
14596
15271
  "responses": {
@@ -14605,11 +15280,14 @@
14605
15280
  },
14606
15281
  {
14607
15282
  "type": "object",
15283
+ "required": [
15284
+ "items"
15285
+ ],
14608
15286
  "properties": {
14609
15287
  "items": {
14610
15288
  "type": "array",
14611
15289
  "items": {
14612
- "$ref": "#/components/schemas/Environment"
15290
+ "$ref": "#/components/schemas/Entity"
14613
15291
  }
14614
15292
  }
14615
15293
  }
@@ -14618,15 +15296,17 @@
14618
15296
  }
14619
15297
  }
14620
15298
  }
15299
+ },
15300
+ "default": {
15301
+ "$ref": "#/components/responses/UnexpectedError"
14621
15302
  }
14622
15303
  }
14623
15304
  },
14624
- "post": {
14625
- "operationId": "createEnvironment",
14626
- "summary": "Create a new environment within an organization",
15305
+ "put": {
15306
+ "operationId": "upsertSchemaEntities",
15307
+ "summary": "Update/Create/Delete entities in a schema.",
14627
15308
  "tags": [
14628
- "organizations",
14629
- "environments"
15309
+ "organizations"
14630
15310
  ],
14631
15311
  "security": [
14632
15312
  {
@@ -14636,6 +15316,9 @@
14636
15316
  "parameters": [
14637
15317
  {
14638
15318
  "$ref": "#/components/parameters/organizationId"
15319
+ },
15320
+ {
15321
+ "$ref": "#/components/parameters/entityType"
14639
15322
  }
14640
15323
  ],
14641
15324
  "requestBody": {
@@ -14643,29 +15326,41 @@
14643
15326
  "content": {
14644
15327
  "application/json": {
14645
15328
  "schema": {
14646
- "$ref": "#/components/schemas/CreateEnvironment"
15329
+ "type": "object",
15330
+ "required": [
15331
+ "entities"
15332
+ ],
15333
+ "properties": {
15334
+ "delete": {
15335
+ "oneOf": [
15336
+ {
15337
+ "type": "boolean",
15338
+ "description": "If true, all entities not listed in the requests will be deleted"
15339
+ },
15340
+ {
15341
+ "type": "array",
15342
+ "description": "List of entityIds to delete",
15343
+ "items": {
15344
+ "$ref": "#/components/schemas/EntityId"
15345
+ }
15346
+ }
15347
+ ]
15348
+ },
15349
+ "entities": {
15350
+ "type": "array",
15351
+ "description": "Array of entities to create/update.",
15352
+ "items": {
15353
+ "$ref": "#/components/schemas/UpsertEntity"
15354
+ }
15355
+ }
15356
+ }
14647
15357
  }
14648
15358
  }
14649
15359
  }
14650
15360
  },
14651
15361
  "responses": {
14652
- "201": {
14653
- "description": "OK",
14654
- "headers": {
14655
- "Location": {
14656
- "description": "API URL for the newly created environment",
14657
- "schema": {
14658
- "type": "string"
14659
- }
14660
- }
14661
- },
14662
- "content": {
14663
- "application/json": {
14664
- "schema": {
14665
- "$ref": "#/components/schemas/Environment"
14666
- }
14667
- }
14668
- }
15362
+ "204": {
15363
+ "description": "OK"
14669
15364
  },
14670
15365
  "default": {
14671
15366
  "$ref": "#/components/responses/UnexpectedError"
@@ -14673,13 +15368,12 @@
14673
15368
  }
14674
15369
  }
14675
15370
  },
14676
- "/orgs/{organizationId}/environments/{environmentName}": {
15371
+ "/orgs/{organizationId}/schemas/{entityType}/entities/{entityId}": {
14677
15372
  "get": {
14678
- "operationId": "getEnvironmentByName",
14679
- "summary": "Get an environment by its name",
15373
+ "operationId": "getEntity",
15374
+ "summary": "Get an entity using its ID.",
14680
15375
  "tags": [
14681
- "organizations",
14682
- "environments"
15376
+ "organizations"
14683
15377
  ],
14684
15378
  "security": [
14685
15379
  {
@@ -14691,7 +15385,10 @@
14691
15385
  "$ref": "#/components/parameters/organizationId"
14692
15386
  },
14693
15387
  {
14694
- "$ref": "#/components/parameters/environmentName"
15388
+ "$ref": "#/components/parameters/entityType"
15389
+ },
15390
+ {
15391
+ "$ref": "#/components/parameters/entityId"
14695
15392
  }
14696
15393
  ],
14697
15394
  "responses": {
@@ -14700,26 +15397,24 @@
14700
15397
  "content": {
14701
15398
  "application/json": {
14702
15399
  "schema": {
14703
- "$ref": "#/components/schemas/Environment"
15400
+ "$ref": "#/components/schemas/Entity"
14704
15401
  }
14705
15402
  }
14706
15403
  }
14707
15404
  },
14708
- "404": {
14709
- "description": "No matching environment found",
14710
- "$ref": "#/components/responses/NotFoundError"
14711
- },
14712
15405
  "default": {
14713
15406
  "$ref": "#/components/responses/UnexpectedError"
14714
15407
  }
14715
15408
  }
14716
- },
14717
- "patch": {
14718
- "operationId": "updateEnvironment",
14719
- "summary": "Update an existing environment within an organization",
15409
+ }
15410
+ },
15411
+ "/orgs/{organizationId}/recordings": {
15412
+ "get": {
15413
+ "operationId": "listRecordings",
15414
+ "summary": "List recordings",
15415
+ "description": "List recordings in an organization.\n",
14720
15416
  "tags": [
14721
- "organizations",
14722
- "environments"
15417
+ "organizations"
14723
15418
  ],
14724
15419
  "security": [
14725
15420
  {
@@ -14731,26 +15426,37 @@
14731
15426
  "$ref": "#/components/parameters/organizationId"
14732
15427
  },
14733
15428
  {
14734
- "$ref": "#/components/parameters/environmentName"
15429
+ "$ref": "#/components/parameters/listPage"
15430
+ },
15431
+ {
15432
+ "$ref": "#/components/parameters/listLimit"
14735
15433
  }
14736
15434
  ],
14737
- "requestBody": {
14738
- "required": true,
14739
- "content": {
14740
- "application/json": {
14741
- "schema": {
14742
- "$ref": "#/components/schemas/UpdateEnvironment"
14743
- }
14744
- }
14745
- }
14746
- },
14747
15435
  "responses": {
14748
15436
  "200": {
14749
15437
  "description": "OK",
14750
15438
  "content": {
14751
15439
  "application/json": {
14752
15440
  "schema": {
14753
- "$ref": "#/components/schemas/Environment"
15441
+ "allOf": [
15442
+ {
15443
+ "$ref": "#/components/schemas/List"
15444
+ },
15445
+ {
15446
+ "type": "object",
15447
+ "required": [
15448
+ "items"
15449
+ ],
15450
+ "properties": {
15451
+ "items": {
15452
+ "type": "array",
15453
+ "items": {
15454
+ "$ref": "#/components/schemas/Recording"
15455
+ }
15456
+ }
15457
+ }
15458
+ }
15459
+ ]
14754
15460
  }
14755
15461
  }
14756
15462
  }
@@ -14760,37 +15466,6 @@
14760
15466
  }
14761
15467
  }
14762
15468
  },
14763
- "delete": {
14764
- "operationId": "deleteEnvironment",
14765
- "summary": "Delete an environment in an organization",
14766
- "tags": [
14767
- "organizations",
14768
- "environments"
14769
- ],
14770
- "security": [
14771
- {
14772
- "user": []
14773
- }
14774
- ],
14775
- "parameters": [
14776
- {
14777
- "$ref": "#/components/parameters/organizationId"
14778
- },
14779
- {
14780
- "$ref": "#/components/parameters/environmentName"
14781
- }
14782
- ],
14783
- "responses": {
14784
- "204": {
14785
- "description": "Environment has been deleted"
14786
- },
14787
- "default": {
14788
- "$ref": "#/components/responses/UnexpectedError"
14789
- }
14790
- }
14791
- }
14792
- },
14793
- "/orgs/{organizationId}/recordings": {
14794
15469
  "post": {
14795
15470
  "operationId": "startRecording",
14796
15471
  "summary": "Start a recording",
@@ -14813,16 +15488,23 @@
14813
15488
  "schema": {
14814
15489
  "type": "object",
14815
15490
  "properties": {
14816
- "space": {
14817
- "description": "The space in which the docs should be generated",
14818
- "type": "string"
15491
+ "title": {
15492
+ "$ref": "#/components/schemas/RecordingTitle"
14819
15493
  },
14820
15494
  "context": {
14821
15495
  "$ref": "#/components/schemas/RecordingContext"
15496
+ },
15497
+ "externalId": {
15498
+ "type": "string",
15499
+ "description": "ID in the original source of the recording."
15500
+ },
15501
+ "externalURL": {
15502
+ "type": "string",
15503
+ "format": "uri",
15504
+ "description": "URL of the original source of the recording."
14822
15505
  }
14823
15506
  },
14824
15507
  "required": [
14825
- "space",
14826
15508
  "context"
14827
15509
  ]
14828
15510
  }
@@ -14854,6 +15536,43 @@
14854
15536
  }
14855
15537
  }
14856
15538
  },
15539
+ "/orgs/{organizationId}/recordings/{recordingId}": {
15540
+ "get": {
15541
+ "operationId": "getRecording",
15542
+ "summary": "Get a recording by its ID",
15543
+ "tags": [
15544
+ "organizations"
15545
+ ],
15546
+ "security": [
15547
+ {
15548
+ "user": []
15549
+ }
15550
+ ],
15551
+ "parameters": [
15552
+ {
15553
+ "$ref": "#/components/parameters/organizationId"
15554
+ },
15555
+ {
15556
+ "$ref": "#/components/parameters/recordingId"
15557
+ }
15558
+ ],
15559
+ "responses": {
15560
+ "200": {
15561
+ "description": "OK",
15562
+ "content": {
15563
+ "application/json": {
15564
+ "schema": {
15565
+ "$ref": "#/components/schemas/Recording"
15566
+ }
15567
+ }
15568
+ }
15569
+ },
15570
+ "default": {
15571
+ "$ref": "#/components/responses/UnexpectedError"
15572
+ }
15573
+ }
15574
+ }
15575
+ },
14857
15576
  "/orgs/{organizationId}/recordings/{recordingId}/events": {
14858
15577
  "post": {
14859
15578
  "operationId": "addEventsToRecording",
@@ -14895,7 +15614,7 @@
14895
15614
  }
14896
15615
  },
14897
15616
  "responses": {
14898
- "200": {
15617
+ "204": {
14899
15618
  "description": "Events added"
14900
15619
  },
14901
15620
  "default": {
@@ -14924,6 +15643,24 @@
14924
15643
  "$ref": "#/components/parameters/recordingId"
14925
15644
  }
14926
15645
  ],
15646
+ "requestBody": {
15647
+ "content": {
15648
+ "application/json": {
15649
+ "schema": {
15650
+ "type": "object",
15651
+ "properties": {
15652
+ "space": {
15653
+ "description": "The space in which the docs should be generated",
15654
+ "type": "string"
15655
+ }
15656
+ },
15657
+ "required": [
15658
+ "space"
15659
+ ]
15660
+ }
15661
+ }
15662
+ }
15663
+ },
14927
15664
  "responses": {
14928
15665
  "200": {
14929
15666
  "description": "Recording stopped",
@@ -14932,13 +15669,19 @@
14932
15669
  "schema": {
14933
15670
  "type": "object",
14934
15671
  "properties": {
14935
- "url": {
14936
- "description": "URL of the generated document",
14937
- "type": "string"
15672
+ "recording": {
15673
+ "$ref": "#/components/schemas/RecordingOutput"
15674
+ },
15675
+ "followupQuestions": {
15676
+ "description": "Example questions that would be answered by the content of this recording.",
15677
+ "type": "array",
15678
+ "items": {
15679
+ "type": "string"
15680
+ }
14938
15681
  }
14939
15682
  },
14940
15683
  "required": [
14941
- "url"
15684
+ "recording"
14942
15685
  ]
14943
15686
  }
14944
15687
  }