@notabene/javascript-sdk 2.0.0-next.18 → 2.0.0-next.19

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.
@@ -84,7 +84,7 @@ declare type Beneficiary = {
84
84
  * @public
85
85
  */
86
86
  declare type BeneficiaryFields = {
87
- destination?: destination;
87
+ destination?: Destination;
88
88
  };
89
89
 
90
90
  /**
@@ -101,34 +101,72 @@ declare type BeneficiaryVASP = {
101
101
  * A blockchain address
102
102
  * @public
103
103
  */
104
- declare type BlockchainAddress = string;
104
+ /**
105
+ * A native blockchain address string
106
+ *
107
+ * @remarks
108
+ * Represents a blockchain address in the native format specific to a particular chain.
109
+ * This could be an Ethereum address, Bitcoin address, or other chain-specific format.
110
+ * The address format and validation rules depend on the underlying blockchain.
111
+ *
112
+ * @example "0x742d35Cc6634C0532925a3b844Bc454e4438f44e" // Ethereum address
113
+ * @example "1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa" // Bitcoin address
114
+ * @example "cosmos1t2uflqwqe0fsj0shcfkrvpukewcw40yjj6hdc0" // Cosmos address
115
+ * @public
116
+ */
117
+ export declare type BlockchainAddress = string;
105
118
 
106
119
  /**
107
- * Chain Agnostic Account Identifier
108
- * Represents an account on a specific blockchain
120
+ * Chain Agnostic Account Identifier (CAIP-10)
121
+ * Represents an account/address on a specific blockchain following the CAIP-10 specification.
122
+ * Extends CAIP-2 by adding the account address specific to that chain.
123
+ *
109
124
  * Format: `{caip2}:{address}`
110
- * @example "eip155:1:0x742d35Cc6634C0532925a3b844Bc454e4438f44e" for an Ethereum account
125
+ * - caip2: The CAIP-2 chain identifier (e.g. 'eip155:1')
126
+ * - address: Chain-specific account address format
127
+ *
128
+ * @example "eip155:1:0x742d35Cc6634C0532925a3b844Bc454e4438f44e" // Ethereum account on mainnet
129
+ * @example "bip122:000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f:128Lkh3S7CkDTBZ8W7BbpsN3YYizJMp8p6" // Bitcoin account on mainnet
130
+ * @example "cosmos:cosmoshub-3:cosmos1t2uflqwqe0fsj0shcfkrvpukewcw40yjj6hdc0" // Cosmos account
131
+ * @see {@link https://github.com/ChainAgnostic/CAIPs/blob/master/CAIPs/caip-10.md | CAIP-10 Specification}
111
132
  * @public
112
133
  */
113
- declare type CAIP10 = `${CAIP2}:${string}`;
134
+ export declare type CAIP10 = `${CAIP2}:${string}`;
114
135
 
115
136
  /**
116
- * Chain Agnostic Asset Identifier
117
- * Represents an asset on a specific blockchain
137
+ * Chain Agnostic Asset Identifier (CAIP-19)
138
+ * Represents an asset/token on a specific blockchain following the CAIP-19 specification.
139
+ * Extends CAIP-2 by adding asset type and identifier information.
140
+ *
118
141
  * Format: `{caip2}/{asset_namespace}:{asset_reference}`
119
- * @example "eip155:1/erc20:0x6b175474e89094c44da98b954eedeac495271d0f" for DAI on Ethereum
142
+ * - caip2: The CAIP-2 chain identifier (e.g. 'eip155:1')
143
+ * - asset_namespace: The asset standard (e.g. 'erc20', 'erc721', 'slip44')
144
+ * - asset_reference: Chain/standard-specific asset identifier
145
+ *
146
+ * @example "eip155:1/erc20:0x6b175474e89094c44da98b954eedeac495271d0f" // DAI token on Ethereum mainnet
147
+ * @example "eip155:1/erc721:0x06012c8cf97BEaD5deAe237070F9587f8E7A266d" // CryptoKitties NFT contract
148
+ * @example "cosmos:cosmoshub-3/slip44:118" // ATOM token on Cosmos Hub
149
+ * @see {@link https://github.com/ChainAgnostic/CAIPs/blob/master/CAIPs/caip-19.md | CAIP-19 Specification}
120
150
  * @public
121
151
  */
122
- declare type CAIP19 = `${CAIP2}/${string}:${string}`;
152
+ export declare type CAIP19 = `${CAIP2}/${string}:${string}`;
123
153
 
124
154
  /**
125
- * Chain Agnostic Blockchain Identifier
126
- * Represents a blockchain in a chain-agnostic way
155
+ * Chain Agnostic Blockchain Identifier (CAIP-2)
156
+ * Represents a blockchain in a chain-agnostic way following the CAIP-2 specification.
157
+ * The identifier consists of a namespace and reference separated by a colon.
158
+ *
127
159
  * Format: `namespace:reference`
128
- * @example "eip155:1" for Ethereum Mainnet
160
+ * - namespace: Represents the blockchain namespace (e.g. 'eip155', 'bip122', 'cosmos')
161
+ * - reference: Chain-specific identifier within that namespace
162
+ *
163
+ * @example "eip155:1" // Ethereum Mainnet
164
+ * @example "bip122:000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f" // Bitcoin Mainnet
165
+ * @example "cosmos:cosmoshub-3" // Cosmos Hub Mainnet
166
+ * @see {@link https://github.com/ChainAgnostic/CAIPs/blob/master/CAIPs/caip-2.md | CAIP-2 Specification}
129
167
  * @public
130
168
  */
131
- declare type CAIP2 = `${string}:${string}`;
169
+ export declare type CAIP2 = `${string}:${string}`;
132
170
 
133
171
  /**
134
172
  * Options for callback and redirect URIs
@@ -143,12 +181,22 @@ export declare interface CallbackOptions {
143
181
  * Represents a cancel component message
144
182
  * @internal
145
183
  */
146
- declare type Cancel = {
184
+ export declare type Cancel = {
147
185
  type: CMType.CANCEL;
148
186
  };
149
187
 
150
188
  /**
151
- * Component Message Types
189
+ * Component Message Type enum representing different message types that can be sent
190
+ * between the host and component.
191
+ *
192
+ * @remarks
193
+ * - COMPLETE: Indicates a completed operation with response data
194
+ * - RESIZE: Request to adjust component size/dimensions
195
+ * - RESULT: Operation result notification
196
+ * - READY: Component is initialized and ready
197
+ * - INVALID: Validation failed with errors
198
+ * - ERROR: Operation encountered an error
199
+ * - CANCEL: Operation was cancelled
152
200
  * @public
153
201
  */
154
202
  export declare const enum CMType {
@@ -167,19 +215,50 @@ export declare const enum CMType {
167
215
  * @param response - The Response object which wraps T
168
216
  * @public
169
217
  */
170
- declare type Completed<T> = {
218
+ export declare type Completed<T> = {
171
219
  type: CMType.COMPLETE;
172
220
  response: TransactionResponse<T>;
173
221
  };
174
222
 
175
223
  /**
176
- * Component Message
224
+ * Union type representing all possible messages that can be sent from a component
225
+ *
226
+ * @remarks
227
+ * Components communicate their state and results back to the host application
228
+ * through these message types:
229
+ * - Completed: Operation finished successfully with response data
230
+ * - Cancel: User cancelled the operation
231
+ * - Error: Operation failed with error message
232
+ * - Ready: Component initialized and ready for use
233
+ * - ResizeRequest: Component needs to adjust its dimensions
234
+ * - InvalidValue: Validation failed with current partial value
235
+ *
236
+ * @typeParam T - The value type that will be returned in Completed messages
237
+ *
238
+ * @see {@link Completed} For successful completion message format
239
+ * @see {@link Cancel} For cancellation message format
240
+ * @see {@link Error} For error message format
241
+ * @see {@link Ready} For ready message format
242
+ * @see {@link ResizeRequest} For resize message format
243
+ * @see {@link InvalidValue} For validation failure message format
177
244
  * @public
178
245
  */
179
246
  export declare type ComponentMessage<T> = Completed<T> | Cancel | Error_2 | Ready | ResizeRequest | InvalidValue<T>;
180
247
 
181
248
  /**
182
- * An abstract request for communicating with a component
249
+ * Base interface for requests sent to SDK components
250
+ *
251
+ * @remarks
252
+ * Defines core properties that all component requests share:
253
+ * - Optional unique request ID for tracking/correlating requests and responses
254
+ * - Optional customer detailsfor pre-filling component data
255
+ *
256
+ * This interface is extended by specific request types like:
257
+ * - Transaction requests for sending/receiving assets
258
+ * - Connection requests for establishing VASP to VASP communication
259
+ *
260
+ * @see {@link Transaction} For transaction-specific request properties
261
+ * @see {@link ConnectionRequest} For connection-specific request properties
183
262
  * @public
184
263
  */
185
264
  declare interface ComponentRequest {
@@ -187,7 +266,26 @@ declare interface ComponentRequest {
187
266
  customer?: Counterparty;
188
267
  }
189
268
 
190
- declare interface ComponentResponse {
269
+ /**
270
+ * Base response interface for all SDK component operations
271
+ *
272
+ * @remarks
273
+ * Provides standardized response propertiesfor component interactions:
274
+ * - requestID: Links response back to the originating request
275
+ * - valid: Boolean indicating if the operation was valid/successful
276
+ * - status: Current verification status of the operation
277
+ * - errors: Array of validation errors if any occurred
278
+ *
279
+ * This interface is extended by specific response types like:
280
+ * - TransResponse for transaction operations
281
+ * - ConnectionResponse for VASP connection operations
282
+ *
283
+ * @see {@link Status} For possible status values
284
+ * @see {@link ValidationError} For error structure
285
+ * @see {@link TransactionResponse} For transaction-specific responses
286
+ * @public
287
+ */
288
+ export declare interface ComponentResponse {
191
289
  requestID: RequestID;
192
290
  valid: boolean;
193
291
  status: Status;
@@ -206,6 +304,28 @@ export declare interface ConnectionRequest extends ComponentRequest {
206
304
  * The counterparty of a transaction.
207
305
  * @public
208
306
  */
307
+ /**
308
+ * Interface representing a party involved in a transaction other than the initiator
309
+ *
310
+ * @remarks
311
+ fines the core properties that identify and describe a counterparty:
312
+ * - name: The display or legal name of the counterparty
313
+ * - accountNumber: An account identifier/reference number
314
+ * - did: Decentralized identifier for the counterparty
315
+ * - type: Classification as natural person, legal entity, or self
316
+ * - verified: Whether the counterparty's identity has been verified
317
+ * - geographicAddress: Physical/mailing address information
318
+ * - nationalIdentification: Government-issued ID details
319
+ * - website: Official web presence
320
+ * - phone: Contact phone number
321
+ * - email: Contact email address
322
+ *
323
+ * This interface serves as the base for more specific counterparty types:
324
+ * @see {@link NaturalPerson} For individual person properties
325
+ * @see {@link LegalPerson} For organization/entity properties
326
+ *
327
+ * @public
328
+ */
209
329
  export declare interface Counterparty {
210
330
  name?: string;
211
331
  accountNumber?: string;
@@ -222,8 +342,7 @@ export declare interface Counterparty {
222
342
  /**
223
343
  * A crypto credential
224
344
  * @public
225
- */
226
- declare type CryptoCredential = `${string}.${string}.mastercard`;
345
+ */ export declare type CryptoCredential = `${string}.${string}.mastercard`;
227
346
 
228
347
  /**
229
348
  * Date and Place of Birth
@@ -275,19 +394,32 @@ declare type DepositRequestFields = {
275
394
  * The destination of a transaction either a blockchain address, a CAIP-19 address, or a travel address.
276
395
  * @public
277
396
  */
278
- export declare type destination = BlockchainAddress | CAIP10 | CryptoCredential | TravelAddress;
397
+ export declare type Destination = BlockchainAddress | CAIP10 | CryptoCredential | TravelAddress;
279
398
 
280
399
  /**
281
400
  * A Decentralized Identifier
282
401
  * @public
283
402
  */
284
- declare type DID = `did:${string}:${string}`;
403
+ export declare type DID = `did:${string}:${string}`;
285
404
 
286
405
  /**
287
- * Digital Token Identifier
406
+ * Digital Token Identifier (DTI) following ISO 24165 standard
407
+ *
408
+ * @remarks
409
+ * A standardized identifier for digital assets and cryptocurrencies. The DTI system
410
+ * provides unique and unambiguous identification of digital tokens, supporting interoperability
411
+ * and clarity in financial markets.
412
+ *
413
+ * Format: `DTI[NNNNN]` where N is a digit
414
+ *
415
+ * @example "DTI00001" // Example DTI for Bitcoin
416
+ * @example "DTI00002" // Example DTI for Ethereum
417
+ *
418
+ * @see {@link https://dtif.org/ | Digital Token Identifier Foundation}
419
+ * @see {@link https://www.iso.org/standard/77895.html | ISO 24165}
288
420
  * @public
289
421
  */
290
- declare type DTI = string;
422
+ export declare type DTI = string;
291
423
 
292
424
  /**
293
425
  * An embedded Notabene component
@@ -382,6 +514,7 @@ declare type Error_2 = {
382
514
  type: CMType.ERROR;
383
515
  message: string;
384
516
  };
517
+ export { Error_2 as Error }
385
518
 
386
519
  /**
387
520
  * Field properties
@@ -392,22 +525,43 @@ declare type FieldOptions = boolean | {
392
525
  transmit: boolean;
393
526
  };
394
527
 
395
- declare type FieldTypes = {
528
+ /**
529
+ * Field type configuration
530
+ * @public
531
+ */
532
+ export declare type FieldTypes = {
396
533
  naturalPerson?: NaturalPersonFields;
397
534
  legalPerson?: LegalPersonFields;
398
535
  };
399
536
 
400
537
  /**
401
- * Host Message Types
538
+ * Host Message Type enum representing different message types that can be sent
539
+ * from the host application.
540
+ *
541
+ * @remarks
542
+ * - UPDATE: Message to update component value/state
543
+ * - REQUEST_RESPONSE: Message requesting a response from component
402
544
  * @public
403
545
  */
404
- declare const enum HMType {
546
+ export declare const enum HMType {
405
547
  UPDATE = "update",
406
548
  REQUEST_RESPONSE = "requestResponse"
407
549
  }
408
550
 
409
551
  /**
410
- * Host Messages
552
+ * Union type representing all possible messages that can be sent from the host application
553
+ * to a component
554
+ *
555
+ * @remarks
556
+ * Currently only supports update messages which allow the host to modify component
557
+ * and configuration. The host uses these messages to communicate changes to the component
558
+ * without requiring full reinitialization.
559
+ *
560
+ * @typeParam T - The value type that components operate on
561
+ * @typeParam O - The options type used to configure component behavior
562
+ *
563
+ * @see {@link UpdateValue} For the structure of update messages
564
+ * @see {@link HMType} For message type constants
411
565
  * @public
412
566
  */
413
567
  export declare type HostMessage<T, O> = UpdateValue<T, O>;
@@ -431,7 +585,7 @@ declare type IntermediaryVASP = {
431
585
  * @param errors - Array of validation errors
432
586
  * @internal
433
587
  */
434
- declare type InvalidValue<T> = {
588
+ export declare type InvalidValue<T> = {
435
589
  type: CMType.INVALID;
436
590
  value: Partial<T>;
437
591
  errors: ValidationError[];
@@ -472,12 +626,40 @@ export declare type IVMS101 = {
472
626
  payloadMetadata?: PayloadMetadata;
473
627
  };
474
628
 
629
+ /**
630
+ * Interface representing a legal entity (organization/company) involved in a transaction
631
+ *
632
+ * @remarks
633
+ * Extends the baseface to add properties specific to legal entities:
634
+ * - type: MustPersonType.LEGAL to identify as an organization
635
+ * - name: Required registered legal name of the entity
636
+ * - lei: Optional Legal Entity Identifier for regulated entities
637
+ * - logo: Optional URI to the organization's logo image
638
+ * - countryOfRegistration: Optional ISO country code where entity is registered
639
+ *
640
+ * This interface captures the additional identifying information required for
641
+ * legal persons under FATF Travel Rule requirements. The properties align with
642
+ * standard business KYC (Know Your Businessta collection practices.
643
+ *
644
+ * @see {@link Counterparty} For base properties common to all counterparties
645
+ * @see {@link PersonType} For person type classification
646
+ * @see {@link LEI} For Legal Entity Identifier format
647
+ * @public
648
+ */
649
+ export declare interface LegalPerson extends Counterparty {
650
+ type: PersonType.LEGAL;
651
+ name: string;
652
+ lei?: LEI;
653
+ logo?: URI;
654
+ countryOfRegistration?: ISOCountryCode;
655
+ }
656
+
475
657
  /**
476
658
  * Legal Person
477
659
  * Represents a legal person with all associated information
478
660
  * @public
479
661
  */
480
- declare type LegalPerson = {
662
+ declare type LegalPerson_2 = {
481
663
  /** The name of the legal person */
482
664
  name: LegalPersonName;
483
665
  /** The address of the legal person */
@@ -490,10 +672,6 @@ declare type LegalPerson = {
490
672
  countryOfRegistration?: ISOCountryCode;
491
673
  };
492
674
 
493
- /**
494
- * Field names for LegalPerson
495
- * @public
496
- */
497
675
  declare type LegalPersonFieldName = 'name' | 'lei' | 'website' | 'email' | 'phone' | 'geographicAddress' | 'nationalIdentification' | 'countryOfRegistration';
498
676
 
499
677
  /**
@@ -541,7 +719,7 @@ declare type LegalPersonNameTypeCode = 'LEGL' | 'SHRT' | 'TRAD';
541
719
  * A LEI Legal Entity Identifier
542
720
  * @public
543
721
  */
544
- declare type LEI = string;
722
+ export declare type LEI = string;
545
723
 
546
724
  /**
547
725
  * Local Legal Person Name ID
@@ -569,7 +747,14 @@ declare type LocalNaturalPersonNameID = {
569
747
  nameIdentifierType?: NaturalPersonNameTypeCode;
570
748
  };
571
749
 
572
- declare type MessageCallback<T> = (message: ComponentMessage<T>) => void;
750
+ /**
751
+ * Callback function for handling component messages.
752
+ *
753
+ * @typeParam T - The type of data contained in the component message
754
+ * @param message - The message object containing the component data and type
755
+ * @public
756
+ */
757
+ export declare type MessageCallback<T> = (message: ComponentMessage<T>) => void;
573
758
 
574
759
  /**
575
760
  * Ownership Proof using Micro Transfer
@@ -579,6 +764,7 @@ export declare interface MicroTransferProof extends OwnershipProof {
579
764
  type: ProofTypes.MicroTransfer;
580
765
  txhash: string;
581
766
  chain: CAIP2;
767
+ destination: BlockchainAddress;
582
768
  amountSubunits: string;
583
769
  }
584
770
 
@@ -587,7 +773,7 @@ export declare interface MicroTransferProof extends OwnershipProof {
587
773
  * Represents a national identifier for a person or entity
588
774
  * @public
589
775
  */
590
- declare type NationalIdentification = {
776
+ export declare type NationalIdentification = {
591
777
  /** National identifier (max 35 characters) */
592
778
  nationalIdentifier?: string;
593
779
  /** Type of national identifier */
@@ -605,12 +791,39 @@ declare type NationalIdentification = {
605
791
  */
606
792
  declare type NationalIdentifierTypeCode = 'ARNU' | 'CCPT' | 'RAID' | 'DRLC' | 'FIIN' | 'TXID' | 'SOCS' | 'IDCD' | 'LEIX' | 'MISC';
607
793
 
794
+ /**
795
+ * Interface representing a natural person (individual) involved in a transaction
796
+ *
797
+ * @remarks
798
+ * Extends the baseinterface to add properties specific to individual persons:
799
+ * - type: Must be PersonType.NATURAL to identify as an individual
800
+ * - dateOfBirth: Optional ISO format birth date for identity verification
801
+ * - placeOfBirth: Optional birth place for identity verification
802
+ * - countryOfResidence: Optional ISO country code of current residence
803
+ * - name: Required full legal name of the individual
804
+ *
805
+ * This interface captures the additional identifying information required for
806
+ * natural persons under FATF Travel Rule requirements. The properties align
807
+ * with standard KYC (Know Your Customer) data collection practices.
808
+ *
809
+ * @see {@link Counterparty} For base properties common to all counterparties
810
+ * @see {@link PersonType} For person type classification
811
+ * @public
812
+ */
813
+ export declare interface NaturalPerson extends Counterparty {
814
+ type: PersonType.NATURAL;
815
+ dateOfBirth?: ISODate;
816
+ placeOfBirth?: string;
817
+ countryOfResidence?: ISOCountryCode;
818
+ name: string;
819
+ }
820
+
608
821
  /**
609
822
  * Natural Person
610
823
  * Represents a natural person with all associated information
611
824
  * @public
612
825
  */
613
- declare type NaturalPerson = {
826
+ declare type NaturalPerson_2 = {
614
827
  /** The distinct words used as identification for an individual */
615
828
  name: NaturalPersonName;
616
829
  /** The particulars of a location at which a person may be communicated with */
@@ -632,7 +845,7 @@ declare type NaturalPerson = {
632
845
  declare type NaturalPersonFieldName = 'name' | 'website' | 'email' | 'phone' | 'geographicAddress' | 'nationalIdentification' | 'dateOfBirth' | 'placeOfBirth' | 'countryOfResidence';
633
846
 
634
847
  /**
635
- * Field properties by field name
848
+ * Field properties by field name for Natural persons
636
849
  * @public
637
850
  */
638
851
  declare type NaturalPersonFields = {
@@ -775,20 +988,28 @@ declare class Notabene {
775
988
  */
776
989
  decodeFragmentToObject(fragment: string): Record<string, string>;
777
990
  }
778
- export { Notabene }
779
991
  export default Notabene;
780
992
 
781
993
  /**
782
994
  * Notabene Asset Identifier
783
995
  * @public
784
996
  */
785
- declare type NotabeneAsset = string;
786
-
787
997
  /**
788
- * Configuration for the Notabene SDK
998
+ * Internal identifier for assets in the Notabene system
999
+ *
1000
+ * @remarks
1001
+ * A standardized string format used within Notabene to identify cryptocurrencies,
1002
+ * tokens, and other digital assets. This is Notabene's legacy asset identification
1003
+ * system that may be used alongside CAIP-19 and DTI identifiers.
789
1004
  *
1005
+ * @example "ETH_USDT" // USDT token on Ethereum
1006
+ * @example "BTC" // Bitcoin
1007
+ * @see {@link CAIP19} For chain-agnostic asset identifiers
1008
+ * @see {@link DTI} For ISO standardized identifiers
790
1009
  * @public
791
1010
  */
1011
+ export declare type NotabeneAsset = string;
1012
+
792
1013
  /**
793
1014
  * Configuration for the Notabene SDK
794
1015
  *
@@ -848,7 +1069,24 @@ declare type OriginatorFields = {
848
1069
  };
849
1070
 
850
1071
  /**
851
- * Ownership Proof
1072
+ * Base interface for proving ownership of an account or address
1073
+ *
1074
+ * @remarks
1075
+ * TheOwnershipProof interface provides a common structure for different types of ownership verification:
1076
+ * - All proofs must specify their type from the supported ProofTypes enum
1077
+ * - Current verification status is tracked via ProofStatus
1078
+ * - Links the proof to a decentralized identifier (DID)
1079
+ * - Specifies the blockchain account/address being proven using CAIP-10 format
1080
+ *
1081
+ * This interface is extended by specific proof types like:
1082
+ * - SignatureProof for cryptographic signatures
1083
+ * - DeclarationProof for self-declarations
1084
+ * - MicroTransferProof for transaction-based proof
1085
+ * - ScreenshotProof for image-based verification
1086
+ *
1087
+ * @see {@link ProofTypes} For supported proof methods
1088
+ * @see {@link ProofStatus} For possible verification states
1089
+ * @see {@link CAIP10} For address format specification
852
1090
  * @public
853
1091
  */
854
1092
  export declare interface OwnershipProof {
@@ -886,15 +1124,32 @@ declare enum PayloadVersionCode {
886
1124
  */
887
1125
  declare type Person = {
888
1126
  /** Natural person information */
889
- naturalPerson?: NaturalPerson;
1127
+ naturalPerson?: NaturalPerson_2;
890
1128
  /** Legal person information */
891
- legalPerson?: LegalPerson;
1129
+ legalPerson?: LegalPerson_2;
892
1130
  };
893
1131
 
894
1132
  /**
895
1133
  * The type of counterparty. Either a natural person or a legal person. If the customer is the same as the counterparty then the counterparty is a self.
896
1134
  * @public
897
1135
  */
1136
+ /**
1137
+ * Enum defining the types of persons/entities in a transaction
1138
+ *
1139
+ * @remarks
1140
+ * This classification system aligns with FATF travel rule requirements and defines:
1141
+ * - NATURAL: Individual human persons acting in their own capacity
1142
+ * - LEGAL: Registered organizations, companies, or other legal entities
1143
+ * - SELF: When the counterparty is the same as the customer (first party transaction)
1144
+ *
1145
+ * The type affects what information must be collected and transmitted as part of
1146
+ * travel rule compliance. Different verification and due diligence requirements
1147
+ * apply to each type.
1148
+ *
1149
+ * @see {@link NaturalPerson} For natural person data requirements
1150
+ * @see {@link LegalPerson} For legal person data requirements
1151
+ * @public
1152
+ */
898
1153
  export declare enum PersonType {
899
1154
  NATURAL = "natural",
900
1155
  LEGAL = "legal",
@@ -902,7 +1157,15 @@ export declare enum PersonType {
902
1157
  }
903
1158
 
904
1159
  /**
905
- * Status of the proof
1160
+ * Status of the ownership proof verification process
1161
+ *
1162
+ * @remarks
1163
+ * Represents the different states that an ownership proof can be in during and after verification:
1164
+ * - PENDING: Initial state where verification is in progress or awaiting processing
1165
+ * - FAILED: The proof was rejected due to failing verification checks
1166
+ * - FLAGGED: The proof requires manual review due to suspicious or unclear verification results
1167
+ * - VERIFIED: The proof has passed all verification checks successfully
1168
+ *
906
1169
  * @public
907
1170
  */
908
1171
  export declare enum ProofStatus {
@@ -913,7 +1176,23 @@ export declare enum ProofStatus {
913
1176
  }
914
1177
 
915
1178
  /**
916
- * The type of Proofs supported
1179
+ * Types of ownership proofs supported by the system
1180
+ *
1181
+ * @remarks
1182
+ * Supported proof types:
1183
+ * - SelfDeclaration: User self-declares ownership without cryptographic proof
1184
+ * - PersonalSignEIP191: Ethereum personal signature following EIP-191 standard
1185
+ * - SIWE: Sign-In with Ethereum message signature (EIP-4361)
1186
+ * - PersonalSignEIP712: Ethereum typed data signature following EIP-712 standard
1187
+ * - PersonalSignBIP137: Bitcoin message signature following BIP-137
1188
+ * - PersonalSignXPUB: Extended public key signature for HD wallets
1189
+ * - MicroTransfer: Proof via small blockchain transaction
1190
+ * - Screenshot: Image proof of ownership/access
1191
+ *
1192
+ * @see {@link SignatureProof} For signature-based proofs
1193
+ * @see {@link DeclarationProof} For self-declaration proofs
1194
+ * @see {@link MicroTransferProof} For transaction-based proofs
1195
+ * @see {@link ScreenshotProof} For screenshot proofs
917
1196
  * @public
918
1197
  */
919
1198
  export declare enum ProofTypes {
@@ -931,7 +1210,7 @@ export declare enum ProofTypes {
931
1210
  * Represents a ready component message
932
1211
  * @public
933
1212
  */
934
- declare type Ready = {
1213
+ export declare type Ready = {
935
1214
  type: CMType.READY;
936
1215
  };
937
1216
 
@@ -941,7 +1220,7 @@ declare type RequestID = UUID;
941
1220
  * Represents a resize request component message. This is handled by the library.
942
1221
  * @internal
943
1222
  */
944
- declare type ResizeRequest = {
1223
+ export declare type ResizeRequest = {
945
1224
  type: CMType.RESIZE;
946
1225
  height: number;
947
1226
  };
@@ -956,7 +1235,20 @@ export declare interface ScreenshotProof extends OwnershipProof {
956
1235
  }
957
1236
 
958
1237
  /**
959
- * Ownership Proof using Message Signature
1238
+ * Interface for signature-based ownership proofs that use cryptographic message signing
1239
+ *
1240
+ * @remarks
1241
+ * Extends the base OwnershipProface to add signature-specific properties:
1242
+ * - Supports multiple signature standards like EIP-191, EIP-712, BIP-137, SIWE
1243
+ * - Includes the cryptographic proof signature string
1244
+ * - Contains an attestation message that was signed
1245
+ * - Records which wallet provider was used for signing
1246
+ *
1247
+ * The signature proves ownership by demonstrating control of the private keys
1248
+ * associated with the claimed address.
1249
+ *
1250
+ * @see {@link ProofTypes} For supported signature types
1251
+ * @see {@link OwnershipProof} For base proof properties
960
1252
  * @public
961
1253
  */
962
1254
  export declare interface SignatureProof extends OwnershipProof {
@@ -996,7 +1288,26 @@ export declare type Theme = {
996
1288
  };
997
1289
 
998
1290
  /**
999
- * An abstract transaction object
1291
+ * Core transaction interface representing a crypto asset transfer between parties
1292
+ *
1293
+ * @remarks
1294
+ * Extends ComponentRequest to add transaction-specific properties:
1295
+ * - agent: The entity facilitating/executing the transaction
1296
+ * - counterparty: The other party involved in the transaction
1297
+ * - asset: The cryptocurrency or token being transferred
1298
+ * - amountDecimal: The amount to transfer in decimal format
1299
+ * - proof: Optional ownership proof verifying control of involved addresses
1300
+ * - assetPrice: Optional price information in a fiat currency
1301
+ *
1302
+ * This interface serves as the base for specific transaction types like:
1303
+ * - Withdrawals for sending assets out
1304
+ * - Deposits for receiving assets
1305
+ * - Deposit requests for requesting asset transfers
1306
+ *
1307
+ * @see {@link Withdrawal} For withdrawal-specific transaction properties
1308
+ * @see {@link Deposit} For deposit-specific transaction properties
1309
+ * @see {@link Agent} For agent details
1310
+ * @see {@link Counterparty} For counterparty information
1000
1311
  * @public
1001
1312
  */
1002
1313
  export declare interface Transaction extends ComponentRequest {
@@ -1037,12 +1348,26 @@ export declare interface TransactionOptions {
1037
1348
  }
1038
1349
 
1039
1350
  /**
1040
- * The response of a transaction
1351
+ * Response interface for transaction-related operations
1352
+ *
1353
+ * @remarks
1354
+ * Extends ComponentResponse to add transaction-specific response data:
1355
+ * - value: The resulting transaction value of generic type V
1356
+ * - ivms101: IVMS 101 travel rule data for the transaction
1357
+ * - proof: Optional ownership proof details if required
1358
+ * - txCreate: Optional V1 transaction payload for legacy API compatibility
1359
+ *
1360
+ * @typeParam V - Type of the transaction value being returned
1361
+ *
1362
+ * @see {@link ComponentResponse} For base response properties
1363
+ * @see {@link IVMS101} For travel rule data structure
1364
+ * @see {@link OwnershipProof} For proof details
1365
+ * @see {@link V1Transaction} For legacy transaction format
1041
1366
  * @public
1042
1367
  */
1043
1368
  export declare interface TransactionResponse<V> extends ComponentResponse {
1044
1369
  value: V;
1045
- ivms: IVMS101;
1370
+ ivms101: IVMS101;
1046
1371
  proof?: OwnershipProof;
1047
1372
  txCreate?: V1Transaction;
1048
1373
  }
@@ -1067,16 +1392,43 @@ declare type TransliterationMethodCode = 'arab' | 'aran' | 'armn' | 'cyrl' | 'de
1067
1392
  /**
1068
1393
  * A travel address
1069
1394
  * @public
1070
- */
1071
- declare type TravelAddress = `ta${string}`;
1395
+
1396
+ * A standardized travel rule address format
1397
+ *
1398
+ * @remarks
1399
+ * Represents a special address format used for travel rule compliance. Travel addresses
1400
+ * are prefixed with 'ta' and contain encoded information about the transaction
1401
+ * and counterparty details required for travel rule reporting.
1402
+ *
1403
+ * The format ensures consistent handling of travel rule data across different
1404
+ * VASPs and blockchain networks while maintaining privacy.
1405
+ *
1406
+ * @example "ta1234abcd..." // Example travel rule address
1407
+ * @see {@link BlockchainAddress} For native chain addresses
1408
+ * @see {@link CAIP10} For chain-agnostic addresses
1409
+
1410
+ */ export declare type TravelAddress = `ta${string}`;
1072
1411
 
1073
1412
  /**
1074
- * Represents an update value host message. This is sent from Host to component.
1075
- * @typeParam T - The overall Value type being sent
1076
- * @typeParam O - The Option type being sent
1413
+ * Message type for updating component state and configuration from host application
1414
+ *
1415
+ * @remarks
1416
+ * Defines the structure of update messages sent from host to component:
1417
+ * - type: Identifies this as an update message
1418
+ * - value: New partial state/data to update the component with
1419
+ * - options: Optional configuration parameters to modify component behavior
1420
+ *
1421
+ * The host can use this to dynamically update both the component's data
1422
+ * and its configuration without requiring a full reload/reinitialize.
1423
+ *
1424
+ * @typeParam T - The type of the value being updated
1425
+ * @typeParam O - The type of the optional configuration parameters
1426
+ *
1427
+ * @see {@link HMType} For message type constants
1428
+ * @see {@link HostMessage} For full host message type union
1077
1429
  * @public
1078
1430
  */
1079
- declare type UpdateValue<T, O> = {
1431
+ export declare type UpdateValue<T, O> = {
1080
1432
  type: HMType.UPDATE;
1081
1433
  value: Partial<T>;
1082
1434
  options?: O;
@@ -1089,11 +1441,29 @@ declare type UpdateValue<T, O> = {
1089
1441
  declare type URI = string;
1090
1442
 
1091
1443
  /**
1092
- * UUID v4
1444
+ * UUID v4 string identifier
1445
+ * A universally unique identifier that follows RFC 4122 format
1446
+ * Format: 8-4-4-4-12 hexadecimal digits
1447
+ * @example "550e8400-e29b-41d4-a716-446655440000"
1448
+ * @see {@link https://tools.ietf.org/html/rfc4122 | RFC4122}
1093
1449
  * @public
1094
1450
  */
1095
1451
  declare type UUID = string;
1096
1452
 
1453
+ /**
1454
+ * Represents a legacy V1 API asset format supporting both Notabene and CAIP-19 identifiers
1455
+ *
1456
+ * @remarks
1457
+ * Used for backwards compatibility with V1 API transaction payloads:
1458
+ * - Can be either a simple Notabene asset string
1459
+ * - Or an object containing a CAIP-19 identifier
1460
+ *
1461
+ * @example "ETH_USDT" // Notabene asset format
1462
+ * @example \{ caip19: "eip155:1/erc20:0x6b175474e89094c44da98b954eedeac495271d0f" \} // CAIP-19 format
1463
+ * @see {@link NotabeneAsset} For Notabene asset format
1464
+ * @see {@link CAIP19} For CAIP-19 asset format
1465
+ * @public
1466
+ */
1097
1467
  declare type V1Asset = NotabeneAsset | {
1098
1468
  caip19: CAIP19;
1099
1469
  };
@@ -1102,7 +1472,7 @@ declare type V1Asset = NotabeneAsset | {
1102
1472
  * Transaction payload suitable for calling Notabene v1 tx/create
1103
1473
  * @public
1104
1474
  */
1105
- declare type V1Transaction = {
1475
+ export declare type V1Transaction = {
1106
1476
  transactionAsset: V1Asset;
1107
1477
  transactionAmount: string;
1108
1478
  originatorEqualsBeneficiary?: boolean;
@@ -1117,7 +1487,7 @@ declare type V1Transaction = {
1117
1487
  * Validation error
1118
1488
  * @public
1119
1489
  */
1120
- declare type ValidationError = {
1490
+ export declare type ValidationError = {
1121
1491
  attribute: string;
1122
1492
  message: string;
1123
1493
  };
@@ -1133,7 +1503,11 @@ export declare interface VASP extends Agent {
1133
1503
  countryOfRegistration?: ISOCountryCode;
1134
1504
  }
1135
1505
 
1136
- declare type VASPOptions = {
1506
+ /**
1507
+ * Options for which VASPs to be searchable
1508
+ * @public
1509
+ */
1510
+ export declare type VASPOptions = {
1137
1511
  addUnknown?: boolean;
1138
1512
  onlyActive?: boolean;
1139
1513
  };