@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.
@@ -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
  /**