@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/dist/client.d.ts +103 -15
- 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 +258 -30
- package/spec/openapi.yaml +167 -16
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"
|
|
@@ -23304,6 +23373,9 @@
|
|
|
23304
23373
|
},
|
|
23305
23374
|
{
|
|
23306
23375
|
"$ref": "#/components/schemas/DocumentBlockColumns"
|
|
23376
|
+
},
|
|
23377
|
+
{
|
|
23378
|
+
"$ref": "#/components/schemas/DocumentBlockUpdates"
|
|
23307
23379
|
}
|
|
23308
23380
|
]
|
|
23309
23381
|
},
|
|
@@ -26640,6 +26712,33 @@
|
|
|
26640
26712
|
"minLength": 0,
|
|
26641
26713
|
"maxLength": 100
|
|
26642
26714
|
},
|
|
26715
|
+
"ChangeRequestLinkTitle": {
|
|
26716
|
+
"type": "string",
|
|
26717
|
+
"description": "Optional title to display for the link.",
|
|
26718
|
+
"maxLength": 128
|
|
26719
|
+
},
|
|
26720
|
+
"ChangeRequestLink": {
|
|
26721
|
+
"type": "object",
|
|
26722
|
+
"properties": {
|
|
26723
|
+
"ref": {
|
|
26724
|
+
"$ref": "#/components/schemas/ContentRefURL"
|
|
26725
|
+
},
|
|
26726
|
+
"title": {
|
|
26727
|
+
"$ref": "#/components/schemas/ChangeRequestLinkTitle"
|
|
26728
|
+
}
|
|
26729
|
+
},
|
|
26730
|
+
"required": [
|
|
26731
|
+
"ref"
|
|
26732
|
+
]
|
|
26733
|
+
},
|
|
26734
|
+
"ChangeRequestLinks": {
|
|
26735
|
+
"type": "array",
|
|
26736
|
+
"description": "External links associated with the change request.",
|
|
26737
|
+
"items": {
|
|
26738
|
+
"$ref": "#/components/schemas/ChangeRequestLink"
|
|
26739
|
+
},
|
|
26740
|
+
"maxItems": 10
|
|
26741
|
+
},
|
|
26643
26742
|
"ChangeRequest": {
|
|
26644
26743
|
"type": "object",
|
|
26645
26744
|
"properties": {
|
|
@@ -26726,6 +26825,9 @@
|
|
|
26726
26825
|
"type": "boolean",
|
|
26727
26826
|
"description": "If true, the change request is not up-to-date with latest changes in the main content."
|
|
26728
26827
|
},
|
|
26828
|
+
"links": {
|
|
26829
|
+
"$ref": "#/components/schemas/ChangeRequestLinks"
|
|
26830
|
+
},
|
|
26729
26831
|
"urls": {
|
|
26730
26832
|
"type": "object",
|
|
26731
26833
|
"description": "URLs associated with the object",
|
|
@@ -31791,6 +31893,8 @@
|
|
|
31791
31893
|
"sites-ads",
|
|
31792
31894
|
"sites-ai-search",
|
|
31793
31895
|
"sites-ai-assistant",
|
|
31896
|
+
"sites-connections",
|
|
31897
|
+
"sites-channels",
|
|
31794
31898
|
"sites-embed",
|
|
31795
31899
|
"sites-api-playground",
|
|
31796
31900
|
"sites-basic-customization",
|
|
@@ -33371,18 +33475,6 @@
|
|
|
33371
33475
|
}
|
|
33372
33476
|
}
|
|
33373
33477
|
},
|
|
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
33478
|
"UpdateIntegrationSpaceInstallation": {
|
|
33387
33479
|
"type": "object",
|
|
33388
33480
|
"properties": {
|
|
@@ -37481,6 +37573,9 @@
|
|
|
37481
37573
|
{
|
|
37482
37574
|
"$ref": "#/components/schemas/SiteFeatureKey"
|
|
37483
37575
|
},
|
|
37576
|
+
{
|
|
37577
|
+
"$ref": "#/components/schemas/BillingMeter"
|
|
37578
|
+
},
|
|
37484
37579
|
{
|
|
37485
37580
|
"type": "string",
|
|
37486
37581
|
"enum": [
|
|
@@ -38351,6 +38446,27 @@
|
|
|
38351
38446
|
"searchBoost"
|
|
38352
38447
|
]
|
|
38353
38448
|
},
|
|
38449
|
+
"YoutubeChannelId": {
|
|
38450
|
+
"type": "string",
|
|
38451
|
+
"description": "A YouTube channel ID starting with \"UC\".",
|
|
38452
|
+
"pattern": "^UC[A-Za-z0-9_-]{22}$"
|
|
38453
|
+
},
|
|
38454
|
+
"YoutubeChannelName": {
|
|
38455
|
+
"type": "string",
|
|
38456
|
+
"description": "A YouTube channel handle starting with \"@\".",
|
|
38457
|
+
"pattern": "^@[A-Za-z0-9._-]{3,100}$"
|
|
38458
|
+
},
|
|
38459
|
+
"YoutubeChannelPattern": {
|
|
38460
|
+
"description": "A YouTube channel identifier, either a channel ID or a channel handle.",
|
|
38461
|
+
"oneOf": [
|
|
38462
|
+
{
|
|
38463
|
+
"$ref": "#/components/schemas/YoutubeChannelId"
|
|
38464
|
+
},
|
|
38465
|
+
{
|
|
38466
|
+
"$ref": "#/components/schemas/YoutubeChannelName"
|
|
38467
|
+
}
|
|
38468
|
+
]
|
|
38469
|
+
},
|
|
38354
38470
|
"ContextConnectorSetup": {
|
|
38355
38471
|
"oneOf": [
|
|
38356
38472
|
{
|
|
@@ -38434,8 +38550,7 @@
|
|
|
38434
38550
|
"type": "object",
|
|
38435
38551
|
"properties": {
|
|
38436
38552
|
"channelId": {
|
|
38437
|
-
"
|
|
38438
|
-
"pattern": "^UC[A-Za-z0-9_-]{22}$"
|
|
38553
|
+
"$ref": "#/components/schemas/YoutubeChannelPattern"
|
|
38439
38554
|
}
|
|
38440
38555
|
},
|
|
38441
38556
|
"required": [
|
|
@@ -38925,7 +39040,8 @@
|
|
|
38925
39040
|
"enum": [
|
|
38926
39041
|
"builtin:slack",
|
|
38927
39042
|
"builtin:discord",
|
|
38928
|
-
"builtin:github"
|
|
39043
|
+
"builtin:github",
|
|
39044
|
+
"builtin:linear"
|
|
38929
39045
|
]
|
|
38930
39046
|
},
|
|
38931
39047
|
"SiteQuestionAnswer": {
|
|
@@ -39109,7 +39225,8 @@
|
|
|
39109
39225
|
"type": "string",
|
|
39110
39226
|
"enum": [
|
|
39111
39227
|
"user",
|
|
39112
|
-
"assistant"
|
|
39228
|
+
"assistant",
|
|
39229
|
+
"developer"
|
|
39113
39230
|
]
|
|
39114
39231
|
},
|
|
39115
39232
|
"AIToolCallGetPageContent": {
|
|
@@ -39879,6 +39996,14 @@
|
|
|
39879
39996
|
}
|
|
39880
39997
|
]
|
|
39881
39998
|
},
|
|
39999
|
+
"AIMessageStepPhase": {
|
|
40000
|
+
"type": "string",
|
|
40001
|
+
"description": "The phase of a step in a message from the AI agent.",
|
|
40002
|
+
"enum": [
|
|
40003
|
+
"commentary",
|
|
40004
|
+
"final_answer"
|
|
40005
|
+
]
|
|
40006
|
+
},
|
|
39882
40007
|
"Timerange": {
|
|
39883
40008
|
"type": "object",
|
|
39884
40009
|
"properties": {
|
|
@@ -39968,6 +40093,9 @@
|
|
|
39968
40093
|
"$ref": "#/components/schemas/AIToolCall"
|
|
39969
40094
|
}
|
|
39970
40095
|
},
|
|
40096
|
+
"phase": {
|
|
40097
|
+
"$ref": "#/components/schemas/AIMessageStepPhase"
|
|
40098
|
+
},
|
|
39971
40099
|
"timing": {
|
|
39972
40100
|
"type": "object",
|
|
39973
40101
|
"description": "The timing of the step.",
|
|
@@ -39983,10 +40111,7 @@
|
|
|
39983
40111
|
"$ref": "#/components/schemas/AIAttachment"
|
|
39984
40112
|
}
|
|
39985
40113
|
}
|
|
39986
|
-
}
|
|
39987
|
-
"required": [
|
|
39988
|
-
"content"
|
|
39989
|
-
]
|
|
40114
|
+
}
|
|
39990
40115
|
},
|
|
39991
40116
|
"AIMessageTask": {
|
|
39992
40117
|
"oneOf": [
|
|
@@ -40316,6 +40441,54 @@
|
|
|
40316
40441
|
"organization"
|
|
40317
40442
|
]
|
|
40318
40443
|
},
|
|
40444
|
+
"UserSitePermissionSiteOrigin": {
|
|
40445
|
+
"type": "object",
|
|
40446
|
+
"description": "Direct site permission origin.",
|
|
40447
|
+
"properties": {
|
|
40448
|
+
"type": {
|
|
40449
|
+
"type": "string",
|
|
40450
|
+
"enum": [
|
|
40451
|
+
"site"
|
|
40452
|
+
]
|
|
40453
|
+
},
|
|
40454
|
+
"site": {
|
|
40455
|
+
"type": "string",
|
|
40456
|
+
"description": "Unique identifier for the site"
|
|
40457
|
+
},
|
|
40458
|
+
"reason": {
|
|
40459
|
+
"type": "string",
|
|
40460
|
+
"description": "Why the permission was enforced at the site level.",
|
|
40461
|
+
"enum": [
|
|
40462
|
+
"member",
|
|
40463
|
+
"team",
|
|
40464
|
+
"default"
|
|
40465
|
+
]
|
|
40466
|
+
},
|
|
40467
|
+
"team": {
|
|
40468
|
+
"type": "string",
|
|
40469
|
+
"description": "Unique identifier for the team when the permission comes from a team override."
|
|
40470
|
+
}
|
|
40471
|
+
},
|
|
40472
|
+
"required": [
|
|
40473
|
+
"type",
|
|
40474
|
+
"site",
|
|
40475
|
+
"reason"
|
|
40476
|
+
]
|
|
40477
|
+
},
|
|
40478
|
+
"UserSitePermissionOrigin": {
|
|
40479
|
+
"description": "The origin that enforced the effective permission level for a user in a site.",
|
|
40480
|
+
"oneOf": [
|
|
40481
|
+
{
|
|
40482
|
+
"$ref": "#/components/schemas/SpacePointer"
|
|
40483
|
+
},
|
|
40484
|
+
{
|
|
40485
|
+
"$ref": "#/components/schemas/OrganizationPointer"
|
|
40486
|
+
},
|
|
40487
|
+
{
|
|
40488
|
+
"$ref": "#/components/schemas/UserSitePermissionSiteOrigin"
|
|
40489
|
+
}
|
|
40490
|
+
]
|
|
40491
|
+
},
|
|
40319
40492
|
"UserSitePermission": {
|
|
40320
40493
|
"type": "object",
|
|
40321
40494
|
"description": "Permission of a user in a site.",
|
|
@@ -40327,15 +40500,7 @@
|
|
|
40327
40500
|
"$ref": "#/components/schemas/User"
|
|
40328
40501
|
},
|
|
40329
40502
|
"origin": {
|
|
40330
|
-
"
|
|
40331
|
-
"oneOf": [
|
|
40332
|
-
{
|
|
40333
|
-
"$ref": "#/components/schemas/SpacePointer"
|
|
40334
|
-
},
|
|
40335
|
-
{
|
|
40336
|
-
"$ref": "#/components/schemas/OrganizationPointer"
|
|
40337
|
-
}
|
|
40338
|
-
]
|
|
40503
|
+
"$ref": "#/components/schemas/UserSitePermissionOrigin"
|
|
40339
40504
|
}
|
|
40340
40505
|
},
|
|
40341
40506
|
"required": [
|
|
@@ -40551,6 +40716,34 @@
|
|
|
40551
40716
|
"messageId"
|
|
40552
40717
|
]
|
|
40553
40718
|
},
|
|
40719
|
+
"AIStreamResponseStepStart": {
|
|
40720
|
+
"type": "object",
|
|
40721
|
+
"description": "Message emitted by the server to indicate the start of a step in the AI response.\n",
|
|
40722
|
+
"properties": {
|
|
40723
|
+
"type": {
|
|
40724
|
+
"type": "string",
|
|
40725
|
+
"enum": [
|
|
40726
|
+
"response_step_start"
|
|
40727
|
+
]
|
|
40728
|
+
},
|
|
40729
|
+
"messageId": {
|
|
40730
|
+
"type": "string",
|
|
40731
|
+
"description": "The ID of the message that this event is composing.\n"
|
|
40732
|
+
},
|
|
40733
|
+
"stepIndex": {
|
|
40734
|
+
"type": "integer",
|
|
40735
|
+
"description": "The index of the step of the message that this event is composing.\n"
|
|
40736
|
+
},
|
|
40737
|
+
"phase": {
|
|
40738
|
+
"$ref": "#/components/schemas/AIMessageStepPhase"
|
|
40739
|
+
}
|
|
40740
|
+
},
|
|
40741
|
+
"required": [
|
|
40742
|
+
"type",
|
|
40743
|
+
"messageId",
|
|
40744
|
+
"stepIndex"
|
|
40745
|
+
]
|
|
40746
|
+
},
|
|
40554
40747
|
"AIStreamResponseFinish": {
|
|
40555
40748
|
"type": "object",
|
|
40556
40749
|
"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 +40980,9 @@
|
|
|
40787
40980
|
{
|
|
40788
40981
|
"$ref": "#/components/schemas/AIStreamResponseStart"
|
|
40789
40982
|
},
|
|
40983
|
+
{
|
|
40984
|
+
"$ref": "#/components/schemas/AIStreamResponseStepStart"
|
|
40985
|
+
},
|
|
40790
40986
|
{
|
|
40791
40987
|
"$ref": "#/components/schemas/AIStreamResponseFinish"
|
|
40792
40988
|
},
|
|
@@ -43902,6 +44098,10 @@
|
|
|
43902
44098
|
"headers": {
|
|
43903
44099
|
"$ref": "#/components/schemas/SiteMcpServerHeaders"
|
|
43904
44100
|
},
|
|
44101
|
+
"condition": {
|
|
44102
|
+
"description": "Conditional expression used to evaluate whether the MCP server should be available to the site's visitor.",
|
|
44103
|
+
"$ref": "#/components/schemas/Expression"
|
|
44104
|
+
},
|
|
43905
44105
|
"urls": {
|
|
43906
44106
|
"type": "object",
|
|
43907
44107
|
"description": "URLs associated with the object",
|
|
@@ -43966,6 +44166,34 @@
|
|
|
43966
44166
|
"setupSettings"
|
|
43967
44167
|
]
|
|
43968
44168
|
},
|
|
44169
|
+
{
|
|
44170
|
+
"type": "object",
|
|
44171
|
+
"properties": {
|
|
44172
|
+
"type": {
|
|
44173
|
+
"type": "string",
|
|
44174
|
+
"enum": [
|
|
44175
|
+
"builtin:linear"
|
|
44176
|
+
]
|
|
44177
|
+
},
|
|
44178
|
+
"setupSettings": {
|
|
44179
|
+
"type": "object",
|
|
44180
|
+
"additionalProperties": false,
|
|
44181
|
+
"properties": {
|
|
44182
|
+
"allowedTeams": {
|
|
44183
|
+
"description": "List of allowed Linear team keys or patterns. If empty, all teams are allowed.",
|
|
44184
|
+
"type": "array",
|
|
44185
|
+
"items": {
|
|
44186
|
+
"$ref": "#/components/schemas/GenericChannelPattern"
|
|
44187
|
+
}
|
|
44188
|
+
}
|
|
44189
|
+
}
|
|
44190
|
+
}
|
|
44191
|
+
},
|
|
44192
|
+
"required": [
|
|
44193
|
+
"type",
|
|
44194
|
+
"setupSettings"
|
|
44195
|
+
]
|
|
44196
|
+
},
|
|
43969
44197
|
{
|
|
43970
44198
|
"type": "object",
|
|
43971
44199
|
"properties": {
|