@xmtp/wasm-bindings 1.12.0-dev.4b7b477 → 1.12.0-dev.9f72722
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/README.md +5 -17
- package/dist/bindings_wasm.d.ts +164 -159
- package/dist/bindings_wasm.js +15 -4
- package/dist/bindings_wasm_bg.wasm +0 -0
- package/dist/bindings_wasm_bg.wasm.d.ts +160 -159
- package/package.json +43 -46
package/README.md
CHANGED
|
@@ -10,23 +10,11 @@
|
|
|
10
10
|
|
|
11
11
|
## Useful commands
|
|
12
12
|
|
|
13
|
-
- `
|
|
14
|
-
- `
|
|
15
|
-
|
|
16
|
-
- `
|
|
17
|
-
- `
|
|
18
|
-
- `yarn typecheck`: Run typecheck on integration tests
|
|
19
|
-
- `yarn test`: Run cargo test with `wasm32-unknown-unknown` target
|
|
20
|
-
- `yarn test:integration`: Run integration tests using vitest
|
|
21
|
-
|
|
22
|
-
### macOS commands
|
|
23
|
-
|
|
24
|
-
These commands require Homebrew and `llvm` to be installed. See above.
|
|
25
|
-
|
|
26
|
-
- `yarn check:macos`: Run cargo check
|
|
27
|
-
- `yarn lint:macos`: Run cargo clippy and fmt checks
|
|
28
|
-
- `yarn build:macos`: Build a release version of the WASM bindings
|
|
29
|
-
- `yarn test:integration:macos`: Run integration tests using vitest
|
|
13
|
+
- `just install`: Install root workspace dependencies before the first build.
|
|
14
|
+
- `just wasm build`: Build a release version of the WASM bindings.
|
|
15
|
+
- `just wasm lint`: Run cargo clippy and rustfmt checks.
|
|
16
|
+
- `just wasm test`: Run cargo tests with the `wasm32-unknown-unknown` target.
|
|
17
|
+
- `just wasm test-integration`: Run integration tests with Vitest.
|
|
30
18
|
|
|
31
19
|
## Publishing
|
|
32
20
|
|
package/dist/bindings_wasm.d.ts
CHANGED
|
@@ -1193,6 +1193,10 @@ export class MessageAcknowledgement {
|
|
|
1193
1193
|
* Call immediately before the app callback or iterator handoff. False means reselect.
|
|
1194
1194
|
*/
|
|
1195
1195
|
checkOwner(): boolean;
|
|
1196
|
+
/**
|
|
1197
|
+
* Read the pending message without hiding storage errors. None means reselect.
|
|
1198
|
+
*/
|
|
1199
|
+
enrichedMessage(): DecodedMessage | undefined;
|
|
1196
1200
|
/**
|
|
1197
1201
|
* Reject a current handoff without advancing D. A stale selection is discarded.
|
|
1198
1202
|
*/
|
|
@@ -1633,166 +1637,23 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
|
|
|
1633
1637
|
|
|
1634
1638
|
export interface InitOutput {
|
|
1635
1639
|
readonly memory: WebAssembly.Memory;
|
|
1636
|
-
readonly
|
|
1637
|
-
readonly
|
|
1638
|
-
readonly
|
|
1639
|
-
readonly
|
|
1640
|
-
readonly
|
|
1641
|
-
readonly
|
|
1642
|
-
readonly __wbg_get_backendbuilder_readonly: (a: number) => number;
|
|
1643
|
-
readonly __wbg_set_backendbuilder_backendUrl: (a: number, b: number, c: number) => void;
|
|
1644
|
-
readonly __wbg_set_backendbuilder_env: (a: number, b: number, c: number) => void;
|
|
1645
|
-
readonly __wbg_set_backendbuilder_readonly: (a: number, b: number) => void;
|
|
1646
|
-
readonly __wbg_unstablechangecallbacks_free: (a: number, b: number) => void;
|
|
1647
|
-
readonly authhandle_id: (a: number) => number;
|
|
1648
|
-
readonly authhandle_new: () => number;
|
|
1649
|
-
readonly authhandle_set: (a: number, b: any) => any;
|
|
1650
|
-
readonly backend_appVersion: (a: number) => [number, number];
|
|
1651
|
-
readonly backend_backendUrl: (a: number) => [number, number];
|
|
1652
|
-
readonly backend_cacheKey: (a: number) => [number, number];
|
|
1653
|
-
readonly backend_env: (a: number) => [number, number];
|
|
1654
|
-
readonly backendbuilder_authCallback: (a: number, b: any) => void;
|
|
1655
|
-
readonly backendbuilder_authHandle: (a: number, b: number) => void;
|
|
1656
|
-
readonly backendbuilder_build: (a: number) => [number, number, number];
|
|
1657
|
-
readonly backendbuilder_new: (a: number, b: number) => number;
|
|
1658
|
-
readonly backendbuilder_setAppVersion: (a: number, b: number, c: number) => number;
|
|
1659
|
-
readonly backendbuilder_setEnv: (a: number, b: number, c: number) => number;
|
|
1660
|
-
readonly backendbuilder_setReadonly: (a: number, b: number) => number;
|
|
1661
|
-
readonly client_accountIdentifier: (a: number) => any;
|
|
1662
|
-
readonly client_apiAggregateStatistics: (a: number) => [number, number];
|
|
1663
|
-
readonly client_apiIdentityStatistics: (a: number) => any;
|
|
1664
|
-
readonly client_apiStatistics: (a: number) => any;
|
|
1665
|
-
readonly client_appVersion: (a: number) => [number, number];
|
|
1666
|
-
readonly client_canMessage: (a: number, b: number, c: number) => any;
|
|
1667
|
-
readonly client_clearAllStatistics: (a: number) => void;
|
|
1668
|
-
readonly client_close: (a: number) => any;
|
|
1669
|
-
readonly client_conversations: (a: number) => number;
|
|
1670
|
-
readonly client_device_sync: (a: number) => number;
|
|
1671
|
-
readonly client_findInboxIdByIdentity: (a: number, b: any) => any;
|
|
1672
|
-
readonly client_inboxId: (a: number) => [number, number];
|
|
1673
|
-
readonly client_inboxStateFromInboxIds: (a: number, b: number, c: number, d: number) => any;
|
|
1674
|
-
readonly client_installationId: (a: number) => [number, number];
|
|
1675
|
-
readonly client_installationIdBytes: (a: number) => any;
|
|
1676
|
-
readonly client_isRegistered: (a: number) => number;
|
|
1677
|
-
readonly client_libxmtpVersion: (a: number) => [number, number];
|
|
1678
|
-
readonly client_syncPreferences: (a: number) => any;
|
|
1679
|
-
readonly client_waitForRegistrationVisible: (a: number, b: number) => any;
|
|
1640
|
+
readonly __wbg_conversation_free: (a: number, b: number) => void;
|
|
1641
|
+
readonly __wbg_unstableconversation_free: (a: number, b: number) => void;
|
|
1642
|
+
readonly client_getConsentState: (a: number, b: number, c: number, d: number) => any;
|
|
1643
|
+
readonly client_setConsentStates: (a: number, b: number, c: number) => any;
|
|
1644
|
+
readonly contentTypeActions: () => any;
|
|
1645
|
+
readonly contentTypeAttachment: () => any;
|
|
1680
1646
|
readonly contentTypeGroupUpdated: () => any;
|
|
1681
1647
|
readonly contentTypeIntent: () => any;
|
|
1682
1648
|
readonly contentTypeLeaveRequest: () => any;
|
|
1683
1649
|
readonly contentTypeMarkdown: () => any;
|
|
1650
|
+
readonly contentTypeMultiRemoteAttachment: () => any;
|
|
1684
1651
|
readonly contentTypeReaction: () => any;
|
|
1685
1652
|
readonly contentTypeReadReceipt: () => any;
|
|
1686
|
-
readonly contentTypeText: () => any;
|
|
1687
|
-
readonly createClient: (a: number, b: number, c: number, d: number, e: any, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: bigint, q: number, r: number, s: number, t: number) => any;
|
|
1688
|
-
readonly createClientWithBackend: (a: number, b: number, c: number, d: any, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: bigint, n: number) => any;
|
|
1689
|
-
readonly encodeIntent: (a: any) => [number, number, number];
|
|
1690
|
-
readonly encodeMarkdown: (a: number, b: number) => [number, number, number];
|
|
1691
|
-
readonly encodeReaction: (a: any) => [number, number, number];
|
|
1692
|
-
readonly encodeReadReceipt: (a: any) => [number, number, number];
|
|
1693
|
-
readonly encodeText: (a: number, b: number) => [number, number, number];
|
|
1694
|
-
readonly opfsClearAll: () => any;
|
|
1695
|
-
readonly opfsDeleteFile: (a: number, b: number) => any;
|
|
1696
|
-
readonly opfsExportDb: (a: number, b: number) => any;
|
|
1697
|
-
readonly opfsFileCount: () => any;
|
|
1698
|
-
readonly opfsFileExists: (a: number, b: number) => any;
|
|
1699
|
-
readonly opfsImportDb: (a: number, b: number, c: any) => any;
|
|
1700
|
-
readonly opfsInit: () => any;
|
|
1701
|
-
readonly opfsListFiles: () => any;
|
|
1702
|
-
readonly opfsPoolCapacity: () => any;
|
|
1703
|
-
readonly unstablechangecallbacks_appData: (a: number, b: any) => void;
|
|
1704
|
-
readonly unstablechangecallbacks_new: () => number;
|
|
1705
|
-
readonly __wbg_conversationlistitem_free: (a: number, b: number) => void;
|
|
1706
|
-
readonly __wbg_conversations_free: (a: number, b: number) => void;
|
|
1707
|
-
readonly __wbg_get_conversationlistitem_conversation: (a: number) => number;
|
|
1708
|
-
readonly __wbg_get_conversationlistitem_isCommitLogForked: (a: number) => number;
|
|
1709
|
-
readonly __wbg_get_conversationlistitem_lastMessage: (a: number) => any;
|
|
1710
|
-
readonly __wbg_messageacknowledgement_free: (a: number, b: number) => void;
|
|
1711
|
-
readonly __wbg_messagedelivery_free: (a: number, b: number) => void;
|
|
1712
|
-
readonly __wbg_messagereader_free: (a: number, b: number) => void;
|
|
1713
|
-
readonly __wbg_set_conversationlistitem_conversation: (a: number, b: number) => void;
|
|
1714
|
-
readonly __wbg_set_conversationlistitem_isCommitLogForked: (a: number, b: number) => void;
|
|
1715
|
-
readonly __wbg_set_conversationlistitem_lastMessage: (a: number, b: number) => void;
|
|
1716
|
-
readonly __wbg_streamcloser_free: (a: number, b: number) => void;
|
|
1717
|
-
readonly contentTypeActions: () => any;
|
|
1718
|
-
readonly contentTypeAttachment: () => any;
|
|
1719
|
-
readonly contentTypeMultiRemoteAttachment: () => any;
|
|
1720
1653
|
readonly contentTypeRemoteAttachment: () => any;
|
|
1721
|
-
readonly
|
|
1654
|
+
readonly contentTypeText: () => any;
|
|
1722
1655
|
readonly contentTypeTransactionReference: () => any;
|
|
1723
1656
|
readonly contentTypeWalletSendCalls: () => any;
|
|
1724
|
-
readonly conversation_beginningDeliveryCursor: (a: number) => [number, number, number];
|
|
1725
|
-
readonly conversation_messageHistorySnapshot: (a: number, b: number) => [number, number, number];
|
|
1726
|
-
readonly conversation_messageReader: (a: number, b: number) => [number, number, number];
|
|
1727
|
-
readonly conversationlistitem_new: (a: number, b: number, c: number) => number;
|
|
1728
|
-
readonly conversations_beginningDeliveryCursor: (a: number) => [number, number, number];
|
|
1729
|
-
readonly conversations_createDm: (a: number, b: any, c: number) => any;
|
|
1730
|
-
readonly conversations_createDmByInboxId: (a: number, b: number, c: number, d: number) => any;
|
|
1731
|
-
readonly conversations_createGroup: (a: number, b: number, c: number, d: number) => any;
|
|
1732
|
-
readonly conversations_createGroupByInboxIds: (a: number, b: number, c: number, d: number) => any;
|
|
1733
|
-
readonly conversations_createGroupOptimistic: (a: number, b: number) => [number, number, number];
|
|
1734
|
-
readonly conversations_deleteMessageById: (a: number, b: number, c: number) => [number, number, number];
|
|
1735
|
-
readonly conversations_findDmByTargetInboxId: (a: number, b: number, c: number) => [number, number, number];
|
|
1736
|
-
readonly conversations_findEnrichedMessageById: (a: number, b: number, c: number) => any;
|
|
1737
|
-
readonly conversations_findGroupById: (a: number, b: number, c: number) => [number, number, number];
|
|
1738
|
-
readonly conversations_findMessageById: (a: number, b: number, c: number) => [number, number, number];
|
|
1739
|
-
readonly conversations_getHmacKeys: (a: number) => [number, number, number];
|
|
1740
|
-
readonly conversations_list: (a: number, b: number) => [number, number, number];
|
|
1741
|
-
readonly conversations_messageHistorySnapshot: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number, number];
|
|
1742
|
-
readonly conversations_messageReader: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number, number];
|
|
1743
|
-
readonly conversations_stream: (a: number, b: any, c: number) => [number, number, number];
|
|
1744
|
-
readonly conversations_streamAllMessages: (a: number, b: any, c: number, d: number, e: number) => [number, number, number];
|
|
1745
|
-
readonly conversations_streamConsent: (a: number, b: any) => [number, number, number];
|
|
1746
|
-
readonly conversations_streamLocal: (a: number, b: number) => any;
|
|
1747
|
-
readonly conversations_streamMessageDeletions: (a: number, b: any) => [number, number, number];
|
|
1748
|
-
readonly conversations_streamPreferences: (a: number, b: any) => [number, number, number];
|
|
1749
|
-
readonly conversations_sync: (a: number) => any;
|
|
1750
|
-
readonly conversations_syncAllConversations: (a: number, b: number, c: number) => any;
|
|
1751
|
-
readonly decryptAttachment: (a: number, b: number, c: any) => [number, number, number];
|
|
1752
|
-
readonly encodeActions: (a: any) => [number, number, number];
|
|
1753
|
-
readonly encodeAttachment: (a: any) => [number, number, number];
|
|
1754
|
-
readonly encodeMultiRemoteAttachment: (a: any) => [number, number, number];
|
|
1755
|
-
readonly encodeRemoteAttachment: (a: any) => [number, number, number];
|
|
1756
|
-
readonly encodeTransactionReference: (a: any) => [number, number, number];
|
|
1757
|
-
readonly encodeWalletSendCalls: (a: any) => [number, number, number];
|
|
1758
|
-
readonly encryptAttachment: (a: any) => [number, number, number];
|
|
1759
|
-
readonly messageacknowledgement_acknowledge: (a: number) => [number, number];
|
|
1760
|
-
readonly messageacknowledgement_checkOwner: (a: number) => [number, number, number];
|
|
1761
|
-
readonly messageacknowledgement_reject: (a: number) => void;
|
|
1762
|
-
readonly messagedelivery_acknowledgement: (a: number) => number;
|
|
1763
|
-
readonly messagedelivery_cursor: (a: number) => any;
|
|
1764
|
-
readonly messagedelivery_message: (a: number) => any;
|
|
1765
|
-
readonly messagereader_catchUpChanged: (a: number) => any;
|
|
1766
|
-
readonly messagereader_catchUpSnapshot: (a: number) => any;
|
|
1767
|
-
readonly messagereader_close: (a: number) => void;
|
|
1768
|
-
readonly messagereader_nextDelivery: (a: number) => any;
|
|
1769
|
-
readonly messagereader_updateFilter: (a: number, b: number, c: number, d: number) => void;
|
|
1770
|
-
readonly messagereader_updateScope: (a: number, b: number, c: number) => [number, number];
|
|
1771
|
-
readonly streamcloser_catchUpChanged: (a: number) => any;
|
|
1772
|
-
readonly streamcloser_catchUpSnapshot: (a: number) => any;
|
|
1773
|
-
readonly streamcloser_end: (a: number) => void;
|
|
1774
|
-
readonly streamcloser_endAndWait: (a: number) => any;
|
|
1775
|
-
readonly streamcloser_isClosed: (a: number) => number;
|
|
1776
|
-
readonly streamcloser_waitForReady: (a: number) => any;
|
|
1777
|
-
readonly __wbg_conversation_free: (a: number, b: number) => void;
|
|
1778
|
-
readonly __wbg_signaturerequesthandle_free: (a: number, b: number) => void;
|
|
1779
|
-
readonly __wbg_unstableconversation_free: (a: number, b: number) => void;
|
|
1780
|
-
readonly applySignatureRequest: (a: number, b: number) => any;
|
|
1781
|
-
readonly client_addWalletSignatureRequest: (a: number, b: any) => any;
|
|
1782
|
-
readonly client_applySignatureRequest: (a: number, b: number) => any;
|
|
1783
|
-
readonly client_changeRecoveryIdentifierSignatureRequest: (a: number, b: any) => any;
|
|
1784
|
-
readonly client_createInboxSignatureRequest: (a: number) => [number, number, number];
|
|
1785
|
-
readonly client_fetchLatestInboxUpdatesCount: (a: number, b: number, c: number, d: number) => any;
|
|
1786
|
-
readonly client_fetchOwnInboxUpdatesCount: (a: number, b: number) => any;
|
|
1787
|
-
readonly client_getKeyPackageStatusesForInstallationIds: (a: number, b: number, c: number) => any;
|
|
1788
|
-
readonly client_getLatestInboxState: (a: number, b: number, c: number) => any;
|
|
1789
|
-
readonly client_inboxState: (a: number, b: number) => any;
|
|
1790
|
-
readonly client_registerIdentity: (a: number, b: number, c: number) => any;
|
|
1791
|
-
readonly client_revokeAllOtherInstallationsSignatureRequest: (a: number) => any;
|
|
1792
|
-
readonly client_revokeInstallationsSignatureRequest: (a: number, b: number, c: number) => any;
|
|
1793
|
-
readonly client_revokeWalletSignatureRequest: (a: number, b: any) => any;
|
|
1794
|
-
readonly client_signWithInstallationKey: (a: number, b: number, c: number) => [number, number, number];
|
|
1795
|
-
readonly client_verifySignedWithInstallationKey: (a: number, b: number, c: number, d: any) => [number, number];
|
|
1796
1657
|
readonly conversation_addAdmin: (a: number, b: number, c: number) => any;
|
|
1797
1658
|
readonly conversation_addMembers: (a: number, b: number, c: number) => any;
|
|
1798
1659
|
readonly conversation_addMembersByIdentity: (a: number, b: number, c: number) => any;
|
|
@@ -1800,6 +1661,7 @@ export interface InitOutput {
|
|
|
1800
1661
|
readonly conversation_addedByInboxId: (a: number) => [number, number, number, number];
|
|
1801
1662
|
readonly conversation_adminList: (a: number) => [number, number, number, number];
|
|
1802
1663
|
readonly conversation_appData: (a: number) => [number, number, number, number];
|
|
1664
|
+
readonly conversation_consentState: (a: number) => [number, number, number];
|
|
1803
1665
|
readonly conversation_countMessages: (a: number, b: number) => any;
|
|
1804
1666
|
readonly conversation_createdAtNs: (a: number) => bigint;
|
|
1805
1667
|
readonly conversation_dmPeerInboxId: (a: number) => [number, number, number, number];
|
|
@@ -1852,34 +1714,177 @@ export interface InitOutput {
|
|
|
1852
1714
|
readonly conversation_sync: (a: number) => any;
|
|
1853
1715
|
readonly conversation_unstable: (a: number) => number;
|
|
1854
1716
|
readonly conversation_updateAppData: (a: number, b: any) => any;
|
|
1717
|
+
readonly conversation_updateConsentState: (a: number, b: number) => [number, number];
|
|
1855
1718
|
readonly conversation_updateGroupDescription: (a: number, b: number, c: number) => any;
|
|
1856
1719
|
readonly conversation_updateGroupImageUrlSquare: (a: number, b: number, c: number) => any;
|
|
1857
1720
|
readonly conversation_updateGroupName: (a: number, b: number, c: number) => any;
|
|
1858
1721
|
readonly conversation_updateMessageDisappearingSettings: (a: number, b: any) => any;
|
|
1859
1722
|
readonly conversation_updatePermissionPolicy: (a: number, b: number, c: number, d: number) => any;
|
|
1860
|
-
readonly
|
|
1861
|
-
readonly
|
|
1862
|
-
readonly
|
|
1723
|
+
readonly decryptAttachment: (a: number, b: number, c: any) => [number, number, number];
|
|
1724
|
+
readonly encodeActions: (a: any) => [number, number, number];
|
|
1725
|
+
readonly encodeAttachment: (a: any) => [number, number, number];
|
|
1726
|
+
readonly encodeIntent: (a: any) => [number, number, number];
|
|
1727
|
+
readonly encodeMarkdown: (a: number, b: number) => [number, number, number];
|
|
1728
|
+
readonly encodeMultiRemoteAttachment: (a: any) => [number, number, number];
|
|
1729
|
+
readonly encodeReaction: (a: any) => [number, number, number];
|
|
1730
|
+
readonly encodeReadReceipt: (a: any) => [number, number, number];
|
|
1731
|
+
readonly encodeRemoteAttachment: (a: any) => [number, number, number];
|
|
1732
|
+
readonly encodeText: (a: number, b: number) => [number, number, number];
|
|
1733
|
+
readonly encodeTransactionReference: (a: any) => [number, number, number];
|
|
1734
|
+
readonly encodeWalletSendCalls: (a: any) => [number, number, number];
|
|
1735
|
+
readonly encryptAttachment: (a: any) => [number, number, number];
|
|
1736
|
+
readonly unstableconversation_enableProposals: (a: number, b: any) => any;
|
|
1737
|
+
readonly contentTypeReply: () => any;
|
|
1738
|
+
readonly __wbg_authhandle_free: (a: number, b: number) => void;
|
|
1739
|
+
readonly __wbg_signaturerequesthandle_free: (a: number, b: number) => void;
|
|
1740
|
+
readonly applySignatureRequest: (a: number, b: number) => any;
|
|
1741
|
+
readonly authhandle_id: (a: number) => number;
|
|
1742
|
+
readonly authhandle_new: () => number;
|
|
1743
|
+
readonly authhandle_set: (a: number, b: any) => any;
|
|
1744
|
+
readonly client_addWalletSignatureRequest: (a: number, b: any) => any;
|
|
1745
|
+
readonly client_applySignatureRequest: (a: number, b: number) => any;
|
|
1746
|
+
readonly client_changeRecoveryIdentifierSignatureRequest: (a: number, b: any) => any;
|
|
1747
|
+
readonly client_createInboxSignatureRequest: (a: number) => [number, number, number];
|
|
1748
|
+
readonly client_registerIdentity: (a: number, b: number, c: number) => any;
|
|
1749
|
+
readonly client_revokeAllOtherInstallationsSignatureRequest: (a: number) => any;
|
|
1750
|
+
readonly client_revokeInstallationsSignatureRequest: (a: number, b: number, c: number) => any;
|
|
1751
|
+
readonly client_revokeWalletSignatureRequest: (a: number, b: any) => any;
|
|
1752
|
+
readonly client_signWithInstallationKey: (a: number, b: number, c: number) => [number, number, number];
|
|
1753
|
+
readonly client_verifySignedWithInstallationKey: (a: number, b: number, c: number, d: any) => [number, number];
|
|
1863
1754
|
readonly revokeInstallationsSignatureRequest: (a: number, b: any, c: number, d: number, e: number, f: number) => [number, number, number];
|
|
1864
1755
|
readonly signaturerequesthandle_addEcdsaSignature: (a: number, b: any) => any;
|
|
1865
1756
|
readonly signaturerequesthandle_addPasskeySignature: (a: number, b: any) => any;
|
|
1866
1757
|
readonly signaturerequesthandle_addScwSignature: (a: number, b: any, c: any, d: bigint, e: number, f: bigint) => any;
|
|
1867
1758
|
readonly signaturerequesthandle_signatureText: (a: number) => any;
|
|
1868
|
-
readonly unstableconversation_enableProposals: (a: number, b: any) => any;
|
|
1869
1759
|
readonly verifySignedWithPublicKey: (a: number, b: number, c: any, d: any) => [number, number];
|
|
1760
|
+
readonly __wbg_backend_free: (a: number, b: number) => void;
|
|
1761
|
+
readonly __wbg_backendbuilder_free: (a: number, b: number) => void;
|
|
1762
|
+
readonly __wbg_conversationlistitem_free: (a: number, b: number) => void;
|
|
1763
|
+
readonly __wbg_conversations_free: (a: number, b: number) => void;
|
|
1764
|
+
readonly __wbg_get_backendbuilder_backendUrl: (a: number) => [number, number];
|
|
1765
|
+
readonly __wbg_get_backendbuilder_env: (a: number) => [number, number];
|
|
1766
|
+
readonly __wbg_get_backendbuilder_readonly: (a: number) => number;
|
|
1767
|
+
readonly __wbg_get_conversationlistitem_conversation: (a: number) => number;
|
|
1768
|
+
readonly __wbg_get_conversationlistitem_isCommitLogForked: (a: number) => number;
|
|
1769
|
+
readonly __wbg_get_conversationlistitem_lastMessage: (a: number) => any;
|
|
1770
|
+
readonly __wbg_messageacknowledgement_free: (a: number, b: number) => void;
|
|
1771
|
+
readonly __wbg_messagedelivery_free: (a: number, b: number) => void;
|
|
1772
|
+
readonly __wbg_messagereader_free: (a: number, b: number) => void;
|
|
1773
|
+
readonly __wbg_set_backendbuilder_backendUrl: (a: number, b: number, c: number) => void;
|
|
1774
|
+
readonly __wbg_set_backendbuilder_env: (a: number, b: number, c: number) => void;
|
|
1775
|
+
readonly __wbg_set_backendbuilder_readonly: (a: number, b: number) => void;
|
|
1776
|
+
readonly __wbg_set_conversationlistitem_conversation: (a: number, b: number) => void;
|
|
1777
|
+
readonly __wbg_set_conversationlistitem_isCommitLogForked: (a: number, b: number) => void;
|
|
1778
|
+
readonly __wbg_set_conversationlistitem_lastMessage: (a: number, b: number) => void;
|
|
1779
|
+
readonly __wbg_streamcloser_free: (a: number, b: number) => void;
|
|
1780
|
+
readonly backend_appVersion: (a: number) => [number, number];
|
|
1781
|
+
readonly backend_backendUrl: (a: number) => [number, number];
|
|
1782
|
+
readonly backend_cacheKey: (a: number) => [number, number];
|
|
1783
|
+
readonly backend_env: (a: number) => [number, number];
|
|
1784
|
+
readonly backendbuilder_authCallback: (a: number, b: any) => void;
|
|
1785
|
+
readonly backendbuilder_authHandle: (a: number, b: number) => void;
|
|
1786
|
+
readonly backendbuilder_build: (a: number) => [number, number, number];
|
|
1787
|
+
readonly backendbuilder_new: (a: number, b: number) => number;
|
|
1788
|
+
readonly backendbuilder_setAppVersion: (a: number, b: number, c: number) => number;
|
|
1789
|
+
readonly backendbuilder_setEnv: (a: number, b: number, c: number) => number;
|
|
1790
|
+
readonly backendbuilder_setReadonly: (a: number, b: number) => number;
|
|
1791
|
+
readonly conversation_beginningDeliveryCursor: (a: number) => [number, number, number];
|
|
1792
|
+
readonly conversation_messageHistorySnapshot: (a: number, b: number) => [number, number, number];
|
|
1793
|
+
readonly conversation_messageReader: (a: number, b: number) => [number, number, number];
|
|
1794
|
+
readonly conversationlistitem_new: (a: number, b: number, c: number) => number;
|
|
1795
|
+
readonly conversations_beginningDeliveryCursor: (a: number) => [number, number, number];
|
|
1796
|
+
readonly conversations_createDm: (a: number, b: any, c: number) => any;
|
|
1797
|
+
readonly conversations_createDmByInboxId: (a: number, b: number, c: number, d: number) => any;
|
|
1798
|
+
readonly conversations_createGroup: (a: number, b: number, c: number, d: number) => any;
|
|
1799
|
+
readonly conversations_createGroupByInboxIds: (a: number, b: number, c: number, d: number) => any;
|
|
1800
|
+
readonly conversations_createGroupOptimistic: (a: number, b: number) => [number, number, number];
|
|
1801
|
+
readonly conversations_deleteMessageById: (a: number, b: number, c: number) => [number, number, number];
|
|
1802
|
+
readonly conversations_findDmByTargetInboxId: (a: number, b: number, c: number) => [number, number, number];
|
|
1803
|
+
readonly conversations_findEnrichedMessageById: (a: number, b: number, c: number) => any;
|
|
1804
|
+
readonly conversations_findGroupById: (a: number, b: number, c: number) => [number, number, number];
|
|
1805
|
+
readonly conversations_findMessageById: (a: number, b: number, c: number) => [number, number, number];
|
|
1806
|
+
readonly conversations_getHmacKeys: (a: number) => [number, number, number];
|
|
1807
|
+
readonly conversations_list: (a: number, b: number) => [number, number, number];
|
|
1808
|
+
readonly conversations_messageHistorySnapshot: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number, number];
|
|
1809
|
+
readonly conversations_messageReader: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number, number];
|
|
1810
|
+
readonly conversations_stream: (a: number, b: any, c: number) => [number, number, number];
|
|
1811
|
+
readonly conversations_streamAllMessages: (a: number, b: any, c: number, d: number, e: number) => [number, number, number];
|
|
1812
|
+
readonly conversations_streamConsent: (a: number, b: any) => [number, number, number];
|
|
1813
|
+
readonly conversations_streamLocal: (a: number, b: number) => any;
|
|
1814
|
+
readonly conversations_streamMessageDeletions: (a: number, b: any) => [number, number, number];
|
|
1815
|
+
readonly conversations_streamPreferences: (a: number, b: any) => [number, number, number];
|
|
1816
|
+
readonly conversations_sync: (a: number) => any;
|
|
1817
|
+
readonly conversations_syncAllConversations: (a: number, b: number, c: number) => any;
|
|
1818
|
+
readonly createClientWithBackend: (a: number, b: number, c: number, d: any, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: bigint, n: number) => any;
|
|
1819
|
+
readonly messageacknowledgement_acknowledge: (a: number) => [number, number];
|
|
1820
|
+
readonly messageacknowledgement_checkOwner: (a: number) => [number, number, number];
|
|
1821
|
+
readonly messageacknowledgement_enrichedMessage: (a: number) => [number, number, number];
|
|
1822
|
+
readonly messageacknowledgement_reject: (a: number) => void;
|
|
1823
|
+
readonly messagedelivery_acknowledgement: (a: number) => number;
|
|
1824
|
+
readonly messagedelivery_cursor: (a: number) => any;
|
|
1825
|
+
readonly messagedelivery_message: (a: number) => any;
|
|
1826
|
+
readonly messagereader_catchUpChanged: (a: number) => any;
|
|
1827
|
+
readonly messagereader_catchUpSnapshot: (a: number) => any;
|
|
1828
|
+
readonly messagereader_close: (a: number) => void;
|
|
1829
|
+
readonly messagereader_nextDelivery: (a: number) => any;
|
|
1830
|
+
readonly messagereader_updateFilter: (a: number, b: number, c: number, d: number) => void;
|
|
1831
|
+
readonly messagereader_updateScope: (a: number, b: number, c: number) => [number, number];
|
|
1832
|
+
readonly opfsClearAll: () => any;
|
|
1833
|
+
readonly opfsDeleteFile: (a: number, b: number) => any;
|
|
1834
|
+
readonly opfsExportDb: (a: number, b: number) => any;
|
|
1835
|
+
readonly opfsFileCount: () => any;
|
|
1836
|
+
readonly opfsFileExists: (a: number, b: number) => any;
|
|
1837
|
+
readonly opfsImportDb: (a: number, b: number, c: any) => any;
|
|
1838
|
+
readonly opfsInit: () => any;
|
|
1839
|
+
readonly opfsListFiles: () => any;
|
|
1840
|
+
readonly opfsPoolCapacity: () => any;
|
|
1841
|
+
readonly streamcloser_catchUpChanged: (a: number) => any;
|
|
1842
|
+
readonly streamcloser_catchUpSnapshot: (a: number) => any;
|
|
1843
|
+
readonly streamcloser_end: (a: number) => void;
|
|
1844
|
+
readonly streamcloser_endAndWait: (a: number) => any;
|
|
1845
|
+
readonly streamcloser_isClosed: (a: number) => number;
|
|
1846
|
+
readonly streamcloser_waitForReady: (a: number) => any;
|
|
1847
|
+
readonly __wbg_client_free: (a: number, b: number) => void;
|
|
1870
1848
|
readonly __wbg_devicesync_free: (a: number, b: number) => void;
|
|
1871
|
-
readonly
|
|
1849
|
+
readonly __wbg_unstablechangecallbacks_free: (a: number, b: number) => void;
|
|
1850
|
+
readonly client_accountIdentifier: (a: number) => any;
|
|
1851
|
+
readonly client_apiAggregateStatistics: (a: number) => [number, number];
|
|
1852
|
+
readonly client_apiIdentityStatistics: (a: number) => any;
|
|
1853
|
+
readonly client_apiStatistics: (a: number) => any;
|
|
1854
|
+
readonly client_appVersion: (a: number) => [number, number];
|
|
1855
|
+
readonly client_canMessage: (a: number, b: number, c: number) => any;
|
|
1856
|
+
readonly client_clearAllStatistics: (a: number) => void;
|
|
1857
|
+
readonly client_close: (a: number) => any;
|
|
1858
|
+
readonly client_conversations: (a: number) => number;
|
|
1859
|
+
readonly client_device_sync: (a: number) => number;
|
|
1860
|
+
readonly client_fetchLatestInboxUpdatesCount: (a: number, b: number, c: number, d: number) => any;
|
|
1861
|
+
readonly client_fetchOwnInboxUpdatesCount: (a: number, b: number) => any;
|
|
1862
|
+
readonly client_findInboxIdByIdentity: (a: number, b: any) => any;
|
|
1863
|
+
readonly client_getKeyPackageStatusesForInstallationIds: (a: number, b: number, c: number) => any;
|
|
1864
|
+
readonly client_getLatestInboxState: (a: number, b: number, c: number) => any;
|
|
1865
|
+
readonly client_inboxId: (a: number) => [number, number];
|
|
1866
|
+
readonly client_inboxState: (a: number, b: number) => any;
|
|
1867
|
+
readonly client_inboxStateFromInboxIds: (a: number, b: number, c: number, d: number) => any;
|
|
1868
|
+
readonly client_installationId: (a: number) => [number, number];
|
|
1869
|
+
readonly client_installationIdBytes: (a: number) => any;
|
|
1870
|
+
readonly client_isRegistered: (a: number) => number;
|
|
1871
|
+
readonly client_libxmtpVersion: (a: number) => [number, number];
|
|
1872
1872
|
readonly client_refreshServerConfiguration: (a: number) => any;
|
|
1873
1873
|
readonly client_serverConfiguration: (a: number) => any;
|
|
1874
|
-
readonly
|
|
1875
|
-
readonly
|
|
1876
|
-
readonly
|
|
1874
|
+
readonly client_syncPreferences: (a: number) => any;
|
|
1875
|
+
readonly client_waitForRegistrationVisible: (a: number, b: number) => any;
|
|
1876
|
+
readonly createClient: (a: number, b: number, c: number, d: number, e: any, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: bigint, q: number, r: number, s: number, t: number) => any;
|
|
1877
1877
|
readonly devicesync_archiveMetadata: (a: number, b: any, c: any) => any;
|
|
1878
1878
|
readonly devicesync_createArchive: (a: number, b: any, c: any) => any;
|
|
1879
1879
|
readonly devicesync_importArchive: (a: number, b: any, c: any) => any;
|
|
1880
1880
|
readonly devicesync_syncAllDeviceSyncGroups: (a: number) => any;
|
|
1881
1881
|
readonly fetchServerConfiguration: (a: number, b: number, c: number, d: number) => any;
|
|
1882
|
+
readonly generateInboxId: (a: any, b: number, c: bigint) => [number, number, number, number];
|
|
1883
|
+
readonly getInboxIdForIdentifier: (a: number, b: any) => any;
|
|
1884
|
+
readonly inboxStateFromInboxIds: (a: number, b: number, c: number) => any;
|
|
1882
1885
|
readonly metadataFieldName: (a: number) => [number, number];
|
|
1886
|
+
readonly unstablechangecallbacks_appData: (a: number, b: any) => void;
|
|
1887
|
+
readonly unstablechangecallbacks_new: () => number;
|
|
1883
1888
|
readonly rust_zstd_wasm_shim_calloc: (a: number, b: number) => number;
|
|
1884
1889
|
readonly rust_zstd_wasm_shim_free: (a: number) => void;
|
|
1885
1890
|
readonly rust_zstd_wasm_shim_malloc: (a: number) => number;
|
package/dist/bindings_wasm.js
CHANGED
|
@@ -2159,6 +2159,17 @@ export class MessageAcknowledgement {
|
|
|
2159
2159
|
}
|
|
2160
2160
|
return ret[0] !== 0;
|
|
2161
2161
|
}
|
|
2162
|
+
/**
|
|
2163
|
+
* Read the pending message without hiding storage errors. None means reselect.
|
|
2164
|
+
* @returns {DecodedMessage | undefined}
|
|
2165
|
+
*/
|
|
2166
|
+
enrichedMessage() {
|
|
2167
|
+
const ret = wasm.messageacknowledgement_enrichedMessage(this.__wbg_ptr);
|
|
2168
|
+
if (ret[2]) {
|
|
2169
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
2170
|
+
}
|
|
2171
|
+
return takeFromExternrefTable0(ret[0]);
|
|
2172
|
+
}
|
|
2162
2173
|
/**
|
|
2163
2174
|
* Reject a current handoff without advancing D. A stale selection is discarded.
|
|
2164
2175
|
*/
|
|
@@ -4321,22 +4332,22 @@ function __wbg_get_imports() {
|
|
|
4321
4332
|
return ret;
|
|
4322
4333
|
}, arguments); },
|
|
4323
4334
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
4324
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
4335
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 8353, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
4325
4336
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_da73a4154c4d3ee6___convert__closures_____invoke___wasm_bindgen_da73a4154c4d3ee6___JsValue______true_);
|
|
4326
4337
|
return ret;
|
|
4327
4338
|
},
|
|
4328
4339
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
4329
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
4340
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 8928, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
4330
4341
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_da73a4154c4d3ee6___convert__closures_____invoke___wasm_bindgen_da73a4154c4d3ee6___JsValue__core_9b3796e30d99ddb7___result__Result_____wasm_bindgen_da73a4154c4d3ee6___JsError___true_);
|
|
4331
4342
|
return ret;
|
|
4332
4343
|
},
|
|
4333
4344
|
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
4334
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
4345
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 6598, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
4335
4346
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_da73a4154c4d3ee6___convert__closures_____invoke_______true_);
|
|
4336
4347
|
return ret;
|
|
4337
4348
|
},
|
|
4338
4349
|
__wbindgen_cast_0000000000000004: function(arg0, arg1) {
|
|
4339
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
4350
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 8278, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
4340
4351
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_da73a4154c4d3ee6___convert__closures_____invoke_______true__1_);
|
|
4341
4352
|
return ret;
|
|
4342
4353
|
},
|
|
Binary file
|
|
@@ -1,166 +1,23 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
|
-
export const
|
|
5
|
-
export const
|
|
6
|
-
export const
|
|
7
|
-
export const
|
|
8
|
-
export const
|
|
9
|
-
export const
|
|
10
|
-
export const __wbg_get_backendbuilder_readonly: (a: number) => number;
|
|
11
|
-
export const __wbg_set_backendbuilder_backendUrl: (a: number, b: number, c: number) => void;
|
|
12
|
-
export const __wbg_set_backendbuilder_env: (a: number, b: number, c: number) => void;
|
|
13
|
-
export const __wbg_set_backendbuilder_readonly: (a: number, b: number) => void;
|
|
14
|
-
export const __wbg_unstablechangecallbacks_free: (a: number, b: number) => void;
|
|
15
|
-
export const authhandle_id: (a: number) => number;
|
|
16
|
-
export const authhandle_new: () => number;
|
|
17
|
-
export const authhandle_set: (a: number, b: any) => any;
|
|
18
|
-
export const backend_appVersion: (a: number) => [number, number];
|
|
19
|
-
export const backend_backendUrl: (a: number) => [number, number];
|
|
20
|
-
export const backend_cacheKey: (a: number) => [number, number];
|
|
21
|
-
export const backend_env: (a: number) => [number, number];
|
|
22
|
-
export const backendbuilder_authCallback: (a: number, b: any) => void;
|
|
23
|
-
export const backendbuilder_authHandle: (a: number, b: number) => void;
|
|
24
|
-
export const backendbuilder_build: (a: number) => [number, number, number];
|
|
25
|
-
export const backendbuilder_new: (a: number, b: number) => number;
|
|
26
|
-
export const backendbuilder_setAppVersion: (a: number, b: number, c: number) => number;
|
|
27
|
-
export const backendbuilder_setEnv: (a: number, b: number, c: number) => number;
|
|
28
|
-
export const backendbuilder_setReadonly: (a: number, b: number) => number;
|
|
29
|
-
export const client_accountIdentifier: (a: number) => any;
|
|
30
|
-
export const client_apiAggregateStatistics: (a: number) => [number, number];
|
|
31
|
-
export const client_apiIdentityStatistics: (a: number) => any;
|
|
32
|
-
export const client_apiStatistics: (a: number) => any;
|
|
33
|
-
export const client_appVersion: (a: number) => [number, number];
|
|
34
|
-
export const client_canMessage: (a: number, b: number, c: number) => any;
|
|
35
|
-
export const client_clearAllStatistics: (a: number) => void;
|
|
36
|
-
export const client_close: (a: number) => any;
|
|
37
|
-
export const client_conversations: (a: number) => number;
|
|
38
|
-
export const client_device_sync: (a: number) => number;
|
|
39
|
-
export const client_findInboxIdByIdentity: (a: number, b: any) => any;
|
|
40
|
-
export const client_inboxId: (a: number) => [number, number];
|
|
41
|
-
export const client_inboxStateFromInboxIds: (a: number, b: number, c: number, d: number) => any;
|
|
42
|
-
export const client_installationId: (a: number) => [number, number];
|
|
43
|
-
export const client_installationIdBytes: (a: number) => any;
|
|
44
|
-
export const client_isRegistered: (a: number) => number;
|
|
45
|
-
export const client_libxmtpVersion: (a: number) => [number, number];
|
|
46
|
-
export const client_syncPreferences: (a: number) => any;
|
|
47
|
-
export const client_waitForRegistrationVisible: (a: number, b: number) => any;
|
|
4
|
+
export const __wbg_conversation_free: (a: number, b: number) => void;
|
|
5
|
+
export const __wbg_unstableconversation_free: (a: number, b: number) => void;
|
|
6
|
+
export const client_getConsentState: (a: number, b: number, c: number, d: number) => any;
|
|
7
|
+
export const client_setConsentStates: (a: number, b: number, c: number) => any;
|
|
8
|
+
export const contentTypeActions: () => any;
|
|
9
|
+
export const contentTypeAttachment: () => any;
|
|
48
10
|
export const contentTypeGroupUpdated: () => any;
|
|
49
11
|
export const contentTypeIntent: () => any;
|
|
50
12
|
export const contentTypeLeaveRequest: () => any;
|
|
51
13
|
export const contentTypeMarkdown: () => any;
|
|
14
|
+
export const contentTypeMultiRemoteAttachment: () => any;
|
|
52
15
|
export const contentTypeReaction: () => any;
|
|
53
16
|
export const contentTypeReadReceipt: () => any;
|
|
54
|
-
export const contentTypeText: () => any;
|
|
55
|
-
export const createClient: (a: number, b: number, c: number, d: number, e: any, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: bigint, q: number, r: number, s: number, t: number) => any;
|
|
56
|
-
export const createClientWithBackend: (a: number, b: number, c: number, d: any, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: bigint, n: number) => any;
|
|
57
|
-
export const encodeIntent: (a: any) => [number, number, number];
|
|
58
|
-
export const encodeMarkdown: (a: number, b: number) => [number, number, number];
|
|
59
|
-
export const encodeReaction: (a: any) => [number, number, number];
|
|
60
|
-
export const encodeReadReceipt: (a: any) => [number, number, number];
|
|
61
|
-
export const encodeText: (a: number, b: number) => [number, number, number];
|
|
62
|
-
export const opfsClearAll: () => any;
|
|
63
|
-
export const opfsDeleteFile: (a: number, b: number) => any;
|
|
64
|
-
export const opfsExportDb: (a: number, b: number) => any;
|
|
65
|
-
export const opfsFileCount: () => any;
|
|
66
|
-
export const opfsFileExists: (a: number, b: number) => any;
|
|
67
|
-
export const opfsImportDb: (a: number, b: number, c: any) => any;
|
|
68
|
-
export const opfsInit: () => any;
|
|
69
|
-
export const opfsListFiles: () => any;
|
|
70
|
-
export const opfsPoolCapacity: () => any;
|
|
71
|
-
export const unstablechangecallbacks_appData: (a: number, b: any) => void;
|
|
72
|
-
export const unstablechangecallbacks_new: () => number;
|
|
73
|
-
export const __wbg_conversationlistitem_free: (a: number, b: number) => void;
|
|
74
|
-
export const __wbg_conversations_free: (a: number, b: number) => void;
|
|
75
|
-
export const __wbg_get_conversationlistitem_conversation: (a: number) => number;
|
|
76
|
-
export const __wbg_get_conversationlistitem_isCommitLogForked: (a: number) => number;
|
|
77
|
-
export const __wbg_get_conversationlistitem_lastMessage: (a: number) => any;
|
|
78
|
-
export const __wbg_messageacknowledgement_free: (a: number, b: number) => void;
|
|
79
|
-
export const __wbg_messagedelivery_free: (a: number, b: number) => void;
|
|
80
|
-
export const __wbg_messagereader_free: (a: number, b: number) => void;
|
|
81
|
-
export const __wbg_set_conversationlistitem_conversation: (a: number, b: number) => void;
|
|
82
|
-
export const __wbg_set_conversationlistitem_isCommitLogForked: (a: number, b: number) => void;
|
|
83
|
-
export const __wbg_set_conversationlistitem_lastMessage: (a: number, b: number) => void;
|
|
84
|
-
export const __wbg_streamcloser_free: (a: number, b: number) => void;
|
|
85
|
-
export const contentTypeActions: () => any;
|
|
86
|
-
export const contentTypeAttachment: () => any;
|
|
87
|
-
export const contentTypeMultiRemoteAttachment: () => any;
|
|
88
17
|
export const contentTypeRemoteAttachment: () => any;
|
|
89
|
-
export const
|
|
18
|
+
export const contentTypeText: () => any;
|
|
90
19
|
export const contentTypeTransactionReference: () => any;
|
|
91
20
|
export const contentTypeWalletSendCalls: () => any;
|
|
92
|
-
export const conversation_beginningDeliveryCursor: (a: number) => [number, number, number];
|
|
93
|
-
export const conversation_messageHistorySnapshot: (a: number, b: number) => [number, number, number];
|
|
94
|
-
export const conversation_messageReader: (a: number, b: number) => [number, number, number];
|
|
95
|
-
export const conversationlistitem_new: (a: number, b: number, c: number) => number;
|
|
96
|
-
export const conversations_beginningDeliveryCursor: (a: number) => [number, number, number];
|
|
97
|
-
export const conversations_createDm: (a: number, b: any, c: number) => any;
|
|
98
|
-
export const conversations_createDmByInboxId: (a: number, b: number, c: number, d: number) => any;
|
|
99
|
-
export const conversations_createGroup: (a: number, b: number, c: number, d: number) => any;
|
|
100
|
-
export const conversations_createGroupByInboxIds: (a: number, b: number, c: number, d: number) => any;
|
|
101
|
-
export const conversations_createGroupOptimistic: (a: number, b: number) => [number, number, number];
|
|
102
|
-
export const conversations_deleteMessageById: (a: number, b: number, c: number) => [number, number, number];
|
|
103
|
-
export const conversations_findDmByTargetInboxId: (a: number, b: number, c: number) => [number, number, number];
|
|
104
|
-
export const conversations_findEnrichedMessageById: (a: number, b: number, c: number) => any;
|
|
105
|
-
export const conversations_findGroupById: (a: number, b: number, c: number) => [number, number, number];
|
|
106
|
-
export const conversations_findMessageById: (a: number, b: number, c: number) => [number, number, number];
|
|
107
|
-
export const conversations_getHmacKeys: (a: number) => [number, number, number];
|
|
108
|
-
export const conversations_list: (a: number, b: number) => [number, number, number];
|
|
109
|
-
export const conversations_messageHistorySnapshot: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number, number];
|
|
110
|
-
export const conversations_messageReader: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number, number];
|
|
111
|
-
export const conversations_stream: (a: number, b: any, c: number) => [number, number, number];
|
|
112
|
-
export const conversations_streamAllMessages: (a: number, b: any, c: number, d: number, e: number) => [number, number, number];
|
|
113
|
-
export const conversations_streamConsent: (a: number, b: any) => [number, number, number];
|
|
114
|
-
export const conversations_streamLocal: (a: number, b: number) => any;
|
|
115
|
-
export const conversations_streamMessageDeletions: (a: number, b: any) => [number, number, number];
|
|
116
|
-
export const conversations_streamPreferences: (a: number, b: any) => [number, number, number];
|
|
117
|
-
export const conversations_sync: (a: number) => any;
|
|
118
|
-
export const conversations_syncAllConversations: (a: number, b: number, c: number) => any;
|
|
119
|
-
export const decryptAttachment: (a: number, b: number, c: any) => [number, number, number];
|
|
120
|
-
export const encodeActions: (a: any) => [number, number, number];
|
|
121
|
-
export const encodeAttachment: (a: any) => [number, number, number];
|
|
122
|
-
export const encodeMultiRemoteAttachment: (a: any) => [number, number, number];
|
|
123
|
-
export const encodeRemoteAttachment: (a: any) => [number, number, number];
|
|
124
|
-
export const encodeTransactionReference: (a: any) => [number, number, number];
|
|
125
|
-
export const encodeWalletSendCalls: (a: any) => [number, number, number];
|
|
126
|
-
export const encryptAttachment: (a: any) => [number, number, number];
|
|
127
|
-
export const messageacknowledgement_acknowledge: (a: number) => [number, number];
|
|
128
|
-
export const messageacknowledgement_checkOwner: (a: number) => [number, number, number];
|
|
129
|
-
export const messageacknowledgement_reject: (a: number) => void;
|
|
130
|
-
export const messagedelivery_acknowledgement: (a: number) => number;
|
|
131
|
-
export const messagedelivery_cursor: (a: number) => any;
|
|
132
|
-
export const messagedelivery_message: (a: number) => any;
|
|
133
|
-
export const messagereader_catchUpChanged: (a: number) => any;
|
|
134
|
-
export const messagereader_catchUpSnapshot: (a: number) => any;
|
|
135
|
-
export const messagereader_close: (a: number) => void;
|
|
136
|
-
export const messagereader_nextDelivery: (a: number) => any;
|
|
137
|
-
export const messagereader_updateFilter: (a: number, b: number, c: number, d: number) => void;
|
|
138
|
-
export const messagereader_updateScope: (a: number, b: number, c: number) => [number, number];
|
|
139
|
-
export const streamcloser_catchUpChanged: (a: number) => any;
|
|
140
|
-
export const streamcloser_catchUpSnapshot: (a: number) => any;
|
|
141
|
-
export const streamcloser_end: (a: number) => void;
|
|
142
|
-
export const streamcloser_endAndWait: (a: number) => any;
|
|
143
|
-
export const streamcloser_isClosed: (a: number) => number;
|
|
144
|
-
export const streamcloser_waitForReady: (a: number) => any;
|
|
145
|
-
export const __wbg_conversation_free: (a: number, b: number) => void;
|
|
146
|
-
export const __wbg_signaturerequesthandle_free: (a: number, b: number) => void;
|
|
147
|
-
export const __wbg_unstableconversation_free: (a: number, b: number) => void;
|
|
148
|
-
export const applySignatureRequest: (a: number, b: number) => any;
|
|
149
|
-
export const client_addWalletSignatureRequest: (a: number, b: any) => any;
|
|
150
|
-
export const client_applySignatureRequest: (a: number, b: number) => any;
|
|
151
|
-
export const client_changeRecoveryIdentifierSignatureRequest: (a: number, b: any) => any;
|
|
152
|
-
export const client_createInboxSignatureRequest: (a: number) => [number, number, number];
|
|
153
|
-
export const client_fetchLatestInboxUpdatesCount: (a: number, b: number, c: number, d: number) => any;
|
|
154
|
-
export const client_fetchOwnInboxUpdatesCount: (a: number, b: number) => any;
|
|
155
|
-
export const client_getKeyPackageStatusesForInstallationIds: (a: number, b: number, c: number) => any;
|
|
156
|
-
export const client_getLatestInboxState: (a: number, b: number, c: number) => any;
|
|
157
|
-
export const client_inboxState: (a: number, b: number) => any;
|
|
158
|
-
export const client_registerIdentity: (a: number, b: number, c: number) => any;
|
|
159
|
-
export const client_revokeAllOtherInstallationsSignatureRequest: (a: number) => any;
|
|
160
|
-
export const client_revokeInstallationsSignatureRequest: (a: number, b: number, c: number) => any;
|
|
161
|
-
export const client_revokeWalletSignatureRequest: (a: number, b: any) => any;
|
|
162
|
-
export const client_signWithInstallationKey: (a: number, b: number, c: number) => [number, number, number];
|
|
163
|
-
export const client_verifySignedWithInstallationKey: (a: number, b: number, c: number, d: any) => [number, number];
|
|
164
21
|
export const conversation_addAdmin: (a: number, b: number, c: number) => any;
|
|
165
22
|
export const conversation_addMembers: (a: number, b: number, c: number) => any;
|
|
166
23
|
export const conversation_addMembersByIdentity: (a: number, b: number, c: number) => any;
|
|
@@ -168,6 +25,7 @@ export const conversation_addSuperAdmin: (a: number, b: number, c: number) => an
|
|
|
168
25
|
export const conversation_addedByInboxId: (a: number) => [number, number, number, number];
|
|
169
26
|
export const conversation_adminList: (a: number) => [number, number, number, number];
|
|
170
27
|
export const conversation_appData: (a: number) => [number, number, number, number];
|
|
28
|
+
export const conversation_consentState: (a: number) => [number, number, number];
|
|
171
29
|
export const conversation_countMessages: (a: number, b: number) => any;
|
|
172
30
|
export const conversation_createdAtNs: (a: number) => bigint;
|
|
173
31
|
export const conversation_dmPeerInboxId: (a: number) => [number, number, number, number];
|
|
@@ -220,34 +78,177 @@ export const conversation_superAdminList: (a: number) => [number, number, number
|
|
|
220
78
|
export const conversation_sync: (a: number) => any;
|
|
221
79
|
export const conversation_unstable: (a: number) => number;
|
|
222
80
|
export const conversation_updateAppData: (a: number, b: any) => any;
|
|
81
|
+
export const conversation_updateConsentState: (a: number, b: number) => [number, number];
|
|
223
82
|
export const conversation_updateGroupDescription: (a: number, b: number, c: number) => any;
|
|
224
83
|
export const conversation_updateGroupImageUrlSquare: (a: number, b: number, c: number) => any;
|
|
225
84
|
export const conversation_updateGroupName: (a: number, b: number, c: number) => any;
|
|
226
85
|
export const conversation_updateMessageDisappearingSettings: (a: number, b: any) => any;
|
|
227
86
|
export const conversation_updatePermissionPolicy: (a: number, b: number, c: number, d: number) => any;
|
|
228
|
-
export const
|
|
229
|
-
export const
|
|
230
|
-
export const
|
|
87
|
+
export const decryptAttachment: (a: number, b: number, c: any) => [number, number, number];
|
|
88
|
+
export const encodeActions: (a: any) => [number, number, number];
|
|
89
|
+
export const encodeAttachment: (a: any) => [number, number, number];
|
|
90
|
+
export const encodeIntent: (a: any) => [number, number, number];
|
|
91
|
+
export const encodeMarkdown: (a: number, b: number) => [number, number, number];
|
|
92
|
+
export const encodeMultiRemoteAttachment: (a: any) => [number, number, number];
|
|
93
|
+
export const encodeReaction: (a: any) => [number, number, number];
|
|
94
|
+
export const encodeReadReceipt: (a: any) => [number, number, number];
|
|
95
|
+
export const encodeRemoteAttachment: (a: any) => [number, number, number];
|
|
96
|
+
export const encodeText: (a: number, b: number) => [number, number, number];
|
|
97
|
+
export const encodeTransactionReference: (a: any) => [number, number, number];
|
|
98
|
+
export const encodeWalletSendCalls: (a: any) => [number, number, number];
|
|
99
|
+
export const encryptAttachment: (a: any) => [number, number, number];
|
|
100
|
+
export const unstableconversation_enableProposals: (a: number, b: any) => any;
|
|
101
|
+
export const contentTypeReply: () => any;
|
|
102
|
+
export const __wbg_authhandle_free: (a: number, b: number) => void;
|
|
103
|
+
export const __wbg_signaturerequesthandle_free: (a: number, b: number) => void;
|
|
104
|
+
export const applySignatureRequest: (a: number, b: number) => any;
|
|
105
|
+
export const authhandle_id: (a: number) => number;
|
|
106
|
+
export const authhandle_new: () => number;
|
|
107
|
+
export const authhandle_set: (a: number, b: any) => any;
|
|
108
|
+
export const client_addWalletSignatureRequest: (a: number, b: any) => any;
|
|
109
|
+
export const client_applySignatureRequest: (a: number, b: number) => any;
|
|
110
|
+
export const client_changeRecoveryIdentifierSignatureRequest: (a: number, b: any) => any;
|
|
111
|
+
export const client_createInboxSignatureRequest: (a: number) => [number, number, number];
|
|
112
|
+
export const client_registerIdentity: (a: number, b: number, c: number) => any;
|
|
113
|
+
export const client_revokeAllOtherInstallationsSignatureRequest: (a: number) => any;
|
|
114
|
+
export const client_revokeInstallationsSignatureRequest: (a: number, b: number, c: number) => any;
|
|
115
|
+
export const client_revokeWalletSignatureRequest: (a: number, b: any) => any;
|
|
116
|
+
export const client_signWithInstallationKey: (a: number, b: number, c: number) => [number, number, number];
|
|
117
|
+
export const client_verifySignedWithInstallationKey: (a: number, b: number, c: number, d: any) => [number, number];
|
|
231
118
|
export const revokeInstallationsSignatureRequest: (a: number, b: any, c: number, d: number, e: number, f: number) => [number, number, number];
|
|
232
119
|
export const signaturerequesthandle_addEcdsaSignature: (a: number, b: any) => any;
|
|
233
120
|
export const signaturerequesthandle_addPasskeySignature: (a: number, b: any) => any;
|
|
234
121
|
export const signaturerequesthandle_addScwSignature: (a: number, b: any, c: any, d: bigint, e: number, f: bigint) => any;
|
|
235
122
|
export const signaturerequesthandle_signatureText: (a: number) => any;
|
|
236
|
-
export const unstableconversation_enableProposals: (a: number, b: any) => any;
|
|
237
123
|
export const verifySignedWithPublicKey: (a: number, b: number, c: any, d: any) => [number, number];
|
|
124
|
+
export const __wbg_backend_free: (a: number, b: number) => void;
|
|
125
|
+
export const __wbg_backendbuilder_free: (a: number, b: number) => void;
|
|
126
|
+
export const __wbg_conversationlistitem_free: (a: number, b: number) => void;
|
|
127
|
+
export const __wbg_conversations_free: (a: number, b: number) => void;
|
|
128
|
+
export const __wbg_get_backendbuilder_backendUrl: (a: number) => [number, number];
|
|
129
|
+
export const __wbg_get_backendbuilder_env: (a: number) => [number, number];
|
|
130
|
+
export const __wbg_get_backendbuilder_readonly: (a: number) => number;
|
|
131
|
+
export const __wbg_get_conversationlistitem_conversation: (a: number) => number;
|
|
132
|
+
export const __wbg_get_conversationlistitem_isCommitLogForked: (a: number) => number;
|
|
133
|
+
export const __wbg_get_conversationlistitem_lastMessage: (a: number) => any;
|
|
134
|
+
export const __wbg_messageacknowledgement_free: (a: number, b: number) => void;
|
|
135
|
+
export const __wbg_messagedelivery_free: (a: number, b: number) => void;
|
|
136
|
+
export const __wbg_messagereader_free: (a: number, b: number) => void;
|
|
137
|
+
export const __wbg_set_backendbuilder_backendUrl: (a: number, b: number, c: number) => void;
|
|
138
|
+
export const __wbg_set_backendbuilder_env: (a: number, b: number, c: number) => void;
|
|
139
|
+
export const __wbg_set_backendbuilder_readonly: (a: number, b: number) => void;
|
|
140
|
+
export const __wbg_set_conversationlistitem_conversation: (a: number, b: number) => void;
|
|
141
|
+
export const __wbg_set_conversationlistitem_isCommitLogForked: (a: number, b: number) => void;
|
|
142
|
+
export const __wbg_set_conversationlistitem_lastMessage: (a: number, b: number) => void;
|
|
143
|
+
export const __wbg_streamcloser_free: (a: number, b: number) => void;
|
|
144
|
+
export const backend_appVersion: (a: number) => [number, number];
|
|
145
|
+
export const backend_backendUrl: (a: number) => [number, number];
|
|
146
|
+
export const backend_cacheKey: (a: number) => [number, number];
|
|
147
|
+
export const backend_env: (a: number) => [number, number];
|
|
148
|
+
export const backendbuilder_authCallback: (a: number, b: any) => void;
|
|
149
|
+
export const backendbuilder_authHandle: (a: number, b: number) => void;
|
|
150
|
+
export const backendbuilder_build: (a: number) => [number, number, number];
|
|
151
|
+
export const backendbuilder_new: (a: number, b: number) => number;
|
|
152
|
+
export const backendbuilder_setAppVersion: (a: number, b: number, c: number) => number;
|
|
153
|
+
export const backendbuilder_setEnv: (a: number, b: number, c: number) => number;
|
|
154
|
+
export const backendbuilder_setReadonly: (a: number, b: number) => number;
|
|
155
|
+
export const conversation_beginningDeliveryCursor: (a: number) => [number, number, number];
|
|
156
|
+
export const conversation_messageHistorySnapshot: (a: number, b: number) => [number, number, number];
|
|
157
|
+
export const conversation_messageReader: (a: number, b: number) => [number, number, number];
|
|
158
|
+
export const conversationlistitem_new: (a: number, b: number, c: number) => number;
|
|
159
|
+
export const conversations_beginningDeliveryCursor: (a: number) => [number, number, number];
|
|
160
|
+
export const conversations_createDm: (a: number, b: any, c: number) => any;
|
|
161
|
+
export const conversations_createDmByInboxId: (a: number, b: number, c: number, d: number) => any;
|
|
162
|
+
export const conversations_createGroup: (a: number, b: number, c: number, d: number) => any;
|
|
163
|
+
export const conversations_createGroupByInboxIds: (a: number, b: number, c: number, d: number) => any;
|
|
164
|
+
export const conversations_createGroupOptimistic: (a: number, b: number) => [number, number, number];
|
|
165
|
+
export const conversations_deleteMessageById: (a: number, b: number, c: number) => [number, number, number];
|
|
166
|
+
export const conversations_findDmByTargetInboxId: (a: number, b: number, c: number) => [number, number, number];
|
|
167
|
+
export const conversations_findEnrichedMessageById: (a: number, b: number, c: number) => any;
|
|
168
|
+
export const conversations_findGroupById: (a: number, b: number, c: number) => [number, number, number];
|
|
169
|
+
export const conversations_findMessageById: (a: number, b: number, c: number) => [number, number, number];
|
|
170
|
+
export const conversations_getHmacKeys: (a: number) => [number, number, number];
|
|
171
|
+
export const conversations_list: (a: number, b: number) => [number, number, number];
|
|
172
|
+
export const conversations_messageHistorySnapshot: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number, number];
|
|
173
|
+
export const conversations_messageReader: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number, number];
|
|
174
|
+
export const conversations_stream: (a: number, b: any, c: number) => [number, number, number];
|
|
175
|
+
export const conversations_streamAllMessages: (a: number, b: any, c: number, d: number, e: number) => [number, number, number];
|
|
176
|
+
export const conversations_streamConsent: (a: number, b: any) => [number, number, number];
|
|
177
|
+
export const conversations_streamLocal: (a: number, b: number) => any;
|
|
178
|
+
export const conversations_streamMessageDeletions: (a: number, b: any) => [number, number, number];
|
|
179
|
+
export const conversations_streamPreferences: (a: number, b: any) => [number, number, number];
|
|
180
|
+
export const conversations_sync: (a: number) => any;
|
|
181
|
+
export const conversations_syncAllConversations: (a: number, b: number, c: number) => any;
|
|
182
|
+
export const createClientWithBackend: (a: number, b: number, c: number, d: any, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: bigint, n: number) => any;
|
|
183
|
+
export const messageacknowledgement_acknowledge: (a: number) => [number, number];
|
|
184
|
+
export const messageacknowledgement_checkOwner: (a: number) => [number, number, number];
|
|
185
|
+
export const messageacknowledgement_enrichedMessage: (a: number) => [number, number, number];
|
|
186
|
+
export const messageacknowledgement_reject: (a: number) => void;
|
|
187
|
+
export const messagedelivery_acknowledgement: (a: number) => number;
|
|
188
|
+
export const messagedelivery_cursor: (a: number) => any;
|
|
189
|
+
export const messagedelivery_message: (a: number) => any;
|
|
190
|
+
export const messagereader_catchUpChanged: (a: number) => any;
|
|
191
|
+
export const messagereader_catchUpSnapshot: (a: number) => any;
|
|
192
|
+
export const messagereader_close: (a: number) => void;
|
|
193
|
+
export const messagereader_nextDelivery: (a: number) => any;
|
|
194
|
+
export const messagereader_updateFilter: (a: number, b: number, c: number, d: number) => void;
|
|
195
|
+
export const messagereader_updateScope: (a: number, b: number, c: number) => [number, number];
|
|
196
|
+
export const opfsClearAll: () => any;
|
|
197
|
+
export const opfsDeleteFile: (a: number, b: number) => any;
|
|
198
|
+
export const opfsExportDb: (a: number, b: number) => any;
|
|
199
|
+
export const opfsFileCount: () => any;
|
|
200
|
+
export const opfsFileExists: (a: number, b: number) => any;
|
|
201
|
+
export const opfsImportDb: (a: number, b: number, c: any) => any;
|
|
202
|
+
export const opfsInit: () => any;
|
|
203
|
+
export const opfsListFiles: () => any;
|
|
204
|
+
export const opfsPoolCapacity: () => any;
|
|
205
|
+
export const streamcloser_catchUpChanged: (a: number) => any;
|
|
206
|
+
export const streamcloser_catchUpSnapshot: (a: number) => any;
|
|
207
|
+
export const streamcloser_end: (a: number) => void;
|
|
208
|
+
export const streamcloser_endAndWait: (a: number) => any;
|
|
209
|
+
export const streamcloser_isClosed: (a: number) => number;
|
|
210
|
+
export const streamcloser_waitForReady: (a: number) => any;
|
|
211
|
+
export const __wbg_client_free: (a: number, b: number) => void;
|
|
238
212
|
export const __wbg_devicesync_free: (a: number, b: number) => void;
|
|
239
|
-
export const
|
|
213
|
+
export const __wbg_unstablechangecallbacks_free: (a: number, b: number) => void;
|
|
214
|
+
export const client_accountIdentifier: (a: number) => any;
|
|
215
|
+
export const client_apiAggregateStatistics: (a: number) => [number, number];
|
|
216
|
+
export const client_apiIdentityStatistics: (a: number) => any;
|
|
217
|
+
export const client_apiStatistics: (a: number) => any;
|
|
218
|
+
export const client_appVersion: (a: number) => [number, number];
|
|
219
|
+
export const client_canMessage: (a: number, b: number, c: number) => any;
|
|
220
|
+
export const client_clearAllStatistics: (a: number) => void;
|
|
221
|
+
export const client_close: (a: number) => any;
|
|
222
|
+
export const client_conversations: (a: number) => number;
|
|
223
|
+
export const client_device_sync: (a: number) => number;
|
|
224
|
+
export const client_fetchLatestInboxUpdatesCount: (a: number, b: number, c: number, d: number) => any;
|
|
225
|
+
export const client_fetchOwnInboxUpdatesCount: (a: number, b: number) => any;
|
|
226
|
+
export const client_findInboxIdByIdentity: (a: number, b: any) => any;
|
|
227
|
+
export const client_getKeyPackageStatusesForInstallationIds: (a: number, b: number, c: number) => any;
|
|
228
|
+
export const client_getLatestInboxState: (a: number, b: number, c: number) => any;
|
|
229
|
+
export const client_inboxId: (a: number) => [number, number];
|
|
230
|
+
export const client_inboxState: (a: number, b: number) => any;
|
|
231
|
+
export const client_inboxStateFromInboxIds: (a: number, b: number, c: number, d: number) => any;
|
|
232
|
+
export const client_installationId: (a: number) => [number, number];
|
|
233
|
+
export const client_installationIdBytes: (a: number) => any;
|
|
234
|
+
export const client_isRegistered: (a: number) => number;
|
|
235
|
+
export const client_libxmtpVersion: (a: number) => [number, number];
|
|
240
236
|
export const client_refreshServerConfiguration: (a: number) => any;
|
|
241
237
|
export const client_serverConfiguration: (a: number) => any;
|
|
242
|
-
export const
|
|
243
|
-
export const
|
|
244
|
-
export const
|
|
238
|
+
export const client_syncPreferences: (a: number) => any;
|
|
239
|
+
export const client_waitForRegistrationVisible: (a: number, b: number) => any;
|
|
240
|
+
export const createClient: (a: number, b: number, c: number, d: number, e: any, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: bigint, q: number, r: number, s: number, t: number) => any;
|
|
245
241
|
export const devicesync_archiveMetadata: (a: number, b: any, c: any) => any;
|
|
246
242
|
export const devicesync_createArchive: (a: number, b: any, c: any) => any;
|
|
247
243
|
export const devicesync_importArchive: (a: number, b: any, c: any) => any;
|
|
248
244
|
export const devicesync_syncAllDeviceSyncGroups: (a: number) => any;
|
|
249
245
|
export const fetchServerConfiguration: (a: number, b: number, c: number, d: number) => any;
|
|
246
|
+
export const generateInboxId: (a: any, b: number, c: bigint) => [number, number, number, number];
|
|
247
|
+
export const getInboxIdForIdentifier: (a: number, b: any) => any;
|
|
248
|
+
export const inboxStateFromInboxIds: (a: number, b: number, c: number) => any;
|
|
250
249
|
export const metadataFieldName: (a: number) => [number, number];
|
|
250
|
+
export const unstablechangecallbacks_appData: (a: number, b: any) => void;
|
|
251
|
+
export const unstablechangecallbacks_new: () => number;
|
|
251
252
|
export const rust_zstd_wasm_shim_calloc: (a: number, b: number) => number;
|
|
252
253
|
export const rust_zstd_wasm_shim_free: (a: number) => void;
|
|
253
254
|
export const rust_zstd_wasm_shim_malloc: (a: number) => number;
|
package/package.json
CHANGED
|
@@ -1,86 +1,83 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xmtp/wasm-bindings",
|
|
3
|
-
"version": "1.12.0-dev.
|
|
3
|
+
"version": "1.12.0-dev.9f72722",
|
|
4
4
|
"description": "WASM bindings for the libXMTP rust library",
|
|
5
5
|
"keywords": [
|
|
6
|
-
"xmtp",
|
|
7
|
-
"messaging",
|
|
8
|
-
"web3",
|
|
9
|
-
"js",
|
|
10
6
|
"javascript",
|
|
7
|
+
"js",
|
|
8
|
+
"messaging",
|
|
11
9
|
"node",
|
|
12
10
|
"nodejs",
|
|
13
|
-
"wasm"
|
|
11
|
+
"wasm",
|
|
12
|
+
"web3",
|
|
13
|
+
"xmtp"
|
|
14
14
|
],
|
|
15
15
|
"homepage": "https://github.com/xmtp/libxmtp",
|
|
16
16
|
"bugs": {
|
|
17
17
|
"url": "https://github.com/xmtp/libxmtp/issues"
|
|
18
18
|
},
|
|
19
|
+
"license": "MIT",
|
|
19
20
|
"repository": {
|
|
20
21
|
"type": "git",
|
|
21
22
|
"url": "git+https://github.com/xmtp/libxmtp.git",
|
|
22
23
|
"directory": "bindings/wasm"
|
|
23
24
|
},
|
|
24
|
-
"
|
|
25
|
+
"files": [
|
|
26
|
+
"dist"
|
|
27
|
+
],
|
|
25
28
|
"type": "module",
|
|
29
|
+
"main": "dist/bindings_wasm.js",
|
|
30
|
+
"types": "dist/bindings_wasm.d.ts",
|
|
26
31
|
"exports": {
|
|
27
32
|
".": {
|
|
28
33
|
"types": "./dist/bindings_wasm.d.ts",
|
|
29
34
|
"default": "./dist/bindings_wasm.js"
|
|
30
35
|
}
|
|
31
36
|
},
|
|
32
|
-
"
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
"
|
|
36
|
-
|
|
37
|
+
"publishConfig": {
|
|
38
|
+
"access": "public",
|
|
39
|
+
"provenance": true,
|
|
40
|
+
"registry": "https://registry.npmjs.org/"
|
|
41
|
+
},
|
|
42
|
+
"devDependencies": {
|
|
43
|
+
"@sqlite.org/sqlite-wasm": "^3.47.0-build1",
|
|
44
|
+
"@vitest/browser": "^4.1.10",
|
|
45
|
+
"@vitest/browser-playwright": "^4.1.10",
|
|
46
|
+
"@xmtp/content-type-remote-attachment": "^2.0.3",
|
|
47
|
+
"binaryen": "^125.0.0",
|
|
48
|
+
"playwright": "1.61.1",
|
|
49
|
+
"tsx": "^4.23.1",
|
|
50
|
+
"typescript": "7.0.2",
|
|
51
|
+
"viem": "^2.55.10",
|
|
52
|
+
"vite": "^8.3.0",
|
|
53
|
+
"vitest": "^4.1.10"
|
|
54
|
+
},
|
|
55
|
+
"engines": {
|
|
56
|
+
"node": ">=22.12.0"
|
|
57
|
+
},
|
|
37
58
|
"scripts": {
|
|
38
|
-
"build": "
|
|
39
|
-
"build:macos": "yarn clean && yarn build:web:macos && yarn clean:release",
|
|
59
|
+
"build:macos": "pnpm clean && pnpm build:web:macos && pnpm clean:release",
|
|
40
60
|
"build:test": "RUSTFLAGS=\"-Ctarget-feature=+bulk-memory,+mutable-globals --cfg getrandom_backend=\\\"wasm_js\\\"\" wasm-pack build --no-opt --target web --out-dir ./dist --no-pack --release -- --features test-utils",
|
|
41
61
|
"build:test:macos": "CC_wasm32_unknown_unknown=/opt/homebrew/opt/llvm/bin/clang RUSTFLAGS=\"-Ctarget-feature=+bulk-memory,+mutable-globals --cfg getrandom_backend=\\\"wasm_js\\\"\" wasm-pack build --no-opt --target web --out-dir ./dist --no-pack --release -- --features test-utils",
|
|
62
|
+
"build:wasm": "pnpm clean && pnpm build:web && pnpm clean:release",
|
|
42
63
|
"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",
|
|
43
64
|
"build:web:macos": "CC_wasm32_unknown_unknown=/opt/homebrew/opt/llvm/bin/clang RUSTFLAGS=\"-Ctarget-feature=+bulk-memory,+mutable-globals --cfg getrandom_backend=\\\"wasm_js\\\"\" wasm-pack build --target web --out-dir ./dist --no-pack --release",
|
|
44
65
|
"check": "cargo check --target wasm32-unknown-unknown",
|
|
45
66
|
"check:macos": "CC_wasm32_unknown_unknown=/opt/homebrew/opt/llvm/bin/clang cargo check --target wasm32-unknown-unknown",
|
|
46
67
|
"clean": "rm -rf ./dist",
|
|
47
68
|
"clean:release": "rm ./dist/.gitignore",
|
|
48
|
-
"format": "
|
|
49
|
-
"format:check": "
|
|
50
|
-
"lint": "
|
|
69
|
+
"format": "oxfmt --write .",
|
|
70
|
+
"format:check": "oxfmt --check .",
|
|
71
|
+
"lint": "oxlint .",
|
|
51
72
|
"lint:clippy": "cargo clippy --locked --all-features --target wasm32-unknown-unknown --no-deps -- -D warnings",
|
|
52
73
|
"lint:clippy:macos": "CC_wasm32_unknown_unknown=/opt/homebrew/opt/llvm/bin/clang cargo clippy --locked --all-features --target wasm32-unknown-unknown --no-deps -- -D warnings",
|
|
53
74
|
"lint:fmt": "cargo fmt --check",
|
|
54
|
-
"lint:macos": "
|
|
55
|
-
"
|
|
75
|
+
"lint:macos": "pnpm lint:clippy:macos && pnpm lint:fmt",
|
|
76
|
+
"lint:rust": "pnpm lint:clippy && pnpm lint:fmt",
|
|
56
77
|
"test": "cargo test --target wasm32-unknown-unknown",
|
|
57
|
-
"test:integration": "
|
|
58
|
-
"test:integration:macos": "CC_wasm32_unknown_unknown=/opt/homebrew/opt/llvm/bin/clang
|
|
78
|
+
"test:integration": "pnpm build:test && vitest run",
|
|
79
|
+
"test:integration:macos": "CC_wasm32_unknown_unknown=/opt/homebrew/opt/llvm/bin/clang pnpm build:test:macos && vitest run",
|
|
59
80
|
"test:macos": "CC_wasm32_unknown_unknown=/opt/homebrew/opt/llvm/bin/clang cargo test --target wasm32-unknown-unknown",
|
|
60
81
|
"typecheck": "tsc --noEmit"
|
|
61
|
-
},
|
|
62
|
-
"devDependencies": {
|
|
63
|
-
"@ianvs/prettier-plugin-sort-imports": "^4.7.0",
|
|
64
|
-
"@sqlite.org/sqlite-wasm": "^3.47.0-build1",
|
|
65
|
-
"@vitest/browser": "^4.1.10",
|
|
66
|
-
"@vitest/browser-playwright": "^4.1.10",
|
|
67
|
-
"@xmtp/content-type-remote-attachment": "^2.0.3",
|
|
68
|
-
"binaryen": "^125.0.0",
|
|
69
|
-
"playwright": "=1.61.1",
|
|
70
|
-
"prettier": "^3.7.4",
|
|
71
|
-
"prettier-plugin-packagejson": "^3.0.0",
|
|
72
|
-
"tsx": "^4.20.6",
|
|
73
|
-
"typescript": "^5.9.3",
|
|
74
|
-
"viem": "^2.31.3",
|
|
75
|
-
"vitest": "^4.1.10"
|
|
76
|
-
},
|
|
77
|
-
"packageManager": "yarn@4.11.0",
|
|
78
|
-
"engines": {
|
|
79
|
-
"node": ">=22"
|
|
80
|
-
},
|
|
81
|
-
"publishConfig": {
|
|
82
|
-
"access": "public",
|
|
83
|
-
"provenance": true,
|
|
84
|
-
"registry": "https://registry.npmjs.org/"
|
|
85
82
|
}
|
|
86
|
-
}
|
|
83
|
+
}
|