@gitbook/api 0.165.0 → 0.167.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 +2678 -2172
- package/dist/constants.d.ts +10 -3
- package/dist/index.cjs +1056 -882
- package/dist/index.js +1040 -879
- package/package.json +2 -2
- package/spec/openapi.json +2934 -1555
- package/spec/openapi.yaml +1611 -805
package/dist/constants.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export declare const APITOKEN_LABEL_MAX_LENGTH = 50;
|
|
2
2
|
export declare const URL_MAX_LENGTH = 2048;
|
|
3
|
+
export declare const ENTITY_ID_PATTERN = "^[a-zA-Z0-9_-]+$";
|
|
3
4
|
export declare const SPACE_TITLE_MAX_LENGTH = 50;
|
|
4
5
|
export declare const EMOJI_MAX_LENGTH = 50;
|
|
5
6
|
export declare const CONTENT_VISIBILITY_ENUM: ["public", "unlisted", "share-link", "visitor-auth", "in-collection", "private"];
|
|
@@ -138,13 +139,20 @@ export declare const CONTEXT_RECORD_TYPE_ENUM: ["ticket", "document"];
|
|
|
138
139
|
export declare const CONTEXT_RECORD_TITLE_MAX_LENGTH = 256;
|
|
139
140
|
export declare const CONTEXT_RECORD_TITLE_MIN_LENGTH = 1;
|
|
140
141
|
export declare const CONTEXT_RECORD_DESCRIPTION_MAX_LENGTH = 512;
|
|
142
|
+
export declare const SITE_ISSUE_STATUS_ENUM: ["open", "done", "canceled"];
|
|
143
|
+
export declare const SITE_ISSUE_TYPE_ENUM: ["content-outdated", "incoherence", "content-gap", "other"];
|
|
144
|
+
export declare const SITE_ISSUE_PRIORITY_ENUM: ["low", "medium", "high"];
|
|
145
|
+
export declare const SITE_ISSUE_TITLE_MAX_LENGTH = 256;
|
|
146
|
+
export declare const SITE_QUESTION_TYPE_ENUM: ["exploring", "how-to", "troubleshooting", "reference", "unknown"];
|
|
141
147
|
export declare const CONTEXT_CONNECTION_LABEL_MAX_LENGTH = 128;
|
|
142
148
|
export declare const CONTEXT_CONNECTION_LABEL_MIN_LENGTH = 0;
|
|
143
149
|
export declare const CONTEXT_CONNECTION_STATUS_ENUM: ["pending", "syncing", "succeeded", "failed"];
|
|
144
|
-
export declare const
|
|
150
|
+
export declare const CONTEXT_SEARCH_BOOST_ENUM: ["x0.8", "x1.0", "x1.2"];
|
|
145
151
|
export declare const SITE_QUESTION_ANSWER_RESOLUTION_ENUM: ["no", "partially", "yes"];
|
|
146
|
-
export declare const SITE_QUESTION_ANSWER_CONFIDENCE_ENUM: ["low", "medium", "high"];
|
|
147
152
|
export declare const SITE_QUESTION_ANSWER_RELEVANCE_ENUM: ["relevant", "spam", "off-topic", "unclear"];
|
|
153
|
+
export declare const SITE_QUESTION_ANSWER_HELPFULNESS_ENUM: ["low", "medium", "high"];
|
|
154
|
+
export declare const SITE_CORE_CHANNEL_TYPE_ENUM: ["site", "embed", "api"];
|
|
155
|
+
export declare const SITE_CONFIGURABLE_CHANNEL_TYPE_ENUM: ["builtin:slack", "builtin:discord"];
|
|
148
156
|
export declare const AIMESSAGE_ROLE_ENUM: ["user", "assistant", "developer"];
|
|
149
157
|
export declare const AIMODEL_ENUM: ["fast", "reasoning-low", "reasoning-medium", "reasoning-high"];
|
|
150
158
|
export declare const SITE_INSIGHTS_DISPLAY_CONTEXT_ENUM: ["site", "embed", "mcp"];
|
|
@@ -155,7 +163,6 @@ export declare const SITE_INSIGHTS_EVENT_TYPE_ENUM: ["page_view", "search_open",
|
|
|
155
163
|
export declare const SITE_INSIGHTS_VISITOR_BROWSER_ENUM: ["chrome", "firefox", "safari", "edge", "ie", "opera", "unknown"];
|
|
156
164
|
export declare const SITE_INSIGHTS_VISITOR_DEVICE_ENUM: ["desktop", "tablet", "mobile", "unknown"];
|
|
157
165
|
export declare const SITE_INSIGHTS_VISITOR_OS_ENUM: ["windows", "macos", "linux", "android", "ios", "unknown"];
|
|
158
|
-
export declare const SITE_INSIGHTS_VISITOR_BOT_ENUM: ["unknown", "googlebot", "bingbot", "duckduckbot", "facebookbot", "applebot", "chatgpt", "anthropic", "gemini", "perplexity", "cohere", "mistral", "deepseek", "meta", "bytespider", "ccbot", "amazonbot", "youbot"];
|
|
159
166
|
export declare const SITE_INSIGHTS_QUERY_OPERATOR_ENUM: ["in", "notIn", "greaterThan", "greaterThanOrEqual", "lessThan", "lessThanOrEqual"];
|
|
160
167
|
export declare const SITE_INSIGHTS_QUERY_RANGE_PRESET_ENUM: ["lastYear", "last3Months", "last30Days", "last7Days", "last24Hours"];
|
|
161
168
|
export declare const SITE_REDIRECT_SOURCE_PATH_MAX_LENGTH = 512;
|