@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/dist/client.d.ts +185 -59
- package/dist/index.cjs +62 -20
- package/dist/index.js +61 -18
- package/package.json +1 -1
- package/spec/openapi.json +616 -166
- package/spec/openapi.yaml +339 -96
package/spec/openapi.yaml
CHANGED
|
@@ -103,6 +103,13 @@ components:
|
|
|
103
103
|
schema:
|
|
104
104
|
type: boolean
|
|
105
105
|
default: true
|
|
106
|
+
siteCustomizationUnmasked:
|
|
107
|
+
name: unmasked
|
|
108
|
+
in: query
|
|
109
|
+
description: Access the customization settings without applying any masking from the advanced customization flag.
|
|
110
|
+
schema:
|
|
111
|
+
type: boolean
|
|
112
|
+
default: false
|
|
106
113
|
spaceId:
|
|
107
114
|
name: spaceId
|
|
108
115
|
in: path
|
|
@@ -533,6 +540,8 @@ components:
|
|
|
533
540
|
$ref: "#/components/schemas/IntegrationInstallationConfiguration"
|
|
534
541
|
space_selection:
|
|
535
542
|
$ref: "#/components/schemas/IntegrationInstallationSpaceSelection"
|
|
543
|
+
site_selection:
|
|
544
|
+
$ref: "#/components/schemas/IntegrationInstallationSiteSelection"
|
|
536
545
|
RequestUpdateIntegrationSpaceInstallation:
|
|
537
546
|
type: object
|
|
538
547
|
properties:
|
|
@@ -1073,10 +1082,14 @@ components:
|
|
|
1073
1082
|
type: string
|
|
1074
1083
|
enum:
|
|
1075
1084
|
- integration
|
|
1085
|
+
integration:
|
|
1086
|
+
description: The identifier of the integration performing the rendering
|
|
1087
|
+
type: string
|
|
1076
1088
|
block:
|
|
1077
1089
|
$ref: "#/components/schemas/IntegrationBlock"
|
|
1078
1090
|
required:
|
|
1079
1091
|
- type
|
|
1092
|
+
- integration
|
|
1080
1093
|
- block
|
|
1081
1094
|
Comment:
|
|
1082
1095
|
allOf:
|
|
@@ -3216,6 +3229,8 @@ components:
|
|
|
3216
3229
|
- $ref: "#/components/schemas/ContentLocationSpace"
|
|
3217
3230
|
- $ref: "#/components/schemas/ContentLocationSnippet"
|
|
3218
3231
|
- $ref: "#/components/schemas/ContentLocationSyncedBlock"
|
|
3232
|
+
discriminator:
|
|
3233
|
+
propertyName: kind
|
|
3219
3234
|
ContentLocationURL:
|
|
3220
3235
|
type: object
|
|
3221
3236
|
properties:
|
|
@@ -3239,10 +3254,10 @@ components:
|
|
|
3239
3254
|
$ref: "#/components/schemas/Organization"
|
|
3240
3255
|
space:
|
|
3241
3256
|
$ref: "#/components/schemas/Space"
|
|
3242
|
-
|
|
3243
|
-
|
|
3244
|
-
|
|
3245
|
-
|
|
3257
|
+
versionContext:
|
|
3258
|
+
oneOf:
|
|
3259
|
+
- $ref: "#/components/schemas/ContentLocationRevisionContext"
|
|
3260
|
+
- $ref: "#/components/schemas/ContentLocationChangeRequestContext"
|
|
3246
3261
|
file:
|
|
3247
3262
|
$ref: "#/components/schemas/RevisionFile"
|
|
3248
3263
|
required:
|
|
@@ -3263,16 +3278,36 @@ components:
|
|
|
3263
3278
|
$ref: "#/components/schemas/RevisionPage"
|
|
3264
3279
|
space:
|
|
3265
3280
|
$ref: "#/components/schemas/Space"
|
|
3266
|
-
|
|
3267
|
-
|
|
3268
|
-
|
|
3269
|
-
|
|
3270
|
-
|
|
3271
|
-
|
|
3272
|
-
|
|
3273
|
-
|
|
3274
|
-
|
|
3275
|
-
|
|
3281
|
+
versionContext:
|
|
3282
|
+
oneOf:
|
|
3283
|
+
- $ref: "#/components/schemas/ContentLocationRevisionContext"
|
|
3284
|
+
- $ref: "#/components/schemas/ContentLocationChangeRequestContext"
|
|
3285
|
+
internalLocation:
|
|
3286
|
+
oneOf:
|
|
3287
|
+
- type: object
|
|
3288
|
+
properties:
|
|
3289
|
+
type:
|
|
3290
|
+
type: string
|
|
3291
|
+
enum:
|
|
3292
|
+
- anchor
|
|
3293
|
+
anchor:
|
|
3294
|
+
description: The anchor within the page.
|
|
3295
|
+
type: string
|
|
3296
|
+
required:
|
|
3297
|
+
- type
|
|
3298
|
+
- anchor
|
|
3299
|
+
- type: object
|
|
3300
|
+
properties:
|
|
3301
|
+
type:
|
|
3302
|
+
type: string
|
|
3303
|
+
enum:
|
|
3304
|
+
- node
|
|
3305
|
+
node:
|
|
3306
|
+
description: The node id within the page.
|
|
3307
|
+
type: string
|
|
3308
|
+
required:
|
|
3309
|
+
- type
|
|
3310
|
+
- node
|
|
3276
3311
|
required:
|
|
3277
3312
|
- kind
|
|
3278
3313
|
- organization
|
|
@@ -3350,6 +3385,30 @@ components:
|
|
|
3350
3385
|
- kind
|
|
3351
3386
|
- organization
|
|
3352
3387
|
- syncedBlock
|
|
3388
|
+
ContentLocationChangeRequestContext:
|
|
3389
|
+
type: object
|
|
3390
|
+
required:
|
|
3391
|
+
- type
|
|
3392
|
+
- changeRequest
|
|
3393
|
+
properties:
|
|
3394
|
+
type:
|
|
3395
|
+
type: string
|
|
3396
|
+
enum:
|
|
3397
|
+
- changeRequest
|
|
3398
|
+
changeRequest:
|
|
3399
|
+
$ref: "#/components/schemas/ChangeRequest"
|
|
3400
|
+
ContentLocationRevisionContext:
|
|
3401
|
+
type: object
|
|
3402
|
+
required:
|
|
3403
|
+
- type
|
|
3404
|
+
- revision
|
|
3405
|
+
properties:
|
|
3406
|
+
type:
|
|
3407
|
+
type: string
|
|
3408
|
+
enum:
|
|
3409
|
+
- revision
|
|
3410
|
+
revision:
|
|
3411
|
+
$ref: "#/components/schemas/Revision"
|
|
3353
3412
|
Space:
|
|
3354
3413
|
type: object
|
|
3355
3414
|
properties:
|
|
@@ -4586,16 +4645,12 @@ components:
|
|
|
4586
4645
|
visitorAuth:
|
|
4587
4646
|
description: Count of all visitor-authenticated sites
|
|
4588
4647
|
type: number
|
|
4589
|
-
unpublished:
|
|
4590
|
-
description: Count of all unpublished sites
|
|
4591
|
-
type: number
|
|
4592
4648
|
required:
|
|
4593
4649
|
- total
|
|
4594
4650
|
- public
|
|
4595
4651
|
- unlisted
|
|
4596
4652
|
- shareLink
|
|
4597
4653
|
- visitorAuth
|
|
4598
|
-
- unpublished
|
|
4599
4654
|
OrganizationUsageMembers:
|
|
4600
4655
|
type: object
|
|
4601
4656
|
description: Members usage metrics of an organization
|
|
@@ -5072,60 +5127,15 @@ components:
|
|
|
5072
5127
|
$ref: "#/components/schemas/ContentReferenceStatus"
|
|
5073
5128
|
targetReference:
|
|
5074
5129
|
description: The reference target where a list of pages are pointing at
|
|
5075
|
-
$ref: "#/components/schemas/
|
|
5130
|
+
$ref: "#/components/schemas/ContentLocation"
|
|
5076
5131
|
locationReferences:
|
|
5077
|
-
description:
|
|
5132
|
+
description: Pages locations where a link to the target is found.
|
|
5078
5133
|
type: array
|
|
5079
5134
|
items:
|
|
5080
|
-
$ref: "#/components/schemas/
|
|
5135
|
+
$ref: "#/components/schemas/ContentLocation"
|
|
5081
5136
|
required:
|
|
5082
5137
|
- status
|
|
5083
|
-
- targetReference
|
|
5084
5138
|
- locationReferences
|
|
5085
|
-
ContentReferenceResolved:
|
|
5086
|
-
type: object
|
|
5087
|
-
properties:
|
|
5088
|
-
text:
|
|
5089
|
-
description: Text to display to represent the reference
|
|
5090
|
-
type: string
|
|
5091
|
-
type:
|
|
5092
|
-
description: The type of the content reference
|
|
5093
|
-
type: string
|
|
5094
|
-
enum:
|
|
5095
|
-
- space
|
|
5096
|
-
- page
|
|
5097
|
-
- file
|
|
5098
|
-
- anchor
|
|
5099
|
-
- collection
|
|
5100
|
-
- user
|
|
5101
|
-
- snippet
|
|
5102
|
-
- url
|
|
5103
|
-
- synced-block
|
|
5104
|
-
url:
|
|
5105
|
-
description: Target in-app url for the reference
|
|
5106
|
-
type: string
|
|
5107
|
-
extra:
|
|
5108
|
-
type: object
|
|
5109
|
-
properties:
|
|
5110
|
-
collection:
|
|
5111
|
-
$ref: "#/components/schemas/Collection"
|
|
5112
|
-
space:
|
|
5113
|
-
$ref: "#/components/schemas/Space"
|
|
5114
|
-
page:
|
|
5115
|
-
$ref: "#/components/schemas/RevisionPage"
|
|
5116
|
-
anchor:
|
|
5117
|
-
$ref: "#/components/schemas/RevisionPage"
|
|
5118
|
-
file:
|
|
5119
|
-
$ref: "#/components/schemas/RevisionFile"
|
|
5120
|
-
snippet:
|
|
5121
|
-
$ref: "#/components/schemas/Snippet"
|
|
5122
|
-
user:
|
|
5123
|
-
$ref: "#/components/schemas/User"
|
|
5124
|
-
required:
|
|
5125
|
-
- text
|
|
5126
|
-
- type
|
|
5127
|
-
- url
|
|
5128
|
-
- extra
|
|
5129
5139
|
ContentReferenceStatus:
|
|
5130
5140
|
type: string
|
|
5131
5141
|
enum:
|
|
@@ -5953,6 +5963,7 @@ components:
|
|
|
5953
5963
|
- space:script:cookies
|
|
5954
5964
|
- space:git:sync
|
|
5955
5965
|
- space:visitor:auth
|
|
5966
|
+
- site:metadata:read
|
|
5956
5967
|
- site:views:read
|
|
5957
5968
|
- site:script:inject
|
|
5958
5969
|
- site:script:cookies
|
|
@@ -6105,6 +6116,7 @@ components:
|
|
|
6105
6116
|
- content
|
|
6106
6117
|
- gitsync
|
|
6107
6118
|
- marketing
|
|
6119
|
+
- visitor-auth
|
|
6108
6120
|
- other
|
|
6109
6121
|
IntegrationConfigurations:
|
|
6110
6122
|
type: object
|
|
@@ -7303,7 +7315,7 @@ components:
|
|
|
7303
7315
|
- free_2024
|
|
7304
7316
|
- plus_2024
|
|
7305
7317
|
- pro_2024
|
|
7306
|
-
-
|
|
7318
|
+
- enterprise_2024
|
|
7307
7319
|
- free
|
|
7308
7320
|
- plus
|
|
7309
7321
|
- pro
|
|
@@ -7311,6 +7323,7 @@ components:
|
|
|
7311
7323
|
- business
|
|
7312
7324
|
- legacy
|
|
7313
7325
|
- startup
|
|
7326
|
+
- enterprise
|
|
7314
7327
|
BillingUpgrade:
|
|
7315
7328
|
oneOf:
|
|
7316
7329
|
- type: object
|
|
@@ -9934,6 +9947,8 @@ components:
|
|
|
9934
9947
|
id:
|
|
9935
9948
|
type: string
|
|
9936
9949
|
description: Unique identifier of the site
|
|
9950
|
+
type:
|
|
9951
|
+
$ref: "#/components/schemas/SiteType"
|
|
9937
9952
|
title:
|
|
9938
9953
|
$ref: "#/components/schemas/SiteTitle"
|
|
9939
9954
|
hostname:
|
|
@@ -9942,13 +9957,14 @@ components:
|
|
|
9942
9957
|
$ref: "#/components/schemas/SiteBasename"
|
|
9943
9958
|
visibility:
|
|
9944
9959
|
$ref: "#/components/schemas/SiteVisibility"
|
|
9960
|
+
published:
|
|
9961
|
+
type: boolean
|
|
9962
|
+
description: Whether the site is live or not. If true, the site is accessible to the audience defined by the visibility setting.
|
|
9945
9963
|
siteSpaces:
|
|
9946
9964
|
type: number
|
|
9947
9965
|
createdAt:
|
|
9948
9966
|
type: string
|
|
9949
9967
|
format: date-time
|
|
9950
|
-
subscription:
|
|
9951
|
-
$ref: "#/components/schemas/SiteSubscription"
|
|
9952
9968
|
urls:
|
|
9953
9969
|
type: object
|
|
9954
9970
|
description: URLs associated with the object
|
|
@@ -9963,7 +9979,7 @@ components:
|
|
|
9963
9979
|
format: uri
|
|
9964
9980
|
published:
|
|
9965
9981
|
type: string
|
|
9966
|
-
description: URL of the published version of the site. Only defined when
|
|
9982
|
+
description: URL of the published version of the site. Only defined when site is published.
|
|
9967
9983
|
format: uri
|
|
9968
9984
|
required:
|
|
9969
9985
|
- app
|
|
@@ -9971,13 +9987,21 @@ components:
|
|
|
9971
9987
|
required:
|
|
9972
9988
|
- object
|
|
9973
9989
|
- id
|
|
9990
|
+
- type
|
|
9974
9991
|
- title
|
|
9975
9992
|
- visibility
|
|
9993
|
+
- published
|
|
9976
9994
|
- createdAt
|
|
9977
9995
|
- siteSpaces
|
|
9978
9996
|
- defaultSpace
|
|
9979
|
-
- subscription
|
|
9980
9997
|
- urls
|
|
9998
|
+
SiteType:
|
|
9999
|
+
type: string
|
|
10000
|
+
description: The type of the site
|
|
10001
|
+
enum:
|
|
10002
|
+
- basic
|
|
10003
|
+
- standard
|
|
10004
|
+
- premium
|
|
9981
10005
|
SiteTitle:
|
|
9982
10006
|
type: string
|
|
9983
10007
|
description: Title of the site
|
|
@@ -10096,6 +10120,14 @@ components:
|
|
|
10096
10120
|
description: If true, AI search is enabled
|
|
10097
10121
|
required:
|
|
10098
10122
|
- enabled
|
|
10123
|
+
advancedCustomization:
|
|
10124
|
+
type: object
|
|
10125
|
+
properties:
|
|
10126
|
+
enabled:
|
|
10127
|
+
type: boolean
|
|
10128
|
+
description: If true, Advanced customization is enabled
|
|
10129
|
+
required:
|
|
10130
|
+
- enabled
|
|
10099
10131
|
git:
|
|
10100
10132
|
type: object
|
|
10101
10133
|
properties:
|
|
@@ -10140,6 +10172,7 @@ components:
|
|
|
10140
10172
|
- pdf
|
|
10141
10173
|
- feedback
|
|
10142
10174
|
- aiSearch
|
|
10175
|
+
- advancedCustomization
|
|
10143
10176
|
- trademark
|
|
10144
10177
|
- pagination
|
|
10145
10178
|
- git
|
|
@@ -10375,19 +10408,21 @@ components:
|
|
|
10375
10408
|
SiteVisibility:
|
|
10376
10409
|
type: string
|
|
10377
10410
|
description: |
|
|
10411
|
+
The visibility setting of the site determines the audience of the site.
|
|
10378
10412
|
* `public`: Anyone can access the site, and the site is indexed by search engines.
|
|
10379
10413
|
* `unlisted`: Anyone can access the site, and the site is not indexed by search engines
|
|
10380
10414
|
* `share-link`: Anyone with a secret token in the url can access the site.
|
|
10381
10415
|
* `visitor-auth`: Anyone authenticated through a JWT token can access the site.
|
|
10382
|
-
* `unpublished`: The site is not accessible to anyone.
|
|
10383
10416
|
enum:
|
|
10384
10417
|
- public
|
|
10385
10418
|
- unlisted
|
|
10386
10419
|
- share-link
|
|
10387
10420
|
- visitor-auth
|
|
10388
|
-
- unpublished
|
|
10389
10421
|
SitePublishingAuth:
|
|
10390
10422
|
allOf:
|
|
10423
|
+
- oneOf:
|
|
10424
|
+
- $ref: "#/components/schemas/SpaceVisitorAuthCustomBackend"
|
|
10425
|
+
- $ref: "#/components/schemas/SpaceVisitorAuthIntegrationBackend"
|
|
10391
10426
|
- type: object
|
|
10392
10427
|
properties:
|
|
10393
10428
|
object:
|
|
@@ -10402,10 +10437,14 @@ components:
|
|
|
10402
10437
|
type: string
|
|
10403
10438
|
format: uri
|
|
10404
10439
|
description: URL to redirect to when the visitor auth secret is invalid.
|
|
10440
|
+
integration:
|
|
10441
|
+
type: string
|
|
10442
|
+
description: |
|
|
10443
|
+
Name of the Visitor Authentication integration installed on the site (if any).
|
|
10444
|
+
It is also the one being used as VA backend when the published auth settings are configured to use "integration" as backend.
|
|
10405
10445
|
required:
|
|
10406
10446
|
- object
|
|
10407
10447
|
- privateKey
|
|
10408
|
-
- $ref: "#/components/schemas/SpaceVisitorAuth"
|
|
10409
10448
|
SitePublishingAuthUpdate:
|
|
10410
10449
|
allOf:
|
|
10411
10450
|
- oneOf:
|
|
@@ -10444,13 +10483,16 @@ components:
|
|
|
10444
10483
|
default:
|
|
10445
10484
|
type: boolean
|
|
10446
10485
|
description: Whether this is the default space for the site
|
|
10486
|
+
hasAdvancedCustomizationFeature:
|
|
10487
|
+
type: boolean
|
|
10488
|
+
description: Whether the space has advanced customization feature enabled
|
|
10447
10489
|
urls:
|
|
10448
10490
|
type: object
|
|
10449
10491
|
description: URLs associated with the object
|
|
10450
10492
|
properties:
|
|
10451
10493
|
published:
|
|
10452
10494
|
type: string
|
|
10453
|
-
description: URL of the published version of the site-space. Only defined when site is
|
|
10495
|
+
description: URL of the published version of the site-space. Only defined when site is published.
|
|
10454
10496
|
format: uri
|
|
10455
10497
|
required:
|
|
10456
10498
|
- location
|
|
@@ -10485,27 +10527,6 @@ components:
|
|
|
10485
10527
|
required:
|
|
10486
10528
|
- type
|
|
10487
10529
|
- siteSpace
|
|
10488
|
-
SiteSubscriptionStatus:
|
|
10489
|
-
type: string
|
|
10490
|
-
enum:
|
|
10491
|
-
- active
|
|
10492
|
-
- inactive
|
|
10493
|
-
SiteSubscriptionType:
|
|
10494
|
-
type: string
|
|
10495
|
-
enum:
|
|
10496
|
-
- basic
|
|
10497
|
-
- premium
|
|
10498
|
-
- premium_va
|
|
10499
|
-
SiteSubscription:
|
|
10500
|
-
type: object
|
|
10501
|
-
properties:
|
|
10502
|
-
type:
|
|
10503
|
-
$ref: "#/components/schemas/SiteSubscriptionType"
|
|
10504
|
-
status:
|
|
10505
|
-
$ref: "#/components/schemas/SiteSubscriptionStatus"
|
|
10506
|
-
required:
|
|
10507
|
-
- type
|
|
10508
|
-
- status
|
|
10509
10530
|
CustomHostname:
|
|
10510
10531
|
type: object
|
|
10511
10532
|
properties:
|
|
@@ -15971,6 +15992,43 @@ paths:
|
|
|
15971
15992
|
- installation
|
|
15972
15993
|
default:
|
|
15973
15994
|
$ref: "#/components/responses/UnexpectedError"
|
|
15995
|
+
"/orgs/{organizationId}/integrations/installations-status":
|
|
15996
|
+
get:
|
|
15997
|
+
operationId: listOrganizationIntegrationsStatus
|
|
15998
|
+
summary: List the statuses of all integrations installed in an organization
|
|
15999
|
+
tags:
|
|
16000
|
+
- integrations
|
|
16001
|
+
parameters:
|
|
16002
|
+
- $ref: "#/components/parameters/organizationId"
|
|
16003
|
+
- $ref: "#/components/parameters/listPage"
|
|
16004
|
+
- $ref: "#/components/parameters/listLimit"
|
|
16005
|
+
- $ref: "#/components/schemas/IntegrationSearchQuery"
|
|
16006
|
+
responses:
|
|
16007
|
+
"200":
|
|
16008
|
+
description: List of integrations.
|
|
16009
|
+
content:
|
|
16010
|
+
application/json:
|
|
16011
|
+
schema:
|
|
16012
|
+
allOf:
|
|
16013
|
+
- $ref: "#/components/schemas/List"
|
|
16014
|
+
- type: object
|
|
16015
|
+
required:
|
|
16016
|
+
- items
|
|
16017
|
+
properties:
|
|
16018
|
+
items:
|
|
16019
|
+
type: array
|
|
16020
|
+
items:
|
|
16021
|
+
type: object
|
|
16022
|
+
required:
|
|
16023
|
+
- status
|
|
16024
|
+
- integration
|
|
16025
|
+
properties:
|
|
16026
|
+
status:
|
|
16027
|
+
$ref: "#/components/schemas/IntegrationInstallationStatus"
|
|
16028
|
+
integration:
|
|
16029
|
+
$ref: "#/components/schemas/Integration"
|
|
16030
|
+
default:
|
|
16031
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
15974
16032
|
"/orgs/{organizationId}/experiments":
|
|
15975
16033
|
get:
|
|
15976
16034
|
operationId: listOrgExperimentalFeatures
|
|
@@ -17285,6 +17343,166 @@ paths:
|
|
|
17285
17343
|
description: Site has been deleted
|
|
17286
17344
|
default:
|
|
17287
17345
|
$ref: "#/components/responses/UnexpectedError"
|
|
17346
|
+
"/orgs/{organizationId}/sites/{siteId}/checkout":
|
|
17347
|
+
post:
|
|
17348
|
+
operationId: checkoutSite
|
|
17349
|
+
summary: Initiate a payment checkout for a site
|
|
17350
|
+
tags:
|
|
17351
|
+
- sites
|
|
17352
|
+
security:
|
|
17353
|
+
- user-internal: []
|
|
17354
|
+
parameters:
|
|
17355
|
+
- $ref: "#/components/parameters/organizationId"
|
|
17356
|
+
- $ref: "#/components/parameters/siteId"
|
|
17357
|
+
requestBody:
|
|
17358
|
+
required: true
|
|
17359
|
+
content:
|
|
17360
|
+
application/json:
|
|
17361
|
+
schema:
|
|
17362
|
+
type: object
|
|
17363
|
+
properties:
|
|
17364
|
+
reason:
|
|
17365
|
+
type: string
|
|
17366
|
+
description: Reason leading to the site checkout
|
|
17367
|
+
required:
|
|
17368
|
+
- reason
|
|
17369
|
+
responses:
|
|
17370
|
+
"200":
|
|
17371
|
+
description: OK
|
|
17372
|
+
content:
|
|
17373
|
+
application/json:
|
|
17374
|
+
schema:
|
|
17375
|
+
oneOf:
|
|
17376
|
+
- type: object
|
|
17377
|
+
properties:
|
|
17378
|
+
result:
|
|
17379
|
+
type: string
|
|
17380
|
+
enum:
|
|
17381
|
+
- success
|
|
17382
|
+
- failure
|
|
17383
|
+
required:
|
|
17384
|
+
- result
|
|
17385
|
+
- type: object
|
|
17386
|
+
properties:
|
|
17387
|
+
result:
|
|
17388
|
+
type: string
|
|
17389
|
+
enum:
|
|
17390
|
+
- checkout
|
|
17391
|
+
sessionId:
|
|
17392
|
+
type: string
|
|
17393
|
+
description: Stripe payment session ID
|
|
17394
|
+
required:
|
|
17395
|
+
- result
|
|
17396
|
+
- sessionId
|
|
17397
|
+
default:
|
|
17398
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
17399
|
+
get:
|
|
17400
|
+
operationId: getSiteCheckoutById
|
|
17401
|
+
summary: Returns checkout information about a site prior to publishing.
|
|
17402
|
+
tags:
|
|
17403
|
+
- sites
|
|
17404
|
+
security:
|
|
17405
|
+
- user-internal: []
|
|
17406
|
+
parameters:
|
|
17407
|
+
- $ref: "#/components/parameters/organizationId"
|
|
17408
|
+
- $ref: "#/components/parameters/siteId"
|
|
17409
|
+
responses:
|
|
17410
|
+
"200":
|
|
17411
|
+
description: OK
|
|
17412
|
+
content:
|
|
17413
|
+
application/json:
|
|
17414
|
+
schema:
|
|
17415
|
+
allOf:
|
|
17416
|
+
- type: object
|
|
17417
|
+
properties:
|
|
17418
|
+
downgrade:
|
|
17419
|
+
type: boolean
|
|
17420
|
+
- oneOf:
|
|
17421
|
+
- type: object
|
|
17422
|
+
properties:
|
|
17423
|
+
type:
|
|
17424
|
+
type: string
|
|
17425
|
+
enum:
|
|
17426
|
+
- simple-checkout
|
|
17427
|
+
required:
|
|
17428
|
+
- type
|
|
17429
|
+
- type: object
|
|
17430
|
+
properties:
|
|
17431
|
+
type:
|
|
17432
|
+
type: string
|
|
17433
|
+
enum:
|
|
17434
|
+
- advanced-checkout
|
|
17435
|
+
required:
|
|
17436
|
+
- type
|
|
17437
|
+
- type: object
|
|
17438
|
+
properties:
|
|
17439
|
+
type:
|
|
17440
|
+
type: string
|
|
17441
|
+
enum:
|
|
17442
|
+
- no-permissions
|
|
17443
|
+
required:
|
|
17444
|
+
- type
|
|
17445
|
+
- type: object
|
|
17446
|
+
properties:
|
|
17447
|
+
type:
|
|
17448
|
+
type: string
|
|
17449
|
+
enum:
|
|
17450
|
+
- publish
|
|
17451
|
+
required:
|
|
17452
|
+
- type
|
|
17453
|
+
- type: object
|
|
17454
|
+
properties:
|
|
17455
|
+
type:
|
|
17456
|
+
type: string
|
|
17457
|
+
enum:
|
|
17458
|
+
- legacy-upgrade
|
|
17459
|
+
required:
|
|
17460
|
+
- type
|
|
17461
|
+
"404":
|
|
17462
|
+
description: No matching site found
|
|
17463
|
+
$ref: "#/components/responses/NotFoundError"
|
|
17464
|
+
default:
|
|
17465
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
17466
|
+
"/orgs/{organizationId}/sites/{siteId}/publish":
|
|
17467
|
+
post:
|
|
17468
|
+
operationId: publishSite
|
|
17469
|
+
summary: Publishes the site to the audience defined in the site's visibility setting.
|
|
17470
|
+
tags:
|
|
17471
|
+
- sites
|
|
17472
|
+
security:
|
|
17473
|
+
- user: []
|
|
17474
|
+
parameters:
|
|
17475
|
+
- $ref: "#/components/parameters/organizationId"
|
|
17476
|
+
- $ref: "#/components/parameters/siteId"
|
|
17477
|
+
responses:
|
|
17478
|
+
"200":
|
|
17479
|
+
description: Site published successfully
|
|
17480
|
+
content:
|
|
17481
|
+
application/json:
|
|
17482
|
+
schema:
|
|
17483
|
+
$ref: "#/components/schemas/Site"
|
|
17484
|
+
default:
|
|
17485
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
17486
|
+
"/orgs/{organizationId}/sites/{siteId}/unpublish":
|
|
17487
|
+
post:
|
|
17488
|
+
operationId: unpublishSite
|
|
17489
|
+
summary: Unpublishes the site.
|
|
17490
|
+
tags:
|
|
17491
|
+
- sites
|
|
17492
|
+
security:
|
|
17493
|
+
- user: []
|
|
17494
|
+
parameters:
|
|
17495
|
+
- $ref: "#/components/parameters/organizationId"
|
|
17496
|
+
- $ref: "#/components/parameters/siteId"
|
|
17497
|
+
responses:
|
|
17498
|
+
"200":
|
|
17499
|
+
description: Site unpublished successfully
|
|
17500
|
+
content:
|
|
17501
|
+
application/json:
|
|
17502
|
+
schema:
|
|
17503
|
+
$ref: "#/components/schemas/Site"
|
|
17504
|
+
default:
|
|
17505
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
17288
17506
|
"/orgs/{organizationId}/sites/{siteId}/share-links":
|
|
17289
17507
|
get:
|
|
17290
17508
|
operationId: listSiteShareLinks
|
|
@@ -17449,6 +17667,28 @@ paths:
|
|
|
17449
17667
|
$ref: "#/components/responses/BadRequestError"
|
|
17450
17668
|
default:
|
|
17451
17669
|
$ref: "#/components/responses/UnexpectedError"
|
|
17670
|
+
"/orgs/{organizationId}/sites/{siteId}/publishing/auth/regenerate":
|
|
17671
|
+
post:
|
|
17672
|
+
operationId: regenerateSitePublishingAuthById
|
|
17673
|
+
summary: Regenerate the publishing authentication settings for a site. This will re-generate the private key.
|
|
17674
|
+
tags:
|
|
17675
|
+
- sites
|
|
17676
|
+
security:
|
|
17677
|
+
- user: []
|
|
17678
|
+
parameters:
|
|
17679
|
+
- $ref: "#/components/parameters/organizationId"
|
|
17680
|
+
- $ref: "#/components/parameters/siteId"
|
|
17681
|
+
responses:
|
|
17682
|
+
"200":
|
|
17683
|
+
description: OK
|
|
17684
|
+
content:
|
|
17685
|
+
application/json:
|
|
17686
|
+
schema:
|
|
17687
|
+
$ref: "#/components/schemas/SitePublishingAuth"
|
|
17688
|
+
"400":
|
|
17689
|
+
$ref: "#/components/responses/BadRequestError"
|
|
17690
|
+
default:
|
|
17691
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
17452
17692
|
"/orgs/{organizationId}/sites/{siteId}/publishing/preview":
|
|
17453
17693
|
get:
|
|
17454
17694
|
operationId: getSitePublishingPreviewById
|
|
@@ -17492,6 +17732,7 @@ paths:
|
|
|
17492
17732
|
parameters:
|
|
17493
17733
|
- $ref: "#/components/parameters/organizationId"
|
|
17494
17734
|
- $ref: "#/components/parameters/siteId"
|
|
17735
|
+
- $ref: "#/components/parameters/siteCustomizationUnmasked"
|
|
17495
17736
|
responses:
|
|
17496
17737
|
"200":
|
|
17497
17738
|
description: OK
|
|
@@ -17711,6 +17952,7 @@ paths:
|
|
|
17711
17952
|
- $ref: "#/components/parameters/organizationId"
|
|
17712
17953
|
- $ref: "#/components/parameters/siteId"
|
|
17713
17954
|
- $ref: "#/components/parameters/siteSpaceId"
|
|
17955
|
+
- $ref: "#/components/parameters/siteCustomizationUnmasked"
|
|
17714
17956
|
responses:
|
|
17715
17957
|
"200":
|
|
17716
17958
|
description: OK
|
|
@@ -17832,6 +18074,7 @@ paths:
|
|
|
17832
18074
|
description: The content or organization that enforced this permission level.
|
|
17833
18075
|
oneOf:
|
|
17834
18076
|
- $ref: "#/components/schemas/SpacePointer"
|
|
18077
|
+
- $ref: "#/components/schemas/OrganizationPointer"
|
|
17835
18078
|
required:
|
|
17836
18079
|
- permission
|
|
17837
18080
|
- user
|