@notabene/javascript-sdk 2.16.0-next.1 → 2.16.0-next.5

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/README.md CHANGED
@@ -806,6 +806,7 @@ const options: TransactionOptions = {
806
806
  },
807
807
  },
808
808
  vasps: {
809
+ // V1 options — `searchable` is mutually exclusive with V2 `showTrustStatus` below
809
810
  addUnknown: true, // Allow users to add a missing VASP - Defaults to false
810
811
  onlyActive: true, // Only list active VASPs - Default false
811
812
  searchable: [
@@ -813,6 +814,13 @@ const options: TransactionOptions = {
813
814
  VASPSearchControl.PENDING, // JS: 'pending'
814
815
  ], // Control searches for VASPs - Defaults to undefined
815
816
  },
817
+ // V2 alternative — filter by trust status instead of `searchable`. `addUnknown`
818
+ // and `onlyActive` remain valid; `searchable` cannot be combined with `showTrustStatus`:
819
+ // vasps: {
820
+ // addUnknown: true,
821
+ // onlyActive: true,
822
+ // showTrustStatus: ['TRUSTED', 'NEW'], // 'TRUSTED' | 'NEW' | 'FLAGGED' | 'BANNED'
823
+ // },
816
824
  counterpartyAssist: { // Allows users to share a link to collect counterparty data
817
825
  counterpartyTypes: [
818
826
  PersonType.LEGAL, // JS: 'legal'