@gitbook/api 0.8.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/spec/openapi.json CHANGED
@@ -203,11 +203,11 @@
203
203
  "type": "string"
204
204
  }
205
205
  },
206
- "recordingId": {
207
- "name": "recordingId",
206
+ "captureId": {
207
+ "name": "captureId",
208
208
  "in": "path",
209
209
  "required": true,
210
- "description": "The unique id of a recording",
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
- "Recording": {
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 recording"
2424
+ "description": "Unique identifier for the capture"
2380
2425
  },
2381
2426
  "title": {
2382
- "$ref": "#/components/schemas/RecordingTitle"
2427
+ "$ref": "#/components/schemas/CaptureTitle"
2383
2428
  },
2384
2429
  "context": {
2385
- "$ref": "#/components/schemas/RecordingContext"
2430
+ "$ref": "#/components/schemas/CaptureContext"
2386
2431
  },
2387
2432
  "externalId": {
2388
2433
  "type": "string",
2389
- "description": "ID in the original source of the recording."
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 recording originated"
2439
+ "description": "URL of the source from which the capture originated"
2395
2440
  },
2396
2441
  "createdAt": {
2397
2442
  "type": "string",
@@ -2430,8 +2475,8 @@
2430
2475
  }
2431
2476
  },
2432
2477
  "output": {
2433
- "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.",
2434
- "$ref": "#/components/schemas/RecordingOutput"
2478
+ "description": "Output document for the capture. Is not set when capture is not finished.",
2479
+ "$ref": "#/components/schemas/Document"
2435
2480
  },
2436
2481
  "urls": {
2437
2482
  "type": "object",
@@ -2439,7 +2484,7 @@
2439
2484
  "properties": {
2440
2485
  "location": {
2441
2486
  "type": "string",
2442
- "description": "URL of the recording in the API",
2487
+ "description": "URL of the capture in the API",
2443
2488
  "format": "uri"
2444
2489
  }
2445
2490
  },
@@ -2459,55 +2504,34 @@
2459
2504
  "urls"
2460
2505
  ]
2461
2506
  },
2462
- "RecordingTitle": {
2507
+ "CaptureTitle": {
2463
2508
  "type": "string",
2464
- "description": "Optional title describing the recording",
2509
+ "description": "Optional title describing the capture",
2465
2510
  "maxLength": 100
2466
2511
  },
2467
- "RecordingOutput": {
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": {
2512
+ "CaptureEvent": {
2489
2513
  "oneOf": [
2490
2514
  {
2491
- "$ref": "#/components/schemas/RecordingTerminalCommandEvent"
2515
+ "$ref": "#/components/schemas/CaptureTerminalCommandEvent"
2492
2516
  },
2493
2517
  {
2494
- "$ref": "#/components/schemas/RecordingSpeechEvent"
2518
+ "$ref": "#/components/schemas/CaptureSpeechEvent"
2495
2519
  },
2496
2520
  {
2497
- "$ref": "#/components/schemas/RecordingThreadMessageEvent"
2521
+ "$ref": "#/components/schemas/CaptureThreadMessageEvent"
2498
2522
  },
2499
2523
  {
2500
- "$ref": "#/components/schemas/RecordingFileAddedEvent"
2524
+ "$ref": "#/components/schemas/CaptureFileAddedEvent"
2501
2525
  },
2502
2526
  {
2503
- "$ref": "#/components/schemas/RecordingFileChangedEvent"
2527
+ "$ref": "#/components/schemas/CaptureFileChangedEvent"
2504
2528
  },
2505
2529
  {
2506
- "$ref": "#/components/schemas/RecordingFileRemovedEvent"
2530
+ "$ref": "#/components/schemas/CaptureFileRemovedEvent"
2507
2531
  }
2508
2532
  ]
2509
2533
  },
2510
- "RecordingContext": {
2534
+ "CaptureContext": {
2511
2535
  "oneOf": [
2512
2536
  {
2513
2537
  "type": "string",
@@ -2519,7 +2543,7 @@
2519
2543
  }
2520
2544
  ]
2521
2545
  },
2522
- "BaseRecordingEvent": {
2546
+ "BaseCaptureEvent": {
2523
2547
  "type": "object",
2524
2548
  "properties": {
2525
2549
  "type": {
@@ -2538,7 +2562,7 @@
2538
2562
  },
2539
2563
  "actor": {
2540
2564
  "type": "object",
2541
- "description": "Optionally, provide the actor of the event, in the context of multiple people contributing to the recording.",
2565
+ "description": "Optionally, provide the actor of the event, in the context of multiple people contributing to the capture.",
2542
2566
  "properties": {
2543
2567
  "name": {
2544
2568
  "type": "string"
@@ -2554,10 +2578,10 @@
2554
2578
  "timestamp"
2555
2579
  ]
2556
2580
  },
2557
- "RecordingSpeechEvent": {
2581
+ "CaptureSpeechEvent": {
2558
2582
  "allOf": [
2559
2583
  {
2560
- "$ref": "#/components/schemas/BaseRecordingEvent"
2584
+ "$ref": "#/components/schemas/BaseCaptureEvent"
2561
2585
  },
2562
2586
  {
2563
2587
  "type": "object",
@@ -2603,10 +2627,10 @@
2603
2627
  }
2604
2628
  ]
2605
2629
  },
2606
- "RecordingTerminalCommandEvent": {
2630
+ "CaptureTerminalCommandEvent": {
2607
2631
  "allOf": [
2608
2632
  {
2609
- "$ref": "#/components/schemas/BaseRecordingEvent"
2633
+ "$ref": "#/components/schemas/BaseCaptureEvent"
2610
2634
  },
2611
2635
  {
2612
2636
  "type": "object",
@@ -2632,10 +2656,10 @@
2632
2656
  }
2633
2657
  ]
2634
2658
  },
2635
- "RecordingThreadMessageEvent": {
2659
+ "CaptureThreadMessageEvent": {
2636
2660
  "allOf": [
2637
2661
  {
2638
- "$ref": "#/components/schemas/BaseRecordingEvent"
2662
+ "$ref": "#/components/schemas/BaseCaptureEvent"
2639
2663
  },
2640
2664
  {
2641
2665
  "type": "object",
@@ -2660,10 +2684,10 @@
2660
2684
  }
2661
2685
  ]
2662
2686
  },
2663
- "RecordingFileAddedEvent": {
2687
+ "CaptureFileAddedEvent": {
2664
2688
  "allOf": [
2665
2689
  {
2666
- "$ref": "#/components/schemas/BaseRecordingEvent"
2690
+ "$ref": "#/components/schemas/BaseCaptureEvent"
2667
2691
  },
2668
2692
  {
2669
2693
  "type": "object",
@@ -2689,10 +2713,10 @@
2689
2713
  }
2690
2714
  ]
2691
2715
  },
2692
- "RecordingFileChangedEvent": {
2716
+ "CaptureFileChangedEvent": {
2693
2717
  "allOf": [
2694
2718
  {
2695
- "$ref": "#/components/schemas/BaseRecordingEvent"
2719
+ "$ref": "#/components/schemas/BaseCaptureEvent"
2696
2720
  },
2697
2721
  {
2698
2722
  "type": "object",
@@ -2718,10 +2742,10 @@
2718
2742
  }
2719
2743
  ]
2720
2744
  },
2721
- "RecordingFileRemovedEvent": {
2745
+ "CaptureFileRemovedEvent": {
2722
2746
  "allOf": [
2723
2747
  {
2724
- "$ref": "#/components/schemas/BaseRecordingEvent"
2748
+ "$ref": "#/components/schemas/BaseCaptureEvent"
2725
2749
  },
2726
2750
  {
2727
2751
  "type": "object",
@@ -3602,7 +3626,7 @@
3602
3626
  "type": "string",
3603
3627
  "enum": [
3604
3628
  "entities:write",
3605
- "recording:write",
3629
+ "capture:write",
3606
3630
  "space:views:read",
3607
3631
  "space:content:read",
3608
3632
  "space:content:write",
@@ -6779,6 +6803,9 @@
6779
6803
  },
6780
6804
  {
6781
6805
  "$ref": "#/components/schemas/ContentKitButton"
6806
+ },
6807
+ {
6808
+ "$ref": "#/components/schemas/ContentKitCodeBlock"
6782
6809
  }
6783
6810
  ]
6784
6811
  }
@@ -7192,6 +7219,12 @@
7192
7219
  {
7193
7220
  "$ref": "#/components/schemas/UserAPITokensChannel"
7194
7221
  },
7222
+ {
7223
+ "$ref": "#/components/schemas/UserPreferencesChannel"
7224
+ },
7225
+ {
7226
+ "$ref": "#/components/schemas/UserProfileChannel"
7227
+ },
7195
7228
  {
7196
7229
  "$ref": "#/components/schemas/ChangeRequestReviewsChannel"
7197
7230
  },
@@ -7226,7 +7259,7 @@
7226
7259
  "$ref": "#/components/schemas/OrganizationSchemasChannel"
7227
7260
  },
7228
7261
  {
7229
- "$ref": "#/components/schemas/OrganizationRecordingsChannel"
7262
+ "$ref": "#/components/schemas/OrganizationCapturesChannel"
7230
7263
  },
7231
7264
  {
7232
7265
  "type": "object",
@@ -7495,6 +7528,42 @@
7495
7528
  "user"
7496
7529
  ]
7497
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
+ },
7498
7567
  "ChangeRequestReviewsChannel": {
7499
7568
  "type": "object",
7500
7569
  "properties": {
@@ -7760,13 +7829,13 @@
7760
7829
  "organization"
7761
7830
  ]
7762
7831
  },
7763
- "OrganizationRecordingsChannel": {
7832
+ "OrganizationCapturesChannel": {
7764
7833
  "type": "object",
7765
7834
  "properties": {
7766
7835
  "channel": {
7767
7836
  "type": "string",
7768
7837
  "enum": [
7769
- "organization-recordings"
7838
+ "organization-captures"
7770
7839
  ]
7771
7840
  },
7772
7841
  "organization": {
@@ -8380,6 +8449,76 @@
8380
8449
  }
8381
8450
  }
8382
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
+ },
8383
8522
  "/user/spaces": {
8384
8523
  "get": {
8385
8524
  "operationId": "listSpacesForAuthenticatedUser",
@@ -15667,11 +15806,11 @@
15667
15806
  }
15668
15807
  }
15669
15808
  },
15670
- "/orgs/{organizationId}/recordings": {
15809
+ "/orgs/{organizationId}/captures": {
15671
15810
  "get": {
15672
- "operationId": "listRecordings",
15673
- "summary": "List recordings",
15674
- "description": "List recordings in an organization.\n",
15811
+ "operationId": "listCaptures",
15812
+ "summary": "List captures",
15813
+ "description": "List captures in an organization.\n",
15675
15814
  "tags": [
15676
15815
  "organizations"
15677
15816
  ],
@@ -15684,6 +15823,9 @@
15684
15823
  {
15685
15824
  "$ref": "#/components/parameters/organizationId"
15686
15825
  },
15826
+ {
15827
+ "$ref": "#/components/parameters/pageFormat"
15828
+ },
15687
15829
  {
15688
15830
  "$ref": "#/components/parameters/listPage"
15689
15831
  },
@@ -15710,7 +15852,7 @@
15710
15852
  "items": {
15711
15853
  "type": "array",
15712
15854
  "items": {
15713
- "$ref": "#/components/schemas/Recording"
15855
+ "$ref": "#/components/schemas/Capture"
15714
15856
  }
15715
15857
  }
15716
15858
  }
@@ -15726,8 +15868,8 @@
15726
15868
  }
15727
15869
  },
15728
15870
  "post": {
15729
- "operationId": "startRecording",
15730
- "summary": "Start a recording",
15871
+ "operationId": "startCapture",
15872
+ "summary": "Start a capture",
15731
15873
  "tags": [
15732
15874
  "organizations"
15733
15875
  ],
@@ -15748,19 +15890,19 @@
15748
15890
  "type": "object",
15749
15891
  "properties": {
15750
15892
  "title": {
15751
- "$ref": "#/components/schemas/RecordingTitle"
15893
+ "$ref": "#/components/schemas/CaptureTitle"
15752
15894
  },
15753
15895
  "context": {
15754
- "$ref": "#/components/schemas/RecordingContext"
15896
+ "$ref": "#/components/schemas/CaptureContext"
15755
15897
  },
15756
15898
  "externalId": {
15757
15899
  "type": "string",
15758
- "description": "ID in the original source of the recording."
15900
+ "description": "ID in the original source of the capture."
15759
15901
  },
15760
15902
  "externalURL": {
15761
15903
  "type": "string",
15762
15904
  "format": "uri",
15763
- "description": "URL of the original source of the recording."
15905
+ "description": "URL of the original source of the capture."
15764
15906
  }
15765
15907
  },
15766
15908
  "required": [
@@ -15772,10 +15914,10 @@
15772
15914
  },
15773
15915
  "responses": {
15774
15916
  "201": {
15775
- "description": "Recording started",
15917
+ "description": "Capture started",
15776
15918
  "headers": {
15777
15919
  "Location": {
15778
- "description": "API URL for the newly created recording",
15920
+ "description": "API URL for the newly created capture",
15779
15921
  "schema": {
15780
15922
  "type": "string"
15781
15923
  }
@@ -15784,7 +15926,7 @@
15784
15926
  "content": {
15785
15927
  "application/json": {
15786
15928
  "schema": {
15787
- "$ref": "#/components/schemas/Recording"
15929
+ "$ref": "#/components/schemas/Capture"
15788
15930
  }
15789
15931
  }
15790
15932
  }
@@ -15795,10 +15937,10 @@
15795
15937
  }
15796
15938
  }
15797
15939
  },
15798
- "/orgs/{organizationId}/recordings/{recordingId}": {
15940
+ "/orgs/{organizationId}/captures/{captureId}": {
15799
15941
  "get": {
15800
- "operationId": "getRecording",
15801
- "summary": "Get a recording by its ID",
15942
+ "operationId": "getCapture",
15943
+ "summary": "Get a capture by its ID",
15802
15944
  "tags": [
15803
15945
  "organizations"
15804
15946
  ],
@@ -15812,7 +15954,10 @@
15812
15954
  "$ref": "#/components/parameters/organizationId"
15813
15955
  },
15814
15956
  {
15815
- "$ref": "#/components/parameters/recordingId"
15957
+ "$ref": "#/components/parameters/captureId"
15958
+ },
15959
+ {
15960
+ "$ref": "#/components/parameters/pageFormat"
15816
15961
  }
15817
15962
  ],
15818
15963
  "responses": {
@@ -15821,7 +15966,7 @@
15821
15966
  "content": {
15822
15967
  "application/json": {
15823
15968
  "schema": {
15824
- "$ref": "#/components/schemas/Recording"
15969
+ "$ref": "#/components/schemas/Capture"
15825
15970
  }
15826
15971
  }
15827
15972
  }
@@ -15832,10 +15977,10 @@
15832
15977
  }
15833
15978
  }
15834
15979
  },
15835
- "/orgs/{organizationId}/recordings/{recordingId}/events": {
15980
+ "/orgs/{organizationId}/captures/{captureId}/events": {
15836
15981
  "post": {
15837
- "operationId": "addEventsToRecording",
15838
- "summary": "Add events to a running recording",
15982
+ "operationId": "addEventsToCapture",
15983
+ "summary": "Add events to a running capture",
15839
15984
  "tags": [
15840
15985
  "organizations"
15841
15986
  ],
@@ -15849,7 +15994,7 @@
15849
15994
  "$ref": "#/components/parameters/organizationId"
15850
15995
  },
15851
15996
  {
15852
- "$ref": "#/components/parameters/recordingId"
15997
+ "$ref": "#/components/parameters/captureId"
15853
15998
  }
15854
15999
  ],
15855
16000
  "requestBody": {
@@ -15861,7 +16006,7 @@
15861
16006
  "events": {
15862
16007
  "type": "array",
15863
16008
  "items": {
15864
- "$ref": "#/components/schemas/RecordingEvent"
16009
+ "$ref": "#/components/schemas/CaptureEvent"
15865
16010
  }
15866
16011
  }
15867
16012
  },
@@ -15882,10 +16027,10 @@
15882
16027
  }
15883
16028
  }
15884
16029
  },
15885
- "/orgs/{organizationId}/recordings/{recordingId}/stop": {
16030
+ "/orgs/{organizationId}/captures/{captureId}/stop": {
15886
16031
  "post": {
15887
- "operationId": "stopRecording",
15888
- "summary": "Stop a recording",
16032
+ "operationId": "stopCapture",
16033
+ "summary": "Stop a capture",
15889
16034
  "tags": [
15890
16035
  "organizations"
15891
16036
  ],
@@ -15899,7 +16044,10 @@
15899
16044
  "$ref": "#/components/parameters/organizationId"
15900
16045
  },
15901
16046
  {
15902
- "$ref": "#/components/parameters/recordingId"
16047
+ "$ref": "#/components/parameters/captureId"
16048
+ },
16049
+ {
16050
+ "$ref": "#/components/parameters/pageFormat"
15903
16051
  }
15904
16052
  ],
15905
16053
  "requestBody": {
@@ -15907,32 +16055,24 @@
15907
16055
  "application/json": {
15908
16056
  "schema": {
15909
16057
  "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
- ]
16058
+ "properties": {}
15919
16059
  }
15920
16060
  }
15921
16061
  }
15922
16062
  },
15923
16063
  "responses": {
15924
16064
  "200": {
15925
- "description": "Recording stopped",
16065
+ "description": "Capture stopped",
15926
16066
  "content": {
15927
16067
  "application/json": {
15928
16068
  "schema": {
15929
16069
  "type": "object",
15930
16070
  "properties": {
15931
- "recording": {
15932
- "$ref": "#/components/schemas/RecordingOutput"
16071
+ "capture": {
16072
+ "$ref": "#/components/schemas/Capture"
15933
16073
  },
15934
16074
  "followupQuestions": {
15935
- "description": "Example questions that would be answered by the content of this recording.",
16075
+ "description": "Example questions that would be answered by the content of this capture.",
15936
16076
  "type": "array",
15937
16077
  "items": {
15938
16078
  "type": "string"
@@ -15940,7 +16080,7 @@
15940
16080
  }
15941
16081
  },
15942
16082
  "required": [
15943
- "recording"
16083
+ "capture"
15944
16084
  ]
15945
16085
  }
15946
16086
  }