@xmtp/wasm-bindings 1.0.0-rc1 → 1.0.0-rc2

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.
@@ -4,8 +4,8 @@ export function encodeMultiRemoteAttachment(multiRemoteAttachment: MultiRemoteAt
4
4
  export function decodeMultiRemoteAttachment(bytes: Uint8Array): MultiRemoteAttachment;
5
5
  export function encodeReaction(reaction: Reaction): Uint8Array;
6
6
  export function decodeReaction(bytes: Uint8Array): Reaction;
7
- export function getInboxIdForAddress(host: string, account_identifier: Identifier): Promise<string | undefined>;
8
- export function generateInboxId(account_identifier: Identifier): string;
7
+ export function getInboxIdForIdentifier(host: string, accountIdentifier: Identifier): Promise<string | undefined>;
8
+ export function generateInboxId(accountIdentifier: Identifier): string;
9
9
  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>;
10
10
  export function verifySignedWithPublicKey(signature_text: string, signature_bytes: Uint8Array, public_key: Uint8Array): void;
11
11
  export enum ConsentEntityType {
@@ -136,7 +136,7 @@ export class Client {
136
136
  registerIdentity(): Promise<void>;
137
137
  sendHistorySyncRequest(): Promise<void>;
138
138
  sendConsentSyncRequest(): Promise<void>;
139
- findInboxIdByAddress(identifier: Identifier): Promise<string | undefined>;
139
+ findInboxIdByIdentifier(identifier: Identifier): Promise<string | undefined>;
140
140
  conversations(): Conversations;
141
141
  createInboxSignatureText(): string | undefined;
142
142
  addWalletSignatureText(new_identifier: Identifier): Promise<string>;
@@ -149,7 +149,7 @@ export class Client {
149
149
  applySignatureRequests(): Promise<void>;
150
150
  signWithInstallationKey(signature_text: string): Uint8Array;
151
151
  verifySignedWithInstallationKey(signature_text: string, signature_bytes: Uint8Array): void;
152
- readonly accountAddress: Identifier;
152
+ readonly accountIdentifier: Identifier;
153
153
  readonly inboxId: string;
154
154
  readonly isRegistered: boolean;
155
155
  readonly installationId: string;
@@ -288,9 +288,9 @@ export class EncodedContent {
288
288
  }
289
289
  export class GroupMember {
290
290
  free(): void;
291
- constructor(inbox_id: string, account_identifiers: Identifier[], installation_ids: string[], permission_level: PermissionLevel, consent_state: ConsentState);
291
+ constructor(inboxId: string, accountIdentifiers: Identifier[], installationIds: string[], permissionLevel: PermissionLevel, consentState: ConsentState);
292
292
  inboxId: string;
293
- accountAddresses: Identifier[];
293
+ accountIdentifiers: Identifier[];
294
294
  installationIds: string[];
295
295
  permissionLevel: PermissionLevel;
296
296
  consentState: ConsentState;
@@ -314,12 +314,12 @@ export class HmacKey {
314
314
  epoch: bigint;
315
315
  }
316
316
  export class Identifier {
317
- private constructor();
318
317
  free(): void;
318
+ constructor(identifier: string, identifierKind: IdentifierKind, relyingParty?: string | null);
319
319
  identifier: string;
320
- identifier_kind: IdentifierKind;
321
- get relying_party(): string | undefined;
322
- set relying_party(value: string | null | undefined);
320
+ identifierKind: IdentifierKind;
321
+ get relyingParty(): string | undefined;
322
+ set relyingParty(value: string | null | undefined);
323
323
  }
324
324
  export class InboxState {
325
325
  free(): void;
@@ -327,7 +327,7 @@ export class InboxState {
327
327
  inboxId: string;
328
328
  recoveryIdentifier: Identifier;
329
329
  installations: Installation[];
330
- accountAddresses: Identifier[];
330
+ accountIdentifiers: Identifier[];
331
331
  }
332
332
  export class Installation {
333
333
  free(): void;
@@ -545,8 +545,8 @@ export interface InitOutput {
545
545
  readonly __wbg_groupmember_free: (a: number, b: number) => void;
546
546
  readonly __wbg_get_groupmember_inboxId: (a: number) => [number, number];
547
547
  readonly __wbg_set_groupmember_inboxId: (a: number, b: number, c: number) => void;
548
- readonly __wbg_get_groupmember_accountAddresses: (a: number) => [number, number];
549
- readonly __wbg_set_groupmember_accountAddresses: (a: number, b: number, c: number) => void;
548
+ readonly __wbg_get_groupmember_accountIdentifiers: (a: number) => [number, number];
549
+ readonly __wbg_set_groupmember_accountIdentifiers: (a: number, b: number, c: number) => void;
550
550
  readonly __wbg_get_groupmember_installationIds: (a: number) => [number, number];
551
551
  readonly __wbg_set_groupmember_installationIds: (a: number, b: number, c: number) => void;
552
552
  readonly __wbg_get_groupmember_permissionLevel: (a: number) => number;
@@ -595,7 +595,7 @@ export interface InitOutput {
595
595
  readonly conversation_messageDisappearingSettings: (a: number) => [number, number, number];
596
596
  readonly conversation_isMessageDisappearingEnabled: (a: number) => [number, number, number];
597
597
  readonly conversation_getHmacKeys: (a: number) => [number, number, number];
598
- readonly getInboxIdForAddress: (a: number, b: number, c: number) => any;
598
+ readonly getInboxIdForIdentifier: (a: number, b: number, c: number) => any;
599
599
  readonly generateInboxId: (a: number) => [number, number, number, number];
600
600
  readonly __wbg_set_reaction_reference: (a: number, b: number, c: number) => void;
601
601
  readonly __wbg_get_reaction_reference: (a: number) => [number, number];
@@ -617,10 +617,11 @@ export interface InitOutput {
617
617
  readonly conversation_consentState: (a: number) => [number, number, number];
618
618
  readonly conversation_updateConsentState: (a: number, b: number) => [number, number];
619
619
  readonly __wbg_identifier_free: (a: number, b: number) => void;
620
- readonly __wbg_get_identifier_identifier_kind: (a: number) => number;
621
- readonly __wbg_set_identifier_identifier_kind: (a: number, b: number) => void;
622
- readonly __wbg_get_identifier_relying_party: (a: number) => [number, number];
623
- readonly __wbg_set_identifier_relying_party: (a: number, b: number, c: number) => void;
620
+ readonly __wbg_get_identifier_identifierKind: (a: number) => number;
621
+ readonly __wbg_set_identifier_identifierKind: (a: number, b: number) => void;
622
+ readonly __wbg_get_identifier_relyingParty: (a: number) => [number, number];
623
+ readonly __wbg_set_identifier_relyingParty: (a: number, b: number, c: number) => void;
624
+ readonly identifier_new: (a: number, b: number, c: number, d: number, e: number) => number;
624
625
  readonly __wbg_permissionpolicyset_free: (a: number, b: number) => void;
625
626
  readonly __wbg_get_permissionpolicyset_addMemberPolicy: (a: number) => number;
626
627
  readonly __wbg_set_permissionpolicyset_addMemberPolicy: (a: number, b: number) => void;
@@ -740,8 +741,8 @@ export interface InitOutput {
740
741
  readonly __wbg_set_inboxstate_recoveryIdentifier: (a: number, b: number) => void;
741
742
  readonly __wbg_get_inboxstate_installations: (a: number) => [number, number];
742
743
  readonly __wbg_set_inboxstate_installations: (a: number, b: number, c: number) => void;
743
- readonly __wbg_get_inboxstate_accountAddresses: (a: number) => [number, number];
744
- readonly __wbg_set_inboxstate_accountAddresses: (a: number, b: number, c: number) => void;
744
+ readonly __wbg_get_inboxstate_accountIdentifiers: (a: number) => [number, number];
745
+ readonly __wbg_set_inboxstate_accountIdentifiers: (a: number, b: number, c: number) => void;
745
746
  readonly inboxstate_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number;
746
747
  readonly client_inboxState: (a: number, b: number) => any;
747
748
  readonly client_getLatestInboxState: (a: number, b: number, c: number) => any;
@@ -798,7 +799,7 @@ export interface InitOutput {
798
799
  readonly __wbg_set_logoptions_level: (a: number, b: number) => void;
799
800
  readonly logoptions_new: (a: number, b: number, c: number) => number;
800
801
  readonly createClient: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => any;
801
- readonly client_accountAddress: (a: number) => number;
802
+ readonly client_accountIdentifier: (a: number) => number;
802
803
  readonly client_inboxId: (a: number) => [number, number];
803
804
  readonly client_isRegistered: (a: number) => number;
804
805
  readonly client_installationId: (a: number) => [number, number];
@@ -807,7 +808,7 @@ export interface InitOutput {
807
808
  readonly client_registerIdentity: (a: number) => any;
808
809
  readonly client_sendHistorySyncRequest: (a: number) => any;
809
810
  readonly client_sendConsentSyncRequest: (a: number) => any;
810
- readonly client_findInboxIdByAddress: (a: number, b: number) => any;
811
+ readonly client_findInboxIdByIdentifier: (a: number, b: number) => any;
811
812
  readonly client_conversations: (a: number) => number;
812
813
  readonly verifySignedWithPublicKey: (a: number, b: number, c: any, d: any) => [number, number];
813
814
  readonly __wbg_passkeysignature_free: (a: number, b: number) => void;
@@ -289,28 +289,28 @@ export function decodeReaction(bytes) {
289
289
 
290
290
  /**
291
291
  * @param {string} host
292
- * @param {Identifier} account_identifier
292
+ * @param {Identifier} accountIdentifier
293
293
  * @returns {Promise<string | undefined>}
294
294
  */
295
- export function getInboxIdForAddress(host, account_identifier) {
295
+ export function getInboxIdForIdentifier(host, accountIdentifier) {
296
296
  const ptr0 = passStringToWasm0(host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
297
297
  const len0 = WASM_VECTOR_LEN;
298
- _assertClass(account_identifier, Identifier);
299
- var ptr1 = account_identifier.__destroy_into_raw();
300
- const ret = wasm.getInboxIdForAddress(ptr0, len0, ptr1);
298
+ _assertClass(accountIdentifier, Identifier);
299
+ var ptr1 = accountIdentifier.__destroy_into_raw();
300
+ const ret = wasm.getInboxIdForIdentifier(ptr0, len0, ptr1);
301
301
  return ret;
302
302
  }
303
303
 
304
304
  /**
305
- * @param {Identifier} account_identifier
305
+ * @param {Identifier} accountIdentifier
306
306
  * @returns {string}
307
307
  */
308
- export function generateInboxId(account_identifier) {
308
+ export function generateInboxId(accountIdentifier) {
309
309
  let deferred3_0;
310
310
  let deferred3_1;
311
311
  try {
312
- _assertClass(account_identifier, Identifier);
313
- var ptr0 = account_identifier.__destroy_into_raw();
312
+ _assertClass(accountIdentifier, Identifier);
313
+ var ptr0 = accountIdentifier.__destroy_into_raw();
314
314
  const ret = wasm.generateInboxId(ptr0);
315
315
  var ptr2 = ret[0];
316
316
  var len2 = ret[1];
@@ -384,12 +384,12 @@ function __wbg_adapter_49(arg0, arg1, arg2) {
384
384
  wasm.closure3746_externref_shim(arg0, arg1, arg2);
385
385
  }
386
386
 
387
- function __wbg_adapter_591(arg0, arg1, arg2, arg3, arg4) {
387
+ function __wbg_adapter_592(arg0, arg1, arg2, arg3, arg4) {
388
388
  const ret = wasm.closure4755_externref_shim(arg0, arg1, arg2, arg3, arg4);
389
389
  return ret !== 0;
390
390
  }
391
391
 
392
- function __wbg_adapter_692(arg0, arg1, arg2, arg3) {
392
+ function __wbg_adapter_693(arg0, arg1, arg2, arg3) {
393
393
  wasm.closure4754_externref_shim(arg0, arg1, arg2, arg3);
394
394
  }
395
395
 
@@ -623,8 +623,8 @@ export class Client {
623
623
  /**
624
624
  * @returns {Identifier}
625
625
  */
626
- get accountAddress() {
627
- const ret = wasm.client_accountAddress(this.__wbg_ptr);
626
+ get accountIdentifier() {
627
+ const ret = wasm.client_accountIdentifier(this.__wbg_ptr);
628
628
  return Identifier.__wrap(ret);
629
629
  }
630
630
  /**
@@ -707,10 +707,10 @@ export class Client {
707
707
  * @param {Identifier} identifier
708
708
  * @returns {Promise<string | undefined>}
709
709
  */
710
- findInboxIdByAddress(identifier) {
710
+ findInboxIdByIdentifier(identifier) {
711
711
  _assertClass(identifier, Identifier);
712
712
  var ptr0 = identifier.__destroy_into_raw();
713
- const ret = wasm.client_findInboxIdByAddress(this.__wbg_ptr, ptr0);
713
+ const ret = wasm.client_findInboxIdByIdentifier(this.__wbg_ptr, ptr0);
714
714
  return ret;
715
715
  }
716
716
  /**
@@ -2292,8 +2292,8 @@ export class GroupMember {
2292
2292
  /**
2293
2293
  * @returns {Identifier[]}
2294
2294
  */
2295
- get accountAddresses() {
2296
- const ret = wasm.__wbg_get_groupmember_accountAddresses(this.__wbg_ptr);
2295
+ get accountIdentifiers() {
2296
+ const ret = wasm.__wbg_get_groupmember_accountIdentifiers(this.__wbg_ptr);
2297
2297
  var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
2298
2298
  wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
2299
2299
  return v1;
@@ -2301,10 +2301,10 @@ export class GroupMember {
2301
2301
  /**
2302
2302
  * @param {Identifier[]} arg0
2303
2303
  */
2304
- set accountAddresses(arg0) {
2304
+ set accountIdentifiers(arg0) {
2305
2305
  const ptr0 = passArrayJsValueToWasm0(arg0, wasm.__wbindgen_malloc);
2306
2306
  const len0 = WASM_VECTOR_LEN;
2307
- wasm.__wbg_set_groupmember_accountAddresses(this.__wbg_ptr, ptr0, len0);
2307
+ wasm.__wbg_set_groupmember_accountIdentifiers(this.__wbg_ptr, ptr0, len0);
2308
2308
  }
2309
2309
  /**
2310
2310
  * @returns {string[]}
@@ -2350,20 +2350,20 @@ export class GroupMember {
2350
2350
  wasm.__wbg_set_groupmember_consentState(this.__wbg_ptr, arg0);
2351
2351
  }
2352
2352
  /**
2353
- * @param {string} inbox_id
2354
- * @param {Identifier[]} account_identifiers
2355
- * @param {string[]} installation_ids
2356
- * @param {PermissionLevel} permission_level
2357
- * @param {ConsentState} consent_state
2353
+ * @param {string} inboxId
2354
+ * @param {Identifier[]} accountIdentifiers
2355
+ * @param {string[]} installationIds
2356
+ * @param {PermissionLevel} permissionLevel
2357
+ * @param {ConsentState} consentState
2358
2358
  */
2359
- constructor(inbox_id, account_identifiers, installation_ids, permission_level, consent_state) {
2360
- const ptr0 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2359
+ constructor(inboxId, accountIdentifiers, installationIds, permissionLevel, consentState) {
2360
+ const ptr0 = passStringToWasm0(inboxId, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2361
2361
  const len0 = WASM_VECTOR_LEN;
2362
- const ptr1 = passArrayJsValueToWasm0(account_identifiers, wasm.__wbindgen_malloc);
2362
+ const ptr1 = passArrayJsValueToWasm0(accountIdentifiers, wasm.__wbindgen_malloc);
2363
2363
  const len1 = WASM_VECTOR_LEN;
2364
- const ptr2 = passArrayJsValueToWasm0(installation_ids, wasm.__wbindgen_malloc);
2364
+ const ptr2 = passArrayJsValueToWasm0(installationIds, wasm.__wbindgen_malloc);
2365
2365
  const len2 = WASM_VECTOR_LEN;
2366
- const ret = wasm.groupmember_new(ptr0, len0, ptr1, len1, ptr2, len2, permission_level, consent_state);
2366
+ const ret = wasm.groupmember_new(ptr0, len0, ptr1, len1, ptr2, len2, permissionLevel, consentState);
2367
2367
  this.__wbg_ptr = ret >>> 0;
2368
2368
  GroupMemberFinalization.register(this, this.__wbg_ptr, this);
2369
2369
  return this;
@@ -2581,21 +2581,21 @@ export class Identifier {
2581
2581
  /**
2582
2582
  * @returns {IdentifierKind}
2583
2583
  */
2584
- get identifier_kind() {
2585
- const ret = wasm.__wbg_get_identifier_identifier_kind(this.__wbg_ptr);
2584
+ get identifierKind() {
2585
+ const ret = wasm.__wbg_get_identifier_identifierKind(this.__wbg_ptr);
2586
2586
  return ret;
2587
2587
  }
2588
2588
  /**
2589
2589
  * @param {IdentifierKind} arg0
2590
2590
  */
2591
- set identifier_kind(arg0) {
2592
- wasm.__wbg_set_identifier_identifier_kind(this.__wbg_ptr, arg0);
2591
+ set identifierKind(arg0) {
2592
+ wasm.__wbg_set_identifier_identifierKind(this.__wbg_ptr, arg0);
2593
2593
  }
2594
2594
  /**
2595
2595
  * @returns {string | undefined}
2596
2596
  */
2597
- get relying_party() {
2598
- const ret = wasm.__wbg_get_identifier_relying_party(this.__wbg_ptr);
2597
+ get relyingParty() {
2598
+ const ret = wasm.__wbg_get_identifier_relyingParty(this.__wbg_ptr);
2599
2599
  let v1;
2600
2600
  if (ret[0] !== 0) {
2601
2601
  v1 = getStringFromWasm0(ret[0], ret[1]).slice();
@@ -2606,10 +2606,25 @@ export class Identifier {
2606
2606
  /**
2607
2607
  * @param {string | null} [arg0]
2608
2608
  */
2609
- set relying_party(arg0) {
2609
+ set relyingParty(arg0) {
2610
2610
  var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2611
2611
  var len0 = WASM_VECTOR_LEN;
2612
- wasm.__wbg_set_identifier_relying_party(this.__wbg_ptr, ptr0, len0);
2612
+ wasm.__wbg_set_identifier_relyingParty(this.__wbg_ptr, ptr0, len0);
2613
+ }
2614
+ /**
2615
+ * @param {string} identifier
2616
+ * @param {IdentifierKind} identifierKind
2617
+ * @param {string | null} [relyingParty]
2618
+ */
2619
+ constructor(identifier, identifierKind, relyingParty) {
2620
+ const ptr0 = passStringToWasm0(identifier, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2621
+ const len0 = WASM_VECTOR_LEN;
2622
+ var ptr1 = isLikeNone(relyingParty) ? 0 : passStringToWasm0(relyingParty, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2623
+ var len1 = WASM_VECTOR_LEN;
2624
+ const ret = wasm.identifier_new(ptr0, len0, identifierKind, ptr1, len1);
2625
+ this.__wbg_ptr = ret >>> 0;
2626
+ IdentifierFinalization.register(this, this.__wbg_ptr, this);
2627
+ return this;
2613
2628
  }
2614
2629
  }
2615
2630
 
@@ -2696,8 +2711,8 @@ export class InboxState {
2696
2711
  /**
2697
2712
  * @returns {Identifier[]}
2698
2713
  */
2699
- get accountAddresses() {
2700
- const ret = wasm.__wbg_get_inboxstate_accountAddresses(this.__wbg_ptr);
2714
+ get accountIdentifiers() {
2715
+ const ret = wasm.__wbg_get_inboxstate_accountIdentifiers(this.__wbg_ptr);
2701
2716
  var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
2702
2717
  wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
2703
2718
  return v1;
@@ -2705,10 +2720,10 @@ export class InboxState {
2705
2720
  /**
2706
2721
  * @param {Identifier[]} arg0
2707
2722
  */
2708
- set accountAddresses(arg0) {
2723
+ set accountIdentifiers(arg0) {
2709
2724
  const ptr0 = passArrayJsValueToWasm0(arg0, wasm.__wbindgen_malloc);
2710
2725
  const len0 = WASM_VECTOR_LEN;
2711
- wasm.__wbg_set_inboxstate_accountAddresses(this.__wbg_ptr, ptr0, len0);
2726
+ wasm.__wbg_set_inboxstate_accountIdentifiers(this.__wbg_ptr, ptr0, len0);
2712
2727
  }
2713
2728
  /**
2714
2729
  * @param {string} inbox_id
@@ -4378,7 +4393,7 @@ function __wbg_get_imports() {
4378
4393
  const a = state0.a;
4379
4394
  state0.a = 0;
4380
4395
  try {
4381
- return __wbg_adapter_591(a, state0.b, arg0, arg1, arg2);
4396
+ return __wbg_adapter_592(a, state0.b, arg0, arg1, arg2);
4382
4397
  } finally {
4383
4398
  state0.a = a;
4384
4399
  }
@@ -4408,7 +4423,7 @@ function __wbg_get_imports() {
4408
4423
  const a = state0.a;
4409
4424
  state0.a = 0;
4410
4425
  try {
4411
- return __wbg_adapter_591(a, state0.b, arg0, arg1, arg2);
4426
+ return __wbg_adapter_592(a, state0.b, arg0, arg1, arg2);
4412
4427
  } finally {
4413
4428
  state0.a = a;
4414
4429
  }
@@ -4700,7 +4715,7 @@ function __wbg_get_imports() {
4700
4715
  const a = state0.a;
4701
4716
  state0.a = 0;
4702
4717
  try {
4703
- return __wbg_adapter_692(a, state0.b, arg0, arg1);
4718
+ return __wbg_adapter_693(a, state0.b, arg0, arg1);
4704
4719
  } finally {
4705
4720
  state0.a = a;
4706
4721
  }
@@ -5099,11 +5114,11 @@ function __wbg_get_imports() {
5099
5114
  const ret = false;
5100
5115
  return ret;
5101
5116
  };
5102
- imports.wbg.__wbindgen_closure_wrapper16176 = function(arg0, arg1, arg2) {
5117
+ imports.wbg.__wbindgen_closure_wrapper16179 = function(arg0, arg1, arg2) {
5103
5118
  const ret = makeMutClosure(arg0, arg1, 3674, __wbg_adapter_46);
5104
5119
  return ret;
5105
5120
  };
5106
- imports.wbg.__wbindgen_closure_wrapper16472 = function(arg0, arg1, arg2) {
5121
+ imports.wbg.__wbindgen_closure_wrapper16475 = function(arg0, arg1, arg2) {
5107
5122
  const ret = makeMutClosure(arg0, arg1, 3747, __wbg_adapter_49);
5108
5123
  return ret;
5109
5124
  };
Binary file
@@ -43,8 +43,8 @@ export const groupmetadata_conversationType: (a: number) => [number, number];
43
43
  export const __wbg_groupmember_free: (a: number, b: number) => void;
44
44
  export const __wbg_get_groupmember_inboxId: (a: number) => [number, number];
45
45
  export const __wbg_set_groupmember_inboxId: (a: number, b: number, c: number) => void;
46
- export const __wbg_get_groupmember_accountAddresses: (a: number) => [number, number];
47
- export const __wbg_set_groupmember_accountAddresses: (a: number, b: number, c: number) => void;
46
+ export const __wbg_get_groupmember_accountIdentifiers: (a: number) => [number, number];
47
+ export const __wbg_set_groupmember_accountIdentifiers: (a: number, b: number, c: number) => void;
48
48
  export const __wbg_get_groupmember_installationIds: (a: number) => [number, number];
49
49
  export const __wbg_set_groupmember_installationIds: (a: number, b: number, c: number) => void;
50
50
  export const __wbg_get_groupmember_permissionLevel: (a: number) => number;
@@ -93,7 +93,7 @@ export const conversation_removeMessageDisappearingSettings: (a: number) => any;
93
93
  export const conversation_messageDisappearingSettings: (a: number) => [number, number, number];
94
94
  export const conversation_isMessageDisappearingEnabled: (a: number) => [number, number, number];
95
95
  export const conversation_getHmacKeys: (a: number) => [number, number, number];
96
- export const getInboxIdForAddress: (a: number, b: number, c: number) => any;
96
+ export const getInboxIdForIdentifier: (a: number, b: number, c: number) => any;
97
97
  export const generateInboxId: (a: number) => [number, number, number, number];
98
98
  export const __wbg_set_reaction_reference: (a: number, b: number, c: number) => void;
99
99
  export const __wbg_get_reaction_reference: (a: number) => [number, number];
@@ -115,10 +115,11 @@ export const client_getConsentState: (a: number, b: number, c: number, d: number
115
115
  export const conversation_consentState: (a: number) => [number, number, number];
116
116
  export const conversation_updateConsentState: (a: number, b: number) => [number, number];
117
117
  export const __wbg_identifier_free: (a: number, b: number) => void;
118
- export const __wbg_get_identifier_identifier_kind: (a: number) => number;
119
- export const __wbg_set_identifier_identifier_kind: (a: number, b: number) => void;
120
- export const __wbg_get_identifier_relying_party: (a: number) => [number, number];
121
- export const __wbg_set_identifier_relying_party: (a: number, b: number, c: number) => void;
118
+ export const __wbg_get_identifier_identifierKind: (a: number) => number;
119
+ export const __wbg_set_identifier_identifierKind: (a: number, b: number) => void;
120
+ export const __wbg_get_identifier_relyingParty: (a: number) => [number, number];
121
+ export const __wbg_set_identifier_relyingParty: (a: number, b: number, c: number) => void;
122
+ export const identifier_new: (a: number, b: number, c: number, d: number, e: number) => number;
122
123
  export const __wbg_permissionpolicyset_free: (a: number, b: number) => void;
123
124
  export const __wbg_get_permissionpolicyset_addMemberPolicy: (a: number) => number;
124
125
  export const __wbg_set_permissionpolicyset_addMemberPolicy: (a: number, b: number) => void;
@@ -238,8 +239,8 @@ export const __wbg_get_inboxstate_recoveryIdentifier: (a: number) => number;
238
239
  export const __wbg_set_inboxstate_recoveryIdentifier: (a: number, b: number) => void;
239
240
  export const __wbg_get_inboxstate_installations: (a: number) => [number, number];
240
241
  export const __wbg_set_inboxstate_installations: (a: number, b: number, c: number) => void;
241
- export const __wbg_get_inboxstate_accountAddresses: (a: number) => [number, number];
242
- export const __wbg_set_inboxstate_accountAddresses: (a: number, b: number, c: number) => void;
242
+ export const __wbg_get_inboxstate_accountIdentifiers: (a: number) => [number, number];
243
+ export const __wbg_set_inboxstate_accountIdentifiers: (a: number, b: number, c: number) => void;
243
244
  export const inboxstate_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number;
244
245
  export const client_inboxState: (a: number, b: number) => any;
245
246
  export const client_getLatestInboxState: (a: number, b: number, c: number) => any;
@@ -296,7 +297,7 @@ export const __wbg_get_logoptions_level: (a: number) => number;
296
297
  export const __wbg_set_logoptions_level: (a: number, b: number) => void;
297
298
  export const logoptions_new: (a: number, b: number, c: number) => number;
298
299
  export const createClient: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => any;
299
- export const client_accountAddress: (a: number) => number;
300
+ export const client_accountIdentifier: (a: number) => number;
300
301
  export const client_inboxId: (a: number) => [number, number];
301
302
  export const client_isRegistered: (a: number) => number;
302
303
  export const client_installationId: (a: number) => [number, number];
@@ -305,7 +306,7 @@ export const client_canMessage: (a: number, b: number, c: number) => any;
305
306
  export const client_registerIdentity: (a: number) => any;
306
307
  export const client_sendHistorySyncRequest: (a: number) => any;
307
308
  export const client_sendConsentSyncRequest: (a: number) => any;
308
- export const client_findInboxIdByAddress: (a: number, b: number) => any;
309
+ export const client_findInboxIdByIdentifier: (a: number, b: number) => any;
309
310
  export const client_conversations: (a: number) => number;
310
311
  export const verifySignedWithPublicKey: (a: number, b: number, c: any, d: any) => [number, number];
311
312
  export const __wbg_passkeysignature_free: (a: number, b: number) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xmtp/wasm-bindings",
3
- "version": "1.0.0-rc1",
3
+ "version": "1.0.0-rc2",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "description": "WASM bindings for the libXMTP rust library",