@xmtp/wasm-bindings 1.2.4 → 1.2.6
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 +103 -103
- package/dist/bindings_wasm.js +242 -241
- package/dist/bindings_wasm_bg.wasm +0 -0
- package/dist/bindings_wasm_bg.wasm.d.ts +86 -86
- 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
|
|
4
|
-
export function generateInboxId(accountIdentifier: Identifier): string;
|
|
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): Promise<Client>;
|
|
5
4
|
export function encodeMultiRemoteAttachment(multiRemoteAttachment: MultiRemoteAttachment): Uint8Array;
|
|
6
5
|
export function decodeMultiRemoteAttachment(bytes: Uint8Array): MultiRemoteAttachment;
|
|
7
6
|
export function encodeReaction(reaction: Reaction): Uint8Array;
|
|
8
7
|
export function decodeReaction(bytes: Uint8Array): Reaction;
|
|
8
|
+
export function getInboxIdForIdentifier(host: string, accountIdentifier: Identifier): Promise<string | undefined>;
|
|
9
|
+
export function generateInboxId(accountIdentifier: Identifier): string;
|
|
9
10
|
export function inboxStateFromInboxIds(host: string, inbox_ids: string[]): Promise<InboxState[]>;
|
|
10
11
|
export function verifySignedWithPublicKey(signature_text: string, signature_bytes: Uint8Array, public_key: Uint8Array): void;
|
|
11
12
|
export function revokeInstallationsSignatureRequest(host: string, recovery_identifier: Identifier, inbox_id: string, installation_ids: Uint8Array[]): Promise<SignatureRequestHandle>;
|
|
12
13
|
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): Promise<Client>;
|
|
14
14
|
export enum ConsentEntityType {
|
|
15
15
|
GroupId = 0,
|
|
16
16
|
InboxId = 1,
|
|
@@ -131,6 +131,20 @@ 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>;
|
|
134
148
|
setConsentStates(records: Consent[]): Promise<void>;
|
|
135
149
|
getConsentState(entity_type: ConsentEntityType, entity: string): Promise<ConsentState>;
|
|
136
150
|
/**
|
|
@@ -161,20 +175,6 @@ export class Client {
|
|
|
161
175
|
registerIdentity(signature_request: SignatureRequestHandle): Promise<void>;
|
|
162
176
|
signWithInstallationKey(signature_text: string): Uint8Array;
|
|
163
177
|
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;
|
|
@@ -609,34 +609,53 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
|
|
|
609
609
|
|
|
610
610
|
export interface InitOutput {
|
|
611
611
|
readonly memory: WebAssembly.Memory;
|
|
612
|
-
readonly
|
|
613
|
-
readonly
|
|
614
|
-
readonly
|
|
615
|
-
readonly
|
|
616
|
-
readonly
|
|
617
|
-
readonly
|
|
618
|
-
readonly
|
|
619
|
-
readonly
|
|
620
|
-
readonly
|
|
621
|
-
readonly
|
|
622
|
-
readonly
|
|
623
|
-
readonly
|
|
624
|
-
readonly
|
|
625
|
-
readonly
|
|
626
|
-
readonly
|
|
627
|
-
readonly
|
|
628
|
-
readonly
|
|
629
|
-
readonly
|
|
630
|
-
readonly
|
|
631
|
-
readonly
|
|
632
|
-
readonly
|
|
633
|
-
readonly
|
|
634
|
-
readonly
|
|
635
|
-
readonly
|
|
636
|
-
readonly
|
|
637
|
-
readonly
|
|
638
|
-
readonly
|
|
639
|
-
readonly
|
|
612
|
+
readonly __wbg_permissionpolicyset_free: (a: number, b: number) => void;
|
|
613
|
+
readonly __wbg_get_permissionpolicyset_addMemberPolicy: (a: number) => number;
|
|
614
|
+
readonly __wbg_set_permissionpolicyset_addMemberPolicy: (a: number, b: number) => void;
|
|
615
|
+
readonly __wbg_get_permissionpolicyset_removeMemberPolicy: (a: number) => number;
|
|
616
|
+
readonly __wbg_set_permissionpolicyset_removeMemberPolicy: (a: number, b: number) => void;
|
|
617
|
+
readonly __wbg_get_permissionpolicyset_addAdminPolicy: (a: number) => number;
|
|
618
|
+
readonly __wbg_set_permissionpolicyset_addAdminPolicy: (a: number, b: number) => void;
|
|
619
|
+
readonly __wbg_get_permissionpolicyset_removeAdminPolicy: (a: number) => number;
|
|
620
|
+
readonly __wbg_set_permissionpolicyset_removeAdminPolicy: (a: number, b: number) => void;
|
|
621
|
+
readonly __wbg_get_permissionpolicyset_updateGroupNamePolicy: (a: number) => number;
|
|
622
|
+
readonly __wbg_set_permissionpolicyset_updateGroupNamePolicy: (a: number, b: number) => void;
|
|
623
|
+
readonly __wbg_get_permissionpolicyset_updateGroupDescriptionPolicy: (a: number) => number;
|
|
624
|
+
readonly __wbg_set_permissionpolicyset_updateGroupDescriptionPolicy: (a: number, b: number) => void;
|
|
625
|
+
readonly __wbg_get_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number) => number;
|
|
626
|
+
readonly __wbg_set_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number, b: number) => void;
|
|
627
|
+
readonly __wbg_get_permissionpolicyset_updateMessageDisappearingPolicy: (a: number) => number;
|
|
628
|
+
readonly __wbg_set_permissionpolicyset_updateMessageDisappearingPolicy: (a: number, b: number) => void;
|
|
629
|
+
readonly permissionpolicyset_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
630
|
+
readonly __wbg_grouppermissions_free: (a: number, b: number) => void;
|
|
631
|
+
readonly grouppermissions_policyType: (a: number) => [number, number, number];
|
|
632
|
+
readonly grouppermissions_policySet: (a: number) => [number, number, number];
|
|
633
|
+
readonly __wbg_client_free: (a: number, b: number) => void;
|
|
634
|
+
readonly __wbg_logoptions_free: (a: number, b: number) => void;
|
|
635
|
+
readonly __wbg_get_logoptions_structured: (a: number) => number;
|
|
636
|
+
readonly __wbg_set_logoptions_structured: (a: number, b: number) => void;
|
|
637
|
+
readonly __wbg_get_logoptions_performance: (a: number) => number;
|
|
638
|
+
readonly __wbg_set_logoptions_performance: (a: number, b: number) => void;
|
|
639
|
+
readonly __wbg_get_logoptions_level: (a: number) => number;
|
|
640
|
+
readonly __wbg_set_logoptions_level: (a: number, b: number) => void;
|
|
641
|
+
readonly logoptions_new: (a: number, b: number, c: number) => number;
|
|
642
|
+
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) => any;
|
|
643
|
+
readonly client_accountIdentifier: (a: number) => any;
|
|
644
|
+
readonly client_inboxId: (a: number) => [number, number];
|
|
645
|
+
readonly client_isRegistered: (a: number) => number;
|
|
646
|
+
readonly client_installationId: (a: number) => [number, number];
|
|
647
|
+
readonly client_installationIdBytes: (a: number) => any;
|
|
648
|
+
readonly client_canMessage: (a: number, b: number, c: number) => any;
|
|
649
|
+
readonly client_sendSyncRequest: (a: number) => any;
|
|
650
|
+
readonly client_findInboxIdByIdentifier: (a: number, b: any) => any;
|
|
651
|
+
readonly client_inboxStateFromInboxIds: (a: number, b: number, c: number, d: number) => any;
|
|
652
|
+
readonly client_conversations: (a: number) => number;
|
|
653
|
+
readonly client_syncPreferences: (a: number) => any;
|
|
654
|
+
readonly client_apiStatistics: (a: number) => number;
|
|
655
|
+
readonly client_apiIdentityStatistics: (a: number) => number;
|
|
656
|
+
readonly client_apiAggregateStatistics: (a: number) => [number, number];
|
|
657
|
+
readonly client_clearAllStatistics: (a: number) => void;
|
|
658
|
+
readonly client_uploadDebugArchive: (a: number, b: number, c: number) => any;
|
|
640
659
|
readonly __wbg_consent_free: (a: number, b: number) => void;
|
|
641
660
|
readonly __wbg_get_consent_entityType: (a: number) => number;
|
|
642
661
|
readonly __wbg_set_consent_entityType: (a: number, b: number) => void;
|
|
@@ -751,8 +770,6 @@ export interface InitOutput {
|
|
|
751
770
|
readonly __wbg_messagedisappearingsettings_free: (a: number, b: number) => void;
|
|
752
771
|
readonly messagedisappearingsettings_new: (a: bigint, b: bigint) => number;
|
|
753
772
|
readonly __wbg_conversationdebuginfo_free: (a: number, b: number) => void;
|
|
754
|
-
readonly __wbg_get_conversationdebuginfo_epoch: (a: number) => bigint;
|
|
755
|
-
readonly __wbg_set_conversationdebuginfo_epoch: (a: number, b: bigint) => void;
|
|
756
773
|
readonly __wbg_get_conversationdebuginfo_maybeForked: (a: number) => number;
|
|
757
774
|
readonly __wbg_set_conversationdebuginfo_maybeForked: (a: number, b: number) => void;
|
|
758
775
|
readonly __wbg_set_conversationdebuginfo_forkDetails: (a: number, b: number, c: number) => void;
|
|
@@ -818,6 +835,26 @@ export interface InitOutput {
|
|
|
818
835
|
readonly __wbg_get_encodedcontent_content: (a: number) => any;
|
|
819
836
|
readonly __wbg_set_encodedcontent_content: (a: number, b: any) => void;
|
|
820
837
|
readonly encodedcontent_new: (a: number, b: any, c: number, d: number, e: number, f: any) => number;
|
|
838
|
+
readonly __wbg_apistats_free: (a: number, b: number) => void;
|
|
839
|
+
readonly __wbg_get_apistats_upload_key_package: (a: number) => bigint;
|
|
840
|
+
readonly __wbg_set_apistats_upload_key_package: (a: number, b: bigint) => void;
|
|
841
|
+
readonly __wbg_get_apistats_fetch_key_package: (a: number) => bigint;
|
|
842
|
+
readonly __wbg_set_apistats_fetch_key_package: (a: number, b: bigint) => void;
|
|
843
|
+
readonly __wbg_get_apistats_send_group_messages: (a: number) => bigint;
|
|
844
|
+
readonly __wbg_set_apistats_send_group_messages: (a: number, b: bigint) => void;
|
|
845
|
+
readonly __wbg_get_apistats_send_welcome_messages: (a: number) => bigint;
|
|
846
|
+
readonly __wbg_set_apistats_send_welcome_messages: (a: number, b: bigint) => void;
|
|
847
|
+
readonly __wbg_get_apistats_query_group_messages: (a: number) => bigint;
|
|
848
|
+
readonly __wbg_set_apistats_query_group_messages: (a: number, b: bigint) => void;
|
|
849
|
+
readonly __wbg_get_apistats_query_welcome_messages: (a: number) => bigint;
|
|
850
|
+
readonly __wbg_set_apistats_query_welcome_messages: (a: number, b: bigint) => void;
|
|
851
|
+
readonly __wbg_get_apistats_subscribe_messages: (a: number) => bigint;
|
|
852
|
+
readonly __wbg_set_apistats_subscribe_messages: (a: number, b: bigint) => void;
|
|
853
|
+
readonly __wbg_get_apistats_subscribe_welcomes: (a: number) => bigint;
|
|
854
|
+
readonly __wbg_set_apistats_subscribe_welcomes: (a: number, b: bigint) => void;
|
|
855
|
+
readonly __wbg_identitystats_free: (a: number, b: number) => void;
|
|
856
|
+
readonly getInboxIdForIdentifier: (a: number, b: number, c: any) => any;
|
|
857
|
+
readonly generateInboxId: (a: any) => [number, number, number, number];
|
|
821
858
|
readonly __wbg_installation_free: (a: number, b: number) => void;
|
|
822
859
|
readonly __wbg_get_installation_bytes: (a: number) => any;
|
|
823
860
|
readonly __wbg_set_installation_bytes: (a: number, b: any) => void;
|
|
@@ -839,8 +876,6 @@ export interface InitOutput {
|
|
|
839
876
|
readonly __wbg_get_keypackagestatus_validationError: (a: number) => [number, number];
|
|
840
877
|
readonly __wbg_set_keypackagestatus_validationError: (a: number, b: number, c: number) => void;
|
|
841
878
|
readonly __wbg_lifetime_free: (a: number, b: number) => void;
|
|
842
|
-
readonly __wbg_get_lifetime_not_after: (a: number) => bigint;
|
|
843
|
-
readonly __wbg_set_lifetime_not_after: (a: number, b: bigint) => void;
|
|
844
879
|
readonly inboxStateFromInboxIds: (a: number, b: number, c: number, d: number) => any;
|
|
845
880
|
readonly client_inboxState: (a: number, b: number) => any;
|
|
846
881
|
readonly client_getLatestInboxState: (a: number, b: number, c: number) => any;
|
|
@@ -925,13 +960,25 @@ export interface InitOutput {
|
|
|
925
960
|
readonly __wbg_set_inboxstate_inboxId: (a: number, b: number, c: number) => void;
|
|
926
961
|
readonly __wbg_set_messagedisappearingsettings_fromNs: (a: number, b: bigint) => void;
|
|
927
962
|
readonly __wbg_set_hmackey_epoch: (a: number, b: bigint) => void;
|
|
928
|
-
readonly
|
|
963
|
+
readonly __wbg_set_conversationdebuginfo_epoch: (a: number, b: bigint) => void;
|
|
929
964
|
readonly __wbg_set_messagedisappearingsettings_inNs: (a: number, b: bigint) => void;
|
|
965
|
+
readonly __wbg_set_identitystats_publish_identity_update: (a: number, b: bigint) => void;
|
|
966
|
+
readonly __wbg_set_identitystats_get_identity_updates_v2: (a: number, b: bigint) => void;
|
|
967
|
+
readonly __wbg_set_identitystats_get_inbox_ids: (a: number, b: bigint) => void;
|
|
968
|
+
readonly __wbg_set_identitystats_verify_smart_contract_wallet_signature: (a: number, b: bigint) => void;
|
|
969
|
+
readonly __wbg_set_lifetime_not_before: (a: number, b: bigint) => void;
|
|
970
|
+
readonly __wbg_set_lifetime_not_after: (a: number, b: bigint) => void;
|
|
930
971
|
readonly __wbg_set_message_sentAtNs: (a: number, b: bigint) => void;
|
|
931
972
|
readonly __wbg_get_messagedisappearingsettings_fromNs: (a: number) => bigint;
|
|
932
973
|
readonly __wbg_get_hmackey_epoch: (a: number) => bigint;
|
|
933
|
-
readonly
|
|
974
|
+
readonly __wbg_get_conversationdebuginfo_epoch: (a: number) => bigint;
|
|
934
975
|
readonly __wbg_get_messagedisappearingsettings_inNs: (a: number) => bigint;
|
|
976
|
+
readonly __wbg_get_identitystats_publish_identity_update: (a: number) => bigint;
|
|
977
|
+
readonly __wbg_get_identitystats_get_identity_updates_v2: (a: number) => bigint;
|
|
978
|
+
readonly __wbg_get_identitystats_get_inbox_ids: (a: number) => bigint;
|
|
979
|
+
readonly __wbg_get_identitystats_verify_smart_contract_wallet_signature: (a: number) => bigint;
|
|
980
|
+
readonly __wbg_get_lifetime_not_before: (a: number) => bigint;
|
|
981
|
+
readonly __wbg_get_lifetime_not_after: (a: number) => bigint;
|
|
935
982
|
readonly __wbg_get_message_sentAtNs: (a: number) => bigint;
|
|
936
983
|
readonly __wbg_set_creategroupoptions_messageDisappearingSettings: (a: number, b: number) => void;
|
|
937
984
|
readonly __wbg_get_remoteattachmentinfo_secret: (a: number) => any;
|
|
@@ -947,53 +994,6 @@ export interface InitOutput {
|
|
|
947
994
|
readonly streamcloser_endAndWait: (a: number) => any;
|
|
948
995
|
readonly streamcloser_waitForReady: (a: number) => any;
|
|
949
996
|
readonly streamcloser_isClosed: (a: number) => number;
|
|
950
|
-
readonly __wbg_client_free: (a: number, b: number) => void;
|
|
951
|
-
readonly __wbg_logoptions_free: (a: number, b: number) => void;
|
|
952
|
-
readonly __wbg_get_logoptions_structured: (a: number) => number;
|
|
953
|
-
readonly __wbg_set_logoptions_structured: (a: number, b: number) => void;
|
|
954
|
-
readonly __wbg_get_logoptions_performance: (a: number) => number;
|
|
955
|
-
readonly __wbg_set_logoptions_performance: (a: number, b: number) => void;
|
|
956
|
-
readonly __wbg_get_logoptions_level: (a: number) => number;
|
|
957
|
-
readonly __wbg_set_logoptions_level: (a: number, b: number) => void;
|
|
958
|
-
readonly logoptions_new: (a: number, b: number, c: number) => number;
|
|
959
|
-
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) => any;
|
|
960
|
-
readonly client_accountIdentifier: (a: number) => any;
|
|
961
|
-
readonly client_inboxId: (a: number) => [number, number];
|
|
962
|
-
readonly client_isRegistered: (a: number) => number;
|
|
963
|
-
readonly client_installationId: (a: number) => [number, number];
|
|
964
|
-
readonly client_installationIdBytes: (a: number) => any;
|
|
965
|
-
readonly client_canMessage: (a: number, b: number, c: number) => any;
|
|
966
|
-
readonly client_sendSyncRequest: (a: number) => any;
|
|
967
|
-
readonly client_findInboxIdByIdentifier: (a: number, b: any) => any;
|
|
968
|
-
readonly client_inboxStateFromInboxIds: (a: number, b: number, c: number, d: number) => any;
|
|
969
|
-
readonly client_conversations: (a: number) => number;
|
|
970
|
-
readonly client_syncPreferences: (a: number) => any;
|
|
971
|
-
readonly client_apiStatistics: (a: number) => number;
|
|
972
|
-
readonly client_apiIdentityStatistics: (a: number) => number;
|
|
973
|
-
readonly client_apiAggregateStatistics: (a: number) => [number, number];
|
|
974
|
-
readonly client_clearAllStatistics: (a: number) => void;
|
|
975
|
-
readonly client_uploadDebugArchive: (a: number, b: number, c: number) => any;
|
|
976
|
-
readonly __wbg_permissionpolicyset_free: (a: number, b: number) => void;
|
|
977
|
-
readonly __wbg_get_permissionpolicyset_addMemberPolicy: (a: number) => number;
|
|
978
|
-
readonly __wbg_set_permissionpolicyset_addMemberPolicy: (a: number, b: number) => void;
|
|
979
|
-
readonly __wbg_get_permissionpolicyset_removeMemberPolicy: (a: number) => number;
|
|
980
|
-
readonly __wbg_set_permissionpolicyset_removeMemberPolicy: (a: number, b: number) => void;
|
|
981
|
-
readonly __wbg_get_permissionpolicyset_addAdminPolicy: (a: number) => number;
|
|
982
|
-
readonly __wbg_set_permissionpolicyset_addAdminPolicy: (a: number, b: number) => void;
|
|
983
|
-
readonly __wbg_get_permissionpolicyset_removeAdminPolicy: (a: number) => number;
|
|
984
|
-
readonly __wbg_set_permissionpolicyset_removeAdminPolicy: (a: number, b: number) => void;
|
|
985
|
-
readonly __wbg_get_permissionpolicyset_updateGroupNamePolicy: (a: number) => number;
|
|
986
|
-
readonly __wbg_set_permissionpolicyset_updateGroupNamePolicy: (a: number, b: number) => void;
|
|
987
|
-
readonly __wbg_get_permissionpolicyset_updateGroupDescriptionPolicy: (a: number) => number;
|
|
988
|
-
readonly __wbg_set_permissionpolicyset_updateGroupDescriptionPolicy: (a: number, b: number) => void;
|
|
989
|
-
readonly __wbg_get_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number) => number;
|
|
990
|
-
readonly __wbg_set_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number, b: number) => void;
|
|
991
|
-
readonly __wbg_get_permissionpolicyset_updateMessageDisappearingPolicy: (a: number) => number;
|
|
992
|
-
readonly __wbg_set_permissionpolicyset_updateMessageDisappearingPolicy: (a: number, b: number) => void;
|
|
993
|
-
readonly permissionpolicyset_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
994
|
-
readonly __wbg_grouppermissions_free: (a: number, b: number) => void;
|
|
995
|
-
readonly grouppermissions_policyType: (a: number) => [number, number, number];
|
|
996
|
-
readonly grouppermissions_policySet: (a: number) => [number, number, number];
|
|
997
997
|
readonly rust_zstd_wasm_shim_qsort: (a: number, b: number, c: number, d: number) => void;
|
|
998
998
|
readonly rust_zstd_wasm_shim_malloc: (a: number) => number;
|
|
999
999
|
readonly rust_zstd_wasm_shim_memcmp: (a: number, b: number, c: number) => number;
|
|
@@ -1035,11 +1035,11 @@ export interface InitOutput {
|
|
|
1035
1035
|
readonly __externref_drop_slice: (a: number, b: number) => void;
|
|
1036
1036
|
readonly __wbindgen_export_7: WebAssembly.Table;
|
|
1037
1037
|
readonly __externref_table_dealloc: (a: number) => void;
|
|
1038
|
-
readonly
|
|
1039
|
-
readonly
|
|
1040
|
-
readonly
|
|
1041
|
-
readonly
|
|
1042
|
-
readonly
|
|
1038
|
+
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h7e9b1d0be1909a89: (a: number, b: number) => void;
|
|
1039
|
+
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hd7b727abd95da937: (a: number, b: number) => void;
|
|
1040
|
+
readonly closure4609_externref_shim: (a: number, b: number, c: any) => void;
|
|
1041
|
+
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hc6500cfda1685f15: (a: number, b: number) => void;
|
|
1042
|
+
readonly closure5567_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
1043
1043
|
readonly __wbindgen_start: () => void;
|
|
1044
1044
|
}
|
|
1045
1045
|
|
package/dist/bindings_wasm.js
CHANGED
|
@@ -215,44 +215,46 @@ function debugString(val) {
|
|
|
215
215
|
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
216
216
|
return className;
|
|
217
217
|
}
|
|
218
|
-
/**
|
|
219
|
-
* @param {string} host
|
|
220
|
-
* @param {Identifier} accountIdentifier
|
|
221
|
-
* @returns {Promise<string | undefined>}
|
|
222
|
-
*/
|
|
223
|
-
export function getInboxIdForIdentifier(host, accountIdentifier) {
|
|
224
|
-
const ptr0 = passStringToWasm0(host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
225
|
-
const len0 = WASM_VECTOR_LEN;
|
|
226
|
-
const ret = wasm.getInboxIdForIdentifier(ptr0, len0, accountIdentifier);
|
|
227
|
-
return ret;
|
|
228
|
-
}
|
|
229
218
|
|
|
230
219
|
function takeFromExternrefTable0(idx) {
|
|
231
220
|
const value = wasm.__wbindgen_export_4.get(idx);
|
|
232
221
|
wasm.__externref_table_dealloc(idx);
|
|
233
222
|
return value;
|
|
234
223
|
}
|
|
224
|
+
|
|
225
|
+
function _assertClass(instance, klass) {
|
|
226
|
+
if (!(instance instanceof klass)) {
|
|
227
|
+
throw new Error(`expected instance of ${klass.name}`);
|
|
228
|
+
}
|
|
229
|
+
}
|
|
235
230
|
/**
|
|
236
|
-
* @param {
|
|
237
|
-
* @
|
|
231
|
+
* @param {string} host
|
|
232
|
+
* @param {string} inbox_id
|
|
233
|
+
* @param {Identifier} account_identifier
|
|
234
|
+
* @param {string | null} [db_path]
|
|
235
|
+
* @param {Uint8Array | null} [encryption_key]
|
|
236
|
+
* @param {string | null} [device_sync_server_url]
|
|
237
|
+
* @param {DeviceSyncWorkerMode | null} [device_sync_worker_mode]
|
|
238
|
+
* @param {LogOptions | null} [log_options]
|
|
239
|
+
* @param {boolean | null} [allow_offline]
|
|
240
|
+
* @returns {Promise<Client>}
|
|
238
241
|
*/
|
|
239
|
-
export function
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
return getStringFromWasm0(ptr1, len1);
|
|
253
|
-
} finally {
|
|
254
|
-
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
242
|
+
export function createClient(host, inbox_id, account_identifier, db_path, encryption_key, device_sync_server_url, device_sync_worker_mode, log_options, allow_offline) {
|
|
243
|
+
const ptr0 = passStringToWasm0(host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
244
|
+
const len0 = WASM_VECTOR_LEN;
|
|
245
|
+
const ptr1 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
246
|
+
const len1 = WASM_VECTOR_LEN;
|
|
247
|
+
var ptr2 = isLikeNone(db_path) ? 0 : passStringToWasm0(db_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
248
|
+
var len2 = WASM_VECTOR_LEN;
|
|
249
|
+
var ptr3 = isLikeNone(device_sync_server_url) ? 0 : passStringToWasm0(device_sync_server_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
250
|
+
var len3 = WASM_VECTOR_LEN;
|
|
251
|
+
let ptr4 = 0;
|
|
252
|
+
if (!isLikeNone(log_options)) {
|
|
253
|
+
_assertClass(log_options, LogOptions);
|
|
254
|
+
ptr4 = log_options.__destroy_into_raw();
|
|
255
255
|
}
|
|
256
|
+
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);
|
|
257
|
+
return ret;
|
|
256
258
|
}
|
|
257
259
|
|
|
258
260
|
function passArrayJsValueToWasm0(array, malloc) {
|
|
@@ -264,12 +266,6 @@ function passArrayJsValueToWasm0(array, malloc) {
|
|
|
264
266
|
WASM_VECTOR_LEN = array.length;
|
|
265
267
|
return ptr;
|
|
266
268
|
}
|
|
267
|
-
|
|
268
|
-
function _assertClass(instance, klass) {
|
|
269
|
-
if (!(instance instanceof klass)) {
|
|
270
|
-
throw new Error(`expected instance of ${klass.name}`);
|
|
271
|
-
}
|
|
272
|
-
}
|
|
273
269
|
/**
|
|
274
270
|
* @param {MultiRemoteAttachment} multiRemoteAttachment
|
|
275
271
|
* @returns {Uint8Array}
|
|
@@ -328,6 +324,41 @@ function passArray8ToWasm0(arg, malloc) {
|
|
|
328
324
|
WASM_VECTOR_LEN = arg.length;
|
|
329
325
|
return ptr;
|
|
330
326
|
}
|
|
327
|
+
/**
|
|
328
|
+
* @param {string} host
|
|
329
|
+
* @param {Identifier} accountIdentifier
|
|
330
|
+
* @returns {Promise<string | undefined>}
|
|
331
|
+
*/
|
|
332
|
+
export function getInboxIdForIdentifier(host, accountIdentifier) {
|
|
333
|
+
const ptr0 = passStringToWasm0(host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
334
|
+
const len0 = WASM_VECTOR_LEN;
|
|
335
|
+
const ret = wasm.getInboxIdForIdentifier(ptr0, len0, accountIdentifier);
|
|
336
|
+
return ret;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
/**
|
|
340
|
+
* @param {Identifier} accountIdentifier
|
|
341
|
+
* @returns {string}
|
|
342
|
+
*/
|
|
343
|
+
export function generateInboxId(accountIdentifier) {
|
|
344
|
+
let deferred2_0;
|
|
345
|
+
let deferred2_1;
|
|
346
|
+
try {
|
|
347
|
+
const ret = wasm.generateInboxId(accountIdentifier);
|
|
348
|
+
var ptr1 = ret[0];
|
|
349
|
+
var len1 = ret[1];
|
|
350
|
+
if (ret[3]) {
|
|
351
|
+
ptr1 = 0; len1 = 0;
|
|
352
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
353
|
+
}
|
|
354
|
+
deferred2_0 = ptr1;
|
|
355
|
+
deferred2_1 = len1;
|
|
356
|
+
return getStringFromWasm0(ptr1, len1);
|
|
357
|
+
} finally {
|
|
358
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
|
|
331
362
|
/**
|
|
332
363
|
* @param {string} host
|
|
333
364
|
* @param {string[]} inbox_ids
|
|
@@ -387,54 +418,24 @@ export function applySignatureRequest(host, signature_request) {
|
|
|
387
418
|
return ret;
|
|
388
419
|
}
|
|
389
420
|
|
|
390
|
-
/**
|
|
391
|
-
* @param {string} host
|
|
392
|
-
* @param {string} inbox_id
|
|
393
|
-
* @param {Identifier} account_identifier
|
|
394
|
-
* @param {string | null} [db_path]
|
|
395
|
-
* @param {Uint8Array | null} [encryption_key]
|
|
396
|
-
* @param {string | null} [device_sync_server_url]
|
|
397
|
-
* @param {DeviceSyncWorkerMode | null} [device_sync_worker_mode]
|
|
398
|
-
* @param {LogOptions | null} [log_options]
|
|
399
|
-
* @param {boolean | null} [allow_offline]
|
|
400
|
-
* @returns {Promise<Client>}
|
|
401
|
-
*/
|
|
402
|
-
export function createClient(host, inbox_id, account_identifier, db_path, encryption_key, device_sync_server_url, device_sync_worker_mode, log_options, allow_offline) {
|
|
403
|
-
const ptr0 = passStringToWasm0(host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
404
|
-
const len0 = WASM_VECTOR_LEN;
|
|
405
|
-
const ptr1 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
406
|
-
const len1 = WASM_VECTOR_LEN;
|
|
407
|
-
var ptr2 = isLikeNone(db_path) ? 0 : passStringToWasm0(db_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
408
|
-
var len2 = WASM_VECTOR_LEN;
|
|
409
|
-
var ptr3 = isLikeNone(device_sync_server_url) ? 0 : passStringToWasm0(device_sync_server_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
410
|
-
var len3 = WASM_VECTOR_LEN;
|
|
411
|
-
let ptr4 = 0;
|
|
412
|
-
if (!isLikeNone(log_options)) {
|
|
413
|
-
_assertClass(log_options, LogOptions);
|
|
414
|
-
ptr4 = log_options.__destroy_into_raw();
|
|
415
|
-
}
|
|
416
|
-
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);
|
|
417
|
-
return ret;
|
|
418
|
-
}
|
|
419
|
-
|
|
420
421
|
function __wbg_adapter_50(arg0, arg1) {
|
|
421
|
-
wasm.
|
|
422
|
+
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h7e9b1d0be1909a89(arg0, arg1);
|
|
422
423
|
}
|
|
423
424
|
|
|
424
425
|
function __wbg_adapter_53(arg0, arg1) {
|
|
425
|
-
wasm.
|
|
426
|
+
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hd7b727abd95da937(arg0, arg1);
|
|
426
427
|
}
|
|
427
428
|
|
|
428
429
|
function __wbg_adapter_56(arg0, arg1, arg2) {
|
|
429
|
-
wasm.
|
|
430
|
+
wasm.closure4609_externref_shim(arg0, arg1, arg2);
|
|
430
431
|
}
|
|
431
432
|
|
|
432
433
|
function __wbg_adapter_59(arg0, arg1) {
|
|
433
|
-
wasm.
|
|
434
|
+
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hc6500cfda1685f15(arg0, arg1);
|
|
434
435
|
}
|
|
435
436
|
|
|
436
437
|
function __wbg_adapter_781(arg0, arg1, arg2, arg3) {
|
|
437
|
-
wasm.
|
|
438
|
+
wasm.closure5567_externref_shim(arg0, arg1, arg2, arg3);
|
|
438
439
|
}
|
|
439
440
|
|
|
440
441
|
/**
|
|
@@ -737,6 +738,150 @@ export class Client {
|
|
|
737
738
|
const ptr = this.__destroy_into_raw();
|
|
738
739
|
wasm.__wbg_client_free(ptr, 0);
|
|
739
740
|
}
|
|
741
|
+
/**
|
|
742
|
+
* @returns {Identifier}
|
|
743
|
+
*/
|
|
744
|
+
get accountIdentifier() {
|
|
745
|
+
const ret = wasm.client_accountIdentifier(this.__wbg_ptr);
|
|
746
|
+
return ret;
|
|
747
|
+
}
|
|
748
|
+
/**
|
|
749
|
+
* @returns {string}
|
|
750
|
+
*/
|
|
751
|
+
get inboxId() {
|
|
752
|
+
let deferred1_0;
|
|
753
|
+
let deferred1_1;
|
|
754
|
+
try {
|
|
755
|
+
const ret = wasm.client_inboxId(this.__wbg_ptr);
|
|
756
|
+
deferred1_0 = ret[0];
|
|
757
|
+
deferred1_1 = ret[1];
|
|
758
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
759
|
+
} finally {
|
|
760
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
761
|
+
}
|
|
762
|
+
}
|
|
763
|
+
/**
|
|
764
|
+
* @returns {boolean}
|
|
765
|
+
*/
|
|
766
|
+
get isRegistered() {
|
|
767
|
+
const ret = wasm.client_isRegistered(this.__wbg_ptr);
|
|
768
|
+
return ret !== 0;
|
|
769
|
+
}
|
|
770
|
+
/**
|
|
771
|
+
* @returns {string}
|
|
772
|
+
*/
|
|
773
|
+
get installationId() {
|
|
774
|
+
let deferred1_0;
|
|
775
|
+
let deferred1_1;
|
|
776
|
+
try {
|
|
777
|
+
const ret = wasm.client_installationId(this.__wbg_ptr);
|
|
778
|
+
deferred1_0 = ret[0];
|
|
779
|
+
deferred1_1 = ret[1];
|
|
780
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
781
|
+
} finally {
|
|
782
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
783
|
+
}
|
|
784
|
+
}
|
|
785
|
+
/**
|
|
786
|
+
* @returns {Uint8Array}
|
|
787
|
+
*/
|
|
788
|
+
get installationIdBytes() {
|
|
789
|
+
const ret = wasm.client_installationIdBytes(this.__wbg_ptr);
|
|
790
|
+
return ret;
|
|
791
|
+
}
|
|
792
|
+
/**
|
|
793
|
+
* Output booleans should be zipped with the index of input identifiers
|
|
794
|
+
* @param {Identifier[]} account_identifiers
|
|
795
|
+
* @returns {Promise<any>}
|
|
796
|
+
*/
|
|
797
|
+
canMessage(account_identifiers) {
|
|
798
|
+
const ptr0 = passArrayJsValueToWasm0(account_identifiers, wasm.__wbindgen_malloc);
|
|
799
|
+
const len0 = WASM_VECTOR_LEN;
|
|
800
|
+
const ret = wasm.client_canMessage(this.__wbg_ptr, ptr0, len0);
|
|
801
|
+
return ret;
|
|
802
|
+
}
|
|
803
|
+
/**
|
|
804
|
+
* @returns {Promise<void>}
|
|
805
|
+
*/
|
|
806
|
+
sendSyncRequest() {
|
|
807
|
+
const ret = wasm.client_sendSyncRequest(this.__wbg_ptr);
|
|
808
|
+
return ret;
|
|
809
|
+
}
|
|
810
|
+
/**
|
|
811
|
+
* @param {Identifier} identifier
|
|
812
|
+
* @returns {Promise<string | undefined>}
|
|
813
|
+
*/
|
|
814
|
+
findInboxIdByIdentifier(identifier) {
|
|
815
|
+
const ret = wasm.client_findInboxIdByIdentifier(this.__wbg_ptr, identifier);
|
|
816
|
+
return ret;
|
|
817
|
+
}
|
|
818
|
+
/**
|
|
819
|
+
* @param {string[]} inbox_ids
|
|
820
|
+
* @param {boolean} refresh_from_network
|
|
821
|
+
* @returns {Promise<InboxState[]>}
|
|
822
|
+
*/
|
|
823
|
+
inboxStateFromInboxIds(inbox_ids, refresh_from_network) {
|
|
824
|
+
const ptr0 = passArrayJsValueToWasm0(inbox_ids, wasm.__wbindgen_malloc);
|
|
825
|
+
const len0 = WASM_VECTOR_LEN;
|
|
826
|
+
const ret = wasm.client_inboxStateFromInboxIds(this.__wbg_ptr, ptr0, len0, refresh_from_network);
|
|
827
|
+
return ret;
|
|
828
|
+
}
|
|
829
|
+
/**
|
|
830
|
+
* @returns {Conversations}
|
|
831
|
+
*/
|
|
832
|
+
conversations() {
|
|
833
|
+
const ret = wasm.client_conversations(this.__wbg_ptr);
|
|
834
|
+
return Conversations.__wrap(ret);
|
|
835
|
+
}
|
|
836
|
+
/**
|
|
837
|
+
* @returns {Promise<number>}
|
|
838
|
+
*/
|
|
839
|
+
syncPreferences() {
|
|
840
|
+
const ret = wasm.client_syncPreferences(this.__wbg_ptr);
|
|
841
|
+
return ret;
|
|
842
|
+
}
|
|
843
|
+
/**
|
|
844
|
+
* @returns {ApiStats}
|
|
845
|
+
*/
|
|
846
|
+
apiStatistics() {
|
|
847
|
+
const ret = wasm.client_apiStatistics(this.__wbg_ptr);
|
|
848
|
+
return ApiStats.__wrap(ret);
|
|
849
|
+
}
|
|
850
|
+
/**
|
|
851
|
+
* @returns {IdentityStats}
|
|
852
|
+
*/
|
|
853
|
+
apiIdentityStatistics() {
|
|
854
|
+
const ret = wasm.client_apiIdentityStatistics(this.__wbg_ptr);
|
|
855
|
+
return IdentityStats.__wrap(ret);
|
|
856
|
+
}
|
|
857
|
+
/**
|
|
858
|
+
* @returns {string}
|
|
859
|
+
*/
|
|
860
|
+
apiAggregateStatistics() {
|
|
861
|
+
let deferred1_0;
|
|
862
|
+
let deferred1_1;
|
|
863
|
+
try {
|
|
864
|
+
const ret = wasm.client_apiAggregateStatistics(this.__wbg_ptr);
|
|
865
|
+
deferred1_0 = ret[0];
|
|
866
|
+
deferred1_1 = ret[1];
|
|
867
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
868
|
+
} finally {
|
|
869
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
870
|
+
}
|
|
871
|
+
}
|
|
872
|
+
clearAllStatistics() {
|
|
873
|
+
wasm.client_clearAllStatistics(this.__wbg_ptr);
|
|
874
|
+
}
|
|
875
|
+
/**
|
|
876
|
+
* @param {string} server_url
|
|
877
|
+
* @returns {Promise<string>}
|
|
878
|
+
*/
|
|
879
|
+
uploadDebugArchive(server_url) {
|
|
880
|
+
const ptr0 = passStringToWasm0(server_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
881
|
+
const len0 = WASM_VECTOR_LEN;
|
|
882
|
+
const ret = wasm.client_uploadDebugArchive(this.__wbg_ptr, ptr0, len0);
|
|
883
|
+
return ret;
|
|
884
|
+
}
|
|
740
885
|
/**
|
|
741
886
|
* @param {Consent[]} records
|
|
742
887
|
* @returns {Promise<void>}
|
|
@@ -892,150 +1037,6 @@ export class Client {
|
|
|
892
1037
|
throw takeFromExternrefTable0(ret[0]);
|
|
893
1038
|
}
|
|
894
1039
|
}
|
|
895
|
-
/**
|
|
896
|
-
* @returns {Identifier}
|
|
897
|
-
*/
|
|
898
|
-
get accountIdentifier() {
|
|
899
|
-
const ret = wasm.client_accountIdentifier(this.__wbg_ptr);
|
|
900
|
-
return ret;
|
|
901
|
-
}
|
|
902
|
-
/**
|
|
903
|
-
* @returns {string}
|
|
904
|
-
*/
|
|
905
|
-
get inboxId() {
|
|
906
|
-
let deferred1_0;
|
|
907
|
-
let deferred1_1;
|
|
908
|
-
try {
|
|
909
|
-
const ret = wasm.client_inboxId(this.__wbg_ptr);
|
|
910
|
-
deferred1_0 = ret[0];
|
|
911
|
-
deferred1_1 = ret[1];
|
|
912
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
913
|
-
} finally {
|
|
914
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
915
|
-
}
|
|
916
|
-
}
|
|
917
|
-
/**
|
|
918
|
-
* @returns {boolean}
|
|
919
|
-
*/
|
|
920
|
-
get isRegistered() {
|
|
921
|
-
const ret = wasm.client_isRegistered(this.__wbg_ptr);
|
|
922
|
-
return ret !== 0;
|
|
923
|
-
}
|
|
924
|
-
/**
|
|
925
|
-
* @returns {string}
|
|
926
|
-
*/
|
|
927
|
-
get installationId() {
|
|
928
|
-
let deferred1_0;
|
|
929
|
-
let deferred1_1;
|
|
930
|
-
try {
|
|
931
|
-
const ret = wasm.client_installationId(this.__wbg_ptr);
|
|
932
|
-
deferred1_0 = ret[0];
|
|
933
|
-
deferred1_1 = ret[1];
|
|
934
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
935
|
-
} finally {
|
|
936
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
937
|
-
}
|
|
938
|
-
}
|
|
939
|
-
/**
|
|
940
|
-
* @returns {Uint8Array}
|
|
941
|
-
*/
|
|
942
|
-
get installationIdBytes() {
|
|
943
|
-
const ret = wasm.client_installationIdBytes(this.__wbg_ptr);
|
|
944
|
-
return ret;
|
|
945
|
-
}
|
|
946
|
-
/**
|
|
947
|
-
* Output booleans should be zipped with the index of input identifiers
|
|
948
|
-
* @param {Identifier[]} account_identifiers
|
|
949
|
-
* @returns {Promise<any>}
|
|
950
|
-
*/
|
|
951
|
-
canMessage(account_identifiers) {
|
|
952
|
-
const ptr0 = passArrayJsValueToWasm0(account_identifiers, wasm.__wbindgen_malloc);
|
|
953
|
-
const len0 = WASM_VECTOR_LEN;
|
|
954
|
-
const ret = wasm.client_canMessage(this.__wbg_ptr, ptr0, len0);
|
|
955
|
-
return ret;
|
|
956
|
-
}
|
|
957
|
-
/**
|
|
958
|
-
* @returns {Promise<void>}
|
|
959
|
-
*/
|
|
960
|
-
sendSyncRequest() {
|
|
961
|
-
const ret = wasm.client_sendSyncRequest(this.__wbg_ptr);
|
|
962
|
-
return ret;
|
|
963
|
-
}
|
|
964
|
-
/**
|
|
965
|
-
* @param {Identifier} identifier
|
|
966
|
-
* @returns {Promise<string | undefined>}
|
|
967
|
-
*/
|
|
968
|
-
findInboxIdByIdentifier(identifier) {
|
|
969
|
-
const ret = wasm.client_findInboxIdByIdentifier(this.__wbg_ptr, identifier);
|
|
970
|
-
return ret;
|
|
971
|
-
}
|
|
972
|
-
/**
|
|
973
|
-
* @param {string[]} inbox_ids
|
|
974
|
-
* @param {boolean} refresh_from_network
|
|
975
|
-
* @returns {Promise<InboxState[]>}
|
|
976
|
-
*/
|
|
977
|
-
inboxStateFromInboxIds(inbox_ids, refresh_from_network) {
|
|
978
|
-
const ptr0 = passArrayJsValueToWasm0(inbox_ids, wasm.__wbindgen_malloc);
|
|
979
|
-
const len0 = WASM_VECTOR_LEN;
|
|
980
|
-
const ret = wasm.client_inboxStateFromInboxIds(this.__wbg_ptr, ptr0, len0, refresh_from_network);
|
|
981
|
-
return ret;
|
|
982
|
-
}
|
|
983
|
-
/**
|
|
984
|
-
* @returns {Conversations}
|
|
985
|
-
*/
|
|
986
|
-
conversations() {
|
|
987
|
-
const ret = wasm.client_conversations(this.__wbg_ptr);
|
|
988
|
-
return Conversations.__wrap(ret);
|
|
989
|
-
}
|
|
990
|
-
/**
|
|
991
|
-
* @returns {Promise<number>}
|
|
992
|
-
*/
|
|
993
|
-
syncPreferences() {
|
|
994
|
-
const ret = wasm.client_syncPreferences(this.__wbg_ptr);
|
|
995
|
-
return ret;
|
|
996
|
-
}
|
|
997
|
-
/**
|
|
998
|
-
* @returns {ApiStats}
|
|
999
|
-
*/
|
|
1000
|
-
apiStatistics() {
|
|
1001
|
-
const ret = wasm.client_apiStatistics(this.__wbg_ptr);
|
|
1002
|
-
return ApiStats.__wrap(ret);
|
|
1003
|
-
}
|
|
1004
|
-
/**
|
|
1005
|
-
* @returns {IdentityStats}
|
|
1006
|
-
*/
|
|
1007
|
-
apiIdentityStatistics() {
|
|
1008
|
-
const ret = wasm.client_apiIdentityStatistics(this.__wbg_ptr);
|
|
1009
|
-
return IdentityStats.__wrap(ret);
|
|
1010
|
-
}
|
|
1011
|
-
/**
|
|
1012
|
-
* @returns {string}
|
|
1013
|
-
*/
|
|
1014
|
-
apiAggregateStatistics() {
|
|
1015
|
-
let deferred1_0;
|
|
1016
|
-
let deferred1_1;
|
|
1017
|
-
try {
|
|
1018
|
-
const ret = wasm.client_apiAggregateStatistics(this.__wbg_ptr);
|
|
1019
|
-
deferred1_0 = ret[0];
|
|
1020
|
-
deferred1_1 = ret[1];
|
|
1021
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
1022
|
-
} finally {
|
|
1023
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
1024
|
-
}
|
|
1025
|
-
}
|
|
1026
|
-
clearAllStatistics() {
|
|
1027
|
-
wasm.client_clearAllStatistics(this.__wbg_ptr);
|
|
1028
|
-
}
|
|
1029
|
-
/**
|
|
1030
|
-
* @param {string} server_url
|
|
1031
|
-
* @returns {Promise<string>}
|
|
1032
|
-
*/
|
|
1033
|
-
uploadDebugArchive(server_url) {
|
|
1034
|
-
const ptr0 = passStringToWasm0(server_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1035
|
-
const len0 = WASM_VECTOR_LEN;
|
|
1036
|
-
const ret = wasm.client_uploadDebugArchive(this.__wbg_ptr, ptr0, len0);
|
|
1037
|
-
return ret;
|
|
1038
|
-
}
|
|
1039
1040
|
}
|
|
1040
1041
|
|
|
1041
1042
|
const ConsentFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
@@ -1802,14 +1803,14 @@ export class ConversationDebugInfo {
|
|
|
1802
1803
|
* @returns {bigint}
|
|
1803
1804
|
*/
|
|
1804
1805
|
get epoch() {
|
|
1805
|
-
const ret = wasm.
|
|
1806
|
+
const ret = wasm.__wbg_get_apistats_upload_key_package(this.__wbg_ptr);
|
|
1806
1807
|
return BigInt.asUintN(64, ret);
|
|
1807
1808
|
}
|
|
1808
1809
|
/**
|
|
1809
1810
|
* @param {bigint} arg0
|
|
1810
1811
|
*/
|
|
1811
1812
|
set epoch(arg0) {
|
|
1812
|
-
wasm.
|
|
1813
|
+
wasm.__wbg_set_apistats_upload_key_package(this.__wbg_ptr, arg0);
|
|
1813
1814
|
}
|
|
1814
1815
|
/**
|
|
1815
1816
|
* @returns {boolean}
|
|
@@ -2767,14 +2768,14 @@ export class HmacKey {
|
|
|
2767
2768
|
* @returns {bigint}
|
|
2768
2769
|
*/
|
|
2769
2770
|
get epoch() {
|
|
2770
|
-
const ret = wasm.
|
|
2771
|
+
const ret = wasm.__wbg_get_apistats_upload_key_package(this.__wbg_ptr);
|
|
2771
2772
|
return ret;
|
|
2772
2773
|
}
|
|
2773
2774
|
/**
|
|
2774
2775
|
* @param {bigint} arg0
|
|
2775
2776
|
*/
|
|
2776
2777
|
set epoch(arg0) {
|
|
2777
|
-
wasm.
|
|
2778
|
+
wasm.__wbg_set_apistats_upload_key_package(this.__wbg_ptr, arg0);
|
|
2778
2779
|
}
|
|
2779
2780
|
}
|
|
2780
2781
|
|
|
@@ -3288,27 +3289,27 @@ export class Lifetime {
|
|
|
3288
3289
|
* @returns {bigint}
|
|
3289
3290
|
*/
|
|
3290
3291
|
get not_before() {
|
|
3291
|
-
const ret = wasm.
|
|
3292
|
+
const ret = wasm.__wbg_get_apistats_upload_key_package(this.__wbg_ptr);
|
|
3292
3293
|
return BigInt.asUintN(64, ret);
|
|
3293
3294
|
}
|
|
3294
3295
|
/**
|
|
3295
3296
|
* @param {bigint} arg0
|
|
3296
3297
|
*/
|
|
3297
3298
|
set not_before(arg0) {
|
|
3298
|
-
wasm.
|
|
3299
|
+
wasm.__wbg_set_apistats_upload_key_package(this.__wbg_ptr, arg0);
|
|
3299
3300
|
}
|
|
3300
3301
|
/**
|
|
3301
3302
|
* @returns {bigint}
|
|
3302
3303
|
*/
|
|
3303
3304
|
get not_after() {
|
|
3304
|
-
const ret = wasm.
|
|
3305
|
+
const ret = wasm.__wbg_get_apistats_fetch_key_package(this.__wbg_ptr);
|
|
3305
3306
|
return BigInt.asUintN(64, ret);
|
|
3306
3307
|
}
|
|
3307
3308
|
/**
|
|
3308
3309
|
* @param {bigint} arg0
|
|
3309
3310
|
*/
|
|
3310
3311
|
set not_after(arg0) {
|
|
3311
|
-
wasm.
|
|
3312
|
+
wasm.__wbg_set_apistats_fetch_key_package(this.__wbg_ptr, arg0);
|
|
3312
3313
|
}
|
|
3313
3314
|
}
|
|
3314
3315
|
|
|
@@ -3702,14 +3703,14 @@ export class Message {
|
|
|
3702
3703
|
* @returns {bigint}
|
|
3703
3704
|
*/
|
|
3704
3705
|
get sentAtNs() {
|
|
3705
|
-
const ret = wasm.
|
|
3706
|
+
const ret = wasm.__wbg_get_apistats_upload_key_package(this.__wbg_ptr);
|
|
3706
3707
|
return ret;
|
|
3707
3708
|
}
|
|
3708
3709
|
/**
|
|
3709
3710
|
* @param {bigint} arg0
|
|
3710
3711
|
*/
|
|
3711
3712
|
set sentAtNs(arg0) {
|
|
3712
|
-
wasm.
|
|
3713
|
+
wasm.__wbg_set_apistats_upload_key_package(this.__wbg_ptr, arg0);
|
|
3713
3714
|
}
|
|
3714
3715
|
/**
|
|
3715
3716
|
* @returns {string}
|
|
@@ -3852,27 +3853,27 @@ export class MessageDisappearingSettings {
|
|
|
3852
3853
|
* @returns {bigint}
|
|
3853
3854
|
*/
|
|
3854
3855
|
get fromNs() {
|
|
3855
|
-
const ret = wasm.
|
|
3856
|
+
const ret = wasm.__wbg_get_apistats_upload_key_package(this.__wbg_ptr);
|
|
3856
3857
|
return ret;
|
|
3857
3858
|
}
|
|
3858
3859
|
/**
|
|
3859
3860
|
* @param {bigint} arg0
|
|
3860
3861
|
*/
|
|
3861
3862
|
set fromNs(arg0) {
|
|
3862
|
-
wasm.
|
|
3863
|
+
wasm.__wbg_set_apistats_upload_key_package(this.__wbg_ptr, arg0);
|
|
3863
3864
|
}
|
|
3864
3865
|
/**
|
|
3865
3866
|
* @returns {bigint}
|
|
3866
3867
|
*/
|
|
3867
3868
|
get inNs() {
|
|
3868
|
-
const ret = wasm.
|
|
3869
|
+
const ret = wasm.__wbg_get_apistats_fetch_key_package(this.__wbg_ptr);
|
|
3869
3870
|
return ret;
|
|
3870
3871
|
}
|
|
3871
3872
|
/**
|
|
3872
3873
|
* @param {bigint} arg0
|
|
3873
3874
|
*/
|
|
3874
3875
|
set inNs(arg0) {
|
|
3875
|
-
wasm.
|
|
3876
|
+
wasm.__wbg_set_apistats_fetch_key_package(this.__wbg_ptr, arg0);
|
|
3876
3877
|
}
|
|
3877
3878
|
/**
|
|
3878
3879
|
* @param {bigint} from_ns
|
|
@@ -5384,19 +5385,19 @@ function __wbg_get_imports() {
|
|
|
5384
5385
|
const ret = arg0.now();
|
|
5385
5386
|
return ret;
|
|
5386
5387
|
};
|
|
5387
|
-
imports.wbg.
|
|
5388
|
+
imports.wbg.__wbg_onconsentupdate_0015afd33d49f734 = function(arg0, arg1) {
|
|
5388
5389
|
arg0.on_consent_update(arg1);
|
|
5389
5390
|
};
|
|
5390
|
-
imports.wbg.
|
|
5391
|
+
imports.wbg.__wbg_onconversation_4c5109f7a97cb0e0 = function(arg0, arg1) {
|
|
5391
5392
|
arg0.on_conversation(Conversation.__wrap(arg1));
|
|
5392
5393
|
};
|
|
5393
|
-
imports.wbg.
|
|
5394
|
+
imports.wbg.__wbg_onerror_fc32c3909180f9b0 = function(arg0, arg1) {
|
|
5394
5395
|
arg0.on_error(arg1);
|
|
5395
5396
|
};
|
|
5396
|
-
imports.wbg.
|
|
5397
|
+
imports.wbg.__wbg_onmessage_6019249fb877e093 = function(arg0, arg1) {
|
|
5397
5398
|
arg0.on_message(Message.__wrap(arg1));
|
|
5398
5399
|
};
|
|
5399
|
-
imports.wbg.
|
|
5400
|
+
imports.wbg.__wbg_onuserpreferenceupdate_1b9ee4ce886fa1d3 = function(arg0, arg1, arg2) {
|
|
5400
5401
|
var v0 = getArrayJsValueFromWasm0(arg1, arg2).slice();
|
|
5401
5402
|
wasm.__wbindgen_free(arg1, arg2 * 4, 4);
|
|
5402
5403
|
arg0.on_user_preference_update(v0);
|
|
@@ -5687,20 +5688,20 @@ function __wbg_get_imports() {
|
|
|
5687
5688
|
const ret = false;
|
|
5688
5689
|
return ret;
|
|
5689
5690
|
};
|
|
5690
|
-
imports.wbg.
|
|
5691
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
5691
|
+
imports.wbg.__wbindgen_closure_wrapper17750 = function(arg0, arg1, arg2) {
|
|
5692
|
+
const ret = makeMutClosure(arg0, arg1, 4250, __wbg_adapter_50);
|
|
5692
5693
|
return ret;
|
|
5693
5694
|
};
|
|
5694
|
-
imports.wbg.
|
|
5695
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
5695
|
+
imports.wbg.__wbindgen_closure_wrapper17891 = function(arg0, arg1, arg2) {
|
|
5696
|
+
const ret = makeMutClosure(arg0, arg1, 4306, __wbg_adapter_53);
|
|
5696
5697
|
return ret;
|
|
5697
5698
|
};
|
|
5698
|
-
imports.wbg.
|
|
5699
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
5699
|
+
imports.wbg.__wbindgen_closure_wrapper21012 = function(arg0, arg1, arg2) {
|
|
5700
|
+
const ret = makeMutClosure(arg0, arg1, 4610, __wbg_adapter_56);
|
|
5700
5701
|
return ret;
|
|
5701
5702
|
};
|
|
5702
|
-
imports.wbg.
|
|
5703
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
5703
|
+
imports.wbg.__wbindgen_closure_wrapper21113 = function(arg0, arg1, arg2) {
|
|
5704
|
+
const ret = makeMutClosure(arg0, arg1, 4621, __wbg_adapter_59);
|
|
5704
5705
|
return ret;
|
|
5705
5706
|
};
|
|
5706
5707
|
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
|
Binary file
|
|
@@ -1,34 +1,53 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
|
-
export const
|
|
5
|
-
export const
|
|
6
|
-
export const
|
|
7
|
-
export const
|
|
8
|
-
export const
|
|
9
|
-
export const
|
|
10
|
-
export const
|
|
11
|
-
export const
|
|
12
|
-
export const
|
|
13
|
-
export const
|
|
14
|
-
export const
|
|
15
|
-
export const
|
|
16
|
-
export const
|
|
17
|
-
export const
|
|
18
|
-
export const
|
|
19
|
-
export const
|
|
20
|
-
export const
|
|
21
|
-
export const
|
|
22
|
-
export const
|
|
23
|
-
export const
|
|
24
|
-
export const
|
|
25
|
-
export const
|
|
26
|
-
export const
|
|
27
|
-
export const
|
|
28
|
-
export const
|
|
29
|
-
export const
|
|
30
|
-
export const
|
|
31
|
-
export const
|
|
4
|
+
export const __wbg_permissionpolicyset_free: (a: number, b: number) => void;
|
|
5
|
+
export const __wbg_get_permissionpolicyset_addMemberPolicy: (a: number) => number;
|
|
6
|
+
export const __wbg_set_permissionpolicyset_addMemberPolicy: (a: number, b: number) => void;
|
|
7
|
+
export const __wbg_get_permissionpolicyset_removeMemberPolicy: (a: number) => number;
|
|
8
|
+
export const __wbg_set_permissionpolicyset_removeMemberPolicy: (a: number, b: number) => void;
|
|
9
|
+
export const __wbg_get_permissionpolicyset_addAdminPolicy: (a: number) => number;
|
|
10
|
+
export const __wbg_set_permissionpolicyset_addAdminPolicy: (a: number, b: number) => void;
|
|
11
|
+
export const __wbg_get_permissionpolicyset_removeAdminPolicy: (a: number) => number;
|
|
12
|
+
export const __wbg_set_permissionpolicyset_removeAdminPolicy: (a: number, b: number) => void;
|
|
13
|
+
export const __wbg_get_permissionpolicyset_updateGroupNamePolicy: (a: number) => number;
|
|
14
|
+
export const __wbg_set_permissionpolicyset_updateGroupNamePolicy: (a: number, b: number) => void;
|
|
15
|
+
export const __wbg_get_permissionpolicyset_updateGroupDescriptionPolicy: (a: number) => number;
|
|
16
|
+
export const __wbg_set_permissionpolicyset_updateGroupDescriptionPolicy: (a: number, b: number) => void;
|
|
17
|
+
export const __wbg_get_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number) => number;
|
|
18
|
+
export const __wbg_set_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number, b: number) => void;
|
|
19
|
+
export const __wbg_get_permissionpolicyset_updateMessageDisappearingPolicy: (a: number) => number;
|
|
20
|
+
export const __wbg_set_permissionpolicyset_updateMessageDisappearingPolicy: (a: number, b: number) => void;
|
|
21
|
+
export const permissionpolicyset_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
22
|
+
export const __wbg_grouppermissions_free: (a: number, b: number) => void;
|
|
23
|
+
export const grouppermissions_policyType: (a: number) => [number, number, number];
|
|
24
|
+
export const grouppermissions_policySet: (a: number) => [number, number, number];
|
|
25
|
+
export const __wbg_client_free: (a: number, b: number) => void;
|
|
26
|
+
export const __wbg_logoptions_free: (a: number, b: number) => void;
|
|
27
|
+
export const __wbg_get_logoptions_structured: (a: number) => number;
|
|
28
|
+
export const __wbg_set_logoptions_structured: (a: number, b: number) => void;
|
|
29
|
+
export const __wbg_get_logoptions_performance: (a: number) => number;
|
|
30
|
+
export const __wbg_set_logoptions_performance: (a: number, b: number) => void;
|
|
31
|
+
export const __wbg_get_logoptions_level: (a: number) => number;
|
|
32
|
+
export const __wbg_set_logoptions_level: (a: number, b: number) => void;
|
|
33
|
+
export const logoptions_new: (a: number, b: number, c: number) => number;
|
|
34
|
+
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) => any;
|
|
35
|
+
export const client_accountIdentifier: (a: number) => any;
|
|
36
|
+
export const client_inboxId: (a: number) => [number, number];
|
|
37
|
+
export const client_isRegistered: (a: number) => number;
|
|
38
|
+
export const client_installationId: (a: number) => [number, number];
|
|
39
|
+
export const client_installationIdBytes: (a: number) => any;
|
|
40
|
+
export const client_canMessage: (a: number, b: number, c: number) => any;
|
|
41
|
+
export const client_sendSyncRequest: (a: number) => any;
|
|
42
|
+
export const client_findInboxIdByIdentifier: (a: number, b: any) => any;
|
|
43
|
+
export const client_inboxStateFromInboxIds: (a: number, b: number, c: number, d: number) => any;
|
|
44
|
+
export const client_conversations: (a: number) => number;
|
|
45
|
+
export const client_syncPreferences: (a: number) => any;
|
|
46
|
+
export const client_apiStatistics: (a: number) => number;
|
|
47
|
+
export const client_apiIdentityStatistics: (a: number) => number;
|
|
48
|
+
export const client_apiAggregateStatistics: (a: number) => [number, number];
|
|
49
|
+
export const client_clearAllStatistics: (a: number) => void;
|
|
50
|
+
export const client_uploadDebugArchive: (a: number, b: number, c: number) => any;
|
|
32
51
|
export const __wbg_consent_free: (a: number, b: number) => void;
|
|
33
52
|
export const __wbg_get_consent_entityType: (a: number) => number;
|
|
34
53
|
export const __wbg_set_consent_entityType: (a: number, b: number) => void;
|
|
@@ -143,8 +162,6 @@ export const listconversationsoptions_new: (a: number, b: number, c: number, d:
|
|
|
143
162
|
export const __wbg_messagedisappearingsettings_free: (a: number, b: number) => void;
|
|
144
163
|
export const messagedisappearingsettings_new: (a: bigint, b: bigint) => number;
|
|
145
164
|
export const __wbg_conversationdebuginfo_free: (a: number, b: number) => void;
|
|
146
|
-
export const __wbg_get_conversationdebuginfo_epoch: (a: number) => bigint;
|
|
147
|
-
export const __wbg_set_conversationdebuginfo_epoch: (a: number, b: bigint) => void;
|
|
148
165
|
export const __wbg_get_conversationdebuginfo_maybeForked: (a: number) => number;
|
|
149
166
|
export const __wbg_set_conversationdebuginfo_maybeForked: (a: number, b: number) => void;
|
|
150
167
|
export const __wbg_set_conversationdebuginfo_forkDetails: (a: number, b: number, c: number) => void;
|
|
@@ -210,6 +227,26 @@ export const __wbg_set_encodedcontent_compression: (a: number, b: number) => voi
|
|
|
210
227
|
export const __wbg_get_encodedcontent_content: (a: number) => any;
|
|
211
228
|
export const __wbg_set_encodedcontent_content: (a: number, b: any) => void;
|
|
212
229
|
export const encodedcontent_new: (a: number, b: any, c: number, d: number, e: number, f: any) => number;
|
|
230
|
+
export const __wbg_apistats_free: (a: number, b: number) => void;
|
|
231
|
+
export const __wbg_get_apistats_upload_key_package: (a: number) => bigint;
|
|
232
|
+
export const __wbg_set_apistats_upload_key_package: (a: number, b: bigint) => void;
|
|
233
|
+
export const __wbg_get_apistats_fetch_key_package: (a: number) => bigint;
|
|
234
|
+
export const __wbg_set_apistats_fetch_key_package: (a: number, b: bigint) => void;
|
|
235
|
+
export const __wbg_get_apistats_send_group_messages: (a: number) => bigint;
|
|
236
|
+
export const __wbg_set_apistats_send_group_messages: (a: number, b: bigint) => void;
|
|
237
|
+
export const __wbg_get_apistats_send_welcome_messages: (a: number) => bigint;
|
|
238
|
+
export const __wbg_set_apistats_send_welcome_messages: (a: number, b: bigint) => void;
|
|
239
|
+
export const __wbg_get_apistats_query_group_messages: (a: number) => bigint;
|
|
240
|
+
export const __wbg_set_apistats_query_group_messages: (a: number, b: bigint) => void;
|
|
241
|
+
export const __wbg_get_apistats_query_welcome_messages: (a: number) => bigint;
|
|
242
|
+
export const __wbg_set_apistats_query_welcome_messages: (a: number, b: bigint) => void;
|
|
243
|
+
export const __wbg_get_apistats_subscribe_messages: (a: number) => bigint;
|
|
244
|
+
export const __wbg_set_apistats_subscribe_messages: (a: number, b: bigint) => void;
|
|
245
|
+
export const __wbg_get_apistats_subscribe_welcomes: (a: number) => bigint;
|
|
246
|
+
export const __wbg_set_apistats_subscribe_welcomes: (a: number, b: bigint) => void;
|
|
247
|
+
export const __wbg_identitystats_free: (a: number, b: number) => void;
|
|
248
|
+
export const getInboxIdForIdentifier: (a: number, b: number, c: any) => any;
|
|
249
|
+
export const generateInboxId: (a: any) => [number, number, number, number];
|
|
213
250
|
export const __wbg_installation_free: (a: number, b: number) => void;
|
|
214
251
|
export const __wbg_get_installation_bytes: (a: number) => any;
|
|
215
252
|
export const __wbg_set_installation_bytes: (a: number, b: any) => void;
|
|
@@ -231,8 +268,6 @@ export const __wbg_get_keypackagestatus_lifetime: (a: number) => number;
|
|
|
231
268
|
export const __wbg_get_keypackagestatus_validationError: (a: number) => [number, number];
|
|
232
269
|
export const __wbg_set_keypackagestatus_validationError: (a: number, b: number, c: number) => void;
|
|
233
270
|
export const __wbg_lifetime_free: (a: number, b: number) => void;
|
|
234
|
-
export const __wbg_get_lifetime_not_after: (a: number) => bigint;
|
|
235
|
-
export const __wbg_set_lifetime_not_after: (a: number, b: bigint) => void;
|
|
236
271
|
export const inboxStateFromInboxIds: (a: number, b: number, c: number, d: number) => any;
|
|
237
272
|
export const client_inboxState: (a: number, b: number) => any;
|
|
238
273
|
export const client_getLatestInboxState: (a: number, b: number, c: number) => any;
|
|
@@ -317,13 +352,25 @@ export const __wbg_set_reaction_referenceInboxId: (a: number, b: number, c: numb
|
|
|
317
352
|
export const __wbg_set_inboxstate_inboxId: (a: number, b: number, c: number) => void;
|
|
318
353
|
export const __wbg_set_messagedisappearingsettings_fromNs: (a: number, b: bigint) => void;
|
|
319
354
|
export const __wbg_set_hmackey_epoch: (a: number, b: bigint) => void;
|
|
320
|
-
export const
|
|
355
|
+
export const __wbg_set_conversationdebuginfo_epoch: (a: number, b: bigint) => void;
|
|
321
356
|
export const __wbg_set_messagedisappearingsettings_inNs: (a: number, b: bigint) => void;
|
|
357
|
+
export const __wbg_set_identitystats_publish_identity_update: (a: number, b: bigint) => void;
|
|
358
|
+
export const __wbg_set_identitystats_get_identity_updates_v2: (a: number, b: bigint) => void;
|
|
359
|
+
export const __wbg_set_identitystats_get_inbox_ids: (a: number, b: bigint) => void;
|
|
360
|
+
export const __wbg_set_identitystats_verify_smart_contract_wallet_signature: (a: number, b: bigint) => void;
|
|
361
|
+
export const __wbg_set_lifetime_not_before: (a: number, b: bigint) => void;
|
|
362
|
+
export const __wbg_set_lifetime_not_after: (a: number, b: bigint) => void;
|
|
322
363
|
export const __wbg_set_message_sentAtNs: (a: number, b: bigint) => void;
|
|
323
364
|
export const __wbg_get_messagedisappearingsettings_fromNs: (a: number) => bigint;
|
|
324
365
|
export const __wbg_get_hmackey_epoch: (a: number) => bigint;
|
|
325
|
-
export const
|
|
366
|
+
export const __wbg_get_conversationdebuginfo_epoch: (a: number) => bigint;
|
|
326
367
|
export const __wbg_get_messagedisappearingsettings_inNs: (a: number) => bigint;
|
|
368
|
+
export const __wbg_get_identitystats_publish_identity_update: (a: number) => bigint;
|
|
369
|
+
export const __wbg_get_identitystats_get_identity_updates_v2: (a: number) => bigint;
|
|
370
|
+
export const __wbg_get_identitystats_get_inbox_ids: (a: number) => bigint;
|
|
371
|
+
export const __wbg_get_identitystats_verify_smart_contract_wallet_signature: (a: number) => bigint;
|
|
372
|
+
export const __wbg_get_lifetime_not_before: (a: number) => bigint;
|
|
373
|
+
export const __wbg_get_lifetime_not_after: (a: number) => bigint;
|
|
327
374
|
export const __wbg_get_message_sentAtNs: (a: number) => bigint;
|
|
328
375
|
export const __wbg_set_creategroupoptions_messageDisappearingSettings: (a: number, b: number) => void;
|
|
329
376
|
export const __wbg_get_remoteattachmentinfo_secret: (a: number) => any;
|
|
@@ -339,53 +386,6 @@ export const streamcloser_end: (a: number) => void;
|
|
|
339
386
|
export const streamcloser_endAndWait: (a: number) => any;
|
|
340
387
|
export const streamcloser_waitForReady: (a: number) => any;
|
|
341
388
|
export const streamcloser_isClosed: (a: number) => number;
|
|
342
|
-
export const __wbg_client_free: (a: number, b: number) => void;
|
|
343
|
-
export const __wbg_logoptions_free: (a: number, b: number) => void;
|
|
344
|
-
export const __wbg_get_logoptions_structured: (a: number) => number;
|
|
345
|
-
export const __wbg_set_logoptions_structured: (a: number, b: number) => void;
|
|
346
|
-
export const __wbg_get_logoptions_performance: (a: number) => number;
|
|
347
|
-
export const __wbg_set_logoptions_performance: (a: number, b: number) => void;
|
|
348
|
-
export const __wbg_get_logoptions_level: (a: number) => number;
|
|
349
|
-
export const __wbg_set_logoptions_level: (a: number, b: number) => void;
|
|
350
|
-
export const logoptions_new: (a: number, b: number, c: number) => number;
|
|
351
|
-
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) => any;
|
|
352
|
-
export const client_accountIdentifier: (a: number) => any;
|
|
353
|
-
export const client_inboxId: (a: number) => [number, number];
|
|
354
|
-
export const client_isRegistered: (a: number) => number;
|
|
355
|
-
export const client_installationId: (a: number) => [number, number];
|
|
356
|
-
export const client_installationIdBytes: (a: number) => any;
|
|
357
|
-
export const client_canMessage: (a: number, b: number, c: number) => any;
|
|
358
|
-
export const client_sendSyncRequest: (a: number) => any;
|
|
359
|
-
export const client_findInboxIdByIdentifier: (a: number, b: any) => any;
|
|
360
|
-
export const client_inboxStateFromInboxIds: (a: number, b: number, c: number, d: number) => any;
|
|
361
|
-
export const client_conversations: (a: number) => number;
|
|
362
|
-
export const client_syncPreferences: (a: number) => any;
|
|
363
|
-
export const client_apiStatistics: (a: number) => number;
|
|
364
|
-
export const client_apiIdentityStatistics: (a: number) => number;
|
|
365
|
-
export const client_apiAggregateStatistics: (a: number) => [number, number];
|
|
366
|
-
export const client_clearAllStatistics: (a: number) => void;
|
|
367
|
-
export const client_uploadDebugArchive: (a: number, b: number, c: number) => any;
|
|
368
|
-
export const __wbg_permissionpolicyset_free: (a: number, b: number) => void;
|
|
369
|
-
export const __wbg_get_permissionpolicyset_addMemberPolicy: (a: number) => number;
|
|
370
|
-
export const __wbg_set_permissionpolicyset_addMemberPolicy: (a: number, b: number) => void;
|
|
371
|
-
export const __wbg_get_permissionpolicyset_removeMemberPolicy: (a: number) => number;
|
|
372
|
-
export const __wbg_set_permissionpolicyset_removeMemberPolicy: (a: number, b: number) => void;
|
|
373
|
-
export const __wbg_get_permissionpolicyset_addAdminPolicy: (a: number) => number;
|
|
374
|
-
export const __wbg_set_permissionpolicyset_addAdminPolicy: (a: number, b: number) => void;
|
|
375
|
-
export const __wbg_get_permissionpolicyset_removeAdminPolicy: (a: number) => number;
|
|
376
|
-
export const __wbg_set_permissionpolicyset_removeAdminPolicy: (a: number, b: number) => void;
|
|
377
|
-
export const __wbg_get_permissionpolicyset_updateGroupNamePolicy: (a: number) => number;
|
|
378
|
-
export const __wbg_set_permissionpolicyset_updateGroupNamePolicy: (a: number, b: number) => void;
|
|
379
|
-
export const __wbg_get_permissionpolicyset_updateGroupDescriptionPolicy: (a: number) => number;
|
|
380
|
-
export const __wbg_set_permissionpolicyset_updateGroupDescriptionPolicy: (a: number, b: number) => void;
|
|
381
|
-
export const __wbg_get_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number) => number;
|
|
382
|
-
export const __wbg_set_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number, b: number) => void;
|
|
383
|
-
export const __wbg_get_permissionpolicyset_updateMessageDisappearingPolicy: (a: number) => number;
|
|
384
|
-
export const __wbg_set_permissionpolicyset_updateMessageDisappearingPolicy: (a: number, b: number) => void;
|
|
385
|
-
export const permissionpolicyset_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
386
|
-
export const __wbg_grouppermissions_free: (a: number, b: number) => void;
|
|
387
|
-
export const grouppermissions_policyType: (a: number) => [number, number, number];
|
|
388
|
-
export const grouppermissions_policySet: (a: number) => [number, number, number];
|
|
389
389
|
export const rust_zstd_wasm_shim_qsort: (a: number, b: number, c: number, d: number) => void;
|
|
390
390
|
export const rust_zstd_wasm_shim_malloc: (a: number) => number;
|
|
391
391
|
export const rust_zstd_wasm_shim_memcmp: (a: number, b: number, c: number) => number;
|
|
@@ -427,9 +427,9 @@ export const __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
|
427
427
|
export const __externref_drop_slice: (a: number, b: number) => void;
|
|
428
428
|
export const __wbindgen_export_7: WebAssembly.Table;
|
|
429
429
|
export const __externref_table_dealloc: (a: number) => void;
|
|
430
|
-
export const
|
|
431
|
-
export const
|
|
432
|
-
export const
|
|
433
|
-
export const
|
|
434
|
-
export const
|
|
430
|
+
export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h7e9b1d0be1909a89: (a: number, b: number) => void;
|
|
431
|
+
export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hd7b727abd95da937: (a: number, b: number) => void;
|
|
432
|
+
export const closure4609_externref_shim: (a: number, b: number, c: any) => void;
|
|
433
|
+
export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hc6500cfda1685f15: (a: number, b: number) => void;
|
|
434
|
+
export const closure5567_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
435
435
|
export const __wbindgen_start: () => void;
|
package/dist/version.json
CHANGED