@gitbook/api 0.59.0 → 0.61.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 +446 -333
- package/dist/index.cjs +147 -93
- package/dist/index.js +144 -91
- package/package.json +1 -1
- package/spec/openapi.json +1567 -1137
- package/spec/openapi.yaml +930 -668
package/spec/openapi.json
CHANGED
|
@@ -416,13 +416,6 @@
|
|
|
416
416
|
"title": {
|
|
417
417
|
"$ref": "#/components/schemas/SpaceTitle"
|
|
418
418
|
},
|
|
419
|
-
"visibility": {
|
|
420
|
-
"$ref": "#/components/schemas/ContentVisibility"
|
|
421
|
-
},
|
|
422
|
-
"visitorAuth": {
|
|
423
|
-
"$ref": "#/components/schemas/VisitorAuth",
|
|
424
|
-
"description": "The integration property, if set, is ignored."
|
|
425
|
-
},
|
|
426
419
|
"defaultLevel": {
|
|
427
420
|
"$ref": "#/components/schemas/DefaultLevel"
|
|
428
421
|
}
|
|
@@ -1341,6 +1334,85 @@
|
|
|
1341
1334
|
}
|
|
1342
1335
|
}
|
|
1343
1336
|
},
|
|
1337
|
+
"/spaces/{spaceId}/permissions": {
|
|
1338
|
+
"post": {
|
|
1339
|
+
"operationId": "inviteToSpace",
|
|
1340
|
+
"summary": "Invite to a space (only teams supported for now)",
|
|
1341
|
+
"tags": [
|
|
1342
|
+
"spaces"
|
|
1343
|
+
],
|
|
1344
|
+
"security": [
|
|
1345
|
+
{
|
|
1346
|
+
"user": []
|
|
1347
|
+
}
|
|
1348
|
+
],
|
|
1349
|
+
"parameters": [
|
|
1350
|
+
{
|
|
1351
|
+
"$ref": "#/components/parameters/spaceId"
|
|
1352
|
+
}
|
|
1353
|
+
],
|
|
1354
|
+
"responses": {
|
|
1355
|
+
"204": {
|
|
1356
|
+
"description": "OK"
|
|
1357
|
+
},
|
|
1358
|
+
"404": {
|
|
1359
|
+
"description": "No team with the provided Id",
|
|
1360
|
+
"$ref": "#/components/responses/NotFoundError"
|
|
1361
|
+
},
|
|
1362
|
+
"default": {
|
|
1363
|
+
"$ref": "#/components/responses/UnexpectedError"
|
|
1364
|
+
}
|
|
1365
|
+
},
|
|
1366
|
+
"requestBody": {
|
|
1367
|
+
"required": true,
|
|
1368
|
+
"content": {
|
|
1369
|
+
"application/json": {
|
|
1370
|
+
"schema": {
|
|
1371
|
+
"$ref": "#/components/schemas/InviteEmailsUsersTeamsToSpace"
|
|
1372
|
+
}
|
|
1373
|
+
}
|
|
1374
|
+
}
|
|
1375
|
+
}
|
|
1376
|
+
}
|
|
1377
|
+
},
|
|
1378
|
+
"/spaces/{spaceId}/permissions/teams/{teamId}": {
|
|
1379
|
+
"delete": {
|
|
1380
|
+
"operationId": "removeTeamFromSpace",
|
|
1381
|
+
"summary": "Remove a team from a space",
|
|
1382
|
+
"tags": [
|
|
1383
|
+
"spaces"
|
|
1384
|
+
],
|
|
1385
|
+
"security": [
|
|
1386
|
+
{
|
|
1387
|
+
"user": []
|
|
1388
|
+
}
|
|
1389
|
+
],
|
|
1390
|
+
"parameters": [
|
|
1391
|
+
{
|
|
1392
|
+
"$ref": "#/components/parameters/spaceId"
|
|
1393
|
+
},
|
|
1394
|
+
{
|
|
1395
|
+
"$ref": "#/components/parameters/teamId"
|
|
1396
|
+
}
|
|
1397
|
+
],
|
|
1398
|
+
"responses": {
|
|
1399
|
+
"205": {
|
|
1400
|
+
"description": "The team has been removed from the space"
|
|
1401
|
+
},
|
|
1402
|
+
"400": {
|
|
1403
|
+
"description": "Team does not have access to space",
|
|
1404
|
+
"$ref": "#/components/responses/BadRequestError"
|
|
1405
|
+
},
|
|
1406
|
+
"404": {
|
|
1407
|
+
"description": "No team found with the given ID",
|
|
1408
|
+
"$ref": "#/components/responses/NotFoundError"
|
|
1409
|
+
},
|
|
1410
|
+
"default": {
|
|
1411
|
+
"$ref": "#/components/responses/UnexpectedError"
|
|
1412
|
+
}
|
|
1413
|
+
}
|
|
1414
|
+
}
|
|
1415
|
+
},
|
|
1344
1416
|
"/spaces/{spaceId}/content": {
|
|
1345
1417
|
"get": {
|
|
1346
1418
|
"operationId": "getCurrentRevision",
|
|
@@ -4671,133 +4743,6 @@
|
|
|
4671
4743
|
}
|
|
4672
4744
|
}
|
|
4673
4745
|
},
|
|
4674
|
-
"/spaces/{spaceId}/publishing/auth": {
|
|
4675
|
-
"get": {
|
|
4676
|
-
"operationId": "getSpacePublishingAuthById",
|
|
4677
|
-
"summary": "Get the publishing authentication configuration for a space.",
|
|
4678
|
-
"tags": [
|
|
4679
|
-
"spaces"
|
|
4680
|
-
],
|
|
4681
|
-
"security": [
|
|
4682
|
-
{
|
|
4683
|
-
"user": []
|
|
4684
|
-
}
|
|
4685
|
-
],
|
|
4686
|
-
"parameters": [
|
|
4687
|
-
{
|
|
4688
|
-
"$ref": "#/components/parameters/spaceId"
|
|
4689
|
-
}
|
|
4690
|
-
],
|
|
4691
|
-
"responses": {
|
|
4692
|
-
"200": {
|
|
4693
|
-
"description": "OK",
|
|
4694
|
-
"content": {
|
|
4695
|
-
"application/json": {
|
|
4696
|
-
"schema": {
|
|
4697
|
-
"$ref": "#/components/schemas/ContentPublishingAuth"
|
|
4698
|
-
}
|
|
4699
|
-
}
|
|
4700
|
-
}
|
|
4701
|
-
},
|
|
4702
|
-
"400": {
|
|
4703
|
-
"$ref": "#/components/responses/BadRequestError"
|
|
4704
|
-
},
|
|
4705
|
-
"default": {
|
|
4706
|
-
"$ref": "#/components/responses/UnexpectedError"
|
|
4707
|
-
}
|
|
4708
|
-
}
|
|
4709
|
-
},
|
|
4710
|
-
"post": {
|
|
4711
|
-
"operationId": "updateSpacePublishingAuthById",
|
|
4712
|
-
"summary": "Update the publishing authentication configuration for a space.",
|
|
4713
|
-
"tags": [
|
|
4714
|
-
"spaces"
|
|
4715
|
-
],
|
|
4716
|
-
"security": [
|
|
4717
|
-
{
|
|
4718
|
-
"user": []
|
|
4719
|
-
}
|
|
4720
|
-
],
|
|
4721
|
-
"parameters": [
|
|
4722
|
-
{
|
|
4723
|
-
"$ref": "#/components/parameters/spaceId"
|
|
4724
|
-
}
|
|
4725
|
-
],
|
|
4726
|
-
"requestBody": {
|
|
4727
|
-
"required": true,
|
|
4728
|
-
"content": {
|
|
4729
|
-
"application/json": {
|
|
4730
|
-
"schema": {
|
|
4731
|
-
"$ref": "#/components/schemas/UpdateContentPublishingAuth"
|
|
4732
|
-
}
|
|
4733
|
-
}
|
|
4734
|
-
}
|
|
4735
|
-
},
|
|
4736
|
-
"responses": {
|
|
4737
|
-
"200": {
|
|
4738
|
-
"description": "OK",
|
|
4739
|
-
"content": {
|
|
4740
|
-
"application/json": {
|
|
4741
|
-
"schema": {
|
|
4742
|
-
"$ref": "#/components/schemas/ContentPublishingAuth"
|
|
4743
|
-
}
|
|
4744
|
-
}
|
|
4745
|
-
}
|
|
4746
|
-
},
|
|
4747
|
-
"400": {
|
|
4748
|
-
"$ref": "#/components/responses/BadRequestError"
|
|
4749
|
-
},
|
|
4750
|
-
"default": {
|
|
4751
|
-
"$ref": "#/components/responses/UnexpectedError"
|
|
4752
|
-
}
|
|
4753
|
-
}
|
|
4754
|
-
}
|
|
4755
|
-
},
|
|
4756
|
-
"/spaces/{spaceId}/publishing/preview": {
|
|
4757
|
-
"get": {
|
|
4758
|
-
"operationId": "getSpacePublishingPreviewById",
|
|
4759
|
-
"summary": "Get a URL to preview the published content of a space. The URL will be valid for 1 hour.",
|
|
4760
|
-
"tags": [
|
|
4761
|
-
"spaces"
|
|
4762
|
-
],
|
|
4763
|
-
"security": [
|
|
4764
|
-
{
|
|
4765
|
-
"user": []
|
|
4766
|
-
}
|
|
4767
|
-
],
|
|
4768
|
-
"parameters": [
|
|
4769
|
-
{
|
|
4770
|
-
"$ref": "#/components/parameters/spaceId"
|
|
4771
|
-
}
|
|
4772
|
-
],
|
|
4773
|
-
"responses": {
|
|
4774
|
-
"200": {
|
|
4775
|
-
"description": "OK",
|
|
4776
|
-
"content": {
|
|
4777
|
-
"application/json": {
|
|
4778
|
-
"schema": {
|
|
4779
|
-
"type": "object",
|
|
4780
|
-
"properties": {
|
|
4781
|
-
"url": {
|
|
4782
|
-
"$ref": "#/components/schemas/URL"
|
|
4783
|
-
}
|
|
4784
|
-
},
|
|
4785
|
-
"required": [
|
|
4786
|
-
"url"
|
|
4787
|
-
]
|
|
4788
|
-
}
|
|
4789
|
-
}
|
|
4790
|
-
}
|
|
4791
|
-
},
|
|
4792
|
-
"400": {
|
|
4793
|
-
"$ref": "#/components/responses/BadRequestError"
|
|
4794
|
-
},
|
|
4795
|
-
"default": {
|
|
4796
|
-
"$ref": "#/components/responses/UnexpectedError"
|
|
4797
|
-
}
|
|
4798
|
-
}
|
|
4799
|
-
}
|
|
4800
|
-
},
|
|
4801
4746
|
"/spaces/{spaceId}/integrations": {
|
|
4802
4747
|
"get": {
|
|
4803
4748
|
"operationId": "listSpaceIntegrations",
|
|
@@ -5751,10 +5696,10 @@
|
|
|
5751
5696
|
}
|
|
5752
5697
|
}
|
|
5753
5698
|
},
|
|
5754
|
-
"/collections/{collectionId}/publishing/
|
|
5699
|
+
"/collections/{collectionId}/publishing/customization": {
|
|
5755
5700
|
"get": {
|
|
5756
|
-
"operationId": "
|
|
5757
|
-
"summary": "Get the publishing
|
|
5701
|
+
"operationId": "getCollectionPublishingCustomizationById",
|
|
5702
|
+
"summary": "Get the publishing customization configuration for a collection.",
|
|
5758
5703
|
"tags": [
|
|
5759
5704
|
"collections"
|
|
5760
5705
|
],
|
|
@@ -5774,7 +5719,7 @@
|
|
|
5774
5719
|
"content": {
|
|
5775
5720
|
"application/json": {
|
|
5776
5721
|
"schema": {
|
|
5777
|
-
"$ref": "#/components/schemas/
|
|
5722
|
+
"$ref": "#/components/schemas/CustomizationCollectionSettings"
|
|
5778
5723
|
}
|
|
5779
5724
|
}
|
|
5780
5725
|
}
|
|
@@ -5787,9 +5732,9 @@
|
|
|
5787
5732
|
}
|
|
5788
5733
|
}
|
|
5789
5734
|
},
|
|
5790
|
-
"
|
|
5791
|
-
"operationId": "
|
|
5792
|
-
"summary": "Update the publishing
|
|
5735
|
+
"put": {
|
|
5736
|
+
"operationId": "updateCollectionPublishingCustomizationById",
|
|
5737
|
+
"summary": "Update the publishing customization configuration for a collection.",
|
|
5793
5738
|
"tags": [
|
|
5794
5739
|
"collections"
|
|
5795
5740
|
],
|
|
@@ -5808,7 +5753,7 @@
|
|
|
5808
5753
|
"content": {
|
|
5809
5754
|
"application/json": {
|
|
5810
5755
|
"schema": {
|
|
5811
|
-
"$ref": "#/components/schemas/
|
|
5756
|
+
"$ref": "#/components/schemas/CustomizationCollectionSettings"
|
|
5812
5757
|
}
|
|
5813
5758
|
}
|
|
5814
5759
|
}
|
|
@@ -5819,7 +5764,7 @@
|
|
|
5819
5764
|
"content": {
|
|
5820
5765
|
"application/json": {
|
|
5821
5766
|
"schema": {
|
|
5822
|
-
"$ref": "#/components/schemas/
|
|
5767
|
+
"$ref": "#/components/schemas/CustomizationCollectionSettings"
|
|
5823
5768
|
}
|
|
5824
5769
|
}
|
|
5825
5770
|
}
|
|
@@ -5833,10 +5778,10 @@
|
|
|
5833
5778
|
}
|
|
5834
5779
|
}
|
|
5835
5780
|
},
|
|
5836
|
-
"/collections/{collectionId}/
|
|
5837
|
-
"
|
|
5838
|
-
"operationId": "
|
|
5839
|
-
"summary": "
|
|
5781
|
+
"/collections/{collectionId}/share-links": {
|
|
5782
|
+
"post": {
|
|
5783
|
+
"operationId": "createCollectionShareLink",
|
|
5784
|
+
"summary": "Creates a new collection share link",
|
|
5840
5785
|
"tags": [
|
|
5841
5786
|
"collections"
|
|
5842
5787
|
],
|
|
@@ -5850,28 +5795,44 @@
|
|
|
5850
5795
|
"$ref": "#/components/parameters/collectionId"
|
|
5851
5796
|
}
|
|
5852
5797
|
],
|
|
5798
|
+
"requestBody": {
|
|
5799
|
+
"content": {
|
|
5800
|
+
"application/json": {
|
|
5801
|
+
"schema": {
|
|
5802
|
+
"type": "object",
|
|
5803
|
+
"properties": {
|
|
5804
|
+
"name": {
|
|
5805
|
+
"$ref": "#/components/schemas/ShareLinkName"
|
|
5806
|
+
}
|
|
5807
|
+
},
|
|
5808
|
+
"required": [
|
|
5809
|
+
"name"
|
|
5810
|
+
]
|
|
5811
|
+
}
|
|
5812
|
+
}
|
|
5813
|
+
}
|
|
5814
|
+
},
|
|
5853
5815
|
"responses": {
|
|
5854
|
-
"
|
|
5855
|
-
"description": "
|
|
5816
|
+
"201": {
|
|
5817
|
+
"description": "The collection share link has been created",
|
|
5856
5818
|
"content": {
|
|
5857
5819
|
"application/json": {
|
|
5858
5820
|
"schema": {
|
|
5859
|
-
"$ref": "#/components/schemas/
|
|
5821
|
+
"$ref": "#/components/schemas/ShareLink"
|
|
5860
5822
|
}
|
|
5861
5823
|
}
|
|
5862
5824
|
}
|
|
5863
5825
|
},
|
|
5864
|
-
"400": {
|
|
5865
|
-
"$ref": "#/components/responses/BadRequestError"
|
|
5866
|
-
},
|
|
5867
5826
|
"default": {
|
|
5868
5827
|
"$ref": "#/components/responses/UnexpectedError"
|
|
5869
5828
|
}
|
|
5870
5829
|
}
|
|
5871
|
-
}
|
|
5872
|
-
|
|
5873
|
-
|
|
5874
|
-
|
|
5830
|
+
}
|
|
5831
|
+
},
|
|
5832
|
+
"/collections/{collectionId}/share-links/{shareLinkId}": {
|
|
5833
|
+
"patch": {
|
|
5834
|
+
"operationId": "updateCollectionShareLinkById",
|
|
5835
|
+
"summary": "Update the details of a collection share link",
|
|
5875
5836
|
"tags": [
|
|
5876
5837
|
"collections"
|
|
5877
5838
|
],
|
|
@@ -5883,6 +5844,9 @@
|
|
|
5883
5844
|
"parameters": [
|
|
5884
5845
|
{
|
|
5885
5846
|
"$ref": "#/components/parameters/collectionId"
|
|
5847
|
+
},
|
|
5848
|
+
{
|
|
5849
|
+
"$ref": "#/components/parameters/shareLinkId"
|
|
5886
5850
|
}
|
|
5887
5851
|
],
|
|
5888
5852
|
"requestBody": {
|
|
@@ -5890,124 +5854,23 @@
|
|
|
5890
5854
|
"content": {
|
|
5891
5855
|
"application/json": {
|
|
5892
5856
|
"schema": {
|
|
5893
|
-
"
|
|
5857
|
+
"type": "object",
|
|
5858
|
+
"minProperties": 1,
|
|
5859
|
+
"properties": {
|
|
5860
|
+
"active": {
|
|
5861
|
+
"type": "boolean"
|
|
5862
|
+
},
|
|
5863
|
+
"name": {
|
|
5864
|
+
"$ref": "#/components/schemas/ShareLinkName"
|
|
5865
|
+
}
|
|
5866
|
+
}
|
|
5894
5867
|
}
|
|
5895
5868
|
}
|
|
5896
5869
|
}
|
|
5897
5870
|
},
|
|
5898
5871
|
"responses": {
|
|
5899
5872
|
"200": {
|
|
5900
|
-
"description": "
|
|
5901
|
-
"content": {
|
|
5902
|
-
"application/json": {
|
|
5903
|
-
"schema": {
|
|
5904
|
-
"$ref": "#/components/schemas/CustomizationCollectionSettings"
|
|
5905
|
-
}
|
|
5906
|
-
}
|
|
5907
|
-
}
|
|
5908
|
-
},
|
|
5909
|
-
"400": {
|
|
5910
|
-
"$ref": "#/components/responses/BadRequestError"
|
|
5911
|
-
},
|
|
5912
|
-
"default": {
|
|
5913
|
-
"$ref": "#/components/responses/UnexpectedError"
|
|
5914
|
-
}
|
|
5915
|
-
}
|
|
5916
|
-
}
|
|
5917
|
-
},
|
|
5918
|
-
"/collections/{collectionId}/share-links": {
|
|
5919
|
-
"post": {
|
|
5920
|
-
"operationId": "createCollectionShareLink",
|
|
5921
|
-
"summary": "Creates a new collection share link",
|
|
5922
|
-
"tags": [
|
|
5923
|
-
"collections"
|
|
5924
|
-
],
|
|
5925
|
-
"security": [
|
|
5926
|
-
{
|
|
5927
|
-
"user": []
|
|
5928
|
-
}
|
|
5929
|
-
],
|
|
5930
|
-
"parameters": [
|
|
5931
|
-
{
|
|
5932
|
-
"$ref": "#/components/parameters/collectionId"
|
|
5933
|
-
}
|
|
5934
|
-
],
|
|
5935
|
-
"requestBody": {
|
|
5936
|
-
"content": {
|
|
5937
|
-
"application/json": {
|
|
5938
|
-
"schema": {
|
|
5939
|
-
"type": "object",
|
|
5940
|
-
"properties": {
|
|
5941
|
-
"name": {
|
|
5942
|
-
"$ref": "#/components/schemas/ShareLinkName"
|
|
5943
|
-
}
|
|
5944
|
-
},
|
|
5945
|
-
"required": [
|
|
5946
|
-
"name"
|
|
5947
|
-
]
|
|
5948
|
-
}
|
|
5949
|
-
}
|
|
5950
|
-
}
|
|
5951
|
-
},
|
|
5952
|
-
"responses": {
|
|
5953
|
-
"201": {
|
|
5954
|
-
"description": "The collection share link has been created",
|
|
5955
|
-
"content": {
|
|
5956
|
-
"application/json": {
|
|
5957
|
-
"schema": {
|
|
5958
|
-
"$ref": "#/components/schemas/ShareLink"
|
|
5959
|
-
}
|
|
5960
|
-
}
|
|
5961
|
-
}
|
|
5962
|
-
},
|
|
5963
|
-
"default": {
|
|
5964
|
-
"$ref": "#/components/responses/UnexpectedError"
|
|
5965
|
-
}
|
|
5966
|
-
}
|
|
5967
|
-
}
|
|
5968
|
-
},
|
|
5969
|
-
"/collections/{collectionId}/share-links/{shareLinkId}": {
|
|
5970
|
-
"patch": {
|
|
5971
|
-
"operationId": "updateCollectionShareLinkById",
|
|
5972
|
-
"summary": "Update the details of a collection share link",
|
|
5973
|
-
"tags": [
|
|
5974
|
-
"collections"
|
|
5975
|
-
],
|
|
5976
|
-
"security": [
|
|
5977
|
-
{
|
|
5978
|
-
"user": []
|
|
5979
|
-
}
|
|
5980
|
-
],
|
|
5981
|
-
"parameters": [
|
|
5982
|
-
{
|
|
5983
|
-
"$ref": "#/components/parameters/collectionId"
|
|
5984
|
-
},
|
|
5985
|
-
{
|
|
5986
|
-
"$ref": "#/components/parameters/shareLinkId"
|
|
5987
|
-
}
|
|
5988
|
-
],
|
|
5989
|
-
"requestBody": {
|
|
5990
|
-
"required": true,
|
|
5991
|
-
"content": {
|
|
5992
|
-
"application/json": {
|
|
5993
|
-
"schema": {
|
|
5994
|
-
"type": "object",
|
|
5995
|
-
"minProperties": 1,
|
|
5996
|
-
"properties": {
|
|
5997
|
-
"active": {
|
|
5998
|
-
"type": "boolean"
|
|
5999
|
-
},
|
|
6000
|
-
"name": {
|
|
6001
|
-
"$ref": "#/components/schemas/ShareLinkName"
|
|
6002
|
-
}
|
|
6003
|
-
}
|
|
6004
|
-
}
|
|
6005
|
-
}
|
|
6006
|
-
}
|
|
6007
|
-
},
|
|
6008
|
-
"responses": {
|
|
6009
|
-
"200": {
|
|
6010
|
-
"description": "The collection share link has been updated",
|
|
5873
|
+
"description": "The collection share link has been updated",
|
|
6011
5874
|
"content": {
|
|
6012
5875
|
"application/json": {
|
|
6013
5876
|
"schema": {
|
|
@@ -7555,9 +7418,6 @@
|
|
|
7555
7418
|
},
|
|
7556
7419
|
"ai": {
|
|
7557
7420
|
"type": "boolean"
|
|
7558
|
-
},
|
|
7559
|
-
"aiInsights": {
|
|
7560
|
-
"type": "boolean"
|
|
7561
7421
|
}
|
|
7562
7422
|
}
|
|
7563
7423
|
}
|
|
@@ -7636,6 +7496,19 @@
|
|
|
7636
7496
|
"schema": {
|
|
7637
7497
|
"type": "string"
|
|
7638
7498
|
}
|
|
7499
|
+
},
|
|
7500
|
+
{
|
|
7501
|
+
"name": "sort",
|
|
7502
|
+
"in": "query",
|
|
7503
|
+
"description": "The property to sort the results by. When sorting by lastSeenAt, only active members will be listed.",
|
|
7504
|
+
"schema": {
|
|
7505
|
+
"type": "string",
|
|
7506
|
+
"default": "joinedAt",
|
|
7507
|
+
"enum": [
|
|
7508
|
+
"joinedAt",
|
|
7509
|
+
"lastSeenAt"
|
|
7510
|
+
]
|
|
7511
|
+
}
|
|
7639
7512
|
}
|
|
7640
7513
|
],
|
|
7641
7514
|
"responses": {
|
|
@@ -8763,6 +8636,82 @@
|
|
|
8763
8636
|
}
|
|
8764
8637
|
}
|
|
8765
8638
|
},
|
|
8639
|
+
"/orgs/{organizationId}/billing/preview": {
|
|
8640
|
+
"get": {
|
|
8641
|
+
"operationId": "previewBillingInvoice",
|
|
8642
|
+
"summary": "Generates a billing invoice preview for organizations without an active subscription",
|
|
8643
|
+
"tags": [
|
|
8644
|
+
"organizations"
|
|
8645
|
+
],
|
|
8646
|
+
"security": [
|
|
8647
|
+
{
|
|
8648
|
+
"user-internal": []
|
|
8649
|
+
}
|
|
8650
|
+
],
|
|
8651
|
+
"parameters": [
|
|
8652
|
+
{
|
|
8653
|
+
"$ref": "#/components/parameters/organizationId"
|
|
8654
|
+
},
|
|
8655
|
+
{
|
|
8656
|
+
"name": "interval",
|
|
8657
|
+
"in": "query",
|
|
8658
|
+
"required": true,
|
|
8659
|
+
"description": "The desired billing interval plan",
|
|
8660
|
+
"schema": {
|
|
8661
|
+
"$ref": "#/components/schemas/BillingInterval"
|
|
8662
|
+
}
|
|
8663
|
+
},
|
|
8664
|
+
{
|
|
8665
|
+
"name": "product",
|
|
8666
|
+
"in": "query",
|
|
8667
|
+
"required": true,
|
|
8668
|
+
"description": "The desired core plan",
|
|
8669
|
+
"schema": {
|
|
8670
|
+
"$ref": "#/components/schemas/BillingProduct"
|
|
8671
|
+
}
|
|
8672
|
+
},
|
|
8673
|
+
{
|
|
8674
|
+
"name": "members",
|
|
8675
|
+
"in": "query",
|
|
8676
|
+
"description": "The desired amount of members in the organization",
|
|
8677
|
+
"schema": {
|
|
8678
|
+
"type": "number"
|
|
8679
|
+
}
|
|
8680
|
+
},
|
|
8681
|
+
{
|
|
8682
|
+
"name": "premiumSites",
|
|
8683
|
+
"in": "query",
|
|
8684
|
+
"description": "The desired amount of published premium sites",
|
|
8685
|
+
"schema": {
|
|
8686
|
+
"type": "number"
|
|
8687
|
+
}
|
|
8688
|
+
},
|
|
8689
|
+
{
|
|
8690
|
+
"name": "audienceSites",
|
|
8691
|
+
"in": "query",
|
|
8692
|
+
"description": "The desired amount of published audience sites",
|
|
8693
|
+
"schema": {
|
|
8694
|
+
"type": "number"
|
|
8695
|
+
}
|
|
8696
|
+
}
|
|
8697
|
+
],
|
|
8698
|
+
"responses": {
|
|
8699
|
+
"200": {
|
|
8700
|
+
"description": "OK",
|
|
8701
|
+
"content": {
|
|
8702
|
+
"application/json": {
|
|
8703
|
+
"schema": {
|
|
8704
|
+
"$ref": "#/components/schemas/BillingInvoicePreview"
|
|
8705
|
+
}
|
|
8706
|
+
}
|
|
8707
|
+
}
|
|
8708
|
+
},
|
|
8709
|
+
"default": {
|
|
8710
|
+
"$ref": "#/components/responses/UnexpectedError"
|
|
8711
|
+
}
|
|
8712
|
+
}
|
|
8713
|
+
}
|
|
8714
|
+
},
|
|
8766
8715
|
"/orgs/{organizationId}/request_upgrade": {
|
|
8767
8716
|
"post": {
|
|
8768
8717
|
"operationId": "requestOrganizationUpgrade",
|
|
@@ -9766,22 +9715,28 @@
|
|
|
9766
9715
|
}
|
|
9767
9716
|
}
|
|
9768
9717
|
},
|
|
9769
|
-
"/orgs/{organizationId}/
|
|
9718
|
+
"/orgs/{organizationId}/saml": {
|
|
9770
9719
|
"get": {
|
|
9771
|
-
"operationId": "
|
|
9772
|
-
"summary": "
|
|
9720
|
+
"operationId": "listSAMLProvidersInOrganizationById",
|
|
9721
|
+
"summary": "List organization SAML providers",
|
|
9722
|
+
"description": "Lists SAML providers configured for the specified organization.\n",
|
|
9773
9723
|
"tags": [
|
|
9774
|
-
"organizations"
|
|
9775
|
-
"usage"
|
|
9724
|
+
"organizations"
|
|
9776
9725
|
],
|
|
9777
9726
|
"security": [
|
|
9778
9727
|
{
|
|
9779
|
-
"user
|
|
9728
|
+
"user": []
|
|
9780
9729
|
}
|
|
9781
9730
|
],
|
|
9782
9731
|
"parameters": [
|
|
9783
9732
|
{
|
|
9784
9733
|
"$ref": "#/components/parameters/organizationId"
|
|
9734
|
+
},
|
|
9735
|
+
{
|
|
9736
|
+
"$ref": "#/components/parameters/listPage"
|
|
9737
|
+
},
|
|
9738
|
+
{
|
|
9739
|
+
"$ref": "#/components/parameters/listLimit"
|
|
9785
9740
|
}
|
|
9786
9741
|
],
|
|
9787
9742
|
"responses": {
|
|
@@ -9790,7 +9745,25 @@
|
|
|
9790
9745
|
"content": {
|
|
9791
9746
|
"application/json": {
|
|
9792
9747
|
"schema": {
|
|
9793
|
-
"
|
|
9748
|
+
"allOf": [
|
|
9749
|
+
{
|
|
9750
|
+
"$ref": "#/components/schemas/List"
|
|
9751
|
+
},
|
|
9752
|
+
{
|
|
9753
|
+
"type": "object",
|
|
9754
|
+
"required": [
|
|
9755
|
+
"items"
|
|
9756
|
+
],
|
|
9757
|
+
"properties": {
|
|
9758
|
+
"items": {
|
|
9759
|
+
"type": "array",
|
|
9760
|
+
"items": {
|
|
9761
|
+
"$ref": "#/components/schemas/OrganizationSAMLProvider"
|
|
9762
|
+
}
|
|
9763
|
+
}
|
|
9764
|
+
}
|
|
9765
|
+
}
|
|
9766
|
+
]
|
|
9794
9767
|
}
|
|
9795
9768
|
}
|
|
9796
9769
|
}
|
|
@@ -9799,19 +9772,16 @@
|
|
|
9799
9772
|
"$ref": "#/components/responses/UnexpectedError"
|
|
9800
9773
|
}
|
|
9801
9774
|
}
|
|
9802
|
-
}
|
|
9803
|
-
|
|
9804
|
-
|
|
9805
|
-
|
|
9806
|
-
"operationId": "getCollectionsUsageForOrganizationById",
|
|
9807
|
-
"summary": "Get collections usage metrics for an organization",
|
|
9775
|
+
},
|
|
9776
|
+
"post": {
|
|
9777
|
+
"operationId": "createOrganizationSAMLProvider",
|
|
9778
|
+
"summary": "Create a new SAML provider in an orgamization",
|
|
9808
9779
|
"tags": [
|
|
9809
|
-
"organizations"
|
|
9810
|
-
"usage"
|
|
9780
|
+
"organizations"
|
|
9811
9781
|
],
|
|
9812
9782
|
"security": [
|
|
9813
9783
|
{
|
|
9814
|
-
"user
|
|
9784
|
+
"user": []
|
|
9815
9785
|
}
|
|
9816
9786
|
],
|
|
9817
9787
|
"parameters": [
|
|
@@ -9819,29 +9789,274 @@
|
|
|
9819
9789
|
"$ref": "#/components/parameters/organizationId"
|
|
9820
9790
|
}
|
|
9821
9791
|
],
|
|
9822
|
-
"
|
|
9823
|
-
"
|
|
9824
|
-
|
|
9825
|
-
"
|
|
9826
|
-
"
|
|
9827
|
-
"
|
|
9828
|
-
|
|
9829
|
-
"
|
|
9830
|
-
"
|
|
9831
|
-
"$ref": "#/components/schemas/OrganizationUsageCollections"
|
|
9832
|
-
}
|
|
9792
|
+
"requestBody": {
|
|
9793
|
+
"required": true,
|
|
9794
|
+
"content": {
|
|
9795
|
+
"application/json": {
|
|
9796
|
+
"schema": {
|
|
9797
|
+
"type": "object",
|
|
9798
|
+
"properties": {
|
|
9799
|
+
"label": {
|
|
9800
|
+
"$ref": "#/components/schemas/SAMLProviderLabel"
|
|
9833
9801
|
},
|
|
9834
|
-
"
|
|
9835
|
-
"
|
|
9836
|
-
|
|
9837
|
-
|
|
9838
|
-
|
|
9839
|
-
|
|
9840
|
-
|
|
9841
|
-
|
|
9842
|
-
|
|
9843
|
-
|
|
9844
|
-
|
|
9802
|
+
"entityID": {
|
|
9803
|
+
"$ref": "#/components/schemas/SAMLProviderEntityID"
|
|
9804
|
+
},
|
|
9805
|
+
"certificate": {
|
|
9806
|
+
"$ref": "#/components/schemas/SAMLProviderCertificate"
|
|
9807
|
+
},
|
|
9808
|
+
"ssoURL": {
|
|
9809
|
+
"$ref": "#/components/schemas/URL"
|
|
9810
|
+
},
|
|
9811
|
+
"defaultTeam": {
|
|
9812
|
+
"type": "string"
|
|
9813
|
+
},
|
|
9814
|
+
"defaultRole": {
|
|
9815
|
+
"$ref": "#/components/schemas/MemberRoleOrGuest"
|
|
9816
|
+
}
|
|
9817
|
+
},
|
|
9818
|
+
"required": [
|
|
9819
|
+
"label"
|
|
9820
|
+
]
|
|
9821
|
+
}
|
|
9822
|
+
}
|
|
9823
|
+
}
|
|
9824
|
+
},
|
|
9825
|
+
"responses": {
|
|
9826
|
+
"201": {
|
|
9827
|
+
"description": "SAML Provider created",
|
|
9828
|
+
"headers": {
|
|
9829
|
+
"Location": {
|
|
9830
|
+
"description": "API URL for the newly created SAML Provider",
|
|
9831
|
+
"schema": {
|
|
9832
|
+
"type": "string"
|
|
9833
|
+
}
|
|
9834
|
+
}
|
|
9835
|
+
},
|
|
9836
|
+
"content": {
|
|
9837
|
+
"application/json": {
|
|
9838
|
+
"schema": {
|
|
9839
|
+
"$ref": "#/components/schemas/OrganizationSAMLProvider"
|
|
9840
|
+
}
|
|
9841
|
+
}
|
|
9842
|
+
}
|
|
9843
|
+
},
|
|
9844
|
+
"default": {
|
|
9845
|
+
"$ref": "#/components/responses/UnexpectedError"
|
|
9846
|
+
}
|
|
9847
|
+
}
|
|
9848
|
+
}
|
|
9849
|
+
},
|
|
9850
|
+
"/orgs/{organizationId}/saml/{samlProviderId}": {
|
|
9851
|
+
"get": {
|
|
9852
|
+
"operationId": "getOrganizationSAMLProviderById",
|
|
9853
|
+
"summary": "Get a SAML provider in an organization by its ID",
|
|
9854
|
+
"tags": [
|
|
9855
|
+
"organizations"
|
|
9856
|
+
],
|
|
9857
|
+
"security": [
|
|
9858
|
+
{
|
|
9859
|
+
"user": []
|
|
9860
|
+
}
|
|
9861
|
+
],
|
|
9862
|
+
"parameters": [
|
|
9863
|
+
{
|
|
9864
|
+
"$ref": "#/components/parameters/organizationId"
|
|
9865
|
+
},
|
|
9866
|
+
{
|
|
9867
|
+
"$ref": "#/components/parameters/samlProviderId"
|
|
9868
|
+
}
|
|
9869
|
+
],
|
|
9870
|
+
"responses": {
|
|
9871
|
+
"200": {
|
|
9872
|
+
"description": "OK",
|
|
9873
|
+
"content": {
|
|
9874
|
+
"application/json": {
|
|
9875
|
+
"schema": {
|
|
9876
|
+
"$ref": "#/components/schemas/OrganizationSAMLProvider"
|
|
9877
|
+
}
|
|
9878
|
+
}
|
|
9879
|
+
}
|
|
9880
|
+
},
|
|
9881
|
+
"404": {
|
|
9882
|
+
"description": "No matching provider found",
|
|
9883
|
+
"$ref": "#/components/responses/NotFoundError"
|
|
9884
|
+
},
|
|
9885
|
+
"default": {
|
|
9886
|
+
"$ref": "#/components/responses/UnexpectedError"
|
|
9887
|
+
}
|
|
9888
|
+
}
|
|
9889
|
+
},
|
|
9890
|
+
"patch": {
|
|
9891
|
+
"operationId": "updateOrganizationSAMLProvider",
|
|
9892
|
+
"summary": "Update a SAML provider in an organization",
|
|
9893
|
+
"tags": [
|
|
9894
|
+
"organizations"
|
|
9895
|
+
],
|
|
9896
|
+
"security": [
|
|
9897
|
+
{
|
|
9898
|
+
"user": []
|
|
9899
|
+
}
|
|
9900
|
+
],
|
|
9901
|
+
"parameters": [
|
|
9902
|
+
{
|
|
9903
|
+
"$ref": "#/components/parameters/organizationId"
|
|
9904
|
+
},
|
|
9905
|
+
{
|
|
9906
|
+
"$ref": "#/components/parameters/samlProviderId"
|
|
9907
|
+
}
|
|
9908
|
+
],
|
|
9909
|
+
"requestBody": {
|
|
9910
|
+
"required": true,
|
|
9911
|
+
"content": {
|
|
9912
|
+
"application/json": {
|
|
9913
|
+
"schema": {
|
|
9914
|
+
"type": "object",
|
|
9915
|
+
"properties": {
|
|
9916
|
+
"label": {
|
|
9917
|
+
"$ref": "#/components/schemas/SAMLProviderLabel"
|
|
9918
|
+
},
|
|
9919
|
+
"entityID": {
|
|
9920
|
+
"$ref": "#/components/schemas/SAMLProviderEntityID"
|
|
9921
|
+
},
|
|
9922
|
+
"certificate": {
|
|
9923
|
+
"$ref": "#/components/schemas/SAMLProviderCertificate"
|
|
9924
|
+
},
|
|
9925
|
+
"ssoURL": {
|
|
9926
|
+
"$ref": "#/components/schemas/URL"
|
|
9927
|
+
},
|
|
9928
|
+
"defaultTeam": {
|
|
9929
|
+
"type": "string"
|
|
9930
|
+
},
|
|
9931
|
+
"defaultRole": {
|
|
9932
|
+
"$ref": "#/components/schemas/MemberRoleOrGuest"
|
|
9933
|
+
}
|
|
9934
|
+
}
|
|
9935
|
+
}
|
|
9936
|
+
}
|
|
9937
|
+
}
|
|
9938
|
+
},
|
|
9939
|
+
"responses": {
|
|
9940
|
+
"200": {
|
|
9941
|
+
"description": "SAML provider has been updated",
|
|
9942
|
+
"content": {
|
|
9943
|
+
"application/json": {
|
|
9944
|
+
"schema": {
|
|
9945
|
+
"$ref": "#/components/schemas/OrganizationSAMLProvider"
|
|
9946
|
+
}
|
|
9947
|
+
}
|
|
9948
|
+
}
|
|
9949
|
+
},
|
|
9950
|
+
"default": {
|
|
9951
|
+
"$ref": "#/components/responses/UnexpectedError"
|
|
9952
|
+
}
|
|
9953
|
+
}
|
|
9954
|
+
},
|
|
9955
|
+
"delete": {
|
|
9956
|
+
"operationId": "deleteOrganizationSAMLProvider",
|
|
9957
|
+
"summary": "Delete a SAML provider in an organization",
|
|
9958
|
+
"tags": [
|
|
9959
|
+
"organizations"
|
|
9960
|
+
],
|
|
9961
|
+
"security": [
|
|
9962
|
+
{
|
|
9963
|
+
"user": []
|
|
9964
|
+
}
|
|
9965
|
+
],
|
|
9966
|
+
"parameters": [
|
|
9967
|
+
{
|
|
9968
|
+
"$ref": "#/components/parameters/organizationId"
|
|
9969
|
+
},
|
|
9970
|
+
{
|
|
9971
|
+
"$ref": "#/components/parameters/samlProviderId"
|
|
9972
|
+
}
|
|
9973
|
+
],
|
|
9974
|
+
"responses": {
|
|
9975
|
+
"204": {
|
|
9976
|
+
"description": "SAML provider has been deleted"
|
|
9977
|
+
},
|
|
9978
|
+
"default": {
|
|
9979
|
+
"$ref": "#/components/responses/UnexpectedError"
|
|
9980
|
+
}
|
|
9981
|
+
}
|
|
9982
|
+
}
|
|
9983
|
+
},
|
|
9984
|
+
"/orgs/{organizationId}/usage": {
|
|
9985
|
+
"get": {
|
|
9986
|
+
"operationId": "getUsageForOrganizationById",
|
|
9987
|
+
"summary": "Get all usage metrics for an organization",
|
|
9988
|
+
"tags": [
|
|
9989
|
+
"organizations",
|
|
9990
|
+
"usage"
|
|
9991
|
+
],
|
|
9992
|
+
"security": [
|
|
9993
|
+
{
|
|
9994
|
+
"user-internal": []
|
|
9995
|
+
}
|
|
9996
|
+
],
|
|
9997
|
+
"parameters": [
|
|
9998
|
+
{
|
|
9999
|
+
"$ref": "#/components/parameters/organizationId"
|
|
10000
|
+
}
|
|
10001
|
+
],
|
|
10002
|
+
"responses": {
|
|
10003
|
+
"200": {
|
|
10004
|
+
"description": "OK",
|
|
10005
|
+
"content": {
|
|
10006
|
+
"application/json": {
|
|
10007
|
+
"schema": {
|
|
10008
|
+
"$ref": "#/components/schemas/OrganizationUsage"
|
|
10009
|
+
}
|
|
10010
|
+
}
|
|
10011
|
+
}
|
|
10012
|
+
},
|
|
10013
|
+
"default": {
|
|
10014
|
+
"$ref": "#/components/responses/UnexpectedError"
|
|
10015
|
+
}
|
|
10016
|
+
}
|
|
10017
|
+
}
|
|
10018
|
+
},
|
|
10019
|
+
"/orgs/{organizationId}/usage/collections": {
|
|
10020
|
+
"get": {
|
|
10021
|
+
"operationId": "getCollectionsUsageForOrganizationById",
|
|
10022
|
+
"summary": "Get collections usage metrics for an organization",
|
|
10023
|
+
"tags": [
|
|
10024
|
+
"organizations",
|
|
10025
|
+
"usage"
|
|
10026
|
+
],
|
|
10027
|
+
"security": [
|
|
10028
|
+
{
|
|
10029
|
+
"user-internal": []
|
|
10030
|
+
}
|
|
10031
|
+
],
|
|
10032
|
+
"parameters": [
|
|
10033
|
+
{
|
|
10034
|
+
"$ref": "#/components/parameters/organizationId"
|
|
10035
|
+
}
|
|
10036
|
+
],
|
|
10037
|
+
"responses": {
|
|
10038
|
+
"200": {
|
|
10039
|
+
"description": "OK",
|
|
10040
|
+
"content": {
|
|
10041
|
+
"application/json": {
|
|
10042
|
+
"schema": {
|
|
10043
|
+
"type": "object",
|
|
10044
|
+
"properties": {
|
|
10045
|
+
"collections": {
|
|
10046
|
+
"$ref": "#/components/schemas/OrganizationUsageCollections"
|
|
10047
|
+
}
|
|
10048
|
+
},
|
|
10049
|
+
"required": [
|
|
10050
|
+
"collections"
|
|
10051
|
+
]
|
|
10052
|
+
}
|
|
10053
|
+
}
|
|
10054
|
+
}
|
|
10055
|
+
},
|
|
10056
|
+
"default": {
|
|
10057
|
+
"$ref": "#/components/responses/UnexpectedError"
|
|
10058
|
+
}
|
|
10059
|
+
}
|
|
9845
10060
|
}
|
|
9846
10061
|
},
|
|
9847
10062
|
"/orgs/{organizationId}/usage/spaces": {
|
|
@@ -10784,9 +10999,9 @@
|
|
|
10784
10999
|
}
|
|
10785
11000
|
},
|
|
10786
11001
|
"/orgs/{organizationId}/synced-blocks": {
|
|
10787
|
-
"
|
|
10788
|
-
"operationId": "
|
|
10789
|
-
"summary": "
|
|
11002
|
+
"get": {
|
|
11003
|
+
"operationId": "listSyncedBlocks",
|
|
11004
|
+
"summary": "List all the synced blocks created in an organization",
|
|
10790
11005
|
"tags": [
|
|
10791
11006
|
"organizations"
|
|
10792
11007
|
],
|
|
@@ -10798,29 +11013,85 @@
|
|
|
10798
11013
|
"parameters": [
|
|
10799
11014
|
{
|
|
10800
11015
|
"$ref": "#/components/parameters/organizationId"
|
|
11016
|
+
},
|
|
11017
|
+
{
|
|
11018
|
+
"$ref": "#/components/parameters/listPage"
|
|
11019
|
+
},
|
|
11020
|
+
{
|
|
11021
|
+
"$ref": "#/components/parameters/listLimit"
|
|
10801
11022
|
}
|
|
10802
11023
|
],
|
|
10803
|
-
"
|
|
10804
|
-
"
|
|
10805
|
-
|
|
10806
|
-
"
|
|
10807
|
-
"
|
|
10808
|
-
"
|
|
10809
|
-
|
|
10810
|
-
|
|
10811
|
-
|
|
10812
|
-
|
|
10813
|
-
|
|
10814
|
-
|
|
10815
|
-
|
|
10816
|
-
|
|
10817
|
-
|
|
10818
|
-
|
|
10819
|
-
|
|
10820
|
-
|
|
10821
|
-
|
|
10822
|
-
|
|
10823
|
-
|
|
11024
|
+
"responses": {
|
|
11025
|
+
"200": {
|
|
11026
|
+
"description": "OK",
|
|
11027
|
+
"content": {
|
|
11028
|
+
"application/json": {
|
|
11029
|
+
"schema": {
|
|
11030
|
+
"allOf": [
|
|
11031
|
+
{
|
|
11032
|
+
"$ref": "#/components/schemas/List"
|
|
11033
|
+
},
|
|
11034
|
+
{
|
|
11035
|
+
"type": "object",
|
|
11036
|
+
"required": [
|
|
11037
|
+
"items"
|
|
11038
|
+
],
|
|
11039
|
+
"properties": {
|
|
11040
|
+
"items": {
|
|
11041
|
+
"type": "array",
|
|
11042
|
+
"items": {
|
|
11043
|
+
"$ref": "#/components/schemas/SyncedBlock"
|
|
11044
|
+
}
|
|
11045
|
+
}
|
|
11046
|
+
}
|
|
11047
|
+
}
|
|
11048
|
+
]
|
|
11049
|
+
}
|
|
11050
|
+
}
|
|
11051
|
+
}
|
|
11052
|
+
},
|
|
11053
|
+
"default": {
|
|
11054
|
+
"$ref": "#/components/responses/UnexpectedError"
|
|
11055
|
+
}
|
|
11056
|
+
}
|
|
11057
|
+
},
|
|
11058
|
+
"post": {
|
|
11059
|
+
"operationId": "createSyncedBlock",
|
|
11060
|
+
"summary": "Create a new synced block",
|
|
11061
|
+
"tags": [
|
|
11062
|
+
"organizations"
|
|
11063
|
+
],
|
|
11064
|
+
"security": [
|
|
11065
|
+
{
|
|
11066
|
+
"user": []
|
|
11067
|
+
}
|
|
11068
|
+
],
|
|
11069
|
+
"parameters": [
|
|
11070
|
+
{
|
|
11071
|
+
"$ref": "#/components/parameters/organizationId"
|
|
11072
|
+
}
|
|
11073
|
+
],
|
|
11074
|
+
"requestBody": {
|
|
11075
|
+
"required": true,
|
|
11076
|
+
"content": {
|
|
11077
|
+
"application/json": {
|
|
11078
|
+
"schema": {
|
|
11079
|
+
"type": "object",
|
|
11080
|
+
"required": [
|
|
11081
|
+
"document"
|
|
11082
|
+
],
|
|
11083
|
+
"properties": {
|
|
11084
|
+
"title": {
|
|
11085
|
+
"type": "string",
|
|
11086
|
+
"description": "Title of synced block"
|
|
11087
|
+
},
|
|
11088
|
+
"document": {
|
|
11089
|
+
"$ref": "#/components/schemas/Document"
|
|
11090
|
+
}
|
|
11091
|
+
}
|
|
11092
|
+
}
|
|
11093
|
+
}
|
|
11094
|
+
}
|
|
10824
11095
|
},
|
|
10825
11096
|
"responses": {
|
|
10826
11097
|
"201": {
|
|
@@ -11041,6 +11312,67 @@
|
|
|
11041
11312
|
}
|
|
11042
11313
|
}
|
|
11043
11314
|
},
|
|
11315
|
+
"/orgs/{organizationId}/synced-blocks/{syncedBlockId}/usage/spaces": {
|
|
11316
|
+
"get": {
|
|
11317
|
+
"operationId": "listSyncedBlockSpaces",
|
|
11318
|
+
"summary": "Get a list of spaces that reference this synced block.",
|
|
11319
|
+
"tags": [
|
|
11320
|
+
"organizations"
|
|
11321
|
+
],
|
|
11322
|
+
"security": [
|
|
11323
|
+
{
|
|
11324
|
+
"user": []
|
|
11325
|
+
}
|
|
11326
|
+
],
|
|
11327
|
+
"parameters": [
|
|
11328
|
+
{
|
|
11329
|
+
"$ref": "#/components/parameters/organizationId"
|
|
11330
|
+
},
|
|
11331
|
+
{
|
|
11332
|
+
"$ref": "#/components/parameters/syncedBlockId"
|
|
11333
|
+
},
|
|
11334
|
+
{
|
|
11335
|
+
"$ref": "#/components/parameters/listPage"
|
|
11336
|
+
},
|
|
11337
|
+
{
|
|
11338
|
+
"$ref": "#/components/parameters/listLimit"
|
|
11339
|
+
}
|
|
11340
|
+
],
|
|
11341
|
+
"responses": {
|
|
11342
|
+
"200": {
|
|
11343
|
+
"description": "OK",
|
|
11344
|
+
"content": {
|
|
11345
|
+
"application/json": {
|
|
11346
|
+
"schema": {
|
|
11347
|
+
"allOf": [
|
|
11348
|
+
{
|
|
11349
|
+
"$ref": "#/components/schemas/List"
|
|
11350
|
+
},
|
|
11351
|
+
{
|
|
11352
|
+
"type": "object",
|
|
11353
|
+
"required": [
|
|
11354
|
+
"items"
|
|
11355
|
+
],
|
|
11356
|
+
"properties": {
|
|
11357
|
+
"items": {
|
|
11358
|
+
"type": "array",
|
|
11359
|
+
"items": {
|
|
11360
|
+
"$ref": "#/components/schemas/Space"
|
|
11361
|
+
}
|
|
11362
|
+
}
|
|
11363
|
+
}
|
|
11364
|
+
}
|
|
11365
|
+
]
|
|
11366
|
+
}
|
|
11367
|
+
}
|
|
11368
|
+
}
|
|
11369
|
+
},
|
|
11370
|
+
"default": {
|
|
11371
|
+
"$ref": "#/components/responses/UnexpectedError"
|
|
11372
|
+
}
|
|
11373
|
+
}
|
|
11374
|
+
}
|
|
11375
|
+
},
|
|
11044
11376
|
"/orgs/{organizationId}/ask": {
|
|
11045
11377
|
"post": {
|
|
11046
11378
|
"operationId": "askInOrganization",
|
|
@@ -11210,13 +11542,12 @@
|
|
|
11210
11542
|
}
|
|
11211
11543
|
}
|
|
11212
11544
|
},
|
|
11213
|
-
"/orgs/{organizationId}/
|
|
11545
|
+
"/orgs/{organizationId}/sites": {
|
|
11214
11546
|
"get": {
|
|
11215
|
-
"operationId": "
|
|
11216
|
-
"summary": "List the
|
|
11547
|
+
"operationId": "listSites",
|
|
11548
|
+
"summary": "List all the sites created in an organization",
|
|
11217
11549
|
"tags": [
|
|
11218
|
-
"
|
|
11219
|
-
"spaces"
|
|
11550
|
+
"sites"
|
|
11220
11551
|
],
|
|
11221
11552
|
"security": [
|
|
11222
11553
|
{
|
|
@@ -11233,260 +11564,31 @@
|
|
|
11233
11564
|
{
|
|
11234
11565
|
"$ref": "#/components/parameters/listLimit"
|
|
11235
11566
|
},
|
|
11236
|
-
{
|
|
11237
|
-
"name": "status",
|
|
11238
|
-
"in": "query",
|
|
11239
|
-
"required": false,
|
|
11240
|
-
"description": "Status of the audit relation to filter on",
|
|
11241
|
-
"schema": {
|
|
11242
|
-
"default": "pending",
|
|
11243
|
-
"oneOf": [
|
|
11244
|
-
{
|
|
11245
|
-
"$ref": "#/components/schemas/ContentAuditRelationStatus"
|
|
11246
|
-
},
|
|
11247
|
-
{
|
|
11248
|
-
"type": "string",
|
|
11249
|
-
"enum": [
|
|
11250
|
-
"all"
|
|
11251
|
-
]
|
|
11252
|
-
}
|
|
11253
|
-
]
|
|
11254
|
-
}
|
|
11255
|
-
},
|
|
11256
11567
|
{
|
|
11257
11568
|
"name": "space",
|
|
11258
11569
|
"in": "query",
|
|
11570
|
+
"description": "Identifier of the space to filter the sites by",
|
|
11259
11571
|
"required": false,
|
|
11260
|
-
"description": "Space concerned by the relation",
|
|
11261
11572
|
"schema": {
|
|
11262
11573
|
"type": "string"
|
|
11263
11574
|
}
|
|
11264
11575
|
},
|
|
11265
11576
|
{
|
|
11266
|
-
"name": "
|
|
11577
|
+
"name": "title",
|
|
11267
11578
|
"in": "query",
|
|
11579
|
+
"description": "Filter sites by their title",
|
|
11268
11580
|
"required": false,
|
|
11269
|
-
"description": "Type of the audit relation to filter on",
|
|
11270
|
-
"schema": {
|
|
11271
|
-
"default": "all",
|
|
11272
|
-
"oneOf": [
|
|
11273
|
-
{
|
|
11274
|
-
"$ref": "#/components/schemas/ContentAuditRelationType"
|
|
11275
|
-
},
|
|
11276
|
-
{
|
|
11277
|
-
"type": "string",
|
|
11278
|
-
"enum": [
|
|
11279
|
-
"all"
|
|
11280
|
-
]
|
|
11281
|
-
}
|
|
11282
|
-
]
|
|
11283
|
-
}
|
|
11284
|
-
}
|
|
11285
|
-
],
|
|
11286
|
-
"responses": {
|
|
11287
|
-
"200": {
|
|
11288
|
-
"description": "Content audit relations",
|
|
11289
|
-
"content": {
|
|
11290
|
-
"application/json": {
|
|
11291
|
-
"schema": {
|
|
11292
|
-
"allOf": [
|
|
11293
|
-
{
|
|
11294
|
-
"$ref": "#/components/schemas/List"
|
|
11295
|
-
},
|
|
11296
|
-
{
|
|
11297
|
-
"type": "object",
|
|
11298
|
-
"required": [
|
|
11299
|
-
"items"
|
|
11300
|
-
],
|
|
11301
|
-
"properties": {
|
|
11302
|
-
"items": {
|
|
11303
|
-
"type": "array",
|
|
11304
|
-
"items": {
|
|
11305
|
-
"$ref": "#/components/schemas/ContentAuditRelation"
|
|
11306
|
-
}
|
|
11307
|
-
}
|
|
11308
|
-
}
|
|
11309
|
-
}
|
|
11310
|
-
]
|
|
11311
|
-
}
|
|
11312
|
-
}
|
|
11313
|
-
}
|
|
11314
|
-
},
|
|
11315
|
-
"default": {
|
|
11316
|
-
"$ref": "#/components/responses/UnexpectedError"
|
|
11317
|
-
}
|
|
11318
|
-
}
|
|
11319
|
-
}
|
|
11320
|
-
},
|
|
11321
|
-
"/orgs/{organizationId}/insights/audit-relations/{relationId}": {
|
|
11322
|
-
"get": {
|
|
11323
|
-
"operationId": "getContentAuditRelationById",
|
|
11324
|
-
"summary": "Get an audit relation by ID",
|
|
11325
|
-
"tags": [
|
|
11326
|
-
"organizations"
|
|
11327
|
-
],
|
|
11328
|
-
"security": [
|
|
11329
|
-
{
|
|
11330
|
-
"user": []
|
|
11331
|
-
}
|
|
11332
|
-
],
|
|
11333
|
-
"parameters": [
|
|
11334
|
-
{
|
|
11335
|
-
"$ref": "#/components/parameters/organizationId"
|
|
11336
|
-
},
|
|
11337
|
-
{
|
|
11338
|
-
"$ref": "#/components/parameters/relationId"
|
|
11339
|
-
}
|
|
11340
|
-
],
|
|
11341
|
-
"responses": {
|
|
11342
|
-
"200": {
|
|
11343
|
-
"description": "OK",
|
|
11344
|
-
"content": {
|
|
11345
|
-
"application/json": {
|
|
11346
|
-
"schema": {
|
|
11347
|
-
"$ref": "#/components/schemas/ContentAuditRelation"
|
|
11348
|
-
}
|
|
11349
|
-
}
|
|
11350
|
-
}
|
|
11351
|
-
},
|
|
11352
|
-
"404": {
|
|
11353
|
-
"description": "No matching content relation found for given ID",
|
|
11354
|
-
"$ref": "#/components/responses/NotFoundError"
|
|
11355
|
-
},
|
|
11356
|
-
"default": {
|
|
11357
|
-
"$ref": "#/components/responses/UnexpectedError"
|
|
11358
|
-
}
|
|
11359
|
-
}
|
|
11360
|
-
},
|
|
11361
|
-
"patch": {
|
|
11362
|
-
"operationId": "updateContentAuditRelationStatusById",
|
|
11363
|
-
"summary": "Update an audit relation status",
|
|
11364
|
-
"tags": [
|
|
11365
|
-
"organizations"
|
|
11366
|
-
],
|
|
11367
|
-
"security": [
|
|
11368
|
-
{
|
|
11369
|
-
"user": []
|
|
11370
|
-
}
|
|
11371
|
-
],
|
|
11372
|
-
"parameters": [
|
|
11373
|
-
{
|
|
11374
|
-
"$ref": "#/components/parameters/organizationId"
|
|
11375
|
-
},
|
|
11376
|
-
{
|
|
11377
|
-
"$ref": "#/components/parameters/relationId"
|
|
11378
|
-
}
|
|
11379
|
-
],
|
|
11380
|
-
"requestBody": {
|
|
11381
|
-
"required": true,
|
|
11382
|
-
"content": {
|
|
11383
|
-
"application/json": {
|
|
11384
|
-
"schema": {
|
|
11385
|
-
"$ref": "#/components/schemas/ContentAuditRelationStatusUpdate"
|
|
11386
|
-
}
|
|
11387
|
-
}
|
|
11388
|
-
}
|
|
11389
|
-
},
|
|
11390
|
-
"responses": {
|
|
11391
|
-
"200": {
|
|
11392
|
-
"description": "OK",
|
|
11393
|
-
"content": {
|
|
11394
|
-
"application/json": {
|
|
11395
|
-
"schema": {
|
|
11396
|
-
"$ref": "#/components/schemas/ContentAuditRelation"
|
|
11397
|
-
}
|
|
11398
|
-
}
|
|
11399
|
-
}
|
|
11400
|
-
},
|
|
11401
|
-
"404": {
|
|
11402
|
-
"description": "No matching content relation found for given ID",
|
|
11403
|
-
"$ref": "#/components/responses/NotFoundError"
|
|
11404
|
-
},
|
|
11405
|
-
"default": {
|
|
11406
|
-
"$ref": "#/components/responses/UnexpectedError"
|
|
11407
|
-
}
|
|
11408
|
-
}
|
|
11409
|
-
}
|
|
11410
|
-
},
|
|
11411
|
-
"/orgs/{organizationId}/insights/audit-sources/{sourceId}/content": {
|
|
11412
|
-
"get": {
|
|
11413
|
-
"operationId": "getContentAuditSourceContentById",
|
|
11414
|
-
"summary": "Get the content of an audit source",
|
|
11415
|
-
"tags": [
|
|
11416
|
-
"organizations"
|
|
11417
|
-
],
|
|
11418
|
-
"security": [
|
|
11419
|
-
{
|
|
11420
|
-
"user": []
|
|
11421
|
-
}
|
|
11422
|
-
],
|
|
11423
|
-
"parameters": [
|
|
11424
|
-
{
|
|
11425
|
-
"$ref": "#/components/parameters/organizationId"
|
|
11426
|
-
},
|
|
11427
|
-
{
|
|
11428
|
-
"name": "sourceId",
|
|
11429
|
-
"in": "path",
|
|
11430
|
-
"required": true,
|
|
11431
|
-
"description": "The id of the content audit source",
|
|
11432
11581
|
"schema": {
|
|
11433
11582
|
"type": "string"
|
|
11434
11583
|
}
|
|
11435
11584
|
},
|
|
11436
11585
|
{
|
|
11437
|
-
"
|
|
11438
|
-
}
|
|
11439
|
-
],
|
|
11440
|
-
"responses": {
|
|
11441
|
-
"200": {
|
|
11442
|
-
"description": "OK",
|
|
11443
|
-
"content": {
|
|
11444
|
-
"application/json": {
|
|
11445
|
-
"schema": {
|
|
11446
|
-
"$ref": "#/components/schemas/Document"
|
|
11447
|
-
}
|
|
11448
|
-
}
|
|
11449
|
-
}
|
|
11450
|
-
},
|
|
11451
|
-
"404": {
|
|
11452
|
-
"description": "No matching content source found for given ID",
|
|
11453
|
-
"$ref": "#/components/responses/NotFoundError"
|
|
11454
|
-
},
|
|
11455
|
-
"default": {
|
|
11456
|
-
"$ref": "#/components/responses/UnexpectedError"
|
|
11457
|
-
}
|
|
11458
|
-
}
|
|
11459
|
-
}
|
|
11460
|
-
},
|
|
11461
|
-
"/orgs/{organizationId}/sites": {
|
|
11462
|
-
"get": {
|
|
11463
|
-
"operationId": "listSites",
|
|
11464
|
-
"summary": "List all the sites created in an organization",
|
|
11465
|
-
"tags": [
|
|
11466
|
-
"sites"
|
|
11467
|
-
],
|
|
11468
|
-
"security": [
|
|
11469
|
-
{
|
|
11470
|
-
"user": []
|
|
11471
|
-
}
|
|
11472
|
-
],
|
|
11473
|
-
"parameters": [
|
|
11474
|
-
{
|
|
11475
|
-
"$ref": "#/components/parameters/organizationId"
|
|
11476
|
-
},
|
|
11477
|
-
{
|
|
11478
|
-
"$ref": "#/components/parameters/listPage"
|
|
11479
|
-
},
|
|
11480
|
-
{
|
|
11481
|
-
"$ref": "#/components/parameters/listLimit"
|
|
11482
|
-
},
|
|
11483
|
-
{
|
|
11484
|
-
"name": "space",
|
|
11586
|
+
"name": "published",
|
|
11485
11587
|
"in": "query",
|
|
11486
|
-
"description": "
|
|
11588
|
+
"description": "Filter sites by their published status",
|
|
11487
11589
|
"required": false,
|
|
11488
11590
|
"schema": {
|
|
11489
|
-
"type": "
|
|
11591
|
+
"type": "boolean"
|
|
11490
11592
|
}
|
|
11491
11593
|
}
|
|
11492
11594
|
],
|
|
@@ -11605,6 +11707,49 @@
|
|
|
11605
11707
|
}
|
|
11606
11708
|
}
|
|
11607
11709
|
},
|
|
11710
|
+
"/orgs/{organizationId}/sites/publishing/checkout": {
|
|
11711
|
+
"get": {
|
|
11712
|
+
"operationId": "previewSitePublishCheckout",
|
|
11713
|
+
"summary": "Preview checkout information upon publishing a site in the organization.",
|
|
11714
|
+
"tags": [
|
|
11715
|
+
"sites"
|
|
11716
|
+
],
|
|
11717
|
+
"security": [
|
|
11718
|
+
{
|
|
11719
|
+
"user-internal": []
|
|
11720
|
+
}
|
|
11721
|
+
],
|
|
11722
|
+
"parameters": [
|
|
11723
|
+
{
|
|
11724
|
+
"$ref": "#/components/parameters/organizationId"
|
|
11725
|
+
},
|
|
11726
|
+
{
|
|
11727
|
+
"in": "query",
|
|
11728
|
+
"name": "plan",
|
|
11729
|
+
"description": "The plan of the site to preview the checkout information for.",
|
|
11730
|
+
"required": true,
|
|
11731
|
+
"schema": {
|
|
11732
|
+
"$ref": "#/components/schemas/SiteType"
|
|
11733
|
+
}
|
|
11734
|
+
}
|
|
11735
|
+
],
|
|
11736
|
+
"responses": {
|
|
11737
|
+
"200": {
|
|
11738
|
+
"description": "OK",
|
|
11739
|
+
"content": {
|
|
11740
|
+
"application/json": {
|
|
11741
|
+
"schema": {
|
|
11742
|
+
"$ref": "#/components/schemas/BillingOperationPreviewResponse"
|
|
11743
|
+
}
|
|
11744
|
+
}
|
|
11745
|
+
}
|
|
11746
|
+
},
|
|
11747
|
+
"default": {
|
|
11748
|
+
"$ref": "#/components/responses/UnexpectedError"
|
|
11749
|
+
}
|
|
11750
|
+
}
|
|
11751
|
+
}
|
|
11752
|
+
},
|
|
11608
11753
|
"/orgs/{organizationId}/sites/{siteId}": {
|
|
11609
11754
|
"get": {
|
|
11610
11755
|
"operationId": "getSiteById",
|
|
@@ -12159,143 +12304,24 @@
|
|
|
12159
12304
|
"description": "The site plan was successfully updated.",
|
|
12160
12305
|
"type": "string",
|
|
12161
12306
|
"enum": [
|
|
12162
|
-
"success"
|
|
12163
|
-
]
|
|
12164
|
-
}
|
|
12165
|
-
}
|
|
12166
|
-
}
|
|
12167
|
-
]
|
|
12168
|
-
}
|
|
12169
|
-
}
|
|
12170
|
-
}
|
|
12171
|
-
},
|
|
12172
|
-
"default": {
|
|
12173
|
-
"$ref": "#/components/responses/UnexpectedError"
|
|
12174
|
-
}
|
|
12175
|
-
}
|
|
12176
|
-
},
|
|
12177
|
-
"get": {
|
|
12178
|
-
"operationId": "previewSitePlanUpdate",
|
|
12179
|
-
"summary": "Preview an upgrade to a site plan, returning checkout information.",
|
|
12180
|
-
"tags": [
|
|
12181
|
-
"sites"
|
|
12182
|
-
],
|
|
12183
|
-
"security": [
|
|
12184
|
-
{
|
|
12185
|
-
"user-internal": []
|
|
12186
|
-
}
|
|
12187
|
-
],
|
|
12188
|
-
"parameters": [
|
|
12189
|
-
{
|
|
12190
|
-
"$ref": "#/components/parameters/organizationId"
|
|
12191
|
-
},
|
|
12192
|
-
{
|
|
12193
|
-
"$ref": "#/components/parameters/siteId"
|
|
12194
|
-
},
|
|
12195
|
-
{
|
|
12196
|
-
"name": "plan",
|
|
12197
|
-
"in": "query",
|
|
12198
|
-
"required": true,
|
|
12199
|
-
"description": "The desired site plan",
|
|
12200
|
-
"schema": {
|
|
12201
|
-
"$ref": "#/components/schemas/SiteType"
|
|
12202
|
-
}
|
|
12203
|
-
}
|
|
12204
|
-
],
|
|
12205
|
-
"responses": {
|
|
12206
|
-
"200": {
|
|
12207
|
-
"description": "OK",
|
|
12208
|
-
"content": {
|
|
12209
|
-
"application/json": {
|
|
12210
|
-
"schema": {
|
|
12211
|
-
"oneOf": [
|
|
12212
|
-
{
|
|
12213
|
-
"type": "object",
|
|
12214
|
-
"properties": {
|
|
12215
|
-
"type": {
|
|
12216
|
-
"description": "User can go ahead with the update without any billing.",
|
|
12217
|
-
"type": "string",
|
|
12218
|
-
"enum": [
|
|
12219
|
-
"update"
|
|
12220
|
-
]
|
|
12221
|
-
}
|
|
12222
|
-
},
|
|
12223
|
-
"required": [
|
|
12224
|
-
"type"
|
|
12225
|
-
]
|
|
12226
|
-
},
|
|
12227
|
-
{
|
|
12228
|
-
"type": "object",
|
|
12229
|
-
"properties": {
|
|
12230
|
-
"type": {
|
|
12231
|
-
"description": "User must checkout to complete the update.",
|
|
12232
|
-
"type": "string",
|
|
12233
|
-
"enum": [
|
|
12234
|
-
"checkout"
|
|
12235
|
-
]
|
|
12236
|
-
}
|
|
12237
|
-
},
|
|
12238
|
-
"required": [
|
|
12239
|
-
"type"
|
|
12240
|
-
]
|
|
12241
|
-
},
|
|
12242
|
-
{
|
|
12243
|
-
"type": "object",
|
|
12244
|
-
"properties": {
|
|
12245
|
-
"type": {
|
|
12246
|
-
"description": "User cannot proceed with the update due to lack of permissions.",
|
|
12247
|
-
"type": "string",
|
|
12248
|
-
"enum": [
|
|
12249
|
-
"no-permissions"
|
|
12250
|
-
]
|
|
12251
|
-
}
|
|
12252
|
-
},
|
|
12253
|
-
"required": [
|
|
12254
|
-
"type"
|
|
12255
|
-
]
|
|
12256
|
-
},
|
|
12257
|
-
{
|
|
12258
|
-
"type": "object",
|
|
12259
|
-
"properties": {
|
|
12260
|
-
"type": {
|
|
12261
|
-
"description": "User needs to go through the legacy update flow.",
|
|
12262
|
-
"type": "string",
|
|
12263
|
-
"enum": [
|
|
12264
|
-
"legacy-upgrade"
|
|
12265
|
-
]
|
|
12266
|
-
},
|
|
12267
|
-
"plan": {
|
|
12268
|
-
"description": "The plan the user must upgrade to.",
|
|
12269
|
-
"$ref": "#/components/schemas/BillingProduct"
|
|
12270
|
-
},
|
|
12271
|
-
"invoice": {
|
|
12272
|
-
"$ref": "#/components/schemas/BillingInvoicePreview"
|
|
12273
|
-
}
|
|
12274
|
-
},
|
|
12275
|
-
"required": [
|
|
12276
|
-
"type",
|
|
12277
|
-
"plan"
|
|
12278
|
-
]
|
|
12307
|
+
"success"
|
|
12308
|
+
]
|
|
12309
|
+
}
|
|
12310
|
+
}
|
|
12279
12311
|
}
|
|
12280
12312
|
]
|
|
12281
12313
|
}
|
|
12282
12314
|
}
|
|
12283
12315
|
}
|
|
12284
12316
|
},
|
|
12285
|
-
"404": {
|
|
12286
|
-
"description": "No matching site found",
|
|
12287
|
-
"$ref": "#/components/responses/NotFoundError"
|
|
12288
|
-
},
|
|
12289
12317
|
"default": {
|
|
12290
12318
|
"$ref": "#/components/responses/UnexpectedError"
|
|
12291
12319
|
}
|
|
12292
12320
|
}
|
|
12293
|
-
}
|
|
12294
|
-
},
|
|
12295
|
-
"/orgs/{organizationId}/sites/{siteId}/publishing/checkout": {
|
|
12321
|
+
},
|
|
12296
12322
|
"get": {
|
|
12297
|
-
"operationId": "
|
|
12298
|
-
"summary": "Preview
|
|
12323
|
+
"operationId": "previewSitePlanUpdate",
|
|
12324
|
+
"summary": "Preview an upgrade to a site plan, returning checkout information.",
|
|
12299
12325
|
"tags": [
|
|
12300
12326
|
"sites"
|
|
12301
12327
|
],
|
|
@@ -12310,6 +12336,15 @@
|
|
|
12310
12336
|
},
|
|
12311
12337
|
{
|
|
12312
12338
|
"$ref": "#/components/parameters/siteId"
|
|
12339
|
+
},
|
|
12340
|
+
{
|
|
12341
|
+
"name": "plan",
|
|
12342
|
+
"in": "query",
|
|
12343
|
+
"required": true,
|
|
12344
|
+
"description": "The desired site plan",
|
|
12345
|
+
"schema": {
|
|
12346
|
+
"$ref": "#/components/schemas/SiteType"
|
|
12347
|
+
}
|
|
12313
12348
|
}
|
|
12314
12349
|
],
|
|
12315
12350
|
"responses": {
|
|
@@ -12318,53 +12353,7 @@
|
|
|
12318
12353
|
"content": {
|
|
12319
12354
|
"application/json": {
|
|
12320
12355
|
"schema": {
|
|
12321
|
-
"
|
|
12322
|
-
{
|
|
12323
|
-
"type": "object",
|
|
12324
|
-
"properties": {
|
|
12325
|
-
"type": {
|
|
12326
|
-
"description": "User can publish the site without any billing.",
|
|
12327
|
-
"type": "string",
|
|
12328
|
-
"enum": [
|
|
12329
|
-
"publish"
|
|
12330
|
-
]
|
|
12331
|
-
}
|
|
12332
|
-
},
|
|
12333
|
-
"required": [
|
|
12334
|
-
"type"
|
|
12335
|
-
]
|
|
12336
|
-
},
|
|
12337
|
-
{
|
|
12338
|
-
"type": "object",
|
|
12339
|
-
"properties": {
|
|
12340
|
-
"type": {
|
|
12341
|
-
"description": "User must complete a checkout before publishing.",
|
|
12342
|
-
"type": "string",
|
|
12343
|
-
"enum": [
|
|
12344
|
-
"checkout"
|
|
12345
|
-
]
|
|
12346
|
-
}
|
|
12347
|
-
},
|
|
12348
|
-
"required": [
|
|
12349
|
-
"type"
|
|
12350
|
-
]
|
|
12351
|
-
},
|
|
12352
|
-
{
|
|
12353
|
-
"type": "object",
|
|
12354
|
-
"properties": {
|
|
12355
|
-
"type": {
|
|
12356
|
-
"description": "User cannot publish due to lack of permissions.",
|
|
12357
|
-
"type": "string",
|
|
12358
|
-
"enum": [
|
|
12359
|
-
"no-permissions"
|
|
12360
|
-
]
|
|
12361
|
-
}
|
|
12362
|
-
},
|
|
12363
|
-
"required": [
|
|
12364
|
-
"type"
|
|
12365
|
-
]
|
|
12366
|
-
}
|
|
12367
|
-
]
|
|
12356
|
+
"$ref": "#/components/schemas/BillingOperationPreviewResponse"
|
|
12368
12357
|
}
|
|
12369
12358
|
}
|
|
12370
12359
|
}
|
|
@@ -12886,6 +12875,14 @@
|
|
|
12886
12875
|
},
|
|
12887
12876
|
{
|
|
12888
12877
|
"$ref": "#/components/parameters/listLimit"
|
|
12878
|
+
},
|
|
12879
|
+
{
|
|
12880
|
+
"name": "default",
|
|
12881
|
+
"in": "query",
|
|
12882
|
+
"description": "If true, only the default site space will be returned. If false, only the non-default site spaces are returned. If undefined, all site spaces are returned.",
|
|
12883
|
+
"schema": {
|
|
12884
|
+
"type": "boolean"
|
|
12885
|
+
}
|
|
12889
12886
|
}
|
|
12890
12887
|
],
|
|
12891
12888
|
"responses": {
|
|
@@ -13534,6 +13531,95 @@
|
|
|
13534
13531
|
}
|
|
13535
13532
|
}
|
|
13536
13533
|
},
|
|
13534
|
+
"/orgs/{organizationId}/sites/{siteId}/ads": {
|
|
13535
|
+
"post": {
|
|
13536
|
+
"operationId": "updateSiteAdsById",
|
|
13537
|
+
"summary": "Enable, disable, or submit for review Ads on a site.",
|
|
13538
|
+
"tags": [
|
|
13539
|
+
"sites"
|
|
13540
|
+
],
|
|
13541
|
+
"security": [
|
|
13542
|
+
{
|
|
13543
|
+
"user": []
|
|
13544
|
+
}
|
|
13545
|
+
],
|
|
13546
|
+
"parameters": [
|
|
13547
|
+
{
|
|
13548
|
+
"$ref": "#/components/parameters/organizationId"
|
|
13549
|
+
},
|
|
13550
|
+
{
|
|
13551
|
+
"$ref": "#/components/parameters/siteId"
|
|
13552
|
+
}
|
|
13553
|
+
],
|
|
13554
|
+
"requestBody": {
|
|
13555
|
+
"required": false,
|
|
13556
|
+
"content": {
|
|
13557
|
+
"application/json": {
|
|
13558
|
+
"schema": {
|
|
13559
|
+
"type": "object",
|
|
13560
|
+
"properties": {
|
|
13561
|
+
"status": {
|
|
13562
|
+
"type": "string",
|
|
13563
|
+
"enum": [
|
|
13564
|
+
"in-review",
|
|
13565
|
+
"disabled"
|
|
13566
|
+
]
|
|
13567
|
+
},
|
|
13568
|
+
"topic": {
|
|
13569
|
+
"$ref": "#/components/schemas/SiteAdsTopic"
|
|
13570
|
+
}
|
|
13571
|
+
}
|
|
13572
|
+
}
|
|
13573
|
+
}
|
|
13574
|
+
}
|
|
13575
|
+
},
|
|
13576
|
+
"responses": {
|
|
13577
|
+
"204": {
|
|
13578
|
+
"description": "OK"
|
|
13579
|
+
},
|
|
13580
|
+
"default": {
|
|
13581
|
+
"$ref": "#/components/responses/UnexpectedError"
|
|
13582
|
+
}
|
|
13583
|
+
}
|
|
13584
|
+
}
|
|
13585
|
+
},
|
|
13586
|
+
"/orgs/{organizationId}/sites/{siteId}/ads/stats": {
|
|
13587
|
+
"post": {
|
|
13588
|
+
"operationId": "getSiteAdsStatsById",
|
|
13589
|
+
"summary": "Get the stats about Ads on a site.",
|
|
13590
|
+
"tags": [
|
|
13591
|
+
"sites"
|
|
13592
|
+
],
|
|
13593
|
+
"security": [
|
|
13594
|
+
{
|
|
13595
|
+
"user": []
|
|
13596
|
+
}
|
|
13597
|
+
],
|
|
13598
|
+
"parameters": [
|
|
13599
|
+
{
|
|
13600
|
+
"$ref": "#/components/parameters/organizationId"
|
|
13601
|
+
},
|
|
13602
|
+
{
|
|
13603
|
+
"$ref": "#/components/parameters/siteId"
|
|
13604
|
+
}
|
|
13605
|
+
],
|
|
13606
|
+
"responses": {
|
|
13607
|
+
"200": {
|
|
13608
|
+
"description": "OK",
|
|
13609
|
+
"content": {
|
|
13610
|
+
"application/json": {
|
|
13611
|
+
"schema": {
|
|
13612
|
+
"$ref": "#/components/schemas/SiteAdsStats"
|
|
13613
|
+
}
|
|
13614
|
+
}
|
|
13615
|
+
}
|
|
13616
|
+
},
|
|
13617
|
+
"default": {
|
|
13618
|
+
"$ref": "#/components/responses/UnexpectedError"
|
|
13619
|
+
}
|
|
13620
|
+
}
|
|
13621
|
+
}
|
|
13622
|
+
},
|
|
13537
13623
|
"/custom-hostnames/{hostname}": {
|
|
13538
13624
|
"get": {
|
|
13539
13625
|
"operationId": "getCustomHostname",
|
|
@@ -13704,48 +13790,217 @@
|
|
|
13704
13790
|
}
|
|
13705
13791
|
}
|
|
13706
13792
|
},
|
|
13707
|
-
"/custom-hostnames/{hostname}/test": {
|
|
13708
|
-
"post": {
|
|
13709
|
-
"operationId": "testCustomHostname",
|
|
13710
|
-
"summary": "Test if a custom hostname can be used for a content or organization.",
|
|
13793
|
+
"/custom-hostnames/{hostname}/test": {
|
|
13794
|
+
"post": {
|
|
13795
|
+
"operationId": "testCustomHostname",
|
|
13796
|
+
"summary": "Test if a custom hostname can be used for a content or organization.",
|
|
13797
|
+
"tags": [
|
|
13798
|
+
"custom-hostnames"
|
|
13799
|
+
],
|
|
13800
|
+
"security": [
|
|
13801
|
+
{
|
|
13802
|
+
"user-internal": []
|
|
13803
|
+
}
|
|
13804
|
+
],
|
|
13805
|
+
"parameters": [
|
|
13806
|
+
{
|
|
13807
|
+
"$ref": "#/components/parameters/hostname"
|
|
13808
|
+
}
|
|
13809
|
+
],
|
|
13810
|
+
"requestBody": {
|
|
13811
|
+
"content": {
|
|
13812
|
+
"application/json": {
|
|
13813
|
+
"schema": {
|
|
13814
|
+
"type": "object",
|
|
13815
|
+
"properties": {
|
|
13816
|
+
"target": {
|
|
13817
|
+
"oneOf": [
|
|
13818
|
+
{
|
|
13819
|
+
"$ref": "#/components/schemas/OrganizationPointer"
|
|
13820
|
+
},
|
|
13821
|
+
{
|
|
13822
|
+
"$ref": "#/components/schemas/SpacePointer"
|
|
13823
|
+
},
|
|
13824
|
+
{
|
|
13825
|
+
"$ref": "#/components/schemas/CollectionPointer"
|
|
13826
|
+
},
|
|
13827
|
+
{
|
|
13828
|
+
"$ref": "#/components/schemas/SitePointer"
|
|
13829
|
+
}
|
|
13830
|
+
]
|
|
13831
|
+
}
|
|
13832
|
+
},
|
|
13833
|
+
"required": [
|
|
13834
|
+
"target"
|
|
13835
|
+
]
|
|
13836
|
+
}
|
|
13837
|
+
}
|
|
13838
|
+
}
|
|
13839
|
+
},
|
|
13840
|
+
"responses": {
|
|
13841
|
+
"204": {
|
|
13842
|
+
"description": "The custom hostname is available and valid."
|
|
13843
|
+
},
|
|
13844
|
+
"400": {
|
|
13845
|
+
"description": "The custom hostname is invalid.",
|
|
13846
|
+
"$ref": "#/components/responses/BadRequestError"
|
|
13847
|
+
},
|
|
13848
|
+
"409": {
|
|
13849
|
+
"description": "The custom hostname is already configured for this target or a different one.",
|
|
13850
|
+
"$ref": "#/components/responses/ConflictError"
|
|
13851
|
+
},
|
|
13852
|
+
"default": {
|
|
13853
|
+
"$ref": "#/components/responses/UnexpectedError"
|
|
13854
|
+
}
|
|
13855
|
+
}
|
|
13856
|
+
}
|
|
13857
|
+
},
|
|
13858
|
+
"/ads/sites": {
|
|
13859
|
+
"get": {
|
|
13860
|
+
"operationId": "adsListSites",
|
|
13861
|
+
"summary": "List all the sites with ads configured",
|
|
13862
|
+
"tags": [
|
|
13863
|
+
"ads"
|
|
13864
|
+
],
|
|
13865
|
+
"parameters": [
|
|
13866
|
+
{
|
|
13867
|
+
"$ref": "#/components/parameters/listPage"
|
|
13868
|
+
},
|
|
13869
|
+
{
|
|
13870
|
+
"$ref": "#/components/parameters/listLimit"
|
|
13871
|
+
},
|
|
13872
|
+
{
|
|
13873
|
+
"$ref": "#/components/parameters/xGitBookPartnerKey"
|
|
13874
|
+
}
|
|
13875
|
+
],
|
|
13876
|
+
"responses": {
|
|
13877
|
+
"200": {
|
|
13878
|
+
"description": "OK",
|
|
13879
|
+
"content": {
|
|
13880
|
+
"application/json": {
|
|
13881
|
+
"schema": {
|
|
13882
|
+
"allOf": [
|
|
13883
|
+
{
|
|
13884
|
+
"$ref": "#/components/schemas/List"
|
|
13885
|
+
},
|
|
13886
|
+
{
|
|
13887
|
+
"type": "object",
|
|
13888
|
+
"required": [
|
|
13889
|
+
"items"
|
|
13890
|
+
],
|
|
13891
|
+
"properties": {
|
|
13892
|
+
"items": {
|
|
13893
|
+
"type": "array",
|
|
13894
|
+
"items": {
|
|
13895
|
+
"type": "object",
|
|
13896
|
+
"required": [
|
|
13897
|
+
"id",
|
|
13898
|
+
"url",
|
|
13899
|
+
"email",
|
|
13900
|
+
"topic"
|
|
13901
|
+
],
|
|
13902
|
+
"properties": {
|
|
13903
|
+
"id": {
|
|
13904
|
+
"type": "string"
|
|
13905
|
+
},
|
|
13906
|
+
"url": {
|
|
13907
|
+
"type": "string"
|
|
13908
|
+
},
|
|
13909
|
+
"email": {
|
|
13910
|
+
"type": "string"
|
|
13911
|
+
},
|
|
13912
|
+
"topic": {
|
|
13913
|
+
"$ref": "#/components/schemas/SiteAdsTopic"
|
|
13914
|
+
}
|
|
13915
|
+
}
|
|
13916
|
+
}
|
|
13917
|
+
}
|
|
13918
|
+
}
|
|
13919
|
+
}
|
|
13920
|
+
]
|
|
13921
|
+
}
|
|
13922
|
+
}
|
|
13923
|
+
}
|
|
13924
|
+
},
|
|
13925
|
+
"default": {
|
|
13926
|
+
"$ref": "#/components/responses/UnexpectedError"
|
|
13927
|
+
}
|
|
13928
|
+
}
|
|
13929
|
+
}
|
|
13930
|
+
},
|
|
13931
|
+
"/ads/sites/{siteId}": {
|
|
13932
|
+
"patch": {
|
|
13933
|
+
"operationId": "adsUpdateSite",
|
|
13934
|
+
"summary": "Update the Ads configuration for a site",
|
|
13711
13935
|
"tags": [
|
|
13712
|
-
"
|
|
13713
|
-
],
|
|
13714
|
-
"security": [
|
|
13715
|
-
{
|
|
13716
|
-
"user-internal": []
|
|
13717
|
-
}
|
|
13936
|
+
"ads"
|
|
13718
13937
|
],
|
|
13719
13938
|
"parameters": [
|
|
13720
13939
|
{
|
|
13721
|
-
"$ref": "#/components/parameters/
|
|
13940
|
+
"$ref": "#/components/parameters/siteId"
|
|
13941
|
+
},
|
|
13942
|
+
{
|
|
13943
|
+
"$ref": "#/components/parameters/xGitBookPartnerKey"
|
|
13722
13944
|
}
|
|
13723
13945
|
],
|
|
13724
13946
|
"requestBody": {
|
|
13947
|
+
"required": true,
|
|
13725
13948
|
"content": {
|
|
13726
13949
|
"application/json": {
|
|
13727
13950
|
"schema": {
|
|
13728
|
-
"
|
|
13729
|
-
|
|
13730
|
-
|
|
13731
|
-
"
|
|
13732
|
-
|
|
13733
|
-
|
|
13734
|
-
|
|
13735
|
-
|
|
13736
|
-
|
|
13951
|
+
"oneOf": [
|
|
13952
|
+
{
|
|
13953
|
+
"type": "object",
|
|
13954
|
+
"required": [
|
|
13955
|
+
"status",
|
|
13956
|
+
"zoneId",
|
|
13957
|
+
"reportingId"
|
|
13958
|
+
],
|
|
13959
|
+
"properties": {
|
|
13960
|
+
"status": {
|
|
13961
|
+
"type": "string",
|
|
13962
|
+
"enum": [
|
|
13963
|
+
"live"
|
|
13964
|
+
]
|
|
13737
13965
|
},
|
|
13738
|
-
{
|
|
13739
|
-
"
|
|
13966
|
+
"zoneId": {
|
|
13967
|
+
"type": "string",
|
|
13968
|
+
"description": "ID of the zone"
|
|
13740
13969
|
},
|
|
13741
|
-
{
|
|
13742
|
-
"
|
|
13970
|
+
"reportingId": {
|
|
13971
|
+
"type": "string",
|
|
13972
|
+
"description": "ID to fetch reporting data"
|
|
13743
13973
|
}
|
|
13744
|
-
|
|
13974
|
+
}
|
|
13975
|
+
},
|
|
13976
|
+
{
|
|
13977
|
+
"type": "object",
|
|
13978
|
+
"required": [
|
|
13979
|
+
"status"
|
|
13980
|
+
],
|
|
13981
|
+
"properties": {
|
|
13982
|
+
"status": {
|
|
13983
|
+
"type": "string",
|
|
13984
|
+
"enum": [
|
|
13985
|
+
"rejected"
|
|
13986
|
+
]
|
|
13987
|
+
}
|
|
13988
|
+
}
|
|
13989
|
+
},
|
|
13990
|
+
{
|
|
13991
|
+
"type": "object",
|
|
13992
|
+
"required": [
|
|
13993
|
+
"status"
|
|
13994
|
+
],
|
|
13995
|
+
"properties": {
|
|
13996
|
+
"status": {
|
|
13997
|
+
"type": "string",
|
|
13998
|
+
"enum": [
|
|
13999
|
+
"pending"
|
|
14000
|
+
]
|
|
14001
|
+
}
|
|
14002
|
+
}
|
|
13745
14003
|
}
|
|
13746
|
-
},
|
|
13747
|
-
"required": [
|
|
13748
|
-
"target"
|
|
13749
14004
|
]
|
|
13750
14005
|
}
|
|
13751
14006
|
}
|
|
@@ -13753,15 +14008,7 @@
|
|
|
13753
14008
|
},
|
|
13754
14009
|
"responses": {
|
|
13755
14010
|
"204": {
|
|
13756
|
-
"description": "
|
|
13757
|
-
},
|
|
13758
|
-
"400": {
|
|
13759
|
-
"description": "The custom hostname is invalid.",
|
|
13760
|
-
"$ref": "#/components/responses/BadRequestError"
|
|
13761
|
-
},
|
|
13762
|
-
"409": {
|
|
13763
|
-
"description": "The custom hostname is already configured for this target or a different one.",
|
|
13764
|
-
"$ref": "#/components/responses/ConflictError"
|
|
14011
|
+
"description": "OK"
|
|
13765
14012
|
},
|
|
13766
14013
|
"default": {
|
|
13767
14014
|
"$ref": "#/components/responses/UnexpectedError"
|
|
@@ -13971,14 +14218,7 @@
|
|
|
13971
14218
|
"content": {
|
|
13972
14219
|
"application/json": {
|
|
13973
14220
|
"schema": {
|
|
13974
|
-
"
|
|
13975
|
-
{
|
|
13976
|
-
"$ref": "#/components/schemas/PublishedContentLookup"
|
|
13977
|
-
},
|
|
13978
|
-
{
|
|
13979
|
-
"$ref": "#/components/schemas/PublishedSiteContentLookup"
|
|
13980
|
-
}
|
|
13981
|
-
]
|
|
14221
|
+
"$ref": "#/components/schemas/PublishedSiteContentLookup"
|
|
13982
14222
|
}
|
|
13983
14223
|
}
|
|
13984
14224
|
}
|
|
@@ -14083,6 +14323,15 @@
|
|
|
14083
14323
|
"type": "string"
|
|
14084
14324
|
}
|
|
14085
14325
|
},
|
|
14326
|
+
"teamId": {
|
|
14327
|
+
"name": "teamId",
|
|
14328
|
+
"in": "path",
|
|
14329
|
+
"required": true,
|
|
14330
|
+
"description": "The unique ID of the Team",
|
|
14331
|
+
"schema": {
|
|
14332
|
+
"type": "string"
|
|
14333
|
+
}
|
|
14334
|
+
},
|
|
14086
14335
|
"revisionMetadata": {
|
|
14087
14336
|
"name": "metadata",
|
|
14088
14337
|
"in": "query",
|
|
@@ -14284,20 +14533,20 @@
|
|
|
14284
14533
|
"type": "string"
|
|
14285
14534
|
}
|
|
14286
14535
|
},
|
|
14287
|
-
"
|
|
14288
|
-
"name": "
|
|
14536
|
+
"inviteId": {
|
|
14537
|
+
"name": "inviteId",
|
|
14289
14538
|
"in": "path",
|
|
14290
14539
|
"required": true,
|
|
14291
|
-
"description": "The unique
|
|
14540
|
+
"description": "The unique id of the invite",
|
|
14292
14541
|
"schema": {
|
|
14293
14542
|
"type": "string"
|
|
14294
14543
|
}
|
|
14295
14544
|
},
|
|
14296
|
-
"
|
|
14297
|
-
"name": "
|
|
14545
|
+
"samlProviderId": {
|
|
14546
|
+
"name": "samlProviderId",
|
|
14298
14547
|
"in": "path",
|
|
14299
14548
|
"required": true,
|
|
14300
|
-
"description": "The unique id of the
|
|
14549
|
+
"description": "The unique id of the SAML provider",
|
|
14301
14550
|
"schema": {
|
|
14302
14551
|
"type": "string"
|
|
14303
14552
|
}
|
|
@@ -14338,15 +14587,6 @@
|
|
|
14338
14587
|
"type": "string"
|
|
14339
14588
|
}
|
|
14340
14589
|
},
|
|
14341
|
-
"relationId": {
|
|
14342
|
-
"name": "relationId",
|
|
14343
|
-
"in": "path",
|
|
14344
|
-
"required": true,
|
|
14345
|
-
"description": "The id of the content audit relation",
|
|
14346
|
-
"schema": {
|
|
14347
|
-
"type": "string"
|
|
14348
|
-
}
|
|
14349
|
-
},
|
|
14350
14590
|
"siteCustomizationUnmasked": {
|
|
14351
14591
|
"name": "unmasked",
|
|
14352
14592
|
"in": "query",
|
|
@@ -14375,6 +14615,14 @@
|
|
|
14375
14615
|
"type": "string"
|
|
14376
14616
|
}
|
|
14377
14617
|
},
|
|
14618
|
+
"xGitBookPartnerKey": {
|
|
14619
|
+
"in": "header",
|
|
14620
|
+
"name": "X-GitBook-Partner-Key",
|
|
14621
|
+
"schema": {
|
|
14622
|
+
"type": "string"
|
|
14623
|
+
},
|
|
14624
|
+
"required": true
|
|
14625
|
+
},
|
|
14378
14626
|
"pageFormat": {
|
|
14379
14627
|
"$ref": "#/components/parameters/documentFormat"
|
|
14380
14628
|
},
|
|
@@ -18977,6 +19225,26 @@
|
|
|
18977
19225
|
"referrer"
|
|
18978
19226
|
]
|
|
18979
19227
|
},
|
|
19228
|
+
"InviteEmailsUsersTeamsToSpace": {
|
|
19229
|
+
"type": "object",
|
|
19230
|
+
"properties": {
|
|
19231
|
+
"teams": {
|
|
19232
|
+
"type": "array",
|
|
19233
|
+
"items": {
|
|
19234
|
+
"type": "string",
|
|
19235
|
+
"description": "The ID of the team to be invited"
|
|
19236
|
+
}
|
|
19237
|
+
},
|
|
19238
|
+
"role": {
|
|
19239
|
+
"description": "Role to set on the team.",
|
|
19240
|
+
"$ref": "#/components/schemas/MemberRoleOrGuest"
|
|
19241
|
+
}
|
|
19242
|
+
},
|
|
19243
|
+
"required": [
|
|
19244
|
+
"teams",
|
|
19245
|
+
"role"
|
|
19246
|
+
]
|
|
19247
|
+
},
|
|
18980
19248
|
"RevisionPageGroup": {
|
|
18981
19249
|
"allOf": [
|
|
18982
19250
|
{
|
|
@@ -19582,10 +19850,6 @@
|
|
|
19582
19850
|
"description": "If true, the organization is configured to use all our AI features.",
|
|
19583
19851
|
"type": "boolean"
|
|
19584
19852
|
},
|
|
19585
|
-
"aiInsights": {
|
|
19586
|
-
"description": "If true, the organization is configured to run content audits on any space update",
|
|
19587
|
-
"type": "boolean"
|
|
19588
|
-
},
|
|
19589
19853
|
"urls": {
|
|
19590
19854
|
"type": "object",
|
|
19591
19855
|
"description": "URLs associated with the object",
|
|
@@ -20583,6 +20847,19 @@
|
|
|
20583
20847
|
"description": "Title describing the synced block.",
|
|
20584
20848
|
"maxLength": 100
|
|
20585
20849
|
},
|
|
20850
|
+
"usage": {
|
|
20851
|
+
"type": "object",
|
|
20852
|
+
"description": "Usage of synced block",
|
|
20853
|
+
"properties": {
|
|
20854
|
+
"spaces": {
|
|
20855
|
+
"description": "Number of spaces where the synced block is used in",
|
|
20856
|
+
"type": "integer"
|
|
20857
|
+
}
|
|
20858
|
+
},
|
|
20859
|
+
"required": [
|
|
20860
|
+
"spaces"
|
|
20861
|
+
]
|
|
20862
|
+
},
|
|
20586
20863
|
"urls": {
|
|
20587
20864
|
"type": "object",
|
|
20588
20865
|
"description": "URLs associated with the object",
|
|
@@ -20602,6 +20879,7 @@
|
|
|
20602
20879
|
"organization",
|
|
20603
20880
|
"source",
|
|
20604
20881
|
"createdAt",
|
|
20882
|
+
"usage",
|
|
20605
20883
|
"urls"
|
|
20606
20884
|
]
|
|
20607
20885
|
},
|
|
@@ -21859,6 +22137,7 @@
|
|
|
21859
22137
|
"zh",
|
|
21860
22138
|
"ja",
|
|
21861
22139
|
"de",
|
|
22140
|
+
"nl",
|
|
21862
22141
|
"pt-br"
|
|
21863
22142
|
]
|
|
21864
22143
|
},
|
|
@@ -22196,46 +22475,6 @@
|
|
|
22196
22475
|
"socialPreview"
|
|
22197
22476
|
]
|
|
22198
22477
|
},
|
|
22199
|
-
"ContentPublishingAuth": {
|
|
22200
|
-
"type": "object",
|
|
22201
|
-
"properties": {
|
|
22202
|
-
"object": {
|
|
22203
|
-
"type": "string",
|
|
22204
|
-
"description": "Type of Object, always equals to \"publishing-auth\"",
|
|
22205
|
-
"enum": [
|
|
22206
|
-
"publishing-auth"
|
|
22207
|
-
]
|
|
22208
|
-
},
|
|
22209
|
-
"id": {
|
|
22210
|
-
"type": "string",
|
|
22211
|
-
"description": "Unique identifier for the content."
|
|
22212
|
-
},
|
|
22213
|
-
"privateKey": {
|
|
22214
|
-
"type": "string",
|
|
22215
|
-
"description": "Private key used to sign JWT tokens."
|
|
22216
|
-
},
|
|
22217
|
-
"fallbackURL": {
|
|
22218
|
-
"type": "string",
|
|
22219
|
-
"format": "uri",
|
|
22220
|
-
"description": "URL to redirect to when the visitor auth secret is invalid."
|
|
22221
|
-
}
|
|
22222
|
-
},
|
|
22223
|
-
"required": [
|
|
22224
|
-
"object",
|
|
22225
|
-
"id",
|
|
22226
|
-
"privateKey"
|
|
22227
|
-
]
|
|
22228
|
-
},
|
|
22229
|
-
"UpdateContentPublishingAuth": {
|
|
22230
|
-
"type": "object",
|
|
22231
|
-
"properties": {
|
|
22232
|
-
"fallbackURL": {
|
|
22233
|
-
"type": "string",
|
|
22234
|
-
"format": "uri",
|
|
22235
|
-
"description": "A fallback URL that will be used if authentication fails."
|
|
22236
|
-
}
|
|
22237
|
-
}
|
|
22238
|
-
},
|
|
22239
22478
|
"SpaceIntegrationBlocks": {
|
|
22240
22479
|
"type": "array",
|
|
22241
22480
|
"items": {
|
|
@@ -25542,6 +25781,34 @@
|
|
|
25542
25781
|
"interval": {
|
|
25543
25782
|
"$ref": "#/components/schemas/BillingInterval"
|
|
25544
25783
|
},
|
|
25784
|
+
"exclude": {
|
|
25785
|
+
"type": "object",
|
|
25786
|
+
"description": "Members to remove or sites to unpublish before upgrading",
|
|
25787
|
+
"minProperties": 1,
|
|
25788
|
+
"properties": {
|
|
25789
|
+
"members": {
|
|
25790
|
+
"type": "array",
|
|
25791
|
+
"items": {
|
|
25792
|
+
"type": "string",
|
|
25793
|
+
"description": "A list of member identifiers to be removed"
|
|
25794
|
+
}
|
|
25795
|
+
},
|
|
25796
|
+
"premiumSites": {
|
|
25797
|
+
"type": "array",
|
|
25798
|
+
"items": {
|
|
25799
|
+
"type": "string",
|
|
25800
|
+
"description": "A list of premium site identifiers to be unpublished"
|
|
25801
|
+
}
|
|
25802
|
+
},
|
|
25803
|
+
"audienceSites": {
|
|
25804
|
+
"type": "array",
|
|
25805
|
+
"items": {
|
|
25806
|
+
"type": "string",
|
|
25807
|
+
"description": "A list of audience site identifiers to be unpublished"
|
|
25808
|
+
}
|
|
25809
|
+
}
|
|
25810
|
+
}
|
|
25811
|
+
},
|
|
25545
25812
|
"reason": {
|
|
25546
25813
|
"type": "string",
|
|
25547
25814
|
"description": "Reason that triggered the billing upgrade"
|
|
@@ -25750,20 +26017,120 @@
|
|
|
25750
26017
|
"enabled": {
|
|
25751
26018
|
"type": "boolean"
|
|
25752
26019
|
},
|
|
25753
|
-
"stage": {
|
|
25754
|
-
"type": "string",
|
|
25755
|
-
"enum": [
|
|
25756
|
-
"alpha",
|
|
25757
|
-
"beta"
|
|
26020
|
+
"stage": {
|
|
26021
|
+
"type": "string",
|
|
26022
|
+
"enum": [
|
|
26023
|
+
"alpha",
|
|
26024
|
+
"beta"
|
|
26025
|
+
]
|
|
26026
|
+
}
|
|
26027
|
+
},
|
|
26028
|
+
"required": [
|
|
26029
|
+
"id",
|
|
26030
|
+
"title",
|
|
26031
|
+
"description",
|
|
26032
|
+
"enabled",
|
|
26033
|
+
"stage"
|
|
26034
|
+
]
|
|
26035
|
+
},
|
|
26036
|
+
"SAMLProviderLabel": {
|
|
26037
|
+
"type": "string",
|
|
26038
|
+
"minLength": 1,
|
|
26039
|
+
"maxLength": 30
|
|
26040
|
+
},
|
|
26041
|
+
"SAMLProviderEntityID": {
|
|
26042
|
+
"type": "string",
|
|
26043
|
+
"maxLength": 1024
|
|
26044
|
+
},
|
|
26045
|
+
"SAMLProviderCertificate": {
|
|
26046
|
+
"type": "string",
|
|
26047
|
+
"maxLength": 10000
|
|
26048
|
+
},
|
|
26049
|
+
"OrganizationSAMLProvider": {
|
|
26050
|
+
"type": "object",
|
|
26051
|
+
"properties": {
|
|
26052
|
+
"object": {
|
|
26053
|
+
"type": "string",
|
|
26054
|
+
"description": "Type of Object, always equals to \"saml-provider\"",
|
|
26055
|
+
"enum": [
|
|
26056
|
+
"saml-provider"
|
|
26057
|
+
]
|
|
26058
|
+
},
|
|
26059
|
+
"id": {
|
|
26060
|
+
"type": "string",
|
|
26061
|
+
"description": "Unique identifier for the provider."
|
|
26062
|
+
},
|
|
26063
|
+
"label": {
|
|
26064
|
+
"$ref": "#/components/schemas/SAMLProviderLabel"
|
|
26065
|
+
},
|
|
26066
|
+
"ssoURL": {
|
|
26067
|
+
"$ref": "#/components/schemas/URL"
|
|
26068
|
+
},
|
|
26069
|
+
"entityID": {
|
|
26070
|
+
"$ref": "#/components/schemas/SAMLProviderEntityID"
|
|
26071
|
+
},
|
|
26072
|
+
"certificate": {
|
|
26073
|
+
"$ref": "#/components/schemas/SAMLProviderCertificate"
|
|
26074
|
+
},
|
|
26075
|
+
"defaultTeam": {
|
|
26076
|
+
"$ref": "#/components/schemas/OrganizationTeam"
|
|
26077
|
+
},
|
|
26078
|
+
"defaultRole": {
|
|
26079
|
+
"$ref": "#/components/schemas/MemberRoleOrGuest"
|
|
26080
|
+
},
|
|
26081
|
+
"createdAt": {
|
|
26082
|
+
"description": "Date at which the provider was created.",
|
|
26083
|
+
"$ref": "#/components/schemas/Timestamp"
|
|
26084
|
+
},
|
|
26085
|
+
"service": {
|
|
26086
|
+
"description": "Metadata about the service provider.",
|
|
26087
|
+
"properties": {
|
|
26088
|
+
"acsURL": {
|
|
26089
|
+
"type": "string",
|
|
26090
|
+
"description": "Assertion Consumer Service (ACS) URL",
|
|
26091
|
+
"format": "uri"
|
|
26092
|
+
},
|
|
26093
|
+
"startURL": {
|
|
26094
|
+
"type": "string",
|
|
26095
|
+
"description": "Start URL for the Identity Provider",
|
|
26096
|
+
"format": "uri"
|
|
26097
|
+
},
|
|
26098
|
+
"entityID": {
|
|
26099
|
+
"$ref": "#/components/schemas/SAMLProviderEntityID"
|
|
26100
|
+
}
|
|
26101
|
+
},
|
|
26102
|
+
"required": [
|
|
26103
|
+
"acsURL",
|
|
26104
|
+
"startURL",
|
|
26105
|
+
"entityID"
|
|
26106
|
+
]
|
|
26107
|
+
},
|
|
26108
|
+
"urls": {
|
|
26109
|
+
"type": "object",
|
|
26110
|
+
"description": "URLs associated with the object",
|
|
26111
|
+
"properties": {
|
|
26112
|
+
"location": {
|
|
26113
|
+
"type": "string",
|
|
26114
|
+
"description": "URL of the SAML Provider in the API",
|
|
26115
|
+
"format": "uri"
|
|
26116
|
+
}
|
|
26117
|
+
},
|
|
26118
|
+
"required": [
|
|
26119
|
+
"location"
|
|
25758
26120
|
]
|
|
25759
26121
|
}
|
|
25760
26122
|
},
|
|
25761
26123
|
"required": [
|
|
26124
|
+
"object",
|
|
25762
26125
|
"id",
|
|
25763
|
-
"
|
|
25764
|
-
"
|
|
25765
|
-
"
|
|
25766
|
-
"
|
|
26126
|
+
"label",
|
|
26127
|
+
"ssoURL",
|
|
26128
|
+
"entityID",
|
|
26129
|
+
"certificate",
|
|
26130
|
+
"defaultRole",
|
|
26131
|
+
"createdAt",
|
|
26132
|
+
"service",
|
|
26133
|
+
"urls"
|
|
25767
26134
|
]
|
|
25768
26135
|
},
|
|
25769
26136
|
"OrganizationUsageSpaces": {
|
|
@@ -26321,113 +26688,13 @@
|
|
|
26321
26688
|
}
|
|
26322
26689
|
}
|
|
26323
26690
|
},
|
|
26324
|
-
"ContentAuditRelationStatus": {
|
|
26325
|
-
"description": "Status of the audit relation to filter on",
|
|
26326
|
-
"type": "string",
|
|
26327
|
-
"enum": [
|
|
26328
|
-
"pending",
|
|
26329
|
-
"rejected"
|
|
26330
|
-
]
|
|
26331
|
-
},
|
|
26332
|
-
"ContentAuditRelationType": {
|
|
26333
|
-
"description": "The type of the relation between the sources",
|
|
26334
|
-
"type": "string",
|
|
26335
|
-
"enum": [
|
|
26336
|
-
"contradiction",
|
|
26337
|
-
"duplicate"
|
|
26338
|
-
]
|
|
26339
|
-
},
|
|
26340
|
-
"ContentAuditSourceSection": {
|
|
26341
|
-
"type": "object",
|
|
26342
|
-
"description": "A GitBook section source",
|
|
26343
|
-
"properties": {
|
|
26344
|
-
"id": {
|
|
26345
|
-
"type": "string"
|
|
26346
|
-
},
|
|
26347
|
-
"type": {
|
|
26348
|
-
"type": "string",
|
|
26349
|
-
"enum": [
|
|
26350
|
-
"section"
|
|
26351
|
-
]
|
|
26352
|
-
},
|
|
26353
|
-
"space": {
|
|
26354
|
-
"$ref": "#/components/schemas/Space"
|
|
26355
|
-
},
|
|
26356
|
-
"page": {
|
|
26357
|
-
"$ref": "#/components/schemas/RevisionPageDocument"
|
|
26358
|
-
}
|
|
26359
|
-
},
|
|
26360
|
-
"required": [
|
|
26361
|
-
"id",
|
|
26362
|
-
"type",
|
|
26363
|
-
"space",
|
|
26364
|
-
"page"
|
|
26365
|
-
]
|
|
26366
|
-
},
|
|
26367
|
-
"ContentAuditSource": {
|
|
26368
|
-
"oneOf": [
|
|
26369
|
-
{
|
|
26370
|
-
"$ref": "#/components/schemas/ContentAuditSourceSection"
|
|
26371
|
-
}
|
|
26372
|
-
]
|
|
26373
|
-
},
|
|
26374
|
-
"ContentAuditRelation": {
|
|
26375
|
-
"type": "object",
|
|
26376
|
-
"description": "Content audit relation",
|
|
26377
|
-
"properties": {
|
|
26378
|
-
"id": {
|
|
26379
|
-
"type": "string"
|
|
26380
|
-
},
|
|
26381
|
-
"sources": {
|
|
26382
|
-
"description": "The sources that are related",
|
|
26383
|
-
"type": "array",
|
|
26384
|
-
"items": {
|
|
26385
|
-
"$ref": "#/components/schemas/ContentAuditSource"
|
|
26386
|
-
}
|
|
26387
|
-
},
|
|
26388
|
-
"type": {
|
|
26389
|
-
"description": "The type of the relation between the sources",
|
|
26390
|
-
"$ref": "#/components/schemas/ContentAuditRelationType"
|
|
26391
|
-
},
|
|
26392
|
-
"reason": {
|
|
26393
|
-
"type": "string",
|
|
26394
|
-
"description": "A human readable description of the reason for the relation"
|
|
26395
|
-
},
|
|
26396
|
-
"status": {
|
|
26397
|
-
"description": "The status of the relation",
|
|
26398
|
-
"$ref": "#/components/schemas/ContentAuditRelationStatus"
|
|
26399
|
-
},
|
|
26400
|
-
"createdAt": {
|
|
26401
|
-
"description": "The date at which the relation was created",
|
|
26402
|
-
"$ref": "#/components/schemas/Timestamp"
|
|
26403
|
-
}
|
|
26404
|
-
},
|
|
26405
|
-
"required": [
|
|
26406
|
-
"id",
|
|
26407
|
-
"sources",
|
|
26408
|
-
"type",
|
|
26409
|
-
"status",
|
|
26410
|
-
"createdAt"
|
|
26411
|
-
]
|
|
26412
|
-
},
|
|
26413
|
-
"ContentAuditRelationStatusUpdate": {
|
|
26414
|
-
"type": "object",
|
|
26415
|
-
"properties": {
|
|
26416
|
-
"status": {
|
|
26417
|
-
"$ref": "#/components/schemas/ContentAuditRelationStatus"
|
|
26418
|
-
}
|
|
26419
|
-
},
|
|
26420
|
-
"required": [
|
|
26421
|
-
"status"
|
|
26422
|
-
]
|
|
26423
|
-
},
|
|
26424
26691
|
"SiteType": {
|
|
26425
26692
|
"type": "string",
|
|
26426
26693
|
"description": "The type of the site",
|
|
26427
26694
|
"enum": [
|
|
26428
26695
|
"basic",
|
|
26429
|
-
"standard",
|
|
26430
26696
|
"premium",
|
|
26697
|
+
"audience",
|
|
26431
26698
|
"legacy-basic",
|
|
26432
26699
|
"legacy-premium"
|
|
26433
26700
|
]
|
|
@@ -26459,17 +26726,92 @@
|
|
|
26459
26726
|
"visitor-auth"
|
|
26460
26727
|
]
|
|
26461
26728
|
},
|
|
26462
|
-
"
|
|
26463
|
-
"type": "
|
|
26464
|
-
"description": "
|
|
26465
|
-
"
|
|
26466
|
-
"
|
|
26467
|
-
|
|
26468
|
-
|
|
26729
|
+
"SiteAdsTopic": {
|
|
26730
|
+
"type": "string",
|
|
26731
|
+
"description": "Topic of the content",
|
|
26732
|
+
"enum": [
|
|
26733
|
+
"webdev",
|
|
26734
|
+
"crypto"
|
|
26735
|
+
]
|
|
26736
|
+
},
|
|
26737
|
+
"SiteAds": {
|
|
26738
|
+
"oneOf": [
|
|
26739
|
+
{
|
|
26740
|
+
"type": "object",
|
|
26741
|
+
"required": [
|
|
26742
|
+
"status",
|
|
26743
|
+
"submittable"
|
|
26744
|
+
],
|
|
26745
|
+
"properties": {
|
|
26746
|
+
"status": {
|
|
26747
|
+
"type": "string",
|
|
26748
|
+
"enum": [
|
|
26749
|
+
"pending"
|
|
26750
|
+
]
|
|
26751
|
+
},
|
|
26752
|
+
"submittable": {
|
|
26753
|
+
"type": "boolean",
|
|
26754
|
+
"description": "True if the user can submit the site for review."
|
|
26755
|
+
}
|
|
26756
|
+
}
|
|
26757
|
+
},
|
|
26758
|
+
{
|
|
26759
|
+
"type": "object",
|
|
26760
|
+
"required": [
|
|
26761
|
+
"status",
|
|
26762
|
+
"topic",
|
|
26763
|
+
"accountEmail"
|
|
26764
|
+
],
|
|
26765
|
+
"properties": {
|
|
26766
|
+
"status": {
|
|
26767
|
+
"type": "string",
|
|
26768
|
+
"enum": [
|
|
26769
|
+
"in-review"
|
|
26770
|
+
]
|
|
26771
|
+
},
|
|
26772
|
+
"topic": {
|
|
26773
|
+
"$ref": "#/components/schemas/SiteAdsTopic"
|
|
26774
|
+
}
|
|
26775
|
+
}
|
|
26776
|
+
},
|
|
26777
|
+
{
|
|
26778
|
+
"type": "object",
|
|
26779
|
+
"required": [
|
|
26780
|
+
"status"
|
|
26781
|
+
],
|
|
26782
|
+
"properties": {
|
|
26783
|
+
"status": {
|
|
26784
|
+
"type": "string",
|
|
26785
|
+
"enum": [
|
|
26786
|
+
"rejected"
|
|
26787
|
+
]
|
|
26788
|
+
}
|
|
26789
|
+
}
|
|
26790
|
+
},
|
|
26791
|
+
{
|
|
26792
|
+
"type": "object",
|
|
26793
|
+
"required": [
|
|
26794
|
+
"status",
|
|
26795
|
+
"topic",
|
|
26796
|
+
"zoneId"
|
|
26797
|
+
],
|
|
26798
|
+
"properties": {
|
|
26799
|
+
"status": {
|
|
26800
|
+
"type": "string",
|
|
26801
|
+
"enum": [
|
|
26802
|
+
"live",
|
|
26803
|
+
"disabled"
|
|
26804
|
+
]
|
|
26805
|
+
},
|
|
26806
|
+
"topic": {
|
|
26807
|
+
"$ref": "#/components/schemas/SiteAdsTopic"
|
|
26808
|
+
},
|
|
26809
|
+
"zoneId": {
|
|
26810
|
+
"type": "string",
|
|
26811
|
+
"description": "The ad network zone ID"
|
|
26812
|
+
}
|
|
26813
|
+
}
|
|
26469
26814
|
}
|
|
26470
|
-
},
|
|
26471
|
-
"required": [
|
|
26472
|
-
"zone"
|
|
26473
26815
|
]
|
|
26474
26816
|
},
|
|
26475
26817
|
"Site": {
|
|
@@ -26511,46 +26853,137 @@
|
|
|
26511
26853
|
"type": "string",
|
|
26512
26854
|
"format": "date-time"
|
|
26513
26855
|
},
|
|
26514
|
-
"ads": {
|
|
26515
|
-
"$ref": "#/components/schemas/
|
|
26856
|
+
"ads": {
|
|
26857
|
+
"$ref": "#/components/schemas/SiteAds"
|
|
26858
|
+
},
|
|
26859
|
+
"urls": {
|
|
26860
|
+
"type": "object",
|
|
26861
|
+
"description": "URLs associated with the object",
|
|
26862
|
+
"properties": {
|
|
26863
|
+
"location": {
|
|
26864
|
+
"type": "string",
|
|
26865
|
+
"description": "URL of the site in the API",
|
|
26866
|
+
"format": "uri"
|
|
26867
|
+
},
|
|
26868
|
+
"app": {
|
|
26869
|
+
"type": "string",
|
|
26870
|
+
"description": "URL of the site in the application",
|
|
26871
|
+
"format": "uri"
|
|
26872
|
+
},
|
|
26873
|
+
"published": {
|
|
26874
|
+
"type": "string",
|
|
26875
|
+
"description": "URL of the published version of the site. Only defined when site is published.",
|
|
26876
|
+
"format": "uri"
|
|
26877
|
+
}
|
|
26878
|
+
},
|
|
26879
|
+
"required": [
|
|
26880
|
+
"app",
|
|
26881
|
+
"location"
|
|
26882
|
+
]
|
|
26883
|
+
}
|
|
26884
|
+
},
|
|
26885
|
+
"required": [
|
|
26886
|
+
"object",
|
|
26887
|
+
"id",
|
|
26888
|
+
"type",
|
|
26889
|
+
"title",
|
|
26890
|
+
"visibility",
|
|
26891
|
+
"published",
|
|
26892
|
+
"createdAt",
|
|
26893
|
+
"siteSpaces",
|
|
26894
|
+
"defaultSpace",
|
|
26895
|
+
"urls"
|
|
26896
|
+
]
|
|
26897
|
+
},
|
|
26898
|
+
"BillingOperationPreviewResponse": {
|
|
26899
|
+
"description": "A response to a request to preview a paid operation or action. A user might preview an operation before executing it to see which billing steps would be required (if any). This schema defines the response of that preview request.\n",
|
|
26900
|
+
"oneOf": [
|
|
26901
|
+
{
|
|
26902
|
+
"type": "object",
|
|
26903
|
+
"properties": {
|
|
26904
|
+
"type": {
|
|
26905
|
+
"description": "User can go ahead with the operation without any additional steps. Their subscription will be updated to reflect the new changes.",
|
|
26906
|
+
"type": "string",
|
|
26907
|
+
"enum": [
|
|
26908
|
+
"go-ahead"
|
|
26909
|
+
]
|
|
26910
|
+
}
|
|
26911
|
+
},
|
|
26912
|
+
"required": [
|
|
26913
|
+
"type"
|
|
26914
|
+
]
|
|
26915
|
+
},
|
|
26916
|
+
{
|
|
26917
|
+
"type": "object",
|
|
26918
|
+
"properties": {
|
|
26919
|
+
"type": {
|
|
26920
|
+
"description": "By going ahead with this operation, the user will be starting a trial in GitBook.",
|
|
26921
|
+
"type": "string",
|
|
26922
|
+
"enum": [
|
|
26923
|
+
"trial-available"
|
|
26924
|
+
]
|
|
26925
|
+
}
|
|
26926
|
+
},
|
|
26927
|
+
"required": [
|
|
26928
|
+
"type"
|
|
26929
|
+
]
|
|
26930
|
+
},
|
|
26931
|
+
{
|
|
26932
|
+
"type": "object",
|
|
26933
|
+
"properties": {
|
|
26934
|
+
"type": {
|
|
26935
|
+
"description": "User must checkout to complete the operation.",
|
|
26936
|
+
"type": "string",
|
|
26937
|
+
"enum": [
|
|
26938
|
+
"checkout"
|
|
26939
|
+
]
|
|
26940
|
+
},
|
|
26941
|
+
"invoice": {
|
|
26942
|
+
"$ref": "#/components/schemas/BillingInvoicePreview"
|
|
26943
|
+
}
|
|
26944
|
+
},
|
|
26945
|
+
"required": [
|
|
26946
|
+
"type"
|
|
26947
|
+
]
|
|
26948
|
+
},
|
|
26949
|
+
{
|
|
26950
|
+
"type": "object",
|
|
26951
|
+
"properties": {
|
|
26952
|
+
"type": {
|
|
26953
|
+
"description": "User cannot proceed with the operation due to lack of permissions.",
|
|
26954
|
+
"type": "string",
|
|
26955
|
+
"enum": [
|
|
26956
|
+
"no-permissions"
|
|
26957
|
+
]
|
|
26958
|
+
}
|
|
26959
|
+
},
|
|
26960
|
+
"required": [
|
|
26961
|
+
"type"
|
|
26962
|
+
]
|
|
26516
26963
|
},
|
|
26517
|
-
|
|
26964
|
+
{
|
|
26518
26965
|
"type": "object",
|
|
26519
|
-
"description": "URLs associated with the object",
|
|
26520
26966
|
"properties": {
|
|
26521
|
-
"
|
|
26967
|
+
"type": {
|
|
26968
|
+
"description": "User needs to go through the legacy upgrade flow.",
|
|
26522
26969
|
"type": "string",
|
|
26523
|
-
"
|
|
26524
|
-
|
|
26970
|
+
"enum": [
|
|
26971
|
+
"legacy-upgrade"
|
|
26972
|
+
]
|
|
26525
26973
|
},
|
|
26526
|
-
"
|
|
26527
|
-
"
|
|
26528
|
-
"
|
|
26529
|
-
"format": "uri"
|
|
26974
|
+
"plan": {
|
|
26975
|
+
"description": "The plan the user must upgrade to.",
|
|
26976
|
+
"$ref": "#/components/schemas/BillingProduct"
|
|
26530
26977
|
},
|
|
26531
|
-
"
|
|
26532
|
-
"
|
|
26533
|
-
"description": "URL of the published version of the site. Only defined when site is published.",
|
|
26534
|
-
"format": "uri"
|
|
26978
|
+
"invoice": {
|
|
26979
|
+
"$ref": "#/components/schemas/BillingInvoicePreview"
|
|
26535
26980
|
}
|
|
26536
26981
|
},
|
|
26537
26982
|
"required": [
|
|
26538
|
-
"
|
|
26539
|
-
"
|
|
26983
|
+
"type",
|
|
26984
|
+
"plan"
|
|
26540
26985
|
]
|
|
26541
26986
|
}
|
|
26542
|
-
},
|
|
26543
|
-
"required": [
|
|
26544
|
-
"object",
|
|
26545
|
-
"id",
|
|
26546
|
-
"type",
|
|
26547
|
-
"title",
|
|
26548
|
-
"visibility",
|
|
26549
|
-
"published",
|
|
26550
|
-
"createdAt",
|
|
26551
|
-
"siteSpaces",
|
|
26552
|
-
"defaultSpace",
|
|
26553
|
-
"urls"
|
|
26554
26987
|
]
|
|
26555
26988
|
},
|
|
26556
26989
|
"SitePublishingAuth": {
|
|
@@ -27504,6 +27937,43 @@
|
|
|
27504
27937
|
"spaceId"
|
|
27505
27938
|
]
|
|
27506
27939
|
},
|
|
27940
|
+
"SiteAdsStats": {
|
|
27941
|
+
"type": "object",
|
|
27942
|
+
"required": [
|
|
27943
|
+
"impressions",
|
|
27944
|
+
"clicks",
|
|
27945
|
+
"revenue",
|
|
27946
|
+
"account"
|
|
27947
|
+
],
|
|
27948
|
+
"properties": {
|
|
27949
|
+
"impressions": {
|
|
27950
|
+
"type": "number"
|
|
27951
|
+
},
|
|
27952
|
+
"clicks": {
|
|
27953
|
+
"type": "number"
|
|
27954
|
+
},
|
|
27955
|
+
"revenue": {
|
|
27956
|
+
"type": "string"
|
|
27957
|
+
},
|
|
27958
|
+
"account": {
|
|
27959
|
+
"type": "object",
|
|
27960
|
+
"properties": {
|
|
27961
|
+
"email": {
|
|
27962
|
+
"type": "string",
|
|
27963
|
+
"description": "Email address on the Ads platform."
|
|
27964
|
+
},
|
|
27965
|
+
"url": {
|
|
27966
|
+
"type": "string",
|
|
27967
|
+
"description": "URL to configure payout."
|
|
27968
|
+
}
|
|
27969
|
+
},
|
|
27970
|
+
"required": [
|
|
27971
|
+
"email",
|
|
27972
|
+
"url"
|
|
27973
|
+
]
|
|
27974
|
+
}
|
|
27975
|
+
}
|
|
27976
|
+
},
|
|
27507
27977
|
"CustomHostnameDnsStatus": {
|
|
27508
27978
|
"type": "string",
|
|
27509
27979
|
"enum": [
|
|
@@ -27844,63 +28314,6 @@
|
|
|
27844
28314
|
"searchKey"
|
|
27845
28315
|
]
|
|
27846
28316
|
},
|
|
27847
|
-
"UserRiskEvaluation": {
|
|
27848
|
-
"type": "object",
|
|
27849
|
-
"description": "The GitBook User risk evaluation.",
|
|
27850
|
-
"properties": {
|
|
27851
|
-
"wasRisky": {
|
|
27852
|
-
"description": "True if the user was originally considered as risky",
|
|
27853
|
-
"type": "boolean"
|
|
27854
|
-
},
|
|
27855
|
-
"isRisky": {
|
|
27856
|
-
"description": "True if the user is currently considered as risky",
|
|
27857
|
-
"type": "boolean"
|
|
27858
|
-
},
|
|
27859
|
-
"isVerified": {
|
|
27860
|
-
"description": "True if the user went through the verification process",
|
|
27861
|
-
"type": "boolean"
|
|
27862
|
-
},
|
|
27863
|
-
"riskScore": {
|
|
27864
|
-
"description": "Risk score of the user",
|
|
27865
|
-
"type": "number"
|
|
27866
|
-
},
|
|
27867
|
-
"completedSteps": {
|
|
27868
|
-
"description": "Number of verification steps completed by the user",
|
|
27869
|
-
"type": "number"
|
|
27870
|
-
},
|
|
27871
|
-
"expectedSteps": {
|
|
27872
|
-
"description": "Total number of verification steps expected",
|
|
27873
|
-
"type": "number"
|
|
27874
|
-
},
|
|
27875
|
-
"googleLogin": {
|
|
27876
|
-
"description": "User completed the Google Account verification step",
|
|
27877
|
-
"type": "boolean"
|
|
27878
|
-
},
|
|
27879
|
-
"githubLogin": {
|
|
27880
|
-
"description": "User completed the GitHub Account verification step",
|
|
27881
|
-
"type": "boolean"
|
|
27882
|
-
},
|
|
27883
|
-
"emailVerified": {
|
|
27884
|
-
"description": "User completed the Email verification step",
|
|
27885
|
-
"type": "boolean"
|
|
27886
|
-
},
|
|
27887
|
-
"activeDaysRemaining": {
|
|
27888
|
-
"type": "number"
|
|
27889
|
-
}
|
|
27890
|
-
},
|
|
27891
|
-
"required": [
|
|
27892
|
-
"wasRisky",
|
|
27893
|
-
"isRisky",
|
|
27894
|
-
"isVerified",
|
|
27895
|
-
"riskScore",
|
|
27896
|
-
"completedSteps",
|
|
27897
|
-
"expectedSteps",
|
|
27898
|
-
"googleLogin",
|
|
27899
|
-
"githubLogin",
|
|
27900
|
-
"emailVerified",
|
|
27901
|
-
"activeDaysRemaining"
|
|
27902
|
-
]
|
|
27903
|
-
},
|
|
27904
28317
|
"FirebaseUserInfo": {
|
|
27905
28318
|
"type": "object",
|
|
27906
28319
|
"description": "The User Firebase Auth Info.",
|
|
@@ -27935,9 +28348,6 @@
|
|
|
27935
28348
|
"id": {
|
|
27936
28349
|
"type": "string"
|
|
27937
28350
|
},
|
|
27938
|
-
"riskEvaluation": {
|
|
27939
|
-
"$ref": "#/components/schemas/UserRiskEvaluation"
|
|
27940
|
-
},
|
|
27941
28351
|
"authProviders": {
|
|
27942
28352
|
"type": "array",
|
|
27943
28353
|
"items": {
|
|
@@ -27956,7 +28366,6 @@
|
|
|
27956
28366
|
},
|
|
27957
28367
|
"required": [
|
|
27958
28368
|
"id",
|
|
27959
|
-
"riskEvaluation",
|
|
27960
28369
|
"authProviders",
|
|
27961
28370
|
"createdAt",
|
|
27962
28371
|
"lastSignInAt",
|
|
@@ -28153,68 +28562,6 @@
|
|
|
28153
28562
|
}
|
|
28154
28563
|
]
|
|
28155
28564
|
},
|
|
28156
|
-
"PublishedContentLookup": {
|
|
28157
|
-
"oneOf": [
|
|
28158
|
-
{
|
|
28159
|
-
"type": "object",
|
|
28160
|
-
"title": "Redirect",
|
|
28161
|
-
"properties": {
|
|
28162
|
-
"target": {
|
|
28163
|
-
"type": "string",
|
|
28164
|
-
"description": "Type of target for the redirect",
|
|
28165
|
-
"enum": [
|
|
28166
|
-
"application",
|
|
28167
|
-
"content",
|
|
28168
|
-
"external"
|
|
28169
|
-
]
|
|
28170
|
-
},
|
|
28171
|
-
"redirect": {
|
|
28172
|
-
"$ref": "#/components/schemas/URL"
|
|
28173
|
-
}
|
|
28174
|
-
},
|
|
28175
|
-
"required": [
|
|
28176
|
-
"target",
|
|
28177
|
-
"redirect"
|
|
28178
|
-
]
|
|
28179
|
-
},
|
|
28180
|
-
{
|
|
28181
|
-
"type": "object",
|
|
28182
|
-
"title": "Content",
|
|
28183
|
-
"properties": {
|
|
28184
|
-
"space": {
|
|
28185
|
-
"type": "string",
|
|
28186
|
-
"description": "ID of the space matching."
|
|
28187
|
-
},
|
|
28188
|
-
"changeRequest": {
|
|
28189
|
-
"type": "string",
|
|
28190
|
-
"description": "Identifier of the change request being previewed in this URL."
|
|
28191
|
-
},
|
|
28192
|
-
"revision": {
|
|
28193
|
-
"type": "string",
|
|
28194
|
-
"description": "Identifier of the revision being previewed in this URL."
|
|
28195
|
-
},
|
|
28196
|
-
"pathname": {
|
|
28197
|
-
"type": "string",
|
|
28198
|
-
"description": "Path of the content relative to the space"
|
|
28199
|
-
},
|
|
28200
|
-
"basePath": {
|
|
28201
|
-
"type": "string",
|
|
28202
|
-
"description": "Prefix of the path in the URL dedicated to the space"
|
|
28203
|
-
},
|
|
28204
|
-
"apiToken": {
|
|
28205
|
-
"type": "string",
|
|
28206
|
-
"description": "Short-lived API token to fetch content related to the space in the context of the URL."
|
|
28207
|
-
}
|
|
28208
|
-
},
|
|
28209
|
-
"required": [
|
|
28210
|
-
"space",
|
|
28211
|
-
"pathname",
|
|
28212
|
-
"basePath",
|
|
28213
|
-
"apiToken"
|
|
28214
|
-
]
|
|
28215
|
-
}
|
|
28216
|
-
]
|
|
28217
|
-
},
|
|
28218
28565
|
"PublishedSiteContentLookup": {
|
|
28219
28566
|
"oneOf": [
|
|
28220
28567
|
{
|
|
@@ -28296,6 +28643,16 @@
|
|
|
28296
28643
|
}
|
|
28297
28644
|
]
|
|
28298
28645
|
},
|
|
28646
|
+
"UpdateContentPublishingAuth": {
|
|
28647
|
+
"type": "object",
|
|
28648
|
+
"properties": {
|
|
28649
|
+
"fallbackURL": {
|
|
28650
|
+
"type": "string",
|
|
28651
|
+
"format": "uri",
|
|
28652
|
+
"description": "A fallback URL that will be used if authentication fails."
|
|
28653
|
+
}
|
|
28654
|
+
}
|
|
28655
|
+
},
|
|
28299
28656
|
"TriggerContentIndexingContext": {
|
|
28300
28657
|
"type": "object",
|
|
28301
28658
|
"description": "The context to send when triggering a content indexing.",
|
|
@@ -28314,6 +28671,36 @@
|
|
|
28314
28671
|
"force"
|
|
28315
28672
|
]
|
|
28316
28673
|
},
|
|
28674
|
+
"ContentPublishingAuth": {
|
|
28675
|
+
"type": "object",
|
|
28676
|
+
"properties": {
|
|
28677
|
+
"object": {
|
|
28678
|
+
"type": "string",
|
|
28679
|
+
"description": "Type of Object, always equals to \"publishing-auth\"",
|
|
28680
|
+
"enum": [
|
|
28681
|
+
"publishing-auth"
|
|
28682
|
+
]
|
|
28683
|
+
},
|
|
28684
|
+
"id": {
|
|
28685
|
+
"type": "string",
|
|
28686
|
+
"description": "Unique identifier for the content."
|
|
28687
|
+
},
|
|
28688
|
+
"privateKey": {
|
|
28689
|
+
"type": "string",
|
|
28690
|
+
"description": "Private key used to sign JWT tokens."
|
|
28691
|
+
},
|
|
28692
|
+
"fallbackURL": {
|
|
28693
|
+
"type": "string",
|
|
28694
|
+
"format": "uri",
|
|
28695
|
+
"description": "URL to redirect to when the visitor auth secret is invalid."
|
|
28696
|
+
}
|
|
28697
|
+
},
|
|
28698
|
+
"required": [
|
|
28699
|
+
"object",
|
|
28700
|
+
"id",
|
|
28701
|
+
"privateKey"
|
|
28702
|
+
]
|
|
28703
|
+
},
|
|
28317
28704
|
"DocumentBlock": {
|
|
28318
28705
|
"oneOf": [
|
|
28319
28706
|
{
|
|
@@ -28505,6 +28892,16 @@
|
|
|
28505
28892
|
"secrets"
|
|
28506
28893
|
]
|
|
28507
28894
|
},
|
|
28895
|
+
"BillingTrialStatus": {
|
|
28896
|
+
"type": "string",
|
|
28897
|
+
"enum": [
|
|
28898
|
+
"notapplicable",
|
|
28899
|
+
"none",
|
|
28900
|
+
"active",
|
|
28901
|
+
"ended",
|
|
28902
|
+
"expired"
|
|
28903
|
+
]
|
|
28904
|
+
},
|
|
28508
28905
|
"APIIntegrationScope": {
|
|
28509
28906
|
"type": "string",
|
|
28510
28907
|
"enum": [
|
|
@@ -28918,6 +29315,24 @@
|
|
|
28918
29315
|
"user"
|
|
28919
29316
|
]
|
|
28920
29317
|
},
|
|
29318
|
+
"OrganizationSAMLChannel": {
|
|
29319
|
+
"type": "object",
|
|
29320
|
+
"properties": {
|
|
29321
|
+
"channel": {
|
|
29322
|
+
"type": "string",
|
|
29323
|
+
"enum": [
|
|
29324
|
+
"organization-saml"
|
|
29325
|
+
]
|
|
29326
|
+
},
|
|
29327
|
+
"organization": {
|
|
29328
|
+
"type": "string"
|
|
29329
|
+
}
|
|
29330
|
+
},
|
|
29331
|
+
"required": [
|
|
29332
|
+
"channel",
|
|
29333
|
+
"organization"
|
|
29334
|
+
]
|
|
29335
|
+
},
|
|
28921
29336
|
"OrganizationTeamsChannel": {
|
|
28922
29337
|
"type": "object",
|
|
28923
29338
|
"properties": {
|
|
@@ -29061,13 +29476,13 @@
|
|
|
29061
29476
|
"organization"
|
|
29062
29477
|
]
|
|
29063
29478
|
},
|
|
29064
|
-
"
|
|
29479
|
+
"OrganizationIntegrationsChannel": {
|
|
29065
29480
|
"type": "object",
|
|
29066
29481
|
"properties": {
|
|
29067
29482
|
"channel": {
|
|
29068
29483
|
"type": "string",
|
|
29069
29484
|
"enum": [
|
|
29070
|
-
"organization-
|
|
29485
|
+
"organization-integrations"
|
|
29071
29486
|
]
|
|
29072
29487
|
},
|
|
29073
29488
|
"organization": {
|
|
@@ -29079,13 +29494,13 @@
|
|
|
29079
29494
|
"organization"
|
|
29080
29495
|
]
|
|
29081
29496
|
},
|
|
29082
|
-
"
|
|
29497
|
+
"OrganizationInstallationsChannel": {
|
|
29083
29498
|
"type": "object",
|
|
29084
29499
|
"properties": {
|
|
29085
29500
|
"channel": {
|
|
29086
29501
|
"type": "string",
|
|
29087
29502
|
"enum": [
|
|
29088
|
-
"organization-
|
|
29503
|
+
"organization-installations"
|
|
29089
29504
|
]
|
|
29090
29505
|
},
|
|
29091
29506
|
"organization": {
|
|
@@ -29097,13 +29512,14 @@
|
|
|
29097
29512
|
"organization"
|
|
29098
29513
|
]
|
|
29099
29514
|
},
|
|
29100
|
-
"
|
|
29515
|
+
"OrganizationSitesChannel": {
|
|
29101
29516
|
"type": "object",
|
|
29517
|
+
"description": "Subscription channel for changes in sites in an organization.",
|
|
29102
29518
|
"properties": {
|
|
29103
29519
|
"channel": {
|
|
29104
29520
|
"type": "string",
|
|
29105
29521
|
"enum": [
|
|
29106
|
-
"organization-
|
|
29522
|
+
"organization-sites"
|
|
29107
29523
|
]
|
|
29108
29524
|
},
|
|
29109
29525
|
"organization": {
|
|
@@ -29115,14 +29531,13 @@
|
|
|
29115
29531
|
"organization"
|
|
29116
29532
|
]
|
|
29117
29533
|
},
|
|
29118
|
-
"
|
|
29534
|
+
"OrganizationExperimentalFeaturesChannel": {
|
|
29119
29535
|
"type": "object",
|
|
29120
|
-
"description": "Subscription channel for changes in sites in an organization.",
|
|
29121
29536
|
"properties": {
|
|
29122
29537
|
"channel": {
|
|
29123
29538
|
"type": "string",
|
|
29124
29539
|
"enum": [
|
|
29125
|
-
"organization-
|
|
29540
|
+
"organization-experimental-features"
|
|
29126
29541
|
]
|
|
29127
29542
|
},
|
|
29128
29543
|
"organization": {
|
|
@@ -29134,13 +29549,14 @@
|
|
|
29134
29549
|
"organization"
|
|
29135
29550
|
]
|
|
29136
29551
|
},
|
|
29137
|
-
"
|
|
29552
|
+
"OrganizationSyncedBlocksChannel": {
|
|
29138
29553
|
"type": "object",
|
|
29554
|
+
"description": "Subscription channel for changes in synced blocks in an organization.",
|
|
29139
29555
|
"properties": {
|
|
29140
29556
|
"channel": {
|
|
29141
29557
|
"type": "string",
|
|
29142
29558
|
"enum": [
|
|
29143
|
-
"organization-
|
|
29559
|
+
"organization-synced-blocks"
|
|
29144
29560
|
]
|
|
29145
29561
|
},
|
|
29146
29562
|
"organization": {
|
|
@@ -29670,6 +30086,9 @@
|
|
|
29670
30086
|
{
|
|
29671
30087
|
"$ref": "#/components/schemas/OrganizationMemberChannel"
|
|
29672
30088
|
},
|
|
30089
|
+
{
|
|
30090
|
+
"$ref": "#/components/schemas/OrganizationSAMLChannel"
|
|
30091
|
+
},
|
|
29673
30092
|
{
|
|
29674
30093
|
"$ref": "#/components/schemas/OrganizationTeamsChannel"
|
|
29675
30094
|
},
|
|
@@ -29691,9 +30110,6 @@
|
|
|
29691
30110
|
{
|
|
29692
30111
|
"$ref": "#/components/schemas/OrganizationCapturesChannel"
|
|
29693
30112
|
},
|
|
29694
|
-
{
|
|
29695
|
-
"$ref": "#/components/schemas/OrganizationContentAuditsChannel"
|
|
29696
|
-
},
|
|
29697
30113
|
{
|
|
29698
30114
|
"$ref": "#/components/schemas/OrganizationIntegrationsChannel"
|
|
29699
30115
|
},
|
|
@@ -29706,6 +30122,9 @@
|
|
|
29706
30122
|
{
|
|
29707
30123
|
"$ref": "#/components/schemas/OrganizationExperimentalFeaturesChannel"
|
|
29708
30124
|
},
|
|
30125
|
+
{
|
|
30126
|
+
"$ref": "#/components/schemas/OrganizationSyncedBlocksChannel"
|
|
30127
|
+
},
|
|
29709
30128
|
{
|
|
29710
30129
|
"$ref": "#/components/schemas/OrganizationSyncedBlockChannel"
|
|
29711
30130
|
},
|
|
@@ -29774,6 +30193,17 @@
|
|
|
29774
30193
|
"propertyName": "channel"
|
|
29775
30194
|
}
|
|
29776
30195
|
},
|
|
30196
|
+
"SiteAdsStatus": {
|
|
30197
|
+
"type": "string",
|
|
30198
|
+
"description": "The status of ads on the site",
|
|
30199
|
+
"enum": [
|
|
30200
|
+
"pending",
|
|
30201
|
+
"in-review",
|
|
30202
|
+
"live",
|
|
30203
|
+
"rejected",
|
|
30204
|
+
"disabled"
|
|
30205
|
+
]
|
|
30206
|
+
},
|
|
29777
30207
|
"Seat": {
|
|
29778
30208
|
"type": "object",
|
|
29779
30209
|
"properties": {
|