@gitbook/api 0.60.0 → 0.62.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",
@@ -12103,129 +12248,18 @@
12103
12248
  }
12104
12249
  },
12105
12250
  "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"
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
- },
12251
+ "200": {
12252
+ "description": "OK",
12253
+ "content": {
12254
+ "application/json": {
12255
+ "schema": {
12256
+ "oneOf": [
12227
12257
  {
12228
12258
  "type": "object",
12259
+ "required": [
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",
@@ -18845,7 +18871,18 @@
18845
18871
  },
18846
18872
  "hidden": {
18847
18873
  "type": "boolean",
18848
- "description": "If true, the page is not displayed in the navigation, while still being accessible."
18874
+ "description": "If true, the page is not displayed in the navigation, while still being accessible.",
18875
+ "default": false
18876
+ },
18877
+ "noIndex": {
18878
+ "type": "boolean",
18879
+ "description": "If true, the page is not indexable in the search and ask features.",
18880
+ "default": false
18881
+ },
18882
+ "noRobotsIndex": {
18883
+ "type": "boolean",
18884
+ "description": "If true, the page is not indexable by search engine robots.",
18885
+ "default": false
18849
18886
  }
18850
18887
  },
18851
18888
  "required": [
@@ -18886,6 +18923,11 @@
18886
18923
  },
18887
18924
  "href": {
18888
18925
  "type": "string"
18926
+ },
18927
+ "hidden": {
18928
+ "type": "boolean",
18929
+ "description": "If true, the page is not displayed in the navigation, while still being accessible.",
18930
+ "default": false
18889
18931
  }
18890
18932
  },
18891
18933
  "required": [
@@ -19199,6 +19241,26 @@
19199
19241
  "referrer"
19200
19242
  ]
19201
19243
  },
19244
+ "InviteEmailsUsersTeamsToSpace": {
19245
+ "type": "object",
19246
+ "properties": {
19247
+ "teams": {
19248
+ "type": "array",
19249
+ "items": {
19250
+ "type": "string",
19251
+ "description": "The ID of the team to be invited"
19252
+ }
19253
+ },
19254
+ "role": {
19255
+ "description": "Role to set on the team.",
19256
+ "$ref": "#/components/schemas/MemberRoleOrGuest"
19257
+ }
19258
+ },
19259
+ "required": [
19260
+ "teams",
19261
+ "role"
19262
+ ]
19263
+ },
19202
19264
  "RevisionPageGroup": {
19203
19265
  "allOf": [
19204
19266
  {
@@ -19230,7 +19292,18 @@
19230
19292
  },
19231
19293
  "hidden": {
19232
19294
  "type": "boolean",
19233
- "description": "If true, the page is not displayed in the navigation, while still being accessible."
19295
+ "description": "If true, the page is not displayed in the navigation, while still being accessible.",
19296
+ "default": false
19297
+ },
19298
+ "noIndex": {
19299
+ "type": "boolean",
19300
+ "description": "If true, the page is not indexable in the search and ask features.",
19301
+ "default": false
19302
+ },
19303
+ "noRobotsIndex": {
19304
+ "type": "boolean",
19305
+ "description": "If true, the page is not indexable by search engine robots.",
19306
+ "default": false
19234
19307
  },
19235
19308
  "pages": {
19236
19309
  "type": "array",
@@ -19804,10 +19877,6 @@
19804
19877
  "description": "If true, the organization is configured to use all our AI features.",
19805
19878
  "type": "boolean"
19806
19879
  },
19807
- "aiInsights": {
19808
- "description": "If true, the organization is configured to run content audits on any space update",
19809
- "type": "boolean"
19810
- },
19811
19880
  "urls": {
19812
19881
  "type": "object",
19813
19882
  "description": "URLs associated with the object",
@@ -20805,6 +20874,19 @@
20805
20874
  "description": "Title describing the synced block.",
20806
20875
  "maxLength": 100
20807
20876
  },
20877
+ "usage": {
20878
+ "type": "object",
20879
+ "description": "Usage of synced block",
20880
+ "properties": {
20881
+ "spaces": {
20882
+ "description": "Number of spaces where the synced block is used in",
20883
+ "type": "integer"
20884
+ }
20885
+ },
20886
+ "required": [
20887
+ "spaces"
20888
+ ]
20889
+ },
20808
20890
  "urls": {
20809
20891
  "type": "object",
20810
20892
  "description": "URLs associated with the object",
@@ -20824,6 +20906,7 @@
20824
20906
  "organization",
20825
20907
  "source",
20826
20908
  "createdAt",
20909
+ "usage",
20827
20910
  "urls"
20828
20911
  ]
20829
20912
  },
@@ -22081,6 +22164,7 @@
22081
22164
  "zh",
22082
22165
  "ja",
22083
22166
  "de",
22167
+ "nl",
22084
22168
  "pt-br"
22085
22169
  ]
22086
22170
  },
@@ -22411,53 +22495,13 @@
22411
22495
  "pdf",
22412
22496
  "feedback",
22413
22497
  "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"
22498
+ "trademark",
22499
+ "pagination",
22500
+ "git",
22501
+ "privacyPolicy",
22502
+ "socialPreview"
22449
22503
  ]
22450
22504
  },
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
22505
  "SpaceIntegrationBlocks": {
22462
22506
  "type": "array",
22463
22507
  "items": {
@@ -25764,6 +25808,34 @@
25764
25808
  "interval": {
25765
25809
  "$ref": "#/components/schemas/BillingInterval"
25766
25810
  },
25811
+ "exclude": {
25812
+ "type": "object",
25813
+ "description": "Members to remove or sites to unpublish before upgrading",
25814
+ "minProperties": 1,
25815
+ "properties": {
25816
+ "members": {
25817
+ "type": "array",
25818
+ "items": {
25819
+ "type": "string",
25820
+ "description": "A list of member identifiers to be removed"
25821
+ }
25822
+ },
25823
+ "premiumSites": {
25824
+ "type": "array",
25825
+ "items": {
25826
+ "type": "string",
25827
+ "description": "A list of premium site identifiers to be unpublished"
25828
+ }
25829
+ },
25830
+ "audienceSites": {
25831
+ "type": "array",
25832
+ "items": {
25833
+ "type": "string",
25834
+ "description": "A list of audience site identifiers to be unpublished"
25835
+ }
25836
+ }
25837
+ }
25838
+ },
25767
25839
  "reason": {
25768
25840
  "type": "string",
25769
25841
  "description": "Reason that triggered the billing upgrade"
@@ -25988,6 +26060,106 @@
25988
26060
  "stage"
25989
26061
  ]
25990
26062
  },
26063
+ "SAMLProviderLabel": {
26064
+ "type": "string",
26065
+ "minLength": 1,
26066
+ "maxLength": 30
26067
+ },
26068
+ "SAMLProviderEntityID": {
26069
+ "type": "string",
26070
+ "maxLength": 1024
26071
+ },
26072
+ "SAMLProviderCertificate": {
26073
+ "type": "string",
26074
+ "maxLength": 10000
26075
+ },
26076
+ "OrganizationSAMLProvider": {
26077
+ "type": "object",
26078
+ "properties": {
26079
+ "object": {
26080
+ "type": "string",
26081
+ "description": "Type of Object, always equals to \"saml-provider\"",
26082
+ "enum": [
26083
+ "saml-provider"
26084
+ ]
26085
+ },
26086
+ "id": {
26087
+ "type": "string",
26088
+ "description": "Unique identifier for the provider."
26089
+ },
26090
+ "label": {
26091
+ "$ref": "#/components/schemas/SAMLProviderLabel"
26092
+ },
26093
+ "ssoURL": {
26094
+ "$ref": "#/components/schemas/URL"
26095
+ },
26096
+ "entityID": {
26097
+ "$ref": "#/components/schemas/SAMLProviderEntityID"
26098
+ },
26099
+ "certificate": {
26100
+ "$ref": "#/components/schemas/SAMLProviderCertificate"
26101
+ },
26102
+ "defaultTeam": {
26103
+ "$ref": "#/components/schemas/OrganizationTeam"
26104
+ },
26105
+ "defaultRole": {
26106
+ "$ref": "#/components/schemas/MemberRoleOrGuest"
26107
+ },
26108
+ "createdAt": {
26109
+ "description": "Date at which the provider was created.",
26110
+ "$ref": "#/components/schemas/Timestamp"
26111
+ },
26112
+ "service": {
26113
+ "description": "Metadata about the service provider.",
26114
+ "properties": {
26115
+ "acsURL": {
26116
+ "type": "string",
26117
+ "description": "Assertion Consumer Service (ACS) URL",
26118
+ "format": "uri"
26119
+ },
26120
+ "startURL": {
26121
+ "type": "string",
26122
+ "description": "Start URL for the Identity Provider",
26123
+ "format": "uri"
26124
+ },
26125
+ "entityID": {
26126
+ "$ref": "#/components/schemas/SAMLProviderEntityID"
26127
+ }
26128
+ },
26129
+ "required": [
26130
+ "acsURL",
26131
+ "startURL",
26132
+ "entityID"
26133
+ ]
26134
+ },
26135
+ "urls": {
26136
+ "type": "object",
26137
+ "description": "URLs associated with the object",
26138
+ "properties": {
26139
+ "location": {
26140
+ "type": "string",
26141
+ "description": "URL of the SAML Provider in the API",
26142
+ "format": "uri"
26143
+ }
26144
+ },
26145
+ "required": [
26146
+ "location"
26147
+ ]
26148
+ }
26149
+ },
26150
+ "required": [
26151
+ "object",
26152
+ "id",
26153
+ "label",
26154
+ "ssoURL",
26155
+ "entityID",
26156
+ "certificate",
26157
+ "defaultRole",
26158
+ "createdAt",
26159
+ "service",
26160
+ "urls"
26161
+ ]
26162
+ },
25991
26163
  "OrganizationUsageSpaces": {
25992
26164
  "type": "object",
25993
26165
  "description": "Spaces usage metrics of an organization",
@@ -26543,113 +26715,13 @@
26543
26715
  }
26544
26716
  }
26545
26717
  },
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
26718
  "SiteType": {
26647
26719
  "type": "string",
26648
26720
  "description": "The type of the site",
26649
26721
  "enum": [
26650
26722
  "basic",
26651
- "standard",
26652
26723
  "premium",
26724
+ "audience",
26653
26725
  "legacy-basic",
26654
26726
  "legacy-premium"
26655
26727
  ]
@@ -26726,10 +26798,6 @@
26726
26798
  },
26727
26799
  "topic": {
26728
26800
  "$ref": "#/components/schemas/SiteAdsTopic"
26729
- },
26730
- "accountEmail": {
26731
- "type": "string",
26732
- "description": "The email address linked to the Ads partner account"
26733
26801
  }
26734
26802
  }
26735
26803
  },
@@ -26752,8 +26820,7 @@
26752
26820
  "required": [
26753
26821
  "status",
26754
26822
  "topic",
26755
- "zoneId",
26756
- "accountEmail"
26823
+ "zoneId"
26757
26824
  ],
26758
26825
  "properties": {
26759
26826
  "status": {
@@ -26769,10 +26836,6 @@
26769
26836
  "zoneId": {
26770
26837
  "type": "string",
26771
26838
  "description": "The ad network zone ID"
26772
- },
26773
- "accountEmail": {
26774
- "type": "string",
26775
- "description": "The email address linked to the Ads partner account"
26776
26839
  }
26777
26840
  }
26778
26841
  }
@@ -26817,46 +26880,137 @@
26817
26880
  "type": "string",
26818
26881
  "format": "date-time"
26819
26882
  },
26820
- "ads": {
26821
- "$ref": "#/components/schemas/SiteAds"
26883
+ "ads": {
26884
+ "$ref": "#/components/schemas/SiteAds"
26885
+ },
26886
+ "urls": {
26887
+ "type": "object",
26888
+ "description": "URLs associated with the object",
26889
+ "properties": {
26890
+ "location": {
26891
+ "type": "string",
26892
+ "description": "URL of the site in the API",
26893
+ "format": "uri"
26894
+ },
26895
+ "app": {
26896
+ "type": "string",
26897
+ "description": "URL of the site in the application",
26898
+ "format": "uri"
26899
+ },
26900
+ "published": {
26901
+ "type": "string",
26902
+ "description": "URL of the published version of the site. Only defined when site is published.",
26903
+ "format": "uri"
26904
+ }
26905
+ },
26906
+ "required": [
26907
+ "app",
26908
+ "location"
26909
+ ]
26910
+ }
26911
+ },
26912
+ "required": [
26913
+ "object",
26914
+ "id",
26915
+ "type",
26916
+ "title",
26917
+ "visibility",
26918
+ "published",
26919
+ "createdAt",
26920
+ "siteSpaces",
26921
+ "defaultSpace",
26922
+ "urls"
26923
+ ]
26924
+ },
26925
+ "BillingOperationPreviewResponse": {
26926
+ "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",
26927
+ "oneOf": [
26928
+ {
26929
+ "type": "object",
26930
+ "properties": {
26931
+ "type": {
26932
+ "description": "User can go ahead with the operation without any additional steps. Their subscription will be updated to reflect the new changes.",
26933
+ "type": "string",
26934
+ "enum": [
26935
+ "go-ahead"
26936
+ ]
26937
+ }
26938
+ },
26939
+ "required": [
26940
+ "type"
26941
+ ]
26942
+ },
26943
+ {
26944
+ "type": "object",
26945
+ "properties": {
26946
+ "type": {
26947
+ "description": "By going ahead with this operation, the user will be starting a trial in GitBook.",
26948
+ "type": "string",
26949
+ "enum": [
26950
+ "trial-available"
26951
+ ]
26952
+ }
26953
+ },
26954
+ "required": [
26955
+ "type"
26956
+ ]
26957
+ },
26958
+ {
26959
+ "type": "object",
26960
+ "properties": {
26961
+ "type": {
26962
+ "description": "User must checkout to complete the operation.",
26963
+ "type": "string",
26964
+ "enum": [
26965
+ "checkout"
26966
+ ]
26967
+ },
26968
+ "invoice": {
26969
+ "$ref": "#/components/schemas/BillingInvoicePreview"
26970
+ }
26971
+ },
26972
+ "required": [
26973
+ "type"
26974
+ ]
26975
+ },
26976
+ {
26977
+ "type": "object",
26978
+ "properties": {
26979
+ "type": {
26980
+ "description": "User cannot proceed with the operation due to lack of permissions.",
26981
+ "type": "string",
26982
+ "enum": [
26983
+ "no-permissions"
26984
+ ]
26985
+ }
26986
+ },
26987
+ "required": [
26988
+ "type"
26989
+ ]
26822
26990
  },
26823
- "urls": {
26991
+ {
26824
26992
  "type": "object",
26825
- "description": "URLs associated with the object",
26826
26993
  "properties": {
26827
- "location": {
26994
+ "type": {
26995
+ "description": "User needs to go through the legacy upgrade flow.",
26828
26996
  "type": "string",
26829
- "description": "URL of the site in the API",
26830
- "format": "uri"
26997
+ "enum": [
26998
+ "legacy-upgrade"
26999
+ ]
26831
27000
  },
26832
- "app": {
26833
- "type": "string",
26834
- "description": "URL of the site in the application",
26835
- "format": "uri"
27001
+ "plan": {
27002
+ "description": "The plan the user must upgrade to.",
27003
+ "$ref": "#/components/schemas/BillingProduct"
26836
27004
  },
26837
- "published": {
26838
- "type": "string",
26839
- "description": "URL of the published version of the site. Only defined when site is published.",
26840
- "format": "uri"
27005
+ "invoice": {
27006
+ "$ref": "#/components/schemas/BillingInvoicePreview"
26841
27007
  }
26842
27008
  },
26843
27009
  "required": [
26844
- "app",
26845
- "location"
27010
+ "type",
27011
+ "plan"
26846
27012
  ]
26847
27013
  }
26848
- },
26849
- "required": [
26850
- "object",
26851
- "id",
26852
- "type",
26853
- "title",
26854
- "visibility",
26855
- "published",
26856
- "createdAt",
26857
- "siteSpaces",
26858
- "defaultSpace",
26859
- "urls"
26860
27014
  ]
26861
27015
  },
26862
27016
  "SitePublishingAuth": {
@@ -27810,6 +27964,43 @@
27810
27964
  "spaceId"
27811
27965
  ]
27812
27966
  },
27967
+ "SiteAdsStats": {
27968
+ "type": "object",
27969
+ "required": [
27970
+ "impressions",
27971
+ "clicks",
27972
+ "revenue",
27973
+ "account"
27974
+ ],
27975
+ "properties": {
27976
+ "impressions": {
27977
+ "type": "number"
27978
+ },
27979
+ "clicks": {
27980
+ "type": "number"
27981
+ },
27982
+ "revenue": {
27983
+ "type": "string"
27984
+ },
27985
+ "account": {
27986
+ "type": "object",
27987
+ "properties": {
27988
+ "email": {
27989
+ "type": "string",
27990
+ "description": "Email address on the Ads platform."
27991
+ },
27992
+ "url": {
27993
+ "type": "string",
27994
+ "description": "URL to configure payout."
27995
+ }
27996
+ },
27997
+ "required": [
27998
+ "email",
27999
+ "url"
28000
+ ]
28001
+ }
28002
+ }
28003
+ },
27813
28004
  "CustomHostnameDnsStatus": {
27814
28005
  "type": "string",
27815
28006
  "enum": [
@@ -28150,63 +28341,6 @@
28150
28341
  "searchKey"
28151
28342
  ]
28152
28343
  },
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
28344
  "FirebaseUserInfo": {
28211
28345
  "type": "object",
28212
28346
  "description": "The User Firebase Auth Info.",
@@ -28241,9 +28375,6 @@
28241
28375
  "id": {
28242
28376
  "type": "string"
28243
28377
  },
28244
- "riskEvaluation": {
28245
- "$ref": "#/components/schemas/UserRiskEvaluation"
28246
- },
28247
28378
  "authProviders": {
28248
28379
  "type": "array",
28249
28380
  "items": {
@@ -28262,7 +28393,6 @@
28262
28393
  },
28263
28394
  "required": [
28264
28395
  "id",
28265
- "riskEvaluation",
28266
28396
  "authProviders",
28267
28397
  "createdAt",
28268
28398
  "lastSignInAt",
@@ -28459,68 +28589,6 @@
28459
28589
  }
28460
28590
  ]
28461
28591
  },
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
28592
  "PublishedSiteContentLookup": {
28525
28593
  "oneOf": [
28526
28594
  {
@@ -28602,6 +28670,16 @@
28602
28670
  }
28603
28671
  ]
28604
28672
  },
28673
+ "UpdateContentPublishingAuth": {
28674
+ "type": "object",
28675
+ "properties": {
28676
+ "fallbackURL": {
28677
+ "type": "string",
28678
+ "format": "uri",
28679
+ "description": "A fallback URL that will be used if authentication fails."
28680
+ }
28681
+ }
28682
+ },
28605
28683
  "TriggerContentIndexingContext": {
28606
28684
  "type": "object",
28607
28685
  "description": "The context to send when triggering a content indexing.",
@@ -28620,6 +28698,36 @@
28620
28698
  "force"
28621
28699
  ]
28622
28700
  },
28701
+ "ContentPublishingAuth": {
28702
+ "type": "object",
28703
+ "properties": {
28704
+ "object": {
28705
+ "type": "string",
28706
+ "description": "Type of Object, always equals to \"publishing-auth\"",
28707
+ "enum": [
28708
+ "publishing-auth"
28709
+ ]
28710
+ },
28711
+ "id": {
28712
+ "type": "string",
28713
+ "description": "Unique identifier for the content."
28714
+ },
28715
+ "privateKey": {
28716
+ "type": "string",
28717
+ "description": "Private key used to sign JWT tokens."
28718
+ },
28719
+ "fallbackURL": {
28720
+ "type": "string",
28721
+ "format": "uri",
28722
+ "description": "URL to redirect to when the visitor auth secret is invalid."
28723
+ }
28724
+ },
28725
+ "required": [
28726
+ "object",
28727
+ "id",
28728
+ "privateKey"
28729
+ ]
28730
+ },
28623
28731
  "DocumentBlock": {
28624
28732
  "oneOf": [
28625
28733
  {
@@ -28811,6 +28919,16 @@
28811
28919
  "secrets"
28812
28920
  ]
28813
28921
  },
28922
+ "BillingTrialStatus": {
28923
+ "type": "string",
28924
+ "enum": [
28925
+ "notapplicable",
28926
+ "none",
28927
+ "active",
28928
+ "ended",
28929
+ "expired"
28930
+ ]
28931
+ },
28814
28932
  "APIIntegrationScope": {
28815
28933
  "type": "string",
28816
28934
  "enum": [
@@ -29224,6 +29342,24 @@
29224
29342
  "user"
29225
29343
  ]
29226
29344
  },
29345
+ "OrganizationSAMLChannel": {
29346
+ "type": "object",
29347
+ "properties": {
29348
+ "channel": {
29349
+ "type": "string",
29350
+ "enum": [
29351
+ "organization-saml"
29352
+ ]
29353
+ },
29354
+ "organization": {
29355
+ "type": "string"
29356
+ }
29357
+ },
29358
+ "required": [
29359
+ "channel",
29360
+ "organization"
29361
+ ]
29362
+ },
29227
29363
  "OrganizationTeamsChannel": {
29228
29364
  "type": "object",
29229
29365
  "properties": {
@@ -29367,13 +29503,13 @@
29367
29503
  "organization"
29368
29504
  ]
29369
29505
  },
29370
- "OrganizationContentAuditsChannel": {
29506
+ "OrganizationIntegrationsChannel": {
29371
29507
  "type": "object",
29372
29508
  "properties": {
29373
29509
  "channel": {
29374
29510
  "type": "string",
29375
29511
  "enum": [
29376
- "organization-content-audits"
29512
+ "organization-integrations"
29377
29513
  ]
29378
29514
  },
29379
29515
  "organization": {
@@ -29385,13 +29521,13 @@
29385
29521
  "organization"
29386
29522
  ]
29387
29523
  },
29388
- "OrganizationIntegrationsChannel": {
29524
+ "OrganizationInstallationsChannel": {
29389
29525
  "type": "object",
29390
29526
  "properties": {
29391
29527
  "channel": {
29392
29528
  "type": "string",
29393
29529
  "enum": [
29394
- "organization-integrations"
29530
+ "organization-installations"
29395
29531
  ]
29396
29532
  },
29397
29533
  "organization": {
@@ -29403,13 +29539,14 @@
29403
29539
  "organization"
29404
29540
  ]
29405
29541
  },
29406
- "OrganizationInstallationsChannel": {
29542
+ "OrganizationSitesChannel": {
29407
29543
  "type": "object",
29544
+ "description": "Subscription channel for changes in sites in an organization.",
29408
29545
  "properties": {
29409
29546
  "channel": {
29410
29547
  "type": "string",
29411
29548
  "enum": [
29412
- "organization-installations"
29549
+ "organization-sites"
29413
29550
  ]
29414
29551
  },
29415
29552
  "organization": {
@@ -29421,14 +29558,13 @@
29421
29558
  "organization"
29422
29559
  ]
29423
29560
  },
29424
- "OrganizationSitesChannel": {
29561
+ "OrganizationExperimentalFeaturesChannel": {
29425
29562
  "type": "object",
29426
- "description": "Subscription channel for changes in sites in an organization.",
29427
29563
  "properties": {
29428
29564
  "channel": {
29429
29565
  "type": "string",
29430
29566
  "enum": [
29431
- "organization-sites"
29567
+ "organization-experimental-features"
29432
29568
  ]
29433
29569
  },
29434
29570
  "organization": {
@@ -29440,13 +29576,14 @@
29440
29576
  "organization"
29441
29577
  ]
29442
29578
  },
29443
- "OrganizationExperimentalFeaturesChannel": {
29579
+ "OrganizationSyncedBlocksChannel": {
29444
29580
  "type": "object",
29581
+ "description": "Subscription channel for changes in synced blocks in an organization.",
29445
29582
  "properties": {
29446
29583
  "channel": {
29447
29584
  "type": "string",
29448
29585
  "enum": [
29449
- "organization-experimental-features"
29586
+ "organization-synced-blocks"
29450
29587
  ]
29451
29588
  },
29452
29589
  "organization": {
@@ -29976,6 +30113,9 @@
29976
30113
  {
29977
30114
  "$ref": "#/components/schemas/OrganizationMemberChannel"
29978
30115
  },
30116
+ {
30117
+ "$ref": "#/components/schemas/OrganizationSAMLChannel"
30118
+ },
29979
30119
  {
29980
30120
  "$ref": "#/components/schemas/OrganizationTeamsChannel"
29981
30121
  },
@@ -29997,9 +30137,6 @@
29997
30137
  {
29998
30138
  "$ref": "#/components/schemas/OrganizationCapturesChannel"
29999
30139
  },
30000
- {
30001
- "$ref": "#/components/schemas/OrganizationContentAuditsChannel"
30002
- },
30003
30140
  {
30004
30141
  "$ref": "#/components/schemas/OrganizationIntegrationsChannel"
30005
30142
  },
@@ -30012,6 +30149,9 @@
30012
30149
  {
30013
30150
  "$ref": "#/components/schemas/OrganizationExperimentalFeaturesChannel"
30014
30151
  },
30152
+ {
30153
+ "$ref": "#/components/schemas/OrganizationSyncedBlocksChannel"
30154
+ },
30015
30155
  {
30016
30156
  "$ref": "#/components/schemas/OrganizationSyncedBlockChannel"
30017
30157
  },