@xmtp/wasm-bindings 0.0.4 → 0.0.6

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.
@@ -114,6 +114,22 @@ export class Client {
114
114
  * @returns {Conversations}
115
115
  */
116
116
  conversations(): Conversations;
117
+ /**
118
+ * @param {string} signature_text
119
+ * @returns {Uint8Array}
120
+ */
121
+ signWithInstallationKey(signature_text: string): Uint8Array;
122
+ /**
123
+ * @param {string} signature_text
124
+ * @param {Uint8Array} signature_bytes
125
+ */
126
+ verifySignedWithInstallationKey(signature_text: string, signature_bytes: Uint8Array): void;
127
+ /**
128
+ * @param {string} signature_text
129
+ * @param {Uint8Array} signature_bytes
130
+ * @param {Uint8Array} public_key
131
+ */
132
+ verifySignedWithPublicKey(signature_text: string, signature_bytes: Uint8Array, public_key: Uint8Array): void;
117
133
  /**
118
134
  * @param {(Consent)[]} records
119
135
  * @returns {Promise<void>}
@@ -181,6 +197,7 @@ export class Client {
181
197
  readonly accountAddress: string;
182
198
  readonly inboxId: string;
183
199
  readonly installationId: string;
200
+ readonly installationIdBytes: Uint8Array;
184
201
  readonly isRegistered: boolean;
185
202
  }
186
203
  export class Consent {
@@ -678,12 +695,37 @@ export interface InitOutput {
678
695
  readonly client_inboxId: (a: number) => Array;
679
696
  readonly client_isRegistered: (a: number) => number;
680
697
  readonly client_installationId: (a: number) => Array;
698
+ readonly client_installationIdBytes: (a: number) => number;
681
699
  readonly client_canMessage: (a: number, b: number, c: number) => number;
682
700
  readonly client_registerIdentity: (a: number) => number;
683
701
  readonly client_sendHistorySyncRequest: (a: number) => number;
684
702
  readonly client_sendConsentSyncRequest: (a: number) => number;
685
703
  readonly client_findInboxIdByAddress: (a: number, b: number, c: number) => number;
686
704
  readonly client_conversations: (a: number) => number;
705
+ readonly client_signWithInstallationKey: (a: number, b: number, c: number) => Array;
706
+ readonly client_verifySignedWithInstallationKey: (a: number, b: number, c: number, d: number) => Array;
707
+ readonly client_verifySignedWithPublicKey: (a: number, b: number, c: number, d: number, e: number) => Array;
708
+ readonly __wbg_permissionpolicyset_free: (a: number, b: number) => void;
709
+ readonly __wbg_get_permissionpolicyset_addMemberPolicy: (a: number) => number;
710
+ readonly __wbg_set_permissionpolicyset_addMemberPolicy: (a: number, b: number) => void;
711
+ readonly __wbg_get_permissionpolicyset_removeMemberPolicy: (a: number) => number;
712
+ readonly __wbg_set_permissionpolicyset_removeMemberPolicy: (a: number, b: number) => void;
713
+ readonly __wbg_get_permissionpolicyset_addAdminPolicy: (a: number) => number;
714
+ readonly __wbg_set_permissionpolicyset_addAdminPolicy: (a: number, b: number) => void;
715
+ readonly __wbg_get_permissionpolicyset_removeAdminPolicy: (a: number) => number;
716
+ readonly __wbg_set_permissionpolicyset_removeAdminPolicy: (a: number, b: number) => void;
717
+ readonly __wbg_get_permissionpolicyset_updateGroupNamePolicy: (a: number) => number;
718
+ readonly __wbg_set_permissionpolicyset_updateGroupNamePolicy: (a: number, b: number) => void;
719
+ readonly __wbg_get_permissionpolicyset_updateGroupDescriptionPolicy: (a: number) => number;
720
+ readonly __wbg_set_permissionpolicyset_updateGroupDescriptionPolicy: (a: number, b: number) => void;
721
+ readonly __wbg_get_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number) => number;
722
+ readonly __wbg_set_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number, b: number) => void;
723
+ readonly __wbg_get_permissionpolicyset_updateGroupPinnedFrameUrlPolicy: (a: number) => number;
724
+ readonly __wbg_set_permissionpolicyset_updateGroupPinnedFrameUrlPolicy: (a: number, b: number) => void;
725
+ readonly permissionpolicyset_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
726
+ readonly __wbg_grouppermissions_free: (a: number, b: number) => void;
727
+ readonly grouppermissions_policyType: (a: number) => Array;
728
+ readonly grouppermissions_policySet: (a: number) => Array;
687
729
  readonly __wbg_consent_free: (a: number, b: number) => void;
688
730
  readonly __wbg_get_consent_entityType: (a: number) => number;
689
731
  readonly __wbg_set_consent_entityType: (a: number, b: number) => void;
@@ -788,6 +830,8 @@ export interface InitOutput {
788
830
  readonly __wbg_set_listmessagesoptions_sentBeforeNs: (a: number, b: number, c: number) => void;
789
831
  readonly __wbg_set_listmessagesoptions_sentAfterNs: (a: number, b: number, c: number) => void;
790
832
  readonly __wbg_set_listmessagesoptions_limit: (a: number, b: number, c: number) => void;
833
+ readonly getInboxIdForAddress: (a: number, b: number, c: number, d: number) => number;
834
+ readonly generateInboxId: (a: number, b: number) => Array;
791
835
  readonly __wbg_groupmetadata_free: (a: number, b: number) => void;
792
836
  readonly groupmetadata_creatorInboxId: (a: number) => Array;
793
837
  readonly groupmetadata_conversationType: (a: number) => Array;
@@ -855,29 +899,6 @@ export interface InitOutput {
855
899
  readonly client_getLatestInboxState: (a: number, b: number, c: number) => number;
856
900
  readonly __wbg_set_inboxstate_inboxId: (a: number, b: number, c: number) => void;
857
901
  readonly __wbg_get_inboxstate_inboxId: (a: number) => Array;
858
- readonly getInboxIdForAddress: (a: number, b: number, c: number, d: number) => number;
859
- readonly generateInboxId: (a: number, b: number) => Array;
860
- readonly __wbg_permissionpolicyset_free: (a: number, b: number) => void;
861
- readonly __wbg_get_permissionpolicyset_addMemberPolicy: (a: number) => number;
862
- readonly __wbg_set_permissionpolicyset_addMemberPolicy: (a: number, b: number) => void;
863
- readonly __wbg_get_permissionpolicyset_removeMemberPolicy: (a: number) => number;
864
- readonly __wbg_set_permissionpolicyset_removeMemberPolicy: (a: number, b: number) => void;
865
- readonly __wbg_get_permissionpolicyset_addAdminPolicy: (a: number) => number;
866
- readonly __wbg_set_permissionpolicyset_addAdminPolicy: (a: number, b: number) => void;
867
- readonly __wbg_get_permissionpolicyset_removeAdminPolicy: (a: number) => number;
868
- readonly __wbg_set_permissionpolicyset_removeAdminPolicy: (a: number, b: number) => void;
869
- readonly __wbg_get_permissionpolicyset_updateGroupNamePolicy: (a: number) => number;
870
- readonly __wbg_set_permissionpolicyset_updateGroupNamePolicy: (a: number, b: number) => void;
871
- readonly __wbg_get_permissionpolicyset_updateGroupDescriptionPolicy: (a: number) => number;
872
- readonly __wbg_set_permissionpolicyset_updateGroupDescriptionPolicy: (a: number, b: number) => void;
873
- readonly __wbg_get_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number) => number;
874
- readonly __wbg_set_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number, b: number) => void;
875
- readonly __wbg_get_permissionpolicyset_updateGroupPinnedFrameUrlPolicy: (a: number) => number;
876
- readonly __wbg_set_permissionpolicyset_updateGroupPinnedFrameUrlPolicy: (a: number, b: number) => void;
877
- readonly permissionpolicyset_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
878
- readonly __wbg_grouppermissions_free: (a: number, b: number) => void;
879
- readonly grouppermissions_policyType: (a: number) => Array;
880
- readonly grouppermissions_policySet: (a: number) => Array;
881
902
  readonly __wbg_version_free: (a: number, b: number) => void;
882
903
  readonly __wbg_intounderlyingsource_free: (a: number, b: number) => void;
883
904
  readonly intounderlyingsource_pull: (a: number, b: number) => number;
@@ -897,13 +918,13 @@ export interface InitOutput {
897
918
  readonly __wbindgen_export_2: WebAssembly.Table;
898
919
  readonly __wbindgen_export_3: WebAssembly.Table;
899
920
  readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__ha602f13c6f6f57bd: (a: number, b: number) => void;
900
- readonly closure2416_externref_shim: (a: number, b: number, c: number) => void;
921
+ readonly closure2320_externref_shim: (a: number, b: number, c: number) => void;
901
922
  readonly __externref_table_alloc: () => number;
902
923
  readonly __wbindgen_free: (a: number, b: number, c: number) => void;
903
924
  readonly __externref_table_dealloc: (a: number) => void;
904
925
  readonly __externref_drop_slice: (a: number, b: number) => void;
905
926
  readonly __wbindgen_exn_store: (a: number) => void;
906
- readonly closure3417_externref_shim: (a: number, b: number, c: number, d: number) => void;
927
+ readonly closure3388_externref_shim: (a: number, b: number, c: number, d: number) => void;
907
928
  readonly __wbindgen_start: () => void;
908
929
  }
909
930
 
@@ -189,7 +189,7 @@ function __wbg_adapter_46(arg0, arg1) {
189
189
  }
190
190
 
191
191
  function __wbg_adapter_49(arg0, arg1, arg2) {
192
- wasm.closure2416_externref_shim(arg0, arg1, arg2);
192
+ wasm.closure2320_externref_shim(arg0, arg1, arg2);
193
193
  }
194
194
 
195
195
  function addToExternrefTable0(obj) {
@@ -309,8 +309,8 @@ function handleError(f, args) {
309
309
  }
310
310
 
311
311
  function notDefined(what) { return () => { throw new Error(`${what} is not defined`); }; }
312
- function __wbg_adapter_563(arg0, arg1, arg2, arg3) {
313
- wasm.closure3417_externref_shim(arg0, arg1, arg2, arg3);
312
+ function __wbg_adapter_567(arg0, arg1, arg2, arg3) {
313
+ wasm.closure3388_externref_shim(arg0, arg1, arg2, arg3);
314
314
  }
315
315
 
316
316
  export const ConsentEntityType = Object.freeze({ GroupId:0,"0":"GroupId",InboxId:1,"1":"InboxId",Address:2,"2":"Address", });
@@ -426,6 +426,13 @@ export class Client {
426
426
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
427
427
  }
428
428
  }
429
+ /**
430
+ * @returns {Uint8Array}
431
+ */
432
+ get installationIdBytes() {
433
+ const ret = wasm.client_installationIdBytes(this.__wbg_ptr);
434
+ return ret;
435
+ }
429
436
  /**
430
437
  * @param {(string)[]} account_addresses
431
438
  * @returns {Promise<any>}
@@ -474,6 +481,44 @@ export class Client {
474
481
  const ret = wasm.client_conversations(this.__wbg_ptr);
475
482
  return Conversations.__wrap(ret);
476
483
  }
484
+ /**
485
+ * @param {string} signature_text
486
+ * @returns {Uint8Array}
487
+ */
488
+ signWithInstallationKey(signature_text) {
489
+ const ptr0 = passStringToWasm0(signature_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
490
+ const len0 = WASM_VECTOR_LEN;
491
+ const ret = wasm.client_signWithInstallationKey(this.__wbg_ptr, ptr0, len0);
492
+ if (ret[2]) {
493
+ throw takeFromExternrefTable0(ret[1]);
494
+ }
495
+ return takeFromExternrefTable0(ret[0]);
496
+ }
497
+ /**
498
+ * @param {string} signature_text
499
+ * @param {Uint8Array} signature_bytes
500
+ */
501
+ verifySignedWithInstallationKey(signature_text, signature_bytes) {
502
+ const ptr0 = passStringToWasm0(signature_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
503
+ const len0 = WASM_VECTOR_LEN;
504
+ const ret = wasm.client_verifySignedWithInstallationKey(this.__wbg_ptr, ptr0, len0, signature_bytes);
505
+ if (ret[1]) {
506
+ throw takeFromExternrefTable0(ret[0]);
507
+ }
508
+ }
509
+ /**
510
+ * @param {string} signature_text
511
+ * @param {Uint8Array} signature_bytes
512
+ * @param {Uint8Array} public_key
513
+ */
514
+ verifySignedWithPublicKey(signature_text, signature_bytes, public_key) {
515
+ const ptr0 = passStringToWasm0(signature_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
516
+ const len0 = WASM_VECTOR_LEN;
517
+ const ret = wasm.client_verifySignedWithPublicKey(this.__wbg_ptr, ptr0, len0, signature_bytes, public_key);
518
+ if (ret[1]) {
519
+ throw takeFromExternrefTable0(ret[0]);
520
+ }
521
+ }
477
522
  /**
478
523
  * @param {(Consent)[]} records
479
524
  * @returns {Promise<void>}
@@ -2884,10 +2929,6 @@ function __wbg_get_imports() {
2884
2929
  const ret = arg0;
2885
2930
  return ret;
2886
2931
  };
2887
- imports.wbg.__wbg_installation_new = function(arg0) {
2888
- const ret = Installation.__wrap(arg0);
2889
- return ret;
2890
- };
2891
2932
  imports.wbg.__wbg_conversation_new = function(arg0) {
2892
2933
  const ret = Conversation.__wrap(arg0);
2893
2934
  return ret;
@@ -2896,16 +2937,24 @@ function __wbg_get_imports() {
2896
2937
  const ret = Message.__wrap(arg0);
2897
2938
  return ret;
2898
2939
  };
2899
- imports.wbg.__wbg_inboxstate_new = function(arg0) {
2900
- const ret = InboxState.__wrap(arg0);
2940
+ imports.wbg.__wbg_installation_new = function(arg0) {
2941
+ const ret = Installation.__wrap(arg0);
2901
2942
  return ret;
2902
2943
  };
2903
2944
  imports.wbg.__wbg_client_new = function(arg0) {
2904
2945
  const ret = Client.__wrap(arg0);
2905
2946
  return ret;
2906
2947
  };
2907
- imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
2908
- const ret = getStringFromWasm0(arg0, arg1);
2948
+ imports.wbg.__wbg_inboxstate_new = function(arg0) {
2949
+ const ret = InboxState.__wrap(arg0);
2950
+ return ret;
2951
+ };
2952
+ imports.wbg.__wbindgen_is_undefined = function(arg0) {
2953
+ const ret = arg0 === undefined;
2954
+ return ret;
2955
+ };
2956
+ imports.wbg.__wbindgen_in = function(arg0, arg1) {
2957
+ const ret = arg0 in arg1;
2909
2958
  return ret;
2910
2959
  };
2911
2960
  imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
@@ -2916,8 +2965,17 @@ function __wbg_get_imports() {
2916
2965
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
2917
2966
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
2918
2967
  };
2919
- imports.wbg.__wbg_consent_unwrap = function(arg0) {
2920
- const ret = Consent.__unwrap(arg0);
2968
+ imports.wbg.__wbindgen_is_object = function(arg0) {
2969
+ const val = arg0;
2970
+ const ret = typeof(val) === 'object' && val !== null;
2971
+ return ret;
2972
+ };
2973
+ imports.wbg.__wbindgen_as_number = function(arg0) {
2974
+ const ret = +arg0;
2975
+ return ret;
2976
+ };
2977
+ imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
2978
+ const ret = getStringFromWasm0(arg0, arg1);
2921
2979
  return ret;
2922
2980
  };
2923
2981
  imports.wbg.__wbindgen_try_into_number = function(arg0) {
@@ -2932,25 +2990,12 @@ imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
2932
2990
  getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
2933
2991
  getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
2934
2992
  };
2935
- imports.wbg.__wbg_installation_unwrap = function(arg0) {
2936
- const ret = Installation.__unwrap(arg0);
2937
- return ret;
2938
- };
2939
- imports.wbg.__wbindgen_is_undefined = function(arg0) {
2940
- const ret = arg0 === undefined;
2941
- return ret;
2942
- };
2943
- imports.wbg.__wbindgen_in = function(arg0, arg1) {
2944
- const ret = arg0 in arg1;
2945
- return ret;
2946
- };
2947
- imports.wbg.__wbindgen_is_object = function(arg0) {
2948
- const val = arg0;
2949
- const ret = typeof(val) === 'object' && val !== null;
2993
+ imports.wbg.__wbg_consent_unwrap = function(arg0) {
2994
+ const ret = Consent.__unwrap(arg0);
2950
2995
  return ret;
2951
2996
  };
2952
- imports.wbg.__wbindgen_as_number = function(arg0) {
2953
- const ret = +arg0;
2997
+ imports.wbg.__wbg_installation_unwrap = function(arg0) {
2998
+ const ret = Installation.__unwrap(arg0);
2954
2999
  return ret;
2955
3000
  };
2956
3001
  imports.wbg.__wbg_performance_72f95fe5952939b5 = function() {
@@ -3110,64 +3155,64 @@ imports.wbg.__wbg_capi_ca06542c83b93175 = function(arg0) {
3110
3155
  const ret = arg0.capi;
3111
3156
  return ret;
3112
3157
  };
3113
- imports.wbg.__wbg_SQLITEFLOAT_e0da134da12d25d0 = function(arg0) {
3114
- const ret = arg0.SQLITE_FLOAT;
3115
- return ret;
3116
- };
3117
- imports.wbg.__wbg_SQLITECONSTRAINTUNIQUE_1dea04a977c1e377 = function(arg0) {
3118
- const ret = arg0.SQLITE_CONSTRAINT_UNIQUE;
3158
+ imports.wbg.__wbg_SQLITECONSTRAINTCHECK_7b54e6702b2e57ba = function(arg0) {
3159
+ const ret = arg0.SQLITE_CONSTRAINT_CHECK;
3119
3160
  return ret;
3120
3161
  };
3121
- imports.wbg.__wbg_SQLITEOK_2d09a4e691645e98 = function(arg0) {
3122
- const ret = arg0.SQLITE_OK;
3162
+ imports.wbg.__wbg_SQLITEROW_a21779e78155c8ad = function(arg0) {
3163
+ const ret = arg0.SQLITE_ROW;
3123
3164
  return ret;
3124
3165
  };
3125
- imports.wbg.__wbg_SQLITECONSTRAINTFOREIGNKEY_741a343b3482effc = function(arg0) {
3126
- const ret = arg0.SQLITE_CONSTRAINT_FOREIGNKEY;
3166
+ imports.wbg.__wbg_SQLITEPREPAREPERSISTENT_d81d553ffa5c038c = function(arg0) {
3167
+ const ret = arg0.SQLITE_PREPARE_PERSISTENT;
3127
3168
  return ret;
3128
3169
  };
3129
3170
  imports.wbg.__wbg_SQLITEINTEGER_9031dce8e01c166c = function(arg0) {
3130
3171
  const ret = arg0.SQLITE_INTEGER;
3131
3172
  return ret;
3132
3173
  };
3133
- imports.wbg.__wbg_SQLITEBLOB_394b61ff6fc173a6 = function(arg0) {
3134
- const ret = arg0.SQLITE_BLOB;
3174
+ imports.wbg.__wbg_SQLITEDONE_fbfe18ce23a3b6da = function(arg0) {
3175
+ const ret = arg0.SQLITE_DONE;
3135
3176
  return ret;
3136
3177
  };
3137
- imports.wbg.__wbg_SQLITEROW_a21779e78155c8ad = function(arg0) {
3138
- const ret = arg0.SQLITE_ROW;
3178
+ imports.wbg.__wbg_SQLITETEXT_727e78d48f532f23 = function(arg0) {
3179
+ const ret = arg0.SQLITE_TEXT;
3139
3180
  return ret;
3140
3181
  };
3141
- imports.wbg.__wbg_SQLITESTATIC_b98299c993e94d35 = function(arg0) {
3142
- const ret = arg0.SQLITE_STATIC;
3182
+ imports.wbg.__wbg_SQLITENULL_00f5eb33b5b89690 = function(arg0) {
3183
+ const ret = arg0.SQLITE_NULL;
3184
+ return ret;
3185
+ };
3186
+ imports.wbg.__wbg_SQLITECONSTRAINTUNIQUE_1dea04a977c1e377 = function(arg0) {
3187
+ const ret = arg0.SQLITE_CONSTRAINT_UNIQUE;
3143
3188
  return ret;
3144
3189
  };
3145
3190
  imports.wbg.__wbg_SQLITECONSTRAINTPRIMARYKEY_3e2ad26d848575a2 = function(arg0) {
3146
3191
  const ret = arg0.SQLITE_CONSTRAINT_PRIMARYKEY;
3147
3192
  return ret;
3148
3193
  };
3149
- imports.wbg.__wbg_SQLITEDONE_fbfe18ce23a3b6da = function(arg0) {
3150
- const ret = arg0.SQLITE_DONE;
3194
+ imports.wbg.__wbg_SQLITEBLOB_394b61ff6fc173a6 = function(arg0) {
3195
+ const ret = arg0.SQLITE_BLOB;
3151
3196
  return ret;
3152
3197
  };
3153
- imports.wbg.__wbg_SQLITECONSTRAINTCHECK_7b54e6702b2e57ba = function(arg0) {
3154
- const ret = arg0.SQLITE_CONSTRAINT_CHECK;
3198
+ imports.wbg.__wbg_SQLITESTATIC_b98299c993e94d35 = function(arg0) {
3199
+ const ret = arg0.SQLITE_STATIC;
3155
3200
  return ret;
3156
3201
  };
3157
- imports.wbg.__wbg_SQLITENULL_00f5eb33b5b89690 = function(arg0) {
3158
- const ret = arg0.SQLITE_NULL;
3202
+ imports.wbg.__wbg_SQLITEFLOAT_e0da134da12d25d0 = function(arg0) {
3203
+ const ret = arg0.SQLITE_FLOAT;
3159
3204
  return ret;
3160
3205
  };
3161
3206
  imports.wbg.__wbg_SQLITECONSTRAINTNOTNULL_0f87885933517ad3 = function(arg0) {
3162
3207
  const ret = arg0.SQLITE_CONSTRAINT_NOTNULL;
3163
3208
  return ret;
3164
3209
  };
3165
- imports.wbg.__wbg_SQLITETEXT_727e78d48f532f23 = function(arg0) {
3166
- const ret = arg0.SQLITE_TEXT;
3210
+ imports.wbg.__wbg_SQLITEOK_2d09a4e691645e98 = function(arg0) {
3211
+ const ret = arg0.SQLITE_OK;
3167
3212
  return ret;
3168
3213
  };
3169
- imports.wbg.__wbg_SQLITEPREPAREPERSISTENT_d81d553ffa5c038c = function(arg0) {
3170
- const ret = arg0.SQLITE_PREPARE_PERSISTENT;
3214
+ imports.wbg.__wbg_SQLITECONSTRAINTFOREIGNKEY_741a343b3482effc = function(arg0) {
3215
+ const ret = arg0.SQLITE_CONSTRAINT_FOREIGNKEY;
3171
3216
  return ret;
3172
3217
  };
3173
3218
  imports.wbg.__wbg_SQLITEOPENREADWRITE_a83b4615e4d0f3ab = function(arg0) {
@@ -3328,6 +3373,16 @@ imports.wbg.__wbg_getwithrefkey_edc2c8960f0f1191 = function(arg0, arg1) {
3328
3373
  imports.wbg.__wbg_set_f975102236d3c502 = function(arg0, arg1, arg2) {
3329
3374
  arg0[arg1] = arg2;
3330
3375
  };
3376
+ imports.wbg.__wbg_fetch_9b133f5ec268a7b8 = typeof fetch == 'function' ? fetch : notDefined('fetch');
3377
+ imports.wbg.__wbg_queueMicrotask_848aa4969108a57e = function(arg0) {
3378
+ const ret = arg0.queueMicrotask;
3379
+ return ret;
3380
+ };
3381
+ imports.wbg.__wbindgen_is_function = function(arg0) {
3382
+ const ret = typeof(arg0) === 'function';
3383
+ return ret;
3384
+ };
3385
+ imports.wbg.__wbg_queueMicrotask_c5419c06eab41e73 = typeof queueMicrotask == 'function' ? queueMicrotask : notDefined('queueMicrotask');
3331
3386
  imports.wbg.__wbg_crypto_1d1f22824a6a080c = function(arg0) {
3332
3387
  const ret = arg0.crypto;
3333
3388
  return ret;
@@ -3362,16 +3417,6 @@ imports.wbg.__wbg_getRandomValues_3aa56aa6edec874c = function() { return handleE
3362
3417
  imports.wbg.__wbg_randomFillSync_5c9c955aa56b6049 = function() { return handleError(function (arg0, arg1) {
3363
3418
  arg0.randomFillSync(arg1);
3364
3419
  }, arguments) };
3365
- imports.wbg.__wbg_fetch_9b133f5ec268a7b8 = typeof fetch == 'function' ? fetch : notDefined('fetch');
3366
- imports.wbg.__wbg_queueMicrotask_848aa4969108a57e = function(arg0) {
3367
- const ret = arg0.queueMicrotask;
3368
- return ret;
3369
- };
3370
- imports.wbg.__wbindgen_is_function = function(arg0) {
3371
- const ret = typeof(arg0) === 'function';
3372
- return ret;
3373
- };
3374
- imports.wbg.__wbg_queueMicrotask_c5419c06eab41e73 = typeof queueMicrotask == 'function' ? queueMicrotask : notDefined('queueMicrotask');
3375
3420
  imports.wbg.__wbg_debug_69675dd374e2c249 = typeof console.debug == 'function' ? console.debug : notDefined('console.debug');
3376
3421
  imports.wbg.__wbg_debug_a0b6c2c5ac9a4bfd = typeof console.debug == 'function' ? console.debug : notDefined('console.debug');
3377
3422
  imports.wbg.__wbg_error_53abcd6a461f73d8 = typeof console.error == 'function' ? console.error : notDefined('console.error');
@@ -3593,7 +3638,7 @@ imports.wbg.__wbg_new_1073970097e5a420 = function(arg0, arg1) {
3593
3638
  const a = state0.a;
3594
3639
  state0.a = 0;
3595
3640
  try {
3596
- return __wbg_adapter_563(a, state0.b, arg0, arg1);
3641
+ return __wbg_adapter_567(a, state0.b, arg0, arg1);
3597
3642
  } finally {
3598
3643
  state0.a = a;
3599
3644
  }
@@ -3695,12 +3740,12 @@ imports.wbg.__wbindgen_memory = function() {
3695
3740
  const ret = wasm.memory;
3696
3741
  return ret;
3697
3742
  };
3698
- imports.wbg.__wbindgen_closure_wrapper7510 = function(arg0, arg1, arg2) {
3699
- const ret = makeMutClosure(arg0, arg1, 1835, __wbg_adapter_46);
3743
+ imports.wbg.__wbindgen_closure_wrapper7534 = function(arg0, arg1, arg2) {
3744
+ const ret = makeMutClosure(arg0, arg1, 1807, __wbg_adapter_46);
3700
3745
  return ret;
3701
3746
  };
3702
- imports.wbg.__wbindgen_closure_wrapper10662 = function(arg0, arg1, arg2) {
3703
- const ret = makeMutClosure(arg0, arg1, 2417, __wbg_adapter_49);
3747
+ imports.wbg.__wbindgen_closure_wrapper10085 = function(arg0, arg1, arg2) {
3748
+ const ret = makeMutClosure(arg0, arg1, 2321, __wbg_adapter_49);
3704
3749
  return ret;
3705
3750
  };
3706
3751
  imports.wbg.__wbindgen_init_externref_table = function() {
Binary file
@@ -15,12 +15,37 @@ export function client_accountAddress(a: number): Array;
15
15
  export function client_inboxId(a: number): Array;
16
16
  export function client_isRegistered(a: number): number;
17
17
  export function client_installationId(a: number): Array;
18
+ export function client_installationIdBytes(a: number): number;
18
19
  export function client_canMessage(a: number, b: number, c: number): number;
19
20
  export function client_registerIdentity(a: number): number;
20
21
  export function client_sendHistorySyncRequest(a: number): number;
21
22
  export function client_sendConsentSyncRequest(a: number): number;
22
23
  export function client_findInboxIdByAddress(a: number, b: number, c: number): number;
23
24
  export function client_conversations(a: number): number;
25
+ export function client_signWithInstallationKey(a: number, b: number, c: number): Array;
26
+ export function client_verifySignedWithInstallationKey(a: number, b: number, c: number, d: number): Array;
27
+ export function client_verifySignedWithPublicKey(a: number, b: number, c: number, d: number, e: number): Array;
28
+ export function __wbg_permissionpolicyset_free(a: number, b: number): void;
29
+ export function __wbg_get_permissionpolicyset_addMemberPolicy(a: number): number;
30
+ export function __wbg_set_permissionpolicyset_addMemberPolicy(a: number, b: number): void;
31
+ export function __wbg_get_permissionpolicyset_removeMemberPolicy(a: number): number;
32
+ export function __wbg_set_permissionpolicyset_removeMemberPolicy(a: number, b: number): void;
33
+ export function __wbg_get_permissionpolicyset_addAdminPolicy(a: number): number;
34
+ export function __wbg_set_permissionpolicyset_addAdminPolicy(a: number, b: number): void;
35
+ export function __wbg_get_permissionpolicyset_removeAdminPolicy(a: number): number;
36
+ export function __wbg_set_permissionpolicyset_removeAdminPolicy(a: number, b: number): void;
37
+ export function __wbg_get_permissionpolicyset_updateGroupNamePolicy(a: number): number;
38
+ export function __wbg_set_permissionpolicyset_updateGroupNamePolicy(a: number, b: number): void;
39
+ export function __wbg_get_permissionpolicyset_updateGroupDescriptionPolicy(a: number): number;
40
+ export function __wbg_set_permissionpolicyset_updateGroupDescriptionPolicy(a: number, b: number): void;
41
+ export function __wbg_get_permissionpolicyset_updateGroupImageUrlSquarePolicy(a: number): number;
42
+ export function __wbg_set_permissionpolicyset_updateGroupImageUrlSquarePolicy(a: number, b: number): void;
43
+ export function __wbg_get_permissionpolicyset_updateGroupPinnedFrameUrlPolicy(a: number): number;
44
+ export function __wbg_set_permissionpolicyset_updateGroupPinnedFrameUrlPolicy(a: number, b: number): void;
45
+ export function permissionpolicyset_new(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number): number;
46
+ export function __wbg_grouppermissions_free(a: number, b: number): void;
47
+ export function grouppermissions_policyType(a: number): Array;
48
+ export function grouppermissions_policySet(a: number): Array;
24
49
  export function __wbg_consent_free(a: number, b: number): void;
25
50
  export function __wbg_get_consent_entityType(a: number): number;
26
51
  export function __wbg_set_consent_entityType(a: number, b: number): void;
@@ -125,6 +150,8 @@ export function __wbg_get_listmessagesoptions_limit(a: number): Array;
125
150
  export function __wbg_set_listmessagesoptions_sentBeforeNs(a: number, b: number, c: number): void;
126
151
  export function __wbg_set_listmessagesoptions_sentAfterNs(a: number, b: number, c: number): void;
127
152
  export function __wbg_set_listmessagesoptions_limit(a: number, b: number, c: number): void;
153
+ export function getInboxIdForAddress(a: number, b: number, c: number, d: number): number;
154
+ export function generateInboxId(a: number, b: number): Array;
128
155
  export function __wbg_groupmetadata_free(a: number, b: number): void;
129
156
  export function groupmetadata_creatorInboxId(a: number): Array;
130
157
  export function groupmetadata_conversationType(a: number): Array;
@@ -192,29 +219,6 @@ export function client_inboxState(a: number, b: number): number;
192
219
  export function client_getLatestInboxState(a: number, b: number, c: number): number;
193
220
  export function __wbg_set_inboxstate_inboxId(a: number, b: number, c: number): void;
194
221
  export function __wbg_get_inboxstate_inboxId(a: number): Array;
195
- export function getInboxIdForAddress(a: number, b: number, c: number, d: number): number;
196
- export function generateInboxId(a: number, b: number): Array;
197
- export function __wbg_permissionpolicyset_free(a: number, b: number): void;
198
- export function __wbg_get_permissionpolicyset_addMemberPolicy(a: number): number;
199
- export function __wbg_set_permissionpolicyset_addMemberPolicy(a: number, b: number): void;
200
- export function __wbg_get_permissionpolicyset_removeMemberPolicy(a: number): number;
201
- export function __wbg_set_permissionpolicyset_removeMemberPolicy(a: number, b: number): void;
202
- export function __wbg_get_permissionpolicyset_addAdminPolicy(a: number): number;
203
- export function __wbg_set_permissionpolicyset_addAdminPolicy(a: number, b: number): void;
204
- export function __wbg_get_permissionpolicyset_removeAdminPolicy(a: number): number;
205
- export function __wbg_set_permissionpolicyset_removeAdminPolicy(a: number, b: number): void;
206
- export function __wbg_get_permissionpolicyset_updateGroupNamePolicy(a: number): number;
207
- export function __wbg_set_permissionpolicyset_updateGroupNamePolicy(a: number, b: number): void;
208
- export function __wbg_get_permissionpolicyset_updateGroupDescriptionPolicy(a: number): number;
209
- export function __wbg_set_permissionpolicyset_updateGroupDescriptionPolicy(a: number, b: number): void;
210
- export function __wbg_get_permissionpolicyset_updateGroupImageUrlSquarePolicy(a: number): number;
211
- export function __wbg_set_permissionpolicyset_updateGroupImageUrlSquarePolicy(a: number, b: number): void;
212
- export function __wbg_get_permissionpolicyset_updateGroupPinnedFrameUrlPolicy(a: number): number;
213
- export function __wbg_set_permissionpolicyset_updateGroupPinnedFrameUrlPolicy(a: number, b: number): void;
214
- export function permissionpolicyset_new(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number): number;
215
- export function __wbg_grouppermissions_free(a: number, b: number): void;
216
- export function grouppermissions_policyType(a: number): Array;
217
- export function grouppermissions_policySet(a: number): Array;
218
222
  export function __wbg_version_free(a: number, b: number): void;
219
223
  export function __wbg_intounderlyingsource_free(a: number, b: number): void;
220
224
  export function intounderlyingsource_pull(a: number, b: number): number;
@@ -234,11 +238,11 @@ export function __wbindgen_realloc(a: number, b: number, c: number, d: number):
234
238
  export const __wbindgen_export_2: WebAssembly.Table;
235
239
  export const __wbindgen_export_3: WebAssembly.Table;
236
240
  export function _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__ha602f13c6f6f57bd(a: number, b: number): void;
237
- export function closure2416_externref_shim(a: number, b: number, c: number): void;
241
+ export function closure2320_externref_shim(a: number, b: number, c: number): void;
238
242
  export function __externref_table_alloc(): number;
239
243
  export function __wbindgen_free(a: number, b: number, c: number): void;
240
244
  export function __externref_table_dealloc(a: number): void;
241
245
  export function __externref_drop_slice(a: number, b: number): void;
242
246
  export function __wbindgen_exn_store(a: number): void;
243
- export function closure3417_externref_shim(a: number, b: number, c: number, d: number): void;
247
+ export function closure3388_externref_shim(a: number, b: number, c: number, d: number): void;
244
248
  export function __wbindgen_start(): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xmtp/wasm-bindings",
3
- "version": "0.0.4",
3
+ "version": "0.0.6",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "description": "WASM bindings for the libXMTP rust library",