@gitbook/api 0.175.0 → 0.176.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 +102 -14
- package/dist/constants.d.ts +7 -3
- package/dist/index.cjs +36 -6
- package/dist/index.js +30 -5
- package/package.json +1 -1
- package/spec/openapi.json +255 -30
- package/spec/openapi.yaml +166 -16
package/spec/openapi.yaml
CHANGED
|
@@ -537,6 +537,23 @@ paths:
|
|
|
537
537
|
"404":
|
|
538
538
|
description: User not found
|
|
539
539
|
$ref: "#/components/responses/NotFoundError"
|
|
540
|
+
/user/notifications/token:
|
|
541
|
+
post:
|
|
542
|
+
operationId: createUserNotificationsToken
|
|
543
|
+
summary: Create a JWT to access the in-app notifications service
|
|
544
|
+
description: |
|
|
545
|
+
Generates a JWT for the authenticated user. This token is used by the frontend notifications client to access user endpoints.
|
|
546
|
+
tags:
|
|
547
|
+
- users
|
|
548
|
+
security:
|
|
549
|
+
- user-internal: []
|
|
550
|
+
responses:
|
|
551
|
+
"200":
|
|
552
|
+
description: The notifications service User JWT
|
|
553
|
+
content:
|
|
554
|
+
application/json:
|
|
555
|
+
schema:
|
|
556
|
+
$ref: "#/components/schemas/APITemporaryToken"
|
|
540
557
|
"/users/{userId}":
|
|
541
558
|
get:
|
|
542
559
|
operationId: getUserById
|
|
@@ -1627,6 +1644,8 @@ paths:
|
|
|
1627
1644
|
$ref: "#/components/schemas/ChangeRequestSubject"
|
|
1628
1645
|
description:
|
|
1629
1646
|
$ref: "#/components/schemas/JSONDocument"
|
|
1647
|
+
links:
|
|
1648
|
+
$ref: "#/components/schemas/ChangeRequestLinks"
|
|
1630
1649
|
status:
|
|
1631
1650
|
type: string
|
|
1632
1651
|
enum:
|
|
@@ -8507,6 +8526,7 @@ paths:
|
|
|
8507
8526
|
- askedAt
|
|
8508
8527
|
- stats.answered
|
|
8509
8528
|
- stats.feedback
|
|
8529
|
+
- stats.answers
|
|
8510
8530
|
- $ref: "#/components/parameters/listPage"
|
|
8511
8531
|
- $ref: "#/components/parameters/listLimit"
|
|
8512
8532
|
responses:
|
|
@@ -10118,6 +10138,11 @@ paths:
|
|
|
10118
10138
|
$ref: "#/components/schemas/URL"
|
|
10119
10139
|
headers:
|
|
10120
10140
|
$ref: "#/components/schemas/SiteMcpServerHeaders"
|
|
10141
|
+
condition:
|
|
10142
|
+
description: Conditional expression used to evaluate whether the MCP server should be available to the site's visitor (should evaluate to a boolean). If set to null, the condition will be removed.
|
|
10143
|
+
oneOf:
|
|
10144
|
+
- $ref: "#/components/schemas/Expression"
|
|
10145
|
+
- type: "null"
|
|
10121
10146
|
required:
|
|
10122
10147
|
- name
|
|
10123
10148
|
- url
|
|
@@ -10174,6 +10199,11 @@ paths:
|
|
|
10174
10199
|
maxLength: 2048
|
|
10175
10200
|
headers:
|
|
10176
10201
|
$ref: "#/components/schemas/SiteMcpServerHeaders"
|
|
10202
|
+
condition:
|
|
10203
|
+
description: Conditional expression used to evaluate whether the MCP server should be available to the site's visitor (should evaluate to a boolean). If not set, the condition will remain unchanged. If set to null, the condition will be removed.
|
|
10204
|
+
oneOf:
|
|
10205
|
+
- $ref: "#/components/schemas/Expression"
|
|
10206
|
+
- type: "null"
|
|
10177
10207
|
responses:
|
|
10178
10208
|
"200":
|
|
10179
10209
|
description: OK
|
|
@@ -11276,6 +11306,14 @@ components:
|
|
|
11276
11306
|
- id
|
|
11277
11307
|
- displayName
|
|
11278
11308
|
- urls
|
|
11309
|
+
APITemporaryToken:
|
|
11310
|
+
type: object
|
|
11311
|
+
properties:
|
|
11312
|
+
token:
|
|
11313
|
+
type: string
|
|
11314
|
+
description: Temporary access token to authenticate with the API
|
|
11315
|
+
required:
|
|
11316
|
+
- token
|
|
11279
11317
|
List:
|
|
11280
11318
|
type: object
|
|
11281
11319
|
properties:
|
|
@@ -13091,6 +13129,9 @@ components:
|
|
|
13091
13129
|
stickyHeader:
|
|
13092
13130
|
type: boolean
|
|
13093
13131
|
description: Should we keep the table header sticky while the page scrolls
|
|
13132
|
+
stickyFirstColumn:
|
|
13133
|
+
type: boolean
|
|
13134
|
+
description: Should we keep the first visible table column sticky while horizontally scrolling
|
|
13094
13135
|
useNewSizing:
|
|
13095
13136
|
type: boolean
|
|
13096
13137
|
description: |
|
|
@@ -15650,6 +15691,25 @@ components:
|
|
|
15650
15691
|
description: Subject of the change request
|
|
15651
15692
|
minLength: 0
|
|
15652
15693
|
maxLength: 100
|
|
15694
|
+
ChangeRequestLinkTitle:
|
|
15695
|
+
type: string
|
|
15696
|
+
description: Optional title to display for the link.
|
|
15697
|
+
maxLength: 128
|
|
15698
|
+
ChangeRequestLink:
|
|
15699
|
+
type: object
|
|
15700
|
+
properties:
|
|
15701
|
+
ref:
|
|
15702
|
+
$ref: "#/components/schemas/ContentRefURL"
|
|
15703
|
+
title:
|
|
15704
|
+
$ref: "#/components/schemas/ChangeRequestLinkTitle"
|
|
15705
|
+
required:
|
|
15706
|
+
- ref
|
|
15707
|
+
ChangeRequestLinks:
|
|
15708
|
+
type: array
|
|
15709
|
+
description: External links associated with the change request.
|
|
15710
|
+
items:
|
|
15711
|
+
$ref: "#/components/schemas/ChangeRequestLink"
|
|
15712
|
+
maxItems: 10
|
|
15653
15713
|
ChangeRequest:
|
|
15654
15714
|
type: object
|
|
15655
15715
|
properties:
|
|
@@ -15713,6 +15773,8 @@ components:
|
|
|
15713
15773
|
outdated:
|
|
15714
15774
|
type: boolean
|
|
15715
15775
|
description: If true, the change request is not up-to-date with latest changes in the main content.
|
|
15776
|
+
links:
|
|
15777
|
+
$ref: "#/components/schemas/ChangeRequestLinks"
|
|
15716
15778
|
urls:
|
|
15717
15779
|
type: object
|
|
15718
15780
|
description: URLs associated with the object
|
|
@@ -19117,6 +19179,8 @@ components:
|
|
|
19117
19179
|
- sites-ads
|
|
19118
19180
|
- sites-ai-search
|
|
19119
19181
|
- sites-ai-assistant
|
|
19182
|
+
- sites-connections
|
|
19183
|
+
- sites-channels
|
|
19120
19184
|
- sites-embed
|
|
19121
19185
|
- sites-api-playground
|
|
19122
19186
|
- sites-basic-customization
|
|
@@ -20133,14 +20197,6 @@ components:
|
|
|
20133
20197
|
$ref: "#/components/schemas/IntegrationInstallationSpaceSelection"
|
|
20134
20198
|
site_selection:
|
|
20135
20199
|
$ref: "#/components/schemas/IntegrationInstallationSiteSelection"
|
|
20136
|
-
APITemporaryToken:
|
|
20137
|
-
type: object
|
|
20138
|
-
properties:
|
|
20139
|
-
token:
|
|
20140
|
-
type: string
|
|
20141
|
-
description: Temporary access token to authenticate with the API
|
|
20142
|
-
required:
|
|
20143
|
-
- token
|
|
20144
20200
|
UpdateIntegrationSpaceInstallation:
|
|
20145
20201
|
type: object
|
|
20146
20202
|
properties:
|
|
@@ -23029,6 +23085,7 @@ components:
|
|
|
23029
23085
|
description: The reason or feature that triggered the site upgrade
|
|
23030
23086
|
oneOf:
|
|
23031
23087
|
- $ref: "#/components/schemas/SiteFeatureKey"
|
|
23088
|
+
- $ref: "#/components/schemas/BillingMeter"
|
|
23032
23089
|
- type: string
|
|
23033
23090
|
enum:
|
|
23034
23091
|
- settings
|
|
@@ -23651,6 +23708,19 @@ components:
|
|
|
23651
23708
|
- changeRequests
|
|
23652
23709
|
- search
|
|
23653
23710
|
- searchBoost
|
|
23711
|
+
YoutubeChannelId:
|
|
23712
|
+
type: string
|
|
23713
|
+
description: A YouTube channel ID starting with "UC".
|
|
23714
|
+
pattern: ^UC[A-Za-z0-9_-]{22}$
|
|
23715
|
+
YoutubeChannelName:
|
|
23716
|
+
type: string
|
|
23717
|
+
description: A YouTube channel handle starting with "@".
|
|
23718
|
+
pattern: ^@[A-Za-z0-9._-]{3,100}$
|
|
23719
|
+
YoutubeChannelPattern:
|
|
23720
|
+
description: A YouTube channel identifier, either a channel ID or a channel handle.
|
|
23721
|
+
oneOf:
|
|
23722
|
+
- $ref: "#/components/schemas/YoutubeChannelId"
|
|
23723
|
+
- $ref: "#/components/schemas/YoutubeChannelName"
|
|
23654
23724
|
ContextConnectorSetup:
|
|
23655
23725
|
oneOf:
|
|
23656
23726
|
- type: object
|
|
@@ -23704,8 +23774,7 @@ components:
|
|
|
23704
23774
|
type: object
|
|
23705
23775
|
properties:
|
|
23706
23776
|
channelId:
|
|
23707
|
-
|
|
23708
|
-
pattern: ^UC[A-Za-z0-9_-]{22}$
|
|
23777
|
+
$ref: "#/components/schemas/YoutubeChannelPattern"
|
|
23709
23778
|
required:
|
|
23710
23779
|
- channelId
|
|
23711
23780
|
required:
|
|
@@ -24040,6 +24109,7 @@ components:
|
|
|
24040
24109
|
- builtin:slack
|
|
24041
24110
|
- builtin:discord
|
|
24042
24111
|
- builtin:github
|
|
24112
|
+
- builtin:linear
|
|
24043
24113
|
SiteQuestionAnswer:
|
|
24044
24114
|
type: object
|
|
24045
24115
|
properties:
|
|
@@ -24168,6 +24238,7 @@ components:
|
|
|
24168
24238
|
enum:
|
|
24169
24239
|
- user
|
|
24170
24240
|
- assistant
|
|
24241
|
+
- developer
|
|
24171
24242
|
AIToolCallGetPageContent:
|
|
24172
24243
|
type: object
|
|
24173
24244
|
properties:
|
|
@@ -24694,6 +24765,12 @@ components:
|
|
|
24694
24765
|
- $ref: "#/components/schemas/AIToolCallSubmitChangeRequestReview"
|
|
24695
24766
|
- $ref: "#/components/schemas/AIToolCallMCP"
|
|
24696
24767
|
- $ref: "#/components/schemas/AIToolCallOther"
|
|
24768
|
+
AIMessageStepPhase:
|
|
24769
|
+
type: string
|
|
24770
|
+
description: The phase of a step in a message from the AI agent.
|
|
24771
|
+
enum:
|
|
24772
|
+
- commentary
|
|
24773
|
+
- final_answer
|
|
24697
24774
|
Timerange:
|
|
24698
24775
|
type: object
|
|
24699
24776
|
properties:
|
|
@@ -24753,6 +24830,8 @@ components:
|
|
|
24753
24830
|
type: array
|
|
24754
24831
|
items:
|
|
24755
24832
|
$ref: "#/components/schemas/AIToolCall"
|
|
24833
|
+
phase:
|
|
24834
|
+
$ref: "#/components/schemas/AIMessageStepPhase"
|
|
24756
24835
|
timing:
|
|
24757
24836
|
type: object
|
|
24758
24837
|
description: The timing of the step.
|
|
@@ -24763,8 +24842,6 @@ components:
|
|
|
24763
24842
|
type: array
|
|
24764
24843
|
items:
|
|
24765
24844
|
$ref: "#/components/schemas/AIAttachment"
|
|
24766
|
-
required:
|
|
24767
|
-
- content
|
|
24768
24845
|
AIMessageTask:
|
|
24769
24846
|
oneOf:
|
|
24770
24847
|
- type: object
|
|
@@ -24980,6 +25057,37 @@ components:
|
|
|
24980
25057
|
required:
|
|
24981
25058
|
- type
|
|
24982
25059
|
- organization
|
|
25060
|
+
UserSitePermissionSiteOrigin:
|
|
25061
|
+
type: object
|
|
25062
|
+
description: Direct site permission origin.
|
|
25063
|
+
properties:
|
|
25064
|
+
type:
|
|
25065
|
+
type: string
|
|
25066
|
+
enum:
|
|
25067
|
+
- site
|
|
25068
|
+
site:
|
|
25069
|
+
type: string
|
|
25070
|
+
description: Unique identifier for the site
|
|
25071
|
+
reason:
|
|
25072
|
+
type: string
|
|
25073
|
+
description: Why the permission was enforced at the site level.
|
|
25074
|
+
enum:
|
|
25075
|
+
- member
|
|
25076
|
+
- team
|
|
25077
|
+
- default
|
|
25078
|
+
team:
|
|
25079
|
+
type: string
|
|
25080
|
+
description: Unique identifier for the team when the permission comes from a team override.
|
|
25081
|
+
required:
|
|
25082
|
+
- type
|
|
25083
|
+
- site
|
|
25084
|
+
- reason
|
|
25085
|
+
UserSitePermissionOrigin:
|
|
25086
|
+
description: The origin that enforced the effective permission level for a user in a site.
|
|
25087
|
+
oneOf:
|
|
25088
|
+
- $ref: "#/components/schemas/SpacePointer"
|
|
25089
|
+
- $ref: "#/components/schemas/OrganizationPointer"
|
|
25090
|
+
- $ref: "#/components/schemas/UserSitePermissionSiteOrigin"
|
|
24983
25091
|
UserSitePermission:
|
|
24984
25092
|
type: object
|
|
24985
25093
|
description: Permission of a user in a site.
|
|
@@ -24989,10 +25097,7 @@ components:
|
|
|
24989
25097
|
user:
|
|
24990
25098
|
$ref: "#/components/schemas/User"
|
|
24991
25099
|
origin:
|
|
24992
|
-
|
|
24993
|
-
oneOf:
|
|
24994
|
-
- $ref: "#/components/schemas/SpacePointer"
|
|
24995
|
-
- $ref: "#/components/schemas/OrganizationPointer"
|
|
25100
|
+
$ref: "#/components/schemas/UserSitePermissionOrigin"
|
|
24996
25101
|
required:
|
|
24997
25102
|
- permission
|
|
24998
25103
|
- user
|
|
@@ -25143,6 +25248,29 @@ components:
|
|
|
25143
25248
|
required:
|
|
25144
25249
|
- type
|
|
25145
25250
|
- messageId
|
|
25251
|
+
AIStreamResponseStepStart:
|
|
25252
|
+
type: object
|
|
25253
|
+
description: |
|
|
25254
|
+
Message emitted by the server to indicate the start of a step in the AI response.
|
|
25255
|
+
properties:
|
|
25256
|
+
type:
|
|
25257
|
+
type: string
|
|
25258
|
+
enum:
|
|
25259
|
+
- response_step_start
|
|
25260
|
+
messageId:
|
|
25261
|
+
type: string
|
|
25262
|
+
description: |
|
|
25263
|
+
The ID of the message that this event is composing.
|
|
25264
|
+
stepIndex:
|
|
25265
|
+
type: integer
|
|
25266
|
+
description: |
|
|
25267
|
+
The index of the step of the message that this event is composing.
|
|
25268
|
+
phase:
|
|
25269
|
+
$ref: "#/components/schemas/AIMessageStepPhase"
|
|
25270
|
+
required:
|
|
25271
|
+
- type
|
|
25272
|
+
- messageId
|
|
25273
|
+
- stepIndex
|
|
25146
25274
|
AIStreamResponseFinish:
|
|
25147
25275
|
type: object
|
|
25148
25276
|
description: |
|
|
@@ -25333,6 +25461,7 @@ components:
|
|
|
25333
25461
|
AIStreamResponse:
|
|
25334
25462
|
oneOf:
|
|
25335
25463
|
- $ref: "#/components/schemas/AIStreamResponseStart"
|
|
25464
|
+
- $ref: "#/components/schemas/AIStreamResponseStepStart"
|
|
25336
25465
|
- $ref: "#/components/schemas/AIStreamResponseFinish"
|
|
25337
25466
|
- $ref: "#/components/schemas/AIStreamResponseDocument"
|
|
25338
25467
|
- $ref: "#/components/schemas/AIStreamResponseObject"
|
|
@@ -27260,6 +27389,9 @@ components:
|
|
|
27260
27389
|
$ref: "#/components/schemas/URL"
|
|
27261
27390
|
headers:
|
|
27262
27391
|
$ref: "#/components/schemas/SiteMcpServerHeaders"
|
|
27392
|
+
condition:
|
|
27393
|
+
description: Conditional expression used to evaluate whether the MCP server should be available to the site's visitor.
|
|
27394
|
+
$ref: "#/components/schemas/Expression"
|
|
27263
27395
|
urls:
|
|
27264
27396
|
type: object
|
|
27265
27397
|
description: URLs associated with the object
|
|
@@ -27305,6 +27437,24 @@ components:
|
|
|
27305
27437
|
required:
|
|
27306
27438
|
- type
|
|
27307
27439
|
- setupSettings
|
|
27440
|
+
- type: object
|
|
27441
|
+
properties:
|
|
27442
|
+
type:
|
|
27443
|
+
type: string
|
|
27444
|
+
enum:
|
|
27445
|
+
- builtin:linear
|
|
27446
|
+
setupSettings:
|
|
27447
|
+
type: object
|
|
27448
|
+
additionalProperties: false
|
|
27449
|
+
properties:
|
|
27450
|
+
allowedTeams:
|
|
27451
|
+
description: List of allowed Linear team keys or patterns. If empty, all teams are allowed.
|
|
27452
|
+
type: array
|
|
27453
|
+
items:
|
|
27454
|
+
$ref: "#/components/schemas/GenericChannelPattern"
|
|
27455
|
+
required:
|
|
27456
|
+
- type
|
|
27457
|
+
- setupSettings
|
|
27308
27458
|
- type: object
|
|
27309
27459
|
properties:
|
|
27310
27460
|
type:
|