@xmtp/wasm-bindings 1.1.2 → 1.2.0-dev.bed98df

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.
@@ -5,9 +5,9 @@ export function decodeMultiRemoteAttachment(bytes: Uint8Array): MultiRemoteAttac
5
5
  export function encodeReaction(reaction: Reaction): Uint8Array;
6
6
  export function decodeReaction(bytes: Uint8Array): Reaction;
7
7
  export function verifySignedWithPublicKey(signature_text: string, signature_bytes: Uint8Array, public_key: Uint8Array): void;
8
- export function createClient(host: string, inbox_id: string, account_identifier: Identifier, db_path?: string | null, encryption_key?: Uint8Array | null, history_sync_url?: string | null, log_options?: LogOptions | null): Promise<Client>;
9
8
  export function getInboxIdForIdentifier(host: string, accountIdentifier: Identifier): Promise<string | undefined>;
10
9
  export function generateInboxId(accountIdentifier: Identifier): string;
10
+ export function createClient(host: string, inbox_id: string, account_identifier: Identifier, db_path?: string | null, encryption_key?: Uint8Array | null, history_sync_url?: string | null, log_options?: LogOptions | null): Promise<Client>;
11
11
  export enum ConsentEntityType {
12
12
  GroupId = 0,
13
13
  InboxId = 1,
@@ -96,6 +96,7 @@ export enum SignatureRequestType {
96
96
  CreateInbox = 1,
97
97
  RevokeWallet = 2,
98
98
  RevokeInstallations = 3,
99
+ ChangeRecoveryIdentifier = 4,
99
100
  }
100
101
  export enum SortDirection {
101
102
  Ascending = 0,
@@ -125,6 +126,7 @@ export class Client {
125
126
  revokeWalletSignatureText(identifier: Identifier): Promise<string>;
126
127
  revokeAllOtherInstallationsSignatureText(): Promise<string>;
127
128
  revokeInstallationsSignatureText(installation_ids: Uint8Array[]): Promise<string>;
129
+ changeRecoveryIdentifierSignatureText(new_recovery_identifier: Identifier): Promise<string>;
128
130
  addEcdsaSignature(signature_type: SignatureRequestType, signature_bytes: Uint8Array): Promise<void>;
129
131
  addPasskeySignature(signature_type: SignatureRequestType, signature: PasskeySignature): Promise<void>;
130
132
  addScwSignature(signature_type: SignatureRequestType, signature_bytes: Uint8Array, chain_id: bigint, block_number?: bigint | null): Promise<void>;
@@ -153,6 +155,14 @@ export class Client {
153
155
  */
154
156
  inboxState(refresh_from_network: boolean): Promise<InboxState>;
155
157
  getLatestInboxState(inbox_id: string): Promise<InboxState>;
158
+ /**
159
+ *
160
+ * * Get key package statuses for a list of installation IDs.
161
+ * *
162
+ * * Returns a JavaScript object mapping installation ID strings to KeyPackageStatus objects.
163
+ *
164
+ */
165
+ getKeyPackageStatusesForInstallationIds(installation_ids: string[]): Promise<any>;
156
166
  readonly accountIdentifier: Identifier;
157
167
  readonly inboxId: string;
158
168
  readonly isRegistered: boolean;
@@ -355,6 +365,20 @@ export class IntoUnderlyingSource {
355
365
  pull(controller: ReadableStreamDefaultController): Promise<any>;
356
366
  cancel(): void;
357
367
  }
368
+ export class KeyPackageStatus {
369
+ private constructor();
370
+ free(): void;
371
+ get lifetime(): Lifetime | undefined;
372
+ set lifetime(value: Lifetime | null | undefined);
373
+ get validationError(): string | undefined;
374
+ set validationError(value: string | null | undefined);
375
+ }
376
+ export class Lifetime {
377
+ private constructor();
378
+ free(): void;
379
+ not_before: bigint;
380
+ not_after: bigint;
381
+ }
358
382
  export class ListConversationsOptions {
359
383
  free(): void;
360
384
  constructor(consent_states: any[] | null | undefined, created_after_ns: bigint | null | undefined, created_before_ns: bigint | null | undefined, include_duplicate_dms: boolean, limit?: bigint | null);
@@ -640,6 +664,7 @@ export interface InitOutput {
640
664
  readonly client_revokeWalletSignatureText: (a: number, b: any) => any;
641
665
  readonly client_revokeAllOtherInstallationsSignatureText: (a: number) => any;
642
666
  readonly client_revokeInstallationsSignatureText: (a: number, b: number, c: number) => any;
667
+ readonly client_changeRecoveryIdentifierSignatureText: (a: number, b: any) => any;
643
668
  readonly client_addEcdsaSignature: (a: number, b: number, c: any) => any;
644
669
  readonly client_addPasskeySignature: (a: number, b: number, c: number) => any;
645
670
  readonly client_addScwSignature: (a: number, b: number, c: any, d: bigint, e: number, f: bigint) => any;
@@ -660,74 +685,6 @@ export interface InitOutput {
660
685
  readonly client_getConsentState: (a: number, b: number, c: number, d: number) => any;
661
686
  readonly conversation_consentState: (a: number) => [number, number, number];
662
687
  readonly conversation_updateConsentState: (a: number, b: number) => [number, number];
663
- readonly __wbg_permissionpolicyset_free: (a: number, b: number) => void;
664
- readonly __wbg_get_permissionpolicyset_addMemberPolicy: (a: number) => number;
665
- readonly __wbg_set_permissionpolicyset_addMemberPolicy: (a: number, b: number) => void;
666
- readonly __wbg_get_permissionpolicyset_removeMemberPolicy: (a: number) => number;
667
- readonly __wbg_set_permissionpolicyset_removeMemberPolicy: (a: number, b: number) => void;
668
- readonly __wbg_get_permissionpolicyset_addAdminPolicy: (a: number) => number;
669
- readonly __wbg_set_permissionpolicyset_addAdminPolicy: (a: number, b: number) => void;
670
- readonly __wbg_get_permissionpolicyset_removeAdminPolicy: (a: number) => number;
671
- readonly __wbg_set_permissionpolicyset_removeAdminPolicy: (a: number, b: number) => void;
672
- readonly __wbg_get_permissionpolicyset_updateGroupNamePolicy: (a: number) => number;
673
- readonly __wbg_set_permissionpolicyset_updateGroupNamePolicy: (a: number, b: number) => void;
674
- readonly __wbg_get_permissionpolicyset_updateGroupDescriptionPolicy: (a: number) => number;
675
- readonly __wbg_set_permissionpolicyset_updateGroupDescriptionPolicy: (a: number, b: number) => void;
676
- readonly __wbg_get_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number) => number;
677
- readonly __wbg_set_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number, b: number) => void;
678
- readonly __wbg_get_permissionpolicyset_updateMessageDisappearingPolicy: (a: number) => number;
679
- readonly __wbg_set_permissionpolicyset_updateMessageDisappearingPolicy: (a: number, b: number) => void;
680
- readonly permissionpolicyset_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
681
- readonly __wbg_grouppermissions_free: (a: number, b: number) => void;
682
- readonly grouppermissions_policyType: (a: number) => [number, number, number];
683
- readonly grouppermissions_policySet: (a: number) => [number, number, number];
684
- readonly __wbg_streamcloser_free: (a: number, b: number) => void;
685
- readonly streamcloser_end: (a: number) => void;
686
- readonly streamcloser_endAndWait: (a: number) => any;
687
- readonly streamcloser_waitForReady: (a: number) => any;
688
- readonly streamcloser_isClosed: (a: number) => number;
689
- readonly __wbg_client_free: (a: number, b: number) => void;
690
- readonly __wbg_logoptions_free: (a: number, b: number) => void;
691
- readonly __wbg_get_logoptions_structured: (a: number) => number;
692
- readonly __wbg_set_logoptions_structured: (a: number, b: number) => void;
693
- readonly __wbg_get_logoptions_performance: (a: number) => number;
694
- readonly __wbg_set_logoptions_performance: (a: number, b: number) => void;
695
- readonly __wbg_get_logoptions_level: (a: number) => number;
696
- readonly __wbg_set_logoptions_level: (a: number, b: number) => void;
697
- readonly logoptions_new: (a: number, b: number, c: number) => number;
698
- readonly createClient: (a: number, b: number, c: number, d: number, e: any, f: number, g: number, h: number, i: number, j: number, k: number) => any;
699
- readonly client_accountIdentifier: (a: number) => any;
700
- readonly client_inboxId: (a: number) => [number, number];
701
- readonly client_isRegistered: (a: number) => number;
702
- readonly client_installationId: (a: number) => [number, number];
703
- readonly client_installationIdBytes: (a: number) => any;
704
- readonly client_canMessage: (a: number, b: number, c: number) => any;
705
- readonly client_registerIdentity: (a: number) => any;
706
- readonly client_sendHistorySyncRequest: (a: number) => any;
707
- readonly client_sendConsentSyncRequest: (a: number) => any;
708
- readonly client_findInboxIdByIdentifier: (a: number, b: any) => any;
709
- readonly client_inboxStateFromInboxIds: (a: number, b: number, c: number, d: number) => any;
710
- readonly client_conversations: (a: number) => number;
711
- readonly __wbg_installation_free: (a: number, b: number) => void;
712
- readonly __wbg_get_installation_bytes: (a: number) => any;
713
- readonly __wbg_set_installation_bytes: (a: number, b: any) => void;
714
- readonly __wbg_get_installation_id: (a: number) => [number, number];
715
- readonly __wbg_set_installation_id: (a: number, b: number, c: number) => void;
716
- readonly __wbg_get_installation_clientTimestampNs: (a: number) => [number, bigint];
717
- readonly __wbg_set_installation_clientTimestampNs: (a: number, b: number, c: bigint) => void;
718
- readonly installation_new: (a: any, b: number, c: number, d: number, e: bigint) => number;
719
- readonly __wbg_inboxstate_free: (a: number, b: number) => void;
720
- readonly __wbg_get_inboxstate_inboxId: (a: number) => [number, number];
721
- readonly __wbg_set_inboxstate_inboxId: (a: number, b: number, c: number) => void;
722
- readonly __wbg_get_inboxstate_recoveryIdentifier: (a: number) => any;
723
- readonly __wbg_set_inboxstate_recoveryIdentifier: (a: number, b: any) => void;
724
- readonly __wbg_get_inboxstate_installations: (a: number) => [number, number];
725
- readonly __wbg_set_inboxstate_installations: (a: number, b: number, c: number) => void;
726
- readonly __wbg_get_inboxstate_accountIdentifiers: (a: number) => [number, number];
727
- readonly __wbg_set_inboxstate_accountIdentifiers: (a: number, b: number, c: number) => void;
728
- readonly inboxstate_new: (a: number, b: number, c: any, d: number, e: number, f: number, g: number) => number;
729
- readonly client_inboxState: (a: number, b: number) => any;
730
- readonly client_getLatestInboxState: (a: number, b: number, c: number) => any;
731
688
  readonly __wbg_listconversationsoptions_free: (a: number, b: number) => void;
732
689
  readonly __wbg_get_listconversationsoptions_consentStates: (a: number) => [number, number];
733
690
  readonly __wbg_set_listconversationsoptions_consentStates: (a: number, b: number, c: number) => void;
@@ -792,8 +749,6 @@ export interface InitOutput {
792
749
  readonly conversations_streamConsent: (a: number, b: any) => [number, number, number];
793
750
  readonly conversations_streamPreferences: (a: number, b: any) => [number, number, number];
794
751
  readonly __wbg_contenttypeid_free: (a: number, b: number) => void;
795
- readonly __wbg_get_contenttypeid_authorityId: (a: number) => [number, number];
796
- readonly __wbg_set_contenttypeid_authorityId: (a: number, b: number, c: number) => void;
797
752
  readonly __wbg_get_contenttypeid_typeId: (a: number) => [number, number];
798
753
  readonly __wbg_set_contenttypeid_typeId: (a: number, b: number, c: number) => void;
799
754
  readonly __wbg_get_contenttypeid_versionMajor: (a: number) => number;
@@ -866,6 +821,87 @@ export interface InitOutput {
866
821
  readonly __wbg_get_listmessagesoptions_sentBeforeNs: (a: number) => [number, bigint];
867
822
  readonly __wbg_get_listmessagesoptions_sentAfterNs: (a: number) => [number, bigint];
868
823
  readonly __wbg_get_listmessagesoptions_limit: (a: number) => [number, bigint];
824
+ readonly __wbg_set_contenttypeid_authorityId: (a: number, b: number, c: number) => void;
825
+ readonly __wbg_get_contenttypeid_authorityId: (a: number) => [number, number];
826
+ readonly __wbg_client_free: (a: number, b: number) => void;
827
+ readonly __wbg_logoptions_free: (a: number, b: number) => void;
828
+ readonly __wbg_get_logoptions_structured: (a: number) => number;
829
+ readonly __wbg_set_logoptions_structured: (a: number, b: number) => void;
830
+ readonly __wbg_get_logoptions_performance: (a: number) => number;
831
+ readonly __wbg_set_logoptions_performance: (a: number, b: number) => void;
832
+ readonly __wbg_get_logoptions_level: (a: number) => number;
833
+ readonly __wbg_set_logoptions_level: (a: number, b: number) => void;
834
+ readonly logoptions_new: (a: number, b: number, c: number) => number;
835
+ readonly createClient: (a: number, b: number, c: number, d: number, e: any, f: number, g: number, h: number, i: number, j: number, k: number) => any;
836
+ readonly client_accountIdentifier: (a: number) => any;
837
+ readonly client_inboxId: (a: number) => [number, number];
838
+ readonly client_isRegistered: (a: number) => number;
839
+ readonly client_installationId: (a: number) => [number, number];
840
+ readonly client_installationIdBytes: (a: number) => any;
841
+ readonly client_canMessage: (a: number, b: number, c: number) => any;
842
+ readonly client_registerIdentity: (a: number) => any;
843
+ readonly client_sendHistorySyncRequest: (a: number) => any;
844
+ readonly client_sendConsentSyncRequest: (a: number) => any;
845
+ readonly client_findInboxIdByIdentifier: (a: number, b: any) => any;
846
+ readonly client_inboxStateFromInboxIds: (a: number, b: number, c: number, d: number) => any;
847
+ readonly client_conversations: (a: number) => number;
848
+ readonly __wbg_installation_free: (a: number, b: number) => void;
849
+ readonly __wbg_get_installation_bytes: (a: number) => any;
850
+ readonly __wbg_set_installation_bytes: (a: number, b: any) => void;
851
+ readonly __wbg_get_installation_id: (a: number) => [number, number];
852
+ readonly __wbg_set_installation_id: (a: number, b: number, c: number) => void;
853
+ readonly __wbg_get_installation_clientTimestampNs: (a: number) => [number, bigint];
854
+ readonly __wbg_set_installation_clientTimestampNs: (a: number, b: number, c: bigint) => void;
855
+ readonly installation_new: (a: any, b: number, c: number, d: number, e: bigint) => number;
856
+ readonly __wbg_inboxstate_free: (a: number, b: number) => void;
857
+ readonly __wbg_get_inboxstate_inboxId: (a: number) => [number, number];
858
+ readonly __wbg_set_inboxstate_inboxId: (a: number, b: number, c: number) => void;
859
+ readonly __wbg_get_inboxstate_recoveryIdentifier: (a: number) => any;
860
+ readonly __wbg_set_inboxstate_recoveryIdentifier: (a: number, b: any) => void;
861
+ readonly __wbg_get_inboxstate_installations: (a: number) => [number, number];
862
+ readonly __wbg_set_inboxstate_installations: (a: number, b: number, c: number) => void;
863
+ readonly __wbg_get_inboxstate_accountIdentifiers: (a: number) => [number, number];
864
+ readonly __wbg_set_inboxstate_accountIdentifiers: (a: number, b: number, c: number) => void;
865
+ readonly inboxstate_new: (a: number, b: number, c: any, d: number, e: number, f: number, g: number) => number;
866
+ readonly __wbg_keypackagestatus_free: (a: number, b: number) => void;
867
+ readonly __wbg_get_keypackagestatus_lifetime: (a: number) => number;
868
+ readonly __wbg_set_keypackagestatus_lifetime: (a: number, b: number) => void;
869
+ readonly __wbg_get_keypackagestatus_validationError: (a: number) => [number, number];
870
+ readonly __wbg_set_keypackagestatus_validationError: (a: number, b: number, c: number) => void;
871
+ readonly __wbg_lifetime_free: (a: number, b: number) => void;
872
+ readonly __wbg_get_lifetime_not_before: (a: number) => bigint;
873
+ readonly __wbg_set_lifetime_not_before: (a: number, b: bigint) => void;
874
+ readonly __wbg_get_lifetime_not_after: (a: number) => bigint;
875
+ readonly __wbg_set_lifetime_not_after: (a: number, b: bigint) => void;
876
+ readonly client_inboxState: (a: number, b: number) => any;
877
+ readonly client_getLatestInboxState: (a: number, b: number, c: number) => any;
878
+ readonly client_getKeyPackageStatusesForInstallationIds: (a: number, b: number, c: number) => any;
879
+ readonly __wbg_permissionpolicyset_free: (a: number, b: number) => void;
880
+ readonly __wbg_get_permissionpolicyset_addMemberPolicy: (a: number) => number;
881
+ readonly __wbg_set_permissionpolicyset_addMemberPolicy: (a: number, b: number) => void;
882
+ readonly __wbg_get_permissionpolicyset_removeMemberPolicy: (a: number) => number;
883
+ readonly __wbg_set_permissionpolicyset_removeMemberPolicy: (a: number, b: number) => void;
884
+ readonly __wbg_get_permissionpolicyset_addAdminPolicy: (a: number) => number;
885
+ readonly __wbg_set_permissionpolicyset_addAdminPolicy: (a: number, b: number) => void;
886
+ readonly __wbg_get_permissionpolicyset_removeAdminPolicy: (a: number) => number;
887
+ readonly __wbg_set_permissionpolicyset_removeAdminPolicy: (a: number, b: number) => void;
888
+ readonly __wbg_get_permissionpolicyset_updateGroupNamePolicy: (a: number) => number;
889
+ readonly __wbg_set_permissionpolicyset_updateGroupNamePolicy: (a: number, b: number) => void;
890
+ readonly __wbg_get_permissionpolicyset_updateGroupDescriptionPolicy: (a: number) => number;
891
+ readonly __wbg_set_permissionpolicyset_updateGroupDescriptionPolicy: (a: number, b: number) => void;
892
+ readonly __wbg_get_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number) => number;
893
+ readonly __wbg_set_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number, b: number) => void;
894
+ readonly __wbg_get_permissionpolicyset_updateMessageDisappearingPolicy: (a: number) => number;
895
+ readonly __wbg_set_permissionpolicyset_updateMessageDisappearingPolicy: (a: number, b: number) => void;
896
+ readonly permissionpolicyset_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
897
+ readonly __wbg_grouppermissions_free: (a: number, b: number) => void;
898
+ readonly grouppermissions_policyType: (a: number) => [number, number, number];
899
+ readonly grouppermissions_policySet: (a: number) => [number, number, number];
900
+ readonly __wbg_streamcloser_free: (a: number, b: number) => void;
901
+ readonly streamcloser_end: (a: number) => void;
902
+ readonly streamcloser_endAndWait: (a: number) => any;
903
+ readonly streamcloser_waitForReady: (a: number) => any;
904
+ readonly streamcloser_isClosed: (a: number) => number;
869
905
  readonly rust_sqlite_wasm_shim_localtime_js: (a: bigint, b: number) => void;
870
906
  readonly rust_sqlite_wasm_shim_tzset_js: (a: number, b: number, c: number, d: number) => void;
871
907
  readonly rust_sqlite_wasm_shim_emscripten_get_now: () => number;
@@ -896,9 +932,9 @@ export interface InitOutput {
896
932
  readonly __wbindgen_export_7: WebAssembly.Table;
897
933
  readonly __externref_table_dealloc: (a: number) => void;
898
934
  readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hd11fcf7148e8db56: (a: number, b: number) => void;
899
- readonly closure3804_externref_shim: (a: number, b: number, c: any) => void;
900
- readonly closure4799_externref_shim: (a: number, b: number, c: any, d: number, e: any) => number;
901
- readonly closure4798_externref_shim: (a: number, b: number, c: any, d: any) => void;
935
+ readonly closure3862_externref_shim: (a: number, b: number, c: any) => void;
936
+ readonly closure4857_externref_shim: (a: number, b: number, c: any, d: number, e: any) => number;
937
+ readonly closure4856_externref_shim: (a: number, b: number, c: any, d: any) => void;
902
938
  readonly __wbindgen_start: () => void;
903
939
  }
904
940
 
@@ -301,34 +301,6 @@ export function verifySignedWithPublicKey(signature_text, signature_bytes, publi
301
301
  }
302
302
  }
303
303
 
304
- /**
305
- * @param {string} host
306
- * @param {string} inbox_id
307
- * @param {Identifier} account_identifier
308
- * @param {string | null} [db_path]
309
- * @param {Uint8Array | null} [encryption_key]
310
- * @param {string | null} [history_sync_url]
311
- * @param {LogOptions | null} [log_options]
312
- * @returns {Promise<Client>}
313
- */
314
- export function createClient(host, inbox_id, account_identifier, db_path, encryption_key, history_sync_url, log_options) {
315
- const ptr0 = passStringToWasm0(host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
316
- const len0 = WASM_VECTOR_LEN;
317
- const ptr1 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
318
- const len1 = WASM_VECTOR_LEN;
319
- var ptr2 = isLikeNone(db_path) ? 0 : passStringToWasm0(db_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
320
- var len2 = WASM_VECTOR_LEN;
321
- var ptr3 = isLikeNone(history_sync_url) ? 0 : passStringToWasm0(history_sync_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
322
- var len3 = WASM_VECTOR_LEN;
323
- let ptr4 = 0;
324
- if (!isLikeNone(log_options)) {
325
- _assertClass(log_options, LogOptions);
326
- ptr4 = log_options.__destroy_into_raw();
327
- }
328
- const ret = wasm.createClient(ptr0, len0, ptr1, len1, account_identifier, ptr2, len2, isLikeNone(encryption_key) ? 0 : addToExternrefTable0(encryption_key), ptr3, len3, ptr4);
329
- return ret;
330
- }
331
-
332
304
  function passArray8ToWasm0(arg, malloc) {
333
305
  const ptr = malloc(arg.length * 1, 1) >>> 0;
334
306
  getUint8ArrayMemory0().set(arg, ptr / 1);
@@ -370,21 +342,49 @@ export function generateInboxId(accountIdentifier) {
370
342
  }
371
343
  }
372
344
 
373
- function __wbg_adapter_48(arg0, arg1) {
345
+ /**
346
+ * @param {string} host
347
+ * @param {string} inbox_id
348
+ * @param {Identifier} account_identifier
349
+ * @param {string | null} [db_path]
350
+ * @param {Uint8Array | null} [encryption_key]
351
+ * @param {string | null} [history_sync_url]
352
+ * @param {LogOptions | null} [log_options]
353
+ * @returns {Promise<Client>}
354
+ */
355
+ export function createClient(host, inbox_id, account_identifier, db_path, encryption_key, history_sync_url, log_options) {
356
+ const ptr0 = passStringToWasm0(host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
357
+ const len0 = WASM_VECTOR_LEN;
358
+ const ptr1 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
359
+ const len1 = WASM_VECTOR_LEN;
360
+ var ptr2 = isLikeNone(db_path) ? 0 : passStringToWasm0(db_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
361
+ var len2 = WASM_VECTOR_LEN;
362
+ var ptr3 = isLikeNone(history_sync_url) ? 0 : passStringToWasm0(history_sync_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
363
+ var len3 = WASM_VECTOR_LEN;
364
+ let ptr4 = 0;
365
+ if (!isLikeNone(log_options)) {
366
+ _assertClass(log_options, LogOptions);
367
+ ptr4 = log_options.__destroy_into_raw();
368
+ }
369
+ const ret = wasm.createClient(ptr0, len0, ptr1, len1, account_identifier, ptr2, len2, isLikeNone(encryption_key) ? 0 : addToExternrefTable0(encryption_key), ptr3, len3, ptr4);
370
+ return ret;
371
+ }
372
+
373
+ function __wbg_adapter_50(arg0, arg1) {
374
374
  wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hd11fcf7148e8db56(arg0, arg1);
375
375
  }
376
376
 
377
- function __wbg_adapter_51(arg0, arg1, arg2) {
378
- wasm.closure3804_externref_shim(arg0, arg1, arg2);
377
+ function __wbg_adapter_53(arg0, arg1, arg2) {
378
+ wasm.closure3862_externref_shim(arg0, arg1, arg2);
379
379
  }
380
380
 
381
- function __wbg_adapter_599(arg0, arg1, arg2, arg3, arg4) {
382
- const ret = wasm.closure4799_externref_shim(arg0, arg1, arg2, arg3, arg4);
381
+ function __wbg_adapter_611(arg0, arg1, arg2, arg3, arg4) {
382
+ const ret = wasm.closure4857_externref_shim(arg0, arg1, arg2, arg3, arg4);
383
383
  return ret !== 0;
384
384
  }
385
385
 
386
- function __wbg_adapter_700(arg0, arg1, arg2, arg3) {
387
- wasm.closure4798_externref_shim(arg0, arg1, arg2, arg3);
386
+ function __wbg_adapter_712(arg0, arg1, arg2, arg3) {
387
+ wasm.closure4856_externref_shim(arg0, arg1, arg2, arg3);
388
388
  }
389
389
 
390
390
  /**
@@ -513,13 +513,14 @@ export const ReactionSchema = Object.freeze({
513
513
  Custom: 3, "3": "Custom",
514
514
  });
515
515
  /**
516
- * @enum {0 | 1 | 2 | 3}
516
+ * @enum {0 | 1 | 2 | 3 | 4}
517
517
  */
518
518
  export const SignatureRequestType = Object.freeze({
519
519
  AddWallet: 0, "0": "AddWallet",
520
520
  CreateInbox: 1, "1": "CreateInbox",
521
521
  RevokeWallet: 2, "2": "RevokeWallet",
522
522
  RevokeInstallations: 3, "3": "RevokeInstallations",
523
+ ChangeRecoveryIdentifier: 4, "4": "ChangeRecoveryIdentifier",
523
524
  });
524
525
  /**
525
526
  * @enum {0 | 1}
@@ -610,6 +611,14 @@ export class Client {
610
611
  const ret = wasm.client_revokeInstallationsSignatureText(this.__wbg_ptr, ptr0, len0);
611
612
  return ret;
612
613
  }
614
+ /**
615
+ * @param {Identifier} new_recovery_identifier
616
+ * @returns {Promise<string>}
617
+ */
618
+ changeRecoveryIdentifierSignatureText(new_recovery_identifier) {
619
+ const ret = wasm.client_changeRecoveryIdentifierSignatureText(this.__wbg_ptr, new_recovery_identifier);
620
+ return ret;
621
+ }
613
622
  /**
614
623
  * @param {SignatureRequestType} signature_type
615
624
  * @param {Uint8Array} signature_bytes
@@ -827,6 +836,21 @@ export class Client {
827
836
  const ret = wasm.client_getLatestInboxState(this.__wbg_ptr, ptr0, len0);
828
837
  return ret;
829
838
  }
839
+ /**
840
+ *
841
+ * * Get key package statuses for a list of installation IDs.
842
+ * *
843
+ * * Returns a JavaScript object mapping installation ID strings to KeyPackageStatus objects.
844
+ *
845
+ * @param {string[]} installation_ids
846
+ * @returns {Promise<any>}
847
+ */
848
+ getKeyPackageStatusesForInstallationIds(installation_ids) {
849
+ const ptr0 = passArrayJsValueToWasm0(installation_ids, wasm.__wbindgen_malloc);
850
+ const len0 = WASM_VECTOR_LEN;
851
+ const ret = wasm.client_getKeyPackageStatusesForInstallationIds(this.__wbg_ptr, ptr0, len0);
852
+ return ret;
853
+ }
830
854
  }
831
855
 
832
856
  const ConsentFinalization = (typeof FinalizationRegistry === 'undefined')
@@ -963,7 +987,7 @@ export class ContentTypeId {
963
987
  set authorityId(arg0) {
964
988
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
965
989
  const len0 = WASM_VECTOR_LEN;
966
- wasm.__wbg_set_contenttypeid_authorityId(this.__wbg_ptr, ptr0, len0);
990
+ wasm.__wbg_set_consent_entity(this.__wbg_ptr, ptr0, len0);
967
991
  }
968
992
  /**
969
993
  * @returns {string}
@@ -2850,6 +2874,116 @@ export class IntoUnderlyingSource {
2850
2874
  }
2851
2875
  }
2852
2876
 
2877
+ const KeyPackageStatusFinalization = (typeof FinalizationRegistry === 'undefined')
2878
+ ? { register: () => {}, unregister: () => {} }
2879
+ : new FinalizationRegistry(ptr => wasm.__wbg_keypackagestatus_free(ptr >>> 0, 1));
2880
+
2881
+ export class KeyPackageStatus {
2882
+
2883
+ __destroy_into_raw() {
2884
+ const ptr = this.__wbg_ptr;
2885
+ this.__wbg_ptr = 0;
2886
+ KeyPackageStatusFinalization.unregister(this);
2887
+ return ptr;
2888
+ }
2889
+
2890
+ free() {
2891
+ const ptr = this.__destroy_into_raw();
2892
+ wasm.__wbg_keypackagestatus_free(ptr, 0);
2893
+ }
2894
+ /**
2895
+ * @returns {Lifetime | undefined}
2896
+ */
2897
+ get lifetime() {
2898
+ const ret = wasm.__wbg_get_keypackagestatus_lifetime(this.__wbg_ptr);
2899
+ return ret === 0 ? undefined : Lifetime.__wrap(ret);
2900
+ }
2901
+ /**
2902
+ * @param {Lifetime | null} [arg0]
2903
+ */
2904
+ set lifetime(arg0) {
2905
+ let ptr0 = 0;
2906
+ if (!isLikeNone(arg0)) {
2907
+ _assertClass(arg0, Lifetime);
2908
+ ptr0 = arg0.__destroy_into_raw();
2909
+ }
2910
+ wasm.__wbg_set_keypackagestatus_lifetime(this.__wbg_ptr, ptr0);
2911
+ }
2912
+ /**
2913
+ * @returns {string | undefined}
2914
+ */
2915
+ get validationError() {
2916
+ const ret = wasm.__wbg_get_keypackagestatus_validationError(this.__wbg_ptr);
2917
+ let v1;
2918
+ if (ret[0] !== 0) {
2919
+ v1 = getStringFromWasm0(ret[0], ret[1]).slice();
2920
+ wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
2921
+ }
2922
+ return v1;
2923
+ }
2924
+ /**
2925
+ * @param {string | null} [arg0]
2926
+ */
2927
+ set validationError(arg0) {
2928
+ var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2929
+ var len0 = WASM_VECTOR_LEN;
2930
+ wasm.__wbg_set_keypackagestatus_validationError(this.__wbg_ptr, ptr0, len0);
2931
+ }
2932
+ }
2933
+
2934
+ const LifetimeFinalization = (typeof FinalizationRegistry === 'undefined')
2935
+ ? { register: () => {}, unregister: () => {} }
2936
+ : new FinalizationRegistry(ptr => wasm.__wbg_lifetime_free(ptr >>> 0, 1));
2937
+
2938
+ export class Lifetime {
2939
+
2940
+ static __wrap(ptr) {
2941
+ ptr = ptr >>> 0;
2942
+ const obj = Object.create(Lifetime.prototype);
2943
+ obj.__wbg_ptr = ptr;
2944
+ LifetimeFinalization.register(obj, obj.__wbg_ptr, obj);
2945
+ return obj;
2946
+ }
2947
+
2948
+ __destroy_into_raw() {
2949
+ const ptr = this.__wbg_ptr;
2950
+ this.__wbg_ptr = 0;
2951
+ LifetimeFinalization.unregister(this);
2952
+ return ptr;
2953
+ }
2954
+
2955
+ free() {
2956
+ const ptr = this.__destroy_into_raw();
2957
+ wasm.__wbg_lifetime_free(ptr, 0);
2958
+ }
2959
+ /**
2960
+ * @returns {bigint}
2961
+ */
2962
+ get not_before() {
2963
+ const ret = wasm.__wbg_get_lifetime_not_before(this.__wbg_ptr);
2964
+ return BigInt.asUintN(64, ret);
2965
+ }
2966
+ /**
2967
+ * @param {bigint} arg0
2968
+ */
2969
+ set not_before(arg0) {
2970
+ wasm.__wbg_set_lifetime_not_before(this.__wbg_ptr, arg0);
2971
+ }
2972
+ /**
2973
+ * @returns {bigint}
2974
+ */
2975
+ get not_after() {
2976
+ const ret = wasm.__wbg_get_lifetime_not_after(this.__wbg_ptr);
2977
+ return BigInt.asUintN(64, ret);
2978
+ }
2979
+ /**
2980
+ * @param {bigint} arg0
2981
+ */
2982
+ set not_after(arg0) {
2983
+ wasm.__wbg_set_lifetime_not_after(this.__wbg_ptr, arg0);
2984
+ }
2985
+ }
2986
+
2853
2987
  const ListConversationsOptionsFinalization = (typeof FinalizationRegistry === 'undefined')
2854
2988
  ? { register: () => {}, unregister: () => {} }
2855
2989
  : new FinalizationRegistry(ptr => wasm.__wbg_listconversationsoptions_free(ptr >>> 0, 1));
@@ -4409,7 +4543,7 @@ function __wbg_get_imports() {
4409
4543
  const a = state0.a;
4410
4544
  state0.a = 0;
4411
4545
  try {
4412
- return __wbg_adapter_599(a, state0.b, arg0, arg1, arg2);
4546
+ return __wbg_adapter_611(a, state0.b, arg0, arg1, arg2);
4413
4547
  } finally {
4414
4548
  state0.a = a;
4415
4549
  }
@@ -4439,7 +4573,7 @@ function __wbg_get_imports() {
4439
4573
  const a = state0.a;
4440
4574
  state0.a = 0;
4441
4575
  try {
4442
- return __wbg_adapter_599(a, state0.b, arg0, arg1, arg2);
4576
+ return __wbg_adapter_611(a, state0.b, arg0, arg1, arg2);
4443
4577
  } finally {
4444
4578
  state0.a = a;
4445
4579
  }
@@ -4727,7 +4861,7 @@ function __wbg_get_imports() {
4727
4861
  const a = state0.a;
4728
4862
  state0.a = 0;
4729
4863
  try {
4730
- return __wbg_adapter_700(a, state0.b, arg0, arg1);
4864
+ return __wbg_adapter_712(a, state0.b, arg0, arg1);
4731
4865
  } finally {
4732
4866
  state0.a = a;
4733
4867
  }
@@ -4834,19 +4968,19 @@ function __wbg_get_imports() {
4834
4968
  const ret = arg0.now();
4835
4969
  return ret;
4836
4970
  };
4837
- imports.wbg.__wbg_onconsentupdate_6ea8f120fae63de9 = function(arg0, arg1) {
4971
+ imports.wbg.__wbg_onconsentupdate_4c6fac1d9f867a49 = function(arg0, arg1) {
4838
4972
  arg0.on_consent_update(arg1);
4839
4973
  };
4840
- imports.wbg.__wbg_onconversation_1210cff8501eb6a5 = function(arg0, arg1) {
4974
+ imports.wbg.__wbg_onconversation_53ee00b78b2567f0 = function(arg0, arg1) {
4841
4975
  arg0.on_conversation(Conversation.__wrap(arg1));
4842
4976
  };
4843
- imports.wbg.__wbg_onerror_4016be5705b5df18 = function(arg0, arg1) {
4977
+ imports.wbg.__wbg_onerror_f83f69679f719d45 = function(arg0, arg1) {
4844
4978
  arg0.on_error(arg1);
4845
4979
  };
4846
- imports.wbg.__wbg_onmessage_3e2b06466591ec19 = function(arg0, arg1) {
4980
+ imports.wbg.__wbg_onmessage_9af0c0b07630e1bb = function(arg0, arg1) {
4847
4981
  arg0.on_message(Message.__wrap(arg1));
4848
4982
  };
4849
- imports.wbg.__wbg_onuserpreferenceupdate_895874f8332897e6 = function(arg0, arg1, arg2) {
4983
+ imports.wbg.__wbg_onuserpreferenceupdate_0a3e44916ebf35a2 = function(arg0, arg1, arg2) {
4850
4984
  var v0 = getArrayJsValueFromWasm0(arg1, arg2).slice();
4851
4985
  wasm.__wbindgen_free(arg1, arg2 * 4, 4);
4852
4986
  arg0.on_user_preference_update(v0);
@@ -5116,6 +5250,10 @@ function __wbg_get_imports() {
5116
5250
  const ret = arg0;
5117
5251
  return ret;
5118
5252
  };
5253
+ imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
5254
+ const ret = BigInt.asUintN(64, arg0);
5255
+ return ret;
5256
+ };
5119
5257
  imports.wbg.__wbindgen_boolean_get = function(arg0) {
5120
5258
  const v = arg0;
5121
5259
  const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
@@ -5130,12 +5268,12 @@ function __wbg_get_imports() {
5130
5268
  const ret = false;
5131
5269
  return ret;
5132
5270
  };
5133
- imports.wbg.__wbindgen_closure_wrapper16363 = function(arg0, arg1, arg2) {
5134
- const ret = makeMutClosure(arg0, arg1, 3734, __wbg_adapter_48);
5271
+ imports.wbg.__wbindgen_closure_wrapper16501 = function(arg0, arg1, arg2) {
5272
+ const ret = makeMutClosure(arg0, arg1, 3792, __wbg_adapter_50);
5135
5273
  return ret;
5136
5274
  };
5137
- imports.wbg.__wbindgen_closure_wrapper16642 = function(arg0, arg1, arg2) {
5138
- const ret = makeMutClosure(arg0, arg1, 3805, __wbg_adapter_51);
5275
+ imports.wbg.__wbindgen_closure_wrapper16780 = function(arg0, arg1, arg2) {
5276
+ const ret = makeMutClosure(arg0, arg1, 3863, __wbg_adapter_53);
5139
5277
  return ret;
5140
5278
  };
5141
5279
  imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
Binary file
@@ -100,6 +100,7 @@ export const client_addWalletSignatureText: (a: number, b: any) => any;
100
100
  export const client_revokeWalletSignatureText: (a: number, b: any) => any;
101
101
  export const client_revokeAllOtherInstallationsSignatureText: (a: number) => any;
102
102
  export const client_revokeInstallationsSignatureText: (a: number, b: number, c: number) => any;
103
+ export const client_changeRecoveryIdentifierSignatureText: (a: number, b: any) => any;
103
104
  export const client_addEcdsaSignature: (a: number, b: number, c: any) => any;
104
105
  export const client_addPasskeySignature: (a: number, b: number, c: number) => any;
105
106
  export const client_addScwSignature: (a: number, b: number, c: any, d: bigint, e: number, f: bigint) => any;
@@ -120,74 +121,6 @@ export const client_setConsentStates: (a: number, b: number, c: number) => any;
120
121
  export const client_getConsentState: (a: number, b: number, c: number, d: number) => any;
121
122
  export const conversation_consentState: (a: number) => [number, number, number];
122
123
  export const conversation_updateConsentState: (a: number, b: number) => [number, number];
123
- export const __wbg_permissionpolicyset_free: (a: number, b: number) => void;
124
- export const __wbg_get_permissionpolicyset_addMemberPolicy: (a: number) => number;
125
- export const __wbg_set_permissionpolicyset_addMemberPolicy: (a: number, b: number) => void;
126
- export const __wbg_get_permissionpolicyset_removeMemberPolicy: (a: number) => number;
127
- export const __wbg_set_permissionpolicyset_removeMemberPolicy: (a: number, b: number) => void;
128
- export const __wbg_get_permissionpolicyset_addAdminPolicy: (a: number) => number;
129
- export const __wbg_set_permissionpolicyset_addAdminPolicy: (a: number, b: number) => void;
130
- export const __wbg_get_permissionpolicyset_removeAdminPolicy: (a: number) => number;
131
- export const __wbg_set_permissionpolicyset_removeAdminPolicy: (a: number, b: number) => void;
132
- export const __wbg_get_permissionpolicyset_updateGroupNamePolicy: (a: number) => number;
133
- export const __wbg_set_permissionpolicyset_updateGroupNamePolicy: (a: number, b: number) => void;
134
- export const __wbg_get_permissionpolicyset_updateGroupDescriptionPolicy: (a: number) => number;
135
- export const __wbg_set_permissionpolicyset_updateGroupDescriptionPolicy: (a: number, b: number) => void;
136
- export const __wbg_get_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number) => number;
137
- export const __wbg_set_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number, b: number) => void;
138
- export const __wbg_get_permissionpolicyset_updateMessageDisappearingPolicy: (a: number) => number;
139
- export const __wbg_set_permissionpolicyset_updateMessageDisappearingPolicy: (a: number, b: number) => void;
140
- export const permissionpolicyset_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
141
- export const __wbg_grouppermissions_free: (a: number, b: number) => void;
142
- export const grouppermissions_policyType: (a: number) => [number, number, number];
143
- export const grouppermissions_policySet: (a: number) => [number, number, number];
144
- export const __wbg_streamcloser_free: (a: number, b: number) => void;
145
- export const streamcloser_end: (a: number) => void;
146
- export const streamcloser_endAndWait: (a: number) => any;
147
- export const streamcloser_waitForReady: (a: number) => any;
148
- export const streamcloser_isClosed: (a: number) => number;
149
- export const __wbg_client_free: (a: number, b: number) => void;
150
- export const __wbg_logoptions_free: (a: number, b: number) => void;
151
- export const __wbg_get_logoptions_structured: (a: number) => number;
152
- export const __wbg_set_logoptions_structured: (a: number, b: number) => void;
153
- export const __wbg_get_logoptions_performance: (a: number) => number;
154
- export const __wbg_set_logoptions_performance: (a: number, b: number) => void;
155
- export const __wbg_get_logoptions_level: (a: number) => number;
156
- export const __wbg_set_logoptions_level: (a: number, b: number) => void;
157
- export const logoptions_new: (a: number, b: number, c: number) => number;
158
- export const createClient: (a: number, b: number, c: number, d: number, e: any, f: number, g: number, h: number, i: number, j: number, k: number) => any;
159
- export const client_accountIdentifier: (a: number) => any;
160
- export const client_inboxId: (a: number) => [number, number];
161
- export const client_isRegistered: (a: number) => number;
162
- export const client_installationId: (a: number) => [number, number];
163
- export const client_installationIdBytes: (a: number) => any;
164
- export const client_canMessage: (a: number, b: number, c: number) => any;
165
- export const client_registerIdentity: (a: number) => any;
166
- export const client_sendHistorySyncRequest: (a: number) => any;
167
- export const client_sendConsentSyncRequest: (a: number) => any;
168
- export const client_findInboxIdByIdentifier: (a: number, b: any) => any;
169
- export const client_inboxStateFromInboxIds: (a: number, b: number, c: number, d: number) => any;
170
- export const client_conversations: (a: number) => number;
171
- export const __wbg_installation_free: (a: number, b: number) => void;
172
- export const __wbg_get_installation_bytes: (a: number) => any;
173
- export const __wbg_set_installation_bytes: (a: number, b: any) => void;
174
- export const __wbg_get_installation_id: (a: number) => [number, number];
175
- export const __wbg_set_installation_id: (a: number, b: number, c: number) => void;
176
- export const __wbg_get_installation_clientTimestampNs: (a: number) => [number, bigint];
177
- export const __wbg_set_installation_clientTimestampNs: (a: number, b: number, c: bigint) => void;
178
- export const installation_new: (a: any, b: number, c: number, d: number, e: bigint) => number;
179
- export const __wbg_inboxstate_free: (a: number, b: number) => void;
180
- export const __wbg_get_inboxstate_inboxId: (a: number) => [number, number];
181
- export const __wbg_set_inboxstate_inboxId: (a: number, b: number, c: number) => void;
182
- export const __wbg_get_inboxstate_recoveryIdentifier: (a: number) => any;
183
- export const __wbg_set_inboxstate_recoveryIdentifier: (a: number, b: any) => void;
184
- export const __wbg_get_inboxstate_installations: (a: number) => [number, number];
185
- export const __wbg_set_inboxstate_installations: (a: number, b: number, c: number) => void;
186
- export const __wbg_get_inboxstate_accountIdentifiers: (a: number) => [number, number];
187
- export const __wbg_set_inboxstate_accountIdentifiers: (a: number, b: number, c: number) => void;
188
- export const inboxstate_new: (a: number, b: number, c: any, d: number, e: number, f: number, g: number) => number;
189
- export const client_inboxState: (a: number, b: number) => any;
190
- export const client_getLatestInboxState: (a: number, b: number, c: number) => any;
191
124
  export const __wbg_listconversationsoptions_free: (a: number, b: number) => void;
192
125
  export const __wbg_get_listconversationsoptions_consentStates: (a: number) => [number, number];
193
126
  export const __wbg_set_listconversationsoptions_consentStates: (a: number, b: number, c: number) => void;
@@ -252,8 +185,6 @@ export const conversations_streamAllMessages: (a: number, b: any, c: number) =>
252
185
  export const conversations_streamConsent: (a: number, b: any) => [number, number, number];
253
186
  export const conversations_streamPreferences: (a: number, b: any) => [number, number, number];
254
187
  export const __wbg_contenttypeid_free: (a: number, b: number) => void;
255
- export const __wbg_get_contenttypeid_authorityId: (a: number) => [number, number];
256
- export const __wbg_set_contenttypeid_authorityId: (a: number, b: number, c: number) => void;
257
188
  export const __wbg_get_contenttypeid_typeId: (a: number) => [number, number];
258
189
  export const __wbg_set_contenttypeid_typeId: (a: number, b: number, c: number) => void;
259
190
  export const __wbg_get_contenttypeid_versionMajor: (a: number) => number;
@@ -326,6 +257,87 @@ export const __wbg_get_creategroupoptions_messageDisappearingSettings: (a: numbe
326
257
  export const __wbg_get_listmessagesoptions_sentBeforeNs: (a: number) => [number, bigint];
327
258
  export const __wbg_get_listmessagesoptions_sentAfterNs: (a: number) => [number, bigint];
328
259
  export const __wbg_get_listmessagesoptions_limit: (a: number) => [number, bigint];
260
+ export const __wbg_set_contenttypeid_authorityId: (a: number, b: number, c: number) => void;
261
+ export const __wbg_get_contenttypeid_authorityId: (a: number) => [number, number];
262
+ export const __wbg_client_free: (a: number, b: number) => void;
263
+ export const __wbg_logoptions_free: (a: number, b: number) => void;
264
+ export const __wbg_get_logoptions_structured: (a: number) => number;
265
+ export const __wbg_set_logoptions_structured: (a: number, b: number) => void;
266
+ export const __wbg_get_logoptions_performance: (a: number) => number;
267
+ export const __wbg_set_logoptions_performance: (a: number, b: number) => void;
268
+ export const __wbg_get_logoptions_level: (a: number) => number;
269
+ export const __wbg_set_logoptions_level: (a: number, b: number) => void;
270
+ export const logoptions_new: (a: number, b: number, c: number) => number;
271
+ export const createClient: (a: number, b: number, c: number, d: number, e: any, f: number, g: number, h: number, i: number, j: number, k: number) => any;
272
+ export const client_accountIdentifier: (a: number) => any;
273
+ export const client_inboxId: (a: number) => [number, number];
274
+ export const client_isRegistered: (a: number) => number;
275
+ export const client_installationId: (a: number) => [number, number];
276
+ export const client_installationIdBytes: (a: number) => any;
277
+ export const client_canMessage: (a: number, b: number, c: number) => any;
278
+ export const client_registerIdentity: (a: number) => any;
279
+ export const client_sendHistorySyncRequest: (a: number) => any;
280
+ export const client_sendConsentSyncRequest: (a: number) => any;
281
+ export const client_findInboxIdByIdentifier: (a: number, b: any) => any;
282
+ export const client_inboxStateFromInboxIds: (a: number, b: number, c: number, d: number) => any;
283
+ export const client_conversations: (a: number) => number;
284
+ export const __wbg_installation_free: (a: number, b: number) => void;
285
+ export const __wbg_get_installation_bytes: (a: number) => any;
286
+ export const __wbg_set_installation_bytes: (a: number, b: any) => void;
287
+ export const __wbg_get_installation_id: (a: number) => [number, number];
288
+ export const __wbg_set_installation_id: (a: number, b: number, c: number) => void;
289
+ export const __wbg_get_installation_clientTimestampNs: (a: number) => [number, bigint];
290
+ export const __wbg_set_installation_clientTimestampNs: (a: number, b: number, c: bigint) => void;
291
+ export const installation_new: (a: any, b: number, c: number, d: number, e: bigint) => number;
292
+ export const __wbg_inboxstate_free: (a: number, b: number) => void;
293
+ export const __wbg_get_inboxstate_inboxId: (a: number) => [number, number];
294
+ export const __wbg_set_inboxstate_inboxId: (a: number, b: number, c: number) => void;
295
+ export const __wbg_get_inboxstate_recoveryIdentifier: (a: number) => any;
296
+ export const __wbg_set_inboxstate_recoveryIdentifier: (a: number, b: any) => void;
297
+ export const __wbg_get_inboxstate_installations: (a: number) => [number, number];
298
+ export const __wbg_set_inboxstate_installations: (a: number, b: number, c: number) => void;
299
+ export const __wbg_get_inboxstate_accountIdentifiers: (a: number) => [number, number];
300
+ export const __wbg_set_inboxstate_accountIdentifiers: (a: number, b: number, c: number) => void;
301
+ export const inboxstate_new: (a: number, b: number, c: any, d: number, e: number, f: number, g: number) => number;
302
+ export const __wbg_keypackagestatus_free: (a: number, b: number) => void;
303
+ export const __wbg_get_keypackagestatus_lifetime: (a: number) => number;
304
+ export const __wbg_set_keypackagestatus_lifetime: (a: number, b: number) => void;
305
+ export const __wbg_get_keypackagestatus_validationError: (a: number) => [number, number];
306
+ export const __wbg_set_keypackagestatus_validationError: (a: number, b: number, c: number) => void;
307
+ export const __wbg_lifetime_free: (a: number, b: number) => void;
308
+ export const __wbg_get_lifetime_not_before: (a: number) => bigint;
309
+ export const __wbg_set_lifetime_not_before: (a: number, b: bigint) => void;
310
+ export const __wbg_get_lifetime_not_after: (a: number) => bigint;
311
+ export const __wbg_set_lifetime_not_after: (a: number, b: bigint) => void;
312
+ export const client_inboxState: (a: number, b: number) => any;
313
+ export const client_getLatestInboxState: (a: number, b: number, c: number) => any;
314
+ export const client_getKeyPackageStatusesForInstallationIds: (a: number, b: number, c: number) => any;
315
+ export const __wbg_permissionpolicyset_free: (a: number, b: number) => void;
316
+ export const __wbg_get_permissionpolicyset_addMemberPolicy: (a: number) => number;
317
+ export const __wbg_set_permissionpolicyset_addMemberPolicy: (a: number, b: number) => void;
318
+ export const __wbg_get_permissionpolicyset_removeMemberPolicy: (a: number) => number;
319
+ export const __wbg_set_permissionpolicyset_removeMemberPolicy: (a: number, b: number) => void;
320
+ export const __wbg_get_permissionpolicyset_addAdminPolicy: (a: number) => number;
321
+ export const __wbg_set_permissionpolicyset_addAdminPolicy: (a: number, b: number) => void;
322
+ export const __wbg_get_permissionpolicyset_removeAdminPolicy: (a: number) => number;
323
+ export const __wbg_set_permissionpolicyset_removeAdminPolicy: (a: number, b: number) => void;
324
+ export const __wbg_get_permissionpolicyset_updateGroupNamePolicy: (a: number) => number;
325
+ export const __wbg_set_permissionpolicyset_updateGroupNamePolicy: (a: number, b: number) => void;
326
+ export const __wbg_get_permissionpolicyset_updateGroupDescriptionPolicy: (a: number) => number;
327
+ export const __wbg_set_permissionpolicyset_updateGroupDescriptionPolicy: (a: number, b: number) => void;
328
+ export const __wbg_get_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number) => number;
329
+ export const __wbg_set_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number, b: number) => void;
330
+ export const __wbg_get_permissionpolicyset_updateMessageDisappearingPolicy: (a: number) => number;
331
+ export const __wbg_set_permissionpolicyset_updateMessageDisappearingPolicy: (a: number, b: number) => void;
332
+ export const permissionpolicyset_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
333
+ export const __wbg_grouppermissions_free: (a: number, b: number) => void;
334
+ export const grouppermissions_policyType: (a: number) => [number, number, number];
335
+ export const grouppermissions_policySet: (a: number) => [number, number, number];
336
+ export const __wbg_streamcloser_free: (a: number, b: number) => void;
337
+ export const streamcloser_end: (a: number) => void;
338
+ export const streamcloser_endAndWait: (a: number) => any;
339
+ export const streamcloser_waitForReady: (a: number) => any;
340
+ export const streamcloser_isClosed: (a: number) => number;
329
341
  export const rust_sqlite_wasm_shim_localtime_js: (a: bigint, b: number) => void;
330
342
  export const rust_sqlite_wasm_shim_tzset_js: (a: number, b: number, c: number, d: number) => void;
331
343
  export const rust_sqlite_wasm_shim_emscripten_get_now: () => number;
@@ -356,7 +368,7 @@ export const __externref_drop_slice: (a: number, b: number) => void;
356
368
  export const __wbindgen_export_7: WebAssembly.Table;
357
369
  export const __externref_table_dealloc: (a: number) => void;
358
370
  export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hd11fcf7148e8db56: (a: number, b: number) => void;
359
- export const closure3804_externref_shim: (a: number, b: number, c: any) => void;
360
- export const closure4799_externref_shim: (a: number, b: number, c: any, d: number, e: any) => number;
361
- export const closure4798_externref_shim: (a: number, b: number, c: any, d: any) => void;
371
+ export const closure3862_externref_shim: (a: number, b: number, c: any) => void;
372
+ export const closure4857_externref_shim: (a: number, b: number, c: any, d: number, e: any) => number;
373
+ export const closure4856_externref_shim: (a: number, b: number, c: any, d: any) => void;
362
374
  export const __wbindgen_start: () => void;
@@ -0,0 +1,5 @@
1
+ {
2
+ "branch": "main",
3
+ "version": "bed98df",
4
+ "date": "2025-04-01 18:51:17 +0000"
5
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xmtp/wasm-bindings",
3
- "version": "1.1.2",
3
+ "version": "1.2.0-dev.bed98df",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "description": "WASM bindings for the libXMTP rust library",
@@ -32,6 +32,7 @@
32
32
  "check:macos": "CC_wasm32_unknown_unknown=/opt/homebrew/opt/llvm/bin/clang cargo check --target wasm32-unknown-unknown",
33
33
  "clean": "rm -rf ./dist",
34
34
  "clean:release": "rm ./dist/.gitignore",
35
+ "generate:version": "tsx scripts/version.ts",
35
36
  "lint": "yarn lint:clippy && yarn lint:fmt",
36
37
  "lint:macos": "yarn lint:clippy:macos && yarn lint:fmt",
37
38
  "lint:clippy": "cargo clippy --locked --all-features --target wasm32-unknown-unknown --no-deps -- -D warnings",
@@ -61,8 +62,10 @@
61
62
  },
62
63
  "devDependencies": {
63
64
  "@sqlite.org/sqlite-wasm": "^3.47.0-build1",
64
- "binaryen": "^122.0.0",
65
- "wasm-pack": "^0.13.1"
65
+ "binaryen": "^123.0.0",
66
+ "tsx": "^4.19.3",
67
+ "wasm-pack": "^0.13.1",
68
+ "zx": "^8.4.0"
66
69
  },
67
70
  "packageManager": "yarn@4.5.1"
68
71
  }