@gitbook/api 0.192.0 → 0.194.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/index.cjs CHANGED
@@ -205,6 +205,7 @@ __export(src_exports, {
205
205
  BLOCK_REASON_MAX_LENGTH: () => BLOCK_REASON_MAX_LENGTH,
206
206
  BLOCK_REASON_MIN_LENGTH: () => BLOCK_REASON_MIN_LENGTH,
207
207
  BLOCK_SOURCE_ENUM: () => BLOCK_SOURCE_ENUM,
208
+ BillingCreditsBundle: () => BillingCreditsBundle,
208
209
  BillingInterval: () => BillingInterval,
209
210
  BillingMeter: () => BillingMeter,
210
211
  BillingProduct: () => BillingProduct,
@@ -528,7 +529,7 @@ module.exports = __toCommonJS(src_exports);
528
529
 
529
530
  // package.json
530
531
  var name = "@gitbook/api";
531
- var version = "0.192.0";
532
+ var version = "0.194.0";
532
533
 
533
534
  // src/client.ts
534
535
  var import_event_iterator = __toESM(require_node(), 1);
@@ -977,7 +978,7 @@ var SiteQuestionType = /* @__PURE__ */ ((SiteQuestionType2) => {
977
978
  var SiteFindingOrderBy = /* @__PURE__ */ ((SiteFindingOrderBy2) => {
978
979
  SiteFindingOrderBy2["UpdatedAt"] = "updatedAt";
979
980
  SiteFindingOrderBy2["Severity"] = "severity";
980
- SiteFindingOrderBy2["Questions"] = "questions";
981
+ SiteFindingOrderBy2["Sources"] = "sources";
981
982
  return SiteFindingOrderBy2;
982
983
  })(SiteFindingOrderBy || {});
983
984
  var SiteTriageFilterQuestions = /* @__PURE__ */ ((SiteTriageFilterQuestions2) => {
@@ -1327,6 +1328,7 @@ var SiteFeatureKey = /* @__PURE__ */ ((SiteFeatureKey2) => {
1327
1328
  SiteFeatureKey2["SitesAiAssistant"] = "sites-ai-assistant";
1328
1329
  SiteFeatureKey2["SitesAiInsights"] = "sites-ai-insights";
1329
1330
  SiteFeatureKey2["SitesConnections"] = "sites-connections";
1331
+ SiteFeatureKey2["SitesContentGaps"] = "sites-content-gaps";
1330
1332
  SiteFeatureKey2["SitesChannels"] = "sites-channels";
1331
1333
  SiteFeatureKey2["SitesEmbed"] = "sites-embed";
1332
1334
  SiteFeatureKey2["SitesApiPlayground"] = "sites-api-playground";
@@ -1410,6 +1412,14 @@ var BillingTrialStatus = /* @__PURE__ */ ((BillingTrialStatus2) => {
1410
1412
  BillingTrialStatus2["Expired"] = "expired";
1411
1413
  return BillingTrialStatus2;
1412
1414
  })(BillingTrialStatus || {});
1415
+ var BillingCreditsBundle = /* @__PURE__ */ ((BillingCreditsBundle2) => {
1416
+ BillingCreditsBundle2["None"] = "none";
1417
+ BillingCreditsBundle2["Value135001500"] = "13500_1500";
1418
+ BillingCreditsBundle2["Value240006000"] = "24000_6000";
1419
+ BillingCreditsBundle2["Value4200018000"] = "42000_18000";
1420
+ BillingCreditsBundle2["Value6500035000"] = "65000_35000";
1421
+ return BillingCreditsBundle2;
1422
+ })(BillingCreditsBundle || {});
1413
1423
  var BillingInterval = /* @__PURE__ */ ((BillingInterval2) => {
1414
1424
  BillingInterval2["Monthly"] = "monthly";
1415
1425
  BillingInterval2["Yearly"] = "yearly";
@@ -2380,9 +2390,10 @@ var Api = class extends HttpClient {
2380
2390
  format: "json",
2381
2391
  ...params
2382
2392
  }),
2383
- updateChangeRequestContent: (spaceId, changeRequestId, data, params = {}) => this.request({
2393
+ updateChangeRequestContent: (spaceId, changeRequestId, data, query, params = {}) => this.request({
2384
2394
  path: `/spaces/${spaceId}/change-requests/${changeRequestId}/content`,
2385
2395
  method: "POST",
2396
+ query,
2386
2397
  body: data,
2387
2398
  secure: true,
2388
2399
  type: "application/json" /* Json */,
@@ -4796,7 +4807,7 @@ var SITE_PROXY_ORIGIN_MAX_LENGTH = 512;
4796
4807
  var SITE_PROXY_ORIGIN_PATTERN = "^([\\w-]+\\.)*[\\w-]+\\.[a-zA-Z]{2,}(\\/[\\w-]+)+$";
4797
4808
  var SITE_VISIBILITY_ENUM = ["public", "unlisted", "share-link", "visitor-auth"];
4798
4809
  var SITE_ADS_TOPIC_ENUM = ["webdev", "crypto"];
4799
- 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"];
4810
+ 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-content-gaps", "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"];
4800
4811
  var SITE_CUSTOMIZATION_FEATURE_ENUM = ["header-logo", "header-primary-link", "theme-preset", "premium-fonts", "custom-icons", "footer-logo", "footer-links", "footer-copyright", "semantic-colors"];
4801
4812
  var 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"];
4802
4813
  var SITE_SECTION_TITLE_MAX_LENGTH = 128;
@@ -4873,7 +4884,7 @@ var SITE_FINDING_TYPE_ENUM = ["content-outdated", "content-incorrect", "content-
4873
4884
  var SITE_FINDING_SEVERITY_ENUM = ["low", "medium", "high"];
4874
4885
  var SITE_TRIAGE_FILTER_QUESTIONS_ENUM = ["questions"];
4875
4886
  var SITE_TRIAGE_FILTER_CONNECTIONS_PATTERN = "^connection:.+$";
4876
- var SITE_FINDING_ORDER_BY_ENUM = ["updatedAt", "severity", "questions"];
4887
+ var SITE_FINDING_ORDER_BY_ENUM = ["updatedAt", "severity", "sources"];
4877
4888
  var SITE_FINDING_TITLE_MAX_LENGTH = 256;
4878
4889
  var SITE_QUESTION_TYPE_ENUM = ["exploring", "how-to", "troubleshooting", "reference", "unknown"];
4879
4890
  var CONTEXT_CONNECTION_LABEL_MAX_LENGTH = 128;
@@ -5028,6 +5039,7 @@ var GitBookAPI = class extends Api {
5028
5039
  BLOCK_REASON_MAX_LENGTH,
5029
5040
  BLOCK_REASON_MIN_LENGTH,
5030
5041
  BLOCK_SOURCE_ENUM,
5042
+ BillingCreditsBundle,
5031
5043
  BillingInterval,
5032
5044
  BillingMeter,
5033
5045
  BillingProduct,
package/dist/index.js CHANGED
@@ -172,7 +172,7 @@ var require_node = __commonJS({
172
172
 
173
173
  // package.json
174
174
  var name = "@gitbook/api";
175
- var version = "0.192.0";
175
+ var version = "0.194.0";
176
176
 
177
177
  // src/client.ts
178
178
  var import_event_iterator = __toESM(require_node(), 1);
@@ -621,7 +621,7 @@ var SiteQuestionType = /* @__PURE__ */ ((SiteQuestionType2) => {
621
621
  var SiteFindingOrderBy = /* @__PURE__ */ ((SiteFindingOrderBy2) => {
622
622
  SiteFindingOrderBy2["UpdatedAt"] = "updatedAt";
623
623
  SiteFindingOrderBy2["Severity"] = "severity";
624
- SiteFindingOrderBy2["Questions"] = "questions";
624
+ SiteFindingOrderBy2["Sources"] = "sources";
625
625
  return SiteFindingOrderBy2;
626
626
  })(SiteFindingOrderBy || {});
627
627
  var SiteTriageFilterQuestions = /* @__PURE__ */ ((SiteTriageFilterQuestions2) => {
@@ -971,6 +971,7 @@ var SiteFeatureKey = /* @__PURE__ */ ((SiteFeatureKey2) => {
971
971
  SiteFeatureKey2["SitesAiAssistant"] = "sites-ai-assistant";
972
972
  SiteFeatureKey2["SitesAiInsights"] = "sites-ai-insights";
973
973
  SiteFeatureKey2["SitesConnections"] = "sites-connections";
974
+ SiteFeatureKey2["SitesContentGaps"] = "sites-content-gaps";
974
975
  SiteFeatureKey2["SitesChannels"] = "sites-channels";
975
976
  SiteFeatureKey2["SitesEmbed"] = "sites-embed";
976
977
  SiteFeatureKey2["SitesApiPlayground"] = "sites-api-playground";
@@ -1054,6 +1055,14 @@ var BillingTrialStatus = /* @__PURE__ */ ((BillingTrialStatus2) => {
1054
1055
  BillingTrialStatus2["Expired"] = "expired";
1055
1056
  return BillingTrialStatus2;
1056
1057
  })(BillingTrialStatus || {});
1058
+ var BillingCreditsBundle = /* @__PURE__ */ ((BillingCreditsBundle2) => {
1059
+ BillingCreditsBundle2["None"] = "none";
1060
+ BillingCreditsBundle2["Value135001500"] = "13500_1500";
1061
+ BillingCreditsBundle2["Value240006000"] = "24000_6000";
1062
+ BillingCreditsBundle2["Value4200018000"] = "42000_18000";
1063
+ BillingCreditsBundle2["Value6500035000"] = "65000_35000";
1064
+ return BillingCreditsBundle2;
1065
+ })(BillingCreditsBundle || {});
1057
1066
  var BillingInterval = /* @__PURE__ */ ((BillingInterval2) => {
1058
1067
  BillingInterval2["Monthly"] = "monthly";
1059
1068
  BillingInterval2["Yearly"] = "yearly";
@@ -2024,9 +2033,10 @@ var Api = class extends HttpClient {
2024
2033
  format: "json",
2025
2034
  ...params
2026
2035
  }),
2027
- updateChangeRequestContent: (spaceId, changeRequestId, data, params = {}) => this.request({
2036
+ updateChangeRequestContent: (spaceId, changeRequestId, data, query, params = {}) => this.request({
2028
2037
  path: `/spaces/${spaceId}/change-requests/${changeRequestId}/content`,
2029
2038
  method: "POST",
2039
+ query,
2030
2040
  body: data,
2031
2041
  secure: true,
2032
2042
  type: "application/json" /* Json */,
@@ -4440,7 +4450,7 @@ var SITE_PROXY_ORIGIN_MAX_LENGTH = 512;
4440
4450
  var SITE_PROXY_ORIGIN_PATTERN = "^([\\w-]+\\.)*[\\w-]+\\.[a-zA-Z]{2,}(\\/[\\w-]+)+$";
4441
4451
  var SITE_VISIBILITY_ENUM = ["public", "unlisted", "share-link", "visitor-auth"];
4442
4452
  var SITE_ADS_TOPIC_ENUM = ["webdev", "crypto"];
4443
- 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"];
4453
+ 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-content-gaps", "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"];
4444
4454
  var SITE_CUSTOMIZATION_FEATURE_ENUM = ["header-logo", "header-primary-link", "theme-preset", "premium-fonts", "custom-icons", "footer-logo", "footer-links", "footer-copyright", "semantic-colors"];
4445
4455
  var 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"];
4446
4456
  var SITE_SECTION_TITLE_MAX_LENGTH = 128;
@@ -4517,7 +4527,7 @@ var SITE_FINDING_TYPE_ENUM = ["content-outdated", "content-incorrect", "content-
4517
4527
  var SITE_FINDING_SEVERITY_ENUM = ["low", "medium", "high"];
4518
4528
  var SITE_TRIAGE_FILTER_QUESTIONS_ENUM = ["questions"];
4519
4529
  var SITE_TRIAGE_FILTER_CONNECTIONS_PATTERN = "^connection:.+$";
4520
- var SITE_FINDING_ORDER_BY_ENUM = ["updatedAt", "severity", "questions"];
4530
+ var SITE_FINDING_ORDER_BY_ENUM = ["updatedAt", "severity", "sources"];
4521
4531
  var SITE_FINDING_TITLE_MAX_LENGTH = 256;
4522
4532
  var SITE_QUESTION_TYPE_ENUM = ["exploring", "how-to", "troubleshooting", "reference", "unknown"];
4523
4533
  var CONTEXT_CONNECTION_LABEL_MAX_LENGTH = 128;
@@ -4671,6 +4681,7 @@ export {
4671
4681
  BLOCK_REASON_MAX_LENGTH,
4672
4682
  BLOCK_REASON_MIN_LENGTH,
4673
4683
  BLOCK_SOURCE_ENUM,
4684
+ BillingCreditsBundle,
4674
4685
  BillingInterval,
4675
4686
  BillingMeter,
4676
4687
  BillingProduct,
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "main": "./dist/index.cjs",
5
5
  "module": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
7
- "version": "0.192.0",
7
+ "version": "0.194.0",
8
8
  "sideEffects": false,
9
9
  "files": [
10
10
  "README.md",