@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/spec/openapi.json CHANGED
@@ -82,7 +82,8 @@
82
82
  "in": "query",
83
83
  "required": true,
84
84
  "schema": {
85
- "type": "string"
85
+ "type": "string",
86
+ "maxLength": 512
86
87
  }
87
88
  },
88
89
  {
@@ -785,7 +786,8 @@
785
786
  "in": "query",
786
787
  "required": true,
787
788
  "schema": {
788
- "type": "string"
789
+ "type": "string",
790
+ "maxLength": 512
789
791
  }
790
792
  },
791
793
  {
@@ -4996,6 +4998,7 @@
4996
4998
  },
4997
4999
  "/spaces/{spaceId}/publishing/customization": {
4998
5000
  "get": {
5001
+ "deprecated": true,
4999
5002
  "operationId": "getSpacePublishingCustomizationById",
5000
5003
  "summary": "Get the publishing customization configuration for a space.",
5001
5004
  "tags": [
@@ -5031,6 +5034,7 @@
5031
5034
  }
5032
5035
  },
5033
5036
  "put": {
5037
+ "deprecated": true,
5034
5038
  "operationId": "updateSpacePublishingCustomizationById",
5035
5039
  "summary": "Update the publishing customization configuration for a space.",
5036
5040
  "tags": [
@@ -5446,141 +5450,6 @@
5446
5450
  }
5447
5451
  }
5448
5452
  },
5449
- "/spaces/{spaceId}/share-links": {
5450
- "post": {
5451
- "operationId": "createSpaceShareLink",
5452
- "summary": "Creates a new space share link",
5453
- "tags": [
5454
- "spaces"
5455
- ],
5456
- "security": [
5457
- {
5458
- "user": []
5459
- }
5460
- ],
5461
- "parameters": [
5462
- {
5463
- "$ref": "#/components/parameters/spaceId"
5464
- }
5465
- ],
5466
- "requestBody": {
5467
- "content": {
5468
- "application/json": {
5469
- "schema": {
5470
- "type": "object",
5471
- "properties": {
5472
- "name": {
5473
- "$ref": "#/components/schemas/ShareLinkName"
5474
- }
5475
- },
5476
- "required": [
5477
- "name"
5478
- ]
5479
- }
5480
- }
5481
- }
5482
- },
5483
- "responses": {
5484
- "201": {
5485
- "description": "The space share link has been created",
5486
- "content": {
5487
- "application/json": {
5488
- "schema": {
5489
- "$ref": "#/components/schemas/ShareLink"
5490
- }
5491
- }
5492
- }
5493
- },
5494
- "default": {
5495
- "$ref": "#/components/responses/UnexpectedError"
5496
- }
5497
- }
5498
- }
5499
- },
5500
- "/spaces/{spaceId}/share-links/{shareLinkId}": {
5501
- "patch": {
5502
- "operationId": "updateSpaceShareLinkById",
5503
- "summary": "Update the details of a space share link",
5504
- "tags": [
5505
- "spaces"
5506
- ],
5507
- "security": [
5508
- {
5509
- "user": []
5510
- }
5511
- ],
5512
- "parameters": [
5513
- {
5514
- "$ref": "#/components/parameters/spaceId"
5515
- },
5516
- {
5517
- "$ref": "#/components/parameters/shareLinkId"
5518
- }
5519
- ],
5520
- "requestBody": {
5521
- "required": true,
5522
- "content": {
5523
- "application/json": {
5524
- "schema": {
5525
- "type": "object",
5526
- "minProperties": 1,
5527
- "properties": {
5528
- "active": {
5529
- "type": "boolean"
5530
- },
5531
- "name": {
5532
- "$ref": "#/components/schemas/ShareLinkName"
5533
- }
5534
- }
5535
- }
5536
- }
5537
- }
5538
- },
5539
- "responses": {
5540
- "200": {
5541
- "description": "The space share link has been updated",
5542
- "content": {
5543
- "application/json": {
5544
- "schema": {
5545
- "$ref": "#/components/schemas/ShareLink"
5546
- }
5547
- }
5548
- }
5549
- },
5550
- "default": {
5551
- "$ref": "#/components/responses/UnexpectedError"
5552
- }
5553
- }
5554
- },
5555
- "delete": {
5556
- "operationId": "deleteSpaceShareLinkById",
5557
- "summary": "Deletes a space share link",
5558
- "tags": [
5559
- "spaces"
5560
- ],
5561
- "security": [
5562
- {
5563
- "user": []
5564
- }
5565
- ],
5566
- "parameters": [
5567
- {
5568
- "$ref": "#/components/parameters/spaceId"
5569
- },
5570
- {
5571
- "$ref": "#/components/parameters/shareLinkId"
5572
- }
5573
- ],
5574
- "responses": {
5575
- "205": {
5576
- "description": "Space share link has been deleted"
5577
- },
5578
- "default": {
5579
- "$ref": "#/components/responses/UnexpectedError"
5580
- }
5581
- }
5582
- }
5583
- },
5584
5453
  "/spaces/{spaceId}/links": {
5585
5454
  "get": {
5586
5455
  "operationId": "listSpaceLinks",
@@ -5711,9 +5580,6 @@
5711
5580
  "schema": {
5712
5581
  "type": "object",
5713
5582
  "properties": {
5714
- "visibility": {
5715
- "$ref": "#/components/schemas/ContentVisibility"
5716
- },
5717
5583
  "title": {
5718
5584
  "$ref": "#/components/schemas/CollectionTitle"
5719
5585
  },
@@ -6028,223 +5894,6 @@
6028
5894
  }
6029
5895
  }
6030
5896
  },
6031
- "/collections/{collectionId}/publishing/customization": {
6032
- "get": {
6033
- "operationId": "getCollectionPublishingCustomizationById",
6034
- "summary": "Get the publishing customization configuration for a collection.",
6035
- "tags": [
6036
- "collections"
6037
- ],
6038
- "security": [
6039
- {
6040
- "user": []
6041
- }
6042
- ],
6043
- "parameters": [
6044
- {
6045
- "$ref": "#/components/parameters/collectionId"
6046
- }
6047
- ],
6048
- "responses": {
6049
- "200": {
6050
- "description": "OK",
6051
- "content": {
6052
- "application/json": {
6053
- "schema": {
6054
- "$ref": "#/components/schemas/CustomizationCollectionSettings"
6055
- }
6056
- }
6057
- }
6058
- },
6059
- "400": {
6060
- "$ref": "#/components/responses/BadRequestError"
6061
- },
6062
- "default": {
6063
- "$ref": "#/components/responses/UnexpectedError"
6064
- }
6065
- }
6066
- },
6067
- "put": {
6068
- "operationId": "updateCollectionPublishingCustomizationById",
6069
- "summary": "Update the publishing customization configuration for a collection.",
6070
- "tags": [
6071
- "collections"
6072
- ],
6073
- "security": [
6074
- {
6075
- "user": []
6076
- }
6077
- ],
6078
- "parameters": [
6079
- {
6080
- "$ref": "#/components/parameters/collectionId"
6081
- }
6082
- ],
6083
- "requestBody": {
6084
- "required": true,
6085
- "content": {
6086
- "application/json": {
6087
- "schema": {
6088
- "$ref": "#/components/schemas/CustomizationCollectionSettings"
6089
- }
6090
- }
6091
- }
6092
- },
6093
- "responses": {
6094
- "200": {
6095
- "description": "OK",
6096
- "content": {
6097
- "application/json": {
6098
- "schema": {
6099
- "$ref": "#/components/schemas/CustomizationCollectionSettings"
6100
- }
6101
- }
6102
- }
6103
- },
6104
- "400": {
6105
- "$ref": "#/components/responses/BadRequestError"
6106
- },
6107
- "default": {
6108
- "$ref": "#/components/responses/UnexpectedError"
6109
- }
6110
- }
6111
- }
6112
- },
6113
- "/collections/{collectionId}/share-links": {
6114
- "post": {
6115
- "operationId": "createCollectionShareLink",
6116
- "summary": "Creates a new collection share link",
6117
- "tags": [
6118
- "collections"
6119
- ],
6120
- "security": [
6121
- {
6122
- "user": []
6123
- }
6124
- ],
6125
- "parameters": [
6126
- {
6127
- "$ref": "#/components/parameters/collectionId"
6128
- }
6129
- ],
6130
- "requestBody": {
6131
- "content": {
6132
- "application/json": {
6133
- "schema": {
6134
- "type": "object",
6135
- "properties": {
6136
- "name": {
6137
- "$ref": "#/components/schemas/ShareLinkName"
6138
- }
6139
- },
6140
- "required": [
6141
- "name"
6142
- ]
6143
- }
6144
- }
6145
- }
6146
- },
6147
- "responses": {
6148
- "201": {
6149
- "description": "The collection share link has been created",
6150
- "content": {
6151
- "application/json": {
6152
- "schema": {
6153
- "$ref": "#/components/schemas/ShareLink"
6154
- }
6155
- }
6156
- }
6157
- },
6158
- "default": {
6159
- "$ref": "#/components/responses/UnexpectedError"
6160
- }
6161
- }
6162
- }
6163
- },
6164
- "/collections/{collectionId}/share-links/{shareLinkId}": {
6165
- "patch": {
6166
- "operationId": "updateCollectionShareLinkById",
6167
- "summary": "Update the details of a collection share link",
6168
- "tags": [
6169
- "collections"
6170
- ],
6171
- "security": [
6172
- {
6173
- "user": []
6174
- }
6175
- ],
6176
- "parameters": [
6177
- {
6178
- "$ref": "#/components/parameters/collectionId"
6179
- },
6180
- {
6181
- "$ref": "#/components/parameters/shareLinkId"
6182
- }
6183
- ],
6184
- "requestBody": {
6185
- "required": true,
6186
- "content": {
6187
- "application/json": {
6188
- "schema": {
6189
- "type": "object",
6190
- "minProperties": 1,
6191
- "properties": {
6192
- "active": {
6193
- "type": "boolean"
6194
- },
6195
- "name": {
6196
- "$ref": "#/components/schemas/ShareLinkName"
6197
- }
6198
- }
6199
- }
6200
- }
6201
- }
6202
- },
6203
- "responses": {
6204
- "200": {
6205
- "description": "The collection share link has been updated",
6206
- "content": {
6207
- "application/json": {
6208
- "schema": {
6209
- "$ref": "#/components/schemas/ShareLink"
6210
- }
6211
- }
6212
- }
6213
- },
6214
- "default": {
6215
- "$ref": "#/components/responses/UnexpectedError"
6216
- }
6217
- }
6218
- },
6219
- "delete": {
6220
- "operationId": "deleteCollectionShareLinkById",
6221
- "summary": "Deletes a collection share link",
6222
- "tags": [
6223
- "collections"
6224
- ],
6225
- "security": [
6226
- {
6227
- "user": []
6228
- }
6229
- ],
6230
- "parameters": [
6231
- {
6232
- "$ref": "#/components/parameters/collectionId"
6233
- },
6234
- {
6235
- "$ref": "#/components/parameters/shareLinkId"
6236
- }
6237
- ],
6238
- "responses": {
6239
- "205": {
6240
- "description": "Collection share link has been deleted"
6241
- },
6242
- "default": {
6243
- "$ref": "#/components/responses/UnexpectedError"
6244
- }
6245
- }
6246
- }
6247
- },
6248
5897
  "/integrations": {
6249
5898
  "get": {
6250
5899
  "operationId": "listIntegrations",
@@ -7871,7 +7520,8 @@
7871
7520
  "summary": "List all content in an organization",
7872
7521
  "description": "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.\n",
7873
7522
  "tags": [
7874
- "organizations"
7523
+ "organizations",
7524
+ "critical"
7875
7525
  ],
7876
7526
  "security": [
7877
7527
  {
@@ -9365,7 +9015,8 @@
9365
9015
  "in": "query",
9366
9016
  "required": true,
9367
9017
  "schema": {
9368
- "type": "string"
9018
+ "type": "string",
9019
+ "maxLength": 512
9369
9020
  }
9370
9021
  },
9371
9022
  {
@@ -12625,7 +12276,7 @@
12625
12276
  },
12626
12277
  "outcome": {
12627
12278
  "description": "* `upgraded`: Subscription was upgraded to include the site\n* `downgraded`: Subscription was downgraded by removing the site\n* `no-payment-changes`: No impact on subscription (e.g. trial, unpublished)\n",
12628
- "type": "object",
12279
+ "type": "string",
12629
12280
  "enum": [
12630
12281
  "upgraded",
12631
12282
  "downgraded",
@@ -13420,6 +13071,20 @@
13420
13071
  "defaultSiteSpace": {
13421
13072
  "type": "string",
13422
13073
  "description": "ID of the site-space to be used as the default in this section."
13074
+ },
13075
+ "icon": {
13076
+ "oneOf": [
13077
+ {
13078
+ "$ref": "#/components/schemas/Icon"
13079
+ },
13080
+ {
13081
+ "type": "string",
13082
+ "nullable": true,
13083
+ "enum": [
13084
+ null
13085
+ ]
13086
+ }
13087
+ ]
13423
13088
  }
13424
13089
  }
13425
13090
  }
@@ -13521,7 +13186,8 @@
13521
13186
  }
13522
13187
  },
13523
13188
  "query": {
13524
- "type": "string"
13189
+ "type": "string",
13190
+ "maxLength": 512
13525
13191
  }
13526
13192
  },
13527
13193
  "required": [
@@ -13543,7 +13209,8 @@
13543
13209
  "type": "string"
13544
13210
  },
13545
13211
  "query": {
13546
- "type": "string"
13212
+ "type": "string",
13213
+ "maxLength": 512
13547
13214
  }
13548
13215
  },
13549
13216
  "required": [
@@ -13563,7 +13230,8 @@
13563
13230
  ]
13564
13231
  },
13565
13232
  "query": {
13566
- "type": "string"
13233
+ "type": "string",
13234
+ "maxLength": 512
13567
13235
  }
13568
13236
  },
13569
13237
  "required": [
@@ -14542,7 +14210,377 @@
14542
14210
  ],
14543
14211
  "responses": {
14544
14212
  "200": {
14545
- "description": "Listing of users who can access the site.",
14213
+ "description": "Listing of users who can access the site.",
14214
+ "content": {
14215
+ "application/json": {
14216
+ "schema": {
14217
+ "allOf": [
14218
+ {
14219
+ "$ref": "#/components/schemas/List"
14220
+ },
14221
+ {
14222
+ "type": "object",
14223
+ "required": [
14224
+ "items"
14225
+ ],
14226
+ "properties": {
14227
+ "items": {
14228
+ "type": "array",
14229
+ "items": {
14230
+ "$ref": "#/components/schemas/UserSitePermission"
14231
+ }
14232
+ }
14233
+ }
14234
+ }
14235
+ ]
14236
+ }
14237
+ }
14238
+ }
14239
+ },
14240
+ "default": {
14241
+ "$ref": "#/components/responses/UnexpectedError"
14242
+ }
14243
+ }
14244
+ }
14245
+ },
14246
+ "/orgs/{organizationId}/sites/{siteId}/insights/track_view": {
14247
+ "post": {
14248
+ "operationId": "trackViewInSiteById",
14249
+ "summary": "Track a page view in a site",
14250
+ "description": "Track a page view in a site.",
14251
+ "tags": [
14252
+ "analytics",
14253
+ "sites"
14254
+ ],
14255
+ "parameters": [
14256
+ {
14257
+ "$ref": "#/components/parameters/organizationId"
14258
+ },
14259
+ {
14260
+ "$ref": "#/components/parameters/siteId"
14261
+ }
14262
+ ],
14263
+ "responses": {
14264
+ "204": {
14265
+ "description": "Page view has been tracked."
14266
+ },
14267
+ "default": {
14268
+ "$ref": "#/components/responses/UnexpectedError"
14269
+ }
14270
+ },
14271
+ "requestBody": {
14272
+ "required": true,
14273
+ "content": {
14274
+ "application/json": {
14275
+ "schema": {
14276
+ "$ref": "#/components/schemas/SiteTrackPageView"
14277
+ }
14278
+ }
14279
+ }
14280
+ }
14281
+ }
14282
+ },
14283
+ "/orgs/{organizationId}/sites/{siteId}/insights/ads": {
14284
+ "get": {
14285
+ "operationId": "getAdsInsightsForSiteById",
14286
+ "summary": "Get analytics insights of ads on a site.",
14287
+ "tags": [
14288
+ "analytics",
14289
+ "sites"
14290
+ ],
14291
+ "security": [
14292
+ {
14293
+ "user-internal": []
14294
+ }
14295
+ ],
14296
+ "parameters": [
14297
+ {
14298
+ "$ref": "#/components/parameters/organizationId"
14299
+ },
14300
+ {
14301
+ "$ref": "#/components/parameters/siteId"
14302
+ },
14303
+ {
14304
+ "name": "interval",
14305
+ "in": "query",
14306
+ "schema": {
14307
+ "$ref": "#/components/schemas/InsightsInterval"
14308
+ }
14309
+ },
14310
+ {
14311
+ "name": "start",
14312
+ "description": "The earliest timestamp for any data returned",
14313
+ "in": "query",
14314
+ "schema": {
14315
+ "type": "string",
14316
+ "format": "date-time"
14317
+ }
14318
+ },
14319
+ {
14320
+ "name": "end",
14321
+ "description": "The latest timestamp for any data returned",
14322
+ "in": "query",
14323
+ "schema": {
14324
+ "type": "string",
14325
+ "format": "date-time"
14326
+ }
14327
+ }
14328
+ ],
14329
+ "responses": {
14330
+ "200": {
14331
+ "description": "The site's ads insights stats for the provided period.",
14332
+ "content": {
14333
+ "application/json": {
14334
+ "schema": {
14335
+ "type": "object",
14336
+ "properties": {
14337
+ "values": {
14338
+ "type": "array",
14339
+ "description": "A time serie of the ads stats over the provided period",
14340
+ "items": {
14341
+ "type": "object",
14342
+ "properties": {
14343
+ "date": {
14344
+ "description": "The start date of this interval",
14345
+ "type": "string",
14346
+ "format": "date-time"
14347
+ },
14348
+ "stats": {
14349
+ "$ref": "#/components/schemas/SiteAdsStats"
14350
+ }
14351
+ },
14352
+ "required": [
14353
+ "date",
14354
+ "stats"
14355
+ ]
14356
+ }
14357
+ },
14358
+ "account": {
14359
+ "type": "object",
14360
+ "properties": {
14361
+ "email": {
14362
+ "type": "string",
14363
+ "description": "Email address on the Ads platform."
14364
+ },
14365
+ "url": {
14366
+ "type": "string",
14367
+ "description": "URL to configure payout."
14368
+ }
14369
+ },
14370
+ "required": [
14371
+ "email",
14372
+ "url"
14373
+ ]
14374
+ }
14375
+ },
14376
+ "required": [
14377
+ "values",
14378
+ "account"
14379
+ ]
14380
+ }
14381
+ }
14382
+ }
14383
+ },
14384
+ "default": {
14385
+ "$ref": "#/components/responses/UnexpectedError"
14386
+ }
14387
+ }
14388
+ }
14389
+ },
14390
+ "/orgs/{organizationId}/sites/{siteId}/insights/search": {
14391
+ "get": {
14392
+ "operationId": "getSearchAnalyticsForSiteById",
14393
+ "summary": "Get an overview of the top search queries in a site.",
14394
+ "tags": [
14395
+ "analytics",
14396
+ "sites"
14397
+ ],
14398
+ "security": [
14399
+ {
14400
+ "user": []
14401
+ }
14402
+ ],
14403
+ "parameters": [
14404
+ {
14405
+ "$ref": "#/components/parameters/organizationId"
14406
+ },
14407
+ {
14408
+ "$ref": "#/components/parameters/siteId"
14409
+ },
14410
+ {
14411
+ "name": "period",
14412
+ "in": "query",
14413
+ "schema": {
14414
+ "$ref": "#/components/schemas/AnalyticsSearchPeriod"
14415
+ }
14416
+ },
14417
+ {
14418
+ "name": "siteSpaceIds",
14419
+ "in": "query",
14420
+ "schema": {
14421
+ "type": "array",
14422
+ "items": {
14423
+ "type": "string"
14424
+ }
14425
+ },
14426
+ "description": "The site spaces to filter the search on"
14427
+ }
14428
+ ],
14429
+ "responses": {
14430
+ "200": {
14431
+ "description": "Top queries searched on this site.",
14432
+ "content": {
14433
+ "application/json": {
14434
+ "schema": {
14435
+ "$ref": "#/components/schemas/AnalyticsTopSearches"
14436
+ }
14437
+ }
14438
+ }
14439
+ },
14440
+ "default": {
14441
+ "$ref": "#/components/responses/UnexpectedError"
14442
+ }
14443
+ }
14444
+ }
14445
+ },
14446
+ "/orgs/{organizationId}/sites/{siteId}/ads": {
14447
+ "post": {
14448
+ "operationId": "updateSiteAdsById",
14449
+ "summary": "Enable, disable, or submit for review Ads on a site.",
14450
+ "tags": [
14451
+ "sites"
14452
+ ],
14453
+ "security": [
14454
+ {
14455
+ "user": []
14456
+ }
14457
+ ],
14458
+ "parameters": [
14459
+ {
14460
+ "$ref": "#/components/parameters/organizationId"
14461
+ },
14462
+ {
14463
+ "$ref": "#/components/parameters/siteId"
14464
+ }
14465
+ ],
14466
+ "requestBody": {
14467
+ "required": false,
14468
+ "content": {
14469
+ "application/json": {
14470
+ "schema": {
14471
+ "type": "object",
14472
+ "properties": {
14473
+ "status": {
14474
+ "type": "string",
14475
+ "enum": [
14476
+ "in-review",
14477
+ "disabled"
14478
+ ]
14479
+ },
14480
+ "topic": {
14481
+ "$ref": "#/components/schemas/SiteAdsTopic"
14482
+ }
14483
+ }
14484
+ }
14485
+ }
14486
+ }
14487
+ },
14488
+ "responses": {
14489
+ "204": {
14490
+ "description": "OK"
14491
+ },
14492
+ "default": {
14493
+ "$ref": "#/components/responses/UnexpectedError"
14494
+ }
14495
+ }
14496
+ }
14497
+ },
14498
+ "/orgs/{organizationId}/sites/{siteId}/redirects": {
14499
+ "post": {
14500
+ "operationId": "createSiteRedirect",
14501
+ "summary": "Configure a redirect explicitly for a site.",
14502
+ "tags": [
14503
+ "sites"
14504
+ ],
14505
+ "security": [
14506
+ {
14507
+ "user": []
14508
+ }
14509
+ ],
14510
+ "parameters": [
14511
+ {
14512
+ "$ref": "#/components/parameters/organizationId"
14513
+ },
14514
+ {
14515
+ "$ref": "#/components/parameters/siteId"
14516
+ }
14517
+ ],
14518
+ "requestBody": {
14519
+ "required": true,
14520
+ "content": {
14521
+ "application/json": {
14522
+ "schema": {
14523
+ "type": "object",
14524
+ "properties": {
14525
+ "source": {
14526
+ "$ref": "#/components/schemas/SiteRedirectSourcePath"
14527
+ },
14528
+ "destination": {
14529
+ "$ref": "#/components/schemas/SiteRedirectDestination"
14530
+ }
14531
+ },
14532
+ "required": [
14533
+ "source",
14534
+ "destination"
14535
+ ]
14536
+ }
14537
+ }
14538
+ }
14539
+ },
14540
+ "responses": {
14541
+ "201": {
14542
+ "description": "The redirect was created successfully.",
14543
+ "content": {
14544
+ "application/json": {
14545
+ "schema": {
14546
+ "$ref": "#/components/schemas/SiteRedirect"
14547
+ }
14548
+ }
14549
+ }
14550
+ },
14551
+ "default": {
14552
+ "$ref": "#/components/responses/UnexpectedError"
14553
+ }
14554
+ }
14555
+ },
14556
+ "get": {
14557
+ "operationId": "listSiteRedirects",
14558
+ "summary": "List the redirects configured for a site.",
14559
+ "tags": [
14560
+ "sites"
14561
+ ],
14562
+ "security": [
14563
+ {
14564
+ "user": []
14565
+ }
14566
+ ],
14567
+ "parameters": [
14568
+ {
14569
+ "$ref": "#/components/parameters/organizationId"
14570
+ },
14571
+ {
14572
+ "$ref": "#/components/parameters/siteId"
14573
+ },
14574
+ {
14575
+ "$ref": "#/components/parameters/listPage"
14576
+ },
14577
+ {
14578
+ "$ref": "#/components/parameters/listLimit"
14579
+ }
14580
+ ],
14581
+ "responses": {
14582
+ "200": {
14583
+ "description": "The list of redirects for the site.",
14546
14584
  "content": {
14547
14585
  "application/json": {
14548
14586
  "schema": {
@@ -14559,7 +14597,7 @@
14559
14597
  "items": {
14560
14598
  "type": "array",
14561
14599
  "items": {
14562
- "$ref": "#/components/schemas/UserSitePermission"
14600
+ "$ref": "#/components/schemas/SiteRedirect"
14563
14601
  }
14564
14602
  }
14565
14603
  }
@@ -14575,140 +14613,54 @@
14575
14613
  }
14576
14614
  }
14577
14615
  },
14578
- "/orgs/{organizationId}/sites/{siteId}/insights/track_view": {
14579
- "post": {
14580
- "operationId": "trackViewInSiteById",
14581
- "summary": "Track a page view in a site",
14582
- "description": "Track a page view in a site.",
14616
+ "/orgs/{organizationId}/sites/{siteId}/redirects/{siteRedirectId}": {
14617
+ "patch": {
14618
+ "operationId": "updateSiteRedirectById",
14619
+ "summary": "Update a redirect for a site",
14583
14620
  "tags": [
14584
- "analytics",
14585
14621
  "sites"
14586
14622
  ],
14623
+ "security": [
14624
+ {
14625
+ "user": []
14626
+ }
14627
+ ],
14587
14628
  "parameters": [
14588
14629
  {
14589
14630
  "$ref": "#/components/parameters/organizationId"
14590
14631
  },
14591
14632
  {
14592
14633
  "$ref": "#/components/parameters/siteId"
14593
- }
14594
- ],
14595
- "responses": {
14596
- "204": {
14597
- "description": "Page view has been tracked."
14598
14634
  },
14599
- "default": {
14600
- "$ref": "#/components/responses/UnexpectedError"
14635
+ {
14636
+ "$ref": "#/components/parameters/siteRedirectId"
14601
14637
  }
14602
- },
14638
+ ],
14603
14639
  "requestBody": {
14604
14640
  "required": true,
14605
14641
  "content": {
14606
14642
  "application/json": {
14607
14643
  "schema": {
14608
- "$ref": "#/components/schemas/SiteTrackPageView"
14644
+ "type": "object",
14645
+ "properties": {
14646
+ "source": {
14647
+ "$ref": "#/components/schemas/SiteRedirectSourcePath"
14648
+ },
14649
+ "destination": {
14650
+ "$ref": "#/components/schemas/SiteRedirectDestination"
14651
+ }
14652
+ }
14609
14653
  }
14610
14654
  }
14611
14655
  }
14612
- }
14613
- }
14614
- },
14615
- "/orgs/{organizationId}/sites/{siteId}/insights/ads": {
14616
- "get": {
14617
- "operationId": "getAdsInsightsForSiteById",
14618
- "summary": "Get analytics insights of ads on a site.",
14619
- "tags": [
14620
- "analytics",
14621
- "sites"
14622
- ],
14623
- "security": [
14624
- {
14625
- "user-internal": []
14626
- }
14627
- ],
14628
- "parameters": [
14629
- {
14630
- "$ref": "#/components/parameters/organizationId"
14631
- },
14632
- {
14633
- "$ref": "#/components/parameters/siteId"
14634
- },
14635
- {
14636
- "name": "interval",
14637
- "in": "query",
14638
- "schema": {
14639
- "$ref": "#/components/schemas/InsightsInterval"
14640
- }
14641
- },
14642
- {
14643
- "name": "start",
14644
- "description": "The earliest timestamp for any data returned",
14645
- "in": "query",
14646
- "schema": {
14647
- "type": "string",
14648
- "format": "date-time"
14649
- }
14650
- },
14651
- {
14652
- "name": "end",
14653
- "description": "The latest timestamp for any data returned",
14654
- "in": "query",
14655
- "schema": {
14656
- "type": "string",
14657
- "format": "date-time"
14658
- }
14659
- }
14660
- ],
14656
+ },
14661
14657
  "responses": {
14662
14658
  "200": {
14663
- "description": "The site's ads insights stats for the provided period.",
14659
+ "description": "OK",
14664
14660
  "content": {
14665
14661
  "application/json": {
14666
14662
  "schema": {
14667
- "type": "object",
14668
- "properties": {
14669
- "values": {
14670
- "type": "array",
14671
- "description": "A time serie of the ads stats over the provided period",
14672
- "items": {
14673
- "type": "object",
14674
- "properties": {
14675
- "date": {
14676
- "description": "The start date of this interval",
14677
- "type": "string",
14678
- "format": "date-time"
14679
- },
14680
- "stats": {
14681
- "$ref": "#/components/schemas/SiteAdsStats"
14682
- }
14683
- },
14684
- "required": [
14685
- "date",
14686
- "stats"
14687
- ]
14688
- }
14689
- },
14690
- "account": {
14691
- "type": "object",
14692
- "properties": {
14693
- "email": {
14694
- "type": "string",
14695
- "description": "Email address on the Ads platform."
14696
- },
14697
- "url": {
14698
- "type": "string",
14699
- "description": "URL to configure payout."
14700
- }
14701
- },
14702
- "required": [
14703
- "email",
14704
- "url"
14705
- ]
14706
- }
14707
- },
14708
- "required": [
14709
- "values",
14710
- "account"
14711
- ]
14663
+ "$ref": "#/components/schemas/SiteRedirect"
14712
14664
  }
14713
14665
  }
14714
14666
  }
@@ -14717,14 +14669,11 @@
14717
14669
  "$ref": "#/components/responses/UnexpectedError"
14718
14670
  }
14719
14671
  }
14720
- }
14721
- },
14722
- "/orgs/{organizationId}/sites/{siteId}/insights/search": {
14723
- "get": {
14724
- "operationId": "getSearchAnalyticsForSiteById",
14725
- "summary": "Get an overview of the top search queries in a site.",
14672
+ },
14673
+ "delete": {
14674
+ "operationId": "deleteSiteRedirectById",
14675
+ "summary": "Delete a redirect for a site",
14726
14676
  "tags": [
14727
- "analytics",
14728
14677
  "sites"
14729
14678
  ],
14730
14679
  "security": [
@@ -14740,34 +14689,12 @@
14740
14689
  "$ref": "#/components/parameters/siteId"
14741
14690
  },
14742
14691
  {
14743
- "name": "period",
14744
- "in": "query",
14745
- "schema": {
14746
- "$ref": "#/components/schemas/AnalyticsSearchPeriod"
14747
- }
14748
- },
14749
- {
14750
- "name": "siteSpaceIds",
14751
- "in": "query",
14752
- "schema": {
14753
- "type": "array",
14754
- "items": {
14755
- "type": "string"
14756
- }
14757
- },
14758
- "description": "The site spaces to filter the search on"
14692
+ "$ref": "#/components/parameters/siteRedirectId"
14759
14693
  }
14760
14694
  ],
14761
14695
  "responses": {
14762
- "200": {
14763
- "description": "Top queries searched on this site.",
14764
- "content": {
14765
- "application/json": {
14766
- "schema": {
14767
- "$ref": "#/components/schemas/AnalyticsTopSearches"
14768
- }
14769
- }
14770
- }
14696
+ "205": {
14697
+ "description": "Site redirect deleted"
14771
14698
  },
14772
14699
  "default": {
14773
14700
  "$ref": "#/components/responses/UnexpectedError"
@@ -14775,10 +14702,10 @@
14775
14702
  }
14776
14703
  }
14777
14704
  },
14778
- "/orgs/{organizationId}/sites/{siteId}/ads": {
14779
- "post": {
14780
- "operationId": "updateSiteAdsById",
14781
- "summary": "Enable, disable, or submit for review Ads on a site.",
14705
+ "/orgs/{organizationId}/sites/{siteId}/redirect": {
14706
+ "get": {
14707
+ "operationId": "getSiteRedirectBySource",
14708
+ "summary": "Resolve a redirect in a site by its source path.",
14782
14709
  "tags": [
14783
14710
  "sites"
14784
14711
  ],
@@ -14793,33 +14720,46 @@
14793
14720
  },
14794
14721
  {
14795
14722
  "$ref": "#/components/parameters/siteId"
14723
+ },
14724
+ {
14725
+ "$ref": "#/components/parameters/siteShareKey"
14726
+ },
14727
+ {
14728
+ "name": "source",
14729
+ "in": "query",
14730
+ "required": true,
14731
+ "description": "The source path of the redirect.",
14732
+ "schema": {
14733
+ "$ref": "#/components/schemas/SiteRedirectSourcePath"
14734
+ }
14796
14735
  }
14797
14736
  ],
14798
- "requestBody": {
14799
- "required": false,
14800
- "content": {
14801
- "application/json": {
14802
- "schema": {
14803
- "type": "object",
14804
- "properties": {
14805
- "status": {
14806
- "type": "string",
14807
- "enum": [
14808
- "in-review",
14809
- "disabled"
14810
- ]
14737
+ "responses": {
14738
+ "200": {
14739
+ "description": "The redirect was resolved successfully.",
14740
+ "content": {
14741
+ "application/json": {
14742
+ "schema": {
14743
+ "type": "object",
14744
+ "properties": {
14745
+ "redirect": {
14746
+ "$ref": "#/components/schemas/SiteRedirect"
14747
+ },
14748
+ "target": {
14749
+ "type": "string",
14750
+ "description": "URL of the destination of the redirect."
14751
+ }
14811
14752
  },
14812
- "topic": {
14813
- "$ref": "#/components/schemas/SiteAdsTopic"
14814
- }
14753
+ "required": [
14754
+ "redirect",
14755
+ "target"
14756
+ ]
14815
14757
  }
14816
14758
  }
14817
14759
  }
14818
- }
14819
- },
14820
- "responses": {
14821
- "204": {
14822
- "description": "OK"
14760
+ },
14761
+ "404": {
14762
+ "$ref": "#/components/responses/NotFoundError"
14823
14763
  },
14824
14764
  "default": {
14825
14765
  "$ref": "#/components/responses/UnexpectedError"
@@ -14862,7 +14802,7 @@
14862
14802
  },
14863
14803
  "post": {
14864
14804
  "operationId": "setupCustomHostname",
14865
- "summary": "Setup a custom hostname on a content or an organization. Any previously set custom hostname will continue pointing to the target but marked as available for use with another target.",
14805
+ "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.",
14866
14806
  "tags": [
14867
14807
  "custom-hostnames"
14868
14808
  ],
@@ -14887,12 +14827,6 @@
14887
14827
  {
14888
14828
  "$ref": "#/components/schemas/OrganizationPointer"
14889
14829
  },
14890
- {
14891
- "$ref": "#/components/schemas/SpacePointer"
14892
- },
14893
- {
14894
- "$ref": "#/components/schemas/CollectionPointer"
14895
- },
14896
14830
  {
14897
14831
  "$ref": "#/components/schemas/SitePointer"
14898
14832
  }
@@ -15000,7 +14934,7 @@
15000
14934
  "/custom-hostnames/{hostname}/test": {
15001
14935
  "post": {
15002
14936
  "operationId": "testCustomHostname",
15003
- "summary": "Test if a custom hostname can be used for a content or organization.",
14937
+ "summary": "Test if a custom hostname can be used for a site or organization.",
15004
14938
  "tags": [
15005
14939
  "custom-hostnames"
15006
14940
  ],
@@ -15025,12 +14959,6 @@
15025
14959
  {
15026
14960
  "$ref": "#/components/schemas/OrganizationPointer"
15027
14961
  },
15028
- {
15029
- "$ref": "#/components/schemas/SpacePointer"
15030
- },
15031
- {
15032
- "$ref": "#/components/schemas/CollectionPointer"
15033
- },
15034
14962
  {
15035
14963
  "$ref": "#/components/schemas/SitePointer"
15036
14964
  }
@@ -15694,15 +15622,6 @@
15694
15622
  "type": "string"
15695
15623
  }
15696
15624
  },
15697
- "shareLinkId": {
15698
- "name": "shareLinkId",
15699
- "in": "path",
15700
- "required": true,
15701
- "description": "The unique id of the share link",
15702
- "schema": {
15703
- "type": "string"
15704
- }
15705
- },
15706
15625
  "collectionId": {
15707
15626
  "name": "collectionId",
15708
15627
  "in": "path",
@@ -15820,6 +15739,15 @@
15820
15739
  "format": "date-time"
15821
15740
  }
15822
15741
  },
15742
+ "shareLinkId": {
15743
+ "name": "shareLinkId",
15744
+ "in": "path",
15745
+ "required": true,
15746
+ "description": "The unique id of the share link",
15747
+ "schema": {
15748
+ "type": "string"
15749
+ }
15750
+ },
15823
15751
  "siteCustomizationUnmasked": {
15824
15752
  "name": "unmasked",
15825
15753
  "in": "query",
@@ -15848,6 +15776,15 @@
15848
15776
  "type": "string"
15849
15777
  }
15850
15778
  },
15779
+ "siteRedirectId": {
15780
+ "name": "siteRedirectId",
15781
+ "in": "path",
15782
+ "required": true,
15783
+ "description": "The unique id of the site redirect",
15784
+ "schema": {
15785
+ "type": "string"
15786
+ }
15787
+ },
15851
15788
  "hostname": {
15852
15789
  "name": "hostname",
15853
15790
  "in": "path",
@@ -19466,6 +19403,7 @@
19466
19403
  "Emoji": {
19467
19404
  "type": "string",
19468
19405
  "maxLength": 50,
19406
+ "format": "emoji",
19469
19407
  "description": "Unicode codepoint or character of the emoji",
19470
19408
  "example": "🎉"
19471
19409
  },
@@ -19733,6 +19671,24 @@
19733
19671
  },
19734
19672
  "defaultLevel": {
19735
19673
  "$ref": "#/components/schemas/DefaultLevel"
19674
+ },
19675
+ "permissions": {
19676
+ "type": "object",
19677
+ "description": "The set of permissions for the space",
19678
+ "properties": {
19679
+ "admin": {
19680
+ "type": "boolean",
19681
+ "description": "Can the user edit the title, install integrations, and manage the space."
19682
+ },
19683
+ "edit": {
19684
+ "type": "boolean",
19685
+ "description": "Can the user edit the content of the space by creating a change request."
19686
+ }
19687
+ },
19688
+ "required": [
19689
+ "admin",
19690
+ "edit"
19691
+ ]
19736
19692
  }
19737
19693
  },
19738
19694
  "required": [
@@ -19747,7 +19703,8 @@
19747
19703
  "createdAt",
19748
19704
  "updatedAt",
19749
19705
  "urls",
19750
- "defaultLevel"
19706
+ "defaultLevel",
19707
+ "permissions"
19751
19708
  ]
19752
19709
  },
19753
19710
  "SpacePointer": {
@@ -20105,6 +20062,7 @@
20105
20062
  "Icon": {
20106
20063
  "type": "string",
20107
20064
  "maxLength": 50,
20065
+ "format": "icon",
20108
20066
  "description": "Name of the icon",
20109
20067
  "example": "gear"
20110
20068
  },
@@ -21317,12 +21275,6 @@
21317
21275
  "OrganizationDefaultContent": {
21318
21276
  "description": "The default content for the organization",
21319
21277
  "oneOf": [
21320
- {
21321
- "$ref": "#/components/schemas/SpacePointer"
21322
- },
21323
- {
21324
- "$ref": "#/components/schemas/CollectionPointer"
21325
- },
21326
21278
  {
21327
21279
  "$ref": "#/components/schemas/SitePointer"
21328
21280
  }
@@ -21666,19 +21618,6 @@
21666
21618
  "description": {
21667
21619
  "$ref": "#/components/schemas/CollectionDescription"
21668
21620
  },
21669
- "path": {
21670
- "type": "string",
21671
- "description": "Path in the published URL"
21672
- },
21673
- "visibility": {
21674
- "$ref": "#/components/schemas/ContentVisibility"
21675
- },
21676
- "publishingType": {
21677
- "type": "string",
21678
- "enum": [
21679
- "variants"
21680
- ]
21681
- },
21682
21621
  "organization": {
21683
21622
  "type": "string",
21684
21623
  "description": "ID of the organization owning this collection"
@@ -21687,11 +21626,6 @@
21687
21626
  "type": "string",
21688
21627
  "description": "ID of the parent collection, if any"
21689
21628
  },
21690
- "collection": {
21691
- "type": "string",
21692
- "deprecated": true,
21693
- "description": "ID of the parent collection, if any"
21694
- },
21695
21629
  "defaultLevel": {
21696
21630
  "$ref": "#/components/schemas/DefaultLevel"
21697
21631
  },
@@ -21714,6 +21648,24 @@
21714
21648
  "app",
21715
21649
  "location"
21716
21650
  ]
21651
+ },
21652
+ "permissions": {
21653
+ "type": "object",
21654
+ "description": "The set of permissions for the collection",
21655
+ "properties": {
21656
+ "admin": {
21657
+ "type": "boolean",
21658
+ "description": "Can the user edit the title/description."
21659
+ },
21660
+ "create": {
21661
+ "type": "boolean",
21662
+ "description": "Can the user create spaces/collections in this collection."
21663
+ }
21664
+ },
21665
+ "required": [
21666
+ "admin",
21667
+ "create"
21668
+ ]
21717
21669
  }
21718
21670
  },
21719
21671
  "required": [
@@ -21721,9 +21673,9 @@
21721
21673
  "id",
21722
21674
  "title",
21723
21675
  "organization",
21724
- "visibility",
21725
21676
  "urls",
21726
- "defaultLevel"
21677
+ "defaultLevel",
21678
+ "permissions"
21727
21679
  ]
21728
21680
  },
21729
21681
  "ContentLocationCollection": {
@@ -24388,78 +24340,6 @@
24388
24340
  "urls"
24389
24341
  ]
24390
24342
  },
24391
- "ShareLinkName": {
24392
- "type": "string",
24393
- "description": "Name of the share link",
24394
- "minLength": 0,
24395
- "maxLength": 50
24396
- },
24397
- "ShareLink": {
24398
- "type": "object",
24399
- "properties": {
24400
- "object": {
24401
- "type": "string",
24402
- "description": "Type of Object, always equals to \"share-link\"",
24403
- "enum": [
24404
- "share-link"
24405
- ]
24406
- },
24407
- "id": {
24408
- "type": "string",
24409
- "description": "Unique identifier for the share-link"
24410
- },
24411
- "createdAt": {
24412
- "$ref": "#/components/schemas/Timestamp"
24413
- },
24414
- "name": {
24415
- "$ref": "#/components/schemas/ShareLinkName"
24416
- },
24417
- "active": {
24418
- "type": "boolean"
24419
- },
24420
- "urls": {
24421
- "type": "object",
24422
- "description": "URLs associated with the object",
24423
- "properties": {
24424
- "published": {
24425
- "type": "string",
24426
- "description": "URL of the published version of the share-link.",
24427
- "format": "uri"
24428
- }
24429
- }
24430
- }
24431
- },
24432
- "required": [
24433
- "object",
24434
- "id",
24435
- "createdAt",
24436
- "urls"
24437
- ]
24438
- },
24439
- "CustomizationCollectionSettings": {
24440
- "allOf": [
24441
- {
24442
- "$ref": "#/components/schemas/CustomizationSettings"
24443
- },
24444
- {
24445
- "type": "object",
24446
- "properties": {
24447
- "collection": {
24448
- "type": "object",
24449
- "properties": {
24450
- "defaultSpace": {
24451
- "type": "string",
24452
- "description": "ID of the space used by default in the collection"
24453
- }
24454
- }
24455
- }
24456
- },
24457
- "required": [
24458
- "collection"
24459
- ]
24460
- }
24461
- ]
24462
- },
24463
24343
  "IntegrationSecrets": {
24464
24344
  "type": "object",
24465
24345
  "description": "Secrets stored on the integration and passed at runtime.",
@@ -27636,6 +27516,9 @@
27636
27516
  "required": [
27637
27517
  "location"
27638
27518
  ]
27519
+ },
27520
+ "icon": {
27521
+ "$ref": "#/components/schemas/Icon"
27639
27522
  }
27640
27523
  },
27641
27524
  "required": [
@@ -29558,6 +29441,54 @@
29558
29441
  "scripts"
29559
29442
  ]
29560
29443
  },
29444
+ "ShareLinkName": {
29445
+ "type": "string",
29446
+ "description": "Name of the share link",
29447
+ "minLength": 0,
29448
+ "maxLength": 50
29449
+ },
29450
+ "ShareLink": {
29451
+ "type": "object",
29452
+ "properties": {
29453
+ "object": {
29454
+ "type": "string",
29455
+ "description": "Type of Object, always equals to \"share-link\"",
29456
+ "enum": [
29457
+ "share-link"
29458
+ ]
29459
+ },
29460
+ "id": {
29461
+ "type": "string",
29462
+ "description": "Unique identifier for the share-link"
29463
+ },
29464
+ "createdAt": {
29465
+ "$ref": "#/components/schemas/Timestamp"
29466
+ },
29467
+ "name": {
29468
+ "$ref": "#/components/schemas/ShareLinkName"
29469
+ },
29470
+ "active": {
29471
+ "type": "boolean"
29472
+ },
29473
+ "urls": {
29474
+ "type": "object",
29475
+ "description": "URLs associated with the object",
29476
+ "properties": {
29477
+ "published": {
29478
+ "type": "string",
29479
+ "description": "URL of the published version of the share-link.",
29480
+ "format": "uri"
29481
+ }
29482
+ }
29483
+ }
29484
+ },
29485
+ "required": [
29486
+ "object",
29487
+ "id",
29488
+ "createdAt",
29489
+ "urls"
29490
+ ]
29491
+ },
29561
29492
  "SitePublishingAuth": {
29562
29493
  "allOf": [
29563
29494
  {
@@ -29882,6 +29813,132 @@
29882
29813
  }
29883
29814
  }
29884
29815
  },
29816
+ "AnalyticsAsk": {
29817
+ "type": "object",
29818
+ "description": "Analytics entry for an ask.",
29819
+ "required": [
29820
+ "ask",
29821
+ "count"
29822
+ ],
29823
+ "properties": {
29824
+ "ask": {
29825
+ "description": "The question that was asked.",
29826
+ "type": "string"
29827
+ },
29828
+ "count": {
29829
+ "description": "Number of times this question was asked.",
29830
+ "type": "number"
29831
+ }
29832
+ }
29833
+ },
29834
+ "SiteRedirectSourcePath": {
29835
+ "type": "string",
29836
+ "description": "The source path to redirect from.",
29837
+ "maxLength": 512,
29838
+ "pattern": "^/[a-zA-Z0-9-_.\\/]+[a-zA-Z0-9-_.]$"
29839
+ },
29840
+ "SiteRedirectDestinationSiteSection": {
29841
+ "type": "object",
29842
+ "properties": {
29843
+ "kind": {
29844
+ "type": "string",
29845
+ "enum": [
29846
+ "site-section"
29847
+ ]
29848
+ },
29849
+ "siteSectionId": {
29850
+ "type": "string",
29851
+ "description": "Unique identifier for the site section to redirect to"
29852
+ }
29853
+ },
29854
+ "required": [
29855
+ "kind",
29856
+ "siteSectionId"
29857
+ ]
29858
+ },
29859
+ "SiteRedirectDestinationSiteSpace": {
29860
+ "type": "object",
29861
+ "properties": {
29862
+ "kind": {
29863
+ "type": "string",
29864
+ "enum": [
29865
+ "site-space"
29866
+ ]
29867
+ },
29868
+ "siteSpaceId": {
29869
+ "type": "string",
29870
+ "description": "Unique identifier for the site space to redirect to"
29871
+ }
29872
+ },
29873
+ "required": [
29874
+ "kind",
29875
+ "siteSpaceId"
29876
+ ]
29877
+ },
29878
+ "SiteRedirectDestinationPage": {
29879
+ "type": "object",
29880
+ "properties": {
29881
+ "kind": {
29882
+ "type": "string",
29883
+ "enum": [
29884
+ "site-page"
29885
+ ]
29886
+ },
29887
+ "siteSpaceId": {
29888
+ "type": "string",
29889
+ "description": "Unique identifier for the site space of the page"
29890
+ },
29891
+ "pageId": {
29892
+ "type": "string",
29893
+ "description": "Unique identifier for the page within the site space to redirect to"
29894
+ }
29895
+ },
29896
+ "required": [
29897
+ "kind",
29898
+ "siteSpaceId",
29899
+ "pageId"
29900
+ ]
29901
+ },
29902
+ "SiteRedirectDestination": {
29903
+ "oneOf": [
29904
+ {
29905
+ "$ref": "#/components/schemas/SiteRedirectDestinationSiteSection"
29906
+ },
29907
+ {
29908
+ "$ref": "#/components/schemas/SiteRedirectDestinationSiteSpace"
29909
+ },
29910
+ {
29911
+ "$ref": "#/components/schemas/SiteRedirectDestinationPage"
29912
+ }
29913
+ ]
29914
+ },
29915
+ "SiteRedirect": {
29916
+ "type": "object",
29917
+ "properties": {
29918
+ "object": {
29919
+ "type": "string",
29920
+ "enum": [
29921
+ "site-redirect"
29922
+ ]
29923
+ },
29924
+ "id": {
29925
+ "type": "string",
29926
+ "description": "The unique identifier for the redirect."
29927
+ },
29928
+ "source": {
29929
+ "$ref": "#/components/schemas/SiteRedirectSourcePath"
29930
+ },
29931
+ "destination": {
29932
+ "$ref": "#/components/schemas/SiteRedirectDestination"
29933
+ }
29934
+ },
29935
+ "required": [
29936
+ "object",
29937
+ "id",
29938
+ "source",
29939
+ "destination"
29940
+ ]
29941
+ },
29885
29942
  "CustomHostnameDnsStatus": {
29886
29943
  "type": "string",
29887
29944
  "enum": [
@@ -29940,12 +29997,6 @@
29940
29997
  {
29941
29998
  "$ref": "#/components/schemas/OrganizationPointer"
29942
29999
  },
29943
- {
29944
- "$ref": "#/components/schemas/SpacePointer"
29945
- },
29946
- {
29947
- "$ref": "#/components/schemas/CollectionPointer"
29948
- },
29949
30000
  {
29950
30001
  "$ref": "#/components/schemas/SitePointer"
29951
30002
  }
@@ -30521,6 +30572,10 @@
30521
30572
  "complete": {
30522
30573
  "type": "boolean",
30523
30574
  "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."
30575
+ },
30576
+ "contextId": {
30577
+ "type": "string",
30578
+ "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)."
30524
30579
  }
30525
30580
  },
30526
30581
  "required": [
@@ -31185,6 +31240,11 @@
31185
31240
  },
31186
31241
  "description": "List of spaces that the token is allowed to access."
31187
31242
  },
31243
+ "claims": {
31244
+ "type": "object",
31245
+ "description": "Attributes or assertions that provide specific details about the visitor for which the token was generated.",
31246
+ "additionalProperties": true
31247
+ },
31188
31248
  "rateLimitMultiplier": {
31189
31249
  "type": "number",
31190
31250
  "description": "Multiplier for the rate limit applied to the token."
@@ -31192,7 +31252,8 @@
31192
31252
  },
31193
31253
  "required": [
31194
31254
  "organization",
31195
- "spaces"
31255
+ "spaces",
31256
+ "claims"
31196
31257
  ]
31197
31258
  },
31198
31259
  "SpaceAPIToken": {
@@ -32212,6 +32273,24 @@
32212
32273
  "site"
32213
32274
  ]
32214
32275
  },
32276
+ "SiteRedirectsChannel": {
32277
+ "type": "object",
32278
+ "properties": {
32279
+ "channel": {
32280
+ "type": "string",
32281
+ "enum": [
32282
+ "site-redirects"
32283
+ ]
32284
+ },
32285
+ "site": {
32286
+ "type": "string"
32287
+ }
32288
+ },
32289
+ "required": [
32290
+ "channel",
32291
+ "site"
32292
+ ]
32293
+ },
32215
32294
  "SiteChannel": {
32216
32295
  "type": "object",
32217
32296
  "properties": {
@@ -32605,6 +32684,9 @@
32605
32684
  {
32606
32685
  "$ref": "#/components/schemas/PublishedContentSiteChannel"
32607
32686
  },
32687
+ {
32688
+ "$ref": "#/components/schemas/SiteRedirectsChannel"
32689
+ },
32608
32690
  {
32609
32691
  "$ref": "#/components/schemas/SiteChannel"
32610
32692
  },
@@ -32923,6 +33005,9 @@
32923
33005
  },
32924
33006
  "UserPermissions": {
32925
33007
  "$ref": "#/components/schemas/_index"
33008
+ },
33009
+ "SiteRedirectDestinationSpace": {
33010
+ "$ref": "#/components/schemas/SiteRedirectDestinationSiteSpace"
32926
33011
  }
32927
33012
  },
32928
33013
  "responses": {