@gitbook/api 0.80.1 → 0.82.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 +207 -1
- package/dist/index.cjs +65 -1
- package/dist/index.js +59 -1
- package/package.json +1 -1
- package/spec/openapi.json +552 -3
- package/spec/openapi.yaml +367 -0
package/spec/openapi.yaml
CHANGED
|
@@ -2238,6 +2238,70 @@ paths:
|
|
|
2238
2238
|
- url
|
|
2239
2239
|
default:
|
|
2240
2240
|
$ref: "#/components/responses/UnexpectedError"
|
|
2241
|
+
"/spaces/{spaceId}/change-requests/{changeRequestId}/task/brainstorm":
|
|
2242
|
+
post:
|
|
2243
|
+
operationId: streamBrainstormChangeRequest
|
|
2244
|
+
summary: Brainstorm with AI on a change request and stream the results as a Server-Sent Events.
|
|
2245
|
+
tags:
|
|
2246
|
+
- spaces
|
|
2247
|
+
security:
|
|
2248
|
+
- user: []
|
|
2249
|
+
parameters:
|
|
2250
|
+
- $ref: "#/components/parameters/spaceId"
|
|
2251
|
+
- $ref: "#/components/parameters/changeRequestId"
|
|
2252
|
+
responses:
|
|
2253
|
+
"200":
|
|
2254
|
+
description: Updated session.
|
|
2255
|
+
content:
|
|
2256
|
+
text/event-stream:
|
|
2257
|
+
schema:
|
|
2258
|
+
$ref: "#/components/schemas/ChangeRequestBrainstormSession"
|
|
2259
|
+
default:
|
|
2260
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
2261
|
+
requestBody:
|
|
2262
|
+
required: true
|
|
2263
|
+
content:
|
|
2264
|
+
application/json:
|
|
2265
|
+
schema:
|
|
2266
|
+
type: object
|
|
2267
|
+
properties:
|
|
2268
|
+
session:
|
|
2269
|
+
description: Brainstorming session
|
|
2270
|
+
$ref: "#/components/schemas/ChangeRequestBrainstormSession"
|
|
2271
|
+
required:
|
|
2272
|
+
- session
|
|
2273
|
+
"/spaces/{spaceId}/change-requests/{changeRequestId}/task/implement":
|
|
2274
|
+
post:
|
|
2275
|
+
operationId: streamImplementChangeRequestTask
|
|
2276
|
+
summary: Implement a task on a change request and stream the results as a Server-Sent Events.
|
|
2277
|
+
tags:
|
|
2278
|
+
- spaces
|
|
2279
|
+
security:
|
|
2280
|
+
- user: []
|
|
2281
|
+
parameters:
|
|
2282
|
+
- $ref: "#/components/parameters/spaceId"
|
|
2283
|
+
- $ref: "#/components/parameters/changeRequestId"
|
|
2284
|
+
responses:
|
|
2285
|
+
"200":
|
|
2286
|
+
description: Task being implemented.
|
|
2287
|
+
content:
|
|
2288
|
+
text/event-stream:
|
|
2289
|
+
schema:
|
|
2290
|
+
$ref: "#/components/schemas/ChangeRequestBrainstormPlan"
|
|
2291
|
+
default:
|
|
2292
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
2293
|
+
requestBody:
|
|
2294
|
+
required: true
|
|
2295
|
+
content:
|
|
2296
|
+
application/json:
|
|
2297
|
+
schema:
|
|
2298
|
+
type: object
|
|
2299
|
+
properties:
|
|
2300
|
+
plan:
|
|
2301
|
+
description: Plan to run.
|
|
2302
|
+
$ref: "#/components/schemas/ChangeRequestBrainstormPlan"
|
|
2303
|
+
required:
|
|
2304
|
+
- plan
|
|
2241
2305
|
"/spaces/{spaceId}/revisions/{revisionId}":
|
|
2242
2306
|
get:
|
|
2243
2307
|
operationId: getRevisionById
|
|
@@ -4341,6 +4405,7 @@ paths:
|
|
|
4341
4405
|
- $ref: "#/components/parameters/userId"
|
|
4342
4406
|
- $ref: "#/components/parameters/listPage"
|
|
4343
4407
|
- $ref: "#/components/parameters/listLimit"
|
|
4408
|
+
- $ref: "#/components/parameters/listOrder"
|
|
4344
4409
|
responses:
|
|
4345
4410
|
"200":
|
|
4346
4411
|
description: Listing of spaces that can be accessed by the user in the organization.
|
|
@@ -6958,6 +7023,11 @@ paths:
|
|
|
6958
7023
|
description: ID of the site-space to preview. If not provided, the default site-space will be used.
|
|
6959
7024
|
schema:
|
|
6960
7025
|
type: string
|
|
7026
|
+
- name: claims
|
|
7027
|
+
in: query
|
|
7028
|
+
description: Rison encoded string of attributes/assertions about the visitor for which we want to preview the site.
|
|
7029
|
+
schema:
|
|
7030
|
+
type: string
|
|
6961
7031
|
responses:
|
|
6962
7032
|
"200":
|
|
6963
7033
|
description: OK
|
|
@@ -7420,6 +7490,13 @@ paths:
|
|
|
7420
7490
|
question:
|
|
7421
7491
|
type: string
|
|
7422
7492
|
maxLength: 512
|
|
7493
|
+
context:
|
|
7494
|
+
type: object
|
|
7495
|
+
description: |
|
|
7496
|
+
You may optionally provide additional information about the context of the question. This doesn't affect the scope of the search, but GitBook may use this information to provide a better answer. Generally speaking, you should provide as much context as possible.
|
|
7497
|
+
properties:
|
|
7498
|
+
siteSpaceId:
|
|
7499
|
+
type: string
|
|
7423
7500
|
scope:
|
|
7424
7501
|
$ref: "#/components/schemas/SiteSearchScope"
|
|
7425
7502
|
responses:
|
|
@@ -7571,6 +7648,24 @@ paths:
|
|
|
7571
7648
|
nullable: true
|
|
7572
7649
|
enum:
|
|
7573
7650
|
- null
|
|
7651
|
+
sidebar:
|
|
7652
|
+
description: Various styles for the sidebar. Each can be Set to null to reset the override.
|
|
7653
|
+
type: object
|
|
7654
|
+
properties:
|
|
7655
|
+
background:
|
|
7656
|
+
oneOf:
|
|
7657
|
+
- $ref: "#/components/schemas/CustomizationSidebarBackgroundStyle"
|
|
7658
|
+
- type: string
|
|
7659
|
+
nullable: true
|
|
7660
|
+
enum:
|
|
7661
|
+
- null
|
|
7662
|
+
list:
|
|
7663
|
+
oneOf:
|
|
7664
|
+
- $ref: "#/components/schemas/CustomizationSidebarListStyle"
|
|
7665
|
+
- type: string
|
|
7666
|
+
nullable: true
|
|
7667
|
+
enum:
|
|
7668
|
+
- null
|
|
7574
7669
|
background:
|
|
7575
7670
|
description: The style of background to use. Set to null to reset the override.
|
|
7576
7671
|
oneOf:
|
|
@@ -11636,6 +11731,7 @@ components:
|
|
|
11636
11731
|
$ref: "#/components/schemas/SearchAIAnswer"
|
|
11637
11732
|
required:
|
|
11638
11733
|
- type
|
|
11734
|
+
- answer
|
|
11639
11735
|
SearchAIRecommendedQuestionStream:
|
|
11640
11736
|
type: object
|
|
11641
11737
|
properties:
|
|
@@ -13831,6 +13927,30 @@ components:
|
|
|
13831
13927
|
- updatedAt
|
|
13832
13928
|
- count
|
|
13833
13929
|
- user
|
|
13930
|
+
ChangeRequestBrainstormStatus:
|
|
13931
|
+
type: string
|
|
13932
|
+
description: |
|
|
13933
|
+
The status of the session.
|
|
13934
|
+
- pending: The session is pending for input from the user.
|
|
13935
|
+
- running: The session is being processed by GitBook.
|
|
13936
|
+
- failed: The session processing has failed.
|
|
13937
|
+
enum:
|
|
13938
|
+
- pending
|
|
13939
|
+
- failed
|
|
13940
|
+
- running
|
|
13941
|
+
ChangeRequestBrainstormActor:
|
|
13942
|
+
type: string
|
|
13943
|
+
enum:
|
|
13944
|
+
- user
|
|
13945
|
+
- agent
|
|
13946
|
+
ChangeRequestBrainstormContext:
|
|
13947
|
+
type: object
|
|
13948
|
+
properties:
|
|
13949
|
+
page:
|
|
13950
|
+
type: string
|
|
13951
|
+
description: Path of the page the user is currently viewing.
|
|
13952
|
+
required:
|
|
13953
|
+
- page
|
|
13834
13954
|
RevisionPageType:
|
|
13835
13955
|
type: string
|
|
13836
13956
|
enum:
|
|
@@ -13853,6 +13973,221 @@ components:
|
|
|
13853
13973
|
- id
|
|
13854
13974
|
- type
|
|
13855
13975
|
- title
|
|
13976
|
+
ChangeRequestBrainstormLog:
|
|
13977
|
+
oneOf:
|
|
13978
|
+
- type: object
|
|
13979
|
+
properties:
|
|
13980
|
+
tool:
|
|
13981
|
+
type: string
|
|
13982
|
+
enum:
|
|
13983
|
+
- get-page
|
|
13984
|
+
intent:
|
|
13985
|
+
type: string
|
|
13986
|
+
page:
|
|
13987
|
+
$ref: "#/components/schemas/ChangedRevisionPage"
|
|
13988
|
+
required:
|
|
13989
|
+
- tool
|
|
13990
|
+
- intent
|
|
13991
|
+
- page
|
|
13992
|
+
- type: object
|
|
13993
|
+
properties:
|
|
13994
|
+
tool:
|
|
13995
|
+
type: string
|
|
13996
|
+
enum:
|
|
13997
|
+
- search-keyword
|
|
13998
|
+
intent:
|
|
13999
|
+
type: string
|
|
14000
|
+
query:
|
|
14001
|
+
type: string
|
|
14002
|
+
required:
|
|
14003
|
+
- tool
|
|
14004
|
+
- intent
|
|
14005
|
+
- query
|
|
14006
|
+
- type: object
|
|
14007
|
+
properties:
|
|
14008
|
+
tool:
|
|
14009
|
+
type: string
|
|
14010
|
+
enum:
|
|
14011
|
+
- search-semantic
|
|
14012
|
+
intent:
|
|
14013
|
+
type: string
|
|
14014
|
+
query:
|
|
14015
|
+
type: string
|
|
14016
|
+
required:
|
|
14017
|
+
- tool
|
|
14018
|
+
- intent
|
|
14019
|
+
- query
|
|
14020
|
+
- type: object
|
|
14021
|
+
properties:
|
|
14022
|
+
tool:
|
|
14023
|
+
type: string
|
|
14024
|
+
enum:
|
|
14025
|
+
- create-page
|
|
14026
|
+
page:
|
|
14027
|
+
$ref: "#/components/schemas/ChangedRevisionPage"
|
|
14028
|
+
required:
|
|
14029
|
+
- tool
|
|
14030
|
+
- page
|
|
14031
|
+
- type: object
|
|
14032
|
+
properties:
|
|
14033
|
+
tool:
|
|
14034
|
+
type: string
|
|
14035
|
+
enum:
|
|
14036
|
+
- delete-page
|
|
14037
|
+
page:
|
|
14038
|
+
$ref: "#/components/schemas/ChangedRevisionPage"
|
|
14039
|
+
required:
|
|
14040
|
+
- tool
|
|
14041
|
+
- page
|
|
14042
|
+
- type: object
|
|
14043
|
+
properties:
|
|
14044
|
+
tool:
|
|
14045
|
+
type: string
|
|
14046
|
+
enum:
|
|
14047
|
+
- edit-page
|
|
14048
|
+
page:
|
|
14049
|
+
$ref: "#/components/schemas/ChangedRevisionPage"
|
|
14050
|
+
required:
|
|
14051
|
+
- tool
|
|
14052
|
+
- page
|
|
14053
|
+
ChangeRequestBrainstormPlanStatus:
|
|
14054
|
+
type: string
|
|
14055
|
+
description: |
|
|
14056
|
+
The status of the plan.
|
|
14057
|
+
- pending: The task is pending for input from the user.
|
|
14058
|
+
- running: The task is being processed by GitBook.
|
|
14059
|
+
- failed: The task processing has failed.
|
|
14060
|
+
- completed: The task has been completed.
|
|
14061
|
+
enum:
|
|
14062
|
+
- pending
|
|
14063
|
+
- failed
|
|
14064
|
+
- running
|
|
14065
|
+
- completed
|
|
14066
|
+
ChangeRequestBrainstormPlanStepTitle:
|
|
14067
|
+
type: string
|
|
14068
|
+
minLength: 1
|
|
14069
|
+
maxLength: 100
|
|
14070
|
+
ChangeRequestBrainstormPlanStepStatus:
|
|
14071
|
+
type: string
|
|
14072
|
+
enum:
|
|
14073
|
+
- pending
|
|
14074
|
+
- succeeded
|
|
14075
|
+
- failed
|
|
14076
|
+
- running
|
|
14077
|
+
ChangeRequestBrainstormPlanStep:
|
|
14078
|
+
type: object
|
|
14079
|
+
properties:
|
|
14080
|
+
title:
|
|
14081
|
+
$ref: "#/components/schemas/ChangeRequestBrainstormPlanStepTitle"
|
|
14082
|
+
status:
|
|
14083
|
+
$ref: "#/components/schemas/ChangeRequestBrainstormPlanStepStatus"
|
|
14084
|
+
instruction:
|
|
14085
|
+
$ref: "#/components/schemas/JSONDocument"
|
|
14086
|
+
implementation:
|
|
14087
|
+
description: Logs related to the implementation phase of the step.
|
|
14088
|
+
type: object
|
|
14089
|
+
properties:
|
|
14090
|
+
summary:
|
|
14091
|
+
description: A summary of the execution phase.
|
|
14092
|
+
$ref: "#/components/schemas/JSONDocument"
|
|
14093
|
+
logs:
|
|
14094
|
+
description: Logs related to the execution phase of the step.
|
|
14095
|
+
items:
|
|
14096
|
+
$ref: "#/components/schemas/ChangeRequestBrainstormLog"
|
|
14097
|
+
required:
|
|
14098
|
+
- logs
|
|
14099
|
+
required:
|
|
14100
|
+
- title
|
|
14101
|
+
- status
|
|
14102
|
+
- instruction
|
|
14103
|
+
ChangeRequestBrainstormPlan:
|
|
14104
|
+
type: object
|
|
14105
|
+
properties:
|
|
14106
|
+
status:
|
|
14107
|
+
$ref: "#/components/schemas/ChangeRequestBrainstormPlanStatus"
|
|
14108
|
+
title:
|
|
14109
|
+
type: string
|
|
14110
|
+
description: The title of the plan.
|
|
14111
|
+
steps:
|
|
14112
|
+
description: The steps of the plan to execute the plan.
|
|
14113
|
+
type: array
|
|
14114
|
+
items:
|
|
14115
|
+
$ref: "#/components/schemas/ChangeRequestBrainstormPlanStep"
|
|
14116
|
+
context:
|
|
14117
|
+
$ref: "#/components/schemas/ChangeRequestBrainstormContext"
|
|
14118
|
+
required:
|
|
14119
|
+
- status
|
|
14120
|
+
- title
|
|
14121
|
+
- steps
|
|
14122
|
+
ChangeRequestBrainstormAttachmentPlan:
|
|
14123
|
+
type: object
|
|
14124
|
+
properties:
|
|
14125
|
+
type:
|
|
14126
|
+
type: string
|
|
14127
|
+
enum:
|
|
14128
|
+
- plan
|
|
14129
|
+
plan:
|
|
14130
|
+
$ref: "#/components/schemas/ChangeRequestBrainstormPlan"
|
|
14131
|
+
required:
|
|
14132
|
+
- type
|
|
14133
|
+
- plan
|
|
14134
|
+
ChangeRequestBrainstormAttachmentMessage:
|
|
14135
|
+
type: object
|
|
14136
|
+
properties:
|
|
14137
|
+
type:
|
|
14138
|
+
type: string
|
|
14139
|
+
enum:
|
|
14140
|
+
- message
|
|
14141
|
+
suggestions:
|
|
14142
|
+
type: array
|
|
14143
|
+
items:
|
|
14144
|
+
type: string
|
|
14145
|
+
required:
|
|
14146
|
+
- type
|
|
14147
|
+
- suggestions
|
|
14148
|
+
ChangeRequestBrainstormAttachment:
|
|
14149
|
+
oneOf:
|
|
14150
|
+
- $ref: "#/components/schemas/ChangeRequestBrainstormAttachmentPlan"
|
|
14151
|
+
- $ref: "#/components/schemas/ChangeRequestBrainstormAttachmentMessage"
|
|
14152
|
+
ChangeRequestBrainstormMessage:
|
|
14153
|
+
type: object
|
|
14154
|
+
properties:
|
|
14155
|
+
id:
|
|
14156
|
+
type: string
|
|
14157
|
+
description: The unique identifier of the chat message.
|
|
14158
|
+
actor:
|
|
14159
|
+
$ref: "#/components/schemas/ChangeRequestBrainstormActor"
|
|
14160
|
+
message:
|
|
14161
|
+
$ref: "#/components/schemas/JSONDocument"
|
|
14162
|
+
context:
|
|
14163
|
+
$ref: "#/components/schemas/ChangeRequestBrainstormContext"
|
|
14164
|
+
logs:
|
|
14165
|
+
description: Logs related to the processing of the message.
|
|
14166
|
+
items:
|
|
14167
|
+
$ref: "#/components/schemas/ChangeRequestBrainstormLog"
|
|
14168
|
+
attachment:
|
|
14169
|
+
$ref: "#/components/schemas/ChangeRequestBrainstormAttachment"
|
|
14170
|
+
required:
|
|
14171
|
+
- id
|
|
14172
|
+
- actor
|
|
14173
|
+
- message
|
|
14174
|
+
ChangeRequestBrainstormSession:
|
|
14175
|
+
type: object
|
|
14176
|
+
properties:
|
|
14177
|
+
id:
|
|
14178
|
+
type: string
|
|
14179
|
+
description: The unique identifier of the session.
|
|
14180
|
+
status:
|
|
14181
|
+
$ref: "#/components/schemas/ChangeRequestBrainstormStatus"
|
|
14182
|
+
messages:
|
|
14183
|
+
description: Conversation messages related to the brainstorming phase of the task.
|
|
14184
|
+
type: array
|
|
14185
|
+
items:
|
|
14186
|
+
$ref: "#/components/schemas/ChangeRequestBrainstormMessage"
|
|
14187
|
+
required:
|
|
14188
|
+
- id
|
|
14189
|
+
- status
|
|
14190
|
+
- messages
|
|
13856
14191
|
RevisionSemanticChangePageCreated:
|
|
13857
14192
|
type: object
|
|
13858
14193
|
properties:
|
|
@@ -14286,6 +14621,8 @@ components:
|
|
|
14286
14621
|
enum:
|
|
14287
14622
|
- plain
|
|
14288
14623
|
- match
|
|
14624
|
+
deprecated: true
|
|
14625
|
+
description: The background style has been deprecated and will be removed in a future release. Use the `tint` settings instead.
|
|
14289
14626
|
CustomizationLocale:
|
|
14290
14627
|
type: string
|
|
14291
14628
|
description: Language for the UI element
|
|
@@ -17833,6 +18170,24 @@ components:
|
|
|
17833
18170
|
- duotone
|
|
17834
18171
|
- light
|
|
17835
18172
|
- thin
|
|
18173
|
+
CustomizationSidebarBackgroundStyle:
|
|
18174
|
+
type: string
|
|
18175
|
+
description: |
|
|
18176
|
+
- `default`: No background, content sits directly against sidebar edge.
|
|
18177
|
+
- `filled`: Muted background color that extends to sidebar edges.
|
|
18178
|
+
enum:
|
|
18179
|
+
- default
|
|
18180
|
+
- filled
|
|
18181
|
+
CustomizationSidebarListStyle:
|
|
18182
|
+
type: string
|
|
18183
|
+
description: |
|
|
18184
|
+
- `default`: Simple list items without special styling, groups are inset with a line.
|
|
18185
|
+
- `pill`: Rounded capsule shape around selected/active items.
|
|
18186
|
+
- `line`: Continuous line next to all items, with coloured line part for selected/active items.
|
|
18187
|
+
enum:
|
|
18188
|
+
- default
|
|
18189
|
+
- pill
|
|
18190
|
+
- line
|
|
17836
18191
|
SiteCustomizationSettings:
|
|
17837
18192
|
type: object
|
|
17838
18193
|
properties:
|
|
@@ -17851,15 +18206,27 @@ components:
|
|
|
17851
18206
|
font:
|
|
17852
18207
|
$ref: "#/components/schemas/CustomizationFont"
|
|
17853
18208
|
background:
|
|
18209
|
+
deprecated: true
|
|
17854
18210
|
$ref: "#/components/schemas/CustomizationBackground"
|
|
17855
18211
|
icons:
|
|
17856
18212
|
$ref: "#/components/schemas/CustomizationIconsStyle"
|
|
18213
|
+
sidebar:
|
|
18214
|
+
type: object
|
|
18215
|
+
properties:
|
|
18216
|
+
background:
|
|
18217
|
+
$ref: "#/components/schemas/CustomizationSidebarBackgroundStyle"
|
|
18218
|
+
list:
|
|
18219
|
+
$ref: "#/components/schemas/CustomizationSidebarListStyle"
|
|
18220
|
+
required:
|
|
18221
|
+
- background
|
|
18222
|
+
- list
|
|
17857
18223
|
required:
|
|
17858
18224
|
- primaryColor
|
|
17859
18225
|
- corners
|
|
17860
18226
|
- font
|
|
17861
18227
|
- background
|
|
17862
18228
|
- icons
|
|
18229
|
+
- sidebar
|
|
17863
18230
|
internationalization:
|
|
17864
18231
|
type: object
|
|
17865
18232
|
properties:
|