@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.
Files changed (139) hide show
  1. package/dist/cjs/notabene.cjs +1 -1
  2. package/dist/cjs/notabene.d.ts +63 -2
  3. package/dist/cjs/package.json +1 -1
  4. package/dist/esm/notabene.d.ts +63 -2
  5. package/dist/esm/notabene.js +3 -3
  6. package/dist/esm/package.json +1 -1
  7. package/dist/notabene.d.ts +63 -2
  8. package/dist/notabene.js +3 -3
  9. package/docs/README.md +227 -51
  10. package/docs/_media/TransactionOptions.md +19 -9
  11. package/docs/_media/getRefreshResult.md +35 -0
  12. package/docs/ivms/types/enumerations/PayloadVersionCode.md +2 -2
  13. package/docs/ivms/types/interfaces/PayloadMetadata.md +2 -2
  14. package/docs/ivms/types/type-aliases/Address.md +1 -1
  15. package/docs/ivms/types/type-aliases/AddressTypeCode.md +1 -1
  16. package/docs/ivms/types/type-aliases/Beneficiary.md +1 -1
  17. package/docs/ivms/types/type-aliases/BeneficiaryVASP.md +1 -1
  18. package/docs/ivms/types/type-aliases/DateAndPlaceOfBirth.md +1 -1
  19. package/docs/ivms/types/type-aliases/ISOCountryCode.md +1 -1
  20. package/docs/ivms/types/type-aliases/ISODate.md +1 -1
  21. package/docs/ivms/types/type-aliases/IVMS101.md +1 -1
  22. package/docs/ivms/types/type-aliases/IntermediaryVASP.md +1 -1
  23. package/docs/ivms/types/type-aliases/LegalPerson.md +1 -1
  24. package/docs/ivms/types/type-aliases/LegalPersonName.md +1 -1
  25. package/docs/ivms/types/type-aliases/LegalPersonNameID.md +1 -1
  26. package/docs/ivms/types/type-aliases/LegalPersonNameTypeCode.md +1 -1
  27. package/docs/ivms/types/type-aliases/LocalLegalPersonNameID.md +1 -1
  28. package/docs/ivms/types/type-aliases/LocalNaturalPersonNameID.md +1 -1
  29. package/docs/ivms/types/type-aliases/NationalIdentification.md +1 -1
  30. package/docs/ivms/types/type-aliases/NationalIdentifierTypeCode.md +1 -1
  31. package/docs/ivms/types/type-aliases/NaturalPerson.md +1 -1
  32. package/docs/ivms/types/type-aliases/NaturalPersonName.md +1 -1
  33. package/docs/ivms/types/type-aliases/NaturalPersonNameID.md +1 -1
  34. package/docs/ivms/types/type-aliases/NaturalPersonNameTypeCode.md +1 -1
  35. package/docs/ivms/types/type-aliases/OriginatingVASP.md +1 -1
  36. package/docs/ivms/types/type-aliases/Originator.md +1 -1
  37. package/docs/ivms/types/type-aliases/Person.md +1 -1
  38. package/docs/ivms/types/type-aliases/TransferPath.md +1 -1
  39. package/docs/ivms/types/type-aliases/TransliterationMethodCode.md +1 -1
  40. package/docs/notabene/README.md +7 -1
  41. package/docs/notabene/classes/ConnectionManager.md +19 -5
  42. package/docs/notabene/classes/EmbeddedComponent.md +17 -17
  43. package/docs/notabene/classes/default.md +7 -7
  44. package/docs/notabene/functions/decodeFragmentToObject.md +1 -1
  45. package/docs/notabene/functions/getRefreshResult.md +11 -3
  46. package/docs/notabene/interfaces/ConnectionData.md +8 -8
  47. package/docs/notabene/interfaces/ConnectionMetadata.md +6 -6
  48. package/docs/notabene/interfaces/ConnectionResponse.md +12 -12
  49. package/docs/notabene/interfaces/NotabeneConfig.md +5 -5
  50. package/docs/notabene/type-aliases/ConnectionResult.md +17 -0
  51. package/docs/notabene/type-aliases/ConnectionStatus.md +1 -1
  52. package/docs/notabene/type-aliases/MessageCallback.md +1 -1
  53. package/docs/notabene/type-aliases/TransactionType.md +1 -1
  54. package/docs/types/README.md +3 -0
  55. package/docs/types/enumerations/AgentType.md +2 -2
  56. package/docs/types/enumerations/CMType.md +27 -7
  57. package/docs/types/enumerations/ErrorIdentifierCode.md +4 -4
  58. package/docs/types/enumerations/HMType.md +2 -2
  59. package/docs/types/enumerations/PersonType.md +3 -3
  60. package/docs/types/enumerations/ProofStatus.md +4 -4
  61. package/docs/types/enumerations/ProofTypes.md +39 -17
  62. package/docs/types/enumerations/Status.md +5 -5
  63. package/docs/types/enumerations/VASPSearchControl.md +2 -2
  64. package/docs/types/enumerations/ValidationSections.md +4 -4
  65. package/docs/types/interfaces/Account.md +59 -0
  66. package/docs/types/interfaces/Agent.md +6 -6
  67. package/docs/types/interfaces/CallbackOptions.md +2 -2
  68. package/docs/types/interfaces/ComponentRequest.md +2 -2
  69. package/docs/types/interfaces/ComponentResponse.md +4 -4
  70. package/docs/types/interfaces/ConnectionRecord.md +7 -7
  71. package/docs/types/interfaces/ConnectionRequest.md +3 -3
  72. package/docs/types/interfaces/Counterparty.md +10 -10
  73. package/docs/types/interfaces/DeclarationProof.md +6 -6
  74. package/docs/types/interfaces/Deposit.md +25 -11
  75. package/docs/types/interfaces/DepositRequest.md +9 -9
  76. package/docs/types/interfaces/DepositRequestOptions.md +1 -1
  77. package/docs/types/interfaces/DepositTransaction.md +23 -9
  78. package/docs/types/interfaces/LegalPerson.md +13 -13
  79. package/docs/types/interfaces/MicroTransferProof.md +9 -9
  80. package/docs/types/interfaces/NaturalPerson.md +13 -13
  81. package/docs/types/interfaces/OwnershipProof.md +4 -4
  82. package/docs/types/interfaces/RefreshSource.md +2 -2
  83. package/docs/types/interfaces/Refreshable.md +1 -1
  84. package/docs/types/interfaces/ScreenshotProof.md +5 -5
  85. package/docs/types/interfaces/SignatureProof.md +14 -12
  86. package/docs/types/interfaces/ThresholdOptions.md +3 -3
  87. package/docs/types/interfaces/Transaction.md +18 -8
  88. package/docs/types/interfaces/TransactionOptions.md +19 -9
  89. package/docs/types/interfaces/TransactionResponse.md +9 -9
  90. package/docs/types/interfaces/VASP.md +19 -9
  91. package/docs/types/interfaces/Wallet.md +8 -8
  92. package/docs/types/interfaces/Withdrawal.md +24 -10
  93. package/docs/types/type-aliases/BlockchainAddress.md +1 -1
  94. package/docs/types/type-aliases/CAIP10.md +1 -1
  95. package/docs/types/type-aliases/CAIP19.md +1 -1
  96. package/docs/types/type-aliases/CAIP2.md +1 -1
  97. package/docs/types/type-aliases/CAIP220.md +1 -1
  98. package/docs/types/type-aliases/Cancel.md +1 -1
  99. package/docs/types/type-aliases/Completed.md +1 -1
  100. package/docs/types/type-aliases/ComponentMessage.md +5 -2
  101. package/docs/types/type-aliases/ConnectionOptions.md +1 -1
  102. package/docs/types/type-aliases/CounterpartyAssistConfig.md +2 -2
  103. package/docs/types/type-aliases/CryptoCredential.md +1 -1
  104. package/docs/types/type-aliases/DID.md +1 -1
  105. package/docs/types/type-aliases/DTI.md +1 -1
  106. package/docs/types/type-aliases/Destination.md +1 -1
  107. package/docs/types/type-aliases/Error.md +1 -1
  108. package/docs/types/type-aliases/FieldOptions.md +2 -2
  109. package/docs/types/type-aliases/FieldTypes.md +1 -1
  110. package/docs/types/type-aliases/HostMessage.md +1 -1
  111. package/docs/types/type-aliases/ISOCurrency.md +1 -1
  112. package/docs/types/type-aliases/Info.md +37 -0
  113. package/docs/types/type-aliases/InvalidValue.md +1 -1
  114. package/docs/types/type-aliases/LEI.md +1 -1
  115. package/docs/types/type-aliases/LegalPersonFieldName.md +1 -1
  116. package/docs/types/type-aliases/LegalPersonFields.md +1 -1
  117. package/docs/types/type-aliases/NationalIdentifierTypeFieldOptions.md +1 -1
  118. package/docs/types/type-aliases/NaturalPersonFieldName.md +1 -1
  119. package/docs/types/type-aliases/NaturalPersonFields.md +1 -1
  120. package/docs/types/type-aliases/NotabeneAsset.md +1 -1
  121. package/docs/types/type-aliases/Ready.md +1 -1
  122. package/docs/types/type-aliases/ResizeRequest.md +1 -1
  123. package/docs/types/type-aliases/Source.md +1 -1
  124. package/docs/types/type-aliases/Theme.md +1 -1
  125. package/docs/types/type-aliases/TransactionAsset.md +1 -1
  126. package/docs/types/type-aliases/TravelAddress.md +1 -1
  127. package/docs/types/type-aliases/URI.md +1 -1
  128. package/docs/types/type-aliases/UUID.md +1 -1
  129. package/docs/types/type-aliases/UpdateValue.md +1 -1
  130. package/docs/types/type-aliases/V1Asset.md +1 -1
  131. package/docs/types/type-aliases/V1Transaction.md +1 -1
  132. package/docs/types/type-aliases/VASPOptions.md +1 -1
  133. package/docs/types/type-aliases/ValidationError.md +1 -1
  134. package/docs/types/type-aliases/Warning.md +37 -0
  135. package/package.json +1 -1
  136. package/src/notabene.ts +4 -0
  137. package/src/types.ts +67 -3
  138. package/src/utils/connections.ts +1 -0
  139. 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:463](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/f6a0825d098b61a3bc31d6c197072643eb78a452/src/types.ts#L463)
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:399](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/f6a0825d098b61a3bc31d6c197072643eb78a452/src/types.ts#L399)
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:384](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/f6a0825d098b61a3bc31d6c197072643eb78a452/src/types.ts#L384)
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:407](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/f6a0825d098b61a3bc31d6c197072643eb78a452/src/types.ts#L407)
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/f6a0825d098b61a3bc31d6c197072643eb78a452/src/types.ts#L140)
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:890](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/f6a0825d098b61a3bc31d6c197072643eb78a452/src/types.ts#L890)
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:898](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/f6a0825d098b61a3bc31d6c197072643eb78a452/src/types.ts#L898)
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/f6a0825d098b61a3bc31d6c197072643eb78a452/src/types.ts#L208)
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/f6a0825d098b61a3bc31d6c197072643eb78a452/src/types.ts#L238)
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/f6a0825d098b61a3bc31d6c197072643eb78a452/src/types.ts#L146)
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/f6a0825d098b61a3bc31d6c197072643eb78a452/src/types.ts#L187)
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/f6a0825d098b61a3bc31d6c197072643eb78a452/src/types.ts#L214)
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/f6a0825d098b61a3bc31d6c197072643eb78a452/src/types.ts#L40)
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:1011](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/f6a0825d098b61a3bc31d6c197072643eb78a452/src/types.ts#L1011)
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:657](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/f6a0825d098b61a3bc31d6c197072643eb78a452/src/types.ts#L657)
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:663](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/f6a0825d098b61a3bc31d6c197072643eb78a452/src/types.ts#L663)
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:777](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/f6a0825d098b61a3bc31d6c197072643eb78a452/src/types.ts#L777)
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:733](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/f6a0825d098b61a3bc31d6c197072643eb78a452/src/types.ts#L733)
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
@@ -10,7 +10,7 @@
10
10
  "author": "Notabene <developers@notabene.id>",
11
11
  "license": "MIT",
12
12
  "packageManager": "yarn@4.5.1",
13
- "version": "2.10.0",
13
+ "version": "2.11.0",
14
14
  "source": "src/notabene.ts",
15
15
  "main": "dist/cjs/notabene.cjs",
16
16
  "module": "dist/esm/notabene.js",
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
- cardanoCoseKey?: string; // Cardano COSE key https://cips.cardano.org/cip/CIP-0030
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
  /**
@@ -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)