@keyhive/keyhive 0.0.0-alpha.55 → 0.0.0-alpha.55c

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.55",
3
+ "version": "0.0.0-alpha.55c",
4
4
  "description": "",
5
5
  "main": "pkg/keyhive_wasm.js",
6
6
  "keywords": [],
@@ -30,7 +30,7 @@ export class Agent {
30
30
 
31
31
  /**
32
32
  * Result of [`JsKeyhive::all_agent_events`], containing all events for all agents
33
- * with deduplicated storage and two-tier indirection for both membership and prekey ops.
33
+ * with deduplicated storage and two-tier indirection for membership, prekey, and CGKA ops.
34
34
  *
35
35
  * The consumer follows: agent -> source IDs -> hashes -> event bytes.
36
36
  */
@@ -38,8 +38,10 @@ export class AllAgentEvents {
38
38
  private constructor();
39
39
  free(): void;
40
40
  [Symbol.dispose](): void;
41
+ readonly agentCgkaSources: Map<any, any>;
41
42
  readonly agentMembershipSources: Map<any, any>;
42
43
  readonly agentPrekeySources: Map<any, any>;
44
+ readonly cgkaSources: Map<any, any>;
43
45
  readonly events: Map<any, any>;
44
46
  readonly membershipSources: Map<any, any>;
45
47
  readonly prekeySources: Map<any, any>;
@@ -271,7 +273,7 @@ export class Keyhive {
271
273
  addMember(to_add: Agent, membered: Membered, access: Access, other_relevant_docs: Document[]): Promise<SignedDelegation>;
272
274
  /**
273
275
  * Returns all agent events with deduplicated storage and two-tier indirection
274
- * for both membership and prekey ops.
276
+ * for membership, prekey, and CGKA ops.
275
277
  */
276
278
  allAgentEvents(): Promise<AllAgentEvents>;
277
279
  contactCard(): Promise<ContactCard>;
@@ -126,7 +126,7 @@ if (Symbol.dispose) Agent.prototype[Symbol.dispose] = Agent.prototype.free;
126
126
 
127
127
  /**
128
128
  * Result of [`JsKeyhive::all_agent_events`], containing all events for all agents
129
- * with deduplicated storage and two-tier indirection for both membership and prekey ops.
129
+ * with deduplicated storage and two-tier indirection for membership, prekey, and CGKA ops.
130
130
  *
131
131
  * The consumer follows: agent -> source IDs -> hashes -> event bytes.
132
132
  */
@@ -148,6 +148,13 @@ export class AllAgentEvents {
148
148
  const ptr = this.__destroy_into_raw();
149
149
  wasm.__wbg_allagentevents_free(ptr, 0);
150
150
  }
151
+ /**
152
+ * @returns {Map<any, any>}
153
+ */
154
+ get agentCgkaSources() {
155
+ const ret = wasm.allagentevents_agentCgkaSources(this.__wbg_ptr);
156
+ return ret;
157
+ }
151
158
  /**
152
159
  * @returns {Map<any, any>}
153
160
  */
@@ -162,6 +169,13 @@ export class AllAgentEvents {
162
169
  const ret = wasm.allagentevents_agentPrekeySources(this.__wbg_ptr);
163
170
  return ret;
164
171
  }
172
+ /**
173
+ * @returns {Map<any, any>}
174
+ */
175
+ get cgkaSources() {
176
+ const ret = wasm.allagentevents_cgkaSources(this.__wbg_ptr);
177
+ return ret;
178
+ }
165
179
  /**
166
180
  * @returns {Map<any, any>}
167
181
  */
@@ -1371,7 +1385,7 @@ export class Keyhive {
1371
1385
  }
1372
1386
  /**
1373
1387
  * Returns all agent events with deduplicated storage and two-tier indirection
1374
- * for both membership and prekey ops.
1388
+ * for membership, prekey, and CGKA ops.
1375
1389
  * @returns {Promise<AllAgentEvents>}
1376
1390
  */
1377
1391
  allAgentEvents() {
@@ -2957,7 +2971,7 @@ export function __wbg_warn_9d7408e9659996aa(arg0, arg1, arg2, arg3, arg4, arg5,
2957
2971
  }
2958
2972
  }
2959
2973
  export function __wbindgen_cast_0000000000000001(arg0, arg1) {
2960
- // Cast intrinsic for `Closure(Closure { dtor_idx: 489, function: Function { arguments: [Externref], shim_idx: 490, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
2974
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 487, function: Function { arguments: [Externref], shim_idx: 488, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
2961
2975
  const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h056ce8b8b10a09c1, wasm_bindgen__convert__closures_____invoke__h8e854b3d10a3dc35);
2962
2976
  return ret;
2963
2977
  }
Binary file
@@ -1,102 +1,19 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export const memory: WebAssembly.Memory;
4
- export const __wbg_membered_free: (a: number, b: number) => void;
5
- export const __wbg_access_free: (a: number, b: number) => void;
6
4
  export const __wbg_capability_free: (a: number, b: number) => void;
7
- export const __wbg_encryptedcontentwithupdate_free: (a: number, b: number) => void;
8
- export const access_toString: (a: number) => [number, number];
9
- export const access_tryFromString: (a: number, b: number) => number;
10
- export const capability_can: (a: number) => number;
11
- export const capability_proof: (a: number) => number;
12
- export const capability_who: (a: number) => number;
13
- export const encryptedcontentwithupdate_encrypted_content: (a: number) => number;
14
- export const encryptedcontentwithupdate_update_op: (a: number) => number;
15
- export const __wbg_ciphertextstore_free: (a: number, b: number) => void;
16
- export const __wbg_invocation_free: (a: number, b: number) => void;
17
- export const ciphertextstore_newFromWebStorage: (a: any) => number;
18
- export const ciphertextstore_newInMemory: () => number;
19
- export const __wbg_archive_free: (a: number, b: number) => void;
20
- export const __wbg_cannotparseed25519signingkey_free: (a: number, b: number) => void;
21
- export const __wbg_cannotparseidentifier_free: (a: number, b: number) => void;
22
- export const __wbg_cgkaoperation_free: (a: number, b: number) => void;
23
- export const __wbg_changeid_free: (a: number, b: number) => void;
24
- export const __wbg_contactcard_free: (a: number, b: number) => void;
25
- export const __wbg_documentid_free: (a: number, b: number) => void;
26
- export const __wbg_event_free: (a: number, b: number) => void;
27
- export const __wbg_generatewebcryptoerror_free: (a: number, b: number) => void;
28
- export const __wbg_groupid_free: (a: number, b: number) => void;
29
- export const __wbg_identifier_free: (a: number, b: number) => void;
30
- export const __wbg_signed_free: (a: number, b: number) => void;
31
- export const __wbg_signedcgkaoperation_free: (a: number, b: number) => void;
32
- export const __wbg_signer_free: (a: number, b: number) => void;
33
- export const archive_toBytes: (a: number) => [number, number, number, number];
34
- export const archive_tryToKeyhive: (a: number, b: number, c: number, d: any) => any;
35
- export const archive_try_from_bytes: (a: number, b: number) => [number, number, number];
36
- export const cgkaoperation_variant: (a: number) => [number, number];
37
- export const changeid___wasm_refgen_toJsChangeId: (a: number) => number;
38
- export const changeid_bytes: (a: number) => [number, number];
39
- export const changeid_new: (a: number, b: number) => number;
40
- export const contactcard_fromJson: (a: number, b: number) => [number, number, number];
41
- export const contactcard_id: (a: number) => number;
42
- export const contactcard_individualId: (a: number) => number;
43
- export const contactcard_op: (a: number) => number;
44
- export const contactcard_shareKey: (a: number) => number;
45
- export const contactcard_signature: (a: number) => [number, number];
46
- export const contactcard_toJson: (a: number) => [number, number, number, number];
47
- export const documentid_new: (a: number, b: number) => [number, number, number];
48
- export const documentid_toBytes: (a: number) => [number, number];
49
- export const documentid_toJsValue: (a: number) => any;
50
- export const documentid_toString: (a: number) => [number, number];
51
- export const event_isDelegated: (a: number) => number;
52
- export const event_isRevoked: (a: number) => number;
53
- export const event_toBytes: (a: number) => [number, number, number, number];
54
- export const event_tryIntoSignedDelegation: (a: number) => number;
55
- export const event_tryIntoSignedRevocation: (a: number) => number;
56
- export const event_variant: (a: number) => [number, number];
57
- export const generatewebcryptoerror_message: (a: number) => [number, number];
58
- export const groupid_toString: (a: number) => [number, number];
59
- export const identifier_new: (a: number, b: number) => [number, number, number];
60
- export const identifier_publicId: () => number;
61
- export const identifier_toBytes: (a: number) => [number, number];
62
- export const signed_fromBytes: (a: number, b: number) => [number, number, number];
63
- export const signed_payload: (a: number) => [number, number];
64
- export const signed_signature: (a: number) => [number, number];
65
- export const signed_toBytes: (a: number) => [number, number, number, number];
66
- export const signed_verify: (a: number) => number;
67
- export const signed_verifyingKey: (a: number) => [number, number];
68
- export const signedcgkaoperation_delegation: (a: number) => number;
69
- export const signedcgkaoperation_signature: (a: number) => [number, number];
70
- export const signedcgkaoperation_verify: (a: number) => number;
71
- export const signedcgkaoperation_verifyingKey: (a: number) => [number, number];
72
- export const signer_clone: (a: number) => number;
73
- export const signer_generate: () => any;
74
- export const signer_generateMemory: () => number;
75
- export const signer_generateWebCrypto: () => any;
76
- export const signer_memorySignerFromBytes: (a: number, b: number) => [number, number, number];
77
- export const signer_trySign: (a: number, b: number, c: number) => any;
78
- export const signer_variant: (a: number) => [number, number];
79
- export const signer_verifyingKey: (a: number) => [number, number];
80
- export const signer_webCryptoSigner: (a: any) => any;
81
5
  export const __wbg_delegation_free: (a: number, b: number) => void;
82
- export const __wbg_history_free: (a: number, b: number) => void;
83
- export const __wbg_individual_free: (a: number, b: number) => void;
84
6
  export const __wbg_membership_free: (a: number, b: number) => void;
85
7
  export const __wbg_revocation_free: (a: number, b: number) => void;
86
8
  export const __wbg_signeddelegation_free: (a: number, b: number) => void;
87
- export const __wbg_stats_free: (a: number, b: number) => void;
88
9
  export const __wbg_summary_free: (a: number, b: number) => void;
10
+ export const capability_can: (a: number) => number;
11
+ export const capability_proof: (a: number) => number;
12
+ export const capability_who: (a: number) => number;
89
13
  export const delegation_after: (a: number) => number;
90
14
  export const delegation_can: (a: number) => number;
91
15
  export const delegation_delegate: (a: number) => number;
92
16
  export const delegation_proof: (a: number) => number;
93
- export const history_contentRefs: (a: number) => [number, number];
94
- export const history_delegations: (a: number) => [number, number];
95
- export const history_revocations: (a: number) => [number, number];
96
- export const individual_id: (a: number) => number;
97
- export const individual_pickPrekey: (a: number, b: number) => any;
98
- export const individual_toAgent: (a: number) => number;
99
- export const individual_toPeer: (a: number) => number;
100
17
  export const membership_can: (a: number) => number;
101
18
  export const membership_who: (a: number) => number;
102
19
  export const revocation_after: (a: number) => number;
@@ -108,38 +25,25 @@ export const signeddelegation_delegation: (a: number) => number;
108
25
  export const signeddelegation_signature: (a: number) => [number, number];
109
26
  export const signeddelegation_verify: (a: number) => number;
110
27
  export const signeddelegation_verifyingKey: (a: number) => [number, number];
111
- export const stats_activePrekeyCount: (a: number) => bigint;
112
- export const stats_cgkaOperations: (a: number) => bigint;
113
- export const stats_delegations: (a: number) => bigint;
114
- export const stats_docs: (a: number) => bigint;
115
- export const stats_groups: (a: number) => bigint;
116
- export const stats_individuals: (a: number) => bigint;
117
- export const stats_pendingCgkaOperation: (a: number) => bigint;
118
- export const stats_pendingCgkaOperationByActive: (a: number) => bigint;
119
- export const stats_pendingDelegated: (a: number) => bigint;
120
- export const stats_pendingDelegatedByActive: (a: number) => bigint;
121
- export const stats_pendingPrekeyRotated: (a: number) => bigint;
122
- export const stats_pendingPrekeyRotatedByActive: (a: number) => bigint;
123
- export const stats_pendingPrekeysExpanded: (a: number) => bigint;
124
- export const stats_pendingPrekeysExpandedByActive: (a: number) => bigint;
125
- export const stats_pendingRevoked: (a: number) => bigint;
126
- export const stats_pendingRevokedByActive: (a: number) => bigint;
127
- export const stats_prekeyRotations: (a: number) => bigint;
128
- export const stats_prekeysExpanded: (a: number) => bigint;
129
- export const stats_revocations: (a: number) => bigint;
130
- export const stats_totalOps: (a: number) => bigint;
131
- export const stats_totalPendingOps: (a: number) => bigint;
132
28
  export const summary_access: (a: number) => number;
133
29
  export const summary_doc: (a: number) => number;
134
- export const individual_individualId: (a: number) => number;
30
+ export const __wbg_encryptedcontentwithupdate_free: (a: number, b: number) => void;
31
+ export const __wbg_signedinvocation_free: (a: number, b: number) => void;
32
+ export const encryptedcontentwithupdate_encrypted_content: (a: number) => number;
33
+ export const encryptedcontentwithupdate_update_op: (a: number) => number;
34
+ export const __wbg_ciphertextstore_free: (a: number, b: number) => void;
35
+ export const ciphertextstore_newFromWebStorage: (a: any) => number;
36
+ export const ciphertextstore_newInMemory: () => number;
135
37
  export const __wbg_agent_free: (a: number, b: number) => void;
136
38
  export const __wbg_allagentevents_free: (a: number, b: number) => void;
39
+ export const __wbg_archive_free: (a: number, b: number) => void;
40
+ export const __wbg_changeid_free: (a: number, b: number) => void;
137
41
  export const __wbg_document_free: (a: number, b: number) => void;
138
42
  export const __wbg_group_free: (a: number, b: number) => void;
43
+ export const __wbg_individual_free: (a: number, b: number) => void;
139
44
  export const __wbg_individualid_free: (a: number, b: number) => void;
140
45
  export const __wbg_keyhive_free: (a: number, b: number) => void;
141
46
  export const __wbg_peer_free: (a: number, b: number) => void;
142
- export const __wbg_signedinvocation_free: (a: number, b: number) => void;
143
47
  export const agent_id: (a: number) => number;
144
48
  export const agent_isDocument: (a: number) => number;
145
49
  export const agent_isGroup: (a: number) => number;
@@ -147,11 +51,19 @@ export const agent_isIndividual: (a: number) => number;
147
51
  export const agent_keyOpHashes: (a: number) => any;
148
52
  export const agent_keyOps: (a: number) => any;
149
53
  export const agent_toString: (a: number) => [number, number];
54
+ export const allagentevents_agentCgkaSources: (a: number) => any;
150
55
  export const allagentevents_agentMembershipSources: (a: number) => any;
151
56
  export const allagentevents_agentPrekeySources: (a: number) => any;
57
+ export const allagentevents_cgkaSources: (a: number) => any;
152
58
  export const allagentevents_events: (a: number) => any;
153
59
  export const allagentevents_membershipSources: (a: number) => any;
154
60
  export const allagentevents_prekeySources: (a: number) => any;
61
+ export const archive_toBytes: (a: number) => [number, number, number, number];
62
+ export const archive_tryToKeyhive: (a: number, b: number, c: number, d: any) => any;
63
+ export const archive_try_from_bytes: (a: number, b: number) => [number, number, number];
64
+ export const changeid___wasm_refgen_toJsChangeId: (a: number) => number;
65
+ export const changeid_bytes: (a: number) => [number, number];
66
+ export const changeid_new: (a: number, b: number) => number;
155
67
  export const document___wasm_refgen_toJsDocument: (a: number) => number;
156
68
  export const document_doc_id: (a: number) => number;
157
69
  export const document_toAgent: (a: number) => number;
@@ -162,6 +74,9 @@ export const group_members: (a: number) => any;
162
74
  export const group_toAgent: (a: number) => number;
163
75
  export const group_toMembered: (a: number) => number;
164
76
  export const group_toPeer: (a: number) => number;
77
+ export const individual_pickPrekey: (a: number, b: number) => any;
78
+ export const individual_toAgent: (a: number) => number;
79
+ export const individual_toPeer: (a: number) => number;
165
80
  export const individualid_bytes: (a: number) => [number, number];
166
81
  export const keyhive_accessForDoc: (a: number, b: number, c: number) => any;
167
82
  export const keyhive_addMember: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
@@ -209,24 +124,111 @@ export const peer_toString: (a: number) => [number, number];
209
124
  export const document_id: (a: number) => number;
210
125
  export const group_groupId: (a: number) => number;
211
126
  export const group_id: (a: number) => number;
127
+ export const individual_id: (a: number) => number;
128
+ export const individual_individualId: (a: number) => number;
212
129
  export const peer_id: (a: number) => number;
213
- export const __wbg_sharekey_free: (a: number, b: number) => void;
130
+ export const __wbg_access_free: (a: number, b: number) => void;
131
+ export const __wbg_cannotparseed25519signingkey_free: (a: number, b: number) => void;
132
+ export const __wbg_cgkaoperation_free: (a: number, b: number) => void;
133
+ export const __wbg_contactcard_free: (a: number, b: number) => void;
134
+ export const __wbg_documentid_free: (a: number, b: number) => void;
135
+ export const __wbg_event_free: (a: number, b: number) => void;
136
+ export const __wbg_generatewebcryptoerror_free: (a: number, b: number) => void;
137
+ export const __wbg_groupid_free: (a: number, b: number) => void;
138
+ export const __wbg_history_free: (a: number, b: number) => void;
139
+ export const __wbg_signed_free: (a: number, b: number) => void;
140
+ export const __wbg_signedcgkaoperation_free: (a: number, b: number) => void;
141
+ export const __wbg_signer_free: (a: number, b: number) => void;
142
+ export const access_toString: (a: number) => [number, number];
143
+ export const access_tryFromString: (a: number, b: number) => number;
144
+ export const cgkaoperation_variant: (a: number) => [number, number];
145
+ export const contactcard_fromJson: (a: number, b: number) => [number, number, number];
146
+ export const contactcard_id: (a: number) => number;
147
+ export const contactcard_op: (a: number) => number;
148
+ export const contactcard_shareKey: (a: number) => number;
149
+ export const contactcard_signature: (a: number) => [number, number];
150
+ export const contactcard_toJson: (a: number) => [number, number, number, number];
151
+ export const documentid_new: (a: number, b: number) => [number, number, number];
152
+ export const documentid_toBytes: (a: number) => [number, number];
153
+ export const documentid_toJsValue: (a: number) => any;
154
+ export const documentid_toString: (a: number) => [number, number];
155
+ export const event_isDelegated: (a: number) => number;
156
+ export const event_isRevoked: (a: number) => number;
157
+ export const event_toBytes: (a: number) => [number, number, number, number];
158
+ export const event_tryIntoSignedDelegation: (a: number) => number;
159
+ export const event_tryIntoSignedRevocation: (a: number) => number;
160
+ export const event_variant: (a: number) => [number, number];
161
+ export const generatewebcryptoerror_message: (a: number) => [number, number];
162
+ export const groupid_toString: (a: number) => [number, number];
163
+ export const history_contentRefs: (a: number) => [number, number];
164
+ export const history_delegations: (a: number) => [number, number];
165
+ export const history_revocations: (a: number) => [number, number];
166
+ export const signed_fromBytes: (a: number, b: number) => [number, number, number];
167
+ export const signed_payload: (a: number) => [number, number];
168
+ export const signed_signature: (a: number) => [number, number];
169
+ export const signed_toBytes: (a: number) => [number, number, number, number];
170
+ export const signed_verify: (a: number) => number;
171
+ export const signed_verifyingKey: (a: number) => [number, number];
172
+ export const signedcgkaoperation_delegation: (a: number) => number;
173
+ export const signedcgkaoperation_signature: (a: number) => [number, number];
174
+ export const signedcgkaoperation_verify: (a: number) => number;
175
+ export const signedcgkaoperation_verifyingKey: (a: number) => [number, number];
176
+ export const signer_clone: (a: number) => number;
177
+ export const signer_generate: () => any;
178
+ export const signer_generateMemory: () => number;
179
+ export const signer_generateWebCrypto: () => any;
180
+ export const signer_memorySignerFromBytes: (a: number, b: number) => [number, number, number];
181
+ export const signer_trySign: (a: number, b: number, c: number) => any;
182
+ export const signer_variant: (a: number) => [number, number];
183
+ export const signer_verifyingKey: (a: number) => [number, number];
184
+ export const signer_webCryptoSigner: (a: any) => any;
185
+ export const contactcard_individualId: (a: number) => number;
214
186
  export const __wbg_doccontentrefs_free: (a: number, b: number) => void;
215
- export const __wbg_encrypted_free: (a: number, b: number) => void;
216
187
  export const __wbg_signedrevocation_free: (a: number, b: number) => void;
217
188
  export const doccontentrefs_addChangeId: (a: number, b: number) => any;
218
189
  export const doccontentrefs_change_hashes: (a: number) => any;
219
190
  export const doccontentrefs_docId: (a: number) => number;
220
191
  export const doccontentrefs_new: (a: number, b: number, c: number) => [number, number, number];
192
+ export const signedrevocation_delegation: (a: number) => number;
193
+ export const signedrevocation_signature: (a: number) => [number, number];
194
+ export const signedrevocation_verify: (a: number) => number;
195
+ export const signedrevocation_verifyingKey: (a: number) => [number, number];
196
+ export const __wbg_invocation_free: (a: number, b: number) => void;
197
+ export const __wbg_membered_free: (a: number, b: number) => void;
198
+ export const __wbg_sharekey_free: (a: number, b: number) => void;
199
+ export const __wbg_cannotparseidentifier_free: (a: number, b: number) => void;
200
+ export const __wbg_encrypted_free: (a: number, b: number) => void;
201
+ export const __wbg_identifier_free: (a: number, b: number) => void;
202
+ export const __wbg_stats_free: (a: number, b: number) => void;
221
203
  export const encrypted_ciphertext: (a: number) => [number, number];
222
204
  export const encrypted_content_ref: (a: number) => [number, number];
223
205
  export const encrypted_nonce: (a: number) => [number, number];
224
206
  export const encrypted_pcs_key_hash: (a: number) => [number, number];
225
207
  export const encrypted_pred_refs: (a: number) => [number, number];
226
- export const signedrevocation_delegation: (a: number) => number;
227
- export const signedrevocation_signature: (a: number) => [number, number];
228
- export const signedrevocation_verify: (a: number) => number;
229
- export const signedrevocation_verifyingKey: (a: number) => [number, number];
208
+ export const identifier_new: (a: number, b: number) => [number, number, number];
209
+ export const identifier_publicId: () => number;
210
+ export const identifier_toBytes: (a: number) => [number, number];
211
+ export const stats_activePrekeyCount: (a: number) => bigint;
212
+ export const stats_cgkaOperations: (a: number) => bigint;
213
+ export const stats_delegations: (a: number) => bigint;
214
+ export const stats_docs: (a: number) => bigint;
215
+ export const stats_groups: (a: number) => bigint;
216
+ export const stats_individuals: (a: number) => bigint;
217
+ export const stats_pendingCgkaOperation: (a: number) => bigint;
218
+ export const stats_pendingCgkaOperationByActive: (a: number) => bigint;
219
+ export const stats_pendingDelegated: (a: number) => bigint;
220
+ export const stats_pendingDelegatedByActive: (a: number) => bigint;
221
+ export const stats_pendingPrekeyRotated: (a: number) => bigint;
222
+ export const stats_pendingPrekeyRotatedByActive: (a: number) => bigint;
223
+ export const stats_pendingPrekeysExpanded: (a: number) => bigint;
224
+ export const stats_pendingPrekeysExpandedByActive: (a: number) => bigint;
225
+ export const stats_pendingRevoked: (a: number) => bigint;
226
+ export const stats_pendingRevokedByActive: (a: number) => bigint;
227
+ export const stats_prekeyRotations: (a: number) => bigint;
228
+ export const stats_prekeysExpanded: (a: number) => bigint;
229
+ export const stats_revocations: (a: number) => bigint;
230
+ export const stats_totalOps: (a: number) => bigint;
231
+ export const stats_totalPendingOps: (a: number) => bigint;
230
232
  export const encrypted_toBytes: (a: number) => [number, number];
231
233
  export const wasm_bindgen__closure__destroy__h056ce8b8b10a09c1: (a: number, b: number) => void;
232
234
  export const wasm_bindgen__convert__closures_____invoke__h8e854b3d10a3dc35: (a: number, b: number, c: any) => [number, number];
@@ -30,7 +30,7 @@ export class Agent {
30
30
 
31
31
  /**
32
32
  * Result of [`JsKeyhive::all_agent_events`], containing all events for all agents
33
- * with deduplicated storage and two-tier indirection for both membership and prekey ops.
33
+ * with deduplicated storage and two-tier indirection for membership, prekey, and CGKA ops.
34
34
  *
35
35
  * The consumer follows: agent -> source IDs -> hashes -> event bytes.
36
36
  */
@@ -38,8 +38,10 @@ export class AllAgentEvents {
38
38
  private constructor();
39
39
  free(): void;
40
40
  [Symbol.dispose](): void;
41
+ readonly agentCgkaSources: Map<any, any>;
41
42
  readonly agentMembershipSources: Map<any, any>;
42
43
  readonly agentPrekeySources: Map<any, any>;
44
+ readonly cgkaSources: Map<any, any>;
43
45
  readonly events: Map<any, any>;
44
46
  readonly membershipSources: Map<any, any>;
45
47
  readonly prekeySources: Map<any, any>;
@@ -271,7 +273,7 @@ export class Keyhive {
271
273
  addMember(to_add: Agent, membered: Membered, access: Access, other_relevant_docs: Document[]): Promise<SignedDelegation>;
272
274
  /**
273
275
  * Returns all agent events with deduplicated storage and two-tier indirection
274
- * for both membership and prekey ops.
276
+ * for membership, prekey, and CGKA ops.
275
277
  */
276
278
  allAgentEvents(): Promise<AllAgentEvents>;
277
279
  contactCard(): Promise<ContactCard>;
@@ -130,7 +130,7 @@ exports.Agent = Agent;
130
130
 
131
131
  /**
132
132
  * Result of [`JsKeyhive::all_agent_events`], containing all events for all agents
133
- * with deduplicated storage and two-tier indirection for both membership and prekey ops.
133
+ * with deduplicated storage and two-tier indirection for membership, prekey, and CGKA ops.
134
134
  *
135
135
  * The consumer follows: agent -> source IDs -> hashes -> event bytes.
136
136
  */
@@ -152,6 +152,13 @@ class AllAgentEvents {
152
152
  const ptr = this.__destroy_into_raw();
153
153
  wasm.__wbg_allagentevents_free(ptr, 0);
154
154
  }
155
+ /**
156
+ * @returns {Map<any, any>}
157
+ */
158
+ get agentCgkaSources() {
159
+ const ret = wasm.allagentevents_agentCgkaSources(this.__wbg_ptr);
160
+ return ret;
161
+ }
155
162
  /**
156
163
  * @returns {Map<any, any>}
157
164
  */
@@ -166,6 +173,13 @@ class AllAgentEvents {
166
173
  const ret = wasm.allagentevents_agentPrekeySources(this.__wbg_ptr);
167
174
  return ret;
168
175
  }
176
+ /**
177
+ * @returns {Map<any, any>}
178
+ */
179
+ get cgkaSources() {
180
+ const ret = wasm.allagentevents_cgkaSources(this.__wbg_ptr);
181
+ return ret;
182
+ }
169
183
  /**
170
184
  * @returns {Map<any, any>}
171
185
  */
@@ -1399,7 +1413,7 @@ class Keyhive {
1399
1413
  }
1400
1414
  /**
1401
1415
  * Returns all agent events with deduplicated storage and two-tier indirection
1402
- * for both membership and prekey ops.
1416
+ * for membership, prekey, and CGKA ops.
1403
1417
  * @returns {Promise<AllAgentEvents>}
1404
1418
  */
1405
1419
  allAgentEvents() {
@@ -3004,7 +3018,7 @@ function __wbg_get_imports() {
3004
3018
  }
3005
3019
  },
3006
3020
  __wbindgen_cast_0000000000000001: function(arg0, arg1) {
3007
- // Cast intrinsic for `Closure(Closure { dtor_idx: 489, function: Function { arguments: [Externref], shim_idx: 490, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
3021
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 487, function: Function { arguments: [Externref], shim_idx: 488, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
3008
3022
  const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h056ce8b8b10a09c1, wasm_bindgen__convert__closures_____invoke__h8e854b3d10a3dc35);
3009
3023
  return ret;
3010
3024
  },
Binary file