@gitbook/api 0.186.0 → 0.188.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 +1084 -1140
- package/dist/constants.d.ts +24 -25
- package/dist/index.cjs +115 -192
- package/dist/index.js +113 -186
- package/package.json +1 -1
- package/spec/openapi.json +3862 -2686
- package/spec/openapi.yaml +2646 -2045
package/dist/constants.d.ts
CHANGED
|
@@ -27,6 +27,20 @@ export declare const CHANGE_REQUEST_STATUS_ENUM: ["draft", "open", "archived", "
|
|
|
27
27
|
export declare const CHANGE_REQUEST_SUBJECT_MAX_LENGTH = 100;
|
|
28
28
|
export declare const CHANGE_REQUEST_SUBJECT_MIN_LENGTH = 0;
|
|
29
29
|
export declare const CHANGE_REQUEST_LINK_TITLE_MAX_LENGTH = 128;
|
|
30
|
+
export declare const CHANGE_REQUEST_ORDER_BY_ENUM: ["updatedAt", "createdAt"];
|
|
31
|
+
export declare const CHANGE_REQUEST_REVIEW_STATUS_ENUM: ["changes-requested", "approved"];
|
|
32
|
+
export declare const REVISION_PAGE_TYPE_ENUM: ["document", "group", "link", "computed"];
|
|
33
|
+
export declare const REVISION_PAGE_LAYOUT_PRESET_ENUM: ["docs", "editorial", "landing"];
|
|
34
|
+
export declare const INTEGRATION_TITLE_MAX_LENGTH = 30;
|
|
35
|
+
export declare const INTEGRATION_TITLE_MIN_LENGTH = 2;
|
|
36
|
+
export declare const INTEGRATION_DESCRIPTION_MAX_LENGTH = 100;
|
|
37
|
+
export declare const INTEGRATION_SUMMARY_MAX_LENGTH = 2048;
|
|
38
|
+
export declare const INTEGRATION_TARGET_ENUM: ["all", "site", "space", "organization"];
|
|
39
|
+
export declare const INTEGRATION_VISIBILITY_ENUM: ["public", "private", "unlisted"];
|
|
40
|
+
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:visitor:claims", "site:adaptive:read", "site:adaptive:write", "conversations:ingest", "openapi:read", "openapi:write"];
|
|
41
|
+
export declare const INTEGRATION_CATEGORY_ENUM: ["analytics", "collaboration", "content", "gitsync", "marketing", "visitor-auth", "other"];
|
|
42
|
+
export declare const INTEGRATION_PROPERTY_TITLE_MAX_LENGTH = 50;
|
|
43
|
+
export declare const INTEGRATION_PROPERTY_TITLE_MIN_LENGTH = 2;
|
|
30
44
|
export declare const ORGANIZATION_TITLE_MAX_LENGTH = 255;
|
|
31
45
|
export declare const ORGANIZATION_TITLE_MIN_LENGTH = 2;
|
|
32
46
|
export declare const ORGANIZATION_TITLE_PATTERN = "\\S.*\\S";
|
|
@@ -44,27 +58,6 @@ export declare const BLOCK_REASON_MIN_LENGTH = 1;
|
|
|
44
58
|
export declare const COLLECTION_TITLE_MAX_LENGTH = 50;
|
|
45
59
|
export declare const COLLECTION_DESCRIPTION_MAX_LENGTH = 100;
|
|
46
60
|
export declare const COLLECTION_DESCRIPTION_MIN_LENGTH = 0;
|
|
47
|
-
export declare const OPEN_APISPEC_SLUG_MAX_LENGTH = 100;
|
|
48
|
-
export declare const OPEN_APISPEC_SLUG_MIN_LENGTH = 1;
|
|
49
|
-
export declare const OPEN_APISPEC_SLUG_PATTERN = "^[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*$";
|
|
50
|
-
export declare const OPEN_APISPEC_PROCESSING_STATE_ENUM: ["pending", "progress", "complete"];
|
|
51
|
-
export declare const OPEN_APISPEC_PROCESSING_ERROR_CODE_ENUM: ["FETCH_TIMEOUT", "FETCH_ERROR", "PARSE_ERROR"];
|
|
52
|
-
export declare const CONTENT_REFERENCE_STATUS_ENUM: ["ok", "broken", "in-app"];
|
|
53
|
-
export declare const CONTENT_REFERENCE_RELATION_ENUM: ["reference", "dependsOn"];
|
|
54
|
-
export declare const CHANGE_REQUEST_ORDER_BY_ENUM: ["updatedAt", "createdAt"];
|
|
55
|
-
export declare const CHANGE_REQUEST_REVIEW_STATUS_ENUM: ["changes-requested", "approved"];
|
|
56
|
-
export declare const REVISION_PAGE_TYPE_ENUM: ["document", "group", "link", "computed"];
|
|
57
|
-
export declare const REVISION_PAGE_LAYOUT_PRESET_ENUM: ["docs", "editorial", "landing"];
|
|
58
|
-
export declare const INTEGRATION_TITLE_MAX_LENGTH = 30;
|
|
59
|
-
export declare const INTEGRATION_TITLE_MIN_LENGTH = 2;
|
|
60
|
-
export declare const INTEGRATION_DESCRIPTION_MAX_LENGTH = 100;
|
|
61
|
-
export declare const INTEGRATION_SUMMARY_MAX_LENGTH = 2048;
|
|
62
|
-
export declare const INTEGRATION_TARGET_ENUM: ["all", "site", "space", "organization"];
|
|
63
|
-
export declare const INTEGRATION_VISIBILITY_ENUM: ["public", "private", "unlisted"];
|
|
64
|
-
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:visitor:claims", "site:adaptive:read", "site:adaptive:write", "conversations:ingest", "openapi:read", "openapi:write"];
|
|
65
|
-
export declare const INTEGRATION_CATEGORY_ENUM: ["analytics", "collaboration", "content", "gitsync", "marketing", "visitor-auth", "other"];
|
|
66
|
-
export declare const INTEGRATION_PROPERTY_TITLE_MAX_LENGTH = 50;
|
|
67
|
-
export declare const INTEGRATION_PROPERTY_TITLE_MIN_LENGTH = 2;
|
|
68
61
|
export declare const INTEGRATION_INSTALLATION_STATUS_ENUM: ["active", "pending", "paused"];
|
|
69
62
|
export declare const INTEGRATION_INSTALLATION_SPACE_SELECTION_ENUM: ["all", "selected"];
|
|
70
63
|
export declare const INTEGRATION_INSTALLATION_SITE_SELECTION_ENUM: ["all", "selected"];
|
|
@@ -79,7 +72,6 @@ export declare const SITE_BASENAME_MIN_LENGTH = 1;
|
|
|
79
72
|
export declare const SITE_PROXY_ORIGIN_MAX_LENGTH = 512;
|
|
80
73
|
export declare const SITE_PROXY_ORIGIN_PATTERN = "^([\\w-]+\\.)*[\\w-]+\\.[a-zA-Z]{2,}(\\/[\\w-]+)+$";
|
|
81
74
|
export declare const SITE_VISIBILITY_ENUM: ["public", "unlisted", "share-link", "visitor-auth"];
|
|
82
|
-
export declare const SITE_PERMISSIONS_MODEL_ENUM: ["legacy", "site"];
|
|
83
75
|
export declare const SITE_ADS_TOPIC_ENUM: ["webdev", "crypto"];
|
|
84
76
|
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-connections", "sites-channels", "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"];
|
|
85
77
|
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"];
|
|
@@ -104,6 +96,11 @@ export declare const SAMLPROVIDER_LABEL_MIN_LENGTH = 1;
|
|
|
104
96
|
export declare const SAMLPROVIDER_ENTITY_ID_MAX_LENGTH = 1024;
|
|
105
97
|
export declare const SAMLPROVIDER_CERTIFICATE_MAX_LENGTH = 10000;
|
|
106
98
|
export declare const SAMLPROVIDER_STATUS_ENUM: ["active", "pending"];
|
|
99
|
+
export declare const OPEN_APISPEC_SLUG_MAX_LENGTH = 100;
|
|
100
|
+
export declare const OPEN_APISPEC_SLUG_MIN_LENGTH = 1;
|
|
101
|
+
export declare const OPEN_APISPEC_SLUG_PATTERN = "^[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*$";
|
|
102
|
+
export declare const OPEN_APISPEC_PROCESSING_STATE_ENUM: ["pending", "progress", "complete"];
|
|
103
|
+
export declare const OPEN_APISPEC_PROCESSING_ERROR_CODE_ENUM: ["FETCH_TIMEOUT", "FETCH_ERROR", "PARSE_ERROR"];
|
|
107
104
|
export declare const TRANSLATION_STATUS_ENUM: ["pending", "running", "completed"];
|
|
108
105
|
export declare const STORAGE_UPLOAD_KIND_ENUM: ["customization_font", "import_file"];
|
|
109
106
|
export declare const FONT_FAMILY_MAX_LENGTH = 50;
|
|
@@ -145,13 +142,15 @@ export declare const CONTEXT_RECORD_TITLE_MAX_LENGTH = 256;
|
|
|
145
142
|
export declare const CONTEXT_RECORD_TITLE_MIN_LENGTH = 1;
|
|
146
143
|
export declare const CONTEXT_RECORD_DESCRIPTION_MAX_LENGTH = 512;
|
|
147
144
|
export declare const SITE_SCAN_STATUS_ENUM: ["pending", "running", "done", "failed"];
|
|
148
|
-
export declare const SITE_FINDING_STATUS_ENUM: ["open", "done", "canceled"];
|
|
149
|
-
export declare const SITE_FINDING_TYPE_ENUM: ["content-outdated", "
|
|
145
|
+
export declare const SITE_FINDING_STATUS_ENUM: ["candidate", "open", "done", "canceled"];
|
|
146
|
+
export declare const SITE_FINDING_TYPE_ENUM: ["content-outdated", "content-incorrect", "content-gap", "other"];
|
|
150
147
|
export declare const SITE_FINDING_SEVERITY_ENUM: ["low", "medium", "high"];
|
|
151
148
|
export declare const SITE_FINDING_TITLE_MAX_LENGTH = 256;
|
|
152
149
|
export declare const SITE_QUESTION_TYPE_ENUM: ["exploring", "how-to", "troubleshooting", "reference", "unknown"];
|
|
153
150
|
export declare const CONTEXT_CONNECTION_LABEL_MAX_LENGTH = 128;
|
|
154
151
|
export declare const CONTEXT_CONNECTION_LABEL_MIN_LENGTH = 0;
|
|
152
|
+
export declare const CONTEXT_CONNECTION_FILTER_MAX_LENGTH = 1024;
|
|
153
|
+
export declare const CONTEXT_CONNECTION_FILTER_MIN_LENGTH = 0;
|
|
155
154
|
export declare const CONTEXT_CONNECTION_STATUS_ENUM: ["pending", "syncing", "succeeded", "failed"];
|
|
156
155
|
export declare const CONTEXT_SEARCH_BOOST_ENUM: ["x0.8", "x1.0", "x1.2"];
|
|
157
156
|
export declare const YOUTUBE_CHANNEL_ID_PATTERN = "^UC[A-Za-z0-9_-]{22}$";
|
|
@@ -172,7 +171,7 @@ export declare const SITE_INSIGHTS_LINK_POSITION_ENUM: ["announcement", "header"
|
|
|
172
171
|
export declare const SITE_INSIGHTS_TRADEMARK_PLACEMENT_ENUM: ["sidebar", "ad", "footer", "pdf", "embed"];
|
|
173
172
|
export declare const SITE_INSIGHTS_AD_PLACEMENT_ENUM: ["aside"];
|
|
174
173
|
export declare const SITE_INSIGHTS_LLMSVARIANT_ENUM: ["standard", "full"];
|
|
175
|
-
export declare const SITE_INSIGHTS_EVENT_TYPE_ENUM: ["page_view", "page_markdown_request", "search_open", "search_type_query", "search_open_result", "page_post_feedback", "page_post_feedback_comment", "ask_question", "ask_view", "ask_rate_response", "link_click", "api_client_open", "api_client_request", "ad_click", "ad_display", "trademark_click", "llms_request", "mcp_request", "rss_request"];
|
|
174
|
+
export declare const SITE_INSIGHTS_EVENT_TYPE_ENUM: ["page_view", "page_markdown_request", "search_open", "search_type_query", "search_open_result", "page_post_feedback", "page_post_feedback_comment", "agent_feedback", "ask_question", "ask_view", "ask_rate_response", "link_click", "api_client_open", "api_client_request", "ad_click", "ad_display", "trademark_click", "llms_request", "mcp_request", "rss_request"];
|
|
176
175
|
export declare const SITE_INSIGHTS_VISITOR_BROWSER_ENUM: ["chrome", "firefox", "safari", "edge", "ie", "opera", "unknown"];
|
|
177
176
|
export declare const SITE_INSIGHTS_VISITOR_DEVICE_ENUM: ["desktop", "tablet", "mobile", "unknown"];
|
|
178
177
|
export declare const SITE_INSIGHTS_VISITOR_OS_ENUM: ["windows", "macos", "linux", "android", "ios", "unknown"];
|
package/dist/index.cjs
CHANGED
|
@@ -226,9 +226,9 @@ __export(src_exports, {
|
|
|
226
226
|
COLLECTION_TITLE_MAX_LENGTH: () => COLLECTION_TITLE_MAX_LENGTH,
|
|
227
227
|
COLOR_PATTERN: () => COLOR_PATTERN,
|
|
228
228
|
CONTENT_KIT_ICON_ENUM: () => CONTENT_KIT_ICON_ENUM,
|
|
229
|
-
CONTENT_REFERENCE_RELATION_ENUM: () => CONTENT_REFERENCE_RELATION_ENUM,
|
|
230
|
-
CONTENT_REFERENCE_STATUS_ENUM: () => CONTENT_REFERENCE_STATUS_ENUM,
|
|
231
229
|
CONTENT_VISIBILITY_ENUM: () => CONTENT_VISIBILITY_ENUM,
|
|
230
|
+
CONTEXT_CONNECTION_FILTER_MAX_LENGTH: () => CONTEXT_CONNECTION_FILTER_MAX_LENGTH,
|
|
231
|
+
CONTEXT_CONNECTION_FILTER_MIN_LENGTH: () => CONTEXT_CONNECTION_FILTER_MIN_LENGTH,
|
|
232
232
|
CONTEXT_CONNECTION_LABEL_MAX_LENGTH: () => CONTEXT_CONNECTION_LABEL_MAX_LENGTH,
|
|
233
233
|
CONTEXT_CONNECTION_LABEL_MIN_LENGTH: () => CONTEXT_CONNECTION_LABEL_MIN_LENGTH,
|
|
234
234
|
CONTEXT_CONNECTION_STATUS_ENUM: () => CONTEXT_CONNECTION_STATUS_ENUM,
|
|
@@ -271,8 +271,6 @@ __export(src_exports, {
|
|
|
271
271
|
CloudflareHostnameTLSStatus: () => CloudflareHostnameTLSStatus,
|
|
272
272
|
CloudflareHostnameTLSValidationMethod: () => CloudflareHostnameTLSValidationMethod,
|
|
273
273
|
ContentKitIcon: () => ContentKitIcon,
|
|
274
|
-
ContentReferenceRelation: () => ContentReferenceRelation,
|
|
275
|
-
ContentReferenceStatus: () => ContentReferenceStatus,
|
|
276
274
|
ContentType: () => ContentType,
|
|
277
275
|
ContentVisibility: () => ContentVisibility,
|
|
278
276
|
ContextConnectionStatus: () => ContextConnectionStatus,
|
|
@@ -432,7 +430,6 @@ __export(src_exports, {
|
|
|
432
430
|
SITE_MCP_SERVER_NAME_MAX_LENGTH: () => SITE_MCP_SERVER_NAME_MAX_LENGTH,
|
|
433
431
|
SITE_MCP_SERVER_NAME_MIN_LENGTH: () => SITE_MCP_SERVER_NAME_MIN_LENGTH,
|
|
434
432
|
SITE_MCP_SERVER_TRANSPORT_ENUM: () => SITE_MCP_SERVER_TRANSPORT_ENUM,
|
|
435
|
-
SITE_PERMISSIONS_MODEL_ENUM: () => SITE_PERMISSIONS_MODEL_ENUM,
|
|
436
433
|
SITE_PROXY_ORIGIN_MAX_LENGTH: () => SITE_PROXY_ORIGIN_MAX_LENGTH,
|
|
437
434
|
SITE_PROXY_ORIGIN_PATTERN: () => SITE_PROXY_ORIGIN_PATTERN,
|
|
438
435
|
SITE_QUESTION_ANSWER_HELPFULNESS_ENUM: () => SITE_QUESTION_ANSWER_HELPFULNESS_ENUM,
|
|
@@ -492,7 +489,6 @@ __export(src_exports, {
|
|
|
492
489
|
SiteInsightsVisitorDevice: () => SiteInsightsVisitorDevice,
|
|
493
490
|
SiteInsightsVisitorOS: () => SiteInsightsVisitorOS,
|
|
494
491
|
SiteMcpServerTransport: () => SiteMcpServerTransport,
|
|
495
|
-
SitePermissionsModel: () => SitePermissionsModel,
|
|
496
492
|
SiteQuestionAnswerHelpfulness: () => SiteQuestionAnswerHelpfulness,
|
|
497
493
|
SiteQuestionAnswerRelevance: () => SiteQuestionAnswerRelevance,
|
|
498
494
|
SiteQuestionAnswerResolution: () => SiteQuestionAnswerResolution,
|
|
@@ -524,7 +520,7 @@ module.exports = __toCommonJS(src_exports);
|
|
|
524
520
|
|
|
525
521
|
// package.json
|
|
526
522
|
var name = "@gitbook/api";
|
|
527
|
-
var version = "0.
|
|
523
|
+
var version = "0.188.0";
|
|
528
524
|
|
|
529
525
|
// src/client.ts
|
|
530
526
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -853,6 +849,7 @@ var SiteInsightsEventType = /* @__PURE__ */ ((SiteInsightsEventType2) => {
|
|
|
853
849
|
SiteInsightsEventType2["SearchOpenResult"] = "search_open_result";
|
|
854
850
|
SiteInsightsEventType2["PagePostFeedback"] = "page_post_feedback";
|
|
855
851
|
SiteInsightsEventType2["PagePostFeedbackComment"] = "page_post_feedback_comment";
|
|
852
|
+
SiteInsightsEventType2["AgentFeedback"] = "agent_feedback";
|
|
856
853
|
SiteInsightsEventType2["AskQuestion"] = "ask_question";
|
|
857
854
|
SiteInsightsEventType2["AskView"] = "ask_view";
|
|
858
855
|
SiteInsightsEventType2["AskRateResponse"] = "ask_rate_response";
|
|
@@ -993,12 +990,13 @@ var SiteFindingSeverity = /* @__PURE__ */ ((SiteFindingSeverity2) => {
|
|
|
993
990
|
})(SiteFindingSeverity || {});
|
|
994
991
|
var SiteFindingType = /* @__PURE__ */ ((SiteFindingType2) => {
|
|
995
992
|
SiteFindingType2["ContentOutdated"] = "content-outdated";
|
|
996
|
-
SiteFindingType2["
|
|
993
|
+
SiteFindingType2["ContentIncorrect"] = "content-incorrect";
|
|
997
994
|
SiteFindingType2["ContentGap"] = "content-gap";
|
|
998
995
|
SiteFindingType2["Other"] = "other";
|
|
999
996
|
return SiteFindingType2;
|
|
1000
997
|
})(SiteFindingType || {});
|
|
1001
998
|
var SiteFindingStatus = /* @__PURE__ */ ((SiteFindingStatus2) => {
|
|
999
|
+
SiteFindingStatus2["Candidate"] = "candidate";
|
|
1002
1000
|
SiteFindingStatus2["Open"] = "open";
|
|
1003
1001
|
SiteFindingStatus2["Done"] = "done";
|
|
1004
1002
|
SiteFindingStatus2["Canceled"] = "canceled";
|
|
@@ -1244,6 +1242,18 @@ var TranslationStatus = /* @__PURE__ */ ((TranslationStatus2) => {
|
|
|
1244
1242
|
TranslationStatus2["Completed"] = "completed";
|
|
1245
1243
|
return TranslationStatus2;
|
|
1246
1244
|
})(TranslationStatus || {});
|
|
1245
|
+
var OpenAPISpecProcessingErrorCode = /* @__PURE__ */ ((OpenAPISpecProcessingErrorCode2) => {
|
|
1246
|
+
OpenAPISpecProcessingErrorCode2["FETCH_TIMEOUT"] = "FETCH_TIMEOUT";
|
|
1247
|
+
OpenAPISpecProcessingErrorCode2["FETCH_ERROR"] = "FETCH_ERROR";
|
|
1248
|
+
OpenAPISpecProcessingErrorCode2["PARSE_ERROR"] = "PARSE_ERROR";
|
|
1249
|
+
return OpenAPISpecProcessingErrorCode2;
|
|
1250
|
+
})(OpenAPISpecProcessingErrorCode || {});
|
|
1251
|
+
var OpenAPISpecProcessingState = /* @__PURE__ */ ((OpenAPISpecProcessingState2) => {
|
|
1252
|
+
OpenAPISpecProcessingState2["Pending"] = "pending";
|
|
1253
|
+
OpenAPISpecProcessingState2["Progress"] = "progress";
|
|
1254
|
+
OpenAPISpecProcessingState2["Complete"] = "complete";
|
|
1255
|
+
return OpenAPISpecProcessingState2;
|
|
1256
|
+
})(OpenAPISpecProcessingState || {});
|
|
1247
1257
|
var SAMLProviderStatus = /* @__PURE__ */ ((SAMLProviderStatus2) => {
|
|
1248
1258
|
SAMLProviderStatus2["Active"] = "active";
|
|
1249
1259
|
SAMLProviderStatus2["Pending"] = "pending";
|
|
@@ -1341,11 +1351,6 @@ var SiteAdsTopic = /* @__PURE__ */ ((SiteAdsTopic2) => {
|
|
|
1341
1351
|
SiteAdsTopic2["Crypto"] = "crypto";
|
|
1342
1352
|
return SiteAdsTopic2;
|
|
1343
1353
|
})(SiteAdsTopic || {});
|
|
1344
|
-
var SitePermissionsModel = /* @__PURE__ */ ((SitePermissionsModel2) => {
|
|
1345
|
-
SitePermissionsModel2["Legacy"] = "legacy";
|
|
1346
|
-
SitePermissionsModel2["Site"] = "site";
|
|
1347
|
-
return SitePermissionsModel2;
|
|
1348
|
-
})(SitePermissionsModel || {});
|
|
1349
1354
|
var SiteVisibility = /* @__PURE__ */ ((SiteVisibility2) => {
|
|
1350
1355
|
SiteVisibility2["Public"] = "public";
|
|
1351
1356
|
SiteVisibility2["Unlisted"] = "unlisted";
|
|
@@ -1384,6 +1389,60 @@ var IntegrationInstallationStatus = /* @__PURE__ */ ((IntegrationInstallationSta
|
|
|
1384
1389
|
IntegrationInstallationStatus2["Paused"] = "paused";
|
|
1385
1390
|
return IntegrationInstallationStatus2;
|
|
1386
1391
|
})(IntegrationInstallationStatus || {});
|
|
1392
|
+
var BlockSource = /* @__PURE__ */ ((BlockSource2) => {
|
|
1393
|
+
BlockSource2["Backoffice"] = "backoffice";
|
|
1394
|
+
BlockSource2["External"] = "external";
|
|
1395
|
+
BlockSource2["Internal"] = "internal";
|
|
1396
|
+
return BlockSource2;
|
|
1397
|
+
})(BlockSource || {});
|
|
1398
|
+
var BillingTrialStatus = /* @__PURE__ */ ((BillingTrialStatus2) => {
|
|
1399
|
+
BillingTrialStatus2["Notapplicable"] = "notapplicable";
|
|
1400
|
+
BillingTrialStatus2["None"] = "none";
|
|
1401
|
+
BillingTrialStatus2["Active"] = "active";
|
|
1402
|
+
BillingTrialStatus2["Ended"] = "ended";
|
|
1403
|
+
BillingTrialStatus2["Expired"] = "expired";
|
|
1404
|
+
return BillingTrialStatus2;
|
|
1405
|
+
})(BillingTrialStatus || {});
|
|
1406
|
+
var BillingInterval = /* @__PURE__ */ ((BillingInterval2) => {
|
|
1407
|
+
BillingInterval2["Monthly"] = "monthly";
|
|
1408
|
+
BillingInterval2["Yearly"] = "yearly";
|
|
1409
|
+
return BillingInterval2;
|
|
1410
|
+
})(BillingInterval || {});
|
|
1411
|
+
var BillingProduct = /* @__PURE__ */ ((BillingProduct2) => {
|
|
1412
|
+
BillingProduct2["Free2024"] = "free_2024";
|
|
1413
|
+
BillingProduct2["Plus2024"] = "plus_2024";
|
|
1414
|
+
BillingProduct2["Pro2024"] = "pro_2024";
|
|
1415
|
+
BillingProduct2["Enterprise2024"] = "enterprise_2024";
|
|
1416
|
+
BillingProduct2["Community2024"] = "community_2024";
|
|
1417
|
+
BillingProduct2["Free"] = "free";
|
|
1418
|
+
BillingProduct2["Plus"] = "plus";
|
|
1419
|
+
BillingProduct2["Pro"] = "pro";
|
|
1420
|
+
BillingProduct2["Internal"] = "internal";
|
|
1421
|
+
return BillingProduct2;
|
|
1422
|
+
})(BillingProduct || {});
|
|
1423
|
+
var OrganizationCommunityType = /* @__PURE__ */ ((OrganizationCommunityType2) => {
|
|
1424
|
+
OrganizationCommunityType2["NonProfit"] = "nonProfit";
|
|
1425
|
+
OrganizationCommunityType2["OpenSource"] = "openSource";
|
|
1426
|
+
OrganizationCommunityType2["Education"] = "education";
|
|
1427
|
+
return OrganizationCommunityType2;
|
|
1428
|
+
})(OrganizationCommunityType || {});
|
|
1429
|
+
var OrganizationUseCase = /* @__PURE__ */ ((OrganizationUseCase2) => {
|
|
1430
|
+
OrganizationUseCase2["InternalDocs"] = "internalDocs";
|
|
1431
|
+
OrganizationUseCase2["DocsSite"] = "docsSite";
|
|
1432
|
+
OrganizationUseCase2["AudienceControlledSite"] = "audienceControlledSite";
|
|
1433
|
+
OrganizationUseCase2["ProductDocs"] = "productDocs";
|
|
1434
|
+
OrganizationUseCase2["TeamKnowledgeBase"] = "teamKnowledgeBase";
|
|
1435
|
+
OrganizationUseCase2["DesignSystem"] = "designSystem";
|
|
1436
|
+
OrganizationUseCase2["OpenSourceDocs"] = "openSourceDocs";
|
|
1437
|
+
OrganizationUseCase2["Notes"] = "notes";
|
|
1438
|
+
OrganizationUseCase2["Other"] = "other";
|
|
1439
|
+
return OrganizationUseCase2;
|
|
1440
|
+
})(OrganizationUseCase || {});
|
|
1441
|
+
var OrganizationType = /* @__PURE__ */ ((OrganizationType2) => {
|
|
1442
|
+
OrganizationType2["Business"] = "business";
|
|
1443
|
+
OrganizationType2["Community"] = "community";
|
|
1444
|
+
return OrganizationType2;
|
|
1445
|
+
})(OrganizationType || {});
|
|
1387
1446
|
var IntegrationCategory = /* @__PURE__ */ ((IntegrationCategory2) => {
|
|
1388
1447
|
IntegrationCategory2["Analytics"] = "analytics";
|
|
1389
1448
|
IntegrationCategory2["Collaboration"] = "collaboration";
|
|
@@ -1450,83 +1509,6 @@ var ChangeRequestOrderBy = /* @__PURE__ */ ((ChangeRequestOrderBy2) => {
|
|
|
1450
1509
|
ChangeRequestOrderBy2["CreatedAt"] = "createdAt";
|
|
1451
1510
|
return ChangeRequestOrderBy2;
|
|
1452
1511
|
})(ChangeRequestOrderBy || {});
|
|
1453
|
-
var ContentReferenceRelation = /* @__PURE__ */ ((ContentReferenceRelation2) => {
|
|
1454
|
-
ContentReferenceRelation2["Reference"] = "reference";
|
|
1455
|
-
ContentReferenceRelation2["DependsOn"] = "dependsOn";
|
|
1456
|
-
return ContentReferenceRelation2;
|
|
1457
|
-
})(ContentReferenceRelation || {});
|
|
1458
|
-
var ContentReferenceStatus = /* @__PURE__ */ ((ContentReferenceStatus2) => {
|
|
1459
|
-
ContentReferenceStatus2["Ok"] = "ok";
|
|
1460
|
-
ContentReferenceStatus2["Broken"] = "broken";
|
|
1461
|
-
ContentReferenceStatus2["InApp"] = "in-app";
|
|
1462
|
-
return ContentReferenceStatus2;
|
|
1463
|
-
})(ContentReferenceStatus || {});
|
|
1464
|
-
var OpenAPISpecProcessingErrorCode = /* @__PURE__ */ ((OpenAPISpecProcessingErrorCode2) => {
|
|
1465
|
-
OpenAPISpecProcessingErrorCode2["FETCH_TIMEOUT"] = "FETCH_TIMEOUT";
|
|
1466
|
-
OpenAPISpecProcessingErrorCode2["FETCH_ERROR"] = "FETCH_ERROR";
|
|
1467
|
-
OpenAPISpecProcessingErrorCode2["PARSE_ERROR"] = "PARSE_ERROR";
|
|
1468
|
-
return OpenAPISpecProcessingErrorCode2;
|
|
1469
|
-
})(OpenAPISpecProcessingErrorCode || {});
|
|
1470
|
-
var OpenAPISpecProcessingState = /* @__PURE__ */ ((OpenAPISpecProcessingState2) => {
|
|
1471
|
-
OpenAPISpecProcessingState2["Pending"] = "pending";
|
|
1472
|
-
OpenAPISpecProcessingState2["Progress"] = "progress";
|
|
1473
|
-
OpenAPISpecProcessingState2["Complete"] = "complete";
|
|
1474
|
-
return OpenAPISpecProcessingState2;
|
|
1475
|
-
})(OpenAPISpecProcessingState || {});
|
|
1476
|
-
var BlockSource = /* @__PURE__ */ ((BlockSource2) => {
|
|
1477
|
-
BlockSource2["Backoffice"] = "backoffice";
|
|
1478
|
-
BlockSource2["External"] = "external";
|
|
1479
|
-
BlockSource2["Internal"] = "internal";
|
|
1480
|
-
return BlockSource2;
|
|
1481
|
-
})(BlockSource || {});
|
|
1482
|
-
var BillingTrialStatus = /* @__PURE__ */ ((BillingTrialStatus2) => {
|
|
1483
|
-
BillingTrialStatus2["Notapplicable"] = "notapplicable";
|
|
1484
|
-
BillingTrialStatus2["None"] = "none";
|
|
1485
|
-
BillingTrialStatus2["Active"] = "active";
|
|
1486
|
-
BillingTrialStatus2["Ended"] = "ended";
|
|
1487
|
-
BillingTrialStatus2["Expired"] = "expired";
|
|
1488
|
-
return BillingTrialStatus2;
|
|
1489
|
-
})(BillingTrialStatus || {});
|
|
1490
|
-
var BillingInterval = /* @__PURE__ */ ((BillingInterval2) => {
|
|
1491
|
-
BillingInterval2["Monthly"] = "monthly";
|
|
1492
|
-
BillingInterval2["Yearly"] = "yearly";
|
|
1493
|
-
return BillingInterval2;
|
|
1494
|
-
})(BillingInterval || {});
|
|
1495
|
-
var BillingProduct = /* @__PURE__ */ ((BillingProduct2) => {
|
|
1496
|
-
BillingProduct2["Free2024"] = "free_2024";
|
|
1497
|
-
BillingProduct2["Plus2024"] = "plus_2024";
|
|
1498
|
-
BillingProduct2["Pro2024"] = "pro_2024";
|
|
1499
|
-
BillingProduct2["Enterprise2024"] = "enterprise_2024";
|
|
1500
|
-
BillingProduct2["Community2024"] = "community_2024";
|
|
1501
|
-
BillingProduct2["Free"] = "free";
|
|
1502
|
-
BillingProduct2["Plus"] = "plus";
|
|
1503
|
-
BillingProduct2["Pro"] = "pro";
|
|
1504
|
-
BillingProduct2["Internal"] = "internal";
|
|
1505
|
-
return BillingProduct2;
|
|
1506
|
-
})(BillingProduct || {});
|
|
1507
|
-
var OrganizationCommunityType = /* @__PURE__ */ ((OrganizationCommunityType2) => {
|
|
1508
|
-
OrganizationCommunityType2["NonProfit"] = "nonProfit";
|
|
1509
|
-
OrganizationCommunityType2["OpenSource"] = "openSource";
|
|
1510
|
-
OrganizationCommunityType2["Education"] = "education";
|
|
1511
|
-
return OrganizationCommunityType2;
|
|
1512
|
-
})(OrganizationCommunityType || {});
|
|
1513
|
-
var OrganizationUseCase = /* @__PURE__ */ ((OrganizationUseCase2) => {
|
|
1514
|
-
OrganizationUseCase2["InternalDocs"] = "internalDocs";
|
|
1515
|
-
OrganizationUseCase2["DocsSite"] = "docsSite";
|
|
1516
|
-
OrganizationUseCase2["AudienceControlledSite"] = "audienceControlledSite";
|
|
1517
|
-
OrganizationUseCase2["ProductDocs"] = "productDocs";
|
|
1518
|
-
OrganizationUseCase2["TeamKnowledgeBase"] = "teamKnowledgeBase";
|
|
1519
|
-
OrganizationUseCase2["DesignSystem"] = "designSystem";
|
|
1520
|
-
OrganizationUseCase2["OpenSourceDocs"] = "openSourceDocs";
|
|
1521
|
-
OrganizationUseCase2["Notes"] = "notes";
|
|
1522
|
-
OrganizationUseCase2["Other"] = "other";
|
|
1523
|
-
return OrganizationUseCase2;
|
|
1524
|
-
})(OrganizationUseCase || {});
|
|
1525
|
-
var OrganizationType = /* @__PURE__ */ ((OrganizationType2) => {
|
|
1526
|
-
OrganizationType2["Business"] = "business";
|
|
1527
|
-
OrganizationType2["Community"] = "community";
|
|
1528
|
-
return OrganizationType2;
|
|
1529
|
-
})(OrganizationType || {});
|
|
1530
1512
|
var ChangeRequestStatus = /* @__PURE__ */ ((ChangeRequestStatus2) => {
|
|
1531
1513
|
ChangeRequestStatus2["Draft"] = "draft";
|
|
1532
1514
|
ChangeRequestStatus2["Open"] = "open";
|
|
@@ -2103,14 +2085,6 @@ var Api = class extends HttpClient {
|
|
|
2103
2085
|
format: "json",
|
|
2104
2086
|
...params
|
|
2105
2087
|
}),
|
|
2106
|
-
listSpaceFileBacklinks: (spaceId, fileId, query, params = {}) => this.request({
|
|
2107
|
-
path: `/spaces/${spaceId}/content/files/${fileId}/backlinks`,
|
|
2108
|
-
method: "GET",
|
|
2109
|
-
query,
|
|
2110
|
-
secure: true,
|
|
2111
|
-
format: "json",
|
|
2112
|
-
...params
|
|
2113
|
-
}),
|
|
2114
2088
|
getPageById: (spaceId, pageId, query, params = {}) => this.request({
|
|
2115
2089
|
path: `/spaces/${spaceId}/content/page/${pageId}`,
|
|
2116
2090
|
method: "GET",
|
|
@@ -2119,22 +2093,6 @@ var Api = class extends HttpClient {
|
|
|
2119
2093
|
format: "json",
|
|
2120
2094
|
...params
|
|
2121
2095
|
}),
|
|
2122
|
-
listPageLinksInSpace: (spaceId, pageId, query, params = {}) => this.request({
|
|
2123
|
-
path: `/spaces/${spaceId}/content/page/${pageId}/links`,
|
|
2124
|
-
method: "GET",
|
|
2125
|
-
query,
|
|
2126
|
-
secure: true,
|
|
2127
|
-
format: "json",
|
|
2128
|
-
...params
|
|
2129
|
-
}),
|
|
2130
|
-
listSpacePageBacklinks: (spaceId, pageId, query, params = {}) => this.request({
|
|
2131
|
-
path: `/spaces/${spaceId}/content/page/${pageId}/backlinks`,
|
|
2132
|
-
method: "GET",
|
|
2133
|
-
query,
|
|
2134
|
-
secure: true,
|
|
2135
|
-
format: "json",
|
|
2136
|
-
...params
|
|
2137
|
-
}),
|
|
2138
2096
|
listSpacePageMetaLinks: (spaceId, pageId, params = {}) => this.request({
|
|
2139
2097
|
path: `/spaces/${spaceId}/content/page/${pageId}/meta-links`,
|
|
2140
2098
|
method: "GET",
|
|
@@ -2303,14 +2261,6 @@ var Api = class extends HttpClient {
|
|
|
2303
2261
|
secure: true,
|
|
2304
2262
|
...params
|
|
2305
2263
|
}),
|
|
2306
|
-
listChangeRequestLinks: (spaceId, changeRequestId, query, params = {}) => this.request({
|
|
2307
|
-
path: `/spaces/${spaceId}/change-requests/${changeRequestId}/links`,
|
|
2308
|
-
method: "GET",
|
|
2309
|
-
query,
|
|
2310
|
-
secure: true,
|
|
2311
|
-
format: "json",
|
|
2312
|
-
...params
|
|
2313
|
-
}),
|
|
2314
2264
|
listCommentsInChangeRequest: (spaceId, changeRequestId, query, params = {}) => this.request({
|
|
2315
2265
|
path: `/spaces/${spaceId}/change-requests/${changeRequestId}/comments`,
|
|
2316
2266
|
method: "GET",
|
|
@@ -2440,14 +2390,6 @@ var Api = class extends HttpClient {
|
|
|
2440
2390
|
format: "json",
|
|
2441
2391
|
...params
|
|
2442
2392
|
}),
|
|
2443
|
-
listChangeRequestFileBacklinks: (spaceId, changeRequestId, fileId, query, params = {}) => this.request({
|
|
2444
|
-
path: `/spaces/${spaceId}/change-requests/${changeRequestId}/content/files/${fileId}/backlinks`,
|
|
2445
|
-
method: "GET",
|
|
2446
|
-
query,
|
|
2447
|
-
secure: true,
|
|
2448
|
-
format: "json",
|
|
2449
|
-
...params
|
|
2450
|
-
}),
|
|
2451
2393
|
getPageInChangeRequestById: (spaceId, changeRequestId, pageId, query, params = {}) => this.request({
|
|
2452
2394
|
path: `/spaces/${spaceId}/change-requests/${changeRequestId}/content/page/${pageId}`,
|
|
2453
2395
|
method: "GET",
|
|
@@ -2456,22 +2398,6 @@ var Api = class extends HttpClient {
|
|
|
2456
2398
|
format: "json",
|
|
2457
2399
|
...params
|
|
2458
2400
|
}),
|
|
2459
|
-
listPageLinksInChangeRequest: (spaceId, changeRequestId, pageId, query, params = {}) => this.request({
|
|
2460
|
-
path: `/spaces/${spaceId}/change-requests/${changeRequestId}/content/page/${pageId}/links`,
|
|
2461
|
-
method: "GET",
|
|
2462
|
-
query,
|
|
2463
|
-
secure: true,
|
|
2464
|
-
format: "json",
|
|
2465
|
-
...params
|
|
2466
|
-
}),
|
|
2467
|
-
listChangeRequestPageBacklinks: (spaceId, changeRequestId, pageId, query, params = {}) => this.request({
|
|
2468
|
-
path: `/spaces/${spaceId}/change-requests/${changeRequestId}/content/page/${pageId}/backlinks`,
|
|
2469
|
-
method: "GET",
|
|
2470
|
-
query,
|
|
2471
|
-
secure: true,
|
|
2472
|
-
format: "json",
|
|
2473
|
-
...params
|
|
2474
|
-
}),
|
|
2475
2401
|
listChangeRequestPageMetaLinks: (spaceId, changeRequestId, pageId, params = {}) => this.request({
|
|
2476
2402
|
path: `/spaces/${spaceId}/change-requests/${changeRequestId}/content/page/${pageId}/meta-links`,
|
|
2477
2403
|
method: "GET",
|
|
@@ -2724,14 +2650,6 @@ var Api = class extends HttpClient {
|
|
|
2724
2650
|
secure: true,
|
|
2725
2651
|
format: "json",
|
|
2726
2652
|
...params
|
|
2727
|
-
}),
|
|
2728
|
-
listSpaceLinks: (spaceId, query, params = {}) => this.request({
|
|
2729
|
-
path: `/spaces/${spaceId}/links`,
|
|
2730
|
-
method: "GET",
|
|
2731
|
-
query,
|
|
2732
|
-
secure: true,
|
|
2733
|
-
format: "json",
|
|
2734
|
-
...params
|
|
2735
2653
|
})
|
|
2736
2654
|
};
|
|
2737
2655
|
collections = {
|
|
@@ -3518,6 +3436,13 @@ var Api = class extends HttpClient {
|
|
|
3518
3436
|
format: "json",
|
|
3519
3437
|
...params
|
|
3520
3438
|
}),
|
|
3439
|
+
getLatestOpenApiSpecVersionContentRaw: (organizationId, specSlug, params = {}) => this.request({
|
|
3440
|
+
path: `/orgs/${organizationId}/openapi/${specSlug}/versions/latest/content/raw`,
|
|
3441
|
+
method: "GET",
|
|
3442
|
+
secure: true,
|
|
3443
|
+
format: "json",
|
|
3444
|
+
...params
|
|
3445
|
+
}),
|
|
3521
3446
|
getOpenApiSpecVersionById: (organizationId, specSlug, versionId, params = {}) => this.request({
|
|
3522
3447
|
path: `/orgs/${organizationId}/openapi/${specSlug}/versions/${versionId}`,
|
|
3523
3448
|
method: "GET",
|
|
@@ -4127,6 +4052,13 @@ var Api = class extends HttpClient {
|
|
|
4127
4052
|
secure: true,
|
|
4128
4053
|
...params
|
|
4129
4054
|
}),
|
|
4055
|
+
testSiteContextConnection: (organizationId, siteId, siteContextConnectionId, params = {}) => this.request({
|
|
4056
|
+
path: `/orgs/${organizationId}/sites/${siteId}/context-connections/${siteContextConnectionId}/test`,
|
|
4057
|
+
method: "POST",
|
|
4058
|
+
secure: true,
|
|
4059
|
+
format: "json",
|
|
4060
|
+
...params
|
|
4061
|
+
}),
|
|
4130
4062
|
listSiteTopics: (organizationId, siteId, query, params = {}) => this.request({
|
|
4131
4063
|
path: `/orgs/${organizationId}/sites/${siteId}/topics`,
|
|
4132
4064
|
method: "GET",
|
|
@@ -4368,19 +4300,15 @@ var Api = class extends HttpClient {
|
|
|
4368
4300
|
format: "json",
|
|
4369
4301
|
...params
|
|
4370
4302
|
}),
|
|
4371
|
-
createSiteStyleguideById: (organizationId, siteId, params = {}) => this.request({
|
|
4303
|
+
createSiteStyleguideById: (organizationId, siteId, data, params = {}) => this.request({
|
|
4372
4304
|
path: `/orgs/${organizationId}/sites/${siteId}/styleguide`,
|
|
4373
4305
|
method: "POST",
|
|
4306
|
+
body: data,
|
|
4374
4307
|
secure: true,
|
|
4308
|
+
type: "application/json" /* Json */,
|
|
4375
4309
|
format: "json",
|
|
4376
4310
|
...params
|
|
4377
4311
|
}),
|
|
4378
|
-
deleteSiteStyleguideById: (organizationId, siteId, params = {}) => this.request({
|
|
4379
|
-
path: `/orgs/${organizationId}/sites/${siteId}/styleguide`,
|
|
4380
|
-
method: "DELETE",
|
|
4381
|
-
secure: true,
|
|
4382
|
-
...params
|
|
4383
|
-
}),
|
|
4384
4312
|
trackEventsInSiteById: (organizationId, siteId, data, params = {}) => this.request({
|
|
4385
4313
|
path: `/orgs/${organizationId}/sites/${siteId}/insights/events`,
|
|
4386
4314
|
method: "POST",
|
|
@@ -4759,6 +4687,20 @@ var CHANGE_REQUEST_STATUS_ENUM = ["draft", "open", "archived", "merged"];
|
|
|
4759
4687
|
var CHANGE_REQUEST_SUBJECT_MAX_LENGTH = 100;
|
|
4760
4688
|
var CHANGE_REQUEST_SUBJECT_MIN_LENGTH = 0;
|
|
4761
4689
|
var CHANGE_REQUEST_LINK_TITLE_MAX_LENGTH = 128;
|
|
4690
|
+
var CHANGE_REQUEST_ORDER_BY_ENUM = ["updatedAt", "createdAt"];
|
|
4691
|
+
var CHANGE_REQUEST_REVIEW_STATUS_ENUM = ["changes-requested", "approved"];
|
|
4692
|
+
var REVISION_PAGE_TYPE_ENUM = ["document", "group", "link", "computed"];
|
|
4693
|
+
var REVISION_PAGE_LAYOUT_PRESET_ENUM = ["docs", "editorial", "landing"];
|
|
4694
|
+
var INTEGRATION_TITLE_MAX_LENGTH = 30;
|
|
4695
|
+
var INTEGRATION_TITLE_MIN_LENGTH = 2;
|
|
4696
|
+
var INTEGRATION_DESCRIPTION_MAX_LENGTH = 100;
|
|
4697
|
+
var INTEGRATION_SUMMARY_MAX_LENGTH = 2048;
|
|
4698
|
+
var INTEGRATION_TARGET_ENUM = ["all", "site", "space", "organization"];
|
|
4699
|
+
var INTEGRATION_VISIBILITY_ENUM = ["public", "private", "unlisted"];
|
|
4700
|
+
var 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:visitor:claims", "site:adaptive:read", "site:adaptive:write", "conversations:ingest", "openapi:read", "openapi:write"];
|
|
4701
|
+
var INTEGRATION_CATEGORY_ENUM = ["analytics", "collaboration", "content", "gitsync", "marketing", "visitor-auth", "other"];
|
|
4702
|
+
var INTEGRATION_PROPERTY_TITLE_MAX_LENGTH = 50;
|
|
4703
|
+
var INTEGRATION_PROPERTY_TITLE_MIN_LENGTH = 2;
|
|
4762
4704
|
var ORGANIZATION_TITLE_MAX_LENGTH = 255;
|
|
4763
4705
|
var ORGANIZATION_TITLE_MIN_LENGTH = 2;
|
|
4764
4706
|
var ORGANIZATION_TITLE_PATTERN = "\\S.*\\S";
|
|
@@ -4776,27 +4718,6 @@ var BLOCK_REASON_MIN_LENGTH = 1;
|
|
|
4776
4718
|
var COLLECTION_TITLE_MAX_LENGTH = 50;
|
|
4777
4719
|
var COLLECTION_DESCRIPTION_MAX_LENGTH = 100;
|
|
4778
4720
|
var COLLECTION_DESCRIPTION_MIN_LENGTH = 0;
|
|
4779
|
-
var OPEN_APISPEC_SLUG_MAX_LENGTH = 100;
|
|
4780
|
-
var OPEN_APISPEC_SLUG_MIN_LENGTH = 1;
|
|
4781
|
-
var OPEN_APISPEC_SLUG_PATTERN = "^[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*$";
|
|
4782
|
-
var OPEN_APISPEC_PROCESSING_STATE_ENUM = ["pending", "progress", "complete"];
|
|
4783
|
-
var OPEN_APISPEC_PROCESSING_ERROR_CODE_ENUM = ["FETCH_TIMEOUT", "FETCH_ERROR", "PARSE_ERROR"];
|
|
4784
|
-
var CONTENT_REFERENCE_STATUS_ENUM = ["ok", "broken", "in-app"];
|
|
4785
|
-
var CONTENT_REFERENCE_RELATION_ENUM = ["reference", "dependsOn"];
|
|
4786
|
-
var CHANGE_REQUEST_ORDER_BY_ENUM = ["updatedAt", "createdAt"];
|
|
4787
|
-
var CHANGE_REQUEST_REVIEW_STATUS_ENUM = ["changes-requested", "approved"];
|
|
4788
|
-
var REVISION_PAGE_TYPE_ENUM = ["document", "group", "link", "computed"];
|
|
4789
|
-
var REVISION_PAGE_LAYOUT_PRESET_ENUM = ["docs", "editorial", "landing"];
|
|
4790
|
-
var INTEGRATION_TITLE_MAX_LENGTH = 30;
|
|
4791
|
-
var INTEGRATION_TITLE_MIN_LENGTH = 2;
|
|
4792
|
-
var INTEGRATION_DESCRIPTION_MAX_LENGTH = 100;
|
|
4793
|
-
var INTEGRATION_SUMMARY_MAX_LENGTH = 2048;
|
|
4794
|
-
var INTEGRATION_TARGET_ENUM = ["all", "site", "space", "organization"];
|
|
4795
|
-
var INTEGRATION_VISIBILITY_ENUM = ["public", "private", "unlisted"];
|
|
4796
|
-
var 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:visitor:claims", "site:adaptive:read", "site:adaptive:write", "conversations:ingest", "openapi:read", "openapi:write"];
|
|
4797
|
-
var INTEGRATION_CATEGORY_ENUM = ["analytics", "collaboration", "content", "gitsync", "marketing", "visitor-auth", "other"];
|
|
4798
|
-
var INTEGRATION_PROPERTY_TITLE_MAX_LENGTH = 50;
|
|
4799
|
-
var INTEGRATION_PROPERTY_TITLE_MIN_LENGTH = 2;
|
|
4800
4721
|
var INTEGRATION_INSTALLATION_STATUS_ENUM = ["active", "pending", "paused"];
|
|
4801
4722
|
var INTEGRATION_INSTALLATION_SPACE_SELECTION_ENUM = ["all", "selected"];
|
|
4802
4723
|
var INTEGRATION_INSTALLATION_SITE_SELECTION_ENUM = ["all", "selected"];
|
|
@@ -4811,7 +4732,6 @@ var SITE_BASENAME_MIN_LENGTH = 1;
|
|
|
4811
4732
|
var SITE_PROXY_ORIGIN_MAX_LENGTH = 512;
|
|
4812
4733
|
var SITE_PROXY_ORIGIN_PATTERN = "^([\\w-]+\\.)*[\\w-]+\\.[a-zA-Z]{2,}(\\/[\\w-]+)+$";
|
|
4813
4734
|
var SITE_VISIBILITY_ENUM = ["public", "unlisted", "share-link", "visitor-auth"];
|
|
4814
|
-
var SITE_PERMISSIONS_MODEL_ENUM = ["legacy", "site"];
|
|
4815
4735
|
var SITE_ADS_TOPIC_ENUM = ["webdev", "crypto"];
|
|
4816
4736
|
var 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-connections", "sites-channels", "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"];
|
|
4817
4737
|
var SITE_CUSTOMIZATION_FEATURE_ENUM = ["header-logo", "header-primary-link", "theme-preset", "premium-fonts", "custom-icons", "footer-logo", "footer-links", "footer-copyright", "semantic-colors"];
|
|
@@ -4836,6 +4756,11 @@ var SAMLPROVIDER_LABEL_MIN_LENGTH = 1;
|
|
|
4836
4756
|
var SAMLPROVIDER_ENTITY_ID_MAX_LENGTH = 1024;
|
|
4837
4757
|
var SAMLPROVIDER_CERTIFICATE_MAX_LENGTH = 1e4;
|
|
4838
4758
|
var SAMLPROVIDER_STATUS_ENUM = ["active", "pending"];
|
|
4759
|
+
var OPEN_APISPEC_SLUG_MAX_LENGTH = 100;
|
|
4760
|
+
var OPEN_APISPEC_SLUG_MIN_LENGTH = 1;
|
|
4761
|
+
var OPEN_APISPEC_SLUG_PATTERN = "^[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*$";
|
|
4762
|
+
var OPEN_APISPEC_PROCESSING_STATE_ENUM = ["pending", "progress", "complete"];
|
|
4763
|
+
var OPEN_APISPEC_PROCESSING_ERROR_CODE_ENUM = ["FETCH_TIMEOUT", "FETCH_ERROR", "PARSE_ERROR"];
|
|
4839
4764
|
var TRANSLATION_STATUS_ENUM = ["pending", "running", "completed"];
|
|
4840
4765
|
var STORAGE_UPLOAD_KIND_ENUM = ["customization_font", "import_file"];
|
|
4841
4766
|
var FONT_FAMILY_MAX_LENGTH = 50;
|
|
@@ -4877,13 +4802,15 @@ var CONTEXT_RECORD_TITLE_MAX_LENGTH = 256;
|
|
|
4877
4802
|
var CONTEXT_RECORD_TITLE_MIN_LENGTH = 1;
|
|
4878
4803
|
var CONTEXT_RECORD_DESCRIPTION_MAX_LENGTH = 512;
|
|
4879
4804
|
var SITE_SCAN_STATUS_ENUM = ["pending", "running", "done", "failed"];
|
|
4880
|
-
var SITE_FINDING_STATUS_ENUM = ["open", "done", "canceled"];
|
|
4881
|
-
var SITE_FINDING_TYPE_ENUM = ["content-outdated", "
|
|
4805
|
+
var SITE_FINDING_STATUS_ENUM = ["candidate", "open", "done", "canceled"];
|
|
4806
|
+
var SITE_FINDING_TYPE_ENUM = ["content-outdated", "content-incorrect", "content-gap", "other"];
|
|
4882
4807
|
var SITE_FINDING_SEVERITY_ENUM = ["low", "medium", "high"];
|
|
4883
4808
|
var SITE_FINDING_TITLE_MAX_LENGTH = 256;
|
|
4884
4809
|
var SITE_QUESTION_TYPE_ENUM = ["exploring", "how-to", "troubleshooting", "reference", "unknown"];
|
|
4885
4810
|
var CONTEXT_CONNECTION_LABEL_MAX_LENGTH = 128;
|
|
4886
4811
|
var CONTEXT_CONNECTION_LABEL_MIN_LENGTH = 0;
|
|
4812
|
+
var CONTEXT_CONNECTION_FILTER_MAX_LENGTH = 1024;
|
|
4813
|
+
var CONTEXT_CONNECTION_FILTER_MIN_LENGTH = 0;
|
|
4887
4814
|
var CONTEXT_CONNECTION_STATUS_ENUM = ["pending", "syncing", "succeeded", "failed"];
|
|
4888
4815
|
var CONTEXT_SEARCH_BOOST_ENUM = ["x0.8", "x1.0", "x1.2"];
|
|
4889
4816
|
var YOUTUBE_CHANNEL_ID_PATTERN = "^UC[A-Za-z0-9_-]{22}$";
|
|
@@ -4904,7 +4831,7 @@ var SITE_INSIGHTS_LINK_POSITION_ENUM = ["announcement", "header", "footer", "sid
|
|
|
4904
4831
|
var SITE_INSIGHTS_TRADEMARK_PLACEMENT_ENUM = ["sidebar", "ad", "footer", "pdf", "embed"];
|
|
4905
4832
|
var SITE_INSIGHTS_AD_PLACEMENT_ENUM = ["aside"];
|
|
4906
4833
|
var SITE_INSIGHTS_LLMSVARIANT_ENUM = ["standard", "full"];
|
|
4907
|
-
var SITE_INSIGHTS_EVENT_TYPE_ENUM = ["page_view", "page_markdown_request", "search_open", "search_type_query", "search_open_result", "page_post_feedback", "page_post_feedback_comment", "ask_question", "ask_view", "ask_rate_response", "link_click", "api_client_open", "api_client_request", "ad_click", "ad_display", "trademark_click", "llms_request", "mcp_request", "rss_request"];
|
|
4834
|
+
var SITE_INSIGHTS_EVENT_TYPE_ENUM = ["page_view", "page_markdown_request", "search_open", "search_type_query", "search_open_result", "page_post_feedback", "page_post_feedback_comment", "agent_feedback", "ask_question", "ask_view", "ask_rate_response", "link_click", "api_client_open", "api_client_request", "ad_click", "ad_display", "trademark_click", "llms_request", "mcp_request", "rss_request"];
|
|
4908
4835
|
var SITE_INSIGHTS_VISITOR_BROWSER_ENUM = ["chrome", "firefox", "safari", "edge", "ie", "opera", "unknown"];
|
|
4909
4836
|
var SITE_INSIGHTS_VISITOR_DEVICE_ENUM = ["desktop", "tablet", "mobile", "unknown"];
|
|
4910
4837
|
var SITE_INSIGHTS_VISITOR_OS_ENUM = ["windows", "macos", "linux", "android", "ios", "unknown"];
|
|
@@ -5059,9 +4986,9 @@ var GitBookAPI = class extends Api {
|
|
|
5059
4986
|
COLLECTION_TITLE_MAX_LENGTH,
|
|
5060
4987
|
COLOR_PATTERN,
|
|
5061
4988
|
CONTENT_KIT_ICON_ENUM,
|
|
5062
|
-
CONTENT_REFERENCE_RELATION_ENUM,
|
|
5063
|
-
CONTENT_REFERENCE_STATUS_ENUM,
|
|
5064
4989
|
CONTENT_VISIBILITY_ENUM,
|
|
4990
|
+
CONTEXT_CONNECTION_FILTER_MAX_LENGTH,
|
|
4991
|
+
CONTEXT_CONNECTION_FILTER_MIN_LENGTH,
|
|
5065
4992
|
CONTEXT_CONNECTION_LABEL_MAX_LENGTH,
|
|
5066
4993
|
CONTEXT_CONNECTION_LABEL_MIN_LENGTH,
|
|
5067
4994
|
CONTEXT_CONNECTION_STATUS_ENUM,
|
|
@@ -5104,8 +5031,6 @@ var GitBookAPI = class extends Api {
|
|
|
5104
5031
|
CloudflareHostnameTLSStatus,
|
|
5105
5032
|
CloudflareHostnameTLSValidationMethod,
|
|
5106
5033
|
ContentKitIcon,
|
|
5107
|
-
ContentReferenceRelation,
|
|
5108
|
-
ContentReferenceStatus,
|
|
5109
5034
|
ContentType,
|
|
5110
5035
|
ContentVisibility,
|
|
5111
5036
|
ContextConnectionStatus,
|
|
@@ -5265,7 +5190,6 @@ var GitBookAPI = class extends Api {
|
|
|
5265
5190
|
SITE_MCP_SERVER_NAME_MAX_LENGTH,
|
|
5266
5191
|
SITE_MCP_SERVER_NAME_MIN_LENGTH,
|
|
5267
5192
|
SITE_MCP_SERVER_TRANSPORT_ENUM,
|
|
5268
|
-
SITE_PERMISSIONS_MODEL_ENUM,
|
|
5269
5193
|
SITE_PROXY_ORIGIN_MAX_LENGTH,
|
|
5270
5194
|
SITE_PROXY_ORIGIN_PATTERN,
|
|
5271
5195
|
SITE_QUESTION_ANSWER_HELPFULNESS_ENUM,
|
|
@@ -5325,7 +5249,6 @@ var GitBookAPI = class extends Api {
|
|
|
5325
5249
|
SiteInsightsVisitorDevice,
|
|
5326
5250
|
SiteInsightsVisitorOS,
|
|
5327
5251
|
SiteMcpServerTransport,
|
|
5328
|
-
SitePermissionsModel,
|
|
5329
5252
|
SiteQuestionAnswerHelpfulness,
|
|
5330
5253
|
SiteQuestionAnswerRelevance,
|
|
5331
5254
|
SiteQuestionAnswerResolution,
|