@gitbook/api 0.209.1 → 0.211.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 +4652 -4261
- package/dist/constants.d.ts +49 -44
- package/dist/index.cjs +396 -308
- package/dist/index.js +386 -308
- package/package.json +1 -1
- package/spec/openapi.json +11844 -10762
- package/spec/openapi.yaml +3780 -3052
package/dist/constants.d.ts
CHANGED
|
@@ -31,6 +31,50 @@ export declare const CHANGE_REQUEST_STATUS_ENUM: ["draft", "open", "archived", "
|
|
|
31
31
|
export declare const CHANGE_REQUEST_SUBJECT_MAX_LENGTH = 100;
|
|
32
32
|
export declare const CHANGE_REQUEST_SUBJECT_MIN_LENGTH = 0;
|
|
33
33
|
export declare const CHANGE_REQUEST_LINK_TITLE_MAX_LENGTH = 128;
|
|
34
|
+
export declare const SITE_CHANGE_REQUEST_MEMBER_STATUS_ENUM: ["active", "removed"];
|
|
35
|
+
export declare const SITE_SECTION_TITLE_MAX_LENGTH = 128;
|
|
36
|
+
export declare const SITE_SECTION_TITLE_MIN_LENGTH = 2;
|
|
37
|
+
export declare const SITE_SECTION_DESCRIPTION_MAX_LENGTH = 256;
|
|
38
|
+
export declare const SITE_SECTION_DESCRIPTION_MIN_LENGTH = 0;
|
|
39
|
+
export declare const SITE_SECTION_PATH_MAX_LENGTH = 100;
|
|
40
|
+
export declare const SITE_SECTION_PATH_MIN_LENGTH = 1;
|
|
41
|
+
export declare const SITE_SPACE_PATH_MAX_LENGTH = 100;
|
|
42
|
+
export declare const SITE_SPACE_PATH_MIN_LENGTH = 1;
|
|
43
|
+
export declare const SITE_SECTION_GROUP_TITLE_MAX_LENGTH = 100;
|
|
44
|
+
export declare const SITE_SECTION_GROUP_TITLE_MIN_LENGTH = 1;
|
|
45
|
+
export declare const SITE_TITLE_MAX_LENGTH = 128;
|
|
46
|
+
export declare const SITE_TITLE_MIN_LENGTH = 2;
|
|
47
|
+
export declare const CUSTOMIZATION_THEME_ENUM: ["clean", "muted", "bold", "gradient"];
|
|
48
|
+
export declare const COLOR_PATTERN = "^#(?:[0-9a-fA-F]{3}){1,2}$";
|
|
49
|
+
export declare const CUSTOMIZATION_CORNERS_ENUM: ["straight", "rounded", "circular"];
|
|
50
|
+
export declare const CUSTOMIZATION_DEPTH_ENUM: ["subtle", "flat"];
|
|
51
|
+
export declare const CUSTOMIZATION_LINKS_STYLE_ENUM: ["default", "accent"];
|
|
52
|
+
export declare const CUSTOMIZATION_DEFAULT_FONT_ENUM: ["ABCFavorit", "Inter", "Roboto", "RobotoSlab", "OpenSans", "SourceSansPro", "Lato", "Ubuntu", "Raleway", "Merriweather", "Overpass", "NotoSans", "IBMPlexSerif", "Poppins", "FiraSans"];
|
|
53
|
+
export declare const FONT_FAMILY_MAX_LENGTH = 50;
|
|
54
|
+
export declare const FONT_FAMILY_MIN_LENGTH = 1;
|
|
55
|
+
export declare const CUSTOMIZATION_DEFAULT_MONOSPACE_FONT_ENUM: ["FiraCode", "IBMPlexMono", "JetBrainsMono", "SourceCodePro", "RobotoMono", "SpaceMono", "DMMono", "Inconsolata"];
|
|
56
|
+
export declare const CUSTOMIZATION_BACKGROUND_ENUM: ["plain", "match"];
|
|
57
|
+
export declare const CUSTOMIZATION_ICONS_STYLE_ENUM: ["regular", "solid", "duotone", "light", "thin"];
|
|
58
|
+
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"];
|
|
59
|
+
export declare const CUSTOMIZATION_SIDEBAR_BACKGROUND_STYLE_ENUM: ["default", "filled"];
|
|
60
|
+
export declare const CUSTOMIZATION_SIDEBAR_LIST_STYLE_ENUM: ["default", "pill", "line"];
|
|
61
|
+
export declare const CUSTOMIZATION_SEARCH_STYLE_ENUM: ["prominent", "subtle"];
|
|
62
|
+
export declare const CUSTOMIZATION_LOCALE_ENUM: ["en", "fr", "es", "zh", "ja", "de", "nl", "no", "pt-br", "ru"];
|
|
63
|
+
export declare const CUSTOMIZATION_HEADER_PRESET_ENUM: ["default", "bold", "contrast", "custom", "none"];
|
|
64
|
+
export declare const CUSTOMIZATION_CONTENT_LINK_TITLE_MAX_LENGTH = 64;
|
|
65
|
+
export declare const CUSTOMIZATION_ANNOUNCEMENT_MESSAGE_MAX_LENGTH = 128;
|
|
66
|
+
export declare const CUSTOMIZATION_ANNOUNCEMENT_MESSAGE_MIN_LENGTH = 2;
|
|
67
|
+
export declare const CUSTOMIZATION_DEFAULT_THEME_MODE_ENUM: ["light", "dark", "system"];
|
|
68
|
+
export declare const CUSTOMIZATION_AIMODE_ENUM: ["none", "search", "assistant"];
|
|
69
|
+
export declare const CUSTOMIZATION_AIGREETING_MAX_LENGTH = 256;
|
|
70
|
+
export declare const CUSTOMIZATION_SUGGESTED_QUESTION_MAX_LENGTH = 64;
|
|
71
|
+
export declare const CUSTOMIZATION_SUGGESTED_QUESTION_MIN_LENGTH = 3;
|
|
72
|
+
export declare const CUSTOMIZATION_AIINSTRUCTIONS_MAX_LENGTH = 10000;
|
|
73
|
+
export declare const CUSTOMIZATION_PAGE_ACTION_TYPE_ENUM: ["assistant", "external-ai", "markdown", "mcp", "git", "pdf"];
|
|
74
|
+
export declare const SITE_EXTERNAL_LINKS_TARGET_ENUM: ["self", "blank"];
|
|
75
|
+
export declare const SITE_SOCIAL_ACCOUNT_PLATFORM_ENUM: ["twitter", "instagram", "facebook", "linkedin", "github", "discord", "slack", "youtube", "tiktok", "reddit", "bluesky", "mastodon", "threads", "medium"];
|
|
76
|
+
export declare const SITE_SOCIAL_ACCOUNT_HANDLE_MAX_LENGTH = 128;
|
|
77
|
+
export declare const SITE_SOCIAL_ACCOUNT_HANDLE_MIN_LENGTH = 1;
|
|
34
78
|
export declare const CHANGE_REQUEST_ORDER_BY_ENUM: ["updatedAt", "createdAt"];
|
|
35
79
|
export declare const CHANGE_REQUEST_REVIEW_STATUS_ENUM: ["changes-requested", "approved"];
|
|
36
80
|
export declare const VARIABLE_NAME_MAX_LENGTH = 64;
|
|
@@ -72,8 +116,6 @@ export declare const INTEGRATION_INSTALLATION_STATUS_ENUM: ["active", "pending",
|
|
|
72
116
|
export declare const INTEGRATION_INSTALLATION_SPACE_SELECTION_ENUM: ["all", "selected"];
|
|
73
117
|
export declare const INTEGRATION_INSTALLATION_SITE_SELECTION_ENUM: ["all", "selected"];
|
|
74
118
|
export declare const SITE_TYPE_ENUM: ["basic", "premium", "ultimate", "sponsored"];
|
|
75
|
-
export declare const SITE_TITLE_MAX_LENGTH = 128;
|
|
76
|
-
export declare const SITE_TITLE_MIN_LENGTH = 2;
|
|
77
119
|
export declare const SITE_HOSTNAME_MAX_LENGTH = 512;
|
|
78
120
|
export declare const SITE_HOSTNAME_PATTERN = "^([a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?[.]){2,}[a-z0-9][a-z0-9-]{0,61}[a-z0-9]$";
|
|
79
121
|
export declare const SITE_BASENAME_MAX_LENGTH = 100;
|
|
@@ -91,16 +133,6 @@ export declare const NEW_ORGANIZATION_TITLE_PATTERN = "\\S.*\\S";
|
|
|
91
133
|
export declare const SITE_ONBOARDING_SOURCE_ENUM: ["markdown-in-git", "import", "template"];
|
|
92
134
|
export declare const SITE_ONBOARDING_AUDIENCE_ENUM: ["public", "mixed", "protected", "internal"];
|
|
93
135
|
export declare const SITE_ONBOARDING_INTEREST_ENUM: ["adaptive-content", "api-docs", "proactive-agent"];
|
|
94
|
-
export declare const SITE_SECTION_TITLE_MAX_LENGTH = 128;
|
|
95
|
-
export declare const SITE_SECTION_TITLE_MIN_LENGTH = 2;
|
|
96
|
-
export declare const SITE_SECTION_DESCRIPTION_MAX_LENGTH = 256;
|
|
97
|
-
export declare const SITE_SECTION_DESCRIPTION_MIN_LENGTH = 0;
|
|
98
|
-
export declare const SITE_SECTION_PATH_MAX_LENGTH = 100;
|
|
99
|
-
export declare const SITE_SECTION_PATH_MIN_LENGTH = 1;
|
|
100
|
-
export declare const SITE_SPACE_PATH_MAX_LENGTH = 100;
|
|
101
|
-
export declare const SITE_SPACE_PATH_MIN_LENGTH = 1;
|
|
102
|
-
export declare const SITE_SECTION_GROUP_TITLE_MAX_LENGTH = 100;
|
|
103
|
-
export declare const SITE_SECTION_GROUP_TITLE_MIN_LENGTH = 1;
|
|
104
136
|
export declare const TEAM_MEMBER_ROLE_ENUM: ["owner", "member"];
|
|
105
137
|
export declare const BILLING_CANCELLATION_COMMENT_MAX_LENGTH = 500;
|
|
106
138
|
export declare const BILLING_CANCELLATION_COMMENT_MIN_LENGTH = 1;
|
|
@@ -116,6 +148,7 @@ export declare const SAMLPROVIDER_LABEL_MIN_LENGTH = 1;
|
|
|
116
148
|
export declare const SAMLPROVIDER_ENTITY_ID_MAX_LENGTH = 1024;
|
|
117
149
|
export declare const SAMLPROVIDER_CERTIFICATE_MAX_LENGTH = 10000;
|
|
118
150
|
export declare const SAMLPROVIDER_STATUS_ENUM: ["active", "pending"];
|
|
151
|
+
export declare const SAMLPROVIDER_DOMAIN_STATUS_ENUM: ["verified", "pending", "error", "legacy", "removed"];
|
|
119
152
|
export declare const ORGANIZATION_DOMAIN_STATUS_ENUM: ["legacy", "pending", "verified", "error"];
|
|
120
153
|
export declare const SCIMCONNECTION_LABEL_MAX_LENGTH = 100;
|
|
121
154
|
export declare const SCIMCONNECTION_LABEL_MIN_LENGTH = 1;
|
|
@@ -127,43 +160,11 @@ export declare const OPEN_APISPEC_PROCESSING_STATE_ENUM: ["pending", "progress",
|
|
|
127
160
|
export declare const OPEN_APISPEC_PROCESSING_ERROR_CODE_ENUM: ["FETCH_TIMEOUT", "FETCH_ERROR", "PARSE_ERROR"];
|
|
128
161
|
export declare const TRANSLATION_STATUS_ENUM: ["pending", "running", "completed", "failed"];
|
|
129
162
|
export declare const STORAGE_UPLOAD_KIND_ENUM: ["customization_font", "import_file", "organization_file"];
|
|
130
|
-
export declare const FONT_FAMILY_MAX_LENGTH = 50;
|
|
131
|
-
export declare const FONT_FAMILY_MIN_LENGTH = 1;
|
|
132
163
|
export declare const STORAGE_FILE_KEY_MAX_LENGTH = 512;
|
|
133
164
|
export declare const STORAGE_FILE_KEY_MIN_LENGTH = 1;
|
|
134
165
|
export declare const GIT_SYNC_INSTALLATION_PRIORITY_ENUM: ["git", "gitbook"];
|
|
135
166
|
export declare const GIT_SYNC_INSTALLATION_PROVIDER_ENUM: ["github", "gitlab"];
|
|
136
|
-
export declare const CUSTOMIZATION_THEME_ENUM: ["clean", "muted", "bold", "gradient"];
|
|
137
|
-
export declare const COLOR_PATTERN = "^#(?:[0-9a-fA-F]{3}){1,2}$";
|
|
138
|
-
export declare const CUSTOMIZATION_CORNERS_ENUM: ["straight", "rounded", "circular"];
|
|
139
|
-
export declare const CUSTOMIZATION_DEPTH_ENUM: ["subtle", "flat"];
|
|
140
|
-
export declare const CUSTOMIZATION_LINKS_STYLE_ENUM: ["default", "accent"];
|
|
141
|
-
export declare const CUSTOMIZATION_DEFAULT_FONT_ENUM: ["ABCFavorit", "Inter", "Roboto", "RobotoSlab", "OpenSans", "SourceSansPro", "Lato", "Ubuntu", "Raleway", "Merriweather", "Overpass", "NotoSans", "IBMPlexSerif", "Poppins", "FiraSans"];
|
|
142
|
-
export declare const CUSTOMIZATION_DEFAULT_MONOSPACE_FONT_ENUM: ["FiraCode", "IBMPlexMono", "JetBrainsMono", "SourceCodePro", "RobotoMono", "SpaceMono", "DMMono", "Inconsolata"];
|
|
143
|
-
export declare const CUSTOMIZATION_BACKGROUND_ENUM: ["plain", "match"];
|
|
144
|
-
export declare const CUSTOMIZATION_ICONS_STYLE_ENUM: ["regular", "solid", "duotone", "light", "thin"];
|
|
145
|
-
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"];
|
|
146
|
-
export declare const CUSTOMIZATION_SIDEBAR_BACKGROUND_STYLE_ENUM: ["default", "filled"];
|
|
147
|
-
export declare const CUSTOMIZATION_SIDEBAR_LIST_STYLE_ENUM: ["default", "pill", "line"];
|
|
148
|
-
export declare const CUSTOMIZATION_SEARCH_STYLE_ENUM: ["prominent", "subtle"];
|
|
149
|
-
export declare const CUSTOMIZATION_LOCALE_ENUM: ["en", "fr", "es", "zh", "ja", "de", "nl", "no", "pt-br", "ru"];
|
|
150
|
-
export declare const CUSTOMIZATION_HEADER_PRESET_ENUM: ["default", "bold", "contrast", "custom", "none"];
|
|
151
|
-
export declare const CUSTOMIZATION_CONTENT_LINK_TITLE_MAX_LENGTH = 64;
|
|
152
|
-
export declare const CUSTOMIZATION_ANNOUNCEMENT_MESSAGE_MAX_LENGTH = 128;
|
|
153
|
-
export declare const CUSTOMIZATION_ANNOUNCEMENT_MESSAGE_MIN_LENGTH = 2;
|
|
154
|
-
export declare const CUSTOMIZATION_DEFAULT_THEME_MODE_ENUM: ["light", "dark", "system"];
|
|
155
|
-
export declare const CUSTOMIZATION_AIMODE_ENUM: ["none", "search", "assistant"];
|
|
156
|
-
export declare const CUSTOMIZATION_AIGREETING_MAX_LENGTH = 256;
|
|
157
|
-
export declare const CUSTOMIZATION_SUGGESTED_QUESTION_MAX_LENGTH = 64;
|
|
158
|
-
export declare const CUSTOMIZATION_SUGGESTED_QUESTION_MIN_LENGTH = 3;
|
|
159
|
-
export declare const CUSTOMIZATION_AIINSTRUCTIONS_MAX_LENGTH = 10000;
|
|
160
|
-
export declare const CUSTOMIZATION_PAGE_ACTION_TYPE_ENUM: ["assistant", "external-ai", "markdown", "mcp", "git", "pdf"];
|
|
161
|
-
export declare const SITE_EXTERNAL_LINKS_TARGET_ENUM: ["self", "blank"];
|
|
162
|
-
export declare const SITE_SOCIAL_ACCOUNT_PLATFORM_ENUM: ["twitter", "instagram", "facebook", "linkedin", "github", "discord", "slack", "youtube", "tiktok", "reddit", "bluesky", "mastodon", "threads", "medium"];
|
|
163
|
-
export declare const SITE_SOCIAL_ACCOUNT_HANDLE_MAX_LENGTH = 128;
|
|
164
|
-
export declare const SITE_SOCIAL_ACCOUNT_HANDLE_MIN_LENGTH = 1;
|
|
165
167
|
export declare const SITE_SETUP_STEP_ID_ENUM: ["first-edit", "customize", "git-sync", "domain", "publish"];
|
|
166
|
-
export declare const SITE_CHANGE_REQUEST_MEMBER_STATUS_ENUM: ["active", "removed"];
|
|
167
168
|
export declare const SHARE_LINK_NAME_MAX_LENGTH = 50;
|
|
168
169
|
export declare const SHARE_LINK_NAME_MIN_LENGTH = 0;
|
|
169
170
|
export declare const AGENT_GOAL_MAX_LENGTH = 1024;
|
|
@@ -186,6 +187,7 @@ export declare const SITE_FINDING_ACTION_ENUM: ["approve", "reject", "create-red
|
|
|
186
187
|
export declare const SITE_REDIRECT_SOURCE_PATH_MAX_LENGTH = 512;
|
|
187
188
|
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})+)*(?:\\/\\*|\\*)?$";
|
|
188
189
|
export declare const SITE_QUESTION_TYPE_ENUM: ["exploring", "how-to", "troubleshooting", "reference", "unknown"];
|
|
190
|
+
export declare const SITE_QUESTION_INTENT_ENUM: ["can-it", "how-to", "how-it-works", "details", "troubleshoot", "pricing", "trust", "fit", "other"];
|
|
189
191
|
export declare const CONTEXT_CONNECTION_LABEL_MAX_LENGTH = 128;
|
|
190
192
|
export declare const CONTEXT_CONNECTION_LABEL_MIN_LENGTH = 0;
|
|
191
193
|
export declare const CONTEXT_CONNECTION_FILTER_MAX_LENGTH = 1024;
|
|
@@ -206,6 +208,9 @@ export declare const SITE_QUESTION_ANSWER_RELEVANCE_ENUM: ["relevant", "spam", "
|
|
|
206
208
|
export declare const SITE_CORE_CHANNEL_TYPE_ENUM: ["site", "embed", "api"];
|
|
207
209
|
export declare const SITE_CONFIGURABLE_CHANNEL_TYPE_ENUM: ["builtin:slack", "builtin:discord", "builtin:github", "builtin:linear"];
|
|
208
210
|
export declare const SITE_QUESTION_VISITOR_TYPE_ENUM: ["human", "agent", "bot", "unknown"];
|
|
211
|
+
export declare const SITE_QUESTION_ANSWER_SITE_SAID_ENUM: ["covered", "limited", "unsupported", "no-answer", "needs-support"];
|
|
212
|
+
export declare const SITE_QUESTION_ESCALATION_ENUM: ["docs", "team", "support", "none"];
|
|
213
|
+
export declare const SITE_QUESTION_VISITOR_AUTHENTICATION_ENUM: ["authenticated", "anonymous"];
|
|
209
214
|
export declare const SITE_QUESTION_ANSWER_RESOLUTION_ENUM: ["no", "partially", "yes"];
|
|
210
215
|
export declare const SITE_QUESTION_TIMELINE_INTERVAL_ENUM: ["hour", "day", "week", "month"];
|
|
211
216
|
export declare const SITE_QUESTION_ANSWER_HELPFULNESS_ENUM: ["low", "medium", "high"];
|