@gitbook/api 0.175.0 → 0.177.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 +103 -15
- package/dist/constants.d.ts +7 -3
- package/dist/index.cjs +36 -6
- package/dist/index.js +30 -5
- package/package.json +1 -1
- package/spec/openapi.json +258 -30
- package/spec/openapi.yaml +167 -16
package/dist/client.d.ts
CHANGED
|
@@ -260,14 +260,21 @@ export declare enum AIModel {
|
|
|
260
260
|
ReasoningMedium = "reasoning-medium",
|
|
261
261
|
ReasoningHigh = "reasoning-high"
|
|
262
262
|
}
|
|
263
|
+
/** The phase of a step in a message from the AI agent. */
|
|
264
|
+
export declare enum AIMessageStepPhase {
|
|
265
|
+
Commentary = "commentary",
|
|
266
|
+
FinalAnswer = "final_answer"
|
|
267
|
+
}
|
|
263
268
|
export declare enum AIMessageRole {
|
|
264
269
|
User = "user",
|
|
265
|
-
Assistant = "assistant"
|
|
270
|
+
Assistant = "assistant",
|
|
271
|
+
Developer = "developer"
|
|
266
272
|
}
|
|
267
273
|
export declare enum SiteConfigurableChannelType {
|
|
268
274
|
BuiltinSlack = "builtin:slack",
|
|
269
275
|
BuiltinDiscord = "builtin:discord",
|
|
270
|
-
BuiltinGithub = "builtin:github"
|
|
276
|
+
BuiltinGithub = "builtin:github",
|
|
277
|
+
BuiltinLinear = "builtin:linear"
|
|
271
278
|
}
|
|
272
279
|
export declare enum SiteCoreChannelType {
|
|
273
280
|
Site = "site",
|
|
@@ -663,6 +670,8 @@ export declare enum SiteFeatureKey {
|
|
|
663
670
|
SitesAds = "sites-ads",
|
|
664
671
|
SitesAiSearch = "sites-ai-search",
|
|
665
672
|
SitesAiAssistant = "sites-ai-assistant",
|
|
673
|
+
SitesConnections = "sites-connections",
|
|
674
|
+
SitesChannels = "sites-channels",
|
|
666
675
|
SitesEmbed = "sites-embed",
|
|
667
676
|
SitesApiPlayground = "sites-api-playground",
|
|
668
677
|
SitesBasicCustomization = "sites-basic-customization",
|
|
@@ -1087,6 +1096,10 @@ export interface User {
|
|
|
1087
1096
|
location: string;
|
|
1088
1097
|
};
|
|
1089
1098
|
}
|
|
1099
|
+
export interface APITemporaryToken {
|
|
1100
|
+
/** Temporary access token to authenticate with the API */
|
|
1101
|
+
token: string;
|
|
1102
|
+
}
|
|
1090
1103
|
export interface List {
|
|
1091
1104
|
next?: {
|
|
1092
1105
|
/** Unique identifier to query the next results page */
|
|
@@ -1825,6 +1838,8 @@ export interface DocumentTableViewGrid {
|
|
|
1825
1838
|
hideHeader: boolean;
|
|
1826
1839
|
/** Should we keep the table header sticky while the page scrolls */
|
|
1827
1840
|
stickyHeader?: boolean;
|
|
1841
|
+
/** Should we keep the first visible table column sticky while horizontally scrolling */
|
|
1842
|
+
stickyFirstColumn?: boolean;
|
|
1828
1843
|
/**
|
|
1829
1844
|
* Tables in GitBook originally used a scaled width approach i.e. the width defined
|
|
1830
1845
|
* in columnWidths would be scaled to ensure a 100% width table.
|
|
@@ -1976,7 +1991,7 @@ export interface DocumentBlockDivider {
|
|
|
1976
1991
|
isVoid: true;
|
|
1977
1992
|
data: object;
|
|
1978
1993
|
}
|
|
1979
|
-
export type DocumentBlocksTopLevels = DocumentBlocksEssentials | DocumentBlockQuote | DocumentBlockHint | DocumentBlockImages | DocumentBlockFile | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockCode | DocumentBlockMath | DocumentBlockExpandable | DocumentBlockTabs | DocumentBlockTable | DocumentBlockOpenAPI | DocumentBlockOpenAPIOperation | DocumentBlockOpenAPISchemas | DocumentBlockOpenAPIWebhook | DocumentBlockContentRef | DocumentBlockIntegration | DocumentBlockReusableContent | DocumentBlockStepper | DocumentBlockIf | DocumentBlockColumns;
|
|
1994
|
+
export type DocumentBlocksTopLevels = DocumentBlocksEssentials | DocumentBlockQuote | DocumentBlockHint | DocumentBlockImages | DocumentBlockFile | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockCode | DocumentBlockMath | DocumentBlockExpandable | DocumentBlockTabs | DocumentBlockTable | DocumentBlockOpenAPI | DocumentBlockOpenAPIOperation | DocumentBlockOpenAPISchemas | DocumentBlockOpenAPIWebhook | DocumentBlockContentRef | DocumentBlockIntegration | DocumentBlockReusableContent | DocumentBlockStepper | DocumentBlockIf | DocumentBlockColumns | DocumentBlockUpdates;
|
|
1980
1995
|
export interface DocumentBlockIf {
|
|
1981
1996
|
object: "block";
|
|
1982
1997
|
type: "if";
|
|
@@ -2722,6 +2737,21 @@ export type RevisionTypeEdits = RevisionBase & {
|
|
|
2722
2737
|
* @maxLength 100
|
|
2723
2738
|
*/
|
|
2724
2739
|
export type ChangeRequestSubject = string;
|
|
2740
|
+
/**
|
|
2741
|
+
* Optional title to display for the link.
|
|
2742
|
+
* @maxLength 128
|
|
2743
|
+
*/
|
|
2744
|
+
export type ChangeRequestLinkTitle = string;
|
|
2745
|
+
export interface ChangeRequestLink {
|
|
2746
|
+
ref: ContentRefURL;
|
|
2747
|
+
/** Optional title to display for the link. */
|
|
2748
|
+
title?: ChangeRequestLinkTitle;
|
|
2749
|
+
}
|
|
2750
|
+
/**
|
|
2751
|
+
* External links associated with the change request.
|
|
2752
|
+
* @maxItems 10
|
|
2753
|
+
*/
|
|
2754
|
+
export type ChangeRequestLinks = ChangeRequestLink[];
|
|
2725
2755
|
export interface ChangeRequest {
|
|
2726
2756
|
/** Type of Object, always equals to "change-request" */
|
|
2727
2757
|
object: "change-request";
|
|
@@ -2759,6 +2789,8 @@ export interface ChangeRequest {
|
|
|
2759
2789
|
};
|
|
2760
2790
|
/** If true, the change request is not up-to-date with latest changes in the main content. */
|
|
2761
2791
|
outdated: boolean;
|
|
2792
|
+
/** External links associated with the change request. */
|
|
2793
|
+
links?: ChangeRequestLinks;
|
|
2762
2794
|
/** URLs associated with the object */
|
|
2763
2795
|
urls: {
|
|
2764
2796
|
/**
|
|
@@ -4747,10 +4779,6 @@ export interface UpdateIntegrationInstallation {
|
|
|
4747
4779
|
/** Describe whether all sites have been selected or there's a selection involved */
|
|
4748
4780
|
site_selection?: IntegrationInstallationSiteSelection;
|
|
4749
4781
|
}
|
|
4750
|
-
export interface APITemporaryToken {
|
|
4751
|
-
/** Temporary access token to authenticate with the API */
|
|
4752
|
-
token: string;
|
|
4753
|
-
}
|
|
4754
4782
|
export interface UpdateIntegrationSpaceInstallation {
|
|
4755
4783
|
/** External IDs assigned by the integration. */
|
|
4756
4784
|
externalIds?: IntegrationInstallationExternalIds;
|
|
@@ -6049,7 +6077,7 @@ export type BillingOperationPreviewResponse = {
|
|
|
6049
6077
|
invoice?: BillingInvoicePreview;
|
|
6050
6078
|
};
|
|
6051
6079
|
/** The reason or feature that triggered the site upgrade */
|
|
6052
|
-
export type SiteUpgradeReason = SiteFeatureKey | "settings" | "billing-page" | "end-of-trial";
|
|
6080
|
+
export type SiteUpgradeReason = SiteFeatureKey | BillingMeter | "settings" | "billing-page" | "end-of-trial";
|
|
6053
6081
|
export type SitePublishingAuth = (VisitorAuthCustomBackend | VisitorAuthIntegrationBackend) & {
|
|
6054
6082
|
/** Type of Object, always equals to "publishing-auth" */
|
|
6055
6083
|
object: "publishing-auth";
|
|
@@ -6347,6 +6375,18 @@ export interface ContextUsageSettings {
|
|
|
6347
6375
|
/** Relative score adjustment applied to records from a connection when searching. */
|
|
6348
6376
|
searchBoost: ContextSearchBoost;
|
|
6349
6377
|
}
|
|
6378
|
+
/**
|
|
6379
|
+
* A YouTube channel ID starting with "UC".
|
|
6380
|
+
* @pattern ^UC[A-Za-z0-9_-]{22}$
|
|
6381
|
+
*/
|
|
6382
|
+
export type YoutubeChannelId = string;
|
|
6383
|
+
/**
|
|
6384
|
+
* A YouTube channel handle starting with "@".
|
|
6385
|
+
* @pattern ^@[A-Za-z0-9._-]{3,100}$
|
|
6386
|
+
*/
|
|
6387
|
+
export type YoutubeChannelName = string;
|
|
6388
|
+
/** A YouTube channel identifier, either a channel ID or a channel handle. */
|
|
6389
|
+
export type YoutubeChannelPattern = YoutubeChannelId | YoutubeChannelName;
|
|
6350
6390
|
export type ContextConnectorSetup = {
|
|
6351
6391
|
connector: "builtin:email";
|
|
6352
6392
|
} | {
|
|
@@ -6363,8 +6403,8 @@ export type ContextConnectorSetup = {
|
|
|
6363
6403
|
} | {
|
|
6364
6404
|
connector: "builtin:youtube";
|
|
6365
6405
|
setupSettings: {
|
|
6366
|
-
/**
|
|
6367
|
-
channelId:
|
|
6406
|
+
/** A YouTube channel identifier, either a channel ID or a channel handle. */
|
|
6407
|
+
channelId: YoutubeChannelPattern;
|
|
6368
6408
|
};
|
|
6369
6409
|
} | {
|
|
6370
6410
|
connector: "builtin:github-discussions";
|
|
@@ -6807,9 +6847,11 @@ export interface AIAttachmentFile {
|
|
|
6807
6847
|
export type AIAttachment = AIAttachmentImage | AIAttachmentFile;
|
|
6808
6848
|
/** A step in a message from the AI agent. */
|
|
6809
6849
|
export interface AIMessageStep {
|
|
6810
|
-
content
|
|
6850
|
+
content?: JSONDocument;
|
|
6811
6851
|
reasoning?: JSONDocument;
|
|
6812
6852
|
toolCalls?: AIToolCall[];
|
|
6853
|
+
/** The phase of a step in a message from the AI agent. */
|
|
6854
|
+
phase?: AIMessageStepPhase;
|
|
6813
6855
|
/** The timing of the step. */
|
|
6814
6856
|
timing?: {
|
|
6815
6857
|
reasoning?: Timerange;
|
|
@@ -6908,13 +6950,25 @@ export interface OrganizationPointer {
|
|
|
6908
6950
|
/** Unique identifier for the organization */
|
|
6909
6951
|
organization: string;
|
|
6910
6952
|
}
|
|
6953
|
+
/** Direct site permission origin. */
|
|
6954
|
+
export interface UserSitePermissionSiteOrigin {
|
|
6955
|
+
type: "site";
|
|
6956
|
+
/** Unique identifier for the site */
|
|
6957
|
+
site: string;
|
|
6958
|
+
/** Why the permission was enforced at the site level. */
|
|
6959
|
+
reason: "member" | "team" | "default";
|
|
6960
|
+
/** Unique identifier for the team when the permission comes from a team override. */
|
|
6961
|
+
team?: string;
|
|
6962
|
+
}
|
|
6963
|
+
/** The origin that enforced the effective permission level for a user in a site. */
|
|
6964
|
+
export type UserSitePermissionOrigin = SpacePointer | OrganizationPointer | UserSitePermissionSiteOrigin;
|
|
6911
6965
|
/** Permission of a user in a site. */
|
|
6912
6966
|
export interface UserSitePermission {
|
|
6913
6967
|
/** The role of a member in an organization, null for guests */
|
|
6914
6968
|
permission: MemberRoleOrGuest;
|
|
6915
6969
|
user: User;
|
|
6916
|
-
/** The
|
|
6917
|
-
origin:
|
|
6970
|
+
/** The origin that enforced the effective permission level for a user in a site. */
|
|
6971
|
+
origin: UserSitePermissionOrigin;
|
|
6918
6972
|
}
|
|
6919
6973
|
/** Permission override of a user in a site. */
|
|
6920
6974
|
export interface UserSitePermissionOverride {
|
|
@@ -6981,6 +7035,16 @@ export interface AIStreamResponseStart {
|
|
|
6981
7035
|
/** When the agent is responding to a comment. */
|
|
6982
7036
|
task?: AIMessageTask;
|
|
6983
7037
|
}
|
|
7038
|
+
/** Message emitted by the server to indicate the start of a step in the AI response. */
|
|
7039
|
+
export interface AIStreamResponseStepStart {
|
|
7040
|
+
type: "response_step_start";
|
|
7041
|
+
/** The ID of the message that this event is composing. */
|
|
7042
|
+
messageId: string;
|
|
7043
|
+
/** The index of the step of the message that this event is composing. */
|
|
7044
|
+
stepIndex: number;
|
|
7045
|
+
/** The phase of a step in a message from the AI agent. */
|
|
7046
|
+
phase?: AIMessageStepPhase;
|
|
7047
|
+
}
|
|
6984
7048
|
/** Message emitted by the server to indicate the end of the AI response. It contains the ID of the response to be referenced for followup requests. */
|
|
6985
7049
|
export interface AIStreamResponseFinish {
|
|
6986
7050
|
type: "response_finish";
|
|
@@ -7054,7 +7118,7 @@ export interface AIStreamResponseAttachment {
|
|
|
7054
7118
|
stepIndex: number;
|
|
7055
7119
|
attachment: AIAttachment;
|
|
7056
7120
|
}
|
|
7057
|
-
export type AIStreamResponse = AIStreamResponseStart | AIStreamResponseFinish | AIStreamResponseDocument | AIStreamResponseObject | AIStreamResponseToolCall | AIStreamResponseToolCallPending | AIStreamResponseFollowupSuggestion | AIStreamResponseAttachment;
|
|
7121
|
+
export type AIStreamResponse = AIStreamResponseStart | AIStreamResponseStepStart | AIStreamResponseFinish | AIStreamResponseDocument | AIStreamResponseObject | AIStreamResponseToolCall | AIStreamResponseToolCallPending | AIStreamResponseFollowupSuggestion | AIStreamResponseAttachment;
|
|
7058
7122
|
export interface SiteAgentSettingsInput {
|
|
7059
7123
|
/** Settings related to scanning for a site. */
|
|
7060
7124
|
scans: {
|
|
@@ -7606,6 +7670,8 @@ export interface SiteMcpServer {
|
|
|
7606
7670
|
url: URL;
|
|
7607
7671
|
/** HTTP headers sent with requests to this server */
|
|
7608
7672
|
headers: SiteMcpServerHeaders;
|
|
7673
|
+
/** Conditional expression used to evaluate whether the MCP server should be available to the site's visitor. */
|
|
7674
|
+
condition?: Expression;
|
|
7609
7675
|
/** URLs associated with the object */
|
|
7610
7676
|
urls: {
|
|
7611
7677
|
/**
|
|
@@ -7631,6 +7697,12 @@ export type SiteChannelSetup = {
|
|
|
7631
7697
|
/** List of allowed Slack channel names or patterns. If empty, all channels are allowed. */
|
|
7632
7698
|
allowedChannels?: GenericChannelPattern[];
|
|
7633
7699
|
};
|
|
7700
|
+
} | {
|
|
7701
|
+
type: "builtin:linear";
|
|
7702
|
+
setupSettings: {
|
|
7703
|
+
/** List of allowed Linear team keys or patterns. If empty, all teams are allowed. */
|
|
7704
|
+
allowedTeams?: GenericChannelPattern[];
|
|
7705
|
+
};
|
|
7634
7706
|
} | {
|
|
7635
7707
|
type: "builtin:github";
|
|
7636
7708
|
setupSettings: {
|
|
@@ -8712,6 +8784,16 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8712
8784
|
message: string;
|
|
8713
8785
|
};
|
|
8714
8786
|
}>>;
|
|
8787
|
+
/**
|
|
8788
|
+
* @description Generates a JWT for the authenticated user. This token is used by the frontend notifications client to access user endpoints.
|
|
8789
|
+
*
|
|
8790
|
+
* @tags users
|
|
8791
|
+
* @name CreateUserNotificationsToken
|
|
8792
|
+
* @summary Create a JWT to access the in-app notifications service
|
|
8793
|
+
* @request POST:/user/notifications/token
|
|
8794
|
+
* @secure
|
|
8795
|
+
*/
|
|
8796
|
+
createUserNotificationsToken: (params?: RequestParams) => Promise<HttpResponse<APITemporaryToken, any>>;
|
|
8715
8797
|
};
|
|
8716
8798
|
users: {
|
|
8717
8799
|
/**
|
|
@@ -9507,6 +9589,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
9507
9589
|
/** Subject of the change request */
|
|
9508
9590
|
subject?: ChangeRequestSubject;
|
|
9509
9591
|
description?: JSONDocument;
|
|
9592
|
+
/** External links associated with the change request. */
|
|
9593
|
+
links?: ChangeRequestLinks;
|
|
9510
9594
|
status?: "draft" | "open" | "archived";
|
|
9511
9595
|
}, params?: RequestParams) => Promise<HttpResponse<ChangeRequest, any>>;
|
|
9512
9596
|
/**
|
|
@@ -14093,7 +14177,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14093
14177
|
*/
|
|
14094
14178
|
order?: "asc" | "desc";
|
|
14095
14179
|
/** Sort questions by latest ask activity, answered rate, or positive feedback rate. If omitted, ordering stays on canonical question creation date to preserve current behavior. */
|
|
14096
|
-
sort?: "askedAt" | "stats.answered" | "stats.feedback";
|
|
14180
|
+
sort?: "askedAt" | "stats.answered" | "stats.feedback" | "stats.answers";
|
|
14097
14181
|
/** Identifier of the page results to fetch. */
|
|
14098
14182
|
page?: string;
|
|
14099
14183
|
/**
|
|
@@ -15029,6 +15113,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
15029
15113
|
url: URL;
|
|
15030
15114
|
/** HTTP headers sent with requests to this server */
|
|
15031
15115
|
headers: SiteMcpServerHeaders;
|
|
15116
|
+
/** 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. */
|
|
15117
|
+
condition?: Expression | null;
|
|
15032
15118
|
}, params?: RequestParams) => Promise<HttpResponse<SiteMcpServer, any>>;
|
|
15033
15119
|
/**
|
|
15034
15120
|
* No description
|
|
@@ -15059,6 +15145,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
15059
15145
|
url?: string;
|
|
15060
15146
|
/** HTTP headers sent with requests to this server */
|
|
15061
15147
|
headers?: SiteMcpServerHeaders;
|
|
15148
|
+
/** 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. */
|
|
15149
|
+
condition?: Expression | null;
|
|
15062
15150
|
}, params?: RequestParams) => Promise<HttpResponse<SiteMcpServer, any>>;
|
|
15063
15151
|
/**
|
|
15064
15152
|
* No description
|
package/dist/constants.d.ts
CHANGED
|
@@ -25,6 +25,7 @@ export declare const REVISION_PAGE_LAYOUT_OPTIONS_COVER_SIZE_ENUM: ["hero", "ful
|
|
|
25
25
|
export declare const CHANGE_REQUEST_STATUS_ENUM: ["draft", "open", "archived", "merged"];
|
|
26
26
|
export declare const CHANGE_REQUEST_SUBJECT_MAX_LENGTH = 100;
|
|
27
27
|
export declare const CHANGE_REQUEST_SUBJECT_MIN_LENGTH = 0;
|
|
28
|
+
export declare const CHANGE_REQUEST_LINK_TITLE_MAX_LENGTH = 128;
|
|
28
29
|
export declare const ORGANIZATION_TITLE_MAX_LENGTH = 255;
|
|
29
30
|
export declare const ORGANIZATION_TITLE_MIN_LENGTH = 2;
|
|
30
31
|
export declare const ORGANIZATION_TITLE_PATTERN = "\\S.*\\S";
|
|
@@ -79,7 +80,7 @@ export declare const SITE_PROXY_ORIGIN_PATTERN = "^([\\w-]+\\.)*[\\w-]+\\.[a-zA-
|
|
|
79
80
|
export declare const SITE_VISIBILITY_ENUM: ["public", "unlisted", "share-link", "visitor-auth"];
|
|
80
81
|
export declare const SITE_PERMISSIONS_MODEL_ENUM: ["legacy", "site"];
|
|
81
82
|
export declare const SITE_ADS_TOPIC_ENUM: ["webdev", "crypto"];
|
|
82
|
-
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-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"];
|
|
83
|
+
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"];
|
|
83
84
|
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"];
|
|
84
85
|
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"];
|
|
85
86
|
export declare const SITE_SECTION_TITLE_MAX_LENGTH = 128;
|
|
@@ -150,12 +151,15 @@ export declare const CONTEXT_CONNECTION_LABEL_MAX_LENGTH = 128;
|
|
|
150
151
|
export declare const CONTEXT_CONNECTION_LABEL_MIN_LENGTH = 0;
|
|
151
152
|
export declare const CONTEXT_CONNECTION_STATUS_ENUM: ["pending", "syncing", "succeeded", "failed"];
|
|
152
153
|
export declare const CONTEXT_SEARCH_BOOST_ENUM: ["x0.8", "x1.0", "x1.2"];
|
|
154
|
+
export declare const YOUTUBE_CHANNEL_ID_PATTERN = "^UC[A-Za-z0-9_-]{22}$";
|
|
155
|
+
export declare const YOUTUBE_CHANNEL_NAME_PATTERN = "^@[A-Za-z0-9._-]{3,100}$";
|
|
153
156
|
export declare const SITE_QUESTION_ANSWER_RELEVANCE_ENUM: ["relevant", "spam", "off-topic", "unclear"];
|
|
154
157
|
export declare const SITE_QUESTION_ANSWER_RESOLUTION_ENUM: ["no", "partially", "yes"];
|
|
155
158
|
export declare const SITE_QUESTION_ANSWER_HELPFULNESS_ENUM: ["low", "medium", "high"];
|
|
156
159
|
export declare const SITE_CORE_CHANNEL_TYPE_ENUM: ["site", "embed", "api"];
|
|
157
|
-
export declare const SITE_CONFIGURABLE_CHANNEL_TYPE_ENUM: ["builtin:slack", "builtin:discord", "builtin:github"];
|
|
158
|
-
export declare const AIMESSAGE_ROLE_ENUM: ["user", "assistant"];
|
|
160
|
+
export declare const SITE_CONFIGURABLE_CHANNEL_TYPE_ENUM: ["builtin:slack", "builtin:discord", "builtin:github", "builtin:linear"];
|
|
161
|
+
export declare const AIMESSAGE_ROLE_ENUM: ["user", "assistant", "developer"];
|
|
162
|
+
export declare const AIMESSAGE_STEP_PHASE_ENUM: ["commentary", "final_answer"];
|
|
159
163
|
export declare const AIMODEL_ENUM: ["fast", "reasoning-low", "reasoning-medium", "reasoning-high"];
|
|
160
164
|
export declare const SITE_SETTINGS_SCAN_TOPICS_ENUM: ["auto", "never"];
|
|
161
165
|
export declare const SITE_SETTINGS_FINDING_CHANGE_REQUESTS_ENUM: ["always", "auto-fixable", "never"];
|
package/dist/index.cjs
CHANGED
|
@@ -181,8 +181,10 @@ var src_exports = {};
|
|
|
181
181
|
__export(src_exports, {
|
|
182
182
|
AGENT_STATUS_ENUM: () => AGENT_STATUS_ENUM,
|
|
183
183
|
AIMESSAGE_ROLE_ENUM: () => AIMESSAGE_ROLE_ENUM,
|
|
184
|
+
AIMESSAGE_STEP_PHASE_ENUM: () => AIMESSAGE_STEP_PHASE_ENUM,
|
|
184
185
|
AIMODEL_ENUM: () => AIMODEL_ENUM,
|
|
185
186
|
AIMessageRole: () => AIMessageRole,
|
|
187
|
+
AIMessageStepPhase: () => AIMessageStepPhase,
|
|
186
188
|
AIModel: () => AIModel,
|
|
187
189
|
APIINTEGRATION_SCOPE_ENUM: () => APIINTEGRATION_SCOPE_ENUM,
|
|
188
190
|
APIIntegrationScope: () => APIIntegrationScope,
|
|
@@ -208,6 +210,7 @@ __export(src_exports, {
|
|
|
208
210
|
BillingTrialStatus: () => BillingTrialStatus,
|
|
209
211
|
BlockSource: () => BlockSource,
|
|
210
212
|
CARDS_IMAGE_OBJECT_FIT_ENUM: () => CARDS_IMAGE_OBJECT_FIT_ENUM,
|
|
213
|
+
CHANGE_REQUEST_LINK_TITLE_MAX_LENGTH: () => CHANGE_REQUEST_LINK_TITLE_MAX_LENGTH,
|
|
211
214
|
CHANGE_REQUEST_ORDER_BY_ENUM: () => CHANGE_REQUEST_ORDER_BY_ENUM,
|
|
212
215
|
CHANGE_REQUEST_REVIEW_STATUS_ENUM: () => CHANGE_REQUEST_REVIEW_STATUS_ENUM,
|
|
213
216
|
CHANGE_REQUEST_STATUS_ENUM: () => CHANGE_REQUEST_STATUS_ENUM,
|
|
@@ -498,13 +501,15 @@ __export(src_exports, {
|
|
|
498
501
|
TranslationStatus: () => TranslationStatus,
|
|
499
502
|
URL_MAX_LENGTH: () => URL_MAX_LENGTH,
|
|
500
503
|
VERTICAL_ALIGNMENT_ENUM: () => VERTICAL_ALIGNMENT_ENUM,
|
|
501
|
-
VerticalAlignment: () => VerticalAlignment
|
|
504
|
+
VerticalAlignment: () => VerticalAlignment,
|
|
505
|
+
YOUTUBE_CHANNEL_ID_PATTERN: () => YOUTUBE_CHANNEL_ID_PATTERN,
|
|
506
|
+
YOUTUBE_CHANNEL_NAME_PATTERN: () => YOUTUBE_CHANNEL_NAME_PATTERN
|
|
502
507
|
});
|
|
503
508
|
module.exports = __toCommonJS(src_exports);
|
|
504
509
|
|
|
505
510
|
// package.json
|
|
506
511
|
var name = "@gitbook/api";
|
|
507
|
-
var version = "0.
|
|
512
|
+
var version = "0.177.0";
|
|
508
513
|
|
|
509
514
|
// src/client.ts
|
|
510
515
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -883,15 +888,22 @@ var AIModel = /* @__PURE__ */ ((AIModel2) => {
|
|
|
883
888
|
AIModel2["ReasoningHigh"] = "reasoning-high";
|
|
884
889
|
return AIModel2;
|
|
885
890
|
})(AIModel || {});
|
|
891
|
+
var AIMessageStepPhase = /* @__PURE__ */ ((AIMessageStepPhase2) => {
|
|
892
|
+
AIMessageStepPhase2["Commentary"] = "commentary";
|
|
893
|
+
AIMessageStepPhase2["FinalAnswer"] = "final_answer";
|
|
894
|
+
return AIMessageStepPhase2;
|
|
895
|
+
})(AIMessageStepPhase || {});
|
|
886
896
|
var AIMessageRole = /* @__PURE__ */ ((AIMessageRole2) => {
|
|
887
897
|
AIMessageRole2["User"] = "user";
|
|
888
898
|
AIMessageRole2["Assistant"] = "assistant";
|
|
899
|
+
AIMessageRole2["Developer"] = "developer";
|
|
889
900
|
return AIMessageRole2;
|
|
890
901
|
})(AIMessageRole || {});
|
|
891
902
|
var SiteConfigurableChannelType = /* @__PURE__ */ ((SiteConfigurableChannelType2) => {
|
|
892
903
|
SiteConfigurableChannelType2["BuiltinSlack"] = "builtin:slack";
|
|
893
904
|
SiteConfigurableChannelType2["BuiltinDiscord"] = "builtin:discord";
|
|
894
905
|
SiteConfigurableChannelType2["BuiltinGithub"] = "builtin:github";
|
|
906
|
+
SiteConfigurableChannelType2["BuiltinLinear"] = "builtin:linear";
|
|
895
907
|
return SiteConfigurableChannelType2;
|
|
896
908
|
})(SiteConfigurableChannelType || {});
|
|
897
909
|
var SiteCoreChannelType = /* @__PURE__ */ ((SiteCoreChannelType2) => {
|
|
@@ -1249,6 +1261,8 @@ var SiteFeatureKey = /* @__PURE__ */ ((SiteFeatureKey2) => {
|
|
|
1249
1261
|
SiteFeatureKey2["SitesAds"] = "sites-ads";
|
|
1250
1262
|
SiteFeatureKey2["SitesAiSearch"] = "sites-ai-search";
|
|
1251
1263
|
SiteFeatureKey2["SitesAiAssistant"] = "sites-ai-assistant";
|
|
1264
|
+
SiteFeatureKey2["SitesConnections"] = "sites-connections";
|
|
1265
|
+
SiteFeatureKey2["SitesChannels"] = "sites-channels";
|
|
1252
1266
|
SiteFeatureKey2["SitesEmbed"] = "sites-embed";
|
|
1253
1267
|
SiteFeatureKey2["SitesApiPlayground"] = "sites-api-playground";
|
|
1254
1268
|
SiteFeatureKey2["SitesBasicCustomization"] = "sites-basic-customization";
|
|
@@ -1818,6 +1832,13 @@ var Api = class extends HttpClient {
|
|
|
1818
1832
|
secure: true,
|
|
1819
1833
|
format: "json",
|
|
1820
1834
|
...params
|
|
1835
|
+
}),
|
|
1836
|
+
createUserNotificationsToken: (params = {}) => this.request({
|
|
1837
|
+
path: `/user/notifications/token`,
|
|
1838
|
+
method: "POST",
|
|
1839
|
+
secure: true,
|
|
1840
|
+
format: "json",
|
|
1841
|
+
...params
|
|
1821
1842
|
})
|
|
1822
1843
|
};
|
|
1823
1844
|
users = {
|
|
@@ -4563,6 +4584,7 @@ var REVISION_PAGE_LAYOUT_OPTIONS_COVER_SIZE_ENUM = ["hero", "full"];
|
|
|
4563
4584
|
var CHANGE_REQUEST_STATUS_ENUM = ["draft", "open", "archived", "merged"];
|
|
4564
4585
|
var CHANGE_REQUEST_SUBJECT_MAX_LENGTH = 100;
|
|
4565
4586
|
var CHANGE_REQUEST_SUBJECT_MIN_LENGTH = 0;
|
|
4587
|
+
var CHANGE_REQUEST_LINK_TITLE_MAX_LENGTH = 128;
|
|
4566
4588
|
var ORGANIZATION_TITLE_MAX_LENGTH = 255;
|
|
4567
4589
|
var ORGANIZATION_TITLE_MIN_LENGTH = 2;
|
|
4568
4590
|
var ORGANIZATION_TITLE_PATTERN = "\\S.*\\S";
|
|
@@ -4617,7 +4639,7 @@ var SITE_PROXY_ORIGIN_PATTERN = "^([\\w-]+\\.)*[\\w-]+\\.[a-zA-Z]{2,}(\\/[\\w-]+
|
|
|
4617
4639
|
var SITE_VISIBILITY_ENUM = ["public", "unlisted", "share-link", "visitor-auth"];
|
|
4618
4640
|
var SITE_PERMISSIONS_MODEL_ENUM = ["legacy", "site"];
|
|
4619
4641
|
var SITE_ADS_TOPIC_ENUM = ["webdev", "crypto"];
|
|
4620
|
-
var SITE_FEATURE_KEY_ENUM = ["sites-adaptive-content", "sites-advanced-customization", "sites-advanced-insights", "sites-ads", "sites-ai-search", "sites-ai-assistant", "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"];
|
|
4642
|
+
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"];
|
|
4621
4643
|
var SITE_CUSTOMIZATION_FEATURE_ENUM = ["header-logo", "header-primary-link", "theme-preset", "premium-fonts", "custom-icons", "footer-logo", "footer-links", "footer-copyright", "semantic-colors"];
|
|
4622
4644
|
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"];
|
|
4623
4645
|
var SITE_SECTION_TITLE_MAX_LENGTH = 128;
|
|
@@ -4688,12 +4710,15 @@ var CONTEXT_CONNECTION_LABEL_MAX_LENGTH = 128;
|
|
|
4688
4710
|
var CONTEXT_CONNECTION_LABEL_MIN_LENGTH = 0;
|
|
4689
4711
|
var CONTEXT_CONNECTION_STATUS_ENUM = ["pending", "syncing", "succeeded", "failed"];
|
|
4690
4712
|
var CONTEXT_SEARCH_BOOST_ENUM = ["x0.8", "x1.0", "x1.2"];
|
|
4713
|
+
var YOUTUBE_CHANNEL_ID_PATTERN = "^UC[A-Za-z0-9_-]{22}$";
|
|
4714
|
+
var YOUTUBE_CHANNEL_NAME_PATTERN = "^@[A-Za-z0-9._-]{3,100}$";
|
|
4691
4715
|
var SITE_QUESTION_ANSWER_RELEVANCE_ENUM = ["relevant", "spam", "off-topic", "unclear"];
|
|
4692
4716
|
var SITE_QUESTION_ANSWER_RESOLUTION_ENUM = ["no", "partially", "yes"];
|
|
4693
4717
|
var SITE_QUESTION_ANSWER_HELPFULNESS_ENUM = ["low", "medium", "high"];
|
|
4694
4718
|
var SITE_CORE_CHANNEL_TYPE_ENUM = ["site", "embed", "api"];
|
|
4695
|
-
var SITE_CONFIGURABLE_CHANNEL_TYPE_ENUM = ["builtin:slack", "builtin:discord", "builtin:github"];
|
|
4696
|
-
var AIMESSAGE_ROLE_ENUM = ["user", "assistant"];
|
|
4719
|
+
var SITE_CONFIGURABLE_CHANNEL_TYPE_ENUM = ["builtin:slack", "builtin:discord", "builtin:github", "builtin:linear"];
|
|
4720
|
+
var AIMESSAGE_ROLE_ENUM = ["user", "assistant", "developer"];
|
|
4721
|
+
var AIMESSAGE_STEP_PHASE_ENUM = ["commentary", "final_answer"];
|
|
4697
4722
|
var AIMODEL_ENUM = ["fast", "reasoning-low", "reasoning-medium", "reasoning-high"];
|
|
4698
4723
|
var SITE_SETTINGS_SCAN_TOPICS_ENUM = ["auto", "never"];
|
|
4699
4724
|
var SITE_SETTINGS_FINDING_CHANGE_REQUESTS_ENUM = ["always", "auto-fixable", "never"];
|
|
@@ -4807,8 +4832,10 @@ var GitBookAPI = class extends Api {
|
|
|
4807
4832
|
0 && (module.exports = {
|
|
4808
4833
|
AGENT_STATUS_ENUM,
|
|
4809
4834
|
AIMESSAGE_ROLE_ENUM,
|
|
4835
|
+
AIMESSAGE_STEP_PHASE_ENUM,
|
|
4810
4836
|
AIMODEL_ENUM,
|
|
4811
4837
|
AIMessageRole,
|
|
4838
|
+
AIMessageStepPhase,
|
|
4812
4839
|
AIModel,
|
|
4813
4840
|
APIINTEGRATION_SCOPE_ENUM,
|
|
4814
4841
|
APIIntegrationScope,
|
|
@@ -4834,6 +4861,7 @@ var GitBookAPI = class extends Api {
|
|
|
4834
4861
|
BillingTrialStatus,
|
|
4835
4862
|
BlockSource,
|
|
4836
4863
|
CARDS_IMAGE_OBJECT_FIT_ENUM,
|
|
4864
|
+
CHANGE_REQUEST_LINK_TITLE_MAX_LENGTH,
|
|
4837
4865
|
CHANGE_REQUEST_ORDER_BY_ENUM,
|
|
4838
4866
|
CHANGE_REQUEST_REVIEW_STATUS_ENUM,
|
|
4839
4867
|
CHANGE_REQUEST_STATUS_ENUM,
|
|
@@ -5124,5 +5152,7 @@ var GitBookAPI = class extends Api {
|
|
|
5124
5152
|
TranslationStatus,
|
|
5125
5153
|
URL_MAX_LENGTH,
|
|
5126
5154
|
VERTICAL_ALIGNMENT_ENUM,
|
|
5127
|
-
VerticalAlignment
|
|
5155
|
+
VerticalAlignment,
|
|
5156
|
+
YOUTUBE_CHANNEL_ID_PATTERN,
|
|
5157
|
+
YOUTUBE_CHANNEL_NAME_PATTERN
|
|
5128
5158
|
});
|
package/dist/index.js
CHANGED
|
@@ -172,7 +172,7 @@ var require_node = __commonJS({
|
|
|
172
172
|
|
|
173
173
|
// package.json
|
|
174
174
|
var name = "@gitbook/api";
|
|
175
|
-
var version = "0.
|
|
175
|
+
var version = "0.177.0";
|
|
176
176
|
|
|
177
177
|
// src/client.ts
|
|
178
178
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -551,15 +551,22 @@ var AIModel = /* @__PURE__ */ ((AIModel2) => {
|
|
|
551
551
|
AIModel2["ReasoningHigh"] = "reasoning-high";
|
|
552
552
|
return AIModel2;
|
|
553
553
|
})(AIModel || {});
|
|
554
|
+
var AIMessageStepPhase = /* @__PURE__ */ ((AIMessageStepPhase2) => {
|
|
555
|
+
AIMessageStepPhase2["Commentary"] = "commentary";
|
|
556
|
+
AIMessageStepPhase2["FinalAnswer"] = "final_answer";
|
|
557
|
+
return AIMessageStepPhase2;
|
|
558
|
+
})(AIMessageStepPhase || {});
|
|
554
559
|
var AIMessageRole = /* @__PURE__ */ ((AIMessageRole2) => {
|
|
555
560
|
AIMessageRole2["User"] = "user";
|
|
556
561
|
AIMessageRole2["Assistant"] = "assistant";
|
|
562
|
+
AIMessageRole2["Developer"] = "developer";
|
|
557
563
|
return AIMessageRole2;
|
|
558
564
|
})(AIMessageRole || {});
|
|
559
565
|
var SiteConfigurableChannelType = /* @__PURE__ */ ((SiteConfigurableChannelType2) => {
|
|
560
566
|
SiteConfigurableChannelType2["BuiltinSlack"] = "builtin:slack";
|
|
561
567
|
SiteConfigurableChannelType2["BuiltinDiscord"] = "builtin:discord";
|
|
562
568
|
SiteConfigurableChannelType2["BuiltinGithub"] = "builtin:github";
|
|
569
|
+
SiteConfigurableChannelType2["BuiltinLinear"] = "builtin:linear";
|
|
563
570
|
return SiteConfigurableChannelType2;
|
|
564
571
|
})(SiteConfigurableChannelType || {});
|
|
565
572
|
var SiteCoreChannelType = /* @__PURE__ */ ((SiteCoreChannelType2) => {
|
|
@@ -917,6 +924,8 @@ var SiteFeatureKey = /* @__PURE__ */ ((SiteFeatureKey2) => {
|
|
|
917
924
|
SiteFeatureKey2["SitesAds"] = "sites-ads";
|
|
918
925
|
SiteFeatureKey2["SitesAiSearch"] = "sites-ai-search";
|
|
919
926
|
SiteFeatureKey2["SitesAiAssistant"] = "sites-ai-assistant";
|
|
927
|
+
SiteFeatureKey2["SitesConnections"] = "sites-connections";
|
|
928
|
+
SiteFeatureKey2["SitesChannels"] = "sites-channels";
|
|
920
929
|
SiteFeatureKey2["SitesEmbed"] = "sites-embed";
|
|
921
930
|
SiteFeatureKey2["SitesApiPlayground"] = "sites-api-playground";
|
|
922
931
|
SiteFeatureKey2["SitesBasicCustomization"] = "sites-basic-customization";
|
|
@@ -1486,6 +1495,13 @@ var Api = class extends HttpClient {
|
|
|
1486
1495
|
secure: true,
|
|
1487
1496
|
format: "json",
|
|
1488
1497
|
...params
|
|
1498
|
+
}),
|
|
1499
|
+
createUserNotificationsToken: (params = {}) => this.request({
|
|
1500
|
+
path: `/user/notifications/token`,
|
|
1501
|
+
method: "POST",
|
|
1502
|
+
secure: true,
|
|
1503
|
+
format: "json",
|
|
1504
|
+
...params
|
|
1489
1505
|
})
|
|
1490
1506
|
};
|
|
1491
1507
|
users = {
|
|
@@ -4231,6 +4247,7 @@ var REVISION_PAGE_LAYOUT_OPTIONS_COVER_SIZE_ENUM = ["hero", "full"];
|
|
|
4231
4247
|
var CHANGE_REQUEST_STATUS_ENUM = ["draft", "open", "archived", "merged"];
|
|
4232
4248
|
var CHANGE_REQUEST_SUBJECT_MAX_LENGTH = 100;
|
|
4233
4249
|
var CHANGE_REQUEST_SUBJECT_MIN_LENGTH = 0;
|
|
4250
|
+
var CHANGE_REQUEST_LINK_TITLE_MAX_LENGTH = 128;
|
|
4234
4251
|
var ORGANIZATION_TITLE_MAX_LENGTH = 255;
|
|
4235
4252
|
var ORGANIZATION_TITLE_MIN_LENGTH = 2;
|
|
4236
4253
|
var ORGANIZATION_TITLE_PATTERN = "\\S.*\\S";
|
|
@@ -4285,7 +4302,7 @@ var SITE_PROXY_ORIGIN_PATTERN = "^([\\w-]+\\.)*[\\w-]+\\.[a-zA-Z]{2,}(\\/[\\w-]+
|
|
|
4285
4302
|
var SITE_VISIBILITY_ENUM = ["public", "unlisted", "share-link", "visitor-auth"];
|
|
4286
4303
|
var SITE_PERMISSIONS_MODEL_ENUM = ["legacy", "site"];
|
|
4287
4304
|
var SITE_ADS_TOPIC_ENUM = ["webdev", "crypto"];
|
|
4288
|
-
var SITE_FEATURE_KEY_ENUM = ["sites-adaptive-content", "sites-advanced-customization", "sites-advanced-insights", "sites-ads", "sites-ai-search", "sites-ai-assistant", "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"];
|
|
4305
|
+
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"];
|
|
4289
4306
|
var SITE_CUSTOMIZATION_FEATURE_ENUM = ["header-logo", "header-primary-link", "theme-preset", "premium-fonts", "custom-icons", "footer-logo", "footer-links", "footer-copyright", "semantic-colors"];
|
|
4290
4307
|
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"];
|
|
4291
4308
|
var SITE_SECTION_TITLE_MAX_LENGTH = 128;
|
|
@@ -4356,12 +4373,15 @@ var CONTEXT_CONNECTION_LABEL_MAX_LENGTH = 128;
|
|
|
4356
4373
|
var CONTEXT_CONNECTION_LABEL_MIN_LENGTH = 0;
|
|
4357
4374
|
var CONTEXT_CONNECTION_STATUS_ENUM = ["pending", "syncing", "succeeded", "failed"];
|
|
4358
4375
|
var CONTEXT_SEARCH_BOOST_ENUM = ["x0.8", "x1.0", "x1.2"];
|
|
4376
|
+
var YOUTUBE_CHANNEL_ID_PATTERN = "^UC[A-Za-z0-9_-]{22}$";
|
|
4377
|
+
var YOUTUBE_CHANNEL_NAME_PATTERN = "^@[A-Za-z0-9._-]{3,100}$";
|
|
4359
4378
|
var SITE_QUESTION_ANSWER_RELEVANCE_ENUM = ["relevant", "spam", "off-topic", "unclear"];
|
|
4360
4379
|
var SITE_QUESTION_ANSWER_RESOLUTION_ENUM = ["no", "partially", "yes"];
|
|
4361
4380
|
var SITE_QUESTION_ANSWER_HELPFULNESS_ENUM = ["low", "medium", "high"];
|
|
4362
4381
|
var SITE_CORE_CHANNEL_TYPE_ENUM = ["site", "embed", "api"];
|
|
4363
|
-
var SITE_CONFIGURABLE_CHANNEL_TYPE_ENUM = ["builtin:slack", "builtin:discord", "builtin:github"];
|
|
4364
|
-
var AIMESSAGE_ROLE_ENUM = ["user", "assistant"];
|
|
4382
|
+
var SITE_CONFIGURABLE_CHANNEL_TYPE_ENUM = ["builtin:slack", "builtin:discord", "builtin:github", "builtin:linear"];
|
|
4383
|
+
var AIMESSAGE_ROLE_ENUM = ["user", "assistant", "developer"];
|
|
4384
|
+
var AIMESSAGE_STEP_PHASE_ENUM = ["commentary", "final_answer"];
|
|
4365
4385
|
var AIMODEL_ENUM = ["fast", "reasoning-low", "reasoning-medium", "reasoning-high"];
|
|
4366
4386
|
var SITE_SETTINGS_SCAN_TOPICS_ENUM = ["auto", "never"];
|
|
4367
4387
|
var SITE_SETTINGS_FINDING_CHANGE_REQUESTS_ENUM = ["always", "auto-fixable", "never"];
|
|
@@ -4474,8 +4494,10 @@ var GitBookAPI = class extends Api {
|
|
|
4474
4494
|
export {
|
|
4475
4495
|
AGENT_STATUS_ENUM,
|
|
4476
4496
|
AIMESSAGE_ROLE_ENUM,
|
|
4497
|
+
AIMESSAGE_STEP_PHASE_ENUM,
|
|
4477
4498
|
AIMODEL_ENUM,
|
|
4478
4499
|
AIMessageRole,
|
|
4500
|
+
AIMessageStepPhase,
|
|
4479
4501
|
AIModel,
|
|
4480
4502
|
APIINTEGRATION_SCOPE_ENUM,
|
|
4481
4503
|
APIIntegrationScope,
|
|
@@ -4501,6 +4523,7 @@ export {
|
|
|
4501
4523
|
BillingTrialStatus,
|
|
4502
4524
|
BlockSource,
|
|
4503
4525
|
CARDS_IMAGE_OBJECT_FIT_ENUM,
|
|
4526
|
+
CHANGE_REQUEST_LINK_TITLE_MAX_LENGTH,
|
|
4504
4527
|
CHANGE_REQUEST_ORDER_BY_ENUM,
|
|
4505
4528
|
CHANGE_REQUEST_REVIEW_STATUS_ENUM,
|
|
4506
4529
|
CHANGE_REQUEST_STATUS_ENUM,
|
|
@@ -4791,5 +4814,7 @@ export {
|
|
|
4791
4814
|
TranslationStatus,
|
|
4792
4815
|
URL_MAX_LENGTH,
|
|
4793
4816
|
VERTICAL_ALIGNMENT_ENUM,
|
|
4794
|
-
VerticalAlignment
|
|
4817
|
+
VerticalAlignment,
|
|
4818
|
+
YOUTUBE_CHANNEL_ID_PATTERN,
|
|
4819
|
+
YOUTUBE_CHANNEL_NAME_PATTERN
|
|
4795
4820
|
};
|