@rebilly/instruments 16.128.4 → 16.129.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/CHANGELOG.md CHANGED
@@ -1 +1,6 @@
1
- ## [16.128.4](https://github.com/Rebilly/rebilly/compare/instruments/core-v16.128.3...instruments/core-v16.128.4) (2026-06-15)
1
+ ## [16.129.0](https://github.com/Rebilly/rebilly/compare/instruments/core-v16.128.4...instruments/core-v16.129.0) (2026-06-15)
2
+
3
+
4
+ ### Features
5
+
6
+ * **api-metadata, rebilly-js-sdk:** Update resources based on latest api definitions ([#22663](https://github.com/Rebilly/rebilly/issues/22663)) ([05beff6](https://github.com/Rebilly/rebilly/commit/05beff6f1ab761d6475d8a4f42ada844de6d8d6f))
package/dist/index.js CHANGED
@@ -5357,12 +5357,12 @@ let A$1 = class A extends Error {
5357
5357
  n2 && n2.data && (n2.data.error ? l = n2.data.error : n2.data.detail ? l = n2.data.detail : n2.data.title && (l = n2.data.title)), super(l), this.name = s || "RebillyError", this.response = n2, this.request = u, this.config = r2, this.status = n2 && n2.status ? n2.status : null, this.statusText = n2 && n2.statusText ? n2.statusText : null, this.details = n2 && n2.data && n2.data.details ? n2.data.details : null, this.invalidFields = n2 && n2.data && n2.data.invalidFields ? n2.data.invalidFields : null;
5358
5358
  }
5359
5359
  };
5360
- let Rt$1 = class Rt extends A$1 {
5360
+ let bt$1 = class bt extends A$1 {
5361
5361
  constructor(t2) {
5362
5362
  super({ error: t2, name: "RebillyRequestError" });
5363
5363
  }
5364
5364
  };
5365
- let bt$1 = class bt extends A$1 {
5365
+ let Rt$1 = class Rt extends A$1 {
5366
5366
  constructor(t2) {
5367
5367
  super({ error: t2, name: "RebillyValidationError" });
5368
5368
  }
@@ -5399,8 +5399,8 @@ let Tt$1 = class Tt extends A$1 {
5399
5399
  };
5400
5400
  const y = {
5401
5401
  RebillyError: A$1,
5402
- RebillyRequestError: Rt$1,
5403
- RebillyValidationError: bt$1,
5402
+ RebillyRequestError: bt$1,
5403
+ RebillyValidationError: Rt$1,
5404
5404
  RebillyNotFoundError: wt$1,
5405
5405
  RebillyConflictError: kt$1,
5406
5406
  RebillyForbiddenError: vt$1,
@@ -5771,7 +5771,7 @@ function O$1({ options: e2 }) {
5771
5771
  }
5772
5772
  function o2() {
5773
5773
  const g = {
5774
- "REB-API-CONSUMER": `${["Rebilly", e2.appName, "js-sdk"].filter((m2) => m2).join("/")}@98f5079`
5774
+ "REB-API-CONSUMER": `${["Rebilly", e2.appName, "js-sdk"].filter((m2) => m2).join("/")}@05beff6`
5775
5775
  };
5776
5776
  return e2.apiKey && (g["REB-APIKEY"] = e2.apiKey), g;
5777
5777
  }
@@ -5832,8 +5832,8 @@ function O$1({ options: e2 }) {
5832
5832
  function ut2(c) {
5833
5833
  N2(k$1.response, c);
5834
5834
  }
5835
- function b({ request: c, isCollection: g, config: m2 }) {
5836
- const p = z2(m2), { id: R, cancelToken: $t2 } = q$1.save();
5835
+ function R({ request: c, isCollection: g, config: m2 }) {
5836
+ const p = z2(m2), { id: b, cancelToken: $t2 } = q$1.save();
5837
5837
  p.cancelToken = $t2;
5838
5838
  const W2 = (async function() {
5839
5839
  try {
@@ -5846,10 +5846,10 @@ function O$1({ options: e2 }) {
5846
5846
  } catch (d) {
5847
5847
  return L2({ error: d });
5848
5848
  } finally {
5849
- q$1.deleteById(R);
5849
+ q$1.deleteById(b);
5850
5850
  }
5851
5851
  })();
5852
- return W2.cancel = (d) => I$1.cancelById(R, d), W2;
5852
+ return W2.cancel = (d) => I$1.cancelById(b, d), W2;
5853
5853
  }
5854
5854
  function ot2({ response: c, isCollection: g, config: m2 }) {
5855
5855
  return g ? new yt$1(c, m2) : new tt$1(c, m2);
@@ -5883,13 +5883,13 @@ function O$1({ options: e2 }) {
5883
5883
  return { ...lt2(c) };
5884
5884
  }
5885
5885
  function U2(c, g = {}) {
5886
- return b({
5886
+ return R({
5887
5887
  request: (m2) => t2.get(c, m2),
5888
5888
  config: { params: g }
5889
5889
  });
5890
5890
  }
5891
5891
  function ct2(c, g) {
5892
- return b({
5892
+ return R({
5893
5893
  request: (m2) => t2.get(c, m2),
5894
5894
  config: { params: g },
5895
5895
  isCollection: true
@@ -5897,31 +5897,31 @@ function O$1({ options: e2 }) {
5897
5897
  }
5898
5898
  function V2(c, g, m2 = {}) {
5899
5899
  let p = {};
5900
- return m2.authenticate === false && (p = { headers: l() }, delete p.headers.common["REB-APIKEY"], delete p.headers.common.Authorization), m2.params && (p.params = { ...m2.params }), b({
5901
- request: (R) => t2.post(c, g, R),
5900
+ return m2.authenticate === false && (p = { headers: l() }, delete p.headers.common["REB-APIKEY"], delete p.headers.common.Authorization), m2.params && (p.params = { ...m2.params }), R({
5901
+ request: (b) => t2.post(c, g, b),
5902
5902
  config: p
5903
5903
  });
5904
5904
  }
5905
5905
  function J2(c, g, m2 = {}) {
5906
- return b({
5906
+ return R({
5907
5907
  request: (p) => t2.put(c, g, p),
5908
5908
  config: { params: m2 }
5909
5909
  });
5910
5910
  }
5911
5911
  function it2(c, g) {
5912
- return b({
5912
+ return R({
5913
5913
  request: (m2) => t2.patch(c, g, m2),
5914
5914
  config: {}
5915
5915
  });
5916
5916
  }
5917
5917
  function gt2(c) {
5918
- return b({
5918
+ return R({
5919
5919
  request: (g) => t2.delete(c, g),
5920
5920
  config: {}
5921
5921
  });
5922
5922
  }
5923
5923
  function at2(c, g) {
5924
- return b({
5924
+ return R({
5925
5925
  request: (m2) => t2.delete(c, m2),
5926
5926
  config: { data: { ...g } }
5927
5927
  });
@@ -5934,10 +5934,10 @@ function O$1({ options: e2 }) {
5934
5934
  throw new y.RebillyConflictError({
5935
5935
  message: "A resource already exists with this ID. Please use a different ID."
5936
5936
  });
5937
- } catch (R) {
5938
- if (R.name === "RebillyNotFoundError")
5937
+ } catch (b) {
5938
+ if (b.name === "RebillyNotFoundError")
5939
5939
  return J2(c, m2, p);
5940
- throw R;
5940
+ throw b;
5941
5941
  }
5942
5942
  }
5943
5943
  async function ft2(c, g) {
@@ -7646,7 +7646,7 @@ function Ae$1({ apiHandler: e2 }) {
7646
7646
  }
7647
7647
  };
7648
7648
  }
7649
- function Re$1({ apiHandler: e2 }) {
7649
+ function be({ apiHandler: e2 }) {
7650
7650
  return {
7651
7651
  /**
7652
7652
  * @param { rebilly.GetJournalAccountCollectionRequest } request
@@ -7682,7 +7682,7 @@ function Re$1({ apiHandler: e2 }) {
7682
7682
  }
7683
7683
  };
7684
7684
  }
7685
- function be({ apiHandler: e2 }) {
7685
+ function Re$1({ apiHandler: e2 }) {
7686
7686
  return {
7687
7687
  /**
7688
7688
  * @param { rebilly.GetJournalEntryCollectionRequest } request
@@ -9513,7 +9513,7 @@ class $s {
9513
9513
  apiHandler: t2
9514
9514
  }), this.depositRequests = ne$1({ apiHandler: t2 }), this.depositStrategies = ue$1({ apiHandler: t2 }), this.digitalWallets = oe$1({ apiHandler: t2 }), this.disputes = le$1({ apiHandler: t2 }), this.emailDeliverySettings = ce$1({ apiHandler: t2 }), this.emailMessages = ie$1({ apiHandler: t2 }), this.emailNotifications = ge({ apiHandler: t2 }), this.events = ae$1({ apiHandler: t2 }), this.externalIdentifiers = me$1({ apiHandler: t2 }), this.externalServicesSettings = fe$1({
9515
9515
  apiHandler: t2
9516
- }), this.fees = $e$1({ apiHandler: t2 }), this.files = pe$1({ apiHandler: t2 }), this.gatewayAccounts = he$1({ apiHandler: t2 }), this.integrations = ye$1({ apiHandler: t2 }), this.invoices = Ae$1({ apiHandler: t2 }), this.journalAccounts = Re$1({ apiHandler: t2 }), this.journalEntries = be({ apiHandler: t2 }), this.journalRecords = we$1({ apiHandler: t2 }), this.kycDocuments = ke$1({ apiHandler: t2 }), this.kycRequests = ve$1({ apiHandler: t2 }), this.kycSettings = qe$1({ apiHandler: t2 }), this.lists = de$1({ apiHandler: t2 }), this.memberships = Te$1({ apiHandler: t2 }), this.orderCancellations = Ie$1({ apiHandler: t2 }), this.orderPauses = Se$1({ apiHandler: t2 }), this.orderReactivations = Ee$1({ apiHandler: t2 }), this.orders = xe$1({ apiHandler: t2 }), this.organizationExports = Pe$1({ apiHandler: t2 }), this.organizations = Ce$1({ apiHandler: t2 }), this.paymentCardsBankNames = De$1({ apiHandler: t2 }), this.paymentInstruments = je$1({ apiHandler: t2 }), this.paymentMethods = Me$1({ apiHandler: t2 }), this.paymentTokens = Oe$1({ apiHandler: t2 }), this.payoutRequestAllocations = Fe$1({
9516
+ }), this.fees = $e$1({ apiHandler: t2 }), this.files = pe$1({ apiHandler: t2 }), this.gatewayAccounts = he$1({ apiHandler: t2 }), this.integrations = ye$1({ apiHandler: t2 }), this.invoices = Ae$1({ apiHandler: t2 }), this.journalAccounts = be({ apiHandler: t2 }), this.journalEntries = Re$1({ apiHandler: t2 }), this.journalRecords = we$1({ apiHandler: t2 }), this.kycDocuments = ke$1({ apiHandler: t2 }), this.kycRequests = ve$1({ apiHandler: t2 }), this.kycSettings = qe$1({ apiHandler: t2 }), this.lists = de$1({ apiHandler: t2 }), this.memberships = Te$1({ apiHandler: t2 }), this.orderCancellations = Ie$1({ apiHandler: t2 }), this.orderPauses = Se$1({ apiHandler: t2 }), this.orderReactivations = Ee$1({ apiHandler: t2 }), this.orders = xe$1({ apiHandler: t2 }), this.organizationExports = Pe$1({ apiHandler: t2 }), this.organizations = Ce$1({ apiHandler: t2 }), this.paymentCardsBankNames = De$1({ apiHandler: t2 }), this.paymentInstruments = je$1({ apiHandler: t2 }), this.paymentMethods = Me$1({ apiHandler: t2 }), this.paymentTokens = Oe$1({ apiHandler: t2 }), this.payoutRequestAllocations = Fe$1({
9517
9517
  apiHandler: t2
9518
9518
  }), this.payoutRequestBatches = Be$1({ apiHandler: t2 }), this.payoutRequests = Ke$1({ apiHandler: t2 }), this.payouts = Ne$1({ apiHandler: t2 }), this.plans = Le$1({ apiHandler: t2 }), this.previews = ze$1({ apiHandler: t2 }), this.products = Ue$1({ apiHandler: t2 }), this.profile = Ve$1({ apiHandler: t2 }), this.purchase = Je$1({ apiHandler: t2 }), this.quotes = We$1({ apiHandler: t2 }), this.resource = Ge$1({ apiHandler: t2 }), this.riskScoreRules = Ye$1({ apiHandler: t2 }), this.roles = Qe$1({ apiHandler: t2 }), this.search = Xe$1({ apiHandler: t2 }), this.segments = Ze$1({ apiHandler: t2 }), this.sendThroughAttribution = _e$1({ apiHandler: t2 }), this.serviceCredentials = He$1({ apiHandler: t2 }), this.shippingRates = ts({ apiHandler: t2 }), this.status = es({ apiHandler: t2 }), this.subscriptionCancellations = ss({
9519
9519
  apiHandler: t2
@@ -10093,7 +10093,7 @@ function As({ apiHandler: e2 }) {
10093
10093
  }
10094
10094
  };
10095
10095
  }
10096
- function Rs({ apiHandler: e2 }) {
10096
+ function bs({ apiHandler: e2 }) {
10097
10097
  return {
10098
10098
  /**
10099
10099
  * @returns { rebilly.GetSubscriptionSummaryMetricReportResponsePromise } response
@@ -10103,7 +10103,7 @@ function Rs({ apiHandler: e2 }) {
10103
10103
  }
10104
10104
  };
10105
10105
  }
10106
- function bs({ apiHandler: e2 }) {
10106
+ function Rs({ apiHandler: e2 }) {
10107
10107
  return {
10108
10108
  getActivityFeed({ eventTypes: t2 = null, limit: s = 1e3, offset: r2 = 0 }) {
10109
10109
  const n2 = {
@@ -10143,8 +10143,8 @@ const w = {
10143
10143
  DataExportsResource: hs,
10144
10144
  HistogramsResource: ys,
10145
10145
  ReportsResource: As,
10146
- SubscriptionsResource: Rs,
10147
- TimelinesResource: bs,
10146
+ SubscriptionsResource: bs,
10147
+ TimelinesResource: Rs,
10148
10148
  LocationResource: ws
10149
10149
  };
10150
10150
  class ks {