@notabene/javascript-sdk 2.0.1 → 2.0.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.
- package/dist/notabene.cjs +1 -1
- package/dist/notabene.d.ts +1565 -0
- package/dist/notabene.js +1 -1
- package/dist/tsdoc-metadata.json +11 -0
- package/docs/README.md +656 -0
- package/docs/_media/LICENSE.md +21 -0
- package/docs/_media/TransactionOptions.md +93 -0
- package/docs/_media/locales.ts +48 -0
- package/docs/ivms/types/README.md +46 -0
- package/docs/ivms/types/enumerations/PayloadVersionCode.md +33 -0
- package/docs/ivms/types/interfaces/PayloadMetadata.md +34 -0
- package/docs/ivms/types/type-aliases/Address.md +114 -0
- package/docs/ivms/types/type-aliases/AddressTypeCode.md +16 -0
- package/docs/ivms/types/type-aliases/Beneficiary.md +30 -0
- package/docs/ivms/types/type-aliases/BeneficiaryVASP.md +24 -0
- package/docs/ivms/types/type-aliases/DateAndPlaceOfBirth.md +30 -0
- package/docs/ivms/types/type-aliases/ISOCountryCode.md +22 -0
- package/docs/ivms/types/type-aliases/ISODate.md +23 -0
- package/docs/ivms/types/type-aliases/IVMS101.md +41 -0
- package/docs/ivms/types/type-aliases/IntermediaryVASP.md +30 -0
- package/docs/ivms/types/type-aliases/LegalPerson.md +48 -0
- package/docs/ivms/types/type-aliases/LegalPersonName.md +36 -0
- package/docs/ivms/types/type-aliases/LegalPersonNameID.md +30 -0
- package/docs/ivms/types/type-aliases/LegalPersonNameTypeCode.md +16 -0
- package/docs/ivms/types/type-aliases/LocalLegalPersonNameID.md +30 -0
- package/docs/ivms/types/type-aliases/LocalNaturalPersonNameID.md +36 -0
- package/docs/ivms/types/type-aliases/NationalIdentification.md +42 -0
- package/docs/ivms/types/type-aliases/NationalIdentifierTypeCode.md +16 -0
- package/docs/ivms/types/type-aliases/NaturalPerson.md +54 -0
- package/docs/ivms/types/type-aliases/NaturalPersonName.md +36 -0
- package/docs/ivms/types/type-aliases/NaturalPersonNameID.md +36 -0
- package/docs/ivms/types/type-aliases/NaturalPersonNameTypeCode.md +16 -0
- package/docs/ivms/types/type-aliases/OriginatingVASP.md +24 -0
- package/docs/ivms/types/type-aliases/Originator.md +30 -0
- package/docs/ivms/types/type-aliases/Person.md +30 -0
- package/docs/ivms/types/type-aliases/TransferPath.md +24 -0
- package/docs/ivms/types/type-aliases/TransliterationMethodCode.md +16 -0
- package/docs/modules.md +11 -0
- package/docs/notabene/README.md +368 -0
- package/docs/notabene/classes/EmbeddedComponent.md +347 -0
- package/docs/notabene/classes/default.md +221 -0
- package/docs/notabene/functions/decodeFragmentToObject.md +27 -0
- package/docs/notabene/interfaces/NotabeneConfig.md +69 -0
- package/docs/notabene/type-aliases/MessageCallback.md +31 -0
- package/docs/types/README.md +154 -0
- package/docs/types/enumerations/AgentType.md +29 -0
- package/docs/types/enumerations/CMType.md +90 -0
- package/docs/types/enumerations/HMType.md +35 -0
- package/docs/types/enumerations/PersonType.md +55 -0
- package/docs/types/enumerations/ProofStatus.md +57 -0
- package/docs/types/enumerations/ProofTypes.md +148 -0
- package/docs/types/enumerations/Status.md +59 -0
- package/docs/types/enumerations/ValidationSections.md +59 -0
- package/docs/types/interfaces/Agent.md +74 -0
- package/docs/types/interfaces/CallbackOptions.md +29 -0
- package/docs/types/interfaces/ComponentRequest.md +50 -0
- package/docs/types/interfaces/ComponentResponse.md +71 -0
- package/docs/types/interfaces/ConnectionRecord.md +111 -0
- package/docs/types/interfaces/ConnectionRequest.md +51 -0
- package/docs/types/interfaces/Counterparty.md +135 -0
- package/docs/types/interfaces/DeclarationProof.md +89 -0
- package/docs/types/interfaces/Deposit.md +147 -0
- package/docs/types/interfaces/DepositRequest.md +111 -0
- package/docs/types/interfaces/DepositRequestOptions.md +19 -0
- package/docs/types/interfaces/LegalPerson.md +202 -0
- package/docs/types/interfaces/MicroTransferProof.md +119 -0
- package/docs/types/interfaces/NaturalPerson.md +201 -0
- package/docs/types/interfaces/OwnershipProof.md +77 -0
- package/docs/types/interfaces/ScreenshotProof.md +79 -0
- package/docs/types/interfaces/SignatureProof.md +115 -0
- package/docs/types/interfaces/ThresholdOptions.md +47 -0
- package/docs/types/interfaces/Transaction.md +136 -0
- package/docs/types/interfaces/TransactionOptions.md +93 -0
- package/docs/types/interfaces/TransactionResponse.md +130 -0
- package/docs/types/interfaces/VASP.md +127 -0
- package/docs/types/interfaces/Wallet.md +117 -0
- package/docs/types/interfaces/Withdrawal.md +147 -0
- package/docs/types/type-aliases/BlockchainAddress.md +36 -0
- package/docs/types/type-aliases/CAIP10.md +39 -0
- package/docs/types/type-aliases/CAIP19.md +40 -0
- package/docs/types/type-aliases/CAIP2.md +39 -0
- package/docs/types/type-aliases/CAIP220.md +15 -0
- package/docs/types/type-aliases/Cancel.md +23 -0
- package/docs/types/type-aliases/Completed.md +35 -0
- package/docs/types/type-aliases/ComponentMessage.md +41 -0
- package/docs/types/type-aliases/ConnectionOptions.md +15 -0
- package/docs/types/type-aliases/CryptoCredential.md +15 -0
- package/docs/types/type-aliases/DID.md +15 -0
- package/docs/types/type-aliases/DTI.md +38 -0
- package/docs/types/type-aliases/Destination.md +15 -0
- package/docs/types/type-aliases/Error.md +29 -0
- package/docs/types/type-aliases/FieldOptions.md +15 -0
- package/docs/types/type-aliases/FieldTypes.md +25 -0
- package/docs/types/type-aliases/HostMessage.md +37 -0
- package/docs/types/type-aliases/ISOCurrency.md +15 -0
- package/docs/types/type-aliases/InvalidValue.md +45 -0
- package/docs/types/type-aliases/LEI.md +15 -0
- package/docs/types/type-aliases/LegalPersonFieldName.md +13 -0
- package/docs/types/type-aliases/LegalPersonFields.md +15 -0
- package/docs/types/type-aliases/NaturalPersonFieldName.md +15 -0
- package/docs/types/type-aliases/NaturalPersonFields.md +15 -0
- package/docs/types/type-aliases/NotabeneAsset.md +36 -0
- package/docs/types/type-aliases/Ready.md +21 -0
- package/docs/types/type-aliases/ResizeRequest.md +27 -0
- package/docs/types/type-aliases/Source.md +15 -0
- package/docs/types/type-aliases/Theme.md +33 -0
- package/docs/types/type-aliases/TransactionAsset.md +15 -0
- package/docs/types/type-aliases/TravelAddress.md +37 -0
- package/docs/types/type-aliases/URI.md +15 -0
- package/docs/types/type-aliases/UUID.md +27 -0
- package/docs/types/type-aliases/UpdateValue.md +54 -0
- package/docs/types/type-aliases/V1Asset.md +36 -0
- package/docs/types/type-aliases/V1Transaction.md +49 -0
- package/docs/types/type-aliases/VASPOptions.md +25 -0
- package/docs/types/type-aliases/ValidationError.md +25 -0
- package/package.json +3 -2
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
[**@notabene/javascript-sdk**](../../README.md) • **Docs**
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@notabene/javascript-sdk](../../modules.md) / [types](../README.md) / FieldTypes
|
|
6
|
+
|
|
7
|
+
# Type Alias: FieldTypes
|
|
8
|
+
|
|
9
|
+
> **FieldTypes**: `object`
|
|
10
|
+
|
|
11
|
+
Field type configuration
|
|
12
|
+
|
|
13
|
+
## Type declaration
|
|
14
|
+
|
|
15
|
+
### legalPerson?
|
|
16
|
+
|
|
17
|
+
> `optional` **legalPerson**: [`LegalPersonFields`](LegalPersonFields.md)
|
|
18
|
+
|
|
19
|
+
### naturalPerson?
|
|
20
|
+
|
|
21
|
+
> `optional` **naturalPerson**: [`NaturalPersonFields`](NaturalPersonFields.md)
|
|
22
|
+
|
|
23
|
+
## Defined in
|
|
24
|
+
|
|
25
|
+
[types.ts:698](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/f75feb1dd5dd91003bcc9aa8429d05c94c878b06/src/types.ts#L698)
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
[**@notabene/javascript-sdk**](../../README.md) • **Docs**
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@notabene/javascript-sdk](../../modules.md) / [types](../README.md) / HostMessage
|
|
6
|
+
|
|
7
|
+
# Type Alias: HostMessage\<T, O\>
|
|
8
|
+
|
|
9
|
+
> **HostMessage**\<`T`, `O`\>: [`UpdateValue`](UpdateValue.md)\<`T`, `O`\>
|
|
10
|
+
|
|
11
|
+
Union type representing all possible messages that can be sent from the host application
|
|
12
|
+
to a component
|
|
13
|
+
|
|
14
|
+
## Type Parameters
|
|
15
|
+
|
|
16
|
+
• **T**
|
|
17
|
+
|
|
18
|
+
The value type that components operate on
|
|
19
|
+
|
|
20
|
+
• **O**
|
|
21
|
+
|
|
22
|
+
The options type used to configure component behavior
|
|
23
|
+
|
|
24
|
+
## Remarks
|
|
25
|
+
|
|
26
|
+
Currently only supports update messages which allow the host to modify component
|
|
27
|
+
and configuration. The host uses these messages to communicate changes to the component
|
|
28
|
+
without requiring full reinitialization.
|
|
29
|
+
|
|
30
|
+
## See
|
|
31
|
+
|
|
32
|
+
- [UpdateValue](UpdateValue.md) For the structure of update messages
|
|
33
|
+
- [HMType](../enumerations/HMType.md) For message type constants
|
|
34
|
+
|
|
35
|
+
## Defined in
|
|
36
|
+
|
|
37
|
+
[types.ts:929](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/f75feb1dd5dd91003bcc9aa8429d05c94c878b06/src/types.ts#L929)
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
[**@notabene/javascript-sdk**](../../README.md) • **Docs**
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@notabene/javascript-sdk](../../modules.md) / [types](../README.md) / ISOCurrency
|
|
6
|
+
|
|
7
|
+
# Type Alias: ISOCurrency
|
|
8
|
+
|
|
9
|
+
> **ISOCurrency**: `string`
|
|
10
|
+
|
|
11
|
+
3 letter ISO currency code
|
|
12
|
+
|
|
13
|
+
## Defined in
|
|
14
|
+
|
|
15
|
+
[types.ts:231](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/f75feb1dd5dd91003bcc9aa8429d05c94c878b06/src/types.ts#L231)
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
[**@notabene/javascript-sdk**](../../README.md) • **Docs**
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@notabene/javascript-sdk](../../modules.md) / [types](../README.md) / InvalidValue
|
|
6
|
+
|
|
7
|
+
# Type Alias: InvalidValue\<T\>
|
|
8
|
+
|
|
9
|
+
> **InvalidValue**\<`T`\>: `object`
|
|
10
|
+
|
|
11
|
+
**`Internal`**
|
|
12
|
+
|
|
13
|
+
Represents an invalid value component message
|
|
14
|
+
|
|
15
|
+
## Type Parameters
|
|
16
|
+
|
|
17
|
+
• **T**
|
|
18
|
+
|
|
19
|
+
The overall Value type being returned
|
|
20
|
+
|
|
21
|
+
## Type declaration
|
|
22
|
+
|
|
23
|
+
### errors
|
|
24
|
+
|
|
25
|
+
> **errors**: [`ValidationError`](ValidationError.md)[]
|
|
26
|
+
|
|
27
|
+
### type
|
|
28
|
+
|
|
29
|
+
> **type**: [`INVALID`](../enumerations/CMType.md#invalid)
|
|
30
|
+
|
|
31
|
+
### value
|
|
32
|
+
|
|
33
|
+
> **value**: `Partial`\<`T`\>
|
|
34
|
+
|
|
35
|
+
## Param
|
|
36
|
+
|
|
37
|
+
The current Partial value
|
|
38
|
+
|
|
39
|
+
## Param
|
|
40
|
+
|
|
41
|
+
Array of validation errors
|
|
42
|
+
|
|
43
|
+
## Defined in
|
|
44
|
+
|
|
45
|
+
[types.ts:837](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/f75feb1dd5dd91003bcc9aa8429d05c94c878b06/src/types.ts#L837)
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
[**@notabene/javascript-sdk**](../../README.md) • **Docs**
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@notabene/javascript-sdk](../../modules.md) / [types](../README.md) / LEI
|
|
6
|
+
|
|
7
|
+
# Type Alias: LEI
|
|
8
|
+
|
|
9
|
+
> **LEI**: `string`
|
|
10
|
+
|
|
11
|
+
A LEI Legal Entity Identifier
|
|
12
|
+
|
|
13
|
+
## Defined in
|
|
14
|
+
|
|
15
|
+
[types.ts:225](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/f75feb1dd5dd91003bcc9aa8429d05c94c878b06/src/types.ts#L225)
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
[**@notabene/javascript-sdk**](../../README.md) • **Docs**
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@notabene/javascript-sdk](../../modules.md) / [types](../README.md) / LegalPersonFieldName
|
|
6
|
+
|
|
7
|
+
# Type Alias: LegalPersonFieldName
|
|
8
|
+
|
|
9
|
+
> **LegalPersonFieldName**: `"name"` \| `"lei"` \| `"website"` \| `"email"` \| `"phone"` \| `"geographicAddress"` \| `"nationalIdentification"` \| `"countryOfRegistration"`
|
|
10
|
+
|
|
11
|
+
## Defined in
|
|
12
|
+
|
|
13
|
+
[types.ts:429](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/f75feb1dd5dd91003bcc9aa8429d05c94c878b06/src/types.ts#L429)
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
[**@notabene/javascript-sdk**](../../README.md) • **Docs**
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@notabene/javascript-sdk](../../modules.md) / [types](../README.md) / LegalPersonFields
|
|
6
|
+
|
|
7
|
+
# Type Alias: LegalPersonFields
|
|
8
|
+
|
|
9
|
+
> **LegalPersonFields**: `{ [name in LegalPersonFieldName]?: FieldOptions }`
|
|
10
|
+
|
|
11
|
+
Field properties by field name
|
|
12
|
+
|
|
13
|
+
## Defined in
|
|
14
|
+
|
|
15
|
+
[types.ts:443](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/f75feb1dd5dd91003bcc9aa8429d05c94c878b06/src/types.ts#L443)
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
[**@notabene/javascript-sdk**](../../README.md) • **Docs**
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@notabene/javascript-sdk](../../modules.md) / [types](../README.md) / NaturalPersonFieldName
|
|
6
|
+
|
|
7
|
+
# Type Alias: NaturalPersonFieldName
|
|
8
|
+
|
|
9
|
+
> **NaturalPersonFieldName**: `"name"` \| `"website"` \| `"email"` \| `"phone"` \| `"geographicAddress"` \| `"nationalIdentification"` \| `"dateOfBirth"` \| `"placeOfBirth"` \| `"countryOfResidence"`
|
|
10
|
+
|
|
11
|
+
Field names for NaturalPerson
|
|
12
|
+
|
|
13
|
+
## Defined in
|
|
14
|
+
|
|
15
|
+
[types.ts:382](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/f75feb1dd5dd91003bcc9aa8429d05c94c878b06/src/types.ts#L382)
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
[**@notabene/javascript-sdk**](../../README.md) • **Docs**
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@notabene/javascript-sdk](../../modules.md) / [types](../README.md) / NaturalPersonFields
|
|
6
|
+
|
|
7
|
+
# Type Alias: NaturalPersonFields
|
|
8
|
+
|
|
9
|
+
> **NaturalPersonFields**: `{ [name in NaturalPersonFieldName]?: FieldOptions }`
|
|
10
|
+
|
|
11
|
+
Field properties by field name for Natural persons
|
|
12
|
+
|
|
13
|
+
## Defined in
|
|
14
|
+
|
|
15
|
+
[types.ts:397](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/f75feb1dd5dd91003bcc9aa8429d05c94c878b06/src/types.ts#L397)
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
[**@notabene/javascript-sdk**](../../README.md) • **Docs**
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@notabene/javascript-sdk](../../modules.md) / [types](../README.md) / NotabeneAsset
|
|
6
|
+
|
|
7
|
+
# Type Alias: NotabeneAsset
|
|
8
|
+
|
|
9
|
+
> **NotabeneAsset**: `string`
|
|
10
|
+
|
|
11
|
+
Internal identifier for assets in the Notabene system
|
|
12
|
+
|
|
13
|
+
## Remarks
|
|
14
|
+
|
|
15
|
+
A standardized string format used within Notabene to identify cryptocurrencies,
|
|
16
|
+
tokens, and other digital assets. This is Notabene's legacy asset identification
|
|
17
|
+
system that may be used alongside CAIP-19 and DTI identifiers.
|
|
18
|
+
|
|
19
|
+
## Examples
|
|
20
|
+
|
|
21
|
+
```ts
|
|
22
|
+
"ETH_USDT" // USDT token on Ethereum
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
```ts
|
|
26
|
+
"BTC" // Bitcoin
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## See
|
|
30
|
+
|
|
31
|
+
- [CAIP19](CAIP19.md) For chain-agnostic asset identifiers
|
|
32
|
+
- [DTI](DTI.md) For ISO standardized identifiers
|
|
33
|
+
|
|
34
|
+
## Defined in
|
|
35
|
+
|
|
36
|
+
[types.ts:139](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/f75feb1dd5dd91003bcc9aa8429d05c94c878b06/src/types.ts#L139)
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
[**@notabene/javascript-sdk**](../../README.md) • **Docs**
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@notabene/javascript-sdk](../../modules.md) / [types](../README.md) / Ready
|
|
6
|
+
|
|
7
|
+
# Type Alias: Ready
|
|
8
|
+
|
|
9
|
+
> **Ready**: `object`
|
|
10
|
+
|
|
11
|
+
Represents a ready component message
|
|
12
|
+
|
|
13
|
+
## Type declaration
|
|
14
|
+
|
|
15
|
+
### type
|
|
16
|
+
|
|
17
|
+
> **type**: [`READY`](../enumerations/CMType.md#ready)
|
|
18
|
+
|
|
19
|
+
## Defined in
|
|
20
|
+
|
|
21
|
+
[types.ts:799](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/f75feb1dd5dd91003bcc9aa8429d05c94c878b06/src/types.ts#L799)
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
[**@notabene/javascript-sdk**](../../README.md) • **Docs**
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@notabene/javascript-sdk](../../modules.md) / [types](../README.md) / ResizeRequest
|
|
6
|
+
|
|
7
|
+
# Type Alias: ResizeRequest
|
|
8
|
+
|
|
9
|
+
> **ResizeRequest**: `object`
|
|
10
|
+
|
|
11
|
+
**`Internal`**
|
|
12
|
+
|
|
13
|
+
Represents a resize request component message. This is handled by the library.
|
|
14
|
+
|
|
15
|
+
## Type declaration
|
|
16
|
+
|
|
17
|
+
### height
|
|
18
|
+
|
|
19
|
+
> **height**: `number`
|
|
20
|
+
|
|
21
|
+
### type
|
|
22
|
+
|
|
23
|
+
> **type**: [`RESIZE`](../enumerations/CMType.md#resize)
|
|
24
|
+
|
|
25
|
+
## Defined in
|
|
26
|
+
|
|
27
|
+
[types.ts:807](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/f75feb1dd5dd91003bcc9aa8429d05c94c878b06/src/types.ts#L807)
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
[**@notabene/javascript-sdk**](../../README.md) • **Docs**
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@notabene/javascript-sdk](../../modules.md) / [types](../README.md) / Source
|
|
6
|
+
|
|
7
|
+
# Type Alias: Source
|
|
8
|
+
|
|
9
|
+
> **Source**: [`BlockchainAddress`](BlockchainAddress.md) \| [`CAIP10`](CAIP10.md)
|
|
10
|
+
|
|
11
|
+
The source of a transaction
|
|
12
|
+
|
|
13
|
+
## Defined in
|
|
14
|
+
|
|
15
|
+
[types.ts:207](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/f75feb1dd5dd91003bcc9aa8429d05c94c878b06/src/types.ts#L207)
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
[**@notabene/javascript-sdk**](../../README.md) • **Docs**
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@notabene/javascript-sdk](../../modules.md) / [types](../README.md) / Theme
|
|
6
|
+
|
|
7
|
+
# Type Alias: Theme
|
|
8
|
+
|
|
9
|
+
> **Theme**: `object`
|
|
10
|
+
|
|
11
|
+
The theme of the Notabene SDK
|
|
12
|
+
|
|
13
|
+
## Type declaration
|
|
14
|
+
|
|
15
|
+
### fontFamily
|
|
16
|
+
|
|
17
|
+
> **fontFamily**: `string`
|
|
18
|
+
|
|
19
|
+
### logo
|
|
20
|
+
|
|
21
|
+
> **logo**: `string`
|
|
22
|
+
|
|
23
|
+
### primaryColor
|
|
24
|
+
|
|
25
|
+
> **primaryColor**: `string`
|
|
26
|
+
|
|
27
|
+
### secondaryColor
|
|
28
|
+
|
|
29
|
+
> **secondaryColor**: `string`
|
|
30
|
+
|
|
31
|
+
## Defined in
|
|
32
|
+
|
|
33
|
+
[types.ts:237](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/f75feb1dd5dd91003bcc9aa8429d05c94c878b06/src/types.ts#L237)
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
[**@notabene/javascript-sdk**](../../README.md) • **Docs**
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@notabene/javascript-sdk](../../modules.md) / [types](../README.md) / TransactionAsset
|
|
6
|
+
|
|
7
|
+
# Type Alias: TransactionAsset
|
|
8
|
+
|
|
9
|
+
> **TransactionAsset**: [`NotabeneAsset`](NotabeneAsset.md) \| [`CAIP19`](CAIP19.md) \| [`DTI`](DTI.md)
|
|
10
|
+
|
|
11
|
+
The asset of a transaction either a Notabene asset, a CAIP-19 asset, or a DTI.
|
|
12
|
+
|
|
13
|
+
## Defined in
|
|
14
|
+
|
|
15
|
+
[types.ts:145](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/f75feb1dd5dd91003bcc9aa8429d05c94c878b06/src/types.ts#L145)
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
[**@notabene/javascript-sdk**](../../README.md) • **Docs**
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@notabene/javascript-sdk](../../modules.md) / [types](../README.md) / TravelAddress
|
|
6
|
+
|
|
7
|
+
# Type Alias: TravelAddress
|
|
8
|
+
|
|
9
|
+
> **TravelAddress**: \`ta$\{string\}\`
|
|
10
|
+
|
|
11
|
+
A travel address
|
|
12
|
+
|
|
13
|
+
A standardized travel rule address format
|
|
14
|
+
|
|
15
|
+
## Remarks
|
|
16
|
+
|
|
17
|
+
Represents a special address format used for travel rule compliance. Travel addresses
|
|
18
|
+
are prefixed with 'ta' and contain encoded information about the transaction
|
|
19
|
+
and counterparty details required for travel rule reporting.
|
|
20
|
+
|
|
21
|
+
The format ensures consistent handling of travel rule data across different
|
|
22
|
+
VASPs and blockchain networks while maintaining privacy.
|
|
23
|
+
|
|
24
|
+
## Example
|
|
25
|
+
|
|
26
|
+
```ts
|
|
27
|
+
"ta1234abcd..." // Example travel rule address
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## See
|
|
31
|
+
|
|
32
|
+
- [BlockchainAddress](BlockchainAddress.md) For native chain addresses
|
|
33
|
+
- [CAIP10](CAIP10.md) For chain-agnostic addresses
|
|
34
|
+
|
|
35
|
+
## Defined in
|
|
36
|
+
|
|
37
|
+
[types.ts:186](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/f75feb1dd5dd91003bcc9aa8429d05c94c878b06/src/types.ts#L186)
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
[**@notabene/javascript-sdk**](../../README.md) • **Docs**
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@notabene/javascript-sdk](../../modules.md) / [types](../README.md) / URI
|
|
6
|
+
|
|
7
|
+
# Type Alias: URI
|
|
8
|
+
|
|
9
|
+
> **URI**: `string`
|
|
10
|
+
|
|
11
|
+
A Uniform Resource Identifier
|
|
12
|
+
|
|
13
|
+
## Defined in
|
|
14
|
+
|
|
15
|
+
[types.ts:213](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/f75feb1dd5dd91003bcc9aa8429d05c94c878b06/src/types.ts#L213)
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
[**@notabene/javascript-sdk**](../../README.md) • **Docs**
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@notabene/javascript-sdk](../../modules.md) / [types](../README.md) / UUID
|
|
6
|
+
|
|
7
|
+
# Type Alias: UUID
|
|
8
|
+
|
|
9
|
+
> **UUID**: `string`
|
|
10
|
+
|
|
11
|
+
UUID v4 string identifier
|
|
12
|
+
A universally unique identifier that follows RFC 4122 format
|
|
13
|
+
Format: 8-4-4-4-12 hexadecimal digits
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```ts
|
|
18
|
+
"550e8400-e29b-41d4-a716-446655440000"
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## See
|
|
22
|
+
|
|
23
|
+
[RFC4122](https://tools.ietf.org/html/rfc4122)
|
|
24
|
+
|
|
25
|
+
## Defined in
|
|
26
|
+
|
|
27
|
+
[types.ts:39](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/f75feb1dd5dd91003bcc9aa8429d05c94c878b06/src/types.ts#L39)
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
[**@notabene/javascript-sdk**](../../README.md) • **Docs**
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@notabene/javascript-sdk](../../modules.md) / [types](../README.md) / UpdateValue
|
|
6
|
+
|
|
7
|
+
# Type Alias: UpdateValue\<T, O\>
|
|
8
|
+
|
|
9
|
+
> **UpdateValue**\<`T`, `O`\>: `object`
|
|
10
|
+
|
|
11
|
+
Message type for updating component state and configuration from host application
|
|
12
|
+
|
|
13
|
+
## Type Parameters
|
|
14
|
+
|
|
15
|
+
• **T**
|
|
16
|
+
|
|
17
|
+
The type of the value being updated
|
|
18
|
+
|
|
19
|
+
• **O**
|
|
20
|
+
|
|
21
|
+
The type of the optional configuration parameters
|
|
22
|
+
|
|
23
|
+
## Type declaration
|
|
24
|
+
|
|
25
|
+
### options?
|
|
26
|
+
|
|
27
|
+
> `optional` **options**: `O`
|
|
28
|
+
|
|
29
|
+
### type
|
|
30
|
+
|
|
31
|
+
> **type**: [`UPDATE`](../enumerations/HMType.md#update)
|
|
32
|
+
|
|
33
|
+
### value
|
|
34
|
+
|
|
35
|
+
> **value**: `Partial`\<`T`\>
|
|
36
|
+
|
|
37
|
+
## Remarks
|
|
38
|
+
|
|
39
|
+
Defines the structure of update messages sent from host to component:
|
|
40
|
+
- type: Identifies this as an update message
|
|
41
|
+
- value: New partial state/data to update the component with
|
|
42
|
+
- options: Optional configuration parameters to modify component behavior
|
|
43
|
+
|
|
44
|
+
The host can use this to dynamically update both the component's data
|
|
45
|
+
and its configuration without requiring a full reload/reinitialize.
|
|
46
|
+
|
|
47
|
+
## See
|
|
48
|
+
|
|
49
|
+
- [HMType](../enumerations/HMType.md) For message type constants
|
|
50
|
+
- [HostMessage](HostMessage.md) For full host message type union
|
|
51
|
+
|
|
52
|
+
## Defined in
|
|
53
|
+
|
|
54
|
+
[types.ts:907](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/f75feb1dd5dd91003bcc9aa8429d05c94c878b06/src/types.ts#L907)
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
[**@notabene/javascript-sdk**](../../README.md) • **Docs**
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@notabene/javascript-sdk](../../modules.md) / [types](../README.md) / V1Asset
|
|
6
|
+
|
|
7
|
+
# Type Alias: V1Asset
|
|
8
|
+
|
|
9
|
+
> **V1Asset**: [`NotabeneAsset`](NotabeneAsset.md) \| `object`
|
|
10
|
+
|
|
11
|
+
Represents a legacy V1 API asset format supporting both Notabene and CAIP-19 identifiers
|
|
12
|
+
|
|
13
|
+
## Remarks
|
|
14
|
+
|
|
15
|
+
Used for backwards compatibility with V1 API transaction payloads:
|
|
16
|
+
- Can be either a simple Notabene asset string
|
|
17
|
+
- Or an object containing a CAIP-19 identifier
|
|
18
|
+
|
|
19
|
+
## Examples
|
|
20
|
+
|
|
21
|
+
```ts
|
|
22
|
+
"ETH_USDT" // Notabene asset format
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
```ts
|
|
26
|
+
{ caip19: "eip155:1/erc20:0x6b175474e89094c44da98b954eedeac495271d0f" } // CAIP-19 format
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## See
|
|
30
|
+
|
|
31
|
+
- [NotabeneAsset](NotabeneAsset.md) For Notabene asset format
|
|
32
|
+
- [CAIP19](CAIP19.md) For CAIP-19 asset format
|
|
33
|
+
|
|
34
|
+
## Defined in
|
|
35
|
+
|
|
36
|
+
[types.ts:605](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/f75feb1dd5dd91003bcc9aa8429d05c94c878b06/src/types.ts#L605)
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
[**@notabene/javascript-sdk**](../../README.md) • **Docs**
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@notabene/javascript-sdk](../../modules.md) / [types](../README.md) / V1Transaction
|
|
6
|
+
|
|
7
|
+
# Type Alias: V1Transaction
|
|
8
|
+
|
|
9
|
+
> **V1Transaction**: `object`
|
|
10
|
+
|
|
11
|
+
Transaction payload suitable for calling Notabene v1 tx/create
|
|
12
|
+
|
|
13
|
+
## Type declaration
|
|
14
|
+
|
|
15
|
+
### beneficiary
|
|
16
|
+
|
|
17
|
+
> **beneficiary**: [`Beneficiary`](../../ivms/types/type-aliases/Beneficiary.md)
|
|
18
|
+
|
|
19
|
+
### beneficiaryProof?
|
|
20
|
+
|
|
21
|
+
> `optional` **beneficiaryProof**: [`OwnershipProof`](../interfaces/OwnershipProof.md)
|
|
22
|
+
|
|
23
|
+
### beneficiaryVASPdid
|
|
24
|
+
|
|
25
|
+
> **beneficiaryVASPdid**: [`DID`](DID.md)
|
|
26
|
+
|
|
27
|
+
### originator?
|
|
28
|
+
|
|
29
|
+
> `optional` **originator**: [`Originator`](../../ivms/types/type-aliases/Originator.md)
|
|
30
|
+
|
|
31
|
+
### originatorEqualsBeneficiary?
|
|
32
|
+
|
|
33
|
+
> `optional` **originatorEqualsBeneficiary**: `boolean`
|
|
34
|
+
|
|
35
|
+
### originatorVASPdid
|
|
36
|
+
|
|
37
|
+
> **originatorVASPdid**: [`DID`](DID.md)
|
|
38
|
+
|
|
39
|
+
### transactionAmount
|
|
40
|
+
|
|
41
|
+
> **transactionAmount**: `string`
|
|
42
|
+
|
|
43
|
+
### transactionAsset
|
|
44
|
+
|
|
45
|
+
> **transactionAsset**: [`V1Asset`](V1Asset.md)
|
|
46
|
+
|
|
47
|
+
## Defined in
|
|
48
|
+
|
|
49
|
+
[types.ts:611](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/f75feb1dd5dd91003bcc9aa8429d05c94c878b06/src/types.ts#L611)
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
[**@notabene/javascript-sdk**](../../README.md) • **Docs**
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@notabene/javascript-sdk](../../modules.md) / [types](../README.md) / VASPOptions
|
|
6
|
+
|
|
7
|
+
# Type Alias: VASPOptions
|
|
8
|
+
|
|
9
|
+
> **VASPOptions**: `object`
|
|
10
|
+
|
|
11
|
+
Options for which VASPs to be searchable
|
|
12
|
+
|
|
13
|
+
## Type declaration
|
|
14
|
+
|
|
15
|
+
### addUnknown?
|
|
16
|
+
|
|
17
|
+
> `optional` **addUnknown**: `boolean`
|
|
18
|
+
|
|
19
|
+
### onlyActive?
|
|
20
|
+
|
|
21
|
+
> `optional` **onlyActive**: `boolean`
|
|
22
|
+
|
|
23
|
+
## Defined in
|
|
24
|
+
|
|
25
|
+
[types.ts:707](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/f75feb1dd5dd91003bcc9aa8429d05c94c878b06/src/types.ts#L707)
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
[**@notabene/javascript-sdk**](../../README.md) • **Docs**
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@notabene/javascript-sdk](../../modules.md) / [types](../README.md) / ValidationError
|
|
6
|
+
|
|
7
|
+
# Type Alias: ValidationError
|
|
8
|
+
|
|
9
|
+
> **ValidationError**: `object`
|
|
10
|
+
|
|
11
|
+
Validation error
|
|
12
|
+
|
|
13
|
+
## Type declaration
|
|
14
|
+
|
|
15
|
+
### attribute
|
|
16
|
+
|
|
17
|
+
> **attribute**: `string`
|
|
18
|
+
|
|
19
|
+
### message
|
|
20
|
+
|
|
21
|
+
> **message**: `string`
|
|
22
|
+
|
|
23
|
+
## Defined in
|
|
24
|
+
|
|
25
|
+
[types.ts:677](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/f75feb1dd5dd91003bcc9aa8429d05c94c878b06/src/types.ts#L677)
|
package/package.json
CHANGED
|
@@ -10,13 +10,14 @@
|
|
|
10
10
|
"author": "Notabene <developers@notabene.id>",
|
|
11
11
|
"license": "MIT",
|
|
12
12
|
"packageManager": "yarn@3.2.2",
|
|
13
|
-
"version": "2.0.
|
|
13
|
+
"version": "2.0.2",
|
|
14
14
|
"source": "src/notabene.ts",
|
|
15
15
|
"main": "dist/notabene.js",
|
|
16
16
|
"types": "dist/notabene.d.ts",
|
|
17
17
|
"browserslist": "> 0.5%, last 2 versions, not dead",
|
|
18
18
|
"files": [
|
|
19
19
|
"dist",
|
|
20
|
+
"docs",
|
|
20
21
|
"src",
|
|
21
22
|
"package.json",
|
|
22
23
|
"README.md"
|
|
@@ -29,7 +30,7 @@
|
|
|
29
30
|
"watch": "parcel watch",
|
|
30
31
|
"build:dev": "yarn build && yarn dev",
|
|
31
32
|
"build:clean": "rimraf dist/ ts-out coverage temp etc",
|
|
32
|
-
"build": "yarn lint && vite build &&
|
|
33
|
+
"build": "yarn lint && vite build && tsc && api-extractor run && yarn docs",
|
|
33
34
|
"lint": "eslint .",
|
|
34
35
|
"format": "prettier --write .",
|
|
35
36
|
"test": "vitest",
|