@notabene/javascript-sdk 2.10.0 → 2.11.0
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/cjs/notabene.cjs +1 -1
- package/dist/cjs/notabene.d.ts +63 -2
- package/dist/cjs/package.json +1 -1
- package/dist/esm/notabene.d.ts +63 -2
- package/dist/esm/notabene.js +3 -3
- package/dist/esm/package.json +1 -1
- package/dist/notabene.d.ts +63 -2
- package/dist/notabene.js +3 -3
- package/docs/README.md +227 -51
- package/docs/_media/TransactionOptions.md +19 -9
- package/docs/_media/getRefreshResult.md +35 -0
- package/docs/ivms/types/enumerations/PayloadVersionCode.md +2 -2
- package/docs/ivms/types/interfaces/PayloadMetadata.md +2 -2
- package/docs/ivms/types/type-aliases/Address.md +1 -1
- package/docs/ivms/types/type-aliases/AddressTypeCode.md +1 -1
- package/docs/ivms/types/type-aliases/Beneficiary.md +1 -1
- package/docs/ivms/types/type-aliases/BeneficiaryVASP.md +1 -1
- package/docs/ivms/types/type-aliases/DateAndPlaceOfBirth.md +1 -1
- package/docs/ivms/types/type-aliases/ISOCountryCode.md +1 -1
- package/docs/ivms/types/type-aliases/ISODate.md +1 -1
- package/docs/ivms/types/type-aliases/IVMS101.md +1 -1
- package/docs/ivms/types/type-aliases/IntermediaryVASP.md +1 -1
- package/docs/ivms/types/type-aliases/LegalPerson.md +1 -1
- package/docs/ivms/types/type-aliases/LegalPersonName.md +1 -1
- package/docs/ivms/types/type-aliases/LegalPersonNameID.md +1 -1
- package/docs/ivms/types/type-aliases/LegalPersonNameTypeCode.md +1 -1
- package/docs/ivms/types/type-aliases/LocalLegalPersonNameID.md +1 -1
- package/docs/ivms/types/type-aliases/LocalNaturalPersonNameID.md +1 -1
- package/docs/ivms/types/type-aliases/NationalIdentification.md +1 -1
- package/docs/ivms/types/type-aliases/NationalIdentifierTypeCode.md +1 -1
- package/docs/ivms/types/type-aliases/NaturalPerson.md +1 -1
- package/docs/ivms/types/type-aliases/NaturalPersonName.md +1 -1
- package/docs/ivms/types/type-aliases/NaturalPersonNameID.md +1 -1
- package/docs/ivms/types/type-aliases/NaturalPersonNameTypeCode.md +1 -1
- package/docs/ivms/types/type-aliases/OriginatingVASP.md +1 -1
- package/docs/ivms/types/type-aliases/Originator.md +1 -1
- package/docs/ivms/types/type-aliases/Person.md +1 -1
- package/docs/ivms/types/type-aliases/TransferPath.md +1 -1
- package/docs/ivms/types/type-aliases/TransliterationMethodCode.md +1 -1
- package/docs/notabene/README.md +7 -1
- package/docs/notabene/classes/ConnectionManager.md +19 -5
- package/docs/notabene/classes/EmbeddedComponent.md +17 -17
- package/docs/notabene/classes/default.md +7 -7
- package/docs/notabene/functions/decodeFragmentToObject.md +1 -1
- package/docs/notabene/functions/getRefreshResult.md +11 -3
- package/docs/notabene/interfaces/ConnectionData.md +8 -8
- package/docs/notabene/interfaces/ConnectionMetadata.md +6 -6
- package/docs/notabene/interfaces/ConnectionResponse.md +12 -12
- package/docs/notabene/interfaces/NotabeneConfig.md +5 -5
- package/docs/notabene/type-aliases/ConnectionResult.md +17 -0
- package/docs/notabene/type-aliases/ConnectionStatus.md +1 -1
- package/docs/notabene/type-aliases/MessageCallback.md +1 -1
- package/docs/notabene/type-aliases/TransactionType.md +1 -1
- package/docs/types/README.md +3 -0
- package/docs/types/enumerations/AgentType.md +2 -2
- package/docs/types/enumerations/CMType.md +27 -7
- package/docs/types/enumerations/ErrorIdentifierCode.md +4 -4
- package/docs/types/enumerations/HMType.md +2 -2
- package/docs/types/enumerations/PersonType.md +3 -3
- package/docs/types/enumerations/ProofStatus.md +4 -4
- package/docs/types/enumerations/ProofTypes.md +39 -17
- package/docs/types/enumerations/Status.md +5 -5
- package/docs/types/enumerations/VASPSearchControl.md +2 -2
- package/docs/types/enumerations/ValidationSections.md +4 -4
- package/docs/types/interfaces/Account.md +59 -0
- package/docs/types/interfaces/Agent.md +6 -6
- package/docs/types/interfaces/CallbackOptions.md +2 -2
- package/docs/types/interfaces/ComponentRequest.md +2 -2
- package/docs/types/interfaces/ComponentResponse.md +4 -4
- package/docs/types/interfaces/ConnectionRecord.md +7 -7
- package/docs/types/interfaces/ConnectionRequest.md +3 -3
- package/docs/types/interfaces/Counterparty.md +10 -10
- package/docs/types/interfaces/DeclarationProof.md +6 -6
- package/docs/types/interfaces/Deposit.md +25 -11
- package/docs/types/interfaces/DepositRequest.md +9 -9
- package/docs/types/interfaces/DepositRequestOptions.md +1 -1
- package/docs/types/interfaces/DepositTransaction.md +23 -9
- package/docs/types/interfaces/LegalPerson.md +13 -13
- package/docs/types/interfaces/MicroTransferProof.md +9 -9
- package/docs/types/interfaces/NaturalPerson.md +13 -13
- package/docs/types/interfaces/OwnershipProof.md +4 -4
- package/docs/types/interfaces/RefreshSource.md +2 -2
- package/docs/types/interfaces/Refreshable.md +1 -1
- package/docs/types/interfaces/ScreenshotProof.md +5 -5
- package/docs/types/interfaces/SignatureProof.md +14 -12
- package/docs/types/interfaces/ThresholdOptions.md +3 -3
- package/docs/types/interfaces/Transaction.md +18 -8
- package/docs/types/interfaces/TransactionOptions.md +19 -9
- package/docs/types/interfaces/TransactionResponse.md +9 -9
- package/docs/types/interfaces/VASP.md +19 -9
- package/docs/types/interfaces/Wallet.md +8 -8
- package/docs/types/interfaces/Withdrawal.md +24 -10
- package/docs/types/type-aliases/BlockchainAddress.md +1 -1
- package/docs/types/type-aliases/CAIP10.md +1 -1
- package/docs/types/type-aliases/CAIP19.md +1 -1
- package/docs/types/type-aliases/CAIP2.md +1 -1
- package/docs/types/type-aliases/CAIP220.md +1 -1
- package/docs/types/type-aliases/Cancel.md +1 -1
- package/docs/types/type-aliases/Completed.md +1 -1
- package/docs/types/type-aliases/ComponentMessage.md +5 -2
- package/docs/types/type-aliases/ConnectionOptions.md +1 -1
- package/docs/types/type-aliases/CounterpartyAssistConfig.md +2 -2
- package/docs/types/type-aliases/CryptoCredential.md +1 -1
- package/docs/types/type-aliases/DID.md +1 -1
- package/docs/types/type-aliases/DTI.md +1 -1
- package/docs/types/type-aliases/Destination.md +1 -1
- package/docs/types/type-aliases/Error.md +1 -1
- package/docs/types/type-aliases/FieldOptions.md +2 -2
- package/docs/types/type-aliases/FieldTypes.md +1 -1
- package/docs/types/type-aliases/HostMessage.md +1 -1
- package/docs/types/type-aliases/ISOCurrency.md +1 -1
- package/docs/types/type-aliases/Info.md +37 -0
- package/docs/types/type-aliases/InvalidValue.md +1 -1
- package/docs/types/type-aliases/LEI.md +1 -1
- package/docs/types/type-aliases/LegalPersonFieldName.md +1 -1
- package/docs/types/type-aliases/LegalPersonFields.md +1 -1
- package/docs/types/type-aliases/NationalIdentifierTypeFieldOptions.md +1 -1
- package/docs/types/type-aliases/NaturalPersonFieldName.md +1 -1
- package/docs/types/type-aliases/NaturalPersonFields.md +1 -1
- package/docs/types/type-aliases/NotabeneAsset.md +1 -1
- package/docs/types/type-aliases/Ready.md +1 -1
- package/docs/types/type-aliases/ResizeRequest.md +1 -1
- package/docs/types/type-aliases/Source.md +1 -1
- package/docs/types/type-aliases/Theme.md +1 -1
- package/docs/types/type-aliases/TransactionAsset.md +1 -1
- package/docs/types/type-aliases/TravelAddress.md +1 -1
- package/docs/types/type-aliases/URI.md +1 -1
- package/docs/types/type-aliases/UUID.md +1 -1
- package/docs/types/type-aliases/UpdateValue.md +1 -1
- package/docs/types/type-aliases/V1Asset.md +1 -1
- package/docs/types/type-aliases/V1Transaction.md +1 -1
- package/docs/types/type-aliases/VASPOptions.md +1 -1
- package/docs/types/type-aliases/ValidationError.md +1 -1
- package/docs/types/type-aliases/Warning.md +37 -0
- package/package.json +1 -1
- package/src/notabene.ts +4 -0
- package/src/types.ts +67 -3
- package/src/utils/connections.ts +1 -0
- package/docs/notabene/interfaces/ConnectionResult.md +0 -61
|
@@ -12,4 +12,4 @@ Field properties for legal person fields
|
|
|
12
12
|
|
|
13
13
|
## Defined in
|
|
14
14
|
|
|
15
|
-
[types.ts:
|
|
15
|
+
[types.ts:476](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/52abba74a4a6b14d6ca0d23191964d38919d32ea/src/types.ts#L476)
|
|
@@ -18,4 +18,4 @@ Field properties for national identifier type selection
|
|
|
18
18
|
|
|
19
19
|
## Defined in
|
|
20
20
|
|
|
21
|
-
[types.ts:
|
|
21
|
+
[types.ts:412](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/52abba74a4a6b14d6ca0d23191964d38919d32ea/src/types.ts#L412)
|
|
@@ -12,4 +12,4 @@ Field names for NaturalPerson
|
|
|
12
12
|
|
|
13
13
|
## Defined in
|
|
14
14
|
|
|
15
|
-
[types.ts:
|
|
15
|
+
[types.ts:397](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/52abba74a4a6b14d6ca0d23191964d38919d32ea/src/types.ts#L397)
|
|
@@ -12,4 +12,4 @@ Field properties for natural person fields
|
|
|
12
12
|
|
|
13
13
|
## Defined in
|
|
14
14
|
|
|
15
|
-
[types.ts:
|
|
15
|
+
[types.ts:420](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/52abba74a4a6b14d6ca0d23191964d38919d32ea/src/types.ts#L420)
|
|
@@ -33,4 +33,4 @@ system that may be used alongside CAIP-19 and DTI identifiers.
|
|
|
33
33
|
|
|
34
34
|
## Defined in
|
|
35
35
|
|
|
36
|
-
[types.ts:140](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/
|
|
36
|
+
[types.ts:140](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/52abba74a4a6b14d6ca0d23191964d38919d32ea/src/types.ts#L140)
|
|
@@ -18,4 +18,4 @@ Represents a ready component message
|
|
|
18
18
|
|
|
19
19
|
## Defined in
|
|
20
20
|
|
|
21
|
-
[types.ts:
|
|
21
|
+
[types.ts:902](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/52abba74a4a6b14d6ca0d23191964d38919d32ea/src/types.ts#L902)
|
|
@@ -24,4 +24,4 @@ Represents a resize request component message. This is handled by the library.
|
|
|
24
24
|
|
|
25
25
|
## Defined in
|
|
26
26
|
|
|
27
|
-
[types.ts:
|
|
27
|
+
[types.ts:910](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/52abba74a4a6b14d6ca0d23191964d38919d32ea/src/types.ts#L910)
|
|
@@ -12,4 +12,4 @@ The source of a transaction
|
|
|
12
12
|
|
|
13
13
|
## Defined in
|
|
14
14
|
|
|
15
|
-
[types.ts:208](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/
|
|
15
|
+
[types.ts:208](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/52abba74a4a6b14d6ca0d23191964d38919d32ea/src/types.ts#L208)
|
|
@@ -34,4 +34,4 @@ The theme of the Notabene SDK
|
|
|
34
34
|
|
|
35
35
|
## Defined in
|
|
36
36
|
|
|
37
|
-
[types.ts:238](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/
|
|
37
|
+
[types.ts:238](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/52abba74a4a6b14d6ca0d23191964d38919d32ea/src/types.ts#L238)
|
|
@@ -12,4 +12,4 @@ The asset of a transaction either a Notabene asset, a CAIP-19 asset, or a DTI.
|
|
|
12
12
|
|
|
13
13
|
## Defined in
|
|
14
14
|
|
|
15
|
-
[types.ts:146](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/
|
|
15
|
+
[types.ts:146](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/52abba74a4a6b14d6ca0d23191964d38919d32ea/src/types.ts#L146)
|
|
@@ -34,4 +34,4 @@ VASPs and blockchain networks while maintaining privacy.
|
|
|
34
34
|
|
|
35
35
|
## Defined in
|
|
36
36
|
|
|
37
|
-
[types.ts:187](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/
|
|
37
|
+
[types.ts:187](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/52abba74a4a6b14d6ca0d23191964d38919d32ea/src/types.ts#L187)
|
|
@@ -12,4 +12,4 @@ A Uniform Resource Identifier
|
|
|
12
12
|
|
|
13
13
|
## Defined in
|
|
14
14
|
|
|
15
|
-
[types.ts:214](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/
|
|
15
|
+
[types.ts:214](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/52abba74a4a6b14d6ca0d23191964d38919d32ea/src/types.ts#L214)
|
|
@@ -24,4 +24,4 @@ Format: 8-4-4-4-12 hexadecimal digits
|
|
|
24
24
|
|
|
25
25
|
## Defined in
|
|
26
26
|
|
|
27
|
-
[types.ts:40](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/
|
|
27
|
+
[types.ts:40](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/52abba74a4a6b14d6ca0d23191964d38919d32ea/src/types.ts#L40)
|
|
@@ -51,4 +51,4 @@ and its configuration without requiring a full reload/reinitialize.
|
|
|
51
51
|
|
|
52
52
|
## Defined in
|
|
53
53
|
|
|
54
|
-
[types.ts:
|
|
54
|
+
[types.ts:1052](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/52abba74a4a6b14d6ca0d23191964d38919d32ea/src/types.ts#L1052)
|
|
@@ -33,4 +33,4 @@ Used for backwards compatibility with V1 API transaction payloads:
|
|
|
33
33
|
|
|
34
34
|
## Defined in
|
|
35
35
|
|
|
36
|
-
[types.ts:
|
|
36
|
+
[types.ts:671](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/52abba74a4a6b14d6ca0d23191964d38919d32ea/src/types.ts#L671)
|
|
@@ -54,4 +54,4 @@ Transaction payload suitable for calling Notabene v1 tx/create
|
|
|
54
54
|
|
|
55
55
|
## Defined in
|
|
56
56
|
|
|
57
|
-
[types.ts:
|
|
57
|
+
[types.ts:677](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/52abba74a4a6b14d6ca0d23191964d38919d32ea/src/types.ts#L677)
|
|
@@ -26,4 +26,4 @@ Options for which VASPs to be searchable
|
|
|
26
26
|
|
|
27
27
|
## Defined in
|
|
28
28
|
|
|
29
|
-
[types.ts:
|
|
29
|
+
[types.ts:790](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/52abba74a4a6b14d6ca0d23191964d38919d32ea/src/types.ts#L790)
|
|
@@ -22,4 +22,4 @@ Validation error
|
|
|
22
22
|
|
|
23
23
|
## Defined in
|
|
24
24
|
|
|
25
|
-
[types.ts:
|
|
25
|
+
[types.ts:747](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/52abba74a4a6b14d6ca0d23191964d38919d32ea/src/types.ts#L747)
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
[**@notabene/javascript-sdk**](../../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@notabene/javascript-sdk](../../modules.md) / [types](../README.md) / Warning
|
|
6
|
+
|
|
7
|
+
# Type Alias: Warning
|
|
8
|
+
|
|
9
|
+
> **Warning**: `object`
|
|
10
|
+
|
|
11
|
+
Represents a warning component message
|
|
12
|
+
|
|
13
|
+
## Type declaration
|
|
14
|
+
|
|
15
|
+
### description?
|
|
16
|
+
|
|
17
|
+
> `optional` **description**: `string`
|
|
18
|
+
|
|
19
|
+
### message
|
|
20
|
+
|
|
21
|
+
> **message**: `string`
|
|
22
|
+
|
|
23
|
+
### type
|
|
24
|
+
|
|
25
|
+
> **type**: [`WARNING`](../enumerations/CMType.md#warning)
|
|
26
|
+
|
|
27
|
+
## Param
|
|
28
|
+
|
|
29
|
+
Warning message
|
|
30
|
+
|
|
31
|
+
## Param
|
|
32
|
+
|
|
33
|
+
Description of the warning message
|
|
34
|
+
|
|
35
|
+
## Defined in
|
|
36
|
+
|
|
37
|
+
[types.ts:967](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/52abba74a4a6b14d6ca0d23191964d38919d32ea/src/types.ts#L967)
|
package/package.json
CHANGED
package/src/notabene.ts
CHANGED
|
@@ -45,6 +45,8 @@ import type {
|
|
|
45
45
|
ResizeRequest,
|
|
46
46
|
ScreenshotProof,
|
|
47
47
|
SignatureProof,
|
|
48
|
+
SIWXInput,
|
|
49
|
+
SolanaMetadata,
|
|
48
50
|
Theme,
|
|
49
51
|
ThresholdOptions,
|
|
50
52
|
Transaction,
|
|
@@ -146,6 +148,8 @@ export type {
|
|
|
146
148
|
ResizeRequest,
|
|
147
149
|
ScreenshotProof,
|
|
148
150
|
SignatureProof,
|
|
151
|
+
SIWXInput,
|
|
152
|
+
SolanaMetadata,
|
|
149
153
|
Theme,
|
|
150
154
|
ThresholdOptions,
|
|
151
155
|
Transaction,
|
package/src/types.ts
CHANGED
|
@@ -1109,6 +1109,8 @@ export enum ProofStatus {
|
|
|
1109
1109
|
* - SelfDeclaration: User self-declares ownership without cryptographic proof
|
|
1110
1110
|
* - EIP191: Ethereum personal signature following EIP-191 standard
|
|
1111
1111
|
* - SIWE: Sign-In with Ethereum message signature (EIP-4361)
|
|
1112
|
+
* - SIWX: Sign-In with X message signature
|
|
1113
|
+
* - SOL_SIWX: Sign-In with Solana message signature (SIWE for Solana)
|
|
1112
1114
|
* - EIP712: Ethereum typed data signature following EIP-712 standard
|
|
1113
1115
|
* - BIP137: Bitcoin message signature following BIP-137
|
|
1114
1116
|
* - BIP322: Bitcoin message signature following BIP-322
|
|
@@ -1131,6 +1133,7 @@ export enum ProofTypes {
|
|
|
1131
1133
|
SelfDeclaration = 'self-declaration',
|
|
1132
1134
|
SIWE = 'siwe',
|
|
1133
1135
|
SIWX = 'siwx',
|
|
1136
|
+
SOL_SIWX = 'sol-siwx',
|
|
1134
1137
|
EIP191 = 'eip-191',
|
|
1135
1138
|
EIP712 = 'eip-712',
|
|
1136
1139
|
EIP1271 = 'eip-1271',
|
|
@@ -1145,6 +1148,7 @@ export enum ProofTypes {
|
|
|
1145
1148
|
MicroTransfer = 'microtransfer',
|
|
1146
1149
|
Screenshot = 'screenshot',
|
|
1147
1150
|
Connect = 'connect',
|
|
1151
|
+
CONCORDIUM = 'concordium',
|
|
1148
1152
|
}
|
|
1149
1153
|
|
|
1150
1154
|
/**
|
|
@@ -1175,6 +1179,62 @@ export interface OwnershipProof {
|
|
|
1175
1179
|
address: CAIP10;
|
|
1176
1180
|
}
|
|
1177
1181
|
|
|
1182
|
+
/**
|
|
1183
|
+
* Input for SIWX message signing
|
|
1184
|
+
* Every SIWX message must include the following fields:
|
|
1185
|
+
* - domain
|
|
1186
|
+
* - address
|
|
1187
|
+
* - statement
|
|
1188
|
+
* - uri
|
|
1189
|
+
* - version
|
|
1190
|
+
* - chainId
|
|
1191
|
+
*
|
|
1192
|
+
* Optional fields:
|
|
1193
|
+
* - nonce
|
|
1194
|
+
* - issuedAt
|
|
1195
|
+
* - expirationTime
|
|
1196
|
+
* - notBefore
|
|
1197
|
+
* - requestId
|
|
1198
|
+
* - resources
|
|
1199
|
+
*
|
|
1200
|
+
* @public
|
|
1201
|
+
*/
|
|
1202
|
+
export interface SIWXInput {
|
|
1203
|
+
domain: string;
|
|
1204
|
+
address: string;
|
|
1205
|
+
statement?: string;
|
|
1206
|
+
uri?: string;
|
|
1207
|
+
version?: string;
|
|
1208
|
+
chainId?: string;
|
|
1209
|
+
nonce?: string;
|
|
1210
|
+
issuedAt?: string;
|
|
1211
|
+
expirationTime?: string;
|
|
1212
|
+
notBefore?: string;
|
|
1213
|
+
requestId?: string;
|
|
1214
|
+
resources?: readonly string[];
|
|
1215
|
+
}
|
|
1216
|
+
|
|
1217
|
+
/**
|
|
1218
|
+
* Metadata for Solana SIWX ownership proofs
|
|
1219
|
+
* @remarks
|
|
1220
|
+
* - Includes the account public key and address
|
|
1221
|
+
* - Includes the signed message
|
|
1222
|
+
* - Includes the signature
|
|
1223
|
+
* - Includes the message
|
|
1224
|
+
*
|
|
1225
|
+
* @see {@link SignatureProof} For signature-based proofs
|
|
1226
|
+
* @public
|
|
1227
|
+
*/
|
|
1228
|
+
export interface SolanaMetadata {
|
|
1229
|
+
account: {
|
|
1230
|
+
address: string;
|
|
1231
|
+
publicKey: Uint8Array;
|
|
1232
|
+
};
|
|
1233
|
+
signedMessage: Uint8Array;
|
|
1234
|
+
signature: Uint8Array;
|
|
1235
|
+
message: SIWXInput;
|
|
1236
|
+
}
|
|
1237
|
+
|
|
1178
1238
|
/**
|
|
1179
1239
|
* Interface for signature-based ownership proofs that use cryptographic message signing
|
|
1180
1240
|
*
|
|
@@ -1203,18 +1263,22 @@ export interface SignatureProof extends OwnershipProof {
|
|
|
1203
1263
|
| ProofTypes.ED25519
|
|
1204
1264
|
| ProofTypes.TIP191
|
|
1205
1265
|
| ProofTypes.SIWX
|
|
1266
|
+
| ProofTypes.SOL_SIWX
|
|
1206
1267
|
| ProofTypes.SIWE
|
|
1207
1268
|
| ProofTypes.CIP8
|
|
1208
1269
|
| ProofTypes.XRP_ED25519
|
|
1270
|
+
| ProofTypes.CONCORDIUM
|
|
1209
1271
|
| ProofTypes.XLM_ED25519;
|
|
1210
1272
|
|
|
1211
1273
|
proof: string;
|
|
1212
1274
|
attestation: string;
|
|
1213
1275
|
wallet_provider: string;
|
|
1214
1276
|
xpub?: string;
|
|
1215
|
-
chainSpecificData?:
|
|
1216
|
-
|
|
1217
|
-
|
|
1277
|
+
chainSpecificData?:
|
|
1278
|
+
| {
|
|
1279
|
+
cardanoCoseKey?: string; // Cardano COSE key https://cips.cardano.org/cip/CIP-0030
|
|
1280
|
+
}
|
|
1281
|
+
| SolanaMetadata;
|
|
1218
1282
|
}
|
|
1219
1283
|
|
|
1220
1284
|
/**
|
package/src/utils/connections.ts
CHANGED
|
@@ -21,6 +21,7 @@ export interface ConnectionMetadata {
|
|
|
21
21
|
readonly nodeUrl?: string;
|
|
22
22
|
readonly participants: readonly string[];
|
|
23
23
|
readonly transactionType: TransactionType;
|
|
24
|
+
readonly locale?: string;
|
|
24
25
|
}
|
|
25
26
|
|
|
26
27
|
export interface ConnectionResponse<T extends ComponentRequest> {
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
[**@notabene/javascript-sdk**](../../README.md)
|
|
2
|
-
|
|
3
|
-
***
|
|
4
|
-
|
|
5
|
-
[@notabene/javascript-sdk](../../modules.md) / [notabene](../README.md) / ConnectionResult
|
|
6
|
-
|
|
7
|
-
# Interface: ConnectionResult\<T\>
|
|
8
|
-
|
|
9
|
-
## Type Parameters
|
|
10
|
-
|
|
11
|
-
• **T** *extends* [`ComponentRequest`](../../types/interfaces/ComponentRequest.md)
|
|
12
|
-
|
|
13
|
-
## Properties
|
|
14
|
-
|
|
15
|
-
### id
|
|
16
|
-
|
|
17
|
-
> **id**: `string`
|
|
18
|
-
|
|
19
|
-
#### Defined in
|
|
20
|
-
|
|
21
|
-
[utils/connections.ts:34](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/f6a0825d098b61a3bc31d6c197072643eb78a452/src/utils/connections.ts#L34)
|
|
22
|
-
|
|
23
|
-
***
|
|
24
|
-
|
|
25
|
-
### metadata
|
|
26
|
-
|
|
27
|
-
> **metadata**: [`ConnectionMetadata`](ConnectionMetadata.md)
|
|
28
|
-
|
|
29
|
-
#### Defined in
|
|
30
|
-
|
|
31
|
-
[utils/connections.ts:35](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/f6a0825d098b61a3bc31d6c197072643eb78a452/src/utils/connections.ts#L35)
|
|
32
|
-
|
|
33
|
-
***
|
|
34
|
-
|
|
35
|
-
### result?
|
|
36
|
-
|
|
37
|
-
> `optional` **result**: [`TransactionResponse`](../../types/interfaces/TransactionResponse.md)\<`T`\>
|
|
38
|
-
|
|
39
|
-
#### Defined in
|
|
40
|
-
|
|
41
|
-
[utils/connections.ts:38](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/f6a0825d098b61a3bc31d6c197072643eb78a452/src/utils/connections.ts#L38)
|
|
42
|
-
|
|
43
|
-
***
|
|
44
|
-
|
|
45
|
-
### status
|
|
46
|
-
|
|
47
|
-
> **status**: [`ConnectionStatus`](../type-aliases/ConnectionStatus.md)
|
|
48
|
-
|
|
49
|
-
#### Defined in
|
|
50
|
-
|
|
51
|
-
[utils/connections.ts:36](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/f6a0825d098b61a3bc31d6c197072643eb78a452/src/utils/connections.ts#L36)
|
|
52
|
-
|
|
53
|
-
***
|
|
54
|
-
|
|
55
|
-
### tx?
|
|
56
|
-
|
|
57
|
-
> `optional` **tx**: `T`
|
|
58
|
-
|
|
59
|
-
#### Defined in
|
|
60
|
-
|
|
61
|
-
[utils/connections.ts:37](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/f6a0825d098b61a3bc31d6c197072643eb78a452/src/utils/connections.ts#L37)
|