@xmtp/wasm-bindings 1.2.0-rc5 → 1.2.1
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 +144 -139
- package/dist/bindings_wasm.js +124 -101
- package/dist/bindings_wasm_bg.wasm +0 -0
- package/dist/bindings_wasm_bg.wasm.d.ts +136 -135
- package/dist/snippets/wasm-array-cp-201e2a98f0e691f7/copy.min.js +1 -0
- package/dist/version.json +2 -2
- package/package.json +6 -2
- package/dist/snippets/sqlite-wasm-rs-7363ec544fce135b/src/vfs/utils.js +0 -11
package/dist/bindings_wasm.d.ts
CHANGED
|
@@ -135,8 +135,6 @@ export class ApiStats {
|
|
|
135
135
|
export class Client {
|
|
136
136
|
private constructor();
|
|
137
137
|
free(): void;
|
|
138
|
-
setConsentStates(records: Consent[]): Promise<void>;
|
|
139
|
-
getConsentState(entity_type: ConsentEntityType, entity: string): Promise<ConsentState>;
|
|
140
138
|
createInboxSignatureText(): string | undefined;
|
|
141
139
|
addWalletSignatureText(new_identifier: Identifier): Promise<string>;
|
|
142
140
|
revokeWalletSignatureText(identifier: Identifier): Promise<string>;
|
|
@@ -181,6 +179,8 @@ export class Client {
|
|
|
181
179
|
*
|
|
182
180
|
*/
|
|
183
181
|
getKeyPackageStatusesForInstallationIds(installation_ids: string[]): Promise<any>;
|
|
182
|
+
setConsentStates(records: Consent[]): Promise<void>;
|
|
183
|
+
getConsentState(entity_type: ConsentEntityType, entity: string): Promise<ConsentState>;
|
|
184
184
|
readonly accountIdentifier: Identifier;
|
|
185
185
|
readonly inboxId: string;
|
|
186
186
|
readonly isRegistered: boolean;
|
|
@@ -205,8 +205,6 @@ export class ContentTypeId {
|
|
|
205
205
|
export class Conversation {
|
|
206
206
|
private constructor();
|
|
207
207
|
free(): void;
|
|
208
|
-
consentState(): ConsentState;
|
|
209
|
-
updateConsentState(state: ConsentState): void;
|
|
210
208
|
id(): string;
|
|
211
209
|
send(encoded_content: EncodedContent): Promise<string>;
|
|
212
210
|
/**
|
|
@@ -255,6 +253,8 @@ export class Conversation {
|
|
|
255
253
|
getHmacKeys(): any;
|
|
256
254
|
getDebugInfo(): Promise<any>;
|
|
257
255
|
findDuplicateDms(): Promise<Conversation[]>;
|
|
256
|
+
consentState(): ConsentState;
|
|
257
|
+
updateConsentState(state: ConsentState): void;
|
|
258
258
|
}
|
|
259
259
|
export class ConversationDebugInfo {
|
|
260
260
|
private constructor();
|
|
@@ -285,6 +285,10 @@ export class Conversations {
|
|
|
285
285
|
syncAllConversations(consent_states?: any[] | null): Promise<number>;
|
|
286
286
|
list(opts?: ListConversationsOptions | null): Array<any>;
|
|
287
287
|
getHmacKeys(): any;
|
|
288
|
+
/**
|
|
289
|
+
* Returns a 'ReadableStream' of Conversations
|
|
290
|
+
*/
|
|
291
|
+
streamLocal(conversation_type?: ConversationType | null): Promise<ReadableStream>;
|
|
288
292
|
stream(callback: any, conversation_type?: ConversationType | null): StreamCloser;
|
|
289
293
|
streamAllMessages(callback: any, conversation_type?: ConversationType | null, consent_states?: any[] | null): StreamCloser;
|
|
290
294
|
streamConsent(callback: any): StreamCloser;
|
|
@@ -603,18 +607,38 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
|
|
|
603
607
|
|
|
604
608
|
export interface InitOutput {
|
|
605
609
|
readonly memory: WebAssembly.Memory;
|
|
606
|
-
readonly
|
|
607
|
-
readonly
|
|
608
|
-
readonly
|
|
609
|
-
readonly
|
|
610
|
-
readonly
|
|
611
|
-
readonly
|
|
612
|
-
readonly
|
|
613
|
-
readonly
|
|
614
|
-
readonly
|
|
615
|
-
readonly
|
|
616
|
-
readonly
|
|
617
|
-
readonly
|
|
610
|
+
readonly __wbg_remoteattachmentinfo_free: (a: number, b: number) => void;
|
|
611
|
+
readonly __wbg_get_remoteattachmentinfo_contentDigest: (a: number) => [number, number];
|
|
612
|
+
readonly __wbg_set_remoteattachmentinfo_contentDigest: (a: number, b: number, c: number) => void;
|
|
613
|
+
readonly __wbg_get_remoteattachmentinfo_nonce: (a: number) => any;
|
|
614
|
+
readonly __wbg_set_remoteattachmentinfo_nonce: (a: number, b: any) => void;
|
|
615
|
+
readonly __wbg_get_remoteattachmentinfo_scheme: (a: number) => [number, number];
|
|
616
|
+
readonly __wbg_set_remoteattachmentinfo_scheme: (a: number, b: number, c: number) => void;
|
|
617
|
+
readonly __wbg_get_remoteattachmentinfo_url: (a: number) => [number, number];
|
|
618
|
+
readonly __wbg_set_remoteattachmentinfo_url: (a: number, b: number, c: number) => void;
|
|
619
|
+
readonly __wbg_get_remoteattachmentinfo_salt: (a: number) => any;
|
|
620
|
+
readonly __wbg_set_remoteattachmentinfo_salt: (a: number, b: any) => void;
|
|
621
|
+
readonly __wbg_get_remoteattachmentinfo_contentLength: (a: number) => number;
|
|
622
|
+
readonly __wbg_set_remoteattachmentinfo_contentLength: (a: number, b: number) => void;
|
|
623
|
+
readonly __wbg_get_remoteattachmentinfo_filename: (a: number) => [number, number];
|
|
624
|
+
readonly __wbg_set_remoteattachmentinfo_filename: (a: number, b: number, c: number) => void;
|
|
625
|
+
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;
|
|
626
|
+
readonly __wbg_multiremoteattachment_free: (a: number, b: number) => void;
|
|
627
|
+
readonly __wbg_get_multiremoteattachment_attachments: (a: number) => [number, number];
|
|
628
|
+
readonly __wbg_set_multiremoteattachment_attachments: (a: number, b: number, c: number) => void;
|
|
629
|
+
readonly multiremoteattachment_new: (a: number, b: number) => number;
|
|
630
|
+
readonly encodeMultiRemoteAttachment: (a: number) => [number, number, number];
|
|
631
|
+
readonly decodeMultiRemoteAttachment: (a: any) => [number, number, number];
|
|
632
|
+
readonly __wbg_reaction_free: (a: number, b: number) => void;
|
|
633
|
+
readonly __wbg_get_reaction_action: (a: number) => number;
|
|
634
|
+
readonly __wbg_set_reaction_action: (a: number, b: number) => void;
|
|
635
|
+
readonly __wbg_get_reaction_content: (a: number) => [number, number];
|
|
636
|
+
readonly __wbg_set_reaction_content: (a: number, b: number, c: number) => void;
|
|
637
|
+
readonly __wbg_get_reaction_schema: (a: number) => number;
|
|
638
|
+
readonly __wbg_set_reaction_schema: (a: number, b: number) => void;
|
|
639
|
+
readonly reaction_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
640
|
+
readonly encodeReaction: (a: number) => [number, number, number];
|
|
641
|
+
readonly decodeReaction: (a: any) => [number, number, number];
|
|
618
642
|
readonly __wbg_listconversationsoptions_free: (a: number, b: number) => void;
|
|
619
643
|
readonly __wbg_get_listconversationsoptions_consentStates: (a: number) => [number, number];
|
|
620
644
|
readonly __wbg_set_listconversationsoptions_consentStates: (a: number, b: number, c: number) => void;
|
|
@@ -655,7 +679,6 @@ export interface InitOutput {
|
|
|
655
679
|
readonly __wbg_get_createdmoptions_messageDisappearingSettings: (a: number) => number;
|
|
656
680
|
readonly __wbg_set_createdmoptions_messageDisappearingSettings: (a: number, b: number) => void;
|
|
657
681
|
readonly createdmoptions_new: (a: number) => number;
|
|
658
|
-
readonly __wbg_hmackey_free: (a: number, b: number) => void;
|
|
659
682
|
readonly __wbg_get_hmackey_key: (a: number) => [number, number];
|
|
660
683
|
readonly __wbg_conversationlistitem_free: (a: number, b: number) => void;
|
|
661
684
|
readonly __wbg_get_conversationlistitem_conversation: (a: number) => number;
|
|
@@ -676,11 +699,14 @@ export interface InitOutput {
|
|
|
676
699
|
readonly conversations_syncAllConversations: (a: number, b: number, c: number) => any;
|
|
677
700
|
readonly conversations_list: (a: number, b: number) => [number, number, number];
|
|
678
701
|
readonly conversations_getHmacKeys: (a: number) => [number, number, number];
|
|
702
|
+
readonly conversations_streamLocal: (a: number, b: number) => any;
|
|
679
703
|
readonly conversations_stream: (a: number, b: any, c: number) => [number, number, number];
|
|
680
704
|
readonly conversations_streamAllMessages: (a: number, b: any, c: number, d: number, e: number) => [number, number, number];
|
|
681
705
|
readonly conversations_streamConsent: (a: number, b: any) => [number, number, number];
|
|
682
706
|
readonly conversations_streamPreferences: (a: number, b: any) => [number, number, number];
|
|
683
707
|
readonly __wbg_contenttypeid_free: (a: number, b: number) => void;
|
|
708
|
+
readonly __wbg_get_contenttypeid_authorityId: (a: number) => [number, number];
|
|
709
|
+
readonly __wbg_set_contenttypeid_authorityId: (a: number, b: number, c: number) => void;
|
|
684
710
|
readonly __wbg_get_contenttypeid_typeId: (a: number) => [number, number];
|
|
685
711
|
readonly __wbg_set_contenttypeid_typeId: (a: number, b: number, c: number) => void;
|
|
686
712
|
readonly __wbg_get_contenttypeid_versionMajor: (a: number) => number;
|
|
@@ -729,73 +755,69 @@ export interface InitOutput {
|
|
|
729
755
|
readonly __wbg_set_messagewithreactions_message: (a: number, b: number) => void;
|
|
730
756
|
readonly __wbg_get_messagewithreactions_reactions: (a: number) => [number, number];
|
|
731
757
|
readonly __wbg_set_messagewithreactions_reactions: (a: number, b: number, c: number) => void;
|
|
732
|
-
readonly
|
|
733
|
-
readonly
|
|
734
|
-
readonly
|
|
735
|
-
readonly
|
|
736
|
-
readonly
|
|
737
|
-
readonly
|
|
738
|
-
readonly
|
|
739
|
-
readonly
|
|
740
|
-
readonly
|
|
741
|
-
readonly
|
|
742
|
-
readonly
|
|
743
|
-
readonly
|
|
744
|
-
readonly
|
|
758
|
+
readonly verifySignedWithPublicKey: (a: number, b: number, c: any, d: any) => [number, number];
|
|
759
|
+
readonly __wbg_passkeysignature_free: (a: number, b: number) => void;
|
|
760
|
+
readonly client_createInboxSignatureText: (a: number) => [number, number, number, number];
|
|
761
|
+
readonly client_addWalletSignatureText: (a: number, b: any) => any;
|
|
762
|
+
readonly client_revokeWalletSignatureText: (a: number, b: any) => any;
|
|
763
|
+
readonly client_revokeAllOtherInstallationsSignatureText: (a: number) => any;
|
|
764
|
+
readonly client_revokeInstallationsSignatureText: (a: number, b: number, c: number) => any;
|
|
765
|
+
readonly client_changeRecoveryIdentifierSignatureText: (a: number, b: any) => any;
|
|
766
|
+
readonly client_addEcdsaSignature: (a: number, b: number, c: any) => any;
|
|
767
|
+
readonly client_addPasskeySignature: (a: number, b: number, c: number) => any;
|
|
768
|
+
readonly client_addScwSignature: (a: number, b: number, c: any, d: bigint, e: number, f: bigint) => any;
|
|
769
|
+
readonly client_applySignatureRequests: (a: number) => any;
|
|
770
|
+
readonly client_signWithInstallationKey: (a: number, b: number, c: number) => [number, number, number];
|
|
771
|
+
readonly client_verifySignedWithInstallationKey: (a: number, b: number, c: number, d: any) => [number, number];
|
|
772
|
+
readonly __wbg_get_listmessagesoptions_sentBeforeNs: (a: number) => [number, bigint];
|
|
773
|
+
readonly __wbg_get_listmessagesoptions_sentAfterNs: (a: number) => [number, bigint];
|
|
774
|
+
readonly __wbg_get_listmessagesoptions_limit: (a: number) => [number, bigint];
|
|
775
|
+
readonly __wbg_get_reaction_referenceInboxId: (a: number) => [number, number];
|
|
776
|
+
readonly __wbg_get_reaction_reference: (a: number) => [number, number];
|
|
777
|
+
readonly __wbg_get_conversationdebuginfo_forkDetails: (a: number) => [number, number];
|
|
745
778
|
readonly __wbg_set_hmackey_key: (a: number, b: number, c: number) => void;
|
|
746
|
-
readonly
|
|
779
|
+
readonly __wbg_set_reaction_reference: (a: number, b: number, c: number) => void;
|
|
780
|
+
readonly __wbg_set_reaction_referenceInboxId: (a: number, b: number, c: number) => void;
|
|
747
781
|
readonly __wbg_set_messagedisappearingsettings_fromNs: (a: number, b: bigint) => void;
|
|
748
782
|
readonly __wbg_set_hmackey_epoch: (a: number, b: bigint) => void;
|
|
749
783
|
readonly __wbg_set_message_sentAtNs: (a: number, b: bigint) => void;
|
|
750
|
-
readonly __wbg_get_contenttypeid_authorityId: (a: number) => [number, number];
|
|
751
|
-
readonly __wbg_get_conversationdebuginfo_forkDetails: (a: number) => [number, number];
|
|
752
|
-
readonly __wbg_get_listmessagesoptions_sentBeforeNs: (a: number) => [number, bigint];
|
|
753
|
-
readonly __wbg_get_listmessagesoptions_sentAfterNs: (a: number) => [number, bigint];
|
|
754
|
-
readonly __wbg_get_listmessagesoptions_limit: (a: number) => [number, bigint];
|
|
755
784
|
readonly __wbg_get_messagedisappearingsettings_fromNs: (a: number) => bigint;
|
|
756
785
|
readonly __wbg_get_hmackey_epoch: (a: number) => bigint;
|
|
757
786
|
readonly __wbg_get_message_sentAtNs: (a: number) => bigint;
|
|
787
|
+
readonly __wbg_set_creategroupoptions_messageDisappearingSettings: (a: number, b: number) => void;
|
|
788
|
+
readonly __wbg_get_remoteattachmentinfo_secret: (a: number) => any;
|
|
789
|
+
readonly __wbg_set_remoteattachmentinfo_secret: (a: number, b: any) => void;
|
|
758
790
|
readonly __wbg_set_listmessagesoptions_sentBeforeNs: (a: number, b: number, c: bigint) => void;
|
|
759
791
|
readonly __wbg_set_listmessagesoptions_sentAfterNs: (a: number, b: number, c: bigint) => void;
|
|
760
792
|
readonly __wbg_set_listmessagesoptions_limit: (a: number, b: number, c: bigint) => void;
|
|
761
793
|
readonly __wbg_get_creategroupoptions_messageDisappearingSettings: (a: number) => number;
|
|
762
|
-
readonly
|
|
763
|
-
readonly
|
|
764
|
-
readonly
|
|
765
|
-
readonly
|
|
766
|
-
readonly
|
|
767
|
-
readonly
|
|
768
|
-
readonly
|
|
769
|
-
readonly
|
|
770
|
-
readonly
|
|
771
|
-
readonly
|
|
772
|
-
readonly
|
|
773
|
-
readonly
|
|
774
|
-
readonly
|
|
775
|
-
readonly
|
|
776
|
-
readonly
|
|
777
|
-
readonly
|
|
778
|
-
readonly
|
|
779
|
-
readonly
|
|
780
|
-
readonly
|
|
781
|
-
readonly
|
|
782
|
-
readonly
|
|
783
|
-
readonly
|
|
784
|
-
readonly
|
|
785
|
-
readonly
|
|
786
|
-
readonly
|
|
787
|
-
readonly
|
|
788
|
-
readonly
|
|
789
|
-
readonly __wbg_set_reaction_referenceInboxId: (a: number, b: number, c: number) => void;
|
|
790
|
-
readonly __wbg_get_reaction_action: (a: number) => number;
|
|
791
|
-
readonly __wbg_set_reaction_action: (a: number, b: number) => void;
|
|
792
|
-
readonly __wbg_get_reaction_content: (a: number) => [number, number];
|
|
793
|
-
readonly __wbg_set_reaction_content: (a: number, b: number, c: number) => void;
|
|
794
|
-
readonly __wbg_get_reaction_schema: (a: number) => number;
|
|
795
|
-
readonly __wbg_set_reaction_schema: (a: number, b: number) => void;
|
|
796
|
-
readonly reaction_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
797
|
-
readonly encodeReaction: (a: number) => [number, number, number];
|
|
798
|
-
readonly decodeReaction: (a: any) => [number, number, number];
|
|
794
|
+
readonly __wbg_hmackey_free: (a: number, b: number) => void;
|
|
795
|
+
readonly __wbg_client_free: (a: number, b: number) => void;
|
|
796
|
+
readonly __wbg_logoptions_free: (a: number, b: number) => void;
|
|
797
|
+
readonly __wbg_get_logoptions_structured: (a: number) => number;
|
|
798
|
+
readonly __wbg_set_logoptions_structured: (a: number, b: number) => void;
|
|
799
|
+
readonly __wbg_get_logoptions_performance: (a: number) => number;
|
|
800
|
+
readonly __wbg_set_logoptions_performance: (a: number, b: number) => void;
|
|
801
|
+
readonly __wbg_get_logoptions_level: (a: number) => number;
|
|
802
|
+
readonly __wbg_set_logoptions_level: (a: number, b: number) => void;
|
|
803
|
+
readonly logoptions_new: (a: number, b: number, c: number) => number;
|
|
804
|
+
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) => any;
|
|
805
|
+
readonly client_accountIdentifier: (a: number) => any;
|
|
806
|
+
readonly client_inboxId: (a: number) => [number, number];
|
|
807
|
+
readonly client_isRegistered: (a: number) => number;
|
|
808
|
+
readonly client_installationId: (a: number) => [number, number];
|
|
809
|
+
readonly client_installationIdBytes: (a: number) => any;
|
|
810
|
+
readonly client_canMessage: (a: number, b: number, c: number) => any;
|
|
811
|
+
readonly client_registerIdentity: (a: number) => any;
|
|
812
|
+
readonly client_sendSyncRequest: (a: number) => any;
|
|
813
|
+
readonly client_findInboxIdByIdentifier: (a: number, b: any) => any;
|
|
814
|
+
readonly client_inboxStateFromInboxIds: (a: number, b: number, c: number, d: number) => any;
|
|
815
|
+
readonly client_conversations: (a: number) => number;
|
|
816
|
+
readonly client_syncPreferences: (a: number) => any;
|
|
817
|
+
readonly client_apiStatistics: (a: number) => number;
|
|
818
|
+
readonly client_apiIdentityStatistics: (a: number) => number;
|
|
819
|
+
readonly client_apiAggregateStatistics: (a: number) => [number, number];
|
|
820
|
+
readonly client_uploadDebugArchive: (a: number, b: number, c: number) => any;
|
|
799
821
|
readonly __wbg_groupmetadata_free: (a: number, b: number) => void;
|
|
800
822
|
readonly groupmetadata_creatorInboxId: (a: number) => [number, number];
|
|
801
823
|
readonly groupmetadata_conversationType: (a: number) => [number, number];
|
|
@@ -854,22 +876,6 @@ export interface InitOutput {
|
|
|
854
876
|
readonly conversation_getHmacKeys: (a: number) => [number, number, number];
|
|
855
877
|
readonly conversation_getDebugInfo: (a: number) => any;
|
|
856
878
|
readonly conversation_findDuplicateDms: (a: number) => any;
|
|
857
|
-
readonly verifySignedWithPublicKey: (a: number, b: number, c: any, d: any) => [number, number];
|
|
858
|
-
readonly __wbg_passkeysignature_free: (a: number, b: number) => void;
|
|
859
|
-
readonly client_createInboxSignatureText: (a: number) => [number, number, number, number];
|
|
860
|
-
readonly client_addWalletSignatureText: (a: number, b: any) => any;
|
|
861
|
-
readonly client_revokeWalletSignatureText: (a: number, b: any) => any;
|
|
862
|
-
readonly client_revokeAllOtherInstallationsSignatureText: (a: number) => any;
|
|
863
|
-
readonly client_revokeInstallationsSignatureText: (a: number, b: number, c: number) => any;
|
|
864
|
-
readonly client_changeRecoveryIdentifierSignatureText: (a: number, b: any) => any;
|
|
865
|
-
readonly client_addEcdsaSignature: (a: number, b: number, c: any) => any;
|
|
866
|
-
readonly client_addPasskeySignature: (a: number, b: number, c: number) => any;
|
|
867
|
-
readonly client_addScwSignature: (a: number, b: number, c: any, d: bigint, e: number, f: bigint) => any;
|
|
868
|
-
readonly client_applySignatureRequests: (a: number) => any;
|
|
869
|
-
readonly client_signWithInstallationKey: (a: number, b: number, c: number) => [number, number, number];
|
|
870
|
-
readonly client_verifySignedWithInstallationKey: (a: number, b: number, c: number, d: any) => [number, number];
|
|
871
|
-
readonly __wbg_set_reaction_reference: (a: number, b: number, c: number) => void;
|
|
872
|
-
readonly __wbg_get_reaction_reference: (a: number) => [number, number];
|
|
873
879
|
readonly __wbg_apistats_free: (a: number, b: number) => void;
|
|
874
880
|
readonly __wbg_get_apistats_upload_key_package: (a: number) => bigint;
|
|
875
881
|
readonly __wbg_set_apistats_upload_key_package: (a: number, b: bigint) => void;
|
|
@@ -888,45 +894,6 @@ export interface InitOutput {
|
|
|
888
894
|
readonly __wbg_get_apistats_subscribe_welcomes: (a: number) => bigint;
|
|
889
895
|
readonly __wbg_set_apistats_subscribe_welcomes: (a: number, b: bigint) => void;
|
|
890
896
|
readonly __wbg_identitystats_free: (a: number, b: number) => void;
|
|
891
|
-
readonly __wbg_set_identitystats_publish_identity_update: (a: number, b: bigint) => void;
|
|
892
|
-
readonly __wbg_set_identitystats_get_identity_updates_v2: (a: number, b: bigint) => void;
|
|
893
|
-
readonly __wbg_set_identitystats_get_inbox_ids: (a: number, b: bigint) => void;
|
|
894
|
-
readonly __wbg_set_identitystats_verify_smart_contract_wallet_signature: (a: number, b: bigint) => void;
|
|
895
|
-
readonly __wbg_get_identitystats_publish_identity_update: (a: number) => bigint;
|
|
896
|
-
readonly __wbg_get_identitystats_get_identity_updates_v2: (a: number) => bigint;
|
|
897
|
-
readonly __wbg_get_identitystats_get_inbox_ids: (a: number) => bigint;
|
|
898
|
-
readonly __wbg_get_identitystats_verify_smart_contract_wallet_signature: (a: number) => bigint;
|
|
899
|
-
readonly __wbg_streamcloser_free: (a: number, b: number) => void;
|
|
900
|
-
readonly streamcloser_end: (a: number) => void;
|
|
901
|
-
readonly streamcloser_endAndWait: (a: number) => any;
|
|
902
|
-
readonly streamcloser_waitForReady: (a: number) => any;
|
|
903
|
-
readonly streamcloser_isClosed: (a: number) => number;
|
|
904
|
-
readonly __wbg_client_free: (a: number, b: number) => void;
|
|
905
|
-
readonly __wbg_logoptions_free: (a: number, b: number) => void;
|
|
906
|
-
readonly __wbg_get_logoptions_structured: (a: number) => number;
|
|
907
|
-
readonly __wbg_set_logoptions_structured: (a: number, b: number) => void;
|
|
908
|
-
readonly __wbg_get_logoptions_performance: (a: number) => number;
|
|
909
|
-
readonly __wbg_set_logoptions_performance: (a: number, b: number) => void;
|
|
910
|
-
readonly __wbg_get_logoptions_level: (a: number) => number;
|
|
911
|
-
readonly __wbg_set_logoptions_level: (a: number, b: number) => void;
|
|
912
|
-
readonly logoptions_new: (a: number, b: number, c: number) => number;
|
|
913
|
-
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) => any;
|
|
914
|
-
readonly client_accountIdentifier: (a: number) => any;
|
|
915
|
-
readonly client_inboxId: (a: number) => [number, number];
|
|
916
|
-
readonly client_isRegistered: (a: number) => number;
|
|
917
|
-
readonly client_installationId: (a: number) => [number, number];
|
|
918
|
-
readonly client_installationIdBytes: (a: number) => any;
|
|
919
|
-
readonly client_canMessage: (a: number, b: number, c: number) => any;
|
|
920
|
-
readonly client_registerIdentity: (a: number) => any;
|
|
921
|
-
readonly client_sendSyncRequest: (a: number) => any;
|
|
922
|
-
readonly client_findInboxIdByIdentifier: (a: number, b: any) => any;
|
|
923
|
-
readonly client_inboxStateFromInboxIds: (a: number, b: number, c: number, d: number) => any;
|
|
924
|
-
readonly client_conversations: (a: number) => number;
|
|
925
|
-
readonly client_syncPreferences: (a: number) => any;
|
|
926
|
-
readonly client_apiStatistics: (a: number) => number;
|
|
927
|
-
readonly client_apiIdentityStatistics: (a: number) => number;
|
|
928
|
-
readonly client_apiAggregateStatistics: (a: number) => [number, number];
|
|
929
|
-
readonly client_uploadDebugArchive: (a: number, b: number, c: number) => any;
|
|
930
897
|
readonly getInboxIdForIdentifier: (a: number, b: number, c: any) => any;
|
|
931
898
|
readonly generateInboxId: (a: any) => [number, number, number, number];
|
|
932
899
|
readonly __wbg_installation_free: (a: number, b: number) => void;
|
|
@@ -938,8 +905,6 @@ export interface InitOutput {
|
|
|
938
905
|
readonly __wbg_set_installation_clientTimestampNs: (a: number, b: number, c: bigint) => void;
|
|
939
906
|
readonly installation_new: (a: any, b: number, c: number, d: number, e: bigint) => number;
|
|
940
907
|
readonly __wbg_inboxstate_free: (a: number, b: number) => void;
|
|
941
|
-
readonly __wbg_get_inboxstate_inboxId: (a: number) => [number, number];
|
|
942
|
-
readonly __wbg_set_inboxstate_inboxId: (a: number, b: number, c: number) => void;
|
|
943
908
|
readonly __wbg_get_inboxstate_recoveryIdentifier: (a: number) => any;
|
|
944
909
|
readonly __wbg_set_inboxstate_recoveryIdentifier: (a: number, b: any) => void;
|
|
945
910
|
readonly __wbg_get_inboxstate_installations: (a: number) => [number, number];
|
|
@@ -953,13 +918,53 @@ export interface InitOutput {
|
|
|
953
918
|
readonly __wbg_get_keypackagestatus_validationError: (a: number) => [number, number];
|
|
954
919
|
readonly __wbg_set_keypackagestatus_validationError: (a: number, b: number, c: number) => void;
|
|
955
920
|
readonly __wbg_lifetime_free: (a: number, b: number) => void;
|
|
956
|
-
readonly __wbg_get_lifetime_not_before: (a: number) => bigint;
|
|
957
|
-
readonly __wbg_set_lifetime_not_before: (a: number, b: bigint) => void;
|
|
958
|
-
readonly __wbg_get_lifetime_not_after: (a: number) => bigint;
|
|
959
|
-
readonly __wbg_set_lifetime_not_after: (a: number, b: bigint) => void;
|
|
960
921
|
readonly client_inboxState: (a: number, b: number) => any;
|
|
961
922
|
readonly client_getLatestInboxState: (a: number, b: number, c: number) => any;
|
|
962
923
|
readonly client_getKeyPackageStatusesForInstallationIds: (a: number, b: number, c: number) => any;
|
|
924
|
+
readonly __wbg_streamcloser_free: (a: number, b: number) => void;
|
|
925
|
+
readonly streamcloser_end: (a: number) => void;
|
|
926
|
+
readonly streamcloser_endAndWait: (a: number) => any;
|
|
927
|
+
readonly streamcloser_waitForReady: (a: number) => any;
|
|
928
|
+
readonly streamcloser_isClosed: (a: number) => number;
|
|
929
|
+
readonly __wbg_set_inboxstate_inboxId: (a: number, b: number, c: number) => void;
|
|
930
|
+
readonly __wbg_set_identitystats_publish_identity_update: (a: number, b: bigint) => void;
|
|
931
|
+
readonly __wbg_set_identitystats_get_identity_updates_v2: (a: number, b: bigint) => void;
|
|
932
|
+
readonly __wbg_set_identitystats_get_inbox_ids: (a: number, b: bigint) => void;
|
|
933
|
+
readonly __wbg_set_identitystats_verify_smart_contract_wallet_signature: (a: number, b: bigint) => void;
|
|
934
|
+
readonly __wbg_set_lifetime_not_before: (a: number, b: bigint) => void;
|
|
935
|
+
readonly __wbg_set_lifetime_not_after: (a: number, b: bigint) => void;
|
|
936
|
+
readonly __wbg_get_inboxstate_inboxId: (a: number) => [number, number];
|
|
937
|
+
readonly __wbg_get_identitystats_publish_identity_update: (a: number) => bigint;
|
|
938
|
+
readonly __wbg_get_identitystats_get_identity_updates_v2: (a: number) => bigint;
|
|
939
|
+
readonly __wbg_get_identitystats_get_inbox_ids: (a: number) => bigint;
|
|
940
|
+
readonly __wbg_get_identitystats_verify_smart_contract_wallet_signature: (a: number) => bigint;
|
|
941
|
+
readonly __wbg_get_lifetime_not_before: (a: number) => bigint;
|
|
942
|
+
readonly __wbg_get_lifetime_not_after: (a: number) => bigint;
|
|
943
|
+
readonly __wbg_consent_free: (a: number, b: number) => void;
|
|
944
|
+
readonly __wbg_get_consent_entityType: (a: number) => number;
|
|
945
|
+
readonly __wbg_set_consent_entityType: (a: number, b: number) => void;
|
|
946
|
+
readonly __wbg_get_consent_state: (a: number) => number;
|
|
947
|
+
readonly __wbg_set_consent_state: (a: number, b: number) => void;
|
|
948
|
+
readonly __wbg_get_consent_entity: (a: number) => [number, number];
|
|
949
|
+
readonly __wbg_set_consent_entity: (a: number, b: number, c: number) => void;
|
|
950
|
+
readonly consent_new: (a: number, b: number, c: number, d: number) => number;
|
|
951
|
+
readonly client_setConsentStates: (a: number, b: number, c: number) => any;
|
|
952
|
+
readonly client_getConsentState: (a: number, b: number, c: number, d: number) => any;
|
|
953
|
+
readonly conversation_consentState: (a: number) => [number, number, number];
|
|
954
|
+
readonly conversation_updateConsentState: (a: number, b: number) => [number, number];
|
|
955
|
+
readonly __wbg_opfs_free: (a: number, b: number) => void;
|
|
956
|
+
readonly opfs_init_sqlite_opfs: () => any;
|
|
957
|
+
readonly opfs_exists: () => number;
|
|
958
|
+
readonly opfs_error: () => [number, number];
|
|
959
|
+
readonly opfs_wipeFiles: () => any;
|
|
960
|
+
readonly opfs_rm: (a: number, b: number) => [number, number, number];
|
|
961
|
+
readonly opfs_getFileNames: () => [number, number];
|
|
962
|
+
readonly opfs_importDb: (a: number, b: number, c: number, d: number) => [number, number];
|
|
963
|
+
readonly opfs_exportFile: (a: number, b: number) => [number, number, number, number];
|
|
964
|
+
readonly opfs_getFileCount: () => number;
|
|
965
|
+
readonly opfs_getCapacity: () => number;
|
|
966
|
+
readonly opfs_addCapacity: (a: number) => any;
|
|
967
|
+
readonly opfs_reduceCapacity: (a: number) => any;
|
|
963
968
|
readonly __wbg_permissionpolicyset_free: (a: number, b: number) => void;
|
|
964
969
|
readonly __wbg_get_permissionpolicyset_addMemberPolicy: (a: number) => number;
|
|
965
970
|
readonly __wbg_set_permissionpolicyset_addMemberPolicy: (a: number, b: number) => void;
|
|
@@ -1022,11 +1027,11 @@ export interface InitOutput {
|
|
|
1022
1027
|
readonly __externref_drop_slice: (a: number, b: number) => void;
|
|
1023
1028
|
readonly __wbindgen_export_7: WebAssembly.Table;
|
|
1024
1029
|
readonly __externref_table_dealloc: (a: number) => void;
|
|
1025
|
-
readonly
|
|
1026
|
-
readonly
|
|
1027
|
-
readonly
|
|
1028
|
-
readonly
|
|
1029
|
-
readonly
|
|
1030
|
+
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hc094ec3bdf8c16b7: (a: number, b: number) => void;
|
|
1031
|
+
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h0eb99f8c2f057fcc: (a: number, b: number) => void;
|
|
1032
|
+
readonly closure4487_externref_shim: (a: number, b: number, c: any) => void;
|
|
1033
|
+
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h232599d7dcf89d52: (a: number, b: number) => void;
|
|
1034
|
+
readonly closure5463_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
1030
1035
|
readonly __wbindgen_start: () => void;
|
|
1031
1036
|
}
|
|
1032
1037
|
|
package/dist/bindings_wasm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { JSArrayBufferCopy } from './snippets/wasm-array-cp-201e2a98f0e691f7/copy.min.js';
|
|
2
2
|
|
|
3
3
|
let wasm;
|
|
4
4
|
|
|
@@ -226,23 +226,16 @@ function passArrayJsValueToWasm0(array, malloc) {
|
|
|
226
226
|
return ptr;
|
|
227
227
|
}
|
|
228
228
|
|
|
229
|
-
function takeFromExternrefTable0(idx) {
|
|
230
|
-
const value = wasm.__wbindgen_export_4.get(idx);
|
|
231
|
-
wasm.__externref_table_dealloc(idx);
|
|
232
|
-
return value;
|
|
233
|
-
}
|
|
234
|
-
|
|
235
229
|
function _assertClass(instance, klass) {
|
|
236
230
|
if (!(instance instanceof klass)) {
|
|
237
231
|
throw new Error(`expected instance of ${klass.name}`);
|
|
238
232
|
}
|
|
239
233
|
}
|
|
240
234
|
|
|
241
|
-
function
|
|
242
|
-
const
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
return ptr;
|
|
235
|
+
function takeFromExternrefTable0(idx) {
|
|
236
|
+
const value = wasm.__wbindgen_export_4.get(idx);
|
|
237
|
+
wasm.__externref_table_dealloc(idx);
|
|
238
|
+
return value;
|
|
246
239
|
}
|
|
247
240
|
/**
|
|
248
241
|
* @param {MultiRemoteAttachment} multiRemoteAttachment
|
|
@@ -296,6 +289,12 @@ export function decodeReaction(bytes) {
|
|
|
296
289
|
return Reaction.__wrap(ret[0]);
|
|
297
290
|
}
|
|
298
291
|
|
|
292
|
+
function passArray8ToWasm0(arg, malloc) {
|
|
293
|
+
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
294
|
+
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
295
|
+
WASM_VECTOR_LEN = arg.length;
|
|
296
|
+
return ptr;
|
|
297
|
+
}
|
|
299
298
|
/**
|
|
300
299
|
* @param {string} signature_text
|
|
301
300
|
* @param {Uint8Array} signature_bytes
|
|
@@ -375,23 +374,23 @@ export function generateInboxId(accountIdentifier) {
|
|
|
375
374
|
}
|
|
376
375
|
|
|
377
376
|
function __wbg_adapter_50(arg0, arg1) {
|
|
378
|
-
wasm.
|
|
377
|
+
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hc094ec3bdf8c16b7(arg0, arg1);
|
|
379
378
|
}
|
|
380
379
|
|
|
381
380
|
function __wbg_adapter_53(arg0, arg1) {
|
|
382
|
-
wasm.
|
|
381
|
+
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h0eb99f8c2f057fcc(arg0, arg1);
|
|
383
382
|
}
|
|
384
383
|
|
|
385
384
|
function __wbg_adapter_56(arg0, arg1, arg2) {
|
|
386
|
-
wasm.
|
|
385
|
+
wasm.closure4487_externref_shim(arg0, arg1, arg2);
|
|
387
386
|
}
|
|
388
387
|
|
|
389
388
|
function __wbg_adapter_59(arg0, arg1) {
|
|
390
|
-
wasm.
|
|
389
|
+
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h232599d7dcf89d52(arg0, arg1);
|
|
391
390
|
}
|
|
392
391
|
|
|
393
|
-
function
|
|
394
|
-
wasm.
|
|
392
|
+
function __wbg_adapter_774(arg0, arg1, arg2, arg3) {
|
|
393
|
+
wasm.closure5463_externref_shim(arg0, arg1, arg2, arg3);
|
|
395
394
|
}
|
|
396
395
|
|
|
397
396
|
/**
|
|
@@ -704,27 +703,6 @@ export class Client {
|
|
|
704
703
|
const ptr = this.__destroy_into_raw();
|
|
705
704
|
wasm.__wbg_client_free(ptr, 0);
|
|
706
705
|
}
|
|
707
|
-
/**
|
|
708
|
-
* @param {Consent[]} records
|
|
709
|
-
* @returns {Promise<void>}
|
|
710
|
-
*/
|
|
711
|
-
setConsentStates(records) {
|
|
712
|
-
const ptr0 = passArrayJsValueToWasm0(records, wasm.__wbindgen_malloc);
|
|
713
|
-
const len0 = WASM_VECTOR_LEN;
|
|
714
|
-
const ret = wasm.client_setConsentStates(this.__wbg_ptr, ptr0, len0);
|
|
715
|
-
return ret;
|
|
716
|
-
}
|
|
717
|
-
/**
|
|
718
|
-
* @param {ConsentEntityType} entity_type
|
|
719
|
-
* @param {string} entity
|
|
720
|
-
* @returns {Promise<ConsentState>}
|
|
721
|
-
*/
|
|
722
|
-
getConsentState(entity_type, entity) {
|
|
723
|
-
const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
724
|
-
const len0 = WASM_VECTOR_LEN;
|
|
725
|
-
const ret = wasm.client_getConsentState(this.__wbg_ptr, entity_type, ptr0, len0);
|
|
726
|
-
return ret;
|
|
727
|
-
}
|
|
728
706
|
/**
|
|
729
707
|
* @returns {string | undefined}
|
|
730
708
|
*/
|
|
@@ -1031,6 +1009,27 @@ export class Client {
|
|
|
1031
1009
|
const ret = wasm.client_getKeyPackageStatusesForInstallationIds(this.__wbg_ptr, ptr0, len0);
|
|
1032
1010
|
return ret;
|
|
1033
1011
|
}
|
|
1012
|
+
/**
|
|
1013
|
+
* @param {Consent[]} records
|
|
1014
|
+
* @returns {Promise<void>}
|
|
1015
|
+
*/
|
|
1016
|
+
setConsentStates(records) {
|
|
1017
|
+
const ptr0 = passArrayJsValueToWasm0(records, wasm.__wbindgen_malloc);
|
|
1018
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1019
|
+
const ret = wasm.client_setConsentStates(this.__wbg_ptr, ptr0, len0);
|
|
1020
|
+
return ret;
|
|
1021
|
+
}
|
|
1022
|
+
/**
|
|
1023
|
+
* @param {ConsentEntityType} entity_type
|
|
1024
|
+
* @param {string} entity
|
|
1025
|
+
* @returns {Promise<ConsentState>}
|
|
1026
|
+
*/
|
|
1027
|
+
getConsentState(entity_type, entity) {
|
|
1028
|
+
const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1029
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1030
|
+
const ret = wasm.client_getConsentState(this.__wbg_ptr, entity_type, ptr0, len0);
|
|
1031
|
+
return ret;
|
|
1032
|
+
}
|
|
1034
1033
|
}
|
|
1035
1034
|
|
|
1036
1035
|
const ConsentFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
@@ -1167,7 +1166,7 @@ export class ContentTypeId {
|
|
|
1167
1166
|
set authorityId(arg0) {
|
|
1168
1167
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1169
1168
|
const len0 = WASM_VECTOR_LEN;
|
|
1170
|
-
wasm.
|
|
1169
|
+
wasm.__wbg_set_contenttypeid_authorityId(this.__wbg_ptr, ptr0, len0);
|
|
1171
1170
|
}
|
|
1172
1171
|
/**
|
|
1173
1172
|
* @returns {string}
|
|
@@ -1261,25 +1260,6 @@ export class Conversation {
|
|
|
1261
1260
|
const ptr = this.__destroy_into_raw();
|
|
1262
1261
|
wasm.__wbg_conversation_free(ptr, 0);
|
|
1263
1262
|
}
|
|
1264
|
-
/**
|
|
1265
|
-
* @returns {ConsentState}
|
|
1266
|
-
*/
|
|
1267
|
-
consentState() {
|
|
1268
|
-
const ret = wasm.conversation_consentState(this.__wbg_ptr);
|
|
1269
|
-
if (ret[2]) {
|
|
1270
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
1271
|
-
}
|
|
1272
|
-
return ret[0];
|
|
1273
|
-
}
|
|
1274
|
-
/**
|
|
1275
|
-
* @param {ConsentState} state
|
|
1276
|
-
*/
|
|
1277
|
-
updateConsentState(state) {
|
|
1278
|
-
const ret = wasm.conversation_updateConsentState(this.__wbg_ptr, state);
|
|
1279
|
-
if (ret[1]) {
|
|
1280
|
-
throw takeFromExternrefTable0(ret[0]);
|
|
1281
|
-
}
|
|
1282
|
-
}
|
|
1283
1263
|
/**
|
|
1284
1264
|
* @returns {string}
|
|
1285
1265
|
*/
|
|
@@ -1774,6 +1754,25 @@ export class Conversation {
|
|
|
1774
1754
|
const ret = wasm.conversation_findDuplicateDms(this.__wbg_ptr);
|
|
1775
1755
|
return ret;
|
|
1776
1756
|
}
|
|
1757
|
+
/**
|
|
1758
|
+
* @returns {ConsentState}
|
|
1759
|
+
*/
|
|
1760
|
+
consentState() {
|
|
1761
|
+
const ret = wasm.conversation_consentState(this.__wbg_ptr);
|
|
1762
|
+
if (ret[2]) {
|
|
1763
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
1764
|
+
}
|
|
1765
|
+
return ret[0];
|
|
1766
|
+
}
|
|
1767
|
+
/**
|
|
1768
|
+
* @param {ConsentState} state
|
|
1769
|
+
*/
|
|
1770
|
+
updateConsentState(state) {
|
|
1771
|
+
const ret = wasm.conversation_updateConsentState(this.__wbg_ptr, state);
|
|
1772
|
+
if (ret[1]) {
|
|
1773
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
1774
|
+
}
|
|
1775
|
+
}
|
|
1777
1776
|
}
|
|
1778
1777
|
|
|
1779
1778
|
const ConversationDebugInfoFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
@@ -2106,6 +2105,15 @@ export class Conversations {
|
|
|
2106
2105
|
}
|
|
2107
2106
|
return takeFromExternrefTable0(ret[0]);
|
|
2108
2107
|
}
|
|
2108
|
+
/**
|
|
2109
|
+
* Returns a 'ReadableStream' of Conversations
|
|
2110
|
+
* @param {ConversationType | null} [conversation_type]
|
|
2111
|
+
* @returns {Promise<ReadableStream>}
|
|
2112
|
+
*/
|
|
2113
|
+
streamLocal(conversation_type) {
|
|
2114
|
+
const ret = wasm.conversations_streamLocal(this.__wbg_ptr, isLikeNone(conversation_type) ? 3 : conversation_type);
|
|
2115
|
+
return ret;
|
|
2116
|
+
}
|
|
2109
2117
|
/**
|
|
2110
2118
|
* @param {any} callback
|
|
2111
2119
|
* @param {ConversationType | null} [conversation_type]
|
|
@@ -2889,7 +2897,7 @@ export class InboxState {
|
|
|
2889
2897
|
set inboxId(arg0) {
|
|
2890
2898
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2891
2899
|
const len0 = WASM_VECTOR_LEN;
|
|
2892
|
-
wasm.
|
|
2900
|
+
wasm.__wbg_set_groupmember_inboxId(this.__wbg_ptr, ptr0, len0);
|
|
2893
2901
|
}
|
|
2894
2902
|
/**
|
|
2895
2903
|
* @returns {Identifier}
|
|
@@ -3155,6 +3163,14 @@ const IntoUnderlyingSourceFinalization = (typeof FinalizationRegistry === 'undef
|
|
|
3155
3163
|
|
|
3156
3164
|
export class IntoUnderlyingSource {
|
|
3157
3165
|
|
|
3166
|
+
static __wrap(ptr) {
|
|
3167
|
+
ptr = ptr >>> 0;
|
|
3168
|
+
const obj = Object.create(IntoUnderlyingSource.prototype);
|
|
3169
|
+
obj.__wbg_ptr = ptr;
|
|
3170
|
+
IntoUnderlyingSourceFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
3171
|
+
return obj;
|
|
3172
|
+
}
|
|
3173
|
+
|
|
3158
3174
|
__destroy_into_raw() {
|
|
3159
3175
|
const ptr = this.__wbg_ptr;
|
|
3160
3176
|
this.__wbg_ptr = 0;
|
|
@@ -3266,27 +3282,27 @@ export class Lifetime {
|
|
|
3266
3282
|
* @returns {bigint}
|
|
3267
3283
|
*/
|
|
3268
3284
|
get not_before() {
|
|
3269
|
-
const ret = wasm.
|
|
3285
|
+
const ret = wasm.__wbg_get_apistats_upload_key_package(this.__wbg_ptr);
|
|
3270
3286
|
return BigInt.asUintN(64, ret);
|
|
3271
3287
|
}
|
|
3272
3288
|
/**
|
|
3273
3289
|
* @param {bigint} arg0
|
|
3274
3290
|
*/
|
|
3275
3291
|
set not_before(arg0) {
|
|
3276
|
-
wasm.
|
|
3292
|
+
wasm.__wbg_set_apistats_upload_key_package(this.__wbg_ptr, arg0);
|
|
3277
3293
|
}
|
|
3278
3294
|
/**
|
|
3279
3295
|
* @returns {bigint}
|
|
3280
3296
|
*/
|
|
3281
3297
|
get not_after() {
|
|
3282
|
-
const ret = wasm.
|
|
3298
|
+
const ret = wasm.__wbg_get_apistats_fetch_key_package(this.__wbg_ptr);
|
|
3283
3299
|
return BigInt.asUintN(64, ret);
|
|
3284
3300
|
}
|
|
3285
3301
|
/**
|
|
3286
3302
|
* @param {bigint} arg0
|
|
3287
3303
|
*/
|
|
3288
3304
|
set not_after(arg0) {
|
|
3289
|
-
wasm.
|
|
3305
|
+
wasm.__wbg_set_apistats_fetch_key_package(this.__wbg_ptr, arg0);
|
|
3290
3306
|
}
|
|
3291
3307
|
}
|
|
3292
3308
|
|
|
@@ -4332,7 +4348,7 @@ export class Reaction {
|
|
|
4332
4348
|
set reference(arg0) {
|
|
4333
4349
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4334
4350
|
const len0 = WASM_VECTOR_LEN;
|
|
4335
|
-
wasm.
|
|
4351
|
+
wasm.__wbg_set_contenttypeid_authorityId(this.__wbg_ptr, ptr0, len0);
|
|
4336
4352
|
}
|
|
4337
4353
|
/**
|
|
4338
4354
|
* @returns {string}
|
|
@@ -4355,7 +4371,7 @@ export class Reaction {
|
|
|
4355
4371
|
set referenceInboxId(arg0) {
|
|
4356
4372
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4357
4373
|
const len0 = WASM_VECTOR_LEN;
|
|
4358
|
-
wasm.
|
|
4374
|
+
wasm.__wbg_set_contenttypeid_typeId(this.__wbg_ptr, ptr0, len0);
|
|
4359
4375
|
}
|
|
4360
4376
|
/**
|
|
4361
4377
|
* @returns {ReactionAction}
|
|
@@ -4787,11 +4803,11 @@ function __wbg_get_imports() {
|
|
|
4787
4803
|
const ret = clearInterval(arg0);
|
|
4788
4804
|
return ret;
|
|
4789
4805
|
};
|
|
4790
|
-
imports.wbg.
|
|
4806
|
+
imports.wbg.__wbg_clearTimeout_121ece162c044c80 = function(arg0) {
|
|
4791
4807
|
const ret = clearTimeout(arg0);
|
|
4792
4808
|
return ret;
|
|
4793
4809
|
};
|
|
4794
|
-
imports.wbg.
|
|
4810
|
+
imports.wbg.__wbg_clearTimeout_5a54f8841c30079a = function(arg0) {
|
|
4795
4811
|
const ret = clearTimeout(arg0);
|
|
4796
4812
|
return ret;
|
|
4797
4813
|
};
|
|
@@ -4892,12 +4908,12 @@ function __wbg_get_imports() {
|
|
|
4892
4908
|
imports.wbg.__wbg_error_80de38b3f7cc3c3c = function(arg0, arg1, arg2, arg3) {
|
|
4893
4909
|
console.error(arg0, arg1, arg2, arg3);
|
|
4894
4910
|
};
|
|
4895
|
-
imports.wbg.
|
|
4896
|
-
const ret =
|
|
4911
|
+
imports.wbg.__wbg_fetch_43e69ddf509149f8 = function(arg0) {
|
|
4912
|
+
const ret = fetch(arg0);
|
|
4897
4913
|
return ret;
|
|
4898
4914
|
};
|
|
4899
|
-
imports.wbg.
|
|
4900
|
-
const ret = fetch(
|
|
4915
|
+
imports.wbg.__wbg_fetch_509096533071c657 = function(arg0, arg1) {
|
|
4916
|
+
const ret = arg0.fetch(arg1);
|
|
4901
4917
|
return ret;
|
|
4902
4918
|
};
|
|
4903
4919
|
imports.wbg.__wbg_fill_3311db9cdf18c6c4 = function(arg0, arg1, arg2, arg3) {
|
|
@@ -4950,7 +4966,7 @@ function __wbg_get_imports() {
|
|
|
4950
4966
|
imports.wbg.__wbg_getRandomValues_3c9c0d586e575a16 = function() { return handleError(function (arg0, arg1) {
|
|
4951
4967
|
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
4952
4968
|
}, arguments) };
|
|
4953
|
-
imports.wbg.
|
|
4969
|
+
imports.wbg.__wbg_getRandomValues_4222c05e65c4cb4d = function() { return handleError(function (arg0, arg1) {
|
|
4954
4970
|
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
4955
4971
|
}, arguments) };
|
|
4956
4972
|
imports.wbg.__wbg_getRandomValues_b8f5dbd5f3995a9e = function() { return handleError(function (arg0, arg1) {
|
|
@@ -5187,7 +5203,7 @@ function __wbg_get_imports() {
|
|
|
5187
5203
|
const a = state0.a;
|
|
5188
5204
|
state0.a = 0;
|
|
5189
5205
|
try {
|
|
5190
|
-
return
|
|
5206
|
+
return __wbg_adapter_774(a, state0.b, arg0, arg1);
|
|
5191
5207
|
} finally {
|
|
5192
5208
|
state0.a = a;
|
|
5193
5209
|
}
|
|
@@ -5250,6 +5266,10 @@ function __wbg_get_imports() {
|
|
|
5250
5266
|
const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
|
|
5251
5267
|
return ret;
|
|
5252
5268
|
};
|
|
5269
|
+
imports.wbg.__wbg_newwithintounderlyingsource_b47f6a6a596a7f24 = function(arg0, arg1) {
|
|
5270
|
+
const ret = new ReadableStream(IntoUnderlyingSource.__wrap(arg0), arg1);
|
|
5271
|
+
return ret;
|
|
5272
|
+
};
|
|
5253
5273
|
imports.wbg.__wbg_newwithlength_a381634e90c276d4 = function(arg0) {
|
|
5254
5274
|
const ret = new Uint8Array(arg0 >>> 0);
|
|
5255
5275
|
return ret;
|
|
@@ -5282,6 +5302,11 @@ function __wbg_get_imports() {
|
|
|
5282
5302
|
const ret = arg0.now();
|
|
5283
5303
|
return ret;
|
|
5284
5304
|
};
|
|
5305
|
+
imports.wbg.__wbg_now_7b5abb0a69e028e7 = function(arg0) {
|
|
5306
|
+
const ret = globalThis.performance.now();
|
|
5307
|
+
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
5308
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
5309
|
+
};
|
|
5285
5310
|
imports.wbg.__wbg_now_807e54c39636c349 = function() {
|
|
5286
5311
|
const ret = Date.now();
|
|
5287
5312
|
return ret;
|
|
@@ -5290,24 +5315,19 @@ function __wbg_get_imports() {
|
|
|
5290
5315
|
const ret = arg0.now();
|
|
5291
5316
|
return ret;
|
|
5292
5317
|
};
|
|
5293
|
-
imports.wbg.
|
|
5294
|
-
const ret = globalThis.performance.now();
|
|
5295
|
-
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
5296
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
5297
|
-
};
|
|
5298
|
-
imports.wbg.__wbg_onconsentupdate_f4aeb6b2142a9f77 = function(arg0, arg1) {
|
|
5318
|
+
imports.wbg.__wbg_onconsentupdate_f1fb42cc2ff15d86 = function(arg0, arg1) {
|
|
5299
5319
|
arg0.on_consent_update(arg1);
|
|
5300
5320
|
};
|
|
5301
|
-
imports.wbg.
|
|
5321
|
+
imports.wbg.__wbg_onconversation_1360ce64782d004d = function(arg0, arg1) {
|
|
5302
5322
|
arg0.on_conversation(Conversation.__wrap(arg1));
|
|
5303
5323
|
};
|
|
5304
|
-
imports.wbg.
|
|
5324
|
+
imports.wbg.__wbg_onerror_3460845a0ed0d5bb = function(arg0, arg1) {
|
|
5305
5325
|
arg0.on_error(arg1);
|
|
5306
5326
|
};
|
|
5307
|
-
imports.wbg.
|
|
5327
|
+
imports.wbg.__wbg_onmessage_41cbe56dc22058f1 = function(arg0, arg1) {
|
|
5308
5328
|
arg0.on_message(Message.__wrap(arg1));
|
|
5309
5329
|
};
|
|
5310
|
-
imports.wbg.
|
|
5330
|
+
imports.wbg.__wbg_onuserpreferenceupdate_ebf9a59554754d98 = function(arg0, arg1, arg2) {
|
|
5311
5331
|
var v0 = getArrayJsValueFromWasm0(arg1, arg2).slice();
|
|
5312
5332
|
wasm.__wbindgen_free(arg1, arg2 * 4, 4);
|
|
5313
5333
|
arg0.on_user_preference_update(v0);
|
|
@@ -5391,14 +5411,14 @@ function __wbg_get_imports() {
|
|
|
5391
5411
|
const ret = setInterval(arg0, arg1);
|
|
5392
5412
|
return ret;
|
|
5393
5413
|
}, arguments) };
|
|
5394
|
-
imports.wbg.__wbg_setTimeout_2e707715f8cc9497 = function(arg0, arg1) {
|
|
5395
|
-
const ret = setTimeout(arg0, arg1);
|
|
5396
|
-
return ret;
|
|
5397
|
-
};
|
|
5398
5414
|
imports.wbg.__wbg_setTimeout_db2dbaeefb6f39c7 = function() { return handleError(function (arg0, arg1) {
|
|
5399
5415
|
const ret = setTimeout(arg0, arg1);
|
|
5400
5416
|
return ret;
|
|
5401
5417
|
}, arguments) };
|
|
5418
|
+
imports.wbg.__wbg_setTimeout_e64b2910d9d7169a = function(arg0, arg1) {
|
|
5419
|
+
const ret = setTimeout(arg0, arg1);
|
|
5420
|
+
return ret;
|
|
5421
|
+
};
|
|
5402
5422
|
imports.wbg.__wbg_setTimeout_eefe7f4c234b0c6b = function() { return handleError(function (arg0, arg1) {
|
|
5403
5423
|
const ret = setTimeout(arg0, arg1);
|
|
5404
5424
|
return ret;
|
|
@@ -5441,6 +5461,9 @@ function __wbg_get_imports() {
|
|
|
5441
5461
|
imports.wbg.__wbg_setheaders_834c0bdb6a8949ad = function(arg0, arg1) {
|
|
5442
5462
|
arg0.headers = arg1;
|
|
5443
5463
|
};
|
|
5464
|
+
imports.wbg.__wbg_sethighwatermark_793c99c89830c8e9 = function(arg0, arg1) {
|
|
5465
|
+
arg0.highWaterMark = arg1;
|
|
5466
|
+
};
|
|
5444
5467
|
imports.wbg.__wbg_setmethod_3c5280fe5d890842 = function(arg0, arg1, arg2) {
|
|
5445
5468
|
arg0.method = getStringFromWasm0(arg1, arg2);
|
|
5446
5469
|
};
|
|
@@ -5513,15 +5536,15 @@ function __wbg_get_imports() {
|
|
|
5513
5536
|
const ret = arg0.then(arg1, arg2);
|
|
5514
5537
|
return ret;
|
|
5515
5538
|
};
|
|
5516
|
-
imports.wbg.__wbg_toSlice_543b72cb118ed345 = function(arg0, arg1, arg2, arg3) {
|
|
5517
|
-
JSUtils.toSlice(arg0, arg1, arg2 >>> 0, arg3 >>> 0);
|
|
5518
|
-
};
|
|
5519
5539
|
imports.wbg.__wbg_toString_ba82658ec370add0 = function() { return handleError(function (arg0, arg1) {
|
|
5520
5540
|
const ret = arg0.toString(arg1);
|
|
5521
5541
|
return ret;
|
|
5522
5542
|
}, arguments) };
|
|
5523
|
-
imports.wbg.
|
|
5524
|
-
|
|
5543
|
+
imports.wbg.__wbg_toU8Array_7fa7fb3ae8554ad0 = function(arg0, arg1, arg2, arg3) {
|
|
5544
|
+
JSArrayBufferCopy.toU8Array(arg0, arg1 >>> 0, arg2 >>> 0, arg3);
|
|
5545
|
+
};
|
|
5546
|
+
imports.wbg.__wbg_toU8Slice_11519abfa5176ae4 = function(arg0, arg1, arg2, arg3) {
|
|
5547
|
+
JSArrayBufferCopy.toU8Slice(arg0, arg1, arg2 >>> 0, arg3 >>> 0);
|
|
5525
5548
|
};
|
|
5526
5549
|
imports.wbg.__wbg_truncate_29261a6365c72b01 = function() { return handleError(function (arg0, arg1) {
|
|
5527
5550
|
arg0.truncate(arg1 >>> 0);
|
|
@@ -5591,20 +5614,20 @@ function __wbg_get_imports() {
|
|
|
5591
5614
|
const ret = false;
|
|
5592
5615
|
return ret;
|
|
5593
5616
|
};
|
|
5594
|
-
imports.wbg.
|
|
5595
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
5617
|
+
imports.wbg.__wbindgen_closure_wrapper17370 = function(arg0, arg1, arg2) {
|
|
5618
|
+
const ret = makeMutClosure(arg0, arg1, 4124, __wbg_adapter_50);
|
|
5596
5619
|
return ret;
|
|
5597
5620
|
};
|
|
5598
|
-
imports.wbg.
|
|
5599
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
5621
|
+
imports.wbg.__wbindgen_closure_wrapper17530 = function(arg0, arg1, arg2) {
|
|
5622
|
+
const ret = makeMutClosure(arg0, arg1, 4182, __wbg_adapter_53);
|
|
5600
5623
|
return ret;
|
|
5601
5624
|
};
|
|
5602
|
-
imports.wbg.
|
|
5603
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
5625
|
+
imports.wbg.__wbindgen_closure_wrapper20634 = function(arg0, arg1, arg2) {
|
|
5626
|
+
const ret = makeMutClosure(arg0, arg1, 4488, __wbg_adapter_56);
|
|
5604
5627
|
return ret;
|
|
5605
5628
|
};
|
|
5606
|
-
imports.wbg.
|
|
5607
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
5629
|
+
imports.wbg.__wbindgen_closure_wrapper20744 = function(arg0, arg1, arg2) {
|
|
5630
|
+
const ret = makeMutClosure(arg0, arg1, 4499, __wbg_adapter_59);
|
|
5608
5631
|
return ret;
|
|
5609
5632
|
};
|
|
5610
5633
|
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
|
Binary file
|
|
@@ -1,18 +1,38 @@
|
|
|
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
|
|
4
|
+
export const __wbg_remoteattachmentinfo_free: (a: number, b: number) => void;
|
|
5
|
+
export const __wbg_get_remoteattachmentinfo_contentDigest: (a: number) => [number, number];
|
|
6
|
+
export const __wbg_set_remoteattachmentinfo_contentDigest: (a: number, b: number, c: number) => void;
|
|
7
|
+
export const __wbg_get_remoteattachmentinfo_nonce: (a: number) => any;
|
|
8
|
+
export const __wbg_set_remoteattachmentinfo_nonce: (a: number, b: any) => void;
|
|
9
|
+
export const __wbg_get_remoteattachmentinfo_scheme: (a: number) => [number, number];
|
|
10
|
+
export const __wbg_set_remoteattachmentinfo_scheme: (a: number, b: number, c: number) => void;
|
|
11
|
+
export const __wbg_get_remoteattachmentinfo_url: (a: number) => [number, number];
|
|
12
|
+
export const __wbg_set_remoteattachmentinfo_url: (a: number, b: number, c: number) => void;
|
|
13
|
+
export const __wbg_get_remoteattachmentinfo_salt: (a: number) => any;
|
|
14
|
+
export const __wbg_set_remoteattachmentinfo_salt: (a: number, b: any) => void;
|
|
15
|
+
export const __wbg_get_remoteattachmentinfo_contentLength: (a: number) => number;
|
|
16
|
+
export const __wbg_set_remoteattachmentinfo_contentLength: (a: number, b: number) => void;
|
|
17
|
+
export const __wbg_get_remoteattachmentinfo_filename: (a: number) => [number, number];
|
|
18
|
+
export const __wbg_set_remoteattachmentinfo_filename: (a: number, b: number, c: number) => void;
|
|
19
|
+
export const 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;
|
|
20
|
+
export const __wbg_multiremoteattachment_free: (a: number, b: number) => void;
|
|
21
|
+
export const __wbg_get_multiremoteattachment_attachments: (a: number) => [number, number];
|
|
22
|
+
export const __wbg_set_multiremoteattachment_attachments: (a: number, b: number, c: number) => void;
|
|
23
|
+
export const multiremoteattachment_new: (a: number, b: number) => number;
|
|
24
|
+
export const encodeMultiRemoteAttachment: (a: number) => [number, number, number];
|
|
25
|
+
export const decodeMultiRemoteAttachment: (a: any) => [number, number, number];
|
|
26
|
+
export const __wbg_reaction_free: (a: number, b: number) => void;
|
|
27
|
+
export const __wbg_get_reaction_action: (a: number) => number;
|
|
28
|
+
export const __wbg_set_reaction_action: (a: number, b: number) => void;
|
|
29
|
+
export const __wbg_get_reaction_content: (a: number) => [number, number];
|
|
30
|
+
export const __wbg_set_reaction_content: (a: number, b: number, c: number) => void;
|
|
31
|
+
export const __wbg_get_reaction_schema: (a: number) => number;
|
|
32
|
+
export const __wbg_set_reaction_schema: (a: number, b: number) => void;
|
|
33
|
+
export const reaction_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
34
|
+
export const encodeReaction: (a: number) => [number, number, number];
|
|
35
|
+
export const decodeReaction: (a: any) => [number, number, number];
|
|
16
36
|
export const __wbg_listconversationsoptions_free: (a: number, b: number) => void;
|
|
17
37
|
export const __wbg_get_listconversationsoptions_consentStates: (a: number) => [number, number];
|
|
18
38
|
export const __wbg_set_listconversationsoptions_consentStates: (a: number, b: number, c: number) => void;
|
|
@@ -53,7 +73,6 @@ export const __wbg_createdmoptions_free: (a: number, b: number) => void;
|
|
|
53
73
|
export const __wbg_get_createdmoptions_messageDisappearingSettings: (a: number) => number;
|
|
54
74
|
export const __wbg_set_createdmoptions_messageDisappearingSettings: (a: number, b: number) => void;
|
|
55
75
|
export const createdmoptions_new: (a: number) => number;
|
|
56
|
-
export const __wbg_hmackey_free: (a: number, b: number) => void;
|
|
57
76
|
export const __wbg_get_hmackey_key: (a: number) => [number, number];
|
|
58
77
|
export const __wbg_conversationlistitem_free: (a: number, b: number) => void;
|
|
59
78
|
export const __wbg_get_conversationlistitem_conversation: (a: number) => number;
|
|
@@ -74,11 +93,14 @@ export const conversations_sync: (a: number) => any;
|
|
|
74
93
|
export const conversations_syncAllConversations: (a: number, b: number, c: number) => any;
|
|
75
94
|
export const conversations_list: (a: number, b: number) => [number, number, number];
|
|
76
95
|
export const conversations_getHmacKeys: (a: number) => [number, number, number];
|
|
96
|
+
export const conversations_streamLocal: (a: number, b: number) => any;
|
|
77
97
|
export const conversations_stream: (a: number, b: any, c: number) => [number, number, number];
|
|
78
98
|
export const conversations_streamAllMessages: (a: number, b: any, c: number, d: number, e: number) => [number, number, number];
|
|
79
99
|
export const conversations_streamConsent: (a: number, b: any) => [number, number, number];
|
|
80
100
|
export const conversations_streamPreferences: (a: number, b: any) => [number, number, number];
|
|
81
101
|
export const __wbg_contenttypeid_free: (a: number, b: number) => void;
|
|
102
|
+
export const __wbg_get_contenttypeid_authorityId: (a: number) => [number, number];
|
|
103
|
+
export const __wbg_set_contenttypeid_authorityId: (a: number, b: number, c: number) => void;
|
|
82
104
|
export const __wbg_get_contenttypeid_typeId: (a: number) => [number, number];
|
|
83
105
|
export const __wbg_set_contenttypeid_typeId: (a: number, b: number, c: number) => void;
|
|
84
106
|
export const __wbg_get_contenttypeid_versionMajor: (a: number) => number;
|
|
@@ -127,73 +149,69 @@ export const __wbg_get_messagewithreactions_message: (a: number) => number;
|
|
|
127
149
|
export const __wbg_set_messagewithreactions_message: (a: number, b: number) => void;
|
|
128
150
|
export const __wbg_get_messagewithreactions_reactions: (a: number) => [number, number];
|
|
129
151
|
export const __wbg_set_messagewithreactions_reactions: (a: number, b: number, c: number) => void;
|
|
130
|
-
export const
|
|
131
|
-
export const
|
|
132
|
-
export const
|
|
133
|
-
export const
|
|
134
|
-
export const
|
|
135
|
-
export const
|
|
136
|
-
export const
|
|
137
|
-
export const
|
|
138
|
-
export const
|
|
139
|
-
export const
|
|
140
|
-
export const
|
|
141
|
-
export const
|
|
142
|
-
export const
|
|
152
|
+
export const verifySignedWithPublicKey: (a: number, b: number, c: any, d: any) => [number, number];
|
|
153
|
+
export const __wbg_passkeysignature_free: (a: number, b: number) => void;
|
|
154
|
+
export const client_createInboxSignatureText: (a: number) => [number, number, number, number];
|
|
155
|
+
export const client_addWalletSignatureText: (a: number, b: any) => any;
|
|
156
|
+
export const client_revokeWalletSignatureText: (a: number, b: any) => any;
|
|
157
|
+
export const client_revokeAllOtherInstallationsSignatureText: (a: number) => any;
|
|
158
|
+
export const client_revokeInstallationsSignatureText: (a: number, b: number, c: number) => any;
|
|
159
|
+
export const client_changeRecoveryIdentifierSignatureText: (a: number, b: any) => any;
|
|
160
|
+
export const client_addEcdsaSignature: (a: number, b: number, c: any) => any;
|
|
161
|
+
export const client_addPasskeySignature: (a: number, b: number, c: number) => any;
|
|
162
|
+
export const client_addScwSignature: (a: number, b: number, c: any, d: bigint, e: number, f: bigint) => any;
|
|
163
|
+
export const client_applySignatureRequests: (a: number) => any;
|
|
164
|
+
export const client_signWithInstallationKey: (a: number, b: number, c: number) => [number, number, number];
|
|
165
|
+
export const client_verifySignedWithInstallationKey: (a: number, b: number, c: number, d: any) => [number, number];
|
|
166
|
+
export const __wbg_get_listmessagesoptions_sentBeforeNs: (a: number) => [number, bigint];
|
|
167
|
+
export const __wbg_get_listmessagesoptions_sentAfterNs: (a: number) => [number, bigint];
|
|
168
|
+
export const __wbg_get_listmessagesoptions_limit: (a: number) => [number, bigint];
|
|
169
|
+
export const __wbg_get_reaction_referenceInboxId: (a: number) => [number, number];
|
|
170
|
+
export const __wbg_get_reaction_reference: (a: number) => [number, number];
|
|
171
|
+
export const __wbg_get_conversationdebuginfo_forkDetails: (a: number) => [number, number];
|
|
143
172
|
export const __wbg_set_hmackey_key: (a: number, b: number, c: number) => void;
|
|
144
|
-
export const
|
|
173
|
+
export const __wbg_set_reaction_reference: (a: number, b: number, c: number) => void;
|
|
174
|
+
export const __wbg_set_reaction_referenceInboxId: (a: number, b: number, c: number) => void;
|
|
145
175
|
export const __wbg_set_messagedisappearingsettings_fromNs: (a: number, b: bigint) => void;
|
|
146
176
|
export const __wbg_set_hmackey_epoch: (a: number, b: bigint) => void;
|
|
147
177
|
export const __wbg_set_message_sentAtNs: (a: number, b: bigint) => void;
|
|
148
|
-
export const __wbg_get_contenttypeid_authorityId: (a: number) => [number, number];
|
|
149
|
-
export const __wbg_get_conversationdebuginfo_forkDetails: (a: number) => [number, number];
|
|
150
|
-
export const __wbg_get_listmessagesoptions_sentBeforeNs: (a: number) => [number, bigint];
|
|
151
|
-
export const __wbg_get_listmessagesoptions_sentAfterNs: (a: number) => [number, bigint];
|
|
152
|
-
export const __wbg_get_listmessagesoptions_limit: (a: number) => [number, bigint];
|
|
153
178
|
export const __wbg_get_messagedisappearingsettings_fromNs: (a: number) => bigint;
|
|
154
179
|
export const __wbg_get_hmackey_epoch: (a: number) => bigint;
|
|
155
180
|
export const __wbg_get_message_sentAtNs: (a: number) => bigint;
|
|
181
|
+
export const __wbg_set_creategroupoptions_messageDisappearingSettings: (a: number, b: number) => void;
|
|
182
|
+
export const __wbg_get_remoteattachmentinfo_secret: (a: number) => any;
|
|
183
|
+
export const __wbg_set_remoteattachmentinfo_secret: (a: number, b: any) => void;
|
|
156
184
|
export const __wbg_set_listmessagesoptions_sentBeforeNs: (a: number, b: number, c: bigint) => void;
|
|
157
185
|
export const __wbg_set_listmessagesoptions_sentAfterNs: (a: number, b: number, c: bigint) => void;
|
|
158
186
|
export const __wbg_set_listmessagesoptions_limit: (a: number, b: number, c: bigint) => void;
|
|
159
187
|
export const __wbg_get_creategroupoptions_messageDisappearingSettings: (a: number) => number;
|
|
160
|
-
export const
|
|
161
|
-
export const
|
|
162
|
-
export const
|
|
163
|
-
export const
|
|
164
|
-
export const
|
|
165
|
-
export const
|
|
166
|
-
export const
|
|
167
|
-
export const
|
|
168
|
-
export const
|
|
169
|
-
export const
|
|
170
|
-
export const
|
|
171
|
-
export const
|
|
172
|
-
export const
|
|
173
|
-
export const
|
|
174
|
-
export const
|
|
175
|
-
export const
|
|
176
|
-
export const
|
|
177
|
-
export const
|
|
178
|
-
export const
|
|
179
|
-
export const
|
|
180
|
-
export const
|
|
181
|
-
export const
|
|
182
|
-
export const
|
|
183
|
-
export const
|
|
184
|
-
export const
|
|
185
|
-
export const
|
|
186
|
-
export const
|
|
187
|
-
export const __wbg_set_reaction_referenceInboxId: (a: number, b: number, c: number) => void;
|
|
188
|
-
export const __wbg_get_reaction_action: (a: number) => number;
|
|
189
|
-
export const __wbg_set_reaction_action: (a: number, b: number) => void;
|
|
190
|
-
export const __wbg_get_reaction_content: (a: number) => [number, number];
|
|
191
|
-
export const __wbg_set_reaction_content: (a: number, b: number, c: number) => void;
|
|
192
|
-
export const __wbg_get_reaction_schema: (a: number) => number;
|
|
193
|
-
export const __wbg_set_reaction_schema: (a: number, b: number) => void;
|
|
194
|
-
export const reaction_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
195
|
-
export const encodeReaction: (a: number) => [number, number, number];
|
|
196
|
-
export const decodeReaction: (a: any) => [number, number, number];
|
|
188
|
+
export const __wbg_hmackey_free: (a: number, b: number) => void;
|
|
189
|
+
export const __wbg_client_free: (a: number, b: number) => void;
|
|
190
|
+
export const __wbg_logoptions_free: (a: number, b: number) => void;
|
|
191
|
+
export const __wbg_get_logoptions_structured: (a: number) => number;
|
|
192
|
+
export const __wbg_set_logoptions_structured: (a: number, b: number) => void;
|
|
193
|
+
export const __wbg_get_logoptions_performance: (a: number) => number;
|
|
194
|
+
export const __wbg_set_logoptions_performance: (a: number, b: number) => void;
|
|
195
|
+
export const __wbg_get_logoptions_level: (a: number) => number;
|
|
196
|
+
export const __wbg_set_logoptions_level: (a: number, b: number) => void;
|
|
197
|
+
export const logoptions_new: (a: number, b: number, c: number) => number;
|
|
198
|
+
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) => any;
|
|
199
|
+
export const client_accountIdentifier: (a: number) => any;
|
|
200
|
+
export const client_inboxId: (a: number) => [number, number];
|
|
201
|
+
export const client_isRegistered: (a: number) => number;
|
|
202
|
+
export const client_installationId: (a: number) => [number, number];
|
|
203
|
+
export const client_installationIdBytes: (a: number) => any;
|
|
204
|
+
export const client_canMessage: (a: number, b: number, c: number) => any;
|
|
205
|
+
export const client_registerIdentity: (a: number) => any;
|
|
206
|
+
export const client_sendSyncRequest: (a: number) => any;
|
|
207
|
+
export const client_findInboxIdByIdentifier: (a: number, b: any) => any;
|
|
208
|
+
export const client_inboxStateFromInboxIds: (a: number, b: number, c: number, d: number) => any;
|
|
209
|
+
export const client_conversations: (a: number) => number;
|
|
210
|
+
export const client_syncPreferences: (a: number) => any;
|
|
211
|
+
export const client_apiStatistics: (a: number) => number;
|
|
212
|
+
export const client_apiIdentityStatistics: (a: number) => number;
|
|
213
|
+
export const client_apiAggregateStatistics: (a: number) => [number, number];
|
|
214
|
+
export const client_uploadDebugArchive: (a: number, b: number, c: number) => any;
|
|
197
215
|
export const __wbg_groupmetadata_free: (a: number, b: number) => void;
|
|
198
216
|
export const groupmetadata_creatorInboxId: (a: number) => [number, number];
|
|
199
217
|
export const groupmetadata_conversationType: (a: number) => [number, number];
|
|
@@ -252,22 +270,6 @@ export const conversation_isMessageDisappearingEnabled: (a: number) => [number,
|
|
|
252
270
|
export const conversation_getHmacKeys: (a: number) => [number, number, number];
|
|
253
271
|
export const conversation_getDebugInfo: (a: number) => any;
|
|
254
272
|
export const conversation_findDuplicateDms: (a: number) => any;
|
|
255
|
-
export const verifySignedWithPublicKey: (a: number, b: number, c: any, d: any) => [number, number];
|
|
256
|
-
export const __wbg_passkeysignature_free: (a: number, b: number) => void;
|
|
257
|
-
export const client_createInboxSignatureText: (a: number) => [number, number, number, number];
|
|
258
|
-
export const client_addWalletSignatureText: (a: number, b: any) => any;
|
|
259
|
-
export const client_revokeWalletSignatureText: (a: number, b: any) => any;
|
|
260
|
-
export const client_revokeAllOtherInstallationsSignatureText: (a: number) => any;
|
|
261
|
-
export const client_revokeInstallationsSignatureText: (a: number, b: number, c: number) => any;
|
|
262
|
-
export const client_changeRecoveryIdentifierSignatureText: (a: number, b: any) => any;
|
|
263
|
-
export const client_addEcdsaSignature: (a: number, b: number, c: any) => any;
|
|
264
|
-
export const client_addPasskeySignature: (a: number, b: number, c: number) => any;
|
|
265
|
-
export const client_addScwSignature: (a: number, b: number, c: any, d: bigint, e: number, f: bigint) => any;
|
|
266
|
-
export const client_applySignatureRequests: (a: number) => any;
|
|
267
|
-
export const client_signWithInstallationKey: (a: number, b: number, c: number) => [number, number, number];
|
|
268
|
-
export const client_verifySignedWithInstallationKey: (a: number, b: number, c: number, d: any) => [number, number];
|
|
269
|
-
export const __wbg_set_reaction_reference: (a: number, b: number, c: number) => void;
|
|
270
|
-
export const __wbg_get_reaction_reference: (a: number) => [number, number];
|
|
271
273
|
export const __wbg_apistats_free: (a: number, b: number) => void;
|
|
272
274
|
export const __wbg_get_apistats_upload_key_package: (a: number) => bigint;
|
|
273
275
|
export const __wbg_set_apistats_upload_key_package: (a: number, b: bigint) => void;
|
|
@@ -286,45 +288,6 @@ export const __wbg_set_apistats_subscribe_messages: (a: number, b: bigint) => vo
|
|
|
286
288
|
export const __wbg_get_apistats_subscribe_welcomes: (a: number) => bigint;
|
|
287
289
|
export const __wbg_set_apistats_subscribe_welcomes: (a: number, b: bigint) => void;
|
|
288
290
|
export const __wbg_identitystats_free: (a: number, b: number) => void;
|
|
289
|
-
export const __wbg_set_identitystats_publish_identity_update: (a: number, b: bigint) => void;
|
|
290
|
-
export const __wbg_set_identitystats_get_identity_updates_v2: (a: number, b: bigint) => void;
|
|
291
|
-
export const __wbg_set_identitystats_get_inbox_ids: (a: number, b: bigint) => void;
|
|
292
|
-
export const __wbg_set_identitystats_verify_smart_contract_wallet_signature: (a: number, b: bigint) => void;
|
|
293
|
-
export const __wbg_get_identitystats_publish_identity_update: (a: number) => bigint;
|
|
294
|
-
export const __wbg_get_identitystats_get_identity_updates_v2: (a: number) => bigint;
|
|
295
|
-
export const __wbg_get_identitystats_get_inbox_ids: (a: number) => bigint;
|
|
296
|
-
export const __wbg_get_identitystats_verify_smart_contract_wallet_signature: (a: number) => bigint;
|
|
297
|
-
export const __wbg_streamcloser_free: (a: number, b: number) => void;
|
|
298
|
-
export const streamcloser_end: (a: number) => void;
|
|
299
|
-
export const streamcloser_endAndWait: (a: number) => any;
|
|
300
|
-
export const streamcloser_waitForReady: (a: number) => any;
|
|
301
|
-
export const streamcloser_isClosed: (a: number) => number;
|
|
302
|
-
export const __wbg_client_free: (a: number, b: number) => void;
|
|
303
|
-
export const __wbg_logoptions_free: (a: number, b: number) => void;
|
|
304
|
-
export const __wbg_get_logoptions_structured: (a: number) => number;
|
|
305
|
-
export const __wbg_set_logoptions_structured: (a: number, b: number) => void;
|
|
306
|
-
export const __wbg_get_logoptions_performance: (a: number) => number;
|
|
307
|
-
export const __wbg_set_logoptions_performance: (a: number, b: number) => void;
|
|
308
|
-
export const __wbg_get_logoptions_level: (a: number) => number;
|
|
309
|
-
export const __wbg_set_logoptions_level: (a: number, b: number) => void;
|
|
310
|
-
export const logoptions_new: (a: number, b: number, c: number) => number;
|
|
311
|
-
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) => any;
|
|
312
|
-
export const client_accountIdentifier: (a: number) => any;
|
|
313
|
-
export const client_inboxId: (a: number) => [number, number];
|
|
314
|
-
export const client_isRegistered: (a: number) => number;
|
|
315
|
-
export const client_installationId: (a: number) => [number, number];
|
|
316
|
-
export const client_installationIdBytes: (a: number) => any;
|
|
317
|
-
export const client_canMessage: (a: number, b: number, c: number) => any;
|
|
318
|
-
export const client_registerIdentity: (a: number) => any;
|
|
319
|
-
export const client_sendSyncRequest: (a: number) => any;
|
|
320
|
-
export const client_findInboxIdByIdentifier: (a: number, b: any) => any;
|
|
321
|
-
export const client_inboxStateFromInboxIds: (a: number, b: number, c: number, d: number) => any;
|
|
322
|
-
export const client_conversations: (a: number) => number;
|
|
323
|
-
export const client_syncPreferences: (a: number) => any;
|
|
324
|
-
export const client_apiStatistics: (a: number) => number;
|
|
325
|
-
export const client_apiIdentityStatistics: (a: number) => number;
|
|
326
|
-
export const client_apiAggregateStatistics: (a: number) => [number, number];
|
|
327
|
-
export const client_uploadDebugArchive: (a: number, b: number, c: number) => any;
|
|
328
291
|
export const getInboxIdForIdentifier: (a: number, b: number, c: any) => any;
|
|
329
292
|
export const generateInboxId: (a: any) => [number, number, number, number];
|
|
330
293
|
export const __wbg_installation_free: (a: number, b: number) => void;
|
|
@@ -336,8 +299,6 @@ export const __wbg_get_installation_clientTimestampNs: (a: number) => [number, b
|
|
|
336
299
|
export const __wbg_set_installation_clientTimestampNs: (a: number, b: number, c: bigint) => void;
|
|
337
300
|
export const installation_new: (a: any, b: number, c: number, d: number, e: bigint) => number;
|
|
338
301
|
export const __wbg_inboxstate_free: (a: number, b: number) => void;
|
|
339
|
-
export const __wbg_get_inboxstate_inboxId: (a: number) => [number, number];
|
|
340
|
-
export const __wbg_set_inboxstate_inboxId: (a: number, b: number, c: number) => void;
|
|
341
302
|
export const __wbg_get_inboxstate_recoveryIdentifier: (a: number) => any;
|
|
342
303
|
export const __wbg_set_inboxstate_recoveryIdentifier: (a: number, b: any) => void;
|
|
343
304
|
export const __wbg_get_inboxstate_installations: (a: number) => [number, number];
|
|
@@ -351,13 +312,53 @@ export const __wbg_set_keypackagestatus_lifetime: (a: number, b: number) => void
|
|
|
351
312
|
export const __wbg_get_keypackagestatus_validationError: (a: number) => [number, number];
|
|
352
313
|
export const __wbg_set_keypackagestatus_validationError: (a: number, b: number, c: number) => void;
|
|
353
314
|
export const __wbg_lifetime_free: (a: number, b: number) => void;
|
|
354
|
-
export const __wbg_get_lifetime_not_before: (a: number) => bigint;
|
|
355
|
-
export const __wbg_set_lifetime_not_before: (a: number, b: bigint) => void;
|
|
356
|
-
export const __wbg_get_lifetime_not_after: (a: number) => bigint;
|
|
357
|
-
export const __wbg_set_lifetime_not_after: (a: number, b: bigint) => void;
|
|
358
315
|
export const client_inboxState: (a: number, b: number) => any;
|
|
359
316
|
export const client_getLatestInboxState: (a: number, b: number, c: number) => any;
|
|
360
317
|
export const client_getKeyPackageStatusesForInstallationIds: (a: number, b: number, c: number) => any;
|
|
318
|
+
export const __wbg_streamcloser_free: (a: number, b: number) => void;
|
|
319
|
+
export const streamcloser_end: (a: number) => void;
|
|
320
|
+
export const streamcloser_endAndWait: (a: number) => any;
|
|
321
|
+
export const streamcloser_waitForReady: (a: number) => any;
|
|
322
|
+
export const streamcloser_isClosed: (a: number) => number;
|
|
323
|
+
export const __wbg_set_inboxstate_inboxId: (a: number, b: number, c: number) => void;
|
|
324
|
+
export const __wbg_set_identitystats_publish_identity_update: (a: number, b: bigint) => void;
|
|
325
|
+
export const __wbg_set_identitystats_get_identity_updates_v2: (a: number, b: bigint) => void;
|
|
326
|
+
export const __wbg_set_identitystats_get_inbox_ids: (a: number, b: bigint) => void;
|
|
327
|
+
export const __wbg_set_identitystats_verify_smart_contract_wallet_signature: (a: number, b: bigint) => void;
|
|
328
|
+
export const __wbg_set_lifetime_not_before: (a: number, b: bigint) => void;
|
|
329
|
+
export const __wbg_set_lifetime_not_after: (a: number, b: bigint) => void;
|
|
330
|
+
export const __wbg_get_inboxstate_inboxId: (a: number) => [number, number];
|
|
331
|
+
export const __wbg_get_identitystats_publish_identity_update: (a: number) => bigint;
|
|
332
|
+
export const __wbg_get_identitystats_get_identity_updates_v2: (a: number) => bigint;
|
|
333
|
+
export const __wbg_get_identitystats_get_inbox_ids: (a: number) => bigint;
|
|
334
|
+
export const __wbg_get_identitystats_verify_smart_contract_wallet_signature: (a: number) => bigint;
|
|
335
|
+
export const __wbg_get_lifetime_not_before: (a: number) => bigint;
|
|
336
|
+
export const __wbg_get_lifetime_not_after: (a: number) => bigint;
|
|
337
|
+
export const __wbg_consent_free: (a: number, b: number) => void;
|
|
338
|
+
export const __wbg_get_consent_entityType: (a: number) => number;
|
|
339
|
+
export const __wbg_set_consent_entityType: (a: number, b: number) => void;
|
|
340
|
+
export const __wbg_get_consent_state: (a: number) => number;
|
|
341
|
+
export const __wbg_set_consent_state: (a: number, b: number) => void;
|
|
342
|
+
export const __wbg_get_consent_entity: (a: number) => [number, number];
|
|
343
|
+
export const __wbg_set_consent_entity: (a: number, b: number, c: number) => void;
|
|
344
|
+
export const consent_new: (a: number, b: number, c: number, d: number) => number;
|
|
345
|
+
export const client_setConsentStates: (a: number, b: number, c: number) => any;
|
|
346
|
+
export const client_getConsentState: (a: number, b: number, c: number, d: number) => any;
|
|
347
|
+
export const conversation_consentState: (a: number) => [number, number, number];
|
|
348
|
+
export const conversation_updateConsentState: (a: number, b: number) => [number, number];
|
|
349
|
+
export const __wbg_opfs_free: (a: number, b: number) => void;
|
|
350
|
+
export const opfs_init_sqlite_opfs: () => any;
|
|
351
|
+
export const opfs_exists: () => number;
|
|
352
|
+
export const opfs_error: () => [number, number];
|
|
353
|
+
export const opfs_wipeFiles: () => any;
|
|
354
|
+
export const opfs_rm: (a: number, b: number) => [number, number, number];
|
|
355
|
+
export const opfs_getFileNames: () => [number, number];
|
|
356
|
+
export const opfs_importDb: (a: number, b: number, c: number, d: number) => [number, number];
|
|
357
|
+
export const opfs_exportFile: (a: number, b: number) => [number, number, number, number];
|
|
358
|
+
export const opfs_getFileCount: () => number;
|
|
359
|
+
export const opfs_getCapacity: () => number;
|
|
360
|
+
export const opfs_addCapacity: (a: number) => any;
|
|
361
|
+
export const opfs_reduceCapacity: (a: number) => any;
|
|
361
362
|
export const __wbg_permissionpolicyset_free: (a: number, b: number) => void;
|
|
362
363
|
export const __wbg_get_permissionpolicyset_addMemberPolicy: (a: number) => number;
|
|
363
364
|
export const __wbg_set_permissionpolicyset_addMemberPolicy: (a: number, b: number) => void;
|
|
@@ -420,9 +421,9 @@ export const __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
|
420
421
|
export const __externref_drop_slice: (a: number, b: number) => void;
|
|
421
422
|
export const __wbindgen_export_7: WebAssembly.Table;
|
|
422
423
|
export const __externref_table_dealloc: (a: number) => void;
|
|
423
|
-
export const
|
|
424
|
-
export const
|
|
425
|
-
export const
|
|
426
|
-
export const
|
|
427
|
-
export const
|
|
424
|
+
export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hc094ec3bdf8c16b7: (a: number, b: number) => void;
|
|
425
|
+
export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h0eb99f8c2f057fcc: (a: number, b: number) => void;
|
|
426
|
+
export const closure4487_externref_shim: (a: number, b: number, c: any) => void;
|
|
427
|
+
export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h232599d7dcf89d52: (a: number, b: number) => void;
|
|
428
|
+
export const closure5463_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
428
429
|
export const __wbindgen_start: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
class t{static toI8Slice(t,r,e,a){new Int8Array(t.buffer,e,a).set(r,0)}static toI8Array(t,r,e,a){const s=new Int8Array(t.buffer,r,e);a.set(s,0)}static toI16Slice(t,r,e,a){new Int16Array(t.buffer,e,a).set(r,0)}static toI16Array(t,r,e,a){const s=new Int16Array(t.buffer,r,e);a.set(s,0)}static toI32Slice(t,r,e,a){new Int32Array(t.buffer,e,a).set(r,0)}static toI32Array(t,r,e,a){const s=new Int32Array(t.buffer,r,e);a.set(s,0)}static toU8Slice(t,r,e,a){new Uint8Array(t.buffer,e,a).set(r,0)}static toU8Array(t,r,e,a){const s=new Uint8Array(t.buffer,r,e);a.set(s,0)}static toU8CSlice(t,r,e,a){new Uint8ClampedArray(t.buffer,e,a).set(r,0)}static toU8CArray(t,r,e,a){const s=new Uint8ClampedArray(t.buffer,r,e);a.set(s,0)}static toU16Slice(t,r,e,a){new Uint16Array(t.buffer,e,a).set(r,0)}static toU16Array(t,r,e,a){const s=new Uint16Array(t.buffer,r,e);a.set(s,0)}static toU32Slice(t,r,e,a){new Uint32Array(t.buffer,e,a).set(r,0)}static toU32Array(t,r,e,a){const s=new Uint32Array(t.buffer,r,e);a.set(s,0)}static toF32Slice(t,r,e,a){new Float32Array(t.buffer,e,a).set(r,0)}static toF32Array(t,r,e,a){const s=new Float32Array(t.buffer,r,e);a.set(s,0)}static toF64Slice(t,r,e,a){new Float64Array(t.buffer,e,a).set(r,0)}static toF64Array(t,r,e,a){const s=new Float64Array(t.buffer,r,e);a.set(s,0)}static toBigInt64Slice(t,r,e,a){new BigInt64Array(t.buffer,e,a).set(r,0)}static toBigInt64Array(t,r,e,a){const s=new BigInt64Array(t.buffer,r,e);a.set(s,0)}static toBigUint64Slice(t,r,e,a){new BigUint64Array(t.buffer,e,a).set(r,0)}static toBigUint64Array(t,r,e,a){const s=new BigUint64Array(t.buffer,r,e);a.set(s,0)}}export{t as JSArrayBufferCopy};
|
package/dist/version.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xmtp/wasm-bindings",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "WASM bindings for the libXMTP rust library",
|
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
"build": "yarn clean && yarn build:web && yarn clean:release",
|
|
28
28
|
"build:macos": "yarn clean && yarn build:web:macos && yarn clean:release",
|
|
29
29
|
"build:web": "RUSTFLAGS=\"-Ctarget-feature=+bulk-memory,+mutable-globals --cfg getrandom_backend=\\\"wasm_js\\\"\" wasm-pack build --target web --out-dir ./dist --no-pack --release",
|
|
30
|
+
"build:test": "RUSTFLAGS=\"-Ctarget-feature=+bulk-memory,+mutable-globals --cfg getrandom_backend=\\\"wasm_js\\\"\" wasm-pack build --no-opt --target web --out-dir ./dist --no-pack --release -- --features test-utils",
|
|
30
31
|
"build:web:macos": "CC_wasm32_unknown_unknown=/opt/homebrew/opt/llvm/bin/clang RUSTFLAGS=\"-Ctarget-feature=+bulk-memory,+mutable-globals --cfg getrandom_backend=\\\"wasm_js\\\"\" wasm-pack build --target web --out-dir ./dist --no-pack --release",
|
|
31
32
|
"check": "cargo check --target wasm32-unknown-unknown",
|
|
32
33
|
"check:macos": "CC_wasm32_unknown_unknown=/opt/homebrew/opt/llvm/bin/clang cargo check --target wasm32-unknown-unknown",
|
|
@@ -67,5 +68,8 @@
|
|
|
67
68
|
"wasm-pack": "^0.13.1",
|
|
68
69
|
"zx": "^8.4.0"
|
|
69
70
|
},
|
|
70
|
-
"packageManager": "yarn@4.5.1"
|
|
71
|
+
"packageManager": "yarn@4.5.1",
|
|
72
|
+
"workspaces": [
|
|
73
|
+
"tests/integration/**"
|
|
74
|
+
]
|
|
71
75
|
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export class JSUtils {
|
|
2
|
-
static toSlice(mem, src, dst, len) {
|
|
3
|
-
const slice = new Uint8Array(mem.buffer, dst, len);
|
|
4
|
-
slice.set(src, 0);
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
static toUint8Array(mem, src, len, dst) {
|
|
8
|
-
const slice = new Uint8Array(mem.buffer, src, len);
|
|
9
|
-
dst.set(slice, 0);
|
|
10
|
-
}
|
|
11
|
-
}
|