@xmtp/wasm-bindings 1.3.1 → 1.3.3
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 +186 -181
- package/dist/bindings_wasm.js +299 -278
- package/dist/bindings_wasm_bg.wasm +0 -0
- package/dist/bindings_wasm_bg.wasm.d.ts +163 -162
- package/dist/version.json +3 -3
- package/package.json +1 -1
package/dist/bindings_wasm.d.ts
CHANGED
|
@@ -1,16 +1,20 @@
|
|
|
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 encodeMultiRemoteAttachment(multiRemoteAttachment: MultiRemoteAttachment): Uint8Array;
|
|
5
|
-
export function decodeMultiRemoteAttachment(bytes: Uint8Array): MultiRemoteAttachment;
|
|
6
|
-
export function encodeReaction(reaction: Reaction): Uint8Array;
|
|
7
|
-
export function decodeReaction(bytes: Uint8Array): Reaction;
|
|
8
3
|
export function getInboxIdForIdentifier(host: string, accountIdentifier: Identifier): Promise<string | undefined>;
|
|
9
4
|
export function generateInboxId(accountIdentifier: Identifier): string;
|
|
10
5
|
export function inboxStateFromInboxIds(host: string, inbox_ids: string[]): Promise<InboxState[]>;
|
|
11
6
|
export function verifySignedWithPublicKey(signature_text: string, signature_bytes: Uint8Array, public_key: Uint8Array): void;
|
|
12
7
|
export function revokeInstallationsSignatureRequest(host: string, recovery_identifier: Identifier, inbox_id: string, installation_ids: Uint8Array[]): Promise<SignatureRequestHandle>;
|
|
13
8
|
export function applySignatureRequest(host: string, signature_request: SignatureRequestHandle): Promise<void>;
|
|
9
|
+
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>;
|
|
10
|
+
export function encodeMultiRemoteAttachment(multiRemoteAttachment: MultiRemoteAttachment): Uint8Array;
|
|
11
|
+
export function decodeMultiRemoteAttachment(bytes: Uint8Array): MultiRemoteAttachment;
|
|
12
|
+
export function encodeReaction(reaction: Reaction): Uint8Array;
|
|
13
|
+
export function decodeReaction(bytes: Uint8Array): Reaction;
|
|
14
|
+
/**
|
|
15
|
+
* Entry point invoked by JavaScript in a worker.
|
|
16
|
+
*/
|
|
17
|
+
export function task_worker_entry_point(ptr: number): void;
|
|
14
18
|
export enum ConsentEntityType {
|
|
15
19
|
GroupId = 0,
|
|
16
20
|
InboxId = 1,
|
|
@@ -131,20 +135,6 @@ export class ApiStats {
|
|
|
131
135
|
export class Client {
|
|
132
136
|
private constructor();
|
|
133
137
|
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
138
|
setConsentStates(records: Consent[]): Promise<void>;
|
|
149
139
|
getConsentState(entity_type: ConsentEntityType, entity: string): Promise<ConsentState>;
|
|
150
140
|
/**
|
|
@@ -175,6 +165,20 @@ export class Client {
|
|
|
175
165
|
registerIdentity(signature_request: SignatureRequestHandle): Promise<void>;
|
|
176
166
|
signWithInstallationKey(signature_text: string): Uint8Array;
|
|
177
167
|
verifySignedWithInstallationKey(signature_text: string, signature_bytes: Uint8Array): void;
|
|
168
|
+
/**
|
|
169
|
+
* Output booleans should be zipped with the index of input identifiers
|
|
170
|
+
*/
|
|
171
|
+
canMessage(account_identifiers: Identifier[]): Promise<any>;
|
|
172
|
+
sendSyncRequest(): Promise<void>;
|
|
173
|
+
findInboxIdByIdentifier(identifier: Identifier): Promise<string | undefined>;
|
|
174
|
+
inboxStateFromInboxIds(inbox_ids: string[], refresh_from_network: boolean): Promise<InboxState[]>;
|
|
175
|
+
conversations(): Conversations;
|
|
176
|
+
syncPreferences(): Promise<number>;
|
|
177
|
+
apiStatistics(): ApiStats;
|
|
178
|
+
apiIdentityStatistics(): IdentityStats;
|
|
179
|
+
apiAggregateStatistics(): string;
|
|
180
|
+
clearAllStatistics(): void;
|
|
181
|
+
uploadDebugArchive(server_url: string): Promise<string>;
|
|
178
182
|
readonly accountIdentifier: Identifier;
|
|
179
183
|
readonly inboxId: string;
|
|
180
184
|
readonly isRegistered: boolean;
|
|
@@ -611,75 +615,6 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
|
|
|
611
615
|
|
|
612
616
|
export interface InitOutput {
|
|
613
617
|
readonly memory: WebAssembly.Memory;
|
|
614
|
-
readonly __wbg_permissionpolicyset_free: (a: number, b: number) => void;
|
|
615
|
-
readonly __wbg_get_permissionpolicyset_addMemberPolicy: (a: number) => number;
|
|
616
|
-
readonly __wbg_set_permissionpolicyset_addMemberPolicy: (a: number, b: number) => void;
|
|
617
|
-
readonly __wbg_get_permissionpolicyset_removeMemberPolicy: (a: number) => number;
|
|
618
|
-
readonly __wbg_set_permissionpolicyset_removeMemberPolicy: (a: number, b: number) => void;
|
|
619
|
-
readonly __wbg_get_permissionpolicyset_addAdminPolicy: (a: number) => number;
|
|
620
|
-
readonly __wbg_set_permissionpolicyset_addAdminPolicy: (a: number, b: number) => void;
|
|
621
|
-
readonly __wbg_get_permissionpolicyset_removeAdminPolicy: (a: number) => number;
|
|
622
|
-
readonly __wbg_set_permissionpolicyset_removeAdminPolicy: (a: number, b: number) => void;
|
|
623
|
-
readonly __wbg_get_permissionpolicyset_updateGroupNamePolicy: (a: number) => number;
|
|
624
|
-
readonly __wbg_set_permissionpolicyset_updateGroupNamePolicy: (a: number, b: number) => void;
|
|
625
|
-
readonly __wbg_get_permissionpolicyset_updateGroupDescriptionPolicy: (a: number) => number;
|
|
626
|
-
readonly __wbg_set_permissionpolicyset_updateGroupDescriptionPolicy: (a: number, b: number) => void;
|
|
627
|
-
readonly __wbg_get_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number) => number;
|
|
628
|
-
readonly __wbg_set_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number, b: number) => void;
|
|
629
|
-
readonly __wbg_get_permissionpolicyset_updateMessageDisappearingPolicy: (a: number) => number;
|
|
630
|
-
readonly __wbg_set_permissionpolicyset_updateMessageDisappearingPolicy: (a: number, b: number) => void;
|
|
631
|
-
readonly permissionpolicyset_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
632
|
-
readonly __wbg_grouppermissions_free: (a: number, b: number) => void;
|
|
633
|
-
readonly grouppermissions_policyType: (a: number) => [number, number, number];
|
|
634
|
-
readonly grouppermissions_policySet: (a: number) => [number, number, number];
|
|
635
|
-
readonly __wbg_contenttypeid_free: (a: number, b: number) => void;
|
|
636
|
-
readonly __wbg_get_contenttypeid_authorityId: (a: number) => [number, number];
|
|
637
|
-
readonly __wbg_set_contenttypeid_authorityId: (a: number, b: number, c: number) => void;
|
|
638
|
-
readonly __wbg_get_contenttypeid_typeId: (a: number) => [number, number];
|
|
639
|
-
readonly __wbg_set_contenttypeid_typeId: (a: number, b: number, c: number) => void;
|
|
640
|
-
readonly __wbg_get_contenttypeid_versionMajor: (a: number) => number;
|
|
641
|
-
readonly __wbg_set_contenttypeid_versionMajor: (a: number, b: number) => void;
|
|
642
|
-
readonly __wbg_get_contenttypeid_versionMinor: (a: number) => number;
|
|
643
|
-
readonly __wbg_set_contenttypeid_versionMinor: (a: number, b: number) => void;
|
|
644
|
-
readonly contenttypeid_new: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
645
|
-
readonly __wbg_encodedcontent_free: (a: number, b: number) => void;
|
|
646
|
-
readonly __wbg_get_encodedcontent_type: (a: number) => number;
|
|
647
|
-
readonly __wbg_set_encodedcontent_type: (a: number, b: number) => void;
|
|
648
|
-
readonly __wbg_get_encodedcontent_parameters: (a: number) => any;
|
|
649
|
-
readonly __wbg_set_encodedcontent_parameters: (a: number, b: any) => void;
|
|
650
|
-
readonly __wbg_get_encodedcontent_fallback: (a: number) => [number, number];
|
|
651
|
-
readonly __wbg_set_encodedcontent_fallback: (a: number, b: number, c: number) => void;
|
|
652
|
-
readonly __wbg_get_encodedcontent_compression: (a: number) => number;
|
|
653
|
-
readonly __wbg_set_encodedcontent_compression: (a: number, b: number) => void;
|
|
654
|
-
readonly __wbg_get_encodedcontent_content: (a: number) => any;
|
|
655
|
-
readonly __wbg_set_encodedcontent_content: (a: number, b: any) => void;
|
|
656
|
-
readonly encodedcontent_new: (a: number, b: any, c: number, d: number, e: number, f: any) => number;
|
|
657
|
-
readonly __wbg_client_free: (a: number, b: number) => void;
|
|
658
|
-
readonly __wbg_logoptions_free: (a: number, b: number) => void;
|
|
659
|
-
readonly __wbg_get_logoptions_structured: (a: number) => number;
|
|
660
|
-
readonly __wbg_set_logoptions_structured: (a: number, b: number) => void;
|
|
661
|
-
readonly __wbg_get_logoptions_performance: (a: number) => number;
|
|
662
|
-
readonly __wbg_set_logoptions_performance: (a: number, b: number) => void;
|
|
663
|
-
readonly __wbg_get_logoptions_level: (a: number) => number;
|
|
664
|
-
readonly __wbg_set_logoptions_level: (a: number, b: number) => void;
|
|
665
|
-
readonly logoptions_new: (a: number, b: number, c: number) => number;
|
|
666
|
-
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;
|
|
667
|
-
readonly client_accountIdentifier: (a: number) => any;
|
|
668
|
-
readonly client_inboxId: (a: number) => [number, number];
|
|
669
|
-
readonly client_isRegistered: (a: number) => number;
|
|
670
|
-
readonly client_installationId: (a: number) => [number, number];
|
|
671
|
-
readonly client_installationIdBytes: (a: number) => any;
|
|
672
|
-
readonly client_canMessage: (a: number, b: number, c: number) => any;
|
|
673
|
-
readonly client_sendSyncRequest: (a: number) => any;
|
|
674
|
-
readonly client_findInboxIdByIdentifier: (a: number, b: any) => any;
|
|
675
|
-
readonly client_inboxStateFromInboxIds: (a: number, b: number, c: number, d: number) => any;
|
|
676
|
-
readonly client_conversations: (a: number) => number;
|
|
677
|
-
readonly client_syncPreferences: (a: number) => any;
|
|
678
|
-
readonly client_apiStatistics: (a: number) => number;
|
|
679
|
-
readonly client_apiIdentityStatistics: (a: number) => number;
|
|
680
|
-
readonly client_apiAggregateStatistics: (a: number) => [number, number];
|
|
681
|
-
readonly client_clearAllStatistics: (a: number) => void;
|
|
682
|
-
readonly client_uploadDebugArchive: (a: number, b: number, c: number) => any;
|
|
683
618
|
readonly __wbg_consent_free: (a: number, b: number) => void;
|
|
684
619
|
readonly __wbg_get_consent_entityType: (a: number) => number;
|
|
685
620
|
readonly __wbg_set_consent_entityType: (a: number, b: number) => void;
|
|
@@ -692,63 +627,10 @@ export interface InitOutput {
|
|
|
692
627
|
readonly client_getConsentState: (a: number, b: number, c: number, d: number) => any;
|
|
693
628
|
readonly conversation_consentState: (a: number) => [number, number, number];
|
|
694
629
|
readonly conversation_updateConsentState: (a: number, b: number) => [number, number];
|
|
695
|
-
readonly __wbg_opfs_free: (a: number, b: number) => void;
|
|
696
|
-
readonly opfs_init_sqlite_opfs: () => any;
|
|
697
|
-
readonly opfs_exists: () => number;
|
|
698
|
-
readonly opfs_error: () => [number, number];
|
|
699
|
-
readonly opfs_wipeFiles: () => any;
|
|
700
|
-
readonly opfs_rm: (a: number, b: number) => [number, number, number];
|
|
701
|
-
readonly opfs_getFileNames: () => [number, number];
|
|
702
|
-
readonly opfs_importDb: (a: number, b: number, c: number, d: number) => [number, number];
|
|
703
|
-
readonly opfs_exportFile: (a: number, b: number) => [number, number, number, number];
|
|
704
|
-
readonly opfs_getFileCount: () => number;
|
|
705
|
-
readonly opfs_getCapacity: () => number;
|
|
706
|
-
readonly opfs_addCapacity: (a: number) => any;
|
|
707
|
-
readonly opfs_reduceCapacity: (a: number) => any;
|
|
708
|
-
readonly __wbg_streamcloser_free: (a: number, b: number) => void;
|
|
709
|
-
readonly streamcloser_end: (a: number) => void;
|
|
710
|
-
readonly streamcloser_endAndWait: (a: number) => any;
|
|
711
|
-
readonly streamcloser_waitForReady: (a: number) => any;
|
|
712
|
-
readonly streamcloser_isClosed: (a: number) => number;
|
|
713
|
-
readonly __wbg_remoteattachmentinfo_free: (a: number, b: number) => void;
|
|
714
|
-
readonly __wbg_get_remoteattachmentinfo_secret: (a: number) => any;
|
|
715
|
-
readonly __wbg_set_remoteattachmentinfo_secret: (a: number, b: any) => void;
|
|
716
|
-
readonly __wbg_get_remoteattachmentinfo_contentDigest: (a: number) => [number, number];
|
|
717
|
-
readonly __wbg_set_remoteattachmentinfo_contentDigest: (a: number, b: number, c: number) => void;
|
|
718
|
-
readonly __wbg_get_remoteattachmentinfo_nonce: (a: number) => any;
|
|
719
|
-
readonly __wbg_set_remoteattachmentinfo_nonce: (a: number, b: any) => void;
|
|
720
|
-
readonly __wbg_set_remoteattachmentinfo_scheme: (a: number, b: number, c: number) => void;
|
|
721
|
-
readonly __wbg_get_remoteattachmentinfo_salt: (a: number) => any;
|
|
722
|
-
readonly __wbg_set_remoteattachmentinfo_salt: (a: number, b: any) => void;
|
|
723
|
-
readonly __wbg_get_remoteattachmentinfo_contentLength: (a: number) => number;
|
|
724
|
-
readonly __wbg_set_remoteattachmentinfo_contentLength: (a: number, b: number) => void;
|
|
725
|
-
readonly __wbg_get_remoteattachmentinfo_filename: (a: number) => [number, number];
|
|
726
|
-
readonly __wbg_set_remoteattachmentinfo_filename: (a: number, b: number, c: number) => void;
|
|
727
|
-
readonly remoteattachmentinfo_new: (a: any, b: number, c: number, d: any, e: number, f: number, g: number, h: number, i: any, j: number, k: number, l: number) => number;
|
|
728
|
-
readonly __wbg_multiremoteattachment_free: (a: number, b: number) => void;
|
|
729
|
-
readonly __wbg_get_multiremoteattachment_attachments: (a: number) => [number, number];
|
|
730
|
-
readonly __wbg_set_multiremoteattachment_attachments: (a: number, b: number, c: number) => void;
|
|
731
|
-
readonly multiremoteattachment_new: (a: number, b: number) => number;
|
|
732
|
-
readonly encodeMultiRemoteAttachment: (a: number) => [number, number, number];
|
|
733
|
-
readonly decodeMultiRemoteAttachment: (a: any) => [number, number, number];
|
|
734
|
-
readonly __wbg_reaction_free: (a: number, b: number) => void;
|
|
735
|
-
readonly __wbg_get_reaction_referenceInboxId: (a: number) => [number, number];
|
|
736
|
-
readonly __wbg_set_reaction_referenceInboxId: (a: number, b: number, c: number) => void;
|
|
737
|
-
readonly __wbg_get_reaction_action: (a: number) => number;
|
|
738
|
-
readonly __wbg_set_reaction_action: (a: number, b: number) => void;
|
|
739
|
-
readonly __wbg_get_reaction_content: (a: number) => [number, number];
|
|
740
|
-
readonly __wbg_set_reaction_content: (a: number, b: number, c: number) => void;
|
|
741
|
-
readonly __wbg_get_reaction_schema: (a: number) => number;
|
|
742
|
-
readonly __wbg_set_reaction_schema: (a: number, b: number) => void;
|
|
743
|
-
readonly reaction_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
744
|
-
readonly encodeReaction: (a: number) => [number, number, number];
|
|
745
|
-
readonly decodeReaction: (a: any) => [number, number, number];
|
|
746
630
|
readonly __wbg_groupmetadata_free: (a: number, b: number) => void;
|
|
747
631
|
readonly groupmetadata_creatorInboxId: (a: number) => [number, number];
|
|
748
632
|
readonly groupmetadata_conversationType: (a: number) => [number, number];
|
|
749
633
|
readonly __wbg_groupmember_free: (a: number, b: number) => void;
|
|
750
|
-
readonly __wbg_get_groupmember_inboxId: (a: number) => [number, number];
|
|
751
|
-
readonly __wbg_set_groupmember_inboxId: (a: number, b: number, c: number) => void;
|
|
752
634
|
readonly __wbg_get_groupmember_accountIdentifiers: (a: number) => [number, number];
|
|
753
635
|
readonly __wbg_set_groupmember_accountIdentifiers: (a: number, b: number, c: number) => void;
|
|
754
636
|
readonly __wbg_get_groupmember_installationIds: (a: number) => [number, number];
|
|
@@ -813,15 +695,18 @@ export interface InitOutput {
|
|
|
813
695
|
readonly __wbg_get_listconversationsoptions_limit: (a: number) => [number, bigint];
|
|
814
696
|
readonly __wbg_set_listconversationsoptions_limit: (a: number, b: number, c: bigint) => void;
|
|
815
697
|
readonly listconversationsoptions_new: (a: number, b: number, c: number, d: number, e: bigint, f: number, g: bigint, h: number, i: number, j: bigint) => number;
|
|
816
|
-
readonly __wbg_messagedisappearingsettings_free: (a: number, b: number) => void;
|
|
817
698
|
readonly messagedisappearingsettings_new: (a: bigint, b: bigint) => number;
|
|
818
699
|
readonly __wbg_conversationdebuginfo_free: (a: number, b: number) => void;
|
|
700
|
+
readonly __wbg_get_conversationdebuginfo_epoch: (a: number) => bigint;
|
|
701
|
+
readonly __wbg_set_conversationdebuginfo_epoch: (a: number, b: bigint) => void;
|
|
819
702
|
readonly __wbg_get_conversationdebuginfo_maybeForked: (a: number) => number;
|
|
820
703
|
readonly __wbg_set_conversationdebuginfo_maybeForked: (a: number, b: number) => void;
|
|
821
704
|
readonly __wbg_get_conversationdebuginfo_forkDetails: (a: number) => [number, number];
|
|
822
705
|
readonly __wbg_set_conversationdebuginfo_forkDetails: (a: number, b: number, c: number) => void;
|
|
823
706
|
readonly __wbg_get_conversationdebuginfo_localCommitLog: (a: number) => [number, number];
|
|
824
707
|
readonly __wbg_set_conversationdebuginfo_localCommitLog: (a: number, b: number, c: number) => void;
|
|
708
|
+
readonly __wbg_get_conversationdebuginfo_cursor: (a: number) => bigint;
|
|
709
|
+
readonly __wbg_set_conversationdebuginfo_cursor: (a: number, b: bigint) => void;
|
|
825
710
|
readonly __wbg_creategroupoptions_free: (a: number, b: number) => void;
|
|
826
711
|
readonly __wbg_get_creategroupoptions_permissions: (a: number) => number;
|
|
827
712
|
readonly __wbg_set_creategroupoptions_permissions: (a: number, b: number) => void;
|
|
@@ -865,24 +750,26 @@ export interface InitOutput {
|
|
|
865
750
|
readonly conversations_streamAllMessages: (a: number, b: any, c: number, d: number, e: number) => [number, number, number];
|
|
866
751
|
readonly conversations_streamConsent: (a: number, b: any) => [number, number, number];
|
|
867
752
|
readonly conversations_streamPreferences: (a: number, b: any) => [number, number, number];
|
|
868
|
-
readonly
|
|
869
|
-
readonly
|
|
870
|
-
readonly
|
|
871
|
-
readonly
|
|
872
|
-
readonly
|
|
873
|
-
readonly
|
|
874
|
-
readonly
|
|
875
|
-
readonly
|
|
876
|
-
readonly
|
|
877
|
-
readonly
|
|
878
|
-
readonly
|
|
879
|
-
readonly
|
|
880
|
-
readonly
|
|
881
|
-
readonly
|
|
882
|
-
readonly
|
|
883
|
-
readonly
|
|
884
|
-
readonly
|
|
885
|
-
readonly
|
|
753
|
+
readonly __wbg_contenttypeid_free: (a: number, b: number) => void;
|
|
754
|
+
readonly __wbg_get_contenttypeid_typeId: (a: number) => [number, number];
|
|
755
|
+
readonly __wbg_set_contenttypeid_typeId: (a: number, b: number, c: number) => void;
|
|
756
|
+
readonly __wbg_get_contenttypeid_versionMajor: (a: number) => number;
|
|
757
|
+
readonly __wbg_set_contenttypeid_versionMajor: (a: number, b: number) => void;
|
|
758
|
+
readonly __wbg_get_contenttypeid_versionMinor: (a: number) => number;
|
|
759
|
+
readonly __wbg_set_contenttypeid_versionMinor: (a: number, b: number) => void;
|
|
760
|
+
readonly contenttypeid_new: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
761
|
+
readonly __wbg_encodedcontent_free: (a: number, b: number) => void;
|
|
762
|
+
readonly __wbg_get_encodedcontent_type: (a: number) => number;
|
|
763
|
+
readonly __wbg_set_encodedcontent_type: (a: number, b: number) => void;
|
|
764
|
+
readonly __wbg_get_encodedcontent_parameters: (a: number) => any;
|
|
765
|
+
readonly __wbg_set_encodedcontent_parameters: (a: number, b: any) => void;
|
|
766
|
+
readonly __wbg_get_encodedcontent_fallback: (a: number) => [number, number];
|
|
767
|
+
readonly __wbg_set_encodedcontent_fallback: (a: number, b: number, c: number) => void;
|
|
768
|
+
readonly __wbg_get_encodedcontent_compression: (a: number) => number;
|
|
769
|
+
readonly __wbg_set_encodedcontent_compression: (a: number, b: number) => void;
|
|
770
|
+
readonly __wbg_get_encodedcontent_content: (a: number) => any;
|
|
771
|
+
readonly __wbg_set_encodedcontent_content: (a: number, b: any) => void;
|
|
772
|
+
readonly encodedcontent_new: (a: number, b: any, c: number, d: number, e: number, f: any) => number;
|
|
886
773
|
readonly getInboxIdForIdentifier: (a: number, b: number, c: any) => any;
|
|
887
774
|
readonly generateInboxId: (a: any) => [number, number, number, number];
|
|
888
775
|
readonly __wbg_installation_free: (a: number, b: number) => void;
|
|
@@ -900,7 +787,6 @@ export interface InitOutput {
|
|
|
900
787
|
readonly __wbg_set_inboxstate_accountIdentifiers: (a: number, b: number, c: number) => void;
|
|
901
788
|
readonly inboxstate_new: (a: number, b: number, c: any, d: number, e: number, f: number, g: number) => number;
|
|
902
789
|
readonly __wbg_keypackagestatus_free: (a: number, b: number) => void;
|
|
903
|
-
readonly __wbg_get_keypackagestatus_lifetime: (a: number) => number;
|
|
904
790
|
readonly __wbg_get_keypackagestatus_validationError: (a: number) => [number, number];
|
|
905
791
|
readonly __wbg_set_keypackagestatus_validationError: (a: number, b: number, c: number) => void;
|
|
906
792
|
readonly __wbg_lifetime_free: (a: number, b: number) => void;
|
|
@@ -937,6 +823,19 @@ export interface InitOutput {
|
|
|
937
823
|
readonly __wbg_set_messagewithreactions_message: (a: number, b: number) => void;
|
|
938
824
|
readonly __wbg_get_messagewithreactions_reactions: (a: number) => [number, number];
|
|
939
825
|
readonly __wbg_set_messagewithreactions_reactions: (a: number, b: number, c: number) => void;
|
|
826
|
+
readonly __wbg_opfs_free: (a: number, b: number) => void;
|
|
827
|
+
readonly opfs_init_sqlite_opfs: () => any;
|
|
828
|
+
readonly opfs_exists: () => number;
|
|
829
|
+
readonly opfs_error: () => [number, number];
|
|
830
|
+
readonly opfs_wipeFiles: () => any;
|
|
831
|
+
readonly opfs_rm: (a: number, b: number) => [number, number, number];
|
|
832
|
+
readonly opfs_getFileNames: () => [number, number];
|
|
833
|
+
readonly opfs_importDb: (a: number, b: number, c: number, d: number) => [number, number];
|
|
834
|
+
readonly opfs_exportFile: (a: number, b: number) => [number, number, number, number];
|
|
835
|
+
readonly opfs_getFileCount: () => number;
|
|
836
|
+
readonly opfs_getCapacity: () => number;
|
|
837
|
+
readonly opfs_addCapacity: (a: number) => any;
|
|
838
|
+
readonly opfs_reduceCapacity: (a: number) => any;
|
|
940
839
|
readonly __wbg_signaturerequesthandle_free: (a: number, b: number) => void;
|
|
941
840
|
readonly verifySignedWithPublicKey: (a: number, b: number, c: any, d: any) => [number, number];
|
|
942
841
|
readonly revokeInstallationsSignatureRequest: (a: number, b: number, c: any, d: number, e: number, f: number, g: number) => any;
|
|
@@ -956,40 +855,32 @@ export interface InitOutput {
|
|
|
956
855
|
readonly client_registerIdentity: (a: number, b: number) => any;
|
|
957
856
|
readonly client_signWithInstallationKey: (a: number, b: number, c: number) => [number, number, number];
|
|
958
857
|
readonly client_verifySignedWithInstallationKey: (a: number, b: number, c: number, d: any) => [number, number];
|
|
858
|
+
readonly __wbg_streamcloser_free: (a: number, b: number) => void;
|
|
859
|
+
readonly streamcloser_end: (a: number) => void;
|
|
860
|
+
readonly streamcloser_endAndWait: (a: number) => any;
|
|
861
|
+
readonly streamcloser_waitForReady: (a: number) => any;
|
|
862
|
+
readonly streamcloser_isClosed: (a: number) => number;
|
|
959
863
|
readonly __wbg_get_listconversationsoptions_createdAfterNs: (a: number) => [number, bigint];
|
|
960
864
|
readonly __wbg_get_listmessagesoptions_sentBeforeNs: (a: number) => [number, bigint];
|
|
961
865
|
readonly __wbg_get_listmessagesoptions_sentAfterNs: (a: number) => [number, bigint];
|
|
962
866
|
readonly __wbg_get_listmessagesoptions_limit: (a: number) => [number, bigint];
|
|
963
|
-
readonly
|
|
964
|
-
readonly
|
|
965
|
-
readonly __wbg_get_remoteattachmentinfo_url: (a: number) => [number, number];
|
|
867
|
+
readonly __wbg_get_groupmember_inboxId: (a: number) => [number, number];
|
|
868
|
+
readonly __wbg_get_contenttypeid_authorityId: (a: number) => [number, number];
|
|
966
869
|
readonly __wbg_get_installation_id: (a: number) => [number, number];
|
|
967
870
|
readonly __wbg_get_inboxstate_inboxId: (a: number) => [number, number];
|
|
968
|
-
readonly
|
|
969
|
-
readonly
|
|
871
|
+
readonly __wbg_set_groupmember_inboxId: (a: number, b: number, c: number) => void;
|
|
872
|
+
readonly __wbg_set_contenttypeid_authorityId: (a: number, b: number, c: number) => void;
|
|
970
873
|
readonly __wbg_set_installation_id: (a: number, b: number, c: number) => void;
|
|
971
874
|
readonly __wbg_set_inboxstate_inboxId: (a: number, b: number, c: number) => void;
|
|
972
875
|
readonly __wbg_set_messagedisappearingsettings_fromNs: (a: number, b: bigint) => void;
|
|
973
876
|
readonly __wbg_set_messagedisappearingsettings_inNs: (a: number, b: bigint) => void;
|
|
974
877
|
readonly __wbg_set_hmackey_epoch: (a: number, b: bigint) => void;
|
|
975
|
-
readonly __wbg_set_conversationdebuginfo_epoch: (a: number, b: bigint) => void;
|
|
976
|
-
readonly __wbg_set_conversationdebuginfo_cursor: (a: number, b: bigint) => void;
|
|
977
|
-
readonly __wbg_set_identitystats_publish_identity_update: (a: number, b: bigint) => void;
|
|
978
|
-
readonly __wbg_set_identitystats_get_identity_updates_v2: (a: number, b: bigint) => void;
|
|
979
|
-
readonly __wbg_set_identitystats_get_inbox_ids: (a: number, b: bigint) => void;
|
|
980
|
-
readonly __wbg_set_identitystats_verify_smart_contract_wallet_signature: (a: number, b: bigint) => void;
|
|
981
878
|
readonly __wbg_set_lifetime_not_before: (a: number, b: bigint) => void;
|
|
982
879
|
readonly __wbg_set_lifetime_not_after: (a: number, b: bigint) => void;
|
|
983
880
|
readonly __wbg_set_message_sentAtNs: (a: number, b: bigint) => void;
|
|
984
881
|
readonly __wbg_get_messagedisappearingsettings_fromNs: (a: number) => bigint;
|
|
985
882
|
readonly __wbg_get_messagedisappearingsettings_inNs: (a: number) => bigint;
|
|
986
883
|
readonly __wbg_get_hmackey_epoch: (a: number) => bigint;
|
|
987
|
-
readonly __wbg_get_conversationdebuginfo_epoch: (a: number) => bigint;
|
|
988
|
-
readonly __wbg_get_conversationdebuginfo_cursor: (a: number) => bigint;
|
|
989
|
-
readonly __wbg_get_identitystats_publish_identity_update: (a: number) => bigint;
|
|
990
|
-
readonly __wbg_get_identitystats_get_identity_updates_v2: (a: number) => bigint;
|
|
991
|
-
readonly __wbg_get_identitystats_get_inbox_ids: (a: number) => bigint;
|
|
992
|
-
readonly __wbg_get_identitystats_verify_smart_contract_wallet_signature: (a: number) => bigint;
|
|
993
884
|
readonly __wbg_get_lifetime_not_before: (a: number) => bigint;
|
|
994
885
|
readonly __wbg_get_lifetime_not_after: (a: number) => bigint;
|
|
995
886
|
readonly __wbg_get_message_sentAtNs: (a: number) => bigint;
|
|
@@ -999,7 +890,120 @@ export interface InitOutput {
|
|
|
999
890
|
readonly __wbg_set_listmessagesoptions_sentAfterNs: (a: number, b: number, c: bigint) => void;
|
|
1000
891
|
readonly __wbg_set_listmessagesoptions_limit: (a: number, b: number, c: bigint) => void;
|
|
1001
892
|
readonly __wbg_get_creategroupoptions_messageDisappearingSettings: (a: number) => number;
|
|
893
|
+
readonly __wbg_get_keypackagestatus_lifetime: (a: number) => number;
|
|
1002
894
|
readonly __wbg_set_keypackagestatus_lifetime: (a: number, b: number) => void;
|
|
895
|
+
readonly __wbg_messagedisappearingsettings_free: (a: number, b: number) => void;
|
|
896
|
+
readonly __wbg_client_free: (a: number, b: number) => void;
|
|
897
|
+
readonly __wbg_logoptions_free: (a: number, b: number) => void;
|
|
898
|
+
readonly __wbg_get_logoptions_structured: (a: number) => number;
|
|
899
|
+
readonly __wbg_set_logoptions_structured: (a: number, b: number) => void;
|
|
900
|
+
readonly __wbg_get_logoptions_performance: (a: number) => number;
|
|
901
|
+
readonly __wbg_set_logoptions_performance: (a: number, b: number) => void;
|
|
902
|
+
readonly __wbg_get_logoptions_level: (a: number) => number;
|
|
903
|
+
readonly __wbg_set_logoptions_level: (a: number, b: number) => void;
|
|
904
|
+
readonly logoptions_new: (a: number, b: number, c: number) => number;
|
|
905
|
+
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;
|
|
906
|
+
readonly client_accountIdentifier: (a: number) => any;
|
|
907
|
+
readonly client_inboxId: (a: number) => [number, number];
|
|
908
|
+
readonly client_isRegistered: (a: number) => number;
|
|
909
|
+
readonly client_installationId: (a: number) => [number, number];
|
|
910
|
+
readonly client_installationIdBytes: (a: number) => any;
|
|
911
|
+
readonly client_canMessage: (a: number, b: number, c: number) => any;
|
|
912
|
+
readonly client_sendSyncRequest: (a: number) => any;
|
|
913
|
+
readonly client_findInboxIdByIdentifier: (a: number, b: any) => any;
|
|
914
|
+
readonly client_inboxStateFromInboxIds: (a: number, b: number, c: number, d: number) => any;
|
|
915
|
+
readonly client_conversations: (a: number) => number;
|
|
916
|
+
readonly client_syncPreferences: (a: number) => any;
|
|
917
|
+
readonly client_apiStatistics: (a: number) => number;
|
|
918
|
+
readonly client_apiIdentityStatistics: (a: number) => number;
|
|
919
|
+
readonly client_apiAggregateStatistics: (a: number) => [number, number];
|
|
920
|
+
readonly client_clearAllStatistics: (a: number) => void;
|
|
921
|
+
readonly client_uploadDebugArchive: (a: number, b: number, c: number) => any;
|
|
922
|
+
readonly __wbg_remoteattachmentinfo_free: (a: number, b: number) => void;
|
|
923
|
+
readonly __wbg_get_remoteattachmentinfo_secret: (a: number) => any;
|
|
924
|
+
readonly __wbg_set_remoteattachmentinfo_secret: (a: number, b: any) => void;
|
|
925
|
+
readonly __wbg_get_remoteattachmentinfo_contentDigest: (a: number) => [number, number];
|
|
926
|
+
readonly __wbg_set_remoteattachmentinfo_contentDigest: (a: number, b: number, c: number) => void;
|
|
927
|
+
readonly __wbg_get_remoteattachmentinfo_nonce: (a: number) => any;
|
|
928
|
+
readonly __wbg_set_remoteattachmentinfo_nonce: (a: number, b: any) => void;
|
|
929
|
+
readonly __wbg_get_remoteattachmentinfo_scheme: (a: number) => [number, number];
|
|
930
|
+
readonly __wbg_set_remoteattachmentinfo_scheme: (a: number, b: number, c: number) => void;
|
|
931
|
+
readonly __wbg_get_remoteattachmentinfo_url: (a: number) => [number, number];
|
|
932
|
+
readonly __wbg_set_remoteattachmentinfo_url: (a: number, b: number, c: number) => void;
|
|
933
|
+
readonly __wbg_get_remoteattachmentinfo_salt: (a: number) => any;
|
|
934
|
+
readonly __wbg_set_remoteattachmentinfo_salt: (a: number, b: any) => void;
|
|
935
|
+
readonly __wbg_get_remoteattachmentinfo_contentLength: (a: number) => number;
|
|
936
|
+
readonly __wbg_set_remoteattachmentinfo_contentLength: (a: number, b: number) => void;
|
|
937
|
+
readonly __wbg_get_remoteattachmentinfo_filename: (a: number) => [number, number];
|
|
938
|
+
readonly __wbg_set_remoteattachmentinfo_filename: (a: number, b: number, c: number) => void;
|
|
939
|
+
readonly remoteattachmentinfo_new: (a: any, b: number, c: number, d: any, e: number, f: number, g: number, h: number, i: any, j: number, k: number, l: number) => number;
|
|
940
|
+
readonly __wbg_multiremoteattachment_free: (a: number, b: number) => void;
|
|
941
|
+
readonly __wbg_get_multiremoteattachment_attachments: (a: number) => [number, number];
|
|
942
|
+
readonly __wbg_set_multiremoteattachment_attachments: (a: number, b: number, c: number) => void;
|
|
943
|
+
readonly multiremoteattachment_new: (a: number, b: number) => number;
|
|
944
|
+
readonly encodeMultiRemoteAttachment: (a: number) => [number, number, number];
|
|
945
|
+
readonly decodeMultiRemoteAttachment: (a: any) => [number, number, number];
|
|
946
|
+
readonly __wbg_reaction_free: (a: number, b: number) => void;
|
|
947
|
+
readonly __wbg_get_reaction_reference: (a: number) => [number, number];
|
|
948
|
+
readonly __wbg_set_reaction_reference: (a: number, b: number, c: number) => void;
|
|
949
|
+
readonly __wbg_get_reaction_referenceInboxId: (a: number) => [number, number];
|
|
950
|
+
readonly __wbg_set_reaction_referenceInboxId: (a: number, b: number, c: number) => void;
|
|
951
|
+
readonly __wbg_get_reaction_action: (a: number) => number;
|
|
952
|
+
readonly __wbg_set_reaction_action: (a: number, b: number) => void;
|
|
953
|
+
readonly __wbg_get_reaction_content: (a: number) => [number, number];
|
|
954
|
+
readonly __wbg_set_reaction_content: (a: number, b: number, c: number) => void;
|
|
955
|
+
readonly __wbg_get_reaction_schema: (a: number) => number;
|
|
956
|
+
readonly __wbg_set_reaction_schema: (a: number, b: number) => void;
|
|
957
|
+
readonly reaction_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
958
|
+
readonly encodeReaction: (a: number) => [number, number, number];
|
|
959
|
+
readonly decodeReaction: (a: any) => [number, number, number];
|
|
960
|
+
readonly __wbg_apistats_free: (a: number, b: number) => void;
|
|
961
|
+
readonly __wbg_get_apistats_upload_key_package: (a: number) => bigint;
|
|
962
|
+
readonly __wbg_set_apistats_upload_key_package: (a: number, b: bigint) => void;
|
|
963
|
+
readonly __wbg_get_apistats_fetch_key_package: (a: number) => bigint;
|
|
964
|
+
readonly __wbg_set_apistats_fetch_key_package: (a: number, b: bigint) => void;
|
|
965
|
+
readonly __wbg_get_apistats_send_group_messages: (a: number) => bigint;
|
|
966
|
+
readonly __wbg_set_apistats_send_group_messages: (a: number, b: bigint) => void;
|
|
967
|
+
readonly __wbg_get_apistats_send_welcome_messages: (a: number) => bigint;
|
|
968
|
+
readonly __wbg_set_apistats_send_welcome_messages: (a: number, b: bigint) => void;
|
|
969
|
+
readonly __wbg_get_apistats_query_group_messages: (a: number) => bigint;
|
|
970
|
+
readonly __wbg_set_apistats_query_group_messages: (a: number, b: bigint) => void;
|
|
971
|
+
readonly __wbg_get_apistats_query_welcome_messages: (a: number) => bigint;
|
|
972
|
+
readonly __wbg_set_apistats_query_welcome_messages: (a: number, b: bigint) => void;
|
|
973
|
+
readonly __wbg_get_apistats_subscribe_messages: (a: number) => bigint;
|
|
974
|
+
readonly __wbg_set_apistats_subscribe_messages: (a: number, b: bigint) => void;
|
|
975
|
+
readonly __wbg_get_apistats_subscribe_welcomes: (a: number) => bigint;
|
|
976
|
+
readonly __wbg_set_apistats_subscribe_welcomes: (a: number, b: bigint) => void;
|
|
977
|
+
readonly __wbg_identitystats_free: (a: number, b: number) => void;
|
|
978
|
+
readonly __wbg_permissionpolicyset_free: (a: number, b: number) => void;
|
|
979
|
+
readonly __wbg_get_permissionpolicyset_addMemberPolicy: (a: number) => number;
|
|
980
|
+
readonly __wbg_set_permissionpolicyset_addMemberPolicy: (a: number, b: number) => void;
|
|
981
|
+
readonly __wbg_get_permissionpolicyset_removeMemberPolicy: (a: number) => number;
|
|
982
|
+
readonly __wbg_set_permissionpolicyset_removeMemberPolicy: (a: number, b: number) => void;
|
|
983
|
+
readonly __wbg_get_permissionpolicyset_addAdminPolicy: (a: number) => number;
|
|
984
|
+
readonly __wbg_set_permissionpolicyset_addAdminPolicy: (a: number, b: number) => void;
|
|
985
|
+
readonly __wbg_get_permissionpolicyset_removeAdminPolicy: (a: number) => number;
|
|
986
|
+
readonly __wbg_set_permissionpolicyset_removeAdminPolicy: (a: number, b: number) => void;
|
|
987
|
+
readonly __wbg_get_permissionpolicyset_updateGroupNamePolicy: (a: number) => number;
|
|
988
|
+
readonly __wbg_set_permissionpolicyset_updateGroupNamePolicy: (a: number, b: number) => void;
|
|
989
|
+
readonly __wbg_get_permissionpolicyset_updateGroupDescriptionPolicy: (a: number) => number;
|
|
990
|
+
readonly __wbg_set_permissionpolicyset_updateGroupDescriptionPolicy: (a: number, b: number) => void;
|
|
991
|
+
readonly __wbg_get_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number) => number;
|
|
992
|
+
readonly __wbg_set_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number, b: number) => void;
|
|
993
|
+
readonly __wbg_get_permissionpolicyset_updateMessageDisappearingPolicy: (a: number) => number;
|
|
994
|
+
readonly __wbg_set_permissionpolicyset_updateMessageDisappearingPolicy: (a: number, b: number) => void;
|
|
995
|
+
readonly permissionpolicyset_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
996
|
+
readonly __wbg_grouppermissions_free: (a: number, b: number) => void;
|
|
997
|
+
readonly grouppermissions_policyType: (a: number) => [number, number, number];
|
|
998
|
+
readonly grouppermissions_policySet: (a: number) => [number, number, number];
|
|
999
|
+
readonly __wbg_set_identitystats_publish_identity_update: (a: number, b: bigint) => void;
|
|
1000
|
+
readonly __wbg_set_identitystats_get_identity_updates_v2: (a: number, b: bigint) => void;
|
|
1001
|
+
readonly __wbg_set_identitystats_get_inbox_ids: (a: number, b: bigint) => void;
|
|
1002
|
+
readonly __wbg_set_identitystats_verify_smart_contract_wallet_signature: (a: number, b: bigint) => void;
|
|
1003
|
+
readonly __wbg_get_identitystats_publish_identity_update: (a: number) => bigint;
|
|
1004
|
+
readonly __wbg_get_identitystats_get_identity_updates_v2: (a: number) => bigint;
|
|
1005
|
+
readonly __wbg_get_identitystats_get_inbox_ids: (a: number) => bigint;
|
|
1006
|
+
readonly __wbg_get_identitystats_verify_smart_contract_wallet_signature: (a: number) => bigint;
|
|
1003
1007
|
readonly rust_zstd_wasm_shim_qsort: (a: number, b: number, c: number, d: number) => void;
|
|
1004
1008
|
readonly rust_zstd_wasm_shim_malloc: (a: number) => number;
|
|
1005
1009
|
readonly rust_zstd_wasm_shim_memcmp: (a: number, b: number, c: number) => number;
|
|
@@ -1032,6 +1036,7 @@ export interface InitOutput {
|
|
|
1032
1036
|
readonly intounderlyingsink_write: (a: number, b: any) => any;
|
|
1033
1037
|
readonly intounderlyingsink_close: (a: number) => any;
|
|
1034
1038
|
readonly intounderlyingsink_abort: (a: number, b: any) => any;
|
|
1039
|
+
readonly task_worker_entry_point: (a: number) => [number, number];
|
|
1035
1040
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
1036
1041
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
1037
1042
|
readonly __wbindgen_exn_store: (a: number) => void;
|
|
@@ -1041,10 +1046,10 @@ export interface InitOutput {
|
|
|
1041
1046
|
readonly __externref_drop_slice: (a: number, b: number) => void;
|
|
1042
1047
|
readonly __wbindgen_export_7: WebAssembly.Table;
|
|
1043
1048
|
readonly __externref_table_dealloc: (a: number) => void;
|
|
1044
|
-
readonly
|
|
1045
|
-
readonly closure4982_externref_shim: (a: number, b: number, c: any) => void;
|
|
1049
|
+
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h42782d8d6f6b94ef: (a: number, b: number) => void;
|
|
1046
1050
|
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h912129f7a2cf8b7b: (a: number, b: number) => void;
|
|
1047
|
-
readonly
|
|
1051
|
+
readonly closure5046_externref_shim: (a: number, b: number, c: any) => void;
|
|
1052
|
+
readonly closure5989_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
1048
1053
|
readonly __wbindgen_start: () => void;
|
|
1049
1054
|
}
|
|
1050
1055
|
|