@notabene/javascript-sdk 2.0.1 → 2.0.3
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 +16 -14
- package/src/components/EmbeddedComponent.ts +1 -0
- package/src/notabene.ts +21 -21
- package/src/types.ts +1 -1
- package/dist/js/notabene.js +0 -1
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
[**@notabene/javascript-sdk**](../../README.md) • **Docs**
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@notabene/javascript-sdk](../../modules.md) / [types](../README.md) / Wallet
|
|
6
|
+
|
|
7
|
+
# Interface: Wallet
|
|
8
|
+
|
|
9
|
+
A wallet agent acting on behalf of the counterparty
|
|
10
|
+
|
|
11
|
+
## Extends
|
|
12
|
+
|
|
13
|
+
- [`Agent`](Agent.md)
|
|
14
|
+
|
|
15
|
+
## Properties
|
|
16
|
+
|
|
17
|
+
### did
|
|
18
|
+
|
|
19
|
+
> **did**: \`did:$\{string\}:$\{string\}\`
|
|
20
|
+
|
|
21
|
+
#### Inherited from
|
|
22
|
+
|
|
23
|
+
[`Agent`](Agent.md).[`did`](Agent.md#did)
|
|
24
|
+
|
|
25
|
+
#### Defined in
|
|
26
|
+
|
|
27
|
+
[types.ts:258](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/675e0bac9f2136d1cf47e6f5980760f80d3d1995/src/types.ts#L258)
|
|
28
|
+
|
|
29
|
+
***
|
|
30
|
+
|
|
31
|
+
### logo?
|
|
32
|
+
|
|
33
|
+
> `optional` **logo**: `string`
|
|
34
|
+
|
|
35
|
+
#### Inherited from
|
|
36
|
+
|
|
37
|
+
[`Agent`](Agent.md).[`logo`](Agent.md#logo)
|
|
38
|
+
|
|
39
|
+
#### Defined in
|
|
40
|
+
|
|
41
|
+
[types.ts:260](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/675e0bac9f2136d1cf47e6f5980760f80d3d1995/src/types.ts#L260)
|
|
42
|
+
|
|
43
|
+
***
|
|
44
|
+
|
|
45
|
+
### name?
|
|
46
|
+
|
|
47
|
+
> `optional` **name**: `string`
|
|
48
|
+
|
|
49
|
+
#### Inherited from
|
|
50
|
+
|
|
51
|
+
[`Agent`](Agent.md).[`name`](Agent.md#name)
|
|
52
|
+
|
|
53
|
+
#### Defined in
|
|
54
|
+
|
|
55
|
+
[types.ts:262](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/675e0bac9f2136d1cf47e6f5980760f80d3d1995/src/types.ts#L262)
|
|
56
|
+
|
|
57
|
+
***
|
|
58
|
+
|
|
59
|
+
### proof
|
|
60
|
+
|
|
61
|
+
> **proof**: [`OwnershipProof`](OwnershipProof.md)
|
|
62
|
+
|
|
63
|
+
#### Defined in
|
|
64
|
+
|
|
65
|
+
[types.ts:309](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/675e0bac9f2136d1cf47e6f5980760f80d3d1995/src/types.ts#L309)
|
|
66
|
+
|
|
67
|
+
***
|
|
68
|
+
|
|
69
|
+
### type
|
|
70
|
+
|
|
71
|
+
> **type**: [`AgentType`](../enumerations/AgentType.md)
|
|
72
|
+
|
|
73
|
+
#### Inherited from
|
|
74
|
+
|
|
75
|
+
[`Agent`](Agent.md).[`type`](Agent.md#type)
|
|
76
|
+
|
|
77
|
+
#### Defined in
|
|
78
|
+
|
|
79
|
+
[types.ts:259](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/675e0bac9f2136d1cf47e6f5980760f80d3d1995/src/types.ts#L259)
|
|
80
|
+
|
|
81
|
+
***
|
|
82
|
+
|
|
83
|
+
### url?
|
|
84
|
+
|
|
85
|
+
> `optional` **url**: `string`
|
|
86
|
+
|
|
87
|
+
#### Inherited from
|
|
88
|
+
|
|
89
|
+
[`Agent`](Agent.md).[`url`](Agent.md#url)
|
|
90
|
+
|
|
91
|
+
#### Defined in
|
|
92
|
+
|
|
93
|
+
[types.ts:261](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/675e0bac9f2136d1cf47e6f5980760f80d3d1995/src/types.ts#L261)
|
|
94
|
+
|
|
95
|
+
***
|
|
96
|
+
|
|
97
|
+
### verified?
|
|
98
|
+
|
|
99
|
+
> `optional` **verified**: `boolean`
|
|
100
|
+
|
|
101
|
+
#### Inherited from
|
|
102
|
+
|
|
103
|
+
[`Agent`](Agent.md).[`verified`](Agent.md#verified)
|
|
104
|
+
|
|
105
|
+
#### Defined in
|
|
106
|
+
|
|
107
|
+
[types.ts:263](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/675e0bac9f2136d1cf47e6f5980760f80d3d1995/src/types.ts#L263)
|
|
108
|
+
|
|
109
|
+
***
|
|
110
|
+
|
|
111
|
+
### wallet\_connect\_id?
|
|
112
|
+
|
|
113
|
+
> `optional` **wallet\_connect\_id**: `string`
|
|
114
|
+
|
|
115
|
+
#### Defined in
|
|
116
|
+
|
|
117
|
+
[types.ts:310](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/675e0bac9f2136d1cf47e6f5980760f80d3d1995/src/types.ts#L310)
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
[**@notabene/javascript-sdk**](../../README.md) • **Docs**
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@notabene/javascript-sdk](../../modules.md) / [types](../README.md) / Withdrawal
|
|
6
|
+
|
|
7
|
+
# Interface: Withdrawal
|
|
8
|
+
|
|
9
|
+
An object representing a withdrawal transaction
|
|
10
|
+
|
|
11
|
+
## Extends
|
|
12
|
+
|
|
13
|
+
- `BeneficiaryFields`.[`Transaction`](Transaction.md)
|
|
14
|
+
|
|
15
|
+
## Properties
|
|
16
|
+
|
|
17
|
+
### agent
|
|
18
|
+
|
|
19
|
+
> **agent**: [`Agent`](Agent.md)
|
|
20
|
+
|
|
21
|
+
#### Inherited from
|
|
22
|
+
|
|
23
|
+
[`Transaction`](Transaction.md).[`agent`](Transaction.md#agent)
|
|
24
|
+
|
|
25
|
+
#### Defined in
|
|
26
|
+
|
|
27
|
+
[types.ts:522](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/675e0bac9f2136d1cf47e6f5980760f80d3d1995/src/types.ts#L522)
|
|
28
|
+
|
|
29
|
+
***
|
|
30
|
+
|
|
31
|
+
### amountDecimal
|
|
32
|
+
|
|
33
|
+
> **amountDecimal**: `number`
|
|
34
|
+
|
|
35
|
+
#### Inherited from
|
|
36
|
+
|
|
37
|
+
[`Transaction`](Transaction.md).[`amountDecimal`](Transaction.md#amountdecimal)
|
|
38
|
+
|
|
39
|
+
#### Defined in
|
|
40
|
+
|
|
41
|
+
[types.ts:525](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/675e0bac9f2136d1cf47e6f5980760f80d3d1995/src/types.ts#L525)
|
|
42
|
+
|
|
43
|
+
***
|
|
44
|
+
|
|
45
|
+
### asset
|
|
46
|
+
|
|
47
|
+
> **asset**: `string`
|
|
48
|
+
|
|
49
|
+
#### Inherited from
|
|
50
|
+
|
|
51
|
+
[`Transaction`](Transaction.md).[`asset`](Transaction.md#asset)
|
|
52
|
+
|
|
53
|
+
#### Defined in
|
|
54
|
+
|
|
55
|
+
[types.ts:524](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/675e0bac9f2136d1cf47e6f5980760f80d3d1995/src/types.ts#L524)
|
|
56
|
+
|
|
57
|
+
***
|
|
58
|
+
|
|
59
|
+
### assetPrice?
|
|
60
|
+
|
|
61
|
+
> `optional` **assetPrice**: `object`
|
|
62
|
+
|
|
63
|
+
#### currency
|
|
64
|
+
|
|
65
|
+
> **currency**: `string`
|
|
66
|
+
|
|
67
|
+
#### price
|
|
68
|
+
|
|
69
|
+
> **price**: `number`
|
|
70
|
+
|
|
71
|
+
#### Inherited from
|
|
72
|
+
|
|
73
|
+
[`Transaction`](Transaction.md).[`assetPrice`](Transaction.md#assetprice)
|
|
74
|
+
|
|
75
|
+
#### Defined in
|
|
76
|
+
|
|
77
|
+
[types.ts:527](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/675e0bac9f2136d1cf47e6f5980760f80d3d1995/src/types.ts#L527)
|
|
78
|
+
|
|
79
|
+
***
|
|
80
|
+
|
|
81
|
+
### counterparty
|
|
82
|
+
|
|
83
|
+
> **counterparty**: [`Counterparty`](Counterparty.md)
|
|
84
|
+
|
|
85
|
+
#### Inherited from
|
|
86
|
+
|
|
87
|
+
[`Transaction`](Transaction.md).[`counterparty`](Transaction.md#counterparty)
|
|
88
|
+
|
|
89
|
+
#### Defined in
|
|
90
|
+
|
|
91
|
+
[types.ts:523](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/675e0bac9f2136d1cf47e6f5980760f80d3d1995/src/types.ts#L523)
|
|
92
|
+
|
|
93
|
+
***
|
|
94
|
+
|
|
95
|
+
### customer?
|
|
96
|
+
|
|
97
|
+
> `optional` **customer**: [`Counterparty`](Counterparty.md)
|
|
98
|
+
|
|
99
|
+
#### Inherited from
|
|
100
|
+
|
|
101
|
+
[`Transaction`](Transaction.md).[`customer`](Transaction.md#customer)
|
|
102
|
+
|
|
103
|
+
#### Defined in
|
|
104
|
+
|
|
105
|
+
[types.ts:495](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/675e0bac9f2136d1cf47e6f5980760f80d3d1995/src/types.ts#L495)
|
|
106
|
+
|
|
107
|
+
***
|
|
108
|
+
|
|
109
|
+
### destination?
|
|
110
|
+
|
|
111
|
+
> `optional` **destination**: `string`
|
|
112
|
+
|
|
113
|
+
#### Inherited from
|
|
114
|
+
|
|
115
|
+
`BeneficiaryFields.destination`
|
|
116
|
+
|
|
117
|
+
#### Defined in
|
|
118
|
+
|
|
119
|
+
[types.ts:460](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/675e0bac9f2136d1cf47e6f5980760f80d3d1995/src/types.ts#L460)
|
|
120
|
+
|
|
121
|
+
***
|
|
122
|
+
|
|
123
|
+
### proof?
|
|
124
|
+
|
|
125
|
+
> `optional` **proof**: [`OwnershipProof`](OwnershipProof.md)
|
|
126
|
+
|
|
127
|
+
#### Inherited from
|
|
128
|
+
|
|
129
|
+
[`Transaction`](Transaction.md).[`proof`](Transaction.md#proof)
|
|
130
|
+
|
|
131
|
+
#### Defined in
|
|
132
|
+
|
|
133
|
+
[types.ts:526](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/675e0bac9f2136d1cf47e6f5980760f80d3d1995/src/types.ts#L526)
|
|
134
|
+
|
|
135
|
+
***
|
|
136
|
+
|
|
137
|
+
### requestId?
|
|
138
|
+
|
|
139
|
+
> `optional` **requestId**: `string`
|
|
140
|
+
|
|
141
|
+
#### Inherited from
|
|
142
|
+
|
|
143
|
+
[`Transaction`](Transaction.md).[`requestId`](Transaction.md#requestid)
|
|
144
|
+
|
|
145
|
+
#### Defined in
|
|
146
|
+
|
|
147
|
+
[types.ts:494](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/675e0bac9f2136d1cf47e6f5980760f80d3d1995/src/types.ts#L494)
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
[**@notabene/javascript-sdk**](../../README.md) • **Docs**
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@notabene/javascript-sdk](../../modules.md) / [types](../README.md) / BlockchainAddress
|
|
6
|
+
|
|
7
|
+
# Type Alias: BlockchainAddress
|
|
8
|
+
|
|
9
|
+
> **BlockchainAddress**: `string`
|
|
10
|
+
|
|
11
|
+
A native blockchain address string
|
|
12
|
+
|
|
13
|
+
## Remarks
|
|
14
|
+
|
|
15
|
+
Represents a blockchain address in the native format specific to a particular chain.
|
|
16
|
+
This could be an Ethereum address, Bitcoin address, or other chain-specific format.
|
|
17
|
+
The address format and validation rules depend on the underlying blockchain.
|
|
18
|
+
|
|
19
|
+
## Examples
|
|
20
|
+
|
|
21
|
+
```ts
|
|
22
|
+
"0x742d35Cc6634C0532925a3b844Bc454e4438f44e" // Ethereum address
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
```ts
|
|
26
|
+
"1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa" // Bitcoin address
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
```ts
|
|
30
|
+
"cosmos1t2uflqwqe0fsj0shcfkrvpukewcw40yjj6hdc0" // Cosmos address
|
|
31
|
+
@public
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## Defined in
|
|
35
|
+
|
|
36
|
+
[types.ts:166](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/675e0bac9f2136d1cf47e6f5980760f80d3d1995/src/types.ts#L166)
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
[**@notabene/javascript-sdk**](../../README.md) • **Docs**
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@notabene/javascript-sdk](../../modules.md) / [types](../README.md) / CAIP10
|
|
6
|
+
|
|
7
|
+
# Type Alias: CAIP10
|
|
8
|
+
|
|
9
|
+
> **CAIP10**: \`$\{CAIP2\}:$\{string\}\`
|
|
10
|
+
|
|
11
|
+
Chain Agnostic Account Identifier (CAIP-10)
|
|
12
|
+
Represents an account/address on a specific blockchain following the CAIP-10 specification.
|
|
13
|
+
Extends CAIP-2 by adding the account address specific to that chain.
|
|
14
|
+
|
|
15
|
+
Format: `{caip2}:{address}`
|
|
16
|
+
- caip2: The CAIP-2 chain identifier (e.g. 'eip155:1')
|
|
17
|
+
- address: Chain-specific account address format
|
|
18
|
+
|
|
19
|
+
## Examples
|
|
20
|
+
|
|
21
|
+
```ts
|
|
22
|
+
"eip155:1:0x742d35Cc6634C0532925a3b844Bc454e4438f44e" // Ethereum account on mainnet
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
```ts
|
|
26
|
+
"bip122:000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f:128Lkh3S7CkDTBZ8W7BbpsN3YYizJMp8p6" // Bitcoin account on mainnet
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
```ts
|
|
30
|
+
"cosmos:cosmoshub-3:cosmos1t2uflqwqe0fsj0shcfkrvpukewcw40yjj6hdc0" // Cosmos account
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## See
|
|
34
|
+
|
|
35
|
+
[CAIP-10 Specification](https://github.com/ChainAgnostic/CAIPs/blob/master/CAIPs/caip-10.md)
|
|
36
|
+
|
|
37
|
+
## Defined in
|
|
38
|
+
|
|
39
|
+
[types.ts:73](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/675e0bac9f2136d1cf47e6f5980760f80d3d1995/src/types.ts#L73)
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
[**@notabene/javascript-sdk**](../../README.md) • **Docs**
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@notabene/javascript-sdk](../../modules.md) / [types](../README.md) / CAIP19
|
|
6
|
+
|
|
7
|
+
# Type Alias: CAIP19
|
|
8
|
+
|
|
9
|
+
> **CAIP19**: \`$\{CAIP2\}/$\{string\}:$\{string\}\`
|
|
10
|
+
|
|
11
|
+
Chain Agnostic Asset Identifier (CAIP-19)
|
|
12
|
+
Represents an asset/token on a specific blockchain following the CAIP-19 specification.
|
|
13
|
+
Extends CAIP-2 by adding asset type and identifier information.
|
|
14
|
+
|
|
15
|
+
Format: `{caip2}/{asset_namespace}:{asset_reference}`
|
|
16
|
+
- caip2: The CAIP-2 chain identifier (e.g. 'eip155:1')
|
|
17
|
+
- asset_namespace: The asset standard (e.g. 'erc20', 'erc721', 'slip44')
|
|
18
|
+
- asset_reference: Chain/standard-specific asset identifier
|
|
19
|
+
|
|
20
|
+
## Examples
|
|
21
|
+
|
|
22
|
+
```ts
|
|
23
|
+
"eip155:1/erc20:0x6b175474e89094c44da98b954eedeac495271d0f" // DAI token on Ethereum mainnet
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
```ts
|
|
27
|
+
"eip155:1/erc721:0x06012c8cf97BEaD5deAe237070F9587f8E7A266d" // CryptoKitties NFT contract
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
```ts
|
|
31
|
+
"cosmos:cosmoshub-3/slip44:118" // ATOM token on Cosmos Hub
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## See
|
|
35
|
+
|
|
36
|
+
[CAIP-19 Specification](https://github.com/ChainAgnostic/CAIPs/blob/master/CAIPs/caip-19.md)
|
|
37
|
+
|
|
38
|
+
## Defined in
|
|
39
|
+
|
|
40
|
+
[types.ts:91](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/675e0bac9f2136d1cf47e6f5980760f80d3d1995/src/types.ts#L91)
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
[**@notabene/javascript-sdk**](../../README.md) • **Docs**
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@notabene/javascript-sdk](../../modules.md) / [types](../README.md) / CAIP2
|
|
6
|
+
|
|
7
|
+
# Type Alias: CAIP2
|
|
8
|
+
|
|
9
|
+
> **CAIP2**: \`$\{string\}:$\{string\}\`
|
|
10
|
+
|
|
11
|
+
Chain Agnostic Blockchain Identifier (CAIP-2)
|
|
12
|
+
Represents a blockchain in a chain-agnostic way following the CAIP-2 specification.
|
|
13
|
+
The identifier consists of a namespace and reference separated by a colon.
|
|
14
|
+
|
|
15
|
+
Format: `namespace:reference`
|
|
16
|
+
- namespace: Represents the blockchain namespace (e.g. 'eip155', 'bip122', 'cosmos')
|
|
17
|
+
- reference: Chain-specific identifier within that namespace
|
|
18
|
+
|
|
19
|
+
## Examples
|
|
20
|
+
|
|
21
|
+
```ts
|
|
22
|
+
"eip155:1" // Ethereum Mainnet
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
```ts
|
|
26
|
+
"bip122:000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f" // Bitcoin Mainnet
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
```ts
|
|
30
|
+
"cosmos:cosmoshub-3" // Cosmos Hub Mainnet
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## See
|
|
34
|
+
|
|
35
|
+
[CAIP-2 Specification](https://github.com/ChainAgnostic/CAIPs/blob/master/CAIPs/caip-2.md)
|
|
36
|
+
|
|
37
|
+
## Defined in
|
|
38
|
+
|
|
39
|
+
[types.ts:56](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/675e0bac9f2136d1cf47e6f5980760f80d3d1995/src/types.ts#L56)
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
[**@notabene/javascript-sdk**](../../README.md) • **Docs**
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@notabene/javascript-sdk](../../modules.md) / [types](../README.md) / CAIP220
|
|
6
|
+
|
|
7
|
+
# Type Alias: CAIP220
|
|
8
|
+
|
|
9
|
+
> **CAIP220**: `string`
|
|
10
|
+
|
|
11
|
+
Chain Agnostic Payload Identifier
|
|
12
|
+
|
|
13
|
+
## Defined in
|
|
14
|
+
|
|
15
|
+
[types.ts:97](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/675e0bac9f2136d1cf47e6f5980760f80d3d1995/src/types.ts#L97)
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
[**@notabene/javascript-sdk**](../../README.md) • **Docs**
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@notabene/javascript-sdk](../../modules.md) / [types](../README.md) / Cancel
|
|
6
|
+
|
|
7
|
+
# Type Alias: Cancel
|
|
8
|
+
|
|
9
|
+
> **Cancel**: `object`
|
|
10
|
+
|
|
11
|
+
**`Internal`**
|
|
12
|
+
|
|
13
|
+
Represents a cancel component message
|
|
14
|
+
|
|
15
|
+
## Type declaration
|
|
16
|
+
|
|
17
|
+
### type
|
|
18
|
+
|
|
19
|
+
> **type**: [`CANCEL`](../enumerations/CMType.md#cancel)
|
|
20
|
+
|
|
21
|
+
## Defined in
|
|
22
|
+
|
|
23
|
+
[types.ts:826](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/675e0bac9f2136d1cf47e6f5980760f80d3d1995/src/types.ts#L826)
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
[**@notabene/javascript-sdk**](../../README.md) • **Docs**
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@notabene/javascript-sdk](../../modules.md) / [types](../README.md) / Completed
|
|
6
|
+
|
|
7
|
+
# Type Alias: Completed\<T\>
|
|
8
|
+
|
|
9
|
+
> **Completed**\<`T`\>: `object`
|
|
10
|
+
|
|
11
|
+
Represents a completed component message
|
|
12
|
+
|
|
13
|
+
## Type Parameters
|
|
14
|
+
|
|
15
|
+
• **T**
|
|
16
|
+
|
|
17
|
+
The overall Value type being returned
|
|
18
|
+
|
|
19
|
+
## Type declaration
|
|
20
|
+
|
|
21
|
+
### response
|
|
22
|
+
|
|
23
|
+
> **response**: [`TransactionResponse`](../interfaces/TransactionResponse.md)\<`T`\>
|
|
24
|
+
|
|
25
|
+
### type
|
|
26
|
+
|
|
27
|
+
> **type**: [`COMPLETE`](../enumerations/CMType.md#complete)
|
|
28
|
+
|
|
29
|
+
## Param
|
|
30
|
+
|
|
31
|
+
The Response object which wraps T
|
|
32
|
+
|
|
33
|
+
## Defined in
|
|
34
|
+
|
|
35
|
+
[types.ts:790](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/675e0bac9f2136d1cf47e6f5980760f80d3d1995/src/types.ts#L790)
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
[**@notabene/javascript-sdk**](../../README.md) • **Docs**
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@notabene/javascript-sdk](../../modules.md) / [types](../README.md) / ComponentMessage
|
|
6
|
+
|
|
7
|
+
# Type Alias: ComponentMessage\<T\>
|
|
8
|
+
|
|
9
|
+
> **ComponentMessage**\<`T`\>: [`Completed`](Completed.md)\<`T`\> \| [`Cancel`](Cancel.md) \| [`Error`](Error.md) \| [`Ready`](Ready.md) \| [`ResizeRequest`](ResizeRequest.md) \| [`InvalidValue`](InvalidValue.md)\<`T`\>
|
|
10
|
+
|
|
11
|
+
Union type representing all possible messages that can be sent from a component
|
|
12
|
+
|
|
13
|
+
## Type Parameters
|
|
14
|
+
|
|
15
|
+
• **T**
|
|
16
|
+
|
|
17
|
+
The value type that will be returned in Completed messages
|
|
18
|
+
|
|
19
|
+
## Remarks
|
|
20
|
+
|
|
21
|
+
Components communicate their state and results back to the host application
|
|
22
|
+
through these message types:
|
|
23
|
+
- Completed: Operation finished successfully with response data
|
|
24
|
+
- Cancel: User cancelled the operation
|
|
25
|
+
- Error: Operation failed with error message
|
|
26
|
+
- Ready: Component initialized and ready for use
|
|
27
|
+
- ResizeRequest: Component needs to adjust its dimensions
|
|
28
|
+
- InvalidValue: Validation failed with current partial value
|
|
29
|
+
|
|
30
|
+
## See
|
|
31
|
+
|
|
32
|
+
- [Completed](Completed.md) For successful completion message format
|
|
33
|
+
- [Cancel](Cancel.md) For cancellation message format
|
|
34
|
+
- [Error](Error.md) For error message format
|
|
35
|
+
- [Ready](Ready.md) For ready message format
|
|
36
|
+
- [ResizeRequest](ResizeRequest.md) For resize message format
|
|
37
|
+
- [InvalidValue](InvalidValue.md) For validation failure message format
|
|
38
|
+
|
|
39
|
+
## Defined in
|
|
40
|
+
|
|
41
|
+
[types.ts:866](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/675e0bac9f2136d1cf47e6f5980760f80d3d1995/src/types.ts#L866)
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
[**@notabene/javascript-sdk**](../../README.md) • **Docs**
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@notabene/javascript-sdk](../../modules.md) / [types](../README.md) / ConnectionOptions
|
|
6
|
+
|
|
7
|
+
# Type Alias: ConnectionOptions
|
|
8
|
+
|
|
9
|
+
> **ConnectionOptions**: `Omit`\<[`TransactionOptions`](../interfaces/TransactionOptions.md), `"allowedAgentTypes"` \| `"allowedCounterpartyTypes"` \| `"vasps"` \| `"fields"` \| `"hide"`\>
|
|
10
|
+
|
|
11
|
+
An object representing options for a Connection Request
|
|
12
|
+
|
|
13
|
+
## Defined in
|
|
14
|
+
|
|
15
|
+
[types.ts:574](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/675e0bac9f2136d1cf47e6f5980760f80d3d1995/src/types.ts#L574)
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
[**@notabene/javascript-sdk**](../../README.md) • **Docs**
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@notabene/javascript-sdk](../../modules.md) / [types](../README.md) / CryptoCredential
|
|
6
|
+
|
|
7
|
+
# Type Alias: CryptoCredential
|
|
8
|
+
|
|
9
|
+
> **CryptoCredential**: \`$\{string\}.$\{string\}.mastercard\`
|
|
10
|
+
|
|
11
|
+
A crypto credential
|
|
12
|
+
|
|
13
|
+
## Defined in
|
|
14
|
+
|
|
15
|
+
[types.ts:191](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/675e0bac9f2136d1cf47e6f5980760f80d3d1995/src/types.ts#L191)
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
[**@notabene/javascript-sdk**](../../README.md) • **Docs**
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@notabene/javascript-sdk](../../modules.md) / [types](../README.md) / DID
|
|
6
|
+
|
|
7
|
+
# Type Alias: DID
|
|
8
|
+
|
|
9
|
+
> **DID**: \`did:$\{string\}:$\{string\}\`
|
|
10
|
+
|
|
11
|
+
A Decentralized Identifier
|
|
12
|
+
|
|
13
|
+
## Defined in
|
|
14
|
+
|
|
15
|
+
[types.ts:219](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/675e0bac9f2136d1cf47e6f5980760f80d3d1995/src/types.ts#L219)
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
[**@notabene/javascript-sdk**](../../README.md) • **Docs**
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@notabene/javascript-sdk](../../modules.md) / [types](../README.md) / DTI
|
|
6
|
+
|
|
7
|
+
# Type Alias: DTI
|
|
8
|
+
|
|
9
|
+
> **DTI**: `string`
|
|
10
|
+
|
|
11
|
+
Digital Token Identifier (DTI) following ISO 24165 standard
|
|
12
|
+
|
|
13
|
+
## Remarks
|
|
14
|
+
|
|
15
|
+
A standardized identifier for digital assets and cryptocurrencies. The DTI system
|
|
16
|
+
provides unique and unambiguous identification of digital tokens, supporting interoperability
|
|
17
|
+
and clarity in financial markets.
|
|
18
|
+
|
|
19
|
+
Format: `DTI[NNNNN]` where N is a digit
|
|
20
|
+
|
|
21
|
+
## Examples
|
|
22
|
+
|
|
23
|
+
```ts
|
|
24
|
+
"DTI00001" // Example DTI for Bitcoin
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
```ts
|
|
28
|
+
"DTI00002" // Example DTI for Ethereum
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## See
|
|
32
|
+
|
|
33
|
+
- [Digital Token Identifier Foundation](https://dtif.org/)
|
|
34
|
+
- [ISO 24165](https://www.iso.org/standard/77895.html)
|
|
35
|
+
|
|
36
|
+
## Defined in
|
|
37
|
+
|
|
38
|
+
[types.ts:117](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/675e0bac9f2136d1cf47e6f5980760f80d3d1995/src/types.ts#L117)
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
[**@notabene/javascript-sdk**](../../README.md) • **Docs**
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@notabene/javascript-sdk](../../modules.md) / [types](../README.md) / Destination
|
|
6
|
+
|
|
7
|
+
# Type Alias: Destination
|
|
8
|
+
|
|
9
|
+
> **Destination**: [`BlockchainAddress`](BlockchainAddress.md) \| [`CAIP10`](CAIP10.md) \| [`CryptoCredential`](CryptoCredential.md) \| [`TravelAddress`](TravelAddress.md)
|
|
10
|
+
|
|
11
|
+
The destination of a transaction either a blockchain address, a CAIP-19 address, or a travel address.
|
|
12
|
+
|
|
13
|
+
## Defined in
|
|
14
|
+
|
|
15
|
+
[types.ts:197](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/675e0bac9f2136d1cf47e6f5980760f80d3d1995/src/types.ts#L197)
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
[**@notabene/javascript-sdk**](../../README.md) • **Docs**
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@notabene/javascript-sdk](../../modules.md) / [types](../README.md) / Error
|
|
6
|
+
|
|
7
|
+
# Type Alias: Error
|
|
8
|
+
|
|
9
|
+
> **Error**: `object`
|
|
10
|
+
|
|
11
|
+
Represents an error component message
|
|
12
|
+
|
|
13
|
+
## Type declaration
|
|
14
|
+
|
|
15
|
+
### message
|
|
16
|
+
|
|
17
|
+
> **message**: `string`
|
|
18
|
+
|
|
19
|
+
### type
|
|
20
|
+
|
|
21
|
+
> **type**: [`ERROR`](../enumerations/CMType.md#error)
|
|
22
|
+
|
|
23
|
+
## Param
|
|
24
|
+
|
|
25
|
+
Error message
|
|
26
|
+
|
|
27
|
+
## Defined in
|
|
28
|
+
|
|
29
|
+
[types.ts:817](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/675e0bac9f2136d1cf47e6f5980760f80d3d1995/src/types.ts#L817)
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
[**@notabene/javascript-sdk**](../../README.md) • **Docs**
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@notabene/javascript-sdk](../../modules.md) / [types](../README.md) / FieldOptions
|
|
6
|
+
|
|
7
|
+
# Type Alias: FieldOptions
|
|
8
|
+
|
|
9
|
+
> **FieldOptions**: `boolean` \| `object`
|
|
10
|
+
|
|
11
|
+
Field properties
|
|
12
|
+
|
|
13
|
+
## Defined in
|
|
14
|
+
|
|
15
|
+
[types.ts:686](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/675e0bac9f2136d1cf47e6f5980760f80d3d1995/src/types.ts#L686)
|