@gitbook/api 0.8.0 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +139 -85
- package/dist/index.cjs +43 -16
- package/dist/index.js +41 -15
- package/package.json +1 -1
- package/spec/openapi.json +388 -164
- package/spec/openapi.yaml +277 -133
package/spec/openapi.json
CHANGED
|
@@ -203,11 +203,11 @@
|
|
|
203
203
|
"type": "string"
|
|
204
204
|
}
|
|
205
205
|
},
|
|
206
|
-
"
|
|
207
|
-
"name": "
|
|
206
|
+
"captureId": {
|
|
207
|
+
"name": "captureId",
|
|
208
208
|
"in": "path",
|
|
209
209
|
"required": true,
|
|
210
|
-
"description": "The unique id of a
|
|
210
|
+
"description": "The unique id of a capture",
|
|
211
211
|
"schema": {
|
|
212
212
|
"type": "string"
|
|
213
213
|
}
|
|
@@ -505,6 +505,7 @@
|
|
|
505
505
|
}
|
|
506
506
|
},
|
|
507
507
|
"required": [
|
|
508
|
+
"organization",
|
|
508
509
|
"title",
|
|
509
510
|
"description",
|
|
510
511
|
"script",
|
|
@@ -903,12 +904,64 @@
|
|
|
903
904
|
"photoURL": {
|
|
904
905
|
"type": "string",
|
|
905
906
|
"description": "URL of the user's profile picture"
|
|
907
|
+
},
|
|
908
|
+
"urls": {
|
|
909
|
+
"type": "object",
|
|
910
|
+
"description": "URLs associated with the object",
|
|
911
|
+
"properties": {
|
|
912
|
+
"location": {
|
|
913
|
+
"type": "string",
|
|
914
|
+
"description": "URL of the user in the API",
|
|
915
|
+
"format": "uri"
|
|
916
|
+
}
|
|
917
|
+
}
|
|
906
918
|
}
|
|
907
919
|
},
|
|
908
920
|
"required": [
|
|
909
921
|
"object",
|
|
910
922
|
"id",
|
|
911
|
-
"displayName"
|
|
923
|
+
"displayName",
|
|
924
|
+
"urls"
|
|
925
|
+
]
|
|
926
|
+
},
|
|
927
|
+
"UserPreferences": {
|
|
928
|
+
"type": "object",
|
|
929
|
+
"properties": {
|
|
930
|
+
"object": {
|
|
931
|
+
"type": "string",
|
|
932
|
+
"description": "Type of Object, always equals to \"user-preferences\"",
|
|
933
|
+
"enum": [
|
|
934
|
+
"user-preferences"
|
|
935
|
+
]
|
|
936
|
+
},
|
|
937
|
+
"theme": {
|
|
938
|
+
"$ref": "#/components/schemas/UserPreferencesTheme"
|
|
939
|
+
},
|
|
940
|
+
"urls": {
|
|
941
|
+
"type": "object",
|
|
942
|
+
"description": "URLs associated with the object",
|
|
943
|
+
"properties": {
|
|
944
|
+
"location": {
|
|
945
|
+
"type": "string",
|
|
946
|
+
"description": "URL of the user preferences in the API",
|
|
947
|
+
"format": "uri"
|
|
948
|
+
}
|
|
949
|
+
}
|
|
950
|
+
}
|
|
951
|
+
},
|
|
952
|
+
"required": [
|
|
953
|
+
"object",
|
|
954
|
+
"theme",
|
|
955
|
+
"urls"
|
|
956
|
+
]
|
|
957
|
+
},
|
|
958
|
+
"UserPreferencesTheme": {
|
|
959
|
+
"type": "string",
|
|
960
|
+
"description": "Preferred theme for the application",
|
|
961
|
+
"enum": [
|
|
962
|
+
"light",
|
|
963
|
+
"dark",
|
|
964
|
+
"default"
|
|
912
965
|
]
|
|
913
966
|
},
|
|
914
967
|
"UserAPIToken": {
|
|
@@ -954,17 +1007,6 @@
|
|
|
954
1007
|
}
|
|
955
1008
|
]
|
|
956
1009
|
},
|
|
957
|
-
"UserTarget": {
|
|
958
|
-
"type": "object",
|
|
959
|
-
"required": [
|
|
960
|
-
"user"
|
|
961
|
-
],
|
|
962
|
-
"properties": {
|
|
963
|
-
"user": {
|
|
964
|
-
"type": "string"
|
|
965
|
-
}
|
|
966
|
-
}
|
|
967
|
-
},
|
|
968
1010
|
"Team": {
|
|
969
1011
|
"type": "object",
|
|
970
1012
|
"properties": {
|
|
@@ -1419,16 +1461,6 @@
|
|
|
1419
1461
|
"type": "string",
|
|
1420
1462
|
"description": "ID of the organization owning this space"
|
|
1421
1463
|
},
|
|
1422
|
-
"user": {
|
|
1423
|
-
"type": "string",
|
|
1424
|
-
"description": "ID of the user owning this space",
|
|
1425
|
-
"deprecated": true
|
|
1426
|
-
},
|
|
1427
|
-
"private": {
|
|
1428
|
-
"type": "string",
|
|
1429
|
-
"description": "If the space is part of the private content of a user, the property is equal to the ID of the user owning it",
|
|
1430
|
-
"deprecated": true
|
|
1431
|
-
},
|
|
1432
1464
|
"parent": {
|
|
1433
1465
|
"type": "string",
|
|
1434
1466
|
"description": "ID of the parent collection."
|
|
@@ -1439,6 +1471,7 @@
|
|
|
1439
1471
|
"id",
|
|
1440
1472
|
"type",
|
|
1441
1473
|
"title",
|
|
1474
|
+
"organization",
|
|
1442
1475
|
"visibility",
|
|
1443
1476
|
"createdAt",
|
|
1444
1477
|
"updatedAt",
|
|
@@ -2364,34 +2397,27 @@
|
|
|
2364
2397
|
"participant"
|
|
2365
2398
|
]
|
|
2366
2399
|
},
|
|
2367
|
-
"
|
|
2400
|
+
"Capture": {
|
|
2368
2401
|
"type": "object",
|
|
2369
2402
|
"properties": {
|
|
2370
|
-
"object": {
|
|
2371
|
-
"type": "string",
|
|
2372
|
-
"description": "Type of Object, always equals to \"recording\"",
|
|
2373
|
-
"enum": [
|
|
2374
|
-
"recording"
|
|
2375
|
-
]
|
|
2376
|
-
},
|
|
2377
2403
|
"id": {
|
|
2378
2404
|
"type": "string",
|
|
2379
|
-
"description": "Unique identifier for the
|
|
2405
|
+
"description": "Unique identifier for the capture"
|
|
2380
2406
|
},
|
|
2381
2407
|
"title": {
|
|
2382
|
-
"$ref": "#/components/schemas/
|
|
2408
|
+
"$ref": "#/components/schemas/CaptureTitle"
|
|
2383
2409
|
},
|
|
2384
2410
|
"context": {
|
|
2385
|
-
"$ref": "#/components/schemas/
|
|
2411
|
+
"$ref": "#/components/schemas/CaptureContext"
|
|
2386
2412
|
},
|
|
2387
2413
|
"externalId": {
|
|
2388
2414
|
"type": "string",
|
|
2389
|
-
"description": "ID in the original source of the
|
|
2415
|
+
"description": "ID in the original source of the capture."
|
|
2390
2416
|
},
|
|
2391
2417
|
"externalURL": {
|
|
2392
2418
|
"type": "string",
|
|
2393
2419
|
"format": "uri",
|
|
2394
|
-
"description": "URL of the source from which the
|
|
2420
|
+
"description": "URL of the source from which the capture originated"
|
|
2395
2421
|
},
|
|
2396
2422
|
"createdAt": {
|
|
2397
2423
|
"type": "string",
|
|
@@ -2416,6 +2442,7 @@
|
|
|
2416
2442
|
}
|
|
2417
2443
|
},
|
|
2418
2444
|
"contributors": {
|
|
2445
|
+
"description": "An array of contributors to the capture. The first contributor is the one who triggered the capture (either a user or an integration).",
|
|
2419
2446
|
"type": "array",
|
|
2420
2447
|
"minItems": 1,
|
|
2421
2448
|
"items": {
|
|
@@ -2430,8 +2457,8 @@
|
|
|
2430
2457
|
}
|
|
2431
2458
|
},
|
|
2432
2459
|
"output": {
|
|
2433
|
-
"description": "Output document for the
|
|
2434
|
-
"$ref": "#/components/schemas/
|
|
2460
|
+
"description": "Output document for the capture. Is not set when capture is not finished.",
|
|
2461
|
+
"$ref": "#/components/schemas/Document"
|
|
2435
2462
|
},
|
|
2436
2463
|
"urls": {
|
|
2437
2464
|
"type": "object",
|
|
@@ -2439,7 +2466,7 @@
|
|
|
2439
2466
|
"properties": {
|
|
2440
2467
|
"location": {
|
|
2441
2468
|
"type": "string",
|
|
2442
|
-
"description": "URL of the
|
|
2469
|
+
"description": "URL of the capture in the API",
|
|
2443
2470
|
"format": "uri"
|
|
2444
2471
|
}
|
|
2445
2472
|
},
|
|
@@ -2459,55 +2486,34 @@
|
|
|
2459
2486
|
"urls"
|
|
2460
2487
|
]
|
|
2461
2488
|
},
|
|
2462
|
-
"
|
|
2489
|
+
"CaptureTitle": {
|
|
2463
2490
|
"type": "string",
|
|
2464
|
-
"description": "Optional title describing the
|
|
2491
|
+
"description": "Optional title describing the capture",
|
|
2465
2492
|
"maxLength": 100
|
|
2466
2493
|
},
|
|
2467
|
-
"
|
|
2468
|
-
"type": "object",
|
|
2469
|
-
"properties": {
|
|
2470
|
-
"url": {
|
|
2471
|
-
"type": "string",
|
|
2472
|
-
"format": "uri",
|
|
2473
|
-
"description": "URL of the generated page"
|
|
2474
|
-
},
|
|
2475
|
-
"space": {
|
|
2476
|
-
"$ref": "#/components/schemas/Space"
|
|
2477
|
-
},
|
|
2478
|
-
"page": {
|
|
2479
|
-
"$ref": "#/components/schemas/RevisionPageDocument"
|
|
2480
|
-
}
|
|
2481
|
-
},
|
|
2482
|
-
"required": [
|
|
2483
|
-
"url",
|
|
2484
|
-
"space",
|
|
2485
|
-
"page"
|
|
2486
|
-
]
|
|
2487
|
-
},
|
|
2488
|
-
"RecordingEvent": {
|
|
2494
|
+
"CaptureEvent": {
|
|
2489
2495
|
"oneOf": [
|
|
2490
2496
|
{
|
|
2491
|
-
"$ref": "#/components/schemas/
|
|
2497
|
+
"$ref": "#/components/schemas/CaptureTerminalCommandEvent"
|
|
2492
2498
|
},
|
|
2493
2499
|
{
|
|
2494
|
-
"$ref": "#/components/schemas/
|
|
2500
|
+
"$ref": "#/components/schemas/CaptureSpeechEvent"
|
|
2495
2501
|
},
|
|
2496
2502
|
{
|
|
2497
|
-
"$ref": "#/components/schemas/
|
|
2503
|
+
"$ref": "#/components/schemas/CaptureThreadMessageEvent"
|
|
2498
2504
|
},
|
|
2499
2505
|
{
|
|
2500
|
-
"$ref": "#/components/schemas/
|
|
2506
|
+
"$ref": "#/components/schemas/CaptureFileAddedEvent"
|
|
2501
2507
|
},
|
|
2502
2508
|
{
|
|
2503
|
-
"$ref": "#/components/schemas/
|
|
2509
|
+
"$ref": "#/components/schemas/CaptureFileChangedEvent"
|
|
2504
2510
|
},
|
|
2505
2511
|
{
|
|
2506
|
-
"$ref": "#/components/schemas/
|
|
2512
|
+
"$ref": "#/components/schemas/CaptureFileRemovedEvent"
|
|
2507
2513
|
}
|
|
2508
2514
|
]
|
|
2509
2515
|
},
|
|
2510
|
-
"
|
|
2516
|
+
"CaptureContext": {
|
|
2511
2517
|
"oneOf": [
|
|
2512
2518
|
{
|
|
2513
2519
|
"type": "string",
|
|
@@ -2519,7 +2525,7 @@
|
|
|
2519
2525
|
}
|
|
2520
2526
|
]
|
|
2521
2527
|
},
|
|
2522
|
-
"
|
|
2528
|
+
"BaseCaptureEvent": {
|
|
2523
2529
|
"type": "object",
|
|
2524
2530
|
"properties": {
|
|
2525
2531
|
"type": {
|
|
@@ -2538,7 +2544,7 @@
|
|
|
2538
2544
|
},
|
|
2539
2545
|
"actor": {
|
|
2540
2546
|
"type": "object",
|
|
2541
|
-
"description": "Optionally, provide the actor of the event, in the context of multiple people contributing to the
|
|
2547
|
+
"description": "Optionally, provide the actor of the event, in the context of multiple people contributing to the capture.",
|
|
2542
2548
|
"properties": {
|
|
2543
2549
|
"name": {
|
|
2544
2550
|
"type": "string"
|
|
@@ -2554,10 +2560,10 @@
|
|
|
2554
2560
|
"timestamp"
|
|
2555
2561
|
]
|
|
2556
2562
|
},
|
|
2557
|
-
"
|
|
2563
|
+
"CaptureSpeechEvent": {
|
|
2558
2564
|
"allOf": [
|
|
2559
2565
|
{
|
|
2560
|
-
"$ref": "#/components/schemas/
|
|
2566
|
+
"$ref": "#/components/schemas/BaseCaptureEvent"
|
|
2561
2567
|
},
|
|
2562
2568
|
{
|
|
2563
2569
|
"type": "object",
|
|
@@ -2603,10 +2609,10 @@
|
|
|
2603
2609
|
}
|
|
2604
2610
|
]
|
|
2605
2611
|
},
|
|
2606
|
-
"
|
|
2612
|
+
"CaptureTerminalCommandEvent": {
|
|
2607
2613
|
"allOf": [
|
|
2608
2614
|
{
|
|
2609
|
-
"$ref": "#/components/schemas/
|
|
2615
|
+
"$ref": "#/components/schemas/BaseCaptureEvent"
|
|
2610
2616
|
},
|
|
2611
2617
|
{
|
|
2612
2618
|
"type": "object",
|
|
@@ -2632,10 +2638,10 @@
|
|
|
2632
2638
|
}
|
|
2633
2639
|
]
|
|
2634
2640
|
},
|
|
2635
|
-
"
|
|
2641
|
+
"CaptureThreadMessageEvent": {
|
|
2636
2642
|
"allOf": [
|
|
2637
2643
|
{
|
|
2638
|
-
"$ref": "#/components/schemas/
|
|
2644
|
+
"$ref": "#/components/schemas/BaseCaptureEvent"
|
|
2639
2645
|
},
|
|
2640
2646
|
{
|
|
2641
2647
|
"type": "object",
|
|
@@ -2660,10 +2666,10 @@
|
|
|
2660
2666
|
}
|
|
2661
2667
|
]
|
|
2662
2668
|
},
|
|
2663
|
-
"
|
|
2669
|
+
"CaptureFileAddedEvent": {
|
|
2664
2670
|
"allOf": [
|
|
2665
2671
|
{
|
|
2666
|
-
"$ref": "#/components/schemas/
|
|
2672
|
+
"$ref": "#/components/schemas/BaseCaptureEvent"
|
|
2667
2673
|
},
|
|
2668
2674
|
{
|
|
2669
2675
|
"type": "object",
|
|
@@ -2689,10 +2695,10 @@
|
|
|
2689
2695
|
}
|
|
2690
2696
|
]
|
|
2691
2697
|
},
|
|
2692
|
-
"
|
|
2698
|
+
"CaptureFileChangedEvent": {
|
|
2693
2699
|
"allOf": [
|
|
2694
2700
|
{
|
|
2695
|
-
"$ref": "#/components/schemas/
|
|
2701
|
+
"$ref": "#/components/schemas/BaseCaptureEvent"
|
|
2696
2702
|
},
|
|
2697
2703
|
{
|
|
2698
2704
|
"type": "object",
|
|
@@ -2718,10 +2724,10 @@
|
|
|
2718
2724
|
}
|
|
2719
2725
|
]
|
|
2720
2726
|
},
|
|
2721
|
-
"
|
|
2727
|
+
"CaptureFileRemovedEvent": {
|
|
2722
2728
|
"allOf": [
|
|
2723
2729
|
{
|
|
2724
|
-
"$ref": "#/components/schemas/
|
|
2730
|
+
"$ref": "#/components/schemas/BaseCaptureEvent"
|
|
2725
2731
|
},
|
|
2726
2732
|
{
|
|
2727
2733
|
"type": "object",
|
|
@@ -3179,6 +3185,7 @@
|
|
|
3179
3185
|
},
|
|
3180
3186
|
"previousQueries": {
|
|
3181
3187
|
"type": "array",
|
|
3188
|
+
"deprecated": true,
|
|
3182
3189
|
"maxItems": 10,
|
|
3183
3190
|
"items": {
|
|
3184
3191
|
"type": "string"
|
|
@@ -3202,8 +3209,17 @@
|
|
|
3202
3209
|
"type": "string"
|
|
3203
3210
|
}
|
|
3204
3211
|
},
|
|
3212
|
+
"sources": {
|
|
3213
|
+
"type": "array",
|
|
3214
|
+
"description": "The sources used to generate the answer.",
|
|
3215
|
+
"items": {
|
|
3216
|
+
"$ref": "#/components/schemas/SearchAIAnswerSource"
|
|
3217
|
+
}
|
|
3218
|
+
},
|
|
3205
3219
|
"pages": {
|
|
3206
3220
|
"type": "array",
|
|
3221
|
+
"deprecated": true,
|
|
3222
|
+
"description": "The pages used to generate the answer. Deprecated - use sources instead.",
|
|
3207
3223
|
"items": {
|
|
3208
3224
|
"type": "object",
|
|
3209
3225
|
"properties": {
|
|
@@ -3235,9 +3251,114 @@
|
|
|
3235
3251
|
"required": [
|
|
3236
3252
|
"text",
|
|
3237
3253
|
"pages",
|
|
3254
|
+
"sources",
|
|
3238
3255
|
"followupQuestions"
|
|
3239
3256
|
]
|
|
3240
3257
|
},
|
|
3258
|
+
"SearchAIAnswerSource": {
|
|
3259
|
+
"allOf": [
|
|
3260
|
+
{
|
|
3261
|
+
"type": "object",
|
|
3262
|
+
"properties": {
|
|
3263
|
+
"type": {
|
|
3264
|
+
"type": "string",
|
|
3265
|
+
"enum": [
|
|
3266
|
+
"page",
|
|
3267
|
+
"entity",
|
|
3268
|
+
"capture"
|
|
3269
|
+
]
|
|
3270
|
+
}
|
|
3271
|
+
},
|
|
3272
|
+
"required": [
|
|
3273
|
+
"type"
|
|
3274
|
+
]
|
|
3275
|
+
},
|
|
3276
|
+
{
|
|
3277
|
+
"oneOf": [
|
|
3278
|
+
{
|
|
3279
|
+
"type": "object",
|
|
3280
|
+
"properties": {
|
|
3281
|
+
"type": {
|
|
3282
|
+
"type": "string",
|
|
3283
|
+
"enum": [
|
|
3284
|
+
"page"
|
|
3285
|
+
]
|
|
3286
|
+
},
|
|
3287
|
+
"page": {
|
|
3288
|
+
"type": "string"
|
|
3289
|
+
},
|
|
3290
|
+
"revision": {
|
|
3291
|
+
"type": "string"
|
|
3292
|
+
},
|
|
3293
|
+
"space": {
|
|
3294
|
+
"type": "string"
|
|
3295
|
+
},
|
|
3296
|
+
"sections": {
|
|
3297
|
+
"type": "array",
|
|
3298
|
+
"items": {
|
|
3299
|
+
"type": "string"
|
|
3300
|
+
}
|
|
3301
|
+
}
|
|
3302
|
+
},
|
|
3303
|
+
"required": [
|
|
3304
|
+
"type",
|
|
3305
|
+
"page",
|
|
3306
|
+
"revision",
|
|
3307
|
+
"space",
|
|
3308
|
+
"sections"
|
|
3309
|
+
]
|
|
3310
|
+
},
|
|
3311
|
+
{
|
|
3312
|
+
"type": "object",
|
|
3313
|
+
"properties": {
|
|
3314
|
+
"type": {
|
|
3315
|
+
"type": "string",
|
|
3316
|
+
"enum": [
|
|
3317
|
+
"entity"
|
|
3318
|
+
]
|
|
3319
|
+
},
|
|
3320
|
+
"id": {
|
|
3321
|
+
"type": "string",
|
|
3322
|
+
"description": "ID of the entity"
|
|
3323
|
+
},
|
|
3324
|
+
"integration": {
|
|
3325
|
+
"description": "The name of the integration that manages this entity. If undefined, this entity is not managed by an integration.",
|
|
3326
|
+
"type": "string"
|
|
3327
|
+
}
|
|
3328
|
+
},
|
|
3329
|
+
"required": [
|
|
3330
|
+
"id",
|
|
3331
|
+
"type"
|
|
3332
|
+
]
|
|
3333
|
+
},
|
|
3334
|
+
{
|
|
3335
|
+
"type": "object",
|
|
3336
|
+
"properties": {
|
|
3337
|
+
"type": {
|
|
3338
|
+
"type": "string",
|
|
3339
|
+
"enum": [
|
|
3340
|
+
"capture"
|
|
3341
|
+
]
|
|
3342
|
+
},
|
|
3343
|
+
"id": {
|
|
3344
|
+
"type": "string",
|
|
3345
|
+
"description": "ID of the capture"
|
|
3346
|
+
},
|
|
3347
|
+
"source": {
|
|
3348
|
+
"type": "string",
|
|
3349
|
+
"description": "Source of the capture"
|
|
3350
|
+
}
|
|
3351
|
+
},
|
|
3352
|
+
"required": [
|
|
3353
|
+
"type",
|
|
3354
|
+
"id",
|
|
3355
|
+
"source"
|
|
3356
|
+
]
|
|
3357
|
+
}
|
|
3358
|
+
]
|
|
3359
|
+
}
|
|
3360
|
+
]
|
|
3361
|
+
},
|
|
3241
3362
|
"SearchAIRecommendedQuestions": {
|
|
3242
3363
|
"type": "object",
|
|
3243
3364
|
"description": "Questions recommended by the AI for the given content.",
|
|
@@ -3602,7 +3723,7 @@
|
|
|
3602
3723
|
"type": "string",
|
|
3603
3724
|
"enum": [
|
|
3604
3725
|
"entities:write",
|
|
3605
|
-
"
|
|
3726
|
+
"capture:write",
|
|
3606
3727
|
"space:views:read",
|
|
3607
3728
|
"space:content:read",
|
|
3608
3729
|
"space:content:write",
|
|
@@ -4133,9 +4254,6 @@
|
|
|
4133
4254
|
},
|
|
4134
4255
|
"IntegrationInstallationTarget": {
|
|
4135
4256
|
"oneOf": [
|
|
4136
|
-
{
|
|
4137
|
-
"$ref": "#/components/schemas/UserTarget"
|
|
4138
|
-
},
|
|
4139
4257
|
{
|
|
4140
4258
|
"$ref": "#/components/schemas/OrganizationTarget"
|
|
4141
4259
|
}
|
|
@@ -6779,6 +6897,9 @@
|
|
|
6779
6897
|
},
|
|
6780
6898
|
{
|
|
6781
6899
|
"$ref": "#/components/schemas/ContentKitButton"
|
|
6900
|
+
},
|
|
6901
|
+
{
|
|
6902
|
+
"$ref": "#/components/schemas/ContentKitCodeBlock"
|
|
6782
6903
|
}
|
|
6783
6904
|
]
|
|
6784
6905
|
}
|
|
@@ -7192,6 +7313,12 @@
|
|
|
7192
7313
|
{
|
|
7193
7314
|
"$ref": "#/components/schemas/UserAPITokensChannel"
|
|
7194
7315
|
},
|
|
7316
|
+
{
|
|
7317
|
+
"$ref": "#/components/schemas/UserPreferencesChannel"
|
|
7318
|
+
},
|
|
7319
|
+
{
|
|
7320
|
+
"$ref": "#/components/schemas/UserProfileChannel"
|
|
7321
|
+
},
|
|
7195
7322
|
{
|
|
7196
7323
|
"$ref": "#/components/schemas/ChangeRequestReviewsChannel"
|
|
7197
7324
|
},
|
|
@@ -7226,7 +7353,7 @@
|
|
|
7226
7353
|
"$ref": "#/components/schemas/OrganizationSchemasChannel"
|
|
7227
7354
|
},
|
|
7228
7355
|
{
|
|
7229
|
-
"$ref": "#/components/schemas/
|
|
7356
|
+
"$ref": "#/components/schemas/OrganizationCapturesChannel"
|
|
7230
7357
|
},
|
|
7231
7358
|
{
|
|
7232
7359
|
"type": "object",
|
|
@@ -7495,6 +7622,42 @@
|
|
|
7495
7622
|
"user"
|
|
7496
7623
|
]
|
|
7497
7624
|
},
|
|
7625
|
+
"UserPreferencesChannel": {
|
|
7626
|
+
"type": "object",
|
|
7627
|
+
"properties": {
|
|
7628
|
+
"channel": {
|
|
7629
|
+
"type": "string",
|
|
7630
|
+
"enum": [
|
|
7631
|
+
"user-preferences"
|
|
7632
|
+
]
|
|
7633
|
+
},
|
|
7634
|
+
"user": {
|
|
7635
|
+
"type": "string"
|
|
7636
|
+
}
|
|
7637
|
+
},
|
|
7638
|
+
"required": [
|
|
7639
|
+
"channel",
|
|
7640
|
+
"user"
|
|
7641
|
+
]
|
|
7642
|
+
},
|
|
7643
|
+
"UserProfileChannel": {
|
|
7644
|
+
"type": "object",
|
|
7645
|
+
"properties": {
|
|
7646
|
+
"channel": {
|
|
7647
|
+
"type": "string",
|
|
7648
|
+
"enum": [
|
|
7649
|
+
"user-profile"
|
|
7650
|
+
]
|
|
7651
|
+
},
|
|
7652
|
+
"user": {
|
|
7653
|
+
"type": "string"
|
|
7654
|
+
}
|
|
7655
|
+
},
|
|
7656
|
+
"required": [
|
|
7657
|
+
"channel",
|
|
7658
|
+
"user"
|
|
7659
|
+
]
|
|
7660
|
+
},
|
|
7498
7661
|
"ChangeRequestReviewsChannel": {
|
|
7499
7662
|
"type": "object",
|
|
7500
7663
|
"properties": {
|
|
@@ -7760,13 +7923,13 @@
|
|
|
7760
7923
|
"organization"
|
|
7761
7924
|
]
|
|
7762
7925
|
},
|
|
7763
|
-
"
|
|
7926
|
+
"OrganizationCapturesChannel": {
|
|
7764
7927
|
"type": "object",
|
|
7765
7928
|
"properties": {
|
|
7766
7929
|
"channel": {
|
|
7767
7930
|
"type": "string",
|
|
7768
7931
|
"enum": [
|
|
7769
|
-
"organization-
|
|
7932
|
+
"organization-captures"
|
|
7770
7933
|
]
|
|
7771
7934
|
},
|
|
7772
7935
|
"organization": {
|
|
@@ -8380,11 +8543,10 @@
|
|
|
8380
8543
|
}
|
|
8381
8544
|
}
|
|
8382
8545
|
},
|
|
8383
|
-
"/user/
|
|
8546
|
+
"/user/preferences": {
|
|
8384
8547
|
"get": {
|
|
8385
|
-
"operationId": "
|
|
8386
|
-
"summary": "
|
|
8387
|
-
"description": "Lists spaces that the authenticated user explicitly own.\n",
|
|
8548
|
+
"operationId": "getPreferencesForAuthenticatedUser",
|
|
8549
|
+
"summary": "Get the preferences for the currently authenticated user",
|
|
8388
8550
|
"tags": [
|
|
8389
8551
|
"users"
|
|
8390
8552
|
],
|
|
@@ -8393,39 +8555,54 @@
|
|
|
8393
8555
|
"user": []
|
|
8394
8556
|
}
|
|
8395
8557
|
],
|
|
8396
|
-
"
|
|
8397
|
-
|
|
8398
|
-
|
|
8558
|
+
"description": "Returns the preferences for the user associated with the authentication provided in the request's authorization header.\n",
|
|
8559
|
+
"responses": {
|
|
8560
|
+
"200": {
|
|
8561
|
+
"description": "OK",
|
|
8562
|
+
"content": {
|
|
8563
|
+
"application/json": {
|
|
8564
|
+
"schema": {
|
|
8565
|
+
"$ref": "#/components/schemas/UserPreferences"
|
|
8566
|
+
}
|
|
8567
|
+
}
|
|
8568
|
+
}
|
|
8399
8569
|
},
|
|
8400
|
-
{
|
|
8401
|
-
"$ref": "#/components/
|
|
8570
|
+
"default": {
|
|
8571
|
+
"$ref": "#/components/responses/UnexpectedError"
|
|
8402
8572
|
}
|
|
8573
|
+
}
|
|
8574
|
+
},
|
|
8575
|
+
"patch": {
|
|
8576
|
+
"operationId": "updatePreferencesForAuthenticatedUser",
|
|
8577
|
+
"summary": "Update the preferences for the currently authenticated user",
|
|
8578
|
+
"tags": [
|
|
8579
|
+
"users"
|
|
8403
8580
|
],
|
|
8581
|
+
"requestBody": {
|
|
8582
|
+
"required": true,
|
|
8583
|
+
"content": {
|
|
8584
|
+
"application/json": {
|
|
8585
|
+
"schema": {
|
|
8586
|
+
"type": "object",
|
|
8587
|
+
"properties": {
|
|
8588
|
+
"theme": {
|
|
8589
|
+
"$ref": "#/components/schemas/UserPreferencesTheme"
|
|
8590
|
+
}
|
|
8591
|
+
},
|
|
8592
|
+
"required": [
|
|
8593
|
+
"theme"
|
|
8594
|
+
]
|
|
8595
|
+
}
|
|
8596
|
+
}
|
|
8597
|
+
}
|
|
8598
|
+
},
|
|
8404
8599
|
"responses": {
|
|
8405
8600
|
"200": {
|
|
8406
|
-
"description": "
|
|
8601
|
+
"description": "The user preferences have been updated",
|
|
8407
8602
|
"content": {
|
|
8408
8603
|
"application/json": {
|
|
8409
8604
|
"schema": {
|
|
8410
|
-
"
|
|
8411
|
-
{
|
|
8412
|
-
"$ref": "#/components/schemas/List"
|
|
8413
|
-
},
|
|
8414
|
-
{
|
|
8415
|
-
"type": "object",
|
|
8416
|
-
"required": [
|
|
8417
|
-
"items"
|
|
8418
|
-
],
|
|
8419
|
-
"properties": {
|
|
8420
|
-
"items": {
|
|
8421
|
-
"type": "array",
|
|
8422
|
-
"items": {
|
|
8423
|
-
"$ref": "#/components/schemas/Space"
|
|
8424
|
-
}
|
|
8425
|
-
}
|
|
8426
|
-
}
|
|
8427
|
-
}
|
|
8428
|
-
]
|
|
8605
|
+
"$ref": "#/components/schemas/UserPreferences"
|
|
8429
8606
|
}
|
|
8430
8607
|
}
|
|
8431
8608
|
}
|
|
@@ -15667,11 +15844,11 @@
|
|
|
15667
15844
|
}
|
|
15668
15845
|
}
|
|
15669
15846
|
},
|
|
15670
|
-
"/orgs/{organizationId}/
|
|
15847
|
+
"/orgs/{organizationId}/captures": {
|
|
15671
15848
|
"get": {
|
|
15672
|
-
"operationId": "
|
|
15673
|
-
"summary": "List
|
|
15674
|
-
"description": "List
|
|
15849
|
+
"operationId": "listCaptures",
|
|
15850
|
+
"summary": "List captures",
|
|
15851
|
+
"description": "List captures in an organization.\n",
|
|
15675
15852
|
"tags": [
|
|
15676
15853
|
"organizations"
|
|
15677
15854
|
],
|
|
@@ -15684,6 +15861,9 @@
|
|
|
15684
15861
|
{
|
|
15685
15862
|
"$ref": "#/components/parameters/organizationId"
|
|
15686
15863
|
},
|
|
15864
|
+
{
|
|
15865
|
+
"$ref": "#/components/parameters/pageFormat"
|
|
15866
|
+
},
|
|
15687
15867
|
{
|
|
15688
15868
|
"$ref": "#/components/parameters/listPage"
|
|
15689
15869
|
},
|
|
@@ -15710,7 +15890,7 @@
|
|
|
15710
15890
|
"items": {
|
|
15711
15891
|
"type": "array",
|
|
15712
15892
|
"items": {
|
|
15713
|
-
"$ref": "#/components/schemas/
|
|
15893
|
+
"$ref": "#/components/schemas/Capture"
|
|
15714
15894
|
}
|
|
15715
15895
|
}
|
|
15716
15896
|
}
|
|
@@ -15726,8 +15906,8 @@
|
|
|
15726
15906
|
}
|
|
15727
15907
|
},
|
|
15728
15908
|
"post": {
|
|
15729
|
-
"operationId": "
|
|
15730
|
-
"summary": "Start a
|
|
15909
|
+
"operationId": "startCapture",
|
|
15910
|
+
"summary": "Start a capture",
|
|
15731
15911
|
"tags": [
|
|
15732
15912
|
"organizations"
|
|
15733
15913
|
],
|
|
@@ -15748,19 +15928,19 @@
|
|
|
15748
15928
|
"type": "object",
|
|
15749
15929
|
"properties": {
|
|
15750
15930
|
"title": {
|
|
15751
|
-
"$ref": "#/components/schemas/
|
|
15931
|
+
"$ref": "#/components/schemas/CaptureTitle"
|
|
15752
15932
|
},
|
|
15753
15933
|
"context": {
|
|
15754
|
-
"$ref": "#/components/schemas/
|
|
15934
|
+
"$ref": "#/components/schemas/CaptureContext"
|
|
15755
15935
|
},
|
|
15756
15936
|
"externalId": {
|
|
15757
15937
|
"type": "string",
|
|
15758
|
-
"description": "ID in the original source of the
|
|
15938
|
+
"description": "ID in the original source of the capture."
|
|
15759
15939
|
},
|
|
15760
15940
|
"externalURL": {
|
|
15761
15941
|
"type": "string",
|
|
15762
15942
|
"format": "uri",
|
|
15763
|
-
"description": "URL of the original source of the
|
|
15943
|
+
"description": "URL of the original source of the capture."
|
|
15764
15944
|
}
|
|
15765
15945
|
},
|
|
15766
15946
|
"required": [
|
|
@@ -15772,10 +15952,10 @@
|
|
|
15772
15952
|
},
|
|
15773
15953
|
"responses": {
|
|
15774
15954
|
"201": {
|
|
15775
|
-
"description": "
|
|
15955
|
+
"description": "Capture started",
|
|
15776
15956
|
"headers": {
|
|
15777
15957
|
"Location": {
|
|
15778
|
-
"description": "API URL for the newly created
|
|
15958
|
+
"description": "API URL for the newly created capture",
|
|
15779
15959
|
"schema": {
|
|
15780
15960
|
"type": "string"
|
|
15781
15961
|
}
|
|
@@ -15784,7 +15964,7 @@
|
|
|
15784
15964
|
"content": {
|
|
15785
15965
|
"application/json": {
|
|
15786
15966
|
"schema": {
|
|
15787
|
-
"$ref": "#/components/schemas/
|
|
15967
|
+
"$ref": "#/components/schemas/Capture"
|
|
15788
15968
|
}
|
|
15789
15969
|
}
|
|
15790
15970
|
}
|
|
@@ -15795,10 +15975,10 @@
|
|
|
15795
15975
|
}
|
|
15796
15976
|
}
|
|
15797
15977
|
},
|
|
15798
|
-
"/orgs/{organizationId}/
|
|
15978
|
+
"/orgs/{organizationId}/captures/{captureId}": {
|
|
15799
15979
|
"get": {
|
|
15800
|
-
"operationId": "
|
|
15801
|
-
"summary": "Get a
|
|
15980
|
+
"operationId": "getCapture",
|
|
15981
|
+
"summary": "Get a capture by its ID",
|
|
15802
15982
|
"tags": [
|
|
15803
15983
|
"organizations"
|
|
15804
15984
|
],
|
|
@@ -15812,7 +15992,10 @@
|
|
|
15812
15992
|
"$ref": "#/components/parameters/organizationId"
|
|
15813
15993
|
},
|
|
15814
15994
|
{
|
|
15815
|
-
"$ref": "#/components/parameters/
|
|
15995
|
+
"$ref": "#/components/parameters/captureId"
|
|
15996
|
+
},
|
|
15997
|
+
{
|
|
15998
|
+
"$ref": "#/components/parameters/pageFormat"
|
|
15816
15999
|
}
|
|
15817
16000
|
],
|
|
15818
16001
|
"responses": {
|
|
@@ -15821,7 +16004,7 @@
|
|
|
15821
16004
|
"content": {
|
|
15822
16005
|
"application/json": {
|
|
15823
16006
|
"schema": {
|
|
15824
|
-
"$ref": "#/components/schemas/
|
|
16007
|
+
"$ref": "#/components/schemas/Capture"
|
|
15825
16008
|
}
|
|
15826
16009
|
}
|
|
15827
16010
|
}
|
|
@@ -15832,10 +16015,10 @@
|
|
|
15832
16015
|
}
|
|
15833
16016
|
}
|
|
15834
16017
|
},
|
|
15835
|
-
"/orgs/{organizationId}/
|
|
16018
|
+
"/orgs/{organizationId}/captures/{captureId}/events": {
|
|
15836
16019
|
"post": {
|
|
15837
|
-
"operationId": "
|
|
15838
|
-
"summary": "Add events to a running
|
|
16020
|
+
"operationId": "addEventsToCapture",
|
|
16021
|
+
"summary": "Add events to a running capture",
|
|
15839
16022
|
"tags": [
|
|
15840
16023
|
"organizations"
|
|
15841
16024
|
],
|
|
@@ -15849,7 +16032,7 @@
|
|
|
15849
16032
|
"$ref": "#/components/parameters/organizationId"
|
|
15850
16033
|
},
|
|
15851
16034
|
{
|
|
15852
|
-
"$ref": "#/components/parameters/
|
|
16035
|
+
"$ref": "#/components/parameters/captureId"
|
|
15853
16036
|
}
|
|
15854
16037
|
],
|
|
15855
16038
|
"requestBody": {
|
|
@@ -15861,7 +16044,7 @@
|
|
|
15861
16044
|
"events": {
|
|
15862
16045
|
"type": "array",
|
|
15863
16046
|
"items": {
|
|
15864
|
-
"$ref": "#/components/schemas/
|
|
16047
|
+
"$ref": "#/components/schemas/CaptureEvent"
|
|
15865
16048
|
}
|
|
15866
16049
|
}
|
|
15867
16050
|
},
|
|
@@ -15882,10 +16065,10 @@
|
|
|
15882
16065
|
}
|
|
15883
16066
|
}
|
|
15884
16067
|
},
|
|
15885
|
-
"/orgs/{organizationId}/
|
|
16068
|
+
"/orgs/{organizationId}/captures/{captureId}/stop": {
|
|
15886
16069
|
"post": {
|
|
15887
|
-
"operationId": "
|
|
15888
|
-
"summary": "Stop a
|
|
16070
|
+
"operationId": "stopCapture",
|
|
16071
|
+
"summary": "Stop a capture",
|
|
15889
16072
|
"tags": [
|
|
15890
16073
|
"organizations"
|
|
15891
16074
|
],
|
|
@@ -15899,7 +16082,10 @@
|
|
|
15899
16082
|
"$ref": "#/components/parameters/organizationId"
|
|
15900
16083
|
},
|
|
15901
16084
|
{
|
|
15902
|
-
"$ref": "#/components/parameters/
|
|
16085
|
+
"$ref": "#/components/parameters/captureId"
|
|
16086
|
+
},
|
|
16087
|
+
{
|
|
16088
|
+
"$ref": "#/components/parameters/pageFormat"
|
|
15903
16089
|
}
|
|
15904
16090
|
],
|
|
15905
16091
|
"requestBody": {
|
|
@@ -15907,32 +16093,24 @@
|
|
|
15907
16093
|
"application/json": {
|
|
15908
16094
|
"schema": {
|
|
15909
16095
|
"type": "object",
|
|
15910
|
-
"properties": {
|
|
15911
|
-
"space": {
|
|
15912
|
-
"description": "The space in which the docs should be generated",
|
|
15913
|
-
"type": "string"
|
|
15914
|
-
}
|
|
15915
|
-
},
|
|
15916
|
-
"required": [
|
|
15917
|
-
"space"
|
|
15918
|
-
]
|
|
16096
|
+
"properties": {}
|
|
15919
16097
|
}
|
|
15920
16098
|
}
|
|
15921
16099
|
}
|
|
15922
16100
|
},
|
|
15923
16101
|
"responses": {
|
|
15924
16102
|
"200": {
|
|
15925
|
-
"description": "
|
|
16103
|
+
"description": "Capture stopped",
|
|
15926
16104
|
"content": {
|
|
15927
16105
|
"application/json": {
|
|
15928
16106
|
"schema": {
|
|
15929
16107
|
"type": "object",
|
|
15930
16108
|
"properties": {
|
|
15931
|
-
"
|
|
15932
|
-
"$ref": "#/components/schemas/
|
|
16109
|
+
"capture": {
|
|
16110
|
+
"$ref": "#/components/schemas/Capture"
|
|
15933
16111
|
},
|
|
15934
16112
|
"followupQuestions": {
|
|
15935
|
-
"description": "Example questions that would be answered by the content of this
|
|
16113
|
+
"description": "Example questions that would be answered by the content of this capture.",
|
|
15936
16114
|
"type": "array",
|
|
15937
16115
|
"items": {
|
|
15938
16116
|
"type": "string"
|
|
@@ -15940,7 +16118,7 @@
|
|
|
15940
16118
|
}
|
|
15941
16119
|
},
|
|
15942
16120
|
"required": [
|
|
15943
|
-
"
|
|
16121
|
+
"capture"
|
|
15944
16122
|
]
|
|
15945
16123
|
}
|
|
15946
16124
|
}
|
|
@@ -15952,6 +16130,52 @@
|
|
|
15952
16130
|
}
|
|
15953
16131
|
}
|
|
15954
16132
|
},
|
|
16133
|
+
"/orgs/{organizationId}/ask": {
|
|
16134
|
+
"post": {
|
|
16135
|
+
"operationId": "askInOrganization",
|
|
16136
|
+
"summary": "Ask a question.",
|
|
16137
|
+
"security": [
|
|
16138
|
+
{
|
|
16139
|
+
"user": []
|
|
16140
|
+
}
|
|
16141
|
+
],
|
|
16142
|
+
"parameters": [
|
|
16143
|
+
{
|
|
16144
|
+
"$ref": "#/components/parameters/organizationId"
|
|
16145
|
+
}
|
|
16146
|
+
],
|
|
16147
|
+
"requestBody": {
|
|
16148
|
+
"required": true,
|
|
16149
|
+
"content": {
|
|
16150
|
+
"application/json": {
|
|
16151
|
+
"schema": {
|
|
16152
|
+
"$ref": "#/components/schemas/SearchAIQuery"
|
|
16153
|
+
}
|
|
16154
|
+
}
|
|
16155
|
+
}
|
|
16156
|
+
},
|
|
16157
|
+
"responses": {
|
|
16158
|
+
"200": {
|
|
16159
|
+
"description": "OK",
|
|
16160
|
+
"content": {
|
|
16161
|
+
"application/json": {
|
|
16162
|
+
"schema": {
|
|
16163
|
+
"type": "object",
|
|
16164
|
+
"properties": {
|
|
16165
|
+
"answer": {
|
|
16166
|
+
"$ref": "#/components/schemas/SearchAIAnswer"
|
|
16167
|
+
}
|
|
16168
|
+
}
|
|
16169
|
+
}
|
|
16170
|
+
}
|
|
16171
|
+
}
|
|
16172
|
+
},
|
|
16173
|
+
"default": {
|
|
16174
|
+
"$ref": "#/components/responses/UnexpectedError"
|
|
16175
|
+
}
|
|
16176
|
+
}
|
|
16177
|
+
}
|
|
16178
|
+
},
|
|
15955
16179
|
"/internal/hive/token": {
|
|
15956
16180
|
"post": {
|
|
15957
16181
|
"operationId": "generateHiveAccessToken",
|