@gitbook/api 0.203.0 → 0.205.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 +306 -137
- package/dist/constants.d.ts +10 -2
- package/dist/index.cjs +57 -3
- package/dist/index.js +47 -3
- package/package.json +1 -1
- package/spec/openapi.json +998 -572
- package/spec/openapi.yaml +687 -404
package/dist/constants.d.ts
CHANGED
|
@@ -99,6 +99,7 @@ export declare const BILLING_CANCELLATION_COMMENT_MIN_LENGTH = 1;
|
|
|
99
99
|
export declare const BILLING_COUPON_MAX_LENGTH = 500;
|
|
100
100
|
export declare const BILLING_COUPON_MIN_LENGTH = 1;
|
|
101
101
|
export declare const BILLING_METER_ENUM: ["ai_responses", "ai_agent_responses", "translation_words"];
|
|
102
|
+
export declare const AICREDIT_GRANT_TYPE_ENUM: ["paid", "bonus", "site", "rollover", "custom"];
|
|
102
103
|
export declare const BILLING_SWITCH_ACTION_ENUM: ["trial", "upgrade", "upgrade_passive", "downgrade", "switch_interval"];
|
|
103
104
|
export declare const AIUSAGE_INTERVAL_ENUM: ["day", "week", "month", "year"];
|
|
104
105
|
export declare const ORGANIZATION_FEATURE_ENUM: ["max-members", "ai", "ai-lens", "pdf-export", "ai-writing", "reusable-content", "translations", "members-advanced-roles", "members-teams", "members-team-owners", "security-saml", "change-requests-merge-rules"];
|
|
@@ -173,11 +174,18 @@ export declare const CONTEXT_CONNECTION_LABEL_MAX_LENGTH = 128;
|
|
|
173
174
|
export declare const CONTEXT_CONNECTION_LABEL_MIN_LENGTH = 0;
|
|
174
175
|
export declare const CONTEXT_CONNECTION_FILTER_MAX_LENGTH = 1024;
|
|
175
176
|
export declare const CONTEXT_CONNECTION_FILTER_MIN_LENGTH = 0;
|
|
176
|
-
export declare const CONTEXT_CONNECTION_STATUS_ENUM: ["pending", "syncing", "succeeded", "failed"];
|
|
177
|
+
export declare const CONTEXT_CONNECTION_STATUS_ENUM: ["pending", "syncing", "succeeded", "failed", "skipped"];
|
|
177
178
|
export declare const CONTEXT_CONNECTION_FAILURE_REASON_ENUM: ["authentication", "misconfigured", "rate_limited", "upstream_unavailable", "unknown"];
|
|
179
|
+
export declare const AISKIP_REASON_ENUM: ["ai_unavailable_for_organization", "ai_unavailable_for_site", "ai_disabled", "ai_restricted", "ai_paused"];
|
|
178
180
|
export declare const CONTEXT_SEARCH_BOOST_ENUM: ["x0.8", "x1.0", "x1.2"];
|
|
179
181
|
export declare const YOUTUBE_CHANNEL_ID_PATTERN = "^UC[A-Za-z0-9_-]{22}$";
|
|
180
182
|
export declare const YOUTUBE_CHANNEL_NAME_PATTERN = "^@[A-Za-z0-9._-]{3,100}$";
|
|
183
|
+
export declare const BASE_URL_MAX_LENGTH = 2048;
|
|
184
|
+
export declare const BASE_URL_MIN_LENGTH = 1;
|
|
185
|
+
export declare const API_EMAIL_MAX_LENGTH = 254;
|
|
186
|
+
export declare const API_EMAIL_MIN_LENGTH = 1;
|
|
187
|
+
export declare const API_TOKEN_MAX_LENGTH = 1024;
|
|
188
|
+
export declare const API_TOKEN_MIN_LENGTH = 1;
|
|
181
189
|
export declare const SITE_QUESTION_ANSWER_RELEVANCE_ENUM: ["relevant", "spam", "off-topic", "unclear"];
|
|
182
190
|
export declare const SITE_CORE_CHANNEL_TYPE_ENUM: ["site", "embed", "api"];
|
|
183
191
|
export declare const SITE_CONFIGURABLE_CHANNEL_TYPE_ENUM: ["builtin:slack", "builtin:discord", "builtin:github", "builtin:linear"];
|
|
@@ -195,7 +203,7 @@ export declare const SITE_INSIGHTS_LINK_POSITION_ENUM: ["announcement", "header"
|
|
|
195
203
|
export declare const SITE_INSIGHTS_TRADEMARK_PLACEMENT_ENUM: ["sidebar", "ad", "footer", "pdf", "embed"];
|
|
196
204
|
export declare const SITE_INSIGHTS_AD_PLACEMENT_ENUM: ["aside"];
|
|
197
205
|
export declare const SITE_INSIGHTS_LLMSVARIANT_ENUM: ["standard", "full"];
|
|
198
|
-
export declare const SITE_INSIGHTS_EVENT_TYPE_ENUM: ["page_view", "page_markdown_request", "search_open", "search_type_query", "search_open_result", "page_post_feedback", "page_post_feedback_comment", "agent_feedback", "ask_question", "ask_view", "ask_rate_response", "link_click", "api_client_open", "api_client_request", "ad_click", "ad_display", "trademark_click", "llms_request", "mcp_request", "rss_request"];
|
|
206
|
+
export declare const SITE_INSIGHTS_EVENT_TYPE_ENUM: ["page_view", "page_markdown_request", "search_open", "search_type_query", "search_open_result", "page_post_feedback", "page_post_feedback_comment", "agent_feedback", "ask_question", "ask_view", "ask_trigger_click", "ask_rate_response", "link_click", "api_client_open", "api_client_request", "ad_click", "ad_display", "trademark_click", "llms_request", "mcp_request", "rss_request"];
|
|
199
207
|
export declare const SITE_INSIGHTS_VISITOR_BROWSER_ENUM: ["chrome", "firefox", "safari", "edge", "ie", "opera", "unknown"];
|
|
200
208
|
export declare const SITE_INSIGHTS_VISITOR_DEVICE_ENUM: ["desktop", "tablet", "mobile", "unknown"];
|
|
201
209
|
export declare const SITE_INSIGHTS_VISITOR_OS_ENUM: ["windows", "macos", "linux", "android", "ios", "unknown"];
|
package/dist/index.cjs
CHANGED
|
@@ -184,6 +184,8 @@ __export(src_exports, {
|
|
|
184
184
|
AGENT_FEEDBACK_SOURCE_ENUM: () => AGENT_FEEDBACK_SOURCE_ENUM,
|
|
185
185
|
AGENT_GOAL_MAX_LENGTH: () => AGENT_GOAL_MAX_LENGTH,
|
|
186
186
|
AGENT_STATUS_ENUM: () => AGENT_STATUS_ENUM,
|
|
187
|
+
AICREDIT_GRANT_TYPE_ENUM: () => AICREDIT_GRANT_TYPE_ENUM,
|
|
188
|
+
AICreditGrantType: () => AICreditGrantType,
|
|
187
189
|
AIMESSAGE_ROLE_ENUM: () => AIMESSAGE_ROLE_ENUM,
|
|
188
190
|
AIMESSAGE_STEP_PHASE_ENUM: () => AIMESSAGE_STEP_PHASE_ENUM,
|
|
189
191
|
AIMESSAGE_STEP_START_CONDITION_ENUM: () => AIMESSAGE_STEP_START_CONDITION_ENUM,
|
|
@@ -192,16 +194,24 @@ __export(src_exports, {
|
|
|
192
194
|
AIMessageStepPhase: () => AIMessageStepPhase,
|
|
193
195
|
AIMessageStepStartCondition: () => AIMessageStepStartCondition,
|
|
194
196
|
AIModel: () => AIModel,
|
|
197
|
+
AISKIP_REASON_ENUM: () => AISKIP_REASON_ENUM,
|
|
198
|
+
AISkipReason: () => AISkipReason,
|
|
195
199
|
AIUSAGE_INTERVAL_ENUM: () => AIUSAGE_INTERVAL_ENUM,
|
|
196
200
|
AIUsageInterval: () => AIUsageInterval,
|
|
197
201
|
APIINTEGRATION_SCOPE_ENUM: () => APIINTEGRATION_SCOPE_ENUM,
|
|
198
202
|
APIIntegrationScope: () => APIIntegrationScope,
|
|
199
203
|
APITOKEN_LABEL_MAX_LENGTH: () => APITOKEN_LABEL_MAX_LENGTH,
|
|
204
|
+
API_EMAIL_MAX_LENGTH: () => API_EMAIL_MAX_LENGTH,
|
|
205
|
+
API_EMAIL_MIN_LENGTH: () => API_EMAIL_MIN_LENGTH,
|
|
206
|
+
API_TOKEN_MAX_LENGTH: () => API_TOKEN_MAX_LENGTH,
|
|
207
|
+
API_TOKEN_MIN_LENGTH: () => API_TOKEN_MIN_LENGTH,
|
|
200
208
|
AgentBackgroundAgentStatus: () => AgentBackgroundAgentStatus,
|
|
201
209
|
AgentEditScope: () => AgentEditScope,
|
|
202
210
|
AgentFeedbackSource: () => AgentFeedbackSource,
|
|
203
211
|
AgentStatus: () => AgentStatus,
|
|
204
212
|
Api: () => Api,
|
|
213
|
+
BASE_URL_MAX_LENGTH: () => BASE_URL_MAX_LENGTH,
|
|
214
|
+
BASE_URL_MIN_LENGTH: () => BASE_URL_MIN_LENGTH,
|
|
205
215
|
BILLING_CANCELLATION_COMMENT_MAX_LENGTH: () => BILLING_CANCELLATION_COMMENT_MAX_LENGTH,
|
|
206
216
|
BILLING_CANCELLATION_COMMENT_MIN_LENGTH: () => BILLING_CANCELLATION_COMMENT_MIN_LENGTH,
|
|
207
217
|
BILLING_COUPON_MAX_LENGTH: () => BILLING_COUPON_MAX_LENGTH,
|
|
@@ -568,7 +578,7 @@ module.exports = __toCommonJS(src_exports);
|
|
|
568
578
|
|
|
569
579
|
// package.json
|
|
570
580
|
var name = "@gitbook/api";
|
|
571
|
-
var version = "0.
|
|
581
|
+
var version = "0.205.0";
|
|
572
582
|
|
|
573
583
|
// src/client.ts
|
|
574
584
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -904,6 +914,14 @@ var SiteInsightsVisitorBot = /* @__PURE__ */ ((SiteInsightsVisitorBot2) => {
|
|
|
904
914
|
SiteInsightsVisitorBot2["Duckassist"] = "duckassist";
|
|
905
915
|
SiteInsightsVisitorBot2["AmznSearchbot"] = "amzn-searchbot";
|
|
906
916
|
SiteInsightsVisitorBot2["AmznUser"] = "amzn-user";
|
|
917
|
+
SiteInsightsVisitorBot2["OtherBot"] = "other-bot";
|
|
918
|
+
SiteInsightsVisitorBot2["Parallel"] = "parallel";
|
|
919
|
+
SiteInsightsVisitorBot2["Exa"] = "exa";
|
|
920
|
+
SiteInsightsVisitorBot2["Linkup"] = "linkup";
|
|
921
|
+
SiteInsightsVisitorBot2["VertexAi"] = "vertex-ai";
|
|
922
|
+
SiteInsightsVisitorBot2["Atlassian"] = "atlassian";
|
|
923
|
+
SiteInsightsVisitorBot2["Kapa"] = "kapa";
|
|
924
|
+
SiteInsightsVisitorBot2["Bedrock"] = "bedrock";
|
|
907
925
|
return SiteInsightsVisitorBot2;
|
|
908
926
|
})(SiteInsightsVisitorBot || {});
|
|
909
927
|
var SiteInsightsVisitorOS = /* @__PURE__ */ ((SiteInsightsVisitorOS2) => {
|
|
@@ -943,6 +961,7 @@ var SiteInsightsEventType = /* @__PURE__ */ ((SiteInsightsEventType2) => {
|
|
|
943
961
|
SiteInsightsEventType2["AgentFeedback"] = "agent_feedback";
|
|
944
962
|
SiteInsightsEventType2["AskQuestion"] = "ask_question";
|
|
945
963
|
SiteInsightsEventType2["AskView"] = "ask_view";
|
|
964
|
+
SiteInsightsEventType2["AskTriggerClick"] = "ask_trigger_click";
|
|
946
965
|
SiteInsightsEventType2["AskRateResponse"] = "ask_rate_response";
|
|
947
966
|
SiteInsightsEventType2["LinkClick"] = "link_click";
|
|
948
967
|
SiteInsightsEventType2["ApiClientOpen"] = "api_client_open";
|
|
@@ -1062,6 +1081,14 @@ var ContextSearchBoost = /* @__PURE__ */ ((ContextSearchBoost2) => {
|
|
|
1062
1081
|
ContextSearchBoost2["X12"] = "x1.2";
|
|
1063
1082
|
return ContextSearchBoost2;
|
|
1064
1083
|
})(ContextSearchBoost || {});
|
|
1084
|
+
var AISkipReason = /* @__PURE__ */ ((AISkipReason2) => {
|
|
1085
|
+
AISkipReason2["AiUnavailableForOrganization"] = "ai_unavailable_for_organization";
|
|
1086
|
+
AISkipReason2["AiUnavailableForSite"] = "ai_unavailable_for_site";
|
|
1087
|
+
AISkipReason2["AiDisabled"] = "ai_disabled";
|
|
1088
|
+
AISkipReason2["AiRestricted"] = "ai_restricted";
|
|
1089
|
+
AISkipReason2["AiPaused"] = "ai_paused";
|
|
1090
|
+
return AISkipReason2;
|
|
1091
|
+
})(AISkipReason || {});
|
|
1065
1092
|
var ContextConnectionFailureReason = /* @__PURE__ */ ((ContextConnectionFailureReason2) => {
|
|
1066
1093
|
ContextConnectionFailureReason2["Authentication"] = "authentication";
|
|
1067
1094
|
ContextConnectionFailureReason2["Misconfigured"] = "misconfigured";
|
|
@@ -1075,6 +1102,7 @@ var ContextConnectionStatus = /* @__PURE__ */ ((ContextConnectionStatus2) => {
|
|
|
1075
1102
|
ContextConnectionStatus2["Syncing"] = "syncing";
|
|
1076
1103
|
ContextConnectionStatus2["Succeeded"] = "succeeded";
|
|
1077
1104
|
ContextConnectionStatus2["Failed"] = "failed";
|
|
1105
|
+
ContextConnectionStatus2["Skipped"] = "skipped";
|
|
1078
1106
|
return ContextConnectionStatus2;
|
|
1079
1107
|
})(ContextConnectionStatus || {});
|
|
1080
1108
|
var SiteQuestionType = /* @__PURE__ */ ((SiteQuestionType2) => {
|
|
@@ -1421,6 +1449,14 @@ var BillingSwitchAction = /* @__PURE__ */ ((BillingSwitchAction2) => {
|
|
|
1421
1449
|
BillingSwitchAction2["SwitchInterval"] = "switch_interval";
|
|
1422
1450
|
return BillingSwitchAction2;
|
|
1423
1451
|
})(BillingSwitchAction || {});
|
|
1452
|
+
var AICreditGrantType = /* @__PURE__ */ ((AICreditGrantType2) => {
|
|
1453
|
+
AICreditGrantType2["Paid"] = "paid";
|
|
1454
|
+
AICreditGrantType2["Bonus"] = "bonus";
|
|
1455
|
+
AICreditGrantType2["Site"] = "site";
|
|
1456
|
+
AICreditGrantType2["Rollover"] = "rollover";
|
|
1457
|
+
AICreditGrantType2["Custom"] = "custom";
|
|
1458
|
+
return AICreditGrantType2;
|
|
1459
|
+
})(AICreditGrantType || {});
|
|
1424
1460
|
var BillingMeter = /* @__PURE__ */ ((BillingMeter2) => {
|
|
1425
1461
|
BillingMeter2["AiResponses"] = "ai_responses";
|
|
1426
1462
|
BillingMeter2["AiAgentResponses"] = "ai_agent_responses";
|
|
@@ -5217,6 +5253,7 @@ var BILLING_CANCELLATION_COMMENT_MIN_LENGTH = 1;
|
|
|
5217
5253
|
var BILLING_COUPON_MAX_LENGTH = 500;
|
|
5218
5254
|
var BILLING_COUPON_MIN_LENGTH = 1;
|
|
5219
5255
|
var BILLING_METER_ENUM = ["ai_responses", "ai_agent_responses", "translation_words"];
|
|
5256
|
+
var AICREDIT_GRANT_TYPE_ENUM = ["paid", "bonus", "site", "rollover", "custom"];
|
|
5220
5257
|
var BILLING_SWITCH_ACTION_ENUM = ["trial", "upgrade", "upgrade_passive", "downgrade", "switch_interval"];
|
|
5221
5258
|
var AIUSAGE_INTERVAL_ENUM = ["day", "week", "month", "year"];
|
|
5222
5259
|
var ORGANIZATION_FEATURE_ENUM = ["max-members", "ai", "ai-lens", "pdf-export", "ai-writing", "reusable-content", "translations", "members-advanced-roles", "members-teams", "members-team-owners", "security-saml", "change-requests-merge-rules"];
|
|
@@ -5291,11 +5328,18 @@ var CONTEXT_CONNECTION_LABEL_MAX_LENGTH = 128;
|
|
|
5291
5328
|
var CONTEXT_CONNECTION_LABEL_MIN_LENGTH = 0;
|
|
5292
5329
|
var CONTEXT_CONNECTION_FILTER_MAX_LENGTH = 1024;
|
|
5293
5330
|
var CONTEXT_CONNECTION_FILTER_MIN_LENGTH = 0;
|
|
5294
|
-
var CONTEXT_CONNECTION_STATUS_ENUM = ["pending", "syncing", "succeeded", "failed"];
|
|
5331
|
+
var CONTEXT_CONNECTION_STATUS_ENUM = ["pending", "syncing", "succeeded", "failed", "skipped"];
|
|
5295
5332
|
var CONTEXT_CONNECTION_FAILURE_REASON_ENUM = ["authentication", "misconfigured", "rate_limited", "upstream_unavailable", "unknown"];
|
|
5333
|
+
var AISKIP_REASON_ENUM = ["ai_unavailable_for_organization", "ai_unavailable_for_site", "ai_disabled", "ai_restricted", "ai_paused"];
|
|
5296
5334
|
var CONTEXT_SEARCH_BOOST_ENUM = ["x0.8", "x1.0", "x1.2"];
|
|
5297
5335
|
var YOUTUBE_CHANNEL_ID_PATTERN = "^UC[A-Za-z0-9_-]{22}$";
|
|
5298
5336
|
var YOUTUBE_CHANNEL_NAME_PATTERN = "^@[A-Za-z0-9._-]{3,100}$";
|
|
5337
|
+
var BASE_URL_MAX_LENGTH = 2048;
|
|
5338
|
+
var BASE_URL_MIN_LENGTH = 1;
|
|
5339
|
+
var API_EMAIL_MAX_LENGTH = 254;
|
|
5340
|
+
var API_EMAIL_MIN_LENGTH = 1;
|
|
5341
|
+
var API_TOKEN_MAX_LENGTH = 1024;
|
|
5342
|
+
var API_TOKEN_MIN_LENGTH = 1;
|
|
5299
5343
|
var SITE_QUESTION_ANSWER_RELEVANCE_ENUM = ["relevant", "spam", "off-topic", "unclear"];
|
|
5300
5344
|
var SITE_CORE_CHANNEL_TYPE_ENUM = ["site", "embed", "api"];
|
|
5301
5345
|
var SITE_CONFIGURABLE_CHANNEL_TYPE_ENUM = ["builtin:slack", "builtin:discord", "builtin:github", "builtin:linear"];
|
|
@@ -5313,7 +5357,7 @@ var SITE_INSIGHTS_LINK_POSITION_ENUM = ["announcement", "header", "footer", "sid
|
|
|
5313
5357
|
var SITE_INSIGHTS_TRADEMARK_PLACEMENT_ENUM = ["sidebar", "ad", "footer", "pdf", "embed"];
|
|
5314
5358
|
var SITE_INSIGHTS_AD_PLACEMENT_ENUM = ["aside"];
|
|
5315
5359
|
var SITE_INSIGHTS_LLMSVARIANT_ENUM = ["standard", "full"];
|
|
5316
|
-
var SITE_INSIGHTS_EVENT_TYPE_ENUM = ["page_view", "page_markdown_request", "search_open", "search_type_query", "search_open_result", "page_post_feedback", "page_post_feedback_comment", "agent_feedback", "ask_question", "ask_view", "ask_rate_response", "link_click", "api_client_open", "api_client_request", "ad_click", "ad_display", "trademark_click", "llms_request", "mcp_request", "rss_request"];
|
|
5360
|
+
var SITE_INSIGHTS_EVENT_TYPE_ENUM = ["page_view", "page_markdown_request", "search_open", "search_type_query", "search_open_result", "page_post_feedback", "page_post_feedback_comment", "agent_feedback", "ask_question", "ask_view", "ask_trigger_click", "ask_rate_response", "link_click", "api_client_open", "api_client_request", "ad_click", "ad_display", "trademark_click", "llms_request", "mcp_request", "rss_request"];
|
|
5317
5361
|
var SITE_INSIGHTS_VISITOR_BROWSER_ENUM = ["chrome", "firefox", "safari", "edge", "ie", "opera", "unknown"];
|
|
5318
5362
|
var SITE_INSIGHTS_VISITOR_DEVICE_ENUM = ["desktop", "tablet", "mobile", "unknown"];
|
|
5319
5363
|
var SITE_INSIGHTS_VISITOR_OS_ENUM = ["windows", "macos", "linux", "android", "ios", "unknown"];
|
|
@@ -5429,6 +5473,8 @@ var GitBookAPI = class extends Api {
|
|
|
5429
5473
|
AGENT_FEEDBACK_SOURCE_ENUM,
|
|
5430
5474
|
AGENT_GOAL_MAX_LENGTH,
|
|
5431
5475
|
AGENT_STATUS_ENUM,
|
|
5476
|
+
AICREDIT_GRANT_TYPE_ENUM,
|
|
5477
|
+
AICreditGrantType,
|
|
5432
5478
|
AIMESSAGE_ROLE_ENUM,
|
|
5433
5479
|
AIMESSAGE_STEP_PHASE_ENUM,
|
|
5434
5480
|
AIMESSAGE_STEP_START_CONDITION_ENUM,
|
|
@@ -5437,16 +5483,24 @@ var GitBookAPI = class extends Api {
|
|
|
5437
5483
|
AIMessageStepPhase,
|
|
5438
5484
|
AIMessageStepStartCondition,
|
|
5439
5485
|
AIModel,
|
|
5486
|
+
AISKIP_REASON_ENUM,
|
|
5487
|
+
AISkipReason,
|
|
5440
5488
|
AIUSAGE_INTERVAL_ENUM,
|
|
5441
5489
|
AIUsageInterval,
|
|
5442
5490
|
APIINTEGRATION_SCOPE_ENUM,
|
|
5443
5491
|
APIIntegrationScope,
|
|
5444
5492
|
APITOKEN_LABEL_MAX_LENGTH,
|
|
5493
|
+
API_EMAIL_MAX_LENGTH,
|
|
5494
|
+
API_EMAIL_MIN_LENGTH,
|
|
5495
|
+
API_TOKEN_MAX_LENGTH,
|
|
5496
|
+
API_TOKEN_MIN_LENGTH,
|
|
5445
5497
|
AgentBackgroundAgentStatus,
|
|
5446
5498
|
AgentEditScope,
|
|
5447
5499
|
AgentFeedbackSource,
|
|
5448
5500
|
AgentStatus,
|
|
5449
5501
|
Api,
|
|
5502
|
+
BASE_URL_MAX_LENGTH,
|
|
5503
|
+
BASE_URL_MIN_LENGTH,
|
|
5450
5504
|
BILLING_CANCELLATION_COMMENT_MAX_LENGTH,
|
|
5451
5505
|
BILLING_CANCELLATION_COMMENT_MIN_LENGTH,
|
|
5452
5506
|
BILLING_COUPON_MAX_LENGTH,
|
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.205.0";
|
|
176
176
|
|
|
177
177
|
// src/client.ts
|
|
178
178
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -508,6 +508,14 @@ var SiteInsightsVisitorBot = /* @__PURE__ */ ((SiteInsightsVisitorBot2) => {
|
|
|
508
508
|
SiteInsightsVisitorBot2["Duckassist"] = "duckassist";
|
|
509
509
|
SiteInsightsVisitorBot2["AmznSearchbot"] = "amzn-searchbot";
|
|
510
510
|
SiteInsightsVisitorBot2["AmznUser"] = "amzn-user";
|
|
511
|
+
SiteInsightsVisitorBot2["OtherBot"] = "other-bot";
|
|
512
|
+
SiteInsightsVisitorBot2["Parallel"] = "parallel";
|
|
513
|
+
SiteInsightsVisitorBot2["Exa"] = "exa";
|
|
514
|
+
SiteInsightsVisitorBot2["Linkup"] = "linkup";
|
|
515
|
+
SiteInsightsVisitorBot2["VertexAi"] = "vertex-ai";
|
|
516
|
+
SiteInsightsVisitorBot2["Atlassian"] = "atlassian";
|
|
517
|
+
SiteInsightsVisitorBot2["Kapa"] = "kapa";
|
|
518
|
+
SiteInsightsVisitorBot2["Bedrock"] = "bedrock";
|
|
511
519
|
return SiteInsightsVisitorBot2;
|
|
512
520
|
})(SiteInsightsVisitorBot || {});
|
|
513
521
|
var SiteInsightsVisitorOS = /* @__PURE__ */ ((SiteInsightsVisitorOS2) => {
|
|
@@ -547,6 +555,7 @@ var SiteInsightsEventType = /* @__PURE__ */ ((SiteInsightsEventType2) => {
|
|
|
547
555
|
SiteInsightsEventType2["AgentFeedback"] = "agent_feedback";
|
|
548
556
|
SiteInsightsEventType2["AskQuestion"] = "ask_question";
|
|
549
557
|
SiteInsightsEventType2["AskView"] = "ask_view";
|
|
558
|
+
SiteInsightsEventType2["AskTriggerClick"] = "ask_trigger_click";
|
|
550
559
|
SiteInsightsEventType2["AskRateResponse"] = "ask_rate_response";
|
|
551
560
|
SiteInsightsEventType2["LinkClick"] = "link_click";
|
|
552
561
|
SiteInsightsEventType2["ApiClientOpen"] = "api_client_open";
|
|
@@ -666,6 +675,14 @@ var ContextSearchBoost = /* @__PURE__ */ ((ContextSearchBoost2) => {
|
|
|
666
675
|
ContextSearchBoost2["X12"] = "x1.2";
|
|
667
676
|
return ContextSearchBoost2;
|
|
668
677
|
})(ContextSearchBoost || {});
|
|
678
|
+
var AISkipReason = /* @__PURE__ */ ((AISkipReason2) => {
|
|
679
|
+
AISkipReason2["AiUnavailableForOrganization"] = "ai_unavailable_for_organization";
|
|
680
|
+
AISkipReason2["AiUnavailableForSite"] = "ai_unavailable_for_site";
|
|
681
|
+
AISkipReason2["AiDisabled"] = "ai_disabled";
|
|
682
|
+
AISkipReason2["AiRestricted"] = "ai_restricted";
|
|
683
|
+
AISkipReason2["AiPaused"] = "ai_paused";
|
|
684
|
+
return AISkipReason2;
|
|
685
|
+
})(AISkipReason || {});
|
|
669
686
|
var ContextConnectionFailureReason = /* @__PURE__ */ ((ContextConnectionFailureReason2) => {
|
|
670
687
|
ContextConnectionFailureReason2["Authentication"] = "authentication";
|
|
671
688
|
ContextConnectionFailureReason2["Misconfigured"] = "misconfigured";
|
|
@@ -679,6 +696,7 @@ var ContextConnectionStatus = /* @__PURE__ */ ((ContextConnectionStatus2) => {
|
|
|
679
696
|
ContextConnectionStatus2["Syncing"] = "syncing";
|
|
680
697
|
ContextConnectionStatus2["Succeeded"] = "succeeded";
|
|
681
698
|
ContextConnectionStatus2["Failed"] = "failed";
|
|
699
|
+
ContextConnectionStatus2["Skipped"] = "skipped";
|
|
682
700
|
return ContextConnectionStatus2;
|
|
683
701
|
})(ContextConnectionStatus || {});
|
|
684
702
|
var SiteQuestionType = /* @__PURE__ */ ((SiteQuestionType2) => {
|
|
@@ -1025,6 +1043,14 @@ var BillingSwitchAction = /* @__PURE__ */ ((BillingSwitchAction2) => {
|
|
|
1025
1043
|
BillingSwitchAction2["SwitchInterval"] = "switch_interval";
|
|
1026
1044
|
return BillingSwitchAction2;
|
|
1027
1045
|
})(BillingSwitchAction || {});
|
|
1046
|
+
var AICreditGrantType = /* @__PURE__ */ ((AICreditGrantType2) => {
|
|
1047
|
+
AICreditGrantType2["Paid"] = "paid";
|
|
1048
|
+
AICreditGrantType2["Bonus"] = "bonus";
|
|
1049
|
+
AICreditGrantType2["Site"] = "site";
|
|
1050
|
+
AICreditGrantType2["Rollover"] = "rollover";
|
|
1051
|
+
AICreditGrantType2["Custom"] = "custom";
|
|
1052
|
+
return AICreditGrantType2;
|
|
1053
|
+
})(AICreditGrantType || {});
|
|
1028
1054
|
var BillingMeter = /* @__PURE__ */ ((BillingMeter2) => {
|
|
1029
1055
|
BillingMeter2["AiResponses"] = "ai_responses";
|
|
1030
1056
|
BillingMeter2["AiAgentResponses"] = "ai_agent_responses";
|
|
@@ -4821,6 +4847,7 @@ var BILLING_CANCELLATION_COMMENT_MIN_LENGTH = 1;
|
|
|
4821
4847
|
var BILLING_COUPON_MAX_LENGTH = 500;
|
|
4822
4848
|
var BILLING_COUPON_MIN_LENGTH = 1;
|
|
4823
4849
|
var BILLING_METER_ENUM = ["ai_responses", "ai_agent_responses", "translation_words"];
|
|
4850
|
+
var AICREDIT_GRANT_TYPE_ENUM = ["paid", "bonus", "site", "rollover", "custom"];
|
|
4824
4851
|
var BILLING_SWITCH_ACTION_ENUM = ["trial", "upgrade", "upgrade_passive", "downgrade", "switch_interval"];
|
|
4825
4852
|
var AIUSAGE_INTERVAL_ENUM = ["day", "week", "month", "year"];
|
|
4826
4853
|
var ORGANIZATION_FEATURE_ENUM = ["max-members", "ai", "ai-lens", "pdf-export", "ai-writing", "reusable-content", "translations", "members-advanced-roles", "members-teams", "members-team-owners", "security-saml", "change-requests-merge-rules"];
|
|
@@ -4895,11 +4922,18 @@ var CONTEXT_CONNECTION_LABEL_MAX_LENGTH = 128;
|
|
|
4895
4922
|
var CONTEXT_CONNECTION_LABEL_MIN_LENGTH = 0;
|
|
4896
4923
|
var CONTEXT_CONNECTION_FILTER_MAX_LENGTH = 1024;
|
|
4897
4924
|
var CONTEXT_CONNECTION_FILTER_MIN_LENGTH = 0;
|
|
4898
|
-
var CONTEXT_CONNECTION_STATUS_ENUM = ["pending", "syncing", "succeeded", "failed"];
|
|
4925
|
+
var CONTEXT_CONNECTION_STATUS_ENUM = ["pending", "syncing", "succeeded", "failed", "skipped"];
|
|
4899
4926
|
var CONTEXT_CONNECTION_FAILURE_REASON_ENUM = ["authentication", "misconfigured", "rate_limited", "upstream_unavailable", "unknown"];
|
|
4927
|
+
var AISKIP_REASON_ENUM = ["ai_unavailable_for_organization", "ai_unavailable_for_site", "ai_disabled", "ai_restricted", "ai_paused"];
|
|
4900
4928
|
var CONTEXT_SEARCH_BOOST_ENUM = ["x0.8", "x1.0", "x1.2"];
|
|
4901
4929
|
var YOUTUBE_CHANNEL_ID_PATTERN = "^UC[A-Za-z0-9_-]{22}$";
|
|
4902
4930
|
var YOUTUBE_CHANNEL_NAME_PATTERN = "^@[A-Za-z0-9._-]{3,100}$";
|
|
4931
|
+
var BASE_URL_MAX_LENGTH = 2048;
|
|
4932
|
+
var BASE_URL_MIN_LENGTH = 1;
|
|
4933
|
+
var API_EMAIL_MAX_LENGTH = 254;
|
|
4934
|
+
var API_EMAIL_MIN_LENGTH = 1;
|
|
4935
|
+
var API_TOKEN_MAX_LENGTH = 1024;
|
|
4936
|
+
var API_TOKEN_MIN_LENGTH = 1;
|
|
4903
4937
|
var SITE_QUESTION_ANSWER_RELEVANCE_ENUM = ["relevant", "spam", "off-topic", "unclear"];
|
|
4904
4938
|
var SITE_CORE_CHANNEL_TYPE_ENUM = ["site", "embed", "api"];
|
|
4905
4939
|
var SITE_CONFIGURABLE_CHANNEL_TYPE_ENUM = ["builtin:slack", "builtin:discord", "builtin:github", "builtin:linear"];
|
|
@@ -4917,7 +4951,7 @@ var SITE_INSIGHTS_LINK_POSITION_ENUM = ["announcement", "header", "footer", "sid
|
|
|
4917
4951
|
var SITE_INSIGHTS_TRADEMARK_PLACEMENT_ENUM = ["sidebar", "ad", "footer", "pdf", "embed"];
|
|
4918
4952
|
var SITE_INSIGHTS_AD_PLACEMENT_ENUM = ["aside"];
|
|
4919
4953
|
var SITE_INSIGHTS_LLMSVARIANT_ENUM = ["standard", "full"];
|
|
4920
|
-
var SITE_INSIGHTS_EVENT_TYPE_ENUM = ["page_view", "page_markdown_request", "search_open", "search_type_query", "search_open_result", "page_post_feedback", "page_post_feedback_comment", "agent_feedback", "ask_question", "ask_view", "ask_rate_response", "link_click", "api_client_open", "api_client_request", "ad_click", "ad_display", "trademark_click", "llms_request", "mcp_request", "rss_request"];
|
|
4954
|
+
var SITE_INSIGHTS_EVENT_TYPE_ENUM = ["page_view", "page_markdown_request", "search_open", "search_type_query", "search_open_result", "page_post_feedback", "page_post_feedback_comment", "agent_feedback", "ask_question", "ask_view", "ask_trigger_click", "ask_rate_response", "link_click", "api_client_open", "api_client_request", "ad_click", "ad_display", "trademark_click", "llms_request", "mcp_request", "rss_request"];
|
|
4921
4955
|
var SITE_INSIGHTS_VISITOR_BROWSER_ENUM = ["chrome", "firefox", "safari", "edge", "ie", "opera", "unknown"];
|
|
4922
4956
|
var SITE_INSIGHTS_VISITOR_DEVICE_ENUM = ["desktop", "tablet", "mobile", "unknown"];
|
|
4923
4957
|
var SITE_INSIGHTS_VISITOR_OS_ENUM = ["windows", "macos", "linux", "android", "ios", "unknown"];
|
|
@@ -5032,6 +5066,8 @@ export {
|
|
|
5032
5066
|
AGENT_FEEDBACK_SOURCE_ENUM,
|
|
5033
5067
|
AGENT_GOAL_MAX_LENGTH,
|
|
5034
5068
|
AGENT_STATUS_ENUM,
|
|
5069
|
+
AICREDIT_GRANT_TYPE_ENUM,
|
|
5070
|
+
AICreditGrantType,
|
|
5035
5071
|
AIMESSAGE_ROLE_ENUM,
|
|
5036
5072
|
AIMESSAGE_STEP_PHASE_ENUM,
|
|
5037
5073
|
AIMESSAGE_STEP_START_CONDITION_ENUM,
|
|
@@ -5040,16 +5076,24 @@ export {
|
|
|
5040
5076
|
AIMessageStepPhase,
|
|
5041
5077
|
AIMessageStepStartCondition,
|
|
5042
5078
|
AIModel,
|
|
5079
|
+
AISKIP_REASON_ENUM,
|
|
5080
|
+
AISkipReason,
|
|
5043
5081
|
AIUSAGE_INTERVAL_ENUM,
|
|
5044
5082
|
AIUsageInterval,
|
|
5045
5083
|
APIINTEGRATION_SCOPE_ENUM,
|
|
5046
5084
|
APIIntegrationScope,
|
|
5047
5085
|
APITOKEN_LABEL_MAX_LENGTH,
|
|
5086
|
+
API_EMAIL_MAX_LENGTH,
|
|
5087
|
+
API_EMAIL_MIN_LENGTH,
|
|
5088
|
+
API_TOKEN_MAX_LENGTH,
|
|
5089
|
+
API_TOKEN_MIN_LENGTH,
|
|
5048
5090
|
AgentBackgroundAgentStatus,
|
|
5049
5091
|
AgentEditScope,
|
|
5050
5092
|
AgentFeedbackSource,
|
|
5051
5093
|
AgentStatus,
|
|
5052
5094
|
Api,
|
|
5095
|
+
BASE_URL_MAX_LENGTH,
|
|
5096
|
+
BASE_URL_MIN_LENGTH,
|
|
5053
5097
|
BILLING_CANCELLATION_COMMENT_MAX_LENGTH,
|
|
5054
5098
|
BILLING_CANCELLATION_COMMENT_MIN_LENGTH,
|
|
5055
5099
|
BILLING_COUPON_MAX_LENGTH,
|