@notabene/javascript-sdk 2.14.2 → 2.15.0-next.2

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.
@@ -73,6 +73,26 @@ export declare interface Agent {
73
73
  verified?: boolean;
74
74
  }
75
75
 
76
+ /**
77
+ * Explicit layout configuration for the agent selection step.
78
+ *
79
+ * @remarks
80
+ * Controls which options appear in the main selection area vs. behind the
81
+ * "Can't find what you're looking for?" fallback toggle.
82
+ *
83
+ * When the main section has no options (empty or all filtered out), fallback options
84
+ * are promoted and shown inline. When the main section has only one option, a dedicated
85
+ * single-option layout is used.
86
+ *
87
+ * @public
88
+ */
89
+ export declare interface AgentSections {
90
+ /** Options shown in the main selection area (always visible) */
91
+ main?: SectionOption[];
92
+ /** Options shown behind the "Can't find what you're looking for?" fallback toggle */
93
+ fallback?: SectionOption[];
94
+ }
95
+
76
96
  /**
77
97
  * The type of Agent. Either a wallet or a VASP
78
98
  * @public
@@ -653,6 +673,7 @@ export declare interface Counterparty {
653
673
  */
654
674
  export declare type CounterpartyAssistConfig = boolean | {
655
675
  counterpartyTypes: PersonType[];
676
+ /** @remarks Requires a transactionId to be passed in. */
656
677
  identityVerification?: IdentityVerificationConfig;
657
678
  };
658
679
 
@@ -938,8 +959,6 @@ export declare type HostMessage<T, O> = UpdateValue<T, O>;
938
959
  declare type IdentityVerificationConfig = {
939
960
  /** The required verification method. If not specified, none will be used */
940
961
  requiredMethod?: IdentityVerificationMethod;
941
- /** OAuth provider(s) to use for authentication. Can be a single provider or array of providers */
942
- oAuth?: OAuthProvider[] | OAuthProvider;
943
962
  };
944
963
 
945
964
  /**
@@ -947,8 +966,7 @@ declare type IdentityVerificationConfig = {
947
966
  * @public
948
967
  */
949
968
  export declare enum IdentityVerificationMethod {
950
- SMS = "sms",
951
- EMAIL = "email"
969
+ SMS = "sms"
952
970
  }
953
971
 
954
972
  /**
@@ -1327,15 +1345,6 @@ declare type NaturalPersonV2 = Omit<NaturalPerson_2, 'name'> & {
1327
1345
  name: NaturalPersonNameV2;
1328
1346
  };
1329
1347
 
1330
- /**
1331
- * Primary constructor for Notabene UX elements
1332
- *
1333
- * This class provides methods to create and manage various Notabene components
1334
- * such as withdrawal assist, deposit assist, connect, and deposit request.
1335
- * It also handles URL generation and fragment decoding for these components.
1336
- *
1337
- * @public
1338
- */
1339
1348
  declare class Notabene {
1340
1349
  private nodeUrl?;
1341
1350
  private authToken?;
@@ -1460,14 +1469,6 @@ export declare interface NotabeneConfig {
1460
1469
  locale?: string;
1461
1470
  }
1462
1471
 
1463
- /**
1464
- * Supported OAuth providers for authentication
1465
- * @public
1466
- */
1467
- export declare enum OAuthProvider {
1468
- COINBASE = "coinbase"
1469
- }
1470
-
1471
1472
  /**
1472
1473
  * Originating VASP
1473
1474
  * Represents the VASP which initiates the VA transfer
@@ -1713,6 +1714,25 @@ export declare interface ScreenshotProof extends OwnershipProof {
1713
1714
  url: string;
1714
1715
  }
1715
1716
 
1717
+ /**
1718
+ * Options that can be placed in either the main or fallback sections of the agent selection step.
1719
+ *
1720
+ * @remarks
1721
+ * Combines proof types from {@link ProofTypes} with additional UI-specific options:
1722
+ * - `ProofTypes.SelfDeclaration` — ownership proof via self-declaration
1723
+ * - `ProofTypes.Screenshot` — ownership proof via screenshot upload
1724
+ * - `ProofTypes.MicroTransfer` — ownership proof via micro-transfer
1725
+ * - `'signature'` — wallet connection for ownership proof via signature
1726
+ * - `'manual-signing'` — ownership proof via manual message signing
1727
+ * - `'add-vasp'` — manually add an unlisted exchange/VASP (hosted flow)
1728
+ *
1729
+ * Options are automatically filtered by flow (e.g. `add-vasp` is ignored in self-hosted).
1730
+ * Including an option implicitly enables that capability.
1731
+ *
1732
+ * @public
1733
+ */
1734
+ export declare type SectionOption = 'self-declaration' | 'screenshot' | 'microtransfer' | 'signature' | 'manual-signing' | 'add-vasp';
1735
+
1716
1736
  /**
1717
1737
  * Interface for signature-based ownership proofs that use cryptographic message signing
1718
1738
  *
@@ -1933,6 +1953,11 @@ export declare interface TransactionIVMS101Request {
1933
1953
  * @public
1934
1954
  */
1935
1955
  export declare interface TransactionOptions {
1956
+ /**
1957
+ * Explicit layout configuration for the agent selection step.
1958
+ * When provided, takes precedence over legacy fields (`proofs.fallbacks`, `vasps.addUnknown`).
1959
+ */
1960
+ agentSections?: AgentSections;
1936
1961
  proofs?: {
1937
1962
  reuseProof?: boolean;
1938
1963
  microTransfer?: {
@@ -10,7 +10,7 @@
10
10
  "author": "Notabene <developers@notabene.id>",
11
11
  "license": "MIT",
12
12
  "packageManager": "yarn@4.5.1",
13
- "version": "2.14.2",
13
+ "version": "2.15.0-next.2",
14
14
  "source": "src/notabene.ts",
15
15
  "main": "dist/cjs/notabene.cjs",
16
16
  "module": "dist/esm/notabene.js",
@@ -73,6 +73,26 @@ export declare interface Agent {
73
73
  verified?: boolean;
74
74
  }
75
75
 
76
+ /**
77
+ * Explicit layout configuration for the agent selection step.
78
+ *
79
+ * @remarks
80
+ * Controls which options appear in the main selection area vs. behind the
81
+ * "Can't find what you're looking for?" fallback toggle.
82
+ *
83
+ * When the main section has no options (empty or all filtered out), fallback options
84
+ * are promoted and shown inline. When the main section has only one option, a dedicated
85
+ * single-option layout is used.
86
+ *
87
+ * @public
88
+ */
89
+ export declare interface AgentSections {
90
+ /** Options shown in the main selection area (always visible) */
91
+ main?: SectionOption[];
92
+ /** Options shown behind the "Can't find what you're looking for?" fallback toggle */
93
+ fallback?: SectionOption[];
94
+ }
95
+
76
96
  /**
77
97
  * The type of Agent. Either a wallet or a VASP
78
98
  * @public
@@ -653,6 +673,7 @@ export declare interface Counterparty {
653
673
  */
654
674
  export declare type CounterpartyAssistConfig = boolean | {
655
675
  counterpartyTypes: PersonType[];
676
+ /** @remarks Requires a transactionId to be passed in. */
656
677
  identityVerification?: IdentityVerificationConfig;
657
678
  };
658
679
 
@@ -938,8 +959,6 @@ export declare type HostMessage<T, O> = UpdateValue<T, O>;
938
959
  declare type IdentityVerificationConfig = {
939
960
  /** The required verification method. If not specified, none will be used */
940
961
  requiredMethod?: IdentityVerificationMethod;
941
- /** OAuth provider(s) to use for authentication. Can be a single provider or array of providers */
942
- oAuth?: OAuthProvider[] | OAuthProvider;
943
962
  };
944
963
 
945
964
  /**
@@ -947,8 +966,7 @@ declare type IdentityVerificationConfig = {
947
966
  * @public
948
967
  */
949
968
  export declare enum IdentityVerificationMethod {
950
- SMS = "sms",
951
- EMAIL = "email"
969
+ SMS = "sms"
952
970
  }
953
971
 
954
972
  /**
@@ -1327,15 +1345,6 @@ declare type NaturalPersonV2 = Omit<NaturalPerson_2, 'name'> & {
1327
1345
  name: NaturalPersonNameV2;
1328
1346
  };
1329
1347
 
1330
- /**
1331
- * Primary constructor for Notabene UX elements
1332
- *
1333
- * This class provides methods to create and manage various Notabene components
1334
- * such as withdrawal assist, deposit assist, connect, and deposit request.
1335
- * It also handles URL generation and fragment decoding for these components.
1336
- *
1337
- * @public
1338
- */
1339
1348
  declare class Notabene {
1340
1349
  private nodeUrl?;
1341
1350
  private authToken?;
@@ -1460,14 +1469,6 @@ export declare interface NotabeneConfig {
1460
1469
  locale?: string;
1461
1470
  }
1462
1471
 
1463
- /**
1464
- * Supported OAuth providers for authentication
1465
- * @public
1466
- */
1467
- export declare enum OAuthProvider {
1468
- COINBASE = "coinbase"
1469
- }
1470
-
1471
1472
  /**
1472
1473
  * Originating VASP
1473
1474
  * Represents the VASP which initiates the VA transfer
@@ -1713,6 +1714,25 @@ export declare interface ScreenshotProof extends OwnershipProof {
1713
1714
  url: string;
1714
1715
  }
1715
1716
 
1717
+ /**
1718
+ * Options that can be placed in either the main or fallback sections of the agent selection step.
1719
+ *
1720
+ * @remarks
1721
+ * Combines proof types from {@link ProofTypes} with additional UI-specific options:
1722
+ * - `ProofTypes.SelfDeclaration` — ownership proof via self-declaration
1723
+ * - `ProofTypes.Screenshot` — ownership proof via screenshot upload
1724
+ * - `ProofTypes.MicroTransfer` — ownership proof via micro-transfer
1725
+ * - `'signature'` — wallet connection for ownership proof via signature
1726
+ * - `'manual-signing'` — ownership proof via manual message signing
1727
+ * - `'add-vasp'` — manually add an unlisted exchange/VASP (hosted flow)
1728
+ *
1729
+ * Options are automatically filtered by flow (e.g. `add-vasp` is ignored in self-hosted).
1730
+ * Including an option implicitly enables that capability.
1731
+ *
1732
+ * @public
1733
+ */
1734
+ export declare type SectionOption = 'self-declaration' | 'screenshot' | 'microtransfer' | 'signature' | 'manual-signing' | 'add-vasp';
1735
+
1716
1736
  /**
1717
1737
  * Interface for signature-based ownership proofs that use cryptographic message signing
1718
1738
  *
@@ -1933,6 +1953,11 @@ export declare interface TransactionIVMS101Request {
1933
1953
  * @public
1934
1954
  */
1935
1955
  export declare interface TransactionOptions {
1956
+ /**
1957
+ * Explicit layout configuration for the agent selection step.
1958
+ * When provided, takes precedence over legacy fields (`proofs.fallbacks`, `vasps.addUnknown`).
1959
+ */
1960
+ agentSections?: AgentSections;
1936
1961
  proofs?: {
1937
1962
  reuseProof?: boolean;
1938
1963
  microTransfer?: {