@xmtp/wasm-bindings 1.2.0-dev.125e5bf → 1.2.0-dev.878fd38
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 +191 -189
- package/dist/bindings_wasm.js +138 -90
- package/dist/bindings_wasm_bg.wasm +0 -0
- package/dist/bindings_wasm_bg.wasm.d.ts +187 -185
- package/dist/version.json +3 -3
- package/package.json +2 -2
package/dist/bindings_wasm.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
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
3
|
export function encodeMultiRemoteAttachment(multiRemoteAttachment: MultiRemoteAttachment): Uint8Array;
|
|
6
4
|
export function decodeMultiRemoteAttachment(bytes: Uint8Array): MultiRemoteAttachment;
|
|
7
|
-
export function encodeReaction(reaction: Reaction): Uint8Array;
|
|
8
|
-
export function decodeReaction(bytes: Uint8Array): Reaction;
|
|
9
5
|
export function getInboxIdForIdentifier(host: string, accountIdentifier: Identifier): Promise<string | undefined>;
|
|
10
6
|
export function generateInboxId(accountIdentifier: Identifier): string;
|
|
7
|
+
export function verifySignedWithPublicKey(signature_text: string, signature_bytes: Uint8Array, public_key: Uint8Array): void;
|
|
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>;
|
|
9
|
+
export function encodeReaction(reaction: Reaction): Uint8Array;
|
|
10
|
+
export function decodeReaction(bytes: Uint8Array): Reaction;
|
|
11
11
|
export enum ConsentEntityType {
|
|
12
12
|
GroupId = 0,
|
|
13
13
|
InboxId = 1,
|
|
@@ -566,122 +566,12 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
|
|
|
566
566
|
|
|
567
567
|
export interface InitOutput {
|
|
568
568
|
readonly memory: WebAssembly.Memory;
|
|
569
|
-
readonly __wbg_consent_free: (a: number, b: number) => void;
|
|
570
|
-
readonly __wbg_get_consent_entityType: (a: number) => number;
|
|
571
|
-
readonly __wbg_set_consent_entityType: (a: number, b: number) => void;
|
|
572
|
-
readonly __wbg_get_consent_state: (a: number) => number;
|
|
573
|
-
readonly __wbg_set_consent_state: (a: number, b: number) => void;
|
|
574
|
-
readonly __wbg_get_consent_entity: (a: number) => [number, number];
|
|
575
|
-
readonly __wbg_set_consent_entity: (a: number, b: number, c: number) => void;
|
|
576
|
-
readonly consent_new: (a: number, b: number, c: number, d: number) => number;
|
|
577
|
-
readonly client_setConsentStates: (a: number, b: number, c: number) => any;
|
|
578
|
-
readonly client_getConsentState: (a: number, b: number, c: number, d: number) => any;
|
|
579
|
-
readonly conversation_consentState: (a: number) => [number, number, number];
|
|
580
|
-
readonly conversation_updateConsentState: (a: number, b: number) => [number, number];
|
|
581
|
-
readonly __wbg_groupmetadata_free: (a: number, b: number) => void;
|
|
582
|
-
readonly groupmetadata_creatorInboxId: (a: number) => [number, number];
|
|
583
|
-
readonly groupmetadata_conversationType: (a: number) => [number, number];
|
|
584
|
-
readonly __wbg_groupmember_free: (a: number, b: number) => void;
|
|
585
|
-
readonly __wbg_get_groupmember_accountIdentifiers: (a: number) => [number, number];
|
|
586
|
-
readonly __wbg_set_groupmember_accountIdentifiers: (a: number, b: number, c: number) => void;
|
|
587
|
-
readonly __wbg_get_groupmember_installationIds: (a: number) => [number, number];
|
|
588
|
-
readonly __wbg_set_groupmember_installationIds: (a: number, b: number, c: number) => void;
|
|
589
|
-
readonly __wbg_get_groupmember_permissionLevel: (a: number) => number;
|
|
590
|
-
readonly __wbg_set_groupmember_permissionLevel: (a: number, b: number) => void;
|
|
591
|
-
readonly __wbg_get_groupmember_consentState: (a: number) => number;
|
|
592
|
-
readonly __wbg_set_groupmember_consentState: (a: number, b: number) => void;
|
|
593
|
-
readonly groupmember_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
594
|
-
readonly __wbg_conversation_free: (a: number, b: number) => void;
|
|
595
|
-
readonly conversation_id: (a: number) => [number, number];
|
|
596
|
-
readonly conversation_send: (a: number, b: number) => any;
|
|
597
|
-
readonly conversation_sendOptimistic: (a: number, b: number) => [number, number, number, number];
|
|
598
|
-
readonly conversation_publishMessages: (a: number) => any;
|
|
599
|
-
readonly conversation_sync: (a: number) => any;
|
|
600
|
-
readonly conversation_findMessages: (a: number, b: number) => any;
|
|
601
|
-
readonly conversation_findMessagesWithReactions: (a: number, b: number) => any;
|
|
602
|
-
readonly conversation_listMembers: (a: number) => any;
|
|
603
|
-
readonly conversation_adminList: (a: number) => [number, number, number, number];
|
|
604
|
-
readonly conversation_superAdminList: (a: number) => [number, number, number, number];
|
|
605
|
-
readonly conversation_isAdmin: (a: number, b: number, c: number) => [number, number, number];
|
|
606
|
-
readonly conversation_isSuperAdmin: (a: number, b: number, c: number) => [number, number, number];
|
|
607
|
-
readonly conversation_addMembers: (a: number, b: number, c: number) => any;
|
|
608
|
-
readonly conversation_addAdmin: (a: number, b: number, c: number) => any;
|
|
609
|
-
readonly conversation_removeAdmin: (a: number, b: number, c: number) => any;
|
|
610
|
-
readonly conversation_addSuperAdmin: (a: number, b: number, c: number) => any;
|
|
611
|
-
readonly conversation_removeSuperAdmin: (a: number, b: number, c: number) => any;
|
|
612
|
-
readonly conversation_groupPermissions: (a: number) => [number, number, number];
|
|
613
|
-
readonly conversation_addMembersByInboxId: (a: number, b: number, c: number) => any;
|
|
614
|
-
readonly conversation_removeMembers: (a: number, b: number, c: number) => any;
|
|
615
|
-
readonly conversation_removeMembersByInboxId: (a: number, b: number, c: number) => any;
|
|
616
|
-
readonly conversation_updateGroupName: (a: number, b: number, c: number) => any;
|
|
617
|
-
readonly conversation_groupName: (a: number) => [number, number, number, number];
|
|
618
|
-
readonly conversation_updateGroupImageUrlSquare: (a: number, b: number, c: number) => any;
|
|
619
|
-
readonly conversation_groupImageUrlSquare: (a: number) => [number, number, number, number];
|
|
620
|
-
readonly conversation_updateGroupDescription: (a: number, b: number, c: number) => any;
|
|
621
|
-
readonly conversation_groupDescription: (a: number) => [number, number, number, number];
|
|
622
|
-
readonly conversation_stream: (a: number, b: any) => [number, number, number];
|
|
623
|
-
readonly conversation_createdAtNs: (a: number) => bigint;
|
|
624
|
-
readonly conversation_isActive: (a: number) => [number, number, number];
|
|
625
|
-
readonly conversation_pausedForVersion: (a: number) => [number, number, number, number];
|
|
626
|
-
readonly conversation_addedByInboxId: (a: number) => [number, number, number, number];
|
|
627
|
-
readonly conversation_groupMetadata: (a: number) => any;
|
|
628
|
-
readonly conversation_dmPeerInboxId: (a: number) => [number, number, number, number];
|
|
629
|
-
readonly conversation_updatePermissionPolicy: (a: number, b: number, c: number, d: number) => any;
|
|
630
|
-
readonly conversation_updateMessageDisappearingSettings: (a: number, b: number) => any;
|
|
631
|
-
readonly conversation_removeMessageDisappearingSettings: (a: number) => any;
|
|
632
|
-
readonly conversation_messageDisappearingSettings: (a: number) => [number, number, number];
|
|
633
|
-
readonly conversation_isMessageDisappearingEnabled: (a: number) => [number, number, number];
|
|
634
|
-
readonly conversation_getHmacKeys: (a: number) => [number, number, number];
|
|
635
|
-
readonly verifySignedWithPublicKey: (a: number, b: number, c: any, d: any) => [number, number];
|
|
636
|
-
readonly __wbg_passkeysignature_free: (a: number, b: number) => void;
|
|
637
|
-
readonly client_createInboxSignatureText: (a: number) => [number, number, number, number];
|
|
638
|
-
readonly client_addWalletSignatureText: (a: number, b: any) => any;
|
|
639
|
-
readonly client_revokeWalletSignatureText: (a: number, b: any) => any;
|
|
640
|
-
readonly client_revokeAllOtherInstallationsSignatureText: (a: number) => any;
|
|
641
|
-
readonly client_revokeInstallationsSignatureText: (a: number, b: number, c: number) => any;
|
|
642
|
-
readonly client_changeRecoveryIdentifierSignatureText: (a: number, b: any) => any;
|
|
643
|
-
readonly client_addEcdsaSignature: (a: number, b: number, c: any) => any;
|
|
644
|
-
readonly client_addPasskeySignature: (a: number, b: number, c: number) => any;
|
|
645
|
-
readonly client_addScwSignature: (a: number, b: number, c: any, d: bigint, e: number, f: bigint) => any;
|
|
646
|
-
readonly client_applySignatureRequests: (a: number) => any;
|
|
647
|
-
readonly client_signWithInstallationKey: (a: number, b: number, c: number) => [number, number, number];
|
|
648
|
-
readonly client_verifySignedWithInstallationKey: (a: number, b: number, c: number, d: any) => [number, number];
|
|
649
|
-
readonly __wbg_set_groupmember_inboxId: (a: number, b: number, c: number) => void;
|
|
650
|
-
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;
|
|
678
569
|
readonly __wbg_remoteattachmentinfo_free: (a: number, b: number) => void;
|
|
679
|
-
readonly __wbg_get_remoteattachmentinfo_secret: (a: number) => any;
|
|
680
|
-
readonly __wbg_set_remoteattachmentinfo_secret: (a: number, b: any) => void;
|
|
681
570
|
readonly __wbg_get_remoteattachmentinfo_contentDigest: (a: number) => [number, number];
|
|
682
571
|
readonly __wbg_set_remoteattachmentinfo_contentDigest: (a: number, b: number, c: number) => void;
|
|
683
572
|
readonly __wbg_get_remoteattachmentinfo_nonce: (a: number) => any;
|
|
684
573
|
readonly __wbg_set_remoteattachmentinfo_nonce: (a: number, b: any) => void;
|
|
574
|
+
readonly __wbg_get_remoteattachmentinfo_scheme: (a: number) => [number, number];
|
|
685
575
|
readonly __wbg_set_remoteattachmentinfo_scheme: (a: number, b: number, c: number) => void;
|
|
686
576
|
readonly __wbg_get_remoteattachmentinfo_url: (a: number) => [number, number];
|
|
687
577
|
readonly __wbg_set_remoteattachmentinfo_url: (a: number, b: number, c: number) => void;
|
|
@@ -698,73 +588,6 @@ export interface InitOutput {
|
|
|
698
588
|
readonly multiremoteattachment_new: (a: number, b: number) => number;
|
|
699
589
|
readonly encodeMultiRemoteAttachment: (a: number) => [number, number, number];
|
|
700
590
|
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
591
|
readonly __wbg_listconversationsoptions_free: (a: number, b: number) => void;
|
|
769
592
|
readonly __wbg_get_listconversationsoptions_consentStates: (a: number) => [number, number];
|
|
770
593
|
readonly __wbg_set_listconversationsoptions_consentStates: (a: number, b: number, c: number) => void;
|
|
@@ -850,8 +673,6 @@ export interface InitOutput {
|
|
|
850
673
|
readonly __wbg_get_encodedcontent_content: (a: number) => any;
|
|
851
674
|
readonly __wbg_set_encodedcontent_content: (a: number, b: any) => void;
|
|
852
675
|
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
676
|
readonly __wbg_listmessagesoptions_free: (a: number, b: number) => void;
|
|
856
677
|
readonly __wbg_get_listmessagesoptions_contentTypes: (a: number) => [number, number];
|
|
857
678
|
readonly __wbg_set_listmessagesoptions_contentTypes: (a: number, b: number, c: number) => void;
|
|
@@ -892,11 +713,17 @@ export interface InitOutput {
|
|
|
892
713
|
readonly opfs_getCapacity: () => number;
|
|
893
714
|
readonly opfs_addCapacity: (a: number) => any;
|
|
894
715
|
readonly opfs_reduceCapacity: (a: number) => any;
|
|
716
|
+
readonly __wbg_streamcloser_free: (a: number, b: number) => void;
|
|
717
|
+
readonly streamcloser_end: (a: number) => void;
|
|
718
|
+
readonly streamcloser_endAndWait: (a: number) => any;
|
|
719
|
+
readonly streamcloser_waitForReady: (a: number) => any;
|
|
720
|
+
readonly streamcloser_isClosed: (a: number) => number;
|
|
895
721
|
readonly __wbg_get_messagedisappearingsettings_fromNs: (a: number) => bigint;
|
|
896
722
|
readonly __wbg_get_message_sentAtNs: (a: number) => bigint;
|
|
897
723
|
readonly __wbg_set_listmessagesoptions_sentBeforeNs: (a: number, b: number, c: bigint) => void;
|
|
898
724
|
readonly __wbg_set_listmessagesoptions_sentAfterNs: (a: number, b: number, c: bigint) => void;
|
|
899
725
|
readonly __wbg_set_listmessagesoptions_limit: (a: number, b: number, c: bigint) => void;
|
|
726
|
+
readonly __wbg_get_remoteattachmentinfo_secret: (a: number) => any;
|
|
900
727
|
readonly __wbg_set_messagedisappearingsettings_fromNs: (a: number, b: bigint) => void;
|
|
901
728
|
readonly __wbg_set_message_sentAtNs: (a: number, b: bigint) => void;
|
|
902
729
|
readonly __wbg_set_creategroupoptions_messageDisappearingSettings: (a: number, b: number) => void;
|
|
@@ -904,13 +731,186 @@ export interface InitOutput {
|
|
|
904
731
|
readonly __wbg_get_listmessagesoptions_sentBeforeNs: (a: number) => [number, bigint];
|
|
905
732
|
readonly __wbg_get_listmessagesoptions_sentAfterNs: (a: number) => [number, bigint];
|
|
906
733
|
readonly __wbg_get_listmessagesoptions_limit: (a: number) => [number, bigint];
|
|
734
|
+
readonly __wbg_set_remoteattachmentinfo_secret: (a: number, b: any) => void;
|
|
735
|
+
readonly __wbg_permissionpolicyset_free: (a: number, b: number) => void;
|
|
736
|
+
readonly __wbg_get_permissionpolicyset_addMemberPolicy: (a: number) => number;
|
|
737
|
+
readonly __wbg_set_permissionpolicyset_addMemberPolicy: (a: number, b: number) => void;
|
|
738
|
+
readonly __wbg_get_permissionpolicyset_removeMemberPolicy: (a: number) => number;
|
|
739
|
+
readonly __wbg_set_permissionpolicyset_removeMemberPolicy: (a: number, b: number) => void;
|
|
740
|
+
readonly __wbg_get_permissionpolicyset_addAdminPolicy: (a: number) => number;
|
|
741
|
+
readonly __wbg_set_permissionpolicyset_addAdminPolicy: (a: number, b: number) => void;
|
|
742
|
+
readonly __wbg_get_permissionpolicyset_removeAdminPolicy: (a: number) => number;
|
|
743
|
+
readonly __wbg_set_permissionpolicyset_removeAdminPolicy: (a: number, b: number) => void;
|
|
744
|
+
readonly __wbg_get_permissionpolicyset_updateGroupNamePolicy: (a: number) => number;
|
|
745
|
+
readonly __wbg_set_permissionpolicyset_updateGroupNamePolicy: (a: number, b: number) => void;
|
|
746
|
+
readonly __wbg_get_permissionpolicyset_updateGroupDescriptionPolicy: (a: number) => number;
|
|
747
|
+
readonly __wbg_set_permissionpolicyset_updateGroupDescriptionPolicy: (a: number, b: number) => void;
|
|
748
|
+
readonly __wbg_get_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number) => number;
|
|
749
|
+
readonly __wbg_set_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number, b: number) => void;
|
|
750
|
+
readonly __wbg_get_permissionpolicyset_updateMessageDisappearingPolicy: (a: number) => number;
|
|
751
|
+
readonly __wbg_set_permissionpolicyset_updateMessageDisappearingPolicy: (a: number, b: number) => void;
|
|
752
|
+
readonly permissionpolicyset_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
753
|
+
readonly __wbg_grouppermissions_free: (a: number, b: number) => void;
|
|
754
|
+
readonly grouppermissions_policyType: (a: number) => [number, number, number];
|
|
755
|
+
readonly grouppermissions_policySet: (a: number) => [number, number, number];
|
|
756
|
+
readonly __wbg_consent_free: (a: number, b: number) => void;
|
|
757
|
+
readonly __wbg_get_consent_entityType: (a: number) => number;
|
|
758
|
+
readonly __wbg_set_consent_entityType: (a: number, b: number) => void;
|
|
759
|
+
readonly __wbg_get_consent_state: (a: number) => number;
|
|
760
|
+
readonly __wbg_set_consent_state: (a: number, b: number) => void;
|
|
761
|
+
readonly __wbg_get_consent_entity: (a: number) => [number, number];
|
|
762
|
+
readonly __wbg_set_consent_entity: (a: number, b: number, c: number) => void;
|
|
763
|
+
readonly consent_new: (a: number, b: number, c: number, d: number) => number;
|
|
764
|
+
readonly client_setConsentStates: (a: number, b: number, c: number) => any;
|
|
765
|
+
readonly client_getConsentState: (a: number, b: number, c: number, d: number) => any;
|
|
766
|
+
readonly conversation_consentState: (a: number) => [number, number, number];
|
|
767
|
+
readonly conversation_updateConsentState: (a: number, b: number) => [number, number];
|
|
768
|
+
readonly __wbg_groupmetadata_free: (a: number, b: number) => void;
|
|
769
|
+
readonly groupmetadata_creatorInboxId: (a: number) => [number, number];
|
|
770
|
+
readonly groupmetadata_conversationType: (a: number) => [number, number];
|
|
771
|
+
readonly __wbg_groupmember_free: (a: number, b: number) => void;
|
|
772
|
+
readonly __wbg_get_groupmember_accountIdentifiers: (a: number) => [number, number];
|
|
773
|
+
readonly __wbg_set_groupmember_accountIdentifiers: (a: number, b: number, c: number) => void;
|
|
774
|
+
readonly __wbg_get_groupmember_installationIds: (a: number) => [number, number];
|
|
775
|
+
readonly __wbg_set_groupmember_installationIds: (a: number, b: number, c: number) => void;
|
|
776
|
+
readonly __wbg_get_groupmember_permissionLevel: (a: number) => number;
|
|
777
|
+
readonly __wbg_set_groupmember_permissionLevel: (a: number, b: number) => void;
|
|
778
|
+
readonly __wbg_get_groupmember_consentState: (a: number) => number;
|
|
779
|
+
readonly __wbg_set_groupmember_consentState: (a: number, b: number) => void;
|
|
780
|
+
readonly groupmember_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
781
|
+
readonly __wbg_conversation_free: (a: number, b: number) => void;
|
|
782
|
+
readonly conversation_id: (a: number) => [number, number];
|
|
783
|
+
readonly conversation_send: (a: number, b: number) => any;
|
|
784
|
+
readonly conversation_sendOptimistic: (a: number, b: number) => [number, number, number, number];
|
|
785
|
+
readonly conversation_publishMessages: (a: number) => any;
|
|
786
|
+
readonly conversation_sync: (a: number) => any;
|
|
787
|
+
readonly conversation_findMessages: (a: number, b: number) => any;
|
|
788
|
+
readonly conversation_findMessagesWithReactions: (a: number, b: number) => any;
|
|
789
|
+
readonly conversation_listMembers: (a: number) => any;
|
|
790
|
+
readonly conversation_adminList: (a: number) => [number, number, number, number];
|
|
791
|
+
readonly conversation_superAdminList: (a: number) => [number, number, number, number];
|
|
792
|
+
readonly conversation_isAdmin: (a: number, b: number, c: number) => [number, number, number];
|
|
793
|
+
readonly conversation_isSuperAdmin: (a: number, b: number, c: number) => [number, number, number];
|
|
794
|
+
readonly conversation_addMembers: (a: number, b: number, c: number) => any;
|
|
795
|
+
readonly conversation_addAdmin: (a: number, b: number, c: number) => any;
|
|
796
|
+
readonly conversation_removeAdmin: (a: number, b: number, c: number) => any;
|
|
797
|
+
readonly conversation_addSuperAdmin: (a: number, b: number, c: number) => any;
|
|
798
|
+
readonly conversation_removeSuperAdmin: (a: number, b: number, c: number) => any;
|
|
799
|
+
readonly conversation_groupPermissions: (a: number) => [number, number, number];
|
|
800
|
+
readonly conversation_addMembersByInboxId: (a: number, b: number, c: number) => any;
|
|
801
|
+
readonly conversation_removeMembers: (a: number, b: number, c: number) => any;
|
|
802
|
+
readonly conversation_removeMembersByInboxId: (a: number, b: number, c: number) => any;
|
|
803
|
+
readonly conversation_updateGroupName: (a: number, b: number, c: number) => any;
|
|
804
|
+
readonly conversation_groupName: (a: number) => [number, number, number, number];
|
|
805
|
+
readonly conversation_updateGroupImageUrlSquare: (a: number, b: number, c: number) => any;
|
|
806
|
+
readonly conversation_groupImageUrlSquare: (a: number) => [number, number, number, number];
|
|
807
|
+
readonly conversation_updateGroupDescription: (a: number, b: number, c: number) => any;
|
|
808
|
+
readonly conversation_groupDescription: (a: number) => [number, number, number, number];
|
|
809
|
+
readonly conversation_stream: (a: number, b: any) => [number, number, number];
|
|
810
|
+
readonly conversation_createdAtNs: (a: number) => bigint;
|
|
811
|
+
readonly conversation_isActive: (a: number) => [number, number, number];
|
|
812
|
+
readonly conversation_pausedForVersion: (a: number) => [number, number, number, number];
|
|
813
|
+
readonly conversation_addedByInboxId: (a: number) => [number, number, number, number];
|
|
814
|
+
readonly conversation_groupMetadata: (a: number) => any;
|
|
815
|
+
readonly conversation_dmPeerInboxId: (a: number) => [number, number, number, number];
|
|
816
|
+
readonly conversation_updatePermissionPolicy: (a: number, b: number, c: number, d: number) => any;
|
|
817
|
+
readonly conversation_updateMessageDisappearingSettings: (a: number, b: number) => any;
|
|
818
|
+
readonly conversation_removeMessageDisappearingSettings: (a: number) => any;
|
|
819
|
+
readonly conversation_messageDisappearingSettings: (a: number) => [number, number, number];
|
|
820
|
+
readonly conversation_isMessageDisappearingEnabled: (a: number) => [number, number, number];
|
|
821
|
+
readonly conversation_getHmacKeys: (a: number) => [number, number, number];
|
|
822
|
+
readonly getInboxIdForIdentifier: (a: number, b: number, c: any) => any;
|
|
823
|
+
readonly generateInboxId: (a: any) => [number, number, number, number];
|
|
824
|
+
readonly verifySignedWithPublicKey: (a: number, b: number, c: any, d: any) => [number, number];
|
|
825
|
+
readonly __wbg_passkeysignature_free: (a: number, b: number) => void;
|
|
826
|
+
readonly client_createInboxSignatureText: (a: number) => [number, number, number, number];
|
|
827
|
+
readonly client_addWalletSignatureText: (a: number, b: any) => any;
|
|
828
|
+
readonly client_revokeWalletSignatureText: (a: number, b: any) => any;
|
|
829
|
+
readonly client_revokeAllOtherInstallationsSignatureText: (a: number) => any;
|
|
830
|
+
readonly client_revokeInstallationsSignatureText: (a: number, b: number, c: number) => any;
|
|
831
|
+
readonly client_changeRecoveryIdentifierSignatureText: (a: number, b: any) => any;
|
|
832
|
+
readonly client_addEcdsaSignature: (a: number, b: number, c: any) => any;
|
|
833
|
+
readonly client_addPasskeySignature: (a: number, b: number, c: number) => any;
|
|
834
|
+
readonly client_addScwSignature: (a: number, b: number, c: any, d: bigint, e: number, f: bigint) => any;
|
|
835
|
+
readonly client_applySignatureRequests: (a: number) => any;
|
|
836
|
+
readonly client_signWithInstallationKey: (a: number, b: number, c: number) => [number, number, number];
|
|
837
|
+
readonly client_verifySignedWithInstallationKey: (a: number, b: number, c: number, d: any) => [number, number];
|
|
838
|
+
readonly __wbg_set_groupmember_inboxId: (a: number, b: number, c: number) => void;
|
|
839
|
+
readonly __wbg_get_groupmember_inboxId: (a: number) => [number, number];
|
|
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
|
|
937
|
-
readonly
|
|
938
|
-
readonly
|
|
939
|
-
readonly
|
|
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 closure3995_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 closure4888_externref_shim: (a: number, b: number, c: any, d: number, e: any) => number;
|
|
941
|
+
readonly closure4887_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
940
942
|
readonly __wbindgen_start: () => void;
|
|
941
943
|
}
|
|
942
944
|
|
package/dist/bindings_wasm.js
CHANGED
|
@@ -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 => {
|
|
@@ -224,17 +224,84 @@ function passArrayJsValueToWasm0(array, malloc) {
|
|
|
224
224
|
return ptr;
|
|
225
225
|
}
|
|
226
226
|
|
|
227
|
+
function _assertClass(instance, klass) {
|
|
228
|
+
if (!(instance instanceof klass)) {
|
|
229
|
+
throw new Error(`expected instance of ${klass.name}`);
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
|
|
227
233
|
function takeFromExternrefTable0(idx) {
|
|
228
234
|
const value = wasm.__wbindgen_export_4.get(idx);
|
|
229
235
|
wasm.__externref_table_dealloc(idx);
|
|
230
236
|
return value;
|
|
231
237
|
}
|
|
238
|
+
/**
|
|
239
|
+
* @param {MultiRemoteAttachment} multiRemoteAttachment
|
|
240
|
+
* @returns {Uint8Array}
|
|
241
|
+
*/
|
|
242
|
+
export function encodeMultiRemoteAttachment(multiRemoteAttachment) {
|
|
243
|
+
_assertClass(multiRemoteAttachment, MultiRemoteAttachment);
|
|
244
|
+
var ptr0 = multiRemoteAttachment.__destroy_into_raw();
|
|
245
|
+
const ret = wasm.encodeMultiRemoteAttachment(ptr0);
|
|
246
|
+
if (ret[2]) {
|
|
247
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
248
|
+
}
|
|
249
|
+
return takeFromExternrefTable0(ret[0]);
|
|
250
|
+
}
|
|
232
251
|
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
252
|
+
/**
|
|
253
|
+
* @param {Uint8Array} bytes
|
|
254
|
+
* @returns {MultiRemoteAttachment}
|
|
255
|
+
*/
|
|
256
|
+
export function decodeMultiRemoteAttachment(bytes) {
|
|
257
|
+
const ret = wasm.decodeMultiRemoteAttachment(bytes);
|
|
258
|
+
if (ret[2]) {
|
|
259
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
260
|
+
}
|
|
261
|
+
return MultiRemoteAttachment.__wrap(ret[0]);
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
function passArray8ToWasm0(arg, malloc) {
|
|
265
|
+
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
266
|
+
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
267
|
+
WASM_VECTOR_LEN = arg.length;
|
|
268
|
+
return ptr;
|
|
269
|
+
}
|
|
270
|
+
/**
|
|
271
|
+
* @param {string} host
|
|
272
|
+
* @param {Identifier} accountIdentifier
|
|
273
|
+
* @returns {Promise<string | undefined>}
|
|
274
|
+
*/
|
|
275
|
+
export function getInboxIdForIdentifier(host, accountIdentifier) {
|
|
276
|
+
const ptr0 = passStringToWasm0(host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
277
|
+
const len0 = WASM_VECTOR_LEN;
|
|
278
|
+
const ret = wasm.getInboxIdForIdentifier(ptr0, len0, accountIdentifier);
|
|
279
|
+
return ret;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
/**
|
|
283
|
+
* @param {Identifier} accountIdentifier
|
|
284
|
+
* @returns {string}
|
|
285
|
+
*/
|
|
286
|
+
export function generateInboxId(accountIdentifier) {
|
|
287
|
+
let deferred2_0;
|
|
288
|
+
let deferred2_1;
|
|
289
|
+
try {
|
|
290
|
+
const ret = wasm.generateInboxId(accountIdentifier);
|
|
291
|
+
var ptr1 = ret[0];
|
|
292
|
+
var len1 = ret[1];
|
|
293
|
+
if (ret[3]) {
|
|
294
|
+
ptr1 = 0; len1 = 0;
|
|
295
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
296
|
+
}
|
|
297
|
+
deferred2_0 = ptr1;
|
|
298
|
+
deferred2_1 = len1;
|
|
299
|
+
return getStringFromWasm0(ptr1, len1);
|
|
300
|
+
} finally {
|
|
301
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
236
302
|
}
|
|
237
303
|
}
|
|
304
|
+
|
|
238
305
|
/**
|
|
239
306
|
* @param {string} signature_text
|
|
240
307
|
* @param {Uint8Array} signature_bytes
|
|
@@ -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
|
|
333
|
-
|
|
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
|
-
|
|
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
|
|
374
|
-
wasm.
|
|
381
|
+
function __wbg_adapter_56(arg0, arg1, arg2) {
|
|
382
|
+
wasm.closure3995_externref_shim(arg0, arg1, arg2);
|
|
375
383
|
}
|
|
376
384
|
|
|
377
|
-
function
|
|
378
|
-
wasm.
|
|
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
|
|
382
|
-
const ret = wasm.
|
|
389
|
+
function __wbg_adapter_640(arg0, arg1, arg2, arg3, arg4) {
|
|
390
|
+
const ret = wasm.closure4888_externref_shim(arg0, arg1, arg2, arg3, arg4);
|
|
383
391
|
return ret !== 0;
|
|
384
392
|
}
|
|
385
393
|
|
|
386
|
-
function
|
|
387
|
-
wasm.
|
|
394
|
+
function __wbg_adapter_741(arg0, arg1, arg2, arg3) {
|
|
395
|
+
wasm.closure4887_externref_shim(arg0, arg1, arg2, arg3);
|
|
388
396
|
}
|
|
389
397
|
|
|
390
398
|
/**
|
|
@@ -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
|
|
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
|
|
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
|
|
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.
|
|
5307
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
5346
|
+
imports.wbg.__wbindgen_closure_wrapper15229 = function(arg0, arg1, arg2) {
|
|
5347
|
+
const ret = makeMutClosure(arg0, arg1, 3661, __wbg_adapter_50);
|
|
5348
|
+
return ret;
|
|
5349
|
+
};
|
|
5350
|
+
imports.wbg.__wbindgen_closure_wrapper15371 = function(arg0, arg1, arg2) {
|
|
5351
|
+
const ret = makeMutClosure(arg0, arg1, 3684, __wbg_adapter_53);
|
|
5352
|
+
return ret;
|
|
5353
|
+
};
|
|
5354
|
+
imports.wbg.__wbindgen_closure_wrapper18380 = function(arg0, arg1, arg2) {
|
|
5355
|
+
const ret = makeMutClosure(arg0, arg1, 3996, __wbg_adapter_56);
|
|
5308
5356
|
return ret;
|
|
5309
5357
|
};
|
|
5310
|
-
imports.wbg.
|
|
5311
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
5358
|
+
imports.wbg.__wbindgen_closure_wrapper18499 = function(arg0, arg1, arg2) {
|
|
5359
|
+
const ret = makeMutClosure(arg0, arg1, 4010, __wbg_adapter_59);
|
|
5312
5360
|
return ret;
|
|
5313
5361
|
};
|
|
5314
5362
|
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
|
Binary file
|
|
@@ -1,122 +1,12 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
|
-
export const __wbg_consent_free: (a: number, b: number) => void;
|
|
5
|
-
export const __wbg_get_consent_entityType: (a: number) => number;
|
|
6
|
-
export const __wbg_set_consent_entityType: (a: number, b: number) => void;
|
|
7
|
-
export const __wbg_get_consent_state: (a: number) => number;
|
|
8
|
-
export const __wbg_set_consent_state: (a: number, b: number) => void;
|
|
9
|
-
export const __wbg_get_consent_entity: (a: number) => [number, number];
|
|
10
|
-
export const __wbg_set_consent_entity: (a: number, b: number, c: number) => void;
|
|
11
|
-
export const consent_new: (a: number, b: number, c: number, d: number) => number;
|
|
12
|
-
export const client_setConsentStates: (a: number, b: number, c: number) => any;
|
|
13
|
-
export const client_getConsentState: (a: number, b: number, c: number, d: number) => any;
|
|
14
|
-
export const conversation_consentState: (a: number) => [number, number, number];
|
|
15
|
-
export const conversation_updateConsentState: (a: number, b: number) => [number, number];
|
|
16
|
-
export const __wbg_groupmetadata_free: (a: number, b: number) => void;
|
|
17
|
-
export const groupmetadata_creatorInboxId: (a: number) => [number, number];
|
|
18
|
-
export const groupmetadata_conversationType: (a: number) => [number, number];
|
|
19
|
-
export const __wbg_groupmember_free: (a: number, b: number) => void;
|
|
20
|
-
export const __wbg_get_groupmember_accountIdentifiers: (a: number) => [number, number];
|
|
21
|
-
export const __wbg_set_groupmember_accountIdentifiers: (a: number, b: number, c: number) => void;
|
|
22
|
-
export const __wbg_get_groupmember_installationIds: (a: number) => [number, number];
|
|
23
|
-
export const __wbg_set_groupmember_installationIds: (a: number, b: number, c: number) => void;
|
|
24
|
-
export const __wbg_get_groupmember_permissionLevel: (a: number) => number;
|
|
25
|
-
export const __wbg_set_groupmember_permissionLevel: (a: number, b: number) => void;
|
|
26
|
-
export const __wbg_get_groupmember_consentState: (a: number) => number;
|
|
27
|
-
export const __wbg_set_groupmember_consentState: (a: number, b: number) => void;
|
|
28
|
-
export const groupmember_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
29
|
-
export const __wbg_conversation_free: (a: number, b: number) => void;
|
|
30
|
-
export const conversation_id: (a: number) => [number, number];
|
|
31
|
-
export const conversation_send: (a: number, b: number) => any;
|
|
32
|
-
export const conversation_sendOptimistic: (a: number, b: number) => [number, number, number, number];
|
|
33
|
-
export const conversation_publishMessages: (a: number) => any;
|
|
34
|
-
export const conversation_sync: (a: number) => any;
|
|
35
|
-
export const conversation_findMessages: (a: number, b: number) => any;
|
|
36
|
-
export const conversation_findMessagesWithReactions: (a: number, b: number) => any;
|
|
37
|
-
export const conversation_listMembers: (a: number) => any;
|
|
38
|
-
export const conversation_adminList: (a: number) => [number, number, number, number];
|
|
39
|
-
export const conversation_superAdminList: (a: number) => [number, number, number, number];
|
|
40
|
-
export const conversation_isAdmin: (a: number, b: number, c: number) => [number, number, number];
|
|
41
|
-
export const conversation_isSuperAdmin: (a: number, b: number, c: number) => [number, number, number];
|
|
42
|
-
export const conversation_addMembers: (a: number, b: number, c: number) => any;
|
|
43
|
-
export const conversation_addAdmin: (a: number, b: number, c: number) => any;
|
|
44
|
-
export const conversation_removeAdmin: (a: number, b: number, c: number) => any;
|
|
45
|
-
export const conversation_addSuperAdmin: (a: number, b: number, c: number) => any;
|
|
46
|
-
export const conversation_removeSuperAdmin: (a: number, b: number, c: number) => any;
|
|
47
|
-
export const conversation_groupPermissions: (a: number) => [number, number, number];
|
|
48
|
-
export const conversation_addMembersByInboxId: (a: number, b: number, c: number) => any;
|
|
49
|
-
export const conversation_removeMembers: (a: number, b: number, c: number) => any;
|
|
50
|
-
export const conversation_removeMembersByInboxId: (a: number, b: number, c: number) => any;
|
|
51
|
-
export const conversation_updateGroupName: (a: number, b: number, c: number) => any;
|
|
52
|
-
export const conversation_groupName: (a: number) => [number, number, number, number];
|
|
53
|
-
export const conversation_updateGroupImageUrlSquare: (a: number, b: number, c: number) => any;
|
|
54
|
-
export const conversation_groupImageUrlSquare: (a: number) => [number, number, number, number];
|
|
55
|
-
export const conversation_updateGroupDescription: (a: number, b: number, c: number) => any;
|
|
56
|
-
export const conversation_groupDescription: (a: number) => [number, number, number, number];
|
|
57
|
-
export const conversation_stream: (a: number, b: any) => [number, number, number];
|
|
58
|
-
export const conversation_createdAtNs: (a: number) => bigint;
|
|
59
|
-
export const conversation_isActive: (a: number) => [number, number, number];
|
|
60
|
-
export const conversation_pausedForVersion: (a: number) => [number, number, number, number];
|
|
61
|
-
export const conversation_addedByInboxId: (a: number) => [number, number, number, number];
|
|
62
|
-
export const conversation_groupMetadata: (a: number) => any;
|
|
63
|
-
export const conversation_dmPeerInboxId: (a: number) => [number, number, number, number];
|
|
64
|
-
export const conversation_updatePermissionPolicy: (a: number, b: number, c: number, d: number) => any;
|
|
65
|
-
export const conversation_updateMessageDisappearingSettings: (a: number, b: number) => any;
|
|
66
|
-
export const conversation_removeMessageDisappearingSettings: (a: number) => any;
|
|
67
|
-
export const conversation_messageDisappearingSettings: (a: number) => [number, number, number];
|
|
68
|
-
export const conversation_isMessageDisappearingEnabled: (a: number) => [number, number, number];
|
|
69
|
-
export const conversation_getHmacKeys: (a: number) => [number, number, number];
|
|
70
|
-
export const verifySignedWithPublicKey: (a: number, b: number, c: any, d: any) => [number, number];
|
|
71
|
-
export const __wbg_passkeysignature_free: (a: number, b: number) => void;
|
|
72
|
-
export const client_createInboxSignatureText: (a: number) => [number, number, number, number];
|
|
73
|
-
export const client_addWalletSignatureText: (a: number, b: any) => any;
|
|
74
|
-
export const client_revokeWalletSignatureText: (a: number, b: any) => any;
|
|
75
|
-
export const client_revokeAllOtherInstallationsSignatureText: (a: number) => any;
|
|
76
|
-
export const client_revokeInstallationsSignatureText: (a: number, b: number, c: number) => any;
|
|
77
|
-
export const client_changeRecoveryIdentifierSignatureText: (a: number, b: any) => any;
|
|
78
|
-
export const client_addEcdsaSignature: (a: number, b: number, c: any) => any;
|
|
79
|
-
export const client_addPasskeySignature: (a: number, b: number, c: number) => any;
|
|
80
|
-
export const client_addScwSignature: (a: number, b: number, c: any, d: bigint, e: number, f: bigint) => any;
|
|
81
|
-
export const client_applySignatureRequests: (a: number) => any;
|
|
82
|
-
export const client_signWithInstallationKey: (a: number, b: number, c: number) => [number, number, number];
|
|
83
|
-
export const client_verifySignedWithInstallationKey: (a: number, b: number, c: number, d: any) => [number, number];
|
|
84
|
-
export const __wbg_set_groupmember_inboxId: (a: number, b: number, c: number) => void;
|
|
85
|
-
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;
|
|
113
4
|
export const __wbg_remoteattachmentinfo_free: (a: number, b: number) => void;
|
|
114
|
-
export const __wbg_get_remoteattachmentinfo_secret: (a: number) => any;
|
|
115
|
-
export const __wbg_set_remoteattachmentinfo_secret: (a: number, b: any) => void;
|
|
116
5
|
export const __wbg_get_remoteattachmentinfo_contentDigest: (a: number) => [number, number];
|
|
117
6
|
export const __wbg_set_remoteattachmentinfo_contentDigest: (a: number, b: number, c: number) => void;
|
|
118
7
|
export const __wbg_get_remoteattachmentinfo_nonce: (a: number) => any;
|
|
119
8
|
export const __wbg_set_remoteattachmentinfo_nonce: (a: number, b: any) => void;
|
|
9
|
+
export const __wbg_get_remoteattachmentinfo_scheme: (a: number) => [number, number];
|
|
120
10
|
export const __wbg_set_remoteattachmentinfo_scheme: (a: number, b: number, c: number) => void;
|
|
121
11
|
export const __wbg_get_remoteattachmentinfo_url: (a: number) => [number, number];
|
|
122
12
|
export const __wbg_set_remoteattachmentinfo_url: (a: number, b: number, c: number) => void;
|
|
@@ -133,73 +23,6 @@ export const __wbg_set_multiremoteattachment_attachments: (a: number, b: number,
|
|
|
133
23
|
export const multiremoteattachment_new: (a: number, b: number) => number;
|
|
134
24
|
export const encodeMultiRemoteAttachment: (a: number) => [number, number, number];
|
|
135
25
|
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
26
|
export const __wbg_listconversationsoptions_free: (a: number, b: number) => void;
|
|
204
27
|
export const __wbg_get_listconversationsoptions_consentStates: (a: number) => [number, number];
|
|
205
28
|
export const __wbg_set_listconversationsoptions_consentStates: (a: number, b: number, c: number) => void;
|
|
@@ -285,8 +108,6 @@ export const __wbg_set_encodedcontent_compression: (a: number, b: number) => voi
|
|
|
285
108
|
export const __wbg_get_encodedcontent_content: (a: number) => any;
|
|
286
109
|
export const __wbg_set_encodedcontent_content: (a: number, b: any) => void;
|
|
287
110
|
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
111
|
export const __wbg_listmessagesoptions_free: (a: number, b: number) => void;
|
|
291
112
|
export const __wbg_get_listmessagesoptions_contentTypes: (a: number) => [number, number];
|
|
292
113
|
export const __wbg_set_listmessagesoptions_contentTypes: (a: number, b: number, c: number) => void;
|
|
@@ -327,11 +148,17 @@ export const opfs_getFileCount: () => number;
|
|
|
327
148
|
export const opfs_getCapacity: () => number;
|
|
328
149
|
export const opfs_addCapacity: (a: number) => any;
|
|
329
150
|
export const opfs_reduceCapacity: (a: number) => any;
|
|
151
|
+
export const __wbg_streamcloser_free: (a: number, b: number) => void;
|
|
152
|
+
export const streamcloser_end: (a: number) => void;
|
|
153
|
+
export const streamcloser_endAndWait: (a: number) => any;
|
|
154
|
+
export const streamcloser_waitForReady: (a: number) => any;
|
|
155
|
+
export const streamcloser_isClosed: (a: number) => number;
|
|
330
156
|
export const __wbg_get_messagedisappearingsettings_fromNs: (a: number) => bigint;
|
|
331
157
|
export const __wbg_get_message_sentAtNs: (a: number) => bigint;
|
|
332
158
|
export const __wbg_set_listmessagesoptions_sentBeforeNs: (a: number, b: number, c: bigint) => void;
|
|
333
159
|
export const __wbg_set_listmessagesoptions_sentAfterNs: (a: number, b: number, c: bigint) => void;
|
|
334
160
|
export const __wbg_set_listmessagesoptions_limit: (a: number, b: number, c: bigint) => void;
|
|
161
|
+
export const __wbg_get_remoteattachmentinfo_secret: (a: number) => any;
|
|
335
162
|
export const __wbg_set_messagedisappearingsettings_fromNs: (a: number, b: bigint) => void;
|
|
336
163
|
export const __wbg_set_message_sentAtNs: (a: number, b: bigint) => void;
|
|
337
164
|
export const __wbg_set_creategroupoptions_messageDisappearingSettings: (a: number, b: number) => void;
|
|
@@ -339,13 +166,186 @@ export const __wbg_get_creategroupoptions_messageDisappearingSettings: (a: numbe
|
|
|
339
166
|
export const __wbg_get_listmessagesoptions_sentBeforeNs: (a: number) => [number, bigint];
|
|
340
167
|
export const __wbg_get_listmessagesoptions_sentAfterNs: (a: number) => [number, bigint];
|
|
341
168
|
export const __wbg_get_listmessagesoptions_limit: (a: number) => [number, bigint];
|
|
169
|
+
export const __wbg_set_remoteattachmentinfo_secret: (a: number, b: any) => void;
|
|
170
|
+
export const __wbg_permissionpolicyset_free: (a: number, b: number) => void;
|
|
171
|
+
export const __wbg_get_permissionpolicyset_addMemberPolicy: (a: number) => number;
|
|
172
|
+
export const __wbg_set_permissionpolicyset_addMemberPolicy: (a: number, b: number) => void;
|
|
173
|
+
export const __wbg_get_permissionpolicyset_removeMemberPolicy: (a: number) => number;
|
|
174
|
+
export const __wbg_set_permissionpolicyset_removeMemberPolicy: (a: number, b: number) => void;
|
|
175
|
+
export const __wbg_get_permissionpolicyset_addAdminPolicy: (a: number) => number;
|
|
176
|
+
export const __wbg_set_permissionpolicyset_addAdminPolicy: (a: number, b: number) => void;
|
|
177
|
+
export const __wbg_get_permissionpolicyset_removeAdminPolicy: (a: number) => number;
|
|
178
|
+
export const __wbg_set_permissionpolicyset_removeAdminPolicy: (a: number, b: number) => void;
|
|
179
|
+
export const __wbg_get_permissionpolicyset_updateGroupNamePolicy: (a: number) => number;
|
|
180
|
+
export const __wbg_set_permissionpolicyset_updateGroupNamePolicy: (a: number, b: number) => void;
|
|
181
|
+
export const __wbg_get_permissionpolicyset_updateGroupDescriptionPolicy: (a: number) => number;
|
|
182
|
+
export const __wbg_set_permissionpolicyset_updateGroupDescriptionPolicy: (a: number, b: number) => void;
|
|
183
|
+
export const __wbg_get_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number) => number;
|
|
184
|
+
export const __wbg_set_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number, b: number) => void;
|
|
185
|
+
export const __wbg_get_permissionpolicyset_updateMessageDisappearingPolicy: (a: number) => number;
|
|
186
|
+
export const __wbg_set_permissionpolicyset_updateMessageDisappearingPolicy: (a: number, b: number) => void;
|
|
187
|
+
export const permissionpolicyset_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
188
|
+
export const __wbg_grouppermissions_free: (a: number, b: number) => void;
|
|
189
|
+
export const grouppermissions_policyType: (a: number) => [number, number, number];
|
|
190
|
+
export const grouppermissions_policySet: (a: number) => [number, number, number];
|
|
191
|
+
export const __wbg_consent_free: (a: number, b: number) => void;
|
|
192
|
+
export const __wbg_get_consent_entityType: (a: number) => number;
|
|
193
|
+
export const __wbg_set_consent_entityType: (a: number, b: number) => void;
|
|
194
|
+
export const __wbg_get_consent_state: (a: number) => number;
|
|
195
|
+
export const __wbg_set_consent_state: (a: number, b: number) => void;
|
|
196
|
+
export const __wbg_get_consent_entity: (a: number) => [number, number];
|
|
197
|
+
export const __wbg_set_consent_entity: (a: number, b: number, c: number) => void;
|
|
198
|
+
export const consent_new: (a: number, b: number, c: number, d: number) => number;
|
|
199
|
+
export const client_setConsentStates: (a: number, b: number, c: number) => any;
|
|
200
|
+
export const client_getConsentState: (a: number, b: number, c: number, d: number) => any;
|
|
201
|
+
export const conversation_consentState: (a: number) => [number, number, number];
|
|
202
|
+
export const conversation_updateConsentState: (a: number, b: number) => [number, number];
|
|
203
|
+
export const __wbg_groupmetadata_free: (a: number, b: number) => void;
|
|
204
|
+
export const groupmetadata_creatorInboxId: (a: number) => [number, number];
|
|
205
|
+
export const groupmetadata_conversationType: (a: number) => [number, number];
|
|
206
|
+
export const __wbg_groupmember_free: (a: number, b: number) => void;
|
|
207
|
+
export const __wbg_get_groupmember_accountIdentifiers: (a: number) => [number, number];
|
|
208
|
+
export const __wbg_set_groupmember_accountIdentifiers: (a: number, b: number, c: number) => void;
|
|
209
|
+
export const __wbg_get_groupmember_installationIds: (a: number) => [number, number];
|
|
210
|
+
export const __wbg_set_groupmember_installationIds: (a: number, b: number, c: number) => void;
|
|
211
|
+
export const __wbg_get_groupmember_permissionLevel: (a: number) => number;
|
|
212
|
+
export const __wbg_set_groupmember_permissionLevel: (a: number, b: number) => void;
|
|
213
|
+
export const __wbg_get_groupmember_consentState: (a: number) => number;
|
|
214
|
+
export const __wbg_set_groupmember_consentState: (a: number, b: number) => void;
|
|
215
|
+
export const groupmember_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
216
|
+
export const __wbg_conversation_free: (a: number, b: number) => void;
|
|
217
|
+
export const conversation_id: (a: number) => [number, number];
|
|
218
|
+
export const conversation_send: (a: number, b: number) => any;
|
|
219
|
+
export const conversation_sendOptimistic: (a: number, b: number) => [number, number, number, number];
|
|
220
|
+
export const conversation_publishMessages: (a: number) => any;
|
|
221
|
+
export const conversation_sync: (a: number) => any;
|
|
222
|
+
export const conversation_findMessages: (a: number, b: number) => any;
|
|
223
|
+
export const conversation_findMessagesWithReactions: (a: number, b: number) => any;
|
|
224
|
+
export const conversation_listMembers: (a: number) => any;
|
|
225
|
+
export const conversation_adminList: (a: number) => [number, number, number, number];
|
|
226
|
+
export const conversation_superAdminList: (a: number) => [number, number, number, number];
|
|
227
|
+
export const conversation_isAdmin: (a: number, b: number, c: number) => [number, number, number];
|
|
228
|
+
export const conversation_isSuperAdmin: (a: number, b: number, c: number) => [number, number, number];
|
|
229
|
+
export const conversation_addMembers: (a: number, b: number, c: number) => any;
|
|
230
|
+
export const conversation_addAdmin: (a: number, b: number, c: number) => any;
|
|
231
|
+
export const conversation_removeAdmin: (a: number, b: number, c: number) => any;
|
|
232
|
+
export const conversation_addSuperAdmin: (a: number, b: number, c: number) => any;
|
|
233
|
+
export const conversation_removeSuperAdmin: (a: number, b: number, c: number) => any;
|
|
234
|
+
export const conversation_groupPermissions: (a: number) => [number, number, number];
|
|
235
|
+
export const conversation_addMembersByInboxId: (a: number, b: number, c: number) => any;
|
|
236
|
+
export const conversation_removeMembers: (a: number, b: number, c: number) => any;
|
|
237
|
+
export const conversation_removeMembersByInboxId: (a: number, b: number, c: number) => any;
|
|
238
|
+
export const conversation_updateGroupName: (a: number, b: number, c: number) => any;
|
|
239
|
+
export const conversation_groupName: (a: number) => [number, number, number, number];
|
|
240
|
+
export const conversation_updateGroupImageUrlSquare: (a: number, b: number, c: number) => any;
|
|
241
|
+
export const conversation_groupImageUrlSquare: (a: number) => [number, number, number, number];
|
|
242
|
+
export const conversation_updateGroupDescription: (a: number, b: number, c: number) => any;
|
|
243
|
+
export const conversation_groupDescription: (a: number) => [number, number, number, number];
|
|
244
|
+
export const conversation_stream: (a: number, b: any) => [number, number, number];
|
|
245
|
+
export const conversation_createdAtNs: (a: number) => bigint;
|
|
246
|
+
export const conversation_isActive: (a: number) => [number, number, number];
|
|
247
|
+
export const conversation_pausedForVersion: (a: number) => [number, number, number, number];
|
|
248
|
+
export const conversation_addedByInboxId: (a: number) => [number, number, number, number];
|
|
249
|
+
export const conversation_groupMetadata: (a: number) => any;
|
|
250
|
+
export const conversation_dmPeerInboxId: (a: number) => [number, number, number, number];
|
|
251
|
+
export const conversation_updatePermissionPolicy: (a: number, b: number, c: number, d: number) => any;
|
|
252
|
+
export const conversation_updateMessageDisappearingSettings: (a: number, b: number) => any;
|
|
253
|
+
export const conversation_removeMessageDisappearingSettings: (a: number) => any;
|
|
254
|
+
export const conversation_messageDisappearingSettings: (a: number) => [number, number, number];
|
|
255
|
+
export const conversation_isMessageDisappearingEnabled: (a: number) => [number, number, number];
|
|
256
|
+
export const conversation_getHmacKeys: (a: number) => [number, number, number];
|
|
257
|
+
export const getInboxIdForIdentifier: (a: number, b: number, c: any) => any;
|
|
258
|
+
export const generateInboxId: (a: any) => [number, number, number, number];
|
|
259
|
+
export const verifySignedWithPublicKey: (a: number, b: number, c: any, d: any) => [number, number];
|
|
260
|
+
export const __wbg_passkeysignature_free: (a: number, b: number) => void;
|
|
261
|
+
export const client_createInboxSignatureText: (a: number) => [number, number, number, number];
|
|
262
|
+
export const client_addWalletSignatureText: (a: number, b: any) => any;
|
|
263
|
+
export const client_revokeWalletSignatureText: (a: number, b: any) => any;
|
|
264
|
+
export const client_revokeAllOtherInstallationsSignatureText: (a: number) => any;
|
|
265
|
+
export const client_revokeInstallationsSignatureText: (a: number, b: number, c: number) => any;
|
|
266
|
+
export const client_changeRecoveryIdentifierSignatureText: (a: number, b: any) => any;
|
|
267
|
+
export const client_addEcdsaSignature: (a: number, b: number, c: any) => any;
|
|
268
|
+
export const client_addPasskeySignature: (a: number, b: number, c: number) => any;
|
|
269
|
+
export const client_addScwSignature: (a: number, b: number, c: any, d: bigint, e: number, f: bigint) => any;
|
|
270
|
+
export const client_applySignatureRequests: (a: number) => any;
|
|
271
|
+
export const client_signWithInstallationKey: (a: number, b: number, c: number) => [number, number, number];
|
|
272
|
+
export const client_verifySignedWithInstallationKey: (a: number, b: number, c: number, d: any) => [number, number];
|
|
273
|
+
export const __wbg_set_groupmember_inboxId: (a: number, b: number, c: number) => void;
|
|
274
|
+
export const __wbg_get_groupmember_inboxId: (a: number) => [number, number];
|
|
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
|
|
372
|
-
export const
|
|
373
|
-
export const
|
|
374
|
-
export const
|
|
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 closure3995_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 closure4888_externref_shim: (a: number, b: number, c: any, d: number, e: any) => number;
|
|
376
|
+
export const closure4887_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
375
377
|
export const __wbindgen_start: () => void;
|
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.0-dev.
|
|
3
|
+
"version": "1.2.0-dev.878fd38",
|
|
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",
|