@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.yaml
CHANGED
|
@@ -142,11 +142,11 @@ components:
|
|
|
142
142
|
description: The unique id of the organization
|
|
143
143
|
schema:
|
|
144
144
|
type: string
|
|
145
|
-
|
|
146
|
-
name:
|
|
145
|
+
captureId:
|
|
146
|
+
name: captureId
|
|
147
147
|
in: path
|
|
148
148
|
required: true
|
|
149
|
-
description: The unique id of a
|
|
149
|
+
description: The unique id of a capture
|
|
150
150
|
schema:
|
|
151
151
|
type: string
|
|
152
152
|
userId:
|
|
@@ -643,10 +643,48 @@ components:
|
|
|
643
643
|
photoURL:
|
|
644
644
|
type: string
|
|
645
645
|
description: URL of the user's profile picture
|
|
646
|
+
urls:
|
|
647
|
+
type: object
|
|
648
|
+
description: URLs associated with the object
|
|
649
|
+
properties:
|
|
650
|
+
location:
|
|
651
|
+
type: string
|
|
652
|
+
description: URL of the user in the API
|
|
653
|
+
format: uri
|
|
646
654
|
required:
|
|
647
655
|
- object
|
|
648
656
|
- id
|
|
649
657
|
- displayName
|
|
658
|
+
- urls
|
|
659
|
+
UserPreferences:
|
|
660
|
+
type: object
|
|
661
|
+
properties:
|
|
662
|
+
object:
|
|
663
|
+
type: string
|
|
664
|
+
description: Type of Object, always equals to "user-preferences"
|
|
665
|
+
enum:
|
|
666
|
+
- user-preferences
|
|
667
|
+
theme:
|
|
668
|
+
$ref: "#/components/schemas/UserPreferencesTheme"
|
|
669
|
+
urls:
|
|
670
|
+
type: object
|
|
671
|
+
description: URLs associated with the object
|
|
672
|
+
properties:
|
|
673
|
+
location:
|
|
674
|
+
type: string
|
|
675
|
+
description: URL of the user preferences in the API
|
|
676
|
+
format: uri
|
|
677
|
+
required:
|
|
678
|
+
- object
|
|
679
|
+
- theme
|
|
680
|
+
- urls
|
|
681
|
+
UserPreferencesTheme:
|
|
682
|
+
type: string
|
|
683
|
+
description: Preferred theme for the application
|
|
684
|
+
enum:
|
|
685
|
+
- light
|
|
686
|
+
- dark
|
|
687
|
+
- default
|
|
650
688
|
UserAPIToken:
|
|
651
689
|
type: object
|
|
652
690
|
description: The API token details, excluding the token itself.
|
|
@@ -1660,28 +1698,23 @@ components:
|
|
|
1660
1698
|
enum:
|
|
1661
1699
|
- admin
|
|
1662
1700
|
- participant
|
|
1663
|
-
|
|
1701
|
+
Capture:
|
|
1664
1702
|
type: object
|
|
1665
1703
|
properties:
|
|
1666
|
-
object:
|
|
1667
|
-
type: string
|
|
1668
|
-
description: Type of Object, always equals to "recording"
|
|
1669
|
-
enum:
|
|
1670
|
-
- recording
|
|
1671
1704
|
id:
|
|
1672
1705
|
type: string
|
|
1673
|
-
description: Unique identifier for the
|
|
1706
|
+
description: Unique identifier for the capture
|
|
1674
1707
|
title:
|
|
1675
|
-
$ref: "#/components/schemas/
|
|
1708
|
+
$ref: "#/components/schemas/CaptureTitle"
|
|
1676
1709
|
context:
|
|
1677
|
-
$ref: "#/components/schemas/
|
|
1710
|
+
$ref: "#/components/schemas/CaptureContext"
|
|
1678
1711
|
externalId:
|
|
1679
1712
|
type: string
|
|
1680
|
-
description: ID in the original source of the
|
|
1713
|
+
description: ID in the original source of the capture.
|
|
1681
1714
|
externalURL:
|
|
1682
1715
|
type: string
|
|
1683
1716
|
format: uri
|
|
1684
|
-
description: URL of the source from which the
|
|
1717
|
+
description: URL of the source from which the capture originated
|
|
1685
1718
|
createdAt:
|
|
1686
1719
|
type: string
|
|
1687
1720
|
format: date-time
|
|
@@ -1695,6 +1728,8 @@ components:
|
|
|
1695
1728
|
type: integer
|
|
1696
1729
|
speech:
|
|
1697
1730
|
type: integer
|
|
1731
|
+
thread.message:
|
|
1732
|
+
type: integer
|
|
1698
1733
|
contributors:
|
|
1699
1734
|
type: array
|
|
1700
1735
|
minItems: 1
|
|
@@ -1703,15 +1738,15 @@ components:
|
|
|
1703
1738
|
- $ref: "#/components/schemas/Integration"
|
|
1704
1739
|
- $ref: "#/components/schemas/User"
|
|
1705
1740
|
output:
|
|
1706
|
-
description: Output document for the
|
|
1707
|
-
$ref: "#/components/schemas/
|
|
1741
|
+
description: Output document for the capture. Is not set when capture is not finished.
|
|
1742
|
+
$ref: "#/components/schemas/Document"
|
|
1708
1743
|
urls:
|
|
1709
1744
|
type: object
|
|
1710
1745
|
description: URLs associated with the object
|
|
1711
1746
|
properties:
|
|
1712
1747
|
location:
|
|
1713
1748
|
type: string
|
|
1714
|
-
description: URL of the
|
|
1749
|
+
description: URL of the capture in the API
|
|
1715
1750
|
format: uri
|
|
1716
1751
|
required:
|
|
1717
1752
|
- location
|
|
@@ -1724,37 +1759,26 @@ components:
|
|
|
1724
1759
|
- createdAt
|
|
1725
1760
|
- contributors
|
|
1726
1761
|
- urls
|
|
1727
|
-
|
|
1762
|
+
CaptureTitle:
|
|
1728
1763
|
type: string
|
|
1729
|
-
description: Optional title describing the
|
|
1764
|
+
description: Optional title describing the capture
|
|
1730
1765
|
maxLength: 100
|
|
1731
|
-
|
|
1732
|
-
type: object
|
|
1733
|
-
properties:
|
|
1734
|
-
url:
|
|
1735
|
-
type: string
|
|
1736
|
-
format: uri
|
|
1737
|
-
description: URL of the generated page
|
|
1738
|
-
space:
|
|
1739
|
-
$ref: "#/components/schemas/Space"
|
|
1740
|
-
page:
|
|
1741
|
-
$ref: "#/components/schemas/RevisionPageDocument"
|
|
1742
|
-
required:
|
|
1743
|
-
- url
|
|
1744
|
-
- space
|
|
1745
|
-
- page
|
|
1746
|
-
RecordingEvent:
|
|
1766
|
+
CaptureEvent:
|
|
1747
1767
|
oneOf:
|
|
1748
|
-
- $ref: "#/components/schemas/
|
|
1749
|
-
- $ref: "#/components/schemas/
|
|
1750
|
-
|
|
1768
|
+
- $ref: "#/components/schemas/CaptureTerminalCommandEvent"
|
|
1769
|
+
- $ref: "#/components/schemas/CaptureSpeechEvent"
|
|
1770
|
+
- $ref: "#/components/schemas/CaptureThreadMessageEvent"
|
|
1771
|
+
- $ref: "#/components/schemas/CaptureFileAddedEvent"
|
|
1772
|
+
- $ref: "#/components/schemas/CaptureFileChangedEvent"
|
|
1773
|
+
- $ref: "#/components/schemas/CaptureFileRemovedEvent"
|
|
1774
|
+
CaptureContext:
|
|
1751
1775
|
oneOf:
|
|
1752
1776
|
- type: string
|
|
1753
1777
|
enum:
|
|
1754
1778
|
- meeting
|
|
1755
|
-
-
|
|
1779
|
+
- thread
|
|
1756
1780
|
- walkthrough
|
|
1757
|
-
|
|
1781
|
+
BaseCaptureEvent:
|
|
1758
1782
|
type: object
|
|
1759
1783
|
properties:
|
|
1760
1784
|
type:
|
|
@@ -1770,7 +1794,7 @@ components:
|
|
|
1770
1794
|
maxLength: 50
|
|
1771
1795
|
actor:
|
|
1772
1796
|
type: object
|
|
1773
|
-
description: Optionally, provide the actor of the event, in the context of multiple people contributing to the
|
|
1797
|
+
description: Optionally, provide the actor of the event, in the context of multiple people contributing to the capture.
|
|
1774
1798
|
properties:
|
|
1775
1799
|
name:
|
|
1776
1800
|
type: string
|
|
@@ -1779,9 +1803,9 @@ components:
|
|
|
1779
1803
|
required:
|
|
1780
1804
|
- type
|
|
1781
1805
|
- timestamp
|
|
1782
|
-
|
|
1806
|
+
CaptureSpeechEvent:
|
|
1783
1807
|
allOf:
|
|
1784
|
-
- $ref: "#/components/schemas/
|
|
1808
|
+
- $ref: "#/components/schemas/BaseCaptureEvent"
|
|
1785
1809
|
- type: object
|
|
1786
1810
|
properties:
|
|
1787
1811
|
type:
|
|
@@ -1805,9 +1829,9 @@ components:
|
|
|
1805
1829
|
type: string
|
|
1806
1830
|
required:
|
|
1807
1831
|
- transcript
|
|
1808
|
-
|
|
1832
|
+
CaptureTerminalCommandEvent:
|
|
1809
1833
|
allOf:
|
|
1810
|
-
- $ref: "#/components/schemas/
|
|
1834
|
+
- $ref: "#/components/schemas/BaseCaptureEvent"
|
|
1811
1835
|
- type: object
|
|
1812
1836
|
properties:
|
|
1813
1837
|
type:
|
|
@@ -1822,6 +1846,73 @@ components:
|
|
|
1822
1846
|
- type
|
|
1823
1847
|
- command
|
|
1824
1848
|
- stdout
|
|
1849
|
+
CaptureThreadMessageEvent:
|
|
1850
|
+
allOf:
|
|
1851
|
+
- $ref: "#/components/schemas/BaseCaptureEvent"
|
|
1852
|
+
- type: object
|
|
1853
|
+
properties:
|
|
1854
|
+
type:
|
|
1855
|
+
type: string
|
|
1856
|
+
enum:
|
|
1857
|
+
- thread.message
|
|
1858
|
+
isFirst:
|
|
1859
|
+
type: boolean
|
|
1860
|
+
text:
|
|
1861
|
+
type: string
|
|
1862
|
+
required:
|
|
1863
|
+
- type
|
|
1864
|
+
- text
|
|
1865
|
+
CaptureFileAddedEvent:
|
|
1866
|
+
allOf:
|
|
1867
|
+
- $ref: "#/components/schemas/BaseCaptureEvent"
|
|
1868
|
+
- type: object
|
|
1869
|
+
properties:
|
|
1870
|
+
type:
|
|
1871
|
+
type: string
|
|
1872
|
+
enum:
|
|
1873
|
+
- file.added
|
|
1874
|
+
filename:
|
|
1875
|
+
type: string
|
|
1876
|
+
fileSnapshot:
|
|
1877
|
+
type: string
|
|
1878
|
+
required:
|
|
1879
|
+
- type
|
|
1880
|
+
- filename
|
|
1881
|
+
- fileSnapshot
|
|
1882
|
+
CaptureFileChangedEvent:
|
|
1883
|
+
allOf:
|
|
1884
|
+
- $ref: "#/components/schemas/BaseCaptureEvent"
|
|
1885
|
+
- type: object
|
|
1886
|
+
properties:
|
|
1887
|
+
type:
|
|
1888
|
+
type: string
|
|
1889
|
+
enum:
|
|
1890
|
+
- file.changed
|
|
1891
|
+
filename:
|
|
1892
|
+
type: string
|
|
1893
|
+
fileDiff:
|
|
1894
|
+
type: string
|
|
1895
|
+
required:
|
|
1896
|
+
- type
|
|
1897
|
+
- filename
|
|
1898
|
+
- fileDiff
|
|
1899
|
+
CaptureFileRemovedEvent:
|
|
1900
|
+
allOf:
|
|
1901
|
+
- $ref: "#/components/schemas/BaseCaptureEvent"
|
|
1902
|
+
- type: object
|
|
1903
|
+
properties:
|
|
1904
|
+
type:
|
|
1905
|
+
type: string
|
|
1906
|
+
enum:
|
|
1907
|
+
- file.removed
|
|
1908
|
+
filename:
|
|
1909
|
+
type: string
|
|
1910
|
+
fileSnapshot:
|
|
1911
|
+
type: string
|
|
1912
|
+
required:
|
|
1913
|
+
- type
|
|
1914
|
+
- filename
|
|
1915
|
+
- fileSnapshot
|
|
1825
1916
|
ChangeRequest:
|
|
1826
1917
|
type: object
|
|
1827
1918
|
properties:
|
|
@@ -2432,7 +2523,7 @@ components:
|
|
|
2432
2523
|
type: string
|
|
2433
2524
|
enum:
|
|
2434
2525
|
- entities:write
|
|
2435
|
-
-
|
|
2526
|
+
- capture:write
|
|
2436
2527
|
- space:views:read
|
|
2437
2528
|
- space:content:read
|
|
2438
2529
|
- space:content:write
|
|
@@ -2574,6 +2665,7 @@ components:
|
|
|
2574
2665
|
- collaboration
|
|
2575
2666
|
- marketing
|
|
2576
2667
|
- content
|
|
2668
|
+
- gitsync
|
|
2577
2669
|
- other
|
|
2578
2670
|
IntegrationConfigurations:
|
|
2579
2671
|
type: object
|
|
@@ -2776,6 +2868,9 @@ components:
|
|
|
2776
2868
|
$ref: "#/components/schemas/IntegrationSpaceInstallation"
|
|
2777
2869
|
secrets:
|
|
2778
2870
|
$ref: "#/components/schemas/IntegrationSecrets"
|
|
2871
|
+
signingSecret:
|
|
2872
|
+
type: string
|
|
2873
|
+
description: Secret that can be used to verify the authenticity of incoming HTTP requests to the integration.
|
|
2779
2874
|
apiEndpoint:
|
|
2780
2875
|
type: string
|
|
2781
2876
|
description: URL of the HTTP API
|
|
@@ -3137,6 +3232,7 @@ components:
|
|
|
3137
3232
|
oneOf:
|
|
3138
3233
|
- $ref: "#/components/schemas/InstallationSetupEvent"
|
|
3139
3234
|
- $ref: "#/components/schemas/SpaceInstallationSetupEvent"
|
|
3235
|
+
- $ref: "#/components/schemas/SpaceInstallationDeletedEvent"
|
|
3140
3236
|
- $ref: "#/components/schemas/SpaceViewEvent"
|
|
3141
3237
|
- $ref: "#/components/schemas/SpaceContentUpdatedEvent"
|
|
3142
3238
|
- $ref: "#/components/schemas/SpaceGitSyncCompletedEvent"
|
|
@@ -3234,6 +3330,26 @@ components:
|
|
|
3234
3330
|
required:
|
|
3235
3331
|
- type
|
|
3236
3332
|
- status
|
|
3333
|
+
SpaceInstallationDeletedEvent:
|
|
3334
|
+
allOf:
|
|
3335
|
+
- $ref: "#/components/schemas/SpaceEvent"
|
|
3336
|
+
- type: object
|
|
3337
|
+
description: Event received when integration has been uninstalled from a space.
|
|
3338
|
+
properties:
|
|
3339
|
+
type:
|
|
3340
|
+
type: string
|
|
3341
|
+
enum:
|
|
3342
|
+
- space_installation_deleted
|
|
3343
|
+
previous:
|
|
3344
|
+
type: object
|
|
3345
|
+
description: The state of the Space installation before it was deleted.
|
|
3346
|
+
properties:
|
|
3347
|
+
configuration:
|
|
3348
|
+
type: object
|
|
3349
|
+
description: The previous configuration of the Space installation.
|
|
3350
|
+
required:
|
|
3351
|
+
- type
|
|
3352
|
+
- previous
|
|
3237
3353
|
SpaceViewEvent:
|
|
3238
3354
|
allOf:
|
|
3239
3355
|
- $ref: "#/components/schemas/SpaceEvent"
|
|
@@ -4232,6 +4348,7 @@ components:
|
|
|
4232
4348
|
- link
|
|
4233
4349
|
- link-external
|
|
4234
4350
|
- eye
|
|
4351
|
+
- lock
|
|
4235
4352
|
ContentKitModal:
|
|
4236
4353
|
type: object
|
|
4237
4354
|
description: Overlay modal.
|
|
@@ -4474,6 +4591,7 @@ components:
|
|
|
4474
4591
|
- $ref: "#/components/schemas/ContentKitRadio"
|
|
4475
4592
|
- $ref: "#/components/schemas/ContentKitCheckbox"
|
|
4476
4593
|
- $ref: "#/components/schemas/ContentKitButton"
|
|
4594
|
+
- $ref: "#/components/schemas/ContentKitCodeBlock"
|
|
4477
4595
|
required:
|
|
4478
4596
|
- type
|
|
4479
4597
|
- label
|
|
@@ -4704,6 +4822,8 @@ components:
|
|
|
4704
4822
|
- $ref: "#/components/schemas/OrganizationCustomFieldsChannel"
|
|
4705
4823
|
- $ref: "#/components/schemas/OrganizationEnvironmentsChannel"
|
|
4706
4824
|
- $ref: "#/components/schemas/UserAPITokensChannel"
|
|
4825
|
+
- $ref: "#/components/schemas/UserPreferencesChannel"
|
|
4826
|
+
- $ref: "#/components/schemas/UserProfileChannel"
|
|
4707
4827
|
- $ref: "#/components/schemas/ChangeRequestReviewsChannel"
|
|
4708
4828
|
- $ref: "#/components/schemas/OrganizationMembersChannel"
|
|
4709
4829
|
- $ref: "#/components/schemas/OrganizationMemberChannel"
|
|
@@ -4715,7 +4835,7 @@ components:
|
|
|
4715
4835
|
- $ref: "#/components/schemas/OrganizationSpacesChannel"
|
|
4716
4836
|
- $ref: "#/components/schemas/OrganizationEntitiesChannel"
|
|
4717
4837
|
- $ref: "#/components/schemas/OrganizationSchemasChannel"
|
|
4718
|
-
- $ref: "#/components/schemas/
|
|
4838
|
+
- $ref: "#/components/schemas/OrganizationCapturesChannel"
|
|
4719
4839
|
- type: object
|
|
4720
4840
|
properties:
|
|
4721
4841
|
channel:
|
|
@@ -4890,6 +5010,30 @@ components:
|
|
|
4890
5010
|
required:
|
|
4891
5011
|
- channel
|
|
4892
5012
|
- user
|
|
5013
|
+
UserPreferencesChannel:
|
|
5014
|
+
type: object
|
|
5015
|
+
properties:
|
|
5016
|
+
channel:
|
|
5017
|
+
type: string
|
|
5018
|
+
enum:
|
|
5019
|
+
- user-preferences
|
|
5020
|
+
user:
|
|
5021
|
+
type: string
|
|
5022
|
+
required:
|
|
5023
|
+
- channel
|
|
5024
|
+
- user
|
|
5025
|
+
UserProfileChannel:
|
|
5026
|
+
type: object
|
|
5027
|
+
properties:
|
|
5028
|
+
channel:
|
|
5029
|
+
type: string
|
|
5030
|
+
enum:
|
|
5031
|
+
- user-profile
|
|
5032
|
+
user:
|
|
5033
|
+
type: string
|
|
5034
|
+
required:
|
|
5035
|
+
- channel
|
|
5036
|
+
- user
|
|
4893
5037
|
ChangeRequestReviewsChannel:
|
|
4894
5038
|
type: object
|
|
4895
5039
|
properties:
|
|
@@ -5070,13 +5214,13 @@ components:
|
|
|
5070
5214
|
required:
|
|
5071
5215
|
- channel
|
|
5072
5216
|
- organization
|
|
5073
|
-
|
|
5217
|
+
OrganizationCapturesChannel:
|
|
5074
5218
|
type: object
|
|
5075
5219
|
properties:
|
|
5076
5220
|
channel:
|
|
5077
5221
|
type: string
|
|
5078
5222
|
enum:
|
|
5079
|
-
- organization-
|
|
5223
|
+
- organization-captures
|
|
5080
5224
|
organization:
|
|
5081
5225
|
type: string
|
|
5082
5226
|
required:
|
|
@@ -5096,6 +5240,10 @@ components:
|
|
|
5096
5240
|
$ref: "#/components/schemas/CustomFieldDescription"
|
|
5097
5241
|
type:
|
|
5098
5242
|
$ref: "#/components/schemas/CustomFieldType"
|
|
5243
|
+
placeholder:
|
|
5244
|
+
$ref: "#/components/schemas/CustomFieldPlaceholder"
|
|
5245
|
+
options:
|
|
5246
|
+
$ref: "#/components/schemas/CustomFieldOptions"
|
|
5099
5247
|
createdAt:
|
|
5100
5248
|
$ref: "#/components/schemas/Date"
|
|
5101
5249
|
updatedAt:
|
|
@@ -5115,13 +5263,14 @@ components:
|
|
|
5115
5263
|
- name
|
|
5116
5264
|
- title
|
|
5117
5265
|
- description
|
|
5266
|
+
- placeholder
|
|
5118
5267
|
- type
|
|
5119
5268
|
- createdAt
|
|
5120
5269
|
- updatedAt
|
|
5121
5270
|
- urls
|
|
5122
5271
|
CustomFieldName:
|
|
5123
5272
|
type: string
|
|
5124
|
-
pattern: ^[a-
|
|
5273
|
+
pattern: ^[a-z_\-0-9]+$
|
|
5125
5274
|
minLength: 1
|
|
5126
5275
|
maxLength: 50
|
|
5127
5276
|
CustomFieldTitle:
|
|
@@ -5137,6 +5286,8 @@ components:
|
|
|
5137
5286
|
- number
|
|
5138
5287
|
- boolean
|
|
5139
5288
|
- tags
|
|
5289
|
+
- select:multi
|
|
5290
|
+
- select:single
|
|
5140
5291
|
CustomFieldValue:
|
|
5141
5292
|
oneOf:
|
|
5142
5293
|
- type: string
|
|
@@ -5174,6 +5325,17 @@ components:
|
|
|
5174
5325
|
- value
|
|
5175
5326
|
required:
|
|
5176
5327
|
- values
|
|
5328
|
+
CustomFieldOptions:
|
|
5329
|
+
type: array
|
|
5330
|
+
minItems: 1
|
|
5331
|
+
maxItems: 50
|
|
5332
|
+
items:
|
|
5333
|
+
type: string
|
|
5334
|
+
minLength: 1
|
|
5335
|
+
maxLength: 40
|
|
5336
|
+
CustomFieldPlaceholder:
|
|
5337
|
+
type: string
|
|
5338
|
+
maxLength: 100
|
|
5177
5339
|
Environment:
|
|
5178
5340
|
type: object
|
|
5179
5341
|
description: An environment
|
|
@@ -5449,6 +5611,50 @@ paths:
|
|
|
5449
5611
|
$ref: "#/components/schemas/User"
|
|
5450
5612
|
default:
|
|
5451
5613
|
$ref: "#/components/responses/UnexpectedError"
|
|
5614
|
+
/user/preferences:
|
|
5615
|
+
get:
|
|
5616
|
+
operationId: getPreferencesForAuthenticatedUser
|
|
5617
|
+
summary: Get the preferences for the currently authenticated user
|
|
5618
|
+
tags:
|
|
5619
|
+
- users
|
|
5620
|
+
security:
|
|
5621
|
+
- user: []
|
|
5622
|
+
description: |
|
|
5623
|
+
Returns the preferences for the user associated with the authentication provided in the request's authorization header.
|
|
5624
|
+
responses:
|
|
5625
|
+
"200":
|
|
5626
|
+
description: OK
|
|
5627
|
+
content:
|
|
5628
|
+
application/json:
|
|
5629
|
+
schema:
|
|
5630
|
+
$ref: "#/components/schemas/UserPreferences"
|
|
5631
|
+
default:
|
|
5632
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
5633
|
+
patch:
|
|
5634
|
+
operationId: updatePreferencesForAuthenticatedUser
|
|
5635
|
+
summary: Update the preferences for the currently authenticated user
|
|
5636
|
+
tags:
|
|
5637
|
+
- users
|
|
5638
|
+
requestBody:
|
|
5639
|
+
required: true
|
|
5640
|
+
content:
|
|
5641
|
+
application/json:
|
|
5642
|
+
schema:
|
|
5643
|
+
type: object
|
|
5644
|
+
properties:
|
|
5645
|
+
theme:
|
|
5646
|
+
$ref: "#/components/schemas/UserPreferencesTheme"
|
|
5647
|
+
required:
|
|
5648
|
+
- theme
|
|
5649
|
+
responses:
|
|
5650
|
+
"200":
|
|
5651
|
+
description: The user preferences have been updated
|
|
5652
|
+
content:
|
|
5653
|
+
application/json:
|
|
5654
|
+
schema:
|
|
5655
|
+
$ref: "#/components/schemas/UserPreferences"
|
|
5656
|
+
default:
|
|
5657
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
5452
5658
|
/user/spaces:
|
|
5453
5659
|
get:
|
|
5454
5660
|
operationId: listSpacesForAuthenticatedUser
|
|
@@ -7769,6 +7975,40 @@ paths:
|
|
|
7769
7975
|
application/json:
|
|
7770
7976
|
schema:
|
|
7771
7977
|
$ref: "#/components/schemas/RequestRenderIntegrationUI"
|
|
7978
|
+
"/integrations/{integrationName}/tasks":
|
|
7979
|
+
post:
|
|
7980
|
+
operationId: queueIntegrationTask
|
|
7981
|
+
summary: Queue a task for an integration to be executed later
|
|
7982
|
+
tags:
|
|
7983
|
+
- integrations
|
|
7984
|
+
security:
|
|
7985
|
+
- integration: []
|
|
7986
|
+
parameters:
|
|
7987
|
+
- $ref: "#/components/parameters/integrationName"
|
|
7988
|
+
requestBody:
|
|
7989
|
+
required: true
|
|
7990
|
+
content:
|
|
7991
|
+
application/json:
|
|
7992
|
+
schema:
|
|
7993
|
+
type: object
|
|
7994
|
+
properties:
|
|
7995
|
+
task:
|
|
7996
|
+
type: object
|
|
7997
|
+
description: Payload for the integration task
|
|
7998
|
+
schedule:
|
|
7999
|
+
type: number
|
|
8000
|
+
description: Number of seconds to wait before executing the task, defaults to 0
|
|
8001
|
+
minimum: 0
|
|
8002
|
+
maximum: 86400
|
|
8003
|
+
required:
|
|
8004
|
+
- task
|
|
8005
|
+
responses:
|
|
8006
|
+
"204":
|
|
8007
|
+
description: Integration task created successfully
|
|
8008
|
+
"404":
|
|
8009
|
+
$ref: "#/components/responses/NotFoundError"
|
|
8010
|
+
default:
|
|
8011
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
7772
8012
|
"/integrations/{integrationName}/installations/{installationId}":
|
|
7773
8013
|
get:
|
|
7774
8014
|
operationId: getIntegrationInstallationById
|
|
@@ -9050,6 +9290,10 @@ paths:
|
|
|
9050
9290
|
$ref: "#/components/schemas/CustomFieldTitle"
|
|
9051
9291
|
description:
|
|
9052
9292
|
$ref: "#/components/schemas/CustomFieldDescription"
|
|
9293
|
+
placeholder:
|
|
9294
|
+
$ref: "#/components/schemas/CustomFieldPlaceholder"
|
|
9295
|
+
options:
|
|
9296
|
+
$ref: "#/components/schemas/CustomFieldOptions"
|
|
9053
9297
|
required:
|
|
9054
9298
|
- name
|
|
9055
9299
|
- type
|
|
@@ -9121,6 +9365,10 @@ paths:
|
|
|
9121
9365
|
$ref: "#/components/schemas/CustomFieldTitle"
|
|
9122
9366
|
description:
|
|
9123
9367
|
$ref: "#/components/schemas/CustomFieldDescription"
|
|
9368
|
+
placeholder:
|
|
9369
|
+
$ref: "#/components/schemas/CustomFieldPlaceholder"
|
|
9370
|
+
options:
|
|
9371
|
+
$ref: "#/components/schemas/CustomFieldOptions"
|
|
9124
9372
|
responses:
|
|
9125
9373
|
"200":
|
|
9126
9374
|
description: OK
|
|
@@ -9439,8 +9687,6 @@ paths:
|
|
|
9439
9687
|
application/json:
|
|
9440
9688
|
schema:
|
|
9441
9689
|
type: object
|
|
9442
|
-
required:
|
|
9443
|
-
- entities
|
|
9444
9690
|
properties:
|
|
9445
9691
|
delete:
|
|
9446
9692
|
oneOf:
|
|
@@ -9481,18 +9727,19 @@ paths:
|
|
|
9481
9727
|
$ref: "#/components/schemas/Entity"
|
|
9482
9728
|
default:
|
|
9483
9729
|
$ref: "#/components/responses/UnexpectedError"
|
|
9484
|
-
"/orgs/{organizationId}/
|
|
9730
|
+
"/orgs/{organizationId}/captures":
|
|
9485
9731
|
get:
|
|
9486
|
-
operationId:
|
|
9487
|
-
summary: List
|
|
9732
|
+
operationId: listCaptures
|
|
9733
|
+
summary: List captures
|
|
9488
9734
|
description: |
|
|
9489
|
-
List
|
|
9735
|
+
List captures in an organization.
|
|
9490
9736
|
tags:
|
|
9491
9737
|
- organizations
|
|
9492
9738
|
security:
|
|
9493
9739
|
- user: []
|
|
9494
9740
|
parameters:
|
|
9495
9741
|
- $ref: "#/components/parameters/organizationId"
|
|
9742
|
+
- $ref: "#/components/parameters/pageFormat"
|
|
9496
9743
|
- $ref: "#/components/parameters/listPage"
|
|
9497
9744
|
- $ref: "#/components/parameters/listLimit"
|
|
9498
9745
|
responses:
|
|
@@ -9510,12 +9757,12 @@ paths:
|
|
|
9510
9757
|
items:
|
|
9511
9758
|
type: array
|
|
9512
9759
|
items:
|
|
9513
|
-
$ref: "#/components/schemas/
|
|
9760
|
+
$ref: "#/components/schemas/Capture"
|
|
9514
9761
|
default:
|
|
9515
9762
|
$ref: "#/components/responses/UnexpectedError"
|
|
9516
9763
|
post:
|
|
9517
|
-
operationId:
|
|
9518
|
-
summary: Start a
|
|
9764
|
+
operationId: startCapture
|
|
9765
|
+
summary: Start a capture
|
|
9519
9766
|
tags:
|
|
9520
9767
|
- organizations
|
|
9521
9768
|
security:
|
|
@@ -9529,63 +9776,64 @@ paths:
|
|
|
9529
9776
|
type: object
|
|
9530
9777
|
properties:
|
|
9531
9778
|
title:
|
|
9532
|
-
$ref: "#/components/schemas/
|
|
9779
|
+
$ref: "#/components/schemas/CaptureTitle"
|
|
9533
9780
|
context:
|
|
9534
|
-
$ref: "#/components/schemas/
|
|
9781
|
+
$ref: "#/components/schemas/CaptureContext"
|
|
9535
9782
|
externalId:
|
|
9536
9783
|
type: string
|
|
9537
|
-
description: ID in the original source of the
|
|
9784
|
+
description: ID in the original source of the capture.
|
|
9538
9785
|
externalURL:
|
|
9539
9786
|
type: string
|
|
9540
9787
|
format: uri
|
|
9541
|
-
description: URL of the original source of the
|
|
9788
|
+
description: URL of the original source of the capture.
|
|
9542
9789
|
required:
|
|
9543
9790
|
- context
|
|
9544
9791
|
responses:
|
|
9545
9792
|
"201":
|
|
9546
|
-
description:
|
|
9793
|
+
description: Capture started
|
|
9547
9794
|
headers:
|
|
9548
9795
|
Location:
|
|
9549
|
-
description: API URL for the newly created
|
|
9796
|
+
description: API URL for the newly created capture
|
|
9550
9797
|
schema:
|
|
9551
9798
|
type: string
|
|
9552
9799
|
content:
|
|
9553
9800
|
application/json:
|
|
9554
9801
|
schema:
|
|
9555
|
-
$ref: "#/components/schemas/
|
|
9802
|
+
$ref: "#/components/schemas/Capture"
|
|
9556
9803
|
default:
|
|
9557
9804
|
$ref: "#/components/responses/UnexpectedError"
|
|
9558
|
-
"/orgs/{organizationId}/
|
|
9805
|
+
"/orgs/{organizationId}/captures/{captureId}":
|
|
9559
9806
|
get:
|
|
9560
|
-
operationId:
|
|
9561
|
-
summary: Get a
|
|
9807
|
+
operationId: getCapture
|
|
9808
|
+
summary: Get a capture by its ID
|
|
9562
9809
|
tags:
|
|
9563
9810
|
- organizations
|
|
9564
9811
|
security:
|
|
9565
9812
|
- user: []
|
|
9566
9813
|
parameters:
|
|
9567
9814
|
- $ref: "#/components/parameters/organizationId"
|
|
9568
|
-
- $ref: "#/components/parameters/
|
|
9815
|
+
- $ref: "#/components/parameters/captureId"
|
|
9816
|
+
- $ref: "#/components/parameters/pageFormat"
|
|
9569
9817
|
responses:
|
|
9570
9818
|
"200":
|
|
9571
9819
|
description: OK
|
|
9572
9820
|
content:
|
|
9573
9821
|
application/json:
|
|
9574
9822
|
schema:
|
|
9575
|
-
$ref: "#/components/schemas/
|
|
9823
|
+
$ref: "#/components/schemas/Capture"
|
|
9576
9824
|
default:
|
|
9577
9825
|
$ref: "#/components/responses/UnexpectedError"
|
|
9578
|
-
"/orgs/{organizationId}/
|
|
9826
|
+
"/orgs/{organizationId}/captures/{captureId}/events":
|
|
9579
9827
|
post:
|
|
9580
|
-
operationId:
|
|
9581
|
-
summary: Add events to a running
|
|
9828
|
+
operationId: addEventsToCapture
|
|
9829
|
+
summary: Add events to a running capture
|
|
9582
9830
|
tags:
|
|
9583
9831
|
- organizations
|
|
9584
9832
|
security:
|
|
9585
9833
|
- user: []
|
|
9586
9834
|
parameters:
|
|
9587
9835
|
- $ref: "#/components/parameters/organizationId"
|
|
9588
|
-
- $ref: "#/components/parameters/
|
|
9836
|
+
- $ref: "#/components/parameters/captureId"
|
|
9589
9837
|
requestBody:
|
|
9590
9838
|
content:
|
|
9591
9839
|
application/json:
|
|
@@ -9595,7 +9843,7 @@ paths:
|
|
|
9595
9843
|
events:
|
|
9596
9844
|
type: array
|
|
9597
9845
|
items:
|
|
9598
|
-
$ref: "#/components/schemas/
|
|
9846
|
+
$ref: "#/components/schemas/CaptureEvent"
|
|
9599
9847
|
required:
|
|
9600
9848
|
- events
|
|
9601
9849
|
responses:
|
|
@@ -9603,45 +9851,41 @@ paths:
|
|
|
9603
9851
|
description: Events added
|
|
9604
9852
|
default:
|
|
9605
9853
|
$ref: "#/components/responses/UnexpectedError"
|
|
9606
|
-
"/orgs/{organizationId}/
|
|
9854
|
+
"/orgs/{organizationId}/captures/{captureId}/stop":
|
|
9607
9855
|
post:
|
|
9608
|
-
operationId:
|
|
9609
|
-
summary: Stop a
|
|
9856
|
+
operationId: stopCapture
|
|
9857
|
+
summary: Stop a capture
|
|
9610
9858
|
tags:
|
|
9611
9859
|
- organizations
|
|
9612
9860
|
security:
|
|
9613
9861
|
- user: []
|
|
9614
9862
|
parameters:
|
|
9615
9863
|
- $ref: "#/components/parameters/organizationId"
|
|
9616
|
-
- $ref: "#/components/parameters/
|
|
9864
|
+
- $ref: "#/components/parameters/captureId"
|
|
9865
|
+
- $ref: "#/components/parameters/pageFormat"
|
|
9617
9866
|
requestBody:
|
|
9618
9867
|
content:
|
|
9619
9868
|
application/json:
|
|
9620
9869
|
schema:
|
|
9621
9870
|
type: object
|
|
9622
|
-
properties:
|
|
9623
|
-
space:
|
|
9624
|
-
description: The space in which the docs should be generated
|
|
9625
|
-
type: string
|
|
9626
|
-
required:
|
|
9627
|
-
- space
|
|
9871
|
+
properties: {}
|
|
9628
9872
|
responses:
|
|
9629
9873
|
"200":
|
|
9630
|
-
description:
|
|
9874
|
+
description: Capture stopped
|
|
9631
9875
|
content:
|
|
9632
9876
|
application/json:
|
|
9633
9877
|
schema:
|
|
9634
9878
|
type: object
|
|
9635
9879
|
properties:
|
|
9636
|
-
|
|
9637
|
-
$ref: "#/components/schemas/
|
|
9880
|
+
capture:
|
|
9881
|
+
$ref: "#/components/schemas/Capture"
|
|
9638
9882
|
followupQuestions:
|
|
9639
|
-
description: Example questions that would be answered by the content of this
|
|
9883
|
+
description: Example questions that would be answered by the content of this capture.
|
|
9640
9884
|
type: array
|
|
9641
9885
|
items:
|
|
9642
9886
|
type: string
|
|
9643
9887
|
required:
|
|
9644
|
-
-
|
|
9888
|
+
- capture
|
|
9645
9889
|
default:
|
|
9646
9890
|
$ref: "#/components/responses/UnexpectedError"
|
|
9647
9891
|
/internal/hive/token:
|