@gitbook/api 0.208.0 → 0.209.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.
@@ -36,9 +36,11 @@ export declare const CHANGE_REQUEST_REVIEW_STATUS_ENUM: ["changes-requested", "a
36
36
  export declare const VARIABLE_NAME_MAX_LENGTH = 64;
37
37
  export declare const VARIABLE_NAME_MIN_LENGTH = 1;
38
38
  export declare const VARIABLE_NAME_PATTERN = "^[a-zA-Z_$][a-zA-Z0-9_$]*$";
39
+ export declare const REVISION_TAG_LABEL_MAX_LENGTH = 50;
40
+ export declare const REVISION_TAG_LABEL_MIN_LENGTH = 1;
39
41
  export declare const REVISION_PAGE_TYPE_ENUM: ["document", "group", "link", "computed"];
40
42
  export declare const REVISION_PAGE_LAYOUT_PRESET_ENUM: ["docs", "editorial", "landing"];
41
- export declare const MEMBER_DISABLED_REASON_ENUM: ["billing", "scim", "admin"];
43
+ export declare const MEMBER_DISABLED_REASON_ENUM: ["billing", "scim", "admin", "gitbook"];
42
44
  export declare const INTEGRATION_TITLE_MAX_LENGTH = 30;
43
45
  export declare const INTEGRATION_TITLE_MIN_LENGTH = 2;
44
46
  export declare const INTEGRATION_DESCRIPTION_MAX_LENGTH = 100;
@@ -69,7 +71,6 @@ export declare const COLLECTION_DESCRIPTION_MIN_LENGTH = 0;
69
71
  export declare const INTEGRATION_INSTALLATION_STATUS_ENUM: ["active", "pending", "paused"];
70
72
  export declare const INTEGRATION_INSTALLATION_SPACE_SELECTION_ENUM: ["all", "selected"];
71
73
  export declare const INTEGRATION_INSTALLATION_SITE_SELECTION_ENUM: ["all", "selected"];
72
- export declare const PAGE_FEEDBACK_RATING_ENUM: ["bad", "ok", "good"];
73
74
  export declare const SITE_TYPE_ENUM: ["basic", "premium", "ultimate", "sponsored"];
74
75
  export declare const SITE_TITLE_MAX_LENGTH = 128;
75
76
  export declare const SITE_TITLE_MIN_LENGTH = 2;
@@ -213,6 +214,7 @@ export declare const SITE_SETTINGS_SCAN_TOPICS_ENUM: ["auto", "never"];
213
214
  export declare const SITE_SETTINGS_FINDING_CHANGE_REQUESTS_ENUM: ["always", "auto-fixable", "never"];
214
215
  export declare const SITE_INSIGHTS_DISPLAY_CONTEXT_ENUM: ["site", "server", "embed", "mcp"];
215
216
  export declare const SITE_INSIGHTS_MARKDOWN_SOURCE_ENUM: ["page-action"];
217
+ export declare const PAGE_FEEDBACK_RATING_ENUM: ["bad", "ok", "good"];
216
218
  export declare const SITE_INSIGHTS_LINK_POSITION_ENUM: ["announcement", "header", "footer", "sidebar", "content"];
217
219
  export declare const SITE_INSIGHTS_TRADEMARK_PLACEMENT_ENUM: ["sidebar", "ad", "footer", "pdf", "embed"];
218
220
  export declare const SITE_INSIGHTS_AD_PLACEMENT_ENUM: ["aside"];
package/dist/index.cjs CHANGED
@@ -419,6 +419,8 @@ __export(src_exports, {
419
419
  REVISION_PAGE_SLUG_MIN_LENGTH: () => REVISION_PAGE_SLUG_MIN_LENGTH,
420
420
  REVISION_PAGE_TYPE_ENUM: () => REVISION_PAGE_TYPE_ENUM,
421
421
  REVISION_SEMANTIC_CHANGE_TYPE_ENUM: () => REVISION_SEMANTIC_CHANGE_TYPE_ENUM,
422
+ REVISION_TAG_LABEL_MAX_LENGTH: () => REVISION_TAG_LABEL_MAX_LENGTH,
423
+ REVISION_TAG_LABEL_MIN_LENGTH: () => REVISION_TAG_LABEL_MIN_LENGTH,
422
424
  RevisionPageDocumentCoverTextColor: () => RevisionPageDocumentCoverTextColor,
423
425
  RevisionPageLayoutOptionsCoverMask: () => RevisionPageLayoutOptionsCoverMask,
424
426
  RevisionPageLayoutOptionsCoverSize: () => RevisionPageLayoutOptionsCoverSize,
@@ -601,7 +603,7 @@ module.exports = __toCommonJS(src_exports);
601
603
 
602
604
  // package.json
603
605
  var name = "@gitbook/api";
604
- var version = "0.208.0";
606
+ var version = "0.209.0";
605
607
 
606
608
  // src/client.ts
607
609
  var import_event_iterator = __toESM(require_node(), 1);
@@ -612,49 +614,134 @@ var ParseError = class extends Error {
612
614
  super(message), this.name = "ParseError", this.type = options.type, this.field = options.field, this.value = options.value, this.line = options.line;
613
615
  }
614
616
  };
617
+ var LF = 10;
618
+ var CR = 13;
619
+ var SPACE = 32;
615
620
  function noop(_arg) {
616
621
  }
617
- function createParser(callbacks) {
618
- if (typeof callbacks == "function")
622
+ function createParser(config) {
623
+ if (typeof config == "function")
619
624
  throw new TypeError(
620
- "`callbacks` must be an object, got a function instead. Did you mean `{onEvent: fn}`?"
625
+ "`config` must be an object, got a function instead. Did you mean `createParser({onEvent: fn})`?"
621
626
  );
622
- const { onEvent = noop, onError = noop, onRetry = noop, onComment } = callbacks;
623
- let incompleteLine = "", isFirstChunk = true, id, data = "", eventType = "";
624
- function feed(newChunk) {
625
- const chunk = isFirstChunk ? newChunk.replace(/^\xEF\xBB\xBF/, "") : newChunk, [complete, incomplete] = splitLines(`${incompleteLine}${chunk}`);
626
- for (const line of complete)
627
- parseLine(line);
628
- incompleteLine = incomplete, isFirstChunk = false;
627
+ const { onEvent = noop, onError = noop, onRetry = noop, onComment, maxBufferSize } = config, pendingFragments = [];
628
+ let pendingFragmentsLength = 0, isFirstChunk = true, id, data = "", dataLines = 0, eventType, terminated = false;
629
+ function feed(chunk) {
630
+ if (terminated)
631
+ throw new Error(
632
+ "Cannot feed parser: it was terminated after exceeding the configured max buffer size. Call `reset()` to resume parsing."
633
+ );
634
+ if (isFirstChunk && (isFirstChunk = false, chunk.charCodeAt(0) === 239 && chunk.charCodeAt(1) === 187 && chunk.charCodeAt(2) === 191 && (chunk = chunk.slice(3))), pendingFragments.length === 0) {
635
+ const trailing2 = processLines(chunk);
636
+ trailing2 !== "" && (pendingFragments.push(trailing2), pendingFragmentsLength = trailing2.length), checkBufferSize();
637
+ return;
638
+ }
639
+ if (chunk.indexOf(`
640
+ `) === -1 && chunk.indexOf("\r") === -1) {
641
+ pendingFragments.push(chunk), pendingFragmentsLength += chunk.length, checkBufferSize();
642
+ return;
643
+ }
644
+ pendingFragments.push(chunk);
645
+ const input = pendingFragments.join("");
646
+ pendingFragments.length = 0, pendingFragmentsLength = 0;
647
+ const trailing = processLines(input);
648
+ trailing !== "" && (pendingFragments.push(trailing), pendingFragmentsLength = trailing.length), checkBufferSize();
629
649
  }
630
- function parseLine(line) {
631
- if (line === "") {
650
+ function checkBufferSize() {
651
+ maxBufferSize !== void 0 && (pendingFragmentsLength + data.length <= maxBufferSize || (terminated = true, pendingFragments.length = 0, pendingFragmentsLength = 0, id = void 0, data = "", dataLines = 0, eventType = void 0, onError(
652
+ new ParseError(`Buffered data exceeded max buffer size of ${maxBufferSize} characters`, {
653
+ type: "max-buffer-size-exceeded"
654
+ })
655
+ )));
656
+ }
657
+ function processLines(chunk) {
658
+ let searchIndex = 0;
659
+ if (chunk.indexOf("\r") === -1) {
660
+ let lfIndex = chunk.indexOf(`
661
+ `, searchIndex);
662
+ for (; lfIndex !== -1; ) {
663
+ if (searchIndex === lfIndex) {
664
+ dataLines > 0 && onEvent({ id, event: eventType, data }), id = void 0, data = "", dataLines = 0, eventType = void 0, searchIndex = lfIndex + 1, lfIndex = chunk.indexOf(`
665
+ `, searchIndex);
666
+ continue;
667
+ }
668
+ const firstCharCode = chunk.charCodeAt(searchIndex);
669
+ if (isDataPrefix(chunk, searchIndex, firstCharCode)) {
670
+ const valueStart = chunk.charCodeAt(searchIndex + 5) === SPACE ? searchIndex + 6 : searchIndex + 5, value = chunk.slice(valueStart, lfIndex);
671
+ if (dataLines === 0 && chunk.charCodeAt(lfIndex + 1) === LF) {
672
+ onEvent({ id, event: eventType, data: value }), id = void 0, data = "", eventType = void 0, searchIndex = lfIndex + 2, lfIndex = chunk.indexOf(`
673
+ `, searchIndex);
674
+ continue;
675
+ }
676
+ data = dataLines === 0 ? value : `${data}
677
+ ${value}`, dataLines++;
678
+ } else
679
+ isEventPrefix(chunk, searchIndex, firstCharCode) ? eventType = chunk.slice(
680
+ chunk.charCodeAt(searchIndex + 6) === SPACE ? searchIndex + 7 : searchIndex + 6,
681
+ lfIndex
682
+ ) || void 0 : parseLine(chunk, searchIndex, lfIndex);
683
+ searchIndex = lfIndex + 1, lfIndex = chunk.indexOf(`
684
+ `, searchIndex);
685
+ }
686
+ return chunk.slice(searchIndex);
687
+ }
688
+ for (; searchIndex < chunk.length; ) {
689
+ const crIndex = chunk.indexOf("\r", searchIndex), lfIndex = chunk.indexOf(`
690
+ `, searchIndex);
691
+ let lineEnd = -1;
692
+ if (crIndex !== -1 && lfIndex !== -1 ? lineEnd = crIndex < lfIndex ? crIndex : lfIndex : crIndex !== -1 ? crIndex === chunk.length - 1 ? lineEnd = -1 : lineEnd = crIndex : lfIndex !== -1 && (lineEnd = lfIndex), lineEnd === -1)
693
+ break;
694
+ parseLine(chunk, searchIndex, lineEnd), searchIndex = lineEnd + 1, chunk.charCodeAt(searchIndex - 1) === CR && chunk.charCodeAt(searchIndex) === LF && searchIndex++;
695
+ }
696
+ return chunk.slice(searchIndex);
697
+ }
698
+ function parseLine(chunk, start, end) {
699
+ if (start === end) {
632
700
  dispatchEvent();
633
701
  return;
634
702
  }
635
- if (line.startsWith(":")) {
636
- onComment && onComment(line.slice(line.startsWith(": ") ? 2 : 1));
703
+ const firstCharCode = chunk.charCodeAt(start);
704
+ if (isDataPrefix(chunk, start, firstCharCode)) {
705
+ const valueStart = chunk.charCodeAt(start + 5) === SPACE ? start + 6 : start + 5, value2 = chunk.slice(valueStart, end);
706
+ data = dataLines === 0 ? value2 : `${data}
707
+ ${value2}`, dataLines++;
637
708
  return;
638
709
  }
639
- const fieldSeparatorIndex = line.indexOf(":");
640
- if (fieldSeparatorIndex !== -1) {
641
- const field = line.slice(0, fieldSeparatorIndex), offset = line[fieldSeparatorIndex + 1] === " " ? 2 : 1, value = line.slice(fieldSeparatorIndex + offset);
642
- processField(field, value, line);
710
+ if (isEventPrefix(chunk, start, firstCharCode)) {
711
+ eventType = chunk.slice(chunk.charCodeAt(start + 6) === SPACE ? start + 7 : start + 6, end) || void 0;
643
712
  return;
644
713
  }
645
- processField(line, "", line);
714
+ if (firstCharCode === 105 && chunk.charCodeAt(start + 1) === 100 && chunk.charCodeAt(start + 2) === 58) {
715
+ const value2 = chunk.slice(chunk.charCodeAt(start + 3) === SPACE ? start + 4 : start + 3, end);
716
+ value2.includes("\0") || (id = value2);
717
+ return;
718
+ }
719
+ if (firstCharCode === 58) {
720
+ if (onComment) {
721
+ const line2 = chunk.slice(start, end);
722
+ onComment(line2.slice(chunk.charCodeAt(start + 1) === SPACE ? 2 : 1));
723
+ }
724
+ return;
725
+ }
726
+ const line = chunk.slice(start, end), fieldSeparatorIndex = line.indexOf(":");
727
+ if (fieldSeparatorIndex === -1) {
728
+ processField(line, "", line);
729
+ return;
730
+ }
731
+ const field = line.slice(0, fieldSeparatorIndex), offset = line.charCodeAt(fieldSeparatorIndex + 1) === SPACE ? 2 : 1, value = line.slice(fieldSeparatorIndex + offset);
732
+ processField(field, value, line);
646
733
  }
647
734
  function processField(field, value, line) {
648
735
  switch (field) {
649
736
  case "event":
650
- eventType = value;
737
+ eventType = value || void 0;
651
738
  break;
652
739
  case "data":
653
- data = `${data}${value}
654
- `;
740
+ data = dataLines === 0 ? value : `${data}
741
+ ${value}`, dataLines++;
655
742
  break;
656
743
  case "id":
657
- id = value.includes("\0") ? void 0 : value;
744
+ value.includes("\0") || (id = value);
658
745
  break;
659
746
  case "retry":
660
747
  /^\d+$/.test(value) ? onRetry(parseInt(value, 10)) : onError(
@@ -676,35 +763,26 @@ function createParser(callbacks) {
676
763
  }
677
764
  }
678
765
  function dispatchEvent() {
679
- data.length > 0 && onEvent({
766
+ dataLines > 0 && onEvent({
680
767
  id,
681
- event: eventType || void 0,
682
- data: data.endsWith(`
683
- `) ? data.slice(0, -1) : data
684
- }), id = void 0, data = "", eventType = "";
768
+ event: eventType,
769
+ data
770
+ }), id = void 0, data = "", dataLines = 0, eventType = void 0;
685
771
  }
686
772
  function reset(options = {}) {
687
- incompleteLine && options.consume && parseLine(incompleteLine), isFirstChunk = true, id = void 0, data = "", eventType = "", incompleteLine = "";
773
+ if (options.consume && pendingFragments.length > 0) {
774
+ const incompleteLine = pendingFragments.join("");
775
+ parseLine(incompleteLine, 0, incompleteLine.length);
776
+ }
777
+ isFirstChunk = true, id = void 0, data = "", dataLines = 0, eventType = void 0, pendingFragments.length = 0, pendingFragmentsLength = 0, terminated = false;
688
778
  }
689
779
  return { feed, reset };
690
780
  }
691
- function splitLines(chunk) {
692
- const lines = [];
693
- let incompleteLine = "", searchIndex = 0;
694
- for (; searchIndex < chunk.length; ) {
695
- const crIndex = chunk.indexOf("\r", searchIndex), lfIndex = chunk.indexOf(`
696
- `, searchIndex);
697
- let lineEnd = -1;
698
- if (crIndex !== -1 && lfIndex !== -1 ? lineEnd = Math.min(crIndex, lfIndex) : crIndex !== -1 ? crIndex === chunk.length - 1 ? lineEnd = -1 : lineEnd = crIndex : lfIndex !== -1 && (lineEnd = lfIndex), lineEnd === -1) {
699
- incompleteLine = chunk.slice(searchIndex);
700
- break;
701
- } else {
702
- const line = chunk.slice(searchIndex, lineEnd);
703
- lines.push(line), searchIndex = lineEnd + 1, chunk[searchIndex - 1] === "\r" && chunk[searchIndex] === `
704
- ` && searchIndex++;
705
- }
706
- }
707
- return [lines, incompleteLine];
781
+ function isDataPrefix(chunk, i, firstCharCode) {
782
+ return firstCharCode === 100 && chunk.charCodeAt(i + 1) === 97 && chunk.charCodeAt(i + 2) === 116 && chunk.charCodeAt(i + 3) === 97 && chunk.charCodeAt(i + 4) === 58;
783
+ }
784
+ function isEventPrefix(chunk, i, firstCharCode) {
785
+ return firstCharCode === 101 && chunk.charCodeAt(i + 1) === 118 && chunk.charCodeAt(i + 2) === 101 && chunk.charCodeAt(i + 3) === 110 && chunk.charCodeAt(i + 4) === 116 && chunk.charCodeAt(i + 5) === 58;
708
786
  }
709
787
 
710
788
  // src/client.ts
@@ -1022,6 +1100,12 @@ var SiteInsightsLinkPosition = /* @__PURE__ */ ((SiteInsightsLinkPosition2) => {
1022
1100
  SiteInsightsLinkPosition2["Content"] = "content";
1023
1101
  return SiteInsightsLinkPosition2;
1024
1102
  })(SiteInsightsLinkPosition || {});
1103
+ var PageFeedbackRating = /* @__PURE__ */ ((PageFeedbackRating2) => {
1104
+ PageFeedbackRating2["Bad"] = "bad";
1105
+ PageFeedbackRating2["Ok"] = "ok";
1106
+ PageFeedbackRating2["Good"] = "good";
1107
+ return PageFeedbackRating2;
1108
+ })(PageFeedbackRating || {});
1025
1109
  var SiteInsightsMarkdownSource = /* @__PURE__ */ ((SiteInsightsMarkdownSource2) => {
1026
1110
  SiteInsightsMarkdownSource2["PageAction"] = "page-action";
1027
1111
  return SiteInsightsMarkdownSource2;
@@ -1659,12 +1743,6 @@ var SiteType = /* @__PURE__ */ ((SiteType2) => {
1659
1743
  SiteType2["Sponsored"] = "sponsored";
1660
1744
  return SiteType2;
1661
1745
  })(SiteType || {});
1662
- var PageFeedbackRating = /* @__PURE__ */ ((PageFeedbackRating2) => {
1663
- PageFeedbackRating2["Bad"] = "bad";
1664
- PageFeedbackRating2["Ok"] = "ok";
1665
- PageFeedbackRating2["Good"] = "good";
1666
- return PageFeedbackRating2;
1667
- })(PageFeedbackRating || {});
1668
1746
  var IntegrationInstallationSiteSelection = /* @__PURE__ */ ((IntegrationInstallationSiteSelection2) => {
1669
1747
  IntegrationInstallationSiteSelection2["All"] = "all";
1670
1748
  IntegrationInstallationSiteSelection2["Selected"] = "selected";
@@ -1786,6 +1864,7 @@ var MemberDisabledReason = /* @__PURE__ */ ((MemberDisabledReason2) => {
1786
1864
  MemberDisabledReason2["Billing"] = "billing";
1787
1865
  MemberDisabledReason2["Scim"] = "scim";
1788
1866
  MemberDisabledReason2["Admin"] = "admin";
1867
+ MemberDisabledReason2["Gitbook"] = "gitbook";
1789
1868
  return MemberDisabledReason2;
1790
1869
  })(MemberDisabledReason || {});
1791
1870
  var RevisionPageLayoutPreset = /* @__PURE__ */ ((RevisionPageLayoutPreset2) => {
@@ -3241,6 +3320,33 @@ var Api = class extends HttpClient {
3241
3320
  format: "json",
3242
3321
  ...params
3243
3322
  }),
3323
+ createIntegrationOAuthTransaction: (integrationName, installationId, data, params = {}) => this.request({
3324
+ path: `/integrations/${integrationName}/installations/${installationId}/oauth-transactions`,
3325
+ method: "POST",
3326
+ body: data,
3327
+ secure: true,
3328
+ type: "application/json" /* Json */,
3329
+ format: "json",
3330
+ ...params
3331
+ }),
3332
+ consumeIntegrationOAuthTransaction: (integrationName, transactionId, data, params = {}) => this.request({
3333
+ path: `/integrations/${integrationName}/oauth-transactions/${transactionId}/consume`,
3334
+ method: "POST",
3335
+ body: data,
3336
+ secure: true,
3337
+ type: "application/json" /* Json */,
3338
+ format: "json",
3339
+ ...params
3340
+ }),
3341
+ confirmIntegrationOAuthTransaction: (integrationName, transactionId, data, params = {}) => this.request({
3342
+ path: `/integrations/${integrationName}/oauth-transactions/${transactionId}/confirm`,
3343
+ method: "POST",
3344
+ body: data,
3345
+ secure: true,
3346
+ type: "application/json" /* Json */,
3347
+ format: "json",
3348
+ ...params
3349
+ }),
3244
3350
  listIntegrationInstallationSpaces: (integrationName, installationId, query, params = {}) => this.request({
3245
3351
  path: `/integrations/${integrationName}/installations/${installationId}/spaces`,
3246
3352
  method: "GET",
@@ -4511,15 +4617,6 @@ var Api = class extends HttpClient {
4511
4617
  format: "json",
4512
4618
  ...params
4513
4619
  }),
4514
- updateSiteFindingById: (organizationId, siteId, siteFindingId, data, params = {}) => this.request({
4515
- path: `/orgs/${organizationId}/sites/${siteId}/findings/${siteFindingId}`,
4516
- method: "PATCH",
4517
- body: data,
4518
- secure: true,
4519
- type: "application/json" /* Json */,
4520
- format: "json",
4521
- ...params
4522
- }),
4523
4620
  listChangeRequestsForSiteFinding: (organizationId, siteId, siteFindingId, query, params = {}) => this.request({
4524
4621
  path: `/orgs/${organizationId}/sites/${siteId}/findings/${siteFindingId}/change-requests`,
4525
4622
  method: "GET",
@@ -5345,9 +5442,11 @@ var CHANGE_REQUEST_REVIEW_STATUS_ENUM = ["changes-requested", "approved"];
5345
5442
  var VARIABLE_NAME_MAX_LENGTH = 64;
5346
5443
  var VARIABLE_NAME_MIN_LENGTH = 1;
5347
5444
  var VARIABLE_NAME_PATTERN = "^[a-zA-Z_$][a-zA-Z0-9_$]*$";
5445
+ var REVISION_TAG_LABEL_MAX_LENGTH = 50;
5446
+ var REVISION_TAG_LABEL_MIN_LENGTH = 1;
5348
5447
  var REVISION_PAGE_TYPE_ENUM = ["document", "group", "link", "computed"];
5349
5448
  var REVISION_PAGE_LAYOUT_PRESET_ENUM = ["docs", "editorial", "landing"];
5350
- var MEMBER_DISABLED_REASON_ENUM = ["billing", "scim", "admin"];
5449
+ var MEMBER_DISABLED_REASON_ENUM = ["billing", "scim", "admin", "gitbook"];
5351
5450
  var INTEGRATION_TITLE_MAX_LENGTH = 30;
5352
5451
  var INTEGRATION_TITLE_MIN_LENGTH = 2;
5353
5452
  var INTEGRATION_DESCRIPTION_MAX_LENGTH = 100;
@@ -5378,7 +5477,6 @@ var COLLECTION_DESCRIPTION_MIN_LENGTH = 0;
5378
5477
  var INTEGRATION_INSTALLATION_STATUS_ENUM = ["active", "pending", "paused"];
5379
5478
  var INTEGRATION_INSTALLATION_SPACE_SELECTION_ENUM = ["all", "selected"];
5380
5479
  var INTEGRATION_INSTALLATION_SITE_SELECTION_ENUM = ["all", "selected"];
5381
- var PAGE_FEEDBACK_RATING_ENUM = ["bad", "ok", "good"];
5382
5480
  var SITE_TYPE_ENUM = ["basic", "premium", "ultimate", "sponsored"];
5383
5481
  var SITE_TITLE_MAX_LENGTH = 128;
5384
5482
  var SITE_TITLE_MIN_LENGTH = 2;
@@ -5522,6 +5620,7 @@ var SITE_SETTINGS_SCAN_TOPICS_ENUM = ["auto", "never"];
5522
5620
  var SITE_SETTINGS_FINDING_CHANGE_REQUESTS_ENUM = ["always", "auto-fixable", "never"];
5523
5621
  var SITE_INSIGHTS_DISPLAY_CONTEXT_ENUM = ["site", "server", "embed", "mcp"];
5524
5622
  var SITE_INSIGHTS_MARKDOWN_SOURCE_ENUM = ["page-action"];
5623
+ var PAGE_FEEDBACK_RATING_ENUM = ["bad", "ok", "good"];
5525
5624
  var SITE_INSIGHTS_LINK_POSITION_ENUM = ["announcement", "header", "footer", "sidebar", "content"];
5526
5625
  var SITE_INSIGHTS_TRADEMARK_PLACEMENT_ENUM = ["sidebar", "ad", "footer", "pdf", "embed"];
5527
5626
  var SITE_INSIGHTS_AD_PLACEMENT_ENUM = ["aside"];
@@ -5877,6 +5976,8 @@ var GitBookAPI = class extends Api {
5877
5976
  REVISION_PAGE_SLUG_MIN_LENGTH,
5878
5977
  REVISION_PAGE_TYPE_ENUM,
5879
5978
  REVISION_SEMANTIC_CHANGE_TYPE_ENUM,
5979
+ REVISION_TAG_LABEL_MAX_LENGTH,
5980
+ REVISION_TAG_LABEL_MIN_LENGTH,
5880
5981
  RevisionPageDocumentCoverTextColor,
5881
5982
  RevisionPageLayoutOptionsCoverMask,
5882
5983
  RevisionPageLayoutOptionsCoverSize,