@gitbook/api 0.194.0 → 0.196.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 +803 -116
- package/dist/constants.d.ts +9 -5
- package/dist/index.cjs +109 -7
- package/dist/index.js +102 -7
- package/package.json +1 -1
- package/spec/openapi.json +1932 -316
- package/spec/openapi.yaml +1394 -246
package/dist/constants.d.ts
CHANGED
|
@@ -77,7 +77,7 @@ export declare const SITE_PROXY_ORIGIN_MAX_LENGTH = 512;
|
|
|
77
77
|
export declare const SITE_PROXY_ORIGIN_PATTERN = "^([\\w-]+\\.)*[\\w-]+\\.[a-zA-Z]{2,}(\\/[\\w-]+)+$";
|
|
78
78
|
export declare const SITE_VISIBILITY_ENUM: ["public", "unlisted", "share-link", "visitor-auth"];
|
|
79
79
|
export declare const SITE_ADS_TOPIC_ENUM: ["webdev", "crypto"];
|
|
80
|
-
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-content-gaps", "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"];
|
|
80
|
+
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-fix-broken-links", "sites-connections", "sites-content-gaps", "sites-channels", "sites-embed", "sites-api-playground", "sites-basic-customization", "sites-broken-links", "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"];
|
|
81
81
|
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"];
|
|
82
82
|
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"];
|
|
83
83
|
export declare const SITE_SECTION_TITLE_MAX_LENGTH = 128;
|
|
@@ -106,7 +106,7 @@ export declare const OPEN_APISPEC_SLUG_PATTERN = "^[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)
|
|
|
106
106
|
export declare const OPEN_APISPEC_PROCESSING_STATE_ENUM: ["pending", "progress", "complete"];
|
|
107
107
|
export declare const OPEN_APISPEC_PROCESSING_ERROR_CODE_ENUM: ["FETCH_TIMEOUT", "FETCH_ERROR", "PARSE_ERROR"];
|
|
108
108
|
export declare const TRANSLATION_STATUS_ENUM: ["pending", "running", "completed"];
|
|
109
|
-
export declare const STORAGE_UPLOAD_KIND_ENUM: ["customization_font", "import_file"];
|
|
109
|
+
export declare const STORAGE_UPLOAD_KIND_ENUM: ["customization_font", "import_file", "organization_file"];
|
|
110
110
|
export declare const FONT_FAMILY_MAX_LENGTH = 50;
|
|
111
111
|
export declare const FONT_FAMILY_MIN_LENGTH = 1;
|
|
112
112
|
export declare const STORAGE_FILE_KEY_MAX_LENGTH = 512;
|
|
@@ -133,6 +133,7 @@ export declare const CUSTOMIZATION_ANNOUNCEMENT_MESSAGE_MAX_LENGTH = 128;
|
|
|
133
133
|
export declare const CUSTOMIZATION_ANNOUNCEMENT_MESSAGE_MIN_LENGTH = 2;
|
|
134
134
|
export declare const CUSTOMIZATION_DEFAULT_THEME_MODE_ENUM: ["light", "dark", "system"];
|
|
135
135
|
export declare const CUSTOMIZATION_AIMODE_ENUM: ["none", "search", "assistant"];
|
|
136
|
+
export declare const CUSTOMIZATION_AIGREETING_MAX_LENGTH = 256;
|
|
136
137
|
export declare const CUSTOMIZATION_SUGGESTED_QUESTION_MAX_LENGTH = 64;
|
|
137
138
|
export declare const CUSTOMIZATION_SUGGESTED_QUESTION_MIN_LENGTH = 3;
|
|
138
139
|
export declare const CUSTOMIZATION_AIINSTRUCTIONS_MAX_LENGTH = 10000;
|
|
@@ -144,24 +145,28 @@ export declare const SITE_SOCIAL_ACCOUNT_HANDLE_MIN_LENGTH = 1;
|
|
|
144
145
|
export declare const SHARE_LINK_NAME_MAX_LENGTH = 50;
|
|
145
146
|
export declare const SHARE_LINK_NAME_MIN_LENGTH = 0;
|
|
146
147
|
export declare const AGENT_GOAL_MAX_LENGTH = 1024;
|
|
148
|
+
export declare const AGENT_FEEDBACK_SOURCE_ENUM: ["mcp", "assistant"];
|
|
147
149
|
export declare const CONTEXT_RECORD_TYPE_ENUM: ["ticket", "document"];
|
|
148
150
|
export declare const CONTEXT_RECORD_TITLE_MAX_LENGTH = 256;
|
|
149
151
|
export declare const CONTEXT_RECORD_TITLE_MIN_LENGTH = 1;
|
|
150
152
|
export declare const CONTEXT_RECORD_DESCRIPTION_MAX_LENGTH = 512;
|
|
151
153
|
export declare const SITE_SCAN_STATUS_ENUM: ["pending", "running", "done", "failed"];
|
|
152
154
|
export declare const SITE_FINDING_STATUS_ENUM: ["candidate", "open", "done", "canceled"];
|
|
153
|
-
export declare const SITE_FINDING_TYPE_ENUM: ["content-outdated", "content-incorrect", "content-gap", "other"];
|
|
155
|
+
export declare const SITE_FINDING_TYPE_ENUM: ["content-outdated", "content-incorrect", "content-gap", "broken-link", "other"];
|
|
154
156
|
export declare const SITE_FINDING_SEVERITY_ENUM: ["low", "medium", "high"];
|
|
155
157
|
export declare const SITE_TRIAGE_FILTER_QUESTIONS_ENUM: ["questions"];
|
|
156
158
|
export declare const SITE_TRIAGE_FILTER_CONNECTIONS_PATTERN = "^connection:.+$";
|
|
157
159
|
export declare const SITE_FINDING_ORDER_BY_ENUM: ["updatedAt", "severity", "sources"];
|
|
158
160
|
export declare const SITE_FINDING_TITLE_MAX_LENGTH = 256;
|
|
161
|
+
export declare const SITE_REDIRECT_SOURCE_PATH_MAX_LENGTH = 512;
|
|
162
|
+
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})+)*(?:\\/\\*|\\*)?$";
|
|
159
163
|
export declare const SITE_QUESTION_TYPE_ENUM: ["exploring", "how-to", "troubleshooting", "reference", "unknown"];
|
|
160
164
|
export declare const CONTEXT_CONNECTION_LABEL_MAX_LENGTH = 128;
|
|
161
165
|
export declare const CONTEXT_CONNECTION_LABEL_MIN_LENGTH = 0;
|
|
162
166
|
export declare const CONTEXT_CONNECTION_FILTER_MAX_LENGTH = 1024;
|
|
163
167
|
export declare const CONTEXT_CONNECTION_FILTER_MIN_LENGTH = 0;
|
|
164
168
|
export declare const CONTEXT_CONNECTION_STATUS_ENUM: ["pending", "syncing", "succeeded", "failed"];
|
|
169
|
+
export declare const CONTEXT_CONNECTION_FAILURE_REASON_ENUM: ["authentication", "misconfigured", "rate_limited", "upstream_unavailable", "unknown"];
|
|
165
170
|
export declare const CONTEXT_SEARCH_BOOST_ENUM: ["x0.8", "x1.0", "x1.2"];
|
|
166
171
|
export declare const YOUTUBE_CHANNEL_ID_PATTERN = "^UC[A-Za-z0-9_-]{22}$";
|
|
167
172
|
export declare const YOUTUBE_CHANNEL_NAME_PATTERN = "^@[A-Za-z0-9._-]{3,100}$";
|
|
@@ -185,10 +190,9 @@ export declare const SITE_INSIGHTS_EVENT_TYPE_ENUM: ["page_view", "page_markdown
|
|
|
185
190
|
export declare const SITE_INSIGHTS_VISITOR_BROWSER_ENUM: ["chrome", "firefox", "safari", "edge", "ie", "opera", "unknown"];
|
|
186
191
|
export declare const SITE_INSIGHTS_VISITOR_DEVICE_ENUM: ["desktop", "tablet", "mobile", "unknown"];
|
|
187
192
|
export declare const SITE_INSIGHTS_VISITOR_OS_ENUM: ["windows", "macos", "linux", "android", "ios", "unknown"];
|
|
193
|
+
export declare const SITE_INSIGHTS_PAGE_NOT_FOUND_TYPE_ENUM: ["conditional"];
|
|
188
194
|
export declare const SITE_INSIGHTS_QUERY_OPERATOR_ENUM: ["in", "notIn", "greaterThan", "greaterThanOrEqual", "lessThan", "lessThanOrEqual"];
|
|
189
195
|
export declare const SITE_INSIGHTS_QUERY_RANGE_PRESET_ENUM: ["lastYear", "last3Months", "last30Days", "last7Days", "last24Hours"];
|
|
190
|
-
export declare const SITE_REDIRECT_SOURCE_PATH_MAX_LENGTH = 512;
|
|
191
|
-
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})+)*(?:\\/\\*|\\*)?$";
|
|
192
196
|
export declare const SITE_MCP_SERVER_NAME_MAX_LENGTH = 100;
|
|
193
197
|
export declare const SITE_MCP_SERVER_NAME_MIN_LENGTH = 1;
|
|
194
198
|
export declare const SITE_MCP_SERVER_TRANSPORT_ENUM: ["sse", "http"];
|
package/dist/index.cjs
CHANGED
|
@@ -179,6 +179,7 @@ var require_node = __commonJS({
|
|
|
179
179
|
// src/index.ts
|
|
180
180
|
var src_exports = {};
|
|
181
181
|
__export(src_exports, {
|
|
182
|
+
AGENT_FEEDBACK_SOURCE_ENUM: () => AGENT_FEEDBACK_SOURCE_ENUM,
|
|
182
183
|
AGENT_GOAL_MAX_LENGTH: () => AGENT_GOAL_MAX_LENGTH,
|
|
183
184
|
AGENT_STATUS_ENUM: () => AGENT_STATUS_ENUM,
|
|
184
185
|
AIMESSAGE_ROLE_ENUM: () => AIMESSAGE_ROLE_ENUM,
|
|
@@ -192,6 +193,7 @@ __export(src_exports, {
|
|
|
192
193
|
APIINTEGRATION_SCOPE_ENUM: () => APIINTEGRATION_SCOPE_ENUM,
|
|
193
194
|
APIIntegrationScope: () => APIIntegrationScope,
|
|
194
195
|
APITOKEN_LABEL_MAX_LENGTH: () => APITOKEN_LABEL_MAX_LENGTH,
|
|
196
|
+
AgentFeedbackSource: () => AgentFeedbackSource,
|
|
195
197
|
AgentStatus: () => AgentStatus,
|
|
196
198
|
Api: () => Api,
|
|
197
199
|
BILLING_COUPON_MAX_LENGTH: () => BILLING_COUPON_MAX_LENGTH,
|
|
@@ -229,6 +231,7 @@ __export(src_exports, {
|
|
|
229
231
|
COLOR_PATTERN: () => COLOR_PATTERN,
|
|
230
232
|
CONTENT_KIT_ICON_ENUM: () => CONTENT_KIT_ICON_ENUM,
|
|
231
233
|
CONTENT_VISIBILITY_ENUM: () => CONTENT_VISIBILITY_ENUM,
|
|
234
|
+
CONTEXT_CONNECTION_FAILURE_REASON_ENUM: () => CONTEXT_CONNECTION_FAILURE_REASON_ENUM,
|
|
232
235
|
CONTEXT_CONNECTION_FILTER_MAX_LENGTH: () => CONTEXT_CONNECTION_FILTER_MAX_LENGTH,
|
|
233
236
|
CONTEXT_CONNECTION_FILTER_MIN_LENGTH: () => CONTEXT_CONNECTION_FILTER_MIN_LENGTH,
|
|
234
237
|
CONTEXT_CONNECTION_LABEL_MAX_LENGTH: () => CONTEXT_CONNECTION_LABEL_MAX_LENGTH,
|
|
@@ -239,6 +242,7 @@ __export(src_exports, {
|
|
|
239
242
|
CONTEXT_RECORD_TITLE_MIN_LENGTH: () => CONTEXT_RECORD_TITLE_MIN_LENGTH,
|
|
240
243
|
CONTEXT_RECORD_TYPE_ENUM: () => CONTEXT_RECORD_TYPE_ENUM,
|
|
241
244
|
CONTEXT_SEARCH_BOOST_ENUM: () => CONTEXT_SEARCH_BOOST_ENUM,
|
|
245
|
+
CUSTOMIZATION_AIGREETING_MAX_LENGTH: () => CUSTOMIZATION_AIGREETING_MAX_LENGTH,
|
|
242
246
|
CUSTOMIZATION_AIINSTRUCTIONS_MAX_LENGTH: () => CUSTOMIZATION_AIINSTRUCTIONS_MAX_LENGTH,
|
|
243
247
|
CUSTOMIZATION_AIMODE_ENUM: () => CUSTOMIZATION_AIMODE_ENUM,
|
|
244
248
|
CUSTOMIZATION_ANNOUNCEMENT_MESSAGE_MAX_LENGTH: () => CUSTOMIZATION_ANNOUNCEMENT_MESSAGE_MAX_LENGTH,
|
|
@@ -276,6 +280,7 @@ __export(src_exports, {
|
|
|
276
280
|
ContentKitIcon: () => ContentKitIcon,
|
|
277
281
|
ContentType: () => ContentType,
|
|
278
282
|
ContentVisibility: () => ContentVisibility,
|
|
283
|
+
ContextConnectionFailureReason: () => ContextConnectionFailureReason,
|
|
279
284
|
ContextConnectionStatus: () => ContextConnectionStatus,
|
|
280
285
|
ContextRecordType: () => ContextRecordType,
|
|
281
286
|
ContextSearchBoost: () => ContextSearchBoost,
|
|
@@ -426,6 +431,7 @@ __export(src_exports, {
|
|
|
426
431
|
SITE_INSIGHTS_EVENT_TYPE_ENUM: () => SITE_INSIGHTS_EVENT_TYPE_ENUM,
|
|
427
432
|
SITE_INSIGHTS_LINK_POSITION_ENUM: () => SITE_INSIGHTS_LINK_POSITION_ENUM,
|
|
428
433
|
SITE_INSIGHTS_LLMSVARIANT_ENUM: () => SITE_INSIGHTS_LLMSVARIANT_ENUM,
|
|
434
|
+
SITE_INSIGHTS_PAGE_NOT_FOUND_TYPE_ENUM: () => SITE_INSIGHTS_PAGE_NOT_FOUND_TYPE_ENUM,
|
|
429
435
|
SITE_INSIGHTS_QUERY_OPERATOR_ENUM: () => SITE_INSIGHTS_QUERY_OPERATOR_ENUM,
|
|
430
436
|
SITE_INSIGHTS_QUERY_RANGE_PRESET_ENUM: () => SITE_INSIGHTS_QUERY_RANGE_PRESET_ENUM,
|
|
431
437
|
SITE_INSIGHTS_TRADEMARK_PLACEMENT_ENUM: () => SITE_INSIGHTS_TRADEMARK_PLACEMENT_ENUM,
|
|
@@ -489,6 +495,7 @@ __export(src_exports, {
|
|
|
489
495
|
SiteInsightsEventType: () => SiteInsightsEventType,
|
|
490
496
|
SiteInsightsLLMSVariant: () => SiteInsightsLLMSVariant,
|
|
491
497
|
SiteInsightsLinkPosition: () => SiteInsightsLinkPosition,
|
|
498
|
+
SiteInsightsPageNotFoundType: () => SiteInsightsPageNotFoundType,
|
|
492
499
|
SiteInsightsQueryOperator: () => SiteInsightsQueryOperator,
|
|
493
500
|
SiteInsightsQueryRangePreset: () => SiteInsightsQueryRangePreset,
|
|
494
501
|
SiteInsightsTrademarkPlacement: () => SiteInsightsTrademarkPlacement,
|
|
@@ -529,7 +536,7 @@ module.exports = __toCommonJS(src_exports);
|
|
|
529
536
|
|
|
530
537
|
// package.json
|
|
531
538
|
var name = "@gitbook/api";
|
|
532
|
-
var version = "0.
|
|
539
|
+
var version = "0.196.0";
|
|
533
540
|
|
|
534
541
|
// src/client.ts
|
|
535
542
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -780,6 +787,10 @@ var SiteInsightsQueryOperator = /* @__PURE__ */ ((SiteInsightsQueryOperator2) =>
|
|
|
780
787
|
SiteInsightsQueryOperator2["LessThanOrEqual"] = "lessThanOrEqual";
|
|
781
788
|
return SiteInsightsQueryOperator2;
|
|
782
789
|
})(SiteInsightsQueryOperator || {});
|
|
790
|
+
var SiteInsightsPageNotFoundType = /* @__PURE__ */ ((SiteInsightsPageNotFoundType2) => {
|
|
791
|
+
SiteInsightsPageNotFoundType2["Conditional"] = "conditional";
|
|
792
|
+
return SiteInsightsPageNotFoundType2;
|
|
793
|
+
})(SiteInsightsPageNotFoundType || {});
|
|
783
794
|
var SiteInsightsVisitorBot = /* @__PURE__ */ ((SiteInsightsVisitorBot2) => {
|
|
784
795
|
SiteInsightsVisitorBot2["Unknown"] = "unknown";
|
|
785
796
|
SiteInsightsVisitorBot2["Googlebot"] = "googlebot";
|
|
@@ -960,6 +971,14 @@ var ContextSearchBoost = /* @__PURE__ */ ((ContextSearchBoost2) => {
|
|
|
960
971
|
ContextSearchBoost2["X12"] = "x1.2";
|
|
961
972
|
return ContextSearchBoost2;
|
|
962
973
|
})(ContextSearchBoost || {});
|
|
974
|
+
var ContextConnectionFailureReason = /* @__PURE__ */ ((ContextConnectionFailureReason2) => {
|
|
975
|
+
ContextConnectionFailureReason2["Authentication"] = "authentication";
|
|
976
|
+
ContextConnectionFailureReason2["Misconfigured"] = "misconfigured";
|
|
977
|
+
ContextConnectionFailureReason2["RateLimited"] = "rate_limited";
|
|
978
|
+
ContextConnectionFailureReason2["UpstreamUnavailable"] = "upstream_unavailable";
|
|
979
|
+
ContextConnectionFailureReason2["Unknown"] = "unknown";
|
|
980
|
+
return ContextConnectionFailureReason2;
|
|
981
|
+
})(ContextConnectionFailureReason || {});
|
|
963
982
|
var ContextConnectionStatus = /* @__PURE__ */ ((ContextConnectionStatus2) => {
|
|
964
983
|
ContextConnectionStatus2["Pending"] = "pending";
|
|
965
984
|
ContextConnectionStatus2["Syncing"] = "syncing";
|
|
@@ -995,6 +1014,7 @@ var SiteFindingType = /* @__PURE__ */ ((SiteFindingType2) => {
|
|
|
995
1014
|
SiteFindingType2["ContentOutdated"] = "content-outdated";
|
|
996
1015
|
SiteFindingType2["ContentIncorrect"] = "content-incorrect";
|
|
997
1016
|
SiteFindingType2["ContentGap"] = "content-gap";
|
|
1017
|
+
SiteFindingType2["BrokenLink"] = "broken-link";
|
|
998
1018
|
SiteFindingType2["Other"] = "other";
|
|
999
1019
|
return SiteFindingType2;
|
|
1000
1020
|
})(SiteFindingType || {});
|
|
@@ -1017,6 +1037,11 @@ var ContextRecordType = /* @__PURE__ */ ((ContextRecordType2) => {
|
|
|
1017
1037
|
ContextRecordType2["Document"] = "document";
|
|
1018
1038
|
return ContextRecordType2;
|
|
1019
1039
|
})(ContextRecordType || {});
|
|
1040
|
+
var AgentFeedbackSource = /* @__PURE__ */ ((AgentFeedbackSource2) => {
|
|
1041
|
+
AgentFeedbackSource2["Mcp"] = "mcp";
|
|
1042
|
+
AgentFeedbackSource2["Assistant"] = "assistant";
|
|
1043
|
+
return AgentFeedbackSource2;
|
|
1044
|
+
})(AgentFeedbackSource || {});
|
|
1020
1045
|
var SiteSocialAccountPlatform = /* @__PURE__ */ ((SiteSocialAccountPlatform2) => {
|
|
1021
1046
|
SiteSocialAccountPlatform2["Twitter"] = "twitter";
|
|
1022
1047
|
SiteSocialAccountPlatform2["Instagram"] = "instagram";
|
|
@@ -1242,6 +1267,7 @@ var GitSyncInstallationPriority = /* @__PURE__ */ ((GitSyncInstallationPriority2
|
|
|
1242
1267
|
var StorageUploadKind = /* @__PURE__ */ ((StorageUploadKind2) => {
|
|
1243
1268
|
StorageUploadKind2["CustomizationFont"] = "customization_font";
|
|
1244
1269
|
StorageUploadKind2["ImportFile"] = "import_file";
|
|
1270
|
+
StorageUploadKind2["OrganizationFile"] = "organization_file";
|
|
1245
1271
|
return StorageUploadKind2;
|
|
1246
1272
|
})(StorageUploadKind || {});
|
|
1247
1273
|
var TranslationStatus = /* @__PURE__ */ ((TranslationStatus2) => {
|
|
@@ -1327,12 +1353,14 @@ var SiteFeatureKey = /* @__PURE__ */ ((SiteFeatureKey2) => {
|
|
|
1327
1353
|
SiteFeatureKey2["SitesAiSearch"] = "sites-ai-search";
|
|
1328
1354
|
SiteFeatureKey2["SitesAiAssistant"] = "sites-ai-assistant";
|
|
1329
1355
|
SiteFeatureKey2["SitesAiInsights"] = "sites-ai-insights";
|
|
1356
|
+
SiteFeatureKey2["SitesFixBrokenLinks"] = "sites-fix-broken-links";
|
|
1330
1357
|
SiteFeatureKey2["SitesConnections"] = "sites-connections";
|
|
1331
1358
|
SiteFeatureKey2["SitesContentGaps"] = "sites-content-gaps";
|
|
1332
1359
|
SiteFeatureKey2["SitesChannels"] = "sites-channels";
|
|
1333
1360
|
SiteFeatureKey2["SitesEmbed"] = "sites-embed";
|
|
1334
1361
|
SiteFeatureKey2["SitesApiPlayground"] = "sites-api-playground";
|
|
1335
1362
|
SiteFeatureKey2["SitesBasicCustomization"] = "sites-basic-customization";
|
|
1363
|
+
SiteFeatureKey2["SitesBrokenLinks"] = "sites-broken-links";
|
|
1336
1364
|
SiteFeatureKey2["SitesCustomDomain"] = "sites-custom-domain";
|
|
1337
1365
|
SiteFeatureKey2["SitesCustomFonts"] = "sites-custom-fonts";
|
|
1338
1366
|
SiteFeatureKey2["SitesCustomSubdirectory"] = "sites-custom-subdirectory";
|
|
@@ -1417,7 +1445,7 @@ var BillingCreditsBundle = /* @__PURE__ */ ((BillingCreditsBundle2) => {
|
|
|
1417
1445
|
BillingCreditsBundle2["Value135001500"] = "13500_1500";
|
|
1418
1446
|
BillingCreditsBundle2["Value240006000"] = "24000_6000";
|
|
1419
1447
|
BillingCreditsBundle2["Value4200018000"] = "42000_18000";
|
|
1420
|
-
BillingCreditsBundle2["
|
|
1448
|
+
BillingCreditsBundle2["Value6000040000"] = "60000_40000";
|
|
1421
1449
|
return BillingCreditsBundle2;
|
|
1422
1450
|
})(BillingCreditsBundle || {});
|
|
1423
1451
|
var BillingInterval = /* @__PURE__ */ ((BillingInterval2) => {
|
|
@@ -3037,6 +3065,16 @@ var Api = class extends HttpClient {
|
|
|
3037
3065
|
format: "json",
|
|
3038
3066
|
...params
|
|
3039
3067
|
}),
|
|
3068
|
+
createOrganization: (data, query, params = {}) => this.request({
|
|
3069
|
+
path: `/orgs`,
|
|
3070
|
+
method: "POST",
|
|
3071
|
+
query,
|
|
3072
|
+
body: data,
|
|
3073
|
+
secure: true,
|
|
3074
|
+
type: "application/json" /* Json */,
|
|
3075
|
+
format: "json",
|
|
3076
|
+
...params
|
|
3077
|
+
}),
|
|
3040
3078
|
getOrganizationById: (organizationId, params = {}) => this.request({
|
|
3041
3079
|
path: `/orgs/${organizationId}`,
|
|
3042
3080
|
method: "GET",
|
|
@@ -3053,6 +3091,28 @@ var Api = class extends HttpClient {
|
|
|
3053
3091
|
format: "json",
|
|
3054
3092
|
...params
|
|
3055
3093
|
}),
|
|
3094
|
+
listOrganizationAuditEventActions: (organizationId, params = {}) => this.request({
|
|
3095
|
+
path: `/orgs/${organizationId}/audit-event-actions`,
|
|
3096
|
+
method: "GET",
|
|
3097
|
+
secure: true,
|
|
3098
|
+
format: "json",
|
|
3099
|
+
...params
|
|
3100
|
+
}),
|
|
3101
|
+
listOrganizationAuditEvents: (organizationId, query, params = {}) => this.request({
|
|
3102
|
+
path: `/orgs/${organizationId}/audit-events`,
|
|
3103
|
+
method: "GET",
|
|
3104
|
+
query,
|
|
3105
|
+
secure: true,
|
|
3106
|
+
format: "json",
|
|
3107
|
+
...params
|
|
3108
|
+
}),
|
|
3109
|
+
getOrganizationAuditEvent: (organizationId, auditEventId, params = {}) => this.request({
|
|
3110
|
+
path: `/orgs/${organizationId}/audit-events/${auditEventId}`,
|
|
3111
|
+
method: "GET",
|
|
3112
|
+
secure: true,
|
|
3113
|
+
format: "json",
|
|
3114
|
+
...params
|
|
3115
|
+
}),
|
|
3056
3116
|
listOrganizationStyleguides: (organizationId, params = {}) => this.request({
|
|
3057
3117
|
path: `/orgs/${organizationId}/styleguides`,
|
|
3058
3118
|
method: "GET",
|
|
@@ -4540,6 +4600,14 @@ var Api = class extends HttpClient {
|
|
|
4540
4600
|
})
|
|
4541
4601
|
};
|
|
4542
4602
|
org = {
|
|
4603
|
+
listImportRuns: (organizationId, query, params = {}) => this.request({
|
|
4604
|
+
path: `/org/${organizationId}/imports`,
|
|
4605
|
+
method: "GET",
|
|
4606
|
+
query,
|
|
4607
|
+
secure: true,
|
|
4608
|
+
format: "json",
|
|
4609
|
+
...params
|
|
4610
|
+
}),
|
|
4543
4611
|
startImportRun: (organizationId, data, params = {}) => this.request({
|
|
4544
4612
|
path: `/org/${organizationId}/imports`,
|
|
4545
4613
|
method: "POST",
|
|
@@ -4549,6 +4617,13 @@ var Api = class extends HttpClient {
|
|
|
4549
4617
|
format: "json",
|
|
4550
4618
|
...params
|
|
4551
4619
|
}),
|
|
4620
|
+
getImportRun: (organizationId, importRunId, params = {}) => this.request({
|
|
4621
|
+
path: `/org/${organizationId}/imports/${importRunId}`,
|
|
4622
|
+
method: "GET",
|
|
4623
|
+
secure: true,
|
|
4624
|
+
format: "json",
|
|
4625
|
+
...params
|
|
4626
|
+
}),
|
|
4552
4627
|
cancelImportRun: (organizationId, importRunId, params = {}) => this.request({
|
|
4553
4628
|
path: `/org/${organizationId}/imports/${importRunId}/cancel`,
|
|
4554
4629
|
method: "POST",
|
|
@@ -4695,6 +4770,14 @@ var Api = class extends HttpClient {
|
|
|
4695
4770
|
format: "json",
|
|
4696
4771
|
...params
|
|
4697
4772
|
}),
|
|
4773
|
+
getGitHubRepoFileForGitSyncInstallation: (installationId, accountName, repositoryName, query, params = {}) => this.request({
|
|
4774
|
+
path: `/git/installations/${installationId}/github/repos/${accountName}/${repositoryName}/file`,
|
|
4775
|
+
method: "GET",
|
|
4776
|
+
query,
|
|
4777
|
+
secure: true,
|
|
4778
|
+
format: "json",
|
|
4779
|
+
...params
|
|
4780
|
+
}),
|
|
4698
4781
|
listGitLabProjectsForGitSyncInstallation: (installationId, params = {}) => this.request({
|
|
4699
4782
|
path: `/git/installations/${installationId}/gitlab/projects`,
|
|
4700
4783
|
method: "GET",
|
|
@@ -4708,6 +4791,14 @@ var Api = class extends HttpClient {
|
|
|
4708
4791
|
secure: true,
|
|
4709
4792
|
format: "json",
|
|
4710
4793
|
...params
|
|
4794
|
+
}),
|
|
4795
|
+
getGitLabProjectFileForGitSyncInstallation: (installationId, projectId, query, params = {}) => this.request({
|
|
4796
|
+
path: `/git/installations/${installationId}/gitlab/projects/${projectId}/file`,
|
|
4797
|
+
method: "GET",
|
|
4798
|
+
query,
|
|
4799
|
+
secure: true,
|
|
4800
|
+
format: "json",
|
|
4801
|
+
...params
|
|
4711
4802
|
})
|
|
4712
4803
|
};
|
|
4713
4804
|
};
|
|
@@ -4807,7 +4898,7 @@ var SITE_PROXY_ORIGIN_MAX_LENGTH = 512;
|
|
|
4807
4898
|
var SITE_PROXY_ORIGIN_PATTERN = "^([\\w-]+\\.)*[\\w-]+\\.[a-zA-Z]{2,}(\\/[\\w-]+)+$";
|
|
4808
4899
|
var SITE_VISIBILITY_ENUM = ["public", "unlisted", "share-link", "visitor-auth"];
|
|
4809
4900
|
var SITE_ADS_TOPIC_ENUM = ["webdev", "crypto"];
|
|
4810
|
-
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-content-gaps", "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"];
|
|
4901
|
+
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-fix-broken-links", "sites-connections", "sites-content-gaps", "sites-channels", "sites-embed", "sites-api-playground", "sites-basic-customization", "sites-broken-links", "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"];
|
|
4811
4902
|
var SITE_CUSTOMIZATION_FEATURE_ENUM = ["header-logo", "header-primary-link", "theme-preset", "premium-fonts", "custom-icons", "footer-logo", "footer-links", "footer-copyright", "semantic-colors"];
|
|
4812
4903
|
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"];
|
|
4813
4904
|
var SITE_SECTION_TITLE_MAX_LENGTH = 128;
|
|
@@ -4836,7 +4927,7 @@ var OPEN_APISPEC_SLUG_PATTERN = "^[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*$";
|
|
|
4836
4927
|
var OPEN_APISPEC_PROCESSING_STATE_ENUM = ["pending", "progress", "complete"];
|
|
4837
4928
|
var OPEN_APISPEC_PROCESSING_ERROR_CODE_ENUM = ["FETCH_TIMEOUT", "FETCH_ERROR", "PARSE_ERROR"];
|
|
4838
4929
|
var TRANSLATION_STATUS_ENUM = ["pending", "running", "completed"];
|
|
4839
|
-
var STORAGE_UPLOAD_KIND_ENUM = ["customization_font", "import_file"];
|
|
4930
|
+
var STORAGE_UPLOAD_KIND_ENUM = ["customization_font", "import_file", "organization_file"];
|
|
4840
4931
|
var FONT_FAMILY_MAX_LENGTH = 50;
|
|
4841
4932
|
var FONT_FAMILY_MIN_LENGTH = 1;
|
|
4842
4933
|
var STORAGE_FILE_KEY_MAX_LENGTH = 512;
|
|
@@ -4863,6 +4954,7 @@ var CUSTOMIZATION_ANNOUNCEMENT_MESSAGE_MAX_LENGTH = 128;
|
|
|
4863
4954
|
var CUSTOMIZATION_ANNOUNCEMENT_MESSAGE_MIN_LENGTH = 2;
|
|
4864
4955
|
var CUSTOMIZATION_DEFAULT_THEME_MODE_ENUM = ["light", "dark", "system"];
|
|
4865
4956
|
var CUSTOMIZATION_AIMODE_ENUM = ["none", "search", "assistant"];
|
|
4957
|
+
var CUSTOMIZATION_AIGREETING_MAX_LENGTH = 256;
|
|
4866
4958
|
var CUSTOMIZATION_SUGGESTED_QUESTION_MAX_LENGTH = 64;
|
|
4867
4959
|
var CUSTOMIZATION_SUGGESTED_QUESTION_MIN_LENGTH = 3;
|
|
4868
4960
|
var CUSTOMIZATION_AIINSTRUCTIONS_MAX_LENGTH = 1e4;
|
|
@@ -4874,24 +4966,28 @@ var SITE_SOCIAL_ACCOUNT_HANDLE_MIN_LENGTH = 1;
|
|
|
4874
4966
|
var SHARE_LINK_NAME_MAX_LENGTH = 50;
|
|
4875
4967
|
var SHARE_LINK_NAME_MIN_LENGTH = 0;
|
|
4876
4968
|
var AGENT_GOAL_MAX_LENGTH = 1024;
|
|
4969
|
+
var AGENT_FEEDBACK_SOURCE_ENUM = ["mcp", "assistant"];
|
|
4877
4970
|
var CONTEXT_RECORD_TYPE_ENUM = ["ticket", "document"];
|
|
4878
4971
|
var CONTEXT_RECORD_TITLE_MAX_LENGTH = 256;
|
|
4879
4972
|
var CONTEXT_RECORD_TITLE_MIN_LENGTH = 1;
|
|
4880
4973
|
var CONTEXT_RECORD_DESCRIPTION_MAX_LENGTH = 512;
|
|
4881
4974
|
var SITE_SCAN_STATUS_ENUM = ["pending", "running", "done", "failed"];
|
|
4882
4975
|
var SITE_FINDING_STATUS_ENUM = ["candidate", "open", "done", "canceled"];
|
|
4883
|
-
var SITE_FINDING_TYPE_ENUM = ["content-outdated", "content-incorrect", "content-gap", "other"];
|
|
4976
|
+
var SITE_FINDING_TYPE_ENUM = ["content-outdated", "content-incorrect", "content-gap", "broken-link", "other"];
|
|
4884
4977
|
var SITE_FINDING_SEVERITY_ENUM = ["low", "medium", "high"];
|
|
4885
4978
|
var SITE_TRIAGE_FILTER_QUESTIONS_ENUM = ["questions"];
|
|
4886
4979
|
var SITE_TRIAGE_FILTER_CONNECTIONS_PATTERN = "^connection:.+$";
|
|
4887
4980
|
var SITE_FINDING_ORDER_BY_ENUM = ["updatedAt", "severity", "sources"];
|
|
4888
4981
|
var SITE_FINDING_TITLE_MAX_LENGTH = 256;
|
|
4982
|
+
var SITE_REDIRECT_SOURCE_PATH_MAX_LENGTH = 512;
|
|
4983
|
+
var SITE_REDIRECT_SOURCE_PATH_PATTERN = "^\\/(?!\\*)(?!.*\\*.+)(?:[A-Za-z0-9\\-._~+]|%[0-9A-Fa-f]{2})+(?:\\/(?:[A-Za-z0-9\\-._~+]|%[0-9A-Fa-f]{2})+)*(?:\\/\\*|\\*)?$";
|
|
4889
4984
|
var SITE_QUESTION_TYPE_ENUM = ["exploring", "how-to", "troubleshooting", "reference", "unknown"];
|
|
4890
4985
|
var CONTEXT_CONNECTION_LABEL_MAX_LENGTH = 128;
|
|
4891
4986
|
var CONTEXT_CONNECTION_LABEL_MIN_LENGTH = 0;
|
|
4892
4987
|
var CONTEXT_CONNECTION_FILTER_MAX_LENGTH = 1024;
|
|
4893
4988
|
var CONTEXT_CONNECTION_FILTER_MIN_LENGTH = 0;
|
|
4894
4989
|
var CONTEXT_CONNECTION_STATUS_ENUM = ["pending", "syncing", "succeeded", "failed"];
|
|
4990
|
+
var CONTEXT_CONNECTION_FAILURE_REASON_ENUM = ["authentication", "misconfigured", "rate_limited", "upstream_unavailable", "unknown"];
|
|
4895
4991
|
var CONTEXT_SEARCH_BOOST_ENUM = ["x0.8", "x1.0", "x1.2"];
|
|
4896
4992
|
var YOUTUBE_CHANNEL_ID_PATTERN = "^UC[A-Za-z0-9_-]{22}$";
|
|
4897
4993
|
var YOUTUBE_CHANNEL_NAME_PATTERN = "^@[A-Za-z0-9._-]{3,100}$";
|
|
@@ -4915,10 +5011,9 @@ var SITE_INSIGHTS_EVENT_TYPE_ENUM = ["page_view", "page_markdown_request", "sear
|
|
|
4915
5011
|
var SITE_INSIGHTS_VISITOR_BROWSER_ENUM = ["chrome", "firefox", "safari", "edge", "ie", "opera", "unknown"];
|
|
4916
5012
|
var SITE_INSIGHTS_VISITOR_DEVICE_ENUM = ["desktop", "tablet", "mobile", "unknown"];
|
|
4917
5013
|
var SITE_INSIGHTS_VISITOR_OS_ENUM = ["windows", "macos", "linux", "android", "ios", "unknown"];
|
|
5014
|
+
var SITE_INSIGHTS_PAGE_NOT_FOUND_TYPE_ENUM = ["conditional"];
|
|
4918
5015
|
var SITE_INSIGHTS_QUERY_OPERATOR_ENUM = ["in", "notIn", "greaterThan", "greaterThanOrEqual", "lessThan", "lessThanOrEqual"];
|
|
4919
5016
|
var SITE_INSIGHTS_QUERY_RANGE_PRESET_ENUM = ["lastYear", "last3Months", "last30Days", "last7Days", "last24Hours"];
|
|
4920
|
-
var SITE_REDIRECT_SOURCE_PATH_MAX_LENGTH = 512;
|
|
4921
|
-
var SITE_REDIRECT_SOURCE_PATH_PATTERN = "^\\/(?!\\*)(?!.*\\*.+)(?:[A-Za-z0-9\\-._~+]|%[0-9A-Fa-f]{2})+(?:\\/(?:[A-Za-z0-9\\-._~+]|%[0-9A-Fa-f]{2})+)*(?:\\/\\*|\\*)?$";
|
|
4922
5017
|
var SITE_MCP_SERVER_NAME_MAX_LENGTH = 100;
|
|
4923
5018
|
var SITE_MCP_SERVER_NAME_MIN_LENGTH = 1;
|
|
4924
5019
|
var SITE_MCP_SERVER_TRANSPORT_ENUM = ["sse", "http"];
|
|
@@ -5013,6 +5108,7 @@ var GitBookAPI = class extends Api {
|
|
|
5013
5108
|
};
|
|
5014
5109
|
// Annotate the CommonJS export names for ESM import in node:
|
|
5015
5110
|
0 && (module.exports = {
|
|
5111
|
+
AGENT_FEEDBACK_SOURCE_ENUM,
|
|
5016
5112
|
AGENT_GOAL_MAX_LENGTH,
|
|
5017
5113
|
AGENT_STATUS_ENUM,
|
|
5018
5114
|
AIMESSAGE_ROLE_ENUM,
|
|
@@ -5026,6 +5122,7 @@ var GitBookAPI = class extends Api {
|
|
|
5026
5122
|
APIINTEGRATION_SCOPE_ENUM,
|
|
5027
5123
|
APIIntegrationScope,
|
|
5028
5124
|
APITOKEN_LABEL_MAX_LENGTH,
|
|
5125
|
+
AgentFeedbackSource,
|
|
5029
5126
|
AgentStatus,
|
|
5030
5127
|
Api,
|
|
5031
5128
|
BILLING_COUPON_MAX_LENGTH,
|
|
@@ -5063,6 +5160,7 @@ var GitBookAPI = class extends Api {
|
|
|
5063
5160
|
COLOR_PATTERN,
|
|
5064
5161
|
CONTENT_KIT_ICON_ENUM,
|
|
5065
5162
|
CONTENT_VISIBILITY_ENUM,
|
|
5163
|
+
CONTEXT_CONNECTION_FAILURE_REASON_ENUM,
|
|
5066
5164
|
CONTEXT_CONNECTION_FILTER_MAX_LENGTH,
|
|
5067
5165
|
CONTEXT_CONNECTION_FILTER_MIN_LENGTH,
|
|
5068
5166
|
CONTEXT_CONNECTION_LABEL_MAX_LENGTH,
|
|
@@ -5073,6 +5171,7 @@ var GitBookAPI = class extends Api {
|
|
|
5073
5171
|
CONTEXT_RECORD_TITLE_MIN_LENGTH,
|
|
5074
5172
|
CONTEXT_RECORD_TYPE_ENUM,
|
|
5075
5173
|
CONTEXT_SEARCH_BOOST_ENUM,
|
|
5174
|
+
CUSTOMIZATION_AIGREETING_MAX_LENGTH,
|
|
5076
5175
|
CUSTOMIZATION_AIINSTRUCTIONS_MAX_LENGTH,
|
|
5077
5176
|
CUSTOMIZATION_AIMODE_ENUM,
|
|
5078
5177
|
CUSTOMIZATION_ANNOUNCEMENT_MESSAGE_MAX_LENGTH,
|
|
@@ -5110,6 +5209,7 @@ var GitBookAPI = class extends Api {
|
|
|
5110
5209
|
ContentKitIcon,
|
|
5111
5210
|
ContentType,
|
|
5112
5211
|
ContentVisibility,
|
|
5212
|
+
ContextConnectionFailureReason,
|
|
5113
5213
|
ContextConnectionStatus,
|
|
5114
5214
|
ContextRecordType,
|
|
5115
5215
|
ContextSearchBoost,
|
|
@@ -5260,6 +5360,7 @@ var GitBookAPI = class extends Api {
|
|
|
5260
5360
|
SITE_INSIGHTS_EVENT_TYPE_ENUM,
|
|
5261
5361
|
SITE_INSIGHTS_LINK_POSITION_ENUM,
|
|
5262
5362
|
SITE_INSIGHTS_LLMSVARIANT_ENUM,
|
|
5363
|
+
SITE_INSIGHTS_PAGE_NOT_FOUND_TYPE_ENUM,
|
|
5263
5364
|
SITE_INSIGHTS_QUERY_OPERATOR_ENUM,
|
|
5264
5365
|
SITE_INSIGHTS_QUERY_RANGE_PRESET_ENUM,
|
|
5265
5366
|
SITE_INSIGHTS_TRADEMARK_PLACEMENT_ENUM,
|
|
@@ -5323,6 +5424,7 @@ var GitBookAPI = class extends Api {
|
|
|
5323
5424
|
SiteInsightsEventType,
|
|
5324
5425
|
SiteInsightsLLMSVariant,
|
|
5325
5426
|
SiteInsightsLinkPosition,
|
|
5427
|
+
SiteInsightsPageNotFoundType,
|
|
5326
5428
|
SiteInsightsQueryOperator,
|
|
5327
5429
|
SiteInsightsQueryRangePreset,
|
|
5328
5430
|
SiteInsightsTrademarkPlacement,
|