@xmtp/wasm-bindings 0.0.7 → 0.0.8

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.
@@ -1,32 +1,8 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
- /**
4
- * @param {string} host
5
- * @param {string} inbox_id
6
- * @param {string} account_address
7
- * @param {string | undefined} [db_path]
8
- * @param {Uint8Array | undefined} [encryption_key]
9
- * @param {string | undefined} [history_sync_url]
10
- * @param {LogOptions | undefined} [log_options]
11
- * @returns {Promise<Client>}
12
- */
13
3
  export function createClient(host: string, inbox_id: string, account_address: string, db_path?: string, encryption_key?: Uint8Array, history_sync_url?: string, log_options?: LogOptions): Promise<Client>;
14
- /**
15
- * @param {string} host
16
- * @param {string} account_address
17
- * @returns {Promise<string | undefined>}
18
- */
19
4
  export function getInboxIdForAddress(host: string, account_address: string): Promise<string | undefined>;
20
- /**
21
- * @param {string} account_address
22
- * @returns {string}
23
- */
24
5
  export function generateInboxId(account_address: string): string;
25
- /**
26
- * @param {string} signature_text
27
- * @param {Uint8Array} signature_bytes
28
- * @param {Uint8Array} public_key
29
- */
30
6
  export function verifySignedWithPublicKey(signature_text: string, signature_bytes: Uint8Array, public_key: Uint8Array): void;
31
7
  export enum ConsentEntityType {
32
8
  GroupId = 0,
@@ -62,6 +38,12 @@ export enum GroupPermissionsOptions {
62
38
  AdminOnly = 1,
63
39
  CustomPolicy = 2,
64
40
  }
41
+ export enum MetadataField {
42
+ GroupName = 0,
43
+ Description = 1,
44
+ ImageUrlSquare = 2,
45
+ PinnedFrameUrl = 3,
46
+ }
65
47
  export enum PermissionLevel {
66
48
  Member = 0,
67
49
  Admin = 1,
@@ -92,133 +74,58 @@ export enum SortDirection {
92
74
  Ascending = 0,
93
75
  Descending = 1,
94
76
  }
77
+ type LogLevel = "off" | "error" | "warn" | "info" | "debug" | "trace";
78
+ /**
79
+ * The `ReadableStreamType` enum.
80
+ *
81
+ * *This API requires the following crate features to be activated: `ReadableStreamType`*
82
+ */
83
+ type ReadableStreamType = "bytes";
95
84
  export class Client {
85
+ private constructor();
96
86
  free(): void;
97
87
  /**
98
- * @param {(string)[]} account_addresses
99
- * @returns {Promise<any>}
88
+ *
89
+ * * Get the client's inbox state.
90
+ * *
91
+ * * If `refresh_from_network` is true, the client will go to the network first to refresh the state.
92
+ * * Otherwise, the state will be read from the local database.
93
+ *
100
94
  */
95
+ inboxState(refresh_from_network: boolean): Promise<InboxState>;
96
+ getLatestInboxState(inbox_id: string): Promise<InboxState>;
101
97
  canMessage(account_addresses: (string)[]): Promise<any>;
102
- /**
103
- * @returns {Promise<void>}
104
- */
105
98
  registerIdentity(): Promise<void>;
106
- /**
107
- * @returns {Promise<void>}
108
- */
109
99
  sendHistorySyncRequest(): Promise<void>;
110
- /**
111
- * @returns {Promise<void>}
112
- */
113
100
  sendConsentSyncRequest(): Promise<void>;
114
- /**
115
- * @param {string} address
116
- * @returns {Promise<string | undefined>}
117
- */
118
101
  findInboxIdByAddress(address: string): Promise<string | undefined>;
119
- /**
120
- * @returns {Conversations}
121
- */
122
102
  conversations(): Conversations;
123
- /**
124
- * @returns {Promise<string | undefined>}
125
- */
103
+ setConsentStates(records: (Consent)[]): Promise<void>;
104
+ getConsentState(entity_type: ConsentEntityType, entity: string): Promise<ConsentState>;
126
105
  createInboxSignatureText(): Promise<string | undefined>;
127
- /**
128
- * @param {string} new_wallet_address
129
- * @returns {Promise<string>}
130
- */
131
106
  addWalletSignatureText(new_wallet_address: string): Promise<string>;
132
- /**
133
- * @param {string} wallet_address
134
- * @returns {Promise<string>}
135
- */
136
107
  revokeWalletSignatureText(wallet_address: string): Promise<string>;
137
- /**
138
- * @returns {Promise<string>}
139
- */
140
108
  revokeInstallationsSignatureText(): Promise<string>;
141
- /**
142
- * @param {SignatureRequestType} signature_type
143
- * @param {Uint8Array} signature_bytes
144
- * @returns {Promise<void>}
145
- */
146
109
  addSignature(signature_type: SignatureRequestType, signature_bytes: Uint8Array): Promise<void>;
147
- /**
148
- * @param {SignatureRequestType} signature_type
149
- * @param {Uint8Array} signature_bytes
150
- * @param {bigint} chain_id
151
- * @param {bigint | undefined} [block_number]
152
- * @returns {Promise<void>}
153
- */
154
110
  addScwSignature(signature_type: SignatureRequestType, signature_bytes: Uint8Array, chain_id: bigint, block_number?: bigint): Promise<void>;
155
- /**
156
- * @returns {Promise<void>}
157
- */
158
111
  applySignatureRequests(): Promise<void>;
159
- /**
160
- * @param {string} signature_text
161
- * @returns {Uint8Array}
162
- */
163
112
  signWithInstallationKey(signature_text: string): Uint8Array;
164
- /**
165
- * @param {string} signature_text
166
- * @param {Uint8Array} signature_bytes
167
- */
168
113
  verifySignedWithInstallationKey(signature_text: string, signature_bytes: Uint8Array): void;
169
- /**
170
- * @param {(Consent)[]} records
171
- * @returns {Promise<void>}
172
- */
173
- setConsentStates(records: (Consent)[]): Promise<void>;
174
- /**
175
- * @param {ConsentEntityType} entity_type
176
- * @param {string} entity
177
- * @returns {Promise<ConsentState>}
178
- */
179
- getConsentState(entity_type: ConsentEntityType, entity: string): Promise<ConsentState>;
180
- /**
181
- *
182
- * * Get the client's inbox state.
183
- * *
184
- * * If `refresh_from_network` is true, the client will go to the network first to refresh the state.
185
- * * Otherwise, the state will be read from the local database.
186
- *
187
- * @param {boolean} refresh_from_network
188
- * @returns {Promise<InboxState>}
189
- */
190
- inboxState(refresh_from_network: boolean): Promise<InboxState>;
191
- /**
192
- * @param {string} inbox_id
193
- * @returns {Promise<InboxState>}
194
- */
195
- getLatestInboxState(inbox_id: string): Promise<InboxState>;
196
114
  readonly accountAddress: string;
197
115
  readonly inboxId: string;
116
+ readonly isRegistered: boolean;
198
117
  readonly installationId: string;
199
118
  readonly installationIdBytes: Uint8Array;
200
- readonly isRegistered: boolean;
201
119
  }
202
120
  export class Consent {
203
121
  free(): void;
204
- /**
205
- * @param {ConsentEntityType} entity_type
206
- * @param {ConsentState} state
207
- * @param {string} entity
208
- */
209
122
  constructor(entity_type: ConsentEntityType, state: ConsentState, entity: string);
210
- entity: string;
211
123
  entityType: ConsentEntityType;
212
124
  state: ConsentState;
125
+ entity: string;
213
126
  }
214
127
  export class ContentTypeId {
215
128
  free(): void;
216
- /**
217
- * @param {string} authority_id
218
- * @param {string} type_id
219
- * @param {number} version_major
220
- * @param {number} version_minor
221
- */
222
129
  constructor(authority_id: string, type_id: string, version_major: number, version_minor: number);
223
130
  authorityId: string;
224
131
  typeId: string;
@@ -226,363 +133,143 @@ export class ContentTypeId {
226
133
  versionMinor: number;
227
134
  }
228
135
  export class Conversation {
136
+ private constructor();
229
137
  free(): void;
230
- /**
231
- * @returns {ConsentState}
232
- */
233
- consentState(): ConsentState;
234
- /**
235
- * @param {ConsentState} state
236
- */
237
- updateConsentState(state: ConsentState): void;
238
- /**
239
- * @returns {string}
240
- */
241
138
  id(): string;
242
- /**
243
- * @param {EncodedContent} encoded_content
244
- * @returns {Promise<string>}
245
- */
246
139
  send(encoded_content: EncodedContent): Promise<string>;
247
140
  /**
248
141
  * send a message without immediately publishing to the delivery service.
249
- * @param {EncodedContent} encoded_content
250
- * @returns {string}
251
142
  */
252
143
  sendOptimistic(encoded_content: EncodedContent): string;
253
144
  /**
254
145
  * Publish all unpublished messages
255
- * @returns {Promise<void>}
256
146
  */
257
147
  publishMessages(): Promise<void>;
258
- /**
259
- * @returns {Promise<void>}
260
- */
261
148
  sync(): Promise<void>;
262
- /**
263
- * @param {ListMessagesOptions | undefined} [opts]
264
- * @returns {(Message)[]}
265
- */
266
149
  findMessages(opts?: ListMessagesOptions): (Message)[];
267
- /**
268
- * @returns {Promise<any>}
269
- */
270
150
  listMembers(): Promise<any>;
271
- /**
272
- * @returns {(string)[]}
273
- */
274
151
  adminList(): (string)[];
275
- /**
276
- * @returns {(string)[]}
277
- */
278
152
  superAdminList(): (string)[];
279
- /**
280
- * @param {string} inbox_id
281
- * @returns {boolean}
282
- */
283
153
  isAdmin(inbox_id: string): boolean;
284
- /**
285
- * @param {string} inbox_id
286
- * @returns {boolean}
287
- */
288
154
  isSuperAdmin(inbox_id: string): boolean;
289
- /**
290
- * @param {(string)[]} account_addresses
291
- * @returns {Promise<void>}
292
- */
293
155
  addMembers(account_addresses: (string)[]): Promise<void>;
294
- /**
295
- * @param {string} inbox_id
296
- * @returns {Promise<void>}
297
- */
298
156
  addAdmin(inbox_id: string): Promise<void>;
299
- /**
300
- * @param {string} inbox_id
301
- * @returns {Promise<void>}
302
- */
303
157
  removeAdmin(inbox_id: string): Promise<void>;
304
- /**
305
- * @param {string} inbox_id
306
- * @returns {Promise<void>}
307
- */
308
158
  addSuperAdmin(inbox_id: string): Promise<void>;
309
- /**
310
- * @param {string} inbox_id
311
- * @returns {Promise<void>}
312
- */
313
159
  removeSuperAdmin(inbox_id: string): Promise<void>;
314
- /**
315
- * @returns {GroupPermissions}
316
- */
317
160
  groupPermissions(): GroupPermissions;
318
- /**
319
- * @param {(string)[]} inbox_ids
320
- * @returns {Promise<void>}
321
- */
322
161
  addMembersByInboxId(inbox_ids: (string)[]): Promise<void>;
323
- /**
324
- * @param {(string)[]} account_addresses
325
- * @returns {Promise<void>}
326
- */
327
162
  removeMembers(account_addresses: (string)[]): Promise<void>;
328
- /**
329
- * @param {(string)[]} inbox_ids
330
- * @returns {Promise<void>}
331
- */
332
163
  removeMembersByInboxId(inbox_ids: (string)[]): Promise<void>;
333
- /**
334
- * @param {string} group_name
335
- * @returns {Promise<void>}
336
- */
337
164
  updateGroupName(group_name: string): Promise<void>;
338
- /**
339
- * @returns {string}
340
- */
341
165
  groupName(): string;
342
- /**
343
- * @param {string} group_image_url_square
344
- * @returns {Promise<void>}
345
- */
346
166
  updateGroupImageUrlSquare(group_image_url_square: string): Promise<void>;
347
- /**
348
- * @returns {string}
349
- */
350
167
  groupImageUrlSquare(): string;
351
- /**
352
- * @param {string} group_description
353
- * @returns {Promise<void>}
354
- */
355
168
  updateGroupDescription(group_description: string): Promise<void>;
356
- /**
357
- * @returns {string}
358
- */
359
169
  groupDescription(): string;
360
- /**
361
- * @param {string} pinned_frame_url
362
- * @returns {Promise<void>}
363
- */
364
170
  updateGroupPinnedFrameUrl(pinned_frame_url: string): Promise<void>;
365
- /**
366
- * @returns {string}
367
- */
368
171
  groupPinnedFrameUrl(): string;
369
- /**
370
- * @returns {bigint}
371
- */
372
172
  createdAtNs(): bigint;
373
- /**
374
- * @returns {boolean}
375
- */
376
173
  isActive(): boolean;
377
- /**
378
- * @returns {string}
379
- */
380
174
  addedByInboxId(): string;
381
- /**
382
- * @returns {GroupMetadata}
383
- */
384
175
  groupMetadata(): GroupMetadata;
385
- /**
386
- * @returns {string}
387
- */
388
176
  dmPeerInboxId(): string;
177
+ updatePermissionPolicy(permission_update_type: PermissionUpdateType, permission_policy_option: PermissionPolicy, metadata_field?: MetadataField): Promise<void>;
178
+ consentState(): ConsentState;
179
+ updateConsentState(state: ConsentState): void;
389
180
  }
390
181
  export class Conversations {
182
+ private constructor();
391
183
  free(): void;
392
- /**
393
- * @param {(string)[]} account_addresses
394
- * @param {CreateGroupOptions | undefined} [options]
395
- * @returns {Promise<Conversation>}
396
- */
397
184
  createGroup(account_addresses: (string)[], options?: CreateGroupOptions): Promise<Conversation>;
398
- /**
399
- * @param {string} account_address
400
- * @returns {Promise<Conversation>}
401
- */
402
185
  createDm(account_address: string): Promise<Conversation>;
403
- /**
404
- * @param {string} group_id
405
- * @returns {Conversation}
406
- */
407
186
  findGroupById(group_id: string): Conversation;
408
- /**
409
- * @param {string} target_inbox_id
410
- * @returns {Conversation}
411
- */
412
187
  findDmByTargetInboxId(target_inbox_id: string): Conversation;
413
- /**
414
- * @param {string} message_id
415
- * @returns {Message}
416
- */
417
188
  findMessageById(message_id: string): Message;
418
- /**
419
- * @returns {Promise<void>}
420
- */
421
189
  sync(): Promise<void>;
422
- /**
423
- * @returns {Promise<number>}
424
- */
425
190
  syncAllConversations(): Promise<number>;
426
- /**
427
- * @param {ListConversationsOptions | undefined} [opts]
428
- * @returns {Promise<Array<any>>}
429
- */
430
191
  list(opts?: ListConversationsOptions): Promise<Array<any>>;
431
- /**
432
- * @param {ListConversationsOptions | undefined} [opts]
433
- * @returns {Promise<Array<any>>}
434
- */
435
192
  listGroups(opts?: ListConversationsOptions): Promise<Array<any>>;
436
- /**
437
- * @param {ListConversationsOptions | undefined} [opts]
438
- * @returns {Promise<Array<any>>}
439
- */
440
193
  listDms(opts?: ListConversationsOptions): Promise<Array<any>>;
441
194
  }
442
195
  export class CreateGroupOptions {
443
196
  free(): void;
444
- /**
445
- * @param {GroupPermissionsOptions | undefined} [permissions]
446
- * @param {string | undefined} [group_name]
447
- * @param {string | undefined} [group_image_url_square]
448
- * @param {string | undefined} [group_description]
449
- * @param {string | undefined} [group_pinned_frame_url]
450
- */
451
- constructor(permissions?: GroupPermissionsOptions, group_name?: string, group_image_url_square?: string, group_description?: string, group_pinned_frame_url?: string);
452
- groupDescription?: string;
453
- groupImageUrlSquare?: string;
197
+ constructor(permissions?: GroupPermissionsOptions, group_name?: string, group_image_url_square?: string, group_description?: string, group_pinned_frame_url?: string, custom_permission_policy_set?: PermissionPolicySet);
198
+ permissions?: GroupPermissionsOptions;
454
199
  groupName?: string;
200
+ groupImageUrlSquare?: string;
201
+ groupDescription?: string;
455
202
  groupPinnedFrameUrl?: string;
456
- permissions?: GroupPermissionsOptions;
203
+ customPermissionPolicySet?: PermissionPolicySet;
457
204
  }
458
205
  export class EncodedContent {
459
206
  free(): void;
460
- /**
461
- * @param {ContentTypeId | undefined} type
462
- * @param {any} parameters
463
- * @param {string | undefined} fallback
464
- * @param {number | undefined} compression
465
- * @param {Uint8Array} content
466
- */
467
207
  constructor(type: ContentTypeId | undefined, parameters: any, fallback: string | undefined, compression: number | undefined, content: Uint8Array);
208
+ type?: ContentTypeId;
209
+ parameters: any;
210
+ fallback?: string;
468
211
  compression?: number;
469
212
  content: Uint8Array;
470
- fallback?: string;
471
- parameters: any;
472
- type?: ContentTypeId;
473
213
  }
474
214
  export class GroupMember {
475
215
  free(): void;
476
- /**
477
- * @param {string} inbox_id
478
- * @param {(string)[]} account_addresses
479
- * @param {(string)[]} installation_ids
480
- * @param {PermissionLevel} permission_level
481
- * @param {ConsentState} consent_state
482
- */
483
216
  constructor(inbox_id: string, account_addresses: (string)[], installation_ids: (string)[], permission_level: PermissionLevel, consent_state: ConsentState);
484
- accountAddresses: (string)[];
485
- consentState: ConsentState;
486
217
  inboxId: string;
218
+ accountAddresses: (string)[];
487
219
  installationIds: (string)[];
488
220
  permissionLevel: PermissionLevel;
221
+ consentState: ConsentState;
489
222
  }
490
223
  export class GroupMetadata {
224
+ private constructor();
491
225
  free(): void;
492
- /**
493
- * @returns {string}
494
- */
495
226
  creatorInboxId(): string;
496
- /**
497
- * @returns {string}
498
- */
499
227
  conversationType(): string;
500
228
  }
501
229
  export class GroupPermissions {
230
+ private constructor();
502
231
  free(): void;
503
- /**
504
- * @returns {GroupPermissionsOptions}
505
- */
506
232
  policyType(): GroupPermissionsOptions;
507
- /**
508
- * @returns {PermissionPolicySet}
509
- */
510
233
  policySet(): PermissionPolicySet;
511
234
  }
512
235
  export class InboxState {
513
236
  free(): void;
514
- /**
515
- * @param {string} inbox_id
516
- * @param {string} recovery_address
517
- * @param {(Installation)[]} installations
518
- * @param {(string)[]} account_addresses
519
- */
520
237
  constructor(inbox_id: string, recovery_address: string, installations: (Installation)[], account_addresses: (string)[]);
521
- accountAddresses: (string)[];
522
238
  inboxId: string;
523
- installations: (Installation)[];
524
239
  recoveryAddress: string;
240
+ installations: (Installation)[];
241
+ accountAddresses: (string)[];
525
242
  }
526
243
  export class Installation {
527
244
  free(): void;
528
- /**
529
- * @param {string} id
530
- * @param {bigint | undefined} [client_timestamp_ns]
531
- */
532
245
  constructor(id: string, client_timestamp_ns?: bigint);
533
- clientTimestampNs?: bigint;
534
246
  id: string;
247
+ clientTimestampNs?: bigint;
535
248
  }
536
249
  export class IntoUnderlyingByteSource {
250
+ private constructor();
537
251
  free(): void;
538
- /**
539
- * @param {ReadableByteStreamController} controller
540
- */
541
252
  start(controller: ReadableByteStreamController): void;
542
- /**
543
- * @param {ReadableByteStreamController} controller
544
- * @returns {Promise<any>}
545
- */
546
253
  pull(controller: ReadableByteStreamController): Promise<any>;
547
254
  cancel(): void;
255
+ readonly type: ReadableStreamType;
548
256
  readonly autoAllocateChunkSize: number;
549
- readonly type: any;
550
257
  }
551
258
  export class IntoUnderlyingSink {
259
+ private constructor();
552
260
  free(): void;
553
- /**
554
- * @param {any} chunk
555
- * @returns {Promise<any>}
556
- */
557
261
  write(chunk: any): Promise<any>;
558
- /**
559
- * @returns {Promise<any>}
560
- */
561
262
  close(): Promise<any>;
562
- /**
563
- * @param {any} reason
564
- * @returns {Promise<any>}
565
- */
566
263
  abort(reason: any): Promise<any>;
567
264
  }
568
265
  export class IntoUnderlyingSource {
266
+ private constructor();
569
267
  free(): void;
570
- /**
571
- * @param {ReadableStreamDefaultController} controller
572
- * @returns {Promise<any>}
573
- */
574
268
  pull(controller: ReadableStreamDefaultController): Promise<any>;
575
269
  cancel(): void;
576
270
  }
577
271
  export class ListConversationsOptions {
578
272
  free(): void;
579
- /**
580
- * @param {any[] | undefined} [allowed_states]
581
- * @param {ConversationType | undefined} [conversation_type]
582
- * @param {bigint | undefined} [created_after_ns]
583
- * @param {bigint | undefined} [created_before_ns]
584
- * @param {bigint | undefined} [limit]
585
- */
586
273
  constructor(allowed_states?: any[], conversation_type?: ConversationType, created_after_ns?: bigint, created_before_ns?: bigint, limit?: bigint);
587
274
  allowedStates?: any[];
588
275
  conversationType?: ConversationType;
@@ -592,87 +279,57 @@ export class ListConversationsOptions {
592
279
  }
593
280
  export class ListMessagesOptions {
594
281
  free(): void;
595
- /**
596
- * @param {bigint | undefined} [sent_before_ns]
597
- * @param {bigint | undefined} [sent_after_ns]
598
- * @param {bigint | undefined} [limit]
599
- * @param {DeliveryStatus | undefined} [delivery_status]
600
- * @param {SortDirection | undefined} [direction]
601
- */
602
282
  constructor(sent_before_ns?: bigint, sent_after_ns?: bigint, limit?: bigint, delivery_status?: DeliveryStatus, direction?: SortDirection);
283
+ sentBeforeNs?: bigint;
284
+ sentAfterNs?: bigint;
285
+ limit?: bigint;
603
286
  deliveryStatus?: DeliveryStatus;
604
287
  direction?: SortDirection;
605
- limit?: bigint;
606
- sentAfterNs?: bigint;
607
- sentBeforeNs?: bigint;
608
288
  }
609
289
  /**
610
290
  * Specify options for the logger
611
291
  */
612
292
  export class LogOptions {
613
293
  free(): void;
294
+ constructor(structured: boolean, performance: boolean, level?: LogLevel);
614
295
  /**
615
- * @param {boolean} structured
616
- * @param {boolean} performance
617
- * @param {any | undefined} [level]
296
+ * enable structured JSON logging to stdout.Useful for third-party log viewers
618
297
  */
619
- constructor(structured: boolean, performance: boolean, level?: any);
620
- /**
621
- * filter for logs
622
- */
623
- level?: any;
624
- /**
625
- * enable performance metrics for libxmtp in the `performance` tab
626
- */
627
- performance: boolean;
628
- /**
629
- * enable structured JSON logging to stdout.Useful for third-party log viewers
630
- */
631
298
  structured: boolean;
299
+ /**
300
+ * enable performance metrics for libxmtp in the `performance` tab
301
+ */
302
+ performance: boolean;
303
+ /**
304
+ * filter for logs
305
+ */
306
+ level?: LogLevel;
632
307
  }
633
308
  export class Message {
634
309
  free(): void;
635
- /**
636
- * @param {string} id
637
- * @param {bigint} sent_at_ns
638
- * @param {string} convo_id
639
- * @param {string} sender_inbox_id
640
- * @param {EncodedContent} content
641
- * @param {GroupMessageKind} kind
642
- * @param {DeliveryStatus} delivery_status
643
- */
644
310
  constructor(id: string, sent_at_ns: bigint, convo_id: string, sender_inbox_id: string, content: EncodedContent, kind: GroupMessageKind, delivery_status: DeliveryStatus);
645
- content: EncodedContent;
646
- convoId: string;
647
- deliveryStatus: DeliveryStatus;
648
311
  id: string;
649
- kind: GroupMessageKind;
650
- senderInboxId: string;
651
312
  sentAtNs: bigint;
313
+ convoId: string;
314
+ senderInboxId: string;
315
+ content: EncodedContent;
316
+ kind: GroupMessageKind;
317
+ deliveryStatus: DeliveryStatus;
652
318
  }
653
319
  export class PermissionPolicySet {
654
320
  free(): void;
655
- /**
656
- * @param {PermissionPolicy} add_member_policy
657
- * @param {PermissionPolicy} remove_member_policy
658
- * @param {PermissionPolicy} add_admin_policy
659
- * @param {PermissionPolicy} remove_admin_policy
660
- * @param {PermissionPolicy} update_group_name_policy
661
- * @param {PermissionPolicy} update_group_description_policy
662
- * @param {PermissionPolicy} update_group_image_url_square_policy
663
- * @param {PermissionPolicy} update_group_pinned_frame_url_policy
664
- */
665
321
  constructor(add_member_policy: PermissionPolicy, remove_member_policy: PermissionPolicy, add_admin_policy: PermissionPolicy, remove_admin_policy: PermissionPolicy, update_group_name_policy: PermissionPolicy, update_group_description_policy: PermissionPolicy, update_group_image_url_square_policy: PermissionPolicy, update_group_pinned_frame_url_policy: PermissionPolicy);
666
- addAdminPolicy: PermissionPolicy;
667
322
  addMemberPolicy: PermissionPolicy;
668
- removeAdminPolicy: PermissionPolicy;
669
323
  removeMemberPolicy: PermissionPolicy;
324
+ addAdminPolicy: PermissionPolicy;
325
+ removeAdminPolicy: PermissionPolicy;
326
+ updateGroupNamePolicy: PermissionPolicy;
670
327
  updateGroupDescriptionPolicy: PermissionPolicy;
671
328
  updateGroupImageUrlSquarePolicy: PermissionPolicy;
672
- updateGroupNamePolicy: PermissionPolicy;
673
329
  updateGroupPinnedFrameUrlPolicy: PermissionPolicy;
674
330
  }
675
331
  export class Version {
332
+ private constructor();
676
333
  free(): void;
677
334
  }
678
335
 
@@ -680,27 +337,74 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
680
337
 
681
338
  export interface InitOutput {
682
339
  readonly memory: WebAssembly.Memory;
683
- readonly __wbg_permissionpolicyset_free: (a: number, b: number) => void;
684
- readonly __wbg_get_permissionpolicyset_addMemberPolicy: (a: number) => number;
685
- readonly __wbg_set_permissionpolicyset_addMemberPolicy: (a: number, b: number) => void;
686
- readonly __wbg_get_permissionpolicyset_removeMemberPolicy: (a: number) => number;
687
- readonly __wbg_set_permissionpolicyset_removeMemberPolicy: (a: number, b: number) => void;
688
- readonly __wbg_get_permissionpolicyset_addAdminPolicy: (a: number) => number;
689
- readonly __wbg_set_permissionpolicyset_addAdminPolicy: (a: number, b: number) => void;
690
- readonly __wbg_get_permissionpolicyset_removeAdminPolicy: (a: number) => number;
691
- readonly __wbg_set_permissionpolicyset_removeAdminPolicy: (a: number, b: number) => void;
692
- readonly __wbg_get_permissionpolicyset_updateGroupNamePolicy: (a: number) => number;
693
- readonly __wbg_set_permissionpolicyset_updateGroupNamePolicy: (a: number, b: number) => void;
694
- readonly __wbg_get_permissionpolicyset_updateGroupDescriptionPolicy: (a: number) => number;
695
- readonly __wbg_set_permissionpolicyset_updateGroupDescriptionPolicy: (a: number, b: number) => void;
696
- readonly __wbg_get_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number) => number;
697
- readonly __wbg_set_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number, b: number) => void;
698
- readonly __wbg_get_permissionpolicyset_updateGroupPinnedFrameUrlPolicy: (a: number) => number;
699
- readonly __wbg_set_permissionpolicyset_updateGroupPinnedFrameUrlPolicy: (a: number, b: number) => void;
700
- readonly permissionpolicyset_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
701
- readonly __wbg_grouppermissions_free: (a: number, b: number) => void;
702
- readonly grouppermissions_policyType: (a: number) => Array;
703
- readonly grouppermissions_policySet: (a: number) => Array;
340
+ readonly __wbg_groupmetadata_free: (a: number, b: number) => void;
341
+ readonly groupmetadata_creatorInboxId: (a: number) => [number, number];
342
+ readonly groupmetadata_conversationType: (a: number) => [number, number];
343
+ readonly __wbg_groupmember_free: (a: number, b: number) => void;
344
+ readonly __wbg_get_groupmember_inboxId: (a: number) => [number, number];
345
+ readonly __wbg_set_groupmember_inboxId: (a: number, b: number, c: number) => void;
346
+ readonly __wbg_get_groupmember_accountAddresses: (a: number) => [number, number];
347
+ readonly __wbg_set_groupmember_accountAddresses: (a: number, b: number, c: number) => void;
348
+ readonly __wbg_get_groupmember_installationIds: (a: number) => [number, number];
349
+ readonly __wbg_set_groupmember_installationIds: (a: number, b: number, c: number) => void;
350
+ readonly __wbg_get_groupmember_permissionLevel: (a: number) => number;
351
+ readonly __wbg_set_groupmember_permissionLevel: (a: number, b: number) => void;
352
+ readonly __wbg_get_groupmember_consentState: (a: number) => number;
353
+ readonly __wbg_set_groupmember_consentState: (a: number, b: number) => void;
354
+ readonly groupmember_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
355
+ readonly __wbg_conversation_free: (a: number, b: number) => void;
356
+ readonly conversation_id: (a: number) => [number, number];
357
+ readonly conversation_send: (a: number, b: number) => any;
358
+ readonly conversation_sendOptimistic: (a: number, b: number) => [number, number, number, number];
359
+ readonly conversation_publishMessages: (a: number) => any;
360
+ readonly conversation_sync: (a: number) => any;
361
+ readonly conversation_findMessages: (a: number, b: number) => [number, number, number, number];
362
+ readonly conversation_listMembers: (a: number) => any;
363
+ readonly conversation_adminList: (a: number) => [number, number, number, number];
364
+ readonly conversation_superAdminList: (a: number) => [number, number, number, number];
365
+ readonly conversation_isAdmin: (a: number, b: number, c: number) => [number, number, number];
366
+ readonly conversation_isSuperAdmin: (a: number, b: number, c: number) => [number, number, number];
367
+ readonly conversation_addMembers: (a: number, b: number, c: number) => any;
368
+ readonly conversation_addAdmin: (a: number, b: number, c: number) => any;
369
+ readonly conversation_removeAdmin: (a: number, b: number, c: number) => any;
370
+ readonly conversation_addSuperAdmin: (a: number, b: number, c: number) => any;
371
+ readonly conversation_removeSuperAdmin: (a: number, b: number, c: number) => any;
372
+ readonly conversation_groupPermissions: (a: number) => [number, number, number];
373
+ readonly conversation_addMembersByInboxId: (a: number, b: number, c: number) => any;
374
+ readonly conversation_removeMembers: (a: number, b: number, c: number) => any;
375
+ readonly conversation_removeMembersByInboxId: (a: number, b: number, c: number) => any;
376
+ readonly conversation_updateGroupName: (a: number, b: number, c: number) => any;
377
+ readonly conversation_groupName: (a: number) => [number, number, number, number];
378
+ readonly conversation_updateGroupImageUrlSquare: (a: number, b: number, c: number) => any;
379
+ readonly conversation_groupImageUrlSquare: (a: number) => [number, number, number, number];
380
+ readonly conversation_updateGroupDescription: (a: number, b: number, c: number) => any;
381
+ readonly conversation_groupDescription: (a: number) => [number, number, number, number];
382
+ readonly conversation_updateGroupPinnedFrameUrl: (a: number, b: number, c: number) => any;
383
+ readonly conversation_groupPinnedFrameUrl: (a: number) => [number, number, number, number];
384
+ readonly conversation_createdAtNs: (a: number) => bigint;
385
+ readonly conversation_isActive: (a: number) => [number, number, number];
386
+ readonly conversation_addedByInboxId: (a: number) => [number, number, number, number];
387
+ readonly conversation_groupMetadata: (a: number) => [number, number, number];
388
+ readonly conversation_dmPeerInboxId: (a: number) => [number, number, number, number];
389
+ readonly conversation_updatePermissionPolicy: (a: number, b: number, c: number, d: number) => any;
390
+ readonly __wbg_installation_free: (a: number, b: number) => void;
391
+ readonly __wbg_get_installation_id: (a: number) => [number, number];
392
+ readonly __wbg_set_installation_id: (a: number, b: number, c: number) => void;
393
+ readonly __wbg_get_installation_clientTimestampNs: (a: number) => [number, bigint];
394
+ readonly __wbg_set_installation_clientTimestampNs: (a: number, b: number, c: bigint) => void;
395
+ readonly installation_new: (a: number, b: number, c: number, d: bigint) => number;
396
+ readonly __wbg_inboxstate_free: (a: number, b: number) => void;
397
+ readonly __wbg_get_inboxstate_recoveryAddress: (a: number) => [number, number];
398
+ readonly __wbg_set_inboxstate_recoveryAddress: (a: number, b: number, c: number) => void;
399
+ readonly __wbg_get_inboxstate_installations: (a: number) => [number, number];
400
+ readonly __wbg_set_inboxstate_installations: (a: number, b: number, c: number) => void;
401
+ readonly __wbg_get_inboxstate_accountAddresses: (a: number) => [number, number];
402
+ readonly __wbg_set_inboxstate_accountAddresses: (a: number, b: number, c: number) => void;
403
+ readonly inboxstate_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
404
+ readonly client_inboxState: (a: number, b: number) => any;
405
+ readonly client_getLatestInboxState: (a: number, b: number, c: number) => any;
406
+ readonly __wbg_set_inboxstate_inboxId: (a: number, b: number, c: number) => void;
407
+ readonly __wbg_get_inboxstate_inboxId: (a: number) => [number, number];
704
408
  readonly __wbg_client_free: (a: number, b: number) => void;
705
409
  readonly __wbg_logoptions_free: (a: number, b: number) => void;
706
410
  readonly __wbg_get_logoptions_structured: (a: number) => number;
@@ -710,79 +414,32 @@ export interface InitOutput {
710
414
  readonly __wbg_get_logoptions_level: (a: number) => number;
711
415
  readonly __wbg_set_logoptions_level: (a: number, b: number) => void;
712
416
  readonly logoptions_new: (a: number, b: number, c: number) => number;
713
- readonly createClient: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number) => number;
714
- readonly client_accountAddress: (a: number) => Array;
715
- readonly client_inboxId: (a: number) => Array;
417
+ readonly createClient: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number) => any;
418
+ readonly client_accountAddress: (a: number) => [number, number];
419
+ readonly client_inboxId: (a: number) => [number, number];
716
420
  readonly client_isRegistered: (a: number) => number;
717
- readonly client_installationId: (a: number) => Array;
718
- readonly client_installationIdBytes: (a: number) => number;
719
- readonly client_canMessage: (a: number, b: number, c: number) => number;
720
- readonly client_registerIdentity: (a: number) => number;
721
- readonly client_sendHistorySyncRequest: (a: number) => number;
722
- readonly client_sendConsentSyncRequest: (a: number) => number;
723
- readonly client_findInboxIdByAddress: (a: number, b: number, c: number) => number;
421
+ readonly client_installationId: (a: number) => [number, number];
422
+ readonly client_installationIdBytes: (a: number) => any;
423
+ readonly client_canMessage: (a: number, b: number, c: number) => any;
424
+ readonly client_registerIdentity: (a: number) => any;
425
+ readonly client_sendHistorySyncRequest: (a: number) => any;
426
+ readonly client_sendConsentSyncRequest: (a: number) => any;
427
+ readonly client_findInboxIdByAddress: (a: number, b: number, c: number) => any;
724
428
  readonly client_conversations: (a: number) => number;
725
- readonly getInboxIdForAddress: (a: number, b: number, c: number, d: number) => number;
726
- readonly generateInboxId: (a: number, b: number) => Array;
727
- readonly verifySignedWithPublicKey: (a: number, b: number, c: number, d: number) => Array;
728
- readonly client_createInboxSignatureText: (a: number) => number;
729
- readonly client_addWalletSignatureText: (a: number, b: number, c: number) => number;
730
- readonly client_revokeWalletSignatureText: (a: number, b: number, c: number) => number;
731
- readonly client_revokeInstallationsSignatureText: (a: number) => number;
732
- readonly client_addSignature: (a: number, b: number, c: number) => number;
733
- readonly client_addScwSignature: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
734
- readonly client_applySignatureRequests: (a: number) => number;
735
- readonly client_signWithInstallationKey: (a: number, b: number, c: number) => Array;
736
- readonly client_verifySignedWithInstallationKey: (a: number, b: number, c: number, d: number) => Array;
737
429
  readonly __wbg_consent_free: (a: number, b: number) => void;
738
430
  readonly __wbg_get_consent_entityType: (a: number) => number;
739
431
  readonly __wbg_set_consent_entityType: (a: number, b: number) => void;
740
432
  readonly __wbg_get_consent_state: (a: number) => number;
741
433
  readonly __wbg_set_consent_state: (a: number, b: number) => void;
742
- readonly __wbg_get_consent_entity: (a: number) => Array;
434
+ readonly __wbg_get_consent_entity: (a: number) => [number, number];
743
435
  readonly __wbg_set_consent_entity: (a: number, b: number, c: number) => void;
744
436
  readonly consent_new: (a: number, b: number, c: number, d: number) => number;
745
- readonly client_setConsentStates: (a: number, b: number, c: number) => number;
746
- readonly client_getConsentState: (a: number, b: number, c: number, d: number) => number;
747
- readonly conversation_consentState: (a: number) => Array;
748
- readonly conversation_updateConsentState: (a: number, b: number) => Array;
749
- readonly __wbg_listconversationsoptions_free: (a: number, b: number) => void;
750
- readonly __wbg_get_listconversationsoptions_allowedStates: (a: number) => Array;
751
- readonly __wbg_set_listconversationsoptions_allowedStates: (a: number, b: number, c: number) => void;
752
- readonly __wbg_get_listconversationsoptions_conversationType: (a: number) => number;
753
- readonly __wbg_set_listconversationsoptions_conversationType: (a: number, b: number) => void;
754
- readonly __wbg_get_listconversationsoptions_createdAfterNs: (a: number) => Array;
755
- readonly __wbg_set_listconversationsoptions_createdAfterNs: (a: number, b: number, c: number) => void;
756
- readonly __wbg_get_listconversationsoptions_createdBeforeNs: (a: number) => Array;
757
- readonly __wbg_set_listconversationsoptions_createdBeforeNs: (a: number, b: number, c: number) => void;
758
- readonly __wbg_get_listconversationsoptions_limit: (a: number) => Array;
759
- readonly __wbg_set_listconversationsoptions_limit: (a: number, b: number, c: number) => void;
760
- readonly listconversationsoptions_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => number;
761
- readonly __wbg_creategroupoptions_free: (a: number, b: number) => void;
762
- readonly __wbg_get_creategroupoptions_permissions: (a: number) => number;
763
- readonly __wbg_set_creategroupoptions_permissions: (a: number, b: number) => void;
764
- readonly __wbg_get_creategroupoptions_groupName: (a: number) => Array;
765
- readonly __wbg_set_creategroupoptions_groupName: (a: number, b: number, c: number) => void;
766
- readonly __wbg_get_creategroupoptions_groupImageUrlSquare: (a: number) => Array;
767
- readonly __wbg_set_creategroupoptions_groupImageUrlSquare: (a: number, b: number, c: number) => void;
768
- readonly __wbg_get_creategroupoptions_groupDescription: (a: number) => Array;
769
- readonly __wbg_set_creategroupoptions_groupDescription: (a: number, b: number, c: number) => void;
770
- readonly __wbg_get_creategroupoptions_groupPinnedFrameUrl: (a: number) => Array;
771
- readonly __wbg_set_creategroupoptions_groupPinnedFrameUrl: (a: number, b: number, c: number) => void;
772
- readonly creategroupoptions_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => number;
773
- readonly __wbg_conversations_free: (a: number, b: number) => void;
774
- readonly conversations_createGroup: (a: number, b: number, c: number, d: number) => number;
775
- readonly conversations_createDm: (a: number, b: number, c: number) => number;
776
- readonly conversations_findGroupById: (a: number, b: number, c: number) => Array;
777
- readonly conversations_findDmByTargetInboxId: (a: number, b: number, c: number) => Array;
778
- readonly conversations_findMessageById: (a: number, b: number, c: number) => Array;
779
- readonly conversations_sync: (a: number) => number;
780
- readonly conversations_syncAllConversations: (a: number) => number;
781
- readonly conversations_list: (a: number, b: number) => number;
782
- readonly conversations_listGroups: (a: number, b: number) => number;
783
- readonly conversations_listDms: (a: number, b: number) => number;
437
+ readonly client_setConsentStates: (a: number, b: number, c: number) => any;
438
+ readonly client_getConsentState: (a: number, b: number, c: number, d: number) => any;
439
+ readonly conversation_consentState: (a: number) => [number, number, number];
440
+ readonly conversation_updateConsentState: (a: number, b: number) => [number, number];
784
441
  readonly __wbg_contenttypeid_free: (a: number, b: number) => void;
785
- readonly __wbg_get_contenttypeid_typeId: (a: number) => Array;
442
+ readonly __wbg_get_contenttypeid_typeId: (a: number) => [number, number];
786
443
  readonly __wbg_set_contenttypeid_typeId: (a: number, b: number, c: number) => void;
787
444
  readonly __wbg_get_contenttypeid_versionMajor: (a: number) => number;
788
445
  readonly __wbg_set_contenttypeid_versionMajor: (a: number, b: number) => void;
@@ -792,29 +449,37 @@ export interface InitOutput {
792
449
  readonly __wbg_encodedcontent_free: (a: number, b: number) => void;
793
450
  readonly __wbg_get_encodedcontent_type: (a: number) => number;
794
451
  readonly __wbg_set_encodedcontent_type: (a: number, b: number) => void;
795
- readonly __wbg_get_encodedcontent_parameters: (a: number) => number;
796
- readonly __wbg_set_encodedcontent_parameters: (a: number, b: number) => void;
797
- readonly __wbg_get_encodedcontent_fallback: (a: number) => Array;
452
+ readonly __wbg_get_encodedcontent_parameters: (a: number) => any;
453
+ readonly __wbg_set_encodedcontent_parameters: (a: number, b: any) => void;
454
+ readonly __wbg_get_encodedcontent_fallback: (a: number) => [number, number];
798
455
  readonly __wbg_set_encodedcontent_fallback: (a: number, b: number, c: number) => void;
799
- readonly __wbg_get_encodedcontent_compression: (a: number) => Array;
800
- readonly __wbg_set_encodedcontent_compression: (a: number, b: number, c: number) => void;
801
- readonly __wbg_get_encodedcontent_content: (a: number) => number;
802
- readonly __wbg_set_encodedcontent_content: (a: number, b: number) => void;
803
- readonly encodedcontent_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number;
456
+ readonly __wbg_get_encodedcontent_compression: (a: number) => number;
457
+ readonly __wbg_set_encodedcontent_compression: (a: number, b: number) => void;
458
+ readonly __wbg_get_encodedcontent_content: (a: number) => any;
459
+ readonly __wbg_set_encodedcontent_content: (a: number, b: any) => void;
460
+ readonly encodedcontent_new: (a: number, b: any, c: number, d: number, e: number, f: any) => number;
461
+ readonly getInboxIdForAddress: (a: number, b: number, c: number, d: number) => any;
462
+ readonly generateInboxId: (a: number, b: number) => [number, number, number, number];
804
463
  readonly __wbg_listmessagesoptions_free: (a: number, b: number) => void;
464
+ readonly __wbg_get_listmessagesoptions_sentBeforeNs: (a: number) => [number, bigint];
465
+ readonly __wbg_set_listmessagesoptions_sentBeforeNs: (a: number, b: number, c: bigint) => void;
466
+ readonly __wbg_get_listmessagesoptions_sentAfterNs: (a: number) => [number, bigint];
467
+ readonly __wbg_set_listmessagesoptions_sentAfterNs: (a: number, b: number, c: bigint) => void;
468
+ readonly __wbg_get_listmessagesoptions_limit: (a: number) => [number, bigint];
469
+ readonly __wbg_set_listmessagesoptions_limit: (a: number, b: number, c: bigint) => void;
805
470
  readonly __wbg_get_listmessagesoptions_deliveryStatus: (a: number) => number;
806
471
  readonly __wbg_set_listmessagesoptions_deliveryStatus: (a: number, b: number) => void;
807
472
  readonly __wbg_get_listmessagesoptions_direction: (a: number) => number;
808
473
  readonly __wbg_set_listmessagesoptions_direction: (a: number, b: number) => void;
809
- readonly listmessagesoptions_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
474
+ readonly listmessagesoptions_new: (a: number, b: bigint, c: number, d: bigint, e: number, f: bigint, g: number, h: number) => number;
810
475
  readonly __wbg_message_free: (a: number, b: number) => void;
811
- readonly __wbg_get_message_id: (a: number) => Array;
476
+ readonly __wbg_get_message_id: (a: number) => [number, number];
812
477
  readonly __wbg_set_message_id: (a: number, b: number, c: number) => void;
813
- readonly __wbg_get_message_sentAtNs: (a: number) => number;
814
- readonly __wbg_set_message_sentAtNs: (a: number, b: number) => void;
815
- readonly __wbg_get_message_convoId: (a: number) => Array;
478
+ readonly __wbg_get_message_sentAtNs: (a: number) => bigint;
479
+ readonly __wbg_set_message_sentAtNs: (a: number, b: bigint) => void;
480
+ readonly __wbg_get_message_convoId: (a: number) => [number, number];
816
481
  readonly __wbg_set_message_convoId: (a: number, b: number, c: number) => void;
817
- readonly __wbg_get_message_senderInboxId: (a: number) => Array;
482
+ readonly __wbg_get_message_senderInboxId: (a: number) => [number, number];
818
483
  readonly __wbg_set_message_senderInboxId: (a: number, b: number, c: number) => void;
819
484
  readonly __wbg_get_message_content: (a: number) => number;
820
485
  readonly __wbg_set_message_content: (a: number, b: number) => void;
@@ -822,108 +487,102 @@ export interface InitOutput {
822
487
  readonly __wbg_set_message_kind: (a: number, b: number) => void;
823
488
  readonly __wbg_get_message_deliveryStatus: (a: number) => number;
824
489
  readonly __wbg_set_message_deliveryStatus: (a: number, b: number) => void;
825
- readonly message_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => number;
490
+ readonly message_new: (a: number, b: number, c: bigint, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => number;
491
+ readonly verifySignedWithPublicKey: (a: number, b: number, c: any, d: any) => [number, number];
492
+ readonly client_createInboxSignatureText: (a: number) => any;
493
+ readonly client_addWalletSignatureText: (a: number, b: number, c: number) => any;
494
+ readonly client_revokeWalletSignatureText: (a: number, b: number, c: number) => any;
495
+ readonly client_revokeInstallationsSignatureText: (a: number) => any;
496
+ readonly client_addSignature: (a: number, b: number, c: any) => any;
497
+ readonly client_addScwSignature: (a: number, b: number, c: any, d: bigint, e: number, f: bigint) => any;
498
+ readonly client_applySignatureRequests: (a: number) => any;
499
+ readonly client_signWithInstallationKey: (a: number, b: number, c: number) => [number, number, number];
500
+ readonly client_verifySignedWithInstallationKey: (a: number, b: number, c: number, d: any) => [number, number];
826
501
  readonly __wbg_set_contenttypeid_authorityId: (a: number, b: number, c: number) => void;
827
- readonly __wbg_get_contenttypeid_authorityId: (a: number) => Array;
828
- readonly __wbg_get_listmessagesoptions_sentBeforeNs: (a: number) => Array;
829
- readonly __wbg_get_listmessagesoptions_sentAfterNs: (a: number) => Array;
830
- readonly __wbg_get_listmessagesoptions_limit: (a: number) => Array;
831
- readonly __wbg_set_listmessagesoptions_sentBeforeNs: (a: number, b: number, c: number) => void;
832
- readonly __wbg_set_listmessagesoptions_sentAfterNs: (a: number, b: number, c: number) => void;
833
- readonly __wbg_set_listmessagesoptions_limit: (a: number, b: number, c: number) => void;
834
- readonly __wbg_groupmetadata_free: (a: number, b: number) => void;
835
- readonly groupmetadata_creatorInboxId: (a: number) => Array;
836
- readonly groupmetadata_conversationType: (a: number) => Array;
837
- readonly __wbg_groupmember_free: (a: number, b: number) => void;
838
- readonly __wbg_get_groupmember_inboxId: (a: number) => Array;
839
- readonly __wbg_set_groupmember_inboxId: (a: number, b: number, c: number) => void;
840
- readonly __wbg_get_groupmember_accountAddresses: (a: number) => Array;
841
- readonly __wbg_set_groupmember_accountAddresses: (a: number, b: number, c: number) => void;
842
- readonly __wbg_get_groupmember_installationIds: (a: number) => Array;
843
- readonly __wbg_set_groupmember_installationIds: (a: number, b: number, c: number) => void;
844
- readonly __wbg_get_groupmember_permissionLevel: (a: number) => number;
845
- readonly __wbg_set_groupmember_permissionLevel: (a: number, b: number) => void;
846
- readonly __wbg_get_groupmember_consentState: (a: number) => number;
847
- readonly __wbg_set_groupmember_consentState: (a: number, b: number) => void;
848
- readonly groupmember_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
849
- readonly __wbg_conversation_free: (a: number, b: number) => void;
850
- readonly conversation_id: (a: number) => Array;
851
- readonly conversation_send: (a: number, b: number) => number;
852
- readonly conversation_sendOptimistic: (a: number, b: number) => Array;
853
- readonly conversation_publishMessages: (a: number) => number;
854
- readonly conversation_sync: (a: number) => number;
855
- readonly conversation_findMessages: (a: number, b: number) => Array;
856
- readonly conversation_listMembers: (a: number) => number;
857
- readonly conversation_adminList: (a: number) => Array;
858
- readonly conversation_superAdminList: (a: number) => Array;
859
- readonly conversation_isAdmin: (a: number, b: number, c: number) => Array;
860
- readonly conversation_isSuperAdmin: (a: number, b: number, c: number) => Array;
861
- readonly conversation_addMembers: (a: number, b: number, c: number) => number;
862
- readonly conversation_addAdmin: (a: number, b: number, c: number) => number;
863
- readonly conversation_removeAdmin: (a: number, b: number, c: number) => number;
864
- readonly conversation_addSuperAdmin: (a: number, b: number, c: number) => number;
865
- readonly conversation_removeSuperAdmin: (a: number, b: number, c: number) => number;
866
- readonly conversation_groupPermissions: (a: number) => Array;
867
- readonly conversation_addMembersByInboxId: (a: number, b: number, c: number) => number;
868
- readonly conversation_removeMembers: (a: number, b: number, c: number) => number;
869
- readonly conversation_removeMembersByInboxId: (a: number, b: number, c: number) => number;
870
- readonly conversation_updateGroupName: (a: number, b: number, c: number) => number;
871
- readonly conversation_groupName: (a: number) => Array;
872
- readonly conversation_updateGroupImageUrlSquare: (a: number, b: number, c: number) => number;
873
- readonly conversation_groupImageUrlSquare: (a: number) => Array;
874
- readonly conversation_updateGroupDescription: (a: number, b: number, c: number) => number;
875
- readonly conversation_groupDescription: (a: number) => Array;
876
- readonly conversation_updateGroupPinnedFrameUrl: (a: number, b: number, c: number) => number;
877
- readonly conversation_groupPinnedFrameUrl: (a: number) => Array;
878
- readonly conversation_createdAtNs: (a: number) => number;
879
- readonly conversation_isActive: (a: number) => Array;
880
- readonly conversation_addedByInboxId: (a: number) => Array;
881
- readonly conversation_groupMetadata: (a: number) => Array;
882
- readonly conversation_dmPeerInboxId: (a: number) => Array;
883
- readonly __wbg_installation_free: (a: number, b: number) => void;
884
- readonly __wbg_get_installation_id: (a: number) => Array;
885
- readonly __wbg_set_installation_id: (a: number, b: number, c: number) => void;
886
- readonly __wbg_get_installation_clientTimestampNs: (a: number) => Array;
887
- readonly __wbg_set_installation_clientTimestampNs: (a: number, b: number, c: number) => void;
888
- readonly installation_new: (a: number, b: number, c: number, d: number) => number;
889
- readonly __wbg_inboxstate_free: (a: number, b: number) => void;
890
- readonly __wbg_get_inboxstate_recoveryAddress: (a: number) => Array;
891
- readonly __wbg_set_inboxstate_recoveryAddress: (a: number, b: number, c: number) => void;
892
- readonly __wbg_get_inboxstate_installations: (a: number) => Array;
893
- readonly __wbg_set_inboxstate_installations: (a: number, b: number, c: number) => void;
894
- readonly __wbg_get_inboxstate_accountAddresses: (a: number) => Array;
895
- readonly __wbg_set_inboxstate_accountAddresses: (a: number, b: number, c: number) => void;
896
- readonly inboxstate_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
897
- readonly client_inboxState: (a: number, b: number) => number;
898
- readonly client_getLatestInboxState: (a: number, b: number, c: number) => number;
899
- readonly __wbg_set_inboxstate_inboxId: (a: number, b: number, c: number) => void;
900
- readonly __wbg_get_inboxstate_inboxId: (a: number) => Array;
502
+ readonly __wbg_get_contenttypeid_authorityId: (a: number) => [number, number];
503
+ readonly __wbg_listconversationsoptions_free: (a: number, b: number) => void;
504
+ readonly __wbg_get_listconversationsoptions_allowedStates: (a: number) => [number, number];
505
+ readonly __wbg_set_listconversationsoptions_allowedStates: (a: number, b: number, c: number) => void;
506
+ readonly __wbg_get_listconversationsoptions_conversationType: (a: number) => number;
507
+ readonly __wbg_set_listconversationsoptions_conversationType: (a: number, b: number) => void;
508
+ readonly __wbg_get_listconversationsoptions_createdAfterNs: (a: number) => [number, bigint];
509
+ readonly __wbg_set_listconversationsoptions_createdAfterNs: (a: number, b: number, c: bigint) => void;
510
+ readonly __wbg_get_listconversationsoptions_createdBeforeNs: (a: number) => [number, bigint];
511
+ readonly __wbg_set_listconversationsoptions_createdBeforeNs: (a: number, b: number, c: bigint) => void;
512
+ readonly __wbg_get_listconversationsoptions_limit: (a: number) => [number, bigint];
513
+ readonly __wbg_set_listconversationsoptions_limit: (a: number, b: number, c: bigint) => void;
514
+ readonly listconversationsoptions_new: (a: number, b: number, c: number, d: number, e: bigint, f: number, g: bigint, h: number, i: bigint) => number;
515
+ readonly __wbg_creategroupoptions_free: (a: number, b: number) => void;
516
+ readonly __wbg_get_creategroupoptions_permissions: (a: number) => number;
517
+ readonly __wbg_set_creategroupoptions_permissions: (a: number, b: number) => void;
518
+ readonly __wbg_get_creategroupoptions_groupName: (a: number) => [number, number];
519
+ readonly __wbg_set_creategroupoptions_groupName: (a: number, b: number, c: number) => void;
520
+ readonly __wbg_get_creategroupoptions_groupImageUrlSquare: (a: number) => [number, number];
521
+ readonly __wbg_set_creategroupoptions_groupImageUrlSquare: (a: number, b: number, c: number) => void;
522
+ readonly __wbg_get_creategroupoptions_groupDescription: (a: number) => [number, number];
523
+ readonly __wbg_set_creategroupoptions_groupDescription: (a: number, b: number, c: number) => void;
524
+ readonly __wbg_get_creategroupoptions_groupPinnedFrameUrl: (a: number) => [number, number];
525
+ readonly __wbg_set_creategroupoptions_groupPinnedFrameUrl: (a: number, b: number, c: number) => void;
526
+ readonly __wbg_get_creategroupoptions_customPermissionPolicySet: (a: number) => number;
527
+ readonly __wbg_set_creategroupoptions_customPermissionPolicySet: (a: number, b: number) => void;
528
+ readonly creategroupoptions_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => number;
529
+ readonly __wbg_conversations_free: (a: number, b: number) => void;
530
+ readonly conversations_createGroup: (a: number, b: number, c: number, d: number) => any;
531
+ readonly conversations_createDm: (a: number, b: number, c: number) => any;
532
+ readonly conversations_findGroupById: (a: number, b: number, c: number) => [number, number, number];
533
+ readonly conversations_findDmByTargetInboxId: (a: number, b: number, c: number) => [number, number, number];
534
+ readonly conversations_findMessageById: (a: number, b: number, c: number) => [number, number, number];
535
+ readonly conversations_sync: (a: number) => any;
536
+ readonly conversations_syncAllConversations: (a: number) => any;
537
+ readonly conversations_list: (a: number, b: number) => any;
538
+ readonly conversations_listGroups: (a: number, b: number) => any;
539
+ readonly conversations_listDms: (a: number, b: number) => any;
540
+ readonly __wbg_permissionpolicyset_free: (a: number, b: number) => void;
541
+ readonly __wbg_get_permissionpolicyset_addMemberPolicy: (a: number) => number;
542
+ readonly __wbg_set_permissionpolicyset_addMemberPolicy: (a: number, b: number) => void;
543
+ readonly __wbg_get_permissionpolicyset_removeMemberPolicy: (a: number) => number;
544
+ readonly __wbg_set_permissionpolicyset_removeMemberPolicy: (a: number, b: number) => void;
545
+ readonly __wbg_get_permissionpolicyset_addAdminPolicy: (a: number) => number;
546
+ readonly __wbg_set_permissionpolicyset_addAdminPolicy: (a: number, b: number) => void;
547
+ readonly __wbg_get_permissionpolicyset_removeAdminPolicy: (a: number) => number;
548
+ readonly __wbg_set_permissionpolicyset_removeAdminPolicy: (a: number, b: number) => void;
549
+ readonly __wbg_get_permissionpolicyset_updateGroupNamePolicy: (a: number) => number;
550
+ readonly __wbg_set_permissionpolicyset_updateGroupNamePolicy: (a: number, b: number) => void;
551
+ readonly __wbg_get_permissionpolicyset_updateGroupDescriptionPolicy: (a: number) => number;
552
+ readonly __wbg_set_permissionpolicyset_updateGroupDescriptionPolicy: (a: number, b: number) => void;
553
+ readonly __wbg_get_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number) => number;
554
+ readonly __wbg_set_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number, b: number) => void;
555
+ readonly __wbg_get_permissionpolicyset_updateGroupPinnedFrameUrlPolicy: (a: number) => number;
556
+ readonly __wbg_set_permissionpolicyset_updateGroupPinnedFrameUrlPolicy: (a: number, b: number) => void;
557
+ readonly permissionpolicyset_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
558
+ readonly __wbg_grouppermissions_free: (a: number, b: number) => void;
559
+ readonly grouppermissions_policyType: (a: number) => [number, number, number];
560
+ readonly grouppermissions_policySet: (a: number) => [number, number, number];
901
561
  readonly __wbg_version_free: (a: number, b: number) => void;
902
562
  readonly __wbg_intounderlyingsource_free: (a: number, b: number) => void;
903
- readonly intounderlyingsource_pull: (a: number, b: number) => number;
563
+ readonly intounderlyingsource_pull: (a: number, b: any) => any;
904
564
  readonly intounderlyingsource_cancel: (a: number) => void;
905
565
  readonly __wbg_intounderlyingbytesource_free: (a: number, b: number) => void;
906
566
  readonly intounderlyingbytesource_type: (a: number) => number;
907
567
  readonly intounderlyingbytesource_autoAllocateChunkSize: (a: number) => number;
908
- readonly intounderlyingbytesource_start: (a: number, b: number) => void;
909
- readonly intounderlyingbytesource_pull: (a: number, b: number) => number;
568
+ readonly intounderlyingbytesource_start: (a: number, b: any) => void;
569
+ readonly intounderlyingbytesource_pull: (a: number, b: any) => any;
910
570
  readonly intounderlyingbytesource_cancel: (a: number) => void;
911
571
  readonly __wbg_intounderlyingsink_free: (a: number, b: number) => void;
912
- readonly intounderlyingsink_write: (a: number, b: number) => number;
913
- readonly intounderlyingsink_close: (a: number) => number;
914
- readonly intounderlyingsink_abort: (a: number, b: number) => number;
572
+ readonly intounderlyingsink_write: (a: number, b: any) => any;
573
+ readonly intounderlyingsink_close: (a: number) => any;
574
+ readonly intounderlyingsink_abort: (a: number, b: any) => any;
915
575
  readonly __wbindgen_malloc: (a: number, b: number) => number;
916
576
  readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
917
- readonly __wbindgen_export_2: WebAssembly.Table;
918
- readonly __wbindgen_export_3: WebAssembly.Table;
919
- readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__ha602f13c6f6f57bd: (a: number, b: number) => void;
920
- readonly closure2327_externref_shim: (a: number, b: number, c: number) => void;
921
- readonly __externref_table_dealloc: (a: number) => void;
922
- readonly __externref_table_alloc: () => number;
923
577
  readonly __wbindgen_free: (a: number, b: number, c: number) => void;
924
- readonly __externref_drop_slice: (a: number, b: number) => void;
925
578
  readonly __wbindgen_exn_store: (a: number) => void;
926
- readonly closure3395_externref_shim: (a: number, b: number, c: number, d: number) => void;
579
+ readonly __externref_table_alloc: () => number;
580
+ readonly __wbindgen_export_5: WebAssembly.Table;
581
+ readonly __wbindgen_export_6: WebAssembly.Table;
582
+ readonly __externref_drop_slice: (a: number, b: number) => void;
583
+ readonly __externref_table_dealloc: (a: number) => void;
584
+ readonly closure2502_externref_shim: (a: number, b: number, c: any) => void;
585
+ readonly closure3596_externref_shim: (a: number, b: number, c: any, d: any) => void;
927
586
  readonly __wbindgen_start: () => void;
928
587
  }
929
588