@xmtp/wasm-bindings 0.0.14 → 0.0.15
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/dist/bindings_wasm.d.ts +159 -114
- package/dist/bindings_wasm.js +685 -239
- package/dist/bindings_wasm_bg.wasm +0 -0
- package/dist/bindings_wasm_bg.wasm.d.ts +125 -101
- package/package.json +2 -2
package/dist/bindings_wasm.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
export function getInboxIdForAddress(host: string, account_address: string): Promise<string>;
|
|
3
|
+
export function getInboxIdForAddress(host: string, account_address: string): Promise<string | undefined>;
|
|
4
4
|
export function generateInboxId(account_address: string): string;
|
|
5
5
|
export function verifySignedWithPublicKey(signature_text: string, signature_bytes: Uint8Array, public_key: Uint8Array): void;
|
|
6
6
|
export function createClient(host: string, inbox_id: string, account_address: string, db_path?: string | null, encryption_key?: Uint8Array | null, history_sync_url?: string | null, log_options?: LogOptions | null): Promise<Client>;
|
|
@@ -85,9 +85,7 @@ type ReadableStreamType = "bytes";
|
|
|
85
85
|
export class Client {
|
|
86
86
|
private constructor();
|
|
87
87
|
free(): void;
|
|
88
|
-
|
|
89
|
-
getConsentState(entity_type: ConsentEntityType, entity: string): Promise<ConsentState>;
|
|
90
|
-
createInboxSignatureText(): string;
|
|
88
|
+
createInboxSignatureText(): string | undefined;
|
|
91
89
|
addWalletSignatureText(new_wallet_address: string): Promise<string>;
|
|
92
90
|
revokeWalletSignatureText(wallet_address: string): Promise<string>;
|
|
93
91
|
revokeAllOtherInstallationsSignatureText(): Promise<string>;
|
|
@@ -101,8 +99,10 @@ export class Client {
|
|
|
101
99
|
registerIdentity(): Promise<void>;
|
|
102
100
|
sendHistorySyncRequest(): Promise<void>;
|
|
103
101
|
sendConsentSyncRequest(): Promise<void>;
|
|
104
|
-
findInboxIdByAddress(address: string): Promise<string>;
|
|
102
|
+
findInboxIdByAddress(address: string): Promise<string | undefined>;
|
|
105
103
|
conversations(): Conversations;
|
|
104
|
+
setConsentStates(records: Consent[]): Promise<void>;
|
|
105
|
+
getConsentState(entity_type: ConsentEntityType, entity: string): Promise<ConsentState>;
|
|
106
106
|
/**
|
|
107
107
|
*
|
|
108
108
|
* * Get the client's inbox state.
|
|
@@ -179,16 +179,25 @@ export class Conversation {
|
|
|
179
179
|
dmPeerInboxId(): string;
|
|
180
180
|
updatePermissionPolicy(permission_update_type: PermissionUpdateType, permission_policy_option: PermissionPolicy, metadata_field?: MetadataField | null): Promise<void>;
|
|
181
181
|
}
|
|
182
|
+
export class ConversationListItem {
|
|
183
|
+
free(): void;
|
|
184
|
+
constructor(conversation: Conversation, last_message?: Message | null);
|
|
185
|
+
conversation: Conversation;
|
|
186
|
+
get lastMessage(): Message | undefined;
|
|
187
|
+
set lastMessage(value: Message | null | undefined);
|
|
188
|
+
}
|
|
182
189
|
export class Conversations {
|
|
183
190
|
private constructor();
|
|
184
191
|
free(): void;
|
|
185
192
|
createGroup(account_addresses: string[], options?: CreateGroupOptions | null): Promise<Conversation>;
|
|
186
|
-
|
|
193
|
+
createGroupByInboxIds(inbox_ids: string[], options?: CreateGroupOptions | null): Promise<Conversation>;
|
|
194
|
+
createDm(account_address: string, options?: CreateDMOptions | null): Promise<Conversation>;
|
|
195
|
+
createDmByInboxId(inbox_id: string, options?: CreateDMOptions | null): Promise<Conversation>;
|
|
187
196
|
findGroupById(group_id: string): Conversation;
|
|
188
197
|
findDmByTargetInboxId(target_inbox_id: string): Conversation;
|
|
189
198
|
findMessageById(message_id: string): Message;
|
|
190
199
|
sync(): Promise<void>;
|
|
191
|
-
syncAllConversations(): Promise<number>;
|
|
200
|
+
syncAllConversations(consent_states?: any[] | null): Promise<number>;
|
|
192
201
|
list(opts?: ListConversationsOptions | null): Array<any>;
|
|
193
202
|
listGroups(opts?: ListConversationsOptions | null): Array<any>;
|
|
194
203
|
listDms(opts?: ListConversationsOptions | null): Array<any>;
|
|
@@ -198,16 +207,22 @@ export class Conversations {
|
|
|
198
207
|
streamDms(callback: any): StreamCloser;
|
|
199
208
|
streamAllMessages(callback: any, conversation_type?: ConversationType | null): StreamCloser;
|
|
200
209
|
}
|
|
210
|
+
export class CreateDMOptions {
|
|
211
|
+
free(): void;
|
|
212
|
+
constructor(message_disappearing_settings?: MessageDisappearingSettings | null);
|
|
213
|
+
get messageDisappearingSettings(): MessageDisappearingSettings | undefined;
|
|
214
|
+
set messageDisappearingSettings(value: MessageDisappearingSettings | null | undefined);
|
|
215
|
+
}
|
|
201
216
|
export class CreateGroupOptions {
|
|
202
217
|
free(): void;
|
|
203
218
|
constructor(permissions?: GroupPermissionsOptions | null, group_name?: string | null, group_image_url_square?: string | null, group_description?: string | null, custom_permission_policy_set?: PermissionPolicySet | null, message_disappearing_settings?: MessageDisappearingSettings | null);
|
|
204
219
|
get permissions(): GroupPermissionsOptions | undefined;
|
|
205
220
|
set permissions(value: GroupPermissionsOptions | null | undefined);
|
|
206
|
-
get groupName(): string;
|
|
221
|
+
get groupName(): string | undefined;
|
|
207
222
|
set groupName(value: string | null | undefined);
|
|
208
|
-
get groupImageUrlSquare(): string;
|
|
223
|
+
get groupImageUrlSquare(): string | undefined;
|
|
209
224
|
set groupImageUrlSquare(value: string | null | undefined);
|
|
210
|
-
get groupDescription(): string;
|
|
225
|
+
get groupDescription(): string | undefined;
|
|
211
226
|
set groupDescription(value: string | null | undefined);
|
|
212
227
|
get customPermissionPolicySet(): PermissionPolicySet | undefined;
|
|
213
228
|
set customPermissionPolicySet(value: PermissionPolicySet | null | undefined);
|
|
@@ -220,7 +235,7 @@ export class EncodedContent {
|
|
|
220
235
|
get type(): ContentTypeId | undefined;
|
|
221
236
|
set type(value: ContentTypeId | null | undefined);
|
|
222
237
|
parameters: any;
|
|
223
|
-
get fallback(): string;
|
|
238
|
+
get fallback(): string | undefined;
|
|
224
239
|
set fallback(value: string | null | undefined);
|
|
225
240
|
get compression(): number | undefined;
|
|
226
241
|
set compression(value: number | null | undefined);
|
|
@@ -293,15 +308,19 @@ export class IntoUnderlyingSource {
|
|
|
293
308
|
}
|
|
294
309
|
export class ListConversationsOptions {
|
|
295
310
|
free(): void;
|
|
296
|
-
constructor(allowed_states
|
|
311
|
+
constructor(allowed_states: any[] | null | undefined, consent_states: any[] | null | undefined, conversation_type: ConversationType | null | undefined, created_after_ns: bigint | null | undefined, created_before_ns: bigint | null | undefined, include_duplicate_dms: boolean, include_sync_groups: boolean, limit?: bigint | null);
|
|
297
312
|
get allowedStates(): any[] | undefined;
|
|
298
313
|
set allowedStates(value: any[] | null | undefined);
|
|
314
|
+
get consentStates(): any[] | undefined;
|
|
315
|
+
set consentStates(value: any[] | null | undefined);
|
|
299
316
|
get conversationType(): ConversationType | undefined;
|
|
300
317
|
set conversationType(value: ConversationType | null | undefined);
|
|
301
318
|
get createdAfterNs(): bigint | undefined;
|
|
302
319
|
set createdAfterNs(value: bigint | null | undefined);
|
|
303
320
|
get createdBeforeNs(): bigint | undefined;
|
|
304
321
|
set createdBeforeNs(value: bigint | null | undefined);
|
|
322
|
+
includeDuplicateDms: boolean;
|
|
323
|
+
includeSyncGroups: boolean;
|
|
305
324
|
get limit(): bigint | undefined;
|
|
306
325
|
set limit(value: bigint | null | undefined);
|
|
307
326
|
}
|
|
@@ -354,8 +373,10 @@ export class Message {
|
|
|
354
373
|
deliveryStatus: DeliveryStatus;
|
|
355
374
|
}
|
|
356
375
|
export class MessageDisappearingSettings {
|
|
357
|
-
private constructor();
|
|
358
376
|
free(): void;
|
|
377
|
+
constructor(from_ns: bigint, in_ns: bigint);
|
|
378
|
+
from_ns: bigint;
|
|
379
|
+
in_ns: bigint;
|
|
359
380
|
}
|
|
360
381
|
export class PermissionPolicySet {
|
|
361
382
|
free(): void;
|
|
@@ -398,18 +419,33 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
|
|
|
398
419
|
|
|
399
420
|
export interface InitOutput {
|
|
400
421
|
readonly memory: WebAssembly.Memory;
|
|
422
|
+
readonly __wbg_streamcloser_free: (a: number, b: number) => void;
|
|
423
|
+
readonly streamcloser_end: (a: number) => void;
|
|
424
|
+
readonly streamcloser_endAndWait: (a: number) => any;
|
|
425
|
+
readonly streamcloser_waitForReady: (a: number) => any;
|
|
426
|
+
readonly streamcloser_isClosed: (a: number) => number;
|
|
401
427
|
readonly __wbg_listconversationsoptions_free: (a: number, b: number) => void;
|
|
402
428
|
readonly __wbg_get_listconversationsoptions_allowedStates: (a: number) => [number, number];
|
|
403
429
|
readonly __wbg_set_listconversationsoptions_allowedStates: (a: number, b: number, c: number) => void;
|
|
430
|
+
readonly __wbg_get_listconversationsoptions_consentStates: (a: number) => [number, number];
|
|
431
|
+
readonly __wbg_set_listconversationsoptions_consentStates: (a: number, b: number, c: number) => void;
|
|
404
432
|
readonly __wbg_get_listconversationsoptions_conversationType: (a: number) => number;
|
|
405
433
|
readonly __wbg_set_listconversationsoptions_conversationType: (a: number, b: number) => void;
|
|
406
434
|
readonly __wbg_get_listconversationsoptions_createdAfterNs: (a: number) => [number, bigint];
|
|
407
435
|
readonly __wbg_set_listconversationsoptions_createdAfterNs: (a: number, b: number, c: bigint) => void;
|
|
408
436
|
readonly __wbg_get_listconversationsoptions_createdBeforeNs: (a: number) => [number, bigint];
|
|
409
437
|
readonly __wbg_set_listconversationsoptions_createdBeforeNs: (a: number, b: number, c: bigint) => void;
|
|
438
|
+
readonly __wbg_get_listconversationsoptions_includeDuplicateDms: (a: number) => number;
|
|
439
|
+
readonly __wbg_set_listconversationsoptions_includeDuplicateDms: (a: number, b: number) => void;
|
|
440
|
+
readonly __wbg_get_listconversationsoptions_includeSyncGroups: (a: number) => number;
|
|
441
|
+
readonly __wbg_set_listconversationsoptions_includeSyncGroups: (a: number, b: number) => void;
|
|
410
442
|
readonly __wbg_get_listconversationsoptions_limit: (a: number) => [number, bigint];
|
|
411
443
|
readonly __wbg_set_listconversationsoptions_limit: (a: number, b: number, c: bigint) => void;
|
|
412
|
-
readonly listconversationsoptions_new: (a: number, b: number, c: number, d: number, e:
|
|
444
|
+
readonly listconversationsoptions_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: bigint, h: number, i: bigint, j: number, k: number, l: number, m: bigint) => number;
|
|
445
|
+
readonly __wbg_messagedisappearingsettings_free: (a: number, b: number) => void;
|
|
446
|
+
readonly __wbg_get_messagedisappearingsettings_in_ns: (a: number) => bigint;
|
|
447
|
+
readonly __wbg_set_messagedisappearingsettings_in_ns: (a: number, b: bigint) => void;
|
|
448
|
+
readonly messagedisappearingsettings_new: (a: bigint, b: bigint) => number;
|
|
413
449
|
readonly __wbg_creategroupoptions_free: (a: number, b: number) => void;
|
|
414
450
|
readonly __wbg_get_creategroupoptions_permissions: (a: number) => number;
|
|
415
451
|
readonly __wbg_set_creategroupoptions_permissions: (a: number, b: number) => void;
|
|
@@ -421,22 +457,32 @@ export interface InitOutput {
|
|
|
421
457
|
readonly __wbg_set_creategroupoptions_groupDescription: (a: number, b: number, c: number) => void;
|
|
422
458
|
readonly __wbg_get_creategroupoptions_customPermissionPolicySet: (a: number) => number;
|
|
423
459
|
readonly __wbg_set_creategroupoptions_customPermissionPolicySet: (a: number, b: number) => void;
|
|
424
|
-
readonly __wbg_get_creategroupoptions_messageDisappearingSettings: (a: number) => number;
|
|
425
|
-
readonly __wbg_set_creategroupoptions_messageDisappearingSettings: (a: number, b: number) => void;
|
|
426
460
|
readonly creategroupoptions_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => number;
|
|
461
|
+
readonly __wbg_createdmoptions_free: (a: number, b: number) => void;
|
|
462
|
+
readonly __wbg_get_createdmoptions_messageDisappearingSettings: (a: number) => number;
|
|
463
|
+
readonly __wbg_set_createdmoptions_messageDisappearingSettings: (a: number, b: number) => void;
|
|
464
|
+
readonly createdmoptions_new: (a: number) => number;
|
|
427
465
|
readonly __wbg_hmackey_free: (a: number, b: number) => void;
|
|
428
466
|
readonly __wbg_get_hmackey_key: (a: number) => [number, number];
|
|
429
467
|
readonly __wbg_set_hmackey_key: (a: number, b: number, c: number) => void;
|
|
430
468
|
readonly __wbg_get_hmackey_epoch: (a: number) => bigint;
|
|
431
469
|
readonly __wbg_set_hmackey_epoch: (a: number, b: bigint) => void;
|
|
470
|
+
readonly __wbg_conversationlistitem_free: (a: number, b: number) => void;
|
|
471
|
+
readonly __wbg_get_conversationlistitem_conversation: (a: number) => number;
|
|
472
|
+
readonly __wbg_set_conversationlistitem_conversation: (a: number, b: number) => void;
|
|
473
|
+
readonly __wbg_get_conversationlistitem_lastMessage: (a: number) => number;
|
|
474
|
+
readonly __wbg_set_conversationlistitem_lastMessage: (a: number, b: number) => void;
|
|
475
|
+
readonly conversationlistitem_new: (a: number, b: number) => number;
|
|
432
476
|
readonly __wbg_conversations_free: (a: number, b: number) => void;
|
|
433
477
|
readonly conversations_createGroup: (a: number, b: number, c: number, d: number) => any;
|
|
434
|
-
readonly
|
|
478
|
+
readonly conversations_createGroupByInboxIds: (a: number, b: number, c: number, d: number) => any;
|
|
479
|
+
readonly conversations_createDm: (a: number, b: number, c: number, d: number) => any;
|
|
480
|
+
readonly conversations_createDmByInboxId: (a: number, b: number, c: number, d: number) => any;
|
|
435
481
|
readonly conversations_findGroupById: (a: number, b: number, c: number) => [number, number, number];
|
|
436
482
|
readonly conversations_findDmByTargetInboxId: (a: number, b: number, c: number) => [number, number, number];
|
|
437
483
|
readonly conversations_findMessageById: (a: number, b: number, c: number) => [number, number, number];
|
|
438
484
|
readonly conversations_sync: (a: number) => any;
|
|
439
|
-
readonly conversations_syncAllConversations: (a: number) => any;
|
|
485
|
+
readonly conversations_syncAllConversations: (a: number, b: number, c: number) => any;
|
|
440
486
|
readonly conversations_list: (a: number, b: number) => [number, number, number];
|
|
441
487
|
readonly conversations_listGroups: (a: number, b: number) => [number, number, number];
|
|
442
488
|
readonly conversations_listDms: (a: number, b: number) => [number, number, number];
|
|
@@ -445,8 +491,93 @@ export interface InitOutput {
|
|
|
445
491
|
readonly conversations_streamGroups: (a: number, b: any) => [number, number, number];
|
|
446
492
|
readonly conversations_streamDms: (a: number, b: any) => [number, number, number];
|
|
447
493
|
readonly conversations_streamAllMessages: (a: number, b: any, c: number) => [number, number, number];
|
|
494
|
+
readonly __wbg_listmessagesoptions_free: (a: number, b: number) => void;
|
|
495
|
+
readonly __wbg_get_listmessagesoptions_deliveryStatus: (a: number) => number;
|
|
496
|
+
readonly __wbg_set_listmessagesoptions_deliveryStatus: (a: number, b: number) => void;
|
|
497
|
+
readonly __wbg_get_listmessagesoptions_direction: (a: number) => number;
|
|
498
|
+
readonly __wbg_set_listmessagesoptions_direction: (a: number, b: number) => void;
|
|
499
|
+
readonly listmessagesoptions_new: (a: number, b: bigint, c: number, d: bigint, e: number, f: bigint, g: number, h: number) => number;
|
|
500
|
+
readonly __wbg_message_free: (a: number, b: number) => void;
|
|
501
|
+
readonly __wbg_get_message_id: (a: number) => [number, number];
|
|
502
|
+
readonly __wbg_set_message_id: (a: number, b: number, c: number) => void;
|
|
503
|
+
readonly __wbg_get_message_convoId: (a: number) => [number, number];
|
|
504
|
+
readonly __wbg_set_message_convoId: (a: number, b: number, c: number) => void;
|
|
505
|
+
readonly __wbg_get_message_senderInboxId: (a: number) => [number, number];
|
|
506
|
+
readonly __wbg_set_message_senderInboxId: (a: number, b: number, c: number) => void;
|
|
507
|
+
readonly __wbg_get_message_content: (a: number) => number;
|
|
508
|
+
readonly __wbg_set_message_content: (a: number, b: number) => void;
|
|
509
|
+
readonly __wbg_get_message_kind: (a: number) => number;
|
|
510
|
+
readonly __wbg_set_message_kind: (a: number, b: number) => void;
|
|
511
|
+
readonly __wbg_get_message_deliveryStatus: (a: number) => number;
|
|
512
|
+
readonly __wbg_set_message_deliveryStatus: (a: number, b: number) => void;
|
|
513
|
+
readonly message_new: (a: number, b: number, c: bigint, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => number;
|
|
514
|
+
readonly __wbg_permissionpolicyset_free: (a: number, b: number) => void;
|
|
515
|
+
readonly __wbg_get_permissionpolicyset_addMemberPolicy: (a: number) => number;
|
|
516
|
+
readonly __wbg_set_permissionpolicyset_addMemberPolicy: (a: number, b: number) => void;
|
|
517
|
+
readonly __wbg_get_permissionpolicyset_removeMemberPolicy: (a: number) => number;
|
|
518
|
+
readonly __wbg_set_permissionpolicyset_removeMemberPolicy: (a: number, b: number) => void;
|
|
519
|
+
readonly __wbg_get_permissionpolicyset_addAdminPolicy: (a: number) => number;
|
|
520
|
+
readonly __wbg_set_permissionpolicyset_addAdminPolicy: (a: number, b: number) => void;
|
|
521
|
+
readonly __wbg_get_permissionpolicyset_removeAdminPolicy: (a: number) => number;
|
|
522
|
+
readonly __wbg_set_permissionpolicyset_removeAdminPolicy: (a: number, b: number) => void;
|
|
523
|
+
readonly __wbg_get_permissionpolicyset_updateGroupNamePolicy: (a: number) => number;
|
|
524
|
+
readonly __wbg_set_permissionpolicyset_updateGroupNamePolicy: (a: number, b: number) => void;
|
|
525
|
+
readonly __wbg_get_permissionpolicyset_updateGroupDescriptionPolicy: (a: number) => number;
|
|
526
|
+
readonly __wbg_set_permissionpolicyset_updateGroupDescriptionPolicy: (a: number, b: number) => void;
|
|
527
|
+
readonly __wbg_get_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number) => number;
|
|
528
|
+
readonly __wbg_set_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number, b: number) => void;
|
|
529
|
+
readonly __wbg_get_permissionpolicyset_updateMessageDisappearingPolicy: (a: number) => number;
|
|
530
|
+
readonly __wbg_set_permissionpolicyset_updateMessageDisappearingPolicy: (a: number, b: number) => void;
|
|
531
|
+
readonly permissionpolicyset_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
532
|
+
readonly __wbg_grouppermissions_free: (a: number, b: number) => void;
|
|
533
|
+
readonly grouppermissions_policyType: (a: number) => [number, number, number];
|
|
534
|
+
readonly grouppermissions_policySet: (a: number) => [number, number, number];
|
|
535
|
+
readonly __wbg_get_messagedisappearingsettings_from_ns: (a: number) => bigint;
|
|
536
|
+
readonly __wbg_get_message_sentAtNs: (a: number) => bigint;
|
|
537
|
+
readonly __wbg_set_listmessagesoptions_sentBeforeNs: (a: number, b: number, c: bigint) => void;
|
|
538
|
+
readonly __wbg_set_listmessagesoptions_sentAfterNs: (a: number, b: number, c: bigint) => void;
|
|
539
|
+
readonly __wbg_set_listmessagesoptions_limit: (a: number, b: number, c: bigint) => void;
|
|
540
|
+
readonly __wbg_set_messagedisappearingsettings_from_ns: (a: number, b: bigint) => void;
|
|
541
|
+
readonly __wbg_set_message_sentAtNs: (a: number, b: bigint) => void;
|
|
542
|
+
readonly __wbg_set_creategroupoptions_messageDisappearingSettings: (a: number, b: number) => void;
|
|
543
|
+
readonly __wbg_get_creategroupoptions_messageDisappearingSettings: (a: number) => number;
|
|
544
|
+
readonly __wbg_get_listmessagesoptions_sentBeforeNs: (a: number) => [number, bigint];
|
|
545
|
+
readonly __wbg_get_listmessagesoptions_sentAfterNs: (a: number) => [number, bigint];
|
|
546
|
+
readonly __wbg_get_listmessagesoptions_limit: (a: number) => [number, bigint];
|
|
448
547
|
readonly getInboxIdForAddress: (a: number, b: number, c: number, d: number) => any;
|
|
449
548
|
readonly generateInboxId: (a: number, b: number) => [number, number, number, number];
|
|
549
|
+
readonly verifySignedWithPublicKey: (a: number, b: number, c: any, d: any) => [number, number];
|
|
550
|
+
readonly client_createInboxSignatureText: (a: number) => [number, number, number, number];
|
|
551
|
+
readonly client_addWalletSignatureText: (a: number, b: number, c: number) => any;
|
|
552
|
+
readonly client_revokeWalletSignatureText: (a: number, b: number, c: number) => any;
|
|
553
|
+
readonly client_revokeAllOtherInstallationsSignatureText: (a: number) => any;
|
|
554
|
+
readonly client_revokeInstallationsSignatureText: (a: number, b: number, c: number) => any;
|
|
555
|
+
readonly client_addSignature: (a: number, b: number, c: any) => any;
|
|
556
|
+
readonly client_addScwSignature: (a: number, b: number, c: any, d: bigint, e: number, f: bigint) => any;
|
|
557
|
+
readonly client_applySignatureRequests: (a: number) => any;
|
|
558
|
+
readonly client_signWithInstallationKey: (a: number, b: number, c: number) => [number, number, number];
|
|
559
|
+
readonly client_verifySignedWithInstallationKey: (a: number, b: number, c: number, d: any) => [number, number];
|
|
560
|
+
readonly __wbg_client_free: (a: number, b: number) => void;
|
|
561
|
+
readonly __wbg_logoptions_free: (a: number, b: number) => void;
|
|
562
|
+
readonly __wbg_get_logoptions_structured: (a: number) => number;
|
|
563
|
+
readonly __wbg_set_logoptions_structured: (a: number, b: number) => void;
|
|
564
|
+
readonly __wbg_get_logoptions_performance: (a: number) => number;
|
|
565
|
+
readonly __wbg_set_logoptions_performance: (a: number, b: number) => void;
|
|
566
|
+
readonly __wbg_get_logoptions_level: (a: number) => number;
|
|
567
|
+
readonly __wbg_set_logoptions_level: (a: number, b: number) => void;
|
|
568
|
+
readonly logoptions_new: (a: number, b: number, c: number) => number;
|
|
569
|
+
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;
|
|
570
|
+
readonly client_accountAddress: (a: number) => [number, number];
|
|
571
|
+
readonly client_inboxId: (a: number) => [number, number];
|
|
572
|
+
readonly client_isRegistered: (a: number) => number;
|
|
573
|
+
readonly client_installationId: (a: number) => [number, number];
|
|
574
|
+
readonly client_installationIdBytes: (a: number) => any;
|
|
575
|
+
readonly client_canMessage: (a: number, b: number, c: number) => any;
|
|
576
|
+
readonly client_registerIdentity: (a: number) => any;
|
|
577
|
+
readonly client_sendHistorySyncRequest: (a: number) => any;
|
|
578
|
+
readonly client_sendConsentSyncRequest: (a: number) => any;
|
|
579
|
+
readonly client_findInboxIdByAddress: (a: number, b: number, c: number) => any;
|
|
580
|
+
readonly client_conversations: (a: number) => number;
|
|
450
581
|
readonly __wbg_consent_free: (a: number, b: number) => void;
|
|
451
582
|
readonly __wbg_get_consent_entityType: (a: number) => number;
|
|
452
583
|
readonly __wbg_set_consent_entityType: (a: number, b: number) => void;
|
|
@@ -460,7 +591,6 @@ export interface InitOutput {
|
|
|
460
591
|
readonly conversation_consentState: (a: number) => [number, number, number];
|
|
461
592
|
readonly conversation_updateConsentState: (a: number, b: number) => [number, number];
|
|
462
593
|
readonly __wbg_groupmetadata_free: (a: number, b: number) => void;
|
|
463
|
-
readonly __wbg_messagedisappearingsettings_free: (a: number, b: number) => void;
|
|
464
594
|
readonly groupmetadata_creatorInboxId: (a: number) => [number, number];
|
|
465
595
|
readonly groupmetadata_conversationType: (a: number) => [number, number];
|
|
466
596
|
readonly __wbg_groupmember_free: (a: number, b: number) => void;
|
|
@@ -507,69 +637,7 @@ export interface InitOutput {
|
|
|
507
637
|
readonly conversation_groupMetadata: (a: number) => any;
|
|
508
638
|
readonly conversation_dmPeerInboxId: (a: number) => [number, number, number, number];
|
|
509
639
|
readonly conversation_updatePermissionPolicy: (a: number, b: number, c: number, d: number) => any;
|
|
510
|
-
readonly verifySignedWithPublicKey: (a: number, b: number, c: any, d: any) => [number, number];
|
|
511
|
-
readonly client_createInboxSignatureText: (a: number) => [number, number, number, number];
|
|
512
|
-
readonly client_addWalletSignatureText: (a: number, b: number, c: number) => any;
|
|
513
|
-
readonly client_revokeWalletSignatureText: (a: number, b: number, c: number) => any;
|
|
514
|
-
readonly client_revokeAllOtherInstallationsSignatureText: (a: number) => any;
|
|
515
|
-
readonly client_revokeInstallationsSignatureText: (a: number, b: number, c: number) => any;
|
|
516
|
-
readonly client_addSignature: (a: number, b: number, c: any) => any;
|
|
517
|
-
readonly client_addScwSignature: (a: number, b: number, c: any, d: bigint, e: number, f: bigint) => any;
|
|
518
|
-
readonly client_applySignatureRequests: (a: number) => any;
|
|
519
|
-
readonly client_signWithInstallationKey: (a: number, b: number, c: number) => [number, number, number];
|
|
520
|
-
readonly client_verifySignedWithInstallationKey: (a: number, b: number, c: number, d: any) => [number, number];
|
|
521
|
-
readonly __wbg_get_groupmember_inboxId: (a: number) => [number, number];
|
|
522
|
-
readonly __wbg_set_groupmember_inboxId: (a: number, b: number, c: number) => void;
|
|
523
|
-
readonly __wbg_permissionpolicyset_free: (a: number, b: number) => void;
|
|
524
|
-
readonly __wbg_get_permissionpolicyset_addMemberPolicy: (a: number) => number;
|
|
525
|
-
readonly __wbg_set_permissionpolicyset_addMemberPolicy: (a: number, b: number) => void;
|
|
526
|
-
readonly __wbg_get_permissionpolicyset_removeMemberPolicy: (a: number) => number;
|
|
527
|
-
readonly __wbg_set_permissionpolicyset_removeMemberPolicy: (a: number, b: number) => void;
|
|
528
|
-
readonly __wbg_get_permissionpolicyset_addAdminPolicy: (a: number) => number;
|
|
529
|
-
readonly __wbg_set_permissionpolicyset_addAdminPolicy: (a: number, b: number) => void;
|
|
530
|
-
readonly __wbg_get_permissionpolicyset_removeAdminPolicy: (a: number) => number;
|
|
531
|
-
readonly __wbg_set_permissionpolicyset_removeAdminPolicy: (a: number, b: number) => void;
|
|
532
|
-
readonly __wbg_get_permissionpolicyset_updateGroupNamePolicy: (a: number) => number;
|
|
533
|
-
readonly __wbg_set_permissionpolicyset_updateGroupNamePolicy: (a: number, b: number) => void;
|
|
534
|
-
readonly __wbg_get_permissionpolicyset_updateGroupDescriptionPolicy: (a: number) => number;
|
|
535
|
-
readonly __wbg_set_permissionpolicyset_updateGroupDescriptionPolicy: (a: number, b: number) => void;
|
|
536
|
-
readonly __wbg_get_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number) => number;
|
|
537
|
-
readonly __wbg_set_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number, b: number) => void;
|
|
538
|
-
readonly __wbg_get_permissionpolicyset_updateMessageDisappearingPolicy: (a: number) => number;
|
|
539
|
-
readonly __wbg_set_permissionpolicyset_updateMessageDisappearingPolicy: (a: number, b: number) => void;
|
|
540
|
-
readonly permissionpolicyset_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
541
|
-
readonly __wbg_grouppermissions_free: (a: number, b: number) => void;
|
|
542
|
-
readonly grouppermissions_policyType: (a: number) => [number, number, number];
|
|
543
|
-
readonly grouppermissions_policySet: (a: number) => [number, number, number];
|
|
544
|
-
readonly __wbg_streamcloser_free: (a: number, b: number) => void;
|
|
545
|
-
readonly streamcloser_end: (a: number) => void;
|
|
546
|
-
readonly streamcloser_endAndWait: (a: number) => any;
|
|
547
|
-
readonly streamcloser_waitForReady: (a: number) => any;
|
|
548
|
-
readonly streamcloser_isClosed: (a: number) => number;
|
|
549
|
-
readonly __wbg_client_free: (a: number, b: number) => void;
|
|
550
|
-
readonly __wbg_logoptions_free: (a: number, b: number) => void;
|
|
551
|
-
readonly __wbg_get_logoptions_structured: (a: number) => number;
|
|
552
|
-
readonly __wbg_set_logoptions_structured: (a: number, b: number) => void;
|
|
553
|
-
readonly __wbg_get_logoptions_performance: (a: number) => number;
|
|
554
|
-
readonly __wbg_set_logoptions_performance: (a: number, b: number) => void;
|
|
555
|
-
readonly __wbg_get_logoptions_level: (a: number) => number;
|
|
556
|
-
readonly __wbg_set_logoptions_level: (a: number, b: number) => void;
|
|
557
|
-
readonly logoptions_new: (a: number, b: number, c: number) => number;
|
|
558
|
-
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;
|
|
559
|
-
readonly client_accountAddress: (a: number) => [number, number];
|
|
560
|
-
readonly client_inboxId: (a: number) => [number, number];
|
|
561
|
-
readonly client_isRegistered: (a: number) => number;
|
|
562
|
-
readonly client_installationId: (a: number) => [number, number];
|
|
563
|
-
readonly client_installationIdBytes: (a: number) => any;
|
|
564
|
-
readonly client_canMessage: (a: number, b: number, c: number) => any;
|
|
565
|
-
readonly client_registerIdentity: (a: number) => any;
|
|
566
|
-
readonly client_sendHistorySyncRequest: (a: number) => any;
|
|
567
|
-
readonly client_sendConsentSyncRequest: (a: number) => any;
|
|
568
|
-
readonly client_findInboxIdByAddress: (a: number, b: number, c: number) => any;
|
|
569
|
-
readonly client_conversations: (a: number) => number;
|
|
570
640
|
readonly __wbg_contenttypeid_free: (a: number, b: number) => void;
|
|
571
|
-
readonly __wbg_get_contenttypeid_authorityId: (a: number) => [number, number];
|
|
572
|
-
readonly __wbg_set_contenttypeid_authorityId: (a: number, b: number, c: number) => void;
|
|
573
641
|
readonly __wbg_get_contenttypeid_typeId: (a: number) => [number, number];
|
|
574
642
|
readonly __wbg_set_contenttypeid_typeId: (a: number, b: number, c: number) => void;
|
|
575
643
|
readonly __wbg_get_contenttypeid_versionMajor: (a: number) => number;
|
|
@@ -605,38 +673,14 @@ export interface InitOutput {
|
|
|
605
673
|
readonly inboxstate_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
606
674
|
readonly client_inboxState: (a: number, b: number) => any;
|
|
607
675
|
readonly client_getLatestInboxState: (a: number, b: number, c: number) => any;
|
|
608
|
-
readonly
|
|
609
|
-
readonly
|
|
610
|
-
readonly __wbg_set_listmessagesoptions_sentAfterNs: (a: number, b: number, c: bigint) => void;
|
|
611
|
-
readonly __wbg_get_listmessagesoptions_limit: (a: number) => [number, bigint];
|
|
612
|
-
readonly __wbg_set_listmessagesoptions_limit: (a: number, b: number, c: bigint) => void;
|
|
613
|
-
readonly __wbg_get_listmessagesoptions_deliveryStatus: (a: number) => number;
|
|
614
|
-
readonly __wbg_set_listmessagesoptions_deliveryStatus: (a: number, b: number) => void;
|
|
615
|
-
readonly __wbg_get_listmessagesoptions_direction: (a: number) => number;
|
|
616
|
-
readonly __wbg_set_listmessagesoptions_direction: (a: number, b: number) => void;
|
|
617
|
-
readonly listmessagesoptions_new: (a: number, b: bigint, c: number, d: bigint, e: number, f: bigint, g: number, h: number) => number;
|
|
618
|
-
readonly __wbg_message_free: (a: number, b: number) => void;
|
|
619
|
-
readonly __wbg_get_message_id: (a: number) => [number, number];
|
|
620
|
-
readonly __wbg_set_message_id: (a: number, b: number, c: number) => void;
|
|
621
|
-
readonly __wbg_get_message_sentAtNs: (a: number) => bigint;
|
|
622
|
-
readonly __wbg_set_message_sentAtNs: (a: number, b: bigint) => void;
|
|
623
|
-
readonly __wbg_get_message_convoId: (a: number) => [number, number];
|
|
624
|
-
readonly __wbg_set_message_convoId: (a: number, b: number, c: number) => void;
|
|
625
|
-
readonly __wbg_get_message_senderInboxId: (a: number) => [number, number];
|
|
626
|
-
readonly __wbg_set_message_senderInboxId: (a: number, b: number, c: number) => void;
|
|
627
|
-
readonly __wbg_get_message_content: (a: number) => number;
|
|
628
|
-
readonly __wbg_set_message_content: (a: number, b: number) => void;
|
|
629
|
-
readonly __wbg_get_message_kind: (a: number) => number;
|
|
630
|
-
readonly __wbg_set_message_kind: (a: number, b: number) => void;
|
|
631
|
-
readonly __wbg_get_message_deliveryStatus: (a: number) => number;
|
|
632
|
-
readonly __wbg_set_message_deliveryStatus: (a: number, b: number) => void;
|
|
633
|
-
readonly message_new: (a: number, b: number, c: bigint, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => number;
|
|
634
|
-
readonly __wbg_set_listmessagesoptions_sentBeforeNs: (a: number, b: number, c: bigint) => void;
|
|
635
|
-
readonly __wbg_get_inboxstate_inboxId: (a: number) => [number, number];
|
|
636
|
-
readonly __wbg_get_inboxstate_recoveryAddress: (a: number) => [number, number];
|
|
637
|
-
readonly __wbg_get_listmessagesoptions_sentBeforeNs: (a: number) => [number, bigint];
|
|
676
|
+
readonly __wbg_set_groupmember_inboxId: (a: number, b: number, c: number) => void;
|
|
677
|
+
readonly __wbg_set_contenttypeid_authorityId: (a: number, b: number, c: number) => void;
|
|
638
678
|
readonly __wbg_set_inboxstate_inboxId: (a: number, b: number, c: number) => void;
|
|
639
679
|
readonly __wbg_set_inboxstate_recoveryAddress: (a: number, b: number, c: number) => void;
|
|
680
|
+
readonly __wbg_get_groupmember_inboxId: (a: number) => [number, number];
|
|
681
|
+
readonly __wbg_get_contenttypeid_authorityId: (a: number) => [number, number];
|
|
682
|
+
readonly __wbg_get_inboxstate_inboxId: (a: number) => [number, number];
|
|
683
|
+
readonly __wbg_get_inboxstate_recoveryAddress: (a: number) => [number, number];
|
|
640
684
|
readonly __wbg_version_free: (a: number, b: number) => void;
|
|
641
685
|
readonly __wbg_intounderlyingsource_free: (a: number, b: number) => void;
|
|
642
686
|
readonly intounderlyingsource_pull: (a: number, b: any) => any;
|
|
@@ -653,15 +697,16 @@ export interface InitOutput {
|
|
|
653
697
|
readonly intounderlyingbytesource_cancel: (a: number) => void;
|
|
654
698
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
655
699
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
656
|
-
readonly __wbindgen_export_2: WebAssembly.Table;
|
|
657
700
|
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
658
701
|
readonly __wbindgen_exn_store: (a: number) => void;
|
|
659
702
|
readonly __externref_table_alloc: () => number;
|
|
703
|
+
readonly __wbindgen_export_5: WebAssembly.Table;
|
|
660
704
|
readonly __wbindgen_export_6: WebAssembly.Table;
|
|
661
705
|
readonly __externref_drop_slice: (a: number, b: number) => void;
|
|
662
706
|
readonly __externref_table_dealloc: (a: number) => void;
|
|
663
|
-
readonly
|
|
664
|
-
readonly
|
|
707
|
+
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hb21f8cddfb9e179d: (a: number, b: number) => void;
|
|
708
|
+
readonly closure2971_externref_shim: (a: number, b: number, c: any) => void;
|
|
709
|
+
readonly closure3993_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
665
710
|
readonly __wbindgen_start: () => void;
|
|
666
711
|
}
|
|
667
712
|
|