@gitbook/api 0.60.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/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/auth": {
5699
+ "/collections/{collectionId}/publishing/customization": {
5755
5700
  "get": {
5756
- "operationId": "getCollectionPublishingAuthById",
5757
- "summary": "Get the publishing authentication configuration for a collection.",
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/ContentPublishingAuth"
5722
+ "$ref": "#/components/schemas/CustomizationCollectionSettings"
5778
5723
  }
5779
5724
  }
5780
5725
  }
@@ -5787,9 +5732,9 @@
5787
5732
  }
5788
5733
  }
5789
5734
  },
5790
- "post": {
5791
- "operationId": "updateCollectionPublishingAuthById",
5792
- "summary": "Update the publishing authentication configuration for a collection.",
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/UpdateContentPublishingAuth"
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/ContentPublishingAuth"
5767
+ "$ref": "#/components/schemas/CustomizationCollectionSettings"
5823
5768
  }
5824
5769
  }
5825
5770
  }
@@ -5833,10 +5778,10 @@
5833
5778
  }
5834
5779
  }
5835
5780
  },
5836
- "/collections/{collectionId}/publishing/customization": {
5837
- "get": {
5838
- "operationId": "getCollectionPublishingCustomizationById",
5839
- "summary": "Get the publishing customization configuration for a collection.",
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
- "200": {
5855
- "description": "OK",
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/CustomizationCollectionSettings"
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
- "put": {
5873
- "operationId": "updateCollectionPublishingCustomizationById",
5874
- "summary": "Update the publishing customization configuration for a collection.",
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
- "$ref": "#/components/schemas/CustomizationCollectionSettings"
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": "OK",
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}/usage": {
9718
+ "/orgs/{organizationId}/saml": {
9770
9719
  "get": {
9771
- "operationId": "getUsageForOrganizationById",
9772
- "summary": "Get all usage metrics for an organization",
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-internal": []
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
- "$ref": "#/components/schemas/OrganizationUsage"
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
- "/orgs/{organizationId}/usage/collections": {
9805
- "get": {
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-internal": []
9784
+ "user": []
9815
9785
  }
9816
9786
  ],
9817
9787
  "parameters": [
@@ -9819,29 +9789,274 @@
9819
9789
  "$ref": "#/components/parameters/organizationId"
9820
9790
  }
9821
9791
  ],
9822
- "responses": {
9823
- "200": {
9824
- "description": "OK",
9825
- "content": {
9826
- "application/json": {
9827
- "schema": {
9828
- "type": "object",
9829
- "properties": {
9830
- "collections": {
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
- "required": [
9835
- "collections"
9836
- ]
9837
- }
9838
- }
9839
- }
9840
- },
9841
- "default": {
9842
- "$ref": "#/components/responses/UnexpectedError"
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
- "post": {
10788
- "operationId": "createSyncedBlock",
10789
- "summary": "Create a new synced block",
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
- "requestBody": {
10804
- "required": true,
10805
- "content": {
10806
- "application/json": {
10807
- "schema": {
10808
- "type": "object",
10809
- "required": [
10810
- "document"
10811
- ],
10812
- "properties": {
10813
- "title": {
10814
- "type": "string",
10815
- "description": "Title of synced block"
10816
- },
10817
- "document": {
10818
- "$ref": "#/components/schemas/Document"
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}/insights/audit-relations": {
11545
+ "/orgs/{organizationId}/sites": {
11214
11546
  "get": {
11215
- "operationId": "listContentAuditRelations",
11216
- "summary": "List the content relations for in a given organization.",
11547
+ "operationId": "listSites",
11548
+ "summary": "List all the sites created in an organization",
11217
11549
  "tags": [
11218
- "ai",
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": "type",
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
- "$ref": "#/components/parameters/documentFormat"
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": "Identifier of the space to filter the sites by",
11588
+ "description": "Filter sites by their published status",
11487
11589
  "required": false,
11488
11590
  "schema": {
11489
- "type": "string"
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",
@@ -12095,113 +12240,13 @@
12095
12240
  "$ref": "#/components/schemas/BillingInterval"
12096
12241
  }
12097
12242
  },
12098
- "required": [
12099
- "plan"
12100
- ]
12101
- }
12102
- }
12103
- }
12104
- },
12105
- "responses": {
12106
- "200": {
12107
- "description": "OK",
12108
- "content": {
12109
- "application/json": {
12110
- "schema": {
12111
- "oneOf": [
12112
- {
12113
- "type": "object",
12114
- "required": [
12115
- "type",
12116
- "sessionId"
12117
- ],
12118
- "properties": {
12119
- "type": {
12120
- "description": "User must checkout to complete the update.",
12121
- "type": "string",
12122
- "enum": [
12123
- "checkout"
12124
- ]
12125
- },
12126
- "sessionId": {
12127
- "type": "string",
12128
- "description": "Stripe payment session ID"
12129
- }
12130
- }
12131
- },
12132
- {
12133
- "type": "object",
12134
- "required": [
12135
- "type",
12136
- "sessionId"
12137
- ],
12138
- "properties": {
12139
- "type": {
12140
- "description": "User needs to go through the legacy update flow.",
12141
- "type": "string",
12142
- "enum": [
12143
- "legacy-checkout"
12144
- ]
12145
- },
12146
- "sessionId": {
12147
- "type": "string",
12148
- "description": "Stripe payment session ID"
12149
- }
12150
- }
12151
- },
12152
- {
12153
- "type": "object",
12154
- "required": [
12155
- "type"
12156
- ],
12157
- "properties": {
12158
- "type": {
12159
- "description": "The site plan was successfully updated.",
12160
- "type": "string",
12161
- "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"
12243
+ "required": [
12244
+ "plan"
12245
+ ]
12246
+ }
12202
12247
  }
12203
12248
  }
12204
- ],
12249
+ },
12205
12250
  "responses": {
12206
12251
  "200": {
12207
12252
  "description": "OK",
@@ -12211,21 +12256,10 @@
12211
12256
  "oneOf": [
12212
12257
  {
12213
12258
  "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
12259
  "required": [
12224
- "type"
12225
- ]
12226
- },
12227
- {
12228
- "type": "object",
12260
+ "type",
12261
+ "sessionId"
12262
+ ],
12229
12263
  "properties": {
12230
12264
  "type": {
12231
12265
  "description": "User must checkout to complete the update.",
@@ -12233,69 +12267,61 @@
12233
12267
  "enum": [
12234
12268
  "checkout"
12235
12269
  ]
12270
+ },
12271
+ "sessionId": {
12272
+ "type": "string",
12273
+ "description": "Stripe payment session ID"
12236
12274
  }
12237
- },
12238
- "required": [
12239
- "type"
12240
- ]
12275
+ }
12241
12276
  },
12242
12277
  {
12243
12278
  "type": "object",
12279
+ "required": [
12280
+ "type",
12281
+ "sessionId"
12282
+ ],
12244
12283
  "properties": {
12245
12284
  "type": {
12246
- "description": "User cannot proceed with the update due to lack of permissions.",
12285
+ "description": "User needs to go through the legacy update flow.",
12247
12286
  "type": "string",
12248
12287
  "enum": [
12249
- "no-permissions"
12288
+ "legacy-checkout"
12250
12289
  ]
12290
+ },
12291
+ "sessionId": {
12292
+ "type": "string",
12293
+ "description": "Stripe payment session ID"
12251
12294
  }
12252
- },
12253
- "required": [
12254
- "type"
12255
- ]
12295
+ }
12256
12296
  },
12257
12297
  {
12258
12298
  "type": "object",
12299
+ "required": [
12300
+ "type"
12301
+ ],
12259
12302
  "properties": {
12260
12303
  "type": {
12261
- "description": "User needs to go through the legacy update flow.",
12304
+ "description": "The site plan was successfully updated.",
12262
12305
  "type": "string",
12263
12306
  "enum": [
12264
- "legacy-upgrade"
12307
+ "success"
12265
12308
  ]
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
12309
  }
12274
- },
12275
- "required": [
12276
- "type",
12277
- "plan"
12278
- ]
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": "previewSitePublish",
12298
- "summary": "Preview publishing a site, returning checkout information.",
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
- "oneOf": [
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": {
@@ -13586,6 +13583,43 @@
13586
13583
  }
13587
13584
  }
13588
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
+ },
13589
13623
  "/custom-hostnames/{hostname}": {
13590
13624
  "get": {
13591
13625
  "operationId": "getCustomHostname",
@@ -13861,8 +13895,9 @@
13861
13895
  "type": "object",
13862
13896
  "required": [
13863
13897
  "id",
13864
- "ads",
13865
- "url"
13898
+ "url",
13899
+ "email",
13900
+ "topic"
13866
13901
  ],
13867
13902
  "properties": {
13868
13903
  "id": {
@@ -13871,8 +13906,11 @@
13871
13906
  "url": {
13872
13907
  "type": "string"
13873
13908
  },
13874
- "ads": {
13875
- "$ref": "#/components/schemas/SiteAds"
13909
+ "email": {
13910
+ "type": "string"
13911
+ },
13912
+ "topic": {
13913
+ "$ref": "#/components/schemas/SiteAdsTopic"
13876
13914
  }
13877
13915
  }
13878
13916
  }
@@ -13897,11 +13935,6 @@
13897
13935
  "tags": [
13898
13936
  "ads"
13899
13937
  ],
13900
- "security": [
13901
- {
13902
- "user": []
13903
- }
13904
- ],
13905
13938
  "parameters": [
13906
13939
  {
13907
13940
  "$ref": "#/components/parameters/siteId"
@@ -14185,14 +14218,7 @@
14185
14218
  "content": {
14186
14219
  "application/json": {
14187
14220
  "schema": {
14188
- "oneOf": [
14189
- {
14190
- "$ref": "#/components/schemas/PublishedContentLookup"
14191
- },
14192
- {
14193
- "$ref": "#/components/schemas/PublishedSiteContentLookup"
14194
- }
14195
- ]
14221
+ "$ref": "#/components/schemas/PublishedSiteContentLookup"
14196
14222
  }
14197
14223
  }
14198
14224
  }
@@ -14297,6 +14323,15 @@
14297
14323
  "type": "string"
14298
14324
  }
14299
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
+ },
14300
14335
  "revisionMetadata": {
14301
14336
  "name": "metadata",
14302
14337
  "in": "query",
@@ -14498,20 +14533,20 @@
14498
14533
  "type": "string"
14499
14534
  }
14500
14535
  },
14501
- "teamId": {
14502
- "name": "teamId",
14536
+ "inviteId": {
14537
+ "name": "inviteId",
14503
14538
  "in": "path",
14504
14539
  "required": true,
14505
- "description": "The unique ID of the Team",
14540
+ "description": "The unique id of the invite",
14506
14541
  "schema": {
14507
14542
  "type": "string"
14508
14543
  }
14509
14544
  },
14510
- "inviteId": {
14511
- "name": "inviteId",
14545
+ "samlProviderId": {
14546
+ "name": "samlProviderId",
14512
14547
  "in": "path",
14513
14548
  "required": true,
14514
- "description": "The unique id of the invite",
14549
+ "description": "The unique id of the SAML provider",
14515
14550
  "schema": {
14516
14551
  "type": "string"
14517
14552
  }
@@ -14552,15 +14587,6 @@
14552
14587
  "type": "string"
14553
14588
  }
14554
14589
  },
14555
- "relationId": {
14556
- "name": "relationId",
14557
- "in": "path",
14558
- "required": true,
14559
- "description": "The id of the content audit relation",
14560
- "schema": {
14561
- "type": "string"
14562
- }
14563
- },
14564
14590
  "siteCustomizationUnmasked": {
14565
14591
  "name": "unmasked",
14566
14592
  "in": "query",
@@ -19199,6 +19225,26 @@
19199
19225
  "referrer"
19200
19226
  ]
19201
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
+ },
19202
19248
  "RevisionPageGroup": {
19203
19249
  "allOf": [
19204
19250
  {
@@ -19804,10 +19850,6 @@
19804
19850
  "description": "If true, the organization is configured to use all our AI features.",
19805
19851
  "type": "boolean"
19806
19852
  },
19807
- "aiInsights": {
19808
- "description": "If true, the organization is configured to run content audits on any space update",
19809
- "type": "boolean"
19810
- },
19811
19853
  "urls": {
19812
19854
  "type": "object",
19813
19855
  "description": "URLs associated with the object",
@@ -20805,6 +20847,19 @@
20805
20847
  "description": "Title describing the synced block.",
20806
20848
  "maxLength": 100
20807
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
+ },
20808
20863
  "urls": {
20809
20864
  "type": "object",
20810
20865
  "description": "URLs associated with the object",
@@ -20824,6 +20879,7 @@
20824
20879
  "organization",
20825
20880
  "source",
20826
20881
  "createdAt",
20882
+ "usage",
20827
20883
  "urls"
20828
20884
  ]
20829
20885
  },
@@ -22081,6 +22137,7 @@
22081
22137
  "zh",
22082
22138
  "ja",
22083
22139
  "de",
22140
+ "nl",
22084
22141
  "pt-br"
22085
22142
  ]
22086
22143
  },
@@ -22411,53 +22468,13 @@
22411
22468
  "pdf",
22412
22469
  "feedback",
22413
22470
  "aiSearch",
22414
- "trademark",
22415
- "pagination",
22416
- "git",
22417
- "privacyPolicy",
22418
- "socialPreview"
22419
- ]
22420
- },
22421
- "ContentPublishingAuth": {
22422
- "type": "object",
22423
- "properties": {
22424
- "object": {
22425
- "type": "string",
22426
- "description": "Type of Object, always equals to \"publishing-auth\"",
22427
- "enum": [
22428
- "publishing-auth"
22429
- ]
22430
- },
22431
- "id": {
22432
- "type": "string",
22433
- "description": "Unique identifier for the content."
22434
- },
22435
- "privateKey": {
22436
- "type": "string",
22437
- "description": "Private key used to sign JWT tokens."
22438
- },
22439
- "fallbackURL": {
22440
- "type": "string",
22441
- "format": "uri",
22442
- "description": "URL to redirect to when the visitor auth secret is invalid."
22443
- }
22444
- },
22445
- "required": [
22446
- "object",
22447
- "id",
22448
- "privateKey"
22471
+ "trademark",
22472
+ "pagination",
22473
+ "git",
22474
+ "privacyPolicy",
22475
+ "socialPreview"
22449
22476
  ]
22450
22477
  },
22451
- "UpdateContentPublishingAuth": {
22452
- "type": "object",
22453
- "properties": {
22454
- "fallbackURL": {
22455
- "type": "string",
22456
- "format": "uri",
22457
- "description": "A fallback URL that will be used if authentication fails."
22458
- }
22459
- }
22460
- },
22461
22478
  "SpaceIntegrationBlocks": {
22462
22479
  "type": "array",
22463
22480
  "items": {
@@ -25764,6 +25781,34 @@
25764
25781
  "interval": {
25765
25782
  "$ref": "#/components/schemas/BillingInterval"
25766
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
+ },
25767
25812
  "reason": {
25768
25813
  "type": "string",
25769
25814
  "description": "Reason that triggered the billing upgrade"
@@ -25988,6 +26033,106 @@
25988
26033
  "stage"
25989
26034
  ]
25990
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"
26120
+ ]
26121
+ }
26122
+ },
26123
+ "required": [
26124
+ "object",
26125
+ "id",
26126
+ "label",
26127
+ "ssoURL",
26128
+ "entityID",
26129
+ "certificate",
26130
+ "defaultRole",
26131
+ "createdAt",
26132
+ "service",
26133
+ "urls"
26134
+ ]
26135
+ },
25991
26136
  "OrganizationUsageSpaces": {
25992
26137
  "type": "object",
25993
26138
  "description": "Spaces usage metrics of an organization",
@@ -26543,113 +26688,13 @@
26543
26688
  }
26544
26689
  }
26545
26690
  },
26546
- "ContentAuditRelationStatus": {
26547
- "description": "Status of the audit relation to filter on",
26548
- "type": "string",
26549
- "enum": [
26550
- "pending",
26551
- "rejected"
26552
- ]
26553
- },
26554
- "ContentAuditRelationType": {
26555
- "description": "The type of the relation between the sources",
26556
- "type": "string",
26557
- "enum": [
26558
- "contradiction",
26559
- "duplicate"
26560
- ]
26561
- },
26562
- "ContentAuditSourceSection": {
26563
- "type": "object",
26564
- "description": "A GitBook section source",
26565
- "properties": {
26566
- "id": {
26567
- "type": "string"
26568
- },
26569
- "type": {
26570
- "type": "string",
26571
- "enum": [
26572
- "section"
26573
- ]
26574
- },
26575
- "space": {
26576
- "$ref": "#/components/schemas/Space"
26577
- },
26578
- "page": {
26579
- "$ref": "#/components/schemas/RevisionPageDocument"
26580
- }
26581
- },
26582
- "required": [
26583
- "id",
26584
- "type",
26585
- "space",
26586
- "page"
26587
- ]
26588
- },
26589
- "ContentAuditSource": {
26590
- "oneOf": [
26591
- {
26592
- "$ref": "#/components/schemas/ContentAuditSourceSection"
26593
- }
26594
- ]
26595
- },
26596
- "ContentAuditRelation": {
26597
- "type": "object",
26598
- "description": "Content audit relation",
26599
- "properties": {
26600
- "id": {
26601
- "type": "string"
26602
- },
26603
- "sources": {
26604
- "description": "The sources that are related",
26605
- "type": "array",
26606
- "items": {
26607
- "$ref": "#/components/schemas/ContentAuditSource"
26608
- }
26609
- },
26610
- "type": {
26611
- "description": "The type of the relation between the sources",
26612
- "$ref": "#/components/schemas/ContentAuditRelationType"
26613
- },
26614
- "reason": {
26615
- "type": "string",
26616
- "description": "A human readable description of the reason for the relation"
26617
- },
26618
- "status": {
26619
- "description": "The status of the relation",
26620
- "$ref": "#/components/schemas/ContentAuditRelationStatus"
26621
- },
26622
- "createdAt": {
26623
- "description": "The date at which the relation was created",
26624
- "$ref": "#/components/schemas/Timestamp"
26625
- }
26626
- },
26627
- "required": [
26628
- "id",
26629
- "sources",
26630
- "type",
26631
- "status",
26632
- "createdAt"
26633
- ]
26634
- },
26635
- "ContentAuditRelationStatusUpdate": {
26636
- "type": "object",
26637
- "properties": {
26638
- "status": {
26639
- "$ref": "#/components/schemas/ContentAuditRelationStatus"
26640
- }
26641
- },
26642
- "required": [
26643
- "status"
26644
- ]
26645
- },
26646
26691
  "SiteType": {
26647
26692
  "type": "string",
26648
26693
  "description": "The type of the site",
26649
26694
  "enum": [
26650
26695
  "basic",
26651
- "standard",
26652
26696
  "premium",
26697
+ "audience",
26653
26698
  "legacy-basic",
26654
26699
  "legacy-premium"
26655
26700
  ]
@@ -26726,10 +26771,6 @@
26726
26771
  },
26727
26772
  "topic": {
26728
26773
  "$ref": "#/components/schemas/SiteAdsTopic"
26729
- },
26730
- "accountEmail": {
26731
- "type": "string",
26732
- "description": "The email address linked to the Ads partner account"
26733
26774
  }
26734
26775
  }
26735
26776
  },
@@ -26752,8 +26793,7 @@
26752
26793
  "required": [
26753
26794
  "status",
26754
26795
  "topic",
26755
- "zoneId",
26756
- "accountEmail"
26796
+ "zoneId"
26757
26797
  ],
26758
26798
  "properties": {
26759
26799
  "status": {
@@ -26769,10 +26809,6 @@
26769
26809
  "zoneId": {
26770
26810
  "type": "string",
26771
26811
  "description": "The ad network zone ID"
26772
- },
26773
- "accountEmail": {
26774
- "type": "string",
26775
- "description": "The email address linked to the Ads partner account"
26776
26812
  }
26777
26813
  }
26778
26814
  }
@@ -26817,46 +26853,137 @@
26817
26853
  "type": "string",
26818
26854
  "format": "date-time"
26819
26855
  },
26820
- "ads": {
26821
- "$ref": "#/components/schemas/SiteAds"
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
+ ]
26822
26963
  },
26823
- "urls": {
26964
+ {
26824
26965
  "type": "object",
26825
- "description": "URLs associated with the object",
26826
26966
  "properties": {
26827
- "location": {
26967
+ "type": {
26968
+ "description": "User needs to go through the legacy upgrade flow.",
26828
26969
  "type": "string",
26829
- "description": "URL of the site in the API",
26830
- "format": "uri"
26970
+ "enum": [
26971
+ "legacy-upgrade"
26972
+ ]
26831
26973
  },
26832
- "app": {
26833
- "type": "string",
26834
- "description": "URL of the site in the application",
26835
- "format": "uri"
26974
+ "plan": {
26975
+ "description": "The plan the user must upgrade to.",
26976
+ "$ref": "#/components/schemas/BillingProduct"
26836
26977
  },
26837
- "published": {
26838
- "type": "string",
26839
- "description": "URL of the published version of the site. Only defined when site is published.",
26840
- "format": "uri"
26978
+ "invoice": {
26979
+ "$ref": "#/components/schemas/BillingInvoicePreview"
26841
26980
  }
26842
26981
  },
26843
26982
  "required": [
26844
- "app",
26845
- "location"
26983
+ "type",
26984
+ "plan"
26846
26985
  ]
26847
26986
  }
26848
- },
26849
- "required": [
26850
- "object",
26851
- "id",
26852
- "type",
26853
- "title",
26854
- "visibility",
26855
- "published",
26856
- "createdAt",
26857
- "siteSpaces",
26858
- "defaultSpace",
26859
- "urls"
26860
26987
  ]
26861
26988
  },
26862
26989
  "SitePublishingAuth": {
@@ -27810,6 +27937,43 @@
27810
27937
  "spaceId"
27811
27938
  ]
27812
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
+ },
27813
27977
  "CustomHostnameDnsStatus": {
27814
27978
  "type": "string",
27815
27979
  "enum": [
@@ -28150,63 +28314,6 @@
28150
28314
  "searchKey"
28151
28315
  ]
28152
28316
  },
28153
- "UserRiskEvaluation": {
28154
- "type": "object",
28155
- "description": "The GitBook User risk evaluation.",
28156
- "properties": {
28157
- "wasRisky": {
28158
- "description": "True if the user was originally considered as risky",
28159
- "type": "boolean"
28160
- },
28161
- "isRisky": {
28162
- "description": "True if the user is currently considered as risky",
28163
- "type": "boolean"
28164
- },
28165
- "isVerified": {
28166
- "description": "True if the user went through the verification process",
28167
- "type": "boolean"
28168
- },
28169
- "riskScore": {
28170
- "description": "Risk score of the user",
28171
- "type": "number"
28172
- },
28173
- "completedSteps": {
28174
- "description": "Number of verification steps completed by the user",
28175
- "type": "number"
28176
- },
28177
- "expectedSteps": {
28178
- "description": "Total number of verification steps expected",
28179
- "type": "number"
28180
- },
28181
- "googleLogin": {
28182
- "description": "User completed the Google Account verification step",
28183
- "type": "boolean"
28184
- },
28185
- "githubLogin": {
28186
- "description": "User completed the GitHub Account verification step",
28187
- "type": "boolean"
28188
- },
28189
- "emailVerified": {
28190
- "description": "User completed the Email verification step",
28191
- "type": "boolean"
28192
- },
28193
- "activeDaysRemaining": {
28194
- "type": "number"
28195
- }
28196
- },
28197
- "required": [
28198
- "wasRisky",
28199
- "isRisky",
28200
- "isVerified",
28201
- "riskScore",
28202
- "completedSteps",
28203
- "expectedSteps",
28204
- "googleLogin",
28205
- "githubLogin",
28206
- "emailVerified",
28207
- "activeDaysRemaining"
28208
- ]
28209
- },
28210
28317
  "FirebaseUserInfo": {
28211
28318
  "type": "object",
28212
28319
  "description": "The User Firebase Auth Info.",
@@ -28241,9 +28348,6 @@
28241
28348
  "id": {
28242
28349
  "type": "string"
28243
28350
  },
28244
- "riskEvaluation": {
28245
- "$ref": "#/components/schemas/UserRiskEvaluation"
28246
- },
28247
28351
  "authProviders": {
28248
28352
  "type": "array",
28249
28353
  "items": {
@@ -28262,7 +28366,6 @@
28262
28366
  },
28263
28367
  "required": [
28264
28368
  "id",
28265
- "riskEvaluation",
28266
28369
  "authProviders",
28267
28370
  "createdAt",
28268
28371
  "lastSignInAt",
@@ -28459,68 +28562,6 @@
28459
28562
  }
28460
28563
  ]
28461
28564
  },
28462
- "PublishedContentLookup": {
28463
- "oneOf": [
28464
- {
28465
- "type": "object",
28466
- "title": "Redirect",
28467
- "properties": {
28468
- "target": {
28469
- "type": "string",
28470
- "description": "Type of target for the redirect",
28471
- "enum": [
28472
- "application",
28473
- "content",
28474
- "external"
28475
- ]
28476
- },
28477
- "redirect": {
28478
- "$ref": "#/components/schemas/URL"
28479
- }
28480
- },
28481
- "required": [
28482
- "target",
28483
- "redirect"
28484
- ]
28485
- },
28486
- {
28487
- "type": "object",
28488
- "title": "Content",
28489
- "properties": {
28490
- "space": {
28491
- "type": "string",
28492
- "description": "ID of the space matching."
28493
- },
28494
- "changeRequest": {
28495
- "type": "string",
28496
- "description": "Identifier of the change request being previewed in this URL."
28497
- },
28498
- "revision": {
28499
- "type": "string",
28500
- "description": "Identifier of the revision being previewed in this URL."
28501
- },
28502
- "pathname": {
28503
- "type": "string",
28504
- "description": "Path of the content relative to the space"
28505
- },
28506
- "basePath": {
28507
- "type": "string",
28508
- "description": "Prefix of the path in the URL dedicated to the space"
28509
- },
28510
- "apiToken": {
28511
- "type": "string",
28512
- "description": "Short-lived API token to fetch content related to the space in the context of the URL."
28513
- }
28514
- },
28515
- "required": [
28516
- "space",
28517
- "pathname",
28518
- "basePath",
28519
- "apiToken"
28520
- ]
28521
- }
28522
- ]
28523
- },
28524
28565
  "PublishedSiteContentLookup": {
28525
28566
  "oneOf": [
28526
28567
  {
@@ -28602,6 +28643,16 @@
28602
28643
  }
28603
28644
  ]
28604
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
+ },
28605
28656
  "TriggerContentIndexingContext": {
28606
28657
  "type": "object",
28607
28658
  "description": "The context to send when triggering a content indexing.",
@@ -28620,6 +28671,36 @@
28620
28671
  "force"
28621
28672
  ]
28622
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
+ },
28623
28704
  "DocumentBlock": {
28624
28705
  "oneOf": [
28625
28706
  {
@@ -28811,6 +28892,16 @@
28811
28892
  "secrets"
28812
28893
  ]
28813
28894
  },
28895
+ "BillingTrialStatus": {
28896
+ "type": "string",
28897
+ "enum": [
28898
+ "notapplicable",
28899
+ "none",
28900
+ "active",
28901
+ "ended",
28902
+ "expired"
28903
+ ]
28904
+ },
28814
28905
  "APIIntegrationScope": {
28815
28906
  "type": "string",
28816
28907
  "enum": [
@@ -29224,6 +29315,24 @@
29224
29315
  "user"
29225
29316
  ]
29226
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
+ },
29227
29336
  "OrganizationTeamsChannel": {
29228
29337
  "type": "object",
29229
29338
  "properties": {
@@ -29367,13 +29476,13 @@
29367
29476
  "organization"
29368
29477
  ]
29369
29478
  },
29370
- "OrganizationContentAuditsChannel": {
29479
+ "OrganizationIntegrationsChannel": {
29371
29480
  "type": "object",
29372
29481
  "properties": {
29373
29482
  "channel": {
29374
29483
  "type": "string",
29375
29484
  "enum": [
29376
- "organization-content-audits"
29485
+ "organization-integrations"
29377
29486
  ]
29378
29487
  },
29379
29488
  "organization": {
@@ -29385,13 +29494,13 @@
29385
29494
  "organization"
29386
29495
  ]
29387
29496
  },
29388
- "OrganizationIntegrationsChannel": {
29497
+ "OrganizationInstallationsChannel": {
29389
29498
  "type": "object",
29390
29499
  "properties": {
29391
29500
  "channel": {
29392
29501
  "type": "string",
29393
29502
  "enum": [
29394
- "organization-integrations"
29503
+ "organization-installations"
29395
29504
  ]
29396
29505
  },
29397
29506
  "organization": {
@@ -29403,13 +29512,14 @@
29403
29512
  "organization"
29404
29513
  ]
29405
29514
  },
29406
- "OrganizationInstallationsChannel": {
29515
+ "OrganizationSitesChannel": {
29407
29516
  "type": "object",
29517
+ "description": "Subscription channel for changes in sites in an organization.",
29408
29518
  "properties": {
29409
29519
  "channel": {
29410
29520
  "type": "string",
29411
29521
  "enum": [
29412
- "organization-installations"
29522
+ "organization-sites"
29413
29523
  ]
29414
29524
  },
29415
29525
  "organization": {
@@ -29421,14 +29531,13 @@
29421
29531
  "organization"
29422
29532
  ]
29423
29533
  },
29424
- "OrganizationSitesChannel": {
29534
+ "OrganizationExperimentalFeaturesChannel": {
29425
29535
  "type": "object",
29426
- "description": "Subscription channel for changes in sites in an organization.",
29427
29536
  "properties": {
29428
29537
  "channel": {
29429
29538
  "type": "string",
29430
29539
  "enum": [
29431
- "organization-sites"
29540
+ "organization-experimental-features"
29432
29541
  ]
29433
29542
  },
29434
29543
  "organization": {
@@ -29440,13 +29549,14 @@
29440
29549
  "organization"
29441
29550
  ]
29442
29551
  },
29443
- "OrganizationExperimentalFeaturesChannel": {
29552
+ "OrganizationSyncedBlocksChannel": {
29444
29553
  "type": "object",
29554
+ "description": "Subscription channel for changes in synced blocks in an organization.",
29445
29555
  "properties": {
29446
29556
  "channel": {
29447
29557
  "type": "string",
29448
29558
  "enum": [
29449
- "organization-experimental-features"
29559
+ "organization-synced-blocks"
29450
29560
  ]
29451
29561
  },
29452
29562
  "organization": {
@@ -29976,6 +30086,9 @@
29976
30086
  {
29977
30087
  "$ref": "#/components/schemas/OrganizationMemberChannel"
29978
30088
  },
30089
+ {
30090
+ "$ref": "#/components/schemas/OrganizationSAMLChannel"
30091
+ },
29979
30092
  {
29980
30093
  "$ref": "#/components/schemas/OrganizationTeamsChannel"
29981
30094
  },
@@ -29997,9 +30110,6 @@
29997
30110
  {
29998
30111
  "$ref": "#/components/schemas/OrganizationCapturesChannel"
29999
30112
  },
30000
- {
30001
- "$ref": "#/components/schemas/OrganizationContentAuditsChannel"
30002
- },
30003
30113
  {
30004
30114
  "$ref": "#/components/schemas/OrganizationIntegrationsChannel"
30005
30115
  },
@@ -30012,6 +30122,9 @@
30012
30122
  {
30013
30123
  "$ref": "#/components/schemas/OrganizationExperimentalFeaturesChannel"
30014
30124
  },
30125
+ {
30126
+ "$ref": "#/components/schemas/OrganizationSyncedBlocksChannel"
30127
+ },
30015
30128
  {
30016
30129
  "$ref": "#/components/schemas/OrganizationSyncedBlockChannel"
30017
30130
  },