@gitbook/api 0.46.0 → 0.48.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 +189 -66
- package/dist/index.cjs +68 -27
- package/dist/index.js +67 -25
- package/package.json +1 -1
- package/spec/openapi.json +617 -173
- package/spec/openapi.yaml +338 -100
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:
|
|
@@ -3220,6 +3229,8 @@ components:
|
|
|
3220
3229
|
- $ref: "#/components/schemas/ContentLocationSpace"
|
|
3221
3230
|
- $ref: "#/components/schemas/ContentLocationSnippet"
|
|
3222
3231
|
- $ref: "#/components/schemas/ContentLocationSyncedBlock"
|
|
3232
|
+
discriminator:
|
|
3233
|
+
propertyName: kind
|
|
3223
3234
|
ContentLocationURL:
|
|
3224
3235
|
type: object
|
|
3225
3236
|
properties:
|
|
@@ -3243,10 +3254,10 @@ components:
|
|
|
3243
3254
|
$ref: "#/components/schemas/Organization"
|
|
3244
3255
|
space:
|
|
3245
3256
|
$ref: "#/components/schemas/Space"
|
|
3246
|
-
|
|
3247
|
-
|
|
3248
|
-
|
|
3249
|
-
|
|
3257
|
+
versionContext:
|
|
3258
|
+
oneOf:
|
|
3259
|
+
- $ref: "#/components/schemas/ContentLocationRevisionContext"
|
|
3260
|
+
- $ref: "#/components/schemas/ContentLocationChangeRequestContext"
|
|
3250
3261
|
file:
|
|
3251
3262
|
$ref: "#/components/schemas/RevisionFile"
|
|
3252
3263
|
required:
|
|
@@ -3267,16 +3278,36 @@ components:
|
|
|
3267
3278
|
$ref: "#/components/schemas/RevisionPage"
|
|
3268
3279
|
space:
|
|
3269
3280
|
$ref: "#/components/schemas/Space"
|
|
3270
|
-
|
|
3271
|
-
|
|
3272
|
-
|
|
3273
|
-
|
|
3274
|
-
|
|
3275
|
-
|
|
3276
|
-
|
|
3277
|
-
|
|
3278
|
-
|
|
3279
|
-
|
|
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
|
|
3280
3311
|
required:
|
|
3281
3312
|
- kind
|
|
3282
3313
|
- organization
|
|
@@ -3354,6 +3385,30 @@ components:
|
|
|
3354
3385
|
- kind
|
|
3355
3386
|
- organization
|
|
3356
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"
|
|
3357
3412
|
Space:
|
|
3358
3413
|
type: object
|
|
3359
3414
|
properties:
|
|
@@ -4590,16 +4645,12 @@ components:
|
|
|
4590
4645
|
visitorAuth:
|
|
4591
4646
|
description: Count of all visitor-authenticated sites
|
|
4592
4647
|
type: number
|
|
4593
|
-
unpublished:
|
|
4594
|
-
description: Count of all unpublished sites
|
|
4595
|
-
type: number
|
|
4596
4648
|
required:
|
|
4597
4649
|
- total
|
|
4598
4650
|
- public
|
|
4599
4651
|
- unlisted
|
|
4600
4652
|
- shareLink
|
|
4601
4653
|
- visitorAuth
|
|
4602
|
-
- unpublished
|
|
4603
4654
|
OrganizationUsageMembers:
|
|
4604
4655
|
type: object
|
|
4605
4656
|
description: Members usage metrics of an organization
|
|
@@ -5076,60 +5127,15 @@ components:
|
|
|
5076
5127
|
$ref: "#/components/schemas/ContentReferenceStatus"
|
|
5077
5128
|
targetReference:
|
|
5078
5129
|
description: The reference target where a list of pages are pointing at
|
|
5079
|
-
$ref: "#/components/schemas/
|
|
5130
|
+
$ref: "#/components/schemas/ContentLocation"
|
|
5080
5131
|
locationReferences:
|
|
5081
|
-
description:
|
|
5132
|
+
description: Pages locations where a link to the target is found.
|
|
5082
5133
|
type: array
|
|
5083
5134
|
items:
|
|
5084
|
-
$ref: "#/components/schemas/
|
|
5135
|
+
$ref: "#/components/schemas/ContentLocation"
|
|
5085
5136
|
required:
|
|
5086
5137
|
- status
|
|
5087
|
-
- targetReference
|
|
5088
5138
|
- locationReferences
|
|
5089
|
-
ContentReferenceResolved:
|
|
5090
|
-
type: object
|
|
5091
|
-
properties:
|
|
5092
|
-
text:
|
|
5093
|
-
description: Text to display to represent the reference
|
|
5094
|
-
type: string
|
|
5095
|
-
type:
|
|
5096
|
-
description: The type of the content reference
|
|
5097
|
-
type: string
|
|
5098
|
-
enum:
|
|
5099
|
-
- space
|
|
5100
|
-
- page
|
|
5101
|
-
- file
|
|
5102
|
-
- anchor
|
|
5103
|
-
- collection
|
|
5104
|
-
- user
|
|
5105
|
-
- snippet
|
|
5106
|
-
- url
|
|
5107
|
-
- synced-block
|
|
5108
|
-
url:
|
|
5109
|
-
description: Target in-app url for the reference
|
|
5110
|
-
type: string
|
|
5111
|
-
extra:
|
|
5112
|
-
type: object
|
|
5113
|
-
properties:
|
|
5114
|
-
collection:
|
|
5115
|
-
$ref: "#/components/schemas/Collection"
|
|
5116
|
-
space:
|
|
5117
|
-
$ref: "#/components/schemas/Space"
|
|
5118
|
-
page:
|
|
5119
|
-
$ref: "#/components/schemas/RevisionPage"
|
|
5120
|
-
anchor:
|
|
5121
|
-
$ref: "#/components/schemas/RevisionPage"
|
|
5122
|
-
file:
|
|
5123
|
-
$ref: "#/components/schemas/RevisionFile"
|
|
5124
|
-
snippet:
|
|
5125
|
-
$ref: "#/components/schemas/Snippet"
|
|
5126
|
-
user:
|
|
5127
|
-
$ref: "#/components/schemas/User"
|
|
5128
|
-
required:
|
|
5129
|
-
- text
|
|
5130
|
-
- type
|
|
5131
|
-
- url
|
|
5132
|
-
- extra
|
|
5133
5139
|
ContentReferenceStatus:
|
|
5134
5140
|
type: string
|
|
5135
5141
|
enum:
|
|
@@ -6110,6 +6116,7 @@ components:
|
|
|
6110
6116
|
- content
|
|
6111
6117
|
- gitsync
|
|
6112
6118
|
- marketing
|
|
6119
|
+
- visitor-auth
|
|
6113
6120
|
- other
|
|
6114
6121
|
IntegrationConfigurations:
|
|
6115
6122
|
type: object
|
|
@@ -7308,7 +7315,7 @@ components:
|
|
|
7308
7315
|
- free_2024
|
|
7309
7316
|
- plus_2024
|
|
7310
7317
|
- pro_2024
|
|
7311
|
-
-
|
|
7318
|
+
- enterprise_2024
|
|
7312
7319
|
- free
|
|
7313
7320
|
- plus
|
|
7314
7321
|
- pro
|
|
@@ -7316,6 +7323,7 @@ components:
|
|
|
7316
7323
|
- business
|
|
7317
7324
|
- legacy
|
|
7318
7325
|
- startup
|
|
7326
|
+
- enterprise
|
|
7319
7327
|
BillingUpgrade:
|
|
7320
7328
|
oneOf:
|
|
7321
7329
|
- type: object
|
|
@@ -9939,6 +9947,8 @@ components:
|
|
|
9939
9947
|
id:
|
|
9940
9948
|
type: string
|
|
9941
9949
|
description: Unique identifier of the site
|
|
9950
|
+
type:
|
|
9951
|
+
$ref: "#/components/schemas/SiteType"
|
|
9942
9952
|
title:
|
|
9943
9953
|
$ref: "#/components/schemas/SiteTitle"
|
|
9944
9954
|
hostname:
|
|
@@ -9947,13 +9957,14 @@ components:
|
|
|
9947
9957
|
$ref: "#/components/schemas/SiteBasename"
|
|
9948
9958
|
visibility:
|
|
9949
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.
|
|
9950
9963
|
siteSpaces:
|
|
9951
9964
|
type: number
|
|
9952
9965
|
createdAt:
|
|
9953
9966
|
type: string
|
|
9954
9967
|
format: date-time
|
|
9955
|
-
subscription:
|
|
9956
|
-
$ref: "#/components/schemas/SiteSubscription"
|
|
9957
9968
|
urls:
|
|
9958
9969
|
type: object
|
|
9959
9970
|
description: URLs associated with the object
|
|
@@ -9968,7 +9979,7 @@ components:
|
|
|
9968
9979
|
format: uri
|
|
9969
9980
|
published:
|
|
9970
9981
|
type: string
|
|
9971
|
-
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.
|
|
9972
9983
|
format: uri
|
|
9973
9984
|
required:
|
|
9974
9985
|
- app
|
|
@@ -9976,13 +9987,21 @@ components:
|
|
|
9976
9987
|
required:
|
|
9977
9988
|
- object
|
|
9978
9989
|
- id
|
|
9990
|
+
- type
|
|
9979
9991
|
- title
|
|
9980
9992
|
- visibility
|
|
9993
|
+
- published
|
|
9981
9994
|
- createdAt
|
|
9982
9995
|
- siteSpaces
|
|
9983
9996
|
- defaultSpace
|
|
9984
|
-
- subscription
|
|
9985
9997
|
- urls
|
|
9998
|
+
SiteType:
|
|
9999
|
+
type: string
|
|
10000
|
+
description: The type of the site
|
|
10001
|
+
enum:
|
|
10002
|
+
- basic
|
|
10003
|
+
- standard
|
|
10004
|
+
- premium
|
|
9986
10005
|
SiteTitle:
|
|
9987
10006
|
type: string
|
|
9988
10007
|
description: Title of the site
|
|
@@ -10101,6 +10120,14 @@ components:
|
|
|
10101
10120
|
description: If true, AI search is enabled
|
|
10102
10121
|
required:
|
|
10103
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
|
|
10104
10131
|
git:
|
|
10105
10132
|
type: object
|
|
10106
10133
|
properties:
|
|
@@ -10145,6 +10172,7 @@ components:
|
|
|
10145
10172
|
- pdf
|
|
10146
10173
|
- feedback
|
|
10147
10174
|
- aiSearch
|
|
10175
|
+
- advancedCustomization
|
|
10148
10176
|
- trademark
|
|
10149
10177
|
- pagination
|
|
10150
10178
|
- git
|
|
@@ -10380,19 +10408,21 @@ components:
|
|
|
10380
10408
|
SiteVisibility:
|
|
10381
10409
|
type: string
|
|
10382
10410
|
description: |
|
|
10411
|
+
The visibility setting of the site determines the audience of the site.
|
|
10383
10412
|
* `public`: Anyone can access the site, and the site is indexed by search engines.
|
|
10384
10413
|
* `unlisted`: Anyone can access the site, and the site is not indexed by search engines
|
|
10385
10414
|
* `share-link`: Anyone with a secret token in the url can access the site.
|
|
10386
10415
|
* `visitor-auth`: Anyone authenticated through a JWT token can access the site.
|
|
10387
|
-
* `unpublished`: The site is not accessible to anyone.
|
|
10388
10416
|
enum:
|
|
10389
10417
|
- public
|
|
10390
10418
|
- unlisted
|
|
10391
10419
|
- share-link
|
|
10392
10420
|
- visitor-auth
|
|
10393
|
-
- unpublished
|
|
10394
10421
|
SitePublishingAuth:
|
|
10395
10422
|
allOf:
|
|
10423
|
+
- oneOf:
|
|
10424
|
+
- $ref: "#/components/schemas/SpaceVisitorAuthCustomBackend"
|
|
10425
|
+
- $ref: "#/components/schemas/SpaceVisitorAuthIntegrationBackend"
|
|
10396
10426
|
- type: object
|
|
10397
10427
|
properties:
|
|
10398
10428
|
object:
|
|
@@ -10407,10 +10437,14 @@ components:
|
|
|
10407
10437
|
type: string
|
|
10408
10438
|
format: uri
|
|
10409
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.
|
|
10410
10445
|
required:
|
|
10411
10446
|
- object
|
|
10412
10447
|
- privateKey
|
|
10413
|
-
- $ref: "#/components/schemas/SpaceVisitorAuth"
|
|
10414
10448
|
SitePublishingAuthUpdate:
|
|
10415
10449
|
allOf:
|
|
10416
10450
|
- oneOf:
|
|
@@ -10449,13 +10483,16 @@ components:
|
|
|
10449
10483
|
default:
|
|
10450
10484
|
type: boolean
|
|
10451
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
|
|
10452
10489
|
urls:
|
|
10453
10490
|
type: object
|
|
10454
10491
|
description: URLs associated with the object
|
|
10455
10492
|
properties:
|
|
10456
10493
|
published:
|
|
10457
10494
|
type: string
|
|
10458
|
-
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.
|
|
10459
10496
|
format: uri
|
|
10460
10497
|
required:
|
|
10461
10498
|
- location
|
|
@@ -10490,27 +10527,6 @@ components:
|
|
|
10490
10527
|
required:
|
|
10491
10528
|
- type
|
|
10492
10529
|
- siteSpace
|
|
10493
|
-
SiteSubscriptionStatus:
|
|
10494
|
-
type: string
|
|
10495
|
-
enum:
|
|
10496
|
-
- active
|
|
10497
|
-
- inactive
|
|
10498
|
-
SiteSubscriptionType:
|
|
10499
|
-
type: string
|
|
10500
|
-
enum:
|
|
10501
|
-
- basic
|
|
10502
|
-
- premium
|
|
10503
|
-
- premium_va
|
|
10504
|
-
SiteSubscription:
|
|
10505
|
-
type: object
|
|
10506
|
-
properties:
|
|
10507
|
-
type:
|
|
10508
|
-
$ref: "#/components/schemas/SiteSubscriptionType"
|
|
10509
|
-
status:
|
|
10510
|
-
$ref: "#/components/schemas/SiteSubscriptionStatus"
|
|
10511
|
-
required:
|
|
10512
|
-
- type
|
|
10513
|
-
- status
|
|
10514
10530
|
CustomHostname:
|
|
10515
10531
|
type: object
|
|
10516
10532
|
properties:
|
|
@@ -15976,6 +15992,43 @@ paths:
|
|
|
15976
15992
|
- installation
|
|
15977
15993
|
default:
|
|
15978
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"
|
|
15979
16032
|
"/orgs/{organizationId}/experiments":
|
|
15980
16033
|
get:
|
|
15981
16034
|
operationId: listOrgExperimentalFeatures
|
|
@@ -17290,6 +17343,166 @@ paths:
|
|
|
17290
17343
|
description: Site has been deleted
|
|
17291
17344
|
default:
|
|
17292
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"
|
|
17293
17506
|
"/orgs/{organizationId}/sites/{siteId}/share-links":
|
|
17294
17507
|
get:
|
|
17295
17508
|
operationId: listSiteShareLinks
|
|
@@ -17454,6 +17667,28 @@ paths:
|
|
|
17454
17667
|
$ref: "#/components/responses/BadRequestError"
|
|
17455
17668
|
default:
|
|
17456
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"
|
|
17457
17692
|
"/orgs/{organizationId}/sites/{siteId}/publishing/preview":
|
|
17458
17693
|
get:
|
|
17459
17694
|
operationId: getSitePublishingPreviewById
|
|
@@ -17497,6 +17732,7 @@ paths:
|
|
|
17497
17732
|
parameters:
|
|
17498
17733
|
- $ref: "#/components/parameters/organizationId"
|
|
17499
17734
|
- $ref: "#/components/parameters/siteId"
|
|
17735
|
+
- $ref: "#/components/parameters/siteCustomizationUnmasked"
|
|
17500
17736
|
responses:
|
|
17501
17737
|
"200":
|
|
17502
17738
|
description: OK
|
|
@@ -17591,7 +17827,7 @@ paths:
|
|
|
17591
17827
|
$ref: "#/components/schemas/Integration"
|
|
17592
17828
|
default:
|
|
17593
17829
|
$ref: "#/components/responses/UnexpectedError"
|
|
17594
|
-
"/orgs/{organizationId}/sites/{siteId}/spaces":
|
|
17830
|
+
"/orgs/{organizationId}/sites/{siteId}/site-spaces":
|
|
17595
17831
|
post:
|
|
17596
17832
|
operationId: addSpaceToSite
|
|
17597
17833
|
summary: Add a space to a site in an organization
|
|
@@ -17658,7 +17894,7 @@ paths:
|
|
|
17658
17894
|
$ref: "#/components/schemas/SiteSpace"
|
|
17659
17895
|
default:
|
|
17660
17896
|
$ref: "#/components/responses/UnexpectedError"
|
|
17661
|
-
"/orgs/{organizationId}/sites/{siteId}/spaces/{siteSpaceId}":
|
|
17897
|
+
"/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}":
|
|
17662
17898
|
patch:
|
|
17663
17899
|
operationId: updateSiteSpaceById
|
|
17664
17900
|
summary: Update a space on a site in an organization
|
|
@@ -17704,7 +17940,7 @@ paths:
|
|
|
17704
17940
|
description: Site space has been deleted
|
|
17705
17941
|
default:
|
|
17706
17942
|
$ref: "#/components/responses/UnexpectedError"
|
|
17707
|
-
"/orgs/{organizationId}/sites/{siteId}/spaces/{siteSpaceId}/customization":
|
|
17943
|
+
"/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}/customization":
|
|
17708
17944
|
get:
|
|
17709
17945
|
operationId: getSiteSpaceCustomizationById
|
|
17710
17946
|
summary: Get the customization configuration for a site space.
|
|
@@ -17716,6 +17952,7 @@ paths:
|
|
|
17716
17952
|
- $ref: "#/components/parameters/organizationId"
|
|
17717
17953
|
- $ref: "#/components/parameters/siteId"
|
|
17718
17954
|
- $ref: "#/components/parameters/siteSpaceId"
|
|
17955
|
+
- $ref: "#/components/parameters/siteCustomizationUnmasked"
|
|
17719
17956
|
responses:
|
|
17720
17957
|
"200":
|
|
17721
17958
|
description: OK
|
|
@@ -17756,7 +17993,7 @@ paths:
|
|
|
17756
17993
|
$ref: "#/components/responses/BadRequestError"
|
|
17757
17994
|
default:
|
|
17758
17995
|
$ref: "#/components/responses/UnexpectedError"
|
|
17759
|
-
"/orgs/{organizationId}/sites/{siteId}/spaces/{siteSpaceId}/move":
|
|
17996
|
+
"/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}/move":
|
|
17760
17997
|
post:
|
|
17761
17998
|
operationId: moveSiteSpace
|
|
17762
17999
|
summary: Move a site space to a new position in the site.
|
|
@@ -17837,6 +18074,7 @@ paths:
|
|
|
17837
18074
|
description: The content or organization that enforced this permission level.
|
|
17838
18075
|
oneOf:
|
|
17839
18076
|
- $ref: "#/components/schemas/SpacePointer"
|
|
18077
|
+
- $ref: "#/components/schemas/OrganizationPointer"
|
|
17840
18078
|
required:
|
|
17841
18079
|
- permission
|
|
17842
18080
|
- user
|