@xmtp/wasm-bindings 0.0.14 → 0.0.16
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/README.md +5 -0
- package/dist/bindings_wasm.d.ts +197 -144
- package/dist/bindings_wasm.js +865 -383
- package/dist/bindings_wasm_bg.wasm +0 -0
- package/dist/bindings_wasm_bg.wasm.d.ts +146 -118
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -8,3 +8,8 @@
|
|
|
8
8
|
- `yarn`: Installs all dependencies (required before building)
|
|
9
9
|
- `yarn build`: Build a release version of the WASM bindings for the current platform
|
|
10
10
|
- `yarn lint`: Run cargo clippy and fmt checks
|
|
11
|
+
- `yarn check:macos`: Run cargo check for macOS (requires Homebrew and `llvm` to be installed)
|
|
12
|
+
|
|
13
|
+
# Publishing
|
|
14
|
+
|
|
15
|
+
To release a new version of the bindings, update the version in `package.json` with the appropriate semver value and add an entry to the CHANGELOG.md file. Once merged, manually trigger the `Release WASM Bindings` workflow to build and publish the bindings.
|
package/dist/bindings_wasm.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
export function
|
|
3
|
+
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>;
|
|
4
|
+
export function getInboxIdForAddress(host: string, account_address: string): Promise<string | undefined>;
|
|
4
5
|
export function generateInboxId(account_address: string): string;
|
|
5
6
|
export function verifySignedWithPublicKey(signature_text: string, signature_bytes: Uint8Array, public_key: Uint8Array): void;
|
|
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>;
|
|
7
7
|
export enum ConsentEntityType {
|
|
8
8
|
GroupId = 0,
|
|
9
9
|
InboxId = 1,
|
|
@@ -87,22 +87,6 @@ export class Client {
|
|
|
87
87
|
free(): void;
|
|
88
88
|
setConsentStates(records: Consent[]): Promise<void>;
|
|
89
89
|
getConsentState(entity_type: ConsentEntityType, entity: string): Promise<ConsentState>;
|
|
90
|
-
createInboxSignatureText(): string;
|
|
91
|
-
addWalletSignatureText(new_wallet_address: string): Promise<string>;
|
|
92
|
-
revokeWalletSignatureText(wallet_address: string): Promise<string>;
|
|
93
|
-
revokeAllOtherInstallationsSignatureText(): Promise<string>;
|
|
94
|
-
revokeInstallationsSignatureText(installation_ids: Uint8Array[]): Promise<string>;
|
|
95
|
-
addSignature(signature_type: SignatureRequestType, signature_bytes: Uint8Array): Promise<void>;
|
|
96
|
-
addScwSignature(signature_type: SignatureRequestType, signature_bytes: Uint8Array, chain_id: bigint, block_number?: bigint | null): Promise<void>;
|
|
97
|
-
applySignatureRequests(): Promise<void>;
|
|
98
|
-
signWithInstallationKey(signature_text: string): Uint8Array;
|
|
99
|
-
verifySignedWithInstallationKey(signature_text: string, signature_bytes: Uint8Array): void;
|
|
100
|
-
canMessage(account_addresses: string[]): Promise<any>;
|
|
101
|
-
registerIdentity(): Promise<void>;
|
|
102
|
-
sendHistorySyncRequest(): Promise<void>;
|
|
103
|
-
sendConsentSyncRequest(): Promise<void>;
|
|
104
|
-
findInboxIdByAddress(address: string): Promise<string>;
|
|
105
|
-
conversations(): Conversations;
|
|
106
90
|
/**
|
|
107
91
|
*
|
|
108
92
|
* * Get the client's inbox state.
|
|
@@ -113,6 +97,22 @@ export class Client {
|
|
|
113
97
|
*/
|
|
114
98
|
inboxState(refresh_from_network: boolean): Promise<InboxState>;
|
|
115
99
|
getLatestInboxState(inbox_id: string): Promise<InboxState>;
|
|
100
|
+
canMessage(account_addresses: string[]): Promise<any>;
|
|
101
|
+
registerIdentity(): Promise<void>;
|
|
102
|
+
sendHistorySyncRequest(): Promise<void>;
|
|
103
|
+
sendConsentSyncRequest(): Promise<void>;
|
|
104
|
+
findInboxIdByAddress(address: string): Promise<string | undefined>;
|
|
105
|
+
conversations(): Conversations;
|
|
106
|
+
createInboxSignatureText(): string | undefined;
|
|
107
|
+
addWalletSignatureText(new_wallet_address: string): Promise<string>;
|
|
108
|
+
revokeWalletSignatureText(wallet_address: string): Promise<string>;
|
|
109
|
+
revokeAllOtherInstallationsSignatureText(): Promise<string>;
|
|
110
|
+
revokeInstallationsSignatureText(installation_ids: Uint8Array[]): Promise<string>;
|
|
111
|
+
addSignature(signature_type: SignatureRequestType, signature_bytes: Uint8Array): Promise<void>;
|
|
112
|
+
addScwSignature(signature_type: SignatureRequestType, signature_bytes: Uint8Array, chain_id: bigint, block_number?: bigint | null): Promise<void>;
|
|
113
|
+
applySignatureRequests(): Promise<void>;
|
|
114
|
+
signWithInstallationKey(signature_text: string): Uint8Array;
|
|
115
|
+
verifySignedWithInstallationKey(signature_text: string, signature_bytes: Uint8Array): void;
|
|
116
116
|
readonly accountAddress: string;
|
|
117
117
|
readonly inboxId: string;
|
|
118
118
|
readonly isRegistered: boolean;
|
|
@@ -178,17 +178,30 @@ export class Conversation {
|
|
|
178
178
|
groupMetadata(): Promise<GroupMetadata>;
|
|
179
179
|
dmPeerInboxId(): string;
|
|
180
180
|
updatePermissionPolicy(permission_update_type: PermissionUpdateType, permission_policy_option: PermissionPolicy, metadata_field?: MetadataField | null): Promise<void>;
|
|
181
|
+
updateMessageDisappearingSettings(settings: MessageDisappearingSettings): Promise<void>;
|
|
182
|
+
removeMessageDisappearingSettings(): Promise<void>;
|
|
183
|
+
messageDisappearingSettings(): MessageDisappearingSettings | undefined;
|
|
184
|
+
isMessageDisappearingEnabled(): boolean;
|
|
185
|
+
}
|
|
186
|
+
export class ConversationListItem {
|
|
187
|
+
free(): void;
|
|
188
|
+
constructor(conversation: Conversation, last_message?: Message | null);
|
|
189
|
+
conversation: Conversation;
|
|
190
|
+
get lastMessage(): Message | undefined;
|
|
191
|
+
set lastMessage(value: Message | null | undefined);
|
|
181
192
|
}
|
|
182
193
|
export class Conversations {
|
|
183
194
|
private constructor();
|
|
184
195
|
free(): void;
|
|
185
196
|
createGroup(account_addresses: string[], options?: CreateGroupOptions | null): Promise<Conversation>;
|
|
186
|
-
|
|
197
|
+
createGroupByInboxIds(inbox_ids: string[], options?: CreateGroupOptions | null): Promise<Conversation>;
|
|
198
|
+
createDm(account_address: string, options?: CreateDMOptions | null): Promise<Conversation>;
|
|
199
|
+
createDmByInboxId(inbox_id: string, options?: CreateDMOptions | null): Promise<Conversation>;
|
|
187
200
|
findGroupById(group_id: string): Conversation;
|
|
188
201
|
findDmByTargetInboxId(target_inbox_id: string): Conversation;
|
|
189
202
|
findMessageById(message_id: string): Message;
|
|
190
203
|
sync(): Promise<void>;
|
|
191
|
-
syncAllConversations(): Promise<number>;
|
|
204
|
+
syncAllConversations(consent_states?: any[] | null): Promise<number>;
|
|
192
205
|
list(opts?: ListConversationsOptions | null): Array<any>;
|
|
193
206
|
listGroups(opts?: ListConversationsOptions | null): Array<any>;
|
|
194
207
|
listDms(opts?: ListConversationsOptions | null): Array<any>;
|
|
@@ -198,16 +211,22 @@ export class Conversations {
|
|
|
198
211
|
streamDms(callback: any): StreamCloser;
|
|
199
212
|
streamAllMessages(callback: any, conversation_type?: ConversationType | null): StreamCloser;
|
|
200
213
|
}
|
|
214
|
+
export class CreateDMOptions {
|
|
215
|
+
free(): void;
|
|
216
|
+
constructor(message_disappearing_settings?: MessageDisappearingSettings | null);
|
|
217
|
+
get messageDisappearingSettings(): MessageDisappearingSettings | undefined;
|
|
218
|
+
set messageDisappearingSettings(value: MessageDisappearingSettings | null | undefined);
|
|
219
|
+
}
|
|
201
220
|
export class CreateGroupOptions {
|
|
202
221
|
free(): void;
|
|
203
222
|
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
223
|
get permissions(): GroupPermissionsOptions | undefined;
|
|
205
224
|
set permissions(value: GroupPermissionsOptions | null | undefined);
|
|
206
|
-
get groupName(): string;
|
|
225
|
+
get groupName(): string | undefined;
|
|
207
226
|
set groupName(value: string | null | undefined);
|
|
208
|
-
get groupImageUrlSquare(): string;
|
|
227
|
+
get groupImageUrlSquare(): string | undefined;
|
|
209
228
|
set groupImageUrlSquare(value: string | null | undefined);
|
|
210
|
-
get groupDescription(): string;
|
|
229
|
+
get groupDescription(): string | undefined;
|
|
211
230
|
set groupDescription(value: string | null | undefined);
|
|
212
231
|
get customPermissionPolicySet(): PermissionPolicySet | undefined;
|
|
213
232
|
set customPermissionPolicySet(value: PermissionPolicySet | null | undefined);
|
|
@@ -220,7 +239,7 @@ export class EncodedContent {
|
|
|
220
239
|
get type(): ContentTypeId | undefined;
|
|
221
240
|
set type(value: ContentTypeId | null | undefined);
|
|
222
241
|
parameters: any;
|
|
223
|
-
get fallback(): string;
|
|
242
|
+
get fallback(): string | undefined;
|
|
224
243
|
set fallback(value: string | null | undefined);
|
|
225
244
|
get compression(): number | undefined;
|
|
226
245
|
set compression(value: number | null | undefined);
|
|
@@ -293,15 +312,19 @@ export class IntoUnderlyingSource {
|
|
|
293
312
|
}
|
|
294
313
|
export class ListConversationsOptions {
|
|
295
314
|
free(): void;
|
|
296
|
-
constructor(allowed_states
|
|
315
|
+
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
316
|
get allowedStates(): any[] | undefined;
|
|
298
317
|
set allowedStates(value: any[] | null | undefined);
|
|
318
|
+
get consentStates(): any[] | undefined;
|
|
319
|
+
set consentStates(value: any[] | null | undefined);
|
|
299
320
|
get conversationType(): ConversationType | undefined;
|
|
300
321
|
set conversationType(value: ConversationType | null | undefined);
|
|
301
322
|
get createdAfterNs(): bigint | undefined;
|
|
302
323
|
set createdAfterNs(value: bigint | null | undefined);
|
|
303
324
|
get createdBeforeNs(): bigint | undefined;
|
|
304
325
|
set createdBeforeNs(value: bigint | null | undefined);
|
|
326
|
+
includeDuplicateDms: boolean;
|
|
327
|
+
includeSyncGroups: boolean;
|
|
305
328
|
get limit(): bigint | undefined;
|
|
306
329
|
set limit(value: bigint | null | undefined);
|
|
307
330
|
}
|
|
@@ -354,8 +377,10 @@ export class Message {
|
|
|
354
377
|
deliveryStatus: DeliveryStatus;
|
|
355
378
|
}
|
|
356
379
|
export class MessageDisappearingSettings {
|
|
357
|
-
private constructor();
|
|
358
380
|
free(): void;
|
|
381
|
+
constructor(from_ns: bigint, in_ns: bigint);
|
|
382
|
+
fromNs: bigint;
|
|
383
|
+
inNs: bigint;
|
|
359
384
|
}
|
|
360
385
|
export class PermissionPolicySet {
|
|
361
386
|
free(): void;
|
|
@@ -398,55 +423,6 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
|
|
|
398
423
|
|
|
399
424
|
export interface InitOutput {
|
|
400
425
|
readonly memory: WebAssembly.Memory;
|
|
401
|
-
readonly __wbg_listconversationsoptions_free: (a: number, b: number) => void;
|
|
402
|
-
readonly __wbg_get_listconversationsoptions_allowedStates: (a: number) => [number, number];
|
|
403
|
-
readonly __wbg_set_listconversationsoptions_allowedStates: (a: number, b: number, c: number) => void;
|
|
404
|
-
readonly __wbg_get_listconversationsoptions_conversationType: (a: number) => number;
|
|
405
|
-
readonly __wbg_set_listconversationsoptions_conversationType: (a: number, b: number) => void;
|
|
406
|
-
readonly __wbg_get_listconversationsoptions_createdAfterNs: (a: number) => [number, bigint];
|
|
407
|
-
readonly __wbg_set_listconversationsoptions_createdAfterNs: (a: number, b: number, c: bigint) => void;
|
|
408
|
-
readonly __wbg_get_listconversationsoptions_createdBeforeNs: (a: number) => [number, bigint];
|
|
409
|
-
readonly __wbg_set_listconversationsoptions_createdBeforeNs: (a: number, b: number, c: bigint) => void;
|
|
410
|
-
readonly __wbg_get_listconversationsoptions_limit: (a: number) => [number, bigint];
|
|
411
|
-
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: bigint, f: number, g: bigint, h: number, i: bigint) => number;
|
|
413
|
-
readonly __wbg_creategroupoptions_free: (a: number, b: number) => void;
|
|
414
|
-
readonly __wbg_get_creategroupoptions_permissions: (a: number) => number;
|
|
415
|
-
readonly __wbg_set_creategroupoptions_permissions: (a: number, b: number) => void;
|
|
416
|
-
readonly __wbg_get_creategroupoptions_groupName: (a: number) => [number, number];
|
|
417
|
-
readonly __wbg_set_creategroupoptions_groupName: (a: number, b: number, c: number) => void;
|
|
418
|
-
readonly __wbg_get_creategroupoptions_groupImageUrlSquare: (a: number) => [number, number];
|
|
419
|
-
readonly __wbg_set_creategroupoptions_groupImageUrlSquare: (a: number, b: number, c: number) => void;
|
|
420
|
-
readonly __wbg_get_creategroupoptions_groupDescription: (a: number) => [number, number];
|
|
421
|
-
readonly __wbg_set_creategroupoptions_groupDescription: (a: number, b: number, c: number) => void;
|
|
422
|
-
readonly __wbg_get_creategroupoptions_customPermissionPolicySet: (a: number) => number;
|
|
423
|
-
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
|
-
readonly creategroupoptions_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => number;
|
|
427
|
-
readonly __wbg_hmackey_free: (a: number, b: number) => void;
|
|
428
|
-
readonly __wbg_get_hmackey_key: (a: number) => [number, number];
|
|
429
|
-
readonly __wbg_set_hmackey_key: (a: number, b: number, c: number) => void;
|
|
430
|
-
readonly __wbg_get_hmackey_epoch: (a: number) => bigint;
|
|
431
|
-
readonly __wbg_set_hmackey_epoch: (a: number, b: bigint) => void;
|
|
432
|
-
readonly __wbg_conversations_free: (a: number, b: number) => void;
|
|
433
|
-
readonly conversations_createGroup: (a: number, b: number, c: number, d: number) => any;
|
|
434
|
-
readonly conversations_createDm: (a: number, b: number, c: number) => any;
|
|
435
|
-
readonly conversations_findGroupById: (a: number, b: number, c: number) => [number, number, number];
|
|
436
|
-
readonly conversations_findDmByTargetInboxId: (a: number, b: number, c: number) => [number, number, number];
|
|
437
|
-
readonly conversations_findMessageById: (a: number, b: number, c: number) => [number, number, number];
|
|
438
|
-
readonly conversations_sync: (a: number) => any;
|
|
439
|
-
readonly conversations_syncAllConversations: (a: number) => any;
|
|
440
|
-
readonly conversations_list: (a: number, b: number) => [number, number, number];
|
|
441
|
-
readonly conversations_listGroups: (a: number, b: number) => [number, number, number];
|
|
442
|
-
readonly conversations_listDms: (a: number, b: number) => [number, number, number];
|
|
443
|
-
readonly conversations_getHmacKeys: (a: number) => [number, number, number];
|
|
444
|
-
readonly conversations_stream: (a: number, b: any, c: number) => [number, number, number];
|
|
445
|
-
readonly conversations_streamGroups: (a: number, b: any) => [number, number, number];
|
|
446
|
-
readonly conversations_streamDms: (a: number, b: any) => [number, number, number];
|
|
447
|
-
readonly conversations_streamAllMessages: (a: number, b: any, c: number) => [number, number, number];
|
|
448
|
-
readonly getInboxIdForAddress: (a: number, b: number, c: number, d: number) => any;
|
|
449
|
-
readonly generateInboxId: (a: number, b: number) => [number, number, number, number];
|
|
450
426
|
readonly __wbg_consent_free: (a: number, b: number) => void;
|
|
451
427
|
readonly __wbg_get_consent_entityType: (a: number) => number;
|
|
452
428
|
readonly __wbg_set_consent_entityType: (a: number, b: number) => void;
|
|
@@ -460,7 +436,6 @@ export interface InitOutput {
|
|
|
460
436
|
readonly conversation_consentState: (a: number) => [number, number, number];
|
|
461
437
|
readonly conversation_updateConsentState: (a: number, b: number) => [number, number];
|
|
462
438
|
readonly __wbg_groupmetadata_free: (a: number, b: number) => void;
|
|
463
|
-
readonly __wbg_messagedisappearingsettings_free: (a: number, b: number) => void;
|
|
464
439
|
readonly groupmetadata_creatorInboxId: (a: number) => [number, number];
|
|
465
440
|
readonly groupmetadata_conversationType: (a: number) => [number, number];
|
|
466
441
|
readonly __wbg_groupmember_free: (a: number, b: number) => void;
|
|
@@ -507,45 +482,32 @@ export interface InitOutput {
|
|
|
507
482
|
readonly conversation_groupMetadata: (a: number) => any;
|
|
508
483
|
readonly conversation_dmPeerInboxId: (a: number) => [number, number, number, number];
|
|
509
484
|
readonly conversation_updatePermissionPolicy: (a: number, b: number, c: number, d: number) => any;
|
|
510
|
-
readonly
|
|
511
|
-
readonly
|
|
512
|
-
readonly
|
|
513
|
-
readonly
|
|
514
|
-
readonly
|
|
515
|
-
readonly
|
|
516
|
-
readonly
|
|
517
|
-
readonly
|
|
518
|
-
readonly
|
|
519
|
-
readonly
|
|
520
|
-
readonly
|
|
521
|
-
readonly
|
|
485
|
+
readonly conversation_updateMessageDisappearingSettings: (a: number, b: number) => any;
|
|
486
|
+
readonly conversation_removeMessageDisappearingSettings: (a: number) => any;
|
|
487
|
+
readonly conversation_messageDisappearingSettings: (a: number) => [number, number, number];
|
|
488
|
+
readonly conversation_isMessageDisappearingEnabled: (a: number) => [number, number, number];
|
|
489
|
+
readonly __wbg_installation_free: (a: number, b: number) => void;
|
|
490
|
+
readonly __wbg_get_installation_bytes: (a: number) => any;
|
|
491
|
+
readonly __wbg_set_installation_bytes: (a: number, b: any) => void;
|
|
492
|
+
readonly __wbg_get_installation_id: (a: number) => [number, number];
|
|
493
|
+
readonly __wbg_set_installation_id: (a: number, b: number, c: number) => void;
|
|
494
|
+
readonly __wbg_get_installation_clientTimestampNs: (a: number) => [number, bigint];
|
|
495
|
+
readonly __wbg_set_installation_clientTimestampNs: (a: number, b: number, c: bigint) => void;
|
|
496
|
+
readonly installation_new: (a: any, b: number, c: number, d: number, e: bigint) => number;
|
|
497
|
+
readonly __wbg_inboxstate_free: (a: number, b: number) => void;
|
|
498
|
+
readonly __wbg_get_inboxstate_recoveryAddress: (a: number) => [number, number];
|
|
499
|
+
readonly __wbg_set_inboxstate_recoveryAddress: (a: number, b: number, c: number) => void;
|
|
500
|
+
readonly __wbg_get_inboxstate_installations: (a: number) => [number, number];
|
|
501
|
+
readonly __wbg_set_inboxstate_installations: (a: number, b: number, c: number) => void;
|
|
502
|
+
readonly __wbg_get_inboxstate_accountAddresses: (a: number) => [number, number];
|
|
503
|
+
readonly __wbg_set_inboxstate_accountAddresses: (a: number, b: number, c: number) => void;
|
|
504
|
+
readonly inboxstate_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
505
|
+
readonly client_inboxState: (a: number, b: number) => any;
|
|
506
|
+
readonly client_getLatestInboxState: (a: number, b: number, c: number) => any;
|
|
522
507
|
readonly __wbg_set_groupmember_inboxId: (a: number, b: number, c: number) => void;
|
|
523
|
-
readonly
|
|
524
|
-
readonly
|
|
525
|
-
readonly
|
|
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;
|
|
508
|
+
readonly __wbg_set_inboxstate_inboxId: (a: number, b: number, c: number) => void;
|
|
509
|
+
readonly __wbg_get_groupmember_inboxId: (a: number) => [number, number];
|
|
510
|
+
readonly __wbg_get_inboxstate_inboxId: (a: number) => [number, number];
|
|
549
511
|
readonly __wbg_client_free: (a: number, b: number) => void;
|
|
550
512
|
readonly __wbg_logoptions_free: (a: number, b: number) => void;
|
|
551
513
|
readonly __wbg_get_logoptions_structured: (a: number) => number;
|
|
@@ -567,6 +529,19 @@ export interface InitOutput {
|
|
|
567
529
|
readonly client_sendConsentSyncRequest: (a: number) => any;
|
|
568
530
|
readonly client_findInboxIdByAddress: (a: number, b: number, c: number) => any;
|
|
569
531
|
readonly client_conversations: (a: number) => number;
|
|
532
|
+
readonly getInboxIdForAddress: (a: number, b: number, c: number, d: number) => any;
|
|
533
|
+
readonly generateInboxId: (a: number, b: number) => [number, number, number, number];
|
|
534
|
+
readonly verifySignedWithPublicKey: (a: number, b: number, c: any, d: any) => [number, number];
|
|
535
|
+
readonly client_createInboxSignatureText: (a: number) => [number, number, number, number];
|
|
536
|
+
readonly client_addWalletSignatureText: (a: number, b: number, c: number) => any;
|
|
537
|
+
readonly client_revokeWalletSignatureText: (a: number, b: number, c: number) => any;
|
|
538
|
+
readonly client_revokeAllOtherInstallationsSignatureText: (a: number) => any;
|
|
539
|
+
readonly client_revokeInstallationsSignatureText: (a: number, b: number, c: number) => any;
|
|
540
|
+
readonly client_addSignature: (a: number, b: number, c: any) => any;
|
|
541
|
+
readonly client_addScwSignature: (a: number, b: number, c: any, d: bigint, e: number, f: bigint) => any;
|
|
542
|
+
readonly client_applySignatureRequests: (a: number) => any;
|
|
543
|
+
readonly client_signWithInstallationKey: (a: number, b: number, c: number) => [number, number, number];
|
|
544
|
+
readonly client_verifySignedWithInstallationKey: (a: number, b: number, c: number, d: any) => [number, number];
|
|
570
545
|
readonly __wbg_contenttypeid_free: (a: number, b: number) => void;
|
|
571
546
|
readonly __wbg_get_contenttypeid_authorityId: (a: number) => [number, number];
|
|
572
547
|
readonly __wbg_set_contenttypeid_authorityId: (a: number, b: number, c: number) => void;
|
|
@@ -589,27 +564,79 @@ export interface InitOutput {
|
|
|
589
564
|
readonly __wbg_get_encodedcontent_content: (a: number) => any;
|
|
590
565
|
readonly __wbg_set_encodedcontent_content: (a: number, b: any) => void;
|
|
591
566
|
readonly encodedcontent_new: (a: number, b: any, c: number, d: number, e: number, f: any) => number;
|
|
592
|
-
readonly
|
|
593
|
-
readonly
|
|
594
|
-
readonly
|
|
595
|
-
readonly
|
|
596
|
-
readonly
|
|
597
|
-
readonly
|
|
598
|
-
readonly
|
|
599
|
-
readonly
|
|
600
|
-
readonly
|
|
601
|
-
readonly
|
|
602
|
-
readonly
|
|
603
|
-
readonly
|
|
604
|
-
readonly
|
|
605
|
-
readonly
|
|
606
|
-
readonly
|
|
607
|
-
readonly
|
|
567
|
+
readonly __wbg_streamcloser_free: (a: number, b: number) => void;
|
|
568
|
+
readonly streamcloser_end: (a: number) => void;
|
|
569
|
+
readonly streamcloser_endAndWait: (a: number) => any;
|
|
570
|
+
readonly streamcloser_waitForReady: (a: number) => any;
|
|
571
|
+
readonly streamcloser_isClosed: (a: number) => number;
|
|
572
|
+
readonly __wbg_listconversationsoptions_free: (a: number, b: number) => void;
|
|
573
|
+
readonly __wbg_get_listconversationsoptions_allowedStates: (a: number) => [number, number];
|
|
574
|
+
readonly __wbg_set_listconversationsoptions_allowedStates: (a: number, b: number, c: number) => void;
|
|
575
|
+
readonly __wbg_get_listconversationsoptions_consentStates: (a: number) => [number, number];
|
|
576
|
+
readonly __wbg_set_listconversationsoptions_consentStates: (a: number, b: number, c: number) => void;
|
|
577
|
+
readonly __wbg_get_listconversationsoptions_conversationType: (a: number) => number;
|
|
578
|
+
readonly __wbg_set_listconversationsoptions_conversationType: (a: number, b: number) => void;
|
|
579
|
+
readonly __wbg_get_listconversationsoptions_createdAfterNs: (a: number) => [number, bigint];
|
|
580
|
+
readonly __wbg_set_listconversationsoptions_createdAfterNs: (a: number, b: number, c: bigint) => void;
|
|
581
|
+
readonly __wbg_get_listconversationsoptions_createdBeforeNs: (a: number) => [number, bigint];
|
|
582
|
+
readonly __wbg_set_listconversationsoptions_createdBeforeNs: (a: number, b: number, c: bigint) => void;
|
|
583
|
+
readonly __wbg_get_listconversationsoptions_includeDuplicateDms: (a: number) => number;
|
|
584
|
+
readonly __wbg_set_listconversationsoptions_includeDuplicateDms: (a: number, b: number) => void;
|
|
585
|
+
readonly __wbg_get_listconversationsoptions_includeSyncGroups: (a: number) => number;
|
|
586
|
+
readonly __wbg_set_listconversationsoptions_includeSyncGroups: (a: number, b: number) => void;
|
|
587
|
+
readonly __wbg_get_listconversationsoptions_limit: (a: number) => [number, bigint];
|
|
588
|
+
readonly __wbg_set_listconversationsoptions_limit: (a: number, b: number, c: bigint) => void;
|
|
589
|
+
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;
|
|
590
|
+
readonly __wbg_messagedisappearingsettings_free: (a: number, b: number) => void;
|
|
591
|
+
readonly __wbg_get_messagedisappearingsettings_inNs: (a: number) => bigint;
|
|
592
|
+
readonly __wbg_set_messagedisappearingsettings_inNs: (a: number, b: bigint) => void;
|
|
593
|
+
readonly messagedisappearingsettings_new: (a: bigint, b: bigint) => number;
|
|
594
|
+
readonly __wbg_creategroupoptions_free: (a: number, b: number) => void;
|
|
595
|
+
readonly __wbg_get_creategroupoptions_permissions: (a: number) => number;
|
|
596
|
+
readonly __wbg_set_creategroupoptions_permissions: (a: number, b: number) => void;
|
|
597
|
+
readonly __wbg_get_creategroupoptions_groupName: (a: number) => [number, number];
|
|
598
|
+
readonly __wbg_set_creategroupoptions_groupName: (a: number, b: number, c: number) => void;
|
|
599
|
+
readonly __wbg_get_creategroupoptions_groupImageUrlSquare: (a: number) => [number, number];
|
|
600
|
+
readonly __wbg_set_creategroupoptions_groupImageUrlSquare: (a: number, b: number, c: number) => void;
|
|
601
|
+
readonly __wbg_get_creategroupoptions_groupDescription: (a: number) => [number, number];
|
|
602
|
+
readonly __wbg_set_creategroupoptions_groupDescription: (a: number, b: number, c: number) => void;
|
|
603
|
+
readonly __wbg_get_creategroupoptions_customPermissionPolicySet: (a: number) => number;
|
|
604
|
+
readonly __wbg_set_creategroupoptions_customPermissionPolicySet: (a: number, b: number) => void;
|
|
605
|
+
readonly creategroupoptions_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => number;
|
|
606
|
+
readonly __wbg_createdmoptions_free: (a: number, b: number) => void;
|
|
607
|
+
readonly __wbg_get_createdmoptions_messageDisappearingSettings: (a: number) => number;
|
|
608
|
+
readonly __wbg_set_createdmoptions_messageDisappearingSettings: (a: number, b: number) => void;
|
|
609
|
+
readonly createdmoptions_new: (a: number) => number;
|
|
610
|
+
readonly __wbg_hmackey_free: (a: number, b: number) => void;
|
|
611
|
+
readonly __wbg_get_hmackey_key: (a: number) => [number, number];
|
|
612
|
+
readonly __wbg_set_hmackey_key: (a: number, b: number, c: number) => void;
|
|
613
|
+
readonly __wbg_get_hmackey_epoch: (a: number) => bigint;
|
|
614
|
+
readonly __wbg_set_hmackey_epoch: (a: number, b: bigint) => void;
|
|
615
|
+
readonly __wbg_conversationlistitem_free: (a: number, b: number) => void;
|
|
616
|
+
readonly __wbg_get_conversationlistitem_conversation: (a: number) => number;
|
|
617
|
+
readonly __wbg_set_conversationlistitem_conversation: (a: number, b: number) => void;
|
|
618
|
+
readonly __wbg_get_conversationlistitem_lastMessage: (a: number) => number;
|
|
619
|
+
readonly __wbg_set_conversationlistitem_lastMessage: (a: number, b: number) => void;
|
|
620
|
+
readonly conversationlistitem_new: (a: number, b: number) => number;
|
|
621
|
+
readonly __wbg_conversations_free: (a: number, b: number) => void;
|
|
622
|
+
readonly conversations_createGroup: (a: number, b: number, c: number, d: number) => any;
|
|
623
|
+
readonly conversations_createGroupByInboxIds: (a: number, b: number, c: number, d: number) => any;
|
|
624
|
+
readonly conversations_createDm: (a: number, b: number, c: number, d: number) => any;
|
|
625
|
+
readonly conversations_createDmByInboxId: (a: number, b: number, c: number, d: number) => any;
|
|
626
|
+
readonly conversations_findGroupById: (a: number, b: number, c: number) => [number, number, number];
|
|
627
|
+
readonly conversations_findDmByTargetInboxId: (a: number, b: number, c: number) => [number, number, number];
|
|
628
|
+
readonly conversations_findMessageById: (a: number, b: number, c: number) => [number, number, number];
|
|
629
|
+
readonly conversations_sync: (a: number) => any;
|
|
630
|
+
readonly conversations_syncAllConversations: (a: number, b: number, c: number) => any;
|
|
631
|
+
readonly conversations_list: (a: number, b: number) => [number, number, number];
|
|
632
|
+
readonly conversations_listGroups: (a: number, b: number) => [number, number, number];
|
|
633
|
+
readonly conversations_listDms: (a: number, b: number) => [number, number, number];
|
|
634
|
+
readonly conversations_getHmacKeys: (a: number) => [number, number, number];
|
|
635
|
+
readonly conversations_stream: (a: number, b: any, c: number) => [number, number, number];
|
|
636
|
+
readonly conversations_streamGroups: (a: number, b: any) => [number, number, number];
|
|
637
|
+
readonly conversations_streamDms: (a: number, b: any) => [number, number, number];
|
|
638
|
+
readonly conversations_streamAllMessages: (a: number, b: any, c: number) => [number, number, number];
|
|
608
639
|
readonly __wbg_listmessagesoptions_free: (a: number, b: number) => void;
|
|
609
|
-
readonly __wbg_get_listmessagesoptions_sentAfterNs: (a: number) => [number, bigint];
|
|
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
640
|
readonly __wbg_get_listmessagesoptions_deliveryStatus: (a: number) => number;
|
|
614
641
|
readonly __wbg_set_listmessagesoptions_deliveryStatus: (a: number, b: number) => void;
|
|
615
642
|
readonly __wbg_get_listmessagesoptions_direction: (a: number) => number;
|
|
@@ -618,8 +645,6 @@ export interface InitOutput {
|
|
|
618
645
|
readonly __wbg_message_free: (a: number, b: number) => void;
|
|
619
646
|
readonly __wbg_get_message_id: (a: number) => [number, number];
|
|
620
647
|
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
648
|
readonly __wbg_get_message_convoId: (a: number) => [number, number];
|
|
624
649
|
readonly __wbg_set_message_convoId: (a: number, b: number, c: number) => void;
|
|
625
650
|
readonly __wbg_get_message_senderInboxId: (a: number) => [number, number];
|
|
@@ -631,12 +656,39 @@ export interface InitOutput {
|
|
|
631
656
|
readonly __wbg_get_message_deliveryStatus: (a: number) => number;
|
|
632
657
|
readonly __wbg_set_message_deliveryStatus: (a: number, b: number) => void;
|
|
633
658
|
readonly message_new: (a: number, b: number, c: bigint, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => number;
|
|
659
|
+
readonly __wbg_permissionpolicyset_free: (a: number, b: number) => void;
|
|
660
|
+
readonly __wbg_get_permissionpolicyset_addMemberPolicy: (a: number) => number;
|
|
661
|
+
readonly __wbg_set_permissionpolicyset_addMemberPolicy: (a: number, b: number) => void;
|
|
662
|
+
readonly __wbg_get_permissionpolicyset_removeMemberPolicy: (a: number) => number;
|
|
663
|
+
readonly __wbg_set_permissionpolicyset_removeMemberPolicy: (a: number, b: number) => void;
|
|
664
|
+
readonly __wbg_get_permissionpolicyset_addAdminPolicy: (a: number) => number;
|
|
665
|
+
readonly __wbg_set_permissionpolicyset_addAdminPolicy: (a: number, b: number) => void;
|
|
666
|
+
readonly __wbg_get_permissionpolicyset_removeAdminPolicy: (a: number) => number;
|
|
667
|
+
readonly __wbg_set_permissionpolicyset_removeAdminPolicy: (a: number, b: number) => void;
|
|
668
|
+
readonly __wbg_get_permissionpolicyset_updateGroupNamePolicy: (a: number) => number;
|
|
669
|
+
readonly __wbg_set_permissionpolicyset_updateGroupNamePolicy: (a: number, b: number) => void;
|
|
670
|
+
readonly __wbg_get_permissionpolicyset_updateGroupDescriptionPolicy: (a: number) => number;
|
|
671
|
+
readonly __wbg_set_permissionpolicyset_updateGroupDescriptionPolicy: (a: number, b: number) => void;
|
|
672
|
+
readonly __wbg_get_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number) => number;
|
|
673
|
+
readonly __wbg_set_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number, b: number) => void;
|
|
674
|
+
readonly __wbg_get_permissionpolicyset_updateMessageDisappearingPolicy: (a: number) => number;
|
|
675
|
+
readonly __wbg_set_permissionpolicyset_updateMessageDisappearingPolicy: (a: number, b: number) => void;
|
|
676
|
+
readonly permissionpolicyset_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
677
|
+
readonly __wbg_grouppermissions_free: (a: number, b: number) => void;
|
|
678
|
+
readonly grouppermissions_policyType: (a: number) => [number, number, number];
|
|
679
|
+
readonly grouppermissions_policySet: (a: number) => [number, number, number];
|
|
680
|
+
readonly __wbg_get_messagedisappearingsettings_fromNs: (a: number) => bigint;
|
|
681
|
+
readonly __wbg_get_message_sentAtNs: (a: number) => bigint;
|
|
634
682
|
readonly __wbg_set_listmessagesoptions_sentBeforeNs: (a: number, b: number, c: bigint) => void;
|
|
635
|
-
readonly
|
|
636
|
-
readonly
|
|
683
|
+
readonly __wbg_set_listmessagesoptions_sentAfterNs: (a: number, b: number, c: bigint) => void;
|
|
684
|
+
readonly __wbg_set_listmessagesoptions_limit: (a: number, b: number, c: bigint) => void;
|
|
685
|
+
readonly __wbg_set_messagedisappearingsettings_fromNs: (a: number, b: bigint) => void;
|
|
686
|
+
readonly __wbg_set_message_sentAtNs: (a: number, b: bigint) => void;
|
|
687
|
+
readonly __wbg_set_creategroupoptions_messageDisappearingSettings: (a: number, b: number) => void;
|
|
688
|
+
readonly __wbg_get_creategroupoptions_messageDisappearingSettings: (a: number) => number;
|
|
637
689
|
readonly __wbg_get_listmessagesoptions_sentBeforeNs: (a: number) => [number, bigint];
|
|
638
|
-
readonly
|
|
639
|
-
readonly
|
|
690
|
+
readonly __wbg_get_listmessagesoptions_sentAfterNs: (a: number) => [number, bigint];
|
|
691
|
+
readonly __wbg_get_listmessagesoptions_limit: (a: number) => [number, bigint];
|
|
640
692
|
readonly __wbg_version_free: (a: number, b: number) => void;
|
|
641
693
|
readonly __wbg_intounderlyingsource_free: (a: number, b: number) => void;
|
|
642
694
|
readonly intounderlyingsource_pull: (a: number, b: any) => any;
|
|
@@ -653,15 +705,16 @@ export interface InitOutput {
|
|
|
653
705
|
readonly intounderlyingbytesource_cancel: (a: number) => void;
|
|
654
706
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
655
707
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
656
|
-
readonly __wbindgen_export_2: WebAssembly.Table;
|
|
657
708
|
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
658
709
|
readonly __wbindgen_exn_store: (a: number) => void;
|
|
659
710
|
readonly __externref_table_alloc: () => number;
|
|
711
|
+
readonly __wbindgen_export_5: WebAssembly.Table;
|
|
660
712
|
readonly __wbindgen_export_6: WebAssembly.Table;
|
|
661
|
-
readonly __externref_drop_slice: (a: number, b: number) => void;
|
|
662
713
|
readonly __externref_table_dealloc: (a: number) => void;
|
|
663
|
-
readonly
|
|
664
|
-
readonly
|
|
714
|
+
readonly __externref_drop_slice: (a: number, b: number) => void;
|
|
715
|
+
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hb21f8cddfb9e179d: (a: number, b: number) => void;
|
|
716
|
+
readonly closure2991_externref_shim: (a: number, b: number, c: any) => void;
|
|
717
|
+
readonly closure4013_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
665
718
|
readonly __wbindgen_start: () => void;
|
|
666
719
|
}
|
|
667
720
|
|