@gitbook/api 0.164.0 → 0.166.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 +2325 -2288
- package/dist/constants.d.ts +9 -6
- package/dist/index.cjs +1005 -970
- package/dist/index.js +992 -963
- package/package.json +2 -2
- package/spec/openapi.json +2137 -2000
- package/spec/openapi.yaml +1320 -1280
package/dist/constants.d.ts
CHANGED
|
@@ -58,7 +58,7 @@ export declare const INTEGRATION_DESCRIPTION_MAX_LENGTH = 100;
|
|
|
58
58
|
export declare const INTEGRATION_SUMMARY_MAX_LENGTH = 2048;
|
|
59
59
|
export declare const INTEGRATION_TARGET_ENUM: ["all", "site", "space", "organization"];
|
|
60
60
|
export declare const INTEGRATION_VISIBILITY_ENUM: ["public", "private", "unlisted"];
|
|
61
|
-
export declare const INTEGRATION_SCOPE_ENUM: ["space:content:read", "space:content:write", "space:metadata:read", "space:metadata:write", "space:git:sync", "page:feedback:read", "site:metadata:read", "site:views:read", "site:script:inject", "site:script:cookies", "site:visitor:auth", "site:adaptive:read", "site:adaptive:write", "
|
|
61
|
+
export declare const INTEGRATION_SCOPE_ENUM: ["space:content:read", "space:content:write", "space:metadata:read", "space:metadata:write", "space:git:sync", "page:feedback:read", "site:metadata:read", "site:views:read", "site:script:inject", "site:script:cookies", "site:visitor:auth", "site:adaptive:read", "site:adaptive:write", "conversations:ingest", "openapi:read", "openapi:write"];
|
|
62
62
|
export declare const INTEGRATION_CATEGORY_ENUM: ["analytics", "collaboration", "content", "gitsync", "marketing", "visitor-auth", "other"];
|
|
63
63
|
export declare const INTEGRATION_PROPERTY_TITLE_MAX_LENGTH = 50;
|
|
64
64
|
export declare const INTEGRATION_PROPERTY_TITLE_MIN_LENGTH = 2;
|
|
@@ -77,7 +77,6 @@ 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_AGENTS_CONTEXT_ENUM: ["excluded", "included"];
|
|
81
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-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"];
|
|
82
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"];
|
|
83
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"];
|
|
@@ -101,7 +100,6 @@ export declare const SAMLPROVIDER_LABEL_MIN_LENGTH = 1;
|
|
|
101
100
|
export declare const SAMLPROVIDER_ENTITY_ID_MAX_LENGTH = 1024;
|
|
102
101
|
export declare const SAMLPROVIDER_CERTIFICATE_MAX_LENGTH = 10000;
|
|
103
102
|
export declare const SAMLPROVIDER_STATUS_ENUM: ["active", "pending"];
|
|
104
|
-
export declare const CONVERSATION_ISSUE_IMPACT_ENUM: ["low", "medium", "high"];
|
|
105
103
|
export declare const TRANSLATION_STATUS_ENUM: ["pending", "running", "completed"];
|
|
106
104
|
export declare const STORAGE_UPLOAD_KIND_ENUM: ["customization_font", "import_file"];
|
|
107
105
|
export declare const FONT_FAMILY_MAX_LENGTH = 50;
|
|
@@ -140,16 +138,22 @@ export declare const CONTEXT_RECORD_TYPE_ENUM: ["ticket", "document"];
|
|
|
140
138
|
export declare const CONTEXT_RECORD_TITLE_MAX_LENGTH = 256;
|
|
141
139
|
export declare const CONTEXT_RECORD_TITLE_MIN_LENGTH = 1;
|
|
142
140
|
export declare const CONTEXT_RECORD_DESCRIPTION_MAX_LENGTH = 512;
|
|
141
|
+
export declare const SITE_ISSUE_STATUS_ENUM: ["open", "done", "canceled"];
|
|
142
|
+
export declare const SITE_ISSUE_TYPE_ENUM: ["content-outdated", "incoherence", "content-gap", "other"];
|
|
143
|
+
export declare const SITE_ISSUE_PRIORITY_ENUM: ["low", "medium", "high"];
|
|
144
|
+
export declare const SITE_ISSUE_TITLE_MAX_LENGTH = 256;
|
|
143
145
|
export declare const CONTEXT_CONNECTION_LABEL_MAX_LENGTH = 128;
|
|
144
146
|
export declare const CONTEXT_CONNECTION_LABEL_MIN_LENGTH = 0;
|
|
145
147
|
export declare const CONTEXT_CONNECTION_STATUS_ENUM: ["pending", "syncing", "succeeded", "failed"];
|
|
146
148
|
export declare const SITE_QUESTION_TYPE_ENUM: ["exploring", "how-to", "troubleshooting", "reference", "unknown"];
|
|
147
149
|
export declare const SITE_QUESTION_ANSWER_RESOLUTION_ENUM: ["no", "partially", "yes"];
|
|
148
|
-
export declare const SITE_QUESTION_ANSWER_CONFIDENCE_ENUM: ["low", "medium", "high"];
|
|
149
150
|
export declare const SITE_QUESTION_ANSWER_RELEVANCE_ENUM: ["relevant", "spam", "off-topic", "unclear"];
|
|
151
|
+
export declare const SITE_QUESTION_ANSWER_HELPFULNESS_ENUM: ["low", "medium", "high"];
|
|
152
|
+
export declare const SITE_CORE_CHANNEL_TYPE_ENUM: ["site", "embed", "api"];
|
|
153
|
+
export declare const SITE_CONFIGURABLE_CHANNEL_TYPE_ENUM: ["builtin:slack", "builtin:discord"];
|
|
150
154
|
export declare const AIMESSAGE_ROLE_ENUM: ["user", "assistant", "developer"];
|
|
151
155
|
export declare const AIMODEL_ENUM: ["fast", "reasoning-low", "reasoning-medium", "reasoning-high"];
|
|
152
|
-
export declare const SITE_INSIGHTS_DISPLAY_CONTEXT_ENUM: ["site", "embed"];
|
|
156
|
+
export declare const SITE_INSIGHTS_DISPLAY_CONTEXT_ENUM: ["site", "embed", "mcp"];
|
|
153
157
|
export declare const SITE_INSIGHTS_LINK_POSITION_ENUM: ["announcement", "header", "footer", "sidebar", "content"];
|
|
154
158
|
export declare const SITE_INSIGHTS_TRADEMARK_PLACEMENT_ENUM: ["sidebar", "ad", "footer", "pdf", "embed"];
|
|
155
159
|
export declare const SITE_INSIGHTS_AD_PLACEMENT_ENUM: ["aside"];
|
|
@@ -157,7 +161,6 @@ export declare const SITE_INSIGHTS_EVENT_TYPE_ENUM: ["page_view", "search_open",
|
|
|
157
161
|
export declare const SITE_INSIGHTS_VISITOR_BROWSER_ENUM: ["chrome", "firefox", "safari", "edge", "ie", "opera", "unknown"];
|
|
158
162
|
export declare const SITE_INSIGHTS_VISITOR_DEVICE_ENUM: ["desktop", "tablet", "mobile", "unknown"];
|
|
159
163
|
export declare const SITE_INSIGHTS_VISITOR_OS_ENUM: ["windows", "macos", "linux", "android", "ios", "unknown"];
|
|
160
|
-
export declare const SITE_INSIGHTS_VISITOR_BOT_ENUM: ["unknown", "googlebot", "bingbot", "duckduckbot", "facebookbot", "applebot", "chatgpt", "anthropic"];
|
|
161
164
|
export declare const SITE_INSIGHTS_QUERY_OPERATOR_ENUM: ["in", "notIn", "greaterThan", "greaterThanOrEqual", "lessThan", "lessThanOrEqual"];
|
|
162
165
|
export declare const SITE_INSIGHTS_QUERY_RANGE_PRESET_ENUM: ["lastYear", "last3Months", "last30Days", "last7Days", "last24Hours"];
|
|
163
166
|
export declare const SITE_REDIRECT_SOURCE_PATH_MAX_LENGTH = 512;
|