@gitbook/api 0.180.0 → 0.182.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 +144 -37
- package/dist/constants.d.ts +6 -3
- package/dist/index.cjs +46 -16
- package/dist/index.js +40 -16
- package/package.json +1 -1
- package/spec/openapi.json +390 -108
- package/spec/openapi.yaml +262 -65
package/dist/client.d.ts
CHANGED
|
@@ -143,6 +143,14 @@ export declare enum SiteChannelStatus {
|
|
|
143
143
|
Active = "active",
|
|
144
144
|
Pending = "pending"
|
|
145
145
|
}
|
|
146
|
+
/**
|
|
147
|
+
* Transport protocol used to connect to the MCP server
|
|
148
|
+
* @default "sse"
|
|
149
|
+
*/
|
|
150
|
+
export declare enum SiteMcpServerTransport {
|
|
151
|
+
Sse = "sse",
|
|
152
|
+
Http = "http"
|
|
153
|
+
}
|
|
146
154
|
export declare enum SiteInsightsQueryRangePreset {
|
|
147
155
|
LastYear = "lastYear",
|
|
148
156
|
Last3Months = "last3Months",
|
|
@@ -274,27 +282,28 @@ export declare enum AIModel {
|
|
|
274
282
|
ReasoningMedium = "reasoning-medium",
|
|
275
283
|
ReasoningHigh = "reasoning-high"
|
|
276
284
|
}
|
|
285
|
+
/**
|
|
286
|
+
* The mode influences the response time and quality of the AI's answer. Fast mode will prioritize quicker responses with potentially less well reasoned answers and normal mode will allow for more comprehensive responses at the cost of longer response time.
|
|
287
|
+
* @default "normal"
|
|
288
|
+
*/
|
|
289
|
+
export declare enum AIMessageMode {
|
|
290
|
+
Normal = "normal",
|
|
291
|
+
Fast = "fast"
|
|
292
|
+
}
|
|
277
293
|
/** The phase of a step in a message from the AI agent. */
|
|
278
294
|
export declare enum AIMessageStepPhase {
|
|
279
295
|
Commentary = "commentary",
|
|
280
296
|
FinalAnswer = "final_answer"
|
|
281
297
|
}
|
|
298
|
+
/** Describe the state in which the steps started. */
|
|
299
|
+
export declare enum AIMessageStepStartCondition {
|
|
300
|
+
Compaction = "compaction"
|
|
301
|
+
}
|
|
282
302
|
export declare enum AIMessageRole {
|
|
283
303
|
User = "user",
|
|
284
304
|
Assistant = "assistant",
|
|
285
305
|
Developer = "developer"
|
|
286
306
|
}
|
|
287
|
-
export declare enum SiteConfigurableChannelType {
|
|
288
|
-
BuiltinSlack = "builtin:slack",
|
|
289
|
-
BuiltinDiscord = "builtin:discord",
|
|
290
|
-
BuiltinGithub = "builtin:github",
|
|
291
|
-
BuiltinLinear = "builtin:linear"
|
|
292
|
-
}
|
|
293
|
-
export declare enum SiteCoreChannelType {
|
|
294
|
-
Site = "site",
|
|
295
|
-
Embed = "embed",
|
|
296
|
-
Api = "api"
|
|
297
|
-
}
|
|
298
307
|
/** Helpfulness of the response for the end user need. */
|
|
299
308
|
export declare enum SiteQuestionAnswerHelpfulness {
|
|
300
309
|
Low = "low",
|
|
@@ -307,6 +316,17 @@ export declare enum SiteQuestionAnswerResolution {
|
|
|
307
316
|
Partially = "partially",
|
|
308
317
|
Yes = "yes"
|
|
309
318
|
}
|
|
319
|
+
export declare enum SiteConfigurableChannelType {
|
|
320
|
+
BuiltinSlack = "builtin:slack",
|
|
321
|
+
BuiltinDiscord = "builtin:discord",
|
|
322
|
+
BuiltinGithub = "builtin:github",
|
|
323
|
+
BuiltinLinear = "builtin:linear"
|
|
324
|
+
}
|
|
325
|
+
export declare enum SiteCoreChannelType {
|
|
326
|
+
Site = "site",
|
|
327
|
+
Embed = "embed",
|
|
328
|
+
Api = "api"
|
|
329
|
+
}
|
|
310
330
|
/** Relevance classification of the user question. */
|
|
311
331
|
export declare enum SiteQuestionAnswerRelevance {
|
|
312
332
|
Relevant = "relevant",
|
|
@@ -684,6 +704,7 @@ export declare enum SiteFeatureKey {
|
|
|
684
704
|
SitesAds = "sites-ads",
|
|
685
705
|
SitesAiSearch = "sites-ai-search",
|
|
686
706
|
SitesAiAssistant = "sites-ai-assistant",
|
|
707
|
+
SitesAiInsights = "sites-ai-insights",
|
|
687
708
|
SitesConnections = "sites-connections",
|
|
688
709
|
SitesChannels = "sites-channels",
|
|
689
710
|
SitesEmbed = "sites-embed",
|
|
@@ -1068,6 +1089,18 @@ export declare enum ContentVisibility {
|
|
|
1068
1089
|
export type APIChannelData = APIChannelGitSyncOperationData | APIChannelSpaceContentRefsData | APIChannelChangeRequestContentRefsData | APIChannelTranslationRunData | APIChannelImportRunData | APIChannelMutationData;
|
|
1069
1090
|
/** Channel to subscribe to for realtime updates. */
|
|
1070
1091
|
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;
|
|
1092
|
+
/** Resource targeted by a Git Sync installation. */
|
|
1093
|
+
export type GitSyncInstallationTarget = {
|
|
1094
|
+
/** Type of resource targeted by the Git Sync installation. */
|
|
1095
|
+
type: "space";
|
|
1096
|
+
/** Unique identifier of the space targeted by the Git Sync installation. */
|
|
1097
|
+
spaceId: string;
|
|
1098
|
+
} | {
|
|
1099
|
+
/** Type of resource targeted by the Git Sync installation. */
|
|
1100
|
+
type: "site";
|
|
1101
|
+
/** Unique identifier of the site targeted by the Git Sync installation. */
|
|
1102
|
+
siteId: string;
|
|
1103
|
+
};
|
|
1071
1104
|
export type PublishedContentRedirect = {
|
|
1072
1105
|
/** Type of target for the redirect */
|
|
1073
1106
|
target: "application" | "content";
|
|
@@ -2156,6 +2189,12 @@ export interface DocumentBlockIntegration {
|
|
|
2156
2189
|
fullWidth?: boolean;
|
|
2157
2190
|
};
|
|
2158
2191
|
isVoid: true;
|
|
2192
|
+
meta?: {
|
|
2193
|
+
/** A content token that can be used to authenticate requests for cross-space integration blocks. */
|
|
2194
|
+
token?: string;
|
|
2195
|
+
/** ID of the space the integration block originates from */
|
|
2196
|
+
spaceId?: string;
|
|
2197
|
+
};
|
|
2159
2198
|
}
|
|
2160
2199
|
export interface DocumentBlockExpandable {
|
|
2161
2200
|
object: "block";
|
|
@@ -2201,6 +2240,8 @@ export interface DocumentBlockTabsItem {
|
|
|
2201
2240
|
nodes: (DocumentBlocksEssentials | DocumentBlockContentRef | DocumentBlockCode | DocumentBlockEmbed | DocumentBlockFile | DocumentBlockImages | DocumentBlockDrawing | DocumentBlockHint | DocumentBlockQuote | DocumentBlockMath | DocumentBlockIntegration)[];
|
|
2202
2241
|
data: {
|
|
2203
2242
|
title?: string;
|
|
2243
|
+
/** Name of the icon */
|
|
2244
|
+
icon?: Icon;
|
|
2204
2245
|
};
|
|
2205
2246
|
meta?: {
|
|
2206
2247
|
/** Unique ID to be used in an URL for the block. */
|
|
@@ -2520,6 +2561,7 @@ export interface TranslationResult {
|
|
|
2520
2561
|
space: string;
|
|
2521
2562
|
/** ID of the revision generated by the translation */
|
|
2522
2563
|
revision: string;
|
|
2564
|
+
language: TranslationLanguage;
|
|
2523
2565
|
}
|
|
2524
2566
|
export interface ComputedContentDependencyTranslation {
|
|
2525
2567
|
ref: TranslationRef;
|
|
@@ -2599,6 +2641,8 @@ export interface RevisionPageLayoutOptions {
|
|
|
2599
2641
|
metadata: boolean;
|
|
2600
2642
|
/** Should the tags be visible on the page? */
|
|
2601
2643
|
tags: boolean;
|
|
2644
|
+
/** Should the page actions be visible on the page? */
|
|
2645
|
+
actions: boolean;
|
|
2602
2646
|
}
|
|
2603
2647
|
export interface RevisionPageDocumentCover {
|
|
2604
2648
|
/** Content reference pointing to the source image. */
|
|
@@ -2648,6 +2692,11 @@ export interface ComputedContentSourceDocumentTranslation {
|
|
|
2648
2692
|
space: string;
|
|
2649
2693
|
document: string;
|
|
2650
2694
|
};
|
|
2695
|
+
dependencies: {
|
|
2696
|
+
translation: {
|
|
2697
|
+
ref: TranslationRef;
|
|
2698
|
+
} | ComputedContentDependencyTranslation;
|
|
2699
|
+
};
|
|
2651
2700
|
}
|
|
2652
2701
|
export type ComputedContentSourceDocument = ComputedContentSourceDocumentOpenAPI | ComputedContentSourceDocumentTranslation | ComputedContentSourceIntegration;
|
|
2653
2702
|
export type RevisionPageGroup = RevisionPageBase & {
|
|
@@ -3670,6 +3719,7 @@ export interface OrganizationMember {
|
|
|
3670
3719
|
sso: boolean;
|
|
3671
3720
|
spaces: number;
|
|
3672
3721
|
teams: number;
|
|
3722
|
+
sites: number;
|
|
3673
3723
|
}
|
|
3674
3724
|
/**
|
|
3675
3725
|
* Title of the integration
|
|
@@ -4176,6 +4226,10 @@ export type FetchPublishedScriptEvent = SiteEvent & {
|
|
|
4176
4226
|
export type FetchVisitorAuthenticationEvent = SiteEvent & {
|
|
4177
4227
|
type: "fetch_visitor_authentication";
|
|
4178
4228
|
location?: string;
|
|
4229
|
+
/** Whitelisted search parameters from the visitor authentication request. */
|
|
4230
|
+
searchParams?: Record<string, string>;
|
|
4231
|
+
/** The visitor authentication action to resolve. If omitted, integrations resolve to the existing login redirect. */
|
|
4232
|
+
action?: "logout";
|
|
4179
4233
|
};
|
|
4180
4234
|
/** Common properties for ContentKit context. */
|
|
4181
4235
|
export interface ContentKitContextBase {
|
|
@@ -4442,6 +4496,7 @@ export interface Site {
|
|
|
4442
4496
|
/** Whether the site is live or not. If true, the site is accessible to the audience defined by the visibility setting. */
|
|
4443
4497
|
published: boolean;
|
|
4444
4498
|
siteSpaces: number;
|
|
4499
|
+
gitSync?: GitSyncState;
|
|
4445
4500
|
/** @format date-time */
|
|
4446
4501
|
createdAt: string;
|
|
4447
4502
|
adaptiveContent?: SiteAdaptiveContent;
|
|
@@ -4475,6 +4530,11 @@ export interface Site {
|
|
|
4475
4530
|
* @format uri
|
|
4476
4531
|
*/
|
|
4477
4532
|
login?: string;
|
|
4533
|
+
/**
|
|
4534
|
+
* URL of the logout endpoint for visitors to sign out from the site auth backend.
|
|
4535
|
+
* @format uri
|
|
4536
|
+
*/
|
|
4537
|
+
logout?: string;
|
|
4478
4538
|
};
|
|
4479
4539
|
}
|
|
4480
4540
|
export type IntegrationSiteInstallation = IntegrationContentInstallationBase & {
|
|
@@ -4999,6 +5059,12 @@ export interface MemberContentPermission {
|
|
|
4999
5059
|
permission: MemberRole;
|
|
5000
5060
|
space: Space;
|
|
5001
5061
|
}
|
|
5062
|
+
/** Permission of an organization member in a site. */
|
|
5063
|
+
export interface MemberSitePermission {
|
|
5064
|
+
site: Site;
|
|
5065
|
+
/** The role of a member in an organization, null for guests */
|
|
5066
|
+
permission: MemberRoleOrGuest;
|
|
5067
|
+
}
|
|
5002
5068
|
export interface TeamMember {
|
|
5003
5069
|
/**
|
|
5004
5070
|
* "The role of a team member.
|
|
@@ -6129,6 +6195,11 @@ export type SitePublishingAuth = (VisitorAuthCustomBackend | VisitorAuthIntegrat
|
|
|
6129
6195
|
* @format uri
|
|
6130
6196
|
*/
|
|
6131
6197
|
fallbackURL?: string;
|
|
6198
|
+
/**
|
|
6199
|
+
* URL used to log visitors out from the upstream custom auth backend.
|
|
6200
|
+
* @format uri
|
|
6201
|
+
*/
|
|
6202
|
+
logoutURL?: string;
|
|
6132
6203
|
/**
|
|
6133
6204
|
* Name of the authenticated access integration installed on the site (if any).
|
|
6134
6205
|
* It is also the one being used as VA backend when the published auth settings are configured to use "integration" as backend.
|
|
@@ -6141,6 +6212,11 @@ export type SitePublishingAuthUpdate = (VisitorAuthCustomBackend | VisitorAuthIn
|
|
|
6141
6212
|
* @format uri
|
|
6142
6213
|
*/
|
|
6143
6214
|
fallbackURL?: string | null;
|
|
6215
|
+
/**
|
|
6216
|
+
* A logout URL used to log visitors out from the upstream custom auth backend. If not provided, the logout URL will not be changed. If set to null, the logout URL will be unset.
|
|
6217
|
+
* @format uri
|
|
6218
|
+
*/
|
|
6219
|
+
logoutURL?: string | null;
|
|
6144
6220
|
};
|
|
6145
6221
|
export type SiteCustomizationSettingsInput = SiteCustomizationSettingsBase;
|
|
6146
6222
|
export type SiteSearchScope = {
|
|
@@ -6553,6 +6629,7 @@ export interface SiteTopic {
|
|
|
6553
6629
|
location: string;
|
|
6554
6630
|
};
|
|
6555
6631
|
}
|
|
6632
|
+
export type SiteChannelType = SiteCoreChannelType | SiteConfigurableChannelType;
|
|
6556
6633
|
export interface SiteQuestionAnswerSourceBase {
|
|
6557
6634
|
object: "site-question-answer-source";
|
|
6558
6635
|
/** The ID of the source. */
|
|
@@ -6891,6 +6968,8 @@ export interface Timerange {
|
|
|
6891
6968
|
export interface AIAttachmentImage {
|
|
6892
6969
|
type: "image";
|
|
6893
6970
|
url: URL;
|
|
6971
|
+
/** Name of the image file. */
|
|
6972
|
+
filename?: string;
|
|
6894
6973
|
}
|
|
6895
6974
|
export interface AIAttachmentFile {
|
|
6896
6975
|
type: "file";
|
|
@@ -6900,8 +6979,28 @@ export interface AIAttachmentFile {
|
|
|
6900
6979
|
contentType: "application/pdf";
|
|
6901
6980
|
}
|
|
6902
6981
|
export type AIAttachment = AIAttachmentImage | AIAttachmentFile;
|
|
6982
|
+
/** Context about the current user sending a message. */
|
|
6983
|
+
export interface AIMessageContext {
|
|
6984
|
+
location?: {
|
|
6985
|
+
/** ID of the current space. */
|
|
6986
|
+
spaceId: string;
|
|
6987
|
+
/** ID of the current page. */
|
|
6988
|
+
pageId: string;
|
|
6989
|
+
};
|
|
6990
|
+
/** Range of the current selection in a document. */
|
|
6991
|
+
selection?: {
|
|
6992
|
+
anchorKey: string | null;
|
|
6993
|
+
anchorOffset: number;
|
|
6994
|
+
focusKey: string | null;
|
|
6995
|
+
focusOffset: number;
|
|
6996
|
+
/** Snapshot of the selection for display. */
|
|
6997
|
+
content?: string;
|
|
6998
|
+
};
|
|
6999
|
+
}
|
|
6903
7000
|
/** A step in a message from the AI agent. */
|
|
6904
7001
|
export interface AIMessageStep {
|
|
7002
|
+
/** Describe the state in which the steps started. */
|
|
7003
|
+
startCondition?: AIMessageStepStartCondition;
|
|
6905
7004
|
content?: JSONDocument;
|
|
6906
7005
|
reasoning?: JSONDocument;
|
|
6907
7006
|
toolCalls?: AIToolCall[];
|
|
@@ -6912,6 +7011,8 @@ export interface AIMessageStep {
|
|
|
6912
7011
|
reasoning?: Timerange;
|
|
6913
7012
|
};
|
|
6914
7013
|
attachments?: AIAttachment[];
|
|
7014
|
+
/** Context about the current user sending a message. */
|
|
7015
|
+
context?: AIMessageContext;
|
|
6915
7016
|
}
|
|
6916
7017
|
/** When the agent is responding to a comment. */
|
|
6917
7018
|
export type AIMessageTask = {
|
|
@@ -7037,22 +7138,6 @@ export interface TeamSitePermissionOverride {
|
|
|
7037
7138
|
permission: MemberRoleOrGuest;
|
|
7038
7139
|
team: OrganizationTeam;
|
|
7039
7140
|
}
|
|
7040
|
-
/** Context about the current user sending a message. */
|
|
7041
|
-
export interface AIMessageContext {
|
|
7042
|
-
location?: {
|
|
7043
|
-
/** ID of the current space. */
|
|
7044
|
-
spaceId: string;
|
|
7045
|
-
/** ID of the current page. */
|
|
7046
|
-
pageId: string;
|
|
7047
|
-
};
|
|
7048
|
-
/** Range of the current selection in a document. */
|
|
7049
|
-
selection?: {
|
|
7050
|
-
anchorKey: string | null;
|
|
7051
|
-
anchorOffset: number;
|
|
7052
|
-
focusKey: string | null;
|
|
7053
|
-
focusOffset: number;
|
|
7054
|
-
};
|
|
7055
|
-
}
|
|
7056
7141
|
/** Input version of an AI message. */
|
|
7057
7142
|
export interface AIMessageInput {
|
|
7058
7143
|
role: AIMessageRole;
|
|
@@ -7060,6 +7145,8 @@ export interface AIMessageInput {
|
|
|
7060
7145
|
/** Context about the current user sending a message. */
|
|
7061
7146
|
context?: AIMessageContext;
|
|
7062
7147
|
attachments?: AIAttachment[];
|
|
7148
|
+
/** The mode influences the response time and quality of the AI's answer. Fast mode will prioritize quicker responses with potentially less well reasoned answers and normal mode will allow for more comprehensive responses at the cost of longer response time. */
|
|
7149
|
+
mode?: AIMessageMode;
|
|
7063
7150
|
}
|
|
7064
7151
|
/** Description of a tool that can be called from an AI agent. */
|
|
7065
7152
|
export interface AIToolDefinition {
|
|
@@ -7180,7 +7267,15 @@ export interface AIStreamResponseAttachment {
|
|
|
7180
7267
|
stepIndex: number;
|
|
7181
7268
|
attachment: AIAttachment;
|
|
7182
7269
|
}
|
|
7183
|
-
|
|
7270
|
+
/** Message emitted by the server to indicate a context compaction event. */
|
|
7271
|
+
export interface AIStreamResponseCompaction {
|
|
7272
|
+
type: "response_compaction";
|
|
7273
|
+
/** The ID of the message that this event is composing. */
|
|
7274
|
+
messageId: string;
|
|
7275
|
+
/** The index of the step of the message that this event is composing. */
|
|
7276
|
+
stepIndex: number;
|
|
7277
|
+
}
|
|
7278
|
+
export type AIStreamResponse = AIStreamResponseStart | AIStreamResponseStepStart | AIStreamResponseFinish | AIStreamResponseDocument | AIStreamResponseObject | AIStreamResponseToolCall | AIStreamResponseToolCallPending | AIStreamResponseFollowupSuggestion | AIStreamResponseAttachment | AIStreamResponseCompaction;
|
|
7184
7279
|
export interface SiteAgentSettingsInput {
|
|
7185
7280
|
/** Settings related to scanning for a site. */
|
|
7186
7281
|
scans: {
|
|
@@ -7730,6 +7825,8 @@ export interface SiteMcpServer {
|
|
|
7730
7825
|
/** Name of the MCP server */
|
|
7731
7826
|
name: SiteMcpServerName;
|
|
7732
7827
|
url: URL;
|
|
7828
|
+
/** Transport protocol used to connect to the MCP server */
|
|
7829
|
+
transport: SiteMcpServerTransport;
|
|
7733
7830
|
/** HTTP headers sent with requests to this server */
|
|
7734
7831
|
headers: SiteMcpServerHeaders;
|
|
7735
7832
|
/** Conditional expression used to evaluate whether the MCP server should be available to the site's visitor. */
|
|
@@ -8005,11 +8102,6 @@ export interface SiteVisitorPayload {
|
|
|
8005
8102
|
jwtToken?: string;
|
|
8006
8103
|
unsignedClaims?: PlainObject;
|
|
8007
8104
|
}
|
|
8008
|
-
/** Resource targeted by a Git Sync installation. Currently only spaces are supported. */
|
|
8009
|
-
export interface GitSyncInstallationTarget {
|
|
8010
|
-
/** Unique identifier of the space targeted by the Git Sync installation. */
|
|
8011
|
-
spaceId: string;
|
|
8012
|
-
}
|
|
8013
8105
|
/** Common setup fields for a Git Sync installation. */
|
|
8014
8106
|
export interface GitSyncInstallationSetupCommon {
|
|
8015
8107
|
/** Optional directory used when syncing a monorepo subdirectory. */
|
|
@@ -8062,7 +8154,7 @@ export type GitSyncInstallation = GitSyncInstallationSetup & {
|
|
|
8062
8154
|
object: "git-sync-installation";
|
|
8063
8155
|
/** Unique identifier of the Git Sync installation. */
|
|
8064
8156
|
id: string;
|
|
8065
|
-
/** Resource targeted by a Git Sync installation.
|
|
8157
|
+
/** Resource targeted by a Git Sync installation. */
|
|
8066
8158
|
target: GitSyncInstallationTarget;
|
|
8067
8159
|
status: GitSyncInstallationStatus;
|
|
8068
8160
|
createdAt: Timestamp;
|
|
@@ -8781,7 +8873,6 @@ export type SiteAdaptiveDeterministicJSONSchemaClaimsProperties = SiteAdaptiveDe
|
|
|
8781
8873
|
properties: Record<string, SiteAdaptiveDeterministicJSONSchemaClaimsProperties>;
|
|
8782
8874
|
additionalProperties: false;
|
|
8783
8875
|
};
|
|
8784
|
-
export type SiteChannelType = SiteCoreChannelType | SiteConfigurableChannelType;
|
|
8785
8876
|
export interface Seat {
|
|
8786
8877
|
object: "seat";
|
|
8787
8878
|
/** The unique ID of the organization */
|
|
@@ -8806,8 +8897,10 @@ export interface AgentStreamMessageResponse {
|
|
|
8806
8897
|
}
|
|
8807
8898
|
export interface AgentState {
|
|
8808
8899
|
status: AgentStatus;
|
|
8809
|
-
/**
|
|
8900
|
+
/** List of response suggestions for the user to select from. */
|
|
8810
8901
|
suggestions: string[];
|
|
8902
|
+
/** List of messages sent by the users queued to processed. */
|
|
8903
|
+
queuedMessages: AIMessageInput[];
|
|
8811
8904
|
}
|
|
8812
8905
|
/** Payload emitted by the agent with its current state. */
|
|
8813
8906
|
export interface AgentStreamState {
|
|
@@ -14389,6 +14482,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14389
14482
|
type?: SiteQuestionType;
|
|
14390
14483
|
/** Filter questions by question relevance. */
|
|
14391
14484
|
relevance?: SiteQuestionAnswerRelevance[];
|
|
14485
|
+
/** Filter questions by answer channel type. */
|
|
14486
|
+
channelType?: SiteChannelType[];
|
|
14392
14487
|
/** Filter questions by answer resolution. */
|
|
14393
14488
|
answered?: SiteQuestionAnswerResolution[];
|
|
14394
14489
|
/** Filter questions by associated site topic IDs. */
|
|
@@ -14427,6 +14522,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14427
14522
|
to?: Timestamp;
|
|
14428
14523
|
/** Filter stats by question relevance. */
|
|
14429
14524
|
relevance?: SiteQuestionAnswerRelevance[];
|
|
14525
|
+
/** Filter stats by answer channel type. */
|
|
14526
|
+
channelType?: SiteChannelType[];
|
|
14430
14527
|
/** Filter stats by answer resolution. */
|
|
14431
14528
|
answered?: SiteQuestionAnswerResolution[];
|
|
14432
14529
|
}, params?: RequestParams) => Promise<HttpResponse<SiteQuestion, any>>;
|
|
@@ -14454,6 +14551,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14454
14551
|
to?: Timestamp;
|
|
14455
14552
|
/** Filter answer sources by question relevance. */
|
|
14456
14553
|
relevance?: SiteQuestionAnswerRelevance[];
|
|
14554
|
+
/** Filter answer sources by answer channel type. */
|
|
14555
|
+
channelType?: SiteChannelType[];
|
|
14457
14556
|
/** Filter answer sources by answer resolution. */
|
|
14458
14557
|
answered?: SiteQuestionAnswerResolution[];
|
|
14459
14558
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
@@ -14477,6 +14576,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14477
14576
|
topic?: string[];
|
|
14478
14577
|
/** Filter stats by question relevance. */
|
|
14479
14578
|
relevance?: SiteQuestionAnswerRelevance[];
|
|
14579
|
+
/** Filter stats by answer channel type. */
|
|
14580
|
+
channelType?: SiteChannelType[];
|
|
14480
14581
|
/** Filter stats by answer resolution. */
|
|
14481
14582
|
answered?: SiteQuestionAnswerResolution[];
|
|
14482
14583
|
}, params?: RequestParams) => Promise<HttpResponse<SiteQuestionStats, any>>;
|
|
@@ -14504,6 +14605,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14504
14605
|
helpfulness?: SiteQuestionAnswerHelpfulness;
|
|
14505
14606
|
/** Filter answers by question relevance. */
|
|
14506
14607
|
relevance?: SiteQuestionAnswerRelevance[];
|
|
14608
|
+
/** Filter answers by answer channel type. */
|
|
14609
|
+
channelType?: SiteChannelType[];
|
|
14507
14610
|
/** Filter answers by question type. */
|
|
14508
14611
|
"question.type"?: SiteQuestionType;
|
|
14509
14612
|
/** Filter answers by associated site topic ID. */
|
|
@@ -15333,6 +15436,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
15333
15436
|
/** Name of the MCP server */
|
|
15334
15437
|
name: SiteMcpServerName;
|
|
15335
15438
|
url: URL;
|
|
15439
|
+
/** Transport protocol used to connect to the MCP server */
|
|
15440
|
+
transport?: SiteMcpServerTransport;
|
|
15336
15441
|
/** HTTP headers sent with requests to this server */
|
|
15337
15442
|
headers: SiteMcpServerHeaders;
|
|
15338
15443
|
/** Conditional expression used to evaluate whether the MCP server should be available to the site's visitor (should evaluate to a boolean). If set to null, the condition will be removed. */
|
|
@@ -15365,6 +15470,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
15365
15470
|
* @maxLength 2048
|
|
15366
15471
|
*/
|
|
15367
15472
|
url?: string;
|
|
15473
|
+
/** Transport protocol used to connect to the MCP server */
|
|
15474
|
+
transport?: SiteMcpServerTransport;
|
|
15368
15475
|
/** HTTP headers sent with requests to this server */
|
|
15369
15476
|
headers?: SiteMcpServerHeaders;
|
|
15370
15477
|
/** Conditional expression used to evaluate whether the MCP server should be available to the site's visitor (should evaluate to a boolean). If not set, the condition will remain unchanged. If set to null, the condition will be removed. */
|
|
@@ -15733,7 +15840,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
15733
15840
|
installGitSyncProviderOnTarget: (data: {
|
|
15734
15841
|
/** The provider of the Git Sync installation. */
|
|
15735
15842
|
provider: GitSyncInstallationProvider;
|
|
15736
|
-
/** Resource targeted by a Git Sync installation.
|
|
15843
|
+
/** Resource targeted by a Git Sync installation. */
|
|
15737
15844
|
target: GitSyncInstallationTarget;
|
|
15738
15845
|
}, params?: RequestParams) => Promise<HttpResponse<GitSyncInstallation, {
|
|
15739
15846
|
error: {
|
package/dist/constants.d.ts
CHANGED
|
@@ -81,7 +81,7 @@ export declare const SITE_PROXY_ORIGIN_PATTERN = "^([\\w-]+\\.)*[\\w-]+\\.[a-zA-
|
|
|
81
81
|
export declare const SITE_VISIBILITY_ENUM: ["public", "unlisted", "share-link", "visitor-auth"];
|
|
82
82
|
export declare const SITE_PERMISSIONS_MODEL_ENUM: ["legacy", "site"];
|
|
83
83
|
export declare const SITE_ADS_TOPIC_ENUM: ["webdev", "crypto"];
|
|
84
|
-
export declare const SITE_FEATURE_KEY_ENUM: ["sites-adaptive-content", "sites-advanced-customization", "sites-advanced-insights", "sites-ads", "sites-ai-search", "sites-ai-assistant", "sites-connections", "sites-channels", "sites-embed", "sites-api-playground", "sites-basic-customization", "sites-custom-domain", "sites-custom-fonts", "sites-custom-subdirectory", "sites-full-text-search", "sites-multivariant-site", "sites-no-custom-domain", "sites-page-feedback", "sites-page-traffic-insights", "sites-pdf-export", "sites-preview-deployments", "sites-public-visibility", "sites-redirects", "sites-search-insights", "sites-sections", "sites-seo", "sites-share-links", "sites-unlisted-visibility", "sites-user-contribution", "sites-visitor-authentication", "sites-visitors"];
|
|
84
|
+
export declare const SITE_FEATURE_KEY_ENUM: ["sites-adaptive-content", "sites-advanced-customization", "sites-advanced-insights", "sites-ads", "sites-ai-search", "sites-ai-assistant", "sites-ai-insights", "sites-connections", "sites-channels", "sites-embed", "sites-api-playground", "sites-basic-customization", "sites-custom-domain", "sites-custom-fonts", "sites-custom-subdirectory", "sites-full-text-search", "sites-multivariant-site", "sites-no-custom-domain", "sites-page-feedback", "sites-page-traffic-insights", "sites-pdf-export", "sites-preview-deployments", "sites-public-visibility", "sites-redirects", "sites-search-insights", "sites-sections", "sites-seo", "sites-share-links", "sites-unlisted-visibility", "sites-user-contribution", "sites-visitor-authentication", "sites-visitors"];
|
|
85
85
|
export declare const SITE_CUSTOMIZATION_FEATURE_ENUM: ["header-logo", "header-primary-link", "theme-preset", "premium-fonts", "custom-icons", "footer-logo", "footer-links", "footer-copyright", "semantic-colors"];
|
|
86
86
|
export declare const CONTENT_KIT_ICON_ENUM: ["close", "edit", "github", "gitlab", "maximize", "email", "settings", "search", "delete", "star", "warning", "link", "link-external", "eye", "eye-off", "lock", "check", "check-circle"];
|
|
87
87
|
export declare const SITE_SECTION_TITLE_MAX_LENGTH = 128;
|
|
@@ -155,12 +155,14 @@ export declare const CONTEXT_SEARCH_BOOST_ENUM: ["x0.8", "x1.0", "x1.2"];
|
|
|
155
155
|
export declare const YOUTUBE_CHANNEL_ID_PATTERN = "^UC[A-Za-z0-9_-]{22}$";
|
|
156
156
|
export declare const YOUTUBE_CHANNEL_NAME_PATTERN = "^@[A-Za-z0-9._-]{3,100}$";
|
|
157
157
|
export declare const SITE_QUESTION_ANSWER_RELEVANCE_ENUM: ["relevant", "spam", "off-topic", "unclear"];
|
|
158
|
-
export declare const SITE_QUESTION_ANSWER_RESOLUTION_ENUM: ["no", "partially", "yes"];
|
|
159
|
-
export declare const SITE_QUESTION_ANSWER_HELPFULNESS_ENUM: ["low", "medium", "high"];
|
|
160
158
|
export declare const SITE_CORE_CHANNEL_TYPE_ENUM: ["site", "embed", "api"];
|
|
161
159
|
export declare const SITE_CONFIGURABLE_CHANNEL_TYPE_ENUM: ["builtin:slack", "builtin:discord", "builtin:github", "builtin:linear"];
|
|
160
|
+
export declare const SITE_QUESTION_ANSWER_RESOLUTION_ENUM: ["no", "partially", "yes"];
|
|
161
|
+
export declare const SITE_QUESTION_ANSWER_HELPFULNESS_ENUM: ["low", "medium", "high"];
|
|
162
162
|
export declare const AIMESSAGE_ROLE_ENUM: ["user", "assistant", "developer"];
|
|
163
|
+
export declare const AIMESSAGE_STEP_START_CONDITION_ENUM: ["compaction"];
|
|
163
164
|
export declare const AIMESSAGE_STEP_PHASE_ENUM: ["commentary", "final_answer"];
|
|
165
|
+
export declare const AIMESSAGE_MODE_ENUM: ["normal", "fast"];
|
|
164
166
|
export declare const AIMODEL_ENUM: ["fast", "reasoning-low", "reasoning-medium", "reasoning-high"];
|
|
165
167
|
export declare const SITE_SETTINGS_SCAN_TOPICS_ENUM: ["auto", "never"];
|
|
166
168
|
export declare const SITE_SETTINGS_FINDING_CHANGE_REQUESTS_ENUM: ["always", "auto-fixable", "never"];
|
|
@@ -179,6 +181,7 @@ export declare const SITE_REDIRECT_SOURCE_PATH_MAX_LENGTH = 512;
|
|
|
179
181
|
export declare const SITE_REDIRECT_SOURCE_PATH_PATTERN = "^\\/(?!\\*)(?!.*\\*.+)(?:[A-Za-z0-9\\-._~]|%[0-9A-Fa-f]{2})+(?:\\/(?:[A-Za-z0-9\\-._~]|%[0-9A-Fa-f]{2})+)*(?:\\/\\*|\\*)?$";
|
|
180
182
|
export declare const SITE_MCP_SERVER_NAME_MAX_LENGTH = 100;
|
|
181
183
|
export declare const SITE_MCP_SERVER_NAME_MIN_LENGTH = 1;
|
|
184
|
+
export declare const SITE_MCP_SERVER_TRANSPORT_ENUM: ["sse", "http"];
|
|
182
185
|
export declare const GENERIC_CHANNEL_PATTERN_PATTERN = "^[a-zA-Z0-9_\\*-]+$";
|
|
183
186
|
export declare const GIT_HUB_REPOSITORY_PATTERN_PATTERN = "^[a-zA-Z0-9._*-]+\\/[a-zA-Z0-9._*-]+$";
|
|
184
187
|
export declare const SITE_CHANNEL_STATUS_ENUM: ["active", "pending"];
|
package/dist/index.cjs
CHANGED
|
@@ -180,11 +180,15 @@ var require_node = __commonJS({
|
|
|
180
180
|
var src_exports = {};
|
|
181
181
|
__export(src_exports, {
|
|
182
182
|
AGENT_STATUS_ENUM: () => AGENT_STATUS_ENUM,
|
|
183
|
+
AIMESSAGE_MODE_ENUM: () => AIMESSAGE_MODE_ENUM,
|
|
183
184
|
AIMESSAGE_ROLE_ENUM: () => AIMESSAGE_ROLE_ENUM,
|
|
184
185
|
AIMESSAGE_STEP_PHASE_ENUM: () => AIMESSAGE_STEP_PHASE_ENUM,
|
|
186
|
+
AIMESSAGE_STEP_START_CONDITION_ENUM: () => AIMESSAGE_STEP_START_CONDITION_ENUM,
|
|
185
187
|
AIMODEL_ENUM: () => AIMODEL_ENUM,
|
|
188
|
+
AIMessageMode: () => AIMessageMode,
|
|
186
189
|
AIMessageRole: () => AIMessageRole,
|
|
187
190
|
AIMessageStepPhase: () => AIMessageStepPhase,
|
|
191
|
+
AIMessageStepStartCondition: () => AIMessageStepStartCondition,
|
|
188
192
|
AIModel: () => AIModel,
|
|
189
193
|
APIINTEGRATION_SCOPE_ENUM: () => APIINTEGRATION_SCOPE_ENUM,
|
|
190
194
|
APIIntegrationScope: () => APIIntegrationScope,
|
|
@@ -424,6 +428,7 @@ __export(src_exports, {
|
|
|
424
428
|
SITE_INSIGHTS_VISITOR_OS_ENUM: () => SITE_INSIGHTS_VISITOR_OS_ENUM,
|
|
425
429
|
SITE_MCP_SERVER_NAME_MAX_LENGTH: () => SITE_MCP_SERVER_NAME_MAX_LENGTH,
|
|
426
430
|
SITE_MCP_SERVER_NAME_MIN_LENGTH: () => SITE_MCP_SERVER_NAME_MIN_LENGTH,
|
|
431
|
+
SITE_MCP_SERVER_TRANSPORT_ENUM: () => SITE_MCP_SERVER_TRANSPORT_ENUM,
|
|
427
432
|
SITE_PERMISSIONS_MODEL_ENUM: () => SITE_PERMISSIONS_MODEL_ENUM,
|
|
428
433
|
SITE_PROXY_ORIGIN_MAX_LENGTH: () => SITE_PROXY_ORIGIN_MAX_LENGTH,
|
|
429
434
|
SITE_PROXY_ORIGIN_PATTERN: () => SITE_PROXY_ORIGIN_PATTERN,
|
|
@@ -483,6 +488,7 @@ __export(src_exports, {
|
|
|
483
488
|
SiteInsightsVisitorBrowser: () => SiteInsightsVisitorBrowser,
|
|
484
489
|
SiteInsightsVisitorDevice: () => SiteInsightsVisitorDevice,
|
|
485
490
|
SiteInsightsVisitorOS: () => SiteInsightsVisitorOS,
|
|
491
|
+
SiteMcpServerTransport: () => SiteMcpServerTransport,
|
|
486
492
|
SitePermissionsModel: () => SitePermissionsModel,
|
|
487
493
|
SiteQuestionAnswerHelpfulness: () => SiteQuestionAnswerHelpfulness,
|
|
488
494
|
SiteQuestionAnswerRelevance: () => SiteQuestionAnswerRelevance,
|
|
@@ -515,7 +521,7 @@ module.exports = __toCommonJS(src_exports);
|
|
|
515
521
|
|
|
516
522
|
// package.json
|
|
517
523
|
var name = "@gitbook/api";
|
|
518
|
-
var version = "0.
|
|
524
|
+
var version = "0.182.0";
|
|
519
525
|
|
|
520
526
|
// src/client.ts
|
|
521
527
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -765,6 +771,11 @@ var SiteChannelStatus = /* @__PURE__ */ ((SiteChannelStatus2) => {
|
|
|
765
771
|
SiteChannelStatus2["Pending"] = "pending";
|
|
766
772
|
return SiteChannelStatus2;
|
|
767
773
|
})(SiteChannelStatus || {});
|
|
774
|
+
var SiteMcpServerTransport = /* @__PURE__ */ ((SiteMcpServerTransport2) => {
|
|
775
|
+
SiteMcpServerTransport2["Sse"] = "sse";
|
|
776
|
+
SiteMcpServerTransport2["Http"] = "http";
|
|
777
|
+
return SiteMcpServerTransport2;
|
|
778
|
+
})(SiteMcpServerTransport || {});
|
|
768
779
|
var SiteInsightsQueryRangePreset = /* @__PURE__ */ ((SiteInsightsQueryRangePreset2) => {
|
|
769
780
|
SiteInsightsQueryRangePreset2["LastYear"] = "lastYear";
|
|
770
781
|
SiteInsightsQueryRangePreset2["Last3Months"] = "last3Months";
|
|
@@ -908,17 +919,38 @@ var AIModel = /* @__PURE__ */ ((AIModel2) => {
|
|
|
908
919
|
AIModel2["ReasoningHigh"] = "reasoning-high";
|
|
909
920
|
return AIModel2;
|
|
910
921
|
})(AIModel || {});
|
|
922
|
+
var AIMessageMode = /* @__PURE__ */ ((AIMessageMode2) => {
|
|
923
|
+
AIMessageMode2["Normal"] = "normal";
|
|
924
|
+
AIMessageMode2["Fast"] = "fast";
|
|
925
|
+
return AIMessageMode2;
|
|
926
|
+
})(AIMessageMode || {});
|
|
911
927
|
var AIMessageStepPhase = /* @__PURE__ */ ((AIMessageStepPhase2) => {
|
|
912
928
|
AIMessageStepPhase2["Commentary"] = "commentary";
|
|
913
929
|
AIMessageStepPhase2["FinalAnswer"] = "final_answer";
|
|
914
930
|
return AIMessageStepPhase2;
|
|
915
931
|
})(AIMessageStepPhase || {});
|
|
932
|
+
var AIMessageStepStartCondition = /* @__PURE__ */ ((AIMessageStepStartCondition2) => {
|
|
933
|
+
AIMessageStepStartCondition2["Compaction"] = "compaction";
|
|
934
|
+
return AIMessageStepStartCondition2;
|
|
935
|
+
})(AIMessageStepStartCondition || {});
|
|
916
936
|
var AIMessageRole = /* @__PURE__ */ ((AIMessageRole2) => {
|
|
917
937
|
AIMessageRole2["User"] = "user";
|
|
918
938
|
AIMessageRole2["Assistant"] = "assistant";
|
|
919
939
|
AIMessageRole2["Developer"] = "developer";
|
|
920
940
|
return AIMessageRole2;
|
|
921
941
|
})(AIMessageRole || {});
|
|
942
|
+
var SiteQuestionAnswerHelpfulness = /* @__PURE__ */ ((SiteQuestionAnswerHelpfulness2) => {
|
|
943
|
+
SiteQuestionAnswerHelpfulness2["Low"] = "low";
|
|
944
|
+
SiteQuestionAnswerHelpfulness2["Medium"] = "medium";
|
|
945
|
+
SiteQuestionAnswerHelpfulness2["High"] = "high";
|
|
946
|
+
return SiteQuestionAnswerHelpfulness2;
|
|
947
|
+
})(SiteQuestionAnswerHelpfulness || {});
|
|
948
|
+
var SiteQuestionAnswerResolution = /* @__PURE__ */ ((SiteQuestionAnswerResolution2) => {
|
|
949
|
+
SiteQuestionAnswerResolution2["No"] = "no";
|
|
950
|
+
SiteQuestionAnswerResolution2["Partially"] = "partially";
|
|
951
|
+
SiteQuestionAnswerResolution2["Yes"] = "yes";
|
|
952
|
+
return SiteQuestionAnswerResolution2;
|
|
953
|
+
})(SiteQuestionAnswerResolution || {});
|
|
922
954
|
var SiteConfigurableChannelType = /* @__PURE__ */ ((SiteConfigurableChannelType2) => {
|
|
923
955
|
SiteConfigurableChannelType2["BuiltinSlack"] = "builtin:slack";
|
|
924
956
|
SiteConfigurableChannelType2["BuiltinDiscord"] = "builtin:discord";
|
|
@@ -932,18 +964,6 @@ var SiteCoreChannelType = /* @__PURE__ */ ((SiteCoreChannelType2) => {
|
|
|
932
964
|
SiteCoreChannelType2["Api"] = "api";
|
|
933
965
|
return SiteCoreChannelType2;
|
|
934
966
|
})(SiteCoreChannelType || {});
|
|
935
|
-
var SiteQuestionAnswerHelpfulness = /* @__PURE__ */ ((SiteQuestionAnswerHelpfulness2) => {
|
|
936
|
-
SiteQuestionAnswerHelpfulness2["Low"] = "low";
|
|
937
|
-
SiteQuestionAnswerHelpfulness2["Medium"] = "medium";
|
|
938
|
-
SiteQuestionAnswerHelpfulness2["High"] = "high";
|
|
939
|
-
return SiteQuestionAnswerHelpfulness2;
|
|
940
|
-
})(SiteQuestionAnswerHelpfulness || {});
|
|
941
|
-
var SiteQuestionAnswerResolution = /* @__PURE__ */ ((SiteQuestionAnswerResolution2) => {
|
|
942
|
-
SiteQuestionAnswerResolution2["No"] = "no";
|
|
943
|
-
SiteQuestionAnswerResolution2["Partially"] = "partially";
|
|
944
|
-
SiteQuestionAnswerResolution2["Yes"] = "yes";
|
|
945
|
-
return SiteQuestionAnswerResolution2;
|
|
946
|
-
})(SiteQuestionAnswerResolution || {});
|
|
947
967
|
var SiteQuestionAnswerRelevance = /* @__PURE__ */ ((SiteQuestionAnswerRelevance2) => {
|
|
948
968
|
SiteQuestionAnswerRelevance2["Relevant"] = "relevant";
|
|
949
969
|
SiteQuestionAnswerRelevance2["Spam"] = "spam";
|
|
@@ -1281,6 +1301,7 @@ var SiteFeatureKey = /* @__PURE__ */ ((SiteFeatureKey2) => {
|
|
|
1281
1301
|
SiteFeatureKey2["SitesAds"] = "sites-ads";
|
|
1282
1302
|
SiteFeatureKey2["SitesAiSearch"] = "sites-ai-search";
|
|
1283
1303
|
SiteFeatureKey2["SitesAiAssistant"] = "sites-ai-assistant";
|
|
1304
|
+
SiteFeatureKey2["SitesAiInsights"] = "sites-ai-insights";
|
|
1284
1305
|
SiteFeatureKey2["SitesConnections"] = "sites-connections";
|
|
1285
1306
|
SiteFeatureKey2["SitesChannels"] = "sites-channels";
|
|
1286
1307
|
SiteFeatureKey2["SitesEmbed"] = "sites-embed";
|
|
@@ -4732,7 +4753,7 @@ var SITE_PROXY_ORIGIN_PATTERN = "^([\\w-]+\\.)*[\\w-]+\\.[a-zA-Z]{2,}(\\/[\\w-]+
|
|
|
4732
4753
|
var SITE_VISIBILITY_ENUM = ["public", "unlisted", "share-link", "visitor-auth"];
|
|
4733
4754
|
var SITE_PERMISSIONS_MODEL_ENUM = ["legacy", "site"];
|
|
4734
4755
|
var SITE_ADS_TOPIC_ENUM = ["webdev", "crypto"];
|
|
4735
|
-
var SITE_FEATURE_KEY_ENUM = ["sites-adaptive-content", "sites-advanced-customization", "sites-advanced-insights", "sites-ads", "sites-ai-search", "sites-ai-assistant", "sites-connections", "sites-channels", "sites-embed", "sites-api-playground", "sites-basic-customization", "sites-custom-domain", "sites-custom-fonts", "sites-custom-subdirectory", "sites-full-text-search", "sites-multivariant-site", "sites-no-custom-domain", "sites-page-feedback", "sites-page-traffic-insights", "sites-pdf-export", "sites-preview-deployments", "sites-public-visibility", "sites-redirects", "sites-search-insights", "sites-sections", "sites-seo", "sites-share-links", "sites-unlisted-visibility", "sites-user-contribution", "sites-visitor-authentication", "sites-visitors"];
|
|
4756
|
+
var SITE_FEATURE_KEY_ENUM = ["sites-adaptive-content", "sites-advanced-customization", "sites-advanced-insights", "sites-ads", "sites-ai-search", "sites-ai-assistant", "sites-ai-insights", "sites-connections", "sites-channels", "sites-embed", "sites-api-playground", "sites-basic-customization", "sites-custom-domain", "sites-custom-fonts", "sites-custom-subdirectory", "sites-full-text-search", "sites-multivariant-site", "sites-no-custom-domain", "sites-page-feedback", "sites-page-traffic-insights", "sites-pdf-export", "sites-preview-deployments", "sites-public-visibility", "sites-redirects", "sites-search-insights", "sites-sections", "sites-seo", "sites-share-links", "sites-unlisted-visibility", "sites-user-contribution", "sites-visitor-authentication", "sites-visitors"];
|
|
4736
4757
|
var SITE_CUSTOMIZATION_FEATURE_ENUM = ["header-logo", "header-primary-link", "theme-preset", "premium-fonts", "custom-icons", "footer-logo", "footer-links", "footer-copyright", "semantic-colors"];
|
|
4737
4758
|
var CONTENT_KIT_ICON_ENUM = ["close", "edit", "github", "gitlab", "maximize", "email", "settings", "search", "delete", "star", "warning", "link", "link-external", "eye", "eye-off", "lock", "check", "check-circle"];
|
|
4738
4759
|
var SITE_SECTION_TITLE_MAX_LENGTH = 128;
|
|
@@ -4806,12 +4827,14 @@ var CONTEXT_SEARCH_BOOST_ENUM = ["x0.8", "x1.0", "x1.2"];
|
|
|
4806
4827
|
var YOUTUBE_CHANNEL_ID_PATTERN = "^UC[A-Za-z0-9_-]{22}$";
|
|
4807
4828
|
var YOUTUBE_CHANNEL_NAME_PATTERN = "^@[A-Za-z0-9._-]{3,100}$";
|
|
4808
4829
|
var SITE_QUESTION_ANSWER_RELEVANCE_ENUM = ["relevant", "spam", "off-topic", "unclear"];
|
|
4809
|
-
var SITE_QUESTION_ANSWER_RESOLUTION_ENUM = ["no", "partially", "yes"];
|
|
4810
|
-
var SITE_QUESTION_ANSWER_HELPFULNESS_ENUM = ["low", "medium", "high"];
|
|
4811
4830
|
var SITE_CORE_CHANNEL_TYPE_ENUM = ["site", "embed", "api"];
|
|
4812
4831
|
var SITE_CONFIGURABLE_CHANNEL_TYPE_ENUM = ["builtin:slack", "builtin:discord", "builtin:github", "builtin:linear"];
|
|
4832
|
+
var SITE_QUESTION_ANSWER_RESOLUTION_ENUM = ["no", "partially", "yes"];
|
|
4833
|
+
var SITE_QUESTION_ANSWER_HELPFULNESS_ENUM = ["low", "medium", "high"];
|
|
4813
4834
|
var AIMESSAGE_ROLE_ENUM = ["user", "assistant", "developer"];
|
|
4835
|
+
var AIMESSAGE_STEP_START_CONDITION_ENUM = ["compaction"];
|
|
4814
4836
|
var AIMESSAGE_STEP_PHASE_ENUM = ["commentary", "final_answer"];
|
|
4837
|
+
var AIMESSAGE_MODE_ENUM = ["normal", "fast"];
|
|
4815
4838
|
var AIMODEL_ENUM = ["fast", "reasoning-low", "reasoning-medium", "reasoning-high"];
|
|
4816
4839
|
var SITE_SETTINGS_SCAN_TOPICS_ENUM = ["auto", "never"];
|
|
4817
4840
|
var SITE_SETTINGS_FINDING_CHANGE_REQUESTS_ENUM = ["always", "auto-fixable", "never"];
|
|
@@ -4830,6 +4853,7 @@ var SITE_REDIRECT_SOURCE_PATH_MAX_LENGTH = 512;
|
|
|
4830
4853
|
var SITE_REDIRECT_SOURCE_PATH_PATTERN = "^\\/(?!\\*)(?!.*\\*.+)(?:[A-Za-z0-9\\-._~]|%[0-9A-Fa-f]{2})+(?:\\/(?:[A-Za-z0-9\\-._~]|%[0-9A-Fa-f]{2})+)*(?:\\/\\*|\\*)?$";
|
|
4831
4854
|
var SITE_MCP_SERVER_NAME_MAX_LENGTH = 100;
|
|
4832
4855
|
var SITE_MCP_SERVER_NAME_MIN_LENGTH = 1;
|
|
4856
|
+
var SITE_MCP_SERVER_TRANSPORT_ENUM = ["sse", "http"];
|
|
4833
4857
|
var GENERIC_CHANNEL_PATTERN_PATTERN = "^[a-zA-Z0-9_\\*-]+$";
|
|
4834
4858
|
var GIT_HUB_REPOSITORY_PATTERN_PATTERN = "^[a-zA-Z0-9._*-]+\\/[a-zA-Z0-9._*-]+$";
|
|
4835
4859
|
var SITE_CHANNEL_STATUS_ENUM = ["active", "pending"];
|
|
@@ -4926,11 +4950,15 @@ var GitBookAPI = class extends Api {
|
|
|
4926
4950
|
// Annotate the CommonJS export names for ESM import in node:
|
|
4927
4951
|
0 && (module.exports = {
|
|
4928
4952
|
AGENT_STATUS_ENUM,
|
|
4953
|
+
AIMESSAGE_MODE_ENUM,
|
|
4929
4954
|
AIMESSAGE_ROLE_ENUM,
|
|
4930
4955
|
AIMESSAGE_STEP_PHASE_ENUM,
|
|
4956
|
+
AIMESSAGE_STEP_START_CONDITION_ENUM,
|
|
4931
4957
|
AIMODEL_ENUM,
|
|
4958
|
+
AIMessageMode,
|
|
4932
4959
|
AIMessageRole,
|
|
4933
4960
|
AIMessageStepPhase,
|
|
4961
|
+
AIMessageStepStartCondition,
|
|
4934
4962
|
AIModel,
|
|
4935
4963
|
APIINTEGRATION_SCOPE_ENUM,
|
|
4936
4964
|
APIIntegrationScope,
|
|
@@ -5170,6 +5198,7 @@ var GitBookAPI = class extends Api {
|
|
|
5170
5198
|
SITE_INSIGHTS_VISITOR_OS_ENUM,
|
|
5171
5199
|
SITE_MCP_SERVER_NAME_MAX_LENGTH,
|
|
5172
5200
|
SITE_MCP_SERVER_NAME_MIN_LENGTH,
|
|
5201
|
+
SITE_MCP_SERVER_TRANSPORT_ENUM,
|
|
5173
5202
|
SITE_PERMISSIONS_MODEL_ENUM,
|
|
5174
5203
|
SITE_PROXY_ORIGIN_MAX_LENGTH,
|
|
5175
5204
|
SITE_PROXY_ORIGIN_PATTERN,
|
|
@@ -5229,6 +5258,7 @@ var GitBookAPI = class extends Api {
|
|
|
5229
5258
|
SiteInsightsVisitorBrowser,
|
|
5230
5259
|
SiteInsightsVisitorDevice,
|
|
5231
5260
|
SiteInsightsVisitorOS,
|
|
5261
|
+
SiteMcpServerTransport,
|
|
5232
5262
|
SitePermissionsModel,
|
|
5233
5263
|
SiteQuestionAnswerHelpfulness,
|
|
5234
5264
|
SiteQuestionAnswerRelevance,
|