@gitbook/api 0.183.1 → 0.185.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 +898 -95
- package/dist/constants.d.ts +4 -1
- package/dist/index.cjs +55 -7
- package/dist/index.js +52 -7
- package/package.json +1 -1
- package/spec/openapi.json +1738 -247
- package/spec/openapi.yaml +1426 -295
package/dist/client.d.ts
CHANGED
|
@@ -82,11 +82,6 @@ export declare enum RevisionSemanticChangeType {
|
|
|
82
82
|
export declare enum GitBookUsers {
|
|
83
83
|
GitbookAgent = "gitbook:agent"
|
|
84
84
|
}
|
|
85
|
-
/** Which side should be treated as the source of truth when Git Sync is configured. */
|
|
86
|
-
export declare enum GitSyncInstallationPriority {
|
|
87
|
-
Git = "git",
|
|
88
|
-
Gitbook = "gitbook"
|
|
89
|
-
}
|
|
90
85
|
/** The provider of the Git Sync installation. */
|
|
91
86
|
export declare enum GitSyncInstallationProvider {
|
|
92
87
|
Github = "github",
|
|
@@ -633,6 +628,11 @@ export declare enum CustomizationTheme {
|
|
|
633
628
|
Bold = "bold",
|
|
634
629
|
Gradient = "gradient"
|
|
635
630
|
}
|
|
631
|
+
/** Which side should be treated as the source of truth when Git Sync is configured. */
|
|
632
|
+
export declare enum GitSyncInstallationPriority {
|
|
633
|
+
Git = "git",
|
|
634
|
+
Gitbook = "gitbook"
|
|
635
|
+
}
|
|
636
636
|
export declare enum StorageUploadKind {
|
|
637
637
|
CustomizationFont = "customization_font",
|
|
638
638
|
ImportFile = "import_file"
|
|
@@ -1099,18 +1099,6 @@ export declare enum ContentVisibility {
|
|
|
1099
1099
|
export type APIChannelData = APIChannelGitSyncOperationData | APIChannelSpaceContentRefsData | APIChannelChangeRequestContentRefsData | APIChannelTranslationRunData | APIChannelImportRunData | APIChannelMutationData;
|
|
1100
1100
|
/** Channel to subscribe to for realtime updates. */
|
|
1101
1101
|
export type APIChannel = APIChannelSpaceInfo | APIChannelSpaceContent | APIChannelSpaceGitInfo | APIChannelSpacePublishingAuth | APIChannelSpacePublishingCustomization | APIChannelSpaceContentRefs | APIChannelSpaceIntegrations | APIChannelUserAPITokens | APIChannelUserOrganizations | APIChannelUserProfile | APIChannelChangeRequest | APIChannelChangeRequests | APIChannelChangeRequestReviews | APIChannelChangeRequestContentRefs | APIChannelCollection | APIChannelCollectionPublishingCustomization | APIChannelOrganizationInfo | APIChannelOrganizationAgentData | APIChannelOrganizationInviteLinks | APIChannelOrganizationMembers | APIChannelOrganizationMember | APIChannelOrganizationSAML | APIChannelOrganizationTeams | APIChannelOrganizationTeam | APIChannelOrganizationTeamMembers | APIChannelOrganizationTeamMember | APIChannelOrganizationSpaces | APIChannelOrganizationCollections | APIChannelOrganizationIntegrations | APIChannelOrganizationInstallations | APIChannelOrganizationSites | APIChannelOrganizationOpenAPISpecs | APIChannelOrganizationTranslations | APIChannelOrganizationTranslationsGlossary | APIChannelOrganizationCustomFonts | APIChannelOrganizationAgentInstructions | APIChannelOrganizationChangeRequests | APIChannelSpaceComments | APIChannelChangeRequestComments | APIChannelCommentInfo | APIChannelCommentReplies | APIChannelIntegration | APIChannelIntegrationInstallation | APIChannelIntegrationSpaceInstallation | APIChannelIntegrationSpaceInstallations | APIChannelIntegrationSiteInstallation | APIChannelIntegrationSiteInstallations | APIChannelPublishedContentSite | APIChannelSiteRedirects | APIChannelSite | APIChannelSiteChannels | APIChannelSiteContext | APIChannelSiteCustomization | APIChannelSiteAgentSettings | APIChannelSiteIntegrations | APIChannelSiteSpace | APIChannelSiteSpaceCustomization | APIChannelSiteStructure | APIChannelSiteAdaptiveSchema | APIChannelSitePublishingAuth | APIChannelSiteShareLinks | APIChannelSiteShareLink | APIChannelSiteMcpServers | APIChannelSiteMcpServer | APIChannelSiteSection | APIChannelCustomHostname | APIChannelGitSyncInstallation | APIChannelGitSyncOperation | APIChannelOpenAPISpec | APIChannelSubdomain | APIChannelTranslation | APIChannelTranslationRun | APIChannelImportRun;
|
|
1102
|
-
/** Resource targeted by a Git Sync installation. */
|
|
1103
|
-
export type GitSyncInstallationTarget = {
|
|
1104
|
-
/** Type of resource targeted by the Git Sync installation. */
|
|
1105
|
-
type: "space";
|
|
1106
|
-
/** Unique identifier of the space targeted by the Git Sync installation. */
|
|
1107
|
-
spaceId: string;
|
|
1108
|
-
} | {
|
|
1109
|
-
/** Type of resource targeted by the Git Sync installation. */
|
|
1110
|
-
type: "site";
|
|
1111
|
-
/** Unique identifier of the site targeted by the Git Sync installation. */
|
|
1112
|
-
siteId: string;
|
|
1113
|
-
};
|
|
1114
1102
|
export type PublishedContentRedirect = {
|
|
1115
1103
|
/** Type of target for the redirect */
|
|
1116
1104
|
target: "application" | "content";
|
|
@@ -1125,6 +1113,18 @@ export type PublishedContentRedirect = {
|
|
|
1125
1113
|
/** Result of a search */
|
|
1126
1114
|
export type AIToolCallSearchResult = AIToolCallSearchResultPage | AIToolCallSearchResultRecord;
|
|
1127
1115
|
export type SiteQuestionAnswerSource = SiteQuestionAnswerSourcePage | SiteQuestionAnswerSourceRecord;
|
|
1116
|
+
/** Resource targeted by a Git Sync installation. */
|
|
1117
|
+
export type GitSyncInstallationTarget = {
|
|
1118
|
+
/** Type of resource targeted by the Git Sync installation. */
|
|
1119
|
+
type: "space";
|
|
1120
|
+
/** Unique identifier of the space targeted by the Git Sync installation. */
|
|
1121
|
+
spaceId: string;
|
|
1122
|
+
} | {
|
|
1123
|
+
/** Type of resource targeted by the Git Sync installation. */
|
|
1124
|
+
type: "site";
|
|
1125
|
+
/** Unique identifier of the site targeted by the Git Sync installation. */
|
|
1126
|
+
siteId: string;
|
|
1127
|
+
};
|
|
1128
1128
|
export type SearchAIAnswerSource = SearchAIAnswerSourcePage | SearchAIAnswerSourceRecord;
|
|
1129
1129
|
/** Element used as root */
|
|
1130
1130
|
export type ContentKitRootElement = ContentKitBlock | ContentKitModal | ContentKitConfiguration;
|
|
@@ -1134,6 +1134,7 @@ export type ContentKitInlineElement = ContentKitText | ContentKitImage | Content
|
|
|
1134
1134
|
export type ContentKitDescendantElement = ContentKitButton | ContentKitTextInput | ContentKitHStack | ContentKitVStack | ContentKitBox | ContentKitDivider | ContentKitWebFrame | ContentKitCodeBlock | ContentKitMarkdown | ContentKitCard | ContentKitImage | ContentKitInput | ContentKitSelect | ContentKitSwitch | ContentKitCheckbox | ContentKitRadio | ContentKitText | ContentKitHint | ContentKitLink | ContentKitStepperStep;
|
|
1135
1135
|
/** Any event that can be received from GitBook. */
|
|
1136
1136
|
export type Event = InstallationSetupEvent | InstallationDeletedEvent | SpaceInstallationSetupEvent | SpaceInstallationDeletedEvent | SiteInstallationSetupEvent | SiteInstallationDeletedEvent | SiteViewEvent | SpaceContentUpdatedEvent | SpaceGitSyncCompletedEvent | SpaceGitSyncStartedEvent | SpaceVisibilityUpdatedEvent | TaskEvent | FetchEvent | FetchPublishedScriptEvent | FetchVisitorAuthenticationEvent | UIRenderEvent | ContentComputeDocumentEvent | ContentComputeRevisionEvent | PageFeedbackEvent;
|
|
1137
|
+
export type ChangeRequestContentChange = ChangeRequestContentChangeUpdatePage;
|
|
1137
1138
|
/** An absolute reference to content in GitBook. */
|
|
1138
1139
|
export type ContentLocation = ContentLocationFile | ContentLocationURL | ContentLocationPage | ContentLocationUser | ContentLocationCollection | ContentLocationSpace | ContentLocationReusableContent | ContentLocationOpenAPI;
|
|
1139
1140
|
export type Revision = RevisionTypeEdits | RevisionTypeMerge | RevisionTypeRollback | RevisionTypeUpdate | RevisionTypeComputed;
|
|
@@ -2070,7 +2071,24 @@ export interface DocumentBlockDivider {
|
|
|
2070
2071
|
isVoid: true;
|
|
2071
2072
|
data: object;
|
|
2072
2073
|
}
|
|
2073
|
-
export
|
|
2074
|
+
export interface DocumentBlockPrompt {
|
|
2075
|
+
object: "block";
|
|
2076
|
+
type: "prompt";
|
|
2077
|
+
key?: string;
|
|
2078
|
+
data: {
|
|
2079
|
+
description: string;
|
|
2080
|
+
/** Name of the icon */
|
|
2081
|
+
icon?: Icon;
|
|
2082
|
+
openInAIProviders?: boolean;
|
|
2083
|
+
};
|
|
2084
|
+
/**
|
|
2085
|
+
* @maxItems 1
|
|
2086
|
+
* @minItems 1
|
|
2087
|
+
*/
|
|
2088
|
+
nodes: DocumentBlockCode[];
|
|
2089
|
+
isVoid?: false;
|
|
2090
|
+
}
|
|
2091
|
+
export type DocumentBlocksTopLevels = DocumentBlocksEssentials | DocumentBlockQuote | DocumentBlockHint | DocumentBlockPrompt | DocumentBlockImages | DocumentBlockFile | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockCode | DocumentBlockMath | DocumentBlockExpandable | DocumentBlockTabs | DocumentBlockTable | DocumentBlockOpenAPI | DocumentBlockOpenAPIOperation | DocumentBlockOpenAPISchemas | DocumentBlockOpenAPIWebhook | DocumentBlockContentRef | DocumentBlockIntegration | DocumentBlockReusableContent | DocumentBlockStepper | DocumentBlockIf | DocumentBlockColumns | DocumentBlockUpdates;
|
|
2074
2092
|
export interface DocumentBlockIf {
|
|
2075
2093
|
object: "block";
|
|
2076
2094
|
type: "if";
|
|
@@ -2228,7 +2246,7 @@ export interface DocumentBlockExpandable {
|
|
|
2228
2246
|
fragment: "expandable-body";
|
|
2229
2247
|
type: "expandable-body";
|
|
2230
2248
|
/** @minItems 1 */
|
|
2231
|
-
nodes: (DocumentBlocksEssentials | DocumentBlockFile | DocumentBlockImages | DocumentBlockCode | DocumentBlockTable | DocumentBlockHint | DocumentBlockQuote | DocumentBlockReusableContent | DocumentBlockIntegration)[];
|
|
2249
|
+
nodes: (DocumentBlocksEssentials | DocumentBlockFile | DocumentBlockImages | DocumentBlockCode | DocumentBlockTable | DocumentBlockHint | DocumentBlockPrompt | DocumentBlockQuote | DocumentBlockReusableContent | DocumentBlockIntegration)[];
|
|
2232
2250
|
}))[];
|
|
2233
2251
|
meta?: {
|
|
2234
2252
|
/** Unique ID to be used in an URL for the block. */
|
|
@@ -2249,7 +2267,7 @@ export interface DocumentBlockTabsItem {
|
|
|
2249
2267
|
object: "block";
|
|
2250
2268
|
type: "tabs-item";
|
|
2251
2269
|
key?: string;
|
|
2252
|
-
nodes: (DocumentBlocksEssentials | DocumentBlockContentRef | DocumentBlockCode | DocumentBlockEmbed | DocumentBlockFile | DocumentBlockImages | DocumentBlockDrawing | DocumentBlockHint | DocumentBlockQuote | DocumentBlockMath | DocumentBlockIntegration)[];
|
|
2270
|
+
nodes: (DocumentBlocksEssentials | DocumentBlockContentRef | DocumentBlockCode | DocumentBlockEmbed | DocumentBlockFile | DocumentBlockImages | DocumentBlockDrawing | DocumentBlockHint | DocumentBlockPrompt | DocumentBlockQuote | DocumentBlockMath | DocumentBlockIntegration)[];
|
|
2253
2271
|
data: {
|
|
2254
2272
|
title?: string;
|
|
2255
2273
|
/** Name of the icon */
|
|
@@ -2300,6 +2318,8 @@ export interface DocumentBlockOpenAPIOperation {
|
|
|
2300
2318
|
key?: string;
|
|
2301
2319
|
data: OpenAPIOperationPointer & {
|
|
2302
2320
|
ref: ContentRefOpenAPI;
|
|
2321
|
+
/** 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. */
|
|
2322
|
+
headless?: boolean;
|
|
2303
2323
|
};
|
|
2304
2324
|
isVoid: true;
|
|
2305
2325
|
meta?: {
|
|
@@ -2345,6 +2365,8 @@ export interface DocumentBlockOpenAPIWebhook {
|
|
|
2345
2365
|
key?: string;
|
|
2346
2366
|
data: OpenAPIWebhookPointer & {
|
|
2347
2367
|
ref: ContentRefOpenAPI;
|
|
2368
|
+
/** 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. */
|
|
2369
|
+
headless?: boolean;
|
|
2348
2370
|
};
|
|
2349
2371
|
isVoid: true;
|
|
2350
2372
|
meta?: {
|
|
@@ -2356,7 +2378,7 @@ export interface DocumentBlockStepperStep {
|
|
|
2356
2378
|
object: "block";
|
|
2357
2379
|
type: "stepper-step";
|
|
2358
2380
|
key?: string;
|
|
2359
|
-
nodes: (DocumentBlocksEssentials | DocumentBlockContentRef | DocumentBlockCode | DocumentBlockEmbed | DocumentBlockFile | DocumentBlockImages | DocumentBlockDrawing | DocumentBlockHint | DocumentBlockQuote | DocumentBlockMath | DocumentBlockIntegration | DocumentBlockExpandable)[];
|
|
2381
|
+
nodes: (DocumentBlocksEssentials | DocumentBlockContentRef | DocumentBlockCode | DocumentBlockEmbed | DocumentBlockFile | DocumentBlockImages | DocumentBlockDrawing | DocumentBlockHint | DocumentBlockPrompt | DocumentBlockQuote | DocumentBlockMath | DocumentBlockIntegration | DocumentBlockExpandable)[];
|
|
2360
2382
|
data: {
|
|
2361
2383
|
icon?: string;
|
|
2362
2384
|
};
|
|
@@ -2374,7 +2396,7 @@ export interface DocumentBlockColumn {
|
|
|
2374
2396
|
object: "block";
|
|
2375
2397
|
type: "column";
|
|
2376
2398
|
key?: string;
|
|
2377
|
-
nodes: (DocumentBlocksEssentials | DocumentBlockImages | DocumentBlockCode | DocumentBlockHint | DocumentBlockContentRef | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockFile | DocumentBlockIntegration | DocumentBlockMath | DocumentBlockQuote | DocumentBlockTable | DocumentBlockExpandable | DocumentBlockStepper)[];
|
|
2399
|
+
nodes: (DocumentBlocksEssentials | DocumentBlockImages | DocumentBlockCode | DocumentBlockHint | DocumentBlockPrompt | DocumentBlockContentRef | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockFile | DocumentBlockIntegration | DocumentBlockMath | DocumentBlockQuote | DocumentBlockTable | DocumentBlockExpandable | DocumentBlockStepper)[];
|
|
2378
2400
|
isVoid?: false;
|
|
2379
2401
|
data: {
|
|
2380
2402
|
width?: Length;
|
|
@@ -2395,7 +2417,7 @@ export interface DocumentBlockUpdate {
|
|
|
2395
2417
|
object: "block";
|
|
2396
2418
|
type: "update";
|
|
2397
2419
|
key?: string;
|
|
2398
|
-
nodes: (DocumentBlocksEssentials | DocumentBlockContentRef | DocumentBlockCode | DocumentBlockEmbed | DocumentBlockFile | DocumentBlockImages | DocumentBlockDrawing | DocumentBlockHint | DocumentBlockQuote | DocumentBlockMath | DocumentBlockIntegration | DocumentBlockTabs | DocumentBlockExpandable)[];
|
|
2420
|
+
nodes: (DocumentBlocksEssentials | DocumentBlockContentRef | DocumentBlockCode | DocumentBlockEmbed | DocumentBlockFile | DocumentBlockImages | DocumentBlockDrawing | DocumentBlockHint | DocumentBlockPrompt | DocumentBlockQuote | DocumentBlockMath | DocumentBlockIntegration | DocumentBlockTabs | DocumentBlockExpandable)[];
|
|
2399
2421
|
data: {
|
|
2400
2422
|
date: Timestamp;
|
|
2401
2423
|
/** Array of tags. Each tag is id'ed by its slug. */
|
|
@@ -2414,7 +2436,7 @@ export interface DocumentBlockUpdates {
|
|
|
2414
2436
|
format: "numeric" | "full" | "short";
|
|
2415
2437
|
};
|
|
2416
2438
|
}
|
|
2417
|
-
export type DocumentBlock = DocumentBlockParagraph | DocumentBlockHeading | DocumentBlockListOrdered | DocumentBlockListUnordered | DocumentBlockListTasks | DocumentBlockListItem | DocumentBlockDivider | DocumentBlockQuote | DocumentBlockHint | DocumentBlockIf | DocumentBlockImages | DocumentBlockImage | DocumentBlockFile | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockCode | DocumentBlockCodeLine | DocumentBlockMath | DocumentBlockExpandable | DocumentBlockTabs | DocumentBlockTabsItem | DocumentBlockTable | DocumentBlockOpenAPI | DocumentBlockOpenAPIOperation | DocumentBlockOpenAPISchemas | DocumentBlockOpenAPIWebhook | DocumentBlockContentRef | DocumentBlockIntegration | DocumentBlockReusableContent | DocumentBlockStepper | DocumentBlockStepperStep | DocumentBlockColumns | DocumentBlockColumn | DocumentBlockUpdates | DocumentBlockUpdate;
|
|
2439
|
+
export type DocumentBlock = DocumentBlockParagraph | DocumentBlockHeading | DocumentBlockListOrdered | DocumentBlockListUnordered | DocumentBlockListTasks | DocumentBlockListItem | DocumentBlockDivider | DocumentBlockQuote | DocumentBlockHint | DocumentBlockPrompt | DocumentBlockIf | DocumentBlockImages | DocumentBlockImage | DocumentBlockFile | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockCode | DocumentBlockCodeLine | DocumentBlockMath | DocumentBlockExpandable | DocumentBlockTabs | DocumentBlockTabsItem | DocumentBlockTable | DocumentBlockOpenAPI | DocumentBlockOpenAPIOperation | DocumentBlockOpenAPISchemas | DocumentBlockOpenAPIWebhook | DocumentBlockContentRef | DocumentBlockIntegration | DocumentBlockReusableContent | DocumentBlockStepper | DocumentBlockStepperStep | DocumentBlockColumns | DocumentBlockColumn | DocumentBlockUpdates | DocumentBlockUpdate;
|
|
2418
2440
|
export interface DocumentInlineMention {
|
|
2419
2441
|
object: "inline";
|
|
2420
2442
|
type: "mention";
|
|
@@ -3033,6 +3055,10 @@ export interface OrganizationBilling {
|
|
|
3033
3055
|
paidPremiumSites?: number;
|
|
3034
3056
|
/** The number of paid ultimate sites on the current subscription. */
|
|
3035
3057
|
paidUltimateSites?: number;
|
|
3058
|
+
/** Whether changing billing interval is allowed */
|
|
3059
|
+
canChangeInterval: boolean;
|
|
3060
|
+
/** Whether configuring SAML is allowed */
|
|
3061
|
+
canUseSAML: boolean;
|
|
3036
3062
|
}
|
|
3037
3063
|
/**
|
|
3038
3064
|
* A short description giving context on the reason for the block.
|
|
@@ -3493,6 +3519,16 @@ export type ChangeRequestRequestedReviewer = {
|
|
|
3493
3519
|
/** The team who was requested to review. */
|
|
3494
3520
|
team: Team;
|
|
3495
3521
|
});
|
|
3522
|
+
export interface AgentConversation {
|
|
3523
|
+
/** Type of Object, always equals to "agent-conversation" */
|
|
3524
|
+
object: "agent-conversation";
|
|
3525
|
+
/** The unique ID of the conversation. This is the client-generated identifier used to address the conversation; for the default conversation of a change request it is "default". */
|
|
3526
|
+
id: string;
|
|
3527
|
+
/** The title of the conversation, generated from the first message. Absent until generated. */
|
|
3528
|
+
title?: string;
|
|
3529
|
+
createdAt: Timestamp;
|
|
3530
|
+
updatedAt: Timestamp;
|
|
3531
|
+
}
|
|
3496
3532
|
export interface PostCommentSchema {
|
|
3497
3533
|
/** The node to which the comment is posted, if any. */
|
|
3498
3534
|
node?: string;
|
|
@@ -3551,6 +3587,13 @@ export interface PostCommentReplySchema {
|
|
|
3551
3587
|
export type ChangeRequestUserContributor = UserContributor & {
|
|
3552
3588
|
actionType: "edit" | "comment";
|
|
3553
3589
|
};
|
|
3590
|
+
/** Replace the document of an existing page with another document. */
|
|
3591
|
+
export interface ChangeRequestContentChangeUpdatePage {
|
|
3592
|
+
operation: "update_page";
|
|
3593
|
+
/** ID of the page whose content should be updated. */
|
|
3594
|
+
page: string;
|
|
3595
|
+
document: Document;
|
|
3596
|
+
}
|
|
3554
3597
|
export interface ChangedRevisionPage {
|
|
3555
3598
|
id: string;
|
|
3556
3599
|
type: RevisionPageType;
|
|
@@ -5846,6 +5889,74 @@ export type SitePublishOperationPreviewResponse = {
|
|
|
5846
5889
|
type: "checkout";
|
|
5847
5890
|
invoice?: BillingInvoicePreview;
|
|
5848
5891
|
};
|
|
5892
|
+
/** Common setup fields for a Git Sync installation. */
|
|
5893
|
+
export interface GitSyncInstallationSetupCommon {
|
|
5894
|
+
/** Optional directory used when syncing a monorepo subdirectory. */
|
|
5895
|
+
projectDirectory?: string;
|
|
5896
|
+
/** Optional template used when generating commit messages. */
|
|
5897
|
+
commitMessageTemplate?: string;
|
|
5898
|
+
/**
|
|
5899
|
+
* Whether previews should be generated from branches outside the configured branch.
|
|
5900
|
+
* @default false
|
|
5901
|
+
*/
|
|
5902
|
+
previewExternalBranches?: boolean;
|
|
5903
|
+
/** Which side should be treated as the source of truth when Git Sync is configured. */
|
|
5904
|
+
priority?: GitSyncInstallationPriority;
|
|
5905
|
+
}
|
|
5906
|
+
/** GitHub provider configuration for a Git Sync installation. */
|
|
5907
|
+
export interface GitSyncInstallationSetupGitHub {
|
|
5908
|
+
provider: "github";
|
|
5909
|
+
/** GitHub specific configuration for the Git Sync installation. */
|
|
5910
|
+
providerConfiguration: {
|
|
5911
|
+
/** GitHub repository identifier. */
|
|
5912
|
+
repositoryId?: number;
|
|
5913
|
+
/**
|
|
5914
|
+
* GitHub repository branch ref.
|
|
5915
|
+
* @pattern ^refs/heads/.+$
|
|
5916
|
+
*/
|
|
5917
|
+
branch?: string;
|
|
5918
|
+
};
|
|
5919
|
+
}
|
|
5920
|
+
/** GitLab provider configuration for a Git Sync installation. */
|
|
5921
|
+
export interface GitSyncInstallationSetupGitLab {
|
|
5922
|
+
provider: "gitlab";
|
|
5923
|
+
/** GitLab specific configuration for the Git Sync installation. */
|
|
5924
|
+
providerConfiguration: {
|
|
5925
|
+
/** GitLab project identifier. */
|
|
5926
|
+
projectId?: number;
|
|
5927
|
+
/** GitLab access token with appropriate scopes for repository access. */
|
|
5928
|
+
accessToken?: string;
|
|
5929
|
+
/** Custom GitLab instance URL, if using a self-hosted GitLab. Use null to clear a self-hosted URL. */
|
|
5930
|
+
customInstanceURL?: string | null;
|
|
5931
|
+
/**
|
|
5932
|
+
* GitLab repository branch ref.
|
|
5933
|
+
* @pattern ^refs/heads/.+$
|
|
5934
|
+
*/
|
|
5935
|
+
branch?: string;
|
|
5936
|
+
};
|
|
5937
|
+
}
|
|
5938
|
+
/** Provider-specific setup payload for a Git Sync installation. */
|
|
5939
|
+
export type GitSyncInstallationSetup = GitSyncInstallationSetupCommon & (GitSyncInstallationSetupGitHub | GitSyncInstallationSetupGitLab);
|
|
5940
|
+
export type GitSyncInstallation = GitSyncInstallationSetup & {
|
|
5941
|
+
object: "git-sync-installation";
|
|
5942
|
+
/** Unique identifier of the Git Sync installation. */
|
|
5943
|
+
id: string;
|
|
5944
|
+
/** Resource targeted by a Git Sync installation. */
|
|
5945
|
+
target: GitSyncInstallationTarget;
|
|
5946
|
+
status: GitSyncInstallationStatus;
|
|
5947
|
+
createdAt: Timestamp;
|
|
5948
|
+
/** Identifier of the user who created the installation. */
|
|
5949
|
+
createdBy: string;
|
|
5950
|
+
updatedAt: Timestamp;
|
|
5951
|
+
/** URLs associated with the installation */
|
|
5952
|
+
urls: {
|
|
5953
|
+
/**
|
|
5954
|
+
* URL of the installation endpoint in the API
|
|
5955
|
+
* @format uri
|
|
5956
|
+
*/
|
|
5957
|
+
location: string;
|
|
5958
|
+
};
|
|
5959
|
+
};
|
|
5849
5960
|
export type SiteAdaptiveDeterministicJSONSchemaPrimitives = {
|
|
5850
5961
|
type: "boolean";
|
|
5851
5962
|
description: string;
|
|
@@ -6151,7 +6262,7 @@ export interface SiteCustomizationSettingsBase {
|
|
|
6151
6262
|
* by default if missing, otherwise keeping its position) when the assistant is enabled, and
|
|
6152
6263
|
* always absent when it is disabled.
|
|
6153
6264
|
*/
|
|
6154
|
-
items
|
|
6265
|
+
items: CustomizationPageActionType[];
|
|
6155
6266
|
};
|
|
6156
6267
|
externalLinks: {
|
|
6157
6268
|
/**
|
|
@@ -6334,7 +6445,7 @@ export interface SiteInsightsSession {
|
|
|
6334
6445
|
sessionId: string;
|
|
6335
6446
|
}
|
|
6336
6447
|
/** Integration source */
|
|
6337
|
-
export type ContextConnector = string | "builtin:email" | "builtin:api" | "builtin:website" | "builtin:youtube" | "builtin:github-discussions" | "builtin:github-issues" | "builtin:intercom";
|
|
6448
|
+
export type ContextConnector = string | "builtin:email" | "builtin:api" | "builtin:website" | "builtin:youtube" | "builtin:github-discussions" | "builtin:github-issues" | "builtin:intercom" | "builtin:zendesk";
|
|
6338
6449
|
/**
|
|
6339
6450
|
* Title for the context record
|
|
6340
6451
|
* @minLength 1
|
|
@@ -6628,6 +6739,16 @@ export type ContextConnectorSetup = {
|
|
|
6628
6739
|
/** @minLength 1 */
|
|
6629
6740
|
token: string;
|
|
6630
6741
|
};
|
|
6742
|
+
} | {
|
|
6743
|
+
connector: "builtin:zendesk";
|
|
6744
|
+
setupSettings: {
|
|
6745
|
+
/** @minLength 1 */
|
|
6746
|
+
subdomain: string;
|
|
6747
|
+
/** @minLength 1 */
|
|
6748
|
+
email: string;
|
|
6749
|
+
/** @minLength 1 */
|
|
6750
|
+
apiToken: string;
|
|
6751
|
+
};
|
|
6631
6752
|
};
|
|
6632
6753
|
export type ContextConnection = {
|
|
6633
6754
|
object: "context-connection";
|
|
@@ -8162,6 +8283,33 @@ export interface Index {
|
|
|
8162
8283
|
collections: Record<string, UserCollectionsPermissions>;
|
|
8163
8284
|
spaces: Record<string, UserSpacesPermissions>;
|
|
8164
8285
|
}
|
|
8286
|
+
/** Date-based billing override value, either indefinite or a timestamp. */
|
|
8287
|
+
export type OrganizationBillingDateOverride = true | Timestamp;
|
|
8288
|
+
/**
|
|
8289
|
+
* Current numeric billing override, when set.
|
|
8290
|
+
* @min 0
|
|
8291
|
+
*/
|
|
8292
|
+
export type OrganizationBillingNumericOverride = number;
|
|
8293
|
+
export interface OrganizationBillingOverrides {
|
|
8294
|
+
overrides: {
|
|
8295
|
+
/** Current interval-change override, when set. */
|
|
8296
|
+
frozenInterval?: OrganizationBillingDateOverride;
|
|
8297
|
+
/** Current SAML override, when set. */
|
|
8298
|
+
enableSAML?: OrganizationBillingDateOverride;
|
|
8299
|
+
/** Current minimum users override, when set. */
|
|
8300
|
+
minUsers?: OrganizationBillingNumericOverride;
|
|
8301
|
+
/** Current maximum users override, when set. */
|
|
8302
|
+
maxUsers?: OrganizationBillingNumericOverride;
|
|
8303
|
+
/** Current minimum premium sites override, when set. */
|
|
8304
|
+
minPremiumSites?: OrganizationBillingNumericOverride;
|
|
8305
|
+
/** Current maximum premium sites override, when set. */
|
|
8306
|
+
maxPremiumSites?: OrganizationBillingNumericOverride;
|
|
8307
|
+
/** Current minimum ultimate sites override, when set. */
|
|
8308
|
+
minUltimateSites?: OrganizationBillingNumericOverride;
|
|
8309
|
+
/** Current maximum ultimate sites override, when set. */
|
|
8310
|
+
maxUltimateSites?: OrganizationBillingNumericOverride;
|
|
8311
|
+
};
|
|
8312
|
+
}
|
|
8165
8313
|
export type BackOfficeSite = Site & {
|
|
8166
8314
|
/** ID of the organization owning this site */
|
|
8167
8315
|
organization: string;
|
|
@@ -8208,74 +8356,6 @@ export interface SiteVisitorPayload {
|
|
|
8208
8356
|
jwtToken?: string;
|
|
8209
8357
|
unsignedClaims?: PlainObject;
|
|
8210
8358
|
}
|
|
8211
|
-
/** Common setup fields for a Git Sync installation. */
|
|
8212
|
-
export interface GitSyncInstallationSetupCommon {
|
|
8213
|
-
/** Optional directory used when syncing a monorepo subdirectory. */
|
|
8214
|
-
projectDirectory?: string;
|
|
8215
|
-
/** Optional template used when generating commit messages. */
|
|
8216
|
-
commitMessageTemplate?: string;
|
|
8217
|
-
/**
|
|
8218
|
-
* Whether previews should be generated from branches outside the configured branch.
|
|
8219
|
-
* @default false
|
|
8220
|
-
*/
|
|
8221
|
-
previewExternalBranches?: boolean;
|
|
8222
|
-
/** Which side should be treated as the source of truth when Git Sync is configured. */
|
|
8223
|
-
priority?: GitSyncInstallationPriority;
|
|
8224
|
-
}
|
|
8225
|
-
/** GitHub provider configuration for a Git Sync installation. */
|
|
8226
|
-
export interface GitSyncInstallationSetupGitHub {
|
|
8227
|
-
provider: "github";
|
|
8228
|
-
/** GitHub specific configuration for the Git Sync installation. */
|
|
8229
|
-
providerConfiguration: {
|
|
8230
|
-
/** GitHub repository identifier. */
|
|
8231
|
-
repositoryId?: number;
|
|
8232
|
-
/**
|
|
8233
|
-
* GitHub repository branch ref.
|
|
8234
|
-
* @pattern ^refs/heads/.+$
|
|
8235
|
-
*/
|
|
8236
|
-
branch?: string;
|
|
8237
|
-
};
|
|
8238
|
-
}
|
|
8239
|
-
/** GitLab provider configuration for a Git Sync installation. */
|
|
8240
|
-
export interface GitSyncInstallationSetupGitLab {
|
|
8241
|
-
provider: "gitlab";
|
|
8242
|
-
/** GitLab specific configuration for the Git Sync installation. */
|
|
8243
|
-
providerConfiguration: {
|
|
8244
|
-
/** GitLab project identifier. */
|
|
8245
|
-
projectId?: number;
|
|
8246
|
-
/** GitLab access token with appropriate scopes for repository access. */
|
|
8247
|
-
accessToken?: string;
|
|
8248
|
-
/** Custom GitLab instance URL, if using a self-hosted GitLab. Use null to clear a self-hosted URL. */
|
|
8249
|
-
customInstanceURL?: string | null;
|
|
8250
|
-
/**
|
|
8251
|
-
* GitLab repository branch ref.
|
|
8252
|
-
* @pattern ^refs/heads/.+$
|
|
8253
|
-
*/
|
|
8254
|
-
branch?: string;
|
|
8255
|
-
};
|
|
8256
|
-
}
|
|
8257
|
-
/** Provider-specific setup payload for a Git Sync installation. */
|
|
8258
|
-
export type GitSyncInstallationSetup = GitSyncInstallationSetupCommon & (GitSyncInstallationSetupGitHub | GitSyncInstallationSetupGitLab);
|
|
8259
|
-
export type GitSyncInstallation = GitSyncInstallationSetup & {
|
|
8260
|
-
object: "git-sync-installation";
|
|
8261
|
-
/** Unique identifier of the Git Sync installation. */
|
|
8262
|
-
id: string;
|
|
8263
|
-
/** Resource targeted by a Git Sync installation. */
|
|
8264
|
-
target: GitSyncInstallationTarget;
|
|
8265
|
-
status: GitSyncInstallationStatus;
|
|
8266
|
-
createdAt: Timestamp;
|
|
8267
|
-
/** Identifier of the user who created the installation. */
|
|
8268
|
-
createdBy: string;
|
|
8269
|
-
updatedAt: Timestamp;
|
|
8270
|
-
/** URLs associated with the installation */
|
|
8271
|
-
urls: {
|
|
8272
|
-
/**
|
|
8273
|
-
* URL of the installation endpoint in the API
|
|
8274
|
-
* @format uri
|
|
8275
|
-
*/
|
|
8276
|
-
location: string;
|
|
8277
|
-
};
|
|
8278
|
-
};
|
|
8279
8359
|
/** GitHub repository that can be selected for Git Sync. */
|
|
8280
8360
|
export interface GitSyncGitHubRepository {
|
|
8281
8361
|
id: number;
|
|
@@ -8494,6 +8574,613 @@ export interface GitSyncOperation {
|
|
|
8494
8574
|
/** Error details, defined if state is `failure`. */
|
|
8495
8575
|
error?: string;
|
|
8496
8576
|
}
|
|
8577
|
+
/**
|
|
8578
|
+
* A section group — a container that nests sections (and other section
|
|
8579
|
+
* groups). Discriminated by `type: section-group`. Up to one level of nested
|
|
8580
|
+
* section groups is allowed.
|
|
8581
|
+
*/
|
|
8582
|
+
export interface GitSyncSiteStructureSectionGroup {
|
|
8583
|
+
/** Discriminator for a section group node. */
|
|
8584
|
+
type: "section-group";
|
|
8585
|
+
/**
|
|
8586
|
+
* Stable identifier for this section group, used as the Git Sync key.
|
|
8587
|
+
* Must be unique amongst all other section groups of the site. For
|
|
8588
|
+
* example: `section-group-product` or `section-group-1`.
|
|
8589
|
+
* @minLength 1
|
|
8590
|
+
*/
|
|
8591
|
+
key: string;
|
|
8592
|
+
/** Title of the site section group */
|
|
8593
|
+
title: SiteSectionGroupTitle;
|
|
8594
|
+
/** Localized string value with a 128 character limit, keyed by locale. Contains overrides for non-default languages only. */
|
|
8595
|
+
localizedTitle?: LocalizedString128;
|
|
8596
|
+
/** Name of the icon */
|
|
8597
|
+
icon?: Icon;
|
|
8598
|
+
/** Whether the section group is draft and not live. */
|
|
8599
|
+
draft?: boolean;
|
|
8600
|
+
/** Section or section group nodes nested under this group. */
|
|
8601
|
+
children?: (GitSyncSiteStructureSectionGroup | GitSyncSiteStructureSection)[];
|
|
8602
|
+
}
|
|
8603
|
+
/**
|
|
8604
|
+
* A space — a single content unit in the site's navigation tree. Discriminated
|
|
8605
|
+
* by `type: space`.
|
|
8606
|
+
*
|
|
8607
|
+
* The space's content lives in the synced repository at the directory pointed
|
|
8608
|
+
* to by `content.directory`. Hierarchy comes from where the space appears in
|
|
8609
|
+
* the YAML (under a section, a section group, or at the root), not from an
|
|
8610
|
+
* explicit parent reference.
|
|
8611
|
+
*/
|
|
8612
|
+
export interface GitSyncSiteStructureSpace {
|
|
8613
|
+
/** Discriminator for a space node. */
|
|
8614
|
+
type: "space";
|
|
8615
|
+
/**
|
|
8616
|
+
* Stable identifier for this space, used as the Git Sync key. Must be
|
|
8617
|
+
* unique amongst all other spaces of the site. For example: `space-docs`
|
|
8618
|
+
* or `space-1`.
|
|
8619
|
+
* @minLength 1
|
|
8620
|
+
*/
|
|
8621
|
+
key: string;
|
|
8622
|
+
/** @minLength 1 */
|
|
8623
|
+
title: string;
|
|
8624
|
+
/** Localized string value with a 128 character limit, keyed by locale. Contains overrides for non-default languages only. */
|
|
8625
|
+
localizedTitle?: LocalizedString128;
|
|
8626
|
+
/** Path to the space on the site */
|
|
8627
|
+
path: SiteSpacePath;
|
|
8628
|
+
/** Whether this is the default space for the site. */
|
|
8629
|
+
default?: boolean;
|
|
8630
|
+
/** Whether the space is hidden from the site's navigation. */
|
|
8631
|
+
hidden?: boolean;
|
|
8632
|
+
/** Whether the space is draft and not live. */
|
|
8633
|
+
draft?: boolean;
|
|
8634
|
+
/** Expression to evaluate */
|
|
8635
|
+
condition?: Expression;
|
|
8636
|
+
/** Where the space's content lives in the synced repository. */
|
|
8637
|
+
content: {
|
|
8638
|
+
/**
|
|
8639
|
+
* Repository-relative directory containing this space's content.
|
|
8640
|
+
* @minLength 1
|
|
8641
|
+
*/
|
|
8642
|
+
directory: string;
|
|
8643
|
+
language?: TranslationLanguage;
|
|
8644
|
+
};
|
|
8645
|
+
}
|
|
8646
|
+
/**
|
|
8647
|
+
* A section — a group of spaces sharing a top-level navigation entry.
|
|
8648
|
+
* Discriminated by `type: section`.
|
|
8649
|
+
*
|
|
8650
|
+
* Spaces inside a section are listed inline under `children`. A site with
|
|
8651
|
+
* sections must mark exactly one section with `default: true`.
|
|
8652
|
+
*/
|
|
8653
|
+
export interface GitSyncSiteStructureSection {
|
|
8654
|
+
/** Discriminator for a section node. */
|
|
8655
|
+
type: "section";
|
|
8656
|
+
/**
|
|
8657
|
+
* Stable identifier for this section, used as the Git Sync key. Must be
|
|
8658
|
+
* unique amongst all other sections of the site. For example:
|
|
8659
|
+
* `section-guides` or `section-1`.
|
|
8660
|
+
* @minLength 1
|
|
8661
|
+
*/
|
|
8662
|
+
key: string;
|
|
8663
|
+
/** Title of the site section */
|
|
8664
|
+
title: SiteSectionTitle;
|
|
8665
|
+
/** Localized string value with a 128 character limit, keyed by locale. Contains overrides for non-default languages only. */
|
|
8666
|
+
localizedTitle?: LocalizedString128;
|
|
8667
|
+
/** Description of the site section */
|
|
8668
|
+
description?: SiteSectionDescription;
|
|
8669
|
+
/** Localized string value with a 256 character limit, keyed by locale. Contains overrides for non-default languages only. */
|
|
8670
|
+
localizedDescription?: LocalizedString256;
|
|
8671
|
+
/** Name of the icon */
|
|
8672
|
+
icon?: Icon;
|
|
8673
|
+
/** Whether this is the default section for the site. */
|
|
8674
|
+
default?: boolean;
|
|
8675
|
+
/** Whether the section is draft and not live. */
|
|
8676
|
+
draft?: boolean;
|
|
8677
|
+
/** Path to the section on the site */
|
|
8678
|
+
path: SiteSectionPath;
|
|
8679
|
+
/** Expression to evaluate */
|
|
8680
|
+
condition?: Expression;
|
|
8681
|
+
/** Space nodes nested under this section. */
|
|
8682
|
+
children?: GitSyncSiteStructureSpace[];
|
|
8683
|
+
}
|
|
8684
|
+
/**
|
|
8685
|
+
* A single node in a Git Sync site structure tree — a section group, a
|
|
8686
|
+
* section, or a space, discriminated by `type`.
|
|
8687
|
+
*/
|
|
8688
|
+
export type GitSyncSiteStructureNode = GitSyncSiteStructureSectionGroup | GitSyncSiteStructureSection | GitSyncSiteStructureSpace;
|
|
8689
|
+
/**
|
|
8690
|
+
* Hierarchical structure of a site in a Git Sync YAML. Each entry is one of
|
|
8691
|
+
* three node types: a section group, a section, or a space.
|
|
8692
|
+
*/
|
|
8693
|
+
export type GitSyncSiteStructure = GitSyncSiteStructureNode[];
|
|
8694
|
+
/**
|
|
8695
|
+
* Reserved repository-relative path to the font file:
|
|
8696
|
+
* `.gitbook/assets/<key>-<weight>.<ext>`, where `<key>` is the parent
|
|
8697
|
+
* font definition's `key`, `<weight>` is this face's `weight`, and
|
|
8698
|
+
* `<ext>` is one of `woff2`, `woff`.
|
|
8699
|
+
*
|
|
8700
|
+
* For example, a font with `key: brand` and a `700` face is read from
|
|
8701
|
+
* `.gitbook/assets/brand-700.woff2`. Any other path is rejected.
|
|
8702
|
+
* @minLength 1
|
|
8703
|
+
*/
|
|
8704
|
+
export type GitSyncSiteCustomizationFontSource = string;
|
|
8705
|
+
/**
|
|
8706
|
+
* Custom font definition for a `site.fonts[]` entry. Referenced from
|
|
8707
|
+
* `customization.styling.font` or `customization.styling.monospaceFont` via
|
|
8708
|
+
* its `key`.
|
|
8709
|
+
*
|
|
8710
|
+
* Rules enforced on a definition:
|
|
8711
|
+
* - It must declare exactly one face for the `400` weight and one for the
|
|
8712
|
+
* `700` weight; the `600` weight is optional. No other weights are allowed,
|
|
8713
|
+
* and a weight may not be declared more than once.
|
|
8714
|
+
* - Each face has a single source file whose `url` is the reserved repository
|
|
8715
|
+
* asset path `.gitbook/assets/<key>-<weight>.<ext>` (`<ext>` is `woff2` or
|
|
8716
|
+
* `woff`). For example a definition with `key: brand` is read from
|
|
8717
|
+
* `.gitbook/assets/brand-400.woff2` and `.gitbook/assets/brand-700.woff2`.
|
|
8718
|
+
*/
|
|
8719
|
+
export interface GitSyncSiteCustomizationFontDefinition {
|
|
8720
|
+
/**
|
|
8721
|
+
* Stable identifier referenced from `styling.font` /
|
|
8722
|
+
* `styling.monospaceFont`, and used as the prefix of each face's
|
|
8723
|
+
* reserved asset path (`.gitbook/assets/<key>-<weight>.<ext>`).
|
|
8724
|
+
* @minLength 1
|
|
8725
|
+
* @pattern ^[A-Za-z0-9][A-Za-z0-9_-]*$
|
|
8726
|
+
*/
|
|
8727
|
+
key: string;
|
|
8728
|
+
/** The human-readable font-family name used in CSS (e.g., "Open Sans", "Playfair Display"). */
|
|
8729
|
+
fontFamily: FontFamily;
|
|
8730
|
+
/**
|
|
8731
|
+
* Font-face declarations keyed by weight, each specifying its single
|
|
8732
|
+
* source file. The `400` and `700` weights are required; `600` is
|
|
8733
|
+
* optional.
|
|
8734
|
+
*/
|
|
8735
|
+
fontFaces: {
|
|
8736
|
+
/**
|
|
8737
|
+
* Reserved repository-relative path to the font file:
|
|
8738
|
+
* `.gitbook/assets/<key>-<weight>.<ext>`, where `<key>` is the parent
|
|
8739
|
+
* font definition's `key`, `<weight>` is this face's `weight`, and
|
|
8740
|
+
* `<ext>` is one of `woff2`, `woff`.
|
|
8741
|
+
*
|
|
8742
|
+
* For example, a font with `key: brand` and a `700` face is read from
|
|
8743
|
+
* `.gitbook/assets/brand-700.woff2`. Any other path is rejected.
|
|
8744
|
+
*/
|
|
8745
|
+
"400": GitSyncSiteCustomizationFontSource;
|
|
8746
|
+
/**
|
|
8747
|
+
* Reserved repository-relative path to the font file:
|
|
8748
|
+
* `.gitbook/assets/<key>-<weight>.<ext>`, where `<key>` is the parent
|
|
8749
|
+
* font definition's `key`, `<weight>` is this face's `weight`, and
|
|
8750
|
+
* `<ext>` is one of `woff2`, `woff`.
|
|
8751
|
+
*
|
|
8752
|
+
* For example, a font with `key: brand` and a `700` face is read from
|
|
8753
|
+
* `.gitbook/assets/brand-700.woff2`. Any other path is rejected.
|
|
8754
|
+
*/
|
|
8755
|
+
"600"?: GitSyncSiteCustomizationFontSource;
|
|
8756
|
+
/**
|
|
8757
|
+
* Reserved repository-relative path to the font file:
|
|
8758
|
+
* `.gitbook/assets/<key>-<weight>.<ext>`, where `<key>` is the parent
|
|
8759
|
+
* font definition's `key`, `<weight>` is this face's `weight`, and
|
|
8760
|
+
* `<ext>` is one of `woff2`, `woff`.
|
|
8761
|
+
*
|
|
8762
|
+
* For example, a font with `key: brand` and a `700` face is read from
|
|
8763
|
+
* `.gitbook/assets/brand-700.woff2`. Any other path is rejected.
|
|
8764
|
+
*/
|
|
8765
|
+
"700": GitSyncSiteCustomizationFontSource;
|
|
8766
|
+
};
|
|
8767
|
+
}
|
|
8768
|
+
/** Themed color (light + dark). */
|
|
8769
|
+
export interface GitSyncSiteCustomizationThemedColor {
|
|
8770
|
+
light: Color;
|
|
8771
|
+
dark: Color;
|
|
8772
|
+
}
|
|
8773
|
+
/** Tint configuration. */
|
|
8774
|
+
export interface GitSyncSiteCustomizationTint {
|
|
8775
|
+
/** Themed color (light + dark). */
|
|
8776
|
+
color: GitSyncSiteCustomizationThemedColor;
|
|
8777
|
+
}
|
|
8778
|
+
/** Reference to a custom font defined under `site.fonts[]`. Matches by `key`. */
|
|
8779
|
+
export interface GitSyncSiteCustomizationFontReference {
|
|
8780
|
+
/**
|
|
8781
|
+
* Matches the `key` of an entry in `site.fonts[]`.
|
|
8782
|
+
* @minLength 1
|
|
8783
|
+
*/
|
|
8784
|
+
key: string;
|
|
8785
|
+
}
|
|
8786
|
+
/**
|
|
8787
|
+
* Body font for the site. Either one of the built-in `CustomizationDefaultFont`
|
|
8788
|
+
* values, or a reference to a custom font declared in `site.fonts[]`.
|
|
8789
|
+
*/
|
|
8790
|
+
export type GitSyncSiteCustomizationFont = CustomizationDefaultFont | GitSyncSiteCustomizationFontReference;
|
|
8791
|
+
/**
|
|
8792
|
+
* Monospace font for the site. Either one of the built-in
|
|
8793
|
+
* `CustomizationDefaultMonospaceFont` values, or a reference to a custom font
|
|
8794
|
+
* declared in `site.fonts[]`.
|
|
8795
|
+
*/
|
|
8796
|
+
export type GitSyncSiteCustomizationMonospaceFont = CustomizationDefaultMonospaceFont | GitSyncSiteCustomizationFontReference;
|
|
8797
|
+
/** Themed code theme (light + dark). */
|
|
8798
|
+
export interface GitSyncSiteCustomizationThemedCodeTheme {
|
|
8799
|
+
light: CustomizationCodeTheme;
|
|
8800
|
+
dark: CustomizationCodeTheme;
|
|
8801
|
+
}
|
|
8802
|
+
/** Code-block syntax-highlighting themes — one for default code blocks and one for OpenAPI request/response samples. */
|
|
8803
|
+
export interface GitSyncSiteCustomizationCodeThemes {
|
|
8804
|
+
/** Themed code theme (light + dark). */
|
|
8805
|
+
default: GitSyncSiteCustomizationThemedCodeTheme;
|
|
8806
|
+
/** Themed code theme (light + dark). */
|
|
8807
|
+
openapi: GitSyncSiteCustomizationThemedCodeTheme;
|
|
8808
|
+
}
|
|
8809
|
+
/** Sidebar style settings. */
|
|
8810
|
+
export interface GitSyncSiteCustomizationSidebar {
|
|
8811
|
+
/**
|
|
8812
|
+
* - `default`: No background, content sits directly against sidebar edge.
|
|
8813
|
+
* - `filled`: Muted background color that extends to sidebar edges.
|
|
8814
|
+
*/
|
|
8815
|
+
background: CustomizationSidebarBackgroundStyle;
|
|
8816
|
+
/**
|
|
8817
|
+
* - `default`: Simple list items without special styling, groups are inset with a line.
|
|
8818
|
+
* - `pill`: Rounded capsule shape around selected/active items.
|
|
8819
|
+
* - `line`: Continuous line next to all items, with colored line part for selected/active items.
|
|
8820
|
+
*/
|
|
8821
|
+
list: CustomizationSidebarListStyle;
|
|
8822
|
+
}
|
|
8823
|
+
/** Styling settings. */
|
|
8824
|
+
export interface GitSyncSiteCustomizationStyling {
|
|
8825
|
+
/**
|
|
8826
|
+
* The theme to apply to the site. Supercedes the old header preset themes.
|
|
8827
|
+
* - `clean`: Modern theme featuring translucency and minimally-styled elements.
|
|
8828
|
+
* - `muted`: Sophisticated theme with decreased contrast between elements.
|
|
8829
|
+
* - `bold`: High-impact theme with prominent colors and strong contrasts.
|
|
8830
|
+
* - `gradient`: Trendy theme featuring colorful gradients and splashes of color.
|
|
8831
|
+
*/
|
|
8832
|
+
theme?: CustomizationTheme;
|
|
8833
|
+
/** Themed color (light + dark). */
|
|
8834
|
+
primaryColor?: GitSyncSiteCustomizationThemedColor;
|
|
8835
|
+
/** Tint configuration. */
|
|
8836
|
+
tint?: GitSyncSiteCustomizationTint;
|
|
8837
|
+
/** Themed color (light + dark). */
|
|
8838
|
+
infoColor?: GitSyncSiteCustomizationThemedColor;
|
|
8839
|
+
/** Themed color (light + dark). */
|
|
8840
|
+
successColor?: GitSyncSiteCustomizationThemedColor;
|
|
8841
|
+
/** Themed color (light + dark). */
|
|
8842
|
+
warningColor?: GitSyncSiteCustomizationThemedColor;
|
|
8843
|
+
/** Themed color (light + dark). */
|
|
8844
|
+
dangerColor?: GitSyncSiteCustomizationThemedColor;
|
|
8845
|
+
corners?: CustomizationCorners;
|
|
8846
|
+
/**
|
|
8847
|
+
* The degree of visual depth (through shadows, gradients and elevation effects) of elements on the site.
|
|
8848
|
+
* - `subtle`: Subtle shadows and minimal elevation.
|
|
8849
|
+
* - `flat`: Flat elements, no shadows and no elevation.
|
|
8850
|
+
*/
|
|
8851
|
+
depth?: CustomizationDepth;
|
|
8852
|
+
/**
|
|
8853
|
+
* The style used for regular links in the main content, header and footer. Sidebar items are styled separately.
|
|
8854
|
+
* - `default`: Links are colored in the primary color and feature an underline in the same color.
|
|
8855
|
+
* - `accent`: Links are colored the same as body text and feature an underline in the primary color.
|
|
8856
|
+
*/
|
|
8857
|
+
links?: CustomizationLinksStyle;
|
|
8858
|
+
/**
|
|
8859
|
+
* Body font for the site. Either one of the built-in `CustomizationDefaultFont`
|
|
8860
|
+
* values, or a reference to a custom font declared in `site.fonts[]`.
|
|
8861
|
+
*/
|
|
8862
|
+
font?: GitSyncSiteCustomizationFont;
|
|
8863
|
+
/**
|
|
8864
|
+
* Monospace font for the site. Either one of the built-in
|
|
8865
|
+
* `CustomizationDefaultMonospaceFont` values, or a reference to a custom font
|
|
8866
|
+
* declared in `site.fonts[]`.
|
|
8867
|
+
*/
|
|
8868
|
+
monospaceFont?: GitSyncSiteCustomizationMonospaceFont;
|
|
8869
|
+
icons?: CustomizationIconsStyle;
|
|
8870
|
+
/** Code-block syntax-highlighting themes — one for default code blocks and one for OpenAPI request/response samples. */
|
|
8871
|
+
codeTheme?: GitSyncSiteCustomizationCodeThemes;
|
|
8872
|
+
/** Sidebar style settings. */
|
|
8873
|
+
sidebar?: GitSyncSiteCustomizationSidebar;
|
|
8874
|
+
/**
|
|
8875
|
+
* The style of the search button.
|
|
8876
|
+
* - `prominent`: large search bar in the middle of the header, with less room for other header items,
|
|
8877
|
+
* - `subtle`: small search bar in the corner of the header, with more room for other header items.
|
|
8878
|
+
*/
|
|
8879
|
+
search?: CustomizationSearchStyle;
|
|
8880
|
+
}
|
|
8881
|
+
/**
|
|
8882
|
+
* Repository-relative path to an asset in a site Git Sync, e.g.
|
|
8883
|
+
* `.gitbook/assets/header-logo-light.svg`. Absolute URLs are not accepted
|
|
8884
|
+
* here — Git Sync assets must live in the synced repository under
|
|
8885
|
+
* `.gitbook/assets/`.
|
|
8886
|
+
*
|
|
8887
|
+
* This is the shared base type and only validates the `.gitbook/assets/`
|
|
8888
|
+
* prefix. Each field that uses it additionally reserves a specific filename
|
|
8889
|
+
* and set of allowed extensions (e.g. the header logo must be
|
|
8890
|
+
* `header-logo-light.<ext>` / `header-logo-dark.<ext>`); see the description
|
|
8891
|
+
* on the consuming field for the exact reserved path.
|
|
8892
|
+
* @maxLength 2048
|
|
8893
|
+
* @pattern ^\.gitbook/assets/.+
|
|
8894
|
+
*/
|
|
8895
|
+
export type GitSyncSiteCustomizationAssetPath = string;
|
|
8896
|
+
/**
|
|
8897
|
+
* Light/dark variants of a Git Sync repository asset path. Used for logos and
|
|
8898
|
+
* favicons that switch with the active theme. Both variants are required.
|
|
8899
|
+
*
|
|
8900
|
+
* Each consuming field reserves the exact light/dark filenames and allowed
|
|
8901
|
+
* extensions (e.g. header logo → `header-logo-light.<ext>` /
|
|
8902
|
+
* `header-logo-dark.<ext>`); see the description on the consuming field.
|
|
8903
|
+
*/
|
|
8904
|
+
export interface GitSyncSiteCustomizationThemedAssetPath {
|
|
8905
|
+
/**
|
|
8906
|
+
* Repository-relative path to an asset in a site Git Sync, e.g.
|
|
8907
|
+
* `.gitbook/assets/header-logo-light.svg`. Absolute URLs are not accepted
|
|
8908
|
+
* here — Git Sync assets must live in the synced repository under
|
|
8909
|
+
* `.gitbook/assets/`.
|
|
8910
|
+
*
|
|
8911
|
+
* This is the shared base type and only validates the `.gitbook/assets/`
|
|
8912
|
+
* prefix. Each field that uses it additionally reserves a specific filename
|
|
8913
|
+
* and set of allowed extensions (e.g. the header logo must be
|
|
8914
|
+
* `header-logo-light.<ext>` / `header-logo-dark.<ext>`); see the description
|
|
8915
|
+
* on the consuming field for the exact reserved path.
|
|
8916
|
+
*/
|
|
8917
|
+
light: GitSyncSiteCustomizationAssetPath;
|
|
8918
|
+
/**
|
|
8919
|
+
* Repository-relative path to an asset in a site Git Sync, e.g.
|
|
8920
|
+
* `.gitbook/assets/header-logo-light.svg`. Absolute URLs are not accepted
|
|
8921
|
+
* here — Git Sync assets must live in the synced repository under
|
|
8922
|
+
* `.gitbook/assets/`.
|
|
8923
|
+
*
|
|
8924
|
+
* This is the shared base type and only validates the `.gitbook/assets/`
|
|
8925
|
+
* prefix. Each field that uses it additionally reserves a specific filename
|
|
8926
|
+
* and set of allowed extensions (e.g. the header logo must be
|
|
8927
|
+
* `header-logo-light.<ext>` / `header-logo-dark.<ext>`); see the description
|
|
8928
|
+
* on the consuming field for the exact reserved path.
|
|
8929
|
+
*/
|
|
8930
|
+
dark: GitSyncSiteCustomizationAssetPath;
|
|
8931
|
+
}
|
|
8932
|
+
/** Favicon for the published site. The `icon` variant references a repository asset path; the `emoji` variant uses a single emoji character; */
|
|
8933
|
+
export type GitSyncSiteCustomizationFavicon = {
|
|
8934
|
+
/**
|
|
8935
|
+
* Themed favicon. Each variant must use its reserved repository
|
|
8936
|
+
* asset path — light: `.gitbook/assets/favicon-light.<ext>`,
|
|
8937
|
+
* dark: `.gitbook/assets/favicon-dark.<ext>`, where `<ext>` is
|
|
8938
|
+
* the image's file extension (e.g. `png`, `svg`, `ico`). Any
|
|
8939
|
+
* other filename is rejected.
|
|
8940
|
+
*/
|
|
8941
|
+
icon: GitSyncSiteCustomizationThemedAssetPath;
|
|
8942
|
+
} | {
|
|
8943
|
+
/** Unicode codepoint or character of the emoji */
|
|
8944
|
+
emoji: Emoji;
|
|
8945
|
+
};
|
|
8946
|
+
/**
|
|
8947
|
+
* Link destination, written as a path-string in YAML. Same format as
|
|
8948
|
+
* markdown content links, e.g. `https://example.com`, `/pages/<id>`,
|
|
8949
|
+
* `/spaces/<id>/pages/<id>`, `#anchor`, `/files/<id>`, `/spaces/<id>`.
|
|
8950
|
+
*/
|
|
8951
|
+
export type GitSyncSiteCustomizationContentLinkTo = string;
|
|
8952
|
+
/** A label plus a destination, used inside header items, footer groups, and announcements. */
|
|
8953
|
+
export interface GitSyncSiteCustomizationContentLink {
|
|
8954
|
+
title: CustomizationContentLinkTitle;
|
|
8955
|
+
/** Localized overrides for the link title, keyed by locale. */
|
|
8956
|
+
localizedTitle?: LocalizedString64;
|
|
8957
|
+
/**
|
|
8958
|
+
* Link destination, written as a path-string in YAML. Same format as
|
|
8959
|
+
* markdown content links, e.g. `https://example.com`, `/pages/<id>`,
|
|
8960
|
+
* `/spaces/<id>/pages/<id>`, `#anchor`, `/files/<id>`, `/spaces/<id>`.
|
|
8961
|
+
*/
|
|
8962
|
+
to: GitSyncSiteCustomizationContentLinkTo;
|
|
8963
|
+
}
|
|
8964
|
+
/** A single item in the published site's top navigation bar. */
|
|
8965
|
+
export interface GitSyncSiteCustomizationHeaderItem {
|
|
8966
|
+
title: string;
|
|
8967
|
+
/** Localized overrides for the header item title, keyed by locale. */
|
|
8968
|
+
localizedTitle?: LocalizedString;
|
|
8969
|
+
style?: "link" | "button-primary" | "button-secondary";
|
|
8970
|
+
/**
|
|
8971
|
+
* Header item destination. Use `null` for items that act as a
|
|
8972
|
+
* dropdown root without a link of their own.
|
|
8973
|
+
*/
|
|
8974
|
+
to: GitSyncSiteCustomizationContentLinkTo | null;
|
|
8975
|
+
/** Sub-links shown as a dropdown under this header item. Empty array means no dropdown. */
|
|
8976
|
+
links: GitSyncSiteCustomizationContentLink[];
|
|
8977
|
+
/** Conditional expression evaluated to decide whether the item is shown to the visitor. */
|
|
8978
|
+
condition?: Expression;
|
|
8979
|
+
}
|
|
8980
|
+
/** Header settings. */
|
|
8981
|
+
export interface GitSyncSiteCustomizationHeader {
|
|
8982
|
+
/**
|
|
8983
|
+
* Themed header logo. Each variant must use its reserved repository
|
|
8984
|
+
* asset path — light: `.gitbook/assets/header-logo-light.<ext>`, dark:
|
|
8985
|
+
* `.gitbook/assets/header-logo-dark.<ext>`, where `<ext>` is the
|
|
8986
|
+
* image's file extension (e.g. `png`, `svg`). Any other filename is
|
|
8987
|
+
* rejected.
|
|
8988
|
+
*/
|
|
8989
|
+
logo?: GitSyncSiteCustomizationThemedAssetPath;
|
|
8990
|
+
/**
|
|
8991
|
+
* Link destination, written as a path-string in YAML. Same format as
|
|
8992
|
+
* markdown content links, e.g. `https://example.com`, `/pages/<id>`,
|
|
8993
|
+
* `/spaces/<id>/pages/<id>`, `#anchor`, `/files/<id>`, `/spaces/<id>`.
|
|
8994
|
+
*/
|
|
8995
|
+
primaryLink?: GitSyncSiteCustomizationContentLinkTo;
|
|
8996
|
+
links?: GitSyncSiteCustomizationHeaderItem[];
|
|
8997
|
+
}
|
|
8998
|
+
/** A group of links shown in the published site's footer. */
|
|
8999
|
+
export interface GitSyncSiteCustomizationFooterGroup {
|
|
9000
|
+
title: string;
|
|
9001
|
+
/** Localized overrides for the footer group title, keyed by locale. */
|
|
9002
|
+
localizedTitle?: LocalizedString;
|
|
9003
|
+
links: GitSyncSiteCustomizationContentLink[];
|
|
9004
|
+
}
|
|
9005
|
+
/** Footer settings. */
|
|
9006
|
+
export interface GitSyncSiteCustomizationFooter {
|
|
9007
|
+
/**
|
|
9008
|
+
* Themed footer logo. Each variant must use its reserved repository
|
|
9009
|
+
* asset path — light: `.gitbook/assets/footer-logo-light.<ext>`, dark:
|
|
9010
|
+
* `.gitbook/assets/footer-logo-dark.<ext>`, where `<ext>` is the
|
|
9011
|
+
* image's file extension (e.g. `png`, `svg`). Any other filename is
|
|
9012
|
+
* rejected.
|
|
9013
|
+
*/
|
|
9014
|
+
logo?: GitSyncSiteCustomizationThemedAssetPath;
|
|
9015
|
+
groups?: GitSyncSiteCustomizationFooterGroup[];
|
|
9016
|
+
/** @maxLength 300 */
|
|
9017
|
+
copyright?: string;
|
|
9018
|
+
}
|
|
9019
|
+
/** Announcement banner shown above the published site. */
|
|
9020
|
+
export interface GitSyncSiteCustomizationAnnouncement {
|
|
9021
|
+
/** Whether to show the site's announcement. */
|
|
9022
|
+
enabled: boolean;
|
|
9023
|
+
/** The text content of the announcement. */
|
|
9024
|
+
message: CustomizationAnnouncementMessage;
|
|
9025
|
+
/** Localized overrides for the announcement message, keyed by locale. */
|
|
9026
|
+
localizedMessage?: LocalizedString128;
|
|
9027
|
+
/** The content or URL the announcement links to when clicked. */
|
|
9028
|
+
link?: GitSyncSiteCustomizationContentLink;
|
|
9029
|
+
/** Semantic style of the announcement banner. */
|
|
9030
|
+
style: "info" | "warning" | "danger" | "success";
|
|
9031
|
+
}
|
|
9032
|
+
/** Dark/light theme mode settings. */
|
|
9033
|
+
export interface GitSyncSiteCustomizationThemeModes {
|
|
9034
|
+
default: CustomizationDefaultThemeMode;
|
|
9035
|
+
/** Whether readers can switch between dark and light mode. */
|
|
9036
|
+
toggeable: boolean;
|
|
9037
|
+
}
|
|
9038
|
+
/** Reader feedback settings. */
|
|
9039
|
+
export interface GitSyncSiteCustomizationFeedback {
|
|
9040
|
+
/** Whether reader feedback gathering is enabled. */
|
|
9041
|
+
enabled: boolean;
|
|
9042
|
+
}
|
|
9043
|
+
/** AI assistant settings. */
|
|
9044
|
+
export interface GitSyncSiteCustomizationAI {
|
|
9045
|
+
mode: CustomizationAIMode;
|
|
9046
|
+
/** Suggested questions to display at the start of the chosen AI mode. */
|
|
9047
|
+
suggestions?: CustomizationSuggestedQuestions;
|
|
9048
|
+
}
|
|
9049
|
+
/**
|
|
9050
|
+
* Ordered page-level action buttons exposed in the published site's page menu.
|
|
9051
|
+
* @uniqueItems true
|
|
9052
|
+
*/
|
|
9053
|
+
export type GitSyncSiteCustomizationPageActions = CustomizationPageActionType[];
|
|
9054
|
+
/** External link behavior. */
|
|
9055
|
+
export interface GitSyncSiteCustomizationExternalLinks {
|
|
9056
|
+
/**
|
|
9057
|
+
* How external links should open when clicked.
|
|
9058
|
+
* - `self`: External links open in the current tab.
|
|
9059
|
+
* - `blank`: External links open in a new browser tab.
|
|
9060
|
+
*/
|
|
9061
|
+
target: SiteExternalLinksTarget;
|
|
9062
|
+
}
|
|
9063
|
+
/** Pagination navigation settings. */
|
|
9064
|
+
export interface GitSyncSiteCustomizationPagination {
|
|
9065
|
+
/** Whether the prev/next pagination navigation is shown on pages. */
|
|
9066
|
+
enabled: boolean;
|
|
9067
|
+
}
|
|
9068
|
+
/** Privacy policy link shown on the published site. */
|
|
9069
|
+
export interface GitSyncSiteCustomizationPrivacyPolicy {
|
|
9070
|
+
url?: URL;
|
|
9071
|
+
}
|
|
9072
|
+
/** Social preview asset. */
|
|
9073
|
+
export interface GitSyncSiteCustomizationSocialPreview {
|
|
9074
|
+
/**
|
|
9075
|
+
* Reserved repository asset path for the social preview image:
|
|
9076
|
+
* `.gitbook/assets/social-preview.<ext>`, where `<ext>` is the
|
|
9077
|
+
* image's file extension (e.g. `png`, `jpg`). Any other filename is
|
|
9078
|
+
* rejected.
|
|
9079
|
+
*/
|
|
9080
|
+
url?: GitSyncSiteCustomizationAssetPath;
|
|
9081
|
+
}
|
|
9082
|
+
/** A single social account entry. */
|
|
9083
|
+
export interface GitSyncSiteCustomizationSocialAccount {
|
|
9084
|
+
/** The platform of the social handle. */
|
|
9085
|
+
platform: SiteSocialAccountPlatform;
|
|
9086
|
+
/** A handle on a social platform, without prefixes like the @ symbol. */
|
|
9087
|
+
handle: SiteSocialAccountHandle;
|
|
9088
|
+
display: {
|
|
9089
|
+
footer: boolean;
|
|
9090
|
+
header: boolean;
|
|
9091
|
+
};
|
|
9092
|
+
}
|
|
9093
|
+
/** Visitor insights settings. */
|
|
9094
|
+
export interface GitSyncSiteCustomizationInsights {
|
|
9095
|
+
/** Whether GitBook identifies visitors on the site using a cookie. */
|
|
9096
|
+
trackingCookie: boolean;
|
|
9097
|
+
}
|
|
9098
|
+
/**
|
|
9099
|
+
* Customization settings for the published site, authored in `docs.yaml`.
|
|
9100
|
+
*
|
|
9101
|
+
* Every top-level field is optional — a Git Sync YAML is a **sparse override** of
|
|
9102
|
+
* the live customization. Fields you don't include stay at whatever the site
|
|
9103
|
+
* has as default.
|
|
9104
|
+
*
|
|
9105
|
+
* Custom fonts referenced from `styling.font` / `styling.monospaceFont` must
|
|
9106
|
+
* have a matching definition under `site.fonts[]`.
|
|
9107
|
+
*/
|
|
9108
|
+
export interface GitSyncSiteCustomization {
|
|
9109
|
+
/** Title to use for the published site. If omitted, falls back to the default site title. */
|
|
9110
|
+
publishedTitle?: SiteTitle;
|
|
9111
|
+
/** Localized titles for the published site, keyed by locale. */
|
|
9112
|
+
localizedPublishedTitles?: LocalizedString128;
|
|
9113
|
+
/** Styling settings. */
|
|
9114
|
+
styling?: GitSyncSiteCustomizationStyling;
|
|
9115
|
+
/** Favicon for the published site. The `icon` variant references a repository asset path; the `emoji` variant uses a single emoji character; */
|
|
9116
|
+
favicon?: GitSyncSiteCustomizationFavicon;
|
|
9117
|
+
/** Header settings. */
|
|
9118
|
+
header?: GitSyncSiteCustomizationHeader;
|
|
9119
|
+
/** Footer settings. */
|
|
9120
|
+
footer?: GitSyncSiteCustomizationFooter;
|
|
9121
|
+
/** Announcement banner shown above the published site. */
|
|
9122
|
+
announcement?: GitSyncSiteCustomizationAnnouncement;
|
|
9123
|
+
/** Dark/light theme mode settings. */
|
|
9124
|
+
themeModes?: GitSyncSiteCustomizationThemeModes;
|
|
9125
|
+
/** Reader feedback settings. */
|
|
9126
|
+
feedback?: GitSyncSiteCustomizationFeedback;
|
|
9127
|
+
/** AI assistant settings. */
|
|
9128
|
+
ai?: GitSyncSiteCustomizationAI;
|
|
9129
|
+
/** Ordered page-level action buttons exposed in the published site's page menu. */
|
|
9130
|
+
pageActions?: GitSyncSiteCustomizationPageActions;
|
|
9131
|
+
/** External link behavior. */
|
|
9132
|
+
externalLinks?: GitSyncSiteCustomizationExternalLinks;
|
|
9133
|
+
/** Pagination navigation settings. */
|
|
9134
|
+
pagination?: GitSyncSiteCustomizationPagination;
|
|
9135
|
+
/** Privacy policy link shown on the published site. */
|
|
9136
|
+
privacyPolicy?: GitSyncSiteCustomizationPrivacyPolicy;
|
|
9137
|
+
/** Social preview asset. */
|
|
9138
|
+
socialPreview?: GitSyncSiteCustomizationSocialPreview;
|
|
9139
|
+
/**
|
|
9140
|
+
* Social accounts to surface on the site.
|
|
9141
|
+
* @maxItems 10
|
|
9142
|
+
*/
|
|
9143
|
+
socialAccounts?: GitSyncSiteCustomizationSocialAccount[];
|
|
9144
|
+
/** Visitor insights settings. */
|
|
9145
|
+
insights?: GitSyncSiteCustomizationInsights;
|
|
9146
|
+
}
|
|
9147
|
+
/**
|
|
9148
|
+
* Schema for a site `docs.yaml` file — the canonical contract for what
|
|
9149
|
+
* can be authored in Git Sync to drive a site's customization and structure.
|
|
9150
|
+
*/
|
|
9151
|
+
export interface GitSyncSiteConfig {
|
|
9152
|
+
/**
|
|
9153
|
+
* Reserved for future use. When a breaking schema change ships, this
|
|
9154
|
+
* field lets the parser branch on the version; absence means v1.
|
|
9155
|
+
* @default 1
|
|
9156
|
+
*/
|
|
9157
|
+
version?: 1;
|
|
9158
|
+
site: {
|
|
9159
|
+
/**
|
|
9160
|
+
* Display title for the site.
|
|
9161
|
+
* @minLength 1
|
|
9162
|
+
*/
|
|
9163
|
+
title: string;
|
|
9164
|
+
/**
|
|
9165
|
+
* Hierarchical structure of a site in a Git Sync YAML. Each entry is one of
|
|
9166
|
+
* three node types: a section group, a section, or a space.
|
|
9167
|
+
*/
|
|
9168
|
+
structure: GitSyncSiteStructure;
|
|
9169
|
+
/** Custom font definitions referenced from `site.customization.styling`. */
|
|
9170
|
+
fonts?: GitSyncSiteCustomizationFontDefinition[];
|
|
9171
|
+
/**
|
|
9172
|
+
* Customization settings for the published site, authored in `docs.yaml`.
|
|
9173
|
+
*
|
|
9174
|
+
* Every top-level field is optional — a Git Sync YAML is a **sparse override** of
|
|
9175
|
+
* the live customization. Fields you don't include stay at whatever the site
|
|
9176
|
+
* has as default.
|
|
9177
|
+
*
|
|
9178
|
+
* Custom fonts referenced from `styling.font` / `styling.monospaceFont` must
|
|
9179
|
+
* have a matching definition under `site.fonts[]`.
|
|
9180
|
+
*/
|
|
9181
|
+
customization?: GitSyncSiteCustomization;
|
|
9182
|
+
};
|
|
9183
|
+
}
|
|
8497
9184
|
export type IntegrationEnvironmentSpaceInstallation = IntegrationContentInstallationBase & {
|
|
8498
9185
|
/** The space the integration is installed on. */
|
|
8499
9186
|
space: string;
|
|
@@ -9001,12 +9688,21 @@ export interface AgentStreamMessageResponse {
|
|
|
9001
9688
|
type: "message_response";
|
|
9002
9689
|
response: AIStreamResponse;
|
|
9003
9690
|
}
|
|
9691
|
+
/** Describes what the agent is currently doing while processing, used to display a live activity indicator in the conversation. */
|
|
9692
|
+
export interface AgentActivity {
|
|
9693
|
+
/** The kind of activity the agent is currently performing. `thinking` while it reasons or decides on a next action, `tool` while it runs a tool, and `responding` while it writes its answer. */
|
|
9694
|
+
type: "thinking" | "tool" | "responding";
|
|
9695
|
+
/** When `type` is `tool`, the name of the tool being called (matches `AIToolCall.tool`). */
|
|
9696
|
+
tool?: string;
|
|
9697
|
+
}
|
|
9004
9698
|
export interface AgentState {
|
|
9005
9699
|
status: AgentStatus;
|
|
9006
9700
|
/** List of response suggestions for the user to select from. */
|
|
9007
9701
|
suggestions: string[];
|
|
9008
9702
|
/** List of messages sent by the users queued to processed. */
|
|
9009
9703
|
queuedMessages: AIMessageInput[];
|
|
9704
|
+
/** What the agent is currently doing. Only set while the agent is processing. */
|
|
9705
|
+
activity?: AgentActivity;
|
|
9010
9706
|
}
|
|
9011
9707
|
/** Payload emitted by the agent with its current state. */
|
|
9012
9708
|
export interface AgentStreamState {
|
|
@@ -10120,6 +10816,50 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10120
10816
|
* @secure
|
|
10121
10817
|
*/
|
|
10122
10818
|
removeRequestedReviewerFromChangeRequest: (spaceId: EntityId, changeRequestId: EntityId, userId: string, params?: RequestParams) => Promise<HttpResponse<void, any>>;
|
|
10819
|
+
/**
|
|
10820
|
+
* No description
|
|
10821
|
+
*
|
|
10822
|
+
* @tags change-request-conversations
|
|
10823
|
+
* @name ListChangeRequestConversations
|
|
10824
|
+
* @summary List the agent conversations of a change request
|
|
10825
|
+
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/conversations
|
|
10826
|
+
* @secure
|
|
10827
|
+
*/
|
|
10828
|
+
listChangeRequestConversations: (spaceId: EntityId, changeRequestId: EntityId, query?: {
|
|
10829
|
+
/** Identifier of the page results to fetch. */
|
|
10830
|
+
page?: string;
|
|
10831
|
+
/**
|
|
10832
|
+
* The number of results per page
|
|
10833
|
+
* @min 0
|
|
10834
|
+
* @max 1000
|
|
10835
|
+
*/
|
|
10836
|
+
limit?: number;
|
|
10837
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
10838
|
+
items: AgentConversation[];
|
|
10839
|
+
}, any>>;
|
|
10840
|
+
/**
|
|
10841
|
+
* No description
|
|
10842
|
+
*
|
|
10843
|
+
* @tags change-request-conversations
|
|
10844
|
+
* @name UpdateChangeRequestConversation
|
|
10845
|
+
* @summary Update an agent conversation
|
|
10846
|
+
* @request PATCH:/spaces/{spaceId}/change-requests/{changeRequestId}/conversations/{conversationId}
|
|
10847
|
+
* @secure
|
|
10848
|
+
*/
|
|
10849
|
+
updateChangeRequestConversation: (spaceId: EntityId, changeRequestId: EntityId, conversationId: string, data: {
|
|
10850
|
+
/** The new title of the conversation. */
|
|
10851
|
+
title: string;
|
|
10852
|
+
}, params?: RequestParams) => Promise<HttpResponse<AgentConversation, any>>;
|
|
10853
|
+
/**
|
|
10854
|
+
* No description
|
|
10855
|
+
*
|
|
10856
|
+
* @tags change-request-conversations
|
|
10857
|
+
* @name DeleteChangeRequestConversation
|
|
10858
|
+
* @summary Delete an agent conversation
|
|
10859
|
+
* @request DELETE:/spaces/{spaceId}/change-requests/{changeRequestId}/conversations/{conversationId}
|
|
10860
|
+
* @secure
|
|
10861
|
+
*/
|
|
10862
|
+
deleteChangeRequestConversation: (spaceId: EntityId, changeRequestId: EntityId, conversationId: string, params?: RequestParams) => Promise<HttpResponse<void, any>>;
|
|
10123
10863
|
/**
|
|
10124
10864
|
* No description
|
|
10125
10865
|
*
|
|
@@ -10345,6 +11085,30 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10345
11085
|
computed?: boolean;
|
|
10346
11086
|
}, params?: RequestParams) => Promise<HttpResponse<Revision, any>>;
|
|
10347
11087
|
/**
|
|
11088
|
+
* No description
|
|
11089
|
+
*
|
|
11090
|
+
* @tags change-request-content
|
|
11091
|
+
* @name UpdateChangeRequestContent
|
|
11092
|
+
* @summary Update the content of a change request. This endpoint allows you to update the content of a change request by providing an array of changes.
|
|
11093
|
+
Each change is ran sequentially. This operation will create a single new revision in the change request, apply all changes, and then point the change request to the new revision.
|
|
11094
|
+
This endpoint will only run if all changes in the request are valid. If any change fails, the entire request will fail and no changes will be applied.
|
|
11095
|
+
* @request POST:/spaces/{spaceId}/change-requests/{changeRequestId}/content
|
|
11096
|
+
* @secure
|
|
11097
|
+
*/
|
|
11098
|
+
updateChangeRequestContent: (spaceId: EntityId, changeRequestId: EntityId, data: {
|
|
11099
|
+
/**
|
|
11100
|
+
* @maxItems 50
|
|
11101
|
+
* @minItems 1
|
|
11102
|
+
*/
|
|
11103
|
+
changes: ChangeRequestContentChange[];
|
|
11104
|
+
}, params?: RequestParams) => Promise<HttpResponse<ChangeRequest, {
|
|
11105
|
+
error: {
|
|
11106
|
+
/** @format int32 */
|
|
11107
|
+
code: 404;
|
|
11108
|
+
message: string;
|
|
11109
|
+
};
|
|
11110
|
+
}>>;
|
|
11111
|
+
/**
|
|
10348
11112
|
* No description
|
|
10349
11113
|
*
|
|
10350
11114
|
* @tags change-request-content
|
|
@@ -11811,7 +12575,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11811
12575
|
*/
|
|
11812
12576
|
queueIntegrationTask: (integrationName: string, data: {
|
|
11813
12577
|
/** Payload for the integration task */
|
|
11814
|
-
task:
|
|
12578
|
+
task: object;
|
|
11815
12579
|
/**
|
|
11816
12580
|
* Number of seconds to wait before executing the task, defaults to 0
|
|
11817
12581
|
* @min 0
|
|
@@ -12595,6 +13359,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
12595
13359
|
space?: string;
|
|
12596
13360
|
/** If defined, only change requests linked to this site topic will be returned. */
|
|
12597
13361
|
topic?: string;
|
|
13362
|
+
/** Controls whether change requests from triage are included. Pass `none` to exclude change requests from triage, or `all` to include them. Default is `none`. */
|
|
13363
|
+
finding?: "none" | "all";
|
|
12598
13364
|
/** The field to sort change requests by. Defaults to 'updatedAt'. */
|
|
12599
13365
|
orderBy?: ChangeRequestOrderBy;
|
|
12600
13366
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
@@ -13568,6 +14334,36 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
13568
14334
|
* @secure
|
|
13569
14335
|
*/
|
|
13570
14336
|
deleteSiteById: (organizationId: EntityId, siteId: string, params?: RequestParams) => Promise<HttpResponse<void, any>>;
|
|
14337
|
+
/**
|
|
14338
|
+
* No description
|
|
14339
|
+
*
|
|
14340
|
+
* @tags git
|
|
14341
|
+
* @name ListSiteGitSyncInstallations
|
|
14342
|
+
* @summary List the Git Sync installations for a site and its spaces
|
|
14343
|
+
* @request GET:/orgs/{organizationId}/sites/{siteId}/spaces/git/installations
|
|
14344
|
+
* @secure
|
|
14345
|
+
*/
|
|
14346
|
+
listSiteGitSyncInstallations: (organizationId: EntityId, siteId: string, params?: RequestParams) => Promise<HttpResponse<{
|
|
14347
|
+
items: GitSyncInstallation[];
|
|
14348
|
+
}, {
|
|
14349
|
+
error: {
|
|
14350
|
+
/** @format int32 */
|
|
14351
|
+
code: 400;
|
|
14352
|
+
message: string;
|
|
14353
|
+
};
|
|
14354
|
+
} | {
|
|
14355
|
+
error: {
|
|
14356
|
+
/** @format int32 */
|
|
14357
|
+
code: 401;
|
|
14358
|
+
message: string;
|
|
14359
|
+
};
|
|
14360
|
+
} | {
|
|
14361
|
+
error: {
|
|
14362
|
+
/** @format int32 */
|
|
14363
|
+
code: 404;
|
|
14364
|
+
message: string;
|
|
14365
|
+
};
|
|
14366
|
+
}>>;
|
|
13571
14367
|
/**
|
|
13572
14368
|
* No description
|
|
13573
14369
|
*
|
|
@@ -14170,6 +14966,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14170
14966
|
/** You may optionally provide additional information about the context of the question. This doesn't affect the scope of the search, but GitBook may use this information to provide a better answer. Generally speaking, you should provide as much context as possible. */
|
|
14171
14967
|
context?: {
|
|
14172
14968
|
siteSpaceId?: string;
|
|
14969
|
+
/**
|
|
14970
|
+
* The end goal the agent is trying to accomplish on behalf of the user. Unlike the question, which is the immediate query, the goal describes the broader task or outcome the agent is working towards. GitBook uses this to steer the answer towards what is ultimately useful for that goal.
|
|
14971
|
+
* @maxLength 1024
|
|
14972
|
+
*/
|
|
14973
|
+
goal?: string;
|
|
14173
14974
|
};
|
|
14174
14975
|
scope: SiteSearchScope;
|
|
14175
14976
|
/** Identifiers for a GitBook site session, used for analytics and adaptive content. */
|
|
@@ -14319,6 +15120,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14319
15120
|
type?: SiteFindingType;
|
|
14320
15121
|
/** Filter findings by estimated severity. */
|
|
14321
15122
|
severity?: SiteFindingSeverity;
|
|
15123
|
+
/** Filter findings that have at least one associated change request. */
|
|
15124
|
+
hasChangeRequests?: boolean;
|
|
14322
15125
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
14323
15126
|
items: SiteFinding[];
|
|
14324
15127
|
}, any>>;
|