@rebilly/instruments 16.138.0 → 16.140.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,6 +1,6 @@
1
- ## [16.138.0](https://github.com/Rebilly/rebilly/compare/instruments/core-v16.137.0...instruments/core-v16.138.0) (2026-06-25)
1
+ ## [16.140.0](https://github.com/Rebilly/rebilly/compare/instruments/core-v16.139.0...instruments/core-v16.140.0) (2026-06-29)
2
2
 
3
3
 
4
4
  ### Features
5
5
 
6
- * **instruments:** allow instrument selection on ready payout requests ([#22783](https://github.com/Rebilly/rebilly/issues/22783)) ([960fbd3](https://github.com/Rebilly/rebilly/commit/960fbd372d3ef1c478137ea8b918b73cc7ca8a44))
6
+ * **api-metadata, rebilly-js-sdk:** Update resources based on latest api definitions ([#23050](https://github.com/Rebilly/rebilly/issues/23050)) ([32f77a5](https://github.com/Rebilly/rebilly/commit/32f77a5c62f41b36361abf8a26107ff7ac27b05b))
package/dist/index.js CHANGED
@@ -5365,12 +5365,12 @@ let A$1 = class A extends Error {
5365
5365
  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;
5366
5366
  }
5367
5367
  };
5368
- let bt$1 = class bt extends A$1 {
5368
+ let Rt$1 = class Rt extends A$1 {
5369
5369
  constructor(t2) {
5370
5370
  super({ error: t2, name: "RebillyRequestError" });
5371
5371
  }
5372
5372
  };
5373
- let Rt$1 = class Rt extends A$1 {
5373
+ let bt$1 = class bt extends A$1 {
5374
5374
  constructor(t2) {
5375
5375
  super({ error: t2, name: "RebillyValidationError" });
5376
5376
  }
@@ -5407,8 +5407,8 @@ let Tt$1 = class Tt extends A$1 {
5407
5407
  };
5408
5408
  const y = {
5409
5409
  RebillyError: A$1,
5410
- RebillyRequestError: bt$1,
5411
- RebillyValidationError: Rt$1,
5410
+ RebillyRequestError: Rt$1,
5411
+ RebillyValidationError: bt$1,
5412
5412
  RebillyNotFoundError: wt$1,
5413
5413
  RebillyConflictError: kt$1,
5414
5414
  RebillyForbiddenError: vt$1,
@@ -5779,7 +5779,7 @@ function O$1({ options: e2 }) {
5779
5779
  }
5780
5780
  function o2() {
5781
5781
  const g = {
5782
- "REB-API-CONSUMER": `${["Rebilly", e2.appName, "js-sdk"].filter((m2) => m2).join("/")}@960fbd3`
5782
+ "REB-API-CONSUMER": `${["Rebilly", e2.appName, "js-sdk"].filter((m2) => m2).join("/")}@32f77a5`
5783
5783
  };
5784
5784
  return e2.apiKey && (g["REB-APIKEY"] = e2.apiKey), g;
5785
5785
  }
@@ -5840,8 +5840,8 @@ function O$1({ options: e2 }) {
5840
5840
  function ut2(c) {
5841
5841
  N2(k$1.response, c);
5842
5842
  }
5843
- function R({ request: c, isCollection: g, config: m2 }) {
5844
- const p = z2(m2), { id: b, cancelToken: $t2 } = q$1.save();
5843
+ function b({ request: c, isCollection: g, config: m2 }) {
5844
+ const p = z2(m2), { id: R, cancelToken: $t2 } = q$1.save();
5845
5845
  p.cancelToken = $t2;
5846
5846
  const W2 = (async function() {
5847
5847
  try {
@@ -5854,10 +5854,10 @@ function O$1({ options: e2 }) {
5854
5854
  } catch (d) {
5855
5855
  return L2({ error: d });
5856
5856
  } finally {
5857
- q$1.deleteById(b);
5857
+ q$1.deleteById(R);
5858
5858
  }
5859
5859
  })();
5860
- return W2.cancel = (d) => I$1.cancelById(b, d), W2;
5860
+ return W2.cancel = (d) => I$1.cancelById(R, d), W2;
5861
5861
  }
5862
5862
  function ot2({ response: c, isCollection: g, config: m2 }) {
5863
5863
  return g ? new yt$1(c, m2) : new tt$1(c, m2);
@@ -5891,13 +5891,13 @@ function O$1({ options: e2 }) {
5891
5891
  return { ...lt2(c) };
5892
5892
  }
5893
5893
  function U2(c, g = {}) {
5894
- return R({
5894
+ return b({
5895
5895
  request: (m2) => t2.get(c, m2),
5896
5896
  config: { params: g }
5897
5897
  });
5898
5898
  }
5899
5899
  function ct2(c, g) {
5900
- return R({
5900
+ return b({
5901
5901
  request: (m2) => t2.get(c, m2),
5902
5902
  config: { params: g },
5903
5903
  isCollection: true
@@ -5905,31 +5905,31 @@ function O$1({ options: e2 }) {
5905
5905
  }
5906
5906
  function V2(c, g, m2 = {}) {
5907
5907
  let p = {};
5908
- 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({
5909
- request: (b) => t2.post(c, g, b),
5908
+ 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({
5909
+ request: (R) => t2.post(c, g, R),
5910
5910
  config: p
5911
5911
  });
5912
5912
  }
5913
5913
  function J2(c, g, m2 = {}) {
5914
- return R({
5914
+ return b({
5915
5915
  request: (p) => t2.put(c, g, p),
5916
5916
  config: { params: m2 }
5917
5917
  });
5918
5918
  }
5919
5919
  function it2(c, g) {
5920
- return R({
5920
+ return b({
5921
5921
  request: (m2) => t2.patch(c, g, m2),
5922
5922
  config: {}
5923
5923
  });
5924
5924
  }
5925
5925
  function gt2(c) {
5926
- return R({
5926
+ return b({
5927
5927
  request: (g) => t2.delete(c, g),
5928
5928
  config: {}
5929
5929
  });
5930
5930
  }
5931
5931
  function at2(c, g) {
5932
- return R({
5932
+ return b({
5933
5933
  request: (m2) => t2.delete(c, m2),
5934
5934
  config: { data: { ...g } }
5935
5935
  });
@@ -5942,10 +5942,10 @@ function O$1({ options: e2 }) {
5942
5942
  throw new y.RebillyConflictError({
5943
5943
  message: "A resource already exists with this ID. Please use a different ID."
5944
5944
  });
5945
- } catch (b) {
5946
- if (b.name === "RebillyNotFoundError")
5945
+ } catch (R) {
5946
+ if (R.name === "RebillyNotFoundError")
5947
5947
  return J2(c, m2, p);
5948
- throw b;
5948
+ throw R;
5949
5949
  }
5950
5950
  }
5951
5951
  async function ft2(c, g) {
@@ -6060,16 +6060,18 @@ function Nt$1({ apiHandler: e2 }) {
6060
6060
  offset: s = null,
6061
6061
  sort: r2 = null,
6062
6062
  filter: n2 = null,
6063
- q: u = null
6063
+ q: u = null,
6064
+ expand: o2 = null
6064
6065
  } = {}) {
6065
- const o2 = { limit: t2, offset: s, sort: r2, filter: n2, q: u };
6066
- return e2.getAll("aml-checks", o2);
6066
+ const l = { limit: t2, offset: s, sort: r2, filter: n2, q: u, expand: o2 };
6067
+ return e2.getAll("aml-checks", l);
6067
6068
  },
6068
6069
  /**
6069
6070
  * @returns { rebilly.GetAmlCheckResponsePromise } response
6070
6071
  */
6071
- get({ id: t2 }) {
6072
- return e2.get(`aml-checks/${t2}`);
6072
+ get({ id: t2, expand: s = null }) {
6073
+ const r2 = { expand: s };
6074
+ return e2.get(`aml-checks/${t2}`, r2);
6073
6075
  },
6074
6076
  startReview({ id: t2 }) {
6075
6077
  return e2.post(`aml-checks/${t2}/start-review`);
@@ -7654,7 +7656,7 @@ function Ae$1({ apiHandler: e2 }) {
7654
7656
  }
7655
7657
  };
7656
7658
  }
7657
- function be({ apiHandler: e2 }) {
7659
+ function Re$1({ apiHandler: e2 }) {
7658
7660
  return {
7659
7661
  /**
7660
7662
  * @param { rebilly.GetJournalAccountCollectionRequest } request
@@ -7690,7 +7692,7 @@ function be({ apiHandler: e2 }) {
7690
7692
  }
7691
7693
  };
7692
7694
  }
7693
- function Re$1({ apiHandler: e2 }) {
7695
+ function be({ apiHandler: e2 }) {
7694
7696
  return {
7695
7697
  /**
7696
7698
  * @param { rebilly.GetJournalEntryCollectionRequest } request
@@ -9521,7 +9523,7 @@ class $s {
9521
9523
  apiHandler: t2
9522
9524
  }), 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({
9523
9525
  apiHandler: t2
9524
- }), 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({
9526
+ }), 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({
9525
9527
  apiHandler: t2
9526
9528
  }), 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({
9527
9529
  apiHandler: t2
@@ -10101,7 +10103,7 @@ function As({ apiHandler: e2 }) {
10101
10103
  }
10102
10104
  };
10103
10105
  }
10104
- function bs({ apiHandler: e2 }) {
10106
+ function Rs({ apiHandler: e2 }) {
10105
10107
  return {
10106
10108
  /**
10107
10109
  * @returns { rebilly.GetSubscriptionSummaryMetricReportResponsePromise } response
@@ -10111,7 +10113,7 @@ function bs({ apiHandler: e2 }) {
10111
10113
  }
10112
10114
  };
10113
10115
  }
10114
- function Rs({ apiHandler: e2 }) {
10116
+ function bs({ apiHandler: e2 }) {
10115
10117
  return {
10116
10118
  getActivityFeed({ eventTypes: t2 = null, limit: s = 1e3, offset: r2 = 0 }) {
10117
10119
  const n2 = {
@@ -10151,8 +10153,8 @@ const w = {
10151
10153
  DataExportsResource: hs,
10152
10154
  HistogramsResource: ys,
10153
10155
  ReportsResource: As,
10154
- SubscriptionsResource: bs,
10155
- TimelinesResource: Rs,
10156
+ SubscriptionsResource: Rs,
10157
+ TimelinesResource: bs,
10156
10158
  LocationResource: ws
10157
10159
  };
10158
10160
  class ks {