@gitbook/api 0.38.0 → 0.40.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 +122 -20
- package/dist/index.cjs +24 -8
- package/dist/index.js +23 -8
- package/package.json +1 -1
- package/spec/openapi.json +398 -50
- package/spec/openapi.yaml +239 -32
package/spec/openapi.json
CHANGED
|
@@ -1705,6 +1705,78 @@
|
|
|
1705
1705
|
}
|
|
1706
1706
|
]
|
|
1707
1707
|
},
|
|
1708
|
+
"PublishedSiteContentLookup": {
|
|
1709
|
+
"oneOf": [
|
|
1710
|
+
{
|
|
1711
|
+
"type": "object",
|
|
1712
|
+
"title": "Redirect",
|
|
1713
|
+
"properties": {
|
|
1714
|
+
"target": {
|
|
1715
|
+
"type": "string",
|
|
1716
|
+
"description": "Type of target for the redirect",
|
|
1717
|
+
"enum": [
|
|
1718
|
+
"application",
|
|
1719
|
+
"content",
|
|
1720
|
+
"external"
|
|
1721
|
+
]
|
|
1722
|
+
},
|
|
1723
|
+
"redirect": {
|
|
1724
|
+
"$ref": "#/components/schemas/URL"
|
|
1725
|
+
}
|
|
1726
|
+
},
|
|
1727
|
+
"required": [
|
|
1728
|
+
"target",
|
|
1729
|
+
"redirect"
|
|
1730
|
+
]
|
|
1731
|
+
},
|
|
1732
|
+
{
|
|
1733
|
+
"type": "object",
|
|
1734
|
+
"title": "Content",
|
|
1735
|
+
"properties": {
|
|
1736
|
+
"site": {
|
|
1737
|
+
"type": "string",
|
|
1738
|
+
"description": "ID of the site matching."
|
|
1739
|
+
},
|
|
1740
|
+
"siteSpace": {
|
|
1741
|
+
"type": "string",
|
|
1742
|
+
"description": "ID of the site-space matching."
|
|
1743
|
+
},
|
|
1744
|
+
"space": {
|
|
1745
|
+
"type": "string",
|
|
1746
|
+
"description": "ID of the space matching."
|
|
1747
|
+
},
|
|
1748
|
+
"changeRequest": {
|
|
1749
|
+
"type": "string",
|
|
1750
|
+
"description": "Identifier of the change request being previewed in this URL."
|
|
1751
|
+
},
|
|
1752
|
+
"revision": {
|
|
1753
|
+
"type": "string",
|
|
1754
|
+
"description": "Identifier of the revision being previewed in this URL."
|
|
1755
|
+
},
|
|
1756
|
+
"pathname": {
|
|
1757
|
+
"type": "string",
|
|
1758
|
+
"description": "Path of the content relative to the space"
|
|
1759
|
+
},
|
|
1760
|
+
"basePath": {
|
|
1761
|
+
"type": "string",
|
|
1762
|
+
"description": "Prefix of the path in the URL dedicated to the space"
|
|
1763
|
+
},
|
|
1764
|
+
"apiToken": {
|
|
1765
|
+
"type": "string",
|
|
1766
|
+
"description": "Short-lived API token to fetch content related to the space in the context of the URL."
|
|
1767
|
+
}
|
|
1768
|
+
},
|
|
1769
|
+
"required": [
|
|
1770
|
+
"site",
|
|
1771
|
+
"siteSpace",
|
|
1772
|
+
"space",
|
|
1773
|
+
"pathname",
|
|
1774
|
+
"basePath",
|
|
1775
|
+
"apiToken"
|
|
1776
|
+
]
|
|
1777
|
+
}
|
|
1778
|
+
]
|
|
1779
|
+
},
|
|
1708
1780
|
"SpacePointer": {
|
|
1709
1781
|
"type": "object",
|
|
1710
1782
|
"properties": {
|
|
@@ -4706,15 +4778,11 @@
|
|
|
4706
4778
|
},
|
|
4707
4779
|
"syncedBlock": {
|
|
4708
4780
|
"type": "string"
|
|
4709
|
-
},
|
|
4710
|
-
"organization": {
|
|
4711
|
-
"type": "string"
|
|
4712
4781
|
}
|
|
4713
4782
|
},
|
|
4714
4783
|
"required": [
|
|
4715
4784
|
"kind",
|
|
4716
|
-
"syncedBlock"
|
|
4717
|
-
"organization"
|
|
4785
|
+
"syncedBlock"
|
|
4718
4786
|
]
|
|
4719
4787
|
},
|
|
4720
4788
|
"ContentLocation": {
|
|
@@ -4782,6 +4850,9 @@
|
|
|
4782
4850
|
"changeRequest": {
|
|
4783
4851
|
"$ref": "#/components/schemas/ChangeRequest"
|
|
4784
4852
|
},
|
|
4853
|
+
"revision": {
|
|
4854
|
+
"$ref": "#/components/schemas/Revision"
|
|
4855
|
+
},
|
|
4785
4856
|
"file": {
|
|
4786
4857
|
"$ref": "#/components/schemas/RevisionFile"
|
|
4787
4858
|
}
|
|
@@ -4814,7 +4885,15 @@
|
|
|
4814
4885
|
"changeRequest": {
|
|
4815
4886
|
"$ref": "#/components/schemas/ChangeRequest"
|
|
4816
4887
|
},
|
|
4888
|
+
"revision": {
|
|
4889
|
+
"$ref": "#/components/schemas/Revision"
|
|
4890
|
+
},
|
|
4817
4891
|
"anchor": {
|
|
4892
|
+
"description": "The anchor within the page.",
|
|
4893
|
+
"type": "string"
|
|
4894
|
+
},
|
|
4895
|
+
"node": {
|
|
4896
|
+
"description": "The node id within the page.",
|
|
4818
4897
|
"type": "string"
|
|
4819
4898
|
}
|
|
4820
4899
|
},
|
|
@@ -6569,6 +6648,9 @@
|
|
|
6569
6648
|
},
|
|
6570
6649
|
{
|
|
6571
6650
|
"$ref": "#/components/schemas/CollectionPointer"
|
|
6651
|
+
},
|
|
6652
|
+
{
|
|
6653
|
+
"$ref": "#/components/schemas/SitePointer"
|
|
6572
6654
|
}
|
|
6573
6655
|
]
|
|
6574
6656
|
},
|
|
@@ -7373,15 +7455,6 @@
|
|
|
7373
7455
|
"required": [
|
|
7374
7456
|
"location"
|
|
7375
7457
|
]
|
|
7376
|
-
},
|
|
7377
|
-
"document": {
|
|
7378
|
-
"$ref": "#/components/schemas/JSONDocument"
|
|
7379
|
-
},
|
|
7380
|
-
"files": {
|
|
7381
|
-
"type": "array",
|
|
7382
|
-
"items": {
|
|
7383
|
-
"$ref": "#/components/schemas/RevisionFile"
|
|
7384
|
-
}
|
|
7385
7458
|
}
|
|
7386
7459
|
},
|
|
7387
7460
|
"required": [
|
|
@@ -7389,8 +7462,7 @@
|
|
|
7389
7462
|
"organization",
|
|
7390
7463
|
"source",
|
|
7391
7464
|
"createdAt",
|
|
7392
|
-
"urls"
|
|
7393
|
-
"document"
|
|
7465
|
+
"urls"
|
|
7394
7466
|
]
|
|
7395
7467
|
},
|
|
7396
7468
|
"ContentAuditRelation": {
|
|
@@ -8729,6 +8801,7 @@
|
|
|
8729
8801
|
"space:script:cookies",
|
|
8730
8802
|
"space:git:sync",
|
|
8731
8803
|
"space:visitor:auth",
|
|
8804
|
+
"site:script:inject",
|
|
8732
8805
|
"site:visitor:auth"
|
|
8733
8806
|
]
|
|
8734
8807
|
},
|
|
@@ -8917,6 +8990,14 @@
|
|
|
8917
8990
|
"selected"
|
|
8918
8991
|
]
|
|
8919
8992
|
},
|
|
8993
|
+
"IntegrationInstallationSiteSelection": {
|
|
8994
|
+
"type": "string",
|
|
8995
|
+
"description": "Describe whether all sites have been selected or there's a selection involved",
|
|
8996
|
+
"enum": [
|
|
8997
|
+
"all",
|
|
8998
|
+
"selected"
|
|
8999
|
+
]
|
|
9000
|
+
},
|
|
8920
9001
|
"IntegrationCategory": {
|
|
8921
9002
|
"type": "string",
|
|
8922
9003
|
"enum": [
|
|
@@ -8937,6 +9018,9 @@
|
|
|
8937
9018
|
},
|
|
8938
9019
|
"space": {
|
|
8939
9020
|
"$ref": "#/components/schemas/IntegrationConfiguration"
|
|
9021
|
+
},
|
|
9022
|
+
"site": {
|
|
9023
|
+
"$ref": "#/components/schemas/IntegrationConfiguration"
|
|
8940
9024
|
}
|
|
8941
9025
|
}
|
|
8942
9026
|
},
|
|
@@ -9306,6 +9390,9 @@
|
|
|
9306
9390
|
"spaceInstallation": {
|
|
9307
9391
|
"$ref": "#/components/schemas/IntegrationSpaceInstallation"
|
|
9308
9392
|
},
|
|
9393
|
+
"siteInstallation": {
|
|
9394
|
+
"$ref": "#/components/schemas/IntegrationSiteInstallation"
|
|
9395
|
+
},
|
|
9309
9396
|
"secrets": {
|
|
9310
9397
|
"$ref": "#/components/schemas/IntegrationSecrets"
|
|
9311
9398
|
},
|
|
@@ -9328,6 +9415,10 @@
|
|
|
9328
9415
|
"spaceInstallation": {
|
|
9329
9416
|
"type": "string",
|
|
9330
9417
|
"description": "Secret that can be used to verify the authenticity of incoming HTTP requests to the space installation."
|
|
9418
|
+
},
|
|
9419
|
+
"siteInstallation": {
|
|
9420
|
+
"type": "string",
|
|
9421
|
+
"description": "Secret that can be used to verify the authenticity of incoming HTTP requests to the site installation."
|
|
9331
9422
|
}
|
|
9332
9423
|
},
|
|
9333
9424
|
"required": [
|
|
@@ -9939,7 +10030,82 @@
|
|
|
9939
10030
|
"$ref": "#/components/schemas/SpaceInstallationDeletedEvent"
|
|
9940
10031
|
},
|
|
9941
10032
|
{
|
|
9942
|
-
"
|
|
10033
|
+
"allOf": [
|
|
10034
|
+
{
|
|
10035
|
+
"$ref": "#/components/schemas/SiteEvent"
|
|
10036
|
+
},
|
|
10037
|
+
{
|
|
10038
|
+
"type": "object",
|
|
10039
|
+
"description": "Event received when integration has been installed or updated on a site.",
|
|
10040
|
+
"properties": {
|
|
10041
|
+
"type": {
|
|
10042
|
+
"type": "string",
|
|
10043
|
+
"enum": [
|
|
10044
|
+
"site_installation_setup"
|
|
10045
|
+
]
|
|
10046
|
+
},
|
|
10047
|
+
"status": {
|
|
10048
|
+
"$ref": "#/components/schemas/IntegrationInstallationStatus"
|
|
10049
|
+
},
|
|
10050
|
+
"previous": {
|
|
10051
|
+
"type": "object",
|
|
10052
|
+
"description": "The state of the site installation before it was updated.",
|
|
10053
|
+
"properties": {
|
|
10054
|
+
"status": {
|
|
10055
|
+
"$ref": "#/components/schemas/IntegrationInstallationStatus"
|
|
10056
|
+
},
|
|
10057
|
+
"configuration": {
|
|
10058
|
+
"type": "object",
|
|
10059
|
+
"description": "The previous configuration of the site installation."
|
|
10060
|
+
}
|
|
10061
|
+
},
|
|
10062
|
+
"required": [
|
|
10063
|
+
"status"
|
|
10064
|
+
]
|
|
10065
|
+
}
|
|
10066
|
+
},
|
|
10067
|
+
"required": [
|
|
10068
|
+
"type",
|
|
10069
|
+
"status"
|
|
10070
|
+
]
|
|
10071
|
+
}
|
|
10072
|
+
]
|
|
10073
|
+
},
|
|
10074
|
+
{
|
|
10075
|
+
"allOf": [
|
|
10076
|
+
{
|
|
10077
|
+
"$ref": "#/components/schemas/SiteEvent"
|
|
10078
|
+
},
|
|
10079
|
+
{
|
|
10080
|
+
"type": "object",
|
|
10081
|
+
"description": "Event received when integration has been uninstalled from a site.",
|
|
10082
|
+
"properties": {
|
|
10083
|
+
"type": {
|
|
10084
|
+
"type": "string",
|
|
10085
|
+
"enum": [
|
|
10086
|
+
"site_installation_deleted"
|
|
10087
|
+
]
|
|
10088
|
+
},
|
|
10089
|
+
"previous": {
|
|
10090
|
+
"type": "object",
|
|
10091
|
+
"description": "The state of the site installation before it was deleted.",
|
|
10092
|
+
"properties": {
|
|
10093
|
+
"configuration": {
|
|
10094
|
+
"type": "object",
|
|
10095
|
+
"description": "The previous configuration of the site installation."
|
|
10096
|
+
}
|
|
10097
|
+
}
|
|
10098
|
+
}
|
|
10099
|
+
},
|
|
10100
|
+
"required": [
|
|
10101
|
+
"type",
|
|
10102
|
+
"previous"
|
|
10103
|
+
]
|
|
10104
|
+
}
|
|
10105
|
+
]
|
|
10106
|
+
},
|
|
10107
|
+
{
|
|
10108
|
+
"$ref": "#/components/schemas/SiteViewEvent"
|
|
9943
10109
|
},
|
|
9944
10110
|
{
|
|
9945
10111
|
"$ref": "#/components/schemas/SpaceContentUpdatedEvent"
|
|
@@ -10028,6 +10194,26 @@
|
|
|
10028
10194
|
}
|
|
10029
10195
|
]
|
|
10030
10196
|
},
|
|
10197
|
+
"SiteEvent": {
|
|
10198
|
+
"allOf": [
|
|
10199
|
+
{
|
|
10200
|
+
"$ref": "#/components/schemas/InstallationEvent"
|
|
10201
|
+
},
|
|
10202
|
+
{
|
|
10203
|
+
"type": "object",
|
|
10204
|
+
"description": "Common properties for all events related to a specific site.",
|
|
10205
|
+
"properties": {
|
|
10206
|
+
"siteId": {
|
|
10207
|
+
"type": "string",
|
|
10208
|
+
"description": "ID of the site"
|
|
10209
|
+
}
|
|
10210
|
+
},
|
|
10211
|
+
"required": [
|
|
10212
|
+
"siteId"
|
|
10213
|
+
]
|
|
10214
|
+
}
|
|
10215
|
+
]
|
|
10216
|
+
},
|
|
10031
10217
|
"InstallationSetupEvent": {
|
|
10032
10218
|
"allOf": [
|
|
10033
10219
|
{
|
|
@@ -10146,6 +10332,9 @@
|
|
|
10146
10332
|
]
|
|
10147
10333
|
},
|
|
10148
10334
|
"SpaceViewEvent": {
|
|
10335
|
+
"$ref": "#/components/schemas/SiteViewEvent"
|
|
10336
|
+
},
|
|
10337
|
+
"SiteViewEvent": {
|
|
10149
10338
|
"allOf": [
|
|
10150
10339
|
{
|
|
10151
10340
|
"$ref": "#/components/schemas/SpaceEvent"
|
|
@@ -10387,6 +10576,10 @@
|
|
|
10387
10576
|
"type": "string",
|
|
10388
10577
|
"description": "The space ID, if requests are specific to a single space"
|
|
10389
10578
|
},
|
|
10579
|
+
"siteId": {
|
|
10580
|
+
"type": "string",
|
|
10581
|
+
"description": "The site ID, if requests are specific to a single site"
|
|
10582
|
+
},
|
|
10390
10583
|
"installationId": {
|
|
10391
10584
|
"type": "string",
|
|
10392
10585
|
"description": "The installation ID, if requests are specific to a single installation"
|
|
@@ -10423,7 +10616,14 @@
|
|
|
10423
10616
|
"FetchPublishedScriptEvent": {
|
|
10424
10617
|
"allOf": [
|
|
10425
10618
|
{
|
|
10426
|
-
"
|
|
10619
|
+
"oneOf": [
|
|
10620
|
+
{
|
|
10621
|
+
"$ref": "#/components/schemas/SpaceEvent"
|
|
10622
|
+
},
|
|
10623
|
+
{
|
|
10624
|
+
"$ref": "#/components/schemas/SiteEvent"
|
|
10625
|
+
}
|
|
10626
|
+
]
|
|
10427
10627
|
},
|
|
10428
10628
|
{
|
|
10429
10629
|
"type": "object",
|
|
@@ -10445,7 +10645,14 @@
|
|
|
10445
10645
|
"FetchVisitorAuthenticationEvent": {
|
|
10446
10646
|
"allOf": [
|
|
10447
10647
|
{
|
|
10448
|
-
"
|
|
10648
|
+
"oneOf": [
|
|
10649
|
+
{
|
|
10650
|
+
"$ref": "#/components/schemas/SpaceEvent"
|
|
10651
|
+
},
|
|
10652
|
+
{
|
|
10653
|
+
"$ref": "#/components/schemas/SiteEvent"
|
|
10654
|
+
}
|
|
10655
|
+
]
|
|
10449
10656
|
},
|
|
10450
10657
|
{
|
|
10451
10658
|
"type": "object",
|
|
@@ -10474,6 +10681,9 @@
|
|
|
10474
10681
|
{
|
|
10475
10682
|
"$ref": "#/components/schemas/SpaceEvent"
|
|
10476
10683
|
},
|
|
10684
|
+
{
|
|
10685
|
+
"$ref": "#/components/schemas/SiteEvent"
|
|
10686
|
+
},
|
|
10477
10687
|
{
|
|
10478
10688
|
"$ref": "#/components/schemas/InstallationEvent"
|
|
10479
10689
|
}
|
|
@@ -16171,35 +16381,6 @@
|
|
|
16171
16381
|
}
|
|
16172
16382
|
}
|
|
16173
16383
|
},
|
|
16174
|
-
"/spaces/{spaceId}/hive/token": {
|
|
16175
|
-
"post": {
|
|
16176
|
-
"operationId": "generateSpaceHiveReadAccessToken",
|
|
16177
|
-
"summary": "Returns a token to authenticate with Hive to read content from a given space.",
|
|
16178
|
-
"tags": [
|
|
16179
|
-
"hive"
|
|
16180
|
-
],
|
|
16181
|
-
"parameters": [
|
|
16182
|
-
{
|
|
16183
|
-
"$ref": "#/components/parameters/spaceId"
|
|
16184
|
-
}
|
|
16185
|
-
],
|
|
16186
|
-
"responses": {
|
|
16187
|
-
"200": {
|
|
16188
|
-
"description": "The JWT to access the space content in Hive.",
|
|
16189
|
-
"content": {
|
|
16190
|
-
"application/json": {
|
|
16191
|
-
"schema": {
|
|
16192
|
-
"$ref": "#/components/schemas/HiveAccessToken"
|
|
16193
|
-
}
|
|
16194
|
-
}
|
|
16195
|
-
}
|
|
16196
|
-
},
|
|
16197
|
-
"default": {
|
|
16198
|
-
"$ref": "#/components/responses/UnexpectedError"
|
|
16199
|
-
}
|
|
16200
|
-
}
|
|
16201
|
-
}
|
|
16202
|
-
},
|
|
16203
16384
|
"/spaces/{spaceId}/duplicate": {
|
|
16204
16385
|
"post": {
|
|
16205
16386
|
"operationId": "duplicateSpace",
|
|
@@ -17537,6 +17718,14 @@
|
|
|
17537
17718
|
"properties": {
|
|
17538
17719
|
"subject": {
|
|
17539
17720
|
"$ref": "#/components/schemas/ChangeRequestSubject"
|
|
17721
|
+
},
|
|
17722
|
+
"status": {
|
|
17723
|
+
"type": "string",
|
|
17724
|
+
"enum": [
|
|
17725
|
+
"draft",
|
|
17726
|
+
"open",
|
|
17727
|
+
"archived"
|
|
17728
|
+
]
|
|
17540
17729
|
}
|
|
17541
17730
|
}
|
|
17542
17731
|
}
|
|
@@ -26707,6 +26896,58 @@
|
|
|
26707
26896
|
}
|
|
26708
26897
|
}
|
|
26709
26898
|
},
|
|
26899
|
+
"/orgs/{organizationId}/synced-blocks/{syncedBlockId}/content": {
|
|
26900
|
+
"get": {
|
|
26901
|
+
"operationId": "getSyncedBlockContent",
|
|
26902
|
+
"summary": "Get a synced block content",
|
|
26903
|
+
"tags": [
|
|
26904
|
+
"organizations"
|
|
26905
|
+
],
|
|
26906
|
+
"security": [
|
|
26907
|
+
{
|
|
26908
|
+
"user": []
|
|
26909
|
+
}
|
|
26910
|
+
],
|
|
26911
|
+
"parameters": [
|
|
26912
|
+
{
|
|
26913
|
+
"$ref": "#/components/parameters/organizationId"
|
|
26914
|
+
},
|
|
26915
|
+
{
|
|
26916
|
+
"$ref": "#/components/parameters/syncedBlockId"
|
|
26917
|
+
}
|
|
26918
|
+
],
|
|
26919
|
+
"responses": {
|
|
26920
|
+
"200": {
|
|
26921
|
+
"description": "OK",
|
|
26922
|
+
"content": {
|
|
26923
|
+
"application/json": {
|
|
26924
|
+
"schema": {
|
|
26925
|
+
"type": "object",
|
|
26926
|
+
"properties": {
|
|
26927
|
+
"document": {
|
|
26928
|
+
"$ref": "#/components/schemas/JSONDocument"
|
|
26929
|
+
},
|
|
26930
|
+
"files": {
|
|
26931
|
+
"type": "array",
|
|
26932
|
+
"items": {
|
|
26933
|
+
"$ref": "#/components/schemas/RevisionFile"
|
|
26934
|
+
}
|
|
26935
|
+
}
|
|
26936
|
+
},
|
|
26937
|
+
"required": [
|
|
26938
|
+
"document",
|
|
26939
|
+
"files"
|
|
26940
|
+
]
|
|
26941
|
+
}
|
|
26942
|
+
}
|
|
26943
|
+
}
|
|
26944
|
+
},
|
|
26945
|
+
"default": {
|
|
26946
|
+
"$ref": "#/components/responses/UnexpectedError"
|
|
26947
|
+
}
|
|
26948
|
+
}
|
|
26949
|
+
}
|
|
26950
|
+
},
|
|
26710
26951
|
"/orgs/{organizationId}/synced-blocks/{syncedBlockId}/backlinks": {
|
|
26711
26952
|
"get": {
|
|
26712
26953
|
"operationId": "getSyncedBlockBacklinks",
|
|
@@ -28121,6 +28362,98 @@
|
|
|
28121
28362
|
}
|
|
28122
28363
|
}
|
|
28123
28364
|
},
|
|
28365
|
+
"/orgs/{organizationId}/sites/{siteId}/permissions/aggregate": {
|
|
28366
|
+
"get": {
|
|
28367
|
+
"operationId": "listPermissionsAggregateInSite",
|
|
28368
|
+
"summary": "List permissions for all users of a site.",
|
|
28369
|
+
"tags": [
|
|
28370
|
+
"permissions",
|
|
28371
|
+
"sites"
|
|
28372
|
+
],
|
|
28373
|
+
"security": [
|
|
28374
|
+
{
|
|
28375
|
+
"user": []
|
|
28376
|
+
}
|
|
28377
|
+
],
|
|
28378
|
+
"parameters": [
|
|
28379
|
+
{
|
|
28380
|
+
"$ref": "#/components/parameters/organizationId"
|
|
28381
|
+
},
|
|
28382
|
+
{
|
|
28383
|
+
"$ref": "#/components/parameters/siteId"
|
|
28384
|
+
},
|
|
28385
|
+
{
|
|
28386
|
+
"$ref": "#/components/parameters/listPage"
|
|
28387
|
+
},
|
|
28388
|
+
{
|
|
28389
|
+
"$ref": "#/components/parameters/listLimit"
|
|
28390
|
+
},
|
|
28391
|
+
{
|
|
28392
|
+
"name": "role",
|
|
28393
|
+
"in": "query",
|
|
28394
|
+
"description": "If defined, only members with this role will be returned.",
|
|
28395
|
+
"schema": {
|
|
28396
|
+
"$ref": "#/components/schemas/MemberRole"
|
|
28397
|
+
}
|
|
28398
|
+
}
|
|
28399
|
+
],
|
|
28400
|
+
"responses": {
|
|
28401
|
+
"200": {
|
|
28402
|
+
"description": "Listing of users who can access the site.",
|
|
28403
|
+
"content": {
|
|
28404
|
+
"application/json": {
|
|
28405
|
+
"schema": {
|
|
28406
|
+
"allOf": [
|
|
28407
|
+
{
|
|
28408
|
+
"$ref": "#/components/schemas/List"
|
|
28409
|
+
},
|
|
28410
|
+
{
|
|
28411
|
+
"type": "object",
|
|
28412
|
+
"required": [
|
|
28413
|
+
"items"
|
|
28414
|
+
],
|
|
28415
|
+
"properties": {
|
|
28416
|
+
"items": {
|
|
28417
|
+
"type": "array",
|
|
28418
|
+
"items": {
|
|
28419
|
+
"type": "object",
|
|
28420
|
+
"description": "Permission of a user in a site.",
|
|
28421
|
+
"properties": {
|
|
28422
|
+
"permission": {
|
|
28423
|
+
"$ref": "#/components/schemas/MemberRole"
|
|
28424
|
+
},
|
|
28425
|
+
"user": {
|
|
28426
|
+
"$ref": "#/components/schemas/User"
|
|
28427
|
+
},
|
|
28428
|
+
"origin": {
|
|
28429
|
+
"description": "The content or organization that enforced this permission level.",
|
|
28430
|
+
"oneOf": [
|
|
28431
|
+
{
|
|
28432
|
+
"$ref": "#/components/schemas/SpacePointer"
|
|
28433
|
+
}
|
|
28434
|
+
]
|
|
28435
|
+
}
|
|
28436
|
+
},
|
|
28437
|
+
"required": [
|
|
28438
|
+
"permission",
|
|
28439
|
+
"user",
|
|
28440
|
+
"origin"
|
|
28441
|
+
]
|
|
28442
|
+
}
|
|
28443
|
+
}
|
|
28444
|
+
}
|
|
28445
|
+
}
|
|
28446
|
+
]
|
|
28447
|
+
}
|
|
28448
|
+
}
|
|
28449
|
+
}
|
|
28450
|
+
},
|
|
28451
|
+
"default": {
|
|
28452
|
+
"$ref": "#/components/responses/UnexpectedError"
|
|
28453
|
+
}
|
|
28454
|
+
}
|
|
28455
|
+
}
|
|
28456
|
+
},
|
|
28124
28457
|
"/orgs/{organizationId}/seats": {
|
|
28125
28458
|
"get": {
|
|
28126
28459
|
"operationId": "listSeatsInOrganizationById",
|
|
@@ -28725,9 +29058,17 @@
|
|
|
28725
29058
|
"type": "object",
|
|
28726
29059
|
"properties": {
|
|
28727
29060
|
"spaces": {
|
|
29061
|
+
"deprecated": true,
|
|
28728
29062
|
"type": "array",
|
|
28729
29063
|
"items": {
|
|
28730
|
-
"description": "
|
|
29064
|
+
"description": "Deprecated. Use contentIds.",
|
|
29065
|
+
"type": "string"
|
|
29066
|
+
}
|
|
29067
|
+
},
|
|
29068
|
+
"contentIds": {
|
|
29069
|
+
"type": "array",
|
|
29070
|
+
"items": {
|
|
29071
|
+
"description": "Content IDs to retrieve permissions for.",
|
|
28731
29072
|
"type": "string"
|
|
28732
29073
|
}
|
|
28733
29074
|
}
|
|
@@ -28899,7 +29240,14 @@
|
|
|
28899
29240
|
"content": {
|
|
28900
29241
|
"application/json": {
|
|
28901
29242
|
"schema": {
|
|
28902
|
-
"
|
|
29243
|
+
"oneOf": [
|
|
29244
|
+
{
|
|
29245
|
+
"$ref": "#/components/schemas/PublishedContentLookup"
|
|
29246
|
+
},
|
|
29247
|
+
{
|
|
29248
|
+
"$ref": "#/components/schemas/PublishedSiteContentLookup"
|
|
29249
|
+
}
|
|
29250
|
+
]
|
|
28903
29251
|
}
|
|
28904
29252
|
}
|
|
28905
29253
|
}
|