@xmtp/wasm-bindings 1.0.0-rc2 → 1.0.0-rc3
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 +148 -152
- package/dist/bindings_wasm.js +86 -108
- package/dist/bindings_wasm_bg.wasm +0 -0
- package/dist/bindings_wasm_bg.wasm.d.ts +143 -145
- package/package.json +1 -1
package/dist/bindings_wasm.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
+
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>;
|
|
4
|
+
export function verifySignedWithPublicKey(signature_text: string, signature_bytes: Uint8Array, public_key: Uint8Array): void;
|
|
3
5
|
export function encodeMultiRemoteAttachment(multiRemoteAttachment: MultiRemoteAttachment): Uint8Array;
|
|
4
6
|
export function decodeMultiRemoteAttachment(bytes: Uint8Array): MultiRemoteAttachment;
|
|
5
7
|
export function encodeReaction(reaction: Reaction): Uint8Array;
|
|
6
8
|
export function decodeReaction(bytes: Uint8Array): Reaction;
|
|
7
9
|
export function getInboxIdForIdentifier(host: string, accountIdentifier: Identifier): Promise<string | undefined>;
|
|
8
10
|
export function generateInboxId(accountIdentifier: Identifier): string;
|
|
9
|
-
export function createClient(host: string, inbox_id: string, account_identifier: Identifier, db_path?: string | null, encryption_key?: Uint8Array | null, history_sync_url?: string | null, log_options?: LogOptions | null): Promise<Client>;
|
|
10
|
-
export function verifySignedWithPublicKey(signature_text: string, signature_bytes: Uint8Array, public_key: Uint8Array): void;
|
|
11
11
|
export enum ConsentEntityType {
|
|
12
12
|
GroupId = 0,
|
|
13
13
|
InboxId = 1,
|
|
@@ -117,8 +117,6 @@ export type UserPreference = { type: "Consent"; consent: Consent } | { type: "Hm
|
|
|
117
117
|
export class Client {
|
|
118
118
|
private constructor();
|
|
119
119
|
free(): void;
|
|
120
|
-
setConsentStates(records: Consent[]): Promise<void>;
|
|
121
|
-
getConsentState(entity_type: ConsentEntityType, entity: string): Promise<ConsentState>;
|
|
122
120
|
/**
|
|
123
121
|
*
|
|
124
122
|
* * Get the client's inbox state.
|
|
@@ -149,6 +147,8 @@ export class Client {
|
|
|
149
147
|
applySignatureRequests(): Promise<void>;
|
|
150
148
|
signWithInstallationKey(signature_text: string): Uint8Array;
|
|
151
149
|
verifySignedWithInstallationKey(signature_text: string, signature_bytes: Uint8Array): void;
|
|
150
|
+
setConsentStates(records: Consent[]): Promise<void>;
|
|
151
|
+
getConsentState(entity_type: ConsentEntityType, entity: string): Promise<ConsentState>;
|
|
152
152
|
readonly accountIdentifier: Identifier;
|
|
153
153
|
readonly inboxId: string;
|
|
154
154
|
readonly isRegistered: boolean;
|
|
@@ -315,11 +315,9 @@ export class HmacKey {
|
|
|
315
315
|
}
|
|
316
316
|
export class Identifier {
|
|
317
317
|
free(): void;
|
|
318
|
-
constructor(identifier: string, identifierKind: IdentifierKind
|
|
318
|
+
constructor(identifier: string, identifierKind: IdentifierKind);
|
|
319
319
|
identifier: string;
|
|
320
320
|
identifierKind: IdentifierKind;
|
|
321
|
-
get relyingParty(): string | undefined;
|
|
322
|
-
set relyingParty(value: string | null | undefined);
|
|
323
321
|
}
|
|
324
322
|
export class InboxState {
|
|
325
323
|
free(): void;
|
|
@@ -503,148 +501,6 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
|
|
|
503
501
|
|
|
504
502
|
export interface InitOutput {
|
|
505
503
|
readonly memory: WebAssembly.Memory;
|
|
506
|
-
readonly __wbg_remoteattachmentinfo_free: (a: number, b: number) => void;
|
|
507
|
-
readonly __wbg_get_remoteattachmentinfo_secret: (a: number) => any;
|
|
508
|
-
readonly __wbg_set_remoteattachmentinfo_secret: (a: number, b: any) => void;
|
|
509
|
-
readonly __wbg_get_remoteattachmentinfo_contentDigest: (a: number) => [number, number];
|
|
510
|
-
readonly __wbg_set_remoteattachmentinfo_contentDigest: (a: number, b: number, c: number) => void;
|
|
511
|
-
readonly __wbg_get_remoteattachmentinfo_nonce: (a: number) => any;
|
|
512
|
-
readonly __wbg_set_remoteattachmentinfo_nonce: (a: number, b: any) => void;
|
|
513
|
-
readonly __wbg_get_remoteattachmentinfo_scheme: (a: number) => [number, number];
|
|
514
|
-
readonly __wbg_set_remoteattachmentinfo_scheme: (a: number, b: number, c: number) => void;
|
|
515
|
-
readonly __wbg_get_remoteattachmentinfo_url: (a: number) => [number, number];
|
|
516
|
-
readonly __wbg_set_remoteattachmentinfo_url: (a: number, b: number, c: number) => void;
|
|
517
|
-
readonly __wbg_get_remoteattachmentinfo_salt: (a: number) => any;
|
|
518
|
-
readonly __wbg_set_remoteattachmentinfo_salt: (a: number, b: any) => void;
|
|
519
|
-
readonly __wbg_get_remoteattachmentinfo_contentLength: (a: number) => number;
|
|
520
|
-
readonly __wbg_set_remoteattachmentinfo_contentLength: (a: number, b: number) => void;
|
|
521
|
-
readonly __wbg_get_remoteattachmentinfo_filename: (a: number) => [number, number];
|
|
522
|
-
readonly __wbg_set_remoteattachmentinfo_filename: (a: number, b: number, c: number) => void;
|
|
523
|
-
readonly remoteattachmentinfo_new: (a: any, b: number, c: number, d: any, e: number, f: number, g: number, h: number, i: any, j: number, k: number, l: number) => number;
|
|
524
|
-
readonly __wbg_multiremoteattachment_free: (a: number, b: number) => void;
|
|
525
|
-
readonly __wbg_get_multiremoteattachment_attachments: (a: number) => [number, number];
|
|
526
|
-
readonly __wbg_set_multiremoteattachment_attachments: (a: number, b: number, c: number) => void;
|
|
527
|
-
readonly multiremoteattachment_new: (a: number, b: number) => number;
|
|
528
|
-
readonly encodeMultiRemoteAttachment: (a: number) => [number, number, number];
|
|
529
|
-
readonly decodeMultiRemoteAttachment: (a: any) => [number, number, number];
|
|
530
|
-
readonly __wbg_reaction_free: (a: number, b: number) => void;
|
|
531
|
-
readonly __wbg_get_reaction_referenceInboxId: (a: number) => [number, number];
|
|
532
|
-
readonly __wbg_set_reaction_referenceInboxId: (a: number, b: number, c: number) => void;
|
|
533
|
-
readonly __wbg_get_reaction_action: (a: number) => number;
|
|
534
|
-
readonly __wbg_set_reaction_action: (a: number, b: number) => void;
|
|
535
|
-
readonly __wbg_get_reaction_content: (a: number) => [number, number];
|
|
536
|
-
readonly __wbg_set_reaction_content: (a: number, b: number, c: number) => void;
|
|
537
|
-
readonly __wbg_get_reaction_schema: (a: number) => number;
|
|
538
|
-
readonly __wbg_set_reaction_schema: (a: number, b: number) => void;
|
|
539
|
-
readonly reaction_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
540
|
-
readonly encodeReaction: (a: number) => [number, number, number];
|
|
541
|
-
readonly decodeReaction: (a: any) => [number, number, number];
|
|
542
|
-
readonly __wbg_groupmetadata_free: (a: number, b: number) => void;
|
|
543
|
-
readonly groupmetadata_creatorInboxId: (a: number) => [number, number];
|
|
544
|
-
readonly groupmetadata_conversationType: (a: number) => [number, number];
|
|
545
|
-
readonly __wbg_groupmember_free: (a: number, b: number) => void;
|
|
546
|
-
readonly __wbg_get_groupmember_inboxId: (a: number) => [number, number];
|
|
547
|
-
readonly __wbg_set_groupmember_inboxId: (a: number, b: number, c: number) => void;
|
|
548
|
-
readonly __wbg_get_groupmember_accountIdentifiers: (a: number) => [number, number];
|
|
549
|
-
readonly __wbg_set_groupmember_accountIdentifiers: (a: number, b: number, c: number) => void;
|
|
550
|
-
readonly __wbg_get_groupmember_installationIds: (a: number) => [number, number];
|
|
551
|
-
readonly __wbg_set_groupmember_installationIds: (a: number, b: number, c: number) => void;
|
|
552
|
-
readonly __wbg_get_groupmember_permissionLevel: (a: number) => number;
|
|
553
|
-
readonly __wbg_set_groupmember_permissionLevel: (a: number, b: number) => void;
|
|
554
|
-
readonly __wbg_get_groupmember_consentState: (a: number) => number;
|
|
555
|
-
readonly __wbg_set_groupmember_consentState: (a: number, b: number) => void;
|
|
556
|
-
readonly groupmember_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
557
|
-
readonly __wbg_conversation_free: (a: number, b: number) => void;
|
|
558
|
-
readonly conversation_id: (a: number) => [number, number];
|
|
559
|
-
readonly conversation_send: (a: number, b: number) => any;
|
|
560
|
-
readonly conversation_sendOptimistic: (a: number, b: number) => [number, number, number, number];
|
|
561
|
-
readonly conversation_publishMessages: (a: number) => any;
|
|
562
|
-
readonly conversation_sync: (a: number) => any;
|
|
563
|
-
readonly conversation_findMessages: (a: number, b: number) => any;
|
|
564
|
-
readonly conversation_findMessagesWithReactions: (a: number, b: number) => any;
|
|
565
|
-
readonly conversation_listMembers: (a: number) => any;
|
|
566
|
-
readonly conversation_adminList: (a: number) => [number, number, number, number];
|
|
567
|
-
readonly conversation_superAdminList: (a: number) => [number, number, number, number];
|
|
568
|
-
readonly conversation_isAdmin: (a: number, b: number, c: number) => [number, number, number];
|
|
569
|
-
readonly conversation_isSuperAdmin: (a: number, b: number, c: number) => [number, number, number];
|
|
570
|
-
readonly conversation_addMembers: (a: number, b: number, c: number) => any;
|
|
571
|
-
readonly conversation_addAdmin: (a: number, b: number, c: number) => any;
|
|
572
|
-
readonly conversation_removeAdmin: (a: number, b: number, c: number) => any;
|
|
573
|
-
readonly conversation_addSuperAdmin: (a: number, b: number, c: number) => any;
|
|
574
|
-
readonly conversation_removeSuperAdmin: (a: number, b: number, c: number) => any;
|
|
575
|
-
readonly conversation_groupPermissions: (a: number) => [number, number, number];
|
|
576
|
-
readonly conversation_addMembersByInboxId: (a: number, b: number, c: number) => any;
|
|
577
|
-
readonly conversation_removeMembers: (a: number, b: number, c: number) => any;
|
|
578
|
-
readonly conversation_removeMembersByInboxId: (a: number, b: number, c: number) => any;
|
|
579
|
-
readonly conversation_updateGroupName: (a: number, b: number, c: number) => any;
|
|
580
|
-
readonly conversation_groupName: (a: number) => [number, number, number, number];
|
|
581
|
-
readonly conversation_updateGroupImageUrlSquare: (a: number, b: number, c: number) => any;
|
|
582
|
-
readonly conversation_groupImageUrlSquare: (a: number) => [number, number, number, number];
|
|
583
|
-
readonly conversation_updateGroupDescription: (a: number, b: number, c: number) => any;
|
|
584
|
-
readonly conversation_groupDescription: (a: number) => [number, number, number, number];
|
|
585
|
-
readonly conversation_stream: (a: number, b: any) => [number, number, number];
|
|
586
|
-
readonly conversation_createdAtNs: (a: number) => bigint;
|
|
587
|
-
readonly conversation_isActive: (a: number) => [number, number, number];
|
|
588
|
-
readonly conversation_pausedForVersion: (a: number) => [number, number, number, number];
|
|
589
|
-
readonly conversation_addedByInboxId: (a: number) => [number, number, number, number];
|
|
590
|
-
readonly conversation_groupMetadata: (a: number) => any;
|
|
591
|
-
readonly conversation_dmPeerInboxId: (a: number) => [number, number, number, number];
|
|
592
|
-
readonly conversation_updatePermissionPolicy: (a: number, b: number, c: number, d: number) => any;
|
|
593
|
-
readonly conversation_updateMessageDisappearingSettings: (a: number, b: number) => any;
|
|
594
|
-
readonly conversation_removeMessageDisappearingSettings: (a: number) => any;
|
|
595
|
-
readonly conversation_messageDisappearingSettings: (a: number) => [number, number, number];
|
|
596
|
-
readonly conversation_isMessageDisappearingEnabled: (a: number) => [number, number, number];
|
|
597
|
-
readonly conversation_getHmacKeys: (a: number) => [number, number, number];
|
|
598
|
-
readonly getInboxIdForIdentifier: (a: number, b: number, c: number) => any;
|
|
599
|
-
readonly generateInboxId: (a: number) => [number, number, number, number];
|
|
600
|
-
readonly __wbg_set_reaction_reference: (a: number, b: number, c: number) => void;
|
|
601
|
-
readonly __wbg_get_reaction_reference: (a: number) => [number, number];
|
|
602
|
-
readonly __wbg_streamcloser_free: (a: number, b: number) => void;
|
|
603
|
-
readonly streamcloser_end: (a: number) => void;
|
|
604
|
-
readonly streamcloser_endAndWait: (a: number) => any;
|
|
605
|
-
readonly streamcloser_waitForReady: (a: number) => any;
|
|
606
|
-
readonly streamcloser_isClosed: (a: number) => number;
|
|
607
|
-
readonly __wbg_consent_free: (a: number, b: number) => void;
|
|
608
|
-
readonly __wbg_get_consent_entityType: (a: number) => number;
|
|
609
|
-
readonly __wbg_set_consent_entityType: (a: number, b: number) => void;
|
|
610
|
-
readonly __wbg_get_consent_state: (a: number) => number;
|
|
611
|
-
readonly __wbg_set_consent_state: (a: number, b: number) => void;
|
|
612
|
-
readonly __wbg_get_consent_entity: (a: number) => [number, number];
|
|
613
|
-
readonly __wbg_set_consent_entity: (a: number, b: number, c: number) => void;
|
|
614
|
-
readonly consent_new: (a: number, b: number, c: number, d: number) => number;
|
|
615
|
-
readonly client_setConsentStates: (a: number, b: number, c: number) => any;
|
|
616
|
-
readonly client_getConsentState: (a: number, b: number, c: number, d: number) => any;
|
|
617
|
-
readonly conversation_consentState: (a: number) => [number, number, number];
|
|
618
|
-
readonly conversation_updateConsentState: (a: number, b: number) => [number, number];
|
|
619
|
-
readonly __wbg_identifier_free: (a: number, b: number) => void;
|
|
620
|
-
readonly __wbg_get_identifier_identifierKind: (a: number) => number;
|
|
621
|
-
readonly __wbg_set_identifier_identifierKind: (a: number, b: number) => void;
|
|
622
|
-
readonly __wbg_get_identifier_relyingParty: (a: number) => [number, number];
|
|
623
|
-
readonly __wbg_set_identifier_relyingParty: (a: number, b: number, c: number) => void;
|
|
624
|
-
readonly identifier_new: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
625
|
-
readonly __wbg_permissionpolicyset_free: (a: number, b: number) => void;
|
|
626
|
-
readonly __wbg_get_permissionpolicyset_addMemberPolicy: (a: number) => number;
|
|
627
|
-
readonly __wbg_set_permissionpolicyset_addMemberPolicy: (a: number, b: number) => void;
|
|
628
|
-
readonly __wbg_get_permissionpolicyset_removeMemberPolicy: (a: number) => number;
|
|
629
|
-
readonly __wbg_set_permissionpolicyset_removeMemberPolicy: (a: number, b: number) => void;
|
|
630
|
-
readonly __wbg_get_permissionpolicyset_addAdminPolicy: (a: number) => number;
|
|
631
|
-
readonly __wbg_set_permissionpolicyset_addAdminPolicy: (a: number, b: number) => void;
|
|
632
|
-
readonly __wbg_get_permissionpolicyset_removeAdminPolicy: (a: number) => number;
|
|
633
|
-
readonly __wbg_set_permissionpolicyset_removeAdminPolicy: (a: number, b: number) => void;
|
|
634
|
-
readonly __wbg_get_permissionpolicyset_updateGroupNamePolicy: (a: number) => number;
|
|
635
|
-
readonly __wbg_set_permissionpolicyset_updateGroupNamePolicy: (a: number, b: number) => void;
|
|
636
|
-
readonly __wbg_get_permissionpolicyset_updateGroupDescriptionPolicy: (a: number) => number;
|
|
637
|
-
readonly __wbg_set_permissionpolicyset_updateGroupDescriptionPolicy: (a: number, b: number) => void;
|
|
638
|
-
readonly __wbg_get_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number) => number;
|
|
639
|
-
readonly __wbg_set_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number, b: number) => void;
|
|
640
|
-
readonly __wbg_get_permissionpolicyset_updateMessageDisappearingPolicy: (a: number) => number;
|
|
641
|
-
readonly __wbg_set_permissionpolicyset_updateMessageDisappearingPolicy: (a: number, b: number) => void;
|
|
642
|
-
readonly permissionpolicyset_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
643
|
-
readonly __wbg_grouppermissions_free: (a: number, b: number) => void;
|
|
644
|
-
readonly grouppermissions_policyType: (a: number) => [number, number, number];
|
|
645
|
-
readonly grouppermissions_policySet: (a: number) => [number, number, number];
|
|
646
|
-
readonly __wbg_set_identifier_identifier: (a: number, b: number, c: number) => void;
|
|
647
|
-
readonly __wbg_get_identifier_identifier: (a: number) => [number, number];
|
|
648
504
|
readonly __wbg_listconversationsoptions_free: (a: number, b: number) => void;
|
|
649
505
|
readonly __wbg_get_listconversationsoptions_consentStates: (a: number) => [number, number];
|
|
650
506
|
readonly __wbg_set_listconversationsoptions_consentStates: (a: number, b: number, c: number) => void;
|
|
@@ -789,6 +645,11 @@ export interface InitOutput {
|
|
|
789
645
|
readonly __wbg_get_listmessagesoptions_limit: (a: number) => [number, bigint];
|
|
790
646
|
readonly __wbg_set_inboxstate_inboxId: (a: number, b: number, c: number) => void;
|
|
791
647
|
readonly __wbg_get_inboxstate_inboxId: (a: number) => [number, number];
|
|
648
|
+
readonly __wbg_streamcloser_free: (a: number, b: number) => void;
|
|
649
|
+
readonly streamcloser_end: (a: number) => void;
|
|
650
|
+
readonly streamcloser_endAndWait: (a: number) => any;
|
|
651
|
+
readonly streamcloser_waitForReady: (a: number) => any;
|
|
652
|
+
readonly streamcloser_isClosed: (a: number) => number;
|
|
792
653
|
readonly __wbg_client_free: (a: number, b: number) => void;
|
|
793
654
|
readonly __wbg_logoptions_free: (a: number, b: number) => void;
|
|
794
655
|
readonly __wbg_get_logoptions_structured: (a: number) => number;
|
|
@@ -823,6 +684,141 @@ export interface InitOutput {
|
|
|
823
684
|
readonly client_applySignatureRequests: (a: number) => any;
|
|
824
685
|
readonly client_signWithInstallationKey: (a: number, b: number, c: number) => [number, number, number];
|
|
825
686
|
readonly client_verifySignedWithInstallationKey: (a: number, b: number, c: number, d: any) => [number, number];
|
|
687
|
+
readonly __wbg_remoteattachmentinfo_free: (a: number, b: number) => void;
|
|
688
|
+
readonly __wbg_get_remoteattachmentinfo_secret: (a: number) => any;
|
|
689
|
+
readonly __wbg_set_remoteattachmentinfo_secret: (a: number, b: any) => void;
|
|
690
|
+
readonly __wbg_get_remoteattachmentinfo_contentDigest: (a: number) => [number, number];
|
|
691
|
+
readonly __wbg_set_remoteattachmentinfo_contentDigest: (a: number, b: number, c: number) => void;
|
|
692
|
+
readonly __wbg_get_remoteattachmentinfo_nonce: (a: number) => any;
|
|
693
|
+
readonly __wbg_set_remoteattachmentinfo_nonce: (a: number, b: any) => void;
|
|
694
|
+
readonly __wbg_get_remoteattachmentinfo_scheme: (a: number) => [number, number];
|
|
695
|
+
readonly __wbg_set_remoteattachmentinfo_scheme: (a: number, b: number, c: number) => void;
|
|
696
|
+
readonly __wbg_get_remoteattachmentinfo_url: (a: number) => [number, number];
|
|
697
|
+
readonly __wbg_set_remoteattachmentinfo_url: (a: number, b: number, c: number) => void;
|
|
698
|
+
readonly __wbg_get_remoteattachmentinfo_salt: (a: number) => any;
|
|
699
|
+
readonly __wbg_set_remoteattachmentinfo_salt: (a: number, b: any) => void;
|
|
700
|
+
readonly __wbg_get_remoteattachmentinfo_contentLength: (a: number) => number;
|
|
701
|
+
readonly __wbg_set_remoteattachmentinfo_contentLength: (a: number, b: number) => void;
|
|
702
|
+
readonly __wbg_get_remoteattachmentinfo_filename: (a: number) => [number, number];
|
|
703
|
+
readonly __wbg_set_remoteattachmentinfo_filename: (a: number, b: number, c: number) => void;
|
|
704
|
+
readonly remoteattachmentinfo_new: (a: any, b: number, c: number, d: any, e: number, f: number, g: number, h: number, i: any, j: number, k: number, l: number) => number;
|
|
705
|
+
readonly __wbg_multiremoteattachment_free: (a: number, b: number) => void;
|
|
706
|
+
readonly __wbg_get_multiremoteattachment_attachments: (a: number) => [number, number];
|
|
707
|
+
readonly __wbg_set_multiremoteattachment_attachments: (a: number, b: number, c: number) => void;
|
|
708
|
+
readonly multiremoteattachment_new: (a: number, b: number) => number;
|
|
709
|
+
readonly encodeMultiRemoteAttachment: (a: number) => [number, number, number];
|
|
710
|
+
readonly decodeMultiRemoteAttachment: (a: any) => [number, number, number];
|
|
711
|
+
readonly __wbg_reaction_free: (a: number, b: number) => void;
|
|
712
|
+
readonly __wbg_get_reaction_referenceInboxId: (a: number) => [number, number];
|
|
713
|
+
readonly __wbg_set_reaction_referenceInboxId: (a: number, b: number, c: number) => void;
|
|
714
|
+
readonly __wbg_get_reaction_action: (a: number) => number;
|
|
715
|
+
readonly __wbg_set_reaction_action: (a: number, b: number) => void;
|
|
716
|
+
readonly __wbg_get_reaction_content: (a: number) => [number, number];
|
|
717
|
+
readonly __wbg_set_reaction_content: (a: number, b: number, c: number) => void;
|
|
718
|
+
readonly __wbg_get_reaction_schema: (a: number) => number;
|
|
719
|
+
readonly __wbg_set_reaction_schema: (a: number, b: number) => void;
|
|
720
|
+
readonly reaction_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
721
|
+
readonly encodeReaction: (a: number) => [number, number, number];
|
|
722
|
+
readonly decodeReaction: (a: any) => [number, number, number];
|
|
723
|
+
readonly __wbg_groupmetadata_free: (a: number, b: number) => void;
|
|
724
|
+
readonly groupmetadata_creatorInboxId: (a: number) => [number, number];
|
|
725
|
+
readonly groupmetadata_conversationType: (a: number) => [number, number];
|
|
726
|
+
readonly __wbg_groupmember_free: (a: number, b: number) => void;
|
|
727
|
+
readonly __wbg_get_groupmember_inboxId: (a: number) => [number, number];
|
|
728
|
+
readonly __wbg_set_groupmember_inboxId: (a: number, b: number, c: number) => void;
|
|
729
|
+
readonly __wbg_get_groupmember_accountIdentifiers: (a: number) => [number, number];
|
|
730
|
+
readonly __wbg_set_groupmember_accountIdentifiers: (a: number, b: number, c: number) => void;
|
|
731
|
+
readonly __wbg_get_groupmember_installationIds: (a: number) => [number, number];
|
|
732
|
+
readonly __wbg_set_groupmember_installationIds: (a: number, b: number, c: number) => void;
|
|
733
|
+
readonly __wbg_get_groupmember_permissionLevel: (a: number) => number;
|
|
734
|
+
readonly __wbg_set_groupmember_permissionLevel: (a: number, b: number) => void;
|
|
735
|
+
readonly __wbg_get_groupmember_consentState: (a: number) => number;
|
|
736
|
+
readonly __wbg_set_groupmember_consentState: (a: number, b: number) => void;
|
|
737
|
+
readonly groupmember_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
738
|
+
readonly __wbg_conversation_free: (a: number, b: number) => void;
|
|
739
|
+
readonly conversation_id: (a: number) => [number, number];
|
|
740
|
+
readonly conversation_send: (a: number, b: number) => any;
|
|
741
|
+
readonly conversation_sendOptimistic: (a: number, b: number) => [number, number, number, number];
|
|
742
|
+
readonly conversation_publishMessages: (a: number) => any;
|
|
743
|
+
readonly conversation_sync: (a: number) => any;
|
|
744
|
+
readonly conversation_findMessages: (a: number, b: number) => any;
|
|
745
|
+
readonly conversation_findMessagesWithReactions: (a: number, b: number) => any;
|
|
746
|
+
readonly conversation_listMembers: (a: number) => any;
|
|
747
|
+
readonly conversation_adminList: (a: number) => [number, number, number, number];
|
|
748
|
+
readonly conversation_superAdminList: (a: number) => [number, number, number, number];
|
|
749
|
+
readonly conversation_isAdmin: (a: number, b: number, c: number) => [number, number, number];
|
|
750
|
+
readonly conversation_isSuperAdmin: (a: number, b: number, c: number) => [number, number, number];
|
|
751
|
+
readonly conversation_addMembers: (a: number, b: number, c: number) => any;
|
|
752
|
+
readonly conversation_addAdmin: (a: number, b: number, c: number) => any;
|
|
753
|
+
readonly conversation_removeAdmin: (a: number, b: number, c: number) => any;
|
|
754
|
+
readonly conversation_addSuperAdmin: (a: number, b: number, c: number) => any;
|
|
755
|
+
readonly conversation_removeSuperAdmin: (a: number, b: number, c: number) => any;
|
|
756
|
+
readonly conversation_groupPermissions: (a: number) => [number, number, number];
|
|
757
|
+
readonly conversation_addMembersByInboxId: (a: number, b: number, c: number) => any;
|
|
758
|
+
readonly conversation_removeMembers: (a: number, b: number, c: number) => any;
|
|
759
|
+
readonly conversation_removeMembersByInboxId: (a: number, b: number, c: number) => any;
|
|
760
|
+
readonly conversation_updateGroupName: (a: number, b: number, c: number) => any;
|
|
761
|
+
readonly conversation_groupName: (a: number) => [number, number, number, number];
|
|
762
|
+
readonly conversation_updateGroupImageUrlSquare: (a: number, b: number, c: number) => any;
|
|
763
|
+
readonly conversation_groupImageUrlSquare: (a: number) => [number, number, number, number];
|
|
764
|
+
readonly conversation_updateGroupDescription: (a: number, b: number, c: number) => any;
|
|
765
|
+
readonly conversation_groupDescription: (a: number) => [number, number, number, number];
|
|
766
|
+
readonly conversation_stream: (a: number, b: any) => [number, number, number];
|
|
767
|
+
readonly conversation_createdAtNs: (a: number) => bigint;
|
|
768
|
+
readonly conversation_isActive: (a: number) => [number, number, number];
|
|
769
|
+
readonly conversation_pausedForVersion: (a: number) => [number, number, number, number];
|
|
770
|
+
readonly conversation_addedByInboxId: (a: number) => [number, number, number, number];
|
|
771
|
+
readonly conversation_groupMetadata: (a: number) => any;
|
|
772
|
+
readonly conversation_dmPeerInboxId: (a: number) => [number, number, number, number];
|
|
773
|
+
readonly conversation_updatePermissionPolicy: (a: number, b: number, c: number, d: number) => any;
|
|
774
|
+
readonly conversation_updateMessageDisappearingSettings: (a: number, b: number) => any;
|
|
775
|
+
readonly conversation_removeMessageDisappearingSettings: (a: number) => any;
|
|
776
|
+
readonly conversation_messageDisappearingSettings: (a: number) => [number, number, number];
|
|
777
|
+
readonly conversation_isMessageDisappearingEnabled: (a: number) => [number, number, number];
|
|
778
|
+
readonly conversation_getHmacKeys: (a: number) => [number, number, number];
|
|
779
|
+
readonly getInboxIdForIdentifier: (a: number, b: number, c: number) => any;
|
|
780
|
+
readonly generateInboxId: (a: number) => [number, number, number, number];
|
|
781
|
+
readonly __wbg_set_reaction_reference: (a: number, b: number, c: number) => void;
|
|
782
|
+
readonly __wbg_get_reaction_reference: (a: number) => [number, number];
|
|
783
|
+
readonly __wbg_consent_free: (a: number, b: number) => void;
|
|
784
|
+
readonly __wbg_get_consent_entityType: (a: number) => number;
|
|
785
|
+
readonly __wbg_set_consent_entityType: (a: number, b: number) => void;
|
|
786
|
+
readonly __wbg_get_consent_state: (a: number) => number;
|
|
787
|
+
readonly __wbg_set_consent_state: (a: number, b: number) => void;
|
|
788
|
+
readonly __wbg_get_consent_entity: (a: number) => [number, number];
|
|
789
|
+
readonly __wbg_set_consent_entity: (a: number, b: number, c: number) => void;
|
|
790
|
+
readonly consent_new: (a: number, b: number, c: number, d: number) => number;
|
|
791
|
+
readonly client_setConsentStates: (a: number, b: number, c: number) => any;
|
|
792
|
+
readonly client_getConsentState: (a: number, b: number, c: number, d: number) => any;
|
|
793
|
+
readonly conversation_consentState: (a: number) => [number, number, number];
|
|
794
|
+
readonly conversation_updateConsentState: (a: number, b: number) => [number, number];
|
|
795
|
+
readonly __wbg_identifier_free: (a: number, b: number) => void;
|
|
796
|
+
readonly __wbg_get_identifier_identifierKind: (a: number) => number;
|
|
797
|
+
readonly __wbg_set_identifier_identifierKind: (a: number, b: number) => void;
|
|
798
|
+
readonly identifier_new: (a: number, b: number, c: number) => number;
|
|
799
|
+
readonly __wbg_permissionpolicyset_free: (a: number, b: number) => void;
|
|
800
|
+
readonly __wbg_get_permissionpolicyset_addMemberPolicy: (a: number) => number;
|
|
801
|
+
readonly __wbg_set_permissionpolicyset_addMemberPolicy: (a: number, b: number) => void;
|
|
802
|
+
readonly __wbg_get_permissionpolicyset_removeMemberPolicy: (a: number) => number;
|
|
803
|
+
readonly __wbg_set_permissionpolicyset_removeMemberPolicy: (a: number, b: number) => void;
|
|
804
|
+
readonly __wbg_get_permissionpolicyset_addAdminPolicy: (a: number) => number;
|
|
805
|
+
readonly __wbg_set_permissionpolicyset_addAdminPolicy: (a: number, b: number) => void;
|
|
806
|
+
readonly __wbg_get_permissionpolicyset_removeAdminPolicy: (a: number) => number;
|
|
807
|
+
readonly __wbg_set_permissionpolicyset_removeAdminPolicy: (a: number, b: number) => void;
|
|
808
|
+
readonly __wbg_get_permissionpolicyset_updateGroupNamePolicy: (a: number) => number;
|
|
809
|
+
readonly __wbg_set_permissionpolicyset_updateGroupNamePolicy: (a: number, b: number) => void;
|
|
810
|
+
readonly __wbg_get_permissionpolicyset_updateGroupDescriptionPolicy: (a: number) => number;
|
|
811
|
+
readonly __wbg_set_permissionpolicyset_updateGroupDescriptionPolicy: (a: number, b: number) => void;
|
|
812
|
+
readonly __wbg_get_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number) => number;
|
|
813
|
+
readonly __wbg_set_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number, b: number) => void;
|
|
814
|
+
readonly __wbg_get_permissionpolicyset_updateMessageDisappearingPolicy: (a: number) => number;
|
|
815
|
+
readonly __wbg_set_permissionpolicyset_updateMessageDisappearingPolicy: (a: number, b: number) => void;
|
|
816
|
+
readonly permissionpolicyset_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
817
|
+
readonly __wbg_grouppermissions_free: (a: number, b: number) => void;
|
|
818
|
+
readonly grouppermissions_policyType: (a: number) => [number, number, number];
|
|
819
|
+
readonly grouppermissions_policySet: (a: number) => [number, number, number];
|
|
820
|
+
readonly __wbg_set_identifier_identifier: (a: number, b: number, c: number) => void;
|
|
821
|
+
readonly __wbg_get_identifier_identifier: (a: number) => [number, number];
|
|
826
822
|
readonly rust_sqlite_wasm_shim_localtime_js: (a: bigint, b: number) => void;
|
|
827
823
|
readonly rust_sqlite_wasm_shim_tzset_js: (a: number, b: number, c: number, d: number) => void;
|
|
828
824
|
readonly rust_sqlite_wasm_shim_emscripten_get_now: () => number;
|
|
@@ -853,9 +849,9 @@ export interface InitOutput {
|
|
|
853
849
|
readonly __wbindgen_export_7: WebAssembly.Table;
|
|
854
850
|
readonly __externref_table_dealloc: (a: number) => void;
|
|
855
851
|
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hff1927556d6713ec: (a: number, b: number) => void;
|
|
856
|
-
readonly
|
|
857
|
-
readonly
|
|
858
|
-
readonly
|
|
852
|
+
readonly closure3754_externref_shim: (a: number, b: number, c: any) => void;
|
|
853
|
+
readonly closure4763_externref_shim: (a: number, b: number, c: any, d: number, e: any) => number;
|
|
854
|
+
readonly closure4762_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
859
855
|
readonly __wbindgen_start: () => void;
|
|
860
856
|
}
|
|
861
857
|
|
package/dist/bindings_wasm.js
CHANGED
|
@@ -230,11 +230,62 @@ function _assertClass(instance, klass) {
|
|
|
230
230
|
}
|
|
231
231
|
}
|
|
232
232
|
|
|
233
|
+
function passArray8ToWasm0(arg, malloc) {
|
|
234
|
+
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
235
|
+
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
236
|
+
WASM_VECTOR_LEN = arg.length;
|
|
237
|
+
return ptr;
|
|
238
|
+
}
|
|
239
|
+
|
|
233
240
|
function takeFromExternrefTable0(idx) {
|
|
234
241
|
const value = wasm.__wbindgen_export_4.get(idx);
|
|
235
242
|
wasm.__externref_table_dealloc(idx);
|
|
236
243
|
return value;
|
|
237
244
|
}
|
|
245
|
+
/**
|
|
246
|
+
* @param {string} host
|
|
247
|
+
* @param {string} inbox_id
|
|
248
|
+
* @param {Identifier} account_identifier
|
|
249
|
+
* @param {string | null} [db_path]
|
|
250
|
+
* @param {Uint8Array | null} [encryption_key]
|
|
251
|
+
* @param {string | null} [history_sync_url]
|
|
252
|
+
* @param {LogOptions | null} [log_options]
|
|
253
|
+
* @returns {Promise<Client>}
|
|
254
|
+
*/
|
|
255
|
+
export function createClient(host, inbox_id, account_identifier, db_path, encryption_key, history_sync_url, log_options) {
|
|
256
|
+
const ptr0 = passStringToWasm0(host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
257
|
+
const len0 = WASM_VECTOR_LEN;
|
|
258
|
+
const ptr1 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
259
|
+
const len1 = WASM_VECTOR_LEN;
|
|
260
|
+
_assertClass(account_identifier, Identifier);
|
|
261
|
+
var ptr2 = account_identifier.__destroy_into_raw();
|
|
262
|
+
var ptr3 = isLikeNone(db_path) ? 0 : passStringToWasm0(db_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
263
|
+
var len3 = WASM_VECTOR_LEN;
|
|
264
|
+
var ptr4 = isLikeNone(history_sync_url) ? 0 : passStringToWasm0(history_sync_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
265
|
+
var len4 = WASM_VECTOR_LEN;
|
|
266
|
+
let ptr5 = 0;
|
|
267
|
+
if (!isLikeNone(log_options)) {
|
|
268
|
+
_assertClass(log_options, LogOptions);
|
|
269
|
+
ptr5 = log_options.__destroy_into_raw();
|
|
270
|
+
}
|
|
271
|
+
const ret = wasm.createClient(ptr0, len0, ptr1, len1, ptr2, ptr3, len3, isLikeNone(encryption_key) ? 0 : addToExternrefTable0(encryption_key), ptr4, len4, ptr5);
|
|
272
|
+
return ret;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
/**
|
|
276
|
+
* @param {string} signature_text
|
|
277
|
+
* @param {Uint8Array} signature_bytes
|
|
278
|
+
* @param {Uint8Array} public_key
|
|
279
|
+
*/
|
|
280
|
+
export function verifySignedWithPublicKey(signature_text, signature_bytes, public_key) {
|
|
281
|
+
const ptr0 = passStringToWasm0(signature_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
282
|
+
const len0 = WASM_VECTOR_LEN;
|
|
283
|
+
const ret = wasm.verifySignedWithPublicKey(ptr0, len0, signature_bytes, public_key);
|
|
284
|
+
if (ret[1]) {
|
|
285
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
|
|
238
289
|
/**
|
|
239
290
|
* @param {MultiRemoteAttachment} multiRemoteAttachment
|
|
240
291
|
* @returns {Uint8Array}
|
|
@@ -326,71 +377,21 @@ export function generateInboxId(accountIdentifier) {
|
|
|
326
377
|
}
|
|
327
378
|
}
|
|
328
379
|
|
|
329
|
-
function passArray8ToWasm0(arg, malloc) {
|
|
330
|
-
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
331
|
-
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
332
|
-
WASM_VECTOR_LEN = arg.length;
|
|
333
|
-
return ptr;
|
|
334
|
-
}
|
|
335
|
-
/**
|
|
336
|
-
* @param {string} host
|
|
337
|
-
* @param {string} inbox_id
|
|
338
|
-
* @param {Identifier} account_identifier
|
|
339
|
-
* @param {string | null} [db_path]
|
|
340
|
-
* @param {Uint8Array | null} [encryption_key]
|
|
341
|
-
* @param {string | null} [history_sync_url]
|
|
342
|
-
* @param {LogOptions | null} [log_options]
|
|
343
|
-
* @returns {Promise<Client>}
|
|
344
|
-
*/
|
|
345
|
-
export function createClient(host, inbox_id, account_identifier, db_path, encryption_key, history_sync_url, log_options) {
|
|
346
|
-
const ptr0 = passStringToWasm0(host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
347
|
-
const len0 = WASM_VECTOR_LEN;
|
|
348
|
-
const ptr1 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
349
|
-
const len1 = WASM_VECTOR_LEN;
|
|
350
|
-
_assertClass(account_identifier, Identifier);
|
|
351
|
-
var ptr2 = account_identifier.__destroy_into_raw();
|
|
352
|
-
var ptr3 = isLikeNone(db_path) ? 0 : passStringToWasm0(db_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
353
|
-
var len3 = WASM_VECTOR_LEN;
|
|
354
|
-
var ptr4 = isLikeNone(history_sync_url) ? 0 : passStringToWasm0(history_sync_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
355
|
-
var len4 = WASM_VECTOR_LEN;
|
|
356
|
-
let ptr5 = 0;
|
|
357
|
-
if (!isLikeNone(log_options)) {
|
|
358
|
-
_assertClass(log_options, LogOptions);
|
|
359
|
-
ptr5 = log_options.__destroy_into_raw();
|
|
360
|
-
}
|
|
361
|
-
const ret = wasm.createClient(ptr0, len0, ptr1, len1, ptr2, ptr3, len3, isLikeNone(encryption_key) ? 0 : addToExternrefTable0(encryption_key), ptr4, len4, ptr5);
|
|
362
|
-
return ret;
|
|
363
|
-
}
|
|
364
|
-
|
|
365
|
-
/**
|
|
366
|
-
* @param {string} signature_text
|
|
367
|
-
* @param {Uint8Array} signature_bytes
|
|
368
|
-
* @param {Uint8Array} public_key
|
|
369
|
-
*/
|
|
370
|
-
export function verifySignedWithPublicKey(signature_text, signature_bytes, public_key) {
|
|
371
|
-
const ptr0 = passStringToWasm0(signature_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
372
|
-
const len0 = WASM_VECTOR_LEN;
|
|
373
|
-
const ret = wasm.verifySignedWithPublicKey(ptr0, len0, signature_bytes, public_key);
|
|
374
|
-
if (ret[1]) {
|
|
375
|
-
throw takeFromExternrefTable0(ret[0]);
|
|
376
|
-
}
|
|
377
|
-
}
|
|
378
|
-
|
|
379
380
|
function __wbg_adapter_46(arg0, arg1) {
|
|
380
381
|
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hff1927556d6713ec(arg0, arg1);
|
|
381
382
|
}
|
|
382
383
|
|
|
383
384
|
function __wbg_adapter_49(arg0, arg1, arg2) {
|
|
384
|
-
wasm.
|
|
385
|
+
wasm.closure3754_externref_shim(arg0, arg1, arg2);
|
|
385
386
|
}
|
|
386
387
|
|
|
387
|
-
function
|
|
388
|
-
const ret = wasm.
|
|
388
|
+
function __wbg_adapter_590(arg0, arg1, arg2, arg3, arg4) {
|
|
389
|
+
const ret = wasm.closure4763_externref_shim(arg0, arg1, arg2, arg3, arg4);
|
|
389
390
|
return ret !== 0;
|
|
390
391
|
}
|
|
391
392
|
|
|
392
|
-
function
|
|
393
|
-
wasm.
|
|
393
|
+
function __wbg_adapter_691(arg0, arg1, arg2, arg3) {
|
|
394
|
+
wasm.closure4762_externref_shim(arg0, arg1, arg2, arg3);
|
|
394
395
|
}
|
|
395
396
|
|
|
396
397
|
/**
|
|
@@ -575,27 +576,6 @@ export class Client {
|
|
|
575
576
|
const ptr = this.__destroy_into_raw();
|
|
576
577
|
wasm.__wbg_client_free(ptr, 0);
|
|
577
578
|
}
|
|
578
|
-
/**
|
|
579
|
-
* @param {Consent[]} records
|
|
580
|
-
* @returns {Promise<void>}
|
|
581
|
-
*/
|
|
582
|
-
setConsentStates(records) {
|
|
583
|
-
const ptr0 = passArrayJsValueToWasm0(records, wasm.__wbindgen_malloc);
|
|
584
|
-
const len0 = WASM_VECTOR_LEN;
|
|
585
|
-
const ret = wasm.client_setConsentStates(this.__wbg_ptr, ptr0, len0);
|
|
586
|
-
return ret;
|
|
587
|
-
}
|
|
588
|
-
/**
|
|
589
|
-
* @param {ConsentEntityType} entity_type
|
|
590
|
-
* @param {string} entity
|
|
591
|
-
* @returns {Promise<ConsentState>}
|
|
592
|
-
*/
|
|
593
|
-
getConsentState(entity_type, entity) {
|
|
594
|
-
const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
595
|
-
const len0 = WASM_VECTOR_LEN;
|
|
596
|
-
const ret = wasm.client_getConsentState(this.__wbg_ptr, entity_type, ptr0, len0);
|
|
597
|
-
return ret;
|
|
598
|
-
}
|
|
599
579
|
/**
|
|
600
580
|
*
|
|
601
581
|
* * Get the client's inbox state.
|
|
@@ -835,6 +815,27 @@ export class Client {
|
|
|
835
815
|
throw takeFromExternrefTable0(ret[0]);
|
|
836
816
|
}
|
|
837
817
|
}
|
|
818
|
+
/**
|
|
819
|
+
* @param {Consent[]} records
|
|
820
|
+
* @returns {Promise<void>}
|
|
821
|
+
*/
|
|
822
|
+
setConsentStates(records) {
|
|
823
|
+
const ptr0 = passArrayJsValueToWasm0(records, wasm.__wbindgen_malloc);
|
|
824
|
+
const len0 = WASM_VECTOR_LEN;
|
|
825
|
+
const ret = wasm.client_setConsentStates(this.__wbg_ptr, ptr0, len0);
|
|
826
|
+
return ret;
|
|
827
|
+
}
|
|
828
|
+
/**
|
|
829
|
+
* @param {ConsentEntityType} entity_type
|
|
830
|
+
* @param {string} entity
|
|
831
|
+
* @returns {Promise<ConsentState>}
|
|
832
|
+
*/
|
|
833
|
+
getConsentState(entity_type, entity) {
|
|
834
|
+
const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
835
|
+
const len0 = WASM_VECTOR_LEN;
|
|
836
|
+
const ret = wasm.client_getConsentState(this.__wbg_ptr, entity_type, ptr0, len0);
|
|
837
|
+
return ret;
|
|
838
|
+
}
|
|
838
839
|
}
|
|
839
840
|
|
|
840
841
|
const ConsentFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
@@ -2591,37 +2592,14 @@ export class Identifier {
|
|
|
2591
2592
|
set identifierKind(arg0) {
|
|
2592
2593
|
wasm.__wbg_set_identifier_identifierKind(this.__wbg_ptr, arg0);
|
|
2593
2594
|
}
|
|
2594
|
-
/**
|
|
2595
|
-
* @returns {string | undefined}
|
|
2596
|
-
*/
|
|
2597
|
-
get relyingParty() {
|
|
2598
|
-
const ret = wasm.__wbg_get_identifier_relyingParty(this.__wbg_ptr);
|
|
2599
|
-
let v1;
|
|
2600
|
-
if (ret[0] !== 0) {
|
|
2601
|
-
v1 = getStringFromWasm0(ret[0], ret[1]).slice();
|
|
2602
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
2603
|
-
}
|
|
2604
|
-
return v1;
|
|
2605
|
-
}
|
|
2606
|
-
/**
|
|
2607
|
-
* @param {string | null} [arg0]
|
|
2608
|
-
*/
|
|
2609
|
-
set relyingParty(arg0) {
|
|
2610
|
-
var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2611
|
-
var len0 = WASM_VECTOR_LEN;
|
|
2612
|
-
wasm.__wbg_set_identifier_relyingParty(this.__wbg_ptr, ptr0, len0);
|
|
2613
|
-
}
|
|
2614
2595
|
/**
|
|
2615
2596
|
* @param {string} identifier
|
|
2616
2597
|
* @param {IdentifierKind} identifierKind
|
|
2617
|
-
* @param {string | null} [relyingParty]
|
|
2618
2598
|
*/
|
|
2619
|
-
constructor(identifier, identifierKind
|
|
2599
|
+
constructor(identifier, identifierKind) {
|
|
2620
2600
|
const ptr0 = passStringToWasm0(identifier, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2621
2601
|
const len0 = WASM_VECTOR_LEN;
|
|
2622
|
-
|
|
2623
|
-
var len1 = WASM_VECTOR_LEN;
|
|
2624
|
-
const ret = wasm.identifier_new(ptr0, len0, identifierKind, ptr1, len1);
|
|
2602
|
+
const ret = wasm.identifier_new(ptr0, len0, identifierKind);
|
|
2625
2603
|
this.__wbg_ptr = ret >>> 0;
|
|
2626
2604
|
IdentifierFinalization.register(this, this.__wbg_ptr, this);
|
|
2627
2605
|
return this;
|
|
@@ -4393,7 +4371,7 @@ function __wbg_get_imports() {
|
|
|
4393
4371
|
const a = state0.a;
|
|
4394
4372
|
state0.a = 0;
|
|
4395
4373
|
try {
|
|
4396
|
-
return
|
|
4374
|
+
return __wbg_adapter_590(a, state0.b, arg0, arg1, arg2);
|
|
4397
4375
|
} finally {
|
|
4398
4376
|
state0.a = a;
|
|
4399
4377
|
}
|
|
@@ -4423,7 +4401,7 @@ function __wbg_get_imports() {
|
|
|
4423
4401
|
const a = state0.a;
|
|
4424
4402
|
state0.a = 0;
|
|
4425
4403
|
try {
|
|
4426
|
-
return
|
|
4404
|
+
return __wbg_adapter_590(a, state0.b, arg0, arg1, arg2);
|
|
4427
4405
|
} finally {
|
|
4428
4406
|
state0.a = a;
|
|
4429
4407
|
}
|
|
@@ -4715,7 +4693,7 @@ function __wbg_get_imports() {
|
|
|
4715
4693
|
const a = state0.a;
|
|
4716
4694
|
state0.a = 0;
|
|
4717
4695
|
try {
|
|
4718
|
-
return
|
|
4696
|
+
return __wbg_adapter_691(a, state0.b, arg0, arg1);
|
|
4719
4697
|
} finally {
|
|
4720
4698
|
state0.a = a;
|
|
4721
4699
|
}
|
|
@@ -5114,12 +5092,12 @@ function __wbg_get_imports() {
|
|
|
5114
5092
|
const ret = false;
|
|
5115
5093
|
return ret;
|
|
5116
5094
|
};
|
|
5117
|
-
imports.wbg.
|
|
5118
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
5095
|
+
imports.wbg.__wbindgen_closure_wrapper16214 = function(arg0, arg1, arg2) {
|
|
5096
|
+
const ret = makeMutClosure(arg0, arg1, 3682, __wbg_adapter_46);
|
|
5119
5097
|
return ret;
|
|
5120
5098
|
};
|
|
5121
|
-
imports.wbg.
|
|
5122
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
5099
|
+
imports.wbg.__wbindgen_closure_wrapper16510 = function(arg0, arg1, arg2) {
|
|
5100
|
+
const ret = makeMutClosure(arg0, arg1, 3755, __wbg_adapter_49);
|
|
5123
5101
|
return ret;
|
|
5124
5102
|
};
|
|
5125
5103
|
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
|
Binary file
|
|
@@ -1,148 +1,6 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
|
-
export const __wbg_remoteattachmentinfo_free: (a: number, b: number) => void;
|
|
5
|
-
export const __wbg_get_remoteattachmentinfo_secret: (a: number) => any;
|
|
6
|
-
export const __wbg_set_remoteattachmentinfo_secret: (a: number, b: any) => void;
|
|
7
|
-
export const __wbg_get_remoteattachmentinfo_contentDigest: (a: number) => [number, number];
|
|
8
|
-
export const __wbg_set_remoteattachmentinfo_contentDigest: (a: number, b: number, c: number) => void;
|
|
9
|
-
export const __wbg_get_remoteattachmentinfo_nonce: (a: number) => any;
|
|
10
|
-
export const __wbg_set_remoteattachmentinfo_nonce: (a: number, b: any) => void;
|
|
11
|
-
export const __wbg_get_remoteattachmentinfo_scheme: (a: number) => [number, number];
|
|
12
|
-
export const __wbg_set_remoteattachmentinfo_scheme: (a: number, b: number, c: number) => void;
|
|
13
|
-
export const __wbg_get_remoteattachmentinfo_url: (a: number) => [number, number];
|
|
14
|
-
export const __wbg_set_remoteattachmentinfo_url: (a: number, b: number, c: number) => void;
|
|
15
|
-
export const __wbg_get_remoteattachmentinfo_salt: (a: number) => any;
|
|
16
|
-
export const __wbg_set_remoteattachmentinfo_salt: (a: number, b: any) => void;
|
|
17
|
-
export const __wbg_get_remoteattachmentinfo_contentLength: (a: number) => number;
|
|
18
|
-
export const __wbg_set_remoteattachmentinfo_contentLength: (a: number, b: number) => void;
|
|
19
|
-
export const __wbg_get_remoteattachmentinfo_filename: (a: number) => [number, number];
|
|
20
|
-
export const __wbg_set_remoteattachmentinfo_filename: (a: number, b: number, c: number) => void;
|
|
21
|
-
export const remoteattachmentinfo_new: (a: any, b: number, c: number, d: any, e: number, f: number, g: number, h: number, i: any, j: number, k: number, l: number) => number;
|
|
22
|
-
export const __wbg_multiremoteattachment_free: (a: number, b: number) => void;
|
|
23
|
-
export const __wbg_get_multiremoteattachment_attachments: (a: number) => [number, number];
|
|
24
|
-
export const __wbg_set_multiremoteattachment_attachments: (a: number, b: number, c: number) => void;
|
|
25
|
-
export const multiremoteattachment_new: (a: number, b: number) => number;
|
|
26
|
-
export const encodeMultiRemoteAttachment: (a: number) => [number, number, number];
|
|
27
|
-
export const decodeMultiRemoteAttachment: (a: any) => [number, number, number];
|
|
28
|
-
export const __wbg_reaction_free: (a: number, b: number) => void;
|
|
29
|
-
export const __wbg_get_reaction_referenceInboxId: (a: number) => [number, number];
|
|
30
|
-
export const __wbg_set_reaction_referenceInboxId: (a: number, b: number, c: number) => void;
|
|
31
|
-
export const __wbg_get_reaction_action: (a: number) => number;
|
|
32
|
-
export const __wbg_set_reaction_action: (a: number, b: number) => void;
|
|
33
|
-
export const __wbg_get_reaction_content: (a: number) => [number, number];
|
|
34
|
-
export const __wbg_set_reaction_content: (a: number, b: number, c: number) => void;
|
|
35
|
-
export const __wbg_get_reaction_schema: (a: number) => number;
|
|
36
|
-
export const __wbg_set_reaction_schema: (a: number, b: number) => void;
|
|
37
|
-
export const reaction_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
38
|
-
export const encodeReaction: (a: number) => [number, number, number];
|
|
39
|
-
export const decodeReaction: (a: any) => [number, number, number];
|
|
40
|
-
export const __wbg_groupmetadata_free: (a: number, b: number) => void;
|
|
41
|
-
export const groupmetadata_creatorInboxId: (a: number) => [number, number];
|
|
42
|
-
export const groupmetadata_conversationType: (a: number) => [number, number];
|
|
43
|
-
export const __wbg_groupmember_free: (a: number, b: number) => void;
|
|
44
|
-
export const __wbg_get_groupmember_inboxId: (a: number) => [number, number];
|
|
45
|
-
export const __wbg_set_groupmember_inboxId: (a: number, b: number, c: number) => void;
|
|
46
|
-
export const __wbg_get_groupmember_accountIdentifiers: (a: number) => [number, number];
|
|
47
|
-
export const __wbg_set_groupmember_accountIdentifiers: (a: number, b: number, c: number) => void;
|
|
48
|
-
export const __wbg_get_groupmember_installationIds: (a: number) => [number, number];
|
|
49
|
-
export const __wbg_set_groupmember_installationIds: (a: number, b: number, c: number) => void;
|
|
50
|
-
export const __wbg_get_groupmember_permissionLevel: (a: number) => number;
|
|
51
|
-
export const __wbg_set_groupmember_permissionLevel: (a: number, b: number) => void;
|
|
52
|
-
export const __wbg_get_groupmember_consentState: (a: number) => number;
|
|
53
|
-
export const __wbg_set_groupmember_consentState: (a: number, b: number) => void;
|
|
54
|
-
export const groupmember_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
55
|
-
export const __wbg_conversation_free: (a: number, b: number) => void;
|
|
56
|
-
export const conversation_id: (a: number) => [number, number];
|
|
57
|
-
export const conversation_send: (a: number, b: number) => any;
|
|
58
|
-
export const conversation_sendOptimistic: (a: number, b: number) => [number, number, number, number];
|
|
59
|
-
export const conversation_publishMessages: (a: number) => any;
|
|
60
|
-
export const conversation_sync: (a: number) => any;
|
|
61
|
-
export const conversation_findMessages: (a: number, b: number) => any;
|
|
62
|
-
export const conversation_findMessagesWithReactions: (a: number, b: number) => any;
|
|
63
|
-
export const conversation_listMembers: (a: number) => any;
|
|
64
|
-
export const conversation_adminList: (a: number) => [number, number, number, number];
|
|
65
|
-
export const conversation_superAdminList: (a: number) => [number, number, number, number];
|
|
66
|
-
export const conversation_isAdmin: (a: number, b: number, c: number) => [number, number, number];
|
|
67
|
-
export const conversation_isSuperAdmin: (a: number, b: number, c: number) => [number, number, number];
|
|
68
|
-
export const conversation_addMembers: (a: number, b: number, c: number) => any;
|
|
69
|
-
export const conversation_addAdmin: (a: number, b: number, c: number) => any;
|
|
70
|
-
export const conversation_removeAdmin: (a: number, b: number, c: number) => any;
|
|
71
|
-
export const conversation_addSuperAdmin: (a: number, b: number, c: number) => any;
|
|
72
|
-
export const conversation_removeSuperAdmin: (a: number, b: number, c: number) => any;
|
|
73
|
-
export const conversation_groupPermissions: (a: number) => [number, number, number];
|
|
74
|
-
export const conversation_addMembersByInboxId: (a: number, b: number, c: number) => any;
|
|
75
|
-
export const conversation_removeMembers: (a: number, b: number, c: number) => any;
|
|
76
|
-
export const conversation_removeMembersByInboxId: (a: number, b: number, c: number) => any;
|
|
77
|
-
export const conversation_updateGroupName: (a: number, b: number, c: number) => any;
|
|
78
|
-
export const conversation_groupName: (a: number) => [number, number, number, number];
|
|
79
|
-
export const conversation_updateGroupImageUrlSquare: (a: number, b: number, c: number) => any;
|
|
80
|
-
export const conversation_groupImageUrlSquare: (a: number) => [number, number, number, number];
|
|
81
|
-
export const conversation_updateGroupDescription: (a: number, b: number, c: number) => any;
|
|
82
|
-
export const conversation_groupDescription: (a: number) => [number, number, number, number];
|
|
83
|
-
export const conversation_stream: (a: number, b: any) => [number, number, number];
|
|
84
|
-
export const conversation_createdAtNs: (a: number) => bigint;
|
|
85
|
-
export const conversation_isActive: (a: number) => [number, number, number];
|
|
86
|
-
export const conversation_pausedForVersion: (a: number) => [number, number, number, number];
|
|
87
|
-
export const conversation_addedByInboxId: (a: number) => [number, number, number, number];
|
|
88
|
-
export const conversation_groupMetadata: (a: number) => any;
|
|
89
|
-
export const conversation_dmPeerInboxId: (a: number) => [number, number, number, number];
|
|
90
|
-
export const conversation_updatePermissionPolicy: (a: number, b: number, c: number, d: number) => any;
|
|
91
|
-
export const conversation_updateMessageDisappearingSettings: (a: number, b: number) => any;
|
|
92
|
-
export const conversation_removeMessageDisappearingSettings: (a: number) => any;
|
|
93
|
-
export const conversation_messageDisappearingSettings: (a: number) => [number, number, number];
|
|
94
|
-
export const conversation_isMessageDisappearingEnabled: (a: number) => [number, number, number];
|
|
95
|
-
export const conversation_getHmacKeys: (a: number) => [number, number, number];
|
|
96
|
-
export const getInboxIdForIdentifier: (a: number, b: number, c: number) => any;
|
|
97
|
-
export const generateInboxId: (a: number) => [number, number, number, number];
|
|
98
|
-
export const __wbg_set_reaction_reference: (a: number, b: number, c: number) => void;
|
|
99
|
-
export const __wbg_get_reaction_reference: (a: number) => [number, number];
|
|
100
|
-
export const __wbg_streamcloser_free: (a: number, b: number) => void;
|
|
101
|
-
export const streamcloser_end: (a: number) => void;
|
|
102
|
-
export const streamcloser_endAndWait: (a: number) => any;
|
|
103
|
-
export const streamcloser_waitForReady: (a: number) => any;
|
|
104
|
-
export const streamcloser_isClosed: (a: number) => number;
|
|
105
|
-
export const __wbg_consent_free: (a: number, b: number) => void;
|
|
106
|
-
export const __wbg_get_consent_entityType: (a: number) => number;
|
|
107
|
-
export const __wbg_set_consent_entityType: (a: number, b: number) => void;
|
|
108
|
-
export const __wbg_get_consent_state: (a: number) => number;
|
|
109
|
-
export const __wbg_set_consent_state: (a: number, b: number) => void;
|
|
110
|
-
export const __wbg_get_consent_entity: (a: number) => [number, number];
|
|
111
|
-
export const __wbg_set_consent_entity: (a: number, b: number, c: number) => void;
|
|
112
|
-
export const consent_new: (a: number, b: number, c: number, d: number) => number;
|
|
113
|
-
export const client_setConsentStates: (a: number, b: number, c: number) => any;
|
|
114
|
-
export const client_getConsentState: (a: number, b: number, c: number, d: number) => any;
|
|
115
|
-
export const conversation_consentState: (a: number) => [number, number, number];
|
|
116
|
-
export const conversation_updateConsentState: (a: number, b: number) => [number, number];
|
|
117
|
-
export const __wbg_identifier_free: (a: number, b: number) => void;
|
|
118
|
-
export const __wbg_get_identifier_identifierKind: (a: number) => number;
|
|
119
|
-
export const __wbg_set_identifier_identifierKind: (a: number, b: number) => void;
|
|
120
|
-
export const __wbg_get_identifier_relyingParty: (a: number) => [number, number];
|
|
121
|
-
export const __wbg_set_identifier_relyingParty: (a: number, b: number, c: number) => void;
|
|
122
|
-
export const identifier_new: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
123
|
-
export const __wbg_permissionpolicyset_free: (a: number, b: number) => void;
|
|
124
|
-
export const __wbg_get_permissionpolicyset_addMemberPolicy: (a: number) => number;
|
|
125
|
-
export const __wbg_set_permissionpolicyset_addMemberPolicy: (a: number, b: number) => void;
|
|
126
|
-
export const __wbg_get_permissionpolicyset_removeMemberPolicy: (a: number) => number;
|
|
127
|
-
export const __wbg_set_permissionpolicyset_removeMemberPolicy: (a: number, b: number) => void;
|
|
128
|
-
export const __wbg_get_permissionpolicyset_addAdminPolicy: (a: number) => number;
|
|
129
|
-
export const __wbg_set_permissionpolicyset_addAdminPolicy: (a: number, b: number) => void;
|
|
130
|
-
export const __wbg_get_permissionpolicyset_removeAdminPolicy: (a: number) => number;
|
|
131
|
-
export const __wbg_set_permissionpolicyset_removeAdminPolicy: (a: number, b: number) => void;
|
|
132
|
-
export const __wbg_get_permissionpolicyset_updateGroupNamePolicy: (a: number) => number;
|
|
133
|
-
export const __wbg_set_permissionpolicyset_updateGroupNamePolicy: (a: number, b: number) => void;
|
|
134
|
-
export const __wbg_get_permissionpolicyset_updateGroupDescriptionPolicy: (a: number) => number;
|
|
135
|
-
export const __wbg_set_permissionpolicyset_updateGroupDescriptionPolicy: (a: number, b: number) => void;
|
|
136
|
-
export const __wbg_get_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number) => number;
|
|
137
|
-
export const __wbg_set_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number, b: number) => void;
|
|
138
|
-
export const __wbg_get_permissionpolicyset_updateMessageDisappearingPolicy: (a: number) => number;
|
|
139
|
-
export const __wbg_set_permissionpolicyset_updateMessageDisappearingPolicy: (a: number, b: number) => void;
|
|
140
|
-
export const permissionpolicyset_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
141
|
-
export const __wbg_grouppermissions_free: (a: number, b: number) => void;
|
|
142
|
-
export const grouppermissions_policyType: (a: number) => [number, number, number];
|
|
143
|
-
export const grouppermissions_policySet: (a: number) => [number, number, number];
|
|
144
|
-
export const __wbg_set_identifier_identifier: (a: number, b: number, c: number) => void;
|
|
145
|
-
export const __wbg_get_identifier_identifier: (a: number) => [number, number];
|
|
146
4
|
export const __wbg_listconversationsoptions_free: (a: number, b: number) => void;
|
|
147
5
|
export const __wbg_get_listconversationsoptions_consentStates: (a: number) => [number, number];
|
|
148
6
|
export const __wbg_set_listconversationsoptions_consentStates: (a: number, b: number, c: number) => void;
|
|
@@ -287,6 +145,11 @@ export const __wbg_get_listmessagesoptions_sentAfterNs: (a: number) => [number,
|
|
|
287
145
|
export const __wbg_get_listmessagesoptions_limit: (a: number) => [number, bigint];
|
|
288
146
|
export const __wbg_set_inboxstate_inboxId: (a: number, b: number, c: number) => void;
|
|
289
147
|
export const __wbg_get_inboxstate_inboxId: (a: number) => [number, number];
|
|
148
|
+
export const __wbg_streamcloser_free: (a: number, b: number) => void;
|
|
149
|
+
export const streamcloser_end: (a: number) => void;
|
|
150
|
+
export const streamcloser_endAndWait: (a: number) => any;
|
|
151
|
+
export const streamcloser_waitForReady: (a: number) => any;
|
|
152
|
+
export const streamcloser_isClosed: (a: number) => number;
|
|
290
153
|
export const __wbg_client_free: (a: number, b: number) => void;
|
|
291
154
|
export const __wbg_logoptions_free: (a: number, b: number) => void;
|
|
292
155
|
export const __wbg_get_logoptions_structured: (a: number) => number;
|
|
@@ -321,6 +184,141 @@ export const client_addScwSignature: (a: number, b: number, c: any, d: bigint, e
|
|
|
321
184
|
export const client_applySignatureRequests: (a: number) => any;
|
|
322
185
|
export const client_signWithInstallationKey: (a: number, b: number, c: number) => [number, number, number];
|
|
323
186
|
export const client_verifySignedWithInstallationKey: (a: number, b: number, c: number, d: any) => [number, number];
|
|
187
|
+
export const __wbg_remoteattachmentinfo_free: (a: number, b: number) => void;
|
|
188
|
+
export const __wbg_get_remoteattachmentinfo_secret: (a: number) => any;
|
|
189
|
+
export const __wbg_set_remoteattachmentinfo_secret: (a: number, b: any) => void;
|
|
190
|
+
export const __wbg_get_remoteattachmentinfo_contentDigest: (a: number) => [number, number];
|
|
191
|
+
export const __wbg_set_remoteattachmentinfo_contentDigest: (a: number, b: number, c: number) => void;
|
|
192
|
+
export const __wbg_get_remoteattachmentinfo_nonce: (a: number) => any;
|
|
193
|
+
export const __wbg_set_remoteattachmentinfo_nonce: (a: number, b: any) => void;
|
|
194
|
+
export const __wbg_get_remoteattachmentinfo_scheme: (a: number) => [number, number];
|
|
195
|
+
export const __wbg_set_remoteattachmentinfo_scheme: (a: number, b: number, c: number) => void;
|
|
196
|
+
export const __wbg_get_remoteattachmentinfo_url: (a: number) => [number, number];
|
|
197
|
+
export const __wbg_set_remoteattachmentinfo_url: (a: number, b: number, c: number) => void;
|
|
198
|
+
export const __wbg_get_remoteattachmentinfo_salt: (a: number) => any;
|
|
199
|
+
export const __wbg_set_remoteattachmentinfo_salt: (a: number, b: any) => void;
|
|
200
|
+
export const __wbg_get_remoteattachmentinfo_contentLength: (a: number) => number;
|
|
201
|
+
export const __wbg_set_remoteattachmentinfo_contentLength: (a: number, b: number) => void;
|
|
202
|
+
export const __wbg_get_remoteattachmentinfo_filename: (a: number) => [number, number];
|
|
203
|
+
export const __wbg_set_remoteattachmentinfo_filename: (a: number, b: number, c: number) => void;
|
|
204
|
+
export const remoteattachmentinfo_new: (a: any, b: number, c: number, d: any, e: number, f: number, g: number, h: number, i: any, j: number, k: number, l: number) => number;
|
|
205
|
+
export const __wbg_multiremoteattachment_free: (a: number, b: number) => void;
|
|
206
|
+
export const __wbg_get_multiremoteattachment_attachments: (a: number) => [number, number];
|
|
207
|
+
export const __wbg_set_multiremoteattachment_attachments: (a: number, b: number, c: number) => void;
|
|
208
|
+
export const multiremoteattachment_new: (a: number, b: number) => number;
|
|
209
|
+
export const encodeMultiRemoteAttachment: (a: number) => [number, number, number];
|
|
210
|
+
export const decodeMultiRemoteAttachment: (a: any) => [number, number, number];
|
|
211
|
+
export const __wbg_reaction_free: (a: number, b: number) => void;
|
|
212
|
+
export const __wbg_get_reaction_referenceInboxId: (a: number) => [number, number];
|
|
213
|
+
export const __wbg_set_reaction_referenceInboxId: (a: number, b: number, c: number) => void;
|
|
214
|
+
export const __wbg_get_reaction_action: (a: number) => number;
|
|
215
|
+
export const __wbg_set_reaction_action: (a: number, b: number) => void;
|
|
216
|
+
export const __wbg_get_reaction_content: (a: number) => [number, number];
|
|
217
|
+
export const __wbg_set_reaction_content: (a: number, b: number, c: number) => void;
|
|
218
|
+
export const __wbg_get_reaction_schema: (a: number) => number;
|
|
219
|
+
export const __wbg_set_reaction_schema: (a: number, b: number) => void;
|
|
220
|
+
export const reaction_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
221
|
+
export const encodeReaction: (a: number) => [number, number, number];
|
|
222
|
+
export const decodeReaction: (a: any) => [number, number, number];
|
|
223
|
+
export const __wbg_groupmetadata_free: (a: number, b: number) => void;
|
|
224
|
+
export const groupmetadata_creatorInboxId: (a: number) => [number, number];
|
|
225
|
+
export const groupmetadata_conversationType: (a: number) => [number, number];
|
|
226
|
+
export const __wbg_groupmember_free: (a: number, b: number) => void;
|
|
227
|
+
export const __wbg_get_groupmember_inboxId: (a: number) => [number, number];
|
|
228
|
+
export const __wbg_set_groupmember_inboxId: (a: number, b: number, c: number) => void;
|
|
229
|
+
export const __wbg_get_groupmember_accountIdentifiers: (a: number) => [number, number];
|
|
230
|
+
export const __wbg_set_groupmember_accountIdentifiers: (a: number, b: number, c: number) => void;
|
|
231
|
+
export const __wbg_get_groupmember_installationIds: (a: number) => [number, number];
|
|
232
|
+
export const __wbg_set_groupmember_installationIds: (a: number, b: number, c: number) => void;
|
|
233
|
+
export const __wbg_get_groupmember_permissionLevel: (a: number) => number;
|
|
234
|
+
export const __wbg_set_groupmember_permissionLevel: (a: number, b: number) => void;
|
|
235
|
+
export const __wbg_get_groupmember_consentState: (a: number) => number;
|
|
236
|
+
export const __wbg_set_groupmember_consentState: (a: number, b: number) => void;
|
|
237
|
+
export const groupmember_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
238
|
+
export const __wbg_conversation_free: (a: number, b: number) => void;
|
|
239
|
+
export const conversation_id: (a: number) => [number, number];
|
|
240
|
+
export const conversation_send: (a: number, b: number) => any;
|
|
241
|
+
export const conversation_sendOptimistic: (a: number, b: number) => [number, number, number, number];
|
|
242
|
+
export const conversation_publishMessages: (a: number) => any;
|
|
243
|
+
export const conversation_sync: (a: number) => any;
|
|
244
|
+
export const conversation_findMessages: (a: number, b: number) => any;
|
|
245
|
+
export const conversation_findMessagesWithReactions: (a: number, b: number) => any;
|
|
246
|
+
export const conversation_listMembers: (a: number) => any;
|
|
247
|
+
export const conversation_adminList: (a: number) => [number, number, number, number];
|
|
248
|
+
export const conversation_superAdminList: (a: number) => [number, number, number, number];
|
|
249
|
+
export const conversation_isAdmin: (a: number, b: number, c: number) => [number, number, number];
|
|
250
|
+
export const conversation_isSuperAdmin: (a: number, b: number, c: number) => [number, number, number];
|
|
251
|
+
export const conversation_addMembers: (a: number, b: number, c: number) => any;
|
|
252
|
+
export const conversation_addAdmin: (a: number, b: number, c: number) => any;
|
|
253
|
+
export const conversation_removeAdmin: (a: number, b: number, c: number) => any;
|
|
254
|
+
export const conversation_addSuperAdmin: (a: number, b: number, c: number) => any;
|
|
255
|
+
export const conversation_removeSuperAdmin: (a: number, b: number, c: number) => any;
|
|
256
|
+
export const conversation_groupPermissions: (a: number) => [number, number, number];
|
|
257
|
+
export const conversation_addMembersByInboxId: (a: number, b: number, c: number) => any;
|
|
258
|
+
export const conversation_removeMembers: (a: number, b: number, c: number) => any;
|
|
259
|
+
export const conversation_removeMembersByInboxId: (a: number, b: number, c: number) => any;
|
|
260
|
+
export const conversation_updateGroupName: (a: number, b: number, c: number) => any;
|
|
261
|
+
export const conversation_groupName: (a: number) => [number, number, number, number];
|
|
262
|
+
export const conversation_updateGroupImageUrlSquare: (a: number, b: number, c: number) => any;
|
|
263
|
+
export const conversation_groupImageUrlSquare: (a: number) => [number, number, number, number];
|
|
264
|
+
export const conversation_updateGroupDescription: (a: number, b: number, c: number) => any;
|
|
265
|
+
export const conversation_groupDescription: (a: number) => [number, number, number, number];
|
|
266
|
+
export const conversation_stream: (a: number, b: any) => [number, number, number];
|
|
267
|
+
export const conversation_createdAtNs: (a: number) => bigint;
|
|
268
|
+
export const conversation_isActive: (a: number) => [number, number, number];
|
|
269
|
+
export const conversation_pausedForVersion: (a: number) => [number, number, number, number];
|
|
270
|
+
export const conversation_addedByInboxId: (a: number) => [number, number, number, number];
|
|
271
|
+
export const conversation_groupMetadata: (a: number) => any;
|
|
272
|
+
export const conversation_dmPeerInboxId: (a: number) => [number, number, number, number];
|
|
273
|
+
export const conversation_updatePermissionPolicy: (a: number, b: number, c: number, d: number) => any;
|
|
274
|
+
export const conversation_updateMessageDisappearingSettings: (a: number, b: number) => any;
|
|
275
|
+
export const conversation_removeMessageDisappearingSettings: (a: number) => any;
|
|
276
|
+
export const conversation_messageDisappearingSettings: (a: number) => [number, number, number];
|
|
277
|
+
export const conversation_isMessageDisappearingEnabled: (a: number) => [number, number, number];
|
|
278
|
+
export const conversation_getHmacKeys: (a: number) => [number, number, number];
|
|
279
|
+
export const getInboxIdForIdentifier: (a: number, b: number, c: number) => any;
|
|
280
|
+
export const generateInboxId: (a: number) => [number, number, number, number];
|
|
281
|
+
export const __wbg_set_reaction_reference: (a: number, b: number, c: number) => void;
|
|
282
|
+
export const __wbg_get_reaction_reference: (a: number) => [number, number];
|
|
283
|
+
export const __wbg_consent_free: (a: number, b: number) => void;
|
|
284
|
+
export const __wbg_get_consent_entityType: (a: number) => number;
|
|
285
|
+
export const __wbg_set_consent_entityType: (a: number, b: number) => void;
|
|
286
|
+
export const __wbg_get_consent_state: (a: number) => number;
|
|
287
|
+
export const __wbg_set_consent_state: (a: number, b: number) => void;
|
|
288
|
+
export const __wbg_get_consent_entity: (a: number) => [number, number];
|
|
289
|
+
export const __wbg_set_consent_entity: (a: number, b: number, c: number) => void;
|
|
290
|
+
export const consent_new: (a: number, b: number, c: number, d: number) => number;
|
|
291
|
+
export const client_setConsentStates: (a: number, b: number, c: number) => any;
|
|
292
|
+
export const client_getConsentState: (a: number, b: number, c: number, d: number) => any;
|
|
293
|
+
export const conversation_consentState: (a: number) => [number, number, number];
|
|
294
|
+
export const conversation_updateConsentState: (a: number, b: number) => [number, number];
|
|
295
|
+
export const __wbg_identifier_free: (a: number, b: number) => void;
|
|
296
|
+
export const __wbg_get_identifier_identifierKind: (a: number) => number;
|
|
297
|
+
export const __wbg_set_identifier_identifierKind: (a: number, b: number) => void;
|
|
298
|
+
export const identifier_new: (a: number, b: number, c: number) => number;
|
|
299
|
+
export const __wbg_permissionpolicyset_free: (a: number, b: number) => void;
|
|
300
|
+
export const __wbg_get_permissionpolicyset_addMemberPolicy: (a: number) => number;
|
|
301
|
+
export const __wbg_set_permissionpolicyset_addMemberPolicy: (a: number, b: number) => void;
|
|
302
|
+
export const __wbg_get_permissionpolicyset_removeMemberPolicy: (a: number) => number;
|
|
303
|
+
export const __wbg_set_permissionpolicyset_removeMemberPolicy: (a: number, b: number) => void;
|
|
304
|
+
export const __wbg_get_permissionpolicyset_addAdminPolicy: (a: number) => number;
|
|
305
|
+
export const __wbg_set_permissionpolicyset_addAdminPolicy: (a: number, b: number) => void;
|
|
306
|
+
export const __wbg_get_permissionpolicyset_removeAdminPolicy: (a: number) => number;
|
|
307
|
+
export const __wbg_set_permissionpolicyset_removeAdminPolicy: (a: number, b: number) => void;
|
|
308
|
+
export const __wbg_get_permissionpolicyset_updateGroupNamePolicy: (a: number) => number;
|
|
309
|
+
export const __wbg_set_permissionpolicyset_updateGroupNamePolicy: (a: number, b: number) => void;
|
|
310
|
+
export const __wbg_get_permissionpolicyset_updateGroupDescriptionPolicy: (a: number) => number;
|
|
311
|
+
export const __wbg_set_permissionpolicyset_updateGroupDescriptionPolicy: (a: number, b: number) => void;
|
|
312
|
+
export const __wbg_get_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number) => number;
|
|
313
|
+
export const __wbg_set_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number, b: number) => void;
|
|
314
|
+
export const __wbg_get_permissionpolicyset_updateMessageDisappearingPolicy: (a: number) => number;
|
|
315
|
+
export const __wbg_set_permissionpolicyset_updateMessageDisappearingPolicy: (a: number, b: number) => void;
|
|
316
|
+
export const permissionpolicyset_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
317
|
+
export const __wbg_grouppermissions_free: (a: number, b: number) => void;
|
|
318
|
+
export const grouppermissions_policyType: (a: number) => [number, number, number];
|
|
319
|
+
export const grouppermissions_policySet: (a: number) => [number, number, number];
|
|
320
|
+
export const __wbg_set_identifier_identifier: (a: number, b: number, c: number) => void;
|
|
321
|
+
export const __wbg_get_identifier_identifier: (a: number) => [number, number];
|
|
324
322
|
export const rust_sqlite_wasm_shim_localtime_js: (a: bigint, b: number) => void;
|
|
325
323
|
export const rust_sqlite_wasm_shim_tzset_js: (a: number, b: number, c: number, d: number) => void;
|
|
326
324
|
export const rust_sqlite_wasm_shim_emscripten_get_now: () => number;
|
|
@@ -351,7 +349,7 @@ export const __externref_drop_slice: (a: number, b: number) => void;
|
|
|
351
349
|
export const __wbindgen_export_7: WebAssembly.Table;
|
|
352
350
|
export const __externref_table_dealloc: (a: number) => void;
|
|
353
351
|
export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hff1927556d6713ec: (a: number, b: number) => void;
|
|
354
|
-
export const
|
|
355
|
-
export const
|
|
356
|
-
export const
|
|
352
|
+
export const closure3754_externref_shim: (a: number, b: number, c: any) => void;
|
|
353
|
+
export const closure4763_externref_shim: (a: number, b: number, c: any, d: number, e: any) => number;
|
|
354
|
+
export const closure4762_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
357
355
|
export const __wbindgen_start: () => void;
|