@enbox/dwn-sdk-js 0.3.1 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser.mjs +6 -6
- package/dist/browser.mjs.map +3 -3
- package/dist/esm/generated/precompiled-validators.js +62 -2
- package/dist/esm/generated/precompiled-validators.js.map +1 -1
- package/dist/esm/src/event-stream/event-emitter-event-log.js +13 -14
- package/dist/esm/src/event-stream/event-emitter-event-log.js.map +1 -1
- package/dist/esm/src/protocols/permission-grant.js +5 -0
- package/dist/esm/src/protocols/permission-grant.js.map +1 -1
- package/dist/esm/src/types/permission-types.js.map +1 -1
- package/dist/esm/tests/event-emitter-event-log.spec.js +61 -0
- package/dist/esm/tests/event-emitter-event-log.spec.js.map +1 -1
- package/dist/types/generated/precompiled-validators.d.ts.map +1 -1
- package/dist/types/src/event-stream/event-emitter-event-log.d.ts.map +1 -1
- package/dist/types/src/protocols/permission-grant.d.ts +7 -0
- package/dist/types/src/protocols/permission-grant.d.ts.map +1 -1
- package/dist/types/src/types/permission-types.d.ts +9 -0
- package/dist/types/src/types/permission-types.d.ts.map +1 -1
- package/dist/types/src/types/subscriptions.d.ts +7 -0
- package/dist/types/src/types/subscriptions.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/event-stream/event-emitter-event-log.ts +17 -18
- package/src/protocols/permission-grant.ts +6 -0
- package/src/types/permission-types.ts +11 -1
- package/src/types/subscriptions.ts +8 -0
|
@@ -52,7 +52,17 @@ export type PermissionGrantData = {
|
|
|
52
52
|
*/
|
|
53
53
|
scope: PermissionScope;
|
|
54
54
|
|
|
55
|
-
conditions?: PermissionConditions
|
|
55
|
+
conditions?: PermissionConditions;
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Optional delegate key-delivery metadata for cross-device context key delivery.
|
|
59
|
+
* Contains the pre-derived ProtocolPath leaf public key that the owner uses
|
|
60
|
+
* to encrypt contextKey records addressed to the delegate.
|
|
61
|
+
*/
|
|
62
|
+
delegateKeyDelivery?: {
|
|
63
|
+
rootKeyId: string;
|
|
64
|
+
publicKeyJwk: Record<string, any>;
|
|
65
|
+
};
|
|
56
66
|
};
|
|
57
67
|
|
|
58
68
|
/**
|
|
@@ -160,6 +160,14 @@ export type EventLogEntry = {
|
|
|
160
160
|
|
|
161
161
|
/** Indexes associated with the event (used for filter matching). */
|
|
162
162
|
indexes: KeyValues;
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* The CID of the message that produced this event. Populated by
|
|
166
|
+
* implementations that track it (e.g. {@link EventEmitterEventLog}).
|
|
167
|
+
* Consumers should fall back to computing the CID from the message
|
|
168
|
+
* if this is absent.
|
|
169
|
+
*/
|
|
170
|
+
messageCid?: string;
|
|
163
171
|
};
|
|
164
172
|
|
|
165
173
|
/**
|