@xmtp/wasm-bindings 1.3.0-rc1 → 1.3.0-rc2
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 +113 -113
- package/dist/bindings_wasm.js +237 -237
- package/dist/bindings_wasm_bg.wasm +0 -0
- package/dist/bindings_wasm_bg.wasm.d.ts +96 -96
- package/dist/version.json +2 -2
- package/package.json +1 -1
package/dist/bindings_wasm.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
export function createClient(host: string, inbox_id: string, account_identifier: Identifier, db_path?: string | null, encryption_key?: Uint8Array | null, device_sync_server_url?: string | null, device_sync_worker_mode?: DeviceSyncWorkerMode | null, log_options?: LogOptions | null, allow_offline?: boolean | null, disable_events?: boolean | null): Promise<Client>;
|
|
4
|
-
export function getInboxIdForIdentifier(host: string, accountIdentifier: Identifier): Promise<string | undefined>;
|
|
5
|
-
export function generateInboxId(accountIdentifier: Identifier): string;
|
|
6
3
|
export function encodeMultiRemoteAttachment(multiRemoteAttachment: MultiRemoteAttachment): Uint8Array;
|
|
7
4
|
export function decodeMultiRemoteAttachment(bytes: Uint8Array): MultiRemoteAttachment;
|
|
8
5
|
export function encodeReaction(reaction: Reaction): Uint8Array;
|
|
9
6
|
export function decodeReaction(bytes: Uint8Array): Reaction;
|
|
7
|
+
export function getInboxIdForIdentifier(host: string, accountIdentifier: Identifier): Promise<string | undefined>;
|
|
8
|
+
export function generateInboxId(accountIdentifier: Identifier): string;
|
|
10
9
|
export function inboxStateFromInboxIds(host: string, inbox_ids: string[]): Promise<InboxState[]>;
|
|
11
10
|
export function verifySignedWithPublicKey(signature_text: string, signature_bytes: Uint8Array, public_key: Uint8Array): void;
|
|
12
11
|
export function revokeInstallationsSignatureRequest(host: string, recovery_identifier: Identifier, inbox_id: string, installation_ids: Uint8Array[]): Promise<SignatureRequestHandle>;
|
|
13
12
|
export function applySignatureRequest(host: string, signature_request: SignatureRequestHandle): Promise<void>;
|
|
13
|
+
export function createClient(host: string, inbox_id: string, account_identifier: Identifier, db_path?: string | null, encryption_key?: Uint8Array | null, device_sync_server_url?: string | null, device_sync_worker_mode?: DeviceSyncWorkerMode | null, log_options?: LogOptions | null, allow_offline?: boolean | null, disable_events?: boolean | null): Promise<Client>;
|
|
14
14
|
export enum ConsentEntityType {
|
|
15
15
|
GroupId = 0,
|
|
16
16
|
InboxId = 1,
|
|
@@ -131,20 +131,6 @@ export class ApiStats {
|
|
|
131
131
|
export class Client {
|
|
132
132
|
private constructor();
|
|
133
133
|
free(): void;
|
|
134
|
-
/**
|
|
135
|
-
* Output booleans should be zipped with the index of input identifiers
|
|
136
|
-
*/
|
|
137
|
-
canMessage(account_identifiers: Identifier[]): Promise<any>;
|
|
138
|
-
sendSyncRequest(): Promise<void>;
|
|
139
|
-
findInboxIdByIdentifier(identifier: Identifier): Promise<string | undefined>;
|
|
140
|
-
inboxStateFromInboxIds(inbox_ids: string[], refresh_from_network: boolean): Promise<InboxState[]>;
|
|
141
|
-
conversations(): Conversations;
|
|
142
|
-
syncPreferences(): Promise<number>;
|
|
143
|
-
apiStatistics(): ApiStats;
|
|
144
|
-
apiIdentityStatistics(): IdentityStats;
|
|
145
|
-
apiAggregateStatistics(): string;
|
|
146
|
-
clearAllStatistics(): void;
|
|
147
|
-
uploadDebugArchive(server_url: string): Promise<string>;
|
|
148
134
|
setConsentStates(records: Consent[]): Promise<void>;
|
|
149
135
|
getConsentState(entity_type: ConsentEntityType, entity: string): Promise<ConsentState>;
|
|
150
136
|
/**
|
|
@@ -175,6 +161,20 @@ export class Client {
|
|
|
175
161
|
registerIdentity(signature_request: SignatureRequestHandle): Promise<void>;
|
|
176
162
|
signWithInstallationKey(signature_text: string): Uint8Array;
|
|
177
163
|
verifySignedWithInstallationKey(signature_text: string, signature_bytes: Uint8Array): void;
|
|
164
|
+
/**
|
|
165
|
+
* Output booleans should be zipped with the index of input identifiers
|
|
166
|
+
*/
|
|
167
|
+
canMessage(account_identifiers: Identifier[]): Promise<any>;
|
|
168
|
+
sendSyncRequest(): Promise<void>;
|
|
169
|
+
findInboxIdByIdentifier(identifier: Identifier): Promise<string | undefined>;
|
|
170
|
+
inboxStateFromInboxIds(inbox_ids: string[], refresh_from_network: boolean): Promise<InboxState[]>;
|
|
171
|
+
conversations(): Conversations;
|
|
172
|
+
syncPreferences(): Promise<number>;
|
|
173
|
+
apiStatistics(): ApiStats;
|
|
174
|
+
apiIdentityStatistics(): IdentityStats;
|
|
175
|
+
apiAggregateStatistics(): string;
|
|
176
|
+
clearAllStatistics(): void;
|
|
177
|
+
uploadDebugArchive(server_url: string): Promise<string>;
|
|
178
178
|
readonly accountIdentifier: Identifier;
|
|
179
179
|
readonly inboxId: string;
|
|
180
180
|
readonly isRegistered: boolean;
|
|
@@ -611,99 +611,6 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
|
|
|
611
611
|
|
|
612
612
|
export interface InitOutput {
|
|
613
613
|
readonly memory: WebAssembly.Memory;
|
|
614
|
-
readonly __wbg_opfs_free: (a: number, b: number) => void;
|
|
615
|
-
readonly opfs_init_sqlite_opfs: () => any;
|
|
616
|
-
readonly opfs_exists: () => number;
|
|
617
|
-
readonly opfs_error: () => [number, number];
|
|
618
|
-
readonly opfs_wipeFiles: () => any;
|
|
619
|
-
readonly opfs_rm: (a: number, b: number) => [number, number, number];
|
|
620
|
-
readonly opfs_getFileNames: () => [number, number];
|
|
621
|
-
readonly opfs_importDb: (a: number, b: number, c: number, d: number) => [number, number];
|
|
622
|
-
readonly opfs_exportFile: (a: number, b: number) => [number, number, number, number];
|
|
623
|
-
readonly opfs_getFileCount: () => number;
|
|
624
|
-
readonly opfs_getCapacity: () => number;
|
|
625
|
-
readonly opfs_addCapacity: (a: number) => any;
|
|
626
|
-
readonly opfs_reduceCapacity: (a: number) => any;
|
|
627
|
-
readonly __wbg_client_free: (a: number, b: number) => void;
|
|
628
|
-
readonly __wbg_logoptions_free: (a: number, b: number) => void;
|
|
629
|
-
readonly __wbg_get_logoptions_structured: (a: number) => number;
|
|
630
|
-
readonly __wbg_set_logoptions_structured: (a: number, b: number) => void;
|
|
631
|
-
readonly __wbg_get_logoptions_performance: (a: number) => number;
|
|
632
|
-
readonly __wbg_set_logoptions_performance: (a: number, b: number) => void;
|
|
633
|
-
readonly __wbg_get_logoptions_level: (a: number) => number;
|
|
634
|
-
readonly __wbg_set_logoptions_level: (a: number, b: number) => void;
|
|
635
|
-
readonly logoptions_new: (a: number, b: number, c: number) => number;
|
|
636
|
-
readonly createClient: (a: number, b: number, c: number, d: number, e: any, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number) => any;
|
|
637
|
-
readonly client_accountIdentifier: (a: number) => any;
|
|
638
|
-
readonly client_inboxId: (a: number) => [number, number];
|
|
639
|
-
readonly client_isRegistered: (a: number) => number;
|
|
640
|
-
readonly client_installationId: (a: number) => [number, number];
|
|
641
|
-
readonly client_installationIdBytes: (a: number) => any;
|
|
642
|
-
readonly client_canMessage: (a: number, b: number, c: number) => any;
|
|
643
|
-
readonly client_sendSyncRequest: (a: number) => any;
|
|
644
|
-
readonly client_findInboxIdByIdentifier: (a: number, b: any) => any;
|
|
645
|
-
readonly client_inboxStateFromInboxIds: (a: number, b: number, c: number, d: number) => any;
|
|
646
|
-
readonly client_conversations: (a: number) => number;
|
|
647
|
-
readonly client_syncPreferences: (a: number) => any;
|
|
648
|
-
readonly client_apiStatistics: (a: number) => number;
|
|
649
|
-
readonly client_apiIdentityStatistics: (a: number) => number;
|
|
650
|
-
readonly client_apiAggregateStatistics: (a: number) => [number, number];
|
|
651
|
-
readonly client_clearAllStatistics: (a: number) => void;
|
|
652
|
-
readonly client_uploadDebugArchive: (a: number, b: number, c: number) => any;
|
|
653
|
-
readonly __wbg_streamcloser_free: (a: number, b: number) => void;
|
|
654
|
-
readonly streamcloser_end: (a: number) => void;
|
|
655
|
-
readonly streamcloser_endAndWait: (a: number) => any;
|
|
656
|
-
readonly streamcloser_waitForReady: (a: number) => any;
|
|
657
|
-
readonly streamcloser_isClosed: (a: number) => number;
|
|
658
|
-
readonly __wbg_apistats_free: (a: number, b: number) => void;
|
|
659
|
-
readonly __wbg_get_apistats_upload_key_package: (a: number) => bigint;
|
|
660
|
-
readonly __wbg_set_apistats_upload_key_package: (a: number, b: bigint) => void;
|
|
661
|
-
readonly __wbg_get_apistats_fetch_key_package: (a: number) => bigint;
|
|
662
|
-
readonly __wbg_set_apistats_fetch_key_package: (a: number, b: bigint) => void;
|
|
663
|
-
readonly __wbg_get_apistats_send_group_messages: (a: number) => bigint;
|
|
664
|
-
readonly __wbg_set_apistats_send_group_messages: (a: number, b: bigint) => void;
|
|
665
|
-
readonly __wbg_get_apistats_send_welcome_messages: (a: number) => bigint;
|
|
666
|
-
readonly __wbg_set_apistats_send_welcome_messages: (a: number, b: bigint) => void;
|
|
667
|
-
readonly __wbg_get_apistats_query_group_messages: (a: number) => bigint;
|
|
668
|
-
readonly __wbg_set_apistats_query_group_messages: (a: number, b: bigint) => void;
|
|
669
|
-
readonly __wbg_get_apistats_query_welcome_messages: (a: number) => bigint;
|
|
670
|
-
readonly __wbg_set_apistats_query_welcome_messages: (a: number, b: bigint) => void;
|
|
671
|
-
readonly __wbg_get_apistats_subscribe_messages: (a: number) => bigint;
|
|
672
|
-
readonly __wbg_set_apistats_subscribe_messages: (a: number, b: bigint) => void;
|
|
673
|
-
readonly __wbg_get_apistats_subscribe_welcomes: (a: number) => bigint;
|
|
674
|
-
readonly __wbg_set_apistats_subscribe_welcomes: (a: number, b: bigint) => void;
|
|
675
|
-
readonly __wbg_identitystats_free: (a: number, b: number) => void;
|
|
676
|
-
readonly getInboxIdForIdentifier: (a: number, b: number, c: any) => any;
|
|
677
|
-
readonly generateInboxId: (a: any) => [number, number, number, number];
|
|
678
|
-
readonly __wbg_permissionpolicyset_free: (a: number, b: number) => void;
|
|
679
|
-
readonly __wbg_get_permissionpolicyset_addMemberPolicy: (a: number) => number;
|
|
680
|
-
readonly __wbg_set_permissionpolicyset_addMemberPolicy: (a: number, b: number) => void;
|
|
681
|
-
readonly __wbg_get_permissionpolicyset_removeMemberPolicy: (a: number) => number;
|
|
682
|
-
readonly __wbg_set_permissionpolicyset_removeMemberPolicy: (a: number, b: number) => void;
|
|
683
|
-
readonly __wbg_get_permissionpolicyset_addAdminPolicy: (a: number) => number;
|
|
684
|
-
readonly __wbg_set_permissionpolicyset_addAdminPolicy: (a: number, b: number) => void;
|
|
685
|
-
readonly __wbg_get_permissionpolicyset_removeAdminPolicy: (a: number) => number;
|
|
686
|
-
readonly __wbg_set_permissionpolicyset_removeAdminPolicy: (a: number, b: number) => void;
|
|
687
|
-
readonly __wbg_get_permissionpolicyset_updateGroupNamePolicy: (a: number) => number;
|
|
688
|
-
readonly __wbg_set_permissionpolicyset_updateGroupNamePolicy: (a: number, b: number) => void;
|
|
689
|
-
readonly __wbg_get_permissionpolicyset_updateGroupDescriptionPolicy: (a: number) => number;
|
|
690
|
-
readonly __wbg_set_permissionpolicyset_updateGroupDescriptionPolicy: (a: number, b: number) => void;
|
|
691
|
-
readonly __wbg_get_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number) => number;
|
|
692
|
-
readonly __wbg_set_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number, b: number) => void;
|
|
693
|
-
readonly __wbg_get_permissionpolicyset_updateMessageDisappearingPolicy: (a: number) => number;
|
|
694
|
-
readonly __wbg_set_permissionpolicyset_updateMessageDisappearingPolicy: (a: number, b: number) => void;
|
|
695
|
-
readonly permissionpolicyset_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
696
|
-
readonly __wbg_grouppermissions_free: (a: number, b: number) => void;
|
|
697
|
-
readonly grouppermissions_policyType: (a: number) => [number, number, number];
|
|
698
|
-
readonly grouppermissions_policySet: (a: number) => [number, number, number];
|
|
699
|
-
readonly __wbg_set_identitystats_publish_identity_update: (a: number, b: bigint) => void;
|
|
700
|
-
readonly __wbg_set_identitystats_get_identity_updates_v2: (a: number, b: bigint) => void;
|
|
701
|
-
readonly __wbg_set_identitystats_get_inbox_ids: (a: number, b: bigint) => void;
|
|
702
|
-
readonly __wbg_set_identitystats_verify_smart_contract_wallet_signature: (a: number, b: bigint) => void;
|
|
703
|
-
readonly __wbg_get_identitystats_publish_identity_update: (a: number) => bigint;
|
|
704
|
-
readonly __wbg_get_identitystats_get_identity_updates_v2: (a: number) => bigint;
|
|
705
|
-
readonly __wbg_get_identitystats_get_inbox_ids: (a: number) => bigint;
|
|
706
|
-
readonly __wbg_get_identitystats_verify_smart_contract_wallet_signature: (a: number) => bigint;
|
|
707
614
|
readonly __wbg_consent_free: (a: number, b: number) => void;
|
|
708
615
|
readonly __wbg_get_consent_entityType: (a: number) => number;
|
|
709
616
|
readonly __wbg_set_consent_entityType: (a: number, b: number) => void;
|
|
@@ -888,6 +795,8 @@ export interface InitOutput {
|
|
|
888
795
|
readonly __wbg_get_encodedcontent_content: (a: number) => any;
|
|
889
796
|
readonly __wbg_set_encodedcontent_content: (a: number, b: any) => void;
|
|
890
797
|
readonly encodedcontent_new: (a: number, b: any, c: number, d: number, e: number, f: any) => number;
|
|
798
|
+
readonly getInboxIdForIdentifier: (a: number, b: number, c: any) => any;
|
|
799
|
+
readonly generateInboxId: (a: any) => [number, number, number, number];
|
|
891
800
|
readonly __wbg_installation_free: (a: number, b: number) => void;
|
|
892
801
|
readonly __wbg_get_installation_bytes: (a: number) => any;
|
|
893
802
|
readonly __wbg_set_installation_bytes: (a: number, b: any) => void;
|
|
@@ -998,8 +907,99 @@ export interface InitOutput {
|
|
|
998
907
|
readonly __wbg_set_listmessagesoptions_limit: (a: number, b: number, c: bigint) => void;
|
|
999
908
|
readonly __wbg_get_creategroupoptions_messageDisappearingSettings: (a: number) => number;
|
|
1000
909
|
readonly __wbg_get_keypackagestatus_lifetime: (a: number) => number;
|
|
1001
|
-
readonly __wbg_messagedisappearingsettings_free: (a: number, b: number) => void;
|
|
1002
910
|
readonly __wbg_set_keypackagestatus_lifetime: (a: number, b: number) => void;
|
|
911
|
+
readonly __wbg_messagedisappearingsettings_free: (a: number, b: number) => void;
|
|
912
|
+
readonly __wbg_permissionpolicyset_free: (a: number, b: number) => void;
|
|
913
|
+
readonly __wbg_get_permissionpolicyset_addMemberPolicy: (a: number) => number;
|
|
914
|
+
readonly __wbg_set_permissionpolicyset_addMemberPolicy: (a: number, b: number) => void;
|
|
915
|
+
readonly __wbg_get_permissionpolicyset_removeMemberPolicy: (a: number) => number;
|
|
916
|
+
readonly __wbg_set_permissionpolicyset_removeMemberPolicy: (a: number, b: number) => void;
|
|
917
|
+
readonly __wbg_get_permissionpolicyset_addAdminPolicy: (a: number) => number;
|
|
918
|
+
readonly __wbg_set_permissionpolicyset_addAdminPolicy: (a: number, b: number) => void;
|
|
919
|
+
readonly __wbg_get_permissionpolicyset_removeAdminPolicy: (a: number) => number;
|
|
920
|
+
readonly __wbg_set_permissionpolicyset_removeAdminPolicy: (a: number, b: number) => void;
|
|
921
|
+
readonly __wbg_get_permissionpolicyset_updateGroupNamePolicy: (a: number) => number;
|
|
922
|
+
readonly __wbg_set_permissionpolicyset_updateGroupNamePolicy: (a: number, b: number) => void;
|
|
923
|
+
readonly __wbg_get_permissionpolicyset_updateGroupDescriptionPolicy: (a: number) => number;
|
|
924
|
+
readonly __wbg_set_permissionpolicyset_updateGroupDescriptionPolicy: (a: number, b: number) => void;
|
|
925
|
+
readonly __wbg_get_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number) => number;
|
|
926
|
+
readonly __wbg_set_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number, b: number) => void;
|
|
927
|
+
readonly __wbg_get_permissionpolicyset_updateMessageDisappearingPolicy: (a: number) => number;
|
|
928
|
+
readonly __wbg_set_permissionpolicyset_updateMessageDisappearingPolicy: (a: number, b: number) => void;
|
|
929
|
+
readonly permissionpolicyset_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
930
|
+
readonly __wbg_grouppermissions_free: (a: number, b: number) => void;
|
|
931
|
+
readonly grouppermissions_policyType: (a: number) => [number, number, number];
|
|
932
|
+
readonly grouppermissions_policySet: (a: number) => [number, number, number];
|
|
933
|
+
readonly __wbg_client_free: (a: number, b: number) => void;
|
|
934
|
+
readonly __wbg_logoptions_free: (a: number, b: number) => void;
|
|
935
|
+
readonly __wbg_get_logoptions_structured: (a: number) => number;
|
|
936
|
+
readonly __wbg_set_logoptions_structured: (a: number, b: number) => void;
|
|
937
|
+
readonly __wbg_get_logoptions_performance: (a: number) => number;
|
|
938
|
+
readonly __wbg_set_logoptions_performance: (a: number, b: number) => void;
|
|
939
|
+
readonly __wbg_get_logoptions_level: (a: number) => number;
|
|
940
|
+
readonly __wbg_set_logoptions_level: (a: number, b: number) => void;
|
|
941
|
+
readonly logoptions_new: (a: number, b: number, c: number) => number;
|
|
942
|
+
readonly createClient: (a: number, b: number, c: number, d: number, e: any, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number) => any;
|
|
943
|
+
readonly client_accountIdentifier: (a: number) => any;
|
|
944
|
+
readonly client_inboxId: (a: number) => [number, number];
|
|
945
|
+
readonly client_isRegistered: (a: number) => number;
|
|
946
|
+
readonly client_installationId: (a: number) => [number, number];
|
|
947
|
+
readonly client_installationIdBytes: (a: number) => any;
|
|
948
|
+
readonly client_canMessage: (a: number, b: number, c: number) => any;
|
|
949
|
+
readonly client_sendSyncRequest: (a: number) => any;
|
|
950
|
+
readonly client_findInboxIdByIdentifier: (a: number, b: any) => any;
|
|
951
|
+
readonly client_inboxStateFromInboxIds: (a: number, b: number, c: number, d: number) => any;
|
|
952
|
+
readonly client_conversations: (a: number) => number;
|
|
953
|
+
readonly client_syncPreferences: (a: number) => any;
|
|
954
|
+
readonly client_apiStatistics: (a: number) => number;
|
|
955
|
+
readonly client_apiIdentityStatistics: (a: number) => number;
|
|
956
|
+
readonly client_apiAggregateStatistics: (a: number) => [number, number];
|
|
957
|
+
readonly client_clearAllStatistics: (a: number) => void;
|
|
958
|
+
readonly client_uploadDebugArchive: (a: number, b: number, c: number) => any;
|
|
959
|
+
readonly __wbg_apistats_free: (a: number, b: number) => void;
|
|
960
|
+
readonly __wbg_get_apistats_upload_key_package: (a: number) => bigint;
|
|
961
|
+
readonly __wbg_set_apistats_upload_key_package: (a: number, b: bigint) => void;
|
|
962
|
+
readonly __wbg_get_apistats_fetch_key_package: (a: number) => bigint;
|
|
963
|
+
readonly __wbg_set_apistats_fetch_key_package: (a: number, b: bigint) => void;
|
|
964
|
+
readonly __wbg_get_apistats_send_group_messages: (a: number) => bigint;
|
|
965
|
+
readonly __wbg_set_apistats_send_group_messages: (a: number, b: bigint) => void;
|
|
966
|
+
readonly __wbg_get_apistats_send_welcome_messages: (a: number) => bigint;
|
|
967
|
+
readonly __wbg_set_apistats_send_welcome_messages: (a: number, b: bigint) => void;
|
|
968
|
+
readonly __wbg_get_apistats_query_group_messages: (a: number) => bigint;
|
|
969
|
+
readonly __wbg_set_apistats_query_group_messages: (a: number, b: bigint) => void;
|
|
970
|
+
readonly __wbg_get_apistats_query_welcome_messages: (a: number) => bigint;
|
|
971
|
+
readonly __wbg_set_apistats_query_welcome_messages: (a: number, b: bigint) => void;
|
|
972
|
+
readonly __wbg_get_apistats_subscribe_messages: (a: number) => bigint;
|
|
973
|
+
readonly __wbg_set_apistats_subscribe_messages: (a: number, b: bigint) => void;
|
|
974
|
+
readonly __wbg_get_apistats_subscribe_welcomes: (a: number) => bigint;
|
|
975
|
+
readonly __wbg_set_apistats_subscribe_welcomes: (a: number, b: bigint) => void;
|
|
976
|
+
readonly __wbg_identitystats_free: (a: number, b: number) => void;
|
|
977
|
+
readonly __wbg_opfs_free: (a: number, b: number) => void;
|
|
978
|
+
readonly opfs_init_sqlite_opfs: () => any;
|
|
979
|
+
readonly opfs_exists: () => number;
|
|
980
|
+
readonly opfs_error: () => [number, number];
|
|
981
|
+
readonly opfs_wipeFiles: () => any;
|
|
982
|
+
readonly opfs_rm: (a: number, b: number) => [number, number, number];
|
|
983
|
+
readonly opfs_getFileNames: () => [number, number];
|
|
984
|
+
readonly opfs_importDb: (a: number, b: number, c: number, d: number) => [number, number];
|
|
985
|
+
readonly opfs_exportFile: (a: number, b: number) => [number, number, number, number];
|
|
986
|
+
readonly opfs_getFileCount: () => number;
|
|
987
|
+
readonly opfs_getCapacity: () => number;
|
|
988
|
+
readonly opfs_addCapacity: (a: number) => any;
|
|
989
|
+
readonly opfs_reduceCapacity: (a: number) => any;
|
|
990
|
+
readonly __wbg_streamcloser_free: (a: number, b: number) => void;
|
|
991
|
+
readonly streamcloser_end: (a: number) => void;
|
|
992
|
+
readonly streamcloser_endAndWait: (a: number) => any;
|
|
993
|
+
readonly streamcloser_waitForReady: (a: number) => any;
|
|
994
|
+
readonly streamcloser_isClosed: (a: number) => number;
|
|
995
|
+
readonly __wbg_set_identitystats_publish_identity_update: (a: number, b: bigint) => void;
|
|
996
|
+
readonly __wbg_set_identitystats_get_identity_updates_v2: (a: number, b: bigint) => void;
|
|
997
|
+
readonly __wbg_set_identitystats_get_inbox_ids: (a: number, b: bigint) => void;
|
|
998
|
+
readonly __wbg_set_identitystats_verify_smart_contract_wallet_signature: (a: number, b: bigint) => void;
|
|
999
|
+
readonly __wbg_get_identitystats_publish_identity_update: (a: number) => bigint;
|
|
1000
|
+
readonly __wbg_get_identitystats_get_identity_updates_v2: (a: number) => bigint;
|
|
1001
|
+
readonly __wbg_get_identitystats_get_inbox_ids: (a: number) => bigint;
|
|
1002
|
+
readonly __wbg_get_identitystats_verify_smart_contract_wallet_signature: (a: number) => bigint;
|
|
1003
1003
|
readonly rust_zstd_wasm_shim_qsort: (a: number, b: number, c: number, d: number) => void;
|
|
1004
1004
|
readonly rust_zstd_wasm_shim_malloc: (a: number) => number;
|
|
1005
1005
|
readonly rust_zstd_wasm_shim_memcmp: (a: number, b: number, c: number) => number;
|
|
@@ -1042,9 +1042,9 @@ export interface InitOutput {
|
|
|
1042
1042
|
readonly __wbindgen_export_7: WebAssembly.Table;
|
|
1043
1043
|
readonly __externref_table_dealloc: (a: number) => void;
|
|
1044
1044
|
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h2bc8eabc61c14181: (a: number, b: number) => void;
|
|
1045
|
-
readonly
|
|
1045
|
+
readonly closure4995_externref_shim: (a: number, b: number, c: any) => void;
|
|
1046
1046
|
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h912129f7a2cf8b7b: (a: number, b: number) => void;
|
|
1047
|
-
readonly
|
|
1047
|
+
readonly closure5946_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
1048
1048
|
readonly __wbindgen_start: () => void;
|
|
1049
1049
|
}
|
|
1050
1050
|
|
package/dist/bindings_wasm.js
CHANGED
|
@@ -216,55 +216,6 @@ function debugString(val) {
|
|
|
216
216
|
return className;
|
|
217
217
|
}
|
|
218
218
|
|
|
219
|
-
function takeFromExternrefTable0(idx) {
|
|
220
|
-
const value = wasm.__wbindgen_export_4.get(idx);
|
|
221
|
-
wasm.__externref_table_dealloc(idx);
|
|
222
|
-
return value;
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
function passArray8ToWasm0(arg, malloc) {
|
|
226
|
-
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
227
|
-
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
228
|
-
WASM_VECTOR_LEN = arg.length;
|
|
229
|
-
return ptr;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
function _assertClass(instance, klass) {
|
|
233
|
-
if (!(instance instanceof klass)) {
|
|
234
|
-
throw new Error(`expected instance of ${klass.name}`);
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
/**
|
|
238
|
-
* @param {string} host
|
|
239
|
-
* @param {string} inbox_id
|
|
240
|
-
* @param {Identifier} account_identifier
|
|
241
|
-
* @param {string | null} [db_path]
|
|
242
|
-
* @param {Uint8Array | null} [encryption_key]
|
|
243
|
-
* @param {string | null} [device_sync_server_url]
|
|
244
|
-
* @param {DeviceSyncWorkerMode | null} [device_sync_worker_mode]
|
|
245
|
-
* @param {LogOptions | null} [log_options]
|
|
246
|
-
* @param {boolean | null} [allow_offline]
|
|
247
|
-
* @param {boolean | null} [disable_events]
|
|
248
|
-
* @returns {Promise<Client>}
|
|
249
|
-
*/
|
|
250
|
-
export function createClient(host, inbox_id, account_identifier, db_path, encryption_key, device_sync_server_url, device_sync_worker_mode, log_options, allow_offline, disable_events) {
|
|
251
|
-
const ptr0 = passStringToWasm0(host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
252
|
-
const len0 = WASM_VECTOR_LEN;
|
|
253
|
-
const ptr1 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
254
|
-
const len1 = WASM_VECTOR_LEN;
|
|
255
|
-
var ptr2 = isLikeNone(db_path) ? 0 : passStringToWasm0(db_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
256
|
-
var len2 = WASM_VECTOR_LEN;
|
|
257
|
-
var ptr3 = isLikeNone(device_sync_server_url) ? 0 : passStringToWasm0(device_sync_server_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
258
|
-
var len3 = WASM_VECTOR_LEN;
|
|
259
|
-
let ptr4 = 0;
|
|
260
|
-
if (!isLikeNone(log_options)) {
|
|
261
|
-
_assertClass(log_options, LogOptions);
|
|
262
|
-
ptr4 = log_options.__destroy_into_raw();
|
|
263
|
-
}
|
|
264
|
-
const ret = wasm.createClient(ptr0, len0, ptr1, len1, account_identifier, ptr2, len2, isLikeNone(encryption_key) ? 0 : addToExternrefTable0(encryption_key), ptr3, len3, isLikeNone(device_sync_worker_mode) ? 3 : ((__wbindgen_enum_DeviceSyncWorkerMode.indexOf(device_sync_worker_mode) + 1 || 3) - 1), ptr4, isLikeNone(allow_offline) ? 0xFFFFFF : allow_offline ? 1 : 0, isLikeNone(disable_events) ? 0xFFFFFF : disable_events ? 1 : 0);
|
|
265
|
-
return ret;
|
|
266
|
-
}
|
|
267
|
-
|
|
268
219
|
function passArrayJsValueToWasm0(array, malloc) {
|
|
269
220
|
const ptr = malloc(array.length * 4, 4) >>> 0;
|
|
270
221
|
for (let i = 0; i < array.length; i++) {
|
|
@@ -274,41 +225,18 @@ function passArrayJsValueToWasm0(array, malloc) {
|
|
|
274
225
|
WASM_VECTOR_LEN = array.length;
|
|
275
226
|
return ptr;
|
|
276
227
|
}
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
export function getInboxIdForIdentifier(host, accountIdentifier) {
|
|
283
|
-
const ptr0 = passStringToWasm0(host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
284
|
-
const len0 = WASM_VECTOR_LEN;
|
|
285
|
-
const ret = wasm.getInboxIdForIdentifier(ptr0, len0, accountIdentifier);
|
|
286
|
-
return ret;
|
|
228
|
+
|
|
229
|
+
function takeFromExternrefTable0(idx) {
|
|
230
|
+
const value = wasm.__wbindgen_export_4.get(idx);
|
|
231
|
+
wasm.__externref_table_dealloc(idx);
|
|
232
|
+
return value;
|
|
287
233
|
}
|
|
288
234
|
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
*/
|
|
293
|
-
export function generateInboxId(accountIdentifier) {
|
|
294
|
-
let deferred2_0;
|
|
295
|
-
let deferred2_1;
|
|
296
|
-
try {
|
|
297
|
-
const ret = wasm.generateInboxId(accountIdentifier);
|
|
298
|
-
var ptr1 = ret[0];
|
|
299
|
-
var len1 = ret[1];
|
|
300
|
-
if (ret[3]) {
|
|
301
|
-
ptr1 = 0; len1 = 0;
|
|
302
|
-
throw takeFromExternrefTable0(ret[2]);
|
|
303
|
-
}
|
|
304
|
-
deferred2_0 = ptr1;
|
|
305
|
-
deferred2_1 = len1;
|
|
306
|
-
return getStringFromWasm0(ptr1, len1);
|
|
307
|
-
} finally {
|
|
308
|
-
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
235
|
+
function _assertClass(instance, klass) {
|
|
236
|
+
if (!(instance instanceof klass)) {
|
|
237
|
+
throw new Error(`expected instance of ${klass.name}`);
|
|
309
238
|
}
|
|
310
239
|
}
|
|
311
|
-
|
|
312
240
|
/**
|
|
313
241
|
* @param {MultiRemoteAttachment} multiRemoteAttachment
|
|
314
242
|
* @returns {Uint8Array}
|
|
@@ -361,6 +289,47 @@ export function decodeReaction(bytes) {
|
|
|
361
289
|
return Reaction.__wrap(ret[0]);
|
|
362
290
|
}
|
|
363
291
|
|
|
292
|
+
function passArray8ToWasm0(arg, malloc) {
|
|
293
|
+
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
294
|
+
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
295
|
+
WASM_VECTOR_LEN = arg.length;
|
|
296
|
+
return ptr;
|
|
297
|
+
}
|
|
298
|
+
/**
|
|
299
|
+
* @param {string} host
|
|
300
|
+
* @param {Identifier} accountIdentifier
|
|
301
|
+
* @returns {Promise<string | undefined>}
|
|
302
|
+
*/
|
|
303
|
+
export function getInboxIdForIdentifier(host, accountIdentifier) {
|
|
304
|
+
const ptr0 = passStringToWasm0(host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
305
|
+
const len0 = WASM_VECTOR_LEN;
|
|
306
|
+
const ret = wasm.getInboxIdForIdentifier(ptr0, len0, accountIdentifier);
|
|
307
|
+
return ret;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
/**
|
|
311
|
+
* @param {Identifier} accountIdentifier
|
|
312
|
+
* @returns {string}
|
|
313
|
+
*/
|
|
314
|
+
export function generateInboxId(accountIdentifier) {
|
|
315
|
+
let deferred2_0;
|
|
316
|
+
let deferred2_1;
|
|
317
|
+
try {
|
|
318
|
+
const ret = wasm.generateInboxId(accountIdentifier);
|
|
319
|
+
var ptr1 = ret[0];
|
|
320
|
+
var len1 = ret[1];
|
|
321
|
+
if (ret[3]) {
|
|
322
|
+
ptr1 = 0; len1 = 0;
|
|
323
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
324
|
+
}
|
|
325
|
+
deferred2_0 = ptr1;
|
|
326
|
+
deferred2_1 = len1;
|
|
327
|
+
return getStringFromWasm0(ptr1, len1);
|
|
328
|
+
} finally {
|
|
329
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
|
|
364
333
|
/**
|
|
365
334
|
* @param {string} host
|
|
366
335
|
* @param {string[]} inbox_ids
|
|
@@ -420,12 +389,43 @@ export function applySignatureRequest(host, signature_request) {
|
|
|
420
389
|
return ret;
|
|
421
390
|
}
|
|
422
391
|
|
|
392
|
+
/**
|
|
393
|
+
* @param {string} host
|
|
394
|
+
* @param {string} inbox_id
|
|
395
|
+
* @param {Identifier} account_identifier
|
|
396
|
+
* @param {string | null} [db_path]
|
|
397
|
+
* @param {Uint8Array | null} [encryption_key]
|
|
398
|
+
* @param {string | null} [device_sync_server_url]
|
|
399
|
+
* @param {DeviceSyncWorkerMode | null} [device_sync_worker_mode]
|
|
400
|
+
* @param {LogOptions | null} [log_options]
|
|
401
|
+
* @param {boolean | null} [allow_offline]
|
|
402
|
+
* @param {boolean | null} [disable_events]
|
|
403
|
+
* @returns {Promise<Client>}
|
|
404
|
+
*/
|
|
405
|
+
export function createClient(host, inbox_id, account_identifier, db_path, encryption_key, device_sync_server_url, device_sync_worker_mode, log_options, allow_offline, disable_events) {
|
|
406
|
+
const ptr0 = passStringToWasm0(host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
407
|
+
const len0 = WASM_VECTOR_LEN;
|
|
408
|
+
const ptr1 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
409
|
+
const len1 = WASM_VECTOR_LEN;
|
|
410
|
+
var ptr2 = isLikeNone(db_path) ? 0 : passStringToWasm0(db_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
411
|
+
var len2 = WASM_VECTOR_LEN;
|
|
412
|
+
var ptr3 = isLikeNone(device_sync_server_url) ? 0 : passStringToWasm0(device_sync_server_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
413
|
+
var len3 = WASM_VECTOR_LEN;
|
|
414
|
+
let ptr4 = 0;
|
|
415
|
+
if (!isLikeNone(log_options)) {
|
|
416
|
+
_assertClass(log_options, LogOptions);
|
|
417
|
+
ptr4 = log_options.__destroy_into_raw();
|
|
418
|
+
}
|
|
419
|
+
const ret = wasm.createClient(ptr0, len0, ptr1, len1, account_identifier, ptr2, len2, isLikeNone(encryption_key) ? 0 : addToExternrefTable0(encryption_key), ptr3, len3, isLikeNone(device_sync_worker_mode) ? 3 : ((__wbindgen_enum_DeviceSyncWorkerMode.indexOf(device_sync_worker_mode) + 1 || 3) - 1), ptr4, isLikeNone(allow_offline) ? 0xFFFFFF : allow_offline ? 1 : 0, isLikeNone(disable_events) ? 0xFFFFFF : disable_events ? 1 : 0);
|
|
420
|
+
return ret;
|
|
421
|
+
}
|
|
422
|
+
|
|
423
423
|
function __wbg_adapter_50(arg0, arg1) {
|
|
424
424
|
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h2bc8eabc61c14181(arg0, arg1);
|
|
425
425
|
}
|
|
426
426
|
|
|
427
427
|
function __wbg_adapter_53(arg0, arg1, arg2) {
|
|
428
|
-
wasm.
|
|
428
|
+
wasm.closure4995_externref_shim(arg0, arg1, arg2);
|
|
429
429
|
}
|
|
430
430
|
|
|
431
431
|
function __wbg_adapter_56(arg0, arg1) {
|
|
@@ -433,7 +433,7 @@ function __wbg_adapter_56(arg0, arg1) {
|
|
|
433
433
|
}
|
|
434
434
|
|
|
435
435
|
function __wbg_adapter_778(arg0, arg1, arg2, arg3) {
|
|
436
|
-
wasm.
|
|
436
|
+
wasm.closure5946_externref_shim(arg0, arg1, arg2, arg3);
|
|
437
437
|
}
|
|
438
438
|
|
|
439
439
|
/**
|
|
@@ -736,150 +736,6 @@ export class Client {
|
|
|
736
736
|
const ptr = this.__destroy_into_raw();
|
|
737
737
|
wasm.__wbg_client_free(ptr, 0);
|
|
738
738
|
}
|
|
739
|
-
/**
|
|
740
|
-
* @returns {Identifier}
|
|
741
|
-
*/
|
|
742
|
-
get accountIdentifier() {
|
|
743
|
-
const ret = wasm.client_accountIdentifier(this.__wbg_ptr);
|
|
744
|
-
return ret;
|
|
745
|
-
}
|
|
746
|
-
/**
|
|
747
|
-
* @returns {string}
|
|
748
|
-
*/
|
|
749
|
-
get inboxId() {
|
|
750
|
-
let deferred1_0;
|
|
751
|
-
let deferred1_1;
|
|
752
|
-
try {
|
|
753
|
-
const ret = wasm.client_inboxId(this.__wbg_ptr);
|
|
754
|
-
deferred1_0 = ret[0];
|
|
755
|
-
deferred1_1 = ret[1];
|
|
756
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
757
|
-
} finally {
|
|
758
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
759
|
-
}
|
|
760
|
-
}
|
|
761
|
-
/**
|
|
762
|
-
* @returns {boolean}
|
|
763
|
-
*/
|
|
764
|
-
get isRegistered() {
|
|
765
|
-
const ret = wasm.client_isRegistered(this.__wbg_ptr);
|
|
766
|
-
return ret !== 0;
|
|
767
|
-
}
|
|
768
|
-
/**
|
|
769
|
-
* @returns {string}
|
|
770
|
-
*/
|
|
771
|
-
get installationId() {
|
|
772
|
-
let deferred1_0;
|
|
773
|
-
let deferred1_1;
|
|
774
|
-
try {
|
|
775
|
-
const ret = wasm.client_installationId(this.__wbg_ptr);
|
|
776
|
-
deferred1_0 = ret[0];
|
|
777
|
-
deferred1_1 = ret[1];
|
|
778
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
779
|
-
} finally {
|
|
780
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
781
|
-
}
|
|
782
|
-
}
|
|
783
|
-
/**
|
|
784
|
-
* @returns {Uint8Array}
|
|
785
|
-
*/
|
|
786
|
-
get installationIdBytes() {
|
|
787
|
-
const ret = wasm.client_installationIdBytes(this.__wbg_ptr);
|
|
788
|
-
return ret;
|
|
789
|
-
}
|
|
790
|
-
/**
|
|
791
|
-
* Output booleans should be zipped with the index of input identifiers
|
|
792
|
-
* @param {Identifier[]} account_identifiers
|
|
793
|
-
* @returns {Promise<any>}
|
|
794
|
-
*/
|
|
795
|
-
canMessage(account_identifiers) {
|
|
796
|
-
const ptr0 = passArrayJsValueToWasm0(account_identifiers, wasm.__wbindgen_malloc);
|
|
797
|
-
const len0 = WASM_VECTOR_LEN;
|
|
798
|
-
const ret = wasm.client_canMessage(this.__wbg_ptr, ptr0, len0);
|
|
799
|
-
return ret;
|
|
800
|
-
}
|
|
801
|
-
/**
|
|
802
|
-
* @returns {Promise<void>}
|
|
803
|
-
*/
|
|
804
|
-
sendSyncRequest() {
|
|
805
|
-
const ret = wasm.client_sendSyncRequest(this.__wbg_ptr);
|
|
806
|
-
return ret;
|
|
807
|
-
}
|
|
808
|
-
/**
|
|
809
|
-
* @param {Identifier} identifier
|
|
810
|
-
* @returns {Promise<string | undefined>}
|
|
811
|
-
*/
|
|
812
|
-
findInboxIdByIdentifier(identifier) {
|
|
813
|
-
const ret = wasm.client_findInboxIdByIdentifier(this.__wbg_ptr, identifier);
|
|
814
|
-
return ret;
|
|
815
|
-
}
|
|
816
|
-
/**
|
|
817
|
-
* @param {string[]} inbox_ids
|
|
818
|
-
* @param {boolean} refresh_from_network
|
|
819
|
-
* @returns {Promise<InboxState[]>}
|
|
820
|
-
*/
|
|
821
|
-
inboxStateFromInboxIds(inbox_ids, refresh_from_network) {
|
|
822
|
-
const ptr0 = passArrayJsValueToWasm0(inbox_ids, wasm.__wbindgen_malloc);
|
|
823
|
-
const len0 = WASM_VECTOR_LEN;
|
|
824
|
-
const ret = wasm.client_inboxStateFromInboxIds(this.__wbg_ptr, ptr0, len0, refresh_from_network);
|
|
825
|
-
return ret;
|
|
826
|
-
}
|
|
827
|
-
/**
|
|
828
|
-
* @returns {Conversations}
|
|
829
|
-
*/
|
|
830
|
-
conversations() {
|
|
831
|
-
const ret = wasm.client_conversations(this.__wbg_ptr);
|
|
832
|
-
return Conversations.__wrap(ret);
|
|
833
|
-
}
|
|
834
|
-
/**
|
|
835
|
-
* @returns {Promise<number>}
|
|
836
|
-
*/
|
|
837
|
-
syncPreferences() {
|
|
838
|
-
const ret = wasm.client_syncPreferences(this.__wbg_ptr);
|
|
839
|
-
return ret;
|
|
840
|
-
}
|
|
841
|
-
/**
|
|
842
|
-
* @returns {ApiStats}
|
|
843
|
-
*/
|
|
844
|
-
apiStatistics() {
|
|
845
|
-
const ret = wasm.client_apiStatistics(this.__wbg_ptr);
|
|
846
|
-
return ApiStats.__wrap(ret);
|
|
847
|
-
}
|
|
848
|
-
/**
|
|
849
|
-
* @returns {IdentityStats}
|
|
850
|
-
*/
|
|
851
|
-
apiIdentityStatistics() {
|
|
852
|
-
const ret = wasm.client_apiIdentityStatistics(this.__wbg_ptr);
|
|
853
|
-
return IdentityStats.__wrap(ret);
|
|
854
|
-
}
|
|
855
|
-
/**
|
|
856
|
-
* @returns {string}
|
|
857
|
-
*/
|
|
858
|
-
apiAggregateStatistics() {
|
|
859
|
-
let deferred1_0;
|
|
860
|
-
let deferred1_1;
|
|
861
|
-
try {
|
|
862
|
-
const ret = wasm.client_apiAggregateStatistics(this.__wbg_ptr);
|
|
863
|
-
deferred1_0 = ret[0];
|
|
864
|
-
deferred1_1 = ret[1];
|
|
865
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
866
|
-
} finally {
|
|
867
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
868
|
-
}
|
|
869
|
-
}
|
|
870
|
-
clearAllStatistics() {
|
|
871
|
-
wasm.client_clearAllStatistics(this.__wbg_ptr);
|
|
872
|
-
}
|
|
873
|
-
/**
|
|
874
|
-
* @param {string} server_url
|
|
875
|
-
* @returns {Promise<string>}
|
|
876
|
-
*/
|
|
877
|
-
uploadDebugArchive(server_url) {
|
|
878
|
-
const ptr0 = passStringToWasm0(server_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
879
|
-
const len0 = WASM_VECTOR_LEN;
|
|
880
|
-
const ret = wasm.client_uploadDebugArchive(this.__wbg_ptr, ptr0, len0);
|
|
881
|
-
return ret;
|
|
882
|
-
}
|
|
883
739
|
/**
|
|
884
740
|
* @param {Consent[]} records
|
|
885
741
|
* @returns {Promise<void>}
|
|
@@ -1035,6 +891,150 @@ export class Client {
|
|
|
1035
891
|
throw takeFromExternrefTable0(ret[0]);
|
|
1036
892
|
}
|
|
1037
893
|
}
|
|
894
|
+
/**
|
|
895
|
+
* @returns {Identifier}
|
|
896
|
+
*/
|
|
897
|
+
get accountIdentifier() {
|
|
898
|
+
const ret = wasm.client_accountIdentifier(this.__wbg_ptr);
|
|
899
|
+
return ret;
|
|
900
|
+
}
|
|
901
|
+
/**
|
|
902
|
+
* @returns {string}
|
|
903
|
+
*/
|
|
904
|
+
get inboxId() {
|
|
905
|
+
let deferred1_0;
|
|
906
|
+
let deferred1_1;
|
|
907
|
+
try {
|
|
908
|
+
const ret = wasm.client_inboxId(this.__wbg_ptr);
|
|
909
|
+
deferred1_0 = ret[0];
|
|
910
|
+
deferred1_1 = ret[1];
|
|
911
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
912
|
+
} finally {
|
|
913
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
914
|
+
}
|
|
915
|
+
}
|
|
916
|
+
/**
|
|
917
|
+
* @returns {boolean}
|
|
918
|
+
*/
|
|
919
|
+
get isRegistered() {
|
|
920
|
+
const ret = wasm.client_isRegistered(this.__wbg_ptr);
|
|
921
|
+
return ret !== 0;
|
|
922
|
+
}
|
|
923
|
+
/**
|
|
924
|
+
* @returns {string}
|
|
925
|
+
*/
|
|
926
|
+
get installationId() {
|
|
927
|
+
let deferred1_0;
|
|
928
|
+
let deferred1_1;
|
|
929
|
+
try {
|
|
930
|
+
const ret = wasm.client_installationId(this.__wbg_ptr);
|
|
931
|
+
deferred1_0 = ret[0];
|
|
932
|
+
deferred1_1 = ret[1];
|
|
933
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
934
|
+
} finally {
|
|
935
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
936
|
+
}
|
|
937
|
+
}
|
|
938
|
+
/**
|
|
939
|
+
* @returns {Uint8Array}
|
|
940
|
+
*/
|
|
941
|
+
get installationIdBytes() {
|
|
942
|
+
const ret = wasm.client_installationIdBytes(this.__wbg_ptr);
|
|
943
|
+
return ret;
|
|
944
|
+
}
|
|
945
|
+
/**
|
|
946
|
+
* Output booleans should be zipped with the index of input identifiers
|
|
947
|
+
* @param {Identifier[]} account_identifiers
|
|
948
|
+
* @returns {Promise<any>}
|
|
949
|
+
*/
|
|
950
|
+
canMessage(account_identifiers) {
|
|
951
|
+
const ptr0 = passArrayJsValueToWasm0(account_identifiers, wasm.__wbindgen_malloc);
|
|
952
|
+
const len0 = WASM_VECTOR_LEN;
|
|
953
|
+
const ret = wasm.client_canMessage(this.__wbg_ptr, ptr0, len0);
|
|
954
|
+
return ret;
|
|
955
|
+
}
|
|
956
|
+
/**
|
|
957
|
+
* @returns {Promise<void>}
|
|
958
|
+
*/
|
|
959
|
+
sendSyncRequest() {
|
|
960
|
+
const ret = wasm.client_sendSyncRequest(this.__wbg_ptr);
|
|
961
|
+
return ret;
|
|
962
|
+
}
|
|
963
|
+
/**
|
|
964
|
+
* @param {Identifier} identifier
|
|
965
|
+
* @returns {Promise<string | undefined>}
|
|
966
|
+
*/
|
|
967
|
+
findInboxIdByIdentifier(identifier) {
|
|
968
|
+
const ret = wasm.client_findInboxIdByIdentifier(this.__wbg_ptr, identifier);
|
|
969
|
+
return ret;
|
|
970
|
+
}
|
|
971
|
+
/**
|
|
972
|
+
* @param {string[]} inbox_ids
|
|
973
|
+
* @param {boolean} refresh_from_network
|
|
974
|
+
* @returns {Promise<InboxState[]>}
|
|
975
|
+
*/
|
|
976
|
+
inboxStateFromInboxIds(inbox_ids, refresh_from_network) {
|
|
977
|
+
const ptr0 = passArrayJsValueToWasm0(inbox_ids, wasm.__wbindgen_malloc);
|
|
978
|
+
const len0 = WASM_VECTOR_LEN;
|
|
979
|
+
const ret = wasm.client_inboxStateFromInboxIds(this.__wbg_ptr, ptr0, len0, refresh_from_network);
|
|
980
|
+
return ret;
|
|
981
|
+
}
|
|
982
|
+
/**
|
|
983
|
+
* @returns {Conversations}
|
|
984
|
+
*/
|
|
985
|
+
conversations() {
|
|
986
|
+
const ret = wasm.client_conversations(this.__wbg_ptr);
|
|
987
|
+
return Conversations.__wrap(ret);
|
|
988
|
+
}
|
|
989
|
+
/**
|
|
990
|
+
* @returns {Promise<number>}
|
|
991
|
+
*/
|
|
992
|
+
syncPreferences() {
|
|
993
|
+
const ret = wasm.client_syncPreferences(this.__wbg_ptr);
|
|
994
|
+
return ret;
|
|
995
|
+
}
|
|
996
|
+
/**
|
|
997
|
+
* @returns {ApiStats}
|
|
998
|
+
*/
|
|
999
|
+
apiStatistics() {
|
|
1000
|
+
const ret = wasm.client_apiStatistics(this.__wbg_ptr);
|
|
1001
|
+
return ApiStats.__wrap(ret);
|
|
1002
|
+
}
|
|
1003
|
+
/**
|
|
1004
|
+
* @returns {IdentityStats}
|
|
1005
|
+
*/
|
|
1006
|
+
apiIdentityStatistics() {
|
|
1007
|
+
const ret = wasm.client_apiIdentityStatistics(this.__wbg_ptr);
|
|
1008
|
+
return IdentityStats.__wrap(ret);
|
|
1009
|
+
}
|
|
1010
|
+
/**
|
|
1011
|
+
* @returns {string}
|
|
1012
|
+
*/
|
|
1013
|
+
apiAggregateStatistics() {
|
|
1014
|
+
let deferred1_0;
|
|
1015
|
+
let deferred1_1;
|
|
1016
|
+
try {
|
|
1017
|
+
const ret = wasm.client_apiAggregateStatistics(this.__wbg_ptr);
|
|
1018
|
+
deferred1_0 = ret[0];
|
|
1019
|
+
deferred1_1 = ret[1];
|
|
1020
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
1021
|
+
} finally {
|
|
1022
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
1023
|
+
}
|
|
1024
|
+
}
|
|
1025
|
+
clearAllStatistics() {
|
|
1026
|
+
wasm.client_clearAllStatistics(this.__wbg_ptr);
|
|
1027
|
+
}
|
|
1028
|
+
/**
|
|
1029
|
+
* @param {string} server_url
|
|
1030
|
+
* @returns {Promise<string>}
|
|
1031
|
+
*/
|
|
1032
|
+
uploadDebugArchive(server_url) {
|
|
1033
|
+
const ptr0 = passStringToWasm0(server_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1034
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1035
|
+
const ret = wasm.client_uploadDebugArchive(this.__wbg_ptr, ptr0, len0);
|
|
1036
|
+
return ret;
|
|
1037
|
+
}
|
|
1038
1038
|
}
|
|
1039
1039
|
|
|
1040
1040
|
const ConsentFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
@@ -5415,19 +5415,19 @@ function __wbg_get_imports() {
|
|
|
5415
5415
|
const ret = arg0.now();
|
|
5416
5416
|
return ret;
|
|
5417
5417
|
};
|
|
5418
|
-
imports.wbg.
|
|
5418
|
+
imports.wbg.__wbg_onconsentupdate_57b0e2a5b6687f62 = function(arg0, arg1) {
|
|
5419
5419
|
arg0.on_consent_update(arg1);
|
|
5420
5420
|
};
|
|
5421
|
-
imports.wbg.
|
|
5421
|
+
imports.wbg.__wbg_onconversation_77e567d244b808cd = function(arg0, arg1) {
|
|
5422
5422
|
arg0.on_conversation(Conversation.__wrap(arg1));
|
|
5423
5423
|
};
|
|
5424
|
-
imports.wbg.
|
|
5424
|
+
imports.wbg.__wbg_onerror_8f5b5ea0b061aa86 = function(arg0, arg1) {
|
|
5425
5425
|
arg0.on_error(arg1);
|
|
5426
5426
|
};
|
|
5427
|
-
imports.wbg.
|
|
5427
|
+
imports.wbg.__wbg_onmessage_b9d355419fb4e351 = function(arg0, arg1) {
|
|
5428
5428
|
arg0.on_message(Message.__wrap(arg1));
|
|
5429
5429
|
};
|
|
5430
|
-
imports.wbg.
|
|
5430
|
+
imports.wbg.__wbg_onuserpreferenceupdate_4439b6766737e95d = function(arg0, arg1, arg2) {
|
|
5431
5431
|
var v0 = getArrayJsValueFromWasm0(arg1, arg2).slice();
|
|
5432
5432
|
wasm.__wbindgen_free(arg1, arg2 * 4, 4);
|
|
5433
5433
|
arg0.on_user_preference_update(v0);
|
|
@@ -5714,16 +5714,16 @@ function __wbg_get_imports() {
|
|
|
5714
5714
|
const ret = false;
|
|
5715
5715
|
return ret;
|
|
5716
5716
|
};
|
|
5717
|
-
imports.wbg.
|
|
5718
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
5717
|
+
imports.wbg.__wbindgen_closure_wrapper18655 = function(arg0, arg1, arg2) {
|
|
5718
|
+
const ret = makeMutClosure(arg0, arg1, 4642, __wbg_adapter_50);
|
|
5719
5719
|
return ret;
|
|
5720
5720
|
};
|
|
5721
|
-
imports.wbg.
|
|
5722
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
5721
|
+
imports.wbg.__wbindgen_closure_wrapper21865 = function(arg0, arg1, arg2) {
|
|
5722
|
+
const ret = makeMutClosure(arg0, arg1, 4996, __wbg_adapter_53);
|
|
5723
5723
|
return ret;
|
|
5724
5724
|
};
|
|
5725
|
-
imports.wbg.
|
|
5726
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
5725
|
+
imports.wbg.__wbindgen_closure_wrapper21954 = function(arg0, arg1, arg2) {
|
|
5726
|
+
const ret = makeMutClosure(arg0, arg1, 5005, __wbg_adapter_56);
|
|
5727
5727
|
return ret;
|
|
5728
5728
|
};
|
|
5729
5729
|
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
|
Binary file
|
|
@@ -1,99 +1,6 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
|
-
export const __wbg_opfs_free: (a: number, b: number) => void;
|
|
5
|
-
export const opfs_init_sqlite_opfs: () => any;
|
|
6
|
-
export const opfs_exists: () => number;
|
|
7
|
-
export const opfs_error: () => [number, number];
|
|
8
|
-
export const opfs_wipeFiles: () => any;
|
|
9
|
-
export const opfs_rm: (a: number, b: number) => [number, number, number];
|
|
10
|
-
export const opfs_getFileNames: () => [number, number];
|
|
11
|
-
export const opfs_importDb: (a: number, b: number, c: number, d: number) => [number, number];
|
|
12
|
-
export const opfs_exportFile: (a: number, b: number) => [number, number, number, number];
|
|
13
|
-
export const opfs_getFileCount: () => number;
|
|
14
|
-
export const opfs_getCapacity: () => number;
|
|
15
|
-
export const opfs_addCapacity: (a: number) => any;
|
|
16
|
-
export const opfs_reduceCapacity: (a: number) => any;
|
|
17
|
-
export const __wbg_client_free: (a: number, b: number) => void;
|
|
18
|
-
export const __wbg_logoptions_free: (a: number, b: number) => void;
|
|
19
|
-
export const __wbg_get_logoptions_structured: (a: number) => number;
|
|
20
|
-
export const __wbg_set_logoptions_structured: (a: number, b: number) => void;
|
|
21
|
-
export const __wbg_get_logoptions_performance: (a: number) => number;
|
|
22
|
-
export const __wbg_set_logoptions_performance: (a: number, b: number) => void;
|
|
23
|
-
export const __wbg_get_logoptions_level: (a: number) => number;
|
|
24
|
-
export const __wbg_set_logoptions_level: (a: number, b: number) => void;
|
|
25
|
-
export const logoptions_new: (a: number, b: number, c: number) => number;
|
|
26
|
-
export const createClient: (a: number, b: number, c: number, d: number, e: any, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number) => any;
|
|
27
|
-
export const client_accountIdentifier: (a: number) => any;
|
|
28
|
-
export const client_inboxId: (a: number) => [number, number];
|
|
29
|
-
export const client_isRegistered: (a: number) => number;
|
|
30
|
-
export const client_installationId: (a: number) => [number, number];
|
|
31
|
-
export const client_installationIdBytes: (a: number) => any;
|
|
32
|
-
export const client_canMessage: (a: number, b: number, c: number) => any;
|
|
33
|
-
export const client_sendSyncRequest: (a: number) => any;
|
|
34
|
-
export const client_findInboxIdByIdentifier: (a: number, b: any) => any;
|
|
35
|
-
export const client_inboxStateFromInboxIds: (a: number, b: number, c: number, d: number) => any;
|
|
36
|
-
export const client_conversations: (a: number) => number;
|
|
37
|
-
export const client_syncPreferences: (a: number) => any;
|
|
38
|
-
export const client_apiStatistics: (a: number) => number;
|
|
39
|
-
export const client_apiIdentityStatistics: (a: number) => number;
|
|
40
|
-
export const client_apiAggregateStatistics: (a: number) => [number, number];
|
|
41
|
-
export const client_clearAllStatistics: (a: number) => void;
|
|
42
|
-
export const client_uploadDebugArchive: (a: number, b: number, c: number) => any;
|
|
43
|
-
export const __wbg_streamcloser_free: (a: number, b: number) => void;
|
|
44
|
-
export const streamcloser_end: (a: number) => void;
|
|
45
|
-
export const streamcloser_endAndWait: (a: number) => any;
|
|
46
|
-
export const streamcloser_waitForReady: (a: number) => any;
|
|
47
|
-
export const streamcloser_isClosed: (a: number) => number;
|
|
48
|
-
export const __wbg_apistats_free: (a: number, b: number) => void;
|
|
49
|
-
export const __wbg_get_apistats_upload_key_package: (a: number) => bigint;
|
|
50
|
-
export const __wbg_set_apistats_upload_key_package: (a: number, b: bigint) => void;
|
|
51
|
-
export const __wbg_get_apistats_fetch_key_package: (a: number) => bigint;
|
|
52
|
-
export const __wbg_set_apistats_fetch_key_package: (a: number, b: bigint) => void;
|
|
53
|
-
export const __wbg_get_apistats_send_group_messages: (a: number) => bigint;
|
|
54
|
-
export const __wbg_set_apistats_send_group_messages: (a: number, b: bigint) => void;
|
|
55
|
-
export const __wbg_get_apistats_send_welcome_messages: (a: number) => bigint;
|
|
56
|
-
export const __wbg_set_apistats_send_welcome_messages: (a: number, b: bigint) => void;
|
|
57
|
-
export const __wbg_get_apistats_query_group_messages: (a: number) => bigint;
|
|
58
|
-
export const __wbg_set_apistats_query_group_messages: (a: number, b: bigint) => void;
|
|
59
|
-
export const __wbg_get_apistats_query_welcome_messages: (a: number) => bigint;
|
|
60
|
-
export const __wbg_set_apistats_query_welcome_messages: (a: number, b: bigint) => void;
|
|
61
|
-
export const __wbg_get_apistats_subscribe_messages: (a: number) => bigint;
|
|
62
|
-
export const __wbg_set_apistats_subscribe_messages: (a: number, b: bigint) => void;
|
|
63
|
-
export const __wbg_get_apistats_subscribe_welcomes: (a: number) => bigint;
|
|
64
|
-
export const __wbg_set_apistats_subscribe_welcomes: (a: number, b: bigint) => void;
|
|
65
|
-
export const __wbg_identitystats_free: (a: number, b: number) => void;
|
|
66
|
-
export const getInboxIdForIdentifier: (a: number, b: number, c: any) => any;
|
|
67
|
-
export const generateInboxId: (a: any) => [number, number, number, number];
|
|
68
|
-
export const __wbg_permissionpolicyset_free: (a: number, b: number) => void;
|
|
69
|
-
export const __wbg_get_permissionpolicyset_addMemberPolicy: (a: number) => number;
|
|
70
|
-
export const __wbg_set_permissionpolicyset_addMemberPolicy: (a: number, b: number) => void;
|
|
71
|
-
export const __wbg_get_permissionpolicyset_removeMemberPolicy: (a: number) => number;
|
|
72
|
-
export const __wbg_set_permissionpolicyset_removeMemberPolicy: (a: number, b: number) => void;
|
|
73
|
-
export const __wbg_get_permissionpolicyset_addAdminPolicy: (a: number) => number;
|
|
74
|
-
export const __wbg_set_permissionpolicyset_addAdminPolicy: (a: number, b: number) => void;
|
|
75
|
-
export const __wbg_get_permissionpolicyset_removeAdminPolicy: (a: number) => number;
|
|
76
|
-
export const __wbg_set_permissionpolicyset_removeAdminPolicy: (a: number, b: number) => void;
|
|
77
|
-
export const __wbg_get_permissionpolicyset_updateGroupNamePolicy: (a: number) => number;
|
|
78
|
-
export const __wbg_set_permissionpolicyset_updateGroupNamePolicy: (a: number, b: number) => void;
|
|
79
|
-
export const __wbg_get_permissionpolicyset_updateGroupDescriptionPolicy: (a: number) => number;
|
|
80
|
-
export const __wbg_set_permissionpolicyset_updateGroupDescriptionPolicy: (a: number, b: number) => void;
|
|
81
|
-
export const __wbg_get_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number) => number;
|
|
82
|
-
export const __wbg_set_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number, b: number) => void;
|
|
83
|
-
export const __wbg_get_permissionpolicyset_updateMessageDisappearingPolicy: (a: number) => number;
|
|
84
|
-
export const __wbg_set_permissionpolicyset_updateMessageDisappearingPolicy: (a: number, b: number) => void;
|
|
85
|
-
export const permissionpolicyset_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
86
|
-
export const __wbg_grouppermissions_free: (a: number, b: number) => void;
|
|
87
|
-
export const grouppermissions_policyType: (a: number) => [number, number, number];
|
|
88
|
-
export const grouppermissions_policySet: (a: number) => [number, number, number];
|
|
89
|
-
export const __wbg_set_identitystats_publish_identity_update: (a: number, b: bigint) => void;
|
|
90
|
-
export const __wbg_set_identitystats_get_identity_updates_v2: (a: number, b: bigint) => void;
|
|
91
|
-
export const __wbg_set_identitystats_get_inbox_ids: (a: number, b: bigint) => void;
|
|
92
|
-
export const __wbg_set_identitystats_verify_smart_contract_wallet_signature: (a: number, b: bigint) => void;
|
|
93
|
-
export const __wbg_get_identitystats_publish_identity_update: (a: number) => bigint;
|
|
94
|
-
export const __wbg_get_identitystats_get_identity_updates_v2: (a: number) => bigint;
|
|
95
|
-
export const __wbg_get_identitystats_get_inbox_ids: (a: number) => bigint;
|
|
96
|
-
export const __wbg_get_identitystats_verify_smart_contract_wallet_signature: (a: number) => bigint;
|
|
97
4
|
export const __wbg_consent_free: (a: number, b: number) => void;
|
|
98
5
|
export const __wbg_get_consent_entityType: (a: number) => number;
|
|
99
6
|
export const __wbg_set_consent_entityType: (a: number, b: number) => void;
|
|
@@ -278,6 +185,8 @@ export const __wbg_set_encodedcontent_compression: (a: number, b: number) => voi
|
|
|
278
185
|
export const __wbg_get_encodedcontent_content: (a: number) => any;
|
|
279
186
|
export const __wbg_set_encodedcontent_content: (a: number, b: any) => void;
|
|
280
187
|
export const encodedcontent_new: (a: number, b: any, c: number, d: number, e: number, f: any) => number;
|
|
188
|
+
export const getInboxIdForIdentifier: (a: number, b: number, c: any) => any;
|
|
189
|
+
export const generateInboxId: (a: any) => [number, number, number, number];
|
|
281
190
|
export const __wbg_installation_free: (a: number, b: number) => void;
|
|
282
191
|
export const __wbg_get_installation_bytes: (a: number) => any;
|
|
283
192
|
export const __wbg_set_installation_bytes: (a: number, b: any) => void;
|
|
@@ -388,8 +297,99 @@ export const __wbg_set_listmessagesoptions_sentAfterNs: (a: number, b: number, c
|
|
|
388
297
|
export const __wbg_set_listmessagesoptions_limit: (a: number, b: number, c: bigint) => void;
|
|
389
298
|
export const __wbg_get_creategroupoptions_messageDisappearingSettings: (a: number) => number;
|
|
390
299
|
export const __wbg_get_keypackagestatus_lifetime: (a: number) => number;
|
|
391
|
-
export const __wbg_messagedisappearingsettings_free: (a: number, b: number) => void;
|
|
392
300
|
export const __wbg_set_keypackagestatus_lifetime: (a: number, b: number) => void;
|
|
301
|
+
export const __wbg_messagedisappearingsettings_free: (a: number, b: number) => void;
|
|
302
|
+
export const __wbg_permissionpolicyset_free: (a: number, b: number) => void;
|
|
303
|
+
export const __wbg_get_permissionpolicyset_addMemberPolicy: (a: number) => number;
|
|
304
|
+
export const __wbg_set_permissionpolicyset_addMemberPolicy: (a: number, b: number) => void;
|
|
305
|
+
export const __wbg_get_permissionpolicyset_removeMemberPolicy: (a: number) => number;
|
|
306
|
+
export const __wbg_set_permissionpolicyset_removeMemberPolicy: (a: number, b: number) => void;
|
|
307
|
+
export const __wbg_get_permissionpolicyset_addAdminPolicy: (a: number) => number;
|
|
308
|
+
export const __wbg_set_permissionpolicyset_addAdminPolicy: (a: number, b: number) => void;
|
|
309
|
+
export const __wbg_get_permissionpolicyset_removeAdminPolicy: (a: number) => number;
|
|
310
|
+
export const __wbg_set_permissionpolicyset_removeAdminPolicy: (a: number, b: number) => void;
|
|
311
|
+
export const __wbg_get_permissionpolicyset_updateGroupNamePolicy: (a: number) => number;
|
|
312
|
+
export const __wbg_set_permissionpolicyset_updateGroupNamePolicy: (a: number, b: number) => void;
|
|
313
|
+
export const __wbg_get_permissionpolicyset_updateGroupDescriptionPolicy: (a: number) => number;
|
|
314
|
+
export const __wbg_set_permissionpolicyset_updateGroupDescriptionPolicy: (a: number, b: number) => void;
|
|
315
|
+
export const __wbg_get_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number) => number;
|
|
316
|
+
export const __wbg_set_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number, b: number) => void;
|
|
317
|
+
export const __wbg_get_permissionpolicyset_updateMessageDisappearingPolicy: (a: number) => number;
|
|
318
|
+
export const __wbg_set_permissionpolicyset_updateMessageDisappearingPolicy: (a: number, b: number) => void;
|
|
319
|
+
export const permissionpolicyset_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
320
|
+
export const __wbg_grouppermissions_free: (a: number, b: number) => void;
|
|
321
|
+
export const grouppermissions_policyType: (a: number) => [number, number, number];
|
|
322
|
+
export const grouppermissions_policySet: (a: number) => [number, number, number];
|
|
323
|
+
export const __wbg_client_free: (a: number, b: number) => void;
|
|
324
|
+
export const __wbg_logoptions_free: (a: number, b: number) => void;
|
|
325
|
+
export const __wbg_get_logoptions_structured: (a: number) => number;
|
|
326
|
+
export const __wbg_set_logoptions_structured: (a: number, b: number) => void;
|
|
327
|
+
export const __wbg_get_logoptions_performance: (a: number) => number;
|
|
328
|
+
export const __wbg_set_logoptions_performance: (a: number, b: number) => void;
|
|
329
|
+
export const __wbg_get_logoptions_level: (a: number) => number;
|
|
330
|
+
export const __wbg_set_logoptions_level: (a: number, b: number) => void;
|
|
331
|
+
export const logoptions_new: (a: number, b: number, c: number) => number;
|
|
332
|
+
export const createClient: (a: number, b: number, c: number, d: number, e: any, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number) => any;
|
|
333
|
+
export const client_accountIdentifier: (a: number) => any;
|
|
334
|
+
export const client_inboxId: (a: number) => [number, number];
|
|
335
|
+
export const client_isRegistered: (a: number) => number;
|
|
336
|
+
export const client_installationId: (a: number) => [number, number];
|
|
337
|
+
export const client_installationIdBytes: (a: number) => any;
|
|
338
|
+
export const client_canMessage: (a: number, b: number, c: number) => any;
|
|
339
|
+
export const client_sendSyncRequest: (a: number) => any;
|
|
340
|
+
export const client_findInboxIdByIdentifier: (a: number, b: any) => any;
|
|
341
|
+
export const client_inboxStateFromInboxIds: (a: number, b: number, c: number, d: number) => any;
|
|
342
|
+
export const client_conversations: (a: number) => number;
|
|
343
|
+
export const client_syncPreferences: (a: number) => any;
|
|
344
|
+
export const client_apiStatistics: (a: number) => number;
|
|
345
|
+
export const client_apiIdentityStatistics: (a: number) => number;
|
|
346
|
+
export const client_apiAggregateStatistics: (a: number) => [number, number];
|
|
347
|
+
export const client_clearAllStatistics: (a: number) => void;
|
|
348
|
+
export const client_uploadDebugArchive: (a: number, b: number, c: number) => any;
|
|
349
|
+
export const __wbg_apistats_free: (a: number, b: number) => void;
|
|
350
|
+
export const __wbg_get_apistats_upload_key_package: (a: number) => bigint;
|
|
351
|
+
export const __wbg_set_apistats_upload_key_package: (a: number, b: bigint) => void;
|
|
352
|
+
export const __wbg_get_apistats_fetch_key_package: (a: number) => bigint;
|
|
353
|
+
export const __wbg_set_apistats_fetch_key_package: (a: number, b: bigint) => void;
|
|
354
|
+
export const __wbg_get_apistats_send_group_messages: (a: number) => bigint;
|
|
355
|
+
export const __wbg_set_apistats_send_group_messages: (a: number, b: bigint) => void;
|
|
356
|
+
export const __wbg_get_apistats_send_welcome_messages: (a: number) => bigint;
|
|
357
|
+
export const __wbg_set_apistats_send_welcome_messages: (a: number, b: bigint) => void;
|
|
358
|
+
export const __wbg_get_apistats_query_group_messages: (a: number) => bigint;
|
|
359
|
+
export const __wbg_set_apistats_query_group_messages: (a: number, b: bigint) => void;
|
|
360
|
+
export const __wbg_get_apistats_query_welcome_messages: (a: number) => bigint;
|
|
361
|
+
export const __wbg_set_apistats_query_welcome_messages: (a: number, b: bigint) => void;
|
|
362
|
+
export const __wbg_get_apistats_subscribe_messages: (a: number) => bigint;
|
|
363
|
+
export const __wbg_set_apistats_subscribe_messages: (a: number, b: bigint) => void;
|
|
364
|
+
export const __wbg_get_apistats_subscribe_welcomes: (a: number) => bigint;
|
|
365
|
+
export const __wbg_set_apistats_subscribe_welcomes: (a: number, b: bigint) => void;
|
|
366
|
+
export const __wbg_identitystats_free: (a: number, b: number) => void;
|
|
367
|
+
export const __wbg_opfs_free: (a: number, b: number) => void;
|
|
368
|
+
export const opfs_init_sqlite_opfs: () => any;
|
|
369
|
+
export const opfs_exists: () => number;
|
|
370
|
+
export const opfs_error: () => [number, number];
|
|
371
|
+
export const opfs_wipeFiles: () => any;
|
|
372
|
+
export const opfs_rm: (a: number, b: number) => [number, number, number];
|
|
373
|
+
export const opfs_getFileNames: () => [number, number];
|
|
374
|
+
export const opfs_importDb: (a: number, b: number, c: number, d: number) => [number, number];
|
|
375
|
+
export const opfs_exportFile: (a: number, b: number) => [number, number, number, number];
|
|
376
|
+
export const opfs_getFileCount: () => number;
|
|
377
|
+
export const opfs_getCapacity: () => number;
|
|
378
|
+
export const opfs_addCapacity: (a: number) => any;
|
|
379
|
+
export const opfs_reduceCapacity: (a: number) => any;
|
|
380
|
+
export const __wbg_streamcloser_free: (a: number, b: number) => void;
|
|
381
|
+
export const streamcloser_end: (a: number) => void;
|
|
382
|
+
export const streamcloser_endAndWait: (a: number) => any;
|
|
383
|
+
export const streamcloser_waitForReady: (a: number) => any;
|
|
384
|
+
export const streamcloser_isClosed: (a: number) => number;
|
|
385
|
+
export const __wbg_set_identitystats_publish_identity_update: (a: number, b: bigint) => void;
|
|
386
|
+
export const __wbg_set_identitystats_get_identity_updates_v2: (a: number, b: bigint) => void;
|
|
387
|
+
export const __wbg_set_identitystats_get_inbox_ids: (a: number, b: bigint) => void;
|
|
388
|
+
export const __wbg_set_identitystats_verify_smart_contract_wallet_signature: (a: number, b: bigint) => void;
|
|
389
|
+
export const __wbg_get_identitystats_publish_identity_update: (a: number) => bigint;
|
|
390
|
+
export const __wbg_get_identitystats_get_identity_updates_v2: (a: number) => bigint;
|
|
391
|
+
export const __wbg_get_identitystats_get_inbox_ids: (a: number) => bigint;
|
|
392
|
+
export const __wbg_get_identitystats_verify_smart_contract_wallet_signature: (a: number) => bigint;
|
|
393
393
|
export const rust_zstd_wasm_shim_qsort: (a: number, b: number, c: number, d: number) => void;
|
|
394
394
|
export const rust_zstd_wasm_shim_malloc: (a: number) => number;
|
|
395
395
|
export const rust_zstd_wasm_shim_memcmp: (a: number, b: number, c: number) => number;
|
|
@@ -432,7 +432,7 @@ export const __externref_drop_slice: (a: number, b: number) => void;
|
|
|
432
432
|
export const __wbindgen_export_7: WebAssembly.Table;
|
|
433
433
|
export const __externref_table_dealloc: (a: number) => void;
|
|
434
434
|
export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h2bc8eabc61c14181: (a: number, b: number) => void;
|
|
435
|
-
export const
|
|
435
|
+
export const closure4995_externref_shim: (a: number, b: number, c: any) => void;
|
|
436
436
|
export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h912129f7a2cf8b7b: (a: number, b: number) => void;
|
|
437
|
-
export const
|
|
437
|
+
export const closure5946_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
438
438
|
export const __wbindgen_start: () => void;
|
package/dist/version.json
CHANGED