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

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.54d",
4
4
  "description": "",
5
5
  "main": "pkg/keyhive_wasm.js",
6
6
  "keywords": [],
@@ -17,7 +17,8 @@ export class Agent {
17
17
  toString(): string;
18
18
  isIndividual(): boolean;
19
19
  /**
20
- * Returns prekey operations for this agent as a Map of hash -> Event
20
+ * Returns prekey operations for this agent as serialized bytes.
21
+ * Returns a Map<Uint8Array, Uint8Array> where keys are event hashes and values are serialized event bytes.
21
22
  */
22
23
  keyOps(): Promise<Map<any, any>>;
23
24
  isGroup(): boolean;
@@ -265,6 +266,10 @@ export class Keyhive {
265
266
  getIndividual(id: IndividualId): Promise<Individual | undefined>;
266
267
  ingestArchive(archive: Archive): Promise<void>;
267
268
  reachableDocs(): Promise<Summary[]>;
269
+ /**
270
+ * Returns events for an agent as serialized bytes.
271
+ * Returns a Map<Uint8Array, Uint8Array> where keys are event hashes and values are serialized event bytes.
272
+ */
268
273
  eventsForAgent(agent: Agent): Promise<Map<any, any>>;
269
274
  forcePcsUpdate(doc: Document): Promise<void>;
270
275
  ingestEventsBytes(events_bytes_array: Array<any>): Promise<Array<any>>;
@@ -516,7 +516,8 @@ export class Agent {
516
516
  return Identifier.__wrap(ret);
517
517
  }
518
518
  /**
519
- * Returns prekey operations for this agent as a Map of hash -> Event
519
+ * Returns prekey operations for this agent as serialized bytes.
520
+ * Returns a Map<Uint8Array, Uint8Array> where keys are event hashes and values are serialized event bytes.
520
521
  * @returns {Promise<Map<any, any>>}
521
522
  */
522
523
  keyOps() {
@@ -1866,6 +1867,8 @@ export class Keyhive {
1866
1867
  return ret;
1867
1868
  }
1868
1869
  /**
1870
+ * Returns events for an agent as serialized bytes.
1871
+ * Returns a Map<Uint8Array, Uint8Array> where keys are event hashes and values are serialized event bytes.
1869
1872
  * @param {Agent} agent
1870
1873
  * @returns {Promise<Map<any, any>>}
1871
1874
  */
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;
@@ -17,7 +17,8 @@ export class Agent {
17
17
  toString(): string;
18
18
  isIndividual(): boolean;
19
19
  /**
20
- * Returns prekey operations for this agent as a Map of hash -> Event
20
+ * Returns prekey operations for this agent as serialized bytes.
21
+ * Returns a Map<Uint8Array, Uint8Array> where keys are event hashes and values are serialized event bytes.
21
22
  */
22
23
  keyOps(): Promise<Map<any, any>>;
23
24
  isGroup(): boolean;
@@ -265,6 +266,10 @@ export class Keyhive {
265
266
  getIndividual(id: IndividualId): Promise<Individual | undefined>;
266
267
  ingestArchive(archive: Archive): Promise<void>;
267
268
  reachableDocs(): Promise<Summary[]>;
269
+ /**
270
+ * Returns events for an agent as serialized bytes.
271
+ * Returns a Map<Uint8Array, Uint8Array> where keys are event hashes and values are serialized event bytes.
272
+ */
268
273
  eventsForAgent(agent: Agent): Promise<Map<any, any>>;
269
274
  forcePcsUpdate(doc: Document): Promise<void>;
270
275
  ingestEventsBytes(events_bytes_array: Array<any>): Promise<Array<any>>;
@@ -508,7 +508,8 @@ class Agent {
508
508
  return Identifier.__wrap(ret);
509
509
  }
510
510
  /**
511
- * Returns prekey operations for this agent as a Map of hash -> Event
511
+ * Returns prekey operations for this agent as serialized bytes.
512
+ * Returns a Map<Uint8Array, Uint8Array> where keys are event hashes and values are serialized event bytes.
512
513
  * @returns {Promise<Map<any, any>>}
513
514
  */
514
515
  keyOps() {
@@ -1882,6 +1883,8 @@ class Keyhive {
1882
1883
  return ret;
1883
1884
  }
1884
1885
  /**
1886
+ * Returns events for an agent as serialized bytes.
1887
+ * Returns a Map<Uint8Array, Uint8Array> where keys are event hashes and values are serialized event bytes.
1885
1888
  * @param {Agent} agent
1886
1889
  * @returns {Promise<Map<any, any>>}
1887
1890
  */
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;
@@ -17,7 +17,8 @@ export class Agent {
17
17
  toString(): string;
18
18
  isIndividual(): boolean;
19
19
  /**
20
- * Returns prekey operations for this agent as a Map of hash -> Event
20
+ * Returns prekey operations for this agent as serialized bytes.
21
+ * Returns a Map<Uint8Array, Uint8Array> where keys are event hashes and values are serialized event bytes.
21
22
  */
22
23
  keyOps(): Promise<Map<any, any>>;
23
24
  isGroup(): boolean;
@@ -265,6 +266,10 @@ export class Keyhive {
265
266
  getIndividual(id: IndividualId): Promise<Individual | undefined>;
266
267
  ingestArchive(archive: Archive): Promise<void>;
267
268
  reachableDocs(): Promise<Summary[]>;
269
+ /**
270
+ * Returns events for an agent as serialized bytes.
271
+ * Returns a Map<Uint8Array, Uint8Array> where keys are event hashes and values are serialized event bytes.
272
+ */
268
273
  eventsForAgent(agent: Agent): Promise<Map<any, any>>;
269
274
  forcePcsUpdate(doc: Document): Promise<void>;
270
275
  ingestEventsBytes(events_bytes_array: Array<any>): Promise<Array<any>>;
@@ -575,6 +580,7 @@ export interface InitOutput {
575
580
  readonly history_contentRefs: (a: number) => [number, number];
576
581
  readonly history_delegations: (a: number) => [number, number];
577
582
  readonly history_revocations: (a: number) => [number, number];
583
+ readonly __wbg_signedinvocation_free: (a: number, b: number) => void;
578
584
  readonly __wbg_access_free: (a: number, b: number) => void;
579
585
  readonly __wbg_archive_free: (a: number, b: number) => void;
580
586
  readonly __wbg_cannotparseed25519signingkey_free: (a: number, b: number) => void;
@@ -655,7 +661,6 @@ export interface InitOutput {
655
661
  readonly group_id: (a: number) => number;
656
662
  readonly individual_id: (a: number) => number;
657
663
  readonly individual_individualId: (a: number) => number;
658
- readonly __wbg_signedinvocation_free: (a: number, b: number) => void;
659
664
  readonly wasm_bindgen__convert__closures_____invoke__hb8b6941fceac7069: (a: number, b: number, c: any) => void;
660
665
  readonly wasm_bindgen__closure__destroy__h56c1987c5374a416: (a: number, b: number) => void;
661
666
  readonly wasm_bindgen__convert__closures_____invoke__h0e2a667a85375385: (a: number, b: number, c: any, d: any) => void;
@@ -513,7 +513,8 @@ export class Agent {
513
513
  return Identifier.__wrap(ret);
514
514
  }
515
515
  /**
516
- * Returns prekey operations for this agent as a Map of hash -> Event
516
+ * Returns prekey operations for this agent as serialized bytes.
517
+ * Returns a Map<Uint8Array, Uint8Array> where keys are event hashes and values are serialized event bytes.
517
518
  * @returns {Promise<Map<any, any>>}
518
519
  */
519
520
  keyOps() {
@@ -1863,6 +1864,8 @@ export class Keyhive {
1863
1864
  return ret;
1864
1865
  }
1865
1866
  /**
1867
+ * Returns events for an agent as serialized bytes.
1868
+ * Returns a Map<Uint8Array, Uint8Array> where keys are event hashes and values are serialized event bytes.
1866
1869
  * @param {Agent} agent
1867
1870
  * @returns {Promise<Map<any, any>>}
1868
1871
  */
Binary file