@gitbook/api 0.180.0 → 0.181.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 +138 -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 +374 -102
- package/spec/openapi.yaml +251 -63
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";
|
|
@@ -2520,6 +2559,7 @@ export interface TranslationResult {
|
|
|
2520
2559
|
space: string;
|
|
2521
2560
|
/** ID of the revision generated by the translation */
|
|
2522
2561
|
revision: string;
|
|
2562
|
+
language: TranslationLanguage;
|
|
2523
2563
|
}
|
|
2524
2564
|
export interface ComputedContentDependencyTranslation {
|
|
2525
2565
|
ref: TranslationRef;
|
|
@@ -2648,6 +2688,11 @@ export interface ComputedContentSourceDocumentTranslation {
|
|
|
2648
2688
|
space: string;
|
|
2649
2689
|
document: string;
|
|
2650
2690
|
};
|
|
2691
|
+
dependencies: {
|
|
2692
|
+
translation: {
|
|
2693
|
+
ref: TranslationRef;
|
|
2694
|
+
} | ComputedContentDependencyTranslation;
|
|
2695
|
+
};
|
|
2651
2696
|
}
|
|
2652
2697
|
export type ComputedContentSourceDocument = ComputedContentSourceDocumentOpenAPI | ComputedContentSourceDocumentTranslation | ComputedContentSourceIntegration;
|
|
2653
2698
|
export type RevisionPageGroup = RevisionPageBase & {
|
|
@@ -3670,6 +3715,7 @@ export interface OrganizationMember {
|
|
|
3670
3715
|
sso: boolean;
|
|
3671
3716
|
spaces: number;
|
|
3672
3717
|
teams: number;
|
|
3718
|
+
sites: number;
|
|
3673
3719
|
}
|
|
3674
3720
|
/**
|
|
3675
3721
|
* Title of the integration
|
|
@@ -4176,6 +4222,8 @@ export type FetchPublishedScriptEvent = SiteEvent & {
|
|
|
4176
4222
|
export type FetchVisitorAuthenticationEvent = SiteEvent & {
|
|
4177
4223
|
type: "fetch_visitor_authentication";
|
|
4178
4224
|
location?: string;
|
|
4225
|
+
/** The visitor authentication action to resolve. If omitted, integrations resolve to the existing login redirect. */
|
|
4226
|
+
action?: "logout";
|
|
4179
4227
|
};
|
|
4180
4228
|
/** Common properties for ContentKit context. */
|
|
4181
4229
|
export interface ContentKitContextBase {
|
|
@@ -4442,6 +4490,7 @@ export interface Site {
|
|
|
4442
4490
|
/** Whether the site is live or not. If true, the site is accessible to the audience defined by the visibility setting. */
|
|
4443
4491
|
published: boolean;
|
|
4444
4492
|
siteSpaces: number;
|
|
4493
|
+
gitSync?: GitSyncState;
|
|
4445
4494
|
/** @format date-time */
|
|
4446
4495
|
createdAt: string;
|
|
4447
4496
|
adaptiveContent?: SiteAdaptiveContent;
|
|
@@ -4475,6 +4524,11 @@ export interface Site {
|
|
|
4475
4524
|
* @format uri
|
|
4476
4525
|
*/
|
|
4477
4526
|
login?: string;
|
|
4527
|
+
/**
|
|
4528
|
+
* URL of the logout endpoint for visitors to sign out from the site auth backend.
|
|
4529
|
+
* @format uri
|
|
4530
|
+
*/
|
|
4531
|
+
logout?: string;
|
|
4478
4532
|
};
|
|
4479
4533
|
}
|
|
4480
4534
|
export type IntegrationSiteInstallation = IntegrationContentInstallationBase & {
|
|
@@ -4999,6 +5053,12 @@ export interface MemberContentPermission {
|
|
|
4999
5053
|
permission: MemberRole;
|
|
5000
5054
|
space: Space;
|
|
5001
5055
|
}
|
|
5056
|
+
/** Permission of an organization member in a site. */
|
|
5057
|
+
export interface MemberSitePermission {
|
|
5058
|
+
site: Site;
|
|
5059
|
+
/** The role of a member in an organization, null for guests */
|
|
5060
|
+
permission: MemberRoleOrGuest;
|
|
5061
|
+
}
|
|
5002
5062
|
export interface TeamMember {
|
|
5003
5063
|
/**
|
|
5004
5064
|
* "The role of a team member.
|
|
@@ -6129,6 +6189,11 @@ export type SitePublishingAuth = (VisitorAuthCustomBackend | VisitorAuthIntegrat
|
|
|
6129
6189
|
* @format uri
|
|
6130
6190
|
*/
|
|
6131
6191
|
fallbackURL?: string;
|
|
6192
|
+
/**
|
|
6193
|
+
* URL used to log visitors out from the upstream custom auth backend.
|
|
6194
|
+
* @format uri
|
|
6195
|
+
*/
|
|
6196
|
+
logoutURL?: string;
|
|
6132
6197
|
/**
|
|
6133
6198
|
* Name of the authenticated access integration installed on the site (if any).
|
|
6134
6199
|
* It is also the one being used as VA backend when the published auth settings are configured to use "integration" as backend.
|
|
@@ -6141,6 +6206,11 @@ export type SitePublishingAuthUpdate = (VisitorAuthCustomBackend | VisitorAuthIn
|
|
|
6141
6206
|
* @format uri
|
|
6142
6207
|
*/
|
|
6143
6208
|
fallbackURL?: string | null;
|
|
6209
|
+
/**
|
|
6210
|
+
* 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.
|
|
6211
|
+
* @format uri
|
|
6212
|
+
*/
|
|
6213
|
+
logoutURL?: string | null;
|
|
6144
6214
|
};
|
|
6145
6215
|
export type SiteCustomizationSettingsInput = SiteCustomizationSettingsBase;
|
|
6146
6216
|
export type SiteSearchScope = {
|
|
@@ -6553,6 +6623,7 @@ export interface SiteTopic {
|
|
|
6553
6623
|
location: string;
|
|
6554
6624
|
};
|
|
6555
6625
|
}
|
|
6626
|
+
export type SiteChannelType = SiteCoreChannelType | SiteConfigurableChannelType;
|
|
6556
6627
|
export interface SiteQuestionAnswerSourceBase {
|
|
6557
6628
|
object: "site-question-answer-source";
|
|
6558
6629
|
/** The ID of the source. */
|
|
@@ -6891,6 +6962,8 @@ export interface Timerange {
|
|
|
6891
6962
|
export interface AIAttachmentImage {
|
|
6892
6963
|
type: "image";
|
|
6893
6964
|
url: URL;
|
|
6965
|
+
/** Name of the image file. */
|
|
6966
|
+
filename?: string;
|
|
6894
6967
|
}
|
|
6895
6968
|
export interface AIAttachmentFile {
|
|
6896
6969
|
type: "file";
|
|
@@ -6900,8 +6973,28 @@ export interface AIAttachmentFile {
|
|
|
6900
6973
|
contentType: "application/pdf";
|
|
6901
6974
|
}
|
|
6902
6975
|
export type AIAttachment = AIAttachmentImage | AIAttachmentFile;
|
|
6976
|
+
/** Context about the current user sending a message. */
|
|
6977
|
+
export interface AIMessageContext {
|
|
6978
|
+
location?: {
|
|
6979
|
+
/** ID of the current space. */
|
|
6980
|
+
spaceId: string;
|
|
6981
|
+
/** ID of the current page. */
|
|
6982
|
+
pageId: string;
|
|
6983
|
+
};
|
|
6984
|
+
/** Range of the current selection in a document. */
|
|
6985
|
+
selection?: {
|
|
6986
|
+
anchorKey: string | null;
|
|
6987
|
+
anchorOffset: number;
|
|
6988
|
+
focusKey: string | null;
|
|
6989
|
+
focusOffset: number;
|
|
6990
|
+
/** Snapshot of the selection for display. */
|
|
6991
|
+
content?: string;
|
|
6992
|
+
};
|
|
6993
|
+
}
|
|
6903
6994
|
/** A step in a message from the AI agent. */
|
|
6904
6995
|
export interface AIMessageStep {
|
|
6996
|
+
/** Describe the state in which the steps started. */
|
|
6997
|
+
startCondition?: AIMessageStepStartCondition;
|
|
6905
6998
|
content?: JSONDocument;
|
|
6906
6999
|
reasoning?: JSONDocument;
|
|
6907
7000
|
toolCalls?: AIToolCall[];
|
|
@@ -6912,6 +7005,8 @@ export interface AIMessageStep {
|
|
|
6912
7005
|
reasoning?: Timerange;
|
|
6913
7006
|
};
|
|
6914
7007
|
attachments?: AIAttachment[];
|
|
7008
|
+
/** Context about the current user sending a message. */
|
|
7009
|
+
context?: AIMessageContext;
|
|
6915
7010
|
}
|
|
6916
7011
|
/** When the agent is responding to a comment. */
|
|
6917
7012
|
export type AIMessageTask = {
|
|
@@ -7037,22 +7132,6 @@ export interface TeamSitePermissionOverride {
|
|
|
7037
7132
|
permission: MemberRoleOrGuest;
|
|
7038
7133
|
team: OrganizationTeam;
|
|
7039
7134
|
}
|
|
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
7135
|
/** Input version of an AI message. */
|
|
7057
7136
|
export interface AIMessageInput {
|
|
7058
7137
|
role: AIMessageRole;
|
|
@@ -7060,6 +7139,8 @@ export interface AIMessageInput {
|
|
|
7060
7139
|
/** Context about the current user sending a message. */
|
|
7061
7140
|
context?: AIMessageContext;
|
|
7062
7141
|
attachments?: AIAttachment[];
|
|
7142
|
+
/** 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. */
|
|
7143
|
+
mode?: AIMessageMode;
|
|
7063
7144
|
}
|
|
7064
7145
|
/** Description of a tool that can be called from an AI agent. */
|
|
7065
7146
|
export interface AIToolDefinition {
|
|
@@ -7180,7 +7261,15 @@ export interface AIStreamResponseAttachment {
|
|
|
7180
7261
|
stepIndex: number;
|
|
7181
7262
|
attachment: AIAttachment;
|
|
7182
7263
|
}
|
|
7183
|
-
|
|
7264
|
+
/** Message emitted by the server to indicate a context compaction event. */
|
|
7265
|
+
export interface AIStreamResponseCompaction {
|
|
7266
|
+
type: "response_compaction";
|
|
7267
|
+
/** The ID of the message that this event is composing. */
|
|
7268
|
+
messageId: string;
|
|
7269
|
+
/** The index of the step of the message that this event is composing. */
|
|
7270
|
+
stepIndex: number;
|
|
7271
|
+
}
|
|
7272
|
+
export type AIStreamResponse = AIStreamResponseStart | AIStreamResponseStepStart | AIStreamResponseFinish | AIStreamResponseDocument | AIStreamResponseObject | AIStreamResponseToolCall | AIStreamResponseToolCallPending | AIStreamResponseFollowupSuggestion | AIStreamResponseAttachment | AIStreamResponseCompaction;
|
|
7184
7273
|
export interface SiteAgentSettingsInput {
|
|
7185
7274
|
/** Settings related to scanning for a site. */
|
|
7186
7275
|
scans: {
|
|
@@ -7730,6 +7819,8 @@ export interface SiteMcpServer {
|
|
|
7730
7819
|
/** Name of the MCP server */
|
|
7731
7820
|
name: SiteMcpServerName;
|
|
7732
7821
|
url: URL;
|
|
7822
|
+
/** Transport protocol used to connect to the MCP server */
|
|
7823
|
+
transport: SiteMcpServerTransport;
|
|
7733
7824
|
/** HTTP headers sent with requests to this server */
|
|
7734
7825
|
headers: SiteMcpServerHeaders;
|
|
7735
7826
|
/** Conditional expression used to evaluate whether the MCP server should be available to the site's visitor. */
|
|
@@ -8005,11 +8096,6 @@ export interface SiteVisitorPayload {
|
|
|
8005
8096
|
jwtToken?: string;
|
|
8006
8097
|
unsignedClaims?: PlainObject;
|
|
8007
8098
|
}
|
|
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
8099
|
/** Common setup fields for a Git Sync installation. */
|
|
8014
8100
|
export interface GitSyncInstallationSetupCommon {
|
|
8015
8101
|
/** Optional directory used when syncing a monorepo subdirectory. */
|
|
@@ -8062,7 +8148,7 @@ export type GitSyncInstallation = GitSyncInstallationSetup & {
|
|
|
8062
8148
|
object: "git-sync-installation";
|
|
8063
8149
|
/** Unique identifier of the Git Sync installation. */
|
|
8064
8150
|
id: string;
|
|
8065
|
-
/** Resource targeted by a Git Sync installation.
|
|
8151
|
+
/** Resource targeted by a Git Sync installation. */
|
|
8066
8152
|
target: GitSyncInstallationTarget;
|
|
8067
8153
|
status: GitSyncInstallationStatus;
|
|
8068
8154
|
createdAt: Timestamp;
|
|
@@ -8781,7 +8867,6 @@ export type SiteAdaptiveDeterministicJSONSchemaClaimsProperties = SiteAdaptiveDe
|
|
|
8781
8867
|
properties: Record<string, SiteAdaptiveDeterministicJSONSchemaClaimsProperties>;
|
|
8782
8868
|
additionalProperties: false;
|
|
8783
8869
|
};
|
|
8784
|
-
export type SiteChannelType = SiteCoreChannelType | SiteConfigurableChannelType;
|
|
8785
8870
|
export interface Seat {
|
|
8786
8871
|
object: "seat";
|
|
8787
8872
|
/** The unique ID of the organization */
|
|
@@ -8806,8 +8891,10 @@ export interface AgentStreamMessageResponse {
|
|
|
8806
8891
|
}
|
|
8807
8892
|
export interface AgentState {
|
|
8808
8893
|
status: AgentStatus;
|
|
8809
|
-
/**
|
|
8894
|
+
/** List of response suggestions for the user to select from. */
|
|
8810
8895
|
suggestions: string[];
|
|
8896
|
+
/** List of messages sent by the users queued to processed. */
|
|
8897
|
+
queuedMessages: AIMessageInput[];
|
|
8811
8898
|
}
|
|
8812
8899
|
/** Payload emitted by the agent with its current state. */
|
|
8813
8900
|
export interface AgentStreamState {
|
|
@@ -14389,6 +14476,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14389
14476
|
type?: SiteQuestionType;
|
|
14390
14477
|
/** Filter questions by question relevance. */
|
|
14391
14478
|
relevance?: SiteQuestionAnswerRelevance[];
|
|
14479
|
+
/** Filter questions by answer channel type. */
|
|
14480
|
+
channelType?: SiteChannelType[];
|
|
14392
14481
|
/** Filter questions by answer resolution. */
|
|
14393
14482
|
answered?: SiteQuestionAnswerResolution[];
|
|
14394
14483
|
/** Filter questions by associated site topic IDs. */
|
|
@@ -14427,6 +14516,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14427
14516
|
to?: Timestamp;
|
|
14428
14517
|
/** Filter stats by question relevance. */
|
|
14429
14518
|
relevance?: SiteQuestionAnswerRelevance[];
|
|
14519
|
+
/** Filter stats by answer channel type. */
|
|
14520
|
+
channelType?: SiteChannelType[];
|
|
14430
14521
|
/** Filter stats by answer resolution. */
|
|
14431
14522
|
answered?: SiteQuestionAnswerResolution[];
|
|
14432
14523
|
}, params?: RequestParams) => Promise<HttpResponse<SiteQuestion, any>>;
|
|
@@ -14454,6 +14545,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14454
14545
|
to?: Timestamp;
|
|
14455
14546
|
/** Filter answer sources by question relevance. */
|
|
14456
14547
|
relevance?: SiteQuestionAnswerRelevance[];
|
|
14548
|
+
/** Filter answer sources by answer channel type. */
|
|
14549
|
+
channelType?: SiteChannelType[];
|
|
14457
14550
|
/** Filter answer sources by answer resolution. */
|
|
14458
14551
|
answered?: SiteQuestionAnswerResolution[];
|
|
14459
14552
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
@@ -14477,6 +14570,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14477
14570
|
topic?: string[];
|
|
14478
14571
|
/** Filter stats by question relevance. */
|
|
14479
14572
|
relevance?: SiteQuestionAnswerRelevance[];
|
|
14573
|
+
/** Filter stats by answer channel type. */
|
|
14574
|
+
channelType?: SiteChannelType[];
|
|
14480
14575
|
/** Filter stats by answer resolution. */
|
|
14481
14576
|
answered?: SiteQuestionAnswerResolution[];
|
|
14482
14577
|
}, params?: RequestParams) => Promise<HttpResponse<SiteQuestionStats, any>>;
|
|
@@ -14504,6 +14599,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14504
14599
|
helpfulness?: SiteQuestionAnswerHelpfulness;
|
|
14505
14600
|
/** Filter answers by question relevance. */
|
|
14506
14601
|
relevance?: SiteQuestionAnswerRelevance[];
|
|
14602
|
+
/** Filter answers by answer channel type. */
|
|
14603
|
+
channelType?: SiteChannelType[];
|
|
14507
14604
|
/** Filter answers by question type. */
|
|
14508
14605
|
"question.type"?: SiteQuestionType;
|
|
14509
14606
|
/** Filter answers by associated site topic ID. */
|
|
@@ -15333,6 +15430,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
15333
15430
|
/** Name of the MCP server */
|
|
15334
15431
|
name: SiteMcpServerName;
|
|
15335
15432
|
url: URL;
|
|
15433
|
+
/** Transport protocol used to connect to the MCP server */
|
|
15434
|
+
transport?: SiteMcpServerTransport;
|
|
15336
15435
|
/** HTTP headers sent with requests to this server */
|
|
15337
15436
|
headers: SiteMcpServerHeaders;
|
|
15338
15437
|
/** 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 +15464,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
15365
15464
|
* @maxLength 2048
|
|
15366
15465
|
*/
|
|
15367
15466
|
url?: string;
|
|
15467
|
+
/** Transport protocol used to connect to the MCP server */
|
|
15468
|
+
transport?: SiteMcpServerTransport;
|
|
15368
15469
|
/** HTTP headers sent with requests to this server */
|
|
15369
15470
|
headers?: SiteMcpServerHeaders;
|
|
15370
15471
|
/** 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 +15834,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
15733
15834
|
installGitSyncProviderOnTarget: (data: {
|
|
15734
15835
|
/** The provider of the Git Sync installation. */
|
|
15735
15836
|
provider: GitSyncInstallationProvider;
|
|
15736
|
-
/** Resource targeted by a Git Sync installation.
|
|
15837
|
+
/** Resource targeted by a Git Sync installation. */
|
|
15737
15838
|
target: GitSyncInstallationTarget;
|
|
15738
15839
|
}, params?: RequestParams) => Promise<HttpResponse<GitSyncInstallation, {
|
|
15739
15840
|
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.181.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,
|