@gitbook/api 0.76.0 → 0.78.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 +191 -172
- package/dist/index.cjs +41 -65
- package/dist/index.js +41 -65
- package/package.json +1 -1
- package/spec/openapi.json +746 -661
- package/spec/openapi.yaml +358 -281
package/spec/openapi.yaml
CHANGED
|
@@ -50,6 +50,7 @@ paths:
|
|
|
50
50
|
required: true
|
|
51
51
|
schema:
|
|
52
52
|
type: string
|
|
53
|
+
maxLength: 512
|
|
53
54
|
- $ref: "#/components/parameters/listPage"
|
|
54
55
|
- $ref: "#/components/parameters/listLimit"
|
|
55
56
|
responses:
|
|
@@ -463,6 +464,7 @@ paths:
|
|
|
463
464
|
required: true
|
|
464
465
|
schema:
|
|
465
466
|
type: string
|
|
467
|
+
maxLength: 512
|
|
466
468
|
- $ref: "#/components/parameters/spaceId"
|
|
467
469
|
- $ref: "#/components/parameters/listPage"
|
|
468
470
|
- $ref: "#/components/parameters/listLimit"
|
|
@@ -2706,6 +2708,7 @@ paths:
|
|
|
2706
2708
|
$ref: "#/components/responses/UnexpectedError"
|
|
2707
2709
|
"/spaces/{spaceId}/publishing/customization":
|
|
2708
2710
|
get:
|
|
2711
|
+
deprecated: true
|
|
2709
2712
|
operationId: getSpacePublishingCustomizationById
|
|
2710
2713
|
summary: Get the publishing customization configuration for a space.
|
|
2711
2714
|
tags:
|
|
@@ -2726,6 +2729,7 @@ paths:
|
|
|
2726
2729
|
default:
|
|
2727
2730
|
$ref: "#/components/responses/UnexpectedError"
|
|
2728
2731
|
put:
|
|
2732
|
+
deprecated: true
|
|
2729
2733
|
operationId: updateSpacePublishingCustomizationById
|
|
2730
2734
|
summary: Update the publishing customization configuration for a space.
|
|
2731
2735
|
tags:
|
|
@@ -2960,82 +2964,6 @@ paths:
|
|
|
2960
2964
|
- url
|
|
2961
2965
|
default:
|
|
2962
2966
|
$ref: "#/components/responses/UnexpectedError"
|
|
2963
|
-
"/spaces/{spaceId}/share-links":
|
|
2964
|
-
post:
|
|
2965
|
-
operationId: createSpaceShareLink
|
|
2966
|
-
summary: Creates a new space share link
|
|
2967
|
-
tags:
|
|
2968
|
-
- spaces
|
|
2969
|
-
security:
|
|
2970
|
-
- user: []
|
|
2971
|
-
parameters:
|
|
2972
|
-
- $ref: "#/components/parameters/spaceId"
|
|
2973
|
-
requestBody:
|
|
2974
|
-
content:
|
|
2975
|
-
application/json:
|
|
2976
|
-
schema:
|
|
2977
|
-
type: object
|
|
2978
|
-
properties:
|
|
2979
|
-
name:
|
|
2980
|
-
$ref: "#/components/schemas/ShareLinkName"
|
|
2981
|
-
required:
|
|
2982
|
-
- name
|
|
2983
|
-
responses:
|
|
2984
|
-
"201":
|
|
2985
|
-
description: The space share link has been created
|
|
2986
|
-
content:
|
|
2987
|
-
application/json:
|
|
2988
|
-
schema:
|
|
2989
|
-
$ref: "#/components/schemas/ShareLink"
|
|
2990
|
-
default:
|
|
2991
|
-
$ref: "#/components/responses/UnexpectedError"
|
|
2992
|
-
"/spaces/{spaceId}/share-links/{shareLinkId}":
|
|
2993
|
-
patch:
|
|
2994
|
-
operationId: updateSpaceShareLinkById
|
|
2995
|
-
summary: Update the details of a space share link
|
|
2996
|
-
tags:
|
|
2997
|
-
- spaces
|
|
2998
|
-
security:
|
|
2999
|
-
- user: []
|
|
3000
|
-
parameters:
|
|
3001
|
-
- $ref: "#/components/parameters/spaceId"
|
|
3002
|
-
- $ref: "#/components/parameters/shareLinkId"
|
|
3003
|
-
requestBody:
|
|
3004
|
-
required: true
|
|
3005
|
-
content:
|
|
3006
|
-
application/json:
|
|
3007
|
-
schema:
|
|
3008
|
-
type: object
|
|
3009
|
-
minProperties: 1
|
|
3010
|
-
properties:
|
|
3011
|
-
active:
|
|
3012
|
-
type: boolean
|
|
3013
|
-
name:
|
|
3014
|
-
$ref: "#/components/schemas/ShareLinkName"
|
|
3015
|
-
responses:
|
|
3016
|
-
"200":
|
|
3017
|
-
description: The space share link has been updated
|
|
3018
|
-
content:
|
|
3019
|
-
application/json:
|
|
3020
|
-
schema:
|
|
3021
|
-
$ref: "#/components/schemas/ShareLink"
|
|
3022
|
-
default:
|
|
3023
|
-
$ref: "#/components/responses/UnexpectedError"
|
|
3024
|
-
delete:
|
|
3025
|
-
operationId: deleteSpaceShareLinkById
|
|
3026
|
-
summary: Deletes a space share link
|
|
3027
|
-
tags:
|
|
3028
|
-
- spaces
|
|
3029
|
-
security:
|
|
3030
|
-
- user: []
|
|
3031
|
-
parameters:
|
|
3032
|
-
- $ref: "#/components/parameters/spaceId"
|
|
3033
|
-
- $ref: "#/components/parameters/shareLinkId"
|
|
3034
|
-
responses:
|
|
3035
|
-
"205":
|
|
3036
|
-
description: Space share link has been deleted
|
|
3037
|
-
default:
|
|
3038
|
-
$ref: "#/components/responses/UnexpectedError"
|
|
3039
2967
|
"/spaces/{spaceId}/links":
|
|
3040
2968
|
get:
|
|
3041
2969
|
operationId: listSpaceLinks
|
|
@@ -3112,8 +3040,6 @@ paths:
|
|
|
3112
3040
|
schema:
|
|
3113
3041
|
type: object
|
|
3114
3042
|
properties:
|
|
3115
|
-
visibility:
|
|
3116
|
-
$ref: "#/components/schemas/ContentVisibility"
|
|
3117
3043
|
title:
|
|
3118
3044
|
$ref: "#/components/schemas/CollectionTitle"
|
|
3119
3045
|
description:
|
|
@@ -3292,129 +3218,6 @@ paths:
|
|
|
3292
3218
|
$ref: "#/components/schemas/UserContentPermission"
|
|
3293
3219
|
default:
|
|
3294
3220
|
$ref: "#/components/responses/UnexpectedError"
|
|
3295
|
-
"/collections/{collectionId}/publishing/customization":
|
|
3296
|
-
get:
|
|
3297
|
-
operationId: getCollectionPublishingCustomizationById
|
|
3298
|
-
summary: Get the publishing customization configuration for a collection.
|
|
3299
|
-
tags:
|
|
3300
|
-
- collections
|
|
3301
|
-
security:
|
|
3302
|
-
- user: []
|
|
3303
|
-
parameters:
|
|
3304
|
-
- $ref: "#/components/parameters/collectionId"
|
|
3305
|
-
responses:
|
|
3306
|
-
"200":
|
|
3307
|
-
description: OK
|
|
3308
|
-
content:
|
|
3309
|
-
application/json:
|
|
3310
|
-
schema:
|
|
3311
|
-
$ref: "#/components/schemas/CustomizationCollectionSettings"
|
|
3312
|
-
"400":
|
|
3313
|
-
$ref: "#/components/responses/BadRequestError"
|
|
3314
|
-
default:
|
|
3315
|
-
$ref: "#/components/responses/UnexpectedError"
|
|
3316
|
-
put:
|
|
3317
|
-
operationId: updateCollectionPublishingCustomizationById
|
|
3318
|
-
summary: Update the publishing customization configuration for a collection.
|
|
3319
|
-
tags:
|
|
3320
|
-
- collections
|
|
3321
|
-
security:
|
|
3322
|
-
- user: []
|
|
3323
|
-
parameters:
|
|
3324
|
-
- $ref: "#/components/parameters/collectionId"
|
|
3325
|
-
requestBody:
|
|
3326
|
-
required: true
|
|
3327
|
-
content:
|
|
3328
|
-
application/json:
|
|
3329
|
-
schema:
|
|
3330
|
-
$ref: "#/components/schemas/CustomizationCollectionSettings"
|
|
3331
|
-
responses:
|
|
3332
|
-
"200":
|
|
3333
|
-
description: OK
|
|
3334
|
-
content:
|
|
3335
|
-
application/json:
|
|
3336
|
-
schema:
|
|
3337
|
-
$ref: "#/components/schemas/CustomizationCollectionSettings"
|
|
3338
|
-
"400":
|
|
3339
|
-
$ref: "#/components/responses/BadRequestError"
|
|
3340
|
-
default:
|
|
3341
|
-
$ref: "#/components/responses/UnexpectedError"
|
|
3342
|
-
"/collections/{collectionId}/share-links":
|
|
3343
|
-
post:
|
|
3344
|
-
operationId: createCollectionShareLink
|
|
3345
|
-
summary: Creates a new collection share link
|
|
3346
|
-
tags:
|
|
3347
|
-
- collections
|
|
3348
|
-
security:
|
|
3349
|
-
- user: []
|
|
3350
|
-
parameters:
|
|
3351
|
-
- $ref: "#/components/parameters/collectionId"
|
|
3352
|
-
requestBody:
|
|
3353
|
-
content:
|
|
3354
|
-
application/json:
|
|
3355
|
-
schema:
|
|
3356
|
-
type: object
|
|
3357
|
-
properties:
|
|
3358
|
-
name:
|
|
3359
|
-
$ref: "#/components/schemas/ShareLinkName"
|
|
3360
|
-
required:
|
|
3361
|
-
- name
|
|
3362
|
-
responses:
|
|
3363
|
-
"201":
|
|
3364
|
-
description: The collection share link has been created
|
|
3365
|
-
content:
|
|
3366
|
-
application/json:
|
|
3367
|
-
schema:
|
|
3368
|
-
$ref: "#/components/schemas/ShareLink"
|
|
3369
|
-
default:
|
|
3370
|
-
$ref: "#/components/responses/UnexpectedError"
|
|
3371
|
-
"/collections/{collectionId}/share-links/{shareLinkId}":
|
|
3372
|
-
patch:
|
|
3373
|
-
operationId: updateCollectionShareLinkById
|
|
3374
|
-
summary: Update the details of a collection share link
|
|
3375
|
-
tags:
|
|
3376
|
-
- collections
|
|
3377
|
-
security:
|
|
3378
|
-
- user: []
|
|
3379
|
-
parameters:
|
|
3380
|
-
- $ref: "#/components/parameters/collectionId"
|
|
3381
|
-
- $ref: "#/components/parameters/shareLinkId"
|
|
3382
|
-
requestBody:
|
|
3383
|
-
required: true
|
|
3384
|
-
content:
|
|
3385
|
-
application/json:
|
|
3386
|
-
schema:
|
|
3387
|
-
type: object
|
|
3388
|
-
minProperties: 1
|
|
3389
|
-
properties:
|
|
3390
|
-
active:
|
|
3391
|
-
type: boolean
|
|
3392
|
-
name:
|
|
3393
|
-
$ref: "#/components/schemas/ShareLinkName"
|
|
3394
|
-
responses:
|
|
3395
|
-
"200":
|
|
3396
|
-
description: The collection share link has been updated
|
|
3397
|
-
content:
|
|
3398
|
-
application/json:
|
|
3399
|
-
schema:
|
|
3400
|
-
$ref: "#/components/schemas/ShareLink"
|
|
3401
|
-
default:
|
|
3402
|
-
$ref: "#/components/responses/UnexpectedError"
|
|
3403
|
-
delete:
|
|
3404
|
-
operationId: deleteCollectionShareLinkById
|
|
3405
|
-
summary: Deletes a collection share link
|
|
3406
|
-
tags:
|
|
3407
|
-
- collections
|
|
3408
|
-
security:
|
|
3409
|
-
- user: []
|
|
3410
|
-
parameters:
|
|
3411
|
-
- $ref: "#/components/parameters/collectionId"
|
|
3412
|
-
- $ref: "#/components/parameters/shareLinkId"
|
|
3413
|
-
responses:
|
|
3414
|
-
"205":
|
|
3415
|
-
description: Collection share link has been deleted
|
|
3416
|
-
default:
|
|
3417
|
-
$ref: "#/components/responses/UnexpectedError"
|
|
3418
3221
|
/integrations:
|
|
3419
3222
|
get:
|
|
3420
3223
|
operationId: listIntegrations
|
|
@@ -4350,6 +4153,7 @@ paths:
|
|
|
4350
4153
|
Lists all spaces, collections, sites accessible by current user in the current organization. This endpoint is internal for now as the data structure is optimized for the sidebar.
|
|
4351
4154
|
tags:
|
|
4352
4155
|
- organizations
|
|
4156
|
+
- critical
|
|
4353
4157
|
security:
|
|
4354
4158
|
- user-internal: []
|
|
4355
4159
|
parameters:
|
|
@@ -5193,6 +4997,7 @@ paths:
|
|
|
5193
4997
|
required: true
|
|
5194
4998
|
schema:
|
|
5195
4999
|
type: string
|
|
5000
|
+
maxLength: 512
|
|
5196
5001
|
- $ref: "#/components/parameters/organizationId"
|
|
5197
5002
|
- $ref: "#/components/parameters/listPage"
|
|
5198
5003
|
- $ref: "#/components/parameters/listLimit"
|
|
@@ -7042,7 +6847,7 @@ paths:
|
|
|
7042
6847
|
* `upgraded`: Subscription was upgraded to include the site
|
|
7043
6848
|
* `downgraded`: Subscription was downgraded by removing the site
|
|
7044
6849
|
* `no-payment-changes`: No impact on subscription (e.g. trial, unpublished)
|
|
7045
|
-
type:
|
|
6850
|
+
type: string
|
|
7046
6851
|
enum:
|
|
7047
6852
|
- upgraded
|
|
7048
6853
|
- downgraded
|
|
@@ -7483,6 +7288,13 @@ paths:
|
|
|
7483
7288
|
defaultSiteSpace:
|
|
7484
7289
|
type: string
|
|
7485
7290
|
description: ID of the site-space to be used as the default in this section.
|
|
7291
|
+
icon:
|
|
7292
|
+
oneOf:
|
|
7293
|
+
- $ref: "#/components/schemas/Icon"
|
|
7294
|
+
- type: string
|
|
7295
|
+
nullable: true
|
|
7296
|
+
enum:
|
|
7297
|
+
- null
|
|
7486
7298
|
responses:
|
|
7487
7299
|
"200":
|
|
7488
7300
|
description: OK
|
|
@@ -7539,6 +7351,7 @@ paths:
|
|
|
7539
7351
|
type: string
|
|
7540
7352
|
query:
|
|
7541
7353
|
type: string
|
|
7354
|
+
maxLength: 512
|
|
7542
7355
|
required:
|
|
7543
7356
|
- siteSpaceIds
|
|
7544
7357
|
- query
|
|
@@ -7553,6 +7366,7 @@ paths:
|
|
|
7553
7366
|
type: string
|
|
7554
7367
|
query:
|
|
7555
7368
|
type: string
|
|
7369
|
+
maxLength: 512
|
|
7556
7370
|
required:
|
|
7557
7371
|
- mode
|
|
7558
7372
|
- siteSpaceId
|
|
@@ -7566,6 +7380,7 @@ paths:
|
|
|
7566
7380
|
- all
|
|
7567
7381
|
query:
|
|
7568
7382
|
type: string
|
|
7383
|
+
maxLength: 512
|
|
7569
7384
|
required:
|
|
7570
7385
|
- mode
|
|
7571
7386
|
- query
|
|
@@ -8282,6 +8097,156 @@ paths:
|
|
|
8282
8097
|
description: OK
|
|
8283
8098
|
default:
|
|
8284
8099
|
$ref: "#/components/responses/UnexpectedError"
|
|
8100
|
+
"/orgs/{organizationId}/sites/{siteId}/redirects":
|
|
8101
|
+
post:
|
|
8102
|
+
operationId: createSiteRedirect
|
|
8103
|
+
summary: Configure a redirect explicitly for a site.
|
|
8104
|
+
tags:
|
|
8105
|
+
- sites
|
|
8106
|
+
security:
|
|
8107
|
+
- user: []
|
|
8108
|
+
parameters:
|
|
8109
|
+
- $ref: "#/components/parameters/organizationId"
|
|
8110
|
+
- $ref: "#/components/parameters/siteId"
|
|
8111
|
+
requestBody:
|
|
8112
|
+
required: true
|
|
8113
|
+
content:
|
|
8114
|
+
application/json:
|
|
8115
|
+
schema:
|
|
8116
|
+
type: object
|
|
8117
|
+
properties:
|
|
8118
|
+
source:
|
|
8119
|
+
$ref: "#/components/schemas/SiteRedirectSourcePath"
|
|
8120
|
+
destination:
|
|
8121
|
+
$ref: "#/components/schemas/SiteRedirectDestination"
|
|
8122
|
+
required:
|
|
8123
|
+
- source
|
|
8124
|
+
- destination
|
|
8125
|
+
responses:
|
|
8126
|
+
"201":
|
|
8127
|
+
description: The redirect was created successfully.
|
|
8128
|
+
content:
|
|
8129
|
+
application/json:
|
|
8130
|
+
schema:
|
|
8131
|
+
$ref: "#/components/schemas/SiteRedirect"
|
|
8132
|
+
default:
|
|
8133
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
8134
|
+
get:
|
|
8135
|
+
operationId: listSiteRedirects
|
|
8136
|
+
summary: List the redirects configured for a site.
|
|
8137
|
+
tags:
|
|
8138
|
+
- sites
|
|
8139
|
+
security:
|
|
8140
|
+
- user: []
|
|
8141
|
+
parameters:
|
|
8142
|
+
- $ref: "#/components/parameters/organizationId"
|
|
8143
|
+
- $ref: "#/components/parameters/siteId"
|
|
8144
|
+
- $ref: "#/components/parameters/listPage"
|
|
8145
|
+
- $ref: "#/components/parameters/listLimit"
|
|
8146
|
+
responses:
|
|
8147
|
+
"200":
|
|
8148
|
+
description: The list of redirects for the site.
|
|
8149
|
+
content:
|
|
8150
|
+
application/json:
|
|
8151
|
+
schema:
|
|
8152
|
+
allOf:
|
|
8153
|
+
- $ref: "#/components/schemas/List"
|
|
8154
|
+
- type: object
|
|
8155
|
+
required:
|
|
8156
|
+
- items
|
|
8157
|
+
properties:
|
|
8158
|
+
items:
|
|
8159
|
+
type: array
|
|
8160
|
+
items:
|
|
8161
|
+
$ref: "#/components/schemas/SiteRedirect"
|
|
8162
|
+
default:
|
|
8163
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
8164
|
+
"/orgs/{organizationId}/sites/{siteId}/redirects/{siteRedirectId}":
|
|
8165
|
+
patch:
|
|
8166
|
+
operationId: updateSiteRedirectById
|
|
8167
|
+
summary: Update a redirect for a site
|
|
8168
|
+
tags:
|
|
8169
|
+
- sites
|
|
8170
|
+
security:
|
|
8171
|
+
- user: []
|
|
8172
|
+
parameters:
|
|
8173
|
+
- $ref: "#/components/parameters/organizationId"
|
|
8174
|
+
- $ref: "#/components/parameters/siteId"
|
|
8175
|
+
- $ref: "#/components/parameters/siteRedirectId"
|
|
8176
|
+
requestBody:
|
|
8177
|
+
required: true
|
|
8178
|
+
content:
|
|
8179
|
+
application/json:
|
|
8180
|
+
schema:
|
|
8181
|
+
type: object
|
|
8182
|
+
properties:
|
|
8183
|
+
source:
|
|
8184
|
+
$ref: "#/components/schemas/SiteRedirectSourcePath"
|
|
8185
|
+
destination:
|
|
8186
|
+
$ref: "#/components/schemas/SiteRedirectDestination"
|
|
8187
|
+
responses:
|
|
8188
|
+
"200":
|
|
8189
|
+
description: OK
|
|
8190
|
+
content:
|
|
8191
|
+
application/json:
|
|
8192
|
+
schema:
|
|
8193
|
+
$ref: "#/components/schemas/SiteRedirect"
|
|
8194
|
+
default:
|
|
8195
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
8196
|
+
delete:
|
|
8197
|
+
operationId: deleteSiteRedirectById
|
|
8198
|
+
summary: Delete a redirect for a site
|
|
8199
|
+
tags:
|
|
8200
|
+
- sites
|
|
8201
|
+
security:
|
|
8202
|
+
- user: []
|
|
8203
|
+
parameters:
|
|
8204
|
+
- $ref: "#/components/parameters/organizationId"
|
|
8205
|
+
- $ref: "#/components/parameters/siteId"
|
|
8206
|
+
- $ref: "#/components/parameters/siteRedirectId"
|
|
8207
|
+
responses:
|
|
8208
|
+
"205":
|
|
8209
|
+
description: Site redirect deleted
|
|
8210
|
+
default:
|
|
8211
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
8212
|
+
"/orgs/{organizationId}/sites/{siteId}/redirect":
|
|
8213
|
+
get:
|
|
8214
|
+
operationId: getSiteRedirectBySource
|
|
8215
|
+
summary: Resolve a redirect in a site by its source path.
|
|
8216
|
+
tags:
|
|
8217
|
+
- sites
|
|
8218
|
+
security:
|
|
8219
|
+
- user: []
|
|
8220
|
+
parameters:
|
|
8221
|
+
- $ref: "#/components/parameters/organizationId"
|
|
8222
|
+
- $ref: "#/components/parameters/siteId"
|
|
8223
|
+
- $ref: "#/components/parameters/siteShareKey"
|
|
8224
|
+
- name: source
|
|
8225
|
+
in: query
|
|
8226
|
+
required: true
|
|
8227
|
+
description: The source path of the redirect.
|
|
8228
|
+
schema:
|
|
8229
|
+
$ref: "#/components/schemas/SiteRedirectSourcePath"
|
|
8230
|
+
responses:
|
|
8231
|
+
"200":
|
|
8232
|
+
description: The redirect was resolved successfully.
|
|
8233
|
+
content:
|
|
8234
|
+
application/json:
|
|
8235
|
+
schema:
|
|
8236
|
+
type: object
|
|
8237
|
+
properties:
|
|
8238
|
+
redirect:
|
|
8239
|
+
$ref: "#/components/schemas/SiteRedirect"
|
|
8240
|
+
target:
|
|
8241
|
+
type: string
|
|
8242
|
+
description: URL of the destination of the redirect.
|
|
8243
|
+
required:
|
|
8244
|
+
- redirect
|
|
8245
|
+
- target
|
|
8246
|
+
"404":
|
|
8247
|
+
$ref: "#/components/responses/NotFoundError"
|
|
8248
|
+
default:
|
|
8249
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
8285
8250
|
"/custom-hostnames/{hostname}":
|
|
8286
8251
|
get:
|
|
8287
8252
|
operationId: getCustomHostname
|
|
@@ -8303,7 +8268,7 @@ paths:
|
|
|
8303
8268
|
$ref: "#/components/responses/UnexpectedError"
|
|
8304
8269
|
post:
|
|
8305
8270
|
operationId: setupCustomHostname
|
|
8306
|
-
summary: Setup a custom hostname on a
|
|
8271
|
+
summary: Setup a custom hostname on a site or an organization. Any previously set custom hostname will continue pointing to the target but marked as available for use with another target.
|
|
8307
8272
|
tags:
|
|
8308
8273
|
- custom-hostnames
|
|
8309
8274
|
security:
|
|
@@ -8319,8 +8284,6 @@ paths:
|
|
|
8319
8284
|
target:
|
|
8320
8285
|
oneOf:
|
|
8321
8286
|
- $ref: "#/components/schemas/OrganizationPointer"
|
|
8322
|
-
- $ref: "#/components/schemas/SpacePointer"
|
|
8323
|
-
- $ref: "#/components/schemas/CollectionPointer"
|
|
8324
8287
|
- $ref: "#/components/schemas/SitePointer"
|
|
8325
8288
|
required:
|
|
8326
8289
|
- target
|
|
@@ -8381,7 +8344,7 @@ paths:
|
|
|
8381
8344
|
"/custom-hostnames/{hostname}/test":
|
|
8382
8345
|
post:
|
|
8383
8346
|
operationId: testCustomHostname
|
|
8384
|
-
summary: Test if a custom hostname can be used for a
|
|
8347
|
+
summary: Test if a custom hostname can be used for a site or organization.
|
|
8385
8348
|
tags:
|
|
8386
8349
|
- custom-hostnames
|
|
8387
8350
|
security:
|
|
@@ -8397,8 +8360,6 @@ paths:
|
|
|
8397
8360
|
target:
|
|
8398
8361
|
oneOf:
|
|
8399
8362
|
- $ref: "#/components/schemas/OrganizationPointer"
|
|
8400
|
-
- $ref: "#/components/schemas/SpacePointer"
|
|
8401
|
-
- $ref: "#/components/schemas/CollectionPointer"
|
|
8402
8363
|
- $ref: "#/components/schemas/SitePointer"
|
|
8403
8364
|
required:
|
|
8404
8365
|
- target
|
|
@@ -8835,13 +8796,6 @@ components:
|
|
|
8835
8796
|
description: The id of the visitor
|
|
8836
8797
|
schema:
|
|
8837
8798
|
type: string
|
|
8838
|
-
shareLinkId:
|
|
8839
|
-
name: shareLinkId
|
|
8840
|
-
in: path
|
|
8841
|
-
required: true
|
|
8842
|
-
description: The unique id of the share link
|
|
8843
|
-
schema:
|
|
8844
|
-
type: string
|
|
8845
8799
|
collectionId:
|
|
8846
8800
|
name: collectionId
|
|
8847
8801
|
in: path
|
|
@@ -8933,6 +8887,13 @@ components:
|
|
|
8933
8887
|
schema:
|
|
8934
8888
|
type: string
|
|
8935
8889
|
format: date-time
|
|
8890
|
+
shareLinkId:
|
|
8891
|
+
name: shareLinkId
|
|
8892
|
+
in: path
|
|
8893
|
+
required: true
|
|
8894
|
+
description: The unique id of the share link
|
|
8895
|
+
schema:
|
|
8896
|
+
type: string
|
|
8936
8897
|
siteCustomizationUnmasked:
|
|
8937
8898
|
name: unmasked
|
|
8938
8899
|
in: query
|
|
@@ -8955,6 +8916,13 @@ components:
|
|
|
8955
8916
|
description: The unique id of the site-space relationship
|
|
8956
8917
|
schema:
|
|
8957
8918
|
type: string
|
|
8919
|
+
siteRedirectId:
|
|
8920
|
+
name: siteRedirectId
|
|
8921
|
+
in: path
|
|
8922
|
+
required: true
|
|
8923
|
+
description: The unique id of the site redirect
|
|
8924
|
+
schema:
|
|
8925
|
+
type: string
|
|
8958
8926
|
hostname:
|
|
8959
8927
|
name: hostname
|
|
8960
8928
|
in: path
|
|
@@ -11243,6 +11211,7 @@ components:
|
|
|
11243
11211
|
Emoji:
|
|
11244
11212
|
type: string
|
|
11245
11213
|
maxLength: 50
|
|
11214
|
+
format: emoji
|
|
11246
11215
|
description: Unicode codepoint or character of the emoji
|
|
11247
11216
|
example: 🎉
|
|
11248
11217
|
ContentVisibility:
|
|
@@ -11446,6 +11415,19 @@ components:
|
|
|
11446
11415
|
description: ID of the active revision in the space.
|
|
11447
11416
|
defaultLevel:
|
|
11448
11417
|
$ref: "#/components/schemas/DefaultLevel"
|
|
11418
|
+
permissions:
|
|
11419
|
+
type: object
|
|
11420
|
+
description: The set of permissions for the space
|
|
11421
|
+
properties:
|
|
11422
|
+
admin:
|
|
11423
|
+
type: boolean
|
|
11424
|
+
description: Can the user edit the title, install integrations, and manage the space.
|
|
11425
|
+
edit:
|
|
11426
|
+
type: boolean
|
|
11427
|
+
description: Can the user edit the content of the space by creating a change request.
|
|
11428
|
+
required:
|
|
11429
|
+
- admin
|
|
11430
|
+
- edit
|
|
11449
11431
|
required:
|
|
11450
11432
|
- object
|
|
11451
11433
|
- id
|
|
@@ -11459,6 +11441,7 @@ components:
|
|
|
11459
11441
|
- updatedAt
|
|
11460
11442
|
- urls
|
|
11461
11443
|
- defaultLevel
|
|
11444
|
+
- permissions
|
|
11462
11445
|
SpacePointer:
|
|
11463
11446
|
type: object
|
|
11464
11447
|
properties:
|
|
@@ -11698,6 +11681,7 @@ components:
|
|
|
11698
11681
|
Icon:
|
|
11699
11682
|
type: string
|
|
11700
11683
|
maxLength: 50
|
|
11684
|
+
format: icon
|
|
11701
11685
|
description: Name of the icon
|
|
11702
11686
|
example: gear
|
|
11703
11687
|
RevisionPageBase:
|
|
@@ -12532,8 +12516,6 @@ components:
|
|
|
12532
12516
|
OrganizationDefaultContent:
|
|
12533
12517
|
description: The default content for the organization
|
|
12534
12518
|
oneOf:
|
|
12535
|
-
- $ref: "#/components/schemas/SpacePointer"
|
|
12536
|
-
- $ref: "#/components/schemas/CollectionPointer"
|
|
12537
12519
|
- $ref: "#/components/schemas/SitePointer"
|
|
12538
12520
|
BillingProduct:
|
|
12539
12521
|
type: string
|
|
@@ -12769,25 +12751,12 @@ components:
|
|
|
12769
12751
|
$ref: "#/components/schemas/CollectionTitle"
|
|
12770
12752
|
description:
|
|
12771
12753
|
$ref: "#/components/schemas/CollectionDescription"
|
|
12772
|
-
path:
|
|
12773
|
-
type: string
|
|
12774
|
-
description: Path in the published URL
|
|
12775
|
-
visibility:
|
|
12776
|
-
$ref: "#/components/schemas/ContentVisibility"
|
|
12777
|
-
publishingType:
|
|
12778
|
-
type: string
|
|
12779
|
-
enum:
|
|
12780
|
-
- variants
|
|
12781
12754
|
organization:
|
|
12782
12755
|
type: string
|
|
12783
12756
|
description: ID of the organization owning this collection
|
|
12784
12757
|
parent:
|
|
12785
12758
|
type: string
|
|
12786
12759
|
description: ID of the parent collection, if any
|
|
12787
|
-
collection:
|
|
12788
|
-
type: string
|
|
12789
|
-
deprecated: true
|
|
12790
|
-
description: ID of the parent collection, if any
|
|
12791
12760
|
defaultLevel:
|
|
12792
12761
|
$ref: "#/components/schemas/DefaultLevel"
|
|
12793
12762
|
urls:
|
|
@@ -12805,14 +12774,27 @@ components:
|
|
|
12805
12774
|
required:
|
|
12806
12775
|
- app
|
|
12807
12776
|
- location
|
|
12777
|
+
permissions:
|
|
12778
|
+
type: object
|
|
12779
|
+
description: The set of permissions for the collection
|
|
12780
|
+
properties:
|
|
12781
|
+
admin:
|
|
12782
|
+
type: boolean
|
|
12783
|
+
description: Can the user edit the title/description.
|
|
12784
|
+
create:
|
|
12785
|
+
type: boolean
|
|
12786
|
+
description: Can the user create spaces/collections in this collection.
|
|
12787
|
+
required:
|
|
12788
|
+
- admin
|
|
12789
|
+
- create
|
|
12808
12790
|
required:
|
|
12809
12791
|
- object
|
|
12810
12792
|
- id
|
|
12811
12793
|
- title
|
|
12812
12794
|
- organization
|
|
12813
|
-
- visibility
|
|
12814
12795
|
- urls
|
|
12815
12796
|
- defaultLevel
|
|
12797
|
+
- permissions
|
|
12816
12798
|
ContentLocationCollection:
|
|
12817
12799
|
type: object
|
|
12818
12800
|
properties:
|
|
@@ -14624,54 +14606,6 @@ components:
|
|
|
14624
14606
|
- createdAt
|
|
14625
14607
|
- revision
|
|
14626
14608
|
- urls
|
|
14627
|
-
ShareLinkName:
|
|
14628
|
-
type: string
|
|
14629
|
-
description: Name of the share link
|
|
14630
|
-
minLength: 0
|
|
14631
|
-
maxLength: 50
|
|
14632
|
-
ShareLink:
|
|
14633
|
-
type: object
|
|
14634
|
-
properties:
|
|
14635
|
-
object:
|
|
14636
|
-
type: string
|
|
14637
|
-
description: Type of Object, always equals to "share-link"
|
|
14638
|
-
enum:
|
|
14639
|
-
- share-link
|
|
14640
|
-
id:
|
|
14641
|
-
type: string
|
|
14642
|
-
description: Unique identifier for the share-link
|
|
14643
|
-
createdAt:
|
|
14644
|
-
$ref: "#/components/schemas/Timestamp"
|
|
14645
|
-
name:
|
|
14646
|
-
$ref: "#/components/schemas/ShareLinkName"
|
|
14647
|
-
active:
|
|
14648
|
-
type: boolean
|
|
14649
|
-
urls:
|
|
14650
|
-
type: object
|
|
14651
|
-
description: URLs associated with the object
|
|
14652
|
-
properties:
|
|
14653
|
-
published:
|
|
14654
|
-
type: string
|
|
14655
|
-
description: URL of the published version of the share-link.
|
|
14656
|
-
format: uri
|
|
14657
|
-
required:
|
|
14658
|
-
- object
|
|
14659
|
-
- id
|
|
14660
|
-
- createdAt
|
|
14661
|
-
- urls
|
|
14662
|
-
CustomizationCollectionSettings:
|
|
14663
|
-
allOf:
|
|
14664
|
-
- $ref: "#/components/schemas/CustomizationSettings"
|
|
14665
|
-
- type: object
|
|
14666
|
-
properties:
|
|
14667
|
-
collection:
|
|
14668
|
-
type: object
|
|
14669
|
-
properties:
|
|
14670
|
-
defaultSpace:
|
|
14671
|
-
type: string
|
|
14672
|
-
description: ID of the space used by default in the collection
|
|
14673
|
-
required:
|
|
14674
|
-
- collection
|
|
14675
14609
|
IntegrationSecrets:
|
|
14676
14610
|
type: object
|
|
14677
14611
|
description: Secrets stored on the integration and passed at runtime.
|
|
@@ -16704,6 +16638,8 @@ components:
|
|
|
16704
16638
|
format: uri
|
|
16705
16639
|
required:
|
|
16706
16640
|
- location
|
|
16641
|
+
icon:
|
|
16642
|
+
$ref: "#/components/schemas/Icon"
|
|
16707
16643
|
required:
|
|
16708
16644
|
- object
|
|
16709
16645
|
- id
|
|
@@ -17987,6 +17923,41 @@ components:
|
|
|
17987
17923
|
- structure
|
|
17988
17924
|
- customizations
|
|
17989
17925
|
- scripts
|
|
17926
|
+
ShareLinkName:
|
|
17927
|
+
type: string
|
|
17928
|
+
description: Name of the share link
|
|
17929
|
+
minLength: 0
|
|
17930
|
+
maxLength: 50
|
|
17931
|
+
ShareLink:
|
|
17932
|
+
type: object
|
|
17933
|
+
properties:
|
|
17934
|
+
object:
|
|
17935
|
+
type: string
|
|
17936
|
+
description: Type of Object, always equals to "share-link"
|
|
17937
|
+
enum:
|
|
17938
|
+
- share-link
|
|
17939
|
+
id:
|
|
17940
|
+
type: string
|
|
17941
|
+
description: Unique identifier for the share-link
|
|
17942
|
+
createdAt:
|
|
17943
|
+
$ref: "#/components/schemas/Timestamp"
|
|
17944
|
+
name:
|
|
17945
|
+
$ref: "#/components/schemas/ShareLinkName"
|
|
17946
|
+
active:
|
|
17947
|
+
type: boolean
|
|
17948
|
+
urls:
|
|
17949
|
+
type: object
|
|
17950
|
+
description: URLs associated with the object
|
|
17951
|
+
properties:
|
|
17952
|
+
published:
|
|
17953
|
+
type: string
|
|
17954
|
+
description: URL of the published version of the share-link.
|
|
17955
|
+
format: uri
|
|
17956
|
+
required:
|
|
17957
|
+
- object
|
|
17958
|
+
- id
|
|
17959
|
+
- createdAt
|
|
17960
|
+
- urls
|
|
17990
17961
|
SitePublishingAuth:
|
|
17991
17962
|
allOf:
|
|
17992
17963
|
- oneOf:
|
|
@@ -18204,6 +18175,91 @@ components:
|
|
|
18204
18175
|
icon:
|
|
18205
18176
|
description: Icon of the page, if one has been set.
|
|
18206
18177
|
$ref: "#/components/schemas/Icon"
|
|
18178
|
+
AnalyticsAsk:
|
|
18179
|
+
type: object
|
|
18180
|
+
description: Analytics entry for an ask.
|
|
18181
|
+
required:
|
|
18182
|
+
- ask
|
|
18183
|
+
- count
|
|
18184
|
+
properties:
|
|
18185
|
+
ask:
|
|
18186
|
+
description: The question that was asked.
|
|
18187
|
+
type: string
|
|
18188
|
+
count:
|
|
18189
|
+
description: Number of times this question was asked.
|
|
18190
|
+
type: number
|
|
18191
|
+
SiteRedirectSourcePath:
|
|
18192
|
+
type: string
|
|
18193
|
+
description: The source path to redirect from.
|
|
18194
|
+
maxLength: 512
|
|
18195
|
+
pattern: ^/[a-zA-Z0-9-_.\/]+[a-zA-Z0-9-_.]$
|
|
18196
|
+
SiteRedirectDestinationSiteSection:
|
|
18197
|
+
type: object
|
|
18198
|
+
properties:
|
|
18199
|
+
kind:
|
|
18200
|
+
type: string
|
|
18201
|
+
enum:
|
|
18202
|
+
- site-section
|
|
18203
|
+
siteSectionId:
|
|
18204
|
+
type: string
|
|
18205
|
+
description: Unique identifier for the site section to redirect to
|
|
18206
|
+
required:
|
|
18207
|
+
- kind
|
|
18208
|
+
- siteSectionId
|
|
18209
|
+
SiteRedirectDestinationSiteSpace:
|
|
18210
|
+
type: object
|
|
18211
|
+
properties:
|
|
18212
|
+
kind:
|
|
18213
|
+
type: string
|
|
18214
|
+
enum:
|
|
18215
|
+
- site-space
|
|
18216
|
+
siteSpaceId:
|
|
18217
|
+
type: string
|
|
18218
|
+
description: Unique identifier for the site space to redirect to
|
|
18219
|
+
required:
|
|
18220
|
+
- kind
|
|
18221
|
+
- siteSpaceId
|
|
18222
|
+
SiteRedirectDestinationPage:
|
|
18223
|
+
type: object
|
|
18224
|
+
properties:
|
|
18225
|
+
kind:
|
|
18226
|
+
type: string
|
|
18227
|
+
enum:
|
|
18228
|
+
- site-page
|
|
18229
|
+
siteSpaceId:
|
|
18230
|
+
type: string
|
|
18231
|
+
description: Unique identifier for the site space of the page
|
|
18232
|
+
pageId:
|
|
18233
|
+
type: string
|
|
18234
|
+
description: Unique identifier for the page within the site space to redirect to
|
|
18235
|
+
required:
|
|
18236
|
+
- kind
|
|
18237
|
+
- siteSpaceId
|
|
18238
|
+
- pageId
|
|
18239
|
+
SiteRedirectDestination:
|
|
18240
|
+
oneOf:
|
|
18241
|
+
- $ref: "#/components/schemas/SiteRedirectDestinationSiteSection"
|
|
18242
|
+
- $ref: "#/components/schemas/SiteRedirectDestinationSiteSpace"
|
|
18243
|
+
- $ref: "#/components/schemas/SiteRedirectDestinationPage"
|
|
18244
|
+
SiteRedirect:
|
|
18245
|
+
type: object
|
|
18246
|
+
properties:
|
|
18247
|
+
object:
|
|
18248
|
+
type: string
|
|
18249
|
+
enum:
|
|
18250
|
+
- site-redirect
|
|
18251
|
+
id:
|
|
18252
|
+
type: string
|
|
18253
|
+
description: The unique identifier for the redirect.
|
|
18254
|
+
source:
|
|
18255
|
+
$ref: "#/components/schemas/SiteRedirectSourcePath"
|
|
18256
|
+
destination:
|
|
18257
|
+
$ref: "#/components/schemas/SiteRedirectDestination"
|
|
18258
|
+
required:
|
|
18259
|
+
- object
|
|
18260
|
+
- id
|
|
18261
|
+
- source
|
|
18262
|
+
- destination
|
|
18207
18263
|
CustomHostnameDnsStatus:
|
|
18208
18264
|
type: string
|
|
18209
18265
|
enum:
|
|
@@ -18243,8 +18299,6 @@ components:
|
|
|
18243
18299
|
target:
|
|
18244
18300
|
oneOf:
|
|
18245
18301
|
- $ref: "#/components/schemas/OrganizationPointer"
|
|
18246
|
-
- $ref: "#/components/schemas/SpacePointer"
|
|
18247
|
-
- $ref: "#/components/schemas/CollectionPointer"
|
|
18248
18302
|
- $ref: "#/components/schemas/SitePointer"
|
|
18249
18303
|
isActive:
|
|
18250
18304
|
type: boolean
|
|
@@ -18644,6 +18698,9 @@ components:
|
|
|
18644
18698
|
complete:
|
|
18645
18699
|
type: boolean
|
|
18646
18700
|
description: Whether the resolved site URL is complete and at it's terminal point, meaning no more site path segments can be further expected before any page path segments.
|
|
18701
|
+
contextId:
|
|
18702
|
+
type: string
|
|
18703
|
+
description: Context returned only for a visitor authentication session to track changes in the visitor session context that affect content rendering (used for cache invalidation).
|
|
18647
18704
|
required:
|
|
18648
18705
|
- site
|
|
18649
18706
|
- siteSpace
|
|
@@ -19050,12 +19107,17 @@ components:
|
|
|
19050
19107
|
items:
|
|
19051
19108
|
type: string
|
|
19052
19109
|
description: List of spaces that the token is allowed to access.
|
|
19110
|
+
claims:
|
|
19111
|
+
type: object
|
|
19112
|
+
description: Attributes or assertions that provide specific details about the visitor for which the token was generated.
|
|
19113
|
+
additionalProperties: true
|
|
19053
19114
|
rateLimitMultiplier:
|
|
19054
19115
|
type: number
|
|
19055
19116
|
description: Multiplier for the rate limit applied to the token.
|
|
19056
19117
|
required:
|
|
19057
19118
|
- organization
|
|
19058
19119
|
- spaces
|
|
19120
|
+
- claims
|
|
19059
19121
|
SpaceAPIToken:
|
|
19060
19122
|
allOf:
|
|
19061
19123
|
- $ref: "#/components/schemas/ContentAPIBaseToken"
|
|
@@ -19733,6 +19795,18 @@ components:
|
|
|
19733
19795
|
required:
|
|
19734
19796
|
- channel
|
|
19735
19797
|
- site
|
|
19798
|
+
SiteRedirectsChannel:
|
|
19799
|
+
type: object
|
|
19800
|
+
properties:
|
|
19801
|
+
channel:
|
|
19802
|
+
type: string
|
|
19803
|
+
enum:
|
|
19804
|
+
- site-redirects
|
|
19805
|
+
site:
|
|
19806
|
+
type: string
|
|
19807
|
+
required:
|
|
19808
|
+
- channel
|
|
19809
|
+
- site
|
|
19736
19810
|
SiteChannel:
|
|
19737
19811
|
type: object
|
|
19738
19812
|
properties:
|
|
@@ -19952,6 +20026,7 @@ components:
|
|
|
19952
20026
|
- $ref: "#/components/schemas/IntegrationSiteInstallationChannel"
|
|
19953
20027
|
- $ref: "#/components/schemas/IntegrationSiteInstallationsChannel"
|
|
19954
20028
|
- $ref: "#/components/schemas/PublishedContentSiteChannel"
|
|
20029
|
+
- $ref: "#/components/schemas/SiteRedirectsChannel"
|
|
19955
20030
|
- $ref: "#/components/schemas/SiteChannel"
|
|
19956
20031
|
- $ref: "#/components/schemas/SiteCustomizationChannel"
|
|
19957
20032
|
- $ref: "#/components/schemas/SiteIntegrationsChannel"
|
|
@@ -20154,6 +20229,8 @@ components:
|
|
|
20154
20229
|
$ref: "#/components/schemas/VisitorAuthIntegrationBackend"
|
|
20155
20230
|
UserPermissions:
|
|
20156
20231
|
$ref: "#/components/schemas/_index"
|
|
20232
|
+
SiteRedirectDestinationSpace:
|
|
20233
|
+
$ref: "#/components/schemas/SiteRedirectDestinationSiteSpace"
|
|
20157
20234
|
responses:
|
|
20158
20235
|
UnexpectedError:
|
|
20159
20236
|
description: Unexpected Error
|