@gitbook/api 0.158.0 → 0.160.1
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 +480 -17
- package/dist/constants.d.ts +10 -2
- package/dist/index.cjs +199 -8
- package/dist/index.js +188 -8
- package/package.json +5 -1
- package/spec/openapi.json +1307 -14
- package/spec/openapi.yaml +841 -12
package/dist/constants.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ export declare const CARDS_IMAGE_OBJECT_FIT_ENUM: ["contain", "fill", "cover"];
|
|
|
18
18
|
export declare const VERTICAL_ALIGNMENT_ENUM: ["top", "middle", "bottom"];
|
|
19
19
|
export declare const REVISION_PAGE_SLUG_MAX_LENGTH = 100;
|
|
20
20
|
export declare const REVISION_PAGE_SLUG_MIN_LENGTH = 0;
|
|
21
|
+
export declare const OPEN_APISPEC_VISIBILITY_ENUM: ["private", "public"];
|
|
21
22
|
export declare const REVISION_PAGE_LAYOUT_OPTIONS_WIDTH_ENUM: ["default", "wide"];
|
|
22
23
|
export declare const REVISION_PAGE_LAYOUT_OPTIONS_COVER_SIZE_ENUM: ["hero", "full"];
|
|
23
24
|
export declare const CHANGE_REQUEST_STATUS_ENUM: ["draft", "open", "archived", "merged"];
|
|
@@ -43,7 +44,6 @@ export declare const OPEN_APISPEC_SLUG_MAX_LENGTH = 100;
|
|
|
43
44
|
export declare const OPEN_APISPEC_SLUG_MIN_LENGTH = 1;
|
|
44
45
|
export declare const OPEN_APISPEC_SLUG_PATTERN = "^[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*$";
|
|
45
46
|
export declare const OPEN_APISPEC_PROCESSING_STATE_ENUM: ["pending", "progress", "complete"];
|
|
46
|
-
export declare const OPEN_APISPEC_VISIBILITY_ENUM: ["private", "public"];
|
|
47
47
|
export declare const OPEN_APISPEC_PROCESSING_ERROR_CODE_ENUM: ["FETCH_TIMEOUT", "FETCH_ERROR", "PARSE_ERROR"];
|
|
48
48
|
export declare const CONTENT_REFERENCE_STATUS_ENUM: ["ok", "broken", "in-app"];
|
|
49
49
|
export declare const CONTENT_REFERENCE_RELATION_ENUM: ["reference", "dependsOn"];
|
|
@@ -114,6 +114,7 @@ export declare const CUSTOMIZATION_DEFAULT_FONT_ENUM: ["ABCFavorit", "Inter", "R
|
|
|
114
114
|
export declare const CUSTOMIZATION_DEFAULT_MONOSPACE_FONT_ENUM: ["FiraCode", "IBMPlexMono", "JetBrainsMono", "SourceCodePro", "RobotoMono", "SpaceMono", "DMMono", "Inconsolata"];
|
|
115
115
|
export declare const CUSTOMIZATION_BACKGROUND_ENUM: ["plain", "match"];
|
|
116
116
|
export declare const CUSTOMIZATION_ICONS_STYLE_ENUM: ["regular", "solid", "duotone", "light", "thin"];
|
|
117
|
+
export declare const CUSTOMIZATION_CODE_THEME_ENUM: ["default-light", "default-dark", "monochrome-light", "monochrome-dark", "andromeeda", "aurora-x", "ayu-dark", "catppuccin-frappe", "catppuccin-latte", "catppuccin-macchiato", "catppuccin-mocha", "dark-plus", "dracula", "dracula-soft", "everforest-dark", "everforest-light", "github-dark", "github-dark-default", "github-dark-dimmed", "github-dark-high-contrast", "github-light", "github-light-default", "github-light-high-contrast", "gruvbox-dark-hard", "gruvbox-dark-medium", "gruvbox-dark-soft", "gruvbox-light-hard", "gruvbox-light-medium", "gruvbox-light-soft", "houston", "kanagawa-dragon", "kanagawa-lotus", "kanagawa-wave", "laserwave", "light-plus", "material-theme", "material-theme-darker", "material-theme-lighter", "material-theme-ocean", "material-theme-palenight", "min-dark", "min-light", "monokai", "night-owl", "nord", "one-dark-pro", "one-light", "plastic", "poimandres", "red", "rose-pine", "rose-pine-dawn", "rose-pine-moon", "slack-dark", "slack-ochin", "snazzy-light", "solarized-dark", "solarized-light", "synthwave-84", "tokyo-night", "vesper", "vitesse-black", "vitesse-dark", "vitesse-light"];
|
|
117
118
|
export declare const CUSTOMIZATION_SIDEBAR_BACKGROUND_STYLE_ENUM: ["default", "filled"];
|
|
118
119
|
export declare const CUSTOMIZATION_SIDEBAR_LIST_STYLE_ENUM: ["default", "pill", "line"];
|
|
119
120
|
export declare const CUSTOMIZATION_SEARCH_STYLE_ENUM: ["prominent", "subtle"];
|
|
@@ -132,6 +133,13 @@ export declare const SITE_SOCIAL_ACCOUNT_HANDLE_MAX_LENGTH = 128;
|
|
|
132
133
|
export declare const SITE_SOCIAL_ACCOUNT_HANDLE_MIN_LENGTH = 1;
|
|
133
134
|
export declare const SHARE_LINK_NAME_MAX_LENGTH = 50;
|
|
134
135
|
export declare const SHARE_LINK_NAME_MIN_LENGTH = 0;
|
|
136
|
+
export declare const CONTEXT_RECORD_TYPE_ENUM: ["ticket", "document"];
|
|
137
|
+
export declare const CONTEXT_RECORD_TITLE_MAX_LENGTH = 256;
|
|
138
|
+
export declare const CONTEXT_RECORD_TITLE_MIN_LENGTH = 1;
|
|
139
|
+
export declare const CONTEXT_RECORD_DESCRIPTION_MAX_LENGTH = 512;
|
|
140
|
+
export declare const CONTEXT_CONNECTION_LABEL_MAX_LENGTH = 128;
|
|
141
|
+
export declare const CONTEXT_CONNECTION_LABEL_MIN_LENGTH = 0;
|
|
142
|
+
export declare const CONTEXT_CONNECTION_STATUS_ENUM: ["pending", "syncing", "succeeded", "failed"];
|
|
135
143
|
export declare const AIMODEL_ENUM: ["fast", "reasoning-low", "reasoning-medium", "reasoning-high"];
|
|
136
144
|
export declare const SITE_INSIGHTS_DISPLAY_CONTEXT_ENUM: ["site", "embed"];
|
|
137
145
|
export declare const SITE_INSIGHTS_LINK_POSITION_ENUM: ["announcement", "header", "footer", "sidebar", "content"];
|
|
@@ -157,7 +165,7 @@ export declare const CLOUDFLARE_HOSTNAME_TLSVALIDATION_METHOD_ENUM: ["http", "tx
|
|
|
157
165
|
export declare const SHA256_MAX_LENGTH = 64;
|
|
158
166
|
export declare const SHA256_MIN_LENGTH = 64;
|
|
159
167
|
export declare const GIT_BOOK_USERS_ENUM: ["gitbook:agent"];
|
|
160
|
-
export declare const REVISION_SEMANTIC_CHANGE_TYPE_ENUM: ["page_created", "page_edited", "page_deleted", "page_moved", "file_created", "file_edited", "file_deleted", "custom_fields_edited"];
|
|
168
|
+
export declare const REVISION_SEMANTIC_CHANGE_TYPE_ENUM: ["page_created", "page_edited", "page_deleted", "page_moved", "file_created", "file_edited", "file_deleted", "custom_fields_edited", "tag_created", "tag_deleted", "tag_edited"];
|
|
161
169
|
export declare const GIT_SYNC_OPERATION_STATE_ENUM: ["running", "failure", "success"];
|
|
162
170
|
export declare const GIT_SYNC_OPERATION_DIRECTION_ENUM: ["export", "import"];
|
|
163
171
|
export declare const GIT_SYNC_OPERATION_STAGE_ENUM: ["repo_fetch", "config_check", "content_process", "finalize"];
|
package/dist/index.cjs
CHANGED
|
@@ -222,11 +222,19 @@ __export(src_exports, {
|
|
|
222
222
|
CONTENT_REFERENCE_RELATION_ENUM: () => CONTENT_REFERENCE_RELATION_ENUM,
|
|
223
223
|
CONTENT_REFERENCE_STATUS_ENUM: () => CONTENT_REFERENCE_STATUS_ENUM,
|
|
224
224
|
CONTENT_VISIBILITY_ENUM: () => CONTENT_VISIBILITY_ENUM,
|
|
225
|
+
CONTEXT_CONNECTION_LABEL_MAX_LENGTH: () => CONTEXT_CONNECTION_LABEL_MAX_LENGTH,
|
|
226
|
+
CONTEXT_CONNECTION_LABEL_MIN_LENGTH: () => CONTEXT_CONNECTION_LABEL_MIN_LENGTH,
|
|
227
|
+
CONTEXT_CONNECTION_STATUS_ENUM: () => CONTEXT_CONNECTION_STATUS_ENUM,
|
|
228
|
+
CONTEXT_RECORD_DESCRIPTION_MAX_LENGTH: () => CONTEXT_RECORD_DESCRIPTION_MAX_LENGTH,
|
|
229
|
+
CONTEXT_RECORD_TITLE_MAX_LENGTH: () => CONTEXT_RECORD_TITLE_MAX_LENGTH,
|
|
230
|
+
CONTEXT_RECORD_TITLE_MIN_LENGTH: () => CONTEXT_RECORD_TITLE_MIN_LENGTH,
|
|
231
|
+
CONTEXT_RECORD_TYPE_ENUM: () => CONTEXT_RECORD_TYPE_ENUM,
|
|
225
232
|
CONVERSATION_ISSUE_IMPACT_ENUM: () => CONVERSATION_ISSUE_IMPACT_ENUM,
|
|
226
233
|
CUSTOMIZATION_AIMODE_ENUM: () => CUSTOMIZATION_AIMODE_ENUM,
|
|
227
234
|
CUSTOMIZATION_ANNOUNCEMENT_MESSAGE_MAX_LENGTH: () => CUSTOMIZATION_ANNOUNCEMENT_MESSAGE_MAX_LENGTH,
|
|
228
235
|
CUSTOMIZATION_ANNOUNCEMENT_MESSAGE_MIN_LENGTH: () => CUSTOMIZATION_ANNOUNCEMENT_MESSAGE_MIN_LENGTH,
|
|
229
236
|
CUSTOMIZATION_BACKGROUND_ENUM: () => CUSTOMIZATION_BACKGROUND_ENUM,
|
|
237
|
+
CUSTOMIZATION_CODE_THEME_ENUM: () => CUSTOMIZATION_CODE_THEME_ENUM,
|
|
230
238
|
CUSTOMIZATION_CONTENT_LINK_TITLE_MAX_LENGTH: () => CUSTOMIZATION_CONTENT_LINK_TITLE_MAX_LENGTH,
|
|
231
239
|
CUSTOMIZATION_CORNERS_ENUM: () => CUSTOMIZATION_CORNERS_ENUM,
|
|
232
240
|
CUSTOMIZATION_DEFAULT_FONT_ENUM: () => CUSTOMIZATION_DEFAULT_FONT_ENUM,
|
|
@@ -258,12 +266,15 @@ __export(src_exports, {
|
|
|
258
266
|
ContentReferenceStatus: () => ContentReferenceStatus,
|
|
259
267
|
ContentType: () => ContentType,
|
|
260
268
|
ContentVisibility: () => ContentVisibility,
|
|
269
|
+
ContextConnectionStatus: () => ContextConnectionStatus,
|
|
270
|
+
ContextRecordType: () => ContextRecordType,
|
|
261
271
|
ConversationIssueImpact: () => ConversationIssueImpact,
|
|
262
272
|
CustomHostnameDnsStatus: () => CustomHostnameDnsStatus,
|
|
263
273
|
CustomHostnameErrorStatus: () => CustomHostnameErrorStatus,
|
|
264
274
|
CustomHostnameSslStatus: () => CustomHostnameSslStatus,
|
|
265
275
|
CustomizationAIMode: () => CustomizationAIMode,
|
|
266
276
|
CustomizationBackground: () => CustomizationBackground,
|
|
277
|
+
CustomizationCodeTheme: () => CustomizationCodeTheme,
|
|
267
278
|
CustomizationCorners: () => CustomizationCorners,
|
|
268
279
|
CustomizationDefaultFont: () => CustomizationDefaultFont,
|
|
269
280
|
CustomizationDefaultMonospaceFont: () => CustomizationDefaultMonospaceFont,
|
|
@@ -453,7 +464,7 @@ module.exports = __toCommonJS(src_exports);
|
|
|
453
464
|
|
|
454
465
|
// package.json
|
|
455
466
|
var name = "@gitbook/api";
|
|
456
|
-
var version = "0.
|
|
467
|
+
var version = "0.160.1";
|
|
457
468
|
|
|
458
469
|
// src/client.ts
|
|
459
470
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -663,6 +674,11 @@ var VerticalAlignment = /* @__PURE__ */ ((VerticalAlignment2) => {
|
|
|
663
674
|
VerticalAlignment2["Bottom"] = "bottom";
|
|
664
675
|
return VerticalAlignment2;
|
|
665
676
|
})(VerticalAlignment || {});
|
|
677
|
+
var OpenAPISpecVisibility = /* @__PURE__ */ ((OpenAPISpecVisibility2) => {
|
|
678
|
+
OpenAPISpecVisibility2["Private"] = "private";
|
|
679
|
+
OpenAPISpecVisibility2["Public"] = "public";
|
|
680
|
+
return OpenAPISpecVisibility2;
|
|
681
|
+
})(OpenAPISpecVisibility || {});
|
|
666
682
|
var RevisionPageLayoutOptionsWidth = /* @__PURE__ */ ((RevisionPageLayoutOptionsWidth2) => {
|
|
667
683
|
RevisionPageLayoutOptionsWidth2["Default"] = "default";
|
|
668
684
|
RevisionPageLayoutOptionsWidth2["Wide"] = "wide";
|
|
@@ -740,11 +756,6 @@ var OpenAPISpecProcessingState = /* @__PURE__ */ ((OpenAPISpecProcessingState2)
|
|
|
740
756
|
OpenAPISpecProcessingState2["Complete"] = "complete";
|
|
741
757
|
return OpenAPISpecProcessingState2;
|
|
742
758
|
})(OpenAPISpecProcessingState || {});
|
|
743
|
-
var OpenAPISpecVisibility = /* @__PURE__ */ ((OpenAPISpecVisibility2) => {
|
|
744
|
-
OpenAPISpecVisibility2["Private"] = "private";
|
|
745
|
-
OpenAPISpecVisibility2["Public"] = "public";
|
|
746
|
-
return OpenAPISpecVisibility2;
|
|
747
|
-
})(OpenAPISpecVisibility || {});
|
|
748
759
|
var OpenAPISpecProcessingErrorCode = /* @__PURE__ */ ((OpenAPISpecProcessingErrorCode2) => {
|
|
749
760
|
OpenAPISpecProcessingErrorCode2["FETCH_TIMEOUT"] = "FETCH_TIMEOUT";
|
|
750
761
|
OpenAPISpecProcessingErrorCode2["FETCH_ERROR"] = "FETCH_ERROR";
|
|
@@ -1047,6 +1058,73 @@ var CustomizationIconsStyle = /* @__PURE__ */ ((CustomizationIconsStyle2) => {
|
|
|
1047
1058
|
CustomizationIconsStyle2["Thin"] = "thin";
|
|
1048
1059
|
return CustomizationIconsStyle2;
|
|
1049
1060
|
})(CustomizationIconsStyle || {});
|
|
1061
|
+
var CustomizationCodeTheme = /* @__PURE__ */ ((CustomizationCodeTheme2) => {
|
|
1062
|
+
CustomizationCodeTheme2["DefaultLight"] = "default-light";
|
|
1063
|
+
CustomizationCodeTheme2["DefaultDark"] = "default-dark";
|
|
1064
|
+
CustomizationCodeTheme2["MonochromeLight"] = "monochrome-light";
|
|
1065
|
+
CustomizationCodeTheme2["MonochromeDark"] = "monochrome-dark";
|
|
1066
|
+
CustomizationCodeTheme2["Andromeeda"] = "andromeeda";
|
|
1067
|
+
CustomizationCodeTheme2["AuroraX"] = "aurora-x";
|
|
1068
|
+
CustomizationCodeTheme2["AyuDark"] = "ayu-dark";
|
|
1069
|
+
CustomizationCodeTheme2["CatppuccinFrappe"] = "catppuccin-frappe";
|
|
1070
|
+
CustomizationCodeTheme2["CatppuccinLatte"] = "catppuccin-latte";
|
|
1071
|
+
CustomizationCodeTheme2["CatppuccinMacchiato"] = "catppuccin-macchiato";
|
|
1072
|
+
CustomizationCodeTheme2["CatppuccinMocha"] = "catppuccin-mocha";
|
|
1073
|
+
CustomizationCodeTheme2["DarkPlus"] = "dark-plus";
|
|
1074
|
+
CustomizationCodeTheme2["Dracula"] = "dracula";
|
|
1075
|
+
CustomizationCodeTheme2["DraculaSoft"] = "dracula-soft";
|
|
1076
|
+
CustomizationCodeTheme2["EverforestDark"] = "everforest-dark";
|
|
1077
|
+
CustomizationCodeTheme2["EverforestLight"] = "everforest-light";
|
|
1078
|
+
CustomizationCodeTheme2["GithubDark"] = "github-dark";
|
|
1079
|
+
CustomizationCodeTheme2["GithubDarkDefault"] = "github-dark-default";
|
|
1080
|
+
CustomizationCodeTheme2["GithubDarkDimmed"] = "github-dark-dimmed";
|
|
1081
|
+
CustomizationCodeTheme2["GithubDarkHighContrast"] = "github-dark-high-contrast";
|
|
1082
|
+
CustomizationCodeTheme2["GithubLight"] = "github-light";
|
|
1083
|
+
CustomizationCodeTheme2["GithubLightDefault"] = "github-light-default";
|
|
1084
|
+
CustomizationCodeTheme2["GithubLightHighContrast"] = "github-light-high-contrast";
|
|
1085
|
+
CustomizationCodeTheme2["GruvboxDarkHard"] = "gruvbox-dark-hard";
|
|
1086
|
+
CustomizationCodeTheme2["GruvboxDarkMedium"] = "gruvbox-dark-medium";
|
|
1087
|
+
CustomizationCodeTheme2["GruvboxDarkSoft"] = "gruvbox-dark-soft";
|
|
1088
|
+
CustomizationCodeTheme2["GruvboxLightHard"] = "gruvbox-light-hard";
|
|
1089
|
+
CustomizationCodeTheme2["GruvboxLightMedium"] = "gruvbox-light-medium";
|
|
1090
|
+
CustomizationCodeTheme2["GruvboxLightSoft"] = "gruvbox-light-soft";
|
|
1091
|
+
CustomizationCodeTheme2["Houston"] = "houston";
|
|
1092
|
+
CustomizationCodeTheme2["KanagawaDragon"] = "kanagawa-dragon";
|
|
1093
|
+
CustomizationCodeTheme2["KanagawaLotus"] = "kanagawa-lotus";
|
|
1094
|
+
CustomizationCodeTheme2["KanagawaWave"] = "kanagawa-wave";
|
|
1095
|
+
CustomizationCodeTheme2["Laserwave"] = "laserwave";
|
|
1096
|
+
CustomizationCodeTheme2["LightPlus"] = "light-plus";
|
|
1097
|
+
CustomizationCodeTheme2["MaterialTheme"] = "material-theme";
|
|
1098
|
+
CustomizationCodeTheme2["MaterialThemeDarker"] = "material-theme-darker";
|
|
1099
|
+
CustomizationCodeTheme2["MaterialThemeLighter"] = "material-theme-lighter";
|
|
1100
|
+
CustomizationCodeTheme2["MaterialThemeOcean"] = "material-theme-ocean";
|
|
1101
|
+
CustomizationCodeTheme2["MaterialThemePalenight"] = "material-theme-palenight";
|
|
1102
|
+
CustomizationCodeTheme2["MinDark"] = "min-dark";
|
|
1103
|
+
CustomizationCodeTheme2["MinLight"] = "min-light";
|
|
1104
|
+
CustomizationCodeTheme2["Monokai"] = "monokai";
|
|
1105
|
+
CustomizationCodeTheme2["NightOwl"] = "night-owl";
|
|
1106
|
+
CustomizationCodeTheme2["Nord"] = "nord";
|
|
1107
|
+
CustomizationCodeTheme2["OneDarkPro"] = "one-dark-pro";
|
|
1108
|
+
CustomizationCodeTheme2["OneLight"] = "one-light";
|
|
1109
|
+
CustomizationCodeTheme2["Plastic"] = "plastic";
|
|
1110
|
+
CustomizationCodeTheme2["Poimandres"] = "poimandres";
|
|
1111
|
+
CustomizationCodeTheme2["Red"] = "red";
|
|
1112
|
+
CustomizationCodeTheme2["RosePine"] = "rose-pine";
|
|
1113
|
+
CustomizationCodeTheme2["RosePineDawn"] = "rose-pine-dawn";
|
|
1114
|
+
CustomizationCodeTheme2["RosePineMoon"] = "rose-pine-moon";
|
|
1115
|
+
CustomizationCodeTheme2["SlackDark"] = "slack-dark";
|
|
1116
|
+
CustomizationCodeTheme2["SlackOchin"] = "slack-ochin";
|
|
1117
|
+
CustomizationCodeTheme2["SnazzyLight"] = "snazzy-light";
|
|
1118
|
+
CustomizationCodeTheme2["SolarizedDark"] = "solarized-dark";
|
|
1119
|
+
CustomizationCodeTheme2["SolarizedLight"] = "solarized-light";
|
|
1120
|
+
CustomizationCodeTheme2["Synthwave84"] = "synthwave-84";
|
|
1121
|
+
CustomizationCodeTheme2["TokyoNight"] = "tokyo-night";
|
|
1122
|
+
CustomizationCodeTheme2["Vesper"] = "vesper";
|
|
1123
|
+
CustomizationCodeTheme2["VitesseBlack"] = "vitesse-black";
|
|
1124
|
+
CustomizationCodeTheme2["VitesseDark"] = "vitesse-dark";
|
|
1125
|
+
CustomizationCodeTheme2["VitesseLight"] = "vitesse-light";
|
|
1126
|
+
return CustomizationCodeTheme2;
|
|
1127
|
+
})(CustomizationCodeTheme || {});
|
|
1050
1128
|
var CustomizationSidebarBackgroundStyle = /* @__PURE__ */ ((CustomizationSidebarBackgroundStyle2) => {
|
|
1051
1129
|
CustomizationSidebarBackgroundStyle2["Default"] = "default";
|
|
1052
1130
|
CustomizationSidebarBackgroundStyle2["Filled"] = "filled";
|
|
@@ -1117,6 +1195,18 @@ var SiteSocialAccountPlatform = /* @__PURE__ */ ((SiteSocialAccountPlatform2) =>
|
|
|
1117
1195
|
SiteSocialAccountPlatform2["Medium"] = "medium";
|
|
1118
1196
|
return SiteSocialAccountPlatform2;
|
|
1119
1197
|
})(SiteSocialAccountPlatform || {});
|
|
1198
|
+
var ContextRecordType = /* @__PURE__ */ ((ContextRecordType2) => {
|
|
1199
|
+
ContextRecordType2["Ticket"] = "ticket";
|
|
1200
|
+
ContextRecordType2["Document"] = "document";
|
|
1201
|
+
return ContextRecordType2;
|
|
1202
|
+
})(ContextRecordType || {});
|
|
1203
|
+
var ContextConnectionStatus = /* @__PURE__ */ ((ContextConnectionStatus2) => {
|
|
1204
|
+
ContextConnectionStatus2["Pending"] = "pending";
|
|
1205
|
+
ContextConnectionStatus2["Syncing"] = "syncing";
|
|
1206
|
+
ContextConnectionStatus2["Succeeded"] = "succeeded";
|
|
1207
|
+
ContextConnectionStatus2["Failed"] = "failed";
|
|
1208
|
+
return ContextConnectionStatus2;
|
|
1209
|
+
})(ContextConnectionStatus || {});
|
|
1120
1210
|
var AIModel = /* @__PURE__ */ ((AIModel2) => {
|
|
1121
1211
|
AIModel2["Fast"] = "fast";
|
|
1122
1212
|
AIModel2["ReasoningLow"] = "reasoning-low";
|
|
@@ -1280,6 +1370,9 @@ var RevisionSemanticChangeType = /* @__PURE__ */ ((RevisionSemanticChangeType2)
|
|
|
1280
1370
|
RevisionSemanticChangeType2["FileEdited"] = "file_edited";
|
|
1281
1371
|
RevisionSemanticChangeType2["FileDeleted"] = "file_deleted";
|
|
1282
1372
|
RevisionSemanticChangeType2["CustomFieldsEdited"] = "custom_fields_edited";
|
|
1373
|
+
RevisionSemanticChangeType2["TagCreated"] = "tag_created";
|
|
1374
|
+
RevisionSemanticChangeType2["TagDeleted"] = "tag_deleted";
|
|
1375
|
+
RevisionSemanticChangeType2["TagEdited"] = "tag_edited";
|
|
1283
1376
|
return RevisionSemanticChangeType2;
|
|
1284
1377
|
})(RevisionSemanticChangeType || {});
|
|
1285
1378
|
var GitSyncOperationState = /* @__PURE__ */ ((GitSyncOperationState2) => {
|
|
@@ -3698,6 +3791,85 @@ var Api = class extends HttpClient {
|
|
|
3698
3791
|
secure: true,
|
|
3699
3792
|
...params
|
|
3700
3793
|
}),
|
|
3794
|
+
listSiteContextRecords: (organizationId, siteId, query, params = {}) => this.request({
|
|
3795
|
+
path: `/orgs/${organizationId}/sites/${siteId}/context-records`,
|
|
3796
|
+
method: "GET",
|
|
3797
|
+
query,
|
|
3798
|
+
secure: true,
|
|
3799
|
+
format: "json",
|
|
3800
|
+
...params
|
|
3801
|
+
}),
|
|
3802
|
+
upsertSiteContextRecords: (organizationId, siteId, data, params = {}) => this.request({
|
|
3803
|
+
path: `/orgs/${organizationId}/sites/${siteId}/context-records`,
|
|
3804
|
+
method: "PUT",
|
|
3805
|
+
body: data,
|
|
3806
|
+
secure: true,
|
|
3807
|
+
type: "application/json" /* Json */,
|
|
3808
|
+
...params
|
|
3809
|
+
}),
|
|
3810
|
+
listSiteContextConnections: (organizationId, siteId, query, params = {}) => this.request({
|
|
3811
|
+
path: `/orgs/${organizationId}/sites/${siteId}/context-connections`,
|
|
3812
|
+
method: "GET",
|
|
3813
|
+
query,
|
|
3814
|
+
secure: true,
|
|
3815
|
+
format: "json",
|
|
3816
|
+
...params
|
|
3817
|
+
}),
|
|
3818
|
+
createSiteContextConnection: (organizationId, siteId, data, params = {}) => this.request({
|
|
3819
|
+
path: `/orgs/${organizationId}/sites/${siteId}/context-connections`,
|
|
3820
|
+
method: "POST",
|
|
3821
|
+
body: data,
|
|
3822
|
+
secure: true,
|
|
3823
|
+
type: "application/json" /* Json */,
|
|
3824
|
+
format: "json",
|
|
3825
|
+
...params
|
|
3826
|
+
}),
|
|
3827
|
+
getSiteContextConnectionById: (organizationId, siteId, siteContextConnectionId, params = {}) => this.request({
|
|
3828
|
+
path: `/orgs/${organizationId}/sites/${siteId}/context-connections/${siteContextConnectionId}`,
|
|
3829
|
+
method: "GET",
|
|
3830
|
+
secure: true,
|
|
3831
|
+
format: "json",
|
|
3832
|
+
...params
|
|
3833
|
+
}),
|
|
3834
|
+
updateSiteContextConnectionById: (organizationId, siteId, siteContextConnectionId, data, params = {}) => this.request({
|
|
3835
|
+
path: `/orgs/${organizationId}/sites/${siteId}/context-connections/${siteContextConnectionId}`,
|
|
3836
|
+
method: "PATCH",
|
|
3837
|
+
body: data,
|
|
3838
|
+
secure: true,
|
|
3839
|
+
type: "application/json" /* Json */,
|
|
3840
|
+
format: "json",
|
|
3841
|
+
...params
|
|
3842
|
+
}),
|
|
3843
|
+
syncSiteContextConnection: (organizationId, siteId, siteContextConnectionId, params = {}) => this.request({
|
|
3844
|
+
path: `/orgs/${organizationId}/sites/${siteId}/context-connections/${siteContextConnectionId}/sync`,
|
|
3845
|
+
method: "POST",
|
|
3846
|
+
secure: true,
|
|
3847
|
+
...params
|
|
3848
|
+
}),
|
|
3849
|
+
listSiteContextTopics: (organizationId, siteId, query, params = {}) => this.request({
|
|
3850
|
+
path: `/orgs/${organizationId}/sites/${siteId}/context-topics`,
|
|
3851
|
+
method: "GET",
|
|
3852
|
+
query,
|
|
3853
|
+
secure: true,
|
|
3854
|
+
format: "json",
|
|
3855
|
+
...params
|
|
3856
|
+
}),
|
|
3857
|
+
getSiteContextTopicById: (organizationId, siteId, siteContextTopicId, params = {}) => this.request({
|
|
3858
|
+
path: `/orgs/${organizationId}/sites/${siteId}/context-topics/${siteContextTopicId}`,
|
|
3859
|
+
method: "GET",
|
|
3860
|
+
secure: true,
|
|
3861
|
+
format: "json",
|
|
3862
|
+
...params
|
|
3863
|
+
}),
|
|
3864
|
+
updateSiteContextTopicById: (organizationId, siteId, siteContextTopicId, data, params = {}) => this.request({
|
|
3865
|
+
path: `/orgs/${organizationId}/sites/${siteId}/context-topics/${siteContextTopicId}`,
|
|
3866
|
+
method: "PATCH",
|
|
3867
|
+
body: data,
|
|
3868
|
+
secure: true,
|
|
3869
|
+
type: "application/json" /* Json */,
|
|
3870
|
+
format: "json",
|
|
3871
|
+
...params
|
|
3872
|
+
}),
|
|
3701
3873
|
updateSiteSpaceById: (organizationId, siteId, siteSpaceId, data, params = {}) => this.request({
|
|
3702
3874
|
path: `/orgs/${organizationId}/sites/${siteId}/site-spaces/${siteSpaceId}`,
|
|
3703
3875
|
method: "PATCH",
|
|
@@ -4039,6 +4211,7 @@ var CARDS_IMAGE_OBJECT_FIT_ENUM = ["contain", "fill", "cover"];
|
|
|
4039
4211
|
var VERTICAL_ALIGNMENT_ENUM = ["top", "middle", "bottom"];
|
|
4040
4212
|
var REVISION_PAGE_SLUG_MAX_LENGTH = 100;
|
|
4041
4213
|
var REVISION_PAGE_SLUG_MIN_LENGTH = 0;
|
|
4214
|
+
var OPEN_APISPEC_VISIBILITY_ENUM = ["private", "public"];
|
|
4042
4215
|
var REVISION_PAGE_LAYOUT_OPTIONS_WIDTH_ENUM = ["default", "wide"];
|
|
4043
4216
|
var REVISION_PAGE_LAYOUT_OPTIONS_COVER_SIZE_ENUM = ["hero", "full"];
|
|
4044
4217
|
var CHANGE_REQUEST_STATUS_ENUM = ["draft", "open", "archived", "merged"];
|
|
@@ -4064,7 +4237,6 @@ var OPEN_APISPEC_SLUG_MAX_LENGTH = 100;
|
|
|
4064
4237
|
var OPEN_APISPEC_SLUG_MIN_LENGTH = 1;
|
|
4065
4238
|
var OPEN_APISPEC_SLUG_PATTERN = "^[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*$";
|
|
4066
4239
|
var OPEN_APISPEC_PROCESSING_STATE_ENUM = ["pending", "progress", "complete"];
|
|
4067
|
-
var OPEN_APISPEC_VISIBILITY_ENUM = ["private", "public"];
|
|
4068
4240
|
var OPEN_APISPEC_PROCESSING_ERROR_CODE_ENUM = ["FETCH_TIMEOUT", "FETCH_ERROR", "PARSE_ERROR"];
|
|
4069
4241
|
var CONTENT_REFERENCE_STATUS_ENUM = ["ok", "broken", "in-app"];
|
|
4070
4242
|
var CONTENT_REFERENCE_RELATION_ENUM = ["reference", "dependsOn"];
|
|
@@ -4135,6 +4307,7 @@ var CUSTOMIZATION_DEFAULT_FONT_ENUM = ["ABCFavorit", "Inter", "Roboto", "RobotoS
|
|
|
4135
4307
|
var CUSTOMIZATION_DEFAULT_MONOSPACE_FONT_ENUM = ["FiraCode", "IBMPlexMono", "JetBrainsMono", "SourceCodePro", "RobotoMono", "SpaceMono", "DMMono", "Inconsolata"];
|
|
4136
4308
|
var CUSTOMIZATION_BACKGROUND_ENUM = ["plain", "match"];
|
|
4137
4309
|
var CUSTOMIZATION_ICONS_STYLE_ENUM = ["regular", "solid", "duotone", "light", "thin"];
|
|
4310
|
+
var CUSTOMIZATION_CODE_THEME_ENUM = ["default-light", "default-dark", "monochrome-light", "monochrome-dark", "andromeeda", "aurora-x", "ayu-dark", "catppuccin-frappe", "catppuccin-latte", "catppuccin-macchiato", "catppuccin-mocha", "dark-plus", "dracula", "dracula-soft", "everforest-dark", "everforest-light", "github-dark", "github-dark-default", "github-dark-dimmed", "github-dark-high-contrast", "github-light", "github-light-default", "github-light-high-contrast", "gruvbox-dark-hard", "gruvbox-dark-medium", "gruvbox-dark-soft", "gruvbox-light-hard", "gruvbox-light-medium", "gruvbox-light-soft", "houston", "kanagawa-dragon", "kanagawa-lotus", "kanagawa-wave", "laserwave", "light-plus", "material-theme", "material-theme-darker", "material-theme-lighter", "material-theme-ocean", "material-theme-palenight", "min-dark", "min-light", "monokai", "night-owl", "nord", "one-dark-pro", "one-light", "plastic", "poimandres", "red", "rose-pine", "rose-pine-dawn", "rose-pine-moon", "slack-dark", "slack-ochin", "snazzy-light", "solarized-dark", "solarized-light", "synthwave-84", "tokyo-night", "vesper", "vitesse-black", "vitesse-dark", "vitesse-light"];
|
|
4138
4311
|
var CUSTOMIZATION_SIDEBAR_BACKGROUND_STYLE_ENUM = ["default", "filled"];
|
|
4139
4312
|
var CUSTOMIZATION_SIDEBAR_LIST_STYLE_ENUM = ["default", "pill", "line"];
|
|
4140
4313
|
var CUSTOMIZATION_SEARCH_STYLE_ENUM = ["prominent", "subtle"];
|
|
@@ -4153,6 +4326,13 @@ var SITE_SOCIAL_ACCOUNT_HANDLE_MAX_LENGTH = 128;
|
|
|
4153
4326
|
var SITE_SOCIAL_ACCOUNT_HANDLE_MIN_LENGTH = 1;
|
|
4154
4327
|
var SHARE_LINK_NAME_MAX_LENGTH = 50;
|
|
4155
4328
|
var SHARE_LINK_NAME_MIN_LENGTH = 0;
|
|
4329
|
+
var CONTEXT_RECORD_TYPE_ENUM = ["ticket", "document"];
|
|
4330
|
+
var CONTEXT_RECORD_TITLE_MAX_LENGTH = 256;
|
|
4331
|
+
var CONTEXT_RECORD_TITLE_MIN_LENGTH = 1;
|
|
4332
|
+
var CONTEXT_RECORD_DESCRIPTION_MAX_LENGTH = 512;
|
|
4333
|
+
var CONTEXT_CONNECTION_LABEL_MAX_LENGTH = 128;
|
|
4334
|
+
var CONTEXT_CONNECTION_LABEL_MIN_LENGTH = 0;
|
|
4335
|
+
var CONTEXT_CONNECTION_STATUS_ENUM = ["pending", "syncing", "succeeded", "failed"];
|
|
4156
4336
|
var AIMODEL_ENUM = ["fast", "reasoning-low", "reasoning-medium", "reasoning-high"];
|
|
4157
4337
|
var SITE_INSIGHTS_DISPLAY_CONTEXT_ENUM = ["site", "embed"];
|
|
4158
4338
|
var SITE_INSIGHTS_LINK_POSITION_ENUM = ["announcement", "header", "footer", "sidebar", "content"];
|
|
@@ -4178,7 +4358,7 @@ var CLOUDFLARE_HOSTNAME_TLSVALIDATION_METHOD_ENUM = ["http", "txt", "email"];
|
|
|
4178
4358
|
var SHA256_MAX_LENGTH = 64;
|
|
4179
4359
|
var SHA256_MIN_LENGTH = 64;
|
|
4180
4360
|
var GIT_BOOK_USERS_ENUM = ["gitbook:agent"];
|
|
4181
|
-
var REVISION_SEMANTIC_CHANGE_TYPE_ENUM = ["page_created", "page_edited", "page_deleted", "page_moved", "file_created", "file_edited", "file_deleted", "custom_fields_edited"];
|
|
4361
|
+
var REVISION_SEMANTIC_CHANGE_TYPE_ENUM = ["page_created", "page_edited", "page_deleted", "page_moved", "file_created", "file_edited", "file_deleted", "custom_fields_edited", "tag_created", "tag_deleted", "tag_edited"];
|
|
4182
4362
|
var GIT_SYNC_OPERATION_STATE_ENUM = ["running", "failure", "success"];
|
|
4183
4363
|
var GIT_SYNC_OPERATION_DIRECTION_ENUM = ["export", "import"];
|
|
4184
4364
|
var GIT_SYNC_OPERATION_STAGE_ENUM = ["repo_fetch", "config_check", "content_process", "finalize"];
|
|
@@ -4300,11 +4480,19 @@ var GitBookAPI = class extends Api {
|
|
|
4300
4480
|
CONTENT_REFERENCE_RELATION_ENUM,
|
|
4301
4481
|
CONTENT_REFERENCE_STATUS_ENUM,
|
|
4302
4482
|
CONTENT_VISIBILITY_ENUM,
|
|
4483
|
+
CONTEXT_CONNECTION_LABEL_MAX_LENGTH,
|
|
4484
|
+
CONTEXT_CONNECTION_LABEL_MIN_LENGTH,
|
|
4485
|
+
CONTEXT_CONNECTION_STATUS_ENUM,
|
|
4486
|
+
CONTEXT_RECORD_DESCRIPTION_MAX_LENGTH,
|
|
4487
|
+
CONTEXT_RECORD_TITLE_MAX_LENGTH,
|
|
4488
|
+
CONTEXT_RECORD_TITLE_MIN_LENGTH,
|
|
4489
|
+
CONTEXT_RECORD_TYPE_ENUM,
|
|
4303
4490
|
CONVERSATION_ISSUE_IMPACT_ENUM,
|
|
4304
4491
|
CUSTOMIZATION_AIMODE_ENUM,
|
|
4305
4492
|
CUSTOMIZATION_ANNOUNCEMENT_MESSAGE_MAX_LENGTH,
|
|
4306
4493
|
CUSTOMIZATION_ANNOUNCEMENT_MESSAGE_MIN_LENGTH,
|
|
4307
4494
|
CUSTOMIZATION_BACKGROUND_ENUM,
|
|
4495
|
+
CUSTOMIZATION_CODE_THEME_ENUM,
|
|
4308
4496
|
CUSTOMIZATION_CONTENT_LINK_TITLE_MAX_LENGTH,
|
|
4309
4497
|
CUSTOMIZATION_CORNERS_ENUM,
|
|
4310
4498
|
CUSTOMIZATION_DEFAULT_FONT_ENUM,
|
|
@@ -4336,12 +4524,15 @@ var GitBookAPI = class extends Api {
|
|
|
4336
4524
|
ContentReferenceStatus,
|
|
4337
4525
|
ContentType,
|
|
4338
4526
|
ContentVisibility,
|
|
4527
|
+
ContextConnectionStatus,
|
|
4528
|
+
ContextRecordType,
|
|
4339
4529
|
ConversationIssueImpact,
|
|
4340
4530
|
CustomHostnameDnsStatus,
|
|
4341
4531
|
CustomHostnameErrorStatus,
|
|
4342
4532
|
CustomHostnameSslStatus,
|
|
4343
4533
|
CustomizationAIMode,
|
|
4344
4534
|
CustomizationBackground,
|
|
4535
|
+
CustomizationCodeTheme,
|
|
4345
4536
|
CustomizationCorners,
|
|
4346
4537
|
CustomizationDefaultFont,
|
|
4347
4538
|
CustomizationDefaultMonospaceFont,
|