@gitbook/api 0.62.0 → 0.64.1

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
@@ -1737,7 +1737,80 @@
1737
1737
  }
1738
1738
  }
1739
1739
  },
1740
- "/spaces/{spaceId}/content/pages/{pageId}/backlinks": {
1740
+ "/spaces/{spaceId}/content/page/{pageId}/links": {
1741
+ "get": {
1742
+ "operationId": "listPageLinksInSpace",
1743
+ "summary": "List all links in a page",
1744
+ "tags": [
1745
+ "spaces",
1746
+ "links"
1747
+ ],
1748
+ "security": [
1749
+ {
1750
+ "user": []
1751
+ }
1752
+ ],
1753
+ "parameters": [
1754
+ {
1755
+ "$ref": "#/components/parameters/spaceId"
1756
+ },
1757
+ {
1758
+ "$ref": "#/components/parameters/pageId"
1759
+ },
1760
+ {
1761
+ "$ref": "#/components/parameters/listPage"
1762
+ },
1763
+ {
1764
+ "$ref": "#/components/parameters/listLimit"
1765
+ },
1766
+ {
1767
+ "name": "status",
1768
+ "in": "query",
1769
+ "schema": {
1770
+ "$ref": "#/components/schemas/ContentReferenceStatus"
1771
+ }
1772
+ }
1773
+ ],
1774
+ "responses": {
1775
+ "200": {
1776
+ "description": "OK",
1777
+ "content": {
1778
+ "application/json": {
1779
+ "schema": {
1780
+ "allOf": [
1781
+ {
1782
+ "$ref": "#/components/schemas/List"
1783
+ },
1784
+ {
1785
+ "type": "object",
1786
+ "properties": {
1787
+ "stats": {
1788
+ "$ref": "#/components/schemas/ContentReferencesStats"
1789
+ },
1790
+ "items": {
1791
+ "type": "array",
1792
+ "items": {
1793
+ "$ref": "#/components/schemas/ContentReferenceUsage"
1794
+ }
1795
+ }
1796
+ },
1797
+ "required": [
1798
+ "items",
1799
+ "stats"
1800
+ ]
1801
+ }
1802
+ ]
1803
+ }
1804
+ }
1805
+ }
1806
+ },
1807
+ "default": {
1808
+ "$ref": "#/components/responses/UnexpectedError"
1809
+ }
1810
+ }
1811
+ }
1812
+ },
1813
+ "/spaces/{spaceId}/content/page/{pageId}/backlinks": {
1741
1814
  "get": {
1742
1815
  "operationId": "listSpacePageBacklinks",
1743
1816
  "summary": "Get backlink locations for a page existing in a space.",
@@ -3513,6 +3586,74 @@
3513
3586
  }
3514
3587
  }
3515
3588
  },
3589
+ "/spaces/{spaceId}/change-requests/{changeRequestId}/content/page/{pageId}/links": {
3590
+ "get": {
3591
+ "operationId": "listPageLinksInChangeRequest",
3592
+ "summary": "List all links in a page inside a change request.",
3593
+ "tags": [
3594
+ "spaces"
3595
+ ],
3596
+ "security": [
3597
+ {
3598
+ "user": []
3599
+ }
3600
+ ],
3601
+ "parameters": [
3602
+ {
3603
+ "$ref": "#/components/parameters/spaceId"
3604
+ },
3605
+ {
3606
+ "$ref": "#/components/parameters/changeRequestId"
3607
+ },
3608
+ {
3609
+ "$ref": "#/components/parameters/pageId"
3610
+ },
3611
+ {
3612
+ "$ref": "#/components/parameters/listPage"
3613
+ },
3614
+ {
3615
+ "$ref": "#/components/parameters/listLimit"
3616
+ }
3617
+ ],
3618
+ "responses": {
3619
+ "200": {
3620
+ "description": "OK",
3621
+ "content": {
3622
+ "application/json": {
3623
+ "schema": {
3624
+ "allOf": [
3625
+ {
3626
+ "$ref": "#/components/schemas/List"
3627
+ },
3628
+ {
3629
+ "type": "object",
3630
+ "properties": {
3631
+ "stats": {
3632
+ "$ref": "#/components/schemas/ContentReferencesStats"
3633
+ },
3634
+ "items": {
3635
+ "type": "array",
3636
+ "items": {
3637
+ "$ref": "#/components/schemas/ContentReferenceUsage"
3638
+ }
3639
+ }
3640
+ },
3641
+ "required": [
3642
+ "items",
3643
+ "stats"
3644
+ ]
3645
+ }
3646
+ ]
3647
+ }
3648
+ }
3649
+ }
3650
+ },
3651
+ "default": {
3652
+ "$ref": "#/components/responses/UnexpectedError"
3653
+ }
3654
+ }
3655
+ }
3656
+ },
3516
3657
  "/spaces/{spaceId}/change-requests/{changeRequestId}/content/page/{pageId}/backlinks": {
3517
3658
  "get": {
3518
3659
  "operationId": "listChangeRequestPageBacklinks",
@@ -5251,7 +5392,7 @@
5251
5392
  "/spaces/{spaceId}/links": {
5252
5393
  "get": {
5253
5394
  "operationId": "listSpaceLinks",
5254
- "summary": "Get all links in the context of a space including their status and location where they appear.",
5395
+ "summary": "Get all links in a space including their status and location where they appear.",
5255
5396
  "tags": [
5256
5397
  "spaces",
5257
5398
  "links"
@@ -5274,7 +5415,6 @@
5274
5415
  {
5275
5416
  "name": "status",
5276
5417
  "in": "query",
5277
- "required": false,
5278
5418
  "schema": {
5279
5419
  "$ref": "#/components/schemas/ContentReferenceStatus"
5280
5420
  }
@@ -5947,6 +6087,14 @@
5947
6087
  "pattern": "^[a-zA-Z0-9-_.]+$",
5948
6088
  "maxLength": 100
5949
6089
  }
6090
+ },
6091
+ {
6092
+ "name": "blocks",
6093
+ "in": "query",
6094
+ "description": "If true, returns only integrations with blocks. If false, returns only integrations without blocks.",
6095
+ "schema": {
6096
+ "type": "boolean"
6097
+ }
5950
6098
  }
5951
6099
  ],
5952
6100
  "responses": {
@@ -6372,10 +6520,10 @@
6372
6520
  }
6373
6521
  }
6374
6522
  },
6375
- "/integrations/{integrationName}/spaces/{spaceId}/dev": {
6523
+ "/integrations/{integrationName}/dev": {
6376
6524
  "put": {
6377
- "operationId": "updateIntegrationDevSpace",
6378
- "summary": "Update the development space for an integration",
6525
+ "operationId": "setIntegrationDevelopmentMode",
6526
+ "summary": "Update an integration to be in development mode.",
6379
6527
  "tags": [
6380
6528
  "integrations"
6381
6529
  ],
@@ -6387,9 +6535,6 @@
6387
6535
  "parameters": [
6388
6536
  {
6389
6537
  "$ref": "#/components/parameters/integrationName"
6390
- },
6391
- {
6392
- "$ref": "#/components/parameters/spaceId"
6393
6538
  }
6394
6539
  ],
6395
6540
  "requestBody": {
@@ -6404,6 +6549,11 @@
6404
6549
  "description": "URL of the tunnel to dispatch integration events to",
6405
6550
  "minLength": 1,
6406
6551
  "maxLength": 256
6552
+ },
6553
+ "all": {
6554
+ "type": "boolean",
6555
+ "default": false,
6556
+ "description": "If set to true, all requests will be forwarded to the tunnel, not just from the owning organization.\n"
6407
6557
  }
6408
6558
  },
6409
6559
  "required": [
@@ -6415,7 +6565,7 @@
6415
6565
  },
6416
6566
  "responses": {
6417
6567
  "204": {
6418
- "description": "Updated development space successfully"
6568
+ "description": "Updated development mode successfully"
6419
6569
  },
6420
6570
  "404": {
6421
6571
  "$ref": "#/components/responses/NotFoundError"
@@ -6426,8 +6576,8 @@
6426
6576
  }
6427
6577
  },
6428
6578
  "delete": {
6429
- "operationId": "removeIntegrationDevSpace",
6430
- "summary": "Remove the development space for an integration",
6579
+ "operationId": "disableIntegrationDevelopmentMode",
6580
+ "summary": "Disable the development mode on an integration.",
6431
6581
  "tags": [
6432
6582
  "integrations"
6433
6583
  ],
@@ -6439,18 +6589,11 @@
6439
6589
  "parameters": [
6440
6590
  {
6441
6591
  "$ref": "#/components/parameters/integrationName"
6442
- },
6443
- {
6444
- "$ref": "#/components/parameters/spaceId"
6445
6592
  }
6446
6593
  ],
6447
6594
  "responses": {
6448
- "204": {
6449
- "description": "Removed development space successfully"
6450
- },
6451
- "404": {
6452
- "description": "No matching integration dev space found",
6453
- "$ref": "#/components/responses/NotFoundError"
6595
+ "205": {
6596
+ "description": "Disabled development mode successfully"
6454
6597
  },
6455
6598
  "default": {
6456
6599
  "$ref": "#/components/responses/UnexpectedError"
@@ -8575,6 +8718,12 @@
8575
8718
  "parameters": [
8576
8719
  {
8577
8720
  "$ref": "#/components/parameters/organizationId"
8721
+ },
8722
+ {
8723
+ "$ref": "#/components/parameters/successReturnURL"
8724
+ },
8725
+ {
8726
+ "$ref": "#/components/parameters/cancelReturnURL"
8578
8727
  }
8579
8728
  ],
8580
8729
  "responses": {
@@ -8687,9 +8836,9 @@
8687
8836
  }
8688
8837
  },
8689
8838
  {
8690
- "name": "audienceSites",
8839
+ "name": "ultimateSites",
8691
8840
  "in": "query",
8692
- "description": "The desired amount of published audience sites",
8841
+ "description": "The desired amount of published ultimate sites",
8693
8842
  "schema": {
8694
8843
  "type": "number"
8695
8844
  }
@@ -11019,6 +11168,18 @@
11019
11168
  },
11020
11169
  {
11021
11170
  "$ref": "#/components/parameters/listLimit"
11171
+ },
11172
+ {
11173
+ "name": "ids",
11174
+ "in": "query",
11175
+ "description": "A list of IDs to filter the synced blocks.",
11176
+ "required": false,
11177
+ "schema": {
11178
+ "type": "array",
11179
+ "items": {
11180
+ "type": "string"
11181
+ }
11182
+ }
11022
11183
  }
11023
11184
  ],
11024
11185
  "responses": {
@@ -11078,14 +11239,15 @@
11078
11239
  "schema": {
11079
11240
  "type": "object",
11080
11241
  "required": [
11081
- "document"
11242
+ "content"
11082
11243
  ],
11083
11244
  "properties": {
11084
11245
  "title": {
11085
11246
  "type": "string",
11086
11247
  "description": "Title of synced block"
11087
11248
  },
11088
- "document": {
11249
+ "content": {
11250
+ "description": "The content of the synced block. For now, only JSON documents are supported.",
11089
11251
  "$ref": "#/components/schemas/Document"
11090
11252
  }
11091
11253
  }
@@ -11154,7 +11316,7 @@
11154
11316
  }
11155
11317
  }
11156
11318
  },
11157
- "put": {
11319
+ "patch": {
11158
11320
  "operationId": "updateSyncedBlock",
11159
11321
  "summary": "Update an existing synced block.",
11160
11322
  "tags": [
@@ -11183,6 +11345,10 @@
11183
11345
  "title": {
11184
11346
  "type": "string",
11185
11347
  "description": "A new title for the Synced Block."
11348
+ },
11349
+ "description": {
11350
+ "type": "string",
11351
+ "description": "A new description for the Synced Block."
11186
11352
  }
11187
11353
  }
11188
11354
  }
@@ -11197,6 +11363,34 @@
11197
11363
  "$ref": "#/components/responses/UnexpectedError"
11198
11364
  }
11199
11365
  }
11366
+ },
11367
+ "delete": {
11368
+ "operationId": "deleteSyncedBlock",
11369
+ "summary": "Delete a synced block by its ID",
11370
+ "tags": [
11371
+ "organizations"
11372
+ ],
11373
+ "security": [
11374
+ {
11375
+ "user": []
11376
+ }
11377
+ ],
11378
+ "parameters": [
11379
+ {
11380
+ "$ref": "#/components/parameters/organizationId"
11381
+ },
11382
+ {
11383
+ "$ref": "#/components/parameters/syncedBlockId"
11384
+ }
11385
+ ],
11386
+ "responses": {
11387
+ "204": {
11388
+ "description": "OK"
11389
+ },
11390
+ "default": {
11391
+ "$ref": "#/components/responses/UnexpectedError"
11392
+ }
11393
+ }
11200
11394
  }
11201
11395
  },
11202
11396
  "/orgs/{organizationId}/synced-blocks/{syncedBlockId}/content": {
@@ -11253,7 +11447,7 @@
11253
11447
  },
11254
11448
  "/orgs/{organizationId}/synced-blocks/{syncedBlockId}/backlinks": {
11255
11449
  "get": {
11256
- "operationId": "getSyncedBlockBacklinks",
11450
+ "operationId": "listSyncedBlockBacklinks",
11257
11451
  "summary": "Get a list of pages that reference this synced block.",
11258
11452
  "tags": [
11259
11453
  "organizations"
@@ -11275,6 +11469,22 @@
11275
11469
  },
11276
11470
  {
11277
11471
  "$ref": "#/components/parameters/listLimit"
11472
+ },
11473
+ {
11474
+ "name": "changeRequestId",
11475
+ "in": "query",
11476
+ "description": "Filter backlinks relative to a change request.",
11477
+ "schema": {
11478
+ "type": "string"
11479
+ }
11480
+ },
11481
+ {
11482
+ "name": "spaceId",
11483
+ "in": "query",
11484
+ "description": "Filter backlinks relative to a space.",
11485
+ "schema": {
11486
+ "type": "string"
11487
+ }
11278
11488
  }
11279
11489
  ],
11280
11490
  "responses": {
@@ -11296,7 +11506,7 @@
11296
11506
  "items": {
11297
11507
  "type": "array",
11298
11508
  "items": {
11299
- "$ref": "#/components/schemas/ContentLocation"
11509
+ "$ref": "#/components/schemas/ContentLocationPage"
11300
11510
  }
11301
11511
  }
11302
11512
  }
@@ -11590,6 +11800,18 @@
11590
11800
  "schema": {
11591
11801
  "type": "boolean"
11592
11802
  }
11803
+ },
11804
+ {
11805
+ "name": "type",
11806
+ "in": "query",
11807
+ "description": "Filter by site type",
11808
+ "required": false,
11809
+ "schema": {
11810
+ "type": "array",
11811
+ "items": {
11812
+ "$ref": "#/components/schemas/SiteType"
11813
+ }
11814
+ }
11593
11815
  }
11594
11816
  ],
11595
11817
  "responses": {
@@ -12189,16 +12411,16 @@
12189
12411
  }
12190
12412
  }
12191
12413
  },
12192
- "/orgs/{organizationId}/sites/{siteId}/plan": {
12193
- "post": {
12194
- "operationId": "updateSitePlan",
12195
- "summary": "Update the site plan.",
12414
+ "/orgs/{organizationId}/sites/{siteId}/structure": {
12415
+ "get": {
12416
+ "operationId": "getSiteStructure",
12417
+ "summary": "Get the structure of a site which includes site-sections and site-spaces",
12196
12418
  "tags": [
12197
12419
  "sites"
12198
12420
  ],
12199
12421
  "security": [
12200
12422
  {
12201
- "user-internal": []
12423
+ "user": []
12202
12424
  }
12203
12425
  ],
12204
12426
  "parameters": [
@@ -12209,37 +12431,106 @@
12209
12431
  "$ref": "#/components/parameters/siteId"
12210
12432
  },
12211
12433
  {
12212
- "in": "query",
12213
- "name": "successReturnURL",
12214
- "description": "The app screen URL to bring the user back to after a succesfull checkout.",
12215
- "schema": {
12216
- "type": "string"
12217
- }
12218
- },
12219
- {
12220
- "in": "query",
12221
- "name": "cancelReturnURL",
12222
- "description": "The app screen URL to bring the user back to after a canceled checkout.",
12223
- "schema": {
12224
- "type": "string"
12225
- }
12434
+ "$ref": "#/components/parameters/siteShareKey"
12226
12435
  }
12227
12436
  ],
12228
- "requestBody": {
12229
- "required": true,
12230
- "content": {
12231
- "application/json": {
12232
- "schema": {
12233
- "type": "object",
12234
- "properties": {
12235
- "plan": {
12236
- "$ref": "#/components/schemas/SiteType"
12237
- },
12238
- "interval": {
12239
- "description": "Desired interval for new subscriptions. Defaults to the existing billing interval.",
12240
- "$ref": "#/components/schemas/BillingInterval"
12241
- }
12242
- },
12437
+ "responses": {
12438
+ "200": {
12439
+ "description": "OK",
12440
+ "content": {
12441
+ "application/json": {
12442
+ "schema": {
12443
+ "oneOf": [
12444
+ {
12445
+ "type": "object",
12446
+ "properties": {
12447
+ "type": {
12448
+ "type": "string",
12449
+ "enum": [
12450
+ "sections"
12451
+ ]
12452
+ },
12453
+ "structure": {
12454
+ "type": "array",
12455
+ "items": {
12456
+ "$ref": "#/components/schemas/SiteSection"
12457
+ }
12458
+ }
12459
+ }
12460
+ },
12461
+ {
12462
+ "type": "object",
12463
+ "properties": {
12464
+ "type": {
12465
+ "type": "string",
12466
+ "enum": [
12467
+ "siteSpaces"
12468
+ ]
12469
+ },
12470
+ "structure": {
12471
+ "type": "array",
12472
+ "items": {
12473
+ "$ref": "#/components/schemas/SiteSpace"
12474
+ }
12475
+ }
12476
+ }
12477
+ }
12478
+ ]
12479
+ }
12480
+ }
12481
+ }
12482
+ },
12483
+ "404": {
12484
+ "description": "No matching site found",
12485
+ "$ref": "#/components/responses/NotFoundError"
12486
+ },
12487
+ "default": {
12488
+ "$ref": "#/components/responses/UnexpectedError"
12489
+ }
12490
+ }
12491
+ }
12492
+ },
12493
+ "/orgs/{organizationId}/sites/{siteId}/plan": {
12494
+ "post": {
12495
+ "operationId": "updateSitePlan",
12496
+ "summary": "Update the site plan.",
12497
+ "tags": [
12498
+ "sites"
12499
+ ],
12500
+ "security": [
12501
+ {
12502
+ "user-internal": []
12503
+ }
12504
+ ],
12505
+ "parameters": [
12506
+ {
12507
+ "$ref": "#/components/parameters/organizationId"
12508
+ },
12509
+ {
12510
+ "$ref": "#/components/parameters/siteId"
12511
+ },
12512
+ {
12513
+ "$ref": "#/components/parameters/successReturnURL"
12514
+ },
12515
+ {
12516
+ "$ref": "#/components/parameters/cancelReturnURL"
12517
+ }
12518
+ ],
12519
+ "requestBody": {
12520
+ "required": true,
12521
+ "content": {
12522
+ "application/json": {
12523
+ "schema": {
12524
+ "type": "object",
12525
+ "properties": {
12526
+ "plan": {
12527
+ "$ref": "#/components/schemas/SiteType"
12528
+ },
12529
+ "interval": {
12530
+ "description": "Desired interval for new subscriptions. Defaults to the existing billing interval.",
12531
+ "$ref": "#/components/schemas/BillingInterval"
12532
+ }
12533
+ },
12243
12534
  "required": [
12244
12535
  "plan"
12245
12536
  ]
@@ -12816,6 +13107,10 @@
12816
13107
  "spaceId": {
12817
13108
  "type": "string",
12818
13109
  "description": "ID of the space"
13110
+ },
13111
+ "sectionId": {
13112
+ "type": "string",
13113
+ "description": "ID of the section to add the space to. If not provided, the space will be added to the default section or at the root level if the site has no sections."
12819
13114
  }
12820
13115
  },
12821
13116
  "required": [
@@ -12920,10 +13215,13 @@
12920
13215
  }
12921
13216
  }
12922
13217
  },
12923
- "/orgs/{organizationId}/sites/{siteId}/search": {
13218
+ "/orgs/{organizationId}/sites/{siteId}/sections": {
12924
13219
  "post": {
12925
- "operationId": "searchSiteContent",
12926
- "summary": "Search content in a site",
13220
+ "operationId": "addSectionToSite",
13221
+ "summary": "Add a section to a site in an organization",
13222
+ "tags": [
13223
+ "sites"
13224
+ ],
12927
13225
  "security": [
12928
13226
  {
12929
13227
  "user": []
@@ -12935,12 +13233,6 @@
12935
13233
  },
12936
13234
  {
12937
13235
  "$ref": "#/components/parameters/siteId"
12938
- },
12939
- {
12940
- "$ref": "#/components/parameters/listPage"
12941
- },
12942
- {
12943
- "$ref": "#/components/parameters/listLimit"
12944
13236
  }
12945
13237
  ],
12946
13238
  "requestBody": {
@@ -12950,24 +13242,75 @@
12950
13242
  "schema": {
12951
13243
  "type": "object",
12952
13244
  "properties": {
12953
- "query": {
12954
- "type": "string"
13245
+ "spaceId": {
13246
+ "type": "string",
13247
+ "description": "ID of the space to be added to the section as a site space variant"
12955
13248
  },
12956
- "siteSpaceIds": {
12957
- "type": "array",
12958
- "minLength": 1,
12959
- "items": {
12960
- "type": "string"
12961
- }
13249
+ "title": {
13250
+ "type": "string",
13251
+ "description": "Title of the section",
13252
+ "maxLength": 64
12962
13253
  }
12963
13254
  },
12964
13255
  "required": [
12965
- "query"
13256
+ "spaceId"
12966
13257
  ]
12967
13258
  }
12968
13259
  }
12969
13260
  }
12970
13261
  },
13262
+ "responses": {
13263
+ "201": {
13264
+ "description": "Section added to the site",
13265
+ "headers": {
13266
+ "Location": {
13267
+ "description": "API URL for the newly created site-section relationship",
13268
+ "schema": {
13269
+ "type": "string"
13270
+ }
13271
+ }
13272
+ },
13273
+ "content": {
13274
+ "application/json": {
13275
+ "schema": {
13276
+ "$ref": "#/components/schemas/SiteSection"
13277
+ }
13278
+ }
13279
+ }
13280
+ },
13281
+ "default": {
13282
+ "$ref": "#/components/responses/UnexpectedError"
13283
+ }
13284
+ }
13285
+ },
13286
+ "get": {
13287
+ "operationId": "listSiteSections",
13288
+ "summary": "List all the site sections under a site in an organization",
13289
+ "tags": [
13290
+ "sites"
13291
+ ],
13292
+ "security": [
13293
+ {
13294
+ "user": []
13295
+ }
13296
+ ],
13297
+ "parameters": [
13298
+ {
13299
+ "$ref": "#/components/parameters/organizationId"
13300
+ },
13301
+ {
13302
+ "$ref": "#/components/parameters/siteId"
13303
+ },
13304
+ {
13305
+ "$ref": "#/components/parameters/siteShareKey"
13306
+ },
13307
+ {
13308
+ "$ref": "#/components/parameters/listPage"
13309
+ },
13310
+ {
13311
+ "$ref": "#/components/parameters/listLimit"
13312
+ }
13313
+ ],
12971
13314
  "responses": {
12972
13315
  "200": {
12973
13316
  "description": "OK",
@@ -12987,7 +13330,7 @@
12987
13330
  "items": {
12988
13331
  "type": "array",
12989
13332
  "items": {
12990
- "$ref": "#/components/schemas/SearchSpaceResult"
13333
+ "$ref": "#/components/schemas/SiteSection"
12991
13334
  }
12992
13335
  }
12993
13336
  }
@@ -13003,10 +13346,10 @@
13003
13346
  }
13004
13347
  }
13005
13348
  },
13006
- "/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}": {
13349
+ "/orgs/{organizationId}/sites/{siteId}/sections/{siteSectionId}": {
13007
13350
  "patch": {
13008
- "operationId": "updateSiteSpaceById",
13009
- "summary": "Update a space on a site in an organization",
13351
+ "operationId": "updateSiteSectionById",
13352
+ "summary": "Update a section on a site in an organization",
13010
13353
  "tags": [
13011
13354
  "sites"
13012
13355
  ],
@@ -13023,7 +13366,7 @@
13023
13366
  "$ref": "#/components/parameters/siteId"
13024
13367
  },
13025
13368
  {
13026
- "$ref": "#/components/parameters/siteSpaceId"
13369
+ "$ref": "#/components/parameters/siteSectionId"
13027
13370
  }
13028
13371
  ],
13029
13372
  "requestBody": {
@@ -13034,7 +13377,7 @@
13034
13377
  "type": "object",
13035
13378
  "properties": {
13036
13379
  "path": {
13037
- "$ref": "#/components/schemas/SiteSpacePath"
13380
+ "$ref": "#/components/schemas/SiteSectionPath"
13038
13381
  }
13039
13382
  }
13040
13383
  }
@@ -13047,7 +13390,7 @@
13047
13390
  "content": {
13048
13391
  "application/json": {
13049
13392
  "schema": {
13050
- "$ref": "#/components/schemas/SiteSpace"
13393
+ "$ref": "#/components/schemas/SiteSection"
13051
13394
  }
13052
13395
  }
13053
13396
  }
@@ -13058,8 +13401,8 @@
13058
13401
  }
13059
13402
  },
13060
13403
  "delete": {
13061
- "operationId": "deleteSiteSpaceById",
13062
- "summary": "Delete a space on a site in an organization",
13404
+ "operationId": "deleteSiteSectionById",
13405
+ "summary": "Delete a section on a site in an organization",
13063
13406
  "tags": [
13064
13407
  "sites"
13065
13408
  ],
@@ -13076,12 +13419,12 @@
13076
13419
  "$ref": "#/components/parameters/siteId"
13077
13420
  },
13078
13421
  {
13079
- "$ref": "#/components/parameters/siteSpaceId"
13422
+ "$ref": "#/components/parameters/siteSectionId"
13080
13423
  }
13081
13424
  ],
13082
13425
  "responses": {
13083
13426
  "205": {
13084
- "description": "Site space has been deleted"
13427
+ "description": "Site section has been deleted"
13085
13428
  },
13086
13429
  "default": {
13087
13430
  "$ref": "#/components/responses/UnexpectedError"
@@ -13089,13 +13432,10 @@
13089
13432
  }
13090
13433
  }
13091
13434
  },
13092
- "/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}/customization": {
13093
- "get": {
13094
- "operationId": "getSiteSpaceCustomizationById",
13095
- "summary": "Get the customization configuration for a site space.",
13096
- "tags": [
13097
- "sites"
13098
- ],
13435
+ "/orgs/{organizationId}/sites/{siteId}/search": {
13436
+ "post": {
13437
+ "operationId": "searchSiteContent",
13438
+ "summary": "Search content in a site",
13099
13439
  "security": [
13100
13440
  {
13101
13441
  "user": []
@@ -13109,34 +13449,76 @@
13109
13449
  "$ref": "#/components/parameters/siteId"
13110
13450
  },
13111
13451
  {
13112
- "$ref": "#/components/parameters/siteSpaceId"
13452
+ "$ref": "#/components/parameters/listPage"
13113
13453
  },
13114
13454
  {
13115
- "$ref": "#/components/parameters/siteCustomizationUnmasked"
13455
+ "$ref": "#/components/parameters/listLimit"
13116
13456
  }
13117
13457
  ],
13458
+ "requestBody": {
13459
+ "required": true,
13460
+ "content": {
13461
+ "application/json": {
13462
+ "schema": {
13463
+ "type": "object",
13464
+ "properties": {
13465
+ "query": {
13466
+ "type": "string"
13467
+ },
13468
+ "siteSpaceIds": {
13469
+ "type": "array",
13470
+ "minLength": 1,
13471
+ "items": {
13472
+ "type": "string"
13473
+ }
13474
+ }
13475
+ },
13476
+ "required": [
13477
+ "query"
13478
+ ]
13479
+ }
13480
+ }
13481
+ }
13482
+ },
13118
13483
  "responses": {
13119
13484
  "200": {
13120
13485
  "description": "OK",
13121
13486
  "content": {
13122
13487
  "application/json": {
13123
13488
  "schema": {
13124
- "$ref": "#/components/schemas/SiteCustomizationSettings"
13489
+ "allOf": [
13490
+ {
13491
+ "$ref": "#/components/schemas/List"
13492
+ },
13493
+ {
13494
+ "type": "object",
13495
+ "required": [
13496
+ "items"
13497
+ ],
13498
+ "properties": {
13499
+ "items": {
13500
+ "type": "array",
13501
+ "items": {
13502
+ "$ref": "#/components/schemas/SearchSpaceResult"
13503
+ }
13504
+ }
13505
+ }
13506
+ }
13507
+ ]
13125
13508
  }
13126
13509
  }
13127
13510
  }
13128
13511
  },
13129
- "400": {
13130
- "$ref": "#/components/responses/BadRequestError"
13131
- },
13132
13512
  "default": {
13133
13513
  "$ref": "#/components/responses/UnexpectedError"
13134
13514
  }
13135
13515
  }
13136
- },
13516
+ }
13517
+ },
13518
+ "/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}": {
13137
13519
  "patch": {
13138
- "operationId": "overrideSiteSpaceCustomizationById",
13139
- "summary": "Override the customization configuration for a site space.",
13520
+ "operationId": "updateSiteSpaceById",
13521
+ "summary": "Update a space on a site in an organization",
13140
13522
  "tags": [
13141
13523
  "sites"
13142
13524
  ],
@@ -13161,8 +13543,12 @@
13161
13543
  "content": {
13162
13544
  "application/json": {
13163
13545
  "schema": {
13164
- "description": "The settings that overrides the site customization settings.",
13165
- "$ref": "#/components/schemas/SiteSpaceCustomizationOverrides"
13546
+ "type": "object",
13547
+ "properties": {
13548
+ "path": {
13549
+ "$ref": "#/components/schemas/SiteSpacePath"
13550
+ }
13551
+ }
13166
13552
  }
13167
13553
  }
13168
13554
  }
@@ -13173,85 +13559,20 @@
13173
13559
  "content": {
13174
13560
  "application/json": {
13175
13561
  "schema": {
13176
- "$ref": "#/components/schemas/SiteCustomizationSettings"
13562
+ "$ref": "#/components/schemas/SiteSpace"
13177
13563
  }
13178
13564
  }
13179
13565
  }
13180
13566
  },
13181
- "400": {
13182
- "$ref": "#/components/responses/BadRequestError"
13183
- },
13184
- "default": {
13185
- "$ref": "#/components/responses/UnexpectedError"
13186
- }
13187
- }
13188
- }
13189
- },
13190
- "/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}/customization/raw": {
13191
- "get": {
13192
- "operationId": "getSiteSpaceRawCustomizationById",
13193
- "summary": "Get the raw customization settings of a site space.",
13194
- "tags": [
13195
- "sites"
13196
- ],
13197
- "security": [
13198
- {
13199
- "user-internal": []
13200
- }
13201
- ],
13202
- "parameters": [
13203
- {
13204
- "$ref": "#/components/parameters/organizationId"
13205
- },
13206
- {
13207
- "$ref": "#/components/parameters/siteId"
13208
- },
13209
- {
13210
- "$ref": "#/components/parameters/siteSpaceId"
13211
- }
13212
- ],
13213
- "responses": {
13214
- "200": {
13215
- "description": "OK",
13216
- "content": {
13217
- "application/json": {
13218
- "schema": {
13219
- "allOf": [
13220
- {
13221
- "$ref": "#/components/schemas/SiteCustomizationSettings"
13222
- },
13223
- {
13224
- "type": "object",
13225
- "properties": {
13226
- "hasOverrides": {
13227
- "type": "boolean",
13228
- "description": "Indicates whether the site customization settings have been overridden."
13229
- }
13230
- },
13231
- "required": [
13232
- "hasOverrides"
13233
- ]
13234
- }
13235
- ]
13236
- }
13237
- }
13238
- }
13239
- },
13240
- "400": {
13241
- "$ref": "#/components/responses/BadRequestError"
13242
- },
13243
13567
  "default": {
13244
13568
  "$ref": "#/components/responses/UnexpectedError"
13245
13569
  }
13246
13570
  }
13247
- }
13248
- },
13249
- "/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}/insights/content": {
13250
- "get": {
13251
- "operationId": "getContentAnalyticsForSiteSpaceById",
13252
- "summary": "Get page traffic and ratings for a given site space.",
13571
+ },
13572
+ "delete": {
13573
+ "operationId": "deleteSiteSpaceById",
13574
+ "summary": "Delete a space on a site in an organization",
13253
13575
  "tags": [
13254
- "analytics",
13255
13576
  "sites"
13256
13577
  ],
13257
13578
  "security": [
@@ -13271,15 +13592,8 @@
13271
13592
  }
13272
13593
  ],
13273
13594
  "responses": {
13274
- "200": {
13275
- "description": "Content analytics per page.",
13276
- "content": {
13277
- "application/json": {
13278
- "schema": {
13279
- "$ref": "#/components/schemas/AnalyticsContentPages"
13280
- }
13281
- }
13282
- }
13595
+ "205": {
13596
+ "description": "Site space has been deleted"
13283
13597
  },
13284
13598
  "default": {
13285
13599
  "$ref": "#/components/responses/UnexpectedError"
@@ -13287,10 +13601,10 @@
13287
13601
  }
13288
13602
  }
13289
13603
  },
13290
- "/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}/insights/pages/{pageId}/feedbacks/{visitorId}": {
13291
- "put": {
13292
- "operationId": "createSitesPageFeedback",
13293
- "summary": "Create a page feedback by a visitor on a site.",
13604
+ "/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}/customization": {
13605
+ "get": {
13606
+ "operationId": "getSiteSpaceCustomizationById",
13607
+ "summary": "Get the customization configuration for a site space.",
13294
13608
  "tags": [
13295
13609
  "sites"
13296
13610
  ],
@@ -13310,69 +13624,31 @@
13310
13624
  "$ref": "#/components/parameters/siteSpaceId"
13311
13625
  },
13312
13626
  {
13313
- "$ref": "#/components/parameters/pageId"
13314
- },
13315
- {
13316
- "$ref": "#/components/parameters/visitorId"
13627
+ "$ref": "#/components/parameters/siteCustomizationUnmasked"
13317
13628
  }
13318
13629
  ],
13319
- "requestBody": {
13320
- "required": true,
13321
- "content": {
13322
- "application/json": {
13323
- "schema": {
13324
- "type": "object",
13325
- "properties": {
13326
- "rating": {
13327
- "$ref": "#/components/schemas/PageFeedbackRating"
13328
- }
13329
- },
13330
- "required": [
13331
- "rating"
13332
- ]
13333
- }
13334
- }
13335
- }
13336
- },
13337
13630
  "responses": {
13338
13631
  "200": {
13339
- "description": "Feedback updated",
13632
+ "description": "OK",
13340
13633
  "content": {
13341
13634
  "application/json": {
13342
13635
  "schema": {
13343
- "$ref": "#/components/schemas/PageFeedback"
13636
+ "$ref": "#/components/schemas/SiteCustomizationSettings"
13344
13637
  }
13345
13638
  }
13346
13639
  }
13347
13640
  },
13348
- "201": {
13349
- "description": "Feedback created",
13350
- "headers": {
13351
- "Location": {
13352
- "description": "URL for the feedback",
13353
- "schema": {
13354
- "type": "string"
13355
- }
13356
- }
13357
- },
13358
- "content": {
13359
- "application/json": {
13360
- "schema": {
13361
- "$ref": "#/components/schemas/PageFeedback"
13362
- }
13363
- }
13364
- }
13641
+ "400": {
13642
+ "$ref": "#/components/responses/BadRequestError"
13365
13643
  },
13366
13644
  "default": {
13367
13645
  "$ref": "#/components/responses/UnexpectedError"
13368
13646
  }
13369
13647
  }
13370
- }
13371
- },
13372
- "/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}/move": {
13373
- "post": {
13374
- "operationId": "moveSiteSpace",
13375
- "summary": "Move a site space to a new position in the site.",
13648
+ },
13649
+ "patch": {
13650
+ "operationId": "overrideSiteSpaceCustomizationById",
13651
+ "summary": "Override the customization configuration for a site space.",
13376
13652
  "tags": [
13377
13653
  "sites"
13378
13654
  ],
@@ -13393,108 +13669,754 @@
13393
13669
  }
13394
13670
  ],
13395
13671
  "requestBody": {
13672
+ "required": true,
13396
13673
  "content": {
13397
13674
  "application/json": {
13398
13675
  "schema": {
13676
+ "description": "The settings that overrides the site customization settings.",
13399
13677
  "type": "object",
13400
13678
  "properties": {
13401
- "position": {
13402
- "description": "The position where to move the site space. When not provided the site space is moved at the end of the site.",
13403
- "$ref": "#/components/schemas/SiteSpaceMovePosition"
13404
- }
13405
- }
13406
- }
13407
- }
13408
- }
13409
- },
13410
- "responses": {
13411
- "200": {
13412
- "description": "Site space moved",
13413
- "content": {
13414
- "application/json": {
13415
- "schema": {
13416
- "$ref": "#/components/schemas/SiteSpace"
13417
- }
13418
- }
13419
- }
13420
- },
13421
- "400": {
13422
- "description": "Invalid move site space position provided",
13423
- "$ref": "#/components/responses/BadRequestError"
13424
- },
13425
- "404": {
13426
- "description": "No matching Site space found",
13427
- "$ref": "#/components/responses/NotFoundError"
13428
- },
13429
- "default": {
13430
- "$ref": "#/components/responses/UnexpectedError"
13431
- }
13432
- }
13433
- }
13434
- },
13435
- "/orgs/{organizationId}/sites/{siteId}/permissions/aggregate": {
13436
- "get": {
13437
- "operationId": "listPermissionsAggregateInSite",
13438
- "summary": "List permissions for all users of a site.",
13439
- "tags": [
13440
- "permissions",
13441
- "sites"
13442
- ],
13443
- "security": [
13444
- {
13445
- "user": []
13446
- }
13447
- ],
13448
- "parameters": [
13449
- {
13450
- "$ref": "#/components/parameters/organizationId"
13451
- },
13452
- {
13453
- "$ref": "#/components/parameters/siteId"
13454
- },
13455
- {
13456
- "$ref": "#/components/parameters/listPage"
13457
- },
13458
- {
13459
- "$ref": "#/components/parameters/listLimit"
13460
- }
13461
- ],
13462
- "responses": {
13463
- "200": {
13464
- "description": "Listing of users who can access the site.",
13465
- "content": {
13466
- "application/json": {
13467
- "schema": {
13468
- "allOf": [
13469
- {
13470
- "$ref": "#/components/schemas/List"
13471
- },
13472
- {
13473
- "type": "object",
13474
- "required": [
13475
- "items"
13476
- ],
13477
- "properties": {
13478
- "items": {
13479
- "type": "array",
13480
- "items": {
13481
- "$ref": "#/components/schemas/UserSitePermission"
13482
- }
13483
- }
13679
+ "title": {
13680
+ "description": "Title to use for the published site variant. If not defined, the title will not be changed. If set to null, the title will be unset and will fallback to the content title.",
13681
+ "oneOf": [
13682
+ {
13683
+ "$ref": "#/components/schemas/SiteTitle"
13684
+ },
13685
+ {
13686
+ "type": "string",
13687
+ "nullable": true,
13688
+ "enum": [
13689
+ null
13690
+ ]
13484
13691
  }
13485
- }
13486
- ]
13487
- }
13488
- }
13489
- }
13490
- },
13491
- "default": {
13492
- "$ref": "#/components/responses/UnexpectedError"
13493
- }
13494
- }
13495
- }
13496
- },
13497
- "/orgs/{organizationId}/sites/{siteId}/insights/track_view": {
13692
+ ]
13693
+ },
13694
+ "styling": {
13695
+ "type": "object",
13696
+ "properties": {
13697
+ "primaryColor": {
13698
+ "description": "The primary color used for links and UI text. Set to null to reset the override.",
13699
+ "oneOf": [
13700
+ {
13701
+ "$ref": "#/components/schemas/CustomizationThemedColor"
13702
+ },
13703
+ {
13704
+ "type": "string",
13705
+ "nullable": true,
13706
+ "enum": [
13707
+ null
13708
+ ]
13709
+ }
13710
+ ]
13711
+ },
13712
+ "corners": {
13713
+ "description": "The style of the corners to use. Set to null to reset the override.",
13714
+ "oneOf": [
13715
+ {
13716
+ "$ref": "#/components/schemas/CustomizationCorners"
13717
+ },
13718
+ {
13719
+ "type": "string",
13720
+ "nullable": true,
13721
+ "enum": [
13722
+ null
13723
+ ]
13724
+ }
13725
+ ]
13726
+ },
13727
+ "font": {
13728
+ "description": "The font family to use for the content. Set to null to reset the override.",
13729
+ "oneOf": [
13730
+ {
13731
+ "$ref": "#/components/schemas/CustomizationFont"
13732
+ },
13733
+ {
13734
+ "type": "string",
13735
+ "nullable": true,
13736
+ "enum": [
13737
+ null
13738
+ ]
13739
+ }
13740
+ ]
13741
+ },
13742
+ "icons": {
13743
+ "description": "The icons style to use for the content. Set to null to reset the override.",
13744
+ "oneOf": [
13745
+ {
13746
+ "$ref": "#/components/schemas/CustomizationIconsStyle"
13747
+ },
13748
+ {
13749
+ "type": "string",
13750
+ "nullable": true,
13751
+ "enum": [
13752
+ null
13753
+ ]
13754
+ }
13755
+ ]
13756
+ },
13757
+ "background": {
13758
+ "description": "The style of background to use. Set to null to reset the override.",
13759
+ "oneOf": [
13760
+ {
13761
+ "$ref": "#/components/schemas/CustomizationBackground"
13762
+ },
13763
+ {
13764
+ "type": "string",
13765
+ "nullable": true,
13766
+ "enum": [
13767
+ null
13768
+ ]
13769
+ }
13770
+ ]
13771
+ }
13772
+ }
13773
+ },
13774
+ "internationalization": {
13775
+ "type": "object",
13776
+ "properties": {
13777
+ "locale": {
13778
+ "description": "The locale to use for the non-custom elements of the UI. Set to null to reset the override.",
13779
+ "oneOf": [
13780
+ {
13781
+ "$ref": "#/components/schemas/CustomizationLocale"
13782
+ },
13783
+ {
13784
+ "type": "string",
13785
+ "nullable": true,
13786
+ "enum": [
13787
+ null
13788
+ ]
13789
+ }
13790
+ ]
13791
+ }
13792
+ },
13793
+ "required": [
13794
+ "locale"
13795
+ ]
13796
+ },
13797
+ "favicon": {
13798
+ "description": "The favicon to use. Set to null to reset the override.",
13799
+ "oneOf": [
13800
+ {
13801
+ "type": "object",
13802
+ "properties": {
13803
+ "icon": {
13804
+ "$ref": "#/components/schemas/CustomizationThemedURL"
13805
+ }
13806
+ },
13807
+ "required": [
13808
+ "icon"
13809
+ ]
13810
+ },
13811
+ {
13812
+ "type": "object",
13813
+ "properties": {
13814
+ "emoji": {
13815
+ "$ref": "#/components/schemas/Emoji"
13816
+ }
13817
+ },
13818
+ "required": [
13819
+ "emoji"
13820
+ ]
13821
+ },
13822
+ {
13823
+ "type": "object",
13824
+ "nullable": true,
13825
+ "properties": {},
13826
+ "additionalProperties": false
13827
+ }
13828
+ ]
13829
+ },
13830
+ "header": {
13831
+ "type": "object",
13832
+ "properties": {
13833
+ "preset": {
13834
+ "description": "The theme preset to use. Set to null to reset the override.",
13835
+ "oneOf": [
13836
+ {
13837
+ "$ref": "#/components/schemas/CustomizationHeaderPreset"
13838
+ },
13839
+ {
13840
+ "type": "string",
13841
+ "nullable": true,
13842
+ "enum": [
13843
+ null
13844
+ ]
13845
+ }
13846
+ ]
13847
+ },
13848
+ "logo": {
13849
+ "description": "The header logo to use. Set to null to reset the override.",
13850
+ "oneOf": [
13851
+ {
13852
+ "$ref": "#/components/schemas/CustomizationThemedURL"
13853
+ },
13854
+ {
13855
+ "type": "string",
13856
+ "nullable": true,
13857
+ "enum": [
13858
+ null
13859
+ ]
13860
+ }
13861
+ ]
13862
+ },
13863
+ "backgroundColor": {
13864
+ "description": "The background color used in the header. Set to null to reset the override.",
13865
+ "oneOf": [
13866
+ {
13867
+ "$ref": "#/components/schemas/CustomizationThemedColor"
13868
+ },
13869
+ {
13870
+ "type": "string",
13871
+ "nullable": true,
13872
+ "enum": [
13873
+ null
13874
+ ]
13875
+ }
13876
+ ]
13877
+ },
13878
+ "linkColor": {
13879
+ "description": "The color used by the links in the header. Set to null to reset the override.",
13880
+ "oneOf": [
13881
+ {
13882
+ "$ref": "#/components/schemas/CustomizationThemedColor"
13883
+ },
13884
+ {
13885
+ "type": "string",
13886
+ "nullable": true,
13887
+ "enum": [
13888
+ null
13889
+ ]
13890
+ }
13891
+ ]
13892
+ },
13893
+ "links": {
13894
+ "type": "array",
13895
+ "description": "The links that are displayed in the header. Set to null to reset the override.",
13896
+ "nullable": true,
13897
+ "items": {
13898
+ "$ref": "#/components/schemas/CustomizationHeaderLink"
13899
+ }
13900
+ }
13901
+ }
13902
+ },
13903
+ "footer": {
13904
+ "type": "object",
13905
+ "properties": {
13906
+ "logo": {
13907
+ "description": "The logo displayed in the footer. Set to null to reset the override.",
13908
+ "oneOf": [
13909
+ {
13910
+ "$ref": "#/components/schemas/CustomizationThemedURL"
13911
+ },
13912
+ {
13913
+ "type": "string",
13914
+ "nullable": true,
13915
+ "enum": [
13916
+ null
13917
+ ]
13918
+ }
13919
+ ]
13920
+ },
13921
+ "groups": {
13922
+ "type": "array",
13923
+ "description": "The links groups that are displayed in the footer. Set to null to reset the override.",
13924
+ "nullable": true,
13925
+ "items": {
13926
+ "$ref": "#/components/schemas/CustomizationFooterGroup"
13927
+ }
13928
+ },
13929
+ "copyright": {
13930
+ "type": "string",
13931
+ "description": "The copyright text that is displayed in the footer. Set to null to reset the override.",
13932
+ "nullable": true,
13933
+ "maxLength": 300
13934
+ }
13935
+ }
13936
+ },
13937
+ "themes": {
13938
+ "type": "object",
13939
+ "properties": {
13940
+ "default": {
13941
+ "description": "The theme mode default value. Set to null to reset the override.",
13942
+ "oneOf": [
13943
+ {
13944
+ "$ref": "#/components/schemas/CustomizationThemeMode"
13945
+ },
13946
+ {
13947
+ "type": "string",
13948
+ "nullable": true,
13949
+ "enum": [
13950
+ null
13951
+ ]
13952
+ }
13953
+ ]
13954
+ },
13955
+ "toggeable": {
13956
+ "description": "Should the reader be able to switch between dark and light mode. Set to null to reset the override.",
13957
+ "type": "boolean",
13958
+ "nullable": true
13959
+ }
13960
+ }
13961
+ },
13962
+ "pdf": {
13963
+ "type": "object",
13964
+ "properties": {
13965
+ "enabled": {
13966
+ "type": "boolean",
13967
+ "description": "If true, PDF export is enabled for the published site. Set to null to reset the override.",
13968
+ "nullable": true
13969
+ }
13970
+ },
13971
+ "required": [
13972
+ "enabled"
13973
+ ]
13974
+ },
13975
+ "feedback": {
13976
+ "type": "object",
13977
+ "properties": {
13978
+ "enabled": {
13979
+ "type": "boolean",
13980
+ "description": "If true, feedback gathering is enabled. Set to null to reset the override.",
13981
+ "nullable": true
13982
+ }
13983
+ },
13984
+ "required": [
13985
+ "enabled"
13986
+ ]
13987
+ },
13988
+ "aiSearch": {
13989
+ "type": "object",
13990
+ "properties": {
13991
+ "enabled": {
13992
+ "type": "boolean",
13993
+ "description": "If true, AI search is enabled. Set to null to reset the override.",
13994
+ "nullable": true
13995
+ }
13996
+ },
13997
+ "required": [
13998
+ "enabled"
13999
+ ]
14000
+ },
14001
+ "git": {
14002
+ "type": "object",
14003
+ "properties": {
14004
+ "showEditLink": {
14005
+ "type": "boolean",
14006
+ "description": "Whether the published site should show a link to edit the content on the git provider set up in the Git Sync. Set to null to reset the override.",
14007
+ "nullable": true
14008
+ }
14009
+ },
14010
+ "required": [
14011
+ "showEditLink"
14012
+ ]
14013
+ },
14014
+ "pagination": {
14015
+ "type": "object",
14016
+ "properties": {
14017
+ "enabled": {
14018
+ "type": "boolean",
14019
+ "description": "Whether the pagination navigation should be displayed on pages. Set to null to reset the override.",
14020
+ "nullable": true
14021
+ }
14022
+ },
14023
+ "required": [
14024
+ "enabled"
14025
+ ]
14026
+ },
14027
+ "trademark": {
14028
+ "type": "object",
14029
+ "properties": {
14030
+ "enabled": {
14031
+ "type": "boolean",
14032
+ "description": "Whether the GitBook trademark (\"Powered by GitBook\") should be visible. Set to null to reset the override.",
14033
+ "nullable": true
14034
+ }
14035
+ },
14036
+ "required": [
14037
+ "enabled"
14038
+ ]
14039
+ },
14040
+ "privacyPolicy": {
14041
+ "type": "object",
14042
+ "properties": {
14043
+ "url": {
14044
+ "description": "The custom link to the privacy policy. Set to null to reset the override.",
14045
+ "oneOf": [
14046
+ {
14047
+ "$ref": "#/components/schemas/URL"
14048
+ },
14049
+ {
14050
+ "type": "string",
14051
+ "nullable": true,
14052
+ "enum": [
14053
+ null
14054
+ ]
14055
+ }
14056
+ ]
14057
+ }
14058
+ }
14059
+ },
14060
+ "socialPreview": {
14061
+ "type": "object",
14062
+ "properties": {
14063
+ "url": {
14064
+ "description": "The URL for the social preview image. Set to null to reset the override.",
14065
+ "oneOf": [
14066
+ {
14067
+ "$ref": "#/components/schemas/URL"
14068
+ },
14069
+ {
14070
+ "type": "string",
14071
+ "nullable": true,
14072
+ "enum": [
14073
+ null
14074
+ ]
14075
+ }
14076
+ ]
14077
+ }
14078
+ }
14079
+ }
14080
+ }
14081
+ }
14082
+ }
14083
+ }
14084
+ },
14085
+ "responses": {
14086
+ "200": {
14087
+ "description": "OK",
14088
+ "content": {
14089
+ "application/json": {
14090
+ "schema": {
14091
+ "$ref": "#/components/schemas/SiteCustomizationSettings"
14092
+ }
14093
+ }
14094
+ }
14095
+ },
14096
+ "400": {
14097
+ "$ref": "#/components/responses/BadRequestError"
14098
+ },
14099
+ "default": {
14100
+ "$ref": "#/components/responses/UnexpectedError"
14101
+ }
14102
+ }
14103
+ }
14104
+ },
14105
+ "/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}/customization/raw": {
14106
+ "get": {
14107
+ "operationId": "getSiteSpaceRawCustomizationById",
14108
+ "summary": "Get the raw customization settings of a site space.",
14109
+ "tags": [
14110
+ "sites"
14111
+ ],
14112
+ "security": [
14113
+ {
14114
+ "user-internal": []
14115
+ }
14116
+ ],
14117
+ "parameters": [
14118
+ {
14119
+ "$ref": "#/components/parameters/organizationId"
14120
+ },
14121
+ {
14122
+ "$ref": "#/components/parameters/siteId"
14123
+ },
14124
+ {
14125
+ "$ref": "#/components/parameters/siteSpaceId"
14126
+ }
14127
+ ],
14128
+ "responses": {
14129
+ "200": {
14130
+ "description": "OK",
14131
+ "content": {
14132
+ "application/json": {
14133
+ "schema": {
14134
+ "allOf": [
14135
+ {
14136
+ "$ref": "#/components/schemas/SiteCustomizationSettings"
14137
+ },
14138
+ {
14139
+ "type": "object",
14140
+ "properties": {
14141
+ "hasOverrides": {
14142
+ "type": "boolean",
14143
+ "description": "Indicates whether the site customization settings have been overridden."
14144
+ }
14145
+ },
14146
+ "required": [
14147
+ "hasOverrides"
14148
+ ]
14149
+ }
14150
+ ]
14151
+ }
14152
+ }
14153
+ }
14154
+ },
14155
+ "400": {
14156
+ "$ref": "#/components/responses/BadRequestError"
14157
+ },
14158
+ "default": {
14159
+ "$ref": "#/components/responses/UnexpectedError"
14160
+ }
14161
+ }
14162
+ }
14163
+ },
14164
+ "/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}/insights/content": {
14165
+ "get": {
14166
+ "operationId": "getContentAnalyticsForSiteSpaceById",
14167
+ "summary": "Get page traffic and ratings for a given site space.",
14168
+ "tags": [
14169
+ "analytics",
14170
+ "sites"
14171
+ ],
14172
+ "security": [
14173
+ {
14174
+ "user": []
14175
+ }
14176
+ ],
14177
+ "parameters": [
14178
+ {
14179
+ "$ref": "#/components/parameters/organizationId"
14180
+ },
14181
+ {
14182
+ "$ref": "#/components/parameters/siteId"
14183
+ },
14184
+ {
14185
+ "$ref": "#/components/parameters/siteSpaceId"
14186
+ },
14187
+ {
14188
+ "name": "period",
14189
+ "in": "query",
14190
+ "schema": {
14191
+ "$ref": "#/components/schemas/AnalyticsSearchPeriod"
14192
+ }
14193
+ }
14194
+ ],
14195
+ "responses": {
14196
+ "200": {
14197
+ "description": "Content analytics per page.",
14198
+ "content": {
14199
+ "application/json": {
14200
+ "schema": {
14201
+ "$ref": "#/components/schemas/AnalyticsContentPages"
14202
+ }
14203
+ }
14204
+ }
14205
+ },
14206
+ "default": {
14207
+ "$ref": "#/components/responses/UnexpectedError"
14208
+ }
14209
+ }
14210
+ }
14211
+ },
14212
+ "/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}/insights/pages/{pageId}/feedbacks/{visitorId}": {
14213
+ "put": {
14214
+ "operationId": "createSitesPageFeedback",
14215
+ "summary": "Create a page feedback by a visitor on a site.",
14216
+ "tags": [
14217
+ "sites"
14218
+ ],
14219
+ "security": [
14220
+ {
14221
+ "user": []
14222
+ }
14223
+ ],
14224
+ "parameters": [
14225
+ {
14226
+ "$ref": "#/components/parameters/organizationId"
14227
+ },
14228
+ {
14229
+ "$ref": "#/components/parameters/siteId"
14230
+ },
14231
+ {
14232
+ "$ref": "#/components/parameters/siteSpaceId"
14233
+ },
14234
+ {
14235
+ "$ref": "#/components/parameters/pageId"
14236
+ },
14237
+ {
14238
+ "$ref": "#/components/parameters/visitorId"
14239
+ }
14240
+ ],
14241
+ "requestBody": {
14242
+ "required": true,
14243
+ "content": {
14244
+ "application/json": {
14245
+ "schema": {
14246
+ "type": "object",
14247
+ "properties": {
14248
+ "rating": {
14249
+ "$ref": "#/components/schemas/PageFeedbackRating"
14250
+ }
14251
+ },
14252
+ "required": [
14253
+ "rating"
14254
+ ]
14255
+ }
14256
+ }
14257
+ }
14258
+ },
14259
+ "responses": {
14260
+ "200": {
14261
+ "description": "Feedback updated",
14262
+ "content": {
14263
+ "application/json": {
14264
+ "schema": {
14265
+ "$ref": "#/components/schemas/PageFeedback"
14266
+ }
14267
+ }
14268
+ }
14269
+ },
14270
+ "201": {
14271
+ "description": "Feedback created",
14272
+ "headers": {
14273
+ "Location": {
14274
+ "description": "URL for the feedback",
14275
+ "schema": {
14276
+ "type": "string"
14277
+ }
14278
+ }
14279
+ },
14280
+ "content": {
14281
+ "application/json": {
14282
+ "schema": {
14283
+ "$ref": "#/components/schemas/PageFeedback"
14284
+ }
14285
+ }
14286
+ }
14287
+ },
14288
+ "default": {
14289
+ "$ref": "#/components/responses/UnexpectedError"
14290
+ }
14291
+ }
14292
+ }
14293
+ },
14294
+ "/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}/move": {
14295
+ "post": {
14296
+ "operationId": "moveSiteSpace",
14297
+ "summary": "Move a site space to a new position in the site.",
14298
+ "tags": [
14299
+ "sites"
14300
+ ],
14301
+ "security": [
14302
+ {
14303
+ "user": []
14304
+ }
14305
+ ],
14306
+ "parameters": [
14307
+ {
14308
+ "$ref": "#/components/parameters/organizationId"
14309
+ },
14310
+ {
14311
+ "$ref": "#/components/parameters/siteId"
14312
+ },
14313
+ {
14314
+ "$ref": "#/components/parameters/siteSpaceId"
14315
+ }
14316
+ ],
14317
+ "requestBody": {
14318
+ "content": {
14319
+ "application/json": {
14320
+ "schema": {
14321
+ "type": "object",
14322
+ "properties": {
14323
+ "position": {
14324
+ "description": "The position where to move the site space. When not provided the site space is moved at the end of the site.",
14325
+ "$ref": "#/components/schemas/SiteSpaceMovePosition"
14326
+ }
14327
+ }
14328
+ }
14329
+ }
14330
+ }
14331
+ },
14332
+ "responses": {
14333
+ "200": {
14334
+ "description": "Site space moved",
14335
+ "content": {
14336
+ "application/json": {
14337
+ "schema": {
14338
+ "$ref": "#/components/schemas/SiteSpace"
14339
+ }
14340
+ }
14341
+ }
14342
+ },
14343
+ "400": {
14344
+ "description": "Invalid move site space position provided",
14345
+ "$ref": "#/components/responses/BadRequestError"
14346
+ },
14347
+ "404": {
14348
+ "description": "No matching Site space found",
14349
+ "$ref": "#/components/responses/NotFoundError"
14350
+ },
14351
+ "default": {
14352
+ "$ref": "#/components/responses/UnexpectedError"
14353
+ }
14354
+ }
14355
+ }
14356
+ },
14357
+ "/orgs/{organizationId}/sites/{siteId}/permissions/aggregate": {
14358
+ "get": {
14359
+ "operationId": "listPermissionsAggregateInSite",
14360
+ "summary": "List permissions for all users of a site.",
14361
+ "tags": [
14362
+ "permissions",
14363
+ "sites"
14364
+ ],
14365
+ "security": [
14366
+ {
14367
+ "user": []
14368
+ }
14369
+ ],
14370
+ "parameters": [
14371
+ {
14372
+ "$ref": "#/components/parameters/organizationId"
14373
+ },
14374
+ {
14375
+ "$ref": "#/components/parameters/siteId"
14376
+ },
14377
+ {
14378
+ "$ref": "#/components/parameters/listPage"
14379
+ },
14380
+ {
14381
+ "$ref": "#/components/parameters/listLimit"
14382
+ }
14383
+ ],
14384
+ "responses": {
14385
+ "200": {
14386
+ "description": "Listing of users who can access the site.",
14387
+ "content": {
14388
+ "application/json": {
14389
+ "schema": {
14390
+ "allOf": [
14391
+ {
14392
+ "$ref": "#/components/schemas/List"
14393
+ },
14394
+ {
14395
+ "type": "object",
14396
+ "required": [
14397
+ "items"
14398
+ ],
14399
+ "properties": {
14400
+ "items": {
14401
+ "type": "array",
14402
+ "items": {
14403
+ "$ref": "#/components/schemas/UserSitePermission"
14404
+ }
14405
+ }
14406
+ }
14407
+ }
14408
+ ]
14409
+ }
14410
+ }
14411
+ }
14412
+ },
14413
+ "default": {
14414
+ "$ref": "#/components/responses/UnexpectedError"
14415
+ }
14416
+ }
14417
+ }
14418
+ },
14419
+ "/orgs/{organizationId}/sites/{siteId}/insights/track_view": {
13498
14420
  "post": {
13499
14421
  "operationId": "trackViewInSiteById",
13500
14422
  "summary": "Track a page view in a site",
@@ -13531,6 +14453,62 @@
13531
14453
  }
13532
14454
  }
13533
14455
  },
14456
+ "/orgs/{organizationId}/sites/{siteId}/insights/search": {
14457
+ "get": {
14458
+ "operationId": "getSearchAnalyticsForSiteById",
14459
+ "summary": "Get an overview of the top search queries in a site.",
14460
+ "tags": [
14461
+ "analytics",
14462
+ "sites"
14463
+ ],
14464
+ "security": [
14465
+ {
14466
+ "user": []
14467
+ }
14468
+ ],
14469
+ "parameters": [
14470
+ {
14471
+ "$ref": "#/components/parameters/organizationId"
14472
+ },
14473
+ {
14474
+ "$ref": "#/components/parameters/siteId"
14475
+ },
14476
+ {
14477
+ "name": "period",
14478
+ "in": "query",
14479
+ "schema": {
14480
+ "$ref": "#/components/schemas/AnalyticsSearchPeriod"
14481
+ }
14482
+ },
14483
+ {
14484
+ "name": "siteSpaceIds",
14485
+ "in": "query",
14486
+ "schema": {
14487
+ "type": "array",
14488
+ "items": {
14489
+ "type": "string"
14490
+ }
14491
+ },
14492
+ "description": "The site spaces to filter the search on"
14493
+ }
14494
+ ],
14495
+ "responses": {
14496
+ "200": {
14497
+ "description": "Top queries searched on this site.",
14498
+ "content": {
14499
+ "application/json": {
14500
+ "schema": {
14501
+ "$ref": "#/components/schemas/AnalyticsTopSearches"
14502
+ }
14503
+ }
14504
+ }
14505
+ },
14506
+ "default": {
14507
+ "$ref": "#/components/responses/UnexpectedError"
14508
+ }
14509
+ }
14510
+ }
14511
+ },
13534
14512
  "/orgs/{organizationId}/sites/{siteId}/ads": {
13535
14513
  "post": {
13536
14514
  "operationId": "updateSiteAdsById",
@@ -14542,6 +15520,22 @@
14542
15520
  "type": "string"
14543
15521
  }
14544
15522
  },
15523
+ "successReturnURL": {
15524
+ "name": "successReturnURL",
15525
+ "in": "query",
15526
+ "description": "The app screen URL to bring the user back to after a successful checkout.",
15527
+ "schema": {
15528
+ "type": "string"
15529
+ }
15530
+ },
15531
+ "cancelReturnURL": {
15532
+ "name": "cancelReturnURL",
15533
+ "in": "query",
15534
+ "description": "The app screen URL to bring the user back to after a canceled checkout.",
15535
+ "schema": {
15536
+ "type": "string"
15537
+ }
15538
+ },
14545
15539
  "samlProviderId": {
14546
15540
  "name": "samlProviderId",
14547
15541
  "in": "path",
@@ -14593,8 +15587,17 @@
14593
15587
  "description": "(Deprecated) Use the getRawCustomizationSettingsById internal endpoint.",
14594
15588
  "deprecated": true,
14595
15589
  "schema": {
14596
- "type": "boolean",
14597
- "default": false
15590
+ "type": "boolean",
15591
+ "default": false
15592
+ }
15593
+ },
15594
+ "siteSectionId": {
15595
+ "name": "siteSectionId",
15596
+ "in": "path",
15597
+ "required": true,
15598
+ "description": "The unique id of the section within a site",
15599
+ "schema": {
15600
+ "type": "string"
14598
15601
  }
14599
15602
  },
14600
15603
  "siteSpaceId": {
@@ -20869,11 +21872,19 @@
20869
21872
  "type": "string",
20870
21873
  "format": "date-time"
20871
21874
  },
21875
+ "createdBy": {
21876
+ "$ref": "#/components/schemas/User"
21877
+ },
20872
21878
  "title": {
20873
21879
  "type": "string",
20874
21880
  "description": "Title describing the synced block.",
20875
21881
  "maxLength": 100
20876
21882
  },
21883
+ "description": {
21884
+ "type": "string",
21885
+ "description": "Description of the synced block.",
21886
+ "maxLength": 500
21887
+ },
20877
21888
  "usage": {
20878
21889
  "type": "object",
20879
21890
  "description": "Usage of synced block",
@@ -20894,18 +21905,24 @@
20894
21905
  "location": {
20895
21906
  "description": "URL of the synced block in the API",
20896
21907
  "$ref": "#/components/schemas/URL"
21908
+ },
21909
+ "app": {
21910
+ "description": "URL of the synced block in the app",
21911
+ "$ref": "#/components/schemas/URL"
20897
21912
  }
20898
21913
  },
20899
21914
  "required": [
20900
- "location"
21915
+ "location",
21916
+ "app"
20901
21917
  ]
20902
21918
  }
20903
21919
  },
20904
21920
  "required": [
20905
21921
  "id",
20906
21922
  "organization",
20907
- "source",
20908
21923
  "createdAt",
21924
+ "createdBy",
21925
+ "source",
20909
21926
  "usage",
20910
21927
  "urls"
20911
21928
  ]
@@ -20964,6 +21981,67 @@
20964
21981
  "propertyName": "kind"
20965
21982
  }
20966
21983
  },
21984
+ "ContentReferenceStatus": {
21985
+ "type": "string",
21986
+ "enum": [
21987
+ "ok",
21988
+ "broken",
21989
+ "in-app"
21990
+ ],
21991
+ "description": "Text to display to represent the reference. Possible values include:\n- `ok` - No problems detected for this content reference.\n- `broken` - The target does not exist in the revision.\n- `in-app` - The target is a URL link pointing to an internal location in the app.\n"
21992
+ },
21993
+ "ContentReferencesStats": {
21994
+ "type": "object",
21995
+ "properties": {
21996
+ "total": {
21997
+ "description": "Total count of links",
21998
+ "type": "number"
21999
+ },
22000
+ "broken": {
22001
+ "type": "object",
22002
+ "properties": {
22003
+ "total": {
22004
+ "description": "Count of broken links",
22005
+ "type": "number"
22006
+ },
22007
+ "changeRequest": {
22008
+ "description": "Count of broken links that were broken in current change request, if applicable.",
22009
+ "type": "number"
22010
+ }
22011
+ },
22012
+ "required": [
22013
+ "total"
22014
+ ]
22015
+ }
22016
+ },
22017
+ "required": [
22018
+ "total",
22019
+ "broken"
22020
+ ]
22021
+ },
22022
+ "ContentReferenceUsage": {
22023
+ "type": "object",
22024
+ "properties": {
22025
+ "status": {
22026
+ "$ref": "#/components/schemas/ContentReferenceStatus"
22027
+ },
22028
+ "targetReference": {
22029
+ "description": "The reference target where a list of pages are pointing at",
22030
+ "$ref": "#/components/schemas/ContentLocation"
22031
+ },
22032
+ "locationReferences": {
22033
+ "description": "Pages locations where a link to the target is found.",
22034
+ "type": "array",
22035
+ "items": {
22036
+ "$ref": "#/components/schemas/ContentLocation"
22037
+ }
22038
+ }
22039
+ },
22040
+ "required": [
22041
+ "status",
22042
+ "locationReferences"
22043
+ ]
22044
+ },
20967
22045
  "CreateChangeRequest": {
20968
22046
  "type": "object",
20969
22047
  "properties": {
@@ -21353,67 +22431,6 @@
21353
22431
  }
21354
22432
  ]
21355
22433
  },
21356
- "ContentReferenceStatus": {
21357
- "type": "string",
21358
- "enum": [
21359
- "ok",
21360
- "broken",
21361
- "in-app"
21362
- ],
21363
- "description": "Text to display to represent the reference. Possible values include:\n- `ok` - No problems detected for this content reference.\n- `broken` - The target does not exist in the revision.\n- `in-app` - The target is a URL link pointing to an internal location in the app.\n"
21364
- },
21365
- "ContentReferencesStats": {
21366
- "type": "object",
21367
- "properties": {
21368
- "total": {
21369
- "description": "Total count of links",
21370
- "type": "number"
21371
- },
21372
- "broken": {
21373
- "type": "object",
21374
- "properties": {
21375
- "total": {
21376
- "description": "Count of broken links",
21377
- "type": "number"
21378
- },
21379
- "changeRequest": {
21380
- "description": "Count of broken links that were broken in current change request, if applicable.",
21381
- "type": "number"
21382
- }
21383
- },
21384
- "required": [
21385
- "total"
21386
- ]
21387
- }
21388
- },
21389
- "required": [
21390
- "total",
21391
- "broken"
21392
- ]
21393
- },
21394
- "ContentReferenceUsage": {
21395
- "type": "object",
21396
- "properties": {
21397
- "status": {
21398
- "$ref": "#/components/schemas/ContentReferenceStatus"
21399
- },
21400
- "targetReference": {
21401
- "description": "The reference target where a list of pages are pointing at",
21402
- "$ref": "#/components/schemas/ContentLocation"
21403
- },
21404
- "locationReferences": {
21405
- "description": "Pages locations where a link to the target is found.",
21406
- "type": "array",
21407
- "items": {
21408
- "$ref": "#/components/schemas/ContentLocation"
21409
- }
21410
- }
21411
- },
21412
- "required": [
21413
- "status",
21414
- "locationReferences"
21415
- ]
21416
- },
21417
22434
  "PostCommentSchema": {
21418
22435
  "type": "object",
21419
22436
  "properties": {
@@ -22165,6 +23182,7 @@
22165
23182
  "ja",
22166
23183
  "de",
22167
23184
  "nl",
23185
+ "no",
22168
23186
  "pt-br"
22169
23187
  ]
22170
23188
  },
@@ -22216,6 +23234,14 @@
22216
23234
  {
22217
23235
  "type": "object",
22218
23236
  "properties": {
23237
+ "style": {
23238
+ "type": "string",
23239
+ "enum": [
23240
+ "link",
23241
+ "button-primary",
23242
+ "button-secondary"
23243
+ ]
23244
+ },
22219
23245
  "links": {
22220
23246
  "type": "array",
22221
23247
  "items": {
@@ -24301,6 +25327,9 @@
24301
25327
  },
24302
25328
  {
24303
25329
  "$ref": "#/components/schemas/ContentKitLink"
25330
+ },
25331
+ {
25332
+ "$ref": "#/components/schemas/ContentKitStepperStep"
24304
25333
  }
24305
25334
  ],
24306
25335
  "discriminator": {
@@ -25104,6 +26133,43 @@
25104
26133
  "children"
25105
26134
  ]
25106
26135
  },
26136
+ "ContentKitStepperStep": {
26137
+ "type": "object",
26138
+ "properties": {
26139
+ "type": {
26140
+ "type": "string",
26141
+ "enum": [
26142
+ "step"
26143
+ ]
26144
+ },
26145
+ "id": {
26146
+ "description": "unique identifier for the step",
26147
+ "type": "string"
26148
+ },
26149
+ "title": {
26150
+ "description": "title of the step",
26151
+ "type": "string",
26152
+ "maxLength": 50
26153
+ },
26154
+ "next": {
26155
+ "description": "indicates if the user can progress to the next step based on some internal validation or condition",
26156
+ "type": "boolean",
26157
+ "default": false
26158
+ },
26159
+ "children": {
26160
+ "type": "array",
26161
+ "items": {
26162
+ "$ref": "#/components/schemas/ContentKitDescendantElement"
26163
+ },
26164
+ "minItems": 1
26165
+ }
26166
+ },
26167
+ "required": [
26168
+ "type",
26169
+ "id",
26170
+ "children"
26171
+ ]
26172
+ },
25107
26173
  "ContentKitBlockControl": {
25108
26174
  "type": "object",
25109
26175
  "description": "Control menu item displayed for the block.",
@@ -25210,6 +26276,76 @@
25210
26276
  "children"
25211
26277
  ]
25212
26278
  },
26279
+ "ContentKitStepper": {
26280
+ "type": "object",
26281
+ "properties": {
26282
+ "type": {
26283
+ "type": "string",
26284
+ "enum": [
26285
+ "stepper"
26286
+ ]
26287
+ },
26288
+ "activeStep": {
26289
+ "type": "string",
26290
+ "description": "id of the currently active step"
26291
+ },
26292
+ "onStepChange": {
26293
+ "$ref": "#/components/schemas/ContentKitAction"
26294
+ },
26295
+ "onComplete": {
26296
+ "$ref": "#/components/schemas/ContentKitAction"
26297
+ },
26298
+ "children": {
26299
+ "type": "array",
26300
+ "items": {
26301
+ "$ref": "#/components/schemas/ContentKitStepperStep"
26302
+ },
26303
+ "minItems": 1
26304
+ }
26305
+ },
26306
+ "required": [
26307
+ "type",
26308
+ "activeStep",
26309
+ "onStepChange",
26310
+ "onComplete",
26311
+ "children"
26312
+ ]
26313
+ },
26314
+ "ContentKitConfiguration": {
26315
+ "type": "object",
26316
+ "description": "Higher level element to define a configuration block. Does not add any UI elements or wrappers. Must be used as a top level element for any configuration component.",
26317
+ "properties": {
26318
+ "type": {
26319
+ "type": "string",
26320
+ "enum": [
26321
+ "configuration"
26322
+ ]
26323
+ },
26324
+ "children": {
26325
+ "oneOf": [
26326
+ {
26327
+ "type": "array",
26328
+ "items": {
26329
+ "$ref": "#/components/schemas/ContentKitStepper"
26330
+ },
26331
+ "minItems": 1,
26332
+ "maxItems": 1
26333
+ },
26334
+ {
26335
+ "type": "array",
26336
+ "items": {
26337
+ "$ref": "#/components/schemas/ContentKitDescendantElement"
26338
+ },
26339
+ "minItems": 1
26340
+ }
26341
+ ]
26342
+ }
26343
+ },
26344
+ "required": [
26345
+ "type",
26346
+ "children"
26347
+ ]
26348
+ },
25213
26349
  "ContentKitRootElement": {
25214
26350
  "description": "Element used as root",
25215
26351
  "oneOf": [
@@ -25218,6 +26354,9 @@
25218
26354
  },
25219
26355
  {
25220
26356
  "$ref": "#/components/schemas/ContentKitModal"
26357
+ },
26358
+ {
26359
+ "$ref": "#/components/schemas/ContentKitConfiguration"
25221
26360
  }
25222
26361
  ],
25223
26362
  "discriminator": {
@@ -25814,25 +26953,38 @@
25814
26953
  "minProperties": 1,
25815
26954
  "properties": {
25816
26955
  "members": {
25817
- "type": "array",
25818
- "items": {
25819
- "type": "string",
25820
- "description": "A list of member identifiers to be removed"
25821
- }
25822
- },
25823
- "premiumSites": {
25824
- "type": "array",
25825
- "items": {
25826
- "type": "string",
25827
- "description": "A list of premium site identifiers to be unpublished"
25828
- }
25829
- },
25830
- "audienceSites": {
25831
- "type": "array",
25832
- "items": {
25833
- "type": "string",
25834
- "description": "A list of audience site identifiers to be unpublished"
25835
- }
26956
+ "description": "A list of member identifiers to be removed, `all` to remove all members but the current admin",
26957
+ "oneOf": [
26958
+ {
26959
+ "type": "array",
26960
+ "items": {
26961
+ "type": "string"
26962
+ }
26963
+ },
26964
+ {
26965
+ "type": "string",
26966
+ "enum": [
26967
+ "all"
26968
+ ]
26969
+ }
26970
+ ]
26971
+ },
26972
+ "sites": {
26973
+ "description": "A list of site identifiers to be unpublished, 'all' to unpublish all sites",
26974
+ "oneOf": [
26975
+ {
26976
+ "type": "array",
26977
+ "items": {
26978
+ "type": "string"
26979
+ }
26980
+ },
26981
+ {
26982
+ "type": "string",
26983
+ "enum": [
26984
+ "all"
26985
+ ]
26986
+ }
26987
+ ]
25836
26988
  }
25837
26989
  }
25838
26990
  },
@@ -26189,34 +27341,54 @@
26189
27341
  "OrganizationUsageSites": {
26190
27342
  "type": "object",
26191
27343
  "description": "Sites usage metrics of an organization",
26192
- "properties": {
26193
- "total": {
26194
- "description": "Count of all sites",
26195
- "type": "number"
26196
- },
26197
- "public": {
26198
- "description": "Count of all public sites",
26199
- "type": "number"
26200
- },
26201
- "unlisted": {
26202
- "description": "Count of all unlisted sites",
26203
- "type": "number"
26204
- },
26205
- "shareLink": {
26206
- "description": "Count of all link-shared sites",
26207
- "type": "number"
27344
+ "oneOf": [
27345
+ {
27346
+ "properties": {
27347
+ "total": {
27348
+ "description": "Count of all sites",
27349
+ "type": "number"
27350
+ },
27351
+ "legacyBasic": {
27352
+ "description": "Count of all legacy basic sites",
27353
+ "type": "number"
27354
+ },
27355
+ "legacyPremium": {
27356
+ "description": "Count of all legacy premium sites",
27357
+ "type": "number"
27358
+ }
27359
+ },
27360
+ "required": [
27361
+ "total",
27362
+ "legacyBasic",
27363
+ "legacyPremium"
27364
+ ]
26208
27365
  },
26209
- "visitorAuth": {
26210
- "description": "Count of all visitor-authenticated sites",
26211
- "type": "number"
27366
+ {
27367
+ "properties": {
27368
+ "total": {
27369
+ "description": "Count of all sites",
27370
+ "type": "number"
27371
+ },
27372
+ "basic": {
27373
+ "description": "Count of all basic sites",
27374
+ "type": "number"
27375
+ },
27376
+ "premium": {
27377
+ "description": "Count of all premium sites",
27378
+ "type": "number"
27379
+ },
27380
+ "ultimate": {
27381
+ "description": "Count of all ultimate sites",
27382
+ "type": "number"
27383
+ }
27384
+ },
27385
+ "required": [
27386
+ "total",
27387
+ "basic",
27388
+ "premium",
27389
+ "ultimate"
27390
+ ]
26212
27391
  }
26213
- },
26214
- "required": [
26215
- "total",
26216
- "public",
26217
- "unlisted",
26218
- "shareLink",
26219
- "visitorAuth"
26220
27392
  ]
26221
27393
  },
26222
27394
  "OrganizationUsageTeams": {
@@ -26721,7 +27893,7 @@
26721
27893
  "enum": [
26722
27894
  "basic",
26723
27895
  "premium",
26724
- "audience",
27896
+ "ultimate",
26725
27897
  "legacy-basic",
26726
27898
  "legacy-premium"
26727
27899
  ]
@@ -26759,653 +27931,360 @@
26759
27931
  "enum": [
26760
27932
  "webdev",
26761
27933
  "crypto"
26762
- ]
26763
- },
26764
- "SiteAds": {
26765
- "oneOf": [
26766
- {
26767
- "type": "object",
26768
- "required": [
26769
- "status",
26770
- "submittable"
26771
- ],
26772
- "properties": {
26773
- "status": {
26774
- "type": "string",
26775
- "enum": [
26776
- "pending"
26777
- ]
26778
- },
26779
- "submittable": {
26780
- "type": "boolean",
26781
- "description": "True if the user can submit the site for review."
26782
- }
26783
- }
26784
- },
26785
- {
26786
- "type": "object",
26787
- "required": [
26788
- "status",
26789
- "topic",
26790
- "accountEmail"
26791
- ],
26792
- "properties": {
26793
- "status": {
26794
- "type": "string",
26795
- "enum": [
26796
- "in-review"
26797
- ]
26798
- },
26799
- "topic": {
26800
- "$ref": "#/components/schemas/SiteAdsTopic"
26801
- }
26802
- }
26803
- },
26804
- {
26805
- "type": "object",
26806
- "required": [
26807
- "status"
26808
- ],
26809
- "properties": {
26810
- "status": {
26811
- "type": "string",
26812
- "enum": [
26813
- "rejected"
26814
- ]
26815
- }
26816
- }
26817
- },
26818
- {
26819
- "type": "object",
26820
- "required": [
26821
- "status",
26822
- "topic",
26823
- "zoneId"
26824
- ],
26825
- "properties": {
26826
- "status": {
26827
- "type": "string",
26828
- "enum": [
26829
- "live",
26830
- "disabled"
26831
- ]
26832
- },
26833
- "topic": {
26834
- "$ref": "#/components/schemas/SiteAdsTopic"
26835
- },
26836
- "zoneId": {
26837
- "type": "string",
26838
- "description": "The ad network zone ID"
26839
- }
26840
- }
26841
- }
26842
- ]
26843
- },
26844
- "Site": {
26845
- "type": "object",
26846
- "properties": {
26847
- "object": {
26848
- "type": "string",
26849
- "enum": [
26850
- "site"
26851
- ]
26852
- },
26853
- "id": {
26854
- "type": "string",
26855
- "description": "Unique identifier of the site"
26856
- },
26857
- "type": {
26858
- "$ref": "#/components/schemas/SiteType"
26859
- },
26860
- "title": {
26861
- "$ref": "#/components/schemas/SiteTitle"
26862
- },
26863
- "hostname": {
26864
- "$ref": "#/components/schemas/SiteHostname"
26865
- },
26866
- "basename": {
26867
- "$ref": "#/components/schemas/SiteBasename"
26868
- },
26869
- "visibility": {
26870
- "$ref": "#/components/schemas/SiteVisibility"
26871
- },
26872
- "published": {
26873
- "type": "boolean",
26874
- "description": "Whether the site is live or not. If true, the site is accessible to the audience defined by the visibility setting."
26875
- },
26876
- "siteSpaces": {
26877
- "type": "number"
26878
- },
26879
- "createdAt": {
26880
- "type": "string",
26881
- "format": "date-time"
26882
- },
26883
- "ads": {
26884
- "$ref": "#/components/schemas/SiteAds"
26885
- },
26886
- "urls": {
26887
- "type": "object",
26888
- "description": "URLs associated with the object",
26889
- "properties": {
26890
- "location": {
26891
- "type": "string",
26892
- "description": "URL of the site in the API",
26893
- "format": "uri"
26894
- },
26895
- "app": {
26896
- "type": "string",
26897
- "description": "URL of the site in the application",
26898
- "format": "uri"
26899
- },
26900
- "published": {
26901
- "type": "string",
26902
- "description": "URL of the published version of the site. Only defined when site is published.",
26903
- "format": "uri"
26904
- }
26905
- },
26906
- "required": [
26907
- "app",
26908
- "location"
26909
- ]
26910
- }
26911
- },
26912
- "required": [
26913
- "object",
26914
- "id",
26915
- "type",
26916
- "title",
26917
- "visibility",
26918
- "published",
26919
- "createdAt",
26920
- "siteSpaces",
26921
- "defaultSpace",
26922
- "urls"
26923
- ]
26924
- },
26925
- "BillingOperationPreviewResponse": {
26926
- "description": "A response to a request to preview a paid operation or action. A user might preview an operation before executing it to see which billing steps would be required (if any). This schema defines the response of that preview request.\n",
26927
- "oneOf": [
26928
- {
26929
- "type": "object",
26930
- "properties": {
26931
- "type": {
26932
- "description": "User can go ahead with the operation without any additional steps. Their subscription will be updated to reflect the new changes.",
26933
- "type": "string",
26934
- "enum": [
26935
- "go-ahead"
26936
- ]
26937
- }
26938
- },
26939
- "required": [
26940
- "type"
26941
- ]
26942
- },
26943
- {
26944
- "type": "object",
26945
- "properties": {
26946
- "type": {
26947
- "description": "By going ahead with this operation, the user will be starting a trial in GitBook.",
26948
- "type": "string",
26949
- "enum": [
26950
- "trial-available"
26951
- ]
26952
- }
26953
- },
26954
- "required": [
26955
- "type"
26956
- ]
26957
- },
27934
+ ]
27935
+ },
27936
+ "SiteAds": {
27937
+ "oneOf": [
26958
27938
  {
26959
27939
  "type": "object",
27940
+ "required": [
27941
+ "status",
27942
+ "submittable"
27943
+ ],
26960
27944
  "properties": {
26961
- "type": {
26962
- "description": "User must checkout to complete the operation.",
27945
+ "status": {
26963
27946
  "type": "string",
26964
27947
  "enum": [
26965
- "checkout"
27948
+ "pending"
26966
27949
  ]
26967
27950
  },
26968
- "invoice": {
26969
- "$ref": "#/components/schemas/BillingInvoicePreview"
27951
+ "submittable": {
27952
+ "type": "boolean",
27953
+ "description": "True if the user can submit the site for review."
26970
27954
  }
26971
- },
26972
- "required": [
26973
- "type"
26974
- ]
27955
+ }
26975
27956
  },
26976
27957
  {
26977
27958
  "type": "object",
27959
+ "required": [
27960
+ "status",
27961
+ "topic",
27962
+ "accountEmail"
27963
+ ],
26978
27964
  "properties": {
26979
- "type": {
26980
- "description": "User cannot proceed with the operation due to lack of permissions.",
27965
+ "status": {
26981
27966
  "type": "string",
26982
27967
  "enum": [
26983
- "no-permissions"
27968
+ "in-review"
26984
27969
  ]
27970
+ },
27971
+ "topic": {
27972
+ "$ref": "#/components/schemas/SiteAdsTopic"
26985
27973
  }
26986
- },
26987
- "required": [
26988
- "type"
26989
- ]
27974
+ }
26990
27975
  },
26991
27976
  {
26992
27977
  "type": "object",
27978
+ "required": [
27979
+ "status"
27980
+ ],
26993
27981
  "properties": {
26994
- "type": {
26995
- "description": "User needs to go through the legacy upgrade flow.",
27982
+ "status": {
26996
27983
  "type": "string",
26997
27984
  "enum": [
26998
- "legacy-upgrade"
27985
+ "rejected"
26999
27986
  ]
27000
- },
27001
- "plan": {
27002
- "description": "The plan the user must upgrade to.",
27003
- "$ref": "#/components/schemas/BillingProduct"
27004
- },
27005
- "invoice": {
27006
- "$ref": "#/components/schemas/BillingInvoicePreview"
27007
- }
27008
- },
27009
- "required": [
27010
- "type",
27011
- "plan"
27012
- ]
27013
- }
27014
- ]
27015
- },
27016
- "SitePublishingAuth": {
27017
- "allOf": [
27018
- {
27019
- "oneOf": [
27020
- {
27021
- "$ref": "#/components/schemas/VisitorAuthCustomBackend"
27022
- },
27023
- {
27024
- "$ref": "#/components/schemas/VisitorAuthIntegrationBackend"
27025
27987
  }
27026
- ]
27988
+ }
27027
27989
  },
27028
27990
  {
27029
27991
  "type": "object",
27992
+ "required": [
27993
+ "status",
27994
+ "topic",
27995
+ "zoneId"
27996
+ ],
27030
27997
  "properties": {
27031
- "object": {
27998
+ "status": {
27032
27999
  "type": "string",
27033
- "description": "Type of Object, always equals to \"publishing-auth\"",
27034
28000
  "enum": [
27035
- "publishing-auth"
28001
+ "live",
28002
+ "disabled"
27036
28003
  ]
27037
28004
  },
27038
- "privateKey": {
27039
- "type": "string",
27040
- "description": "Private key used to sign JWT tokens."
27041
- },
27042
- "fallbackURL": {
27043
- "type": "string",
27044
- "format": "uri",
27045
- "description": "URL to redirect to when the visitor auth secret is invalid."
27046
- },
27047
- "integration": {
27048
- "type": "string",
27049
- "description": "Name of the Visitor Authentication integration installed on the site (if any).\nIt is also the one being used as VA backend when the published auth settings are configured to use \"integration\" as backend.\n"
27050
- }
27051
- },
27052
- "required": [
27053
- "object",
27054
- "privateKey"
27055
- ]
27056
- }
27057
- ]
27058
- },
27059
- "SitePublishingAuthUpdate": {
27060
- "allOf": [
27061
- {
27062
- "oneOf": [
27063
- {
27064
- "$ref": "#/components/schemas/VisitorAuthCustomBackend"
28005
+ "topic": {
28006
+ "$ref": "#/components/schemas/SiteAdsTopic"
27065
28007
  },
27066
- {
27067
- "$ref": "#/components/schemas/VisitorAuthIntegrationBackend"
27068
- }
27069
- ]
27070
- },
27071
- {
27072
- "type": "object",
27073
- "properties": {
27074
- "fallbackURL": {
28008
+ "zoneId": {
27075
28009
  "type": "string",
27076
- "format": "uri",
27077
- "description": "A fallback URL that will be used if authentication fails."
28010
+ "description": "The ad network zone ID"
27078
28011
  }
27079
28012
  }
27080
28013
  }
27081
28014
  ]
27082
28015
  },
27083
- "CustomizationIconsStyle": {
27084
- "type": "string",
27085
- "enum": [
27086
- "regular",
27087
- "solid",
27088
- "duotone",
27089
- "light",
27090
- "thin"
27091
- ]
27092
- },
27093
- "SiteCustomizationSettings": {
28016
+ "Site": {
27094
28017
  "type": "object",
27095
28018
  "properties": {
28019
+ "object": {
28020
+ "type": "string",
28021
+ "enum": [
28022
+ "site"
28023
+ ]
28024
+ },
28025
+ "id": {
28026
+ "type": "string",
28027
+ "description": "Unique identifier of the site"
28028
+ },
28029
+ "type": {
28030
+ "$ref": "#/components/schemas/SiteType"
28031
+ },
27096
28032
  "title": {
27097
- "description": "Title to use for the published site. If not defined, it'll fallback to the default content title.",
27098
28033
  "$ref": "#/components/schemas/SiteTitle"
27099
28034
  },
27100
- "styling": {
27101
- "type": "object",
27102
- "properties": {
27103
- "primaryColor": {
27104
- "$ref": "#/components/schemas/CustomizationThemedColor"
27105
- },
27106
- "corners": {
27107
- "$ref": "#/components/schemas/CustomizationCorners"
27108
- },
27109
- "font": {
27110
- "$ref": "#/components/schemas/CustomizationFont"
27111
- },
27112
- "background": {
27113
- "$ref": "#/components/schemas/CustomizationBackground"
27114
- },
27115
- "icons": {
27116
- "$ref": "#/components/schemas/CustomizationIconsStyle"
27117
- }
27118
- },
27119
- "required": [
27120
- "primaryColor",
27121
- "corners",
27122
- "font",
27123
- "background",
27124
- "icons"
27125
- ]
28035
+ "hostname": {
28036
+ "$ref": "#/components/schemas/SiteHostname"
27126
28037
  },
27127
- "internationalization": {
27128
- "type": "object",
27129
- "properties": {
27130
- "locale": {
27131
- "$ref": "#/components/schemas/CustomizationLocale"
27132
- }
27133
- },
27134
- "required": [
27135
- "locale"
27136
- ]
28038
+ "basename": {
28039
+ "$ref": "#/components/schemas/SiteBasename"
27137
28040
  },
27138
- "favicon": {
27139
- "oneOf": [
27140
- {
27141
- "type": "object",
27142
- "properties": {
27143
- "icon": {
27144
- "$ref": "#/components/schemas/CustomizationThemedURL"
27145
- }
27146
- },
27147
- "required": [
27148
- "icon"
27149
- ]
27150
- },
27151
- {
27152
- "type": "object",
27153
- "properties": {
27154
- "emoji": {
27155
- "$ref": "#/components/schemas/Emoji"
27156
- }
27157
- },
27158
- "required": [
27159
- "emoji"
27160
- ]
27161
- },
27162
- {
27163
- "type": "object",
27164
- "properties": {},
27165
- "additionalProperties": false
27166
- }
27167
- ]
28041
+ "visibility": {
28042
+ "$ref": "#/components/schemas/SiteVisibility"
27168
28043
  },
27169
- "header": {
27170
- "type": "object",
27171
- "properties": {
27172
- "preset": {
27173
- "$ref": "#/components/schemas/CustomizationHeaderPreset"
27174
- },
27175
- "logo": {
27176
- "$ref": "#/components/schemas/CustomizationThemedURL"
27177
- },
27178
- "backgroundColor": {
27179
- "$ref": "#/components/schemas/CustomizationThemedColor"
27180
- },
27181
- "linkColor": {
27182
- "$ref": "#/components/schemas/CustomizationThemedColor"
27183
- },
27184
- "links": {
27185
- "type": "array",
27186
- "items": {
27187
- "$ref": "#/components/schemas/CustomizationHeaderLink"
27188
- }
27189
- }
27190
- },
27191
- "required": [
27192
- "preset",
27193
- "links"
27194
- ]
28044
+ "published": {
28045
+ "type": "boolean",
28046
+ "description": "Whether the site is live or not. If true, the site is accessible to the audience defined by the visibility setting."
27195
28047
  },
27196
- "footer": {
27197
- "type": "object",
27198
- "properties": {
27199
- "logo": {
27200
- "$ref": "#/components/schemas/CustomizationThemedURL"
27201
- },
27202
- "groups": {
27203
- "type": "array",
27204
- "items": {
27205
- "$ref": "#/components/schemas/CustomizationFooterGroup"
27206
- }
27207
- },
27208
- "copyright": {
27209
- "type": "string",
27210
- "maxLength": 300
27211
- }
27212
- },
27213
- "required": [
27214
- "groups"
27215
- ]
28048
+ "siteSpaces": {
28049
+ "type": "number"
27216
28050
  },
27217
- "themes": {
27218
- "type": "object",
27219
- "properties": {
27220
- "default": {
27221
- "$ref": "#/components/schemas/CustomizationThemeMode"
27222
- },
27223
- "toggeable": {
27224
- "description": "Should the reader be able to switch between dark and light mode",
27225
- "type": "boolean"
27226
- }
27227
- },
27228
- "required": [
27229
- "default",
27230
- "toggeable"
27231
- ]
28051
+ "createdAt": {
28052
+ "type": "string",
28053
+ "format": "date-time"
27232
28054
  },
27233
- "pdf": {
27234
- "type": "object",
27235
- "properties": {
27236
- "enabled": {
27237
- "type": "boolean",
27238
- "description": "If true, PDF export is enabled for the published site."
27239
- }
27240
- },
27241
- "required": [
27242
- "enabled"
27243
- ]
28055
+ "ads": {
28056
+ "$ref": "#/components/schemas/SiteAds"
27244
28057
  },
27245
- "feedback": {
28058
+ "urls": {
27246
28059
  "type": "object",
28060
+ "description": "URLs associated with the object",
27247
28061
  "properties": {
27248
- "enabled": {
27249
- "type": "boolean",
27250
- "description": "If true, feedback gathering is enabled"
28062
+ "location": {
28063
+ "type": "string",
28064
+ "description": "URL of the site in the API",
28065
+ "format": "uri"
28066
+ },
28067
+ "app": {
28068
+ "type": "string",
28069
+ "description": "URL of the site in the application",
28070
+ "format": "uri"
28071
+ },
28072
+ "published": {
28073
+ "type": "string",
28074
+ "description": "URL of the published version of the site. Only defined when site is published.",
28075
+ "format": "uri"
27251
28076
  }
27252
28077
  },
27253
28078
  "required": [
27254
- "enabled"
28079
+ "app",
28080
+ "location"
27255
28081
  ]
27256
- },
27257
- "aiSearch": {
28082
+ }
28083
+ },
28084
+ "required": [
28085
+ "object",
28086
+ "id",
28087
+ "type",
28088
+ "title",
28089
+ "visibility",
28090
+ "published",
28091
+ "createdAt",
28092
+ "siteSpaces",
28093
+ "defaultSpace",
28094
+ "urls"
28095
+ ]
28096
+ },
28097
+ "BillingOperationPreviewResponse": {
28098
+ "description": "A response to a request to preview a paid operation or action. A user might preview an operation before executing it to see which billing steps would be required (if any). This schema defines the response of that preview request.\n",
28099
+ "oneOf": [
28100
+ {
27258
28101
  "type": "object",
27259
28102
  "properties": {
27260
- "enabled": {
27261
- "type": "boolean",
27262
- "description": "If true, AI search is enabled"
28103
+ "type": {
28104
+ "description": "User can go ahead with the operation without any additional steps. Their subscription will be updated to reflect the new changes.",
28105
+ "type": "string",
28106
+ "enum": [
28107
+ "go-ahead"
28108
+ ]
27263
28109
  }
27264
28110
  },
27265
28111
  "required": [
27266
- "enabled"
28112
+ "type"
27267
28113
  ]
27268
28114
  },
27269
- "advancedCustomization": {
28115
+ {
27270
28116
  "type": "object",
27271
28117
  "properties": {
27272
- "enabled": {
27273
- "type": "boolean",
27274
- "description": "If true, Advanced customization is enabled"
28118
+ "type": {
28119
+ "description": "By going ahead with this operation, the user will be starting a trial in GitBook.",
28120
+ "type": "string",
28121
+ "enum": [
28122
+ "trial-available"
28123
+ ]
27275
28124
  }
27276
28125
  },
27277
28126
  "required": [
27278
- "enabled"
28127
+ "type"
27279
28128
  ]
27280
28129
  },
27281
- "git": {
28130
+ {
27282
28131
  "type": "object",
27283
28132
  "properties": {
27284
- "showEditLink": {
27285
- "type": "boolean",
27286
- "description": "Whether the published site should show a link to edit the content on the git provider set up in the Git Sync"
28133
+ "type": {
28134
+ "description": "User must checkout to complete the operation.",
28135
+ "type": "string",
28136
+ "enum": [
28137
+ "checkout"
28138
+ ]
28139
+ },
28140
+ "invoice": {
28141
+ "$ref": "#/components/schemas/BillingInvoicePreview"
27287
28142
  }
27288
28143
  },
27289
28144
  "required": [
27290
- "showEditLink"
28145
+ "type"
27291
28146
  ]
27292
28147
  },
27293
- "pagination": {
28148
+ {
27294
28149
  "type": "object",
27295
28150
  "properties": {
27296
- "enabled": {
27297
- "type": "boolean",
27298
- "description": "Whether the pagination navigation should be displayed on pages."
28151
+ "type": {
28152
+ "description": "User cannot proceed with the operation due to lack of permissions.",
28153
+ "type": "string",
28154
+ "enum": [
28155
+ "no-permissions"
28156
+ ]
27299
28157
  }
27300
28158
  },
27301
28159
  "required": [
27302
- "enabled"
28160
+ "type"
27303
28161
  ]
27304
28162
  },
27305
- "trademark": {
28163
+ {
27306
28164
  "type": "object",
27307
28165
  "properties": {
27308
- "enabled": {
27309
- "type": "boolean",
27310
- "description": "Whether the GitBook trademark (\"Powered by GitBook\") should be visible"
28166
+ "type": {
28167
+ "description": "User needs to go through the legacy upgrade flow.",
28168
+ "type": "string",
28169
+ "enum": [
28170
+ "legacy-upgrade"
28171
+ ]
28172
+ },
28173
+ "plan": {
28174
+ "description": "The plan the user must upgrade to.",
28175
+ "$ref": "#/components/schemas/BillingProduct"
28176
+ },
28177
+ "invoice": {
28178
+ "$ref": "#/components/schemas/BillingInvoicePreview"
27311
28179
  }
27312
28180
  },
27313
28181
  "required": [
27314
- "enabled"
28182
+ "type",
28183
+ "plan"
27315
28184
  ]
27316
- },
27317
- "privacyPolicy": {
27318
- "type": "object",
27319
- "properties": {
27320
- "url": {
27321
- "$ref": "#/components/schemas/URL"
27322
- }
27323
- }
27324
- },
27325
- "socialPreview": {
27326
- "type": "object",
27327
- "properties": {
27328
- "url": {
27329
- "$ref": "#/components/schemas/URL"
27330
- }
27331
- }
27332
28185
  }
27333
- },
27334
- "required": [
27335
- "styling",
27336
- "internationalization",
27337
- "favicon",
27338
- "header",
27339
- "footer",
27340
- "themes",
27341
- "pdf",
27342
- "feedback",
27343
- "aiSearch",
27344
- "advancedCustomization",
27345
- "trademark",
27346
- "pagination",
27347
- "git",
27348
- "privacyPolicy",
27349
- "socialPreview"
27350
28186
  ]
27351
28187
  },
27352
- "SiteIntegrationScript": {
28188
+ "SiteSectionPath": {
28189
+ "type": "string",
28190
+ "description": "Path to the section on the site",
28191
+ "minLength": 1,
28192
+ "maxLength": 100
28193
+ },
28194
+ "SiteSpacePath": {
28195
+ "type": "string",
28196
+ "description": "Path to the space on the site",
28197
+ "minLength": 1,
28198
+ "maxLength": 100
28199
+ },
28200
+ "SiteSpace": {
27353
28201
  "type": "object",
27354
28202
  "properties": {
27355
- "script": {
27356
- "description": "Script URL to load.",
27357
- "$ref": "#/components/schemas/URL"
28203
+ "object": {
28204
+ "type": "string",
28205
+ "description": "The object type, which is always \"site-space\"",
28206
+ "enum": [
28207
+ "site-space"
28208
+ ]
27358
28209
  },
27359
- "contentSecurityPolicy": {
27360
- "description": "Content Security Policy to secure the loading of this script.",
28210
+ "id": {
28211
+ "type": "string",
28212
+ "description": "Unique identifier of the site-space"
28213
+ },
28214
+ "path": {
28215
+ "$ref": "#/components/schemas/SiteSpacePath"
28216
+ },
28217
+ "section": {
28218
+ "type": "string",
28219
+ "description": "ID of the section the space belongs to in the site"
28220
+ },
28221
+ "space": {
28222
+ "$ref": "#/components/schemas/Space"
28223
+ },
28224
+ "title": {
27361
28225
  "type": "string"
27362
28226
  },
27363
- "cookies": {
28227
+ "default": {
27364
28228
  "type": "boolean",
27365
- "description": "If true, the script will potentially load use cookies and visitors should be aware."
28229
+ "description": "Whether this is the default space for the site"
28230
+ },
28231
+ "hasAdvancedCustomizationFeature": {
28232
+ "type": "boolean",
28233
+ "description": "Whether the space has advanced customization feature enabled"
28234
+ },
28235
+ "urls": {
28236
+ "type": "object",
28237
+ "description": "URLs associated with the object",
28238
+ "properties": {
28239
+ "published": {
28240
+ "type": "string",
28241
+ "description": "URL of the published version of the site-space. Only defined when site is published.",
28242
+ "format": "uri"
28243
+ }
28244
+ },
28245
+ "required": [
28246
+ "location"
28247
+ ]
27366
28248
  }
27367
28249
  },
27368
28250
  "required": [
27369
- "script",
27370
- "cookies"
28251
+ "id",
28252
+ "space",
28253
+ "title",
28254
+ "path",
28255
+ "urls"
27371
28256
  ]
27372
28257
  },
27373
- "SiteSpacePath": {
27374
- "type": "string",
27375
- "description": "Path to the space on the site",
27376
- "minLength": 1,
27377
- "maxLength": 100
27378
- },
27379
- "SiteSpace": {
28258
+ "SiteSection": {
27380
28259
  "type": "object",
27381
28260
  "properties": {
27382
28261
  "object": {
27383
28262
  "type": "string",
27384
- "description": "The object type, which is always \"site-space\"",
28263
+ "description": "The object type, which is always \"site-section\"",
27385
28264
  "enum": [
27386
- "site-space"
28265
+ "site-section"
27387
28266
  ]
27388
28267
  },
27389
28268
  "id": {
27390
28269
  "type": "string",
27391
- "description": "Unique identifier of the site-space"
27392
- },
27393
- "path": {
27394
- "$ref": "#/components/schemas/SiteSpacePath"
27395
- },
27396
- "space": {
27397
- "$ref": "#/components/schemas/Space"
28270
+ "description": "Unique identifier of the site section"
27398
28271
  },
27399
28272
  "title": {
27400
- "type": "string"
28273
+ "type": "string",
28274
+ "description": "Title of the site section"
27401
28275
  },
27402
28276
  "default": {
27403
28277
  "type": "boolean",
27404
- "description": "Whether this is the default space for the site"
28278
+ "description": "Whether this is the default section for the site"
27405
28279
  },
27406
- "hasAdvancedCustomizationFeature": {
27407
- "type": "boolean",
27408
- "description": "Whether the space has advanced customization feature enabled"
28280
+ "path": {
28281
+ "$ref": "#/components/schemas/SiteSectionPath"
28282
+ },
28283
+ "siteSpaces": {
28284
+ "type": "array",
28285
+ "items": {
28286
+ "$ref": "#/components/schemas/SiteSpace"
28287
+ }
27409
28288
  },
27410
28289
  "urls": {
27411
28290
  "type": "object",
@@ -27413,7 +28292,7 @@
27413
28292
  "properties": {
27414
28293
  "published": {
27415
28294
  "type": "string",
27416
- "description": "URL of the published version of the site-space. Only defined when site is published.",
28295
+ "description": "URL of the published version of the site section. Only defined when site is published.",
27417
28296
  "format": "uri"
27418
28297
  }
27419
28298
  },
@@ -27424,116 +28303,128 @@
27424
28303
  },
27425
28304
  "required": [
27426
28305
  "id",
27427
- "space",
27428
28306
  "title",
27429
28307
  "path",
28308
+ "siteSpaces",
27430
28309
  "urls"
27431
28310
  ]
27432
28311
  },
27433
- "SiteSpaceCustomizationOverrides": {
28312
+ "SitePublishingAuth": {
28313
+ "allOf": [
28314
+ {
28315
+ "oneOf": [
28316
+ {
28317
+ "$ref": "#/components/schemas/VisitorAuthCustomBackend"
28318
+ },
28319
+ {
28320
+ "$ref": "#/components/schemas/VisitorAuthIntegrationBackend"
28321
+ }
28322
+ ]
28323
+ },
28324
+ {
28325
+ "type": "object",
28326
+ "properties": {
28327
+ "object": {
28328
+ "type": "string",
28329
+ "description": "Type of Object, always equals to \"publishing-auth\"",
28330
+ "enum": [
28331
+ "publishing-auth"
28332
+ ]
28333
+ },
28334
+ "privateKey": {
28335
+ "type": "string",
28336
+ "description": "Private key used to sign JWT tokens."
28337
+ },
28338
+ "fallbackURL": {
28339
+ "type": "string",
28340
+ "format": "uri",
28341
+ "description": "URL to redirect to when the visitor auth secret is invalid."
28342
+ },
28343
+ "integration": {
28344
+ "type": "string",
28345
+ "description": "Name of the Visitor Authentication integration installed on the site (if any).\nIt is also the one being used as VA backend when the published auth settings are configured to use \"integration\" as backend.\n"
28346
+ }
28347
+ },
28348
+ "required": [
28349
+ "object",
28350
+ "privateKey"
28351
+ ]
28352
+ }
28353
+ ]
28354
+ },
28355
+ "SitePublishingAuthUpdate": {
28356
+ "allOf": [
28357
+ {
28358
+ "oneOf": [
28359
+ {
28360
+ "$ref": "#/components/schemas/VisitorAuthCustomBackend"
28361
+ },
28362
+ {
28363
+ "$ref": "#/components/schemas/VisitorAuthIntegrationBackend"
28364
+ }
28365
+ ]
28366
+ },
28367
+ {
28368
+ "type": "object",
28369
+ "properties": {
28370
+ "fallbackURL": {
28371
+ "type": "string",
28372
+ "format": "uri",
28373
+ "description": "A fallback URL that will be used if authentication fails."
28374
+ }
28375
+ }
28376
+ }
28377
+ ]
28378
+ },
28379
+ "CustomizationIconsStyle": {
28380
+ "type": "string",
28381
+ "enum": [
28382
+ "regular",
28383
+ "solid",
28384
+ "duotone",
28385
+ "light",
28386
+ "thin"
28387
+ ]
28388
+ },
28389
+ "SiteCustomizationSettings": {
27434
28390
  "type": "object",
27435
28391
  "properties": {
27436
28392
  "title": {
27437
- "description": "Title to use for the published site variant. If not defined, it'll fallback to the content title.",
28393
+ "description": "Title to use for the published site. If not defined, it'll fallback to the default content title.",
27438
28394
  "$ref": "#/components/schemas/SiteTitle"
27439
28395
  },
27440
28396
  "styling": {
27441
28397
  "type": "object",
27442
28398
  "properties": {
27443
28399
  "primaryColor": {
27444
- "description": "The primary color used for links and UI text. Set to null to reset the override.",
27445
- "oneOf": [
27446
- {
27447
- "$ref": "#/components/schemas/CustomizationThemedColor"
27448
- },
27449
- {
27450
- "type": "string",
27451
- "nullable": true,
27452
- "enum": [
27453
- null
27454
- ]
27455
- }
27456
- ]
28400
+ "$ref": "#/components/schemas/CustomizationThemedColor"
27457
28401
  },
27458
28402
  "corners": {
27459
- "description": "The style of the corners to use. Set to null to reset the override.",
27460
- "oneOf": [
27461
- {
27462
- "$ref": "#/components/schemas/CustomizationCorners"
27463
- },
27464
- {
27465
- "type": "string",
27466
- "nullable": true,
27467
- "enum": [
27468
- null
27469
- ]
27470
- }
27471
- ]
28403
+ "$ref": "#/components/schemas/CustomizationCorners"
27472
28404
  },
27473
28405
  "font": {
27474
- "description": "The font family to use for the content. Set to null to reset the override.",
27475
- "oneOf": [
27476
- {
27477
- "$ref": "#/components/schemas/CustomizationFont"
27478
- },
27479
- {
27480
- "type": "string",
27481
- "nullable": true,
27482
- "enum": [
27483
- null
27484
- ]
27485
- }
27486
- ]
27487
- },
27488
- "icons": {
27489
- "description": "The icons style to use for the content. Set to null to reset the override.",
27490
- "oneOf": [
27491
- {
27492
- "$ref": "#/components/schemas/CustomizationIconsStyle"
27493
- },
27494
- {
27495
- "type": "string",
27496
- "nullable": true,
27497
- "enum": [
27498
- null
27499
- ]
27500
- }
27501
- ]
28406
+ "$ref": "#/components/schemas/CustomizationFont"
27502
28407
  },
27503
28408
  "background": {
27504
- "description": "The style of background to use. Set to null to reset the override.",
27505
- "oneOf": [
27506
- {
27507
- "$ref": "#/components/schemas/CustomizationBackground"
27508
- },
27509
- {
27510
- "type": "string",
27511
- "nullable": true,
27512
- "enum": [
27513
- null
27514
- ]
27515
- }
27516
- ]
28409
+ "$ref": "#/components/schemas/CustomizationBackground"
28410
+ },
28411
+ "icons": {
28412
+ "$ref": "#/components/schemas/CustomizationIconsStyle"
27517
28413
  }
27518
- }
28414
+ },
28415
+ "required": [
28416
+ "primaryColor",
28417
+ "corners",
28418
+ "font",
28419
+ "background",
28420
+ "icons"
28421
+ ]
27519
28422
  },
27520
28423
  "internationalization": {
27521
28424
  "type": "object",
27522
28425
  "properties": {
27523
28426
  "locale": {
27524
- "description": "The locale to use for the non-custom elements of the UI. Set to null to reset the override.",
27525
- "oneOf": [
27526
- {
27527
- "$ref": "#/components/schemas/CustomizationLocale"
27528
- },
27529
- {
27530
- "type": "string",
27531
- "nullable": true,
27532
- "enum": [
27533
- null
27534
- ]
27535
- }
27536
- ]
28427
+ "$ref": "#/components/schemas/CustomizationLocale"
27537
28428
  }
27538
28429
  },
27539
28430
  "required": [
@@ -27541,7 +28432,6 @@
27541
28432
  ]
27542
28433
  },
27543
28434
  "favicon": {
27544
- "description": "The favicon to use. Set to null to reset the override.",
27545
28435
  "oneOf": [
27546
28436
  {
27547
28437
  "type": "object",
@@ -27567,7 +28457,6 @@
27567
28457
  },
27568
28458
  {
27569
28459
  "type": "object",
27570
- "nullable": true,
27571
28460
  "properties": {},
27572
28461
  "additionalProperties": false
27573
28462
  }
@@ -27577,141 +28466,72 @@
27577
28466
  "type": "object",
27578
28467
  "properties": {
27579
28468
  "preset": {
27580
- "description": "The theme preset to use. Set to null to reset the override.",
27581
- "oneOf": [
27582
- {
27583
- "$ref": "#/components/schemas/CustomizationHeaderPreset"
27584
- },
27585
- {
27586
- "type": "string",
27587
- "nullable": true,
27588
- "enum": [
27589
- null
27590
- ]
27591
- }
27592
- ]
28469
+ "$ref": "#/components/schemas/CustomizationHeaderPreset"
27593
28470
  },
27594
28471
  "logo": {
27595
- "description": "The header logo to use. Set to null to reset the override.",
27596
- "oneOf": [
27597
- {
27598
- "$ref": "#/components/schemas/CustomizationThemedURL"
27599
- },
27600
- {
27601
- "type": "string",
27602
- "nullable": true,
27603
- "enum": [
27604
- null
27605
- ]
27606
- }
27607
- ]
28472
+ "$ref": "#/components/schemas/CustomizationThemedURL"
27608
28473
  },
27609
28474
  "backgroundColor": {
27610
- "description": "The background color used in the header. Set to null to reset the override.",
27611
- "oneOf": [
27612
- {
27613
- "$ref": "#/components/schemas/CustomizationThemedColor"
27614
- },
27615
- {
27616
- "type": "string",
27617
- "nullable": true,
27618
- "enum": [
27619
- null
27620
- ]
27621
- }
27622
- ]
28475
+ "$ref": "#/components/schemas/CustomizationThemedColor"
27623
28476
  },
27624
28477
  "linkColor": {
27625
- "description": "The color used by the links in the header. Set to null to reset the override.",
27626
- "oneOf": [
27627
- {
27628
- "$ref": "#/components/schemas/CustomizationThemedColor"
27629
- },
27630
- {
27631
- "type": "string",
27632
- "nullable": true,
27633
- "enum": [
27634
- null
27635
- ]
27636
- }
27637
- ]
28478
+ "$ref": "#/components/schemas/CustomizationThemedColor"
27638
28479
  },
27639
28480
  "links": {
27640
28481
  "type": "array",
27641
- "description": "The links that are displayed in the header. Set to null to reset the override.",
27642
- "nullable": true,
27643
28482
  "items": {
27644
28483
  "$ref": "#/components/schemas/CustomizationHeaderLink"
27645
28484
  }
27646
28485
  }
27647
- }
27648
- },
27649
- "footer": {
27650
- "type": "object",
27651
- "properties": {
27652
- "logo": {
27653
- "description": "The logo displayed in the footer. Set to null to reset the override.",
27654
- "oneOf": [
27655
- {
27656
- "$ref": "#/components/schemas/CustomizationThemedURL"
27657
- },
27658
- {
27659
- "type": "string",
27660
- "nullable": true,
27661
- "enum": [
27662
- null
27663
- ]
27664
- }
27665
- ]
28486
+ },
28487
+ "required": [
28488
+ "preset",
28489
+ "links"
28490
+ ]
28491
+ },
28492
+ "footer": {
28493
+ "type": "object",
28494
+ "properties": {
28495
+ "logo": {
28496
+ "$ref": "#/components/schemas/CustomizationThemedURL"
27666
28497
  },
27667
28498
  "groups": {
27668
28499
  "type": "array",
27669
- "description": "The links groups that are displayed in the footer. Set to null to reset the override.",
27670
- "nullable": true,
27671
28500
  "items": {
27672
28501
  "$ref": "#/components/schemas/CustomizationFooterGroup"
27673
28502
  }
27674
28503
  },
27675
28504
  "copyright": {
27676
28505
  "type": "string",
27677
- "description": "The copyright text that is displayed in the footer. Set to null to reset the override.",
27678
- "nullable": true,
27679
28506
  "maxLength": 300
27680
28507
  }
27681
- }
28508
+ },
28509
+ "required": [
28510
+ "groups"
28511
+ ]
27682
28512
  },
27683
28513
  "themes": {
27684
28514
  "type": "object",
27685
28515
  "properties": {
27686
28516
  "default": {
27687
- "description": "The theme mode default value. Set to null to reset the override.",
27688
- "oneOf": [
27689
- {
27690
- "$ref": "#/components/schemas/CustomizationThemeMode"
27691
- },
27692
- {
27693
- "type": "string",
27694
- "nullable": true,
27695
- "enum": [
27696
- null
27697
- ]
27698
- }
27699
- ]
28517
+ "$ref": "#/components/schemas/CustomizationThemeMode"
27700
28518
  },
27701
28519
  "toggeable": {
27702
- "description": "Should the reader be able to switch between dark and light mode. Set to null to reset the override.",
27703
- "type": "boolean",
27704
- "nullable": true
28520
+ "description": "Should the reader be able to switch between dark and light mode",
28521
+ "type": "boolean"
27705
28522
  }
27706
- }
28523
+ },
28524
+ "required": [
28525
+ "default",
28526
+ "toggeable"
28527
+ ]
27707
28528
  },
27708
28529
  "pdf": {
27709
28530
  "type": "object",
27710
28531
  "properties": {
27711
28532
  "enabled": {
27712
28533
  "type": "boolean",
27713
- "description": "If true, PDF export is enabled for the published site. Set to null to reset the override.",
27714
- "nullable": true
28534
+ "description": "If true, PDF export is enabled for the published site."
27715
28535
  }
27716
28536
  },
27717
28537
  "required": [
@@ -27723,8 +28543,7 @@
27723
28543
  "properties": {
27724
28544
  "enabled": {
27725
28545
  "type": "boolean",
27726
- "description": "If true, feedback gathering is enabled. Set to null to reset the override.",
27727
- "nullable": true
28546
+ "description": "If true, feedback gathering is enabled"
27728
28547
  }
27729
28548
  },
27730
28549
  "required": [
@@ -27736,8 +28555,19 @@
27736
28555
  "properties": {
27737
28556
  "enabled": {
27738
28557
  "type": "boolean",
27739
- "description": "If true, AI search is enabled. Set to null to reset the override.",
27740
- "nullable": true
28558
+ "description": "If true, AI search is enabled"
28559
+ }
28560
+ },
28561
+ "required": [
28562
+ "enabled"
28563
+ ]
28564
+ },
28565
+ "advancedCustomization": {
28566
+ "type": "object",
28567
+ "properties": {
28568
+ "enabled": {
28569
+ "type": "boolean",
28570
+ "description": "If true, Advanced customization is enabled"
27741
28571
  }
27742
28572
  },
27743
28573
  "required": [
@@ -27749,8 +28579,7 @@
27749
28579
  "properties": {
27750
28580
  "showEditLink": {
27751
28581
  "type": "boolean",
27752
- "description": "Whether the published site should show a link to edit the content on the git provider set up in the Git Sync. Set to null to reset the override.",
27753
- "nullable": true
28582
+ "description": "Whether the published site should show a link to edit the content on the git provider set up in the Git Sync"
27754
28583
  }
27755
28584
  },
27756
28585
  "required": [
@@ -27762,8 +28591,7 @@
27762
28591
  "properties": {
27763
28592
  "enabled": {
27764
28593
  "type": "boolean",
27765
- "description": "Whether the pagination navigation should be displayed on pages. Set to null to reset the override.",
27766
- "nullable": true
28594
+ "description": "Whether the pagination navigation should be displayed on pages."
27767
28595
  }
27768
28596
  },
27769
28597
  "required": [
@@ -27775,8 +28603,7 @@
27775
28603
  "properties": {
27776
28604
  "enabled": {
27777
28605
  "type": "boolean",
27778
- "description": "Whether the GitBook trademark (\"Powered by GitBook\") should be visible. Set to null to reset the override.",
27779
- "nullable": true
28606
+ "description": "Whether the GitBook trademark (\"Powered by GitBook\") should be visible"
27780
28607
  }
27781
28608
  },
27782
28609
  "required": [
@@ -27787,19 +28614,7 @@
27787
28614
  "type": "object",
27788
28615
  "properties": {
27789
28616
  "url": {
27790
- "description": "The custom link to the privacy policy. Set to null to reset the override.",
27791
- "oneOf": [
27792
- {
27793
- "$ref": "#/components/schemas/URL"
27794
- },
27795
- {
27796
- "type": "string",
27797
- "nullable": true,
27798
- "enum": [
27799
- null
27800
- ]
27801
- }
27802
- ]
28617
+ "$ref": "#/components/schemas/URL"
27803
28618
  }
27804
28619
  }
27805
28620
  },
@@ -27807,23 +28622,49 @@
27807
28622
  "type": "object",
27808
28623
  "properties": {
27809
28624
  "url": {
27810
- "description": "The URL for the social preview image. Set to null to reset the override.",
27811
- "oneOf": [
27812
- {
27813
- "$ref": "#/components/schemas/URL"
27814
- },
27815
- {
27816
- "type": "string",
27817
- "nullable": true,
27818
- "enum": [
27819
- null
27820
- ]
27821
- }
27822
- ]
28625
+ "$ref": "#/components/schemas/URL"
27823
28626
  }
27824
28627
  }
27825
28628
  }
27826
- }
28629
+ },
28630
+ "required": [
28631
+ "styling",
28632
+ "internationalization",
28633
+ "favicon",
28634
+ "header",
28635
+ "footer",
28636
+ "themes",
28637
+ "pdf",
28638
+ "feedback",
28639
+ "aiSearch",
28640
+ "advancedCustomization",
28641
+ "trademark",
28642
+ "pagination",
28643
+ "git",
28644
+ "privacyPolicy",
28645
+ "socialPreview"
28646
+ ]
28647
+ },
28648
+ "SiteIntegrationScript": {
28649
+ "type": "object",
28650
+ "properties": {
28651
+ "script": {
28652
+ "description": "Script URL to load.",
28653
+ "$ref": "#/components/schemas/URL"
28654
+ },
28655
+ "contentSecurityPolicy": {
28656
+ "description": "Content Security Policy to secure the loading of this script.",
28657
+ "type": "string"
28658
+ },
28659
+ "cookies": {
28660
+ "type": "boolean",
28661
+ "description": "If true, the script will potentially load use cookies and visitors should be aware."
28662
+ }
28663
+ },
28664
+ "required": [
28665
+ "script",
28666
+ "cookies"
28667
+ ]
27827
28668
  },
27828
28669
  "SiteSpacePointer": {
27829
28670
  "type": "object",
@@ -28656,6 +29497,10 @@
28656
29497
  "shareKey": {
28657
29498
  "type": "string",
28658
29499
  "description": "Share link key of the site in case the site was published with share-links."
29500
+ },
29501
+ "complete": {
29502
+ "type": "boolean",
29503
+ "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."
28659
29504
  }
28660
29505
  },
28661
29506
  "required": [
@@ -28665,7 +29510,8 @@
28665
29510
  "pathname",
28666
29511
  "basePath",
28667
29512
  "apiToken",
28668
- "organization"
29513
+ "organization",
29514
+ "complete"
28669
29515
  ]
28670
29516
  }
28671
29517
  ]
@@ -28948,6 +29794,133 @@
28948
29794
  }
28949
29795
  ]
28950
29796
  },
29797
+ "ContentAPIBaseToken": {
29798
+ "type": "object",
29799
+ "description": "Common properties for all Content API tokens.",
29800
+ "properties": {
29801
+ "organization": {
29802
+ "type": "string",
29803
+ "description": "ID of the organization that owns the content. A content token is always scoped to spaces from the same organization."
29804
+ },
29805
+ "spaces": {
29806
+ "type": "array",
29807
+ "items": {
29808
+ "type": "string"
29809
+ },
29810
+ "description": "List of spaces that the token is allowed to access."
29811
+ },
29812
+ "rateLimitMultiplier": {
29813
+ "type": "number",
29814
+ "description": "Multiplier for the rate limit applied to the token."
29815
+ }
29816
+ },
29817
+ "required": [
29818
+ "organization",
29819
+ "spaces"
29820
+ ]
29821
+ },
29822
+ "SpaceAPIToken": {
29823
+ "allOf": [
29824
+ {
29825
+ "$ref": "#/components/schemas/ContentAPIBaseToken"
29826
+ },
29827
+ {
29828
+ "type": "object",
29829
+ "properties": {
29830
+ "kind": {
29831
+ "type": "string",
29832
+ "enum": [
29833
+ "space"
29834
+ ]
29835
+ },
29836
+ "space": {
29837
+ "type": "string",
29838
+ "description": "ID of the space that the token is allowed to access."
29839
+ }
29840
+ },
29841
+ "required": [
29842
+ "kind",
29843
+ "space"
29844
+ ]
29845
+ }
29846
+ ]
29847
+ },
29848
+ "CollectionAPIToken": {
29849
+ "allOf": [
29850
+ {
29851
+ "$ref": "#/components/schemas/ContentAPIBaseToken"
29852
+ },
29853
+ {
29854
+ "type": "object",
29855
+ "properties": {
29856
+ "kind": {
29857
+ "type": "string",
29858
+ "enum": [
29859
+ "collection"
29860
+ ]
29861
+ },
29862
+ "collection": {
29863
+ "type": "string",
29864
+ "description": "ID of the collection that the token is allowed to access."
29865
+ }
29866
+ },
29867
+ "required": [
29868
+ "kind",
29869
+ "collection"
29870
+ ]
29871
+ }
29872
+ ]
29873
+ },
29874
+ "SiteAPIToken": {
29875
+ "allOf": [
29876
+ {
29877
+ "$ref": "#/components/schemas/ContentAPIBaseToken"
29878
+ },
29879
+ {
29880
+ "type": "object",
29881
+ "properties": {
29882
+ "kind": {
29883
+ "type": "string",
29884
+ "enum": [
29885
+ "site"
29886
+ ]
29887
+ },
29888
+ "site": {
29889
+ "type": "string",
29890
+ "description": "ID of the site that the token is allowed to access."
29891
+ },
29892
+ "siteSpace": {
29893
+ "type": "string",
29894
+ "description": "ID of the site-space to be used when using this token for rendering published content."
29895
+ },
29896
+ "space": {
29897
+ "type": "string",
29898
+ "description": "ID of the space to be used when using this token for rendering published content."
29899
+ }
29900
+ },
29901
+ "required": [
29902
+ "kind",
29903
+ "site",
29904
+ "siteSpace",
29905
+ "space"
29906
+ ]
29907
+ }
29908
+ ]
29909
+ },
29910
+ "ContentAPITokenPayload": {
29911
+ "description": "Content properties stored in a Content API token.",
29912
+ "oneOf": [
29913
+ {
29914
+ "$ref": "#/components/schemas/SpaceAPIToken"
29915
+ },
29916
+ {
29917
+ "$ref": "#/components/schemas/CollectionAPIToken"
29918
+ },
29919
+ {
29920
+ "$ref": "#/components/schemas/SiteAPIToken"
29921
+ }
29922
+ ]
29923
+ },
28951
29924
  "SpaceInfoChannel": {
28952
29925
  "type": "object",
28953
29926
  "properties": {
@@ -30029,6 +31002,47 @@
30029
31002
  "siteShareLink"
30030
31003
  ]
30031
31004
  },
31005
+ "SiteSectionsChannel": {
31006
+ "type": "object",
31007
+ "description": "Subscription channel for changes in site sections in an organization.",
31008
+ "properties": {
31009
+ "channel": {
31010
+ "type": "string",
31011
+ "enum": [
31012
+ "site-sections"
31013
+ ]
31014
+ },
31015
+ "site": {
31016
+ "type": "string"
31017
+ }
31018
+ },
31019
+ "required": [
31020
+ "channel",
31021
+ "site"
31022
+ ]
31023
+ },
31024
+ "SiteSectionChannel": {
31025
+ "type": "object",
31026
+ "properties": {
31027
+ "channel": {
31028
+ "type": "string",
31029
+ "enum": [
31030
+ "site-section"
31031
+ ]
31032
+ },
31033
+ "site": {
31034
+ "type": "string"
31035
+ },
31036
+ "siteSection": {
31037
+ "type": "string"
31038
+ }
31039
+ },
31040
+ "required": [
31041
+ "channel",
31042
+ "site",
31043
+ "siteSection"
31044
+ ]
31045
+ },
30032
31046
  "CustomHostnameChannel": {
30033
31047
  "type": "object",
30034
31048
  "properties": {
@@ -30212,6 +31226,12 @@
30212
31226
  {
30213
31227
  "$ref": "#/components/schemas/SiteShareLinkChannel"
30214
31228
  },
31229
+ {
31230
+ "$ref": "#/components/schemas/SiteSectionsChannel"
31231
+ },
31232
+ {
31233
+ "$ref": "#/components/schemas/SiteSectionChannel"
31234
+ },
30215
31235
  {
30216
31236
  "$ref": "#/components/schemas/CustomHostnameChannel"
30217
31237
  }