@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/spec/openapi.json CHANGED
@@ -504,6 +504,33 @@
504
504
  }
505
505
  }
506
506
  },
507
+ "/user/notifications/token": {
508
+ "post": {
509
+ "operationId": "createUserNotificationsToken",
510
+ "summary": "Create a JWT to access the in-app notifications service",
511
+ "description": "Generates a JWT for the authenticated user. This token is used by the frontend notifications client to access user endpoints.\n",
512
+ "tags": [
513
+ "users"
514
+ ],
515
+ "security": [
516
+ {
517
+ "user-internal": []
518
+ }
519
+ ],
520
+ "responses": {
521
+ "200": {
522
+ "description": "The notifications service User JWT",
523
+ "content": {
524
+ "application/json": {
525
+ "schema": {
526
+ "$ref": "#/components/schemas/APITemporaryToken"
527
+ }
528
+ }
529
+ }
530
+ }
531
+ }
532
+ }
533
+ },
507
534
  "/users/{userId}": {
508
535
  "get": {
509
536
  "operationId": "getUserById",
@@ -2467,6 +2494,9 @@
2467
2494
  "description": {
2468
2495
  "$ref": "#/components/schemas/JSONDocument"
2469
2496
  },
2497
+ "links": {
2498
+ "$ref": "#/components/schemas/ChangeRequestLinks"
2499
+ },
2470
2500
  "status": {
2471
2501
  "type": "string",
2472
2502
  "enum": [
@@ -15088,7 +15118,8 @@
15088
15118
  "enum": [
15089
15119
  "askedAt",
15090
15120
  "stats.answered",
15091
- "stats.feedback"
15121
+ "stats.feedback",
15122
+ "stats.answers"
15092
15123
  ]
15093
15124
  }
15094
15125
  },
@@ -17983,6 +18014,17 @@
17983
18014
  },
17984
18015
  "headers": {
17985
18016
  "$ref": "#/components/schemas/SiteMcpServerHeaders"
18017
+ },
18018
+ "condition": {
18019
+ "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.",
18020
+ "oneOf": [
18021
+ {
18022
+ "$ref": "#/components/schemas/Expression"
18023
+ },
18024
+ {
18025
+ "type": "null"
18026
+ }
18027
+ ]
17986
18028
  }
17987
18029
  },
17988
18030
  "required": [
@@ -18083,6 +18125,17 @@
18083
18125
  },
18084
18126
  "headers": {
18085
18127
  "$ref": "#/components/schemas/SiteMcpServerHeaders"
18128
+ },
18129
+ "condition": {
18130
+ "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.",
18131
+ "oneOf": [
18132
+ {
18133
+ "$ref": "#/components/schemas/Expression"
18134
+ },
18135
+ {
18136
+ "type": "null"
18137
+ }
18138
+ ]
18086
18139
  }
18087
18140
  }
18088
18141
  }
@@ -19756,6 +19809,18 @@
19756
19809
  "urls"
19757
19810
  ]
19758
19811
  },
19812
+ "APITemporaryToken": {
19813
+ "type": "object",
19814
+ "properties": {
19815
+ "token": {
19816
+ "type": "string",
19817
+ "description": "Temporary access token to authenticate with the API"
19818
+ }
19819
+ },
19820
+ "required": [
19821
+ "token"
19822
+ ]
19823
+ },
19759
19824
  "List": {
19760
19825
  "type": "object",
19761
19826
  "properties": {
@@ -22449,6 +22514,10 @@
22449
22514
  "type": "boolean",
22450
22515
  "description": "Should we keep the table header sticky while the page scrolls"
22451
22516
  },
22517
+ "stickyFirstColumn": {
22518
+ "type": "boolean",
22519
+ "description": "Should we keep the first visible table column sticky while horizontally scrolling"
22520
+ },
22452
22521
  "useNewSizing": {
22453
22522
  "type": "boolean",
22454
22523
  "description": "Tables in GitBook originally used a scaled width approach i.e. the width defined\nin columnWidths would be scaled to ensure a 100% width table.\n\nWe later changed this to treat the widths in columnWidths as exact values - they are\nnever scaled. A columnWidth of 50 is rendered as 50px.\n\nIn order to maintain backwards compatibility, we track whether or not we\nuse the new system here.\n\nAll new tables should have this value set to true, older tables will have it set\nto undefined.\n"
@@ -26640,6 +26709,33 @@
26640
26709
  "minLength": 0,
26641
26710
  "maxLength": 100
26642
26711
  },
26712
+ "ChangeRequestLinkTitle": {
26713
+ "type": "string",
26714
+ "description": "Optional title to display for the link.",
26715
+ "maxLength": 128
26716
+ },
26717
+ "ChangeRequestLink": {
26718
+ "type": "object",
26719
+ "properties": {
26720
+ "ref": {
26721
+ "$ref": "#/components/schemas/ContentRefURL"
26722
+ },
26723
+ "title": {
26724
+ "$ref": "#/components/schemas/ChangeRequestLinkTitle"
26725
+ }
26726
+ },
26727
+ "required": [
26728
+ "ref"
26729
+ ]
26730
+ },
26731
+ "ChangeRequestLinks": {
26732
+ "type": "array",
26733
+ "description": "External links associated with the change request.",
26734
+ "items": {
26735
+ "$ref": "#/components/schemas/ChangeRequestLink"
26736
+ },
26737
+ "maxItems": 10
26738
+ },
26643
26739
  "ChangeRequest": {
26644
26740
  "type": "object",
26645
26741
  "properties": {
@@ -26726,6 +26822,9 @@
26726
26822
  "type": "boolean",
26727
26823
  "description": "If true, the change request is not up-to-date with latest changes in the main content."
26728
26824
  },
26825
+ "links": {
26826
+ "$ref": "#/components/schemas/ChangeRequestLinks"
26827
+ },
26729
26828
  "urls": {
26730
26829
  "type": "object",
26731
26830
  "description": "URLs associated with the object",
@@ -31791,6 +31890,8 @@
31791
31890
  "sites-ads",
31792
31891
  "sites-ai-search",
31793
31892
  "sites-ai-assistant",
31893
+ "sites-connections",
31894
+ "sites-channels",
31794
31895
  "sites-embed",
31795
31896
  "sites-api-playground",
31796
31897
  "sites-basic-customization",
@@ -33371,18 +33472,6 @@
33371
33472
  }
33372
33473
  }
33373
33474
  },
33374
- "APITemporaryToken": {
33375
- "type": "object",
33376
- "properties": {
33377
- "token": {
33378
- "type": "string",
33379
- "description": "Temporary access token to authenticate with the API"
33380
- }
33381
- },
33382
- "required": [
33383
- "token"
33384
- ]
33385
- },
33386
33475
  "UpdateIntegrationSpaceInstallation": {
33387
33476
  "type": "object",
33388
33477
  "properties": {
@@ -37481,6 +37570,9 @@
37481
37570
  {
37482
37571
  "$ref": "#/components/schemas/SiteFeatureKey"
37483
37572
  },
37573
+ {
37574
+ "$ref": "#/components/schemas/BillingMeter"
37575
+ },
37484
37576
  {
37485
37577
  "type": "string",
37486
37578
  "enum": [
@@ -38351,6 +38443,27 @@
38351
38443
  "searchBoost"
38352
38444
  ]
38353
38445
  },
38446
+ "YoutubeChannelId": {
38447
+ "type": "string",
38448
+ "description": "A YouTube channel ID starting with \"UC\".",
38449
+ "pattern": "^UC[A-Za-z0-9_-]{22}$"
38450
+ },
38451
+ "YoutubeChannelName": {
38452
+ "type": "string",
38453
+ "description": "A YouTube channel handle starting with \"@\".",
38454
+ "pattern": "^@[A-Za-z0-9._-]{3,100}$"
38455
+ },
38456
+ "YoutubeChannelPattern": {
38457
+ "description": "A YouTube channel identifier, either a channel ID or a channel handle.",
38458
+ "oneOf": [
38459
+ {
38460
+ "$ref": "#/components/schemas/YoutubeChannelId"
38461
+ },
38462
+ {
38463
+ "$ref": "#/components/schemas/YoutubeChannelName"
38464
+ }
38465
+ ]
38466
+ },
38354
38467
  "ContextConnectorSetup": {
38355
38468
  "oneOf": [
38356
38469
  {
@@ -38434,8 +38547,7 @@
38434
38547
  "type": "object",
38435
38548
  "properties": {
38436
38549
  "channelId": {
38437
- "type": "string",
38438
- "pattern": "^UC[A-Za-z0-9_-]{22}$"
38550
+ "$ref": "#/components/schemas/YoutubeChannelPattern"
38439
38551
  }
38440
38552
  },
38441
38553
  "required": [
@@ -38925,7 +39037,8 @@
38925
39037
  "enum": [
38926
39038
  "builtin:slack",
38927
39039
  "builtin:discord",
38928
- "builtin:github"
39040
+ "builtin:github",
39041
+ "builtin:linear"
38929
39042
  ]
38930
39043
  },
38931
39044
  "SiteQuestionAnswer": {
@@ -39109,7 +39222,8 @@
39109
39222
  "type": "string",
39110
39223
  "enum": [
39111
39224
  "user",
39112
- "assistant"
39225
+ "assistant",
39226
+ "developer"
39113
39227
  ]
39114
39228
  },
39115
39229
  "AIToolCallGetPageContent": {
@@ -39879,6 +39993,14 @@
39879
39993
  }
39880
39994
  ]
39881
39995
  },
39996
+ "AIMessageStepPhase": {
39997
+ "type": "string",
39998
+ "description": "The phase of a step in a message from the AI agent.",
39999
+ "enum": [
40000
+ "commentary",
40001
+ "final_answer"
40002
+ ]
40003
+ },
39882
40004
  "Timerange": {
39883
40005
  "type": "object",
39884
40006
  "properties": {
@@ -39968,6 +40090,9 @@
39968
40090
  "$ref": "#/components/schemas/AIToolCall"
39969
40091
  }
39970
40092
  },
40093
+ "phase": {
40094
+ "$ref": "#/components/schemas/AIMessageStepPhase"
40095
+ },
39971
40096
  "timing": {
39972
40097
  "type": "object",
39973
40098
  "description": "The timing of the step.",
@@ -39983,10 +40108,7 @@
39983
40108
  "$ref": "#/components/schemas/AIAttachment"
39984
40109
  }
39985
40110
  }
39986
- },
39987
- "required": [
39988
- "content"
39989
- ]
40111
+ }
39990
40112
  },
39991
40113
  "AIMessageTask": {
39992
40114
  "oneOf": [
@@ -40316,6 +40438,54 @@
40316
40438
  "organization"
40317
40439
  ]
40318
40440
  },
40441
+ "UserSitePermissionSiteOrigin": {
40442
+ "type": "object",
40443
+ "description": "Direct site permission origin.",
40444
+ "properties": {
40445
+ "type": {
40446
+ "type": "string",
40447
+ "enum": [
40448
+ "site"
40449
+ ]
40450
+ },
40451
+ "site": {
40452
+ "type": "string",
40453
+ "description": "Unique identifier for the site"
40454
+ },
40455
+ "reason": {
40456
+ "type": "string",
40457
+ "description": "Why the permission was enforced at the site level.",
40458
+ "enum": [
40459
+ "member",
40460
+ "team",
40461
+ "default"
40462
+ ]
40463
+ },
40464
+ "team": {
40465
+ "type": "string",
40466
+ "description": "Unique identifier for the team when the permission comes from a team override."
40467
+ }
40468
+ },
40469
+ "required": [
40470
+ "type",
40471
+ "site",
40472
+ "reason"
40473
+ ]
40474
+ },
40475
+ "UserSitePermissionOrigin": {
40476
+ "description": "The origin that enforced the effective permission level for a user in a site.",
40477
+ "oneOf": [
40478
+ {
40479
+ "$ref": "#/components/schemas/SpacePointer"
40480
+ },
40481
+ {
40482
+ "$ref": "#/components/schemas/OrganizationPointer"
40483
+ },
40484
+ {
40485
+ "$ref": "#/components/schemas/UserSitePermissionSiteOrigin"
40486
+ }
40487
+ ]
40488
+ },
40319
40489
  "UserSitePermission": {
40320
40490
  "type": "object",
40321
40491
  "description": "Permission of a user in a site.",
@@ -40327,15 +40497,7 @@
40327
40497
  "$ref": "#/components/schemas/User"
40328
40498
  },
40329
40499
  "origin": {
40330
- "description": "The content or organization that enforced this permission level.",
40331
- "oneOf": [
40332
- {
40333
- "$ref": "#/components/schemas/SpacePointer"
40334
- },
40335
- {
40336
- "$ref": "#/components/schemas/OrganizationPointer"
40337
- }
40338
- ]
40500
+ "$ref": "#/components/schemas/UserSitePermissionOrigin"
40339
40501
  }
40340
40502
  },
40341
40503
  "required": [
@@ -40551,6 +40713,34 @@
40551
40713
  "messageId"
40552
40714
  ]
40553
40715
  },
40716
+ "AIStreamResponseStepStart": {
40717
+ "type": "object",
40718
+ "description": "Message emitted by the server to indicate the start of a step in the AI response.\n",
40719
+ "properties": {
40720
+ "type": {
40721
+ "type": "string",
40722
+ "enum": [
40723
+ "response_step_start"
40724
+ ]
40725
+ },
40726
+ "messageId": {
40727
+ "type": "string",
40728
+ "description": "The ID of the message that this event is composing.\n"
40729
+ },
40730
+ "stepIndex": {
40731
+ "type": "integer",
40732
+ "description": "The index of the step of the message that this event is composing.\n"
40733
+ },
40734
+ "phase": {
40735
+ "$ref": "#/components/schemas/AIMessageStepPhase"
40736
+ }
40737
+ },
40738
+ "required": [
40739
+ "type",
40740
+ "messageId",
40741
+ "stepIndex"
40742
+ ]
40743
+ },
40554
40744
  "AIStreamResponseFinish": {
40555
40745
  "type": "object",
40556
40746
  "description": "Message emitted by the server to indicate the end of the AI response. It contains the ID of the response to be referenced for followup requests.\n",
@@ -40787,6 +40977,9 @@
40787
40977
  {
40788
40978
  "$ref": "#/components/schemas/AIStreamResponseStart"
40789
40979
  },
40980
+ {
40981
+ "$ref": "#/components/schemas/AIStreamResponseStepStart"
40982
+ },
40790
40983
  {
40791
40984
  "$ref": "#/components/schemas/AIStreamResponseFinish"
40792
40985
  },
@@ -43902,6 +44095,10 @@
43902
44095
  "headers": {
43903
44096
  "$ref": "#/components/schemas/SiteMcpServerHeaders"
43904
44097
  },
44098
+ "condition": {
44099
+ "description": "Conditional expression used to evaluate whether the MCP server should be available to the site's visitor.",
44100
+ "$ref": "#/components/schemas/Expression"
44101
+ },
43905
44102
  "urls": {
43906
44103
  "type": "object",
43907
44104
  "description": "URLs associated with the object",
@@ -43966,6 +44163,34 @@
43966
44163
  "setupSettings"
43967
44164
  ]
43968
44165
  },
44166
+ {
44167
+ "type": "object",
44168
+ "properties": {
44169
+ "type": {
44170
+ "type": "string",
44171
+ "enum": [
44172
+ "builtin:linear"
44173
+ ]
44174
+ },
44175
+ "setupSettings": {
44176
+ "type": "object",
44177
+ "additionalProperties": false,
44178
+ "properties": {
44179
+ "allowedTeams": {
44180
+ "description": "List of allowed Linear team keys or patterns. If empty, all teams are allowed.",
44181
+ "type": "array",
44182
+ "items": {
44183
+ "$ref": "#/components/schemas/GenericChannelPattern"
44184
+ }
44185
+ }
44186
+ }
44187
+ }
44188
+ },
44189
+ "required": [
44190
+ "type",
44191
+ "setupSettings"
44192
+ ]
44193
+ },
43969
44194
  {
43970
44195
  "type": "object",
43971
44196
  "properties": {