@gitbook/api 0.183.1 → 0.184.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 +123 -87
- package/dist/constants.d.ts +1 -1
- package/dist/index.cjs +14 -7
- package/dist/index.js +14 -7
- package/package.json +1 -1
- package/spec/openapi.json +313 -244
- package/spec/openapi.yaml +201 -159
package/spec/openapi.yaml
CHANGED
|
@@ -4050,9 +4050,6 @@ paths:
|
|
|
4050
4050
|
task:
|
|
4051
4051
|
type: object
|
|
4052
4052
|
description: Payload for the integration task
|
|
4053
|
-
additionalProperties:
|
|
4054
|
-
type: string
|
|
4055
|
-
x-typescript: unknown
|
|
4056
4053
|
schedule:
|
|
4057
4054
|
type: number
|
|
4058
4055
|
description: Number of seconds to wait before executing the task, defaults to 0
|
|
@@ -6795,6 +6792,37 @@ paths:
|
|
|
6795
6792
|
description: Site did not exist
|
|
6796
6793
|
"205":
|
|
6797
6794
|
description: Site has been deleted
|
|
6795
|
+
/orgs/{organizationId}/sites/{siteId}/spaces/git/installations:
|
|
6796
|
+
get:
|
|
6797
|
+
operationId: listSiteGitSyncInstallations
|
|
6798
|
+
summary: List the Git Sync installations for a site and its spaces
|
|
6799
|
+
tags:
|
|
6800
|
+
- git
|
|
6801
|
+
security:
|
|
6802
|
+
- user: []
|
|
6803
|
+
parameters:
|
|
6804
|
+
- $ref: "#/components/parameters/organizationId"
|
|
6805
|
+
- $ref: "#/components/parameters/siteId"
|
|
6806
|
+
responses:
|
|
6807
|
+
"200":
|
|
6808
|
+
description: Git Sync installations for the site and its spaces
|
|
6809
|
+
content:
|
|
6810
|
+
application/json:
|
|
6811
|
+
schema:
|
|
6812
|
+
type: object
|
|
6813
|
+
properties:
|
|
6814
|
+
items:
|
|
6815
|
+
type: array
|
|
6816
|
+
items:
|
|
6817
|
+
$ref: "#/components/schemas/GitSyncInstallation"
|
|
6818
|
+
required:
|
|
6819
|
+
- items
|
|
6820
|
+
"400":
|
|
6821
|
+
$ref: "#/components/responses/BadRequestError"
|
|
6822
|
+
"401":
|
|
6823
|
+
$ref: "#/components/responses/UnauthorizedError"
|
|
6824
|
+
"404":
|
|
6825
|
+
$ref: "#/components/responses/NotFoundError"
|
|
6798
6826
|
/orgs/{organizationId}/sites/{siteId}/adaptive-schema:
|
|
6799
6827
|
get:
|
|
6800
6828
|
operationId: getSiteAdaptiveSchema
|
|
@@ -8074,6 +8102,11 @@ paths:
|
|
|
8074
8102
|
description: Filter findings by estimated severity.
|
|
8075
8103
|
schema:
|
|
8076
8104
|
$ref: "#/components/schemas/SiteFindingSeverity"
|
|
8105
|
+
- name: hasChangeRequests
|
|
8106
|
+
in: query
|
|
8107
|
+
description: Filter findings that have at least one associated change request.
|
|
8108
|
+
schema:
|
|
8109
|
+
type: boolean
|
|
8077
8110
|
responses:
|
|
8078
8111
|
"200":
|
|
8079
8112
|
description: OK
|
|
@@ -14736,6 +14769,10 @@ components:
|
|
|
14736
14769
|
properties:
|
|
14737
14770
|
ref:
|
|
14738
14771
|
$ref: "#/components/schemas/ContentRefOpenAPI"
|
|
14772
|
+
headless:
|
|
14773
|
+
type: boolean
|
|
14774
|
+
x-internal: true
|
|
14775
|
+
description: When true, the block omits its own title and description; the page renders them instead. Set by the computed one-operation-per-page layout; not intended to be set manually.
|
|
14739
14776
|
required:
|
|
14740
14777
|
- ref
|
|
14741
14778
|
isVoid:
|
|
@@ -14847,6 +14884,10 @@ components:
|
|
|
14847
14884
|
properties:
|
|
14848
14885
|
ref:
|
|
14849
14886
|
$ref: "#/components/schemas/ContentRefOpenAPI"
|
|
14887
|
+
headless:
|
|
14888
|
+
type: boolean
|
|
14889
|
+
x-internal: true
|
|
14890
|
+
description: When true, the block omits its own title and description; the page renders them instead. Set by the computed one-operation-per-page layout; not intended to be set manually.
|
|
14850
14891
|
required:
|
|
14851
14892
|
- ref
|
|
14852
14893
|
isVoid:
|
|
@@ -22600,6 +22641,162 @@ components:
|
|
|
22600
22641
|
$ref: "#/components/schemas/BillingInvoicePreview"
|
|
22601
22642
|
required:
|
|
22602
22643
|
- type
|
|
22644
|
+
GitSyncInstallationPriority:
|
|
22645
|
+
type: string
|
|
22646
|
+
description: Which side should be treated as the source of truth when Git Sync is configured.
|
|
22647
|
+
enum:
|
|
22648
|
+
- git
|
|
22649
|
+
- gitbook
|
|
22650
|
+
GitSyncInstallationSetupCommon:
|
|
22651
|
+
type: object
|
|
22652
|
+
description: Common setup fields for a Git Sync installation.
|
|
22653
|
+
properties:
|
|
22654
|
+
projectDirectory:
|
|
22655
|
+
type: string
|
|
22656
|
+
description: Optional directory used when syncing a monorepo subdirectory.
|
|
22657
|
+
commitMessageTemplate:
|
|
22658
|
+
type: string
|
|
22659
|
+
description: Optional template used when generating commit messages.
|
|
22660
|
+
previewExternalBranches:
|
|
22661
|
+
type: boolean
|
|
22662
|
+
default: false
|
|
22663
|
+
description: Whether previews should be generated from branches outside the configured branch.
|
|
22664
|
+
priority:
|
|
22665
|
+
$ref: "#/components/schemas/GitSyncInstallationPriority"
|
|
22666
|
+
GitSyncInstallationSetupGitHub:
|
|
22667
|
+
type: object
|
|
22668
|
+
description: GitHub provider configuration for a Git Sync installation.
|
|
22669
|
+
properties:
|
|
22670
|
+
provider:
|
|
22671
|
+
type: string
|
|
22672
|
+
enum:
|
|
22673
|
+
- github
|
|
22674
|
+
providerConfiguration:
|
|
22675
|
+
type: object
|
|
22676
|
+
description: GitHub specific configuration for the Git Sync installation.
|
|
22677
|
+
properties:
|
|
22678
|
+
repositoryId:
|
|
22679
|
+
type: number
|
|
22680
|
+
description: GitHub repository identifier.
|
|
22681
|
+
branch:
|
|
22682
|
+
type: string
|
|
22683
|
+
pattern: ^refs/heads/.+$
|
|
22684
|
+
description: GitHub repository branch ref.
|
|
22685
|
+
required:
|
|
22686
|
+
- provider
|
|
22687
|
+
- providerConfiguration
|
|
22688
|
+
GitSyncInstallationSetupGitLab:
|
|
22689
|
+
type: object
|
|
22690
|
+
description: GitLab provider configuration for a Git Sync installation.
|
|
22691
|
+
properties:
|
|
22692
|
+
provider:
|
|
22693
|
+
type: string
|
|
22694
|
+
enum:
|
|
22695
|
+
- gitlab
|
|
22696
|
+
providerConfiguration:
|
|
22697
|
+
type: object
|
|
22698
|
+
description: GitLab specific configuration for the Git Sync installation.
|
|
22699
|
+
properties:
|
|
22700
|
+
projectId:
|
|
22701
|
+
type: number
|
|
22702
|
+
description: GitLab project identifier.
|
|
22703
|
+
accessToken:
|
|
22704
|
+
type: string
|
|
22705
|
+
description: GitLab access token with appropriate scopes for repository access.
|
|
22706
|
+
customInstanceURL:
|
|
22707
|
+
oneOf:
|
|
22708
|
+
- type: string
|
|
22709
|
+
- type: "null"
|
|
22710
|
+
description: Custom GitLab instance URL, if using a self-hosted GitLab. Use null to clear a self-hosted URL.
|
|
22711
|
+
branch:
|
|
22712
|
+
type: string
|
|
22713
|
+
pattern: ^refs/heads/.+$
|
|
22714
|
+
description: GitLab repository branch ref.
|
|
22715
|
+
required:
|
|
22716
|
+
- provider
|
|
22717
|
+
- providerConfiguration
|
|
22718
|
+
GitSyncInstallationSetup:
|
|
22719
|
+
description: Provider-specific setup payload for a Git Sync installation.
|
|
22720
|
+
allOf:
|
|
22721
|
+
- $ref: "#/components/schemas/GitSyncInstallationSetupCommon"
|
|
22722
|
+
- oneOf:
|
|
22723
|
+
- $ref: "#/components/schemas/GitSyncInstallationSetupGitHub"
|
|
22724
|
+
- $ref: "#/components/schemas/GitSyncInstallationSetupGitLab"
|
|
22725
|
+
discriminator:
|
|
22726
|
+
propertyName: provider
|
|
22727
|
+
GitSyncInstallationTarget:
|
|
22728
|
+
description: Resource targeted by a Git Sync installation.
|
|
22729
|
+
oneOf:
|
|
22730
|
+
- type: object
|
|
22731
|
+
properties:
|
|
22732
|
+
type:
|
|
22733
|
+
type: string
|
|
22734
|
+
enum:
|
|
22735
|
+
- space
|
|
22736
|
+
description: Type of resource targeted by the Git Sync installation.
|
|
22737
|
+
spaceId:
|
|
22738
|
+
type: string
|
|
22739
|
+
description: Unique identifier of the space targeted by the Git Sync installation.
|
|
22740
|
+
required:
|
|
22741
|
+
- type
|
|
22742
|
+
- spaceId
|
|
22743
|
+
- type: object
|
|
22744
|
+
properties:
|
|
22745
|
+
type:
|
|
22746
|
+
type: string
|
|
22747
|
+
enum:
|
|
22748
|
+
- site
|
|
22749
|
+
description: Type of resource targeted by the Git Sync installation.
|
|
22750
|
+
siteId:
|
|
22751
|
+
type: string
|
|
22752
|
+
description: Unique identifier of the site targeted by the Git Sync installation.
|
|
22753
|
+
required:
|
|
22754
|
+
- type
|
|
22755
|
+
- siteId
|
|
22756
|
+
discriminator:
|
|
22757
|
+
propertyName: type
|
|
22758
|
+
GitSyncInstallation:
|
|
22759
|
+
allOf:
|
|
22760
|
+
- $ref: "#/components/schemas/GitSyncInstallationSetup"
|
|
22761
|
+
- type: object
|
|
22762
|
+
properties:
|
|
22763
|
+
object:
|
|
22764
|
+
type: string
|
|
22765
|
+
enum:
|
|
22766
|
+
- git-sync-installation
|
|
22767
|
+
id:
|
|
22768
|
+
type: string
|
|
22769
|
+
description: Unique identifier of the Git Sync installation.
|
|
22770
|
+
target:
|
|
22771
|
+
$ref: "#/components/schemas/GitSyncInstallationTarget"
|
|
22772
|
+
status:
|
|
22773
|
+
$ref: "#/components/schemas/GitSyncInstallationStatus"
|
|
22774
|
+
createdAt:
|
|
22775
|
+
$ref: "#/components/schemas/Timestamp"
|
|
22776
|
+
createdBy:
|
|
22777
|
+
type: string
|
|
22778
|
+
description: Identifier of the user who created the installation.
|
|
22779
|
+
updatedAt:
|
|
22780
|
+
$ref: "#/components/schemas/Timestamp"
|
|
22781
|
+
urls:
|
|
22782
|
+
type: object
|
|
22783
|
+
description: URLs associated with the installation
|
|
22784
|
+
properties:
|
|
22785
|
+
location:
|
|
22786
|
+
type: string
|
|
22787
|
+
description: URL of the installation endpoint in the API
|
|
22788
|
+
format: uri
|
|
22789
|
+
required:
|
|
22790
|
+
- location
|
|
22791
|
+
required:
|
|
22792
|
+
- object
|
|
22793
|
+
- id
|
|
22794
|
+
- target
|
|
22795
|
+
- status
|
|
22796
|
+
- createdAt
|
|
22797
|
+
- createdBy
|
|
22798
|
+
- updatedAt
|
|
22799
|
+
- urls
|
|
22603
22800
|
SiteAdaptiveDeterministicJSONSchemaPrimitives:
|
|
22604
22801
|
oneOf:
|
|
22605
22802
|
- type: object
|
|
@@ -23434,6 +23631,7 @@ components:
|
|
|
23434
23631
|
- externalAI
|
|
23435
23632
|
- markdown
|
|
23436
23633
|
- mcp
|
|
23634
|
+
- items
|
|
23437
23635
|
externalLinks:
|
|
23438
23636
|
type: object
|
|
23439
23637
|
properties:
|
|
@@ -28839,162 +29037,6 @@ components:
|
|
|
28839
29037
|
enum:
|
|
28840
29038
|
- github
|
|
28841
29039
|
- gitlab
|
|
28842
|
-
GitSyncInstallationTarget:
|
|
28843
|
-
description: Resource targeted by a Git Sync installation.
|
|
28844
|
-
oneOf:
|
|
28845
|
-
- type: object
|
|
28846
|
-
properties:
|
|
28847
|
-
type:
|
|
28848
|
-
type: string
|
|
28849
|
-
enum:
|
|
28850
|
-
- space
|
|
28851
|
-
description: Type of resource targeted by the Git Sync installation.
|
|
28852
|
-
spaceId:
|
|
28853
|
-
type: string
|
|
28854
|
-
description: Unique identifier of the space targeted by the Git Sync installation.
|
|
28855
|
-
required:
|
|
28856
|
-
- type
|
|
28857
|
-
- spaceId
|
|
28858
|
-
- type: object
|
|
28859
|
-
properties:
|
|
28860
|
-
type:
|
|
28861
|
-
type: string
|
|
28862
|
-
enum:
|
|
28863
|
-
- site
|
|
28864
|
-
description: Type of resource targeted by the Git Sync installation.
|
|
28865
|
-
siteId:
|
|
28866
|
-
type: string
|
|
28867
|
-
description: Unique identifier of the site targeted by the Git Sync installation.
|
|
28868
|
-
required:
|
|
28869
|
-
- type
|
|
28870
|
-
- siteId
|
|
28871
|
-
discriminator:
|
|
28872
|
-
propertyName: type
|
|
28873
|
-
GitSyncInstallationPriority:
|
|
28874
|
-
type: string
|
|
28875
|
-
description: Which side should be treated as the source of truth when Git Sync is configured.
|
|
28876
|
-
enum:
|
|
28877
|
-
- git
|
|
28878
|
-
- gitbook
|
|
28879
|
-
GitSyncInstallationSetupCommon:
|
|
28880
|
-
type: object
|
|
28881
|
-
description: Common setup fields for a Git Sync installation.
|
|
28882
|
-
properties:
|
|
28883
|
-
projectDirectory:
|
|
28884
|
-
type: string
|
|
28885
|
-
description: Optional directory used when syncing a monorepo subdirectory.
|
|
28886
|
-
commitMessageTemplate:
|
|
28887
|
-
type: string
|
|
28888
|
-
description: Optional template used when generating commit messages.
|
|
28889
|
-
previewExternalBranches:
|
|
28890
|
-
type: boolean
|
|
28891
|
-
default: false
|
|
28892
|
-
description: Whether previews should be generated from branches outside the configured branch.
|
|
28893
|
-
priority:
|
|
28894
|
-
$ref: "#/components/schemas/GitSyncInstallationPriority"
|
|
28895
|
-
GitSyncInstallationSetupGitHub:
|
|
28896
|
-
type: object
|
|
28897
|
-
description: GitHub provider configuration for a Git Sync installation.
|
|
28898
|
-
properties:
|
|
28899
|
-
provider:
|
|
28900
|
-
type: string
|
|
28901
|
-
enum:
|
|
28902
|
-
- github
|
|
28903
|
-
providerConfiguration:
|
|
28904
|
-
type: object
|
|
28905
|
-
description: GitHub specific configuration for the Git Sync installation.
|
|
28906
|
-
properties:
|
|
28907
|
-
repositoryId:
|
|
28908
|
-
type: number
|
|
28909
|
-
description: GitHub repository identifier.
|
|
28910
|
-
branch:
|
|
28911
|
-
type: string
|
|
28912
|
-
pattern: ^refs/heads/.+$
|
|
28913
|
-
description: GitHub repository branch ref.
|
|
28914
|
-
required:
|
|
28915
|
-
- provider
|
|
28916
|
-
- providerConfiguration
|
|
28917
|
-
GitSyncInstallationSetupGitLab:
|
|
28918
|
-
type: object
|
|
28919
|
-
description: GitLab provider configuration for a Git Sync installation.
|
|
28920
|
-
properties:
|
|
28921
|
-
provider:
|
|
28922
|
-
type: string
|
|
28923
|
-
enum:
|
|
28924
|
-
- gitlab
|
|
28925
|
-
providerConfiguration:
|
|
28926
|
-
type: object
|
|
28927
|
-
description: GitLab specific configuration for the Git Sync installation.
|
|
28928
|
-
properties:
|
|
28929
|
-
projectId:
|
|
28930
|
-
type: number
|
|
28931
|
-
description: GitLab project identifier.
|
|
28932
|
-
accessToken:
|
|
28933
|
-
type: string
|
|
28934
|
-
description: GitLab access token with appropriate scopes for repository access.
|
|
28935
|
-
customInstanceURL:
|
|
28936
|
-
oneOf:
|
|
28937
|
-
- type: string
|
|
28938
|
-
- type: "null"
|
|
28939
|
-
description: Custom GitLab instance URL, if using a self-hosted GitLab. Use null to clear a self-hosted URL.
|
|
28940
|
-
branch:
|
|
28941
|
-
type: string
|
|
28942
|
-
pattern: ^refs/heads/.+$
|
|
28943
|
-
description: GitLab repository branch ref.
|
|
28944
|
-
required:
|
|
28945
|
-
- provider
|
|
28946
|
-
- providerConfiguration
|
|
28947
|
-
GitSyncInstallationSetup:
|
|
28948
|
-
description: Provider-specific setup payload for a Git Sync installation.
|
|
28949
|
-
allOf:
|
|
28950
|
-
- $ref: "#/components/schemas/GitSyncInstallationSetupCommon"
|
|
28951
|
-
- oneOf:
|
|
28952
|
-
- $ref: "#/components/schemas/GitSyncInstallationSetupGitHub"
|
|
28953
|
-
- $ref: "#/components/schemas/GitSyncInstallationSetupGitLab"
|
|
28954
|
-
discriminator:
|
|
28955
|
-
propertyName: provider
|
|
28956
|
-
GitSyncInstallation:
|
|
28957
|
-
allOf:
|
|
28958
|
-
- $ref: "#/components/schemas/GitSyncInstallationSetup"
|
|
28959
|
-
- type: object
|
|
28960
|
-
properties:
|
|
28961
|
-
object:
|
|
28962
|
-
type: string
|
|
28963
|
-
enum:
|
|
28964
|
-
- git-sync-installation
|
|
28965
|
-
id:
|
|
28966
|
-
type: string
|
|
28967
|
-
description: Unique identifier of the Git Sync installation.
|
|
28968
|
-
target:
|
|
28969
|
-
$ref: "#/components/schemas/GitSyncInstallationTarget"
|
|
28970
|
-
status:
|
|
28971
|
-
$ref: "#/components/schemas/GitSyncInstallationStatus"
|
|
28972
|
-
createdAt:
|
|
28973
|
-
$ref: "#/components/schemas/Timestamp"
|
|
28974
|
-
createdBy:
|
|
28975
|
-
type: string
|
|
28976
|
-
description: Identifier of the user who created the installation.
|
|
28977
|
-
updatedAt:
|
|
28978
|
-
$ref: "#/components/schemas/Timestamp"
|
|
28979
|
-
urls:
|
|
28980
|
-
type: object
|
|
28981
|
-
description: URLs associated with the installation
|
|
28982
|
-
properties:
|
|
28983
|
-
location:
|
|
28984
|
-
type: string
|
|
28985
|
-
description: URL of the installation endpoint in the API
|
|
28986
|
-
format: uri
|
|
28987
|
-
required:
|
|
28988
|
-
- location
|
|
28989
|
-
required:
|
|
28990
|
-
- object
|
|
28991
|
-
- id
|
|
28992
|
-
- target
|
|
28993
|
-
- status
|
|
28994
|
-
- createdAt
|
|
28995
|
-
- createdBy
|
|
28996
|
-
- updatedAt
|
|
28997
|
-
- urls
|
|
28998
29040
|
GitSyncGitHubRepository:
|
|
28999
29041
|
type: object
|
|
29000
29042
|
description: GitHub repository that can be selected for Git Sync.
|