@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/spec/openapi.json CHANGED
@@ -1793,6 +1793,9 @@
1793
1793
  {
1794
1794
  "$ref": "#/components/parameters/documentFormat"
1795
1795
  },
1796
+ {
1797
+ "$ref": "#/components/parameters/documentMarkdownRefsFormat"
1798
+ },
1796
1799
  {
1797
1800
  "$ref": "#/components/parameters/documentEvaluated"
1798
1801
  },
@@ -2005,6 +2008,9 @@
2005
2008
  {
2006
2009
  "$ref": "#/components/parameters/documentFormat"
2007
2010
  },
2011
+ {
2012
+ "$ref": "#/components/parameters/documentMarkdownRefsFormat"
2013
+ },
2008
2014
  {
2009
2015
  "$ref": "#/components/parameters/documentEvaluated"
2010
2016
  },
@@ -3864,6 +3870,9 @@
3864
3870
  {
3865
3871
  "$ref": "#/components/parameters/documentFormat"
3866
3872
  },
3873
+ {
3874
+ "$ref": "#/components/parameters/documentMarkdownRefsFormat"
3875
+ },
3867
3876
  {
3868
3877
  "$ref": "#/components/parameters/documentEvaluated"
3869
3878
  },
@@ -4478,6 +4487,9 @@
4478
4487
  {
4479
4488
  "$ref": "#/components/parameters/documentFormat"
4480
4489
  },
4490
+ {
4491
+ "$ref": "#/components/parameters/documentMarkdownRefsFormat"
4492
+ },
4481
4493
  {
4482
4494
  "$ref": "#/components/parameters/documentEvaluated"
4483
4495
  },
@@ -4573,6 +4585,9 @@
4573
4585
  {
4574
4586
  "$ref": "#/components/parameters/documentFormat"
4575
4587
  },
4588
+ {
4589
+ "$ref": "#/components/parameters/documentMarkdownRefsFormat"
4590
+ },
4576
4591
  {
4577
4592
  "$ref": "#/components/parameters/documentEvaluated"
4578
4593
  },
@@ -4669,6 +4684,9 @@
4669
4684
  {
4670
4685
  "$ref": "#/components/parameters/documentFormat"
4671
4686
  },
4687
+ {
4688
+ "$ref": "#/components/parameters/documentMarkdownRefsFormat"
4689
+ },
4672
4690
  {
4673
4691
  "$ref": "#/components/parameters/documentEvaluated"
4674
4692
  },
@@ -19108,6 +19126,41 @@
19108
19126
  }
19109
19127
  },
19110
19128
  "/git/installations/{installationId}": {
19129
+ "get": {
19130
+ "operationId": "getGitSyncInstallationById",
19131
+ "summary": "Get a Git Sync installation",
19132
+ "tags": [
19133
+ "git"
19134
+ ],
19135
+ "security": [
19136
+ {
19137
+ "user": []
19138
+ }
19139
+ ],
19140
+ "parameters": [
19141
+ {
19142
+ "$ref": "#/components/parameters/installationId"
19143
+ }
19144
+ ],
19145
+ "responses": {
19146
+ "200": {
19147
+ "description": "Git Sync installation was found successfully",
19148
+ "content": {
19149
+ "application/json": {
19150
+ "schema": {
19151
+ "$ref": "#/components/schemas/GitSyncInstallation"
19152
+ }
19153
+ }
19154
+ }
19155
+ },
19156
+ "401": {
19157
+ "$ref": "#/components/responses/UnauthorizedError"
19158
+ },
19159
+ "404": {
19160
+ "$ref": "#/components/responses/NotFoundError"
19161
+ }
19162
+ }
19163
+ },
19111
19164
  "patch": {
19112
19165
  "operationId": "updateGitSyncInstallationById",
19113
19166
  "summary": "Update a Git Sync installation configuration",
@@ -19537,6 +19590,19 @@
19537
19590
  ]
19538
19591
  }
19539
19592
  },
19593
+ "documentMarkdownRefsFormat": {
19594
+ "name": "format.markdown.refs",
19595
+ "in": "query",
19596
+ "description": "Controls how content references are formatted in markdown output. Ignored unless `format=markdown`.\n\n- `relative`: Format page references as relative links from the current page. Other references might not be handled.\n- `stable`: Format content references as stable idempotent refs containing their identifiers.\n",
19597
+ "schema": {
19598
+ "type": "string",
19599
+ "default": "relative",
19600
+ "enum": [
19601
+ "relative",
19602
+ "stable"
19603
+ ]
19604
+ }
19605
+ },
19540
19606
  "documentEvaluated": {
19541
19607
  "name": "evaluated",
19542
19608
  "in": "query",
@@ -20533,6 +20599,14 @@
20533
20599
  "sl"
20534
20600
  ]
20535
20601
  },
20602
+ "GitSyncInstallationStatus": {
20603
+ "type": "string",
20604
+ "enum": [
20605
+ "unauthenticated",
20606
+ "active",
20607
+ "pending"
20608
+ ]
20609
+ },
20536
20610
  "GitSyncProvider": {
20537
20611
  "type": "string",
20538
20612
  "description": "The provider of the Git Sync installation.",
@@ -20549,13 +20623,21 @@
20549
20623
  "type": "string",
20550
20624
  "description": "Repository name."
20551
20625
  },
20626
+ "installationStatus": {
20627
+ "$ref": "#/components/schemas/GitSyncInstallationStatus"
20628
+ },
20552
20629
  "installationProvider": {
20553
20630
  "$ref": "#/components/schemas/GitSyncProvider"
20554
20631
  },
20555
20632
  "integration": {
20556
20633
  "type": "string",
20634
+ "deprecated": true,
20557
20635
  "description": "The integration name providing the Git Sync."
20558
20636
  },
20637
+ "installationId": {
20638
+ "type": "string",
20639
+ "description": "The ID of the Git Sync installation."
20640
+ },
20559
20641
  "url": {
20560
20642
  "type": "string",
20561
20643
  "description": "The URL to the repository tree, used when rendering public content."
@@ -36423,6 +36505,10 @@
36423
36505
  "cancelled"
36424
36506
  ]
36425
36507
  },
36508
+ "reason": {
36509
+ "description": "Reason for the import failure when `status` is `failed`.",
36510
+ "type": "string"
36511
+ },
36426
36512
  "pages": {
36427
36513
  "description": "Pages included in the import",
36428
36514
  "type": "array",
@@ -39859,6 +39945,10 @@
39859
39945
  "type": "string",
39860
39946
  "description": "The ID of the space being edited."
39861
39947
  },
39948
+ "baseRevisionId": {
39949
+ "type": "string",
39950
+ "description": "The base revision ID used to compare the page change in the current conversation."
39951
+ },
39862
39952
  "page": {
39863
39953
  "$ref": "#/components/schemas/ChangedRevisionPage"
39864
39954
  }
@@ -39866,6 +39956,7 @@
39866
39956
  "required": [
39867
39957
  "tool",
39868
39958
  "spaceId",
39959
+ "baseRevisionId",
39869
39960
  "page"
39870
39961
  ]
39871
39962
  },
@@ -39882,6 +39973,10 @@
39882
39973
  "type": "string",
39883
39974
  "description": "The ID of the space being edited."
39884
39975
  },
39976
+ "baseRevisionId": {
39977
+ "type": "string",
39978
+ "description": "The base revision ID used to compare the page change in the current conversation."
39979
+ },
39885
39980
  "page": {
39886
39981
  "$ref": "#/components/schemas/ChangedRevisionPage"
39887
39982
  }
@@ -39889,6 +39984,7 @@
39889
39984
  "required": [
39890
39985
  "tool",
39891
39986
  "spaceId",
39987
+ "baseRevisionId",
39892
39988
  "page"
39893
39989
  ]
39894
39990
  },
@@ -39905,6 +40001,10 @@
39905
40001
  "type": "string",
39906
40002
  "description": "The ID of the space being edited."
39907
40003
  },
40004
+ "baseRevisionId": {
40005
+ "type": "string",
40006
+ "description": "The base revision ID used to compare the page deletion in the current conversation."
40007
+ },
39908
40008
  "page": {
39909
40009
  "$ref": "#/components/schemas/ChangedRevisionPage"
39910
40010
  }
@@ -39912,6 +40012,7 @@
39912
40012
  "required": [
39913
40013
  "tool",
39914
40014
  "spaceId",
40015
+ "baseRevisionId",
39915
40016
  "page"
39916
40017
  ]
39917
40018
  },
@@ -39928,6 +40029,10 @@
39928
40029
  "type": "string",
39929
40030
  "description": "The ID of the space being edited."
39930
40031
  },
40032
+ "baseRevisionId": {
40033
+ "type": "string",
40034
+ "description": "The base revision ID used to compare the page rename in the current conversation."
40035
+ },
39931
40036
  "page": {
39932
40037
  "$ref": "#/components/schemas/ChangedRevisionPage"
39933
40038
  },
@@ -39939,6 +40044,7 @@
39939
40044
  "required": [
39940
40045
  "tool",
39941
40046
  "spaceId",
40047
+ "baseRevisionId",
39942
40048
  "page",
39943
40049
  "title"
39944
40050
  ]
@@ -39956,6 +40062,10 @@
39956
40062
  "type": "string",
39957
40063
  "description": "The ID of the space being edited."
39958
40064
  },
40065
+ "baseRevisionId": {
40066
+ "type": "string",
40067
+ "description": "The base revision ID used to compare the page move in the current conversation."
40068
+ },
39959
40069
  "page": {
39960
40070
  "$ref": "#/components/schemas/ChangedRevisionPage"
39961
40071
  },
@@ -39975,6 +40085,7 @@
39975
40085
  "required": [
39976
40086
  "tool",
39977
40087
  "spaceId",
40088
+ "baseRevisionId",
39978
40089
  "page",
39979
40090
  "moveType"
39980
40091
  ]
@@ -40034,6 +40145,10 @@
40034
40145
  "type": "string",
40035
40146
  "description": "The ID of the space being edited."
40036
40147
  },
40148
+ "baseRevisionId": {
40149
+ "type": "string",
40150
+ "description": "The base revision ID used to compare the reusable content change in the current conversation."
40151
+ },
40037
40152
  "reusableContent": {
40038
40153
  "$ref": "#/components/schemas/ChangedRevisionReusableContent"
40039
40154
  }
@@ -40041,6 +40156,7 @@
40041
40156
  "required": [
40042
40157
  "tool",
40043
40158
  "spaceId",
40159
+ "baseRevisionId",
40044
40160
  "reusableContent"
40045
40161
  ]
40046
40162
  },
@@ -40057,6 +40173,10 @@
40057
40173
  "type": "string",
40058
40174
  "description": "The ID of the space being edited."
40059
40175
  },
40176
+ "baseRevisionId": {
40177
+ "type": "string",
40178
+ "description": "The base revision ID used to compare the reusable content change in the current conversation."
40179
+ },
40060
40180
  "reusableContent": {
40061
40181
  "$ref": "#/components/schemas/ChangedRevisionReusableContent"
40062
40182
  }
@@ -40064,6 +40184,7 @@
40064
40184
  "required": [
40065
40185
  "tool",
40066
40186
  "spaceId",
40187
+ "baseRevisionId",
40067
40188
  "reusableContent"
40068
40189
  ]
40069
40190
  },
@@ -43056,6 +43177,8 @@
43056
43177
  "facebookbot",
43057
43178
  "applebot",
43058
43179
  "chatgpt",
43180
+ "openai",
43181
+ "claude",
43059
43182
  "anthropic",
43060
43183
  "gemini",
43061
43184
  "perplexity",
@@ -43069,7 +43192,9 @@
43069
43192
  "youbot",
43070
43193
  "cursor",
43071
43194
  "vscode",
43072
- "claude-code"
43195
+ "claude-code",
43196
+ "codex",
43197
+ "opencode"
43073
43198
  ]
43074
43199
  },
43075
43200
  "SiteInsightsQueryEventsValues": {
@@ -45554,100 +45679,102 @@
45554
45679
  }
45555
45680
  },
45556
45681
  "GitSyncInstallationSetupGitHub": {
45557
- "allOf": [
45558
- {
45559
- "$ref": "#/components/schemas/GitSyncInstallationSetupCommon"
45682
+ "type": "object",
45683
+ "description": "GitHub provider configuration for a Git Sync installation.",
45684
+ "properties": {
45685
+ "provider": {
45686
+ "type": "string",
45687
+ "enum": [
45688
+ "github"
45689
+ ]
45560
45690
  },
45561
- {
45691
+ "providerConfiguration": {
45562
45692
  "type": "object",
45563
- "description": "GitHub provider configuration for a Git Sync installation.",
45693
+ "description": "GitHub specific configuration for the Git Sync installation.",
45564
45694
  "properties": {
45565
- "provider": {
45566
- "type": "string",
45567
- "enum": [
45568
- "github"
45569
- ]
45695
+ "repositoryId": {
45696
+ "type": "number",
45697
+ "description": "GitHub repository identifier."
45570
45698
  },
45571
- "providerConfiguration": {
45572
- "type": "object",
45573
- "description": "GitHub specific configuration for the Git Sync installation.",
45574
- "properties": {
45575
- "repositoryId": {
45576
- "type": "number",
45577
- "description": "GitHub repository identifier."
45578
- },
45579
- "branch": {
45580
- "type": "string",
45581
- "description": "GitHub repository branch."
45582
- }
45583
- }
45699
+ "branch": {
45700
+ "type": "string",
45701
+ "pattern": "^refs/heads/.+$",
45702
+ "description": "GitHub repository branch ref."
45584
45703
  }
45585
- },
45586
- "required": [
45587
- "provider",
45588
- "providerConfiguration"
45589
- ]
45704
+ }
45590
45705
  }
45706
+ },
45707
+ "required": [
45708
+ "provider",
45709
+ "providerConfiguration"
45591
45710
  ]
45592
45711
  },
45593
45712
  "GitSyncInstallationSetupGitLab": {
45594
- "allOf": [
45595
- {
45596
- "$ref": "#/components/schemas/GitSyncInstallationSetupCommon"
45713
+ "type": "object",
45714
+ "description": "GitLab provider configuration for a Git Sync installation.",
45715
+ "properties": {
45716
+ "provider": {
45717
+ "type": "string",
45718
+ "enum": [
45719
+ "gitlab"
45720
+ ]
45597
45721
  },
45598
- {
45722
+ "providerConfiguration": {
45599
45723
  "type": "object",
45600
- "description": "GitLab provider configuration for a Git Sync installation.",
45724
+ "description": "GitLab specific configuration for the Git Sync installation.",
45601
45725
  "properties": {
45602
- "provider": {
45726
+ "projectId": {
45727
+ "type": "number",
45728
+ "description": "GitLab project identifier."
45729
+ },
45730
+ "accessToken": {
45603
45731
  "type": "string",
45604
- "enum": [
45605
- "gitlab"
45606
- ]
45732
+ "description": "GitLab access token with appropriate scopes for repository access."
45607
45733
  },
45608
- "providerConfiguration": {
45609
- "type": "object",
45610
- "description": "GitLab specific configuration for the Git Sync installation.",
45611
- "properties": {
45612
- "projectId": {
45613
- "type": "number",
45614
- "description": "GitLab project identifier."
45615
- },
45616
- "accessToken": {
45617
- "type": "string",
45618
- "description": "GitLab access token with appropriate scopes for repository access."
45619
- },
45620
- "customInstanceURL": {
45621
- "type": "string",
45622
- "description": "Custom GitLab instance URL, if using a self-hosted GitLab."
45734
+ "customInstanceURL": {
45735
+ "oneOf": [
45736
+ {
45737
+ "type": "string"
45623
45738
  },
45624
- "branch": {
45625
- "type": "string",
45626
- "description": "GitLab repository branch."
45739
+ {
45740
+ "type": "null"
45627
45741
  }
45628
- }
45742
+ ],
45743
+ "description": "Custom GitLab instance URL, if using a self-hosted GitLab. Use null to clear a self-hosted URL."
45744
+ },
45745
+ "branch": {
45746
+ "type": "string",
45747
+ "pattern": "^refs/heads/.+$",
45748
+ "description": "GitLab repository branch ref."
45629
45749
  }
45630
- },
45631
- "required": [
45632
- "provider",
45633
- "providerConfiguration"
45634
- ]
45750
+ }
45635
45751
  }
45752
+ },
45753
+ "required": [
45754
+ "provider",
45755
+ "providerConfiguration"
45636
45756
  ]
45637
45757
  },
45638
45758
  "GitSyncInstallationSetup": {
45639
45759
  "description": "Provider-specific setup payload for a Git Sync installation.",
45640
- "oneOf": [
45760
+ "allOf": [
45641
45761
  {
45642
- "$ref": "#/components/schemas/GitSyncInstallationSetupGitHub"
45762
+ "$ref": "#/components/schemas/GitSyncInstallationSetupCommon"
45643
45763
  },
45644
45764
  {
45645
- "$ref": "#/components/schemas/GitSyncInstallationSetupGitLab"
45765
+ "oneOf": [
45766
+ {
45767
+ "$ref": "#/components/schemas/GitSyncInstallationSetupGitHub"
45768
+ },
45769
+ {
45770
+ "$ref": "#/components/schemas/GitSyncInstallationSetupGitLab"
45771
+ }
45772
+ ],
45773
+ "discriminator": {
45774
+ "propertyName": "provider"
45775
+ }
45646
45776
  }
45647
- ],
45648
- "discriminator": {
45649
- "propertyName": "provider"
45650
- }
45777
+ ]
45651
45778
  },
45652
45779
  "GitSyncInstallation": {
45653
45780
  "allOf": [
@@ -45670,6 +45797,9 @@
45670
45797
  "target": {
45671
45798
  "$ref": "#/components/schemas/GitSyncInstallationTarget"
45672
45799
  },
45800
+ "status": {
45801
+ "$ref": "#/components/schemas/GitSyncInstallationStatus"
45802
+ },
45673
45803
  "createdAt": {
45674
45804
  "$ref": "#/components/schemas/Timestamp"
45675
45805
  },
@@ -45679,15 +45809,31 @@
45679
45809
  },
45680
45810
  "updatedAt": {
45681
45811
  "$ref": "#/components/schemas/Timestamp"
45812
+ },
45813
+ "urls": {
45814
+ "type": "object",
45815
+ "description": "URLs associated with the installation",
45816
+ "properties": {
45817
+ "location": {
45818
+ "type": "string",
45819
+ "description": "URL of the installation endpoint in the API",
45820
+ "format": "uri"
45821
+ }
45822
+ },
45823
+ "required": [
45824
+ "location"
45825
+ ]
45682
45826
  }
45683
45827
  },
45684
45828
  "required": [
45685
45829
  "object",
45686
45830
  "id",
45687
45831
  "target",
45832
+ "status",
45688
45833
  "createdAt",
45689
45834
  "createdBy",
45690
- "updatedAt"
45835
+ "updatedAt",
45836
+ "urls"
45691
45837
  ]
45692
45838
  }
45693
45839
  ]
@@ -48010,6 +48156,24 @@
48010
48156
  "customHostname"
48011
48157
  ]
48012
48158
  },
48159
+ "APIChannelGitSyncInstallation": {
48160
+ "type": "object",
48161
+ "properties": {
48162
+ "channel": {
48163
+ "type": "string",
48164
+ "enum": [
48165
+ "git-sync-installation"
48166
+ ]
48167
+ },
48168
+ "installation": {
48169
+ "type": "string"
48170
+ }
48171
+ },
48172
+ "required": [
48173
+ "channel",
48174
+ "installation"
48175
+ ]
48176
+ },
48013
48177
  "APIChannelGitSyncOperation": {
48014
48178
  "type": "object",
48015
48179
  "properties": {
@@ -48320,6 +48484,9 @@
48320
48484
  {
48321
48485
  "$ref": "#/components/schemas/APIChannelCustomHostname"
48322
48486
  },
48487
+ {
48488
+ "$ref": "#/components/schemas/APIChannelGitSyncInstallation"
48489
+ },
48323
48490
  {
48324
48491
  "$ref": "#/components/schemas/APIChannelGitSyncOperation"
48325
48492
  },