@gitbook/api 0.146.0 → 0.147.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +47 -7
- package/dist/constants.d.ts +158 -0
- package/dist/index.cjs +477 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +319 -1
- package/package.json +1 -1
- package/spec/openapi.json +191 -17
- package/spec/openapi.yaml +121 -14
package/spec/openapi.json
CHANGED
|
@@ -1572,7 +1572,20 @@
|
|
|
1572
1572
|
"content": {
|
|
1573
1573
|
"application/json": {
|
|
1574
1574
|
"schema": {
|
|
1575
|
-
"
|
|
1575
|
+
"allOf": [
|
|
1576
|
+
{
|
|
1577
|
+
"$ref": "#/components/schemas/ApplySpaceTemplate"
|
|
1578
|
+
},
|
|
1579
|
+
{
|
|
1580
|
+
"type": "object",
|
|
1581
|
+
"properties": {
|
|
1582
|
+
"changeRequestId": {
|
|
1583
|
+
"type": "string",
|
|
1584
|
+
"description": "The ID of the change request to apply the template to. If not provided, the template is applied to the main content."
|
|
1585
|
+
}
|
|
1586
|
+
}
|
|
1587
|
+
}
|
|
1588
|
+
]
|
|
1576
1589
|
}
|
|
1577
1590
|
}
|
|
1578
1591
|
}
|
|
@@ -2275,17 +2288,54 @@
|
|
|
2275
2288
|
"content": {
|
|
2276
2289
|
"application/json": {
|
|
2277
2290
|
"schema": {
|
|
2278
|
-
"
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
"
|
|
2282
|
-
|
|
2291
|
+
"allOf": [
|
|
2292
|
+
{
|
|
2293
|
+
"type": "object",
|
|
2294
|
+
"properties": {
|
|
2295
|
+
"subject": {
|
|
2296
|
+
"type": "string",
|
|
2297
|
+
"description": "Subject of the change-request"
|
|
2298
|
+
}
|
|
2299
|
+
}
|
|
2283
2300
|
},
|
|
2284
|
-
|
|
2285
|
-
"
|
|
2286
|
-
|
|
2301
|
+
{
|
|
2302
|
+
"anyOf": [
|
|
2303
|
+
{
|
|
2304
|
+
"type": "object",
|
|
2305
|
+
"properties": {},
|
|
2306
|
+
"additionalProperties": true
|
|
2307
|
+
},
|
|
2308
|
+
{
|
|
2309
|
+
"oneOf": [
|
|
2310
|
+
{
|
|
2311
|
+
"type": "object",
|
|
2312
|
+
"properties": {
|
|
2313
|
+
"agentTaskId": {
|
|
2314
|
+
"type": "string",
|
|
2315
|
+
"description": "ID of the agent task to implement"
|
|
2316
|
+
}
|
|
2317
|
+
},
|
|
2318
|
+
"required": [
|
|
2319
|
+
"agentTaskId"
|
|
2320
|
+
]
|
|
2321
|
+
},
|
|
2322
|
+
{
|
|
2323
|
+
"type": "object",
|
|
2324
|
+
"properties": {
|
|
2325
|
+
"template": {
|
|
2326
|
+
"$ref": "#/components/schemas/ApplySpaceTemplate",
|
|
2327
|
+
"description": "Template to apply to the change request"
|
|
2328
|
+
}
|
|
2329
|
+
},
|
|
2330
|
+
"required": [
|
|
2331
|
+
"template"
|
|
2332
|
+
]
|
|
2333
|
+
}
|
|
2334
|
+
]
|
|
2335
|
+
}
|
|
2336
|
+
]
|
|
2287
2337
|
}
|
|
2288
|
-
|
|
2338
|
+
]
|
|
2289
2339
|
}
|
|
2290
2340
|
}
|
|
2291
2341
|
}
|
|
@@ -15351,7 +15401,6 @@
|
|
|
15351
15401
|
"tags": [
|
|
15352
15402
|
"sites"
|
|
15353
15403
|
],
|
|
15354
|
-
"x-internal": true,
|
|
15355
15404
|
"security": [
|
|
15356
15405
|
{
|
|
15357
15406
|
"user": []
|
|
@@ -18415,6 +18464,21 @@
|
|
|
18415
18464
|
"$ref": "#/components/schemas/SearchSectionResult"
|
|
18416
18465
|
}
|
|
18417
18466
|
},
|
|
18467
|
+
"ancestors": {
|
|
18468
|
+
"type": "array",
|
|
18469
|
+
"description": "Data about the ancestors of the current page, from top-level to direct parent.",
|
|
18470
|
+
"items": {
|
|
18471
|
+
"type": "object",
|
|
18472
|
+
"properties": {
|
|
18473
|
+
"title": {
|
|
18474
|
+
"type": "string"
|
|
18475
|
+
}
|
|
18476
|
+
},
|
|
18477
|
+
"required": [
|
|
18478
|
+
"title"
|
|
18479
|
+
]
|
|
18480
|
+
}
|
|
18481
|
+
},
|
|
18418
18482
|
"urls": {
|
|
18419
18483
|
"type": "object",
|
|
18420
18484
|
"description": "URLs associated with the object",
|
|
@@ -18434,6 +18498,7 @@
|
|
|
18434
18498
|
"id",
|
|
18435
18499
|
"title",
|
|
18436
18500
|
"path",
|
|
18501
|
+
"ancestors",
|
|
18437
18502
|
"urls"
|
|
18438
18503
|
]
|
|
18439
18504
|
},
|
|
@@ -23065,6 +23130,10 @@
|
|
|
23065
23130
|
"properties": {
|
|
23066
23131
|
"models": {
|
|
23067
23132
|
"type": "boolean"
|
|
23133
|
+
},
|
|
23134
|
+
"downloadLink": {
|
|
23135
|
+
"type": "boolean",
|
|
23136
|
+
"description": "Whether to show a link to download the OpenAPI spec."
|
|
23068
23137
|
}
|
|
23069
23138
|
},
|
|
23070
23139
|
"required": [
|
|
@@ -25021,7 +25090,7 @@
|
|
|
25021
25090
|
"type": "string",
|
|
25022
25091
|
"minLength": 1,
|
|
25023
25092
|
"maxLength": 100,
|
|
25024
|
-
"pattern": "^[a-
|
|
25093
|
+
"pattern": "^[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*$"
|
|
25025
25094
|
},
|
|
25026
25095
|
"OpenAPISpecProcessingState": {
|
|
25027
25096
|
"description": "Processing state",
|
|
@@ -31169,6 +31238,7 @@
|
|
|
31169
31238
|
"$ref": "#/components/schemas/SiteType"
|
|
31170
31239
|
}
|
|
31171
31240
|
},
|
|
31241
|
+
"additionalProperties": false,
|
|
31172
31242
|
"required": [
|
|
31173
31243
|
"id",
|
|
31174
31244
|
"type"
|
|
@@ -31182,15 +31252,36 @@
|
|
|
31182
31252
|
"type": "string"
|
|
31183
31253
|
},
|
|
31184
31254
|
"isPublished": {
|
|
31185
|
-
"description": "Can be set to `false` to unpublish a site",
|
|
31186
|
-
"type": "boolean"
|
|
31187
|
-
|
|
31188
|
-
|
|
31189
|
-
|
|
31255
|
+
"description": "Can be set to `false` or `true` to either unpublish or publish a site",
|
|
31256
|
+
"type": "boolean"
|
|
31257
|
+
}
|
|
31258
|
+
},
|
|
31259
|
+
"additionalProperties": false,
|
|
31260
|
+
"required": [
|
|
31261
|
+
"id",
|
|
31262
|
+
"isPublished"
|
|
31263
|
+
]
|
|
31264
|
+
},
|
|
31265
|
+
{
|
|
31266
|
+
"type": "object",
|
|
31267
|
+
"properties": {
|
|
31268
|
+
"id": {
|
|
31269
|
+
"description": "The site identifier",
|
|
31270
|
+
"type": "string"
|
|
31271
|
+
},
|
|
31272
|
+
"type": {
|
|
31273
|
+
"description": "The site type to migrate to",
|
|
31274
|
+
"$ref": "#/components/schemas/SiteType"
|
|
31275
|
+
},
|
|
31276
|
+
"isPublished": {
|
|
31277
|
+
"description": "Can be set to `false` or `true` to either unpublish or publish a site",
|
|
31278
|
+
"type": "boolean"
|
|
31190
31279
|
}
|
|
31191
31280
|
},
|
|
31281
|
+
"additionalProperties": false,
|
|
31192
31282
|
"required": [
|
|
31193
31283
|
"id",
|
|
31284
|
+
"type",
|
|
31194
31285
|
"isPublished"
|
|
31195
31286
|
]
|
|
31196
31287
|
}
|
|
@@ -35527,6 +35618,80 @@
|
|
|
35527
35618
|
"page"
|
|
35528
35619
|
]
|
|
35529
35620
|
},
|
|
35621
|
+
"AIToolCallCreateReusableContent": {
|
|
35622
|
+
"type": "object",
|
|
35623
|
+
"properties": {
|
|
35624
|
+
"tool": {
|
|
35625
|
+
"type": "string",
|
|
35626
|
+
"enum": [
|
|
35627
|
+
"createReusableContent"
|
|
35628
|
+
]
|
|
35629
|
+
},
|
|
35630
|
+
"spaceId": {
|
|
35631
|
+
"type": "string",
|
|
35632
|
+
"description": "The ID of the space being edited."
|
|
35633
|
+
},
|
|
35634
|
+
"reusableContent": {
|
|
35635
|
+
"$ref": "#/components/schemas/ChangedRevisionReusableContent"
|
|
35636
|
+
}
|
|
35637
|
+
},
|
|
35638
|
+
"required": [
|
|
35639
|
+
"tool",
|
|
35640
|
+
"spaceId",
|
|
35641
|
+
"reusableContent"
|
|
35642
|
+
]
|
|
35643
|
+
},
|
|
35644
|
+
"AIToolCallEditReusableContent": {
|
|
35645
|
+
"type": "object",
|
|
35646
|
+
"properties": {
|
|
35647
|
+
"tool": {
|
|
35648
|
+
"type": "string",
|
|
35649
|
+
"enum": [
|
|
35650
|
+
"editReusableContent"
|
|
35651
|
+
]
|
|
35652
|
+
},
|
|
35653
|
+
"spaceId": {
|
|
35654
|
+
"type": "string",
|
|
35655
|
+
"description": "The ID of the space being edited."
|
|
35656
|
+
},
|
|
35657
|
+
"reusableContent": {
|
|
35658
|
+
"$ref": "#/components/schemas/ChangedRevisionReusableContent"
|
|
35659
|
+
}
|
|
35660
|
+
},
|
|
35661
|
+
"required": [
|
|
35662
|
+
"tool",
|
|
35663
|
+
"spaceId",
|
|
35664
|
+
"reusableContent"
|
|
35665
|
+
]
|
|
35666
|
+
},
|
|
35667
|
+
"AIToolCallGetReusableContent": {
|
|
35668
|
+
"type": "object",
|
|
35669
|
+
"properties": {
|
|
35670
|
+
"tool": {
|
|
35671
|
+
"type": "string",
|
|
35672
|
+
"enum": [
|
|
35673
|
+
"getReusableContent"
|
|
35674
|
+
]
|
|
35675
|
+
},
|
|
35676
|
+
"spaceId": {
|
|
35677
|
+
"type": "string",
|
|
35678
|
+
"description": "The ID of the space being accessed."
|
|
35679
|
+
},
|
|
35680
|
+
"revisionId": {
|
|
35681
|
+
"type": "string",
|
|
35682
|
+
"description": "The ID of the revision within which the reusable content is being fetched."
|
|
35683
|
+
},
|
|
35684
|
+
"reusableContent": {
|
|
35685
|
+
"$ref": "#/components/schemas/ChangedRevisionReusableContent"
|
|
35686
|
+
}
|
|
35687
|
+
},
|
|
35688
|
+
"required": [
|
|
35689
|
+
"tool",
|
|
35690
|
+
"spaceId",
|
|
35691
|
+
"reusableContent",
|
|
35692
|
+
"revisionId"
|
|
35693
|
+
]
|
|
35694
|
+
},
|
|
35530
35695
|
"AIToolCallCreateChangeRequest": {
|
|
35531
35696
|
"type": "object",
|
|
35532
35697
|
"properties": {
|
|
@@ -35757,6 +35922,15 @@
|
|
|
35757
35922
|
{
|
|
35758
35923
|
"$ref": "#/components/schemas/AIToolCallGetPageDiff"
|
|
35759
35924
|
},
|
|
35925
|
+
{
|
|
35926
|
+
"$ref": "#/components/schemas/AIToolCallCreateReusableContent"
|
|
35927
|
+
},
|
|
35928
|
+
{
|
|
35929
|
+
"$ref": "#/components/schemas/AIToolCallEditReusableContent"
|
|
35930
|
+
},
|
|
35931
|
+
{
|
|
35932
|
+
"$ref": "#/components/schemas/AIToolCallGetReusableContent"
|
|
35933
|
+
},
|
|
35760
35934
|
{
|
|
35761
35935
|
"$ref": "#/components/schemas/AIToolCallCreateChangeRequest"
|
|
35762
35936
|
},
|
package/spec/openapi.yaml
CHANGED
|
@@ -1135,7 +1135,13 @@ paths:
|
|
|
1135
1135
|
content:
|
|
1136
1136
|
application/json:
|
|
1137
1137
|
schema:
|
|
1138
|
-
|
|
1138
|
+
allOf:
|
|
1139
|
+
- $ref: "#/components/schemas/ApplySpaceTemplate"
|
|
1140
|
+
- type: object
|
|
1141
|
+
properties:
|
|
1142
|
+
changeRequestId:
|
|
1143
|
+
type: string
|
|
1144
|
+
description: The ID of the change request to apply the template to. If not provided, the template is applied to the main content.
|
|
1139
1145
|
"/spaces/{spaceId}/content/pages":
|
|
1140
1146
|
get:
|
|
1141
1147
|
operationId: listPages
|
|
@@ -1507,14 +1513,31 @@ paths:
|
|
|
1507
1513
|
content:
|
|
1508
1514
|
application/json:
|
|
1509
1515
|
schema:
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1516
|
+
allOf:
|
|
1517
|
+
- type: object
|
|
1518
|
+
properties:
|
|
1519
|
+
subject:
|
|
1520
|
+
type: string
|
|
1521
|
+
description: Subject of the change-request
|
|
1522
|
+
- anyOf:
|
|
1523
|
+
- type: object
|
|
1524
|
+
properties: {}
|
|
1525
|
+
additionalProperties: true
|
|
1526
|
+
- oneOf:
|
|
1527
|
+
- type: object
|
|
1528
|
+
properties:
|
|
1529
|
+
agentTaskId:
|
|
1530
|
+
type: string
|
|
1531
|
+
description: ID of the agent task to implement
|
|
1532
|
+
required:
|
|
1533
|
+
- agentTaskId
|
|
1534
|
+
- type: object
|
|
1535
|
+
properties:
|
|
1536
|
+
template:
|
|
1537
|
+
$ref: "#/components/schemas/ApplySpaceTemplate"
|
|
1538
|
+
description: Template to apply to the change request
|
|
1539
|
+
required:
|
|
1540
|
+
- template
|
|
1518
1541
|
get:
|
|
1519
1542
|
operationId: listChangeRequestsForSpace
|
|
1520
1543
|
summary: List all change requests
|
|
@@ -8692,7 +8715,6 @@ paths:
|
|
|
8692
8715
|
Generate an AI response in a conversation.
|
|
8693
8716
|
tags:
|
|
8694
8717
|
- sites
|
|
8695
|
-
x-internal: true
|
|
8696
8718
|
security:
|
|
8697
8719
|
- user: []
|
|
8698
8720
|
parameters:
|
|
@@ -10710,6 +10732,16 @@ components:
|
|
|
10710
10732
|
type: array
|
|
10711
10733
|
items:
|
|
10712
10734
|
$ref: "#/components/schemas/SearchSectionResult"
|
|
10735
|
+
ancestors:
|
|
10736
|
+
type: array
|
|
10737
|
+
description: Data about the ancestors of the current page, from top-level to direct parent.
|
|
10738
|
+
items:
|
|
10739
|
+
type: object
|
|
10740
|
+
properties:
|
|
10741
|
+
title:
|
|
10742
|
+
type: string
|
|
10743
|
+
required:
|
|
10744
|
+
- title
|
|
10713
10745
|
urls:
|
|
10714
10746
|
type: object
|
|
10715
10747
|
description: URLs associated with the object
|
|
@@ -10724,6 +10756,7 @@ components:
|
|
|
10724
10756
|
- id
|
|
10725
10757
|
- title
|
|
10726
10758
|
- path
|
|
10759
|
+
- ancestors
|
|
10727
10760
|
- urls
|
|
10728
10761
|
UpdateSpaceGitInfo:
|
|
10729
10762
|
type: object
|
|
@@ -13610,6 +13643,9 @@ components:
|
|
|
13610
13643
|
properties:
|
|
13611
13644
|
models:
|
|
13612
13645
|
type: boolean
|
|
13646
|
+
downloadLink:
|
|
13647
|
+
type: boolean
|
|
13648
|
+
description: Whether to show a link to download the OpenAPI spec.
|
|
13613
13649
|
required:
|
|
13614
13650
|
- models
|
|
13615
13651
|
TranslationRef:
|
|
@@ -14919,7 +14955,7 @@ components:
|
|
|
14919
14955
|
type: string
|
|
14920
14956
|
minLength: 1
|
|
14921
14957
|
maxLength: 100
|
|
14922
|
-
pattern: ^[a-
|
|
14958
|
+
pattern: ^[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*$
|
|
14923
14959
|
OpenAPISpecProcessingState:
|
|
14924
14960
|
description: Processing state
|
|
14925
14961
|
enum:
|
|
@@ -18995,6 +19031,7 @@ components:
|
|
|
18995
19031
|
type:
|
|
18996
19032
|
description: The site type to migrate to
|
|
18997
19033
|
$ref: "#/components/schemas/SiteType"
|
|
19034
|
+
additionalProperties: false
|
|
18998
19035
|
required:
|
|
18999
19036
|
- id
|
|
19000
19037
|
- type
|
|
@@ -19004,13 +19041,28 @@ components:
|
|
|
19004
19041
|
description: The site identifier
|
|
19005
19042
|
type: string
|
|
19006
19043
|
isPublished:
|
|
19007
|
-
description: Can be set to `false` to unpublish a site
|
|
19044
|
+
description: Can be set to `false` or `true` to either unpublish or publish a site
|
|
19008
19045
|
type: boolean
|
|
19009
|
-
|
|
19010
|
-
- false
|
|
19046
|
+
additionalProperties: false
|
|
19011
19047
|
required:
|
|
19012
19048
|
- id
|
|
19013
19049
|
- isPublished
|
|
19050
|
+
- type: object
|
|
19051
|
+
properties:
|
|
19052
|
+
id:
|
|
19053
|
+
description: The site identifier
|
|
19054
|
+
type: string
|
|
19055
|
+
type:
|
|
19056
|
+
description: The site type to migrate to
|
|
19057
|
+
$ref: "#/components/schemas/SiteType"
|
|
19058
|
+
isPublished:
|
|
19059
|
+
description: Can be set to `false` or `true` to either unpublish or publish a site
|
|
19060
|
+
type: boolean
|
|
19061
|
+
additionalProperties: false
|
|
19062
|
+
required:
|
|
19063
|
+
- id
|
|
19064
|
+
- type
|
|
19065
|
+
- isPublished
|
|
19014
19066
|
required:
|
|
19015
19067
|
- removeMembers
|
|
19016
19068
|
- updateSites
|
|
@@ -22063,6 +22115,58 @@ components:
|
|
|
22063
22115
|
- tool
|
|
22064
22116
|
- spaceId
|
|
22065
22117
|
- page
|
|
22118
|
+
AIToolCallCreateReusableContent:
|
|
22119
|
+
type: object
|
|
22120
|
+
properties:
|
|
22121
|
+
tool:
|
|
22122
|
+
type: string
|
|
22123
|
+
enum:
|
|
22124
|
+
- createReusableContent
|
|
22125
|
+
spaceId:
|
|
22126
|
+
type: string
|
|
22127
|
+
description: The ID of the space being edited.
|
|
22128
|
+
reusableContent:
|
|
22129
|
+
$ref: "#/components/schemas/ChangedRevisionReusableContent"
|
|
22130
|
+
required:
|
|
22131
|
+
- tool
|
|
22132
|
+
- spaceId
|
|
22133
|
+
- reusableContent
|
|
22134
|
+
AIToolCallEditReusableContent:
|
|
22135
|
+
type: object
|
|
22136
|
+
properties:
|
|
22137
|
+
tool:
|
|
22138
|
+
type: string
|
|
22139
|
+
enum:
|
|
22140
|
+
- editReusableContent
|
|
22141
|
+
spaceId:
|
|
22142
|
+
type: string
|
|
22143
|
+
description: The ID of the space being edited.
|
|
22144
|
+
reusableContent:
|
|
22145
|
+
$ref: "#/components/schemas/ChangedRevisionReusableContent"
|
|
22146
|
+
required:
|
|
22147
|
+
- tool
|
|
22148
|
+
- spaceId
|
|
22149
|
+
- reusableContent
|
|
22150
|
+
AIToolCallGetReusableContent:
|
|
22151
|
+
type: object
|
|
22152
|
+
properties:
|
|
22153
|
+
tool:
|
|
22154
|
+
type: string
|
|
22155
|
+
enum:
|
|
22156
|
+
- getReusableContent
|
|
22157
|
+
spaceId:
|
|
22158
|
+
type: string
|
|
22159
|
+
description: The ID of the space being accessed.
|
|
22160
|
+
revisionId:
|
|
22161
|
+
type: string
|
|
22162
|
+
description: The ID of the revision within which the reusable content is being fetched.
|
|
22163
|
+
reusableContent:
|
|
22164
|
+
$ref: "#/components/schemas/ChangedRevisionReusableContent"
|
|
22165
|
+
required:
|
|
22166
|
+
- tool
|
|
22167
|
+
- spaceId
|
|
22168
|
+
- reusableContent
|
|
22169
|
+
- revisionId
|
|
22066
22170
|
AIToolCallCreateChangeRequest:
|
|
22067
22171
|
type: object
|
|
22068
22172
|
properties:
|
|
@@ -22218,6 +22322,9 @@ components:
|
|
|
22218
22322
|
- $ref: "#/components/schemas/AIToolCallMovePage"
|
|
22219
22323
|
- $ref: "#/components/schemas/AIToolCallListModifiedPages"
|
|
22220
22324
|
- $ref: "#/components/schemas/AIToolCallGetPageDiff"
|
|
22325
|
+
- $ref: "#/components/schemas/AIToolCallCreateReusableContent"
|
|
22326
|
+
- $ref: "#/components/schemas/AIToolCallEditReusableContent"
|
|
22327
|
+
- $ref: "#/components/schemas/AIToolCallGetReusableContent"
|
|
22221
22328
|
- $ref: "#/components/schemas/AIToolCallCreateChangeRequest"
|
|
22222
22329
|
- $ref: "#/components/schemas/AIToolCallComment"
|
|
22223
22330
|
- $ref: "#/components/schemas/AIToolCallReplyToComment"
|