@gitbook/api 0.147.0 → 0.149.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
@@ -180,7 +180,6 @@ var require_node = __commonJS({
180
180
  var src_exports = {};
181
181
  __export(src_exports, {
182
182
  AGENT_STATUS_ENUM: () => AGENT_STATUS_ENUM,
183
- AGENT_TASK_STATUS_ENUM: () => AGENT_TASK_STATUS_ENUM,
184
183
  AIMESSAGE_ROLE_ENUM: () => AIMESSAGE_ROLE_ENUM,
185
184
  AIMODEL_ENUM: () => AIMODEL_ENUM,
186
185
  AIMessageRole: () => AIMessageRole,
@@ -189,11 +188,11 @@ __export(src_exports, {
189
188
  APIIntegrationScope: () => APIIntegrationScope,
190
189
  APITOKEN_LABEL_MAX_LENGTH: () => APITOKEN_LABEL_MAX_LENGTH,
191
190
  AgentStatus: () => AgentStatus,
192
- AgentTaskStatus: () => AgentTaskStatus,
193
191
  Api: () => Api,
194
192
  BILLING_INTERVAL_ENUM: () => BILLING_INTERVAL_ENUM,
195
193
  BILLING_METER_ENUM: () => BILLING_METER_ENUM,
196
194
  BILLING_PRODUCT_ENUM: () => BILLING_PRODUCT_ENUM,
195
+ BILLING_STATUS_ENUM: () => BILLING_STATUS_ENUM,
197
196
  BILLING_SWITCH_ACTION_ENUM: () => BILLING_SWITCH_ACTION_ENUM,
198
197
  BILLING_TRIAL_STATUS_ENUM: () => BILLING_TRIAL_STATUS_ENUM,
199
198
  BLOCK_REASON_MAX_LENGTH: () => BLOCK_REASON_MAX_LENGTH,
@@ -202,6 +201,7 @@ __export(src_exports, {
202
201
  BillingInterval: () => BillingInterval,
203
202
  BillingMeter: () => BillingMeter,
204
203
  BillingProduct: () => BillingProduct,
204
+ BillingStatus: () => BillingStatus,
205
205
  BillingSwitchAction: () => BillingSwitchAction,
206
206
  BillingTrialStatus: () => BillingTrialStatus,
207
207
  BlockSource: () => BlockSource,
@@ -441,23 +441,24 @@ module.exports = __toCommonJS(src_exports);
441
441
 
442
442
  // package.json
443
443
  var name = "@gitbook/api";
444
- var version = "0.147.0";
444
+ var version = "0.149.0";
445
445
 
446
446
  // src/client.ts
447
447
  var import_event_iterator = __toESM(require_node(), 1);
448
448
 
449
449
  // ../../node_modules/eventsource-parser/dist/index.js
450
- var __defProp2 = Object.defineProperty;
451
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
452
- var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key != "symbol" ? key + "" : key, value);
453
450
  var ParseError = class extends Error {
454
451
  constructor(message, options) {
455
- super(message), __publicField(this, "type"), __publicField(this, "field"), __publicField(this, "value"), __publicField(this, "line"), this.name = "ParseError", this.type = options.type, this.field = options.field, this.value = options.value, this.line = options.line;
452
+ super(message), this.name = "ParseError", this.type = options.type, this.field = options.field, this.value = options.value, this.line = options.line;
456
453
  }
457
454
  };
458
455
  function noop(_arg) {
459
456
  }
460
457
  function createParser(callbacks) {
458
+ if (typeof callbacks == "function")
459
+ throw new TypeError(
460
+ "`callbacks` must be an object, got a function instead. Did you mean `{onEvent: fn}`?"
461
+ );
461
462
  const { onEvent = noop, onError = noop, onRetry = noop, onComment } = callbacks;
462
463
  let incompleteLine = "", isFirstChunk = true, id, data = "", eventType = "";
463
464
  function feed(newChunk) {
@@ -523,19 +524,25 @@ function createParser(callbacks) {
523
524
  }), id = void 0, data = "", eventType = "";
524
525
  }
525
526
  function reset(options = {}) {
526
- incompleteLine && options.consume && parseLine(incompleteLine), id = void 0, data = "", eventType = "", incompleteLine = "";
527
+ incompleteLine && options.consume && parseLine(incompleteLine), isFirstChunk = true, id = void 0, data = "", eventType = "", incompleteLine = "";
527
528
  }
528
529
  return { feed, reset };
529
530
  }
530
531
  function splitLines(chunk) {
531
532
  const lines = [];
532
- let incompleteLine = "";
533
- const totalLength = chunk.length;
534
- for (let i = 0; i < totalLength; i++) {
535
- const char = chunk[i];
536
- char === "\r" && chunk[i + 1] === `
537
- ` ? (lines.push(incompleteLine), incompleteLine = "", i++) : char === "\r" || char === `
538
- ` ? (lines.push(incompleteLine), incompleteLine = "") : incompleteLine += char;
533
+ let incompleteLine = "", searchIndex = 0;
534
+ for (; searchIndex < chunk.length; ) {
535
+ const crIndex = chunk.indexOf("\r", searchIndex), lfIndex = chunk.indexOf(`
536
+ `, searchIndex);
537
+ let lineEnd = -1;
538
+ 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) {
539
+ incompleteLine = chunk.slice(searchIndex);
540
+ break;
541
+ } else {
542
+ const line = chunk.slice(searchIndex, lineEnd);
543
+ lines.push(line), searchIndex = lineEnd + 1, chunk[searchIndex - 1] === "\r" && chunk[searchIndex] === `
544
+ ` && searchIndex++;
545
+ }
539
546
  }
540
547
  return [lines, incompleteLine];
541
548
  }
@@ -955,13 +962,6 @@ var SAMLProviderStatus = /* @__PURE__ */ ((SAMLProviderStatus2) => {
955
962
  SAMLProviderStatus2["Pending"] = "pending";
956
963
  return SAMLProviderStatus2;
957
964
  })(SAMLProviderStatus || {});
958
- var AgentTaskStatus = /* @__PURE__ */ ((AgentTaskStatus2) => {
959
- AgentTaskStatus2["Backlog"] = "backlog";
960
- AgentTaskStatus2["Started"] = "started";
961
- AgentTaskStatus2["Completed"] = "completed";
962
- AgentTaskStatus2["Canceled"] = "canceled";
963
- return AgentTaskStatus2;
964
- })(AgentTaskStatus || {});
965
965
  var TranslationStatus = /* @__PURE__ */ ((TranslationStatus2) => {
966
966
  TranslationStatus2["Pending"] = "pending";
967
967
  TranslationStatus2["Running"] = "running";
@@ -1273,6 +1273,16 @@ var GitSyncOperationStage = /* @__PURE__ */ ((GitSyncOperationStage2) => {
1273
1273
  GitSyncOperationStage2["Finalize"] = "finalize";
1274
1274
  return GitSyncOperationStage2;
1275
1275
  })(GitSyncOperationStage || {});
1276
+ var BillingStatus = /* @__PURE__ */ ((BillingStatus2) => {
1277
+ BillingStatus2["Trialing"] = "trialing";
1278
+ BillingStatus2["Active"] = "active";
1279
+ BillingStatus2["PastDue"] = "past_due";
1280
+ BillingStatus2["IncompleteExpired"] = "incomplete_expired";
1281
+ BillingStatus2["Canceled"] = "canceled";
1282
+ BillingStatus2["Unpaid"] = "unpaid";
1283
+ BillingStatus2["Paused"] = "paused";
1284
+ return BillingStatus2;
1285
+ })(BillingStatus || {});
1276
1286
  var APIIntegrationScope = /* @__PURE__ */ ((APIIntegrationScope2) => {
1277
1287
  APIIntegrationScope2["IntegrationRead"] = "integration:read";
1278
1288
  APIIntegrationScope2["IntegrationUpdate"] = "integration:update";
@@ -1772,6 +1782,13 @@ var Api = class extends HttpClient {
1772
1782
  format: "json",
1773
1783
  ...params
1774
1784
  }),
1785
+ listSpacePageMetaLinks: (spaceId, pageId, params = {}) => this.request({
1786
+ path: `/spaces/${spaceId}/content/page/${pageId}/meta-links`,
1787
+ method: "GET",
1788
+ secure: true,
1789
+ format: "json",
1790
+ ...params
1791
+ }),
1775
1792
  getPageByPath: (spaceId, pagePath, query, params = {}) => this.request({
1776
1793
  path: `/spaces/${spaceId}/content/path/${pagePath}`,
1777
1794
  method: "GET",
@@ -2070,6 +2087,13 @@ var Api = class extends HttpClient {
2070
2087
  format: "json",
2071
2088
  ...params
2072
2089
  }),
2090
+ listChangeRequestPageMetaLinks: (spaceId, changeRequestId, pageId, params = {}) => this.request({
2091
+ path: `/spaces/${spaceId}/change-requests/${changeRequestId}/content/page/${pageId}/meta-links`,
2092
+ method: "GET",
2093
+ secure: true,
2094
+ format: "json",
2095
+ ...params
2096
+ }),
2073
2097
  getReusableContentInChangeRequestById: (spaceId, changeRequestId, reusableContentId, query, params = {}) => this.request({
2074
2098
  path: `/spaces/${spaceId}/change-requests/${changeRequestId}/content/reusable-contents/${reusableContentId}`,
2075
2099
  method: "GET",
@@ -2158,6 +2182,13 @@ var Api = class extends HttpClient {
2158
2182
  format: "json",
2159
2183
  ...params
2160
2184
  }),
2185
+ listRevisionPageMetaLinks: (spaceId, revisionId, pageId, params = {}) => this.request({
2186
+ path: `/spaces/${spaceId}/revisions/${revisionId}/page/${pageId}/meta-links`,
2187
+ method: "GET",
2188
+ secure: true,
2189
+ format: "json",
2190
+ ...params
2191
+ }),
2161
2192
  getPageInChangeRequestByPath: (spaceId, changeRequestId, pagePath, query, params = {}) => this.request({
2162
2193
  path: `/spaces/${spaceId}/change-requests/${changeRequestId}/content/path/${pagePath}`,
2163
2194
  method: "GET",
@@ -3192,30 +3223,6 @@ var Api = class extends HttpClient {
3192
3223
  format: "json",
3193
3224
  ...params
3194
3225
  }),
3195
- listAgentTasks: (organizationId, query, params = {}) => this.request({
3196
- path: `/orgs/${organizationId}/agent-tasks`,
3197
- method: "GET",
3198
- query,
3199
- secure: true,
3200
- format: "json",
3201
- ...params
3202
- }),
3203
- getAgentTask: (organizationId, agentTaskId, params = {}) => this.request({
3204
- path: `/orgs/${organizationId}/agent-tasks/${agentTaskId}`,
3205
- method: "GET",
3206
- secure: true,
3207
- format: "json",
3208
- ...params
3209
- }),
3210
- updateAgentTask: (organizationId, agentTaskId, data, params = {}) => this.request({
3211
- path: `/orgs/${organizationId}/agent-tasks/${agentTaskId}`,
3212
- method: "PATCH",
3213
- body: data,
3214
- secure: true,
3215
- type: "application/json" /* Json */,
3216
- format: "json",
3217
- ...params
3218
- }),
3219
3226
  listTranslations: (organizationId, query, params = {}) => this.request({
3220
3227
  path: `/orgs/${organizationId}/translations`,
3221
3228
  method: "GET",
@@ -4072,7 +4079,6 @@ var SAMLPROVIDER_LABEL_MIN_LENGTH = 1;
4072
4079
  var SAMLPROVIDER_ENTITY_ID_MAX_LENGTH = 1024;
4073
4080
  var SAMLPROVIDER_CERTIFICATE_MAX_LENGTH = 1e4;
4074
4081
  var SAMLPROVIDER_STATUS_ENUM = ["active", "pending"];
4075
- var AGENT_TASK_STATUS_ENUM = ["backlog", "started", "completed", "canceled"];
4076
4082
  var TRANSLATION_STATUS_ENUM = ["pending", "running", "completed"];
4077
4083
  var STORAGE_UPLOAD_KIND_ENUM = ["customization_font", "import_file"];
4078
4084
  var FONT_FAMILY_MAX_LENGTH = 50;
@@ -4130,6 +4136,7 @@ var REVISION_SEMANTIC_CHANGE_TYPE_ENUM = ["page_created", "page_edited", "page_d
4130
4136
  var GIT_SYNC_OPERATION_STATE_ENUM = ["running", "failure", "success"];
4131
4137
  var GIT_SYNC_OPERATION_DIRECTION_ENUM = ["export", "import"];
4132
4138
  var GIT_SYNC_OPERATION_STAGE_ENUM = ["repo_fetch", "config_check", "content_process", "finalize"];
4139
+ var BILLING_STATUS_ENUM = ["trialing", "active", "past_due", "incomplete_expired", "canceled", "unpaid", "paused"];
4133
4140
  var APIINTEGRATION_SCOPE_ENUM = ["integration:read", "integration:update", "integration:installation:read", "integration:installation:update"];
4134
4141
  var SITE_ADS_STATUS_ENUM = ["pending", "in-review", "live", "rejected", "disabled"];
4135
4142
  var AIMESSAGE_ROLE_ENUM = ["user", "assistant", "developer"];
@@ -4205,7 +4212,6 @@ var GitBookAPI = class extends Api {
4205
4212
  // Annotate the CommonJS export names for ESM import in node:
4206
4213
  0 && (module.exports = {
4207
4214
  AGENT_STATUS_ENUM,
4208
- AGENT_TASK_STATUS_ENUM,
4209
4215
  AIMESSAGE_ROLE_ENUM,
4210
4216
  AIMODEL_ENUM,
4211
4217
  AIMessageRole,
@@ -4214,11 +4220,11 @@ var GitBookAPI = class extends Api {
4214
4220
  APIIntegrationScope,
4215
4221
  APITOKEN_LABEL_MAX_LENGTH,
4216
4222
  AgentStatus,
4217
- AgentTaskStatus,
4218
4223
  Api,
4219
4224
  BILLING_INTERVAL_ENUM,
4220
4225
  BILLING_METER_ENUM,
4221
4226
  BILLING_PRODUCT_ENUM,
4227
+ BILLING_STATUS_ENUM,
4222
4228
  BILLING_SWITCH_ACTION_ENUM,
4223
4229
  BILLING_TRIAL_STATUS_ENUM,
4224
4230
  BLOCK_REASON_MAX_LENGTH,
@@ -4227,6 +4233,7 @@ var GitBookAPI = class extends Api {
4227
4233
  BillingInterval,
4228
4234
  BillingMeter,
4229
4235
  BillingProduct,
4236
+ BillingStatus,
4230
4237
  BillingSwitchAction,
4231
4238
  BillingTrialStatus,
4232
4239
  BlockSource,
package/dist/index.js CHANGED
@@ -172,23 +172,24 @@ var require_node = __commonJS({
172
172
 
173
173
  // package.json
174
174
  var name = "@gitbook/api";
175
- var version = "0.147.0";
175
+ var version = "0.149.0";
176
176
 
177
177
  // src/client.ts
178
178
  var import_event_iterator = __toESM(require_node(), 1);
179
179
 
180
180
  // ../../node_modules/eventsource-parser/dist/index.js
181
- var __defProp2 = Object.defineProperty;
182
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
183
- var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key != "symbol" ? key + "" : key, value);
184
181
  var ParseError = class extends Error {
185
182
  constructor(message, options) {
186
- super(message), __publicField(this, "type"), __publicField(this, "field"), __publicField(this, "value"), __publicField(this, "line"), this.name = "ParseError", this.type = options.type, this.field = options.field, this.value = options.value, this.line = options.line;
183
+ super(message), this.name = "ParseError", this.type = options.type, this.field = options.field, this.value = options.value, this.line = options.line;
187
184
  }
188
185
  };
189
186
  function noop(_arg) {
190
187
  }
191
188
  function createParser(callbacks) {
189
+ if (typeof callbacks == "function")
190
+ throw new TypeError(
191
+ "`callbacks` must be an object, got a function instead. Did you mean `{onEvent: fn}`?"
192
+ );
192
193
  const { onEvent = noop, onError = noop, onRetry = noop, onComment } = callbacks;
193
194
  let incompleteLine = "", isFirstChunk = true, id, data = "", eventType = "";
194
195
  function feed(newChunk) {
@@ -254,19 +255,25 @@ function createParser(callbacks) {
254
255
  }), id = void 0, data = "", eventType = "";
255
256
  }
256
257
  function reset(options = {}) {
257
- incompleteLine && options.consume && parseLine(incompleteLine), id = void 0, data = "", eventType = "", incompleteLine = "";
258
+ incompleteLine && options.consume && parseLine(incompleteLine), isFirstChunk = true, id = void 0, data = "", eventType = "", incompleteLine = "";
258
259
  }
259
260
  return { feed, reset };
260
261
  }
261
262
  function splitLines(chunk) {
262
263
  const lines = [];
263
- let incompleteLine = "";
264
- const totalLength = chunk.length;
265
- for (let i = 0; i < totalLength; i++) {
266
- const char = chunk[i];
267
- char === "\r" && chunk[i + 1] === `
268
- ` ? (lines.push(incompleteLine), incompleteLine = "", i++) : char === "\r" || char === `
269
- ` ? (lines.push(incompleteLine), incompleteLine = "") : incompleteLine += char;
264
+ let incompleteLine = "", searchIndex = 0;
265
+ for (; searchIndex < chunk.length; ) {
266
+ const crIndex = chunk.indexOf("\r", searchIndex), lfIndex = chunk.indexOf(`
267
+ `, searchIndex);
268
+ let lineEnd = -1;
269
+ 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) {
270
+ incompleteLine = chunk.slice(searchIndex);
271
+ break;
272
+ } else {
273
+ const line = chunk.slice(searchIndex, lineEnd);
274
+ lines.push(line), searchIndex = lineEnd + 1, chunk[searchIndex - 1] === "\r" && chunk[searchIndex] === `
275
+ ` && searchIndex++;
276
+ }
270
277
  }
271
278
  return [lines, incompleteLine];
272
279
  }
@@ -686,13 +693,6 @@ var SAMLProviderStatus = /* @__PURE__ */ ((SAMLProviderStatus2) => {
686
693
  SAMLProviderStatus2["Pending"] = "pending";
687
694
  return SAMLProviderStatus2;
688
695
  })(SAMLProviderStatus || {});
689
- var AgentTaskStatus = /* @__PURE__ */ ((AgentTaskStatus2) => {
690
- AgentTaskStatus2["Backlog"] = "backlog";
691
- AgentTaskStatus2["Started"] = "started";
692
- AgentTaskStatus2["Completed"] = "completed";
693
- AgentTaskStatus2["Canceled"] = "canceled";
694
- return AgentTaskStatus2;
695
- })(AgentTaskStatus || {});
696
696
  var TranslationStatus = /* @__PURE__ */ ((TranslationStatus2) => {
697
697
  TranslationStatus2["Pending"] = "pending";
698
698
  TranslationStatus2["Running"] = "running";
@@ -1004,6 +1004,16 @@ var GitSyncOperationStage = /* @__PURE__ */ ((GitSyncOperationStage2) => {
1004
1004
  GitSyncOperationStage2["Finalize"] = "finalize";
1005
1005
  return GitSyncOperationStage2;
1006
1006
  })(GitSyncOperationStage || {});
1007
+ var BillingStatus = /* @__PURE__ */ ((BillingStatus2) => {
1008
+ BillingStatus2["Trialing"] = "trialing";
1009
+ BillingStatus2["Active"] = "active";
1010
+ BillingStatus2["PastDue"] = "past_due";
1011
+ BillingStatus2["IncompleteExpired"] = "incomplete_expired";
1012
+ BillingStatus2["Canceled"] = "canceled";
1013
+ BillingStatus2["Unpaid"] = "unpaid";
1014
+ BillingStatus2["Paused"] = "paused";
1015
+ return BillingStatus2;
1016
+ })(BillingStatus || {});
1007
1017
  var APIIntegrationScope = /* @__PURE__ */ ((APIIntegrationScope2) => {
1008
1018
  APIIntegrationScope2["IntegrationRead"] = "integration:read";
1009
1019
  APIIntegrationScope2["IntegrationUpdate"] = "integration:update";
@@ -1503,6 +1513,13 @@ var Api = class extends HttpClient {
1503
1513
  format: "json",
1504
1514
  ...params
1505
1515
  }),
1516
+ listSpacePageMetaLinks: (spaceId, pageId, params = {}) => this.request({
1517
+ path: `/spaces/${spaceId}/content/page/${pageId}/meta-links`,
1518
+ method: "GET",
1519
+ secure: true,
1520
+ format: "json",
1521
+ ...params
1522
+ }),
1506
1523
  getPageByPath: (spaceId, pagePath, query, params = {}) => this.request({
1507
1524
  path: `/spaces/${spaceId}/content/path/${pagePath}`,
1508
1525
  method: "GET",
@@ -1801,6 +1818,13 @@ var Api = class extends HttpClient {
1801
1818
  format: "json",
1802
1819
  ...params
1803
1820
  }),
1821
+ listChangeRequestPageMetaLinks: (spaceId, changeRequestId, pageId, params = {}) => this.request({
1822
+ path: `/spaces/${spaceId}/change-requests/${changeRequestId}/content/page/${pageId}/meta-links`,
1823
+ method: "GET",
1824
+ secure: true,
1825
+ format: "json",
1826
+ ...params
1827
+ }),
1804
1828
  getReusableContentInChangeRequestById: (spaceId, changeRequestId, reusableContentId, query, params = {}) => this.request({
1805
1829
  path: `/spaces/${spaceId}/change-requests/${changeRequestId}/content/reusable-contents/${reusableContentId}`,
1806
1830
  method: "GET",
@@ -1889,6 +1913,13 @@ var Api = class extends HttpClient {
1889
1913
  format: "json",
1890
1914
  ...params
1891
1915
  }),
1916
+ listRevisionPageMetaLinks: (spaceId, revisionId, pageId, params = {}) => this.request({
1917
+ path: `/spaces/${spaceId}/revisions/${revisionId}/page/${pageId}/meta-links`,
1918
+ method: "GET",
1919
+ secure: true,
1920
+ format: "json",
1921
+ ...params
1922
+ }),
1892
1923
  getPageInChangeRequestByPath: (spaceId, changeRequestId, pagePath, query, params = {}) => this.request({
1893
1924
  path: `/spaces/${spaceId}/change-requests/${changeRequestId}/content/path/${pagePath}`,
1894
1925
  method: "GET",
@@ -2923,30 +2954,6 @@ var Api = class extends HttpClient {
2923
2954
  format: "json",
2924
2955
  ...params
2925
2956
  }),
2926
- listAgentTasks: (organizationId, query, params = {}) => this.request({
2927
- path: `/orgs/${organizationId}/agent-tasks`,
2928
- method: "GET",
2929
- query,
2930
- secure: true,
2931
- format: "json",
2932
- ...params
2933
- }),
2934
- getAgentTask: (organizationId, agentTaskId, params = {}) => this.request({
2935
- path: `/orgs/${organizationId}/agent-tasks/${agentTaskId}`,
2936
- method: "GET",
2937
- secure: true,
2938
- format: "json",
2939
- ...params
2940
- }),
2941
- updateAgentTask: (organizationId, agentTaskId, data, params = {}) => this.request({
2942
- path: `/orgs/${organizationId}/agent-tasks/${agentTaskId}`,
2943
- method: "PATCH",
2944
- body: data,
2945
- secure: true,
2946
- type: "application/json" /* Json */,
2947
- format: "json",
2948
- ...params
2949
- }),
2950
2957
  listTranslations: (organizationId, query, params = {}) => this.request({
2951
2958
  path: `/orgs/${organizationId}/translations`,
2952
2959
  method: "GET",
@@ -3803,7 +3810,6 @@ var SAMLPROVIDER_LABEL_MIN_LENGTH = 1;
3803
3810
  var SAMLPROVIDER_ENTITY_ID_MAX_LENGTH = 1024;
3804
3811
  var SAMLPROVIDER_CERTIFICATE_MAX_LENGTH = 1e4;
3805
3812
  var SAMLPROVIDER_STATUS_ENUM = ["active", "pending"];
3806
- var AGENT_TASK_STATUS_ENUM = ["backlog", "started", "completed", "canceled"];
3807
3813
  var TRANSLATION_STATUS_ENUM = ["pending", "running", "completed"];
3808
3814
  var STORAGE_UPLOAD_KIND_ENUM = ["customization_font", "import_file"];
3809
3815
  var FONT_FAMILY_MAX_LENGTH = 50;
@@ -3861,6 +3867,7 @@ var REVISION_SEMANTIC_CHANGE_TYPE_ENUM = ["page_created", "page_edited", "page_d
3861
3867
  var GIT_SYNC_OPERATION_STATE_ENUM = ["running", "failure", "success"];
3862
3868
  var GIT_SYNC_OPERATION_DIRECTION_ENUM = ["export", "import"];
3863
3869
  var GIT_SYNC_OPERATION_STAGE_ENUM = ["repo_fetch", "config_check", "content_process", "finalize"];
3870
+ var BILLING_STATUS_ENUM = ["trialing", "active", "past_due", "incomplete_expired", "canceled", "unpaid", "paused"];
3864
3871
  var APIINTEGRATION_SCOPE_ENUM = ["integration:read", "integration:update", "integration:installation:read", "integration:installation:update"];
3865
3872
  var SITE_ADS_STATUS_ENUM = ["pending", "in-review", "live", "rejected", "disabled"];
3866
3873
  var AIMESSAGE_ROLE_ENUM = ["user", "assistant", "developer"];
@@ -3935,7 +3942,6 @@ var GitBookAPI = class extends Api {
3935
3942
  };
3936
3943
  export {
3937
3944
  AGENT_STATUS_ENUM,
3938
- AGENT_TASK_STATUS_ENUM,
3939
3945
  AIMESSAGE_ROLE_ENUM,
3940
3946
  AIMODEL_ENUM,
3941
3947
  AIMessageRole,
@@ -3944,11 +3950,11 @@ export {
3944
3950
  APIIntegrationScope,
3945
3951
  APITOKEN_LABEL_MAX_LENGTH,
3946
3952
  AgentStatus,
3947
- AgentTaskStatus,
3948
3953
  Api,
3949
3954
  BILLING_INTERVAL_ENUM,
3950
3955
  BILLING_METER_ENUM,
3951
3956
  BILLING_PRODUCT_ENUM,
3957
+ BILLING_STATUS_ENUM,
3952
3958
  BILLING_SWITCH_ACTION_ENUM,
3953
3959
  BILLING_TRIAL_STATUS_ENUM,
3954
3960
  BLOCK_REASON_MAX_LENGTH,
@@ -3957,6 +3963,7 @@ export {
3957
3963
  BillingInterval,
3958
3964
  BillingMeter,
3959
3965
  BillingProduct,
3966
+ BillingStatus,
3960
3967
  BillingSwitchAction,
3961
3968
  BillingTrialStatus,
3962
3969
  BlockSource,
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.147.0",
7
+ "version": "0.149.0",
8
8
  "sideEffects": false,
9
9
  "files": [
10
10
  "README.md",