@gitbook/api 0.7.0 → 0.9.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 +172 -66
- package/dist/index.cjs +51 -13
- package/dist/index.js +49 -12
- package/package.json +1 -1
- package/spec/openapi.json +504 -105
- package/spec/openapi.yaml +335 -91
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
|
}
|
|
@@ -903,12 +903,64 @@
|
|
|
903
903
|
"photoURL": {
|
|
904
904
|
"type": "string",
|
|
905
905
|
"description": "URL of the user's profile picture"
|
|
906
|
+
},
|
|
907
|
+
"urls": {
|
|
908
|
+
"type": "object",
|
|
909
|
+
"description": "URLs associated with the object",
|
|
910
|
+
"properties": {
|
|
911
|
+
"location": {
|
|
912
|
+
"type": "string",
|
|
913
|
+
"description": "URL of the user in the API",
|
|
914
|
+
"format": "uri"
|
|
915
|
+
}
|
|
916
|
+
}
|
|
906
917
|
}
|
|
907
918
|
},
|
|
908
919
|
"required": [
|
|
909
920
|
"object",
|
|
910
921
|
"id",
|
|
911
|
-
"displayName"
|
|
922
|
+
"displayName",
|
|
923
|
+
"urls"
|
|
924
|
+
]
|
|
925
|
+
},
|
|
926
|
+
"UserPreferences": {
|
|
927
|
+
"type": "object",
|
|
928
|
+
"properties": {
|
|
929
|
+
"object": {
|
|
930
|
+
"type": "string",
|
|
931
|
+
"description": "Type of Object, always equals to \"user-preferences\"",
|
|
932
|
+
"enum": [
|
|
933
|
+
"user-preferences"
|
|
934
|
+
]
|
|
935
|
+
},
|
|
936
|
+
"theme": {
|
|
937
|
+
"$ref": "#/components/schemas/UserPreferencesTheme"
|
|
938
|
+
},
|
|
939
|
+
"urls": {
|
|
940
|
+
"type": "object",
|
|
941
|
+
"description": "URLs associated with the object",
|
|
942
|
+
"properties": {
|
|
943
|
+
"location": {
|
|
944
|
+
"type": "string",
|
|
945
|
+
"description": "URL of the user preferences in the API",
|
|
946
|
+
"format": "uri"
|
|
947
|
+
}
|
|
948
|
+
}
|
|
949
|
+
}
|
|
950
|
+
},
|
|
951
|
+
"required": [
|
|
952
|
+
"object",
|
|
953
|
+
"theme",
|
|
954
|
+
"urls"
|
|
955
|
+
]
|
|
956
|
+
},
|
|
957
|
+
"UserPreferencesTheme": {
|
|
958
|
+
"type": "string",
|
|
959
|
+
"description": "Preferred theme for the application",
|
|
960
|
+
"enum": [
|
|
961
|
+
"light",
|
|
962
|
+
"dark",
|
|
963
|
+
"default"
|
|
912
964
|
]
|
|
913
965
|
},
|
|
914
966
|
"UserAPIToken": {
|
|
@@ -2364,34 +2416,27 @@
|
|
|
2364
2416
|
"participant"
|
|
2365
2417
|
]
|
|
2366
2418
|
},
|
|
2367
|
-
"
|
|
2419
|
+
"Capture": {
|
|
2368
2420
|
"type": "object",
|
|
2369
2421
|
"properties": {
|
|
2370
|
-
"object": {
|
|
2371
|
-
"type": "string",
|
|
2372
|
-
"description": "Type of Object, always equals to \"recording\"",
|
|
2373
|
-
"enum": [
|
|
2374
|
-
"recording"
|
|
2375
|
-
]
|
|
2376
|
-
},
|
|
2377
2422
|
"id": {
|
|
2378
2423
|
"type": "string",
|
|
2379
|
-
"description": "Unique identifier for the
|
|
2424
|
+
"description": "Unique identifier for the capture"
|
|
2380
2425
|
},
|
|
2381
2426
|
"title": {
|
|
2382
|
-
"$ref": "#/components/schemas/
|
|
2427
|
+
"$ref": "#/components/schemas/CaptureTitle"
|
|
2383
2428
|
},
|
|
2384
2429
|
"context": {
|
|
2385
|
-
"$ref": "#/components/schemas/
|
|
2430
|
+
"$ref": "#/components/schemas/CaptureContext"
|
|
2386
2431
|
},
|
|
2387
2432
|
"externalId": {
|
|
2388
2433
|
"type": "string",
|
|
2389
|
-
"description": "ID in the original source of the
|
|
2434
|
+
"description": "ID in the original source of the capture."
|
|
2390
2435
|
},
|
|
2391
2436
|
"externalURL": {
|
|
2392
2437
|
"type": "string",
|
|
2393
2438
|
"format": "uri",
|
|
2394
|
-
"description": "URL of the source from which the
|
|
2439
|
+
"description": "URL of the source from which the capture originated"
|
|
2395
2440
|
},
|
|
2396
2441
|
"createdAt": {
|
|
2397
2442
|
"type": "string",
|
|
@@ -2409,6 +2454,9 @@
|
|
|
2409
2454
|
},
|
|
2410
2455
|
"speech": {
|
|
2411
2456
|
"type": "integer"
|
|
2457
|
+
},
|
|
2458
|
+
"thread.message": {
|
|
2459
|
+
"type": "integer"
|
|
2412
2460
|
}
|
|
2413
2461
|
}
|
|
2414
2462
|
},
|
|
@@ -2427,8 +2475,8 @@
|
|
|
2427
2475
|
}
|
|
2428
2476
|
},
|
|
2429
2477
|
"output": {
|
|
2430
|
-
"description": "Output document for the
|
|
2431
|
-
"$ref": "#/components/schemas/
|
|
2478
|
+
"description": "Output document for the capture. Is not set when capture is not finished.",
|
|
2479
|
+
"$ref": "#/components/schemas/Document"
|
|
2432
2480
|
},
|
|
2433
2481
|
"urls": {
|
|
2434
2482
|
"type": "object",
|
|
@@ -2436,7 +2484,7 @@
|
|
|
2436
2484
|
"properties": {
|
|
2437
2485
|
"location": {
|
|
2438
2486
|
"type": "string",
|
|
2439
|
-
"description": "URL of the
|
|
2487
|
+
"description": "URL of the capture in the API",
|
|
2440
2488
|
"format": "uri"
|
|
2441
2489
|
}
|
|
2442
2490
|
},
|
|
@@ -2456,55 +2504,46 @@
|
|
|
2456
2504
|
"urls"
|
|
2457
2505
|
]
|
|
2458
2506
|
},
|
|
2459
|
-
"
|
|
2507
|
+
"CaptureTitle": {
|
|
2460
2508
|
"type": "string",
|
|
2461
|
-
"description": "Optional title describing the
|
|
2509
|
+
"description": "Optional title describing the capture",
|
|
2462
2510
|
"maxLength": 100
|
|
2463
2511
|
},
|
|
2464
|
-
"
|
|
2465
|
-
"
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
"type": "string",
|
|
2469
|
-
"format": "uri",
|
|
2470
|
-
"description": "URL of the generated page"
|
|
2512
|
+
"CaptureEvent": {
|
|
2513
|
+
"oneOf": [
|
|
2514
|
+
{
|
|
2515
|
+
"$ref": "#/components/schemas/CaptureTerminalCommandEvent"
|
|
2471
2516
|
},
|
|
2472
|
-
|
|
2473
|
-
"$ref": "#/components/schemas/
|
|
2517
|
+
{
|
|
2518
|
+
"$ref": "#/components/schemas/CaptureSpeechEvent"
|
|
2519
|
+
},
|
|
2520
|
+
{
|
|
2521
|
+
"$ref": "#/components/schemas/CaptureThreadMessageEvent"
|
|
2474
2522
|
},
|
|
2475
|
-
"page": {
|
|
2476
|
-
"$ref": "#/components/schemas/RevisionPageDocument"
|
|
2477
|
-
}
|
|
2478
|
-
},
|
|
2479
|
-
"required": [
|
|
2480
|
-
"url",
|
|
2481
|
-
"space",
|
|
2482
|
-
"page"
|
|
2483
|
-
]
|
|
2484
|
-
},
|
|
2485
|
-
"RecordingEvent": {
|
|
2486
|
-
"oneOf": [
|
|
2487
2523
|
{
|
|
2488
|
-
"$ref": "#/components/schemas/
|
|
2524
|
+
"$ref": "#/components/schemas/CaptureFileAddedEvent"
|
|
2489
2525
|
},
|
|
2490
2526
|
{
|
|
2491
|
-
"$ref": "#/components/schemas/
|
|
2527
|
+
"$ref": "#/components/schemas/CaptureFileChangedEvent"
|
|
2528
|
+
},
|
|
2529
|
+
{
|
|
2530
|
+
"$ref": "#/components/schemas/CaptureFileRemovedEvent"
|
|
2492
2531
|
}
|
|
2493
2532
|
]
|
|
2494
2533
|
},
|
|
2495
|
-
"
|
|
2534
|
+
"CaptureContext": {
|
|
2496
2535
|
"oneOf": [
|
|
2497
2536
|
{
|
|
2498
2537
|
"type": "string",
|
|
2499
2538
|
"enum": [
|
|
2500
2539
|
"meeting",
|
|
2501
|
-
"
|
|
2540
|
+
"thread",
|
|
2502
2541
|
"walkthrough"
|
|
2503
2542
|
]
|
|
2504
2543
|
}
|
|
2505
2544
|
]
|
|
2506
2545
|
},
|
|
2507
|
-
"
|
|
2546
|
+
"BaseCaptureEvent": {
|
|
2508
2547
|
"type": "object",
|
|
2509
2548
|
"properties": {
|
|
2510
2549
|
"type": {
|
|
@@ -2523,7 +2562,7 @@
|
|
|
2523
2562
|
},
|
|
2524
2563
|
"actor": {
|
|
2525
2564
|
"type": "object",
|
|
2526
|
-
"description": "Optionally, provide the actor of the event, in the context of multiple people contributing to the
|
|
2565
|
+
"description": "Optionally, provide the actor of the event, in the context of multiple people contributing to the capture.",
|
|
2527
2566
|
"properties": {
|
|
2528
2567
|
"name": {
|
|
2529
2568
|
"type": "string"
|
|
@@ -2539,10 +2578,10 @@
|
|
|
2539
2578
|
"timestamp"
|
|
2540
2579
|
]
|
|
2541
2580
|
},
|
|
2542
|
-
"
|
|
2581
|
+
"CaptureSpeechEvent": {
|
|
2543
2582
|
"allOf": [
|
|
2544
2583
|
{
|
|
2545
|
-
"$ref": "#/components/schemas/
|
|
2584
|
+
"$ref": "#/components/schemas/BaseCaptureEvent"
|
|
2546
2585
|
},
|
|
2547
2586
|
{
|
|
2548
2587
|
"type": "object",
|
|
@@ -2588,10 +2627,10 @@
|
|
|
2588
2627
|
}
|
|
2589
2628
|
]
|
|
2590
2629
|
},
|
|
2591
|
-
"
|
|
2630
|
+
"CaptureTerminalCommandEvent": {
|
|
2592
2631
|
"allOf": [
|
|
2593
2632
|
{
|
|
2594
|
-
"$ref": "#/components/schemas/
|
|
2633
|
+
"$ref": "#/components/schemas/BaseCaptureEvent"
|
|
2595
2634
|
},
|
|
2596
2635
|
{
|
|
2597
2636
|
"type": "object",
|
|
@@ -2617,6 +2656,121 @@
|
|
|
2617
2656
|
}
|
|
2618
2657
|
]
|
|
2619
2658
|
},
|
|
2659
|
+
"CaptureThreadMessageEvent": {
|
|
2660
|
+
"allOf": [
|
|
2661
|
+
{
|
|
2662
|
+
"$ref": "#/components/schemas/BaseCaptureEvent"
|
|
2663
|
+
},
|
|
2664
|
+
{
|
|
2665
|
+
"type": "object",
|
|
2666
|
+
"properties": {
|
|
2667
|
+
"type": {
|
|
2668
|
+
"type": "string",
|
|
2669
|
+
"enum": [
|
|
2670
|
+
"thread.message"
|
|
2671
|
+
]
|
|
2672
|
+
},
|
|
2673
|
+
"isFirst": {
|
|
2674
|
+
"type": "boolean"
|
|
2675
|
+
},
|
|
2676
|
+
"text": {
|
|
2677
|
+
"type": "string"
|
|
2678
|
+
}
|
|
2679
|
+
},
|
|
2680
|
+
"required": [
|
|
2681
|
+
"type",
|
|
2682
|
+
"text"
|
|
2683
|
+
]
|
|
2684
|
+
}
|
|
2685
|
+
]
|
|
2686
|
+
},
|
|
2687
|
+
"CaptureFileAddedEvent": {
|
|
2688
|
+
"allOf": [
|
|
2689
|
+
{
|
|
2690
|
+
"$ref": "#/components/schemas/BaseCaptureEvent"
|
|
2691
|
+
},
|
|
2692
|
+
{
|
|
2693
|
+
"type": "object",
|
|
2694
|
+
"properties": {
|
|
2695
|
+
"type": {
|
|
2696
|
+
"type": "string",
|
|
2697
|
+
"enum": [
|
|
2698
|
+
"file.added"
|
|
2699
|
+
]
|
|
2700
|
+
},
|
|
2701
|
+
"filename": {
|
|
2702
|
+
"type": "string"
|
|
2703
|
+
},
|
|
2704
|
+
"fileSnapshot": {
|
|
2705
|
+
"type": "string"
|
|
2706
|
+
}
|
|
2707
|
+
},
|
|
2708
|
+
"required": [
|
|
2709
|
+
"type",
|
|
2710
|
+
"filename",
|
|
2711
|
+
"fileSnapshot"
|
|
2712
|
+
]
|
|
2713
|
+
}
|
|
2714
|
+
]
|
|
2715
|
+
},
|
|
2716
|
+
"CaptureFileChangedEvent": {
|
|
2717
|
+
"allOf": [
|
|
2718
|
+
{
|
|
2719
|
+
"$ref": "#/components/schemas/BaseCaptureEvent"
|
|
2720
|
+
},
|
|
2721
|
+
{
|
|
2722
|
+
"type": "object",
|
|
2723
|
+
"properties": {
|
|
2724
|
+
"type": {
|
|
2725
|
+
"type": "string",
|
|
2726
|
+
"enum": [
|
|
2727
|
+
"file.changed"
|
|
2728
|
+
]
|
|
2729
|
+
},
|
|
2730
|
+
"filename": {
|
|
2731
|
+
"type": "string"
|
|
2732
|
+
},
|
|
2733
|
+
"fileDiff": {
|
|
2734
|
+
"type": "string"
|
|
2735
|
+
}
|
|
2736
|
+
},
|
|
2737
|
+
"required": [
|
|
2738
|
+
"type",
|
|
2739
|
+
"filename",
|
|
2740
|
+
"fileDiff"
|
|
2741
|
+
]
|
|
2742
|
+
}
|
|
2743
|
+
]
|
|
2744
|
+
},
|
|
2745
|
+
"CaptureFileRemovedEvent": {
|
|
2746
|
+
"allOf": [
|
|
2747
|
+
{
|
|
2748
|
+
"$ref": "#/components/schemas/BaseCaptureEvent"
|
|
2749
|
+
},
|
|
2750
|
+
{
|
|
2751
|
+
"type": "object",
|
|
2752
|
+
"properties": {
|
|
2753
|
+
"type": {
|
|
2754
|
+
"type": "string",
|
|
2755
|
+
"enum": [
|
|
2756
|
+
"file.removed"
|
|
2757
|
+
]
|
|
2758
|
+
},
|
|
2759
|
+
"filename": {
|
|
2760
|
+
"type": "string"
|
|
2761
|
+
},
|
|
2762
|
+
"fileSnapshot": {
|
|
2763
|
+
"type": "string"
|
|
2764
|
+
}
|
|
2765
|
+
},
|
|
2766
|
+
"required": [
|
|
2767
|
+
"type",
|
|
2768
|
+
"filename",
|
|
2769
|
+
"fileSnapshot"
|
|
2770
|
+
]
|
|
2771
|
+
}
|
|
2772
|
+
]
|
|
2773
|
+
},
|
|
2620
2774
|
"ChangeRequest": {
|
|
2621
2775
|
"type": "object",
|
|
2622
2776
|
"properties": {
|
|
@@ -3472,7 +3626,7 @@
|
|
|
3472
3626
|
"type": "string",
|
|
3473
3627
|
"enum": [
|
|
3474
3628
|
"entities:write",
|
|
3475
|
-
"
|
|
3629
|
+
"capture:write",
|
|
3476
3630
|
"space:views:read",
|
|
3477
3631
|
"space:content:read",
|
|
3478
3632
|
"space:content:write",
|
|
@@ -3667,6 +3821,7 @@
|
|
|
3667
3821
|
"collaboration",
|
|
3668
3822
|
"marketing",
|
|
3669
3823
|
"content",
|
|
3824
|
+
"gitsync",
|
|
3670
3825
|
"other"
|
|
3671
3826
|
]
|
|
3672
3827
|
},
|
|
@@ -3968,6 +4123,10 @@
|
|
|
3968
4123
|
"secrets": {
|
|
3969
4124
|
"$ref": "#/components/schemas/IntegrationSecrets"
|
|
3970
4125
|
},
|
|
4126
|
+
"signingSecret": {
|
|
4127
|
+
"type": "string",
|
|
4128
|
+
"description": "Secret that can be used to verify the authenticity of incoming HTTP requests to the integration."
|
|
4129
|
+
},
|
|
3971
4130
|
"apiEndpoint": {
|
|
3972
4131
|
"type": "string",
|
|
3973
4132
|
"description": "URL of the HTTP API"
|
|
@@ -4537,6 +4696,9 @@
|
|
|
4537
4696
|
{
|
|
4538
4697
|
"$ref": "#/components/schemas/SpaceInstallationSetupEvent"
|
|
4539
4698
|
},
|
|
4699
|
+
{
|
|
4700
|
+
"$ref": "#/components/schemas/SpaceInstallationDeletedEvent"
|
|
4701
|
+
},
|
|
4540
4702
|
{
|
|
4541
4703
|
"$ref": "#/components/schemas/SpaceViewEvent"
|
|
4542
4704
|
},
|
|
@@ -4708,6 +4870,39 @@
|
|
|
4708
4870
|
}
|
|
4709
4871
|
]
|
|
4710
4872
|
},
|
|
4873
|
+
"SpaceInstallationDeletedEvent": {
|
|
4874
|
+
"allOf": [
|
|
4875
|
+
{
|
|
4876
|
+
"$ref": "#/components/schemas/SpaceEvent"
|
|
4877
|
+
},
|
|
4878
|
+
{
|
|
4879
|
+
"type": "object",
|
|
4880
|
+
"description": "Event received when integration has been uninstalled from a space.",
|
|
4881
|
+
"properties": {
|
|
4882
|
+
"type": {
|
|
4883
|
+
"type": "string",
|
|
4884
|
+
"enum": [
|
|
4885
|
+
"space_installation_deleted"
|
|
4886
|
+
]
|
|
4887
|
+
},
|
|
4888
|
+
"previous": {
|
|
4889
|
+
"type": "object",
|
|
4890
|
+
"description": "The state of the Space installation before it was deleted.",
|
|
4891
|
+
"properties": {
|
|
4892
|
+
"configuration": {
|
|
4893
|
+
"type": "object",
|
|
4894
|
+
"description": "The previous configuration of the Space installation."
|
|
4895
|
+
}
|
|
4896
|
+
}
|
|
4897
|
+
}
|
|
4898
|
+
},
|
|
4899
|
+
"required": [
|
|
4900
|
+
"type",
|
|
4901
|
+
"previous"
|
|
4902
|
+
]
|
|
4903
|
+
}
|
|
4904
|
+
]
|
|
4905
|
+
},
|
|
4711
4906
|
"SpaceViewEvent": {
|
|
4712
4907
|
"allOf": [
|
|
4713
4908
|
{
|
|
@@ -6211,7 +6406,8 @@
|
|
|
6211
6406
|
"warning",
|
|
6212
6407
|
"link",
|
|
6213
6408
|
"link-external",
|
|
6214
|
-
"eye"
|
|
6409
|
+
"eye",
|
|
6410
|
+
"lock"
|
|
6215
6411
|
]
|
|
6216
6412
|
},
|
|
6217
6413
|
"ContentKitModal": {
|
|
@@ -6607,6 +6803,9 @@
|
|
|
6607
6803
|
},
|
|
6608
6804
|
{
|
|
6609
6805
|
"$ref": "#/components/schemas/ContentKitButton"
|
|
6806
|
+
},
|
|
6807
|
+
{
|
|
6808
|
+
"$ref": "#/components/schemas/ContentKitCodeBlock"
|
|
6610
6809
|
}
|
|
6611
6810
|
]
|
|
6612
6811
|
}
|
|
@@ -7020,6 +7219,12 @@
|
|
|
7020
7219
|
{
|
|
7021
7220
|
"$ref": "#/components/schemas/UserAPITokensChannel"
|
|
7022
7221
|
},
|
|
7222
|
+
{
|
|
7223
|
+
"$ref": "#/components/schemas/UserPreferencesChannel"
|
|
7224
|
+
},
|
|
7225
|
+
{
|
|
7226
|
+
"$ref": "#/components/schemas/UserProfileChannel"
|
|
7227
|
+
},
|
|
7023
7228
|
{
|
|
7024
7229
|
"$ref": "#/components/schemas/ChangeRequestReviewsChannel"
|
|
7025
7230
|
},
|
|
@@ -7054,7 +7259,7 @@
|
|
|
7054
7259
|
"$ref": "#/components/schemas/OrganizationSchemasChannel"
|
|
7055
7260
|
},
|
|
7056
7261
|
{
|
|
7057
|
-
"$ref": "#/components/schemas/
|
|
7262
|
+
"$ref": "#/components/schemas/OrganizationCapturesChannel"
|
|
7058
7263
|
},
|
|
7059
7264
|
{
|
|
7060
7265
|
"type": "object",
|
|
@@ -7323,6 +7528,42 @@
|
|
|
7323
7528
|
"user"
|
|
7324
7529
|
]
|
|
7325
7530
|
},
|
|
7531
|
+
"UserPreferencesChannel": {
|
|
7532
|
+
"type": "object",
|
|
7533
|
+
"properties": {
|
|
7534
|
+
"channel": {
|
|
7535
|
+
"type": "string",
|
|
7536
|
+
"enum": [
|
|
7537
|
+
"user-preferences"
|
|
7538
|
+
]
|
|
7539
|
+
},
|
|
7540
|
+
"user": {
|
|
7541
|
+
"type": "string"
|
|
7542
|
+
}
|
|
7543
|
+
},
|
|
7544
|
+
"required": [
|
|
7545
|
+
"channel",
|
|
7546
|
+
"user"
|
|
7547
|
+
]
|
|
7548
|
+
},
|
|
7549
|
+
"UserProfileChannel": {
|
|
7550
|
+
"type": "object",
|
|
7551
|
+
"properties": {
|
|
7552
|
+
"channel": {
|
|
7553
|
+
"type": "string",
|
|
7554
|
+
"enum": [
|
|
7555
|
+
"user-profile"
|
|
7556
|
+
]
|
|
7557
|
+
},
|
|
7558
|
+
"user": {
|
|
7559
|
+
"type": "string"
|
|
7560
|
+
}
|
|
7561
|
+
},
|
|
7562
|
+
"required": [
|
|
7563
|
+
"channel",
|
|
7564
|
+
"user"
|
|
7565
|
+
]
|
|
7566
|
+
},
|
|
7326
7567
|
"ChangeRequestReviewsChannel": {
|
|
7327
7568
|
"type": "object",
|
|
7328
7569
|
"properties": {
|
|
@@ -7588,13 +7829,13 @@
|
|
|
7588
7829
|
"organization"
|
|
7589
7830
|
]
|
|
7590
7831
|
},
|
|
7591
|
-
"
|
|
7832
|
+
"OrganizationCapturesChannel": {
|
|
7592
7833
|
"type": "object",
|
|
7593
7834
|
"properties": {
|
|
7594
7835
|
"channel": {
|
|
7595
7836
|
"type": "string",
|
|
7596
7837
|
"enum": [
|
|
7597
|
-
"organization-
|
|
7838
|
+
"organization-captures"
|
|
7598
7839
|
]
|
|
7599
7840
|
},
|
|
7600
7841
|
"organization": {
|
|
@@ -7625,6 +7866,12 @@
|
|
|
7625
7866
|
"type": {
|
|
7626
7867
|
"$ref": "#/components/schemas/CustomFieldType"
|
|
7627
7868
|
},
|
|
7869
|
+
"placeholder": {
|
|
7870
|
+
"$ref": "#/components/schemas/CustomFieldPlaceholder"
|
|
7871
|
+
},
|
|
7872
|
+
"options": {
|
|
7873
|
+
"$ref": "#/components/schemas/CustomFieldOptions"
|
|
7874
|
+
},
|
|
7628
7875
|
"createdAt": {
|
|
7629
7876
|
"$ref": "#/components/schemas/Date"
|
|
7630
7877
|
},
|
|
@@ -7651,6 +7898,7 @@
|
|
|
7651
7898
|
"name",
|
|
7652
7899
|
"title",
|
|
7653
7900
|
"description",
|
|
7901
|
+
"placeholder",
|
|
7654
7902
|
"type",
|
|
7655
7903
|
"createdAt",
|
|
7656
7904
|
"updatedAt",
|
|
@@ -7659,7 +7907,7 @@
|
|
|
7659
7907
|
},
|
|
7660
7908
|
"CustomFieldName": {
|
|
7661
7909
|
"type": "string",
|
|
7662
|
-
"pattern": "^[a-
|
|
7910
|
+
"pattern": "^[a-z_\\-0-9]+$",
|
|
7663
7911
|
"minLength": 1,
|
|
7664
7912
|
"maxLength": 50
|
|
7665
7913
|
},
|
|
@@ -7677,7 +7925,9 @@
|
|
|
7677
7925
|
"text",
|
|
7678
7926
|
"number",
|
|
7679
7927
|
"boolean",
|
|
7680
|
-
"tags"
|
|
7928
|
+
"tags",
|
|
7929
|
+
"select:multi",
|
|
7930
|
+
"select:single"
|
|
7681
7931
|
]
|
|
7682
7932
|
},
|
|
7683
7933
|
"CustomFieldValue": {
|
|
@@ -7742,6 +7992,20 @@
|
|
|
7742
7992
|
"values"
|
|
7743
7993
|
]
|
|
7744
7994
|
},
|
|
7995
|
+
"CustomFieldOptions": {
|
|
7996
|
+
"type": "array",
|
|
7997
|
+
"minItems": 1,
|
|
7998
|
+
"maxItems": 50,
|
|
7999
|
+
"items": {
|
|
8000
|
+
"type": "string",
|
|
8001
|
+
"minLength": 1,
|
|
8002
|
+
"maxLength": 40
|
|
8003
|
+
}
|
|
8004
|
+
},
|
|
8005
|
+
"CustomFieldPlaceholder": {
|
|
8006
|
+
"type": "string",
|
|
8007
|
+
"maxLength": 100
|
|
8008
|
+
},
|
|
7745
8009
|
"Environment": {
|
|
7746
8010
|
"type": "object",
|
|
7747
8011
|
"description": "An environment",
|
|
@@ -8185,6 +8449,76 @@
|
|
|
8185
8449
|
}
|
|
8186
8450
|
}
|
|
8187
8451
|
},
|
|
8452
|
+
"/user/preferences": {
|
|
8453
|
+
"get": {
|
|
8454
|
+
"operationId": "getPreferencesForAuthenticatedUser",
|
|
8455
|
+
"summary": "Get the preferences for the currently authenticated user",
|
|
8456
|
+
"tags": [
|
|
8457
|
+
"users"
|
|
8458
|
+
],
|
|
8459
|
+
"security": [
|
|
8460
|
+
{
|
|
8461
|
+
"user": []
|
|
8462
|
+
}
|
|
8463
|
+
],
|
|
8464
|
+
"description": "Returns the preferences for the user associated with the authentication provided in the request's authorization header.\n",
|
|
8465
|
+
"responses": {
|
|
8466
|
+
"200": {
|
|
8467
|
+
"description": "OK",
|
|
8468
|
+
"content": {
|
|
8469
|
+
"application/json": {
|
|
8470
|
+
"schema": {
|
|
8471
|
+
"$ref": "#/components/schemas/UserPreferences"
|
|
8472
|
+
}
|
|
8473
|
+
}
|
|
8474
|
+
}
|
|
8475
|
+
},
|
|
8476
|
+
"default": {
|
|
8477
|
+
"$ref": "#/components/responses/UnexpectedError"
|
|
8478
|
+
}
|
|
8479
|
+
}
|
|
8480
|
+
},
|
|
8481
|
+
"patch": {
|
|
8482
|
+
"operationId": "updatePreferencesForAuthenticatedUser",
|
|
8483
|
+
"summary": "Update the preferences for the currently authenticated user",
|
|
8484
|
+
"tags": [
|
|
8485
|
+
"users"
|
|
8486
|
+
],
|
|
8487
|
+
"requestBody": {
|
|
8488
|
+
"required": true,
|
|
8489
|
+
"content": {
|
|
8490
|
+
"application/json": {
|
|
8491
|
+
"schema": {
|
|
8492
|
+
"type": "object",
|
|
8493
|
+
"properties": {
|
|
8494
|
+
"theme": {
|
|
8495
|
+
"$ref": "#/components/schemas/UserPreferencesTheme"
|
|
8496
|
+
}
|
|
8497
|
+
},
|
|
8498
|
+
"required": [
|
|
8499
|
+
"theme"
|
|
8500
|
+
]
|
|
8501
|
+
}
|
|
8502
|
+
}
|
|
8503
|
+
}
|
|
8504
|
+
},
|
|
8505
|
+
"responses": {
|
|
8506
|
+
"200": {
|
|
8507
|
+
"description": "The user preferences have been updated",
|
|
8508
|
+
"content": {
|
|
8509
|
+
"application/json": {
|
|
8510
|
+
"schema": {
|
|
8511
|
+
"$ref": "#/components/schemas/UserPreferences"
|
|
8512
|
+
}
|
|
8513
|
+
}
|
|
8514
|
+
}
|
|
8515
|
+
},
|
|
8516
|
+
"default": {
|
|
8517
|
+
"$ref": "#/components/responses/UnexpectedError"
|
|
8518
|
+
}
|
|
8519
|
+
}
|
|
8520
|
+
}
|
|
8521
|
+
},
|
|
8188
8522
|
"/user/spaces": {
|
|
8189
8523
|
"get": {
|
|
8190
8524
|
"operationId": "listSpacesForAuthenticatedUser",
|
|
@@ -12412,6 +12746,61 @@
|
|
|
12412
12746
|
}
|
|
12413
12747
|
}
|
|
12414
12748
|
},
|
|
12749
|
+
"/integrations/{integrationName}/tasks": {
|
|
12750
|
+
"post": {
|
|
12751
|
+
"operationId": "queueIntegrationTask",
|
|
12752
|
+
"summary": "Queue a task for an integration to be executed later",
|
|
12753
|
+
"tags": [
|
|
12754
|
+
"integrations"
|
|
12755
|
+
],
|
|
12756
|
+
"security": [
|
|
12757
|
+
{
|
|
12758
|
+
"integration": []
|
|
12759
|
+
}
|
|
12760
|
+
],
|
|
12761
|
+
"parameters": [
|
|
12762
|
+
{
|
|
12763
|
+
"$ref": "#/components/parameters/integrationName"
|
|
12764
|
+
}
|
|
12765
|
+
],
|
|
12766
|
+
"requestBody": {
|
|
12767
|
+
"required": true,
|
|
12768
|
+
"content": {
|
|
12769
|
+
"application/json": {
|
|
12770
|
+
"schema": {
|
|
12771
|
+
"type": "object",
|
|
12772
|
+
"properties": {
|
|
12773
|
+
"task": {
|
|
12774
|
+
"type": "object",
|
|
12775
|
+
"description": "Payload for the integration task"
|
|
12776
|
+
},
|
|
12777
|
+
"schedule": {
|
|
12778
|
+
"type": "number",
|
|
12779
|
+
"description": "Number of seconds to wait before executing the task, defaults to 0",
|
|
12780
|
+
"minimum": 0,
|
|
12781
|
+
"maximum": 86400
|
|
12782
|
+
}
|
|
12783
|
+
},
|
|
12784
|
+
"required": [
|
|
12785
|
+
"task"
|
|
12786
|
+
]
|
|
12787
|
+
}
|
|
12788
|
+
}
|
|
12789
|
+
}
|
|
12790
|
+
},
|
|
12791
|
+
"responses": {
|
|
12792
|
+
"204": {
|
|
12793
|
+
"description": "Integration task created successfully"
|
|
12794
|
+
},
|
|
12795
|
+
"404": {
|
|
12796
|
+
"$ref": "#/components/responses/NotFoundError"
|
|
12797
|
+
},
|
|
12798
|
+
"default": {
|
|
12799
|
+
"$ref": "#/components/responses/UnexpectedError"
|
|
12800
|
+
}
|
|
12801
|
+
}
|
|
12802
|
+
}
|
|
12803
|
+
},
|
|
12415
12804
|
"/integrations/{integrationName}/installations/{installationId}": {
|
|
12416
12805
|
"get": {
|
|
12417
12806
|
"operationId": "getIntegrationInstallationById",
|
|
@@ -14624,6 +15013,12 @@
|
|
|
14624
15013
|
},
|
|
14625
15014
|
"description": {
|
|
14626
15015
|
"$ref": "#/components/schemas/CustomFieldDescription"
|
|
15016
|
+
},
|
|
15017
|
+
"placeholder": {
|
|
15018
|
+
"$ref": "#/components/schemas/CustomFieldPlaceholder"
|
|
15019
|
+
},
|
|
15020
|
+
"options": {
|
|
15021
|
+
"$ref": "#/components/schemas/CustomFieldOptions"
|
|
14627
15022
|
}
|
|
14628
15023
|
},
|
|
14629
15024
|
"required": [
|
|
@@ -14742,6 +15137,12 @@
|
|
|
14742
15137
|
},
|
|
14743
15138
|
"description": {
|
|
14744
15139
|
"$ref": "#/components/schemas/CustomFieldDescription"
|
|
15140
|
+
},
|
|
15141
|
+
"placeholder": {
|
|
15142
|
+
"$ref": "#/components/schemas/CustomFieldPlaceholder"
|
|
15143
|
+
},
|
|
15144
|
+
"options": {
|
|
15145
|
+
"$ref": "#/components/schemas/CustomFieldOptions"
|
|
14745
15146
|
}
|
|
14746
15147
|
}
|
|
14747
15148
|
}
|
|
@@ -15327,9 +15728,6 @@
|
|
|
15327
15728
|
"application/json": {
|
|
15328
15729
|
"schema": {
|
|
15329
15730
|
"type": "object",
|
|
15330
|
-
"required": [
|
|
15331
|
-
"entities"
|
|
15332
|
-
],
|
|
15333
15731
|
"properties": {
|
|
15334
15732
|
"delete": {
|
|
15335
15733
|
"oneOf": [
|
|
@@ -15408,11 +15806,11 @@
|
|
|
15408
15806
|
}
|
|
15409
15807
|
}
|
|
15410
15808
|
},
|
|
15411
|
-
"/orgs/{organizationId}/
|
|
15809
|
+
"/orgs/{organizationId}/captures": {
|
|
15412
15810
|
"get": {
|
|
15413
|
-
"operationId": "
|
|
15414
|
-
"summary": "List
|
|
15415
|
-
"description": "List
|
|
15811
|
+
"operationId": "listCaptures",
|
|
15812
|
+
"summary": "List captures",
|
|
15813
|
+
"description": "List captures in an organization.\n",
|
|
15416
15814
|
"tags": [
|
|
15417
15815
|
"organizations"
|
|
15418
15816
|
],
|
|
@@ -15425,6 +15823,9 @@
|
|
|
15425
15823
|
{
|
|
15426
15824
|
"$ref": "#/components/parameters/organizationId"
|
|
15427
15825
|
},
|
|
15826
|
+
{
|
|
15827
|
+
"$ref": "#/components/parameters/pageFormat"
|
|
15828
|
+
},
|
|
15428
15829
|
{
|
|
15429
15830
|
"$ref": "#/components/parameters/listPage"
|
|
15430
15831
|
},
|
|
@@ -15451,7 +15852,7 @@
|
|
|
15451
15852
|
"items": {
|
|
15452
15853
|
"type": "array",
|
|
15453
15854
|
"items": {
|
|
15454
|
-
"$ref": "#/components/schemas/
|
|
15855
|
+
"$ref": "#/components/schemas/Capture"
|
|
15455
15856
|
}
|
|
15456
15857
|
}
|
|
15457
15858
|
}
|
|
@@ -15467,8 +15868,8 @@
|
|
|
15467
15868
|
}
|
|
15468
15869
|
},
|
|
15469
15870
|
"post": {
|
|
15470
|
-
"operationId": "
|
|
15471
|
-
"summary": "Start a
|
|
15871
|
+
"operationId": "startCapture",
|
|
15872
|
+
"summary": "Start a capture",
|
|
15472
15873
|
"tags": [
|
|
15473
15874
|
"organizations"
|
|
15474
15875
|
],
|
|
@@ -15489,19 +15890,19 @@
|
|
|
15489
15890
|
"type": "object",
|
|
15490
15891
|
"properties": {
|
|
15491
15892
|
"title": {
|
|
15492
|
-
"$ref": "#/components/schemas/
|
|
15893
|
+
"$ref": "#/components/schemas/CaptureTitle"
|
|
15493
15894
|
},
|
|
15494
15895
|
"context": {
|
|
15495
|
-
"$ref": "#/components/schemas/
|
|
15896
|
+
"$ref": "#/components/schemas/CaptureContext"
|
|
15496
15897
|
},
|
|
15497
15898
|
"externalId": {
|
|
15498
15899
|
"type": "string",
|
|
15499
|
-
"description": "ID in the original source of the
|
|
15900
|
+
"description": "ID in the original source of the capture."
|
|
15500
15901
|
},
|
|
15501
15902
|
"externalURL": {
|
|
15502
15903
|
"type": "string",
|
|
15503
15904
|
"format": "uri",
|
|
15504
|
-
"description": "URL of the original source of the
|
|
15905
|
+
"description": "URL of the original source of the capture."
|
|
15505
15906
|
}
|
|
15506
15907
|
},
|
|
15507
15908
|
"required": [
|
|
@@ -15513,10 +15914,10 @@
|
|
|
15513
15914
|
},
|
|
15514
15915
|
"responses": {
|
|
15515
15916
|
"201": {
|
|
15516
|
-
"description": "
|
|
15917
|
+
"description": "Capture started",
|
|
15517
15918
|
"headers": {
|
|
15518
15919
|
"Location": {
|
|
15519
|
-
"description": "API URL for the newly created
|
|
15920
|
+
"description": "API URL for the newly created capture",
|
|
15520
15921
|
"schema": {
|
|
15521
15922
|
"type": "string"
|
|
15522
15923
|
}
|
|
@@ -15525,7 +15926,7 @@
|
|
|
15525
15926
|
"content": {
|
|
15526
15927
|
"application/json": {
|
|
15527
15928
|
"schema": {
|
|
15528
|
-
"$ref": "#/components/schemas/
|
|
15929
|
+
"$ref": "#/components/schemas/Capture"
|
|
15529
15930
|
}
|
|
15530
15931
|
}
|
|
15531
15932
|
}
|
|
@@ -15536,10 +15937,10 @@
|
|
|
15536
15937
|
}
|
|
15537
15938
|
}
|
|
15538
15939
|
},
|
|
15539
|
-
"/orgs/{organizationId}/
|
|
15940
|
+
"/orgs/{organizationId}/captures/{captureId}": {
|
|
15540
15941
|
"get": {
|
|
15541
|
-
"operationId": "
|
|
15542
|
-
"summary": "Get a
|
|
15942
|
+
"operationId": "getCapture",
|
|
15943
|
+
"summary": "Get a capture by its ID",
|
|
15543
15944
|
"tags": [
|
|
15544
15945
|
"organizations"
|
|
15545
15946
|
],
|
|
@@ -15553,7 +15954,10 @@
|
|
|
15553
15954
|
"$ref": "#/components/parameters/organizationId"
|
|
15554
15955
|
},
|
|
15555
15956
|
{
|
|
15556
|
-
"$ref": "#/components/parameters/
|
|
15957
|
+
"$ref": "#/components/parameters/captureId"
|
|
15958
|
+
},
|
|
15959
|
+
{
|
|
15960
|
+
"$ref": "#/components/parameters/pageFormat"
|
|
15557
15961
|
}
|
|
15558
15962
|
],
|
|
15559
15963
|
"responses": {
|
|
@@ -15562,7 +15966,7 @@
|
|
|
15562
15966
|
"content": {
|
|
15563
15967
|
"application/json": {
|
|
15564
15968
|
"schema": {
|
|
15565
|
-
"$ref": "#/components/schemas/
|
|
15969
|
+
"$ref": "#/components/schemas/Capture"
|
|
15566
15970
|
}
|
|
15567
15971
|
}
|
|
15568
15972
|
}
|
|
@@ -15573,10 +15977,10 @@
|
|
|
15573
15977
|
}
|
|
15574
15978
|
}
|
|
15575
15979
|
},
|
|
15576
|
-
"/orgs/{organizationId}/
|
|
15980
|
+
"/orgs/{organizationId}/captures/{captureId}/events": {
|
|
15577
15981
|
"post": {
|
|
15578
|
-
"operationId": "
|
|
15579
|
-
"summary": "Add events to a running
|
|
15982
|
+
"operationId": "addEventsToCapture",
|
|
15983
|
+
"summary": "Add events to a running capture",
|
|
15580
15984
|
"tags": [
|
|
15581
15985
|
"organizations"
|
|
15582
15986
|
],
|
|
@@ -15590,7 +15994,7 @@
|
|
|
15590
15994
|
"$ref": "#/components/parameters/organizationId"
|
|
15591
15995
|
},
|
|
15592
15996
|
{
|
|
15593
|
-
"$ref": "#/components/parameters/
|
|
15997
|
+
"$ref": "#/components/parameters/captureId"
|
|
15594
15998
|
}
|
|
15595
15999
|
],
|
|
15596
16000
|
"requestBody": {
|
|
@@ -15602,7 +16006,7 @@
|
|
|
15602
16006
|
"events": {
|
|
15603
16007
|
"type": "array",
|
|
15604
16008
|
"items": {
|
|
15605
|
-
"$ref": "#/components/schemas/
|
|
16009
|
+
"$ref": "#/components/schemas/CaptureEvent"
|
|
15606
16010
|
}
|
|
15607
16011
|
}
|
|
15608
16012
|
},
|
|
@@ -15623,10 +16027,10 @@
|
|
|
15623
16027
|
}
|
|
15624
16028
|
}
|
|
15625
16029
|
},
|
|
15626
|
-
"/orgs/{organizationId}/
|
|
16030
|
+
"/orgs/{organizationId}/captures/{captureId}/stop": {
|
|
15627
16031
|
"post": {
|
|
15628
|
-
"operationId": "
|
|
15629
|
-
"summary": "Stop a
|
|
16032
|
+
"operationId": "stopCapture",
|
|
16033
|
+
"summary": "Stop a capture",
|
|
15630
16034
|
"tags": [
|
|
15631
16035
|
"organizations"
|
|
15632
16036
|
],
|
|
@@ -15640,7 +16044,10 @@
|
|
|
15640
16044
|
"$ref": "#/components/parameters/organizationId"
|
|
15641
16045
|
},
|
|
15642
16046
|
{
|
|
15643
|
-
"$ref": "#/components/parameters/
|
|
16047
|
+
"$ref": "#/components/parameters/captureId"
|
|
16048
|
+
},
|
|
16049
|
+
{
|
|
16050
|
+
"$ref": "#/components/parameters/pageFormat"
|
|
15644
16051
|
}
|
|
15645
16052
|
],
|
|
15646
16053
|
"requestBody": {
|
|
@@ -15648,32 +16055,24 @@
|
|
|
15648
16055
|
"application/json": {
|
|
15649
16056
|
"schema": {
|
|
15650
16057
|
"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
|
-
]
|
|
16058
|
+
"properties": {}
|
|
15660
16059
|
}
|
|
15661
16060
|
}
|
|
15662
16061
|
}
|
|
15663
16062
|
},
|
|
15664
16063
|
"responses": {
|
|
15665
16064
|
"200": {
|
|
15666
|
-
"description": "
|
|
16065
|
+
"description": "Capture stopped",
|
|
15667
16066
|
"content": {
|
|
15668
16067
|
"application/json": {
|
|
15669
16068
|
"schema": {
|
|
15670
16069
|
"type": "object",
|
|
15671
16070
|
"properties": {
|
|
15672
|
-
"
|
|
15673
|
-
"$ref": "#/components/schemas/
|
|
16071
|
+
"capture": {
|
|
16072
|
+
"$ref": "#/components/schemas/Capture"
|
|
15674
16073
|
},
|
|
15675
16074
|
"followupQuestions": {
|
|
15676
|
-
"description": "Example questions that would be answered by the content of this
|
|
16075
|
+
"description": "Example questions that would be answered by the content of this capture.",
|
|
15677
16076
|
"type": "array",
|
|
15678
16077
|
"items": {
|
|
15679
16078
|
"type": "string"
|
|
@@ -15681,7 +16080,7 @@
|
|
|
15681
16080
|
}
|
|
15682
16081
|
},
|
|
15683
16082
|
"required": [
|
|
15684
|
-
"
|
|
16083
|
+
"capture"
|
|
15685
16084
|
]
|
|
15686
16085
|
}
|
|
15687
16086
|
}
|