@xmtp/wasm-bindings 1.2.0-dev.125e5bf → 1.2.0-dev.5d15935

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.
@@ -1,13 +1,13 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
+ export function getInboxIdForIdentifier(host: string, accountIdentifier: Identifier): Promise<string | undefined>;
4
+ export function generateInboxId(accountIdentifier: Identifier): string;
3
5
  export function verifySignedWithPublicKey(signature_text: string, signature_bytes: Uint8Array, public_key: Uint8Array): void;
4
- export function createClient(host: string, inbox_id: string, account_identifier: Identifier, db_path?: string | null, encryption_key?: Uint8Array | null, history_sync_url?: string | null, log_options?: LogOptions | null): Promise<Client>;
5
6
  export function encodeMultiRemoteAttachment(multiRemoteAttachment: MultiRemoteAttachment): Uint8Array;
6
7
  export function decodeMultiRemoteAttachment(bytes: Uint8Array): MultiRemoteAttachment;
8
+ export function createClient(host: string, inbox_id: string, account_identifier: Identifier, db_path?: string | null, encryption_key?: Uint8Array | null, history_sync_url?: string | null, log_options?: LogOptions | null): Promise<Client>;
7
9
  export function encodeReaction(reaction: Reaction): Uint8Array;
8
10
  export function decodeReaction(bytes: Uint8Array): Reaction;
9
- export function getInboxIdForIdentifier(host: string, accountIdentifier: Identifier): Promise<string | undefined>;
10
- export function generateInboxId(accountIdentifier: Identifier): string;
11
11
  export enum ConsentEntityType {
12
12
  GroupId = 0,
13
13
  InboxId = 1,
@@ -566,6 +566,32 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
566
566
 
567
567
  export interface InitOutput {
568
568
  readonly memory: WebAssembly.Memory;
569
+ readonly __wbg_streamcloser_free: (a: number, b: number) => void;
570
+ readonly streamcloser_end: (a: number) => void;
571
+ readonly streamcloser_endAndWait: (a: number) => any;
572
+ readonly streamcloser_waitForReady: (a: number) => any;
573
+ readonly streamcloser_isClosed: (a: number) => number;
574
+ readonly __wbg_permissionpolicyset_free: (a: number, b: number) => void;
575
+ readonly __wbg_get_permissionpolicyset_addMemberPolicy: (a: number) => number;
576
+ readonly __wbg_set_permissionpolicyset_addMemberPolicy: (a: number, b: number) => void;
577
+ readonly __wbg_get_permissionpolicyset_removeMemberPolicy: (a: number) => number;
578
+ readonly __wbg_set_permissionpolicyset_removeMemberPolicy: (a: number, b: number) => void;
579
+ readonly __wbg_get_permissionpolicyset_addAdminPolicy: (a: number) => number;
580
+ readonly __wbg_set_permissionpolicyset_addAdminPolicy: (a: number, b: number) => void;
581
+ readonly __wbg_get_permissionpolicyset_removeAdminPolicy: (a: number) => number;
582
+ readonly __wbg_set_permissionpolicyset_removeAdminPolicy: (a: number, b: number) => void;
583
+ readonly __wbg_get_permissionpolicyset_updateGroupNamePolicy: (a: number) => number;
584
+ readonly __wbg_set_permissionpolicyset_updateGroupNamePolicy: (a: number, b: number) => void;
585
+ readonly __wbg_get_permissionpolicyset_updateGroupDescriptionPolicy: (a: number) => number;
586
+ readonly __wbg_set_permissionpolicyset_updateGroupDescriptionPolicy: (a: number, b: number) => void;
587
+ readonly __wbg_get_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number) => number;
588
+ readonly __wbg_set_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number, b: number) => void;
589
+ readonly __wbg_get_permissionpolicyset_updateMessageDisappearingPolicy: (a: number) => number;
590
+ readonly __wbg_set_permissionpolicyset_updateMessageDisappearingPolicy: (a: number, b: number) => void;
591
+ readonly permissionpolicyset_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
592
+ readonly __wbg_grouppermissions_free: (a: number, b: number) => void;
593
+ readonly grouppermissions_policyType: (a: number) => [number, number, number];
594
+ readonly grouppermissions_policySet: (a: number) => [number, number, number];
569
595
  readonly __wbg_consent_free: (a: number, b: number) => void;
570
596
  readonly __wbg_get_consent_entityType: (a: number) => number;
571
597
  readonly __wbg_set_consent_entityType: (a: number, b: number) => void;
@@ -632,6 +658,41 @@ export interface InitOutput {
632
658
  readonly conversation_messageDisappearingSettings: (a: number) => [number, number, number];
633
659
  readonly conversation_isMessageDisappearingEnabled: (a: number) => [number, number, number];
634
660
  readonly conversation_getHmacKeys: (a: number) => [number, number, number];
661
+ readonly __wbg_contenttypeid_free: (a: number, b: number) => void;
662
+ readonly __wbg_get_contenttypeid_typeId: (a: number) => [number, number];
663
+ readonly __wbg_set_contenttypeid_typeId: (a: number, b: number, c: number) => void;
664
+ readonly __wbg_get_contenttypeid_versionMajor: (a: number) => number;
665
+ readonly __wbg_set_contenttypeid_versionMajor: (a: number, b: number) => void;
666
+ readonly __wbg_get_contenttypeid_versionMinor: (a: number) => number;
667
+ readonly __wbg_set_contenttypeid_versionMinor: (a: number, b: number) => void;
668
+ readonly contenttypeid_new: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
669
+ readonly __wbg_encodedcontent_free: (a: number, b: number) => void;
670
+ readonly __wbg_get_encodedcontent_type: (a: number) => number;
671
+ readonly __wbg_set_encodedcontent_type: (a: number, b: number) => void;
672
+ readonly __wbg_get_encodedcontent_parameters: (a: number) => any;
673
+ readonly __wbg_set_encodedcontent_parameters: (a: number, b: any) => void;
674
+ readonly __wbg_get_encodedcontent_fallback: (a: number) => [number, number];
675
+ readonly __wbg_set_encodedcontent_fallback: (a: number, b: number, c: number) => void;
676
+ readonly __wbg_get_encodedcontent_compression: (a: number) => number;
677
+ readonly __wbg_set_encodedcontent_compression: (a: number, b: number) => void;
678
+ readonly __wbg_get_encodedcontent_content: (a: number) => any;
679
+ readonly __wbg_set_encodedcontent_content: (a: number, b: any) => void;
680
+ readonly encodedcontent_new: (a: number, b: any, c: number, d: number, e: number, f: any) => number;
681
+ readonly getInboxIdForIdentifier: (a: number, b: number, c: any) => any;
682
+ readonly generateInboxId: (a: any) => [number, number, number, number];
683
+ readonly __wbg_opfs_free: (a: number, b: number) => void;
684
+ readonly opfs_init_sqlite_opfs: () => any;
685
+ readonly opfs_exists: () => number;
686
+ readonly opfs_error: () => [number, number];
687
+ readonly opfs_wipeFiles: () => any;
688
+ readonly opfs_rm: (a: number, b: number) => [number, number, number];
689
+ readonly opfs_getFileNames: () => [number, number];
690
+ readonly opfs_importDb: (a: number, b: number, c: number, d: number) => [number, number];
691
+ readonly opfs_exportFile: (a: number, b: number) => [number, number, number, number];
692
+ readonly opfs_getFileCount: () => number;
693
+ readonly opfs_getCapacity: () => number;
694
+ readonly opfs_addCapacity: (a: number) => any;
695
+ readonly opfs_reduceCapacity: (a: number) => any;
635
696
  readonly verifySignedWithPublicKey: (a: number, b: number, c: any, d: any) => [number, number];
636
697
  readonly __wbg_passkeysignature_free: (a: number, b: number) => void;
637
698
  readonly client_createInboxSignatureText: (a: number) => [number, number, number, number];
@@ -647,34 +708,9 @@ export interface InitOutput {
647
708
  readonly client_signWithInstallationKey: (a: number, b: number, c: number) => [number, number, number];
648
709
  readonly client_verifySignedWithInstallationKey: (a: number, b: number, c: number, d: any) => [number, number];
649
710
  readonly __wbg_set_groupmember_inboxId: (a: number, b: number, c: number) => void;
711
+ readonly __wbg_set_contenttypeid_authorityId: (a: number, b: number, c: number) => void;
650
712
  readonly __wbg_get_groupmember_inboxId: (a: number) => [number, number];
651
- readonly __wbg_streamcloser_free: (a: number, b: number) => void;
652
- readonly streamcloser_end: (a: number) => void;
653
- readonly streamcloser_endAndWait: (a: number) => any;
654
- readonly streamcloser_waitForReady: (a: number) => any;
655
- readonly streamcloser_isClosed: (a: number) => number;
656
- readonly __wbg_client_free: (a: number, b: number) => void;
657
- readonly __wbg_logoptions_free: (a: number, b: number) => void;
658
- readonly __wbg_get_logoptions_structured: (a: number) => number;
659
- readonly __wbg_set_logoptions_structured: (a: number, b: number) => void;
660
- readonly __wbg_get_logoptions_performance: (a: number) => number;
661
- readonly __wbg_set_logoptions_performance: (a: number, b: number) => void;
662
- readonly __wbg_get_logoptions_level: (a: number) => number;
663
- readonly __wbg_set_logoptions_level: (a: number, b: number) => void;
664
- readonly logoptions_new: (a: number, b: number, c: number) => number;
665
- readonly createClient: (a: number, b: number, c: number, d: number, e: any, f: number, g: number, h: number, i: number, j: number, k: number) => any;
666
- readonly client_accountIdentifier: (a: number) => any;
667
- readonly client_inboxId: (a: number) => [number, number];
668
- readonly client_isRegistered: (a: number) => number;
669
- readonly client_installationId: (a: number) => [number, number];
670
- readonly client_installationIdBytes: (a: number) => any;
671
- readonly client_canMessage: (a: number, b: number, c: number) => any;
672
- readonly client_registerIdentity: (a: number) => any;
673
- readonly client_sendHistorySyncRequest: (a: number) => any;
674
- readonly client_sendConsentSyncRequest: (a: number) => any;
675
- readonly client_findInboxIdByIdentifier: (a: number, b: any) => any;
676
- readonly client_inboxStateFromInboxIds: (a: number, b: number, c: number, d: number) => any;
677
- readonly client_conversations: (a: number) => number;
713
+ readonly __wbg_get_contenttypeid_authorityId: (a: number) => [number, number];
678
714
  readonly __wbg_remoteattachmentinfo_free: (a: number, b: number) => void;
679
715
  readonly __wbg_get_remoteattachmentinfo_secret: (a: number) => any;
680
716
  readonly __wbg_set_remoteattachmentinfo_secret: (a: number, b: any) => void;
@@ -682,6 +718,7 @@ export interface InitOutput {
682
718
  readonly __wbg_set_remoteattachmentinfo_contentDigest: (a: number, b: number, c: number) => void;
683
719
  readonly __wbg_get_remoteattachmentinfo_nonce: (a: number) => any;
684
720
  readonly __wbg_set_remoteattachmentinfo_nonce: (a: number, b: any) => void;
721
+ readonly __wbg_get_remoteattachmentinfo_scheme: (a: number) => [number, number];
685
722
  readonly __wbg_set_remoteattachmentinfo_scheme: (a: number, b: number, c: number) => void;
686
723
  readonly __wbg_get_remoteattachmentinfo_url: (a: number) => [number, number];
687
724
  readonly __wbg_set_remoteattachmentinfo_url: (a: number, b: number, c: number) => void;
@@ -698,73 +735,6 @@ export interface InitOutput {
698
735
  readonly multiremoteattachment_new: (a: number, b: number) => number;
699
736
  readonly encodeMultiRemoteAttachment: (a: number) => [number, number, number];
700
737
  readonly decodeMultiRemoteAttachment: (a: any) => [number, number, number];
701
- readonly __wbg_reaction_free: (a: number, b: number) => void;
702
- readonly __wbg_get_reaction_referenceInboxId: (a: number) => [number, number];
703
- readonly __wbg_set_reaction_referenceInboxId: (a: number, b: number, c: number) => void;
704
- readonly __wbg_get_reaction_action: (a: number) => number;
705
- readonly __wbg_set_reaction_action: (a: number, b: number) => void;
706
- readonly __wbg_get_reaction_content: (a: number) => [number, number];
707
- readonly __wbg_set_reaction_content: (a: number, b: number, c: number) => void;
708
- readonly __wbg_get_reaction_schema: (a: number) => number;
709
- readonly __wbg_set_reaction_schema: (a: number, b: number) => void;
710
- readonly reaction_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
711
- readonly encodeReaction: (a: number) => [number, number, number];
712
- readonly decodeReaction: (a: any) => [number, number, number];
713
- readonly __wbg_installation_free: (a: number, b: number) => void;
714
- readonly __wbg_get_installation_bytes: (a: number) => any;
715
- readonly __wbg_set_installation_bytes: (a: number, b: any) => void;
716
- readonly __wbg_get_installation_id: (a: number) => [number, number];
717
- readonly __wbg_set_installation_id: (a: number, b: number, c: number) => void;
718
- readonly __wbg_get_installation_clientTimestampNs: (a: number) => [number, bigint];
719
- readonly __wbg_set_installation_clientTimestampNs: (a: number, b: number, c: bigint) => void;
720
- readonly installation_new: (a: any, b: number, c: number, d: number, e: bigint) => number;
721
- readonly __wbg_inboxstate_free: (a: number, b: number) => void;
722
- readonly __wbg_get_inboxstate_inboxId: (a: number) => [number, number];
723
- readonly __wbg_set_inboxstate_inboxId: (a: number, b: number, c: number) => void;
724
- readonly __wbg_get_inboxstate_recoveryIdentifier: (a: number) => any;
725
- readonly __wbg_set_inboxstate_recoveryIdentifier: (a: number, b: any) => void;
726
- readonly __wbg_get_inboxstate_installations: (a: number) => [number, number];
727
- readonly __wbg_set_inboxstate_installations: (a: number, b: number, c: number) => void;
728
- readonly __wbg_get_inboxstate_accountIdentifiers: (a: number) => [number, number];
729
- readonly __wbg_set_inboxstate_accountIdentifiers: (a: number, b: number, c: number) => void;
730
- readonly inboxstate_new: (a: number, b: number, c: any, d: number, e: number, f: number, g: number) => number;
731
- readonly __wbg_keypackagestatus_free: (a: number, b: number) => void;
732
- readonly __wbg_get_keypackagestatus_lifetime: (a: number) => number;
733
- readonly __wbg_set_keypackagestatus_lifetime: (a: number, b: number) => void;
734
- readonly __wbg_get_keypackagestatus_validationError: (a: number) => [number, number];
735
- readonly __wbg_set_keypackagestatus_validationError: (a: number, b: number, c: number) => void;
736
- readonly __wbg_lifetime_free: (a: number, b: number) => void;
737
- readonly __wbg_get_lifetime_not_before: (a: number) => bigint;
738
- readonly __wbg_set_lifetime_not_before: (a: number, b: bigint) => void;
739
- readonly __wbg_get_lifetime_not_after: (a: number) => bigint;
740
- readonly __wbg_set_lifetime_not_after: (a: number, b: bigint) => void;
741
- readonly client_inboxState: (a: number, b: number) => any;
742
- readonly client_getLatestInboxState: (a: number, b: number, c: number) => any;
743
- readonly client_getKeyPackageStatusesForInstallationIds: (a: number, b: number, c: number) => any;
744
- readonly __wbg_set_reaction_reference: (a: number, b: number, c: number) => void;
745
- readonly __wbg_get_remoteattachmentinfo_scheme: (a: number) => [number, number];
746
- readonly __wbg_get_reaction_reference: (a: number) => [number, number];
747
- readonly __wbg_permissionpolicyset_free: (a: number, b: number) => void;
748
- readonly __wbg_get_permissionpolicyset_addMemberPolicy: (a: number) => number;
749
- readonly __wbg_set_permissionpolicyset_addMemberPolicy: (a: number, b: number) => void;
750
- readonly __wbg_get_permissionpolicyset_removeMemberPolicy: (a: number) => number;
751
- readonly __wbg_set_permissionpolicyset_removeMemberPolicy: (a: number, b: number) => void;
752
- readonly __wbg_get_permissionpolicyset_addAdminPolicy: (a: number) => number;
753
- readonly __wbg_set_permissionpolicyset_addAdminPolicy: (a: number, b: number) => void;
754
- readonly __wbg_get_permissionpolicyset_removeAdminPolicy: (a: number) => number;
755
- readonly __wbg_set_permissionpolicyset_removeAdminPolicy: (a: number, b: number) => void;
756
- readonly __wbg_get_permissionpolicyset_updateGroupNamePolicy: (a: number) => number;
757
- readonly __wbg_set_permissionpolicyset_updateGroupNamePolicy: (a: number, b: number) => void;
758
- readonly __wbg_get_permissionpolicyset_updateGroupDescriptionPolicy: (a: number) => number;
759
- readonly __wbg_set_permissionpolicyset_updateGroupDescriptionPolicy: (a: number, b: number) => void;
760
- readonly __wbg_get_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number) => number;
761
- readonly __wbg_set_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number, b: number) => void;
762
- readonly __wbg_get_permissionpolicyset_updateMessageDisappearingPolicy: (a: number) => number;
763
- readonly __wbg_set_permissionpolicyset_updateMessageDisappearingPolicy: (a: number, b: number) => void;
764
- readonly permissionpolicyset_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
765
- readonly __wbg_grouppermissions_free: (a: number, b: number) => void;
766
- readonly grouppermissions_policyType: (a: number) => [number, number, number];
767
- readonly grouppermissions_policySet: (a: number) => [number, number, number];
768
738
  readonly __wbg_listconversationsoptions_free: (a: number, b: number) => void;
769
739
  readonly __wbg_get_listconversationsoptions_consentStates: (a: number) => [number, number];
770
740
  readonly __wbg_set_listconversationsoptions_consentStates: (a: number, b: number, c: number) => void;
@@ -828,30 +798,6 @@ export interface InitOutput {
828
798
  readonly conversations_streamAllMessages: (a: number, b: any, c: number) => [number, number, number];
829
799
  readonly conversations_streamConsent: (a: number, b: any) => [number, number, number];
830
800
  readonly conversations_streamPreferences: (a: number, b: any) => [number, number, number];
831
- readonly __wbg_contenttypeid_free: (a: number, b: number) => void;
832
- readonly __wbg_get_contenttypeid_authorityId: (a: number) => [number, number];
833
- readonly __wbg_set_contenttypeid_authorityId: (a: number, b: number, c: number) => void;
834
- readonly __wbg_get_contenttypeid_typeId: (a: number) => [number, number];
835
- readonly __wbg_set_contenttypeid_typeId: (a: number, b: number, c: number) => void;
836
- readonly __wbg_get_contenttypeid_versionMajor: (a: number) => number;
837
- readonly __wbg_set_contenttypeid_versionMajor: (a: number, b: number) => void;
838
- readonly __wbg_get_contenttypeid_versionMinor: (a: number) => number;
839
- readonly __wbg_set_contenttypeid_versionMinor: (a: number, b: number) => void;
840
- readonly contenttypeid_new: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
841
- readonly __wbg_encodedcontent_free: (a: number, b: number) => void;
842
- readonly __wbg_get_encodedcontent_type: (a: number) => number;
843
- readonly __wbg_set_encodedcontent_type: (a: number, b: number) => void;
844
- readonly __wbg_get_encodedcontent_parameters: (a: number) => any;
845
- readonly __wbg_set_encodedcontent_parameters: (a: number, b: any) => void;
846
- readonly __wbg_get_encodedcontent_fallback: (a: number) => [number, number];
847
- readonly __wbg_set_encodedcontent_fallback: (a: number, b: number, c: number) => void;
848
- readonly __wbg_get_encodedcontent_compression: (a: number) => number;
849
- readonly __wbg_set_encodedcontent_compression: (a: number, b: number) => void;
850
- readonly __wbg_get_encodedcontent_content: (a: number) => any;
851
- readonly __wbg_set_encodedcontent_content: (a: number, b: any) => void;
852
- readonly encodedcontent_new: (a: number, b: any, c: number, d: number, e: number, f: any) => number;
853
- readonly getInboxIdForIdentifier: (a: number, b: number, c: any) => any;
854
- readonly generateInboxId: (a: any) => [number, number, number, number];
855
801
  readonly __wbg_listmessagesoptions_free: (a: number, b: number) => void;
856
802
  readonly __wbg_get_listmessagesoptions_contentTypes: (a: number) => [number, number];
857
803
  readonly __wbg_set_listmessagesoptions_contentTypes: (a: number, b: number, c: number) => void;
@@ -879,38 +825,92 @@ export interface InitOutput {
879
825
  readonly __wbg_set_messagewithreactions_message: (a: number, b: number) => void;
880
826
  readonly __wbg_get_messagewithreactions_reactions: (a: number) => [number, number];
881
827
  readonly __wbg_set_messagewithreactions_reactions: (a: number, b: number, c: number) => void;
882
- readonly __wbg_opfs_free: (a: number, b: number) => void;
883
- readonly opfs_init_sqlite_opfs: () => any;
884
- readonly opfs_exists: () => number;
885
- readonly opfs_error: () => [number, number];
886
- readonly opfs_wipeFiles: () => any;
887
- readonly opfs_rm: (a: number, b: number) => [number, number, number];
888
- readonly opfs_getFileNames: () => [number, number];
889
- readonly opfs_importDb: (a: number, b: number, c: number, d: number) => [number, number];
890
- readonly opfs_exportFile: (a: number, b: number) => [number, number, number, number];
891
- readonly opfs_getFileCount: () => number;
892
- readonly opfs_getCapacity: () => number;
893
- readonly opfs_addCapacity: (a: number) => any;
894
- readonly opfs_reduceCapacity: (a: number) => any;
895
828
  readonly __wbg_get_messagedisappearingsettings_fromNs: (a: number) => bigint;
896
829
  readonly __wbg_get_message_sentAtNs: (a: number) => bigint;
897
830
  readonly __wbg_set_listmessagesoptions_sentBeforeNs: (a: number, b: number, c: bigint) => void;
898
831
  readonly __wbg_set_listmessagesoptions_sentAfterNs: (a: number, b: number, c: bigint) => void;
899
832
  readonly __wbg_set_listmessagesoptions_limit: (a: number, b: number, c: bigint) => void;
833
+ readonly __wbg_get_creategroupoptions_messageDisappearingSettings: (a: number) => number;
900
834
  readonly __wbg_set_messagedisappearingsettings_fromNs: (a: number, b: bigint) => void;
901
835
  readonly __wbg_set_message_sentAtNs: (a: number, b: bigint) => void;
902
836
  readonly __wbg_set_creategroupoptions_messageDisappearingSettings: (a: number, b: number) => void;
903
- readonly __wbg_get_creategroupoptions_messageDisappearingSettings: (a: number) => number;
904
837
  readonly __wbg_get_listmessagesoptions_sentBeforeNs: (a: number) => [number, bigint];
905
838
  readonly __wbg_get_listmessagesoptions_sentAfterNs: (a: number) => [number, bigint];
906
839
  readonly __wbg_get_listmessagesoptions_limit: (a: number) => [number, bigint];
840
+ readonly __wbg_client_free: (a: number, b: number) => void;
841
+ readonly __wbg_logoptions_free: (a: number, b: number) => void;
842
+ readonly __wbg_get_logoptions_structured: (a: number) => number;
843
+ readonly __wbg_set_logoptions_structured: (a: number, b: number) => void;
844
+ readonly __wbg_get_logoptions_performance: (a: number) => number;
845
+ readonly __wbg_set_logoptions_performance: (a: number, b: number) => void;
846
+ readonly __wbg_get_logoptions_level: (a: number) => number;
847
+ readonly __wbg_set_logoptions_level: (a: number, b: number) => void;
848
+ readonly logoptions_new: (a: number, b: number, c: number) => number;
849
+ readonly createClient: (a: number, b: number, c: number, d: number, e: any, f: number, g: number, h: number, i: number, j: number, k: number) => any;
850
+ readonly client_accountIdentifier: (a: number) => any;
851
+ readonly client_inboxId: (a: number) => [number, number];
852
+ readonly client_isRegistered: (a: number) => number;
853
+ readonly client_installationId: (a: number) => [number, number];
854
+ readonly client_installationIdBytes: (a: number) => any;
855
+ readonly client_canMessage: (a: number, b: number, c: number) => any;
856
+ readonly client_registerIdentity: (a: number) => any;
857
+ readonly client_sendHistorySyncRequest: (a: number) => any;
858
+ readonly client_sendConsentSyncRequest: (a: number) => any;
859
+ readonly client_findInboxIdByIdentifier: (a: number, b: any) => any;
860
+ readonly client_inboxStateFromInboxIds: (a: number, b: number, c: number, d: number) => any;
861
+ readonly client_conversations: (a: number) => number;
862
+ readonly __wbg_reaction_free: (a: number, b: number) => void;
863
+ readonly __wbg_get_reaction_referenceInboxId: (a: number) => [number, number];
864
+ readonly __wbg_set_reaction_referenceInboxId: (a: number, b: number, c: number) => void;
865
+ readonly __wbg_get_reaction_action: (a: number) => number;
866
+ readonly __wbg_set_reaction_action: (a: number, b: number) => void;
867
+ readonly __wbg_get_reaction_content: (a: number) => [number, number];
868
+ readonly __wbg_set_reaction_content: (a: number, b: number, c: number) => void;
869
+ readonly __wbg_get_reaction_schema: (a: number) => number;
870
+ readonly __wbg_set_reaction_schema: (a: number, b: number) => void;
871
+ readonly reaction_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
872
+ readonly encodeReaction: (a: number) => [number, number, number];
873
+ readonly decodeReaction: (a: any) => [number, number, number];
874
+ readonly __wbg_installation_free: (a: number, b: number) => void;
875
+ readonly __wbg_get_installation_bytes: (a: number) => any;
876
+ readonly __wbg_set_installation_bytes: (a: number, b: any) => void;
877
+ readonly __wbg_get_installation_id: (a: number) => [number, number];
878
+ readonly __wbg_set_installation_id: (a: number, b: number, c: number) => void;
879
+ readonly __wbg_get_installation_clientTimestampNs: (a: number) => [number, bigint];
880
+ readonly __wbg_set_installation_clientTimestampNs: (a: number, b: number, c: bigint) => void;
881
+ readonly installation_new: (a: any, b: number, c: number, d: number, e: bigint) => number;
882
+ readonly __wbg_inboxstate_free: (a: number, b: number) => void;
883
+ readonly __wbg_get_inboxstate_inboxId: (a: number) => [number, number];
884
+ readonly __wbg_set_inboxstate_inboxId: (a: number, b: number, c: number) => void;
885
+ readonly __wbg_get_inboxstate_recoveryIdentifier: (a: number) => any;
886
+ readonly __wbg_set_inboxstate_recoveryIdentifier: (a: number, b: any) => void;
887
+ readonly __wbg_get_inboxstate_installations: (a: number) => [number, number];
888
+ readonly __wbg_set_inboxstate_installations: (a: number, b: number, c: number) => void;
889
+ readonly __wbg_get_inboxstate_accountIdentifiers: (a: number) => [number, number];
890
+ readonly __wbg_set_inboxstate_accountIdentifiers: (a: number, b: number, c: number) => void;
891
+ readonly inboxstate_new: (a: number, b: number, c: any, d: number, e: number, f: number, g: number) => number;
892
+ readonly __wbg_keypackagestatus_free: (a: number, b: number) => void;
893
+ readonly __wbg_get_keypackagestatus_lifetime: (a: number) => number;
894
+ readonly __wbg_set_keypackagestatus_lifetime: (a: number, b: number) => void;
895
+ readonly __wbg_get_keypackagestatus_validationError: (a: number) => [number, number];
896
+ readonly __wbg_set_keypackagestatus_validationError: (a: number, b: number, c: number) => void;
897
+ readonly __wbg_lifetime_free: (a: number, b: number) => void;
898
+ readonly __wbg_get_lifetime_not_before: (a: number) => bigint;
899
+ readonly __wbg_set_lifetime_not_before: (a: number, b: bigint) => void;
900
+ readonly __wbg_get_lifetime_not_after: (a: number) => bigint;
901
+ readonly __wbg_set_lifetime_not_after: (a: number, b: bigint) => void;
902
+ readonly client_inboxState: (a: number, b: number) => any;
903
+ readonly client_getLatestInboxState: (a: number, b: number, c: number) => any;
904
+ readonly client_getKeyPackageStatusesForInstallationIds: (a: number, b: number, c: number) => any;
905
+ readonly __wbg_set_reaction_reference: (a: number, b: number, c: number) => void;
906
+ readonly __wbg_get_reaction_reference: (a: number) => [number, number];
907
907
  readonly rust_sqlite_wasm_shim_localtime_js: (a: bigint, b: number) => void;
908
908
  readonly rust_sqlite_wasm_shim_tzset_js: (a: number, b: number, c: number, d: number) => void;
909
909
  readonly rust_sqlite_wasm_shim_emscripten_get_now: () => number;
910
- readonly sqlite3_os_init: () => number;
911
910
  readonly rust_sqlite_wasm_shim_malloc: (a: number) => number;
912
911
  readonly rust_sqlite_wasm_shim_free: (a: number) => void;
913
912
  readonly rust_sqlite_wasm_shim_realloc: (a: number, b: number) => number;
913
+ readonly sqlite3_os_init: () => number;
914
914
  readonly __wbg_intounderlyingbytesource_free: (a: number, b: number) => void;
915
915
  readonly intounderlyingbytesource_type: (a: number) => number;
916
916
  readonly intounderlyingbytesource_autoAllocateChunkSize: (a: number) => number;
@@ -933,10 +933,12 @@ export interface InitOutput {
933
933
  readonly __externref_drop_slice: (a: number, b: number) => void;
934
934
  readonly __wbindgen_export_7: WebAssembly.Table;
935
935
  readonly __externref_table_dealloc: (a: number) => void;
936
- readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h956eec367a7720a2: (a: number, b: number) => void;
937
- readonly closure3889_externref_shim: (a: number, b: number, c: any) => void;
938
- readonly closure4898_externref_shim: (a: number, b: number, c: any, d: number, e: any) => number;
939
- readonly closure4892_externref_shim: (a: number, b: number, c: any, d: any) => void;
936
+ readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h6040dd5f55152215: (a: number, b: number) => void;
937
+ readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h9b134efb6b08a208: (a: number, b: number) => void;
938
+ readonly closure3985_externref_shim: (a: number, b: number, c: any) => void;
939
+ readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h0f45197f24caef5a: (a: number, b: number) => void;
940
+ readonly closure4878_externref_shim: (a: number, b: number, c: any, d: number, e: any) => number;
941
+ readonly closure4877_externref_shim: (a: number, b: number, c: any, d: any) => void;
940
942
  readonly __wbindgen_start: () => void;
941
943
  }
942
944
 
@@ -102,6 +102,11 @@ function isLikeNone(x) {
102
102
  return x === undefined || x === null;
103
103
  }
104
104
 
105
+ function getArrayU8FromWasm0(ptr, len) {
106
+ ptr = ptr >>> 0;
107
+ return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
108
+ }
109
+
105
110
  function getArrayJsValueFromWasm0(ptr, len) {
106
111
  ptr = ptr >>> 0;
107
112
  const mem = getDataViewMemory0();
@@ -113,11 +118,6 @@ function getArrayJsValueFromWasm0(ptr, len) {
113
118
  return result;
114
119
  }
115
120
 
116
- function getArrayU8FromWasm0(ptr, len) {
117
- ptr = ptr >>> 0;
118
- return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
119
- }
120
-
121
121
  const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
122
122
  ? { register: () => {}, unregister: () => {} }
123
123
  : new FinalizationRegistry(state => {
@@ -214,6 +214,12 @@ function debugString(val) {
214
214
  return className;
215
215
  }
216
216
 
217
+ function takeFromExternrefTable0(idx) {
218
+ const value = wasm.__wbindgen_export_4.get(idx);
219
+ wasm.__externref_table_dealloc(idx);
220
+ return value;
221
+ }
222
+
217
223
  function passArrayJsValueToWasm0(array, malloc) {
218
224
  const ptr = malloc(array.length * 4, 4) >>> 0;
219
225
  for (let i = 0; i < array.length; i++) {
@@ -224,17 +230,52 @@ function passArrayJsValueToWasm0(array, malloc) {
224
230
  return ptr;
225
231
  }
226
232
 
227
- function takeFromExternrefTable0(idx) {
228
- const value = wasm.__wbindgen_export_4.get(idx);
229
- wasm.__externref_table_dealloc(idx);
230
- return value;
231
- }
232
-
233
233
  function _assertClass(instance, klass) {
234
234
  if (!(instance instanceof klass)) {
235
235
  throw new Error(`expected instance of ${klass.name}`);
236
236
  }
237
237
  }
238
+ /**
239
+ * @param {string} host
240
+ * @param {Identifier} accountIdentifier
241
+ * @returns {Promise<string | undefined>}
242
+ */
243
+ export function getInboxIdForIdentifier(host, accountIdentifier) {
244
+ const ptr0 = passStringToWasm0(host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
245
+ const len0 = WASM_VECTOR_LEN;
246
+ const ret = wasm.getInboxIdForIdentifier(ptr0, len0, accountIdentifier);
247
+ return ret;
248
+ }
249
+
250
+ /**
251
+ * @param {Identifier} accountIdentifier
252
+ * @returns {string}
253
+ */
254
+ export function generateInboxId(accountIdentifier) {
255
+ let deferred2_0;
256
+ let deferred2_1;
257
+ try {
258
+ const ret = wasm.generateInboxId(accountIdentifier);
259
+ var ptr1 = ret[0];
260
+ var len1 = ret[1];
261
+ if (ret[3]) {
262
+ ptr1 = 0; len1 = 0;
263
+ throw takeFromExternrefTable0(ret[2]);
264
+ }
265
+ deferred2_0 = ptr1;
266
+ deferred2_1 = len1;
267
+ return getStringFromWasm0(ptr1, len1);
268
+ } finally {
269
+ wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
270
+ }
271
+ }
272
+
273
+ function passArray8ToWasm0(arg, malloc) {
274
+ const ptr = malloc(arg.length * 1, 1) >>> 0;
275
+ getUint8ArrayMemory0().set(arg, ptr / 1);
276
+ WASM_VECTOR_LEN = arg.length;
277
+ return ptr;
278
+ }
238
279
  /**
239
280
  * @param {string} signature_text
240
281
  * @param {Uint8Array} signature_bytes
@@ -249,6 +290,32 @@ export function verifySignedWithPublicKey(signature_text, signature_bytes, publi
249
290
  }
250
291
  }
251
292
 
293
+ /**
294
+ * @param {MultiRemoteAttachment} multiRemoteAttachment
295
+ * @returns {Uint8Array}
296
+ */
297
+ export function encodeMultiRemoteAttachment(multiRemoteAttachment) {
298
+ _assertClass(multiRemoteAttachment, MultiRemoteAttachment);
299
+ var ptr0 = multiRemoteAttachment.__destroy_into_raw();
300
+ const ret = wasm.encodeMultiRemoteAttachment(ptr0);
301
+ if (ret[2]) {
302
+ throw takeFromExternrefTable0(ret[1]);
303
+ }
304
+ return takeFromExternrefTable0(ret[0]);
305
+ }
306
+
307
+ /**
308
+ * @param {Uint8Array} bytes
309
+ * @returns {MultiRemoteAttachment}
310
+ */
311
+ export function decodeMultiRemoteAttachment(bytes) {
312
+ const ret = wasm.decodeMultiRemoteAttachment(bytes);
313
+ if (ret[2]) {
314
+ throw takeFromExternrefTable0(ret[1]);
315
+ }
316
+ return MultiRemoteAttachment.__wrap(ret[0]);
317
+ }
318
+
252
319
  /**
253
320
  * @param {string} host
254
321
  * @param {string} inbox_id
@@ -277,32 +344,6 @@ export function createClient(host, inbox_id, account_identifier, db_path, encryp
277
344
  return ret;
278
345
  }
279
346
 
280
- /**
281
- * @param {MultiRemoteAttachment} multiRemoteAttachment
282
- * @returns {Uint8Array}
283
- */
284
- export function encodeMultiRemoteAttachment(multiRemoteAttachment) {
285
- _assertClass(multiRemoteAttachment, MultiRemoteAttachment);
286
- var ptr0 = multiRemoteAttachment.__destroy_into_raw();
287
- const ret = wasm.encodeMultiRemoteAttachment(ptr0);
288
- if (ret[2]) {
289
- throw takeFromExternrefTable0(ret[1]);
290
- }
291
- return takeFromExternrefTable0(ret[0]);
292
- }
293
-
294
- /**
295
- * @param {Uint8Array} bytes
296
- * @returns {MultiRemoteAttachment}
297
- */
298
- export function decodeMultiRemoteAttachment(bytes) {
299
- const ret = wasm.decodeMultiRemoteAttachment(bytes);
300
- if (ret[2]) {
301
- throw takeFromExternrefTable0(ret[1]);
302
- }
303
- return MultiRemoteAttachment.__wrap(ret[0]);
304
- }
305
-
306
347
  /**
307
348
  * @param {Reaction} reaction
308
349
  * @returns {Uint8Array}
@@ -329,62 +370,29 @@ export function decodeReaction(bytes) {
329
370
  return Reaction.__wrap(ret[0]);
330
371
  }
331
372
 
332
- function passArray8ToWasm0(arg, malloc) {
333
- const ptr = malloc(arg.length * 1, 1) >>> 0;
334
- getUint8ArrayMemory0().set(arg, ptr / 1);
335
- WASM_VECTOR_LEN = arg.length;
336
- return ptr;
337
- }
338
- /**
339
- * @param {string} host
340
- * @param {Identifier} accountIdentifier
341
- * @returns {Promise<string | undefined>}
342
- */
343
- export function getInboxIdForIdentifier(host, accountIdentifier) {
344
- const ptr0 = passStringToWasm0(host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
345
- const len0 = WASM_VECTOR_LEN;
346
- const ret = wasm.getInboxIdForIdentifier(ptr0, len0, accountIdentifier);
347
- return ret;
373
+ function __wbg_adapter_50(arg0, arg1) {
374
+ wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h6040dd5f55152215(arg0, arg1);
348
375
  }
349
376
 
350
- /**
351
- * @param {Identifier} accountIdentifier
352
- * @returns {string}
353
- */
354
- export function generateInboxId(accountIdentifier) {
355
- let deferred2_0;
356
- let deferred2_1;
357
- try {
358
- const ret = wasm.generateInboxId(accountIdentifier);
359
- var ptr1 = ret[0];
360
- var len1 = ret[1];
361
- if (ret[3]) {
362
- ptr1 = 0; len1 = 0;
363
- throw takeFromExternrefTable0(ret[2]);
364
- }
365
- deferred2_0 = ptr1;
366
- deferred2_1 = len1;
367
- return getStringFromWasm0(ptr1, len1);
368
- } finally {
369
- wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
370
- }
377
+ function __wbg_adapter_53(arg0, arg1) {
378
+ wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h9b134efb6b08a208(arg0, arg1);
371
379
  }
372
380
 
373
- function __wbg_adapter_50(arg0, arg1) {
374
- wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h956eec367a7720a2(arg0, arg1);
381
+ function __wbg_adapter_56(arg0, arg1, arg2) {
382
+ wasm.closure3985_externref_shim(arg0, arg1, arg2);
375
383
  }
376
384
 
377
- function __wbg_adapter_53(arg0, arg1, arg2) {
378
- wasm.closure3889_externref_shim(arg0, arg1, arg2);
385
+ function __wbg_adapter_59(arg0, arg1) {
386
+ wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h0f45197f24caef5a(arg0, arg1);
379
387
  }
380
388
 
381
- function __wbg_adapter_620(arg0, arg1, arg2, arg3, arg4) {
382
- const ret = wasm.closure4898_externref_shim(arg0, arg1, arg2, arg3, arg4);
389
+ function __wbg_adapter_640(arg0, arg1, arg2, arg3, arg4) {
390
+ const ret = wasm.closure4878_externref_shim(arg0, arg1, arg2, arg3, arg4);
383
391
  return ret !== 0;
384
392
  }
385
393
 
386
- function __wbg_adapter_721(arg0, arg1, arg2, arg3) {
387
- wasm.closure4892_externref_shim(arg0, arg1, arg2, arg3);
394
+ function __wbg_adapter_741(arg0, arg1, arg2, arg3) {
395
+ wasm.closure4877_externref_shim(arg0, arg1, arg2, arg3);
388
396
  }
389
397
 
390
398
  /**
@@ -987,7 +995,7 @@ export class ContentTypeId {
987
995
  set authorityId(arg0) {
988
996
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
989
997
  const len0 = WASM_VECTOR_LEN;
990
- wasm.__wbg_set_contenttypeid_authorityId(this.__wbg_ptr, ptr0, len0);
998
+ wasm.__wbg_set_consent_entity(this.__wbg_ptr, ptr0, len0);
991
999
  }
992
1000
  /**
993
1001
  * @returns {string}
@@ -4392,6 +4400,9 @@ function __wbg_get_imports() {
4392
4400
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
4393
4401
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
4394
4402
  };
4403
+ imports.wbg.__wbg_abort_410ec47a64ac6117 = function(arg0, arg1) {
4404
+ arg0.abort(arg1);
4405
+ };
4395
4406
  imports.wbg.__wbg_abort_775ef1d17fc65868 = function(arg0) {
4396
4407
  arg0.abort();
4397
4408
  };
@@ -4454,6 +4465,14 @@ function __wbg_get_imports() {
4454
4465
  const ret = clearTimeout(arg0);
4455
4466
  return ret;
4456
4467
  };
4468
+ imports.wbg.__wbg_clearTimeout_86721db0036bea98 = function(arg0) {
4469
+ const ret = clearTimeout(arg0);
4470
+ return ret;
4471
+ };
4472
+ imports.wbg.__wbg_clearTimeout_96804de0ab838f26 = function(arg0) {
4473
+ const ret = clearTimeout(arg0);
4474
+ return ret;
4475
+ };
4457
4476
  imports.wbg.__wbg_clear_1f96150ecf4061a6 = function(arg0) {
4458
4477
  arg0.clear();
4459
4478
  };
@@ -4554,7 +4573,7 @@ function __wbg_get_imports() {
4554
4573
  const a = state0.a;
4555
4574
  state0.a = 0;
4556
4575
  try {
4557
- return __wbg_adapter_620(a, state0.b, arg0, arg1, arg2);
4576
+ return __wbg_adapter_640(a, state0.b, arg0, arg1, arg2);
4558
4577
  } finally {
4559
4578
  state0.a = a;
4560
4579
  }
@@ -4565,14 +4584,14 @@ function __wbg_get_imports() {
4565
4584
  state0.a = state0.b = 0;
4566
4585
  }
4567
4586
  };
4568
- imports.wbg.__wbg_fetch_4465c2b10f21a927 = function(arg0) {
4569
- const ret = fetch(arg0);
4570
- return ret;
4571
- };
4572
4587
  imports.wbg.__wbg_fetch_509096533071c657 = function(arg0, arg1) {
4573
4588
  const ret = arg0.fetch(arg1);
4574
4589
  return ret;
4575
4590
  };
4591
+ imports.wbg.__wbg_fetch_d36a73832f0a45e8 = function(arg0) {
4592
+ const ret = fetch(arg0);
4593
+ return ret;
4594
+ };
4576
4595
  imports.wbg.__wbg_fill_3311db9cdf18c6c4 = function(arg0, arg1, arg2, arg3) {
4577
4596
  const ret = arg0.fill(arg1, arg2 >>> 0, arg3 >>> 0);
4578
4597
  return ret;
@@ -4584,7 +4603,7 @@ function __wbg_get_imports() {
4584
4603
  const a = state0.a;
4585
4604
  state0.a = 0;
4586
4605
  try {
4587
- return __wbg_adapter_620(a, state0.b, arg0, arg1, arg2);
4606
+ return __wbg_adapter_640(a, state0.b, arg0, arg1, arg2);
4588
4607
  } finally {
4589
4608
  state0.a = a;
4590
4609
  }
@@ -4638,6 +4657,9 @@ function __wbg_get_imports() {
4638
4657
  const ret = arg0.getMonth();
4639
4658
  return ret;
4640
4659
  };
4660
+ imports.wbg.__wbg_getRandomValues_21a0191e74d0e1d3 = function() { return handleError(function (arg0, arg1) {
4661
+ globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
4662
+ }, arguments) };
4641
4663
  imports.wbg.__wbg_getRandomValues_bcb4912f16000dc4 = function() { return handleError(function (arg0, arg1) {
4642
4664
  arg0.getRandomValues(arg1);
4643
4665
  }, arguments) };
@@ -4751,6 +4773,16 @@ function __wbg_get_imports() {
4751
4773
  const ret = result;
4752
4774
  return ret;
4753
4775
  };
4776
+ imports.wbg.__wbg_instanceof_Performance_0ac1286c87171f57 = function(arg0) {
4777
+ let result;
4778
+ try {
4779
+ result = arg0 instanceof Performance;
4780
+ } catch (_) {
4781
+ result = false;
4782
+ }
4783
+ const ret = result;
4784
+ return ret;
4785
+ };
4754
4786
  imports.wbg.__wbg_instanceof_Response_f2cc20d9f7dfd644 = function(arg0) {
4755
4787
  let result;
4756
4788
  try {
@@ -4896,7 +4928,7 @@ function __wbg_get_imports() {
4896
4928
  const a = state0.a;
4897
4929
  state0.a = 0;
4898
4930
  try {
4899
- return __wbg_adapter_721(a, state0.b, arg0, arg1);
4931
+ return __wbg_adapter_741(a, state0.b, arg0, arg1);
4900
4932
  } finally {
4901
4933
  state0.a = a;
4902
4934
  }
@@ -5107,10 +5139,18 @@ function __wbg_get_imports() {
5107
5139
  const ret = setInterval(arg0, arg1);
5108
5140
  return ret;
5109
5141
  }, arguments) };
5142
+ imports.wbg.__wbg_setTimeout_2e707715f8cc9497 = function(arg0, arg1) {
5143
+ const ret = setTimeout(arg0, arg1);
5144
+ return ret;
5145
+ };
5110
5146
  imports.wbg.__wbg_setTimeout_db2dbaeefb6f39c7 = function() { return handleError(function (arg0, arg1) {
5111
5147
  const ret = setTimeout(arg0, arg1);
5112
5148
  return ret;
5113
5149
  }, arguments) };
5150
+ imports.wbg.__wbg_setTimeout_eefe7f4c234b0c6b = function() { return handleError(function (arg0, arg1) {
5151
+ const ret = setTimeout(arg0, arg1);
5152
+ return ret;
5153
+ }, arguments) };
5114
5154
  imports.wbg.__wbg_setUint32_ad8826b8caeaf63d = function(arg0, arg1, arg2) {
5115
5155
  arg0.setUint32(arg1 >>> 0, arg2 >>> 0);
5116
5156
  };
@@ -5303,12 +5343,20 @@ function __wbg_get_imports() {
5303
5343
  const ret = false;
5304
5344
  return ret;
5305
5345
  };
5306
- imports.wbg.__wbindgen_closure_wrapper16552 = function(arg0, arg1, arg2) {
5307
- const ret = makeMutClosure(arg0, arg1, 3818, __wbg_adapter_50);
5346
+ imports.wbg.__wbindgen_closure_wrapper15248 = function(arg0, arg1, arg2) {
5347
+ const ret = makeMutClosure(arg0, arg1, 3651, __wbg_adapter_50);
5348
+ return ret;
5349
+ };
5350
+ imports.wbg.__wbindgen_closure_wrapper15390 = function(arg0, arg1, arg2) {
5351
+ const ret = makeMutClosure(arg0, arg1, 3674, __wbg_adapter_53);
5352
+ return ret;
5353
+ };
5354
+ imports.wbg.__wbindgen_closure_wrapper18399 = function(arg0, arg1, arg2) {
5355
+ const ret = makeMutClosure(arg0, arg1, 3986, __wbg_adapter_56);
5308
5356
  return ret;
5309
5357
  };
5310
- imports.wbg.__wbindgen_closure_wrapper16863 = function(arg0, arg1, arg2) {
5311
- const ret = makeMutClosure(arg0, arg1, 3890, __wbg_adapter_53);
5358
+ imports.wbg.__wbindgen_closure_wrapper18518 = function(arg0, arg1, arg2) {
5359
+ const ret = makeMutClosure(arg0, arg1, 4000, __wbg_adapter_59);
5312
5360
  return ret;
5313
5361
  };
5314
5362
  imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
Binary file
@@ -1,6 +1,32 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export const memory: WebAssembly.Memory;
4
+ export const __wbg_streamcloser_free: (a: number, b: number) => void;
5
+ export const streamcloser_end: (a: number) => void;
6
+ export const streamcloser_endAndWait: (a: number) => any;
7
+ export const streamcloser_waitForReady: (a: number) => any;
8
+ export const streamcloser_isClosed: (a: number) => number;
9
+ export const __wbg_permissionpolicyset_free: (a: number, b: number) => void;
10
+ export const __wbg_get_permissionpolicyset_addMemberPolicy: (a: number) => number;
11
+ export const __wbg_set_permissionpolicyset_addMemberPolicy: (a: number, b: number) => void;
12
+ export const __wbg_get_permissionpolicyset_removeMemberPolicy: (a: number) => number;
13
+ export const __wbg_set_permissionpolicyset_removeMemberPolicy: (a: number, b: number) => void;
14
+ export const __wbg_get_permissionpolicyset_addAdminPolicy: (a: number) => number;
15
+ export const __wbg_set_permissionpolicyset_addAdminPolicy: (a: number, b: number) => void;
16
+ export const __wbg_get_permissionpolicyset_removeAdminPolicy: (a: number) => number;
17
+ export const __wbg_set_permissionpolicyset_removeAdminPolicy: (a: number, b: number) => void;
18
+ export const __wbg_get_permissionpolicyset_updateGroupNamePolicy: (a: number) => number;
19
+ export const __wbg_set_permissionpolicyset_updateGroupNamePolicy: (a: number, b: number) => void;
20
+ export const __wbg_get_permissionpolicyset_updateGroupDescriptionPolicy: (a: number) => number;
21
+ export const __wbg_set_permissionpolicyset_updateGroupDescriptionPolicy: (a: number, b: number) => void;
22
+ export const __wbg_get_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number) => number;
23
+ export const __wbg_set_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number, b: number) => void;
24
+ export const __wbg_get_permissionpolicyset_updateMessageDisappearingPolicy: (a: number) => number;
25
+ export const __wbg_set_permissionpolicyset_updateMessageDisappearingPolicy: (a: number, b: number) => void;
26
+ export const permissionpolicyset_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
27
+ export const __wbg_grouppermissions_free: (a: number, b: number) => void;
28
+ export const grouppermissions_policyType: (a: number) => [number, number, number];
29
+ export const grouppermissions_policySet: (a: number) => [number, number, number];
4
30
  export const __wbg_consent_free: (a: number, b: number) => void;
5
31
  export const __wbg_get_consent_entityType: (a: number) => number;
6
32
  export const __wbg_set_consent_entityType: (a: number, b: number) => void;
@@ -67,6 +93,41 @@ export const conversation_removeMessageDisappearingSettings: (a: number) => any;
67
93
  export const conversation_messageDisappearingSettings: (a: number) => [number, number, number];
68
94
  export const conversation_isMessageDisappearingEnabled: (a: number) => [number, number, number];
69
95
  export const conversation_getHmacKeys: (a: number) => [number, number, number];
96
+ export const __wbg_contenttypeid_free: (a: number, b: number) => void;
97
+ export const __wbg_get_contenttypeid_typeId: (a: number) => [number, number];
98
+ export const __wbg_set_contenttypeid_typeId: (a: number, b: number, c: number) => void;
99
+ export const __wbg_get_contenttypeid_versionMajor: (a: number) => number;
100
+ export const __wbg_set_contenttypeid_versionMajor: (a: number, b: number) => void;
101
+ export const __wbg_get_contenttypeid_versionMinor: (a: number) => number;
102
+ export const __wbg_set_contenttypeid_versionMinor: (a: number, b: number) => void;
103
+ export const contenttypeid_new: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
104
+ export const __wbg_encodedcontent_free: (a: number, b: number) => void;
105
+ export const __wbg_get_encodedcontent_type: (a: number) => number;
106
+ export const __wbg_set_encodedcontent_type: (a: number, b: number) => void;
107
+ export const __wbg_get_encodedcontent_parameters: (a: number) => any;
108
+ export const __wbg_set_encodedcontent_parameters: (a: number, b: any) => void;
109
+ export const __wbg_get_encodedcontent_fallback: (a: number) => [number, number];
110
+ export const __wbg_set_encodedcontent_fallback: (a: number, b: number, c: number) => void;
111
+ export const __wbg_get_encodedcontent_compression: (a: number) => number;
112
+ export const __wbg_set_encodedcontent_compression: (a: number, b: number) => void;
113
+ export const __wbg_get_encodedcontent_content: (a: number) => any;
114
+ export const __wbg_set_encodedcontent_content: (a: number, b: any) => void;
115
+ export const encodedcontent_new: (a: number, b: any, c: number, d: number, e: number, f: any) => number;
116
+ export const getInboxIdForIdentifier: (a: number, b: number, c: any) => any;
117
+ export const generateInboxId: (a: any) => [number, number, number, number];
118
+ export const __wbg_opfs_free: (a: number, b: number) => void;
119
+ export const opfs_init_sqlite_opfs: () => any;
120
+ export const opfs_exists: () => number;
121
+ export const opfs_error: () => [number, number];
122
+ export const opfs_wipeFiles: () => any;
123
+ export const opfs_rm: (a: number, b: number) => [number, number, number];
124
+ export const opfs_getFileNames: () => [number, number];
125
+ export const opfs_importDb: (a: number, b: number, c: number, d: number) => [number, number];
126
+ export const opfs_exportFile: (a: number, b: number) => [number, number, number, number];
127
+ export const opfs_getFileCount: () => number;
128
+ export const opfs_getCapacity: () => number;
129
+ export const opfs_addCapacity: (a: number) => any;
130
+ export const opfs_reduceCapacity: (a: number) => any;
70
131
  export const verifySignedWithPublicKey: (a: number, b: number, c: any, d: any) => [number, number];
71
132
  export const __wbg_passkeysignature_free: (a: number, b: number) => void;
72
133
  export const client_createInboxSignatureText: (a: number) => [number, number, number, number];
@@ -82,34 +143,9 @@ export const client_applySignatureRequests: (a: number) => any;
82
143
  export const client_signWithInstallationKey: (a: number, b: number, c: number) => [number, number, number];
83
144
  export const client_verifySignedWithInstallationKey: (a: number, b: number, c: number, d: any) => [number, number];
84
145
  export const __wbg_set_groupmember_inboxId: (a: number, b: number, c: number) => void;
146
+ export const __wbg_set_contenttypeid_authorityId: (a: number, b: number, c: number) => void;
85
147
  export const __wbg_get_groupmember_inboxId: (a: number) => [number, number];
86
- export const __wbg_streamcloser_free: (a: number, b: number) => void;
87
- export const streamcloser_end: (a: number) => void;
88
- export const streamcloser_endAndWait: (a: number) => any;
89
- export const streamcloser_waitForReady: (a: number) => any;
90
- export const streamcloser_isClosed: (a: number) => number;
91
- export const __wbg_client_free: (a: number, b: number) => void;
92
- export const __wbg_logoptions_free: (a: number, b: number) => void;
93
- export const __wbg_get_logoptions_structured: (a: number) => number;
94
- export const __wbg_set_logoptions_structured: (a: number, b: number) => void;
95
- export const __wbg_get_logoptions_performance: (a: number) => number;
96
- export const __wbg_set_logoptions_performance: (a: number, b: number) => void;
97
- export const __wbg_get_logoptions_level: (a: number) => number;
98
- export const __wbg_set_logoptions_level: (a: number, b: number) => void;
99
- export const logoptions_new: (a: number, b: number, c: number) => number;
100
- 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) => any;
101
- export const client_accountIdentifier: (a: number) => any;
102
- export const client_inboxId: (a: number) => [number, number];
103
- export const client_isRegistered: (a: number) => number;
104
- export const client_installationId: (a: number) => [number, number];
105
- export const client_installationIdBytes: (a: number) => any;
106
- export const client_canMessage: (a: number, b: number, c: number) => any;
107
- export const client_registerIdentity: (a: number) => any;
108
- export const client_sendHistorySyncRequest: (a: number) => any;
109
- export const client_sendConsentSyncRequest: (a: number) => any;
110
- export const client_findInboxIdByIdentifier: (a: number, b: any) => any;
111
- export const client_inboxStateFromInboxIds: (a: number, b: number, c: number, d: number) => any;
112
- export const client_conversations: (a: number) => number;
148
+ export const __wbg_get_contenttypeid_authorityId: (a: number) => [number, number];
113
149
  export const __wbg_remoteattachmentinfo_free: (a: number, b: number) => void;
114
150
  export const __wbg_get_remoteattachmentinfo_secret: (a: number) => any;
115
151
  export const __wbg_set_remoteattachmentinfo_secret: (a: number, b: any) => void;
@@ -117,6 +153,7 @@ export const __wbg_get_remoteattachmentinfo_contentDigest: (a: number) => [numbe
117
153
  export const __wbg_set_remoteattachmentinfo_contentDigest: (a: number, b: number, c: number) => void;
118
154
  export const __wbg_get_remoteattachmentinfo_nonce: (a: number) => any;
119
155
  export const __wbg_set_remoteattachmentinfo_nonce: (a: number, b: any) => void;
156
+ export const __wbg_get_remoteattachmentinfo_scheme: (a: number) => [number, number];
120
157
  export const __wbg_set_remoteattachmentinfo_scheme: (a: number, b: number, c: number) => void;
121
158
  export const __wbg_get_remoteattachmentinfo_url: (a: number) => [number, number];
122
159
  export const __wbg_set_remoteattachmentinfo_url: (a: number, b: number, c: number) => void;
@@ -133,73 +170,6 @@ export const __wbg_set_multiremoteattachment_attachments: (a: number, b: number,
133
170
  export const multiremoteattachment_new: (a: number, b: number) => number;
134
171
  export const encodeMultiRemoteAttachment: (a: number) => [number, number, number];
135
172
  export const decodeMultiRemoteAttachment: (a: any) => [number, number, number];
136
- export const __wbg_reaction_free: (a: number, b: number) => void;
137
- export const __wbg_get_reaction_referenceInboxId: (a: number) => [number, number];
138
- export const __wbg_set_reaction_referenceInboxId: (a: number, b: number, c: number) => void;
139
- export const __wbg_get_reaction_action: (a: number) => number;
140
- export const __wbg_set_reaction_action: (a: number, b: number) => void;
141
- export const __wbg_get_reaction_content: (a: number) => [number, number];
142
- export const __wbg_set_reaction_content: (a: number, b: number, c: number) => void;
143
- export const __wbg_get_reaction_schema: (a: number) => number;
144
- export const __wbg_set_reaction_schema: (a: number, b: number) => void;
145
- export const reaction_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
146
- export const encodeReaction: (a: number) => [number, number, number];
147
- export const decodeReaction: (a: any) => [number, number, number];
148
- export const __wbg_installation_free: (a: number, b: number) => void;
149
- export const __wbg_get_installation_bytes: (a: number) => any;
150
- export const __wbg_set_installation_bytes: (a: number, b: any) => void;
151
- export const __wbg_get_installation_id: (a: number) => [number, number];
152
- export const __wbg_set_installation_id: (a: number, b: number, c: number) => void;
153
- export const __wbg_get_installation_clientTimestampNs: (a: number) => [number, bigint];
154
- export const __wbg_set_installation_clientTimestampNs: (a: number, b: number, c: bigint) => void;
155
- export const installation_new: (a: any, b: number, c: number, d: number, e: bigint) => number;
156
- export const __wbg_inboxstate_free: (a: number, b: number) => void;
157
- export const __wbg_get_inboxstate_inboxId: (a: number) => [number, number];
158
- export const __wbg_set_inboxstate_inboxId: (a: number, b: number, c: number) => void;
159
- export const __wbg_get_inboxstate_recoveryIdentifier: (a: number) => any;
160
- export const __wbg_set_inboxstate_recoveryIdentifier: (a: number, b: any) => void;
161
- export const __wbg_get_inboxstate_installations: (a: number) => [number, number];
162
- export const __wbg_set_inboxstate_installations: (a: number, b: number, c: number) => void;
163
- export const __wbg_get_inboxstate_accountIdentifiers: (a: number) => [number, number];
164
- export const __wbg_set_inboxstate_accountIdentifiers: (a: number, b: number, c: number) => void;
165
- export const inboxstate_new: (a: number, b: number, c: any, d: number, e: number, f: number, g: number) => number;
166
- export const __wbg_keypackagestatus_free: (a: number, b: number) => void;
167
- export const __wbg_get_keypackagestatus_lifetime: (a: number) => number;
168
- export const __wbg_set_keypackagestatus_lifetime: (a: number, b: number) => void;
169
- export const __wbg_get_keypackagestatus_validationError: (a: number) => [number, number];
170
- export const __wbg_set_keypackagestatus_validationError: (a: number, b: number, c: number) => void;
171
- export const __wbg_lifetime_free: (a: number, b: number) => void;
172
- export const __wbg_get_lifetime_not_before: (a: number) => bigint;
173
- export const __wbg_set_lifetime_not_before: (a: number, b: bigint) => void;
174
- export const __wbg_get_lifetime_not_after: (a: number) => bigint;
175
- export const __wbg_set_lifetime_not_after: (a: number, b: bigint) => void;
176
- export const client_inboxState: (a: number, b: number) => any;
177
- export const client_getLatestInboxState: (a: number, b: number, c: number) => any;
178
- export const client_getKeyPackageStatusesForInstallationIds: (a: number, b: number, c: number) => any;
179
- export const __wbg_set_reaction_reference: (a: number, b: number, c: number) => void;
180
- export const __wbg_get_remoteattachmentinfo_scheme: (a: number) => [number, number];
181
- export const __wbg_get_reaction_reference: (a: number) => [number, number];
182
- export const __wbg_permissionpolicyset_free: (a: number, b: number) => void;
183
- export const __wbg_get_permissionpolicyset_addMemberPolicy: (a: number) => number;
184
- export const __wbg_set_permissionpolicyset_addMemberPolicy: (a: number, b: number) => void;
185
- export const __wbg_get_permissionpolicyset_removeMemberPolicy: (a: number) => number;
186
- export const __wbg_set_permissionpolicyset_removeMemberPolicy: (a: number, b: number) => void;
187
- export const __wbg_get_permissionpolicyset_addAdminPolicy: (a: number) => number;
188
- export const __wbg_set_permissionpolicyset_addAdminPolicy: (a: number, b: number) => void;
189
- export const __wbg_get_permissionpolicyset_removeAdminPolicy: (a: number) => number;
190
- export const __wbg_set_permissionpolicyset_removeAdminPolicy: (a: number, b: number) => void;
191
- export const __wbg_get_permissionpolicyset_updateGroupNamePolicy: (a: number) => number;
192
- export const __wbg_set_permissionpolicyset_updateGroupNamePolicy: (a: number, b: number) => void;
193
- export const __wbg_get_permissionpolicyset_updateGroupDescriptionPolicy: (a: number) => number;
194
- export const __wbg_set_permissionpolicyset_updateGroupDescriptionPolicy: (a: number, b: number) => void;
195
- export const __wbg_get_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number) => number;
196
- export const __wbg_set_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number, b: number) => void;
197
- export const __wbg_get_permissionpolicyset_updateMessageDisappearingPolicy: (a: number) => number;
198
- export const __wbg_set_permissionpolicyset_updateMessageDisappearingPolicy: (a: number, b: number) => void;
199
- export const permissionpolicyset_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
200
- export const __wbg_grouppermissions_free: (a: number, b: number) => void;
201
- export const grouppermissions_policyType: (a: number) => [number, number, number];
202
- export const grouppermissions_policySet: (a: number) => [number, number, number];
203
173
  export const __wbg_listconversationsoptions_free: (a: number, b: number) => void;
204
174
  export const __wbg_get_listconversationsoptions_consentStates: (a: number) => [number, number];
205
175
  export const __wbg_set_listconversationsoptions_consentStates: (a: number, b: number, c: number) => void;
@@ -263,30 +233,6 @@ export const conversations_streamDms: (a: number, b: any) => [number, number, nu
263
233
  export const conversations_streamAllMessages: (a: number, b: any, c: number) => [number, number, number];
264
234
  export const conversations_streamConsent: (a: number, b: any) => [number, number, number];
265
235
  export const conversations_streamPreferences: (a: number, b: any) => [number, number, number];
266
- export const __wbg_contenttypeid_free: (a: number, b: number) => void;
267
- export const __wbg_get_contenttypeid_authorityId: (a: number) => [number, number];
268
- export const __wbg_set_contenttypeid_authorityId: (a: number, b: number, c: number) => void;
269
- export const __wbg_get_contenttypeid_typeId: (a: number) => [number, number];
270
- export const __wbg_set_contenttypeid_typeId: (a: number, b: number, c: number) => void;
271
- export const __wbg_get_contenttypeid_versionMajor: (a: number) => number;
272
- export const __wbg_set_contenttypeid_versionMajor: (a: number, b: number) => void;
273
- export const __wbg_get_contenttypeid_versionMinor: (a: number) => number;
274
- export const __wbg_set_contenttypeid_versionMinor: (a: number, b: number) => void;
275
- export const contenttypeid_new: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
276
- export const __wbg_encodedcontent_free: (a: number, b: number) => void;
277
- export const __wbg_get_encodedcontent_type: (a: number) => number;
278
- export const __wbg_set_encodedcontent_type: (a: number, b: number) => void;
279
- export const __wbg_get_encodedcontent_parameters: (a: number) => any;
280
- export const __wbg_set_encodedcontent_parameters: (a: number, b: any) => void;
281
- export const __wbg_get_encodedcontent_fallback: (a: number) => [number, number];
282
- export const __wbg_set_encodedcontent_fallback: (a: number, b: number, c: number) => void;
283
- export const __wbg_get_encodedcontent_compression: (a: number) => number;
284
- export const __wbg_set_encodedcontent_compression: (a: number, b: number) => void;
285
- export const __wbg_get_encodedcontent_content: (a: number) => any;
286
- export const __wbg_set_encodedcontent_content: (a: number, b: any) => void;
287
- export const encodedcontent_new: (a: number, b: any, c: number, d: number, e: number, f: any) => number;
288
- export const getInboxIdForIdentifier: (a: number, b: number, c: any) => any;
289
- export const generateInboxId: (a: any) => [number, number, number, number];
290
236
  export const __wbg_listmessagesoptions_free: (a: number, b: number) => void;
291
237
  export const __wbg_get_listmessagesoptions_contentTypes: (a: number) => [number, number];
292
238
  export const __wbg_set_listmessagesoptions_contentTypes: (a: number, b: number, c: number) => void;
@@ -314,38 +260,92 @@ export const __wbg_get_messagewithreactions_message: (a: number) => number;
314
260
  export const __wbg_set_messagewithreactions_message: (a: number, b: number) => void;
315
261
  export const __wbg_get_messagewithreactions_reactions: (a: number) => [number, number];
316
262
  export const __wbg_set_messagewithreactions_reactions: (a: number, b: number, c: number) => void;
317
- export const __wbg_opfs_free: (a: number, b: number) => void;
318
- export const opfs_init_sqlite_opfs: () => any;
319
- export const opfs_exists: () => number;
320
- export const opfs_error: () => [number, number];
321
- export const opfs_wipeFiles: () => any;
322
- export const opfs_rm: (a: number, b: number) => [number, number, number];
323
- export const opfs_getFileNames: () => [number, number];
324
- export const opfs_importDb: (a: number, b: number, c: number, d: number) => [number, number];
325
- export const opfs_exportFile: (a: number, b: number) => [number, number, number, number];
326
- export const opfs_getFileCount: () => number;
327
- export const opfs_getCapacity: () => number;
328
- export const opfs_addCapacity: (a: number) => any;
329
- export const opfs_reduceCapacity: (a: number) => any;
330
263
  export const __wbg_get_messagedisappearingsettings_fromNs: (a: number) => bigint;
331
264
  export const __wbg_get_message_sentAtNs: (a: number) => bigint;
332
265
  export const __wbg_set_listmessagesoptions_sentBeforeNs: (a: number, b: number, c: bigint) => void;
333
266
  export const __wbg_set_listmessagesoptions_sentAfterNs: (a: number, b: number, c: bigint) => void;
334
267
  export const __wbg_set_listmessagesoptions_limit: (a: number, b: number, c: bigint) => void;
268
+ export const __wbg_get_creategroupoptions_messageDisappearingSettings: (a: number) => number;
335
269
  export const __wbg_set_messagedisappearingsettings_fromNs: (a: number, b: bigint) => void;
336
270
  export const __wbg_set_message_sentAtNs: (a: number, b: bigint) => void;
337
271
  export const __wbg_set_creategroupoptions_messageDisappearingSettings: (a: number, b: number) => void;
338
- export const __wbg_get_creategroupoptions_messageDisappearingSettings: (a: number) => number;
339
272
  export const __wbg_get_listmessagesoptions_sentBeforeNs: (a: number) => [number, bigint];
340
273
  export const __wbg_get_listmessagesoptions_sentAfterNs: (a: number) => [number, bigint];
341
274
  export const __wbg_get_listmessagesoptions_limit: (a: number) => [number, bigint];
275
+ export const __wbg_client_free: (a: number, b: number) => void;
276
+ export const __wbg_logoptions_free: (a: number, b: number) => void;
277
+ export const __wbg_get_logoptions_structured: (a: number) => number;
278
+ export const __wbg_set_logoptions_structured: (a: number, b: number) => void;
279
+ export const __wbg_get_logoptions_performance: (a: number) => number;
280
+ export const __wbg_set_logoptions_performance: (a: number, b: number) => void;
281
+ export const __wbg_get_logoptions_level: (a: number) => number;
282
+ export const __wbg_set_logoptions_level: (a: number, b: number) => void;
283
+ export const logoptions_new: (a: number, b: number, c: number) => number;
284
+ 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) => any;
285
+ export const client_accountIdentifier: (a: number) => any;
286
+ export const client_inboxId: (a: number) => [number, number];
287
+ export const client_isRegistered: (a: number) => number;
288
+ export const client_installationId: (a: number) => [number, number];
289
+ export const client_installationIdBytes: (a: number) => any;
290
+ export const client_canMessage: (a: number, b: number, c: number) => any;
291
+ export const client_registerIdentity: (a: number) => any;
292
+ export const client_sendHistorySyncRequest: (a: number) => any;
293
+ export const client_sendConsentSyncRequest: (a: number) => any;
294
+ export const client_findInboxIdByIdentifier: (a: number, b: any) => any;
295
+ export const client_inboxStateFromInboxIds: (a: number, b: number, c: number, d: number) => any;
296
+ export const client_conversations: (a: number) => number;
297
+ export const __wbg_reaction_free: (a: number, b: number) => void;
298
+ export const __wbg_get_reaction_referenceInboxId: (a: number) => [number, number];
299
+ export const __wbg_set_reaction_referenceInboxId: (a: number, b: number, c: number) => void;
300
+ export const __wbg_get_reaction_action: (a: number) => number;
301
+ export const __wbg_set_reaction_action: (a: number, b: number) => void;
302
+ export const __wbg_get_reaction_content: (a: number) => [number, number];
303
+ export const __wbg_set_reaction_content: (a: number, b: number, c: number) => void;
304
+ export const __wbg_get_reaction_schema: (a: number) => number;
305
+ export const __wbg_set_reaction_schema: (a: number, b: number) => void;
306
+ export const reaction_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
307
+ export const encodeReaction: (a: number) => [number, number, number];
308
+ export const decodeReaction: (a: any) => [number, number, number];
309
+ export const __wbg_installation_free: (a: number, b: number) => void;
310
+ export const __wbg_get_installation_bytes: (a: number) => any;
311
+ export const __wbg_set_installation_bytes: (a: number, b: any) => void;
312
+ export const __wbg_get_installation_id: (a: number) => [number, number];
313
+ export const __wbg_set_installation_id: (a: number, b: number, c: number) => void;
314
+ export const __wbg_get_installation_clientTimestampNs: (a: number) => [number, bigint];
315
+ export const __wbg_set_installation_clientTimestampNs: (a: number, b: number, c: bigint) => void;
316
+ export const installation_new: (a: any, b: number, c: number, d: number, e: bigint) => number;
317
+ export const __wbg_inboxstate_free: (a: number, b: number) => void;
318
+ export const __wbg_get_inboxstate_inboxId: (a: number) => [number, number];
319
+ export const __wbg_set_inboxstate_inboxId: (a: number, b: number, c: number) => void;
320
+ export const __wbg_get_inboxstate_recoveryIdentifier: (a: number) => any;
321
+ export const __wbg_set_inboxstate_recoveryIdentifier: (a: number, b: any) => void;
322
+ export const __wbg_get_inboxstate_installations: (a: number) => [number, number];
323
+ export const __wbg_set_inboxstate_installations: (a: number, b: number, c: number) => void;
324
+ export const __wbg_get_inboxstate_accountIdentifiers: (a: number) => [number, number];
325
+ export const __wbg_set_inboxstate_accountIdentifiers: (a: number, b: number, c: number) => void;
326
+ export const inboxstate_new: (a: number, b: number, c: any, d: number, e: number, f: number, g: number) => number;
327
+ export const __wbg_keypackagestatus_free: (a: number, b: number) => void;
328
+ export const __wbg_get_keypackagestatus_lifetime: (a: number) => number;
329
+ export const __wbg_set_keypackagestatus_lifetime: (a: number, b: number) => void;
330
+ export const __wbg_get_keypackagestatus_validationError: (a: number) => [number, number];
331
+ export const __wbg_set_keypackagestatus_validationError: (a: number, b: number, c: number) => void;
332
+ export const __wbg_lifetime_free: (a: number, b: number) => void;
333
+ export const __wbg_get_lifetime_not_before: (a: number) => bigint;
334
+ export const __wbg_set_lifetime_not_before: (a: number, b: bigint) => void;
335
+ export const __wbg_get_lifetime_not_after: (a: number) => bigint;
336
+ export const __wbg_set_lifetime_not_after: (a: number, b: bigint) => void;
337
+ export const client_inboxState: (a: number, b: number) => any;
338
+ export const client_getLatestInboxState: (a: number, b: number, c: number) => any;
339
+ export const client_getKeyPackageStatusesForInstallationIds: (a: number, b: number, c: number) => any;
340
+ export const __wbg_set_reaction_reference: (a: number, b: number, c: number) => void;
341
+ export const __wbg_get_reaction_reference: (a: number) => [number, number];
342
342
  export const rust_sqlite_wasm_shim_localtime_js: (a: bigint, b: number) => void;
343
343
  export const rust_sqlite_wasm_shim_tzset_js: (a: number, b: number, c: number, d: number) => void;
344
344
  export const rust_sqlite_wasm_shim_emscripten_get_now: () => number;
345
- export const sqlite3_os_init: () => number;
346
345
  export const rust_sqlite_wasm_shim_malloc: (a: number) => number;
347
346
  export const rust_sqlite_wasm_shim_free: (a: number) => void;
348
347
  export const rust_sqlite_wasm_shim_realloc: (a: number, b: number) => number;
348
+ export const sqlite3_os_init: () => number;
349
349
  export const __wbg_intounderlyingbytesource_free: (a: number, b: number) => void;
350
350
  export const intounderlyingbytesource_type: (a: number) => number;
351
351
  export const intounderlyingbytesource_autoAllocateChunkSize: (a: number) => number;
@@ -368,8 +368,10 @@ export const __wbindgen_free: (a: number, b: number, c: number) => void;
368
368
  export const __externref_drop_slice: (a: number, b: number) => void;
369
369
  export const __wbindgen_export_7: WebAssembly.Table;
370
370
  export const __externref_table_dealloc: (a: number) => void;
371
- export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h956eec367a7720a2: (a: number, b: number) => void;
372
- export const closure3889_externref_shim: (a: number, b: number, c: any) => void;
373
- export const closure4898_externref_shim: (a: number, b: number, c: any, d: number, e: any) => number;
374
- export const closure4892_externref_shim: (a: number, b: number, c: any, d: any) => void;
371
+ export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h6040dd5f55152215: (a: number, b: number) => void;
372
+ export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h9b134efb6b08a208: (a: number, b: number) => void;
373
+ export const closure3985_externref_shim: (a: number, b: number, c: any) => void;
374
+ export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h0f45197f24caef5a: (a: number, b: number) => void;
375
+ export const closure4878_externref_shim: (a: number, b: number, c: any, d: number, e: any) => number;
376
+ export const closure4877_externref_shim: (a: number, b: number, c: any, d: any) => void;
375
377
  export const __wbindgen_start: () => void;
package/dist/version.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "branch": "main",
3
- "version": "125e5bf",
4
- "date": "2025-04-03 18:21:44 +0000"
2
+ "branch": "1.2.0-dev.878fd38",
3
+ "version": "5d15935",
4
+ "date": "2025-04-21 19:45:41 +0000"
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xmtp/wasm-bindings",
3
- "version": "1.2.0-dev.125e5bf",
3
+ "version": "1.2.0-dev.5d15935",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "description": "WASM bindings for the libXMTP rust library",
@@ -26,7 +26,7 @@
26
26
  "scripts": {
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
- "build:web": "RUSTFLAGS=\"-Ctarget-feature=+bulk-memory,+mutable-globals\" wasm-pack build --target web --out-dir ./dist --no-pack --release",
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
30
  "build:web:macos": "CC_wasm32_unknown_unknown=/opt/homebrew/opt/llvm/bin/clang RUSTFLAGS=\"-Ctarget-feature=+bulk-memory,+mutable-globals\" wasm-pack build --target web --out-dir ./dist --no-pack --release",
31
31
  "check": "cargo check --target wasm32-unknown-unknown",
32
32
  "check:macos": "CC_wasm32_unknown_unknown=/opt/homebrew/opt/llvm/bin/clang cargo check --target wasm32-unknown-unknown",