@xmtp/wasm-bindings 1.1.3 → 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.
- package/dist/bindings_wasm.d.ts +110 -74
- package/dist/bindings_wasm.js +202 -64
- package/dist/bindings_wasm_bg.wasm +0 -0
- package/dist/bindings_wasm_bg.wasm.d.ts +83 -71
- package/dist/version.json +5 -0
- package/package.json +6 -3
package/dist/bindings_wasm.d.ts
CHANGED
|
@@ -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,12 +126,15 @@ 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>;
|
|
131
133
|
applySignatureRequests(): Promise<void>;
|
|
132
134
|
signWithInstallationKey(signature_text: string): Uint8Array;
|
|
133
135
|
verifySignedWithInstallationKey(signature_text: string, signature_bytes: Uint8Array): void;
|
|
136
|
+
setConsentStates(records: Consent[]): Promise<void>;
|
|
137
|
+
getConsentState(entity_type: ConsentEntityType, entity: string): Promise<ConsentState>;
|
|
134
138
|
/**
|
|
135
139
|
* Output booleans should be zipped with the index of input identifiers
|
|
136
140
|
*/
|
|
@@ -151,8 +155,14 @@ export class Client {
|
|
|
151
155
|
*/
|
|
152
156
|
inboxState(refresh_from_network: boolean): Promise<InboxState>;
|
|
153
157
|
getLatestInboxState(inbox_id: string): Promise<InboxState>;
|
|
154
|
-
|
|
155
|
-
|
|
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;
|
|
@@ -648,74 +673,6 @@ export interface InitOutput {
|
|
|
648
673
|
readonly client_verifySignedWithInstallationKey: (a: number, b: number, c: number, d: any) => [number, number];
|
|
649
674
|
readonly __wbg_set_reaction_reference: (a: number, b: number, c: number) => void;
|
|
650
675
|
readonly __wbg_get_reaction_reference: (a: number) => [number, number];
|
|
651
|
-
readonly __wbg_streamcloser_free: (a: number, b: number) => void;
|
|
652
|
-
readonly streamcloser_end: (a: number) => void;
|
|
653
|
-
readonly streamcloser_endAndWait: (a: number) => any;
|
|
654
|
-
readonly streamcloser_waitForReady: (a: number) => any;
|
|
655
|
-
readonly streamcloser_isClosed: (a: number) => number;
|
|
656
|
-
readonly __wbg_client_free: (a: number, b: number) => void;
|
|
657
|
-
readonly __wbg_logoptions_free: (a: number, b: number) => void;
|
|
658
|
-
readonly __wbg_get_logoptions_structured: (a: number) => number;
|
|
659
|
-
readonly __wbg_set_logoptions_structured: (a: number, b: number) => void;
|
|
660
|
-
readonly __wbg_get_logoptions_performance: (a: number) => number;
|
|
661
|
-
readonly __wbg_set_logoptions_performance: (a: number, b: number) => void;
|
|
662
|
-
readonly __wbg_get_logoptions_level: (a: number) => number;
|
|
663
|
-
readonly __wbg_set_logoptions_level: (a: number, b: number) => void;
|
|
664
|
-
readonly logoptions_new: (a: number, b: number, c: number) => number;
|
|
665
|
-
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;
|
|
666
|
-
readonly client_accountIdentifier: (a: number) => any;
|
|
667
|
-
readonly client_inboxId: (a: number) => [number, number];
|
|
668
|
-
readonly client_isRegistered: (a: number) => number;
|
|
669
|
-
readonly client_installationId: (a: number) => [number, number];
|
|
670
|
-
readonly client_installationIdBytes: (a: number) => any;
|
|
671
|
-
readonly client_canMessage: (a: number, b: number, c: number) => any;
|
|
672
|
-
readonly client_registerIdentity: (a: number) => any;
|
|
673
|
-
readonly client_sendHistorySyncRequest: (a: number) => any;
|
|
674
|
-
readonly client_sendConsentSyncRequest: (a: number) => any;
|
|
675
|
-
readonly client_findInboxIdByIdentifier: (a: number, b: any) => any;
|
|
676
|
-
readonly client_inboxStateFromInboxIds: (a: number, b: number, c: number, d: number) => any;
|
|
677
|
-
readonly client_conversations: (a: number) => number;
|
|
678
|
-
readonly __wbg_installation_free: (a: number, b: number) => void;
|
|
679
|
-
readonly __wbg_get_installation_bytes: (a: number) => any;
|
|
680
|
-
readonly __wbg_set_installation_bytes: (a: number, b: any) => void;
|
|
681
|
-
readonly __wbg_get_installation_id: (a: number) => [number, number];
|
|
682
|
-
readonly __wbg_set_installation_id: (a: number, b: number, c: number) => void;
|
|
683
|
-
readonly __wbg_get_installation_clientTimestampNs: (a: number) => [number, bigint];
|
|
684
|
-
readonly __wbg_set_installation_clientTimestampNs: (a: number, b: number, c: bigint) => void;
|
|
685
|
-
readonly installation_new: (a: any, b: number, c: number, d: number, e: bigint) => number;
|
|
686
|
-
readonly __wbg_inboxstate_free: (a: number, b: number) => void;
|
|
687
|
-
readonly __wbg_get_inboxstate_inboxId: (a: number) => [number, number];
|
|
688
|
-
readonly __wbg_set_inboxstate_inboxId: (a: number, b: number, c: number) => void;
|
|
689
|
-
readonly __wbg_get_inboxstate_recoveryIdentifier: (a: number) => any;
|
|
690
|
-
readonly __wbg_set_inboxstate_recoveryIdentifier: (a: number, b: any) => void;
|
|
691
|
-
readonly __wbg_get_inboxstate_installations: (a: number) => [number, number];
|
|
692
|
-
readonly __wbg_set_inboxstate_installations: (a: number, b: number, c: number) => void;
|
|
693
|
-
readonly __wbg_get_inboxstate_accountIdentifiers: (a: number) => [number, number];
|
|
694
|
-
readonly __wbg_set_inboxstate_accountIdentifiers: (a: number, b: number, c: number) => void;
|
|
695
|
-
readonly inboxstate_new: (a: number, b: number, c: any, d: number, e: number, f: number, g: number) => number;
|
|
696
|
-
readonly client_inboxState: (a: number, b: number) => any;
|
|
697
|
-
readonly client_getLatestInboxState: (a: number, b: number, c: number) => any;
|
|
698
|
-
readonly __wbg_permissionpolicyset_free: (a: number, b: number) => void;
|
|
699
|
-
readonly __wbg_get_permissionpolicyset_addMemberPolicy: (a: number) => number;
|
|
700
|
-
readonly __wbg_set_permissionpolicyset_addMemberPolicy: (a: number, b: number) => void;
|
|
701
|
-
readonly __wbg_get_permissionpolicyset_removeMemberPolicy: (a: number) => number;
|
|
702
|
-
readonly __wbg_set_permissionpolicyset_removeMemberPolicy: (a: number, b: number) => void;
|
|
703
|
-
readonly __wbg_get_permissionpolicyset_addAdminPolicy: (a: number) => number;
|
|
704
|
-
readonly __wbg_set_permissionpolicyset_addAdminPolicy: (a: number, b: number) => void;
|
|
705
|
-
readonly __wbg_get_permissionpolicyset_removeAdminPolicy: (a: number) => number;
|
|
706
|
-
readonly __wbg_set_permissionpolicyset_removeAdminPolicy: (a: number, b: number) => void;
|
|
707
|
-
readonly __wbg_get_permissionpolicyset_updateGroupNamePolicy: (a: number) => number;
|
|
708
|
-
readonly __wbg_set_permissionpolicyset_updateGroupNamePolicy: (a: number, b: number) => void;
|
|
709
|
-
readonly __wbg_get_permissionpolicyset_updateGroupDescriptionPolicy: (a: number) => number;
|
|
710
|
-
readonly __wbg_set_permissionpolicyset_updateGroupDescriptionPolicy: (a: number, b: number) => void;
|
|
711
|
-
readonly __wbg_get_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number) => number;
|
|
712
|
-
readonly __wbg_set_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number, b: number) => void;
|
|
713
|
-
readonly __wbg_get_permissionpolicyset_updateMessageDisappearingPolicy: (a: number) => number;
|
|
714
|
-
readonly __wbg_set_permissionpolicyset_updateMessageDisappearingPolicy: (a: number, b: number) => void;
|
|
715
|
-
readonly permissionpolicyset_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
716
|
-
readonly __wbg_grouppermissions_free: (a: number, b: number) => void;
|
|
717
|
-
readonly grouppermissions_policyType: (a: number) => [number, number, number];
|
|
718
|
-
readonly grouppermissions_policySet: (a: number) => [number, number, number];
|
|
719
676
|
readonly __wbg_consent_free: (a: number, b: number) => void;
|
|
720
677
|
readonly __wbg_get_consent_entityType: (a: number) => number;
|
|
721
678
|
readonly __wbg_set_consent_entityType: (a: number, b: number) => void;
|
|
@@ -866,6 +823,85 @@ export interface InitOutput {
|
|
|
866
823
|
readonly __wbg_get_listmessagesoptions_limit: (a: number) => [number, bigint];
|
|
867
824
|
readonly __wbg_set_contenttypeid_authorityId: (a: number, b: number, c: number) => void;
|
|
868
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
|
|
900
|
-
readonly
|
|
901
|
-
readonly
|
|
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
|
|
package/dist/bindings_wasm.js
CHANGED
|
@@ -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
|
-
|
|
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
|
|
378
|
-
wasm.
|
|
377
|
+
function __wbg_adapter_53(arg0, arg1, arg2) {
|
|
378
|
+
wasm.closure3862_externref_shim(arg0, arg1, arg2);
|
|
379
379
|
}
|
|
380
380
|
|
|
381
|
-
function
|
|
382
|
-
const ret = wasm.
|
|
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
|
|
387
|
-
wasm.
|
|
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
|
|
@@ -673,6 +682,27 @@ export class Client {
|
|
|
673
682
|
throw takeFromExternrefTable0(ret[0]);
|
|
674
683
|
}
|
|
675
684
|
}
|
|
685
|
+
/**
|
|
686
|
+
* @param {Consent[]} records
|
|
687
|
+
* @returns {Promise<void>}
|
|
688
|
+
*/
|
|
689
|
+
setConsentStates(records) {
|
|
690
|
+
const ptr0 = passArrayJsValueToWasm0(records, wasm.__wbindgen_malloc);
|
|
691
|
+
const len0 = WASM_VECTOR_LEN;
|
|
692
|
+
const ret = wasm.client_setConsentStates(this.__wbg_ptr, ptr0, len0);
|
|
693
|
+
return ret;
|
|
694
|
+
}
|
|
695
|
+
/**
|
|
696
|
+
* @param {ConsentEntityType} entity_type
|
|
697
|
+
* @param {string} entity
|
|
698
|
+
* @returns {Promise<ConsentState>}
|
|
699
|
+
*/
|
|
700
|
+
getConsentState(entity_type, entity) {
|
|
701
|
+
const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
702
|
+
const len0 = WASM_VECTOR_LEN;
|
|
703
|
+
const ret = wasm.client_getConsentState(this.__wbg_ptr, entity_type, ptr0, len0);
|
|
704
|
+
return ret;
|
|
705
|
+
}
|
|
676
706
|
/**
|
|
677
707
|
* @returns {Identifier}
|
|
678
708
|
*/
|
|
@@ -807,24 +837,18 @@ export class Client {
|
|
|
807
837
|
return ret;
|
|
808
838
|
}
|
|
809
839
|
/**
|
|
810
|
-
*
|
|
811
|
-
*
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
return ret;
|
|
818
|
-
}
|
|
819
|
-
/**
|
|
820
|
-
* @param {ConsentEntityType} entity_type
|
|
821
|
-
* @param {string} entity
|
|
822
|
-
* @returns {Promise<ConsentState>}
|
|
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>}
|
|
823
847
|
*/
|
|
824
|
-
|
|
825
|
-
const ptr0 =
|
|
848
|
+
getKeyPackageStatusesForInstallationIds(installation_ids) {
|
|
849
|
+
const ptr0 = passArrayJsValueToWasm0(installation_ids, wasm.__wbindgen_malloc);
|
|
826
850
|
const len0 = WASM_VECTOR_LEN;
|
|
827
|
-
const ret = wasm.
|
|
851
|
+
const ret = wasm.client_getKeyPackageStatusesForInstallationIds(this.__wbg_ptr, ptr0, len0);
|
|
828
852
|
return ret;
|
|
829
853
|
}
|
|
830
854
|
}
|
|
@@ -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
|
|
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
|
|
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
|
|
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.
|
|
4971
|
+
imports.wbg.__wbg_onconsentupdate_4c6fac1d9f867a49 = function(arg0, arg1) {
|
|
4838
4972
|
arg0.on_consent_update(arg1);
|
|
4839
4973
|
};
|
|
4840
|
-
imports.wbg.
|
|
4974
|
+
imports.wbg.__wbg_onconversation_53ee00b78b2567f0 = function(arg0, arg1) {
|
|
4841
4975
|
arg0.on_conversation(Conversation.__wrap(arg1));
|
|
4842
4976
|
};
|
|
4843
|
-
imports.wbg.
|
|
4977
|
+
imports.wbg.__wbg_onerror_f83f69679f719d45 = function(arg0, arg1) {
|
|
4844
4978
|
arg0.on_error(arg1);
|
|
4845
4979
|
};
|
|
4846
|
-
imports.wbg.
|
|
4980
|
+
imports.wbg.__wbg_onmessage_9af0c0b07630e1bb = function(arg0, arg1) {
|
|
4847
4981
|
arg0.on_message(Message.__wrap(arg1));
|
|
4848
4982
|
};
|
|
4849
|
-
imports.wbg.
|
|
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.
|
|
5134
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
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.
|
|
5138
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
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;
|
|
@@ -108,74 +109,6 @@ export const client_signWithInstallationKey: (a: number, b: number, c: number) =
|
|
|
108
109
|
export const client_verifySignedWithInstallationKey: (a: number, b: number, c: number, d: any) => [number, number];
|
|
109
110
|
export const __wbg_set_reaction_reference: (a: number, b: number, c: number) => void;
|
|
110
111
|
export const __wbg_get_reaction_reference: (a: number) => [number, number];
|
|
111
|
-
export const __wbg_streamcloser_free: (a: number, b: number) => void;
|
|
112
|
-
export const streamcloser_end: (a: number) => void;
|
|
113
|
-
export const streamcloser_endAndWait: (a: number) => any;
|
|
114
|
-
export const streamcloser_waitForReady: (a: number) => any;
|
|
115
|
-
export const streamcloser_isClosed: (a: number) => number;
|
|
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: any, f: number, g: number, h: number, i: number, j: number, k: number) => any;
|
|
126
|
-
export const client_accountIdentifier: (a: number) => any;
|
|
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_findInboxIdByIdentifier: (a: number, b: any) => any;
|
|
136
|
-
export const client_inboxStateFromInboxIds: (a: number, b: number, c: number, d: number) => any;
|
|
137
|
-
export const client_conversations: (a: number) => number;
|
|
138
|
-
export const __wbg_installation_free: (a: number, b: number) => void;
|
|
139
|
-
export const __wbg_get_installation_bytes: (a: number) => any;
|
|
140
|
-
export const __wbg_set_installation_bytes: (a: number, b: any) => void;
|
|
141
|
-
export const __wbg_get_installation_id: (a: number) => [number, number];
|
|
142
|
-
export const __wbg_set_installation_id: (a: number, b: number, c: number) => void;
|
|
143
|
-
export const __wbg_get_installation_clientTimestampNs: (a: number) => [number, bigint];
|
|
144
|
-
export const __wbg_set_installation_clientTimestampNs: (a: number, b: number, c: bigint) => void;
|
|
145
|
-
export const installation_new: (a: any, b: number, c: number, d: number, e: bigint) => number;
|
|
146
|
-
export const __wbg_inboxstate_free: (a: number, b: number) => void;
|
|
147
|
-
export const __wbg_get_inboxstate_inboxId: (a: number) => [number, number];
|
|
148
|
-
export const __wbg_set_inboxstate_inboxId: (a: number, b: number, c: number) => void;
|
|
149
|
-
export const __wbg_get_inboxstate_recoveryIdentifier: (a: number) => any;
|
|
150
|
-
export const __wbg_set_inboxstate_recoveryIdentifier: (a: number, b: any) => void;
|
|
151
|
-
export const __wbg_get_inboxstate_installations: (a: number) => [number, number];
|
|
152
|
-
export const __wbg_set_inboxstate_installations: (a: number, b: number, c: number) => void;
|
|
153
|
-
export const __wbg_get_inboxstate_accountIdentifiers: (a: number) => [number, number];
|
|
154
|
-
export const __wbg_set_inboxstate_accountIdentifiers: (a: number, b: number, c: number) => void;
|
|
155
|
-
export const inboxstate_new: (a: number, b: number, c: any, d: number, e: number, f: number, g: number) => number;
|
|
156
|
-
export const client_inboxState: (a: number, b: number) => any;
|
|
157
|
-
export const client_getLatestInboxState: (a: number, b: number, c: number) => any;
|
|
158
|
-
export const __wbg_permissionpolicyset_free: (a: number, b: number) => void;
|
|
159
|
-
export const __wbg_get_permissionpolicyset_addMemberPolicy: (a: number) => number;
|
|
160
|
-
export const __wbg_set_permissionpolicyset_addMemberPolicy: (a: number, b: number) => void;
|
|
161
|
-
export const __wbg_get_permissionpolicyset_removeMemberPolicy: (a: number) => number;
|
|
162
|
-
export const __wbg_set_permissionpolicyset_removeMemberPolicy: (a: number, b: number) => void;
|
|
163
|
-
export const __wbg_get_permissionpolicyset_addAdminPolicy: (a: number) => number;
|
|
164
|
-
export const __wbg_set_permissionpolicyset_addAdminPolicy: (a: number, b: number) => void;
|
|
165
|
-
export const __wbg_get_permissionpolicyset_removeAdminPolicy: (a: number) => number;
|
|
166
|
-
export const __wbg_set_permissionpolicyset_removeAdminPolicy: (a: number, b: number) => void;
|
|
167
|
-
export const __wbg_get_permissionpolicyset_updateGroupNamePolicy: (a: number) => number;
|
|
168
|
-
export const __wbg_set_permissionpolicyset_updateGroupNamePolicy: (a: number, b: number) => void;
|
|
169
|
-
export const __wbg_get_permissionpolicyset_updateGroupDescriptionPolicy: (a: number) => number;
|
|
170
|
-
export const __wbg_set_permissionpolicyset_updateGroupDescriptionPolicy: (a: number, b: number) => void;
|
|
171
|
-
export const __wbg_get_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number) => number;
|
|
172
|
-
export const __wbg_set_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number, b: number) => void;
|
|
173
|
-
export const __wbg_get_permissionpolicyset_updateMessageDisappearingPolicy: (a: number) => number;
|
|
174
|
-
export const __wbg_set_permissionpolicyset_updateMessageDisappearingPolicy: (a: number, b: number) => void;
|
|
175
|
-
export const permissionpolicyset_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
176
|
-
export const __wbg_grouppermissions_free: (a: number, b: number) => void;
|
|
177
|
-
export const grouppermissions_policyType: (a: number) => [number, number, number];
|
|
178
|
-
export const grouppermissions_policySet: (a: number) => [number, number, number];
|
|
179
112
|
export const __wbg_consent_free: (a: number, b: number) => void;
|
|
180
113
|
export const __wbg_get_consent_entityType: (a: number) => number;
|
|
181
114
|
export const __wbg_set_consent_entityType: (a: number, b: number) => void;
|
|
@@ -326,6 +259,85 @@ export const __wbg_get_listmessagesoptions_sentAfterNs: (a: number) => [number,
|
|
|
326
259
|
export const __wbg_get_listmessagesoptions_limit: (a: number) => [number, bigint];
|
|
327
260
|
export const __wbg_set_contenttypeid_authorityId: (a: number, b: number, c: number) => void;
|
|
328
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
|
|
360
|
-
export const
|
|
361
|
-
export const
|
|
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;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xmtp/wasm-bindings",
|
|
3
|
-
"version": "1.
|
|
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": "^
|
|
65
|
-
"
|
|
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
|
}
|