@gitbook/api 0.183.0 → 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 +203 -91
- package/dist/constants.d.ts +2 -1
- package/dist/index.cjs +28 -7
- package/dist/index.js +26 -7
- package/package.json +1 -1
- package/spec/openapi.json +579 -247
- package/spec/openapi.yaml +367 -161
package/spec/openapi.yaml
CHANGED
|
@@ -622,6 +622,8 @@ paths:
|
|
|
622
622
|
- critical
|
|
623
623
|
security:
|
|
624
624
|
- user: []
|
|
625
|
+
- integration: []
|
|
626
|
+
- integration-installation: []
|
|
625
627
|
parameters:
|
|
626
628
|
- $ref: "#/components/parameters/spaceId"
|
|
627
629
|
- $ref: "#/components/parameters/siteShareKey"
|
|
@@ -850,6 +852,8 @@ paths:
|
|
|
850
852
|
- space-git
|
|
851
853
|
security:
|
|
852
854
|
- user: []
|
|
855
|
+
- integration: []
|
|
856
|
+
- integration-installation: []
|
|
853
857
|
parameters:
|
|
854
858
|
- $ref: "#/components/parameters/spaceId"
|
|
855
859
|
responses:
|
|
@@ -869,6 +873,8 @@ paths:
|
|
|
869
873
|
- space-git
|
|
870
874
|
security:
|
|
871
875
|
- user: []
|
|
876
|
+
- integration: []
|
|
877
|
+
- integration-installation: []
|
|
872
878
|
parameters:
|
|
873
879
|
- $ref: "#/components/parameters/spaceId"
|
|
874
880
|
responses:
|
|
@@ -1102,6 +1108,8 @@ paths:
|
|
|
1102
1108
|
- space-content
|
|
1103
1109
|
security:
|
|
1104
1110
|
- user: []
|
|
1111
|
+
- integration: []
|
|
1112
|
+
- integration-installation: []
|
|
1105
1113
|
parameters:
|
|
1106
1114
|
- $ref: "#/components/parameters/spaceId"
|
|
1107
1115
|
- $ref: "#/components/parameters/revisionMetadata"
|
|
@@ -2551,6 +2559,8 @@ paths:
|
|
|
2551
2559
|
- space-content
|
|
2552
2560
|
security:
|
|
2553
2561
|
- user: []
|
|
2562
|
+
- integration: []
|
|
2563
|
+
- integration-installation: []
|
|
2554
2564
|
parameters:
|
|
2555
2565
|
- $ref: "#/components/parameters/spaceId"
|
|
2556
2566
|
- $ref: "#/components/parameters/revisionId"
|
|
@@ -2572,6 +2582,8 @@ paths:
|
|
|
2572
2582
|
- space-content
|
|
2573
2583
|
security:
|
|
2574
2584
|
- user: []
|
|
2585
|
+
- integration: []
|
|
2586
|
+
- integration-installation: []
|
|
2575
2587
|
parameters:
|
|
2576
2588
|
- $ref: "#/components/parameters/spaceId"
|
|
2577
2589
|
- $ref: "#/components/parameters/revisionId"
|
|
@@ -2677,6 +2689,8 @@ paths:
|
|
|
2677
2689
|
- space-content
|
|
2678
2690
|
security:
|
|
2679
2691
|
- user: []
|
|
2692
|
+
- integration: []
|
|
2693
|
+
- integration-installation: []
|
|
2680
2694
|
parameters:
|
|
2681
2695
|
- $ref: "#/components/parameters/spaceId"
|
|
2682
2696
|
- $ref: "#/components/parameters/revisionId"
|
|
@@ -3736,6 +3750,7 @@ paths:
|
|
|
3736
3750
|
- integrations
|
|
3737
3751
|
security:
|
|
3738
3752
|
- integration: []
|
|
3753
|
+
- integration-installation: []
|
|
3739
3754
|
parameters:
|
|
3740
3755
|
- $ref: "#/components/parameters/integrationName"
|
|
3741
3756
|
- $ref: "#/components/parameters/listPage"
|
|
@@ -3849,6 +3864,7 @@ paths:
|
|
|
3849
3864
|
- integrations
|
|
3850
3865
|
security:
|
|
3851
3866
|
- integration: []
|
|
3867
|
+
- integration-installation: []
|
|
3852
3868
|
parameters:
|
|
3853
3869
|
- $ref: "#/components/parameters/integrationName"
|
|
3854
3870
|
- $ref: "#/components/parameters/listPage"
|
|
@@ -4054,6 +4070,8 @@ paths:
|
|
|
4054
4070
|
- integrations
|
|
4055
4071
|
security:
|
|
4056
4072
|
- user: []
|
|
4073
|
+
- integration: []
|
|
4074
|
+
- integration-installation: []
|
|
4057
4075
|
parameters:
|
|
4058
4076
|
- $ref: "#/components/parameters/integrationName"
|
|
4059
4077
|
- $ref: "#/components/parameters/installationId"
|
|
@@ -4073,6 +4091,8 @@ paths:
|
|
|
4073
4091
|
- integrations
|
|
4074
4092
|
security:
|
|
4075
4093
|
- user: []
|
|
4094
|
+
- integration: []
|
|
4095
|
+
- integration-installation: []
|
|
4076
4096
|
parameters:
|
|
4077
4097
|
- $ref: "#/components/parameters/integrationName"
|
|
4078
4098
|
- $ref: "#/components/parameters/installationId"
|
|
@@ -5275,6 +5295,7 @@ paths:
|
|
|
5275
5295
|
- spaces
|
|
5276
5296
|
security:
|
|
5277
5297
|
- user: []
|
|
5298
|
+
- integration-installation: []
|
|
5278
5299
|
parameters:
|
|
5279
5300
|
- $ref: "#/components/parameters/organizationId"
|
|
5280
5301
|
- $ref: "#/components/parameters/listPage"
|
|
@@ -5760,6 +5781,8 @@ paths:
|
|
|
5760
5781
|
- organization-ask
|
|
5761
5782
|
security:
|
|
5762
5783
|
- user: []
|
|
5784
|
+
- integration: []
|
|
5785
|
+
- integration-installation: []
|
|
5763
5786
|
parameters:
|
|
5764
5787
|
- $ref: "#/components/parameters/organizationId"
|
|
5765
5788
|
- name: query
|
|
@@ -6769,6 +6792,37 @@ paths:
|
|
|
6769
6792
|
description: Site did not exist
|
|
6770
6793
|
"205":
|
|
6771
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"
|
|
6772
6826
|
/orgs/{organizationId}/sites/{siteId}/adaptive-schema:
|
|
6773
6827
|
get:
|
|
6774
6828
|
operationId: getSiteAdaptiveSchema
|
|
@@ -6777,6 +6831,8 @@ paths:
|
|
|
6777
6831
|
- sites
|
|
6778
6832
|
security:
|
|
6779
6833
|
- user: []
|
|
6834
|
+
- integration: []
|
|
6835
|
+
- integration-installation: []
|
|
6780
6836
|
parameters:
|
|
6781
6837
|
- $ref: "#/components/parameters/organizationId"
|
|
6782
6838
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -6799,6 +6855,8 @@ paths:
|
|
|
6799
6855
|
- sites
|
|
6800
6856
|
security:
|
|
6801
6857
|
- user: []
|
|
6858
|
+
- integration: []
|
|
6859
|
+
- integration-installation: []
|
|
6802
6860
|
parameters:
|
|
6803
6861
|
- $ref: "#/components/parameters/organizationId"
|
|
6804
6862
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -8044,6 +8102,11 @@ paths:
|
|
|
8044
8102
|
description: Filter findings by estimated severity.
|
|
8045
8103
|
schema:
|
|
8046
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
|
|
8047
8110
|
responses:
|
|
8048
8111
|
"200":
|
|
8049
8112
|
description: OK
|
|
@@ -10683,6 +10746,8 @@ paths:
|
|
|
10683
10746
|
- urls
|
|
10684
10747
|
security:
|
|
10685
10748
|
- user: []
|
|
10749
|
+
- integration: []
|
|
10750
|
+
- integration-installation: []
|
|
10686
10751
|
parameters:
|
|
10687
10752
|
- name: url
|
|
10688
10753
|
in: query
|
|
@@ -11047,6 +11112,14 @@ components:
|
|
|
11047
11112
|
integration-installation:
|
|
11048
11113
|
type: http
|
|
11049
11114
|
scheme: bearer
|
|
11115
|
+
oauth:
|
|
11116
|
+
type: oauth2
|
|
11117
|
+
flows:
|
|
11118
|
+
authorizationCode:
|
|
11119
|
+
authorizationUrl: https://oauth.gitbook.com/authorize
|
|
11120
|
+
tokenUrl: https://oauth.gitbook.com/token
|
|
11121
|
+
scopes:
|
|
11122
|
+
api:read: Read GitBook API resources.
|
|
11050
11123
|
parameters:
|
|
11051
11124
|
listPage:
|
|
11052
11125
|
name: page
|
|
@@ -14696,6 +14769,10 @@ components:
|
|
|
14696
14769
|
properties:
|
|
14697
14770
|
ref:
|
|
14698
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.
|
|
14699
14776
|
required:
|
|
14700
14777
|
- ref
|
|
14701
14778
|
isVoid:
|
|
@@ -14807,6 +14884,10 @@ components:
|
|
|
14807
14884
|
properties:
|
|
14808
14885
|
ref:
|
|
14809
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.
|
|
14810
14891
|
required:
|
|
14811
14892
|
- ref
|
|
14812
14893
|
isVoid:
|
|
@@ -15457,6 +15538,12 @@ components:
|
|
|
15457
15538
|
downloadLink:
|
|
15458
15539
|
type: boolean
|
|
15459
15540
|
description: Whether to show a link to download the OpenAPI spec.
|
|
15541
|
+
grouping:
|
|
15542
|
+
type: string
|
|
15543
|
+
enum:
|
|
15544
|
+
- by-tag
|
|
15545
|
+
- by-operation
|
|
15546
|
+
description: How GitBook will group generated pages. "by-tag" groups operations under their tag; "by-operation" creates a separate page per operation. Defaults to "by-tag" when absent.
|
|
15460
15547
|
required:
|
|
15461
15548
|
- models
|
|
15462
15549
|
TranslationRef:
|
|
@@ -15780,6 +15867,45 @@ components:
|
|
|
15780
15867
|
page:
|
|
15781
15868
|
type: string
|
|
15782
15869
|
minLength: 1
|
|
15870
|
+
- type: object
|
|
15871
|
+
required:
|
|
15872
|
+
- doc
|
|
15873
|
+
- page
|
|
15874
|
+
- method
|
|
15875
|
+
properties:
|
|
15876
|
+
doc:
|
|
15877
|
+
type: string
|
|
15878
|
+
enum:
|
|
15879
|
+
- operation
|
|
15880
|
+
page:
|
|
15881
|
+
type: string
|
|
15882
|
+
minLength: 1
|
|
15883
|
+
method:
|
|
15884
|
+
type: string
|
|
15885
|
+
enum:
|
|
15886
|
+
- get
|
|
15887
|
+
- post
|
|
15888
|
+
- put
|
|
15889
|
+
- delete
|
|
15890
|
+
- patch
|
|
15891
|
+
- options
|
|
15892
|
+
- head
|
|
15893
|
+
- trace
|
|
15894
|
+
- hook
|
|
15895
|
+
deprecated:
|
|
15896
|
+
type: boolean
|
|
15897
|
+
- type: object
|
|
15898
|
+
required:
|
|
15899
|
+
- doc
|
|
15900
|
+
- page
|
|
15901
|
+
properties:
|
|
15902
|
+
doc:
|
|
15903
|
+
type: string
|
|
15904
|
+
enum:
|
|
15905
|
+
- tag
|
|
15906
|
+
page:
|
|
15907
|
+
type: string
|
|
15908
|
+
minLength: 1
|
|
15783
15909
|
ComputedContentSourceDocumentTranslation:
|
|
15784
15910
|
type: object
|
|
15785
15911
|
description: Parameters for a document translation computed content source
|
|
@@ -18401,11 +18527,16 @@ components:
|
|
|
18401
18527
|
type: string
|
|
18402
18528
|
description: Public HTTP endpoint for the integration
|
|
18403
18529
|
format: uri
|
|
18530
|
+
publicContentEndpoint:
|
|
18531
|
+
type: string
|
|
18532
|
+
description: Public endpoint serving the integration's rendered content (e.g. WebFrames), isolated from the cookie-bearing publicEndpoint origin. Equals publicEndpoint when no separate content origin is configured.
|
|
18533
|
+
format: uri
|
|
18404
18534
|
required:
|
|
18405
18535
|
- location
|
|
18406
18536
|
- app
|
|
18407
18537
|
- assets
|
|
18408
18538
|
- publicEndpoint
|
|
18539
|
+
- publicContentEndpoint
|
|
18409
18540
|
permissions:
|
|
18410
18541
|
type: object
|
|
18411
18542
|
description: The set of permissions for the integration
|
|
@@ -18597,10 +18728,15 @@ components:
|
|
|
18597
18728
|
type: string
|
|
18598
18729
|
description: Public HTTP endpoint for the integration's installation
|
|
18599
18730
|
format: uri
|
|
18731
|
+
publicContentEndpoint:
|
|
18732
|
+
type: string
|
|
18733
|
+
description: Public endpoint serving the integration's rendered content (e.g. WebFrames), isolated from the cookie-bearing publicEndpoint origin. Equals publicEndpoint when no separate content origin is configured.
|
|
18734
|
+
format: uri
|
|
18600
18735
|
required:
|
|
18601
18736
|
- location
|
|
18602
18737
|
- app
|
|
18603
18738
|
- publicEndpoint
|
|
18739
|
+
- publicContentEndpoint
|
|
18604
18740
|
externalIds:
|
|
18605
18741
|
$ref: "#/components/schemas/IntegrationInstallationExternalIds"
|
|
18606
18742
|
target:
|
|
@@ -19409,9 +19545,14 @@ components:
|
|
|
19409
19545
|
type: string
|
|
19410
19546
|
description: Public HTTP endpoint for the integration's installation
|
|
19411
19547
|
format: uri
|
|
19548
|
+
publicContentEndpoint:
|
|
19549
|
+
type: string
|
|
19550
|
+
description: Public endpoint serving the integration's rendered content (e.g. WebFrames), isolated from the cookie-bearing publicEndpoint origin. Equals publicEndpoint when no separate content origin is configured.
|
|
19551
|
+
format: uri
|
|
19412
19552
|
required:
|
|
19413
19553
|
- location
|
|
19414
19554
|
- publicEndpoint
|
|
19555
|
+
- publicContentEndpoint
|
|
19415
19556
|
required:
|
|
19416
19557
|
- integration
|
|
19417
19558
|
- installation
|
|
@@ -22500,6 +22641,162 @@ components:
|
|
|
22500
22641
|
$ref: "#/components/schemas/BillingInvoicePreview"
|
|
22501
22642
|
required:
|
|
22502
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
|
|
22503
22800
|
SiteAdaptiveDeterministicJSONSchemaPrimitives:
|
|
22504
22801
|
oneOf:
|
|
22505
22802
|
- type: object
|
|
@@ -23044,6 +23341,16 @@ components:
|
|
|
23044
23341
|
items:
|
|
23045
23342
|
$ref: "#/components/schemas/CustomizationSuggestedQuestion"
|
|
23046
23343
|
maxItems: 5
|
|
23344
|
+
CustomizationPageActionType:
|
|
23345
|
+
type: string
|
|
23346
|
+
description: Type of a built-in page action that can be displayed in the page actions menu of a published page.
|
|
23347
|
+
enum:
|
|
23348
|
+
- assistant
|
|
23349
|
+
- external-ai
|
|
23350
|
+
- markdown
|
|
23351
|
+
- mcp
|
|
23352
|
+
- git
|
|
23353
|
+
- pdf
|
|
23047
23354
|
SiteExternalLinksTarget:
|
|
23048
23355
|
type: string
|
|
23049
23356
|
description: |
|
|
@@ -23254,7 +23561,8 @@ components:
|
|
|
23254
23561
|
properties:
|
|
23255
23562
|
enabled:
|
|
23256
23563
|
type: boolean
|
|
23257
|
-
|
|
23564
|
+
deprecated: true
|
|
23565
|
+
description: "Deprecated: use `pageActions.items` instead. If true, PDF export is enabled for the published site. Kept in sync with the presence of `pdf` in `pageActions.items`."
|
|
23258
23566
|
required:
|
|
23259
23567
|
- enabled
|
|
23260
23568
|
feedback:
|
|
@@ -23287,7 +23595,8 @@ components:
|
|
|
23287
23595
|
properties:
|
|
23288
23596
|
showEditLink:
|
|
23289
23597
|
type: boolean
|
|
23290
|
-
|
|
23598
|
+
deprecated: true
|
|
23599
|
+
description: "Deprecated: use `pageActions.items` instead. Whether the published site should show a link to edit the content on the git provider set up in the Git Sync. Kept in sync with the presence of `git` in `pageActions.items`."
|
|
23291
23600
|
required:
|
|
23292
23601
|
- showEditLink
|
|
23293
23602
|
pageActions:
|
|
@@ -23295,17 +23604,34 @@ components:
|
|
|
23295
23604
|
properties:
|
|
23296
23605
|
externalAI:
|
|
23297
23606
|
type: boolean
|
|
23298
|
-
|
|
23607
|
+
deprecated: true
|
|
23608
|
+
description: "Deprecated: use `items` instead. Whether actions to open ChatGPT, Anthropic, etc. should be available in the page menu. Kept in sync with the presence of `external-ai` in `items`."
|
|
23299
23609
|
markdown:
|
|
23300
23610
|
type: boolean
|
|
23301
|
-
|
|
23611
|
+
deprecated: true
|
|
23612
|
+
description: "Deprecated: use `items` instead. Whether the copy and open the markdown version of the page should be available in the page menu. Kept in sync with the presence of `markdown` in `items`."
|
|
23302
23613
|
mcp:
|
|
23303
23614
|
type: boolean
|
|
23304
|
-
|
|
23615
|
+
deprecated: true
|
|
23616
|
+
description: "Deprecated: use `items` instead. Whether an action to connect to the docs using the MCP server should be available in the page menu. Kept in sync with the presence of `mcp` in `items`."
|
|
23617
|
+
items:
|
|
23618
|
+
type: array
|
|
23619
|
+
description: |
|
|
23620
|
+
Ordered list of the page actions enabled in the page menu. This is the source of truth for
|
|
23621
|
+
which actions are enabled and in which order: the position defines the display order, the
|
|
23622
|
+
first action is the default one, surfaced as the main button on the page, and actions not
|
|
23623
|
+
present in the list are disabled. When omitted on input, the deprecated `externalAI`,
|
|
23624
|
+
`markdown`, `mcp`, `pdf` and `git` flags are used to derive the list. The `assistant` action
|
|
23625
|
+
is governed by the `ai.mode` setting rather than this list: it is always present (prepended
|
|
23626
|
+
by default if missing, otherwise keeping its position) when the assistant is enabled, and
|
|
23627
|
+
always absent when it is disabled.
|
|
23628
|
+
items:
|
|
23629
|
+
$ref: "#/components/schemas/CustomizationPageActionType"
|
|
23305
23630
|
required:
|
|
23306
23631
|
- externalAI
|
|
23307
23632
|
- markdown
|
|
23308
23633
|
- mcp
|
|
23634
|
+
- items
|
|
23309
23635
|
externalLinks:
|
|
23310
23636
|
type: object
|
|
23311
23637
|
properties:
|
|
@@ -25118,6 +25444,40 @@ components:
|
|
|
25118
25444
|
- tool
|
|
25119
25445
|
- spaceId
|
|
25120
25446
|
- baseRevisionId
|
|
25447
|
+
AIToolCallGetTags:
|
|
25448
|
+
type: object
|
|
25449
|
+
properties:
|
|
25450
|
+
tool:
|
|
25451
|
+
type: string
|
|
25452
|
+
enum:
|
|
25453
|
+
- getTags
|
|
25454
|
+
spaceId:
|
|
25455
|
+
type: string
|
|
25456
|
+
description: The ID of the space being accessed.
|
|
25457
|
+
revisionId:
|
|
25458
|
+
type: string
|
|
25459
|
+
description: The revision ID of the space.
|
|
25460
|
+
required:
|
|
25461
|
+
- tool
|
|
25462
|
+
- spaceId
|
|
25463
|
+
- revisionId
|
|
25464
|
+
AIToolCallUpdateTags:
|
|
25465
|
+
type: object
|
|
25466
|
+
properties:
|
|
25467
|
+
tool:
|
|
25468
|
+
type: string
|
|
25469
|
+
enum:
|
|
25470
|
+
- updateTags
|
|
25471
|
+
spaceId:
|
|
25472
|
+
type: string
|
|
25473
|
+
description: The ID of the space being edited.
|
|
25474
|
+
baseRevisionId:
|
|
25475
|
+
type: string
|
|
25476
|
+
description: The base revision ID used to compare the change in the current conversation.
|
|
25477
|
+
required:
|
|
25478
|
+
- tool
|
|
25479
|
+
- spaceId
|
|
25480
|
+
- baseRevisionId
|
|
25121
25481
|
AIToolCallCreateChangeRequest:
|
|
25122
25482
|
type: object
|
|
25123
25483
|
properties:
|
|
@@ -25292,6 +25652,8 @@ components:
|
|
|
25292
25652
|
- $ref: "#/components/schemas/AIToolCallGetReusableContent"
|
|
25293
25653
|
- $ref: "#/components/schemas/AIToolCallGetVariables"
|
|
25294
25654
|
- $ref: "#/components/schemas/AIToolCallUpdateVariables"
|
|
25655
|
+
- $ref: "#/components/schemas/AIToolCallGetTags"
|
|
25656
|
+
- $ref: "#/components/schemas/AIToolCallUpdateTags"
|
|
25295
25657
|
- $ref: "#/components/schemas/AIToolCallCreateChangeRequest"
|
|
25296
25658
|
- $ref: "#/components/schemas/AIToolCallComment"
|
|
25297
25659
|
- $ref: "#/components/schemas/AIToolCallReplyToComment"
|
|
@@ -28675,162 +29037,6 @@ components:
|
|
|
28675
29037
|
enum:
|
|
28676
29038
|
- github
|
|
28677
29039
|
- gitlab
|
|
28678
|
-
GitSyncInstallationTarget:
|
|
28679
|
-
description: Resource targeted by a Git Sync installation.
|
|
28680
|
-
oneOf:
|
|
28681
|
-
- type: object
|
|
28682
|
-
properties:
|
|
28683
|
-
type:
|
|
28684
|
-
type: string
|
|
28685
|
-
enum:
|
|
28686
|
-
- space
|
|
28687
|
-
description: Type of resource targeted by the Git Sync installation.
|
|
28688
|
-
spaceId:
|
|
28689
|
-
type: string
|
|
28690
|
-
description: Unique identifier of the space targeted by the Git Sync installation.
|
|
28691
|
-
required:
|
|
28692
|
-
- type
|
|
28693
|
-
- spaceId
|
|
28694
|
-
- type: object
|
|
28695
|
-
properties:
|
|
28696
|
-
type:
|
|
28697
|
-
type: string
|
|
28698
|
-
enum:
|
|
28699
|
-
- site
|
|
28700
|
-
description: Type of resource targeted by the Git Sync installation.
|
|
28701
|
-
siteId:
|
|
28702
|
-
type: string
|
|
28703
|
-
description: Unique identifier of the site targeted by the Git Sync installation.
|
|
28704
|
-
required:
|
|
28705
|
-
- type
|
|
28706
|
-
- siteId
|
|
28707
|
-
discriminator:
|
|
28708
|
-
propertyName: type
|
|
28709
|
-
GitSyncInstallationPriority:
|
|
28710
|
-
type: string
|
|
28711
|
-
description: Which side should be treated as the source of truth when Git Sync is configured.
|
|
28712
|
-
enum:
|
|
28713
|
-
- git
|
|
28714
|
-
- gitbook
|
|
28715
|
-
GitSyncInstallationSetupCommon:
|
|
28716
|
-
type: object
|
|
28717
|
-
description: Common setup fields for a Git Sync installation.
|
|
28718
|
-
properties:
|
|
28719
|
-
projectDirectory:
|
|
28720
|
-
type: string
|
|
28721
|
-
description: Optional directory used when syncing a monorepo subdirectory.
|
|
28722
|
-
commitMessageTemplate:
|
|
28723
|
-
type: string
|
|
28724
|
-
description: Optional template used when generating commit messages.
|
|
28725
|
-
previewExternalBranches:
|
|
28726
|
-
type: boolean
|
|
28727
|
-
default: false
|
|
28728
|
-
description: Whether previews should be generated from branches outside the configured branch.
|
|
28729
|
-
priority:
|
|
28730
|
-
$ref: "#/components/schemas/GitSyncInstallationPriority"
|
|
28731
|
-
GitSyncInstallationSetupGitHub:
|
|
28732
|
-
type: object
|
|
28733
|
-
description: GitHub provider configuration for a Git Sync installation.
|
|
28734
|
-
properties:
|
|
28735
|
-
provider:
|
|
28736
|
-
type: string
|
|
28737
|
-
enum:
|
|
28738
|
-
- github
|
|
28739
|
-
providerConfiguration:
|
|
28740
|
-
type: object
|
|
28741
|
-
description: GitHub specific configuration for the Git Sync installation.
|
|
28742
|
-
properties:
|
|
28743
|
-
repositoryId:
|
|
28744
|
-
type: number
|
|
28745
|
-
description: GitHub repository identifier.
|
|
28746
|
-
branch:
|
|
28747
|
-
type: string
|
|
28748
|
-
pattern: ^refs/heads/.+$
|
|
28749
|
-
description: GitHub repository branch ref.
|
|
28750
|
-
required:
|
|
28751
|
-
- provider
|
|
28752
|
-
- providerConfiguration
|
|
28753
|
-
GitSyncInstallationSetupGitLab:
|
|
28754
|
-
type: object
|
|
28755
|
-
description: GitLab provider configuration for a Git Sync installation.
|
|
28756
|
-
properties:
|
|
28757
|
-
provider:
|
|
28758
|
-
type: string
|
|
28759
|
-
enum:
|
|
28760
|
-
- gitlab
|
|
28761
|
-
providerConfiguration:
|
|
28762
|
-
type: object
|
|
28763
|
-
description: GitLab specific configuration for the Git Sync installation.
|
|
28764
|
-
properties:
|
|
28765
|
-
projectId:
|
|
28766
|
-
type: number
|
|
28767
|
-
description: GitLab project identifier.
|
|
28768
|
-
accessToken:
|
|
28769
|
-
type: string
|
|
28770
|
-
description: GitLab access token with appropriate scopes for repository access.
|
|
28771
|
-
customInstanceURL:
|
|
28772
|
-
oneOf:
|
|
28773
|
-
- type: string
|
|
28774
|
-
- type: "null"
|
|
28775
|
-
description: Custom GitLab instance URL, if using a self-hosted GitLab. Use null to clear a self-hosted URL.
|
|
28776
|
-
branch:
|
|
28777
|
-
type: string
|
|
28778
|
-
pattern: ^refs/heads/.+$
|
|
28779
|
-
description: GitLab repository branch ref.
|
|
28780
|
-
required:
|
|
28781
|
-
- provider
|
|
28782
|
-
- providerConfiguration
|
|
28783
|
-
GitSyncInstallationSetup:
|
|
28784
|
-
description: Provider-specific setup payload for a Git Sync installation.
|
|
28785
|
-
allOf:
|
|
28786
|
-
- $ref: "#/components/schemas/GitSyncInstallationSetupCommon"
|
|
28787
|
-
- oneOf:
|
|
28788
|
-
- $ref: "#/components/schemas/GitSyncInstallationSetupGitHub"
|
|
28789
|
-
- $ref: "#/components/schemas/GitSyncInstallationSetupGitLab"
|
|
28790
|
-
discriminator:
|
|
28791
|
-
propertyName: provider
|
|
28792
|
-
GitSyncInstallation:
|
|
28793
|
-
allOf:
|
|
28794
|
-
- $ref: "#/components/schemas/GitSyncInstallationSetup"
|
|
28795
|
-
- type: object
|
|
28796
|
-
properties:
|
|
28797
|
-
object:
|
|
28798
|
-
type: string
|
|
28799
|
-
enum:
|
|
28800
|
-
- git-sync-installation
|
|
28801
|
-
id:
|
|
28802
|
-
type: string
|
|
28803
|
-
description: Unique identifier of the Git Sync installation.
|
|
28804
|
-
target:
|
|
28805
|
-
$ref: "#/components/schemas/GitSyncInstallationTarget"
|
|
28806
|
-
status:
|
|
28807
|
-
$ref: "#/components/schemas/GitSyncInstallationStatus"
|
|
28808
|
-
createdAt:
|
|
28809
|
-
$ref: "#/components/schemas/Timestamp"
|
|
28810
|
-
createdBy:
|
|
28811
|
-
type: string
|
|
28812
|
-
description: Identifier of the user who created the installation.
|
|
28813
|
-
updatedAt:
|
|
28814
|
-
$ref: "#/components/schemas/Timestamp"
|
|
28815
|
-
urls:
|
|
28816
|
-
type: object
|
|
28817
|
-
description: URLs associated with the installation
|
|
28818
|
-
properties:
|
|
28819
|
-
location:
|
|
28820
|
-
type: string
|
|
28821
|
-
description: URL of the installation endpoint in the API
|
|
28822
|
-
format: uri
|
|
28823
|
-
required:
|
|
28824
|
-
- location
|
|
28825
|
-
required:
|
|
28826
|
-
- object
|
|
28827
|
-
- id
|
|
28828
|
-
- target
|
|
28829
|
-
- status
|
|
28830
|
-
- createdAt
|
|
28831
|
-
- createdBy
|
|
28832
|
-
- updatedAt
|
|
28833
|
-
- urls
|
|
28834
29040
|
GitSyncGitHubRepository:
|
|
28835
29041
|
type: object
|
|
28836
29042
|
description: GitHub repository that can be selected for Git Sync.
|