@gitbook/api 0.179.0 → 0.180.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 +133 -13
- package/dist/constants.d.ts +1 -0
- package/dist/index.cjs +23 -1
- package/dist/index.js +21 -1
- package/package.json +1 -1
- package/spec/openapi.json +237 -70
- package/spec/openapi.yaml +167 -51
package/spec/openapi.yaml
CHANGED
|
@@ -1256,6 +1256,7 @@ paths:
|
|
|
1256
1256
|
- $ref: "#/components/parameters/spaceId"
|
|
1257
1257
|
- $ref: "#/components/parameters/pageId"
|
|
1258
1258
|
- $ref: "#/components/parameters/documentFormat"
|
|
1259
|
+
- $ref: "#/components/parameters/documentMarkdownRefsFormat"
|
|
1259
1260
|
- $ref: "#/components/parameters/documentEvaluated"
|
|
1260
1261
|
- $ref: "#/components/parameters/documentDereferenced"
|
|
1261
1262
|
- $ref: "#/components/parameters/revisionMetadata"
|
|
@@ -1364,6 +1365,7 @@ paths:
|
|
|
1364
1365
|
- $ref: "#/components/parameters/spaceId"
|
|
1365
1366
|
- $ref: "#/components/parameters/pagePath"
|
|
1366
1367
|
- $ref: "#/components/parameters/documentFormat"
|
|
1368
|
+
- $ref: "#/components/parameters/documentMarkdownRefsFormat"
|
|
1367
1369
|
- $ref: "#/components/parameters/documentEvaluated"
|
|
1368
1370
|
- $ref: "#/components/parameters/documentDereferenced"
|
|
1369
1371
|
- $ref: "#/components/parameters/revisionMetadata"
|
|
@@ -2364,6 +2366,7 @@ paths:
|
|
|
2364
2366
|
- $ref: "#/components/parameters/changeRequestId"
|
|
2365
2367
|
- $ref: "#/components/parameters/pageId"
|
|
2366
2368
|
- $ref: "#/components/parameters/documentFormat"
|
|
2369
|
+
- $ref: "#/components/parameters/documentMarkdownRefsFormat"
|
|
2367
2370
|
- $ref: "#/components/parameters/documentEvaluated"
|
|
2368
2371
|
- $ref: "#/components/parameters/documentDereferenced"
|
|
2369
2372
|
- $ref: "#/components/parameters/revisionMetadata"
|
|
@@ -2680,6 +2683,7 @@ paths:
|
|
|
2680
2683
|
- $ref: "#/components/parameters/revisionId"
|
|
2681
2684
|
- $ref: "#/components/parameters/pageId"
|
|
2682
2685
|
- $ref: "#/components/parameters/documentFormat"
|
|
2686
|
+
- $ref: "#/components/parameters/documentMarkdownRefsFormat"
|
|
2683
2687
|
- $ref: "#/components/parameters/documentEvaluated"
|
|
2684
2688
|
- $ref: "#/components/parameters/documentDereferenced"
|
|
2685
2689
|
- $ref: "#/components/parameters/revisionMetadata"
|
|
@@ -2725,6 +2729,7 @@ paths:
|
|
|
2725
2729
|
- $ref: "#/components/parameters/revisionId"
|
|
2726
2730
|
- $ref: "#/components/parameters/pagePath"
|
|
2727
2731
|
- $ref: "#/components/parameters/documentFormat"
|
|
2732
|
+
- $ref: "#/components/parameters/documentMarkdownRefsFormat"
|
|
2728
2733
|
- $ref: "#/components/parameters/documentEvaluated"
|
|
2729
2734
|
- $ref: "#/components/parameters/documentDereferenced"
|
|
2730
2735
|
- $ref: "#/components/parameters/revisionMetadata"
|
|
@@ -2770,6 +2775,7 @@ paths:
|
|
|
2770
2775
|
- $ref: "#/components/parameters/changeRequestId"
|
|
2771
2776
|
- $ref: "#/components/parameters/pagePath"
|
|
2772
2777
|
- $ref: "#/components/parameters/documentFormat"
|
|
2778
|
+
- $ref: "#/components/parameters/documentMarkdownRefsFormat"
|
|
2773
2779
|
- $ref: "#/components/parameters/documentEvaluated"
|
|
2774
2780
|
- $ref: "#/components/parameters/documentDereferenced"
|
|
2775
2781
|
- $ref: "#/components/parameters/revisionMetadata"
|
|
@@ -10758,6 +10764,26 @@ paths:
|
|
|
10758
10764
|
"409":
|
|
10759
10765
|
$ref: "#/components/responses/ConflictError"
|
|
10760
10766
|
"/git/installations/{installationId}":
|
|
10767
|
+
get:
|
|
10768
|
+
operationId: getGitSyncInstallationById
|
|
10769
|
+
summary: Get a Git Sync installation
|
|
10770
|
+
tags:
|
|
10771
|
+
- git
|
|
10772
|
+
security:
|
|
10773
|
+
- user: []
|
|
10774
|
+
parameters:
|
|
10775
|
+
- $ref: "#/components/parameters/installationId"
|
|
10776
|
+
responses:
|
|
10777
|
+
"200":
|
|
10778
|
+
description: Git Sync installation was found successfully
|
|
10779
|
+
content:
|
|
10780
|
+
application/json:
|
|
10781
|
+
schema:
|
|
10782
|
+
$ref: "#/components/schemas/GitSyncInstallation"
|
|
10783
|
+
"401":
|
|
10784
|
+
$ref: "#/components/responses/UnauthorizedError"
|
|
10785
|
+
"404":
|
|
10786
|
+
$ref: "#/components/responses/NotFoundError"
|
|
10761
10787
|
patch:
|
|
10762
10788
|
operationId: updateGitSyncInstallationById
|
|
10763
10789
|
summary: Update a Git Sync installation configuration
|
|
@@ -11033,6 +11059,20 @@ components:
|
|
|
11033
11059
|
enum:
|
|
11034
11060
|
- document
|
|
11035
11061
|
- markdown
|
|
11062
|
+
documentMarkdownRefsFormat:
|
|
11063
|
+
name: format.markdown.refs
|
|
11064
|
+
in: query
|
|
11065
|
+
description: |
|
|
11066
|
+
Controls how content references are formatted in markdown output. Ignored unless `format=markdown`.
|
|
11067
|
+
|
|
11068
|
+
- `relative`: Format page references as relative links from the current page. Other references might not be handled.
|
|
11069
|
+
- `stable`: Format content references as stable idempotent refs containing their identifiers.
|
|
11070
|
+
schema:
|
|
11071
|
+
type: string
|
|
11072
|
+
default: relative
|
|
11073
|
+
enum:
|
|
11074
|
+
- relative
|
|
11075
|
+
- stable
|
|
11036
11076
|
documentEvaluated:
|
|
11037
11077
|
name: evaluated
|
|
11038
11078
|
in: query
|
|
@@ -11784,6 +11824,12 @@ components:
|
|
|
11784
11824
|
- lv
|
|
11785
11825
|
- et
|
|
11786
11826
|
- sl
|
|
11827
|
+
GitSyncInstallationStatus:
|
|
11828
|
+
type: string
|
|
11829
|
+
enum:
|
|
11830
|
+
- unauthenticated
|
|
11831
|
+
- active
|
|
11832
|
+
- pending
|
|
11787
11833
|
GitSyncProvider:
|
|
11788
11834
|
type: string
|
|
11789
11835
|
description: The provider of the Git Sync installation.
|
|
@@ -11797,11 +11843,17 @@ components:
|
|
|
11797
11843
|
repoName:
|
|
11798
11844
|
type: string
|
|
11799
11845
|
description: Repository name.
|
|
11846
|
+
installationStatus:
|
|
11847
|
+
$ref: "#/components/schemas/GitSyncInstallationStatus"
|
|
11800
11848
|
installationProvider:
|
|
11801
11849
|
$ref: "#/components/schemas/GitSyncProvider"
|
|
11802
11850
|
integration:
|
|
11803
11851
|
type: string
|
|
11852
|
+
deprecated: true
|
|
11804
11853
|
description: The integration name providing the Git Sync.
|
|
11854
|
+
installationId:
|
|
11855
|
+
type: string
|
|
11856
|
+
description: The ID of the Git Sync installation.
|
|
11805
11857
|
url:
|
|
11806
11858
|
type: string
|
|
11807
11859
|
description: The URL to the repository tree, used when rendering public content.
|
|
@@ -22212,6 +22264,9 @@ components:
|
|
|
22212
22264
|
- completed
|
|
22213
22265
|
- failed
|
|
22214
22266
|
- cancelled
|
|
22267
|
+
reason:
|
|
22268
|
+
description: Reason for the import failure when `status` is `failed`.
|
|
22269
|
+
type: string
|
|
22215
22270
|
pages:
|
|
22216
22271
|
description: Pages included in the import
|
|
22217
22272
|
type: array
|
|
@@ -24650,11 +24705,15 @@ components:
|
|
|
24650
24705
|
spaceId:
|
|
24651
24706
|
type: string
|
|
24652
24707
|
description: The ID of the space being edited.
|
|
24708
|
+
baseRevisionId:
|
|
24709
|
+
type: string
|
|
24710
|
+
description: The base revision ID used to compare the page change in the current conversation.
|
|
24653
24711
|
page:
|
|
24654
24712
|
$ref: "#/components/schemas/ChangedRevisionPage"
|
|
24655
24713
|
required:
|
|
24656
24714
|
- tool
|
|
24657
24715
|
- spaceId
|
|
24716
|
+
- baseRevisionId
|
|
24658
24717
|
- page
|
|
24659
24718
|
AIToolCallCreatePage:
|
|
24660
24719
|
type: object
|
|
@@ -24666,11 +24725,15 @@ components:
|
|
|
24666
24725
|
spaceId:
|
|
24667
24726
|
type: string
|
|
24668
24727
|
description: The ID of the space being edited.
|
|
24728
|
+
baseRevisionId:
|
|
24729
|
+
type: string
|
|
24730
|
+
description: The base revision ID used to compare the page change in the current conversation.
|
|
24669
24731
|
page:
|
|
24670
24732
|
$ref: "#/components/schemas/ChangedRevisionPage"
|
|
24671
24733
|
required:
|
|
24672
24734
|
- tool
|
|
24673
24735
|
- spaceId
|
|
24736
|
+
- baseRevisionId
|
|
24674
24737
|
- page
|
|
24675
24738
|
AIToolCallDeletePage:
|
|
24676
24739
|
type: object
|
|
@@ -24682,11 +24745,15 @@ components:
|
|
|
24682
24745
|
spaceId:
|
|
24683
24746
|
type: string
|
|
24684
24747
|
description: The ID of the space being edited.
|
|
24748
|
+
baseRevisionId:
|
|
24749
|
+
type: string
|
|
24750
|
+
description: The base revision ID used to compare the page deletion in the current conversation.
|
|
24685
24751
|
page:
|
|
24686
24752
|
$ref: "#/components/schemas/ChangedRevisionPage"
|
|
24687
24753
|
required:
|
|
24688
24754
|
- tool
|
|
24689
24755
|
- spaceId
|
|
24756
|
+
- baseRevisionId
|
|
24690
24757
|
- page
|
|
24691
24758
|
AIToolCallRenamePage:
|
|
24692
24759
|
type: object
|
|
@@ -24698,6 +24765,9 @@ components:
|
|
|
24698
24765
|
spaceId:
|
|
24699
24766
|
type: string
|
|
24700
24767
|
description: The ID of the space being edited.
|
|
24768
|
+
baseRevisionId:
|
|
24769
|
+
type: string
|
|
24770
|
+
description: The base revision ID used to compare the page rename in the current conversation.
|
|
24701
24771
|
page:
|
|
24702
24772
|
$ref: "#/components/schemas/ChangedRevisionPage"
|
|
24703
24773
|
title:
|
|
@@ -24706,6 +24776,7 @@ components:
|
|
|
24706
24776
|
required:
|
|
24707
24777
|
- tool
|
|
24708
24778
|
- spaceId
|
|
24779
|
+
- baseRevisionId
|
|
24709
24780
|
- page
|
|
24710
24781
|
- title
|
|
24711
24782
|
AIToolCallMovePage:
|
|
@@ -24718,6 +24789,9 @@ components:
|
|
|
24718
24789
|
spaceId:
|
|
24719
24790
|
type: string
|
|
24720
24791
|
description: The ID of the space being edited.
|
|
24792
|
+
baseRevisionId:
|
|
24793
|
+
type: string
|
|
24794
|
+
description: The base revision ID used to compare the page move in the current conversation.
|
|
24721
24795
|
page:
|
|
24722
24796
|
$ref: "#/components/schemas/ChangedRevisionPage"
|
|
24723
24797
|
to:
|
|
@@ -24736,6 +24810,7 @@ components:
|
|
|
24736
24810
|
required:
|
|
24737
24811
|
- tool
|
|
24738
24812
|
- spaceId
|
|
24813
|
+
- baseRevisionId
|
|
24739
24814
|
- page
|
|
24740
24815
|
- moveType
|
|
24741
24816
|
AIToolCallListModifiedPages:
|
|
@@ -24777,11 +24852,15 @@ components:
|
|
|
24777
24852
|
spaceId:
|
|
24778
24853
|
type: string
|
|
24779
24854
|
description: The ID of the space being edited.
|
|
24855
|
+
baseRevisionId:
|
|
24856
|
+
type: string
|
|
24857
|
+
description: The base revision ID used to compare the reusable content change in the current conversation.
|
|
24780
24858
|
reusableContent:
|
|
24781
24859
|
$ref: "#/components/schemas/ChangedRevisionReusableContent"
|
|
24782
24860
|
required:
|
|
24783
24861
|
- tool
|
|
24784
24862
|
- spaceId
|
|
24863
|
+
- baseRevisionId
|
|
24785
24864
|
- reusableContent
|
|
24786
24865
|
AIToolCallEditReusableContent:
|
|
24787
24866
|
type: object
|
|
@@ -24793,11 +24872,15 @@ components:
|
|
|
24793
24872
|
spaceId:
|
|
24794
24873
|
type: string
|
|
24795
24874
|
description: The ID of the space being edited.
|
|
24875
|
+
baseRevisionId:
|
|
24876
|
+
type: string
|
|
24877
|
+
description: The base revision ID used to compare the reusable content change in the current conversation.
|
|
24796
24878
|
reusableContent:
|
|
24797
24879
|
$ref: "#/components/schemas/ChangedRevisionReusableContent"
|
|
24798
24880
|
required:
|
|
24799
24881
|
- tool
|
|
24800
24882
|
- spaceId
|
|
24883
|
+
- baseRevisionId
|
|
24801
24884
|
- reusableContent
|
|
24802
24885
|
AIToolCallGetReusableContent:
|
|
24803
24886
|
type: object
|
|
@@ -26711,6 +26794,8 @@ components:
|
|
|
26711
26794
|
- facebookbot
|
|
26712
26795
|
- applebot
|
|
26713
26796
|
- chatgpt
|
|
26797
|
+
- openai
|
|
26798
|
+
- claude
|
|
26714
26799
|
- anthropic
|
|
26715
26800
|
- gemini
|
|
26716
26801
|
- perplexity
|
|
@@ -26725,6 +26810,8 @@ components:
|
|
|
26725
26810
|
- cursor
|
|
26726
26811
|
- vscode
|
|
26727
26812
|
- claude-code
|
|
26813
|
+
- codex
|
|
26814
|
+
- opencode
|
|
26728
26815
|
SiteInsightsQueryEventsValues:
|
|
26729
26816
|
oneOf:
|
|
26730
26817
|
- type: object
|
|
@@ -28351,64 +28438,66 @@ components:
|
|
|
28351
28438
|
priority:
|
|
28352
28439
|
$ref: "#/components/schemas/GitSyncInstallationPriority"
|
|
28353
28440
|
GitSyncInstallationSetupGitHub:
|
|
28354
|
-
|
|
28355
|
-
|
|
28356
|
-
|
|
28357
|
-
|
|
28441
|
+
type: object
|
|
28442
|
+
description: GitHub provider configuration for a Git Sync installation.
|
|
28443
|
+
properties:
|
|
28444
|
+
provider:
|
|
28445
|
+
type: string
|
|
28446
|
+
enum:
|
|
28447
|
+
- github
|
|
28448
|
+
providerConfiguration:
|
|
28449
|
+
type: object
|
|
28450
|
+
description: GitHub specific configuration for the Git Sync installation.
|
|
28358
28451
|
properties:
|
|
28359
|
-
|
|
28452
|
+
repositoryId:
|
|
28453
|
+
type: number
|
|
28454
|
+
description: GitHub repository identifier.
|
|
28455
|
+
branch:
|
|
28360
28456
|
type: string
|
|
28361
|
-
|
|
28362
|
-
|
|
28363
|
-
|
|
28364
|
-
|
|
28365
|
-
|
|
28366
|
-
properties:
|
|
28367
|
-
repositoryId:
|
|
28368
|
-
type: number
|
|
28369
|
-
description: GitHub repository identifier.
|
|
28370
|
-
branch:
|
|
28371
|
-
type: string
|
|
28372
|
-
description: GitHub repository branch.
|
|
28373
|
-
required:
|
|
28374
|
-
- provider
|
|
28375
|
-
- providerConfiguration
|
|
28457
|
+
pattern: ^refs/heads/.+$
|
|
28458
|
+
description: GitHub repository branch ref.
|
|
28459
|
+
required:
|
|
28460
|
+
- provider
|
|
28461
|
+
- providerConfiguration
|
|
28376
28462
|
GitSyncInstallationSetupGitLab:
|
|
28377
|
-
|
|
28378
|
-
|
|
28379
|
-
|
|
28380
|
-
|
|
28463
|
+
type: object
|
|
28464
|
+
description: GitLab provider configuration for a Git Sync installation.
|
|
28465
|
+
properties:
|
|
28466
|
+
provider:
|
|
28467
|
+
type: string
|
|
28468
|
+
enum:
|
|
28469
|
+
- gitlab
|
|
28470
|
+
providerConfiguration:
|
|
28471
|
+
type: object
|
|
28472
|
+
description: GitLab specific configuration for the Git Sync installation.
|
|
28381
28473
|
properties:
|
|
28382
|
-
|
|
28474
|
+
projectId:
|
|
28475
|
+
type: number
|
|
28476
|
+
description: GitLab project identifier.
|
|
28477
|
+
accessToken:
|
|
28383
28478
|
type: string
|
|
28384
|
-
|
|
28385
|
-
|
|
28386
|
-
|
|
28387
|
-
|
|
28388
|
-
|
|
28389
|
-
|
|
28390
|
-
|
|
28391
|
-
|
|
28392
|
-
|
|
28393
|
-
|
|
28394
|
-
|
|
28395
|
-
|
|
28396
|
-
|
|
28397
|
-
type: string
|
|
28398
|
-
description: Custom GitLab instance URL, if using a self-hosted GitLab.
|
|
28399
|
-
branch:
|
|
28400
|
-
type: string
|
|
28401
|
-
description: GitLab repository branch.
|
|
28402
|
-
required:
|
|
28403
|
-
- provider
|
|
28404
|
-
- providerConfiguration
|
|
28479
|
+
description: GitLab access token with appropriate scopes for repository access.
|
|
28480
|
+
customInstanceURL:
|
|
28481
|
+
oneOf:
|
|
28482
|
+
- type: string
|
|
28483
|
+
- type: "null"
|
|
28484
|
+
description: Custom GitLab instance URL, if using a self-hosted GitLab. Use null to clear a self-hosted URL.
|
|
28485
|
+
branch:
|
|
28486
|
+
type: string
|
|
28487
|
+
pattern: ^refs/heads/.+$
|
|
28488
|
+
description: GitLab repository branch ref.
|
|
28489
|
+
required:
|
|
28490
|
+
- provider
|
|
28491
|
+
- providerConfiguration
|
|
28405
28492
|
GitSyncInstallationSetup:
|
|
28406
28493
|
description: Provider-specific setup payload for a Git Sync installation.
|
|
28407
|
-
|
|
28408
|
-
- $ref: "#/components/schemas/
|
|
28409
|
-
-
|
|
28410
|
-
|
|
28411
|
-
|
|
28494
|
+
allOf:
|
|
28495
|
+
- $ref: "#/components/schemas/GitSyncInstallationSetupCommon"
|
|
28496
|
+
- oneOf:
|
|
28497
|
+
- $ref: "#/components/schemas/GitSyncInstallationSetupGitHub"
|
|
28498
|
+
- $ref: "#/components/schemas/GitSyncInstallationSetupGitLab"
|
|
28499
|
+
discriminator:
|
|
28500
|
+
propertyName: provider
|
|
28412
28501
|
GitSyncInstallation:
|
|
28413
28502
|
allOf:
|
|
28414
28503
|
- $ref: "#/components/schemas/GitSyncInstallationSetup"
|
|
@@ -28423,6 +28512,8 @@ components:
|
|
|
28423
28512
|
description: Unique identifier of the Git Sync installation.
|
|
28424
28513
|
target:
|
|
28425
28514
|
$ref: "#/components/schemas/GitSyncInstallationTarget"
|
|
28515
|
+
status:
|
|
28516
|
+
$ref: "#/components/schemas/GitSyncInstallationStatus"
|
|
28426
28517
|
createdAt:
|
|
28427
28518
|
$ref: "#/components/schemas/Timestamp"
|
|
28428
28519
|
createdBy:
|
|
@@ -28430,13 +28521,25 @@ components:
|
|
|
28430
28521
|
description: Identifier of the user who created the installation.
|
|
28431
28522
|
updatedAt:
|
|
28432
28523
|
$ref: "#/components/schemas/Timestamp"
|
|
28524
|
+
urls:
|
|
28525
|
+
type: object
|
|
28526
|
+
description: URLs associated with the installation
|
|
28527
|
+
properties:
|
|
28528
|
+
location:
|
|
28529
|
+
type: string
|
|
28530
|
+
description: URL of the installation endpoint in the API
|
|
28531
|
+
format: uri
|
|
28532
|
+
required:
|
|
28533
|
+
- location
|
|
28433
28534
|
required:
|
|
28434
28535
|
- object
|
|
28435
28536
|
- id
|
|
28436
28537
|
- target
|
|
28538
|
+
- status
|
|
28437
28539
|
- createdAt
|
|
28438
28540
|
- createdBy
|
|
28439
28541
|
- updatedAt
|
|
28542
|
+
- urls
|
|
28440
28543
|
GitSyncGitHubRepository:
|
|
28441
28544
|
type: object
|
|
28442
28545
|
description: GitHub repository that can be selected for Git Sync.
|
|
@@ -30006,6 +30109,18 @@ components:
|
|
|
30006
30109
|
required:
|
|
30007
30110
|
- channel
|
|
30008
30111
|
- customHostname
|
|
30112
|
+
APIChannelGitSyncInstallation:
|
|
30113
|
+
type: object
|
|
30114
|
+
properties:
|
|
30115
|
+
channel:
|
|
30116
|
+
type: string
|
|
30117
|
+
enum:
|
|
30118
|
+
- git-sync-installation
|
|
30119
|
+
installation:
|
|
30120
|
+
type: string
|
|
30121
|
+
required:
|
|
30122
|
+
- channel
|
|
30123
|
+
- installation
|
|
30009
30124
|
APIChannelGitSyncOperation:
|
|
30010
30125
|
type: object
|
|
30011
30126
|
properties:
|
|
@@ -30148,6 +30263,7 @@ components:
|
|
|
30148
30263
|
- $ref: "#/components/schemas/APIChannelSiteMcpServer"
|
|
30149
30264
|
- $ref: "#/components/schemas/APIChannelSiteSection"
|
|
30150
30265
|
- $ref: "#/components/schemas/APIChannelCustomHostname"
|
|
30266
|
+
- $ref: "#/components/schemas/APIChannelGitSyncInstallation"
|
|
30151
30267
|
- $ref: "#/components/schemas/APIChannelGitSyncOperation"
|
|
30152
30268
|
- $ref: "#/components/schemas/APIChannelOpenAPISpec"
|
|
30153
30269
|
- $ref: "#/components/schemas/APIChannelSubdomain"
|