@xmtp/wasm-bindings 1.10.0 → 1.11.0-dev.b5cdc06

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.
@@ -7,6 +7,22 @@
7
7
  */
8
8
 
9
9
  type ReadableStreamType = "bytes";
10
+ /**
11
+ * A single per-worker interval override (nanoseconds).
12
+ */
13
+ export interface WorkerIntervalOverride {
14
+ kind: WorkerKind;
15
+ intervalNs: number;
16
+ }
17
+
18
+ /**
19
+ * A single per-worker jitter override (nanoseconds).
20
+ */
21
+ export interface WorkerJitterOverride {
22
+ kind: WorkerKind;
23
+ jitterNs: number;
24
+ }
25
+
10
26
  /**
11
27
  * An available archive in the sync group
12
28
  */
@@ -27,6 +43,46 @@ export interface ArchiveMetadata {
27
43
  endNs?: bigint;
28
44
  }
29
45
 
46
+ /**
47
+ * Options for [`Conversation::enableProposals`]. Mirrors
48
+ * [`xmtp_mls::groups::EnableProposalsOptions`].
49
+ */
50
+ export interface EnableProposalsOptions {
51
+ /**
52
+ * Skip the pre-flight key-package capability check. Post-d14n
53
+ * every client supports proposals by version floor alone; set
54
+ * `true` to bypass the per-member scan in that environment.
55
+ */
56
+ force?: boolean;
57
+ /**
58
+ * Override the `MIN_SUPPORTED_PROTOCOL_VERSION` floor. `None`
59
+ * defaults to `xmtp_configuration::PROPOSALS_MIN_PROTOCOL_VERSION`.
60
+ */
61
+ minVersion?: string;
62
+ }
63
+
64
+ /**
65
+ * Options for `waitForRegistrationVisible`.
66
+ *
67
+ * Both `quorumPercentage` and `quorumAbsolute` are optional; if neither is
68
+ * provided, the default of 50 % is used. When both are provided,
69
+ * `quorumAbsolute` takes precedence.
70
+ */
71
+ export interface WasmVisibilityConfirmationOptions {
72
+ /**
73
+ * Fraction of nodes that must confirm (e.g. 0.5 for 50 %).
74
+ */
75
+ quorumPercentage?: number;
76
+ /**
77
+ * Exact number of nodes that must confirm.
78
+ */
79
+ quorumAbsolute?: number;
80
+ /**
81
+ * Maximum wait time in milliseconds (default: 30 000).
82
+ */
83
+ timeoutMs?: number;
84
+ }
85
+
30
86
  /**
31
87
  * Options for creating or sending an archive
32
88
  */
@@ -89,6 +145,28 @@ export interface LogOptions {
89
145
  level?: LogLevel;
90
146
  }
91
147
 
148
+ /**
149
+ * Tuning for the background worker scheduler. All fields optional.
150
+ */
151
+ export interface WorkerConfigOptions {
152
+ /**
153
+ * Global default interval for all workers, in nanoseconds.
154
+ */
155
+ defaultIntervalNs?: number;
156
+ /**
157
+ * Per-worker interval overrides (nanoseconds).
158
+ */
159
+ workerIntervalsNs?: WorkerIntervalOverride[];
160
+ /**
161
+ * Per-worker jitter overrides (nanoseconds).
162
+ */
163
+ workerJittersNs?: WorkerJitterOverride[];
164
+ /**
165
+ * Workers to disable.
166
+ */
167
+ disabledWorkers?: WorkerKind[];
168
+ }
169
+
92
170
  export interface Action {
93
171
  id: string;
94
172
  label: string;
@@ -520,7 +598,7 @@ export class Client {
520
598
  */
521
599
  inboxState(refreshFromNetwork: boolean): Promise<InboxState>;
522
600
  inboxStateFromInboxIds(inboxIds: string[], refreshFromNetwork: boolean): Promise<InboxState[]>;
523
- registerIdentity(signatureRequest: SignatureRequestHandle): Promise<void>;
601
+ registerIdentity(signatureRequest: SignatureRequestHandle, visibilityConfirmationOptions?: WasmVisibilityConfirmationOptions | null): Promise<void>;
524
602
  revokeAllOtherInstallationsSignatureRequest(): Promise<SignatureRequestHandle | undefined>;
525
603
  revokeInstallationsSignatureRequest(installationIds: Uint8Array[]): Promise<SignatureRequestHandle>;
526
604
  revokeWalletSignatureRequest(identifier: Identifier): Promise<SignatureRequestHandle>;
@@ -528,6 +606,15 @@ export class Client {
528
606
  signWithInstallationKey(signatureText: string): Uint8Array;
529
607
  syncPreferences(): Promise<GroupSyncSummary>;
530
608
  verifySignedWithInstallationKey(signatureText: string, signatureBytes: Uint8Array): void;
609
+ /**
610
+ * Wait until this client's registration is visible on the network.
611
+ *
612
+ * For V3 clients (no cursor stored) this falls back to checking
613
+ * `isRegistered`. For D14n clients it polls each node directly and
614
+ * returns once a quorum confirms both the identity-update and
615
+ * key-package envelopes are visible.
616
+ */
617
+ waitForRegistrationVisible(options?: WasmVisibilityConfirmationOptions | null): Promise<void>;
531
618
  readonly accountIdentifier: Identifier;
532
619
  readonly appVersion: string;
533
620
  readonly inboxId: string;
@@ -587,6 +674,16 @@ export class Conversation {
587
674
  countMessages(opts?: ListMessagesOptions | null): Promise<bigint>;
588
675
  createdAtNs(): bigint;
589
676
  dmPeerInboxId(): string;
677
+ /**
678
+ * Enable AppData-proposal-based metadata updates on this group.
679
+ *
680
+ * Stages the bootstrap commit that migrates the group's metadata
681
+ * from the legacy GroupContextExtensions shape into the OpenMLS
682
+ * AppData dictionary. Hard-fails if any member's latest key
683
+ * package doesn't advertise `ProposalType::AppDataUpdate`. One-
684
+ * way: migrated groups cannot return to the legacy path.
685
+ */
686
+ enableProposals(options: EnableProposalsOptions): Promise<void>;
590
687
  findDuplicateDms(): Promise<Conversation[]>;
591
688
  findEnrichedMessages(opts?: ListMessagesOptions | null): Promise<DecodedMessage[]>;
592
689
  findMessages(opts?: ListMessagesOptions | null): Promise<Message[]>;
@@ -949,6 +1046,15 @@ export class WasmBindgenTestContext {
949
1046
  run(tests: any[]): Promise<any>;
950
1047
  }
951
1048
 
1049
+ export enum WorkerKind {
1050
+ DeviceSync = 0,
1051
+ DisappearingMessages = 1,
1052
+ KeyPackageCleaner = 2,
1053
+ CommitLog = 3,
1054
+ TaskRunner = 4,
1055
+ PendingSelfRemove = 5,
1056
+ }
1057
+
952
1058
  export enum XmtpEnv {
953
1059
  Local = 0,
954
1060
  Dev = 1,
@@ -1038,7 +1144,7 @@ export function contentTypeTransactionReference(): ContentTypeId;
1038
1144
 
1039
1145
  export function contentTypeWalletSendCalls(): ContentTypeId;
1040
1146
 
1041
- export function createClient(host: string, inboxId: string, accountIdentifier: Identifier, dbPath?: string | null, encryptionKey?: Uint8Array | null, deviceSyncMode?: DeviceSyncMode | null, logOptions?: LogOptions | null, allowOffline?: boolean | null, appVersion?: string | null, gatewayHost?: string | null, nonce?: bigint | null, authCallback?: any | null, authHandle?: AuthHandle | null, clientMode?: ClientMode | null): Promise<Client>;
1147
+ export function createClient(host: string, inboxId: string, accountIdentifier: Identifier, dbPath?: string | null, encryptionKey?: Uint8Array | null, deviceSyncMode?: DeviceSyncMode | null, workerConfig?: WorkerConfigOptions | null, logOptions?: LogOptions | null, allowOffline?: boolean | null, appVersion?: string | null, gatewayHost?: string | null, nonce?: bigint | null, authCallback?: any | null, authHandle?: AuthHandle | null, clientMode?: ClientMode | null): Promise<Client>;
1042
1148
 
1043
1149
  /**
1044
1150
  * Create a client from a pre-built Backend.
@@ -1046,7 +1152,7 @@ export function createClient(host: string, inboxId: string, accountIdentifier: I
1046
1152
  * The Backend encapsulates all API configuration (env, hosts, auth, TLS).
1047
1153
  * This function only needs identity and database configuration.
1048
1154
  */
1049
- export function createClientWithBackend(backend: Backend, inboxId: string, accountIdentifier: Identifier, dbPath?: string | null, encryptionKey?: Uint8Array | null, deviceSyncMode?: DeviceSyncMode | null, logOptions?: LogOptions | null, allowOffline?: boolean | null, nonce?: bigint | null): Promise<Client>;
1155
+ export function createClientWithBackend(backend: Backend, inboxId: string, accountIdentifier: Identifier, dbPath?: string | null, encryptionKey?: Uint8Array | null, deviceSyncMode?: DeviceSyncMode | null, workerConfig?: WorkerConfigOptions | null, logOptions?: LogOptions | null, allowOffline?: boolean | null, nonce?: bigint | null): Promise<Client>;
1050
1156
 
1051
1157
  /**
1052
1158
  * Decrypts an encrypted payload from a remote attachment.
@@ -1156,8 +1262,59 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
1156
1262
 
1157
1263
  export interface InitOutput {
1158
1264
  readonly memory: WebAssembly.Memory;
1265
+ readonly opfsClearAll: () => any;
1266
+ readonly opfsDeleteFile: (a: number, b: number) => any;
1267
+ readonly opfsExportDb: (a: number, b: number) => any;
1268
+ readonly opfsFileCount: () => any;
1269
+ readonly opfsFileExists: (a: number, b: number) => any;
1270
+ readonly opfsImportDb: (a: number, b: number, c: any) => any;
1271
+ readonly opfsInit: () => any;
1272
+ readonly opfsListFiles: () => any;
1273
+ readonly opfsPoolCapacity: () => any;
1274
+ readonly contentTypeActions: () => any;
1275
+ readonly contentTypeAttachment: () => any;
1276
+ readonly contentTypeGroupUpdated: () => any;
1277
+ readonly contentTypeIntent: () => any;
1278
+ readonly contentTypeMarkdown: () => any;
1279
+ readonly contentTypeMultiRemoteAttachment: () => any;
1280
+ readonly contentTypeReaction: () => any;
1281
+ readonly contentTypeReadReceipt: () => any;
1282
+ readonly contentTypeRemoteAttachment: () => any;
1283
+ readonly contentTypeReply: () => any;
1284
+ readonly contentTypeText: () => any;
1285
+ readonly contentTypeTransactionReference: () => any;
1286
+ readonly contentTypeWalletSendCalls: () => any;
1287
+ readonly decryptAttachment: (a: number, b: number, c: any) => [number, number, number];
1288
+ readonly encodeActions: (a: any) => [number, number, number];
1289
+ readonly encodeAttachment: (a: any) => [number, number, number];
1290
+ readonly encodeIntent: (a: any) => [number, number, number];
1291
+ readonly encodeMarkdown: (a: number, b: number) => [number, number, number];
1292
+ readonly encodeMultiRemoteAttachment: (a: any) => [number, number, number];
1293
+ readonly encodeReaction: (a: any) => [number, number, number];
1294
+ readonly encodeReadReceipt: (a: any) => [number, number, number];
1295
+ readonly encodeRemoteAttachment: (a: any) => [number, number, number];
1296
+ readonly encodeText: (a: number, b: number) => [number, number, number];
1297
+ readonly encodeTransactionReference: (a: any) => [number, number, number];
1298
+ readonly encodeWalletSendCalls: (a: any) => [number, number, number];
1299
+ readonly encryptAttachment: (a: any) => [number, number, number];
1300
+ readonly client_fetchLatestInboxUpdatesCount: (a: number, b: number, c: number, d: number) => any;
1301
+ readonly client_fetchOwnInboxUpdatesCount: (a: number, b: number) => any;
1302
+ readonly client_getConsentState: (a: number, b: number, c: number, d: number) => any;
1303
+ readonly client_getKeyPackageStatusesForInstallationIds: (a: number, b: number, c: number) => any;
1304
+ readonly client_getLatestInboxState: (a: number, b: number, c: number) => any;
1305
+ readonly client_inboxState: (a: number, b: number) => any;
1306
+ readonly client_setConsentStates: (a: number, b: number, c: number) => any;
1307
+ readonly conversation_consentState: (a: number) => [number, number, number];
1308
+ readonly conversation_updateConsentState: (a: number, b: number) => [number, number];
1309
+ readonly generateInboxId: (a: any, b: number, c: bigint) => [number, number, number, number];
1310
+ readonly getInboxIdForIdentifier: (a: number, b: any) => any;
1311
+ readonly inboxStateFromInboxIds: (a: number, b: number, c: number) => any;
1312
+ readonly metadataFieldName: (a: number) => [number, number];
1159
1313
  readonly __wbg_backend_free: (a: number, b: number) => void;
1160
1314
  readonly __wbg_backendbuilder_free: (a: number, b: number) => void;
1315
+ readonly __wbg_client_free: (a: number, b: number) => void;
1316
+ readonly __wbg_conversation_free: (a: number, b: number) => void;
1317
+ readonly __wbg_devicesync_free: (a: number, b: number) => void;
1161
1318
  readonly __wbg_get_backendbuilder_env: (a: number) => number;
1162
1319
  readonly __wbg_get_backendbuilder_readonly: (a: number) => number;
1163
1320
  readonly __wbg_set_backendbuilder_env: (a: number, b: number) => void;
@@ -1174,34 +1331,24 @@ export interface InitOutput {
1174
1331
  readonly backendbuilder_setAppVersion: (a: number, b: number, c: number) => number;
1175
1332
  readonly backendbuilder_setGatewayHost: (a: number, b: number, c: number) => number;
1176
1333
  readonly backendbuilder_setReadonly: (a: number, b: number) => number;
1177
- 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: bigint) => any;
1178
- readonly client_fetchLatestInboxUpdatesCount: (a: number, b: number, c: number, d: number) => any;
1179
- readonly client_fetchOwnInboxUpdatesCount: (a: number, b: number) => any;
1180
- readonly client_getKeyPackageStatusesForInstallationIds: (a: number, b: number, c: number) => any;
1181
- readonly client_getLatestInboxState: (a: number, b: number, c: number) => any;
1182
- readonly client_inboxState: (a: number, b: number) => any;
1183
- readonly inboxStateFromInboxIds: (a: number, b: number, c: number) => any;
1184
- readonly metadataFieldName: (a: number) => [number, number];
1185
- readonly __wbg_authhandle_free: (a: number, b: number) => void;
1186
- readonly __wbg_conversation_free: (a: number, b: number) => void;
1187
- readonly __wbg_conversationlistitem_free: (a: number, b: number) => void;
1188
- readonly __wbg_conversations_free: (a: number, b: number) => void;
1189
- readonly __wbg_get_conversationlistitem_conversation: (a: number) => number;
1190
- readonly __wbg_get_conversationlistitem_isCommitLogForked: (a: number) => number;
1191
- readonly __wbg_get_conversationlistitem_lastMessage: (a: number) => any;
1192
- readonly __wbg_set_conversationlistitem_conversation: (a: number, b: number) => void;
1193
- readonly __wbg_set_conversationlistitem_isCommitLogForked: (a: number, b: number) => void;
1194
- readonly __wbg_set_conversationlistitem_lastMessage: (a: number, b: number) => void;
1195
- readonly __wbg_streamcloser_free: (a: number, b: number) => void;
1196
- readonly authhandle_id: (a: number) => number;
1197
- readonly authhandle_new: () => number;
1198
- readonly authhandle_set: (a: number, b: any) => any;
1199
- readonly client_getConsentState: (a: number, b: number, c: number, d: number) => any;
1200
- readonly client_setConsentStates: (a: number, b: number, c: number) => any;
1201
- readonly contentTypeGroupUpdated: () => any;
1202
- readonly contentTypeIntent: () => any;
1203
- readonly contentTypeLeaveRequest: () => any;
1204
- readonly contentTypeReadReceipt: () => any;
1334
+ readonly client_accountIdentifier: (a: number) => any;
1335
+ readonly client_apiAggregateStatistics: (a: number) => [number, number];
1336
+ readonly client_apiIdentityStatistics: (a: number) => any;
1337
+ readonly client_apiStatistics: (a: number) => any;
1338
+ readonly client_appVersion: (a: number) => [number, number];
1339
+ readonly client_canMessage: (a: number, b: number, c: number) => any;
1340
+ readonly client_clearAllStatistics: (a: number) => void;
1341
+ readonly client_conversations: (a: number) => number;
1342
+ readonly client_device_sync: (a: number) => number;
1343
+ readonly client_findInboxIdByIdentity: (a: number, b: any) => any;
1344
+ readonly client_inboxId: (a: number) => [number, number];
1345
+ readonly client_inboxStateFromInboxIds: (a: number, b: number, c: number, d: number) => any;
1346
+ readonly client_installationId: (a: number) => [number, number];
1347
+ readonly client_installationIdBytes: (a: number) => any;
1348
+ readonly client_isRegistered: (a: number) => number;
1349
+ readonly client_libxmtpVersion: (a: number) => [number, number];
1350
+ readonly client_syncPreferences: (a: number) => any;
1351
+ readonly client_waitForRegistrationVisible: (a: number, b: number) => any;
1205
1352
  readonly conversation_addAdmin: (a: number, b: number, c: number) => any;
1206
1353
  readonly conversation_addMembers: (a: number, b: number, c: number) => any;
1207
1354
  readonly conversation_addMembersByIdentity: (a: number, b: number, c: number) => any;
@@ -1209,10 +1356,10 @@ export interface InitOutput {
1209
1356
  readonly conversation_addedByInboxId: (a: number) => [number, number, number, number];
1210
1357
  readonly conversation_adminList: (a: number) => [number, number, number, number];
1211
1358
  readonly conversation_appData: (a: number) => [number, number, number, number];
1212
- readonly conversation_consentState: (a: number) => [number, number, number];
1213
1359
  readonly conversation_countMessages: (a: number, b: number) => any;
1214
1360
  readonly conversation_createdAtNs: (a: number) => bigint;
1215
1361
  readonly conversation_dmPeerInboxId: (a: number) => [number, number, number, number];
1362
+ readonly conversation_enableProposals: (a: number, b: any) => any;
1216
1363
  readonly conversation_findDuplicateDms: (a: number) => any;
1217
1364
  readonly conversation_findEnrichedMessages: (a: number, b: number) => any;
1218
1365
  readonly conversation_findMessages: (a: number, b: number) => any;
@@ -1260,12 +1407,47 @@ export interface InitOutput {
1260
1407
  readonly conversation_superAdminList: (a: number) => [number, number, number, number];
1261
1408
  readonly conversation_sync: (a: number) => any;
1262
1409
  readonly conversation_updateAppData: (a: number, b: number, c: number) => any;
1263
- readonly conversation_updateConsentState: (a: number, b: number) => [number, number];
1264
1410
  readonly conversation_updateGroupDescription: (a: number, b: number, c: number) => any;
1265
1411
  readonly conversation_updateGroupImageUrlSquare: (a: number, b: number, c: number) => any;
1266
1412
  readonly conversation_updateGroupName: (a: number, b: number, c: number) => any;
1267
1413
  readonly conversation_updateMessageDisappearingSettings: (a: number, b: any) => any;
1268
1414
  readonly conversation_updatePermissionPolicy: (a: number, b: number, c: number, d: number) => any;
1415
+ 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: number, q: number, r: bigint, s: number, t: number, u: number) => any;
1416
+ 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) => any;
1417
+ readonly devicesync_archiveMetadata: (a: number, b: any, c: any) => any;
1418
+ readonly devicesync_createArchive: (a: number, b: any, c: any) => any;
1419
+ readonly devicesync_importArchive: (a: number, b: any, c: any) => any;
1420
+ readonly devicesync_listAvailableArchives: (a: number, b: bigint) => [number, number, number, number];
1421
+ readonly devicesync_processSyncArchive: (a: number, b: number, c: number) => any;
1422
+ readonly devicesync_sendSyncArchive: (a: number, b: any, c: number, d: number, e: number, f: number) => any;
1423
+ readonly devicesync_sendSyncRequest: (a: number, b: any, c: number, d: number) => any;
1424
+ readonly devicesync_syncAllDeviceSyncGroups: (a: number) => any;
1425
+ readonly __wbg_authhandle_free: (a: number, b: number) => void;
1426
+ readonly __wbg_conversationlistitem_free: (a: number, b: number) => void;
1427
+ readonly __wbg_conversations_free: (a: number, b: number) => void;
1428
+ readonly __wbg_get_conversationlistitem_conversation: (a: number) => number;
1429
+ readonly __wbg_get_conversationlistitem_isCommitLogForked: (a: number) => number;
1430
+ readonly __wbg_get_conversationlistitem_lastMessage: (a: number) => any;
1431
+ readonly __wbg_set_conversationlistitem_conversation: (a: number, b: number) => void;
1432
+ readonly __wbg_set_conversationlistitem_isCommitLogForked: (a: number, b: number) => void;
1433
+ readonly __wbg_set_conversationlistitem_lastMessage: (a: number, b: number) => void;
1434
+ readonly __wbg_signaturerequesthandle_free: (a: number, b: number) => void;
1435
+ readonly __wbg_streamcloser_free: (a: number, b: number) => void;
1436
+ readonly applySignatureRequest: (a: number, b: number) => any;
1437
+ readonly authhandle_id: (a: number) => number;
1438
+ readonly authhandle_new: () => number;
1439
+ readonly authhandle_set: (a: number, b: any) => any;
1440
+ readonly client_addWalletSignatureRequest: (a: number, b: any) => any;
1441
+ readonly client_applySignatureRequest: (a: number, b: number) => any;
1442
+ readonly client_changeRecoveryIdentifierSignatureRequest: (a: number, b: any) => any;
1443
+ readonly client_createInboxSignatureRequest: (a: number) => [number, number, number];
1444
+ readonly client_registerIdentity: (a: number, b: number, c: number) => any;
1445
+ readonly client_revokeAllOtherInstallationsSignatureRequest: (a: number) => any;
1446
+ readonly client_revokeInstallationsSignatureRequest: (a: number, b: number, c: number) => any;
1447
+ readonly client_revokeWalletSignatureRequest: (a: number, b: any) => any;
1448
+ readonly client_signWithInstallationKey: (a: number, b: number, c: number) => [number, number, number];
1449
+ readonly client_verifySignedWithInstallationKey: (a: number, b: number, c: number, d: any) => [number, number];
1450
+ readonly contentTypeLeaveRequest: () => any;
1269
1451
  readonly conversationlistitem_new: (a: number, b: number, c: number) => number;
1270
1452
  readonly conversations_createDm: (a: number, b: any, c: number) => any;
1271
1453
  readonly conversations_createDmByInboxId: (a: number, b: number, c: number, d: number) => any;
@@ -1287,90 +1469,16 @@ export interface InitOutput {
1287
1469
  readonly conversations_streamPreferences: (a: number, b: any) => [number, number, number];
1288
1470
  readonly conversations_sync: (a: number) => any;
1289
1471
  readonly conversations_syncAllConversations: (a: number, b: number, c: number) => any;
1290
- readonly encodeIntent: (a: any) => [number, number, number];
1291
- readonly encodeReadReceipt: (a: any) => [number, number, number];
1292
- readonly streamcloser_end: (a: number) => void;
1293
- readonly streamcloser_endAndWait: (a: number) => any;
1294
- readonly streamcloser_isClosed: (a: number) => number;
1295
- readonly streamcloser_waitForReady: (a: number) => any;
1296
- readonly __wbg_client_free: (a: number, b: number) => void;
1297
- readonly __wbg_devicesync_free: (a: number, b: number) => void;
1298
- readonly __wbg_signaturerequesthandle_free: (a: number, b: number) => void;
1299
- readonly applySignatureRequest: (a: number, b: number) => any;
1300
- readonly client_accountIdentifier: (a: number) => any;
1301
- readonly client_addWalletSignatureRequest: (a: number, b: any) => any;
1302
- readonly client_apiAggregateStatistics: (a: number) => [number, number];
1303
- readonly client_apiIdentityStatistics: (a: number) => any;
1304
- readonly client_apiStatistics: (a: number) => any;
1305
- readonly client_appVersion: (a: number) => [number, number];
1306
- readonly client_applySignatureRequest: (a: number, b: number) => any;
1307
- readonly client_canMessage: (a: number, b: number, c: number) => any;
1308
- readonly client_changeRecoveryIdentifierSignatureRequest: (a: number, b: any) => any;
1309
- readonly client_clearAllStatistics: (a: number) => void;
1310
- readonly client_conversations: (a: number) => number;
1311
- readonly client_createInboxSignatureRequest: (a: number) => [number, number, number];
1312
- readonly client_device_sync: (a: number) => number;
1313
- readonly client_findInboxIdByIdentity: (a: number, b: any) => any;
1314
- readonly client_inboxId: (a: number) => [number, number];
1315
- readonly client_inboxStateFromInboxIds: (a: number, b: number, c: number, d: number) => any;
1316
- readonly client_installationId: (a: number) => [number, number];
1317
- readonly client_installationIdBytes: (a: number) => any;
1318
- readonly client_isRegistered: (a: number) => number;
1319
- readonly client_libxmtpVersion: (a: number) => [number, number];
1320
- readonly client_registerIdentity: (a: number, b: number) => any;
1321
- readonly client_revokeAllOtherInstallationsSignatureRequest: (a: number) => any;
1322
- readonly client_revokeInstallationsSignatureRequest: (a: number, b: number, c: number) => any;
1323
- readonly client_revokeWalletSignatureRequest: (a: number, b: any) => any;
1324
- readonly client_signWithInstallationKey: (a: number, b: number, c: number) => [number, number, number];
1325
- readonly client_syncPreferences: (a: number) => any;
1326
- readonly client_verifySignedWithInstallationKey: (a: number, b: number, c: number, d: any) => [number, number];
1327
- 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: number, q: bigint, r: number, s: number, t: number) => any;
1328
- readonly devicesync_archiveMetadata: (a: number, b: any, c: any) => any;
1329
- readonly devicesync_createArchive: (a: number, b: any, c: any) => any;
1330
- readonly devicesync_importArchive: (a: number, b: any, c: any) => any;
1331
- readonly devicesync_listAvailableArchives: (a: number, b: bigint) => [number, number, number, number];
1332
- readonly devicesync_processSyncArchive: (a: number, b: number, c: number) => any;
1333
- readonly devicesync_sendSyncArchive: (a: number, b: any, c: number, d: number, e: number, f: number) => any;
1334
- readonly devicesync_sendSyncRequest: (a: number, b: any, c: number, d: number) => any;
1335
- readonly devicesync_syncAllDeviceSyncGroups: (a: number) => any;
1336
- readonly generateInboxId: (a: any, b: number, c: bigint) => [number, number, number, number];
1337
- readonly getInboxIdForIdentifier: (a: number, b: any) => any;
1338
- readonly opfsClearAll: () => any;
1339
- readonly opfsDeleteFile: (a: number, b: number) => any;
1340
- readonly opfsExportDb: (a: number, b: number) => any;
1341
- readonly opfsFileCount: () => any;
1342
- readonly opfsFileExists: (a: number, b: number) => any;
1343
- readonly opfsImportDb: (a: number, b: number, c: any) => any;
1344
- readonly opfsInit: () => any;
1345
- readonly opfsListFiles: () => any;
1346
- readonly opfsPoolCapacity: () => any;
1347
1472
  readonly revokeInstallationsSignatureRequest: (a: number, b: any, c: number, d: number, e: number, f: number) => [number, number, number];
1348
1473
  readonly signaturerequesthandle_addEcdsaSignature: (a: number, b: any) => any;
1349
1474
  readonly signaturerequesthandle_addPasskeySignature: (a: number, b: any) => any;
1350
1475
  readonly signaturerequesthandle_addScwSignature: (a: number, b: any, c: any, d: bigint, e: number, f: bigint) => any;
1351
1476
  readonly signaturerequesthandle_signatureText: (a: number) => any;
1477
+ readonly streamcloser_end: (a: number) => void;
1478
+ readonly streamcloser_endAndWait: (a: number) => any;
1479
+ readonly streamcloser_isClosed: (a: number) => number;
1480
+ readonly streamcloser_waitForReady: (a: number) => any;
1352
1481
  readonly verifySignedWithPublicKey: (a: number, b: number, c: any, d: any) => [number, number];
1353
- readonly contentTypeActions: () => any;
1354
- readonly contentTypeAttachment: () => any;
1355
- readonly contentTypeMarkdown: () => any;
1356
- readonly contentTypeMultiRemoteAttachment: () => any;
1357
- readonly contentTypeReaction: () => any;
1358
- readonly contentTypeRemoteAttachment: () => any;
1359
- readonly contentTypeReply: () => any;
1360
- readonly contentTypeText: () => any;
1361
- readonly contentTypeTransactionReference: () => any;
1362
- readonly contentTypeWalletSendCalls: () => any;
1363
- readonly decryptAttachment: (a: number, b: number, c: any) => [number, number, number];
1364
- readonly encodeActions: (a: any) => [number, number, number];
1365
- readonly encodeAttachment: (a: any) => [number, number, number];
1366
- readonly encodeMarkdown: (a: number, b: number) => [number, number, number];
1367
- readonly encodeMultiRemoteAttachment: (a: any) => [number, number, number];
1368
- readonly encodeReaction: (a: any) => [number, number, number];
1369
- readonly encodeRemoteAttachment: (a: any) => [number, number, number];
1370
- readonly encodeText: (a: number, b: number) => [number, number, number];
1371
- readonly encodeTransactionReference: (a: any) => [number, number, number];
1372
- readonly encodeWalletSendCalls: (a: any) => [number, number, number];
1373
- readonly encryptAttachment: (a: any) => [number, number, number];
1374
1482
  readonly rust_zstd_wasm_shim_calloc: (a: number, b: number) => number;
1375
1483
  readonly rust_zstd_wasm_shim_free: (a: number) => void;
1376
1484
  readonly rust_zstd_wasm_shim_malloc: (a: number) => number;
@@ -1390,13 +1498,13 @@ export interface InitOutput {
1390
1498
  readonly sqlite3_os_end: () => number;
1391
1499
  readonly sqlite3_os_init: () => number;
1392
1500
  readonly task_worker_entry_point: (a: number) => [number, number];
1501
+ readonly __wbg_intounderlyingsource_free: (a: number, b: number) => void;
1502
+ readonly intounderlyingsource_cancel: (a: number) => void;
1503
+ readonly intounderlyingsource_pull: (a: number, b: any) => any;
1393
1504
  readonly __wbg_intounderlyingsink_free: (a: number, b: number) => void;
1394
1505
  readonly intounderlyingsink_abort: (a: number, b: any) => any;
1395
1506
  readonly intounderlyingsink_close: (a: number) => any;
1396
1507
  readonly intounderlyingsink_write: (a: number, b: any) => any;
1397
- readonly __wbg_intounderlyingsource_free: (a: number, b: number) => void;
1398
- readonly intounderlyingsource_cancel: (a: number) => void;
1399
- readonly intounderlyingsource_pull: (a: number, b: any) => any;
1400
1508
  readonly __wbg_intounderlyingbytesource_free: (a: number, b: number) => void;
1401
1509
  readonly intounderlyingbytesource_autoAllocateChunkSize: (a: number) => number;
1402
1510
  readonly intounderlyingbytesource_cancel: (a: number) => void;
@@ -1413,21 +1521,18 @@ export interface InitOutput {
1413
1521
  readonly wasmbindgentestcontext_include_ignored: (a: number, b: number) => void;
1414
1522
  readonly wasmbindgentestcontext_new: (a: number) => number;
1415
1523
  readonly wasmbindgentestcontext_run: (a: number, b: number, c: number) => any;
1524
+ readonly __wbgtest_coverage_path: (a: number, b: number, c: number, d: number, e: number, f: bigint) => [number, number];
1416
1525
  readonly __wbgbench_dump: () => [number, number];
1417
1526
  readonly __wbgbench_import: (a: number, b: number) => void;
1418
1527
  readonly __wbgtest_cov_dump: () => [number, number];
1419
- readonly __wbgtest_coverage_path: (a: number, b: number, c: number, d: number, e: number, f: bigint) => [number, number];
1420
1528
  readonly __wbgtest_module_signature: () => [number, bigint];
1421
- readonly wasm_bindgen__closure__destroy__hd62e9797c0b3168f: (a: number, b: number) => void;
1422
- readonly wasm_bindgen__closure__destroy__h96c761a656ba0a31: (a: number, b: number) => void;
1423
- readonly wasm_bindgen__closure__destroy__hd0b23f3e2de3e524: (a: number, b: number) => void;
1424
- readonly wasm_bindgen__closure__destroy__h852a2fa70246a7e9: (a: number, b: number) => void;
1425
- readonly wasm_bindgen__convert__closures_____invoke__h3fbce54f69633488: (a: number, b: number, c: any, d: number, e: any) => void;
1426
- readonly wasm_bindgen__convert__closures_____invoke__h1ed783e0801cc87c: (a: number, b: number, c: any, d: any) => void;
1427
- readonly wasm_bindgen__convert__closures_____invoke__h9739bad550b151a0: (a: number, b: number, c: any) => void;
1428
- readonly wasm_bindgen__convert__closures_____invoke__h3140913cf557f226: (a: number, b: number) => void;
1429
- readonly wasm_bindgen__convert__closures_____invoke__hef7996840be5a37a: (a: number, b: number) => void;
1430
- readonly wasm_bindgen__convert__closures_____invoke__h20bdc0c4874a4cbd: (a: number, b: number) => void;
1529
+ readonly wasm_bindgen__convert__closures_____invoke__h0cbb9d280ec4eac8: (a: number, b: number, c: any, d: number, e: any) => void;
1530
+ readonly wasm_bindgen__convert__closures_____invoke__h6f1885db5d1f0241: (a: number, b: number, c: any) => [number, number];
1531
+ readonly wasm_bindgen__convert__closures_____invoke__h8b29a8b297a89d8b: (a: number, b: number, c: any, d: any) => void;
1532
+ readonly wasm_bindgen__convert__closures_____invoke__hfcb06a1059bde0b9: (a: number, b: number, c: any) => void;
1533
+ readonly wasm_bindgen__convert__closures_____invoke__h667d000fed9c3e64: (a: number, b: number) => void;
1534
+ readonly wasm_bindgen__convert__closures_____invoke__h8f8be8bfbb4918b5: (a: number, b: number) => void;
1535
+ readonly wasm_bindgen__convert__closures_____invoke__h18ef20c6f279647d: (a: number, b: number) => void;
1431
1536
  readonly __externref_table_alloc: () => number;
1432
1537
  readonly __wbindgen_externrefs: WebAssembly.Table;
1433
1538
  readonly __wbindgen_malloc: (a: number, b: number) => number;
@@ -1435,6 +1540,7 @@ export interface InitOutput {
1435
1540
  readonly __wbindgen_exn_store: (a: number) => void;
1436
1541
  readonly __wbindgen_free: (a: number, b: number, c: number) => void;
1437
1542
  readonly __externref_drop_slice: (a: number, b: number) => void;
1543
+ readonly __wbindgen_destroy_closure: (a: number, b: number) => void;
1438
1544
  readonly __externref_table_dealloc: (a: number) => void;
1439
1545
  readonly __wbindgen_start: () => void;
1440
1546
  }