@xmtp/wasm-bindings 1.3.2 → 1.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,16 +1,16 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
- export function encodeReaction(reaction: Reaction): Uint8Array;
4
- export function decodeReaction(bytes: Uint8Array): Reaction;
5
3
  export function getInboxIdForIdentifier(host: string, accountIdentifier: Identifier): Promise<string | undefined>;
6
4
  export function generateInboxId(accountIdentifier: Identifier): string;
7
5
  export function inboxStateFromInboxIds(host: string, inbox_ids: string[]): Promise<InboxState[]>;
8
6
  export function verifySignedWithPublicKey(signature_text: string, signature_bytes: Uint8Array, public_key: Uint8Array): void;
9
7
  export function revokeInstallationsSignatureRequest(host: string, recovery_identifier: Identifier, inbox_id: string, installation_ids: Uint8Array[]): Promise<SignatureRequestHandle>;
10
8
  export function applySignatureRequest(host: string, signature_request: SignatureRequestHandle): Promise<void>;
9
+ export function createClient(host: string, inbox_id: string, account_identifier: Identifier, db_path?: string | null, encryption_key?: Uint8Array | null, device_sync_server_url?: string | null, device_sync_worker_mode?: DeviceSyncWorkerMode | null, log_options?: LogOptions | null, allow_offline?: boolean | null, disable_events?: boolean | null): Promise<Client>;
11
10
  export function encodeMultiRemoteAttachment(multiRemoteAttachment: MultiRemoteAttachment): Uint8Array;
12
11
  export function decodeMultiRemoteAttachment(bytes: Uint8Array): MultiRemoteAttachment;
13
- export function createClient(host: string, inbox_id: string, account_identifier: Identifier, db_path?: string | null, encryption_key?: Uint8Array | null, device_sync_server_url?: string | null, device_sync_worker_mode?: DeviceSyncWorkerMode | null, log_options?: LogOptions | null, allow_offline?: boolean | null, disable_events?: boolean | null): Promise<Client>;
12
+ export function encodeReaction(reaction: Reaction): Uint8Array;
13
+ export function decodeReaction(bytes: Uint8Array): Reaction;
14
14
  /**
15
15
  * Entry point invoked by JavaScript in a worker.
16
16
  */
@@ -627,16 +627,6 @@ export interface InitOutput {
627
627
  readonly client_getConsentState: (a: number, b: number, c: number, d: number) => any;
628
628
  readonly conversation_consentState: (a: number) => [number, number, number];
629
629
  readonly conversation_updateConsentState: (a: number, b: number) => [number, number];
630
- readonly __wbg_reaction_free: (a: number, b: number) => void;
631
- readonly __wbg_get_reaction_action: (a: number) => number;
632
- readonly __wbg_set_reaction_action: (a: number, b: number) => void;
633
- readonly __wbg_get_reaction_content: (a: number) => [number, number];
634
- readonly __wbg_set_reaction_content: (a: number, b: number, c: number) => void;
635
- readonly __wbg_get_reaction_schema: (a: number) => number;
636
- readonly __wbg_set_reaction_schema: (a: number, b: number) => void;
637
- readonly reaction_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
638
- readonly encodeReaction: (a: number) => [number, number, number];
639
- readonly decodeReaction: (a: any) => [number, number, number];
640
630
  readonly __wbg_groupmetadata_free: (a: number, b: number) => void;
641
631
  readonly groupmetadata_creatorInboxId: (a: number) => [number, number];
642
632
  readonly groupmetadata_conversationType: (a: number) => [number, number];
@@ -874,16 +864,12 @@ export interface InitOutput {
874
864
  readonly __wbg_get_listmessagesoptions_sentBeforeNs: (a: number) => [number, bigint];
875
865
  readonly __wbg_get_listmessagesoptions_sentAfterNs: (a: number) => [number, bigint];
876
866
  readonly __wbg_get_listmessagesoptions_limit: (a: number) => [number, bigint];
877
- readonly __wbg_get_reaction_reference: (a: number) => [number, number];
878
867
  readonly __wbg_get_groupmember_inboxId: (a: number) => [number, number];
879
868
  readonly __wbg_get_contenttypeid_authorityId: (a: number) => [number, number];
880
- readonly __wbg_get_reaction_referenceInboxId: (a: number) => [number, number];
881
869
  readonly __wbg_get_installation_id: (a: number) => [number, number];
882
870
  readonly __wbg_get_inboxstate_inboxId: (a: number) => [number, number];
883
- readonly __wbg_set_reaction_reference: (a: number, b: number, c: number) => void;
884
871
  readonly __wbg_set_groupmember_inboxId: (a: number, b: number, c: number) => void;
885
872
  readonly __wbg_set_contenttypeid_authorityId: (a: number, b: number, c: number) => void;
886
- readonly __wbg_set_reaction_referenceInboxId: (a: number, b: number, c: number) => void;
887
873
  readonly __wbg_set_installation_id: (a: number, b: number, c: number) => void;
888
874
  readonly __wbg_set_inboxstate_inboxId: (a: number, b: number, c: number) => void;
889
875
  readonly __wbg_set_messagedisappearingsettings_fromNs: (a: number, b: bigint) => void;
@@ -907,6 +893,70 @@ export interface InitOutput {
907
893
  readonly __wbg_get_keypackagestatus_lifetime: (a: number) => number;
908
894
  readonly __wbg_set_keypackagestatus_lifetime: (a: number, b: number) => void;
909
895
  readonly __wbg_messagedisappearingsettings_free: (a: number, b: number) => void;
896
+ readonly __wbg_client_free: (a: number, b: number) => void;
897
+ readonly __wbg_logoptions_free: (a: number, b: number) => void;
898
+ readonly __wbg_get_logoptions_structured: (a: number) => number;
899
+ readonly __wbg_set_logoptions_structured: (a: number, b: number) => void;
900
+ readonly __wbg_get_logoptions_performance: (a: number) => number;
901
+ readonly __wbg_set_logoptions_performance: (a: number, b: number) => void;
902
+ readonly __wbg_get_logoptions_level: (a: number) => number;
903
+ readonly __wbg_set_logoptions_level: (a: number, b: number) => void;
904
+ readonly logoptions_new: (a: number, b: number, c: number) => number;
905
+ 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) => any;
906
+ readonly client_accountIdentifier: (a: number) => any;
907
+ readonly client_inboxId: (a: number) => [number, number];
908
+ readonly client_isRegistered: (a: number) => number;
909
+ readonly client_installationId: (a: number) => [number, number];
910
+ readonly client_installationIdBytes: (a: number) => any;
911
+ readonly client_canMessage: (a: number, b: number, c: number) => any;
912
+ readonly client_sendSyncRequest: (a: number) => any;
913
+ readonly client_findInboxIdByIdentifier: (a: number, b: any) => any;
914
+ readonly client_inboxStateFromInboxIds: (a: number, b: number, c: number, d: number) => any;
915
+ readonly client_conversations: (a: number) => number;
916
+ readonly client_syncPreferences: (a: number) => any;
917
+ readonly client_apiStatistics: (a: number) => number;
918
+ readonly client_apiIdentityStatistics: (a: number) => number;
919
+ readonly client_apiAggregateStatistics: (a: number) => [number, number];
920
+ readonly client_clearAllStatistics: (a: number) => void;
921
+ readonly client_uploadDebugArchive: (a: number, b: number, c: number) => any;
922
+ readonly __wbg_remoteattachmentinfo_free: (a: number, b: number) => void;
923
+ readonly __wbg_get_remoteattachmentinfo_secret: (a: number) => any;
924
+ readonly __wbg_set_remoteattachmentinfo_secret: (a: number, b: any) => void;
925
+ readonly __wbg_get_remoteattachmentinfo_contentDigest: (a: number) => [number, number];
926
+ readonly __wbg_set_remoteattachmentinfo_contentDigest: (a: number, b: number, c: number) => void;
927
+ readonly __wbg_get_remoteattachmentinfo_nonce: (a: number) => any;
928
+ readonly __wbg_set_remoteattachmentinfo_nonce: (a: number, b: any) => void;
929
+ readonly __wbg_get_remoteattachmentinfo_scheme: (a: number) => [number, number];
930
+ readonly __wbg_set_remoteattachmentinfo_scheme: (a: number, b: number, c: number) => void;
931
+ readonly __wbg_get_remoteattachmentinfo_url: (a: number) => [number, number];
932
+ readonly __wbg_set_remoteattachmentinfo_url: (a: number, b: number, c: number) => void;
933
+ readonly __wbg_get_remoteattachmentinfo_salt: (a: number) => any;
934
+ readonly __wbg_set_remoteattachmentinfo_salt: (a: number, b: any) => void;
935
+ readonly __wbg_get_remoteattachmentinfo_contentLength: (a: number) => number;
936
+ readonly __wbg_set_remoteattachmentinfo_contentLength: (a: number, b: number) => void;
937
+ readonly __wbg_get_remoteattachmentinfo_filename: (a: number) => [number, number];
938
+ readonly __wbg_set_remoteattachmentinfo_filename: (a: number, b: number, c: number) => void;
939
+ readonly remoteattachmentinfo_new: (a: any, b: number, c: number, d: any, e: number, f: number, g: number, h: number, i: any, j: number, k: number, l: number) => number;
940
+ readonly __wbg_multiremoteattachment_free: (a: number, b: number) => void;
941
+ readonly __wbg_get_multiremoteattachment_attachments: (a: number) => [number, number];
942
+ readonly __wbg_set_multiremoteattachment_attachments: (a: number, b: number, c: number) => void;
943
+ readonly multiremoteattachment_new: (a: number, b: number) => number;
944
+ readonly encodeMultiRemoteAttachment: (a: number) => [number, number, number];
945
+ readonly decodeMultiRemoteAttachment: (a: any) => [number, number, number];
946
+ readonly __wbg_reaction_free: (a: number, b: number) => void;
947
+ readonly __wbg_get_reaction_reference: (a: number) => [number, number];
948
+ readonly __wbg_set_reaction_reference: (a: number, b: number, c: number) => void;
949
+ readonly __wbg_get_reaction_referenceInboxId: (a: number) => [number, number];
950
+ readonly __wbg_set_reaction_referenceInboxId: (a: number, b: number, c: number) => void;
951
+ readonly __wbg_get_reaction_action: (a: number) => number;
952
+ readonly __wbg_set_reaction_action: (a: number, b: number) => void;
953
+ readonly __wbg_get_reaction_content: (a: number) => [number, number];
954
+ readonly __wbg_set_reaction_content: (a: number, b: number, c: number) => void;
955
+ readonly __wbg_get_reaction_schema: (a: number) => number;
956
+ readonly __wbg_set_reaction_schema: (a: number, b: number) => void;
957
+ readonly reaction_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
958
+ readonly encodeReaction: (a: number) => [number, number, number];
959
+ readonly decodeReaction: (a: any) => [number, number, number];
910
960
  readonly __wbg_apistats_free: (a: number, b: number) => void;
911
961
  readonly __wbg_get_apistats_upload_key_package: (a: number) => bigint;
912
962
  readonly __wbg_set_apistats_upload_key_package: (a: number, b: bigint) => void;
@@ -954,56 +1004,6 @@ export interface InitOutput {
954
1004
  readonly __wbg_get_identitystats_get_identity_updates_v2: (a: number) => bigint;
955
1005
  readonly __wbg_get_identitystats_get_inbox_ids: (a: number) => bigint;
956
1006
  readonly __wbg_get_identitystats_verify_smart_contract_wallet_signature: (a: number) => bigint;
957
- readonly __wbg_remoteattachmentinfo_free: (a: number, b: number) => void;
958
- readonly __wbg_get_remoteattachmentinfo_secret: (a: number) => any;
959
- readonly __wbg_set_remoteattachmentinfo_secret: (a: number, b: any) => void;
960
- readonly __wbg_get_remoteattachmentinfo_contentDigest: (a: number) => [number, number];
961
- readonly __wbg_set_remoteattachmentinfo_contentDigest: (a: number, b: number, c: number) => void;
962
- readonly __wbg_get_remoteattachmentinfo_nonce: (a: number) => any;
963
- readonly __wbg_set_remoteattachmentinfo_nonce: (a: number, b: any) => void;
964
- readonly __wbg_get_remoteattachmentinfo_scheme: (a: number) => [number, number];
965
- readonly __wbg_set_remoteattachmentinfo_scheme: (a: number, b: number, c: number) => void;
966
- readonly __wbg_get_remoteattachmentinfo_url: (a: number) => [number, number];
967
- readonly __wbg_set_remoteattachmentinfo_url: (a: number, b: number, c: number) => void;
968
- readonly __wbg_get_remoteattachmentinfo_salt: (a: number) => any;
969
- readonly __wbg_set_remoteattachmentinfo_salt: (a: number, b: any) => void;
970
- readonly __wbg_get_remoteattachmentinfo_contentLength: (a: number) => number;
971
- readonly __wbg_set_remoteattachmentinfo_contentLength: (a: number, b: number) => void;
972
- readonly __wbg_get_remoteattachmentinfo_filename: (a: number) => [number, number];
973
- readonly __wbg_set_remoteattachmentinfo_filename: (a: number, b: number, c: number) => void;
974
- readonly remoteattachmentinfo_new: (a: any, b: number, c: number, d: any, e: number, f: number, g: number, h: number, i: any, j: number, k: number, l: number) => number;
975
- readonly __wbg_multiremoteattachment_free: (a: number, b: number) => void;
976
- readonly __wbg_get_multiremoteattachment_attachments: (a: number) => [number, number];
977
- readonly __wbg_set_multiremoteattachment_attachments: (a: number, b: number, c: number) => void;
978
- readonly multiremoteattachment_new: (a: number, b: number) => number;
979
- readonly encodeMultiRemoteAttachment: (a: number) => [number, number, number];
980
- readonly decodeMultiRemoteAttachment: (a: any) => [number, number, number];
981
- readonly __wbg_client_free: (a: number, b: number) => void;
982
- readonly __wbg_logoptions_free: (a: number, b: number) => void;
983
- readonly __wbg_get_logoptions_structured: (a: number) => number;
984
- readonly __wbg_set_logoptions_structured: (a: number, b: number) => void;
985
- readonly __wbg_get_logoptions_performance: (a: number) => number;
986
- readonly __wbg_set_logoptions_performance: (a: number, b: number) => void;
987
- readonly __wbg_get_logoptions_level: (a: number) => number;
988
- readonly __wbg_set_logoptions_level: (a: number, b: number) => void;
989
- readonly logoptions_new: (a: number, b: number, c: number) => number;
990
- 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) => any;
991
- readonly client_accountIdentifier: (a: number) => any;
992
- readonly client_inboxId: (a: number) => [number, number];
993
- readonly client_isRegistered: (a: number) => number;
994
- readonly client_installationId: (a: number) => [number, number];
995
- readonly client_installationIdBytes: (a: number) => any;
996
- readonly client_canMessage: (a: number, b: number, c: number) => any;
997
- readonly client_sendSyncRequest: (a: number) => any;
998
- readonly client_findInboxIdByIdentifier: (a: number, b: any) => any;
999
- readonly client_inboxStateFromInboxIds: (a: number, b: number, c: number, d: number) => any;
1000
- readonly client_conversations: (a: number) => number;
1001
- readonly client_syncPreferences: (a: number) => any;
1002
- readonly client_apiStatistics: (a: number) => number;
1003
- readonly client_apiIdentityStatistics: (a: number) => number;
1004
- readonly client_apiAggregateStatistics: (a: number) => [number, number];
1005
- readonly client_clearAllStatistics: (a: number) => void;
1006
- readonly client_uploadDebugArchive: (a: number, b: number, c: number) => any;
1007
1007
  readonly rust_zstd_wasm_shim_qsort: (a: number, b: number, c: number, d: number) => void;
1008
1008
  readonly rust_zstd_wasm_shim_malloc: (a: number) => number;
1009
1009
  readonly rust_zstd_wasm_shim_memcmp: (a: number, b: number, c: number) => number;
@@ -1048,8 +1048,8 @@ export interface InitOutput {
1048
1048
  readonly __externref_table_dealloc: (a: number) => void;
1049
1049
  readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h42782d8d6f6b94ef: (a: number, b: number) => void;
1050
1050
  readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h912129f7a2cf8b7b: (a: number, b: number) => void;
1051
- readonly closure5017_externref_shim: (a: number, b: number, c: any) => void;
1052
- readonly closure5960_externref_shim: (a: number, b: number, c: any, d: any) => void;
1051
+ readonly closure5046_externref_shim: (a: number, b: number, c: any) => void;
1052
+ readonly closure5989_externref_shim: (a: number, b: number, c: any, d: any) => void;
1053
1053
  readonly __wbindgen_start: () => void;
1054
1054
  }
1055
1055
 
@@ -237,31 +237,6 @@ function _assertClass(instance, klass) {
237
237
  throw new Error(`expected instance of ${klass.name}`);
238
238
  }
239
239
  }
240
- /**
241
- * @param {Reaction} reaction
242
- * @returns {Uint8Array}
243
- */
244
- export function encodeReaction(reaction) {
245
- _assertClass(reaction, Reaction);
246
- var ptr0 = reaction.__destroy_into_raw();
247
- const ret = wasm.encodeReaction(ptr0);
248
- if (ret[2]) {
249
- throw takeFromExternrefTable0(ret[1]);
250
- }
251
- return takeFromExternrefTable0(ret[0]);
252
- }
253
-
254
- /**
255
- * @param {Uint8Array} bytes
256
- * @returns {Reaction}
257
- */
258
- export function decodeReaction(bytes) {
259
- const ret = wasm.decodeReaction(bytes);
260
- if (ret[2]) {
261
- throw takeFromExternrefTable0(ret[1]);
262
- }
263
- return Reaction.__wrap(ret[0]);
264
- }
265
240
 
266
241
  function passArray8ToWasm0(arg, malloc) {
267
242
  const ptr = malloc(arg.length * 1, 1) >>> 0;
@@ -363,32 +338,6 @@ export function applySignatureRequest(host, signature_request) {
363
338
  return ret;
364
339
  }
365
340
 
366
- /**
367
- * @param {MultiRemoteAttachment} multiRemoteAttachment
368
- * @returns {Uint8Array}
369
- */
370
- export function encodeMultiRemoteAttachment(multiRemoteAttachment) {
371
- _assertClass(multiRemoteAttachment, MultiRemoteAttachment);
372
- var ptr0 = multiRemoteAttachment.__destroy_into_raw();
373
- const ret = wasm.encodeMultiRemoteAttachment(ptr0);
374
- if (ret[2]) {
375
- throw takeFromExternrefTable0(ret[1]);
376
- }
377
- return takeFromExternrefTable0(ret[0]);
378
- }
379
-
380
- /**
381
- * @param {Uint8Array} bytes
382
- * @returns {MultiRemoteAttachment}
383
- */
384
- export function decodeMultiRemoteAttachment(bytes) {
385
- const ret = wasm.decodeMultiRemoteAttachment(bytes);
386
- if (ret[2]) {
387
- throw takeFromExternrefTable0(ret[1]);
388
- }
389
- return MultiRemoteAttachment.__wrap(ret[0]);
390
- }
391
-
392
341
  /**
393
342
  * @param {string} host
394
343
  * @param {string} inbox_id
@@ -420,6 +369,58 @@ export function createClient(host, inbox_id, account_identifier, db_path, encryp
420
369
  return ret;
421
370
  }
422
371
 
372
+ /**
373
+ * @param {MultiRemoteAttachment} multiRemoteAttachment
374
+ * @returns {Uint8Array}
375
+ */
376
+ export function encodeMultiRemoteAttachment(multiRemoteAttachment) {
377
+ _assertClass(multiRemoteAttachment, MultiRemoteAttachment);
378
+ var ptr0 = multiRemoteAttachment.__destroy_into_raw();
379
+ const ret = wasm.encodeMultiRemoteAttachment(ptr0);
380
+ if (ret[2]) {
381
+ throw takeFromExternrefTable0(ret[1]);
382
+ }
383
+ return takeFromExternrefTable0(ret[0]);
384
+ }
385
+
386
+ /**
387
+ * @param {Uint8Array} bytes
388
+ * @returns {MultiRemoteAttachment}
389
+ */
390
+ export function decodeMultiRemoteAttachment(bytes) {
391
+ const ret = wasm.decodeMultiRemoteAttachment(bytes);
392
+ if (ret[2]) {
393
+ throw takeFromExternrefTable0(ret[1]);
394
+ }
395
+ return MultiRemoteAttachment.__wrap(ret[0]);
396
+ }
397
+
398
+ /**
399
+ * @param {Reaction} reaction
400
+ * @returns {Uint8Array}
401
+ */
402
+ export function encodeReaction(reaction) {
403
+ _assertClass(reaction, Reaction);
404
+ var ptr0 = reaction.__destroy_into_raw();
405
+ const ret = wasm.encodeReaction(ptr0);
406
+ if (ret[2]) {
407
+ throw takeFromExternrefTable0(ret[1]);
408
+ }
409
+ return takeFromExternrefTable0(ret[0]);
410
+ }
411
+
412
+ /**
413
+ * @param {Uint8Array} bytes
414
+ * @returns {Reaction}
415
+ */
416
+ export function decodeReaction(bytes) {
417
+ const ret = wasm.decodeReaction(bytes);
418
+ if (ret[2]) {
419
+ throw takeFromExternrefTable0(ret[1]);
420
+ }
421
+ return Reaction.__wrap(ret[0]);
422
+ }
423
+
423
424
  /**
424
425
  * Entry point invoked by JavaScript in a worker.
425
426
  * @param {number} ptr
@@ -440,11 +441,11 @@ function __wbg_adapter_53(arg0, arg1) {
440
441
  }
441
442
 
442
443
  function __wbg_adapter_56(arg0, arg1, arg2) {
443
- wasm.closure5017_externref_shim(arg0, arg1, arg2);
444
+ wasm.closure5046_externref_shim(arg0, arg1, arg2);
444
445
  }
445
446
 
446
447
  function __wbg_adapter_787(arg0, arg1, arg2, arg3) {
447
- wasm.closure5960_externref_shim(arg0, arg1, arg2, arg3);
448
+ wasm.closure5989_externref_shim(arg0, arg1, arg2, arg3);
448
449
  }
449
450
 
450
451
  /**
@@ -4400,7 +4401,7 @@ export class Reaction {
4400
4401
  set reference(arg0) {
4401
4402
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
4402
4403
  const len0 = WASM_VECTOR_LEN;
4403
- wasm.__wbg_set_consent_entity(this.__wbg_ptr, ptr0, len0);
4404
+ wasm.__wbg_set_reaction_reference(this.__wbg_ptr, ptr0, len0);
4404
4405
  }
4405
4406
  /**
4406
4407
  * @returns {string}
@@ -4423,7 +4424,7 @@ export class Reaction {
4423
4424
  set referenceInboxId(arg0) {
4424
4425
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
4425
4426
  const len0 = WASM_VECTOR_LEN;
4426
- wasm.__wbg_set_contenttypeid_typeId(this.__wbg_ptr, ptr0, len0);
4427
+ wasm.__wbg_set_reaction_referenceInboxId(this.__wbg_ptr, ptr0, len0);
4427
4428
  }
4428
4429
  /**
4429
4430
  * @returns {ReactionAction}
@@ -5429,22 +5430,22 @@ function __wbg_get_imports() {
5429
5430
  const ret = arg0.now();
5430
5431
  return ret;
5431
5432
  };
5432
- imports.wbg.__wbg_onclose_062bd3a6cae3cf8f = function(arg0) {
5433
+ imports.wbg.__wbg_onclose_33c2685b3d6919fe = function(arg0) {
5433
5434
  arg0.on_close();
5434
5435
  };
5435
- imports.wbg.__wbg_onconsentupdate_701b96066499a018 = function(arg0, arg1) {
5436
+ imports.wbg.__wbg_onconsentupdate_b0ad10636a4bbf87 = function(arg0, arg1) {
5436
5437
  arg0.on_consent_update(arg1);
5437
5438
  };
5438
- imports.wbg.__wbg_onconversation_fcbaacc0885798c6 = function(arg0, arg1) {
5439
+ imports.wbg.__wbg_onconversation_d77e5cfa31969f41 = function(arg0, arg1) {
5439
5440
  arg0.on_conversation(Conversation.__wrap(arg1));
5440
5441
  };
5441
- imports.wbg.__wbg_onerror_822cbf1c3e630713 = function(arg0, arg1) {
5442
+ imports.wbg.__wbg_onerror_3a496c1bd703126d = function(arg0, arg1) {
5442
5443
  arg0.on_error(arg1);
5443
5444
  };
5444
- imports.wbg.__wbg_onmessage_d8c556344cbe2d24 = function(arg0, arg1) {
5445
+ imports.wbg.__wbg_onmessage_83a0c907bdd614d4 = function(arg0, arg1) {
5445
5446
  arg0.on_message(Message.__wrap(arg1));
5446
5447
  };
5447
- imports.wbg.__wbg_onuserpreferenceupdate_8e302f867edad38d = function(arg0, arg1, arg2) {
5448
+ imports.wbg.__wbg_onuserpreferenceupdate_07cad92e339131e3 = function(arg0, arg1, arg2) {
5448
5449
  var v0 = getArrayJsValueFromWasm0(arg1, arg2).slice();
5449
5450
  wasm.__wbindgen_free(arg1, arg2 * 4, 4);
5450
5451
  arg0.on_user_preference_update(v0);
@@ -5737,16 +5738,16 @@ function __wbg_get_imports() {
5737
5738
  const ret = false;
5738
5739
  return ret;
5739
5740
  };
5740
- imports.wbg.__wbindgen_closure_wrapper18880 = function(arg0, arg1, arg2) {
5741
- const ret = makeMutClosure(arg0, arg1, 4661, __wbg_adapter_50);
5741
+ imports.wbg.__wbindgen_closure_wrapper18907 = function(arg0, arg1, arg2) {
5742
+ const ret = makeMutClosure(arg0, arg1, 4688, __wbg_adapter_50);
5742
5743
  return ret;
5743
5744
  };
5744
- imports.wbg.__wbindgen_closure_wrapper21474 = function(arg0, arg1, arg2) {
5745
- const ret = makeMutClosure(arg0, arg1, 4994, __wbg_adapter_53);
5745
+ imports.wbg.__wbindgen_closure_wrapper21499 = function(arg0, arg1, arg2) {
5746
+ const ret = makeMutClosure(arg0, arg1, 5023, __wbg_adapter_53);
5746
5747
  return ret;
5747
5748
  };
5748
- imports.wbg.__wbindgen_closure_wrapper22201 = function(arg0, arg1, arg2) {
5749
- const ret = makeMutClosure(arg0, arg1, 5018, __wbg_adapter_56);
5749
+ imports.wbg.__wbindgen_closure_wrapper22226 = function(arg0, arg1, arg2) {
5750
+ const ret = makeMutClosure(arg0, arg1, 5047, __wbg_adapter_56);
5750
5751
  return ret;
5751
5752
  };
5752
5753
  imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
Binary file
@@ -13,16 +13,6 @@ export const client_setConsentStates: (a: number, b: number, c: number) => any;
13
13
  export const client_getConsentState: (a: number, b: number, c: number, d: number) => any;
14
14
  export const conversation_consentState: (a: number) => [number, number, number];
15
15
  export const conversation_updateConsentState: (a: number, b: number) => [number, number];
16
- export const __wbg_reaction_free: (a: number, b: number) => void;
17
- export const __wbg_get_reaction_action: (a: number) => number;
18
- export const __wbg_set_reaction_action: (a: number, b: number) => void;
19
- export const __wbg_get_reaction_content: (a: number) => [number, number];
20
- export const __wbg_set_reaction_content: (a: number, b: number, c: number) => void;
21
- export const __wbg_get_reaction_schema: (a: number) => number;
22
- export const __wbg_set_reaction_schema: (a: number, b: number) => void;
23
- export const reaction_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
24
- export const encodeReaction: (a: number) => [number, number, number];
25
- export const decodeReaction: (a: any) => [number, number, number];
26
16
  export const __wbg_groupmetadata_free: (a: number, b: number) => void;
27
17
  export const groupmetadata_creatorInboxId: (a: number) => [number, number];
28
18
  export const groupmetadata_conversationType: (a: number) => [number, number];
@@ -260,16 +250,12 @@ export const __wbg_get_listconversationsoptions_createdAfterNs: (a: number) => [
260
250
  export const __wbg_get_listmessagesoptions_sentBeforeNs: (a: number) => [number, bigint];
261
251
  export const __wbg_get_listmessagesoptions_sentAfterNs: (a: number) => [number, bigint];
262
252
  export const __wbg_get_listmessagesoptions_limit: (a: number) => [number, bigint];
263
- export const __wbg_get_reaction_reference: (a: number) => [number, number];
264
253
  export const __wbg_get_groupmember_inboxId: (a: number) => [number, number];
265
254
  export const __wbg_get_contenttypeid_authorityId: (a: number) => [number, number];
266
- export const __wbg_get_reaction_referenceInboxId: (a: number) => [number, number];
267
255
  export const __wbg_get_installation_id: (a: number) => [number, number];
268
256
  export const __wbg_get_inboxstate_inboxId: (a: number) => [number, number];
269
- export const __wbg_set_reaction_reference: (a: number, b: number, c: number) => void;
270
257
  export const __wbg_set_groupmember_inboxId: (a: number, b: number, c: number) => void;
271
258
  export const __wbg_set_contenttypeid_authorityId: (a: number, b: number, c: number) => void;
272
- export const __wbg_set_reaction_referenceInboxId: (a: number, b: number, c: number) => void;
273
259
  export const __wbg_set_installation_id: (a: number, b: number, c: number) => void;
274
260
  export const __wbg_set_inboxstate_inboxId: (a: number, b: number, c: number) => void;
275
261
  export const __wbg_set_messagedisappearingsettings_fromNs: (a: number, b: bigint) => void;
@@ -293,6 +279,70 @@ export const __wbg_get_creategroupoptions_messageDisappearingSettings: (a: numbe
293
279
  export const __wbg_get_keypackagestatus_lifetime: (a: number) => number;
294
280
  export const __wbg_set_keypackagestatus_lifetime: (a: number, b: number) => void;
295
281
  export const __wbg_messagedisappearingsettings_free: (a: number, b: number) => void;
282
+ export const __wbg_client_free: (a: number, b: number) => void;
283
+ export const __wbg_logoptions_free: (a: number, b: number) => void;
284
+ export const __wbg_get_logoptions_structured: (a: number) => number;
285
+ export const __wbg_set_logoptions_structured: (a: number, b: number) => void;
286
+ export const __wbg_get_logoptions_performance: (a: number) => number;
287
+ export const __wbg_set_logoptions_performance: (a: number, b: number) => void;
288
+ export const __wbg_get_logoptions_level: (a: number) => number;
289
+ export const __wbg_set_logoptions_level: (a: number, b: number) => void;
290
+ export const logoptions_new: (a: number, b: number, c: number) => number;
291
+ 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) => any;
292
+ export const client_accountIdentifier: (a: number) => any;
293
+ export const client_inboxId: (a: number) => [number, number];
294
+ export const client_isRegistered: (a: number) => number;
295
+ export const client_installationId: (a: number) => [number, number];
296
+ export const client_installationIdBytes: (a: number) => any;
297
+ export const client_canMessage: (a: number, b: number, c: number) => any;
298
+ export const client_sendSyncRequest: (a: number) => any;
299
+ export const client_findInboxIdByIdentifier: (a: number, b: any) => any;
300
+ export const client_inboxStateFromInboxIds: (a: number, b: number, c: number, d: number) => any;
301
+ export const client_conversations: (a: number) => number;
302
+ export const client_syncPreferences: (a: number) => any;
303
+ export const client_apiStatistics: (a: number) => number;
304
+ export const client_apiIdentityStatistics: (a: number) => number;
305
+ export const client_apiAggregateStatistics: (a: number) => [number, number];
306
+ export const client_clearAllStatistics: (a: number) => void;
307
+ export const client_uploadDebugArchive: (a: number, b: number, c: number) => any;
308
+ export const __wbg_remoteattachmentinfo_free: (a: number, b: number) => void;
309
+ export const __wbg_get_remoteattachmentinfo_secret: (a: number) => any;
310
+ export const __wbg_set_remoteattachmentinfo_secret: (a: number, b: any) => void;
311
+ export const __wbg_get_remoteattachmentinfo_contentDigest: (a: number) => [number, number];
312
+ export const __wbg_set_remoteattachmentinfo_contentDigest: (a: number, b: number, c: number) => void;
313
+ export const __wbg_get_remoteattachmentinfo_nonce: (a: number) => any;
314
+ export const __wbg_set_remoteattachmentinfo_nonce: (a: number, b: any) => void;
315
+ export const __wbg_get_remoteattachmentinfo_scheme: (a: number) => [number, number];
316
+ export const __wbg_set_remoteattachmentinfo_scheme: (a: number, b: number, c: number) => void;
317
+ export const __wbg_get_remoteattachmentinfo_url: (a: number) => [number, number];
318
+ export const __wbg_set_remoteattachmentinfo_url: (a: number, b: number, c: number) => void;
319
+ export const __wbg_get_remoteattachmentinfo_salt: (a: number) => any;
320
+ export const __wbg_set_remoteattachmentinfo_salt: (a: number, b: any) => void;
321
+ export const __wbg_get_remoteattachmentinfo_contentLength: (a: number) => number;
322
+ export const __wbg_set_remoteattachmentinfo_contentLength: (a: number, b: number) => void;
323
+ export const __wbg_get_remoteattachmentinfo_filename: (a: number) => [number, number];
324
+ export const __wbg_set_remoteattachmentinfo_filename: (a: number, b: number, c: number) => void;
325
+ export const remoteattachmentinfo_new: (a: any, b: number, c: number, d: any, e: number, f: number, g: number, h: number, i: any, j: number, k: number, l: number) => number;
326
+ export const __wbg_multiremoteattachment_free: (a: number, b: number) => void;
327
+ export const __wbg_get_multiremoteattachment_attachments: (a: number) => [number, number];
328
+ export const __wbg_set_multiremoteattachment_attachments: (a: number, b: number, c: number) => void;
329
+ export const multiremoteattachment_new: (a: number, b: number) => number;
330
+ export const encodeMultiRemoteAttachment: (a: number) => [number, number, number];
331
+ export const decodeMultiRemoteAttachment: (a: any) => [number, number, number];
332
+ export const __wbg_reaction_free: (a: number, b: number) => void;
333
+ export const __wbg_get_reaction_reference: (a: number) => [number, number];
334
+ export const __wbg_set_reaction_reference: (a: number, b: number, c: number) => void;
335
+ export const __wbg_get_reaction_referenceInboxId: (a: number) => [number, number];
336
+ export const __wbg_set_reaction_referenceInboxId: (a: number, b: number, c: number) => void;
337
+ export const __wbg_get_reaction_action: (a: number) => number;
338
+ export const __wbg_set_reaction_action: (a: number, b: number) => void;
339
+ export const __wbg_get_reaction_content: (a: number) => [number, number];
340
+ export const __wbg_set_reaction_content: (a: number, b: number, c: number) => void;
341
+ export const __wbg_get_reaction_schema: (a: number) => number;
342
+ export const __wbg_set_reaction_schema: (a: number, b: number) => void;
343
+ export const reaction_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
344
+ export const encodeReaction: (a: number) => [number, number, number];
345
+ export const decodeReaction: (a: any) => [number, number, number];
296
346
  export const __wbg_apistats_free: (a: number, b: number) => void;
297
347
  export const __wbg_get_apistats_upload_key_package: (a: number) => bigint;
298
348
  export const __wbg_set_apistats_upload_key_package: (a: number, b: bigint) => void;
@@ -340,56 +390,6 @@ export const __wbg_get_identitystats_publish_identity_update: (a: number) => big
340
390
  export const __wbg_get_identitystats_get_identity_updates_v2: (a: number) => bigint;
341
391
  export const __wbg_get_identitystats_get_inbox_ids: (a: number) => bigint;
342
392
  export const __wbg_get_identitystats_verify_smart_contract_wallet_signature: (a: number) => bigint;
343
- export const __wbg_remoteattachmentinfo_free: (a: number, b: number) => void;
344
- export const __wbg_get_remoteattachmentinfo_secret: (a: number) => any;
345
- export const __wbg_set_remoteattachmentinfo_secret: (a: number, b: any) => void;
346
- export const __wbg_get_remoteattachmentinfo_contentDigest: (a: number) => [number, number];
347
- export const __wbg_set_remoteattachmentinfo_contentDigest: (a: number, b: number, c: number) => void;
348
- export const __wbg_get_remoteattachmentinfo_nonce: (a: number) => any;
349
- export const __wbg_set_remoteattachmentinfo_nonce: (a: number, b: any) => void;
350
- export const __wbg_get_remoteattachmentinfo_scheme: (a: number) => [number, number];
351
- export const __wbg_set_remoteattachmentinfo_scheme: (a: number, b: number, c: number) => void;
352
- export const __wbg_get_remoteattachmentinfo_url: (a: number) => [number, number];
353
- export const __wbg_set_remoteattachmentinfo_url: (a: number, b: number, c: number) => void;
354
- export const __wbg_get_remoteattachmentinfo_salt: (a: number) => any;
355
- export const __wbg_set_remoteattachmentinfo_salt: (a: number, b: any) => void;
356
- export const __wbg_get_remoteattachmentinfo_contentLength: (a: number) => number;
357
- export const __wbg_set_remoteattachmentinfo_contentLength: (a: number, b: number) => void;
358
- export const __wbg_get_remoteattachmentinfo_filename: (a: number) => [number, number];
359
- export const __wbg_set_remoteattachmentinfo_filename: (a: number, b: number, c: number) => void;
360
- export const remoteattachmentinfo_new: (a: any, b: number, c: number, d: any, e: number, f: number, g: number, h: number, i: any, j: number, k: number, l: number) => number;
361
- export const __wbg_multiremoteattachment_free: (a: number, b: number) => void;
362
- export const __wbg_get_multiremoteattachment_attachments: (a: number) => [number, number];
363
- export const __wbg_set_multiremoteattachment_attachments: (a: number, b: number, c: number) => void;
364
- export const multiremoteattachment_new: (a: number, b: number) => number;
365
- export const encodeMultiRemoteAttachment: (a: number) => [number, number, number];
366
- export const decodeMultiRemoteAttachment: (a: any) => [number, number, number];
367
- export const __wbg_client_free: (a: number, b: number) => void;
368
- export const __wbg_logoptions_free: (a: number, b: number) => void;
369
- export const __wbg_get_logoptions_structured: (a: number) => number;
370
- export const __wbg_set_logoptions_structured: (a: number, b: number) => void;
371
- export const __wbg_get_logoptions_performance: (a: number) => number;
372
- export const __wbg_set_logoptions_performance: (a: number, b: number) => void;
373
- export const __wbg_get_logoptions_level: (a: number) => number;
374
- export const __wbg_set_logoptions_level: (a: number, b: number) => void;
375
- export const logoptions_new: (a: number, b: number, c: number) => number;
376
- 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) => any;
377
- export const client_accountIdentifier: (a: number) => any;
378
- export const client_inboxId: (a: number) => [number, number];
379
- export const client_isRegistered: (a: number) => number;
380
- export const client_installationId: (a: number) => [number, number];
381
- export const client_installationIdBytes: (a: number) => any;
382
- export const client_canMessage: (a: number, b: number, c: number) => any;
383
- export const client_sendSyncRequest: (a: number) => any;
384
- export const client_findInboxIdByIdentifier: (a: number, b: any) => any;
385
- export const client_inboxStateFromInboxIds: (a: number, b: number, c: number, d: number) => any;
386
- export const client_conversations: (a: number) => number;
387
- export const client_syncPreferences: (a: number) => any;
388
- export const client_apiStatistics: (a: number) => number;
389
- export const client_apiIdentityStatistics: (a: number) => number;
390
- export const client_apiAggregateStatistics: (a: number) => [number, number];
391
- export const client_clearAllStatistics: (a: number) => void;
392
- export const client_uploadDebugArchive: (a: number, b: number, c: number) => any;
393
393
  export const rust_zstd_wasm_shim_qsort: (a: number, b: number, c: number, d: number) => void;
394
394
  export const rust_zstd_wasm_shim_malloc: (a: number) => number;
395
395
  export const rust_zstd_wasm_shim_memcmp: (a: number, b: number, c: number) => number;
@@ -434,6 +434,6 @@ export const __wbindgen_export_7: WebAssembly.Table;
434
434
  export const __externref_table_dealloc: (a: number) => void;
435
435
  export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h42782d8d6f6b94ef: (a: number, b: number) => void;
436
436
  export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h912129f7a2cf8b7b: (a: number, b: number) => void;
437
- export const closure5017_externref_shim: (a: number, b: number, c: any) => void;
438
- export const closure5960_externref_shim: (a: number, b: number, c: any, d: any) => void;
437
+ export const closure5046_externref_shim: (a: number, b: number, c: any) => void;
438
+ export const closure5989_externref_shim: (a: number, b: number, c: any, d: any) => void;
439
439
  export const __wbindgen_start: () => void;
package/dist/version.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "branch": "release/v1.3",
3
- "version": "5690ef1",
4
- "date": "2025-07-24 13:50:36 +0000"
3
+ "version": "9532653",
4
+ "date": "2025-07-25 23:19:55 +0000"
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xmtp/wasm-bindings",
3
- "version": "1.3.2",
3
+ "version": "1.3.3",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "description": "WASM bindings for the libXMTP rust library",