@gitbook/api 0.182.0 → 0.183.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/dist/client.d.ts +149 -11
- package/dist/constants.d.ts +3 -2
- package/dist/index.cjs +31 -3
- package/dist/index.js +29 -3
- package/package.json +1 -1
- package/spec/openapi.json +427 -22
- package/spec/openapi.yaml +510 -250
package/spec/openapi.json
CHANGED
|
@@ -31,9 +31,6 @@
|
|
|
31
31
|
{
|
|
32
32
|
"user-staff": []
|
|
33
33
|
},
|
|
34
|
-
{
|
|
35
|
-
"user-internal-or-staff": []
|
|
36
|
-
},
|
|
37
34
|
{
|
|
38
35
|
"integration": []
|
|
39
36
|
},
|
|
@@ -636,6 +633,12 @@
|
|
|
636
633
|
"security": [
|
|
637
634
|
{
|
|
638
635
|
"user": []
|
|
636
|
+
},
|
|
637
|
+
{
|
|
638
|
+
"integration": []
|
|
639
|
+
},
|
|
640
|
+
{
|
|
641
|
+
"integration-installation": []
|
|
639
642
|
}
|
|
640
643
|
],
|
|
641
644
|
"parameters": [
|
|
@@ -1038,6 +1041,12 @@
|
|
|
1038
1041
|
"security": [
|
|
1039
1042
|
{
|
|
1040
1043
|
"user": []
|
|
1044
|
+
},
|
|
1045
|
+
{
|
|
1046
|
+
"integration": []
|
|
1047
|
+
},
|
|
1048
|
+
{
|
|
1049
|
+
"integration-installation": []
|
|
1041
1050
|
}
|
|
1042
1051
|
],
|
|
1043
1052
|
"parameters": [
|
|
@@ -1072,6 +1081,12 @@
|
|
|
1072
1081
|
"security": [
|
|
1073
1082
|
{
|
|
1074
1083
|
"user": []
|
|
1084
|
+
},
|
|
1085
|
+
{
|
|
1086
|
+
"integration": []
|
|
1087
|
+
},
|
|
1088
|
+
{
|
|
1089
|
+
"integration-installation": []
|
|
1075
1090
|
}
|
|
1076
1091
|
],
|
|
1077
1092
|
"parameters": [
|
|
@@ -1490,6 +1505,12 @@
|
|
|
1490
1505
|
"security": [
|
|
1491
1506
|
{
|
|
1492
1507
|
"user": []
|
|
1508
|
+
},
|
|
1509
|
+
{
|
|
1510
|
+
"integration": []
|
|
1511
|
+
},
|
|
1512
|
+
{
|
|
1513
|
+
"integration-installation": []
|
|
1493
1514
|
}
|
|
1494
1515
|
],
|
|
1495
1516
|
"parameters": [
|
|
@@ -4224,6 +4245,12 @@
|
|
|
4224
4245
|
"security": [
|
|
4225
4246
|
{
|
|
4226
4247
|
"user": []
|
|
4248
|
+
},
|
|
4249
|
+
{
|
|
4250
|
+
"integration": []
|
|
4251
|
+
},
|
|
4252
|
+
{
|
|
4253
|
+
"integration-installation": []
|
|
4227
4254
|
}
|
|
4228
4255
|
],
|
|
4229
4256
|
"parameters": [
|
|
@@ -4265,6 +4292,12 @@
|
|
|
4265
4292
|
"security": [
|
|
4266
4293
|
{
|
|
4267
4294
|
"user": []
|
|
4295
|
+
},
|
|
4296
|
+
{
|
|
4297
|
+
"integration": []
|
|
4298
|
+
},
|
|
4299
|
+
{
|
|
4300
|
+
"integration-installation": []
|
|
4268
4301
|
}
|
|
4269
4302
|
],
|
|
4270
4303
|
"parameters": [
|
|
@@ -4472,6 +4505,12 @@
|
|
|
4472
4505
|
"security": [
|
|
4473
4506
|
{
|
|
4474
4507
|
"user": []
|
|
4508
|
+
},
|
|
4509
|
+
{
|
|
4510
|
+
"integration": []
|
|
4511
|
+
},
|
|
4512
|
+
{
|
|
4513
|
+
"integration-installation": []
|
|
4475
4514
|
}
|
|
4476
4515
|
],
|
|
4477
4516
|
"parameters": [
|
|
@@ -6475,6 +6514,9 @@
|
|
|
6475
6514
|
"security": [
|
|
6476
6515
|
{
|
|
6477
6516
|
"integration": []
|
|
6517
|
+
},
|
|
6518
|
+
{
|
|
6519
|
+
"integration-installation": []
|
|
6478
6520
|
}
|
|
6479
6521
|
],
|
|
6480
6522
|
"parameters": [
|
|
@@ -6681,6 +6723,9 @@
|
|
|
6681
6723
|
"security": [
|
|
6682
6724
|
{
|
|
6683
6725
|
"integration": []
|
|
6726
|
+
},
|
|
6727
|
+
{
|
|
6728
|
+
"integration-installation": []
|
|
6684
6729
|
}
|
|
6685
6730
|
],
|
|
6686
6731
|
"parameters": [
|
|
@@ -6999,7 +7044,11 @@
|
|
|
6999
7044
|
"properties": {
|
|
7000
7045
|
"task": {
|
|
7001
7046
|
"type": "object",
|
|
7002
|
-
"description": "Payload for the integration task"
|
|
7047
|
+
"description": "Payload for the integration task",
|
|
7048
|
+
"additionalProperties": {
|
|
7049
|
+
"type": "string",
|
|
7050
|
+
"x-typescript": "unknown"
|
|
7051
|
+
}
|
|
7003
7052
|
},
|
|
7004
7053
|
"schedule": {
|
|
7005
7054
|
"type": "number",
|
|
@@ -7035,6 +7084,12 @@
|
|
|
7035
7084
|
"security": [
|
|
7036
7085
|
{
|
|
7037
7086
|
"user": []
|
|
7087
|
+
},
|
|
7088
|
+
{
|
|
7089
|
+
"integration": []
|
|
7090
|
+
},
|
|
7091
|
+
{
|
|
7092
|
+
"integration-installation": []
|
|
7038
7093
|
}
|
|
7039
7094
|
],
|
|
7040
7095
|
"parameters": [
|
|
@@ -7070,6 +7125,12 @@
|
|
|
7070
7125
|
"security": [
|
|
7071
7126
|
{
|
|
7072
7127
|
"user": []
|
|
7128
|
+
},
|
|
7129
|
+
{
|
|
7130
|
+
"integration": []
|
|
7131
|
+
},
|
|
7132
|
+
{
|
|
7133
|
+
"integration-installation": []
|
|
7073
7134
|
}
|
|
7074
7135
|
],
|
|
7075
7136
|
"parameters": [
|
|
@@ -9226,6 +9287,9 @@
|
|
|
9226
9287
|
"security": [
|
|
9227
9288
|
{
|
|
9228
9289
|
"user": []
|
|
9290
|
+
},
|
|
9291
|
+
{
|
|
9292
|
+
"integration-installation": []
|
|
9229
9293
|
}
|
|
9230
9294
|
],
|
|
9231
9295
|
"parameters": [
|
|
@@ -10107,6 +10171,12 @@
|
|
|
10107
10171
|
"security": [
|
|
10108
10172
|
{
|
|
10109
10173
|
"user": []
|
|
10174
|
+
},
|
|
10175
|
+
{
|
|
10176
|
+
"integration": []
|
|
10177
|
+
},
|
|
10178
|
+
{
|
|
10179
|
+
"integration-installation": []
|
|
10110
10180
|
}
|
|
10111
10181
|
],
|
|
10112
10182
|
"parameters": [
|
|
@@ -11899,6 +11969,12 @@
|
|
|
11899
11969
|
"security": [
|
|
11900
11970
|
{
|
|
11901
11971
|
"user": []
|
|
11972
|
+
},
|
|
11973
|
+
{
|
|
11974
|
+
"integration": []
|
|
11975
|
+
},
|
|
11976
|
+
{
|
|
11977
|
+
"integration-installation": []
|
|
11902
11978
|
}
|
|
11903
11979
|
],
|
|
11904
11980
|
"parameters": [
|
|
@@ -11938,6 +12014,12 @@
|
|
|
11938
12014
|
"security": [
|
|
11939
12015
|
{
|
|
11940
12016
|
"user": []
|
|
12017
|
+
},
|
|
12018
|
+
{
|
|
12019
|
+
"integration": []
|
|
12020
|
+
},
|
|
12021
|
+
{
|
|
12022
|
+
"integration-installation": []
|
|
11941
12023
|
}
|
|
11942
12024
|
],
|
|
11943
12025
|
"parameters": [
|
|
@@ -13190,7 +13272,7 @@
|
|
|
13190
13272
|
},
|
|
13191
13273
|
"draft": {
|
|
13192
13274
|
"type": "boolean",
|
|
13193
|
-
"description": "Whether the site section group
|
|
13275
|
+
"description": "Whether the site section group should be kept in draft mode. Setting it to true makes the site section group draft. Setting it to false makes the site section group live."
|
|
13194
13276
|
}
|
|
13195
13277
|
}
|
|
13196
13278
|
}
|
|
@@ -13456,7 +13538,7 @@
|
|
|
13456
13538
|
},
|
|
13457
13539
|
"draft": {
|
|
13458
13540
|
"type": "boolean",
|
|
13459
|
-
"description": "Whether the site section
|
|
13541
|
+
"description": "Whether the site section should be kept in draft mode. Setting it to true makes the site section draft. Setting it to false makes the site section live."
|
|
13460
13542
|
},
|
|
13461
13543
|
"description": {
|
|
13462
13544
|
"oneOf": [
|
|
@@ -15844,7 +15926,7 @@
|
|
|
15844
15926
|
},
|
|
15845
15927
|
"draft": {
|
|
15846
15928
|
"type": "boolean",
|
|
15847
|
-
"description": "Whether the site space should be kept in draft mode. Setting it to false makes the site space live."
|
|
15929
|
+
"description": "Whether the site space should be kept in draft mode. Setting it to true makes the site space draft. Setting it to false makes the site space live."
|
|
15848
15930
|
}
|
|
15849
15931
|
}
|
|
15850
15932
|
}
|
|
@@ -17270,6 +17352,73 @@
|
|
|
17270
17352
|
}
|
|
17271
17353
|
}
|
|
17272
17354
|
},
|
|
17355
|
+
"/orgs/{organizationId}/sites/{siteId}/styleguide": {
|
|
17356
|
+
"post": {
|
|
17357
|
+
"operationId": "createSiteStyleguideById",
|
|
17358
|
+
"summary": "Create or return a site's styleguide",
|
|
17359
|
+
"description": "Ensures the site has a site-owned styleguide backing space and returns\na reference to it.\n",
|
|
17360
|
+
"tags": [
|
|
17361
|
+
"sites"
|
|
17362
|
+
],
|
|
17363
|
+
"security": [
|
|
17364
|
+
{
|
|
17365
|
+
"user": []
|
|
17366
|
+
}
|
|
17367
|
+
],
|
|
17368
|
+
"parameters": [
|
|
17369
|
+
{
|
|
17370
|
+
"$ref": "#/components/parameters/organizationId"
|
|
17371
|
+
},
|
|
17372
|
+
{
|
|
17373
|
+
"$ref": "#/components/parameters/siteId"
|
|
17374
|
+
}
|
|
17375
|
+
],
|
|
17376
|
+
"responses": {
|
|
17377
|
+
"200": {
|
|
17378
|
+
"description": "Styleguide created or already exists.",
|
|
17379
|
+
"content": {
|
|
17380
|
+
"application/json": {
|
|
17381
|
+
"schema": {
|
|
17382
|
+
"$ref": "#/components/schemas/ContentRefSpace"
|
|
17383
|
+
}
|
|
17384
|
+
}
|
|
17385
|
+
}
|
|
17386
|
+
},
|
|
17387
|
+
"404": {
|
|
17388
|
+
"$ref": "#/components/responses/NotFoundError"
|
|
17389
|
+
}
|
|
17390
|
+
}
|
|
17391
|
+
},
|
|
17392
|
+
"delete": {
|
|
17393
|
+
"operationId": "deleteSiteStyleguideById",
|
|
17394
|
+
"summary": "Delete a site's styleguide",
|
|
17395
|
+
"description": "Clears the site's styleguide reference and soft-deletes the space.\n",
|
|
17396
|
+
"tags": [
|
|
17397
|
+
"sites"
|
|
17398
|
+
],
|
|
17399
|
+
"security": [
|
|
17400
|
+
{
|
|
17401
|
+
"user": []
|
|
17402
|
+
}
|
|
17403
|
+
],
|
|
17404
|
+
"parameters": [
|
|
17405
|
+
{
|
|
17406
|
+
"$ref": "#/components/parameters/organizationId"
|
|
17407
|
+
},
|
|
17408
|
+
{
|
|
17409
|
+
"$ref": "#/components/parameters/siteId"
|
|
17410
|
+
}
|
|
17411
|
+
],
|
|
17412
|
+
"responses": {
|
|
17413
|
+
"204": {
|
|
17414
|
+
"description": "Styleguide deleted."
|
|
17415
|
+
},
|
|
17416
|
+
"404": {
|
|
17417
|
+
"$ref": "#/components/responses/NotFoundError"
|
|
17418
|
+
}
|
|
17419
|
+
}
|
|
17420
|
+
}
|
|
17421
|
+
},
|
|
17273
17422
|
"/orgs/{organizationId}/sites/{siteId}/insights/events": {
|
|
17274
17423
|
"post": {
|
|
17275
17424
|
"operationId": "trackEventsInSiteById",
|
|
@@ -18559,7 +18708,10 @@
|
|
|
18559
18708
|
],
|
|
18560
18709
|
"security": [
|
|
18561
18710
|
{
|
|
18562
|
-
"user-internal
|
|
18711
|
+
"user-internal": []
|
|
18712
|
+
},
|
|
18713
|
+
{
|
|
18714
|
+
"user-staff": []
|
|
18563
18715
|
}
|
|
18564
18716
|
],
|
|
18565
18717
|
"parameters": [
|
|
@@ -18924,6 +19076,12 @@
|
|
|
18924
19076
|
"security": [
|
|
18925
19077
|
{
|
|
18926
19078
|
"user": []
|
|
19079
|
+
},
|
|
19080
|
+
{
|
|
19081
|
+
"integration": []
|
|
19082
|
+
},
|
|
19083
|
+
{
|
|
19084
|
+
"integration-installation": []
|
|
18927
19085
|
}
|
|
18928
19086
|
],
|
|
18929
19087
|
"parameters": [
|
|
@@ -19522,10 +19680,6 @@
|
|
|
19522
19680
|
"type": "http",
|
|
19523
19681
|
"scheme": "bearer"
|
|
19524
19682
|
},
|
|
19525
|
-
"user-internal-or-staff": {
|
|
19526
|
-
"type": "http",
|
|
19527
|
-
"scheme": "bearer"
|
|
19528
|
-
},
|
|
19529
19683
|
"integration": {
|
|
19530
19684
|
"type": "http",
|
|
19531
19685
|
"scheme": "bearer"
|
|
@@ -19533,6 +19687,18 @@
|
|
|
19533
19687
|
"integration-installation": {
|
|
19534
19688
|
"type": "http",
|
|
19535
19689
|
"scheme": "bearer"
|
|
19690
|
+
},
|
|
19691
|
+
"oauth": {
|
|
19692
|
+
"type": "oauth2",
|
|
19693
|
+
"flows": {
|
|
19694
|
+
"authorizationCode": {
|
|
19695
|
+
"authorizationUrl": "https://oauth.gitbook.com/authorize",
|
|
19696
|
+
"tokenUrl": "https://oauth.gitbook.com/token",
|
|
19697
|
+
"scopes": {
|
|
19698
|
+
"api:read": "Read GitBook API resources."
|
|
19699
|
+
}
|
|
19700
|
+
}
|
|
19701
|
+
}
|
|
19536
19702
|
}
|
|
19537
19703
|
},
|
|
19538
19704
|
"parameters": {
|
|
@@ -20545,6 +20711,10 @@
|
|
|
20545
20711
|
},
|
|
20546
20712
|
"expression": {
|
|
20547
20713
|
"$ref": "#/components/schemas/Expression"
|
|
20714
|
+
},
|
|
20715
|
+
"message": {
|
|
20716
|
+
"type": "string",
|
|
20717
|
+
"description": "Optional message to display when the expression evaluates to false."
|
|
20548
20718
|
}
|
|
20549
20719
|
},
|
|
20550
20720
|
"required": [
|
|
@@ -26287,6 +26457,14 @@
|
|
|
26287
26457
|
"downloadLink": {
|
|
26288
26458
|
"type": "boolean",
|
|
26289
26459
|
"description": "Whether to show a link to download the OpenAPI spec."
|
|
26460
|
+
},
|
|
26461
|
+
"grouping": {
|
|
26462
|
+
"type": "string",
|
|
26463
|
+
"enum": [
|
|
26464
|
+
"by-tag",
|
|
26465
|
+
"by-operation"
|
|
26466
|
+
],
|
|
26467
|
+
"description": "How GitBook will group generated pages. \"by-tag\" groups operations under their tag; \"by-operation\" creates a separate page per operation. Defaults to \"by-tag\" when absent."
|
|
26290
26468
|
}
|
|
26291
26469
|
},
|
|
26292
26470
|
"required": [
|
|
@@ -26799,6 +26977,62 @@
|
|
|
26799
26977
|
"minLength": 1
|
|
26800
26978
|
}
|
|
26801
26979
|
}
|
|
26980
|
+
},
|
|
26981
|
+
{
|
|
26982
|
+
"type": "object",
|
|
26983
|
+
"required": [
|
|
26984
|
+
"doc",
|
|
26985
|
+
"page",
|
|
26986
|
+
"method"
|
|
26987
|
+
],
|
|
26988
|
+
"properties": {
|
|
26989
|
+
"doc": {
|
|
26990
|
+
"type": "string",
|
|
26991
|
+
"enum": [
|
|
26992
|
+
"operation"
|
|
26993
|
+
]
|
|
26994
|
+
},
|
|
26995
|
+
"page": {
|
|
26996
|
+
"type": "string",
|
|
26997
|
+
"minLength": 1
|
|
26998
|
+
},
|
|
26999
|
+
"method": {
|
|
27000
|
+
"type": "string",
|
|
27001
|
+
"enum": [
|
|
27002
|
+
"get",
|
|
27003
|
+
"post",
|
|
27004
|
+
"put",
|
|
27005
|
+
"delete",
|
|
27006
|
+
"patch",
|
|
27007
|
+
"options",
|
|
27008
|
+
"head",
|
|
27009
|
+
"trace",
|
|
27010
|
+
"hook"
|
|
27011
|
+
]
|
|
27012
|
+
},
|
|
27013
|
+
"deprecated": {
|
|
27014
|
+
"type": "boolean"
|
|
27015
|
+
}
|
|
27016
|
+
}
|
|
27017
|
+
},
|
|
27018
|
+
{
|
|
27019
|
+
"type": "object",
|
|
27020
|
+
"required": [
|
|
27021
|
+
"doc",
|
|
27022
|
+
"page"
|
|
27023
|
+
],
|
|
27024
|
+
"properties": {
|
|
27025
|
+
"doc": {
|
|
27026
|
+
"type": "string",
|
|
27027
|
+
"enum": [
|
|
27028
|
+
"tag"
|
|
27029
|
+
]
|
|
27030
|
+
},
|
|
27031
|
+
"page": {
|
|
27032
|
+
"type": "string",
|
|
27033
|
+
"minLength": 1
|
|
27034
|
+
}
|
|
27035
|
+
}
|
|
26802
27036
|
}
|
|
26803
27037
|
]
|
|
26804
27038
|
}
|
|
@@ -30187,6 +30421,7 @@
|
|
|
30187
30421
|
"site:script:inject",
|
|
30188
30422
|
"site:script:cookies",
|
|
30189
30423
|
"site:visitor:auth",
|
|
30424
|
+
"site:visitor:claims",
|
|
30190
30425
|
"site:adaptive:read",
|
|
30191
30426
|
"site:adaptive:write",
|
|
30192
30427
|
"conversations:ingest",
|
|
@@ -30649,13 +30884,19 @@
|
|
|
30649
30884
|
"type": "string",
|
|
30650
30885
|
"description": "Public HTTP endpoint for the integration",
|
|
30651
30886
|
"format": "uri"
|
|
30887
|
+
},
|
|
30888
|
+
"publicContentEndpoint": {
|
|
30889
|
+
"type": "string",
|
|
30890
|
+
"description": "Public endpoint serving the integration's rendered content (e.g. WebFrames), isolated from the cookie-bearing publicEndpoint origin. Equals publicEndpoint when no separate content origin is configured.",
|
|
30891
|
+
"format": "uri"
|
|
30652
30892
|
}
|
|
30653
30893
|
},
|
|
30654
30894
|
"required": [
|
|
30655
30895
|
"location",
|
|
30656
30896
|
"app",
|
|
30657
30897
|
"assets",
|
|
30658
|
-
"publicEndpoint"
|
|
30898
|
+
"publicEndpoint",
|
|
30899
|
+
"publicContentEndpoint"
|
|
30659
30900
|
]
|
|
30660
30901
|
},
|
|
30661
30902
|
"permissions": {
|
|
@@ -30920,12 +31161,18 @@
|
|
|
30920
31161
|
"type": "string",
|
|
30921
31162
|
"description": "Public HTTP endpoint for the integration's installation",
|
|
30922
31163
|
"format": "uri"
|
|
31164
|
+
},
|
|
31165
|
+
"publicContentEndpoint": {
|
|
31166
|
+
"type": "string",
|
|
31167
|
+
"description": "Public endpoint serving the integration's rendered content (e.g. WebFrames), isolated from the cookie-bearing publicEndpoint origin. Equals publicEndpoint when no separate content origin is configured.",
|
|
31168
|
+
"format": "uri"
|
|
30923
31169
|
}
|
|
30924
31170
|
},
|
|
30925
31171
|
"required": [
|
|
30926
31172
|
"location",
|
|
30927
31173
|
"app",
|
|
30928
|
-
"publicEndpoint"
|
|
31174
|
+
"publicEndpoint",
|
|
31175
|
+
"publicContentEndpoint"
|
|
30929
31176
|
]
|
|
30930
31177
|
},
|
|
30931
31178
|
"externalIds": {
|
|
@@ -31359,11 +31606,19 @@
|
|
|
31359
31606
|
"revisionId": {
|
|
31360
31607
|
"type": "string",
|
|
31361
31608
|
"description": "Unique identifier of the new content revision"
|
|
31609
|
+
},
|
|
31610
|
+
"updatedBy": {
|
|
31611
|
+
"type": "array",
|
|
31612
|
+
"description": "Users who updated the content",
|
|
31613
|
+
"items": {
|
|
31614
|
+
"$ref": "#/components/schemas/User"
|
|
31615
|
+
}
|
|
31362
31616
|
}
|
|
31363
31617
|
},
|
|
31364
31618
|
"required": [
|
|
31365
31619
|
"type",
|
|
31366
|
-
"revisionId"
|
|
31620
|
+
"revisionId",
|
|
31621
|
+
"updatedBy"
|
|
31367
31622
|
]
|
|
31368
31623
|
}
|
|
31369
31624
|
]
|
|
@@ -32211,11 +32466,17 @@
|
|
|
32211
32466
|
"type": "string",
|
|
32212
32467
|
"description": "Public HTTP endpoint for the integration's installation",
|
|
32213
32468
|
"format": "uri"
|
|
32469
|
+
},
|
|
32470
|
+
"publicContentEndpoint": {
|
|
32471
|
+
"type": "string",
|
|
32472
|
+
"description": "Public endpoint serving the integration's rendered content (e.g. WebFrames), isolated from the cookie-bearing publicEndpoint origin. Equals publicEndpoint when no separate content origin is configured.",
|
|
32473
|
+
"format": "uri"
|
|
32214
32474
|
}
|
|
32215
32475
|
},
|
|
32216
32476
|
"required": [
|
|
32217
32477
|
"location",
|
|
32218
|
-
"publicEndpoint"
|
|
32478
|
+
"publicEndpoint",
|
|
32479
|
+
"publicContentEndpoint"
|
|
32219
32480
|
]
|
|
32220
32481
|
}
|
|
32221
32482
|
},
|
|
@@ -32625,6 +32886,10 @@
|
|
|
32625
32886
|
"ads": {
|
|
32626
32887
|
"$ref": "#/components/schemas/SiteAds"
|
|
32627
32888
|
},
|
|
32889
|
+
"styleguide": {
|
|
32890
|
+
"$ref": "#/components/schemas/ContentRefSpace",
|
|
32891
|
+
"description": "Reference to a GitBook space holding the team's writing styleguide.\nWhen present on a site, the editing agent receives the styleguide\ntable of contents in its system prompt and can fetch sections on\ndemand to check edits against the rules.\n"
|
|
32892
|
+
},
|
|
32628
32893
|
"features": {
|
|
32629
32894
|
"description": "A list of all premium features enabled on this site. For each feature we list the plan they belong to and whether the feature is frozen. A frozen feature is still enabled but cannot be changed or modified.\n",
|
|
32630
32895
|
"type": "array",
|
|
@@ -33991,6 +34256,10 @@
|
|
|
33991
34256
|
},
|
|
33992
34257
|
"props": {
|
|
33993
34258
|
"$ref": "#/components/schemas/PlainObject"
|
|
34259
|
+
},
|
|
34260
|
+
"canAccessVisitorClaims": {
|
|
34261
|
+
"type": "boolean",
|
|
34262
|
+
"description": "Whether the rendered integration UI can receive visitor claims."
|
|
33994
34263
|
}
|
|
33995
34264
|
},
|
|
33996
34265
|
"required": [
|
|
@@ -37500,6 +37769,18 @@
|
|
|
37500
37769
|
},
|
|
37501
37770
|
"maxItems": 5
|
|
37502
37771
|
},
|
|
37772
|
+
"CustomizationPageActionType": {
|
|
37773
|
+
"type": "string",
|
|
37774
|
+
"description": "Type of a built-in page action that can be displayed in the page actions menu of a published page.",
|
|
37775
|
+
"enum": [
|
|
37776
|
+
"assistant",
|
|
37777
|
+
"external-ai",
|
|
37778
|
+
"markdown",
|
|
37779
|
+
"mcp",
|
|
37780
|
+
"git",
|
|
37781
|
+
"pdf"
|
|
37782
|
+
]
|
|
37783
|
+
},
|
|
37503
37784
|
"SiteExternalLinksTarget": {
|
|
37504
37785
|
"type": "string",
|
|
37505
37786
|
"description": "How external links should open when clicked.\n- `self`: External links open in the current tab.\n- `blank`: External links open in a new browser tab.\n",
|
|
@@ -37781,7 +38062,8 @@
|
|
|
37781
38062
|
"properties": {
|
|
37782
38063
|
"enabled": {
|
|
37783
38064
|
"type": "boolean",
|
|
37784
|
-
"
|
|
38065
|
+
"deprecated": true,
|
|
38066
|
+
"description": "Deprecated: use `pageActions.items` instead. If true, PDF export is enabled for the published site. Kept in sync with the presence of `pdf` in `pageActions.items`."
|
|
37785
38067
|
}
|
|
37786
38068
|
},
|
|
37787
38069
|
"required": [
|
|
@@ -37831,7 +38113,8 @@
|
|
|
37831
38113
|
"properties": {
|
|
37832
38114
|
"showEditLink": {
|
|
37833
38115
|
"type": "boolean",
|
|
37834
|
-
"
|
|
38116
|
+
"deprecated": true,
|
|
38117
|
+
"description": "Deprecated: use `pageActions.items` instead. Whether the published site should show a link to edit the content on the git provider set up in the Git Sync. Kept in sync with the presence of `git` in `pageActions.items`."
|
|
37835
38118
|
}
|
|
37836
38119
|
},
|
|
37837
38120
|
"required": [
|
|
@@ -37843,15 +38126,25 @@
|
|
|
37843
38126
|
"properties": {
|
|
37844
38127
|
"externalAI": {
|
|
37845
38128
|
"type": "boolean",
|
|
37846
|
-
"
|
|
38129
|
+
"deprecated": true,
|
|
38130
|
+
"description": "Deprecated: use `items` instead. Whether actions to open ChatGPT, Anthropic, etc. should be available in the page menu. Kept in sync with the presence of `external-ai` in `items`."
|
|
37847
38131
|
},
|
|
37848
38132
|
"markdown": {
|
|
37849
38133
|
"type": "boolean",
|
|
37850
|
-
"
|
|
38134
|
+
"deprecated": true,
|
|
38135
|
+
"description": "Deprecated: use `items` instead. Whether the copy and open the markdown version of the page should be available in the page menu. Kept in sync with the presence of `markdown` in `items`."
|
|
37851
38136
|
},
|
|
37852
38137
|
"mcp": {
|
|
37853
38138
|
"type": "boolean",
|
|
37854
|
-
"
|
|
38139
|
+
"deprecated": true,
|
|
38140
|
+
"description": "Deprecated: use `items` instead. Whether an action to connect to the docs using the MCP server should be available in the page menu. Kept in sync with the presence of `mcp` in `items`."
|
|
38141
|
+
},
|
|
38142
|
+
"items": {
|
|
38143
|
+
"type": "array",
|
|
38144
|
+
"description": "Ordered list of the page actions enabled in the page menu. This is the source of truth for\nwhich actions are enabled and in which order: the position defines the display order, the\nfirst action is the default one, surfaced as the main button on the page, and actions not\npresent in the list are disabled. When omitted on input, the deprecated `externalAI`,\n`markdown`, `mcp`, `pdf` and `git` flags are used to derive the list. The `assistant` action\nis governed by the `ai.mode` setting rather than this list: it is always present (prepended\nby default if missing, otherwise keeping its position) when the assistant is enabled, and\nalways absent when it is disabled.\n",
|
|
38145
|
+
"items": {
|
|
38146
|
+
"$ref": "#/components/schemas/CustomizationPageActionType"
|
|
38147
|
+
}
|
|
37855
38148
|
}
|
|
37856
38149
|
},
|
|
37857
38150
|
"required": [
|
|
@@ -40398,6 +40691,106 @@
|
|
|
40398
40691
|
"revisionId"
|
|
40399
40692
|
]
|
|
40400
40693
|
},
|
|
40694
|
+
"AIToolCallGetVariables": {
|
|
40695
|
+
"type": "object",
|
|
40696
|
+
"properties": {
|
|
40697
|
+
"tool": {
|
|
40698
|
+
"type": "string",
|
|
40699
|
+
"enum": [
|
|
40700
|
+
"getVariables"
|
|
40701
|
+
]
|
|
40702
|
+
},
|
|
40703
|
+
"spaceId": {
|
|
40704
|
+
"type": "string",
|
|
40705
|
+
"description": "The ID of the space being accessed."
|
|
40706
|
+
},
|
|
40707
|
+
"revisionId": {
|
|
40708
|
+
"type": "string",
|
|
40709
|
+
"description": "The revision ID of the space."
|
|
40710
|
+
}
|
|
40711
|
+
},
|
|
40712
|
+
"required": [
|
|
40713
|
+
"tool",
|
|
40714
|
+
"spaceId",
|
|
40715
|
+
"revisionId"
|
|
40716
|
+
]
|
|
40717
|
+
},
|
|
40718
|
+
"AIToolCallUpdateVariables": {
|
|
40719
|
+
"type": "object",
|
|
40720
|
+
"properties": {
|
|
40721
|
+
"tool": {
|
|
40722
|
+
"type": "string",
|
|
40723
|
+
"enum": [
|
|
40724
|
+
"updateVariables"
|
|
40725
|
+
]
|
|
40726
|
+
},
|
|
40727
|
+
"spaceId": {
|
|
40728
|
+
"type": "string",
|
|
40729
|
+
"description": "The ID of the space being edited."
|
|
40730
|
+
},
|
|
40731
|
+
"baseRevisionId": {
|
|
40732
|
+
"type": "string",
|
|
40733
|
+
"description": "The base revision ID used to compare the change in the current conversation."
|
|
40734
|
+
},
|
|
40735
|
+
"page": {
|
|
40736
|
+
"description": "The page whose variables are being updated. Omitted when updating space variables.",
|
|
40737
|
+
"$ref": "#/components/schemas/ChangedRevisionPage"
|
|
40738
|
+
}
|
|
40739
|
+
},
|
|
40740
|
+
"required": [
|
|
40741
|
+
"tool",
|
|
40742
|
+
"spaceId",
|
|
40743
|
+
"baseRevisionId"
|
|
40744
|
+
]
|
|
40745
|
+
},
|
|
40746
|
+
"AIToolCallGetTags": {
|
|
40747
|
+
"type": "object",
|
|
40748
|
+
"properties": {
|
|
40749
|
+
"tool": {
|
|
40750
|
+
"type": "string",
|
|
40751
|
+
"enum": [
|
|
40752
|
+
"getTags"
|
|
40753
|
+
]
|
|
40754
|
+
},
|
|
40755
|
+
"spaceId": {
|
|
40756
|
+
"type": "string",
|
|
40757
|
+
"description": "The ID of the space being accessed."
|
|
40758
|
+
},
|
|
40759
|
+
"revisionId": {
|
|
40760
|
+
"type": "string",
|
|
40761
|
+
"description": "The revision ID of the space."
|
|
40762
|
+
}
|
|
40763
|
+
},
|
|
40764
|
+
"required": [
|
|
40765
|
+
"tool",
|
|
40766
|
+
"spaceId",
|
|
40767
|
+
"revisionId"
|
|
40768
|
+
]
|
|
40769
|
+
},
|
|
40770
|
+
"AIToolCallUpdateTags": {
|
|
40771
|
+
"type": "object",
|
|
40772
|
+
"properties": {
|
|
40773
|
+
"tool": {
|
|
40774
|
+
"type": "string",
|
|
40775
|
+
"enum": [
|
|
40776
|
+
"updateTags"
|
|
40777
|
+
]
|
|
40778
|
+
},
|
|
40779
|
+
"spaceId": {
|
|
40780
|
+
"type": "string",
|
|
40781
|
+
"description": "The ID of the space being edited."
|
|
40782
|
+
},
|
|
40783
|
+
"baseRevisionId": {
|
|
40784
|
+
"type": "string",
|
|
40785
|
+
"description": "The base revision ID used to compare the change in the current conversation."
|
|
40786
|
+
}
|
|
40787
|
+
},
|
|
40788
|
+
"required": [
|
|
40789
|
+
"tool",
|
|
40790
|
+
"spaceId",
|
|
40791
|
+
"baseRevisionId"
|
|
40792
|
+
]
|
|
40793
|
+
},
|
|
40401
40794
|
"AIToolCallCreateChangeRequest": {
|
|
40402
40795
|
"type": "object",
|
|
40403
40796
|
"properties": {
|
|
@@ -40660,6 +41053,18 @@
|
|
|
40660
41053
|
{
|
|
40661
41054
|
"$ref": "#/components/schemas/AIToolCallGetReusableContent"
|
|
40662
41055
|
},
|
|
41056
|
+
{
|
|
41057
|
+
"$ref": "#/components/schemas/AIToolCallGetVariables"
|
|
41058
|
+
},
|
|
41059
|
+
{
|
|
41060
|
+
"$ref": "#/components/schemas/AIToolCallUpdateVariables"
|
|
41061
|
+
},
|
|
41062
|
+
{
|
|
41063
|
+
"$ref": "#/components/schemas/AIToolCallGetTags"
|
|
41064
|
+
},
|
|
41065
|
+
{
|
|
41066
|
+
"$ref": "#/components/schemas/AIToolCallUpdateTags"
|
|
41067
|
+
},
|
|
40663
41068
|
{
|
|
40664
41069
|
"$ref": "#/components/schemas/AIToolCallCreateChangeRequest"
|
|
40665
41070
|
},
|
|
@@ -44672,7 +45077,7 @@
|
|
|
44672
45077
|
"type": "string",
|
|
44673
45078
|
"description": "The source path to redirect from.",
|
|
44674
45079
|
"maxLength": 512,
|
|
44675
|
-
"pattern": "^\\/(?!\\*)(?!.*\\*.+)(?:[A-Za-z0-9\\-._
|
|
45080
|
+
"pattern": "^\\/(?!\\*)(?!.*\\*.+)(?:[A-Za-z0-9\\-._~+]|%[0-9A-Fa-f]{2})+(?:\\/(?:[A-Za-z0-9\\-._~+]|%[0-9A-Fa-f]{2})+)*(?:\\/\\*|\\*)?$"
|
|
44676
45081
|
},
|
|
44677
45082
|
"SiteRedirectDestinationSiteSection": {
|
|
44678
45083
|
"type": "object",
|