@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/spec/openapi.yaml CHANGED
@@ -142,11 +142,11 @@ components:
142
142
  description: The unique id of the organization
143
143
  schema:
144
144
  type: string
145
- recordingId:
146
- name: recordingId
145
+ captureId:
146
+ name: captureId
147
147
  in: path
148
148
  required: true
149
- description: The unique id of a recording
149
+ description: The unique id of a capture
150
150
  schema:
151
151
  type: string
152
152
  userId:
@@ -362,6 +362,7 @@ components:
362
362
  items:
363
363
  $ref: "#/components/schemas/EntityRawSchema"
364
364
  required:
365
+ - organization
365
366
  - title
366
367
  - description
367
368
  - script
@@ -643,10 +644,48 @@ components:
643
644
  photoURL:
644
645
  type: string
645
646
  description: URL of the user's profile picture
647
+ urls:
648
+ type: object
649
+ description: URLs associated with the object
650
+ properties:
651
+ location:
652
+ type: string
653
+ description: URL of the user in the API
654
+ format: uri
646
655
  required:
647
656
  - object
648
657
  - id
649
658
  - displayName
659
+ - urls
660
+ UserPreferences:
661
+ type: object
662
+ properties:
663
+ object:
664
+ type: string
665
+ description: Type of Object, always equals to "user-preferences"
666
+ enum:
667
+ - user-preferences
668
+ theme:
669
+ $ref: "#/components/schemas/UserPreferencesTheme"
670
+ urls:
671
+ type: object
672
+ description: URLs associated with the object
673
+ properties:
674
+ location:
675
+ type: string
676
+ description: URL of the user preferences in the API
677
+ format: uri
678
+ required:
679
+ - object
680
+ - theme
681
+ - urls
682
+ UserPreferencesTheme:
683
+ type: string
684
+ description: Preferred theme for the application
685
+ enum:
686
+ - light
687
+ - dark
688
+ - default
650
689
  UserAPIToken:
651
690
  type: object
652
691
  description: The API token details, excluding the token itself.
@@ -675,13 +714,6 @@ components:
675
714
  description: The actual token value.
676
715
  required:
677
716
  - token
678
- UserTarget:
679
- type: object
680
- required:
681
- - user
682
- properties:
683
- user:
684
- type: string
685
717
  Team:
686
718
  type: object
687
719
  properties:
@@ -1006,14 +1038,6 @@ components:
1006
1038
  organization:
1007
1039
  type: string
1008
1040
  description: ID of the organization owning this space
1009
- user:
1010
- type: string
1011
- description: ID of the user owning this space
1012
- deprecated: true
1013
- private:
1014
- type: string
1015
- 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
1016
- deprecated: true
1017
1041
  parent:
1018
1042
  type: string
1019
1043
  description: ID of the parent collection.
@@ -1022,6 +1046,7 @@ components:
1022
1046
  - id
1023
1047
  - type
1024
1048
  - title
1049
+ - organization
1025
1050
  - visibility
1026
1051
  - createdAt
1027
1052
  - updatedAt
@@ -1660,28 +1685,23 @@ components:
1660
1685
  enum:
1661
1686
  - admin
1662
1687
  - participant
1663
- Recording:
1688
+ Capture:
1664
1689
  type: object
1665
1690
  properties:
1666
- object:
1667
- type: string
1668
- description: Type of Object, always equals to "recording"
1669
- enum:
1670
- - recording
1671
1691
  id:
1672
1692
  type: string
1673
- description: Unique identifier for the recording
1693
+ description: Unique identifier for the capture
1674
1694
  title:
1675
- $ref: "#/components/schemas/RecordingTitle"
1695
+ $ref: "#/components/schemas/CaptureTitle"
1676
1696
  context:
1677
- $ref: "#/components/schemas/RecordingContext"
1697
+ $ref: "#/components/schemas/CaptureContext"
1678
1698
  externalId:
1679
1699
  type: string
1680
- description: ID in the original source of the recording.
1700
+ description: ID in the original source of the capture.
1681
1701
  externalURL:
1682
1702
  type: string
1683
1703
  format: uri
1684
- description: URL of the source from which the recording originated
1704
+ description: URL of the source from which the capture originated
1685
1705
  createdAt:
1686
1706
  type: string
1687
1707
  format: date-time
@@ -1698,6 +1718,7 @@ components:
1698
1718
  thread.message:
1699
1719
  type: integer
1700
1720
  contributors:
1721
+ description: An array of contributors to the capture. The first contributor is the one who triggered the capture (either a user or an integration).
1701
1722
  type: array
1702
1723
  minItems: 1
1703
1724
  items:
@@ -1705,15 +1726,15 @@ components:
1705
1726
  - $ref: "#/components/schemas/Integration"
1706
1727
  - $ref: "#/components/schemas/User"
1707
1728
  output:
1708
- 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.
1709
- $ref: "#/components/schemas/RecordingOutput"
1729
+ description: Output document for the capture. Is not set when capture is not finished.
1730
+ $ref: "#/components/schemas/Document"
1710
1731
  urls:
1711
1732
  type: object
1712
1733
  description: URLs associated with the object
1713
1734
  properties:
1714
1735
  location:
1715
1736
  type: string
1716
- description: URL of the recording in the API
1737
+ description: URL of the capture in the API
1717
1738
  format: uri
1718
1739
  required:
1719
1740
  - location
@@ -1726,41 +1747,26 @@ components:
1726
1747
  - createdAt
1727
1748
  - contributors
1728
1749
  - urls
1729
- RecordingTitle:
1750
+ CaptureTitle:
1730
1751
  type: string
1731
- description: Optional title describing the recording
1752
+ description: Optional title describing the capture
1732
1753
  maxLength: 100
1733
- RecordingOutput:
1734
- type: object
1735
- properties:
1736
- url:
1737
- type: string
1738
- format: uri
1739
- description: URL of the generated page
1740
- space:
1741
- $ref: "#/components/schemas/Space"
1742
- page:
1743
- $ref: "#/components/schemas/RevisionPageDocument"
1744
- required:
1745
- - url
1746
- - space
1747
- - page
1748
- RecordingEvent:
1754
+ CaptureEvent:
1749
1755
  oneOf:
1750
- - $ref: "#/components/schemas/RecordingTerminalCommandEvent"
1751
- - $ref: "#/components/schemas/RecordingSpeechEvent"
1752
- - $ref: "#/components/schemas/RecordingThreadMessageEvent"
1753
- - $ref: "#/components/schemas/RecordingFileAddedEvent"
1754
- - $ref: "#/components/schemas/RecordingFileChangedEvent"
1755
- - $ref: "#/components/schemas/RecordingFileRemovedEvent"
1756
- RecordingContext:
1756
+ - $ref: "#/components/schemas/CaptureTerminalCommandEvent"
1757
+ - $ref: "#/components/schemas/CaptureSpeechEvent"
1758
+ - $ref: "#/components/schemas/CaptureThreadMessageEvent"
1759
+ - $ref: "#/components/schemas/CaptureFileAddedEvent"
1760
+ - $ref: "#/components/schemas/CaptureFileChangedEvent"
1761
+ - $ref: "#/components/schemas/CaptureFileRemovedEvent"
1762
+ CaptureContext:
1757
1763
  oneOf:
1758
1764
  - type: string
1759
1765
  enum:
1760
1766
  - meeting
1761
1767
  - thread
1762
1768
  - walkthrough
1763
- BaseRecordingEvent:
1769
+ BaseCaptureEvent:
1764
1770
  type: object
1765
1771
  properties:
1766
1772
  type:
@@ -1776,7 +1782,7 @@ components:
1776
1782
  maxLength: 50
1777
1783
  actor:
1778
1784
  type: object
1779
- description: Optionally, provide the actor of the event, in the context of multiple people contributing to the recording.
1785
+ description: Optionally, provide the actor of the event, in the context of multiple people contributing to the capture.
1780
1786
  properties:
1781
1787
  name:
1782
1788
  type: string
@@ -1785,9 +1791,9 @@ components:
1785
1791
  required:
1786
1792
  - type
1787
1793
  - timestamp
1788
- RecordingSpeechEvent:
1794
+ CaptureSpeechEvent:
1789
1795
  allOf:
1790
- - $ref: "#/components/schemas/BaseRecordingEvent"
1796
+ - $ref: "#/components/schemas/BaseCaptureEvent"
1791
1797
  - type: object
1792
1798
  properties:
1793
1799
  type:
@@ -1811,9 +1817,9 @@ components:
1811
1817
  type: string
1812
1818
  required:
1813
1819
  - transcript
1814
- RecordingTerminalCommandEvent:
1820
+ CaptureTerminalCommandEvent:
1815
1821
  allOf:
1816
- - $ref: "#/components/schemas/BaseRecordingEvent"
1822
+ - $ref: "#/components/schemas/BaseCaptureEvent"
1817
1823
  - type: object
1818
1824
  properties:
1819
1825
  type:
@@ -1828,9 +1834,9 @@ components:
1828
1834
  - type
1829
1835
  - command
1830
1836
  - stdout
1831
- RecordingThreadMessageEvent:
1837
+ CaptureThreadMessageEvent:
1832
1838
  allOf:
1833
- - $ref: "#/components/schemas/BaseRecordingEvent"
1839
+ - $ref: "#/components/schemas/BaseCaptureEvent"
1834
1840
  - type: object
1835
1841
  properties:
1836
1842
  type:
@@ -1844,9 +1850,9 @@ components:
1844
1850
  required:
1845
1851
  - type
1846
1852
  - text
1847
- RecordingFileAddedEvent:
1853
+ CaptureFileAddedEvent:
1848
1854
  allOf:
1849
- - $ref: "#/components/schemas/BaseRecordingEvent"
1855
+ - $ref: "#/components/schemas/BaseCaptureEvent"
1850
1856
  - type: object
1851
1857
  properties:
1852
1858
  type:
@@ -1861,9 +1867,9 @@ components:
1861
1867
  - type
1862
1868
  - filename
1863
1869
  - fileSnapshot
1864
- RecordingFileChangedEvent:
1870
+ CaptureFileChangedEvent:
1865
1871
  allOf:
1866
- - $ref: "#/components/schemas/BaseRecordingEvent"
1872
+ - $ref: "#/components/schemas/BaseCaptureEvent"
1867
1873
  - type: object
1868
1874
  properties:
1869
1875
  type:
@@ -1878,9 +1884,9 @@ components:
1878
1884
  - type
1879
1885
  - filename
1880
1886
  - fileDiff
1881
- RecordingFileRemovedEvent:
1887
+ CaptureFileRemovedEvent:
1882
1888
  allOf:
1883
- - $ref: "#/components/schemas/BaseRecordingEvent"
1889
+ - $ref: "#/components/schemas/BaseCaptureEvent"
1884
1890
  - type: object
1885
1891
  properties:
1886
1892
  type:
@@ -2200,6 +2206,7 @@ components:
2200
2206
  type: string
2201
2207
  previousQueries:
2202
2208
  type: array
2209
+ deprecated: true
2203
2210
  maxItems: 10
2204
2211
  items:
2205
2212
  type: string
@@ -2215,8 +2222,15 @@ components:
2215
2222
  type: array
2216
2223
  items:
2217
2224
  type: string
2225
+ sources:
2226
+ type: array
2227
+ description: The sources used to generate the answer.
2228
+ items:
2229
+ $ref: "#/components/schemas/SearchAIAnswerSource"
2218
2230
  pages:
2219
2231
  type: array
2232
+ deprecated: true
2233
+ description: The pages used to generate the answer. Deprecated - use sources instead.
2220
2234
  items:
2221
2235
  type: object
2222
2236
  properties:
@@ -2238,7 +2252,74 @@ components:
2238
2252
  required:
2239
2253
  - text
2240
2254
  - pages
2255
+ - sources
2241
2256
  - followupQuestions
2257
+ SearchAIAnswerSource:
2258
+ allOf:
2259
+ - type: object
2260
+ properties:
2261
+ type:
2262
+ type: string
2263
+ enum:
2264
+ - page
2265
+ - entity
2266
+ - capture
2267
+ required:
2268
+ - type
2269
+ - oneOf:
2270
+ - type: object
2271
+ properties:
2272
+ type:
2273
+ type: string
2274
+ enum:
2275
+ - page
2276
+ page:
2277
+ type: string
2278
+ revision:
2279
+ type: string
2280
+ space:
2281
+ type: string
2282
+ sections:
2283
+ type: array
2284
+ items:
2285
+ type: string
2286
+ required:
2287
+ - type
2288
+ - page
2289
+ - revision
2290
+ - space
2291
+ - sections
2292
+ - type: object
2293
+ properties:
2294
+ type:
2295
+ type: string
2296
+ enum:
2297
+ - entity
2298
+ id:
2299
+ type: string
2300
+ description: ID of the entity
2301
+ integration:
2302
+ description: The name of the integration that manages this entity. If undefined, this entity is not managed by an integration.
2303
+ type: string
2304
+ required:
2305
+ - id
2306
+ - type
2307
+ - type: object
2308
+ properties:
2309
+ type:
2310
+ type: string
2311
+ enum:
2312
+ - capture
2313
+ id:
2314
+ type: string
2315
+ description: ID of the capture
2316
+ source:
2317
+ type: string
2318
+ description: Source of the capture
2319
+ required:
2320
+ - type
2321
+ - id
2322
+ - source
2242
2323
  SearchAIRecommendedQuestions:
2243
2324
  type: object
2244
2325
  description: Questions recommended by the AI for the given content.
@@ -2505,7 +2586,7 @@ components:
2505
2586
  type: string
2506
2587
  enum:
2507
2588
  - entities:write
2508
- - recording:write
2589
+ - capture:write
2509
2590
  - space:views:read
2510
2591
  - space:content:read
2511
2592
  - space:content:write
@@ -2874,7 +2955,6 @@ components:
2874
2955
  - secrets
2875
2956
  IntegrationInstallationTarget:
2876
2957
  oneOf:
2877
- - $ref: "#/components/schemas/UserTarget"
2878
2958
  - $ref: "#/components/schemas/OrganizationTarget"
2879
2959
  IntegrationInstallationConfiguration:
2880
2960
  type: object
@@ -4573,6 +4653,7 @@ components:
4573
4653
  - $ref: "#/components/schemas/ContentKitRadio"
4574
4654
  - $ref: "#/components/schemas/ContentKitCheckbox"
4575
4655
  - $ref: "#/components/schemas/ContentKitButton"
4656
+ - $ref: "#/components/schemas/ContentKitCodeBlock"
4576
4657
  required:
4577
4658
  - type
4578
4659
  - label
@@ -4803,6 +4884,8 @@ components:
4803
4884
  - $ref: "#/components/schemas/OrganizationCustomFieldsChannel"
4804
4885
  - $ref: "#/components/schemas/OrganizationEnvironmentsChannel"
4805
4886
  - $ref: "#/components/schemas/UserAPITokensChannel"
4887
+ - $ref: "#/components/schemas/UserPreferencesChannel"
4888
+ - $ref: "#/components/schemas/UserProfileChannel"
4806
4889
  - $ref: "#/components/schemas/ChangeRequestReviewsChannel"
4807
4890
  - $ref: "#/components/schemas/OrganizationMembersChannel"
4808
4891
  - $ref: "#/components/schemas/OrganizationMemberChannel"
@@ -4814,7 +4897,7 @@ components:
4814
4897
  - $ref: "#/components/schemas/OrganizationSpacesChannel"
4815
4898
  - $ref: "#/components/schemas/OrganizationEntitiesChannel"
4816
4899
  - $ref: "#/components/schemas/OrganizationSchemasChannel"
4817
- - $ref: "#/components/schemas/OrganizationRecordingsChannel"
4900
+ - $ref: "#/components/schemas/OrganizationCapturesChannel"
4818
4901
  - type: object
4819
4902
  properties:
4820
4903
  channel:
@@ -4989,6 +5072,30 @@ components:
4989
5072
  required:
4990
5073
  - channel
4991
5074
  - user
5075
+ UserPreferencesChannel:
5076
+ type: object
5077
+ properties:
5078
+ channel:
5079
+ type: string
5080
+ enum:
5081
+ - user-preferences
5082
+ user:
5083
+ type: string
5084
+ required:
5085
+ - channel
5086
+ - user
5087
+ UserProfileChannel:
5088
+ type: object
5089
+ properties:
5090
+ channel:
5091
+ type: string
5092
+ enum:
5093
+ - user-profile
5094
+ user:
5095
+ type: string
5096
+ required:
5097
+ - channel
5098
+ - user
4992
5099
  ChangeRequestReviewsChannel:
4993
5100
  type: object
4994
5101
  properties:
@@ -5169,13 +5276,13 @@ components:
5169
5276
  required:
5170
5277
  - channel
5171
5278
  - organization
5172
- OrganizationRecordingsChannel:
5279
+ OrganizationCapturesChannel:
5173
5280
  type: object
5174
5281
  properties:
5175
5282
  channel:
5176
5283
  type: string
5177
5284
  enum:
5178
- - organization-recordings
5285
+ - organization-captures
5179
5286
  organization:
5180
5287
  type: string
5181
5288
  required:
@@ -5566,35 +5673,48 @@ paths:
5566
5673
  $ref: "#/components/schemas/User"
5567
5674
  default:
5568
5675
  $ref: "#/components/responses/UnexpectedError"
5569
- /user/spaces:
5676
+ /user/preferences:
5570
5677
  get:
5571
- operationId: listSpacesForAuthenticatedUser
5572
- summary: List spaces for the authenticated user
5573
- description: |
5574
- Lists spaces that the authenticated user explicitly own.
5678
+ operationId: getPreferencesForAuthenticatedUser
5679
+ summary: Get the preferences for the currently authenticated user
5575
5680
  tags:
5576
5681
  - users
5577
5682
  security:
5578
5683
  - user: []
5579
- parameters:
5580
- - $ref: "#/components/parameters/listPage"
5581
- - $ref: "#/components/parameters/listLimit"
5684
+ description: |
5685
+ Returns the preferences for the user associated with the authentication provided in the request's authorization header.
5582
5686
  responses:
5583
5687
  "200":
5584
5688
  description: OK
5585
5689
  content:
5586
5690
  application/json:
5587
5691
  schema:
5588
- allOf:
5589
- - $ref: "#/components/schemas/List"
5590
- - type: object
5591
- required:
5592
- - items
5593
- properties:
5594
- items:
5595
- type: array
5596
- items:
5597
- $ref: "#/components/schemas/Space"
5692
+ $ref: "#/components/schemas/UserPreferences"
5693
+ default:
5694
+ $ref: "#/components/responses/UnexpectedError"
5695
+ patch:
5696
+ operationId: updatePreferencesForAuthenticatedUser
5697
+ summary: Update the preferences for the currently authenticated user
5698
+ tags:
5699
+ - users
5700
+ requestBody:
5701
+ required: true
5702
+ content:
5703
+ application/json:
5704
+ schema:
5705
+ type: object
5706
+ properties:
5707
+ theme:
5708
+ $ref: "#/components/schemas/UserPreferencesTheme"
5709
+ required:
5710
+ - theme
5711
+ responses:
5712
+ "200":
5713
+ description: The user preferences have been updated
5714
+ content:
5715
+ application/json:
5716
+ schema:
5717
+ $ref: "#/components/schemas/UserPreferences"
5598
5718
  default:
5599
5719
  $ref: "#/components/responses/UnexpectedError"
5600
5720
  "/users/{userId}":
@@ -9638,18 +9758,19 @@ paths:
9638
9758
  $ref: "#/components/schemas/Entity"
9639
9759
  default:
9640
9760
  $ref: "#/components/responses/UnexpectedError"
9641
- "/orgs/{organizationId}/recordings":
9761
+ "/orgs/{organizationId}/captures":
9642
9762
  get:
9643
- operationId: listRecordings
9644
- summary: List recordings
9763
+ operationId: listCaptures
9764
+ summary: List captures
9645
9765
  description: |
9646
- List recordings in an organization.
9766
+ List captures in an organization.
9647
9767
  tags:
9648
9768
  - organizations
9649
9769
  security:
9650
9770
  - user: []
9651
9771
  parameters:
9652
9772
  - $ref: "#/components/parameters/organizationId"
9773
+ - $ref: "#/components/parameters/pageFormat"
9653
9774
  - $ref: "#/components/parameters/listPage"
9654
9775
  - $ref: "#/components/parameters/listLimit"
9655
9776
  responses:
@@ -9667,12 +9788,12 @@ paths:
9667
9788
  items:
9668
9789
  type: array
9669
9790
  items:
9670
- $ref: "#/components/schemas/Recording"
9791
+ $ref: "#/components/schemas/Capture"
9671
9792
  default:
9672
9793
  $ref: "#/components/responses/UnexpectedError"
9673
9794
  post:
9674
- operationId: startRecording
9675
- summary: Start a recording
9795
+ operationId: startCapture
9796
+ summary: Start a capture
9676
9797
  tags:
9677
9798
  - organizations
9678
9799
  security:
@@ -9686,63 +9807,64 @@ paths:
9686
9807
  type: object
9687
9808
  properties:
9688
9809
  title:
9689
- $ref: "#/components/schemas/RecordingTitle"
9810
+ $ref: "#/components/schemas/CaptureTitle"
9690
9811
  context:
9691
- $ref: "#/components/schemas/RecordingContext"
9812
+ $ref: "#/components/schemas/CaptureContext"
9692
9813
  externalId:
9693
9814
  type: string
9694
- description: ID in the original source of the recording.
9815
+ description: ID in the original source of the capture.
9695
9816
  externalURL:
9696
9817
  type: string
9697
9818
  format: uri
9698
- description: URL of the original source of the recording.
9819
+ description: URL of the original source of the capture.
9699
9820
  required:
9700
9821
  - context
9701
9822
  responses:
9702
9823
  "201":
9703
- description: Recording started
9824
+ description: Capture started
9704
9825
  headers:
9705
9826
  Location:
9706
- description: API URL for the newly created recording
9827
+ description: API URL for the newly created capture
9707
9828
  schema:
9708
9829
  type: string
9709
9830
  content:
9710
9831
  application/json:
9711
9832
  schema:
9712
- $ref: "#/components/schemas/Recording"
9833
+ $ref: "#/components/schemas/Capture"
9713
9834
  default:
9714
9835
  $ref: "#/components/responses/UnexpectedError"
9715
- "/orgs/{organizationId}/recordings/{recordingId}":
9836
+ "/orgs/{organizationId}/captures/{captureId}":
9716
9837
  get:
9717
- operationId: getRecording
9718
- summary: Get a recording by its ID
9838
+ operationId: getCapture
9839
+ summary: Get a capture by its ID
9719
9840
  tags:
9720
9841
  - organizations
9721
9842
  security:
9722
9843
  - user: []
9723
9844
  parameters:
9724
9845
  - $ref: "#/components/parameters/organizationId"
9725
- - $ref: "#/components/parameters/recordingId"
9846
+ - $ref: "#/components/parameters/captureId"
9847
+ - $ref: "#/components/parameters/pageFormat"
9726
9848
  responses:
9727
9849
  "200":
9728
9850
  description: OK
9729
9851
  content:
9730
9852
  application/json:
9731
9853
  schema:
9732
- $ref: "#/components/schemas/Recording"
9854
+ $ref: "#/components/schemas/Capture"
9733
9855
  default:
9734
9856
  $ref: "#/components/responses/UnexpectedError"
9735
- "/orgs/{organizationId}/recordings/{recordingId}/events":
9857
+ "/orgs/{organizationId}/captures/{captureId}/events":
9736
9858
  post:
9737
- operationId: addEventsToRecording
9738
- summary: Add events to a running recording
9859
+ operationId: addEventsToCapture
9860
+ summary: Add events to a running capture
9739
9861
  tags:
9740
9862
  - organizations
9741
9863
  security:
9742
9864
  - user: []
9743
9865
  parameters:
9744
9866
  - $ref: "#/components/parameters/organizationId"
9745
- - $ref: "#/components/parameters/recordingId"
9867
+ - $ref: "#/components/parameters/captureId"
9746
9868
  requestBody:
9747
9869
  content:
9748
9870
  application/json:
@@ -9752,7 +9874,7 @@ paths:
9752
9874
  events:
9753
9875
  type: array
9754
9876
  items:
9755
- $ref: "#/components/schemas/RecordingEvent"
9877
+ $ref: "#/components/schemas/CaptureEvent"
9756
9878
  required:
9757
9879
  - events
9758
9880
  responses:
@@ -9760,45 +9882,67 @@ paths:
9760
9882
  description: Events added
9761
9883
  default:
9762
9884
  $ref: "#/components/responses/UnexpectedError"
9763
- "/orgs/{organizationId}/recordings/{recordingId}/stop":
9885
+ "/orgs/{organizationId}/captures/{captureId}/stop":
9764
9886
  post:
9765
- operationId: stopRecording
9766
- summary: Stop a recording
9887
+ operationId: stopCapture
9888
+ summary: Stop a capture
9767
9889
  tags:
9768
9890
  - organizations
9769
9891
  security:
9770
9892
  - user: []
9771
9893
  parameters:
9772
9894
  - $ref: "#/components/parameters/organizationId"
9773
- - $ref: "#/components/parameters/recordingId"
9895
+ - $ref: "#/components/parameters/captureId"
9896
+ - $ref: "#/components/parameters/pageFormat"
9774
9897
  requestBody:
9775
9898
  content:
9776
9899
  application/json:
9777
9900
  schema:
9778
9901
  type: object
9779
- properties:
9780
- space:
9781
- description: The space in which the docs should be generated
9782
- type: string
9783
- required:
9784
- - space
9902
+ properties: {}
9785
9903
  responses:
9786
9904
  "200":
9787
- description: Recording stopped
9905
+ description: Capture stopped
9788
9906
  content:
9789
9907
  application/json:
9790
9908
  schema:
9791
9909
  type: object
9792
9910
  properties:
9793
- recording:
9794
- $ref: "#/components/schemas/RecordingOutput"
9911
+ capture:
9912
+ $ref: "#/components/schemas/Capture"
9795
9913
  followupQuestions:
9796
- description: Example questions that would be answered by the content of this recording.
9914
+ description: Example questions that would be answered by the content of this capture.
9797
9915
  type: array
9798
9916
  items:
9799
9917
  type: string
9800
9918
  required:
9801
- - recording
9919
+ - capture
9920
+ default:
9921
+ $ref: "#/components/responses/UnexpectedError"
9922
+ "/orgs/{organizationId}/ask":
9923
+ post:
9924
+ operationId: askInOrganization
9925
+ summary: Ask a question.
9926
+ security:
9927
+ - user: []
9928
+ parameters:
9929
+ - $ref: "#/components/parameters/organizationId"
9930
+ requestBody:
9931
+ required: true
9932
+ content:
9933
+ application/json:
9934
+ schema:
9935
+ $ref: "#/components/schemas/SearchAIQuery"
9936
+ responses:
9937
+ "200":
9938
+ description: OK
9939
+ content:
9940
+ application/json:
9941
+ schema:
9942
+ type: object
9943
+ properties:
9944
+ answer:
9945
+ $ref: "#/components/schemas/SearchAIAnswer"
9802
9946
  default:
9803
9947
  $ref: "#/components/responses/UnexpectedError"
9804
9948
  /internal/hive/token: