@gitbook/api 0.45.0 → 0.47.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
@@ -148,6 +148,15 @@
148
148
  "default": true
149
149
  }
150
150
  },
151
+ "siteCustomizationUnmasked": {
152
+ "name": "unmasked",
153
+ "in": "query",
154
+ "description": "Access the customization settings without applying any masking from the advanced customization flag.",
155
+ "schema": {
156
+ "type": "boolean",
157
+ "default": false
158
+ }
159
+ },
151
160
  "spaceId": {
152
161
  "name": "spaceId",
153
162
  "in": "path",
@@ -708,6 +717,9 @@
708
717
  },
709
718
  "space_selection": {
710
719
  "$ref": "#/components/schemas/IntegrationInstallationSpaceSelection"
720
+ },
721
+ "site_selection": {
722
+ "$ref": "#/components/schemas/IntegrationInstallationSiteSelection"
711
723
  }
712
724
  }
713
725
  },
@@ -1474,12 +1486,17 @@
1474
1486
  "integration"
1475
1487
  ]
1476
1488
  },
1489
+ "integration": {
1490
+ "description": "The identifier of the integration performing the rendering",
1491
+ "type": "string"
1492
+ },
1477
1493
  "block": {
1478
1494
  "$ref": "#/components/schemas/IntegrationBlock"
1479
1495
  }
1480
1496
  },
1481
1497
  "required": [
1482
1498
  "type",
1499
+ "integration",
1483
1500
  "block"
1484
1501
  ]
1485
1502
  }
@@ -4897,7 +4914,10 @@
4897
4914
  {
4898
4915
  "$ref": "#/components/schemas/ContentLocationSyncedBlock"
4899
4916
  }
4900
- ]
4917
+ ],
4918
+ "discriminator": {
4919
+ "propertyName": "kind"
4920
+ }
4901
4921
  },
4902
4922
  "ContentLocationURL": {
4903
4923
  "type": "object",
@@ -4932,11 +4952,15 @@
4932
4952
  "space": {
4933
4953
  "$ref": "#/components/schemas/Space"
4934
4954
  },
4935
- "changeRequest": {
4936
- "$ref": "#/components/schemas/ChangeRequest"
4937
- },
4938
- "revision": {
4939
- "$ref": "#/components/schemas/Revision"
4955
+ "versionContext": {
4956
+ "oneOf": [
4957
+ {
4958
+ "$ref": "#/components/schemas/ContentLocationRevisionContext"
4959
+ },
4960
+ {
4961
+ "$ref": "#/components/schemas/ContentLocationChangeRequestContext"
4962
+ }
4963
+ ]
4940
4964
  },
4941
4965
  "file": {
4942
4966
  "$ref": "#/components/schemas/RevisionFile"
@@ -4967,19 +4991,57 @@
4967
4991
  "space": {
4968
4992
  "$ref": "#/components/schemas/Space"
4969
4993
  },
4970
- "changeRequest": {
4971
- "$ref": "#/components/schemas/ChangeRequest"
4972
- },
4973
- "revision": {
4974
- "$ref": "#/components/schemas/Revision"
4975
- },
4976
- "anchor": {
4977
- "description": "The anchor within the page.",
4978
- "type": "string"
4994
+ "versionContext": {
4995
+ "oneOf": [
4996
+ {
4997
+ "$ref": "#/components/schemas/ContentLocationRevisionContext"
4998
+ },
4999
+ {
5000
+ "$ref": "#/components/schemas/ContentLocationChangeRequestContext"
5001
+ }
5002
+ ]
4979
5003
  },
4980
- "node": {
4981
- "description": "The node id within the page.",
4982
- "type": "string"
5004
+ "internalLocation": {
5005
+ "oneOf": [
5006
+ {
5007
+ "type": "object",
5008
+ "properties": {
5009
+ "type": {
5010
+ "type": "string",
5011
+ "enum": [
5012
+ "anchor"
5013
+ ]
5014
+ },
5015
+ "anchor": {
5016
+ "description": "The anchor within the page.",
5017
+ "type": "string"
5018
+ }
5019
+ },
5020
+ "required": [
5021
+ "type",
5022
+ "anchor"
5023
+ ]
5024
+ },
5025
+ {
5026
+ "type": "object",
5027
+ "properties": {
5028
+ "type": {
5029
+ "type": "string",
5030
+ "enum": [
5031
+ "node"
5032
+ ]
5033
+ },
5034
+ "node": {
5035
+ "description": "The node id within the page.",
5036
+ "type": "string"
5037
+ }
5038
+ },
5039
+ "required": [
5040
+ "type",
5041
+ "node"
5042
+ ]
5043
+ }
5044
+ ]
4983
5045
  }
4984
5046
  },
4985
5047
  "required": [
@@ -5095,6 +5157,42 @@
5095
5157
  "syncedBlock"
5096
5158
  ]
5097
5159
  },
5160
+ "ContentLocationChangeRequestContext": {
5161
+ "type": "object",
5162
+ "required": [
5163
+ "type",
5164
+ "changeRequest"
5165
+ ],
5166
+ "properties": {
5167
+ "type": {
5168
+ "type": "string",
5169
+ "enum": [
5170
+ "changeRequest"
5171
+ ]
5172
+ },
5173
+ "changeRequest": {
5174
+ "$ref": "#/components/schemas/ChangeRequest"
5175
+ }
5176
+ }
5177
+ },
5178
+ "ContentLocationRevisionContext": {
5179
+ "type": "object",
5180
+ "required": [
5181
+ "type",
5182
+ "revision"
5183
+ ],
5184
+ "properties": {
5185
+ "type": {
5186
+ "type": "string",
5187
+ "enum": [
5188
+ "revision"
5189
+ ]
5190
+ },
5191
+ "revision": {
5192
+ "$ref": "#/components/schemas/Revision"
5193
+ }
5194
+ }
5195
+ },
5098
5196
  "Space": {
5099
5197
  "type": "object",
5100
5198
  "properties": {
@@ -6920,10 +7018,6 @@
6920
7018
  "visitorAuth": {
6921
7019
  "description": "Count of all visitor-authenticated sites",
6922
7020
  "type": "number"
6923
- },
6924
- "unpublished": {
6925
- "description": "Count of all unpublished sites",
6926
- "type": "number"
6927
7021
  }
6928
7022
  },
6929
7023
  "required": [
@@ -6931,8 +7025,7 @@
6931
7025
  "public",
6932
7026
  "unlisted",
6933
7027
  "shareLink",
6934
- "visitorAuth",
6935
- "unpublished"
7028
+ "visitorAuth"
6936
7029
  ]
6937
7030
  },
6938
7031
  "OrganizationUsageMembers": {
@@ -7648,82 +7741,21 @@
7648
7741
  },
7649
7742
  "targetReference": {
7650
7743
  "description": "The reference target where a list of pages are pointing at",
7651
- "$ref": "#/components/schemas/ContentReferenceResolved"
7744
+ "$ref": "#/components/schemas/ContentLocation"
7652
7745
  },
7653
7746
  "locationReferences": {
7654
- "description": "All pages where the target is being referenced.",
7747
+ "description": "Pages locations where a link to the target is found.",
7655
7748
  "type": "array",
7656
7749
  "items": {
7657
- "$ref": "#/components/schemas/ContentReferenceResolved"
7750
+ "$ref": "#/components/schemas/ContentLocation"
7658
7751
  }
7659
7752
  }
7660
7753
  },
7661
7754
  "required": [
7662
7755
  "status",
7663
- "targetReference",
7664
7756
  "locationReferences"
7665
7757
  ]
7666
7758
  },
7667
- "ContentReferenceResolved": {
7668
- "type": "object",
7669
- "properties": {
7670
- "text": {
7671
- "description": "Text to display to represent the reference",
7672
- "type": "string"
7673
- },
7674
- "type": {
7675
- "description": "The type of the content reference",
7676
- "type": "string",
7677
- "enum": [
7678
- "space",
7679
- "page",
7680
- "file",
7681
- "anchor",
7682
- "collection",
7683
- "user",
7684
- "snippet",
7685
- "url",
7686
- "synced-block"
7687
- ]
7688
- },
7689
- "url": {
7690
- "description": "Target in-app url for the reference",
7691
- "type": "string"
7692
- },
7693
- "extra": {
7694
- "type": "object",
7695
- "properties": {
7696
- "collection": {
7697
- "$ref": "#/components/schemas/Collection"
7698
- },
7699
- "space": {
7700
- "$ref": "#/components/schemas/Space"
7701
- },
7702
- "page": {
7703
- "$ref": "#/components/schemas/RevisionPage"
7704
- },
7705
- "anchor": {
7706
- "$ref": "#/components/schemas/RevisionPage"
7707
- },
7708
- "file": {
7709
- "$ref": "#/components/schemas/RevisionFile"
7710
- },
7711
- "snippet": {
7712
- "$ref": "#/components/schemas/Snippet"
7713
- },
7714
- "user": {
7715
- "$ref": "#/components/schemas/User"
7716
- }
7717
- }
7718
- }
7719
- },
7720
- "required": [
7721
- "text",
7722
- "type",
7723
- "url",
7724
- "extra"
7725
- ]
7726
- },
7727
7759
  "ContentReferenceStatus": {
7728
7760
  "type": "string",
7729
7761
  "enum": [
@@ -8876,6 +8908,7 @@
8876
8908
  "space:script:cookies",
8877
8909
  "space:git:sync",
8878
8910
  "space:visitor:auth",
8911
+ "site:metadata:read",
8879
8912
  "site:views:read",
8880
8913
  "site:script:inject",
8881
8914
  "site:script:cookies",
@@ -9084,6 +9117,7 @@
9084
9117
  "content",
9085
9118
  "gitsync",
9086
9119
  "marketing",
9120
+ "visitor-auth",
9087
9121
  "other"
9088
9122
  ]
9089
9123
  },
@@ -10950,14 +10984,15 @@
10950
10984
  "free_2024",
10951
10985
  "plus_2024",
10952
10986
  "pro_2024",
10953
- "enterprise",
10987
+ "enterprise_2024",
10954
10988
  "free",
10955
10989
  "plus",
10956
10990
  "pro",
10957
10991
  "team",
10958
10992
  "business",
10959
10993
  "legacy",
10960
- "startup"
10994
+ "startup",
10995
+ "enterprise"
10961
10996
  ]
10962
10997
  },
10963
10998
  "BillingUpgrade": {
@@ -15020,6 +15055,9 @@
15020
15055
  "type": "string",
15021
15056
  "description": "Unique identifier of the site"
15022
15057
  },
15058
+ "type": {
15059
+ "$ref": "#/components/schemas/SiteType"
15060
+ },
15023
15061
  "title": {
15024
15062
  "$ref": "#/components/schemas/SiteTitle"
15025
15063
  },
@@ -15032,6 +15070,10 @@
15032
15070
  "visibility": {
15033
15071
  "$ref": "#/components/schemas/SiteVisibility"
15034
15072
  },
15073
+ "published": {
15074
+ "type": "boolean",
15075
+ "description": "Whether the site is live or not. If true, the site is accessible to the audience defined by the visibility setting."
15076
+ },
15035
15077
  "siteSpaces": {
15036
15078
  "type": "number"
15037
15079
  },
@@ -15039,9 +15081,6 @@
15039
15081
  "type": "string",
15040
15082
  "format": "date-time"
15041
15083
  },
15042
- "subscription": {
15043
- "$ref": "#/components/schemas/SiteSubscription"
15044
- },
15045
15084
  "urls": {
15046
15085
  "type": "object",
15047
15086
  "description": "URLs associated with the object",
@@ -15058,7 +15097,7 @@
15058
15097
  },
15059
15098
  "published": {
15060
15099
  "type": "string",
15061
- "description": "URL of the published version of the site. Only defined when visibility is not \"unpublished.\"",
15100
+ "description": "URL of the published version of the site. Only defined when site is published.",
15062
15101
  "format": "uri"
15063
15102
  }
15064
15103
  },
@@ -15071,15 +15110,25 @@
15071
15110
  "required": [
15072
15111
  "object",
15073
15112
  "id",
15113
+ "type",
15074
15114
  "title",
15075
15115
  "visibility",
15116
+ "published",
15076
15117
  "createdAt",
15077
15118
  "siteSpaces",
15078
15119
  "defaultSpace",
15079
- "subscription",
15080
15120
  "urls"
15081
15121
  ]
15082
15122
  },
15123
+ "SiteType": {
15124
+ "type": "string",
15125
+ "description": "The type of the site",
15126
+ "enum": [
15127
+ "basic",
15128
+ "standard",
15129
+ "premium"
15130
+ ]
15131
+ },
15083
15132
  "SiteTitle": {
15084
15133
  "type": "string",
15085
15134
  "description": "Title of the site",
@@ -15258,6 +15307,18 @@
15258
15307
  "enabled"
15259
15308
  ]
15260
15309
  },
15310
+ "advancedCustomization": {
15311
+ "type": "object",
15312
+ "properties": {
15313
+ "enabled": {
15314
+ "type": "boolean",
15315
+ "description": "If true, Advanced customization is enabled"
15316
+ }
15317
+ },
15318
+ "required": [
15319
+ "enabled"
15320
+ ]
15321
+ },
15261
15322
  "git": {
15262
15323
  "type": "object",
15263
15324
  "properties": {
@@ -15321,6 +15382,7 @@
15321
15382
  "pdf",
15322
15383
  "feedback",
15323
15384
  "aiSearch",
15385
+ "advancedCustomization",
15324
15386
  "trademark",
15325
15387
  "pagination",
15326
15388
  "git",
@@ -15710,17 +15772,26 @@
15710
15772
  },
15711
15773
  "SiteVisibility": {
15712
15774
  "type": "string",
15713
- "description": "* `public`: Anyone can access the site, and the site is indexed by search engines.\n* `unlisted`: Anyone can access the site, and the site is not indexed by search engines\n* `share-link`: Anyone with a secret token in the url can access the site.\n* `visitor-auth`: Anyone authenticated through a JWT token can access the site.\n* `unpublished`: The site is not accessible to anyone.\n",
15775
+ "description": "The visibility setting of the site determines the audience of the site.\n* `public`: Anyone can access the site, and the site is indexed by search engines.\n* `unlisted`: Anyone can access the site, and the site is not indexed by search engines\n* `share-link`: Anyone with a secret token in the url can access the site.\n* `visitor-auth`: Anyone authenticated through a JWT token can access the site.\n",
15714
15776
  "enum": [
15715
15777
  "public",
15716
15778
  "unlisted",
15717
15779
  "share-link",
15718
- "visitor-auth",
15719
- "unpublished"
15780
+ "visitor-auth"
15720
15781
  ]
15721
15782
  },
15722
15783
  "SitePublishingAuth": {
15723
15784
  "allOf": [
15785
+ {
15786
+ "oneOf": [
15787
+ {
15788
+ "$ref": "#/components/schemas/SpaceVisitorAuthCustomBackend"
15789
+ },
15790
+ {
15791
+ "$ref": "#/components/schemas/SpaceVisitorAuthIntegrationBackend"
15792
+ }
15793
+ ]
15794
+ },
15724
15795
  {
15725
15796
  "type": "object",
15726
15797
  "properties": {
@@ -15739,15 +15810,16 @@
15739
15810
  "type": "string",
15740
15811
  "format": "uri",
15741
15812
  "description": "URL to redirect to when the visitor auth secret is invalid."
15813
+ },
15814
+ "integration": {
15815
+ "type": "string",
15816
+ "description": "Name of the Visitor Authentication integration installed on the site (if any).\nIt is also the one being used as VA backend when the published auth settings are configured to use \"integration\" as backend.\n"
15742
15817
  }
15743
15818
  },
15744
15819
  "required": [
15745
15820
  "object",
15746
15821
  "privateKey"
15747
15822
  ]
15748
- },
15749
- {
15750
- "$ref": "#/components/schemas/SpaceVisitorAuth"
15751
15823
  }
15752
15824
  ]
15753
15825
  },
@@ -15810,13 +15882,17 @@
15810
15882
  "type": "boolean",
15811
15883
  "description": "Whether this is the default space for the site"
15812
15884
  },
15885
+ "hasAdvancedCustomizationFeature": {
15886
+ "type": "boolean",
15887
+ "description": "Whether the space has advanced customization feature enabled"
15888
+ },
15813
15889
  "urls": {
15814
15890
  "type": "object",
15815
15891
  "description": "URLs associated with the object",
15816
15892
  "properties": {
15817
15893
  "published": {
15818
15894
  "type": "string",
15819
- "description": "URL of the published version of the site-space. Only defined when site is not \"unpublished\"",
15895
+ "description": "URL of the published version of the site-space. Only defined when site is published.",
15820
15896
  "format": "uri"
15821
15897
  }
15822
15898
  },
@@ -15869,36 +15945,6 @@
15869
15945
  "siteSpace"
15870
15946
  ]
15871
15947
  },
15872
- "SiteSubscriptionStatus": {
15873
- "type": "string",
15874
- "enum": [
15875
- "active",
15876
- "inactive"
15877
- ]
15878
- },
15879
- "SiteSubscriptionType": {
15880
- "type": "string",
15881
- "enum": [
15882
- "basic",
15883
- "premium",
15884
- "premium_va"
15885
- ]
15886
- },
15887
- "SiteSubscription": {
15888
- "type": "object",
15889
- "properties": {
15890
- "type": {
15891
- "$ref": "#/components/schemas/SiteSubscriptionType"
15892
- },
15893
- "status": {
15894
- "$ref": "#/components/schemas/SiteSubscriptionStatus"
15895
- }
15896
- },
15897
- "required": [
15898
- "type",
15899
- "status"
15900
- ]
15901
- },
15902
15948
  "CustomHostname": {
15903
15949
  "type": "object",
15904
15950
  "properties": {
@@ -25651,53 +25697,121 @@
25651
25697
  }
25652
25698
  }
25653
25699
  },
25654
- "/orgs/{organizationId}/experiments": {
25700
+ "/orgs/{organizationId}/integrations/installations-status": {
25655
25701
  "get": {
25656
- "operationId": "listOrgExperimentalFeatures",
25657
- "summary": "List experiemental features for the given organization.",
25702
+ "operationId": "listOrganizationIntegrationsStatus",
25703
+ "summary": "List the statuses of all integrations installed in an organization",
25658
25704
  "tags": [
25659
- "organizations"
25660
- ],
25661
- "security": [
25662
- {
25663
- "user": []
25664
- }
25705
+ "integrations"
25665
25706
  ],
25666
25707
  "parameters": [
25667
25708
  {
25668
25709
  "$ref": "#/components/parameters/organizationId"
25710
+ },
25711
+ {
25712
+ "$ref": "#/components/parameters/listPage"
25713
+ },
25714
+ {
25715
+ "$ref": "#/components/parameters/listLimit"
25716
+ },
25717
+ {
25718
+ "$ref": "#/components/schemas/IntegrationSearchQuery"
25669
25719
  }
25670
25720
  ],
25671
25721
  "responses": {
25672
25722
  "200": {
25673
- "description": "OK",
25723
+ "description": "List of integrations.",
25674
25724
  "content": {
25675
25725
  "application/json": {
25676
25726
  "schema": {
25677
- "type": "array",
25678
- "items": {
25679
- "$ref": "#/components/schemas/OrganizationExperimentalFeature"
25680
- }
25681
- }
25682
- }
25683
- }
25684
- },
25685
- "default": {
25686
- "$ref": "#/components/responses/UnexpectedError"
25687
- }
25688
- }
25689
- },
25690
- "post": {
25691
- "operationId": "updateOrgExperimentalFeatures",
25692
- "summary": "Toggle on or off experimental features.",
25693
- "tags": [
25694
- "organizations"
25695
- ],
25696
- "security": [
25697
- {
25698
- "user": []
25699
- }
25700
- ],
25727
+ "allOf": [
25728
+ {
25729
+ "$ref": "#/components/schemas/List"
25730
+ },
25731
+ {
25732
+ "type": "object",
25733
+ "required": [
25734
+ "items"
25735
+ ],
25736
+ "properties": {
25737
+ "items": {
25738
+ "type": "array",
25739
+ "items": {
25740
+ "type": "object",
25741
+ "required": [
25742
+ "status",
25743
+ "integration"
25744
+ ],
25745
+ "properties": {
25746
+ "status": {
25747
+ "$ref": "#/components/schemas/IntegrationInstallationStatus"
25748
+ },
25749
+ "integration": {
25750
+ "$ref": "#/components/schemas/Integration"
25751
+ }
25752
+ }
25753
+ }
25754
+ }
25755
+ }
25756
+ }
25757
+ ]
25758
+ }
25759
+ }
25760
+ }
25761
+ },
25762
+ "default": {
25763
+ "$ref": "#/components/responses/UnexpectedError"
25764
+ }
25765
+ }
25766
+ }
25767
+ },
25768
+ "/orgs/{organizationId}/experiments": {
25769
+ "get": {
25770
+ "operationId": "listOrgExperimentalFeatures",
25771
+ "summary": "List experiemental features for the given organization.",
25772
+ "tags": [
25773
+ "organizations"
25774
+ ],
25775
+ "security": [
25776
+ {
25777
+ "user": []
25778
+ }
25779
+ ],
25780
+ "parameters": [
25781
+ {
25782
+ "$ref": "#/components/parameters/organizationId"
25783
+ }
25784
+ ],
25785
+ "responses": {
25786
+ "200": {
25787
+ "description": "OK",
25788
+ "content": {
25789
+ "application/json": {
25790
+ "schema": {
25791
+ "type": "array",
25792
+ "items": {
25793
+ "$ref": "#/components/schemas/OrganizationExperimentalFeature"
25794
+ }
25795
+ }
25796
+ }
25797
+ }
25798
+ },
25799
+ "default": {
25800
+ "$ref": "#/components/responses/UnexpectedError"
25801
+ }
25802
+ }
25803
+ },
25804
+ "post": {
25805
+ "operationId": "updateOrgExperimentalFeatures",
25806
+ "summary": "Toggle on or off experimental features.",
25807
+ "tags": [
25808
+ "organizations"
25809
+ ],
25810
+ "security": [
25811
+ {
25812
+ "user": []
25813
+ }
25814
+ ],
25701
25815
  "parameters": [
25702
25816
  {
25703
25817
  "$ref": "#/components/parameters/organizationId"
@@ -27994,6 +28108,293 @@
27994
28108
  }
27995
28109
  }
27996
28110
  },
28111
+ "/orgs/{organizationId}/sites/{siteId}/checkout": {
28112
+ "post": {
28113
+ "operationId": "checkoutSite",
28114
+ "summary": "Initiate a payment checkout for a site",
28115
+ "tags": [
28116
+ "sites"
28117
+ ],
28118
+ "security": [
28119
+ {
28120
+ "user-internal": []
28121
+ }
28122
+ ],
28123
+ "parameters": [
28124
+ {
28125
+ "$ref": "#/components/parameters/organizationId"
28126
+ },
28127
+ {
28128
+ "$ref": "#/components/parameters/siteId"
28129
+ }
28130
+ ],
28131
+ "requestBody": {
28132
+ "required": true,
28133
+ "content": {
28134
+ "application/json": {
28135
+ "schema": {
28136
+ "type": "object",
28137
+ "properties": {
28138
+ "reason": {
28139
+ "type": "string",
28140
+ "description": "Reason leading to the site checkout"
28141
+ }
28142
+ },
28143
+ "required": [
28144
+ "reason"
28145
+ ]
28146
+ }
28147
+ }
28148
+ }
28149
+ },
28150
+ "responses": {
28151
+ "200": {
28152
+ "description": "OK",
28153
+ "content": {
28154
+ "application/json": {
28155
+ "schema": {
28156
+ "oneOf": [
28157
+ {
28158
+ "type": "object",
28159
+ "properties": {
28160
+ "result": {
28161
+ "type": "string",
28162
+ "enum": [
28163
+ "success",
28164
+ "failure"
28165
+ ]
28166
+ }
28167
+ },
28168
+ "required": [
28169
+ "result"
28170
+ ]
28171
+ },
28172
+ {
28173
+ "type": "object",
28174
+ "properties": {
28175
+ "result": {
28176
+ "type": "string",
28177
+ "enum": [
28178
+ "checkout"
28179
+ ]
28180
+ },
28181
+ "sessionId": {
28182
+ "type": "string",
28183
+ "description": "Stripe payment session ID"
28184
+ }
28185
+ },
28186
+ "required": [
28187
+ "result",
28188
+ "sessionId"
28189
+ ]
28190
+ }
28191
+ ]
28192
+ }
28193
+ }
28194
+ }
28195
+ },
28196
+ "default": {
28197
+ "$ref": "#/components/responses/UnexpectedError"
28198
+ }
28199
+ }
28200
+ },
28201
+ "get": {
28202
+ "operationId": "getSiteCheckoutById",
28203
+ "summary": "Returns checkout information about a site prior to publishing.",
28204
+ "tags": [
28205
+ "sites"
28206
+ ],
28207
+ "security": [
28208
+ {
28209
+ "user-internal": []
28210
+ }
28211
+ ],
28212
+ "parameters": [
28213
+ {
28214
+ "$ref": "#/components/parameters/organizationId"
28215
+ },
28216
+ {
28217
+ "$ref": "#/components/parameters/siteId"
28218
+ }
28219
+ ],
28220
+ "responses": {
28221
+ "200": {
28222
+ "description": "OK",
28223
+ "content": {
28224
+ "application/json": {
28225
+ "schema": {
28226
+ "allOf": [
28227
+ {
28228
+ "type": "object",
28229
+ "properties": {
28230
+ "downgrade": {
28231
+ "type": "boolean"
28232
+ }
28233
+ }
28234
+ },
28235
+ {
28236
+ "oneOf": [
28237
+ {
28238
+ "type": "object",
28239
+ "properties": {
28240
+ "type": {
28241
+ "type": "string",
28242
+ "enum": [
28243
+ "simple-checkout"
28244
+ ]
28245
+ }
28246
+ },
28247
+ "required": [
28248
+ "type"
28249
+ ]
28250
+ },
28251
+ {
28252
+ "type": "object",
28253
+ "properties": {
28254
+ "type": {
28255
+ "type": "string",
28256
+ "enum": [
28257
+ "advanced-checkout"
28258
+ ]
28259
+ }
28260
+ },
28261
+ "required": [
28262
+ "type"
28263
+ ]
28264
+ },
28265
+ {
28266
+ "type": "object",
28267
+ "properties": {
28268
+ "type": {
28269
+ "type": "string",
28270
+ "enum": [
28271
+ "no-permissions"
28272
+ ]
28273
+ }
28274
+ },
28275
+ "required": [
28276
+ "type"
28277
+ ]
28278
+ },
28279
+ {
28280
+ "type": "object",
28281
+ "properties": {
28282
+ "type": {
28283
+ "type": "string",
28284
+ "enum": [
28285
+ "publish"
28286
+ ]
28287
+ }
28288
+ },
28289
+ "required": [
28290
+ "type"
28291
+ ]
28292
+ },
28293
+ {
28294
+ "type": "object",
28295
+ "properties": {
28296
+ "type": {
28297
+ "type": "string",
28298
+ "enum": [
28299
+ "legacy-upgrade"
28300
+ ]
28301
+ }
28302
+ },
28303
+ "required": [
28304
+ "type"
28305
+ ]
28306
+ }
28307
+ ]
28308
+ }
28309
+ ]
28310
+ }
28311
+ }
28312
+ }
28313
+ },
28314
+ "404": {
28315
+ "description": "No matching site found",
28316
+ "$ref": "#/components/responses/NotFoundError"
28317
+ },
28318
+ "default": {
28319
+ "$ref": "#/components/responses/UnexpectedError"
28320
+ }
28321
+ }
28322
+ }
28323
+ },
28324
+ "/orgs/{organizationId}/sites/{siteId}/publish": {
28325
+ "post": {
28326
+ "operationId": "publishSite",
28327
+ "summary": "Publishes the site to the audience defined in the site's visibility setting.",
28328
+ "tags": [
28329
+ "sites"
28330
+ ],
28331
+ "security": [
28332
+ {
28333
+ "user": []
28334
+ }
28335
+ ],
28336
+ "parameters": [
28337
+ {
28338
+ "$ref": "#/components/parameters/organizationId"
28339
+ },
28340
+ {
28341
+ "$ref": "#/components/parameters/siteId"
28342
+ }
28343
+ ],
28344
+ "responses": {
28345
+ "200": {
28346
+ "description": "Site published successfully",
28347
+ "content": {
28348
+ "application/json": {
28349
+ "schema": {
28350
+ "$ref": "#/components/schemas/Site"
28351
+ }
28352
+ }
28353
+ }
28354
+ },
28355
+ "default": {
28356
+ "$ref": "#/components/responses/UnexpectedError"
28357
+ }
28358
+ }
28359
+ }
28360
+ },
28361
+ "/orgs/{organizationId}/sites/{siteId}/unpublish": {
28362
+ "post": {
28363
+ "operationId": "unpublishSite",
28364
+ "summary": "Unpublishes the site.",
28365
+ "tags": [
28366
+ "sites"
28367
+ ],
28368
+ "security": [
28369
+ {
28370
+ "user": []
28371
+ }
28372
+ ],
28373
+ "parameters": [
28374
+ {
28375
+ "$ref": "#/components/parameters/organizationId"
28376
+ },
28377
+ {
28378
+ "$ref": "#/components/parameters/siteId"
28379
+ }
28380
+ ],
28381
+ "responses": {
28382
+ "200": {
28383
+ "description": "Site unpublished successfully",
28384
+ "content": {
28385
+ "application/json": {
28386
+ "schema": {
28387
+ "$ref": "#/components/schemas/Site"
28388
+ }
28389
+ }
28390
+ }
28391
+ },
28392
+ "default": {
28393
+ "$ref": "#/components/responses/UnexpectedError"
28394
+ }
28395
+ }
28396
+ }
28397
+ },
27997
28398
  "/orgs/{organizationId}/sites/{siteId}/share-links": {
27998
28399
  "get": {
27999
28400
  "operationId": "listSiteShareLinks",
@@ -28294,6 +28695,46 @@
28294
28695
  }
28295
28696
  }
28296
28697
  },
28698
+ "/orgs/{organizationId}/sites/{siteId}/publishing/auth/regenerate": {
28699
+ "post": {
28700
+ "operationId": "regenerateSitePublishingAuthById",
28701
+ "summary": "Regenerate the publishing authentication settings for a site. This will re-generate the private key.",
28702
+ "tags": [
28703
+ "sites"
28704
+ ],
28705
+ "security": [
28706
+ {
28707
+ "user": []
28708
+ }
28709
+ ],
28710
+ "parameters": [
28711
+ {
28712
+ "$ref": "#/components/parameters/organizationId"
28713
+ },
28714
+ {
28715
+ "$ref": "#/components/parameters/siteId"
28716
+ }
28717
+ ],
28718
+ "responses": {
28719
+ "200": {
28720
+ "description": "OK",
28721
+ "content": {
28722
+ "application/json": {
28723
+ "schema": {
28724
+ "$ref": "#/components/schemas/SitePublishingAuth"
28725
+ }
28726
+ }
28727
+ }
28728
+ },
28729
+ "400": {
28730
+ "$ref": "#/components/responses/BadRequestError"
28731
+ },
28732
+ "default": {
28733
+ "$ref": "#/components/responses/UnexpectedError"
28734
+ }
28735
+ }
28736
+ }
28737
+ },
28297
28738
  "/orgs/{organizationId}/sites/{siteId}/publishing/preview": {
28298
28739
  "get": {
28299
28740
  "operationId": "getSitePublishingPreviewById",
@@ -28368,6 +28809,9 @@
28368
28809
  },
28369
28810
  {
28370
28811
  "$ref": "#/components/parameters/siteId"
28812
+ },
28813
+ {
28814
+ "$ref": "#/components/parameters/siteCustomizationUnmasked"
28371
28815
  }
28372
28816
  ],
28373
28817
  "responses": {
@@ -28771,6 +29215,9 @@
28771
29215
  },
28772
29216
  {
28773
29217
  "$ref": "#/components/parameters/siteSpaceId"
29218
+ },
29219
+ {
29220
+ "$ref": "#/components/parameters/siteCustomizationUnmasked"
28774
29221
  }
28775
29222
  ],
28776
29223
  "responses": {
@@ -28976,6 +29423,9 @@
28976
29423
  "oneOf": [
28977
29424
  {
28978
29425
  "$ref": "#/components/schemas/SpacePointer"
29426
+ },
29427
+ {
29428
+ "$ref": "#/components/schemas/OrganizationPointer"
28979
29429
  }
28980
29430
  ]
28981
29431
  }