@enbox/dwn-sdk-js 0.1.2 → 0.2.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/browser.mjs +8 -17
- package/dist/browser.mjs.map +4 -4
- package/dist/esm/src/utils/hd-key.js +1 -1
- package/dist/esm/src/utils/hd-key.js.map +1 -1
- package/dist/esm/tests/fuzz/protocol-validation.fuzz.spec.js +16 -2
- package/dist/esm/tests/fuzz/protocol-validation.fuzz.spec.js.map +1 -1
- package/dist/esm/tests/handlers/records-subscribe.spec.js +1 -1
- package/dist/esm/tests/handlers/records-subscribe.spec.js.map +1 -1
- package/dist/esm/tests/utils/secp256k1.spec.js.map +1 -1
- package/dist/esm/tests/utils/secp256r1.spec.js.map +1 -1
- package/dist/types/generated/precompiled-validators.d.ts +0 -70
- package/dist/types/generated/precompiled-validators.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +2 -2
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/types/messages-types.d.ts +0 -4
- package/dist/types/src/types/messages-types.d.ts.map +1 -1
- package/dist/types/src/types/records-types.d.ts +0 -4
- package/dist/types/src/types/records-types.d.ts.map +1 -1
- package/package.json +20 -24
- package/src/index.ts +2 -2
- package/src/types/messages-types.ts +0 -5
- package/src/types/records-types.ts +0 -5
- package/src/utils/hd-key.ts +2 -2
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
export function Authorization(data: any, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors }?: {
|
|
2
2
|
instancePath?: string | undefined;
|
|
3
|
-
parentData: any;
|
|
4
|
-
parentDataProperty: any;
|
|
5
3
|
rootData?: any;
|
|
6
4
|
dynamicAnchors?: {} | undefined;
|
|
7
5
|
}): boolean;
|
|
@@ -14,8 +12,6 @@ export namespace Authorization {
|
|
|
14
12
|
}
|
|
15
13
|
export function AuthorizationDelegatedGrant(data: any, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors }?: {
|
|
16
14
|
instancePath?: string | undefined;
|
|
17
|
-
parentData: any;
|
|
18
|
-
parentDataProperty: any;
|
|
19
15
|
rootData?: any;
|
|
20
16
|
dynamicAnchors?: {} | undefined;
|
|
21
17
|
}): boolean;
|
|
@@ -32,8 +28,6 @@ export namespace AuthorizationDelegatedGrant {
|
|
|
32
28
|
}
|
|
33
29
|
export function AuthorizationOwner(data: any, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors }?: {
|
|
34
30
|
instancePath?: string | undefined;
|
|
35
|
-
parentData: any;
|
|
36
|
-
parentDataProperty: any;
|
|
37
31
|
rootData?: any;
|
|
38
32
|
dynamicAnchors?: {} | undefined;
|
|
39
33
|
}): boolean;
|
|
@@ -50,8 +44,6 @@ export namespace AuthorizationOwner {
|
|
|
50
44
|
}
|
|
51
45
|
export function RecordsCount(data: any, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors }?: {
|
|
52
46
|
instancePath?: string | undefined;
|
|
53
|
-
parentData: any;
|
|
54
|
-
parentDataProperty: any;
|
|
55
47
|
rootData?: any;
|
|
56
48
|
dynamicAnchors?: {} | undefined;
|
|
57
49
|
}): boolean;
|
|
@@ -68,8 +60,6 @@ export namespace RecordsCount {
|
|
|
68
60
|
}
|
|
69
61
|
export function RecordsDelete(data: any, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors }?: {
|
|
70
62
|
instancePath?: string | undefined;
|
|
71
|
-
parentData: any;
|
|
72
|
-
parentDataProperty: any;
|
|
73
63
|
rootData?: any;
|
|
74
64
|
dynamicAnchors?: {} | undefined;
|
|
75
65
|
}): boolean;
|
|
@@ -86,8 +76,6 @@ export namespace RecordsDelete {
|
|
|
86
76
|
}
|
|
87
77
|
export function RecordsQuery(data: any, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors }?: {
|
|
88
78
|
instancePath?: string | undefined;
|
|
89
|
-
parentData: any;
|
|
90
|
-
parentDataProperty: any;
|
|
91
79
|
rootData?: any;
|
|
92
80
|
dynamicAnchors?: {} | undefined;
|
|
93
81
|
}): boolean;
|
|
@@ -104,8 +92,6 @@ export namespace RecordsQuery {
|
|
|
104
92
|
}
|
|
105
93
|
export function RecordsSubscribe(data: any, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors }?: {
|
|
106
94
|
instancePath?: string | undefined;
|
|
107
|
-
parentData: any;
|
|
108
|
-
parentDataProperty: any;
|
|
109
95
|
rootData?: any;
|
|
110
96
|
dynamicAnchors?: {} | undefined;
|
|
111
97
|
}): boolean;
|
|
@@ -122,8 +108,6 @@ export namespace RecordsSubscribe {
|
|
|
122
108
|
}
|
|
123
109
|
export function RecordsWrite(data: any, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors }?: {
|
|
124
110
|
instancePath?: string | undefined;
|
|
125
|
-
parentData: any;
|
|
126
|
-
parentDataProperty: any;
|
|
127
111
|
rootData?: any;
|
|
128
112
|
dynamicAnchors?: {} | undefined;
|
|
129
113
|
}): boolean;
|
|
@@ -140,8 +124,6 @@ export namespace RecordsWrite {
|
|
|
140
124
|
}
|
|
141
125
|
export function RecordsWriteDataEncoded(data: any, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors }?: {
|
|
142
126
|
instancePath?: string | undefined;
|
|
143
|
-
parentData: any;
|
|
144
|
-
parentDataProperty: any;
|
|
145
127
|
rootData?: any;
|
|
146
128
|
dynamicAnchors?: {} | undefined;
|
|
147
129
|
}): boolean;
|
|
@@ -158,8 +140,6 @@ export namespace RecordsWriteDataEncoded {
|
|
|
158
140
|
}
|
|
159
141
|
export function RecordsWriteUnidentified(data: any, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors }?: {
|
|
160
142
|
instancePath?: string | undefined;
|
|
161
|
-
parentData: any;
|
|
162
|
-
parentDataProperty: any;
|
|
163
143
|
rootData?: any;
|
|
164
144
|
dynamicAnchors?: {} | undefined;
|
|
165
145
|
}): boolean;
|
|
@@ -183,8 +163,6 @@ export namespace RecordsWriteUnidentified {
|
|
|
183
163
|
}
|
|
184
164
|
export function Definitions(data: any, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors }?: {
|
|
185
165
|
instancePath?: string | undefined;
|
|
186
|
-
parentData: any;
|
|
187
|
-
parentDataProperty: any;
|
|
188
166
|
rootData?: any;
|
|
189
167
|
dynamicAnchors?: {} | undefined;
|
|
190
168
|
}): boolean;
|
|
@@ -199,8 +177,6 @@ export namespace Definitions {
|
|
|
199
177
|
}
|
|
200
178
|
export function GeneralJwk(data: any, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors }?: {
|
|
201
179
|
instancePath?: string | undefined;
|
|
202
|
-
parentData: any;
|
|
203
|
-
parentDataProperty: any;
|
|
204
180
|
rootData?: any;
|
|
205
181
|
dynamicAnchors?: {} | undefined;
|
|
206
182
|
}): boolean;
|
|
@@ -215,8 +191,6 @@ export namespace GeneralJwk {
|
|
|
215
191
|
}
|
|
216
192
|
export function GeneralJws(data: any, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors }?: {
|
|
217
193
|
instancePath?: string | undefined;
|
|
218
|
-
parentData: any;
|
|
219
|
-
parentDataProperty: any;
|
|
220
194
|
rootData?: any;
|
|
221
195
|
dynamicAnchors?: {} | undefined;
|
|
222
196
|
}): boolean;
|
|
@@ -233,8 +207,6 @@ export namespace GeneralJws {
|
|
|
233
207
|
}
|
|
234
208
|
export function JwkVerificationMethod(data: any, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors }?: {
|
|
235
209
|
instancePath?: string | undefined;
|
|
236
|
-
parentData: any;
|
|
237
|
-
parentDataProperty: any;
|
|
238
210
|
rootData?: any;
|
|
239
211
|
dynamicAnchors?: {} | undefined;
|
|
240
212
|
}): boolean;
|
|
@@ -251,8 +223,6 @@ export namespace JwkVerificationMethod {
|
|
|
251
223
|
}
|
|
252
224
|
export function MessagesFilter(data: any, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors }?: {
|
|
253
225
|
instancePath?: string | undefined;
|
|
254
|
-
parentData: any;
|
|
255
|
-
parentDataProperty: any;
|
|
256
226
|
rootData?: any;
|
|
257
227
|
dynamicAnchors?: {} | undefined;
|
|
258
228
|
}): boolean;
|
|
@@ -269,8 +239,6 @@ export namespace MessagesFilter {
|
|
|
269
239
|
}
|
|
270
240
|
export function MessagesRead(data: any, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors }?: {
|
|
271
241
|
instancePath?: string | undefined;
|
|
272
|
-
parentData: any;
|
|
273
|
-
parentDataProperty: any;
|
|
274
242
|
rootData?: any;
|
|
275
243
|
dynamicAnchors?: {} | undefined;
|
|
276
244
|
}): boolean;
|
|
@@ -287,8 +255,6 @@ export namespace MessagesRead {
|
|
|
287
255
|
}
|
|
288
256
|
export function MessagesSubscribe(data: any, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors }?: {
|
|
289
257
|
instancePath?: string | undefined;
|
|
290
|
-
parentData: any;
|
|
291
|
-
parentDataProperty: any;
|
|
292
258
|
rootData?: any;
|
|
293
259
|
dynamicAnchors?: {} | undefined;
|
|
294
260
|
}): boolean;
|
|
@@ -305,8 +271,6 @@ export namespace MessagesSubscribe {
|
|
|
305
271
|
}
|
|
306
272
|
export function MessagesSync(data: any, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors }?: {
|
|
307
273
|
instancePath?: string | undefined;
|
|
308
|
-
parentData: any;
|
|
309
|
-
parentDataProperty: any;
|
|
310
274
|
rootData?: any;
|
|
311
275
|
dynamicAnchors?: {} | undefined;
|
|
312
276
|
}): boolean;
|
|
@@ -323,8 +287,6 @@ export namespace MessagesSync {
|
|
|
323
287
|
}
|
|
324
288
|
export function NumberRangeFilter(data: any, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors }?: {
|
|
325
289
|
instancePath?: string | undefined;
|
|
326
|
-
parentData: any;
|
|
327
|
-
parentDataProperty: any;
|
|
328
290
|
rootData?: any;
|
|
329
291
|
dynamicAnchors?: {} | undefined;
|
|
330
292
|
}): boolean;
|
|
@@ -341,8 +303,6 @@ export namespace NumberRangeFilter {
|
|
|
341
303
|
}
|
|
342
304
|
export function PaginationCursor(data: any, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors }?: {
|
|
343
305
|
instancePath?: string | undefined;
|
|
344
|
-
parentData: any;
|
|
345
|
-
parentDataProperty: any;
|
|
346
306
|
rootData?: any;
|
|
347
307
|
dynamicAnchors?: {} | undefined;
|
|
348
308
|
}): boolean;
|
|
@@ -359,8 +319,6 @@ export namespace PaginationCursor {
|
|
|
359
319
|
}
|
|
360
320
|
export function PermissionGrantData(data: any, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors }?: {
|
|
361
321
|
instancePath?: string | undefined;
|
|
362
|
-
parentData: any;
|
|
363
|
-
parentDataProperty: any;
|
|
364
322
|
rootData?: any;
|
|
365
323
|
dynamicAnchors?: {} | undefined;
|
|
366
324
|
}): boolean;
|
|
@@ -377,8 +335,6 @@ export namespace PermissionGrantData {
|
|
|
377
335
|
}
|
|
378
336
|
export function PermissionRequestData(data: any, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors }?: {
|
|
379
337
|
instancePath?: string | undefined;
|
|
380
|
-
parentData: any;
|
|
381
|
-
parentDataProperty: any;
|
|
382
338
|
rootData?: any;
|
|
383
339
|
dynamicAnchors?: {} | undefined;
|
|
384
340
|
}): boolean;
|
|
@@ -395,8 +351,6 @@ export namespace PermissionRequestData {
|
|
|
395
351
|
}
|
|
396
352
|
export function PermissionRevocationData(data: any, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors }?: {
|
|
397
353
|
instancePath?: string | undefined;
|
|
398
|
-
parentData: any;
|
|
399
|
-
parentDataProperty: any;
|
|
400
354
|
rootData?: any;
|
|
401
355
|
dynamicAnchors?: {} | undefined;
|
|
402
356
|
}): boolean;
|
|
@@ -413,8 +367,6 @@ export namespace PermissionRevocationData {
|
|
|
413
367
|
}
|
|
414
368
|
export function PermissionsDefinitions(data: any, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors }?: {
|
|
415
369
|
instancePath?: string | undefined;
|
|
416
|
-
parentData: any;
|
|
417
|
-
parentDataProperty: any;
|
|
418
370
|
rootData?: any;
|
|
419
371
|
dynamicAnchors?: {} | undefined;
|
|
420
372
|
}): boolean;
|
|
@@ -429,8 +381,6 @@ export namespace PermissionsDefinitions {
|
|
|
429
381
|
}
|
|
430
382
|
export function PermissionsScopes(data: any, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors }?: {
|
|
431
383
|
instancePath?: string | undefined;
|
|
432
|
-
parentData: any;
|
|
433
|
-
parentDataProperty: any;
|
|
434
384
|
rootData?: any;
|
|
435
385
|
dynamicAnchors?: {} | undefined;
|
|
436
386
|
}): boolean;
|
|
@@ -445,8 +395,6 @@ export namespace PermissionsScopes {
|
|
|
445
395
|
}
|
|
446
396
|
export function ProtocolDefinition(data: any, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors }?: {
|
|
447
397
|
instancePath?: string | undefined;
|
|
448
|
-
parentData: any;
|
|
449
|
-
parentDataProperty: any;
|
|
450
398
|
rootData?: any;
|
|
451
399
|
dynamicAnchors?: {} | undefined;
|
|
452
400
|
}): boolean;
|
|
@@ -463,8 +411,6 @@ export namespace ProtocolDefinition {
|
|
|
463
411
|
}
|
|
464
412
|
export function ProtocolRuleSet(data: any, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors }?: {
|
|
465
413
|
instancePath?: string | undefined;
|
|
466
|
-
parentData: any;
|
|
467
|
-
parentDataProperty: any;
|
|
468
414
|
rootData?: any;
|
|
469
415
|
dynamicAnchors?: {} | undefined;
|
|
470
416
|
}): boolean;
|
|
@@ -481,8 +427,6 @@ export namespace ProtocolRuleSet {
|
|
|
481
427
|
}
|
|
482
428
|
export function ProtocolsConfigure(data: any, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors }?: {
|
|
483
429
|
instancePath?: string | undefined;
|
|
484
|
-
parentData: any;
|
|
485
|
-
parentDataProperty: any;
|
|
486
430
|
rootData?: any;
|
|
487
431
|
dynamicAnchors?: {} | undefined;
|
|
488
432
|
}): boolean;
|
|
@@ -499,8 +443,6 @@ export namespace ProtocolsConfigure {
|
|
|
499
443
|
}
|
|
500
444
|
export function ProtocolsQuery(data: any, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors }?: {
|
|
501
445
|
instancePath?: string | undefined;
|
|
502
|
-
parentData: any;
|
|
503
|
-
parentDataProperty: any;
|
|
504
446
|
rootData?: any;
|
|
505
447
|
dynamicAnchors?: {} | undefined;
|
|
506
448
|
}): boolean;
|
|
@@ -517,8 +459,6 @@ export namespace ProtocolsQuery {
|
|
|
517
459
|
}
|
|
518
460
|
export function RecordsRead(data: any, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors }?: {
|
|
519
461
|
instancePath?: string | undefined;
|
|
520
|
-
parentData: any;
|
|
521
|
-
parentDataProperty: any;
|
|
522
462
|
rootData?: any;
|
|
523
463
|
dynamicAnchors?: {} | undefined;
|
|
524
464
|
}): boolean;
|
|
@@ -535,8 +475,6 @@ export namespace RecordsRead {
|
|
|
535
475
|
}
|
|
536
476
|
export function RecordsFilter(data: any, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors }?: {
|
|
537
477
|
instancePath?: string | undefined;
|
|
538
|
-
parentData: any;
|
|
539
|
-
parentDataProperty: any;
|
|
540
478
|
rootData?: any;
|
|
541
479
|
dynamicAnchors?: {} | undefined;
|
|
542
480
|
}): boolean;
|
|
@@ -553,8 +491,6 @@ export namespace RecordsFilter {
|
|
|
553
491
|
}
|
|
554
492
|
export function PublicJwk(data: any, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors }?: {
|
|
555
493
|
instancePath?: string | undefined;
|
|
556
|
-
parentData: any;
|
|
557
|
-
parentDataProperty: any;
|
|
558
494
|
rootData?: any;
|
|
559
495
|
dynamicAnchors?: {} | undefined;
|
|
560
496
|
}): boolean;
|
|
@@ -569,8 +505,6 @@ export namespace PublicJwk {
|
|
|
569
505
|
}
|
|
570
506
|
export function GenericSignaturePayload(data: any, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors }?: {
|
|
571
507
|
instancePath?: string | undefined;
|
|
572
|
-
parentData: any;
|
|
573
|
-
parentDataProperty: any;
|
|
574
508
|
rootData?: any;
|
|
575
509
|
dynamicAnchors?: {} | undefined;
|
|
576
510
|
}): boolean;
|
|
@@ -587,8 +521,6 @@ export namespace GenericSignaturePayload {
|
|
|
587
521
|
}
|
|
588
522
|
export function RecordsWriteSignaturePayload(data: any, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors }?: {
|
|
589
523
|
instancePath?: string | undefined;
|
|
590
|
-
parentData: any;
|
|
591
|
-
parentDataProperty: any;
|
|
592
524
|
rootData?: any;
|
|
593
525
|
dynamicAnchors?: {} | undefined;
|
|
594
526
|
}): boolean;
|
|
@@ -605,8 +537,6 @@ export namespace RecordsWriteSignaturePayload {
|
|
|
605
537
|
}
|
|
606
538
|
export function StringRangeFilter(data: any, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors }?: {
|
|
607
539
|
instancePath?: string | undefined;
|
|
608
|
-
parentData: any;
|
|
609
|
-
parentDataProperty: any;
|
|
610
540
|
rootData?: any;
|
|
611
541
|
dynamicAnchors?: {} | undefined;
|
|
612
542
|
}): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"precompiled-validators.d.ts","sourceRoot":"","sources":["../../../generated/precompiled-validators.js"],"names":[],"mappings":"AAC66K
|
|
1
|
+
{"version":3,"file":"precompiled-validators.d.ts","sourceRoot":"","sources":["../../../generated/precompiled-validators.js"],"names":[],"mappings":"AAC66K;;;;YAA+tC;;;;;;;;AAMs+Z;;;;YAA2wD;;;;;;;;;;;;AANinhB;;;;YAGt9jC;;;;;;;;;;;;AAGohrE;;;;YAA4oL;;;;;;;;;;;;AAA62B;;;;YAA6pM;;;;;;;;;;;;AAAiiD;;;;YAAkzV;;;;;;;;;;;;AAA4vC;;;;YAAqsW;;;;;;;;;;;;AAA8X;;;;YAAgkD;;;;;;;;;;;;AAAp4+F;;;;YAAkhE;;;;;;;;;;;;AAH17e;;;;YAG8ua;;;;;;;;;;;;;;;;;;;AAAk7gG;;;;YAAinB;;;;;;;;;;AAAwG;;;;YAAk5e;;;;;;;;;;AANv2hI;;;;YAAi1I;;;;;;;;;;;;AAMor6H;;;;YAAsnH;;;;;;;;;;;;AAAwxB;;;;YAAiuL;;;;;;;;;;;;AAAi2B;;;;YAAuqM;;;;;;;;;;;;AAAw5B;;;;YAA48M;;;;;;;;;;;;AAAsqC;;;;YAA+iU;;;;;;;;;;;;AAA4H;;;;YAA8sK;;;;;;;;;;;;AAA2H;;;;YAAqvE;;;;;;;;;;;;AAA05/C;;;;YAAw0K;;;;;;;;;;;;AAAgv3C;;;;YAAyiI;;;;;;;;;;;;AAA6X;;;;YAAgtC;;;;;;;;;;;;AAA4nD;;;;YAA6nB;;;;;;;;;;AAA0jG;;;;YAA+nB;;;;;;;;;;AAAis/B;;;;YAAm2P;;;;;;;;;;;;AAAj4kC;;;;YAA880B;;;;;;;;;;;;AAAg6R;;;;YAAksM;;;;;;;;;;;;AAA2/B;;;;YAAovQ;;;;;;;;;;;;AAAgjC;;;;YAA8/N;;;;;;;;;;;;AAA7uhU;;;;YAAo2/C;;;;;;;;;;;;AANho2D;;;;YAAwivB;;;;;;;;;;AAM+qqT;;;;YAAwwF;;;;;;;;;;;;AAAmsB;;;;YAA6mJ;;;;;;;;;;;;AAA4H;;;;YAAkiK"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export type { DwnConfig } from './dwn.js';
|
|
2
2
|
export type { EventListener, EventLog, EventLogEntry, EventLogReadOptions, EventLogReadResult, EventLogSubscribeOptions, EventSubscription, MessageEvent, SubscriptionEose, SubscriptionEvent, SubscriptionListener, SubscriptionMessage, SubscriptionReply } from './types/subscriptions.js';
|
|
3
3
|
export type { AuthorizationModel, Descriptor, DelegatedGrantRecordsWriteMessage, GenericMessage, GenericMessageReply, GenericSignaturePayload, MessageSort, MessageSubscription, Pagination, QueryResultEntry, Status } from './types/message-types.js';
|
|
4
|
-
export type { MessagesFilter, MessagesReadMessage as MessagesReadMessage, MessagesReadReply as MessagesReadReply, MessagesReadReplyEntry as MessagesReadReplyEntry, MessagesReadDescriptor, MessagesSubscribeDescriptor, MessagesSubscribeMessage, MessagesSubscribeReply,
|
|
4
|
+
export type { MessagesFilter, MessagesReadMessage as MessagesReadMessage, MessagesReadReply as MessagesReadReply, MessagesReadReplyEntry as MessagesReadReplyEntry, MessagesReadDescriptor, MessagesSubscribeDescriptor, MessagesSubscribeMessage, MessagesSubscribeReply, MessagesSubscribeMessageOptions, MessagesSyncAction, MessagesSyncDescriptor, MessagesSyncMessage, MessagesSyncReply } from './types/messages-types.js';
|
|
5
5
|
export type { GT, LT, Filter, FilterValue, KeyValues, EqualFilter, OneOfFilter, RangeFilter, RangeCriterion, PaginationCursor, QueryOptions, RangeValue, StartsWithFilter } from './types/query-types.js';
|
|
6
6
|
export type { ProtocolsConfigureDescriptor, ProtocolDefinition, ProtocolTypes, ProtocolRuleSet, ProtocolsQueryFilter, ProtocolsConfigureMessage, ProtocolsQueryMessage, ProtocolsQueryReply, ProtocolActionRule, ProtocolDeliveryStrategy, ProtocolPathEncryption, ProtocolsQueryDescriptor, ProtocolRecordLimitDefinition, ProtocolSizeDefinition, ProtocolTagsDefinition, ProtocolTagSchema, ProtocolType, ProtocolUses } from './types/protocols-types.js';
|
|
7
7
|
export { ProtocolRecordLimitStrategy } from './types/protocols-types.js';
|
|
8
|
-
export type { DataEncodedRecordsWriteMessage, RecordsCountDescriptor, RecordsCountMessage, RecordsCountReply, RecordsDeleteMessage, RecordsFilter, RecordsQueryMessage, RecordsQueryReply, RecordsQueryReplyEntry, RecordsReadMessage, RecordsReadReply, RecordsSubscribeDescriptor, RecordsSubscribeMessage, RecordsSubscribeReply,
|
|
8
|
+
export type { DataEncodedRecordsWriteMessage, RecordsCountDescriptor, RecordsCountMessage, RecordsCountReply, RecordsDeleteMessage, RecordsFilter, RecordsQueryMessage, RecordsQueryReply, RecordsQueryReplyEntry, RecordsReadMessage, RecordsReadReply, RecordsSubscribeDescriptor, RecordsSubscribeMessage, RecordsSubscribeReply, RecordsWriteDescriptor, RecordsWriteTags, RecordsWriteTagValue, RecordsWriteMessage, RecordsWriteSignaturePayload, RecordsDeleteDescriptor, RecordsQueryDescriptor, RecordsReadDescriptor, RecordsSubscribeMessageOptions, RecordsWriteMessageOptions, InternalRecordsWriteMessage, RecordEvent, RecordsWriteTagsFilter } from './types/records-types.js';
|
|
9
9
|
export type { GeneralJws, SignatureEntry } from './types/jws-types.js';
|
|
10
10
|
export { authenticate } from './core/auth.js';
|
|
11
11
|
export { CoreProtocolRegistry } from './core/core-protocol.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AACA,YAAY,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAC1C,YAAY,EAAE,aAAa,EAAE,QAAQ,EAAE,aAAa,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,wBAAwB,EAAE,iBAAiB,EAAE,YAAY,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC9R,YAAY,EAAE,kBAAkB,EAAE,UAAU,EAAE,iCAAiC,EAAE,cAAc,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,WAAW,EAAE,mBAAmB,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AACxP,YAAY,EAAE,cAAc,EAAE,mBAAmB,IAAI,mBAAmB,EAAE,iBAAiB,IAAI,iBAAiB,EAAE,sBAAsB,IAAI,sBAAsB,EAAE,sBAAsB,EAAE,2BAA2B,EAAE,wBAAwB,EAAE,sBAAsB,EAAE
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"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AA8B,EAAE,yBAAyB,EAAE,0BAA0B,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AACzsB,OAAO,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAC1E,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC"}
|
|
@@ -49,10 +49,6 @@ export type MessagesSyncReply = GenericMessageReply & {
|
|
|
49
49
|
hash?: string;
|
|
50
50
|
entries?: string[];
|
|
51
51
|
};
|
|
52
|
-
/**
|
|
53
|
-
* @deprecated Use {@link SubscriptionListener} directly. Retained as an alias for migration.
|
|
54
|
-
*/
|
|
55
|
-
export type MessageSubscriptionHandler = SubscriptionListener;
|
|
56
52
|
export type MessagesSubscribeMessageOptions = {
|
|
57
53
|
subscriptionHandler: SubscriptionListener;
|
|
58
54
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages-types.d.ts","sourceRoot":"","sources":["../../../../src/types/messages-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,KAAK,EAAE,kBAAkB,EAAE,cAAc,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACvH,OAAO,KAAK,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAExF;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,gBAAgB,CAAC,EAAE,cAAc,CAAC;CACnC,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,SAAS,EAAG,gBAAgB,CAAC,QAAQ,CAAC;IACtC,MAAM,EAAE,aAAa,CAAC,IAAI,CAAC;IAC3B,U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Message;
|
|
170
170
|
initialWrite?: RecordsWriteMessage;
|
|
171
171
|
};
|
|
172
|
-
/**
|
|
173
|
-
* @deprecated Use {@link SubscriptionListener} directly. Retained as an alias for migration.
|
|
174
|
-
*/
|
|
175
|
-
export type RecordSubscriptionHandler = SubscriptionListener;
|
|
176
172
|
export type RecordsSubscribeMessageOptions = {
|
|
177
173
|
subscriptionHandler: SubscriptionListener;
|
|
178
174
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"records-types.d.ts","sourceRoot":"","sources":["../../../../src/types/records-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,KAAK,EAAE,kBAAkB,EAAE,cAAc,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAC5J,OAAO,KAAK,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AACxF,OAAO,KAAK,EAAE,gBAAgB,EAAE,cAAc,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAExG,oBAAY,QAAQ;IAClB,gBAAgB,qBAAqB;IACrC,iBAAiB,sBAAsB;IACvC,kBAAkB,uBAAuB;IACzC,mBAAmB,wBAAwB;IAC3C,gBAAgB,qBAAqB;IACrC,iBAAiB,sBAAsB;CACxC;AAED,MAAM,MAAM,oBAAoB,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC;AACnF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,CAAC,QAAQ,EAAE,MAAM,GAAG,oBAAoB,CAAC;CAC1C,CAAC;AAEF,MAAM,MAAM,sBA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AC,OAAO,CAAC;IACpC,MAAM,EAAE,aAAa,CAAC,IAAI,CAAC;IAC3B,MAAM,EAAE,aAAa,CAAC;IACtB,gBAAgB,EAAE,MAAM,CAAC;IACzB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG,cAAc,GAAG;IAClD,aAAa,EAAE,kBAAkB,CAAC;IAClC,UAAU,EAAE,uBAAuB,CAAC;CACrC,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IACpC,SAAS,EAAE,gBAAgB,CAAC,OAAO,CAAC;IACpC,MAAM,EAAE,aAAa,CAAC,MAAM,CAAC;IAC7B,gBAAgB,EAAE,MAAM,CAAC;IACzB,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,KAAK,EAAE,OAAO,CAAA;CACf,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@enbox/dwn-sdk-js",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "A reference implementation of https://identity.foundation/decentralized-web-node/spec/",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -64,66 +64,62 @@
|
|
|
64
64
|
},
|
|
65
65
|
"react-native": "./dist/esm/src/index.js",
|
|
66
66
|
"dependencies": {
|
|
67
|
-
"@enbox/crypto": "0.0
|
|
68
|
-
"@enbox/dids": "0.0
|
|
69
|
-
"@ipld/dag-cbor": "9.0.
|
|
67
|
+
"@enbox/crypto": "0.1.0",
|
|
68
|
+
"@enbox/dids": "0.1.0",
|
|
69
|
+
"@ipld/dag-cbor": "9.0.5",
|
|
70
70
|
"@js-temporal/polyfill": "0.4.4",
|
|
71
71
|
"@noble/ciphers": "0.5.3",
|
|
72
|
-
"@noble/curves": "1.
|
|
72
|
+
"@noble/curves": "1.3.0",
|
|
73
73
|
"@noble/ed25519": "2.0.0",
|
|
74
74
|
"@noble/secp256k1": "2.0.0",
|
|
75
|
-
"abstract-level": "1.0.
|
|
75
|
+
"abstract-level": "1.0.4",
|
|
76
76
|
"ajv": "8.18.0",
|
|
77
77
|
"interface-blockstore": "5.2.3",
|
|
78
78
|
"interface-store": "5.1.2",
|
|
79
79
|
"ipfs-unixfs-exporter": "13.1.5",
|
|
80
80
|
"ipfs-unixfs-importer": "15.1.5",
|
|
81
|
-
"level": "8.0.
|
|
81
|
+
"level": "8.0.1",
|
|
82
82
|
"lodash": "4.17.21",
|
|
83
83
|
"lru-cache": "9.1.2",
|
|
84
|
-
"mitt": "
|
|
84
|
+
"mitt": "3.0.1",
|
|
85
85
|
"multiformats": "11.0.2",
|
|
86
86
|
"uint8arrays": "5.1.0",
|
|
87
87
|
"ulidx": "2.1.0"
|
|
88
88
|
},
|
|
89
89
|
"devDependencies": {
|
|
90
90
|
"@stylistic/eslint-plugin": "2.13.0",
|
|
91
|
-
"@types/flat": "^5.0.2",
|
|
92
91
|
"@types/lodash": "4.14.179",
|
|
93
|
-
"@types/
|
|
94
|
-
"@types/
|
|
95
|
-
"@types/
|
|
96
|
-
"@types/sinon": "^17.0.3",
|
|
97
|
-
"@types/uuid": "^9.0.1",
|
|
92
|
+
"@types/node": "22.19.15",
|
|
93
|
+
"@types/sinon": "17.0.3",
|
|
94
|
+
"@types/uuid": "9.0.1",
|
|
98
95
|
"@typescript-eslint/eslint-plugin": "8.32.1",
|
|
99
96
|
"@typescript-eslint/parser": "8.32.1",
|
|
100
97
|
"@vitest/browser-playwright": "4.0.18",
|
|
101
98
|
"@vitest/coverage-istanbul": "4.0.18",
|
|
102
99
|
"blockstore-core": "4.2.0",
|
|
103
|
-
"bun-types": "
|
|
104
|
-
"dependency-cruiser": "
|
|
100
|
+
"bun-types": "1.3.10",
|
|
101
|
+
"dependency-cruiser": "16.3.7",
|
|
105
102
|
"eslint": "9.7.0",
|
|
106
103
|
"eslint-plugin-todo-plz": "1.3.0",
|
|
107
|
-
"fast-check": "
|
|
104
|
+
"fast-check": "4.5.3",
|
|
108
105
|
"license-report": "6.3.0",
|
|
109
106
|
"mkdirp": "1.0.4",
|
|
110
107
|
"mockdate": "3.0.5",
|
|
111
108
|
"ms": "2.1.3",
|
|
112
|
-
"rimraf": "^3.0.2",
|
|
113
109
|
"search-index": "3.4.0",
|
|
114
|
-
"sinon": "18.0.
|
|
115
|
-
"typescript": "5.
|
|
116
|
-
"uuid": "
|
|
110
|
+
"sinon": "18.0.0",
|
|
111
|
+
"typescript": "5.9.3",
|
|
112
|
+
"uuid": "9.0.0",
|
|
117
113
|
"vitest": "4.0.18"
|
|
118
114
|
},
|
|
119
115
|
"overrides": {
|
|
120
|
-
"cookie": "
|
|
116
|
+
"cookie": "0.7.1"
|
|
121
117
|
},
|
|
122
118
|
"scripts": {
|
|
123
119
|
"build:esm": "tsc",
|
|
124
120
|
"build": "bun run clean && bun run compile-validators && bun run build:esm && bun run bundle",
|
|
125
|
-
"bundle": "
|
|
126
|
-
"clean": "
|
|
121
|
+
"bundle": "rm -rf dist/browser.mjs && bun ../../build/browser-bundle.js --node-shims --metafile",
|
|
122
|
+
"clean": "rm -rf dist && rm -rf generated/*",
|
|
127
123
|
"compile-validators": "bun ./build/compile-validators.js",
|
|
128
124
|
"lint": "eslint . --max-warnings 0",
|
|
129
125
|
"lint:fix": "eslint . --fix",
|
package/src/index.ts
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
export type { DwnConfig } from './dwn.js';
|
|
3
3
|
export type { EventListener, EventLog, EventLogEntry, EventLogReadOptions, EventLogReadResult, EventLogSubscribeOptions, EventSubscription, MessageEvent, SubscriptionEose, SubscriptionEvent, SubscriptionListener, SubscriptionMessage, SubscriptionReply } from './types/subscriptions.js';
|
|
4
4
|
export type { AuthorizationModel, Descriptor, DelegatedGrantRecordsWriteMessage, GenericMessage, GenericMessageReply, GenericSignaturePayload, MessageSort, MessageSubscription, Pagination, QueryResultEntry, Status } from './types/message-types.js';
|
|
5
|
-
export type { MessagesFilter, MessagesReadMessage as MessagesReadMessage, MessagesReadReply as MessagesReadReply, MessagesReadReplyEntry as MessagesReadReplyEntry, MessagesReadDescriptor, MessagesSubscribeDescriptor, MessagesSubscribeMessage, MessagesSubscribeReply,
|
|
5
|
+
export type { MessagesFilter, MessagesReadMessage as MessagesReadMessage, MessagesReadReply as MessagesReadReply, MessagesReadReplyEntry as MessagesReadReplyEntry, MessagesReadDescriptor, MessagesSubscribeDescriptor, MessagesSubscribeMessage, MessagesSubscribeReply, MessagesSubscribeMessageOptions, MessagesSyncAction, MessagesSyncDescriptor, MessagesSyncMessage, MessagesSyncReply } from './types/messages-types.js';
|
|
6
6
|
export type { GT, LT, Filter, FilterValue, KeyValues, EqualFilter, OneOfFilter, RangeFilter, RangeCriterion, PaginationCursor, QueryOptions, RangeValue, StartsWithFilter } from './types/query-types.js';
|
|
7
7
|
export type { ProtocolsConfigureDescriptor, ProtocolDefinition, ProtocolTypes, ProtocolRuleSet, ProtocolsQueryFilter, ProtocolsConfigureMessage, ProtocolsQueryMessage, ProtocolsQueryReply, ProtocolActionRule, ProtocolDeliveryStrategy, ProtocolPathEncryption, ProtocolsQueryDescriptor, ProtocolRecordLimitDefinition, ProtocolSizeDefinition, ProtocolTagsDefinition, ProtocolTagSchema, ProtocolType, ProtocolUses } from './types/protocols-types.js';
|
|
8
8
|
export { ProtocolRecordLimitStrategy } from './types/protocols-types.js';
|
|
9
|
-
export type { DataEncodedRecordsWriteMessage, RecordsCountDescriptor, RecordsCountMessage, RecordsCountReply, RecordsDeleteMessage, RecordsFilter, RecordsQueryMessage, RecordsQueryReply, RecordsQueryReplyEntry, RecordsReadMessage, RecordsReadReply, RecordsSubscribeDescriptor, RecordsSubscribeMessage, RecordsSubscribeReply,
|
|
9
|
+
export type { DataEncodedRecordsWriteMessage, RecordsCountDescriptor, RecordsCountMessage, RecordsCountReply, RecordsDeleteMessage, RecordsFilter, RecordsQueryMessage, RecordsQueryReply, RecordsQueryReplyEntry, RecordsReadMessage, RecordsReadReply, RecordsSubscribeDescriptor, RecordsSubscribeMessage, RecordsSubscribeReply, RecordsWriteDescriptor, RecordsWriteTags, RecordsWriteTagValue, RecordsWriteMessage, RecordsWriteSignaturePayload, RecordsDeleteDescriptor, RecordsQueryDescriptor, RecordsReadDescriptor, RecordsSubscribeMessageOptions, RecordsWriteMessageOptions, InternalRecordsWriteMessage, RecordEvent, RecordsWriteTagsFilter } from './types/records-types.js';
|
|
10
10
|
export type { GeneralJws, SignatureEntry } from './types/jws-types.js';
|
|
11
11
|
export { authenticate } from './core/auth.js';
|
|
12
12
|
export { CoreProtocolRegistry } from './core/core-protocol.js';
|
|
@@ -59,11 +59,6 @@ export type MessagesSyncReply = GenericMessageReply & {
|
|
|
59
59
|
entries? : string[]; // messageCid[] (for 'leaves' action)
|
|
60
60
|
};
|
|
61
61
|
|
|
62
|
-
/**
|
|
63
|
-
* @deprecated Use {@link SubscriptionListener} directly. Retained as an alias for migration.
|
|
64
|
-
*/
|
|
65
|
-
export type MessageSubscriptionHandler = SubscriptionListener;
|
|
66
|
-
|
|
67
62
|
export type MessagesSubscribeMessageOptions = {
|
|
68
63
|
subscriptionHandler: SubscriptionListener;
|
|
69
64
|
};
|
|
@@ -191,11 +191,6 @@ export type RecordEvent = {
|
|
|
191
191
|
initialWrite?: RecordsWriteMessage;
|
|
192
192
|
};
|
|
193
193
|
|
|
194
|
-
/**
|
|
195
|
-
* @deprecated Use {@link SubscriptionListener} directly. Retained as an alias for migration.
|
|
196
|
-
*/
|
|
197
|
-
export type RecordSubscriptionHandler = SubscriptionListener;
|
|
198
|
-
|
|
199
194
|
export type RecordsSubscribeMessageOptions = {
|
|
200
195
|
subscriptionHandler: SubscriptionListener;
|
|
201
196
|
};
|
package/src/utils/hd-key.ts
CHANGED
|
@@ -85,7 +85,7 @@ export class HdKey {
|
|
|
85
85
|
const webCrypto = getWebcryptoSubtle() as SubtleCrypto;
|
|
86
86
|
|
|
87
87
|
// Import the `initialKeyMaterial` into the Web Crypto API to use for the key derivation operation.
|
|
88
|
-
const webCryptoKey = await webCrypto.importKey('raw', initialKeyMaterial, { name: 'HKDF' }, false, ['deriveBits']);
|
|
88
|
+
const webCryptoKey = await webCrypto.importKey('raw', initialKeyMaterial as BufferSource, { name: 'HKDF' }, false, ['deriveBits']);
|
|
89
89
|
|
|
90
90
|
// Derive the bytes using the Web Crypto API.
|
|
91
91
|
const derivedKeyBuffer = await crypto.subtle.deriveBits(
|
|
@@ -93,7 +93,7 @@ export class HdKey {
|
|
|
93
93
|
name : 'HKDF',
|
|
94
94
|
hash : hashAlgorithm,
|
|
95
95
|
salt : new Uint8Array(0), // `info` should be sufficient in our use case
|
|
96
|
-
info
|
|
96
|
+
info : info as BufferSource
|
|
97
97
|
},
|
|
98
98
|
webCryptoKey,
|
|
99
99
|
keyLengthInBytes * 8 // convert from bytes to bits
|