@keyhive/keyhive 0.0.0-alpha.54b → 0.0.0-alpha.54c

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keyhive/keyhive",
3
- "version": "0.0.0-alpha.54b",
3
+ "version": "0.0.0-alpha.54c",
4
4
  "description": "",
5
5
  "main": "pkg/keyhive_wasm.js",
6
6
  "keywords": [],
@@ -265,6 +265,10 @@ export class Keyhive {
265
265
  getIndividual(id: IndividualId): Promise<Individual | undefined>;
266
266
  ingestArchive(archive: Archive): Promise<void>;
267
267
  reachableDocs(): Promise<Summary[]>;
268
+ /**
269
+ * Returns events for an agent as serialized bytes.
270
+ * Returns a Map<Uint8Array, Uint8Array> where keys are event hashes and values are serialized event bytes.
271
+ */
268
272
  eventsForAgent(agent: Agent): Promise<Map<any, any>>;
269
273
  forcePcsUpdate(doc: Document): Promise<void>;
270
274
  ingestEventsBytes(events_bytes_array: Array<any>): Promise<Array<any>>;
@@ -1866,6 +1866,8 @@ export class Keyhive {
1866
1866
  return ret;
1867
1867
  }
1868
1868
  /**
1869
+ * Returns events for an agent as serialized bytes.
1870
+ * Returns a Map<Uint8Array, Uint8Array> where keys are event hashes and values are serialized event bytes.
1869
1871
  * @param {Agent} agent
1870
1872
  * @returns {Promise<Map<any, any>>}
1871
1873
  */
Binary file
@@ -136,6 +136,7 @@ export const doccontentrefs_new: (a: number, b: number, c: number) => [number, n
136
136
  export const history_contentRefs: (a: number) => [number, number];
137
137
  export const history_delegations: (a: number) => [number, number];
138
138
  export const history_revocations: (a: number) => [number, number];
139
+ export const __wbg_signedinvocation_free: (a: number, b: number) => void;
139
140
  export const __wbg_access_free: (a: number, b: number) => void;
140
141
  export const __wbg_archive_free: (a: number, b: number) => void;
141
142
  export const __wbg_cannotparseed25519signingkey_free: (a: number, b: number) => void;
@@ -216,7 +217,6 @@ export const contactcard_individualId: (a: number) => number;
216
217
  export const group_id: (a: number) => number;
217
218
  export const individual_id: (a: number) => number;
218
219
  export const individual_individualId: (a: number) => number;
219
- export const __wbg_signedinvocation_free: (a: number, b: number) => void;
220
220
  export const wasm_bindgen__convert__closures_____invoke__hb8b6941fceac7069: (a: number, b: number, c: any) => void;
221
221
  export const wasm_bindgen__closure__destroy__h56c1987c5374a416: (a: number, b: number) => void;
222
222
  export const wasm_bindgen__convert__closures_____invoke__h0e2a667a85375385: (a: number, b: number, c: any, d: any) => void;
@@ -265,6 +265,10 @@ export class Keyhive {
265
265
  getIndividual(id: IndividualId): Promise<Individual | undefined>;
266
266
  ingestArchive(archive: Archive): Promise<void>;
267
267
  reachableDocs(): Promise<Summary[]>;
268
+ /**
269
+ * Returns events for an agent as serialized bytes.
270
+ * Returns a Map<Uint8Array, Uint8Array> where keys are event hashes and values are serialized event bytes.
271
+ */
268
272
  eventsForAgent(agent: Agent): Promise<Map<any, any>>;
269
273
  forcePcsUpdate(doc: Document): Promise<void>;
270
274
  ingestEventsBytes(events_bytes_array: Array<any>): Promise<Array<any>>;
@@ -1882,6 +1882,8 @@ class Keyhive {
1882
1882
  return ret;
1883
1883
  }
1884
1884
  /**
1885
+ * Returns events for an agent as serialized bytes.
1886
+ * Returns a Map<Uint8Array, Uint8Array> where keys are event hashes and values are serialized event bytes.
1885
1887
  * @param {Agent} agent
1886
1888
  * @returns {Promise<Map<any, any>>}
1887
1889
  */
Binary file
@@ -136,6 +136,7 @@ export const doccontentrefs_new: (a: number, b: number, c: number) => [number, n
136
136
  export const history_contentRefs: (a: number) => [number, number];
137
137
  export const history_delegations: (a: number) => [number, number];
138
138
  export const history_revocations: (a: number) => [number, number];
139
+ export const __wbg_signedinvocation_free: (a: number, b: number) => void;
139
140
  export const __wbg_access_free: (a: number, b: number) => void;
140
141
  export const __wbg_archive_free: (a: number, b: number) => void;
141
142
  export const __wbg_cannotparseed25519signingkey_free: (a: number, b: number) => void;
@@ -216,7 +217,6 @@ export const contactcard_individualId: (a: number) => number;
216
217
  export const group_id: (a: number) => number;
217
218
  export const individual_id: (a: number) => number;
218
219
  export const individual_individualId: (a: number) => number;
219
- export const __wbg_signedinvocation_free: (a: number, b: number) => void;
220
220
  export const wasm_bindgen__convert__closures_____invoke__hb8b6941fceac7069: (a: number, b: number, c: any) => void;
221
221
  export const wasm_bindgen__closure__destroy__h56c1987c5374a416: (a: number, b: number) => void;
222
222
  export const wasm_bindgen__convert__closures_____invoke__h0e2a667a85375385: (a: number, b: number, c: any, d: any) => void;
@@ -265,6 +265,10 @@ export class Keyhive {
265
265
  getIndividual(id: IndividualId): Promise<Individual | undefined>;
266
266
  ingestArchive(archive: Archive): Promise<void>;
267
267
  reachableDocs(): Promise<Summary[]>;
268
+ /**
269
+ * Returns events for an agent as serialized bytes.
270
+ * Returns a Map<Uint8Array, Uint8Array> where keys are event hashes and values are serialized event bytes.
271
+ */
268
272
  eventsForAgent(agent: Agent): Promise<Map<any, any>>;
269
273
  forcePcsUpdate(doc: Document): Promise<void>;
270
274
  ingestEventsBytes(events_bytes_array: Array<any>): Promise<Array<any>>;
@@ -575,6 +579,7 @@ export interface InitOutput {
575
579
  readonly history_contentRefs: (a: number) => [number, number];
576
580
  readonly history_delegations: (a: number) => [number, number];
577
581
  readonly history_revocations: (a: number) => [number, number];
582
+ readonly __wbg_signedinvocation_free: (a: number, b: number) => void;
578
583
  readonly __wbg_access_free: (a: number, b: number) => void;
579
584
  readonly __wbg_archive_free: (a: number, b: number) => void;
580
585
  readonly __wbg_cannotparseed25519signingkey_free: (a: number, b: number) => void;
@@ -655,7 +660,6 @@ export interface InitOutput {
655
660
  readonly group_id: (a: number) => number;
656
661
  readonly individual_id: (a: number) => number;
657
662
  readonly individual_individualId: (a: number) => number;
658
- readonly __wbg_signedinvocation_free: (a: number, b: number) => void;
659
663
  readonly wasm_bindgen__convert__closures_____invoke__hb8b6941fceac7069: (a: number, b: number, c: any) => void;
660
664
  readonly wasm_bindgen__closure__destroy__h56c1987c5374a416: (a: number, b: number) => void;
661
665
  readonly wasm_bindgen__convert__closures_____invoke__h0e2a667a85375385: (a: number, b: number, c: any, d: any) => void;
@@ -1863,6 +1863,8 @@ export class Keyhive {
1863
1863
  return ret;
1864
1864
  }
1865
1865
  /**
1866
+ * Returns events for an agent as serialized bytes.
1867
+ * Returns a Map<Uint8Array, Uint8Array> where keys are event hashes and values are serialized event bytes.
1866
1868
  * @param {Agent} agent
1867
1869
  * @returns {Promise<Map<any, any>>}
1868
1870
  */
Binary file