@xmtp/wasm-bindings 1.9.0-rc3 → 1.9.0-rc4
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 +104 -104
- package/dist/bindings_wasm.js +144 -144
- package/dist/bindings_wasm_bg.wasm +0 -0
- package/dist/bindings_wasm_bg.wasm.d.ts +4 -4
- package/package.json +1 -1
package/dist/bindings_wasm.d.ts
CHANGED
|
@@ -2,71 +2,76 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export function encodeAttachment(attachment: Attachment): EncodedContent;
|
|
4
4
|
export function contentTypeAttachment(): ContentTypeId;
|
|
5
|
-
export function encodeReadReceipt(read_receipt: ReadReceipt): EncodedContent;
|
|
6
5
|
export function contentTypeReadReceipt(): ContentTypeId;
|
|
7
|
-
export function
|
|
6
|
+
export function encodeReadReceipt(read_receipt: ReadReceipt): EncodedContent;
|
|
8
7
|
export function contentTypeTransactionReference(): ContentTypeId;
|
|
9
|
-
export function
|
|
8
|
+
export function encodeTransactionReference(transaction_reference: TransactionReference): EncodedContent;
|
|
10
9
|
export function contentTypeMultiRemoteAttachment(): ContentTypeId;
|
|
11
|
-
export function
|
|
10
|
+
export function encodeMultiRemoteAttachment(multi_remote_attachment: MultiRemoteAttachment): EncodedContent;
|
|
12
11
|
export function encodeText(text: string): EncodedContent;
|
|
12
|
+
export function contentTypeText(): ContentTypeId;
|
|
13
13
|
export function contentTypeReply(): ContentTypeId;
|
|
14
14
|
export function contentTypeMarkdown(): ContentTypeId;
|
|
15
15
|
export function encodeMarkdown(text: string): EncodedContent;
|
|
16
|
-
export function verifySignedWithPublicKey(signatureText: string, signatureBytes: Uint8Array, publicKey: Uint8Array): void;
|
|
17
|
-
export function revokeInstallationsSignatureRequest(host: string, gatewayHost: string | null | undefined, recoveryIdentifier: Identifier, inboxId: string, installationIds: Uint8Array[]): SignatureRequestHandle;
|
|
18
16
|
export function applySignatureRequest(host: string, gatewayHost: string | null | undefined, signatureRequest: SignatureRequestHandle): Promise<void>;
|
|
17
|
+
export function revokeInstallationsSignatureRequest(host: string, gatewayHost: string | null | undefined, recoveryIdentifier: Identifier, inboxId: string, installationIds: Uint8Array[]): SignatureRequestHandle;
|
|
18
|
+
export function verifySignedWithPublicKey(signatureText: string, signatureBytes: Uint8Array, publicKey: Uint8Array): void;
|
|
19
19
|
export function inboxStateFromInboxIds(host: string, gatewayHost: string | null | undefined, inboxIds: string[]): Promise<InboxState[]>;
|
|
20
20
|
export function contentTypeGroupUpdated(): ContentTypeId;
|
|
21
21
|
export function contentTypeLeaveRequest(): ContentTypeId;
|
|
22
|
-
/**
|
|
23
|
-
* Encrypts an attachment for storage as a remote attachment.
|
|
24
|
-
*/
|
|
25
|
-
export function encryptAttachment(attachment: Attachment): EncryptedAttachment;
|
|
26
22
|
export function encodeRemoteAttachment(remote_attachment: RemoteAttachment): EncodedContent;
|
|
27
23
|
export function contentTypeRemoteAttachment(): ContentTypeId;
|
|
28
24
|
/**
|
|
29
25
|
* Decrypts an encrypted payload from a remote attachment.
|
|
30
26
|
*/
|
|
31
27
|
export function decryptAttachment(encryptedBytes: Uint8Array, remoteAttachment: RemoteAttachment): Attachment;
|
|
32
|
-
|
|
28
|
+
/**
|
|
29
|
+
* Encrypts an attachment for storage as a remote attachment.
|
|
30
|
+
*/
|
|
31
|
+
export function encryptAttachment(attachment: Attachment): EncryptedAttachment;
|
|
33
32
|
export function encodeWalletSendCalls(wallet_send_calls: WalletSendCalls): EncodedContent;
|
|
34
|
-
export function
|
|
33
|
+
export function contentTypeWalletSendCalls(): ContentTypeId;
|
|
35
34
|
export function contentTypeIntent(): ContentTypeId;
|
|
36
|
-
export function
|
|
35
|
+
export function encodeIntent(intent: Intent): EncodedContent;
|
|
37
36
|
export function contentTypeActions(): ContentTypeId;
|
|
38
|
-
export function
|
|
37
|
+
export function encodeActions(actions: Actions): EncodedContent;
|
|
39
38
|
export function contentTypeReaction(): ContentTypeId;
|
|
39
|
+
export function encodeReaction(reaction: Reaction): EncodedContent;
|
|
40
40
|
export function createClient(host: string, inboxId: string, accountIdentifier: Identifier, dbPath?: string | null, encryptionKey?: Uint8Array | null, deviceSyncServerUrl?: string | null, deviceSyncWorkerMode?: DeviceSyncWorkerMode | null, logOptions?: LogOptions | null, allowOffline?: boolean | null, appVersion?: string | null, gatewayHost?: string | null, nonce?: bigint | null, authCallback?: any | null, authHandle?: AuthHandle | null, clientMode?: ClientMode | null): Promise<Client>;
|
|
41
41
|
export function getInboxIdForIdentifier(host: string, gatewayHost: string | null | undefined, isSecure: boolean, accountIdentifier: Identifier): Promise<string | undefined>;
|
|
42
42
|
export function generateInboxId(accountIdentifier: Identifier, nonce?: bigint | null): string;
|
|
43
43
|
export function metadataFieldName(field: MetadataField): string;
|
|
44
44
|
/**
|
|
45
|
-
*
|
|
45
|
+
* Check if a database file exists in OPFS.
|
|
46
46
|
*/
|
|
47
|
-
export function
|
|
47
|
+
export function opfsFileExists(filename: string): Promise<boolean>;
|
|
48
|
+
/**
|
|
49
|
+
* Import a database from a byte array into OPFS.
|
|
50
|
+
* This will overwrite any existing database with the same name.
|
|
51
|
+
* The byte array must contain a valid SQLite database.
|
|
52
|
+
* Note: Any existing database with the same name must be closed before importing.
|
|
53
|
+
*/
|
|
54
|
+
export function opfsImportDb(filename: string, data: Uint8Array): Promise<void>;
|
|
48
55
|
/**
|
|
49
56
|
* List all database files stored in OPFS.
|
|
50
57
|
* Returns an array of file names.
|
|
51
58
|
*/
|
|
52
59
|
export function opfsListFiles(): Promise<string[]>;
|
|
53
60
|
/**
|
|
54
|
-
*
|
|
55
|
-
* This must be called before using other OPFS functions.
|
|
61
|
+
* Get the number of database files stored in OPFS.
|
|
56
62
|
*/
|
|
57
|
-
export function
|
|
63
|
+
export function opfsFileCount(): Promise<number>;
|
|
58
64
|
/**
|
|
59
65
|
* Delete all database files from OPFS.
|
|
60
66
|
* Note: All databases must be closed before calling this function.
|
|
61
67
|
*/
|
|
62
68
|
export function opfsClearAll(): Promise<void>;
|
|
63
69
|
/**
|
|
64
|
-
*
|
|
65
|
-
* This
|
|
66
|
-
* The
|
|
67
|
-
* Note: Any existing database with the same name must be closed before importing.
|
|
70
|
+
* Export a database file from OPFS as a byte array.
|
|
71
|
+
* This can be used to backup or transfer a database.
|
|
72
|
+
* Note: The database should be closed before exporting for consistency.
|
|
68
73
|
*/
|
|
69
|
-
export function
|
|
74
|
+
export function opfsExportDb(filename: string): Promise<Uint8Array>;
|
|
70
75
|
/**
|
|
71
76
|
* Delete a specific database file from OPFS.
|
|
72
77
|
* Returns true if the file was deleted, false if it didn't exist.
|
|
@@ -74,19 +79,14 @@ export function opfsImportDb(filename: string, data: Uint8Array): Promise<void>;
|
|
|
74
79
|
*/
|
|
75
80
|
export function opfsDeleteFile(filename: string): Promise<boolean>;
|
|
76
81
|
/**
|
|
77
|
-
*
|
|
78
|
-
* This
|
|
79
|
-
* Note: The database should be closed before exporting for consistency.
|
|
82
|
+
* Initialize the OPFS SQLite VFS if not already initialized.
|
|
83
|
+
* This must be called before using other OPFS functions.
|
|
80
84
|
*/
|
|
81
|
-
export function
|
|
85
|
+
export function opfsInit(): Promise<void>;
|
|
82
86
|
/**
|
|
83
87
|
* Get the current capacity of the OPFS file pool.
|
|
84
88
|
*/
|
|
85
89
|
export function opfsPoolCapacity(): Promise<number>;
|
|
86
|
-
/**
|
|
87
|
-
* Check if a database file exists in OPFS.
|
|
88
|
-
*/
|
|
89
|
-
export function opfsFileExists(filename: string): Promise<boolean>;
|
|
90
90
|
/**
|
|
91
91
|
* Entry point invoked by JavaScript in a worker.
|
|
92
92
|
*/
|
|
@@ -272,23 +272,16 @@ export interface MultiRemoteAttachment {
|
|
|
272
272
|
attachments: RemoteAttachmentInfo[];
|
|
273
273
|
}
|
|
274
274
|
|
|
275
|
-
export interface Reply {
|
|
276
|
-
content: EncodedContent;
|
|
277
|
-
reference: string;
|
|
278
|
-
referenceInboxId?: string;
|
|
279
|
-
}
|
|
280
|
-
|
|
281
275
|
export interface EnrichedReply {
|
|
282
276
|
referenceId: string;
|
|
283
277
|
content: DecodedMessageContent;
|
|
284
278
|
inReplyTo?: DecodedMessage;
|
|
285
279
|
}
|
|
286
280
|
|
|
287
|
-
export interface
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
versionMinor: number;
|
|
281
|
+
export interface Reply {
|
|
282
|
+
content: EncodedContent;
|
|
283
|
+
reference: string;
|
|
284
|
+
referenceInboxId?: string;
|
|
292
285
|
}
|
|
293
286
|
|
|
294
287
|
export interface EncodedContent {
|
|
@@ -299,6 +292,13 @@ export interface EncodedContent {
|
|
|
299
292
|
content: Uint8Array;
|
|
300
293
|
}
|
|
301
294
|
|
|
295
|
+
export interface ContentTypeId {
|
|
296
|
+
authorityId: string;
|
|
297
|
+
typeId: string;
|
|
298
|
+
versionMajor: number;
|
|
299
|
+
versionMinor: number;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
302
|
export type UserPreferenceUpdate = { type: "ConsentUpdate"; consent: Consent } | { type: "HmacKeyUpdate"; key: number[] };
|
|
303
303
|
|
|
304
304
|
export interface PasskeySignature {
|
|
@@ -308,12 +308,6 @@ export interface PasskeySignature {
|
|
|
308
308
|
clientDataJson: Uint8Array;
|
|
309
309
|
}
|
|
310
310
|
|
|
311
|
-
export interface Installation {
|
|
312
|
-
bytes: Uint8Array;
|
|
313
|
-
id: string;
|
|
314
|
-
clientTimestampNs?: bigint;
|
|
315
|
-
}
|
|
316
|
-
|
|
317
311
|
export interface Lifetime {
|
|
318
312
|
notBefore: bigint;
|
|
319
313
|
notAfter: bigint;
|
|
@@ -326,14 +320,23 @@ export interface InboxState {
|
|
|
326
320
|
accountIdentifiers: Identifier[];
|
|
327
321
|
}
|
|
328
322
|
|
|
323
|
+
export interface Installation {
|
|
324
|
+
bytes: Uint8Array;
|
|
325
|
+
id: string;
|
|
326
|
+
clientTimestampNs?: bigint;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
329
|
export interface KeyPackageStatus {
|
|
330
330
|
lifetime?: Lifetime;
|
|
331
331
|
validationError?: string;
|
|
332
332
|
}
|
|
333
333
|
|
|
334
|
-
export interface
|
|
335
|
-
|
|
336
|
-
|
|
334
|
+
export interface GroupMember {
|
|
335
|
+
inboxId: string;
|
|
336
|
+
accountIdentifiers: Identifier[];
|
|
337
|
+
installationIds: string[];
|
|
338
|
+
permissionLevel: PermissionLevel;
|
|
339
|
+
consentState: ConsentState;
|
|
337
340
|
}
|
|
338
341
|
|
|
339
342
|
export interface GroupMetadata {
|
|
@@ -341,12 +344,9 @@ export interface GroupMetadata {
|
|
|
341
344
|
conversationType: ConversationType;
|
|
342
345
|
}
|
|
343
346
|
|
|
344
|
-
export interface
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
installationIds: string[];
|
|
348
|
-
permissionLevel: PermissionLevel;
|
|
349
|
-
consentState: ConsentState;
|
|
347
|
+
export interface SendMessageOpts {
|
|
348
|
+
shouldPush: boolean;
|
|
349
|
+
optimistic?: boolean;
|
|
350
350
|
}
|
|
351
351
|
|
|
352
352
|
export interface Consent {
|
|
@@ -426,14 +426,6 @@ export interface EncryptedAttachment {
|
|
|
426
426
|
filename?: string;
|
|
427
427
|
}
|
|
428
428
|
|
|
429
|
-
export interface WalletCall {
|
|
430
|
-
to?: string;
|
|
431
|
-
data?: string;
|
|
432
|
-
value?: string;
|
|
433
|
-
gas?: string;
|
|
434
|
-
metadata?: Record<string, string>;
|
|
435
|
-
}
|
|
436
|
-
|
|
437
429
|
export interface WalletSendCalls {
|
|
438
430
|
version: string;
|
|
439
431
|
chainId: string;
|
|
@@ -442,24 +434,32 @@ export interface WalletSendCalls {
|
|
|
442
434
|
capabilities?: Record<string, string>;
|
|
443
435
|
}
|
|
444
436
|
|
|
437
|
+
export interface WalletCall {
|
|
438
|
+
to?: string;
|
|
439
|
+
data?: string;
|
|
440
|
+
value?: string;
|
|
441
|
+
gas?: string;
|
|
442
|
+
metadata?: Record<string, string>;
|
|
443
|
+
}
|
|
444
|
+
|
|
445
445
|
export interface Intent {
|
|
446
446
|
id: string;
|
|
447
447
|
actionId: string;
|
|
448
448
|
metadata?: Record<string, string | number | boolean | null>;
|
|
449
449
|
}
|
|
450
450
|
|
|
451
|
-
export interface
|
|
451
|
+
export interface Actions {
|
|
452
452
|
id: string;
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
style?: ActionStyle;
|
|
453
|
+
description: string;
|
|
454
|
+
actions: Action[];
|
|
456
455
|
expiresAtNs?: bigint;
|
|
457
456
|
}
|
|
458
457
|
|
|
459
|
-
export interface
|
|
458
|
+
export interface Action {
|
|
460
459
|
id: string;
|
|
461
|
-
|
|
462
|
-
|
|
460
|
+
label: string;
|
|
461
|
+
imageUrl?: string;
|
|
462
|
+
style?: ActionStyle;
|
|
463
463
|
expiresAtNs?: bigint;
|
|
464
464
|
}
|
|
465
465
|
|
|
@@ -471,6 +471,16 @@ export interface Reaction {
|
|
|
471
471
|
schema: ReactionSchema;
|
|
472
472
|
}
|
|
473
473
|
|
|
474
|
+
export interface HmacKey {
|
|
475
|
+
key: Uint8Array;
|
|
476
|
+
epoch: bigint;
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
export interface Cursor {
|
|
480
|
+
originatorId: number;
|
|
481
|
+
sequenceId: bigint;
|
|
482
|
+
}
|
|
483
|
+
|
|
474
484
|
export interface ListConversationsOptions {
|
|
475
485
|
consentStates?: ConsentState[];
|
|
476
486
|
conversationType?: ConversationType;
|
|
@@ -481,16 +491,6 @@ export interface ListConversationsOptions {
|
|
|
481
491
|
limit?: bigint;
|
|
482
492
|
}
|
|
483
493
|
|
|
484
|
-
export interface CreateGroupOptions {
|
|
485
|
-
permissions?: GroupPermissionsOptions;
|
|
486
|
-
groupName?: string;
|
|
487
|
-
groupImageUrlSquare?: string;
|
|
488
|
-
groupDescription?: string;
|
|
489
|
-
customPermissionPolicySet?: PermissionPolicySet;
|
|
490
|
-
messageDisappearingSettings?: MessageDisappearingSettings;
|
|
491
|
-
appData?: string;
|
|
492
|
-
}
|
|
493
|
-
|
|
494
494
|
export interface CreateDmOptions {
|
|
495
495
|
messageDisappearingSettings?: MessageDisappearingSettings;
|
|
496
496
|
}
|
|
@@ -500,16 +500,6 @@ export interface MessageDisappearingSettings {
|
|
|
500
500
|
inNs: bigint;
|
|
501
501
|
}
|
|
502
502
|
|
|
503
|
-
export interface Cursor {
|
|
504
|
-
originatorId: number;
|
|
505
|
-
sequenceId: bigint;
|
|
506
|
-
}
|
|
507
|
-
|
|
508
|
-
export interface HmacKey {
|
|
509
|
-
key: Uint8Array;
|
|
510
|
-
epoch: bigint;
|
|
511
|
-
}
|
|
512
|
-
|
|
513
503
|
export interface ConversationDebugInfo {
|
|
514
504
|
epoch: bigint;
|
|
515
505
|
maybeForked: boolean;
|
|
@@ -520,6 +510,16 @@ export interface ConversationDebugInfo {
|
|
|
520
510
|
cursor: Cursor[];
|
|
521
511
|
}
|
|
522
512
|
|
|
513
|
+
export interface CreateGroupOptions {
|
|
514
|
+
permissions?: GroupPermissionsOptions;
|
|
515
|
+
groupName?: string;
|
|
516
|
+
groupImageUrlSquare?: string;
|
|
517
|
+
groupDescription?: string;
|
|
518
|
+
customPermissionPolicySet?: PermissionPolicySet;
|
|
519
|
+
messageDisappearingSettings?: MessageDisappearingSettings;
|
|
520
|
+
appData?: string;
|
|
521
|
+
}
|
|
522
|
+
|
|
523
523
|
export interface DecodedMessage {
|
|
524
524
|
id: string;
|
|
525
525
|
sentAtNs: bigint;
|
|
@@ -587,13 +587,6 @@ export interface Identifier {
|
|
|
587
587
|
identifierKind: IdentifierKind;
|
|
588
588
|
}
|
|
589
589
|
|
|
590
|
-
export interface IdentityStats {
|
|
591
|
-
publishIdentityUpdate: bigint;
|
|
592
|
-
getIdentityUpdatesV2: bigint;
|
|
593
|
-
getInboxIds: bigint;
|
|
594
|
-
verifySmartContractWalletSignature: bigint;
|
|
595
|
-
}
|
|
596
|
-
|
|
597
590
|
export interface ApiStats {
|
|
598
591
|
uploadKeyPackage: bigint;
|
|
599
592
|
fetchKeyPackage: bigint;
|
|
@@ -605,6 +598,13 @@ export interface ApiStats {
|
|
|
605
598
|
subscribeWelcomes: bigint;
|
|
606
599
|
}
|
|
607
600
|
|
|
601
|
+
export interface IdentityStats {
|
|
602
|
+
publishIdentityUpdate: bigint;
|
|
603
|
+
getIdentityUpdatesV2: bigint;
|
|
604
|
+
getInboxIds: bigint;
|
|
605
|
+
verifySmartContractWalletSignature: bigint;
|
|
606
|
+
}
|
|
607
|
+
|
|
608
608
|
export interface ListMessagesOptions {
|
|
609
609
|
contentTypes?: ContentType[];
|
|
610
610
|
excludeContentTypes?: ContentType[];
|
|
@@ -1099,14 +1099,14 @@ export interface InitOutput {
|
|
|
1099
1099
|
readonly intounderlyingsink_abort: (a: number, b: any) => any;
|
|
1100
1100
|
readonly intounderlyingsink_close: (a: number) => any;
|
|
1101
1101
|
readonly intounderlyingsink_write: (a: number, b: any) => any;
|
|
1102
|
-
readonly wasm_bindgen__convert__closures_____invoke__ha66b59b58c7b6e14: (a: number, b: number) => void;
|
|
1103
|
-
readonly wasm_bindgen__closure__destroy__h43bd69f6f2f23fdf: (a: number, b: number) => void;
|
|
1104
1102
|
readonly wasm_bindgen__convert__closures_____invoke__hb3ea4cec5b2a99b4: (a: number, b: number) => void;
|
|
1105
1103
|
readonly wasm_bindgen__closure__destroy__h3dd912ac8e2d6083: (a: number, b: number) => void;
|
|
1106
|
-
readonly
|
|
1107
|
-
readonly
|
|
1104
|
+
readonly wasm_bindgen__convert__closures_____invoke__ha66b59b58c7b6e14: (a: number, b: number) => void;
|
|
1105
|
+
readonly wasm_bindgen__closure__destroy__h43bd69f6f2f23fdf: (a: number, b: number) => void;
|
|
1108
1106
|
readonly wasm_bindgen__convert__closures_____invoke__h57fa53c0b5bdcaf1: (a: number, b: number) => void;
|
|
1109
1107
|
readonly wasm_bindgen__closure__destroy__hdc965c5deda6531b: (a: number, b: number) => void;
|
|
1108
|
+
readonly wasm_bindgen__convert__closures_____invoke__h989c99c207fff0d8: (a: number, b: number, c: any) => void;
|
|
1109
|
+
readonly wasm_bindgen__closure__destroy__hab695a3e04b8e88a: (a: number, b: number) => void;
|
|
1110
1110
|
readonly wasm_bindgen__convert__closures_____invoke__h09c21df9c40da302: (a: number, b: number, c: any, d: any) => void;
|
|
1111
1111
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
1112
1112
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
package/dist/bindings_wasm.js
CHANGED
|
@@ -250,6 +250,14 @@ export function contentTypeAttachment() {
|
|
|
250
250
|
return ret;
|
|
251
251
|
}
|
|
252
252
|
|
|
253
|
+
/**
|
|
254
|
+
* @returns {ContentTypeId}
|
|
255
|
+
*/
|
|
256
|
+
export function contentTypeReadReceipt() {
|
|
257
|
+
const ret = wasm.contentTypeReadReceipt();
|
|
258
|
+
return ret;
|
|
259
|
+
}
|
|
260
|
+
|
|
253
261
|
/**
|
|
254
262
|
* @param {ReadReceipt} read_receipt
|
|
255
263
|
* @returns {EncodedContent}
|
|
@@ -265,8 +273,8 @@ export function encodeReadReceipt(read_receipt) {
|
|
|
265
273
|
/**
|
|
266
274
|
* @returns {ContentTypeId}
|
|
267
275
|
*/
|
|
268
|
-
export function
|
|
269
|
-
const ret = wasm.
|
|
276
|
+
export function contentTypeTransactionReference() {
|
|
277
|
+
const ret = wasm.contentTypeTransactionReference();
|
|
270
278
|
return ret;
|
|
271
279
|
}
|
|
272
280
|
|
|
@@ -285,8 +293,8 @@ export function encodeTransactionReference(transaction_reference) {
|
|
|
285
293
|
/**
|
|
286
294
|
* @returns {ContentTypeId}
|
|
287
295
|
*/
|
|
288
|
-
export function
|
|
289
|
-
const ret = wasm.
|
|
296
|
+
export function contentTypeMultiRemoteAttachment() {
|
|
297
|
+
const ret = wasm.contentTypeMultiRemoteAttachment();
|
|
290
298
|
return ret;
|
|
291
299
|
}
|
|
292
300
|
|
|
@@ -302,22 +310,6 @@ export function encodeMultiRemoteAttachment(multi_remote_attachment) {
|
|
|
302
310
|
return takeFromExternrefTable0(ret[0]);
|
|
303
311
|
}
|
|
304
312
|
|
|
305
|
-
/**
|
|
306
|
-
* @returns {ContentTypeId}
|
|
307
|
-
*/
|
|
308
|
-
export function contentTypeMultiRemoteAttachment() {
|
|
309
|
-
const ret = wasm.contentTypeMultiRemoteAttachment();
|
|
310
|
-
return ret;
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
/**
|
|
314
|
-
* @returns {ContentTypeId}
|
|
315
|
-
*/
|
|
316
|
-
export function contentTypeText() {
|
|
317
|
-
const ret = wasm.contentTypeText();
|
|
318
|
-
return ret;
|
|
319
|
-
}
|
|
320
|
-
|
|
321
313
|
/**
|
|
322
314
|
* @param {string} text
|
|
323
315
|
* @returns {EncodedContent}
|
|
@@ -332,6 +324,14 @@ export function encodeText(text) {
|
|
|
332
324
|
return takeFromExternrefTable0(ret[0]);
|
|
333
325
|
}
|
|
334
326
|
|
|
327
|
+
/**
|
|
328
|
+
* @returns {ContentTypeId}
|
|
329
|
+
*/
|
|
330
|
+
export function contentTypeText() {
|
|
331
|
+
const ret = wasm.contentTypeText();
|
|
332
|
+
return ret;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
335
|
/**
|
|
336
336
|
* @returns {ContentTypeId}
|
|
337
337
|
*/
|
|
@@ -362,18 +362,25 @@ export function encodeMarkdown(text) {
|
|
|
362
362
|
return takeFromExternrefTable0(ret[0]);
|
|
363
363
|
}
|
|
364
364
|
|
|
365
|
+
function _assertClass(instance, klass) {
|
|
366
|
+
if (!(instance instanceof klass)) {
|
|
367
|
+
throw new Error(`expected instance of ${klass.name}`);
|
|
368
|
+
}
|
|
369
|
+
}
|
|
365
370
|
/**
|
|
366
|
-
* @param {string}
|
|
367
|
-
* @param {
|
|
368
|
-
* @param {
|
|
371
|
+
* @param {string} host
|
|
372
|
+
* @param {string | null | undefined} gatewayHost
|
|
373
|
+
* @param {SignatureRequestHandle} signatureRequest
|
|
374
|
+
* @returns {Promise<void>}
|
|
369
375
|
*/
|
|
370
|
-
export function
|
|
371
|
-
const ptr0 = passStringToWasm0(
|
|
376
|
+
export function applySignatureRequest(host, gatewayHost, signatureRequest) {
|
|
377
|
+
const ptr0 = passStringToWasm0(host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
372
378
|
const len0 = WASM_VECTOR_LEN;
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
379
|
+
var ptr1 = isLikeNone(gatewayHost) ? 0 : passStringToWasm0(gatewayHost, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
380
|
+
var len1 = WASM_VECTOR_LEN;
|
|
381
|
+
_assertClass(signatureRequest, SignatureRequestHandle);
|
|
382
|
+
const ret = wasm.applySignatureRequest(ptr0, len0, ptr1, len1, signatureRequest.__wbg_ptr);
|
|
383
|
+
return ret;
|
|
377
384
|
}
|
|
378
385
|
|
|
379
386
|
function passArrayJsValueToWasm0(array, malloc) {
|
|
@@ -409,25 +416,18 @@ export function revokeInstallationsSignatureRequest(host, gatewayHost, recoveryI
|
|
|
409
416
|
return SignatureRequestHandle.__wrap(ret[0]);
|
|
410
417
|
}
|
|
411
418
|
|
|
412
|
-
function _assertClass(instance, klass) {
|
|
413
|
-
if (!(instance instanceof klass)) {
|
|
414
|
-
throw new Error(`expected instance of ${klass.name}`);
|
|
415
|
-
}
|
|
416
|
-
}
|
|
417
419
|
/**
|
|
418
|
-
* @param {string}
|
|
419
|
-
* @param {
|
|
420
|
-
* @param {
|
|
421
|
-
* @returns {Promise<void>}
|
|
420
|
+
* @param {string} signatureText
|
|
421
|
+
* @param {Uint8Array} signatureBytes
|
|
422
|
+
* @param {Uint8Array} publicKey
|
|
422
423
|
*/
|
|
423
|
-
export function
|
|
424
|
-
const ptr0 = passStringToWasm0(
|
|
424
|
+
export function verifySignedWithPublicKey(signatureText, signatureBytes, publicKey) {
|
|
425
|
+
const ptr0 = passStringToWasm0(signatureText, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
425
426
|
const len0 = WASM_VECTOR_LEN;
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
return ret;
|
|
427
|
+
const ret = wasm.verifySignedWithPublicKey(ptr0, len0, signatureBytes, publicKey);
|
|
428
|
+
if (ret[1]) {
|
|
429
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
430
|
+
}
|
|
431
431
|
}
|
|
432
432
|
|
|
433
433
|
/**
|
|
@@ -463,19 +463,6 @@ export function contentTypeLeaveRequest() {
|
|
|
463
463
|
return ret;
|
|
464
464
|
}
|
|
465
465
|
|
|
466
|
-
/**
|
|
467
|
-
* Encrypts an attachment for storage as a remote attachment.
|
|
468
|
-
* @param {Attachment} attachment
|
|
469
|
-
* @returns {EncryptedAttachment}
|
|
470
|
-
*/
|
|
471
|
-
export function encryptAttachment(attachment) {
|
|
472
|
-
const ret = wasm.encryptAttachment(attachment);
|
|
473
|
-
if (ret[2]) {
|
|
474
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
475
|
-
}
|
|
476
|
-
return takeFromExternrefTable0(ret[0]);
|
|
477
|
-
}
|
|
478
|
-
|
|
479
466
|
/**
|
|
480
467
|
* @param {RemoteAttachment} remote_attachment
|
|
481
468
|
* @returns {EncodedContent}
|
|
@@ -519,11 +506,16 @@ export function decryptAttachment(encryptedBytes, remoteAttachment) {
|
|
|
519
506
|
}
|
|
520
507
|
|
|
521
508
|
/**
|
|
522
|
-
*
|
|
509
|
+
* Encrypts an attachment for storage as a remote attachment.
|
|
510
|
+
* @param {Attachment} attachment
|
|
511
|
+
* @returns {EncryptedAttachment}
|
|
523
512
|
*/
|
|
524
|
-
export function
|
|
525
|
-
const ret = wasm.
|
|
526
|
-
|
|
513
|
+
export function encryptAttachment(attachment) {
|
|
514
|
+
const ret = wasm.encryptAttachment(attachment);
|
|
515
|
+
if (ret[2]) {
|
|
516
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
517
|
+
}
|
|
518
|
+
return takeFromExternrefTable0(ret[0]);
|
|
527
519
|
}
|
|
528
520
|
|
|
529
521
|
/**
|
|
@@ -538,6 +530,22 @@ export function encodeWalletSendCalls(wallet_send_calls) {
|
|
|
538
530
|
return takeFromExternrefTable0(ret[0]);
|
|
539
531
|
}
|
|
540
532
|
|
|
533
|
+
/**
|
|
534
|
+
* @returns {ContentTypeId}
|
|
535
|
+
*/
|
|
536
|
+
export function contentTypeWalletSendCalls() {
|
|
537
|
+
const ret = wasm.contentTypeWalletSendCalls();
|
|
538
|
+
return ret;
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
/**
|
|
542
|
+
* @returns {ContentTypeId}
|
|
543
|
+
*/
|
|
544
|
+
export function contentTypeIntent() {
|
|
545
|
+
const ret = wasm.contentTypeIntent();
|
|
546
|
+
return ret;
|
|
547
|
+
}
|
|
548
|
+
|
|
541
549
|
/**
|
|
542
550
|
* @param {Intent} intent
|
|
543
551
|
* @returns {EncodedContent}
|
|
@@ -553,8 +561,8 @@ export function encodeIntent(intent) {
|
|
|
553
561
|
/**
|
|
554
562
|
* @returns {ContentTypeId}
|
|
555
563
|
*/
|
|
556
|
-
export function
|
|
557
|
-
const ret = wasm.
|
|
564
|
+
export function contentTypeActions() {
|
|
565
|
+
const ret = wasm.contentTypeActions();
|
|
558
566
|
return ret;
|
|
559
567
|
}
|
|
560
568
|
|
|
@@ -573,8 +581,8 @@ export function encodeActions(actions) {
|
|
|
573
581
|
/**
|
|
574
582
|
* @returns {ContentTypeId}
|
|
575
583
|
*/
|
|
576
|
-
export function
|
|
577
|
-
const ret = wasm.
|
|
584
|
+
export function contentTypeReaction() {
|
|
585
|
+
const ret = wasm.contentTypeReaction();
|
|
578
586
|
return ret;
|
|
579
587
|
}
|
|
580
588
|
|
|
@@ -590,14 +598,6 @@ export function encodeReaction(reaction) {
|
|
|
590
598
|
return takeFromExternrefTable0(ret[0]);
|
|
591
599
|
}
|
|
592
600
|
|
|
593
|
-
/**
|
|
594
|
-
* @returns {ContentTypeId}
|
|
595
|
-
*/
|
|
596
|
-
export function contentTypeReaction() {
|
|
597
|
-
const ret = wasm.contentTypeReaction();
|
|
598
|
-
return ret;
|
|
599
|
-
}
|
|
600
|
-
|
|
601
601
|
/**
|
|
602
602
|
* @param {string} host
|
|
603
603
|
* @param {string} inboxId
|
|
@@ -696,11 +696,30 @@ export function metadataFieldName(field) {
|
|
|
696
696
|
}
|
|
697
697
|
|
|
698
698
|
/**
|
|
699
|
-
*
|
|
700
|
-
* @
|
|
699
|
+
* Check if a database file exists in OPFS.
|
|
700
|
+
* @param {string} filename
|
|
701
|
+
* @returns {Promise<boolean>}
|
|
701
702
|
*/
|
|
702
|
-
export function
|
|
703
|
-
const
|
|
703
|
+
export function opfsFileExists(filename) {
|
|
704
|
+
const ptr0 = passStringToWasm0(filename, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
705
|
+
const len0 = WASM_VECTOR_LEN;
|
|
706
|
+
const ret = wasm.opfsFileExists(ptr0, len0);
|
|
707
|
+
return ret;
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
/**
|
|
711
|
+
* Import a database from a byte array into OPFS.
|
|
712
|
+
* This will overwrite any existing database with the same name.
|
|
713
|
+
* The byte array must contain a valid SQLite database.
|
|
714
|
+
* Note: Any existing database with the same name must be closed before importing.
|
|
715
|
+
* @param {string} filename
|
|
716
|
+
* @param {Uint8Array} data
|
|
717
|
+
* @returns {Promise<void>}
|
|
718
|
+
*/
|
|
719
|
+
export function opfsImportDb(filename, data) {
|
|
720
|
+
const ptr0 = passStringToWasm0(filename, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
721
|
+
const len0 = WASM_VECTOR_LEN;
|
|
722
|
+
const ret = wasm.opfsImportDb(ptr0, len0, data);
|
|
704
723
|
return ret;
|
|
705
724
|
}
|
|
706
725
|
|
|
@@ -715,12 +734,11 @@ export function opfsListFiles() {
|
|
|
715
734
|
}
|
|
716
735
|
|
|
717
736
|
/**
|
|
718
|
-
*
|
|
719
|
-
*
|
|
720
|
-
* @returns {Promise<void>}
|
|
737
|
+
* Get the number of database files stored in OPFS.
|
|
738
|
+
* @returns {Promise<number>}
|
|
721
739
|
*/
|
|
722
|
-
export function
|
|
723
|
-
const ret = wasm.
|
|
740
|
+
export function opfsFileCount() {
|
|
741
|
+
const ret = wasm.opfsFileCount();
|
|
724
742
|
return ret;
|
|
725
743
|
}
|
|
726
744
|
|
|
@@ -735,18 +753,16 @@ export function opfsClearAll() {
|
|
|
735
753
|
}
|
|
736
754
|
|
|
737
755
|
/**
|
|
738
|
-
*
|
|
739
|
-
* This
|
|
740
|
-
* The
|
|
741
|
-
* Note: Any existing database with the same name must be closed before importing.
|
|
756
|
+
* Export a database file from OPFS as a byte array.
|
|
757
|
+
* This can be used to backup or transfer a database.
|
|
758
|
+
* Note: The database should be closed before exporting for consistency.
|
|
742
759
|
* @param {string} filename
|
|
743
|
-
* @
|
|
744
|
-
* @returns {Promise<void>}
|
|
760
|
+
* @returns {Promise<Uint8Array>}
|
|
745
761
|
*/
|
|
746
|
-
export function
|
|
762
|
+
export function opfsExportDb(filename) {
|
|
747
763
|
const ptr0 = passStringToWasm0(filename, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
748
764
|
const len0 = WASM_VECTOR_LEN;
|
|
749
|
-
const ret = wasm.
|
|
765
|
+
const ret = wasm.opfsExportDb(ptr0, len0);
|
|
750
766
|
return ret;
|
|
751
767
|
}
|
|
752
768
|
|
|
@@ -765,16 +781,12 @@ export function opfsDeleteFile(filename) {
|
|
|
765
781
|
}
|
|
766
782
|
|
|
767
783
|
/**
|
|
768
|
-
*
|
|
769
|
-
* This
|
|
770
|
-
*
|
|
771
|
-
* @param {string} filename
|
|
772
|
-
* @returns {Promise<Uint8Array>}
|
|
784
|
+
* Initialize the OPFS SQLite VFS if not already initialized.
|
|
785
|
+
* This must be called before using other OPFS functions.
|
|
786
|
+
* @returns {Promise<void>}
|
|
773
787
|
*/
|
|
774
|
-
export function
|
|
775
|
-
const
|
|
776
|
-
const len0 = WASM_VECTOR_LEN;
|
|
777
|
-
const ret = wasm.opfsExportDb(ptr0, len0);
|
|
788
|
+
export function opfsInit() {
|
|
789
|
+
const ret = wasm.opfsInit();
|
|
778
790
|
return ret;
|
|
779
791
|
}
|
|
780
792
|
|
|
@@ -787,18 +799,6 @@ export function opfsPoolCapacity() {
|
|
|
787
799
|
return ret;
|
|
788
800
|
}
|
|
789
801
|
|
|
790
|
-
/**
|
|
791
|
-
* Check if a database file exists in OPFS.
|
|
792
|
-
* @param {string} filename
|
|
793
|
-
* @returns {Promise<boolean>}
|
|
794
|
-
*/
|
|
795
|
-
export function opfsFileExists(filename) {
|
|
796
|
-
const ptr0 = passStringToWasm0(filename, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
797
|
-
const len0 = WASM_VECTOR_LEN;
|
|
798
|
-
const ret = wasm.opfsFileExists(ptr0, len0);
|
|
799
|
-
return ret;
|
|
800
|
-
}
|
|
801
|
-
|
|
802
802
|
/**
|
|
803
803
|
* Entry point invoked by JavaScript in a worker.
|
|
804
804
|
* @param {number} ptr
|
|
@@ -810,22 +810,22 @@ export function task_worker_entry_point(ptr) {
|
|
|
810
810
|
}
|
|
811
811
|
}
|
|
812
812
|
|
|
813
|
-
function wasm_bindgen__convert__closures_____invoke__ha66b59b58c7b6e14(arg0, arg1) {
|
|
814
|
-
wasm.wasm_bindgen__convert__closures_____invoke__ha66b59b58c7b6e14(arg0, arg1);
|
|
815
|
-
}
|
|
816
|
-
|
|
817
813
|
function wasm_bindgen__convert__closures_____invoke__hb3ea4cec5b2a99b4(arg0, arg1) {
|
|
818
814
|
wasm.wasm_bindgen__convert__closures_____invoke__hb3ea4cec5b2a99b4(arg0, arg1);
|
|
819
815
|
}
|
|
820
816
|
|
|
821
|
-
function
|
|
822
|
-
wasm.
|
|
817
|
+
function wasm_bindgen__convert__closures_____invoke__ha66b59b58c7b6e14(arg0, arg1) {
|
|
818
|
+
wasm.wasm_bindgen__convert__closures_____invoke__ha66b59b58c7b6e14(arg0, arg1);
|
|
823
819
|
}
|
|
824
820
|
|
|
825
821
|
function wasm_bindgen__convert__closures_____invoke__h57fa53c0b5bdcaf1(arg0, arg1) {
|
|
826
822
|
wasm.wasm_bindgen__convert__closures_____invoke__h57fa53c0b5bdcaf1(arg0, arg1);
|
|
827
823
|
}
|
|
828
824
|
|
|
825
|
+
function wasm_bindgen__convert__closures_____invoke__h989c99c207fff0d8(arg0, arg1, arg2) {
|
|
826
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h989c99c207fff0d8(arg0, arg1, arg2);
|
|
827
|
+
}
|
|
828
|
+
|
|
829
829
|
function wasm_bindgen__convert__closures_____invoke__h09c21df9c40da302(arg0, arg1, arg2, arg3) {
|
|
830
830
|
wasm.wasm_bindgen__convert__closures_____invoke__h09c21df9c40da302(arg0, arg1, arg2, arg3);
|
|
831
831
|
}
|
|
@@ -3438,29 +3438,29 @@ function __wbg_get_imports() {
|
|
|
3438
3438
|
const ret = Date.now();
|
|
3439
3439
|
return ret;
|
|
3440
3440
|
};
|
|
3441
|
-
imports.wbg.
|
|
3441
|
+
imports.wbg.__wbg_on_auth_required_7d8ad32bf31616ce = function() { return handleError(function (arg0) {
|
|
3442
3442
|
const ret = arg0.on_auth_required();
|
|
3443
3443
|
return ret;
|
|
3444
3444
|
}, arguments) };
|
|
3445
|
-
imports.wbg.
|
|
3445
|
+
imports.wbg.__wbg_on_close_2809fde6272ce954 = function(arg0) {
|
|
3446
3446
|
arg0.on_close();
|
|
3447
3447
|
};
|
|
3448
|
-
imports.wbg.
|
|
3448
|
+
imports.wbg.__wbg_on_consent_update_8a507fdb5f28fce0 = function(arg0, arg1) {
|
|
3449
3449
|
arg0.on_consent_update(arg1);
|
|
3450
3450
|
};
|
|
3451
|
-
imports.wbg.
|
|
3451
|
+
imports.wbg.__wbg_on_conversation_b1131987a3482b96 = function(arg0, arg1) {
|
|
3452
3452
|
arg0.on_conversation(Conversation.__wrap(arg1));
|
|
3453
3453
|
};
|
|
3454
|
-
imports.wbg.
|
|
3454
|
+
imports.wbg.__wbg_on_error_faa55d955f4a454b = function(arg0, arg1) {
|
|
3455
3455
|
arg0.on_error(arg1);
|
|
3456
3456
|
};
|
|
3457
|
-
imports.wbg.
|
|
3457
|
+
imports.wbg.__wbg_on_message_05eb1bd092e8a598 = function(arg0, arg1) {
|
|
3458
3458
|
arg0.on_message(arg1);
|
|
3459
3459
|
};
|
|
3460
|
-
imports.wbg.
|
|
3460
|
+
imports.wbg.__wbg_on_message_deleted_79f056ddce7def66 = function(arg0, arg1) {
|
|
3461
3461
|
arg0.on_message_deleted(arg1);
|
|
3462
3462
|
};
|
|
3463
|
-
imports.wbg.
|
|
3463
|
+
imports.wbg.__wbg_on_user_preference_update_a7a3b0d618791565 = function(arg0, arg1, arg2) {
|
|
3464
3464
|
var v0 = getArrayJsValueFromWasm0(arg1, arg2).slice();
|
|
3465
3465
|
wasm.__wbindgen_free(arg1, arg2 * 4, 4);
|
|
3466
3466
|
arg0.on_user_preference_update(v0);
|
|
@@ -3736,11 +3736,6 @@ function __wbg_get_imports() {
|
|
|
3736
3736
|
const ret = v0;
|
|
3737
3737
|
return ret;
|
|
3738
3738
|
};
|
|
3739
|
-
imports.wbg.__wbindgen_cast_274f68c1914e222d = function(arg0, arg1) {
|
|
3740
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 7196, function: Function { arguments: [], shim_idx: 7197, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3741
|
-
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hdc965c5deda6531b, wasm_bindgen__convert__closures_____invoke__h57fa53c0b5bdcaf1);
|
|
3742
|
-
return ret;
|
|
3743
|
-
};
|
|
3744
3739
|
imports.wbg.__wbindgen_cast_4625c577ab2ec9ee = function(arg0) {
|
|
3745
3740
|
// Cast intrinsic for `U64 -> Externref`.
|
|
3746
3741
|
const ret = BigInt.asUintN(64, arg0);
|
|
@@ -3753,6 +3748,16 @@ function __wbg_get_imports() {
|
|
|
3753
3748
|
const ret = v0;
|
|
3754
3749
|
return ret;
|
|
3755
3750
|
};
|
|
3751
|
+
imports.wbg.__wbindgen_cast_6b81e4dc98c9d0a4 = function(arg0, arg1) {
|
|
3752
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 7345, function: Function { arguments: [], shim_idx: 7346, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3753
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h43bd69f6f2f23fdf, wasm_bindgen__convert__closures_____invoke__ha66b59b58c7b6e14);
|
|
3754
|
+
return ret;
|
|
3755
|
+
};
|
|
3756
|
+
imports.wbg.__wbindgen_cast_81e78fef84b94e03 = function(arg0, arg1) {
|
|
3757
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 6992, function: Function { arguments: [], shim_idx: 6993, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3758
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h3dd912ac8e2d6083, wasm_bindgen__convert__closures_____invoke__hb3ea4cec5b2a99b4);
|
|
3759
|
+
return ret;
|
|
3760
|
+
};
|
|
3756
3761
|
imports.wbg.__wbindgen_cast_8e37b4ad2f2ba653 = function(arg0, arg1) {
|
|
3757
3762
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
3758
3763
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
@@ -3765,11 +3770,6 @@ function __wbg_get_imports() {
|
|
|
3765
3770
|
const ret = arg0;
|
|
3766
3771
|
return ret;
|
|
3767
3772
|
};
|
|
3768
|
-
imports.wbg.__wbindgen_cast_c05980acde238029 = function(arg0, arg1) {
|
|
3769
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 7397, function: Function { arguments: [Externref], shim_idx: 7398, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3770
|
-
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hab695a3e04b8e88a, wasm_bindgen__convert__closures_____invoke__h989c99c207fff0d8);
|
|
3771
|
-
return ret;
|
|
3772
|
-
};
|
|
3773
3773
|
imports.wbg.__wbindgen_cast_cb9088102bce6b30 = function(arg0, arg1) {
|
|
3774
3774
|
// Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
|
|
3775
3775
|
const ret = getArrayU8FromWasm0(arg0, arg1);
|
|
@@ -3787,9 +3787,14 @@ function __wbg_get_imports() {
|
|
|
3787
3787
|
const ret = v0;
|
|
3788
3788
|
return ret;
|
|
3789
3789
|
};
|
|
3790
|
-
imports.wbg.
|
|
3791
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
3792
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
3790
|
+
imports.wbg.__wbindgen_cast_e29199c514951fd4 = function(arg0, arg1) {
|
|
3791
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 7377, function: Function { arguments: [Externref], shim_idx: 7378, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3792
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hab695a3e04b8e88a, wasm_bindgen__convert__closures_____invoke__h989c99c207fff0d8);
|
|
3793
|
+
return ret;
|
|
3794
|
+
};
|
|
3795
|
+
imports.wbg.__wbindgen_cast_ebdaa6f471b1bf9f = function(arg0, arg1) {
|
|
3796
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 7176, function: Function { arguments: [], shim_idx: 7177, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3797
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hdc965c5deda6531b, wasm_bindgen__convert__closures_____invoke__h57fa53c0b5bdcaf1);
|
|
3793
3798
|
return ret;
|
|
3794
3799
|
};
|
|
3795
3800
|
imports.wbg.__wbindgen_cast_f20a506f31063fd0 = function(arg0, arg1) {
|
|
@@ -3799,11 +3804,6 @@ function __wbg_get_imports() {
|
|
|
3799
3804
|
const ret = v0;
|
|
3800
3805
|
return ret;
|
|
3801
3806
|
};
|
|
3802
|
-
imports.wbg.__wbindgen_cast_f3b13c9e4c41522a = function(arg0, arg1) {
|
|
3803
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 7365, function: Function { arguments: [], shim_idx: 7366, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3804
|
-
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h43bd69f6f2f23fdf, wasm_bindgen__convert__closures_____invoke__ha66b59b58c7b6e14);
|
|
3805
|
-
return ret;
|
|
3806
|
-
};
|
|
3807
3807
|
imports.wbg.__wbindgen_init_externref_table = function() {
|
|
3808
3808
|
const table = wasm.__wbindgen_externrefs;
|
|
3809
3809
|
const offset = table.grow(4);
|
|
Binary file
|
|
@@ -223,14 +223,14 @@ export const __wbg_intounderlyingsink_free: (a: number, b: number) => void;
|
|
|
223
223
|
export const intounderlyingsink_abort: (a: number, b: any) => any;
|
|
224
224
|
export const intounderlyingsink_close: (a: number) => any;
|
|
225
225
|
export const intounderlyingsink_write: (a: number, b: any) => any;
|
|
226
|
-
export const wasm_bindgen__convert__closures_____invoke__ha66b59b58c7b6e14: (a: number, b: number) => void;
|
|
227
|
-
export const wasm_bindgen__closure__destroy__h43bd69f6f2f23fdf: (a: number, b: number) => void;
|
|
228
226
|
export const wasm_bindgen__convert__closures_____invoke__hb3ea4cec5b2a99b4: (a: number, b: number) => void;
|
|
229
227
|
export const wasm_bindgen__closure__destroy__h3dd912ac8e2d6083: (a: number, b: number) => void;
|
|
230
|
-
export const
|
|
231
|
-
export const
|
|
228
|
+
export const wasm_bindgen__convert__closures_____invoke__ha66b59b58c7b6e14: (a: number, b: number) => void;
|
|
229
|
+
export const wasm_bindgen__closure__destroy__h43bd69f6f2f23fdf: (a: number, b: number) => void;
|
|
232
230
|
export const wasm_bindgen__convert__closures_____invoke__h57fa53c0b5bdcaf1: (a: number, b: number) => void;
|
|
233
231
|
export const wasm_bindgen__closure__destroy__hdc965c5deda6531b: (a: number, b: number) => void;
|
|
232
|
+
export const wasm_bindgen__convert__closures_____invoke__h989c99c207fff0d8: (a: number, b: number, c: any) => void;
|
|
233
|
+
export const wasm_bindgen__closure__destroy__hab695a3e04b8e88a: (a: number, b: number) => void;
|
|
234
234
|
export const wasm_bindgen__convert__closures_____invoke__h09c21df9c40da302: (a: number, b: number, c: any, d: any) => void;
|
|
235
235
|
export const __wbindgen_malloc: (a: number, b: number) => number;
|
|
236
236
|
export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|