@gitbook/api 0.187.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.
@@ -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;
@@ -146,7 +143,7 @@ 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
145
  export declare const SITE_FINDING_STATUS_ENUM: ["candidate", "open", "done", "canceled"];
149
- export declare const SITE_FINDING_TYPE_ENUM: ["content-outdated", "incoherence", "content-gap", "other"];
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"];
package/dist/index.cjs CHANGED
@@ -226,8 +226,6 @@ __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,
232
230
  CONTEXT_CONNECTION_FILTER_MAX_LENGTH: () => CONTEXT_CONNECTION_FILTER_MAX_LENGTH,
233
231
  CONTEXT_CONNECTION_FILTER_MIN_LENGTH: () => CONTEXT_CONNECTION_FILTER_MIN_LENGTH,
@@ -273,8 +271,6 @@ __export(src_exports, {
273
271
  CloudflareHostnameTLSStatus: () => CloudflareHostnameTLSStatus,
274
272
  CloudflareHostnameTLSValidationMethod: () => CloudflareHostnameTLSValidationMethod,
275
273
  ContentKitIcon: () => ContentKitIcon,
276
- ContentReferenceRelation: () => ContentReferenceRelation,
277
- ContentReferenceStatus: () => ContentReferenceStatus,
278
274
  ContentType: () => ContentType,
279
275
  ContentVisibility: () => ContentVisibility,
280
276
  ContextConnectionStatus: () => ContextConnectionStatus,
@@ -434,7 +430,6 @@ __export(src_exports, {
434
430
  SITE_MCP_SERVER_NAME_MAX_LENGTH: () => SITE_MCP_SERVER_NAME_MAX_LENGTH,
435
431
  SITE_MCP_SERVER_NAME_MIN_LENGTH: () => SITE_MCP_SERVER_NAME_MIN_LENGTH,
436
432
  SITE_MCP_SERVER_TRANSPORT_ENUM: () => SITE_MCP_SERVER_TRANSPORT_ENUM,
437
- SITE_PERMISSIONS_MODEL_ENUM: () => SITE_PERMISSIONS_MODEL_ENUM,
438
433
  SITE_PROXY_ORIGIN_MAX_LENGTH: () => SITE_PROXY_ORIGIN_MAX_LENGTH,
439
434
  SITE_PROXY_ORIGIN_PATTERN: () => SITE_PROXY_ORIGIN_PATTERN,
440
435
  SITE_QUESTION_ANSWER_HELPFULNESS_ENUM: () => SITE_QUESTION_ANSWER_HELPFULNESS_ENUM,
@@ -494,7 +489,6 @@ __export(src_exports, {
494
489
  SiteInsightsVisitorDevice: () => SiteInsightsVisitorDevice,
495
490
  SiteInsightsVisitorOS: () => SiteInsightsVisitorOS,
496
491
  SiteMcpServerTransport: () => SiteMcpServerTransport,
497
- SitePermissionsModel: () => SitePermissionsModel,
498
492
  SiteQuestionAnswerHelpfulness: () => SiteQuestionAnswerHelpfulness,
499
493
  SiteQuestionAnswerRelevance: () => SiteQuestionAnswerRelevance,
500
494
  SiteQuestionAnswerResolution: () => SiteQuestionAnswerResolution,
@@ -526,7 +520,7 @@ module.exports = __toCommonJS(src_exports);
526
520
 
527
521
  // package.json
528
522
  var name = "@gitbook/api";
529
- var version = "0.187.0";
523
+ var version = "0.188.0";
530
524
 
531
525
  // src/client.ts
532
526
  var import_event_iterator = __toESM(require_node(), 1);
@@ -996,7 +990,7 @@ var SiteFindingSeverity = /* @__PURE__ */ ((SiteFindingSeverity2) => {
996
990
  })(SiteFindingSeverity || {});
997
991
  var SiteFindingType = /* @__PURE__ */ ((SiteFindingType2) => {
998
992
  SiteFindingType2["ContentOutdated"] = "content-outdated";
999
- SiteFindingType2["Incoherence"] = "incoherence";
993
+ SiteFindingType2["ContentIncorrect"] = "content-incorrect";
1000
994
  SiteFindingType2["ContentGap"] = "content-gap";
1001
995
  SiteFindingType2["Other"] = "other";
1002
996
  return SiteFindingType2;
@@ -1248,6 +1242,18 @@ var TranslationStatus = /* @__PURE__ */ ((TranslationStatus2) => {
1248
1242
  TranslationStatus2["Completed"] = "completed";
1249
1243
  return TranslationStatus2;
1250
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 || {});
1251
1257
  var SAMLProviderStatus = /* @__PURE__ */ ((SAMLProviderStatus2) => {
1252
1258
  SAMLProviderStatus2["Active"] = "active";
1253
1259
  SAMLProviderStatus2["Pending"] = "pending";
@@ -1345,11 +1351,6 @@ var SiteAdsTopic = /* @__PURE__ */ ((SiteAdsTopic2) => {
1345
1351
  SiteAdsTopic2["Crypto"] = "crypto";
1346
1352
  return SiteAdsTopic2;
1347
1353
  })(SiteAdsTopic || {});
1348
- var SitePermissionsModel = /* @__PURE__ */ ((SitePermissionsModel2) => {
1349
- SitePermissionsModel2["Legacy"] = "legacy";
1350
- SitePermissionsModel2["Site"] = "site";
1351
- return SitePermissionsModel2;
1352
- })(SitePermissionsModel || {});
1353
1354
  var SiteVisibility = /* @__PURE__ */ ((SiteVisibility2) => {
1354
1355
  SiteVisibility2["Public"] = "public";
1355
1356
  SiteVisibility2["Unlisted"] = "unlisted";
@@ -1388,6 +1389,60 @@ var IntegrationInstallationStatus = /* @__PURE__ */ ((IntegrationInstallationSta
1388
1389
  IntegrationInstallationStatus2["Paused"] = "paused";
1389
1390
  return IntegrationInstallationStatus2;
1390
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 || {});
1391
1446
  var IntegrationCategory = /* @__PURE__ */ ((IntegrationCategory2) => {
1392
1447
  IntegrationCategory2["Analytics"] = "analytics";
1393
1448
  IntegrationCategory2["Collaboration"] = "collaboration";
@@ -1454,83 +1509,6 @@ var ChangeRequestOrderBy = /* @__PURE__ */ ((ChangeRequestOrderBy2) => {
1454
1509
  ChangeRequestOrderBy2["CreatedAt"] = "createdAt";
1455
1510
  return ChangeRequestOrderBy2;
1456
1511
  })(ChangeRequestOrderBy || {});
1457
- var ContentReferenceRelation = /* @__PURE__ */ ((ContentReferenceRelation2) => {
1458
- ContentReferenceRelation2["Reference"] = "reference";
1459
- ContentReferenceRelation2["DependsOn"] = "dependsOn";
1460
- return ContentReferenceRelation2;
1461
- })(ContentReferenceRelation || {});
1462
- var ContentReferenceStatus = /* @__PURE__ */ ((ContentReferenceStatus2) => {
1463
- ContentReferenceStatus2["Ok"] = "ok";
1464
- ContentReferenceStatus2["Broken"] = "broken";
1465
- ContentReferenceStatus2["InApp"] = "in-app";
1466
- return ContentReferenceStatus2;
1467
- })(ContentReferenceStatus || {});
1468
- var OpenAPISpecProcessingErrorCode = /* @__PURE__ */ ((OpenAPISpecProcessingErrorCode2) => {
1469
- OpenAPISpecProcessingErrorCode2["FETCH_TIMEOUT"] = "FETCH_TIMEOUT";
1470
- OpenAPISpecProcessingErrorCode2["FETCH_ERROR"] = "FETCH_ERROR";
1471
- OpenAPISpecProcessingErrorCode2["PARSE_ERROR"] = "PARSE_ERROR";
1472
- return OpenAPISpecProcessingErrorCode2;
1473
- })(OpenAPISpecProcessingErrorCode || {});
1474
- var OpenAPISpecProcessingState = /* @__PURE__ */ ((OpenAPISpecProcessingState2) => {
1475
- OpenAPISpecProcessingState2["Pending"] = "pending";
1476
- OpenAPISpecProcessingState2["Progress"] = "progress";
1477
- OpenAPISpecProcessingState2["Complete"] = "complete";
1478
- return OpenAPISpecProcessingState2;
1479
- })(OpenAPISpecProcessingState || {});
1480
- var BlockSource = /* @__PURE__ */ ((BlockSource2) => {
1481
- BlockSource2["Backoffice"] = "backoffice";
1482
- BlockSource2["External"] = "external";
1483
- BlockSource2["Internal"] = "internal";
1484
- return BlockSource2;
1485
- })(BlockSource || {});
1486
- var BillingTrialStatus = /* @__PURE__ */ ((BillingTrialStatus2) => {
1487
- BillingTrialStatus2["Notapplicable"] = "notapplicable";
1488
- BillingTrialStatus2["None"] = "none";
1489
- BillingTrialStatus2["Active"] = "active";
1490
- BillingTrialStatus2["Ended"] = "ended";
1491
- BillingTrialStatus2["Expired"] = "expired";
1492
- return BillingTrialStatus2;
1493
- })(BillingTrialStatus || {});
1494
- var BillingInterval = /* @__PURE__ */ ((BillingInterval2) => {
1495
- BillingInterval2["Monthly"] = "monthly";
1496
- BillingInterval2["Yearly"] = "yearly";
1497
- return BillingInterval2;
1498
- })(BillingInterval || {});
1499
- var BillingProduct = /* @__PURE__ */ ((BillingProduct2) => {
1500
- BillingProduct2["Free2024"] = "free_2024";
1501
- BillingProduct2["Plus2024"] = "plus_2024";
1502
- BillingProduct2["Pro2024"] = "pro_2024";
1503
- BillingProduct2["Enterprise2024"] = "enterprise_2024";
1504
- BillingProduct2["Community2024"] = "community_2024";
1505
- BillingProduct2["Free"] = "free";
1506
- BillingProduct2["Plus"] = "plus";
1507
- BillingProduct2["Pro"] = "pro";
1508
- BillingProduct2["Internal"] = "internal";
1509
- return BillingProduct2;
1510
- })(BillingProduct || {});
1511
- var OrganizationCommunityType = /* @__PURE__ */ ((OrganizationCommunityType2) => {
1512
- OrganizationCommunityType2["NonProfit"] = "nonProfit";
1513
- OrganizationCommunityType2["OpenSource"] = "openSource";
1514
- OrganizationCommunityType2["Education"] = "education";
1515
- return OrganizationCommunityType2;
1516
- })(OrganizationCommunityType || {});
1517
- var OrganizationUseCase = /* @__PURE__ */ ((OrganizationUseCase2) => {
1518
- OrganizationUseCase2["InternalDocs"] = "internalDocs";
1519
- OrganizationUseCase2["DocsSite"] = "docsSite";
1520
- OrganizationUseCase2["AudienceControlledSite"] = "audienceControlledSite";
1521
- OrganizationUseCase2["ProductDocs"] = "productDocs";
1522
- OrganizationUseCase2["TeamKnowledgeBase"] = "teamKnowledgeBase";
1523
- OrganizationUseCase2["DesignSystem"] = "designSystem";
1524
- OrganizationUseCase2["OpenSourceDocs"] = "openSourceDocs";
1525
- OrganizationUseCase2["Notes"] = "notes";
1526
- OrganizationUseCase2["Other"] = "other";
1527
- return OrganizationUseCase2;
1528
- })(OrganizationUseCase || {});
1529
- var OrganizationType = /* @__PURE__ */ ((OrganizationType2) => {
1530
- OrganizationType2["Business"] = "business";
1531
- OrganizationType2["Community"] = "community";
1532
- return OrganizationType2;
1533
- })(OrganizationType || {});
1534
1512
  var ChangeRequestStatus = /* @__PURE__ */ ((ChangeRequestStatus2) => {
1535
1513
  ChangeRequestStatus2["Draft"] = "draft";
1536
1514
  ChangeRequestStatus2["Open"] = "open";
@@ -2107,14 +2085,6 @@ var Api = class extends HttpClient {
2107
2085
  format: "json",
2108
2086
  ...params
2109
2087
  }),
2110
- listSpaceFileBacklinks: (spaceId, fileId, query, params = {}) => this.request({
2111
- path: `/spaces/${spaceId}/content/files/${fileId}/backlinks`,
2112
- method: "GET",
2113
- query,
2114
- secure: true,
2115
- format: "json",
2116
- ...params
2117
- }),
2118
2088
  getPageById: (spaceId, pageId, query, params = {}) => this.request({
2119
2089
  path: `/spaces/${spaceId}/content/page/${pageId}`,
2120
2090
  method: "GET",
@@ -2123,22 +2093,6 @@ var Api = class extends HttpClient {
2123
2093
  format: "json",
2124
2094
  ...params
2125
2095
  }),
2126
- listPageLinksInSpace: (spaceId, pageId, query, params = {}) => this.request({
2127
- path: `/spaces/${spaceId}/content/page/${pageId}/links`,
2128
- method: "GET",
2129
- query,
2130
- secure: true,
2131
- format: "json",
2132
- ...params
2133
- }),
2134
- listSpacePageBacklinks: (spaceId, pageId, query, params = {}) => this.request({
2135
- path: `/spaces/${spaceId}/content/page/${pageId}/backlinks`,
2136
- method: "GET",
2137
- query,
2138
- secure: true,
2139
- format: "json",
2140
- ...params
2141
- }),
2142
2096
  listSpacePageMetaLinks: (spaceId, pageId, params = {}) => this.request({
2143
2097
  path: `/spaces/${spaceId}/content/page/${pageId}/meta-links`,
2144
2098
  method: "GET",
@@ -2307,14 +2261,6 @@ var Api = class extends HttpClient {
2307
2261
  secure: true,
2308
2262
  ...params
2309
2263
  }),
2310
- listChangeRequestLinks: (spaceId, changeRequestId, query, params = {}) => this.request({
2311
- path: `/spaces/${spaceId}/change-requests/${changeRequestId}/links`,
2312
- method: "GET",
2313
- query,
2314
- secure: true,
2315
- format: "json",
2316
- ...params
2317
- }),
2318
2264
  listCommentsInChangeRequest: (spaceId, changeRequestId, query, params = {}) => this.request({
2319
2265
  path: `/spaces/${spaceId}/change-requests/${changeRequestId}/comments`,
2320
2266
  method: "GET",
@@ -2444,14 +2390,6 @@ var Api = class extends HttpClient {
2444
2390
  format: "json",
2445
2391
  ...params
2446
2392
  }),
2447
- listChangeRequestFileBacklinks: (spaceId, changeRequestId, fileId, query, params = {}) => this.request({
2448
- path: `/spaces/${spaceId}/change-requests/${changeRequestId}/content/files/${fileId}/backlinks`,
2449
- method: "GET",
2450
- query,
2451
- secure: true,
2452
- format: "json",
2453
- ...params
2454
- }),
2455
2393
  getPageInChangeRequestById: (spaceId, changeRequestId, pageId, query, params = {}) => this.request({
2456
2394
  path: `/spaces/${spaceId}/change-requests/${changeRequestId}/content/page/${pageId}`,
2457
2395
  method: "GET",
@@ -2460,22 +2398,6 @@ var Api = class extends HttpClient {
2460
2398
  format: "json",
2461
2399
  ...params
2462
2400
  }),
2463
- listPageLinksInChangeRequest: (spaceId, changeRequestId, pageId, query, params = {}) => this.request({
2464
- path: `/spaces/${spaceId}/change-requests/${changeRequestId}/content/page/${pageId}/links`,
2465
- method: "GET",
2466
- query,
2467
- secure: true,
2468
- format: "json",
2469
- ...params
2470
- }),
2471
- listChangeRequestPageBacklinks: (spaceId, changeRequestId, pageId, query, params = {}) => this.request({
2472
- path: `/spaces/${spaceId}/change-requests/${changeRequestId}/content/page/${pageId}/backlinks`,
2473
- method: "GET",
2474
- query,
2475
- secure: true,
2476
- format: "json",
2477
- ...params
2478
- }),
2479
2401
  listChangeRequestPageMetaLinks: (spaceId, changeRequestId, pageId, params = {}) => this.request({
2480
2402
  path: `/spaces/${spaceId}/change-requests/${changeRequestId}/content/page/${pageId}/meta-links`,
2481
2403
  method: "GET",
@@ -2728,14 +2650,6 @@ var Api = class extends HttpClient {
2728
2650
  secure: true,
2729
2651
  format: "json",
2730
2652
  ...params
2731
- }),
2732
- listSpaceLinks: (spaceId, query, params = {}) => this.request({
2733
- path: `/spaces/${spaceId}/links`,
2734
- method: "GET",
2735
- query,
2736
- secure: true,
2737
- format: "json",
2738
- ...params
2739
2653
  })
2740
2654
  };
2741
2655
  collections = {
@@ -3522,6 +3436,13 @@ var Api = class extends HttpClient {
3522
3436
  format: "json",
3523
3437
  ...params
3524
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
+ }),
3525
3446
  getOpenApiSpecVersionById: (organizationId, specSlug, versionId, params = {}) => this.request({
3526
3447
  path: `/orgs/${organizationId}/openapi/${specSlug}/versions/${versionId}`,
3527
3448
  method: "GET",
@@ -4131,6 +4052,13 @@ var Api = class extends HttpClient {
4131
4052
  secure: true,
4132
4053
  ...params
4133
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
+ }),
4134
4062
  listSiteTopics: (organizationId, siteId, query, params = {}) => this.request({
4135
4063
  path: `/orgs/${organizationId}/sites/${siteId}/topics`,
4136
4064
  method: "GET",
@@ -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;
@@ -4878,7 +4803,7 @@ 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
4805
  var SITE_FINDING_STATUS_ENUM = ["candidate", "open", "done", "canceled"];
4881
- var SITE_FINDING_TYPE_ENUM = ["content-outdated", "incoherence", "content-gap", "other"];
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"];
@@ -5061,8 +4986,6 @@ var GitBookAPI = class extends Api {
5061
4986
  COLLECTION_TITLE_MAX_LENGTH,
5062
4987
  COLOR_PATTERN,
5063
4988
  CONTENT_KIT_ICON_ENUM,
5064
- CONTENT_REFERENCE_RELATION_ENUM,
5065
- CONTENT_REFERENCE_STATUS_ENUM,
5066
4989
  CONTENT_VISIBILITY_ENUM,
5067
4990
  CONTEXT_CONNECTION_FILTER_MAX_LENGTH,
5068
4991
  CONTEXT_CONNECTION_FILTER_MIN_LENGTH,
@@ -5108,8 +5031,6 @@ var GitBookAPI = class extends Api {
5108
5031
  CloudflareHostnameTLSStatus,
5109
5032
  CloudflareHostnameTLSValidationMethod,
5110
5033
  ContentKitIcon,
5111
- ContentReferenceRelation,
5112
- ContentReferenceStatus,
5113
5034
  ContentType,
5114
5035
  ContentVisibility,
5115
5036
  ContextConnectionStatus,
@@ -5269,7 +5190,6 @@ var GitBookAPI = class extends Api {
5269
5190
  SITE_MCP_SERVER_NAME_MAX_LENGTH,
5270
5191
  SITE_MCP_SERVER_NAME_MIN_LENGTH,
5271
5192
  SITE_MCP_SERVER_TRANSPORT_ENUM,
5272
- SITE_PERMISSIONS_MODEL_ENUM,
5273
5193
  SITE_PROXY_ORIGIN_MAX_LENGTH,
5274
5194
  SITE_PROXY_ORIGIN_PATTERN,
5275
5195
  SITE_QUESTION_ANSWER_HELPFULNESS_ENUM,
@@ -5329,7 +5249,6 @@ var GitBookAPI = class extends Api {
5329
5249
  SiteInsightsVisitorDevice,
5330
5250
  SiteInsightsVisitorOS,
5331
5251
  SiteMcpServerTransport,
5332
- SitePermissionsModel,
5333
5252
  SiteQuestionAnswerHelpfulness,
5334
5253
  SiteQuestionAnswerRelevance,
5335
5254
  SiteQuestionAnswerResolution,