@gitbook/api 0.210.0 → 0.212.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 +4300 -4160
- package/dist/constants.d.ts +45 -45
- package/dist/index.cjs +294 -273
- package/dist/index.js +292 -271
- package/package.json +1 -1
- package/spec/openapi.json +11040 -10728
- package/spec/openapi.yaml +8601 -8391
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;
|
|
@@ -120,7 +152,7 @@ export declare const SAMLPROVIDER_DOMAIN_STATUS_ENUM: ["verified", "pending", "e
|
|
|
120
152
|
export declare const ORGANIZATION_DOMAIN_STATUS_ENUM: ["legacy", "pending", "verified", "error"];
|
|
121
153
|
export declare const SCIMCONNECTION_LABEL_MAX_LENGTH = 100;
|
|
122
154
|
export declare const SCIMCONNECTION_LABEL_MIN_LENGTH = 1;
|
|
123
|
-
export declare const
|
|
155
|
+
export declare const ID_PCONNECTION_PROVIDER_ENUM: ["okta", "entra", "generic"];
|
|
124
156
|
export declare const OPEN_APISPEC_SLUG_MAX_LENGTH = 100;
|
|
125
157
|
export declare const OPEN_APISPEC_SLUG_MIN_LENGTH = 1;
|
|
126
158
|
export declare const OPEN_APISPEC_SLUG_PATTERN = "^[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*$";
|
|
@@ -128,43 +160,11 @@ export declare const OPEN_APISPEC_PROCESSING_STATE_ENUM: ["pending", "progress",
|
|
|
128
160
|
export declare const OPEN_APISPEC_PROCESSING_ERROR_CODE_ENUM: ["FETCH_TIMEOUT", "FETCH_ERROR", "PARSE_ERROR"];
|
|
129
161
|
export declare const TRANSLATION_STATUS_ENUM: ["pending", "running", "completed", "failed"];
|
|
130
162
|
export declare const STORAGE_UPLOAD_KIND_ENUM: ["customization_font", "import_file", "organization_file"];
|
|
131
|
-
export declare const FONT_FAMILY_MAX_LENGTH = 50;
|
|
132
|
-
export declare const FONT_FAMILY_MIN_LENGTH = 1;
|
|
133
163
|
export declare const STORAGE_FILE_KEY_MAX_LENGTH = 512;
|
|
134
164
|
export declare const STORAGE_FILE_KEY_MIN_LENGTH = 1;
|
|
135
165
|
export declare const GIT_SYNC_INSTALLATION_PRIORITY_ENUM: ["git", "gitbook"];
|
|
136
166
|
export declare const GIT_SYNC_INSTALLATION_PROVIDER_ENUM: ["github", "gitlab"];
|
|
137
|
-
export declare const CUSTOMIZATION_THEME_ENUM: ["clean", "muted", "bold", "gradient"];
|
|
138
|
-
export declare const COLOR_PATTERN = "^#(?:[0-9a-fA-F]{3}){1,2}$";
|
|
139
|
-
export declare const CUSTOMIZATION_CORNERS_ENUM: ["straight", "rounded", "circular"];
|
|
140
|
-
export declare const CUSTOMIZATION_DEPTH_ENUM: ["subtle", "flat"];
|
|
141
|
-
export declare const CUSTOMIZATION_LINKS_STYLE_ENUM: ["default", "accent"];
|
|
142
|
-
export declare const CUSTOMIZATION_DEFAULT_FONT_ENUM: ["ABCFavorit", "Inter", "Roboto", "RobotoSlab", "OpenSans", "SourceSansPro", "Lato", "Ubuntu", "Raleway", "Merriweather", "Overpass", "NotoSans", "IBMPlexSerif", "Poppins", "FiraSans"];
|
|
143
|
-
export declare const CUSTOMIZATION_DEFAULT_MONOSPACE_FONT_ENUM: ["FiraCode", "IBMPlexMono", "JetBrainsMono", "SourceCodePro", "RobotoMono", "SpaceMono", "DMMono", "Inconsolata"];
|
|
144
|
-
export declare const CUSTOMIZATION_BACKGROUND_ENUM: ["plain", "match"];
|
|
145
|
-
export declare const CUSTOMIZATION_ICONS_STYLE_ENUM: ["regular", "solid", "duotone", "light", "thin"];
|
|
146
|
-
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"];
|
|
147
|
-
export declare const CUSTOMIZATION_SIDEBAR_BACKGROUND_STYLE_ENUM: ["default", "filled"];
|
|
148
|
-
export declare const CUSTOMIZATION_SIDEBAR_LIST_STYLE_ENUM: ["default", "pill", "line"];
|
|
149
|
-
export declare const CUSTOMIZATION_SEARCH_STYLE_ENUM: ["prominent", "subtle"];
|
|
150
|
-
export declare const CUSTOMIZATION_LOCALE_ENUM: ["en", "fr", "es", "zh", "ja", "de", "nl", "no", "pt-br", "ru"];
|
|
151
|
-
export declare const CUSTOMIZATION_HEADER_PRESET_ENUM: ["default", "bold", "contrast", "custom", "none"];
|
|
152
|
-
export declare const CUSTOMIZATION_CONTENT_LINK_TITLE_MAX_LENGTH = 64;
|
|
153
|
-
export declare const CUSTOMIZATION_ANNOUNCEMENT_MESSAGE_MAX_LENGTH = 128;
|
|
154
|
-
export declare const CUSTOMIZATION_ANNOUNCEMENT_MESSAGE_MIN_LENGTH = 2;
|
|
155
|
-
export declare const CUSTOMIZATION_DEFAULT_THEME_MODE_ENUM: ["light", "dark", "system"];
|
|
156
|
-
export declare const CUSTOMIZATION_AIMODE_ENUM: ["none", "search", "assistant"];
|
|
157
|
-
export declare const CUSTOMIZATION_AIGREETING_MAX_LENGTH = 256;
|
|
158
|
-
export declare const CUSTOMIZATION_SUGGESTED_QUESTION_MAX_LENGTH = 64;
|
|
159
|
-
export declare const CUSTOMIZATION_SUGGESTED_QUESTION_MIN_LENGTH = 3;
|
|
160
|
-
export declare const CUSTOMIZATION_AIINSTRUCTIONS_MAX_LENGTH = 10000;
|
|
161
|
-
export declare const CUSTOMIZATION_PAGE_ACTION_TYPE_ENUM: ["assistant", "external-ai", "markdown", "mcp", "git", "pdf"];
|
|
162
|
-
export declare const SITE_EXTERNAL_LINKS_TARGET_ENUM: ["self", "blank"];
|
|
163
|
-
export declare const SITE_SOCIAL_ACCOUNT_PLATFORM_ENUM: ["twitter", "instagram", "facebook", "linkedin", "github", "discord", "slack", "youtube", "tiktok", "reddit", "bluesky", "mastodon", "threads", "medium"];
|
|
164
|
-
export declare const SITE_SOCIAL_ACCOUNT_HANDLE_MAX_LENGTH = 128;
|
|
165
|
-
export declare const SITE_SOCIAL_ACCOUNT_HANDLE_MIN_LENGTH = 1;
|
|
166
167
|
export declare const SITE_SETUP_STEP_ID_ENUM: ["first-edit", "customize", "git-sync", "domain", "publish"];
|
|
167
|
-
export declare const SITE_CHANGE_REQUEST_MEMBER_STATUS_ENUM: ["active", "removed"];
|
|
168
168
|
export declare const SHARE_LINK_NAME_MAX_LENGTH = 50;
|
|
169
169
|
export declare const SHARE_LINK_NAME_MIN_LENGTH = 0;
|
|
170
170
|
export declare const AGENT_GOAL_MAX_LENGTH = 1024;
|