@xmtp/wasm-bindings 0.0.10 → 0.0.11

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.
@@ -96,12 +96,6 @@ export class Client {
96
96
  applySignatureRequests(): Promise<void>;
97
97
  signWithInstallationKey(signature_text: string): Uint8Array;
98
98
  verifySignedWithInstallationKey(signature_text: string, signature_bytes: Uint8Array): void;
99
- canMessage(account_addresses: (string)[]): Promise<any>;
100
- registerIdentity(): Promise<void>;
101
- sendHistorySyncRequest(): Promise<void>;
102
- sendConsentSyncRequest(): Promise<void>;
103
- findInboxIdByAddress(address: string): Promise<string | undefined>;
104
- conversations(): Conversations;
105
99
  /**
106
100
  *
107
101
  * * Get the client's inbox state.
@@ -112,6 +106,12 @@ export class Client {
112
106
  */
113
107
  inboxState(refresh_from_network: boolean): Promise<InboxState>;
114
108
  getLatestInboxState(inbox_id: string): Promise<InboxState>;
109
+ canMessage(account_addresses: (string)[]): Promise<any>;
110
+ registerIdentity(): Promise<void>;
111
+ sendHistorySyncRequest(): Promise<void>;
112
+ sendConsentSyncRequest(): Promise<void>;
113
+ findInboxIdByAddress(address: string): Promise<string | undefined>;
114
+ conversations(): Conversations;
115
115
  readonly accountAddress: string;
116
116
  readonly inboxId: string;
117
117
  readonly isRegistered: boolean;
@@ -189,9 +189,9 @@ export class Conversations {
189
189
  findMessageById(message_id: string): Message;
190
190
  sync(): Promise<void>;
191
191
  syncAllConversations(): Promise<number>;
192
- list(opts?: ListConversationsOptions): Promise<Array<any>>;
193
- listGroups(opts?: ListConversationsOptions): Promise<Array<any>>;
194
- listDms(opts?: ListConversationsOptions): Promise<Array<any>>;
192
+ list(opts?: ListConversationsOptions): Array<any>;
193
+ listGroups(opts?: ListConversationsOptions): Array<any>;
194
+ listDms(opts?: ListConversationsOptions): Array<any>;
195
195
  }
196
196
  export class CreateGroupOptions {
197
197
  free(): void;
@@ -243,7 +243,8 @@ export class InboxState {
243
243
  }
244
244
  export class Installation {
245
245
  free(): void;
246
- constructor(id: string, client_timestamp_ns?: bigint);
246
+ constructor(bytes: Uint8Array, id: string, client_timestamp_ns?: bigint);
247
+ bytes: Uint8Array;
247
248
  id: string;
248
249
  clientTimestampNs?: bigint;
249
250
  }
@@ -384,9 +385,9 @@ export interface InitOutput {
384
385
  readonly conversations_findMessageById: (a: number, b: number, c: number) => [number, number, number];
385
386
  readonly conversations_sync: (a: number) => any;
386
387
  readonly conversations_syncAllConversations: (a: number) => any;
387
- readonly conversations_list: (a: number, b: number) => any;
388
- readonly conversations_listGroups: (a: number, b: number) => any;
389
- readonly conversations_listDms: (a: number, b: number) => any;
388
+ readonly conversations_list: (a: number, b: number) => [number, number, number];
389
+ readonly conversations_listGroups: (a: number, b: number) => [number, number, number];
390
+ readonly conversations_listDms: (a: number, b: number) => [number, number, number];
390
391
  readonly __wbg_contenttypeid_free: (a: number, b: number) => void;
391
392
  readonly __wbg_get_contenttypeid_typeId: (a: number) => [number, number];
392
393
  readonly __wbg_set_contenttypeid_typeId: (a: number, b: number, c: number) => void;
@@ -450,27 +451,27 @@ export interface InitOutput {
450
451
  readonly __wbg_set_listmessagesoptions_sentBeforeNs: (a: number, b: number, c: bigint) => void;
451
452
  readonly __wbg_set_listmessagesoptions_sentAfterNs: (a: number, b: number, c: bigint) => void;
452
453
  readonly __wbg_set_listmessagesoptions_limit: (a: number, b: number, c: bigint) => void;
453
- readonly __wbg_client_free: (a: number, b: number) => void;
454
- readonly __wbg_logoptions_free: (a: number, b: number) => void;
455
- readonly __wbg_get_logoptions_structured: (a: number) => number;
456
- readonly __wbg_set_logoptions_structured: (a: number, b: number) => void;
457
- readonly __wbg_get_logoptions_performance: (a: number) => number;
458
- readonly __wbg_set_logoptions_performance: (a: number, b: number) => void;
459
- readonly __wbg_get_logoptions_level: (a: number) => number;
460
- readonly __wbg_set_logoptions_level: (a: number, b: number) => void;
461
- readonly logoptions_new: (a: number, b: number, c: number) => number;
462
- readonly createClient: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number) => any;
463
- readonly client_accountAddress: (a: number) => [number, number];
464
- readonly client_inboxId: (a: number) => [number, number];
465
- readonly client_isRegistered: (a: number) => number;
466
- readonly client_installationId: (a: number) => [number, number];
467
- readonly client_installationIdBytes: (a: number) => any;
468
- readonly client_canMessage: (a: number, b: number, c: number) => any;
469
- readonly client_registerIdentity: (a: number) => any;
470
- readonly client_sendHistorySyncRequest: (a: number) => any;
471
- readonly client_sendConsentSyncRequest: (a: number) => any;
472
- readonly client_findInboxIdByAddress: (a: number, b: number, c: number) => any;
473
- readonly client_conversations: (a: number) => number;
454
+ readonly __wbg_permissionpolicyset_free: (a: number, b: number) => void;
455
+ readonly __wbg_get_permissionpolicyset_addMemberPolicy: (a: number) => number;
456
+ readonly __wbg_set_permissionpolicyset_addMemberPolicy: (a: number, b: number) => void;
457
+ readonly __wbg_get_permissionpolicyset_removeMemberPolicy: (a: number) => number;
458
+ readonly __wbg_set_permissionpolicyset_removeMemberPolicy: (a: number, b: number) => void;
459
+ readonly __wbg_get_permissionpolicyset_addAdminPolicy: (a: number) => number;
460
+ readonly __wbg_set_permissionpolicyset_addAdminPolicy: (a: number, b: number) => void;
461
+ readonly __wbg_get_permissionpolicyset_removeAdminPolicy: (a: number) => number;
462
+ readonly __wbg_set_permissionpolicyset_removeAdminPolicy: (a: number, b: number) => void;
463
+ readonly __wbg_get_permissionpolicyset_updateGroupNamePolicy: (a: number) => number;
464
+ readonly __wbg_set_permissionpolicyset_updateGroupNamePolicy: (a: number, b: number) => void;
465
+ readonly __wbg_get_permissionpolicyset_updateGroupDescriptionPolicy: (a: number) => number;
466
+ readonly __wbg_set_permissionpolicyset_updateGroupDescriptionPolicy: (a: number, b: number) => void;
467
+ readonly __wbg_get_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number) => number;
468
+ readonly __wbg_set_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number, b: number) => void;
469
+ readonly __wbg_get_permissionpolicyset_updateGroupPinnedFrameUrlPolicy: (a: number) => number;
470
+ readonly __wbg_set_permissionpolicyset_updateGroupPinnedFrameUrlPolicy: (a: number, b: number) => void;
471
+ readonly permissionpolicyset_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
472
+ readonly __wbg_grouppermissions_free: (a: number, b: number) => void;
473
+ readonly grouppermissions_policyType: (a: number) => [number, number, number];
474
+ readonly grouppermissions_policySet: (a: number) => [number, number, number];
474
475
  readonly __wbg_groupmetadata_free: (a: number, b: number) => void;
475
476
  readonly groupmetadata_creatorInboxId: (a: number) => [number, number];
476
477
  readonly groupmetadata_conversationType: (a: number) => [number, number];
@@ -522,11 +523,13 @@ export interface InitOutput {
522
523
  readonly conversation_dmPeerInboxId: (a: number) => [number, number, number, number];
523
524
  readonly conversation_updatePermissionPolicy: (a: number, b: number, c: number, d: number) => any;
524
525
  readonly __wbg_installation_free: (a: number, b: number) => void;
526
+ readonly __wbg_get_installation_bytes: (a: number) => any;
527
+ readonly __wbg_set_installation_bytes: (a: number, b: any) => void;
525
528
  readonly __wbg_get_installation_id: (a: number) => [number, number];
526
529
  readonly __wbg_set_installation_id: (a: number, b: number, c: number) => void;
527
530
  readonly __wbg_get_installation_clientTimestampNs: (a: number) => [number, bigint];
528
531
  readonly __wbg_set_installation_clientTimestampNs: (a: number, b: number, c: bigint) => void;
529
- readonly installation_new: (a: number, b: number, c: number, d: bigint) => number;
532
+ readonly installation_new: (a: any, b: number, c: number, d: number, e: bigint) => number;
530
533
  readonly __wbg_inboxstate_free: (a: number, b: number) => void;
531
534
  readonly __wbg_get_inboxstate_recoveryAddress: (a: number) => [number, number];
532
535
  readonly __wbg_set_inboxstate_recoveryAddress: (a: number, b: number, c: number) => void;
@@ -539,27 +542,27 @@ export interface InitOutput {
539
542
  readonly client_getLatestInboxState: (a: number, b: number, c: number) => any;
540
543
  readonly __wbg_set_inboxstate_inboxId: (a: number, b: number, c: number) => void;
541
544
  readonly __wbg_get_inboxstate_inboxId: (a: number) => [number, number];
542
- readonly __wbg_permissionpolicyset_free: (a: number, b: number) => void;
543
- readonly __wbg_get_permissionpolicyset_addMemberPolicy: (a: number) => number;
544
- readonly __wbg_set_permissionpolicyset_addMemberPolicy: (a: number, b: number) => void;
545
- readonly __wbg_get_permissionpolicyset_removeMemberPolicy: (a: number) => number;
546
- readonly __wbg_set_permissionpolicyset_removeMemberPolicy: (a: number, b: number) => void;
547
- readonly __wbg_get_permissionpolicyset_addAdminPolicy: (a: number) => number;
548
- readonly __wbg_set_permissionpolicyset_addAdminPolicy: (a: number, b: number) => void;
549
- readonly __wbg_get_permissionpolicyset_removeAdminPolicy: (a: number) => number;
550
- readonly __wbg_set_permissionpolicyset_removeAdminPolicy: (a: number, b: number) => void;
551
- readonly __wbg_get_permissionpolicyset_updateGroupNamePolicy: (a: number) => number;
552
- readonly __wbg_set_permissionpolicyset_updateGroupNamePolicy: (a: number, b: number) => void;
553
- readonly __wbg_get_permissionpolicyset_updateGroupDescriptionPolicy: (a: number) => number;
554
- readonly __wbg_set_permissionpolicyset_updateGroupDescriptionPolicy: (a: number, b: number) => void;
555
- readonly __wbg_get_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number) => number;
556
- readonly __wbg_set_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number, b: number) => void;
557
- readonly __wbg_get_permissionpolicyset_updateGroupPinnedFrameUrlPolicy: (a: number) => number;
558
- readonly __wbg_set_permissionpolicyset_updateGroupPinnedFrameUrlPolicy: (a: number, b: number) => void;
559
- readonly permissionpolicyset_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
560
- readonly __wbg_grouppermissions_free: (a: number, b: number) => void;
561
- readonly grouppermissions_policyType: (a: number) => [number, number, number];
562
- readonly grouppermissions_policySet: (a: number) => [number, number, number];
545
+ readonly __wbg_client_free: (a: number, b: number) => void;
546
+ readonly __wbg_logoptions_free: (a: number, b: number) => void;
547
+ readonly __wbg_get_logoptions_structured: (a: number) => number;
548
+ readonly __wbg_set_logoptions_structured: (a: number, b: number) => void;
549
+ readonly __wbg_get_logoptions_performance: (a: number) => number;
550
+ readonly __wbg_set_logoptions_performance: (a: number, b: number) => void;
551
+ readonly __wbg_get_logoptions_level: (a: number) => number;
552
+ readonly __wbg_set_logoptions_level: (a: number, b: number) => void;
553
+ readonly logoptions_new: (a: number, b: number, c: number) => number;
554
+ readonly createClient: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number) => any;
555
+ readonly client_accountAddress: (a: number) => [number, number];
556
+ readonly client_inboxId: (a: number) => [number, number];
557
+ readonly client_isRegistered: (a: number) => number;
558
+ readonly client_installationId: (a: number) => [number, number];
559
+ readonly client_installationIdBytes: (a: number) => any;
560
+ readonly client_canMessage: (a: number, b: number, c: number) => any;
561
+ readonly client_registerIdentity: (a: number) => any;
562
+ readonly client_sendHistorySyncRequest: (a: number) => any;
563
+ readonly client_sendConsentSyncRequest: (a: number) => any;
564
+ readonly client_findInboxIdByAddress: (a: number, b: number, c: number) => any;
565
+ readonly client_conversations: (a: number) => number;
563
566
  readonly __wbg_version_free: (a: number, b: number) => void;
564
567
  readonly __wbg_intounderlyingsource_free: (a: number, b: number) => void;
565
568
  readonly intounderlyingsource_pull: (a: number, b: any) => any;
@@ -583,8 +586,8 @@ export interface InitOutput {
583
586
  readonly __wbindgen_export_6: WebAssembly.Table;
584
587
  readonly __externref_table_dealloc: (a: number) => void;
585
588
  readonly __externref_drop_slice: (a: number, b: number) => void;
586
- readonly closure2588_externref_shim: (a: number, b: number, c: any) => void;
587
- readonly closure3682_externref_shim: (a: number, b: number, c: any, d: any) => void;
589
+ readonly closure2584_externref_shim: (a: number, b: number, c: any) => void;
590
+ readonly closure3678_externref_shim: (a: number, b: number, c: any, d: any) => void;
588
591
  readonly __wbindgen_start: () => void;
589
592
  }
590
593
 
@@ -316,11 +316,11 @@ export function createClient(host, inbox_id, account_address, db_path, encryptio
316
316
  }
317
317
 
318
318
  function __wbg_adapter_50(arg0, arg1, arg2) {
319
- wasm.closure2588_externref_shim(arg0, arg1, arg2);
319
+ wasm.closure2584_externref_shim(arg0, arg1, arg2);
320
320
  }
321
321
 
322
- function __wbg_adapter_576(arg0, arg1, arg2, arg3) {
323
- wasm.closure3682_externref_shim(arg0, arg1, arg2, arg3);
322
+ function __wbg_adapter_578(arg0, arg1, arg2, arg3) {
323
+ wasm.closure3678_externref_shim(arg0, arg1, arg2, arg3);
324
324
  }
325
325
 
326
326
  /**
@@ -583,6 +583,30 @@ export class Client {
583
583
  throw takeFromExternrefTable0(ret[0]);
584
584
  }
585
585
  }
586
+ /**
587
+ *
588
+ * * Get the client's inbox state.
589
+ * *
590
+ * * If `refresh_from_network` is true, the client will go to the network first to refresh the state.
591
+ * * Otherwise, the state will be read from the local database.
592
+ *
593
+ * @param {boolean} refresh_from_network
594
+ * @returns {Promise<InboxState>}
595
+ */
596
+ inboxState(refresh_from_network) {
597
+ const ret = wasm.client_inboxState(this.__wbg_ptr, refresh_from_network);
598
+ return ret;
599
+ }
600
+ /**
601
+ * @param {string} inbox_id
602
+ * @returns {Promise<InboxState>}
603
+ */
604
+ getLatestInboxState(inbox_id) {
605
+ const ptr0 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
606
+ const len0 = WASM_VECTOR_LEN;
607
+ const ret = wasm.client_getLatestInboxState(this.__wbg_ptr, ptr0, len0);
608
+ return ret;
609
+ }
586
610
  /**
587
611
  * @returns {string}
588
612
  */
@@ -690,30 +714,6 @@ export class Client {
690
714
  const ret = wasm.client_conversations(this.__wbg_ptr);
691
715
  return Conversations.__wrap(ret);
692
716
  }
693
- /**
694
- *
695
- * * Get the client's inbox state.
696
- * *
697
- * * If `refresh_from_network` is true, the client will go to the network first to refresh the state.
698
- * * Otherwise, the state will be read from the local database.
699
- *
700
- * @param {boolean} refresh_from_network
701
- * @returns {Promise<InboxState>}
702
- */
703
- inboxState(refresh_from_network) {
704
- const ret = wasm.client_inboxState(this.__wbg_ptr, refresh_from_network);
705
- return ret;
706
- }
707
- /**
708
- * @param {string} inbox_id
709
- * @returns {Promise<InboxState>}
710
- */
711
- getLatestInboxState(inbox_id) {
712
- const ptr0 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
713
- const len0 = WASM_VECTOR_LEN;
714
- const ret = wasm.client_getLatestInboxState(this.__wbg_ptr, ptr0, len0);
715
- return ret;
716
- }
717
717
  }
718
718
 
719
719
  const ConsentFinalization = (typeof FinalizationRegistry === 'undefined')
@@ -1496,7 +1496,7 @@ export class Conversations {
1496
1496
  }
1497
1497
  /**
1498
1498
  * @param {ListConversationsOptions | undefined} [opts]
1499
- * @returns {Promise<Array<any>>}
1499
+ * @returns {Array<any>}
1500
1500
  */
1501
1501
  list(opts) {
1502
1502
  let ptr0 = 0;
@@ -1505,11 +1505,14 @@ export class Conversations {
1505
1505
  ptr0 = opts.__destroy_into_raw();
1506
1506
  }
1507
1507
  const ret = wasm.conversations_list(this.__wbg_ptr, ptr0);
1508
- return ret;
1508
+ if (ret[2]) {
1509
+ throw takeFromExternrefTable0(ret[1]);
1510
+ }
1511
+ return takeFromExternrefTable0(ret[0]);
1509
1512
  }
1510
1513
  /**
1511
1514
  * @param {ListConversationsOptions | undefined} [opts]
1512
- * @returns {Promise<Array<any>>}
1515
+ * @returns {Array<any>}
1513
1516
  */
1514
1517
  listGroups(opts) {
1515
1518
  let ptr0 = 0;
@@ -1518,11 +1521,14 @@ export class Conversations {
1518
1521
  ptr0 = opts.__destroy_into_raw();
1519
1522
  }
1520
1523
  const ret = wasm.conversations_listGroups(this.__wbg_ptr, ptr0);
1521
- return ret;
1524
+ if (ret[2]) {
1525
+ throw takeFromExternrefTable0(ret[1]);
1526
+ }
1527
+ return takeFromExternrefTable0(ret[0]);
1522
1528
  }
1523
1529
  /**
1524
1530
  * @param {ListConversationsOptions | undefined} [opts]
1525
- * @returns {Promise<Array<any>>}
1531
+ * @returns {Array<any>}
1526
1532
  */
1527
1533
  listDms(opts) {
1528
1534
  let ptr0 = 0;
@@ -1531,7 +1537,10 @@ export class Conversations {
1531
1537
  ptr0 = opts.__destroy_into_raw();
1532
1538
  }
1533
1539
  const ret = wasm.conversations_listDms(this.__wbg_ptr, ptr0);
1534
- return ret;
1540
+ if (ret[2]) {
1541
+ throw takeFromExternrefTable0(ret[1]);
1542
+ }
1543
+ return takeFromExternrefTable0(ret[0]);
1535
1544
  }
1536
1545
  }
1537
1546
 
@@ -2200,6 +2209,19 @@ export class Installation {
2200
2209
  const ptr = this.__destroy_into_raw();
2201
2210
  wasm.__wbg_installation_free(ptr, 0);
2202
2211
  }
2212
+ /**
2213
+ * @returns {Uint8Array}
2214
+ */
2215
+ get bytes() {
2216
+ const ret = wasm.__wbg_get_installation_bytes(this.__wbg_ptr);
2217
+ return ret;
2218
+ }
2219
+ /**
2220
+ * @param {Uint8Array} arg0
2221
+ */
2222
+ set bytes(arg0) {
2223
+ wasm.__wbg_set_installation_bytes(this.__wbg_ptr, arg0);
2224
+ }
2203
2225
  /**
2204
2226
  * @returns {string}
2205
2227
  */
@@ -2237,13 +2259,14 @@ export class Installation {
2237
2259
  wasm.__wbg_set_installation_clientTimestampNs(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
2238
2260
  }
2239
2261
  /**
2262
+ * @param {Uint8Array} bytes
2240
2263
  * @param {string} id
2241
2264
  * @param {bigint | undefined} [client_timestamp_ns]
2242
2265
  */
2243
- constructor(id, client_timestamp_ns) {
2266
+ constructor(bytes, id, client_timestamp_ns) {
2244
2267
  const ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2245
2268
  const len0 = WASM_VECTOR_LEN;
2246
- const ret = wasm.installation_new(ptr0, len0, !isLikeNone(client_timestamp_ns), isLikeNone(client_timestamp_ns) ? BigInt(0) : client_timestamp_ns);
2269
+ const ret = wasm.installation_new(bytes, ptr0, len0, !isLikeNone(client_timestamp_ns), isLikeNone(client_timestamp_ns) ? BigInt(0) : client_timestamp_ns);
2247
2270
  this.__wbg_ptr = ret >>> 0;
2248
2271
  InstallationFinalization.register(this, this.__wbg_ptr, this);
2249
2272
  return this;
@@ -3491,7 +3514,7 @@ function __wbg_get_imports() {
3491
3514
  const a = state0.a;
3492
3515
  state0.a = 0;
3493
3516
  try {
3494
- return __wbg_adapter_576(a, state0.b, arg0, arg1);
3517
+ return __wbg_adapter_578(a, state0.b, arg0, arg1);
3495
3518
  } finally {
3496
3519
  state0.a = a;
3497
3520
  }
@@ -3815,8 +3838,8 @@ function __wbg_get_imports() {
3815
3838
  const ret = false;
3816
3839
  return ret;
3817
3840
  };
3818
- imports.wbg.__wbindgen_closure_wrapper11191 = function(arg0, arg1, arg2) {
3819
- const ret = makeMutClosure(arg0, arg1, 2589, __wbg_adapter_50);
3841
+ imports.wbg.__wbindgen_closure_wrapper11192 = function(arg0, arg1, arg2) {
3842
+ const ret = makeMutClosure(arg0, arg1, 2585, __wbg_adapter_50);
3820
3843
  return ret;
3821
3844
  };
3822
3845
  imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
Binary file
@@ -47,9 +47,9 @@ export const conversations_findDmByTargetInboxId: (a: number, b: number, c: numb
47
47
  export const conversations_findMessageById: (a: number, b: number, c: number) => [number, number, number];
48
48
  export const conversations_sync: (a: number) => any;
49
49
  export const conversations_syncAllConversations: (a: number) => any;
50
- export const conversations_list: (a: number, b: number) => any;
51
- export const conversations_listGroups: (a: number, b: number) => any;
52
- export const conversations_listDms: (a: number, b: number) => any;
50
+ export const conversations_list: (a: number, b: number) => [number, number, number];
51
+ export const conversations_listGroups: (a: number, b: number) => [number, number, number];
52
+ export const conversations_listDms: (a: number, b: number) => [number, number, number];
53
53
  export const __wbg_contenttypeid_free: (a: number, b: number) => void;
54
54
  export const __wbg_get_contenttypeid_typeId: (a: number) => [number, number];
55
55
  export const __wbg_set_contenttypeid_typeId: (a: number, b: number, c: number) => void;
@@ -113,27 +113,27 @@ export const __wbg_get_listmessagesoptions_limit: (a: number) => [number, bigint
113
113
  export const __wbg_set_listmessagesoptions_sentBeforeNs: (a: number, b: number, c: bigint) => void;
114
114
  export const __wbg_set_listmessagesoptions_sentAfterNs: (a: number, b: number, c: bigint) => void;
115
115
  export const __wbg_set_listmessagesoptions_limit: (a: number, b: number, c: bigint) => void;
116
- export const __wbg_client_free: (a: number, b: number) => void;
117
- export const __wbg_logoptions_free: (a: number, b: number) => void;
118
- export const __wbg_get_logoptions_structured: (a: number) => number;
119
- export const __wbg_set_logoptions_structured: (a: number, b: number) => void;
120
- export const __wbg_get_logoptions_performance: (a: number) => number;
121
- export const __wbg_set_logoptions_performance: (a: number, b: number) => void;
122
- export const __wbg_get_logoptions_level: (a: number) => number;
123
- export const __wbg_set_logoptions_level: (a: number, b: number) => void;
124
- export const logoptions_new: (a: number, b: number, c: number) => number;
125
- 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, l: number) => any;
126
- export const client_accountAddress: (a: number) => [number, number];
127
- export const client_inboxId: (a: number) => [number, number];
128
- export const client_isRegistered: (a: number) => number;
129
- export const client_installationId: (a: number) => [number, number];
130
- export const client_installationIdBytes: (a: number) => any;
131
- export const client_canMessage: (a: number, b: number, c: number) => any;
132
- export const client_registerIdentity: (a: number) => any;
133
- export const client_sendHistorySyncRequest: (a: number) => any;
134
- export const client_sendConsentSyncRequest: (a: number) => any;
135
- export const client_findInboxIdByAddress: (a: number, b: number, c: number) => any;
136
- export const client_conversations: (a: number) => number;
116
+ export const __wbg_permissionpolicyset_free: (a: number, b: number) => void;
117
+ export const __wbg_get_permissionpolicyset_addMemberPolicy: (a: number) => number;
118
+ export const __wbg_set_permissionpolicyset_addMemberPolicy: (a: number, b: number) => void;
119
+ export const __wbg_get_permissionpolicyset_removeMemberPolicy: (a: number) => number;
120
+ export const __wbg_set_permissionpolicyset_removeMemberPolicy: (a: number, b: number) => void;
121
+ export const __wbg_get_permissionpolicyset_addAdminPolicy: (a: number) => number;
122
+ export const __wbg_set_permissionpolicyset_addAdminPolicy: (a: number, b: number) => void;
123
+ export const __wbg_get_permissionpolicyset_removeAdminPolicy: (a: number) => number;
124
+ export const __wbg_set_permissionpolicyset_removeAdminPolicy: (a: number, b: number) => void;
125
+ export const __wbg_get_permissionpolicyset_updateGroupNamePolicy: (a: number) => number;
126
+ export const __wbg_set_permissionpolicyset_updateGroupNamePolicy: (a: number, b: number) => void;
127
+ export const __wbg_get_permissionpolicyset_updateGroupDescriptionPolicy: (a: number) => number;
128
+ export const __wbg_set_permissionpolicyset_updateGroupDescriptionPolicy: (a: number, b: number) => void;
129
+ export const __wbg_get_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number) => number;
130
+ export const __wbg_set_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number, b: number) => void;
131
+ export const __wbg_get_permissionpolicyset_updateGroupPinnedFrameUrlPolicy: (a: number) => number;
132
+ export const __wbg_set_permissionpolicyset_updateGroupPinnedFrameUrlPolicy: (a: number, b: number) => void;
133
+ export const permissionpolicyset_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
134
+ export const __wbg_grouppermissions_free: (a: number, b: number) => void;
135
+ export const grouppermissions_policyType: (a: number) => [number, number, number];
136
+ export const grouppermissions_policySet: (a: number) => [number, number, number];
137
137
  export const __wbg_groupmetadata_free: (a: number, b: number) => void;
138
138
  export const groupmetadata_creatorInboxId: (a: number) => [number, number];
139
139
  export const groupmetadata_conversationType: (a: number) => [number, number];
@@ -185,11 +185,13 @@ export const conversation_groupMetadata: (a: number) => any;
185
185
  export const conversation_dmPeerInboxId: (a: number) => [number, number, number, number];
186
186
  export const conversation_updatePermissionPolicy: (a: number, b: number, c: number, d: number) => any;
187
187
  export const __wbg_installation_free: (a: number, b: number) => void;
188
+ export const __wbg_get_installation_bytes: (a: number) => any;
189
+ export const __wbg_set_installation_bytes: (a: number, b: any) => void;
188
190
  export const __wbg_get_installation_id: (a: number) => [number, number];
189
191
  export const __wbg_set_installation_id: (a: number, b: number, c: number) => void;
190
192
  export const __wbg_get_installation_clientTimestampNs: (a: number) => [number, bigint];
191
193
  export const __wbg_set_installation_clientTimestampNs: (a: number, b: number, c: bigint) => void;
192
- export const installation_new: (a: number, b: number, c: number, d: bigint) => number;
194
+ export const installation_new: (a: any, b: number, c: number, d: number, e: bigint) => number;
193
195
  export const __wbg_inboxstate_free: (a: number, b: number) => void;
194
196
  export const __wbg_get_inboxstate_recoveryAddress: (a: number) => [number, number];
195
197
  export const __wbg_set_inboxstate_recoveryAddress: (a: number, b: number, c: number) => void;
@@ -202,27 +204,27 @@ export const client_inboxState: (a: number, b: number) => any;
202
204
  export const client_getLatestInboxState: (a: number, b: number, c: number) => any;
203
205
  export const __wbg_set_inboxstate_inboxId: (a: number, b: number, c: number) => void;
204
206
  export const __wbg_get_inboxstate_inboxId: (a: number) => [number, number];
205
- export const __wbg_permissionpolicyset_free: (a: number, b: number) => void;
206
- export const __wbg_get_permissionpolicyset_addMemberPolicy: (a: number) => number;
207
- export const __wbg_set_permissionpolicyset_addMemberPolicy: (a: number, b: number) => void;
208
- export const __wbg_get_permissionpolicyset_removeMemberPolicy: (a: number) => number;
209
- export const __wbg_set_permissionpolicyset_removeMemberPolicy: (a: number, b: number) => void;
210
- export const __wbg_get_permissionpolicyset_addAdminPolicy: (a: number) => number;
211
- export const __wbg_set_permissionpolicyset_addAdminPolicy: (a: number, b: number) => void;
212
- export const __wbg_get_permissionpolicyset_removeAdminPolicy: (a: number) => number;
213
- export const __wbg_set_permissionpolicyset_removeAdminPolicy: (a: number, b: number) => void;
214
- export const __wbg_get_permissionpolicyset_updateGroupNamePolicy: (a: number) => number;
215
- export const __wbg_set_permissionpolicyset_updateGroupNamePolicy: (a: number, b: number) => void;
216
- export const __wbg_get_permissionpolicyset_updateGroupDescriptionPolicy: (a: number) => number;
217
- export const __wbg_set_permissionpolicyset_updateGroupDescriptionPolicy: (a: number, b: number) => void;
218
- export const __wbg_get_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number) => number;
219
- export const __wbg_set_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number, b: number) => void;
220
- export const __wbg_get_permissionpolicyset_updateGroupPinnedFrameUrlPolicy: (a: number) => number;
221
- export const __wbg_set_permissionpolicyset_updateGroupPinnedFrameUrlPolicy: (a: number, b: number) => void;
222
- export const permissionpolicyset_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
223
- export const __wbg_grouppermissions_free: (a: number, b: number) => void;
224
- export const grouppermissions_policyType: (a: number) => [number, number, number];
225
- export const grouppermissions_policySet: (a: number) => [number, number, number];
207
+ export const __wbg_client_free: (a: number, b: number) => void;
208
+ export const __wbg_logoptions_free: (a: number, b: number) => void;
209
+ export const __wbg_get_logoptions_structured: (a: number) => number;
210
+ export const __wbg_set_logoptions_structured: (a: number, b: number) => void;
211
+ export const __wbg_get_logoptions_performance: (a: number) => number;
212
+ export const __wbg_set_logoptions_performance: (a: number, b: number) => void;
213
+ export const __wbg_get_logoptions_level: (a: number) => number;
214
+ export const __wbg_set_logoptions_level: (a: number, b: number) => void;
215
+ export const logoptions_new: (a: number, b: number, c: number) => number;
216
+ 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, l: number) => any;
217
+ export const client_accountAddress: (a: number) => [number, number];
218
+ export const client_inboxId: (a: number) => [number, number];
219
+ export const client_isRegistered: (a: number) => number;
220
+ export const client_installationId: (a: number) => [number, number];
221
+ export const client_installationIdBytes: (a: number) => any;
222
+ export const client_canMessage: (a: number, b: number, c: number) => any;
223
+ export const client_registerIdentity: (a: number) => any;
224
+ export const client_sendHistorySyncRequest: (a: number) => any;
225
+ export const client_sendConsentSyncRequest: (a: number) => any;
226
+ export const client_findInboxIdByAddress: (a: number, b: number, c: number) => any;
227
+ export const client_conversations: (a: number) => number;
226
228
  export const __wbg_version_free: (a: number, b: number) => void;
227
229
  export const __wbg_intounderlyingsource_free: (a: number, b: number) => void;
228
230
  export const intounderlyingsource_pull: (a: number, b: any) => any;
@@ -246,6 +248,6 @@ export const __wbindgen_export_5: WebAssembly.Table;
246
248
  export const __wbindgen_export_6: WebAssembly.Table;
247
249
  export const __externref_table_dealloc: (a: number) => void;
248
250
  export const __externref_drop_slice: (a: number, b: number) => void;
249
- export const closure2588_externref_shim: (a: number, b: number, c: any) => void;
250
- export const closure3682_externref_shim: (a: number, b: number, c: any, d: any) => void;
251
+ export const closure2584_externref_shim: (a: number, b: number, c: any) => void;
252
+ export const closure3678_externref_shim: (a: number, b: number, c: any, d: any) => void;
251
253
  export const __wbindgen_start: () => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xmtp/wasm-bindings",
3
- "version": "0.0.10",
3
+ "version": "0.0.11",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "description": "WASM bindings for the libXMTP rust library",