@gitbook/api 0.206.0 → 0.208.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 +791 -84
- package/dist/constants.d.ts +19 -6
- package/dist/index.cjs +191 -13
- package/dist/index.js +170 -13
- package/package.json +1 -1
- package/spec/openapi.json +2139 -378
- package/spec/openapi.yaml +1386 -184
package/dist/constants.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export declare const MEMBER_ROLE_ENUM: ["admin", "create", "edit", "review", "co
|
|
|
16
16
|
export declare const ORGANIZATION_TEAM_TITLE_MAX_LENGTH = 64;
|
|
17
17
|
export declare const ORGANIZATION_TEAM_TITLE_MIN_LENGTH = 1;
|
|
18
18
|
export declare const ICON_MAX_LENGTH = 50;
|
|
19
|
-
export declare const DOCUMENT_TEXT_COLOR_ENUM: ["default", "green", "blue", "red", "orange", "yellow", "purple", "pink", "violet", "cyan", "$primary", "$info", "$success", "$warning", "$danger", "$tint"];
|
|
19
|
+
export declare const DOCUMENT_TEXT_COLOR_ENUM: ["default", "green", "blue", "red", "orange", "yellow", "purple", "pink", "violet", "cyan", "$primary", "$secondary", "$info", "$success", "$warning", "$danger", "$tint"];
|
|
20
20
|
export declare const TEXT_ALIGNMENT_ENUM: ["start", "center", "end"];
|
|
21
21
|
export declare const CARDS_IMAGE_OBJECT_FIT_ENUM: ["contain", "fill", "cover"];
|
|
22
22
|
export declare const VERTICAL_ALIGNMENT_ENUM: ["top", "middle", "bottom"];
|
|
@@ -33,8 +33,12 @@ export declare const CHANGE_REQUEST_SUBJECT_MIN_LENGTH = 0;
|
|
|
33
33
|
export declare const CHANGE_REQUEST_LINK_TITLE_MAX_LENGTH = 128;
|
|
34
34
|
export declare const CHANGE_REQUEST_ORDER_BY_ENUM: ["updatedAt", "createdAt"];
|
|
35
35
|
export declare const CHANGE_REQUEST_REVIEW_STATUS_ENUM: ["changes-requested", "approved"];
|
|
36
|
+
export declare const VARIABLE_NAME_MAX_LENGTH = 64;
|
|
37
|
+
export declare const VARIABLE_NAME_MIN_LENGTH = 1;
|
|
38
|
+
export declare const VARIABLE_NAME_PATTERN = "^[a-zA-Z_$][a-zA-Z0-9_$]*$";
|
|
36
39
|
export declare const REVISION_PAGE_TYPE_ENUM: ["document", "group", "link", "computed"];
|
|
37
40
|
export declare const REVISION_PAGE_LAYOUT_PRESET_ENUM: ["docs", "editorial", "landing"];
|
|
41
|
+
export declare const MEMBER_DISABLED_REASON_ENUM: ["billing", "scim", "admin"];
|
|
38
42
|
export declare const INTEGRATION_TITLE_MAX_LENGTH = 30;
|
|
39
43
|
export declare const INTEGRATION_TITLE_MIN_LENGTH = 2;
|
|
40
44
|
export declare const INTEGRATION_DESCRIPTION_MAX_LENGTH = 100;
|
|
@@ -53,7 +57,7 @@ export declare const ORGANIZATION_HOSTNAME_MIN_LENGTH = 3;
|
|
|
53
57
|
export declare const ORGANIZATION_TYPE_ENUM: ["business", "community"];
|
|
54
58
|
export declare const ORGANIZATION_USE_CASE_ENUM: ["internalDocs", "docsSite", "audienceControlledSite", "productDocs", "teamKnowledgeBase", "designSystem", "openSourceDocs", "notes", "other"];
|
|
55
59
|
export declare const ORGANIZATION_COMMUNITY_TYPE_ENUM: ["nonProfit", "openSource", "education"];
|
|
56
|
-
export declare const BILLING_PRODUCT_ENUM: ["free_2024", "plus_2024", "pro_2024", "enterprise_2024", "community_2024", "
|
|
60
|
+
export declare const BILLING_PRODUCT_ENUM: ["free_2024", "plus_2024", "pro_2024", "enterprise_2024", "community_2024", "internal"];
|
|
57
61
|
export declare const BILLING_INTERVAL_ENUM: ["monthly", "yearly"];
|
|
58
62
|
export declare const BILLING_TRIAL_STATUS_ENUM: ["notapplicable", "none", "active", "ended", "expired"];
|
|
59
63
|
export declare const BLOCK_SOURCE_ENUM: ["backoffice", "external", "internal"];
|
|
@@ -66,7 +70,7 @@ export declare const INTEGRATION_INSTALLATION_STATUS_ENUM: ["active", "pending",
|
|
|
66
70
|
export declare const INTEGRATION_INSTALLATION_SPACE_SELECTION_ENUM: ["all", "selected"];
|
|
67
71
|
export declare const INTEGRATION_INSTALLATION_SITE_SELECTION_ENUM: ["all", "selected"];
|
|
68
72
|
export declare const PAGE_FEEDBACK_RATING_ENUM: ["bad", "ok", "good"];
|
|
69
|
-
export declare const SITE_TYPE_ENUM: ["basic", "premium", "ultimate", "sponsored"
|
|
73
|
+
export declare const SITE_TYPE_ENUM: ["basic", "premium", "ultimate", "sponsored"];
|
|
70
74
|
export declare const SITE_TITLE_MAX_LENGTH = 128;
|
|
71
75
|
export declare const SITE_TITLE_MIN_LENGTH = 2;
|
|
72
76
|
export declare const SITE_HOSTNAME_MAX_LENGTH = 512;
|
|
@@ -77,7 +81,7 @@ export declare const SITE_PROXY_ORIGIN_MAX_LENGTH = 512;
|
|
|
77
81
|
export declare const SITE_PROXY_ORIGIN_PATTERN = "^([\\w-]+\\.)*[\\w-]+\\.[a-zA-Z]{2,}(\\/[\\w-]+)+$";
|
|
78
82
|
export declare const SITE_VISIBILITY_ENUM: ["public", "unlisted", "share-link", "visitor-auth"];
|
|
79
83
|
export declare const SITE_ADS_TOPIC_ENUM: ["webdev", "crypto"];
|
|
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-ai-insights", "sites-fix-broken-links", "sites-connections", "sites-content-gaps", "sites-channels", "sites-embed", "sites-api-playground", "sites-basic-customization", "sites-broken-links", "sites-custom-domain", "sites-custom-
|
|
84
|
+
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-ai-insights", "sites-fix-broken-links", "sites-connections", "sites-content-gaps", "sites-channels", "sites-embed", "sites-api-playground", "sites-basic-customization", "sites-broken-links", "sites-custom-domain", "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-style-guide", "sites-unlisted-visibility", "sites-user-contribution", "sites-visitor-authentication", "sites-visitors"];
|
|
81
85
|
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"];
|
|
82
86
|
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"];
|
|
83
87
|
export declare const SITE_ONBOARDING_SOURCE_ENUM: ["markdown-in-git", "import", "template"];
|
|
@@ -102,18 +106,21 @@ export declare const BILLING_METER_ENUM: ["ai_responses", "ai_agent_responses",
|
|
|
102
106
|
export declare const AICREDIT_GRANT_TYPE_ENUM: ["paid", "bonus", "site", "rollover", "custom"];
|
|
103
107
|
export declare const BILLING_SWITCH_ACTION_ENUM: ["trial", "upgrade", "upgrade_passive", "downgrade", "switch_interval"];
|
|
104
108
|
export declare const AIUSAGE_INTERVAL_ENUM: ["day", "week", "month", "year"];
|
|
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"];
|
|
109
|
+
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", "scim", "change-requests-merge-rules"];
|
|
106
110
|
export declare const SAMLPROVIDER_LABEL_MAX_LENGTH = 30;
|
|
107
111
|
export declare const SAMLPROVIDER_LABEL_MIN_LENGTH = 1;
|
|
108
112
|
export declare const SAMLPROVIDER_ENTITY_ID_MAX_LENGTH = 1024;
|
|
109
113
|
export declare const SAMLPROVIDER_CERTIFICATE_MAX_LENGTH = 10000;
|
|
110
114
|
export declare const SAMLPROVIDER_STATUS_ENUM: ["active", "pending"];
|
|
115
|
+
export declare const SCIMCONNECTION_LABEL_MAX_LENGTH = 100;
|
|
116
|
+
export declare const SCIMCONNECTION_LABEL_MIN_LENGTH = 1;
|
|
117
|
+
export declare const SCIMCONNECTION_PROVIDER_ENUM: ["okta", "entra", "generic"];
|
|
111
118
|
export declare const OPEN_APISPEC_SLUG_MAX_LENGTH = 100;
|
|
112
119
|
export declare const OPEN_APISPEC_SLUG_MIN_LENGTH = 1;
|
|
113
120
|
export declare const OPEN_APISPEC_SLUG_PATTERN = "^[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*$";
|
|
114
121
|
export declare const OPEN_APISPEC_PROCESSING_STATE_ENUM: ["pending", "progress", "complete"];
|
|
115
122
|
export declare const OPEN_APISPEC_PROCESSING_ERROR_CODE_ENUM: ["FETCH_TIMEOUT", "FETCH_ERROR", "PARSE_ERROR"];
|
|
116
|
-
export declare const TRANSLATION_STATUS_ENUM: ["pending", "running", "completed"];
|
|
123
|
+
export declare const TRANSLATION_STATUS_ENUM: ["pending", "running", "completed", "failed"];
|
|
117
124
|
export declare const STORAGE_UPLOAD_KIND_ENUM: ["customization_font", "import_file", "organization_file"];
|
|
118
125
|
export declare const FONT_FAMILY_MAX_LENGTH = 50;
|
|
119
126
|
export declare const FONT_FAMILY_MIN_LENGTH = 1;
|
|
@@ -150,6 +157,7 @@ export declare const SITE_EXTERNAL_LINKS_TARGET_ENUM: ["self", "blank"];
|
|
|
150
157
|
export declare const SITE_SOCIAL_ACCOUNT_PLATFORM_ENUM: ["twitter", "instagram", "facebook", "linkedin", "github", "discord", "slack", "youtube", "tiktok", "reddit", "bluesky", "mastodon", "threads", "medium"];
|
|
151
158
|
export declare const SITE_SOCIAL_ACCOUNT_HANDLE_MAX_LENGTH = 128;
|
|
152
159
|
export declare const SITE_SOCIAL_ACCOUNT_HANDLE_MIN_LENGTH = 1;
|
|
160
|
+
export declare const SITE_SETUP_STEP_ID_ENUM: ["first-edit", "customize", "git-sync", "domain", "publish"];
|
|
153
161
|
export declare const SITE_CHANGE_REQUEST_MEMBER_STATUS_ENUM: ["active", "removed"];
|
|
154
162
|
export declare const SHARE_LINK_NAME_MAX_LENGTH = 50;
|
|
155
163
|
export declare const SHARE_LINK_NAME_MIN_LENGTH = 0;
|
|
@@ -163,10 +171,13 @@ export declare const SITE_SCAN_STATUS_ENUM: ["pending", "running", "done", "fail
|
|
|
163
171
|
export declare const SITE_FINDING_STATUS_ENUM: ["candidate", "open", "done", "canceled"];
|
|
164
172
|
export declare const SITE_FINDING_TYPE_ENUM: ["content-outdated", "content-incorrect", "content-gap", "broken-link", "outbound-link-error", "other"];
|
|
165
173
|
export declare const SITE_FINDING_SEVERITY_ENUM: ["low", "medium", "high"];
|
|
174
|
+
export declare const SITE_FINDING_AUTO_RESOLUTION_ENUM: ["drafted", "applied", "undone"];
|
|
175
|
+
export declare const SITE_FINDING_STATE_ENUM: ["open", "awaiting-approval", "resolved", "ignored"];
|
|
166
176
|
export declare const SITE_TRIAGE_FILTER_QUESTIONS_ENUM: ["questions"];
|
|
167
177
|
export declare const SITE_TRIAGE_FILTER_CONNECTIONS_PATTERN = "^connection:.+$";
|
|
168
178
|
export declare const SITE_FINDING_ORDER_BY_ENUM: ["updatedAt", "severity", "sources", "suggestedFix"];
|
|
169
179
|
export declare const SITE_FINDING_TITLE_MAX_LENGTH = 256;
|
|
180
|
+
export declare const SITE_FINDING_ACTION_ENUM: ["approve", "reject", "create-redirect", "mark-resolved", "reopen", "ignore", "restore"];
|
|
170
181
|
export declare const SITE_REDIRECT_SOURCE_PATH_MAX_LENGTH = 512;
|
|
171
182
|
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})+)*(?:\\/\\*|\\*)?$";
|
|
172
183
|
export declare const SITE_QUESTION_TYPE_ENUM: ["exploring", "how-to", "troubleshooting", "reference", "unknown"];
|
|
@@ -189,7 +200,9 @@ export declare const API_TOKEN_MIN_LENGTH = 1;
|
|
|
189
200
|
export declare const SITE_QUESTION_ANSWER_RELEVANCE_ENUM: ["relevant", "spam", "off-topic", "unclear"];
|
|
190
201
|
export declare const SITE_CORE_CHANNEL_TYPE_ENUM: ["site", "embed", "api"];
|
|
191
202
|
export declare const SITE_CONFIGURABLE_CHANNEL_TYPE_ENUM: ["builtin:slack", "builtin:discord", "builtin:github", "builtin:linear"];
|
|
203
|
+
export declare const SITE_QUESTION_VISITOR_TYPE_ENUM: ["human", "agent", "bot", "unknown"];
|
|
192
204
|
export declare const SITE_QUESTION_ANSWER_RESOLUTION_ENUM: ["no", "partially", "yes"];
|
|
205
|
+
export declare const SITE_QUESTION_TIMELINE_INTERVAL_ENUM: ["hour", "day", "week", "month"];
|
|
193
206
|
export declare const SITE_QUESTION_ANSWER_HELPFULNESS_ENUM: ["low", "medium", "high"];
|
|
194
207
|
export declare const AIMESSAGE_ROLE_ENUM: ["user", "assistant", "developer"];
|
|
195
208
|
export declare const AIMESSAGE_STEP_START_CONDITION_ENUM: ["compaction"];
|