@bananalink-sdk/protocol 1.2.8 → 1.4.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 (83) hide show
  1. package/dist/{chunk-32OWUOZ3.js → chunk-KJ7QIHAY.js} +11 -7
  2. package/dist/chunk-KJ7QIHAY.js.map +1 -0
  3. package/dist/{chunk-VXLUSU5B.cjs → chunk-MUYKP6UQ.cjs} +63 -8
  4. package/dist/chunk-MUYKP6UQ.cjs.map +1 -0
  5. package/dist/{chunk-MCZG7QEM.cjs → chunk-NGPP7HUR.cjs} +11 -7
  6. package/dist/chunk-NGPP7HUR.cjs.map +1 -0
  7. package/dist/{chunk-LELPCIE7.js → chunk-OBJR2TL4.js} +54 -4
  8. package/dist/chunk-OBJR2TL4.js.map +1 -0
  9. package/dist/{chunk-KNGZKGRS.cjs → chunk-RZPN2GDJ.cjs} +13 -4
  10. package/dist/chunk-RZPN2GDJ.cjs.map +1 -0
  11. package/dist/{chunk-7KYDLL3B.js → chunk-XCMAKN3P.js} +13 -5
  12. package/dist/chunk-XCMAKN3P.js.map +1 -0
  13. package/dist/{client-session-claim-C4lUik3b.d.cts → client-session-claim-CkRKTG50.d.cts} +12 -2
  14. package/dist/{client-session-claim-3QF3noOr.d.ts → client-session-claim-CrIDASkZ.d.ts} +12 -2
  15. package/dist/crypto/providers/noble-provider.cjs +2 -3
  16. package/dist/crypto/providers/noble-provider.d.cts +0 -7
  17. package/dist/crypto/providers/noble-provider.d.ts +0 -7
  18. package/dist/crypto/providers/noble-provider.js +1 -2
  19. package/dist/crypto/providers/node-provider.cjs +7 -29
  20. package/dist/crypto/providers/node-provider.cjs.map +1 -1
  21. package/dist/crypto/providers/node-provider.d.cts +0 -7
  22. package/dist/crypto/providers/node-provider.d.ts +0 -7
  23. package/dist/crypto/providers/node-provider.js +7 -29
  24. package/dist/crypto/providers/node-provider.js.map +1 -1
  25. package/dist/crypto/providers/quickcrypto-provider.cjs +8 -46
  26. package/dist/crypto/providers/quickcrypto-provider.cjs.map +1 -1
  27. package/dist/crypto/providers/quickcrypto-provider.d.cts +0 -9
  28. package/dist/crypto/providers/quickcrypto-provider.d.ts +0 -9
  29. package/dist/crypto/providers/quickcrypto-provider.js +7 -45
  30. package/dist/crypto/providers/quickcrypto-provider.js.map +1 -1
  31. package/dist/crypto/providers/webcrypto-provider.cjs +0 -2
  32. package/dist/crypto/providers/webcrypto-provider.cjs.map +1 -1
  33. package/dist/crypto/providers/webcrypto-provider.d.cts +0 -7
  34. package/dist/crypto/providers/webcrypto-provider.d.ts +0 -7
  35. package/dist/crypto/providers/webcrypto-provider.js +0 -2
  36. package/dist/crypto/providers/webcrypto-provider.js.map +1 -1
  37. package/dist/{crypto-BUS06Qz-.d.cts → crypto-BK0Ile6V.d.cts} +1 -1
  38. package/dist/{crypto-BUS06Qz-.d.ts → crypto-BK0Ile6V.d.ts} +1 -1
  39. package/dist/crypto-export.cjs +50 -51
  40. package/dist/crypto-export.cjs.map +1 -1
  41. package/dist/crypto-export.d.cts +1 -1
  42. package/dist/crypto-export.d.ts +1 -1
  43. package/dist/crypto-export.js +2 -4
  44. package/dist/crypto-export.js.map +1 -1
  45. package/dist/index.cjs +8 -4
  46. package/dist/index.cjs.map +1 -1
  47. package/dist/index.d.cts +31 -4
  48. package/dist/index.d.ts +31 -4
  49. package/dist/index.js +7 -4
  50. package/dist/index.js.map +1 -1
  51. package/dist/schemas-export.cjs +76 -72
  52. package/dist/schemas-export.d.cts +116 -1
  53. package/dist/schemas-export.d.ts +116 -1
  54. package/dist/schemas-export.js +1 -1
  55. package/dist/testing.d.cts +2 -2
  56. package/dist/testing.d.ts +2 -2
  57. package/dist/validation-export.cjs +76 -72
  58. package/dist/validation-export.d.cts +1 -1
  59. package/dist/validation-export.d.ts +1 -1
  60. package/dist/validation-export.js +1 -1
  61. package/package.json +1 -1
  62. package/src/crypto/providers/noble-provider.ts +44 -49
  63. package/src/crypto/providers/node-provider.ts +18 -59
  64. package/src/crypto/providers/quickcrypto-provider.ts +25 -84
  65. package/src/crypto/providers/registry.ts +14 -9
  66. package/src/crypto/providers/webcrypto-provider.ts +28 -43
  67. package/src/index.ts +1 -0
  68. package/src/schemas/client-messages.ts +14 -0
  69. package/src/schemas/wallet-messages.ts +4 -0
  70. package/src/types/client-messages.ts +26 -1
  71. package/src/types/index.ts +9 -0
  72. package/src/types/persistence.ts +32 -0
  73. package/src/types/wallet-messages.ts +6 -2
  74. package/dist/chunk-32OWUOZ3.js.map +0 -1
  75. package/dist/chunk-7KYDLL3B.js.map +0 -1
  76. package/dist/chunk-A6FLEJ7R.cjs +0 -62
  77. package/dist/chunk-A6FLEJ7R.cjs.map +0 -1
  78. package/dist/chunk-KNGZKGRS.cjs.map +0 -1
  79. package/dist/chunk-LELPCIE7.js.map +0 -1
  80. package/dist/chunk-MCZG7QEM.cjs.map +0 -1
  81. package/dist/chunk-TCVKC227.js +0 -56
  82. package/dist/chunk-TCVKC227.js.map +0 -1
  83. package/dist/chunk-VXLUSU5B.cjs.map +0 -1
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkKNGZKGRS_cjs = require('./chunk-KNGZKGRS.cjs');
3
+ var chunkRZPN2GDJ_cjs = require('./chunk-RZPN2GDJ.cjs');
4
4
  require('./chunk-GI3BUPIH.cjs');
5
5
  require('./chunk-WGEGR3DF.cjs');
6
6
 
@@ -8,287 +8,291 @@ require('./chunk-WGEGR3DF.cjs');
8
8
 
9
9
  Object.defineProperty(exports, "authenticateConnectionPayloadSchema", {
10
10
  enumerable: true,
11
- get: function () { return chunkKNGZKGRS_cjs.authenticateConnectionPayloadSchema; }
11
+ get: function () { return chunkRZPN2GDJ_cjs.authenticateConnectionPayloadSchema; }
12
12
  });
13
13
  Object.defineProperty(exports, "authenticationDataSchema", {
14
14
  enumerable: true,
15
- get: function () { return chunkKNGZKGRS_cjs.authenticationDataSchema; }
15
+ get: function () { return chunkRZPN2GDJ_cjs.authenticationDataSchema; }
16
16
  });
17
17
  Object.defineProperty(exports, "bananaLinkErrorSchema", {
18
18
  enumerable: true,
19
- get: function () { return chunkKNGZKGRS_cjs.bananaLinkErrorSchema; }
19
+ get: function () { return chunkRZPN2GDJ_cjs.bananaLinkErrorSchema; }
20
20
  });
21
21
  Object.defineProperty(exports, "base64Schema", {
22
22
  enumerable: true,
23
- get: function () { return chunkKNGZKGRS_cjs.base64Schema; }
23
+ get: function () { return chunkRZPN2GDJ_cjs.base64Schema; }
24
24
  });
25
25
  Object.defineProperty(exports, "claimSessionPayloadSchema", {
26
26
  enumerable: true,
27
- get: function () { return chunkKNGZKGRS_cjs.claimSessionPayloadSchema; }
27
+ get: function () { return chunkRZPN2GDJ_cjs.claimSessionPayloadSchema; }
28
+ });
29
+ Object.defineProperty(exports, "clientHandshakeMessageSchema", {
30
+ enumerable: true,
31
+ get: function () { return chunkRZPN2GDJ_cjs.clientHandshakeMessageSchema; }
28
32
  });
29
33
  Object.defineProperty(exports, "clientMessageEnvelopeSchema", {
30
34
  enumerable: true,
31
- get: function () { return chunkKNGZKGRS_cjs.clientMessageEnvelopeSchema; }
35
+ get: function () { return chunkRZPN2GDJ_cjs.clientMessageEnvelopeSchema; }
32
36
  });
33
37
  Object.defineProperty(exports, "clientMessagePayloadSchema", {
34
38
  enumerable: true,
35
- get: function () { return chunkKNGZKGRS_cjs.clientMessagePayloadSchema; }
39
+ get: function () { return chunkRZPN2GDJ_cjs.clientMessagePayloadSchema; }
36
40
  });
37
41
  Object.defineProperty(exports, "clientReconnectPayloadSchema", {
38
42
  enumerable: true,
39
- get: function () { return chunkKNGZKGRS_cjs.clientReconnectPayloadSchema; }
43
+ get: function () { return chunkRZPN2GDJ_cjs.clientReconnectPayloadSchema; }
40
44
  });
41
45
  Object.defineProperty(exports, "clientSessionClaimSchema", {
42
46
  enumerable: true,
43
- get: function () { return chunkKNGZKGRS_cjs.clientSessionClaimSchema; }
47
+ get: function () { return chunkRZPN2GDJ_cjs.clientSessionClaimSchema; }
44
48
  });
45
49
  Object.defineProperty(exports, "closeSessionPayloadSchema", {
46
50
  enumerable: true,
47
- get: function () { return chunkKNGZKGRS_cjs.closeSessionPayloadSchema; }
51
+ get: function () { return chunkRZPN2GDJ_cjs.closeSessionPayloadSchema; }
48
52
  });
49
53
  Object.defineProperty(exports, "connectionAuthenticatedMessageSchema", {
50
54
  enumerable: true,
51
- get: function () { return chunkKNGZKGRS_cjs.connectionAuthenticatedMessageSchema; }
55
+ get: function () { return chunkRZPN2GDJ_cjs.connectionAuthenticatedMessageSchema; }
52
56
  });
53
57
  Object.defineProperty(exports, "connectionRejectedMessageSchema", {
54
58
  enumerable: true,
55
- get: function () { return chunkKNGZKGRS_cjs.connectionRejectedMessageSchema; }
59
+ get: function () { return chunkRZPN2GDJ_cjs.connectionRejectedMessageSchema; }
56
60
  });
57
61
  Object.defineProperty(exports, "connectionRejectedPayloadSchema", {
58
62
  enumerable: true,
59
- get: function () { return chunkKNGZKGRS_cjs.connectionRejectedPayloadSchema; }
63
+ get: function () { return chunkRZPN2GDJ_cjs.connectionRejectedPayloadSchema; }
60
64
  });
61
65
  Object.defineProperty(exports, "coreDAppMetadataSchema", {
62
66
  enumerable: true,
63
- get: function () { return chunkKNGZKGRS_cjs.dAppMetadataSchema; }
67
+ get: function () { return chunkRZPN2GDJ_cjs.dAppMetadataSchema; }
64
68
  });
65
69
  Object.defineProperty(exports, "coreSecurityPolicySchema", {
66
70
  enumerable: true,
67
- get: function () { return chunkKNGZKGRS_cjs.securityPolicySchema; }
71
+ get: function () { return chunkRZPN2GDJ_cjs.securityPolicySchema; }
68
72
  });
69
73
  Object.defineProperty(exports, "createSessionRequestSchema", {
70
74
  enumerable: true,
71
- get: function () { return chunkKNGZKGRS_cjs.createSessionRequestSchema; }
75
+ get: function () { return chunkRZPN2GDJ_cjs.createSessionRequestSchema; }
72
76
  });
73
77
  Object.defineProperty(exports, "createSessionResponseSchema", {
74
78
  enumerable: true,
75
- get: function () { return chunkKNGZKGRS_cjs.createSessionResponseSchema; }
79
+ get: function () { return chunkRZPN2GDJ_cjs.createSessionResponseSchema; }
76
80
  });
77
81
  Object.defineProperty(exports, "dAppMetadataSchema", {
78
82
  enumerable: true,
79
- get: function () { return chunkKNGZKGRS_cjs.dAppMetadataSchema2; }
83
+ get: function () { return chunkRZPN2GDJ_cjs.dAppMetadataSchema2; }
80
84
  });
81
85
  Object.defineProperty(exports, "displayInfoSchema", {
82
86
  enumerable: true,
83
- get: function () { return chunkKNGZKGRS_cjs.displayInfoSchema; }
87
+ get: function () { return chunkRZPN2GDJ_cjs.displayInfoSchema; }
84
88
  });
85
89
  Object.defineProperty(exports, "encryptedPayloadSchema", {
86
90
  enumerable: true,
87
- get: function () { return chunkKNGZKGRS_cjs.encryptedPayloadSchema; }
91
+ get: function () { return chunkRZPN2GDJ_cjs.encryptedPayloadSchema; }
88
92
  });
89
93
  Object.defineProperty(exports, "errorCodeSchema", {
90
94
  enumerable: true,
91
- get: function () { return chunkKNGZKGRS_cjs.errorCodeSchema; }
95
+ get: function () { return chunkRZPN2GDJ_cjs.errorCodeSchema; }
92
96
  });
93
97
  Object.defineProperty(exports, "frutiLinkSchema", {
94
98
  enumerable: true,
95
- get: function () { return chunkKNGZKGRS_cjs.frutiLinkSchema; }
99
+ get: function () { return chunkRZPN2GDJ_cjs.frutiLinkSchema; }
96
100
  });
97
101
  Object.defineProperty(exports, "originProofSchema", {
98
102
  enumerable: true,
99
- get: function () { return chunkKNGZKGRS_cjs.originProofSchema; }
103
+ get: function () { return chunkRZPN2GDJ_cjs.originProofSchema; }
100
104
  });
101
105
  Object.defineProperty(exports, "prefetchMetadataPayloadSchema", {
102
106
  enumerable: true,
103
- get: function () { return chunkKNGZKGRS_cjs.prefetchMetadataPayloadSchema; }
107
+ get: function () { return chunkRZPN2GDJ_cjs.prefetchMetadataPayloadSchema; }
104
108
  });
105
109
  Object.defineProperty(exports, "prefetchMetadataResponseSchema", {
106
110
  enumerable: true,
107
- get: function () { return chunkKNGZKGRS_cjs.prefetchMetadataResponseSchema; }
111
+ get: function () { return chunkRZPN2GDJ_cjs.prefetchMetadataResponseSchema; }
108
112
  });
109
113
  Object.defineProperty(exports, "publicKeySchema", {
110
114
  enumerable: true,
111
- get: function () { return chunkKNGZKGRS_cjs.publicKeySchema; }
115
+ get: function () { return chunkRZPN2GDJ_cjs.publicKeySchema; }
112
116
  });
113
117
  Object.defineProperty(exports, "qrPayloadSchema", {
114
118
  enumerable: true,
115
- get: function () { return chunkKNGZKGRS_cjs.qrPayloadSchema; }
119
+ get: function () { return chunkRZPN2GDJ_cjs.qrPayloadSchema; }
116
120
  });
117
121
  Object.defineProperty(exports, "reconnectedMessageSchema", {
118
122
  enumerable: true,
119
- get: function () { return chunkKNGZKGRS_cjs.reconnectedMessageSchema; }
123
+ get: function () { return chunkRZPN2GDJ_cjs.reconnectedMessageSchema; }
120
124
  });
121
125
  Object.defineProperty(exports, "rejectionDataSchema", {
122
126
  enumerable: true,
123
- get: function () { return chunkKNGZKGRS_cjs.rejectionDataSchema; }
127
+ get: function () { return chunkRZPN2GDJ_cjs.rejectionDataSchema; }
124
128
  });
125
129
  Object.defineProperty(exports, "relayMessageSchema", {
126
130
  enumerable: true,
127
- get: function () { return chunkKNGZKGRS_cjs.relayMessageSchema; }
131
+ get: function () { return chunkRZPN2GDJ_cjs.relayMessageSchema; }
128
132
  });
129
133
  Object.defineProperty(exports, "relayMessageTypeSchema", {
130
134
  enumerable: true,
131
- get: function () { return chunkKNGZKGRS_cjs.relayMessageTypeSchema; }
135
+ get: function () { return chunkRZPN2GDJ_cjs.relayMessageTypeSchema; }
132
136
  });
133
137
  Object.defineProperty(exports, "relayNotificationMessageSchema", {
134
138
  enumerable: true,
135
- get: function () { return chunkKNGZKGRS_cjs.relayNotificationMessageSchema; }
139
+ get: function () { return chunkRZPN2GDJ_cjs.relayNotificationMessageSchema; }
136
140
  });
137
141
  Object.defineProperty(exports, "relayToDAppMessageSchema", {
138
142
  enumerable: true,
139
- get: function () { return chunkKNGZKGRS_cjs.relayToDAppMessageSchema; }
143
+ get: function () { return chunkRZPN2GDJ_cjs.relayToDAppMessageSchema; }
140
144
  });
141
145
  Object.defineProperty(exports, "safeValidateClientMessage", {
142
146
  enumerable: true,
143
- get: function () { return chunkKNGZKGRS_cjs.safeValidateClientMessage; }
147
+ get: function () { return chunkRZPN2GDJ_cjs.safeValidateClientMessage; }
144
148
  });
145
149
  Object.defineProperty(exports, "safeValidateClientSessionClaim", {
146
150
  enumerable: true,
147
- get: function () { return chunkKNGZKGRS_cjs.safeValidateClientSessionClaim; }
151
+ get: function () { return chunkRZPN2GDJ_cjs.safeValidateClientSessionClaim; }
148
152
  });
149
153
  Object.defineProperty(exports, "safeValidateFrutiLink", {
150
154
  enumerable: true,
151
- get: function () { return chunkKNGZKGRS_cjs.safeValidateFrutiLink; }
155
+ get: function () { return chunkRZPN2GDJ_cjs.safeValidateFrutiLink; }
152
156
  });
153
157
  Object.defineProperty(exports, "safeValidateQRPayload", {
154
158
  enumerable: true,
155
- get: function () { return chunkKNGZKGRS_cjs.safeValidateQRPayload; }
159
+ get: function () { return chunkRZPN2GDJ_cjs.safeValidateQRPayload; }
156
160
  });
157
161
  Object.defineProperty(exports, "safeValidateRelayMessage", {
158
162
  enumerable: true,
159
- get: function () { return chunkKNGZKGRS_cjs.safeValidateRelayMessage; }
163
+ get: function () { return chunkRZPN2GDJ_cjs.safeValidateRelayMessage; }
160
164
  });
161
165
  Object.defineProperty(exports, "safeValidateRelayNotificationMessage", {
162
166
  enumerable: true,
163
- get: function () { return chunkKNGZKGRS_cjs.safeValidateRelayNotificationMessage; }
167
+ get: function () { return chunkRZPN2GDJ_cjs.safeValidateRelayNotificationMessage; }
164
168
  });
165
169
  Object.defineProperty(exports, "safeValidateRelayToDAppMessage", {
166
170
  enumerable: true,
167
- get: function () { return chunkKNGZKGRS_cjs.safeValidateRelayToDAppMessage; }
171
+ get: function () { return chunkRZPN2GDJ_cjs.safeValidateRelayToDAppMessage; }
168
172
  });
169
173
  Object.defineProperty(exports, "safeValidateSessionInfo", {
170
174
  enumerable: true,
171
- get: function () { return chunkKNGZKGRS_cjs.safeValidateSessionInfo; }
175
+ get: function () { return chunkRZPN2GDJ_cjs.safeValidateSessionInfo; }
172
176
  });
173
177
  Object.defineProperty(exports, "safeValidateWalletMessage", {
174
178
  enumerable: true,
175
- get: function () { return chunkKNGZKGRS_cjs.safeValidateWalletMessage; }
179
+ get: function () { return chunkRZPN2GDJ_cjs.safeValidateWalletMessage; }
176
180
  });
177
181
  Object.defineProperty(exports, "safeValidateWalletSessionClaim", {
178
182
  enumerable: true,
179
- get: function () { return chunkKNGZKGRS_cjs.safeValidateWalletSessionClaim; }
183
+ get: function () { return chunkRZPN2GDJ_cjs.safeValidateWalletSessionClaim; }
180
184
  });
181
185
  Object.defineProperty(exports, "securityPolicySchema", {
182
186
  enumerable: true,
183
- get: function () { return chunkKNGZKGRS_cjs.securityPolicySchema2; }
187
+ get: function () { return chunkRZPN2GDJ_cjs.securityPolicySchema2; }
184
188
  });
185
189
  Object.defineProperty(exports, "sessionClosedAckSchema", {
186
190
  enumerable: true,
187
- get: function () { return chunkKNGZKGRS_cjs.sessionClosedAckSchema; }
191
+ get: function () { return chunkRZPN2GDJ_cjs.sessionClosedAckSchema; }
188
192
  });
189
193
  Object.defineProperty(exports, "sessionClosedNotificationSchema", {
190
194
  enumerable: true,
191
- get: function () { return chunkKNGZKGRS_cjs.sessionClosedNotificationSchema; }
195
+ get: function () { return chunkRZPN2GDJ_cjs.sessionClosedNotificationSchema; }
192
196
  });
193
197
  Object.defineProperty(exports, "sessionConfigSchema", {
194
198
  enumerable: true,
195
- get: function () { return chunkKNGZKGRS_cjs.sessionConfigSchema; }
199
+ get: function () { return chunkRZPN2GDJ_cjs.sessionConfigSchema; }
196
200
  });
197
201
  Object.defineProperty(exports, "sessionIdSchema", {
198
202
  enumerable: true,
199
- get: function () { return chunkKNGZKGRS_cjs.sessionIdSchema; }
203
+ get: function () { return chunkRZPN2GDJ_cjs.sessionIdSchema; }
200
204
  });
201
205
  Object.defineProperty(exports, "sessionInfoSchema", {
202
206
  enumerable: true,
203
- get: function () { return chunkKNGZKGRS_cjs.sessionInfoSchema; }
207
+ get: function () { return chunkRZPN2GDJ_cjs.sessionInfoSchema; }
204
208
  });
205
209
  Object.defineProperty(exports, "sessionMetadataSchema", {
206
210
  enumerable: true,
207
- get: function () { return chunkKNGZKGRS_cjs.sessionMetadataSchema; }
211
+ get: function () { return chunkRZPN2GDJ_cjs.sessionMetadataSchema; }
208
212
  });
209
213
  Object.defineProperty(exports, "sessionOptionsSchema", {
210
214
  enumerable: true,
211
- get: function () { return chunkKNGZKGRS_cjs.sessionOptionsSchema; }
215
+ get: function () { return chunkRZPN2GDJ_cjs.sessionOptionsSchema; }
212
216
  });
213
217
  Object.defineProperty(exports, "sessionStateSchema", {
214
218
  enumerable: true,
215
- get: function () { return chunkKNGZKGRS_cjs.sessionStateSchema; }
219
+ get: function () { return chunkRZPN2GDJ_cjs.sessionStateSchema; }
216
220
  });
217
221
  Object.defineProperty(exports, "siweFieldsSchema", {
218
222
  enumerable: true,
219
- get: function () { return chunkKNGZKGRS_cjs.siweFieldsSchema; }
223
+ get: function () { return chunkRZPN2GDJ_cjs.siweFieldsSchema; }
220
224
  });
221
225
  Object.defineProperty(exports, "supportedChainIdSchema", {
222
226
  enumerable: true,
223
- get: function () { return chunkKNGZKGRS_cjs.supportedChainIdSchema; }
227
+ get: function () { return chunkRZPN2GDJ_cjs.supportedChainIdSchema; }
224
228
  });
225
229
  Object.defineProperty(exports, "validateClientMessage", {
226
230
  enumerable: true,
227
- get: function () { return chunkKNGZKGRS_cjs.validateClientMessage; }
231
+ get: function () { return chunkRZPN2GDJ_cjs.validateClientMessage; }
228
232
  });
229
233
  Object.defineProperty(exports, "validateClientSessionClaim", {
230
234
  enumerable: true,
231
- get: function () { return chunkKNGZKGRS_cjs.validateClientSessionClaim; }
235
+ get: function () { return chunkRZPN2GDJ_cjs.validateClientSessionClaim; }
232
236
  });
233
237
  Object.defineProperty(exports, "validateFrutiLink", {
234
238
  enumerable: true,
235
- get: function () { return chunkKNGZKGRS_cjs.validateFrutiLink; }
239
+ get: function () { return chunkRZPN2GDJ_cjs.validateFrutiLink; }
236
240
  });
237
241
  Object.defineProperty(exports, "validateQRPayload", {
238
242
  enumerable: true,
239
- get: function () { return chunkKNGZKGRS_cjs.validateQRPayload; }
243
+ get: function () { return chunkRZPN2GDJ_cjs.validateQRPayload; }
240
244
  });
241
245
  Object.defineProperty(exports, "validateRelayMessage", {
242
246
  enumerable: true,
243
- get: function () { return chunkKNGZKGRS_cjs.validateRelayMessage; }
247
+ get: function () { return chunkRZPN2GDJ_cjs.validateRelayMessage; }
244
248
  });
245
249
  Object.defineProperty(exports, "validateRelayNotificationMessage", {
246
250
  enumerable: true,
247
- get: function () { return chunkKNGZKGRS_cjs.validateRelayNotificationMessage; }
251
+ get: function () { return chunkRZPN2GDJ_cjs.validateRelayNotificationMessage; }
248
252
  });
249
253
  Object.defineProperty(exports, "validateRelayToDAppMessage", {
250
254
  enumerable: true,
251
- get: function () { return chunkKNGZKGRS_cjs.validateRelayToDAppMessage; }
255
+ get: function () { return chunkRZPN2GDJ_cjs.validateRelayToDAppMessage; }
252
256
  });
253
257
  Object.defineProperty(exports, "validateSessionInfo", {
254
258
  enumerable: true,
255
- get: function () { return chunkKNGZKGRS_cjs.validateSessionInfo; }
259
+ get: function () { return chunkRZPN2GDJ_cjs.validateSessionInfo; }
256
260
  });
257
261
  Object.defineProperty(exports, "validateTimestamp", {
258
262
  enumerable: true,
259
- get: function () { return chunkKNGZKGRS_cjs.validateTimestamp; }
263
+ get: function () { return chunkRZPN2GDJ_cjs.validateTimestamp; }
260
264
  });
261
265
  Object.defineProperty(exports, "validateWalletMessage", {
262
266
  enumerable: true,
263
- get: function () { return chunkKNGZKGRS_cjs.validateWalletMessage; }
267
+ get: function () { return chunkRZPN2GDJ_cjs.validateWalletMessage; }
264
268
  });
265
269
  Object.defineProperty(exports, "validateWalletSessionClaim", {
266
270
  enumerable: true,
267
- get: function () { return chunkKNGZKGRS_cjs.validateWalletSessionClaim; }
271
+ get: function () { return chunkRZPN2GDJ_cjs.validateWalletSessionClaim; }
268
272
  });
269
273
  Object.defineProperty(exports, "walletHandshakeMessageSchema", {
270
274
  enumerable: true,
271
- get: function () { return chunkKNGZKGRS_cjs.walletHandshakeMessageSchema; }
275
+ get: function () { return chunkRZPN2GDJ_cjs.walletHandshakeMessageSchema; }
272
276
  });
273
277
  Object.defineProperty(exports, "walletMessageEnvelopeSchema", {
274
278
  enumerable: true,
275
- get: function () { return chunkKNGZKGRS_cjs.walletMessageEnvelopeSchema; }
279
+ get: function () { return chunkRZPN2GDJ_cjs.walletMessageEnvelopeSchema; }
276
280
  });
277
281
  Object.defineProperty(exports, "walletMessagePayloadSchema", {
278
282
  enumerable: true,
279
- get: function () { return chunkKNGZKGRS_cjs.walletMessagePayloadSchema; }
283
+ get: function () { return chunkRZPN2GDJ_cjs.walletMessagePayloadSchema; }
280
284
  });
281
285
  Object.defineProperty(exports, "walletMetadataSchema", {
282
286
  enumerable: true,
283
- get: function () { return chunkKNGZKGRS_cjs.walletMetadataSchema; }
287
+ get: function () { return chunkRZPN2GDJ_cjs.walletMetadataSchema; }
284
288
  });
285
289
  Object.defineProperty(exports, "walletReconnectPayloadSchema", {
286
290
  enumerable: true,
287
- get: function () { return chunkKNGZKGRS_cjs.walletReconnectPayloadSchema; }
291
+ get: function () { return chunkRZPN2GDJ_cjs.walletReconnectPayloadSchema; }
288
292
  });
289
293
  Object.defineProperty(exports, "walletSessionClaimSchema", {
290
294
  enumerable: true,
291
- get: function () { return chunkKNGZKGRS_cjs.walletSessionClaimSchema; }
295
+ get: function () { return chunkRZPN2GDJ_cjs.walletSessionClaimSchema; }
292
296
  });
293
297
  //# sourceMappingURL=schemas-export.cjs.map
294
298
  //# sourceMappingURL=schemas-export.cjs.map
@@ -337,10 +337,13 @@ declare const authenticateConnectionPayloadSchema: z.ZodObject<{
337
337
  }>;
338
338
  declare const walletReconnectPayloadSchema: z.ZodObject<{
339
339
  type: z.ZodLiteral<"wallet_reconnect">;
340
+ walletPublicKey: z.ZodString;
340
341
  }, "strip", z.ZodTypeAny, {
341
342
  type: "wallet_reconnect";
343
+ walletPublicKey: string;
342
344
  }, {
343
345
  type: "wallet_reconnect";
346
+ walletPublicKey: string;
344
347
  }>;
345
348
  declare const walletMessagePayloadSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
346
349
  type: z.ZodLiteral<"claim_session">;
@@ -417,10 +420,13 @@ declare const walletMessagePayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
417
420
  };
418
421
  }>, z.ZodObject<{
419
422
  type: z.ZodLiteral<"wallet_reconnect">;
423
+ walletPublicKey: z.ZodString;
420
424
  }, "strip", z.ZodTypeAny, {
421
425
  type: "wallet_reconnect";
426
+ walletPublicKey: string;
422
427
  }, {
423
428
  type: "wallet_reconnect";
429
+ walletPublicKey: string;
424
430
  }>]>;
425
431
  declare const walletMessageEnvelopeSchema: z.ZodObject<{
426
432
  sessionId: z.ZodString;
@@ -509,10 +515,13 @@ declare const walletMessageEnvelopeSchema: z.ZodObject<{
509
515
  };
510
516
  }>, z.ZodObject<{
511
517
  type: z.ZodLiteral<"wallet_reconnect">;
518
+ walletPublicKey: z.ZodString;
512
519
  }, "strip", z.ZodTypeAny, {
513
520
  type: "wallet_reconnect";
521
+ walletPublicKey: string;
514
522
  }, {
515
523
  type: "wallet_reconnect";
524
+ walletPublicKey: string;
516
525
  }>]>;
517
526
  }, "strip", z.ZodTypeAny, {
518
527
  sessionId: string;
@@ -537,6 +546,7 @@ declare const walletMessageEnvelopeSchema: z.ZodObject<{
537
546
  };
538
547
  } | {
539
548
  type: "wallet_reconnect";
549
+ walletPublicKey: string;
540
550
  };
541
551
  walletSessionClaim: {
542
552
  timestamp: number;
@@ -565,6 +575,7 @@ declare const walletMessageEnvelopeSchema: z.ZodObject<{
565
575
  };
566
576
  } | {
567
577
  type: "wallet_reconnect";
578
+ walletPublicKey: string;
568
579
  };
569
580
  walletSessionClaim: {
570
581
  timestamp: number;
@@ -901,6 +912,7 @@ declare const validateWalletMessage: (message: unknown) => {
901
912
  };
902
913
  } | {
903
914
  type: "wallet_reconnect";
915
+ walletPublicKey: string;
904
916
  };
905
917
  walletSessionClaim: {
906
918
  timestamp: number;
@@ -930,6 +942,7 @@ declare const safeValidateWalletMessage: (message: unknown) => z.SafeParseReturn
930
942
  };
931
943
  } | {
932
944
  type: "wallet_reconnect";
945
+ walletPublicKey: string;
933
946
  };
934
947
  walletSessionClaim: {
935
948
  timestamp: number;
@@ -958,6 +971,7 @@ declare const safeValidateWalletMessage: (message: unknown) => z.SafeParseReturn
958
971
  };
959
972
  } | {
960
973
  type: "wallet_reconnect";
974
+ walletPublicKey: string;
961
975
  };
962
976
  walletSessionClaim: {
963
977
  timestamp: number;
@@ -1038,10 +1052,44 @@ declare function validateTimestamp(timestamp: number, maxAge?: number): boolean;
1038
1052
 
1039
1053
  declare const clientReconnectPayloadSchema: z.ZodObject<{
1040
1054
  type: z.ZodLiteral<"client_reconnect">;
1055
+ sessionClaim: z.ZodObject<{
1056
+ claimNonce: z.ZodString;
1057
+ timestamp: z.ZodNumber;
1058
+ }, "strip", z.ZodTypeAny, {
1059
+ timestamp: number;
1060
+ claimNonce: string;
1061
+ }, {
1062
+ timestamp: number;
1063
+ claimNonce: string;
1064
+ }>;
1065
+ clientPublicKey: z.ZodString;
1041
1066
  }, "strip", z.ZodTypeAny, {
1042
1067
  type: "client_reconnect";
1068
+ sessionClaim: {
1069
+ timestamp: number;
1070
+ claimNonce: string;
1071
+ };
1072
+ clientPublicKey: string;
1043
1073
  }, {
1044
1074
  type: "client_reconnect";
1075
+ sessionClaim: {
1076
+ timestamp: number;
1077
+ claimNonce: string;
1078
+ };
1079
+ clientPublicKey: string;
1080
+ }>;
1081
+ declare const clientHandshakeMessageSchema: z.ZodObject<{
1082
+ type: z.ZodLiteral<"client_handshake">;
1083
+ clientPublicKey: z.ZodString;
1084
+ timestamp: z.ZodNumber;
1085
+ }, "strip", z.ZodTypeAny, {
1086
+ type: "client_handshake";
1087
+ timestamp: number;
1088
+ clientPublicKey: string;
1089
+ }, {
1090
+ type: "client_handshake";
1091
+ timestamp: number;
1092
+ clientPublicKey: string;
1045
1093
  }>;
1046
1094
  declare const closeSessionPayloadSchema: z.ZodObject<{
1047
1095
  type: z.ZodLiteral<"close_session">;
@@ -1055,10 +1103,31 @@ declare const closeSessionPayloadSchema: z.ZodObject<{
1055
1103
  }>;
1056
1104
  declare const clientMessagePayloadSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1057
1105
  type: z.ZodLiteral<"client_reconnect">;
1106
+ sessionClaim: z.ZodObject<{
1107
+ claimNonce: z.ZodString;
1108
+ timestamp: z.ZodNumber;
1109
+ }, "strip", z.ZodTypeAny, {
1110
+ timestamp: number;
1111
+ claimNonce: string;
1112
+ }, {
1113
+ timestamp: number;
1114
+ claimNonce: string;
1115
+ }>;
1116
+ clientPublicKey: z.ZodString;
1058
1117
  }, "strip", z.ZodTypeAny, {
1059
1118
  type: "client_reconnect";
1119
+ sessionClaim: {
1120
+ timestamp: number;
1121
+ claimNonce: string;
1122
+ };
1123
+ clientPublicKey: string;
1060
1124
  }, {
1061
1125
  type: "client_reconnect";
1126
+ sessionClaim: {
1127
+ timestamp: number;
1128
+ claimNonce: string;
1129
+ };
1130
+ clientPublicKey: string;
1062
1131
  }>, z.ZodObject<{
1063
1132
  type: z.ZodLiteral<"close_session">;
1064
1133
  reason: z.ZodOptional<z.ZodString>;
@@ -1083,10 +1152,31 @@ declare const clientMessageEnvelopeSchema: z.ZodObject<{
1083
1152
  }>;
1084
1153
  payload: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1085
1154
  type: z.ZodLiteral<"client_reconnect">;
1155
+ sessionClaim: z.ZodObject<{
1156
+ claimNonce: z.ZodString;
1157
+ timestamp: z.ZodNumber;
1158
+ }, "strip", z.ZodTypeAny, {
1159
+ timestamp: number;
1160
+ claimNonce: string;
1161
+ }, {
1162
+ timestamp: number;
1163
+ claimNonce: string;
1164
+ }>;
1165
+ clientPublicKey: z.ZodString;
1086
1166
  }, "strip", z.ZodTypeAny, {
1087
1167
  type: "client_reconnect";
1168
+ sessionClaim: {
1169
+ timestamp: number;
1170
+ claimNonce: string;
1171
+ };
1172
+ clientPublicKey: string;
1088
1173
  }, {
1089
1174
  type: "client_reconnect";
1175
+ sessionClaim: {
1176
+ timestamp: number;
1177
+ claimNonce: string;
1178
+ };
1179
+ clientPublicKey: string;
1090
1180
  }>, z.ZodObject<{
1091
1181
  type: z.ZodLiteral<"close_session">;
1092
1182
  reason: z.ZodOptional<z.ZodString>;
@@ -1101,6 +1191,11 @@ declare const clientMessageEnvelopeSchema: z.ZodObject<{
1101
1191
  sessionId: string;
1102
1192
  payload: {
1103
1193
  type: "client_reconnect";
1194
+ sessionClaim: {
1195
+ timestamp: number;
1196
+ claimNonce: string;
1197
+ };
1198
+ clientPublicKey: string;
1104
1199
  } | {
1105
1200
  type: "close_session";
1106
1201
  reason?: string | undefined;
@@ -1113,6 +1208,11 @@ declare const clientMessageEnvelopeSchema: z.ZodObject<{
1113
1208
  sessionId: string;
1114
1209
  payload: {
1115
1210
  type: "client_reconnect";
1211
+ sessionClaim: {
1212
+ timestamp: number;
1213
+ claimNonce: string;
1214
+ };
1215
+ clientPublicKey: string;
1116
1216
  } | {
1117
1217
  type: "close_session";
1118
1218
  reason?: string | undefined;
@@ -1126,6 +1226,11 @@ declare const validateClientMessage: (message: unknown) => {
1126
1226
  sessionId: string;
1127
1227
  payload: {
1128
1228
  type: "client_reconnect";
1229
+ sessionClaim: {
1230
+ timestamp: number;
1231
+ claimNonce: string;
1232
+ };
1233
+ clientPublicKey: string;
1129
1234
  } | {
1130
1235
  type: "close_session";
1131
1236
  reason?: string | undefined;
@@ -1139,6 +1244,11 @@ declare const safeValidateClientMessage: (message: unknown) => z.SafeParseReturn
1139
1244
  sessionId: string;
1140
1245
  payload: {
1141
1246
  type: "client_reconnect";
1247
+ sessionClaim: {
1248
+ timestamp: number;
1249
+ claimNonce: string;
1250
+ };
1251
+ clientPublicKey: string;
1142
1252
  } | {
1143
1253
  type: "close_session";
1144
1254
  reason?: string | undefined;
@@ -1151,6 +1261,11 @@ declare const safeValidateClientMessage: (message: unknown) => z.SafeParseReturn
1151
1261
  sessionId: string;
1152
1262
  payload: {
1153
1263
  type: "client_reconnect";
1264
+ sessionClaim: {
1265
+ timestamp: number;
1266
+ claimNonce: string;
1267
+ };
1268
+ clientPublicKey: string;
1154
1269
  } | {
1155
1270
  type: "close_session";
1156
1271
  reason?: string | undefined;
@@ -1595,4 +1710,4 @@ type SecurityPolicy = z.infer<typeof securityPolicySchema>;
1595
1710
  type SessionInfo = z.infer<typeof sessionInfoSchema>;
1596
1711
  type DisplayInfo = z.infer<typeof displayInfoSchema>;
1597
1712
 
1598
- export { type DAppMetadata, type DisplayInfo, type EncryptedPayload, type QRPayload, type RelayMessage, type SIWEFields, type SecurityPolicy, type SessionInfo, authenticateConnectionPayloadSchema, authenticationDataSchema, bananaLinkErrorSchema, base64Schema, claimSessionPayloadSchema, clientMessageEnvelopeSchema, clientMessagePayloadSchema, clientReconnectPayloadSchema, clientSessionClaimSchema, closeSessionPayloadSchema, connectionAuthenticatedMessageSchema, connectionRejectedMessageSchema, connectionRejectedPayloadSchema, dAppMetadataSchema$1 as coreDAppMetadataSchema, securityPolicySchema$1 as coreSecurityPolicySchema, createSessionRequestSchema, createSessionResponseSchema, dAppMetadataSchema, displayInfoSchema, encryptedPayloadSchema, errorCodeSchema, frutiLinkSchema, originProofSchema, prefetchMetadataPayloadSchema, prefetchMetadataResponseSchema, publicKeySchema, qrPayloadSchema, reconnectedMessageSchema, rejectionDataSchema, relayMessageSchema, relayMessageTypeSchema, relayNotificationMessageSchema, relayToDAppMessageSchema, safeValidateClientMessage, safeValidateClientSessionClaim, safeValidateFrutiLink, safeValidateQRPayload, safeValidateRelayMessage, safeValidateRelayNotificationMessage, safeValidateRelayToDAppMessage, safeValidateSessionInfo, safeValidateWalletMessage, safeValidateWalletSessionClaim, securityPolicySchema, sessionClosedAckSchema, sessionClosedNotificationSchema, sessionConfigSchema, sessionIdSchema, sessionInfoSchema, sessionMetadataSchema, sessionOptionsSchema, sessionStateSchema, siweFieldsSchema, supportedChainIdSchema, validateClientMessage, validateClientSessionClaim, validateFrutiLink, validateQRPayload, validateRelayMessage, validateRelayNotificationMessage, validateRelayToDAppMessage, validateSessionInfo, validateTimestamp, validateWalletMessage, validateWalletSessionClaim, walletHandshakeMessageSchema, walletMessageEnvelopeSchema, walletMessagePayloadSchema, walletMetadataSchema, walletReconnectPayloadSchema, walletSessionClaimSchema };
1713
+ export { type DAppMetadata, type DisplayInfo, type EncryptedPayload, type QRPayload, type RelayMessage, type SIWEFields, type SecurityPolicy, type SessionInfo, authenticateConnectionPayloadSchema, authenticationDataSchema, bananaLinkErrorSchema, base64Schema, claimSessionPayloadSchema, clientHandshakeMessageSchema, clientMessageEnvelopeSchema, clientMessagePayloadSchema, clientReconnectPayloadSchema, clientSessionClaimSchema, closeSessionPayloadSchema, connectionAuthenticatedMessageSchema, connectionRejectedMessageSchema, connectionRejectedPayloadSchema, dAppMetadataSchema$1 as coreDAppMetadataSchema, securityPolicySchema$1 as coreSecurityPolicySchema, createSessionRequestSchema, createSessionResponseSchema, dAppMetadataSchema, displayInfoSchema, encryptedPayloadSchema, errorCodeSchema, frutiLinkSchema, originProofSchema, prefetchMetadataPayloadSchema, prefetchMetadataResponseSchema, publicKeySchema, qrPayloadSchema, reconnectedMessageSchema, rejectionDataSchema, relayMessageSchema, relayMessageTypeSchema, relayNotificationMessageSchema, relayToDAppMessageSchema, safeValidateClientMessage, safeValidateClientSessionClaim, safeValidateFrutiLink, safeValidateQRPayload, safeValidateRelayMessage, safeValidateRelayNotificationMessage, safeValidateRelayToDAppMessage, safeValidateSessionInfo, safeValidateWalletMessage, safeValidateWalletSessionClaim, securityPolicySchema, sessionClosedAckSchema, sessionClosedNotificationSchema, sessionConfigSchema, sessionIdSchema, sessionInfoSchema, sessionMetadataSchema, sessionOptionsSchema, sessionStateSchema, siweFieldsSchema, supportedChainIdSchema, validateClientMessage, validateClientSessionClaim, validateFrutiLink, validateQRPayload, validateRelayMessage, validateRelayNotificationMessage, validateRelayToDAppMessage, validateSessionInfo, validateTimestamp, validateWalletMessage, validateWalletSessionClaim, walletHandshakeMessageSchema, walletMessageEnvelopeSchema, walletMessagePayloadSchema, walletMetadataSchema, walletReconnectPayloadSchema, walletSessionClaimSchema };