@gitbook/api 0.175.0 → 0.177.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/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: |
@@ -13600,6 +13641,7 @@ components:
13600
13641
  - $ref: "#/components/schemas/DocumentBlockStepper"
13601
13642
  - $ref: "#/components/schemas/DocumentBlockIf"
13602
13643
  - $ref: "#/components/schemas/DocumentBlockColumns"
13644
+ - $ref: "#/components/schemas/DocumentBlockUpdates"
13603
13645
  DocumentBlockIf:
13604
13646
  type: object
13605
13647
  properties:
@@ -15650,6 +15692,25 @@ components:
15650
15692
  description: Subject of the change request
15651
15693
  minLength: 0
15652
15694
  maxLength: 100
15695
+ ChangeRequestLinkTitle:
15696
+ type: string
15697
+ description: Optional title to display for the link.
15698
+ maxLength: 128
15699
+ ChangeRequestLink:
15700
+ type: object
15701
+ properties:
15702
+ ref:
15703
+ $ref: "#/components/schemas/ContentRefURL"
15704
+ title:
15705
+ $ref: "#/components/schemas/ChangeRequestLinkTitle"
15706
+ required:
15707
+ - ref
15708
+ ChangeRequestLinks:
15709
+ type: array
15710
+ description: External links associated with the change request.
15711
+ items:
15712
+ $ref: "#/components/schemas/ChangeRequestLink"
15713
+ maxItems: 10
15653
15714
  ChangeRequest:
15654
15715
  type: object
15655
15716
  properties:
@@ -15713,6 +15774,8 @@ components:
15713
15774
  outdated:
15714
15775
  type: boolean
15715
15776
  description: If true, the change request is not up-to-date with latest changes in the main content.
15777
+ links:
15778
+ $ref: "#/components/schemas/ChangeRequestLinks"
15716
15779
  urls:
15717
15780
  type: object
15718
15781
  description: URLs associated with the object
@@ -19117,6 +19180,8 @@ components:
19117
19180
  - sites-ads
19118
19181
  - sites-ai-search
19119
19182
  - sites-ai-assistant
19183
+ - sites-connections
19184
+ - sites-channels
19120
19185
  - sites-embed
19121
19186
  - sites-api-playground
19122
19187
  - sites-basic-customization
@@ -20133,14 +20198,6 @@ components:
20133
20198
  $ref: "#/components/schemas/IntegrationInstallationSpaceSelection"
20134
20199
  site_selection:
20135
20200
  $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
20201
  UpdateIntegrationSpaceInstallation:
20145
20202
  type: object
20146
20203
  properties:
@@ -23029,6 +23086,7 @@ components:
23029
23086
  description: The reason or feature that triggered the site upgrade
23030
23087
  oneOf:
23031
23088
  - $ref: "#/components/schemas/SiteFeatureKey"
23089
+ - $ref: "#/components/schemas/BillingMeter"
23032
23090
  - type: string
23033
23091
  enum:
23034
23092
  - settings
@@ -23651,6 +23709,19 @@ components:
23651
23709
  - changeRequests
23652
23710
  - search
23653
23711
  - searchBoost
23712
+ YoutubeChannelId:
23713
+ type: string
23714
+ description: A YouTube channel ID starting with "UC".
23715
+ pattern: ^UC[A-Za-z0-9_-]{22}$
23716
+ YoutubeChannelName:
23717
+ type: string
23718
+ description: A YouTube channel handle starting with "@".
23719
+ pattern: ^@[A-Za-z0-9._-]{3,100}$
23720
+ YoutubeChannelPattern:
23721
+ description: A YouTube channel identifier, either a channel ID or a channel handle.
23722
+ oneOf:
23723
+ - $ref: "#/components/schemas/YoutubeChannelId"
23724
+ - $ref: "#/components/schemas/YoutubeChannelName"
23654
23725
  ContextConnectorSetup:
23655
23726
  oneOf:
23656
23727
  - type: object
@@ -23704,8 +23775,7 @@ components:
23704
23775
  type: object
23705
23776
  properties:
23706
23777
  channelId:
23707
- type: string
23708
- pattern: ^UC[A-Za-z0-9_-]{22}$
23778
+ $ref: "#/components/schemas/YoutubeChannelPattern"
23709
23779
  required:
23710
23780
  - channelId
23711
23781
  required:
@@ -24040,6 +24110,7 @@ components:
24040
24110
  - builtin:slack
24041
24111
  - builtin:discord
24042
24112
  - builtin:github
24113
+ - builtin:linear
24043
24114
  SiteQuestionAnswer:
24044
24115
  type: object
24045
24116
  properties:
@@ -24168,6 +24239,7 @@ components:
24168
24239
  enum:
24169
24240
  - user
24170
24241
  - assistant
24242
+ - developer
24171
24243
  AIToolCallGetPageContent:
24172
24244
  type: object
24173
24245
  properties:
@@ -24694,6 +24766,12 @@ components:
24694
24766
  - $ref: "#/components/schemas/AIToolCallSubmitChangeRequestReview"
24695
24767
  - $ref: "#/components/schemas/AIToolCallMCP"
24696
24768
  - $ref: "#/components/schemas/AIToolCallOther"
24769
+ AIMessageStepPhase:
24770
+ type: string
24771
+ description: The phase of a step in a message from the AI agent.
24772
+ enum:
24773
+ - commentary
24774
+ - final_answer
24697
24775
  Timerange:
24698
24776
  type: object
24699
24777
  properties:
@@ -24753,6 +24831,8 @@ components:
24753
24831
  type: array
24754
24832
  items:
24755
24833
  $ref: "#/components/schemas/AIToolCall"
24834
+ phase:
24835
+ $ref: "#/components/schemas/AIMessageStepPhase"
24756
24836
  timing:
24757
24837
  type: object
24758
24838
  description: The timing of the step.
@@ -24763,8 +24843,6 @@ components:
24763
24843
  type: array
24764
24844
  items:
24765
24845
  $ref: "#/components/schemas/AIAttachment"
24766
- required:
24767
- - content
24768
24846
  AIMessageTask:
24769
24847
  oneOf:
24770
24848
  - type: object
@@ -24980,6 +25058,37 @@ components:
24980
25058
  required:
24981
25059
  - type
24982
25060
  - organization
25061
+ UserSitePermissionSiteOrigin:
25062
+ type: object
25063
+ description: Direct site permission origin.
25064
+ properties:
25065
+ type:
25066
+ type: string
25067
+ enum:
25068
+ - site
25069
+ site:
25070
+ type: string
25071
+ description: Unique identifier for the site
25072
+ reason:
25073
+ type: string
25074
+ description: Why the permission was enforced at the site level.
25075
+ enum:
25076
+ - member
25077
+ - team
25078
+ - default
25079
+ team:
25080
+ type: string
25081
+ description: Unique identifier for the team when the permission comes from a team override.
25082
+ required:
25083
+ - type
25084
+ - site
25085
+ - reason
25086
+ UserSitePermissionOrigin:
25087
+ description: The origin that enforced the effective permission level for a user in a site.
25088
+ oneOf:
25089
+ - $ref: "#/components/schemas/SpacePointer"
25090
+ - $ref: "#/components/schemas/OrganizationPointer"
25091
+ - $ref: "#/components/schemas/UserSitePermissionSiteOrigin"
24983
25092
  UserSitePermission:
24984
25093
  type: object
24985
25094
  description: Permission of a user in a site.
@@ -24989,10 +25098,7 @@ components:
24989
25098
  user:
24990
25099
  $ref: "#/components/schemas/User"
24991
25100
  origin:
24992
- description: The content or organization that enforced this permission level.
24993
- oneOf:
24994
- - $ref: "#/components/schemas/SpacePointer"
24995
- - $ref: "#/components/schemas/OrganizationPointer"
25101
+ $ref: "#/components/schemas/UserSitePermissionOrigin"
24996
25102
  required:
24997
25103
  - permission
24998
25104
  - user
@@ -25143,6 +25249,29 @@ components:
25143
25249
  required:
25144
25250
  - type
25145
25251
  - messageId
25252
+ AIStreamResponseStepStart:
25253
+ type: object
25254
+ description: |
25255
+ Message emitted by the server to indicate the start of a step in the AI response.
25256
+ properties:
25257
+ type:
25258
+ type: string
25259
+ enum:
25260
+ - response_step_start
25261
+ messageId:
25262
+ type: string
25263
+ description: |
25264
+ The ID of the message that this event is composing.
25265
+ stepIndex:
25266
+ type: integer
25267
+ description: |
25268
+ The index of the step of the message that this event is composing.
25269
+ phase:
25270
+ $ref: "#/components/schemas/AIMessageStepPhase"
25271
+ required:
25272
+ - type
25273
+ - messageId
25274
+ - stepIndex
25146
25275
  AIStreamResponseFinish:
25147
25276
  type: object
25148
25277
  description: |
@@ -25333,6 +25462,7 @@ components:
25333
25462
  AIStreamResponse:
25334
25463
  oneOf:
25335
25464
  - $ref: "#/components/schemas/AIStreamResponseStart"
25465
+ - $ref: "#/components/schemas/AIStreamResponseStepStart"
25336
25466
  - $ref: "#/components/schemas/AIStreamResponseFinish"
25337
25467
  - $ref: "#/components/schemas/AIStreamResponseDocument"
25338
25468
  - $ref: "#/components/schemas/AIStreamResponseObject"
@@ -27260,6 +27390,9 @@ components:
27260
27390
  $ref: "#/components/schemas/URL"
27261
27391
  headers:
27262
27392
  $ref: "#/components/schemas/SiteMcpServerHeaders"
27393
+ condition:
27394
+ description: Conditional expression used to evaluate whether the MCP server should be available to the site's visitor.
27395
+ $ref: "#/components/schemas/Expression"
27263
27396
  urls:
27264
27397
  type: object
27265
27398
  description: URLs associated with the object
@@ -27305,6 +27438,24 @@ components:
27305
27438
  required:
27306
27439
  - type
27307
27440
  - setupSettings
27441
+ - type: object
27442
+ properties:
27443
+ type:
27444
+ type: string
27445
+ enum:
27446
+ - builtin:linear
27447
+ setupSettings:
27448
+ type: object
27449
+ additionalProperties: false
27450
+ properties:
27451
+ allowedTeams:
27452
+ description: List of allowed Linear team keys or patterns. If empty, all teams are allowed.
27453
+ type: array
27454
+ items:
27455
+ $ref: "#/components/schemas/GenericChannelPattern"
27456
+ required:
27457
+ - type
27458
+ - setupSettings
27308
27459
  - type: object
27309
27460
  properties:
27310
27461
  type: